@dexto/tui 1.14.6 → 1.15.0-beta.1
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/dist/InkCLIRefactored.cjs +30 -24
- package/dist/InkCLIRefactored.d.ts.map +1 -1
- package/dist/InkCLIRefactored.js +30 -24
- package/dist/components/ApprovalPrompt.cjs +128 -40
- package/dist/components/ApprovalPrompt.d.ts +2 -0
- package/dist/components/ApprovalPrompt.d.ts.map +1 -1
- package/dist/components/ApprovalPrompt.js +128 -41
- package/dist/components/CustomInput.cjs +4 -3
- package/dist/components/CustomInput.d.ts.map +1 -1
- package/dist/components/CustomInput.js +4 -3
- package/dist/components/DeckArea.cjs +43 -0
- package/dist/components/DeckArea.d.ts +14 -0
- package/dist/components/DeckArea.d.ts.map +1 -0
- package/dist/components/DeckArea.js +19 -0
- package/dist/components/EditableMultiLineInput.cjs +9 -8
- package/dist/components/EditableMultiLineInput.d.ts.map +1 -1
- package/dist/components/EditableMultiLineInput.js +9 -8
- package/dist/components/ElicitationForm.cjs +78 -18
- package/dist/components/ElicitationForm.d.ts.map +1 -1
- package/dist/components/ElicitationForm.js +78 -18
- package/dist/components/ErrorBoundary.cjs +15 -5
- package/dist/components/ErrorBoundary.d.ts.map +1 -1
- package/dist/components/ErrorBoundary.js +15 -5
- package/dist/components/Footer.cjs +41 -86
- package/dist/components/Footer.d.ts +2 -2
- package/dist/components/Footer.d.ts.map +1 -1
- package/dist/components/Footer.js +44 -92
- package/dist/components/Footer.test.cjs +44 -0
- package/dist/components/Footer.test.js +44 -0
- package/dist/components/HistorySearchBar.cjs +6 -5
- package/dist/components/HistorySearchBar.d.ts.map +1 -1
- package/dist/components/HistorySearchBar.js +6 -5
- package/dist/components/MultiLineInput.cjs +6 -5
- package/dist/components/MultiLineInput.d.ts.map +1 -1
- package/dist/components/MultiLineInput.js +6 -5
- package/dist/components/ResourceAutocomplete.cjs +5 -4
- package/dist/components/ResourceAutocomplete.d.ts.map +1 -1
- package/dist/components/ResourceAutocomplete.js +5 -4
- package/dist/components/SignalGates.test.cjs +215 -0
- package/dist/components/SignalGates.test.d.ts +2 -0
- package/dist/components/SignalGates.test.d.ts.map +1 -0
- package/dist/components/SignalGates.test.js +217 -0
- package/dist/components/SlashCommandAutocomplete.cjs +4 -3
- package/dist/components/SlashCommandAutocomplete.d.ts.map +1 -1
- package/dist/components/SlashCommandAutocomplete.js +4 -3
- package/dist/components/StatusBar.cjs +13 -30
- package/dist/components/StatusBar.d.ts +1 -3
- package/dist/components/StatusBar.d.ts.map +1 -1
- package/dist/components/StatusBar.js +13 -30
- package/dist/components/TextBufferInput.cjs +13 -12
- package/dist/components/TextBufferInput.d.ts.map +1 -1
- package/dist/components/TextBufferInput.js +13 -12
- package/dist/components/TodoPanel.cjs +23 -16
- package/dist/components/TodoPanel.d.ts.map +1 -1
- package/dist/components/TodoPanel.js +23 -16
- package/dist/components/base/BaseAutocomplete.cjs +7 -6
- package/dist/components/base/BaseAutocomplete.d.ts.map +1 -1
- package/dist/components/base/BaseAutocomplete.js +7 -6
- package/dist/components/base/BaseSelector.cjs +5 -4
- package/dist/components/base/BaseSelector.d.ts.map +1 -1
- package/dist/components/base/BaseSelector.js +5 -4
- package/dist/components/chat/Footer.cjs +2 -1
- package/dist/components/chat/Footer.d.ts.map +1 -1
- package/dist/components/chat/Footer.js +2 -1
- package/dist/components/chat/Header.cjs +20 -16
- package/dist/components/chat/Header.d.ts.map +1 -1
- package/dist/components/chat/Header.js +20 -16
- package/dist/components/chat/MessageItem.cjs +47 -30
- package/dist/components/chat/MessageItem.d.ts.map +1 -1
- package/dist/components/chat/MessageItem.js +52 -29
- package/dist/components/chat/MessageList.cjs +3 -2
- package/dist/components/chat/MessageList.d.ts.map +1 -1
- package/dist/components/chat/MessageList.js +3 -2
- package/dist/components/chat/QueuedMessagesDisplay.cjs +17 -5
- package/dist/components/chat/QueuedMessagesDisplay.d.ts.map +1 -1
- package/dist/components/chat/QueuedMessagesDisplay.js +18 -6
- package/dist/components/chat/SignalMessage.cjs +116 -0
- package/dist/components/chat/SignalMessage.d.ts +18 -0
- package/dist/components/chat/SignalMessage.d.ts.map +1 -0
- package/dist/components/chat/SignalMessage.js +96 -0
- package/dist/components/chat/SignalMessage.test.cjs +112 -0
- package/dist/components/chat/SignalMessage.test.d.ts +2 -0
- package/dist/components/chat/SignalMessage.test.d.ts.map +1 -0
- package/dist/components/chat/SignalMessage.test.js +116 -0
- package/dist/components/chat/ToolIcon.cjs +6 -5
- package/dist/components/chat/ToolIcon.d.ts.map +1 -1
- package/dist/components/chat/ToolIcon.js +6 -5
- package/dist/components/chat/styled-boxes/ConfigBox.cjs +8 -7
- package/dist/components/chat/styled-boxes/ConfigBox.d.ts.map +1 -1
- package/dist/components/chat/styled-boxes/ConfigBox.js +8 -7
- package/dist/components/chat/styled-boxes/HelpBox.cjs +4 -3
- package/dist/components/chat/styled-boxes/HelpBox.d.ts.map +1 -1
- package/dist/components/chat/styled-boxes/HelpBox.js +4 -3
- package/dist/components/chat/styled-boxes/LogConfigBox.cjs +11 -3
- package/dist/components/chat/styled-boxes/LogConfigBox.d.ts.map +1 -1
- package/dist/components/chat/styled-boxes/LogConfigBox.js +11 -3
- package/dist/components/chat/styled-boxes/SessionHistoryBox.cjs +8 -7
- package/dist/components/chat/styled-boxes/SessionHistoryBox.d.ts.map +1 -1
- package/dist/components/chat/styled-boxes/SessionHistoryBox.js +8 -7
- package/dist/components/chat/styled-boxes/SessionListBox.cjs +19 -11
- package/dist/components/chat/styled-boxes/SessionListBox.d.ts.map +1 -1
- package/dist/components/chat/styled-boxes/SessionListBox.js +19 -11
- package/dist/components/chat/styled-boxes/ShortcutsBox.cjs +4 -3
- package/dist/components/chat/styled-boxes/ShortcutsBox.d.ts.map +1 -1
- package/dist/components/chat/styled-boxes/ShortcutsBox.js +4 -3
- package/dist/components/chat/styled-boxes/StatsBox.cjs +13 -5
- package/dist/components/chat/styled-boxes/StatsBox.d.ts.map +1 -1
- package/dist/components/chat/styled-boxes/StatsBox.js +13 -5
- package/dist/components/chat/styled-boxes/StyledBox.cjs +7 -6
- package/dist/components/chat/styled-boxes/StyledBox.d.ts.map +1 -1
- package/dist/components/chat/styled-boxes/StyledBox.js +7 -6
- package/dist/components/chat/styled-boxes/SyspromptBox.cjs +2 -1
- package/dist/components/chat/styled-boxes/SyspromptBox.d.ts.map +1 -1
- package/dist/components/chat/styled-boxes/SyspromptBox.js +2 -1
- package/dist/components/modes/AlternateBufferCLI.cjs +53 -43
- package/dist/components/modes/AlternateBufferCLI.d.ts.map +1 -1
- package/dist/components/modes/AlternateBufferCLI.js +53 -43
- package/dist/components/modes/StaticCLI.cjs +53 -42
- package/dist/components/modes/StaticCLI.d.ts.map +1 -1
- package/dist/components/modes/StaticCLI.js +53 -42
- package/dist/components/overlays/ApiKeyInput.cjs +12 -11
- package/dist/components/overlays/ApiKeyInput.d.ts.map +1 -1
- package/dist/components/overlays/ApiKeyInput.js +12 -11
- package/dist/components/overlays/ChatGPTUsageCapOverlay.cjs +7 -6
- package/dist/components/overlays/ChatGPTUsageCapOverlay.d.ts.map +1 -1
- package/dist/components/overlays/ChatGPTUsageCapOverlay.js +7 -6
- package/dist/components/overlays/CommandOutputOverlay.cjs +2 -1
- package/dist/components/overlays/CommandOutputOverlay.d.ts.map +1 -1
- package/dist/components/overlays/CommandOutputOverlay.js +2 -1
- package/dist/components/overlays/ConnectOverlay.cjs +10 -9
- package/dist/components/overlays/ConnectOverlay.d.ts.map +1 -1
- package/dist/components/overlays/ConnectOverlay.js +10 -9
- package/dist/components/overlays/ContextStatsOverlay.cjs +48 -37
- package/dist/components/overlays/ContextStatsOverlay.d.ts.map +1 -1
- package/dist/components/overlays/ContextStatsOverlay.js +48 -37
- package/dist/components/overlays/CustomModelWizard.cjs +5 -4
- package/dist/components/overlays/CustomModelWizard.d.ts.map +1 -1
- package/dist/components/overlays/CustomModelWizard.js +5 -4
- package/dist/components/overlays/ExportWizard.cjs +28 -27
- package/dist/components/overlays/ExportWizard.d.ts.map +1 -1
- package/dist/components/overlays/ExportWizard.js +28 -27
- package/dist/components/overlays/InsufficientCreditsOverlay.cjs +25 -9
- package/dist/components/overlays/InsufficientCreditsOverlay.d.ts +2 -0
- package/dist/components/overlays/InsufficientCreditsOverlay.d.ts.map +1 -1
- package/dist/components/overlays/InsufficientCreditsOverlay.js +25 -9
- package/dist/components/overlays/LogLevelSelector.cjs +6 -5
- package/dist/components/overlays/LogLevelSelector.d.ts.map +1 -1
- package/dist/components/overlays/LogLevelSelector.js +6 -5
- package/dist/components/overlays/LoginOverlay.cjs +31 -66
- package/dist/components/overlays/LoginOverlay.d.ts +1 -3
- package/dist/components/overlays/LoginOverlay.d.ts.map +1 -1
- package/dist/components/overlays/LoginOverlay.js +32 -71
- package/dist/components/overlays/LogoutOverlay.cjs +16 -24
- package/dist/components/overlays/LogoutOverlay.d.ts +1 -0
- package/dist/components/overlays/LogoutOverlay.d.ts.map +1 -1
- package/dist/components/overlays/LogoutOverlay.js +18 -38
- package/dist/components/overlays/MarketplaceAddPrompt.cjs +12 -11
- package/dist/components/overlays/MarketplaceAddPrompt.d.ts.map +1 -1
- package/dist/components/overlays/MarketplaceAddPrompt.js +12 -11
- package/dist/components/overlays/MarketplaceBrowser.cjs +27 -26
- package/dist/components/overlays/MarketplaceBrowser.d.ts.map +1 -1
- package/dist/components/overlays/MarketplaceBrowser.js +27 -26
- package/dist/components/overlays/McpAddChoice.cjs +4 -3
- package/dist/components/overlays/McpAddChoice.d.ts.map +1 -1
- package/dist/components/overlays/McpAddChoice.js +4 -3
- package/dist/components/overlays/McpAddSelector.cjs +4 -3
- package/dist/components/overlays/McpAddSelector.d.ts.map +1 -1
- package/dist/components/overlays/McpAddSelector.js +4 -3
- package/dist/components/overlays/McpCustomTypeSelector.cjs +4 -3
- package/dist/components/overlays/McpCustomTypeSelector.d.ts.map +1 -1
- package/dist/components/overlays/McpCustomTypeSelector.js +4 -3
- package/dist/components/overlays/McpCustomWizard.cjs +9 -8
- package/dist/components/overlays/McpCustomWizard.d.ts.map +1 -1
- package/dist/components/overlays/McpCustomWizard.js +9 -8
- package/dist/components/overlays/McpRemoveSelector.cjs +5 -4
- package/dist/components/overlays/McpRemoveSelector.d.ts.map +1 -1
- package/dist/components/overlays/McpRemoveSelector.js +5 -4
- package/dist/components/overlays/McpSelector.cjs +4 -3
- package/dist/components/overlays/McpSelector.d.ts.map +1 -1
- package/dist/components/overlays/McpSelector.js +4 -3
- package/dist/components/overlays/McpServerActions.cjs +7 -6
- package/dist/components/overlays/McpServerActions.d.ts.map +1 -1
- package/dist/components/overlays/McpServerActions.js +7 -6
- package/dist/components/overlays/McpServerList.cjs +6 -5
- package/dist/components/overlays/McpServerList.d.ts.map +1 -1
- package/dist/components/overlays/McpServerList.js +6 -5
- package/dist/components/overlays/ModelSelectorRefactored.cjs +32 -17
- package/dist/components/overlays/ModelSelectorRefactored.d.ts.map +1 -1
- package/dist/components/overlays/ModelSelectorRefactored.js +32 -17
- package/dist/components/overlays/PermissionsSelector.cjs +6 -5
- package/dist/components/overlays/PermissionsSelector.d.ts.map +1 -1
- package/dist/components/overlays/PermissionsSelector.js +6 -5
- package/dist/components/overlays/PluginActions.cjs +7 -6
- package/dist/components/overlays/PluginActions.d.ts.map +1 -1
- package/dist/components/overlays/PluginActions.js +7 -6
- package/dist/components/overlays/PluginList.cjs +12 -11
- package/dist/components/overlays/PluginList.d.ts.map +1 -1
- package/dist/components/overlays/PluginList.js +12 -11
- package/dist/components/overlays/PluginManager.cjs +13 -5
- package/dist/components/overlays/PluginManager.d.ts.map +1 -1
- package/dist/components/overlays/PluginManager.js +13 -5
- package/dist/components/overlays/PromptAddChoice.cjs +5 -4
- package/dist/components/overlays/PromptAddChoice.d.ts.map +1 -1
- package/dist/components/overlays/PromptAddChoice.js +5 -4
- package/dist/components/overlays/PromptAddWizard.cjs +10 -9
- package/dist/components/overlays/PromptAddWizard.d.ts.map +1 -1
- package/dist/components/overlays/PromptAddWizard.js +10 -9
- package/dist/components/overlays/PromptDeleteSelector.cjs +6 -5
- package/dist/components/overlays/PromptDeleteSelector.d.ts.map +1 -1
- package/dist/components/overlays/PromptDeleteSelector.js +6 -5
- package/dist/components/overlays/PromptList.cjs +10 -9
- package/dist/components/overlays/PromptList.d.ts.map +1 -1
- package/dist/components/overlays/PromptList.js +10 -9
- package/dist/components/overlays/ReasoningOverlay.cjs +30 -23
- package/dist/components/overlays/ReasoningOverlay.d.ts.map +1 -1
- package/dist/components/overlays/ReasoningOverlay.js +30 -23
- package/dist/components/overlays/SearchOverlay.cjs +15 -14
- package/dist/components/overlays/SearchOverlay.d.ts.map +1 -1
- package/dist/components/overlays/SearchOverlay.js +15 -14
- package/dist/components/overlays/SessionRenameOverlay.cjs +9 -8
- package/dist/components/overlays/SessionRenameOverlay.d.ts.map +1 -1
- package/dist/components/overlays/SessionRenameOverlay.js +9 -8
- package/dist/components/overlays/SessionSelectorRefactored.cjs +4 -3
- package/dist/components/overlays/SessionSelectorRefactored.d.ts.map +1 -1
- package/dist/components/overlays/SessionSelectorRefactored.js +4 -3
- package/dist/components/overlays/SessionSubcommandSelector.cjs +4 -3
- package/dist/components/overlays/SessionSubcommandSelector.d.ts.map +1 -1
- package/dist/components/overlays/SessionSubcommandSelector.js +4 -3
- package/dist/components/overlays/SoundsSelector.cjs +15 -7
- package/dist/components/overlays/SoundsSelector.d.ts.map +1 -1
- package/dist/components/overlays/SoundsSelector.js +15 -7
- package/dist/components/overlays/StreamSelector.cjs +5 -4
- package/dist/components/overlays/StreamSelector.d.ts.map +1 -1
- package/dist/components/overlays/StreamSelector.js +5 -4
- package/dist/components/overlays/ToolBrowser.cjs +73 -56
- package/dist/components/overlays/ToolBrowser.d.ts.map +1 -1
- package/dist/components/overlays/ToolBrowser.js +73 -56
- package/dist/components/overlays/custom-model-wizard/LocalModelWizard.cjs +103 -69
- package/dist/components/overlays/custom-model-wizard/LocalModelWizard.d.ts.map +1 -1
- package/dist/components/overlays/custom-model-wizard/LocalModelWizard.js +103 -69
- package/dist/components/overlays/custom-model-wizard/provider-config.cjs +4 -4
- package/dist/components/overlays/custom-model-wizard/provider-config.js +4 -4
- package/dist/components/overlays/custom-model-wizard/shared/ApiKeyStep.cjs +3 -2
- package/dist/components/overlays/custom-model-wizard/shared/ApiKeyStep.d.ts.map +1 -1
- package/dist/components/overlays/custom-model-wizard/shared/ApiKeyStep.js +3 -2
- package/dist/components/overlays/custom-model-wizard/shared/ProviderSelector.cjs +5 -4
- package/dist/components/overlays/custom-model-wizard/shared/ProviderSelector.d.ts.map +1 -1
- package/dist/components/overlays/custom-model-wizard/shared/ProviderSelector.js +5 -4
- package/dist/components/overlays/custom-model-wizard/shared/SetupInfoBanner.cjs +4 -3
- package/dist/components/overlays/custom-model-wizard/shared/SetupInfoBanner.d.ts.map +1 -1
- package/dist/components/overlays/custom-model-wizard/shared/SetupInfoBanner.js +4 -3
- package/dist/components/overlays/custom-model-wizard/shared/WizardStepInput.cjs +7 -6
- package/dist/components/overlays/custom-model-wizard/shared/WizardStepInput.d.ts.map +1 -1
- package/dist/components/overlays/custom-model-wizard/shared/WizardStepInput.js +7 -6
- package/dist/components/renderers/DiffRenderer.cjs +5 -4
- package/dist/components/renderers/DiffRenderer.d.ts.map +1 -1
- package/dist/components/renderers/DiffRenderer.js +5 -4
- package/dist/components/renderers/FilePreviewRenderer.cjs +23 -13
- package/dist/components/renderers/FilePreviewRenderer.d.ts.map +1 -1
- package/dist/components/renderers/FilePreviewRenderer.js +23 -13
- package/dist/components/renderers/FileRenderer.cjs +9 -8
- package/dist/components/renderers/FileRenderer.d.ts.map +1 -1
- package/dist/components/renderers/FileRenderer.js +9 -8
- package/dist/components/renderers/GenericRenderer.cjs +5 -4
- package/dist/components/renderers/GenericRenderer.d.ts.map +1 -1
- package/dist/components/renderers/GenericRenderer.js +5 -4
- package/dist/components/renderers/SearchRenderer.cjs +4 -3
- package/dist/components/renderers/SearchRenderer.d.ts.map +1 -1
- package/dist/components/renderers/SearchRenderer.js +4 -3
- package/dist/components/renderers/ShellRenderer.cjs +6 -5
- package/dist/components/renderers/ShellRenderer.d.ts.map +1 -1
- package/dist/components/renderers/ShellRenderer.js +6 -5
- package/dist/components/renderers/SignalDiff.cjs +139 -0
- package/dist/components/renderers/SignalDiff.d.ts +21 -0
- package/dist/components/renderers/SignalDiff.d.ts.map +1 -0
- package/dist/components/renderers/SignalDiff.js +106 -0
- package/dist/components/renderers/SignalDiff.test.cjs +78 -0
- package/dist/components/renderers/SignalDiff.test.d.ts +2 -0
- package/dist/components/renderers/SignalDiff.test.d.ts.map +1 -0
- package/dist/components/renderers/SignalDiff.test.js +77 -0
- package/dist/components/renderers/diff-shared.cjs +13 -7
- package/dist/components/renderers/diff-shared.d.ts +5 -0
- package/dist/components/renderers/diff-shared.d.ts.map +1 -1
- package/dist/components/renderers/diff-shared.js +12 -7
- package/dist/components/shared/FocusOverlayFrame.cjs +3 -2
- package/dist/components/shared/FocusOverlayFrame.d.ts.map +1 -1
- package/dist/components/shared/FocusOverlayFrame.js +3 -2
- package/dist/components/shared/HintBar.cjs +2 -1
- package/dist/components/shared/HintBar.d.ts.map +1 -1
- package/dist/components/shared/HintBar.js +2 -1
- package/dist/components/shared/MarkdownText.cjs +36 -53
- package/dist/components/shared/MarkdownText.d.ts +2 -0
- package/dist/components/shared/MarkdownText.d.ts.map +1 -1
- package/dist/components/shared/MarkdownText.js +36 -54
- package/dist/components/shared/VirtualizedList.cjs +2 -1
- package/dist/components/shared/VirtualizedList.d.ts.map +1 -1
- package/dist/components/shared/VirtualizedList.js +2 -1
- package/dist/containers/OverlayContainer.cjs +32 -44
- package/dist/containers/OverlayContainer.d.ts.map +1 -1
- package/dist/containers/OverlayContainer.js +32 -44
- package/dist/contexts/KeypressContext.cjs +7 -1
- package/dist/contexts/KeypressContext.d.ts.map +1 -1
- package/dist/contexts/KeypressContext.js +7 -1
- package/dist/contexts/KeypressContext.test.cjs +82 -0
- package/dist/contexts/KeypressContext.test.d.ts +2 -0
- package/dist/contexts/KeypressContext.test.d.ts.map +1 -0
- package/dist/contexts/KeypressContext.test.js +81 -0
- package/dist/hooks/useAgentEvents.cjs +1 -74
- package/dist/hooks/useAgentEvents.d.ts.map +1 -1
- package/dist/hooks/useAgentEvents.js +1 -74
- package/dist/hooks/useCLIState.cjs +0 -3
- package/dist/hooks/useCLIState.d.ts.map +1 -1
- package/dist/hooks/useCLIState.js +0 -3
- package/dist/hooks/useContextStats.cjs +91 -0
- package/dist/hooks/useContextStats.d.ts +13 -0
- package/dist/hooks/useContextStats.d.ts.map +1 -0
- package/dist/hooks/useContextStats.js +67 -0
- package/dist/hooks/useDeckState.cjs +140 -0
- package/dist/hooks/useDeckState.d.ts +20 -0
- package/dist/hooks/useDeckState.d.ts.map +1 -0
- package/dist/hooks/useDeckState.js +123 -0
- package/dist/hooks/useDextoCredits.cjs +81 -0
- package/dist/hooks/useDextoCredits.d.ts +14 -0
- package/dist/hooks/useDextoCredits.d.ts.map +1 -0
- package/dist/hooks/useDextoCredits.js +56 -0
- package/dist/hooks/useDextoCredits.test.cjs +73 -0
- package/dist/hooks/useDextoCredits.test.d.ts +2 -0
- package/dist/hooks/useDextoCredits.test.d.ts.map +1 -0
- package/dist/hooks/useDextoCredits.test.js +72 -0
- package/dist/hooks/useElapsedTime.cjs +13 -24
- package/dist/hooks/useElapsedTime.d.ts +3 -1
- package/dist/hooks/useElapsedTime.d.ts.map +1 -1
- package/dist/hooks/useElapsedTime.js +13 -24
- package/dist/hooks/useElapsedTime.test.cjs +35 -0
- package/dist/hooks/useElapsedTime.test.d.ts +2 -0
- package/dist/hooks/useElapsedTime.test.d.ts.map +1 -0
- package/dist/hooks/useElapsedTime.test.js +34 -0
- package/dist/hooks/useGitDirtyFiles.cjs +59 -0
- package/dist/hooks/useGitDirtyFiles.d.ts +5 -0
- package/dist/hooks/useGitDirtyFiles.d.ts.map +1 -0
- package/dist/hooks/useGitDirtyFiles.js +34 -0
- package/dist/hooks/useGitDirtyFiles.test.cjs +9 -0
- package/dist/hooks/useGitDirtyFiles.test.d.ts +2 -0
- package/dist/hooks/useGitDirtyFiles.test.d.ts.map +1 -0
- package/dist/hooks/useGitDirtyFiles.test.js +8 -0
- package/dist/hooks/useHeldValue.cjs +33 -0
- package/dist/hooks/useHeldValue.d.ts +3 -0
- package/dist/hooks/useHeldValue.d.ts.map +1 -0
- package/dist/hooks/useHeldValue.js +9 -0
- package/dist/hooks/useHeldValue.test.cjs +31 -0
- package/dist/hooks/useHeldValue.test.d.ts +2 -0
- package/dist/hooks/useHeldValue.test.d.ts.map +1 -0
- package/dist/hooks/useHeldValue.test.js +30 -0
- package/dist/hooks/useInputOrchestrator.cjs +22 -30
- package/dist/hooks/useInputOrchestrator.d.ts +2 -0
- package/dist/hooks/useInputOrchestrator.d.ts.map +1 -1
- package/dist/hooks/useInputOrchestrator.js +21 -30
- package/dist/hooks/useInputOrchestrator.test.cjs +24 -0
- package/dist/hooks/useInputOrchestrator.test.d.ts +2 -0
- package/dist/hooks/useInputOrchestrator.test.d.ts.map +1 -0
- package/dist/hooks/useInputOrchestrator.test.js +23 -0
- package/dist/host/index.cjs +22 -49
- package/dist/host/index.d.ts +18 -72
- package/dist/host/index.d.ts.map +1 -1
- package/dist/host/index.js +18 -42
- package/dist/host/index.test.cjs +21 -35
- package/dist/host/index.test.js +22 -40
- package/dist/index.d.cts +13 -52
- package/dist/interactive-commands/command-parser.cjs +13 -21
- package/dist/interactive-commands/command-parser.d.ts.map +1 -1
- package/dist/interactive-commands/command-parser.js +13 -11
- package/dist/interactive-commands/general-commands.cjs +8 -7
- package/dist/interactive-commands/general-commands.d.ts.map +1 -1
- package/dist/interactive-commands/general-commands.js +8 -7
- package/dist/services/processStream.cjs +33 -21
- package/dist/services/processStream.d.ts.map +1 -1
- package/dist/services/processStream.js +34 -22
- package/dist/services/processStream.test.cjs +52 -4
- package/dist/services/processStream.test.js +52 -4
- package/dist/signal/background.cjs +154 -0
- package/dist/signal/background.d.ts +43 -0
- package/dist/signal/background.d.ts.map +1 -0
- package/dist/signal/background.js +124 -0
- package/dist/signal/background.test.cjs +186 -0
- package/dist/signal/background.test.d.ts +2 -0
- package/dist/signal/background.test.d.ts.map +1 -0
- package/dist/signal/background.test.js +192 -0
- package/dist/signal/caps.cjs +100 -0
- package/dist/signal/caps.d.ts +23 -0
- package/dist/signal/caps.d.ts.map +1 -0
- package/dist/signal/caps.js +73 -0
- package/dist/signal/caps.test.cjs +56 -0
- package/dist/signal/caps.test.d.ts +2 -0
- package/dist/signal/caps.test.d.ts.map +1 -0
- package/dist/signal/caps.test.js +55 -0
- package/dist/signal/components.cjs +257 -0
- package/dist/signal/components.d.ts +120 -0
- package/dist/signal/components.d.ts.map +1 -0
- package/dist/signal/components.js +226 -0
- package/dist/signal/components.test.cjs +156 -0
- package/dist/signal/components.test.d.ts +2 -0
- package/dist/signal/components.test.d.ts.map +1 -0
- package/dist/signal/components.test.js +133 -0
- package/dist/signal/cut.cjs +103 -0
- package/dist/signal/cut.d.ts +11 -0
- package/dist/signal/cut.d.ts.map +1 -0
- package/dist/signal/cut.js +77 -0
- package/dist/signal/cut.test.cjs +20 -0
- package/dist/signal/cut.test.d.ts +2 -0
- package/dist/signal/cut.test.d.ts.map +1 -0
- package/dist/signal/cut.test.js +19 -0
- package/dist/signal/deck-layout.cjs +57 -0
- package/dist/signal/deck-layout.d.ts +29 -0
- package/dist/signal/deck-layout.d.ts.map +1 -0
- package/dist/signal/deck-layout.js +30 -0
- package/dist/signal/deck-parts.cjs +243 -0
- package/dist/signal/deck-parts.d.ts +55 -0
- package/dist/signal/deck-parts.d.ts.map +1 -0
- package/dist/signal/deck-parts.js +205 -0
- package/dist/signal/deck.test.cjs +311 -0
- package/dist/signal/deck.test.d.ts +2 -0
- package/dist/signal/deck.test.d.ts.map +1 -0
- package/dist/signal/deck.test.js +288 -0
- package/dist/signal/glyphs.cjs +195 -0
- package/dist/signal/glyphs.d.ts +8 -0
- package/dist/signal/glyphs.d.ts.map +1 -0
- package/dist/signal/glyphs.js +171 -0
- package/dist/signal/glyphs.test.cjs +17 -0
- package/dist/signal/glyphs.test.d.ts +2 -0
- package/dist/signal/glyphs.test.d.ts.map +1 -0
- package/dist/signal/glyphs.test.js +16 -0
- package/dist/signal/harness.cjs +103 -0
- package/dist/signal/harness.d.ts +70 -0
- package/dist/signal/harness.d.ts.map +1 -0
- package/dist/signal/harness.js +67 -0
- package/dist/signal/harness.test.cjs +84 -0
- package/dist/signal/harness.test.d.ts +2 -0
- package/dist/signal/harness.test.d.ts.map +1 -0
- package/dist/signal/harness.test.js +61 -0
- package/dist/signal/index.cjs +76 -0
- package/dist/signal/index.d.ts +8 -0
- package/dist/signal/index.d.ts.map +1 -0
- package/dist/signal/index.js +45 -0
- package/dist/signal/kit.snapshot.test.cjs +56 -0
- package/dist/signal/kit.snapshot.test.d.ts +2 -0
- package/dist/signal/kit.snapshot.test.d.ts.map +1 -0
- package/dist/signal/kit.snapshot.test.js +55 -0
- package/dist/signal/no-raw-colours.test.cjs +32 -0
- package/dist/signal/no-raw-colours.test.d.ts +2 -0
- package/dist/signal/no-raw-colours.test.d.ts.map +1 -0
- package/dist/signal/no-raw-colours.test.js +30 -0
- package/dist/signal/paint.cjs +76 -0
- package/dist/signal/paint.d.ts +15 -0
- package/dist/signal/paint.d.ts.map +1 -0
- package/dist/signal/paint.js +41 -0
- package/dist/signal/paint.test.cjs +98 -0
- package/dist/signal/paint.test.d.ts +2 -0
- package/dist/signal/paint.test.d.ts.map +1 -0
- package/dist/signal/paint.test.js +75 -0
- package/dist/signal/tone.cjs +109 -0
- package/dist/signal/tone.d.ts +17 -0
- package/dist/signal/tone.d.ts.map +1 -0
- package/dist/signal/tone.js +83 -0
- package/dist/signal/tone.test.cjs +70 -0
- package/dist/signal/tone.test.d.ts +2 -0
- package/dist/signal/tone.test.d.ts.map +1 -0
- package/dist/signal/tone.test.js +69 -0
- package/dist/signal/trace.cjs +142 -0
- package/dist/signal/trace.d.ts +41 -0
- package/dist/signal/trace.d.ts.map +1 -0
- package/dist/signal/trace.js +113 -0
- package/dist/signal/trace.test.cjs +50 -0
- package/dist/signal/trace.test.d.ts +2 -0
- package/dist/signal/trace.test.d.ts.map +1 -0
- package/dist/signal/trace.test.js +49 -0
- package/dist/signal/use-trace.cjs +73 -0
- package/dist/signal/use-trace.d.ts +5 -0
- package/dist/signal/use-trace.d.ts.map +1 -0
- package/dist/signal/use-trace.js +48 -0
- package/dist/signal/wordmark-art.generated.cjs +375 -0
- package/dist/signal/wordmark-art.generated.d.ts +3 -0
- package/dist/signal/wordmark-art.generated.d.ts.map +1 -0
- package/dist/signal/wordmark-art.generated.js +351 -0
- package/dist/signal/wordmark.cjs +60 -0
- package/dist/signal/wordmark.d.ts +23 -0
- package/dist/signal/wordmark.d.ts.map +1 -0
- package/dist/signal/wordmark.js +34 -0
- package/dist/signal/wordmark.test.cjs +71 -0
- package/dist/signal/wordmark.test.d.ts +2 -0
- package/dist/signal/wordmark.test.d.ts.map +1 -0
- package/dist/signal/wordmark.test.js +70 -0
- package/dist/state/initialState.cjs +0 -3
- package/dist/state/initialState.d.ts.map +1 -1
- package/dist/state/initialState.js +0 -3
- package/dist/state/types.d.ts +13 -7
- package/dist/state/types.d.ts.map +1 -1
- package/dist/utils/approval-response.cjs +45 -0
- package/dist/utils/approval-response.d.ts +14 -0
- package/dist/utils/approval-response.d.ts.map +1 -0
- package/dist/utils/approval-response.js +21 -0
- package/dist/utils/approval-response.test.cjs +49 -0
- package/dist/utils/approval-response.test.d.ts +2 -0
- package/dist/utils/approval-response.test.d.ts.map +1 -0
- package/dist/utils/approval-response.test.js +55 -0
- package/dist/utils/approvalScope.cjs +12 -0
- package/dist/utils/approvalScope.d.ts.map +1 -1
- package/dist/utils/approvalScope.js +12 -0
- package/dist/utils/approvalScope.test.cjs +23 -0
- package/dist/utils/approvalScope.test.d.ts +2 -0
- package/dist/utils/approvalScope.test.d.ts.map +1 -0
- package/dist/utils/approvalScope.test.js +22 -0
- package/dist/utils/background-failure.cjs +51 -0
- package/dist/utils/background-failure.d.ts +12 -0
- package/dist/utils/background-failure.d.ts.map +1 -0
- package/dist/utils/background-failure.js +26 -0
- package/dist/utils/chatgpt-rate-limit.cjs +10 -0
- package/dist/utils/chatgpt-rate-limit.d.ts +9 -0
- package/dist/utils/chatgpt-rate-limit.d.ts.map +1 -1
- package/dist/utils/chatgpt-rate-limit.js +9 -0
- package/dist/utils/chatgpt-rate-limit.test.cjs +10 -0
- package/dist/utils/chatgpt-rate-limit.test.js +11 -0
- package/dist/utils/deck-state.cjs +107 -0
- package/dist/utils/deck-state.d.ts +79 -0
- package/dist/utils/deck-state.d.ts.map +1 -0
- package/dist/utils/deck-state.js +76 -0
- package/dist/utils/deck-state.test.cjs +208 -0
- package/dist/utils/deck-state.test.d.ts +2 -0
- package/dist/utils/deck-state.test.d.ts.map +1 -0
- package/dist/utils/deck-state.test.js +216 -0
- package/dist/utils/fault-block.cjs +37 -0
- package/dist/utils/fault-block.d.ts +13 -0
- package/dist/utils/fault-block.d.ts.map +1 -0
- package/dist/utils/fault-block.js +13 -0
- package/dist/utils/fault-block.test.cjs +23 -0
- package/dist/utils/fault-block.test.d.ts +2 -0
- package/dist/utils/fault-block.test.d.ts.map +1 -0
- package/dist/utils/fault-block.test.js +22 -0
- package/dist/utils/llm-provider-display.cjs +1 -1
- package/dist/utils/llm-provider-display.js +1 -1
- package/dist/utils/messageFormatting.cjs +26 -23
- package/dist/utils/messageFormatting.d.ts +5 -2
- package/dist/utils/messageFormatting.d.ts.map +1 -1
- package/dist/utils/messageFormatting.js +25 -21
- package/dist/utils/messageFormatting.test.cjs +34 -0
- package/dist/utils/messageFormatting.test.js +35 -1
- package/dist/utils/reasoning-variant.cjs +35 -0
- package/dist/utils/reasoning-variant.d.ts +13 -0
- package/dist/utils/reasoning-variant.d.ts.map +1 -0
- package/dist/utils/reasoning-variant.js +11 -0
- package/dist/utils/resize-reflow.cjs +119 -0
- package/dist/utils/resize-reflow.d.ts +18 -0
- package/dist/utils/resize-reflow.d.ts.map +1 -0
- package/dist/utils/resize-reflow.js +83 -0
- package/dist/utils/resize-reflow.test.cjs +100 -0
- package/dist/utils/resize-reflow.test.d.ts +2 -0
- package/dist/utils/resize-reflow.test.d.ts.map +1 -0
- package/dist/utils/resize-reflow.test.js +99 -0
- package/dist/utils/tool-step.cjs +183 -0
- package/dist/utils/tool-step.d.ts +28 -0
- package/dist/utils/tool-step.d.ts.map +1 -0
- package/dist/utils/tool-step.js +156 -0
- package/dist/utils/tool-step.test.cjs +263 -0
- package/dist/utils/tool-step.test.d.ts +2 -0
- package/dist/utils/tool-step.test.d.ts.map +1 -0
- package/dist/utils/tool-step.test.js +262 -0
- package/package.json +9 -5
- package/dist/components/BackgroundTasksPanel.cjs +0 -117
- package/dist/components/BackgroundTasksPanel.d.ts +0 -18
- package/dist/components/BackgroundTasksPanel.d.ts.map +0 -1
- package/dist/components/BackgroundTasksPanel.js +0 -93
|
@@ -38,6 +38,7 @@ var import_useTerminalSize = require("../../hooks/useTerminalSize.js");
|
|
|
38
38
|
var import_clipboardUtils = require("../../utils/clipboardUtils.js");
|
|
39
39
|
var import_overlaySizing = require("../../utils/overlaySizing.js");
|
|
40
40
|
var import_HintBar = require("../shared/HintBar.js");
|
|
41
|
+
var import_signal = require("../../signal/index.js");
|
|
41
42
|
const LIST_ACTIONS = ["view", "config", "back"];
|
|
42
43
|
const ToolBrowser = (0, import_react.forwardRef)(function ToolBrowser2({ isVisible, onClose, agent, sessionId }, ref) {
|
|
43
44
|
const { columns, rows } = (0, import_useTerminalSize.useTerminalSize)();
|
|
@@ -569,8 +570,8 @@ const ToolBrowser = (0, import_react.forwardRef)(function ToolBrowser2({ isVisib
|
|
|
569
570
|
}
|
|
570
571
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", width: columns, children: [
|
|
571
572
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { paddingX: 0, paddingY: 0, children: [
|
|
572
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
573
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
573
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("teal"), bold: true, children: "Tools" }),
|
|
574
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
|
|
574
575
|
" ",
|
|
575
576
|
"(",
|
|
576
577
|
filteredTools.length,
|
|
@@ -583,8 +584,8 @@ const ToolBrowser = (0, import_react.forwardRef)(function ToolBrowser2({ isVisib
|
|
|
583
584
|
] })
|
|
584
585
|
] }),
|
|
585
586
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { paddingX: 0, paddingY: 0, marginTop: 1, children: [
|
|
586
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
587
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: searchQuery ? "
|
|
587
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "Search: " }),
|
|
588
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: searchQuery ? (0, import_signal.tone)("hi") : (0, import_signal.tone)("dim"), wrap: "truncate-end", children: searchQuery || "Type to filter tools\u2026" })
|
|
588
589
|
] }),
|
|
589
590
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { flexDirection: "column", height: maxVisibleTools, marginTop: 1, children: isLoading || filteredTools.length === 0 ? Array.from({ length: maxVisibleTools }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: " " }) }, `tool-empty-${index}`)) : Array.from({ length: maxVisibleTools }, (_, rowIndex) => {
|
|
590
591
|
const tool = visibleTools[rowIndex];
|
|
@@ -594,27 +595,40 @@ const ToolBrowser = (0, import_react.forwardRef)(function ToolBrowser2({ isVisib
|
|
|
594
595
|
const actualIndex = scrollOffset + rowIndex;
|
|
595
596
|
const isSelected = actualIndex === selectedIndex;
|
|
596
597
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { paddingX: 0, paddingY: 0, children: [
|
|
597
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: isSelected ? "
|
|
598
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
598
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: isSelected ? (0, import_signal.tone)("teal") : (0, import_signal.tone)("hi"), children: isSelected ? "\u25B6 " : " " }),
|
|
599
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
600
|
+
import_ink.Text,
|
|
601
|
+
{
|
|
602
|
+
color: isSelected ? (0, import_signal.tone)("teal") : (0, import_signal.tone)("hi"),
|
|
603
|
+
bold: isSelected,
|
|
604
|
+
children: truncateText(tool.name, 35)
|
|
605
|
+
}
|
|
606
|
+
),
|
|
607
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
608
|
+
import_ink.Text,
|
|
609
|
+
{
|
|
610
|
+
color: tool.source === "local" ? (0, import_signal.tone)("faint") : (0, import_signal.tone)("fg"),
|
|
611
|
+
children: [
|
|
612
|
+
" ",
|
|
613
|
+
"[",
|
|
614
|
+
tool.source === "local" ? "Local" : "MCP",
|
|
615
|
+
"]"
|
|
616
|
+
]
|
|
617
|
+
}
|
|
618
|
+
),
|
|
619
|
+
tool.serverName && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
|
|
606
620
|
" (",
|
|
607
621
|
tool.serverName,
|
|
608
622
|
")"
|
|
609
623
|
] }),
|
|
610
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: tool.isEnabled ? "
|
|
624
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: tool.isEnabled ? (0, import_signal.tone)("add") : (0, import_signal.tone)("red"), children: [
|
|
611
625
|
" ",
|
|
612
626
|
tool.isEnabled ? "Enabled" : "Disabled"
|
|
613
627
|
] }),
|
|
614
|
-
tool.isAutoApproved && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
628
|
+
tool.isAutoApproved && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("amberDim"), children: " [auto-approved]" })
|
|
615
629
|
] }, tool.name);
|
|
616
630
|
}) }),
|
|
617
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: loadError ? "red" : "
|
|
631
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: loadError ? (0, import_signal.tone)("red") : (0, import_signal.tone)("dim"), wrap: "truncate-end", children: detailLine }) }),
|
|
618
632
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_HintBar.HintBar, { hints: ["\u2191\u2193 navigate", "Enter options", "Esc close"] }) })
|
|
619
633
|
] });
|
|
620
634
|
});
|
|
@@ -662,16 +676,16 @@ function buildDetailLineData(tool, maxWidth) {
|
|
|
662
676
|
function renderDetailLine(line, _index) {
|
|
663
677
|
switch (line.type) {
|
|
664
678
|
case "title":
|
|
665
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
679
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("teal"), bold: true, children: line.text });
|
|
666
680
|
case "source":
|
|
667
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: line.source === "local" ? "
|
|
681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: line.source === "local" ? (0, import_signal.tone)("faint") : (0, import_signal.tone)("fg"), children: [
|
|
668
682
|
line.source === "local" ? "Local Tool" : "MCP Tool",
|
|
669
683
|
line.serverName ? ` (${line.serverName})` : ""
|
|
670
684
|
] });
|
|
671
685
|
case "empty":
|
|
672
686
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: " " });
|
|
673
687
|
case "header":
|
|
674
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: line.text });
|
|
675
689
|
case "description":
|
|
676
690
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
677
691
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: " " }),
|
|
@@ -680,23 +694,23 @@ function renderDetailLine(line, _index) {
|
|
|
680
694
|
case "param-name":
|
|
681
695
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
682
696
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: " " }),
|
|
683
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
684
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
697
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("teal"), children: line.name }),
|
|
698
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
|
|
685
699
|
" (",
|
|
686
700
|
line.paramType,
|
|
687
701
|
")"
|
|
688
702
|
] }),
|
|
689
|
-
line.required && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "red", children: " *required" })
|
|
703
|
+
line.required && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("red"), children: " *required" })
|
|
690
704
|
] });
|
|
691
705
|
case "param-desc":
|
|
692
706
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
693
707
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: " " }),
|
|
694
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
708
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: line.text })
|
|
695
709
|
] });
|
|
696
710
|
case "param-enum":
|
|
697
711
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
698
712
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: " " }),
|
|
699
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
713
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
|
|
700
714
|
"Allowed: ",
|
|
701
715
|
line.values.join(" | ")
|
|
702
716
|
] })
|
|
@@ -710,25 +724,25 @@ function ToolActionsMenu({
|
|
|
710
724
|
}) {
|
|
711
725
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", width: columns, children: [
|
|
712
726
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { paddingX: 0, paddingY: 0, children: [
|
|
713
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
714
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
727
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("teal"), bold: true, children: "Tool Options" }),
|
|
728
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
|
|
715
729
|
" ",
|
|
716
730
|
tool.name
|
|
717
731
|
] })
|
|
718
732
|
] }),
|
|
719
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: listActionsIndex === 0 ? "
|
|
733
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: listActionsIndex === 0 ? (0, import_signal.tone)("teal") : (0, import_signal.tone)("dim"), children: [
|
|
720
734
|
listActionsIndex === 0 ? "\u25B6 " : " ",
|
|
721
735
|
"View details"
|
|
722
736
|
] }) }),
|
|
723
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: listActionsIndex === 1 ? "
|
|
737
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: listActionsIndex === 1 ? (0, import_signal.tone)("teal") : (0, import_signal.tone)("dim"), children: [
|
|
724
738
|
listActionsIndex === 1 ? "\u25B6 " : " ",
|
|
725
739
|
"Edit tool settings"
|
|
726
740
|
] }) }),
|
|
727
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: listActionsIndex === 2 ? "
|
|
741
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: listActionsIndex === 2 ? (0, import_signal.tone)("teal") : (0, import_signal.tone)("dim"), children: [
|
|
728
742
|
listActionsIndex === 2 ? "\u25B6 " : " ",
|
|
729
743
|
"Back"
|
|
730
744
|
] }) }),
|
|
731
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
745
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "\u2191\u2193 select \xB7 Enter confirm \xB7 Esc back" }) })
|
|
732
746
|
] });
|
|
733
747
|
}
|
|
734
748
|
function ToolDetailView({
|
|
@@ -749,21 +763,24 @@ function ToolDetailView({
|
|
|
749
763
|
const hasMoreBelow = clampedOffset + maxVisibleLines < totalLines;
|
|
750
764
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", width: columns, children: [
|
|
751
765
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { paddingX: 0, paddingY: 0, children: [
|
|
752
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
753
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
754
|
-
|
|
766
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("teal"), bold: true, children: "Tool Details" }),
|
|
767
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
|
|
768
|
+
" ",
|
|
769
|
+
"- \u2191\u2193 scroll, c copy schema, Enter settings, Esc back"
|
|
770
|
+
] }),
|
|
771
|
+
copyFeedback && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("add"), bold: true, children: [
|
|
755
772
|
" ",
|
|
756
773
|
copyFeedback
|
|
757
774
|
] })
|
|
758
775
|
] }),
|
|
759
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
760
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
776
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "\u2500".repeat(Math.min(60, columns - 2)) }) }),
|
|
777
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: hasMoreAbove ? `\u2191 ${clampedOffset} more above` : " " }) }),
|
|
761
778
|
Array.from({ length: maxVisibleLines }, (_, i) => {
|
|
762
779
|
const absoluteIndex = clampedOffset + i;
|
|
763
780
|
const line = lineData[absoluteIndex];
|
|
764
781
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: line ? renderDetailLine(line, absoluteIndex) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: " " }) }, i);
|
|
765
782
|
}),
|
|
766
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
783
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: hasMoreBelow ? `\u2193 ${totalLines - clampedOffset - maxVisibleLines} more below` : " " }) })
|
|
767
784
|
] });
|
|
768
785
|
}
|
|
769
786
|
function ToolSettingsView({
|
|
@@ -776,40 +793,40 @@ function ToolSettingsView({
|
|
|
776
793
|
const autoApproveUnavailable = !sessionAvailable || autoApproveDisabled;
|
|
777
794
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", width: columns, children: [
|
|
778
795
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { paddingX: 0, paddingY: 0, children: [
|
|
779
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
780
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
796
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("teal"), bold: true, children: "Tool Settings" }),
|
|
797
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
|
|
781
798
|
" ",
|
|
782
799
|
tool.name
|
|
783
800
|
] })
|
|
784
801
|
] }),
|
|
785
802
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { paddingX: 0, paddingY: 0, children: [
|
|
786
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
787
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: tool.isEnabled ? "
|
|
788
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
789
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: tool.isAutoApproved ? "
|
|
790
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
803
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "Status: " }),
|
|
804
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: tool.isEnabled ? (0, import_signal.tone)("add") : (0, import_signal.tone)("red"), children: tool.isEnabled ? "Enabled" : "Disabled" }),
|
|
805
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: " \xB7 Auto-approve: " }),
|
|
806
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: tool.isAutoApproved ? (0, import_signal.tone)("add") : (0, import_signal.tone)("red"), children: tool.isAutoApproved ? "On" : "Off" }),
|
|
807
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: " (session)" })
|
|
791
808
|
] }),
|
|
792
|
-
autoApproveDisabled && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
793
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: configIndex === 0 ? "
|
|
809
|
+
autoApproveDisabled && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("amberDim"), children: "Enable the tool to allow auto-approve." }) }),
|
|
810
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: configIndex === 0 ? (0, import_signal.tone)("teal") : (0, import_signal.tone)("dim"), children: [
|
|
794
811
|
configIndex === 0 ? "\u25B6 " : " ",
|
|
795
812
|
tool.isEnabled ? "Disable tool" : "Enable tool"
|
|
796
813
|
] }) }),
|
|
797
814
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
798
815
|
import_ink.Text,
|
|
799
816
|
{
|
|
800
|
-
color: configIndex === 1 ? autoApproveUnavailable ? "
|
|
817
|
+
color: configIndex === 1 ? autoApproveUnavailable ? (0, import_signal.tone)("amberDim") : (0, import_signal.tone)("teal") : (0, import_signal.tone)("dim"),
|
|
801
818
|
children: [
|
|
802
819
|
configIndex === 1 ? "\u25B6 " : " ",
|
|
803
820
|
tool.isAutoApproved ? "Disable auto-approve (session)" : "Enable auto-approve (session)"
|
|
804
821
|
]
|
|
805
822
|
}
|
|
806
823
|
) }),
|
|
807
|
-
!sessionAvailable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
808
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: configIndex === 2 ? "
|
|
824
|
+
!sessionAvailable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("amberDim"), children: "Auto-approve requires an active session." }) }),
|
|
825
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: configIndex === 2 ? (0, import_signal.tone)("teal") : (0, import_signal.tone)("dim"), children: [
|
|
809
826
|
configIndex === 2 ? "\u25B6 " : " ",
|
|
810
827
|
"Back"
|
|
811
828
|
] }) }),
|
|
812
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
829
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "\u2191\u2193 select \xB7 Enter confirm \xB7 Esc back" }) })
|
|
813
830
|
] });
|
|
814
831
|
}
|
|
815
832
|
function ToolScopeView({
|
|
@@ -821,23 +838,23 @@ function ToolScopeView({
|
|
|
821
838
|
}) {
|
|
822
839
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", width: columns, children: [
|
|
823
840
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { paddingX: 0, paddingY: 0, children: [
|
|
824
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
825
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
841
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("teal"), bold: true, children: scopeNextEnabled ? "Enable Tool" : "Disable Tool" }),
|
|
842
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
|
|
826
843
|
" ",
|
|
827
844
|
tool.name
|
|
828
845
|
] })
|
|
829
846
|
] }),
|
|
830
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
831
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: scopeTarget === "session" ? "
|
|
847
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "Apply to:" }) }),
|
|
848
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: scopeTarget === "session" ? (0, import_signal.tone)("teal") : (0, import_signal.tone)("dim"), children: [
|
|
832
849
|
scopeTarget === "session" ? "\u25B6 " : " ",
|
|
833
850
|
"Session (default)"
|
|
834
851
|
] }) }),
|
|
835
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: scopeTarget === "global" ? "
|
|
852
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: scopeTarget === "global" ? (0, import_signal.tone)("teal") : (0, import_signal.tone)("dim"), children: [
|
|
836
853
|
scopeTarget === "global" ? "\u25B6 " : " ",
|
|
837
854
|
"Global (persisted)"
|
|
838
855
|
] }) }),
|
|
839
|
-
!sessionAvailable && scopeTarget === "session" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
840
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
856
|
+
!sessionAvailable && scopeTarget === "session" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("amberDim"), children: "No active session; switching to global." }) }),
|
|
857
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "\u2191\u2193 choose scope \xB7 Enter confirm \xB7 Esc back" }) })
|
|
841
858
|
] });
|
|
842
859
|
}
|
|
843
860
|
function truncateText(text, maxLength) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolBrowser.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/ToolBrowser.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAON,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAK/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolBrowser.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/ToolBrowser.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAON,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAK/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG9D,UAAU,gBAAgB;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAC9B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CACrD;AAkBD;;GAEG;AACH,QAAA,MAAM,WAAW,4FA4sBf,CAAC;AAkaH,eAAe,WAAW,CAAC"}
|
|
@@ -12,6 +12,7 @@ import { useTerminalSize } from "../../hooks/useTerminalSize.js";
|
|
|
12
12
|
import { writeToClipboard } from "../../utils/clipboardUtils.js";
|
|
13
13
|
import { getMaxVisibleItemsForTerminalRows } from "../../utils/overlaySizing.js";
|
|
14
14
|
import { HintBar } from "../shared/HintBar.js";
|
|
15
|
+
import { tone } from "../../signal/index.js";
|
|
15
16
|
const LIST_ACTIONS = ["view", "config", "back"];
|
|
16
17
|
const ToolBrowser = forwardRef(function ToolBrowser2({ isVisible, onClose, agent, sessionId }, ref) {
|
|
17
18
|
const { columns, rows } = useTerminalSize();
|
|
@@ -543,8 +544,8 @@ const ToolBrowser = forwardRef(function ToolBrowser2({ isVisible, onClose, agent
|
|
|
543
544
|
}
|
|
544
545
|
return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", width: columns, children: [
|
|
545
546
|
/* @__PURE__ */ jsxs(Box, { paddingX: 0, paddingY: 0, children: [
|
|
546
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
547
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
547
|
+
/* @__PURE__ */ jsx(Text, { color: tone("teal"), bold: true, children: "Tools" }),
|
|
548
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
548
549
|
" ",
|
|
549
550
|
"(",
|
|
550
551
|
filteredTools.length,
|
|
@@ -557,8 +558,8 @@ const ToolBrowser = forwardRef(function ToolBrowser2({ isVisible, onClose, agent
|
|
|
557
558
|
] })
|
|
558
559
|
] }),
|
|
559
560
|
/* @__PURE__ */ jsxs(Box, { paddingX: 0, paddingY: 0, marginTop: 1, children: [
|
|
560
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
561
|
-
/* @__PURE__ */ jsx(Text, { color: searchQuery ? "
|
|
561
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Search: " }),
|
|
562
|
+
/* @__PURE__ */ jsx(Text, { color: searchQuery ? tone("hi") : tone("dim"), wrap: "truncate-end", children: searchQuery || "Type to filter tools\u2026" })
|
|
562
563
|
] }),
|
|
563
564
|
/* @__PURE__ */ jsx(Box, { flexDirection: "column", height: maxVisibleTools, marginTop: 1, children: isLoading || filteredTools.length === 0 ? Array.from({ length: maxVisibleTools }, (_, index) => /* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { children: " " }) }, `tool-empty-${index}`)) : Array.from({ length: maxVisibleTools }, (_, rowIndex) => {
|
|
564
565
|
const tool = visibleTools[rowIndex];
|
|
@@ -568,27 +569,40 @@ const ToolBrowser = forwardRef(function ToolBrowser2({ isVisible, onClose, agent
|
|
|
568
569
|
const actualIndex = scrollOffset + rowIndex;
|
|
569
570
|
const isSelected = actualIndex === selectedIndex;
|
|
570
571
|
return /* @__PURE__ */ jsxs(Box, { paddingX: 0, paddingY: 0, children: [
|
|
571
|
-
/* @__PURE__ */ jsx(Text, { color: isSelected ? "
|
|
572
|
-
/* @__PURE__ */ jsx(
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
572
|
+
/* @__PURE__ */ jsx(Text, { color: isSelected ? tone("teal") : tone("hi"), children: isSelected ? "\u25B6 " : " " }),
|
|
573
|
+
/* @__PURE__ */ jsx(
|
|
574
|
+
Text,
|
|
575
|
+
{
|
|
576
|
+
color: isSelected ? tone("teal") : tone("hi"),
|
|
577
|
+
bold: isSelected,
|
|
578
|
+
children: truncateText(tool.name, 35)
|
|
579
|
+
}
|
|
580
|
+
),
|
|
581
|
+
/* @__PURE__ */ jsxs(
|
|
582
|
+
Text,
|
|
583
|
+
{
|
|
584
|
+
color: tool.source === "local" ? tone("faint") : tone("fg"),
|
|
585
|
+
children: [
|
|
586
|
+
" ",
|
|
587
|
+
"[",
|
|
588
|
+
tool.source === "local" ? "Local" : "MCP",
|
|
589
|
+
"]"
|
|
590
|
+
]
|
|
591
|
+
}
|
|
592
|
+
),
|
|
593
|
+
tool.serverName && /* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
580
594
|
" (",
|
|
581
595
|
tool.serverName,
|
|
582
596
|
")"
|
|
583
597
|
] }),
|
|
584
|
-
/* @__PURE__ */ jsxs(Text, { color: tool.isEnabled ? "
|
|
598
|
+
/* @__PURE__ */ jsxs(Text, { color: tool.isEnabled ? tone("add") : tone("red"), children: [
|
|
585
599
|
" ",
|
|
586
600
|
tool.isEnabled ? "Enabled" : "Disabled"
|
|
587
601
|
] }),
|
|
588
|
-
tool.isAutoApproved && /* @__PURE__ */ jsx(Text, { color: "
|
|
602
|
+
tool.isAutoApproved && /* @__PURE__ */ jsx(Text, { color: tone("amberDim"), children: " [auto-approved]" })
|
|
589
603
|
] }, tool.name);
|
|
590
604
|
}) }),
|
|
591
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: loadError ? "red" : "
|
|
605
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: loadError ? tone("red") : tone("dim"), wrap: "truncate-end", children: detailLine }) }),
|
|
592
606
|
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(HintBar, { hints: ["\u2191\u2193 navigate", "Enter options", "Esc close"] }) })
|
|
593
607
|
] });
|
|
594
608
|
});
|
|
@@ -636,16 +650,16 @@ function buildDetailLineData(tool, maxWidth) {
|
|
|
636
650
|
function renderDetailLine(line, _index) {
|
|
637
651
|
switch (line.type) {
|
|
638
652
|
case "title":
|
|
639
|
-
return /* @__PURE__ */ jsx(Text, { color: "
|
|
653
|
+
return /* @__PURE__ */ jsx(Text, { color: tone("teal"), bold: true, children: line.text });
|
|
640
654
|
case "source":
|
|
641
|
-
return /* @__PURE__ */ jsxs(Text, { color: line.source === "local" ? "
|
|
655
|
+
return /* @__PURE__ */ jsxs(Text, { color: line.source === "local" ? tone("faint") : tone("fg"), children: [
|
|
642
656
|
line.source === "local" ? "Local Tool" : "MCP Tool",
|
|
643
657
|
line.serverName ? ` (${line.serverName})` : ""
|
|
644
658
|
] });
|
|
645
659
|
case "empty":
|
|
646
660
|
return /* @__PURE__ */ jsx(Text, { children: " " });
|
|
647
661
|
case "header":
|
|
648
|
-
return /* @__PURE__ */ jsx(Text, { color: "
|
|
662
|
+
return /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: line.text });
|
|
649
663
|
case "description":
|
|
650
664
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
651
665
|
/* @__PURE__ */ jsx(Text, { children: " " }),
|
|
@@ -654,23 +668,23 @@ function renderDetailLine(line, _index) {
|
|
|
654
668
|
case "param-name":
|
|
655
669
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
656
670
|
/* @__PURE__ */ jsx(Text, { children: " " }),
|
|
657
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
658
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
671
|
+
/* @__PURE__ */ jsx(Text, { color: tone("teal"), children: line.name }),
|
|
672
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
659
673
|
" (",
|
|
660
674
|
line.paramType,
|
|
661
675
|
")"
|
|
662
676
|
] }),
|
|
663
|
-
line.required && /* @__PURE__ */ jsx(Text, { color: "red", children: " *required" })
|
|
677
|
+
line.required && /* @__PURE__ */ jsx(Text, { color: tone("red"), children: " *required" })
|
|
664
678
|
] });
|
|
665
679
|
case "param-desc":
|
|
666
680
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
667
681
|
/* @__PURE__ */ jsx(Text, { children: " " }),
|
|
668
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
682
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: line.text })
|
|
669
683
|
] });
|
|
670
684
|
case "param-enum":
|
|
671
685
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
672
686
|
/* @__PURE__ */ jsx(Text, { children: " " }),
|
|
673
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
687
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
674
688
|
"Allowed: ",
|
|
675
689
|
line.values.join(" | ")
|
|
676
690
|
] })
|
|
@@ -684,25 +698,25 @@ function ToolActionsMenu({
|
|
|
684
698
|
}) {
|
|
685
699
|
return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", width: columns, children: [
|
|
686
700
|
/* @__PURE__ */ jsxs(Box, { paddingX: 0, paddingY: 0, children: [
|
|
687
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
688
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
701
|
+
/* @__PURE__ */ jsx(Text, { color: tone("teal"), bold: true, children: "Tool Options" }),
|
|
702
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
689
703
|
" ",
|
|
690
704
|
tool.name
|
|
691
705
|
] })
|
|
692
706
|
] }),
|
|
693
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(Text, { color: listActionsIndex === 0 ? "
|
|
707
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(Text, { color: listActionsIndex === 0 ? tone("teal") : tone("dim"), children: [
|
|
694
708
|
listActionsIndex === 0 ? "\u25B6 " : " ",
|
|
695
709
|
"View details"
|
|
696
710
|
] }) }),
|
|
697
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(Text, { color: listActionsIndex === 1 ? "
|
|
711
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(Text, { color: listActionsIndex === 1 ? tone("teal") : tone("dim"), children: [
|
|
698
712
|
listActionsIndex === 1 ? "\u25B6 " : " ",
|
|
699
713
|
"Edit tool settings"
|
|
700
714
|
] }) }),
|
|
701
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(Text, { color: listActionsIndex === 2 ? "
|
|
715
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(Text, { color: listActionsIndex === 2 ? tone("teal") : tone("dim"), children: [
|
|
702
716
|
listActionsIndex === 2 ? "\u25B6 " : " ",
|
|
703
717
|
"Back"
|
|
704
718
|
] }) }),
|
|
705
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
719
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "\u2191\u2193 select \xB7 Enter confirm \xB7 Esc back" }) })
|
|
706
720
|
] });
|
|
707
721
|
}
|
|
708
722
|
function ToolDetailView({
|
|
@@ -723,21 +737,24 @@ function ToolDetailView({
|
|
|
723
737
|
const hasMoreBelow = clampedOffset + maxVisibleLines < totalLines;
|
|
724
738
|
return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", width: columns, children: [
|
|
725
739
|
/* @__PURE__ */ jsxs(Box, { paddingX: 0, paddingY: 0, children: [
|
|
726
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
727
|
-
/* @__PURE__ */
|
|
728
|
-
|
|
740
|
+
/* @__PURE__ */ jsx(Text, { color: tone("teal"), bold: true, children: "Tool Details" }),
|
|
741
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
742
|
+
" ",
|
|
743
|
+
"- \u2191\u2193 scroll, c copy schema, Enter settings, Esc back"
|
|
744
|
+
] }),
|
|
745
|
+
copyFeedback && /* @__PURE__ */ jsxs(Text, { color: tone("add"), bold: true, children: [
|
|
729
746
|
" ",
|
|
730
747
|
copyFeedback
|
|
731
748
|
] })
|
|
732
749
|
] }),
|
|
733
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
734
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
750
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "\u2500".repeat(Math.min(60, columns - 2)) }) }),
|
|
751
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: hasMoreAbove ? `\u2191 ${clampedOffset} more above` : " " }) }),
|
|
735
752
|
Array.from({ length: maxVisibleLines }, (_, i) => {
|
|
736
753
|
const absoluteIndex = clampedOffset + i;
|
|
737
754
|
const line = lineData[absoluteIndex];
|
|
738
755
|
return /* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: line ? renderDetailLine(line, absoluteIndex) : /* @__PURE__ */ jsx(Text, { children: " " }) }, i);
|
|
739
756
|
}),
|
|
740
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
757
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: hasMoreBelow ? `\u2193 ${totalLines - clampedOffset - maxVisibleLines} more below` : " " }) })
|
|
741
758
|
] });
|
|
742
759
|
}
|
|
743
760
|
function ToolSettingsView({
|
|
@@ -750,40 +767,40 @@ function ToolSettingsView({
|
|
|
750
767
|
const autoApproveUnavailable = !sessionAvailable || autoApproveDisabled;
|
|
751
768
|
return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", width: columns, children: [
|
|
752
769
|
/* @__PURE__ */ jsxs(Box, { paddingX: 0, paddingY: 0, children: [
|
|
753
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
754
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
770
|
+
/* @__PURE__ */ jsx(Text, { color: tone("teal"), bold: true, children: "Tool Settings" }),
|
|
771
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
755
772
|
" ",
|
|
756
773
|
tool.name
|
|
757
774
|
] })
|
|
758
775
|
] }),
|
|
759
776
|
/* @__PURE__ */ jsxs(Box, { paddingX: 0, paddingY: 0, children: [
|
|
760
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
761
|
-
/* @__PURE__ */ jsx(Text, { color: tool.isEnabled ? "
|
|
762
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
763
|
-
/* @__PURE__ */ jsx(Text, { color: tool.isAutoApproved ? "
|
|
764
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
777
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Status: " }),
|
|
778
|
+
/* @__PURE__ */ jsx(Text, { color: tool.isEnabled ? tone("add") : tone("red"), children: tool.isEnabled ? "Enabled" : "Disabled" }),
|
|
779
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: " \xB7 Auto-approve: " }),
|
|
780
|
+
/* @__PURE__ */ jsx(Text, { color: tool.isAutoApproved ? tone("add") : tone("red"), children: tool.isAutoApproved ? "On" : "Off" }),
|
|
781
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: " (session)" })
|
|
765
782
|
] }),
|
|
766
|
-
autoApproveDisabled && /* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
767
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(Text, { color: configIndex === 0 ? "
|
|
783
|
+
autoApproveDisabled && /* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: tone("amberDim"), children: "Enable the tool to allow auto-approve." }) }),
|
|
784
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(Text, { color: configIndex === 0 ? tone("teal") : tone("dim"), children: [
|
|
768
785
|
configIndex === 0 ? "\u25B6 " : " ",
|
|
769
786
|
tool.isEnabled ? "Disable tool" : "Enable tool"
|
|
770
787
|
] }) }),
|
|
771
788
|
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(
|
|
772
789
|
Text,
|
|
773
790
|
{
|
|
774
|
-
color: configIndex === 1 ? autoApproveUnavailable ? "
|
|
791
|
+
color: configIndex === 1 ? autoApproveUnavailable ? tone("amberDim") : tone("teal") : tone("dim"),
|
|
775
792
|
children: [
|
|
776
793
|
configIndex === 1 ? "\u25B6 " : " ",
|
|
777
794
|
tool.isAutoApproved ? "Disable auto-approve (session)" : "Enable auto-approve (session)"
|
|
778
795
|
]
|
|
779
796
|
}
|
|
780
797
|
) }),
|
|
781
|
-
!sessionAvailable && /* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
782
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(Text, { color: configIndex === 2 ? "
|
|
798
|
+
!sessionAvailable && /* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: tone("amberDim"), children: "Auto-approve requires an active session." }) }),
|
|
799
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(Text, { color: configIndex === 2 ? tone("teal") : tone("dim"), children: [
|
|
783
800
|
configIndex === 2 ? "\u25B6 " : " ",
|
|
784
801
|
"Back"
|
|
785
802
|
] }) }),
|
|
786
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
803
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "\u2191\u2193 select \xB7 Enter confirm \xB7 Esc back" }) })
|
|
787
804
|
] });
|
|
788
805
|
}
|
|
789
806
|
function ToolScopeView({
|
|
@@ -795,23 +812,23 @@ function ToolScopeView({
|
|
|
795
812
|
}) {
|
|
796
813
|
return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", width: columns, children: [
|
|
797
814
|
/* @__PURE__ */ jsxs(Box, { paddingX: 0, paddingY: 0, children: [
|
|
798
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
799
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
815
|
+
/* @__PURE__ */ jsx(Text, { color: tone("teal"), bold: true, children: scopeNextEnabled ? "Enable Tool" : "Disable Tool" }),
|
|
816
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
800
817
|
" ",
|
|
801
818
|
tool.name
|
|
802
819
|
] })
|
|
803
820
|
] }),
|
|
804
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
805
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(Text, { color: scopeTarget === "session" ? "
|
|
821
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Apply to:" }) }),
|
|
822
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(Text, { color: scopeTarget === "session" ? tone("teal") : tone("dim"), children: [
|
|
806
823
|
scopeTarget === "session" ? "\u25B6 " : " ",
|
|
807
824
|
"Session (default)"
|
|
808
825
|
] }) }),
|
|
809
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(Text, { color: scopeTarget === "global" ? "
|
|
826
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsxs(Text, { color: scopeTarget === "global" ? tone("teal") : tone("dim"), children: [
|
|
810
827
|
scopeTarget === "global" ? "\u25B6 " : " ",
|
|
811
828
|
"Global (persisted)"
|
|
812
829
|
] }) }),
|
|
813
|
-
!sessionAvailable && scopeTarget === "session" && /* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
814
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
830
|
+
!sessionAvailable && scopeTarget === "session" && /* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: tone("amberDim"), children: "No active session; switching to global." }) }),
|
|
831
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 0, paddingY: 0, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "\u2191\u2193 choose scope \xB7 Enter confirm \xB7 Esc back" }) })
|
|
815
832
|
] });
|
|
816
833
|
}
|
|
817
834
|
function truncateText(text, maxLength) {
|