@dexto/tui 1.15.0-beta.0 → 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 +37 -113
- package/dist/components/Footer.d.ts +2 -2
- package/dist/components/Footer.d.ts.map +1 -1
- package/dist/components/Footer.js +40 -119
- 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 +8 -7
- package/dist/components/overlays/InsufficientCreditsOverlay.d.ts.map +1 -1
- package/dist/components/overlays/InsufficientCreditsOverlay.js +8 -7
- 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 +7 -6
- package/dist/components/overlays/LoginOverlay.d.ts.map +1 -1
- package/dist/components/overlays/LoginOverlay.js +7 -6
- package/dist/components/overlays/LogoutOverlay.cjs +10 -9
- package/dist/components/overlays/LogoutOverlay.d.ts.map +1 -1
- package/dist/components/overlays/LogoutOverlay.js +10 -9
- 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/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 +2 -4
- package/dist/containers/OverlayContainer.d.ts.map +1 -1
- package/dist/containers/OverlayContainer.js +2 -4
- 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/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 +31 -19
- package/dist/services/processStream.d.ts.map +1 -1
- package/dist/services/processStream.js +32 -20
- package/dist/services/processStream.test.cjs +51 -3
- package/dist/services/processStream.test.js +51 -3
- 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/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 +7 -3
- 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
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
isNodeLlamaCppInstalled
|
|
25
25
|
} from "@dexto/core";
|
|
26
26
|
import { SetupInfoBanner } from "./shared/index.js";
|
|
27
|
+
import { tone } from "../../../signal/index.js";
|
|
27
28
|
const MAX_VISIBLE_ITEMS = 8;
|
|
28
29
|
const LocalModelWizard = forwardRef(
|
|
29
30
|
function LocalModelWizard2({ isVisible, onComplete, onClose }, ref) {
|
|
@@ -489,34 +490,40 @@ const LocalModelWizard = forwardRef(
|
|
|
489
490
|
{
|
|
490
491
|
flexDirection: "column",
|
|
491
492
|
borderStyle: "round",
|
|
492
|
-
borderColor: "
|
|
493
|
+
borderColor: tone("amberDim"),
|
|
493
494
|
paddingX: 1,
|
|
494
495
|
marginTop: 1,
|
|
495
496
|
children: [
|
|
496
|
-
/* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, color: "
|
|
497
|
+
/* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, color: tone("amberDim"), children: "Dependency Required" }) }),
|
|
497
498
|
/* @__PURE__ */ jsx(Text, { children: "Local model execution requires node-llama-cpp." }),
|
|
498
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
499
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "This will compile native bindings for your system." }),
|
|
499
500
|
isInstallingNodeLlama ? /* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", children: [
|
|
500
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Text, { color: "
|
|
501
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Text, { color: tone("teal"), children: [
|
|
501
502
|
BRAILLE_SPINNER_FRAMES[installSpinnerFrame],
|
|
502
503
|
" Installing node-llama-cpp (compiling native bindings)..."
|
|
503
504
|
] }) }),
|
|
504
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
505
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "This may take 1-2 minutes." })
|
|
505
506
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
506
507
|
/* @__PURE__ */ jsx(Box, { marginTop: 1, marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { children: "Install node-llama-cpp now?" }) }),
|
|
507
508
|
options.map((option, idx) => /* @__PURE__ */ jsxs(Box, { children: [
|
|
508
|
-
/* @__PURE__ */ jsxs(
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
509
|
+
/* @__PURE__ */ jsxs(
|
|
510
|
+
Text,
|
|
511
|
+
{
|
|
512
|
+
color: idx === installConfirmIndex ? tone("teal") : tone("hi"),
|
|
513
|
+
children: [
|
|
514
|
+
idx === installConfirmIndex ? "\u276F " : " ",
|
|
515
|
+
option.label
|
|
516
|
+
]
|
|
517
|
+
}
|
|
518
|
+
),
|
|
519
|
+
idx === installConfirmIndex && /* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
513
520
|
" - ",
|
|
514
521
|
option.description
|
|
515
522
|
] })
|
|
516
523
|
] }, option.label))
|
|
517
524
|
] }),
|
|
518
|
-
error && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "red", children: error }) }),
|
|
519
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
525
|
+
error && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("red"), children: error }) }),
|
|
526
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: isInstallingNodeLlama ? "Please wait..." : "\u2191\u2193 navigate \u2022 Enter select \u2022 Esc cancel" }) })
|
|
520
527
|
]
|
|
521
528
|
}
|
|
522
529
|
);
|
|
@@ -527,10 +534,10 @@ const LocalModelWizard = forwardRef(
|
|
|
527
534
|
{
|
|
528
535
|
flexDirection: "column",
|
|
529
536
|
borderStyle: "round",
|
|
530
|
-
borderColor: "
|
|
537
|
+
borderColor: tone("add"),
|
|
531
538
|
paddingX: 1,
|
|
532
539
|
marginTop: 1,
|
|
533
|
-
children: /* @__PURE__ */ jsx(Text, { color: "
|
|
540
|
+
children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Loading models..." })
|
|
534
541
|
}
|
|
535
542
|
);
|
|
536
543
|
}
|
|
@@ -540,17 +547,17 @@ const LocalModelWizard = forwardRef(
|
|
|
540
547
|
{
|
|
541
548
|
flexDirection: "column",
|
|
542
549
|
borderStyle: "round",
|
|
543
|
-
borderColor: "
|
|
550
|
+
borderColor: tone("add"),
|
|
544
551
|
paddingX: 1,
|
|
545
552
|
marginTop: 1,
|
|
546
553
|
children: [
|
|
547
|
-
/* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, color: "
|
|
554
|
+
/* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, color: tone("add"), children: "Downloading Model" }) }),
|
|
548
555
|
downloadError ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
549
|
-
/* @__PURE__ */ jsxs(Text, { color: "red", children: [
|
|
556
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("red"), children: [
|
|
550
557
|
"Download failed: ",
|
|
551
558
|
downloadError
|
|
552
559
|
] }),
|
|
553
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
560
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Press Esc to go back" }) })
|
|
554
561
|
] }) : downloadProgress ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
555
562
|
/* @__PURE__ */ jsxs(Text, { children: [
|
|
556
563
|
selectedModelId,
|
|
@@ -558,7 +565,7 @@ const LocalModelWizard = forwardRef(
|
|
|
558
565
|
downloadProgress.percentage.toFixed(1),
|
|
559
566
|
"%"
|
|
560
567
|
] }),
|
|
561
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
568
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
562
569
|
formatSize(downloadProgress.bytesDownloaded),
|
|
563
570
|
" /",
|
|
564
571
|
" ",
|
|
@@ -567,17 +574,17 @@ const LocalModelWizard = forwardRef(
|
|
|
567
574
|
downloadProgress.eta ? ` \u2022 ETA: ${Math.round(downloadProgress.eta)}s` : ""
|
|
568
575
|
] }),
|
|
569
576
|
/* @__PURE__ */ jsxs(Box, { marginTop: 1, children: [
|
|
570
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
577
|
+
/* @__PURE__ */ jsx(Text, { color: tone("add"), children: "\u2588".repeat(
|
|
571
578
|
Math.min(20, Math.floor(downloadProgress.percentage / 5))
|
|
572
579
|
) }),
|
|
573
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
580
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "\u2591".repeat(
|
|
574
581
|
Math.max(
|
|
575
582
|
0,
|
|
576
583
|
20 - Math.floor(downloadProgress.percentage / 5)
|
|
577
584
|
)
|
|
578
585
|
) })
|
|
579
586
|
] })
|
|
580
|
-
] }) : /* @__PURE__ */ jsx(Text, { color: "
|
|
587
|
+
] }) : /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Starting download..." })
|
|
581
588
|
]
|
|
582
589
|
}
|
|
583
590
|
);
|
|
@@ -592,26 +599,32 @@ const LocalModelWizard = forwardRef(
|
|
|
592
599
|
{
|
|
593
600
|
flexDirection: "column",
|
|
594
601
|
borderStyle: "round",
|
|
595
|
-
borderColor: "
|
|
602
|
+
borderColor: tone("add"),
|
|
596
603
|
paddingX: 1,
|
|
597
604
|
marginTop: 1,
|
|
598
605
|
children: [
|
|
599
606
|
/* @__PURE__ */ jsxs(Box, { marginBottom: 1, children: [
|
|
600
|
-
/* @__PURE__ */ jsx(Text, { bold: true, color: "
|
|
601
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
607
|
+
/* @__PURE__ */ jsx(Text, { bold: true, color: tone("add"), children: selectedInstalledModel.displayName }),
|
|
608
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: " (installed)" })
|
|
602
609
|
] }),
|
|
603
|
-
isDeleting ? /* @__PURE__ */ jsx(Text, { color: "
|
|
604
|
-
/* @__PURE__ */ jsxs(
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
610
|
+
isDeleting ? /* @__PURE__ */ jsx(Text, { color: tone("amberDim"), children: "Deleting model..." }) : /* @__PURE__ */ jsx(Fragment, { children: options.map((option, idx) => /* @__PURE__ */ jsxs(Box, { children: [
|
|
611
|
+
/* @__PURE__ */ jsxs(
|
|
612
|
+
Text,
|
|
613
|
+
{
|
|
614
|
+
color: idx === installedOptionIndex ? tone("teal") : tone("hi"),
|
|
615
|
+
children: [
|
|
616
|
+
idx === installedOptionIndex ? "\u276F " : " ",
|
|
617
|
+
option.label
|
|
618
|
+
]
|
|
619
|
+
}
|
|
620
|
+
),
|
|
621
|
+
idx === installedOptionIndex && /* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
609
622
|
" - ",
|
|
610
623
|
option.description
|
|
611
624
|
] })
|
|
612
625
|
] }, option.label)) }),
|
|
613
|
-
error && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "red", children: error }) }),
|
|
614
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
626
|
+
error && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("red"), children: error }) }),
|
|
627
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: isDeleting ? "Please wait..." : "Enter to select \u2022 Esc to go back" }) })
|
|
615
628
|
]
|
|
616
629
|
}
|
|
617
630
|
);
|
|
@@ -622,20 +635,20 @@ const LocalModelWizard = forwardRef(
|
|
|
622
635
|
{
|
|
623
636
|
flexDirection: "column",
|
|
624
637
|
borderStyle: "round",
|
|
625
|
-
borderColor: "
|
|
638
|
+
borderColor: tone("add"),
|
|
626
639
|
paddingX: 1,
|
|
627
640
|
marginTop: 1,
|
|
628
641
|
children: [
|
|
629
|
-
/* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, color: "
|
|
642
|
+
/* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, color: tone("add"), children: "Custom GGUF File" }) }),
|
|
630
643
|
/* @__PURE__ */ jsx(Text, { children: "Enter path to GGUF file:" }),
|
|
631
644
|
/* @__PURE__ */ jsxs(Box, { marginTop: 1, children: [
|
|
632
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
645
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "> " }),
|
|
633
646
|
/* @__PURE__ */ jsx(Text, { children: customPath }),
|
|
634
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
647
|
+
/* @__PURE__ */ jsx(Text, { color: tone("teal"), children: "\u258C" })
|
|
635
648
|
] }),
|
|
636
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
637
|
-
error && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "red", children: error }) }),
|
|
638
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
649
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "e.g., /path/to/model.gguf or ~/models/llama.gguf" }),
|
|
650
|
+
error && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("red"), children: error }) }),
|
|
651
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Enter to continue \u2022 Esc to go back" }) })
|
|
639
652
|
]
|
|
640
653
|
}
|
|
641
654
|
);
|
|
@@ -646,19 +659,19 @@ const LocalModelWizard = forwardRef(
|
|
|
646
659
|
{
|
|
647
660
|
flexDirection: "column",
|
|
648
661
|
borderStyle: "round",
|
|
649
|
-
borderColor: "
|
|
662
|
+
borderColor: tone("add"),
|
|
650
663
|
paddingX: 1,
|
|
651
664
|
marginTop: 1,
|
|
652
665
|
children: [
|
|
653
|
-
/* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, color: "
|
|
666
|
+
/* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, color: tone("add"), children: "Display Name" }) }),
|
|
654
667
|
/* @__PURE__ */ jsx(Text, { children: "Display name (optional):" }),
|
|
655
668
|
/* @__PURE__ */ jsxs(Box, { marginTop: 1, children: [
|
|
656
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
669
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "> " }),
|
|
657
670
|
/* @__PURE__ */ jsx(Text, { children: displayName }),
|
|
658
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
671
|
+
/* @__PURE__ */ jsx(Text, { color: tone("teal"), children: "\u258C" })
|
|
659
672
|
] }),
|
|
660
|
-
error && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "red", children: error }) }),
|
|
661
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
673
|
+
error && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("red"), children: error }) }),
|
|
674
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "Enter to save \u2022 Esc to go back" }) })
|
|
662
675
|
]
|
|
663
676
|
}
|
|
664
677
|
);
|
|
@@ -677,13 +690,13 @@ const LocalModelWizard = forwardRef(
|
|
|
677
690
|
{
|
|
678
691
|
flexDirection: "column",
|
|
679
692
|
borderStyle: "round",
|
|
680
|
-
borderColor: "
|
|
693
|
+
borderColor: tone("add"),
|
|
681
694
|
paddingX: 1,
|
|
682
695
|
marginTop: 1,
|
|
683
696
|
children: [
|
|
684
697
|
/* @__PURE__ */ jsxs(Box, { marginBottom: 1, children: [
|
|
685
|
-
/* @__PURE__ */ jsx(Text, { bold: true, color: "
|
|
686
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
698
|
+
/* @__PURE__ */ jsx(Text, { bold: true, color: tone("add"), children: "Local Model" }),
|
|
699
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
687
700
|
" ",
|
|
688
701
|
"(",
|
|
689
702
|
selectedIndex + 1,
|
|
@@ -706,11 +719,18 @@ const LocalModelWizard = forwardRef(
|
|
|
706
719
|
if ("type" in item) {
|
|
707
720
|
if (item.type === "show-all") {
|
|
708
721
|
return /* @__PURE__ */ jsxs(Box, { paddingY: 0, children: [
|
|
709
|
-
/* @__PURE__ */ jsxs(
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
722
|
+
/* @__PURE__ */ jsxs(
|
|
723
|
+
Text,
|
|
724
|
+
{
|
|
725
|
+
color: isSelected ? tone("teal") : tone("fg"),
|
|
726
|
+
bold: isSelected,
|
|
727
|
+
children: [
|
|
728
|
+
isSelected ? "\u203A " : " ",
|
|
729
|
+
showAllModels ? "\u21A9 Show recommended" : "... Show all models"
|
|
730
|
+
]
|
|
731
|
+
}
|
|
732
|
+
),
|
|
733
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
714
734
|
" ",
|
|
715
735
|
"(",
|
|
716
736
|
getAllLocalModels().length,
|
|
@@ -719,30 +739,44 @@ const LocalModelWizard = forwardRef(
|
|
|
719
739
|
] }, "show-all");
|
|
720
740
|
}
|
|
721
741
|
if (item.type === "custom-path") {
|
|
722
|
-
return /* @__PURE__ */ jsx(Box, { paddingY: 0, children: /* @__PURE__ */ jsxs(
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
742
|
+
return /* @__PURE__ */ jsx(Box, { paddingY: 0, children: /* @__PURE__ */ jsxs(
|
|
743
|
+
Text,
|
|
744
|
+
{
|
|
745
|
+
color: isSelected ? tone("teal") : tone("fg"),
|
|
746
|
+
bold: isSelected,
|
|
747
|
+
children: [
|
|
748
|
+
isSelected ? "\u203A " : " ",
|
|
749
|
+
"... Use custom GGUF file"
|
|
750
|
+
]
|
|
751
|
+
}
|
|
752
|
+
) }, "custom-path");
|
|
726
753
|
}
|
|
727
754
|
if (item.type === "back") {
|
|
728
|
-
return /* @__PURE__ */ jsx(Box, { paddingY: 0, children: /* @__PURE__ */ jsxs(
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
755
|
+
return /* @__PURE__ */ jsx(Box, { paddingY: 0, children: /* @__PURE__ */ jsxs(
|
|
756
|
+
Text,
|
|
757
|
+
{
|
|
758
|
+
color: isSelected ? tone("teal") : tone("dim"),
|
|
759
|
+
bold: isSelected,
|
|
760
|
+
children: [
|
|
761
|
+
isSelected ? "\u203A " : " ",
|
|
762
|
+
"\u2190 Back"
|
|
763
|
+
]
|
|
764
|
+
}
|
|
765
|
+
) }, "back");
|
|
732
766
|
}
|
|
733
767
|
}
|
|
734
768
|
const model = item;
|
|
735
769
|
const statusIcon = model.isInstalled ? "\u2713" : "\u25CB";
|
|
736
|
-
const statusColor = model.isInstalled ? "
|
|
770
|
+
const statusColor = model.isInstalled ? tone("add") : tone("dim");
|
|
737
771
|
const vramHint = model.minVRAM ? `${model.minVRAM}GB+ VRAM` : "CPU OK";
|
|
738
772
|
return /* @__PURE__ */ jsxs(Box, { paddingY: 0, children: [
|
|
739
|
-
/* @__PURE__ */ jsx(Text, { color: isSelected ? "
|
|
773
|
+
/* @__PURE__ */ jsx(Text, { color: isSelected ? tone("teal") : tone("hi"), bold: isSelected, children: isSelected ? "\u203A " : " " }),
|
|
740
774
|
/* @__PURE__ */ jsxs(Text, { color: statusColor, children: [
|
|
741
775
|
statusIcon,
|
|
742
776
|
" "
|
|
743
777
|
] }),
|
|
744
|
-
/* @__PURE__ */ jsx(Text, { color: isSelected ? "
|
|
745
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
778
|
+
/* @__PURE__ */ jsx(Text, { color: isSelected ? tone("teal") : tone("hi"), bold: isSelected, children: model.name }),
|
|
779
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
746
780
|
" ",
|
|
747
781
|
formatSize(model.sizeBytes),
|
|
748
782
|
" | ",
|
|
@@ -751,12 +785,12 @@ const LocalModelWizard = forwardRef(
|
|
|
751
785
|
] })
|
|
752
786
|
] }, model.id);
|
|
753
787
|
}),
|
|
754
|
-
allItems.length > MAX_VISIBLE_ITEMS && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsxs(Text, { color: "
|
|
788
|
+
allItems.length > MAX_VISIBLE_ITEMS && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
755
789
|
scrollOffset > 0 ? "\u2191 more above " : "",
|
|
756
790
|
visibleEnd < allItems.length ? "\u2193 more below" : ""
|
|
757
791
|
] }) }),
|
|
758
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
759
|
-
error && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "red", children: error }) })
|
|
792
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "\u2191\u2193 navigate \u2022 Enter select \u2022 Esc back" }) }),
|
|
793
|
+
error && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("red"), children: error }) })
|
|
760
794
|
]
|
|
761
795
|
}
|
|
762
796
|
);
|
|
@@ -27,16 +27,17 @@ module.exports = __toCommonJS(ApiKeyStep_exports);
|
|
|
27
27
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28
28
|
var import_ink = require("ink");
|
|
29
29
|
var import_agent_management = require("@dexto/agent-management");
|
|
30
|
+
var import_signal = require("../../../../signal/index.js");
|
|
30
31
|
function ApiKeyStep({ provider }) {
|
|
31
32
|
const keyStatus = (0, import_agent_management.getProviderKeyStatus)(provider);
|
|
32
33
|
if (keyStatus.hasApiKey) {
|
|
33
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
34
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("add"), children: [
|
|
34
35
|
"\u2713 ",
|
|
35
36
|
keyStatus.envVar,
|
|
36
37
|
" already set, press Enter to skip"
|
|
37
38
|
] });
|
|
38
39
|
}
|
|
39
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
40
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("amber"), children: [
|
|
40
41
|
"No ",
|
|
41
42
|
keyStatus.envVar,
|
|
42
43
|
" configured"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiKeyStep.d.ts","sourceRoot":"","sources":["../../../../../src/components/overlays/custom-model-wizard/shared/ApiKeyStep.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"ApiKeyStep.d.ts","sourceRoot":"","sources":["../../../../../src/components/overlays/custom-model-wizard/shared/ApiKeyStep.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAGnE,UAAU,eAAe;IACrB,wBAAwB;IACxB,QAAQ,EAAE,mBAAmB,CAAC;CACjC;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,eAAe,GAAG,KAAK,CAAC,YAAY,CAU5E;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,MAAM,CAGvE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,OAAO,CAG1E;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Text } from "ink";
|
|
3
3
|
import { getProviderKeyStatus } from "@dexto/agent-management";
|
|
4
|
+
import { tone } from "../../../../signal/index.js";
|
|
4
5
|
function ApiKeyStep({ provider }) {
|
|
5
6
|
const keyStatus = getProviderKeyStatus(provider);
|
|
6
7
|
if (keyStatus.hasApiKey) {
|
|
7
|
-
return /* @__PURE__ */ jsxs(Text, { color: "
|
|
8
|
+
return /* @__PURE__ */ jsxs(Text, { color: tone("add"), children: [
|
|
8
9
|
"\u2713 ",
|
|
9
10
|
keyStatus.envVar,
|
|
10
11
|
" already set, press Enter to skip"
|
|
11
12
|
] });
|
|
12
13
|
}
|
|
13
|
-
return /* @__PURE__ */ jsxs(Text, { color: "
|
|
14
|
+
return /* @__PURE__ */ jsxs(Text, { color: tone("amber"), children: [
|
|
14
15
|
"No ",
|
|
15
16
|
keyStatus.envVar,
|
|
16
17
|
" configured"
|
|
@@ -25,6 +25,7 @@ module.exports = __toCommonJS(ProviderSelector_exports);
|
|
|
25
25
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
26
|
var import_ink = require("ink");
|
|
27
27
|
var import_provider_config = require("../provider-config.js");
|
|
28
|
+
var import_signal = require("../../../../signal/index.js");
|
|
28
29
|
function ProviderSelector({
|
|
29
30
|
selectedIndex,
|
|
30
31
|
isEditing
|
|
@@ -35,16 +36,16 @@ function ProviderSelector({
|
|
|
35
36
|
{
|
|
36
37
|
flexDirection: "column",
|
|
37
38
|
borderStyle: "round",
|
|
38
|
-
borderColor: "
|
|
39
|
+
borderColor: (0, import_signal.tone)("add"),
|
|
39
40
|
paddingX: 1,
|
|
40
41
|
marginTop: 1,
|
|
41
42
|
children: [
|
|
42
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginBottom: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { bold: true, color: "
|
|
43
|
+
/* @__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)("add"), children: isEditing ? "Edit Custom Model" : "Add Custom Model" }) }),
|
|
43
44
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { bold: true, children: "Select Provider:" }),
|
|
44
45
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { flexDirection: "column", marginTop: 1, children: providers.map((provider, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
45
46
|
import_ink.Text,
|
|
46
47
|
{
|
|
47
|
-
color: index === selectedIndex ? "
|
|
48
|
+
color: index === selectedIndex ? (0, import_signal.tone)("teal") : (0, import_signal.tone)("dim"),
|
|
48
49
|
bold: index === selectedIndex,
|
|
49
50
|
children: [
|
|
50
51
|
index === selectedIndex ? "\u276F " : " ",
|
|
@@ -52,7 +53,7 @@ function ProviderSelector({
|
|
|
52
53
|
]
|
|
53
54
|
}
|
|
54
55
|
) }, provider)) }),
|
|
55
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
56
|
+
/* @__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 navigate \u2022 Enter select \u2022 Esc cancel" }) })
|
|
56
57
|
]
|
|
57
58
|
}
|
|
58
59
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderSelector.d.ts","sourceRoot":"","sources":["../../../../../src/components/overlays/custom-model-wizard/shared/ProviderSelector.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ProviderSelector.d.ts","sourceRoot":"","sources":["../../../../../src/components/overlays/custom-model-wizard/shared/ProviderSelector.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,qBAAqB;IAC3B,2CAA2C;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,SAAS,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAC7B,aAAa,EACb,SAAS,GACZ,EAAE,qBAAqB,GAAG,KAAK,CAAC,YAAY,CAsC5C;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Text } from "ink";
|
|
3
3
|
import { getProviderLabel, getAvailableProviders } from "../provider-config.js";
|
|
4
|
+
import { tone } from "../../../../signal/index.js";
|
|
4
5
|
function ProviderSelector({
|
|
5
6
|
selectedIndex,
|
|
6
7
|
isEditing
|
|
@@ -11,16 +12,16 @@ function ProviderSelector({
|
|
|
11
12
|
{
|
|
12
13
|
flexDirection: "column",
|
|
13
14
|
borderStyle: "round",
|
|
14
|
-
borderColor: "
|
|
15
|
+
borderColor: tone("add"),
|
|
15
16
|
paddingX: 1,
|
|
16
17
|
marginTop: 1,
|
|
17
18
|
children: [
|
|
18
|
-
/* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, color: "
|
|
19
|
+
/* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Text, { bold: true, color: tone("add"), children: isEditing ? "Edit Custom Model" : "Add Custom Model" }) }),
|
|
19
20
|
/* @__PURE__ */ jsx(Text, { bold: true, children: "Select Provider:" }),
|
|
20
21
|
/* @__PURE__ */ jsx(Box, { flexDirection: "column", marginTop: 1, children: providers.map((provider, index) => /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(
|
|
21
22
|
Text,
|
|
22
23
|
{
|
|
23
|
-
color: index === selectedIndex ? "
|
|
24
|
+
color: index === selectedIndex ? tone("teal") : tone("dim"),
|
|
24
25
|
bold: index === selectedIndex,
|
|
25
26
|
children: [
|
|
26
27
|
index === selectedIndex ? "\u276F " : " ",
|
|
@@ -28,7 +29,7 @@ function ProviderSelector({
|
|
|
28
29
|
]
|
|
29
30
|
}
|
|
30
31
|
) }, provider)) }),
|
|
31
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
32
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("dim"), children: "\u2191\u2193 navigate \u2022 Enter select \u2022 Esc cancel" }) })
|
|
32
33
|
]
|
|
33
34
|
}
|
|
34
35
|
);
|
|
@@ -24,18 +24,19 @@ __export(SetupInfoBanner_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(SetupInfoBanner_exports);
|
|
25
25
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
26
|
var import_ink = require("ink");
|
|
27
|
+
var import_signal = require("../../../../signal/index.js");
|
|
27
28
|
function SetupInfoBanner({
|
|
28
29
|
title,
|
|
29
30
|
description,
|
|
30
31
|
docsUrl
|
|
31
32
|
}) {
|
|
32
33
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { flexDirection: "column", marginBottom: 1, children: [
|
|
33
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
34
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("fg"), children: [
|
|
34
35
|
"\u2139 ",
|
|
35
36
|
title
|
|
36
37
|
] }),
|
|
37
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
38
|
-
docsUrl && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: "
|
|
38
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: description }),
|
|
39
|
+
docsUrl && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: [
|
|
39
40
|
"Setup guide: ",
|
|
40
41
|
docsUrl
|
|
41
42
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetupInfoBanner.d.ts","sourceRoot":"","sources":["../../../../../src/components/overlays/custom-model-wizard/shared/SetupInfoBanner.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SetupInfoBanner.d.ts","sourceRoot":"","sources":["../../../../../src/components/overlays/custom-model-wizard/shared/SetupInfoBanner.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,oBAAoB;IAC1B,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC5B,KAAK,EACL,WAAW,EACX,OAAO,GACV,EAAE,oBAAoB,GAAG,KAAK,CAAC,YAAY,CAQ3C;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Text } from "ink";
|
|
3
|
+
import { tone } from "../../../../signal/index.js";
|
|
3
4
|
function SetupInfoBanner({
|
|
4
5
|
title,
|
|
5
6
|
description,
|
|
6
7
|
docsUrl
|
|
7
8
|
}) {
|
|
8
9
|
return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [
|
|
9
|
-
/* @__PURE__ */ jsxs(Text, { color: "
|
|
10
|
+
/* @__PURE__ */ jsxs(Text, { color: tone("fg"), children: [
|
|
10
11
|
"\u2139 ",
|
|
11
12
|
title
|
|
12
13
|
] }),
|
|
13
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
14
|
-
docsUrl && /* @__PURE__ */ jsxs(Text, { color: "
|
|
14
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: description }),
|
|
15
|
+
docsUrl && /* @__PURE__ */ jsxs(Text, { color: tone("dim"), children: [
|
|
15
16
|
"Setup guide: ",
|
|
16
17
|
docsUrl
|
|
17
18
|
] })
|
|
@@ -24,6 +24,7 @@ __export(WizardStepInput_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(WizardStepInput_exports);
|
|
25
25
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
26
|
var import_ink = require("ink");
|
|
27
|
+
var import_signal = require("../../../../signal/index.js");
|
|
27
28
|
function WizardStepInput({
|
|
28
29
|
step,
|
|
29
30
|
currentInput,
|
|
@@ -38,17 +39,17 @@ function WizardStepInput({
|
|
|
38
39
|
step.label,
|
|
39
40
|
":"
|
|
40
41
|
] }),
|
|
41
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
42
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("dim"), children: step.placeholder }),
|
|
42
43
|
additionalContent
|
|
43
44
|
] }),
|
|
44
45
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ink.Box, { marginTop: 1, children: [
|
|
45
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("teal"), children: "> " }),
|
|
46
47
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { children: currentInput }),
|
|
47
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: (0, import_signal.tone)("teal"), children: "_" })
|
|
48
49
|
] }),
|
|
49
|
-
error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "red", children: error }) }),
|
|
50
|
-
isValidating && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
51
|
-
isSaving && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Box, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ink.Text, { color: "
|
|
50
|
+
error && /* @__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: error }) }),
|
|
51
|
+
isValidating && /* @__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)("amber"), children: "Validating model..." }) }),
|
|
52
|
+
isSaving && /* @__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)("amber"), children: "Saving..." }) })
|
|
52
53
|
] });
|
|
53
54
|
}
|
|
54
55
|
var WizardStepInput_default = WizardStepInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardStepInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/overlays/custom-model-wizard/shared/WizardStepInput.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"WizardStepInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/overlays/custom-model-wizard/shared/WizardStepInput.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,UAAU,oBAAoB;IAC1B,iCAAiC;IACjC,IAAI,EAAE,UAAU,CAAC;IACjB,0BAA0B;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,wCAAwC;IACxC,YAAY,EAAE,OAAO,CAAC;IACtB,oCAAoC;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,qFAAqF;IACrF,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACvC;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,EAC5B,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,iBAAiB,GACpB,EAAE,oBAAoB,GAAG,KAAK,CAAC,YAAY,CAuC3C;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Text } from "ink";
|
|
3
|
+
import { tone } from "../../../../signal/index.js";
|
|
3
4
|
function WizardStepInput({
|
|
4
5
|
step,
|
|
5
6
|
currentInput,
|
|
@@ -14,17 +15,17 @@ function WizardStepInput({
|
|
|
14
15
|
step.label,
|
|
15
16
|
":"
|
|
16
17
|
] }),
|
|
17
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
18
|
+
/* @__PURE__ */ jsx(Text, { color: tone("dim"), children: step.placeholder }),
|
|
18
19
|
additionalContent
|
|
19
20
|
] }),
|
|
20
21
|
/* @__PURE__ */ jsxs(Box, { marginTop: 1, children: [
|
|
21
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
22
|
+
/* @__PURE__ */ jsx(Text, { color: tone("teal"), children: "> " }),
|
|
22
23
|
/* @__PURE__ */ jsx(Text, { children: currentInput }),
|
|
23
|
-
/* @__PURE__ */ jsx(Text, { color: "
|
|
24
|
+
/* @__PURE__ */ jsx(Text, { color: tone("teal"), children: "_" })
|
|
24
25
|
] }),
|
|
25
|
-
error && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "red", children: error }) }),
|
|
26
|
-
isValidating && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
27
|
-
isSaving && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: "
|
|
26
|
+
error && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("red"), children: error }) }),
|
|
27
|
+
isValidating && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("amber"), children: "Validating model..." }) }),
|
|
28
|
+
isSaving && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: tone("amber"), children: "Saving..." }) })
|
|
28
29
|
] });
|
|
29
30
|
}
|
|
30
31
|
var WizardStepInput_default = WizardStepInput;
|