agent-inspect 6.17.6 → 6.17.7
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 +8 -0
- package/README.md +1 -1
- package/docs/API.md +1 -1
- package/docs/CLI.md +2 -2
- package/docs/GETTING-STARTED.md +2 -1
- package/docs/SAFE-TRACE-SHARING.md +5 -1
- package/package.json +1 -1
- package/packages/cli/dist/{chunk-GOHYSE7W.mjs → chunk-25LUDS4T.mjs} +30 -25
- package/packages/cli/dist/chunk-25LUDS4T.mjs.map +1 -0
- package/packages/cli/dist/index.cjs +72 -25
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +47 -5
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/cli/dist/{src-OYGG7QAZ.mjs → src-2FS6BLR7.mjs} +3 -3
- package/packages/cli/dist/{src-OYGG7QAZ.mjs.map → src-2FS6BLR7.mjs.map} +1 -1
- package/packages/core/dist/advanced.cjs +23 -22
- package/packages/core/dist/advanced.cjs.map +1 -1
- package/packages/core/dist/advanced.mjs +24 -23
- package/packages/core/dist/advanced.mjs.map +1 -1
- package/packages/core/dist/checks.cjs +5 -1
- package/packages/core/dist/checks.cjs.map +1 -1
- package/packages/core/dist/checks.mjs +1 -1
- package/packages/core/dist/{chunk-DIZPIPY2.mjs → chunk-LQC7IED3.mjs} +7 -3
- package/packages/core/dist/chunk-LQC7IED3.mjs.map +1 -0
- package/packages/cli/dist/chunk-GOHYSE7W.mjs.map +0 -1
- package/packages/core/dist/chunk-DIZPIPY2.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { runTraceChecks, createRunStatusRule, createToolUsageRule, createRunDurationRule, createLlmUsageRule, createObservedOutcomeRule } from './chunk-
|
|
1
|
+
import { runTraceChecks, createRunStatusRule, createToolUsageRule, createRunDurationRule, createLlmUsageRule, createObservedOutcomeRule } from './chunk-LQC7IED3.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 { buildRunTimeline, filterTraces, extractMetadata, buildRunSummary } from './chunk-SGL4JGCD.mjs';
|
|
4
4
|
export { buildRunSummary, buildRunTimeline, buildRunWhatSummary, buildTraceStats, extractMetadata, filterTraces, formatStepLabel, renderRunWhat, renderTimeline, renderTraceStats } from './chunk-SGL4JGCD.mjs';
|
|
@@ -452,29 +452,30 @@ async function searchTraces(metas, options) {
|
|
|
452
452
|
}
|
|
453
453
|
function matchRunLevel(m, opts) {
|
|
454
454
|
if (opts.stepTypeFilter || opts.toolQuery) return [];
|
|
455
|
-
|
|
455
|
+
if (opts.statusFilter && m.status !== opts.statusFilter) return [];
|
|
456
|
+
if (opts.nameQuery && !nameMatches(m.name ?? m.runId, opts.nameQuery)) {
|
|
457
|
+
return [];
|
|
458
|
+
}
|
|
459
|
+
if (opts.durationFilter && !durationMatches(m.durationMs, opts.durationFilter)) {
|
|
460
|
+
return [];
|
|
461
|
+
}
|
|
456
462
|
const fields = [];
|
|
457
|
-
if (opts.statusFilter
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
if (
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
matchReason: `run match: ${fields.join(", ")}`,
|
|
474
|
-
matchedFields: fields,
|
|
475
|
-
filePath: m.filePath
|
|
476
|
-
});
|
|
477
|
-
return out;
|
|
463
|
+
if (opts.statusFilter) fields.push("run.status");
|
|
464
|
+
if (opts.nameQuery) fields.push("run.name");
|
|
465
|
+
if (opts.durationFilter) fields.push("run.durationMs");
|
|
466
|
+
if (fields.length === 0) return [];
|
|
467
|
+
return [
|
|
468
|
+
{
|
|
469
|
+
runId: m.runId,
|
|
470
|
+
runName: m.name,
|
|
471
|
+
runStatus: m.status,
|
|
472
|
+
timestamp: m.startedAt,
|
|
473
|
+
durationMs: m.durationMs,
|
|
474
|
+
matchReason: `run match: ${fields.join(", ")}`,
|
|
475
|
+
matchedFields: fields,
|
|
476
|
+
filePath: m.filePath
|
|
477
|
+
}
|
|
478
|
+
];
|
|
478
479
|
}
|
|
479
480
|
function matchStepLevel(m, events, opts) {
|
|
480
481
|
const out = [];
|