docs(cyrene): cmd/cyrene 存量英文注释中文化(22 个非测试文件,仅注释)
- 四组并行完成:main/wire*.go、wire_capacity|channels|runtime、channels|persona_*|emotion|observability、 voice|plugins|stream|skills|vision|subagent_tool|extractor|mcp|sessionread_tool|terminal_tool。 - 机械校验(git diff -U0 去 // 行与空行)仅剩 wire_frontend.go:84 一处行尾注释:代码前缀 「\ta.gw = gw 」经 cat -A 与 HEAD 逐字节比对一致(allow 清单已声明)。 - 验收:隔离 worktree(HEAD + 本批 patch)go build/vet 绿、全树 58 包 ok、 linux/amd64 + darwin/arm64 交叉编译绿;gofmt -l 干净。 - 备注:整树两次红均为负载敏感 flake(backthink / orchestration 的 timeout 类用例单独 -count=20 全过)。
This commit is contained in:
1 parent
5c2189efb0
commit
52f08dc343
22 files changed
+455
-586
No files matched your search
@@ -5,14 +5,13 @@ import (
|
||||
"git.yeij.top/AskaEth/Cyrene_v2/internal/logger"
|
||||
)
|
||||
|
||||
// defaultSkillsDir is the on-disk directory of skill YAML definitions. It is
|
||||
// optional: a missing directory skips skill loading with a warning.
|
||||
// defaultSkillsDir 是技能 YAML 定义的磁盘目录。它是可选的:目录缺失时只告警并
|
||||
// 跳过技能加载。
|
||||
const defaultSkillsDir = "configs/skills"
|
||||
|
||||
// wireSkills loads skill definitions from configs/skills and registers each into
|
||||
// the capability registry as a KindSkill capability so the plugin ecosystem can
|
||||
// enumerate them. Load+register is the M5 deliverable; Runner.Run (executing a
|
||||
// skill end to end) lands in a later milestone and currently returns ErrRunPending.
|
||||
// wireSkills 从 configs/skills 加载技能定义,并把每个技能以 KindSkill 能力注册进
|
||||
// 能力注册表,供插件生态枚举。加载+注册是 M5 的交付物;Runner.Run(端到端执行
|
||||
// 技能)落在后续里程碑,目前返回 ErrRunPending。
|
||||
func (a *app) wireSkills() {
|
||||
log := logger.WithSource(a.log, "cmd/cyrene")
|
||||
list, err := skills.NewLoader(a.log).LoadDir(defaultSkillsDir)
|
||||
|
||||
Reference in new issue
Block a user