claudia-orchestrator 0.1.5 → 0.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudia-orchestrator",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "Claudia agent orchestration dashboard (cui fork)",
6
6
  "main": "dist/cui-server.js",
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { chmodSync } from 'fs';
3
+ import { chmodSync, existsSync } from 'fs';
4
4
  import { join } from 'path';
5
5
  import { fileURLToPath } from 'url';
6
6
  import { dirname } from 'path';
@@ -12,7 +12,14 @@ const __dirname = dirname(__filename);
12
12
  const executableFiles = [
13
13
  'dist/server.js',
14
14
  'dist/mcp-server/index.js',
15
- // node-pty spawn-helper loses execute permission when pnpm extracts prebuilds
15
+ ];
16
+
17
+ // node-pty spawn-helper paths vary by package manager
18
+ // Try multiple possible locations
19
+ const spawnHelperPaths = [
20
+ // npm flat structure
21
+ 'node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper',
22
+ // pnpm nested structure
16
23
  'node_modules/.pnpm/node-pty@1.1.0/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper',
17
24
  ];
18
25
 
@@ -24,8 +31,25 @@ executableFiles.forEach(file => {
24
31
  chmodSync(filePath, '755');
25
32
  console.log(`✓ Made ${file} executable`);
26
33
  } catch (error) {
27
- console.error(`✗ Failed to make ${file} executable:`, error.message);
34
+ // Don't warn for missing files - they may not exist in all installs
35
+ if (error.code !== 'ENOENT') {
36
+ console.error(`✗ Failed to make ${file} executable:`, error.message);
37
+ }
28
38
  }
29
39
  });
30
40
 
41
+ // Fix spawn-helper on macOS (try all possible paths)
42
+ for (const spawnHelper of spawnHelperPaths) {
43
+ const filePath = join(__dirname, '..', spawnHelper);
44
+ if (existsSync(filePath)) {
45
+ try {
46
+ chmodSync(filePath, '755');
47
+ console.log(`✓ Made spawn-helper executable`);
48
+ break; // Only need to fix one
49
+ } catch (error) {
50
+ console.error(`✗ Failed to make spawn-helper executable:`, error.message);
51
+ }
52
+ }
53
+ }
54
+
31
55
  console.log('Postinstall complete.');