// tools/update-status/mode-hints.ts — Map spec status to suggested Claude Code permission mode
// SPEC-494: Claude Code mode hints per spec phase
const MODE_MAP = {
    draft: 'default',
    review: 'default',
    approved: 'plan',
    implementing: 'acceptEdits',
    done: 'default',
    discarded: 'default',
};
const MODE_HINTS = {
    default: 'Spec is in an early phase — Claude will ask before each change.',
    plan: 'Spec is approved. Use `/mode plan` to prevent accidental edits while reviewing the implementation plan.',
    acceptEdits: 'Spec is the contract — safe to auto-accept file edits. Use `/mode acceptEdits`. Bash commands still ask for approval.',
};
/** Returns the suggested Claude Code permission mode for a given spec status, or undefined for unknown statuses. */
export function getSuggestedMode(newStatus) {
    const mode = MODE_MAP[newStatus];
    if (mode === undefined) {
        return undefined;
    }
    return { mode, hint: MODE_HINTS[mode] ?? '' };
}
//# sourceMappingURL=mode-hints.js.map