feat(automation): add Phase 4 DB meta migration, system/probe hooks, and TransferEngine

This commit is contained in:
tyuXX 2026-11-27 06:10:46 +00:00
parent 7dac3d1261
commit 55948591db
6 changed files with 665 additions and 43 deletions

View file

@ -168,12 +168,22 @@ export type ServerWsFrame =
event?: AlertEventSummary;
hostKeyMismatch?: HostKeyAlert;
}
| {
type: 'workflow:run';
runId: string;
workflowId: string;
status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'skipped';
triggerSource: string;
startedAt: number;
finishedAt?: number | null;
}
| { type: 'ai:delta'; chatId: string; chunk: string; done?: boolean; error?: string };
export const WS_CHANNELS = {
METRICS: 'metrics',
ALERTS: 'alerts',
CONFIG: 'config',
WORKFLOWS: 'workflows',
pty: (sessionId: string) => `pty:${sessionId}`,
stream: (jobId: string) => `stream:${jobId}`,
ai: (chatId: string) => `ai:${chatId}`,