ur-agent 1.18.0 → 1.19.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,32 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.19.0
4
+
5
+ ### Added
6
+ - **Permission and safety policy (`ur safety`).** Added a project shell safety
7
+ evaluator that separates read, write, execute, and network command classes;
8
+ asks before destructive commands; recommends sandboxing for risky operations;
9
+ and denies common secret-file and secret-like environment exfiltration paths.
10
+ - **Bash permission integration.** The project safety policy now runs before
11
+ broad Bash allow paths and sandbox auto-allow, so destructive commands still
12
+ require approval and secret exfiltration is blocked even when permissive
13
+ command rules exist.
14
+ - **Project context pack (`ur context-pack`).** Added repo architecture
15
+ scanning from manifests, instruction files, Project DNA, verify gates, and
16
+ safety config. Task memory records decisions, constraints, commands, diffs,
17
+ and notes under `.ur/context/`, with compression into a durable summary.
18
+
19
+ ### Changed
20
+ - **Chrome/Desktop links.** Replaced deprecated Chrome and desktop documentation
21
+ links in source with current `ur.ai` URLs.
22
+ - **Version bump.** Updated from 1.18.0 to 1.19.0 across `package.json`,
23
+ `bunfig.toml`, the VS Code extension, and bundled CLI metadata.
24
+
25
+ ### Verified
26
+ - Added focused tests for safety policy decisions, policy file creation,
27
+ context manifest generation, task memory compression, CLI command parsing,
28
+ and updated agent feature/trend inventories.
29
+
3
30
  ## 1.18.0
4
31
 
5
32
  ### Added
@@ -73,7 +100,7 @@
73
100
  ## 1.14.1
74
101
 
75
102
  ### Changed
76
- - Removed the `desktop-app` startup tip pointing to `clau.de/desktop`.
103
+ - Removed the `desktop-app` startup tip pointing to the legacy desktop URL.
77
104
 
78
105
  ### Changed
79
106
  - **Version bump.** Updated from 1.14.0 to 1.14.1 across `package.json`, `bunfig.toml`, and bundled CLI.
package/QUALITY.md CHANGED
@@ -22,6 +22,12 @@ For project-specific feature work, `ur test-first detect` shows the detected
22
22
  compile/test/lint command set. `ur test-first install` can persist that command
23
23
  set into `.ur/verify.json` so future mutating turns run the same gates.
24
24
 
25
+ For safety-sensitive changes, `ur safety check --command "<cmd>"` previews
26
+ read/write/execute/network permission classes, destructive-command approval,
27
+ sandbox posture, and secret exfiltration denial. `ur context-pack scan` records
28
+ the repo architecture and manifest-derived command set; `ur context-pack
29
+ compress` preserves task decisions, constraints, commands, and diffs.
30
+
25
31
  `bun run release:check` is also wired into `prepack`, so stale bundles and
26
32
  version drift fail before packaging.
27
33
 
@@ -56,6 +62,12 @@ Public feature releases should update the full documentation set:
56
62
  - `ur test-first` stores failing compile/test/lint traces under
57
63
  `.ur/test-first/traces/` and reports success only from zero-exit command
58
64
  evidence.
65
+ - `ur safety` asks before destructive commands, recommends sandboxing for risky
66
+ operations, and blocks common secret exfiltration paths before broad shell
67
+ allow rules.
68
+ - `ur context-pack` keeps durable architecture summaries and task memory under
69
+ `.ur/context/` so decisions, constraints, commands, and diffs survive context
70
+ compression.
59
71
  - Deep verification through the verification subagent is manual by default and
60
72
  can be enabled with `UR_VERIFIER_AUTO_SUBAGENT=1`.
61
73
  - Secrets must stay in environment variables, secure storage, or local ignored
package/README.md CHANGED
@@ -14,8 +14,8 @@ UR Agent is a Bun and TypeScript command-line coding agent. It opens a stateful
14
14
  interactive terminal session by default, can run one-shot prompts for scripts,
15
15
  and includes workflow commands for specification-driven development,
16
16
  multi-agent execution, test-first quality loops, CI repair loops, background
17
- agents, MCP servers, plugins, skills, memory, verification, and local model
18
- routing.
17
+ agents, MCP servers, plugins, skills, memory, permission safety policy,
18
+ project context packing, verification, and local model routing.
19
19
 
20
20
  UR sends model requests through the configured local Ollama app. That app can
21
21
  serve local models or Ollama Cloud-backed models, while UR itself stays out of
@@ -36,6 +36,9 @@ handing work off to other tools or agents when needed.
36
36
  structured work beyond a single chat turn.
37
37
  - **Reliable repo editing.** Use `ur repo-edit` for indexed search,
38
38
  AST-aware rename plans, patch previews, and rollback-safe multi-file apply.
39
+ - **Permission and context control.** Use `ur safety` and `ur context-pack` to
40
+ inspect command risk, initialize project safety policy, summarize repository
41
+ architecture, and preserve task decisions, constraints, commands, and diffs.
39
42
  - **Verification and provenance.** Use `ur test-first`, the built-in verifier,
40
43
  `/verify`, `.ur/verify.json`, `ur artifacts`, `ur claim-ledger`, and `/trace`
