@sakanano-moe/agenthelm 6.13.1 → 6.14.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/runtime/index.json +6 -6
- package/runtime/plugins/agent-pack/.codex-plugin/plugin.json +1 -1
- package/runtime/plugins/agent-pack/plugin.json +1 -1
- package/runtime/plugins/agent-pack/references/capability-config.md +10 -0
- package/runtime/plugins/agent-pack/references/check-opinion-migrate.en.md +31 -0
- package/runtime/plugins/agent-pack/references/check-opinion-migrate.md +31 -0
- package/runtime/plugins/agent-pack/references/dedupe-contract.en.md +27 -0
- package/runtime/plugins/agent-pack/references/dedupe-contract.md +27 -0
- package/runtime/plugins/agent-pack/references/inventory-contract.en.md +83 -0
- package/runtime/plugins/agent-pack/references/inventory-contract.md +83 -0
- package/runtime/plugins/agent-pack/references/nudge.en.md +10 -2
- package/runtime/plugins/agent-pack/references/nudge.md +10 -2
- package/runtime/plugins/agent-pack/references/relocate-contract.en.md +41 -0
- package/runtime/plugins/agent-pack/references/relocate-contract.md +41 -0
- package/runtime/plugins/agent-pack/runtime/agent_pack_claude.py +572 -30
- package/runtime/plugins/agent-pack/runtime/agent_pack_clients.py +233 -0
- package/runtime/plugins/agent-pack/runtime/agent_pack_config.py +112 -4
- package/runtime/plugins/agent-pack/runtime/agent_pack_dedupe.py +502 -0
- package/runtime/plugins/agent-pack/runtime/agent_pack_desktop.py +92 -0
- package/runtime/plugins/agent-pack/runtime/agent_pack_ext_common.py +251 -0
- package/runtime/plugins/agent-pack/runtime/agent_pack_inventory.py +989 -0
- package/runtime/plugins/agent-pack/runtime/agent_pack_mcp_write.py +447 -0
- package/runtime/plugins/agent-pack/runtime/agent_pack_nudge.py +29 -4
- package/runtime/plugins/agent-pack/runtime/agent_pack_relocate.py +385 -0
- package/runtime/plugins/agent-pack/runtime/agent_pack_scope.py +233 -0
- package/runtime/plugins/agent-pack/runtime/agenthelm.py +183 -14
- package/runtime/plugins/agent-pack/runtime/locale/en.json +250 -1
- package/runtime/plugins/agent-pack/runtime/mcp_server.py +12 -0
- package/runtime/plugins/agent-pack/runtime/nudge_text.py +8 -2
- package/runtime/plugins/agent-pack/runtime/user_settings.py +2 -1
- package/runtime/plugins/agent-pack/skills/agent-pack/SKILL.md +15 -0
- package/runtime/plugins/agents-init/.codex-plugin/plugin.json +1 -1
- package/runtime/plugins/agents-init/content.json +4 -2
- package/runtime/plugins/agents-init/plugin.json +1 -1
- package/runtime/plugins/agents-init/skills/agents-init/SKILL.md +2 -0
- package/runtime/plugins/agents-init/skills/agents-init/launcher.en.sh +93 -0
- package/runtime/plugins/agents-init/skills/agents-init/project.schema.json +27 -0
- package/runtime/plugins/agents-init/skills/agents-init/scripts/baseline.py +4 -1
- package/runtime/plugins/agents-init/skills/agents-init/scripts/init_project.py +24 -9
- package/runtime/plugins/agents-init/skills/agents-init/skill.json +1 -1
- package/runtime/plugins/opinion-manager/.codex-plugin/plugin.json +1 -1
- package/runtime/plugins/opinion-manager/catalog/README.md +3 -1
- package/runtime/plugins/opinion-manager/catalog/rules/om.align-requirements/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.assumptions-authority/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.batch-questions/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.bilingual-terms/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.calculations/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.chinese-response/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.clean-deliverable/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.complete-options/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.conclusion-first/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.concrete-titles/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.consistent-items/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.device-readable/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.editable-diagrams/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.evidence-inference/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.maintenance-chinese/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.maintenance-project-language/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.markdown-structure/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.portable-files/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.report-context/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.report-formats/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.report-review/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.response-brief/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.response-dense/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.rules-tools/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.semantic-wrap/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.solutions-proportional/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.solutions-three-level/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.tables-compact/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.tables-list-first/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.test-evidence/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/rules/om.versioned-files/versions/1.1.0.json +34 -0
- package/runtime/plugins/opinion-manager/catalog/templates/delivery-standard/compact-tables/versions/1.1.0.json +32 -0
- package/runtime/plugins/opinion-manager/catalog/templates/delivery-standard/list-first/versions/1.1.0.json +32 -0
- package/runtime/plugins/opinion-manager/catalog/templates/development-standard/chinese-maintenance/versions/1.1.0.json +26 -0
- package/runtime/plugins/opinion-manager/catalog/templates/development-standard/project-language/versions/1.1.0.json +26 -0
- package/runtime/plugins/opinion-manager/catalog/templates/response-style/brief-chinese/versions/1.1.0.json +30 -0
- package/runtime/plugins/opinion-manager/catalog/templates/response-style/dense-chinese/versions/1.1.0.json +30 -0
- package/runtime/plugins/opinion-manager/catalog/templates/scenario/concise-project/versions/1.1.0.json +181 -0
- package/runtime/plugins/opinion-manager/catalog/templates/scenario/reviewed-project/versions/1.1.0.json +179 -0
- package/runtime/plugins/opinion-manager/catalog/templates/work-method/proportional/versions/1.1.0.json +31 -0
- package/runtime/plugins/opinion-manager/catalog/templates/work-method/three-level/versions/1.1.0.json +31 -0
- package/runtime/plugins/opinion-manager/content.json +44 -3
- package/runtime/plugins/opinion-manager/plugin.json +1 -1
- package/runtime/plugins/opinion-manager/references/inbox.en.md +25 -4
- package/runtime/plugins/opinion-manager/references/inbox.md +25 -4
- package/runtime/plugins/opinion-manager/references/profile.schema.json +19 -2
- package/runtime/plugins/opinion-manager/references/rule.schema.json +25 -3
- package/runtime/plugins/opinion-manager/references/versioned-template.schema.json +5 -4
- package/runtime/plugins/opinion-manager/references/versioning.md +89 -4
- package/runtime/plugins/opinion-manager/runtime/context.py +26 -19
- package/runtime/plugins/opinion-manager/runtime/inbox.py +400 -25
- package/runtime/plugins/opinion-manager/runtime/inbox_relations.py +106 -0
- package/runtime/plugins/opinion-manager/runtime/inbox_routes.py +132 -0
- package/runtime/plugins/opinion-manager/runtime/inbox_text.py +117 -11
- package/runtime/plugins/opinion-manager/runtime/lifecycle.py +35 -5
- package/runtime/plugins/opinion-manager/runtime/locale/en.json +137 -2
- package/runtime/plugins/opinion-manager/runtime/migrate.py +582 -0
- package/runtime/plugins/opinion-manager/runtime/opinion_manager.py +9 -4
- package/runtime/plugins/opinion-manager/runtime/rule_lines.py +247 -0
- package/runtime/plugins/opinion-manager/runtime/tags.py +217 -0
- package/runtime/plugins/opinion-manager/runtime/versioned.py +289 -41
- package/runtime/plugins/opinion-manager/skills/opinion-manager/SKILL.md +8 -7
- package/runtime/plugins/project-orchestrator/.codex-plugin/plugin.json +1 -1
- package/runtime/plugins/project-orchestrator/plugin.json +1 -1
- package/runtime/plugins/project-orchestrator/runtime/locale/en.json +305 -3
- package/runtime/plugins/project-orchestrator/runtime/private_paths.py +11 -1
- package/runtime/plugins/project-orchestrator/runtime/project_cli.py +101 -1
- package/runtime/plugins/project-orchestrator/runtime/project_demo.py +13 -1
- package/runtime/plugins/project-orchestrator/runtime/project_ext_actions.py +415 -0
- package/runtime/plugins/project-orchestrator/runtime/project_extensions.py +971 -0
- package/runtime/plugins/project-orchestrator/runtime/project_extensions_demo.py +86 -0
- package/runtime/plugins/project-orchestrator/runtime/project_menu.py +345 -2
- package/runtime/plugins/project-orchestrator/runtime/project_real.py +17 -1
- package/runtime/plugins/project-orchestrator/skills/project-orchestrator/SKILL.md +2 -0
|
@@ -1418,7 +1418,7 @@
|
|
|
1418
1418
|
"k 保留你的版本(默认)/ a 采用新模板(先备份{0})": "k keep your version (default) / a take the new template (backed up first{0})",
|
|
1419
1419
|
"请输入 {0} 或 d。": "Please enter {0} or d.",
|
|
1420
1420
|
"{0} {1}:{2}": "{0} {1}: {2}",
|
|
1421
|
-
"项目入口:不需要 AI Agent 的项目自助菜单与命令。\n\n agenthelm project 交互菜单(终端里);非终端时打印概览后退出,不等待输入\n agenthelm project find <词…> 找资料:关键词、日期(2025-12、10月)、--type、--in;--open N 打开第 N 项\n agenthelm project open <路径> 打开资料(--reveal 显示所在目录,--copy 复制路径)\n agenthelm project refs <路径> 谁引用它 / 它引用谁\n agenthelm project progress [词] 看进展:按状态分组;--status 只看一种,--all 含已完成\n agenthelm project show <事项> 事项详情:编号、旧编号、别名或标题片段都可以\n agenthelm project guide 项目指南\n agenthelm project health 检查项目与环境(含脚手架是否与最新版一致);有必须处理的项时退出码为 1\n agenthelm project fix [项…] 修复与更新:默认只预览,--apply 执行;--keep / --accept / --append 选择定制文件\n agenthelm project fix add-skeleton [路径…] 按模板补上缺少的骨架文件(已有文件不动)\n agenthelm project fix profile [字段…] 只改所选 Profile 字段,预览里有 diff\n agenthelm project fix --accept-current --reason … 把当前全部脚手架差异一次性记为“保留现状”(默认预览,--apply 写入)\n agenthelm project fix --skip <ID> --reason … 永久跳过某个发现(记入随项目同步的决定文件);--unskip <ID> 撤销\n agenthelm project record <事项|new> 记录事项:默认只预览,--apply 写入\n agenthelm project tools [工具] 项目自行声明的工具;--run --apply 执行\n agenthelm project sop <子命令> 流程(SOP):list / index / show / new / interview / defaults / preflight /\n activate / run / step / status / due / validate …;写入默认只预览,--apply 执行\n agenthelm project capabilities 各项能力当前是否可用、为什么\n\n项目根目录的启动器(缺省 ./menu)等同于 agenthelm project --project <项目根目录>。\n全局选项可写在任意位置:--project <目录>、--output text|json、--no-input、--offline。\n--demo study|personal|research|blank 使用内置的虚构项目体验,可加 --demo-fault\nindex-broken|offline|runtime-old|conflict;演示结果都标注「演示」,不读写真实文件。\n\n退出码:0 成功;1 没有结果或有必须处理的项;2 用法错误(含 --skip 了现在不存在的发现 ID);\n3 运行时与项目入口不兼容;4 能力当前不可用(含决定文件损坏);5 写入冲突(别人刚改过,\n含决定文件刚被另一台机器同步更新);6 执行失败;130 中断。\n脚手架差异只算“建议处理”或“信息”,不会让 health 退出码变成 1(只有“必须处理”的项才会)。\n": "Project entry: a self-service project menu and commands that need no AI Agent.\n\n agenthelm project interactive menu (in a terminal); without a terminal it prints the overview and exits without waiting for input\n agenthelm project find <words…> find files: keywords, dates (2025-12, October), --type, --in; --open N opens item N\n agenthelm project open <path> open a file (--reveal shows its directory, --copy copies the path)\n agenthelm project refs <path> who references it / what it references\n agenthelm project progress [words] see progress: grouped by status; --status shows one group, --all includes finished items\n agenthelm project show <item> item details: the ID, an old ID, an alias or a fragment of the title all work\n agenthelm project guide project guide\n agenthelm project health check the project and environment (including whether the scaffold matches the latest version); exit code 1 when something must be handled\n agenthelm project fix [items…] fix and update: preview by default, --apply runs it; --keep / --accept / --append choose for customized files\n agenthelm project fix add-skeleton [paths…] add missing skeleton files from the template (existing files are left alone)\n agenthelm project fix profile [fields…] change only the chosen Profile fields; the preview has a diff\n agenthelm project fix --accept-current --reason … record all current scaffold differences as \\\"keep as is\\\" in one go (preview by default, --apply to write)\n agenthelm project fix --skip <ID> --reason … skip a finding permanently (recorded in the decisions file synced with the project); --unskip <ID> withdraws it\n agenthelm project record <item|new> record an item: preview by default, --apply writes\n agenthelm project tools [tool] tools the project declares itself; --run --apply runs one\n agenthelm project sop <subcommand> procedures (SOP): list / index / show / new / interview / defaults / preflight /\n activate / run / step / status / due / validate …; writes are preview-only by default, --apply runs them\n agenthelm project capabilities whether each capability is available right now, and why\n\nThe launcher in the project root (./menu by default) is the same as agenthelm project --project <project root>.\nGlobal options can go anywhere: --project <directory>, --output text|json, --no-input, --offline.\n--demo study|personal|research|blank tries a built-in fictional project; add --demo-fault\nindex-broken|offline|runtime-old|conflict; demo results are all marked as demo and read or write no real files.\n\nExit codes: 0 success; 1 no result or something must be handled; 2 usage error (including --skip of a finding ID that does not exist now);\n3 the runtime is incompatible with the project entry; 4 a capability is unavailable (including a damaged decisions file); 5 write conflict (someone just changed it,\nincluding a decisions file just updated from another machine); 6 execution failed; 130 interrupted.\nScaffold differences count only as \"suggested\" or \"info\" and never make the health exit code 1 (only \"must handle\" items do).\n",
|
|
1421
|
+
"项目入口:不需要 AI Agent 的项目自助菜单与命令。\n\n agenthelm project 交互菜单(终端里);非终端时打印概览后退出,不等待输入\n agenthelm project find <词…> 找资料:关键词、日期(2025-12、10月)、--type、--in;--open N 打开第 N 项\n agenthelm project open <路径> 打开资料(--reveal 显示所在目录,--copy 复制路径)\n agenthelm project refs <路径> 谁引用它 / 它引用谁\n agenthelm project progress [词] 看进展:按状态分组;--status 只看一种,--all 含已完成\n agenthelm project show <事项> 事项详情:编号、旧编号、别名或标题片段都可以\n agenthelm project guide 项目指南\n agenthelm project health 检查项目与环境(含脚手架是否与最新版一致);有必须处理的项时退出码为 1\n agenthelm project fix [项…] 修复与更新:默认只预览,--apply 执行;--keep / --accept / --append 选择定制文件\n agenthelm project fix add-skeleton [路径…] 按模板补上缺少的骨架文件(已有文件不动)\n agenthelm project fix profile [字段…] 只改所选 Profile 字段,预览里有 diff\n agenthelm project fix --accept-current --reason … 把当前全部脚手架差异一次性记为“保留现状”(默认预览,--apply 写入)\n agenthelm project fix --skip <ID> --reason … 永久跳过某个发现(记入随项目同步的决定文件);--unskip <ID> 撤销\n agenthelm project record <事项|new> 记录事项:默认只预览,--apply 写入\n agenthelm project tools [工具] 项目自行声明的工具;--run --apply 执行\n agenthelm project sop <子命令> 流程(SOP):list / index / show / new / interview / defaults / preflight /\n activate / run / step / status / due / validate …;写入默认只预览,--apply 执行\n agenthelm project extensions <list|dups|show|check> 技能与 MCP 清单(只读):list 按客户端/作用域/重复分组,dups 重复组,\n show <引用|名字|分组> 详情,check 机械体检;MCP 只显示名字、作用域、指纹前缀、变量名\n agenthelm project capabilities 各项能力当前是否可用、为什么\n\n项目根目录的启动器(缺省 ./menu)等同于 agenthelm project --project <项目根目录>。\n全局选项可写在任意位置:--project <目录>、--output text|json、--no-input、--offline。\n--demo study|personal|research|blank 使用内置的虚构项目体验,可加 --demo-fault\nindex-broken|offline|runtime-old|conflict;演示结果都标注「演示」,不读写真实文件。\n\n退出码:0 成功;1 没有结果或有必须处理的项;2 用法错误(含 --skip 了现在不存在的发现 ID);\n3 运行时与项目入口不兼容;4 能力当前不可用(含决定文件损坏);5 写入冲突(别人刚改过,\n含决定文件刚被另一台机器同步更新);6 执行失败;130 中断。\n脚手架差异只算“建议处理”或“信息”,不会让 health 退出码变成 1(只有“必须处理”的项才会)。\n": "Project entry: a self-service project menu and commands that need no AI Agent.\n\n agenthelm project interactive menu (in a terminal); without a terminal it prints the overview and exits without waiting for input\n agenthelm project find <words…> find files: keywords, dates (2025-12, October), --type, --in; --open N opens item N\n agenthelm project open <path> open a file (--reveal shows its directory, --copy copies the path)\n agenthelm project refs <path> who references it / what it references\n agenthelm project progress [words] see progress: grouped by status; --status shows one group, --all includes finished items\n agenthelm project show <item> item details: the ID, an old ID, an alias or a fragment of the title all work\n agenthelm project guide project guide\n agenthelm project health check the project and environment (including whether the scaffold matches the latest version); exit code 1 when something must be handled\n agenthelm project fix [items…] fix and update: preview by default, --apply runs it; --keep / --accept / --append choose for customized files\n agenthelm project fix add-skeleton [paths…] add missing skeleton files from the template (existing files are left alone)\n agenthelm project fix profile [fields…] change only the chosen Profile fields; the preview has a diff\n agenthelm project fix --accept-current --reason … record all current scaffold differences as \\\"keep as is\\\" in one go (preview by default, --apply to write)\n agenthelm project fix --skip <ID> --reason … skip a finding permanently (recorded in the decisions file synced with the project); --unskip <ID> withdraws it\n agenthelm project record <item|new> record an item: preview by default, --apply writes\n agenthelm project tools [tool] tools the project declares itself; --run --apply runs one\n agenthelm project sop <subcommand> procedures (SOP): list / index / show / new / interview / defaults / preflight /\n activate / run / step / status / due / validate …; writes are preview-only by default, --apply runs them\n agenthelm project extensions <list|dups|show|check> skills & MCP inventory (read-only): list groups by client/scope/duplicate, dups shows duplicate groups,\n show <ref|name|group> gives details, check runs mechanical checks; MCP servers show only name, scope, fingerprint prefix and variable names\n agenthelm project capabilities whether each capability is available right now, and why\n\nThe launcher in the project root (./menu by default) is the same as agenthelm project --project <project root>.\nGlobal options can go anywhere: --project <directory>, --output text|json, --no-input, --offline.\n--demo study|personal|research|blank tries a built-in fictional project; add --demo-fault\nindex-broken|offline|runtime-old|conflict; demo results are all marked as demo and read or write no real files.\n\nExit codes: 0 success; 1 no result or something must be handled; 2 usage error (including --skip of a finding ID that does not exist now);\n3 the runtime is incompatible with the project entry; 4 a capability is unavailable (including a damaged decisions file); 5 write conflict (someone just changed it,\nincluding a decisions file just updated from another machine); 6 execution failed; 130 interrupted.\nScaffold differences count only as \"suggested\" or \"info\" and never make the health exit code 1 (only \"must handle\" items do).\n",
|
|
1422
1422
|
"信息": "Info",
|
|
1423
1423
|
"接受现状": "Accept current state",
|
|
1424
1424
|
" 查看逐项:health --details(或 --output json);这些都不需要:fix --accept-current --reason …;单项:fix --skip <ID> --reason …": " Item by item: health --details (or --output json); need none of these: fix --accept-current --reason …; a single one: fix --skip <ID> --reason …",
|
|
@@ -1465,5 +1465,307 @@
|
|
|
1465
1465
|
"(要求了三方合并,但历史模板无法按当前方式重新渲染,无法合并;没有改动任何文件,请改选保留 / 追加 / 采用新模板)": " (a three-way merge was requested, but the historical template cannot be re-rendered the current way; no files changed. Choose keep / append / accept the new template instead)",
|
|
1466
1466
|
"(要求了三方合并,但历史模板渲染结果与内容锁摘要不一致,无法合并;没有改动任何文件,请改选保留 / 追加 / 采用新模板)": " (a three-way merge was requested, but the historical template's render does not match the content-lock digest; no files changed. Choose keep / append / accept the new template instead)",
|
|
1467
1467
|
"{0}({1} 项,展开 {2} 项)": "{0} ({1} shown, {2} expanded)",
|
|
1468
|
-
"这个发现不支持跳过:{0}(它是需要处理的问题,没有可记录的决定;处理后会自动消失)": "This finding cannot be skipped: {0} (it is a problem to fix, with no decision to record; it disappears once fixed)"
|
|
1469
|
-
|
|
1468
|
+
"这个发现不支持跳过:{0}(它是需要处理的问题,没有可记录的决定;处理后会自动消失)": "This finding cannot be skipped: {0} (it is a problem to fix, with no decision to record; it disappears once fixed)",
|
|
1469
|
+
"需要 agent-pack 提供 agenthelm inventory:更新 agent-pack 或运行时后再试;本项目其他功能不受影响": "agent-pack must provide agenthelm inventory: update agent-pack or the runtime and try again; the rest of this project is unaffected",
|
|
1470
|
+
"技能与 MCP": "Skills & MCP",
|
|
1471
|
+
"技能与 MCP:只读清单、重复、详情与机械体检": "Skills & MCP: read-only inventory, duplicates, details and mechanical checks",
|
|
1472
|
+
"按客户端、作用域或重复分组列出技能与 MCP": "List skills and MCP servers grouped by client, scope or duplicate",
|
|
1473
|
+
"技能体检:只列机械事实与阈值,不打分、不排名、不建议删除": "Skill check: mechanical facts and thresholds only; no scores, no ranking, no suggestion to delete",
|
|
1474
|
+
"只看技能或只看 MCP": "Show only skills or only MCP servers",
|
|
1475
|
+
"只看某个客户端,如 claude、codex、cursor": "Show one client only, e.g. claude, codex, cursor",
|
|
1476
|
+
"只看某个作用域,如 user、project、local": "Show one scope only, e.g. user, project, local",
|
|
1477
|
+
"分组方式(默认 client)": "How to group (default client)",
|
|
1478
|
+
"同时比较 description 文本相似度(阈值 0.6,没有外部依据,只作提示)": "Also compare description text similarity (threshold 0.6, no external basis, a hint only)",
|
|
1479
|
+
"重复组:同名、同指纹、同名不同内容;只在官方文档写明优先级时才说哪份生效": "Duplicate groups: same name, same fingerprint, same name with different content; says which one takes effect only where the official docs state a precedence",
|
|
1480
|
+
"条目详情(引用 <kind>:<名>@<客户端>:<作用域>、条目名或分组 id);MCP 不显示命令参数与任何值": "Entry details (a ref <kind>:<name>@<client>:<scope>, an entry name or a group id); MCP servers show no command arguments and no values",
|
|
1481
|
+
"演示:使用固定的示例清单,不读取这台机器": "Demo: uses a fixed sample inventory and does not read this machine",
|
|
1482
|
+
"Agent Skills 规范 agentskills.io/specification": "Agent Skills specification agentskills.io/specification",
|
|
1483
|
+
"Claude Code Skills 文档 code.claude.com/docs/en/skills": "Claude Code Skills docs code.claude.com/docs/en/skills",
|
|
1484
|
+
"用户级": "user level",
|
|
1485
|
+
"项目级": "project level",
|
|
1486
|
+
"本机项目级": "local project level",
|
|
1487
|
+
"无 description": "no description",
|
|
1488
|
+
"描述会被截断": "description gets truncated",
|
|
1489
|
+
"体积大": "large",
|
|
1490
|
+
"名称与目录不一致": "name differs from directory",
|
|
1491
|
+
"name 含禁用字符": "name has forbidden characters",
|
|
1492
|
+
"frontmatter 不全": "frontmatter incomplete",
|
|
1493
|
+
"过期": "outdated",
|
|
1494
|
+
"{0}:生效:未知({1})": "{0}: takes effect: unknown ({1})",
|
|
1495
|
+
"同名 · 同指纹": "same name · same fingerprint",
|
|
1496
|
+
"同名 · 指纹不同(内容漂移)": "same name · different fingerprint (content drift)",
|
|
1497
|
+
"同名 · 证据不足": "same name · not enough evidence",
|
|
1498
|
+
"不同名 · 同指纹": "different names · same fingerprint",
|
|
1499
|
+
"同名 · 内容相同": "same name · same content",
|
|
1500
|
+
"同名 · 内容不同(漂移)": "same name · different content (drift)",
|
|
1501
|
+
"MCP 工具定义的上下文成本:未知(需要连接服务器,本命令不连接)": "Context cost of MCP tool definitions: unknown (needs a server connection, which this command does not make)",
|
|
1502
|
+
"未知": "unknown",
|
|
1503
|
+
"未找到 agent-pack 的 inventory:没有可运行的 agenthelm 命令": "agent-pack inventory not found: there is no runnable agenthelm command",
|
|
1504
|
+
"当前的 agenthelm 没有 inventory 命令(需要更新 agent-pack)": "this agenthelm has no inventory command (update agent-pack)",
|
|
1505
|
+
"agenthelm inventory 返回的不是对象": "agenthelm inventory did not return an object",
|
|
1506
|
+
"inventory 没有 schema_version:无法确认字段含义,不猜测": "inventory has no schema_version: the meaning of its fields cannot be confirmed, so nothing is guessed",
|
|
1507
|
+
"inventory 的 skills 或 mcps 不是列表": "skills or mcps in the inventory is not a list",
|
|
1508
|
+
"优先级未文档化,不下结论": "precedence is not documented, no conclusion drawn",
|
|
1509
|
+
"description 相似度提示默认不做;加 --include-description 才比较(文本只在本机内存里用)": "description similarity hints are off by default; add --include-description to compare (the text is only used in memory on this machine)",
|
|
1510
|
+
"初始值 0.6,没有外部依据;只作提示": "initial value 0.6, no external basis; a hint only",
|
|
1511
|
+
"来源 {0}": "origin {0}",
|
|
1512
|
+
"需要 agent-pack 提供 agenthelm inventory;更新 agent-pack 或运行时后再试。其他功能不受影响。": "agent-pack must provide agenthelm inventory; update agent-pack or the runtime and try again. Other features are unaffected.",
|
|
1513
|
+
"证据:● file(读到文件)· ⚙ setting · ⌘ cli · ? 未知(不做结论)": "Evidence: ● file (read from a file) · ⚙ setting · ⌘ cli · ? unknown (no conclusion drawn)",
|
|
1514
|
+
"重复 MCP({0} 组)": "Duplicate MCP servers (groups: {0})",
|
|
1515
|
+
"重复技能({0} 组)": "Duplicate skills (groups: {0})",
|
|
1516
|
+
"(跨客户端)": " (across clients)",
|
|
1517
|
+
"类型": "Type",
|
|
1518
|
+
"客户端": "Client",
|
|
1519
|
+
"作用域": "Scope",
|
|
1520
|
+
"存储": "Store",
|
|
1521
|
+
"证据": "Evidence",
|
|
1522
|
+
"技能体检:只列机械事实与阈值;不打分、不排名、不建议删除": "Skill check: mechanical facts and thresholds only; no scores, no ranking, no suggestion to delete",
|
|
1523
|
+
"每会话 description 加载成本": "Per-session description load cost",
|
|
1524
|
+
"输出不是 JSON": "the output is not JSON",
|
|
1525
|
+
"有副本的证据为未知": "a copy has unknown evidence",
|
|
1526
|
+
"名字不同,不构成同名覆盖": "the names differ, so this is not a same-name override",
|
|
1527
|
+
"各客户端独立加载,彼此不冲突": "each client loads its own; they do not conflict",
|
|
1528
|
+
"name 含 < >、零宽或控制字符": "name contains < >, zero-width or control characters",
|
|
1529
|
+
"Claude Code 会拒绝这样的 name": "Claude Code rejects such a name",
|
|
1530
|
+
"版本不同即提示;不用修改时间推断": "any version difference is shown; modification time is not used to infer it",
|
|
1531
|
+
"估算,仅用于排序与对比;字节÷4(拉丁文)至÷2(中文),没有一手依据": "estimate, for ordering and comparison only; bytes ÷4 (Latin text) to ÷2 (Chinese), no primary source",
|
|
1532
|
+
"{0} 个技能缺少 {1}:这一项没有检查(inventory 未提供)": "Skills lacking {1}: {0}; this check was not run (the inventory did not provide it)",
|
|
1533
|
+
"含内联密钥值": "has an inline secret value",
|
|
1534
|
+
"指纹 未知": "fingerprint unknown",
|
|
1535
|
+
"技能 {0} 个 · MCP {1} 个 · 客户端 {2}": "Skills: {0} · MCP servers: {1} · clients: {2}",
|
|
1536
|
+
"重复 {0} 组(MCP {1} · 技能 {2}) 未知 {3} 项(证据不足,不做结论)": "Duplicate groups: {0} (MCP {1} · skills {2}) unknown: {3} (not enough evidence, no conclusion drawn)",
|
|
1537
|
+
"{0} · 证据 {1}": "{0} · evidence {1}",
|
|
1538
|
+
"没有发现重复。": "No duplicates found.",
|
|
1539
|
+
" 跨客户端重复:各客户端加载各自的配置,可保留,不推荐退役": " Duplicate across clients: each client loads its own config; it can stay, retiring one is not recommended",
|
|
1540
|
+
"是": "yes",
|
|
1541
|
+
"SKILL.md 体积": "SKILL.md size",
|
|
1542
|
+
"SKILL.md 行数": "SKILL.md lines",
|
|
1543
|
+
"description 字节": "description bytes",
|
|
1544
|
+
"description 字符": "description characters",
|
|
1545
|
+
"目录体积 / 文件数": "Directory size / files",
|
|
1546
|
+
"内容摘要(前 8 位)": "Content digest (first 8)",
|
|
1547
|
+
"来源": "Origin",
|
|
1548
|
+
"最新已知版本": "Latest known version",
|
|
1549
|
+
"是否加载": "Loaded",
|
|
1550
|
+
"传输": "Transport",
|
|
1551
|
+
"指纹(前 8 位)": "Fingerprint (first 8)",
|
|
1552
|
+
"环境变量名": "Environment variable names",
|
|
1553
|
+
"远程主机": "Remote host",
|
|
1554
|
+
" 不显示命令行参数、url 全文、环境变量值与 headers。": " Command arguments, the full URL, environment variable values and headers are never shown.",
|
|
1555
|
+
"被引用": "Referenced by",
|
|
1556
|
+
"机械发现": "Mechanical findings",
|
|
1557
|
+
"没有机械发现。": "No mechanical findings.",
|
|
1558
|
+
" 没有技能条目。": " No skill entries.",
|
|
1559
|
+
"只含本项目与本机的已知存储;没在本机同步过的项目不可见": "Only this project and the known stores on this machine are included; projects never synced on this machine are not visible",
|
|
1560
|
+
"agenthelm inventory 运行失败(退出码 {0}):{1}": "agenthelm inventory failed (exit code {0}): {1}",
|
|
1561
|
+
"无详情": "no details",
|
|
1562
|
+
"inventory 的 schema_version {0} 超出本菜单支持的主版本 {1}": "the inventory schema_version {0} is outside the major version {1} this menu supports",
|
|
1563
|
+
"不同客户端之间各自独立加载,彼此不冲突": "different clients load their own and do not conflict",
|
|
1564
|
+
"缺 description": "description is missing",
|
|
1565
|
+
"规范要求必填": "required by the specification",
|
|
1566
|
+
"目录名与 name 不一致": "the directory name differs from name",
|
|
1567
|
+
"规范要求一致": "the specification requires them to match",
|
|
1568
|
+
"frontmatter 缺少必填字段": "frontmatter lacks a required field",
|
|
1569
|
+
"规范要求 name 与 description": "the specification requires name and description",
|
|
1570
|
+
"inventory 标记该技能有新版本": "the inventory marks this skill as having a newer version",
|
|
1571
|
+
"不用修改时间推断": "modification time is not used to infer it",
|
|
1572
|
+
"技能超过 {0} 个,没有做 description 相似度比较": "Too many skills (more than {0}): the description similarity comparison was skipped",
|
|
1573
|
+
"过期:{0} 个技能的来源或版本无法识别,显示为未知(不用修改时间推断)": "Outdated: skills whose origin or version cannot be identified: {0}, shown as unknown (modification time is not used to infer it)",
|
|
1574
|
+
";另有 {0} 个未计入": "; not counted: {0}",
|
|
1575
|
+
"每会话 description 常驻:{0} ≈ {1}(证据:{2}){3}": "Resident description per session: {0} ≈ {1} (evidence: {2}){3}",
|
|
1576
|
+
"没有匹配的条目。": "No matching entries.",
|
|
1577
|
+
"否": "no",
|
|
1578
|
+
" {0}:{1}({2} 个已计入,{3} 个未计入;证据 {4})": " {0}: {1} (counted: {2}, not counted: {3}; evidence {4})",
|
|
1579
|
+
" 没有达到阈值的技能对。": " No skill pairs reach the threshold.",
|
|
1580
|
+
"用 extensions list 查看全部条目的引用(ref)": "Run extensions list to see the ref of every entry",
|
|
1581
|
+
"等待 agenthelm 超过 {0} 秒": "agenthelm did not answer within {0} seconds",
|
|
1582
|
+
"无法运行 agenthelm inventory:{0}": "cannot run agenthelm inventory: {0}",
|
|
1583
|
+
"agenthelm inventory 没有返回可解析的结果:{0}": "agenthelm inventory returned nothing parseable: {0}",
|
|
1584
|
+
"生效:未知(证据不足:{0})": "Takes effect: unknown (not enough evidence: {0})",
|
|
1585
|
+
"来源 {0} 已安装 {1},本机已知最新 {2}": "origin {0} has {1} installed; the latest known on this machine is {2}",
|
|
1586
|
+
"重复 {0}": "duplicate {0}",
|
|
1587
|
+
"指纹 {0}…": "fingerprint {0}…",
|
|
1588
|
+
"每会话 description 常驻:{0} 未知(没有可计入的条目){1}": "Resident description per session: {0} unknown (no entries to count){1}",
|
|
1589
|
+
" 分组 {0}": " group {0}",
|
|
1590
|
+
"被 {0} 条规则引用": "referenced by rules: {0}",
|
|
1591
|
+
" {0}:未知(没有可计入的条目;{1} 个未计入)": " {0}: unknown (no entries to count; not counted: {1})",
|
|
1592
|
+
" 粗估 {0}–{1} token({2})": " token estimate: {0}–{1} ({2})",
|
|
1593
|
+
"description 相似(机械判断,不代表功能重复;阈值 {0},没有外部依据)": "Similar descriptions (mechanical judgement, not proof of duplicate function; threshold {0}, no external basis)",
|
|
1594
|
+
"没有这个条目:{0}": "No such entry: {0}",
|
|
1595
|
+
"“{0}”对应多个条目,请用完整引用": "\"{0}\" matches several entries; use the full ref",
|
|
1596
|
+
"{0} 字符": "{0} characters",
|
|
1597
|
+
"SKILL.md {0} 行,超过规范建议的 {1} 行": "SKILL.md is {0} lines, above the {1} lines the specification suggests",
|
|
1598
|
+
"{0} 行(建议值,不是强制)": "{0} lines (a suggestion, not a requirement)",
|
|
1599
|
+
"(只读)": " (read-only)",
|
|
1600
|
+
" 其中 {0} 个按 Claude 的 {1} 字符截断上限折算": " scaled to Claude's {1}-character cut-off: {0}",
|
|
1601
|
+
"description {0} 字符,超过规范上限 {1}": "description is {0} characters, above the specification limit of {1}",
|
|
1602
|
+
"同名技能内容不一致({0} 份),来源是否相同需要 origin 才能判断": "Same-named skills differ in content (copies: {0}); whether they share an origin needs origin data to tell",
|
|
1603
|
+
" {0} · {1} · {2} {3} 个": " {0} · {1} · {2} {3}",
|
|
1604
|
+
"(阈值:{0};来源:{1})": " (threshold: {0}; source: {1})",
|
|
1605
|
+
"{0}:两份都会加载,不存在屏蔽(inventory 给出的结论)": "{0}: both copies load; nothing is shadowed (as concluded by the inventory)",
|
|
1606
|
+
"{0}:生效的是 {1}({2};inventory 给出的结论)": "{0}: {1} takes effect ({2}; as concluded by the inventory)",
|
|
1607
|
+
"未给出规则": "no rule given",
|
|
1608
|
+
"inventory 没有给出结论": "the inventory gave no conclusion",
|
|
1609
|
+
"依据:{0}": "basis: {0}",
|
|
1610
|
+
"description 与 when_to_use 合计 {0} 字符,超过 Claude Code 技能列表截断上限 {1},超出部分会被截断": "description and when_to_use total {0} characters, above the {1}-character cut-off of the Claude Code skill list; the excess is truncated",
|
|
1611
|
+
"企业级": "enterprise level",
|
|
1612
|
+
"应用级": "app level",
|
|
1613
|
+
"(命令:extensions dups)": " (command: extensions dups)",
|
|
1614
|
+
"本项目(仅在此项目里生效)": "This project (takes effect only here)",
|
|
1615
|
+
"所有项目共用(用户级)": "Shared by all projects (user level)",
|
|
1616
|
+
"仅 Desktop 应用": "Desktop app only",
|
|
1617
|
+
"作用域未知": "Scope unknown",
|
|
1618
|
+
"只影响 AI 客户端加载(可能重复占用上下文,或发生同名覆盖);不影响本菜单与项目文件": "Only affects what the AI clients load (it may take up context twice, or a same-name override may happen); this menu and the project files are unaffected",
|
|
1619
|
+
"已同步过的其他项目": "Other projects synced before",
|
|
1620
|
+
"其他项目:inventory 没有提供已知项目列表,这里只显示本项目;没在本机同步过的项目不可见": "Other projects: the inventory gave no list of known projects, so only this project is shown; projects never synced on this machine are not visible",
|
|
1621
|
+
"(跨客户端的重复不计入)": " (duplicates across clients are not counted)",
|
|
1622
|
+
"被引用 —": "referenced by —",
|
|
1623
|
+
"发现 {0} 组重复的技能或 MCP": "Duplicate skills or MCP servers found (groups: {0})",
|
|
1624
|
+
"在「技能与 MCP」里查看重复(只读)": "See the duplicates under \"Skills & MCP\" (read-only)",
|
|
1625
|
+
"……共 {0} 组": "… groups in all: {0}",
|
|
1626
|
+
"技能、MCP 的清单、重复与体检(只读)": "Skills and MCP servers: inventory, duplicates and checks (read-only)",
|
|
1627
|
+
"按客户端看": "By client",
|
|
1628
|
+
"客户端 → 作用域 → 条目": "client → scope → entry",
|
|
1629
|
+
"按项目看": "By project",
|
|
1630
|
+
"本项目 / 所有项目共用(只列本机已知存储)": "this project / shared by all projects (known stores on this machine only)",
|
|
1631
|
+
"按重复看": "By duplicate",
|
|
1632
|
+
"同名 · 同指纹 · 同名不同内容": "same name · same fingerprint · same name, different content",
|
|
1633
|
+
"技能体检": "Skill check",
|
|
1634
|
+
"缺 description · 体积 · 加载成本 · 过期": "missing description · size · load cost · outdated",
|
|
1635
|
+
"移动或复制": "Move or copy",
|
|
1636
|
+
"在作用域、客户端之间迁移(先预览)": "migrate between scopes and clients (preview first)",
|
|
1637
|
+
"设置生效范围": "Set where it takes effect",
|
|
1638
|
+
"全局 / 仅此项目(先预览)": "global / this project only (preview first)",
|
|
1639
|
+
" 「未知」表示证据不足,不做结论。命令行:extensions list / dups / show / check(--output json)。": " \"unknown\" means not enough evidence, so no conclusion is drawn. Command line: extensions list / dups / show / check (--output json).",
|
|
1640
|
+
"技能与 MCP · 按客户端看": "Skills & MCP · by client",
|
|
1641
|
+
"技能与 MCP · 按项目看": "Skills & MCP · by project",
|
|
1642
|
+
"技能与 MCP · 按重复看": "Skills & MCP · by duplicate",
|
|
1643
|
+
"重复": "Duplicates",
|
|
1644
|
+
"\n 输入序号;或输入条目名直接看详情。 ? 帮助 · 回车返回": "\n Type a number; or type an entry name to see its details. ? help · Enter to go back",
|
|
1645
|
+
"输入条目名看详情 · 回车返回": "type an entry name for details · Enter to go back",
|
|
1646
|
+
"条目": "Entry",
|
|
1647
|
+
"序号看这一组的成员详情 · 回车返回": "a number shows the members of that group · Enter to go back",
|
|
1648
|
+
"技能与 MCP · 技能体检": "Skills & MCP · skill check",
|
|
1649
|
+
"d 同时比较 description 相似度(只作提示)· 回车返回": "d also compares description similarity (a hint only) · Enter to go back",
|
|
1650
|
+
"体检": "Check",
|
|
1651
|
+
"本版尚未提供": "not available in this version",
|
|
1652
|
+
"这一项本版尚未提供;现在只能看,不能改。": "This is not available in this version; for now you can look but not change anything.",
|
|
1653
|
+
" 1–4 进入只读的清单;输入条目名(或 kind:名@客户端:作用域)看详情;回车返回,q 退出。": " 1–4 open the read-only views; type an entry name (or kind:name@client:scope) for details; Enter goes back, q quits.",
|
|
1654
|
+
"此类重复(跨客户端或证据不足)本版没有写入动作": "This kind of duplicate (across clients, or with insufficient evidence) has no write action in this version",
|
|
1655
|
+
"更新 agent-pack 或运行时(需要 agenthelm relocate / dedupe)后再试": "Update agent-pack or the runtime (agenthelm relocate / dedupe are needed) and try again",
|
|
1656
|
+
"确定": "certain",
|
|
1657
|
+
"尽力而为(需在客户端里确认)": "best effort (confirm in the client)",
|
|
1658
|
+
"无法承诺(只保证文件改动,不保证客户端行为)": "cannot promise (only the file change is guaranteed, not client behavior)",
|
|
1659
|
+
"收窄": "narrow",
|
|
1660
|
+
"不变": "unchanged",
|
|
1661
|
+
"放宽:此后所有项目都会看到它": "widen: every project will see it from now on",
|
|
1662
|
+
"已应用": "applied",
|
|
1663
|
+
"无需写入(客户端已原生加载)": "nothing to write (the client already loads it natively)",
|
|
1664
|
+
"只给手工步骤,没有写入": "manual steps only, nothing written",
|
|
1665
|
+
"失败,已回滚": "failed, rolled back",
|
|
1666
|
+
"已拒绝,没有写入": "refused, nothing written",
|
|
1667
|
+
"没有变化": "no change",
|
|
1668
|
+
"预览之后内容有变化(摘要不一致):请重新预览,再用新的 plan_digest 确认": "Something changed after the preview (digest mismatch): preview again, then confirm with the new plan_digest",
|
|
1669
|
+
"计划有 blocked 项,不可执行": "The plan has blocked items and cannot be executed",
|
|
1670
|
+
"未找到 agent-pack 的 agenthelm 命令": "The agent-pack agenthelm command was not found",
|
|
1671
|
+
"--apply 需要 --expect-plan <预览里的 plan_digest>": "--apply needs --expect-plan <the plan_digest from the preview>",
|
|
1672
|
+
"请选择且只选择一种处置:--keep <ref> --retire-others、--keep-all --note …、--ignore、--unignore": "Choose exactly one disposition: --keep <ref> --retire-others, --keep-all --note ..., --ignore, --unignore",
|
|
1673
|
+
"--retire-others 需要 --keep <ref>": "--retire-others needs --keep <ref>",
|
|
1674
|
+
"--keep-all 需要 --note 说明原因": "--keep-all needs --note with the reason",
|
|
1675
|
+
"目标条目存在": "the target entry exists",
|
|
1676
|
+
"--effective 只能是 project 或 user": "--effective must be project or user",
|
|
1677
|
+
"agent-pack 的 sync / reconcile 预览(不加 --apply):看这条声明会让哪些文件变化": "Preview agent-pack sync / reconcile (without --apply) to see which files this declaration would change",
|
|
1678
|
+
"Profile 将发生的改动:": "Changes to the Profile:",
|
|
1679
|
+
"可粘贴的片段(合并进 Profile):": "Paste-ready snippet (merge into the Profile):",
|
|
1680
|
+
"先不加 --apply 运行一次预览,复制其中的 plan_digest": "Run a preview without --apply first and copy its plan_digest",
|
|
1681
|
+
"形如 skill:<名>@<客户端>:<作用域>;用 extensions list 查看": "Form: skill:<name>@<client>:<scope>; see extensions list",
|
|
1682
|
+
"目标内容摘要与源一致": "the target content digest equals the source",
|
|
1683
|
+
"源条目已归档": "the source entry is archived",
|
|
1684
|
+
"Profile 没有 capabilities 对象,不自动创建": "The Profile has no capabilities object; it is not created automatically",
|
|
1685
|
+
"条目的证据为未知:只读,不写声明": "The entry evidence is unknown: read-only, no declaration is written",
|
|
1686
|
+
"放宽(项目→用户级)需要 --allow-widen:此后所有项目都会看到它": "Widening (project to user level) needs --allow-widen: every project will see it from now on",
|
|
1687
|
+
"只写声明;条目要等 sync / reconcile 预览并应用后才真正移动,客户端行为工具不承诺": "Only the declaration is written; the entry moves only after sync / reconcile is previewed and applied, and the tool does not promise client behavior",
|
|
1688
|
+
"MCP 的实际写入由 agent-pack 的 sync 负责;本命令不编辑任何客户端配置": "The actual MCP write is done by agent-pack sync; this command edits no client configuration",
|
|
1689
|
+
"以上为预览,没有写入。确认后加 --apply --expect-plan <plan_digest>。": "The above is a preview; nothing was written. To confirm, add --apply --expect-plan <plan_digest>.",
|
|
1690
|
+
"agenthelm {0} 没有返回可解析的结果:{1}": "agenthelm {0} returned nothing parseable: {1}",
|
|
1691
|
+
"agenthelm 没有给出计划:{0}": "agenthelm gave no plan: {0}",
|
|
1692
|
+
"条目引用不合法:{0}": "Invalid entry reference: {0}",
|
|
1693
|
+
"读回时 inventory 不可用": "inventory is unavailable for the read-back",
|
|
1694
|
+
"读回时 dedupe --list 不可用": "dedupe --list is unavailable for the read-back",
|
|
1695
|
+
"决定已记录": "the decision is recorded",
|
|
1696
|
+
"决定已撤销": "the decision is removed",
|
|
1697
|
+
"被退役的副本不再出现": "the retired copies no longer appear",
|
|
1698
|
+
"方向:{0}": "Direction: {0}",
|
|
1699
|
+
"状态:{0}": "Status: {0}",
|
|
1700
|
+
"blocked(不可执行):": "blocked (cannot be executed):",
|
|
1701
|
+
"提示:": "Notes:",
|
|
1702
|
+
"需要确认:": "Confirmations needed:",
|
|
1703
|
+
"plan_digest:{0}": "plan_digest: {0}",
|
|
1704
|
+
"结果:{0}": "Result: {0}",
|
|
1705
|
+
"读回:{0}": "Read-back: {0}",
|
|
1706
|
+
"一致": "consistent",
|
|
1707
|
+
"无法运行 agenthelm:{0}": "Cannot run agenthelm: {0}",
|
|
1708
|
+
"当前的 agenthelm 不认识这个命令或参数(需要更新 agent-pack):{0}": "This agenthelm does not know the command or option (update agent-pack): {0}",
|
|
1709
|
+
"Profile 的 {0} 不是对象": "The Profile {0} is not an object",
|
|
1710
|
+
"Profile 的 default_scope 取值非法:{0}": "The Profile default_scope value is invalid: {0}",
|
|
1711
|
+
"Profile 里 {0}.{1} 的取值非法": "The value of {0}.{1} in the Profile is invalid",
|
|
1712
|
+
"inventory 里没有这个条目:{0}": "inventory has no such entry: {0}",
|
|
1713
|
+
"读回失败": "read-back failed",
|
|
1714
|
+
"移动或复制一个技能(默认预览;--apply 才写;转发给 agenthelm relocate)": "Move or copy a skill (preview by default; --apply writes; forwards to agenthelm relocate)",
|
|
1715
|
+
"处置一组重复(默认预览;--apply 才写;转发给 agenthelm dedupe)": "Handle one duplicate group (preview by default; --apply writes; forwards to agenthelm dedupe)",
|
|
1716
|
+
"设置条目的生效范围:写 Project Profile 的声明(默认预览;--apply 先备份再写)": "Set the effective scope of an entry: writes a Project Profile declaration (preview by default; --apply backs up first)",
|
|
1717
|
+
"确认并写入(需要 --expect-plan)": "Confirm and write (needs --expect-plan)",
|
|
1718
|
+
"预览里的 plan_digest;应用时摘要不一致即拒绝": "plan_digest from the preview; a changed digest is refused when applying",
|
|
1719
|
+
"分组 id(来自 agenthelm dedupe --list)": "group id (from agenthelm dedupe --list)",
|
|
1720
|
+
"保留的条目引用(配合 --retire-others)": "reference of the entry to keep (with --retire-others)",
|
|
1721
|
+
"归档其余技能副本(MCP 副本只给手工命令)": "archive the other skill copies (MCP copies only get manual commands)",
|
|
1722
|
+
"都保留并记录备注(只写机器级决定文件)": "keep all and record a note (writes only the machine-level decision file)",
|
|
1723
|
+
"--keep-all 的备注": "note for --keep-all",
|
|
1724
|
+
"在本机忽略这一组": "ignore this group on this machine",
|
|
1725
|
+
"撤销忽略": "undo ignore",
|
|
1726
|
+
"条目引用 <kind>:<名>@<客户端>:<作用域>": "entry reference <kind>:<name>@<client>:<scope>",
|
|
1727
|
+
"目标 <客户端>:<作用域>,如 codex:project": "target <client>:<scope>, e.g. codex:project",
|
|
1728
|
+
"copy(默认)或 link": "copy (default) or link",
|
|
1729
|
+
"复制并保留源(默认归档源)": "copy and keep the source (the source is archived by default)",
|
|
1730
|
+
"确认进入项目目录的内容许可证合适且不含私有内容(用户级→项目级需要)": "confirm that the content entering the project directory has a suitable license and nothing private (needed for user level to project level)",
|
|
1731
|
+
"生效范围:project 仅此项目;user 所有项目": "effective scope: project = this project only; user = all projects",
|
|
1732
|
+
"允许放宽(项目→用户级)": "allow widening (project to user level)",
|
|
1733
|
+
"演示项目不执行技能与 MCP 的写入动作": "The demo project does not run skill and MCP write actions",
|
|
1734
|
+
"在真实项目里运行": "Run it in a real project",
|
|
1735
|
+
"处理重复": "Handle duplicates",
|
|
1736
|
+
"可粘贴片段": "Paste-ready snippet",
|
|
1737
|
+
"条目名或引用(kind:名@客户端:作用域)": "Entry name or reference (kind:name@client:scope)",
|
|
1738
|
+
"请输入条目,而不是分组 id。": "Enter an entry, not a group id.",
|
|
1739
|
+
"技能与 MCP · 移动或复制": "Skills & MCP · Move or copy",
|
|
1740
|
+
"技能与 MCP · 设置生效范围": "Skills & MCP · Set the effective scope",
|
|
1741
|
+
"计划有 blocked 项,不可执行;没有写入。": "The plan has blocked items and cannot be executed; nothing was written.",
|
|
1742
|
+
"放宽:此后所有项目都会看到它。": "Widening: every project will see it from now on.",
|
|
1743
|
+
"键入条目名 {0} 确认放宽": "Type the entry name {0} to confirm widening",
|
|
1744
|
+
"需要关注:请看上面的结果与恢复目录。": "Needs attention: see the result above and the recovery directory.",
|
|
1745
|
+
"这个条目的证据为未知:只给只读信息与手工步骤,不写入。": "The evidence for this entry is unknown: only read-only information and manual steps are given; nothing is written.",
|
|
1746
|
+
"MCP 条目本版只给手工命令与可粘贴片段,不由本菜单写入。": "For MCP entries this version only gives manual commands and paste-ready snippets; this menu does not write them.",
|
|
1747
|
+
"目标(客户端:作用域)": "Target (client:scope)",
|
|
1748
|
+
"放宽": "widen",
|
|
1749
|
+
"选择目标": "Choose a target",
|
|
1750
|
+
"k 保留源(复制),回车 归档源(移动)": "k keeps the source (copy); Enter archives the source (move)",
|
|
1751
|
+
"将进入项目目录:内容可能被提交到版本库;许可证与私有内容请你自己确认。": "Enters the project directory: the content may be committed to the repository; check the license and private content yourself.",
|
|
1752
|
+
"受影响项目:未知(只能看到在本机同步过的项目)": "Affected projects: unknown (only projects synced on this machine are visible)",
|
|
1753
|
+
"生效范围": "Effective scope",
|
|
1754
|
+
"仅此项目(收窄)": "This project only (narrow)",
|
|
1755
|
+
"全局(所有项目;放宽,需键入条目名)": "Global (all projects; widens, the entry name must be typed)",
|
|
1756
|
+
"这个条目不在任何重复组里。": "This entry is not in any duplicate group.",
|
|
1757
|
+
"处置:{0}": "Disposition: {0}",
|
|
1758
|
+
"保留一份,退役其余": "Keep one, retire the others",
|
|
1759
|
+
"都保留并标注": "Keep all and annotate",
|
|
1760
|
+
"保留哪一份": "Which one to keep",
|
|
1761
|
+
"备注(说明为什么保留)": "Note (why they are kept)",
|
|
1762
|
+
"手工步骤与可粘贴片段(本屏不写入)": "Manual steps and paste-ready snippets (nothing is written here)",
|
|
1763
|
+
"证据未知:无法确认这个条目的真实状态。请自己确认路径与客户端的加载情况,再手工复制或移动;之后到客户端里重启确认。": "Evidence unknown: the real state of this entry cannot be confirmed. Check the path and how the client loads it yourself, copy or move it by hand, then restart the client to confirm.",
|
|
1764
|
+
"Project Profile 的声明片段(合并进 capabilities;之后用 agent-pack 的 sync 预览落地):": "Project Profile declaration snippet (merge into capabilities; then preview it with agent-pack sync):",
|
|
1765
|
+
"官方命令(先自己备份 ~/.claude.json):": "Official command (back up ~/.claude.json yourself first):",
|
|
1766
|
+
"Claude Desktop 的可粘贴片段:": "Claude Desktop paste-ready snippet: ",
|
|
1767
|
+
"先用 agenthelm dedupe --list 找到该条目所在的分组": "first find the group of this entry with agenthelm dedupe --list",
|
|
1768
|
+
"d 处理这一组重复(先预览) · 回车返回": "d handle this duplicate group (preview first) · Enter goes back",
|
|
1769
|
+
" 清单与体检只读,不会改任何文件;5、6 与 m / s / d / p 是带预览的写入向导,确认前零写入。MCP 只显示名字、作用域、指纹前缀与变量名,不显示命令参数或任何值。": " Lists and the check are read-only and change no file; 5, 6 and m / s / d / p are write wizards with a preview, and nothing is written before you confirm. MCP shows only names, scopes, fingerprint prefixes and variable names, never command arguments or any value.",
|
|
1770
|
+
" 写入向导先预览,输入 yes 才执行,放宽另需键入条目名;命令行:extensions move / dedupe / scope。": " Wizards preview first and run only after you type yes (widening also needs the entry name); command line: extensions move / dedupe / scope."
|
|
1771
|
+
}
|
|
@@ -21,6 +21,7 @@ CONVENTION = "private"
|
|
|
21
21
|
IGNORE_FILE = ".gitignore"
|
|
22
22
|
# 与 agents-init 新项目生成的 private/.gitignore 相同(tests/test_private_paths_sync.py 核对两处一致)。
|
|
23
23
|
IGNORE_TEXT = "# agenthelm: 本目录内容默认不进入 git;读取前须经用户确认。\n*\n!.gitignore\n"
|
|
24
|
+
IGNORE_TEXT_EN = "# agenthelm: this directory is kept out of git by default; get the user's confirmation before reading it.\n*\n!.gitignore\n"
|
|
24
25
|
GIT_TIMEOUT = 10
|
|
25
26
|
|
|
26
27
|
|
|
@@ -110,10 +111,19 @@ def git_state(project: Path, directory: str) -> dict:
|
|
|
110
111
|
return result
|
|
111
112
|
|
|
112
113
|
|
|
114
|
+
def ignore_text(project: Path) -> str:
|
|
115
|
+
"""The .gitignore text in the project's file language (Profile ``language``; zh when missing)."""
|
|
116
|
+
try:
|
|
117
|
+
data = json.loads((project / PROFILE).read_text(encoding="utf-8"))
|
|
118
|
+
except (OSError, ValueError):
|
|
119
|
+
data = {}
|
|
120
|
+
return IGNORE_TEXT_EN if isinstance(data, dict) and data.get("language") == "en" else IGNORE_TEXT
|
|
121
|
+
|
|
122
|
+
|
|
113
123
|
def plan_ignore(project: Path, directory: str) -> list[dict]:
|
|
114
124
|
"""需要写入的 .gitignore(只在它不存在时创建;已有的从不修改)。"""
|
|
115
125
|
target = project / directory
|
|
116
126
|
if target.exists() and not target.is_dir():
|
|
117
127
|
return []
|
|
118
128
|
path = target / IGNORE_FILE
|
|
119
|
-
return [] if path.exists() else [{"path": path, "content":
|
|
129
|
+
return [] if path.exists() else [{"path": path, "content": ignore_text(project), "expect": None}]
|
|
@@ -10,6 +10,7 @@ from typing import Any, Callable
|
|
|
10
10
|
|
|
11
11
|
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
|
12
12
|
import project_demo # noqa: E402
|
|
13
|
+
import project_extensions as ext # noqa: E402
|
|
13
14
|
from project_base import LAUNCHER_API, RUNTIME_API, EntryError # noqa: E402
|
|
14
15
|
from project_demo import DemoProvider # noqa: E402
|
|
15
16
|
from wf import S, clip, display_width, term_width # noqa: E402
|
|
@@ -35,6 +36,8 @@ USAGE = N_("""项目入口:不需要 AI Agent 的项目自助菜单与命令
|
|
|
35
36
|
agenthelm project tools [工具] 项目自行声明的工具;--run --apply 执行
|
|
36
37
|
agenthelm project sop <子命令> 流程(SOP):list / index / show / new / interview / defaults / preflight /
|
|
37
38
|
activate / run / step / status / due / validate …;写入默认只预览,--apply 执行
|
|
39
|
+
agenthelm project extensions <list|dups|show|check> 技能与 MCP 清单(只读):list 按客户端/作用域/重复分组,dups 重复组,
|
|
40
|
+
show <引用|名字|分组> 详情,check 机械体检;MCP 只显示名字、作用域、指纹前缀、变量名
|
|
38
41
|
agenthelm project capabilities 各项能力当前是否可用、为什么
|
|
39
42
|
|
|
40
43
|
项目根目录的启动器(缺省 ./menu)等同于 agenthelm project --project <项目根目录>。
|
|
@@ -338,6 +341,8 @@ def _group_lines(number: str, first: dict, members: list[dict]) -> list[str]:
|
|
|
338
341
|
def command_hint(action: str) -> str:
|
|
339
342
|
"""fix:rebuild-index -> (命令:fix rebuild-index); empty for advice-only steps."""
|
|
340
343
|
verb, _sep, target = action.partition(":")
|
|
344
|
+
if verb == "ext" and target:
|
|
345
|
+
return _("(命令:extensions dups)")
|
|
341
346
|
return _("(命令:{0} {1})").format(verb, target) if verb in ("fix", "open") and target else ""
|
|
342
347
|
|
|
343
348
|
|
|
@@ -646,6 +651,58 @@ def cmd_sop(provider: Provider, args: argparse.Namespace) -> tuple[int, Any, lis
|
|
|
646
651
|
return code, data, header(provider, _("流程(SOP)")) + lines
|
|
647
652
|
|
|
648
653
|
|
|
654
|
+
EXT_HINTS = N_("需要 agent-pack 提供 agenthelm inventory:更新 agent-pack 或运行时后再试;本项目其他功能不受影响")
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
def cmd_extensions(provider: Provider, args: argparse.Namespace) -> tuple[int, Any, list[str]]:
|
|
658
|
+
"""技能与 MCP:全部只读。inventory 不可用时是「能力不可用」(退出码 4)并写明原因,不猜测。"""
|
|
659
|
+
view = getattr(args, "ext_command", None) or "list"
|
|
660
|
+
title = header(provider, _("技能与 MCP"))
|
|
661
|
+
if view in ("move", "dedupe", "scope"):
|
|
662
|
+
return _cmd_extensions_write(provider, args, view, title)
|
|
663
|
+
if view == "list":
|
|
664
|
+
data = provider.extensions_list(getattr(args, "kind", None), getattr(args, "client", None),
|
|
665
|
+
getattr(args, "scope", None), getattr(args, "group", None) or "client")
|
|
666
|
+
elif view == "dups":
|
|
667
|
+
data = provider.extensions_dups(getattr(args, "kind", None))
|
|
668
|
+
elif view == "show":
|
|
669
|
+
data = provider.extensions_show(args.ref)
|
|
670
|
+
else:
|
|
671
|
+
data = provider.extensions_check(bool(getattr(args, "include_description", False)))
|
|
672
|
+
if data["state"] != "available":
|
|
673
|
+
raise EntryError(data["reason"], "unavailable", [_(EXT_HINTS)])
|
|
674
|
+
data = {"view": view, **data}
|
|
675
|
+
if view == "list":
|
|
676
|
+
lines = ext.render_list(data, data["summary"])
|
|
677
|
+
elif view == "dups":
|
|
678
|
+
lines = ext.render_dups(data)[0]
|
|
679
|
+
elif view == "show":
|
|
680
|
+
lines = ext.render_show(data["entry"]) if data["view"] == "entry" else ext.render_group(1, data["group"])
|
|
681
|
+
else:
|
|
682
|
+
lines = ext.render_check(data)
|
|
683
|
+
if view in ("list", "dups"):
|
|
684
|
+
lines += [S.dim(note) for note in data["notes"]]
|
|
685
|
+
return EXIT_OK, data, title + lines
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
def _cmd_extensions_write(provider: Provider, args: argparse.Namespace, view: str, title: list[str]) -> tuple[int, Any, list[str]]:
|
|
689
|
+
"""move / dedupe / scope:默认预览;--apply 必须带预览的 plan_digest。blocked、摘要不一致、读回失败都是 EXIT_ATTENTION。"""
|
|
690
|
+
import project_ext_actions as actions # noqa: PLC0415
|
|
691
|
+
|
|
692
|
+
apply, expect = bool(args.apply), args.expect_plan
|
|
693
|
+
if view == "move":
|
|
694
|
+
result = provider.extensions_move(args.ref, args.to, mode=args.mode, keep_source=args.keep_source, allow_widen=args.allow_widen,
|
|
695
|
+
confirm_content=args.confirm_project_content, apply=apply, expect=expect)
|
|
696
|
+
elif view == "dedupe":
|
|
697
|
+
result = provider.extensions_dedupe(args.group, keep=args.keep, retire_others=args.retire_others, keep_all=args.keep_all,
|
|
698
|
+
note=args.note, ignore=args.ignore, unignore=args.unignore, apply=apply, expect=expect)
|
|
699
|
+
else:
|
|
700
|
+
result = provider.extensions_scope(args.ref, args.effective, allow_widen=args.allow_widen, apply=apply, expect=expect)
|
|
701
|
+
attention = actions.finish(provider, view, result, getattr(args, "group", None))
|
|
702
|
+
data = {"view": view, **result}
|
|
703
|
+
return (EXIT_ATTENTION if attention else EXIT_OK), data, title + actions.render_action(result)
|
|
704
|
+
|
|
705
|
+
|
|
649
706
|
def cmd_capabilities(provider: Provider, args: argparse.Namespace) -> tuple[int, Any, list[str]]:
|
|
650
707
|
capabilities = provider.capabilities()
|
|
651
708
|
return EXIT_OK, capabilities, header(provider, _("能力状态")) + render_capabilities(capabilities)
|
|
@@ -671,7 +728,7 @@ def cmd_home(provider: Provider, args: argparse.Namespace) -> tuple[int, Any, li
|
|
|
671
728
|
COMMANDS: dict[str, Callable[[Any, argparse.Namespace], tuple[int, Any, list[str]]]] = {
|
|
672
729
|
"find": cmd_find, "open": cmd_open, "refs": cmd_refs, "progress": cmd_progress, "show": cmd_show,
|
|
673
730
|
"guide": cmd_guide, "health": cmd_health, "fix": cmd_fix, "record": cmd_record, "tools": cmd_tools,
|
|
674
|
-
"sop": cmd_sop, "capabilities": cmd_capabilities, "scenarios": cmd_scenarios, "home": cmd_home,
|
|
731
|
+
"sop": cmd_sop, "extensions": cmd_extensions, "capabilities": cmd_capabilities, "scenarios": cmd_scenarios, "home": cmd_home,
|
|
675
732
|
}
|
|
676
733
|
|
|
677
734
|
|
|
@@ -757,6 +814,49 @@ def parser() -> argparse.ArgumentParser:
|
|
|
757
814
|
tools.add_argument("--apply", action="store_true")
|
|
758
815
|
sop_parser = add("sop", _("流程(SOP):用户自己的步骤序列,触发、前置检查、逐步记录"))
|
|
759
816
|
sop_parser.add_argument("sop_args", nargs=argparse.REMAINDER, help=_("子命令与参数,见 agenthelm project sop --help"))
|
|
817
|
+
extensions = add("extensions", _("技能与 MCP:只读清单、重复、详情与机械体检"))
|
|
818
|
+
extensions_sub = extensions.add_subparsers(dest="ext_command")
|
|
819
|
+
|
|
820
|
+
def add_ext(name: str, help_text: str) -> argparse.ArgumentParser:
|
|
821
|
+
return extensions_sub.add_parser(name, parents=[shared], help=help_text)
|
|
822
|
+
|
|
823
|
+
listing = add_ext("list", _("按客户端、作用域或重复分组列出技能与 MCP"))
|
|
824
|
+
listing.add_argument("--kind", choices=("skill", "mcp"), help=_("只看技能或只看 MCP"))
|
|
825
|
+
listing.add_argument("--client", help=_("只看某个客户端,如 claude、codex、cursor"))
|
|
826
|
+
listing.add_argument("--scope", help=_("只看某个作用域,如 user、project、local"))
|
|
827
|
+
listing.add_argument("--group", choices=("client", "scope", "dup"), default="client", help=_("分组方式(默认 client)"))
|
|
828
|
+
add_ext("dups", _("重复组:同名、同指纹、同名不同内容;只在官方文档写明优先级时才说哪份生效")).add_argument(
|
|
829
|
+
"--kind", choices=("skill", "mcp"), help=_("只看技能或只看 MCP"))
|
|
830
|
+
add_ext("show", _("条目详情(引用 <kind>:<名>@<客户端>:<作用域>、条目名或分组 id);MCP 不显示命令参数与任何值")).add_argument("ref")
|
|
831
|
+
check = add_ext("check", _("技能体检:只列机械事实与阈值,不打分、不排名、不建议删除"))
|
|
832
|
+
check.add_argument("--include-description", action="store_true", dest="include_description",
|
|
833
|
+
help=_("同时比较 description 文本相似度(阈值 0.6,没有外部依据,只作提示)"))
|
|
834
|
+
for name_, text_ in (("move", _("移动或复制一个技能(默认预览;--apply 才写;转发给 agenthelm relocate)")),
|
|
835
|
+
("dedupe", _("处置一组重复(默认预览;--apply 才写;转发给 agenthelm dedupe)")),
|
|
836
|
+
("scope", _("设置条目的生效范围:写 Project Profile 的声明(默认预览;--apply 先备份再写)"))):
|
|
837
|
+
action = add_ext(name_, text_)
|
|
838
|
+
if name_ == "dedupe":
|
|
839
|
+
action.add_argument("group", help=_("分组 id(来自 agenthelm dedupe --list)"))
|
|
840
|
+
action.add_argument("--keep", help=_("保留的条目引用(配合 --retire-others)"))
|
|
841
|
+
action.add_argument("--retire-others", action="store_true", dest="retire_others", help=_("归档其余技能副本(MCP 副本只给手工命令)"))
|
|
842
|
+
action.add_argument("--keep-all", action="store_true", dest="keep_all", help=_("都保留并记录备注(只写机器级决定文件)"))
|
|
843
|
+
action.add_argument("--note", help=_("--keep-all 的备注"))
|
|
844
|
+
action.add_argument("--ignore", action="store_true", help=_("在本机忽略这一组"))
|
|
845
|
+
action.add_argument("--unignore", action="store_true", help=_("撤销忽略"))
|
|
846
|
+
else:
|
|
847
|
+
action.add_argument("ref", help=_("条目引用 <kind>:<名>@<客户端>:<作用域>"))
|
|
848
|
+
if name_ == "move":
|
|
849
|
+
action.add_argument("--to", required=True, help=_("目标 <客户端>:<作用域>,如 codex:project"))
|
|
850
|
+
action.add_argument("--mode", choices=("copy", "link"), help=_("copy(默认)或 link"))
|
|
851
|
+
action.add_argument("--keep-source", action="store_true", dest="keep_source", help=_("复制并保留源(默认归档源)"))
|
|
852
|
+
action.add_argument("--confirm-project-content", action="store_true", dest="confirm_project_content",
|
|
853
|
+
help=_("确认进入项目目录的内容许可证合适且不含私有内容(用户级→项目级需要)"))
|
|
854
|
+
if name_ == "scope":
|
|
855
|
+
action.add_argument("--effective", required=True, choices=("project", "user"), help=_("生效范围:project 仅此项目;user 所有项目"))
|
|
856
|
+
if name_ != "dedupe":
|
|
857
|
+
action.add_argument("--allow-widen", action="store_true", dest="allow_widen", help=_("允许放宽(项目→用户级)"))
|
|
858
|
+
action.add_argument("--apply", action="store_true", help=_("确认并写入(需要 --expect-plan)"))
|
|
859
|
+
action.add_argument("--expect-plan", dest="expect_plan", help=_("预览里的 plan_digest;应用时摘要不一致即拒绝"))
|
|
760
860
|
add("capabilities", _("能力状态"))
|
|
761
861
|
add("scenarios", _("列出演示场景"))
|
|
762
862
|
return result
|
|
@@ -21,6 +21,8 @@ import weakref
|
|
|
21
21
|
from pathlib import Path
|
|
22
22
|
from typing import Any
|
|
23
23
|
|
|
24
|
+
import project_extensions # noqa: E402
|
|
25
|
+
import project_extensions_demo # noqa: E402
|
|
24
26
|
import sop_structure # noqa: E402
|
|
25
27
|
from project_base import EntryError, sop_call
|
|
26
28
|
from i18n_orchestrator import _, resolve_language # noqa: E402
|
|
@@ -305,7 +307,7 @@ def _sop_home(root: Path):
|
|
|
305
307
|
os.environ["AGENTHELM_SOP_HOME"] = previous
|
|
306
308
|
|
|
307
309
|
|
|
308
|
-
class DemoProvider:
|
|
310
|
+
class DemoProvider(project_extensions.ExtensionsMixin):
|
|
309
311
|
"""内存里的虚构项目;所有结果带 demo 标记,所有写入只模拟。"""
|
|
310
312
|
|
|
311
313
|
simulated = True
|
|
@@ -326,6 +328,14 @@ class DemoProvider:
|
|
|
326
328
|
self.resolved: set[str] = set() # fixes simulated in this session
|
|
327
329
|
self._sandbox: Path | None = None
|
|
328
330
|
|
|
331
|
+
# -------------------------------------------------------------- 技能与 MCP:固定夹具
|
|
332
|
+
|
|
333
|
+
def _ext_load(self, include_description: bool) -> dict:
|
|
334
|
+
return project_extensions.validate(project_extensions_demo.inventory())
|
|
335
|
+
|
|
336
|
+
def extensions_capability(self) -> tuple[str, str]:
|
|
337
|
+
return "available", _("演示:使用固定的示例清单,不读取这台机器")
|
|
338
|
+
|
|
329
339
|
# -------------------------------------------------------------- 流程(SOP):临时目录里的真实代码
|
|
330
340
|
|
|
331
341
|
def sop(self, argv: list[str]) -> tuple[int, dict, list[str]]:
|
|
@@ -467,6 +477,8 @@ class DemoProvider:
|
|
|
467
477
|
"reason": "" if self.data["tools"] else _("项目没有声明专用工具"), "offline": True},
|
|
468
478
|
{"id": "sop", "title": _("流程(SOP)"), "state": "available", "offline": True,
|
|
469
479
|
"reason": _("演示:在临时目录里运行,结束后自动清理")},
|
|
480
|
+
{"id": "extensions", "title": _("技能与 MCP"), "state": self.extensions_capability()[0],
|
|
481
|
+
"reason": self.extensions_capability()[1], "offline": True},
|
|
470
482
|
]
|
|
471
483
|
|
|
472
484
|
def health(self) -> dict:
|