agentworth 0.1.10 → 0.1.11

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.
Files changed (2) hide show
  1. package/lib/resolver.js +11 -3
  2. package/package.json +1 -1
package/lib/resolver.js CHANGED
@@ -32,7 +32,12 @@ 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
- if (platform === 'win32' && arch === 'x64') return 'x86_64-pc-windows-msvc';
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 -- fixable (--force-local), but broke across multiple releases regardless, and
39
+ // nobody here can test a real Windows box to catch it before it ships. A user who wants
40
+ // this on Windows can still build it themselves: `cargo build --release -p agentworth-cli`.
36
41
  return null;
37
42
  }
38
43
 
@@ -249,9 +254,12 @@ export async function downloadAndExtractBinary(options = {}) {
249
254
 
250
255
  await downloadFile(url, archivePath);
251
256
 
252
- // Extract archive
257
+ // Extract archive. --force-local matters on Windows: a drive-letter path like
258
+ // "C:\Users\...\agentworth.tar.gz" otherwise gets parsed as a "host:path" remote-tar
259
+ // spec (the "C" before the colon reads as a hostname), and tar tries to rsh/ssh to it
260
+ // instead of opening a local file.
253
261
  try {
254
- execFileSync('tar', ['-xzf', archivePath, '-C', cacheDir]);
262
+ execFileSync('tar', ['--force-local', '-xzf', archivePath, '-C', cacheDir]);
255
263
  } catch (err) {
256
264
  throw new Error(`Failed to extract ${archiveName}: ${err.message}`);
257
265
  } finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentworth",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Discover, normalize, and understand AI-agent histories locally.",
5
5
  "type": "module",
6
6
  "main": "./lib/resolver.js",