@boyingliu01/xp-gate 0.35.12 → 0.35.14

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.
Files changed (41) hide show
  1. package/lib/__tests__/delphi-channel-doctor.test.js +116 -0
  2. package/lib/__tests__/delphi-channel-uninstall.test.js +128 -0
  3. package/lib/__tests__/delphi-channel.test.js +109 -0
  4. package/lib/delphi-channel.js +181 -0
  5. package/lib/delphi-setup.js +66 -1
  6. package/lib/doctor.js +36 -6
  7. package/lib/init.js +15 -0
  8. package/lib/mattpocock-license-verdict.json +1 -1
  9. package/mock-policy/AGENTS.md +2 -2
  10. package/mutation/AGENTS.md +2 -2
  11. package/package.json +1 -1
  12. package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
  13. package/plugins/claude-code/skills/delphi-review/AGENTS.md +2 -2
  14. package/plugins/claude-code/skills/delphi-review/SKILL.md +32 -0
  15. package/plugins/claude-code/skills/sprint-flow/AGENTS.md +2 -2
  16. package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +2 -2
  17. package/plugins/dsh/lib/index.d.ts +10 -0
  18. package/plugins/dsh/lib/index.d.ts.map +1 -1
  19. package/plugins/dsh/lib/index.js +10 -2
  20. package/plugins/dsh/package.json +1 -1
  21. package/plugins/dsh/skills/delphi-review/AGENTS.md +2 -2
  22. package/plugins/dsh/skills/delphi-review/SKILL.md +32 -0
  23. package/plugins/dsh/skills/sprint-flow/AGENTS.md +2 -2
  24. package/plugins/dsh/skills/test-specification-alignment/AGENTS.md +2 -2
  25. package/plugins/dsh/src/index.test.ts +44 -2
  26. package/plugins/dsh/src/index.ts +10 -2
  27. package/plugins/opencode/package.json +1 -1
  28. package/plugins/opencode/skills/delphi-review/AGENTS.md +2 -2
  29. package/plugins/opencode/skills/delphi-review/SKILL.md +32 -0
  30. package/plugins/opencode/skills/sprint-flow/AGENTS.md +2 -2
  31. package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +2 -2
  32. package/plugins/qoder/plugin.json +1 -1
  33. package/plugins/qoder/skills/delphi-review/AGENTS.md +2 -2
  34. package/plugins/qoder/skills/delphi-review/SKILL.md +32 -0
  35. package/plugins/qoder/skills/sprint-flow/AGENTS.md +2 -2
  36. package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +2 -2
  37. package/principles/AGENTS.md +2 -2
  38. package/skills/delphi-review/AGENTS.md +2 -2
  39. package/skills/delphi-review/SKILL.md +32 -0
  40. package/skills/sprint-flow/AGENTS.md +2 -2
  41. package/skills/test-specification-alignment/AGENTS.md +2 -2
@@ -384,6 +384,38 @@ Qoder 的内置模型**没有本地推理端点**:推理请求由 Qoder 客户
384
384
  - 项目级:`<project>/.qoder/agents/`(`xp-gate init`)
385
385
  - 用户级:`~/.qoder/agents/`(`xp-gate init --global`)
386
386
 
387
+ #### 推荐路径:external-only(#646)
388
+
389
+ 上面整条 native 通道在本机**实测不可用**。所以推荐配置是**关掉它**,只走外部 provider —— 这是唯一能满足三模型契约的路径,也是这份文档的默认建议。
390
+
391
+ **开启方式**(改一次机器级偏好,对所有仓库生效):
392
+
393
+ ```bash
394
+ # 1. 移除已部署的 native agent(幂等,重复执行不报错)
395
+ xp-gate delphi-setup --uninstall --global
396
+ # 或项目级:xp-gate delphi-setup --uninstall --local --project <dir>
397
+
398
+ # 2. 写通道偏好,阻止 `xp-gate init` 再装回来
399
+ # ~/.config/xp-gate/.delphi-config.json
400
+ # { "channels": ["external"] }
401
+ ```
402
+
403
+ 临时覆盖(CI、一次性运行):`XP_GATE_DELPHI_CHANNEL=external`。
404
+
405
+ **生效范围**:
406
+
407
+ | 位置 | external-only 时的行为 |
408
+ |---|---|
409
+ | `xp-gate init` / `init --global` | 不部署 `delphi-*.md`,打印 `SKIP (channels=external via config)` |
410
+ | `xp-gate doctor delphi` | native 检查报 **SKIP** 并注明来源,**不再 FAIL**;外部链路(config / runner / 三席互异)照常逐项校验 |
411
+ | 本技能的通道决策表 | 直接走 external,不再探测 native |
412
+
413
+ **为什么偏好放在机器级**:通道选择是"这台机器上 Delphi 怎么跑",与具体仓库无关。放进项目文件会让每个仓库各写一遍。
414
+
415
+ **为什么不默认 external-only**:那会悄悄改掉所有没提要求的人的行为。默认保持两条通道都可用,由用户显式关闭。
416
+
417
+ **doctor 的 SKIP 不等于绿灯**:它带着理由(`channels=external via config`),和"没装"、"坏了"能区分开。这是本项目所有门禁的统一规则——跳过必须说明为什么跳。
418
+
387
419
  **model 字段格式**:仍须写成 `"[DisplayName](modelId)"`。裸名字或已下线 ID 不会报错,会被平台静默忽略。`xp-gate init` 会审计已部署的 `delphi-*.md`,格式非法或 modelId 与本版本模板不一致时点名文件并给出"删除 → 重跑 `init` → 重启会话"提示;因为部署语义是"已存在不覆盖",从 #417 之前的版本升级必须手工删旧文件再重跑 `init`。注意:修好绑定也只是让角色声明规范,并不改变上表的执行模型结论。
388
420
 
389
421
  **执行方式**:用 Agent tool 并行派发 3 个 subagent,`subagent_type` 分别取 `delphi-architecture`、`delphi-technical`、`delphi-feasibility`。**新建或修改 agent 文件后必须重开会话**——注册表只在会话启动时加载,否则报 `Unknown agent type`。
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-10-30
4
- **Commit:** a92243d7
4
+ **Commit:** 879f845e
5
5
  **Branch:** main
6
- **Version:** 0.35.12.0
6
+ **Version:** 0.35.14.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-10-30
4
- **Commit:** a92243d7
4
+ **Commit:** 879f845e
5
5
  **Branch:** main
6
- **Version:** 0.35.12.0
6
+ **Version:** 0.35.14.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.