@ranker/raxflow 0.2.0 → 0.2.2

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.
Files changed (352) hide show
  1. package/dist/tui/components/LogsPanel.d.ts.map +1 -1
  2. package/dist/tui/components/LogsPanel.js +4 -3
  3. package/dist/tui/components/LogsPanel.js.map +1 -1
  4. package/dist/tui/components/MemoryPanel.d.ts.map +1 -1
  5. package/dist/tui/components/MemoryPanel.js +2 -2
  6. package/dist/tui/components/MemoryPanel.js.map +1 -1
  7. package/dist/tui/components/MetricsPanel.d.ts.map +1 -1
  8. package/dist/tui/components/MetricsPanel.js +2 -2
  9. package/dist/tui/components/MetricsPanel.js.map +1 -1
  10. package/dist/tui/components/StatusPanel.d.ts.map +1 -1
  11. package/dist/tui/components/StatusPanel.js +4 -3
  12. package/dist/tui/components/StatusPanel.js.map +1 -1
  13. package/package.json +4 -4
  14. package/src/setup/components/ProviderSelector.tsx +7 -6
  15. package/src/tui/App.tsx +15 -9
  16. package/src/tui/components/ChatPanel.tsx +7 -4
  17. package/src/tui/components/DAGPanel.tsx +11 -7
  18. package/src/tui/components/LogsPanel.tsx +6 -3
  19. package/src/tui/components/MemoryPanel.tsx +10 -7
  20. package/src/tui/components/MetricsPanel.tsx +8 -5
  21. package/src/tui/components/StatusPanel.tsx +12 -9
  22. package/dist/benchmark.d.ts.map +0 -1
  23. package/dist/benchmark.js +0 -123
  24. package/dist/benchmark.js.map +0 -1
  25. package/dist/bin.d.ts.map +0 -1
  26. package/dist/bin.js +0 -141
  27. package/dist/bin.js.map +0 -1
  28. package/dist/bootstrap.d.ts.map +0 -1
  29. package/dist/bootstrap.js +0 -22
  30. package/dist/bootstrap.js.map +0 -1
  31. package/dist/bridge-adapter-templates.d.ts.map +0 -1
  32. package/dist/bridge-adapter-templates.js +0 -185
  33. package/dist/bridge-adapter-templates.js.map +0 -1
  34. package/dist/bridge-test.d.ts.map +0 -1
  35. package/dist/bridge-test.js +0 -89
  36. package/dist/bridge-test.js.map +0 -1
  37. package/dist/dashboard.d.ts.map +0 -1
  38. package/dist/dashboard.js +0 -49
  39. package/dist/dashboard.js.map +0 -1
  40. package/dist/doctor.d.ts.map +0 -1
  41. package/dist/doctor.js +0 -70
  42. package/dist/doctor.js.map +0 -1
  43. package/dist/evolve.d.ts.map +0 -1
  44. package/dist/evolve.js +0 -48
  45. package/dist/evolve.js.map +0 -1
  46. package/dist/host-init-templates.d.ts.map +0 -1
  47. package/dist/host-init-templates.js +0 -119
  48. package/dist/host-init-templates.js.map +0 -1
  49. package/dist/hub/__tests__/commands.test.d.ts.map +0 -1
  50. package/dist/hub/__tests__/commands.test.js +0 -72
  51. package/dist/hub/__tests__/commands.test.js.map +0 -1
  52. package/dist/hub/__tests__/history.test.d.ts.map +0 -1
  53. package/dist/hub/__tests__/history.test.js +0 -119
  54. package/dist/hub/__tests__/history.test.js.map +0 -1
  55. package/dist/hub/__tests__/parser.test.d.ts.map +0 -1
  56. package/dist/hub/__tests__/parser.test.js +0 -92
  57. package/dist/hub/__tests__/parser.test.js.map +0 -1
  58. package/dist/hub/chat/ChatApp.d.ts +0 -2
  59. package/dist/hub/chat/ChatApp.d.ts.map +0 -1
  60. package/dist/hub/chat/ChatApp.js +0 -146
  61. package/dist/hub/chat/ChatApp.js.map +0 -1
  62. package/dist/hub/chat/components/ChatInput.d.ts +0 -9
  63. package/dist/hub/chat/components/ChatInput.d.ts.map +0 -1
  64. package/dist/hub/chat/components/ChatInput.js +0 -19
  65. package/dist/hub/chat/components/ChatInput.js.map +0 -1
  66. package/dist/hub/chat/components/MessageList.d.ts +0 -7
  67. package/dist/hub/chat/components/MessageList.d.ts.map +0 -1
  68. package/dist/hub/chat/components/MessageList.js +0 -6
  69. package/dist/hub/chat/components/MessageList.js.map +0 -1
  70. package/dist/hub/chat/context.d.ts.map +0 -1
  71. package/dist/hub/chat/context.js +0 -42
  72. package/dist/hub/chat/context.js.map +0 -1
  73. package/dist/hub/chat/hooks/useChatHistory.d.ts +0 -7
  74. package/dist/hub/chat/hooks/useChatHistory.d.ts.map +0 -1
  75. package/dist/hub/chat/hooks/useChatHistory.js +0 -31
  76. package/dist/hub/chat/hooks/useChatHistory.js.map +0 -1
  77. package/dist/hub/chat/index.d.ts.map +0 -1
  78. package/dist/hub/chat/index.js +0 -7
  79. package/dist/hub/chat/index.js.map +0 -1
  80. package/dist/hub/chat/intent-parser.d.ts.map +0 -1
  81. package/dist/hub/chat/intent-parser.js +0 -48
  82. package/dist/hub/chat/intent-parser.js.map +0 -1
  83. package/dist/hub/chat/types.d.ts.map +0 -1
  84. package/dist/hub/chat/types.js +0 -2
  85. package/dist/hub/chat/types.js.map +0 -1
  86. package/dist/hub/commands/agents.d.ts.map +0 -1
  87. package/dist/hub/commands/agents.js +0 -36
  88. package/dist/hub/commands/agents.js.map +0 -1
  89. package/dist/hub/commands/index.d.ts.map +0 -1
  90. package/dist/hub/commands/index.js +0 -123
  91. package/dist/hub/commands/index.js.map +0 -1
  92. package/dist/hub/commands/logs.d.ts.map +0 -1
  93. package/dist/hub/commands/logs.js +0 -53
  94. package/dist/hub/commands/logs.js.map +0 -1
  95. package/dist/hub/commands/memory.d.ts.map +0 -1
  96. package/dist/hub/commands/memory.js +0 -40
  97. package/dist/hub/commands/memory.js.map +0 -1
  98. package/dist/hub/commands/metrics.d.ts.map +0 -1
  99. package/dist/hub/commands/metrics.js +0 -35
  100. package/dist/hub/commands/metrics.js.map +0 -1
  101. package/dist/hub/commands/providers.d.ts.map +0 -1
  102. package/dist/hub/commands/providers.js +0 -26
  103. package/dist/hub/commands/providers.js.map +0 -1
  104. package/dist/hub/commands/run.d.ts.map +0 -1
  105. package/dist/hub/commands/run.js +0 -31
  106. package/dist/hub/commands/run.js.map +0 -1
  107. package/dist/hub/commands/status.d.ts.map +0 -1
  108. package/dist/hub/commands/status.js +0 -61
  109. package/dist/hub/commands/status.js.map +0 -1
  110. package/dist/hub/commands/workflows.d.ts.map +0 -1
  111. package/dist/hub/commands/workflows.js +0 -45
  112. package/dist/hub/commands/workflows.js.map +0 -1
  113. package/dist/hub/config-loader.d.ts.map +0 -1
  114. package/dist/hub/config-loader.js +0 -27
  115. package/dist/hub/config-loader.js.map +0 -1
  116. package/dist/hub/event-listener.d.ts +0 -6
  117. package/dist/hub/event-listener.d.ts.map +0 -1
  118. package/dist/hub/event-listener.js +0 -12
  119. package/dist/hub/event-listener.js.map +0 -1
  120. package/dist/hub/history.d.ts.map +0 -1
  121. package/dist/hub/history.js +0 -59
  122. package/dist/hub/history.js.map +0 -1
  123. package/dist/hub/index.d.ts.map +0 -1
  124. package/dist/hub/index.js +0 -114
  125. package/dist/hub/index.js.map +0 -1
  126. package/dist/hub/parser.d.ts.map +0 -1
  127. package/dist/hub/parser.js +0 -98
  128. package/dist/hub/parser.js.map +0 -1
  129. package/dist/hub/styles/borders.d.ts.map +0 -1
  130. package/dist/hub/styles/borders.js +0 -64
  131. package/dist/hub/styles/borders.js.map +0 -1
  132. package/dist/hub/styles/colors.d.ts.map +0 -1
  133. package/dist/hub/styles/colors.js +0 -115
  134. package/dist/hub/styles/colors.js.map +0 -1
  135. package/dist/hub/styles/typography.d.ts.map +0 -1
  136. package/dist/hub/styles/typography.js +0 -60
  137. package/dist/hub/styles/typography.js.map +0 -1
  138. package/dist/hub/tui/App.d.ts +0 -2
  139. package/dist/hub/tui/App.d.ts.map +0 -1
  140. package/dist/hub/tui/App.js +0 -53
  141. package/dist/hub/tui/App.js.map +0 -1
  142. package/dist/hub/tui/components/AgentQueue.d.ts +0 -6
  143. package/dist/hub/tui/components/AgentQueue.d.ts.map +0 -1
  144. package/dist/hub/tui/components/AgentQueue.js +0 -20
  145. package/dist/hub/tui/components/AgentQueue.js.map +0 -1
  146. package/dist/hub/tui/components/DAGPanel.d.ts +0 -16
  147. package/dist/hub/tui/components/DAGPanel.d.ts.map +0 -1
  148. package/dist/hub/tui/components/DAGPanel.js +0 -51
  149. package/dist/hub/tui/components/DAGPanel.js.map +0 -1
  150. package/dist/hub/tui/components/Header.d.ts +0 -7
  151. package/dist/hub/tui/components/Header.d.ts.map +0 -1
  152. package/dist/hub/tui/components/Header.js +0 -17
  153. package/dist/hub/tui/components/Header.js.map +0 -1
  154. package/dist/hub/tui/components/LogsPanel.d.ts +0 -6
  155. package/dist/hub/tui/components/LogsPanel.d.ts.map +0 -1
  156. package/dist/hub/tui/components/LogsPanel.js +0 -26
  157. package/dist/hub/tui/components/LogsPanel.js.map +0 -1
  158. package/dist/hub/tui/components/StatusBar.d.ts +0 -8
  159. package/dist/hub/tui/components/StatusBar.d.ts.map +0 -1
  160. package/dist/hub/tui/components/StatusBar.js +0 -7
  161. package/dist/hub/tui/components/StatusBar.js.map +0 -1
  162. package/dist/hub/tui/hooks/useEvents.d.ts +0 -2
  163. package/dist/hub/tui/hooks/useEvents.d.ts.map +0 -1
  164. package/dist/hub/tui/hooks/useEvents.js +0 -13
  165. package/dist/hub/tui/hooks/useEvents.js.map +0 -1
  166. package/dist/hub/tui/index.d.ts.map +0 -1
  167. package/dist/hub/tui/index.js +0 -7
  168. package/dist/hub/tui/index.js.map +0 -1
  169. package/dist/hub/tui/types.d.ts.map +0 -1
  170. package/dist/hub/tui/types.js +0 -2
  171. package/dist/hub/tui/types.js.map +0 -1
  172. package/dist/hub/types.d.ts.map +0 -1
  173. package/dist/hub/types.js +0 -2
  174. package/dist/hub/types.js.map +0 -1
  175. package/dist/index.d.ts.map +0 -1
  176. package/dist/index.js +0 -11
  177. package/dist/index.js.map +0 -1
  178. package/dist/init-host.d.ts.map +0 -1
  179. package/dist/init-host.js +0 -232
  180. package/dist/init-host.js.map +0 -1
  181. package/dist/install.d.ts.map +0 -1
  182. package/dist/install.js +0 -99
  183. package/dist/install.js.map +0 -1
  184. package/dist/run.d.ts.map +0 -1
  185. package/dist/run.js +0 -238
  186. package/dist/run.js.map +0 -1
  187. package/dist/setup/components/ApiKeyInput.d.ts +0 -25
  188. package/dist/setup/components/ApiKeyInput.d.ts.map +0 -1
  189. package/dist/setup/components/ApiKeyInput.js +0 -54
  190. package/dist/setup/components/ApiKeyInput.js.map +0 -1
  191. package/dist/setup/components/AsciiBanner.d.ts +0 -22
  192. package/dist/setup/components/AsciiBanner.d.ts.map +0 -1
  193. package/dist/setup/components/AsciiBanner.js +0 -55
  194. package/dist/setup/components/AsciiBanner.js.map +0 -1
  195. package/dist/setup/components/CliDetector.d.ts +0 -17
  196. package/dist/setup/components/CliDetector.d.ts.map +0 -1
  197. package/dist/setup/components/CliDetector.js +0 -79
  198. package/dist/setup/components/CliDetector.js.map +0 -1
  199. package/dist/setup/components/ModeSelector.d.ts +0 -8
  200. package/dist/setup/components/ModeSelector.d.ts.map +0 -1
  201. package/dist/setup/components/ModeSelector.js +0 -76
  202. package/dist/setup/components/ModeSelector.js.map +0 -1
  203. package/dist/setup/components/ProviderSelector.d.ts +0 -18
  204. package/dist/setup/components/ProviderSelector.d.ts.map +0 -1
  205. package/dist/setup/components/ProviderSelector.js +0 -97
  206. package/dist/setup/components/ProviderSelector.js.map +0 -1
  207. package/dist/setup/components/SetupWizard.d.ts +0 -2
  208. package/dist/setup/components/SetupWizard.d.ts.map +0 -1
  209. package/dist/setup/components/SetupWizard.js +0 -212
  210. package/dist/setup/components/SetupWizard.js.map +0 -1
  211. package/dist/setup/components/StepIndicator.d.ts +0 -13
  212. package/dist/setup/components/StepIndicator.d.ts.map +0 -1
  213. package/dist/setup/components/StepIndicator.js +0 -18
  214. package/dist/setup/components/StepIndicator.js.map +0 -1
  215. package/dist/setup/components/SuccessScreen.d.ts +0 -18
  216. package/dist/setup/components/SuccessScreen.d.ts.map +0 -1
  217. package/dist/setup/components/SuccessScreen.js +0 -38
  218. package/dist/setup/components/SuccessScreen.js.map +0 -1
  219. package/dist/setup/index.d.ts +0 -12
  220. package/dist/setup/index.d.ts.map +0 -1
  221. package/dist/setup/index.js +0 -29
  222. package/dist/setup/index.js.map +0 -1
  223. package/dist/setup/utils/cli-detection.d.ts +0 -12
  224. package/dist/setup/utils/cli-detection.d.ts.map +0 -1
  225. package/dist/setup/utils/cli-detection.js +0 -83
  226. package/dist/setup/utils/cli-detection.js.map +0 -1
  227. package/dist/setup/utils/config-writer.d.ts +0 -43
  228. package/dist/setup/utils/config-writer.d.ts.map +0 -1
  229. package/dist/setup/utils/config-writer.js +0 -180
  230. package/dist/setup/utils/config-writer.js.map +0 -1
  231. package/dist/styles.d.ts.map +0 -1
  232. package/dist/styles.js +0 -12
  233. package/dist/styles.js.map +0 -1
  234. package/dist/tui/App.d.ts +0 -3
  235. package/dist/tui/App.d.ts.map +0 -1
  236. package/dist/tui/App.js +0 -131
  237. package/dist/tui/App.js.map +0 -1
  238. package/dist/tui/components/AgentStateIcon.d.ts +0 -18
  239. package/dist/tui/components/AgentStateIcon.d.ts.map +0 -1
  240. package/dist/tui/components/AgentStateIcon.js +0 -57
  241. package/dist/tui/components/AgentStateIcon.js.map +0 -1
  242. package/dist/tui/components/AnimatedBranch.d.ts +0 -39
  243. package/dist/tui/components/AnimatedBranch.d.ts.map +0 -1
  244. package/dist/tui/components/AnimatedBranch.js +0 -64
  245. package/dist/tui/components/AnimatedBranch.js.map +0 -1
  246. package/dist/tui/components/ChatPanel.d.ts +0 -16
  247. package/dist/tui/components/ChatPanel.d.ts.map +0 -1
  248. package/dist/tui/components/ChatPanel.js +0 -50
  249. package/dist/tui/components/ChatPanel.js.map +0 -1
  250. package/dist/tui/components/DAGPanel.d.ts +0 -36
  251. package/dist/tui/components/DAGPanel.d.ts.map +0 -1
  252. package/dist/tui/components/DAGPanel.js +0 -51
  253. package/dist/tui/components/DAGPanel.js.map +0 -1
  254. package/dist/tui/components/ExecutionTimeline.d.ts +0 -34
  255. package/dist/tui/components/ExecutionTimeline.d.ts.map +0 -1
  256. package/dist/tui/components/ExecutionTimeline.js +0 -67
  257. package/dist/tui/components/ExecutionTimeline.js.map +0 -1
  258. package/dist/tui/components/Header.d.ts +0 -12
  259. package/dist/tui/components/Header.d.ts.map +0 -1
  260. package/dist/tui/components/Header.js +0 -32
  261. package/dist/tui/components/Header.js.map +0 -1
  262. package/dist/tui/components/HelpOverlay.d.ts +0 -7
  263. package/dist/tui/components/HelpOverlay.d.ts.map +0 -1
  264. package/dist/tui/components/HelpOverlay.js +0 -60
  265. package/dist/tui/components/HelpOverlay.js.map +0 -1
  266. package/dist/tui/components/InputBar.d.ts +0 -10
  267. package/dist/tui/components/InputBar.d.ts.map +0 -1
  268. package/dist/tui/components/InputBar.js +0 -21
  269. package/dist/tui/components/InputBar.js.map +0 -1
  270. package/dist/tui/components/LogsPanel.d.ts +0 -9
  271. package/dist/tui/components/MemoryPanel.d.ts +0 -21
  272. package/dist/tui/components/MetricsPanel.d.ts +0 -18
  273. package/dist/tui/components/StatusPanel.d.ts +0 -23
  274. package/dist/tui/components/TaskTree.d.ts +0 -28
  275. package/dist/tui/components/TaskTree.d.ts.map +0 -1
  276. package/dist/tui/components/TaskTree.js +0 -29
  277. package/dist/tui/components/TaskTree.js.map +0 -1
  278. package/dist/tui/components/animations/ProgressBar.d.ts +0 -39
  279. package/dist/tui/components/animations/ProgressBar.d.ts.map +0 -1
  280. package/dist/tui/components/animations/ProgressBar.js +0 -39
  281. package/dist/tui/components/animations/ProgressBar.js.map +0 -1
  282. package/dist/tui/components/animations/Pulse.d.ts +0 -17
  283. package/dist/tui/components/animations/Pulse.d.ts.map +0 -1
  284. package/dist/tui/components/animations/Pulse.js +0 -47
  285. package/dist/tui/components/animations/Pulse.js.map +0 -1
  286. package/dist/tui/components/animations/Spinner.d.ts +0 -13
  287. package/dist/tui/components/animations/Spinner.d.ts.map +0 -1
  288. package/dist/tui/components/animations/Spinner.js +0 -36
  289. package/dist/tui/components/animations/Spinner.js.map +0 -1
  290. package/dist/tui/components/animations/StatusAnimator.d.ts +0 -27
  291. package/dist/tui/components/animations/StatusAnimator.d.ts.map +0 -1
  292. package/dist/tui/components/animations/StatusAnimator.js +0 -85
  293. package/dist/tui/components/animations/StatusAnimator.js.map +0 -1
  294. package/dist/tui/components/animations/TypingEffect.d.ts +0 -26
  295. package/dist/tui/components/animations/TypingEffect.d.ts.map +0 -1
  296. package/dist/tui/components/animations/TypingEffect.js +0 -59
  297. package/dist/tui/components/animations/TypingEffect.js.map +0 -1
  298. package/dist/tui/components/animations/index.d.ts +0 -8
  299. package/dist/tui/components/animations/index.d.ts.map +0 -1
  300. package/dist/tui/components/animations/index.js +0 -6
  301. package/dist/tui/components/animations/index.js.map +0 -1
  302. package/dist/tui/hooks/useAnimation.d.ts +0 -42
  303. package/dist/tui/hooks/useAnimation.d.ts.map +0 -1
  304. package/dist/tui/hooks/useAnimation.js +0 -212
  305. package/dist/tui/hooks/useAnimation.js.map +0 -1
  306. package/dist/tui/hooks/useAppState.d.ts +0 -65
  307. package/dist/tui/hooks/useAppState.d.ts.map +0 -1
  308. package/dist/tui/hooks/useAppState.js +0 -293
  309. package/dist/tui/hooks/useAppState.js.map +0 -1
  310. package/dist/tui/index.d.ts +0 -3
  311. package/dist/tui/index.d.ts.map +0 -1
  312. package/dist/tui/index.js +0 -8
  313. package/dist/tui/index.js.map +0 -1
  314. package/dist/tui/services/orchestrator.d.ts +0 -16
  315. package/dist/tui/services/orchestrator.d.ts.map +0 -1
  316. package/dist/tui/services/orchestrator.js +0 -152
  317. package/dist/tui/services/orchestrator.js.map +0 -1
  318. package/dist/tui/styles/borders.d.ts +0 -31
  319. package/dist/tui/styles/borders.d.ts.map +0 -1
  320. package/dist/tui/styles/borders.js +0 -47
  321. package/dist/tui/styles/borders.js.map +0 -1
  322. package/dist/tui/styles/colors.d.ts +0 -18
  323. package/dist/tui/styles/colors.d.ts.map +0 -1
  324. package/dist/tui/styles/colors.js +0 -18
  325. package/dist/tui/styles/colors.js.map +0 -1
  326. package/dist/tui/styles/index.d.ts +0 -6
  327. package/dist/tui/styles/index.d.ts.map +0 -1
  328. package/dist/tui/styles/index.js +0 -6
  329. package/dist/tui/styles/index.js.map +0 -1
  330. package/dist/tui/styles/indicators.d.ts +0 -67
  331. package/dist/tui/styles/indicators.d.ts.map +0 -1
  332. package/dist/tui/styles/indicators.js +0 -42
  333. package/dist/tui/styles/indicators.js.map +0 -1
  334. package/dist/tui/styles/layout.d.ts +0 -21
  335. package/dist/tui/styles/layout.d.ts.map +0 -1
  336. package/dist/tui/styles/layout.js +0 -42
  337. package/dist/tui/styles/layout.js.map +0 -1
  338. package/dist/tui/styles/providers.d.ts +0 -77
  339. package/dist/tui/styles/providers.d.ts.map +0 -1
  340. package/dist/tui/styles/providers.js +0 -31
  341. package/dist/tui/styles/providers.js.map +0 -1
  342. package/dist/tui/utils/animation.d.ts +0 -44
  343. package/dist/tui/utils/animation.d.ts.map +0 -1
  344. package/dist/tui/utils/animation.js +0 -107
  345. package/dist/tui/utils/animation.js.map +0 -1
  346. package/dist/vendor-manifests.d.ts.map +0 -1
  347. package/dist/vendor-manifests.js +0 -94
  348. package/dist/vendor-manifests.js.map +0 -1
  349. package/dist/ws-relay.d.ts +0 -12
  350. package/dist/ws-relay.d.ts.map +0 -1
  351. package/dist/ws-relay.js +0 -148
  352. package/dist/ws-relay.js.map +0 -1
