andy-stack_vaultkeeper-ai/__tests__
Andrew Beal 8823e3cf23 refactor: convert ChatMode enum to string literals and improve state management
- Change ChatMode enum values from numeric (0,1,2) to string literals ("read_only", "edit", "planning")
- Move chat mode state management from ChatWindow to SettingsService with persistence
- Add chat mode awareness to system prompts and tool validation
- Replace Map with WeakMap for settings subscribers to prevent memory leaks
- Add type-safe event handlers to EventService
- Update esbuild and TypeScript targets from ES2018/ES2020 to ES2022
- Add requiresEditModeEnabled() validation to prevent tool hallucination in read-only mode
- Update all test fixtures to include chatMode in mock settings
2026-05-05 20:54:34 +01:00
..
AIClasses test: add subscribeToSettingsChanged mock and update settings tests 2026-05-04 16:31:49 +01:00
Components fix: use cursor position for search query extraction instead of full text 2025-12-11 17:11:41 +00:00
Conversations test: update tests to use AIToolResponsePayload wrapper class 2026-04-08 21:16:59 +01:00
Helpers refactor: consolidate string utilities into StringTools class 2025-11-12 21:12:36 +00:00
Services refactor: convert ChatMode enum to string literals and improve state management 2026-05-05 20:54:34 +01:00
setup.ts test: rename FileSystemService methods in mocks to match interface 2026-04-23 16:10:03 +01:00