ccgx-workflow 2.4.1 → 2.5.0

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 (46) hide show
  1. package/README.md +134 -277
  2. package/README.zh-CN.md +134 -272
  3. package/dist/chunks/version-build.mjs +1 -1
  4. package/dist/cli.mjs +1 -1
  5. package/dist/index.d.mts +709 -16
  6. package/dist/index.d.ts +709 -16
  7. package/dist/index.mjs +1061 -30
  8. package/dist/shared/{ccgx-workflow.j1spUsik.mjs → ccgx-workflow.CdHnJLak.mjs} +106 -22
  9. package/package.json +1 -1
  10. package/templates/commands/agents/code-fixer.md +6 -6
  11. package/templates/commands/agents/phase-runner.md +46 -14
  12. package/templates/commands/agents/plan-checker.md +10 -0
  13. package/templates/commands/analyze.md +66 -25
  14. package/templates/commands/autonomous.md +428 -225
  15. package/templates/commands/cancel.md +9 -0
  16. package/templates/commands/codex-exec.md +12 -11
  17. package/templates/commands/context.md +14 -0
  18. package/templates/commands/debate.md +10 -6
  19. package/templates/commands/execute.md +76 -28
  20. package/templates/commands/optimize.md +53 -25
  21. package/templates/commands/plan.md +78 -28
  22. package/templates/commands/review.md +26 -19
  23. package/templates/commands/spec-impl.md +68 -127
  24. package/templates/commands/spec-plan.md +61 -82
  25. package/templates/commands/spec-research.md +35 -92
  26. package/templates/commands/spec-review.md +34 -119
  27. package/templates/commands/status.md +1 -0
  28. package/templates/commands/team-exec.md +45 -13
  29. package/templates/commands/team.md +64 -167
  30. package/templates/commands/test.md +56 -34
  31. package/templates/commands/verify-work.md +36 -13
  32. package/templates/commands/verify.md +35 -0
  33. package/templates/commands/workflow.md +22 -37
  34. package/templates/hooks/ccg-loop-detector.cjs +39 -8
  35. package/templates/hooks/ccg-statusline.js +142 -2
  36. package/templates/hooks/ccg-stop-gate.cjs +248 -19
  37. package/templates/hooks/ccg-subagent-context.cjs +505 -0
  38. package/templates/scripts/ccg-state-lock.cjs +510 -0
  39. package/templates/scripts/ccg-team-schedule.cjs +328 -0
  40. package/templates/scripts/ccgx-call-plugin.mjs +494 -141
  41. package/templates/scripts/invoke-model.mjs +28 -1
  42. package/templates/scripts/task-store.cjs +614 -0
  43. package/templates/skills/tools/verify-change/SKILL.md +7 -0
  44. package/templates/skills/tools/verify-module/SKILL.md +7 -0
  45. package/templates/skills/tools/verify-quality/SKILL.md +7 -0
  46. package/templates/skills/tools/verify-security/SKILL.md +8 -0
@@ -10,10 +10,17 @@ argument-hint: <扫描路径>
10
10
  deprecated_in: 1.0.0
11
11
  replaced_by: /ccg:verify --gate=quality
12
12
  deprecation_message: 推荐使用 `/ccg:verify --gate=quality`。本命令仍可用以保持 BC。详见 .ccg-migration/DEPRECATIONS.md
13
+ gate-type: revision-loop
13
14
  ---
14
15
 
15
16
  # ⚖ 校验关卡 · 代码质量
16
17
 
18
+ ## Gate 分类与失败路径
19
+
20
+ - **类型**:revision-loop(maxLoops = 3)
21
+ - **失败路径**:质量 findings 回喂修复 → 重跑本门;3 轮不收敛或连续两轮 issue 数不下降 → escalation 三选(force / guide / abort)
22
+ - **单一真相源**:分类与失败路径以 `/ccg:verify` 的 Gates Taxonomy 段及 `src/utils/verify-orchestrator.ts` 的 `GATE_REGISTRY` 为准
23
+
17
24
 
18
25
  ## 核心原则
19
26
 
@@ -10,10 +10,18 @@ argument-hint: <扫描路径>
10
10
  deprecated_in: 1.0.0
11
11
  replaced_by: /ccg:verify --gate=security
12
12
  deprecation_message: 推荐使用 `/ccg:verify --gate=security`。本命令仍可用以保持 BC。详见 .ccg-migration/DEPRECATIONS.md
13
+ gate-type: revision-loop
13
14
  ---
14
15
 
15
16
  # ⚖ 校验关卡 · 安全校验
16
17
 
18
+ ## Gate 分类与失败路径
19
+
20
+ - **类型**:revision-loop(maxLoops = 3),但带 **critical 覆盖路径**
21
+ - **critical 漏洞 → abort 覆盖**:立即停止交付流程、保留状态(UAT/job 文件不清理)、报告原因;人工修复后重跑本门 resume
22
+ - **非 critical**:findings 回喂修复 → 重跑;3 轮不收敛 → escalation 三选(force / guide / abort)
23
+ - **单一真相源**:分类与失败路径以 `/ccg:verify` 的 Gates Taxonomy 段及 `src/utils/verify-orchestrator.ts` 的 `GATE_REGISTRY` 为准(`criticalOverride: 'abort'`)
24
+
17
25
 
18
26
  ## 核心原则
19
27