@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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect, forwardRef, useImperativeHandle } from "react";
|
|
3
3
|
import { Box, Text } from "ink";
|
|
4
|
+
import { tone } from "../../signal/index.js";
|
|
4
5
|
const BREAKDOWN_ITEMS = [
|
|
5
6
|
"systemPrompt",
|
|
6
7
|
"tools",
|
|
@@ -8,12 +9,12 @@ const BREAKDOWN_ITEMS = [
|
|
|
8
9
|
"freeSpace",
|
|
9
10
|
"autoCompactBuffer"
|
|
10
11
|
];
|
|
11
|
-
const
|
|
12
|
-
systemPrompt: "
|
|
13
|
-
tools: "
|
|
14
|
-
messages: "
|
|
15
|
-
freeSpace: "
|
|
16
|
-
autoCompactBuffer: "
|
|
12
|
+
const ITEM_ROLES = {
|
|
13
|
+
systemPrompt: "teal",
|
|
14
|
+
tools: "amberDim",
|
|
15
|
+
messages: "fg",
|
|
16
|
+
freeSpace: "dim",
|
|
17
|
+
autoCompactBuffer: "faint"
|
|
17
18
|
};
|
|
18
19
|
function formatTokens(tokens) {
|
|
19
20
|
if (tokens >= 1e3) {
|
|
@@ -43,29 +44,39 @@ function createStackedBar(breakdown, maxContextTokens, thresholdPercent, totalWi
|
|
|
43
44
|
if (sysWidth > 0) {
|
|
44
45
|
segments.push({
|
|
45
46
|
char: "\u2588",
|
|
46
|
-
color:
|
|
47
|
+
color: tone(ITEM_ROLES.systemPrompt),
|
|
47
48
|
width: sysWidth,
|
|
48
49
|
item: "systemPrompt"
|
|
49
50
|
});
|
|
50
51
|
}
|
|
51
52
|
if (toolsWidth > 0) {
|
|
52
|
-
segments.push({
|
|
53
|
+
segments.push({
|
|
54
|
+
char: "\u2588",
|
|
55
|
+
color: tone(ITEM_ROLES.tools),
|
|
56
|
+
width: toolsWidth,
|
|
57
|
+
item: "tools"
|
|
58
|
+
});
|
|
53
59
|
}
|
|
54
60
|
if (msgsWidth > 0) {
|
|
55
61
|
segments.push({
|
|
56
62
|
char: "\u2588",
|
|
57
|
-
color:
|
|
63
|
+
color: tone(ITEM_ROLES.messages),
|
|
58
64
|
width: msgsWidth,
|
|
59
65
|
item: "messages"
|
|
60
66
|
});
|
|
61
67
|
}
|
|
62
68
|
if (adjustedFreeWidth > 0) {
|
|
63
|
-
segments.push({
|
|
69
|
+
segments.push({
|
|
70
|
+
char: "\u2591",
|
|
71
|
+
color: tone("dim"),
|
|
72
|
+
width: adjustedFreeWidth,
|
|
73
|
+
item: "freeSpace"
|
|
74
|
+
});
|
|
64
75
|
}
|
|
65
76
|
if (reservedWidth > 0) {
|
|
66
77
|
segments.push({
|
|
67
78
|
char: "\u2592",
|
|
68
|
-
color:
|
|
79
|
+
color: tone(ITEM_ROLES.autoCompactBuffer),
|
|
69
80
|
width: reservedWidth,
|
|
70
81
|
item: "autoCompactBuffer"
|
|
71
82
|
});
|
|
@@ -152,12 +163,12 @@ const ContextStatsOverlay = forwardRef(
|
|
|
152
163
|
{
|
|
153
164
|
flexDirection: "column",
|
|
154
165
|
borderStyle: "round",
|
|
155
|
-
borderColor: "
|
|
166
|
+
borderColor: tone("teal"),
|
|
156
167
|
paddingX: 2,
|
|
157
168
|
paddingY: 1,
|
|
158
169
|
children: [
|
|
159
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
160
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
170
|
+
/* @__PURE__ */ jsx(Text, { color: tone("teal"), bold: true, children: "\u{1F4CA} Context Usage" }),
|
|
171
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Loading..." })
|
|
161
172
|
]
|
|
162
173
|
}
|
|
163
174
|
);
|
|
@@ -168,13 +179,13 @@ const ContextStatsOverlay = forwardRef(
|
|
|
168
179
|
{
|
|
169
180
|
flexDirection: "column",
|
|
170
181
|
borderStyle: "round",
|
|
171
|
-
borderColor: "red",
|
|
182
|
+
borderColor: tone("red"),
|
|
172
183
|
paddingX: 2,
|
|
173
184
|
paddingY: 1,
|
|
174
185
|
children: [
|
|
175
|
-
/* @__PURE__ */ jsx(Text, { color: "red", bold: true, children: "Error" }),
|
|
176
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
177
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
186
|
+
/* @__PURE__ */ jsx(Text, { color: tone("red"), bold: true, children: "Error" }),
|
|
187
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: error }),
|
|
188
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), dimColor: true, children: "Press Esc to close" }) })
|
|
178
189
|
]
|
|
179
190
|
}
|
|
180
191
|
);
|
|
@@ -200,15 +211,15 @@ const ContextStatsOverlay = forwardRef(
|
|
|
200
211
|
const isSelected = selectedIndex === index;
|
|
201
212
|
const prefix = isLast ? "\u2514\u2500" : "\u251C\u2500";
|
|
202
213
|
const expandIcon = expandable ? isToolsExpanded ? "\u25BC" : "\u25B6" : " ";
|
|
203
|
-
const itemColor =
|
|
214
|
+
const itemColor = tone(ITEM_ROLES[item]);
|
|
204
215
|
const indicator = item === "freeSpace" ? "\u2591" : item === "autoCompactBuffer" ? "\u2592" : "\u2588";
|
|
205
216
|
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
206
|
-
/* @__PURE__ */ jsxs(Text, { color: isSelected ? "
|
|
217
|
+
/* @__PURE__ */ jsxs(Text, { color: isSelected ? tone("hi") : tone("dim"), children: [
|
|
207
218
|
prefix,
|
|
208
219
|
" "
|
|
209
220
|
] }),
|
|
210
221
|
/* @__PURE__ */ jsx(Text, { color: itemColor, bold: isSelected, children: indicator }),
|
|
211
|
-
/* @__PURE__ */ jsxs(Text, { color: isSelected ? "
|
|
222
|
+
/* @__PURE__ */ jsxs(Text, { color: isSelected ? tone("hi") : tone("dim"), bold: isSelected, children: [
|
|
212
223
|
" ",
|
|
213
224
|
expandIcon,
|
|
214
225
|
" ",
|
|
@@ -219,7 +230,7 @@ const ContextStatsOverlay = forwardRef(
|
|
|
219
230
|
pct(tokens),
|
|
220
231
|
")"
|
|
221
232
|
] }),
|
|
222
|
-
isSelected && expandable && /* @__PURE__ */ jsxs(Text, { color: "
|
|
233
|
+
isSelected && expandable && /* @__PURE__ */ jsxs(Text, { color: tone("dim"), dimColor: true, children: [
|
|
223
234
|
" ",
|
|
224
235
|
"(Enter to ",
|
|
225
236
|
isToolsExpanded ? "collapse" : "expand",
|
|
@@ -234,34 +245,34 @@ const ContextStatsOverlay = forwardRef(
|
|
|
234
245
|
{
|
|
235
246
|
flexDirection: "column",
|
|
236
247
|
borderStyle: "round",
|
|
237
|
-
borderColor: "
|
|
248
|
+
borderColor: tone("teal"),
|
|
238
249
|
paddingX: 2,
|
|
239
250
|
paddingY: 1,
|
|
240
251
|
children: [
|
|
241
252
|
/* @__PURE__ */ jsxs(Box, { marginBottom: 1, children: [
|
|
242
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
243
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
253
|
+
/* @__PURE__ */ jsx(Text, { color: tone("teal"), bold: true, children: "\u{1F4CA} Context Usage" }),
|
|
254
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
244
255
|
" - ",
|
|
245
256
|
stats.modelDisplayName
|
|
246
257
|
] })
|
|
247
258
|
] }),
|
|
248
259
|
/* @__PURE__ */ jsx(Box, { children: barSegments.map((segment, idx) => {
|
|
249
260
|
const isHighlighted = BREAKDOWN_ITEMS[selectedIndex] === segment.item;
|
|
250
|
-
return /* @__PURE__ */ jsx(Text, { color: "
|
|
261
|
+
return /* @__PURE__ */ jsx(Text, { color: tone("hi"), children: isHighlighted ? "\u25BC".repeat(segment.width) : " ".repeat(segment.width) }, idx);
|
|
251
262
|
}) }),
|
|
252
263
|
/* @__PURE__ */ jsx(Box, { children: barSegments.map((segment, idx) => /* @__PURE__ */ jsx(Text, { color: segment.color, children: segment.char.repeat(segment.width) }, idx)) }),
|
|
253
264
|
/* @__PURE__ */ jsxs(Box, { marginBottom: 1, children: [
|
|
254
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
265
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
255
266
|
tokenDisplay,
|
|
256
267
|
" / ",
|
|
257
268
|
formatTokens(totalTokenSpace),
|
|
258
269
|
" tokens"
|
|
259
270
|
] }),
|
|
260
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
271
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: " \u2022 " }),
|
|
261
272
|
/* @__PURE__ */ jsxs(
|
|
262
273
|
Text,
|
|
263
274
|
{
|
|
264
|
-
color: stats.usagePercent > 80 ? "red" : stats.usagePercent > 60 ? "
|
|
275
|
+
color: stats.usagePercent > 80 ? tone("red") : stats.usagePercent > 60 ? tone("amberDim") : tone("add"),
|
|
265
276
|
children: [
|
|
266
277
|
stats.usagePercent,
|
|
267
278
|
"% used"
|
|
@@ -270,7 +281,7 @@ const ContextStatsOverlay = forwardRef(
|
|
|
270
281
|
)
|
|
271
282
|
] }),
|
|
272
283
|
/* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
|
|
273
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
284
|
+
/* @__PURE__ */ jsx(Text, { color: tone("hi"), children: "Breakdown:" }),
|
|
274
285
|
renderRow(
|
|
275
286
|
0,
|
|
276
287
|
"systemPrompt",
|
|
@@ -286,10 +297,10 @@ const ContextStatsOverlay = forwardRef(
|
|
|
286
297
|
false,
|
|
287
298
|
true
|
|
288
299
|
),
|
|
289
|
-
isToolsExpanded && /* @__PURE__ */ jsx(Box, { flexDirection: "column", marginLeft: 4, children: stats.breakdown.tools.perTool.length === 0 ? /* @__PURE__ */ jsx(Text, { color: "
|
|
300
|
+
isToolsExpanded && /* @__PURE__ */ jsx(Box, { flexDirection: "column", marginLeft: 4, children: stats.breakdown.tools.perTool.length === 0 ? /* @__PURE__ */ jsx(Text, { color: tone("dim"), dimColor: true, children: "No tools registered" }) : [...stats.breakdown.tools.perTool].sort((a, b) => b.tokens - a.tokens).map((tool, idx, arr) => /* @__PURE__ */ jsxs(Text, { color: tone("dim"), dimColor: true, children: [
|
|
290
301
|
idx === arr.length - 1 ? "\u2514\u2500" : "\u251C\u2500",
|
|
291
302
|
" ",
|
|
292
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
303
|
+
/* @__PURE__ */ jsx(Text, { color: tone("amberDim"), dimColor: true, children: tool.name }),
|
|
293
304
|
": ",
|
|
294
305
|
formatTokens(tool.tokens),
|
|
295
306
|
" (",
|
|
@@ -307,22 +318,22 @@ const ContextStatsOverlay = forwardRef(
|
|
|
307
318
|
)
|
|
308
319
|
] }),
|
|
309
320
|
/* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", children: [
|
|
310
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
321
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
311
322
|
"Messages: ",
|
|
312
323
|
stats.filteredMessageCount,
|
|
313
324
|
" visible (",
|
|
314
325
|
stats.messageCount,
|
|
315
326
|
" total)"
|
|
316
327
|
] }),
|
|
317
|
-
stats.prunedToolCount > 0 && /* @__PURE__ */ jsxs(Text, { color: "
|
|
328
|
+
stats.prunedToolCount > 0 && /* @__PURE__ */ jsxs(Text, { color: tone("amberDim"), children: [
|
|
318
329
|
"\u{1F5D1}\uFE0F ",
|
|
319
330
|
stats.prunedToolCount,
|
|
320
331
|
" tool output(s) pruned"
|
|
321
332
|
] }),
|
|
322
|
-
stats.hasSummary && /* @__PURE__ */ jsx(Text, { color: "
|
|
323
|
-
stats.usagePercent > 100 && /* @__PURE__ */ jsx(Text, { color: "
|
|
333
|
+
stats.hasSummary && /* @__PURE__ */ jsx(Text, { color: tone("fg"), children: "\u{1F4E6} Context has been compacted (summary present)" }),
|
|
334
|
+
stats.usagePercent > 100 && /* @__PURE__ */ jsx(Text, { color: tone("amberDim"), children: "\u{1F4A1} Use /compact to manually compact, or send a message to trigger auto-compaction" })
|
|
324
335
|
] }),
|
|
325
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
336
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), dimColor: true, children: "\u2191\u2193: navigate | Enter: expand/collapse | Esc: close" }) })
|
|
326
337
|
]
|
|
327
338
|
}
|
|
328
339
|
);
|
|
@@ -39,6 +39,7 @@ var import_core = require("@dexto/core");
|
|
|
39
39
|
var import_provider_config = require("./custom-model-wizard/provider-config.js");
|
|
40
40
|
var import_shared = require("./custom-model-wizard/shared/index.js");
|
|
41
41
|
var import_LocalModelWizard = __toESM(require("./custom-model-wizard/LocalModelWizard.js"), 1);
|
|
42
|
+
var import_signal = require("../../signal/index.js");
|
|
42
43
|
const CustomModelWizard = (0, import_react.forwardRef)(
|
|
43
44
|
function CustomModelWizard2({ isVisible, onComplete, onClose, initialModel }, ref) {
|
|
44
45
|
const [selectedProvider, setSelectedProvider] = (0, import_react.useState)(null);
|
|
@@ -314,13 +315,13 @@ const CustomModelWizard = (0, import_react.forwardRef)(
|
|
|
314
315
|
{
|
|
315
316
|
flexDirection: "column",
|
|
316
317
|
borderStyle: "round",
|
|
317
|
-
borderColor: "
|
|
318
|
+
borderColor: (0, import_signal.tone)("add"),
|
|
318
319
|
paddingX: 1,
|
|
319
320
|
marginTop: 1,
|
|
320
321
|
children: [
|
|
321
322
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginBottom: 1, children: [
|
|
322
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { bold: true, color: "
|
|
323
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
323
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { bold: true, color: (0, import_signal.tone)("add"), children: isEditing ? "Edit Custom Model" : "Add Custom Model" }),
|
|
324
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
|
|
324
325
|
" ",
|
|
325
326
|
"(",
|
|
326
327
|
providerConfig.displayName,
|
|
@@ -349,7 +350,7 @@ const CustomModelWizard = (0, import_react.forwardRef)(
|
|
|
349
350
|
additionalContent: currentStepConfig.field === "apiKey" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_shared.ApiKeyStep, { provider: selectedProvider }) : void 0
|
|
350
351
|
}
|
|
351
352
|
),
|
|
352
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
353
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
|
|
353
354
|
"Enter to continue \u2022 Esc to",
|
|
354
355
|
" ",
|
|
355
356
|
currentStep > 0 ? "go back" : "back to provider"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomModelWizard.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/CustomModelWizard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAON,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAGH,KAAK,WAAW,EAMnB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomModelWizard.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/CustomModelWizard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAON,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAGH,KAAK,WAAW,EAMnB,MAAM,yBAAyB,CAAC;AAsBjC,UAAU,sBAAsB;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,uEAAuE;IACvE,YAAY,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,uBAAuB;IACpC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CACrD;AAED;;;GAGG;AACH,QAAA,MAAM,iBAAiB,wGA4YtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
ApiKeyStep
|
|
31
31
|
} from "./custom-model-wizard/shared/index.js";
|
|
32
32
|
import LocalModelWizard from "./custom-model-wizard/LocalModelWizard.js";
|
|
33
|
+
import { tone } from "../../signal/index.js";
|
|
33
34
|
const CustomModelWizard = forwardRef(
|
|
34
35
|
function CustomModelWizard2({ isVisible, onComplete, onClose, initialModel }, ref) {
|
|
35
36
|
const [selectedProvider, setSelectedProvider] = useState(null);
|
|
@@ -305,13 +306,13 @@ const CustomModelWizard = forwardRef(
|
|
|
305
306
|
{
|
|
306
307
|
flexDirection: "column",
|
|
307
308
|
borderStyle: "round",
|
|
308
|
-
borderColor: "
|
|
309
|
+
borderColor: tone("add"),
|
|
309
310
|
paddingX: 1,
|
|
310
311
|
marginTop: 1,
|
|
311
312
|
children: [
|
|
312
313
|
/* @__PURE__ */ jsxs(Box, { marginBottom: 1, children: [
|
|
313
|
-
/* @__PURE__ */ jsx(Text, { bold: true, color: "
|
|
314
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
314
|
+
/* @__PURE__ */ jsx(Text, { bold: true, color: tone("add"), children: isEditing ? "Edit Custom Model" : "Add Custom Model" }),
|
|
315
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
315
316
|
" ",
|
|
316
317
|
"(",
|
|
317
318
|
providerConfig.displayName,
|
|
@@ -340,7 +341,7 @@ const CustomModelWizard = forwardRef(
|
|
|
340
341
|
additionalContent: currentStepConfig.field === "apiKey" ? /* @__PURE__ */ jsx(ApiKeyStep, { provider: selectedProvider }) : void 0
|
|
341
342
|
}
|
|
342
343
|
),
|
|
343
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsxs(Text, { color: "
|
|
344
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
344
345
|
"Enter to continue \u2022 Esc to",
|
|
345
346
|
" ",
|
|
346
347
|
currentStep > 0 ? "go back" : "back to provider"
|
|
@@ -36,6 +36,7 @@ var import_react = require("react");
|
|
|
36
36
|
var import_ink = require("ink");
|
|
37
37
|
var import_promises = __toESM(require("fs/promises"), 1);
|
|
38
38
|
var import_path = __toESM(require("path"), 1);
|
|
39
|
+
var import_signal = require("../../signal/index.js");
|
|
39
40
|
function generateDefaultFilename(sessionId, format) {
|
|
40
41
|
const date = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
41
42
|
const shortId = sessionId ? sessionId.slice(0, 6) : "unknown";
|
|
@@ -289,91 +290,91 @@ const ExportWizard = (0, import_react.forwardRef)(function ExportWizard2({ isVis
|
|
|
289
290
|
{
|
|
290
291
|
flexDirection: "column",
|
|
291
292
|
borderStyle: "round",
|
|
292
|
-
borderColor: "
|
|
293
|
+
borderColor: (0, import_signal.tone)("teal"),
|
|
293
294
|
paddingX: 1,
|
|
294
295
|
marginTop: 1,
|
|
295
296
|
children: [
|
|
296
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginBottom: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { bold: true, color: "
|
|
297
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginBottom: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { bold: true, color: (0, import_signal.tone)("teal"), children: "\u{1F4E4} Export Conversation" }) }),
|
|
297
298
|
step === "format" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", children: [
|
|
298
299
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: "Select export format:" }),
|
|
299
300
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginTop: 1, flexDirection: "column", children: [
|
|
300
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 0 ? { color: "
|
|
301
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 0 ? { color: (0, import_signal.tone)("teal") } : {}, children: [
|
|
301
302
|
selectedIndex === 0 ? "\u276F " : " ",
|
|
302
303
|
"Markdown (.md) - Human readable"
|
|
303
304
|
] }),
|
|
304
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 1 ? { color: "
|
|
305
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 1 ? { color: (0, import_signal.tone)("teal") } : {}, children: [
|
|
305
306
|
selectedIndex === 1 ? "\u276F " : " ",
|
|
306
307
|
"JSON (.json) - Structured data"
|
|
307
308
|
] })
|
|
308
309
|
] }),
|
|
309
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
310
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "\u2191\u2193 to select \u2022 Enter to continue \u2022 Esc to cancel" }) })
|
|
310
311
|
] }),
|
|
311
312
|
step === "toolCalls" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", children: [
|
|
312
313
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: "Include tool calls and results?" }),
|
|
313
314
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginTop: 1, flexDirection: "column", children: [
|
|
314
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 0 ? { color: "
|
|
315
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 0 ? { color: (0, import_signal.tone)("teal") } : {}, children: [
|
|
315
316
|
selectedIndex === 0 ? "\u276F " : " ",
|
|
316
317
|
"Yes - Include all tool interactions"
|
|
317
318
|
] }),
|
|
318
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 1 ? { color: "
|
|
319
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 1 ? { color: (0, import_signal.tone)("teal") } : {}, children: [
|
|
319
320
|
selectedIndex === 1 ? "\u276F " : " ",
|
|
320
321
|
"No - Only user and assistant messages"
|
|
321
322
|
] })
|
|
322
323
|
] }),
|
|
323
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
324
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "\u2191\u2193 to select \u2022 Enter to continue \u2022 Esc to cancel" }) })
|
|
324
325
|
] }),
|
|
325
326
|
step === "filename" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", children: [
|
|
326
327
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: "Filename:" }),
|
|
327
328
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginTop: 1, children: [
|
|
328
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
329
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("teal"), children: "> " }),
|
|
329
330
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: filenameInput }),
|
|
330
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
331
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("teal"), children: "_" })
|
|
331
332
|
] }),
|
|
332
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
333
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "Enter to continue \u2022 Esc to cancel" }) })
|
|
333
334
|
] }),
|
|
334
335
|
step === "confirm" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", children: [
|
|
335
336
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: "Export with these settings?" }),
|
|
336
337
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginTop: 1, flexDirection: "column", marginLeft: 2, children: [
|
|
337
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
338
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
|
|
338
339
|
"Format:",
|
|
339
340
|
" ",
|
|
340
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
341
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("hi"), children: options.format === "markdown" ? "Markdown" : "JSON" })
|
|
341
342
|
] }),
|
|
342
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
343
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
|
|
343
344
|
"Tool calls:",
|
|
344
345
|
" ",
|
|
345
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
346
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("hi"), children: options.includeToolCalls ? "Yes" : "No" })
|
|
346
347
|
] }),
|
|
347
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
348
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
|
|
348
349
|
"File: ",
|
|
349
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
350
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("hi"), children: filenameInput })
|
|
350
351
|
] })
|
|
351
352
|
] }),
|
|
352
353
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginTop: 1, flexDirection: "column", children: [
|
|
353
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 0 ? { color: "
|
|
354
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 0 ? { color: (0, import_signal.tone)("add") } : {}, children: [
|
|
354
355
|
selectedIndex === 0 ? "\u276F " : " ",
|
|
355
356
|
"Export"
|
|
356
357
|
] }),
|
|
357
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 1 ? { color: "red" } : {}, children: [
|
|
358
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { ...selectedIndex === 1 ? { color: (0, import_signal.tone)("red") } : {}, children: [
|
|
358
359
|
selectedIndex === 1 ? "\u276F " : " ",
|
|
359
360
|
"Cancel"
|
|
360
361
|
] })
|
|
361
362
|
] }),
|
|
362
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
363
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "\u2191\u2193 to select \u2022 Enter to confirm" }) })
|
|
363
364
|
] }),
|
|
364
|
-
step === "exporting" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { flexDirection: "column", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
365
|
+
step === "exporting" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { flexDirection: "column", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("amberDim"), children: "Exporting..." }) }),
|
|
365
366
|
step === "done" && exportResult?.success && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", children: [
|
|
366
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
367
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("add"), children: "\u2713 Exported successfully!" }),
|
|
367
368
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginTop: 1, children: [
|
|
368
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
369
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "Saved to: " }),
|
|
369
370
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: exportResult.path })
|
|
370
371
|
] }),
|
|
371
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
372
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "Press Enter or Esc to close" }) })
|
|
372
373
|
] }),
|
|
373
374
|
step === "error" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", children: [
|
|
374
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "red", children: "\u2717 Export failed" }),
|
|
375
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "red", children: exportResult?.error }) }),
|
|
376
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
375
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("red"), children: "\u2717 Export failed" }),
|
|
376
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("red"), children: exportResult?.error }) }),
|
|
377
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: "Press Enter or Esc to close" }) })
|
|
377
378
|
] })
|
|
378
379
|
]
|
|
379
380
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportWizard.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/ExportWizard.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAA4E,MAAM,OAAO,CAAC;AAIjG,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ExportWizard.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/ExportWizard.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAA4E,MAAM,OAAO,CAAC;AAIjG,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAa9D,UAAU,iBAAiB;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IAC/B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CACrD;AA4JD;;GAEG;AACH,QAAA,MAAM,YAAY,8FAqVhB,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { useState, useEffect, forwardRef, useImperativeHandle, useCallback } fro
|
|
|
3
3
|
import { Box, Text } from "ink";
|
|
4
4
|
import fs from "fs/promises";
|
|
5
5
|
import path from "path";
|
|
6
|
+
import { tone } from "../../signal/index.js";
|
|
6
7
|
function generateDefaultFilename(sessionId, format) {
|
|
7
8
|
const date = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
8
9
|
const shortId = sessionId ? sessionId.slice(0, 6) : "unknown";
|
|
@@ -256,91 +257,91 @@ const ExportWizard = forwardRef(function ExportWizard2({ isVisible, agent, sessi
|
|
|
256
257
|
{
|
|
257
258
|
flexDirection: "column",
|
|
258
259
|
borderStyle: "round",
|
|
259
|
-
borderColor: "
|
|
260
|
+
borderColor: tone("teal"),
|
|
260
261
|
paddingX: 1,
|
|
261
262
|
marginTop: 1,
|
|
262
263
|
children: [
|
|
263
|
-
/* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, color: "
|
|
264
|
+
/* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, color: tone("teal"), children: "\u{1F4E4} Export Conversation" }) }),
|
|
264
265
|
step === "format" && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
|
|
265
266
|
/* @__PURE__ */ jsx(Text, { children: "Select export format:" }),
|
|
266
267
|
/* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", children: [
|
|
267
|
-
/* @__PURE__ */ jsxs(Text, { ...selectedIndex === 0 ? { color: "
|
|
268
|
+
/* @__PURE__ */ jsxs(Text, { ...selectedIndex === 0 ? { color: tone("teal") } : {}, children: [
|
|
268
269
|
selectedIndex === 0 ? "\u276F " : " ",
|
|
269
270
|
"Markdown (.md) - Human readable"
|
|
270
271
|
] }),
|
|
271
|
-
/* @__PURE__ */ jsxs(Text, { ...selectedIndex === 1 ? { color: "
|
|
272
|
+
/* @__PURE__ */ jsxs(Text, { ...selectedIndex === 1 ? { color: tone("teal") } : {}, children: [
|
|
272
273
|
selectedIndex === 1 ? "\u276F " : " ",
|
|
273
274
|
"JSON (.json) - Structured data"
|
|
274
275
|
] })
|
|
275
276
|
] }),
|
|
276
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
277
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "\u2191\u2193 to select \u2022 Enter to continue \u2022 Esc to cancel" }) })
|
|
277
278
|
] }),
|
|
278
279
|
step === "toolCalls" && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
|
|
279
280
|
/* @__PURE__ */ jsx(Text, { children: "Include tool calls and results?" }),
|
|
280
281
|
/* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", children: [
|
|
281
|
-
/* @__PURE__ */ jsxs(Text, { ...selectedIndex === 0 ? { color: "
|
|
282
|
+
/* @__PURE__ */ jsxs(Text, { ...selectedIndex === 0 ? { color: tone("teal") } : {}, children: [
|
|
282
283
|
selectedIndex === 0 ? "\u276F " : " ",
|
|
283
284
|
"Yes - Include all tool interactions"
|
|
284
285
|
] }),
|
|
285
|
-
/* @__PURE__ */ jsxs(Text, { ...selectedIndex === 1 ? { color: "
|
|
286
|
+
/* @__PURE__ */ jsxs(Text, { ...selectedIndex === 1 ? { color: tone("teal") } : {}, children: [
|
|
286
287
|
selectedIndex === 1 ? "\u276F " : " ",
|
|
287
288
|
"No - Only user and assistant messages"
|
|
288
289
|
] })
|
|
289
290
|
] }),
|
|
290
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
291
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "\u2191\u2193 to select \u2022 Enter to continue \u2022 Esc to cancel" }) })
|
|
291
292
|
] }),
|
|
292
293
|
step === "filename" && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
|
|
293
294
|
/* @__PURE__ */ jsx(Text, { children: "Filename:" }),
|
|
294
295
|
/* @__PURE__ */ jsxs(Box, { marginTop: 1, children: [
|
|
295
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
296
|
+
/* @__PURE__ */ jsx(Text, { color: tone("teal"), children: "> " }),
|
|
296
297
|
/* @__PURE__ */ jsx(Text, { children: filenameInput }),
|
|
297
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
298
|
+
/* @__PURE__ */ jsx(Text, { color: tone("teal"), children: "_" })
|
|
298
299
|
] }),
|
|
299
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
300
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Enter to continue \u2022 Esc to cancel" }) })
|
|
300
301
|
] }),
|
|
301
302
|
step === "confirm" && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
|
|
302
303
|
/* @__PURE__ */ jsx(Text, { children: "Export with these settings?" }),
|
|
303
304
|
/* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", marginLeft: 2, children: [
|
|
304
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
305
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
305
306
|
"Format:",
|
|
306
307
|
" ",
|
|
307
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
308
|
+
/* @__PURE__ */ jsx(Text, { color: tone("hi"), children: options.format === "markdown" ? "Markdown" : "JSON" })
|
|
308
309
|
] }),
|
|
309
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
310
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
310
311
|
"Tool calls:",
|
|
311
312
|
" ",
|
|
312
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
313
|
+
/* @__PURE__ */ jsx(Text, { color: tone("hi"), children: options.includeToolCalls ? "Yes" : "No" })
|
|
313
314
|
] }),
|
|
314
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
315
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
315
316
|
"File: ",
|
|
316
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
317
|
+
/* @__PURE__ */ jsx(Text, { color: tone("hi"), children: filenameInput })
|
|
317
318
|
] })
|
|
318
319
|
] }),
|
|
319
320
|
/* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", children: [
|
|
320
|
-
/* @__PURE__ */ jsxs(Text, { ...selectedIndex === 0 ? { color: "
|
|
321
|
+
/* @__PURE__ */ jsxs(Text, { ...selectedIndex === 0 ? { color: tone("add") } : {}, children: [
|
|
321
322
|
selectedIndex === 0 ? "\u276F " : " ",
|
|
322
323
|
"Export"
|
|
323
324
|
] }),
|
|
324
|
-
/* @__PURE__ */ jsxs(Text, { ...selectedIndex === 1 ? { color: "red" } : {}, children: [
|
|
325
|
+
/* @__PURE__ */ jsxs(Text, { ...selectedIndex === 1 ? { color: tone("red") } : {}, children: [
|
|
325
326
|
selectedIndex === 1 ? "\u276F " : " ",
|
|
326
327
|
"Cancel"
|
|
327
328
|
] })
|
|
328
329
|
] }),
|
|
329
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
330
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "\u2191\u2193 to select \u2022 Enter to confirm" }) })
|
|
330
331
|
] }),
|
|
331
|
-
step === "exporting" && /* @__PURE__ */ jsx(Box, { flexDirection: "column", children: /* @__PURE__ */ jsx(Text, { color: "
|
|
332
|
+
step === "exporting" && /* @__PURE__ */ jsx(Box, { flexDirection: "column", children: /* @__PURE__ */ jsx(Text, { color: tone("amberDim"), children: "Exporting..." }) }),
|
|
332
333
|
step === "done" && exportResult?.success && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
|
|
333
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
334
|
+
/* @__PURE__ */ jsx(Text, { color: tone("add"), children: "\u2713 Exported successfully!" }),
|
|
334
335
|
/* @__PURE__ */ jsxs(Box, { marginTop: 1, children: [
|
|
335
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
336
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Saved to: " }),
|
|
336
337
|
/* @__PURE__ */ jsx(Text, { children: exportResult.path })
|
|
337
338
|
] }),
|
|
338
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
339
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Press Enter or Esc to close" }) })
|
|
339
340
|
] }),
|
|
340
341
|
step === "error" && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
|
|
341
|
-
/* @__PURE__ */ jsx(Text, { color: "red", children: "\u2717 Export failed" }),
|
|
342
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "red", children: exportResult?.error }) }),
|
|
343
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
342
|
+
/* @__PURE__ */ jsx(Text, { color: tone("red"), children: "\u2717 Export failed" }),
|
|
343
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("red"), children: exportResult?.error }) }),
|
|
344
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Press Enter or Esc to close" }) })
|
|
344
345
|
] })
|
|
345
346
|
]
|
|
346
347
|
}
|