cclaw-cli 0.5.17 → 0.7.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/dist/cli.d.ts +6 -2
- package/dist/cli.js +45 -5
- package/dist/config.d.ts +12 -2
- package/dist/config.js +79 -5
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js +3 -2
- package/dist/content/hooks.d.ts +1 -0
- package/dist/content/hooks.js +145 -0
- package/dist/content/learnings.js +91 -18
- package/dist/content/meta-skill.js +52 -3
- package/dist/content/next-command.js +8 -0
- package/dist/content/observe.js +18 -0
- package/dist/content/session-hooks.js +1 -1
- package/dist/content/stage-schema.d.ts +18 -1
- package/dist/content/stage-schema.js +36 -10
- package/dist/content/start-command.js +30 -7
- package/dist/content/status-command.d.ts +9 -0
- package/dist/content/status-command.js +154 -0
- package/dist/content/templates.js +41 -5
- package/dist/content/utility-skills.d.ts +16 -2
- package/dist/content/utility-skills.js +721 -3
- package/dist/delegation.d.ts +6 -1
- package/dist/delegation.js +3 -2
- package/dist/doctor.js +38 -1
- package/dist/flow-state.d.ts +16 -4
- package/dist/flow-state.js +50 -11
- package/dist/harness-adapters.js +1 -0
- package/dist/install.d.ts +4 -1
- package/dist/install.js +174 -10
- package/dist/policy.js +2 -1
- package/dist/runs.d.ts +15 -0
- package/dist/runs.js +59 -4
- package/dist/types.d.ts +42 -0
- package/dist/types.js +33 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,40 @@
|
|
|
1
1
|
export declare const FLOW_STAGES: readonly ["brainstorm", "scope", "design", "spec", "plan", "tdd", "review", "ship"];
|
|
2
2
|
export type FlowStage = (typeof FLOW_STAGES)[number];
|
|
3
|
+
export declare const FLOW_TRACKS: readonly ["quick", "standard"];
|
|
4
|
+
export type FlowTrack = (typeof FLOW_TRACKS)[number];
|
|
5
|
+
/**
|
|
6
|
+
* Ordered stages that make up each flow track.
|
|
7
|
+
*
|
|
8
|
+
* - `standard` runs the full 8-stage pipeline (default — same as before tracks existed).
|
|
9
|
+
* - `quick` skips the upstream product stages (brainstorm/scope/design/plan) for
|
|
10
|
+
* small bug fixes or single-purpose changes where the spec is already known.
|
|
11
|
+
* It still keeps the non-negotiable safety gates: spec → tdd → review → ship.
|
|
12
|
+
*/
|
|
13
|
+
export declare const TRACK_STAGES: Record<FlowTrack, readonly FlowStage[]>;
|
|
3
14
|
export declare const HARNESS_IDS: readonly ["claude", "cursor", "opencode", "codex"];
|
|
4
15
|
export type HarnessId = (typeof HARNESS_IDS)[number];
|
|
16
|
+
/**
|
|
17
|
+
* Init profiles pre-fill `cclaw init` flags for common install shapes.
|
|
18
|
+
*
|
|
19
|
+
* - `minimal` — single-harness (claude), quick track default, no git hook guards. For solo
|
|
20
|
+
* contributors or bugfix-heavy repos where most work is \`quick\` scope.
|
|
21
|
+
* - `standard` — default harness set, standard track, no git hook guards, advisory guards.
|
|
22
|
+
* Matches the pre-profile default behavior.
|
|
23
|
+
* - `full` — default harness set, standard track, git hook guards on, strict prompt guards.
|
|
24
|
+
* For teams that want every safety rail on.
|
|
25
|
+
*/
|
|
26
|
+
export declare const INIT_PROFILES: readonly ["minimal", "standard", "full"];
|
|
27
|
+
export type InitProfile = (typeof INIT_PROFILES)[number];
|
|
28
|
+
/**
|
|
29
|
+
* Opt-in language rule packs. When enabled in config, `cclaw sync` installs the
|
|
30
|
+
* corresponding utility skill so the meta-skill router can load language-specific
|
|
31
|
+
* anti-patterns, idioms, and review heuristics during review/tdd stages.
|
|
32
|
+
*
|
|
33
|
+
* Opt-in intentional: cclaw stays language-agnostic by default; rule packs are
|
|
34
|
+
* additive context that the user must explicitly enable.
|
|
35
|
+
*/
|
|
36
|
+
export declare const LANGUAGE_RULE_PACKS: readonly ["typescript", "python", "go"];
|
|
37
|
+
export type LanguageRulePack = (typeof LANGUAGE_RULE_PACKS)[number];
|
|
5
38
|
export interface VibyConfig {
|
|
6
39
|
version: string;
|
|
7
40
|
flowVersion: string;
|
|
@@ -12,6 +45,15 @@ export interface VibyConfig {
|
|
|
12
45
|
promptGuardMode?: "advisory" | "strict";
|
|
13
46
|
/** When true, cclaw installs managed git pre-commit/pre-push wrappers. */
|
|
14
47
|
gitHookGuards?: boolean;
|
|
48
|
+
/** Default flow track for new runs (quick = shortened path, standard = full pipeline). */
|
|
49
|
+
defaultTrack?: FlowTrack;
|
|
50
|
+
/**
|
|
51
|
+
* Opt-in language rule packs. Each enabled pack materializes a matching utility
|
|
52
|
+
* skill under `.cclaw/skills/language-<id>/SKILL.md` on next `cclaw sync`. The
|
|
53
|
+
* meta-skill router loads the pack during review/tdd when the diff touches the
|
|
54
|
+
* language in question.
|
|
55
|
+
*/
|
|
56
|
+
languageRulePacks?: LanguageRulePack[];
|
|
15
57
|
}
|
|
16
58
|
export interface TransitionRule {
|
|
17
59
|
from: FlowStage;
|
package/dist/types.js
CHANGED
|
@@ -8,4 +8,37 @@ export const FLOW_STAGES = [
|
|
|
8
8
|
"review",
|
|
9
9
|
"ship"
|
|
10
10
|
];
|
|
11
|
+
export const FLOW_TRACKS = ["quick", "standard"];
|
|
12
|
+
/**
|
|
13
|
+
* Ordered stages that make up each flow track.
|
|
14
|
+
*
|
|
15
|
+
* - `standard` runs the full 8-stage pipeline (default — same as before tracks existed).
|
|
16
|
+
* - `quick` skips the upstream product stages (brainstorm/scope/design/plan) for
|
|
17
|
+
* small bug fixes or single-purpose changes where the spec is already known.
|
|
18
|
+
* It still keeps the non-negotiable safety gates: spec → tdd → review → ship.
|
|
19
|
+
*/
|
|
20
|
+
export const TRACK_STAGES = {
|
|
21
|
+
standard: FLOW_STAGES,
|
|
22
|
+
quick: ["spec", "tdd", "review", "ship"]
|
|
23
|
+
};
|
|
11
24
|
export const HARNESS_IDS = ["claude", "cursor", "opencode", "codex"];
|
|
25
|
+
/**
|
|
26
|
+
* Init profiles pre-fill `cclaw init` flags for common install shapes.
|
|
27
|
+
*
|
|
28
|
+
* - `minimal` — single-harness (claude), quick track default, no git hook guards. For solo
|
|
29
|
+
* contributors or bugfix-heavy repos where most work is \`quick\` scope.
|
|
30
|
+
* - `standard` — default harness set, standard track, no git hook guards, advisory guards.
|
|
31
|
+
* Matches the pre-profile default behavior.
|
|
32
|
+
* - `full` — default harness set, standard track, git hook guards on, strict prompt guards.
|
|
33
|
+
* For teams that want every safety rail on.
|
|
34
|
+
*/
|
|
35
|
+
export const INIT_PROFILES = ["minimal", "standard", "full"];
|
|
36
|
+
/**
|
|
37
|
+
* Opt-in language rule packs. When enabled in config, `cclaw sync` installs the
|
|
38
|
+
* corresponding utility skill so the meta-skill router can load language-specific
|
|
39
|
+
* anti-patterns, idioms, and review heuristics during review/tdd stages.
|
|
40
|
+
*
|
|
41
|
+
* Opt-in intentional: cclaw stays language-agnostic by default; rule packs are
|
|
42
|
+
* additive context that the user must explicitly enable.
|
|
43
|
+
*/
|
|
44
|
+
export const LANGUAGE_RULE_PACKS = ["typescript", "python", "go"];
|