ur-agent 1.37.1 → 1.37.3
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 +26 -0
- package/RELEASE.md +13 -0
- package/bin/ur.js +56 -4
- package/dist/cli.js +1039 -683
- package/docs/IDE.md +8 -3
- package/docs/providers.md +29 -0
- package/documentation/index.html +10 -10
- package/extensions/vscode-ur-inline-diffs/README.md +7 -1
- package/extensions/vscode-ur-inline-diffs/out/extension.js +131 -31
- package/extensions/vscode-ur-inline-diffs/package.json +19 -1
- package/package.json +14 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.37.3
|
|
4
|
+
|
|
5
|
+
- Version bump: align package, build macro, VS Code extension, docs eyebrow, and
|
|
6
|
+
changelog for the 1.37.3 patch release.
|
|
7
|
+
|
|
8
|
+
## 1.37.2
|
|
9
|
+
|
|
10
|
+
- Tightened provider reliability: API-provider calls now use a finite default
|
|
11
|
+
timeout, consistent retry handling for transient network/provider failures,
|
|
12
|
+
and safer OpenAI-compatible base URL normalization without changing streaming,
|
|
13
|
+
tool-call, multimodal, or local-provider routing behavior.
|
|
14
|
+
- Hardened autonomous command safety: write, execute, and network commands now
|
|
15
|
+
require sandbox coverage in autonomous mode, unavailable sandboxes fail
|
|
16
|
+
closed unless explicit unsafe mode is set, and common secret read/exfiltration
|
|
17
|
+
patterns through pipes, redirects, and interpreter commands are denied.
|
|
18
|
+
- Started real TypeScript strictness migration with a strict-core typecheck
|
|
19
|
+
stage, removed several core runtime `@ts-nocheck` suppressions by fixing the
|
|
20
|
+
underlying types, and added a lint guard against new core suppressions.
|
|
21
|
+
- Improved release hygiene with package/source archive checks for dependency
|
|
22
|
+
trees, OS metadata, local env files, cache junk, logs, test output folders,
|
|
23
|
+
and nested archives; the secret scanner now works in both git checkouts and
|
|
24
|
+
extracted source archives.
|
|
25
|
+
- Added reproducible benchmark report scaffolding so local eval runs can be
|
|
26
|
+
converted into versioned structured reports without claiming unmeasured
|
|
27
|
+
benchmark results.
|
|
28
|
+
|
|
3
29
|
## 1.35.1
|
|
4
30
|
|
|
5
31
|
- Polished the bundled VS Code inline-diffs view with native toolbar icons,
|
package/RELEASE.md
CHANGED
|
@@ -23,6 +23,19 @@ npm pack --dry-run
|
|
|
23
23
|
npm publish --dry-run
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
If publishing or attaching a source archive, verify the actual zip artifact
|
|
27
|
+
before release:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
bun run release:create-source-zip
|
|
31
|
+
bun run release:check-source-zip -- artifacts/source/ur-agent-$(node -p "require('./package.json').version")-source.zip
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The source zip must contain source inputs such as `package.json`, `bun.lock`,
|
|
35
|
+
`src/`, `bin/`, `scripts/`, `README.md`, `CHANGELOG.md`, and `SECURITY.md`,
|
|
36
|
+
and must not contain local dependencies, runtime binaries, env files, logs,
|
|
37
|
+
caches, test output folders, temp files, or nested archives.
|
|
38
|
+
|
|
26
39
|
Also verify:
|
|
27
40
|
|
|
28
41
|
```bash
|
package/bin/ur.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { spawn, spawnSync } from 'node:child_process'
|
|
3
|
-
import { existsSync, readFileSync
|
|
3
|
+
import { existsSync, readFileSync } from 'node:fs'
|
|
4
4
|
import { dirname, resolve } from 'node:path'
|
|
5
5
|
import { fileURLToPath } from 'node:url'
|
|
6
6
|
|
|
@@ -113,13 +113,65 @@ const child = spawn(bun, args, {
|
|
|
113
113
|
|
|
114
114
|
if (shouldPipeChildOutput) {
|
|
115
115
|
child.stdout?.on('data', chunk => {
|
|
116
|
-
|
|
116
|
+
forwardChildOutput(child.stdout, process.stdout, chunk)
|
|
117
117
|
})
|
|
118
118
|
child.stderr?.on('data', chunk => {
|
|
119
|
-
|
|
119
|
+
forwardChildOutput(child.stderr, process.stderr, chunk)
|
|
120
120
|
})
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
function forwardChildOutput(source, target, chunk) {
|
|
124
|
+
try {
|
|
125
|
+
const canContinue = target.write(chunk)
|
|
126
|
+
if (!canContinue) {
|
|
127
|
+
source.pause()
|
|
128
|
+
target.once('drain', () => source.resume())
|
|
129
|
+
}
|
|
130
|
+
} catch (error) {
|
|
131
|
+
if (isRetryableWriteError(error)) {
|
|
132
|
+
source.pause()
|
|
133
|
+
setTimeout(() => {
|
|
134
|
+
if (target.destroyed) return
|
|
135
|
+
try {
|
|
136
|
+
const canContinue = target.write(chunk)
|
|
137
|
+
if (canContinue) source.resume()
|
|
138
|
+
else target.once('drain', () => source.resume())
|
|
139
|
+
} catch (retryError) {
|
|
140
|
+
if (isRetryableWriteError(retryError)) {
|
|
141
|
+
forwardChildOutput(source, target, chunk)
|
|
142
|
+
return
|
|
143
|
+
}
|
|
144
|
+
if (!isBrokenPipe(retryError)) {
|
|
145
|
+
try {
|
|
146
|
+
process.stderr.write(`UR launcher output forwarding failed: ${retryError.message ?? String(retryError)}\n`)
|
|
147
|
+
} catch {
|
|
148
|
+
// Nothing sensible remains if stderr itself is unavailable.
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}, 10)
|
|
153
|
+
return
|
|
154
|
+
}
|
|
155
|
+
if (isBrokenPipe(error)) {
|
|
156
|
+
source.destroy?.()
|
|
157
|
+
return
|
|
158
|
+
}
|
|
159
|
+
try {
|
|
160
|
+
process.stderr.write(`UR launcher output forwarding failed: ${error.message ?? String(error)}\n`)
|
|
161
|
+
} catch {
|
|
162
|
+
// Nothing sensible remains if stderr itself is unavailable.
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function isRetryableWriteError(error) {
|
|
168
|
+
return error && (error.code === 'EAGAIN' || error.code === 'EWOULDBLOCK')
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function isBrokenPipe(error) {
|
|
172
|
+
return error && error.code === 'EPIPE'
|
|
173
|
+
}
|
|
174
|
+
|
|
123
175
|
child.on('error', error => {
|
|
124
176
|
if (error.code === 'ENOENT') {
|
|
125
177
|
printBunRuntimeError(error.message)
|
|
@@ -136,5 +188,5 @@ child.on('close', (code, signal) => {
|
|
|
136
188
|
return
|
|
137
189
|
}
|
|
138
190
|
|
|
139
|
-
process.
|
|
191
|
+
process.exitCode = code ?? 1
|
|
140
192
|
})
|