@vibe-agent-toolkit/cli 0.2.0-rc.3 → 0.2.0-rc.5
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/bin/vat +2 -1
- package/dist/bin/vat.js +2 -1
- package/dist/bin/vat.js.map +1 -1
- package/dist/bin.js +37 -3
- package/dist/bin.js.map +1 -1
- package/dist/commands/audit/distributed-tree.d.ts +1 -1
- package/dist/commands/audit/distributed-tree.d.ts.map +1 -1
- package/dist/commands/audit/distributed-tree.js +2 -1
- package/dist/commands/audit/distributed-tree.js.map +1 -1
- package/dist/commands/audit/git-url-clone.d.ts +1 -1
- package/dist/commands/audit/git-url-clone.d.ts.map +1 -1
- package/dist/commands/audit/git-url-clone.js.map +1 -1
- package/dist/commands/audit.d.ts.map +1 -1
- package/dist/commands/audit.js +25 -6
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +14 -11
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/cache/cache-control.d.ts +16 -7
- package/dist/commands/cache/cache-control.d.ts.map +1 -1
- package/dist/commands/cache/cache-control.js +17 -8
- package/dist/commands/cache/cache-control.js.map +1 -1
- package/dist/commands/claude/budget.js +1 -1
- package/dist/commands/claude/budget.js.map +1 -1
- package/dist/commands/claude/context.d.ts +138 -9
- package/dist/commands/claude/context.d.ts.map +1 -1
- package/dist/commands/claude/context.js +450 -80
- package/dist/commands/claude/context.js.map +1 -1
- package/dist/commands/claude/marketplace/git-publish.d.ts.map +1 -1
- package/dist/commands/claude/marketplace/git-publish.js +2 -1
- package/dist/commands/claude/marketplace/git-publish.js.map +1 -1
- package/dist/commands/claude/marketplace/validate.d.ts +18 -0
- package/dist/commands/claude/marketplace/validate.d.ts.map +1 -1
- package/dist/commands/claude/marketplace/validate.js +40 -20
- package/dist/commands/claude/marketplace/validate.js.map +1 -1
- package/dist/commands/claude/plugin/build.d.ts +17 -1
- package/dist/commands/claude/plugin/build.d.ts.map +1 -1
- package/dist/commands/claude/plugin/build.js +45 -16
- package/dist/commands/claude/plugin/build.js.map +1 -1
- package/dist/commands/claude/plugin/helpers.d.ts.map +1 -1
- package/dist/commands/claude/plugin/helpers.js +2 -1
- package/dist/commands/claude/plugin/helpers.js.map +1 -1
- package/dist/commands/claude/plugin/install.d.ts.map +1 -1
- package/dist/commands/claude/plugin/install.js +2 -2
- package/dist/commands/claude/plugin/install.js.map +1 -1
- package/dist/commands/claude/plugin/tree-copy.d.ts.map +1 -1
- package/dist/commands/claude/plugin/tree-copy.js +2 -1
- package/dist/commands/claude/plugin/tree-copy.js.map +1 -1
- package/dist/commands/consistency-check.d.ts.map +1 -1
- package/dist/commands/consistency-check.js +2 -1
- package/dist/commands/consistency-check.js.map +1 -1
- package/dist/commands/corpus/runner.d.ts.map +1 -1
- package/dist/commands/corpus/runner.js +3 -20
- package/dist/commands/corpus/runner.js.map +1 -1
- package/dist/commands/corpus/scan.d.ts.map +1 -1
- package/dist/commands/corpus/scan.js +2 -1
- package/dist/commands/corpus/scan.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +3 -2
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/inventory.js +2 -2
- package/dist/commands/inventory.js.map +1 -1
- package/dist/commands/phase-utils.d.ts +154 -103
- package/dist/commands/phase-utils.d.ts.map +1 -1
- package/dist/commands/phase-utils.js +109 -155
- package/dist/commands/phase-utils.js.map +1 -1
- package/dist/commands/resources/check-progress.d.ts +145 -0
- package/dist/commands/resources/check-progress.d.ts.map +1 -0
- package/dist/commands/resources/check-progress.js +205 -0
- package/dist/commands/resources/check-progress.js.map +1 -0
- package/dist/commands/resources/check-supervisor.d.ts +465 -0
- package/dist/commands/resources/check-supervisor.d.ts.map +1 -0
- package/dist/commands/resources/check-supervisor.js +566 -0
- package/dist/commands/resources/check-supervisor.js.map +1 -0
- package/dist/commands/resources/check.d.ts +454 -0
- package/dist/commands/resources/check.d.ts.map +1 -0
- package/dist/commands/resources/check.js +1237 -0
- package/dist/commands/resources/check.js.map +1 -0
- package/dist/commands/resources/index.d.ts.map +1 -1
- package/dist/commands/resources/index.js +277 -6
- package/dist/commands/resources/index.js.map +1 -1
- package/dist/commands/resources/query.d.ts +89 -0
- package/dist/commands/resources/query.d.ts.map +1 -0
- package/dist/commands/resources/query.js +146 -0
- package/dist/commands/resources/query.js.map +1 -0
- package/dist/commands/resources/scan.d.ts.map +1 -1
- package/dist/commands/resources/scan.js +2 -2
- package/dist/commands/resources/scan.js.map +1 -1
- package/dist/commands/resources/validate.d.ts +11 -0
- package/dist/commands/resources/validate.d.ts.map +1 -1
- package/dist/commands/resources/validate.js +96 -48
- package/dist/commands/resources/validate.js.map +1 -1
- package/dist/commands/skill/test/run.d.ts.map +1 -1
- package/dist/commands/skill/test/run.js +11 -2
- package/dist/commands/skill/test/run.js.map +1 -1
- package/dist/commands/skills/build.d.ts +10 -0
- package/dist/commands/skills/build.d.ts.map +1 -1
- package/dist/commands/skills/build.js +83 -25
- package/dist/commands/skills/build.js.map +1 -1
- package/dist/commands/skills/install.js +0 -1
- package/dist/commands/skills/install.js.map +1 -1
- package/dist/commands/skills/skill-discovery.d.ts.map +1 -1
- package/dist/commands/skills/skill-discovery.js +6 -3
- package/dist/commands/skills/skill-discovery.js.map +1 -1
- package/dist/commands/skills/validate.d.ts +78 -1
- package/dist/commands/skills/validate.d.ts.map +1 -1
- package/dist/commands/skills/validate.js +67 -32
- package/dist/commands/skills/validate.js.map +1 -1
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +26 -16
- package/dist/commands/validate.js.map +1 -1
- package/dist/commands/verify.d.ts +9 -8
- package/dist/commands/verify.d.ts.map +1 -1
- package/dist/commands/verify.js +46 -35
- package/dist/commands/verify.js.map +1 -1
- package/dist/utils/agent-runner.d.ts.map +1 -1
- package/dist/utils/agent-runner.js +7 -3
- package/dist/utils/agent-runner.js.map +1 -1
- package/dist/utils/command-error.d.ts +88 -2
- package/dist/utils/command-error.d.ts.map +1 -1
- package/dist/utils/command-error.js +98 -11
- package/dist/utils/command-error.js.map +1 -1
- package/dist/utils/config-loader.d.ts.map +1 -1
- package/dist/utils/config-loader.js +10 -3
- package/dist/utils/config-loader.js.map +1 -1
- package/dist/utils/issue-severity.d.ts +12 -5
- package/dist/utils/issue-severity.d.ts.map +1 -1
- package/dist/utils/issue-severity.js +1 -1
- package/dist/utils/issue-severity.js.map +1 -1
- package/dist/utils/population-wiring.d.ts +47 -6
- package/dist/utils/population-wiring.d.ts.map +1 -1
- package/dist/utils/population-wiring.js +45 -2
- package/dist/utils/population-wiring.js.map +1 -1
- package/dist/utils/projection-query.d.ts +263 -0
- package/dist/utils/projection-query.d.ts.map +1 -0
- package/dist/utils/projection-query.js +262 -0
- package/dist/utils/projection-query.js.map +1 -0
- package/dist/utils/projection-store.d.ts +110 -6
- package/dist/utils/projection-store.d.ts.map +1 -1
- package/dist/utils/projection-store.js +133 -9
- package/dist/utils/projection-store.js.map +1 -1
- package/dist/utils/resource-loader.d.ts +1 -1
- package/dist/utils/resource-loader.d.ts.map +1 -1
- package/dist/utils/resource-loader.js +11 -1
- package/dist/utils/resource-loader.js.map +1 -1
- package/dist/utils/vat-bin-path.d.ts +36 -0
- package/dist/utils/vat-bin-path.d.ts.map +1 -0
- package/dist/utils/vat-bin-path.js +49 -0
- package/dist/utils/vat-bin-path.js.map +1 -0
- package/package.json +25 -14
- package/dist/commands/resources/command-helpers.d.ts +0 -5
- package/dist/commands/resources/command-helpers.d.ts.map +0 -1
- package/dist/commands/resources/command-helpers.js +0 -6
- package/dist/commands/resources/command-helpers.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify.js","sourceRoot":"","sources":["../../src/commands/verify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,QAAQ,EA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1C,MAAM,EAAE,YAAY;YACpB,QAAQ,EAAE,GAAG,QAAQ,IAAI;SAC1B,CAAC,CAAC;QAEH,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC;IAChD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACzD,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-runner.d.ts","sourceRoot":"","sources":["../../src/utils/agent-runner.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE;QACN,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH;
|
|
1
|
+
{"version":3,"file":"agent-runner.d.ts","sourceRoot":"","sources":["../../src/utils/agent-runner.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE;QACN,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH;AAyCD;;GAEG;AACH,wBAAsB,QAAQ,CAC5B,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,cAAc,CAAC,CA+FzB"}
|
|
@@ -34,9 +34,13 @@ function substituteTemplate(template, variables) {
|
|
|
34
34
|
}
|
|
35
35
|
// Strip Jinja2 conditional blocks {% if ... %}...{% endif %}
|
|
36
36
|
// This is a simple regex approach for MVP - won't handle nested conditionals
|
|
37
|
-
// Using [^] instead of [\s\S] to match any character including newlines
|
|
38
|
-
//
|
|
39
|
-
|
|
37
|
+
// Using [^] instead of [\s\S] to match any character including newlines.
|
|
38
|
+
// The condition's first character must be `[^%\s]` so that `\s+` and the
|
|
39
|
+
// condition cannot both claim the same space — that ambiguity made the old
|
|
40
|
+
// `\s+[^%]+` form backtrack super-linearly (measured 35 ms on an 8k-space
|
|
41
|
+
// input and growing quadratically; 0 ms after). A jinja `{% if %}` with an
|
|
42
|
+
// empty condition is not valid template syntax and never matched usefully.
|
|
43
|
+
result = result.replaceAll(/\{%\s*if\s+[^%\s][^%]*%\}[^]*?\{%\s*endif\s*%\}/gu, '');
|
|
40
44
|
return result.trim();
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-runner.js","sourceRoot":"","sources":["../../src/utils/agent-runner.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAA4B,MAAM,kCAAkC,CAAC;AAC/F,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAerD;;GAEG;AACH,KAAK,UAAU,cAAc,CAAC,YAAoB,EAAE,SAAiB;IACnE,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IAC5C,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;IAC/E,8GAA8G;IAC9G,OAAO,MAAM,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,CA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Q,CAAC,WAAW,IAAI,SAAS,CAAC,EAAE,CAAC,CAAC;QACjG,OAAO,CAAC,KAAK,CAAC,yBAAyB,QAAQ,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC;QACtE,OAAO,CAAC,KAAK,CAAC,0BAA0B,QAAQ,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,wBAAwB;IACxB,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC;IAC5E,IAAI,WAAW,EAAE,IAAI,KAAK,MAAM,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACrD,CAAC;IAED,OAAO;QACL,QAAQ,EAAE,WAAW,CAAC,IAAI;QAC1B,KAAK,EAAE;YACL,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,YAAY;YACxC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,aAAa;SAC3C;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -33,14 +33,55 @@ export declare function formatDuration(ms: number): string;
|
|
|
33
33
|
* @returns Stack trace for an `Error`, or an inspected rendering of a non-`Error`
|
|
34
34
|
*/
|
|
35
35
|
export declare function errorDiagnostics(error: unknown): string;
|
|
36
|
+
/** The document a command publishes when an unexpected failure stops it. */
|
|
37
|
+
export interface CommandErrorDocument {
|
|
38
|
+
status: 'error';
|
|
39
|
+
error: string;
|
|
40
|
+
duration: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Report an unexpected failure on stderr and return the document that describes
|
|
44
|
+
* it, WITHOUT deciding how the caller ends.
|
|
45
|
+
*
|
|
46
|
+
* Split out of {@link handleCommandError} because the same failure now has two
|
|
47
|
+
* endings and must not grow two policies. A command run from the command line
|
|
48
|
+
* writes this document to stdout and exits 2; the same command run as a phase of
|
|
49
|
+
* `vat validate` / `vat verify` / `vat build` runs in the orchestrator's own
|
|
50
|
+
* process, where exiting would kill the whole run and skip every later phase —
|
|
51
|
+
* so it hands the document back and the orchestrator nests it under that phase's
|
|
52
|
+
* `report`, exactly as it used to nest the child's captured stdout.
|
|
53
|
+
*
|
|
54
|
+
* The stderr half is identical in both lanes: progress and diagnostics have
|
|
55
|
+
* always streamed live, and that is unchanged by there no longer being a child.
|
|
56
|
+
*
|
|
57
|
+
* @param error - The value that was thrown
|
|
58
|
+
* @param logger - Logger instance for error output
|
|
59
|
+
* @param startTime - Command start time (from Date.now())
|
|
60
|
+
* @param commandName - Name of the command (for the error message)
|
|
61
|
+
*/
|
|
62
|
+
export declare function reportCommandError(error: unknown, logger: Logger, startTime: number, commandName: string): CommandErrorDocument;
|
|
36
63
|
/**
|
|
37
|
-
* Handle command error with standard formatting and exit
|
|
64
|
+
* Handle command error with standard formatting and exit.
|
|
65
|
+
*
|
|
66
|
+
* The command-line ending for {@link reportCommandError}. Exit 2 is the
|
|
67
|
+
* UNEXPECTED failure, per the exit-code contract every command's help documents.
|
|
68
|
+
*
|
|
69
|
+
* 🔑 **`format` is not decoration.** Every command offering `--format json`
|
|
70
|
+
* honoured it on the success path and emitted YAML here, so the one document a
|
|
71
|
+
* CI wrapper most needs to read — the one explaining why the command failed —
|
|
72
|
+
* arrived in a format its parser rejects. A consumer running
|
|
73
|
+
* `vat resources check --format json | jq .error` got a parse error on top of
|
|
74
|
+
* whatever went wrong, and had to guess at the second failure to find the first.
|
|
75
|
+
* A caller that has a `--format` option MUST pass it.
|
|
76
|
+
*
|
|
38
77
|
* @param error - The error that occurred
|
|
39
78
|
* @param logger - Logger instance for error output
|
|
40
79
|
* @param startTime - Command start time (from Date.now())
|
|
41
80
|
* @param commandName - Name of the command (for error message)
|
|
81
|
+
* @param format - What the operator asked for: `json`, or anything else (and
|
|
82
|
+
* omitted) for YAML — matching the success path's own two-branch switch
|
|
42
83
|
*/
|
|
43
|
-
export declare function handleCommandError(error: unknown, logger: Logger, startTime: number, commandName: string): never;
|
|
84
|
+
export declare function handleCommandError(error: unknown, logger: Logger, startTime: number, commandName: string, format?: string | undefined): never;
|
|
44
85
|
/** The payload a command publishes when its own validation gate stops it. */
|
|
45
86
|
export interface ValidationGateFailure {
|
|
46
87
|
status: 'error';
|
|
@@ -68,4 +109,49 @@ export declare function buildValidationGateFailure(subject: string, issues: read
|
|
|
68
109
|
* a bare non-zero code.
|
|
69
110
|
*/
|
|
70
111
|
export declare function handleValidationGateFailure(subject: string, issues: readonly ValidationIssue[]): never;
|
|
112
|
+
/**
|
|
113
|
+
* The exit code a USAGE mistake ends on: a flag this program does not declare,
|
|
114
|
+
* a verb it does not know, a missing or invalid argument.
|
|
115
|
+
*
|
|
116
|
+
* 🔑 **Two is not a style choice — one was a factual lie.** Every command's
|
|
117
|
+
* `--help` publishes the same three-way contract: `0` no error-severity
|
|
118
|
+
* findings, `1` at least one, `2` a system error. Commander's default for a
|
|
119
|
+
* usage mistake is `process.exit(1)`, so `vat resources check --json` (the
|
|
120
|
+
* option is `--format json`) exited **1** — which, read against the contract
|
|
121
|
+
* the command itself prints, asserts that at least one check was violated.
|
|
122
|
+
* Nothing had run. A CI wrapper spelled `if [ $? -ne 0 ]; then report_findings`
|
|
123
|
+
* therefore reported findings that were never computed, and the operator went
|
|
124
|
+
* looking for a violation that did not exist.
|
|
125
|
+
*
|
|
126
|
+
* The same hole swallowed a mistyped verb (`vat resources chekc`) and every
|
|
127
|
+
* unknown option on all 69 commands. VAT's own refusals were already correct —
|
|
128
|
+
* an unknown `--check` name and an unusable `--budget` both exit 2 — so the
|
|
129
|
+
* inconsistency was Commander's default leaking through the one path VAT had
|
|
130
|
+
* not claimed.
|
|
131
|
+
*
|
|
132
|
+
* ⚠️ **Help and `--version` are NOT usage mistakes.** They terminate through
|
|
133
|
+
* the same `_exit` path with code 0 and must stay 0; only a non-zero commander
|
|
134
|
+
* ending is remapped. See {@link exitCodeForCommanderEnding}.
|
|
135
|
+
*/
|
|
136
|
+
export declare const USAGE_ERROR_EXIT_CODE = 2;
|
|
137
|
+
/**
|
|
138
|
+
* Map a commander termination to the exit code VAT's contract promises.
|
|
139
|
+
*
|
|
140
|
+
* Commander reports BOTH successful and failing terminations through the same
|
|
141
|
+
* `CommanderError`: `--help` and `--version` carry `exitCode` 0, while an
|
|
142
|
+
* unknown option, an unknown command and `help({ error: true })` carry non-zero.
|
|
143
|
+
* Anything non-zero is a usage mistake by construction — commander raises these
|
|
144
|
+
* only while parsing, before any action runs — so it maps to
|
|
145
|
+
* {@link USAGE_ERROR_EXIT_CODE}.
|
|
146
|
+
*
|
|
147
|
+
* 🪤 Do NOT switch on `error.code` (`commander.unknownOption`, `commander.help`,
|
|
148
|
+
* …). The unknown-COMMAND path arrives as `commander.help` with exitCode 1,
|
|
149
|
+
* because the `command:*` handler renders help with `{ error: true }` — so the
|
|
150
|
+
* code string says "help" for a case that is emphatically not one. The exit
|
|
151
|
+
* code commander already computed is the honest discriminator; the string is not.
|
|
152
|
+
*
|
|
153
|
+
* @param commanderExitCode - The `exitCode` commander put on its CommanderError
|
|
154
|
+
* @returns 0 for a successful ending, {@link USAGE_ERROR_EXIT_CODE} otherwise
|
|
155
|
+
*/
|
|
156
|
+
export declare function exitCodeForCommanderEnding(commanderExitCode: number): number;
|
|
71
157
|
//# sourceMappingURL=command-error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-error.d.ts","sourceRoot":"","sources":["../../src/utils/command-error.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAExG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAQjD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,C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AqB,CAEvB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,SAAS,eAAe,EAAE,GACjC,KAAK,CAGP;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,0BAA0B,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAE5E"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { inspect } from 'node:util';
|
|
10
10
|
import { countBySeverity } from '@vibe-agent-toolkit/schema';
|
|
11
|
-
import { writeYamlOutput } from './output.js';
|
|
11
|
+
import { writeJsonOutput, writeYamlOutput } from './output.js';
|
|
12
12
|
/**
|
|
13
13
|
* Format duration for human readability
|
|
14
14
|
* @param ms - Duration in milliseconds
|
|
@@ -49,21 +49,61 @@ export function errorDiagnostics(error) {
|
|
|
49
49
|
return `Non-Error value thrown: ${inspect(error, { depth: 3 })}`;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
52
|
+
* Report an unexpected failure on stderr and return the document that describes
|
|
53
|
+
* it, WITHOUT deciding how the caller ends.
|
|
54
|
+
*
|
|
55
|
+
* Split out of {@link handleCommandError} because the same failure now has two
|
|
56
|
+
* endings and must not grow two policies. A command run from the command line
|
|
57
|
+
* writes this document to stdout and exits 2; the same command run as a phase of
|
|
58
|
+
* `vat validate` / `vat verify` / `vat build` runs in the orchestrator's own
|
|
59
|
+
* process, where exiting would kill the whole run and skip every later phase —
|
|
60
|
+
* so it hands the document back and the orchestrator nests it under that phase's
|
|
61
|
+
* `report`, exactly as it used to nest the child's captured stdout.
|
|
62
|
+
*
|
|
63
|
+
* The stderr half is identical in both lanes: progress and diagnostics have
|
|
64
|
+
* always streamed live, and that is unchanged by there no longer being a child.
|
|
65
|
+
*
|
|
66
|
+
* @param error - The value that was thrown
|
|
54
67
|
* @param logger - Logger instance for error output
|
|
55
68
|
* @param startTime - Command start time (from Date.now())
|
|
56
|
-
* @param commandName - Name of the command (for error message)
|
|
69
|
+
* @param commandName - Name of the command (for the error message)
|
|
57
70
|
*/
|
|
58
|
-
export function
|
|
71
|
+
export function reportCommandError(error, logger, startTime, commandName) {
|
|
59
72
|
const duration = Date.now() - startTime;
|
|
60
|
-
|
|
73
|
+
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
74
|
+
logger.error(`${commandName} failed: ${message}`);
|
|
61
75
|
logger.debug(errorDiagnostics(error));
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
76
|
+
return { status: 'error', error: message, duration: formatDuration(duration) };
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Handle command error with standard formatting and exit.
|
|
80
|
+
*
|
|
81
|
+
* The command-line ending for {@link reportCommandError}. Exit 2 is the
|
|
82
|
+
* UNEXPECTED failure, per the exit-code contract every command's help documents.
|
|
83
|
+
*
|
|
84
|
+
* 🔑 **`format` is not decoration.** Every command offering `--format json`
|
|
85
|
+
* honoured it on the success path and emitted YAML here, so the one document a
|
|
86
|
+
* CI wrapper most needs to read — the one explaining why the command failed —
|
|
87
|
+
* arrived in a format its parser rejects. A consumer running
|
|
88
|
+
* `vat resources check --format json | jq .error` got a parse error on top of
|
|
89
|
+
* whatever went wrong, and had to guess at the second failure to find the first.
|
|
90
|
+
* A caller that has a `--format` option MUST pass it.
|
|
91
|
+
*
|
|
92
|
+
* @param error - The error that occurred
|
|
93
|
+
* @param logger - Logger instance for error output
|
|
94
|
+
* @param startTime - Command start time (from Date.now())
|
|
95
|
+
* @param commandName - Name of the command (for error message)
|
|
96
|
+
* @param format - What the operator asked for: `json`, or anything else (and
|
|
97
|
+
* omitted) for YAML — matching the success path's own two-branch switch
|
|
98
|
+
*/
|
|
99
|
+
export function handleCommandError(error, logger, startTime, commandName, format) {
|
|
100
|
+
const document = reportCommandError(error, logger, startTime, commandName);
|
|
101
|
+
if (format === 'json') {
|
|
102
|
+
writeJsonOutput(document);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
writeYamlOutput(document);
|
|
106
|
+
}
|
|
67
107
|
process.exit(2);
|
|
68
108
|
}
|
|
69
109
|
/**
|
|
@@ -91,4 +131,51 @@ export function handleValidationGateFailure(subject, issues) {
|
|
|
91
131
|
writeYamlOutput(buildValidationGateFailure(subject, issues));
|
|
92
132
|
process.exit(1);
|
|
93
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* The exit code a USAGE mistake ends on: a flag this program does not declare,
|
|
136
|
+
* a verb it does not know, a missing or invalid argument.
|
|
137
|
+
*
|
|
138
|
+
* 🔑 **Two is not a style choice — one was a factual lie.** Every command's
|
|
139
|
+
* `--help` publishes the same three-way contract: `0` no error-severity
|
|
140
|
+
* findings, `1` at least one, `2` a system error. Commander's default for a
|
|
141
|
+
* usage mistake is `process.exit(1)`, so `vat resources check --json` (the
|
|
142
|
+
* option is `--format json`) exited **1** — which, read against the contract
|
|
143
|
+
* the command itself prints, asserts that at least one check was violated.
|
|
144
|
+
* Nothing had run. A CI wrapper spelled `if [ $? -ne 0 ]; then report_findings`
|
|
145
|
+
* therefore reported findings that were never computed, and the operator went
|
|
146
|
+
* looking for a violation that did not exist.
|
|
147
|
+
*
|
|
148
|
+
* The same hole swallowed a mistyped verb (`vat resources chekc`) and every
|
|
149
|
+
* unknown option on all 69 commands. VAT's own refusals were already correct —
|
|
150
|
+
* an unknown `--check` name and an unusable `--budget` both exit 2 — so the
|
|
151
|
+
* inconsistency was Commander's default leaking through the one path VAT had
|
|
152
|
+
* not claimed.
|
|
153
|
+
*
|
|
154
|
+
* ⚠️ **Help and `--version` are NOT usage mistakes.** They terminate through
|
|
155
|
+
* the same `_exit` path with code 0 and must stay 0; only a non-zero commander
|
|
156
|
+
* ending is remapped. See {@link exitCodeForCommanderEnding}.
|
|
157
|
+
*/
|
|
158
|
+
export const USAGE_ERROR_EXIT_CODE = 2;
|
|
159
|
+
/**
|
|
160
|
+
* Map a commander termination to the exit code VAT's contract promises.
|
|
161
|
+
*
|
|
162
|
+
* Commander reports BOTH successful and failing terminations through the same
|
|
163
|
+
* `CommanderError`: `--help` and `--version` carry `exitCode` 0, while an
|
|
164
|
+
* unknown option, an unknown command and `help({ error: true })` carry non-zero.
|
|
165
|
+
* Anything non-zero is a usage mistake by construction — commander raises these
|
|
166
|
+
* only while parsing, before any action runs — so it maps to
|
|
167
|
+
* {@link USAGE_ERROR_EXIT_CODE}.
|
|
168
|
+
*
|
|
169
|
+
* 🪤 Do NOT switch on `error.code` (`commander.unknownOption`, `commander.help`,
|
|
170
|
+
* …). The unknown-COMMAND path arrives as `commander.help` with exitCode 1,
|
|
171
|
+
* because the `command:*` handler renders help with `{ error: true }` — so the
|
|
172
|
+
* code string says "help" for a case that is emphatically not one. The exit
|
|
173
|
+
* code commander already computed is the honest discriminator; the string is not.
|
|
174
|
+
*
|
|
175
|
+
* @param commanderExitCode - The `exitCode` commander put on its CommanderError
|
|
176
|
+
* @returns 0 for a successful ending, {@link USAGE_ERROR_EXIT_CODE} otherwise
|
|
177
|
+
*/
|
|
178
|
+
export function exitCodeForCommanderEnding(commanderExitCode) {
|
|
179
|
+
return commanderExitCode === 0 ? 0 : USAGE_ERROR_EXIT_CODE;
|
|
180
|
+
}
|
|
94
181
|
//# sourceMappingURL=command-error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-error.js","sourceRoot":"","sources":["../../src/utils/command-error.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,eAAe,EAA6C,MAAM,4BAA4B,CAAC;AAGxG,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"command-error.js","sourceRoot":"","sources":["../../src/utils/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iBAAyB;IAClE,OAAO,iBAAiB,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC;AAC7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-loader.d.ts","sourceRoot":"","sources":["../../src/utils/config-loader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,
|
|
1
|
+
{"version":3,"file":"config-loader.d.ts","sourceRoot":"","sources":["../../src/utils/config-loader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAAoD,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAMrH;;;;;;;;GAQG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IACxC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;gBACjB,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;CAMhD;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CA2CzE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEvD;AAqBD;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAG7C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAgB/E"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { readFileSync, existsSync } from 'node:fs';
|
|
8
8
|
import { dirname } from 'node:path';
|
|
9
|
-
import { ProjectConfigSchema } from '@vibe-agent-toolkit/resources';
|
|
9
|
+
import { formatConfigValidationError, ProjectConfigSchema } from '@vibe-agent-toolkit/resources';
|
|
10
10
|
import { safePath } from '@vibe-agent-toolkit/utils';
|
|
11
11
|
import * as yaml from 'yaml';
|
|
12
12
|
const CONFIG_FILENAME = 'vibe-agent-toolkit.config.yaml';
|
|
@@ -61,10 +61,17 @@ export function loadConfig(projectRoot) {
|
|
|
61
61
|
// eslint-disable-next-line security/detect-non-literal-fs-filename -- configPath is derived from projectRoot parameter
|
|
62
62
|
const content = readFileSync(configPath, 'utf-8');
|
|
63
63
|
const parsed = yaml.parse(content);
|
|
64
|
-
// Validate with canonical schema from resources package
|
|
64
|
+
// Validate with canonical schema from resources package.
|
|
65
|
+
//
|
|
66
|
+
// 🔑 The message comes from the shared formatter, NOT from `error.message`.
|
|
67
|
+
// In Zod 3 that property is a **JSON dump of the issue array**, and it was
|
|
68
|
+
// what an adopter got: five verbs exiting 2 in under a second on a blob that
|
|
69
|
+
// never named this file, never said which key was refused in words, and
|
|
70
|
+
// offered no remedy. Every strict block in the schema is a refusal an
|
|
71
|
+
// adopter has to be able to act on from the terminal alone.
|
|
65
72
|
const result = ProjectConfigSchema.safeParse(parsed);
|
|
66
73
|
if (!result.success) {
|
|
67
|
-
throw new Error(
|
|
74
|
+
throw new Error(formatConfigValidationError(result.error, { configPath, schema: ProjectConfigSchema }));
|
|
68
75
|
}
|
|
69
76
|
return result.data;
|
|
70
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-loader.js","sourceRoot":"","sources":["../../src/utils/config-loader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,mBAAmB,EAAsB,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"config-loader.js","sourceRoot":"","sources":["../../src/utils/config-loader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAA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AClD,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,MAAM,IAAI,SAAS,CAAC;IACrD,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;QACvC,iBAAiB,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,IAAI,IAAI,CAAC,CAAC;QACnD,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,4EAA4E;QAC5E,8EAA8E;QAC9E,MAAM,SAAS,GAAG,GAAG,YAAY,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;QAC/F,cAAc,CAAC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QAC3C,MAAM,SAAS,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -18,11 +18,18 @@
|
|
|
18
18
|
* findings imports this; nobody writes a fourth copy. Same rule as
|
|
19
19
|
* `resolveAssetReference` and `resolveSkillReference` in CLAUDE.md.
|
|
20
20
|
*/
|
|
21
|
-
import { type ValidationIssue } from '@vibe-agent-toolkit/schema';
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
import { type SeverityConfig, type ValidationIssue } from '@vibe-agent-toolkit/schema';
|
|
22
|
+
/**
|
|
23
|
+
* A `validation.severity` map as it appears in config, or nothing.
|
|
24
|
+
*
|
|
25
|
+
* ⚠️ **Do not re-hand-roll this as `Record<string, string>`.** It was that, and
|
|
26
|
+
* the key space is now the registry enum PLUS `CUSTOM:<name>` — a `Partial`
|
|
27
|
+
* mapped type whose values are `SeverityLevel | undefined`. A
|
|
28
|
+
* `Record<string, string>` is not assignable to it and broke every consumer the
|
|
29
|
+
* moment the custom key space landed. `SeverityConfig` is the schema's own
|
|
30
|
+
* `Pick<ValidationConfig, 'severity'>`, so the two cannot drift again.
|
|
31
|
+
*/
|
|
32
|
+
export type SeverityOverrides = SeverityConfig;
|
|
26
33
|
/**
|
|
27
34
|
* Re-severity findings against a `validation.severity` map, dropping the codes
|
|
28
35
|
* resolved to `ignore`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-severity.d.ts","sourceRoot":"","sources":["../../src/utils/issue-severity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"issue-severity.d.ts","sourceRoot":"","sources":["../../src/utils/issue-severity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,SAAS,eAAe,EAAE,EAClC,UAAU,EAAE,iBAAiB,GAAG,SAAS,GACxC,eAAe,EAAE,CAenB"}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* findings imports this; nobody writes a fourth copy. Same rule as
|
|
19
19
|
* `resolveAssetReference` and `resolveSkillReference` in CLAUDE.md.
|
|
20
20
|
*/
|
|
21
|
-
import { resolveSeverity } from '@vibe-agent-toolkit/schema';
|
|
21
|
+
import { resolveSeverity, } from '@vibe-agent-toolkit/schema';
|
|
22
22
|
/**
|
|
23
23
|
* Re-severity findings against a `validation.severity` map, dropping the codes
|
|
24
24
|
* resolved to `ignore`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-severity.js","sourceRoot":"","sources":["../../src/utils/issue-severity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"issue-severity.js","sourceRoot":"","sources":["../../src/utils/issue-severity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAEL,eAAe,GAGhB,MAAM,4BAA4B,CAAC;AAcpC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAkC,EAClC,UAAyC;IAEzC,MAAM,SAAS,GAAG,UAAU,EAAE,QAAQ,CAAC;IACvC,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC;IAEhD,MAAM,QAAQ,GAAsB,EAAE,CAAC;IACvC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,SAAS,CAAC,EAAE,CAAC;YAC/B,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACrB,SAAS;QACX,CAAC;QACD,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,CAAC,IAAiB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;QACnF,IAAI,QAAQ,KAAK,QAAQ;YAAE,SAAS;QACpC,QAAQ,CAAC,IAAI,CAAC,QAAQ,KAAK,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC9E,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -21,20 +21,21 @@
|
|
|
21
21
|
* success. Two hand-written copies of the reporting half is two places for that
|
|
22
22
|
* report to quietly become a no-op.
|
|
23
23
|
*/
|
|
24
|
-
import { type BlobPopulationReport, type PopulationCache } from '@vibe-agent-toolkit/resources';
|
|
25
|
-
import type { GitTracker } from '@vibe-agent-toolkit/utils';
|
|
24
|
+
import { type BlobPopulationReport, type CollectionConfig, type PopulationCache } from '@vibe-agent-toolkit/resources';
|
|
25
|
+
import type { GitTracker } from '@vibe-agent-toolkit/utils/git';
|
|
26
26
|
import type { Logger } from './logger.js';
|
|
27
27
|
/**
|
|
28
28
|
* The population arguments {@link populationWiring} supplies.
|
|
29
29
|
*
|
|
30
|
-
* Spread into a builder's options object, so the
|
|
31
|
-
* `exactOptionalPropertyTypes` sense — omitted entirely when
|
|
32
|
-
* never present-and-undefined.
|
|
30
|
+
* Spread into a builder's options object, so the three optional inputs are
|
|
31
|
+
* optional in the `exactOptionalPropertyTypes` sense — omitted entirely when
|
|
32
|
+
* they are absent, never present-and-undefined.
|
|
33
33
|
*/
|
|
34
34
|
export interface PopulationWiring {
|
|
35
35
|
onBlobPopulation: (report: BlobPopulationReport) => void;
|
|
36
36
|
gitTracker?: GitTracker | undefined;
|
|
37
37
|
cache?: PopulationCache | undefined;
|
|
38
|
+
collections?: Readonly<Record<string, CollectionConfig>> | undefined;
|
|
38
39
|
}
|
|
39
40
|
/**
|
|
40
41
|
* Wire one population's blob-stage observer, ignore oracle and store.
|
|
@@ -53,7 +54,47 @@ export interface PopulationWiring {
|
|
|
53
54
|
* was supplied, so its absence decides whether a consumer can TELL which
|
|
54
55
|
* members were ignored
|
|
55
56
|
* @param cache - The run's projection store, or undefined to re-derive
|
|
57
|
+
* @param root - The project root, from which the run's declared `mimeType`
|
|
58
|
+
* routing is READ rather than passed. See {@link collectionsOption}
|
|
56
59
|
* @returns The options to spread into the population builder's argument
|
|
57
60
|
*/
|
|
58
|
-
export declare function populationWiring(logger: Logger, gitTracker: GitTracker | undefined, cache: PopulationCache | undefined): PopulationWiring;
|
|
61
|
+
export declare function populationWiring(logger: Logger, gitTracker: GitTracker | undefined, cache: PopulationCache | undefined, root: string): PopulationWiring;
|
|
62
|
+
/**
|
|
63
|
+
* The project's collection declarations at `root`, or undefined for a project
|
|
64
|
+
* that declares none.
|
|
65
|
+
*
|
|
66
|
+
* ## Why this is READ here and not passed in
|
|
67
|
+
*
|
|
68
|
+
* A declared `mimeType` changes which parser runs, which changes the content
|
|
69
|
+
* key, which is folded into the projection store's key through the routing's
|
|
70
|
+
* fingerprint. So two lanes of ONE command that disagree about whether to supply
|
|
71
|
+
* the declarations do not merely disagree about parsing — they **evict each
|
|
72
|
+
* other's stored extents over an unchanged tree, run after run.**
|
|
73
|
+
*
|
|
74
|
+
* Taking a `root` and reading the config here rather than accepting a
|
|
75
|
+
* `collections` argument is what makes that disagreement unrepresentable: there
|
|
76
|
+
* is one answer per root and every lane that goes through this helper gets it.
|
|
77
|
+
* An optional argument would have been a thing three call sites could each
|
|
78
|
+
* forget, and forgetting is silent — a cache that never hits looks exactly like
|
|
79
|
+
* a cache that is merely cold.
|
|
80
|
+
*
|
|
81
|
+
* `loadConfigCached` is keyed on the root, so the repeat calls across a
|
|
82
|
+
* command's lanes cost one parse between them. A broken config throws here, as
|
|
83
|
+
* it does everywhere else — a population silently typed by the built-in tables
|
|
84
|
+
* because the config would not parse is the conflation
|
|
85
|
+
* {@link loadConfigCached} exists to refuse.
|
|
86
|
+
*
|
|
87
|
+
* Returned as a SPREADABLE rather than a value: `exactOptionalPropertyTypes`
|
|
88
|
+
* makes an absent key and one holding `undefined` different arguments, and the
|
|
89
|
+
* population builders declare `collections` optional. Every caller spreads this,
|
|
90
|
+
* so no call site writes its own `!== undefined &&` and none can get the two
|
|
91
|
+
* states the wrong way round.
|
|
92
|
+
*
|
|
93
|
+
* @param root - The project root whose config declares the collections
|
|
94
|
+
* @returns `{ collections }`, or `{}` when there is no config or no
|
|
95
|
+
* `resources.collections` in it
|
|
96
|
+
*/
|
|
97
|
+
export declare function collectionsOption(root: string): {
|
|
98
|
+
collections?: Readonly<Record<string, CollectionConfig>>;
|
|
99
|
+
};
|
|
59
100
|
//# sourceMappingURL=population-wiring.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"population-wiring.d.ts","sourceRoot":"","sources":["../../src/utils/population-wiring.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"population-wiring.d.ts","sourceRoot":"","sources":["../../src/utils/population-wiring.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAGhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACzD,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACpC,KAAK,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACpC,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,GAAG,SAAS,CAAC;CACtE;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,KAAK,EAAE,eAAe,GAAG,SAAS,EAClC,IAAI,EAAE,MAAM,GACX,gBAAgB,CAUlB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,GACX;IAAE,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAA;CAAE,CAG9D"}
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
* success. Two hand-written copies of the reporting half is two places for that
|
|
22
22
|
* report to quietly become a no-op.
|
|
23
23
|
*/
|
|
24
|
-
import { describeBlobRefusals } from '@vibe-agent-toolkit/resources';
|
|
24
|
+
import { describeBlobRefusals, } from '@vibe-agent-toolkit/resources';
|
|
25
|
+
import { loadConfigCached } from './config-loader.js';
|
|
25
26
|
/**
|
|
26
27
|
* Wire one population's blob-stage observer, ignore oracle and store.
|
|
27
28
|
*
|
|
@@ -39,9 +40,11 @@ import { describeBlobRefusals } from '@vibe-agent-toolkit/resources';
|
|
|
39
40
|
* was supplied, so its absence decides whether a consumer can TELL which
|
|
40
41
|
* members were ignored
|
|
41
42
|
* @param cache - The run's projection store, or undefined to re-derive
|
|
43
|
+
* @param root - The project root, from which the run's declared `mimeType`
|
|
44
|
+
* routing is READ rather than passed. See {@link collectionsOption}
|
|
42
45
|
* @returns The options to spread into the population builder's argument
|
|
43
46
|
*/
|
|
44
|
-
export function populationWiring(logger, gitTracker, cache) {
|
|
47
|
+
export function populationWiring(logger, gitTracker, cache, root) {
|
|
45
48
|
return {
|
|
46
49
|
onBlobPopulation: (report) => {
|
|
47
50
|
const refusals = describeBlobRefusals(report);
|
|
@@ -50,6 +53,46 @@ export function populationWiring(logger, gitTracker, cache) {
|
|
|
50
53
|
},
|
|
51
54
|
...(gitTracker !== undefined && { gitTracker }),
|
|
52
55
|
...(cache !== undefined && { cache }),
|
|
56
|
+
...collectionsOption(root),
|
|
53
57
|
};
|
|
54
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* The project's collection declarations at `root`, or undefined for a project
|
|
61
|
+
* that declares none.
|
|
62
|
+
*
|
|
63
|
+
* ## Why this is READ here and not passed in
|
|
64
|
+
*
|
|
65
|
+
* A declared `mimeType` changes which parser runs, which changes the content
|
|
66
|
+
* key, which is folded into the projection store's key through the routing's
|
|
67
|
+
* fingerprint. So two lanes of ONE command that disagree about whether to supply
|
|
68
|
+
* the declarations do not merely disagree about parsing — they **evict each
|
|
69
|
+
* other's stored extents over an unchanged tree, run after run.**
|
|
70
|
+
*
|
|
71
|
+
* Taking a `root` and reading the config here rather than accepting a
|
|
72
|
+
* `collections` argument is what makes that disagreement unrepresentable: there
|
|
73
|
+
* is one answer per root and every lane that goes through this helper gets it.
|
|
74
|
+
* An optional argument would have been a thing three call sites could each
|
|
75
|
+
* forget, and forgetting is silent — a cache that never hits looks exactly like
|
|
76
|
+
* a cache that is merely cold.
|
|
77
|
+
*
|
|
78
|
+
* `loadConfigCached` is keyed on the root, so the repeat calls across a
|
|
79
|
+
* command's lanes cost one parse between them. A broken config throws here, as
|
|
80
|
+
* it does everywhere else — a population silently typed by the built-in tables
|
|
81
|
+
* because the config would not parse is the conflation
|
|
82
|
+
* {@link loadConfigCached} exists to refuse.
|
|
83
|
+
*
|
|
84
|
+
* Returned as a SPREADABLE rather than a value: `exactOptionalPropertyTypes`
|
|
85
|
+
* makes an absent key and one holding `undefined` different arguments, and the
|
|
86
|
+
* population builders declare `collections` optional. Every caller spreads this,
|
|
87
|
+
* so no call site writes its own `!== undefined &&` and none can get the two
|
|
88
|
+
* states the wrong way round.
|
|
89
|
+
*
|
|
90
|
+
* @param root - The project root whose config declares the collections
|
|
91
|
+
* @returns `{ collections }`, or `{}` when there is no config or no
|
|
92
|
+
* `resources.collections` in it
|
|
93
|
+
*/
|
|
94
|
+
export function collectionsOption(root) {
|
|
95
|
+
const collections = loadConfigCached(root)?.resources?.collections;
|
|
96
|
+
return collections === undefined ? {} : { collections };
|
|
97
|
+
}
|
|
55
98
|
//# sourceMappingURL=population-wiring.js.map
|