agent-inspect 6.14.2 → 6.15.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 +8 -6
- package/README.md +1 -1
- package/docs/API.md +19 -3
- package/package.json +1 -1
- package/packages/cli/dist/{chunk-AACUXCHT.mjs → chunk-LFSBMUCD.mjs} +115 -10
- package/packages/cli/dist/chunk-LFSBMUCD.mjs.map +1 -0
- package/packages/cli/dist/index.cjs +126 -10
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +4 -4
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/cli/dist/{src-ABTS4GO4.mjs → src-5J2HPOJ3.mjs} +3 -3
- package/packages/cli/dist/{src-ABTS4GO4.mjs.map → src-5J2HPOJ3.mjs.map} +1 -1
- package/packages/core/dist/advanced.cjs +114 -7
- package/packages/core/dist/advanced.cjs.map +1 -1
- package/packages/core/dist/advanced.d.cts +2 -2
- package/packages/core/dist/advanced.d.ts +2 -2
- package/packages/core/dist/advanced.mjs +3 -2
- package/packages/core/dist/advanced.mjs.map +1 -1
- package/packages/core/dist/checks.cjs +115 -6
- package/packages/core/dist/checks.cjs.map +1 -1
- package/packages/core/dist/checks.d.cts +16 -6
- package/packages/core/dist/checks.d.ts +16 -6
- package/packages/core/dist/checks.mjs +2 -1
- package/packages/core/dist/chunk-FWK3Q3OJ.mjs +56 -0
- package/packages/core/dist/chunk-FWK3Q3OJ.mjs.map +1 -0
- package/packages/core/dist/{chunk-5N2OBM7S.mjs → chunk-HT54OLPE.mjs} +53 -6
- package/packages/core/dist/chunk-HT54OLPE.mjs.map +1 -0
- package/packages/core/dist/{chunk-BHMXLDLK.mjs → chunk-NF4ZHNTC.mjs} +63 -9
- package/packages/core/dist/chunk-NF4ZHNTC.mjs.map +1 -0
- package/packages/core/dist/index-B259NKkH.d.cts +102 -0
- package/packages/core/dist/index-B9ZGvUVL.d.ts +102 -0
- package/packages/core/dist/{index-D9HBequ_.d.ts → index-BsCcOKxy.d.ts} +1 -1
- package/packages/core/dist/{index-BY6XZ5aG.d.cts → index-Xk9X-yjY.d.cts} +1 -1
- package/packages/core/dist/readers.cjs +108 -3
- package/packages/core/dist/readers.cjs.map +1 -1
- package/packages/core/dist/readers.d.cts +27 -78
- package/packages/core/dist/readers.d.ts +27 -78
- package/packages/core/dist/readers.mjs +2 -1
- package/packages/cli/dist/chunk-AACUXCHT.mjs.map +0 -1
- package/packages/core/dist/chunk-5N2OBM7S.mjs.map +0 -1
- package/packages/core/dist/chunk-BHMXLDLK.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 6.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e70e3be: LangGraph fidelity classes A–E and persisted-trace developer APIs: relationship conformance, scaffolding diagnostics, openTraceFile/Directory/Text, TraceFacts/TraceContract conveniences, and stable AI\_\* remediation codes. No schema break; no new packages; no default network.
|
|
8
|
+
|
|
3
9
|
## 6.14.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -14,13 +20,9 @@
|
|
|
14
20
|
|
|
15
21
|
## Unreleased
|
|
16
22
|
|
|
17
|
-
###
|
|
18
|
-
|
|
19
|
-
- Swarm relationship and safety precision (6.14.2): parent resolution before child index registration, self-parent capture/logical defenses, cycle-safe trees, contextual credential-key classification (token config fields such as `ls_max_tokens` are not credentials), and moderate/deep-swarm regression fixtures with packed check→gate→bundle→verify E2E.
|
|
20
|
-
|
|
21
|
-
### Documentation
|
|
23
|
+
### Minor
|
|
22
24
|
|
|
23
|
-
-
|
|
25
|
+
- LangGraph fidelity classes A–E and persisted-trace developer APIs (6.15.0): relationship conformance corpus, ambiguous scaffolding diagnostics, `openTraceFile` / `openTraceDirectory` / `openTraceText`, `buildTraceFacts(TraceReadResult)`, `evaluateTraceContractRead`, stable `AI_*` programmatic diagnostics with remediation, ESM/CJS quickstarts, and A–E cross-surface semantic parity. No schema break; no new packages; no default network.
|
|
24
26
|
|
|
25
27
|
## 6.14.0
|
|
26
28
|
|
package/README.md
CHANGED
|
@@ -157,7 +157,7 @@ Details: [Safe sharing](https://github.com/rajudandigam/agent-inspect/blob/main/
|
|
|
157
157
|
|
|
158
158
|
## Project status
|
|
159
159
|
|
|
160
|
-
**Current release:** **6.14.
|
|
160
|
+
**Current release:** **6.14.2** · schema **1.0** · Node.js **≥ 20** · **MIT** · **actively maintained** (eighteen linked npm packages).
|
|
161
161
|
|
|
162
162
|
The 6.14 line is actively maintained for correctness, compatibility, documentation, security, and framework evolution.
|
|
163
163
|
|
package/docs/API.md
CHANGED
|
@@ -487,8 +487,12 @@ import {
|
|
|
487
487
|
detectTraceFormat,
|
|
488
488
|
openInferenceJsonReader,
|
|
489
489
|
openTrace,
|
|
490
|
+
openTraceDirectory,
|
|
491
|
+
openTraceFile,
|
|
492
|
+
openTraceText,
|
|
490
493
|
otlpJsonReader,
|
|
491
494
|
readTrace,
|
|
495
|
+
formatProgrammaticDiagnostic,
|
|
492
496
|
} from "agent-inspect/readers";
|
|
493
497
|
import type { TraceReader } from "agent-inspect/readers";
|
|
494
498
|
```
|
|
@@ -498,12 +502,14 @@ import type { TraceReader } from "agent-inspect/readers";
|
|
|
498
502
|
- **`detectTraceFormat(input, { readers?, format? })`**: deterministic, conservative format detection. Explicit `format` acts as an override only when a matching reader is registered.
|
|
499
503
|
- **`readTrace(input, { readers?, format? })`**: detects a reader and returns `TraceReadResult`; unsupported or ambiguous input throws `TraceReadError`.
|
|
500
504
|
- **`openTrace(input, options?)`**: alias for `readTrace()` and the API path used by the universal `agent-inspect open` command.
|
|
505
|
+
- **`openTraceFile(path)` / `openTraceDirectory(path)` / `openTraceText(content)`**: additive conveniences that wrap structured `TraceInput` (prefer these over bare path strings).
|
|
506
|
+
- **`assertTraceInput` / `formatProgrammaticDiagnostic`**: runtime input guard and stable `AI_*` message helpers (lowercase `TraceReadError.code` values remain published).
|
|
501
507
|
- **`agentInspectJsonlReader`**: built-in local AgentInspect JSONL reader for v0.1, v0.2, and mixed files/directories.
|
|
502
508
|
- **`openInferenceJsonReader`**: local OpenInference JSON compatibility reader. Prompt/output-like attributes are summarized and bounded rather than stored as raw content.
|
|
503
509
|
- **`otlpJsonReader`**: local OTLP/HTTP JSON trace payload reader. Resource, scope, span, status, event, and parent metadata are preserved where possible with warnings for unsupported fields.
|
|
504
510
|
- **`DEFAULT_TRACE_READERS`**: ordered built-in reader registry used when no custom `readers` array is supplied.
|
|
505
511
|
|
|
506
|
-
The reader contract does not silently accept arbitrary JSON and does not add OTel SDK, database, hosted ingestion, or network upload dependencies.
|
|
512
|
+
The reader contract does not silently accept arbitrary JSON and does not add OTel SDK, database, hosted ingestion, or network upload dependencies. See also [PROGRAMMATIC-TRACE-ANALYSIS.md](./PROGRAMMATIC-TRACE-ANALYSIS.md).
|
|
507
513
|
|
|
508
514
|
## 21. Experimental Checks
|
|
509
515
|
|
|
@@ -512,11 +518,21 @@ The reader contract does not silently accept arbitrary JSON and does not add OTe
|
|
|
512
518
|
Import from `agent-inspect/checks`:
|
|
513
519
|
|
|
514
520
|
```ts
|
|
515
|
-
import {
|
|
516
|
-
|
|
521
|
+
import {
|
|
522
|
+
runTraceChecks,
|
|
523
|
+
buildTraceFacts,
|
|
524
|
+
defineTraceContract,
|
|
525
|
+
evaluateTraceContract,
|
|
526
|
+
evaluateTraceContractRead,
|
|
527
|
+
formatProgrammaticDiagnostic,
|
|
528
|
+
} from "agent-inspect/checks";
|
|
529
|
+
import type { TraceCheckRule, TraceCheckResult, TraceFacts } from "agent-inspect/checks";
|
|
517
530
|
```
|
|
518
531
|
|
|
519
532
|
- **`runTraceChecks({ read }, { rules?, select?, runId? })`**: executes provided rules against a `TraceReadResult` from `agent-inspect/readers`.
|
|
533
|
+
- **`buildTraceFacts(read | events)`**: experimental TraceFacts over logical projection; accepts `TraceReadResult` or normalized `PersistedInspectEvent[]`.
|
|
534
|
+
- **`defineTraceContract` / `evaluateTraceContract` / `evaluateTraceContractRead`**: experimental contract helpers; `evaluateTraceContractRead(read, contract)` wraps `{ read }`.
|
|
535
|
+
- **`formatProgrammaticDiagnostic` / `PROGRAMMATIC_DIAGNOSTIC_SPECS`**: stable `AI_*` codes with remediation hints.
|
|
520
536
|
- **Built-in rule factories**: run, tool, LLM, structure, retrieval, guardrail, decision, safety, and baseline helpers including `createRunStatusRule`, `createToolUsageRule`, `createLlmUsageRule`, `createStructureOrphanRule`, `createStructureCycleRule`, `createStructureRelationshipRule`, `createRetrievalRule`, `createGuardrailRule`, `createDecisionRule`, `createSafetyRawContentRule`, `createSafetySecretPatternRule`, and `createBaselineRegressionRule`.
|
|
521
537
|
- **`TraceCheckRule`**: synchronous pure rule contract.
|
|
522
538
|
- **`TraceCheckResult`**: deterministic aggregate result with findings, evidence, summary counts, and execution diagnostics.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-inspect",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.15.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Local evidence debugger and trajectory-test toolkit for TypeScript AI agents — execution trees, TraceContract checks, Evidence v2, and read-only MCP",
|
|
@@ -5852,6 +5852,59 @@ function defaultSuiteConfigTemplate() {
|
|
|
5852
5852
|
};
|
|
5853
5853
|
}
|
|
5854
5854
|
|
|
5855
|
+
// packages/core/src/diagnostics/programmatic.ts
|
|
5856
|
+
var PROGRAMMATIC_DIAGNOSTIC_SPECS = Object.freeze({
|
|
5857
|
+
AI_TRACE_INPUT_INVALID: {
|
|
5858
|
+
code: "AI_TRACE_INPUT_INVALID",
|
|
5859
|
+
summary: 'Expected { type: "file", path }, { type: "directory", path }, { type: "string", content }, { type: "buffer", content }, or { type: "stdin" }.',
|
|
5860
|
+
remediation: "For a file path, use openTraceFile(path).",
|
|
5861
|
+
relatedCodes: ["invalid_input"]
|
|
5862
|
+
},
|
|
5863
|
+
AI_TRACE_FORMAT_UNSUPPORTED: {
|
|
5864
|
+
code: "AI_TRACE_FORMAT_UNSUPPORTED",
|
|
5865
|
+
summary: "No trace reader could detect the input format.",
|
|
5866
|
+
remediation: "Pass an AgentInspect JSONL file via openTraceFile, or set options.format to a registered reader.",
|
|
5867
|
+
relatedCodes: ["unsupported_format"]
|
|
5868
|
+
},
|
|
5869
|
+
AI_TRACE_FORMAT_AMBIGUOUS: {
|
|
5870
|
+
code: "AI_TRACE_FORMAT_AMBIGUOUS",
|
|
5871
|
+
summary: "Multiple trace readers matched the input with equal confidence.",
|
|
5872
|
+
remediation: "Set options.format explicitly to disambiguate the reader.",
|
|
5873
|
+
relatedCodes: ["ambiguous_format"]
|
|
5874
|
+
},
|
|
5875
|
+
AI_TRACE_FACTS_INPUT_NOT_NORMALIZED: {
|
|
5876
|
+
code: "AI_TRACE_FACTS_INPUT_NOT_NORMALIZED",
|
|
5877
|
+
summary: "TraceFacts requires TraceReadResult or PersistedInspectEvent[].",
|
|
5878
|
+
remediation: "Use openTraceFile() to normalize a JSONL trace first."
|
|
5879
|
+
},
|
|
5880
|
+
AI_TRACE_CONTRACT_RUN_SELECTION_REQUIRED: {
|
|
5881
|
+
code: "AI_TRACE_CONTRACT_RUN_SELECTION_REQUIRED",
|
|
5882
|
+
summary: "Multiple runs are available; select a run before executing checks.",
|
|
5883
|
+
remediation: "Pass options.runId or TraceCheckInput.selectedRun.",
|
|
5884
|
+
relatedCodes: ["AI_CHECK_RUN_SELECTION_REQUIRED"]
|
|
5885
|
+
},
|
|
5886
|
+
AI_TRACE_RELATIONSHIP_SELF_PARENT: {
|
|
5887
|
+
code: "AI_TRACE_RELATIONSHIP_SELF_PARENT",
|
|
5888
|
+
summary: "A parentId equals its own event/step id.",
|
|
5889
|
+
remediation: "Reject at capture (AI_LANGGRAPH_SELF_PARENT_REJECTED) or drop via logical projection; do not invent replacement parents.",
|
|
5890
|
+
relatedCodes: [
|
|
5891
|
+
"AI_LANGGRAPH_SELF_PARENT_REJECTED",
|
|
5892
|
+
"AI_LOGICAL_SELF_PARENT_REMOVED"
|
|
5893
|
+
]
|
|
5894
|
+
},
|
|
5895
|
+
AI_TRACE_RELATIONSHIP_CYCLE: {
|
|
5896
|
+
code: "AI_TRACE_RELATIONSHIP_CYCLE",
|
|
5897
|
+
summary: "Trace contains a parentId cycle.",
|
|
5898
|
+
remediation: "Use visibility-first tree linking for legacy fixtures; prefer acyclic capture for new adapter output.",
|
|
5899
|
+
relatedCodes: ["structure.cycle"]
|
|
5900
|
+
}
|
|
5901
|
+
});
|
|
5902
|
+
function formatProgrammaticDiagnostic(code, detail) {
|
|
5903
|
+
const spec = PROGRAMMATIC_DIAGNOSTIC_SPECS[code];
|
|
5904
|
+
const summary = detail?.trim() ? detail.trim() : spec.summary;
|
|
5905
|
+
return `${code}: ${summary} Remediation: ${spec.remediation}`;
|
|
5906
|
+
}
|
|
5907
|
+
|
|
5855
5908
|
// packages/core/src/checks/logical-events.ts
|
|
5856
5909
|
function isRecord7(value) {
|
|
5857
5910
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -6050,7 +6103,10 @@ function projectLogicalEvents(events) {
|
|
|
6050
6103
|
if (originalParentId === event.eventId) {
|
|
6051
6104
|
diagnostics.push({
|
|
6052
6105
|
code: "AI_LOGICAL_SELF_PARENT_REMOVED",
|
|
6053
|
-
message:
|
|
6106
|
+
message: formatProgrammaticDiagnostic(
|
|
6107
|
+
"AI_TRACE_RELATIONSHIP_SELF_PARENT",
|
|
6108
|
+
`Removed self-parent edge on ${event.eventId}.`
|
|
6109
|
+
),
|
|
6054
6110
|
eventIds: [event.eventId]
|
|
6055
6111
|
});
|
|
6056
6112
|
const { parentId: _drop, ...rest } = event;
|
|
@@ -6082,7 +6138,10 @@ function projectLogicalEvents(events) {
|
|
|
6082
6138
|
if (nextParent === event.eventId) {
|
|
6083
6139
|
diagnostics.push({
|
|
6084
6140
|
code: "AI_LOGICAL_SELF_PARENT_REMOVED",
|
|
6085
|
-
message:
|
|
6141
|
+
message: formatProgrammaticDiagnostic(
|
|
6142
|
+
"AI_TRACE_RELATIONSHIP_SELF_PARENT",
|
|
6143
|
+
`Removed self-parent edge on ${event.eventId} (was ${originalParentId}).`
|
|
6144
|
+
),
|
|
6086
6145
|
eventIds: [event.eventId]
|
|
6087
6146
|
});
|
|
6088
6147
|
const { parentId: _drop, ...rest } = event;
|
|
@@ -6168,6 +6227,9 @@ function summarizeSemanticParity(events) {
|
|
|
6168
6227
|
diagnostics: projection.diagnostics
|
|
6169
6228
|
};
|
|
6170
6229
|
}
|
|
6230
|
+
formatProgrammaticDiagnostic(
|
|
6231
|
+
"AI_TRACE_FACTS_INPUT_NOT_NORMALIZED"
|
|
6232
|
+
);
|
|
6171
6233
|
|
|
6172
6234
|
// packages/core/src/safety/sensitive-key.ts
|
|
6173
6235
|
function normalizeSensitiveKey(value) {
|
|
@@ -6411,7 +6473,13 @@ function resolveSelectedRun(input, runId) {
|
|
|
6411
6473
|
if (input.read.runs.length === 0) {
|
|
6412
6474
|
return {
|
|
6413
6475
|
diagnostics: [
|
|
6414
|
-
diagnostic3(
|
|
6476
|
+
diagnostic3(
|
|
6477
|
+
"AI_CHECK_RUN_SELECTION_REQUIRED",
|
|
6478
|
+
formatProgrammaticDiagnostic(
|
|
6479
|
+
"AI_TRACE_CONTRACT_RUN_SELECTION_REQUIRED",
|
|
6480
|
+
"No runs are available for checks."
|
|
6481
|
+
)
|
|
6482
|
+
)
|
|
6415
6483
|
]
|
|
6416
6484
|
};
|
|
6417
6485
|
}
|
|
@@ -6419,7 +6487,7 @@ function resolveSelectedRun(input, runId) {
|
|
|
6419
6487
|
diagnostics: [
|
|
6420
6488
|
diagnostic3(
|
|
6421
6489
|
"AI_CHECK_RUN_SELECTION_REQUIRED",
|
|
6422
|
-
"
|
|
6490
|
+
formatProgrammaticDiagnostic("AI_TRACE_CONTRACT_RUN_SELECTION_REQUIRED")
|
|
6423
6491
|
)
|
|
6424
6492
|
]
|
|
6425
6493
|
};
|
|
@@ -7148,7 +7216,7 @@ function createStructureCycleRule() {
|
|
|
7148
7216
|
findings.push(
|
|
7149
7217
|
failFinding(
|
|
7150
7218
|
"structure.cycle",
|
|
7151
|
-
"
|
|
7219
|
+
formatProgrammaticDiagnostic("AI_TRACE_RELATIONSHIP_CYCLE"),
|
|
7152
7220
|
cycle.map((item) => eventEvidence(item, "parentId")),
|
|
7153
7221
|
"acyclic parentId graph",
|
|
7154
7222
|
cycle.map((item) => item.eventId).sort()
|
|
@@ -8372,6 +8440,38 @@ var TraceReadError = class extends Error {
|
|
|
8372
8440
|
this.warnings = warnings;
|
|
8373
8441
|
}
|
|
8374
8442
|
};
|
|
8443
|
+
var TRACE_INPUT_INVALID_MESSAGE = formatProgrammaticDiagnostic(
|
|
8444
|
+
"AI_TRACE_INPUT_INVALID"
|
|
8445
|
+
);
|
|
8446
|
+
function isTraceInput(input) {
|
|
8447
|
+
if (typeof input !== "object" || input === null || Array.isArray(input)) {
|
|
8448
|
+
return false;
|
|
8449
|
+
}
|
|
8450
|
+
const record = input;
|
|
8451
|
+
switch (record.type) {
|
|
8452
|
+
case "file":
|
|
8453
|
+
case "directory":
|
|
8454
|
+
return typeof record.path === "string";
|
|
8455
|
+
case "string":
|
|
8456
|
+
return typeof record.content === "string";
|
|
8457
|
+
case "buffer":
|
|
8458
|
+
return Buffer.isBuffer(record.content);
|
|
8459
|
+
case "stdin":
|
|
8460
|
+
return true;
|
|
8461
|
+
default:
|
|
8462
|
+
return false;
|
|
8463
|
+
}
|
|
8464
|
+
}
|
|
8465
|
+
function assertTraceInput(input) {
|
|
8466
|
+
if (isTraceInput(input)) return;
|
|
8467
|
+
throw new TraceReadError("invalid_input", TRACE_INPUT_INVALID_MESSAGE, [
|
|
8468
|
+
{
|
|
8469
|
+
code: "AI_TRACE_INPUT_INVALID",
|
|
8470
|
+
message: TRACE_INPUT_INVALID_MESSAGE,
|
|
8471
|
+
severity: "error"
|
|
8472
|
+
}
|
|
8473
|
+
]);
|
|
8474
|
+
}
|
|
8375
8475
|
function normalizeCandidate(reader, candidate) {
|
|
8376
8476
|
const confidence = Number.isFinite(candidate.confidence) ? Math.max(0, Math.min(1, candidate.confidence)) : 0;
|
|
8377
8477
|
return {
|
|
@@ -9726,6 +9826,7 @@ var DEFAULT_TRACE_READERS = [
|
|
|
9726
9826
|
otlpJsonReader
|
|
9727
9827
|
];
|
|
9728
9828
|
async function detectTraceFormat(input, options = {}) {
|
|
9829
|
+
assertTraceInput(input);
|
|
9729
9830
|
const readers = options.readers ?? DEFAULT_TRACE_READERS;
|
|
9730
9831
|
if (options.format !== void 0) {
|
|
9731
9832
|
const reader = findReaderByFormat(options.format, readers);
|
|
@@ -9822,19 +9923,20 @@ async function detectTraceFormat(input, options = {}) {
|
|
|
9822
9923
|
};
|
|
9823
9924
|
}
|
|
9824
9925
|
async function readTrace(input, options = {}) {
|
|
9926
|
+
assertTraceInput(input);
|
|
9825
9927
|
const readers = options.readers ?? DEFAULT_TRACE_READERS;
|
|
9826
9928
|
const detection = await detectTraceFormat(input, options);
|
|
9827
9929
|
if (detection.status === "unsupported" || detection.format === void 0) {
|
|
9828
9930
|
throw new TraceReadError(
|
|
9829
9931
|
"unsupported_format",
|
|
9830
|
-
"
|
|
9932
|
+
formatProgrammaticDiagnostic("AI_TRACE_FORMAT_UNSUPPORTED"),
|
|
9831
9933
|
detection.warnings
|
|
9832
9934
|
);
|
|
9833
9935
|
}
|
|
9834
9936
|
if (detection.status === "ambiguous") {
|
|
9835
9937
|
throw new TraceReadError(
|
|
9836
9938
|
"ambiguous_format",
|
|
9837
|
-
"
|
|
9939
|
+
formatProgrammaticDiagnostic("AI_TRACE_FORMAT_AMBIGUOUS"),
|
|
9838
9940
|
detection.warnings
|
|
9839
9941
|
);
|
|
9840
9942
|
}
|
|
@@ -9842,7 +9944,10 @@ async function readTrace(input, options = {}) {
|
|
|
9842
9944
|
if (!reader) {
|
|
9843
9945
|
throw new TraceReadError(
|
|
9844
9946
|
"unsupported_format",
|
|
9845
|
-
|
|
9947
|
+
formatProgrammaticDiagnostic(
|
|
9948
|
+
"AI_TRACE_FORMAT_UNSUPPORTED",
|
|
9949
|
+
`No trace reader is registered for format "${detection.format}".`
|
|
9950
|
+
),
|
|
9846
9951
|
detection.warnings
|
|
9847
9952
|
);
|
|
9848
9953
|
}
|
|
@@ -11216,5 +11321,5 @@ function renderGateReport(result, options = {}) {
|
|
|
11216
11321
|
}
|
|
11217
11322
|
|
|
11218
11323
|
export { COHORT_METRIC_IDS, DEFAULT_SUITE_ARTIFACTS_DIR, EVIDENCE_FORMAT_VERSION, EVIDENCE_HTML_FILENAME, EVIDENCE_MANIFEST_FILENAME, Redactor, TraceDirectory, TraceReadError, TreeBuilder, aggregateBundleSafeStatus, aggregateSessionCheckResults, analyzeCohort, applyProfileMetadataCaps, assertBundlePathContained, assertEvidenceRelativePath, buildActivitySummary, buildBundleMetadata, buildBundleSummaryMarkdown, buildEvidenceCausalFailureViewHtml, buildEvidenceCiPackage, buildEvidenceCircuitViewHtml, buildEvidenceContractsViewHtml, buildEvidenceDiffViewHtml, buildEvidenceHtmlShell, buildEvidenceManifest, buildEvidenceOutcomesViewHtml, buildEvidenceProvenanceViewHtml, buildEvidenceSafetyViewHtml, buildEvidenceTimelineViewHtml, buildEvidenceToolsLlmViewHtml, buildEvidenceTreeViewHtml, buildLocalExplanation, buildPlaceholderArtifact, buildRunSummary, buildRunTimeline, buildRunWhatSummary, buildSessionIndex, buildTraceStats, buildZipArchive, bundleFailsOnSafety, bundleRunAssetRelativePath, collectTraceSchemaVersions, compactAttributes, createBaselineRegressionRule, createLlmUsageRule, createMaxStepDurationRule, createObservedOutcomeRule, createRequireCompletedRule, createRunDepthRule, createRunDurationRule, createRunStatusRule, createSafetyOversizedAttributeRule, createSafetyRawContentRule, createSafetyRedactionRule, createSafetySecretPatternRule, createStallDetectionRule, createStructureCycleRule, createStructureOrphanRule, createStructureParallelWidthRule, createStructureRelationshipRule, createToolUsageRule, defaultBundleOutputPath, defaultSuiteConfigTemplate, diffRuns, diffTraceEvents, enrichSessionRunRecord, escapeHtml, escapeMarkdown, extractMetadata, extractOutcomesFromTraceEvents, filterMetasBySessionScope, filterTraces, flattenTree, formatDuration2 as formatDuration, formatStepLabel, formatTimestamp, gateHasThresholds, getIndent, getTraceFilePath, inferEvidenceFileRole, isAgentInspectTrace, isPersistedInspectEvent, loadSessionRunRecords, loadSuiteConfig, loadTraceMetadataList, manualTraceEventsToComparableRun, nanoid, normalizeBundleOutputPath, openTrace, parseCohortMetricList, parseDuration, parseDurationFilter, parseGateList, parseTraceJsonl, persistedInspectEventsToTraceEvents, renderActivitySummaryHuman, renderCohortReport, renderErrorLine, renderGateReport, renderObservedOutcomesHtml, renderObservedOutcomesMarkdown, renderRunDiff, renderRunWhat, renderStepLine, renderSuiteReport, renderTimeline, renderTraceStats, resolveBundleRunIds, resolveRedactionProfile, resolveSuiteTemplate, resolveTraceDir, runGate, runSuite, runTraceChecks, safeString, sanitizeBundleRunId, searchTraces, serializeEvidenceManifest, sha256Hex, stableJson, summarizeObservedOutcomes, summarizeSemanticParity, traceEventToPersistedInspectEvent, truncateName, truncateStringForProfile, validateEvent, validateSuiteConfig, verifyEvidenceDirectory, zeroKinds };
|
|
11219
|
-
//# sourceMappingURL=chunk-
|
|
11220
|
-
//# sourceMappingURL=chunk-
|
|
11324
|
+
//# sourceMappingURL=chunk-LFSBMUCD.mjs.map
|
|
11325
|
+
//# sourceMappingURL=chunk-LFSBMUCD.mjs.map
|