ccg-workflow 1.7.55 → 1.7.56
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/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{ccg-workflow.Dyysa7hK.mjs → ccg-workflow.FSvBGlYq.mjs} +1 -1
- package/package.json +1 -1
- package/templates/commands/spec-impl.md +4 -5
- package/templates/commands/spec-init.md +27 -13
- package/templates/commands/spec-plan.md +4 -4
- package/templates/commands/spec-research.md +8 -4
- package/templates/commands/spec-review.md +5 -5
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import cac from 'cac';
|
|
3
3
|
import ansis from 'ansis';
|
|
4
|
-
import { z as diagnoseMcpConfig, A as isWindows, B as readClaudeCodeConfig, C as fixWindowsMcpConfig, D as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, E as configMcp, F as version, a as i18n } from './shared/ccg-workflow.
|
|
4
|
+
import { z as diagnoseMcpConfig, A as isWindows, B as readClaudeCodeConfig, C as fixWindowsMcpConfig, D as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, E as configMcp, F as version, a as i18n } from './shared/ccg-workflow.FSvBGlYq.mjs';
|
|
5
5
|
import 'inquirer';
|
|
6
6
|
import 'node:child_process';
|
|
7
7
|
import 'node:util';
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as changeLanguage, x as checkForUpdates, y as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, t as getCurrentVersion, v as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, m as installAceToolRs, k as installWorkflows, p as migrateToV1_4_0, q as needsMigration, r as readCcgConfig, s as showMainMenu, o as uninstallAceTool, n as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.
|
|
1
|
+
export { c as changeLanguage, x as checkForUpdates, y as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, t as getCurrentVersion, v as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, m as installAceToolRs, k as installWorkflows, p as migrateToV1_4_0, q as needsMigration, r as readCcgConfig, s as showMainMenu, o as uninstallAceTool, n as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.FSvBGlYq.mjs';
|
|
2
2
|
import 'ansis';
|
|
3
3
|
import 'inquirer';
|
|
4
4
|
import 'node:child_process';
|
package/package.json
CHANGED
|
@@ -16,9 +16,9 @@ description: '按规范执行 + 多模型协作 + 归档'
|
|
|
16
16
|
|
|
17
17
|
**Steps**
|
|
18
18
|
1. **Select Change**
|
|
19
|
-
- Run
|
|
19
|
+
- Run `openspec list --json` to inspect Active Changes.
|
|
20
20
|
- Confirm with user which change ID to implement.
|
|
21
|
-
- Run
|
|
21
|
+
- Run `openspec status --change "<change_id>" --json` to review tasks.
|
|
22
22
|
|
|
23
23
|
2. **Apply OPSX Change**
|
|
24
24
|
- Use `/ccg:spec-impl` (which uses OpenSpec skills internally) to enter implementation mode.
|
|
@@ -111,9 +111,8 @@ description: '按规范执行 + 多模型协作 + 归档'
|
|
|
111
111
|
- This merges spec deltas to `openspec/specs/` and moves change to archive.
|
|
112
112
|
|
|
113
113
|
**Reference**
|
|
114
|
-
- Check task status:
|
|
115
|
-
-
|
|
116
|
-
- View active changes: `/opsx:list`
|
|
114
|
+
- Check task status: `openspec status --change "<id>" --json`
|
|
115
|
+
- View active changes: `openspec list --json`
|
|
117
116
|
- Search existing patterns: `rg -n "function|class" <file>`
|
|
118
117
|
|
|
119
118
|
**Exit Criteria**
|
|
@@ -19,25 +19,38 @@ description: '初始化 OpenSpec (OPSX) 环境 + 验证多模型 MCP 工具'
|
|
|
19
19
|
- Inform user which OS was detected.
|
|
20
20
|
|
|
21
21
|
2. **Check and Install OpenSpec (OPSX)**
|
|
22
|
-
-
|
|
23
|
-
-
|
|
22
|
+
- **IMPORTANT**: OpenSpec CLI command is `openspec`, NOT `opsx`
|
|
23
|
+
- Verify if OpenSpec is available:
|
|
24
|
+
```bash
|
|
25
|
+
npx @fission-ai/openspec --version
|
|
26
|
+
```
|
|
27
|
+
- If not found, install globally:
|
|
24
28
|
```bash
|
|
25
29
|
npm install -g @fission-ai/openspec@latest
|
|
26
30
|
```
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
- After installation, verify again:
|
|
32
|
+
```bash
|
|
33
|
+
openspec --version
|
|
34
|
+
```
|
|
35
|
+
- If `openspec` command not found after global install, use `npx`:
|
|
36
|
+
```bash
|
|
37
|
+
npx @fission-ai/openspec --version
|
|
38
|
+
```
|
|
39
|
+
- **Note**: Always use `openspec` (not `opsx`) for CLI commands.
|
|
33
40
|
|
|
34
41
|
3. **Initialize OPSX for Current Project**
|
|
35
|
-
-
|
|
42
|
+
- Check if already initialized:
|
|
43
|
+
```bash
|
|
44
|
+
ls -la openspec/ .claude/skills/openspec-* 2>/dev/null || echo "Not initialized"
|
|
45
|
+
```
|
|
46
|
+
- If not initialized, run:
|
|
36
47
|
```bash
|
|
37
|
-
/
|
|
48
|
+
npx @fission-ai/openspec init --tools claude
|
|
38
49
|
```
|
|
39
|
-
- Verify
|
|
40
|
-
|
|
50
|
+
- Verify initialization:
|
|
51
|
+
- Check `openspec/` directory exists
|
|
52
|
+
- Check `.claude/skills/` contains `openspec-*` skills
|
|
53
|
+
- Check `.claude/commands/opsx/` contains OPSX commands
|
|
41
54
|
- Report any errors with remediation steps.
|
|
42
55
|
|
|
43
56
|
4. **Validate Multi-Model MCP Tools**
|
|
@@ -84,7 +97,8 @@ description: '初始化 OpenSpec (OPSX) 环境 + 验证多模型 MCP 工具'
|
|
|
84
97
|
- Code Review: `/ccg:spec-review` (Independent dual-model review)
|
|
85
98
|
|
|
86
99
|
**Reference**
|
|
87
|
-
- OpenSpec (OPSX) CLI:
|
|
100
|
+
- OpenSpec (OPSX) CLI: `npx @fission-ai/openspec --help`
|
|
101
|
+
- OPSX Commands: `/opsx:new`, `/opsx:continue`, `/opsx:apply`, etc.
|
|
88
102
|
- CCG Workflow: `npx ccg-workflow`
|
|
89
103
|
- Codex/Gemini MCP: Bundled with codeagent-wrapper
|
|
90
104
|
- Node.js >= 18.x required for OpenSpec
|
|
@@ -16,9 +16,9 @@ description: '多模型分析 → 消除歧义 → 零决策可执行计划'
|
|
|
16
16
|
|
|
17
17
|
**Steps**
|
|
18
18
|
1. **Select Change**
|
|
19
|
-
- Run
|
|
19
|
+
- Run `openspec list --json` to display Active Changes.
|
|
20
20
|
- Confirm with user which change ID to refine.
|
|
21
|
-
- Run
|
|
21
|
+
- Run `openspec status --change "<change_id>" --json` to review current state.
|
|
22
22
|
|
|
23
23
|
2. **Multi-Model Implementation Analysis (PARALLEL)**
|
|
24
24
|
- **CRITICAL**: You MUST launch BOTH Codex AND Gemini in a SINGLE message with TWO Bash tool calls.
|
|
@@ -102,8 +102,8 @@ A change is ready for implementation only when:
|
|
|
102
102
|
- [ ] User has explicitly approved all constraint decisions
|
|
103
103
|
|
|
104
104
|
**Reference**
|
|
105
|
-
- Inspect change:
|
|
106
|
-
-
|
|
105
|
+
- Inspect change: `openspec status --change "<id>" --json`
|
|
106
|
+
- List changes: `openspec list --json`
|
|
107
107
|
- Search patterns: `rg -n "INVARIANT:|PROPERTY:" openspec/`
|
|
108
108
|
- Use `AskUserQuestion` for ANY ambiguity—never assume
|
|
109
109
|
<!-- CCG:SPEC:PLAN:END -->
|
|
@@ -31,12 +31,16 @@ description: '需求 → 约束集(并行探索 + OPSX 提案)'
|
|
|
31
31
|
- Use enhanced prompt for ALL subsequent steps.
|
|
32
32
|
|
|
33
33
|
1. **Generate OPSX Change**
|
|
34
|
-
-
|
|
34
|
+
- Check if change already exists:
|
|
35
35
|
```bash
|
|
36
|
-
|
|
36
|
+
openspec list --json
|
|
37
|
+
```
|
|
38
|
+
- If change doesn't exist, create it:
|
|
39
|
+
```bash
|
|
40
|
+
openspec new change "<brief-descriptive-name>"
|
|
37
41
|
```
|
|
38
42
|
- This scaffolds `openspec/changes/<name>/` with proposal.md.
|
|
39
|
-
- If change already exists,
|
|
43
|
+
- If change already exists, continue with existing change.
|
|
40
44
|
|
|
41
45
|
2. **Initial Codebase Assessment**
|
|
42
46
|
- Use `mcp__ace-tool__search_context` to scan codebase.
|
|
@@ -98,7 +102,7 @@ description: '需求 → 约束集(并行探索 + OPSX 提案)'
|
|
|
98
102
|
- If approaching 80K tokens, suggest: "Run `/clear` and continue with `/ccg:spec-plan`"
|
|
99
103
|
|
|
100
104
|
**Reference**
|
|
101
|
-
- OPSX CLI:
|
|
105
|
+
- OPSX CLI: `openspec status --change "<id>" --json`, `openspec list --json`
|
|
102
106
|
- Check prior research: `ls openspec/changes/*/`
|
|
103
107
|
- Use `AskUserQuestion` for ANY ambiguity—never assume or guess
|
|
104
108
|
<!-- CCG:SPEC:RESEARCH:END -->
|
|
@@ -15,13 +15,13 @@ description: '双模型交叉审查(独立工具,随时可用)'
|
|
|
15
15
|
|
|
16
16
|
**Steps**
|
|
17
17
|
1. **Select Proposal**
|
|
18
|
-
- Run
|
|
18
|
+
- Run `openspec list --json` to display Active Changes.
|
|
19
19
|
- Confirm with user which proposal ID to review.
|
|
20
|
-
- Run
|
|
20
|
+
- Run `openspec status --change "<proposal_id>" --json` to load spec and tasks.
|
|
21
21
|
|
|
22
22
|
2. **Collect Implementation Artifacts**
|
|
23
23
|
- Identify all files modified by this proposal.
|
|
24
|
-
- Use `git diff`
|
|
24
|
+
- Use `git diff` to get change summary.
|
|
25
25
|
- Load relevant spec constraints and PBT properties from `openspec/changes/<id>/specs/`.
|
|
26
26
|
|
|
27
27
|
3. **Multi-Model Review (PARALLEL)**
|
|
@@ -113,8 +113,8 @@ Review is complete when:
|
|
|
113
113
|
- [ ] User decision captured (archive / return to impl / defer)
|
|
114
114
|
|
|
115
115
|
**Reference**
|
|
116
|
-
- View proposal:
|
|
116
|
+
- View proposal: `openspec status --change "<id>" --json`
|
|
117
117
|
- Check spec constraints: `rg -n "CONSTRAINT:|MUST|INVARIANT:" openspec/changes/<id>/specs/`
|
|
118
|
-
- View implementation diff:
|
|
118
|
+
- View implementation diff: `git diff`
|
|
119
119
|
- Archive (after passing): `/ccg:spec-impl` → Step 10
|
|
120
120
|
<!-- CCG:SPEC:REVIEW:END -->
|