agent-inspect 4.4.0 → 5.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 +12 -0
- package/docs/CLI.md +67 -0
- package/package.json +1 -1
- package/packages/cli/dist/chunk-TSIQUIPF.mjs +8505 -0
- package/packages/cli/dist/chunk-TSIQUIPF.mjs.map +1 -0
- package/packages/cli/dist/index.cjs +10851 -9298
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +4769 -8027
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/cli/dist/{src-FJOHPC4X.mjs → src-2SZWGKMM.mjs} +3 -3
- package/packages/cli/dist/{src-FJOHPC4X.mjs.map → src-2SZWGKMM.mjs.map} +1 -1
- package/packages/core/dist/advanced.cjs +3741 -16
- package/packages/core/dist/advanced.cjs.map +1 -1
- package/packages/core/dist/advanced.d.cts +222 -1
- package/packages/core/dist/advanced.d.ts +222 -1
- package/packages/core/dist/advanced.mjs +1092 -9
- package/packages/core/dist/advanced.mjs.map +1 -1
- package/packages/core/dist/checks.mjs +2 -1648
- package/packages/core/dist/checks.mjs.map +1 -1
- package/packages/core/dist/chunk-QLYOCCEF.mjs +1650 -0
- package/packages/core/dist/chunk-QLYOCCEF.mjs.map +1 -0
- package/packages/core/dist/chunk-X2FLDF7M.mjs +1581 -0
- package/packages/core/dist/chunk-X2FLDF7M.mjs.map +1 -0
- package/packages/core/dist/readers.mjs +3 -1579
- package/packages/core/dist/readers.mjs.map +1 -1
- package/packages/cli/dist/chunk-ORHDQUT6.mjs +0 -3862
- package/packages/cli/dist/chunk-ORHDQUT6.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 44e9684: Add cohort analysis v2: baseline/candidate comparison, grouping, metrics, and `agent-inspect cohort` CLI with JSON/Markdown/HTML reports.
|
|
8
|
+
|
|
9
|
+
## 5.0.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- c5e3b16: Add trace suite config (`agent-inspect.suite.json`) with `suite init`, `validate`, `list`, `run`, and `report` commands for local CI trajectory checks.
|
|
14
|
+
|
|
3
15
|
## 4.4.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/docs/CLI.md
CHANGED
|
@@ -896,6 +896,73 @@ npx agent-inspect bundle --since 24h --dir ./.agent-inspect --json
|
|
|
896
896
|
|
|
897
897
|
Recipe: [shareable-bundle-basic](../examples/recipes/shareable-bundle-basic/README.md).
|
|
898
898
|
|
|
899
|
+
### 6.25 `suite`
|
|
900
|
+
|
|
901
|
+
Define and run **local trace suites** for CI trajectory checks (v5.0+). Suites read existing traces only — no agent replay, no model calls, no upload.
|
|
902
|
+
|
|
903
|
+
```bash
|
|
904
|
+
agent-inspect suite init
|
|
905
|
+
agent-inspect suite validate [--config path]
|
|
906
|
+
agent-inspect suite list [--config path]
|
|
907
|
+
agent-inspect suite run [--config path] [--json] [--markdown] [-o dir]
|
|
908
|
+
agent-inspect suite report --input <suite-run.json> [--format markdown|json]
|
|
909
|
+
```
|
|
910
|
+
|
|
911
|
+
Default config file: `agent-inspect.suite.json` in the current directory.
|
|
912
|
+
|
|
913
|
+
Options (shared):
|
|
914
|
+
|
|
915
|
+
- `--config <path>` — suite config (`.json`, `.js`, `.mjs`, `.cjs`)
|
|
916
|
+
|
|
917
|
+
`run` also supports:
|
|
918
|
+
|
|
919
|
+
- `-o, --output <dir>` — write JSON run artifact (default: `.agent-inspect/suite-runs`)
|
|
920
|
+
- `--json` / `--markdown` — structured or readable output
|
|
921
|
+
|
|
922
|
+
Case fields include `requireTools`, `forbidTools`, `maxDurationMs`, and `expectedObservations` (outcome names that must be `passed`).
|
|
923
|
+
|
|
924
|
+
Example:
|
|
925
|
+
|
|
926
|
+
```bash
|
|
927
|
+
npx agent-inspect suite init
|
|
928
|
+
npx agent-inspect suite run --config fixtures/configs/outcome-suite.suite.json --json
|
|
929
|
+
```
|
|
930
|
+
|
|
931
|
+
Recipe: [trace-suite-basic](../examples/recipes/trace-suite-basic/README.md).
|
|
932
|
+
|
|
933
|
+
### 6.26 `cohort`
|
|
934
|
+
|
|
935
|
+
Compare **baseline vs candidate** trace cohorts for regressions (v5.1+). Reads local traces only — no agent replay, no model calls, no upload.
|
|
936
|
+
|
|
937
|
+
```bash
|
|
938
|
+
agent-inspect cohort --dir <path> --baseline <label> --candidate <label> [options]
|
|
939
|
+
```
|
|
940
|
+
|
|
941
|
+
Options:
|
|
942
|
+
|
|
943
|
+
- `--dir <path>` — trace directory (default: `.agent-inspect/traces`)
|
|
944
|
+
- `--baseline <label>` / `--candidate <label>` — cohort labels from `run_started.metadata`
|
|
945
|
+
- `--cohort-key <key>` — metadata key for labels (default: `cohort`)
|
|
946
|
+
- `--group-by <spec>` — `model`, `session`, `group`, or `metadata.<key>` (default: `model`)
|
|
947
|
+
- `--metric <list>` — comma-separated metrics (`errorRate`, `duration`, `toolChoice`, `observationFailure`, …)
|
|
948
|
+
- `--format <format>` — `markdown`, `json`, or `html` (default: `markdown`)
|
|
949
|
+
- `-o, --output <dir>` — write `cohort-results.json`, `cohort-summary.md`, `cohort-report.html`
|
|
950
|
+
- `--json` — print deterministic JSON result
|
|
951
|
+
|
|
952
|
+
Exit code **1** when any comparison flags a regression.
|
|
953
|
+
|
|
954
|
+
Example:
|
|
955
|
+
|
|
956
|
+
```bash
|
|
957
|
+
npx agent-inspect cohort \
|
|
958
|
+
--dir fixtures/cohorts/before-after \
|
|
959
|
+
--baseline before \
|
|
960
|
+
--candidate after \
|
|
961
|
+
--group-by model
|
|
962
|
+
```
|
|
963
|
+
|
|
964
|
+
Recipe: [cohort-baseline-candidate](../examples/recipes/cohort-baseline-candidate/README.md).
|
|
965
|
+
|
|
899
966
|
## 7. Optional TUI behavior
|
|
900
967
|
|
|
901
968
|
`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