@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,536 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext, useState, useCallback, useEffect, useRef } from 'react';
|
|
3
|
+
import { HotSwapTool, MemoryDumpTool, MODE_METADATA, PromptRegistry, } from '@ollm/core';
|
|
4
|
+
import { useContextManager } from './ContextManagerContext.js';
|
|
5
|
+
import { validateManualContext } from './contextSizing.js';
|
|
6
|
+
import { runAgentLoop } from './handlers/agentLoopHandler.js';
|
|
7
|
+
import { handleCommand } from './handlers/commandHandler.js';
|
|
8
|
+
import { createContextEventHandlers, registerContextEventHandlers, } from './handlers/contextEventHandlers.js';
|
|
9
|
+
import { useModel } from './ModelContext.js';
|
|
10
|
+
import { useServices } from './ServiceContext.js';
|
|
11
|
+
import { getSessionManager } from './SessionManager.js';
|
|
12
|
+
import { useUI } from './UIContext.js';
|
|
13
|
+
import { useFocusedFilesInjection } from './useFocusedFilesInjection.js';
|
|
14
|
+
import { resolveTierForSize, toOperationalMode, loadTierPromptWithFallback, } from './utils/promptUtils.js';
|
|
15
|
+
import { buildSystemPrompt } from './utils/systemPromptBuilder.js';
|
|
16
|
+
import { commandRegistry } from '../../commands/index.js';
|
|
17
|
+
import { profileManager } from '../profiles/ProfileManager.js';
|
|
18
|
+
const ChatContext = createContext(undefined);
|
|
19
|
+
export function ChatProvider({ children, initialMessages = [], onSendMessage: _onSendMessage, onCancelGeneration: _onCancelGeneration, }) {
|
|
20
|
+
const [messages, setMessages] = useState(initialMessages);
|
|
21
|
+
const [streaming, setStreaming] = useState(false);
|
|
22
|
+
const [waitingForResponse, setWaitingForResponse] = useState(false);
|
|
23
|
+
const [currentInput, setCurrentInput] = useState('');
|
|
24
|
+
const [selectedLineIndex, setSelectedLineIndex] = useState(0);
|
|
25
|
+
const [statusMessage, setStatusMessage] = useState(undefined);
|
|
26
|
+
// Menu State
|
|
27
|
+
const [inputMode, setInputMode] = useState('text');
|
|
28
|
+
const [menuState, setMenuState] = useState({
|
|
29
|
+
active: false,
|
|
30
|
+
options: [],
|
|
31
|
+
selectedIndex: 0,
|
|
32
|
+
});
|
|
33
|
+
const { actions: contextActions, state: contextManagerState } = useContextManager();
|
|
34
|
+
const contextUsage = contextManagerState.usage;
|
|
35
|
+
const { setLaunchScreenVisible, setTheme } = useUI();
|
|
36
|
+
const { container: serviceContainer } = useServices();
|
|
37
|
+
const { sendToLLM, cancelRequest, setCurrentModel, provider, currentModel, modelSupportsTools } = useModel();
|
|
38
|
+
const injectFocusedFilesIntoPrompt = useFocusedFilesInjection();
|
|
39
|
+
const assistantMessageIdRef = useRef(null);
|
|
40
|
+
const recordingSessionIdRef = useRef(null);
|
|
41
|
+
const manualContextRequestRef = useRef(null);
|
|
42
|
+
const compressionOccurredRef = useRef(false);
|
|
43
|
+
const compressionRetryCountRef = useRef(0);
|
|
44
|
+
const lastUserMessageRef = useRef(null);
|
|
45
|
+
const waitingForResumeRef = useRef(false);
|
|
46
|
+
const inflightTokenAccumulatorRef = useRef(0);
|
|
47
|
+
const inflightFlushTimerRef = useRef(null);
|
|
48
|
+
// Define addMessage before it's used in useEffect
|
|
49
|
+
const addMessage = useCallback((message) => {
|
|
50
|
+
const newMessage = {
|
|
51
|
+
...message,
|
|
52
|
+
id: `msg-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
53
|
+
timestamp: new Date(),
|
|
54
|
+
};
|
|
55
|
+
setMessages((prev) => [...prev, newMessage]);
|
|
56
|
+
return newMessage;
|
|
57
|
+
// Note: We don't automatically add to contextManager here anymore to avoid duplication
|
|
58
|
+
// and to ensure better control over tool call/result sequencing.
|
|
59
|
+
}, []);
|
|
60
|
+
const recordSessionMessage = useCallback(async (role, text) => {
|
|
61
|
+
if (!serviceContainer) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const recordingService = serviceContainer.getChatRecordingService?.();
|
|
65
|
+
if (!recordingService) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (!recordingSessionIdRef.current) {
|
|
69
|
+
try {
|
|
70
|
+
recordingSessionIdRef.current = await recordingService.createSession(currentModel, provider?.name ?? 'unknown');
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
console.error('[ChatRecording] Failed to create session:', error);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
try {
|
|
78
|
+
await recordingService.recordMessage(recordingSessionIdRef.current, {
|
|
79
|
+
role,
|
|
80
|
+
parts: [{ type: 'text', text }],
|
|
81
|
+
timestamp: new Date().toISOString(),
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
catch (error) {
|
|
85
|
+
console.error('[ChatRecording] Failed to record message:', error);
|
|
86
|
+
}
|
|
87
|
+
}, [serviceContainer, currentModel, provider]);
|
|
88
|
+
const clearChat = useCallback(() => {
|
|
89
|
+
setMessages([]);
|
|
90
|
+
setCurrentInput('');
|
|
91
|
+
setStreaming(false);
|
|
92
|
+
setWaitingForResponse(false);
|
|
93
|
+
if (contextActions) {
|
|
94
|
+
contextActions.clear().catch(console.error);
|
|
95
|
+
// System prompt will be rebuilt by ContextManager on next message
|
|
96
|
+
}
|
|
97
|
+
}, [contextActions]);
|
|
98
|
+
useEffect(() => {
|
|
99
|
+
if (!contextActions)
|
|
100
|
+
return;
|
|
101
|
+
// Create event handlers with dependencies
|
|
102
|
+
const handlers = createContextEventHandlers({
|
|
103
|
+
addMessage,
|
|
104
|
+
setStatusMessage,
|
|
105
|
+
contextActions,
|
|
106
|
+
contextManagerState,
|
|
107
|
+
compressionOccurredRef,
|
|
108
|
+
compressionRetryCountRef,
|
|
109
|
+
waitingForResumeRef,
|
|
110
|
+
});
|
|
111
|
+
// Register handlers and get cleanup function
|
|
112
|
+
const cleanup = registerContextEventHandlers(contextActions, handlers);
|
|
113
|
+
return cleanup;
|
|
114
|
+
}, [contextActions, contextManagerState.usage, contextManagerState, addMessage]);
|
|
115
|
+
useEffect(() => {
|
|
116
|
+
if (serviceContainer) {
|
|
117
|
+
commandRegistry.setServiceContainer(serviceContainer);
|
|
118
|
+
globalThis.__ollmModelSwitchCallback = setCurrentModel;
|
|
119
|
+
// Listen to messageBus events
|
|
120
|
+
const messageBus = serviceContainer.getHookService()?.getMessageBus();
|
|
121
|
+
if (messageBus) {
|
|
122
|
+
// Create session saved handler
|
|
123
|
+
const handlers = createContextEventHandlers({
|
|
124
|
+
addMessage,
|
|
125
|
+
setStatusMessage,
|
|
126
|
+
contextActions,
|
|
127
|
+
contextManagerState,
|
|
128
|
+
compressionOccurredRef,
|
|
129
|
+
compressionRetryCountRef,
|
|
130
|
+
waitingForResumeRef,
|
|
131
|
+
});
|
|
132
|
+
const listenerId = messageBus.on('session_saved', handlers.handleSessionSaved);
|
|
133
|
+
return () => {
|
|
134
|
+
messageBus.off(listenerId);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
// Note: __ollmAddSystemMessage and __ollmClearContext are now registered
|
|
139
|
+
// by AllCallbacksBridge component for better separation of concerns
|
|
140
|
+
}, [
|
|
141
|
+
serviceContainer,
|
|
142
|
+
setCurrentModel,
|
|
143
|
+
addMessage,
|
|
144
|
+
setStatusMessage,
|
|
145
|
+
contextActions,
|
|
146
|
+
contextManagerState,
|
|
147
|
+
]);
|
|
148
|
+
// Listen for session changes from SessionManager
|
|
149
|
+
useEffect(() => {
|
|
150
|
+
try {
|
|
151
|
+
const sessionManager = getSessionManager();
|
|
152
|
+
const cleanup = sessionManager.onSessionChange((sessionId, model, sessionPath) => {
|
|
153
|
+
// Add system message about new session
|
|
154
|
+
addMessage({
|
|
155
|
+
role: 'system',
|
|
156
|
+
content: `🆕 New session started: **${sessionId}**\n\nSession folder: \`${sessionPath}\`\n\nModel: **${model}**`,
|
|
157
|
+
excludeFromContext: true,
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
return cleanup;
|
|
161
|
+
}
|
|
162
|
+
catch (error) {
|
|
163
|
+
console.warn('[ChatContext] SessionManager not initialized yet:', error);
|
|
164
|
+
}
|
|
165
|
+
}, [addMessage]);
|
|
166
|
+
useEffect(() => {
|
|
167
|
+
if (setTheme) {
|
|
168
|
+
commandRegistry.setThemeCallback(setTheme);
|
|
169
|
+
}
|
|
170
|
+
}, [setTheme]);
|
|
171
|
+
const updateMessage = useCallback((id, updates) => {
|
|
172
|
+
setMessages((prev) => prev.map((msg) => (msg.id === id ? { ...msg, ...updates } : msg)));
|
|
173
|
+
}, []);
|
|
174
|
+
const sendMessage = useCallback(async (content) => {
|
|
175
|
+
if (manualContextRequestRef.current) {
|
|
176
|
+
const request = manualContextRequestRef.current;
|
|
177
|
+
const trimmed = content.trim();
|
|
178
|
+
const normalized = trimmed.toLowerCase();
|
|
179
|
+
if (normalized === 'cancel' || normalized === 'back' || normalized === 'exit') {
|
|
180
|
+
manualContextRequestRef.current = null;
|
|
181
|
+
addMessage({
|
|
182
|
+
role: 'system',
|
|
183
|
+
content: 'Manual context entry cancelled.',
|
|
184
|
+
excludeFromContext: true,
|
|
185
|
+
});
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
const value = Number.parseInt(trimmed, 10);
|
|
189
|
+
if (!Number.isFinite(value) || value <= 0) {
|
|
190
|
+
addMessage({
|
|
191
|
+
role: 'system',
|
|
192
|
+
content: 'Invalid context size. Enter a positive integer, or type "cancel" to abort.',
|
|
193
|
+
excludeFromContext: true,
|
|
194
|
+
});
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
const modelEntry = profileManager.getModelEntry(request.modelId);
|
|
198
|
+
const validation = validateManualContext(modelEntry, value);
|
|
199
|
+
if (!validation.valid) {
|
|
200
|
+
addMessage({
|
|
201
|
+
role: 'system',
|
|
202
|
+
content: validation.message ?? 'Context size exceeds the allowable maximum.',
|
|
203
|
+
excludeFromContext: true,
|
|
204
|
+
});
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
manualContextRequestRef.current = null;
|
|
208
|
+
await request.onComplete(value);
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
// Handle resume command when waiting for user approval after summarization
|
|
212
|
+
if (content.trim().toLowerCase() === 'continue' && waitingForResumeRef.current) {
|
|
213
|
+
waitingForResumeRef.current = false;
|
|
214
|
+
addMessage({ role: 'system', content: 'Resuming generation...', excludeFromContext: true });
|
|
215
|
+
const last = lastUserMessageRef.current;
|
|
216
|
+
if (last) {
|
|
217
|
+
// Re-dispatch the last user message asynchronously to avoid recursion
|
|
218
|
+
setTimeout(() => {
|
|
219
|
+
void sendMessage(last);
|
|
220
|
+
}, 0);
|
|
221
|
+
}
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
// TASK 7.2: Analyze message with ContextAnalyzer before sending
|
|
225
|
+
// Get the mode manager and context analyzer
|
|
226
|
+
const modeManager = contextActions.getModeManager();
|
|
227
|
+
// Add user message to UI
|
|
228
|
+
addMessage({
|
|
229
|
+
role: 'user',
|
|
230
|
+
content,
|
|
231
|
+
});
|
|
232
|
+
// Store last user message so we can retry generation after compression
|
|
233
|
+
lastUserMessageRef.current = content;
|
|
234
|
+
// Clear input
|
|
235
|
+
setCurrentInput('');
|
|
236
|
+
// Check for commands
|
|
237
|
+
if (commandRegistry.isCommand(content)) {
|
|
238
|
+
await handleCommand(content, {
|
|
239
|
+
addMessage,
|
|
240
|
+
setLaunchScreenVisible,
|
|
241
|
+
clearChat,
|
|
242
|
+
provider,
|
|
243
|
+
currentModel,
|
|
244
|
+
});
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
// TASK 7.2-7.7: Mode switching logic
|
|
248
|
+
if (modeManager) {
|
|
249
|
+
try {
|
|
250
|
+
// Get current context for analysis
|
|
251
|
+
const currentContext = await contextActions.getContext();
|
|
252
|
+
// Convert context messages to format expected by ContextAnalyzer
|
|
253
|
+
const messagesForAnalysis = currentContext.map((msg) => ({
|
|
254
|
+
role: msg.role,
|
|
255
|
+
parts: [{ type: 'text', text: msg.content || '' }],
|
|
256
|
+
toolCalls: msg.toolCalls,
|
|
257
|
+
}));
|
|
258
|
+
// Analyze conversation context
|
|
259
|
+
const analysis = modeManager['contextAnalyzer'].analyzeConversation(messagesForAnalysis);
|
|
260
|
+
// TASK 7.3: Check if mode should switch based on analysis
|
|
261
|
+
const currentMode = modeManager.getCurrentMode();
|
|
262
|
+
const shouldSwitch = modeManager.shouldSwitchMode(currentMode, analysis);
|
|
263
|
+
if (shouldSwitch) {
|
|
264
|
+
// TASK 7.4: Create transition snapshot if switching to specialized mode
|
|
265
|
+
const specializedModes = ['debugger'];
|
|
266
|
+
if (specializedModes.includes(analysis.mode)) {
|
|
267
|
+
// Create snapshot before switching
|
|
268
|
+
try {
|
|
269
|
+
await contextActions.createSnapshot();
|
|
270
|
+
}
|
|
271
|
+
catch (snapshotError) {
|
|
272
|
+
console.warn('Failed to create transition snapshot:', snapshotError);
|
|
273
|
+
// Continue with mode switch even if snapshot fails
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
// TASK 7.5: Switch mode if confidence threshold met
|
|
277
|
+
modeManager.switchMode(analysis.mode, 'auto', analysis.confidence);
|
|
278
|
+
// TASK 7.6-7.7: Prompt rebuilding is now unified below to ensure consistency
|
|
279
|
+
addMessage({
|
|
280
|
+
role: 'system',
|
|
281
|
+
content: `Switched to ${analysis.mode in MODE_METADATA ? MODE_METADATA[analysis.mode].icon : '🔄'} ${analysis.mode} (${(analysis.confidence * 100).toFixed(0)}%)`,
|
|
282
|
+
excludeFromContext: true,
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
catch (modeError) {
|
|
287
|
+
console.error('Mode switching error:', modeError);
|
|
288
|
+
// Continue with normal flow even if mode switching fails
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
// TASK 7.8: Continue with normal message flow
|
|
292
|
+
setWaitingForResponse(true);
|
|
293
|
+
setStreaming(true);
|
|
294
|
+
// Emit before_agent hook event
|
|
295
|
+
if (serviceContainer) {
|
|
296
|
+
const hookService = serviceContainer.getHookService();
|
|
297
|
+
hookService.emitEvent('before_agent', {
|
|
298
|
+
message: content,
|
|
299
|
+
model: currentModel,
|
|
300
|
+
timestamp: new Date().toISOString(),
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
// Stage 1: Check tool support (model capability check)
|
|
304
|
+
const supportsTools = modelSupportsTools(currentModel);
|
|
305
|
+
let toolSchemas;
|
|
306
|
+
if (supportsTools) {
|
|
307
|
+
// Stage 2: Get central tool registry from service container
|
|
308
|
+
const toolRegistry = serviceContainer?.getToolRegistry();
|
|
309
|
+
if (toolRegistry) {
|
|
310
|
+
const promptRegistry = new PromptRegistry();
|
|
311
|
+
const manager = contextActions.getManager();
|
|
312
|
+
if (manager && provider) {
|
|
313
|
+
const modeManager = contextActions.getModeManager();
|
|
314
|
+
const promptsSnapshotManager = contextActions.getPromptsSnapshotManager();
|
|
315
|
+
// Register dynamic tools only if not already registered
|
|
316
|
+
// These tools require runtime dependencies that aren't available at startup
|
|
317
|
+
if (!toolRegistry.get('trigger_hot_swap')) {
|
|
318
|
+
toolRegistry.register(new HotSwapTool(manager, promptRegistry, provider, currentModel, modeManager || undefined, promptsSnapshotManager || undefined));
|
|
319
|
+
}
|
|
320
|
+
if (!toolRegistry.get('memory_dump')) {
|
|
321
|
+
toolRegistry.register(new MemoryDumpTool(modeManager || undefined));
|
|
322
|
+
}
|
|
323
|
+
const toolNames = toolRegistry.list().map((t) => t.name);
|
|
324
|
+
manager.emit('active-tools-updated', toolNames);
|
|
325
|
+
}
|
|
326
|
+
// Get modeManager for combined filtering
|
|
327
|
+
const modeManager = contextActions.getModeManager();
|
|
328
|
+
if (modeManager) {
|
|
329
|
+
const currentMode = modeManager.getCurrentMode();
|
|
330
|
+
// Use combined filtering method (user prefs + mode permissions in single pass)
|
|
331
|
+
toolSchemas = toolRegistry.getFunctionSchemasForMode(currentMode, modeManager);
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
// FALLBACK: If modeManager is not initialized yet, use all tools without mode filtering
|
|
335
|
+
// This ensures tools are available even if mode manager isn't ready
|
|
336
|
+
console.warn('[ChatContext] modeManager not initialized, using all tools without mode filtering');
|
|
337
|
+
toolSchemas = toolRegistry.getFunctionSchemas();
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
// Service container not ready, no tools available
|
|
342
|
+
toolSchemas = [];
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
// Build system prompt using utility function
|
|
346
|
+
const basePrompt = contextActions.getSystemPrompt();
|
|
347
|
+
const usageForTier = contextActions.getUsage();
|
|
348
|
+
const coreManager = contextActions.getManager?.();
|
|
349
|
+
const coreMode = coreManager?.getMode?.() ?? contextActions.getCurrentMode?.() ?? 'assistant';
|
|
350
|
+
const effectiveTier = resolveTierForSize(usageForTier.maxTokens);
|
|
351
|
+
const tierPrompt = loadTierPromptWithFallback(toOperationalMode(coreMode), effectiveTier);
|
|
352
|
+
const modelProfile = profileManager.findProfile(currentModel);
|
|
353
|
+
const systemPrompt = buildSystemPrompt({
|
|
354
|
+
basePrompt,
|
|
355
|
+
tierPrompt,
|
|
356
|
+
modelProfile,
|
|
357
|
+
supportsTools,
|
|
358
|
+
injectFocusedFiles: injectFocusedFilesIntoPrompt,
|
|
359
|
+
});
|
|
360
|
+
// 1. Initial user message addition to context manager
|
|
361
|
+
if (contextActions) {
|
|
362
|
+
await contextActions.addMessage({ role: 'user', content });
|
|
363
|
+
}
|
|
364
|
+
await recordSessionMessage('user', content);
|
|
365
|
+
// Assistant message ID for this turn
|
|
366
|
+
const assistantMsg = addMessage({
|
|
367
|
+
role: 'assistant',
|
|
368
|
+
content: '',
|
|
369
|
+
expanded: true, // Start expanded to show reasoning as it streams
|
|
370
|
+
});
|
|
371
|
+
const currentAssistantMsgId = assistantMsg.id;
|
|
372
|
+
assistantMessageIdRef.current = currentAssistantMsgId;
|
|
373
|
+
// Run agent loop
|
|
374
|
+
const loopResult = await runAgentLoop({
|
|
375
|
+
addMessage,
|
|
376
|
+
setMessages,
|
|
377
|
+
contextActions,
|
|
378
|
+
sendToLLM,
|
|
379
|
+
cancelRequest,
|
|
380
|
+
currentModel,
|
|
381
|
+
provider,
|
|
382
|
+
serviceContainer,
|
|
383
|
+
toolSchemas,
|
|
384
|
+
systemPrompt,
|
|
385
|
+
recordSessionMessage,
|
|
386
|
+
assistantMessageIdRef,
|
|
387
|
+
compressionOccurredRef,
|
|
388
|
+
compressionRetryCountRef,
|
|
389
|
+
lastUserMessageRef,
|
|
390
|
+
inflightTokenAccumulatorRef,
|
|
391
|
+
inflightFlushTimerRef,
|
|
392
|
+
modeManager,
|
|
393
|
+
});
|
|
394
|
+
setStreaming(false);
|
|
395
|
+
setWaitingForResponse(false);
|
|
396
|
+
assistantMessageIdRef.current = null;
|
|
397
|
+
// Emit after_agent hook event
|
|
398
|
+
if (serviceContainer) {
|
|
399
|
+
const hookService = serviceContainer.getHookService();
|
|
400
|
+
hookService.emitEvent('after_agent', {
|
|
401
|
+
message: content,
|
|
402
|
+
model: currentModel,
|
|
403
|
+
turns: loopResult.turns,
|
|
404
|
+
timestamp: new Date().toISOString(),
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
}, [
|
|
408
|
+
addMessage,
|
|
409
|
+
setMessages,
|
|
410
|
+
sendToLLM,
|
|
411
|
+
setLaunchScreenVisible,
|
|
412
|
+
contextActions,
|
|
413
|
+
provider,
|
|
414
|
+
currentModel,
|
|
415
|
+
clearChat,
|
|
416
|
+
modelSupportsTools,
|
|
417
|
+
serviceContainer,
|
|
418
|
+
cancelRequest,
|
|
419
|
+
injectFocusedFilesIntoPrompt,
|
|
420
|
+
recordSessionMessage,
|
|
421
|
+
]);
|
|
422
|
+
const cancelGeneration = useCallback(() => {
|
|
423
|
+
cancelRequest();
|
|
424
|
+
setStreaming(false);
|
|
425
|
+
setWaitingForResponse(false);
|
|
426
|
+
assistantMessageIdRef.current = null;
|
|
427
|
+
if (_onCancelGeneration) {
|
|
428
|
+
_onCancelGeneration();
|
|
429
|
+
}
|
|
430
|
+
}, [_onCancelGeneration, cancelRequest]);
|
|
431
|
+
const editMessage = useCallback((id, content) => {
|
|
432
|
+
updateMessage(id, { content, editing: false });
|
|
433
|
+
}, [updateMessage]);
|
|
434
|
+
const value = {
|
|
435
|
+
state: {
|
|
436
|
+
messages,
|
|
437
|
+
streaming,
|
|
438
|
+
waitingForResponse,
|
|
439
|
+
currentInput,
|
|
440
|
+
inputMode,
|
|
441
|
+
menuState,
|
|
442
|
+
statusMessage,
|
|
443
|
+
},
|
|
444
|
+
sendMessage,
|
|
445
|
+
cancelGeneration,
|
|
446
|
+
clearChat,
|
|
447
|
+
editMessage,
|
|
448
|
+
setCurrentInput,
|
|
449
|
+
addMessage,
|
|
450
|
+
updateMessage,
|
|
451
|
+
setStreaming,
|
|
452
|
+
setWaitingForResponse,
|
|
453
|
+
setStatusMessage,
|
|
454
|
+
contextUsage,
|
|
455
|
+
setInputMode,
|
|
456
|
+
setMenuState: (updates) => setMenuState((prev) => ({ ...prev, ...updates })),
|
|
457
|
+
executeMenuOption: async () => {
|
|
458
|
+
if (!menuState.active || !menuState.options[menuState.selectedIndex])
|
|
459
|
+
return;
|
|
460
|
+
const option = menuState.options[menuState.selectedIndex];
|
|
461
|
+
setInputMode('text');
|
|
462
|
+
setMenuState((prev) => ({ ...prev, active: false }));
|
|
463
|
+
await option.action();
|
|
464
|
+
},
|
|
465
|
+
navigateMenu: (direction) => {
|
|
466
|
+
setMenuState((prev) => {
|
|
467
|
+
const count = prev.options.length;
|
|
468
|
+
if (count === 0)
|
|
469
|
+
return prev;
|
|
470
|
+
let nextIndex = prev.selectedIndex;
|
|
471
|
+
if (direction === 'up') {
|
|
472
|
+
nextIndex = (prev.selectedIndex - 1 + count) % count;
|
|
473
|
+
}
|
|
474
|
+
else {
|
|
475
|
+
nextIndex = (prev.selectedIndex + 1) % count;
|
|
476
|
+
}
|
|
477
|
+
return { ...prev, selectedIndex: nextIndex };
|
|
478
|
+
});
|
|
479
|
+
},
|
|
480
|
+
activateMenu: (options, messageId) => {
|
|
481
|
+
const orderedOptions = [
|
|
482
|
+
...options.filter((option) => option.id === 'opt-back'),
|
|
483
|
+
...options.filter((option) => option.id === 'opt-exit'),
|
|
484
|
+
...options.filter((option) => option.id !== 'opt-back' && option.id !== 'opt-exit'),
|
|
485
|
+
];
|
|
486
|
+
setMenuState({
|
|
487
|
+
active: true,
|
|
488
|
+
options: orderedOptions,
|
|
489
|
+
selectedIndex: 0,
|
|
490
|
+
messageId,
|
|
491
|
+
});
|
|
492
|
+
setInputMode('menu');
|
|
493
|
+
},
|
|
494
|
+
requestManualContextInput: (modelId, onComplete) => {
|
|
495
|
+
manualContextRequestRef.current = { modelId, onComplete };
|
|
496
|
+
setMenuState((prev) => ({ ...prev, active: false }));
|
|
497
|
+
setInputMode('text');
|
|
498
|
+
},
|
|
499
|
+
// Scroll Logic
|
|
500
|
+
selectedLineIndex,
|
|
501
|
+
setSelectedLineIndex,
|
|
502
|
+
scrollOffset: 0, // Placeholder, see below implementation
|
|
503
|
+
scrollUp: () => { },
|
|
504
|
+
scrollDown: () => { },
|
|
505
|
+
};
|
|
506
|
+
// State for Scroll
|
|
507
|
+
const [scrollOffset, setScrollOffset] = useState(0);
|
|
508
|
+
// Reset scroll when messages change (new message usually means scroll to bottom)
|
|
509
|
+
// Standard behavior: auto-scroll to bottom if at bottom.
|
|
510
|
+
useEffect(() => {
|
|
511
|
+
// If we are streaming (assistant typing), we want to stay at 0.
|
|
512
|
+
if (streaming)
|
|
513
|
+
setScrollOffset(0);
|
|
514
|
+
}, [messages.length, streaming]);
|
|
515
|
+
const contextValue = {
|
|
516
|
+
...value,
|
|
517
|
+
selectedLineIndex,
|
|
518
|
+
setSelectedLineIndex,
|
|
519
|
+
scrollOffset,
|
|
520
|
+
scrollUp: useCallback(() => {
|
|
521
|
+
setSelectedLineIndex((prev) => Math.max(0, prev - 1));
|
|
522
|
+
}, []),
|
|
523
|
+
scrollDown: useCallback(() => {
|
|
524
|
+
setSelectedLineIndex((prev) => prev + 1);
|
|
525
|
+
}, []),
|
|
526
|
+
};
|
|
527
|
+
return _jsx(ChatContext.Provider, { value: contextValue, children: children });
|
|
528
|
+
}
|
|
529
|
+
export function useChat() {
|
|
530
|
+
const context = useContext(ChatContext);
|
|
531
|
+
if (!context) {
|
|
532
|
+
throw new Error('useChat must be used within a ChatProvider');
|
|
533
|
+
}
|
|
534
|
+
return context;
|
|
535
|
+
}
|
|
536
|
+
//# sourceMappingURL=ChatContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatContext.js","sourceRoot":"","sources":["../../../src/features/context/ChatContext.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEnG,OAAO,EACL,WAAW,EACX,cAAc,EACd,aAAa,EACb,cAAc,GAEf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAA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