export const codeDebugCaptureStateDependencyDeclarations = [
    { dependencyId: "runtime.execEngine.debug.captureState", kind: "runtime", required: true, description: "Runtime-owned debug state capture exposed through BaseToolExecutorPort.debug.captureState." },
    { dependencyId: "runtime.governancePlane.debugReadGrant", kind: "permission", required: true, description: "dryRun:false must carry explicit guard/governance approval before capturing debug state." },
];
export function createHostExecutorCodeDebugCaptureStateProvider(executor) {
    const captureState = executor?.debug?.captureState;
    if (captureState === undefined)
        return undefined;
    return async (request, context) => { const result = await captureState({ target: request.target, capture: request.capture, context }); if (!result.ok)
        throw new Error(result.error.message); return result.output; };
}
