@tecet/ollm 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +529 -0
- package/dist/cli.d.ts +25 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +81173 -0
- package/dist/cli.js.map +7 -0
- package/dist/commands/__tests__/commandRegistry.test.d.ts +2 -0
- package/dist/commands/__tests__/commandRegistry.test.d.ts.map +1 -0
- package/dist/commands/__tests__/commandRegistry.test.js +87 -0
- package/dist/commands/__tests__/commandRegistry.test.js.map +1 -0
- package/dist/commands/__tests__/slashCommandParsing.test.d.ts +10 -0
- package/dist/commands/__tests__/slashCommandParsing.test.d.ts.map +1 -0
- package/dist/commands/__tests__/slashCommandParsing.test.js +294 -0
- package/dist/commands/__tests__/slashCommandParsing.test.js.map +1 -0
- package/dist/commands/commandRegistry.d.ts +70 -0
- package/dist/commands/commandRegistry.d.ts.map +1 -0
- package/dist/commands/commandRegistry.js +378 -0
- package/dist/commands/commandRegistry.js.map +1 -0
- package/dist/commands/comparisonCommands.d.ts +22 -0
- package/dist/commands/comparisonCommands.d.ts.map +1 -0
- package/dist/commands/comparisonCommands.js +85 -0
- package/dist/commands/comparisonCommands.js.map +1 -0
- package/dist/commands/configCommands.d.ts +17 -0
- package/dist/commands/configCommands.d.ts.map +1 -0
- package/dist/commands/configCommands.js +91 -0
- package/dist/commands/configCommands.js.map +1 -0
- package/dist/commands/contextCommands.d.ts +19 -0
- package/dist/commands/contextCommands.d.ts.map +1 -0
- package/dist/commands/contextCommands.js +121 -0
- package/dist/commands/contextCommands.js.map +1 -0
- package/dist/commands/extensionCommands.d.ts +18 -0
- package/dist/commands/extensionCommands.d.ts.map +1 -0
- package/dist/commands/extensionCommands.js +341 -0
- package/dist/commands/extensionCommands.js.map +1 -0
- package/dist/commands/gitCommands.d.ts +20 -0
- package/dist/commands/gitCommands.d.ts.map +1 -0
- package/dist/commands/gitCommands.js +99 -0
- package/dist/commands/gitCommands.js.map +1 -0
- package/dist/commands/homeCommand.d.ts +8 -0
- package/dist/commands/homeCommand.d.ts.map +1 -0
- package/dist/commands/homeCommand.js +18 -0
- package/dist/commands/homeCommand.js.map +1 -0
- package/dist/commands/hookCommands.d.ts +13 -0
- package/dist/commands/hookCommands.d.ts.map +1 -0
- package/dist/commands/hookCommands.js +127 -0
- package/dist/commands/hookCommands.js.map +1 -0
- package/dist/commands/index.d.ts +22 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +21 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/mcpCommands.d.ts +56 -0
- package/dist/commands/mcpCommands.d.ts.map +1 -0
- package/dist/commands/mcpCommands.js +360 -0
- package/dist/commands/mcpCommands.js.map +1 -0
- package/dist/commands/mcpHealthCommands.d.ts +17 -0
- package/dist/commands/mcpHealthCommands.d.ts.map +1 -0
- package/dist/commands/mcpHealthCommands.js +303 -0
- package/dist/commands/mcpHealthCommands.js.map +1 -0
- package/dist/commands/mcpOAuthCommands.d.ts +16 -0
- package/dist/commands/mcpOAuthCommands.d.ts.map +1 -0
- package/dist/commands/mcpOAuthCommands.js +244 -0
- package/dist/commands/mcpOAuthCommands.js.map +1 -0
- package/dist/commands/memoryCommands.d.ts +25 -0
- package/dist/commands/memoryCommands.d.ts.map +1 -0
- package/dist/commands/memoryCommands.js +202 -0
- package/dist/commands/memoryCommands.js.map +1 -0
- package/dist/commands/metricsCommands.d.ts +20 -0
- package/dist/commands/metricsCommands.d.ts.map +1 -0
- package/dist/commands/metricsCommands.js +88 -0
- package/dist/commands/metricsCommands.js.map +1 -0
- package/dist/commands/modeCommands.d.ts +22 -0
- package/dist/commands/modeCommands.d.ts.map +1 -0
- package/dist/commands/modeCommands.js +452 -0
- package/dist/commands/modeCommands.js.map +1 -0
- package/dist/commands/modeShortcuts.d.ts +53 -0
- package/dist/commands/modeShortcuts.d.ts.map +1 -0
- package/dist/commands/modeShortcuts.js +213 -0
- package/dist/commands/modeShortcuts.js.map +1 -0
- package/dist/commands/modelCommands.d.ts +44 -0
- package/dist/commands/modelCommands.d.ts.map +1 -0
- package/dist/commands/modelCommands.js +448 -0
- package/dist/commands/modelCommands.js.map +1 -0
- package/dist/commands/projectCommands.d.ts +24 -0
- package/dist/commands/projectCommands.d.ts.map +1 -0
- package/dist/commands/projectCommands.js +175 -0
- package/dist/commands/projectCommands.js.map +1 -0
- package/dist/commands/providerCommands.d.ts +19 -0
- package/dist/commands/providerCommands.d.ts.map +1 -0
- package/dist/commands/providerCommands.js +87 -0
- package/dist/commands/providerCommands.js.map +1 -0
- package/dist/commands/reasoningCommands.d.ts +20 -0
- package/dist/commands/reasoningCommands.d.ts.map +1 -0
- package/dist/commands/reasoningCommands.js +86 -0
- package/dist/commands/reasoningCommands.js.map +1 -0
- package/dist/commands/reviewCommands.d.ts +20 -0
- package/dist/commands/reviewCommands.d.ts.map +1 -0
- package/dist/commands/reviewCommands.js +89 -0
- package/dist/commands/reviewCommands.js.map +1 -0
- package/dist/commands/sessionCommands.d.ts +41 -0
- package/dist/commands/sessionCommands.d.ts.map +1 -0
- package/dist/commands/sessionCommands.js +242 -0
- package/dist/commands/sessionCommands.js.map +1 -0
- package/dist/commands/snapshotCommands.d.ts +20 -0
- package/dist/commands/snapshotCommands.d.ts.map +1 -0
- package/dist/commands/snapshotCommands.js +297 -0
- package/dist/commands/snapshotCommands.js.map +1 -0
- package/dist/commands/templateCommands.d.ts +24 -0
- package/dist/commands/templateCommands.d.ts.map +1 -0
- package/dist/commands/templateCommands.js +186 -0
- package/dist/commands/templateCommands.js.map +1 -0
- package/dist/commands/themeCommands.d.ts +29 -0
- package/dist/commands/themeCommands.d.ts.map +1 -0
- package/dist/commands/themeCommands.js +179 -0
- package/dist/commands/themeCommands.js.map +1 -0
- package/dist/commands/types.d.ts +50 -0
- package/dist/commands/types.d.ts.map +1 -0
- package/dist/commands/types.js +2 -0
- package/dist/commands/types.js.map +1 -0
- package/dist/commands/utilityCommands.d.ts +29 -0
- package/dist/commands/utilityCommands.d.ts.map +1 -0
- package/dist/commands/utilityCommands.js +495 -0
- package/dist/commands/utilityCommands.js.map +1 -0
- package/dist/commands/workflowCommands.d.ts +56 -0
- package/dist/commands/workflowCommands.d.ts.map +1 -0
- package/dist/commands/workflowCommands.js +484 -0
- package/dist/commands/workflowCommands.js.map +1 -0
- package/dist/config/LLM_profiles.json +1908 -0
- package/dist/config/configLoader.d.ts +30 -0
- package/dist/config/configLoader.d.ts.map +1 -0
- package/dist/config/configLoader.js +380 -0
- package/dist/config/configLoader.js.map +1 -0
- package/dist/config/defaults.d.ts +25 -0
- package/dist/config/defaults.d.ts.map +1 -0
- package/dist/config/defaults.js +137 -0
- package/dist/config/defaults.js.map +1 -0
- package/dist/config/keybinds.d.ts +113 -0
- package/dist/config/keybinds.d.ts.map +1 -0
- package/dist/config/keybinds.js +113 -0
- package/dist/config/keybinds.js.map +1 -0
- package/dist/config/profiles.d.ts +44 -0
- package/dist/config/profiles.d.ts.map +1 -0
- package/dist/config/profiles.js +236 -0
- package/dist/config/profiles.js.map +1 -0
- package/dist/config/schema.d.ts +254 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +160 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config/settingsService.d.ts +251 -0
- package/dist/config/settingsService.d.ts.map +1 -0
- package/dist/config/settingsService.js +493 -0
- package/dist/config/settingsService.js.map +1 -0
- package/dist/config/styles.d.ts +28 -0
- package/dist/config/styles.d.ts.map +1 -0
- package/dist/config/styles.js +33 -0
- package/dist/config/styles.js.map +1 -0
- package/dist/config/systemSettings.json +17 -0
- package/dist/config/themes.d.ts +14 -0
- package/dist/config/themes.d.ts.map +1 -0
- package/dist/config/themes.js +248 -0
- package/dist/config/themes.js.map +1 -0
- package/dist/config/toolsConfig.d.ts +53 -0
- package/dist/config/toolsConfig.d.ts.map +1 -0
- package/dist/config/toolsConfig.js +171 -0
- package/dist/config/toolsConfig.js.map +1 -0
- package/dist/config/types.d.ts +306 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/config/types.js +6 -0
- package/dist/config/types.js.map +1 -0
- package/dist/features/chat/ChatProvider.d.ts +24 -0
- package/dist/features/chat/ChatProvider.d.ts.map +1 -0
- package/dist/features/chat/ChatProvider.js +166 -0
- package/dist/features/chat/ChatProvider.js.map +1 -0
- package/dist/features/chat/hooks/useAgentLoop.d.ts +27 -0
- package/dist/features/chat/hooks/useAgentLoop.d.ts.map +1 -0
- package/dist/features/chat/hooks/useAgentLoop.js +253 -0
- package/dist/features/chat/hooks/useAgentLoop.js.map +1 -0
- package/dist/features/chat/hooks/useChatNetwork.d.ts +39 -0
- package/dist/features/chat/hooks/useChatNetwork.d.ts.map +1 -0
- package/dist/features/chat/hooks/useChatNetwork.js +276 -0
- package/dist/features/chat/hooks/useChatNetwork.js.map +1 -0
- package/dist/features/chat/hooks/useChatState.d.ts +32 -0
- package/dist/features/chat/hooks/useChatState.d.ts.map +1 -0
- package/dist/features/chat/hooks/useChatState.js +77 -0
- package/dist/features/chat/hooks/useChatState.js.map +1 -0
- package/dist/features/chat/hooks/useContextEvents.d.ts +22 -0
- package/dist/features/chat/hooks/useContextEvents.d.ts.map +1 -0
- package/dist/features/chat/hooks/useContextEvents.js +160 -0
- package/dist/features/chat/hooks/useContextEvents.js.map +1 -0
- package/dist/features/chat/hooks/useMenuSystem.d.ts +24 -0
- package/dist/features/chat/hooks/useMenuSystem.d.ts.map +1 -0
- package/dist/features/chat/hooks/useMenuSystem.js +71 -0
- package/dist/features/chat/hooks/useMenuSystem.js.map +1 -0
- package/dist/features/chat/hooks/useScrollManager.d.ts +23 -0
- package/dist/features/chat/hooks/useScrollManager.d.ts.map +1 -0
- package/dist/features/chat/hooks/useScrollManager.js +38 -0
- package/dist/features/chat/hooks/useScrollManager.js.map +1 -0
- package/dist/features/chat/hooks/useSessionRecording.d.ts +18 -0
- package/dist/features/chat/hooks/useSessionRecording.d.ts.map +1 -0
- package/dist/features/chat/hooks/useSessionRecording.js +48 -0
- package/dist/features/chat/hooks/useSessionRecording.js.map +1 -0
- package/dist/features/chat/index.d.ts +12 -0
- package/dist/features/chat/index.d.ts.map +1 -0
- package/dist/features/chat/index.js +15 -0
- package/dist/features/chat/index.js.map +1 -0
- package/dist/features/chat/types.d.ts +138 -0
- package/dist/features/chat/types.d.ts.map +1 -0
- package/dist/features/chat/types.js +5 -0
- package/dist/features/chat/types.js.map +1 -0
- package/dist/features/chat/utils/promptUtils.d.ts +21 -0
- package/dist/features/chat/utils/promptUtils.d.ts.map +1 -0
- package/dist/features/chat/utils/promptUtils.js +103 -0
- package/dist/features/chat/utils/promptUtils.js.map +1 -0
- package/dist/features/context/ActiveContextState.d.ts +32 -0
- package/dist/features/context/ActiveContextState.d.ts.map +1 -0
- package/dist/features/context/ActiveContextState.js +284 -0
- package/dist/features/context/ActiveContextState.js.map +1 -0
- package/dist/features/context/ChatContext.d.ts +8 -0
- package/dist/features/context/ChatContext.d.ts.map +1 -0
- package/dist/features/context/ChatContext.js +536 -0
- package/dist/features/context/ChatContext.js.map +1 -0
- package/dist/features/context/ContextManagerContext.d.ts +132 -0
- package/dist/features/context/ContextManagerContext.d.ts.map +1 -0
- package/dist/features/context/ContextManagerContext.js +771 -0
- package/dist/features/context/ContextManagerContext.js.map +1 -0
- package/dist/features/context/ContextStatus.d.ts +43 -0
- package/dist/features/context/ContextStatus.d.ts.map +1 -0
- package/dist/features/context/ContextStatus.js +44 -0
- package/dist/features/context/ContextStatus.js.map +1 -0
- package/dist/features/context/FocusContext.d.ts +267 -0
- package/dist/features/context/FocusContext.d.ts.map +1 -0
- package/dist/features/context/FocusContext.js +324 -0
- package/dist/features/context/FocusContext.js.map +1 -0
- package/dist/features/context/GPUContext.d.ts +25 -0
- package/dist/features/context/GPUContext.d.ts.map +1 -0
- package/dist/features/context/GPUContext.js +64 -0
- package/dist/features/context/GPUContext.js.map +1 -0
- package/dist/features/context/HooksContext.d.ts +42 -0
- package/dist/features/context/HooksContext.d.ts.map +1 -0
- package/dist/features/context/HooksContext.js +310 -0
- package/dist/features/context/HooksContext.js.map +1 -0
- package/dist/features/context/KeybindsContext.d.ts +20 -0
- package/dist/features/context/KeybindsContext.d.ts.map +1 -0
- package/dist/features/context/KeybindsContext.js +80 -0
- package/dist/features/context/KeybindsContext.js.map +1 -0
- package/dist/features/context/ModelContext.d.ts +56 -0
- package/dist/features/context/ModelContext.d.ts.map +1 -0
- package/dist/features/context/ModelContext.js +290 -0
- package/dist/features/context/ModelContext.js.map +1 -0
- package/dist/features/context/ReviewContext.d.ts +50 -0
- package/dist/features/context/ReviewContext.d.ts.map +1 -0
- package/dist/features/context/ReviewContext.js +108 -0
- package/dist/features/context/ReviewContext.js.map +1 -0
- package/dist/features/context/ServiceContext.d.ts +46 -0
- package/dist/features/context/ServiceContext.d.ts.map +1 -0
- package/dist/features/context/ServiceContext.js +162 -0
- package/dist/features/context/ServiceContext.js.map +1 -0
- package/dist/features/context/SessionManager.d.ts +66 -0
- package/dist/features/context/SessionManager.d.ts.map +1 -0
- package/dist/features/context/SessionManager.js +117 -0
- package/dist/features/context/SessionManager.js.map +1 -0
- package/dist/features/context/SettingsContext.d.ts +15 -0
- package/dist/features/context/SettingsContext.d.ts.map +1 -0
- package/dist/features/context/SettingsContext.js +75 -0
- package/dist/features/context/SettingsContext.js.map +1 -0
- package/dist/features/context/SystemMessages.d.ts +27 -0
- package/dist/features/context/SystemMessages.d.ts.map +1 -0
- package/dist/features/context/SystemMessages.js +130 -0
- package/dist/features/context/SystemMessages.js.map +1 -0
- package/dist/features/context/ToolSupportMessages.d.ts +72 -0
- package/dist/features/context/ToolSupportMessages.d.ts.map +1 -0
- package/dist/features/context/ToolSupportMessages.js +116 -0
- package/dist/features/context/ToolSupportMessages.js.map +1 -0
- package/dist/features/context/UIContext.d.ts +43 -0
- package/dist/features/context/UIContext.d.ts.map +1 -0
- package/dist/features/context/UIContext.js +83 -0
- package/dist/features/context/UIContext.js.map +1 -0
- package/dist/features/context/UserPromptContext.d.ts +66 -0
- package/dist/features/context/UserPromptContext.d.ts.map +1 -0
- package/dist/features/context/UserPromptContext.js +176 -0
- package/dist/features/context/UserPromptContext.js.map +1 -0
- package/dist/features/context/__tests__/ModelContext.test.d.ts +5 -0
- package/dist/features/context/__tests__/ModelContext.test.d.ts.map +1 -0
- package/dist/features/context/__tests__/ModelContext.test.js +579 -0
- package/dist/features/context/__tests__/ModelContext.test.js.map +1 -0
- package/dist/features/context/contextSizing.d.ts +48 -0
- package/dist/features/context/contextSizing.d.ts.map +1 -0
- package/dist/features/context/contextSizing.js +87 -0
- package/dist/features/context/contextSizing.js.map +1 -0
- package/dist/features/context/gpuHintStore.d.ts +7 -0
- package/dist/features/context/gpuHintStore.d.ts.map +1 -0
- package/dist/features/context/gpuHintStore.js +15 -0
- package/dist/features/context/gpuHintStore.js.map +1 -0
- package/dist/features/context/gpuHints.d.ts +3 -0
- package/dist/features/context/gpuHints.d.ts.map +1 -0
- package/dist/features/context/gpuHints.js +2 -0
- package/dist/features/context/gpuHints.js.map +1 -0
- package/dist/features/context/handlers/agentLoopHandler.d.ts +58 -0
- package/dist/features/context/handlers/agentLoopHandler.d.ts.map +1 -0
- package/dist/features/context/handlers/agentLoopHandler.js +505 -0
- package/dist/features/context/handlers/agentLoopHandler.js.map +1 -0
- package/dist/features/context/handlers/commandHandler.d.ts +52 -0
- package/dist/features/context/handlers/commandHandler.d.ts.map +1 -0
- package/dist/features/context/handlers/commandHandler.js +107 -0
- package/dist/features/context/handlers/commandHandler.js.map +1 -0
- package/dist/features/context/handlers/contextEventHandlers.d.ts +71 -0
- package/dist/features/context/handlers/contextEventHandlers.d.ts.map +1 -0
- package/dist/features/context/handlers/contextEventHandlers.js +216 -0
- package/dist/features/context/handlers/contextEventHandlers.js.map +1 -0
- package/dist/features/context/hooks/useModelWarmup.d.ts +24 -0
- package/dist/features/context/hooks/useModelWarmup.d.ts.map +1 -0
- package/dist/features/context/hooks/useModelWarmup.js +181 -0
- package/dist/features/context/hooks/useModelWarmup.js.map +1 -0
- package/dist/features/context/hooks/useToolSupport.d.ts +19 -0
- package/dist/features/context/hooks/useToolSupport.d.ts.map +1 -0
- package/dist/features/context/hooks/useToolSupport.js +290 -0
- package/dist/features/context/hooks/useToolSupport.js.map +1 -0
- package/dist/features/context/types/chatTypes.d.ts +150 -0
- package/dist/features/context/types/chatTypes.d.ts.map +1 -0
- package/dist/features/context/types/chatTypes.js +8 -0
- package/dist/features/context/types/chatTypes.js.map +1 -0
- package/dist/features/context/useFocusedFilesInjection.d.ts +17 -0
- package/dist/features/context/useFocusedFilesInjection.d.ts.map +1 -0
- package/dist/features/context/useFocusedFilesInjection.js +37 -0
- package/dist/features/context/useFocusedFilesInjection.js.map +1 -0
- package/dist/features/context/utils/promptUtils.d.ts +28 -0
- package/dist/features/context/utils/promptUtils.d.ts.map +1 -0
- package/dist/features/context/utils/promptUtils.js +105 -0
- package/dist/features/context/utils/promptUtils.js.map +1 -0
- package/dist/features/context/utils/systemPromptBuilder.d.ts +39 -0
- package/dist/features/context/utils/systemPromptBuilder.d.ts.map +1 -0
- package/dist/features/context/utils/systemPromptBuilder.js +66 -0
- package/dist/features/context/utils/systemPromptBuilder.js.map +1 -0
- package/dist/features/hooks/adapter.d.ts +73 -0
- package/dist/features/hooks/adapter.d.ts.map +1 -0
- package/dist/features/hooks/adapter.js +259 -0
- package/dist/features/hooks/adapter.js.map +1 -0
- package/dist/features/hooks/index.d.ts +9 -0
- package/dist/features/hooks/index.d.ts.map +1 -0
- package/dist/features/hooks/index.js +9 -0
- package/dist/features/hooks/index.js.map +1 -0
- package/dist/features/hooks/types.d.ts +128 -0
- package/dist/features/hooks/types.d.ts.map +1 -0
- package/dist/features/hooks/types.js +9 -0
- package/dist/features/hooks/types.js.map +1 -0
- package/dist/features/profiles/ProfileManager.d.ts +56 -0
- package/dist/features/profiles/ProfileManager.d.ts.map +1 -0
- package/dist/features/profiles/ProfileManager.js +429 -0
- package/dist/features/profiles/ProfileManager.js.map +1 -0
- package/dist/features/profiles/__tests__/ProfileManager.integration.test.d.ts +12 -0
- package/dist/features/profiles/__tests__/ProfileManager.integration.test.d.ts.map +1 -0
- package/dist/features/profiles/__tests__/ProfileManager.integration.test.js +156 -0
- package/dist/features/profiles/__tests__/ProfileManager.integration.test.js.map +1 -0
- package/dist/features/profiles/modelUtils.d.ts +12 -0
- package/dist/features/profiles/modelUtils.d.ts.map +1 -0
- package/dist/features/profiles/modelUtils.js +20 -0
- package/dist/features/profiles/modelUtils.js.map +1 -0
- package/dist/features/provider/providerFactory.d.ts +19 -0
- package/dist/features/provider/providerFactory.d.ts.map +1 -0
- package/dist/features/provider/providerFactory.js +40 -0
- package/dist/features/provider/providerFactory.js.map +1 -0
- package/dist/lama_sprite/left/llama-l1.png +0 -0
- package/dist/lama_sprite/left/llama-l2.png +0 -0
- package/dist/lama_sprite/left/llama-l3.png +0 -0
- package/dist/lama_sprite/left/llama-l4.png +0 -0
- package/dist/lama_sprite/left/llama-l5.png +0 -0
- package/dist/lama_sprite/left/llama-l6.png +0 -0
- package/dist/lama_sprite/right/llama-r1.png +0 -0
- package/dist/lama_sprite/right/llama-r2.png +0 -0
- package/dist/lama_sprite/right/llama-r3.png +0 -0
- package/dist/lama_sprite/right/llama-r4.png +0 -0
- package/dist/lama_sprite/right/llama-r5.png +0 -0
- package/dist/lama_sprite/right/llama-r6.png +0 -0
- package/dist/nonInteractive.d.ts +87 -0
- package/dist/nonInteractive.d.ts.map +1 -0
- package/dist/nonInteractive.js +313 -0
- package/dist/nonInteractive.js.map +1 -0
- package/dist/services/KeybindsService.d.ts +13 -0
- package/dist/services/KeybindsService.d.ts.map +1 -0
- package/dist/services/KeybindsService.js +75 -0
- package/dist/services/KeybindsService.js.map +1 -0
- package/dist/services/__tests__/mcpConfigService.test.d.ts +5 -0
- package/dist/services/__tests__/mcpConfigService.test.d.ts.map +1 -0
- package/dist/services/__tests__/mcpConfigService.test.js +487 -0
- package/dist/services/__tests__/mcpConfigService.test.js.map +1 -0
- package/dist/services/__tests__/mcpMarketplace.integration.test.d.ts +8 -0
- package/dist/services/__tests__/mcpMarketplace.integration.test.d.ts.map +1 -0
- package/dist/services/__tests__/mcpMarketplace.integration.test.js +155 -0
- package/dist/services/__tests__/mcpMarketplace.integration.test.js.map +1 -0
- package/dist/services/__tests__/profileCompiler.test.d.ts +10 -0
- package/dist/services/__tests__/profileCompiler.test.d.ts.map +1 -0
- package/dist/services/__tests__/profileCompiler.test.js +357 -0
- package/dist/services/__tests__/profileCompiler.test.js.map +1 -0
- package/dist/services/documentService.d.ts +40 -0
- package/dist/services/documentService.d.ts.map +1 -0
- package/dist/services/documentService.js +202 -0
- package/dist/services/documentService.js.map +1 -0
- package/dist/services/hookFileService.d.ts +74 -0
- package/dist/services/hookFileService.d.ts.map +1 -0
- package/dist/services/hookFileService.js +311 -0
- package/dist/services/hookFileService.js.map +1 -0
- package/dist/services/hookLoader.d.ts +25 -0
- package/dist/services/hookLoader.d.ts.map +1 -0
- package/dist/services/hookLoader.js +87 -0
- package/dist/services/hookLoader.js.map +1 -0
- package/dist/services/mcpCleanup.d.ts +55 -0
- package/dist/services/mcpCleanup.d.ts.map +1 -0
- package/dist/services/mcpCleanup.js +196 -0
- package/dist/services/mcpCleanup.js.map +1 -0
- package/dist/services/mcpConfigBackup.d.ts +81 -0
- package/dist/services/mcpConfigBackup.d.ts.map +1 -0
- package/dist/services/mcpConfigBackup.js +406 -0
- package/dist/services/mcpConfigBackup.js.map +1 -0
- package/dist/services/mcpConfigService.d.ts +133 -0
- package/dist/services/mcpConfigService.d.ts.map +1 -0
- package/dist/services/mcpConfigService.js +349 -0
- package/dist/services/mcpConfigService.js.map +1 -0
- package/dist/services/mcpMarketplace.d.ts +130 -0
- package/dist/services/mcpMarketplace.d.ts.map +1 -0
- package/dist/services/mcpMarketplace.js +693 -0
- package/dist/services/mcpMarketplace.js.map +1 -0
- package/dist/services/profileCompiler.d.ts +79 -0
- package/dist/services/profileCompiler.d.ts.map +1 -0
- package/dist/services/profileCompiler.js +280 -0
- package/dist/services/profileCompiler.js.map +1 -0
- package/dist/templates/assistant/tier1.txt +18 -0
- package/dist/templates/assistant/tier2.txt +27 -0
- package/dist/templates/assistant/tier3.txt +49 -0
- package/dist/templates/assistant/tier4.txt +57 -0
- package/dist/templates/assistant/tier5.txt +51 -0
- package/dist/templates/debugger/tier1.txt +17 -0
- package/dist/templates/debugger/tier2.txt +28 -0
- package/dist/templates/debugger/tier3.txt +56 -0
- package/dist/templates/debugger/tier4.txt +58 -0
- package/dist/templates/debugger/tier5.txt +62 -0
- package/dist/templates/developer/tier1.txt +18 -0
- package/dist/templates/developer/tier2.txt +34 -0
- package/dist/templates/developer/tier3.txt +40 -0
- package/dist/templates/developer/tier4.txt +99 -0
- package/dist/templates/developer/tier5.txt +100 -0
- package/dist/templates/modes/index.ts +52 -0
- package/dist/templates/planning/tier1.txt +18 -0
- package/dist/templates/planning/tier2.txt +27 -0
- package/dist/templates/planning/tier3.txt +49 -0
- package/dist/templates/planning/tier4.txt +140 -0
- package/dist/templates/planning/tier5.txt +140 -0
- package/dist/templates/stateSnapshot.ts +38 -0
- package/dist/templates/system/.gitkeep +2 -0
- package/dist/templates/system/CoreMandates.txt +8 -0
- package/dist/templates/system/SanityChecks.txt +5 -0
- package/dist/templates/system/ToolDescriptions.txt +46 -0
- package/dist/templates/system/skills/.gitkeep +2 -0
- package/dist/templates/system/skills/SkillsAssistant.txt +27 -0
- package/dist/templates/system/skills/SkillsDebugger.txt +34 -0
- package/dist/templates/system/skills/SkillsDeveloper.txt +27 -0
- package/dist/templates/system/skills/SkillsPlanning.txt +33 -0
- package/dist/templates/system/skills/SkillsUser.txt +23 -0
- package/dist/templates/user/tier1.txt +18 -0
- package/dist/templates/user/tier2.txt +27 -0
- package/dist/templates/user/tier3.txt +49 -0
- package/dist/templates/user/tier4.txt +57 -0
- package/dist/templates/user/tier5.txt +51 -0
- package/dist/ui/App.d.ts +20 -0
- package/dist/ui/App.d.ts.map +1 -0
- package/dist/ui/App.js +355 -0
- package/dist/ui/App.js.map +1 -0
- package/dist/ui/components/AllCallbacksBridge.d.ts +31 -0
- package/dist/ui/components/AllCallbacksBridge.d.ts.map +1 -0
- package/dist/ui/components/AllCallbacksBridge.js +75 -0
- package/dist/ui/components/AllCallbacksBridge.js.map +1 -0
- package/dist/ui/components/ErrorBoundary.d.ts +38 -0
- package/dist/ui/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/ui/components/ErrorBoundary.js +70 -0
- package/dist/ui/components/ErrorBoundary.js.map +1 -0
- package/dist/ui/components/FullScreen.d.ts +24 -0
- package/dist/ui/components/FullScreen.d.ts.map +1 -0
- package/dist/ui/components/FullScreen.js +70 -0
- package/dist/ui/components/FullScreen.js.map +1 -0
- package/dist/ui/components/HybridModeDisplay.d.ts +36 -0
- package/dist/ui/components/HybridModeDisplay.d.ts.map +1 -0
- package/dist/ui/components/HybridModeDisplay.js +30 -0
- package/dist/ui/components/HybridModeDisplay.js.map +1 -0
- package/dist/ui/components/InputRouter.d.ts +16 -0
- package/dist/ui/components/InputRouter.d.ts.map +1 -0
- package/dist/ui/components/InputRouter.js +67 -0
- package/dist/ui/components/InputRouter.js.map +1 -0
- package/dist/ui/components/InputRoutingIndicator.d.ts +10 -0
- package/dist/ui/components/InputRoutingIndicator.d.ts.map +1 -0
- package/dist/ui/components/InputRoutingIndicator.js +13 -0
- package/dist/ui/components/InputRoutingIndicator.js.map +1 -0
- package/dist/ui/components/RightPanelLLMChat.d.ts +7 -0
- package/dist/ui/components/RightPanelLLMChat.d.ts.map +1 -0
- package/dist/ui/components/RightPanelLLMChat.js +15 -0
- package/dist/ui/components/RightPanelLLMChat.js.map +1 -0
- package/dist/ui/components/Terminal.d.ts +12 -0
- package/dist/ui/components/Terminal.d.ts.map +1 -0
- package/dist/ui/components/Terminal.js +90 -0
- package/dist/ui/components/Terminal.js.map +1 -0
- package/dist/ui/components/Terminal2.d.ts +10 -0
- package/dist/ui/components/Terminal2.d.ts.map +1 -0
- package/dist/ui/components/Terminal2.js +67 -0
- package/dist/ui/components/Terminal2.js.map +1 -0
- package/dist/ui/components/UICallbacksBridge.d.ts +25 -0
- package/dist/ui/components/UICallbacksBridge.d.ts.map +1 -0
- package/dist/ui/components/UICallbacksBridge.js +68 -0
- package/dist/ui/components/UICallbacksBridge.js.map +1 -0
- package/dist/ui/components/WindowSwitcher.d.ts +35 -0
- package/dist/ui/components/WindowSwitcher.d.ts.map +1 -0
- package/dist/ui/components/WindowSwitcher.js +20 -0
- package/dist/ui/components/WindowSwitcher.js.map +1 -0
- package/dist/ui/components/__tests__/testUtils.d.ts +69 -0
- package/dist/ui/components/__tests__/testUtils.d.ts.map +1 -0
- package/dist/ui/components/__tests__/testUtils.js +76 -0
- package/dist/ui/components/__tests__/testUtils.js.map +1 -0
- package/dist/ui/components/animations/lama/LlamaAnimation.d.ts +15 -0
- package/dist/ui/components/animations/lama/LlamaAnimation.d.ts.map +1 -0
- package/dist/ui/components/animations/lama/LlamaAnimation.js +375 -0
- package/dist/ui/components/animations/lama/LlamaAnimation.js.map +1 -0
- package/dist/ui/components/chat/ChatHistory.d.ts +57 -0
- package/dist/ui/components/chat/ChatHistory.d.ts.map +1 -0
- package/dist/ui/components/chat/ChatHistory.js +354 -0
- package/dist/ui/components/chat/ChatHistory.js.map +1 -0
- package/dist/ui/components/chat/Message.d.ts +20 -0
- package/dist/ui/components/chat/Message.d.ts.map +1 -0
- package/dist/ui/components/chat/Message.js +30 -0
- package/dist/ui/components/chat/Message.js.map +1 -0
- package/dist/ui/components/chat/MetricsDisplay.d.ts +36 -0
- package/dist/ui/components/chat/MetricsDisplay.d.ts.map +1 -0
- package/dist/ui/components/chat/MetricsDisplay.js +36 -0
- package/dist/ui/components/chat/MetricsDisplay.js.map +1 -0
- package/dist/ui/components/chat/ModeTransitionIndicator.d.ts +23 -0
- package/dist/ui/components/chat/ModeTransitionIndicator.d.ts.map +1 -0
- package/dist/ui/components/chat/ModeTransitionIndicator.js +57 -0
- package/dist/ui/components/chat/ModeTransitionIndicator.js.map +1 -0
- package/dist/ui/components/chat/ReasoningBox.d.ts +39 -0
- package/dist/ui/components/chat/ReasoningBox.d.ts.map +1 -0
- package/dist/ui/components/chat/ReasoningBox.js +106 -0
- package/dist/ui/components/chat/ReasoningBox.js.map +1 -0
- package/dist/ui/components/chat/StreamingIndicator.d.ts +17 -0
- package/dist/ui/components/chat/StreamingIndicator.d.ts.map +1 -0
- package/dist/ui/components/chat/StreamingIndicator.js +28 -0
- package/dist/ui/components/chat/StreamingIndicator.js.map +1 -0
- package/dist/ui/components/chat/ToolCall.d.ts +25 -0
- package/dist/ui/components/chat/ToolCall.d.ts.map +1 -0
- package/dist/ui/components/chat/ToolCall.js +26 -0
- package/dist/ui/components/chat/ToolCall.js.map +1 -0
- package/dist/ui/components/chat/index.d.ts +15 -0
- package/dist/ui/components/chat/index.d.ts.map +1 -0
- package/dist/ui/components/chat/index.js +8 -0
- package/dist/ui/components/chat/index.js.map +1 -0
- package/dist/ui/components/code-editor/EditorMockup.d.ts +20 -0
- package/dist/ui/components/code-editor/EditorMockup.d.ts.map +1 -0
- package/dist/ui/components/code-editor/EditorMockup.js +346 -0
- package/dist/ui/components/code-editor/EditorMockup.js.map +1 -0
- package/dist/ui/components/code-editor/index.d.ts +7 -0
- package/dist/ui/components/code-editor/index.d.ts.map +1 -0
- package/dist/ui/components/code-editor/index.js +7 -0
- package/dist/ui/components/code-editor/index.js.map +1 -0
- package/dist/ui/components/comparison/ComparisonView.d.ts +32 -0
- package/dist/ui/components/comparison/ComparisonView.d.ts.map +1 -0
- package/dist/ui/components/comparison/ComparisonView.js +27 -0
- package/dist/ui/components/comparison/ComparisonView.js.map +1 -0
- package/dist/ui/components/comparison/index.d.ts +3 -0
- package/dist/ui/components/comparison/index.d.ts.map +1 -0
- package/dist/ui/components/comparison/index.js +2 -0
- package/dist/ui/components/comparison/index.js.map +1 -0
- package/dist/ui/components/context/CompressionProgress.d.ts +38 -0
- package/dist/ui/components/context/CompressionProgress.d.ts.map +1 -0
- package/dist/ui/components/context/CompressionProgress.js +85 -0
- package/dist/ui/components/context/CompressionProgress.js.map +1 -0
- package/dist/ui/components/context/ContextMenu.d.ts +40 -0
- package/dist/ui/components/context/ContextMenu.d.ts.map +1 -0
- package/dist/ui/components/context/ContextMenu.js +420 -0
- package/dist/ui/components/context/ContextMenu.js.map +1 -0
- package/dist/ui/components/context/__tests__/CompressionProgress.example.d.ts +54 -0
- package/dist/ui/components/context/__tests__/CompressionProgress.example.d.ts.map +1 -0
- package/dist/ui/components/context/__tests__/CompressionProgress.example.js +28 -0
- package/dist/ui/components/context/__tests__/CompressionProgress.example.js.map +1 -0
- package/dist/ui/components/context/__tests__/CompressionProgress.test.d.ts +8 -0
- package/dist/ui/components/context/__tests__/CompressionProgress.test.d.ts.map +1 -0
- package/dist/ui/components/context/__tests__/CompressionProgress.test.js +201 -0
- package/dist/ui/components/context/__tests__/CompressionProgress.test.js.map +1 -0
- package/dist/ui/components/context/index.d.ts +9 -0
- package/dist/ui/components/context/index.d.ts.map +1 -0
- package/dist/ui/components/context/index.js +8 -0
- package/dist/ui/components/context/index.js.map +1 -0
- package/dist/ui/components/dialogs/APIKeyInputDialog.d.ts +20 -0
- package/dist/ui/components/dialogs/APIKeyInputDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/APIKeyInputDialog.js +169 -0
- package/dist/ui/components/dialogs/APIKeyInputDialog.js.map +1 -0
- package/dist/ui/components/dialogs/AddHookDialog.d.ts +29 -0
- package/dist/ui/components/dialogs/AddHookDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/AddHookDialog.js +30 -0
- package/dist/ui/components/dialogs/AddHookDialog.js.map +1 -0
- package/dist/ui/components/dialogs/ConfirmationDialog.d.ts +58 -0
- package/dist/ui/components/dialogs/ConfirmationDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/ConfirmationDialog.js +102 -0
- package/dist/ui/components/dialogs/ConfirmationDialog.js.map +1 -0
- package/dist/ui/components/dialogs/DeleteConfirmationDialog.d.ts +23 -0
- package/dist/ui/components/dialogs/DeleteConfirmationDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/DeleteConfirmationDialog.js +39 -0
- package/dist/ui/components/dialogs/DeleteConfirmationDialog.js.map +1 -0
- package/dist/ui/components/dialogs/Dialog.d.ts +48 -0
- package/dist/ui/components/dialogs/Dialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/Dialog.js +48 -0
- package/dist/ui/components/dialogs/Dialog.js.map +1 -0
- package/dist/ui/components/dialogs/DialogErrorBoundary.d.ts +17 -0
- package/dist/ui/components/dialogs/DialogErrorBoundary.d.ts.map +1 -0
- package/dist/ui/components/dialogs/DialogErrorBoundary.js +10 -0
- package/dist/ui/components/dialogs/DialogErrorBoundary.js.map +1 -0
- package/dist/ui/components/dialogs/DialogManager.d.ts +11 -0
- package/dist/ui/components/dialogs/DialogManager.d.ts.map +1 -0
- package/dist/ui/components/dialogs/DialogManager.js +98 -0
- package/dist/ui/components/dialogs/DialogManager.js.map +1 -0
- package/dist/ui/components/dialogs/EditHookDialog.d.ts +23 -0
- package/dist/ui/components/dialogs/EditHookDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/EditHookDialog.js +64 -0
- package/dist/ui/components/dialogs/EditHookDialog.js.map +1 -0
- package/dist/ui/components/dialogs/HealthMonitorDialog.d.ts +33 -0
- package/dist/ui/components/dialogs/HealthMonitorDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/HealthMonitorDialog.js +222 -0
- package/dist/ui/components/dialogs/HealthMonitorDialog.js.map +1 -0
- package/dist/ui/components/dialogs/HelpOverlay.d.ts +24 -0
- package/dist/ui/components/dialogs/HelpOverlay.d.ts.map +1 -0
- package/dist/ui/components/dialogs/HelpOverlay.js +20 -0
- package/dist/ui/components/dialogs/HelpOverlay.js.map +1 -0
- package/dist/ui/components/dialogs/HookApprovalDialog.d.ts +31 -0
- package/dist/ui/components/dialogs/HookApprovalDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/HookApprovalDialog.js +80 -0
- package/dist/ui/components/dialogs/HookApprovalDialog.js.map +1 -0
- package/dist/ui/components/dialogs/InstallServerDialog.d.ts +37 -0
- package/dist/ui/components/dialogs/InstallServerDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/InstallServerDialog.js +234 -0
- package/dist/ui/components/dialogs/InstallServerDialog.js.map +1 -0
- package/dist/ui/components/dialogs/MarketplaceDialog.d.ts +31 -0
- package/dist/ui/components/dialogs/MarketplaceDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/MarketplaceDialog.js +178 -0
- package/dist/ui/components/dialogs/MarketplaceDialog.js.map +1 -0
- package/dist/ui/components/dialogs/ModeSuggestionDialog.d.ts +23 -0
- package/dist/ui/components/dialogs/ModeSuggestionDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/ModeSuggestionDialog.js +33 -0
- package/dist/ui/components/dialogs/ModeSuggestionDialog.js.map +1 -0
- package/dist/ui/components/dialogs/OAuthConfigDialog.d.ts +34 -0
- package/dist/ui/components/dialogs/OAuthConfigDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/OAuthConfigDialog.js +307 -0
- package/dist/ui/components/dialogs/OAuthConfigDialog.js.map +1 -0
- package/dist/ui/components/dialogs/ServerConfigDialog.d.ts +35 -0
- package/dist/ui/components/dialogs/ServerConfigDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/ServerConfigDialog.js +210 -0
- package/dist/ui/components/dialogs/ServerConfigDialog.js.map +1 -0
- package/dist/ui/components/dialogs/ServerLogsViewer.d.ts +32 -0
- package/dist/ui/components/dialogs/ServerLogsViewer.d.ts.map +1 -0
- package/dist/ui/components/dialogs/ServerLogsViewer.js +244 -0
- package/dist/ui/components/dialogs/ServerLogsViewer.js.map +1 -0
- package/dist/ui/components/dialogs/TestHookDialog.d.ts +26 -0
- package/dist/ui/components/dialogs/TestHookDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/TestHookDialog.js +60 -0
- package/dist/ui/components/dialogs/TestHookDialog.js.map +1 -0
- package/dist/ui/components/dialogs/UninstallConfirmDialog.d.ts +36 -0
- package/dist/ui/components/dialogs/UninstallConfirmDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/UninstallConfirmDialog.js +66 -0
- package/dist/ui/components/dialogs/UninstallConfirmDialog.js.map +1 -0
- package/dist/ui/components/dialogs/UserPromptDialog.d.ts +34 -0
- package/dist/ui/components/dialogs/UserPromptDialog.d.ts.map +1 -0
- package/dist/ui/components/dialogs/UserPromptDialog.js +18 -0
- package/dist/ui/components/dialogs/UserPromptDialog.js.map +1 -0
- package/dist/ui/components/dialogs/index.d.ts +33 -0
- package/dist/ui/components/dialogs/index.d.ts.map +1 -0
- package/dist/ui/components/dialogs/index.js +19 -0
- package/dist/ui/components/dialogs/index.js.map +1 -0
- package/dist/ui/components/docs/DocNav.d.ts +21 -0
- package/dist/ui/components/docs/DocNav.d.ts.map +1 -0
- package/dist/ui/components/docs/DocNav.js +16 -0
- package/dist/ui/components/docs/DocNav.js.map +1 -0
- package/dist/ui/components/docs/DocViewer.d.ts +22 -0
- package/dist/ui/components/docs/DocViewer.d.ts.map +1 -0
- package/dist/ui/components/docs/DocViewer.js +51 -0
- package/dist/ui/components/docs/DocViewer.js.map +1 -0
- package/dist/ui/components/docs/DocsPanel.d.ts +21 -0
- package/dist/ui/components/docs/DocsPanel.d.ts.map +1 -0
- package/dist/ui/components/docs/DocsPanel.js +236 -0
- package/dist/ui/components/docs/DocsPanel.js.map +1 -0
- package/dist/ui/components/docs/index.d.ts +3 -0
- package/dist/ui/components/docs/index.d.ts.map +1 -0
- package/dist/ui/components/docs/index.js +3 -0
- package/dist/ui/components/docs/index.js.map +1 -0
- package/dist/ui/components/file-explorer/ConfirmationDialog.d.ts +45 -0
- package/dist/ui/components/file-explorer/ConfirmationDialog.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/ConfirmationDialog.js +87 -0
- package/dist/ui/components/file-explorer/ConfirmationDialog.js.map +1 -0
- package/dist/ui/components/file-explorer/EditorIntegration.d.ts +73 -0
- package/dist/ui/components/file-explorer/EditorIntegration.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/EditorIntegration.js +156 -0
- package/dist/ui/components/file-explorer/EditorIntegration.js.map +1 -0
- package/dist/ui/components/file-explorer/EnhancedFileExplorer.d.ts +28 -0
- package/dist/ui/components/file-explorer/EnhancedFileExplorer.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/EnhancedFileExplorer.js +33 -0
- package/dist/ui/components/file-explorer/EnhancedFileExplorer.js.map +1 -0
- package/dist/ui/components/file-explorer/ErrorHandler.d.ts +102 -0
- package/dist/ui/components/file-explorer/ErrorHandler.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/ErrorHandler.js +220 -0
- package/dist/ui/components/file-explorer/ErrorHandler.js.map +1 -0
- package/dist/ui/components/file-explorer/ExplorerPersistence.d.ts +103 -0
- package/dist/ui/components/file-explorer/ExplorerPersistence.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/ExplorerPersistence.js +182 -0
- package/dist/ui/components/file-explorer/ExplorerPersistence.js.map +1 -0
- package/dist/ui/components/file-explorer/FileExplorerComponent.d.ts +77 -0
- package/dist/ui/components/file-explorer/FileExplorerComponent.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/FileExplorerComponent.js +362 -0
- package/dist/ui/components/file-explorer/FileExplorerComponent.js.map +1 -0
- package/dist/ui/components/file-explorer/FileFocusContext.d.ts +65 -0
- package/dist/ui/components/file-explorer/FileFocusContext.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/FileFocusContext.js +127 -0
- package/dist/ui/components/file-explorer/FileFocusContext.js.map +1 -0
- package/dist/ui/components/file-explorer/FileOperations.d.ts +160 -0
- package/dist/ui/components/file-explorer/FileOperations.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/FileOperations.js +595 -0
- package/dist/ui/components/file-explorer/FileOperations.js.map +1 -0
- package/dist/ui/components/file-explorer/FileSearchDialog.d.ts +46 -0
- package/dist/ui/components/file-explorer/FileSearchDialog.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/FileSearchDialog.js +162 -0
- package/dist/ui/components/file-explorer/FileSearchDialog.js.map +1 -0
- package/dist/ui/components/file-explorer/FileTreeContext.d.ts +85 -0
- package/dist/ui/components/file-explorer/FileTreeContext.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/FileTreeContext.js +252 -0
- package/dist/ui/components/file-explorer/FileTreeContext.js.map +1 -0
- package/dist/ui/components/file-explorer/FileTreeService.d.ts +270 -0
- package/dist/ui/components/file-explorer/FileTreeService.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/FileTreeService.js +454 -0
- package/dist/ui/components/file-explorer/FileTreeService.js.map +1 -0
- package/dist/ui/components/file-explorer/FileTreeView.d.ts +45 -0
- package/dist/ui/components/file-explorer/FileTreeView.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/FileTreeView.js +686 -0
- package/dist/ui/components/file-explorer/FileTreeView.js.map +1 -0
- package/dist/ui/components/file-explorer/FocusSystem.d.ts +130 -0
- package/dist/ui/components/file-explorer/FocusSystem.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/FocusSystem.js +234 -0
- package/dist/ui/components/file-explorer/FocusSystem.js.map +1 -0
- package/dist/ui/components/file-explorer/FocusedFilesInjector.d.ts +52 -0
- package/dist/ui/components/file-explorer/FocusedFilesInjector.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/FocusedFilesInjector.js +147 -0
- package/dist/ui/components/file-explorer/FocusedFilesInjector.js.map +1 -0
- package/dist/ui/components/file-explorer/FocusedFilesPanel.d.ts +32 -0
- package/dist/ui/components/file-explorer/FocusedFilesPanel.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/FocusedFilesPanel.js +64 -0
- package/dist/ui/components/file-explorer/FocusedFilesPanel.js.map +1 -0
- package/dist/ui/components/file-explorer/FollowModeService.d.ts +55 -0
- package/dist/ui/components/file-explorer/FollowModeService.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/FollowModeService.js +195 -0
- package/dist/ui/components/file-explorer/FollowModeService.js.map +1 -0
- package/dist/ui/components/file-explorer/GitStatusService.d.ts +82 -0
- package/dist/ui/components/file-explorer/GitStatusService.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/GitStatusService.js +203 -0
- package/dist/ui/components/file-explorer/GitStatusService.js.map +1 -0
- package/dist/ui/components/file-explorer/Header.d.ts +26 -0
- package/dist/ui/components/file-explorer/Header.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/Header.js +20 -0
- package/dist/ui/components/file-explorer/Header.js.map +1 -0
- package/dist/ui/components/file-explorer/HelpPanel.d.ts +25 -0
- package/dist/ui/components/file-explorer/HelpPanel.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/HelpPanel.js +38 -0
- package/dist/ui/components/file-explorer/HelpPanel.js.map +1 -0
- package/dist/ui/components/file-explorer/LoadingIndicator.d.ts +56 -0
- package/dist/ui/components/file-explorer/LoadingIndicator.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/LoadingIndicator.js +82 -0
- package/dist/ui/components/file-explorer/LoadingIndicator.js.map +1 -0
- package/dist/ui/components/file-explorer/PathSanitizer.d.ts +92 -0
- package/dist/ui/components/file-explorer/PathSanitizer.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/PathSanitizer.js +169 -0
- package/dist/ui/components/file-explorer/PathSanitizer.js.map +1 -0
- package/dist/ui/components/file-explorer/QuickActionsMenu.d.ts +54 -0
- package/dist/ui/components/file-explorer/QuickActionsMenu.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/QuickActionsMenu.js +175 -0
- package/dist/ui/components/file-explorer/QuickActionsMenu.js.map +1 -0
- package/dist/ui/components/file-explorer/QuickOpenDialog.d.ts +40 -0
- package/dist/ui/components/file-explorer/QuickOpenDialog.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/QuickOpenDialog.js +231 -0
- package/dist/ui/components/file-explorer/QuickOpenDialog.js.map +1 -0
- package/dist/ui/components/file-explorer/SyntaxViewer.d.ts +37 -0
- package/dist/ui/components/file-explorer/SyntaxViewer.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/SyntaxViewer.js +95 -0
- package/dist/ui/components/file-explorer/SyntaxViewer.js.map +1 -0
- package/dist/ui/components/file-explorer/VisionService.d.ts +39 -0
- package/dist/ui/components/file-explorer/VisionService.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/VisionService.js +103 -0
- package/dist/ui/components/file-explorer/VisionService.js.map +1 -0
- package/dist/ui/components/file-explorer/WorkspaceContext.d.ts +68 -0
- package/dist/ui/components/file-explorer/WorkspaceContext.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/WorkspaceContext.js +98 -0
- package/dist/ui/components/file-explorer/WorkspaceContext.js.map +1 -0
- package/dist/ui/components/file-explorer/WorkspaceManager.d.ts +96 -0
- package/dist/ui/components/file-explorer/WorkspaceManager.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/WorkspaceManager.js +197 -0
- package/dist/ui/components/file-explorer/WorkspaceManager.js.map +1 -0
- package/dist/ui/components/file-explorer/__tests__/ExplorerPersistence.test.d.ts +7 -0
- package/dist/ui/components/file-explorer/__tests__/ExplorerPersistence.test.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/__tests__/ExplorerPersistence.test.js +97 -0
- package/dist/ui/components/file-explorer/__tests__/ExplorerPersistence.test.js.map +1 -0
- package/dist/ui/components/file-explorer/__tests__/FileOperations.test.d.ts +7 -0
- package/dist/ui/components/file-explorer/__tests__/FileOperations.test.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/__tests__/FileOperations.test.js +145 -0
- package/dist/ui/components/file-explorer/__tests__/FileOperations.test.js.map +1 -0
- package/dist/ui/components/file-explorer/__tests__/FileSearchDialog.test.d.ts +7 -0
- package/dist/ui/components/file-explorer/__tests__/FileSearchDialog.test.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/__tests__/FileSearchDialog.test.js +45 -0
- package/dist/ui/components/file-explorer/__tests__/FileSearchDialog.test.js.map +1 -0
- package/dist/ui/components/file-explorer/__tests__/FileTreeService.test.d.ts +7 -0
- package/dist/ui/components/file-explorer/__tests__/FileTreeService.test.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/__tests__/FileTreeService.test.js +108 -0
- package/dist/ui/components/file-explorer/__tests__/FileTreeService.test.js.map +1 -0
- package/dist/ui/components/file-explorer/__tests__/FocusSystem.test.d.ts +7 -0
- package/dist/ui/components/file-explorer/__tests__/FocusSystem.test.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/__tests__/FocusSystem.test.js +117 -0
- package/dist/ui/components/file-explorer/__tests__/FocusSystem.test.js.map +1 -0
- package/dist/ui/components/file-explorer/__tests__/PathSanitizer.test.d.ts +7 -0
- package/dist/ui/components/file-explorer/__tests__/PathSanitizer.test.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/__tests__/PathSanitizer.test.js +74 -0
- package/dist/ui/components/file-explorer/__tests__/PathSanitizer.test.js.map +1 -0
- package/dist/ui/components/file-explorer/index.d.ts +33 -0
- package/dist/ui/components/file-explorer/index.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/index.js +36 -0
- package/dist/ui/components/file-explorer/index.js.map +1 -0
- package/dist/ui/components/file-explorer/types.d.ts +81 -0
- package/dist/ui/components/file-explorer/types.d.ts.map +1 -0
- package/dist/ui/components/file-explorer/types.js +9 -0
- package/dist/ui/components/file-explorer/types.js.map +1 -0
- package/dist/ui/components/forms/Button.d.ts +55 -0
- package/dist/ui/components/forms/Button.d.ts.map +1 -0
- package/dist/ui/components/forms/Button.js +58 -0
- package/dist/ui/components/forms/Button.js.map +1 -0
- package/dist/ui/components/forms/Checkbox.d.ts +39 -0
- package/dist/ui/components/forms/Checkbox.d.ts.map +1 -0
- package/dist/ui/components/forms/Checkbox.js +29 -0
- package/dist/ui/components/forms/Checkbox.js.map +1 -0
- package/dist/ui/components/forms/FormField.d.ts +24 -0
- package/dist/ui/components/forms/FormField.d.ts.map +1 -0
- package/dist/ui/components/forms/FormField.js +11 -0
- package/dist/ui/components/forms/FormField.js.map +1 -0
- package/dist/ui/components/forms/TextInput.d.ts +47 -0
- package/dist/ui/components/forms/TextInput.d.ts.map +1 -0
- package/dist/ui/components/forms/TextInput.js +74 -0
- package/dist/ui/components/forms/TextInput.js.map +1 -0
- package/dist/ui/components/forms/Tooltip.d.ts +38 -0
- package/dist/ui/components/forms/Tooltip.d.ts.map +1 -0
- package/dist/ui/components/forms/Tooltip.js +21 -0
- package/dist/ui/components/forms/Tooltip.js.map +1 -0
- package/dist/ui/components/forms/index.d.ts +22 -0
- package/dist/ui/components/forms/index.d.ts.map +1 -0
- package/dist/ui/components/forms/index.js +17 -0
- package/dist/ui/components/forms/index.js.map +1 -0
- package/dist/ui/components/github/FeatureSection.d.ts +15 -0
- package/dist/ui/components/github/FeatureSection.d.ts.map +1 -0
- package/dist/ui/components/github/FeatureSection.js +14 -0
- package/dist/ui/components/github/FeatureSection.js.map +1 -0
- package/dist/ui/components/github/PlannedFeaturesList.d.ts +15 -0
- package/dist/ui/components/github/PlannedFeaturesList.d.ts.map +1 -0
- package/dist/ui/components/github/PlannedFeaturesList.js +69 -0
- package/dist/ui/components/github/PlannedFeaturesList.js.map +1 -0
- package/dist/ui/components/hooks/HookCategory.d.ts +32 -0
- package/dist/ui/components/hooks/HookCategory.d.ts.map +1 -0
- package/dist/ui/components/hooks/HookCategory.js +34 -0
- package/dist/ui/components/hooks/HookCategory.js.map +1 -0
- package/dist/ui/components/hooks/HookItem.d.ts +48 -0
- package/dist/ui/components/hooks/HookItem.d.ts.map +1 -0
- package/dist/ui/components/hooks/HookItem.js +48 -0
- package/dist/ui/components/hooks/HookItem.js.map +1 -0
- package/dist/ui/components/hooks/index.d.ts +3 -0
- package/dist/ui/components/hooks/index.d.ts.map +1 -0
- package/dist/ui/components/hooks/index.js +3 -0
- package/dist/ui/components/hooks/index.js.map +1 -0
- package/dist/ui/components/launch/LaunchScreen.d.ts +24 -0
- package/dist/ui/components/launch/LaunchScreen.d.ts.map +1 -0
- package/dist/ui/components/launch/LaunchScreen.js +29 -0
- package/dist/ui/components/launch/LaunchScreen.js.map +1 -0
- package/dist/ui/components/launch/QuickActions.d.ts +13 -0
- package/dist/ui/components/launch/QuickActions.d.ts.map +1 -0
- package/dist/ui/components/launch/QuickActions.js +6 -0
- package/dist/ui/components/launch/QuickActions.js.map +1 -0
- package/dist/ui/components/launch/RecentSessions.d.ts +19 -0
- package/dist/ui/components/launch/RecentSessions.d.ts.map +1 -0
- package/dist/ui/components/launch/RecentSessions.js +23 -0
- package/dist/ui/components/launch/RecentSessions.js.map +1 -0
- package/dist/ui/components/launch/VersionBanner.d.ts +17 -0
- package/dist/ui/components/launch/VersionBanner.d.ts.map +1 -0
- package/dist/ui/components/launch/VersionBanner.js +71 -0
- package/dist/ui/components/launch/VersionBanner.js.map +1 -0
- package/dist/ui/components/launch/index.d.ts +5 -0
- package/dist/ui/components/launch/index.d.ts.map +1 -0
- package/dist/ui/components/launch/index.js +5 -0
- package/dist/ui/components/launch/index.js.map +1 -0
- package/dist/ui/components/layout/ActivePromptInfo.d.ts +2 -0
- package/dist/ui/components/layout/ActivePromptInfo.d.ts.map +1 -0
- package/dist/ui/components/layout/ActivePromptInfo.js +37 -0
- package/dist/ui/components/layout/ActivePromptInfo.js.map +1 -0
- package/dist/ui/components/layout/ChatInputArea.d.ts +15 -0
- package/dist/ui/components/layout/ChatInputArea.d.ts.map +1 -0
- package/dist/ui/components/layout/ChatInputArea.js +239 -0
- package/dist/ui/components/layout/ChatInputArea.js.map +1 -0
- package/dist/ui/components/layout/Clock.d.ts +6 -0
- package/dist/ui/components/layout/Clock.d.ts.map +1 -0
- package/dist/ui/components/layout/Clock.js +23 -0
- package/dist/ui/components/layout/Clock.js.map +1 -0
- package/dist/ui/components/layout/ContextSection.d.ts +2 -0
- package/dist/ui/components/layout/ContextSection.d.ts.map +1 -0
- package/dist/ui/components/layout/ContextSection.js +38 -0
- package/dist/ui/components/layout/ContextSection.js.map +1 -0
- package/dist/ui/components/layout/DotIndicator.d.ts +13 -0
- package/dist/ui/components/layout/DotIndicator.d.ts.map +1 -0
- package/dist/ui/components/layout/DotIndicator.js +15 -0
- package/dist/ui/components/layout/DotIndicator.js.map +1 -0
- package/dist/ui/components/layout/HeaderBar.d.ts +21 -0
- package/dist/ui/components/layout/HeaderBar.d.ts.map +1 -0
- package/dist/ui/components/layout/HeaderBar.js +19 -0
- package/dist/ui/components/layout/HeaderBar.js.map +1 -0
- package/dist/ui/components/layout/InputBox.d.ts +22 -0
- package/dist/ui/components/layout/InputBox.d.ts.map +1 -0
- package/dist/ui/components/layout/InputBox.js +147 -0
- package/dist/ui/components/layout/InputBox.js.map +1 -0
- package/dist/ui/components/layout/KeybindsLegend.d.ts +10 -0
- package/dist/ui/components/layout/KeybindsLegend.d.ts.map +1 -0
- package/dist/ui/components/layout/KeybindsLegend.js +9 -0
- package/dist/ui/components/layout/KeybindsLegend.js.map +1 -0
- package/dist/ui/components/layout/ModeConfidenceDisplay.d.ts +19 -0
- package/dist/ui/components/layout/ModeConfidenceDisplay.d.ts.map +1 -0
- package/dist/ui/components/layout/ModeConfidenceDisplay.js +38 -0
- package/dist/ui/components/layout/ModeConfidenceDisplay.js.map +1 -0
- package/dist/ui/components/layout/SidePanel.d.ts +9 -0
- package/dist/ui/components/layout/SidePanel.d.ts.map +1 -0
- package/dist/ui/components/layout/SidePanel.js +59 -0
- package/dist/ui/components/layout/SidePanel.js.map +1 -0
- package/dist/ui/components/layout/StaticInputArea.d.ts +13 -0
- package/dist/ui/components/layout/StaticInputArea.d.ts.map +1 -0
- package/dist/ui/components/layout/StaticInputArea.js +21 -0
- package/dist/ui/components/layout/StaticInputArea.js.map +1 -0
- package/dist/ui/components/layout/StatusBar.d.ts +16 -0
- package/dist/ui/components/layout/StatusBar.d.ts.map +1 -0
- package/dist/ui/components/layout/StatusBar.js +13 -0
- package/dist/ui/components/layout/StatusBar.js.map +1 -0
- package/dist/ui/components/layout/SystemBar.d.ts +10 -0
- package/dist/ui/components/layout/SystemBar.d.ts.map +1 -0
- package/dist/ui/components/layout/SystemBar.js +75 -0
- package/dist/ui/components/layout/SystemBar.js.map +1 -0
- package/dist/ui/components/layout/TabBar.d.ts +19 -0
- package/dist/ui/components/layout/TabBar.d.ts.map +1 -0
- package/dist/ui/components/layout/TabBar.js +53 -0
- package/dist/ui/components/layout/TabBar.js.map +1 -0
- package/dist/ui/components/layout/TabContainer.d.ts +58 -0
- package/dist/ui/components/layout/TabContainer.d.ts.map +1 -0
- package/dist/ui/components/layout/TabContainer.js +19 -0
- package/dist/ui/components/layout/TabContainer.js.map +1 -0
- package/dist/ui/components/layout/TwoColumnLayout.d.ts +54 -0
- package/dist/ui/components/layout/TwoColumnLayout.d.ts.map +1 -0
- package/dist/ui/components/layout/TwoColumnLayout.js +22 -0
- package/dist/ui/components/layout/TwoColumnLayout.js.map +1 -0
- package/dist/ui/components/layout/WorkspacePanel.d.ts +17 -0
- package/dist/ui/components/layout/WorkspacePanel.d.ts.map +1 -0
- package/dist/ui/components/layout/WorkspacePanel.js +264 -0
- package/dist/ui/components/layout/WorkspacePanel.js.map +1 -0
- package/dist/ui/components/layout/__tests__/InputBox.example.d.ts +18 -0
- package/dist/ui/components/layout/__tests__/InputBox.example.d.ts.map +1 -0
- package/dist/ui/components/layout/__tests__/InputBox.example.js +40 -0
- package/dist/ui/components/layout/__tests__/InputBox.example.js.map +1 -0
- package/dist/ui/components/layout/index.d.ts +10 -0
- package/dist/ui/components/layout/index.d.ts.map +1 -0
- package/dist/ui/components/layout/index.js +10 -0
- package/dist/ui/components/layout/index.js.map +1 -0
- package/dist/ui/components/mcp/ErrorDisplay.d.ts +32 -0
- package/dist/ui/components/mcp/ErrorDisplay.d.ts.map +1 -0
- package/dist/ui/components/mcp/ErrorDisplay.js +27 -0
- package/dist/ui/components/mcp/ErrorDisplay.js.map +1 -0
- package/dist/ui/components/mcp/FadeTransition.d.ts +75 -0
- package/dist/ui/components/mcp/FadeTransition.d.ts.map +1 -0
- package/dist/ui/components/mcp/FadeTransition.js +132 -0
- package/dist/ui/components/mcp/FadeTransition.js.map +1 -0
- package/dist/ui/components/mcp/HealthIndicator.d.ts +21 -0
- package/dist/ui/components/mcp/HealthIndicator.d.ts.map +1 -0
- package/dist/ui/components/mcp/HealthIndicator.js +75 -0
- package/dist/ui/components/mcp/HealthIndicator.js.map +1 -0
- package/dist/ui/components/mcp/InstalledServersSection.d.ts +33 -0
- package/dist/ui/components/mcp/InstalledServersSection.d.ts.map +1 -0
- package/dist/ui/components/mcp/InstalledServersSection.js +16 -0
- package/dist/ui/components/mcp/InstalledServersSection.js.map +1 -0
- package/dist/ui/components/mcp/LoadingSpinner.d.ts +29 -0
- package/dist/ui/components/mcp/LoadingSpinner.d.ts.map +1 -0
- package/dist/ui/components/mcp/LoadingSpinner.js +17 -0
- package/dist/ui/components/mcp/LoadingSpinner.js.map +1 -0
- package/dist/ui/components/mcp/MCPActions.d.ts +31 -0
- package/dist/ui/components/mcp/MCPActions.d.ts.map +1 -0
- package/dist/ui/components/mcp/MCPActions.js +25 -0
- package/dist/ui/components/mcp/MCPActions.js.map +1 -0
- package/dist/ui/components/mcp/MarketplacePreview.d.ts +25 -0
- package/dist/ui/components/mcp/MarketplacePreview.d.ts.map +1 -0
- package/dist/ui/components/mcp/MarketplacePreview.js +45 -0
- package/dist/ui/components/mcp/MarketplacePreview.js.map +1 -0
- package/dist/ui/components/mcp/Notification.d.ts +79 -0
- package/dist/ui/components/mcp/Notification.d.ts.map +1 -0
- package/dist/ui/components/mcp/Notification.js +145 -0
- package/dist/ui/components/mcp/Notification.js.map +1 -0
- package/dist/ui/components/mcp/OperationProgress.d.ts +20 -0
- package/dist/ui/components/mcp/OperationProgress.d.ts.map +1 -0
- package/dist/ui/components/mcp/OperationProgress.js +16 -0
- package/dist/ui/components/mcp/OperationProgress.js.map +1 -0
- package/dist/ui/components/mcp/ProgressIndicator.d.ts +34 -0
- package/dist/ui/components/mcp/ProgressIndicator.d.ts.map +1 -0
- package/dist/ui/components/mcp/ProgressIndicator.js +75 -0
- package/dist/ui/components/mcp/ProgressIndicator.js.map +1 -0
- package/dist/ui/components/mcp/ServerDetails.d.ts +44 -0
- package/dist/ui/components/mcp/ServerDetails.d.ts.map +1 -0
- package/dist/ui/components/mcp/ServerDetails.js +96 -0
- package/dist/ui/components/mcp/ServerDetails.js.map +1 -0
- package/dist/ui/components/mcp/ServerItem.d.ts +33 -0
- package/dist/ui/components/mcp/ServerItem.d.ts.map +1 -0
- package/dist/ui/components/mcp/ServerItem.js +55 -0
- package/dist/ui/components/mcp/ServerItem.js.map +1 -0
- package/dist/ui/components/mcp/ServerListItem.d.ts +38 -0
- package/dist/ui/components/mcp/ServerListItem.d.ts.map +1 -0
- package/dist/ui/components/mcp/ServerListItem.js +60 -0
- package/dist/ui/components/mcp/ServerListItem.js.map +1 -0
- package/dist/ui/components/mcp/ServerSkeleton.d.ts +20 -0
- package/dist/ui/components/mcp/ServerSkeleton.d.ts.map +1 -0
- package/dist/ui/components/mcp/ServerSkeleton.js +18 -0
- package/dist/ui/components/mcp/ServerSkeleton.js.map +1 -0
- package/dist/ui/components/mcp/ServerStatusBanner.d.ts +21 -0
- package/dist/ui/components/mcp/ServerStatusBanner.d.ts.map +1 -0
- package/dist/ui/components/mcp/ServerStatusBanner.js +61 -0
- package/dist/ui/components/mcp/ServerStatusBanner.js.map +1 -0
- package/dist/ui/components/mcp/SystemMessages.d.ts +35 -0
- package/dist/ui/components/mcp/SystemMessages.d.ts.map +1 -0
- package/dist/ui/components/mcp/SystemMessages.js +44 -0
- package/dist/ui/components/mcp/SystemMessages.js.map +1 -0
- package/dist/ui/components/mcp/index.d.ts +34 -0
- package/dist/ui/components/mcp/index.d.ts.map +1 -0
- package/dist/ui/components/mcp/index.js +24 -0
- package/dist/ui/components/mcp/index.js.map +1 -0
- package/dist/ui/components/model/ModelLoadingIndicator.d.ts +6 -0
- package/dist/ui/components/model/ModelLoadingIndicator.d.ts.map +1 -0
- package/dist/ui/components/model/ModelLoadingIndicator.js +14 -0
- package/dist/ui/components/model/ModelLoadingIndicator.js.map +1 -0
- package/dist/ui/components/settings/ModelPicker.d.ts +24 -0
- package/dist/ui/components/settings/ModelPicker.d.ts.map +1 -0
- package/dist/ui/components/settings/ModelPicker.js +15 -0
- package/dist/ui/components/settings/ModelPicker.js.map +1 -0
- package/dist/ui/components/settings/OptionsPanel.d.ts +24 -0
- package/dist/ui/components/settings/OptionsPanel.d.ts.map +1 -0
- package/dist/ui/components/settings/OptionsPanel.js +12 -0
- package/dist/ui/components/settings/OptionsPanel.js.map +1 -0
- package/dist/ui/components/settings/ProviderSelector.d.ts +24 -0
- package/dist/ui/components/settings/ProviderSelector.d.ts.map +1 -0
- package/dist/ui/components/settings/ProviderSelector.js +35 -0
- package/dist/ui/components/settings/ProviderSelector.js.map +1 -0
- package/dist/ui/components/settings/SessionInfo.d.ts +25 -0
- package/dist/ui/components/settings/SessionInfo.d.ts.map +1 -0
- package/dist/ui/components/settings/SessionInfo.js +29 -0
- package/dist/ui/components/settings/SessionInfo.js.map +1 -0
- package/dist/ui/components/settings/SettingsPanel.d.ts +19 -0
- package/dist/ui/components/settings/SettingsPanel.d.ts.map +1 -0
- package/dist/ui/components/settings/SettingsPanel.js +864 -0
- package/dist/ui/components/settings/SettingsPanel.js.map +1 -0
- package/dist/ui/components/settings/ThemePicker.d.ts +19 -0
- package/dist/ui/components/settings/ThemePicker.d.ts.map +1 -0
- package/dist/ui/components/settings/ThemePicker.js +15 -0
- package/dist/ui/components/settings/ThemePicker.js.map +1 -0
- package/dist/ui/components/settings/index.d.ts +6 -0
- package/dist/ui/components/settings/index.d.ts.map +1 -0
- package/dist/ui/components/settings/index.js +6 -0
- package/dist/ui/components/settings/index.js.map +1 -0
- package/dist/ui/components/status/MCPStatus.d.ts +33 -0
- package/dist/ui/components/status/MCPStatus.d.ts.map +1 -0
- package/dist/ui/components/status/MCPStatus.js +52 -0
- package/dist/ui/components/status/MCPStatus.js.map +1 -0
- package/dist/ui/components/status/WorkflowStatus.d.ts +33 -0
- package/dist/ui/components/status/WorkflowStatus.d.ts.map +1 -0
- package/dist/ui/components/status/WorkflowStatus.js +40 -0
- package/dist/ui/components/status/WorkflowStatus.js.map +1 -0
- package/dist/ui/components/tabs/BugReportTab.d.ts +11 -0
- package/dist/ui/components/tabs/BugReportTab.d.ts.map +1 -0
- package/dist/ui/components/tabs/BugReportTab.js +104 -0
- package/dist/ui/components/tabs/BugReportTab.js.map +1 -0
- package/dist/ui/components/tabs/ChatTab.d.ts +55 -0
- package/dist/ui/components/tabs/ChatTab.d.ts.map +1 -0
- package/dist/ui/components/tabs/ChatTab.js +177 -0
- package/dist/ui/components/tabs/ChatTab.js.map +1 -0
- package/dist/ui/components/tabs/DocsTab.d.ts +16 -0
- package/dist/ui/components/tabs/DocsTab.d.ts.map +1 -0
- package/dist/ui/components/tabs/DocsTab.js +6 -0
- package/dist/ui/components/tabs/DocsTab.js.map +1 -0
- package/dist/ui/components/tabs/FileViewerTab.d.ts +27 -0
- package/dist/ui/components/tabs/FileViewerTab.d.ts.map +1 -0
- package/dist/ui/components/tabs/FileViewerTab.js +51 -0
- package/dist/ui/components/tabs/FileViewerTab.js.map +1 -0
- package/dist/ui/components/tabs/FilesTab.d.ts +21 -0
- package/dist/ui/components/tabs/FilesTab.d.ts.map +1 -0
- package/dist/ui/components/tabs/FilesTab.js +47 -0
- package/dist/ui/components/tabs/FilesTab.js.map +1 -0
- package/dist/ui/components/tabs/FilesTabWrapper.d.ts +12 -0
- package/dist/ui/components/tabs/FilesTabWrapper.d.ts.map +1 -0
- package/dist/ui/components/tabs/FilesTabWrapper.js +27 -0
- package/dist/ui/components/tabs/FilesTabWrapper.js.map +1 -0
- package/dist/ui/components/tabs/GitHubTab.d.ts +18 -0
- package/dist/ui/components/tabs/GitHubTab.d.ts.map +1 -0
- package/dist/ui/components/tabs/GitHubTab.js +38 -0
- package/dist/ui/components/tabs/GitHubTab.js.map +1 -0
- package/dist/ui/components/tabs/HooksTab.d.ts +21 -0
- package/dist/ui/components/tabs/HooksTab.d.ts.map +1 -0
- package/dist/ui/components/tabs/HooksTab.js +350 -0
- package/dist/ui/components/tabs/HooksTab.js.map +1 -0
- package/dist/ui/components/tabs/MCPTab.d.ts +24 -0
- package/dist/ui/components/tabs/MCPTab.d.ts.map +1 -0
- package/dist/ui/components/tabs/MCPTab.js +1101 -0
- package/dist/ui/components/tabs/MCPTab.js.map +1 -0
- package/dist/ui/components/tabs/SearchTab.d.ts +18 -0
- package/dist/ui/components/tabs/SearchTab.d.ts.map +1 -0
- package/dist/ui/components/tabs/SearchTab.js +56 -0
- package/dist/ui/components/tabs/SearchTab.js.map +1 -0
- package/dist/ui/components/tabs/SettingsTab.d.ts +14 -0
- package/dist/ui/components/tabs/SettingsTab.d.ts.map +1 -0
- package/dist/ui/components/tabs/SettingsTab.js +6 -0
- package/dist/ui/components/tabs/SettingsTab.js.map +1 -0
- package/dist/ui/components/tabs/ToolsTab.d.ts +14 -0
- package/dist/ui/components/tabs/ToolsTab.d.ts.map +1 -0
- package/dist/ui/components/tabs/ToolsTab.js +10 -0
- package/dist/ui/components/tabs/ToolsTab.js.map +1 -0
- package/dist/ui/components/tabs/index.d.ts +9 -0
- package/dist/ui/components/tabs/index.d.ts.map +1 -0
- package/dist/ui/components/tabs/index.js +9 -0
- package/dist/ui/components/tabs/index.js.map +1 -0
- package/dist/ui/components/tools/CategorySection.d.ts +22 -0
- package/dist/ui/components/tools/CategorySection.d.ts.map +1 -0
- package/dist/ui/components/tools/CategorySection.js +29 -0
- package/dist/ui/components/tools/CategorySection.js.map +1 -0
- package/dist/ui/components/tools/DiffViewer.d.ts +20 -0
- package/dist/ui/components/tools/DiffViewer.d.ts.map +1 -0
- package/dist/ui/components/tools/DiffViewer.js +33 -0
- package/dist/ui/components/tools/DiffViewer.js.map +1 -0
- package/dist/ui/components/tools/ReviewActions.d.ts +21 -0
- package/dist/ui/components/tools/ReviewActions.d.ts.map +1 -0
- package/dist/ui/components/tools/ReviewActions.js +12 -0
- package/dist/ui/components/tools/ReviewActions.js.map +1 -0
- package/dist/ui/components/tools/ToolItem.d.ts +19 -0
- package/dist/ui/components/tools/ToolItem.d.ts.map +1 -0
- package/dist/ui/components/tools/ToolItem.js +15 -0
- package/dist/ui/components/tools/ToolItem.js.map +1 -0
- package/dist/ui/components/tools/ToolModeSettings.d.ts +29 -0
- package/dist/ui/components/tools/ToolModeSettings.d.ts.map +1 -0
- package/dist/ui/components/tools/ToolModeSettings.js +57 -0
- package/dist/ui/components/tools/ToolModeSettings.js.map +1 -0
- package/dist/ui/components/tools/ToolToggle.d.ts +16 -0
- package/dist/ui/components/tools/ToolToggle.d.ts.map +1 -0
- package/dist/ui/components/tools/ToolToggle.js +22 -0
- package/dist/ui/components/tools/ToolToggle.js.map +1 -0
- package/dist/ui/components/tools/ToolsPanel.d.ts +24 -0
- package/dist/ui/components/tools/ToolsPanel.d.ts.map +1 -0
- package/dist/ui/components/tools/ToolsPanel.js +279 -0
- package/dist/ui/components/tools/ToolsPanel.js.map +1 -0
- package/dist/ui/components/tools/index.d.ts +7 -0
- package/dist/ui/components/tools/index.d.ts.map +1 -0
- package/dist/ui/components/tools/index.js +7 -0
- package/dist/ui/components/tools/index.js.map +1 -0
- package/dist/ui/contexts/DialogContext.d.ts +92 -0
- package/dist/ui/contexts/DialogContext.d.ts.map +1 -0
- package/dist/ui/contexts/DialogContext.js +151 -0
- package/dist/ui/contexts/DialogContext.js.map +1 -0
- package/dist/ui/contexts/HooksContext.d.ts +77 -0
- package/dist/ui/contexts/HooksContext.d.ts.map +1 -0
- package/dist/ui/contexts/HooksContext.js +261 -0
- package/dist/ui/contexts/HooksContext.js.map +1 -0
- package/dist/ui/contexts/InputRoutingContext.d.ts +15 -0
- package/dist/ui/contexts/InputRoutingContext.d.ts.map +1 -0
- package/dist/ui/contexts/InputRoutingContext.js +36 -0
- package/dist/ui/contexts/InputRoutingContext.js.map +1 -0
- package/dist/ui/contexts/MCPContext.d.ts +161 -0
- package/dist/ui/contexts/MCPContext.d.ts.map +1 -0
- package/dist/ui/contexts/MCPContext.js +904 -0
- package/dist/ui/contexts/MCPContext.js.map +1 -0
- package/dist/ui/contexts/Terminal2Context.d.ts +22 -0
- package/dist/ui/contexts/Terminal2Context.d.ts.map +1 -0
- package/dist/ui/contexts/Terminal2Context.js +154 -0
- package/dist/ui/contexts/Terminal2Context.js.map +1 -0
- package/dist/ui/contexts/TerminalContext.d.ts +22 -0
- package/dist/ui/contexts/TerminalContext.d.ts.map +1 -0
- package/dist/ui/contexts/TerminalContext.js +192 -0
- package/dist/ui/contexts/TerminalContext.js.map +1 -0
- package/dist/ui/contexts/ToolsContext.d.ts +87 -0
- package/dist/ui/contexts/ToolsContext.d.ts.map +1 -0
- package/dist/ui/contexts/ToolsContext.js +301 -0
- package/dist/ui/contexts/ToolsContext.js.map +1 -0
- package/dist/ui/contexts/UICallbacksContext.d.ts +80 -0
- package/dist/ui/contexts/UICallbacksContext.d.ts.map +1 -0
- package/dist/ui/contexts/UICallbacksContext.js +85 -0
- package/dist/ui/contexts/UICallbacksContext.js.map +1 -0
- package/dist/ui/contexts/WindowContext.d.ts +100 -0
- package/dist/ui/contexts/WindowContext.d.ts.map +1 -0
- package/dist/ui/contexts/WindowContext.js +111 -0
- package/dist/ui/contexts/WindowContext.js.map +1 -0
- package/dist/ui/contexts/__tests__/mcpTestUtils.d.ts +65 -0
- package/dist/ui/contexts/__tests__/mcpTestUtils.d.ts.map +1 -0
- package/dist/ui/contexts/__tests__/mcpTestUtils.js +180 -0
- package/dist/ui/contexts/__tests__/mcpTestUtils.js.map +1 -0
- package/dist/ui/hooks/index.d.ts +9 -0
- package/dist/ui/hooks/index.d.ts.map +1 -0
- package/dist/ui/hooks/index.js +9 -0
- package/dist/ui/hooks/index.js.map +1 -0
- package/dist/ui/hooks/useFocusedBorder.d.ts +19 -0
- package/dist/ui/hooks/useFocusedBorder.d.ts.map +1 -0
- package/dist/ui/hooks/useFocusedBorder.js +26 -0
- package/dist/ui/hooks/useFocusedBorder.js.map +1 -0
- package/dist/ui/hooks/useGlobalKeyboardShortcuts.d.ts +43 -0
- package/dist/ui/hooks/useGlobalKeyboardShortcuts.d.ts.map +1 -0
- package/dist/ui/hooks/useGlobalKeyboardShortcuts.js +196 -0
- package/dist/ui/hooks/useGlobalKeyboardShortcuts.js.map +1 -0
- package/dist/ui/hooks/useKeyboardShortcuts.d.ts +22 -0
- package/dist/ui/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/ui/hooks/useKeyboardShortcuts.js +56 -0
- package/dist/ui/hooks/useKeyboardShortcuts.js.map +1 -0
- package/dist/ui/hooks/useMCPNavigation.d.ts +79 -0
- package/dist/ui/hooks/useMCPNavigation.d.ts.map +1 -0
- package/dist/ui/hooks/useMCPNavigation.js +228 -0
- package/dist/ui/hooks/useMCPNavigation.js.map +1 -0
- package/dist/ui/hooks/useMouse.d.ts +19 -0
- package/dist/ui/hooks/useMouse.d.ts.map +1 -0
- package/dist/ui/hooks/useMouse.js +115 -0
- package/dist/ui/hooks/useMouse.js.map +1 -0
- package/dist/ui/hooks/useNotifications.d.ts +43 -0
- package/dist/ui/hooks/useNotifications.d.ts.map +1 -0
- package/dist/ui/hooks/useNotifications.js +92 -0
- package/dist/ui/hooks/useNotifications.js.map +1 -0
- package/dist/ui/hooks/useTabEscapeHandler.d.ts +42 -0
- package/dist/ui/hooks/useTabEscapeHandler.d.ts.map +1 -0
- package/dist/ui/hooks/useTabEscapeHandler.js +56 -0
- package/dist/ui/hooks/useTabEscapeHandler.js.map +1 -0
- package/dist/ui/hooks/useTerminal.d.ts +7 -0
- package/dist/ui/hooks/useTerminal.d.ts.map +1 -0
- package/dist/ui/hooks/useTerminal.js +7 -0
- package/dist/ui/hooks/useTerminal.js.map +1 -0
- package/dist/ui/hooks/useTerminal2.d.ts +7 -0
- package/dist/ui/hooks/useTerminal2.d.ts.map +1 -0
- package/dist/ui/hooks/useTerminal2.js +7 -0
- package/dist/ui/hooks/useTerminal2.js.map +1 -0
- package/dist/ui/services/docsService.d.ts +44 -0
- package/dist/ui/services/docsService.d.ts.map +1 -0
- package/dist/ui/services/docsService.js +103 -0
- package/dist/ui/services/docsService.js.map +1 -0
- package/dist/ui/services/index.d.ts +7 -0
- package/dist/ui/services/index.d.ts.map +1 -0
- package/dist/ui/services/index.js +7 -0
- package/dist/ui/services/index.js.map +1 -0
- package/dist/ui/services/keyboardHandler.d.ts +71 -0
- package/dist/ui/services/keyboardHandler.d.ts.map +1 -0
- package/dist/ui/services/keyboardHandler.js +166 -0
- package/dist/ui/services/keyboardHandler.js.map +1 -0
- package/dist/ui/services/themeManager.d.ts +65 -0
- package/dist/ui/services/themeManager.d.ts.map +1 -0
- package/dist/ui/services/themeManager.js +158 -0
- package/dist/ui/services/themeManager.js.map +1 -0
- package/dist/ui/test-utils/TestProviders.d.ts +6 -0
- package/dist/ui/test-utils/TestProviders.d.ts.map +1 -0
- package/dist/ui/test-utils/TestProviders.js +54 -0
- package/dist/ui/test-utils/TestProviders.js.map +1 -0
- package/dist/ui/utils/errorHandling.d.ts +65 -0
- package/dist/ui/utils/errorHandling.d.ts.map +1 -0
- package/dist/ui/utils/errorHandling.js +242 -0
- package/dist/ui/utils/errorHandling.js.map +1 -0
- package/dist/ui/utils/errorLogger.d.ts +41 -0
- package/dist/ui/utils/errorLogger.d.ts.map +1 -0
- package/dist/ui/utils/errorLogger.js +126 -0
- package/dist/ui/utils/errorLogger.js.map +1 -0
- package/dist/ui/utils/keyUtils.d.ts +16 -0
- package/dist/ui/utils/keyUtils.d.ts.map +1 -0
- package/dist/ui/utils/keyUtils.js +70 -0
- package/dist/ui/utils/keyUtils.js.map +1 -0
- package/dist/ui/utils/performanceProfiler.d.ts +83 -0
- package/dist/ui/utils/performanceProfiler.d.ts.map +1 -0
- package/dist/ui/utils/performanceProfiler.js +160 -0
- package/dist/ui/utils/performanceProfiler.js.map +1 -0
- package/dist/ui/utils/terminalSerializer.d.ts +38 -0
- package/dist/ui/utils/terminalSerializer.d.ts.map +1 -0
- package/dist/ui/utils/terminalSerializer.js +451 -0
- package/dist/ui/utils/terminalSerializer.js.map +1 -0
- package/dist/ui/utils/windowDisplayLabels.d.ts +13 -0
- package/dist/ui/utils/windowDisplayLabels.d.ts.map +1 -0
- package/dist/ui/utils/windowDisplayLabels.js +29 -0
- package/dist/ui/utils/windowDisplayLabels.js.map +1 -0
- package/dist/utils/events.d.ts +24 -0
- package/dist/utils/events.d.ts.map +1 -0
- package/dist/utils/events.js +19 -0
- package/dist/utils/events.js.map +1 -0
- package/dist/utils/stdio.d.ts +29 -0
- package/dist/utils/stdio.d.ts.map +1 -0
- package/dist/utils/stdio.js +200 -0
- package/dist/utils/stdio.js.map +1 -0
- package/dist/utils/terminal.d.ts +16 -0
- package/dist/utils/terminal.d.ts.map +1 -0
- package/dist/utils/terminal.js +51 -0
- package/dist/utils/terminal.js.map +1 -0
- package/docs/Context/CheckpointFlowDiagram.md +673 -0
- package/docs/Context/ContextArchitecture.md +898 -0
- package/docs/Context/ContextCompression.md +1102 -0
- package/docs/Context/ContextManagment.md +750 -0
- package/docs/Context/Index.md +209 -0
- package/docs/Context/README.md +390 -0
- package/docs/DevelopmentRoadmap/Index.md +238 -0
- package/docs/DevelopmentRoadmap/OLLM-CLI_Releases.md +419 -0
- package/docs/DevelopmentRoadmap/PlanedFeatures.md +448 -0
- package/docs/DevelopmentRoadmap/README.md +174 -0
- package/docs/DevelopmentRoadmap/Roadmap.md +572 -0
- package/docs/DevelopmentRoadmap/RoadmapVisual.md +372 -0
- package/docs/Hooks/Architecture.md +885 -0
- package/docs/Hooks/Index.md +244 -0
- package/docs/Hooks/KeyboardShortcuts.md +248 -0
- package/docs/Hooks/Protocol.md +817 -0
- package/docs/Hooks/README.md +403 -0
- package/docs/Hooks/UserGuide.md +1483 -0
- package/docs/Hooks/VisualGuide.md +598 -0
- package/docs/Index.md +506 -0
- package/docs/Installation.md +586 -0
- package/docs/Introduction.md +367 -0
- package/docs/LLM Models/Index.md +239 -0
- package/docs/LLM Models/LLM_GettingStarted.md +748 -0
- package/docs/LLM Models/LLM_Index.md +701 -0
- package/docs/LLM Models/LLM_MemorySystem.md +337 -0
- package/docs/LLM Models/LLM_ModelCompatibility.md +499 -0
- package/docs/LLM Models/LLM_ModelsArchitecture.md +933 -0
- package/docs/LLM Models/LLM_ModelsCommands.md +839 -0
- package/docs/LLM Models/LLM_ModelsConfiguration.md +1094 -0
- package/docs/LLM Models/LLM_ModelsList.md +1071 -0
- package/docs/LLM Models/LLM_ModelsList.md.backup +400 -0
- package/docs/LLM Models/README.md +355 -0
- package/docs/MCP/MCP_Architecture.md +1086 -0
- package/docs/MCP/MCP_Commands.md +1111 -0
- package/docs/MCP/MCP_GettingStarted.md +590 -0
- package/docs/MCP/MCP_Index.md +524 -0
- package/docs/MCP/MCP_Integration.md +866 -0
- package/docs/MCP/MCP_Marketplace.md +160 -0
- package/docs/MCP/README.md +415 -0
- package/docs/Prompts System/Architecture.md +760 -0
- package/docs/Prompts System/Index.md +223 -0
- package/docs/Prompts System/PromptsRouting.md +1047 -0
- package/docs/Prompts System/PromptsTemplates.md +1102 -0
- package/docs/Prompts System/README.md +389 -0
- package/docs/Prompts System/SystemPrompts.md +856 -0
- package/docs/Quickstart.md +535 -0
- package/docs/README.md +410 -0
- package/docs/Tools/Architecture.md +884 -0
- package/docs/Tools/GettingStarted.md +624 -0
- package/docs/Tools/Index.md +216 -0
- package/docs/Tools/ManifestReference.md +141 -0
- package/docs/Tools/README.md +440 -0
- package/docs/Tools/UserGuide.md +773 -0
- package/docs/Troubleshooting.md +1265 -0
- package/docs/UI&Settings/Architecture.md +729 -0
- package/docs/UI&Settings/ColorASCII.md +34 -0
- package/docs/UI&Settings/Commands.md +755 -0
- package/docs/UI&Settings/Configuration.md +872 -0
- package/docs/UI&Settings/Index.md +293 -0
- package/docs/UI&Settings/Keybinds.md +372 -0
- package/docs/UI&Settings/README.md +278 -0
- package/docs/UI&Settings/Terminal.md +637 -0
- package/docs/UI&Settings/Themes.md +604 -0
- package/docs/UI&Settings/UIGuide.md +550 -0
- package/package.json +82 -0
|
@@ -0,0 +1,1047 @@
|
|
|
1
|
+
# System Prompt Routing & Selection
|
|
2
|
+
|
|
3
|
+
**Last Updated:** January 26, 2026
|
|
4
|
+
**Status:** Source of Truth
|
|
5
|
+
|
|
6
|
+
**Related Documents:**
|
|
7
|
+
|
|
8
|
+
- `SystemPrompts.md` - System prompt architecture and design
|
|
9
|
+
- `PromptsTemplates.md` - Actual prompt templates
|
|
10
|
+
- `ContextManagement.md` - Context sizing, tiers, VRAM
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
The adaptive system prompt system automatically selects and switches prompts based on:
|
|
17
|
+
|
|
18
|
+
1. **Context Tier** - Detected from context size (Minimal, Basic, Standard, Premium, Ultra)
|
|
19
|
+
2. **Operational Mode** - User-selected mode (Developer, Planning, Assistant, Debugger)
|
|
20
|
+
3. **Hardware Capability** - Maximum context size hardware can support (auto-sizing)
|
|
21
|
+
|
|
22
|
+
This document provides visual diagrams showing how prompts are selected and when they switch.
|
|
23
|
+
|
|
24
|
+
**Key Principle:** Prompts are selected automatically based on context tier and operational mode, with no manual configuration required.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Context Tier System
|
|
29
|
+
|
|
30
|
+
### Tier Definitions
|
|
31
|
+
|
|
32
|
+
| Tier | Label | Context Sizes | Ollama Size (85%) | Prompt Budget | Use Case |
|
|
33
|
+
| ---- | ----------- | ------------- | ----------------- | ------------- | ----------------------------------- |
|
|
34
|
+
| 1 | Minimal | 2K, 4K | 1700, 3400 | ~200 tokens | Quick tasks, minimal context |
|
|
35
|
+
| 2 | Basic | 8K | 6800 | ~500 tokens | Standard conversations |
|
|
36
|
+
| 3 | Standard ⭐ | 16K | 13600 | ~1000 tokens | Complex tasks, code review |
|
|
37
|
+
| 4 | Premium | 32K | 27200 | ~1500 tokens | Large codebases, long conversations |
|
|
38
|
+
| 5 | Ultra | 64K, 128K | 54400, 108800 | ~1500 tokens | Maximum context, research tasks |
|
|
39
|
+
|
|
40
|
+
**Key Points:**
|
|
41
|
+
|
|
42
|
+
- Tiers are **labels only** - they represent context size ranges
|
|
43
|
+
- Context size drives everything
|
|
44
|
+
- Each tier has specific context sizes (not arbitrary ranges)
|
|
45
|
+
- Prompt budget scales with tier
|
|
46
|
+
- The 85% values are **pre-calculated** in `LLM_profiles.json`
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Operational Modes
|
|
51
|
+
|
|
52
|
+
### Mode Definitions
|
|
53
|
+
|
|
54
|
+
**1. Developer Mode**
|
|
55
|
+
|
|
56
|
+
- **Focus:** Code quality, architecture, testing
|
|
57
|
+
- **Guidance:** SOLID principles, design patterns, error handling
|
|
58
|
+
- **Output:** Production-quality code with tests and documentation
|
|
59
|
+
|
|
60
|
+
**2. Planning Mode**
|
|
61
|
+
|
|
62
|
+
- **Focus:** Task breakdown, dependencies, estimation
|
|
63
|
+
- **Guidance:** Risk assessment, realistic planning, clear criteria
|
|
64
|
+
- **Output:** Actionable plans with dependencies and estimates
|
|
65
|
+
|
|
66
|
+
**3. Assistant Mode**
|
|
67
|
+
|
|
68
|
+
- **Focus:** Clear communication, helpful responses
|
|
69
|
+
- **Guidance:** Conversational style, examples, explanations
|
|
70
|
+
- **Output:** Informative, well-structured answers
|
|
71
|
+
- **Note:** Only available in Tier 4 and 5 (larger contexts)
|
|
72
|
+
|
|
73
|
+
**4. Debugger Mode**
|
|
74
|
+
|
|
75
|
+
- **Focus:** Systematic debugging, root cause analysis
|
|
76
|
+
- **Guidance:** Debugging process, hypothesis testing, verification
|
|
77
|
+
- **Output:** Clear diagnosis with reproduction steps and fixes
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Prompt Selection Matrix
|
|
82
|
+
|
|
83
|
+
### Selection Logic
|
|
84
|
+
|
|
85
|
+
```mermaid
|
|
86
|
+
graph TB
|
|
87
|
+
Start[Context Manager Start] --> DetectTier[Detect Context Tier]
|
|
88
|
+
Start --> GetMode[Get Current Mode]
|
|
89
|
+
|
|
90
|
+
DetectTier --> T1{Context Size?}
|
|
91
|
+
T1 -->|2K, 4K| Tier1[Tier 1: Minimal]
|
|
92
|
+
T1 -->|8K| Tier2[Tier 2: Basic]
|
|
93
|
+
T1 -->|16K| Tier3[Tier 3: Standard]
|
|
94
|
+
T1 -->|32K| Tier4[Tier 4: Premium]
|
|
95
|
+
T1 -->|64K, 128K| Tier5[Tier 5: Ultra]
|
|
96
|
+
|
|
97
|
+
GetMode --> M1{Mode?}
|
|
98
|
+
M1 --> Dev[Developer]
|
|
99
|
+
M1 --> Plan[Planning]
|
|
100
|
+
M1 --> Assist[Assistant]
|
|
101
|
+
M1 --> Debug[Debugger]
|
|
102
|
+
|
|
103
|
+
Tier1 --> Combine[Combine Tier + Mode]
|
|
104
|
+
Tier2 --> Combine
|
|
105
|
+
Tier3 --> Combine
|
|
106
|
+
Tier4 --> Combine
|
|
107
|
+
Tier5 --> Combine
|
|
108
|
+
|
|
109
|
+
Dev --> Combine
|
|
110
|
+
Plan --> Combine
|
|
111
|
+
Assist --> Combine
|
|
112
|
+
Debug --> Combine
|
|
113
|
+
|
|
114
|
+
Combine --> Lookup[Lookup Prompt Template]
|
|
115
|
+
Lookup --> Apply[Apply System Prompt]
|
|
116
|
+
Apply --> Done[Ready for Conversation]
|
|
117
|
+
|
|
118
|
+
style Tier3 fill:#6bcf7f
|
|
119
|
+
style Dev fill:#61dafb
|
|
120
|
+
style Combine fill:#ffd93d
|
|
121
|
+
style Apply fill:#4d96ff
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**Description:**
|
|
125
|
+
|
|
126
|
+
1. Context Manager starts and detects context tier from context size
|
|
127
|
+
2. Gets current operational mode (defaults to Developer)
|
|
128
|
+
3. Combines tier + mode to create lookup key (e.g., "tier3-developer")
|
|
129
|
+
4. Looks up prompt template from template files
|
|
130
|
+
5. Applies prompt to conversation
|
|
131
|
+
6. Ready for user interaction
|
|
132
|
+
|
|
133
|
+
**Note:** Assistant mode is only available for Tier 4 and 5 (32K+ contexts).
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Prompt Template Matrix
|
|
138
|
+
|
|
139
|
+
### Template Combinations (5 Tiers × 4 Modes)
|
|
140
|
+
|
|
141
|
+
```mermaid
|
|
142
|
+
graph LR
|
|
143
|
+
subgraph "T5: Ultra (64K, 128K) ~1500 tokens"
|
|
144
|
+
T5D[Developer<br/>Expert]
|
|
145
|
+
T5P[Planning<br/>Expert]
|
|
146
|
+
T5A[Assistant<br/>Expert]
|
|
147
|
+
T5X[Debugger<br/>Expert]
|
|
148
|
+
end
|
|
149
|
+
subgraph "T4: Premium (32K) ~1500 tokens"
|
|
150
|
+
T4D[Developer<br/>Expert]
|
|
151
|
+
T4P[Planning<br/>Expert]
|
|
152
|
+
T4A[Assistant<br/>Expert]
|
|
153
|
+
T4X[Debugger<br/>Expert]
|
|
154
|
+
end
|
|
155
|
+
subgraph "T3⭐: Standard (16K) ~1000 tokens"
|
|
156
|
+
T3D[Developer<br/>Comprehensive]
|
|
157
|
+
T3P[Planning<br/>Comprehensive]
|
|
158
|
+
T3A[Assistant<br/>N/A]
|
|
159
|
+
T3X[Debugger<br/>Comprehensive]
|
|
160
|
+
end
|
|
161
|
+
subgraph "T2: Basic (8K) ~500 tokens"
|
|
162
|
+
T2D[Developer<br/>Detailed]
|
|
163
|
+
T2P[Planning<br/>Detailed]
|
|
164
|
+
T2A[Assistant<br/>N/A]
|
|
165
|
+
T2X[Debugger<br/>Detailed]
|
|
166
|
+
end
|
|
167
|
+
subgraph "T1: Minimal (2K, 4K) ~200 tokens"
|
|
168
|
+
T1D[Developer<br/>Essential]
|
|
169
|
+
T1P[Planning<br/>Essential]
|
|
170
|
+
T1A[Assistant<br/>N/A]
|
|
171
|
+
T1X[Debugger<br/>Essential]
|
|
172
|
+
end
|
|
173
|
+
style T3D fill:#6bcf7f
|
|
174
|
+
style T3P fill:#6bcf7f
|
|
175
|
+
style T3X fill:#6bcf7f
|
|
176
|
+
style T3A fill:#cccccc
|
|
177
|
+
style T2A fill:#cccccc
|
|
178
|
+
style T1A fill:#cccccc
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
**Description:**
|
|
182
|
+
|
|
183
|
+
- Each cell represents a unique prompt template
|
|
184
|
+
- Tier determines prompt complexity and token budget
|
|
185
|
+
- Mode determines focus and guidance style
|
|
186
|
+
- Tier 3 (Standard) is the primary target (most users)
|
|
187
|
+
- Assistant mode only available in Tier 4 and 5
|
|
188
|
+
- Total: 18 prompt templates (5 tiers × 4 modes, minus 3 unavailable assistant templates)
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## Auto-Sizing and Prompt Stability
|
|
193
|
+
|
|
194
|
+
### The Problem
|
|
195
|
+
|
|
196
|
+
When auto-context sizing is enabled, the context window can adjust based on available VRAM. However, **we do NOT want the system prompt to change mid-conversation** as this can confuse the LLM.
|
|
197
|
+
|
|
198
|
+
### The Solution
|
|
199
|
+
|
|
200
|
+
**Context size is FIXED for the session** when using auto-sizing or manual sizing. The system prompt is selected once at startup and remains stable throughout the conversation.
|
|
201
|
+
|
|
202
|
+
### Current Behavior (Fixed Context)
|
|
203
|
+
|
|
204
|
+
```mermaid
|
|
205
|
+
sequenceDiagram
|
|
206
|
+
participant Start as Session Start
|
|
207
|
+
participant VRAM as VRAM Monitor
|
|
208
|
+
participant Pool as Context Pool
|
|
209
|
+
participant Manager as Context Manager
|
|
210
|
+
|
|
211
|
+
Start->>VRAM: Get VRAM info
|
|
212
|
+
VRAM->>Pool: Available VRAM, Model Size
|
|
213
|
+
Pool->>Pool: calculateOptimalSize()<br/>Account for:<br/>- Model in VRAM<br/>- KV cache<br/>- Safety buffer
|
|
214
|
+
Pool->>Manager: Optimal context size
|
|
215
|
+
Manager->>Manager: Map to Context Tier
|
|
216
|
+
Manager->>Manager: Select system prompt
|
|
217
|
+
|
|
218
|
+
Note over Manager: Context size FIXED for session<br/>System prompt LOCKED
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
**What It Considers:**
|
|
222
|
+
|
|
223
|
+
- Model size already loaded in VRAM
|
|
224
|
+
- Available VRAM after model is loaded
|
|
225
|
+
- KV cache quantization type (f16, q8_0, q4_0)
|
|
226
|
+
- Safety buffer (1GB default)
|
|
227
|
+
- Returns: Optimal context size for hardware
|
|
228
|
+
|
|
229
|
+
**Key Point:** Context size is determined once at startup and stays FIXED for the entire session. No mid-conversation changes occur.
|
|
230
|
+
|
|
231
|
+
### Context Size Selection Flow
|
|
232
|
+
|
|
233
|
+
```mermaid
|
|
234
|
+
graph TB
|
|
235
|
+
Start[Session Start] --> Mode{Sizing Mode?}
|
|
236
|
+
|
|
237
|
+
Mode -->|Auto| Auto[Auto-Sizing]
|
|
238
|
+
Mode -->|Manual| Manual[User Selection]
|
|
239
|
+
|
|
240
|
+
Auto --> CheckVRAM[Check VRAM]
|
|
241
|
+
CheckVRAM --> CalcOptimal[Calculate Optimal Size]
|
|
242
|
+
CalcOptimal --> PickTier[Pick One Tier Below Max]
|
|
243
|
+
PickTier --> Lock[LOCK for Session]
|
|
244
|
+
|
|
245
|
+
Manual --> UserPick[User Picks Size]
|
|
246
|
+
UserPick --> Lock
|
|
247
|
+
|
|
248
|
+
Lock --> SelectPrompt[Select System Prompt]
|
|
249
|
+
SelectPrompt --> Fixed[Context FIXED]
|
|
250
|
+
|
|
251
|
+
Fixed --> LowMem{Low Memory<br/>During Session?}
|
|
252
|
+
LowMem -->|Yes| Warn[Show Warning]
|
|
253
|
+
LowMem -->|No| Continue[Continue]
|
|
254
|
+
|
|
255
|
+
Warn --> NoResize[Do NOT Resize]
|
|
256
|
+
NoResize --> Continue
|
|
257
|
+
|
|
258
|
+
Continue --> End[Session Continues]
|
|
259
|
+
|
|
260
|
+
style Lock fill:#6bcf7f
|
|
261
|
+
style Fixed fill:#6bcf7f
|
|
262
|
+
style NoResize fill:#ffd93d
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Example Scenarios
|
|
266
|
+
|
|
267
|
+
#### Scenario 1: Auto-Sizing Enabled
|
|
268
|
+
|
|
269
|
+
```
|
|
270
|
+
Hardware: 24GB VRAM, 13B model
|
|
271
|
+
├─ Optimal Context: 16K (one tier below max for safety)
|
|
272
|
+
├─ Context Tier: Tier 3 (Standard)
|
|
273
|
+
└─ System Prompt: Tier 3 (~1000 tokens)
|
|
274
|
+
|
|
275
|
+
During Conversation:
|
|
276
|
+
├─ Context size: FIXED at 16K
|
|
277
|
+
├─ Context tier: FIXED at Tier 3
|
|
278
|
+
├─ System prompt: NEVER CHANGES ✅
|
|
279
|
+
└─ On low memory: Show warning (don't resize)
|
|
280
|
+
|
|
281
|
+
Result: Stable, consistent LLM behavior
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
#### Scenario 2: Manual Sizing
|
|
285
|
+
|
|
286
|
+
```
|
|
287
|
+
Hardware: 24GB VRAM, 13B model
|
|
288
|
+
├─ User Selection: 16K context
|
|
289
|
+
├─ Context Tier: Tier 3 (Standard)
|
|
290
|
+
└─ System Prompt: Tier 3 (~1000 tokens)
|
|
291
|
+
|
|
292
|
+
During Conversation:
|
|
293
|
+
├─ Context size: FIXED at 16K
|
|
294
|
+
├─ Context tier: FIXED at Tier 3
|
|
295
|
+
├─ System prompt: NEVER CHANGES ✅
|
|
296
|
+
└─ On low memory: Show warning (don't resize)
|
|
297
|
+
|
|
298
|
+
Result: User gets exactly what they selected
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
#### Scenario 3: Limited Hardware
|
|
302
|
+
|
|
303
|
+
```
|
|
304
|
+
Hardware: 8GB VRAM, 7B model
|
|
305
|
+
├─ Optimal Context: 8K (hardware limit)
|
|
306
|
+
├─ Context Tier: Tier 2 (Basic)
|
|
307
|
+
└─ System Prompt: Tier 2 (~500 tokens)
|
|
308
|
+
|
|
309
|
+
User Wants: 16K context
|
|
310
|
+
├─ System shows: "Hardware supports up to 8K"
|
|
311
|
+
├─ Context size: FIXED at 8K (hardware limit)
|
|
312
|
+
├─ Context tier: FIXED at Tier 2
|
|
313
|
+
└─ System prompt: Tier 2 (~500 tokens)
|
|
314
|
+
|
|
315
|
+
Result: Realistic sizing for hardware capability
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
### Benefits of Fixed Context
|
|
319
|
+
|
|
320
|
+
| Benefit | Description |
|
|
321
|
+
| --------------------------- | ---------------------------------------------- |
|
|
322
|
+
| **Prompt Stability** | System prompt never changes mid-conversation |
|
|
323
|
+
| **No LLM Confusion** | Consistent behavior throughout session |
|
|
324
|
+
| **Predictable Performance** | User knows exactly what to expect |
|
|
325
|
+
| **Clear Warnings** | Low memory warnings instead of silent resizing |
|
|
326
|
+
| **User Control** | Explicit sizing decisions |
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
|
|
330
|
+
## Automatic Tier Switching
|
|
331
|
+
|
|
332
|
+
### Scenario: User Switches Model (8K → 16K)
|
|
333
|
+
|
|
334
|
+
```mermaid
|
|
335
|
+
sequenceDiagram
|
|
336
|
+
participant User
|
|
337
|
+
participant Manager as Context Manager
|
|
338
|
+
participant Detector as Tier Detector
|
|
339
|
+
participant Selector as Prompt Selector
|
|
340
|
+
participant LLM
|
|
341
|
+
|
|
342
|
+
Note over User,LLM: Initial State: 8K Model, Developer Mode
|
|
343
|
+
|
|
344
|
+
User->>Manager: Switch to 16K model
|
|
345
|
+
Manager->>Detector: Detect new tier
|
|
346
|
+
Detector->>Detector: contextSize = 16384
|
|
347
|
+
Detector->>Manager: Tier 3 (Standard)
|
|
348
|
+
|
|
349
|
+
Manager->>Manager: Tier changed: 2 → 3
|
|
350
|
+
Manager->>Selector: Get prompt for Tier 3 + Developer
|
|
351
|
+
Selector->>Selector: Load "developer/tier3.txt"
|
|
352
|
+
Selector->>Manager: Return ~1000 token prompt
|
|
353
|
+
|
|
354
|
+
Manager->>Manager: Update system prompt
|
|
355
|
+
Manager->>Manager: Recalculate context budget
|
|
356
|
+
Manager->>LLM: Apply new prompt
|
|
357
|
+
|
|
358
|
+
Manager->>User: Emit 'tier-changed' event
|
|
359
|
+
Manager->>User: Emit 'system-prompt-updated' event
|
|
360
|
+
|
|
361
|
+
Note over User,LLM: Current State: 16K Model, Developer Mode<br/>Prompt: 1000 tokens (Tier 3)
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
**Description:**
|
|
365
|
+
|
|
366
|
+
1. User switches from 8K to 16K model
|
|
367
|
+
2. Context Manager detects tier change (Tier 2 → Tier 3)
|
|
368
|
+
3. Prompt Selector retrieves appropriate prompt
|
|
369
|
+
4. System prompt scales from ~500 to ~1000 tokens
|
|
370
|
+
5. Context budget recalculated
|
|
371
|
+
6. Events emitted for UI updates
|
|
372
|
+
7. **Fully automatic** - no user action required
|
|
373
|
+
|
|
374
|
+
**Note:** This only happens when switching models/sessions, not mid-conversation.
|
|
375
|
+
|
|
376
|
+
---
|
|
377
|
+
|
|
378
|
+
## Automatic Mode Switching
|
|
379
|
+
|
|
380
|
+
### Scenario: User Switches Mode (Developer → Planning)
|
|
381
|
+
|
|
382
|
+
```mermaid
|
|
383
|
+
sequenceDiagram
|
|
384
|
+
participant User
|
|
385
|
+
participant Manager as Context Manager
|
|
386
|
+
participant Profile as Mode Profile
|
|
387
|
+
participant Selector as Prompt Selector
|
|
388
|
+
participant LLM
|
|
389
|
+
|
|
390
|
+
Note over User,LLM: Initial State: Tier 3, Developer Mode
|
|
391
|
+
|
|
392
|
+
User->>Manager: setMode(PLANNING)
|
|
393
|
+
Manager->>Profile: Load Planning profile
|
|
394
|
+
Profile->>Manager: Return profile config
|
|
395
|
+
|
|
396
|
+
Manager->>Manager: Mode changed: Developer → Planning
|
|
397
|
+
Manager->>Selector: Get prompt for Tier 3 + Planning
|
|
398
|
+
Selector->>Selector: Lookup "tier3-planning"
|
|
399
|
+
Selector->>Manager: Return ~1000 token prompt
|
|
400
|
+
|
|
401
|
+
Manager->>Manager: Update system prompt
|
|
402
|
+
Manager->>Manager: Update preservation rules
|
|
403
|
+
Manager->>Manager: Update extraction patterns
|
|
404
|
+
Manager->>LLM: Apply new prompt
|
|
405
|
+
|
|
406
|
+
Manager->>User: Emit 'mode-changed' event
|
|
407
|
+
Manager->>User: Emit 'system-prompt-updated' event
|
|
408
|
+
|
|
409
|
+
Note over User,LLM: Current State: Tier 3, Planning Mode<br/>Prompt focus: Tasks and dependencies
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
**Description:**
|
|
413
|
+
|
|
414
|
+
1. User explicitly switches mode to Planning
|
|
415
|
+
2. Context Manager loads Planning mode profile
|
|
416
|
+
3. Prompt Selector retrieves planning-focused prompt
|
|
417
|
+
4. System prompt changes focus from code to tasks
|
|
418
|
+
5. Preservation rules updated (goals, requirements, tasks)
|
|
419
|
+
6. Extraction patterns updated
|
|
420
|
+
7. Events emitted for UI updates
|
|
421
|
+
|
|
422
|
+
---
|
|
423
|
+
|
|
424
|
+
## Combined Switching
|
|
425
|
+
|
|
426
|
+
### Scenario: User Switches Both Model and Mode
|
|
427
|
+
|
|
428
|
+
```mermaid
|
|
429
|
+
sequenceDiagram
|
|
430
|
+
participant User
|
|
431
|
+
participant Manager as Context Manager
|
|
432
|
+
participant Detector as Tier Detector
|
|
433
|
+
participant Profile as Mode Profile
|
|
434
|
+
participant Selector as Prompt Selector
|
|
435
|
+
participant LLM
|
|
436
|
+
|
|
437
|
+
Note over User,LLM: Initial: 8K Model, Developer Mode<br/>Prompt: tier1-developer (~200 tokens)
|
|
438
|
+
|
|
439
|
+
User->>Manager: Switch to 32K model
|
|
440
|
+
Manager->>Detector: Detect tier
|
|
441
|
+
Detector->>Manager: Tier 3 (8-32K)
|
|
442
|
+
|
|
443
|
+
User->>Manager: setMode(PLANNING)
|
|
444
|
+
Manager->>Profile: Load Planning profile
|
|
445
|
+
Profile->>Manager: Return profile
|
|
446
|
+
|
|
447
|
+
Manager->>Manager: Both tier and mode changed
|
|
448
|
+
Manager->>Selector: Get prompt for Tier 3 + Planning
|
|
449
|
+
Selector->>Selector: Lookup "tier3-planning"
|
|
450
|
+
Selector->>Manager: Return ~1000 token prompt
|
|
451
|
+
|
|
452
|
+
Manager->>Manager: Update system prompt
|
|
453
|
+
Manager->>Manager: Update all configurations
|
|
454
|
+
Manager->>LLM: Apply new prompt
|
|
455
|
+
|
|
456
|
+
Manager->>User: Emit 'tier-changed' event
|
|
457
|
+
Manager->>User: Emit 'mode-changed' event
|
|
458
|
+
Manager->>User: Emit 'system-prompt-updated' event
|
|
459
|
+
|
|
460
|
+
Note over User,LLM: Final: 32K Model, Planning Mode<br/>Prompt: tier3-planning (~1000 tokens)<br/>Focus: Code → Tasks, Size: 200 → 1000 tokens
|
|
461
|
+
```
|
|
462
|
+
|
|
463
|
+
**Description:**
|
|
464
|
+
|
|
465
|
+
1. User switches both model (8K → 32K) and mode (Developer → Planning)
|
|
466
|
+
2. Tier detection runs (Tier 1 → Tier 3)
|
|
467
|
+
3. Mode profile loads (Developer → Planning)
|
|
468
|
+
4. Prompt Selector combines both changes
|
|
469
|
+
5. Single prompt update with both tier and mode changes
|
|
470
|
+
6. All configurations updated atomically
|
|
471
|
+
7. Multiple events emitted for UI
|
|
472
|
+
|
|
473
|
+
---
|
|
474
|
+
|
|
475
|
+
## Prompt Selection Decision Tree
|
|
476
|
+
|
|
477
|
+
### Complete Decision Flow
|
|
478
|
+
|
|
479
|
+
```mermaid
|
|
480
|
+
graph TD
|
|
481
|
+
Start[Prompt Selection Needed] --> Reason{Reason?}
|
|
482
|
+
|
|
483
|
+
Reason -->|Initialization| Init[Initial Setup]
|
|
484
|
+
Reason -->|Tier Change| TierChange[Tier Changed]
|
|
485
|
+
Reason -->|Mode Change| ModeChange[Mode Changed]
|
|
486
|
+
Reason -->|Manual Update| Manual[Manual Trigger]
|
|
487
|
+
|
|
488
|
+
Init --> GetTier[Get Current Tier]
|
|
489
|
+
TierChange --> GetTier
|
|
490
|
+
ModeChange --> GetTier
|
|
491
|
+
Manual --> GetTier
|
|
492
|
+
|
|
493
|
+
GetTier --> GetMode[Get Current Mode]
|
|
494
|
+
|
|
495
|
+
GetMode --> BuildKey[Build Lookup Key]
|
|
496
|
+
BuildKey --> Key["key = 'tier' + tierNum + '-' + mode"]
|
|
497
|
+
|
|
498
|
+
Key --> Lookup{Template Exists?}
|
|
499
|
+
|
|
500
|
+
Lookup -->|Yes| Found[Use Template]
|
|
501
|
+
Lookup -->|No| Fallback[Use Fallback]
|
|
502
|
+
|
|
503
|
+
Fallback --> Default["Default: tier3-developer"]
|
|
504
|
+
|
|
505
|
+
Found --> Validate[Validate Token Budget]
|
|
506
|
+
Default --> Validate
|
|
507
|
+
|
|
508
|
+
Validate --> Apply[Apply System Prompt]
|
|
509
|
+
Apply --> Emit[Emit Events]
|
|
510
|
+
Emit --> Done[Complete]
|
|
511
|
+
|
|
512
|
+
style GetTier fill:#ffd93d
|
|
513
|
+
style GetMode fill:#ffd93d
|
|
514
|
+
style Found fill:#6bcf7f
|
|
515
|
+
style Fallback fill:#ff6b6b
|
|
516
|
+
style Apply fill:#4d96ff
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
**Description:**
|
|
520
|
+
|
|
521
|
+
1. **Trigger:** Initialization, tier change, mode change, or manual update
|
|
522
|
+
2. **Detection:** Get current tier and mode
|
|
523
|
+
3. **Key Building:** Combine into lookup key (e.g., "tier3-developer")
|
|
524
|
+
4. **Lookup:** Find template in `SYSTEM_PROMPT_TEMPLATES`
|
|
525
|
+
5. **Fallback:** If not found, use default (tier3-developer)
|
|
526
|
+
6. **Validation:** Verify token budget is within limits
|
|
527
|
+
7. **Application:** Set as system prompt
|
|
528
|
+
8. **Events:** Emit for UI updates
|
|
529
|
+
|
|
530
|
+
---
|
|
531
|
+
|
|
532
|
+
## Token Budget Flow
|
|
533
|
+
|
|
534
|
+
### How Token Budgets Scale with Tier
|
|
535
|
+
|
|
536
|
+
```mermaid
|
|
537
|
+
graph LR
|
|
538
|
+
subgraph "Tier 1: 4K Context"
|
|
539
|
+
T1[~400 tokens<br/>10.0% overhead]
|
|
540
|
+
T1W[3,600 tokens<br/>work space]
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
subgraph "Tier 2: 8K Context"
|
|
544
|
+
T2[~800 tokens<br/>10.0% overhead]
|
|
545
|
+
T2W[7,200 tokens<br/>work space]
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
subgraph "Tier 3: 16K Context ⭐"
|
|
549
|
+
T3[~1300 tokens<br/>8.1% overhead]
|
|
550
|
+
T3W[14,700 tokens<br/>work space]
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
subgraph "Tier 4: 32K Context"
|
|
554
|
+
T4[~1800 tokens<br/>5.6% overhead]
|
|
555
|
+
T4W[30,200 tokens<br/>work space]
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
subgraph "Tier 5: 128K Context"
|
|
559
|
+
T5[~1800 tokens<br/>1.4% overhead]
|
|
560
|
+
T5W[126,200 tokens<br/>work space]
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
T1 --> T1W
|
|
564
|
+
T2 --> T2W
|
|
565
|
+
T3 --> T3W
|
|
566
|
+
T4 --> T4W
|
|
567
|
+
T5 --> T5W
|
|
568
|
+
|
|
569
|
+
style T3 fill:#6bcf7f
|
|
570
|
+
style T3W fill:#6bcf7f
|
|
571
|
+
```
|
|
572
|
+
|
|
573
|
+
**Description:**
|
|
574
|
+
|
|
575
|
+
- **Tier 1:** Minimal prompt (400 tokens total) to maximize work space
|
|
576
|
+
- **Tier 2:** Detailed prompt (800 tokens total) with examples
|
|
577
|
+
- **Tier 3:** Comprehensive prompt (1300 tokens total) with frameworks ⭐
|
|
578
|
+
- **Tier 4:** Expert prompt (1800 tokens total) with sophistication
|
|
579
|
+
- **Tier 5:** Expert prompt (1800 tokens total) - minimal overhead
|
|
580
|
+
- **Overhead:** Stays under 11% for all tiers
|
|
581
|
+
- **Work Space:** Increases with context size
|
|
582
|
+
|
|
583
|
+
**Token Budget Breakdown:**
|
|
584
|
+
|
|
585
|
+
- Core Mandates: ~200 tokens (all tiers)
|
|
586
|
+
- Sanity Checks: ~100 tokens (tier 2+)
|
|
587
|
+
- Mode Template: 200-1500 tokens (tier-dependent)
|
|
588
|
+
- Total: 400-1800 tokens
|
|
589
|
+
|
|
590
|
+
---
|
|
591
|
+
|
|
592
|
+
## Mode Profile Impact
|
|
593
|
+
|
|
594
|
+
### How Mode Affects Prompt Content
|
|
595
|
+
|
|
596
|
+
```mermaid
|
|
597
|
+
graph TB
|
|
598
|
+
subgraph "Developer Mode"
|
|
599
|
+
D1[Core: Code Quality]
|
|
600
|
+
D2[Focus: Architecture]
|
|
601
|
+
D3[Examples: SOLID, Patterns]
|
|
602
|
+
D4[Guardrails: Type Safety]
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
subgraph "Planning Mode"
|
|
606
|
+
P1[Core: Task Breakdown]
|
|
607
|
+
P2[Focus: Dependencies]
|
|
608
|
+
P3[Examples: Estimation]
|
|
609
|
+
P4[Guardrails: Clear Criteria]
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
subgraph "Assistant Mode"
|
|
613
|
+
A1[Core: Communication]
|
|
614
|
+
A2[Focus: User Needs]
|
|
615
|
+
A3[Examples: Explanations]
|
|
616
|
+
A4[Guardrails: Clarity]
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
subgraph "Debugger Mode"
|
|
620
|
+
X1[Core: Root Cause]
|
|
621
|
+
X2[Focus: Reproduction]
|
|
622
|
+
X3[Examples: Debugging Steps]
|
|
623
|
+
X4[Guardrails: Systematic]
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
Mode[Operational Mode] --> Developer
|
|
627
|
+
Mode --> Planning
|
|
628
|
+
Mode --> Assistant
|
|
629
|
+
Mode --> Debugger
|
|
630
|
+
|
|
631
|
+
Developer --> D1
|
|
632
|
+
Developer --> D2
|
|
633
|
+
Developer --> D3
|
|
634
|
+
Developer --> D4
|
|
635
|
+
|
|
636
|
+
Planning --> P1
|
|
637
|
+
Planning --> P2
|
|
638
|
+
Planning --> P3
|
|
639
|
+
Planning --> P4
|
|
640
|
+
|
|
641
|
+
Assistant --> A1
|
|
642
|
+
Assistant --> A2
|
|
643
|
+
Assistant --> A3
|
|
644
|
+
Assistant --> A4
|
|
645
|
+
|
|
646
|
+
Debugger --> X1
|
|
647
|
+
Debugger --> X2
|
|
648
|
+
Debugger --> X3
|
|
649
|
+
Debugger --> X4
|
|
650
|
+
|
|
651
|
+
style Developer fill:#61dafb
|
|
652
|
+
style Planning fill:#ffd93d
|
|
653
|
+
style Assistant fill:#6bcf7f
|
|
654
|
+
style Debugger fill:#ff6b6b
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
**Description:**
|
|
658
|
+
|
|
659
|
+
- **Developer:** Focus on code quality, architecture, patterns
|
|
660
|
+
- **Planning:** Focus on task breakdown, dependencies, estimation
|
|
661
|
+
- **Assistant:** Focus on clear communication, user needs
|
|
662
|
+
- **Debugger:** Focus on root cause analysis, systematic debugging
|
|
663
|
+
- Each mode has different core responsibilities, focus areas, examples, and guardrails
|
|
664
|
+
|
|
665
|
+
---
|
|
666
|
+
|
|
667
|
+
## Prompt Update Lifecycle
|
|
668
|
+
|
|
669
|
+
### Complete Update Flow
|
|
670
|
+
|
|
671
|
+
```mermaid
|
|
672
|
+
stateDiagram-v2
|
|
673
|
+
[*] --> Initialized: Context Manager Start
|
|
674
|
+
|
|
675
|
+
Initialized --> Active: Initial Prompt Applied
|
|
676
|
+
|
|
677
|
+
Active --> DetectingTier: Context Size Changed
|
|
678
|
+
DetectingTier --> UpdatingPrompt: Tier Changed
|
|
679
|
+
|
|
680
|
+
Active --> ChangingMode: User Changes Mode
|
|
681
|
+
ChangingMode --> UpdatingPrompt: Mode Changed
|
|
682
|
+
|
|
683
|
+
Active --> ManualUpdate: Manual Trigger
|
|
684
|
+
ManualUpdate --> UpdatingPrompt: Update Requested
|
|
685
|
+
|
|
686
|
+
UpdatingPrompt --> Validating: Prompt Selected
|
|
687
|
+
Validating --> Applying: Validation Passed
|
|
688
|
+
Applying --> NotifyingUI: Prompt Applied
|
|
689
|
+
NotifyingUI --> Active: Events Emitted
|
|
690
|
+
|
|
691
|
+
Validating --> Error: Validation Failed
|
|
692
|
+
Error --> Fallback: Use Default
|
|
693
|
+
Fallback --> Applying: Fallback Selected
|
|
694
|
+
|
|
695
|
+
Active --> [*]: Context Manager Stop
|
|
696
|
+
|
|
697
|
+
note right of UpdatingPrompt
|
|
698
|
+
Combines tier + mode
|
|
699
|
+
Looks up template
|
|
700
|
+
Validates token budget
|
|
701
|
+
end note
|
|
702
|
+
|
|
703
|
+
note right of NotifyingUI
|
|
704
|
+
Emits events:
|
|
705
|
+
- tier-changed
|
|
706
|
+
- mode-changed
|
|
707
|
+
- system-prompt-updated
|
|
708
|
+
end note
|
|
709
|
+
```
|
|
710
|
+
|
|
711
|
+
**Description:**
|
|
712
|
+
|
|
713
|
+
1. **Initialized:** Context Manager starts with default prompt
|
|
714
|
+
2. **Active:** Normal operation with current prompt
|
|
715
|
+
3. **Triggers:** Tier change, mode change, or manual update
|
|
716
|
+
4. **Updating:** Select new prompt based on tier + mode
|
|
717
|
+
5. **Validating:** Check token budget and template exists
|
|
718
|
+
6. **Applying:** Set as system prompt
|
|
719
|
+
7. **Notifying:** Emit events for UI updates
|
|
720
|
+
8. **Error Handling:** Fallback to default if validation fails
|
|
721
|
+
|
|
722
|
+
---
|
|
723
|
+
|
|
724
|
+
## UI Integration
|
|
725
|
+
|
|
726
|
+
### How UI Responds to Prompt Changes
|
|
727
|
+
|
|
728
|
+
```mermaid
|
|
729
|
+
sequenceDiagram
|
|
730
|
+
participant Manager as Context Manager
|
|
731
|
+
participant Provider as Context Provider
|
|
732
|
+
participant Status as Context Status UI
|
|
733
|
+
participant User
|
|
734
|
+
|
|
735
|
+
Note over Manager,User: Prompt Update Triggered
|
|
736
|
+
|
|
737
|
+
Manager->>Manager: Update system prompt
|
|
738
|
+
Manager->>Provider: Emit 'system-prompt-updated'
|
|
739
|
+
|
|
740
|
+
Provider->>Provider: Update state
|
|
741
|
+
Provider->>Status: Re-render with new data
|
|
742
|
+
|
|
743
|
+
Status->>Status: Show tier indicator
|
|
744
|
+
Status->>Status: Show mode indicator
|
|
745
|
+
Status->>Status: Show prompt size
|
|
746
|
+
Status->>Status: Animate change
|
|
747
|
+
|
|
748
|
+
Status->>User: Display visual feedback
|
|
749
|
+
|
|
750
|
+
Note over Status,User: Brief highlight/animation<br/>Checkmark appears<br/>Color change
|
|
751
|
+
|
|
752
|
+
Status->>Status: Clear animation after 1s
|
|
753
|
+
|
|
754
|
+
Note over Manager,User: UI Updated, Ready for Input
|
|
755
|
+
```
|
|
756
|
+
|
|
757
|
+
**Description:**
|
|
758
|
+
|
|
759
|
+
1. Context Manager updates system prompt
|
|
760
|
+
2. Emits 'system-prompt-updated' event
|
|
761
|
+
3. Context Provider updates React state
|
|
762
|
+
4. Context Status UI re-renders
|
|
763
|
+
5. Shows tier, mode, and prompt size
|
|
764
|
+
6. Animates change (highlight, checkmark)
|
|
765
|
+
7. Animation clears after 1 second
|
|
766
|
+
8. User sees visual confirmation
|
|
767
|
+
|
|
768
|
+
---
|
|
769
|
+
|
|
770
|
+
## Prompt Template Storage
|
|
771
|
+
|
|
772
|
+
### File Organization
|
|
773
|
+
|
|
774
|
+
```mermaid
|
|
775
|
+
graph TB
|
|
776
|
+
Root[packages/core/src/prompts/templates/]
|
|
777
|
+
|
|
778
|
+
Root --> Dev[developer/]
|
|
779
|
+
Root --> Plan[planning/]
|
|
780
|
+
Root --> Debug[debugger/]
|
|
781
|
+
Root --> Assist[assistant/]
|
|
782
|
+
Root --> Core[Core Components]
|
|
783
|
+
|
|
784
|
+
Dev --> D1[tier1.txt ~200 tokens]
|
|
785
|
+
Dev --> D2[tier2.txt ~500 tokens]
|
|
786
|
+
Dev --> D3[tier3.txt ~1000 tokens]
|
|
787
|
+
Dev --> D4[tier4.txt ~1500 tokens]
|
|
788
|
+
Dev --> D5[tier5.txt ~1500 tokens]
|
|
789
|
+
|
|
790
|
+
Plan --> P1[tier1.txt ~200 tokens]
|
|
791
|
+
Plan --> P2[tier2.txt ~500 tokens]
|
|
792
|
+
Plan --> P3[tier3.txt ~1000 tokens]
|
|
793
|
+
Plan --> P4[tier4.txt ~1500 tokens]
|
|
794
|
+
Plan --> P5[tier5.txt ~1500 tokens]
|
|
795
|
+
|
|
796
|
+
Debug --> X1[tier1.txt ~200 tokens]
|
|
797
|
+
Debug --> X2[tier2.txt ~500 tokens]
|
|
798
|
+
Debug --> X3[tier3.txt ~1000 tokens]
|
|
799
|
+
Debug --> X4[tier4.txt ~1500 tokens]
|
|
800
|
+
Debug --> X5[tier5.txt ~1500 tokens]
|
|
801
|
+
|
|
802
|
+
Assist --> A4[tier4.txt ~1500 tokens]
|
|
803
|
+
Assist --> A5[tier5.txt ~1500 tokens]
|
|
804
|
+
|
|
805
|
+
Core --> C1[identity.ts]
|
|
806
|
+
Core --> C2[mandates.ts]
|
|
807
|
+
Core --> C3[sanity.ts]
|
|
808
|
+
|
|
809
|
+
style D3 fill:#6bcf7f
|
|
810
|
+
style P3 fill:#6bcf7f
|
|
811
|
+
style X3 fill:#6bcf7f
|
|
812
|
+
```
|
|
813
|
+
|
|
814
|
+
**Description:**
|
|
815
|
+
|
|
816
|
+
- Prompts stored in separate text files for maintainability
|
|
817
|
+
- Organized by mode (developer/, planning/, debugger/, assistant/)
|
|
818
|
+
- Each mode has tier-specific prompts (tier1.txt through tier5.txt)
|
|
819
|
+
- Assistant mode only has tier4.txt and tier5.txt
|
|
820
|
+
- Core components in TypeScript files (identity.ts, mandates.ts, sanity.ts)
|
|
821
|
+
- Token counts verified during build
|
|
822
|
+
- Easy to edit and version control
|
|
823
|
+
|
|
824
|
+
**File Locations:**
|
|
825
|
+
|
|
826
|
+
- `packages/core/src/prompts/templates/developer/tier{1-5}.txt`
|
|
827
|
+
- `packages/core/src/prompts/templates/planning/tier{1-5}.txt`
|
|
828
|
+
- `packages/core/src/prompts/templates/debugger/tier{1-5}.txt`
|
|
829
|
+
- `packages/core/src/prompts/templates/assistant/tier{4-5}.txt`
|
|
830
|
+
- `packages/core/src/prompts/templates/identity.ts`
|
|
831
|
+
- `packages/core/src/prompts/templates/mandates.ts`
|
|
832
|
+
- `packages/core/src/prompts/templates/sanity.ts`
|
|
833
|
+
|
|
834
|
+
---
|
|
835
|
+
|
|
836
|
+
## Performance Considerations
|
|
837
|
+
|
|
838
|
+
### Prompt Selection Performance
|
|
839
|
+
|
|
840
|
+
```mermaid
|
|
841
|
+
graph LR
|
|
842
|
+
subgraph "Fast Path (Cache Hit)"
|
|
843
|
+
F1[Request Prompt] --> F2[Check Cache]
|
|
844
|
+
F2 --> F3[Cache Hit]
|
|
845
|
+
F3 --> F4[Return Cached]
|
|
846
|
+
F4 --> F5[< 1ms]
|
|
847
|
+
end
|
|
848
|
+
|
|
849
|
+
subgraph "Slow Path (Cache Miss)"
|
|
850
|
+
S1[Request Prompt] --> S2[Check Cache]
|
|
851
|
+
S2 --> S3[Cache Miss]
|
|
852
|
+
S3 --> S4[Load from Disk]
|
|
853
|
+
S4 --> S5[Parse Template]
|
|
854
|
+
S5 --> S6[Store in Cache]
|
|
855
|
+
S6 --> S7[Return Prompt]
|
|
856
|
+
S7 --> S8[< 10ms]
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
style F3 fill:#6bcf7f
|
|
860
|
+
style S3 fill:#ffd93d
|
|
861
|
+
```
|
|
862
|
+
|
|
863
|
+
**Description:**
|
|
864
|
+
|
|
865
|
+
- **Fast Path:** Prompts cached in memory after first load (< 1ms)
|
|
866
|
+
- **Slow Path:** First load reads from disk (< 10ms)
|
|
867
|
+
- **Cache Key:** `tier{num}-{mode}` (e.g., "tier3-developer")
|
|
868
|
+
- **Cache Invalidation:** Only on application restart
|
|
869
|
+
- **Memory Usage:** ~50KB for all 16 prompts
|
|
870
|
+
- **Performance Impact:** Negligible
|
|
871
|
+
|
|
872
|
+
---
|
|
873
|
+
|
|
874
|
+
## Error Handling
|
|
875
|
+
|
|
876
|
+
### Fallback Strategy
|
|
877
|
+
|
|
878
|
+
```mermaid
|
|
879
|
+
graph TD
|
|
880
|
+
Start[Prompt Selection] --> Lookup[Lookup Template]
|
|
881
|
+
|
|
882
|
+
Lookup --> Exists{Exists?}
|
|
883
|
+
|
|
884
|
+
Exists -->|Yes| Validate[Validate Token Budget]
|
|
885
|
+
Exists -->|No| Fallback1[Try Tier 3 Same Mode]
|
|
886
|
+
|
|
887
|
+
Fallback1 --> Exists2{Exists?}
|
|
888
|
+
Exists2 -->|Yes| Validate
|
|
889
|
+
Exists2 -->|No| Fallback2[Try Tier 3 Developer]
|
|
890
|
+
|
|
891
|
+
Fallback2 --> Exists3{Exists?}
|
|
892
|
+
Exists3 -->|Yes| Validate
|
|
893
|
+
Exists3 -->|No| Error[Log Error]
|
|
894
|
+
|
|
895
|
+
Validate --> Budget{Budget OK?}
|
|
896
|
+
Budget -->|Yes| Success[Use Prompt]
|
|
897
|
+
Budget -->|No| Warn[Log Warning]
|
|
898
|
+
Warn --> Success
|
|
899
|
+
|
|
900
|
+
Error --> Emergency[Use Core Mandates Only]
|
|
901
|
+
Emergency --> Success
|
|
902
|
+
|
|
903
|
+
Success --> Done[Prompt Applied]
|
|
904
|
+
|
|
905
|
+
style Success fill:#6bcf7f
|
|
906
|
+
style Fallback1 fill:#ffd93d
|
|
907
|
+
style Fallback2 fill:#ffd93d
|
|
908
|
+
style Error fill:#ff6b6b
|
|
909
|
+
```
|
|
910
|
+
|
|
911
|
+
**Description:**
|
|
912
|
+
|
|
913
|
+
1. **Primary:** Try requested tier + mode
|
|
914
|
+
2. **Fallback 1:** Try Tier 3 (Standard) with same mode
|
|
915
|
+
3. **Fallback 2:** Try Tier 3 Developer (most common default)
|
|
916
|
+
4. **Emergency:** Use Core Mandates only (minimal prompt)
|
|
917
|
+
5. **Validation:** Check token budget (warn if over)
|
|
918
|
+
6. **Logging:** Log all fallbacks and errors
|
|
919
|
+
7. **Graceful:** Never fail, always provide a prompt
|
|
920
|
+
|
|
921
|
+
**Note:** Assistant mode fallback goes to Tier 4 Assistant if Tier 3 is requested (since Assistant only exists in Tier 4+).
|
|
922
|
+
|
|
923
|
+
---
|
|
924
|
+
|
|
925
|
+
## Testing Strategy
|
|
926
|
+
|
|
927
|
+
### Prompt Selection Tests
|
|
928
|
+
|
|
929
|
+
```mermaid
|
|
930
|
+
graph TB
|
|
931
|
+
subgraph "Unit Tests"
|
|
932
|
+
U1[Test tier detection]
|
|
933
|
+
U2[Test mode selection]
|
|
934
|
+
U3[Test key building]
|
|
935
|
+
U4[Test template lookup]
|
|
936
|
+
U5[Test fallback logic]
|
|
937
|
+
U6[Test token validation]
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
subgraph "Integration Tests"
|
|
941
|
+
I1[Test tier switching]
|
|
942
|
+
I2[Test mode switching]
|
|
943
|
+
I3[Test combined switching]
|
|
944
|
+
I4[Test UI updates]
|
|
945
|
+
I5[Test event emission]
|
|
946
|
+
end
|
|
947
|
+
|
|
948
|
+
subgraph "E2E Tests"
|
|
949
|
+
E1[Test full conversation]
|
|
950
|
+
E2[Test model switching]
|
|
951
|
+
E3[Test mode switching]
|
|
952
|
+
E4[Test prompt quality]
|
|
953
|
+
end
|
|
954
|
+
|
|
955
|
+
Tests[Test Suite] --> Unit
|
|
956
|
+
Tests --> Integration
|
|
957
|
+
Tests --> E2E
|
|
958
|
+
|
|
959
|
+
Unit --> U1
|
|
960
|
+
Unit --> U2
|
|
961
|
+
Unit --> U3
|
|
962
|
+
Unit --> U4
|
|
963
|
+
Unit --> U5
|
|
964
|
+
Unit --> U6
|
|
965
|
+
|
|
966
|
+
Integration --> I1
|
|
967
|
+
Integration --> I2
|
|
968
|
+
Integration --> I3
|
|
969
|
+
Integration --> I4
|
|
970
|
+
Integration --> I5
|
|
971
|
+
|
|
972
|
+
E2E --> E1
|
|
973
|
+
E2E --> E2
|
|
974
|
+
E2E --> E3
|
|
975
|
+
E2E --> E4
|
|
976
|
+
|
|
977
|
+
style Tests fill:#4d96ff
|
|
978
|
+
style Unit fill:#6bcf7f
|
|
979
|
+
style Integration fill:#ffd93d
|
|
980
|
+
style E2E fill:#ff6b6b
|
|
981
|
+
```
|
|
982
|
+
|
|
983
|
+
**Description:**
|
|
984
|
+
|
|
985
|
+
- **Unit Tests:** Test individual functions (tier detection, lookup, etc.)
|
|
986
|
+
- **Integration Tests:** Test component interactions (switching, events)
|
|
987
|
+
- **E2E Tests:** Test full user workflows (conversations, model changes)
|
|
988
|
+
- **Coverage Target:** > 80% for prompt selection logic
|
|
989
|
+
- **Performance Tests:** Verify < 10ms prompt selection time
|
|
990
|
+
|
|
991
|
+
---
|
|
992
|
+
|
|
993
|
+
## Summary
|
|
994
|
+
|
|
995
|
+
### Key Points
|
|
996
|
+
|
|
997
|
+
1. **Automatic Selection** ✅
|
|
998
|
+
- Prompts selected based on context tier + operational mode
|
|
999
|
+
- No manual configuration needed
|
|
1000
|
+
- Fully automatic switching between sessions
|
|
1001
|
+
|
|
1002
|
+
2. **18 Prompt Templates** ✅
|
|
1003
|
+
- 5 tiers × 4 modes = 20 combinations
|
|
1004
|
+
- Minus 3 (Assistant not available in Tiers 1-3) = 18 templates
|
|
1005
|
+
- Each optimized for its context size and mode
|
|
1006
|
+
- Token budgets: ~400, ~800, ~1300, ~1800
|
|
1007
|
+
|
|
1008
|
+
3. **Fixed Context** ✅
|
|
1009
|
+
- Context size determined once at startup
|
|
1010
|
+
- Stays FIXED for entire session
|
|
1011
|
+
- No mid-conversation changes
|
|
1012
|
+
- Clear warnings on low memory
|
|
1013
|
+
|
|
1014
|
+
4. **Seamless Switching** ✅
|
|
1015
|
+
- Tier changes: Only when switching models/sessions
|
|
1016
|
+
- Mode changes: User-triggered
|
|
1017
|
+
- Combined changes: Handled atomically
|
|
1018
|
+
- UI updates: Visual feedback
|
|
1019
|
+
|
|
1020
|
+
5. **Performance** ✅
|
|
1021
|
+
- Templates loaded from disk
|
|
1022
|
+
- Fast selection (< 10ms)
|
|
1023
|
+
- Minimal overhead (1.4-10% depending on tier)
|
|
1024
|
+
- Graceful fallbacks
|
|
1025
|
+
|
|
1026
|
+
6. **Quality Scaling** ✅
|
|
1027
|
+
- Tier 1 (Minimal): Essential guidance (~400 tokens)
|
|
1028
|
+
- Tier 2 (Basic): Detailed guidance (~800 tokens)
|
|
1029
|
+
- Tier 3 (Standard): Comprehensive guidance (~1300 tokens) ⭐
|
|
1030
|
+
- Tier 4 (Premium): Expert guidance (~1800 tokens)
|
|
1031
|
+
- Tier 5 (Ultra): Expert guidance (~1800 tokens)
|
|
1032
|
+
|
|
1033
|
+
---
|
|
1034
|
+
|
|
1035
|
+
## Related Documents
|
|
1036
|
+
|
|
1037
|
+
- **[SystemPrompts.md](./SystemPrompts.md)** - System prompt architecture and design
|
|
1038
|
+
- **[PromptsTemplates.md](./PromptsTemplates.md)** - Actual prompt templates
|
|
1039
|
+
- **[ContextManagement.md](./ContextManagement.md)** - Context sizing, tiers, VRAM
|
|
1040
|
+
- **[ContextCompression.md](./ContextCompression.md)** - Compression and snapshots
|
|
1041
|
+
|
|
1042
|
+
---
|
|
1043
|
+
|
|
1044
|
+
**Document Status:** ✅ Updated
|
|
1045
|
+
**Last Updated:** January 26, 2026
|
|
1046
|
+
**Visual Diagrams:** 12 mermaid diagrams
|
|
1047
|
+
**Purpose:** Visual guide to prompt routing and selection
|