/** * 模块: 模式闸门(plan / explore) * * Claude Code 的 plan mode / explore mode 在龙虾里没有等价物。 * 本模块通过 before_tool_call 钩子,在 plan/explore 模式下拦截写入类工具。 * * 模式切换通过 enhance_set_mode 工具完成(每 agent+session 独立)。 * * 默认禁用(defaultMode: "normal"),需要在配置里显式 enabled:true 才介入。 * 与龙虾 tools.allow/deny 互不冲突:即使本模块允许,龙虾仍会独立检查。 */ import type { OpenClawPluginApi } from "openclaw/plugin-sdk"; import type { AgentMode, ModeConfig, NotificationQueue } from "../types.js"; export declare function registerModeGate(api: OpenClawPluginApi, config: ModeConfig | undefined, notifyQueue: NotificationQueue): void; export declare function getCurrentMode(agentId: string, sessionId: string): AgentMode;