claude-issue-solver 1.44.2 → 1.45.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.
@@ -91,17 +91,27 @@ end tell`;
91
91
  }
92
92
  function openInNewTerminal(script) {
93
93
  const platform = os.platform();
94
+ // Strip any surrounding quotes from the script path
95
+ const cleanScript = script.replace(/^['"]|['"]$/g, '');
94
96
  if (platform === 'darwin') {
95
- // macOS - use Terminal.app (always available, no session restoration issues)
96
- const terminalScript = generateTerminalOpenScript(script);
97
- // Use spawnSync with stdin to avoid shell escaping issues
98
- const result = (0, child_process_1.spawnSync)('osascript', [], {
99
- input: terminalScript,
100
- stdio: ['pipe', 'pipe', 'pipe'],
101
- });
102
- if (result.status !== 0) {
97
+ // macOS - use 'open' command which doesn't require automation permissions
98
+ // Create a .command file which Terminal will execute when opened
99
+ const commandFile = cleanScript.replace(/\.sh$/, '.command');
100
+ try {
101
+ // Copy the script to a .command file (Terminal executes these automatically)
102
+ fs.copyFileSync(cleanScript, commandFile);
103
+ fs.chmodSync(commandFile, '755');
104
+ // Prefer iTerm if installed, otherwise use default Terminal
105
+ if (fs.existsSync('/Applications/iTerm.app')) {
106
+ (0, child_process_1.execSync)(`open -a iTerm "${commandFile}"`, { stdio: 'pipe' });
107
+ }
108
+ else {
109
+ (0, child_process_1.execSync)(`open "${commandFile}"`, { stdio: 'pipe' });
110
+ }
111
+ }
112
+ catch {
103
113
  console.log('Could not open new terminal. Run manually:');
104
- console.log(script);
114
+ console.log(cleanScript);
105
115
  }
106
116
  }
107
117
  else if (platform === 'linux') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-issue-solver",
3
- "version": "1.44.2",
3
+ "version": "1.45.0",
4
4
  "description": "Automatically solve GitHub issues using Claude Code",
5
5
  "main": "dist/index.js",
6
6
  "bin": {