feat: 实现 Queue Q2 受控 dispatch

This commit is contained in:
Codex
2026-06-01 22:44:27 +08:00
parent db886617dc
commit b19143ad85
9 changed files with 337 additions and 3 deletions
+11
View File
@@ -239,6 +239,17 @@ export interface QueueCommanderSnapshot extends JsonRecord {
generatedAt: string;
}
export interface QueueDispatchResult extends JsonRecord {
action: "queue-dispatch";
mutation: true;
task: QueueTaskRecord;
run: RunRecord;
command: CommandRecord;
runnerJob: JsonRecord;
latestAttempt: QueueAttemptRef;
pollCommands: JsonRecord;
}
export interface BackendEvent {
type: EventType;
payload: JsonRecord;