@siteboon/claude-code-ui 1.8.11 → 1.8.12

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/dist/index.html CHANGED
@@ -25,7 +25,7 @@
25
25
 
26
26
  <!-- Prevent zoom on iOS -->
27
27
  <meta name="format-detection" content="telephone=no" />
28
- <script type="module" crossorigin src="/assets/index-DAipXx7e.js"></script>
28
+ <script type="module" crossorigin src="/assets/index-Cl5xisCA.js"></script>
29
29
  <link rel="stylesheet" crossorigin href="/assets/index-Co7ALK3i.css">
30
30
  </head>
31
31
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siteboon/claude-code-ui",
3
- "version": "1.8.11",
3
+ "version": "1.8.12",
4
4
  "description": "A web-based UI for Claude Code CLI",
5
5
  "type": "module",
6
6
  "main": "server/index.js",
@@ -25,15 +25,6 @@ async function spawnClaude(command, options = {}, ws) {
25
25
  // Build Claude CLI command - start with print/resume flags first
26
26
  const args = [];
27
27
 
28
- // Add print flag with command if we have a command
29
- if (command && command.trim()) {
30
-
31
- // Separate arguments for better cross-platform compatibility
32
- // This prevents issues with spaces and quotes on Windows
33
- args.push('--print');
34
- args.push(command);
35
- }
36
-
37
28
  // Use cwd (actual project directory) instead of projectPath (Claude's metadata directory)
38
29
  const workingDir = cwd || process.cwd();
39
30
 
@@ -225,6 +216,17 @@ async function spawnClaude(command, options = {}, ws) {
225
216
  console.log('📝 Skip permissions disabled due to plan mode');
226
217
  }
227
218
  }
219
+
220
+ // Add print flag with command if we have a command
221
+ if (command && command.trim()) {
222
+
223
+ // Separate arguments for better cross-platform compatibility
224
+ // This prevents issues with spaces and quotes on Windows
225
+ args.push('--print');
226
+ // Use `--` so user input is always treated as text, not options
227
+ args.push('--');
228
+ args.push(command);
229
+ }
228
230
 
229
231
  console.log('Spawning Claude CLI:', 'claude', args.map(arg => {
230
232
  const cleanArg = arg.replace(/\n/g, '\\n').replace(/\r/g, '\\r');
@@ -235,7 +237,11 @@ async function spawnClaude(command, options = {}, ws) {
235
237
  console.log('🔍 Full command args:', JSON.stringify(args, null, 2));
236
238
  console.log('🔍 Final Claude command will be: claude ' + args.join(' '));
237
239
 
238
- const claudeProcess = spawnFunction('claude', args, {
240
+ // Use Claude CLI from environment variable or default to 'claude'
241
+ const claudePath = process.env.CLAUDE_CLI_PATH || 'claude';
242
+ console.log('🔍 Using Claude CLI path:', claudePath);
243
+
244
+ const claudeProcess = spawnFunction(claudePath, args, {
239
245
  cwd: workingDir,
240
246
  stdio: ['pipe', 'pipe', 'pipe'],
241
247
  env: { ...process.env } // Inherit all environment variables