fix(client): Improve IPC client robustness and daemon debug logging; update tests and package metadata

This commit is contained in:
2025-08-29 09:29:53 +00:00
parent ebf06d6153
commit 6a8e723c03
10 changed files with 305 additions and 177 deletions

View File

@@ -56,6 +56,17 @@ export class TspmDaemon {
heartbeatThrowOnTimeout: false, // Don't throw, emit events instead
});
// Debug hooks for connection troubleshooting
this.ipcServer.on('clientConnect', (clientId: string) => {
console.log(`[IPC] client connected: ${clientId}`);
});
this.ipcServer.on('clientDisconnect', (clientId: string) => {
console.log(`[IPC] client disconnected: ${clientId}`);
});
this.ipcServer.on('error', (err: any) => {
console.error('[IPC] server error:', err?.message || err);
});
// Register message handlers
this.registerHandlers();