@vaubaan/harness 1.4.0 → 2.1.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 (41) hide show
  1. package/README.md +301 -167
  2. package/dist/cli/index.js +886 -1882
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/commands/handbook.cmd.md +4 -3
  5. package/dist/commands/test-plan.cmd.md +4 -4
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.js +277 -1064
  8. package/dist/index.js.map +1 -1
  9. package/dist/init.d.ts +8 -23
  10. package/dist/init.js +270 -1036
  11. package/dist/init.js.map +1 -1
  12. package/dist/linters/index.js +687 -31
  13. package/dist/linters/index.js.map +1 -1
  14. package/dist/parser/index.d.ts +1 -26
  15. package/dist/parser/index.js +1 -17
  16. package/dist/parser/index.js.map +1 -1
  17. package/dist/{render-Cu2XrkkY.d.ts → render-C-FWmUfX.d.ts} +8 -15
  18. package/dist/render.d.ts +1 -1
  19. package/dist/render.js +18 -280
  20. package/dist/render.js.map +1 -1
  21. package/dist/skills/decision-record-writer.skill.md +93 -131
  22. package/dist/skills/doc-audit.skill.md +10 -10
  23. package/dist/skills/drift-detector.skill.md +6 -7
  24. package/dist/skills/handbook-writer.skill.md +68 -159
  25. package/dist/skills/readme-writer.skill.md +3 -3
  26. package/dist/skills/spec-writer.skill.md +111 -71
  27. package/dist/skills/test-plan-writer.skill.md +47 -54
  28. package/dist/skills/workflow-writer.skill.md +40 -6
  29. package/dist/templates/code-quality.md.tmpl +2 -2
  30. package/dist/templates/coding-workflow.md.tmpl +10 -0
  31. package/dist/templates/decision.md.tmpl +20 -47
  32. package/dist/templates/e2e-tests.md.tmpl +16 -45
  33. package/dist/templates/handbook.md.tmpl +20 -38
  34. package/dist/templates/integration-tests.md.tmpl +16 -34
  35. package/package.json +1 -1
  36. package/dist/agents/coding.agent.md +0 -182
  37. package/dist/agents/merge.agent.md +0 -139
  38. package/dist/agents/planning.agent.md +0 -194
  39. package/dist/agents/review.agent.md +0 -176
  40. package/dist/commands/clean-code.cmd.md +0 -26
  41. package/dist/skills/clean-code-guardian.skill.md +0 -391
package/dist/init.d.ts CHANGED
@@ -1,54 +1,40 @@
1
- import { E as Engine, c as RenderOutput, d as RenderedFile } from './render-Cu2XrkkY.js';
1
+ import { E as Engine, c as RenderOutput, d as RenderedFile } from './render-C-FWmUfX.js';
2
2
  import './parser/index.js';
3
3
  import 'zod';
4
4
 
5
5
  interface RenderPlanArgs {
6
6
  targetDir: string;
7
- engines?: ReadonlyArray<string>;
7
+ engines: ReadonlyArray<string>;
8
8
  overridesDir?: string;
9
9
  packageDir?: string;
10
- mcpServers?: ReadonlyArray<string>;
11
- withStopHook?: boolean;
12
10
  }
13
11
  declare function planInit(args: RenderPlanArgs): {
14
12
  engines: Engine[];
15
13
  output: RenderOutput;
16
- stopHookInstalled: boolean;
17
14
  };
18
15
 
19
16
  interface InitArgs {
20
17
  targetDir: string;
21
- engines?: ReadonlyArray<string>;
18
+ /** Engines to render for. Mandatory: nothing is rendered for a tool the project does not use. */
19
+ engines: ReadonlyArray<string>;
22
20
  overridesDir?: string;
23
21
  /**
24
- * Directory containing the harness content (agents/, skills/, commands/,
22
+ * Directory containing the harness content (skills/, commands/,
25
23
  * templates/). Defaults to the harness package's own `dist/` (resolved
26
24
  * via `import.meta.url`), so programmatic callers usually omit it.
27
25
  */
28
26
  packageDir?: string;
29
- mcpServers?: ReadonlyArray<string>;
30
- /**
31
- * Stop-hook installation. Default `true`. When enabled, each engine
32
- * receives a hook config that calls `vaubaan-harness stop-hook
33
- * --engine <engine>` and injects the lint report (with skill
34
- * suggestions) into the running session whenever the worktree is
35
- * dirty and lint fails at end-of-turn. Pass `false` to skip the
36
- * hook configs entirely (runtime kill-switch remains available via
37
- * `HARNESS_LINT_DISABLE=1`).
38
- */
39
- withStopHook?: boolean;
40
27
  /** Generated files to leave to the project instead of rendering them. */
41
28
  preserveFiles?: ReadonlyArray<string>;
42
29
  /** Exact new backup directory, outside the project. Defaults to private user state. */
43
30
  backupDir?: string;
44
31
  }
45
32
  interface InitResult {
46
- /** Generated files the harness owns after this run, plus shared configurations it edited. */
33
+ /** Generated files the harness owns after this run. */
47
34
  filesWritten: string[];
48
35
  /** Files a previous `init` rendered that this one no longer does (layout change, engine dropped). */
49
36
  staleFilesRemoved: string[];
50
37
  warnings: string[];
51
- stopHookInstalled: boolean;
52
38
  engines: Engine[];
53
39
  /** Set when existing project files were changed; holds their previous contents. */
54
40
  backupDir?: string;
@@ -56,9 +42,8 @@ interface InitResult {
56
42
  declare function writeFilesToTarget(files: ReadonlyArray<RenderedFile>, targetDir: string): string[];
57
43
  /**
58
44
  * Installs or re-renders the harness. Shares the planner of `update`: files
59
- * the harness does not own are never overwritten or deleted, shared
60
- * configurations are merged entry by entry, and changes are applied in one
61
- * transaction (see docs/decisions/safe-init.md).
45
+ * the harness does not own are never overwritten, merged or deleted, and
46
+ * changes are applied in one transaction (see docs/decisions/safe-init.md).
62
47
  */
63
48
  declare function initCommand(args: InitArgs): InitResult;
64
49