cclaw-cli 0.51.30 → 0.55.2
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 +22 -16
- package/dist/artifact-linter/brainstorm.d.ts +2 -0
- package/dist/artifact-linter/brainstorm.js +245 -0
- package/dist/artifact-linter/design.d.ts +2 -0
- package/dist/artifact-linter/design.js +323 -0
- package/dist/artifact-linter/plan.d.ts +2 -0
- package/dist/artifact-linter/plan.js +162 -0
- package/dist/artifact-linter/review-army.d.ts +24 -0
- package/dist/artifact-linter/review-army.js +365 -0
- package/dist/artifact-linter/review.d.ts +2 -0
- package/dist/artifact-linter/review.js +65 -0
- package/dist/artifact-linter/scope.d.ts +2 -0
- package/dist/artifact-linter/scope.js +115 -0
- package/dist/artifact-linter/shared.d.ts +246 -0
- package/dist/artifact-linter/shared.js +1488 -0
- package/dist/artifact-linter/ship.d.ts +2 -0
- package/dist/artifact-linter/ship.js +46 -0
- package/dist/artifact-linter/spec.d.ts +2 -0
- package/dist/artifact-linter/spec.js +108 -0
- package/dist/artifact-linter/tdd.d.ts +2 -0
- package/dist/artifact-linter/tdd.js +124 -0
- package/dist/artifact-linter.d.ts +4 -76
- package/dist/artifact-linter.js +56 -2949
- package/dist/cli.d.ts +1 -6
- package/dist/cli.js +4 -159
- package/dist/codex-feature-flag.d.ts +1 -1
- package/dist/codex-feature-flag.js +1 -1
- package/dist/config.d.ts +3 -2
- package/dist/config.js +67 -3
- package/dist/constants.d.ts +1 -7
- package/dist/constants.js +9 -15
- package/dist/content/cancel-command.js +2 -2
- package/dist/content/closeout-guidance.js +10 -7
- package/dist/content/core-agents.d.ts +18 -0
- package/dist/content/core-agents.js +46 -2
- package/dist/content/decision-protocol.d.ts +1 -1
- package/dist/content/decision-protocol.js +1 -1
- package/dist/content/examples.js +6 -6
- package/dist/content/harness-doc.js +20 -2
- package/dist/content/hook-inline-snippets.d.ts +17 -4
- package/dist/content/hook-inline-snippets.js +218 -5
- package/dist/content/hook-manifest.d.ts +2 -2
- package/dist/content/hook-manifest.js +2 -2
- package/dist/content/hooks.d.ts +1 -0
- package/dist/content/hooks.js +32 -137
- package/dist/content/idea-command.d.ts +8 -0
- package/dist/content/{ideate-command.js → idea-command.js} +57 -50
- package/dist/content/idea-frames.d.ts +31 -0
- package/dist/content/{ideate-frames.js → idea-frames.js} +9 -9
- package/dist/content/idea-ranking.d.ts +25 -0
- package/dist/content/{ideate-ranking.js → idea-ranking.js} +5 -5
- package/dist/content/iron-laws.d.ts +0 -1
- package/dist/content/iron-laws.js +31 -16
- package/dist/content/learnings.js +1 -1
- package/dist/content/meta-skill.js +7 -7
- package/dist/content/node-hooks.d.ts +10 -0
- package/dist/content/node-hooks.js +43 -9
- package/dist/content/opencode-plugin.js +3 -3
- package/dist/content/skills.js +19 -7
- package/dist/content/stage-schema.js +44 -2
- package/dist/content/stages/_lint-metadata/index.js +26 -2
- package/dist/content/stages/brainstorm.js +13 -7
- package/dist/content/stages/design.js +16 -11
- package/dist/content/stages/plan.js +7 -4
- package/dist/content/stages/review.js +4 -4
- package/dist/content/stages/schema-types.d.ts +1 -1
- package/dist/content/stages/scope.js +15 -12
- package/dist/content/stages/ship.js +2 -2
- package/dist/content/stages/spec.js +9 -3
- package/dist/content/stages/tdd.js +14 -4
- package/dist/content/start-command.js +11 -10
- package/dist/content/status-command.js +3 -3
- package/dist/content/subagents.js +60 -6
- package/dist/content/templates.d.ts +1 -1
- package/dist/content/templates.js +102 -150
- package/dist/content/tree-command.js +2 -2
- package/dist/content/utility-skills.d.ts +2 -2
- package/dist/content/utility-skills.js +2 -2
- package/dist/content/view-command.js +4 -2
- package/dist/delegation.d.ts +2 -0
- package/dist/delegation.js +2 -1
- package/dist/early-loop.d.ts +66 -0
- package/dist/early-loop.js +275 -0
- package/dist/gate-evidence.d.ts +8 -0
- package/dist/gate-evidence.js +141 -5
- package/dist/harness-adapters.d.ts +2 -2
- package/dist/harness-adapters.js +47 -18
- package/dist/install.js +153 -29
- package/dist/internal/advance-stage/advance.d.ts +50 -0
- package/dist/internal/advance-stage/advance.js +480 -0
- package/dist/internal/advance-stage/cancel-run.d.ts +8 -0
- package/dist/internal/advance-stage/cancel-run.js +19 -0
- package/dist/internal/advance-stage/flow-state-coercion.d.ts +3 -0
- package/dist/internal/advance-stage/flow-state-coercion.js +81 -0
- package/dist/internal/advance-stage/helpers.d.ts +14 -0
- package/dist/internal/advance-stage/helpers.js +145 -0
- package/dist/internal/advance-stage/hook.d.ts +8 -0
- package/dist/internal/advance-stage/hook.js +40 -0
- package/dist/internal/advance-stage/parsers.d.ts +54 -0
- package/dist/internal/advance-stage/parsers.js +307 -0
- package/dist/internal/advance-stage/review-loop.d.ts +7 -0
- package/dist/internal/advance-stage/review-loop.js +170 -0
- package/dist/internal/advance-stage/rewind.d.ts +14 -0
- package/dist/internal/advance-stage/rewind.js +108 -0
- package/dist/internal/advance-stage/start-flow.d.ts +11 -0
- package/dist/internal/advance-stage/start-flow.js +136 -0
- package/dist/internal/advance-stage/verify.d.ts +29 -0
- package/dist/internal/advance-stage/verify.js +225 -0
- package/dist/internal/advance-stage.js +21 -1470
- package/dist/internal/compound-readiness.d.ts +1 -1
- package/dist/internal/compound-readiness.js +2 -2
- package/dist/internal/early-loop-status.d.ts +7 -0
- package/dist/internal/early-loop-status.js +90 -0
- package/dist/internal/runtime-integrity.d.ts +7 -0
- package/dist/internal/runtime-integrity.js +288 -0
- package/dist/internal/tdd-red-evidence.js +1 -1
- package/dist/knowledge-store.d.ts +3 -8
- package/dist/knowledge-store.js +16 -29
- package/dist/managed-resources.js +24 -2
- package/dist/policy.js +4 -6
- package/dist/run-archive.d.ts +1 -1
- package/dist/run-archive.js +12 -12
- package/dist/run-persistence.js +111 -11
- package/dist/tdd-cycle.d.ts +3 -3
- package/dist/tdd-cycle.js +1 -1
- package/dist/types.d.ts +18 -10
- package/package.json +1 -1
- package/dist/content/ideate-command.d.ts +0 -8
- package/dist/content/ideate-frames.d.ts +0 -31
- package/dist/content/ideate-ranking.d.ts +0 -25
- package/dist/content/next-command.d.ts +0 -20
- package/dist/content/next-command.js +0 -298
- package/dist/content/seed-shelf.d.ts +0 -36
- package/dist/content/seed-shelf.js +0 -301
- package/dist/content/stage-common-guidance.d.ts +0 -1
- package/dist/content/stage-common-guidance.js +0 -106
- package/dist/doctor-registry.d.ts +0 -10
- package/dist/doctor-registry.js +0 -186
- package/dist/doctor.d.ts +0 -17
- package/dist/doctor.js +0 -2201
- package/dist/internal/hook-manifest.d.ts +0 -16
- package/dist/internal/hook-manifest.js +0 -77
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Writable } from "node:stream";
|
|
2
|
-
interface InternalIo {
|
|
3
|
-
stdout: Writable;
|
|
4
|
-
stderr: Writable;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* `cclaw internal hook-manifest` — diagnostic command that prints
|
|
8
|
-
* the resolved manifest. Primary use cases:
|
|
9
|
-
*
|
|
10
|
-
* - debugging "which handler fires for event X on harness Y",
|
|
11
|
-
* - migration tooling that needs a machine-readable view,
|
|
12
|
-
* - parity verification between the source-of-truth manifest and
|
|
13
|
-
* per-harness generated documents.
|
|
14
|
-
*/
|
|
15
|
-
export declare function runHookManifestCommand(_projectRoot: string, argv: string[], io: InternalIo): Promise<number>;
|
|
16
|
-
export {};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { HOOK_MANIFEST, HOOK_MANIFEST_HARNESSES, groupBindingsByEvent, requiredEventsFor } from "../content/hook-manifest.js";
|
|
2
|
-
function parseArgs(tokens) {
|
|
3
|
-
const args = { json: false };
|
|
4
|
-
for (let i = 0; i < tokens.length; i += 1) {
|
|
5
|
-
const token = tokens[i];
|
|
6
|
-
if (token === "--json")
|
|
7
|
-
args.json = true;
|
|
8
|
-
else if (token === "--harness") {
|
|
9
|
-
const value = tokens[i + 1];
|
|
10
|
-
if (value !== "claude" && value !== "cursor" && value !== "codex") {
|
|
11
|
-
throw new Error(`--harness must be one of claude|cursor|codex, got ${String(value)}`);
|
|
12
|
-
}
|
|
13
|
-
args.harness = value;
|
|
14
|
-
i += 1;
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error(`Unknown hook-manifest flag: ${token}`);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return args;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* `cclaw internal hook-manifest` — diagnostic command that prints
|
|
24
|
-
* the resolved manifest. Primary use cases:
|
|
25
|
-
*
|
|
26
|
-
* - debugging "which handler fires for event X on harness Y",
|
|
27
|
-
* - migration tooling that needs a machine-readable view,
|
|
28
|
-
* - parity verification between the source-of-truth manifest and
|
|
29
|
-
* per-harness generated documents.
|
|
30
|
-
*/
|
|
31
|
-
export async function runHookManifestCommand(_projectRoot, argv, io) {
|
|
32
|
-
const args = parseArgs(argv);
|
|
33
|
-
const harnesses = args.harness ? [args.harness] : [...HOOK_MANIFEST_HARNESSES];
|
|
34
|
-
if (args.json) {
|
|
35
|
-
const payload = {
|
|
36
|
-
handlers: HOOK_MANIFEST.map((spec) => ({
|
|
37
|
-
handler: spec.handler,
|
|
38
|
-
description: spec.description,
|
|
39
|
-
semantic: spec.semantic,
|
|
40
|
-
bindings: spec.bindings
|
|
41
|
-
})),
|
|
42
|
-
byHarness: Object.fromEntries(harnesses.map((harness) => [
|
|
43
|
-
harness,
|
|
44
|
-
{
|
|
45
|
-
requiredEvents: requiredEventsFor(harness),
|
|
46
|
-
events: groupBindingsByEvent(harness)
|
|
47
|
-
}
|
|
48
|
-
]))
|
|
49
|
-
};
|
|
50
|
-
io.stdout.write(`${JSON.stringify(payload, null, 2)}\n`);
|
|
51
|
-
return 0;
|
|
52
|
-
}
|
|
53
|
-
const lines = [];
|
|
54
|
-
lines.push("cclaw hook manifest");
|
|
55
|
-
for (const harness of harnesses) {
|
|
56
|
-
lines.push("");
|
|
57
|
-
lines.push(`## ${harness}`);
|
|
58
|
-
const groups = groupBindingsByEvent(harness);
|
|
59
|
-
if (groups.length === 0) {
|
|
60
|
-
lines.push(" (no bindings)");
|
|
61
|
-
continue;
|
|
62
|
-
}
|
|
63
|
-
for (const group of groups) {
|
|
64
|
-
lines.push(` ${group.event}:`);
|
|
65
|
-
for (const entry of group.entries) {
|
|
66
|
-
const parts = [entry.handler];
|
|
67
|
-
if (entry.matcher)
|
|
68
|
-
parts.push(`matcher=${entry.matcher}`);
|
|
69
|
-
if (entry.timeout)
|
|
70
|
-
parts.push(`timeout=${entry.timeout}s`);
|
|
71
|
-
lines.push(` - ${parts.join(" ")}`);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
io.stdout.write(`${lines.join("\n")}\n`);
|
|
76
|
-
return 0;
|
|
77
|
-
}
|