export const mcpDeleteResourceDependencyDeclarations = [
    { dependencyId: "runtime.execEngine.mcp.deleteResource", kind: "service", required: true, description: "Runtime-owned MCP resource deletion support. BaseTool shapes the delete request and never deletes resources directly." },
    { dependencyId: "runtime.governancePlane.mcpApproval", kind: "permission", required: true, description: "dryRun:false requires explicit runtime guard approval before resource deletion." },
    { dependencyId: "runtime.mcp.resourceLifecycle", kind: "runtime", required: true, description: "Resource persistence, revision conflicts, tombstones, transports, and cleanup remain with runtime." },
];
export function createHostExecutorMcpDeleteResourceProvider(executor) {
    const deleteResource = executor?.mcp?.deleteResource;
    if (deleteResource === undefined)
        return undefined;
    return async (request, context) => {
        const result = await deleteResource({ ...request, context });
        if (!result.ok)
            throw new Error(result.error.message);
        return result.output;
    };
}
