/** * Runs Route * * GET /runs - Get recent run history (supports query params: after, before, status, limit) * GET /runs/:executionId - Get specific run details * POST /runs/:executionId/cancel - Cancel a running execution * POST /runs/:executionId/continue - Continue execution after HITL intervention */ import { Hono } from "hono"; import type { Runtime, Action } from "@gizmo-ai/runtime"; import type { StoredRun } from "../types.ts"; import type { PersistenceStore } from "../persistence/index.ts"; /** * Cancel response */ export interface CancelResponse { status: "cancelled"; executionId: string; } /** * Continue response */ export interface ContinueResponse { status: "continued"; executionId: string; action: string; } /** * Continue request body */ export interface ContinueRequest { action: string; payload?: Record; } export interface RunsRouteConfig = Record, A extends Action = Action> { getRunHistory: () => Map; persistence?: PersistenceStore | null; runtime?: Runtime; } /** * Create the runs routes */ export declare function createRunsRoute, A extends Action>(config: RunsRouteConfig): Hono; //# sourceMappingURL=runs.d.ts.map