agent-inspect 4.0.0 → 4.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 +11 -0
- package/docs/CLI.md +20 -0
- package/package.json +2 -2
- package/packages/cli/dist/chunk-MT5G7JFO.mjs +3234 -0
- package/packages/cli/dist/chunk-MT5G7JFO.mjs.map +1 -0
- package/packages/cli/dist/index.cjs +2406 -683
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +384 -3414
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/cli/dist/src-DUGEOAZ7.mjs +1157 -0
- package/packages/cli/dist/src-DUGEOAZ7.mjs.map +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add the optional local trace index (v4.1).
|
|
8
|
+
|
|
9
|
+
- New optional package `@agent-inspect/index-sqlite`: a disposable, rebuildable SQLite index over AgentInspect JSONL traces for faster local queries. JSONL stays the source of truth, trace files are never mutated, deleting the index is always safe, and there is no network access. SQLite (`better-sqlite3`) lives only in this optional package — never in root/core.
|
|
10
|
+
- New `agent-inspect index sqlite` CLI subcommands (`build`, `rebuild`, `status`, `query`, `clean`) that load the optional package on demand and print an install hint when it is absent.
|
|
11
|
+
- Non-throwing read APIs (`queryRuns`, `indexStatus`, `isIndexStale`) with corruption/staleness recovery so callers can transparently fall back to a directory scan.
|
|
12
|
+
- Docs: `docs/INDEX.md` plus `docs/CLI.md` reference.
|
|
13
|
+
|
|
3
14
|
## 4.0.0
|
|
4
15
|
|
|
5
16
|
### Major Changes
|
package/docs/CLI.md
CHANGED
|
@@ -30,6 +30,7 @@ Core commands:
|
|
|
30
30
|
- `init` — scaffold local AgentInspect config and demo files (v3.1+)
|
|
31
31
|
- `doctor` — diagnose local setup without network or installs (v3.1+)
|
|
32
32
|
- `workspace` — manage a project-local trace workspace (`.agent-inspect/workspace.json`) (v4.0+)
|
|
33
|
+
- `index sqlite` — optional SQLite-backed trace index for faster queries (requires `@agent-inspect/index-sqlite`) (v4.1+)
|
|
33
34
|
- `check` — run deterministic local trace checks with stable JSON and exit codes
|
|
34
35
|
- `eval` — run deterministic local evals over existing traces
|
|
35
36
|
- `redact` — redact a local JSON/JSONL file or trace copy
|
|
@@ -829,6 +830,25 @@ agent-inspect workspace path [--json]
|
|
|
829
830
|
|
|
830
831
|
All subcommands accept `--json` for deterministic output.
|
|
831
832
|
|
|
833
|
+
### 6.23 `index sqlite`
|
|
834
|
+
|
|
835
|
+
Optional SQLite-backed index that accelerates local queries over large trace directories. Added in v4.1. Requires the optional `@agent-inspect/index-sqlite` package; the core CLI does not depend on SQLite. The index is derived from JSONL and always safe to delete — JSONL remains the source of truth and trace files are never mutated. Local-only; no network. See [INDEX.md](INDEX.md) for the full model.
|
|
836
|
+
|
|
837
|
+
```bash
|
|
838
|
+
agent-inspect index sqlite build [--dir <path>] [--max-runs <n>] [--json]
|
|
839
|
+
agent-inspect index sqlite rebuild [--dir <path>] [--max-runs <n>] [--json]
|
|
840
|
+
agent-inspect index sqlite status [--dir <path>] [--json]
|
|
841
|
+
agent-inspect index sqlite query [--dir <path>] [--status <s>] [--session <id>] [--name <q>] [--kind <k>] [--tool <q>] [--limit <n>] [--json]
|
|
842
|
+
agent-inspect index sqlite clean [--dir <path>] [--json]
|
|
843
|
+
```
|
|
844
|
+
|
|
845
|
+
- `build` / `rebuild` — build or fully rebuild `trace-index.sqlite` from the trace directory. Rebuilds are idempotent; a corrupt prior index is discarded and rebuilt cleanly.
|
|
846
|
+
- `status` — report index health, run/step counts, build time, and staleness (stale when any trace is newer than the index).
|
|
847
|
+
- `query` — filter indexed runs by status, session, name, step kind, or tool. Exits non-zero with an install/build hint when no usable index is present.
|
|
848
|
+
- `clean` — delete the index database (and its WAL/SHM sidecars). Traces are never touched.
|
|
849
|
+
|
|
850
|
+
If `@agent-inspect/index-sqlite` is not installed, these subcommands print a short install hint and exit non-zero.
|
|
851
|
+
|
|
832
852
|
## 7. Optional TUI behavior
|
|
833
853
|
|
|
834
854
|
`view --tui` delegates to `@agent-inspect/tui` and requires an interactive terminal. If the package is not installed, the CLI prints a short install hint.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-inspect",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Trace, check, and safely share TypeScript AI-agent runs locally — no account, no upload, metadata-only by default",
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
},
|
|
207
207
|
"scripts": {
|
|
208
208
|
"clean": "pnpm -r exec -- rm -rf dist",
|
|
209
|
-
"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 && pnpm exec tsup --config tsup.vscode.config.ts",
|
|
209
|
+
"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 && pnpm exec tsup --config tsup.vscode.config.ts && pnpm exec tsup --config tsup.index-sqlite.config.ts",
|
|
210
210
|
"typecheck": "tsc --noEmit",
|
|
211
211
|
"test": "vitest run",
|
|
212
212
|
"test:watch": "vitest",
|