agent-inspect 6.17.0 → 6.17.2
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 +12 -0
- package/README.md +144 -177
- package/docs/CLI.md +1 -0
- package/docs/GOLDEN-PATH.md +1 -1
- package/docs/SCREENSHOTS.md +35 -204
- package/docs/SUPPORT-LEVELS.md +16 -5
- package/package.json +4 -2
- package/packages/cli/dist/{chunk-LFSBMUCD.mjs → chunk-FXGWXSFV.mjs} +20 -5
- package/packages/cli/dist/chunk-FXGWXSFV.mjs.map +1 -0
- package/packages/cli/dist/index.cjs +92 -27
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +77 -27
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/cli/dist/{src-5J2HPOJ3.mjs → src-EW7KW2BK.mjs} +3 -3
- package/packages/cli/dist/{src-5J2HPOJ3.mjs.map → src-EW7KW2BK.mjs.map} +1 -1
- package/packages/core/dist/advanced.cjs +18 -3
- package/packages/core/dist/advanced.cjs.map +1 -1
- package/packages/core/dist/advanced.mjs +1 -1
- package/packages/core/dist/checks.cjs +18 -3
- package/packages/core/dist/checks.cjs.map +1 -1
- package/packages/core/dist/checks.mjs +1 -1
- package/packages/core/dist/{chunk-NF4ZHNTC.mjs → chunk-UFP54T7F.mjs} +20 -5
- package/packages/core/dist/chunk-UFP54T7F.mjs.map +1 -0
- package/packages/cli/dist/chunk-LFSBMUCD.mjs.map +0 -1
- package/packages/core/dist/chunk-NF4ZHNTC.mjs.map +0 -1
package/docs/SCREENSHOTS.md
CHANGED
|
@@ -1,231 +1,62 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Demos and screenshots
|
|
2
2
|
|
|
3
|
-
Curated terminal recordings and
|
|
3
|
+
Curated terminal recordings and diagrams for AgentInspect **6.17.x**. They show **Debug / Prevent / Share** from one local trace — without a maintainer-hosted dashboard or vendor upload.
|
|
4
4
|
|
|
5
|
-
**Synthetic output only:** demos use committed [fixtures](../fixtures/README.md), [examples](../examples/README.md), and
|
|
5
|
+
**Synthetic output only:** demos use committed [fixtures](../fixtures/README.md), [examples](../examples/README.md), and the [broken-agent-debugging](../examples/starters/broken-agent-debugging/) showcase. No external LLM calls or API keys.
|
|
6
6
|
|
|
7
|
-
**npm note:** GIFs live in `docs/assets/
|
|
7
|
+
**npm note:** Showcase GIFs live in `docs/assets/showcase/` for GitHub documentation. They are **not** shipped in the `agent-inspect` npm tarball. Brand SVGs used by the root README **are** included in the npm package.
|
|
8
8
|
|
|
9
|
-
**
|
|
10
|
-
**Maintainer audit:** [implementation/VISUAL-DEMO-AUDIT.md](implementation/VISUAL-DEMO-AUDIT.md)
|
|
11
|
-
**Live demo script:** [DEMO-SCRIPT.md](DEMO-SCRIPT.md) (uses [broken-agent-debugging](../examples/starters/broken-agent-debugging/) starter)
|
|
9
|
+
**Provenance:** [assets/showcase/provenance.json](assets/showcase/provenance.json)
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## README brand assets (6.7.x)
|
|
16
|
-
|
|
17
|
-
| Asset | Use |
|
|
18
|
-
| ----- | --- |
|
|
19
|
-
| [agent-inspect-logo.svg](assets/agent-inspect-logo.svg) | Light-mode wordmark |
|
|
20
|
-
| [agent-inspect-logo-dark.svg](assets/agent-inspect-logo-dark.svg) | Dark-mode wordmark |
|
|
21
|
-
| [readme-product-loop.svg](assets/readme-product-loop.svg) | Capture → understand → enforce → verify/bundle → local/Studio |
|
|
22
|
-
|
|
23
|
-
Root README embeds the logo and product-loop SVG only. Terminal GIFs stay below.
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## Adoption demo (6.7.x)
|
|
28
|
-
|
|
29
|
-
Deterministic broken-agent flow — recommended for live demos.
|
|
30
|
-
|
|
31
|
-
**Run:**
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
cd examples/starters/broken-agent-debugging
|
|
35
|
-
pnpm install && pnpm start
|
|
36
|
-
npx agent-inspect report <run-id> --dir .agent-inspect
|
|
37
|
-
npx agent-inspect redact <run-id> --dir .agent-inspect --profile share -o safe.jsonl
|
|
38
|
-
npx agent-inspect verify-safe <run-id> --dir .agent-inspect
|
|
39
|
-
```
|
|
11
|
+
**Re-record helper:** `node scripts/render-showcase-tapes.mjs` (requires ffmpeg + Python Pillow)
|
|
40
12
|
|
|
41
|
-
**
|
|
13
|
+
**Older recordings:** [assets/demos/RECORDING.md](assets/demos/RECORDING.md)
|
|
42
14
|
|
|
43
15
|
---
|
|
44
16
|
|
|
45
|
-
##
|
|
46
|
-
|
|
47
|
-
Manual `inspectRun` / `step` traces written as local JSONL.
|
|
48
|
-
|
|
49
|
-
### Quickstart (install → trace → view)
|
|
50
|
-
|
|
51
|
-

