| 21 | * read the new value actually update. |
| 22 | */ |
| 23 | export interface LiveCounts { |
| 24 | /** Project slug the counts belong to. null when no active project. */ |
| 25 | project: string | null; |
| 26 | /** Map of agent_id → in-flight task count. */ |
| 27 | agents: Record<string, number>; |
| 28 | /** Project-level actionable approvals count. */ |
| 29 | approvals: number; |
| 30 | } |
| 31 | |
| 32 | const LiveCountsContext = createContext<LiveCounts>({ |
| 33 | project: null, |
nothing calls this directly
no outgoing calls
no test coverage detected