ur-agent 1.21.0 → 1.22.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,38 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.22.0
4
+
5
+ ### Added
6
+ - **Agent execution metrics in `ur eval`.** `ur eval run` now captures
7
+ cost, input/output tokens, model used, API duration, files changed,
8
+ insertions/deletions, command failures, human-edit heuristics, and optional
9
+ per-case `testCommand` results. Metrics are written by the headless child
10
+ via `UR_EVAL_METRICS_FILE`, so future parallel eval runs stay safe.
11
+ - **Richer eval dashboard.** `ur eval dashboard` and
12
+ `ur eval report <suite> --dashboard` generate local HTML dashboards with
13
+ summary cards (pass rate, test pass rate, cost, tokens, files changed, command
14
+ failures, human edits, duration) and a per-case timeline showing model, time,
15
+ cost, tokens, diffs, test result, and output preview.
16
+ - **Per-case run metrics persistence.** `ur eval run <suite> --metrics` writes
17
+ each case's metrics to `.ur/evals/.runs/<suite>/<case>.json` for downstream
18
+ analysis.
19
+ - **Benchmark-style reporting.** `formatEvalReport` prints aggregate cost,
20
+ tokens, files changed, command failures, human edits, duration, and test pass
21
+ rate alongside the pass-rate summary.
22
+
23
+ ### Changed
24
+ - **`makeCliEvalRunner` resets cost state per case**, reads child metrics,
25
+ gathers `git diff --stat` totals, runs `expect.testCommand` when present, and
26
+ returns an `EvalRunMetrics` object with best-effort command-failure and
27
+ human-edit counts.
28
+ - **Version bump.** Updated from 1.21.0 to 1.22.0 across `package.json`,
29
+ `bunfig.toml`, and the VS Code extension manifest.
30
+
31
+ ### Verified
32
+ - Added `test/evalMetrics.test.ts` and `test/evalDashboard.test.ts` covering
33
+ child metrics serialization, report aggregation, dashboard HTML rendering,
34
+ HTML escaping, and run-metrics persistence.
35
+
3
36
  ## 1.21.0
4
37
 
5
38
  ### Added
package/README.md CHANGED
@@ -144,6 +144,9 @@ as first-class subcommands in the shipped CLI.
144
144
  | `ur artifacts` | Capture diffs, test runs, notes, and review feedback under `.ur/artifacts/`. |
145
145
  | `ur claim-ledger` | Map generated claims to file, web, MCP, tool, or user sources. |
146
146
  | `ur browser-qa` | Validate and smoke-run browser QA replay fixtures. |
147
+ | `ur eval run` | Run an eval suite and grade outputs; optionally capture cost/tokens/files/test metrics. |
148
+ | `ur eval report` | Show a saved eval report; `--dashboard` writes a single-suite HTML timeline. |
149
+ | `ur eval dashboard` | Generate the local-first HTML dashboard across all saved reports. |
147
150
  | `ur eval bench` | Import local SWE-bench, Terminal-Bench, or Aider Polyglot exports. |
148
151
  | `ur model-doctor` | Inspect Ollama models and report likely agent capabilities. |
149
152
  | `ur model-route` | Recommend a local model for a task by capability fit. |
@@ -187,6 +190,9 @@ ur artifacts capture-tests --command "bun test"
187
190
  ur agent-task pr --create --dry-run
188
191
  ur acp serve --port 8123
189
192
  ur exec "add tests for the parser" --concurrency 4 --json
193
+ ur eval run starter --metrics --json
194
+ ur eval report starter --dashboard
195
+ ur eval dashboard
190
196
  ```
191
197
 
192
198
  ## Project Context
@@ -296,6 +302,7 @@ CLI. Rebuild it after source, version, or macro changes.
296
302
  - [Configuration](docs/CONFIGURATION.md)
297
303
  - [Agent Feature Expansion](docs/AGENT_FEATURES.md)
298
304
  - [Agent Trend Coverage](docs/AGENT_TRENDS.md)
305
+ - [1.22.0 Upgrade Notes](docs/AGENT_UPGRADE_1.22.0.md)
299
306
  - [1.20.0 Upgrade Notes](docs/AGENT_UPGRADE_1.20.0.md)
300
307
  - [1.19.0 Upgrade Notes](docs/AGENT_UPGRADE_1.19.0.md)
301
308
  - [1.18.0 Upgrade Notes](docs/AGENT_UPGRADE_1.18.0.md)