-
Notifications
You must be signed in to change notification settings - Fork 2
[Extensions] 扩展管理层:统一安装、版本与校验 Skills/Agents/Tools/MCP #24
Copy link
Copy link
Open
Labels
area/extensionsExtension packaging and lifecycle managementExtension packaging and lifecycle managementarea/tools工具层工具层dependency/blockedShould wait for one or more dependency issuesShould wait for one or more dependency issuesdepends-on/policyDepends on #22 policy/approval layerDepends on #22 policy/approval layerdepends-on/securityDepends on #28 security/secret scanningDepends on #28 security/secret scanningpriority/P1本季度强烈建议本季度强烈建议type/feature功能需求功能需求
Metadata
Metadata
Assignees
Labels
area/extensionsExtension packaging and lifecycle managementExtension packaging and lifecycle managementarea/tools工具层工具层dependency/blockedShould wait for one or more dependency issuesShould wait for one or more dependency issuesdepends-on/policyDepends on #22 policy/approval layerDepends on #22 policy/approval layerdepends-on/securityDepends on #28 security/secret scanningDepends on #28 security/secret scanningpriority/P1本季度强烈建议本季度强烈建议type/feature功能需求功能需求
背景
当前能力:
~/.q-code、~/.agents、<cwd>/.q-code、<cwd>/.agents等位置。痛点:
需要补齐:
目标
实现扩展管理层:统一管理 Skills、Agents、Tools、MCP 扩展的安装、版本、启用禁用、校验和冲突诊断,让扩展能力可发现、可升级、可审计、可安全回滚。
用户故事
详细需求
1. Extension manifest
SKILL.md、custom toolschema.json、agent 定义和 MCP 配置。2. CLI 命令
q-code extension list|doctor|install|update|remove|enable|disable或等价命令。list展示类型、版本、来源路径、启用状态、覆盖关系。doctor检查 manifest、入口文件、权限声明、版本兼容和冲突。3. 安装与更新
4. 安全与权限
5. 加载与缓存
输出样例
验收标准
测试方案
tests/unit/extensions.test.ts:覆盖 manifest 解析、类型识别、路径优先级和 enable/disable。tests/unit/custom-tools.test.ts:确认 custom tool legacy schema 兼容。tests/unit/skills.test.ts:确认 skill 加载与 extension manifest 兼容。tests/integration/extensions-flow.test.ts:覆盖本地安装、更新失败回滚和 doctor 输出。不在本期范围
依赖 / 风险
工作量评估