ur-agent 1.37.0 → 1.37.2
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/README.md +2 -0
- package/bin/ur.js +56 -4
- package/dist/cli.js +143 -67
- package/docs/CONFIGURATION.md +2 -0
- package/docs/IDE.md +17 -5
- package/docs/providers.md +2 -0
- package/extensions/vscode-ur-inline-diffs/README.md +18 -3
- package/extensions/vscode-ur-inline-diffs/media/ur.svg +3 -4
- package/extensions/vscode-ur-inline-diffs/out/extension.js +496 -158
- package/extensions/vscode-ur-inline-diffs/package.json +59 -2
- package/package.json +1 -1
package/docs/IDE.md
CHANGED
|
@@ -78,16 +78,22 @@ applied or rejected:
|
|
|
78
78
|
|
|
79
79
|
The bundled **UR Inline Diffs** extension is the professional IDE integration
|
|
80
80
|
for VS Code, Cursor, and Windsurf. It adds a UR container to the Activity Bar
|
|
81
|
-
with
|
|
82
|
-
card, an agent options panel,
|
|
81
|
+
with three views, **Chat**, **Inline Diffs**, and **Actions**, plus a chat
|
|
82
|
+
panel, a status card, an agent options panel, a provider/model picker, and a
|
|
83
|
+
searchable command palette.
|
|
83
84
|
|
|
84
85
|
Install it with `ur ide install` (offers the bundled VSIX) or from the
|
|
85
86
|
packaged `.vsix`. The extension is bundled inside this repository and
|
|
86
87
|
packaged as a local VSIX when installed from UR-AGENT; the public install
|
|
87
88
|
path does not depend on an unpublished marketplace extension ID. Every
|
|
88
|
-
feature below
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
feature below runs UR as a local subprocess and never talks to a model
|
|
90
|
+
provider or network service directly.
|
|
91
|
+
|
|
92
|
+
When the workspace itself is a UR checkout, the extension prefers the
|
|
93
|
+
workspace-local runtime (`bun dist/cli.js`, then `node bin/ur.js`) before
|
|
94
|
+
falling back to `ur` from `PATH`. Set `ur.executablePath` in VS Code settings
|
|
95
|
+
to force a specific binary; `ur.executableArgs` can provide fixed wrapper
|
|
96
|
+
arguments before normal UR command arguments.
|
|
91
97
|
|
|
92
98
|
### Chat panel
|
|
93
99
|
|
|
@@ -105,6 +111,12 @@ at the end. If the underlying `ur` process exits with an error, the panel
|
|
|
105
111
|
shows an error banner — it never fabricates a success message when the run
|
|
106
112
|
failed.
|
|
107
113
|
|
|
114
|
+
The **Chat** view in the UR sidebar exposes **New Chat**, **Open Chat**,
|
|
115
|
+
**Search Actions**, **Pick Model**, and editor-context actions when an editor
|
|
116
|
+
or selection is available. **UR: Pick Model** uses the provider-first model
|
|
117
|
+
catalog from the CLI and saves the selected provider/model pair through the
|
|
118
|
+
same validation path as `/model`.
|
|
119
|
+
|
|
108
120
|
**Permission prompts.** When a turn wants to use a tool that needs approval,
|
|
109
121
|
UR emits a `control_request` message in the same stream. The chat panel shows
|
|
110
122
|
an inline Allow/Deny prompt and writes the decision back as a
|
package/docs/providers.md
CHANGED
|
@@ -88,6 +88,7 @@ ur provider status
|
|
|
88
88
|
ur provider doctor
|
|
89
89
|
ur provider doctor codex-cli
|
|
90
90
|
ur provider doctor agy
|
|
91
|
+
ur provider models [provider] --json
|
|
91
92
|
# Subscription CLI logins (official vendor CLIs):
|
|
92
93
|
ur auth chatgpt
|
|
93
94
|
ur auth claude
|
|
@@ -100,6 +101,7 @@ ur config set provider gemini-api
|
|
|
100
101
|
ur config set provider openrouter
|
|
101
102
|
ur config set provider openai-compatible
|
|
102
103
|
ur config set model <model>
|
|
104
|
+
ur provider select-model <provider> <model> --json
|
|
103
105
|
ur config set base_url <url>
|
|
104
106
|
ur config set provider.fallback ollama
|
|
105
107
|
```
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
The professional UR IDE integration for VS Code, Cursor, and Windsurf: chat,
|
|
4
4
|
inline diff review, an actions panel, an agent status card, a searchable
|
|
5
|
-
command palette, and an agent options panel — all
|
|
6
|
-
already on your machine.
|
|
5
|
+
command palette, a provider/model picker, and an agent options panel — all
|
|
6
|
+
backed by the `ur` CLI already on your machine.
|
|
7
7
|
|
|
8
8
|
UR-AGENT packages this extension from the repository as a local VSIX when the
|
|
9
9
|
CLI installs the public IDE integration. It does not depend on an unpublished
|
|
@@ -11,10 +11,21 @@ marketplace extension ID.
|
|
|
11
11
|
|
|
12
12
|
The extension never talks to a model provider or network service directly —
|
|
13
13
|
every AI request goes through your local `ur` CLI, the same way `ur` behaves
|
|
14
|
-
in a terminal.
|
|
14
|
+
in a terminal.
|
|
15
|
+
|
|
16
|
+
When the opened workspace is a UR checkout, the extension prefers the
|
|
17
|
+
workspace-local runtime (`bun dist/cli.js`, then `node bin/ur.js`) before
|
|
18
|
+
falling back to `ur` on `PATH`. To force a specific binary, set
|
|
19
|
+
`ur.executablePath` in VS Code settings. Use `ur.executableArgs` only for
|
|
20
|
+
custom wrappers that need fixed arguments before normal UR arguments.
|
|
15
21
|
|
|
16
22
|
## Chat
|
|
17
23
|
|
|
24
|
+
The UR Activity Bar contains a **Chat** view with visible buttons for **New
|
|
25
|
+
Chat**, **Open Chat**, **Pick Model**, and editor-context actions when a file
|
|
26
|
+
or selection is active. You do not need to know command palette commands to
|
|
27
|
+
start a conversation.
|
|
28
|
+
|
|
18
29
|
**UR: New Chat** / **UR: Open Chat** open a chat panel that streams UR's
|
|
19
30
|
response as it's generated, over the same NDJSON `stream-json` contract the
|
|
20
31
|
CLI uses for scripted runs. Tool calls, tool results, and permission prompts
|
|
@@ -33,6 +44,10 @@ and **UR: Generate Tests for Selection** (also on the editor right-click
|
|
|
33
44
|
menu) open the same chat panel with a structured prompt built from the
|
|
34
45
|
current selection; they are not a separate code path from chat.
|
|
35
46
|
|
|
47
|
+
**UR: Pick Model** opens a provider-first picker, then a model picker scoped to
|
|
48
|
+
that provider. Saving the choice goes through the same provider/model
|
|
49
|
+
validation as `/model`.
|
|
50
|
+
|
|
36
51
|
## Inline diffs and actions panel
|
|
37
52
|
|
|
38
53
|
Create a bundle from the UR CLI:
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
2
|
-
<
|
|
3
|
-
<path d="
|
|
4
|
-
<path d="M36 16h12v8h-7v7h-5V16z" fill="#64d2ff"/>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-label="UR">
|
|
2
|
+
<path fill="currentColor" d="M4 3h3v10.2c0 2.7 1.8 4.4 5 4.4s5-1.7 5-4.4V3h3v10.2C20 17.6 16.9 21 12 21s-8-3.4-8-7.8V3z"/>
|
|
3
|
+
<path fill="currentColor" d="M13.5 3H20v3h-3.5v3.5h-3V3z"/>
|
|
5
4
|
</svg>
|