cc-devflow 4.5.5 → 4.5.7

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 (73) hide show
  1. package/.claude/skills/cc-act/PLAYBOOK.md +2 -2
  2. package/.claude/skills/cc-act/SKILL.md +2 -2
  3. package/.claude/skills/cc-act/scripts/{archive-requirement.sh → archive-change.sh} +7 -7
  4. package/.claude/skills/cc-investigate/CHANGELOG.md +5 -0
  5. package/.claude/skills/cc-investigate/SKILL.md +2 -2
  6. package/.claude/skills/cc-plan/CHANGELOG.md +34 -0
  7. package/.claude/skills/cc-plan/PLAYBOOK.md +22 -17
  8. package/.claude/skills/cc-plan/SKILL.md +135 -12
  9. package/.claude/skills/cc-plan/assets/DESIGN_TEMPLATE.md +51 -0
  10. package/.claude/skills/cc-plan/assets/TASKS_TEMPLATE.md +2 -0
  11. package/.claude/skills/cc-plan/assets/TASK_MANIFEST_TEMPLATE.json +66 -3
  12. package/.claude/skills/cc-plan/assets/TINY_DESIGN_TEMPLATE.md +37 -0
  13. package/.claude/skills/cc-plan/references/planning-contract.md +33 -10
  14. package/.claude/skills/cc-plan/scripts/next-change-key.sh +78 -0
  15. package/.claude/skills/cc-review/CHANGELOG.md +7 -0
  16. package/.claude/skills/cc-review/PLAYBOOK.md +54 -0
  17. package/.claude/skills/cc-review/SKILL.md +173 -0
  18. package/.claude/skills/cc-review/references/e2e-and-plugin-verification.md +81 -0
  19. package/.claude/skills/cc-review/references/implementation-review-branch.md +115 -0
  20. package/.claude/skills/cc-review/references/plan-review-branch.md +116 -0
  21. package/.claude/skills/cc-review/references/review-methods.md +126 -0
  22. package/.claude/skills/cc-roadmap/CHANGELOG.md +6 -0
  23. package/.claude/skills/cc-roadmap/SKILL.md +102 -8
  24. package/.claude/skills/cc-roadmap/assets/BACKLOG_TEMPLATE.md +3 -0
  25. package/.claude/skills/cc-roadmap/assets/ROADMAP_TEMPLATE.md +23 -0
  26. package/.claude/skills/cc-roadmap/assets/TRACKING_TEMPLATE.json +20 -1
  27. package/.claude/skills/cc-roadmap/references/roadmap-dialogue.md +28 -13
  28. package/.claude/skills/cc-roadmap/scripts/lib/roadmap-tracking/markdown.js +18 -0
  29. package/.claude/skills/cc-roadmap/scripts/lib/roadmap-tracking/schema.js +8 -0
  30. package/CHANGELOG.md +21 -0
  31. package/README.md +10 -5
  32. package/README.zh-CN.md +10 -5
  33. package/bin/cc-devflow-cli.js +135 -2
  34. package/config/distributable-skills.json +2 -0
  35. package/docs/CLAUDE.md +1 -1
  36. package/docs/examples/example-bindings.json +5 -4
  37. package/docs/examples/full-design-blocked/BACKLOG.md +1 -1
  38. package/docs/examples/full-design-blocked/README.md +1 -1
  39. package/docs/examples/full-design-blocked/ROADMAP.md +16 -1
  40. package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/planning/design.md +42 -1
  41. package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/planning/task-manifest.json +345 -65
  42. package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/planning/tasks.md +2 -1
  43. package/docs/examples/full-design-blocked/roadmap.json +18 -2
  44. package/docs/examples/local-handoff/BACKLOG.md +1 -1
  45. package/docs/examples/local-handoff/README.md +1 -1
  46. package/docs/examples/local-handoff/ROADMAP.md +16 -1
  47. package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/planning/design.md +34 -1
  48. package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/planning/task-manifest.json +197 -39
  49. package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/planning/tasks.md +2 -1
  50. package/docs/examples/local-handoff/roadmap.json +16 -2
  51. package/docs/examples/pdca-loop/BACKLOG.md +1 -1
  52. package/docs/examples/pdca-loop/README.md +1 -1
  53. package/docs/examples/pdca-loop/ROADMAP.md +16 -1
  54. package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/design.md +34 -1
  55. package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/task-manifest.json +89 -8
  56. package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/tasks.md +2 -1
  57. package/docs/examples/pdca-loop/roadmap.json +16 -2
  58. package/docs/examples/scripts/check-example-bindings.sh +2 -0
  59. package/docs/guides/getting-started.md +13 -10
  60. package/docs/guides/getting-started.zh-CN.md +13 -10
  61. package/lib/skill-runtime/__tests__/archive-change.test.js +124 -0
  62. package/lib/skill-runtime/__tests__/autopilot.test.js +13 -10
  63. package/lib/skill-runtime/__tests__/cli-bootstrap.integration.test.js +1 -0
  64. package/lib/skill-runtime/__tests__/paths.test.js +106 -1
  65. package/lib/skill-runtime/__tests__/query.test.js +49 -0
  66. package/lib/skill-runtime/archive-change.js +64 -0
  67. package/lib/skill-runtime/artifacts.js +2 -2
  68. package/lib/skill-runtime/intent.js +14 -14
  69. package/lib/skill-runtime/operations/autopilot-shared.js +4 -4
  70. package/lib/skill-runtime/paths.js +60 -7
  71. package/lib/skill-runtime/query-registry.js +3 -3
  72. package/lib/skill-runtime/query.js +30 -30
  73. package/package.json +2 -1
