agent-inspect 2.6.0 → 3.1.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 CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 70f3fb2: v3.1 adoption train: public `@agent-inspect/harness`, `agent-inspect init` and `doctor` commands, adoption starters, and onboarding docs.
8
+
9
+ ## Unreleased
10
+
11
+ Post-v3 adoption train (v3.1 → v3.5) in progress. See [docs/implementation/ROADMAP-V3.0-TO-V3.5.md](docs/implementation/ROADMAP-V3.0-TO-V3.5.md).
12
+
13
+ ### v3.1 (in progress)
14
+
15
+ - `agent-inspect init` and `agent-inspect doctor` CLI commands
16
+ - Public `@agent-inspect/harness` (first publish pending)
17
+ - Adoption starters under `examples/starters/`
18
+
19
+ ## 3.0.0
20
+
21
+ ### Major Changes
22
+
23
+ - a1f743f: v3.0 extension contracts: `@agent-inspect/adapter-sdk` with registration, conformance, privacy helpers, transform/renderer contracts, optional rebuildable indexer, and community extension registry documentation. Linked major semver bump; persisted trace schema 1.0 unchanged.
24
+
3
25
  ## 2.6.0
4
26
 
5
27
  ### Minor Changes
package/README.md CHANGED
@@ -22,7 +22,17 @@ agent-inspect gives those runs **structure**: an **execution tree** you can read
22
22
 
23
23
  ## Install
24
24
 
25
- Current npm release line: **2.4.0** for the linked public packages (`agent-inspect`, adapters, reporters, redact, eval, mcp). **v2.4.0** adds multi-run **session** navigation (`sessions` / `session` CLI), session-aware `search` and `check`, and optional **`@agent-inspect/mcp`** client telemetry.
25
+ Current npm release line: **3.0.0** for the linked public packages (`agent-inspect`, adapters, reporters, redact, eval, mcp, guardrails, circuit, viewer, mcp-server, adapter-sdk). **v3.0.0** adds extension contracts and **`@agent-inspect/adapter-sdk`** for third-party adapter authoring; persisted trace schema remains **1.0**.
26
+
27
+ **v3.1 adoption path (in progress):**
28
+
29
+ 1. `npx agent-inspect init` — local config + demo (no auto-install)
30
+ 2. `observe()` or a framework adapter
31
+ 3. `@agent-inspect/harness` for real project runners
32
+ 4. `npx agent-inspect doctor` when setup fails
33
+ 5. `check` / `eval` / `redact` / `report` for CI and safe sharing
34
+
35
+ See [examples/starters/](examples/starters/README.md) and [docs/GETTING-STARTED.md](docs/GETTING-STARTED.md).
26
36
 
27
37
  ```bash
28
38
  npm install agent-inspect
package/docs/CLI.md CHANGED
@@ -27,6 +27,8 @@ Core commands:
27
27
  - `export` — export manual traces to Markdown/HTML/OpenInference/OTLP JSON (local only)
28
28
  - `open` — read supported local trace files, directories, or stdin through the canonical reader pipeline
29
29
  - `migrate` — convert one local AgentInspect JSONL file to schema 1.0 with dry-run or explicit output
30
+ - `init` — scaffold local AgentInspect config and demo files (v3.1+)
31
+ - `doctor` — diagnose local setup without network or installs (v3.1+)
30
32
  - `check` — run deterministic local trace checks with stable JSON and exit codes
31
33
  - `eval` — run deterministic local evals over existing traces
32
34
  - `redact` — redact a local JSON/JSONL file or trace copy
@@ -10,6 +10,25 @@ AgentInspect is a **local-first execution-tree debugger** for TypeScript AI agen
10
10
  pnpm add agent-inspect
11
11
  ```
12
12
 
13
+ ### Quick bootstrap (v3.1+)
14
+
15
+ ```bash
16
+ npx agent-inspect init
17
+ npx agent-inspect doctor
18
+ ```
19
+
20
+ `init` writes `agent-inspect.config.ts`, `.agent-inspect/`, and a deterministic demo — **without installing dependencies**. `doctor` checks Node, trace directory permissions, and optional adapter packages (no network).
21
+
22
+ Framework-specific init:
23
+
24
+ ```bash
25
+ npx agent-inspect init --framework ai-sdk
26
+ npx agent-inspect init --framework openai-agents
27
+ npx agent-inspect init --framework langchain
28
+ ```
29
+
30
+ Blessed starters: [examples/starters/](../examples/starters/README.md)
31
+
13
32
  The `agent-inspect` package includes the CLI binary via its `bin` field:
14
33
 
