ai-dispatch 10.40.0

Multi-AI CLI team orchestrator
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Fleet data source protocol — demo and live implementations share this contract.
// Exports: FleetDataSource, MissionAction.

import Foundation

enum MissionAction: Sendable {
    case abort, relaunch, steer(String), diff, export, dock
}

protocol FleetDataSource: Sendable {
    func snapshots() -> AsyncStream<FleetSnapshot>
    func detail(_ id: MissionID) async throws -> MissionDetail
    func diff(_ id: MissionID) async throws -> String
    func result(_ id: MissionID) async throws -> String
    func act(_ action: MissionAction, on id: MissionID) async throws -> MissionActionResult
    func currentSnapshot() -> FleetSnapshot
}