agent-inspect 6.8.0 → 6.9.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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/docs/CLI.md +10 -3
- package/package.json +1 -1
- package/packages/cli/dist/{chunk-TO4VENHV.mjs → chunk-WQ5XMFH2.mjs} +109 -17
- package/packages/cli/dist/chunk-WQ5XMFH2.mjs.map +1 -0
- package/packages/cli/dist/index.cjs +357 -66
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +252 -53
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/cli/dist/{src-Z5W27YCW.mjs → src-C4EUHTER.mjs} +3 -3
- package/packages/cli/dist/{src-Z5W27YCW.mjs.map → src-C4EUHTER.mjs.map} +1 -1
- package/packages/core/dist/advanced.cjs +15 -6
- package/packages/core/dist/advanced.cjs.map +1 -1
- package/packages/core/dist/advanced.d.cts +4 -1
- package/packages/core/dist/advanced.d.ts +4 -1
- package/packages/core/dist/advanced.mjs +3 -2
- package/packages/core/dist/advanced.mjs.map +1 -1
- package/packages/core/dist/checks.cjs +105 -14
- package/packages/core/dist/checks.cjs.map +1 -1
- package/packages/core/dist/checks.d.cts +2 -2
- package/packages/core/dist/checks.d.ts +2 -2
- package/packages/core/dist/checks.mjs +1 -1
- package/packages/core/dist/{chunk-EQVXDGGU.mjs → chunk-QT6CQ2XA.mjs} +107 -16
- package/packages/core/dist/chunk-QT6CQ2XA.mjs.map +1 -0
- package/packages/core/dist/{index-BblJEdYZ.d.ts → index-BO7l0iAe.d.ts} +44 -1
- package/packages/core/dist/{index-DyKk7iR9.d.cts → index-mdFcxSOR.d.cts} +44 -1
- package/packages/cli/dist/chunk-TO4VENHV.mjs.map +0 -1
- package/packages/core/dist/chunk-EQVXDGGU.mjs.map +0 -1
|
@@ -7,7 +7,7 @@ import { P as PersistedInspectEvent } from './persisted-inspect-event-d-mSP8kd.c
|
|
|
7
7
|
import { Stats } from 'node:fs';
|
|
8
8
|
import { b as ObservedOutcome } from './types-B562HgN_.cjs';
|
|
9
9
|
export { O as ObservedOutcomeStatus } from './types-B562HgN_.cjs';
|
|
10
|
-
import { a as TraceCheckResult,
|
|
10
|
+
import { a as TraceCheckResult, H as TraceCheckStatus } from './index-mdFcxSOR.cjs';
|
|
11
11
|
import './writers.cjs';
|
|
12
12
|
import './log-config-BG1WmWf2.cjs';
|
|
13
13
|
import './readers.cjs';
|
|
@@ -680,7 +680,10 @@ interface BundleRedactionReport {
|
|
|
680
680
|
}
|
|
681
681
|
interface BundleCheckRunResult {
|
|
682
682
|
runId: string;
|
|
683
|
+
/** Artifact (redacted) assessment — controls share-safe gating. */
|
|
683
684
|
status: BundleSafeStatus;
|
|
685
|
+
/** Source-trace assessment (informational; may be UNSAFE when artifact is SAFE). */
|
|
686
|
+
sourceStatus?: BundleSafeStatus;
|
|
684
687
|
errors: number;
|
|
685
688
|
warnings: number;
|
|
686
689
|
findings: number;
|
|
@@ -7,7 +7,7 @@ import { P as PersistedInspectEvent } from './persisted-inspect-event-ChE7pGb7.j
|
|
|
7
7
|
import { Stats } from 'node:fs';
|
|
8
8
|
import { b as ObservedOutcome } from './types-B562HgN_.js';
|
|
9
9
|
export { O as ObservedOutcomeStatus } from './types-B562HgN_.js';
|
|
10
|
-
import { a as TraceCheckResult,
|
|
10
|
+
import { a as TraceCheckResult, H as TraceCheckStatus } from './index-BO7l0iAe.js';
|
|
11
11
|
import './writers.js';
|
|
12
12
|
import './log-config-Ck0aT_Ou.js';
|
|
13
13
|
import './readers.js';
|
|
@@ -680,7 +680,10 @@ interface BundleRedactionReport {
|
|
|
680
680
|
}
|
|
681
681
|
interface BundleCheckRunResult {
|
|
682
682
|
runId: string;
|
|
683
|
+
/** Artifact (redacted) assessment — controls share-safe gating. */
|
|
683
684
|
status: BundleSafeStatus;
|
|
685
|
+
/** Source-trace assessment (informational; may be UNSAFE when artifact is SAFE). */
|
|
686
|
+
sourceStatus?: BundleSafeStatus;
|
|
684
687
|
errors: number;
|
|
685
688
|
warnings: number;
|
|
686
689
|
findings: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { runTraceChecks, createRunStatusRule, createToolUsageRule, createRunDurationRule, createLlmUsageRule, createObservedOutcomeRule } from './chunk-
|
|
1
|
+
import { runTraceChecks, createRunStatusRule, createToolUsageRule, createRunDurationRule, createLlmUsageRule, createObservedOutcomeRule } from './chunk-QT6CQ2XA.mjs';
|
|
2
2
|
export { MAX_TERMINAL_DEPTH, MAX_TERMINAL_NAME_LENGTH, TERMINAL_INDENT, TraceDirectory, createInspector, createInspectorRuntime, formatTerminalName, getCurrentContext, getCurrentCorrelationMetadata, getCurrentDepth, getCurrentRunId, getCurrentRunName, getCurrentStepId, getIndent, getParentStepId, getTraceDirFromContext, getTraceSafetyFromContext, hasActiveContext, isAgentInspectEnabled, isSilentContext, maybeInspectRun, printError, printFailedAt, printRunComplete, printRunStart, printStepComplete, printStepStart, renderErrorLine, renderRunSummary, renderStepLine, resolveTraceDir, runWithContext, runWithStepContext } from './chunk-ZWA5RWMV.mjs';
|
|
3
3
|
import { filterTraces, extractMetadata, buildRunSummary } from './chunk-KDDU2R5P.mjs';
|
|
4
4
|
export { buildRunSummary, buildRunTimeline, buildRunWhatSummary, buildTraceStats, extractMetadata, filterTraces, renderRunWhat, renderTimeline, renderTraceStats } from './chunk-KDDU2R5P.mjs';
|
|
@@ -1408,8 +1408,9 @@ function buildBundleSummaryMarkdown(parts) {
|
|
|
1408
1408
|
""
|
|
1409
1409
|
];
|
|
1410
1410
|
for (const run of checks.runs) {
|
|
1411
|
+
const source = run.sourceStatus !== void 0 && run.sourceStatus !== run.status ? `; source ${run.sourceStatus}` : "";
|
|
1411
1412
|
lines.push(
|
|
1412
|
-
`- \`${run.runId}\`: ${run.status} (${run.findings} finding(s), ${run.errors} error(s), ${run.warnings} warning(s))`
|
|
1413
|
+
`- \`${run.runId}\`: artifact ${run.status}${source} (${run.findings} finding(s), ${run.errors} error(s), ${run.warnings} warning(s))`
|
|
1413
1414
|
);
|
|
1414
1415
|
}
|
|
1415
1416
|
lines.push("", "## Redaction", "", `Total findings: ${redaction.totalFindings}`, "");
|