@@ -68,11 +68,11 @@ function summarizeGateSection(gates = []) {
68
68
  });
69
69
  }
70
70
 
71
- async function readLatestCheckpoints(repoRoot, changeId, tasks = []) {
71
+ async function readLatestCheckpoints(repoRoot, changeId, tasks = [], options = {}) {
72
72
  const checkpoints = [];
73
73
 
74
74
  for (const task of tasks) {
75
- const checkpoint = await readJson(getCheckpointPath(repoRoot, changeId, task.id), null);
75
+ const checkpoint = await readJson(getCheckpointPath(repoRoot, changeId, task.id, options), null);
76
76
  if (!checkpoint) {
77
77
  continue;
78
78
  }
@@ -90,28 +90,28 @@ async function readLatestCheckpoints(repoRoot, changeId, tasks = []) {
90
90
  return checkpoints;
91
91
  }
92
92
 
93
- async function cleanupLegacyArtifacts(repoRoot, changeId, manifest) {
93
+ async function cleanupLegacyArtifacts(repoRoot, changeId, manifest, options = {}) {
94
94
  const taskIds = (manifest?.tasks || []).map((task) => task.id);
95
- const change = getChangePaths(repoRoot, changeId);
95
+ const change = getChangePaths(repoRoot, changeId, options);
96
96
 
97
97
  await Promise.all(
98
- getLegacyIntentProjectionPaths(repoRoot, changeId, taskIds).map((target) => removePath(target))
98
+ getLegacyIntentProjectionPaths(repoRoot, changeId, taskIds, options).map((target) => removePath(target))
99
99
  );
100
100
  await removePath(change.workersDir);
101
101
  }
102
102
 
103
- async function clearHandoffArtifacts(repoRoot, changeId, keep = null) {
103
+ async function clearHandoffArtifacts(repoRoot, changeId, keep = null, options = {}) {
104
104
  await Promise.all(
105
- getIntentHandoffArtifactPaths(repoRoot, changeId)
105
+ getIntentHandoffArtifactPaths(repoRoot, changeId, options)
106
106
  .filter((target) => target !== keep)
107
107
  .map((target) => removePath(target))
108
108
  );
109
109
  }
110
110
 
111
- async function writeResumeIndex(repoRoot, changeId, state, manifest, report) {
112
- await ensureIntentScaffold(repoRoot, changeId);
111
+ async function writeResumeIndex(repoRoot, changeId, state, manifest, report, options = {}) {
112
+ await ensureIntentScaffold(repoRoot, changeId, options);
113
113
 
114
- const checkpoints = await readLatestCheckpoints(repoRoot, changeId, manifest?.tasks || []);
114
+ const checkpoints = await readLatestCheckpoints(repoRoot, changeId, manifest?.tasks || [], options);
115
115
  const lastGoodCheckpoint = checkpoints.find((checkpoint) => checkpoint.status === 'passed') || checkpoints[0] || null;
116
116
  const blockers = [
117
117
  ...(manifest?.tasks || [])
@@ -119,8 +119,8 @@ async function writeResumeIndex(repoRoot, changeId, state, manifest, report) {
119
119
  .map((task) => `${task.id}: ${task.lastError || 'Task failed'}`),
120
120
  ...(report?.blockingFindings || [])
121
121
  ];
122
- const hasPrBrief = await exists(getIntentPrBriefPath(repoRoot, changeId));
123
- const hasReleaseNote = await exists(getReleaseNotePath(repoRoot, changeId));
122
+ const hasPrBrief = await exists(getIntentPrBriefPath(repoRoot, changeId, options));
123
+ const hasReleaseNote = await exists(getReleaseNotePath(repoRoot, changeId, options));
124
124
  const stage = deriveLifecycleStage({ state, manifest, report, hasPrBrief });
125
125
  const approval = getApprovalState(state, manifest);
126
126
  const goal = manifest?.goal || state?.goal || changeId;
@@ -131,7 +131,7 @@ async function writeResumeIndex(repoRoot, changeId, state, manifest, report) {
131
131
  hasPrBrief,
132
132
  hasReleaseNote
133
133
  });
134
- const resumePath = getIntentResumeIndexPath(repoRoot, changeId);
134
+ const resumePath = getIntentResumeIndexPath(repoRoot, changeId, options);
135
135
 
136
136
  const content = [
137
137
  `# Resume Index: ${changeId}`,
@@ -167,7 +167,7 @@ async function writeResumeIndex(repoRoot, changeId, state, manifest, report) {
167
167
  ])
168
168
  ].join('\n');
169
169
 
170
- await clearHandoffArtifacts(repoRoot, changeId, resumePath);
170
+ await clearHandoffArtifacts(repoRoot, changeId, resumePath, options);
171
171
  await writeText(resumePath, `${content}\n`);
172
172
 
173
173
  return {
@@ -28,11 +28,11 @@ function hasUnresolvedTasks(manifest) {
28
28
  );
29
29
  }
30
30
 
31
- async function loadState(repoRoot, changeId) {
31
+ async function loadState(repoRoot, changeId, options = {}) {
32
32
  const [state, manifest, report] = await Promise.all([
33
- readJson(getRuntimeStatePath(repoRoot, changeId), null),
34
- readJson(getTaskManifestPath(repoRoot, changeId), null),
35
- readJson(getReportCardPath(repoRoot, changeId), null)
33
+ readJson(getRuntimeStatePath(repoRoot, changeId, options), null),
34
+ readJson(getTaskManifestPath(repoRoot, changeId, options), null),
35
+ readJson(getReportCardPath(repoRoot, changeId, options), null)
36
36
  ]);
37
37
 
38
38
  return { state, manifest, report };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * [INPUT]: 依赖 fs/path,接收 repoRoot/changeId/taskId/workerId 等定位参数。
3
3
  * [OUTPUT]: 对外提供 devflow canonical layout 的唯一路径解析能力。
4
- * [POS]: skill runtime 的路径真相源,强制新 change 目录使用 REQ/FIX 前缀。
4
+ * [POS]: skill runtime 的路径真相源,完整 change key 才是目录身份。
5
5
  * [PROTOCOL]: 变更时更新此头部,然后检查 CLAUDE.md
6
6
  */
7
7
 
@@ -85,17 +85,27 @@ function listChangeKeys(repoRoot) {
85
85
  .sort();
86
86
  }
87
87
 
88
- function findExistingChangeKey(repoRoot, changeId) {
88
+ function findExistingChangeKeys(repoRoot, changeId) {
89
89
  const canonicalPrefix = `${getChangeKeyPrefix(changeId)}-`;
90
90
  const legacyKey = slugifySegment(changeId, 'change');
91
91
  const legacyPrefix = `${legacyKey}-`;
92
92
 
93
- return listChangeKeys(repoRoot).find((name) => (
93
+ return listChangeKeys(repoRoot).filter((name) => (
94
94
  name === changeId
95
95
  || name === legacyKey
96
96
  || name.startsWith(canonicalPrefix)
97
97
  || name.startsWith(legacyPrefix)
98
- )) || null;
98
+ ));
99
+ }
100
+
101
+ function findExactChangeKey(repoRoot, changeId, changeKey) {
102
+ const slug = getChangeSlug(changeId, changeKey);
103
+ const aliases = new Set([
104
+ changeKey,
105
+ `${slugifySegment(changeId, 'change')}-${slug}`
106
+ ]);
107
+
108
+ return listChangeKeys(repoRoot).find((name) => aliases.has(name)) || null;
99
109
  }
100
110
 
101
111
  function assertChangeKey(changeId, changeKey) {
@@ -132,14 +142,56 @@ function resolveChangeKey(repoRoot, changeId, options = {}) {
132
142
  return assertChangeKey(changeId, options.changeKey);
133
143
  }
134
144
 
135
- const existing = findExistingChangeKey(repoRoot, changeId);
136
- if (existing) {
137
- return existing;
145
+ const requestedSlug = options.slug || stripChangeIdPrefix(changeId, options.goal);
146
+ if (requestedSlug) {
147
+ const requestedKey = buildChangeKey(changeId, { slug: requestedSlug });
148
+ return findExactChangeKey(repoRoot, changeId, requestedKey) || requestedKey;
149
+ }
150
+
151
+ const existing = findExistingChangeKeys(repoRoot, changeId);
152
+ if (existing.length === 1) {
153
+ return existing[0];
154
+ }
155
+ if (existing.length > 1) {
156
+ throw new Error(
157
+ `Ambiguous changeId "${changeId}": found ${existing.join(', ')}. Pass an explicit changeKey.`
158
+ );
138
159
  }
139
160
 
140
161
  return buildChangeKey(changeId, options);
141
162
  }
142
163
 
164
+ function nextChangeKey(repoRoot, prefix, description) {
165
+ const upper = String(prefix || '').toUpperCase();
166
+ if (upper !== 'REQ' && upper !== 'FIX') {
167
+ throw new Error(`Invalid prefix "${prefix}". Use REQ or FIX.`);
168
+ }
169
+
170
+ const numberPattern = new RegExp(`^${upper}-(\\d+)`);
171
+ let maxNum = 0;
172
+ let padWidth = 3;
173
+
174
+ for (const name of listChangeKeys(repoRoot)) {
175
+ const match = name.match(numberPattern);
176
+ if (match) {
177
+ const numStr = match[1];
178
+ const num = parseInt(numStr, 10);
179
+ if (num > maxNum) maxNum = num;
180
+ if (numStr.length > padWidth) padWidth = numStr.length;
181
+ }
182
+ }
183
+
184
+ const paddedNum = String(maxNum + 1).padStart(padWidth, '0');
185
+ const changeId = `${upper}-${paddedNum}`;
186
+ const slug = slugifySegment(
187
+ stripChangeIdPrefix(changeId, description) || description,
188
+ 'change'
189
+ );
190
+ const changeKey = `${changeId}-${slug}`;
191
+
192
+ return { changeId, changeKey };
193
+ }
194
+
143
195
  function getChangePaths(repoRoot, changeId, options = {}) {
144
196
  const changeKey = resolveChangeKey(repoRoot, changeId, options);
145
197
  const changeDir = path.join(getChangesRoot(repoRoot), changeKey);
@@ -205,6 +257,7 @@ module.exports = {
205
257
  getDevflowRoot,
206
258
  getChangesRoot,
207
259
  getWorkspacesRoot,
260
+ nextChangeKey,
208
261
  resolveChangeKey,
209
262
  buildChangeKey,
210
263
  getChangePaths,
@@ -48,10 +48,10 @@ function createQueryRegistry(entries) {
48
48
  };
49
49
  }
50
50
 
51
- const artifactRefs = resolveArtifactRefs(entry, context, 'artifactRefs');
52
- const requiredArtifactRefs = resolveArtifactRefs(entry, context, 'requiredArtifactRefs');
53
-
51
+ let artifactRefs = [];
54
52
  try {
53
+ artifactRefs = resolveArtifactRefs(entry, context, 'artifactRefs');
54
+ const requiredArtifactRefs = resolveArtifactRefs(entry, context, 'requiredArtifactRefs');
55
55
  const missingRefs = requiredArtifactRefs.filter((ref) => !fs.existsSync(ref));
56
56
  if (missingRefs.length > 0) {
57
57
  throw namedError(
@@ -1,5 +1,5 @@
1
1
  /**
2
- * [INPUT]: 依赖 store/artifacts/lifecycle 读取 requirement 工件,接收 repoRoot changeId
2
+ * [INPUT]: 依赖 store/artifacts/lifecycle 读取 requirement 工件,接收 repoRoot、changeId 和可选 changeKey
3
3
  * [OUTPUT]: 对外提供 typed query registry 与兼容查询函数,附 named error 和 trace shape。
4
4
  * [POS]: skill runtime 的薄查询兼容层,只读 artifact 与共享 lifecycle 语义,不再自带流程推导副本。
5
5
  * [PROTOCOL]: 变更时更新此头部,然后检查 CLAUDE.md
@@ -65,8 +65,8 @@ async function readQueryArtifact(filePath, { required = true } = {}) {
65
65
  * @param {string} changeId - 需求 ID
66
66
  * @returns {Promise<Object>} 进度统计对象
67
67
  */
68
- async function getProgress(repoRoot, changeId) {
69
- const manifestPath = getTaskManifestPath(repoRoot, changeId);
68
+ async function getProgress(repoRoot, changeId, options = {}) {
69
+ const manifestPath = getTaskManifestPath(repoRoot, changeId, options);
70
70
  const manifest = await readQueryArtifact(manifestPath);
71
71
  return deriveTaskProgress(manifest.tasks || []);
72
72
  }
@@ -77,8 +77,8 @@ async function getProgress(repoRoot, changeId) {
77
77
  * @param {string} changeId - 需求 ID
78
78
  * @returns {Promise<Object|null>} 下一个任务对象或 null
79
79
  */
80
- async function getNextTask(repoRoot, changeId) {
81
- const manifestPath = getTaskManifestPath(repoRoot, changeId);
80
+ async function getNextTask(repoRoot, changeId, options = {}) {
81
+ const manifestPath = getTaskManifestPath(repoRoot, changeId, options);
82
82
  const manifest = await readQueryArtifact(manifestPath);
83
83
  const executionState = deriveManifestExecutionState(manifest.tasks || []);
84
84
  const activePhase = manifest.activePhase ?? executionState.activePhase;
@@ -117,18 +117,18 @@ async function getNextTask(repoRoot, changeId) {
117
117
  * @param {string} changeId - 需求 ID
118
118
  * @returns {Promise<Object>} 完整状态对象
119
119
  */
120
- async function getFullState(repoRoot, changeId) {
121
- const statePath = getRuntimeStatePath(repoRoot, changeId);
122
- const reportPath = getReportCardPath(repoRoot, changeId);
123
- const prBriefPath = getIntentPrBriefPath(repoRoot, changeId);
120
+ async function getFullState(repoRoot, changeId, options = {}) {
121
+ const statePath = getRuntimeStatePath(repoRoot, changeId, options);
122
+ const reportPath = getReportCardPath(repoRoot, changeId, options);
123
+ const prBriefPath = getIntentPrBriefPath(repoRoot, changeId, options);
124
124
 
125
125
  const [state, manifest, hasPrBrief] = await Promise.all([
126
126
  readQueryArtifact(statePath),
127
- readQueryArtifact(getTaskManifestPath(repoRoot, changeId)),
127
+ readQueryArtifact(getTaskManifestPath(repoRoot, changeId, options)),
128
128
  exists(prBriefPath)
129
129
  ]);
130
- const progress = await getProgress(repoRoot, changeId);
131
- const nextTask = await getNextTask(repoRoot, changeId);
130
+ const progress = await getProgress(repoRoot, changeId, options);
131
+ const nextTask = await getNextTask(repoRoot, changeId, options);
132
132
  const report = await readQueryArtifact(reportPath, { required: false });
133
133
 
134
134
  return {
@@ -160,8 +160,8 @@ async function getFullState(repoRoot, changeId) {
160
160
  };
161
161
  }
162
162
 
163
- async function getShipReadiness(repoRoot, changeId) {
164
- const reportPath = getReportCardPath(repoRoot, changeId);
163
+ async function getShipReadiness(repoRoot, changeId, options = {}) {
164
+ const reportPath = getReportCardPath(repoRoot, changeId, options);
165
165
  const report = await readJson(reportPath, null);
166
166
 
167
167
  if (!report) {
@@ -178,12 +178,12 @@ async function getShipReadiness(repoRoot, changeId) {
178
178
  return deriveShipReadiness(report, { reportPath });
179
179
  }
180
180
 
181
- function queryArtifactRefs(repoRoot, changeId, names) {
181
+ function queryArtifactRefs(repoRoot, changeId, names, options = {}) {
182
182
  const refs = {
183
- manifest: getTaskManifestPath(repoRoot, changeId),
184
- state: getRuntimeStatePath(repoRoot, changeId),
185
- report: getReportCardPath(repoRoot, changeId),
186
- prBrief: getIntentPrBriefPath(repoRoot, changeId)
183
+ manifest: getTaskManifestPath(repoRoot, changeId, options),
184
+ state: getRuntimeStatePath(repoRoot, changeId, options),
185
+ report: getReportCardPath(repoRoot, changeId, options),
186
+ prBrief: getIntentPrBriefPath(repoRoot, changeId, options)
187
187
  };
188
188
 
189
189
  return names.map((name) => refs[name]).filter(Boolean);
@@ -192,26 +192,26 @@ function queryArtifactRefs(repoRoot, changeId, names) {
192
192
  const registry = createQueryRegistry([
193
193
  {
194
194
  id: 'progress',
195
- artifactRefs: ({ repoRoot, changeId }) => queryArtifactRefs(repoRoot, changeId, ['manifest']),
196
- requiredArtifactRefs: ({ repoRoot, changeId }) => queryArtifactRefs(repoRoot, changeId, ['manifest']),
197
- handler: ({ repoRoot, changeId }) => getProgress(repoRoot, changeId)
195
+ artifactRefs: ({ repoRoot, changeId, changeKey }) => queryArtifactRefs(repoRoot, changeId, ['manifest'], { changeKey }),
196
+ requiredArtifactRefs: ({ repoRoot, changeId, changeKey }) => queryArtifactRefs(repoRoot, changeId, ['manifest'], { changeKey }),
197
+ handler: ({ repoRoot, changeId, changeKey }) => getProgress(repoRoot, changeId, { changeKey })
198
198
  },
199
199
  {
200
200
  id: 'next-task',
201
- artifactRefs: ({ repoRoot, changeId }) => queryArtifactRefs(repoRoot, changeId, ['manifest']),
202
- requiredArtifactRefs: ({ repoRoot, changeId }) => queryArtifactRefs(repoRoot, changeId, ['manifest']),
203
- handler: ({ repoRoot, changeId }) => getNextTask(repoRoot, changeId)
201
+ artifactRefs: ({ repoRoot, changeId, changeKey }) => queryArtifactRefs(repoRoot, changeId, ['manifest'], { changeKey }),
202
+ requiredArtifactRefs: ({ repoRoot, changeId, changeKey }) => queryArtifactRefs(repoRoot, changeId, ['manifest'], { changeKey }),
203
+ handler: ({ repoRoot, changeId, changeKey }) => getNextTask(repoRoot, changeId, { changeKey })
204
204
  },
205
205
  {
206
206
  id: 'full-state',
207
- artifactRefs: ({ repoRoot, changeId }) => queryArtifactRefs(repoRoot, changeId, ['state', 'manifest', 'report', 'prBrief']),
208
- requiredArtifactRefs: ({ repoRoot, changeId }) => queryArtifactRefs(repoRoot, changeId, ['state', 'manifest']),
209
- handler: ({ repoRoot, changeId }) => getFullState(repoRoot, changeId)
207
+ artifactRefs: ({ repoRoot, changeId, changeKey }) => queryArtifactRefs(repoRoot, changeId, ['state', 'manifest', 'report', 'prBrief'], { changeKey }),
208
+ requiredArtifactRefs: ({ repoRoot, changeId, changeKey }) => queryArtifactRefs(repoRoot, changeId, ['state', 'manifest'], { changeKey }),
209
+ handler: ({ repoRoot, changeId, changeKey }) => getFullState(repoRoot, changeId, { changeKey })
210
210
  },
211
211
  {
212
212
  id: 'ship-readiness',
213
- artifactRefs: ({ repoRoot, changeId }) => queryArtifactRefs(repoRoot, changeId, ['report']),
214
- handler: ({ repoRoot, changeId }) => getShipReadiness(repoRoot, changeId)
213
+ artifactRefs: ({ repoRoot, changeId, changeKey }) => queryArtifactRefs(repoRoot, changeId, ['report'], { changeKey }),
214
+ handler: ({ repoRoot, changeId, changeKey }) => getShipReadiness(repoRoot, changeId, { changeKey })
215
215
  }
216
216
  ]);
217
217
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-devflow",
3
- "version": "4.5.5",
3
+ "version": "4.5.7",
4
4
  "description": "Multi-platform CLI and skill pack for agent coding",
5
5
  "main": "bin/cc-devflow.js",
6
6
  "bin": {
@@ -14,6 +14,7 @@
14
14
  ".claude/skills/cc-plan/",
15
15
  ".claude/skills/cc-investigate/",
16
16
  ".claude/skills/cc-do/",
17
+ ".claude/skills/cc-review/",
17
18
  ".claude/skills/cc-check/",
18
19
  ".claude/skills/cc-act/",
19
20
  ".claude/skills/cc-spec-init/",