41
44
  to make results easier to inspect.
@@ -126,6 +129,8 @@ as first-class subcommands in the shipped CLI.
126
129
  | `ur arena` | Run multiple agents on the same task in isolated worktrees and surface the winning diff. |
127
130
  | `ur ci-loop` | Run a build or test command, hand failures to a fix agent, and retry with a bounded budget. |
128
131
  | `ur test-first` | Detect the project stack, run compile/test/lint commands, store failure traces, and install edit-time verify gates. |
132
+ | `ur safety` | Inspect or initialize project shell safety policy and evaluate command risk before execution. |
133
+ | `ur context-pack` | Write project architecture context, task memory, and compressed context under `.ur/`. |
129
134
  | `ur bg` | Run and manage detached local background agents with optional worktrees and PR creation. |
130
135
  | `ur automation` | Store and run project-local scheduled automation specs under `.ur/automations/`. |
131
136
  | `ur workflow` | Define, validate, graph, run, and resume declarative agent workflows. |
@@ -159,6 +164,10 @@ ur escalate run "refactor the cache layer" --force-oracle --dry-run
159
164
  ur test-first detect
160
165
  ur test-first --dry-run
161
166
  ur test-first install
167
+ ur safety check --command "rm -rf build"
168
+ ur context-pack scan
169
+ ur context-pack remember --decision "Use package scripts before ad hoc commands"
170
+ ur context-pack compress
162
171
  ur ci-loop --command "bun test" --max-attempts 3 --dry-run
163
172
  ur bg run "fix the flaky parser test" --worktree --dry-run
164
173
  ur automation create nightly --schedule "0 9 * * 1-5" --prompt "Review open tasks"
@@ -177,6 +186,11 @@ UR reads repository instructions and local runtime state from project files:
177
186
  - `UR.local.md` is for private local instructions.
178
187
  - `.ur/skills/` stores project skills.
179
188
  - `.ur/agents/` stores custom agents and role modes.
189
+ - `.ur/specs/`, `.ur/artifacts/`, `.ur/automations/`, `.ur/test-first/`,
190
+ - `.ur/safety-policy.json` configures project shell safety rules for read,
191
+ write, execute, and network command classes.
192
+ - `.ur/project-manifest.json` and `.ur/context/` hold architecture summaries,
193
+ task memory, compressed context, and command/constraint decisions.
180
194
  - `.ur/specs/`, `.ur/artifacts/`, `.ur/automations/`, `.ur/test-first/`,
181
195
  `.ur/memory/`, and `.ur/index/` hold workflow state, review artifacts,
182
196
  scheduled jobs, failure traces, memory, and indexes.
@@ -198,8 +212,8 @@ settings, generated indexes, memory, logs, and secrets out of Git.
198
212
  - `src/tools/` contains tool implementations for file editing, shell execution,
199
213
  MCP resources, task management, and agent delegation.
200
214
  - `src/services/` contains runtime services for MCP, verification, memory,
201
- code indexing, model routing, background agents, A2A, analytics, sync, and
202
- API integration.
215
+ code indexing, safety policy, context manifests, model routing, background
216
+ agents, A2A, analytics, sync, and API integration.
203
217
  - `extensions/vscode-ur-inline-diffs/` contains the VS Code inline diff review
204
218
  extension.
205
219
  - `marketplace-plugins/` contains bundled example marketplace plugins.
@@ -219,6 +233,13 @@ the permission boundary matters.
219
233
  - Project gates can be configured in `.ur/verify.json`.
220
234
  - `ur test-first install` writes detected compile/test/lint commands into
221
235
  `.ur/verify.json` so mutating turns have command evidence before completion.
236
+ - `ur safety check --command "<cmd>"` classifies read, write, execute, and
237
+ network permissions, asks before destructive commands, recommends sandboxing
238
+ for risky operations, and blocks common secret exfiltration paths.
239
+ - `ur safety init` writes `.ur/safety-policy.json` for project-specific safety
240
+ rules.
241
+ - `ur context-pack scan` writes a repo architecture manifest from package
242
+ scripts, instruction files, `.ur/verify.json`, and safety config.
222
243
  - The deep verification subagent is available through `/verify` and can be
223
244
  auto-enabled with `UR_VERIFIER_AUTO_SUBAGENT=1`.
224
245
  - OS-level sandbox support is available on macOS and Linux through UR's
@@ -264,6 +285,7 @@ CLI. Rebuild it after source, version, or macro changes.
264
285
  - [Configuration](docs/CONFIGURATION.md)
265
286
  - [Agent Feature Expansion](docs/AGENT_FEATURES.md)
266
287
  - [Agent Trend Coverage](docs/AGENT_TRENDS.md)
288
+ - [1.19.0 Upgrade Notes](docs/AGENT_UPGRADE_1.19.0.md)
267
289
  - [1.18.0 Upgrade Notes](docs/AGENT_UPGRADE_1.18.0.md)
268
290
  - [1.17.0 Upgrade Notes](docs/AGENT_UPGRADE_1.17.0.md)
269
291
  - [Development Guide](docs/DEVELOPMENT.md)