cclaw-cli 6.14.4 → 7.0.1

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 (86) hide show
  1. package/README.md +0 -2
  2. package/dist/artifact-linter/brainstorm.js +1 -1
  3. package/dist/artifact-linter/design.js +2 -2
  4. package/dist/artifact-linter/findings-dedup.js +1 -1
  5. package/dist/artifact-linter/plan.js +6 -6
  6. package/dist/artifact-linter/review-army.d.ts +1 -1
  7. package/dist/artifact-linter/review-army.js +1 -1
  8. package/dist/artifact-linter/scope.js +6 -6
  9. package/dist/artifact-linter/shared.d.ts +37 -73
  10. package/dist/artifact-linter/shared.js +30 -37
  11. package/dist/artifact-linter/spec.js +1 -1
  12. package/dist/artifact-linter/tdd.d.ts +20 -33
  13. package/dist/artifact-linter/tdd.js +89 -639
  14. package/dist/artifact-linter.js +11 -32
  15. package/dist/cli.js +1 -1
  16. package/dist/config.js +1 -1
  17. package/dist/constants.js +1 -1
  18. package/dist/content/core-agents.d.ts +8 -26
  19. package/dist/content/core-agents.js +48 -94
  20. package/dist/content/examples.d.ts +1 -1
  21. package/dist/content/examples.js +4 -4
  22. package/dist/content/hooks.js +62 -149
  23. package/dist/content/idea.js +2 -2
  24. package/dist/content/iron-laws.js +1 -1
  25. package/dist/content/node-hooks.js +2 -2
  26. package/dist/content/skills-elicitation.js +2 -2
  27. package/dist/content/skills.d.ts +4 -6
  28. package/dist/content/skills.js +14 -53
  29. package/dist/content/stage-schema.d.ts +3 -3
  30. package/dist/content/stage-schema.js +8 -46
  31. package/dist/content/stages/brainstorm.js +5 -5
  32. package/dist/content/stages/plan.js +2 -2
  33. package/dist/content/stages/review.js +1 -1
  34. package/dist/content/stages/schema-types.d.ts +1 -1
  35. package/dist/content/stages/scope.js +1 -1
  36. package/dist/content/stages/spec.js +2 -2
  37. package/dist/content/stages/tdd.js +43 -108
  38. package/dist/content/start-command.js +3 -3
  39. package/dist/content/subagent-context-skills.js +5 -3
  40. package/dist/content/subagents.js +13 -74
  41. package/dist/content/templates.d.ts +6 -6
  42. package/dist/content/templates.js +23 -24
  43. package/dist/content/utility-skills.d.ts +1 -1
  44. package/dist/content/utility-skills.js +1 -1
  45. package/dist/delegation.d.ts +79 -139
  46. package/dist/delegation.js +83 -215
  47. package/dist/early-loop.js +1 -1
  48. package/dist/flow-state.d.ts +24 -129
  49. package/dist/flow-state.js +5 -30
  50. package/dist/gate-evidence.d.ts +2 -7
  51. package/dist/gate-evidence.js +2 -59
  52. package/dist/harness-adapters.d.ts +1 -1
  53. package/dist/harness-adapters.js +11 -10
  54. package/dist/install.js +28 -460
  55. package/dist/internal/advance-stage/advance.d.ts +5 -5
  56. package/dist/internal/advance-stage/advance.js +9 -24
  57. package/dist/internal/advance-stage/parsers.d.ts +1 -1
  58. package/dist/internal/advance-stage/review-loop.d.ts +1 -1
  59. package/dist/internal/advance-stage/review-loop.js +3 -3
  60. package/dist/internal/advance-stage/start-flow.js +1 -3
  61. package/dist/internal/advance-stage.js +4 -23
  62. package/dist/internal/cohesion-contract-stub.d.ts +8 -13
  63. package/dist/internal/cohesion-contract-stub.js +18 -24
  64. package/dist/internal/flow-state-repair.d.ts +1 -1
  65. package/dist/internal/plan-split-waves.d.ts +18 -21
  66. package/dist/internal/plan-split-waves.js +16 -19
  67. package/dist/internal/wave-status.d.ts +3 -6
  68. package/dist/internal/wave-status.js +5 -27
  69. package/dist/policy.js +1 -1
  70. package/dist/run-persistence.js +10 -44
  71. package/dist/runtime/run-hook.mjs +3 -3
  72. package/dist/track-heuristics.js +1 -1
  73. package/dist/types.d.ts +2 -2
  74. package/package.json +1 -1
  75. package/dist/integration-fanin.d.ts +0 -44
  76. package/dist/integration-fanin.js +0 -180
  77. package/dist/internal/set-checkpoint-mode.d.ts +0 -16
  78. package/dist/internal/set-checkpoint-mode.js +0 -72
  79. package/dist/internal/set-integration-overseer-mode.d.ts +0 -14
  80. package/dist/internal/set-integration-overseer-mode.js +0 -69
  81. package/dist/internal/set-worktree-mode.d.ts +0 -10
  82. package/dist/internal/set-worktree-mode.js +0 -28
  83. package/dist/worktree-manager.d.ts +0 -50
  84. package/dist/worktree-manager.js +0 -136
  85. package/dist/worktree-types.d.ts +0 -36
  86. package/dist/worktree-types.js +0 -6
