@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,864 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useMemo, useCallback } from 'react';
|
|
3
|
+
import { Box, Text, useInput } from 'ink';
|
|
4
|
+
import { ToolCapability, detectServerCapabilities, } from '@ollm/ollm-cli-core/tools/tool-capabilities.js';
|
|
5
|
+
import { builtInThemes } from '../../../config/styles.js';
|
|
6
|
+
import { useFocusManager } from '../../../features/context/FocusContext.js';
|
|
7
|
+
import { useKeybinds } from '../../../features/context/KeybindsContext.js';
|
|
8
|
+
import { useModel } from '../../../features/context/ModelContext.js';
|
|
9
|
+
import { useSettings } from '../../../features/context/SettingsContext.js';
|
|
10
|
+
import { useUI } from '../../../features/context/UIContext.js';
|
|
11
|
+
import { profileManager } from '../../../features/profiles/ProfileManager.js';
|
|
12
|
+
import { useMCP } from '../../contexts/MCPContext.js';
|
|
13
|
+
import { useTabEscapeHandler } from '../../hooks/useTabEscapeHandler.js';
|
|
14
|
+
const WINDOW_SIZE = 30; // Configurable window size
|
|
15
|
+
const sections = [
|
|
16
|
+
{ id: 'keybinds', name: 'Keybinds' },
|
|
17
|
+
{ id: 'provider', name: 'Provider Selection' },
|
|
18
|
+
{ id: 'model', name: 'LLM Models' },
|
|
19
|
+
{ id: 'options', name: 'LLM Options' },
|
|
20
|
+
{ id: 'tool_routing', name: 'Tool Routing' },
|
|
21
|
+
{ id: 'theme', name: 'Theme Selection' },
|
|
22
|
+
];
|
|
23
|
+
/**
|
|
24
|
+
* SettingsPanel Component
|
|
25
|
+
*
|
|
26
|
+
* Two-column settings interface:
|
|
27
|
+
* - Left (30%): Section navigation
|
|
28
|
+
* - Right (70%): Settings editor
|
|
29
|
+
*
|
|
30
|
+
* Navigation:
|
|
31
|
+
* - Up/Down: Navigate sections/settings
|
|
32
|
+
* - Left/Right: Switch between columns
|
|
33
|
+
* - Enter: Select section or edit setting
|
|
34
|
+
* - Esc/0: Exit to nav-bar
|
|
35
|
+
*/
|
|
36
|
+
export function SettingsPanel({ windowWidth }) {
|
|
37
|
+
const { state: uiState } = useUI();
|
|
38
|
+
const focusManager = useFocusManager();
|
|
39
|
+
const { settings, updateLLMSetting, updateUISetting, updateToolRouting } = useSettings();
|
|
40
|
+
const { currentModel, setCurrentModel } = useModel();
|
|
41
|
+
const { state: mcpState, getServerTools } = useMCP();
|
|
42
|
+
const { activeKeybinds, defaultKeybinds, setUserBind, restoreDefault, checkConflict } = useKeybinds();
|
|
43
|
+
const hasFocus = focusManager.isFocused('settings-panel');
|
|
44
|
+
// Use shared escape handler for consistent navigation
|
|
45
|
+
useTabEscapeHandler(hasFocus);
|
|
46
|
+
// Calculate absolute widths if windowWidth is provided
|
|
47
|
+
const absoluteLeftWidth = windowWidth ? Math.floor(windowWidth * 0.3) : undefined;
|
|
48
|
+
const absoluteRightWidth = windowWidth && absoluteLeftWidth ? windowWidth - absoluteLeftWidth : undefined;
|
|
49
|
+
// State
|
|
50
|
+
const [selectedSectionIndex, setSelectedSectionIndex] = useState(0);
|
|
51
|
+
const [selectedSettingIndex, setSelectedSettingIndex] = useState(0);
|
|
52
|
+
const [focusedColumn, setFocusedColumn] = useState('left');
|
|
53
|
+
const [scrollOffset, _setScrollOffset] = useState(0);
|
|
54
|
+
const [rightScrollOffset, setRightScrollOffset] = useState(0);
|
|
55
|
+
const [isOnExitItem, setIsOnExitItem] = useState(false);
|
|
56
|
+
const [isEditingValue, setIsEditingValue] = useState(false);
|
|
57
|
+
const [editValue, setEditValue] = useState('');
|
|
58
|
+
// Get current section
|
|
59
|
+
const currentSection = useMemo(() => {
|
|
60
|
+
if (isOnExitItem || selectedSectionIndex >= sections.length) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
return sections[selectedSectionIndex];
|
|
64
|
+
}, [selectedSectionIndex, isOnExitItem]);
|
|
65
|
+
// Derive available servers for each capability
|
|
66
|
+
const capabilityProviders = useMemo(() => {
|
|
67
|
+
const map = new Map();
|
|
68
|
+
// Initialize empty lists for all capabilities
|
|
69
|
+
Object.values(ToolCapability).forEach((cap) => map.set(cap, []));
|
|
70
|
+
// Scan all connected servers
|
|
71
|
+
mcpState.servers.forEach((server, serverName) => {
|
|
72
|
+
if (server.status !== 'connected')
|
|
73
|
+
return;
|
|
74
|
+
const tools = getServerTools(serverName);
|
|
75
|
+
// Adapt MCPTool to Tool interface for detection
|
|
76
|
+
const adaptedTools = tools.map((t) => ({
|
|
77
|
+
name: t.name,
|
|
78
|
+
displayName: t.name,
|
|
79
|
+
schema: {
|
|
80
|
+
name: t.name,
|
|
81
|
+
description: t.description,
|
|
82
|
+
parameters: t.inputSchema,
|
|
83
|
+
},
|
|
84
|
+
createInvocation: () => {
|
|
85
|
+
throw new Error('Not implemented for detection');
|
|
86
|
+
},
|
|
87
|
+
}));
|
|
88
|
+
// We cast to any because we're constructing a minimal compatible object
|
|
89
|
+
// and the full Tool interface is complex
|
|
90
|
+
const capabilities = detectServerCapabilities(serverName, adaptedTools);
|
|
91
|
+
capabilities.forEach((cap) => {
|
|
92
|
+
const list = map.get(cap) || [];
|
|
93
|
+
if (!list.includes(serverName)) {
|
|
94
|
+
list.push(serverName);
|
|
95
|
+
map.set(cap, list);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
return map;
|
|
100
|
+
}, [mcpState.servers, getServerTools]);
|
|
101
|
+
// Options for select types
|
|
102
|
+
const getOptionsForSetting = useCallback((settingId) => {
|
|
103
|
+
switch (settingId) {
|
|
104
|
+
case 'provider':
|
|
105
|
+
return ['ollama', 'openai', 'anthropic', 'local'];
|
|
106
|
+
case 'model':
|
|
107
|
+
// For now, hardcode some common ones or get from current model
|
|
108
|
+
return ['llama3.2:3b', 'llama3.3:70b', 'qwen2.5-coder:7b', 'phi3'];
|
|
109
|
+
case 'theme':
|
|
110
|
+
return Object.keys(builtInThemes);
|
|
111
|
+
default:
|
|
112
|
+
// Handle tool routing capabilities
|
|
113
|
+
if (Object.values(ToolCapability).includes(settingId)) {
|
|
114
|
+
const servers = capabilityProviders.get(settingId) || [];
|
|
115
|
+
return ['(auto)', ...servers];
|
|
116
|
+
}
|
|
117
|
+
return [];
|
|
118
|
+
}
|
|
119
|
+
}, [capabilityProviders]);
|
|
120
|
+
// Get settings for current section
|
|
121
|
+
const currentSettings = useMemo(() => {
|
|
122
|
+
if (!currentSection)
|
|
123
|
+
return [];
|
|
124
|
+
switch (currentSection.id) {
|
|
125
|
+
case 'provider':
|
|
126
|
+
return [
|
|
127
|
+
{
|
|
128
|
+
id: 'local_header',
|
|
129
|
+
label: '1 Local LLM Providers:',
|
|
130
|
+
value: '',
|
|
131
|
+
type: 'header',
|
|
132
|
+
category: 'llm',
|
|
133
|
+
},
|
|
134
|
+
{ id: 'h_spacer_1', label: '', value: '', type: 'info', category: 'llm' }, // Padding
|
|
135
|
+
{
|
|
136
|
+
id: 'prov_ollama',
|
|
137
|
+
label: 'Ollama',
|
|
138
|
+
value: 'ollama',
|
|
139
|
+
active: (settings.llm.provider || 'ollama') === 'ollama',
|
|
140
|
+
type: 'choice',
|
|
141
|
+
category: 'llm',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: 'prov_ollama_cloud',
|
|
145
|
+
label: 'Ollama Cloud [ coming soon ]',
|
|
146
|
+
value: 'ollama_cloud',
|
|
147
|
+
type: 'choice',
|
|
148
|
+
category: 'llm',
|
|
149
|
+
muted: true,
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
id: 'prov_llm_studio',
|
|
153
|
+
label: 'LLM Studio [ coming soon ]',
|
|
154
|
+
value: 'llm_studio',
|
|
155
|
+
type: 'choice',
|
|
156
|
+
category: 'llm',
|
|
157
|
+
muted: true,
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: 'prov_vllm',
|
|
161
|
+
label: 'vLLM [ coming soon ]',
|
|
162
|
+
value: 'vllm',
|
|
163
|
+
type: 'choice',
|
|
164
|
+
category: 'llm',
|
|
165
|
+
muted: true,
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: 'prov_llama_cpp',
|
|
169
|
+
label: 'Llama cpp [ coming soon ]',
|
|
170
|
+
value: 'llama_cpp',
|
|
171
|
+
type: 'choice',
|
|
172
|
+
category: 'llm',
|
|
173
|
+
muted: true,
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
id: 'prov_mlx_lm',
|
|
177
|
+
label: 'MLX-LM [ coming soon ]',
|
|
178
|
+
value: 'mlx_lm',
|
|
179
|
+
type: 'choice',
|
|
180
|
+
category: 'llm',
|
|
181
|
+
muted: true,
|
|
182
|
+
},
|
|
183
|
+
{ id: 'spacer_p1', label: '', value: '', type: 'info', category: 'llm' },
|
|
184
|
+
{ id: 'kraken_header', label: '2 Kraken', value: '', type: 'header', category: 'llm' },
|
|
185
|
+
{ id: 'h_spacer_2', label: '', value: '', type: 'info', category: 'llm' }, // Padding
|
|
186
|
+
{
|
|
187
|
+
id: 'prov_claude_code',
|
|
188
|
+
label: 'Claude Code CLI [ coming soon ]',
|
|
189
|
+
value: 'claude_code',
|
|
190
|
+
type: 'choice',
|
|
191
|
+
category: 'llm',
|
|
192
|
+
muted: true,
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
id: 'prov_codex',
|
|
196
|
+
label: 'Codex CLI [ coming soon ]',
|
|
197
|
+
value: 'codex',
|
|
198
|
+
type: 'choice',
|
|
199
|
+
category: 'llm',
|
|
200
|
+
muted: true,
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
id: 'prov_gemini_cli',
|
|
204
|
+
label: 'Gemini CLI [ coming soon ]',
|
|
205
|
+
value: 'gemini_cli',
|
|
206
|
+
type: 'choice',
|
|
207
|
+
category: 'llm',
|
|
208
|
+
muted: true,
|
|
209
|
+
},
|
|
210
|
+
{ id: 'spacer_p2', label: '', value: '', type: 'info', category: 'llm' },
|
|
211
|
+
{
|
|
212
|
+
id: 'rag_header',
|
|
213
|
+
label: '3 RAG Embedding Model',
|
|
214
|
+
value: '',
|
|
215
|
+
type: 'header',
|
|
216
|
+
category: 'llm',
|
|
217
|
+
},
|
|
218
|
+
{ id: 'h_spacer_3', label: '', value: '', type: 'info', category: 'llm' }, // Padding
|
|
219
|
+
{
|
|
220
|
+
id: 'rag_model',
|
|
221
|
+
label: 'Model Name/ID',
|
|
222
|
+
value: 'Embedding LLM',
|
|
223
|
+
type: 'info',
|
|
224
|
+
category: 'llm',
|
|
225
|
+
},
|
|
226
|
+
{ id: 'rag_api', label: 'API', value: '*******', type: 'info', category: 'llm' },
|
|
227
|
+
{ id: 'rag_dim', label: 'Dimensions', value: '1024', type: 'info', category: 'llm' },
|
|
228
|
+
{
|
|
229
|
+
id: 'rag_chunk',
|
|
230
|
+
label: 'Chunk Size (Max Tokens)',
|
|
231
|
+
value: '512',
|
|
232
|
+
type: 'info',
|
|
233
|
+
category: 'llm',
|
|
234
|
+
},
|
|
235
|
+
{ id: 'spacer_p3', label: '', value: '', type: 'info', category: 'llm' },
|
|
236
|
+
{
|
|
237
|
+
id: 'api_header',
|
|
238
|
+
label: '4 API LLMs Providers',
|
|
239
|
+
value: '',
|
|
240
|
+
type: 'header',
|
|
241
|
+
category: 'llm',
|
|
242
|
+
},
|
|
243
|
+
{ id: 'h_spacer_4', label: '', value: '', type: 'info', category: 'llm' }, // Padding
|
|
244
|
+
{
|
|
245
|
+
id: 'api_prov',
|
|
246
|
+
label: 'LLM Provider',
|
|
247
|
+
value: ' ',
|
|
248
|
+
type: 'info',
|
|
249
|
+
category: 'llm',
|
|
250
|
+
muted_value: true,
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
id: 'api_add',
|
|
254
|
+
label: '+ Add API',
|
|
255
|
+
value: '',
|
|
256
|
+
type: 'choice',
|
|
257
|
+
category: 'llm',
|
|
258
|
+
muted: true,
|
|
259
|
+
},
|
|
260
|
+
];
|
|
261
|
+
case 'model': {
|
|
262
|
+
const userModels = profileManager.getUserModels();
|
|
263
|
+
const modelEntry = userModels.find((m) => m.id === currentModel);
|
|
264
|
+
const profile = profileManager.getProfileById(currentModel) || profileManager.findProfile(currentModel);
|
|
265
|
+
const settingsList = [
|
|
266
|
+
{ id: 'model_name', label: 'Model', value: currentModel, type: 'info', category: 'llm' },
|
|
267
|
+
];
|
|
268
|
+
if (modelEntry) {
|
|
269
|
+
const ctxProfile = modelEntry.context_profiles?.find((p) => p.size === settings.llm.contextSize) ||
|
|
270
|
+
modelEntry.context_profiles?.[0];
|
|
271
|
+
settingsList.push({
|
|
272
|
+
id: 'model_ctx',
|
|
273
|
+
label: 'Context Size',
|
|
274
|
+
value: ctxProfile?.size_label || modelEntry.default_context || 'N/A',
|
|
275
|
+
type: 'info',
|
|
276
|
+
category: 'llm',
|
|
277
|
+
});
|
|
278
|
+
if (profile?.ollama_url) {
|
|
279
|
+
settingsList.push({
|
|
280
|
+
id: 'model_url',
|
|
281
|
+
label: 'Ollama URL',
|
|
282
|
+
value: profile.ollama_url,
|
|
283
|
+
type: 'info',
|
|
284
|
+
category: 'llm',
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
settingsList.push({
|
|
288
|
+
id: 'model_tools',
|
|
289
|
+
label: 'Tool Support',
|
|
290
|
+
value: modelEntry.tool_support ? '✓ Supported' : '✗ Not Supported',
|
|
291
|
+
type: 'info',
|
|
292
|
+
category: 'llm',
|
|
293
|
+
});
|
|
294
|
+
if (profile?.thinking_enabled || modelEntry.abilities?.includes('Reasoning')) {
|
|
295
|
+
settingsList.push({
|
|
296
|
+
id: 'model_reasoning',
|
|
297
|
+
label: 'Reasoning',
|
|
298
|
+
value: '✓ Enabled',
|
|
299
|
+
type: 'info',
|
|
300
|
+
category: 'llm',
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
settingsList.push({
|
|
304
|
+
id: 'model_desc',
|
|
305
|
+
label: 'Description',
|
|
306
|
+
value: modelEntry.description || 'No description available.',
|
|
307
|
+
type: 'info',
|
|
308
|
+
category: 'llm',
|
|
309
|
+
});
|
|
310
|
+
// Add 3 lines padding under description
|
|
311
|
+
settingsList.push({ id: 'spacer1', label: '', value: '', type: 'info', category: 'llm' });
|
|
312
|
+
settingsList.push({ id: 'spacer2', label: '', value: '', type: 'info', category: 'llm' });
|
|
313
|
+
settingsList.push({ id: 'spacer3', label: '', value: '', type: 'info', category: 'llm' });
|
|
314
|
+
}
|
|
315
|
+
settingsList.push({
|
|
316
|
+
id: 'available_models_header',
|
|
317
|
+
label: 'Available Models:',
|
|
318
|
+
value: '',
|
|
319
|
+
type: 'header',
|
|
320
|
+
category: 'llm',
|
|
321
|
+
});
|
|
322
|
+
// Add line space between header and list
|
|
323
|
+
settingsList.push({
|
|
324
|
+
id: 'list_spacer',
|
|
325
|
+
label: '',
|
|
326
|
+
value: '',
|
|
327
|
+
type: 'info',
|
|
328
|
+
category: 'llm',
|
|
329
|
+
});
|
|
330
|
+
// Display in alphabetical order
|
|
331
|
+
[...userModels]
|
|
332
|
+
.sort((a, b) => a.id.localeCompare(b.id))
|
|
333
|
+
.forEach((m) => {
|
|
334
|
+
settingsList.push({
|
|
335
|
+
id: 'model',
|
|
336
|
+
label: m.id,
|
|
337
|
+
value: m.id,
|
|
338
|
+
active: m.id === currentModel,
|
|
339
|
+
type: 'choice',
|
|
340
|
+
category: 'llm',
|
|
341
|
+
});
|
|
342
|
+
});
|
|
343
|
+
return settingsList;
|
|
344
|
+
}
|
|
345
|
+
case 'options': {
|
|
346
|
+
const isModeLinked = settings.llm.modeLinkedTemperature ?? true;
|
|
347
|
+
const options = [
|
|
348
|
+
{
|
|
349
|
+
id: 'modeLinkedTemperature',
|
|
350
|
+
label: 'Mode-Linked Temperature',
|
|
351
|
+
value: isModeLinked,
|
|
352
|
+
type: 'toggle',
|
|
353
|
+
category: 'llm',
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
id: 'temperature',
|
|
357
|
+
label: 'Temperature',
|
|
358
|
+
value: settings.llm.temperature || 0.3,
|
|
359
|
+
type: 'numeric',
|
|
360
|
+
min: 0,
|
|
361
|
+
max: 2,
|
|
362
|
+
step: 0.1,
|
|
363
|
+
category: 'llm',
|
|
364
|
+
muted: isModeLinked,
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
id: 'temp_info',
|
|
368
|
+
label: 'Effective Temp',
|
|
369
|
+
value: isModeLinked ? 'Managed by Mode' : String(settings.llm.temperature || 0.3),
|
|
370
|
+
type: 'info',
|
|
371
|
+
category: 'llm',
|
|
372
|
+
},
|
|
373
|
+
{ id: 'spacer_opt_1', label: '', value: '', type: 'info', category: 'llm' },
|
|
374
|
+
{
|
|
375
|
+
id: 'tiers_header',
|
|
376
|
+
label: 'Temperature Tiers:',
|
|
377
|
+
value: '',
|
|
378
|
+
type: 'header',
|
|
379
|
+
category: 'llm',
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
id: 'tier_1',
|
|
383
|
+
label: 'Tier 1 - Tech',
|
|
384
|
+
value: '0.1 (Dev, Debug, Security)',
|
|
385
|
+
type: 'info',
|
|
386
|
+
category: 'llm',
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
id: 'tier_2',
|
|
390
|
+
label: 'Tier 2 - Standard',
|
|
391
|
+
value: '0.3 (Planning, Review)',
|
|
392
|
+
type: 'info',
|
|
393
|
+
category: 'llm',
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
id: 'tier_3',
|
|
397
|
+
label: 'Tier 3 - Creative',
|
|
398
|
+
value: '0.5 (Assistant, Proto)',
|
|
399
|
+
type: 'info',
|
|
400
|
+
category: 'llm',
|
|
401
|
+
},
|
|
402
|
+
{ id: 'spacer_opt_2', label: '', value: '', type: 'info', category: 'llm' },
|
|
403
|
+
{
|
|
404
|
+
id: 'contextSize',
|
|
405
|
+
label: 'Max Tokens',
|
|
406
|
+
value: settings.llm.contextSize || 4096,
|
|
407
|
+
type: 'numeric',
|
|
408
|
+
category: 'llm',
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
id: 'metricsEnabled',
|
|
412
|
+
label: 'Metrics',
|
|
413
|
+
value: settings.ui.metricsEnabled ?? true,
|
|
414
|
+
type: 'toggle',
|
|
415
|
+
category: 'ui',
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
id: 'reasoningEnabled',
|
|
419
|
+
label: 'Reasoning',
|
|
420
|
+
value: settings.ui.reasoningEnabled ?? true,
|
|
421
|
+
type: 'toggle',
|
|
422
|
+
category: 'ui',
|
|
423
|
+
},
|
|
424
|
+
];
|
|
425
|
+
return options;
|
|
426
|
+
}
|
|
427
|
+
case 'theme':
|
|
428
|
+
return Object.keys(builtInThemes).map((themeId) => ({
|
|
429
|
+
id: 'theme',
|
|
430
|
+
label: themeId,
|
|
431
|
+
value: themeId,
|
|
432
|
+
active: (settings.ui.theme || uiState.theme.name) === themeId,
|
|
433
|
+
type: 'choice',
|
|
434
|
+
category: 'ui',
|
|
435
|
+
}));
|
|
436
|
+
case 'tool_routing': {
|
|
437
|
+
const config = settings.llm.toolRouting || {};
|
|
438
|
+
const isEnabled = config.enabled ?? false;
|
|
439
|
+
const settingsList = [
|
|
440
|
+
{
|
|
441
|
+
id: 'routing_enabled',
|
|
442
|
+
label: 'Enable Tool Routing',
|
|
443
|
+
value: isEnabled,
|
|
444
|
+
type: 'toggle',
|
|
445
|
+
category: 'llm',
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
id: 'routing_fallback',
|
|
449
|
+
label: 'Auto-Fallback',
|
|
450
|
+
value: config.enableFallback ?? true,
|
|
451
|
+
type: 'toggle',
|
|
452
|
+
category: 'llm',
|
|
453
|
+
muted: !isEnabled,
|
|
454
|
+
},
|
|
455
|
+
{ id: 'spacer_tr_1', label: '', value: '', type: 'info', category: 'llm' },
|
|
456
|
+
{
|
|
457
|
+
id: 'caps_header',
|
|
458
|
+
label: 'Capability Bindings:',
|
|
459
|
+
value: '',
|
|
460
|
+
type: 'header',
|
|
461
|
+
category: 'llm',
|
|
462
|
+
muted: !isEnabled,
|
|
463
|
+
},
|
|
464
|
+
];
|
|
465
|
+
// Add selector for each capability
|
|
466
|
+
Object.values(ToolCapability).forEach((cap) => {
|
|
467
|
+
const providers = capabilityProviders.get(cap) || [];
|
|
468
|
+
const binding = config.bindings?.[cap];
|
|
469
|
+
const providerCount = providers.length;
|
|
470
|
+
// Format label for capability (e.g., 'web_search' -> 'Web Search')
|
|
471
|
+
const label = cap
|
|
472
|
+
.split('_')
|
|
473
|
+
.map((w) => w.charAt(0).toUpperCase() + w.slice(1))
|
|
474
|
+
.join(' ');
|
|
475
|
+
settingsList.push({
|
|
476
|
+
id: cap,
|
|
477
|
+
label: `${label} (${providerCount})`,
|
|
478
|
+
value: binding || '(auto)',
|
|
479
|
+
type: 'select',
|
|
480
|
+
category: 'llm',
|
|
481
|
+
muted: !isEnabled,
|
|
482
|
+
active: !!binding, // Highlight if manually bound
|
|
483
|
+
});
|
|
484
|
+
});
|
|
485
|
+
return settingsList;
|
|
486
|
+
}
|
|
487
|
+
case 'keybinds': {
|
|
488
|
+
// useKeybinds is called at the top level
|
|
489
|
+
const settingsList = [];
|
|
490
|
+
// Header with Restore Default action (simulated as top item)
|
|
491
|
+
settingsList.push({
|
|
492
|
+
id: 'restore_defaults',
|
|
493
|
+
label: '[ Restore All Defaults ]',
|
|
494
|
+
value: '',
|
|
495
|
+
type: 'action', // Custom type for buttons
|
|
496
|
+
category: 'ui',
|
|
497
|
+
});
|
|
498
|
+
settingsList.push({
|
|
499
|
+
id: 'spacer_kb_1',
|
|
500
|
+
label: '',
|
|
501
|
+
value: '',
|
|
502
|
+
type: 'info',
|
|
503
|
+
category: 'ui',
|
|
504
|
+
});
|
|
505
|
+
// Iterate through all categories
|
|
506
|
+
Object.entries(activeKeybinds).forEach(([category, actions]) => {
|
|
507
|
+
// Add Section Header
|
|
508
|
+
const catLabel = category.charAt(0).toUpperCase() + category.slice(1).replace(/([A-Z])/g, ' $1');
|
|
509
|
+
settingsList.push({
|
|
510
|
+
id: `cat_${category}`,
|
|
511
|
+
label: catLabel,
|
|
512
|
+
value: '',
|
|
513
|
+
type: 'header',
|
|
514
|
+
category: 'ui',
|
|
515
|
+
});
|
|
516
|
+
// Add each action in category
|
|
517
|
+
Object.entries(actions).forEach(([actionId, currentKey]) => {
|
|
518
|
+
const defaultKey = defaultKeybinds[category]?.[actionId];
|
|
519
|
+
const isModified = currentKey !== defaultKey;
|
|
520
|
+
// Format label: "togglePanel" -> "Toggle Panel"
|
|
521
|
+
const actionLabel = actionId
|
|
522
|
+
.replace(/([A-Z])/g, ' $1')
|
|
523
|
+
.replace(/^./, (str) => str.toUpperCase());
|
|
524
|
+
settingsList.push({
|
|
525
|
+
id: `${category}:${actionId}`, // Composite ID for callback
|
|
526
|
+
label: actionLabel,
|
|
527
|
+
value: currentKey,
|
|
528
|
+
defaultValue: defaultKey, // Pass default for display
|
|
529
|
+
type: 'keybind', // Special type for keybind input
|
|
530
|
+
category: 'ui',
|
|
531
|
+
active: isModified, // Highlight modified keys
|
|
532
|
+
});
|
|
533
|
+
});
|
|
534
|
+
settingsList.push({
|
|
535
|
+
id: `spacer_${category}`,
|
|
536
|
+
label: '',
|
|
537
|
+
value: '',
|
|
538
|
+
type: 'info',
|
|
539
|
+
category: 'ui',
|
|
540
|
+
});
|
|
541
|
+
});
|
|
542
|
+
return settingsList;
|
|
543
|
+
}
|
|
544
|
+
default:
|
|
545
|
+
return [];
|
|
546
|
+
}
|
|
547
|
+
}, [
|
|
548
|
+
currentSection,
|
|
549
|
+
settings,
|
|
550
|
+
uiState.theme.name,
|
|
551
|
+
currentModel,
|
|
552
|
+
capabilityProviders,
|
|
553
|
+
activeKeybinds,
|
|
554
|
+
defaultKeybinds,
|
|
555
|
+
]);
|
|
556
|
+
// Is focusable helper
|
|
557
|
+
const isFocusable = (setting) => {
|
|
558
|
+
return setting.type !== 'info' && setting.type !== 'header' && !setting.muted;
|
|
559
|
+
};
|
|
560
|
+
// Navigation handlers
|
|
561
|
+
const handleNavigateUp = () => {
|
|
562
|
+
if (focusedColumn === 'right' && !isEditingValue) {
|
|
563
|
+
// Navigate settings in right column - find previous focusable
|
|
564
|
+
let nextIdx = selectedSettingIndex - 1;
|
|
565
|
+
while (nextIdx >= 0 && !isFocusable(currentSettings[nextIdx])) {
|
|
566
|
+
nextIdx--;
|
|
567
|
+
}
|
|
568
|
+
if (nextIdx >= 0) {
|
|
569
|
+
setSelectedSettingIndex(nextIdx);
|
|
570
|
+
// Update scroll offset if needed
|
|
571
|
+
if (nextIdx < rightScrollOffset) {
|
|
572
|
+
setRightScrollOffset(nextIdx);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
return;
|
|
576
|
+
}
|
|
577
|
+
if (focusedColumn === 'left') {
|
|
578
|
+
// Left column navigation
|
|
579
|
+
if (isOnExitItem) {
|
|
580
|
+
return; // Already at top
|
|
581
|
+
}
|
|
582
|
+
if (selectedSectionIndex > 0) {
|
|
583
|
+
setSelectedSectionIndex((prev) => prev - 1);
|
|
584
|
+
setSelectedSettingIndex(0); // Reset setting index when changing section
|
|
585
|
+
setRightScrollOffset(0); // Reset scroll offset
|
|
586
|
+
}
|
|
587
|
+
else {
|
|
588
|
+
// Move to Exit
|
|
589
|
+
setIsOnExitItem(true);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
const handleNavigateDown = () => {
|
|
594
|
+
if (focusedColumn === 'right' && !isEditingValue) {
|
|
595
|
+
// Navigate settings in right column - find next focusable
|
|
596
|
+
let nextIdx = selectedSettingIndex + 1;
|
|
597
|
+
while (nextIdx < currentSettings.length && !isFocusable(currentSettings[nextIdx])) {
|
|
598
|
+
nextIdx++;
|
|
599
|
+
}
|
|
600
|
+
if (nextIdx < currentSettings.length) {
|
|
601
|
+
setSelectedSettingIndex(nextIdx);
|
|
602
|
+
// Update scroll offset if needed
|
|
603
|
+
if (nextIdx >= rightScrollOffset + WINDOW_SIZE) {
|
|
604
|
+
setRightScrollOffset(nextIdx - WINDOW_SIZE + 1);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
return;
|
|
608
|
+
}
|
|
609
|
+
if (focusedColumn === 'left') {
|
|
610
|
+
// Left column navigation
|
|
611
|
+
if (isOnExitItem) {
|
|
612
|
+
// Move from Exit to first section
|
|
613
|
+
setIsOnExitItem(false);
|
|
614
|
+
setSelectedSectionIndex(0);
|
|
615
|
+
setSelectedSettingIndex(0);
|
|
616
|
+
return;
|
|
617
|
+
}
|
|
618
|
+
if (selectedSectionIndex < sections.length - 1) {
|
|
619
|
+
setSelectedSectionIndex((prev) => prev + 1);
|
|
620
|
+
setSelectedSettingIndex(0); // Reset setting index when changing section
|
|
621
|
+
setRightScrollOffset(0); // Reset scroll offset
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
const handleSwitchColumn = (direction) => {
|
|
626
|
+
if (isEditingValue)
|
|
627
|
+
return; // Can't switch while editing
|
|
628
|
+
if (direction === 'right' && focusedColumn === 'left' && currentSection) {
|
|
629
|
+
// Move to right column - find first focusable
|
|
630
|
+
let firstFocusable = 0;
|
|
631
|
+
while (firstFocusable < currentSettings.length &&
|
|
632
|
+
!isFocusable(currentSettings[firstFocusable])) {
|
|
633
|
+
firstFocusable++;
|
|
634
|
+
}
|
|
635
|
+
setFocusedColumn('right');
|
|
636
|
+
setSelectedSettingIndex(firstFocusable < currentSettings.length ? firstFocusable : 0);
|
|
637
|
+
}
|
|
638
|
+
else if (direction === 'left' && focusedColumn === 'right') {
|
|
639
|
+
setFocusedColumn('left');
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
const handleToggleSetting = () => {
|
|
643
|
+
if (focusedColumn !== 'right' || currentSettings.length === 0)
|
|
644
|
+
return;
|
|
645
|
+
const setting = currentSettings[selectedSettingIndex];
|
|
646
|
+
if (setting.type === 'toggle') {
|
|
647
|
+
if (setting.category === 'llm' || setting.category === 'prompt') {
|
|
648
|
+
updateLLMSetting(setting.id, !setting.value);
|
|
649
|
+
}
|
|
650
|
+
else {
|
|
651
|
+
updateUISetting(setting.id, !setting.value);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
};
|
|
655
|
+
const handleEnterOnSetting = () => {
|
|
656
|
+
if (focusedColumn !== 'right' || currentSettings.length === 0)
|
|
657
|
+
return;
|
|
658
|
+
const setting = currentSettings[selectedSettingIndex];
|
|
659
|
+
if (setting.type === 'action') {
|
|
660
|
+
if (setting.id === 'restore_defaults') {
|
|
661
|
+
restoreDefault();
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
else if (setting.type === 'keybind') {
|
|
665
|
+
setIsEditingValue(true);
|
|
666
|
+
setEditValue(String(setting.value));
|
|
667
|
+
}
|
|
668
|
+
else if (setting.type === 'numeric') {
|
|
669
|
+
setIsEditingValue(true);
|
|
670
|
+
setEditValue(String(setting.value));
|
|
671
|
+
}
|
|
672
|
+
else if (setting.type === 'toggle') {
|
|
673
|
+
handleToggleSetting();
|
|
674
|
+
}
|
|
675
|
+
else if (setting.type === 'choice') {
|
|
676
|
+
if (setting.id === 'model') {
|
|
677
|
+
setCurrentModel(String(setting.value));
|
|
678
|
+
}
|
|
679
|
+
if (setting.category === 'llm') {
|
|
680
|
+
updateLLMSetting(setting.id, String(setting.value));
|
|
681
|
+
}
|
|
682
|
+
else {
|
|
683
|
+
updateUISetting(setting.id, String(setting.value));
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
else if (setting.type === 'select') {
|
|
687
|
+
// Toggle through options
|
|
688
|
+
const options = getOptionsForSetting(setting.id);
|
|
689
|
+
const currentIndex = options.indexOf(String(setting.value));
|
|
690
|
+
const nextIndex = (currentIndex + 1) % options.length;
|
|
691
|
+
const nextValue = options[nextIndex];
|
|
692
|
+
if (setting.id === 'model') {
|
|
693
|
+
setCurrentModel(nextValue);
|
|
694
|
+
}
|
|
695
|
+
if (setting.category === 'llm') {
|
|
696
|
+
// Check for capability binding
|
|
697
|
+
if (Object.values(ToolCapability).includes(setting.id)) {
|
|
698
|
+
updateToolRouting(`bindings.${setting.id}`, nextValue === '(auto)' ? undefined : nextValue);
|
|
699
|
+
return;
|
|
700
|
+
}
|
|
701
|
+
updateLLMSetting(setting.id, nextValue);
|
|
702
|
+
}
|
|
703
|
+
else {
|
|
704
|
+
updateUISetting(setting.id, nextValue);
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
};
|
|
708
|
+
const handleSaveEdit = () => {
|
|
709
|
+
if (!isEditingValue)
|
|
710
|
+
return;
|
|
711
|
+
const setting = currentSettings[selectedSettingIndex];
|
|
712
|
+
if (setting.type === 'keybind') {
|
|
713
|
+
// Validate conflict
|
|
714
|
+
const conflict = checkConflict(editValue);
|
|
715
|
+
// If conflict exists and it's not the same action we are editing
|
|
716
|
+
if (conflict && `${conflict.category}:${conflict.id}` !== setting.id) {
|
|
717
|
+
// For now, simple console warn, better UI needed for alert
|
|
718
|
+
// We can just append "CONFLICT!" to the value temporarily or block
|
|
719
|
+
// But for MVP, let's just save. The user sees duplicates in the list.
|
|
720
|
+
// Ideally we would show a toast/modal.
|
|
721
|
+
}
|
|
722
|
+
const [cat, id] = setting.id.split(':');
|
|
723
|
+
if (cat && id) {
|
|
724
|
+
setUserBind(cat, id, editValue);
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
else {
|
|
728
|
+
const numValue = parseFloat(editValue);
|
|
729
|
+
if (!isNaN(numValue)) {
|
|
730
|
+
if (setting.category === 'llm') {
|
|
731
|
+
updateLLMSetting(setting.id, numValue);
|
|
732
|
+
}
|
|
733
|
+
else {
|
|
734
|
+
updateUISetting(setting.id, numValue);
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
setIsEditingValue(false);
|
|
739
|
+
setEditValue('');
|
|
740
|
+
};
|
|
741
|
+
const handleCancelEdit = () => {
|
|
742
|
+
setIsEditingValue(false);
|
|
743
|
+
setEditValue('');
|
|
744
|
+
};
|
|
745
|
+
/**
|
|
746
|
+
* Keyboard Navigation
|
|
747
|
+
*
|
|
748
|
+
* Navigation Keys:
|
|
749
|
+
* - ↑/↓: Navigate settings
|
|
750
|
+
* - ←/→: Switch between columns
|
|
751
|
+
* - Enter: Edit setting or toggle
|
|
752
|
+
* - ESC: Cancel edit (if editing) or exit to nav bar (handled by useTabEscapeHandler)
|
|
753
|
+
* - 0: Exit to nav bar (handled by useTabEscapeHandler)
|
|
754
|
+
*
|
|
755
|
+
* Edit Mode:
|
|
756
|
+
* - Enter: Save changes
|
|
757
|
+
* - ESC: Cancel changes
|
|
758
|
+
* - Backspace/Delete: Remove last character
|
|
759
|
+
* - Any input: Add to value (numbers for numeric, any for keybinds)
|
|
760
|
+
*
|
|
761
|
+
* Note: ESC handling when not editing is now managed by the shared useTabEscapeHandler hook
|
|
762
|
+
* for consistent hierarchical navigation across all tab components.
|
|
763
|
+
*/
|
|
764
|
+
useInput((input, key) => {
|
|
765
|
+
if (!hasFocus)
|
|
766
|
+
return;
|
|
767
|
+
if (isEditingValue) {
|
|
768
|
+
const setting = currentSettings[selectedSettingIndex];
|
|
769
|
+
// In edit mode
|
|
770
|
+
if (key.return) {
|
|
771
|
+
handleSaveEdit();
|
|
772
|
+
}
|
|
773
|
+
else if (key.escape) {
|
|
774
|
+
handleCancelEdit();
|
|
775
|
+
}
|
|
776
|
+
else if (key.backspace || key.delete) {
|
|
777
|
+
setEditValue((prev) => prev.slice(0, -1));
|
|
778
|
+
}
|
|
779
|
+
else if (input) {
|
|
780
|
+
// Allow any input for keybinds, restrict to numbers for numeric
|
|
781
|
+
if (setting.type === 'keybind') {
|
|
782
|
+
setEditValue((prev) => prev + input);
|
|
783
|
+
}
|
|
784
|
+
else if (/[0-9.]/.test(input)) {
|
|
785
|
+
setEditValue((prev) => prev + input);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
else {
|
|
790
|
+
// Normal navigation
|
|
791
|
+
if (key.upArrow) {
|
|
792
|
+
handleNavigateUp();
|
|
793
|
+
}
|
|
794
|
+
else if (key.downArrow) {
|
|
795
|
+
handleNavigateDown();
|
|
796
|
+
}
|
|
797
|
+
else if (key.leftArrow) {
|
|
798
|
+
handleSwitchColumn('left');
|
|
799
|
+
}
|
|
800
|
+
else if (key.rightArrow) {
|
|
801
|
+
handleSwitchColumn('right');
|
|
802
|
+
}
|
|
803
|
+
else if (key.return) {
|
|
804
|
+
if (focusedColumn === 'right') {
|
|
805
|
+
handleEnterOnSetting();
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
// Note: ESC and '0' are now handled by useTabEscapeHandler
|
|
809
|
+
}
|
|
810
|
+
}, { isActive: hasFocus });
|
|
811
|
+
return (_jsxs(Box, { flexDirection: "column", height: "100%", width: windowWidth, children: [_jsx(Box, { borderStyle: uiState.theme.border.style, borderColor: hasFocus ? uiState.theme.text.accent : uiState.theme.text.secondary, paddingX: 1, flexShrink: 0, children: _jsxs(Box, { justifyContent: "space-between", width: "100%", overflow: "hidden", children: [_jsx(Box, { flexShrink: 0, children: _jsx(Text, { bold: true, color: hasFocus ? uiState.theme.text.accent : uiState.theme.text.primary, children: "Settings" }) }), _jsx(Box, { flexShrink: 1, marginLeft: 1, children: _jsx(Text, { wrap: "truncate-end", color: hasFocus ? uiState.theme.text.primary : uiState.theme.text.secondary, children: "\u2191\u2193:Nav \u2190\u2192:Column Enter:Edit 0/Esc:Exit" }) })] }) }), _jsxs(Box, { flexGrow: 1, overflow: "hidden", flexDirection: "row", width: "100%", children: [_jsxs(Box, { flexDirection: "column", width: absoluteLeftWidth ?? '30%', borderStyle: uiState.theme.border.style, borderColor: focusedColumn === 'left' && hasFocus
|
|
812
|
+
? uiState.theme.border.active
|
|
813
|
+
: uiState.theme.border.primary, paddingY: 1, children: [scrollOffset > 0 && (_jsxs(_Fragment, { children: [_jsx(Box, { justifyContent: "center", paddingX: 1, children: _jsx(Text, { color: uiState.theme.text.secondary, children: "\u25B2 Scroll up for more" }) }), _jsx(Text, { children: " " })] })), _jsxs(Box, { flexDirection: "column", flexGrow: 1, paddingX: 1, children: [_jsx(Text, { children: " " }), _jsx(Box, { children: _jsx(Text, { bold: isOnExitItem && hasFocus, color: isOnExitItem && hasFocus ? uiState.theme.text.accent : uiState.theme.text.primary, children: "\u2190 Exit" }) }), _jsx(Text, { children: " " }), _jsx(Text, { children: " " }), sections.map((section, idx) => {
|
|
814
|
+
const isSelected = !isOnExitItem && idx === selectedSectionIndex && focusedColumn === 'left';
|
|
815
|
+
return (_jsx(Box, { marginTop: idx > 0 ? 1 : 0, children: _jsx(Text, { bold: isSelected && hasFocus, color: isSelected && hasFocus
|
|
816
|
+
? uiState.theme.text.accent
|
|
817
|
+
: uiState.theme.text.primary, children: section.name }) }, section.id));
|
|
818
|
+
})] }), scrollOffset + WINDOW_SIZE < sections.length + 1 && (_jsxs(_Fragment, { children: [_jsx(Text, { children: " " }), _jsx(Box, { justifyContent: "center", paddingX: 1, children: _jsx(Text, { color: uiState.theme.text.secondary, children: "\u25BC Scroll down for more" }) })] }))] }), _jsx(Box, { flexDirection: "column", width: absoluteRightWidth ?? '70%', borderStyle: uiState.theme.border.style, borderColor: focusedColumn === 'right' && hasFocus
|
|
819
|
+
? uiState.theme.border.active
|
|
820
|
+
: uiState.theme.border.primary, paddingX: 2, paddingY: 1, children: currentSection ? (_jsxs(_Fragment, { children: [_jsxs(Box, { paddingLeft: 1, justifyContent: "space-between", width: "100%", children: [_jsx(Text, { bold: true, color: uiState.theme.text.accent, children: currentSection.id === 'model' ? 'Selected LLM Model' : currentSection.name }), rightScrollOffset > 0 && (_jsx(Box, { marginRight: 1, children: _jsx(Text, { color: uiState.theme.text.secondary, children: "\u25B2 More" }) }))] }), _jsx(Text, { children: " " }), _jsx(Box, { flexDirection: "column", flexGrow: 1, children: currentSettings
|
|
821
|
+
.slice(rightScrollOffset, rightScrollOffset + WINDOW_SIZE)
|
|
822
|
+
.map((setting, sliceIdx) => {
|
|
823
|
+
const idx = sliceIdx + rightScrollOffset;
|
|
824
|
+
const isSelected = focusedColumn === 'right' && idx === selectedSettingIndex;
|
|
825
|
+
const isEditing = isEditingValue && isSelected;
|
|
826
|
+
const prevSetting = idx > 0 ? currentSettings[idx - 1] : null;
|
|
827
|
+
if (setting.type === 'header') {
|
|
828
|
+
return (_jsx(Box, { marginTop: 1, paddingLeft: 1, children: _jsx(Text, { bold: true, color: setting.muted
|
|
829
|
+
? uiState.theme.text.secondary
|
|
830
|
+
: uiState.theme.text.accent, dimColor: setting.muted, children: setting.label }) }, `header-${idx}`));
|
|
831
|
+
}
|
|
832
|
+
if (setting.type === 'info') {
|
|
833
|
+
return (_jsxs(Box, { marginTop: idx > 0 && currentSettings[idx - 1].type !== 'header' ? 1 : 0, paddingLeft: 1, children: [_jsx(Box, { width: "30%", children: _jsxs(Text, { color: setting.muted
|
|
834
|
+
? uiState.theme.text.secondary
|
|
835
|
+
: uiState.theme.text.secondary, dimColor: setting.muted, children: [setting.label, setting.label ? ':' : ''] }) }), _jsx(Box, { flexGrow: 1, flexShrink: 1, children: _jsx(Text, { color: setting.muted || setting.muted_value
|
|
836
|
+
? uiState.theme.text.secondary
|
|
837
|
+
: uiState.theme.text.primary, wrap: "wrap", dimColor: setting.muted || setting.muted_value, children: String(setting.value) }) })] }, `info-${idx}`));
|
|
838
|
+
}
|
|
839
|
+
// Determine if we should add marginTop
|
|
840
|
+
const isCompactChoice = setting.type === 'choice' && prevSetting && prevSetting.type === 'choice';
|
|
841
|
+
const marginTop = idx > 0 && prevSetting && prevSetting.type !== 'header' && !isCompactChoice
|
|
842
|
+
? 1
|
|
843
|
+
: 0;
|
|
844
|
+
return (_jsx(Box, { marginTop: marginTop, paddingLeft: 1, children: setting.type === 'choice' ? (_jsx(Box, { children: _jsxs(Text, { bold: isSelected && hasFocus, color: setting.muted
|
|
845
|
+
? uiState.theme.text.secondary
|
|
846
|
+
: isSelected && hasFocus
|
|
847
|
+
? uiState.theme.text.accent
|
|
848
|
+
: uiState.theme.text.primary, dimColor: setting.muted, children: [setting.active ? '●' : '○', " ", setting.label] }) })) : (_jsxs(_Fragment, { children: [_jsx(Box, { width: "40%", children: _jsxs(Text, { bold: isSelected && hasFocus, color: setting.muted
|
|
849
|
+
? uiState.theme.text.secondary
|
|
850
|
+
: isSelected && hasFocus
|
|
851
|
+
? uiState.theme.text.accent
|
|
852
|
+
: uiState.theme.text.primary, dimColor: setting.muted, children: [setting.label, ":"] }) }), _jsx(Box, { width: setting.type === 'keybind' ? '25%' : undefined, children: isEditing ? (_jsxs(Text, { color: uiState.theme.text.accent, children: ["[", editValue, "_] ", _jsx(Text, { dimColor: true, children: "\u21B5" })] })) : (_jsx(Text, { color: setting.muted
|
|
853
|
+
? uiState.theme.text.secondary
|
|
854
|
+
: uiState.theme.text.primary, dimColor: setting.muted, children: setting.type === 'toggle'
|
|
855
|
+
? setting.value
|
|
856
|
+
? '✓ Enabled'
|
|
857
|
+
: '✗ Disabled'
|
|
858
|
+
: String(setting.value) })) }), setting.type === 'keybind' &&
|
|
859
|
+
setting.defaultValue !== undefined &&
|
|
860
|
+
!isEditing && (_jsx(Box, { children: _jsxs(Text, { dimColor: true, color: uiState.theme.text.secondary, children: ["(Def: ", String(setting.defaultValue), ")"] }) }))] })) }, `${setting.id}-${idx}`));
|
|
861
|
+
}) }), _jsx(Box, { justifyContent: "flex-end", width: "100%", children: rightScrollOffset + WINDOW_SIZE < currentSettings.length ? (_jsx(Box, { marginRight: 1, children: _jsx(Text, { color: uiState.theme.text.secondary, children: "\u25BC More" }) })) : (_jsx(Box, { height: 1 }) // Spacer to keep layout stable
|
|
862
|
+
) })] })) : (_jsx(Text, { color: uiState.theme.text.secondary, children: "Select a section to view settings" })) })] })] }));
|
|
863
|
+
}
|
|
864
|
+
//# sourceMappingURL=SettingsPanel.js.map
|