@@ -1,94 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"vendor-manifests.js","sourceRoot":"","sources":["../src/vendor-manif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AE,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"}
@@ -1,12 +0,0 @@
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
@@ -1 +0,0 @@
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"}
package/dist/ws-relay.js DELETED
@@ -1,148 +0,0 @@
1
- import { WebSocketServer, WebSocket } from "ws";
2
- import { readdir, readFile, mkdir, writeFile } from "node:fs/promises";
3
- import path from "node:path";
4
- export class WebSocketRelay {
5
- port;
6
- wss = null;
7
- clients = new Set();
8
- bus = null;
9
- constructor(port = 3002) {
10
- this.port = port;
11
- }
12
- start(eventBus) {
13
- this.bus = eventBus;
14
- try {
15
- this.wss = new WebSocketServer({ port: this.port });
16
- console.log(`\n[UI] 📡 WebSocket relay started on ws://localhost:${this.port}`);
17
- this.wss.on("connection", (ws) => {
18
- this.clients.add(ws);
19
- ws.send(JSON.stringify({ type: "HELLO", timestamp: Date.now() }));
20
- ws.on("close", () => {
21
- this.clients.delete(ws);
22
- });
23
- ws.on("message", async (data) => {
24
- try {
25
- const message = JSON.parse(data.toString());
26
- const historyDir = path.join(process.cwd(), ".rax-flow", "history");
27
- if (message.type === "GET_HISTORY") {
28
- try {
29
- const files = await readdir(historyDir);
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
- }));
41
- ws.send(JSON.stringify({ type: "HISTORY_LIST", runs: runs.sort((a, b) => b.timestamp - a.timestamp) }));
42
- }
43
- catch {
44
- ws.send(JSON.stringify({ type: "HISTORY_LIST", runs: [] }));
45
- }
46
- }
47
- else if (message.type === "LOAD_RUN") {
48
- try {
49
- const file = path.join(historyDir, `${message.taskId}.json`);
50
- const content = await readFile(file, "utf8");
51
- ws.send(JSON.stringify({ type: "RUN_DATA", data: JSON.parse(content) }));
52
- }
53
- catch (err) {
54
- ws.send(JSON.stringify({ type: "ERROR", message: "Run not found" }));
55
- }
56
- }
57
- else if (message.type === "LIST_WORKFLOWS") {
58
- const workflowsDir = path.join(process.cwd(), ".rax-flow", "workflows");
59
- try {
60
- const files = await readdir(workflowsDir);
61
- const list = files.filter(f => f.endsWith(".json")).map(f => ({
62
- id: f.replace(".json", ""),
63
- filename: f
64
- }));
65
- ws.send(JSON.stringify({ type: "WORKFLOW_LIST", workflows: list }));
66
- }
67
- catch {
68
- ws.send(JSON.stringify({ type: "WORKFLOW_LIST", workflows: [] }));
69
- }
70
- }
71
- else if (message.type === "RESOLVE_APPROVAL") {
72
- this.bus?.emit({
73
- type: "INTERNAL_RESOLVE_APPROVAL",
74
- taskId: message.taskId,
75
- nodeId: message.nodeId,
76
- approved: message.approved,
77
- feedback: message.feedback
78
- });
79
- }
80
- else if (message.type === "SAVE_WORKFLOW") {
81
- try {
82
- const workflowsDir = path.join(process.cwd(), ".rax-flow", "workflows");
83
- await mkdir(workflowsDir, { recursive: true });
84
- const file = path.join(workflowsDir, `${message.id}.json`);
85
- const data = {
86
- id: message.id,
87
- nodes: message.nodes,
88
- edges: message.edges
89
- };
90
- await writeFile(file, JSON.stringify(data, null, 2));
91
- ws.send(JSON.stringify({ type: "INFO", message: `Workflow ${message.id} saved.` }));
92
- this.broadcast({ type: "REFRESH_WORKFLOWS" });
93
- }
94
- catch (err) {
95
- ws.send(JSON.stringify({ type: "ERROR", message: "Failed to save workflow" }));
96
- }
97
- }
98
- else if (message.type === "DELETE_WORKFLOW") {
99
- try {
100
- const url = path.join(process.cwd(), ".rax-flow", "workflows", `${message.id}.json`);
101
- const { unlink } = await import("node:fs/promises");
102
- await unlink(url);
103
- this.broadcast({ type: "REFRESH_WORKFLOWS" });
104
- }
105
- catch (err) {
106
- ws.send(JSON.stringify({ type: "ERROR", message: "Failed to delete workflow" }));
107
- }
108
- }
109
- }
110
- catch (e) {
111
- console.error("[WS] Message parse error:", e);
112
- }
113
- });
114
- ws.on("error", () => {
115
- this.clients.delete(ws);
116
- });
117
- });
118
- this.wss.on("error", (err) => {
119
- console.error(`[UI] WebSocket server error: ${err.message}`);
120
- });
121
- eventBus.onEvent((event) => {
122
- this.broadcast(event);
123
- });
124
- }
125
- catch (err) {
126
- console.error(`[UI] Failed to start WebSocket server: ${err}`);
127
- }
128
- }
129
- broadcast(event) {
130
- if (!this.wss)
131
- return;
132
- const payload = JSON.stringify(event);
133
- for (const client of this.clients) {
134
- if (client.readyState === WebSocket.OPEN) {
135
- client.send(payload);
136
- }
137
- }
138
- }
139
- stop() {
140
- if (this.wss) {
141
- this.wss.close();
142
- this.wss = null;
143
- this.clients.clear();
144
- console.log("[UI] 📡 WebSocket relay stopped.");
145
- }
146
- }
147
- }
148
- //# sourceMappingURL=ws-relay.js.map
@@ -1 +0,0 @@
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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