feat(cli): Correct CLI plugin imports and add reset command/IPC to stop processes and clear persisted configs

This commit is contained in:
2025-08-29 16:52:00 +00:00
parent 51aa6eddad
commit cbea3f6187
24 changed files with 112 additions and 45 deletions

View File

@@ -165,6 +165,20 @@ export interface RestartAllResponse {
}>;
}
// Reset command (stop all and clear configs)
export interface ResetRequest {
// No parameters needed
}
export interface ResetResponse {
stopped: string[];
removed: string[];
failed: Array<{
id: string;
error: string;
}>;
}
// Daemon status command
export interface DaemonStatusRequest {
// No parameters needed
@@ -235,6 +249,7 @@ export type IpcMethodMap = {
startAll: { request: StartAllRequest; response: StartAllResponse };
stopAll: { request: StopAllRequest; response: StopAllResponse };
restartAll: { request: RestartAllRequest; response: RestartAllResponse };
reset: { request: ResetRequest; response: ResetResponse };
'daemon:status': {
request: DaemonStatusRequest;
response: DaemonStatusResponse;