UNPKG

@blundergoat/goat-flow

Version:

AI coding agent harness and local dashboard for Claude Code, OpenAI Codex, Google Antigravity, and GitHub Copilot - setup audits, guardrails, structured skills, deny hooks, and persistent learning loops.

25 lines 1.59 kB
/** * Project-management HTTP route handlers for the dashboard server. * * Backs `/api/plans` (read/write the active milestone plan), `/api/projects/list` (load and persist * the recent-projects list to disk), and `/api/projects/status` (classify adoption for one or many * paths). Mutating routes validate every incoming path through the route context before any write and * report failures as JSON status bodies rather than throwing. Persistence and identity normalisation * live in dashboard-project-state.ts; task-plan parsing in dashboard-task-state.ts. */ import type { IncomingMessage, ServerResponse } from "node:http"; import type { DashboardRouteContext } from "./dashboard-route-types.js"; /** * Bind the project-management handlers to one server's request context so each closure carries the * shared path validator, state-file locations, and evidence recorder. * * @param ctx - per-server dashboard route context with path validation, state-file paths, and IO hooks * @returns the plans, projects-list, and projects-status handlers; each resolves true once it has * answered a matching request, or false to let another handler claim the URL */ export declare function createProjectRouteHandlers(ctx: DashboardRouteContext): { handleTasksRequest: (req: IncomingMessage, url: URL, res: ServerResponse) => Promise<boolean>; handleProjectsListRequest: (req: IncomingMessage, url: URL, res: ServerResponse) => Promise<boolean>; handleProjectsStatusRequest: (url: URL, res: ServerResponse) => boolean; }; //# sourceMappingURL=dashboard-project-routes.d.ts.map