codewhale 0.8.45 → 0.8.47
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/package.json +2 -2
- package/scripts/artifacts.js +10 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codewhale",
|
|
3
|
-
"version": "0.8.
|
|
4
|
-
"codewhaleBinaryVersion": "0.8.
|
|
3
|
+
"version": "0.8.47",
|
|
4
|
+
"codewhaleBinaryVersion": "0.8.47",
|
|
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",
|
package/scripts/artifacts.js
CHANGED
|
@@ -78,12 +78,21 @@ function executableName(base, platform) {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
function releaseBaseUrl(version, repo = "Hmbown/CodeWhale") {
|
|
81
|
+
// CODEWHALE_RELEASE_BASE_URL is the canonical override.
|
|
82
|
+
// DEEPSEEK_TUI_RELEASE_BASE_URL / DEEPSEEK_RELEASE_BASE_URL are legacy aliases.
|
|
81
83
|
const override =
|
|
82
|
-
process.env.
|
|
84
|
+
process.env.CODEWHALE_RELEASE_BASE_URL ||
|
|
85
|
+
process.env.DEEPSEEK_TUI_RELEASE_BASE_URL ||
|
|
86
|
+
process.env.DEEPSEEK_RELEASE_BASE_URL;
|
|
83
87
|
if (override) {
|
|
84
88
|
const trimmed = String(override).trim();
|
|
85
89
|
return trimmed.endsWith("/") ? trimmed : `${trimmed}/`;
|
|
86
90
|
}
|
|
91
|
+
// When CODEWHALE_USE_CNB_MIRROR is set, use the CNB (China-friendly)
|
|
92
|
+
// mirror that already builds and publishes binary release assets.
|
|
93
|
+
if (process.env.CODEWHALE_USE_CNB_MIRROR) {
|
|
94
|
+
return `https://cnb.cool/Hmbown/CodeWhale/-/releases/v${version}/`;
|
|
95
|
+
}
|
|
87
96
|
return `https://github.com/${repo}/releases/download/v${version}/`;
|
|
88
97
|
}
|
|
89
98
|
|