condukt 0.1.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.
Files changed (233) hide show
  1. package/dist/bridge/bridge.d.ts +34 -0
  2. package/dist/bridge/bridge.d.ts.map +1 -0
  3. package/dist/bridge/bridge.js +365 -0
  4. package/dist/bridge/bridge.js.map +1 -0
  5. package/dist/bridge/index.d.ts +3 -0
  6. package/dist/bridge/index.d.ts.map +1 -0
  7. package/dist/bridge/index.js +6 -0
  8. package/dist/bridge/index.js.map +1 -0
  9. package/dist/runtimes/copilot/copilot-adapter.d.ts +28 -0
  10. package/dist/runtimes/copilot/copilot-adapter.d.ts.map +1 -0
  11. package/dist/runtimes/copilot/copilot-adapter.js +50 -0
  12. package/dist/runtimes/copilot/copilot-adapter.js.map +1 -0
  13. package/dist/runtimes/copilot/copilot-backend.d.ts +49 -0
  14. package/dist/runtimes/copilot/copilot-backend.d.ts.map +1 -0
  15. package/dist/runtimes/copilot/copilot-backend.js +13 -0
  16. package/dist/runtimes/copilot/copilot-backend.js.map +1 -0
  17. package/dist/runtimes/copilot/index.d.ts +5 -0
  18. package/dist/runtimes/copilot/index.d.ts.map +1 -0
  19. package/dist/runtimes/copilot/index.js +11 -0
  20. package/dist/runtimes/copilot/index.js.map +1 -0
  21. package/dist/runtimes/copilot/process-killer.d.ts +13 -0
  22. package/dist/runtimes/copilot/process-killer.d.ts.map +1 -0
  23. package/dist/runtimes/copilot/process-killer.js +77 -0
  24. package/dist/runtimes/copilot/process-killer.js.map +1 -0
  25. package/dist/runtimes/copilot/subprocess-backend.d.ts +26 -0
  26. package/dist/runtimes/copilot/subprocess-backend.d.ts.map +1 -0
  27. package/dist/runtimes/copilot/subprocess-backend.js +308 -0
  28. package/dist/runtimes/copilot/subprocess-backend.js.map +1 -0
  29. package/dist/runtimes/mock/index.d.ts +3 -0
  30. package/dist/runtimes/mock/index.d.ts.map +1 -0
  31. package/dist/runtimes/mock/index.js +6 -0
  32. package/dist/runtimes/mock/index.js.map +1 -0
  33. package/dist/runtimes/mock/mock-runtime.d.ts +43 -0
  34. package/dist/runtimes/mock/mock-runtime.d.ts.map +1 -0
  35. package/dist/runtimes/mock/mock-runtime.js +153 -0
  36. package/dist/runtimes/mock/mock-runtime.js.map +1 -0
  37. package/dist/src/agent.d.ts +35 -0
  38. package/dist/src/agent.d.ts.map +1 -0
  39. package/dist/src/agent.js +257 -0
  40. package/dist/src/agent.js.map +1 -0
  41. package/dist/src/events.d.ts +153 -0
  42. package/dist/src/events.d.ts.map +1 -0
  43. package/dist/src/events.js +11 -0
  44. package/dist/src/events.js.map +1 -0
  45. package/dist/src/index.d.ts +8 -0
  46. package/dist/src/index.d.ts.map +1 -0
  47. package/dist/src/index.js +24 -0
  48. package/dist/src/index.js.map +1 -0
  49. package/dist/src/nodes.d.ts +63 -0
  50. package/dist/src/nodes.d.ts.map +1 -0
  51. package/dist/src/nodes.js +120 -0
  52. package/dist/src/nodes.js.map +1 -0
  53. package/dist/src/scheduler.d.ts +11 -0
  54. package/dist/src/scheduler.d.ts.map +1 -0
  55. package/dist/src/scheduler.js +478 -0
  56. package/dist/src/scheduler.js.map +1 -0
  57. package/dist/src/types.d.ts +201 -0
  58. package/dist/src/types.d.ts.map +1 -0
  59. package/dist/src/types.js +38 -0
  60. package/dist/src/types.js.map +1 -0
  61. package/dist/src/verify.d.ts +51 -0
  62. package/dist/src/verify.d.ts.map +1 -0
  63. package/dist/src/verify.js +126 -0
  64. package/dist/src/verify.js.map +1 -0
  65. package/dist/state/index.d.ts +5 -0
  66. package/dist/state/index.d.ts.map +1 -0
  67. package/dist/state/index.js +14 -0
  68. package/dist/state/index.js.map +1 -0
  69. package/dist/state/reducer.d.ts +11 -0
  70. package/dist/state/reducer.d.ts.map +1 -0
  71. package/dist/state/reducer.js +223 -0
  72. package/dist/state/reducer.js.map +1 -0
  73. package/dist/state/state-runtime.d.ts +30 -0
  74. package/dist/state/state-runtime.d.ts.map +1 -0
  75. package/dist/state/state-runtime.js +131 -0
  76. package/dist/state/state-runtime.js.map +1 -0
  77. package/dist/state/storage-memory.d.ts +24 -0
  78. package/dist/state/storage-memory.d.ts.map +1 -0
  79. package/dist/state/storage-memory.js +91 -0
  80. package/dist/state/storage-memory.js.map +1 -0
  81. package/dist/state/storage.d.ts +29 -0
  82. package/dist/state/storage.d.ts.map +1 -0
  83. package/dist/state/storage.js +175 -0
  84. package/dist/state/storage.js.map +1 -0
  85. package/dist/theme/index.d.ts +128 -0
  86. package/dist/theme/index.d.ts.map +1 -0
  87. package/dist/theme/index.js +59 -0
  88. package/dist/theme/index.js.map +1 -0
  89. package/dist/ui/ansi.d.ts +9 -0
  90. package/dist/ui/ansi.d.ts.map +1 -0
  91. package/dist/ui/ansi.js +78 -0
  92. package/dist/ui/ansi.js.map +1 -0
  93. package/dist/ui/components/FlowEdge.d.ts +5 -0
  94. package/dist/ui/components/FlowEdge.d.ts.map +1 -0
  95. package/dist/ui/components/FlowEdge.js +33 -0
  96. package/dist/ui/components/FlowEdge.js.map +1 -0
  97. package/dist/ui/components/FlowGraph.d.ts +10 -0
  98. package/dist/ui/components/FlowGraph.d.ts.map +1 -0
  99. package/dist/ui/components/FlowGraph.js +124 -0
  100. package/dist/ui/components/FlowGraph.js.map +1 -0
  101. package/dist/ui/components/FlowStatusBar.d.ts +7 -0
  102. package/dist/ui/components/FlowStatusBar.d.ts.map +1 -0
  103. package/dist/ui/components/FlowStatusBar.js +27 -0
  104. package/dist/ui/components/FlowStatusBar.js.map +1 -0
  105. package/dist/ui/components/MiniPipeline.d.ts +10 -0
  106. package/dist/ui/components/MiniPipeline.d.ts.map +1 -0
  107. package/dist/ui/components/MiniPipeline.js +155 -0
  108. package/dist/ui/components/MiniPipeline.js.map +1 -0
  109. package/dist/ui/components/NodeCard.d.ts +5 -0
  110. package/dist/ui/components/NodeCard.d.ts.map +1 -0
  111. package/dist/ui/components/NodeCard.js +39 -0
  112. package/dist/ui/components/NodeCard.js.map +1 -0
  113. package/dist/ui/components/NodeDetailPanel.d.ts +10 -0
  114. package/dist/ui/components/NodeDetailPanel.d.ts.map +1 -0
  115. package/dist/ui/components/NodeDetailPanel.js +38 -0
  116. package/dist/ui/components/NodeDetailPanel.js.map +1 -0
  117. package/dist/ui/components/node-panel/Controls.d.ts +16 -0
  118. package/dist/ui/components/node-panel/Controls.d.ts.map +1 -0
  119. package/dist/ui/components/node-panel/Controls.js +28 -0
  120. package/dist/ui/components/node-panel/Controls.js.map +1 -0
  121. package/dist/ui/components/node-panel/ErrorBar.d.ts +6 -0
  122. package/dist/ui/components/node-panel/ErrorBar.d.ts.map +1 -0
  123. package/dist/ui/components/node-panel/ErrorBar.js +14 -0
  124. package/dist/ui/components/node-panel/ErrorBar.js.map +1 -0
  125. package/dist/ui/components/node-panel/Gate.d.ts +13 -0
  126. package/dist/ui/components/node-panel/Gate.d.ts.map +1 -0
  127. package/dist/ui/components/node-panel/Gate.js +40 -0
  128. package/dist/ui/components/node-panel/Gate.js.map +1 -0
  129. package/dist/ui/components/node-panel/Header.d.ts +10 -0
  130. package/dist/ui/components/node-panel/Header.d.ts.map +1 -0
  131. package/dist/ui/components/node-panel/Header.js +19 -0
  132. package/dist/ui/components/node-panel/Header.js.map +1 -0
  133. package/dist/ui/components/node-panel/Info.d.ts +7 -0
  134. package/dist/ui/components/node-panel/Info.d.ts.map +1 -0
  135. package/dist/ui/components/node-panel/Info.js +23 -0
  136. package/dist/ui/components/node-panel/Info.js.map +1 -0
  137. package/dist/ui/components/node-panel/Output.d.ts +27 -0
  138. package/dist/ui/components/node-panel/Output.d.ts.map +1 -0
  139. package/dist/ui/components/node-panel/Output.js +66 -0
  140. package/dist/ui/components/node-panel/Output.js.map +1 -0
  141. package/dist/ui/components/node-panel/index.d.ts +47 -0
  142. package/dist/ui/components/node-panel/index.d.ts.map +1 -0
  143. package/dist/ui/components/node-panel/index.js +54 -0
  144. package/dist/ui/components/node-panel/index.js.map +1 -0
  145. package/dist/ui/components/node-panel/types.d.ts +23 -0
  146. package/dist/ui/components/node-panel/types.d.ts.map +1 -0
  147. package/dist/ui/components/node-panel/types.js +24 -0
  148. package/dist/ui/components/node-panel/types.js.map +1 -0
  149. package/dist/ui/core/components/Badge.d.ts +6 -0
  150. package/dist/ui/core/components/Badge.d.ts.map +1 -0
  151. package/dist/ui/core/components/Badge.js +11 -0
  152. package/dist/ui/core/components/Badge.js.map +1 -0
  153. package/dist/ui/core/components/Button.d.ts +9 -0
  154. package/dist/ui/core/components/Button.d.ts.map +1 -0
  155. package/dist/ui/core/components/Button.js +18 -0
  156. package/dist/ui/core/components/Button.js.map +1 -0
  157. package/dist/ui/core/components/ConfirmDialog.d.ts +11 -0
  158. package/dist/ui/core/components/ConfirmDialog.d.ts.map +1 -0
  159. package/dist/ui/core/components/ConfirmDialog.js +23 -0
  160. package/dist/ui/core/components/ConfirmDialog.js.map +1 -0
  161. package/dist/ui/core/components/ExecutionCard.d.ts +12 -0
  162. package/dist/ui/core/components/ExecutionCard.d.ts.map +1 -0
  163. package/dist/ui/core/components/ExecutionCard.js +15 -0
  164. package/dist/ui/core/components/ExecutionCard.js.map +1 -0
  165. package/dist/ui/core/components/NodeListItem.d.ts +10 -0
  166. package/dist/ui/core/components/NodeListItem.d.ts.map +1 -0
  167. package/dist/ui/core/components/NodeListItem.js +27 -0
  168. package/dist/ui/core/components/NodeListItem.js.map +1 -0
  169. package/dist/ui/core/components/PageHeader.d.ts +10 -0
  170. package/dist/ui/core/components/PageHeader.d.ts.map +1 -0
  171. package/dist/ui/core/components/PageHeader.js +9 -0
  172. package/dist/ui/core/components/PageHeader.js.map +1 -0
  173. package/dist/ui/core/components/SectionLabel.d.ts +6 -0
  174. package/dist/ui/core/components/SectionLabel.d.ts.map +1 -0
  175. package/dist/ui/core/components/SectionLabel.js +9 -0
  176. package/dist/ui/core/components/SectionLabel.js.map +1 -0
  177. package/dist/ui/core/components/Skeleton.d.ts +7 -0
  178. package/dist/ui/core/components/Skeleton.d.ts.map +1 -0
  179. package/dist/ui/core/components/Skeleton.js +26 -0
  180. package/dist/ui/core/components/Skeleton.js.map +1 -0
  181. package/dist/ui/core/components/Stat.d.ts +8 -0
  182. package/dist/ui/core/components/Stat.d.ts.map +1 -0
  183. package/dist/ui/core/components/Stat.js +9 -0
  184. package/dist/ui/core/components/Stat.js.map +1 -0
  185. package/dist/ui/core/components/Toast.d.ts +7 -0
  186. package/dist/ui/core/components/Toast.d.ts.map +1 -0
  187. package/dist/ui/core/components/Toast.js +28 -0
  188. package/dist/ui/core/components/Toast.js.map +1 -0
  189. package/dist/ui/core/components/__tests__/primitives.test.d.ts +2 -0
  190. package/dist/ui/core/components/__tests__/primitives.test.d.ts.map +1 -0
  191. package/dist/ui/core/components/__tests__/primitives.test.js +3 -0
  192. package/dist/ui/core/components/__tests__/primitives.test.js.map +1 -0
  193. package/dist/ui/core/components/index.d.ts +21 -0
  194. package/dist/ui/core/components/index.d.ts.map +1 -0
  195. package/dist/ui/core/components/index.js +24 -0
  196. package/dist/ui/core/components/index.js.map +1 -0
  197. package/dist/ui/core/index.d.ts +17 -0
  198. package/dist/ui/core/index.d.ts.map +1 -0
  199. package/dist/ui/core/index.js +56 -0
  200. package/dist/ui/core/index.js.map +1 -0
  201. package/dist/ui/core/utils.d.ts +6 -0
  202. package/dist/ui/core/utils.d.ts.map +1 -0
  203. package/dist/ui/core/utils.js +32 -0
  204. package/dist/ui/core/utils.js.map +1 -0
  205. package/dist/ui/graph/index.d.ts +4 -0
  206. package/dist/ui/graph/index.d.ts.map +1 -0
  207. package/dist/ui/graph/index.js +11 -0
  208. package/dist/ui/graph/index.js.map +1 -0
  209. package/dist/ui/hooks/useAutoSelectNode.d.ts +3 -0
  210. package/dist/ui/hooks/useAutoSelectNode.d.ts.map +1 -0
  211. package/dist/ui/hooks/useAutoSelectNode.js +36 -0
  212. package/dist/ui/hooks/useAutoSelectNode.js.map +1 -0
  213. package/dist/ui/hooks/useFlowExecution.d.ts +32 -0
  214. package/dist/ui/hooks/useFlowExecution.d.ts.map +1 -0
  215. package/dist/ui/hooks/useFlowExecution.js +113 -0
  216. package/dist/ui/hooks/useFlowExecution.js.map +1 -0
  217. package/dist/ui/hooks/useNodeNavigation.d.ts +3 -0
  218. package/dist/ui/hooks/useNodeNavigation.d.ts.map +1 -0
  219. package/dist/ui/hooks/useNodeNavigation.js +38 -0
  220. package/dist/ui/hooks/useNodeNavigation.js.map +1 -0
  221. package/dist/ui/hooks/useNodeOutput.d.ts +21 -0
  222. package/dist/ui/hooks/useNodeOutput.d.ts.map +1 -0
  223. package/dist/ui/hooks/useNodeOutput.js +75 -0
  224. package/dist/ui/hooks/useNodeOutput.js.map +1 -0
  225. package/dist/ui/index.d.ts +16 -0
  226. package/dist/ui/index.d.ts.map +1 -0
  227. package/dist/ui/index.js +37 -0
  228. package/dist/ui/index.js.map +1 -0
  229. package/dist/ui/utils.d.ts +3 -0
  230. package/dist/ui/utils.d.ts.map +1 -0
  231. package/dist/ui/utils.js +9 -0
  232. package/dist/ui/utils.js.map +1 -0
  233. package/package.json +87 -0
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ 'use client';
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.NodeListItem = NodeListItem;
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const utils_1 = require("../../utils");
7
+ const types_1 = require("../../components/node-panel/types");
8
+ const utils_2 = require("../utils");
9
+ function NodeListItem({ node, selected, onClick, actions, className }) {
10
+ const colors = (0, types_1.sc)(node.status);
11
+ const isActive = node.status === 'running' || node.status === 'gated' || node.status === 'retrying';
12
+ function handleKeyDown(e) {
13
+ if (e.key === 'Enter' || e.key === ' ') {
14
+ e.preventDefault();
15
+ onClick?.();
16
+ }
17
+ }
18
+ return ((0, jsx_runtime_1.jsx)("div", { role: "button", tabIndex: 0, "aria-label": `${node.displayName}: ${node.status}`, onClick: onClick, onKeyDown: handleKeyDown, className: (0, utils_1.cn)('group rounded-xl border border-[#252320] px-4 py-3 cursor-pointer transition-all duration-200 hover:bg-[#2b2a27] hover:border-[#3d3a36]', selected && 'border-[#D97757] bg-[#D9775715] shadow-[inset_3px_0_0_#D97757,0_0_16px_rgba(217,119,87,0.12)]', className), style: isActive && !selected
19
+ ? { borderColor: colors.dot, backgroundColor: colors.bg }
20
+ : undefined, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between gap-3", children: [(0, jsx_runtime_1.jsxs)("div", { className: "min-w-0 flex-1", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "shrink-0 rounded-full", style: {
21
+ width: 8,
22
+ height: 8,
23
+ backgroundColor: colors.dot,
24
+ boxShadow: isActive ? `0 0 8px ${colors.dot}, 0 0 16px ${colors.dot}44` : undefined,
25
+ } }), (0, jsx_runtime_1.jsx)("span", { className: "font-medium text-sm truncate", children: node.displayName })] }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-1 ml-[18px] flex items-center gap-2 text-[11px]", style: { color: '#8a8578' }, children: [node.model && (0, jsx_runtime_1.jsx)("span", { className: "truncate", children: node.model }), node.elapsedMs != null && (0, jsx_runtime_1.jsx)("span", { className: "shrink-0", children: (0, utils_2.formatElapsed)(node.elapsedMs) }), node.attempt > 1 && ((0, jsx_runtime_1.jsxs)("span", { className: "px-1 py-0.5 rounded text-[10px] bg-[#3d3a36] shrink-0", children: ["x", node.attempt] }))] }), (0, jsx_runtime_1.jsx)("div", { className: "mt-0.5 ml-[18px] text-[11px]", children: (0, jsx_runtime_1.jsx)("span", { style: { color: colors.text }, children: node.status }) }), node.error && ((0, jsx_runtime_1.jsx)("div", { className: "mt-0.5 ml-[18px] text-[11px] truncate", style: { color: '#f87171' }, title: node.error, children: node.error }))] }), actions && ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)('shrink-0 flex flex-col gap-1 transition-opacity duration-150', selected ? 'opacity-100' : 'opacity-0 group-hover:opacity-100'), children: actions }))] }) }));
26
+ }
27
+ //# sourceMappingURL=NodeListItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeListItem.js","sourceRoot":"","sources":["../../../../ui/core/components/NodeListItem.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;AAeb,oCAkFC;;AA9FD,uCAAiC;AACjC,6DAAuD;AACvD,oCAAyC;AAUzC,SAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAqB;IAC7F,MAAM,MAAM,GAAG,IAAA,UAAE,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO,IAAI,IAAI,CAAC,MAAM,KAAK,UAAU,CAAC;IAEpG,SAAS,aAAa,CAAC,CAAsB;QAC3C,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,EAAE,CAAC;YACvC,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,OAAO,EAAE,EAAE,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,CACL,gCACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,gBACC,GAAG,IAAI,CAAC,WAAW,KAAK,IAAI,CAAC,MAAM,EAAE,EACjD,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,aAAa,EACxB,SAAS,EAAE,IAAA,UAAE,EACX,yIAAyI,EACzI,QAAQ,IAAI,+FAA+F,EAC3G,SAAS,CACV,EACD,KAAK,EACH,QAAQ,IAAI,CAAC,QAAQ;YACnB,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,GAAG,EAAE,eAAe,EAAE,MAAM,CAAC,EAAE,EAAE;YACzD,CAAC,CAAC,SAAS,YAIf,iCAAK,SAAS,EAAC,4BAA4B,aAEzC,iCAAK,SAAS,EAAC,gBAAgB,aAE7B,iCAAK,SAAS,EAAC,yBAAyB,aACtC,iCACE,SAAS,EAAC,uBAAuB,EACjC,KAAK,EAAE;wCACL,KAAK,EAAE,CAAC;wCACR,MAAM,EAAE,CAAC;wCACT,eAAe,EAAE,MAAM,CAAC,GAAG;wCAC3B,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,WAAW,MAAM,CAAC,GAAG,cAAc,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS;qCACpF,GACD,EACF,iCAAM,SAAS,EAAC,8BAA8B,YAAE,IAAI,CAAC,WAAW,GAAQ,IACpE,EAEN,iCAAK,SAAS,EAAC,oDAAoD,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,aAC5F,IAAI,CAAC,KAAK,IAAI,iCAAM,SAAS,EAAC,UAAU,YAAE,IAAI,CAAC,KAAK,GAAQ,EAC5D,IAAI,CAAC,SAAS,IAAI,IAAI,IAAI,iCAAM,SAAS,EAAC,UAAU,YAAE,IAAA,qBAAa,EAAC,IAAI,CAAC,SAAS,CAAC,GAAQ,EAC3F,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,CACnB,kCAAM,SAAS,EAAC,uDAAuD,kBACnE,IAAI,CAAC,OAAO,IACT,CACR,IACG,EAEN,gCAAK,SAAS,EAAC,8BAA8B,YAC3C,iCAAM,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,YAAG,IAAI,CAAC,MAAM,GAAQ,GACrD,EAEL,IAAI,CAAC,KAAK,IAAI,CACb,gCAAK,SAAS,EAAC,uCAAuC,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,YAClG,IAAI,CAAC,KAAK,GACP,CACP,IACG,EAGL,OAAO,IAAI,CACV,gCACE,SAAS,EAAE,IAAA,UAAE,EACX,8DAA8D,EAC9D,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,mCAAmC,CAC/D,YAEA,OAAO,GACJ,CACP,IACG,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,10 @@
1
+ export interface PageHeaderProps {
2
+ title: string;
3
+ badge?: React.ReactNode;
4
+ backHref?: string;
5
+ backLabel?: string;
6
+ actions?: React.ReactNode;
7
+ className?: string;
8
+ }
9
+ export declare function PageHeader({ title, badge, backHref, backLabel, actions, className }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=PageHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../../ui/core/components/PageHeader.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAkB,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,eAAe,2CAsB7G"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PageHeader = PageHeader;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const utils_1 = require("../../utils");
6
+ function PageHeader({ title, badge, backHref, backLabel = 'Back', actions, className }) {
7
+ return ((0, jsx_runtime_1.jsxs)("header", { className: (0, utils_1.cn)('flex items-center justify-between px-6 py-4 border-b border-[#302e2b]', className), style: { background: 'linear-gradient(to bottom, #201d18, #1a1815)' }, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-3", children: [backHref && ((0, jsx_runtime_1.jsx)("a", { href: backHref, "aria-label": backLabel, className: "flex items-center justify-center rounded-md hover:bg-[#343230] transition-colors", style: { minWidth: 44, minHeight: 44 }, children: (0, jsx_runtime_1.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", children: (0, jsx_runtime_1.jsx)("path", { d: "M10 12L6 8L10 4" }) }) })), (0, jsx_runtime_1.jsx)("span", { className: "font-semibold text-base tracking-[-0.02em]", children: title }), badge] }), actions && (0, jsx_runtime_1.jsx)("div", { className: "flex items-center gap-2", children: actions })] }));
8
+ }
9
+ //# sourceMappingURL=PageHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageHeader.js","sourceRoot":"","sources":["../../../../ui/core/components/PageHeader.tsx"],"names":[],"mappings":";;AAWA,gCAsBC;;AAjCD,uCAAiC;AAWjC,SAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,GAAG,MAAM,EAAE,OAAO,EAAE,SAAS,EAAmB;IAC5G,OAAO,CACL,oCAAQ,SAAS,EAAE,IAAA,UAAE,EAAC,uEAAuE,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,8CAA8C,EAAE,aAC9K,iCAAK,SAAS,EAAC,yBAAyB,aACrC,QAAQ,IAAI,CACX,8BACE,IAAI,EAAE,QAAQ,gBACF,SAAS,EACrB,SAAS,EAAC,kFAAkF,EAC5F,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,YAEtC,gCAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,YAC9I,iCAAM,CAAC,EAAC,iBAAiB,GAAG,GACxB,GACJ,CACL,EACD,iCAAM,SAAS,EAAC,4CAA4C,YAAE,KAAK,GAAQ,EAC1E,KAAK,IACF,EACL,OAAO,IAAI,gCAAK,SAAS,EAAC,yBAAyB,YAAE,OAAO,GAAO,IAC7D,CACV,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ export interface SectionLabelProps {
2
+ children: React.ReactNode;
3
+ className?: string;
4
+ }
5
+ export declare function SectionLabel({ children, className }: SectionLabelProps): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=SectionLabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionLabel.d.ts","sourceRoot":"","sources":["../../../../ui/core/components/SectionLabel.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,2CAWtE"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SectionLabel = SectionLabel;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const utils_1 = require("../../utils");
6
+ function SectionLabel({ children, className }) {
7
+ return ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)('text-[11px] font-medium uppercase tracking-[0.08em] text-[#6b6660] py-1.5 px-1', className), children: children }));
8
+ }
9
+ //# sourceMappingURL=SectionLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionLabel.js","sourceRoot":"","sources":["../../../../ui/core/components/SectionLabel.tsx"],"names":[],"mappings":";;AAOA,oCAWC;;AAlBD,uCAAiC;AAOjC,SAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAqB;IACrE,OAAO,CACL,gCACE,SAAS,EAAE,IAAA,UAAE,EACX,gFAAgF,EAChF,SAAS,CACV,YAEA,QAAQ,GACL,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface SkeletonProps {
2
+ variant?: 'card' | 'row' | 'text';
3
+ lines?: number;
4
+ className?: string;
5
+ }
6
+ export declare function Skeleton({ variant, lines, className }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=Skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../../ui/core/components/Skeleton.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAQD,wBAAgB,QAAQ,CAAC,EAAE,OAAgB,EAAE,KAAS,EAAE,SAAS,EAAE,EAAE,aAAa,2CAoCjF"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Skeleton = Skeleton;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const utils_1 = require("../../utils");
6
+ const shimmerStyle = {
7
+ backgroundImage: 'linear-gradient(to right, #201d18, #343230, #201d18)',
8
+ backgroundSize: '200% 100%',
9
+ animation: 'shimmer 1.5s ease-in-out infinite',
10
+ };
11
+ function Skeleton({ variant = 'text', lines = 3, className }) {
12
+ if (variant === 'card') {
13
+ return ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)('w-full rounded-lg', className), style: { ...shimmerStyle, height: 120, border: '1px solid #302e2b' } }));
14
+ }
15
+ if (variant === 'row') {
16
+ return ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)('w-full rounded-md', className), style: { ...shimmerStyle, height: 40, border: '1px solid #302e2b' } }));
17
+ }
18
+ // text variant
19
+ const widths = ['100%', '80%', '60%'];
20
+ return ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)('flex flex-col gap-2', className), children: Array.from({ length: lines }, (_, i) => ((0, jsx_runtime_1.jsx)("div", { className: "rounded", style: {
21
+ ...shimmerStyle,
22
+ height: 12,
23
+ width: widths[i % widths.length],
24
+ } }, i))) }));
25
+ }
26
+ //# sourceMappingURL=Skeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../../ui/core/components/Skeleton.tsx"],"names":[],"mappings":";;AAcA,4BAoCC;;AAlDD,uCAAiC;AAQjC,MAAM,YAAY,GAAwB;IACxC,eAAe,EAAE,sDAAsD;IACvE,cAAc,EAAE,WAAW;IAC3B,SAAS,EAAE,mCAAmC;CAC/C,CAAC;AAEF,SAAgB,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,KAAK,GAAG,CAAC,EAAE,SAAS,EAAiB;IAChF,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;QACvB,OAAO,CACL,gCACE,SAAS,EAAE,IAAA,UAAE,EAAC,mBAAmB,EAAE,SAAS,CAAC,EAC7C,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,mBAAmB,EAAE,GACpE,CACH,CAAC;IACJ,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,EAAE,CAAC;QACtB,OAAO,CACL,gCACE,SAAS,EAAE,IAAA,UAAE,EAAC,mBAAmB,EAAE,SAAS,CAAC,EAC7C,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,GACnE,CACH,CAAC;IACJ,CAAC;IAED,eAAe;IACf,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACtC,OAAO,CACL,gCAAK,SAAS,EAAE,IAAA,UAAE,EAAC,qBAAqB,EAAE,SAAS,CAAC,YACjD,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACvC,gCAEE,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE;gBACL,GAAG,YAAY;gBACf,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;aACjC,IANI,CAAC,CAON,CACH,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface StatProps {
2
+ label: string;
3
+ value: number;
4
+ color: string;
5
+ className?: string;
6
+ }
7
+ export declare function Stat({ label, value, color, className }: StatProps): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=Stat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stat.d.ts","sourceRoot":"","sources":["../../../../ui/core/components/Stat.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,SAAS,2CAOjE"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Stat = Stat;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const utils_1 = require("../../utils");
6
+ function Stat({ label, value, color, className }) {
7
+ return ((0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)('border border-[#3d3a36] rounded-2xl px-4 py-3 min-w-[80px] md:px-5 md:py-4 md:min-w-[100px] shadow-[0_1px_3px_rgba(0,0,0,0.2),0_4px_12px_rgba(0,0,0,0.15)] transition-all duration-200 hover:border-[#4a4742] hover:shadow-[0_2px_8px_rgba(0,0,0,0.25)]', className), style: { background: 'linear-gradient(to bottom, #363330, #252220)' }, children: [(0, jsx_runtime_1.jsx)("div", { style: { fontSize: 28, fontWeight: 600, color, letterSpacing: '-0.02em', textShadow: '0 0 24px currentColor', lineHeight: 1.1 }, children: value }), (0, jsx_runtime_1.jsx)("div", { className: "text-[12px] mt-2 uppercase tracking-[0.08em] font-medium", style: { color: '#8a8578' }, children: label })] }));
8
+ }
9
+ //# sourceMappingURL=Stat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stat.js","sourceRoot":"","sources":["../../../../ui/core/components/Stat.tsx"],"names":[],"mappings":";;AASA,oBAOC;;AAhBD,uCAAiC;AASjC,SAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAa;IAChE,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,UAAE,EAAC,yPAAyP,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,8CAA8C,EAAE,aAC7V,gCAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,uBAAuB,EAAE,UAAU,EAAE,GAAG,EAAE,YAAG,KAAK,GAAO,EACnJ,gCAAK,SAAS,EAAC,0DAA0D,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,YAAG,KAAK,GAAO,IAChH,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface ToastProps {
2
+ message: string;
3
+ type: 'success' | 'error';
4
+ onDismiss?: () => void;
5
+ }
6
+ export declare function Toast({ message, type, onDismiss }: ToastProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=Toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../ui/core/components/Toast.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAOD,wBAAgB,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,UAAU,2CAyB7D"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ 'use client';
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Toast = Toast;
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_1 = require("react");
7
+ const utils_1 = require("../../utils");
8
+ const typeStyles = {
9
+ success: { bg: 'rgba(34, 197, 94, 0.15)', text: '#4ade80' },
10
+ error: { bg: 'rgba(239, 68, 68, 0.15)', text: '#f87171' },
11
+ };
12
+ function Toast({ message, type, onDismiss }) {
13
+ (0, react_1.useEffect)(() => {
14
+ if (!onDismiss)
15
+ return;
16
+ const timer = setTimeout(onDismiss, 4000);
17
+ return () => clearTimeout(timer);
18
+ }, [onDismiss]);
19
+ const colors = typeStyles[type];
20
+ return ((0, jsx_runtime_1.jsx)("div", { role: "status", "aria-live": "polite", className: (0, utils_1.cn)('px-4 py-3 rounded-lg border text-sm font-medium'), style: {
21
+ backgroundColor: colors.bg,
22
+ color: colors.text,
23
+ borderColor: colors.text + '22',
24
+ boxShadow: `0 4px 12px rgba(0,0,0,0.3), 0 0 16px ${colors.text}11`,
25
+ animation: 'slideUp 200ms ease, fadeIn 200ms ease',
26
+ }, children: message }));
27
+ }
28
+ //# sourceMappingURL=Toast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toast.js","sourceRoot":"","sources":["../../../../ui/core/components/Toast.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;AAgBb,sBAyBC;;AAvCD,iCAAkC;AAClC,uCAAiC;AAQjC,MAAM,UAAU,GAAiD;IAC/D,OAAO,EAAE,EAAE,EAAE,EAAE,yBAAyB,EAAE,IAAI,EAAE,SAAS,EAAE;IAC3D,KAAK,EAAE,EAAE,EAAE,EAAE,yBAAyB,EAAE,IAAI,EAAE,SAAS,EAAE;CAC1D,CAAC;AAEF,SAAgB,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAc;IAC5D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,MAAM,KAAK,GAAG,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAC1C,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAEhB,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAEhC,OAAO,CACL,gCACE,IAAI,EAAC,QAAQ,eACH,QAAQ,EAClB,SAAS,EAAE,IAAA,UAAE,EAAC,iDAAiD,CAAC,EAChE,KAAK,EAAE;YACL,eAAe,EAAE,MAAM,CAAC,EAAE;YAC1B,KAAK,EAAE,MAAM,CAAC,IAAI;YAClB,WAAW,EAAE,MAAM,CAAC,IAAI,GAAG,IAAI;YAC/B,SAAS,EAAE,wCAAwC,MAAM,CAAC,IAAI,IAAI;YAClE,SAAS,EAAE,uCAAuC;SACnD,YAEA,OAAO,GACJ,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=primitives.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primitives.test.d.ts","sourceRoot":"","sources":["../../../../../ui/core/components/__tests__/primitives.test.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=primitives.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primitives.test.js","sourceRoot":"","sources":["../../../../../ui/core/components/__tests__/primitives.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ export { Badge } from './Badge';
2
+ export type { BadgeProps } from './Badge';
3
+ export { Button } from './Button';
4
+ export type { ButtonProps } from './Button';
5
+ export { SectionLabel } from './SectionLabel';
6
+ export type { SectionLabelProps } from './SectionLabel';
7
+ export { Skeleton } from './Skeleton';
8
+ export type { SkeletonProps } from './Skeleton';
9
+ export { Toast } from './Toast';
10
+ export type { ToastProps } from './Toast';
11
+ export { ConfirmDialog } from './ConfirmDialog';
12
+ export type { ConfirmDialogProps } from './ConfirmDialog';
13
+ export { NodeListItem } from './NodeListItem';
14
+ export type { NodeListItemProps } from './NodeListItem';
15
+ export { PageHeader } from './PageHeader';
16
+ export type { PageHeaderProps } from './PageHeader';
17
+ export { Stat } from './Stat';
18
+ export type { StatProps } from './Stat';
19
+ export { ExecutionCard } from './ExecutionCard';
20
+ export type { ExecutionCardProps } from './ExecutionCard';
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../ui/core/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExecutionCard = exports.Stat = exports.PageHeader = exports.NodeListItem = exports.ConfirmDialog = exports.Toast = exports.Skeleton = exports.SectionLabel = exports.Button = exports.Badge = void 0;
4
+ var Badge_1 = require("./Badge");
5
+ Object.defineProperty(exports, "Badge", { enumerable: true, get: function () { return Badge_1.Badge; } });
6
+ var Button_1 = require("./Button");
7
+ Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
8
+ var SectionLabel_1 = require("./SectionLabel");
9
+ Object.defineProperty(exports, "SectionLabel", { enumerable: true, get: function () { return SectionLabel_1.SectionLabel; } });
10
+ var Skeleton_1 = require("./Skeleton");
11
+ Object.defineProperty(exports, "Skeleton", { enumerable: true, get: function () { return Skeleton_1.Skeleton; } });
12
+ var Toast_1 = require("./Toast");
13
+ Object.defineProperty(exports, "Toast", { enumerable: true, get: function () { return Toast_1.Toast; } });
14
+ var ConfirmDialog_1 = require("./ConfirmDialog");
15
+ Object.defineProperty(exports, "ConfirmDialog", { enumerable: true, get: function () { return ConfirmDialog_1.ConfirmDialog; } });
16
+ var NodeListItem_1 = require("./NodeListItem");
17
+ Object.defineProperty(exports, "NodeListItem", { enumerable: true, get: function () { return NodeListItem_1.NodeListItem; } });
18
+ var PageHeader_1 = require("./PageHeader");
19
+ Object.defineProperty(exports, "PageHeader", { enumerable: true, get: function () { return PageHeader_1.PageHeader; } });
20
+ var Stat_1 = require("./Stat");
21
+ Object.defineProperty(exports, "Stat", { enumerable: true, get: function () { return Stat_1.Stat; } });
22
+ var ExecutionCard_1 = require("./ExecutionCard");
23
+ Object.defineProperty(exports, "ExecutionCard", { enumerable: true, get: function () { return ExecutionCard_1.ExecutionCard; } });
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../ui/core/components/index.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AAGd,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AAGf,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AAGrB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AAGjB,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AAGd,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AAGtB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AAGrB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AAGnB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AAGb,iDAAgD;AAAvC,8GAAA,aAAa,OAAA"}
@@ -0,0 +1,17 @@
1
+ export * from './components/index';
2
+ export { NodeDetailPanel } from '../components/NodeDetailPanel';
3
+ export { FlowStatusBar } from '../components/FlowStatusBar';
4
+ export { MiniPipeline } from '../components/MiniPipeline';
5
+ export type { MiniPipelineProps } from '../components/MiniPipeline';
6
+ export { NodePanel } from '../components/node-panel/index';
7
+ export type { OutputRenderer } from '../components/node-panel/index';
8
+ export { STATUS_COLORS, sc } from '../components/node-panel/types';
9
+ export { useFlowExecution, useFlowExecutions } from '../hooks/useFlowExecution';
10
+ export type { FlowSSEStatus } from '../hooks/useFlowExecution';
11
+ export { useNodeOutput } from '../hooks/useNodeOutput';
12
+ export { useAutoSelectNode } from '../hooks/useAutoSelectNode';
13
+ export { useNodeNavigation } from '../hooks/useNodeNavigation';
14
+ export { ansiToHtml, stripAnsi, hasAnsi } from '../ansi';
15
+ export { cn } from '../utils';
16
+ export { formatElapsed, formatDuration } from './utils';
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ui/core/index.ts"],"names":[],"mappings":"AAGA,cAAc,oBAAoB,CAAC;AAGnC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAGnE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAChF,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGzD,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ // Core UI exports — no @xyflow/react dependency
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.formatDuration = exports.formatElapsed = exports.cn = exports.hasAnsi = exports.stripAnsi = exports.ansiToHtml = exports.useNodeNavigation = exports.useAutoSelectNode = exports.useNodeOutput = exports.useFlowExecutions = exports.useFlowExecution = exports.sc = exports.STATUS_COLORS = exports.NodePanel = exports.MiniPipeline = exports.FlowStatusBar = exports.NodeDetailPanel = void 0;
19
+ // New UI primitives + pipeline components
20
+ __exportStar(require("./components/index"), exports);
21
+ // Components (no graph components)
22
+ var NodeDetailPanel_1 = require("../components/NodeDetailPanel");
23
+ Object.defineProperty(exports, "NodeDetailPanel", { enumerable: true, get: function () { return NodeDetailPanel_1.NodeDetailPanel; } });
24
+ var FlowStatusBar_1 = require("../components/FlowStatusBar");
25
+ Object.defineProperty(exports, "FlowStatusBar", { enumerable: true, get: function () { return FlowStatusBar_1.FlowStatusBar; } });
26
+ // MiniPipeline (ADR-004)
27
+ var MiniPipeline_1 = require("../components/MiniPipeline");
28
+ Object.defineProperty(exports, "MiniPipeline", { enumerable: true, get: function () { return MiniPipeline_1.MiniPipeline; } });
29
+ // Compound NodePanel (ADR-003)
30
+ var index_1 = require("../components/node-panel/index");
31
+ Object.defineProperty(exports, "NodePanel", { enumerable: true, get: function () { return index_1.NodePanel; } });
32
+ var types_1 = require("../components/node-panel/types");
33
+ Object.defineProperty(exports, "STATUS_COLORS", { enumerable: true, get: function () { return types_1.STATUS_COLORS; } });
34
+ Object.defineProperty(exports, "sc", { enumerable: true, get: function () { return types_1.sc; } });
35
+ // Hooks
36
+ var useFlowExecution_1 = require("../hooks/useFlowExecution");
37
+ Object.defineProperty(exports, "useFlowExecution", { enumerable: true, get: function () { return useFlowExecution_1.useFlowExecution; } });
38
+ Object.defineProperty(exports, "useFlowExecutions", { enumerable: true, get: function () { return useFlowExecution_1.useFlowExecutions; } });
39
+ var useNodeOutput_1 = require("../hooks/useNodeOutput");
40
+ Object.defineProperty(exports, "useNodeOutput", { enumerable: true, get: function () { return useNodeOutput_1.useNodeOutput; } });
41
+ var useAutoSelectNode_1 = require("../hooks/useAutoSelectNode");
42
+ Object.defineProperty(exports, "useAutoSelectNode", { enumerable: true, get: function () { return useAutoSelectNode_1.useAutoSelectNode; } });
43
+ var useNodeNavigation_1 = require("../hooks/useNodeNavigation");
44
+ Object.defineProperty(exports, "useNodeNavigation", { enumerable: true, get: function () { return useNodeNavigation_1.useNodeNavigation; } });
45
+ // ANSI terminal output utilities
46
+ var ansi_1 = require("../ansi");
47
+ Object.defineProperty(exports, "ansiToHtml", { enumerable: true, get: function () { return ansi_1.ansiToHtml; } });
48
+ Object.defineProperty(exports, "stripAnsi", { enumerable: true, get: function () { return ansi_1.stripAnsi; } });
49
+ Object.defineProperty(exports, "hasAnsi", { enumerable: true, get: function () { return ansi_1.hasAnsi; } });
50
+ // Utilities
51
+ var utils_1 = require("../utils");
52
+ Object.defineProperty(exports, "cn", { enumerable: true, get: function () { return utils_1.cn; } });
53
+ var utils_2 = require("./utils");
54
+ Object.defineProperty(exports, "formatElapsed", { enumerable: true, get: function () { return utils_2.formatElapsed; } });
55
+ Object.defineProperty(exports, "formatDuration", { enumerable: true, get: function () { return utils_2.formatDuration; } });
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ui/core/index.ts"],"names":[],"mappings":";AAAA,gDAAgD;;;;;;;;;;;;;;;;;AAEhD,0CAA0C;AAC1C,qDAAmC;AAEnC,mCAAmC;AACnC,iEAAgE;AAAvD,kHAAA,eAAe,OAAA;AACxB,6DAA4D;AAAnD,8GAAA,aAAa,OAAA;AAEtB,yBAAyB;AACzB,2DAA0D;AAAjD,4GAAA,YAAY,OAAA;AAGrB,+BAA+B;AAC/B,wDAA2D;AAAlD,kGAAA,SAAS,OAAA;AAElB,wDAAmE;AAA1D,sGAAA,aAAa,OAAA;AAAE,2FAAA,EAAE,OAAA;AAE1B,QAAQ;AACR,8DAAgF;AAAvE,oHAAA,gBAAgB,OAAA;AAAE,qHAAA,iBAAiB,OAAA;AAE5C,wDAAuD;AAA9C,8GAAA,aAAa,OAAA;AACtB,gEAA+D;AAAtD,sHAAA,iBAAiB,OAAA;AAC1B,gEAA+D;AAAtD,sHAAA,iBAAiB,OAAA;AAE1B,iCAAiC;AACjC,gCAAyD;AAAhD,kGAAA,UAAU,OAAA;AAAE,iGAAA,SAAS,OAAA;AAAE,+FAAA,OAAO,OAAA;AAEvC,YAAY;AACZ,kCAA8B;AAArB,2FAAA,EAAE,OAAA;AACX,iCAAwD;AAA/C,sGAAA,aAAa,OAAA;AAAE,uGAAA,cAAc,OAAA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Formatting utilities for time display.
3
+ */
4
+ export declare function formatElapsed(ms?: number): string;
5
+ export declare function formatDuration(secs: number): string;
6
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../ui/core/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,aAAa,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAQjD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQnD"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /**
3
+ * Formatting utilities for time display.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.formatElapsed = formatElapsed;
7
+ exports.formatDuration = formatDuration;
8
+ function formatElapsed(ms) {
9
+ if (!ms)
10
+ return '';
11
+ if (ms < 1000)
12
+ return `${ms}ms`;
13
+ const secs = Math.floor(ms / 1000);
14
+ if (secs < 60)
15
+ return `${secs}s`;
16
+ const mins = Math.floor(secs / 60);
17
+ const remSecs = secs % 60;
18
+ return `${mins}m ${remSecs}s`;
19
+ }
20
+ function formatDuration(secs) {
21
+ if (secs < 60)
22
+ return `${secs}s`;
23
+ const mins = Math.floor(secs / 60);
24
+ if (mins < 60)
25
+ return `${mins}m`;
26
+ const hrs = Math.floor(mins / 60);
27
+ const remMins = mins % 60;
28
+ if (remMins === 0)
29
+ return `${hrs}h`;
30
+ return `${hrs}h ${remMins}m`;
31
+ }
32
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../ui/core/utils.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,sCAQC;AAED,wCAQC;AAlBD,SAAgB,aAAa,CAAC,EAAW;IACvC,IAAI,CAAC,EAAE;QAAE,OAAO,EAAE,CAAC;IACnB,IAAI,EAAE,GAAG,IAAI;QAAE,OAAO,GAAG,EAAE,IAAI,CAAC;IAChC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC;IACnC,IAAI,IAAI,GAAG,EAAE;QAAE,OAAO,GAAG,IAAI,GAAG,CAAC;IACjC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;IACnC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;IAC1B,OAAO,GAAG,IAAI,KAAK,OAAO,GAAG,CAAC;AAChC,CAAC;AAED,SAAgB,cAAc,CAAC,IAAY;IACzC,IAAI,IAAI,GAAG,EAAE;QAAE,OAAO,GAAG,IAAI,GAAG,CAAC;IACjC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;IACnC,IAAI,IAAI,GAAG,EAAE;QAAE,OAAO,GAAG,IAAI,GAAG,CAAC;IACjC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;IAC1B,IAAI,OAAO,KAAK,CAAC;QAAE,OAAO,GAAG,GAAG,GAAG,CAAC;IACpC,OAAO,GAAG,GAAG,KAAK,OAAO,GAAG,CAAC;AAC/B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { FlowGraph } from '../components/FlowGraph';
2
+ export { NodeCard } from '../components/NodeCard';
3
+ export { FlowEdge } from '../components/FlowEdge';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ui/graph/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FlowEdge = exports.NodeCard = exports.FlowGraph = void 0;
4
+ // Graph UI exports — depends on @xyflow/react
5
+ var FlowGraph_1 = require("../components/FlowGraph");
6
+ Object.defineProperty(exports, "FlowGraph", { enumerable: true, get: function () { return FlowGraph_1.FlowGraph; } });
7
+ var NodeCard_1 = require("../components/NodeCard");
8
+ Object.defineProperty(exports, "NodeCard", { enumerable: true, get: function () { return NodeCard_1.NodeCard; } });
9
+ var FlowEdge_1 = require("../components/FlowEdge");
10
+ Object.defineProperty(exports, "FlowEdge", { enumerable: true, get: function () { return FlowEdge_1.FlowEdge; } });
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ui/graph/index.ts"],"names":[],"mappings":";;;AAAA,8CAA8C;AAC9C,qDAAoD;AAA3C,sGAAA,SAAS,OAAA;AAClB,mDAAkD;AAAzC,oGAAA,QAAQ,OAAA;AACjB,mDAAkD;AAAzC,oGAAA,QAAQ,OAAA"}
@@ -0,0 +1,3 @@
1
+ import type { ProjectionNode } from '../../src/types';
2
+ export declare function useAutoSelectNode(nodes: ProjectionNode[]): string | null;
3
+ //# sourceMappingURL=useAutoSelectNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAutoSelectNode.d.ts","sourceRoot":"","sources":["../../../ui/hooks/useAutoSelectNode.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAStD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,MAAM,GAAG,IAAI,CAyBxE"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ 'use client';
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.useAutoSelectNode = useAutoSelectNode;
5
+ const react_1 = require("react");
6
+ const PRIORITY = {
7
+ running: 1,
8
+ retrying: 2,
9
+ gated: 3,
10
+ failed: 4,
11
+ };
12
+ function useAutoSelectNode(nodes) {
13
+ return (0, react_1.useMemo)(() => {
14
+ if (nodes.length === 0)
15
+ return null;
16
+ // Find highest-priority active node
17
+ let best = null;
18
+ let bestPriority = Infinity;
19
+ for (const node of nodes) {
20
+ const p = PRIORITY[node.status];
21
+ if (p != null && p < bestPriority) {
22
+ best = node;
23
+ bestPriority = p;
24
+ }
25
+ }
26
+ if (best)
27
+ return best.id;
28
+ // Fall back to last completed node (last in array order with status completed)
29
+ for (let i = nodes.length - 1; i >= 0; i--) {
30
+ if (nodes[i].status === 'completed')
31
+ return nodes[i].id;
32
+ }
33
+ return null;
34
+ }, [nodes]);
35
+ }
36
+ //# sourceMappingURL=useAutoSelectNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAutoSelectNode.js","sourceRoot":"","sources":["../../../ui/hooks/useAutoSelectNode.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;AAYb,8CAyBC;AAnCD,iCAAgC;AAGhC,MAAM,QAAQ,GAA2B;IACvC,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;CACV,CAAC;AAEF,SAAgB,iBAAiB,CAAC,KAAuB;IACvD,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE;QAClB,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QAEpC,oCAAoC;QACpC,IAAI,IAAI,GAA0B,IAAI,CAAC;QACvC,IAAI,YAAY,GAAG,QAAQ,CAAC;QAE5B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAChC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG,YAAY,EAAE,CAAC;gBAClC,IAAI,GAAG,IAAI,CAAC;gBACZ,YAAY,GAAG,CAAC,CAAC;YACnB,CAAC;QACH,CAAC;QAED,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC,EAAE,CAAC;QAEzB,+EAA+E;QAC/E,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3C,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,WAAW;gBAAE,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1D,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AACd,CAAC"}
@@ -0,0 +1,32 @@
1
+ import type { ExecutionProjection } from '../../src/types';
2
+ export type FlowSSEStatus = 'connecting' | 'open' | 'closed' | 'error';
3
+ interface UseFlowExecutionOptions {
4
+ /** Execution ID to fetch. Null = don't fetch. */
5
+ executionId: string | null;
6
+ /** Base URL for API requests (default: ''). */
7
+ baseUrl?: string;
8
+ /** Polling fallback interval in ms (default: 5000). Used when SSE disconnects. */
9
+ pollInterval?: number;
10
+ }
11
+ /**
12
+ * Hook for a single flow execution: fetches projection + subscribes to SSE stream.
13
+ *
14
+ * Returns the current projection (updated in real-time via SSE) and status.
15
+ */
16
+ export declare function useFlowExecution({ executionId, baseUrl, pollInterval }: UseFlowExecutionOptions): {
17
+ projection: ExecutionProjection | null;
18
+ loading: boolean;
19
+ error: string | null;
20
+ sseStatus: FlowSSEStatus;
21
+ refetch: () => Promise<void>;
22
+ };
23
+ /**
24
+ * Hook for the executions list.
25
+ */
26
+ export declare function useFlowExecutions(baseUrl?: string): {
27
+ executions: ExecutionProjection[];
28
+ loading: boolean;
29
+ refetch: () => Promise<void>;
30
+ };
31
+ export {};
32
+ //# sourceMappingURL=useFlowExecution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFlowExecution.d.ts","sourceRoot":"","sources":["../../../ui/hooks/useFlowExecution.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG3D,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEvE,UAAU,uBAAuB;IAC/B,iDAAiD;IACjD,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kFAAkF;IAClF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,WAAW,EAAE,OAAY,EAAE,YAAmB,EAAE,EAAE,uBAAuB;;;;;;EAuF3G;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,SAAK;;;;EAkB7C"}