audit-tools 0.32.68 → 0.33.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/dist/audit/cli/advanceAuditCommand.d.ts.map +1 -1
- package/dist/audit/cli/advanceAuditCommand.js +8 -3
- package/dist/audit/cli/advanceAuditCommand.js.map +1 -1
- package/dist/audit/cli/args.d.ts +9 -27
- package/dist/audit/cli/args.d.ts.map +1 -1
- package/dist/audit/cli/args.js +116 -50
- package/dist/audit/cli/args.js.map +1 -1
- package/dist/audit/cli/auditStep.d.ts +15 -1
- package/dist/audit/cli/auditStep.d.ts.map +1 -1
- package/dist/audit/cli/auditStep.js +2 -0
- package/dist/audit/cli/auditStep.js.map +1 -1
- package/dist/audit/cli/dispatch/quotaPool.d.ts +2 -1
- package/dist/audit/cli/dispatch/quotaPool.d.ts.map +1 -1
- package/dist/audit/cli/dispatch/quotaPool.js +43 -77
- package/dist/audit/cli/dispatch/quotaPool.js.map +1 -1
- package/dist/audit/cli/dispatch.d.ts.map +1 -1
- package/dist/audit/cli/dispatch.js +14 -6
- package/dist/audit/cli/dispatch.js.map +1 -1
- package/dist/audit/cli/hybridDispatch.d.ts +3 -1
- package/dist/audit/cli/hybridDispatch.d.ts.map +1 -1
- package/dist/audit/cli/hybridDispatch.js +1 -0
- package/dist/audit/cli/hybridDispatch.js.map +1 -1
- package/dist/audit/cli/nextStepCommand.d.ts +0 -9
- package/dist/audit/cli/nextStepCommand.d.ts.map +1 -1
- package/dist/audit/cli/nextStepCommand.js +151 -92
- package/dist/audit/cli/nextStepCommand.js.map +1 -1
- package/dist/audit/cli/nextStepHelpers.d.ts +11 -2
- package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
- package/dist/audit/cli/nextStepHelpers.js +56 -8
- package/dist/audit/cli/nextStepHelpers.js.map +1 -1
- package/dist/audit/cli/prepareDispatchCommand.d.ts.map +1 -1
- package/dist/audit/cli/prepareDispatchCommand.js +15 -9
- package/dist/audit/cli/prepareDispatchCommand.js.map +1 -1
- package/dist/audit/cli/prompts.d.ts +12 -32
- package/dist/audit/cli/prompts.d.ts.map +1 -1
- package/dist/audit/cli/prompts.js +19 -33
- package/dist/audit/cli/prompts.js.map +1 -1
- package/dist/audit/cli/providerConfirmationStep.d.ts +13 -5
- package/dist/audit/cli/providerConfirmationStep.d.ts.map +1 -1
- package/dist/audit/cli/providerConfirmationStep.js +47 -8
- package/dist/audit/cli/providerConfirmationStep.js.map +1 -1
- package/dist/audit/cli/quotaCommand.d.ts.map +1 -1
- package/dist/audit/cli/quotaCommand.js +16 -10
- package/dist/audit/cli/quotaCommand.js.map +1 -1
- package/dist/audit/cli/semanticReviewStep.d.ts +11 -1
- package/dist/audit/cli/semanticReviewStep.d.ts.map +1 -1
- package/dist/audit/cli/semanticReviewStep.js +11 -15
- package/dist/audit/cli/semanticReviewStep.js.map +1 -1
- package/dist/audit/cli/validateCommand.d.ts.map +1 -1
- package/dist/audit/cli/validateCommand.js +3 -3
- package/dist/audit/cli/validateCommand.js.map +1 -1
- package/dist/audit/contracts/wrapperResponse.d.ts +6 -6
- package/dist/audit/orchestrator/advance.d.ts.map +1 -1
- package/dist/audit/orchestrator/advance.js +39 -7
- package/dist/audit/orchestrator/advance.js.map +1 -1
- package/dist/audit/orchestrator/advanceTypes.d.ts +52 -1
- package/dist/audit/orchestrator/advanceTypes.d.ts.map +1 -1
- package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
- package/dist/audit/orchestrator/executorRunners.js +9 -1
- package/dist/audit/orchestrator/executorRunners.js.map +1 -1
- package/dist/audit/orchestrator/intakeExecutors.d.ts +27 -3
- package/dist/audit/orchestrator/intakeExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/intakeExecutors.js +119 -19
- package/dist/audit/orchestrator/intakeExecutors.js.map +1 -1
- package/dist/audit/orchestrator/nextStep.d.ts +7 -0
- package/dist/audit/orchestrator/nextStep.d.ts.map +1 -1
- package/dist/audit/orchestrator/nextStep.js +3 -0
- package/dist/audit/orchestrator/nextStep.js.map +1 -1
- package/dist/audit/orchestrator/providerConfirmation.d.ts.map +1 -1
- package/dist/audit/orchestrator/providerConfirmation.js +0 -2
- package/dist/audit/orchestrator/providerConfirmation.js.map +1 -1
- package/dist/audit/orchestrator/state.d.ts +17 -0
- package/dist/audit/orchestrator/state.d.ts.map +1 -1
- package/dist/audit/orchestrator/state.js +13 -1
- package/dist/audit/orchestrator/state.js.map +1 -1
- package/dist/audit/quota/index.d.ts +128 -128
- package/dist/audit/supervisor/sessionConfig.d.ts +3 -11
- package/dist/audit/supervisor/sessionConfig.d.ts.map +1 -1
- package/dist/audit/supervisor/sessionConfig.js +3 -25
- package/dist/audit/supervisor/sessionConfig.js.map +1 -1
- package/dist/audit/types/analyzerCapability.d.ts +6 -6
- package/dist/audit/types/externalAnalyzer.d.ts +10 -10
- package/dist/remediate/phases/plan.d.ts.map +1 -1
- package/dist/remediate/phases/plan.js +5 -4
- package/dist/remediate/phases/plan.js.map +1 -1
- package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipeline.js +9 -3
- package/dist/remediate/steps/contractPipeline.js.map +1 -1
- package/dist/remediate/steps/dispatch/marshal.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/marshal.js +5 -4
- package/dist/remediate/steps/dispatch/marshal.js.map +1 -1
- package/dist/remediate/steps/dispatch/waveScheduling.d.ts +4 -2
- package/dist/remediate/steps/dispatch/waveScheduling.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/waveScheduling.js +33 -85
- package/dist/remediate/steps/dispatch/waveScheduling.js.map +1 -1
- package/dist/remediate/steps/nextStep.d.ts +0 -10
- package/dist/remediate/steps/nextStep.d.ts.map +1 -1
- package/dist/remediate/steps/nextStep.js +25 -24
- package/dist/remediate/steps/nextStep.js.map +1 -1
- package/dist/remediate/steps/sessionConfigLoad.d.ts +46 -0
- package/dist/remediate/steps/sessionConfigLoad.d.ts.map +1 -0
- package/dist/remediate/steps/sessionConfigLoad.js +32 -0
- package/dist/remediate/steps/sessionConfigLoad.js.map +1 -0
- package/dist/shared/config/resolveSessionConfig.d.ts +72 -0
- package/dist/shared/config/resolveSessionConfig.d.ts.map +1 -0
- package/dist/shared/config/resolveSessionConfig.js +105 -0
- package/dist/shared/config/resolveSessionConfig.js.map +1 -0
- package/dist/shared/dispatch/admissionLoop.d.ts +12 -12
- package/dist/shared/friction/stepBoundaryCapture.d.ts +22 -1
- package/dist/shared/friction/stepBoundaryCapture.d.ts.map +1 -1
- package/dist/shared/friction/stepBoundaryCapture.js +40 -0
- package/dist/shared/friction/stepBoundaryCapture.js.map +1 -1
- package/dist/shared/index.d.ts +14 -8
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +11 -5
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/providers/auditorSources.d.ts +102 -0
- package/dist/shared/providers/auditorSources.d.ts.map +1 -0
- package/dist/shared/providers/auditorSources.js +226 -0
- package/dist/shared/providers/auditorSources.js.map +1 -0
- package/dist/shared/providers/providerConfirmation.d.ts +3 -20
- package/dist/shared/providers/providerConfirmation.d.ts.map +1 -1
- package/dist/shared/providers/providerConfirmation.js +3 -37
- package/dist/shared/providers/providerConfirmation.js.map +1 -1
- package/dist/shared/providers/providerFactory.d.ts +6 -0
- package/dist/shared/providers/providerFactory.d.ts.map +1 -1
- package/dist/shared/providers/providerFactory.js +6 -0
- package/dist/shared/providers/providerFactory.js.map +1 -1
- package/dist/shared/providers/sharedProviderConfirmation.d.ts +264 -75
- package/dist/shared/providers/sharedProviderConfirmation.d.ts.map +1 -1
- package/dist/shared/providers/sharedProviderConfirmation.js +534 -113
- package/dist/shared/providers/sharedProviderConfirmation.js.map +1 -1
- package/dist/shared/quota/apiPool.d.ts +34 -11
- package/dist/shared/quota/apiPool.d.ts.map +1 -1
- package/dist/shared/quota/apiPool.js +21 -23
- package/dist/shared/quota/apiPool.js.map +1 -1
- package/dist/shared/quota/capacity.d.ts +50 -50
- package/dist/shared/quota/hostPool.d.ts +107 -0
- package/dist/shared/quota/hostPool.d.ts.map +1 -0
- package/dist/shared/quota/hostPool.js +103 -0
- package/dist/shared/quota/hostPool.js.map +1 -0
- package/dist/shared/quota/quotaSource.d.ts +2 -2
- package/dist/shared/types/auditorDescriptor.d.ts +112 -0
- package/dist/shared/types/auditorDescriptor.d.ts.map +1 -0
- package/dist/shared/types/auditorDescriptor.js +28 -0
- package/dist/shared/types/auditorDescriptor.js.map +1 -0
- package/dist/shared/types/providerConfirmation.d.ts +64 -6
- package/dist/shared/types/providerConfirmation.d.ts.map +1 -1
- package/dist/shared/types/providerConfirmation.js +1 -1
- package/dist/shared/types/sessionConfig.d.ts +73 -65
- package/dist/shared/types/sessionConfig.d.ts.map +1 -1
- package/dist/shared/types/sessionConfig.js +48 -0
- package/dist/shared/types/sessionConfig.js.map +1 -1
- package/dist/shared/validation/sessionConfig.d.ts +26 -14
- package/dist/shared/validation/sessionConfig.d.ts.map +1 -1
- package/dist/shared/validation/sessionConfig.js +72 -70
- package/dist/shared/validation/sessionConfig.js.map +1 -1
- package/docs/audit-pkg/contracts.md +4 -4
- package/docs/audit-pkg/operator-guide.md +43 -24
- package/package.json +1 -1
- package/skills/audit-code/SKILL.md +17 -14
- package/skills/audit-code/audit-code.prompt.md +17 -16
- package/wrapper/audit-code-wrapper-install-hosts.mjs +6 -10
- package/wrapper/remediate-code-wrapper-install-hosts.mjs +4 -8
- package/dist/shared/quota/repairProxyRegistry.d.ts +0 -84
- package/dist/shared/quota/repairProxyRegistry.d.ts.map +0 -1
- package/dist/shared/quota/repairProxyRegistry.js +0 -144
- package/dist/shared/quota/repairProxyRegistry.js.map +0 -1
|
@@ -26,42 +26,28 @@ function cliInvocationTokens() {
|
|
|
26
26
|
return ["audit-code"];
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
* Render
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
29
|
+
* Render an {@link AuditorDescriptor} back to the single re-parseable `--auditor
|
|
30
|
+
* <json>` transport (G1 collapsed the former `--host-*` flag bag; G2 folded the
|
|
31
|
+
* provider identity + launch blocks onto `self` and resliced dispatch backends to
|
|
32
|
+
* `sources[]`). Returns `[]` when the descriptor is undefined OR carries nothing —
|
|
33
|
+
* no declared `self` field, no sources, no id/timestamp — so a host with no
|
|
34
|
+
* handshake emits a bare continue-command exactly as before. Otherwise the whole
|
|
35
|
+
* descriptor is JSON-serialized (`JSON.stringify` drops `undefined` self fields).
|
|
35
36
|
*/
|
|
36
|
-
export function
|
|
37
|
+
export function renderAuditorDescriptor(descriptor) {
|
|
37
38
|
if (!descriptor)
|
|
38
39
|
return [];
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
if (descriptor.modelRoster != null && descriptor.modelRoster.length > 0)
|
|
49
|
-
out.push("--host-models", JSON.stringify(descriptor.modelRoster));
|
|
50
|
-
if (descriptor.canDispatchSubagents !== undefined)
|
|
51
|
-
out.push(descriptor.canDispatchSubagents
|
|
52
|
-
? "--host-can-dispatch-subagents"
|
|
53
|
-
: "--no-host-can-dispatch-subagents");
|
|
54
|
-
// restrict/select parse via `getOptionalBooleanFlag` (the space-separated
|
|
55
|
-
// `--flag true|false` form that `getFlag` reads), unlike the bare / `--no-`
|
|
56
|
-
// `--host-can-dispatch-subagents`. Both default false, so re-emit only when true
|
|
57
|
-
// (absence resolves to false).
|
|
58
|
-
if (descriptor.canRestrictSubagentTools)
|
|
59
|
-
out.push("--host-can-restrict-subagent-tools", "true");
|
|
60
|
-
if (descriptor.canSelectSubagentModel)
|
|
61
|
-
out.push("--host-can-select-subagent-model", "true");
|
|
62
|
-
return out;
|
|
40
|
+
const selfHasField = !!descriptor.self &&
|
|
41
|
+
Object.values(descriptor.self).some((value) => value !== undefined);
|
|
42
|
+
const hasContent = selfHasField ||
|
|
43
|
+
(descriptor.sources != null && descriptor.sources.length > 0) ||
|
|
44
|
+
descriptor.auditor_id != null ||
|
|
45
|
+
descriptor.resolved_at != null;
|
|
46
|
+
if (!hasContent)
|
|
47
|
+
return [];
|
|
48
|
+
return ["--auditor", JSON.stringify(descriptor)];
|
|
63
49
|
}
|
|
64
|
-
export function nextStepCommand(root, artifactsDir,
|
|
50
|
+
export function nextStepCommand(root, artifactsDir, auditorDescriptor) {
|
|
65
51
|
return renderCommand([
|
|
66
52
|
...cliInvocationTokens(),
|
|
67
53
|
"next-step",
|
|
@@ -69,7 +55,7 @@ export function nextStepCommand(root, artifactsDir, hostDescriptor) {
|
|
|
69
55
|
root,
|
|
70
56
|
"--artifacts-dir",
|
|
71
57
|
artifactsDir,
|
|
72
|
-
...
|
|
58
|
+
...renderAuditorDescriptor(auditorDescriptor),
|
|
73
59
|
]);
|
|
74
60
|
}
|
|
75
61
|
export function mergeAndIngestCommand(artifactsDir, runId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/audit/cli/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,qBAAqB,EACrB,cAAc,EACd,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,GAGzB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;;;;;;GAOG;AACH,SAAS,mBAAmB;IAC1B,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC;IAC9C,IAAI,GAAG,EAAE,CAAC;QACR,IAAI,CAAC;YACH,MAAM,MAAM,GAAY,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACxC,IACE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;gBACrB,MAAM,CAAC,MAAM,GAAG,CAAC;gBACjB,MAAM,CAAC,KAAK,CAAC,CAAC,CAA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AA6H;QAC7H,sFAAsF;QACtF,4DAA4D;QAC5D,EAAE;QACF,4FAA4F;QAC5F,EAAE;QACF,mBAAmB;QACnB,EAAE;QACF,wBAAwB;QACxB,EAAE;QACF,KAAK,MAAM,CAAC,aAAa,EAAE;QAC3B,EAAE;QACF,YAAY,aAAa,EAAE;QAC3B,EAAE;QACF,aAAa,MAAM,CAAC,eAAe,EAAE;QACrC,EAAE;QACF,oEAAoE;QACpE,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,MAAc;IACpD,OAAO;QACL,sBAAsB;QACtB,EAAE;QACF,yDAAyD;QACzD,EAAE;QACF,wCAAwC;QACxC,EAAE;QACF,MAAM;QACN,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConfirmedPoolEntry, SourcePoolDisplayEntry } from "audit-tools/shared";
|
|
1
|
+
import type { ConfirmedPoolEntry, SourcePoolDisplayEntry, NewlyReachableBackend } from "audit-tools/shared";
|
|
2
2
|
/**
|
|
3
3
|
* Render the host-facing prompt for the interactive `provider_confirmation` step
|
|
4
4
|
* (Gate-0, cost-first routing — spec/cost-first-routing.md). Shows the priced,
|
|
@@ -8,10 +8,10 @@ import type { ConfirmedPoolEntry, SourcePoolDisplayEntry } from "audit-tools/sha
|
|
|
8
8
|
* suggestion verbatim) is what lets the run proceed — its presence is the
|
|
9
9
|
* "operator has acted" signal the gate consumes.
|
|
10
10
|
*
|
|
11
|
-
* The tool owns
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* capability flags
|
|
11
|
+
* The tool owns discovery + the cost annotation: the host supplies only ordering
|
|
12
|
+
* intent + its model roster, and the tool promotes that into both canonical
|
|
13
|
+
* artifacts. So this prompt never asks the host to hand-author prices or
|
|
14
|
+
* capability flags.
|
|
15
15
|
*/
|
|
16
16
|
export declare function renderProviderConfirmationPrompt(opts: {
|
|
17
17
|
/** The tool's suggested pool, already annotated with model_id/price/cost_order. */
|
|
@@ -29,5 +29,13 @@ export declare function renderProviderConfirmationPrompt(opts: {
|
|
|
29
29
|
inputPath: string;
|
|
30
30
|
/** The exact command to re-invoke once the input is written. */
|
|
31
31
|
continueCommand: string;
|
|
32
|
+
/**
|
|
33
|
+
* The G3 reconciliation delta: backends reachable now that the operator's prior
|
|
34
|
+
* confirmation never mentioned. Non-empty ⇒ this is a RE-confirmation and the
|
|
35
|
+
* prompt leads with the delta, so the operator answers the new question instead
|
|
36
|
+
* of re-reading a whole table they already approved. Empty/absent ⇒ the ordinary
|
|
37
|
+
* first-time gate.
|
|
38
|
+
*/
|
|
39
|
+
newlyReachable?: readonly NewlyReachableBackend[];
|
|
32
40
|
}): string;
|
|
33
41
|
//# sourceMappingURL=providerConfirmationStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providerConfirmationStep.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/providerConfirmationStep.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"providerConfirmationStep.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/providerConfirmationStep.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAG5B;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gCAAgC,CAAC,IAAI,EAAE;IACrD,mFAAmF;IACnF,YAAY,EAAE,kBAAkB,EAAE,CAAC;IACnC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACvC,2DAA2D;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,eAAe,EAAE,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;CACnD,GAAG,MAAM,CA0LT"}
|
|
@@ -8,10 +8,10 @@ import { PROVIDER_CONFIRMATION_INPUT_VERSION } from "audit-tools/shared";
|
|
|
8
8
|
* suggestion verbatim) is what lets the run proceed — its presence is the
|
|
9
9
|
* "operator has acted" signal the gate consumes.
|
|
10
10
|
*
|
|
11
|
-
* The tool owns
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* capability flags
|
|
11
|
+
* The tool owns discovery + the cost annotation: the host supplies only ordering
|
|
12
|
+
* intent + its model roster, and the tool promotes that into both canonical
|
|
13
|
+
* artifacts. So this prompt never asks the host to hand-author prices or
|
|
14
|
+
* capability flags.
|
|
15
15
|
*/
|
|
16
16
|
export function renderProviderConfirmationPrompt(opts) {
|
|
17
17
|
const sorted = [...opts.providerPool].sort((a, b) => (a.cost_order ?? Number.MAX_SAFE_INTEGER) - (b.cost_order ?? Number.MAX_SAFE_INTEGER));
|
|
@@ -46,7 +46,40 @@ export function renderProviderConfirmationPrompt(opts) {
|
|
|
46
46
|
const sourceRows = sourcePools.map((entry) => `| ${entry.id} | ${entry.provider} | ${entry.model ?? "—"} | ${sourcePriceCell(entry)} |`);
|
|
47
47
|
const hasLegacyOpenAiCompatible = sorted.some((e) => e.name === "openai-compatible");
|
|
48
48
|
const hasCodex = sorted.some((e) => e.name === "codex");
|
|
49
|
+
const newlyReachable = opts.newlyReachable ?? [];
|
|
49
50
|
return [
|
|
51
|
+
...(newlyReachable.length > 0
|
|
52
|
+
? [
|
|
53
|
+
"# Reconcile Newly-Reachable Backends (Gate-0)",
|
|
54
|
+
"",
|
|
55
|
+
"**This is a re-confirmation, not a fresh gate.** You already confirmed a",
|
|
56
|
+
"route decision for this session. Since then, these backends became",
|
|
57
|
+
"reachable and your decision says nothing about them — so they are NOT",
|
|
58
|
+
"dispatchable until you decide:",
|
|
59
|
+
"",
|
|
60
|
+
// The exclusion RULE is rendered beside each backend, not left for the
|
|
61
|
+
// operator to compose: the grammar is model-granular, so a hand-written
|
|
62
|
+
// rule is exactly where an operator (or a host relaying for them) drops
|
|
63
|
+
// the model and rules out the whole provider by accident.
|
|
64
|
+
...newlyReachable.map((b) => ` - **${b.key}** (provider: ${b.provider}` +
|
|
65
|
+
` — to keep it out: \`"exclude": ["${b.exclusion_pattern}"]\`)`),
|
|
66
|
+
"",
|
|
67
|
+
"Ask the user about **just these** — do not re-litigate the ordering they",
|
|
68
|
+
"already approved. To accept them into the pool at their suggested",
|
|
69
|
+
"positions, accept verbatim (write just the `schema_version`). To keep one",
|
|
70
|
+
"out, name its **exclusion rule** (shown beside it) in `exclude` — that",
|
|
71
|
+
"rules out exactly that backend, not its siblings.",
|
|
72
|
+
"",
|
|
73
|
+
"> Note: any submission clears this delta — the tool rebuilds the whole",
|
|
74
|
+
"> confirmation from your input. The list above tells you what changed; it",
|
|
75
|
+
"> is not a per-backend checklist the tool enforces.",
|
|
76
|
+
"",
|
|
77
|
+
"The full pool follows for reference.",
|
|
78
|
+
"",
|
|
79
|
+
"---",
|
|
80
|
+
"",
|
|
81
|
+
]
|
|
82
|
+
: []),
|
|
50
83
|
"# Confirm Provider Cost Ordering (Gate-0)",
|
|
51
84
|
"",
|
|
52
85
|
"Dispatch routes work to the cheapest capable provider first. Below is the",
|
|
@@ -115,7 +148,7 @@ export function renderProviderConfirmationPrompt(opts) {
|
|
|
115
148
|
"{",
|
|
116
149
|
` "schema_version": "${PROVIDER_CONFIRMATION_INPUT_VERSION}",`,
|
|
117
150
|
' "cost_order": ["<provider-or-model-key>", "..."],',
|
|
118
|
-
' "exclude": ["<provider-
|
|
151
|
+
' "exclude": ["<provider>:<model>", "<provider>", "<endpoint-host>"],',
|
|
119
152
|
' "include": ["<self-spawn-blocked provider to opt back in>"],',
|
|
120
153
|
' "host_models": [{ "model_id": "<your model id>", "tier": "frontier|capable|fast" }],',
|
|
121
154
|
' "dispatch_bias": 0',
|
|
@@ -131,8 +164,14 @@ export function renderProviderConfirmationPrompt(opts) {
|
|
|
131
164
|
"- `host_models` reports YOUR (the host agent's) model roster so those tiers are",
|
|
132
165
|
" priced from models.dev and confirmable here — otherwise they are priced only",
|
|
133
166
|
" at dispatch. Each reported `model_id` can appear in `cost_order`.",
|
|
134
|
-
"- `exclude` drops
|
|
135
|
-
"
|
|
167
|
+
"- `exclude` drops backends from the dispatchable pool. Each entry is a rule, at",
|
|
168
|
+
" whatever granularity you mean: `openai-compatible:gpt-oss-120b` rules out that",
|
|
169
|
+
" **model** (leaving the provider's other models routable — prefer this, you are",
|
|
170
|
+
" confirming model choices); a bare `codex` rules out the whole **provider**; a",
|
|
171
|
+
" bare `integrate.api.nvidia.com` (or `localhost:8000`) rules out every source at",
|
|
172
|
+
" that **endpoint host**. A rule that matches nothing is inert.",
|
|
173
|
+
" `include` opts a self-spawn-blocked provider back in (advanced — normally",
|
|
174
|
+
" leave it excluded).",
|
|
136
175
|
"- `dispatch_bias` (λ ∈ [0,1]) is the cost↔speed operating point: **0 (default) =",
|
|
137
176
|
" cheapest-first**; **1 = fastest-first** (route to the highest-throughput capable",
|
|
138
177
|
" pool regardless of price); values between blend the two. Capability is always a",
|
|
@@ -142,7 +181,7 @@ export function renderProviderConfirmationPrompt(opts) {
|
|
|
142
181
|
" endpoint via `openai_compatible.{base_url,model,api_key_env}`, or a CLI",
|
|
143
182
|
" backend via its `<name>.command`. A provider detected but self-spawn-blocked",
|
|
144
183
|
" can be re-included with `include`. Then re-run this step.",
|
|
145
|
-
"- The tool owns pricing,
|
|
184
|
+
"- The tool owns pricing, discovery, and the capability flags — you",
|
|
146
185
|
" supply only ordering intent + your model roster.",
|
|
147
186
|
"",
|
|
148
187
|
`Then run: ${opts.continueCommand}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providerConfirmationStep.js","sourceRoot":"","sources":["../../../src/audit/cli/providerConfirmationStep.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"providerConfirmationStep.js","sourceRoot":"","sources":["../../../src/audit/cli/providerConfirmationStep.ts"],"names":[],"mapp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D,EAAE;gBACF,2CAA2C;gBAC3C,2CAA2C;gBAC3C,GAAG,UAAU;gBACb,EAAE;gBACF,0EAA0E;gBAC1E,qEAAqE;gBACrE,EAAE;aACH;YACH,CAAC,CAAC,EAAE,CAAC;QACP,eAAe;QACf,EAAE;QACF,+EAA+E;QAC/E,wCAAwC;QACxC,EAAE;QACF,KAAK,IAAI,CAAC,SAAS,EAAE;QACrB,EAAE;QACF,iFAAiF;QACjF,kDAAkD;QAClD,EAAE;QACF,SAAS;QACT,GAAG;QACH,wBAAwB,mCAAmC,IAAI;QAC/D,qDAAqD;QACrD,uEAAuE;QACvE,gEAAgE;QAChE,wFAAwF;QACxF,sBAAsB;QACtB,GAAG;QACH,KAAK;QACL,EAAE;QACF,+EAA+E;QAC/E,gFAAgF;QAChF,+EAA+E;QAC/E,+EAA+E;QAC/E,2EAA2E;QAC3E,eAAe;QACf,iFAAiF;QACjF,gFAAgF;QAChF,qEAAqE;QACrE,iFAAiF;QACjF,kFAAkF;QAClF,kFAAkF;QAClF,iFAAiF;QACjF,mFAAmF;QACnF,iEAAiE;QACjE,6EAA6E;QAC7E,uBAAuB;QACvB,kFAAkF;QAClF,oFAAoF;QACpF,mFAAmF;QACnF,4CAA4C;QAC5C,gFAAgF;QAChF,gFAAgF;QAChF,2EAA2E;QAC3E,gFAAgF;QAChF,6DAA6D;QAC7D,oEAAoE;QACpE,oDAAoD;QACpD,EAAE;QACF,aAAa,IAAI,CAAC,eAAe,EAAE;QACnC,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotaCommand.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/quotaCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"quotaCommand.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/quotaCommand.ts"],"names":[],"mappings":"AAoBA,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsF5D"}
|
|
@@ -1,28 +1,34 @@
|
|
|
1
|
+
import { resolveSessionConfig } from "audit-tools/shared";
|
|
1
2
|
import { buildQuotaSource } from "audit-tools/shared/quota/compositeQuotaSource";
|
|
2
3
|
import { resolveFreshSessionProviderName } from "../providers/index.js";
|
|
3
4
|
import { loadSessionConfig } from "../supervisor/sessionConfig.js";
|
|
4
5
|
import { buildProviderModelKey, readQuotaStateOrDegrade, resolveLimits, resolveHostActiveSubagentLimit, getQuotaStatePath, lookupDiscoveredLimits, } from "../quota/index.js";
|
|
5
6
|
import { buildDispatchPool } from "./dispatch/quotaPool.js";
|
|
6
|
-
import { getArtifactsDir,
|
|
7
|
+
import { getArtifactsDir, getAuditorDescriptor, getExplicitProvider, getHostModel, } from "./args.js";
|
|
7
8
|
export async function cmdQuota(argv) {
|
|
8
9
|
const artifactsDir = getArtifactsDir(argv);
|
|
9
|
-
let
|
|
10
|
+
let intent;
|
|
10
11
|
try {
|
|
11
|
-
|
|
12
|
+
intent = await loadSessionConfig(artifactsDir);
|
|
12
13
|
}
|
|
13
14
|
catch (e) {
|
|
14
15
|
process.stderr.write(`[quota] session-config.json is invalid — using defaults. Error: ${e instanceof Error ? e.message : String(e)}\n`);
|
|
15
|
-
|
|
16
|
+
intent = {};
|
|
16
17
|
}
|
|
17
18
|
const explicitProvider = getExplicitProvider(argv);
|
|
18
19
|
const hostModel = getHostModel(argv);
|
|
20
|
+
// G2: driver handshake comes off the single `--auditor <json>` descriptor; resolve it
|
|
21
|
+
// over the repo INTENT so the quota preview reflects the descriptor's provider/sources.
|
|
22
|
+
const descriptor = getAuditorDescriptor(argv);
|
|
23
|
+
const sessionConfig = resolveSessionConfig(intent, descriptor);
|
|
24
|
+
const self = descriptor?.self ?? {};
|
|
19
25
|
const providerName = resolveFreshSessionProviderName(explicitProvider ?? (sessionConfig.provider === undefined ? "auto" : undefined), sessionConfig);
|
|
20
26
|
const providerModelKey = buildProviderModelKey(providerName, hostModel);
|
|
21
27
|
const { limits, source, confidence } = resolveLimits({ providerName, sessionConfig, hostModel });
|
|
22
28
|
const quotaState = await readQuotaStateOrDegrade("quota command");
|
|
23
29
|
const quotaStateEntry = quotaState.entries[providerModelKey] ?? null;
|
|
24
30
|
const hostConcurrencyLimit = resolveHostActiveSubagentLimit({
|
|
25
|
-
explicitLimit:
|
|
31
|
+
explicitLimit: self.max_active_subagents ?? null,
|
|
26
32
|
sessionConfig,
|
|
27
33
|
});
|
|
28
34
|
const quotaSource = buildQuotaSource();
|
|
@@ -38,11 +44,11 @@ export async function cmdQuota(argv) {
|
|
|
38
44
|
providerName,
|
|
39
45
|
hostModel,
|
|
40
46
|
queryLimits: undefined,
|
|
41
|
-
hostActiveSubagentLimit:
|
|
42
|
-
hostContextTokens:
|
|
43
|
-
hostOutputTokens:
|
|
44
|
-
hostModelRoster:
|
|
45
|
-
hostModelId:
|
|
47
|
+
hostActiveSubagentLimit: self.max_active_subagents ?? null,
|
|
48
|
+
hostContextTokens: self.context_tokens ?? null,
|
|
49
|
+
hostOutputTokens: self.output_tokens ?? null,
|
|
50
|
+
hostModelRoster: self.roster ?? null,
|
|
51
|
+
hostModelId: self.model_id ?? null,
|
|
46
52
|
});
|
|
47
53
|
console.log(JSON.stringify({
|
|
48
54
|
provider: providerName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotaCommand.js","sourceRoot":"","sources":["../../../src/audit/cli/quotaCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"quotaCommand.js","sourceRoot":"","sources":["../../../src/audit/cli/quotaCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA8C,MAAM,oBAAoB,CAAC;AACtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACjF,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gC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,CAAC,SAAS,CACZ;QACE,QAAQ,EAAE,YAAY;QACtB,KAAK,EAAE,SAAS;QAChB,kBAAkB,EAAE,gBAAgB;QACpC,eAAe,EAAE,MAAM;QACvB,UAAU;QACV,MAAM;QACN,sBAAsB,EAAE,oBAAoB;QAC5C,oEAAoE;QACpE,wEAAwE;QACxE,cAAc,EAAE,eAAe;YAC7B,CAAC,CAAC;gBACE,cAAc,EAAE,eAAe,CAAC,cAAc;gBAC9C,WAAW,EAAE,eAAe,CAAC,WAAW;gBACxC,qBAAqB,EAAE,eAAe,CAAC,qBAAqB,IAAI,CAAC;aAClE;YACH,CAAC,CAAC,IAAI;QACR,qBAAqB,EAAE,mBAAmB;QAC1C,iBAAiB,EAAE,qBAAqB;QACxC,gBAAgB,EAAE;YAChB,KAAK,EAAE,YAAY,CAAC,KAAK;YACzB,qBAAqB,EAAE,YAAY,CAAC,mBAAmB;YACvD,YAAY,EAAE,YAAY,CAAC,WAAW;SACvC;QACD,gBAAgB,EAAE,iBAAiB,EAAE;KACtC,EACD,IAAI,EACJ,CAAC,CACF,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HostModelRosterEntry } from "audit-tools/shared";
|
|
1
|
+
import type { HostModelRosterEntry, AuditorDescriptor } from "audit-tools/shared";
|
|
2
2
|
import type { ActiveReviewRun } from "../supervisor/operatorHandoff.js";
|
|
3
3
|
import { writeCurrentStep } from "./steps.js";
|
|
4
4
|
export declare function renderSemanticReviewStep(params: {
|
|
@@ -15,6 +15,16 @@ export declare function renderSemanticReviewStep(params: {
|
|
|
15
15
|
hostModelRoster?: HostModelRosterEntry[] | null;
|
|
16
16
|
/** Opaque model identity for the quota key when no model name resolves. */
|
|
17
17
|
hostModelId?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* G2: the RESOLVED per-auditor descriptor for this invocation (the same forward
|
|
20
|
+
* descriptor `nextStepCommand` rides on continue-commands) — its `self.provider` /
|
|
21
|
+
* launch blocks + `sources[]` are resolved over the disk-loaded repo INTENT below
|
|
22
|
+
* (`resolveSessionConfig`) so the host-review dispatch pool/provider come from the
|
|
23
|
+
* handshake, never the repo config. This descriptor param is why `persistHostProvider`
|
|
24
|
+
* is retired: the driver's provider rides here, not a disk re-read
|
|
25
|
+
* (spec/unified-dispatch-worker-model.md, [[capability-is-per-auditor-not-per-audit]]).
|
|
26
|
+
*/
|
|
27
|
+
descriptor: AuditorDescriptor;
|
|
18
28
|
hostCanRestrictSubagentTools: boolean;
|
|
19
29
|
hostCanSelectSubagentModel: boolean;
|
|
20
30
|
/** Which executor selected this step; controls prompt variant. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semanticReviewStep.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/semanticReviewStep.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAwB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"semanticReviewStep.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/semanticReviewStep.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAwB,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAExG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAKxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAmB9C,wBAAsB,wBAAwB,CAAC,MAAM,EAAE;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,EAAE,OAAO,CAAC;IACzB,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,0EAA0E;IAC1E,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,0EAA0E;IAC1E,eAAe,CAAC,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAC;IAChD,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;;;;;OAQG;IACH,UAAU,EAAE,iBAAiB,CAAC;IAC9B,4BAA4B,EAAE,OAAO,CAAC;IACtC,0BAA0B,EAAE,OAAO,CAAC;IACpC,kEAAkE;IAClE,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAkNxD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
|
-
import { classifyProvider, selectDispatchDriver, renderDispatchDriverInstruction, renderHostWallExplanation } from "audit-tools/shared";
|
|
2
|
+
import { resolveSessionConfig, classifyProvider, selectDispatchDriver, renderDispatchDriverInstruction, renderHostWallExplanation } from "audit-tools/shared";
|
|
3
3
|
import { loadSessionConfig } from "../supervisor/sessionConfig.js";
|
|
4
4
|
import { createFreshSessionProvider } from "../providers/index.js";
|
|
5
5
|
import { resolveHostDispatchProviderName } from "./rollingAuditDispatch.js";
|
|
@@ -53,7 +53,10 @@ export async function renderSemanticReviewStep(params) {
|
|
|
53
53
|
// the dispatch path run against an attacker-influenced config. Matches every
|
|
54
54
|
// sibling caller (advanceAuditCommand/nextStepCommand/prepareDispatchCommand/
|
|
55
55
|
// quotaCommand), which all let the error propagate.
|
|
56
|
-
|
|
56
|
+
// G2: resolve the per-auditor descriptor over the freshly-loaded (and re-validated,
|
|
57
|
+
// fail-closed) repo INTENT, so the host-review dispatch provider/pool below read the
|
|
58
|
+
// descriptor's `self.provider` + `sources[]`, never the repo config's dispatch fields.
|
|
59
|
+
const sessionConfig = resolveSessionConfig(await loadSessionConfig(artifactsDir), params.descriptor);
|
|
57
60
|
// The host-review dispatch pool is keyed to the CURRENT driver's identity, never
|
|
58
61
|
// an inherited headless-backend `sessionConfig.provider` (the founding capability-
|
|
59
62
|
// inheritance bug): a run started under `provider: codex` and resumed by a Claude
|
|
@@ -78,19 +81,12 @@ export async function renderSemanticReviewStep(params) {
|
|
|
78
81
|
inProcessMadeProgress: params.inProcessMadeProgress,
|
|
79
82
|
});
|
|
80
83
|
const mergeCommand = mergeAndIngestCommand(artifactsDir, activeReviewRun.run_id);
|
|
81
|
-
// The current driver's
|
|
82
|
-
// preserves this invocation's capability
|
|
83
|
-
//
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
canSelectSubagentModel: params.hostCanSelectSubagentModel,
|
|
88
|
-
maxActiveSubagents: params.hostMaxActiveSubagents,
|
|
89
|
-
contextTokens: params.hostContextTokens ?? null,
|
|
90
|
-
outputTokens: params.hostOutputTokens ?? null,
|
|
91
|
-
modelRoster: params.hostModelRoster ?? null,
|
|
92
|
-
modelId: params.hostModelId ?? null,
|
|
93
|
-
};
|
|
84
|
+
// The current driver's RESOLVED descriptor rides the continue-command so a bare
|
|
85
|
+
// re-invocation preserves this invocation's capability + provider + sources instead
|
|
86
|
+
// of falling back to the stored config (auditor-agnostic robustness — the founding-bug
|
|
87
|
+
// fix). It is the same descriptor resolved over intent above, so what dispatched and
|
|
88
|
+
// what a resume re-resolves cannot drift.
|
|
89
|
+
const hostDescriptor = params.descriptor;
|
|
94
90
|
const continueCommand = nextStepCommand(root, artifactsDir, hostDescriptor);
|
|
95
91
|
// Increment B — host-path quota wall. When admission granted zero OR a cooldown is
|
|
96
92
|
// active, `prepareDispatchArtifacts` recorded the resumable pause on the run's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semanticReviewStep.js","sourceRoot":"","sources":["../../../src/audit/cli/semanticReviewStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,+B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2B;YAC7D,CAAC,CAAC,2BAA2B,CAAC;gBAC1B,IAAI;gBACJ,YAAY;gBACZ,KAAK,EAAE,eAAe,CAAC,MAAM;gBAC7B,gBAAgB,EAAE,QAAQ,CAAC,kBAAkB;gBAC7C,iBAAiB,EAAE,QAAQ,CAAC,mBAAmB;gBAC/C,4BAA4B,EAAE,MAAM,CAAC,4BAA4B;gBACjE,0BAA0B,EAAE,MAAM,CAAC,0BAA0B;gBAC7D,iBAAiB;gBACjB,cAAc;aACf,CAAC;YACJ,CAAC,CAAC,0BAA0B,CAAC;gBACzB,IAAI;gBACJ,YAAY;gBACZ,eAAe;gBACf,gBAAgB,EAAE,QAAQ,CAAC,kBAAkB;gBAC7C,iBAAiB,EAAE,QAAQ,CAAC,mBAAmB;gBAC/C,4BAA4B,EAAE,MAAM,CAAC,4BAA4B;gBACjE,0BAA0B,EAAE,MAAM,CAAC,0BAA0B;gBAC7D,iBAAiB;gBACjB,cAAc;aACf,CAAC;QACN,MAAM,EAAE;YACN,UAAU,EAAE;gBACV,QAAQ,CAAC,kBAAkB;gBAC3B,GAAG,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;aACxE;YACD,WAAW,EAAE,EAAE;SAChB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateCommand.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/validateCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validateCommand.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/validateCommand.ts"],"names":[],"mappings":"AAcA,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA6D/D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { loadArtifactBundle } from "../io/artifacts.js";
|
|
2
|
-
import { prefixValidationIssues } from "audit-tools/shared";
|
|
2
|
+
import { prefixValidationIssues, validateRepoSessionIntent } from "audit-tools/shared";
|
|
3
3
|
import { validateArtifactBundle } from "../validation/artifacts.js";
|
|
4
|
-
import { validateConfiguredProviderEnvironment
|
|
4
|
+
import { validateConfiguredProviderEnvironment } from "../validation/sessionConfig.js";
|
|
5
5
|
import { resolveFreshSessionProviderName, } from "../providers/index.js";
|
|
6
6
|
import { getSessionConfigPath, readSessionConfigFile, } from "../supervisor/sessionConfig.js";
|
|
7
7
|
import { getArtifactsDir } from "./args.js";
|
|
@@ -13,7 +13,7 @@ export async function cmdValidate(argv) {
|
|
|
13
13
|
const artifactIssues = validateArtifactBundle(bundle);
|
|
14
14
|
const sessionConfigIssues = rawSessionConfig === undefined
|
|
15
15
|
? []
|
|
16
|
-
: prefixValidationIssues("session_config",
|
|
16
|
+
: prefixValidationIssues("session_config", validateRepoSessionIntent(rawSessionConfig));
|
|
17
17
|
// Only `error`-severity config issues make the config unusable — a
|
|
18
18
|
// `warning` (e.g. dangerously_skip_permissions=true) is surfaced but must not
|
|
19
19
|
// suppress provider probing/resolution or fail the command.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateCommand.js","sourceRoot":"","sources":["../../../src/audit/cli/validateCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"validateCommand.js","sourceRoot":"","sources":["../../../src/audit/cli/validateCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,qCAAqC,EAAE,MAAM,gCAAgC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C,CAAC,uBAAuB,GAAG,CAAC;YAC3B,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,+BAA+B,CAC7B,SAAS,EACT,gBAAiC,CAClC,CAAC;IACV,OAAO,CAAC,GAAG,CACT,IAAI,CAAC,SAAS,CACZ;QACE,aAAa,EAAE,YAAY;QAC3B,mBAAmB,EAAE,iBAAiB;QACtC,sBAAsB,EAAE,gBAAgB,KAAK,SAAS;QACtD,iBAAiB,EAAE,gBAAgB;QACnC,oBAAoB,EAAE,cAAc,CAAC,MAAM;QAC3C,0BAA0B,EACxB,mBAAmB,CAAC,MAAM,GAAG,cAAc,CAAC,MAAM;QACpD,WAAW,EAAE,MAAM,CAAC,MAAM;QAC1B,MAAM;KACP,EACD,IAAI,EACJ,CAAC,CACF,CACF,CAAC;IACF,yEAAyE;IACzE,0EAA0E;IAC1E,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,MAAM,CAAC;IAC/E,OAAO,CAAC,QAAQ,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -58,12 +58,12 @@ export declare const AuditCodeResponseSchema: z.ZodObject<{
|
|
|
58
58
|
suggested_path: z.ZodString;
|
|
59
59
|
description: z.ZodString;
|
|
60
60
|
}, "strict", z.ZodTypeAny, {
|
|
61
|
-
flag: "--batch-results" | "--results" | "--updates" | "--external-analyzer-results";
|
|
62
61
|
description: string;
|
|
62
|
+
flag: "--batch-results" | "--results" | "--updates" | "--external-analyzer-results";
|
|
63
63
|
suggested_path: string;
|
|
64
64
|
}, {
|
|
65
|
-
flag: "--batch-results" | "--results" | "--updates" | "--external-analyzer-results";
|
|
66
65
|
description: string;
|
|
66
|
+
flag: "--batch-results" | "--results" | "--updates" | "--external-analyzer-results";
|
|
67
67
|
suggested_path: string;
|
|
68
68
|
}>, "many">;
|
|
69
69
|
suggested_commands: z.ZodArray<z.ZodString, "many">;
|
|
@@ -150,8 +150,8 @@ export declare const AuditCodeResponseSchema: z.ZodObject<{
|
|
|
150
150
|
};
|
|
151
151
|
pending_obligations: string[];
|
|
152
152
|
suggested_inputs: {
|
|
153
|
-
flag: "--batch-results" | "--results" | "--updates" | "--external-analyzer-results";
|
|
154
153
|
description: string;
|
|
154
|
+
flag: "--batch-results" | "--results" | "--updates" | "--external-analyzer-results";
|
|
155
155
|
suggested_path: string;
|
|
156
156
|
}[];
|
|
157
157
|
suggested_commands: string[];
|
|
@@ -187,8 +187,8 @@ export declare const AuditCodeResponseSchema: z.ZodObject<{
|
|
|
187
187
|
};
|
|
188
188
|
pending_obligations: string[];
|
|
189
189
|
suggested_inputs: {
|
|
190
|
-
flag: "--batch-results" | "--results" | "--updates" | "--external-analyzer-results";
|
|
191
190
|
description: string;
|
|
191
|
+
flag: "--batch-results" | "--results" | "--updates" | "--external-analyzer-results";
|
|
192
192
|
suggested_path: string;
|
|
193
193
|
}[];
|
|
194
194
|
suggested_commands: string[];
|
|
@@ -244,8 +244,8 @@ export declare const AuditCodeResponseSchema: z.ZodObject<{
|
|
|
244
244
|
};
|
|
245
245
|
pending_obligations: string[];
|
|
246
246
|
suggested_inputs: {
|
|
247
|
-
flag: "--batch-results" | "--results" | "--updates" | "--external-analyzer-results";
|
|
248
247
|
description: string;
|
|
248
|
+
flag: "--batch-results" | "--results" | "--updates" | "--external-analyzer-results";
|
|
249
249
|
suggested_path: string;
|
|
250
250
|
}[];
|
|
251
251
|
suggested_commands: string[];
|
|
@@ -301,8 +301,8 @@ export declare const AuditCodeResponseSchema: z.ZodObject<{
|
|
|
301
301
|
};
|
|
302
302
|
pending_obligations: string[];
|
|
303
303
|
suggested_inputs: {
|
|
304
|
-
flag: "--batch-results" | "--results" | "--updates" | "--external-analyzer-results";
|
|
305
304
|
description: string;
|
|
305
|
+
flag: "--batch-results" | "--results" | "--updates" | "--external-analyzer-results";
|
|
306
306
|
suggested_path: string;
|
|
307
307
|
}[];
|
|
308
308
|
suggested_commands: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advance.d.ts","sourceRoot":"","sources":["../../../src/audit/orchestrator/advance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAuBzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEjF,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"advance.d.ts","sourceRoot":"","sources":["../../../src/audit/orchestrator/advance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAuBzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEjF,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AA+ajF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,cAAc,EACtB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,kBAAkB,CAAC,CA4F7B"}
|