audit-tools 0.32.42 → 0.32.43
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/rollingAuditDispatch.d.ts.map +1 -1
- package/dist/audit/cli/rollingAuditDispatch.js +21 -1
- package/dist/audit/cli/rollingAuditDispatch.js.map +1 -1
- package/dist/audit/cli/scoreTokensCommand.d.ts +18 -0
- package/dist/audit/cli/scoreTokensCommand.d.ts.map +1 -0
- package/dist/audit/cli/scoreTokensCommand.js +130 -0
- package/dist/audit/cli/scoreTokensCommand.js.map +1 -0
- package/dist/audit/cli.d.ts.map +1 -1
- package/dist/audit/cli.js +5 -1
- package/dist/audit/cli.js.map +1 -1
- package/dist/audit/io/tokenUsageLedger.d.ts +57 -0
- package/dist/audit/io/tokenUsageLedger.d.ts.map +1 -0
- package/dist/audit/io/tokenUsageLedger.js +52 -0
- package/dist/audit/io/tokenUsageLedger.js.map +1 -0
- package/dist/audit/reporting/scoreTokens.d.ts +112 -0
- package/dist/audit/reporting/scoreTokens.d.ts.map +1 -0
- package/dist/audit/reporting/scoreTokens.js +195 -0
- package/dist/audit/reporting/scoreTokens.js.map +1 -0
- package/dist/remediate/contractPipeline/counterexampleFingerprint.d.ts +27 -0
- package/dist/remediate/contractPipeline/counterexampleFingerprint.d.ts.map +1 -0
- package/dist/remediate/contractPipeline/counterexampleFingerprint.js +37 -0
- package/dist/remediate/contractPipeline/counterexampleFingerprint.js.map +1 -0
- package/dist/remediate/index.d.ts +34 -0
- package/dist/remediate/index.d.ts.map +1 -1
- package/dist/remediate/index.js +92 -26
- package/dist/remediate/index.js.map +1 -1
- package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipeline.js +35 -4
- package/dist/remediate/steps/contractPipeline.js.map +1 -1
- package/dist/remediate/steps/contractPipelinePrompts.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipelinePrompts.js +1 -1
- package/dist/remediate/steps/contractPipelinePrompts.js.map +1 -1
- package/dist/remediate/steps/dispatch/acceptNode.d.ts +18 -0
- package/dist/remediate/steps/dispatch/acceptNode.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/acceptNode.js +26 -0
- package/dist/remediate/steps/dispatch/acceptNode.js.map +1 -1
- package/dist/remediate/steps/rollingSession.d.ts.map +1 -1
- package/dist/remediate/steps/rollingSession.js +21 -4
- package/dist/remediate/steps/rollingSession.js.map +1 -1
- package/dist/remediate/validation/artifacts.d.ts.map +1 -1
- package/dist/remediate/validation/artifacts.js +15 -26
- package/dist/remediate/validation/artifacts.js.map +1 -1
- package/dist/remediate/validation/contractPipeline.d.ts +1 -1
- package/dist/remediate/validation/contractPipeline.d.ts.map +1 -1
- package/dist/remediate/validation/contractPipeline.js +1 -1
- package/dist/remediate/validation/contractPipeline.js.map +1 -1
- package/dist/remediate/validation/contractPipelineGates.d.ts +52 -0
- package/dist/remediate/validation/contractPipelineGates.d.ts.map +1 -1
- package/dist/remediate/validation/contractPipelineGates.js +61 -0
- package/dist/remediate/validation/contractPipelineGates.js.map +1 -1
- package/dist/shared/dispatch/rollingDispatch.d.ts +15 -0
- package/dist/shared/dispatch/rollingDispatch.d.ts.map +1 -1
- package/dist/shared/dispatch/rollingDispatch.js.map +1 -1
- package/dist/shared/providers/openAiCompatibleProvider.d.ts +29 -0
- package/dist/shared/providers/openAiCompatibleProvider.d.ts.map +1 -1
- package/dist/shared/providers/openAiCompatibleProvider.js +60 -0
- package/dist/shared/providers/openAiCompatibleProvider.js.map +1 -1
- package/dist/shared/providers/types.d.ts +19 -0
- package/dist/shared/providers/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/wrapper/audit-code-wrapper-lib.mjs +15 -39
|
@@ -245,21 +245,12 @@ export async function runAuditCodeWrapper({
|
|
|
245
245
|
return;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
await runDistCommand('validate-results', argv.slice(1));
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
if (argv[0] === 'explain-task') {
|
|
259
|
-
await runDistCommand('explain-task', argv.slice(1));
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
|
|
248
|
+
// Commands that need special wrapper handling stay explicit:
|
|
249
|
+
// - `mcp` runs INLINE (dist/index.js's import side effect would double-start
|
|
250
|
+
// the command; only dist/cli.js's runCli export is safe to import here).
|
|
251
|
+
// - the artifact-dir-bootstrapping commands pass { ensureArtifactsDir: true }
|
|
252
|
+
// because they may be the FIRST call in a fresh repo and must create the
|
|
253
|
+
// run directory before dist reads it.
|
|
263
254
|
if (argv[0] === 'mcp') {
|
|
264
255
|
await runDistCommandInline('mcp', argv.slice(1));
|
|
265
256
|
return;
|
|
@@ -270,31 +261,11 @@ export async function runAuditCodeWrapper({
|
|
|
270
261
|
return;
|
|
271
262
|
}
|
|
272
263
|
|
|
273
|
-
if (argv[0] === 'prepare-dispatch') {
|
|
274
|
-
await runDistCommand('prepare-dispatch', argv.slice(1));
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
if (argv[0] === 'validate-result') {
|
|
279
|
-
await runDistCommand('validate-result', argv.slice(1));
|
|
280
|
-
return;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
if (argv[0] === 'cleanup') {
|
|
284
|
-
await runDistCommand('cleanup', argv.slice(1));
|
|
285
|
-
return;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
264
|
if (argv[0] === 'quota') {
|
|
289
265
|
await runDistCommand('quota', argv.slice(1), { ensureArtifactsDir: true });
|
|
290
266
|
return;
|
|
291
267
|
}
|
|
292
268
|
|
|
293
|
-
if (argv[0] === 'submit-packet') {
|
|
294
|
-
await runDistCommand('submit-packet', argv.slice(1));
|
|
295
|
-
return;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
269
|
if (argv[0] === 'merge-and-ingest') {
|
|
299
270
|
await runDistCommand('merge-and-ingest', argv.slice(1), { ensureArtifactsDir: true });
|
|
300
271
|
return;
|
|
@@ -307,13 +278,18 @@ export async function runAuditCodeWrapper({
|
|
|
307
278
|
|
|
308
279
|
// No implicit default command: the audit advances one bounded step per
|
|
309
280
|
// invocation via `next-step` (conversation-first). A bare invocation prints
|
|
310
|
-
// usage
|
|
311
|
-
// something else.
|
|
281
|
+
// usage.
|
|
312
282
|
if (argv.length === 0) {
|
|
313
283
|
printHelp({ usageName, preferredEntrypoint });
|
|
314
284
|
return;
|
|
315
285
|
}
|
|
316
286
|
|
|
317
|
-
|
|
318
|
-
|
|
287
|
+
// Every other command is forwarded verbatim to the dist CLI, which is the
|
|
288
|
+
// SINGLE SOURCE OF TRUTH for the command set. This makes wrapper/CLI drift
|
|
289
|
+
// structurally impossible: any command `src/audit/cli.ts` handles is reachable
|
|
290
|
+
// through the packaged bin automatically — no per-command wrapper branch to
|
|
291
|
+
// forget (the `cleanup` gap that motivated this) — and an unknown command
|
|
292
|
+
// gets dist's authoritative "Unknown command" + available-commands list
|
|
293
|
+
// (exit 1), never a wrapper-local list that can fall out of sync.
|
|
294
|
+
await runDistCommand(argv[0], argv.slice(1));
|
|
319
295
|
}
|