agent-inspect 6.31.9 → 6.31.11
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 +1 -1
- package/docs/NESTJS.md +56 -18
- package/package.json +1 -1
- package/packages/cli/dist/{chunk-SWUZRRDT.mjs → chunk-MQYHJL3W.mjs} +2216 -1938
- package/packages/cli/dist/chunk-MQYHJL3W.mjs.map +1 -0
- package/packages/cli/dist/index.cjs +975 -671
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +32 -9
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/cli/dist/{src-XFIPYODW.mjs → src-76R6E2LQ.mjs} +3 -3
- package/packages/cli/dist/{src-XFIPYODW.mjs.map → src-76R6E2LQ.mjs.map} +1 -1
- package/packages/core/dist/advanced.cjs +2079 -1879
- package/packages/core/dist/advanced.cjs.map +1 -1
- package/packages/core/dist/advanced.d.cts +56 -4
- package/packages/core/dist/advanced.d.ts +56 -4
- package/packages/core/dist/advanced.mjs +188 -23
- package/packages/core/dist/advanced.mjs.map +1 -1
- package/packages/core/dist/checks.cjs +126 -9
- package/packages/core/dist/checks.cjs.map +1 -1
- package/packages/core/dist/checks.d.cts +3 -3
- package/packages/core/dist/checks.d.ts +3 -3
- package/packages/core/dist/checks.mjs +3 -2
- package/packages/core/dist/{chunk-L5WLVBW4.mjs → chunk-AHUZNHFI.mjs} +4 -55
- package/packages/core/dist/chunk-AHUZNHFI.mjs.map +1 -0
- package/packages/core/dist/{chunk-2CCRUI42.mjs → chunk-CCYKNAOD.mjs} +119 -12
- package/packages/core/dist/chunk-CCYKNAOD.mjs.map +1 -0
- package/packages/core/dist/{chunk-7YYS742B.mjs → chunk-M3RJD3BP.mjs} +5 -5
- package/packages/core/dist/{chunk-7YYS742B.mjs.map → chunk-M3RJD3BP.mjs.map} +1 -1
- package/packages/core/dist/{chunk-2IRRUNIN.mjs → chunk-OAUNS5CS.mjs} +3 -3
- package/packages/core/dist/{chunk-2IRRUNIN.mjs.map → chunk-OAUNS5CS.mjs.map} +1 -1
- package/packages/core/dist/{chunk-IJJSPJXV.mjs → chunk-QOC3PJO3.mjs} +4 -4
- package/packages/core/dist/{chunk-IJJSPJXV.mjs.map → chunk-QOC3PJO3.mjs.map} +1 -1
- package/packages/core/dist/chunk-S6LQBLX5.mjs +67 -0
- package/packages/core/dist/chunk-S6LQBLX5.mjs.map +1 -0
- package/packages/core/dist/{chunk-3SPBELJB.mjs → chunk-SSG3ICI4.mjs} +16 -2
- package/packages/core/dist/chunk-SSG3ICI4.mjs.map +1 -0
- package/packages/core/dist/exporters.cjs +3 -3
- package/packages/core/dist/exporters.cjs.map +1 -1
- package/packages/core/dist/exporters.mjs +1 -1
- package/packages/core/dist/{index-EQihlEei.d.cts → index-DACU4Dy1.d.cts} +12 -0
- package/packages/core/dist/{index-CgOAGuM5.d.ts → index-b4tIGrzq.d.ts} +12 -0
- package/packages/core/dist/index.cjs +77 -0
- package/packages/core/dist/index.cjs.map +1 -1
- package/packages/core/dist/index.mjs +3 -2
- package/packages/core/dist/index.mjs.map +1 -1
- package/packages/core/dist/persisted.cjs +11 -0
- package/packages/core/dist/persisted.cjs.map +1 -1
- package/packages/core/dist/persisted.mjs +4 -3
- package/packages/core/dist/persisted.mjs.map +1 -1
- package/packages/core/dist/{programmatic-gZTWLObB.d.cts → programmatic-BLlC7Ytq.d.cts} +1 -1
- package/packages/core/dist/{programmatic-gZTWLObB.d.ts → programmatic-BLlC7Ytq.d.ts} +1 -1
- package/packages/core/dist/readers.cjs +11 -0
- package/packages/core/dist/readers.cjs.map +1 -1
- package/packages/core/dist/readers.d.cts +1 -1
- package/packages/core/dist/readers.d.ts +1 -1
- package/packages/core/dist/readers.mjs +4 -3
- package/packages/cli/dist/chunk-SWUZRRDT.mjs.map +0 -1
- package/packages/core/dist/chunk-2CCRUI42.mjs.map +0 -1
- package/packages/core/dist/chunk-3SPBELJB.mjs.map +0 -1
- package/packages/core/dist/chunk-L5WLVBW4.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 6.31.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7180204: C06–C13 suite/capture trust follow-through: explain logical lifecycle counts; TraceCheckSummary rule-status totals and Execution wording in `what`; mock OpenAI Node chat.completions recipe; suite `expect` for semantic failures; Nest Evidence v2 docs; skip exact `[REDACTED]` key-noise in `@agent-inspect/redact`; additive Evidence `inputs` provenance bindings; bounded consumer smoke (disk reread + evidence verify).
|
|
8
|
+
|
|
9
|
+
## 6.31.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 1327356: Return actionable diagnostics for reversed evaluateTraceContract arguments and warn (without throwing) when inspectRun is passed an unsupported writer option, pointing callers at createInspector({ writer }).
|
|
14
|
+
|
|
3
15
|
## 6.31.9
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -213,7 +213,7 @@ The root package is enough for custom capture, the CLI, checks, and Evidence wor
|
|
|
213
213
|
|
|
214
214
|
## Status and documentation
|
|
215
215
|
|
|
216
|
-
**Current published baseline:** **6.31.
|
|
216
|
+
**Current published baseline:** **6.31.11** · persisted schema `1.0` · Node.js `>=20` · MIT.
|
|
217
217
|
|
|
218
218
|
Legacy v0.1 and v0.2 traces remain readable. Check the npm badge and [changelog](CHANGELOG.md) for the current published version.
|
|
219
219
|
|
package/docs/NESTJS.md
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
# NestJS + AgentInspect
|
|
1
|
+
# NestJS + AgentInspect
|
|
2
2
|
|
|
3
|
-
AgentInspect does **not** ship a production NestJS interceptor
|
|
3
|
+
AgentInspect does **not** ship a production NestJS interceptor package. Use one of
|
|
4
|
+
the maintained paths below depending on whether you need harness fixture runs,
|
|
5
|
+
LangGraph callbacks, structured log ingestion, or Evidence v2 packaging.
|
|
4
6
|
|
|
5
|
-
##
|
|
7
|
+
## Paths (keep them distinct)
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
| Path | When to use | Starter / recipe |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| Harness fixture runner | Bootstrap a real Nest `TestingModule` for local fixture runs | [examples/starters/harness-nestjs](../examples/starters/harness-nestjs/) |
|
|
12
|
+
| LangGraph callbacks | Nest services that already pass a `callbacks` array | [examples/recipes/nestjs-langgraph-local](../examples/recipes/nestjs-langgraph-local/) |
|
|
13
|
+
| Structured logs | Log ingestion without an agent adapter | [examples/recipes/nestjs-json-logging](../examples/recipes/nestjs-json-logging/) |
|
|
14
|
+
| Direct SDK / Evidence v2 | Explicit `createInspector` / writer + share-checked bundle | this guide + [shareable-bundle-basic](../examples/recipes/shareable-bundle-basic/) |
|
|
15
|
+
|
|
16
|
+
Manual tracing (`createInspector` / `inspectRun`) and framework adapters
|
|
17
|
+
(`@agent-inspect/langchain`) remain separate: do not mix duplicate manual +
|
|
18
|
+
adapter spans for the same invoke.
|
|
19
|
+
|
|
20
|
+
## Harness path
|
|
10
21
|
|
|
11
22
|
```ts
|
|
12
23
|
import { createFixtureRunner, defineTarget } from "@agent-inspect/harness";
|
|
@@ -30,27 +41,54 @@ await createFixtureRunner({
|
|
|
30
41
|
}).runFromArgv();
|
|
31
42
|
```
|
|
32
43
|
|
|
33
|
-
##
|
|
44
|
+
## LangGraph callbacks (env-gated)
|
|
34
45
|
|
|
35
|
-
|
|
36
|
-
- Redis/SQS mocking in harness
|
|
37
|
-
- Global monkey-patching of Nest providers
|
|
46
|
+
Prefer [nestjs-langgraph-local](../examples/recipes/nestjs-langgraph-local/):
|
|
38
47
|
|
|
39
|
-
|
|
48
|
+
- `AGENT_INSPECT` gate + lazy dynamic import (no adapter load when disabled)
|
|
49
|
+
- metadata-only capture and workspace-relative `traceDir`
|
|
50
|
+
- no production-path change when the helper returns `[]`
|
|
40
51
|
|
|
41
|
-
|
|
52
|
+
## Native Evidence v2 path
|
|
42
53
|
|
|
43
|
-
|
|
54
|
+
Use the same CLI builders Nest consumers already get from AgentInspect — do not
|
|
55
|
+
append unregistered files to a verified directory or use `--unexpected ignore`
|
|
56
|
+
to paper over a broken bundle.
|
|
44
57
|
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
```bash
|
|
59
|
+
# After a local Nest/harness run wrote JSONL under .agent-inspect
|
|
60
|
+
npx agent-inspect check <run-id> --dir .agent-inspect --json
|
|
61
|
+
npx agent-inspect bundle <run-id> --dir .agent-inspect --out ./evidence-out --json
|
|
62
|
+
npx agent-inspect bundle verify ./evidence-out --json
|
|
63
|
+
```
|
|
47
64
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
65
|
+
Programmatic packaging uses `buildEvidenceManifest` / `verifyEvidenceDirectory`
|
|
66
|
+
from `agent-inspect/advanced` (see [reproducible-repair-evidence](../examples/recipes/reproducible-repair-evidence/)
|
|
67
|
+
and [shareable-bundle-basic](../examples/recipes/shareable-bundle-basic/)).
|
|
68
|
+
|
|
69
|
+
Acceptance for a fresh consumer:
|
|
70
|
+
|
|
71
|
+
1. Documented commands produce a share-checked Evidence v2 directory
|
|
72
|
+
2. `bundle verify` reports checked files with zero issues on an intact package
|
|
73
|
+
3. Tampered or missing file bytes fail verification
|
|
74
|
+
4. Contract binding / custom-rule partiality remain visible when present
|
|
75
|
+
5. Verified hashes do **not** prove the Nest app was correctly instrumented —
|
|
76
|
+
capture assertions and human review stay separate verdicts
|
|
77
|
+
|
|
78
|
+
For direct OpenAI Node capture without Nest, see
|
|
79
|
+
[openai-node-chat-completions](../examples/recipes/openai-node-chat-completions/).
|
|
80
|
+
|
|
81
|
+
## Out of scope
|
|
82
|
+
|
|
83
|
+
- `@agent-inspect/nestjs` production package (demand-gated)
|
|
84
|
+
- Redis/SQS mocking in harness
|
|
85
|
+
- Global monkey-patching of Nest providers
|
|
86
|
+
- Treating verified Evidence hashes as instrumentation proof
|
|
51
87
|
|
|
52
88
|
## Related
|
|
53
89
|
|
|
54
90
|
- [`@agent-inspect/harness`](../packages/harness/README.md)
|
|
55
91
|
- [examples/starters/harness-nestjs](../examples/starters/harness-nestjs/)
|
|
56
92
|
- [examples/recipes/nestjs-langgraph-local](../examples/recipes/nestjs-langgraph-local/)
|
|
93
|
+
- [docs/case-studies/nestjs-langgraph-local-evidence.md](./case-studies/nestjs-langgraph-local-evidence.md)
|
|
94
|
+
- [docs/SUPPORT-REPRODUCTION.md](./SUPPORT-REPRODUCTION.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-inspect",
|
|
3
|
-
"version": "6.31.
|
|
3
|
+
"version": "6.31.11",
|
|
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",
|