@cometix/claude-code 2.1.156 → 2.1.158

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.cjs CHANGED
@@ -86,6 +86,24 @@ function main() {
86
86
  console.error(`[@cometix/claude-code postinstall] Failed to copy vendor/: ${err.message}`);
87
87
  }
88
88
  }
89
+
90
+ // Fix node-pty spawn-helper execute permission.
91
+ // npm strips +x from non-bin files; without it pty.spawn() fails
92
+ // with "posix_spawnp failed" on unix. Windows uses .exe (no chmod needed).
93
+ try {
94
+ const { chmodSync } = require('fs');
95
+ const search = [
96
+ path.join(dest, 'node_modules', 'node-pty', 'prebuilds'),
97
+ path.join(dest, '..', 'node-pty', 'prebuilds'),
98
+ ];
99
+ for (const dir of search) {
100
+ if (!existsSync(dir)) continue;
101
+ for (const plat of readdirSync(dir)) {
102
+ const h = path.join(dir, plat, 'spawn-helper');
103
+ if (existsSync(h)) chmodSync(h, 0o755);
104
+ }
105
+ }
106
+ } catch {}
89
107
  }
90
108
 
91
109
  main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometix/claude-code",
3
- "version": "2.1.156",
3
+ "version": "2.1.158",
4
4
  "bin": {
5
5
  "claude": "cli.js"
6
6
  },
@@ -25,18 +25,19 @@
25
25
  "ws": "^8.18.0",
26
26
  "yaml": "^2.7.0",
27
27
  "undici": "^7.3.0",
28
- "semver": "^7.6.3"
28
+ "semver": "^7.6.3",
29
+ "node-pty": "^1.1.0"
29
30
  },
30
31
  "optionalDependencies": {
31
- "@cometix/claude-code-darwin-arm64": "2.1.156",
32
- "@cometix/claude-code-darwin-x64": "2.1.156",
33
- "@cometix/claude-code-linux-arm64": "2.1.156",
34
- "@cometix/claude-code-linux-x64": "2.1.156",
35
- "@cometix/claude-code-linux-arm64-musl": "2.1.156",
36
- "@cometix/claude-code-linux-x64-musl": "2.1.156",
37
- "@cometix/claude-code-win32-arm64": "2.1.156",
38
- "@cometix/claude-code-win32-x64": "2.1.156",
39
- "@cometix/claude-code-android-arm64": "2.1.156",
32
+ "@cometix/claude-code-darwin-arm64": "2.1.158",
33
+ "@cometix/claude-code-darwin-x64": "2.1.158",
34
+ "@cometix/claude-code-linux-arm64": "2.1.158",
35
+ "@cometix/claude-code-linux-x64": "2.1.158",
36
+ "@cometix/claude-code-linux-arm64-musl": "2.1.158",
37
+ "@cometix/claude-code-linux-x64-musl": "2.1.158",
38
+ "@cometix/claude-code-win32-arm64": "2.1.158",
39
+ "@cometix/claude-code-win32-x64": "2.1.158",
40
+ "@cometix/claude-code-android-arm64": "2.1.158",
40
41
  "@img/sharp-darwin-arm64": "^0.34.2",
41
42
  "@img/sharp-darwin-x64": "^0.34.2",
42
43
  "@img/sharp-linux-arm": "^0.34.2",
package/sdk-tools.d.ts CHANGED
@@ -2958,6 +2958,10 @@ export interface AskUserQuestionOutput {
2958
2958
  answers: {
2959
2959
  [k: string]: string;
2960
2960
  };
2961
+ /**
2962
+ * Freeform text the user typed instead of selecting a structured option
2963
+ */
2964
+ response?: string;
2961
2965
  /**
2962
2966
  * Optional per-question annotations from the user (e.g., notes on preview selections). Keyed by question text.
2963
2967
  */