@@ -1,7 +1,7 @@
1
1
  import type { DelegationEntry, DelegationEvent } from "../delegation.js";
2
2
  import { type LintFinding, type StageLintContext } from "./shared.js";
3
3
  /**
4
- * v6.11.0 — TDD stage linter.
4
+ * TDD stage linter.
5
5
  *
6
6
  * Source-of-truth ladder, in order of precedence:
7
7
  *
@@ -11,10 +11,9 @@ import { type LintFinding, type StageLintContext } from "./shared.js";
11
11
  * auto-derives Watched-RED / Vertical Slice Cycle from the events
12
12
  * and writes a rendered summary block between auto-render markers
13
13
  * in `06-tdd.md`. Markdown table content is no longer required.
14
- * 2. **Legacy markdown tables** (Watched-RED Proof + Vertical Slice
15
- * Cycle) — used as a fallback when the events ledger has no slice
16
- * phase rows for the active run. Existing v6.10 and earlier
17
- * artifacts continue to validate via this path.
14
+ * 2. **Hand-authored markdown tables** (Watched-RED Proof + Vertical
15
+ * Slice Cycle) — used as a fallback when the events ledger has no
16
+ * slice phase rows for the active run.
18
17
  * 3. **Sharded slice files** under `<artifacts-dir>/tdd-slices/S-*.md`.
19
18
  * Per-slice prose lives there. The main `06-tdd.md` is auto-indexed
20
19
  * via `## Slices Index`.
@@ -36,25 +35,23 @@ export declare function evaluateEventsSliceCycle(slices: Map<string, DelegationE
36
35
  interface DocCoverageResult {
37
36
  missing: string[];
38
37
  }
39
- export declare function evaluateSliceDocumenterCoverage(slices: Map<string, DelegationEntry[]>): DocCoverageResult;
40
- interface ImplementerCoverageResult {
38
+ export declare function evaluateSliceDocCoverage(slices: Map<string, DelegationEntry[]>): DocCoverageResult;
39
+ interface BuilderCoverageResult {
41
40
  missing: string[];
42
41
  }
43
42
  /**
44
- * v6.12.0 Phase M — slice-implementer must own GREEN. For each slice
45
- * that recorded a phase=red event with non-empty evidenceRefs, require a
46
- * phase=green event whose `agent === "slice-implementer"`. Slices whose
47
- * GREEN event came from a different agent (e.g. controller wrote GREEN
48
- * itself and recorded a green row under another agent name) are flagged.
43
+ * `slice-builder` must own GREEN. For each slice that recorded a phase=red
44
+ * event with non-empty evidenceRefs, require a phase=green whose agent is
45
+ * `slice-builder`.
49
46
  */
50
- export declare function evaluateSliceImplementerCoverage(slices: Map<string, DelegationEntry[]>): ImplementerCoverageResult;
47
+ export declare function evaluateSliceBuilderCoverage(slices: Map<string, DelegationEntry[]>): BuilderCoverageResult;
51
48
  interface RedCheckpointResult {
52
49
  ok: boolean;
53
50
  details: string;
54
51
  }
