import { z } from "zod"; import type { JsonObject } from "@decionis/agent-safe-pipeline"; export declare const McpInvocationSchema: z.ZodObject<{ tool: z.ZodString; arguments: z.ZodDefault>; server: z.ZodOptional; transport: z.ZodOptional; principal: z.ZodOptional; correlationId: z.ZodOptional; idempotencyKey: z.ZodOptional; }, z.core.$strict>; export type McpInvocation = z.infer; /** * What an operator declares about one tool: in an `agent-safe.profile.mcp/1` * file the guard reads, or, as before, in trusted startup code beside the * registry that will run it. * * A tool with no binding is not governed by this adapter and not silently * allowed by it either: the guard refuses it, so adding a consequential tool * to a server cannot quietly add an ungoverned path to a system of record. * * `target` is a template rather than a callback so that a binding stays a * description an operator can read, and later hold in configuration, rather * than arbitrary code reached by tool name. */ export interface McpToolBinding { readonly tool: string; /** The Agent-Safe action name this tool becomes. */ readonly action: string; /** The system the effect lands in, and the operation there. */ readonly system: string; readonly operation: string; readonly environment?: string; /** `crm:customer:{customerId}` — every placeholder must be an argument. */ readonly target: string; /** * The arguments that decide what the action does. They are named so that * evidence and an approval screen can show the few that matter; every * argument is inside the intent hash regardless, named or not. */ readonly consequential: readonly string[]; /** The arguments this tool accepts. Anything else is refused, not dropped. */ readonly argumentsSchema: z.ZodType; /** * The argument naming the tool's subject (the customer it acts for). When * set, a call must come with a session subject and name that subject here, * or it is refused before the authority is asked. */ readonly subject?: string; } export declare const MAX_TEMPLATE_PLACEHOLDERS = 16; /** * Fills a target template from the arguments, by a single linear scan. * * Deliberately not a regular expression: the template is an operator's, but * the values substituted into it are the model's, and a scan has no * backtracking to exploit. A placeholder with no argument, an argument that * is not a scalar, and an unterminated brace are each a refusal rather than a * target with a hole in it. */ export declare function fillTarget(template: string, args: JsonObject): string | null; //# sourceMappingURL=McpInvocation.d.ts.map