dejima 0.5.3 → 0.6.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/install.js +15 -1
  2. package/package.json +1 -1
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
- const tarball = await get(`${base}/${asset}`);
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,6 +1,6 @@
1
1
  {
2
2
  "name": "dejima",
3
- "version": "0.5.3",
3
+ "version": "0.6.1",
4
4
  "description": "CLI for Dejima — run a fleet of isolated AI coding agents on hardware you own.",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {