@ranker/raxflow 0.2.0
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/dashboard/index.html +420 -0
- package/dist/benchmark.d.ts.map +1 -0
- package/dist/benchmark.js +123 -0
- package/dist/benchmark.js.map +1 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +141 -0
- package/dist/bin.js.map +1 -0
- package/dist/bootstrap.d.ts.map +1 -0
- package/dist/bootstrap.js +22 -0
- package/dist/bootstrap.js.map +1 -0
- package/dist/bridge-adapter-templates.d.ts.map +1 -0
- package/dist/bridge-adapter-templates.js +185 -0
- package/dist/bridge-adapter-templates.js.map +1 -0
- package/dist/bridge-test.d.ts.map +1 -0
- package/dist/bridge-test.js +89 -0
- package/dist/bridge-test.js.map +1 -0
- package/dist/dashboard.d.ts.map +1 -0
- package/dist/dashboard.js +49 -0
- package/dist/dashboard.js.map +1 -0
- package/dist/doctor.d.ts.map +1 -0
- package/dist/doctor.js +70 -0
- package/dist/doctor.js.map +1 -0
- package/dist/evolve.d.ts.map +1 -0
- package/dist/evolve.js +48 -0
- package/dist/evolve.js.map +1 -0
- package/dist/host-init-templates.d.ts.map +1 -0
- package/dist/host-init-templates.js +119 -0
- package/dist/host-init-templates.js.map +1 -0
- package/dist/hub/__tests__/commands.test.d.ts.map +1 -0
- package/dist/hub/__tests__/commands.test.js +72 -0
- package/dist/hub/__tests__/commands.test.js.map +1 -0
- package/dist/hub/__tests__/history.test.d.ts.map +1 -0
- package/dist/hub/__tests__/history.test.js +119 -0
- package/dist/hub/__tests__/history.test.js.map +1 -0
- package/dist/hub/__tests__/parser.test.d.ts.map +1 -0
- package/dist/hub/__tests__/parser.test.js +92 -0
- package/dist/hub/__tests__/parser.test.js.map +1 -0
- package/dist/hub/chat/ChatApp.d.ts +2 -0
- package/dist/hub/chat/ChatApp.d.ts.map +1 -0
- package/dist/hub/chat/ChatApp.js +146 -0
- package/dist/hub/chat/ChatApp.js.map +1 -0
- package/dist/hub/chat/components/ChatInput.d.ts +9 -0
- package/dist/hub/chat/components/ChatInput.d.ts.map +1 -0
- package/dist/hub/chat/components/ChatInput.js +19 -0
- package/dist/hub/chat/components/ChatInput.js.map +1 -0
- package/dist/hub/chat/components/MessageList.d.ts +7 -0
- package/dist/hub/chat/components/MessageList.d.ts.map +1 -0
- package/dist/hub/chat/components/MessageList.js +6 -0
- package/dist/hub/chat/components/MessageList.js.map +1 -0
- package/dist/hub/chat/context.d.ts.map +1 -0
- package/dist/hub/chat/context.js +42 -0
- package/dist/hub/chat/context.js.map +1 -0
- package/dist/hub/chat/hooks/useChatHistory.d.ts +7 -0
- package/dist/hub/chat/hooks/useChatHistory.d.ts.map +1 -0
- package/dist/hub/chat/hooks/useChatHistory.js +31 -0
- package/dist/hub/chat/hooks/useChatHistory.js.map +1 -0
- package/dist/hub/chat/index.d.ts.map +1 -0
- package/dist/hub/chat/index.js +7 -0
- package/dist/hub/chat/index.js.map +1 -0
- package/dist/hub/chat/intent-parser.d.ts.map +1 -0
- package/dist/hub/chat/intent-parser.js +48 -0
- package/dist/hub/chat/intent-parser.js.map +1 -0
- package/dist/hub/chat/types.d.ts.map +1 -0
- package/dist/hub/chat/types.js +2 -0
- package/dist/hub/chat/types.js.map +1 -0
- package/dist/hub/commands/agents.d.ts.map +1 -0
- package/dist/hub/commands/agents.js +36 -0
- package/dist/hub/commands/agents.js.map +1 -0
- package/dist/hub/commands/index.d.ts.map +1 -0
- package/dist/hub/commands/index.js +123 -0
- package/dist/hub/commands/index.js.map +1 -0
- package/dist/hub/commands/logs.d.ts.map +1 -0
- package/dist/hub/commands/logs.js +53 -0
- package/dist/hub/commands/logs.js.map +1 -0
- package/dist/hub/commands/memory.d.ts.map +1 -0
- package/dist/hub/commands/memory.js +40 -0
- package/dist/hub/commands/memory.js.map +1 -0
- package/dist/hub/commands/metrics.d.ts.map +1 -0
- package/dist/hub/commands/metrics.js +35 -0
- package/dist/hub/commands/metrics.js.map +1 -0
- package/dist/hub/commands/providers.d.ts.map +1 -0
- package/dist/hub/commands/providers.js +26 -0
- package/dist/hub/commands/providers.js.map +1 -0
- package/dist/hub/commands/run.d.ts.map +1 -0
- package/dist/hub/commands/run.js +31 -0
- package/dist/hub/commands/run.js.map +1 -0
- package/dist/hub/commands/status.d.ts.map +1 -0
- package/dist/hub/commands/status.js +61 -0
- package/dist/hub/commands/status.js.map +1 -0
- package/dist/hub/commands/workflows.d.ts.map +1 -0
- package/dist/hub/commands/workflows.js +45 -0
- package/dist/hub/commands/workflows.js.map +1 -0
- package/dist/hub/config-loader.d.ts.map +1 -0
- package/dist/hub/config-loader.js +27 -0
- package/dist/hub/config-loader.js.map +1 -0
- package/dist/hub/event-listener.d.ts +6 -0
- package/dist/hub/event-listener.d.ts.map +1 -0
- package/dist/hub/event-listener.js +12 -0
- package/dist/hub/event-listener.js.map +1 -0
- package/dist/hub/history.d.ts.map +1 -0
- package/dist/hub/history.js +59 -0
- package/dist/hub/history.js.map +1 -0
- package/dist/hub/index.d.ts.map +1 -0
- package/dist/hub/index.js +114 -0
- package/dist/hub/index.js.map +1 -0
- package/dist/hub/parser.d.ts.map +1 -0
- package/dist/hub/parser.js +98 -0
- package/dist/hub/parser.js.map +1 -0
- package/dist/hub/styles/borders.d.ts.map +1 -0
- package/dist/hub/styles/borders.js +64 -0
- package/dist/hub/styles/borders.js.map +1 -0
- package/dist/hub/styles/colors.d.ts.map +1 -0
- package/dist/hub/styles/colors.js +115 -0
- package/dist/hub/styles/colors.js.map +1 -0
- package/dist/hub/styles/typography.d.ts.map +1 -0
- package/dist/hub/styles/typography.js +60 -0
- package/dist/hub/styles/typography.js.map +1 -0
- package/dist/hub/tui/App.d.ts +2 -0
- package/dist/hub/tui/App.d.ts.map +1 -0
- package/dist/hub/tui/App.js +53 -0
- package/dist/hub/tui/App.js.map +1 -0
- package/dist/hub/tui/components/AgentQueue.d.ts +6 -0
- package/dist/hub/tui/components/AgentQueue.d.ts.map +1 -0
- package/dist/hub/tui/components/AgentQueue.js +20 -0
- package/dist/hub/tui/components/AgentQueue.js.map +1 -0
- package/dist/hub/tui/components/DAGPanel.d.ts +16 -0
- package/dist/hub/tui/components/DAGPanel.d.ts.map +1 -0
- package/dist/hub/tui/components/DAGPanel.js +51 -0
- package/dist/hub/tui/components/DAGPanel.js.map +1 -0
- package/dist/hub/tui/components/Header.d.ts +7 -0
- package/dist/hub/tui/components/Header.d.ts.map +1 -0
- package/dist/hub/tui/components/Header.js +17 -0
- package/dist/hub/tui/components/Header.js.map +1 -0
- package/dist/hub/tui/components/LogsPanel.d.ts +6 -0
- package/dist/hub/tui/components/LogsPanel.d.ts.map +1 -0
- package/dist/hub/tui/components/LogsPanel.js +26 -0
- package/dist/hub/tui/components/LogsPanel.js.map +1 -0
- package/dist/hub/tui/components/StatusBar.d.ts +8 -0
- package/dist/hub/tui/components/StatusBar.d.ts.map +1 -0
- package/dist/hub/tui/components/StatusBar.js +7 -0
- package/dist/hub/tui/components/StatusBar.js.map +1 -0
- package/dist/hub/tui/hooks/useEvents.d.ts +2 -0
- package/dist/hub/tui/hooks/useEvents.d.ts.map +1 -0
- package/dist/hub/tui/hooks/useEvents.js +13 -0
- package/dist/hub/tui/hooks/useEvents.js.map +1 -0
- package/dist/hub/tui/index.d.ts.map +1 -0
- package/dist/hub/tui/index.js +7 -0
- package/dist/hub/tui/index.js.map +1 -0
- package/dist/hub/tui/types.d.ts.map +1 -0
- package/dist/hub/tui/types.js +2 -0
- package/dist/hub/tui/types.js.map +1 -0
- package/dist/hub/types.d.ts.map +1 -0
- package/dist/hub/types.js +2 -0
- package/dist/hub/types.js.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/init-host.d.ts.map +1 -0
- package/dist/init-host.js +232 -0
- package/dist/init-host.js.map +1 -0
- package/dist/install.d.ts.map +1 -0
- package/dist/install.js +99 -0
- package/dist/install.js.map +1 -0
- package/dist/run.d.ts.map +1 -0
- package/dist/run.js +238 -0
- package/dist/run.js.map +1 -0
- package/dist/setup/components/ApiKeyInput.d.ts +25 -0
- package/dist/setup/components/ApiKeyInput.d.ts.map +1 -0
- package/dist/setup/components/ApiKeyInput.js +54 -0
- package/dist/setup/components/ApiKeyInput.js.map +1 -0
- package/dist/setup/components/AsciiBanner.d.ts +22 -0
- package/dist/setup/components/AsciiBanner.d.ts.map +1 -0
- package/dist/setup/components/AsciiBanner.js +55 -0
- package/dist/setup/components/AsciiBanner.js.map +1 -0
- package/dist/setup/components/CliDetector.d.ts +17 -0
- package/dist/setup/components/CliDetector.d.ts.map +1 -0
- package/dist/setup/components/CliDetector.js +79 -0
- package/dist/setup/components/CliDetector.js.map +1 -0
- package/dist/setup/components/ModeSelector.d.ts +8 -0
- package/dist/setup/components/ModeSelector.d.ts.map +1 -0
- package/dist/setup/components/ModeSelector.js +76 -0
- package/dist/setup/components/ModeSelector.js.map +1 -0
- package/dist/setup/components/ProviderSelector.d.ts +18 -0
- package/dist/setup/components/ProviderSelector.d.ts.map +1 -0
- package/dist/setup/components/ProviderSelector.js +97 -0
- package/dist/setup/components/ProviderSelector.js.map +1 -0
- package/dist/setup/components/SetupWizard.d.ts +2 -0
- package/dist/setup/components/SetupWizard.d.ts.map +1 -0
- package/dist/setup/components/SetupWizard.js +212 -0
- package/dist/setup/components/SetupWizard.js.map +1 -0
- package/dist/setup/components/StepIndicator.d.ts +13 -0
- package/dist/setup/components/StepIndicator.d.ts.map +1 -0
- package/dist/setup/components/StepIndicator.js +18 -0
- package/dist/setup/components/StepIndicator.js.map +1 -0
- package/dist/setup/components/SuccessScreen.d.ts +18 -0
- package/dist/setup/components/SuccessScreen.d.ts.map +1 -0
- package/dist/setup/components/SuccessScreen.js +38 -0
- package/dist/setup/components/SuccessScreen.js.map +1 -0
- package/dist/setup/index.d.ts +12 -0
- package/dist/setup/index.d.ts.map +1 -0
- package/dist/setup/index.js +29 -0
- package/dist/setup/index.js.map +1 -0
- package/dist/setup/utils/cli-detection.d.ts +12 -0
- package/dist/setup/utils/cli-detection.d.ts.map +1 -0
- package/dist/setup/utils/cli-detection.js +83 -0
- package/dist/setup/utils/cli-detection.js.map +1 -0
- package/dist/setup/utils/config-writer.d.ts +43 -0
- package/dist/setup/utils/config-writer.d.ts.map +1 -0
- package/dist/setup/utils/config-writer.js +180 -0
- package/dist/setup/utils/config-writer.js.map +1 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/styles.js +12 -0
- package/dist/styles.js.map +1 -0
- package/dist/tui/App.d.ts +3 -0
- package/dist/tui/App.d.ts.map +1 -0
- package/dist/tui/App.js +131 -0
- package/dist/tui/App.js.map +1 -0
- package/dist/tui/components/AgentStateIcon.d.ts +18 -0
- package/dist/tui/components/AgentStateIcon.d.ts.map +1 -0
- package/dist/tui/components/AgentStateIcon.js +57 -0
- package/dist/tui/components/AgentStateIcon.js.map +1 -0
- package/dist/tui/components/AnimatedBranch.d.ts +39 -0
- package/dist/tui/components/AnimatedBranch.d.ts.map +1 -0
- package/dist/tui/components/AnimatedBranch.js +64 -0
- package/dist/tui/components/AnimatedBranch.js.map +1 -0
- package/dist/tui/components/ChatPanel.d.ts +16 -0
- package/dist/tui/components/ChatPanel.d.ts.map +1 -0
- package/dist/tui/components/ChatPanel.js +50 -0
- package/dist/tui/components/ChatPanel.js.map +1 -0
- package/dist/tui/components/DAGPanel.d.ts +36 -0
- package/dist/tui/components/DAGPanel.d.ts.map +1 -0
- package/dist/tui/components/DAGPanel.js +51 -0
- package/dist/tui/components/DAGPanel.js.map +1 -0
- package/dist/tui/components/ExecutionTimeline.d.ts +34 -0
- package/dist/tui/components/ExecutionTimeline.d.ts.map +1 -0
- package/dist/tui/components/ExecutionTimeline.js +67 -0
- package/dist/tui/components/ExecutionTimeline.js.map +1 -0
- package/dist/tui/components/Header.d.ts +12 -0
- package/dist/tui/components/Header.d.ts.map +1 -0
- package/dist/tui/components/Header.js +32 -0
- package/dist/tui/components/Header.js.map +1 -0
- package/dist/tui/components/HelpOverlay.d.ts +7 -0
- package/dist/tui/components/HelpOverlay.d.ts.map +1 -0
- package/dist/tui/components/HelpOverlay.js +60 -0
- package/dist/tui/components/HelpOverlay.js.map +1 -0
- package/dist/tui/components/InputBar.d.ts +10 -0
- package/dist/tui/components/InputBar.d.ts.map +1 -0
- package/dist/tui/components/InputBar.js +21 -0
- package/dist/tui/components/InputBar.js.map +1 -0
- package/dist/tui/components/LogsPanel.d.ts +9 -0
- package/dist/tui/components/LogsPanel.d.ts.map +1 -0
- package/dist/tui/components/LogsPanel.js +56 -0
- package/dist/tui/components/LogsPanel.js.map +1 -0
- package/dist/tui/components/MemoryPanel.d.ts +21 -0
- package/dist/tui/components/MemoryPanel.d.ts.map +1 -0
- package/dist/tui/components/MemoryPanel.js +51 -0
- package/dist/tui/components/MemoryPanel.js.map +1 -0
- package/dist/tui/components/MetricsPanel.d.ts +18 -0
- package/dist/tui/components/MetricsPanel.d.ts.map +1 -0
- package/dist/tui/components/MetricsPanel.js +27 -0
- package/dist/tui/components/MetricsPanel.js.map +1 -0
- package/dist/tui/components/StatusPanel.d.ts +23 -0
- package/dist/tui/components/StatusPanel.d.ts.map +1 -0
- package/dist/tui/components/StatusPanel.js +23 -0
- package/dist/tui/components/StatusPanel.js.map +1 -0
- package/dist/tui/components/TaskTree.d.ts +28 -0
- package/dist/tui/components/TaskTree.d.ts.map +1 -0
- package/dist/tui/components/TaskTree.js +29 -0
- package/dist/tui/components/TaskTree.js.map +1 -0
- package/dist/tui/components/animations/ProgressBar.d.ts +39 -0
- package/dist/tui/components/animations/ProgressBar.d.ts.map +1 -0
- package/dist/tui/components/animations/ProgressBar.js +39 -0
- package/dist/tui/components/animations/ProgressBar.js.map +1 -0
- package/dist/tui/components/animations/Pulse.d.ts +17 -0
- package/dist/tui/components/animations/Pulse.d.ts.map +1 -0
- package/dist/tui/components/animations/Pulse.js +47 -0
- package/dist/tui/components/animations/Pulse.js.map +1 -0
- package/dist/tui/components/animations/Spinner.d.ts +13 -0
- package/dist/tui/components/animations/Spinner.d.ts.map +1 -0
- package/dist/tui/components/animations/Spinner.js +36 -0
- package/dist/tui/components/animations/Spinner.js.map +1 -0
- package/dist/tui/components/animations/StatusAnimator.d.ts +27 -0
- package/dist/tui/components/animations/StatusAnimator.d.ts.map +1 -0
- package/dist/tui/components/animations/StatusAnimator.js +85 -0
- package/dist/tui/components/animations/StatusAnimator.js.map +1 -0
- package/dist/tui/components/animations/TypingEffect.d.ts +26 -0
- package/dist/tui/components/animations/TypingEffect.d.ts.map +1 -0
- package/dist/tui/components/animations/TypingEffect.js +59 -0
- package/dist/tui/components/animations/TypingEffect.js.map +1 -0
- package/dist/tui/components/animations/index.d.ts +8 -0
- package/dist/tui/components/animations/index.d.ts.map +1 -0
- package/dist/tui/components/animations/index.js +6 -0
- package/dist/tui/components/animations/index.js.map +1 -0
- package/dist/tui/hooks/useAnimation.d.ts +42 -0
- package/dist/tui/hooks/useAnimation.d.ts.map +1 -0
- package/dist/tui/hooks/useAnimation.js +212 -0
- package/dist/tui/hooks/useAnimation.js.map +1 -0
- package/dist/tui/hooks/useAppState.d.ts +65 -0
- package/dist/tui/hooks/useAppState.d.ts.map +1 -0
- package/dist/tui/hooks/useAppState.js +293 -0
- package/dist/tui/hooks/useAppState.js.map +1 -0
- package/dist/tui/index.d.ts +3 -0
- package/dist/tui/index.d.ts.map +1 -0
- package/dist/tui/index.js +8 -0
- package/dist/tui/index.js.map +1 -0
- package/dist/tui/services/orchestrator.d.ts +16 -0
- package/dist/tui/services/orchestrator.d.ts.map +1 -0
- package/dist/tui/services/orchestrator.js +152 -0
- package/dist/tui/services/orchestrator.js.map +1 -0
- package/dist/tui/styles/borders.d.ts +31 -0
- package/dist/tui/styles/borders.d.ts.map +1 -0
- package/dist/tui/styles/borders.js +47 -0
- package/dist/tui/styles/borders.js.map +1 -0
- package/dist/tui/styles/colors.d.ts +18 -0
- package/dist/tui/styles/colors.d.ts.map +1 -0
- package/dist/tui/styles/colors.js +18 -0
- package/dist/tui/styles/colors.js.map +1 -0
- package/dist/tui/styles/index.d.ts +6 -0
- package/dist/tui/styles/index.d.ts.map +1 -0
- package/dist/tui/styles/index.js +6 -0
- package/dist/tui/styles/index.js.map +1 -0
- package/dist/tui/styles/indicators.d.ts +67 -0
- package/dist/tui/styles/indicators.d.ts.map +1 -0
- package/dist/tui/styles/indicators.js +42 -0
- package/dist/tui/styles/indicators.js.map +1 -0
- package/dist/tui/styles/layout.d.ts +21 -0
- package/dist/tui/styles/layout.d.ts.map +1 -0
- package/dist/tui/styles/layout.js +42 -0
- package/dist/tui/styles/layout.js.map +1 -0
- package/dist/tui/styles/providers.d.ts +77 -0
- package/dist/tui/styles/providers.d.ts.map +1 -0
- package/dist/tui/styles/providers.js +31 -0
- package/dist/tui/styles/providers.js.map +1 -0
- package/dist/tui/utils/animation.d.ts +44 -0
- package/dist/tui/utils/animation.d.ts.map +1 -0
- package/dist/tui/utils/animation.js +107 -0
- package/dist/tui/utils/animation.js.map +1 -0
- package/dist/vendor-manifests.d.ts.map +1 -0
- package/dist/vendor-manifests.js +94 -0
- package/dist/vendor-manifests.js.map +1 -0
- package/dist/ws-relay.d.ts +12 -0
- package/dist/ws-relay.d.ts.map +1 -0
- package/dist/ws-relay.js +148 -0
- package/dist/ws-relay.js.map +1 -0
- package/package.json +34 -0
- package/src/benchmark.ts +156 -0
- package/src/bin.ts +156 -0
- package/src/bootstrap.ts +36 -0
- package/src/bridge-adapter-templates.ts +181 -0
- package/src/bridge-test.ts +107 -0
- package/src/dashboard.ts +51 -0
- package/src/doctor.ts +92 -0
- package/src/evolve.ts +74 -0
- package/src/host-init-templates.ts +134 -0
- package/src/hub/__tests__/commands.test.ts +84 -0
- package/src/hub/__tests__/history.test.ts +137 -0
- package/src/hub/__tests__/parser.test.ts +105 -0
- package/src/hub/commands/agents.ts +53 -0
- package/src/hub/commands/index.ts +140 -0
- package/src/hub/commands/logs.ts +70 -0
- package/src/hub/commands/memory.ts +47 -0
- package/src/hub/commands/metrics.ts +49 -0
- package/src/hub/commands/providers.ts +39 -0
- package/src/hub/commands/run.ts +37 -0
- package/src/hub/commands/status.ts +69 -0
- package/src/hub/commands/workflows.ts +64 -0
- package/src/hub/config-loader.ts +37 -0
- package/src/hub/event-listener.ts +17 -0
- package/src/hub/history.ts +66 -0
- package/src/hub/index.ts +132 -0
- package/src/hub/parser.ts +107 -0
- package/src/hub/styles/borders.ts +74 -0
- package/src/hub/styles/colors.ts +129 -0
- package/src/hub/styles/typography.ts +68 -0
- package/src/hub/types.ts +31 -0
- package/src/index.ts +10 -0
- package/src/init-host.ts +285 -0
- package/src/install.ts +118 -0
- package/src/run.ts +317 -0
- package/src/setup/components/ApiKeyInput.tsx +158 -0
- package/src/setup/components/AsciiBanner.tsx +125 -0
- package/src/setup/components/CliDetector.tsx +230 -0
- package/src/setup/components/ModeSelector.tsx +137 -0
- package/src/setup/components/ProviderSelector.tsx +174 -0
- package/src/setup/components/SetupWizard.tsx +368 -0
- package/src/setup/components/StepIndicator.tsx +74 -0
- package/src/setup/components/SuccessScreen.tsx +229 -0
- package/src/setup/index.ts +34 -0
- package/src/setup/utils/cli-detection.ts +99 -0
- package/src/setup/utils/config-writer.ts +249 -0
- package/src/styles.ts +12 -0
- package/src/tui/App.tsx +177 -0
- package/src/tui/components/AgentStateIcon.tsx +84 -0
- package/src/tui/components/AnimatedBranch.tsx +134 -0
- package/src/tui/components/ChatPanel.tsx +125 -0
- package/src/tui/components/DAGPanel.tsx +208 -0
- package/src/tui/components/ExecutionTimeline.tsx +225 -0
- package/src/tui/components/Header.tsx +109 -0
- package/src/tui/components/HelpOverlay.tsx +140 -0
- package/src/tui/components/InputBar.tsx +69 -0
- package/src/tui/components/LogsPanel.tsx +129 -0
- package/src/tui/components/MemoryPanel.tsx +163 -0
- package/src/tui/components/MetricsPanel.tsx +149 -0
- package/src/tui/components/StatusPanel.tsx +137 -0
- package/src/tui/components/TaskTree.tsx +159 -0
- package/src/tui/components/animations/ProgressBar.tsx +160 -0
- package/src/tui/components/animations/Pulse.tsx +73 -0
- package/src/tui/components/animations/Spinner.tsx +54 -0
- package/src/tui/components/animations/StatusAnimator.tsx +153 -0
- package/src/tui/components/animations/TypingEffect.tsx +119 -0
- package/src/tui/components/animations/index.ts +16 -0
- package/src/tui/hooks/useAnimation.ts +290 -0
- package/src/tui/hooks/useAppState.ts +403 -0
- package/src/tui/index.ts +9 -0
- package/src/tui/services/orchestrator.ts +195 -0
- package/src/tui/styles/borders.ts +51 -0
- package/src/tui/styles/colors.ts +19 -0
- package/src/tui/styles/index.ts +20 -0
- package/src/tui/styles/indicators.ts +54 -0
- package/src/tui/styles/layout.ts +44 -0
- package/src/tui/styles/providers.ts +32 -0
- package/src/tui/utils/animation.ts +124 -0
- package/src/vendor-manifests.ts +113 -0
- package/src/ws-relay.ts +156 -0
- package/tsconfig.json +28 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export const borders = {
|
|
2
|
+
horizontal: "─",
|
|
3
|
+
vertical: "│",
|
|
4
|
+
topLeft: "┌",
|
|
5
|
+
topRight: "┐",
|
|
6
|
+
bottomLeft: "└",
|
|
7
|
+
bottomRight: "┘",
|
|
8
|
+
leftT: "├",
|
|
9
|
+
rightT: "┤",
|
|
10
|
+
topT: "┬",
|
|
11
|
+
bottomT: "┴",
|
|
12
|
+
cross: "┼",
|
|
13
|
+
};
|
|
14
|
+
export const doubleBorders = {
|
|
15
|
+
horizontal: "═",
|
|
16
|
+
vertical: "║",
|
|
17
|
+
topLeft: "╔",
|
|
18
|
+
topRight: "╗",
|
|
19
|
+
bottomLeft: "╚",
|
|
20
|
+
bottomRight: "╝",
|
|
21
|
+
};
|
|
22
|
+
export const treeChars = {
|
|
23
|
+
branch: "├─",
|
|
24
|
+
lastBranch: "└─",
|
|
25
|
+
vertical: "│",
|
|
26
|
+
indent: " ",
|
|
27
|
+
};
|
|
28
|
+
export function drawTopBorder(width, title) {
|
|
29
|
+
const { topLeft, topRight, horizontal } = borders;
|
|
30
|
+
if (title) {
|
|
31
|
+
const titleStr = ` ${title} `;
|
|
32
|
+
const titleLen = titleStr.length;
|
|
33
|
+
const remaining = width - 2 - titleLen;
|
|
34
|
+
const rightDashes = Math.max(0, remaining);
|
|
35
|
+
return `${topLeft}${titleStr}${horizontal.repeat(rightDashes)}${topRight}`;
|
|
36
|
+
}
|
|
37
|
+
return `${topLeft}${horizontal.repeat(width - 2)}${topRight}`;
|
|
38
|
+
}
|
|
39
|
+
export function drawBottomBorder(width) {
|
|
40
|
+
const { bottomLeft, bottomRight, horizontal } = borders;
|
|
41
|
+
return `${bottomLeft}${horizontal.repeat(width - 2)}${bottomRight}`;
|
|
42
|
+
}
|
|
43
|
+
export function drawSeparator(width) {
|
|
44
|
+
const { leftT, rightT, horizontal } = borders;
|
|
45
|
+
return `${leftT}${horizontal.repeat(width - 2)}${rightT}`;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=borders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borders.js","sourceRoot":"","sources":["../../../src/tui/styles/borders.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,GAAG;IACb,OAAO,EAAE,GAAG;IACZ,QAAQ,EAAE,GAAG;IACb,UAAU,EAAE,GAAG;IACf,WAAW,EAAE,GAAG;IAChB,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,GAAG;IACZ,KAAK,EAAE,GAAG;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,GAAG;IACb,OAAO,EAAE,GAAG;IACZ,QAAQ,EAAE,GAAG;IACb,UAAU,EAAE,GAAG;IACf,WAAW,EAAE,GAAG;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,MAAM,EAAE,IAAI;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+
export { colors };
|
|
3
|
+
export declare const tuiColors: {
|
|
4
|
+
background: string;
|
|
5
|
+
surface: string;
|
|
6
|
+
primary: string;
|
|
7
|
+
textPrimary: string;
|
|
8
|
+
textSecondary: string;
|
|
9
|
+
textTertiary: string;
|
|
10
|
+
textQuaternary: string;
|
|
11
|
+
success: string;
|
|
12
|
+
warning: string;
|
|
13
|
+
error: string;
|
|
14
|
+
border: string;
|
|
15
|
+
mutation: string;
|
|
16
|
+
checkpoint: string;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../src/tui/styles/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,CAAC;AAElB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;CAcrB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { colors } from "../../hub/styles/colors.js";
|
|
2
|
+
export { colors };
|
|
3
|
+
export const tuiColors = {
|
|
4
|
+
background: "#050505",
|
|
5
|
+
surface: "#0a0a0a",
|
|
6
|
+
primary: "#f97316",
|
|
7
|
+
textPrimary: "#ffffff",
|
|
8
|
+
textSecondary: "#a1a1aa",
|
|
9
|
+
textTertiary: "#71717a",
|
|
10
|
+
textQuaternary: "#3f3f46",
|
|
11
|
+
success: "#22c55e",
|
|
12
|
+
warning: "#f59e0b",
|
|
13
|
+
error: "#ef4444",
|
|
14
|
+
border: "#27272a",
|
|
15
|
+
mutation: "#f59e0b",
|
|
16
|
+
checkpoint: "#f97316",
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=colors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../src/tui/styles/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,CAAC;AAElB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,UAAU,EAAE,SAAS;IACrB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,SAAS;IACtB,aAAa,EAAE,SAAS;IACxB,YAAY,EAAE,SAAS;IACvB,cAAc,EAAE,SAAS;IACzB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,SAAS;IACjB,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,SAAS;CACtB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { colors, tuiColors } from "./colors.js";
|
|
2
|
+
export { borders, doubleBorders, treeChars, drawTopBorder, drawBottomBorder, drawSeparator } from "./borders.js";
|
|
3
|
+
export { statusIndicators, getStatusIndicator, spinnerFrames, getSpinnerFrame, dotsSpinnerFrames, circleSpinnerFrames, pulseFrames, breathFrames, progressMarkerFrames, progressGlowFrames, getPulseFrame, getBreathFrame, getProgressMarker, getProgressGlow } from "./indicators.js";
|
|
4
|
+
export { providerTags, getProviderTag, logStatusTags } from "./providers.js";
|
|
5
|
+
export { layout, formatTimestamp, formatTimestampMs, padRight, truncate } from "./layout.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tui/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACjH,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,eAAe,EAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { colors, tuiColors } from "./colors.js";
|
|
2
|
+
export { borders, doubleBorders, treeChars, drawTopBorder, drawBottomBorder, drawSeparator } from "./borders.js";
|
|
3
|
+
export { statusIndicators, getStatusIndicator, spinnerFrames, getSpinnerFrame, dotsSpinnerFrames, circleSpinnerFrames, pulseFrames, breathFrames, progressMarkerFrames, progressGlowFrames, getPulseFrame, getBreathFrame, getProgressMarker, getProgressGlow } from "./indicators.js";
|
|
4
|
+
export { providerTags, getProviderTag, logStatusTags } from "./providers.js";
|
|
5
|
+
export { layout, formatTimestamp, formatTimestampMs, padRight, truncate } from "./layout.js";
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tui/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACjH,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,eAAe,EAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export declare const statusIndicators: {
|
|
2
|
+
online: {
|
|
3
|
+
icon: string;
|
|
4
|
+
color: string;
|
|
5
|
+
};
|
|
6
|
+
offline: {
|
|
7
|
+
icon: string;
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
10
|
+
pending: {
|
|
11
|
+
icon: string;
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
14
|
+
running: {
|
|
15
|
+
icon: string;
|
|
16
|
+
color: string;
|
|
17
|
+
};
|
|
18
|
+
loading: {
|
|
19
|
+
icon: string;
|
|
20
|
+
color: string;
|
|
21
|
+
};
|
|
22
|
+
queued: {
|
|
23
|
+
icon: string;
|
|
24
|
+
color: string;
|
|
25
|
+
};
|
|
26
|
+
done: {
|
|
27
|
+
icon: string;
|
|
28
|
+
color: string;
|
|
29
|
+
};
|
|
30
|
+
success: {
|
|
31
|
+
icon: string;
|
|
32
|
+
color: string;
|
|
33
|
+
};
|
|
34
|
+
error: {
|
|
35
|
+
icon: string;
|
|
36
|
+
color: string;
|
|
37
|
+
};
|
|
38
|
+
mutation: {
|
|
39
|
+
icon: string;
|
|
40
|
+
color: string;
|
|
41
|
+
};
|
|
42
|
+
checkpoint: {
|
|
43
|
+
icon: string;
|
|
44
|
+
color: string;
|
|
45
|
+
};
|
|
46
|
+
idle: {
|
|
47
|
+
icon: string;
|
|
48
|
+
color: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare function getStatusIndicator(status: string): {
|
|
52
|
+
icon: string;
|
|
53
|
+
color: string;
|
|
54
|
+
};
|
|
55
|
+
export declare const spinnerFrames: string[];
|
|
56
|
+
export declare const dotsSpinnerFrames: string[];
|
|
57
|
+
export declare const circleSpinnerFrames: string[];
|
|
58
|
+
export declare const pulseFrames: string[];
|
|
59
|
+
export declare const breathFrames: string[];
|
|
60
|
+
export declare const progressMarkerFrames: string[];
|
|
61
|
+
export declare const progressGlowFrames: string[];
|
|
62
|
+
export declare function getSpinnerFrame(tick: number, type?: "circle" | "dots" | "pulse"): string;
|
|
63
|
+
export declare function getPulseFrame(tick: number): string;
|
|
64
|
+
export declare function getBreathFrame(tick: number): string;
|
|
65
|
+
export declare function getProgressMarker(tick: number): string;
|
|
66
|
+
export declare function getProgressGlow(tick: number): string;
|
|
67
|
+
//# sourceMappingURL=indicators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indicators.d.ts","sourceRoot":"","sources":["../../../src/tui/styles/indicators.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa5B,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAGlF;AAED,eAAO,MAAM,aAAa,UAAuB,CAAC;AAElD,eAAO,MAAM,iBAAiB,UAAqD,CAAC;AAEpF,eAAO,MAAM,mBAAmB,UAAuB,CAAC;AAExD,eAAO,MAAM,WAAW,UAAuB,CAAC;AAEhD,eAAO,MAAM,YAAY,UAA2C,CAAC;AAErE,eAAO,MAAM,oBAAoB,UAAuB,CAAC;AAEzD,eAAO,MAAM,kBAAkB,UAAuB,CAAC;AAEvD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,QAAQ,GAAG,MAAM,GAAG,OAAkB,GAAG,MAAM,CAGlG;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export const statusIndicators = {
|
|
2
|
+
online: { icon: "●", color: "#22c55e" },
|
|
3
|
+
offline: { icon: "○", color: "#71717a" },
|
|
4
|
+
pending: { icon: "○", color: "#71717a" },
|
|
5
|
+
running: { icon: "▶", color: "#f97316" },
|
|
6
|
+
loading: { icon: "◐", color: "#f59e0b" },
|
|
7
|
+
queued: { icon: "◐", color: "#f59e0b" },
|
|
8
|
+
done: { icon: "●", color: "#22c55e" },
|
|
9
|
+
success: { icon: "●", color: "#22c55e" },
|
|
10
|
+
error: { icon: "✗", color: "#ef4444" },
|
|
11
|
+
mutation: { icon: "◆", color: "#f59e0b" },
|
|
12
|
+
checkpoint: { icon: "■", color: "#f97316" },
|
|
13
|
+
idle: { icon: "○", color: "#71717a" },
|
|
14
|
+
};
|
|
15
|
+
export function getStatusIndicator(status) {
|
|
16
|
+
const normalized = status.toLowerCase();
|
|
17
|
+
return statusIndicators[normalized] || statusIndicators.pending;
|
|
18
|
+
}
|
|
19
|
+
export const spinnerFrames = ["◐", "◓", "◑", "◒"];
|
|
20
|
+
export const dotsSpinnerFrames = ["⠋", "⠙", "⠹", "⠸", "⼸", "⠴", "⠦", "⠧", "⠇", "⠏"];
|
|
21
|
+
export const circleSpinnerFrames = ["◐", "◓", "◑", "◒"];
|
|
22
|
+
export const pulseFrames = ["●", "◐", "○", "◐"];
|
|
23
|
+
export const breathFrames = ["●", "●", "◐", "◐", "○", "○", "◐", "◐"];
|
|
24
|
+
export const progressMarkerFrames = ["▶", "▸", "▶", "▸"];
|
|
25
|
+
export const progressGlowFrames = ["█", "▓", "█", "▓"];
|
|
26
|
+
export function getSpinnerFrame(tick, type = "circle") {
|
|
27
|
+
const frames = type === "dots" ? dotsSpinnerFrames : type === "pulse" ? pulseFrames : circleSpinnerFrames;
|
|
28
|
+
return frames[tick % frames.length];
|
|
29
|
+
}
|
|
30
|
+
export function getPulseFrame(tick) {
|
|
31
|
+
return pulseFrames[tick % pulseFrames.length];
|
|
32
|
+
}
|
|
33
|
+
export function getBreathFrame(tick) {
|
|
34
|
+
return breathFrames[tick % breathFrames.length];
|
|
35
|
+
}
|
|
36
|
+
export function getProgressMarker(tick) {
|
|
37
|
+
return progressMarkerFrames[tick % progressMarkerFrames.length];
|
|
38
|
+
}
|
|
39
|
+
export function getProgressGlow(tick) {
|
|
40
|
+
return progressGlowFrames[tick % progressGlowFrames.length];
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=indicators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indicators.js","sourceRoot":"","sources":["../../../src/tui/styles/indicators.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;IACvC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;IACxC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;IACxC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;IACxC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;IACxC,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;IACvC,IAAI,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;IACrC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;IACxC,KAAK,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,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAEvD,MAAM,UAAU,eAAe,CAAC,IAAY,EAAE,OAAoC,QAAQ;IACxF,MAAM,MAAM,GAAG,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,mBAAmB,CAAC;IAC1G,OAAO,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,OAAO,WAAW,CAAC,IAAI,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,OAAO,YAAY,CAAC,IAAI,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,OAAO,oBAAoB,CAAC,IAAI,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,OAAO,kBAAkB,CAAC,IAAI,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAC9D,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const layout: {
|
|
2
|
+
defaultWidth: number;
|
|
3
|
+
panelWidth: {
|
|
4
|
+
chat: number;
|
|
5
|
+
dag: number;
|
|
6
|
+
status: number;
|
|
7
|
+
logs: number;
|
|
8
|
+
metrics: number;
|
|
9
|
+
memory: number;
|
|
10
|
+
};
|
|
11
|
+
padding: {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
progressWidth: number;
|
|
16
|
+
};
|
|
17
|
+
export declare function formatTimestamp(date: Date): string;
|
|
18
|
+
export declare function formatTimestampMs(date: Date): string;
|
|
19
|
+
export declare function padRight(text: string, width: number): string;
|
|
20
|
+
export declare function truncate(text: string, maxLength: number): string;
|
|
21
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/tui/styles/layout.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;CAelB,CAAC;AAEF,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAMlD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAQpD;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAG5D;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAGhE"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export const layout = {
|
|
2
|
+
defaultWidth: 80,
|
|
3
|
+
panelWidth: {
|
|
4
|
+
chat: 40,
|
|
5
|
+
dag: 38,
|
|
6
|
+
status: 28,
|
|
7
|
+
logs: 32,
|
|
8
|
+
metrics: 28,
|
|
9
|
+
memory: 30,
|
|
10
|
+
},
|
|
11
|
+
padding: {
|
|
12
|
+
x: 1,
|
|
13
|
+
y: 0,
|
|
14
|
+
},
|
|
15
|
+
progressWidth: 16,
|
|
16
|
+
};
|
|
17
|
+
export function formatTimestamp(date) {
|
|
18
|
+
return date.toLocaleTimeString("fr-FR", {
|
|
19
|
+
hour: "2-digit",
|
|
20
|
+
minute: "2-digit",
|
|
21
|
+
second: "2-digit",
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export function formatTimestampMs(date) {
|
|
25
|
+
const time = date.toLocaleTimeString("fr-FR", {
|
|
26
|
+
hour: "2-digit",
|
|
27
|
+
minute: "2-digit",
|
|
28
|
+
second: "2-digit",
|
|
29
|
+
});
|
|
30
|
+
const ms = String(date.getMilliseconds()).padStart(3, "0");
|
|
31
|
+
return `${time}.${ms}`;
|
|
32
|
+
}
|
|
33
|
+
export function padRight(text, width) {
|
|
34
|
+
const padding = Math.max(0, width - text.length);
|
|
35
|
+
return text + " ".repeat(padding);
|
|
36
|
+
}
|
|
37
|
+
export function truncate(text, maxLength) {
|
|
38
|
+
if (text.length <= maxLength)
|
|
39
|
+
return text;
|
|
40
|
+
return text.slice(0, maxLength - 3) + "...";
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/tui/styles/layout.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,YAAY,EAAE,EAAE;IAChB,UAAU,EAAE;QACV,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,EAAE;QACR,OAAO,EAAE,EAAE;QACX,MAAM,EAAE,EAAE;KACX;IACD,OAAO,EAAE;QACP,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;KACL;IACD,aAAa,EAAE,EAAE;CAClB,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,IAAU;IACxC,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE;QACtC,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;KAClB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAU;IAC1C,MAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE;QAC5C,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;KAClB,CAAC,CAAC;IACH,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAC3D,OAAO,GAAG,IAAI,IAAI,EAAE,EAAE,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,IAAY,EAAE,KAAa;IAClD,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IACjD,OAAO,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,IAAY,EAAE,SAAiB;IACtD,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS;QAAE,OAAO,IAAI,CAAC;IAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const providerTags: {
|
|
2
|
+
host: {
|
|
3
|
+
code: string;
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
claude: {
|
|
7
|
+
code: string;
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
opencode: {
|
|
11
|
+
code: string;
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
kilo: {
|
|
15
|
+
code: string;
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
anthropic: {
|
|
19
|
+
code: string;
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
gemini: {
|
|
23
|
+
code: string;
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
mistral: {
|
|
27
|
+
code: string;
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
groq: {
|
|
31
|
+
code: string;
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
|
+
openai: {
|
|
35
|
+
code: string;
|
|
36
|
+
name: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare function getProviderTag(provider: string): {
|
|
40
|
+
code: string;
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
43
|
+
export declare const logStatusTags: {
|
|
44
|
+
run: {
|
|
45
|
+
tag: string;
|
|
46
|
+
color: string;
|
|
47
|
+
};
|
|
48
|
+
success: {
|
|
49
|
+
tag: string;
|
|
50
|
+
color: string;
|
|
51
|
+
};
|
|
52
|
+
warn: {
|
|
53
|
+
tag: string;
|
|
54
|
+
color: string;
|
|
55
|
+
};
|
|
56
|
+
error: {
|
|
57
|
+
tag: string;
|
|
58
|
+
color: string;
|
|
59
|
+
};
|
|
60
|
+
info: {
|
|
61
|
+
tag: string;
|
|
62
|
+
color: string;
|
|
63
|
+
};
|
|
64
|
+
mutate: {
|
|
65
|
+
tag: string;
|
|
66
|
+
color: string;
|
|
67
|
+
};
|
|
68
|
+
done: {
|
|
69
|
+
tag: string;
|
|
70
|
+
color: string;
|
|
71
|
+
};
|
|
72
|
+
start: {
|
|
73
|
+
tag: string;
|
|
74
|
+
color: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../src/tui/styles/providers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAC;AAEF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAQ/E;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASzB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export const providerTags = {
|
|
2
|
+
host: { code: "[H]", name: "Host-Native" },
|
|
3
|
+
claude: { code: "[C]", name: "Claude Code" },
|
|
4
|
+
opencode: { code: "[O]", name: "OpenCode" },
|
|
5
|
+
kilo: { code: "[K]", name: "Kilo" },
|
|
6
|
+
anthropic: { code: "[A]", name: "Anthropic API" },
|
|
7
|
+
gemini: { code: "[G]", name: "Gemini" },
|
|
8
|
+
mistral: { code: "[M]", name: "Mistral" },
|
|
9
|
+
groq: { code: "[Q]", name: "Groq" },
|
|
10
|
+
openai: { code: "[O]", name: "OpenAI" },
|
|
11
|
+
};
|
|
12
|
+
export function getProviderTag(provider) {
|
|
13
|
+
const normalized = provider.toLowerCase().replace(/[-_\s]/g, "");
|
|
14
|
+
for (const [key, value] of Object.entries(providerTags)) {
|
|
15
|
+
if (normalized.includes(key)) {
|
|
16
|
+
return value;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return { code: "[?]", name: provider };
|
|
20
|
+
}
|
|
21
|
+
export const logStatusTags = {
|
|
22
|
+
run: { tag: "[RUN]", color: "#f97316" },
|
|
23
|
+
success: { tag: "[SUCCESS]", color: "#22c55e" },
|
|
24
|
+
warn: { tag: "[WARN]", color: "#f59e0b" },
|
|
25
|
+
error: { tag: "[ERROR]", color: "#ef4444" },
|
|
26
|
+
info: { tag: "[INFO]", color: "#a1a1aa" },
|
|
27
|
+
mutate: { tag: "[MUTATE]", color: "#f59e0b" },
|
|
28
|
+
done: { tag: "[DONE]", color: "#22c55e" },
|
|
29
|
+
start: { tag: "[START]", color: "#f97316" },
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/tui/styles/providers.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE;IAC1C,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE;IAC5C,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EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IAC3C,IAAI,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE;IACzC,MAAM,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE;IAC7C,IAAI,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE;IACzC,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;CAC5C,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const spinnerSequences: {
|
|
2
|
+
dots: string[];
|
|
3
|
+
line: string[];
|
|
4
|
+
circle: string[];
|
|
5
|
+
pulse: string[];
|
|
6
|
+
bounce: string[];
|
|
7
|
+
triangle: string[];
|
|
8
|
+
square: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const glowChars: string[];
|
|
11
|
+
export declare const progressChars: {
|
|
12
|
+
empty: string;
|
|
13
|
+
quarter: string;
|
|
14
|
+
half: string;
|
|
15
|
+
full: string;
|
|
16
|
+
head: string;
|
|
17
|
+
marker: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const scanlineChars: string[];
|
|
20
|
+
export declare function getSpinnerFrame(tick: number, type?: keyof typeof spinnerSequences): string;
|
|
21
|
+
export declare function getGlowChar(intensity: number): string;
|
|
22
|
+
export declare function easeIn(t: number): number;
|
|
23
|
+
export declare function easeOut(t: number): number;
|
|
24
|
+
export declare function easeInOut(t: number): number;
|
|
25
|
+
export declare function linear(t: number): number;
|
|
26
|
+
export declare function pingPong(t: number, min?: number, max?: number): number;
|
|
27
|
+
export declare function breathe(t: number, min?: number, max?: number): number;
|
|
28
|
+
export declare function clamp(value: number, min: number, max: number): number;
|
|
29
|
+
export declare function lerp(a: number, b: number, t: number): number;
|
|
30
|
+
export declare const bracketProgress: {
|
|
31
|
+
empty: (width?: number) => string;
|
|
32
|
+
progress: (progress: number, width?: number) => string;
|
|
33
|
+
animated: (progress: number, tick: number, width?: number) => string;
|
|
34
|
+
};
|
|
35
|
+
export declare function createTypewriterEffect(text: string, progress: number): string;
|
|
36
|
+
export declare const statusTransitionAnims: {
|
|
37
|
+
idle_to_running: string[];
|
|
38
|
+
running_to_done: string[];
|
|
39
|
+
running_to_error: string[];
|
|
40
|
+
pending_to_running: string[];
|
|
41
|
+
};
|
|
42
|
+
export declare function getStatusTransitionFrame(from: string, to: string, progress: number): string;
|
|
43
|
+
export declare function generateGridOverlay(width: number, height: number, cellSize?: number): string[];
|
|
44
|
+
//# sourceMappingURL=animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../src/tui/utils/animation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;CAQ5B,CAAC;AAEF,eAAO,MAAM,SAAS,UAAuB,CAAC;AAE9C,eAAO,MAAM,aAAa;;;;;;;CAOzB,CAAC;AAEF,eAAO,MAAM,aAAa,UAAuB,CAAC;AAElD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,OAAO,gBAAyB,GAAG,MAAM,CAGlG;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAGrD;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAExC;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAExC;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAE,MAAU,EAAE,GAAG,GAAE,MAAU,GAAG,MAAM,CAG5E;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAE,MAAY,EAAE,GAAG,GAAE,MAAU,GAAG,MAAM,CAE7E;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAErE;AAED,wBAAgB,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,eAAO,MAAM,eAAe;oBACX,MAAM,KAAQ,MAAM;yBACd,MAAM,UAAS,MAAM,KAAQ,MAAM;yBAKnC,MAAM,QAAQ,MAAM,UAAS,MAAM,KAAQ,MAAM;CAMvE,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG7E;AAED,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,GACf,MAAM,CAMR;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAW,GAAG,MAAM,EAAE,CAkBlG"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export const spinnerSequences = {
|
|
2
|
+
dots: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"],
|
|
3
|
+
line: ["─", "┐", "│", "┌"],
|
|
4
|
+
circle: ["◐", "◓", "◑", "◒"],
|
|
5
|
+
pulse: ["●", "◐", "○", "◐"],
|
|
6
|
+
bounce: ["⠁", "⠃", "⠇", "⡇", "⣇", "⣧", "⣷", "⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣭", "⣩", "⣈", "⡈", "⠈"],
|
|
7
|
+
triangle: ["◢", "◣", "◤", "◥"],
|
|
8
|
+
square: ["◰", "◳", "◲", "◱"],
|
|
9
|
+
};
|
|
10
|
+
export const glowChars = ["░", "▒", "▓", "█"];
|
|
11
|
+
export const progressChars = {
|
|
12
|
+
empty: "░",
|
|
13
|
+
quarter: "▒",
|
|
14
|
+
half: "▓",
|
|
15
|
+
full: "█",
|
|
16
|
+
head: "▶",
|
|
17
|
+
marker: "↑",
|
|
18
|
+
};
|
|
19
|
+
export const scanlineChars = ["─", "━", "═", "━"];
|
|
20
|
+
export function getSpinnerFrame(tick, type = "dots") {
|
|
21
|
+
const frames = spinnerSequences[type];
|
|
22
|
+
return frames[tick % frames.length];
|
|
23
|
+
}
|
|
24
|
+
export function getGlowChar(intensity) {
|
|
25
|
+
const index = Math.min(3, Math.max(0, Math.floor(intensity * 4)));
|
|
26
|
+
return glowChars[index];
|
|
27
|
+
}
|
|
28
|
+
export function easeIn(t) {
|
|
29
|
+
return t * t;
|
|
30
|
+
}
|
|
31
|
+
export function easeOut(t) {
|
|
32
|
+
return 1 - (1 - t) * (1 - t);
|
|
33
|
+
}
|
|
34
|
+
export function easeInOut(t) {
|
|
35
|
+
return t < 0.5 ? 2 * t * t : 1 - Math.pow(-2 * t + 2, 2) / 2;
|
|
36
|
+
}
|
|
37
|
+
export function linear(t) {
|
|
38
|
+
return t;
|
|
39
|
+
}
|
|
40
|
+
export function pingPong(t, min = 0, max = 1) {
|
|
41
|
+
const cycle = t % 2;
|
|
42
|
+
return min + (cycle < 1 ? cycle : 2 - cycle) * (max - min);
|
|
43
|
+
}
|
|
44
|
+
export function breathe(t, min = 0.3, max = 1) {
|
|
45
|
+
return min + (Math.sin(t * Math.PI * 2) + 1) / 2 * (max - min);
|
|
46
|
+
}
|
|
47
|
+
export function clamp(value, min, max) {
|
|
48
|
+
return Math.min(max, Math.max(min, value));
|
|
49
|
+
}
|
|
50
|
+
export function lerp(a, b, t) {
|
|
51
|
+
return a + (b - a) * clamp(t, 0, 1);
|
|
52
|
+
}
|
|
53
|
+
export const bracketProgress = {
|
|
54
|
+
empty: (width = 10) => `[${".".repeat(width)}]`,
|
|
55
|
+
progress: (progress, width = 10) => {
|
|
56
|
+
const filled = Math.round(progress * width);
|
|
57
|
+
const empty = width - filled;
|
|
58
|
+
return `[${"=".repeat(filled)}${empty > 0 ? ".".repeat(empty) : ""}]`;
|
|
59
|
+
},
|
|
60
|
+
animated: (progress, tick, width = 10) => {
|
|
61
|
+
const filled = Math.round(progress * width);
|
|
62
|
+
const empty = width - filled;
|
|
63
|
+
const head = filled < width ? [">", "=", "-"][tick % 3] : "";
|
|
64
|
+
return `[${"=".repeat(Math.max(0, filled - 1))}${head}${empty > 0 ? ".".repeat(empty) : ""}]`;
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
export function createTypewriterEffect(text, progress) {
|
|
68
|
+
const chars = Math.floor(progress * text.length);
|
|
69
|
+
return text.slice(0, chars);
|
|
70
|
+
}
|
|
71
|
+
export const statusTransitionAnims = {
|
|
72
|
+
idle_to_running: ["○", "◐", "◑", "●", "▶"],
|
|
73
|
+
running_to_done: ["▶", "●", "✓"],
|
|
74
|
+
running_to_error: ["▶", "◐", "✗"],
|
|
75
|
+
pending_to_running: ["○", "◐", "▶"],
|
|
76
|
+
};
|
|
77
|
+
export function getStatusTransitionFrame(from, to, progress) {
|
|
78
|
+
const key = `${from}_to_${to}`;
|
|
79
|
+
const frames = statusTransitionAnims[key];
|
|
80
|
+
if (!frames)
|
|
81
|
+
return "●";
|
|
82
|
+
const index = Math.min(frames.length - 1, Math.floor(progress * frames.length));
|
|
83
|
+
return frames[index];
|
|
84
|
+
}
|
|
85
|
+
export function generateGridOverlay(width, height, cellSize = 10) {
|
|
86
|
+
const lines = [];
|
|
87
|
+
for (let y = 0; y < height; y++) {
|
|
88
|
+
let line = "";
|
|
89
|
+
for (let x = 0; x < width; x++) {
|
|
90
|
+
if (y % cellSize === 0 && x % cellSize === 0) {
|
|
91
|
+
line += "┼";
|
|
92
|
+
}
|
|
93
|
+
else if (y % cellSize === 0) {
|
|
94
|
+
line += "─";
|
|
95
|
+
}
|
|
96
|
+
else if (x % cellSize === 0) {
|
|
97
|
+
line += "│";
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
line += " ";
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
lines.push(line);
|
|
104
|
+
}
|
|
105
|
+
return lines;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=animation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.js","sourceRoot":"","sources":["../../../src/tui/utils/animation.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACxD,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC1B,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC5B,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC3B,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACvG,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC9B,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,SAA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