/** * Shell 审批到 Session Interaction 的执行边界 Adapter。 * * Shell 只理解高风险命令审批协议;本 Adapter 把它转换成 Session 的通用 * approval Interaction,并把 Interaction 终态映射回 Shell 决策。 */ import type { ShellApprovalGateway, ShellApprovalHandle, ShellApprovalRequest } from "@downcity/shell"; import type { SessionInteractions } from "../../../session/control/SessionInteractions.js"; import type { SessionApprovalMode } from "../../../types/session/SessionInteraction.js"; /** 单个 Session 的 Shell 高风险操作审批 Adapter。 */ export declare class SessionShellApprovalAdapter implements ShellApprovalGateway { private readonly session_id; private readonly interactions; private mode; constructor(options: { /** 当前 Adapter 所属 Session 标识。 */ session_id: string; /** 当前 Session 的异步用户交互入口。 */ interactions: SessionInteractions; }); /** 把 Shell 高风险操作请求转换成 approval Interaction。 */ request(input: ShellApprovalRequest): Promise; /** 读取当前 Session 执行面使用的高风险操作审批模式。 */ get_effective_mode(): SessionApprovalMode; /** 在 Session Step 检查点提交后续高风险操作请求使用的审批模式。 */ set_effective_mode(mode: SessionApprovalMode): void; } //# sourceMappingURL=SessionShellApprovalAdapter.d.ts.map