/** * execute tool — execute a command against a previously compiled IR. * * References a prior compile result by contentHash and runs the named * command through the Manifest RuntimeEngine. */ import { z } from 'zod'; import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import type { RuntimeContext } from '@angriff36/manifest'; export declare const executeInputSchema: { contentHash: z.ZodString; commandName: z.ZodString; input: z.ZodRecord; entityName: z.ZodOptional; instanceId: z.ZodOptional; context: z.ZodOptional; orgId: z.ZodOptional; actorId: z.ZodOptional; requestId: z.ZodOptional; source: z.ZodOptional; user: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; role: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; role: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ tenantId: z.ZodOptional; orgId: z.ZodOptional; actorId: z.ZodOptional; requestId: z.ZodOptional; source: z.ZodOptional; user: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; role: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; role: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ tenantId: z.ZodOptional; orgId: z.ZodOptional; actorId: z.ZodOptional; requestId: z.ZodOptional; source: z.ZodOptional; user: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; role: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; role: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }; export declare function handleExecute(args: { contentHash: string; commandName: string; input: Record; entityName?: string; instanceId?: string; context?: RuntimeContext; }): Promise<{ success: boolean; error: string; emittedEvents: never[]; result?: undefined; deniedBy?: undefined; guardFailure?: undefined; policyDenial?: undefined; constraintOutcomes?: undefined; } | { success: boolean; result: unknown; error: string | undefined; deniedBy: string | undefined; guardFailure: { index: number; expression: string; formatted: string; resolved: import("@angriff36/manifest").GuardResolvedValue[] | undefined; } | undefined; policyDenial: { policyName: string; formatted: string; message: string | undefined; } | undefined; constraintOutcomes: { code: string; constraintName: string; severity: "ok" | "warn" | "block"; passed: boolean; message: string | undefined; }[] | undefined; emittedEvents: { name: string; channel: string; payload: unknown; }[]; }>; export declare function registerExecuteTool(server: McpServer): void; //# sourceMappingURL=execute.d.ts.map