@ranker/raxflow 0.2.2 → 0.2.4
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/benchmark.d.ts +10 -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 +3 -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 +8 -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 +4 -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 +7 -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 +4 -0
- package/dist/dashboard.d.ts.map +1 -0
- package/{src/dashboard.ts → dist/dashboard.js} +8 -10
- package/dist/dashboard.js.map +1 -0
- package/dist/doctor.d.ts +6 -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 +7 -0
- package/dist/evolve.d.ts.map +1 -0
- package/{src/evolve.ts → dist/evolve.js} +7 -33
- package/dist/evolve.js.map +1 -0
- package/dist/host-init-templates.d.ts +16 -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 +2 -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 +2 -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 +2 -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/commands/agents.d.ts +3 -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 +4 -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 +3 -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 +3 -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 +3 -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 +3 -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 +3 -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 +3 -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 +3 -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 +4 -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 +13 -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 +4 -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 +4 -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 +23 -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 +63 -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 +34 -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/types.d.ts +27 -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 +11 -0
- package/dist/index.d.ts.map +1 -0
- package/{src/index.ts → dist/index.js} +1 -0
- package/dist/index.js.map +1 -0
- package/dist/init-host.d.ts +10 -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 +8 -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 +16 -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/{src/setup/components/AsciiBanner.tsx → dist/setup/components/AsciiBanner.js} +24 -94
- 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 +81 -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 +98 -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/{src/setup/index.ts → dist/setup/index.js} +14 -19
- 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 +12 -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 +136 -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 +17 -0
- package/dist/tui/components/ChatPanel.d.ts.map +1 -0
- package/dist/tui/components/ChatPanel.js +51 -0
- package/dist/tui/components/ChatPanel.js.map +1 -0
- package/dist/tui/components/DAGPanel.d.ts +37 -0
- package/dist/tui/components/DAGPanel.d.ts.map +1 -0
- package/dist/tui/components/DAGPanel.js +52 -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 +10 -0
- package/dist/tui/components/MemoryPanel.d.ts +22 -0
- package/dist/tui/components/MetricsPanel.d.ts +19 -0
- package/dist/tui/components/StatusPanel.d.ts +24 -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/{src/tui/components/animations/index.ts → dist/tui/components/animations/index.d.ts} +2 -10
- 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/{src/tui/index.ts → dist/tui/index.js} +2 -3
- 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 +22 -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/{src/ws-relay.ts → dist/ws-relay.js} +39 -47
- package/dist/ws-relay.js.map +1 -0
- package/package.json +5 -1
- package/dashboard/index.html +0 -420
- package/src/benchmark.ts +0 -156
- package/src/bin.ts +0 -156
- package/src/bootstrap.ts +0 -36
- package/src/bridge-adapter-templates.ts +0 -181
- package/src/bridge-test.ts +0 -107
- package/src/doctor.ts +0 -92
- package/src/host-init-templates.ts +0 -134
- package/src/hub/__tests__/commands.test.ts +0 -84
- package/src/hub/__tests__/history.test.ts +0 -137
- package/src/hub/__tests__/parser.test.ts +0 -105
- package/src/hub/commands/agents.ts +0 -53
- package/src/hub/commands/index.ts +0 -140
- package/src/hub/commands/logs.ts +0 -70
- package/src/hub/commands/memory.ts +0 -47
- package/src/hub/commands/metrics.ts +0 -49
- package/src/hub/commands/providers.ts +0 -39
- package/src/hub/commands/run.ts +0 -37
- package/src/hub/commands/status.ts +0 -69
- package/src/hub/commands/workflows.ts +0 -64
- package/src/hub/config-loader.ts +0 -37
- package/src/hub/event-listener.ts +0 -17
- package/src/hub/history.ts +0 -66
- package/src/hub/index.ts +0 -132
- package/src/hub/parser.ts +0 -107
- package/src/hub/styles/borders.ts +0 -74
- package/src/hub/styles/colors.ts +0 -129
- package/src/hub/styles/typography.ts +0 -68
- package/src/hub/types.ts +0 -31
- package/src/init-host.ts +0 -285
- package/src/install.ts +0 -118
- package/src/run.ts +0 -317
- package/src/setup/components/ApiKeyInput.tsx +0 -158
- package/src/setup/components/CliDetector.tsx +0 -230
- package/src/setup/components/ModeSelector.tsx +0 -137
- package/src/setup/components/ProviderSelector.tsx +0 -175
- package/src/setup/components/SetupWizard.tsx +0 -368
- package/src/setup/components/StepIndicator.tsx +0 -74
- package/src/setup/components/SuccessScreen.tsx +0 -229
- package/src/setup/utils/cli-detection.ts +0 -99
- package/src/setup/utils/config-writer.ts +0 -249
- package/src/styles.ts +0 -12
- package/src/tui/App.tsx +0 -183
- package/src/tui/components/AgentStateIcon.tsx +0 -84
- package/src/tui/components/AnimatedBranch.tsx +0 -134
- package/src/tui/components/ChatPanel.tsx +0 -128
- package/src/tui/components/DAGPanel.tsx +0 -212
- package/src/tui/components/ExecutionTimeline.tsx +0 -225
- package/src/tui/components/Header.tsx +0 -109
- package/src/tui/components/HelpOverlay.tsx +0 -140
- package/src/tui/components/InputBar.tsx +0 -69
- package/src/tui/components/LogsPanel.tsx +0 -132
- package/src/tui/components/MemoryPanel.tsx +0 -166
- package/src/tui/components/MetricsPanel.tsx +0 -152
- package/src/tui/components/StatusPanel.tsx +0 -140
- package/src/tui/components/TaskTree.tsx +0 -159
- package/src/tui/components/animations/ProgressBar.tsx +0 -160
- package/src/tui/components/animations/Pulse.tsx +0 -73
- package/src/tui/components/animations/Spinner.tsx +0 -54
- package/src/tui/components/animations/StatusAnimator.tsx +0 -153
- package/src/tui/components/animations/TypingEffect.tsx +0 -119
- package/src/tui/hooks/useAnimation.ts +0 -290
- package/src/tui/hooks/useAppState.ts +0 -403
- package/src/tui/services/orchestrator.ts +0 -195
- package/src/tui/styles/borders.ts +0 -51
- package/src/tui/styles/colors.ts +0 -19
- package/src/tui/styles/index.ts +0 -20
- package/src/tui/styles/indicators.ts +0 -54
- package/src/tui/styles/layout.ts +0 -44
- package/src/tui/styles/providers.ts +0 -32
- package/src/tui/utils/animation.ts +0 -124
- package/src/vendor-manifests.ts +0 -113
- package/tsconfig.json +0 -28
|
@@ -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,SAAS,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAE9C,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,KAAK,EAAE,GAAG;IACV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;gBACN,IAAI,IAAI,GAAG,CAAC;YACd,CAAC;QACH,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HostTarget } from "./host-init-templates.js";
|
|
2
|
+
export interface HostManifestModel {
|
|
3
|
+
version: number;
|
|
4
|
+
target: HostTarget;
|
|
5
|
+
title: string;
|
|
6
|
+
autoInjectMode: "native" | "scripted" | "manual";
|
|
7
|
+
bridgeCommand: string;
|
|
8
|
+
quickCommands: string[];
|
|
9
|
+
sessionEntryExamples: string[];
|
|
10
|
+
task: string | null;
|
|
11
|
+
files: {
|
|
12
|
+
bootstrapPrompt: string;
|
|
13
|
+
instructions: string;
|
|
14
|
+
bridgeAdapter: string;
|
|
15
|
+
bridgeRuntimeConfig: string;
|
|
16
|
+
bridgeSmokeTest: string;
|
|
17
|
+
vendorManifest: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export declare function generateVendorManifest(target: HostTarget, baseDir: string, manifest: HostManifestModel): Record<string, unknown>;
|
|
21
|
+
export declare function vendorManifestFilename(target: HostTarget): string;
|
|
22
|
+
//# sourceMappingURL=vendor-manifests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor-manifests.d.ts","sourceRoot":"","sources":["../src/vendor-manifests.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;IACjD,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE;QACL,eAAe,EAAE,MAAM,CAAC;QACxB,YAAY,EAAE,MAAM,CAAC;QACrB,aAAa,EAAE,MAAM,CAAC;QACtB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,eAAe,EAAE,MAAM,CAAC;QACxB,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;CACH;AA8ED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAMhI;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAMjE"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
function toRelative(baseDir, file) {
|
|
3
|
+
const rel = path.relative(baseDir, file);
|
|
4
|
+
return rel.length > 0 ? rel : path.basename(file);
|
|
5
|
+
}
|
|
6
|
+
function buildClaudeManifest(baseDir, manifest) {
|
|
7
|
+
return {
|
|
8
|
+
schema: "rax.vendor.claude-code.v1",
|
|
9
|
+
session: {
|
|
10
|
+
initMessageFile: toRelative(baseDir, manifest.files.bootstrapPrompt),
|
|
11
|
+
mode: manifest.autoInjectMode,
|
|
12
|
+
bridgeCommand: manifest.bridgeCommand
|
|
13
|
+
},
|
|
14
|
+
orchestrator: {
|
|
15
|
+
tool: "rax-flow",
|
|
16
|
+
quickCommands: manifest.quickCommands
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function buildCodexManifest(baseDir, manifest) {
|
|
21
|
+
return {
|
|
22
|
+
schema: "rax.vendor.codex.v1",
|
|
23
|
+
chat: {
|
|
24
|
+
bootstrapFile: toRelative(baseDir, manifest.files.bootstrapPrompt),
|
|
25
|
+
strategy: manifest.autoInjectMode
|
|
26
|
+
},
|
|
27
|
+
runtime: {
|
|
28
|
+
bridgeCommand: manifest.bridgeCommand,
|
|
29
|
+
taskContext: manifest.task
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function buildOpenCodeManifest(baseDir, manifest) {
|
|
34
|
+
return {
|
|
35
|
+
schema: "rax.vendor.opencode.v1",
|
|
36
|
+
integration: {
|
|
37
|
+
startupPromptFile: toRelative(baseDir, manifest.files.bootstrapPrompt),
|
|
38
|
+
launchMode: manifest.autoInjectMode
|
|
39
|
+
},
|
|
40
|
+
orchestration: {
|
|
41
|
+
quickCommands: manifest.quickCommands,
|
|
42
|
+
bridgeCommand: manifest.bridgeCommand
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function buildKiloManifest(baseDir, manifest) {
|
|
47
|
+
return {
|
|
48
|
+
schema: "rax.vendor.kilo.v1",
|
|
49
|
+
initializer: {
|
|
50
|
+
promptFile: toRelative(baseDir, manifest.files.bootstrapPrompt),
|
|
51
|
+
injectMode: manifest.autoInjectMode
|
|
52
|
+
},
|
|
53
|
+
runtime: {
|
|
54
|
+
bridgeCommand: manifest.bridgeCommand,
|
|
55
|
+
commandHints: manifest.sessionEntryExamples
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function buildGenericManifest(baseDir, manifest) {
|
|
60
|
+
return {
|
|
61
|
+
schema: "rax.vendor.generic.v1",
|
|
62
|
+
bootstrap: {
|
|
63
|
+
file: toRelative(baseDir, manifest.files.bootstrapPrompt)
|
|
64
|
+
},
|
|
65
|
+
bridge: {
|
|
66
|
+
command: manifest.bridgeCommand,
|
|
67
|
+
mode: manifest.autoInjectMode
|
|
68
|
+
},
|
|
69
|
+
commands: manifest.quickCommands
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
export function generateVendorManifest(target, baseDir, manifest) {
|
|
73
|
+
if (target === "claude-code")
|
|
74
|
+
return buildClaudeManifest(baseDir, manifest);
|
|
75
|
+
if (target === "codex")
|
|
76
|
+
return buildCodexManifest(baseDir, manifest);
|
|
77
|
+
if (target === "opencode")
|
|
78
|
+
return buildOpenCodeManifest(baseDir, manifest);
|
|
79
|
+
if (target === "kilo")
|
|
80
|
+
return buildKiloManifest(baseDir, manifest);
|
|
81
|
+
return buildGenericManifest(baseDir, manifest);
|
|
82
|
+
}
|
|
83
|
+
export function vendorManifestFilename(target) {
|
|
84
|
+
if (target === "claude-code")
|
|
85
|
+
return "vendor-claude-code.json";
|
|
86
|
+
if (target === "codex")
|
|
87
|
+
return "vendor-codex.json";
|
|
88
|
+
if (target === "opencode")
|
|
89
|
+
return "vendor-opencode.json";
|
|
90
|
+
if (target === "kilo")
|
|
91
|
+
return "vendor-kilo.json";
|
|
92
|
+
return "vendor-generic.json";
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=vendor-manifests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor-manifests.js","sourceRoot":"","sources":["../src/vendor-manifests.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAsB7B,SAAS,UAAU,CAAC,OAAe,EAAE,IAAY;IAC/C,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACzC,OAAO,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACpD,CAAC;AAED,SAAS,mBAAmB,CAAC,OAAe,EAAE,QAA2B;IACvE,OAAO;QACL,MAAM,EAAE,2BAA2B;QACnC,OAAO,EAAE;YACP,eAAe,EAAE,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC;YACpE,IAAI,EAAE,QAAQ,CAAC,cAAc;YAC7B,aAAa,EAAE,QAAQ,CAAC,aAAa;SACtC;QACD,YAAY,EAAE;YACZ,IAAI,E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AU,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC;SAC1D;QACD,MAAM,EAAE;YACN,OAAO,EAAE,QAAQ,CAAC,aAAa;YAC/B,IAAI,EAAE,QAAQ,CAAC,cAAc;SAC9B;QACD,QAAQ,EAAE,QAAQ,CAAC,aAAa;KACjC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,MAAkB,EAAE,OAAe,EAAE,QAA2B;IACrG,IAAI,MAAM,KAAK,aAAa;QAAE,OAAO,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC5E,IAAI,MAAM,KAAK,OAAO;QAAE,OAAO,kBAAkB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACrE,IAAI,MAAM,KAAK,UAAU;QAAE,OAAO,qBAAqB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC3E,IAAI,MAAM,KAAK,MAAM;QAAE,OAAO,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACnE,OAAO,oBAAoB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,MAAkB;IACvD,IAAI,MAAM,KAAK,aAAa;QAAE,OAAO,yBAAyB,CAAC;IAC/D,IAAI,MAAM,KAAK,OAAO;QAAE,OAAO,mBAAmB,CAAC;IACnD,IAAI,MAAM,KAAK,UAAU;QAAE,OAAO,sBAAsB,CAAC;IACzD,IAAI,MAAM,KAAK,MAAM;QAAE,OAAO,kBAAkB,CAAC;IACjD,OAAO,qBAAqB,CAAC;AAC/B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RuntimeEventBus } from "rax-flow-core";
|
|
2
|
+
export declare class WebSocketRelay {
|
|
3
|
+
private port;
|
|
4
|
+
private wss;
|
|
5
|
+
private clients;
|
|
6
|
+
private bus;
|
|
7
|
+
constructor(port?: number);
|
|
8
|
+
start(eventBus: RuntimeEventBus): void;
|
|
9
|
+
private broadcast;
|
|
10
|
+
stop(): void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ws-relay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ws-relay.d.ts","sourceRoot":"","sources":["../src/ws-relay.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIhD,qBAAa,cAAc;IAKX,OAAO,CAAC,IAAI;IAJxB,OAAO,CAAC,GAAG,CAAgC;IAC3C,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,GAAG,CAAgC;gBAEvB,IAAI,GAAE,MAAa;IAEhC,KAAK,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;IA6H7C,OAAO,CAAC,SAAS;IAUV,IAAI,IAAI,IAAI;CAQtB"}
|
|
@@ -1,66 +1,59 @@
|
|
|
1
1
|
import { WebSocketServer, WebSocket } from "ws";
|
|
2
|
-
import { RuntimeEventBus } from "rax-flow-core";
|
|
3
2
|
import { readdir, readFile, mkdir, writeFile } from "node:fs/promises";
|
|
4
3
|
import path from "node:path";
|
|
5
|
-
|
|
6
4
|
export class WebSocketRelay {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
constructor(
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
port;
|
|
6
|
+
wss = null;
|
|
7
|
+
clients = new Set();
|
|
8
|
+
bus = null;
|
|
9
|
+
constructor(port = 3002) {
|
|
10
|
+
this.port = port;
|
|
11
|
+
}
|
|
12
|
+
start(eventBus) {
|
|
14
13
|
this.bus = eventBus;
|
|
15
14
|
try {
|
|
16
15
|
this.wss = new WebSocketServer({ port: this.port });
|
|
17
16
|
console.log(`\n[UI] 📡 WebSocket relay started on ws://localhost:${this.port}`);
|
|
18
|
-
|
|
19
17
|
this.wss.on("connection", (ws) => {
|
|
20
18
|
this.clients.add(ws);
|
|
21
19
|
ws.send(JSON.stringify({ type: "HELLO", timestamp: Date.now() }));
|
|
22
|
-
|
|
23
20
|
ws.on("close", () => {
|
|
24
21
|
this.clients.delete(ws);
|
|
25
22
|
});
|
|
26
|
-
|
|
27
23
|
ws.on("message", async (data) => {
|
|
28
24
|
try {
|
|
29
25
|
const message = JSON.parse(data.toString());
|
|
30
26
|
const historyDir = path.join(process.cwd(), ".rax-flow", "history");
|
|
31
|
-
|
|
32
27
|
if (message.type === "GET_HISTORY") {
|
|
33
28
|
try {
|
|
34
29
|
const files = await readdir(historyDir);
|
|
35
|
-
const runs = await Promise.all(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
})
|
|
47
|
-
);
|
|
30
|
+
const runs = await Promise.all(files.filter(f => f.endsWith(".json")).map(async (f) => {
|
|
31
|
+
const content = await readFile(path.join(historyDir, f), "utf8");
|
|
32
|
+
const parsed = JSON.parse(content);
|
|
33
|
+
return {
|
|
34
|
+
taskId: parsed.taskId,
|
|
35
|
+
timestamp: parsed.timestamp,
|
|
36
|
+
prompt: parsed.prompt,
|
|
37
|
+
success: parsed.result.success,
|
|
38
|
+
costUsd: parsed.metrics.totalCostUsd
|
|
39
|
+
};
|
|
40
|
+
}));
|
|
48
41
|
ws.send(JSON.stringify({ type: "HISTORY_LIST", runs: runs.sort((a, b) => b.timestamp - a.timestamp) }));
|
|
49
|
-
}
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
50
44
|
ws.send(JSON.stringify({ type: "HISTORY_LIST", runs: [] }));
|
|
51
45
|
}
|
|
52
46
|
}
|
|
53
|
-
|
|
54
47
|
else if (message.type === "LOAD_RUN") {
|
|
55
48
|
try {
|
|
56
49
|
const file = path.join(historyDir, `${message.taskId}.json`);
|
|
57
50
|
const content = await readFile(file, "utf8");
|
|
58
51
|
ws.send(JSON.stringify({ type: "RUN_DATA", data: JSON.parse(content) }));
|
|
59
|
-
}
|
|
52
|
+
}
|
|
53
|
+
catch (err) {
|
|
60
54
|
ws.send(JSON.stringify({ type: "ERROR", message: "Run not found" }));
|
|
61
55
|
}
|
|
62
56
|
}
|
|
63
|
-
|
|
64
57
|
else if (message.type === "LIST_WORKFLOWS") {
|
|
65
58
|
const workflowsDir = path.join(process.cwd(), ".rax-flow", "workflows");
|
|
66
59
|
try {
|
|
@@ -70,11 +63,11 @@ export class WebSocketRelay {
|
|
|
70
63
|
filename: f
|
|
71
64
|
}));
|
|
72
65
|
ws.send(JSON.stringify({ type: "WORKFLOW_LIST", workflows: list }));
|
|
73
|
-
}
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
74
68
|
ws.send(JSON.stringify({ type: "WORKFLOW_LIST", workflows: [] }));
|
|
75
69
|
}
|
|
76
70
|
}
|
|
77
|
-
|
|
78
71
|
else if (message.type === "RESOLVE_APPROVAL") {
|
|
79
72
|
this.bus?.emit({
|
|
80
73
|
type: "INTERNAL_RESOLVE_APPROVAL",
|
|
@@ -82,9 +75,8 @@ export class WebSocketRelay {
|
|
|
82
75
|
nodeId: message.nodeId,
|
|
83
76
|
approved: message.approved,
|
|
84
77
|
feedback: message.feedback
|
|
85
|
-
}
|
|
78
|
+
});
|
|
86
79
|
}
|
|
87
|
-
|
|
88
80
|
else if (message.type === "SAVE_WORKFLOW") {
|
|
89
81
|
try {
|
|
90
82
|
const workflowsDir = path.join(process.cwd(), ".rax-flow", "workflows");
|
|
@@ -98,45 +90,45 @@ export class WebSocketRelay {
|
|
|
98
90
|
await writeFile(file, JSON.stringify(data, null, 2));
|
|
99
91
|
ws.send(JSON.stringify({ type: "INFO", message: `Workflow ${message.id} saved.` }));
|
|
100
92
|
this.broadcast({ type: "REFRESH_WORKFLOWS" });
|
|
101
|
-
}
|
|
93
|
+
}
|
|
94
|
+
catch (err) {
|
|
102
95
|
ws.send(JSON.stringify({ type: "ERROR", message: "Failed to save workflow" }));
|
|
103
96
|
}
|
|
104
97
|
}
|
|
105
|
-
|
|
106
98
|
else if (message.type === "DELETE_WORKFLOW") {
|
|
107
99
|
try {
|
|
108
100
|
const url = path.join(process.cwd(), ".rax-flow", "workflows", `${message.id}.json`);
|
|
109
101
|
const { unlink } = await import("node:fs/promises");
|
|
110
102
|
await unlink(url);
|
|
111
103
|
this.broadcast({ type: "REFRESH_WORKFLOWS" });
|
|
112
|
-
}
|
|
104
|
+
}
|
|
105
|
+
catch (err) {
|
|
113
106
|
ws.send(JSON.stringify({ type: "ERROR", message: "Failed to delete workflow" }));
|
|
114
107
|
}
|
|
115
108
|
}
|
|
116
|
-
}
|
|
109
|
+
}
|
|
110
|
+
catch (e) {
|
|
117
111
|
console.error("[WS] Message parse error:", e);
|
|
118
112
|
}
|
|
119
113
|
});
|
|
120
|
-
|
|
121
114
|
ws.on("error", () => {
|
|
122
115
|
this.clients.delete(ws);
|
|
123
116
|
});
|
|
124
117
|
});
|
|
125
|
-
|
|
126
118
|
this.wss.on("error", (err) => {
|
|
127
119
|
console.error(`[UI] WebSocket server error: ${err.message}`);
|
|
128
120
|
});
|
|
129
|
-
|
|
130
121
|
eventBus.onEvent((event) => {
|
|
131
122
|
this.broadcast(event);
|
|
132
123
|
});
|
|
133
|
-
}
|
|
124
|
+
}
|
|
125
|
+
catch (err) {
|
|
134
126
|
console.error(`[UI] Failed to start WebSocket server: ${err}`);
|
|
135
127
|
}
|
|
136
128
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
129
|
+
broadcast(event) {
|
|
130
|
+
if (!this.wss)
|
|
131
|
+
return;
|
|
140
132
|
const payload = JSON.stringify(event);
|
|
141
133
|
for (const client of this.clients) {
|
|
142
134
|
if (client.readyState === WebSocket.OPEN) {
|
|
@@ -144,8 +136,7 @@ export class WebSocketRelay {
|
|
|
144
136
|
}
|
|
145
137
|
}
|
|
146
138
|
}
|
|
147
|
-
|
|
148
|
-
public stop(): void {
|
|
139
|
+
stop() {
|
|
149
140
|
if (this.wss) {
|
|
150
141
|
this.wss.close();
|
|
151
142
|
this.wss = null;
|
|
@@ -154,3 +145,4 @@ export class WebSocketRelay {
|
|
|
154
145
|
}
|
|
155
146
|
}
|
|
156
147
|
}
|
|
148
|
+
//# sourceMappingURL=ws-relay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ws-relay.js","sourceRoot":"","sources":["../src/ws-relay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,OAAO,cAAc;IAKH;IAJZ,GAAG,GAA2B,IAAI,CAAC;IACnC,OAAO,GAAG,IAAI,GAAG,EAAa,CAAC;IAC/B,GAAG,GAA2B,IAAI,CAAC;IAE3C,YAAoB,OAAe,IAAI;QAAnB,SAAI,GAAJ,IAAI,CAAe;IAAI,CAAC;IAErC,KAAK,CAAC,QAAyB;QAClC,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC;QACpB,IAAI,CAAC;YACD,IAAI,CAAC,GAAG,GAAG,IAAI,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YACpD,OAAO,CAAC,GAAG,CAAC,uDAAuD,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YAEhF,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE;gBAC7B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBACrB,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;gBAElE,EAAE,C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QACP,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YACX,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;YACjB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;YAChB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;QACpD,CAAC;IACL,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ranker/raxflow",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"bin": {
|
|
8
8
|
"raxflow": "dist/bin.js"
|
|
9
9
|
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
10
14
|
"scripts": {
|
|
11
15
|
"build": "tsc -p tsconfig.json",
|
|
12
16
|
"dev": "tsx src/bin.ts",
|