agentworth 0.1.10 → 0.1.12
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/lib/resolver.js +11 -2
- package/package.json +1 -1
package/lib/resolver.js
CHANGED
|
@@ -32,7 +32,13 @@ export function getTargetTriple(platform = process.platform, arch = process.arch
|
|
|
32
32
|
if (platform === 'darwin' && arch === 'x64') return 'x86_64-apple-darwin';
|
|
33
33
|
if (platform === 'linux' && arch === 'x64') return 'x86_64-unknown-linux-gnu';
|
|
34
34
|
if (platform === 'linux' && arch === 'arm64') return 'aarch64-unknown-linux-gnu';
|
|
35
|
-
|
|
35
|
+
// Windows dropped 2026-09-02: release.yml no longer builds x86_64-pc-windows-msvc, so
|
|
36
|
+
// this would 404 against the downloader even if it matched. The recurring failure was
|
|
37
|
+
// GNU tar on Windows misparsing a "C:\..." archive path as a remote "host:path" tar
|
|
38
|
+
// spec -- no clean fix ever stuck (a --force-local attempt just broke macOS's BSD tar
|
|
39
|
+
// instead), and nobody here can test a real Windows box to catch it before it ships. A
|
|
40
|
+
// user who wants this on Windows can still build it themselves: `cargo build --release
|
|
41
|
+
// -p agentworth-cli`.
|
|
36
42
|
return null;
|
|
37
43
|
}
|
|
38
44
|
|
|
@@ -249,7 +255,10 @@ export async function downloadAndExtractBinary(options = {}) {
|
|
|
249
255
|
|
|
250
256
|
await downloadFile(url, archivePath);
|
|
251
257
|
|
|
252
|
-
//
|
|
258
|
+
// No --force-local here: it was a Windows-only GNU tar workaround, and Windows
|
|
259
|
+
// support was dropped in 8b837c3. BSD tar (macOS's default) doesn't recognize
|
|
260
|
+
// the flag and fails every extraction with it present -- v0.1.11 shipped this
|
|
261
|
+
// exact break. Keep it off; there's no platform left where it does anything.
|
|
253
262
|
try {
|
|
254
263
|
execFileSync('tar', ['-xzf', archivePath, '-C', cacheDir]);
|
|
255
264
|
} catch (err) {
|