dejima 0.5.2 → 0.6.0
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/install.js +15 -1
- package/package.json +2 -2
package/install.js
CHANGED
|
@@ -107,7 +107,21 @@ async function main() {
|
|
|
107
107
|
fs.mkdirSync(binDir, { recursive: true });
|
|
108
108
|
|
|
109
109
|
console.log(`dejima: downloading ${asset} …`);
|
|
110
|
-
|
|
110
|
+
let tarball;
|
|
111
|
+
try {
|
|
112
|
+
tarball = await get(`${base}/${asset}`);
|
|
113
|
+
} catch (e) {
|
|
114
|
+
// A 404 here almost always means there's no published Release for this exact
|
|
115
|
+
// version/platform yet (or the tag isn't out). Say so plainly instead of
|
|
116
|
+
// surfacing a raw "HTTP 404" the way a generic failure would.
|
|
117
|
+
if (/HTTP 404/.test(e.message)) {
|
|
118
|
+
throw new Error(
|
|
119
|
+
`no prebuilt binary for this version/platform yet — ${asset} isn't in ` +
|
|
120
|
+
`release ${tag}.\n See https://github.com/${REPO}/releases for what's published.`
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
throw e;
|
|
124
|
+
}
|
|
111
125
|
await verifyChecksum(tarball);
|
|
112
126
|
|
|
113
127
|
// Unpack with the system tar. bsdtar (Windows 10+ `tar.exe`) reads .zip too;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dejima",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "CLI for Dejima — run a fleet of isolated AI coding agents on hardware you own.",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
7
7
|
"dejima": "bin/dejima.js"
|
|
8
8
|
},
|