@auv-js/cli 0.0.25 → 0.0.28

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 CHANGED
@@ -113,5 +113,5 @@ daemon trusts only that identity. The CLI equivalent is
113
113
  [helper setup reference](../../../docs/ai/references/session-api/2026-10-01-macos-helper-setup.md#shipped-helper-identity).
114
114
 
115
115
  Supported packages currently cover macOS arm64/x64, glibc Linux arm64/x64, and
116
- Windows x64. Installing with optional dependencies disabled leaves no binary;
117
- `binaryPath()` reports that case with an actionable error.
116
+ Windows arm64/x64. Installing with optional dependencies disabled leaves no
117
+ binary; `binaryPath()` reports that case with an actionable error.
package/dist/binary.js CHANGED
@@ -9,6 +9,7 @@ const PLATFORM_PACKAGES = /* @__PURE__ */ new Map([
9
9
  ["darwin-x64", ["@auv-js/cli-darwin-x64", "bin/auv"]],
10
10
  ["linux-arm64", ["@auv-js/cli-linux-arm64-gnu", "bin/auv"]],
11
11
  ["linux-x64", ["@auv-js/cli-linux-x64-gnu", "bin/auv"]],
12
+ ["win32-arm64", ["@auv-js/cli-win32-arm64-msvc", "bin/auv.exe"]],
12
13
  ["win32-x64", ["@auv-js/cli-win32-x64-msvc", "bin/auv.exe"]]
13
14
  ]);
14
15
  var AuvBinaryError = class extends Error {
@@ -1 +1 @@
1
- {"version":3,"file":"binary.js","names":[],"sources":["../src-js/binary.ts"],"sourcesContent":["import process from 'node:process'\n\nimport { accessSync, constants } from 'node:fs'\nimport { createRequire } from 'node:module'\nimport { dirname, join } from 'node:path'\n\nconst require = createRequire(import.meta.url)\n\nconst PLATFORM_PACKAGES = new Map<string, readonly [string, string]>([\n ['darwin-arm64', ['@auv-js/cli-darwin-arm64', 'bin/auv']],\n ['darwin-x64', ['@auv-js/cli-darwin-x64', 'bin/auv']],\n ['linux-arm64', ['@auv-js/cli-linux-arm64-gnu', 'bin/auv']],\n ['linux-x64', ['@auv-js/cli-linux-x64-gnu', 'bin/auv']],\n ['win32-x64', ['@auv-js/cli-win32-x64-msvc', 'bin/auv.exe']],\n])\n\ninterface DiagnosticReport {\n header?: {\n glibcVersionRuntime?: string\n }\n}\n\nexport class AuvBinaryError extends Error {\n constructor(message: string, options?: ErrorOptions) {\n super(message, options)\n this.name = 'AuvBinaryError'\n }\n}\n\n/** Return the absolute path of the AUV executable installed for this host. */\nexport function binaryPath(): string {\n const platformKey = `${process.platform}-${process.arch}`\n\n const platformPackage = PLATFORM_PACKAGES.get(platformKey)\n if (!platformPackage) {\n throw new AuvBinaryError(`AUV does not publish an executable for ${process.platform}/${process.arch}.`)\n }\n if (process.platform === 'linux' && isMusl()) {\n throw new AuvBinaryError('AUV currently publishes glibc Linux executables only; musl Linux is not supported.')\n }\n\n const [packageName, executable] = platformPackage\n let manifestPath: string\n\n try {\n manifestPath = require.resolve(`${packageName}/package.json`)\n }\n catch (cause) {\n throw new AuvBinaryError(`The optional package ${packageName} is missing. Reinstall @auv-js/cli without omitting optional dependencies.`, { cause })\n }\n\n const resolvedPath = join(dirname(manifestPath), executable)\n try {\n accessSync(resolvedPath, process.platform === 'win32' ? constants.F_OK : constants.X_OK)\n }\n catch (cause) {\n throw new AuvBinaryError(`The ${packageName} package does not contain an executable AUV binary at ${resolvedPath}.`, { cause })\n }\n\n return resolvedPath\n}\n\nfunction isMusl(): boolean {\n const report = process.report?.getReport?.() as DiagnosticReport | undefined\n return report?.header?.glibcVersionRuntime === undefined\n}\n"],"mappings":";;;;;AAMA,MAAM,UAAU,cAAc,OAAO,KAAK,GAAG;AAE7C,MAAM,oCAAoB,IAAI,IAAuC;CACnE,CAAC,gBAAgB,CAAC,4BAA4B,SAAS,CAAC;CACxD,CAAC,cAAc,CAAC,0BAA0B,SAAS,CAAC;CACpD,CAAC,eAAe,CAAC,+BAA+B,SAAS,CAAC;CAC1D,CAAC,aAAa,CAAC,6BAA6B,SAAS,CAAC;CACtD,CAAC,aAAa,CAAC,8BAA8B,aAAa,CAAC;AAC7D,CAAC;AAQD,IAAa,iBAAb,cAAoC,MAAM;CACxC,YAAY,SAAiB,SAAwB;EACnD,MAAM,SAAS,OAAO;EACtB,KAAK,OAAO;CACd;AACF;;AAGA,SAAgB,aAAqB;CACnC,MAAM,cAAc,GAAG,QAAQ,SAAS,GAAG,QAAQ;CAEnD,MAAM,kBAAkB,kBAAkB,IAAI,WAAW;CACzD,IAAI,CAAC,iBACH,MAAM,IAAI,eAAe,0CAA0C,QAAQ,SAAS,GAAG,QAAQ,KAAK,EAAE;CAExG,IAAI,QAAQ,aAAa,WAAW,OAAO,GACzC,MAAM,IAAI,eAAe,oFAAoF;CAG/G,MAAM,CAAC,aAAa,cAAc;CAClC,IAAI;CAEJ,IAAI;EACF,eAAe,QAAQ,QAAQ,GAAG,YAAY,cAAc;CAC9D,SACO,OAAO;EACZ,MAAM,IAAI,eAAe,wBAAwB,YAAY,6EAA6E,EAAE,MAAM,CAAC;CACrJ;CAEA,MAAM,eAAe,KAAK,QAAQ,YAAY,GAAG,UAAU;CAC3D,IAAI;EACF,WAAW,cAAc,QAAQ,aAAa,UAAU,UAAU,OAAO,UAAU,IAAI;CACzF,SACO,OAAO;EACZ,MAAM,IAAI,eAAe,OAAO,YAAY,wDAAwD,aAAa,IAAI,EAAE,MAAM,CAAC;CAChI;CAEA,OAAO;AACT;AAEA,SAAS,SAAkB;CAEzB,QADe,QAAQ,QAAQ,YAAY,EAAA,EAC5B,QAAQ,wBAAwB,KAAA;AACjD"}
1
+ {"version":3,"file":"binary.js","names":[],"sources":["../src-js/binary.ts"],"sourcesContent":["import process from 'node:process'\n\nimport { accessSync, constants } from 'node:fs'\nimport { createRequire } from 'node:module'\nimport { dirname, join } from 'node:path'\n\nconst require = createRequire(import.meta.url)\n\nconst PLATFORM_PACKAGES = new Map<string, readonly [string, string]>([\n ['darwin-arm64', ['@auv-js/cli-darwin-arm64', 'bin/auv']],\n ['darwin-x64', ['@auv-js/cli-darwin-x64', 'bin/auv']],\n ['linux-arm64', ['@auv-js/cli-linux-arm64-gnu', 'bin/auv']],\n ['linux-x64', ['@auv-js/cli-linux-x64-gnu', 'bin/auv']],\n ['win32-arm64', ['@auv-js/cli-win32-arm64-msvc', 'bin/auv.exe']],\n ['win32-x64', ['@auv-js/cli-win32-x64-msvc', 'bin/auv.exe']],\n])\n\ninterface DiagnosticReport {\n header?: {\n glibcVersionRuntime?: string\n }\n}\n\nexport class AuvBinaryError extends Error {\n constructor(message: string, options?: ErrorOptions) {\n super(message, options)\n this.name = 'AuvBinaryError'\n }\n}\n\n/** Return the absolute path of the AUV executable installed for this host. */\nexport function binaryPath(): string {\n const platformKey = `${process.platform}-${process.arch}`\n\n const platformPackage = PLATFORM_PACKAGES.get(platformKey)\n if (!platformPackage) {\n throw new AuvBinaryError(`AUV does not publish an executable for ${process.platform}/${process.arch}.`)\n }\n if (process.platform === 'linux' && isMusl()) {\n throw new AuvBinaryError('AUV currently publishes glibc Linux executables only; musl Linux is not supported.')\n }\n\n const [packageName, executable] = platformPackage\n let manifestPath: string\n\n try {\n manifestPath = require.resolve(`${packageName}/package.json`)\n }\n catch (cause) {\n throw new AuvBinaryError(`The optional package ${packageName} is missing. Reinstall @auv-js/cli without omitting optional dependencies.`, { cause })\n }\n\n const resolvedPath = join(dirname(manifestPath), executable)\n try {\n accessSync(resolvedPath, process.platform === 'win32' ? constants.F_OK : constants.X_OK)\n }\n catch (cause) {\n throw new AuvBinaryError(`The ${packageName} package does not contain an executable AUV binary at ${resolvedPath}.`, { cause })\n }\n\n return resolvedPath\n}\n\nfunction isMusl(): boolean {\n const report = process.report?.getReport?.() as DiagnosticReport | undefined\n return report?.header?.glibcVersionRuntime === undefined\n}\n"],"mappings":";;;;;AAMA,MAAM,UAAU,cAAc,OAAO,KAAK,GAAG;AAE7C,MAAM,oCAAoB,IAAI,IAAuC;CACnE,CAAC,gBAAgB,CAAC,4BAA4B,SAAS,CAAC;CACxD,CAAC,cAAc,CAAC,0BAA0B,SAAS,CAAC;CACpD,CAAC,eAAe,CAAC,+BAA+B,SAAS,CAAC;CAC1D,CAAC,aAAa,CAAC,6BAA6B,SAAS,CAAC;CACtD,CAAC,eAAe,CAAC,gCAAgC,aAAa,CAAC;CAC/D,CAAC,aAAa,CAAC,8BAA8B,aAAa,CAAC;AAC7D,CAAC;AAQD,IAAa,iBAAb,cAAoC,MAAM;CACxC,YAAY,SAAiB,SAAwB;EACnD,MAAM,SAAS,OAAO;EACtB,KAAK,OAAO;CACd;AACF;;AAGA,SAAgB,aAAqB;CACnC,MAAM,cAAc,GAAG,QAAQ,SAAS,GAAG,QAAQ;CAEnD,MAAM,kBAAkB,kBAAkB,IAAI,WAAW;CACzD,IAAI,CAAC,iBACH,MAAM,IAAI,eAAe,0CAA0C,QAAQ,SAAS,GAAG,QAAQ,KAAK,EAAE;CAExG,IAAI,QAAQ,aAAa,WAAW,OAAO,GACzC,MAAM,IAAI,eAAe,oFAAoF;CAG/G,MAAM,CAAC,aAAa,cAAc;CAClC,IAAI;CAEJ,IAAI;EACF,eAAe,QAAQ,QAAQ,GAAG,YAAY,cAAc;CAC9D,SACO,OAAO;EACZ,MAAM,IAAI,eAAe,wBAAwB,YAAY,6EAA6E,EAAE,MAAM,CAAC;CACrJ;CAEA,MAAM,eAAe,KAAK,QAAQ,YAAY,GAAG,UAAU;CAC3D,IAAI;EACF,WAAW,cAAc,QAAQ,aAAa,UAAU,UAAU,OAAO,UAAU,IAAI;CACzF,SACO,OAAO;EACZ,MAAM,IAAI,eAAe,OAAO,YAAY,wDAAwD,aAAa,IAAI,EAAE,MAAM,CAAC;CAChI;CAEA,OAAO;AACT;AAEA,SAAS,SAAkB;CAEzB,QADe,QAAQ,QAAQ,YAAY,EAAA,EAC5B,QAAQ,wBAAwB,KAAA;AACjD"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@auv-js/cli",
3
3
  "type": "module",
4
- "version": "0.0.25",
4
+ "version": "0.0.28",
5
5
  "description": "NAPI bindings and the platform-matched AUV command-line executable",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -50,6 +50,7 @@
50
50
  "rootPublisher": "pnpm",
51
51
  "targets": [
52
52
  "aarch64-apple-darwin",
53
+ "aarch64-pc-windows-msvc",
53
54
  "aarch64-unknown-linux-gnu",
54
55
  "x86_64-apple-darwin",
55
56
  "x86_64-pc-windows-msvc",
@@ -60,11 +61,12 @@
60
61
  "std-env": "4.2.0"
61
62
  },
62
63
  "optionalDependencies": {
63
- "@auv-js/cli-darwin-arm64": "0.0.25",
64
- "@auv-js/cli-linux-arm64-gnu": "0.0.25",
65
- "@auv-js/cli-darwin-x64": "0.0.25",
66
- "@auv-js/cli-win32-x64-msvc": "0.0.25",
67
- "@auv-js/cli-linux-x64-gnu": "0.0.25"
64
+ "@auv-js/cli-darwin-arm64": "0.0.28",
65
+ "@auv-js/cli-win32-arm64-msvc": "0.0.28",
66
+ "@auv-js/cli-linux-arm64-gnu": "0.0.28",
67
+ "@auv-js/cli-darwin-x64": "0.0.28",
68
+ "@auv-js/cli-win32-x64-msvc": "0.0.28",
69
+ "@auv-js/cli-linux-x64-gnu": "0.0.28"
68
70
  },
69
71
  "devDependencies": {
70
72
  "@emnapi/core": "^1.11.2",