ur-agent 1.20.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 +62 -0
- package/README.md +12 -0
- package/dist/cli.js +1992 -1032
- package/docs/AGENT_FEATURES.md +22 -0
- package/docs/AGENT_UPGRADE_1.21.0.md +58 -0
- package/docs/AGENT_UPGRADE_1.22.0.md +48 -0
- package/docs/USAGE.md +9 -0
- package/documentation/app.js +29 -10
- package/documentation/index.html +1 -1
- package/extensions/vscode-ur-inline-diffs/package.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,67 @@
|
|
|
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
|
+
|
|
36
|
+
## 1.21.0
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
- **Agent skill runner (`agentSkillRunner.ts`).** Reusable helper that wraps
|
|
40
|
+
`startBackgroundTask({ worktree: true, pr: true })`, polls the background
|
|
41
|
+
manifest to completion, and returns a PR-style summary with branch, commits,
|
|
42
|
+
PR URL, and diff summary.
|
|
43
|
+
- **New slash skills for agent worktrees.** Added `/debug-v2`, `/refactor`,
|
|
44
|
+
`/paper-implementation`, `/benchmark`, `/security-review`, `/dockerize`, and
|
|
45
|
+
`/latex-paper` bundled slash skills. Each expands into a prompt that instructs
|
|
46
|
+
the model to work in an isolated git worktree and produce a clean branch,
|
|
47
|
+
commits, and PR.
|
|
48
|
+
- **Matching agent templates.** Added `debug-v2`, `refactor`, `paper-implementation`,
|
|
49
|
+
`benchmark`, `security-review`, `dockerize`, and `latex-paper` templates to
|
|
50
|
+
`AGENT_TEMPLATES`; install them with `ur agent-templates install`.
|
|
51
|
+
- **`ur worktree` command.** Added `ur worktree list|status|clean` to inspect
|
|
52
|
+
and clean up UR agent worktrees created by background runs.
|
|
53
|
+
|
|
54
|
+
### Changed
|
|
55
|
+
- **Background runner exports.** Exported `commitIfNeeded` and `createPullRequest`
|
|
56
|
+
from `backgroundRunner.ts` so the agent skill runner can inspect and finalize
|
|
57
|
+
PR state.
|
|
58
|
+
- **Version bump.** Updated from 1.20.0 to 1.21.0 across `package.json`,
|
|
59
|
+
`bunfig.toml`, the VS Code extension manifest, and the bundled CLI.
|
|
60
|
+
|
|
61
|
+
### Verified
|
|
62
|
+
- Added tests for the agent skill runner, each new bundled skill, and the new
|
|
63
|
+
`ur worktree` command.
|
|
64
|
+
|
|
3
65
|
## 1.20.0
|
|
4
66
|
|
|
5
67
|
### Added
|
package/README.md
CHANGED
|
@@ -132,6 +132,7 @@ as first-class subcommands in the shipped CLI.
|
|
|
132
132
|
| `ur safety` | Inspect or initialize project shell safety policy and evaluate command risk before execution. |
|
|
133
133
|
| `ur context-pack` | Write project architecture context, task memory, and compressed context under `.ur/`. |
|
|
134
134
|
| `ur bg` | Run and manage detached local background agents with optional worktrees and PR creation. |
|
|
135
|
+
| `ur worktree` | List, inspect, and clean up UR agent worktrees. |
|
|
135
136
|
| `ur automation` | Store and run project-local scheduled automation specs under `.ur/automations/`. |
|
|
136
137
|
| `ur workflow` | Define, validate, graph, run, and resume declarative agent workflows. |
|
|
137
138
|
| `ur crew` | Run a lead and worker subagent crew over a shared task board. |
|
|
@@ -143,6 +144,9 @@ as first-class subcommands in the shipped CLI.
|
|
|
143
144
|
| `ur artifacts` | Capture diffs, test runs, notes, and review feedback under `.ur/artifacts/`. |
|
|
144
145
|
| `ur claim-ledger` | Map generated claims to file, web, MCP, tool, or user sources. |
|
|
145
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. |
|
|
146
150
|
| `ur eval bench` | Import local SWE-bench, Terminal-Bench, or Aider Polyglot exports. |
|
|
147
151
|
| `ur model-doctor` | Inspect Ollama models and report likely agent capabilities. |
|
|
148
152
|
| `ur model-route` | Recommend a local model for a task by capability fit. |
|
|
@@ -156,6 +160,10 @@ as first-class subcommands in the shipped CLI.
|
|
|
156
160
|
| `ur a2a serve` | Start an opt-in local A2A task server with bearer or delegation auth. |
|
|
157
161
|
| `ur sdk` | Show programmatic headless usage and scaffold SDK examples. |
|
|
158
162
|
|
|
163
|
+
New slash skills run agentic work in isolated git worktrees with clean commits and PR output:
|
|
164
|
+
`/debug-v2`, `/refactor`, `/paper-implementation`, `/benchmark`, `/security-review`, `/dockerize`, `/latex-paper`.
|
|
165
|
+
Install matching agent templates with `ur agent-templates install`.
|
|
166
|
+
|
|
159
167
|
New built-in tools (exposed through MCP and the ACP server): GitHub, API, Browser, Docker, TestRunner, Database. File-system and terminal tools are already built in (FileRead, FileEdit, FileWrite, Glob, Grep, Bash, PowerShell).
|
|
160
168
|
|
|
161
169
|
Examples:
|
|
@@ -182,6 +190,9 @@ ur artifacts capture-tests --command "bun test"
|
|
|
182
190
|
ur agent-task pr --create --dry-run
|
|
183
191
|
ur acp serve --port 8123
|
|
184
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
|
|
185
196
|
```
|
|
186
197
|
|
|
187
198
|
## Project Context
|
|
@@ -291,6 +302,7 @@ CLI. Rebuild it after source, version, or macro changes.
|
|
|
291
302
|
- [Configuration](docs/CONFIGURATION.md)
|
|
292
303
|
- [Agent Feature Expansion](docs/AGENT_FEATURES.md)
|
|
293
304
|
- [Agent Trend Coverage](docs/AGENT_TRENDS.md)
|
|
305
|
+
- [1.22.0 Upgrade Notes](docs/AGENT_UPGRADE_1.22.0.md)
|
|
294
306
|
- [1.20.0 Upgrade Notes](docs/AGENT_UPGRADE_1.20.0.md)
|
|
295
307
|
- [1.19.0 Upgrade Notes](docs/AGENT_UPGRADE_1.19.0.md)
|
|
296
308
|
- [1.18.0 Upgrade Notes](docs/AGENT_UPGRADE_1.18.0.md)
|