cclaw-cli 6.14.3 → 7.0.0
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/README.md +0 -2
- package/dist/artifact-linter/brainstorm.js +1 -1
- package/dist/artifact-linter/design.js +2 -2
- package/dist/artifact-linter/findings-dedup.js +1 -1
- package/dist/artifact-linter/plan.js +6 -6
- package/dist/artifact-linter/review-army.d.ts +1 -1
- package/dist/artifact-linter/review-army.js +1 -1
- package/dist/artifact-linter/scope.js +6 -6
- package/dist/artifact-linter/shared.d.ts +37 -73
- package/dist/artifact-linter/shared.js +30 -37
- package/dist/artifact-linter/spec.js +1 -1
- package/dist/artifact-linter/tdd.d.ts +20 -33
- package/dist/artifact-linter/tdd.js +89 -617
- package/dist/artifact-linter.js +11 -32
- package/dist/cli.js +1 -1
- package/dist/config.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/content/core-agents.d.ts +8 -26
- package/dist/content/core-agents.js +48 -94
- package/dist/content/examples.d.ts +1 -1
- package/dist/content/examples.js +4 -4
- package/dist/content/hooks.js +62 -149
- package/dist/content/idea.js +2 -2
- package/dist/content/iron-laws.js +1 -1
- package/dist/content/node-hooks.js +2 -2
- package/dist/content/skills-elicitation.js +2 -2
- package/dist/content/skills.d.ts +4 -6
- package/dist/content/skills.js +14 -53
- package/dist/content/stage-schema.d.ts +3 -3
- package/dist/content/stage-schema.js +8 -46
- package/dist/content/stages/brainstorm.js +5 -5
- package/dist/content/stages/plan.js +2 -2
- package/dist/content/stages/review.js +1 -1
- package/dist/content/stages/schema-types.d.ts +1 -1
- package/dist/content/stages/scope.js +1 -1
- package/dist/content/stages/spec.js +2 -2
- package/dist/content/stages/tdd.js +43 -108
- package/dist/content/start-command.js +3 -3
- package/dist/content/subagent-context-skills.js +5 -3
- package/dist/content/subagents.js +13 -74
- package/dist/content/templates.d.ts +6 -6
- package/dist/content/templates.js +23 -24
- package/dist/content/utility-skills.d.ts +1 -1
- package/dist/content/utility-skills.js +1 -1
- package/dist/delegation.d.ts +79 -139
- package/dist/delegation.js +83 -215
- package/dist/early-loop.js +1 -1
- package/dist/flow-state.d.ts +24 -129
- package/dist/flow-state.js +5 -30
- package/dist/gate-evidence.d.ts +2 -7
- package/dist/gate-evidence.js +2 -59
- package/dist/harness-adapters.d.ts +1 -1
- package/dist/harness-adapters.js +11 -10
- package/dist/install.js +24 -459
- package/dist/internal/advance-stage/advance.d.ts +5 -5
- package/dist/internal/advance-stage/advance.js +9 -24
- package/dist/internal/advance-stage/parsers.d.ts +1 -1
- package/dist/internal/advance-stage/review-loop.d.ts +1 -1
- package/dist/internal/advance-stage/review-loop.js +3 -3
- package/dist/internal/advance-stage/start-flow.js +1 -3
- package/dist/internal/advance-stage.js +4 -23
- package/dist/internal/cohesion-contract-stub.d.ts +8 -13
- package/dist/internal/cohesion-contract-stub.js +18 -24
- package/dist/internal/flow-state-repair.d.ts +1 -1
- package/dist/internal/plan-split-waves.d.ts +44 -7
- package/dist/internal/plan-split-waves.js +113 -12
- package/dist/internal/wave-status.d.ts +3 -6
- package/dist/internal/wave-status.js +5 -27
- package/dist/policy.js +1 -1
- package/dist/run-persistence.js +10 -44
- package/dist/runtime/run-hook.mjs +3 -3
- package/dist/track-heuristics.js +1 -1
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
- package/dist/integration-fanin.d.ts +0 -44
- package/dist/integration-fanin.js +0 -180
- package/dist/internal/set-checkpoint-mode.d.ts +0 -16
- package/dist/internal/set-checkpoint-mode.js +0 -72
- package/dist/internal/set-integration-overseer-mode.d.ts +0 -14
- package/dist/internal/set-integration-overseer-mode.js +0 -69
- package/dist/internal/set-worktree-mode.d.ts +0 -10
- package/dist/internal/set-worktree-mode.js +0 -28
- package/dist/worktree-manager.d.ts +0 -50
- package/dist/worktree-manager.js +0 -136
- package/dist/worktree-types.d.ts +0 -36
- 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
|
-
*
|
|
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. **
|
|
15
|
-
* Cycle) — used as a fallback when the events ledger has no
|
|
16
|
-
* phase rows for the active run.
|
|
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
|
|
40
|
-
interface
|
|
38
|
+
export declare function evaluateSliceDocCoverage(slices: Map<string, DelegationEntry[]>): DocCoverageResult;
|
|
39
|
+
interface BuilderCoverageResult {
|
|
41
40
|
missing: string[];
|
|
42
41
|
}
|
|
43
42
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
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
|
|
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
|
-
*
|
|
57
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* `
|
|
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
|
|
91
|
-
*
|
|
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
|
-
*
|
|
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;
|