export const codeDebugRunDependencyDeclarations = [
    { dependencyId: "runtime.execEngine.debug.launch", kind: "runtime", required: true, description: "Runtime-owned debug launcher exposed through BaseToolExecutorPort.debug.launch." },
    { dependencyId: "runtime.governancePlane.debugRunGrant", kind: "permission", required: true, description: "dryRun:false must carry explicit guard/governance approval before launching or attaching a debug session." },
];
export function createHostExecutorCodeDebugRunProvider(executor) {
    const launch = executor?.debug?.launch;
    if (launch === undefined)
        return undefined;
    return async (request, context) => { const result = await launch({ target: request.target, breakpoints: request.breakpoints, environment: request.environment, timeoutMs: request.timeoutMs, context }); if (!result.ok)
        throw new Error(result.error.message); return result.output; };
}
