(value: unknown)
| 17 | } |
| 18 | |
| 19 | export function isThinkingMode(value: unknown): value is ThinkingMode { |
| 20 | return typeof value === "string" && (MODES as readonly string[]).includes(value) |
| 21 | } |
| 22 | |
| 23 | // Cycle order matches the slash command: show → hide → show. |
| 24 | export function nextThinkingMode(current: ThinkingMode): ThinkingMode { |