cclaw-cli 2.0.0 → 4.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.
Files changed (50) hide show
  1. package/dist/artifact-linter/brainstorm.js +13 -2
  2. package/dist/artifact-linter/design.js +14 -3
  3. package/dist/artifact-linter/scope.js +20 -33
  4. package/dist/artifact-linter/shared.d.ts +48 -7
  5. package/dist/artifact-linter/shared.js +130 -55
  6. package/dist/artifact-linter.d.ts +11 -1
  7. package/dist/artifact-linter.js +30 -16
  8. package/dist/cli.js +2 -9
  9. package/dist/config.d.ts +11 -67
  10. package/dist/config.js +59 -649
  11. package/dist/content/examples.js +8 -0
  12. package/dist/content/hook-events.js +0 -3
  13. package/dist/content/hook-manifest.d.ts +5 -2
  14. package/dist/content/hook-manifest.js +18 -64
  15. package/dist/content/hooks.js +2 -1
  16. package/dist/content/node-hooks.d.ts +0 -26
  17. package/dist/content/node-hooks.js +237 -105
  18. package/dist/content/observe.js +2 -1
  19. package/dist/content/opencode-plugin.js +1 -72
  20. package/dist/content/review-prompts.js +3 -3
  21. package/dist/content/skills-elicitation.js +58 -20
  22. package/dist/content/skills.js +19 -6
  23. package/dist/content/stage-schema.js +36 -18
  24. package/dist/content/stages/brainstorm.js +3 -3
  25. package/dist/content/stages/design.js +4 -4
  26. package/dist/content/stages/plan.js +3 -3
  27. package/dist/content/stages/schema-types.d.ts +9 -0
  28. package/dist/content/stages/scope.js +8 -8
  29. package/dist/content/stages/tdd.js +11 -11
  30. package/dist/content/templates.d.ts +8 -1
  31. package/dist/content/templates.js +80 -18
  32. package/dist/gate-evidence.d.ts +25 -1
  33. package/dist/gate-evidence.js +35 -8
  34. package/dist/harness-adapters.js +8 -0
  35. package/dist/hook-schema.js +3 -0
  36. package/dist/hook-schemas/claude-hooks.v1.json +0 -2
  37. package/dist/hook-schemas/codex-hooks.v1.json +0 -3
  38. package/dist/hook-schemas/cursor-hooks.v1.json +0 -2
  39. package/dist/install.d.ts +2 -7
  40. package/dist/install.js +42 -131
  41. package/dist/internal/advance-stage/advance.d.ts +1 -0
  42. package/dist/internal/advance-stage/advance.js +5 -2
  43. package/dist/internal/compound-readiness.js +1 -16
  44. package/dist/internal/early-loop-status.js +1 -3
  45. package/dist/internal/runtime-integrity.js +0 -20
  46. package/dist/policy.js +6 -9
  47. package/dist/runtime/run-hook.mjs +237 -213
  48. package/dist/tdd-verification-evidence.js +6 -18
  49. package/dist/types.d.ts +0 -56
  50. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -163,62 +163,6 @@ export interface CclawConfig {
163
163
  version: string;
164
164
  flowVersion: string;
165
165
  harnesses: HarnessId[];
166
- /** Repository evidence mode for stages that need durable verification refs. */
167
- vcs?: VcsMode;
168
- /**
169
- * Single knob that controls enforcement behaviour of all hook-driven guards
170
- * (prompt guard, workflow guard, TDD enforcement, iron laws). Default:
171
- * `"advisory"` — hooks append a stderr nudge and exit 0. `"strict"` flips
172
- * the same hooks to fail-closed (non-zero exit) so the harness refuses the
173
- * offending action.
174
- *
175
- * Per-law escapes live on `ironLaws.strictLaws` for teams that need to keep
176
- * specific iron laws strict while the project-wide knob stays advisory.
177
- */
178
- strictness?: "advisory" | "strict";
179
- /**
180
- * Legacy alias for test-side path detection in workflow-guard.
181
- * Prefer `tdd.testPathPatterns` in new configs.
182
- * @deprecated Use `tdd.testPathPatterns` instead.
183
- */
184
- tddTestGlobs?: string[];
185
- /** Path-pattern routing for TDD test/production write classification. */
186
- tdd?: TddPathConfig;
187
- /** Compound-stage recurrence policy overrides. */
188
- compound?: CompoundConfig;
189
- /** Early-stage producer/critic loop policy overrides. */
190
- earlyLoop?: EarlyLoopConfig;
191
- /** When true, cclaw installs managed git pre-commit/pre-push wrappers. */
192
- gitHookGuards?: boolean;
193
- /** Default flow track for new runs (quick = shortened path, standard = full pipeline). */
194
- defaultTrack?: FlowTrack;
195
- /**
196
- * Opt-in language rule packs. Each enabled pack materializes a matching rule
197
- * file under `.cclaw/rules/lang/<id>.md` on the next `cclaw sync`. The
198
- * meta-skill router loads the pack during review/tdd when the diff touches
199
- * the language in question. Disabled packs have no on-disk footprint.
200
- */
201
- languageRulePacks?: LanguageRulePack[];
202
- /**
203
- * Optional prompt-to-track vocabulary overrides for /cc classification.
204
- * Advisory (surfaced in the /cc skill prose), not machine-enforced.
205
- * If omitted, cclaw uses built-in defaults.
206
- */
207
- trackHeuristics?: TrackHeuristicsConfig;
208
- /**
209
- * Opt-in per-slice review heuristic. When enabled, the TDD skill
210
- * requires a `## Per-Slice Review` section in `06-tdd.md` for slices
211
- * that exceed `filesChangedThreshold` or match `touchTriggers`.
212
- * Keeps obra's "fresh subagent + spec-then-quality review per task"
213
- * discipline tractable without forcing it on tiny quick-track fixes.
214
- */
215
- sliceReview?: SliceReviewConfig;
216
- /** Optional per-law strictness controls for hook-enforced iron laws. */
217
- ironLaws?: IronLawsConfig;
218
- /** Optional opt-in audit gates for scope/design stages. */
219
- optInAudits?: OptInAuditsConfig;
220
- /** Optional runtime knobs for outside-voice review loops. */
221
- reviewLoop?: ReviewLoopConfig;
222
166
  }
223
167
  export interface TransitionRule {
224
168
  from: FlowStage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cclaw-cli",
3
- "version": "2.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "Installer-first flow toolkit for coding agents",
5
5
  "type": "module",
6
6
  "bin": {