claude-ws 0.3.108 → 0.3.110
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": "claude-ws",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.110",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A beautifully crafted workspace interface for Claude Code with real-time streaming and local SQLite database",
|
|
6
6
|
"keywords": [
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
]
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
|
-
"postinstall": "node -
|
|
80
|
+
"postinstall": "node scripts/postinstall-optional-native-deps.js",
|
|
81
81
|
"dev": "cross-env CLAUDECODE= tsx server.ts",
|
|
82
82
|
"build": "cross-env NODE_ENV=production next build",
|
|
83
83
|
"start": "cross-env NODE_ENV=production CLAUDECODE= tsx server.ts",
|
|
@@ -111,7 +111,6 @@
|
|
|
111
111
|
"@dnd-kit/utilities": "^3.2.2",
|
|
112
112
|
"@fastify/cors": "^11.2.0",
|
|
113
113
|
"@fastify/multipart": "^9.4.0",
|
|
114
|
-
"@homebridge/node-pty-prebuilt-multiarch": "^0.13.1",
|
|
115
114
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
116
115
|
"@radix-ui/react-context-menu": "^2.2.16",
|
|
117
116
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
@@ -184,6 +183,9 @@
|
|
|
184
183
|
"zustand": "^5.0.11"
|
|
185
184
|
},
|
|
186
185
|
"packageManager": "pnpm@10.28.0+sha512.05df71d1421f21399e053fde567cea34d446fa02c76571441bfc1c7956e98e363088982d940465fd34480d4d90a0668bc12362f8aa88000a64e83d0b0e47be48",
|
|
186
|
+
"optionalDependencies": {
|
|
187
|
+
"@homebridge/node-pty-prebuilt-multiarch": "^0.13.1"
|
|
188
|
+
},
|
|
187
189
|
"devDependencies": {
|
|
188
190
|
"@types/js-yaml": "^4.0.9"
|
|
189
191
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Postinstall script — chmod spawn-helper for node-pty on Unix,
|
|
3
|
+
* and log a friendly message if node-pty is unavailable.
|
|
4
|
+
*
|
|
5
|
+
* node-pty is in optionalDependencies so npm/pnpm handle install failures
|
|
6
|
+
* gracefully. This script just does post-setup and user feedback.
|
|
7
|
+
*
|
|
8
|
+
* If node-pty is not available (e.g. Windows ARM64), the interactive
|
|
9
|
+
* terminal panel is disabled but everything else works.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const path = require('path');
|
|
13
|
+
const fs = require('fs');
|
|
14
|
+
|
|
15
|
+
const PKG = '@homebridge/node-pty-prebuilt-multiarch';
|
|
16
|
+
const PKG_DIR = path.join(__dirname, '..', 'node_modules', '@homebridge', 'node-pty-prebuilt-multiarch');
|
|
17
|
+
|
|
18
|
+
try {
|
|
19
|
+
require.resolve(PKG, { paths: [path.join(__dirname, '..')] });
|
|
20
|
+
// chmod +x the spawn-helper binary on Unix
|
|
21
|
+
try {
|
|
22
|
+
const helper = path.join(
|
|
23
|
+
PKG_DIR, 'prebuilds',
|
|
24
|
+
`${process.platform}-${process.arch}`,
|
|
25
|
+
'spawn-helper'
|
|
26
|
+
);
|
|
27
|
+
fs.chmodSync(helper, 0o755);
|
|
28
|
+
} catch {
|
|
29
|
+
// spawn-helper may not exist on this platform
|
|
30
|
+
}
|
|
31
|
+
} catch {
|
|
32
|
+
// node-pty not installed — this is fine, terminal feature will be disabled
|
|
33
|
+
}
|