export function isPlanModeActive(planModeRef) {
    return planModeRef?.current === true;
}
export function planModeRestriction(toolName) {
    return `Error: ${toolName} is restricted in plan mode. Use read-only tools to explore (read-only bash like git log, wc, grep is allowed), write the plan under .gg/plans/, then call exit_plan for review.`;
}
//# sourceMappingURL=runtime-mode.js.map