@vaubaan/harness 1.4.0 → 2.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.
- package/README.md +303 -167
- package/dist/cli/index.js +884 -1880
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +275 -1062
- package/dist/index.js.map +1 -1
- package/dist/init.d.ts +9 -23
- package/dist/init.js +268 -1034
- package/dist/init.js.map +1 -1
- package/dist/linters/index.js +687 -31
- package/dist/linters/index.js.map +1 -1
- package/dist/parser/index.d.ts +1 -26
- package/dist/parser/index.js +1 -17
- package/dist/parser/index.js.map +1 -1
- package/dist/{render-Cu2XrkkY.d.ts → render-C-FWmUfX.d.ts} +8 -15
- package/dist/render.d.ts +1 -1
- package/dist/render.js +16 -278
- package/dist/render.js.map +1 -1
- package/dist/skills/decision-record-writer.skill.md +3 -4
- package/dist/skills/doc-audit.skill.md +7 -7
- package/dist/skills/drift-detector.skill.md +1 -1
- package/dist/skills/handbook-writer.skill.md +2 -2
- package/dist/skills/readme-writer.skill.md +3 -3
- package/dist/skills/spec-writer.skill.md +89 -71
- package/dist/skills/test-plan-writer.skill.md +3 -3
- package/dist/skills/workflow-writer.skill.md +20 -3
- package/dist/templates/code-quality.md.tmpl +2 -2
- package/dist/templates/coding-workflow.md.tmpl +10 -0
- package/package.json +1 -1
- package/dist/agents/coding.agent.md +0 -182
- package/dist/agents/merge.agent.md +0 -139
- package/dist/agents/planning.agent.md +0 -194
- package/dist/agents/review.agent.md +0 -176
- package/dist/commands/clean-code.cmd.md +0 -26
- 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-
|
|
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
|
|
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
|
-
|
|
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 (
|
|
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
|
|
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,9 @@ 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,
|
|
60
|
-
*
|
|
61
|
-
*
|
|
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
|
|
47
|
+
* and docs/decisions/no-mcp-no-code-merge.md).
|
|
62
48
|
*/
|
|
63
49
|
declare function initCommand(args: InitArgs): InitResult;
|
|
64
50
|
|