andy-stack_vaultkeeper-ai/Enums/ChatMode.ts
Andrew Beal 82e58b52e7 refactor: replace edit/planning mode toggles with unified chat mode selector
Replace separate editModeActive and planningModeActive boolean flags with a single ChatMode enum (ReadOnly, Edit, Planning). Add ChatModeSelector component for mode switching. Update all components to use chatMode instead of individual flags. Refactor MainAgent and ChatService to accept ChatMode parameter. Remove edit-mode styling variants throughout UI components. Update system prompt to document user reference system. Consolidate input button styling with shared input-button-highlight class.
2026-04-19 20:39:04 +01:00

20 lines
No EOL
455 B
TypeScript

export enum ChatMode {
ReadOnly = 0,
Edit = 1,
Planning = 2
}
export function chatModeAllowsEdits(mode: ChatMode) {
return mode === ChatMode.Edit || mode === ChatMode.Planning;
}
export function iconForChatMode(mode: ChatMode) {
switch (mode) {
case ChatMode.ReadOnly:
return "eye";
case ChatMode.Edit:
return "pencil";
case ChatMode.Planning:
return "list-checks";
}
}