export const mcpPingDependencyDeclarations = [
    { dependencyId: "runtime.execEngine.mcp.ping", kind: "service", required: true, description: "Runtime-owned MCP ping support." },
    { dependencyId: "runtime.governancePlane.mcpApproval", kind: "permission", required: true, description: "dryRun:false requires explicit guard approval before pinging runtime MCP." },
];
export function createHostExecutorMcpPingProvider(executor) {
    const ping = executor?.mcp?.ping;
    if (ping === undefined)
        return undefined;
    return async (request, context) => {
        const result = await ping({ ...request, context });
        if (!result.ok)
            throw new Error(result.error.message);
        return result.output;
    };
}