55
52
  /**
56
- * v6.13.1 — detect single-slice dispatch when the merged wave plan
57
- * requires parallel ready slice-implementer fan-out.
53
+ * Detect single-slice dispatch when the merged wave plan requires parallel
54
+ * ready slice-builder fan-out.
58
55
  */
59
56
  export declare function evaluateWavePlanDispatchIgnored(params: {
60
57
  artifactsDir: string;
@@ -62,10 +59,10 @@ export declare function evaluateWavePlanDispatchIgnored(params: {
62
59
  runEvents: DelegationEvent[];
63
60
  runId: string;
64
61
  slices: Map<string, DelegationEntry[]>;
65
- legacyContinuation: boolean;
66
62
  }): Promise<LintFinding | null>;
67
63
  /**
68
- * v6.12.0 Phase W (legacy `global-red` mode) — RED checkpoint enforcement.
64
+ * Global RED checkpoint enforcement (`global-red` mode).
65
+ *
69
66
  * The wave protocol requires ALL Phase A REDs to land before ANY Phase B
70
67
  * GREEN starts. The rule is enforced on a per-wave basis, where a wave is
71
68
  * defined by the managed `## Parallel Execution Plan` block in
@@ -75,10 +72,9 @@ export declare function evaluateWavePlanDispatchIgnored(params: {
75
72
  * with no other-phase events between them; the rule fires only when the
76
73
  * implicit wave has 2+ members.
77
74
  *
78
- * v6.14.0: this function powers the `global-red` checkpoint mode. New
79
- * projects default to `per-slice` mode (see
80
- * `evaluatePerSliceRedBeforeGreen`); `legacyContinuation: true` projects
81
- * auto-keep this behavior. Exported under both `evaluateGlobalRedCheckpoint`
75
+ * Default mode is `per-slice` (see `evaluatePerSliceRedBeforeGreen`);
76
+ * this checkpoint applies when a project explicitly opts into
77
+ * `global-red`. Exported under both `evaluateGlobalRedCheckpoint`
82
78
  * (canonical name) and `evaluateRedCheckpoint` (back-compat alias for
83
79
  * existing tests/consumers).
84
80
  *
@@ -87,26 +83,17 @@ export declare function evaluateWavePlanDispatchIgnored(params: {
87
83
  */
88
84
  export declare function evaluateGlobalRedCheckpoint(slices: Map<string, DelegationEntry[]>, waveMembers?: Map<string, Set<string>> | null): RedCheckpointResult;
89
85
  /**
90
- * Back-compat alias for `evaluateGlobalRedCheckpoint` (v6.12.0 Phase W
91
- * behavior). Existing tests/consumers can keep importing
92
- * `evaluateRedCheckpoint`. The v6.14.0 stream-style mode uses
93
- * `evaluatePerSliceRedBeforeGreen` instead.
86
+ * Back-compat alias for `evaluateGlobalRedCheckpoint`. The default mode
87
+ * uses `evaluatePerSliceRedBeforeGreen` instead.
94
88
  */
95
89
  export declare const evaluateRedCheckpoint: typeof evaluateGlobalRedCheckpoint;
96
90
  /**
97
- * v6.14.0 — per-slice RED-before-GREEN enforcement (default mode).
91
+ * Per-slice RED-before-GREEN enforcement (default mode).
98
92
  *
99
93
  * For each slice with both phase=red and phase=green completed events,
100
94
  * fail if any green completedTs precedes the slice's last red completedTs.
101
95
  * No global wave barrier — different slices may freely interleave their
102
96
  * RED/GREEN/REFACTOR phases.
103
- *
104
- * Note: this is intentionally weaker than `evaluateGlobalRedCheckpoint`
105
- * because the W-02 measurement on hox showed ~6 minutes of barrier
106
- * overhead when slices were already disjoint (file-overlap scheduler did
107
- * the parallelism job). The per-slice rule retains the only invariant
108
- * that mattered for correctness: no slice goes GREEN before its own
109
- * RED is observed failing.
110
97
  */
111
98
  export declare function evaluatePerSliceRedBeforeGreen(slices: Map<string, DelegationEntry[]>): RedCheckpointResult;
112
99
  export declare function parseVerticalSliceCycle(body: string): ParsedSliceCycleResult;