import api from "./client"; // --------------------------------------------------------------------------- // Board Programs — the generic registry (roadmap, x_feature today) the CEO // monitors and can run off-schedule. See roboco/api/routes/board_programs.py. // --------------------------------------------------------------------------- export interface BoardProgram { key: string; role: string; trigger: string; scope: string; enabled: boolean; opted_in_project_slugs: string[]; last_opened_at: string | null; open_cycle: boolean; last_cycle_summary: string | null; } export const boardProgramsApi = { list: async (): Promise => { const { data } = await api.get("/board-programs"); return data; }, runNow: async (key: string): Promise => { const { data } = await api.post( `/board-programs/${key}/run-now`, ); return data; }, };