cclaw-cli 0.15.0 → 0.15.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.
@@ -1,96 +1,6 @@
1
1
  import type { FlowStage, TransitionRule } from "../types.js";
2
- export interface StageGate {
3
- id: string;
4
- description: string;
5
- tier?: "required" | "recommended" | "conditional";
6
- /** Used when tier=conditional. Predicate syntax mirrors conditional delegation rules. */
7
- condition?: string;
8
- }
9
- export interface ReviewSection {
10
- title: string;
11
- evaluationPoints: string[];
12
- stopGate: boolean;
13
- }
14
- export interface CrossStageTrace {
15
- readsFrom: string[];
16
- writesTo: string[];
17
- traceabilityRule: string;
18
- }
19
- export interface ArtifactValidation {
20
- section: string;
21
- required: boolean;
22
- tier?: "required" | "recommended" | "conditional";
23
- /** Optional predicate for conditional validations. */
24
- condition?: string;
25
- validationRule: string;
26
- }
27
- export interface StageAutoSubagentDispatch {
28
- agent: "planner" | "reviewer" | "security-reviewer" | "test-author" | "doc-updater";
29
- /**
30
- * - `mandatory` — must be dispatched (or explicitly waived) before stage transition.
31
- * - `proactive` — should be dispatched automatically when context matches `when`.
32
- * - `conditional` — dispatched only when `condition` evaluates true at runtime; counted as
33
- * mandatory **only when the condition holds**.
34
- */
35
- mode: "mandatory" | "proactive" | "conditional";
36
- when: string;
37
- purpose: string;
38
- requiresUserGate: boolean;
39
- /**
40
- * Optional machine-friendly trigger expression for `conditional` rows.
41
- * Supported predicates: `diff_lines_gt:<N>`, `files_touched_gt:<N>`,
42
- * `trust_boundary_changed`, `release_blast_radius_high`.
43
- * Multiple predicates joined by `||` mean ANY trigger satisfies the condition.
44
- */
45
- condition?: string;
46
- /** Optional skill folder the dispatched agent should load as additional context. */
47
- skill?: string;
48
- }
49
- export interface StageSchema {
50
- stage: FlowStage;
51
- skillFolder: string;
52
- skillName: string;
53
- skillDescription: string;
54
- hardGate: string;
55
- /**
56
- * One-line "Iron Law" punchcard — the single rule that, if broken,
57
- * invalidates the stage outright. Rendered in ALL-CAPS wrapped in
58
- * <EXTREMELY-IMPORTANT> XML markers at the very top of the skill body.
59
- * Reference: Superpowers (obra) "NO PRODUCTION CODE WITHOUT A FAILING
60
- * TEST FIRST".
61
- */
62
- ironLaw: string;
63
- purpose: string;
64
- whenToUse: string[];
65
- whenNotToUse: string[];
66
- interactionProtocol: string[];
67
- process: string[];
68
- requiredGates: StageGate[];
69
- requiredEvidence: string[];
70
- inputs: string[];
71
- requiredContext: string[];
72
- /** In-thread research procedures for this stage (`.cclaw/skills/research/*.md`). */
73
- researchPlaybooks?: string[];
74
- outputs: string[];
75
- blockers: string[];
76
- exitCriteria: string[];
77
- antiPatterns: string[];
78
- redFlags: string[];
79
- policyNeedles: string[];
80
- artifactFile: string;
81
- next: FlowStage | "done";
82
- checklist: string[];
83
- reviewSections: ReviewSection[];
84
- completionStatus: string[];
85
- crossStageTrace: CrossStageTrace;
86
- artifactValidation: ArtifactValidation[];
87
- /** When true, stage skill includes wave auto-execute guidance (tdd). */
88
- waveExecutionAllowed?: boolean;
89
- /** Sections that remain required even when the trivial-change escape hatch is active (design only). */
90
- trivialOverrideSections?: string[];
91
- /** Agent names that MUST be dispatched (or waived) before stage transition — derived from mandatory auto-subagent rows. */
92
- mandatoryDelegations: string[];
93
- }
2
+ import type { StageAutoSubagentDispatch, StageSchema } from "./stages/schema-types.js";
3
+ export type { ArtifactValidation, CrossStageTrace, ReviewSection, StageAutoSubagentDispatch, StageGate, StageSchema, StageSchemaInput } from "./stages/schema-types.js";
94
4
  /** Transition guard: agents with `mode: "mandatory"` in auto-subagent dispatch for this stage. */
95
5
  export declare function mandatoryDelegationsForStage(stage: FlowStage): string[];
96
6
  /** Conditional dispatches that become mandatory only when their `condition` predicate evaluates true. */