@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,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for chat functionality
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Tool call information for UI
|
|
6
|
+
*/
|
|
7
|
+
export interface ToolCall {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
arguments: Record<string, unknown>;
|
|
11
|
+
result?: string;
|
|
12
|
+
duration?: number;
|
|
13
|
+
status: 'pending' | 'success' | 'error';
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Reasoning block from model thinking process
|
|
17
|
+
*/
|
|
18
|
+
export interface ReasoningBlock {
|
|
19
|
+
content: string;
|
|
20
|
+
tokenCount: number;
|
|
21
|
+
duration: number;
|
|
22
|
+
complete: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Inference metrics for performance tracking
|
|
26
|
+
*/
|
|
27
|
+
export interface InferenceMetrics {
|
|
28
|
+
promptTokens: number;
|
|
29
|
+
completionTokens: number;
|
|
30
|
+
totalDuration: number;
|
|
31
|
+
promptDuration: number;
|
|
32
|
+
evalDuration: number;
|
|
33
|
+
tokensPerSecond: number;
|
|
34
|
+
timeToFirstToken: number;
|
|
35
|
+
totalSeconds: number;
|
|
36
|
+
loadDuration?: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Chat message
|
|
40
|
+
*/
|
|
41
|
+
export interface Message {
|
|
42
|
+
id: string;
|
|
43
|
+
role: 'user' | 'assistant' | 'system' | 'tool';
|
|
44
|
+
content: string;
|
|
45
|
+
timestamp: Date;
|
|
46
|
+
toolCalls?: ToolCall[];
|
|
47
|
+
reasoning?: ReasoningBlock;
|
|
48
|
+
metrics?: InferenceMetrics;
|
|
49
|
+
expanded?: boolean;
|
|
50
|
+
editing?: boolean;
|
|
51
|
+
excludeFromContext?: boolean;
|
|
52
|
+
toolCallId?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Menu option for interactive selection
|
|
56
|
+
*/
|
|
57
|
+
export interface MenuOption {
|
|
58
|
+
id: string;
|
|
59
|
+
label: string;
|
|
60
|
+
action: () => void | Promise<void>;
|
|
61
|
+
value?: unknown;
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Menu state for interactive prompts
|
|
66
|
+
*/
|
|
67
|
+
export interface MenuState {
|
|
68
|
+
active: boolean;
|
|
69
|
+
options: MenuOption[];
|
|
70
|
+
selectedIndex: number;
|
|
71
|
+
messageId?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Chat state
|
|
75
|
+
*/
|
|
76
|
+
export interface ChatState {
|
|
77
|
+
messages: Message[];
|
|
78
|
+
streaming: boolean;
|
|
79
|
+
waitingForResponse: boolean;
|
|
80
|
+
currentInput: string;
|
|
81
|
+
inputMode: 'text' | 'menu';
|
|
82
|
+
menuState: MenuState;
|
|
83
|
+
statusMessage?: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Context usage statistics
|
|
87
|
+
*/
|
|
88
|
+
export interface ContextUsage {
|
|
89
|
+
currentTokens: number;
|
|
90
|
+
maxTokens: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Chat context value exposed to consumers
|
|
94
|
+
*/
|
|
95
|
+
export interface ChatContextValue {
|
|
96
|
+
state: ChatState;
|
|
97
|
+
/** Send a message to the assistant */
|
|
98
|
+
sendMessage: (content: string) => Promise<void>;
|
|
99
|
+
/** Cancel the current generation */
|
|
100
|
+
cancelGeneration: () => void;
|
|
101
|
+
/** Clear all messages */
|
|
102
|
+
clearChat: () => void;
|
|
103
|
+
/** Edit a message */
|
|
104
|
+
editMessage: (id: string, content: string) => void;
|
|
105
|
+
/** Set the current input value */
|
|
106
|
+
setCurrentInput: (input: string) => void;
|
|
107
|
+
/** Add a message to the chat */
|
|
108
|
+
addMessage: (message: Omit<Message, 'id' | 'timestamp'>) => void;
|
|
109
|
+
/** Update a message */
|
|
110
|
+
updateMessage: (id: string, updates: Partial<Message>) => void;
|
|
111
|
+
/** Set streaming state */
|
|
112
|
+
setStreaming: (streaming: boolean) => void;
|
|
113
|
+
/** Set waiting for response state */
|
|
114
|
+
setWaitingForResponse: (waiting: boolean) => void;
|
|
115
|
+
/** Set a sticky status message */
|
|
116
|
+
setStatusMessage: (message: string | undefined) => void;
|
|
117
|
+
/** Current context usage stats */
|
|
118
|
+
contextUsage: ContextUsage;
|
|
119
|
+
/** Set input mode */
|
|
120
|
+
setInputMode: (mode: 'text' | 'menu') => void;
|
|
121
|
+
/** Update menu state */
|
|
122
|
+
setMenuState: (state: Partial<MenuState>) => void;
|
|
123
|
+
/** Execute selected menu option */
|
|
124
|
+
executeMenuOption: () => Promise<void>;
|
|
125
|
+
/** Navigate menu */
|
|
126
|
+
navigateMenu: (direction: 'up' | 'down') => void;
|
|
127
|
+
/** Activate menu for a message */
|
|
128
|
+
activateMenu: (options: MenuOption[], messageId?: string) => void;
|
|
129
|
+
/** Request manual context input */
|
|
130
|
+
requestManualContextInput: (modelId: string, onComplete: (value: number) => void | Promise<void>) => void;
|
|
131
|
+
/** Scroll State */
|
|
132
|
+
selectedLineIndex: number;
|
|
133
|
+
setSelectedLineIndex: (index: number | ((prev: number) => number)) => void;
|
|
134
|
+
scrollOffset: number;
|
|
135
|
+
scrollUp: () => void;
|
|
136
|
+
scrollDown: () => void;
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/chat/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,M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AAM,KAAK,MAAM,CAAC,KAAK,IAAI,CAAC;IAC3E,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/features/chat/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for prompt management and tier resolution
|
|
3
|
+
*/
|
|
4
|
+
import { ContextTier, OperationalMode } from '@ollm/core';
|
|
5
|
+
/**
|
|
6
|
+
* Resolve context tier based on size
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveTierForSize(size: number): ContextTier;
|
|
9
|
+
/**
|
|
10
|
+
* Convert string mode to OperationalMode enum
|
|
11
|
+
*/
|
|
12
|
+
export declare function toOperationalMode(mode: string): OperationalMode;
|
|
13
|
+
/**
|
|
14
|
+
* Load tier-specific prompt with fallback to file system
|
|
15
|
+
*/
|
|
16
|
+
export declare function loadTierPromptWithFallback(mode: OperationalMode, tier: ContextTier): string;
|
|
17
|
+
/**
|
|
18
|
+
* Strip a specific section from source text
|
|
19
|
+
*/
|
|
20
|
+
export declare function stripSection(source: string, section: string): string;
|
|
21
|
+
//# sourceMappingURL=promptUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promptUtils.d.ts","sourceRoot":"","sources":["../../../../src/features/chat/utils/promptUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAqB,MAAM,YAAY,CAAC;AAM7E;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAM5D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAY/D;AAqBD;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CA4C3F;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAUpE"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for prompt management and tier resolution
|
|
3
|
+
*/
|
|
4
|
+
import { existsSync, readFileSync } from 'fs';
|
|
5
|
+
import path from 'path';
|
|
6
|
+
import { ContextTier, OperationalMode, TieredPromptStore } from '@ollm/core';
|
|
7
|
+
// Initialize tiered prompt store
|
|
8
|
+
const tieredPromptStore = new TieredPromptStore();
|
|
9
|
+
tieredPromptStore.load();
|
|
10
|
+
/**
|
|
11
|
+
* Resolve context tier based on size
|
|
12
|
+
*/
|
|
13
|
+
export function resolveTierForSize(size) {
|
|
14
|
+
if (size < 8192)
|
|
15
|
+
return ContextTier.TIER_1_MINIMAL;
|
|
16
|
+
if (size < 16384)
|
|
17
|
+
return ContextTier.TIER_2_BASIC;
|
|
18
|
+
if (size < 32768)
|
|
19
|
+
return ContextTier.TIER_3_STANDARD;
|
|
20
|
+
if (size < 65536)
|
|
21
|
+
return ContextTier.TIER_4_PREMIUM;
|
|
22
|
+
return ContextTier.TIER_5_ULTRA;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Convert string mode to OperationalMode enum
|
|
26
|
+
*/
|
|
27
|
+
export function toOperationalMode(mode) {
|
|
28
|
+
switch (mode) {
|
|
29
|
+
case 'assistant':
|
|
30
|
+
return OperationalMode.ASSISTANT;
|
|
31
|
+
case 'planning':
|
|
32
|
+
return OperationalMode.PLANNING;
|
|
33
|
+
case 'debugger':
|
|
34
|
+
return OperationalMode.DEBUGGER;
|
|
35
|
+
case 'developer':
|
|
36
|
+
default:
|
|
37
|
+
return OperationalMode.DEVELOPER;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Convert tier to key string for file lookup
|
|
42
|
+
*/
|
|
43
|
+
function tierToKey(tier) {
|
|
44
|
+
switch (tier) {
|
|
45
|
+
case ContextTier.TIER_1_MINIMAL:
|
|
46
|
+
return 'tier1';
|
|
47
|
+
case ContextTier.TIER_2_BASIC:
|
|
48
|
+
return 'tier2';
|
|
49
|
+
case ContextTier.TIER_3_STANDARD:
|
|
50
|
+
return 'tier3';
|
|
51
|
+
case ContextTier.TIER_4_PREMIUM:
|
|
52
|
+
case ContextTier.TIER_5_ULTRA:
|
|
53
|
+
return 'tier4';
|
|
54
|
+
default:
|
|
55
|
+
return 'tier3';
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Load tier-specific prompt with fallback to file system
|
|
60
|
+
*/
|
|
61
|
+
export function loadTierPromptWithFallback(mode, tier) {
|
|
62
|
+
const fromStore = tieredPromptStore.get(mode, tier);
|
|
63
|
+
if (fromStore) {
|
|
64
|
+
return fromStore;
|
|
65
|
+
}
|
|
66
|
+
const tierKey = tierToKey(tier);
|
|
67
|
+
const candidates = [
|
|
68
|
+
path.join(process.cwd(), 'packages', 'core', 'dist', 'prompts', 'templates', mode, `${tierKey}.txt`),
|
|
69
|
+
path.join(process.cwd(), 'packages', 'core', 'src', 'prompts', 'templates', mode, `${tierKey}.txt`),
|
|
70
|
+
];
|
|
71
|
+
for (const candidate of candidates) {
|
|
72
|
+
try {
|
|
73
|
+
if (existsSync(candidate)) {
|
|
74
|
+
const content = readFileSync(candidate, 'utf8').trim();
|
|
75
|
+
if (content) {
|
|
76
|
+
return content;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (_e) {
|
|
81
|
+
// ignore and keep trying
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return '';
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Strip a specific section from source text
|
|
88
|
+
*/
|
|
89
|
+
export function stripSection(source, section) {
|
|
90
|
+
if (!section)
|
|
91
|
+
return source;
|
|
92
|
+
const trimmed = source.trim();
|
|
93
|
+
const target = section.trim();
|
|
94
|
+
if (!target)
|
|
95
|
+
return source;
|
|
96
|
+
const index = trimmed.indexOf(target);
|
|
97
|
+
if (index === -1)
|
|
98
|
+
return source;
|
|
99
|
+
const before = trimmed.slice(0, index).trim();
|
|
100
|
+
const after = trimmed.slice(index + target.length).trim();
|
|
101
|
+
return [before, after].filter(Boolean).join('\n\n').trim();
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=promptUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promptUtils.js","sourceRoot":"","sources":["../../../../src/features/chat/utils/promptUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE7E,iCAAiC;AACjC,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,EAAE,CAAC;AAClD,iBAAiB,CAAC,IAAI,EAAE,CAAC;AAEzB;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,IAAI,IAAI,GAAG,IAAI;QAAE,OAAO,WAAW,CAAC,cAAc,CAAC;IACnD,IAAI,IAAI,GAAG,KAAK;QAAE,OAAO,WAAW,CAAC,YAAY,CAAC;IAClD,IAAI,IAAI,GAAG,KAAK;QAAE,OAAO,WAAW,CAAC,eAAe,CAAC;IACrD,IAAI,IAAI,GAAG,KAAK;QAAE,OAAO,WAAW,CAAC,cAAc,CAAC;IACpD,OAAO,WAAW,CAAC,YAAY,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,QAAQ,IAAI,EAAE,CAAC;QACb,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+
interface ActiveContextState {
|
|
4
|
+
activeSkills: string[];
|
|
5
|
+
activeTools: string[];
|
|
6
|
+
activeHooks: string[];
|
|
7
|
+
activeMcpServers: string[];
|
|
8
|
+
activePrompts: string[];
|
|
9
|
+
currentPersona: string;
|
|
10
|
+
contextStrategy: 'Standard' | 'Hot Swap';
|
|
11
|
+
currentMode: ModeType;
|
|
12
|
+
allowedTools: string[];
|
|
13
|
+
modeIcon: string;
|
|
14
|
+
modeColor: string;
|
|
15
|
+
currentModeConfidence: number;
|
|
16
|
+
modeDuration: number;
|
|
17
|
+
suggestedModes: Array<{
|
|
18
|
+
mode: ModeType;
|
|
19
|
+
icon: string;
|
|
20
|
+
confidence: number;
|
|
21
|
+
reason: string;
|
|
22
|
+
}>;
|
|
23
|
+
}
|
|
24
|
+
interface ActiveContextContextType extends ActiveContextState {
|
|
25
|
+
updateContextState: (newState: Partial<ActiveContextState>) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const ActiveContextProvider: React.FC<{
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const useActiveContext: () => ActiveContextContextType;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=ActiveContextState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActiveContextState.d.ts","sourceRoot":"","sources":["../../../src/features/context/ActiveContextState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAkD,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzF,OAAO,EAAE,QAAQ,EAAoC,MAAM,qBAAqB,CAAC;AAOjF,UAAU,kBAAkB;IAC1B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,UAAU,GAAG,UAAU,CAAC;IACzC,WAAW,EAAE,QAAQ,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAElB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,KAAK,CAAC;QACpB,IAAI,EAAE,QAAQ,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;CACJ;AAED,UAAU,wBAAyB,SAAQ,kBAAkB;IAC3D,kBAAkB,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;CACrE;AA2BD,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,CAqSnE,CAAC;AAEF,eAAO,MAAM,gBAAgB,gCAM5B,CAAC"}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext, useState, useEffect } from 'react';
|
|
3
|
+
import { MODE_METADATA } from '@ollm/ollm-cli-core';
|
|
4
|
+
import { useContextManager } from './ContextManagerContext.js';
|
|
5
|
+
import { useHooks } from '../../ui/contexts/HooksContext.js';
|
|
6
|
+
import { useMCP } from '../../ui/contexts/MCPContext.js';
|
|
7
|
+
import { useTools } from '../../ui/contexts/ToolsContext.js';
|
|
8
|
+
// ModeChangedEvent interface removed as it was unused and replaced by ModeTransitionPayload locally
|
|
9
|
+
/**
|
|
10
|
+
* Get mode metadata (icon, color, persona)
|
|
11
|
+
*/
|
|
12
|
+
function getModeMetadata(mode) {
|
|
13
|
+
const meta = MODE_METADATA[mode] ||
|
|
14
|
+
MODE_METADATA.assistant;
|
|
15
|
+
return {
|
|
16
|
+
icon: meta.icon,
|
|
17
|
+
color: meta.color,
|
|
18
|
+
persona: meta.persona,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
const ActiveContextContext = createContext(undefined);
|
|
22
|
+
export const ActiveContextProvider = ({ children }) => {
|
|
23
|
+
// Use the correct hook which returns { state, actions }
|
|
24
|
+
const { state: contextState, actions } = useContextManager();
|
|
25
|
+
// Real-time state from other providers
|
|
26
|
+
// We use optional chaining access via hooks because we are inside properly nested providers in App.tsx
|
|
27
|
+
// but we want to be safe if used in isolation.
|
|
28
|
+
const { state: mcpState } = useMCP();
|
|
29
|
+
const { state: hooksState } = useHooks();
|
|
30
|
+
const { state: toolsState } = useTools();
|
|
31
|
+
const [state, setState] = useState({
|
|
32
|
+
activeSkills: [],
|
|
33
|
+
activeTools: [],
|
|
34
|
+
activeHooks: [],
|
|
35
|
+
activeMcpServers: [],
|
|
36
|
+
activePrompts: [],
|
|
37
|
+
currentPersona: 'Helpful AI Assistant',
|
|
38
|
+
contextStrategy: 'Standard',
|
|
39
|
+
currentMode: 'assistant',
|
|
40
|
+
allowedTools: [],
|
|
41
|
+
modeIcon: '💬',
|
|
42
|
+
modeColor: 'blue',
|
|
43
|
+
currentModeConfidence: 1.0,
|
|
44
|
+
modeDuration: 0,
|
|
45
|
+
suggestedModes: [],
|
|
46
|
+
});
|
|
47
|
+
const [modeStartTime, setModeStartTime] = useState(new Date());
|
|
48
|
+
// Sync with Providers
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
// Update MCP Servers
|
|
51
|
+
// mcpState.servers is a Map, so we need to convert to array first
|
|
52
|
+
let connectedServers = Array.from(mcpState.servers.values())
|
|
53
|
+
.filter((s) => s.status === 'connected')
|
|
54
|
+
.map((s) => s.name);
|
|
55
|
+
// Filter MCP servers by mode permission (mcp:*). Hide MCP UI if not allowed in current mode
|
|
56
|
+
try {
|
|
57
|
+
const modeManagerForMcp = actions.getModeManager?.();
|
|
58
|
+
const modeForMcp = modeManagerForMcp ? modeManagerForMcp.getCurrentMode() : undefined;
|
|
59
|
+
if (modeManagerForMcp && modeForMcp) {
|
|
60
|
+
const mcpAllowed = modeManagerForMcp.isToolAllowed('mcp:probe', modeForMcp);
|
|
61
|
+
if (!mcpAllowed) {
|
|
62
|
+
connectedServers = [];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
catch (_e) {
|
|
67
|
+
// ignore and keep servers as-is
|
|
68
|
+
}
|
|
69
|
+
// Update Hooks
|
|
70
|
+
// hooksState uses enabledHooks which is a Set of IDs
|
|
71
|
+
const activeHooks = Array.from(hooksState.enabledHooks || []);
|
|
72
|
+
// Update Tools (enabled tools) but filter by current mode permissions
|
|
73
|
+
const reportedActiveTools = Array.from(toolsState.enabledTools || []);
|
|
74
|
+
const modeManager = actions.getModeManager?.();
|
|
75
|
+
const currentMode = modeManager ? modeManager.getCurrentMode() : undefined;
|
|
76
|
+
const filteredActiveTools = reportedActiveTools.filter((toolName) => {
|
|
77
|
+
if (!modeManager || !currentMode)
|
|
78
|
+
return true;
|
|
79
|
+
try {
|
|
80
|
+
return modeManager.isToolAllowed(toolName, currentMode);
|
|
81
|
+
}
|
|
82
|
+
catch (_e) {
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
setState((prev) => {
|
|
87
|
+
// Only update if changed to avoid render loops
|
|
88
|
+
if (JSON.stringify(prev.activeMcpServers) === JSON.stringify(connectedServers) &&
|
|
89
|
+
JSON.stringify(prev.activeHooks) === JSON.stringify(activeHooks) &&
|
|
90
|
+
JSON.stringify(prev.activeTools) === JSON.stringify(filteredActiveTools)) {
|
|
91
|
+
return prev;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
...prev,
|
|
95
|
+
activeMcpServers: connectedServers,
|
|
96
|
+
activeHooks: activeHooks,
|
|
97
|
+
activeTools: filteredActiveTools,
|
|
98
|
+
};
|
|
99
|
+
});
|
|
100
|
+
}, [mcpState.servers, hooksState.enabledHooks, toolsState.enabledTools, actions]);
|
|
101
|
+
// Update mode duration every second
|
|
102
|
+
useEffect(() => {
|
|
103
|
+
const interval = setInterval(() => {
|
|
104
|
+
const now = new Date();
|
|
105
|
+
const duration = now.getTime() - modeStartTime.getTime();
|
|
106
|
+
setState((prev) => ({ ...prev, modeDuration: duration }));
|
|
107
|
+
}, 1000);
|
|
108
|
+
return () => clearInterval(interval);
|
|
109
|
+
}, [modeStartTime]);
|
|
110
|
+
// Initial Sync with ModeManager
|
|
111
|
+
useEffect(() => {
|
|
112
|
+
// Only sync if context manager is active
|
|
113
|
+
if (!contextState.active)
|
|
114
|
+
return;
|
|
115
|
+
const modeManager = actions.getModeManager();
|
|
116
|
+
if (modeManager) {
|
|
117
|
+
const mode = modeManager.getCurrentMode();
|
|
118
|
+
// Apply initial metadata
|
|
119
|
+
const metadata = getModeMetadata(mode);
|
|
120
|
+
const allowedTools = modeManager.getAllowedTools(mode);
|
|
121
|
+
setState((prev) => ({
|
|
122
|
+
...prev,
|
|
123
|
+
currentMode: mode,
|
|
124
|
+
currentPersona: metadata.persona,
|
|
125
|
+
modeIcon: metadata.icon,
|
|
126
|
+
modeColor: metadata.color,
|
|
127
|
+
allowedTools,
|
|
128
|
+
}));
|
|
129
|
+
}
|
|
130
|
+
}, [contextState.active, actions]); // Run whenever active state changes
|
|
131
|
+
useEffect(() => {
|
|
132
|
+
// Only attach listeners if context manager is active
|
|
133
|
+
if (!contextState.active)
|
|
134
|
+
return;
|
|
135
|
+
// Listen for events from ContextManager
|
|
136
|
+
const handleClear = () => {
|
|
137
|
+
setState((prev) => ({
|
|
138
|
+
...prev,
|
|
139
|
+
activeSkills: [],
|
|
140
|
+
activeTools: [],
|
|
141
|
+
activeHooks: [],
|
|
142
|
+
activeMcpServers: [],
|
|
143
|
+
activePrompts: [],
|
|
144
|
+
contextStrategy: 'Standard',
|
|
145
|
+
suggestedModes: [],
|
|
146
|
+
}));
|
|
147
|
+
};
|
|
148
|
+
const handleModeTransition = async (data) => {
|
|
149
|
+
// Cast safely and validate
|
|
150
|
+
const event = data;
|
|
151
|
+
if (!event || !event.to)
|
|
152
|
+
return;
|
|
153
|
+
const metadata = getModeMetadata(event.to);
|
|
154
|
+
// Get allowed tools from ModeManager
|
|
155
|
+
const modeManager = actions.getModeManager();
|
|
156
|
+
const allowedTools = modeManager ? modeManager.getAllowedTools(event.to) : [];
|
|
157
|
+
// Get suggested modes from ContextAnalyzer
|
|
158
|
+
// Helper function to get messages safely
|
|
159
|
+
let messages = [];
|
|
160
|
+
try {
|
|
161
|
+
if (actions.getContext) {
|
|
162
|
+
const contextMessages = await actions.getContext();
|
|
163
|
+
// Convert to provider messages expected by ContextAnalyzer
|
|
164
|
+
messages = contextMessages.map((msg) => ({
|
|
165
|
+
role: msg.role,
|
|
166
|
+
parts: [{ type: 'text', text: msg.content || '' }],
|
|
167
|
+
}));
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
catch (err) {
|
|
171
|
+
console.warn('Failed to get context for analysis:', err);
|
|
172
|
+
}
|
|
173
|
+
const contextAnalyzer = modeManager?.getContextAnalyzer();
|
|
174
|
+
const suggestedModes = contextAnalyzer && messages.length > 0
|
|
175
|
+
? contextAnalyzer.getSuggestedModes(messages, event.to, 3)
|
|
176
|
+
: [];
|
|
177
|
+
// Reset mode start time
|
|
178
|
+
setModeStartTime(new Date(event.timestamp || new Date()));
|
|
179
|
+
setState((prev) => ({
|
|
180
|
+
...prev,
|
|
181
|
+
currentMode: event.to,
|
|
182
|
+
currentPersona: metadata.persona,
|
|
183
|
+
modeIcon: metadata.icon,
|
|
184
|
+
modeColor: metadata.color,
|
|
185
|
+
allowedTools,
|
|
186
|
+
currentModeConfidence: event.confidence,
|
|
187
|
+
modeDuration: 0, // Reset duration on mode change
|
|
188
|
+
suggestedModes,
|
|
189
|
+
}));
|
|
190
|
+
};
|
|
191
|
+
// Assuming ContextManagerContext exposes 'on' which wires to the internal emitter
|
|
192
|
+
if (actions.on) {
|
|
193
|
+
actions.on('active-skills-updated', (data) => {
|
|
194
|
+
const d = data;
|
|
195
|
+
setState((prev) => ({
|
|
196
|
+
...prev,
|
|
197
|
+
activeSkills: d.skills || [],
|
|
198
|
+
contextStrategy: 'Hot Swap',
|
|
199
|
+
}));
|
|
200
|
+
});
|
|
201
|
+
actions.on('active-tools-updated', (data) => {
|
|
202
|
+
const d = data;
|
|
203
|
+
const reported = d.tools || [];
|
|
204
|
+
const modeManagerLocal = actions.getModeManager?.();
|
|
205
|
+
const modeLocal = modeManagerLocal ? modeManagerLocal.getCurrentMode() : undefined;
|
|
206
|
+
const filtered = reported.filter((name) => {
|
|
207
|
+
if (!modeManagerLocal || !modeLocal)
|
|
208
|
+
return true;
|
|
209
|
+
try {
|
|
210
|
+
return modeManagerLocal.isToolAllowed(name, modeLocal);
|
|
211
|
+
}
|
|
212
|
+
catch (_e) {
|
|
213
|
+
return true;
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
setState((prev) => ({ ...prev, activeTools: filtered }));
|
|
217
|
+
});
|
|
218
|
+
actions.on('active-hooks-updated', (data) => {
|
|
219
|
+
const d = data;
|
|
220
|
+
setState((prev) => ({ ...prev, activeHooks: d.hooks || [] }));
|
|
221
|
+
});
|
|
222
|
+
actions.on('active-mcp-updated', (data) => {
|
|
223
|
+
const d = data;
|
|
224
|
+
const reported = d.servers || [];
|
|
225
|
+
try {
|
|
226
|
+
const mm = actions.getModeManager?.();
|
|
227
|
+
const modeNow = mm ? mm.getCurrentMode() : undefined;
|
|
228
|
+
if (mm && modeNow) {
|
|
229
|
+
const allowed = mm.isToolAllowed('mcp:probe', modeNow);
|
|
230
|
+
setState((prev) => ({ ...prev, activeMcpServers: allowed ? reported : [] }));
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
setState((prev) => ({ ...prev, activeMcpServers: reported }));
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
catch (_e) {
|
|
237
|
+
setState((prev) => ({ ...prev, activeMcpServers: reported }));
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
// Listen for mode-transition from manager (legacy/proxy)
|
|
241
|
+
actions.on('mode-transition', handleModeTransition);
|
|
242
|
+
// Listen DIRECTLY to ModeManager for robust updates
|
|
243
|
+
const modeManager = actions.getModeManager();
|
|
244
|
+
if (modeManager) {
|
|
245
|
+
// We can reuse the same handler as the payload structure is compatible
|
|
246
|
+
// But we need to be careful about not doubling up if manager also re-emits.
|
|
247
|
+
// However, React batching usually handles this, or we can debounce.
|
|
248
|
+
// For now, robust updates are better than no updates.
|
|
249
|
+
modeManager.on('mode-changed', handleModeTransition);
|
|
250
|
+
modeManager.on('skills-changed', (skills) => {
|
|
251
|
+
setState((prev) => ({ ...prev, activeSkills: skills }));
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
actions.on('cleared', handleClear);
|
|
255
|
+
}
|
|
256
|
+
return () => {
|
|
257
|
+
if (actions.off) {
|
|
258
|
+
actions.off('active-skills-updated', () => { });
|
|
259
|
+
actions.off('active-tools-updated', () => { });
|
|
260
|
+
actions.off('active-hooks-updated', () => { });
|
|
261
|
+
actions.off('active-mcp-updated', () => { });
|
|
262
|
+
actions.off('mode-transition', handleModeTransition);
|
|
263
|
+
actions.off('cleared', handleClear);
|
|
264
|
+
}
|
|
265
|
+
const modeManager = actions.getModeManager();
|
|
266
|
+
if (modeManager) {
|
|
267
|
+
modeManager.off('mode-changed', handleModeTransition);
|
|
268
|
+
modeManager.off('skills-changed', () => { });
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
}, [contextState.active, actions]);
|
|
272
|
+
const updateContextState = (newState) => {
|
|
273
|
+
setState((prev) => ({ ...prev, ...newState }));
|
|
274
|
+
};
|
|
275
|
+
return (_jsx(ActiveContextContext.Provider, { value: { ...state, updateContextState }, children: children }));
|
|
276
|
+
};
|
|
277
|
+
export const useActiveContext = () => {
|
|
278
|
+
const context = useContext(ActiveContextContext);
|
|
279
|
+
if (context === undefined) {
|
|
280
|
+
throw new Error('useActiveContext must be used within an ActiveContextProvider');
|
|
281
|
+
}
|
|
282
|
+
return context;
|
|
283
|
+
};
|
|
284
|
+
//# sourceMappingURL=ActiveContextState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActiveContextState.js","sourceRoot":"","sources":["../../../src/features/context/ActiveContextState.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAEzF,OAAO,EAA+B,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAoC7D,oGAAoG;AAEpG;;GAEG;AACH,SAAS,eAAe,CAAC,IAAc;IACrC,MAAM,IAAI,GACP,aAAkF,CAAC,IAAI,CAAC;QACzF,aAAa,CAAC,SAAS,CAAC;IAC1B,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,OAAO,EAAE,IAAI,CAAC,OAAO;KACtB,CAAC;AACJ,CAAC;AAED,MAAM,oBAAoB,GAAG,aAAa,CAAuC,SAAS,CAAC,CAAC;AAE5F,MAAM,CAAC,MAAM,qBAAqB,GAAsC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACvF,wDAAwD;IACxD,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,iBAAiB,EAAE,CAAC;IAE7D,uCAAuC;IACvC,uGAAuG;IACvG,+CAA+C;IAC/C,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAE,CAAC;IACr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AAoB,CAAC,CAAC;gBACrD,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;YACtC,CAAC;YAED,MAAM,WAAW,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;YAC7C,IAAI,WAAW,EAAE,CAAC;gBAChB,WAAW,CAAC,GAAG,CAAC,cAAc,EAAE,oBAAoB,CAAC,CAAC;gBACtD,WAAW,CAAC,GAAG,CAAC,gBAAgB,EAAE,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;YAC9C,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAEnC,MAAM,kBAAkB,GAAG,CAAC,QAAqC,EAAE,EAAE;QACnE,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC;IACjD,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,kBAAkB,EAAE,YACnE,QAAQ,GACqB,CACjC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,MAAM,OAAO,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;IACjD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;IACnF,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChatContextValue, ChatProviderProps } from './types/chatTypes.js';
|
|
2
|
+
declare global {
|
|
3
|
+
var __ollmModelSwitchCallback: ((model: string) => void) | undefined;
|
|
4
|
+
}
|
|
5
|
+
export type { ToolCall, ReasoningBlock, InferenceMetrics, Message, ChatState, MenuOption, MenuState, ChatContextValue, ChatProviderProps, } from './types/chatTypes.js';
|
|
6
|
+
export declare function ChatProvider({ children, initialMessages, onSendMessage: _onSendMessage, onCancelGeneration: _onCancelGeneration, }: ChatProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function useChat(): ChatContextValue;
|
|
8
|
+
//# sourceMappingURL=ChatContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../../src/features/context/ChatContext.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAsB,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGpG,OAAO,CAAC,MAAM,CAAC;IACb,IAAI,yBAAyB,EAAE,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACtE;AAKD,YAAY,EACV,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAE9B,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,eAAoB,EACpB,aAAa,EAAE,cAAc,EAC7B,kBAAkB,EAAE,mBAAmB,GACxC,EAAE,iBAAiB,2CAwkBnB;AAED,wBAAgB,OAAO,IAAI,gBAAgB,CAM1C"}
|