import type { HerdrRollupInput } from "./semantic.js"; /** * Minimal authoritative Team-state shape consumed by the Herdr rollup. This * intentionally mirrors the real OMX Team state surfaces * (`WorkerStatus.state` from `src/team/state.ts` and the leader attention flag * `leader_attention_pending` from the team leader-attention state) rather than * inventing a bespoke shape. */ export interface TeamWorkerStateInput { id: string; /** WorkerStatus.state from src/team/state.ts */ state: "idle" | "working" | "blocked" | "done" | "failed" | "draining" | "unknown"; /** WorkerStatus.reason, used to detect user-blocking. */ reason?: string; } export interface TeamStateInput { /** leader_attention_pending from the team leader-attention state. */ leaderAttentionPending?: boolean; workers: TeamWorkerStateInput[]; runTerminal?: boolean; } /** * Map real authoritative Team state into the Herdr rollup input. The leader * attention flag is the authoritative user-block signal; a worker marked * `blocked` only counts as user-blocking when its reason indicates a user * decision, so a system-blocked worker does not force the whole pane to look * blocked. */ export declare function mapTeamStateToRollup(state: TeamStateInput): HerdrRollupInput; //# sourceMappingURL=team-map.d.ts.map