andy-stack_vaultkeeper-ai/__tests__/Services
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
..
AbortService.test.ts feat: implement centralized abort controller with enhanced cancellation UX 2025-12-04 23:04:20 +00:00
AIControllerService.test.ts refactor(test): replace boolean params with ChatMode enum in AIControllerService tests 2026-04-19 20:41:28 +01:00
AIToolService.test.ts refactor: convert ChatMode enum to string literals and improve state management 2026-05-05 20:54:34 +01:00
ChatService.test.ts Rename 'AIfunction' to 'AITool' globally. 2026-01-30 22:35:54 +00:00
ConversationFileSystemService.test.ts Rename remaining references to functioncall to toolcall 2026-02-15 23:27:14 +00:00
ConversationNamingService.test.ts feat: add planning model selection and rate limit countdown UI 2026-01-05 21:49:51 +00:00
DiffService.test.ts Refactor file patching from unified diff to direct string replace 2025-12-05 23:02:55 +00:00
ExecutionAgent.test.ts test: update tests to use AIToolResponsePayload wrapper class 2026-04-08 21:16:59 +01:00
FileSystemService.test.ts feat: add quick actions system with provider-aware model settings 2026-04-20 20:20:22 +01:00
HTMLService.test.ts refactor: replace direct DOM manipulation with HTMLService 2025-11-01 13:27:53 +00:00
InputService.test.ts refactor: remove unused import and redundant test cases 2026-01-30 22:10:11 +00:00
MemoriesService.test.ts test: rename FileSystemService methods in mocks to match interface 2026-04-23 16:10:03 +01:00
MultiAgentIntegration.test.ts refactor: improve message height calculation and update dependencies 2026-04-19 23:53:14 +01:00
OrchestrationAgent.test.ts feat: add conditional web viewer access setting and directive system 2026-04-10 22:19:34 +01:00
PlanningAgent.test.ts feat: add conditional web viewer access setting and directive system 2026-04-10 22:19:34 +01:00
SanitiserService.test.ts refactor: standardize error handling with Exception helper and improve return types 2025-11-17 19:02:15 +00:00
SettingsService.test.ts refactor: convert ChatMode enum to string literals and improve state management 2026-05-05 20:54:34 +01:00
StreamingMarkdownService.test.ts refactor: standardize error handling with Exception helper and improve return types 2025-11-17 19:02:15 +00:00
StreamingService.test.ts Rename remaining references to functioncall to toolcall 2026-02-15 23:27:14 +00:00
UserInputService.test.ts test: add cleanup to prevent memory leaks in test suites 2025-10-30 12:15:35 +00:00
VaultCacheService.performance.test.ts refactor: convert ChatMode enum to string literals and improve state management 2026-05-05 20:54:34 +01:00
VaultCacheService.test.ts feat: implement centralized abort controller with enhanced cancellation UX 2025-12-04 23:04:20 +00:00
VaultService.pdf.test.ts refactor: convert ChatMode enum to string literals and improve state management 2026-05-05 20:54:34 +01:00
VaultService.performance.test.ts refactor: convert ChatMode enum to string literals and improve state management 2026-05-05 20:54:34 +01:00
VaultService.test.ts refactor: convert ChatMode enum to string literals and improve state management 2026-05-05 20:54:34 +01:00