@tokenade/cli 0.9.9 → 1.0.1

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/package.json +8 -7
  2. package/platform.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenade/cli",
3
- "version": "0.9.9",
3
+ "version": "1.0.1",
4
4
  "description": "Tokenade — cut your AI coding agent's token bill. Installs the Tokenade CLI (a local, paid token-reduction tool; activate via your browser).",
5
5
  "homepage": "https://tokenade.net",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -15,12 +15,13 @@
15
15
  "tar": "^7.5.16"
16
16
  },
17
17
  "optionalDependencies": {
18
- "@tokenade/cli-linux-x64": "0.9.9",
19
- "@tokenade/cli-linux-x64-musl": "0.9.9",
20
- "@tokenade/cli-linux-arm64-musl": "0.9.9",
21
- "@tokenade/cli-darwin-arm64": "0.9.9",
22
- "@tokenade/cli-darwin-x64": "0.9.9",
23
- "@tokenade/cli-win32-x64": "0.9.9"
18
+ "@tokenade/cli-linux-x64": "1.0.1",
19
+ "@tokenade/cli-linux-x64-musl": "1.0.1",
20
+ "@tokenade/cli-linux-arm64-musl": "1.0.1",
21
+ "@tokenade/cli-darwin-arm64": "1.0.1",
22
+ "@tokenade/cli-darwin-x64": "1.0.1",
23
+ "@tokenade/cli-win32-x64": "1.0.1",
24
+ "@tokenade/cli-win32-arm64": "1.0.1"
24
25
  },
25
26
  "files": [
26
27
  "bin/",
package/platform.js CHANGED
@@ -59,12 +59,13 @@ function rustTarget() {
59
59
  ? "x86_64-unknown-linux-musl"
60
60
  : "x86_64-unknown-linux-gnu";
61
61
  }
62
- if (p === "win32") return "x86_64-pc-windows-gnu";
62
+ if (p === "win32")
63
+ return a === "arm64" ? "aarch64-pc-windows-gnullvm" : "x86_64-pc-windows-gnu";
63
64
  throw new Error(`unsupported platform: ${p}/${a}`);
64
65
  }
65
66
 
66
67
  // Rust target dir (in dist/) → the npm sub-package that carries its binary.
67
- // Kept in lockstep with the six packages the release script publishes and the
68
+ // Kept in lockstep with the seven packages the release script publishes and the
68
69
  // optionalDependencies in package.json — one source of truth for the mapping.
69
70
  const PACKAGE_BY_TARGET = {
70
71
  "x86_64-unknown-linux-gnu": "@tokenade/cli-linux-x64",
@@ -73,6 +74,7 @@ const PACKAGE_BY_TARGET = {
73
74
  "aarch64-apple-darwin": "@tokenade/cli-darwin-arm64",
74
75
  "x86_64-apple-darwin": "@tokenade/cli-darwin-x64",
75
76
  "x86_64-pc-windows-gnu": "@tokenade/cli-win32-x64",
77
+ "aarch64-pc-windows-gnullvm": "@tokenade/cli-win32-arm64",
76
78
  };
77
79
 
78
80
  // The per-platform sub-package name for the current host, or the given target.