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/cli.d.ts +1 -12
- package/dist/cli.js +6 -89
- package/dist/content/closeout-guidance.js +3 -3
- package/dist/content/core-agents.js +5 -5
- package/dist/content/meta-skill.js +7 -9
- package/dist/content/next-command.d.ts +2 -2
- package/dist/content/next-command.js +15 -15
- package/dist/content/node-hooks.js +2 -2
- package/dist/content/session-hooks.js +1 -1
- package/dist/content/stage-command.js +1 -1
- package/dist/content/stage-common-guidance.js +4 -4
- package/dist/content/stages/plan.js +2 -2
- package/dist/content/stages/review.js +1 -1
- package/dist/content/start-command.d.ts +2 -2
- package/dist/content/start-command.js +14 -12
- package/dist/content/status-command.js +5 -5
- package/dist/content/subagents.js +1 -1
- package/dist/content/templates.d.ts +1 -1
- package/dist/content/templates.js +2 -2
- package/dist/doctor.js +5 -10
- package/dist/flow-state.d.ts +1 -1
- package/dist/flow-state.js +1 -1
- package/dist/harness-adapters.d.ts +2 -2
- package/dist/harness-adapters.js +9 -106
- package/dist/harness-selection.d.ts +31 -0
- package/dist/harness-selection.js +214 -0
- package/dist/install.js +13 -9
- package/dist/internal/advance-stage.js +1 -1
- package/dist/policy.js +1 -1
- package/dist/run-archive.js +4 -4
- package/dist/run-persistence.js +1 -1
- package/package.json +1 -1
- package/dist/content/finish-command.d.ts +0 -2
- package/dist/content/finish-command.js +0 -26
package/dist/policy.js
CHANGED
package/dist/run-archive.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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();
|
package/dist/run-persistence.js
CHANGED
|
@@ -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
|
|
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,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
|
-
}
|