/** * The agent modal's Canvas, drawn from the project map * (plans/agent-map-rebuild/design.md §3, §5, M6; design-eng agent-studio-v2 * AGENT-MAP.md "Modal Canvas", D74). * * The browser sends what `sapiom_dev_map` returned for this agent at the ref * the map is drawn at: its steps, the agents it calls and the agents that call * it. The board's steps and transitions come from that; `agents check`'s richer * step details (description, input schema, capabilities, terminate/fail) are * joined by step id when the working copy has them. Every other agent this one * touches is a card at the board's border: an edge it makes leaves the step * that makes the call (`fromStep`), else the entry; an edge into it arrives at * the entry. */ import { z } from "zod"; import type { CanvasGraph, CanvasNode } from "./canvas-graph.js"; declare const canvasMapInputSchema: z.ZodObject<{ steps: z.ZodNullable; line: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; line?: number | undefined; file?: string | undefined; }, { id: string; line?: number | undefined; file?: string | undefined; }>, "many">; transitions: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { entry: string; transitions: { kind: string; from: string; to: string; }[]; steps: { id: string; line?: number | undefined; file?: string | undefined; }[]; }, { entry: string; transitions: { kind: string; from: string; to: string; }[]; steps: { id: string; line?: number | undefined; file?: string | undefined; }[]; }>>; /** Why the map has no steps for this agent (`agents check` failed, a * sandbox app). Shown on an empty board instead of a generic reason. */ stepsUnavailable: z.ZodOptional; /** Agents this one calls, launches, signals or emits an event to. */ calls: z.ZodArray; label: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: string; to: string; label?: string | undefined; fromStep?: string | undefined; }, { kind: string; to: string; label?: string | undefined; fromStep?: string | undefined; }>, "many">; /** Agents that call this one. */ calledBy: z.ZodArray; }, "strip", z.ZodTypeAny, { kind: string; from: string; label?: string | undefined; }, { kind: string; from: string; label?: string | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { steps: { entry: string; transitions: { kind: string; from: string; to: string; }[]; steps: { id: string; line?: number | undefined; file?: string | undefined; }[]; } | null; calls: { kind: string; to: string; label?: string | undefined; fromStep?: string | undefined; }[]; calledBy: { kind: string; from: string; label?: string | undefined; }[]; stepsUnavailable?: string | undefined; }, { steps: { entry: string; transitions: { kind: string; from: string; to: string; }[]; steps: { id: string; line?: number | undefined; file?: string | undefined; }[]; } | null; calls: { kind: string; to: string; label?: string | undefined; fromStep?: string | undefined; }[]; calledBy: { kind: string; from: string; label?: string | undefined; }[]; stepsUnavailable?: string | undefined; }>; export type CanvasMapInput = z.infer; /** Parses the request body's `map`; null when it is absent or malformed. */ export declare function parseCanvasMapInput(value: unknown): CanvasMapInput | null; /** A border card's id: never a step id, which is a bare step name. */ export declare const borderNodeId: (slug: string) => string; export declare function isBorderNode(node: Pick): boolean; /** * The board graph for one agent from its map entry. `details` is `agents * check`'s graph for the working copy when it could be extracted; its * launch nodes are dropped, because the map's edges replace them. With no map * steps (a sandbox app, or a ref whose agent has none) the details' steps stand. * Returns null when there is nothing to draw. */ export declare function graphFromMap(input: CanvasMapInput, details: CanvasGraph | null, fallback: { manifestName: string; description: string; }): CanvasGraph | null; export {}; //# sourceMappingURL=canvas-map-steps.d.ts.map