|
|
52
|
-
|
|
53
|
-
Run: [examples/00-quickstart-demo](../examples/00-quickstart-demo/README.md)
|
|
54
|
-
Also: [GETTING-STARTED.md](GETTING-STARTED.md)
|
|
55
|
-
|
|
56
|
-
### Nested execution tree
|
|
57
|
-
|
|
58
|
-

|
|
59
|
-
|
|
60
|
-
Run: [examples/02-nested-steps](../examples/02-nested-steps/README.md)
|
|
61
|
-
Command: `agent-inspect view <run-id> --dir <trace-dir>`
|
|
62
|
-
|
|
63
|
-
### Parallel sibling steps
|
|
64
|
-
|
|
65
|
-

|
|
66
|
-
|
|
67
|
-
Run: [examples/03-parallel-steps](../examples/03-parallel-steps/README.md)
|
|
17
|
+
## README showcase (6.17.x)
|
|
68
18
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
### `observe()` wrapper
|
|
76
|
-
|
|
77
|
-

|
|
78
|
-
|
|
79
|
-
Run: [examples/05-observe-wrapper](../examples/05-observe-wrapper/README.md) · API: [API.md](API.md)
|
|
80
|
-
|
|
81
|
-
### Env-gated tracing (`maybeInspectRun`)
|
|
82
|
-
|
|
83
|
-

