codewhale 0.8.66 → 0.8.67

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
@@ -65,18 +65,18 @@ Prebuilt binaries for the GitHub release are downloaded automatically:
65
65
 
66
66
  - Linux x64
67
67
  - Linux arm64
68
- - Linux riscv64
69
68
  - macOS x64 / arm64
70
69
  - Windows x64
71
70
 
72
71
  HarmonyOS PC (`openharmony`) is treated as `linux`, so it gets the Linux
73
- binaries matching your CPU architecture (x64, arm64, or riscv64). Other
74
- platform/architecture combinations (musl, FreeBSD, …) aren't
75
- shipped as prebuilts. Unsupported platforms, checksum failures, and glibc
76
- compatibility problems still fail with a clear error pointing you at
77
- `cargo install codewhale-cli codewhale-tui --locked` and the full
72
+ binaries matching your CPU architecture (x64 or arm64). Linux riscv64 prebuilts
73
+ are temporarily paused while the locked `rquickjs-sys` dependency lacks
74
+ `riscv64gc-unknown-linux-gnu` bindings. Other platform/architecture combinations
75
+ (musl, FreeBSD, …) aren't shipped as prebuilts. Unsupported platforms, checksum
76
+ failures, and glibc compatibility problems still fail with a clear error pointing
77
+ you at the full
78
78
  [docs/INSTALL.md](https://github.com/Hmbown/CodeWhale/blob/main/docs/INSTALL.md)
79
- build-from-source guide.
79
+ guide.
80
80
 
81
81
  ## Wrapper configuration
82
82
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "codewhale",
3
- "version": "0.8.66",
4
- "codewhaleBinaryVersion": "0.8.66",
3
+ "version": "0.8.67",
4
+ "codewhaleBinaryVersion": "0.8.67",
5
5
  "description": "Install and run CodeWhale, the agentic terminal for open-source and open-weight coding models, from GitHub release artifacts.",
6
6
  "author": "Hmbown",
7
7
  "license": "MIT",
@@ -7,7 +7,6 @@ const ASSET_MATRIX = {
7
7
  linux: {
8
8
  x64: ["codewhale-linux-x64", "codewhale-tui-linux-x64", "codew-linux-x64"],
9
9
  arm64: ["codewhale-linux-arm64", "codewhale-tui-linux-arm64", "codew-linux-arm64"],
10
- riscv64: ["codewhale-linux-riscv64", "codewhale-tui-linux-riscv64", "codew-linux-riscv64"],
11
10
  },
12
11
  darwin: {
13
12
  x64: ["codewhale-macos-x64", "codewhale-tui-macos-x64", "codew-macos-x64"],
@@ -39,10 +38,11 @@ function detectBinaryNames() {
39
38
  const pair = defaults[arch];
40
39
  if (!pair) {
41
40
  const supported = Object.keys(defaults).map(a => `'${a}'`).join(', ');
41
+ const hint = platform === "linux" && arch === "riscv64" ? unsupportedRiscvHint() : unsupportedBuildHint();
42
42
  throw new Error(
43
43
  `Unsupported architecture: ${arch} on platform ${platform}. ` +
44
44
  `Supported architectures: ${supported}.\n\n` +
45
- unsupportedBuildHint(),
45
+ hint,
46
46
  );
47
47
  }
48
48
  return {
@@ -75,6 +75,16 @@ function unsupportedBuildHint() {
75
75
  ].join("\n");
76
76
  }
77
77
 
78
+ function unsupportedRiscvHint() {
79
+ return [
80
+ "Linux riscv64 prebuilt binaries are temporarily unavailable.",
81
+ "CodeWhale currently depends on rquickjs-sys, which does not ship",
82
+ "riscv64gc-unknown-linux-gnu bindings in the locked dependency set.",
83
+ "",
84
+ "Track the release notes and docs/INSTALL.md for the next RISC-V support update.",
85
+ ].join("\n");
86
+ }
87
+
78
88
  function executableName(base, platform) {
79
89
  return platform === "win32" ? `${base}.exe` : base;
80
90
  }
@@ -99,7 +99,7 @@ function glibcCompatibilityMessage(required, host) {
99
99
  `Prebuilt CodeWhale Linux binaries require GLIBC_${formatVersion(required)}, but ${hostLine}`,
100
100
  "",
101
101
  "The Linux x64 release asset is a static (musl) build that runs on any glibc,",
102
- "but the Linux arm64 and riscv64 assets are GNU libc builds linked against",
102
+ "but the Linux arm64 asset is a GNU libc build linked against",
103
103
  "Ubuntu 24.04/glibc 2.39, which Ubuntu 22.04 (glibc 2.35) cannot run.",
104
104
  "",
105
105
  buildFromSourceHint(),
@@ -57,7 +57,6 @@ test("known platforms are unaffected by alias map", () => {
57
57
  for (const [platform, arch, expectedCodeWhale] of [
58
58
  ["linux", "x64", "codewhale-linux-x64"],
59
59
  ["darwin", "arm64", "codewhale-macos-arm64"],
60
- ["linux", "riscv64", "codewhale-linux-riscv64"],
61
60
  ["win32", "x64", "codewhale-windows-x64.exe"],
62
61
  ]) {
63
62
  withMockedOs(platform, arch, () => {
@@ -68,6 +67,21 @@ test("known platforms are unaffected by alias map", () => {
68
67
  }
69
68
  });
70
69
 
70
+ test("linux riscv64 reports the temporary upstream binding blocker", () => {
71
+ withMockedOs("linux", "riscv64", () => {
72
+ const { detectBinaryNames } = require(ARTIFACTS_PATH);
73
+ assert.throws(
74
+ () => detectBinaryNames(),
75
+ (err) => {
76
+ assert.match(err.message, /Unsupported architecture: riscv64 on platform linux/);
77
+ assert.match(err.message, /rquickjs-sys/);
78
+ assert.match(err.message, /riscv64gc-unknown-linux-gnu/);
79
+ return true;
80
+ },
81
+ );
82
+ });
83
+ });
84
+
71
85
  test("allAssetNames includes every matrix entry", () => {
72
86
  const { allAssetNames, allReleaseAssetNames } = require(ARTIFACTS_PATH);
73
87
  const assetNames = allAssetNames();
@@ -75,6 +89,7 @@ test("allAssetNames includes every matrix entry", () => {
75
89
  assert.ok(assetNames.includes("codewhale-tui-windows-x64.exe"));
76
90
  assert.ok(assetNames.includes("codew-windows-x64.exe"));
77
91
  assert.ok(assetNames.includes("codewhale.bat"));
92
+ assert.ok(!assetNames.includes("codewhale-linux-riscv64"));
78
93
  assert.ok(allReleaseAssetNames().includes("codew-windows-x64.exe"));
79
94
  assert.ok(allReleaseAssetNames().includes("codewhale.bat"));
80
95
  });
@@ -119,7 +119,7 @@ test("glibc preflight message is CodeWhale-branded and actionable", () => {
119
119
  assert.match(message, /this system has glibc 2\.35/);
120
120
  assert.match(message, /cargo install codewhale-cli --locked/);
121
121
  assert.match(message, /Linux x64 release asset is a static \(musl\) build/);
122
- assert.match(message, /arm64 and riscv64 assets are GNU libc builds/);
122
+ assert.match(message, /Linux arm64 asset is a GNU libc build/);
123
123
  assert.match(message, /CODEWHALE_SKIP_GLIBC_CHECK=1/);
124
124
  });
125
125