feat(cli): Correct CLI plugin imports and add reset command/IPC to stop processes and clear persisted configs
This commit is contained in:
@@ -293,6 +293,15 @@ export class TspmDaemon {
|
||||
},
|
||||
);
|
||||
|
||||
// Reset handler: stops all and clears configs
|
||||
this.ipcServer.onMessage(
|
||||
'reset',
|
||||
async (request: RequestForMethod<'reset'>) => {
|
||||
const result = await this.tspmInstance.reset();
|
||||
return result;
|
||||
},
|
||||
);
|
||||
|
||||
// Daemon management handlers
|
||||
this.ipcServer.onMessage(
|
||||
'daemon:status',
|
||||
|
Reference in New Issue
Block a user