claude-ws 0.3.110 → 0.3.111

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.110",
3
+ "version": "0.3.111",
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": [
@@ -15,9 +15,22 @@ import { createLogger } from './logger';
15
15
 
16
16
  const log = createLogger('TerminalManager');
17
17
 
18
- // Lazy-load node-pty — native module that may not compile on all platforms (e.g. Windows)
19
- type NodePty = typeof import('@homebridge/node-pty-prebuilt-multiarch');
20
- type IPty = import('@homebridge/node-pty-prebuilt-multiarch').IPty;
18
+ // Lazy-load node-pty — native module that may not compile on all platforms (e.g. Windows ARM64).
19
+ // Types are defined inline to avoid TypeScript errors when the package is not installed.
20
+ interface IPty {
21
+ pid: number;
22
+ cols: number;
23
+ rows: number;
24
+ process: string;
25
+ onData: (callback: (data: string) => void) => void;
26
+ onExit: (callback: (e: { exitCode: number; signal?: number }) => void) => void;
27
+ write: (data: string) => void;
28
+ resize: (cols: number, rows: number) => void;
29
+ kill: (signal?: string) => void;
30
+ }
31
+ interface NodePty {
32
+ spawn: (file: string, args: string[], options: Record<string, unknown>) => IPty;
33
+ }
21
34
  let pty: NodePty | null = null;
22
35
  try {
23
36
  pty = require('@homebridge/node-pty-prebuilt-multiarch');