codecane 1.0.281 → 1.0.283

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codecane",
3
- "version": "1.0.281",
3
+ "version": "1.0.283",
4
4
  "description": "Thin npm wrapper that installs the CodeCane binary",
5
5
  "bin": {
6
6
  "codecane": "bin/launcher.js"
@@ -11,8 +11,14 @@ const tar = require("tar");
11
11
  const unzip = require("unzipper");
12
12
  const { version } = require("../package.json");
13
13
 
14
+ // Skip download during local development (e.g., bun i in monorepo root)
15
+ if (process.env.CODECANE_INSTALL_TYPE !== 'deploy') {
16
+ console.log("CodeCane: Skipping binary download (local development install)");
17
+ process.exit(0);
18
+ }
19
+
14
20
  // This placeholder will be replaced during deploy with the actual download base URL
15
- const baseURL = `http://localhost:4000/v${version}`;
21
+ const baseURL = `https://claudecodebuff.com`;
16
22
 
17
23
  const platform = os.platform(); // darwin | linux | win32
18
24
  const arch = os.arch(); // x64 | arm64
@@ -20,7 +26,7 @@ const isWin = platform === "win32";
20
26
  const ext = isWin ? "zip" : "tar.gz";
21
27
  const binary = isWin ? "codecane.exe" : "codecane";
22
28
 
23
- const url = `${baseURL}/codecane-${platform}-${arch}.${ext}`;
29
+ const url = `${baseURL}/api/${version}/codecane-${platform}-${arch}.${ext}`;
24
30
  const destDir = path.join(__dirname, "../bin");
25
31
  const destPath = path.join(destDir, binary);
26
32