cclaw-cli 0.51.29 → 0.51.30

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/policy.js CHANGED
@@ -127,7 +127,7 @@ export async function policyChecks(projectRoot, options = {}) {
127
127
  });
128
128
  utilitySkillChecks.push({
129
129
  file: ".cursor/rules/cclaw-workflow.mdc",
130
- needle: "/cc-next",
130
+ needle: "/cc",
131
131
  name: "rules:cursor:next_command_guidance"
132
132
  });
133
133
  }
@@ -232,20 +232,20 @@ export async function archiveRun(projectRoot, runName, options = {}) {
232
232
  }
233
233
  if (!nonCompletedDisposition && inShipCloseout && skipRetro) {
234
234
  throw new Error("Archive blocked: --skip-retro is not allowed while current stage is ship. " +
235
- "Complete closeout to ready_to_archive via /cc-next.");
235
+ "Complete closeout to ready_to_archive via /cc.");
236
236
  }
237
237
  if (!nonCompletedDisposition && inShipCloseout && !readyForArchive) {
238
238
  throw new Error("Archive blocked: closeout is not ready_to_archive. " +
239
- "Resume /cc-next until closeout reaches ready_to_archive.");
239
+ "Resume /cc until closeout reaches ready_to_archive.");
240
240
  }
241
241
  if (!nonCompletedDisposition && shipCompleted && !readyForArchive && !skipRetro) {
242
242
  throw new Error("Archive blocked: closeout is not ready_to_archive. " +
243
- "Resume /cc-next until closeout reaches ready_to_archive, " +
243
+ "Resume /cc until closeout reaches ready_to_archive, " +
244
244
  "or run `cclaw archive --skip-retro --retro-reason=<text>` for CLI-only flows.");
245
245
  }
246
246
  if (!nonCompletedDisposition && retroGate.required && !retroGate.completed && !skipRetro && !retroSkippedInCloseout) {
247
247
  throw new Error("Archive blocked: retro gate is required after ship completion. " +
248
- "Run /cc-next (auto-runs retro) or, for CLI-only flows, re-run `cclaw archive --skip-retro --retro-reason=<text>`.");
248
+ "Run /cc (auto-runs retro) or, for CLI-only flows, re-run `cclaw archive --skip-retro --retro-reason=<text>`.");
249
249
  }
250
250
  if (retroGate.completed) {
251
251
  const completedAt = sourceState.retro.completedAt ?? new Date().toISOString();
@@ -60,7 +60,7 @@ function validateFlowTransition(prev, next) {
60
60
  const isNaturalForward = naturalForward === next.currentStage;
61
61
  const isReviewRewind = prev.currentStage === "review" && next.currentStage === "tdd";
62
62
  if (!isNaturalForward && !isReviewRewind) {
63
- throw new InvalidStageTransitionError(prev.currentStage, next.currentStage, `no transition rule allows "${prev.currentStage}" -> "${next.currentStage}" for track "${prev.track}". Use /cc-next to advance stages or archive the run to reset.`);
63
+ throw new InvalidStageTransitionError(prev.currentStage, next.currentStage, `no transition rule allows "${prev.currentStage}" -> "${next.currentStage}" for track "${prev.track}". Use /cc to advance stages or archive the run to reset.`);
64
64
  }
65
65
  }
66
66
  function flowStatePath(projectRoot) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cclaw-cli",
3
- "version": "0.51.29",
3
+ "version": "0.51.30",
4
4
  "description": "Installer-first flow toolkit for coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,2 +0,0 @@
1
- export declare function finishCommandContract(): string;
2
- export declare function finishCommandSkillMarkdown(): string;
@@ -1,26 +0,0 @@
1
- export function finishCommandContract() {
2
- return `# /cc-finish command contract
3
-
4
- Use this command when the user says the active run is complete and wants to close it out.
5
-
6
- ## Protocol
7
-
8
- 1. Read \`.cclaw/state/flow-state.json\` and \`.cclaw/commands/next.md\`.
9
- 2. Confirm ship closeout is \`ready_to_archive\`. If not, route to \`/cc-next\` until retro and compound closeout are complete or explicitly skipped there.
10
- 3. Run \`cclaw archive --disposition=completed\` from the project root.
11
- 4. Report the archive path, reset run id, and any knowledge curation hint printed by the CLI.
12
-
13
- Completed archives keep strict closeout gates: do not bypass retro or compound review from this command.
14
- `;
15
- }
16
- export function finishCommandSkillMarkdown() {
17
- return `---
18
- name: flow-finish
19
- description: Finish a completed cclaw run by archiving with completed disposition. Use when the user types /cc-finish or asks to finish, close, complete, or archive a successful run.
20
- ---
21
-
22
- # Finish cclaw Run
23
-
24
- Load and follow \`.cclaw/commands/finish.md\`. This is the successful closeout path and must preserve the normal ship closeout gates before archive.
25
- `;
26
- }