15
34
  ```bash
package/docs/MIGRATION.md CHANGED
@@ -65,3 +65,27 @@ Nothing uploads by default. Manual metadata is redacted before disk by default,
65
65
  - Root/core does not require optional adapter dependencies.
66
66
  - Optional adapter APIs are experimental and package-scoped.
67
67
  - No destructive migration is required for existing trace directories.
68
+
69
+ ## Upgrading from 2.x to 3.0
70
+
71
+ v3.0 is a **linked npm major** for the public package family. **Persisted trace schema remains 1.0** — existing `.jsonl` files do not need rewriting.
72
+
73
+ ### What changes
74
+
75
+ - New optional package [`@agent-inspect/adapter-sdk`](https://www.npmjs.com/package/@agent-inspect/adapter-sdk) for third-party adapter authoring (registration, conformance, privacy checklist, transform/renderer/indexer contracts).
76
+ - Community extension process documented in [COMMUNITY-EXTENSION-REGISTRY.md](./COMMUNITY-EXTENSION-REGISTRY.md).
77
+ - Extension interfaces are versioned in `@agent-inspect/adapter-sdk@3.x`; breaking extension API changes ship there, not in silent root patches.
78
+
79
+ ### What stays the same
80
+
81
+ - Root imports (`inspectRun`, `step`, `observe`, `createInspector`, etc.) and subpath layout from v2.
82
+ - Local-first capture, metadata-only adapter defaults, and explicit migration via `agent-inspect migrate` for schema upgrades.
83
+ - Optional packages (`viewer`, `mcp-server`, adapters, reporters) remain opt-in peer dependencies.
84
+
85
+ ### Upgrade steps
86
+
87
+ 1. Bump linked dependencies together, e.g. `agent-inspect@^3.0.0` and matching `@agent-inspect/*` versions.
88
+ 2. Re-run your trace/check CI after bump; no trace file migration is required for 2.6 → 3.0.
89
+ 3. For new third-party adapters, use `@agent-inspect/adapter-sdk` and follow the community registry checklist.
90
+
91
+ See [V3-EXTENSION-CONTRACTS.md](./proposals/V3-EXTENSION-CONTRACTS.md) and [V3.0.0-RELEASE-READINESS.md](./implementation/release-trains/V3.0.0-RELEASE-READINESS.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-inspect",
3
- "version": "2.6.0",
3
+ "version": "3.1.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Local-first execution-tree debugger for TypeScript AI agents",
@@ -178,7 +178,7 @@
178
178
  },
179
179
  "scripts": {
180
180
  "clean": "pnpm -r exec -- rm -rf dist",
181
- "build": "pnpm exec tsup --config tsup.core.config.ts && pnpm exec tsup --config tsup.cli.config.ts && pnpm exec tsup --config tsup.langchain.config.ts && pnpm exec tsup --config tsup.tui.config.ts && pnpm exec tsup --config tsup.ai-sdk.config.ts && pnpm exec tsup --config tsup.vitest.config.ts && pnpm exec tsup --config tsup.jest.config.ts && pnpm exec tsup --config tsup.openai-agents.config.ts && pnpm exec tsup --config tsup.harness.config.ts && pnpm exec tsup --config tsup.redact.config.ts && pnpm exec tsup --config tsup.eval.config.ts && pnpm exec tsup --config tsup.mcp.config.ts && pnpm exec tsup --config tsup.guardrails.config.ts && pnpm exec tsup --config tsup.circuit.config.ts && pnpm exec tsup --config tsup.viewer.config.ts && pnpm exec tsup --config tsup.mcp-server.config.ts",
181
+ "build": "pnpm exec tsup --config tsup.core.config.ts && pnpm exec tsup --config tsup.cli.config.ts && pnpm exec tsup --config tsup.langchain.config.ts && pnpm exec tsup --config tsup.tui.config.ts && pnpm exec tsup --config tsup.ai-sdk.config.ts && pnpm exec tsup --config tsup.vitest.config.ts && pnpm exec tsup --config tsup.jest.config.ts && pnpm exec tsup --config tsup.openai-agents.config.ts && pnpm exec tsup --config tsup.harness.config.ts && pnpm exec tsup --config tsup.redact.config.ts && pnpm exec tsup --config tsup.eval.config.ts && pnpm exec tsup --config tsup.mcp.config.ts && pnpm exec tsup --config tsup.guardrails.config.ts && pnpm exec tsup --config tsup.circuit.config.ts && pnpm exec tsup --config tsup.viewer.config.ts && pnpm exec tsup --config tsup.mcp-server.config.ts && pnpm exec tsup --config tsup.adapter-sdk.config.ts",
182
182
  "typecheck": "tsc --noEmit",
183
183
  "test": "vitest run",
184
184
  "test:watch": "vitest",