@spenceriam/impulse 0.15.3 → 0.15.5

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/package.json +6 -6
  2. package/postinstall.mjs +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spenceriam/impulse",
3
- "version": "0.15.3",
3
+ "version": "0.15.5",
4
4
  "description": "Terminal-based AI coding agent powered by Z.ai's Coding Plan",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -21,10 +21,10 @@
21
21
  "access": "public"
22
22
  },
23
23
  "optionalDependencies": {
24
- "@spenceriam/impulse-linux-x64": "0.15.3",
25
- "@spenceriam/impulse-linux-arm64": "0.15.3",
26
- "@spenceriam/impulse-darwin-x64": "0.15.3",
27
- "@spenceriam/impulse-darwin-arm64": "0.15.3",
28
- "@spenceriam/impulse-windows-x64": "0.15.3"
24
+ "@spenceriam/impulse-linux-x64": "0.15.5",
25
+ "@spenceriam/impulse-linux-arm64": "0.15.5",
26
+ "@spenceriam/impulse-darwin-x64": "0.15.5",
27
+ "@spenceriam/impulse-darwin-arm64": "0.15.5",
28
+ "@spenceriam/impulse-windows-x64": "0.15.5"
29
29
  }
30
30
  }
package/postinstall.mjs CHANGED
@@ -78,6 +78,13 @@ function prepareBinDirectory(binaryName) {
78
78
  }
79
79
 
80
80
  function symlinkBinary(sourcePath, targetPath) {
81
+ // Ensure source binary is executable (npm tarball doesn't preserve execute bit)
82
+ try {
83
+ fs.chmodSync(sourcePath, 0o755);
84
+ } catch (e) {
85
+ // Ignore chmod errors (may not have permission)
86
+ }
87
+
81
88
  fs.symlinkSync(sourcePath, targetPath);
82
89
  console.log(`IMPULSE binary symlinked: ${targetPath} -> ${sourcePath}`);
83
90