feat(cli): Correct CLI plugin imports and add reset command/IPC to stop processes and clear persisted configs
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user