import { AiMode } from "@superblocksteam/library-shared/types";
/**
 * Builds the <current_mode> XML tag that tells Clark which mode it's in.
 * Used in the initial user message and re-injected after phase 2 compaction.
 */
export function buildModeMessage(mode, planApproved) {
    let text = `You are currently in ${mode === AiMode.PLAN ? "Plan" : "Build"} mode.`;
    if (mode === AiMode.PLAN && planApproved !== undefined) {
        text += ` Plan approval status: ${planApproved
            ? "User has approved your plan - you have access to all tools to execute it"
            : "No plan approved - you can only use read-only tools"}.`;
    }
    return `<current_mode>${text}</current_mode>`;
}
//# sourceMappingURL=mode-message.js.map