@getclue/cli 0.3.0 → 0.4.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.
Files changed (2) hide show
  1. package/bin/clue +9 -0
  2. package/package.json +6 -6
package/bin/clue CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const { spawnSync } = require("child_process");
4
+ const fs = require("fs");
4
5
  const os = require("os");
5
6
  const path = require("path");
6
7
 
@@ -48,6 +49,14 @@ function getBinaryPath() {
48
49
  }
49
50
 
50
51
  const binary = getBinaryPath();
52
+
53
+ // Ensure the binary is executable (npm may not preserve permissions)
54
+ if (process.platform !== "win32") {
55
+ try {
56
+ fs.chmodSync(binary, 0o755);
57
+ } catch {}
58
+ }
59
+
51
60
  const result = spawnSync(binary, process.argv.slice(2), { stdio: "inherit" });
52
61
 
53
62
  if (result.error) {
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@getclue/cli",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Capture and explore the reasoning behind AI-assisted code changes",
5
5
  "license": "MIT",
6
6
  "bin": {
7
7
  "clue": "bin/clue"
8
8
  },
9
9
  "optionalDependencies": {
10
- "@getclue/cli-darwin-arm64": "0.3.0",
11
- "@getclue/cli-darwin-x64": "0.3.0",
12
- "@getclue/cli-linux-x64": "0.3.0",
13
- "@getclue/cli-linux-arm64": "0.3.0",
14
- "@getclue/cli-win32-x64": "0.3.0"
10
+ "@getclue/cli-darwin-arm64": "0.4.0",
11
+ "@getclue/cli-darwin-x64": "0.4.0",
12
+ "@getclue/cli-linux-x64": "0.4.0",
13
+ "@getclue/cli-linux-arm64": "0.4.0",
14
+ "@getclue/cli-win32-x64": "0.4.0"
15
15
  }
16
16
  }