|
|
19
|
+
| Asset | Job |
|
|
20
|
+
| ----- | --- |
|
|
21
|
+
| [debug-tree.gif](assets/showcase/gif/debug-tree.gif) | Debug — `list` then inspect a local run |
|
|
22
|
+
| [check-pass-fail.gif](assets/showcase/gif/check-pass-fail.gif) | Prevent — `check --preset trajectory` plus shorthands, pass then fail |
|
|
23
|
+
| [evidence-bundle.gif](assets/showcase/gif/evidence-bundle.gif) | Share — `bundle --profile share` then `bundle verify` (relative `./evidence`) |
|
|
24
|
+
| [value-loop.svg](assets/showcase/diagrams/value-loop.svg) | Capture once → debug, prevent, share |
|
|
84
25
|
|
|
85
|
-
|
|
26
|
+
The check tape is named for the `check` command, not `gate`.
|
|
86
27
|
|
|
87
28
|
---
|
|
88
29
|
|
|
89
|
-
##
|
|
90
|
-
|
|
91
|
-
Turn structured logs you already emit into a **local** grouped timeline or tree.
|
|
30
|
+
## Full six-flow set
|
|
92
31
|
|
|
93
|
-
|
|
32
|
+
| Flow | GIF | Video |
|
|
33
|
+
| ---- | --- | ----- |
|
|
34
|
+
| Debug tree / list | [debug-tree.gif](assets/showcase/gif/debug-tree.gif) | [debug-tree.webm](assets/showcase/video/debug-tree.webm) |
|
|
35
|
+
| Check pass/fail | [check-pass-fail.gif](assets/showcase/gif/check-pass-fail.gif) | [check-pass-fail.webm](assets/showcase/video/check-pass-fail.webm) |
|
|
36
|
+
| Evidence bundle | [evidence-bundle.gif](assets/showcase/gif/evidence-bundle.gif) | [evidence-bundle.webm](assets/showcase/video/evidence-bundle.webm) |
|
|
37
|
+
| Explain | [explain.gif](assets/showcase/gif/explain.gif) | [explain.webm](assets/showcase/video/explain.webm) |
|
|
38
|
+
| Redact (derived copy) | [redact.gif](assets/showcase/gif/redact.gif) | [redact.webm](assets/showcase/video/redact.webm) |
|
|
94
39
|
|
|
95
|
-
|
|
96
|
-
**Command:**
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
agent-inspect logs ./your.json.log \
|
|
100
|
-
--format json \
|
|
101
|
-
--run-id-key runId \
|
|
102
|
-
--event-key event \
|
|
103
|
-
--timestamp-key timestamp
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
Run: [examples/06-log-to-tree](../examples/06-log-to-tree/README.md) · [LOGS.md](LOGS.md) · [LOG-TO-TREE-QUICKSTART.md](LOG-TO-TREE-QUICKSTART.md)
|
|
107
|
-
|
|
108
|
-
### Live tail
|
|
109
|
-
|
|
110
|
-
**Status:** animated demo pending re-record.
|
|
111
|
-
**Command:** `agent-inspect tail <log-file> [mapping flags]` — see [LOGS.md](LOGS.md).
|
|
112
|
-
|
|
113
|
-
### log4js (best-effort)
|
|
114
|
-
|
|
115
|
-
**Status:** pending re-record. Documented in [LOGS.md](LOGS.md); recipe: [log4js-json-layout](../examples/recipes/log4js-json-layout/README.md).
|
|
40
|
+
Rejected source tapes (not published): blank one-frame `docs/demo-kit/b77a3f11-….gif` (PNG mislabeled as GIF); kit `06-run-live.mp4` (not re-recorded from the canonical starter). Kit MP4s that printed `/private/tmp` or captioned `check` as `gate` were re-recorded.
|
|
116
41
|
|
|
117
42
|
---
|
|
118
43
|
|
|
119
|
-
##
|
|
120
|
-
|
|
121
|
-
Read-only CLI over local JSONL traces.
|
|
122
|
-
|
|
123
|
-
### Chronological timeline (`--focus slow`)
|
|
124
|
-
|
|
125
|
-

|
|
44
|
+
## Canonical showcase commands
|
|
126
45
|
|
|
127
46
|
```bash
|
|
128
|
-
agent-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-

|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
agent-inspect stats --dir fixtures/traces
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
Filter by correlation: `agent-inspect stats --correlation-id <id>` or `--group-id <id>`.
|
|
142
|
-
Docs: [CLI.md](CLI.md) § stats
|
|
143
|
-
|
|
144
|
-
### Deterministic search
|
|
145
|
-
|
|
146
|
-

|
|
147
|
-
|
|
148
|
-
```bash
|
|
149
|
-
agent-inspect search --dir fixtures/traces --status error --limit 5
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
Docs: [CLI.md](CLI.md) § search
|
|
153
|
-
|
|
154
|
-
### Diff two runs
|
|
155
|
-
|
|
156
|
-

