andy-stack_vaultkeeper-ai/tsconfig.json
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

41 lines
No EOL
960 B
JSON

{
"compilerOptions": {
"verbatimModuleSyntax": true,
"skipLibCheck": true,
"inlineSourceMap": true,
"inlineSources": true,
"module": "ESNext",
"target": "ES2022",
"allowJs": true,
"noImplicitAny": true,
"moduleResolution": "bundler",
"importHelpers": true,
"isolatedModules": true,
"strictNullChecks": true,
"lib": [
"DOM",
"ES2022"
],
"paths": {
"main": ["./main.ts"],
"Helpers/*": ["./Helpers/*"],
"Enums/*": ["./Enums/*"],
"Services/*": ["./Services/*"],
"Conversations/*": ["./Conversations/*"],
"AIClasses/*": ["./AIClasses/*"],
"AIPrompts/*": ["./AIPrompts/*"],
"Components/*": ["./Components/*"],
"Stores/*": ["./Stores/*"],
"Views/*": ["./Views/*"],
"Modals/*": ["./Modals/*"],
"Types/*": ["./Types/*"]
}
},
"include": [
"**/*.ts",
"**/*.svelte"
],
"exclude": [
"node_modules"
]
}