agent-inspect 1.0.1 → 1.0.3

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/docs/MIGRATION.md DELETED
@@ -1,109 +0,0 @@
1
- # Migration guide (to AgentInspect 1.0)
2
-
3
- This guide summarizes how to move from early AgentInspect MVP usage to **AgentInspect 1.0**.
4
-
5
- AgentInspect remains local-first: it does not introduce any network upload or vendor sink workflows.
6
-
7
- ## Scope
8
-
9
- Covered:
10
-
11
- - manual tracing (`inspectRun`, `step`, `observe`)
12
- - trace directory behavior
13
- - CLI commands (`list`, `view`, `clean`, `logs`, `tail`, `export`, `diff`)
14
- - optional packages (`@agent-inspect/langchain`, `@agent-inspect/tui`)
15
- - schema compatibility guarantees
16
-
17
- Not covered:
18
-
19
- - publish/version bump workflows (see `docs-local/RELEASE-CHECKLIST.md`)
20
- - vendor sinks (not implemented)
21
- - replay (not implemented)
22
- - cost engine (not implemented)
23
-
24
- ## Manual tracing API
25
-
26
- If you were using:
27
-
28
- ```ts
29
- import { inspectRun, step } from "agent-inspect";
30
- ```
31
-
32
- that remains the recommended stable path. AgentInspect 1.0 is specifically about keeping these entry points compatible.
33
-
34
- ### Event names and failure representation
35
-
36
- Manual JSONL event names remain stable:
37
-
38
- - `run_started`
39
- - `run_completed`
40
- - `step_started`
41
- - `step_completed`
42
-
43
- There is **no `step_failed` event**. Step failures are represented as:
44
-
45
- - `step_completed` with `status: "error"`
46
-
47
- Existing `schemaVersion: "0.1"` traces remain readable. No migration command is required.
48
-
49
- ## Trace directory behavior
50
-
51
- - `AGENT_INSPECT_TRACE_DIR` is supported.
52
- - When unset, AgentInspect uses its default local directory (see `docs/CLI.md` and `docs/API.md`).
53
- - Trace files are JSONL and are not automatically rewritten.
54
-
55
- ## CLI changes and additive commands
56
-
57
- Manual inspection commands (`list`, `view`) are stable and local-only.
58
-
59
- The following commands are additive workflows that remain local-only:
60
-
61
- - `logs`: parse structured logs into normalized trees
62
- - `tail`: live-tail structured logs in the terminal
63
- - `export`: export a manual trace as Markdown/HTML/OpenInference-compatible JSON/OTLP JSON (local-only)
64
- - `diff`: compare two manual traces (local, read-only)
65
-
66
- ### `clean` is safety-critical
67
-
68
- `clean` verifies traces before deletion using conservative heuristics. If a file cannot be verified as an AgentInspect trace, it is skipped.
69
-
70
- ## Logs and tail
71
-
72
- - JSON logs are first-class.
73
- - log4js parsing is best-effort.
74
- - No JS object literal parsing or `eval`.
75
- - Redaction is applied to log-derived attributes based on config/default rules.
76
-
77
- ## Export and share safety
78
-
79
- - Exports are **generated locally** and do not upload anywhere.
80
- - Exporters default to **redacted** and **bounded** attribute previews.
81
- - Always review exports before sharing.
82
-
83
- ## Diff and compare
84
-
85
- - Diff compares two existing local traces.
86
- - Diff does not rerun agents, mutate trace files, or call an LLM.
87
-
88
- ## Optional LangChain adapter
89
-
90
- `@agent-inspect/langchain` is optional and separate from core. It uses `@langchain/core` as a **peer dependency**.
91
-
92
- ## Optional TUI
93
-
94
- `@agent-inspect/tui` is optional and separate from core. It contains `ink`/`react` dependencies so the main `agent-inspect` install remains lean.
95
-
96
- ## Breaking changes
97
-
98
- This stabilization effort aims to avoid breaking changes. If a breaking change is ever required:
99
-
100
- - it requires a major version
101
- - it must preserve trace readability where possible
102
- - it must be explicitly documented
103
-
104
- ## Known non-migrations
105
-
106
- - No vendor sink migration exists because there are **no vendor sinks** in core.
107
- - No replay migration exists because replay is **not implemented**.
108
- - No cost engine migration exists because cost calculation is **not implemented**.
109
-