|
|
157
|
-
|
|
158
|
-
```bash
|
|
159
|
-
agent-inspect diff minimal-success minimal-error --dir fixtures/traces
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
Docs: [DIFF.md](DIFF.md)
|
|
163
|
-
|
|
164
|
-
### Markdown export
|
|
165
|
-
|
|
166
|
-

|
|
167
|
-
|
|
168
|
-
```bash
|
|
169
|
-
agent-inspect export minimal-success --dir fixtures/traces --format markdown
|
|
47
|
+
cd examples/starters/broken-agent-debugging
|
|
48
|
+
node demo-agent.mjs good
|
|
49
|
+
npx agent-inspect list --dir .agent-inspect
|
|
50
|
+
npx agent-inspect check demo-good --dir .agent-inspect \
|
|
51
|
+
--preset trajectory --required-tool retrieve_policy --fail-on-observation failed
|
|
52
|
+
npx agent-inspect bundle demo-good --dir .agent-inspect --profile share --out ./evidence
|
|
53
|
+
npx agent-inspect bundle verify ./evidence
|
|
170
54
|
```
|
|
171
55
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
### HTML / OpenInference / OTLP
|
|
175
|
-
|
|
176
|
-
- **HTML:** rendered-report visual pending re-record; export command in [EXPORTS.md](EXPORTS.md).
|
|
177
|
-
- **OpenInference / OTLP JSON:** compatibility-oriented local formats — see prose and `--validate` in [EXPORTS.md](EXPORTS.md), not dedicated GIFs.
|
|
178
|
-
|
|
179
|
-
---
|
|
180
|
-
|
|
181
|
-
## Integrations and optional UI
|
|
182
|
-
|
|
183
|
-
### LangChain persistence
|
|
184
|
-
|
|
185
|
-

|
|
186
|
-
|
|
187
|
-
Run: [examples/08-langchain-adapter](../examples/08-langchain-adapter/README.md) · [ADAPTERS.md](ADAPTERS.md)
|
|
188
|
-
|
|
189
|
-
Streaming metadata (`stream: true`) demo pending re-record until `chunkCount` / `streamDurationMs` are non-null.
|
|
190
|
-
|
|
191
|
-
### Optional TUI (`@agent-inspect/tui`)
|
|
192
|
-
|
|
193
|
-

|
|
194
|
-
|
|
195
|
-
Requires optional package: `pnpm add @agent-inspect/tui`
|
|
196
|
-
Command: `agent-inspect view <run-id> --tui`
|
|
197
|
-
Docs: [ADAPTERS.md](ADAPTERS.md)
|
|
56
|
+
Stable run ids: `demo-good`, `demo-regression`, `demo-pii`.
|
|
198
57
|
|
|
199
58
|
---
|
|
200
59
|
|
|
201
|
-
##
|
|
202
|
-
|
|
203
|
-
### Default metadata redaction
|
|
204
|
-
|
|
205
|
-

|
|
206
|
-
|
|
207
|
-
Profiles (`local` / `share` / `strict`) and export redaction: [SAFE-TRACE-SHARING.md](SAFE-TRACE-SHARING.md)
|
|
208
|
-
|
|
209
|
-
### Event size bounds
|
|
210
|
-
|
|
211
|
-
Described in [LIMITATIONS.md](LIMITATIONS.md) — no GIF (static explanation preferred).
|
|
212
|
-
|
|
213
|
-
### Correlation metadata
|
|
214
|
-
|
|
215
|
-
Described in [API.md](API.md) — optional `correlationId`, `requestId`, `decisionId`, `groupId` on `run_started`.
|
|
216
|
-
|
|
217
|
-
---
|
|
218
|
-
|
|
219
|
-
## VS Code (v3.3)
|
|
220
|
-
|
|
221
|
-
Read-only sidebar trace explorer backed by the `agent-inspect` CLI. Develop with F5 from `packages/vscode`.
|
|
222
|
-
|
|
223
|
-
Guide: [VSCODE.md](VSCODE.md)
|
|
60
|
+
## Earlier 6.7.x terminal GIFs
|
|
224
61
|
|
|
225
|
-
|
|
226
|
-
- [x] Failed step rendering
|
|
227
|
-
- [x] `agent-inspect logs` output (JSON) — **re-record pending**
|
|
228
|
-
- [x] `agent-inspect diff` output
|
|
229
|
-
- [x] Optional TUI (`view --tui`)
|
|
230
|
-
- [x] `timeline`, `stats`, `search` (v1.4.0)
|
|
231
|
-
- [x] VS Code read-only trace explorer (v3.3.0) — see [VSCODE.md](VSCODE.md); Marketplace GIF pending first publish
|
|
62
|
+
The files under [assets/demos/](assets/demos/) remain available as additional command-level recordings (`quickstart.gif`, `execution-tree.gif`, `error-handling.gif`, …). Prefer the 6.17.x showcase above for README and website hero media. Log-to-tree and export HTML visuals still live in that older set.
|
package/docs/SUPPORT-LEVELS.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Support levels
|
|
2
2
|
|
|
3
|
-
Canonical maturity labels for AgentInspect public packages and major surfaces (6.
|
|
3
|
+
Canonical maturity labels for AgentInspect public packages and major surfaces (6.17.x fixed release line).
|
|
4
4
|
|
|
5
5
|
## Definitions
|
|
6
6
|
|
|
@@ -19,10 +19,11 @@ Canonical maturity labels for AgentInspect public packages and major surfaces (6
|
|
|
19
19
|
| `agent-inspect` core schema, readers, writers, inspection CLI | Stable |
|
|
20
20
|
| Redaction engine / `@agent-inspect/redact` | Stable |
|
|
21
21
|
| Deterministic checks (`agent-inspect/checks`) | Stable |
|
|
22
|
-
| Official adapters (ai-sdk, openai-agents, langchain) | Supported |
|
|
22
|
+
| Official adapters (ai-sdk, openai-agents, langchain / LangGraph fidelity classes) | Supported |
|
|
23
23
|
| Vitest / Jest reporters | Supported |
|
|
24
24
|
| `@agent-inspect/harness` | Supported |
|
|
25
|
-
| Workspace / bundles / observed outcomes | Supported |
|
|
25
|
+
| Workspace / bundles / observed outcomes / Evidence v2 | Supported |
|
|
26
|
+
| TraceFacts programmatic API | Beta |
|
|
26
27
|
| TraceContract API | Beta |
|
|
27
28
|
| Suites / cohorts / gates | Beta |
|
|
28
29
|
| `@agent-inspect/index-sqlite` | Beta |
|
|
@@ -30,12 +31,22 @@ Canonical maturity labels for AgentInspect public packages and major surfaces (6
|
|
|
30
31
|
| `@agent-inspect/adapter-sdk` / plugins | Beta |
|
|
31
32
|
| `@agent-inspect/studio` | Beta |
|
|
32
33
|
| Studio HTTP / GitHub ingest | Preview |
|
|
33
|
-
| `@agent-inspect/mcp-server` | Preview |
|
|
34
|
+
| `@agent-inspect/mcp-server` (read-only MCP) | Preview |
|
|
34
35
|
| Standards round-trip / Collector–Phoenix external proof | Preview |
|
|
35
36
|
| Vitest/Jest TraceContract matchers (`toPassTraceContract`, `toHaveRequiredTool`) | Experimental |
|
|
36
37
|
|
|
37
38
|
Part of the fixed AgentInspect release line — see the npm badge for the current version.
|
|
38
39
|
|
|
40
|
+
## Public package groups (presentation only)
|
|
41
|
+
|
|
42
|
+
Physical packages stay the fixed group of 18. Outreach/install kits group them as:
|
|
43
|
+
|
|
44
|
+
1. **Core kit** — `agent-inspect` (+ CLI)
|
|
45
|
+
2. **Framework kit** — official adapters matching your stack
|
|
46
|
+
3. **CI / Evidence kit** — checks, gates, reporters, Evidence v2 workflows
|
|
47
|
+
|
|
48
|
+
See [INSTALL-KITS.md](./INSTALL-KITS.md).
|
|
49
|
+
|
|
39
50
|
## Compatibility promise
|
|
40
51
|
|
|
41
52
|
- Persisted schema **1.0**; v0.1 / v0.2 / 1.0 traces remain readable
|
|
@@ -44,4 +55,4 @@ Part of the fixed AgentInspect release line — see the npm badge for the curren
|
|
|
44
55
|
|
|
45
56
|
## Promotion criteria
|
|
46
57
|
|
|
47
|
-
A surface moves up only with tests, docs, packed smoke where relevant, and honest limitation disclosure — not changelog marketing alone.
|
|
58
|
+
A surface moves up only with tests, docs, packed smoke where relevant, real-project or external retained use where required for Supported/Stable, and honest limitation disclosure — not changelog marketing alone.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-inspect",
|
|
3
|
-
"version": "6.17.
|
|
3
|
+
"version": "6.17.2",
|
|
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",
|
|
@@ -240,8 +240,10 @@
|
|
|
240
240
|
"docs:links": "node scripts/validate-doc-links.mjs",
|
|
241
241
|
"public-truth:check": "node scripts/validate-public-truth.mjs",
|
|
242
242
|
"ai-assets:check": "node scripts/validate-ai-assets.mjs",
|
|
243
|
-
"docs:check": "pnpm run docs:commands && pnpm run docs:links && pnpm run public-truth:check && pnpm run ai-assets:check && pnpm run repo:health",
|
|
243
|
+
"docs:check": "pnpm run docs:commands && pnpm run docs:links && pnpm run public-truth:check && pnpm run ai-assets:check && pnpm run repo:health && pnpm run demo:verify",
|
|
244
244
|
"repo:health": "node scripts/validate-repo-health.mjs",
|
|
245
|
+
"demo:generate": "node scripts/demo-generate.mjs",
|
|
246
|
+
"demo:verify": "node scripts/demo-verify.mjs",
|
|
245
247
|
"compat:smoke": "node scripts/compat-smoke.mjs",
|
|
246
248
|
"fixtures:check": "node scripts/validate-fixtures.mjs",
|
|
247
249
|
"recipes:check": "node scripts/validate-recipes.mjs",
|
|
@@ -6580,6 +6580,18 @@ function stringAttr(event, keys) {
|
|
|
6580
6580
|
}
|
|
6581
6581
|
return void 0;
|
|
6582
6582
|
}
|
|
6583
|
+
function metadataStringAttr(event, keys) {
|
|
6584
|
+
const metadata = event.attributes?.metadata;
|
|
6585
|
+
if (typeof metadata !== "object" || metadata === null || Array.isArray(metadata)) {
|
|
6586
|
+
return void 0;
|
|
6587
|
+
}
|
|
6588
|
+
const record = metadata;
|
|
6589
|
+
for (const key of keys) {
|
|
6590
|
+
const value = record[key];
|
|
6591
|
+
if (typeof value === "string" && value.trim() !== "") return value;
|
|
6592
|
+
}
|
|
6593
|
+
return void 0;
|
|
6594
|
+
}
|
|
6583
6595
|
function numericAttr(event, keys) {
|
|
6584
6596
|
for (const key of keys) {
|
|
6585
6597
|
const value = event.attributes?.[key];
|
|
@@ -6638,13 +6650,16 @@ function semanticEvents(context) {
|
|
|
6638
6650
|
return context.logicalEvents ?? context.events;
|
|
6639
6651
|
}
|
|
6640
6652
|
function llmModel(event) {
|
|
6641
|
-
|
|
6653
|
+
const keys = ["model", "modelId", "responseModelId", "modelName", "model_name"];
|
|
6654
|
+
return stringAttr(event, keys) ?? metadataStringAttr(event, keys) ?? stripPrefix(event.name, ["llm:", "generation:", "transcription:", "speech:"]);
|
|
6642
6655
|
}
|
|
6643
6656
|
function llmProvider(event) {
|
|
6644
|
-
|
|
6657
|
+
const keys = ["provider", "providerName", "provider_name"];
|
|
6658
|
+
return stringAttr(event, keys) ?? metadataStringAttr(event, keys);
|
|
6645
6659
|
}
|
|
6646
6660
|
function llmFinishReason(event) {
|
|
6647
|
-
|
|
6661
|
+
const keys = ["finishReason", "rawFinishReason", "finish_reason"];
|
|
6662
|
+
return stringAttr(event, keys) ?? metadataStringAttr(event, keys);
|
|
6648
6663
|
}
|
|
6649
6664
|
function retryCount(event) {
|
|
6650
6665
|
return numericAttr(event, ["retryCount", "retryAttempt", "retry_attempt", "attempt"]);
|
|
@@ -11321,5 +11336,5 @@ function renderGateReport(result, options = {}) {
|
|
|
11321
11336
|
}
|
|
11322
11337
|
|
|
11323
11338
|
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 };
|
|
11324
|
-
//# sourceMappingURL=chunk-
|
|
11325
|
-
//# sourceMappingURL=chunk-
|
|
11339
|
+
//# sourceMappingURL=chunk-FXGWXSFV.mjs.map
|
|
11340
|
+
//# sourceMappingURL=chunk-FXGWXSFV.mjs.map
|