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.

24 lines 1.48 kB
/** * Quality-prompt and quality-history HTTP route handlers for the dashboard server. * * Backs `/api/quality` (compose a quality review prompt for one agent, optionally reusing a short-TTL * in-memory audit cache) and `/api/quality/history` (return persisted history rows plus the latest * trend summary). Query parameters are validated up front, with invalid agent/mode/limit values * answered as 400 JSON; downstream audit or filesystem failures are reported as JSON status bodies * rather than thrown. Report shaping lives in dashboard-reporting.ts; history loading in quality/history.ts. */ import type { ServerResponse } from "node:http"; import { type DashboardRouteContext } from "./dashboard-route-types.js"; /** * Bind the quality handlers to one server's request context so each closure shares the path validator, * the per-server audit cache, and the evidence recorder. * * @param ctx - per-server dashboard route context with path validation, the quality audit cache, and IO hooks * @returns the quality-prompt and quality-history handlers; each resolves true once it has answered a * matching request, or false to let another handler claim the URL */ export declare function createQualityRouteHandlers(ctx: DashboardRouteContext): { handleQualityRequest: (url: URL, res: ServerResponse) => boolean; handleQualityHistoryRequest: (url: URL, res: ServerResponse) => Promise<boolean>; }; //# sourceMappingURL=dashboard-quality-routes.d.ts.map