agent-inspect 6.31.10 → 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.
Files changed (34) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/docs/NESTJS.md +56 -18
  4. package/package.json +1 -1
  5. package/packages/cli/dist/{chunk-JCKC4ZRV.mjs → chunk-MQYHJL3W.mjs} +1035 -833
  6. package/packages/cli/dist/chunk-MQYHJL3W.mjs.map +1 -0
  7. package/packages/cli/dist/index.cjs +2156 -1930
  8. package/packages/cli/dist/index.cjs.map +1 -1
  9. package/packages/cli/dist/index.mjs +32 -9
  10. package/packages/cli/dist/index.mjs.map +1 -1
  11. package/packages/cli/dist/{src-4UD7JNDR.mjs → src-76R6E2LQ.mjs} +3 -3
  12. package/packages/cli/dist/{src-4UD7JNDR.mjs.map → src-76R6E2LQ.mjs.map} +1 -1
  13. package/packages/core/dist/advanced.cjs +2060 -1884
  14. package/packages/core/dist/advanced.cjs.map +1 -1
  15. package/packages/core/dist/advanced.d.cts +56 -4
  16. package/packages/core/dist/advanced.d.ts +56 -4
  17. package/packages/core/dist/advanced.mjs +184 -20
  18. package/packages/core/dist/advanced.mjs.map +1 -1
  19. package/packages/core/dist/checks.cjs +48 -10
  20. package/packages/core/dist/checks.cjs.map +1 -1
  21. package/packages/core/dist/checks.d.cts +2 -2
  22. package/packages/core/dist/checks.d.ts +2 -2
  23. package/packages/core/dist/checks.mjs +1 -1
  24. package/packages/core/dist/{chunk-CPQAOJW4.mjs → chunk-CCYKNAOD.mjs} +50 -12
  25. package/packages/core/dist/chunk-CCYKNAOD.mjs.map +1 -0
  26. package/packages/core/dist/{chunk-7YYS742B.mjs → chunk-M3RJD3BP.mjs} +5 -5
  27. package/packages/core/dist/{chunk-7YYS742B.mjs.map → chunk-M3RJD3BP.mjs.map} +1 -1
  28. package/packages/core/dist/exporters.cjs +3 -3
  29. package/packages/core/dist/exporters.cjs.map +1 -1
  30. package/packages/core/dist/exporters.mjs +1 -1
  31. package/packages/core/dist/{index-EQihlEei.d.cts → index-DACU4Dy1.d.cts} +12 -0
  32. package/packages/core/dist/{index-CgOAGuM5.d.ts → index-b4tIGrzq.d.ts} +12 -0
  33. package/packages/cli/dist/chunk-JCKC4ZRV.mjs.map +0 -1
  34. package/packages/core/dist/chunk-CPQAOJW4.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 6.31.10
4
10
 
5
11
  ### 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.10** · persisted schema `1.0` · Node.js `>=20` · MIT.
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 (harness path)
1
+ # NestJS + AgentInspect
2
2
 
3
- AgentInspect does **not** ship a production NestJS interceptor in v3.2. Use **`@agent-inspect/harness`** to bootstrap real Nest apps for local fixture runs.
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
- ## Recommended path (v3.2)
7
+ ## Paths (keep them distinct)
6
8
 
7
- 1. `npx agent-inspect init` or use [examples/starters/harness-nestjs](../examples/starters/harness-nestjs/)
8
- 2. Wire `createFixtureRunner()` with your `TestingModule` / app bootstrap
9
- 3. Run targets with JSON fixtures — no real model calls by default
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
- ## Out of scope (v3.2)
44
+ ## LangGraph callbacks (env-gated)
34
45
 
35
- - `@agent-inspect/nestjs` production package (demand-gated)
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
- ## Structured logs alternative
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
- If you only need log ingestion, see [examples/recipes/nestjs-json-logging](../examples/recipes/nestjs-json-logging/).
52
+ ## Native Evidence v2 path
42
53
 
43
- ## LangGraph agent callbacks (env-gated)
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
- For Nest services that invoke LangGraph/LangChain with a `callbacks` array, prefer the
46
- blessed recipe [examples/recipes/nestjs-langgraph-local](../examples/recipes/nestjs-langgraph-local/):
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
- - `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 `[]`
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.10",
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",