@hotmeshio/long-tail 0.8.1 → 0.8.3

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 (308) hide show
  1. package/build/scripts/twin-farm.d.ts +45 -0
  2. package/build/scripts/twin-farm.js +441 -0
  3. package/build/tsconfig.tsbuildinfo +1 -1
  4. package/dashboard/dist/assets/AdminDashboard-Dhr7sUq6.js +2 -0
  5. package/dashboard/dist/assets/{AdminDashboard-Ck5-jV9T.js.map → AdminDashboard-Dhr7sUq6.js.map} +1 -1
  6. package/dashboard/dist/assets/AgentConfigPage-CUPm8FjH.js +16 -0
  7. package/dashboard/dist/assets/{AgentConfigPage-DFiXRBWs.js.map → AgentConfigPage-CUPm8FjH.js.map} +1 -1
  8. package/dashboard/dist/assets/AgentDetailPage-C9Tmmhhc.js +4 -0
  9. package/dashboard/dist/assets/{AgentDetailPage-BBgM_pMe.js.map → AgentDetailPage-C9Tmmhhc.js.map} +1 -1
  10. package/dashboard/dist/assets/AgentsPage-Pj47ZJ2U.js +2 -0
  11. package/dashboard/dist/assets/{AgentsPage-DxwFuedf.js.map → AgentsPage-Pj47ZJ2U.js.map} +1 -1
  12. package/dashboard/dist/assets/AvailableEscalationsPage-BxakNqha.js +2 -0
  13. package/dashboard/dist/assets/{AvailableEscalationsPage-DNQbeIcn.js.map → AvailableEscalationsPage-BxakNqha.js.map} +1 -1
  14. package/dashboard/dist/assets/BotPicker-CCIo5ic0.js +2 -0
  15. package/dashboard/dist/assets/{BotPicker-mqwKVOE3.js.map → BotPicker-CCIo5ic0.js.map} +1 -1
  16. package/dashboard/dist/assets/CapabilitiesPage-XFVq4iPX.js +2 -0
  17. package/dashboard/dist/assets/{CapabilitiesPage-Biffm0kW.js.map → CapabilitiesPage-XFVq4iPX.js.map} +1 -1
  18. package/dashboard/dist/assets/CollapsibleSection-CBKICsCu.js +2 -0
  19. package/dashboard/dist/assets/{CollapsibleSection-Bn6Ks79X.js.map → CollapsibleSection-CBKICsCu.js.map} +1 -1
  20. package/dashboard/dist/assets/ConfirmDeleteModal-D9_1b4MW.js +2 -0
  21. package/dashboard/dist/assets/{ConfirmDeleteModal-no0-c_1G.js.map → ConfirmDeleteModal-D9_1b4MW.js.map} +1 -1
  22. package/dashboard/dist/assets/CopyableId-blg-gZvT.js +2 -0
  23. package/dashboard/dist/assets/{CopyableId-DS6IDMIX.js.map → CopyableId-blg-gZvT.js.map} +1 -1
  24. package/dashboard/dist/assets/CredentialsPage-BN_d7ybc.js +2 -0
  25. package/dashboard/dist/assets/{CredentialsPage-C3NyncEB.js.map → CredentialsPage-BN_d7ybc.js.map} +1 -1
  26. package/dashboard/dist/assets/CronLabel-4V_EXMUg.js +2 -0
  27. package/dashboard/dist/assets/{CronLabel-DQWBx57H.js.map → CronLabel-4V_EXMUg.js.map} +1 -1
  28. package/dashboard/dist/assets/CustomDurationPicker-BdurQj-B.js +2 -0
  29. package/dashboard/dist/assets/{CustomDurationPicker-DV42oZ1G.js.map → CustomDurationPicker-BdurQj-B.js.map} +1 -1
  30. package/dashboard/dist/assets/DataTable-ZWgVQg7F.js +2 -0
  31. package/dashboard/dist/assets/{DataTable-Bf4dgxll.js.map → DataTable-ZWgVQg7F.js.map} +1 -1
  32. package/dashboard/dist/assets/DropZone-SgiK1WOl.js +2 -0
  33. package/dashboard/dist/assets/{DropZone-CTSXBb3c.js.map → DropZone-SgiK1WOl.js.map} +1 -1
  34. package/dashboard/dist/assets/ElapsedCell-CO8XMSJX.js +2 -0
  35. package/dashboard/dist/assets/{ElapsedCell-roy4G5SQ.js.map → ElapsedCell-CO8XMSJX.js.map} +1 -1
  36. package/dashboard/dist/assets/EmptyState-BcsfPq9T.js +2 -0
  37. package/dashboard/dist/assets/{EmptyState-CLVm9KmA.js.map → EmptyState-BcsfPq9T.js.map} +1 -1
  38. package/dashboard/dist/assets/EscalationSchemaPage-hzFtuyha.js +9 -0
  39. package/dashboard/dist/assets/{EscalationSchemaPage-DulCCxea.js.map → EscalationSchemaPage-hzFtuyha.js.map} +1 -1
  40. package/dashboard/dist/assets/EscalationsOverview-qlo0mxxa.js +2 -0
  41. package/dashboard/dist/assets/{EscalationsOverview-DDwxn_mT.js.map → EscalationsOverview-qlo0mxxa.js.map} +1 -1
  42. package/dashboard/dist/assets/EventTable-D9RjAT_a.js +2 -0
  43. package/dashboard/dist/assets/{EventTable-BaLNvCew.js.map → EventTable-D9RjAT_a.js.map} +1 -1
  44. package/dashboard/dist/assets/FilterBar-B4Mk2PvT.js +2 -0
  45. package/dashboard/dist/assets/{FilterBar-DEAbNQqp.js.map → FilterBar-B4Mk2PvT.js.map} +1 -1
  46. package/dashboard/dist/assets/GraphInvokePage-CU3r2tzN.js +2 -0
  47. package/dashboard/dist/assets/{GraphInvokePage-BmM8r0R3.js.map → GraphInvokePage-CU3r2tzN.js.map} +1 -1
  48. package/dashboard/dist/assets/HomePage-B7pb4-Gx.js +2 -0
  49. package/dashboard/dist/assets/HomePage-B7pb4-Gx.js.map +1 -0
  50. package/dashboard/dist/assets/ListToolbar-C_64Y22Z.js +2 -0
  51. package/dashboard/dist/assets/{ListToolbar-Dviaskni.js.map → ListToolbar-C_64Y22Z.js.map} +1 -1
  52. package/dashboard/dist/assets/McpOverview-D-4eSOTc.js +2 -0
  53. package/dashboard/dist/assets/{McpOverview-BBm66wbF.js.map → McpOverview-D-4eSOTc.js.map} +1 -1
  54. package/dashboard/dist/assets/McpQueryDetailPage-BYwDb8LC.js +5 -0
  55. package/dashboard/dist/assets/{McpQueryDetailPage-B6GJOMcz.js.map → McpQueryDetailPage-BYwDb8LC.js.map} +1 -1
  56. package/dashboard/dist/assets/McpQueryPage-CIijB5t2.js +2 -0
  57. package/dashboard/dist/assets/{McpQueryPage-C-8nIdBL.js.map → McpQueryPage-CIijB5t2.js.map} +1 -1
  58. package/dashboard/dist/assets/McpRunDetailPage-CQmhfgju.js +2 -0
  59. package/dashboard/dist/assets/{McpRunDetailPage-CSq_0qqi.js.map → McpRunDetailPage-CQmhfgju.js.map} +1 -1
  60. package/dashboard/dist/assets/McpRunsPage-CdDyeOdi.js +2 -0
  61. package/dashboard/dist/assets/McpRunsPage-CdDyeOdi.js.map +1 -0
  62. package/dashboard/dist/assets/Modal-CSrxpXeM.js +2 -0
  63. package/dashboard/dist/assets/{Modal-C6HI6btY.js.map → Modal-CSrxpXeM.js.map} +1 -1
  64. package/dashboard/dist/assets/NamespacePill-SErKwgkb.js +2 -0
  65. package/dashboard/dist/assets/{NamespacePill-eGsbJBFa.js.map → NamespacePill-SErKwgkb.js.map} +1 -1
  66. package/dashboard/dist/assets/OperationsPage-Cz_0K8tj.js +2 -0
  67. package/dashboard/dist/assets/OperationsPage-Cz_0K8tj.js.map +1 -0
  68. package/dashboard/dist/assets/OperatorDashboard-DFORmS46.js +2 -0
  69. package/dashboard/dist/assets/{OperatorDashboard-BbmgsOmQ.js.map → OperatorDashboard-DFORmS46.js.map} +1 -1
  70. package/dashboard/dist/assets/PageHeader-DJo7yMUR.js +2 -0
  71. package/dashboard/dist/assets/{PageHeader-DcgGV0Y2.js.map → PageHeader-DJo7yMUR.js.map} +1 -1
  72. package/dashboard/dist/assets/PageHeaderWithStats-W3akV6nB.js +2 -0
  73. package/dashboard/dist/assets/{PageHeaderWithStats-Cf8TYFRh.js.map → PageHeaderWithStats-W3akV6nB.js.map} +1 -1
  74. package/dashboard/dist/assets/PriorityBadge-B4ykBH7f.js +2 -0
  75. package/dashboard/dist/assets/{PriorityBadge-a7u8C9uY.js.map → PriorityBadge-B4ykBH7f.js.map} +1 -1
  76. package/dashboard/dist/assets/ProcessDetailPage-DwypVFE2.js +2 -0
  77. package/dashboard/dist/assets/{ProcessDetailPage-D80w44rV.js.map → ProcessDetailPage-DwypVFE2.js.map} +1 -1
  78. package/dashboard/dist/assets/ProcessesListPage-tNLvALwT.js +2 -0
  79. package/dashboard/dist/assets/{ProcessesListPage-BjW5xUkv.js.map → ProcessesListPage-tNLvALwT.js.map} +1 -1
  80. package/dashboard/dist/assets/RoleDetailPage-BPsrUqIa.js +11 -0
  81. package/dashboard/dist/assets/{RoleDetailPage-oahg0cdT.js.map → RoleDetailPage-BPsrUqIa.js.map} +1 -1
  82. package/dashboard/dist/assets/RolePill-DHWixsQR.js +2 -0
  83. package/dashboard/dist/assets/{RolePill-BAeaQUXX.js.map → RolePill-DHWixsQR.js.map} +1 -1
  84. package/dashboard/dist/assets/RolesPage-txueySPI.js +2 -0
  85. package/dashboard/dist/assets/{RolesPage-BI1Xtqq_.js.map → RolesPage-txueySPI.js.map} +1 -1
  86. package/dashboard/dist/assets/RowActions-BA9L9djf.js +2 -0
  87. package/dashboard/dist/assets/{RowActions--m4F6GW8.js.map → RowActions-BA9L9djf.js.map} +1 -1
  88. package/dashboard/dist/assets/RunAsSelector-Bvefon9B.js +2 -0
  89. package/dashboard/dist/assets/{RunAsSelector-DiGzSfiG.js.map → RunAsSelector-Bvefon9B.js.map} +1 -1
  90. package/dashboard/dist/assets/StatCard-DrdlUeQz.js +2 -0
  91. package/dashboard/dist/assets/{StatCard-DCPGFzCv.js.map → StatCard-DrdlUeQz.js.map} +1 -1
  92. package/dashboard/dist/assets/StatusBadge-DZ9137bI.js +2 -0
  93. package/dashboard/dist/assets/{StatusBadge-mk-dJwPT.js.map → StatusBadge-DZ9137bI.js.map} +1 -1
  94. package/dashboard/dist/assets/StickyPagination-CeQCzVIA.js +2 -0
  95. package/dashboard/dist/assets/{StickyPagination-Clm9H840.js.map → StickyPagination-CeQCzVIA.js.map} +1 -1
  96. package/dashboard/dist/assets/StreamMessageDetail-6wEm6o6t.js +2 -0
  97. package/dashboard/dist/assets/{StreamMessageDetail-Bikvs1Cz.js.map → StreamMessageDetail-6wEm6o6t.js.map} +1 -1
  98. package/dashboard/dist/assets/SwimlaneTimeline-C97Rldf5.js +2 -0
  99. package/dashboard/dist/assets/{SwimlaneTimeline-C9X3IVqI.js.map → SwimlaneTimeline-C97Rldf5.js.map} +1 -1
  100. package/dashboard/dist/assets/TagInput-CGGC3DTR.js +2 -0
  101. package/dashboard/dist/assets/{TagInput-DmJLnghg.js.map → TagInput-CGGC3DTR.js.map} +1 -1
  102. package/dashboard/dist/assets/TaskDetailPage-B09mLOCE.js +2 -0
  103. package/dashboard/dist/assets/TaskDetailPage-B09mLOCE.js.map +1 -0
  104. package/dashboard/dist/assets/TaskQueuePill-D6omQJNY.js +2 -0
  105. package/dashboard/dist/assets/{TaskQueuePill--1OX6egx.js.map → TaskQueuePill-D6omQJNY.js.map} +1 -1
  106. package/dashboard/dist/assets/TasksListPage-CQhiSGkN.js +2 -0
  107. package/dashboard/dist/assets/{TasksListPage-DcYV-GMA.js.map → TasksListPage-CQhiSGkN.js.map} +1 -1
  108. package/dashboard/dist/assets/TimeAgo-BkyeBcMF.js +2 -0
  109. package/dashboard/dist/assets/{TimeAgo-pYn3T9IZ.js.map → TimeAgo-BkyeBcMF.js.map} +1 -1
  110. package/dashboard/dist/assets/TimestampCell-DVp_UdEB.js +2 -0
  111. package/dashboard/dist/assets/{TimestampCell-BPMCscic.js.map → TimestampCell-DVp_UdEB.js.map} +1 -1
  112. package/dashboard/dist/assets/ToolPill-BW0iRwZu.js +2 -0
  113. package/dashboard/dist/assets/{ToolPill-BnF9lCUX.js.map → ToolPill-BW0iRwZu.js.map} +1 -1
  114. package/dashboard/dist/assets/ToolTestPanel-CZOuRP_i.js +2 -0
  115. package/dashboard/dist/assets/{ToolTestPanel-Bw4z_Tya.js.map → ToolTestPanel-CZOuRP_i.js.map} +1 -1
  116. package/dashboard/dist/assets/TopicDetailPage-0mvQde8R.js +9 -0
  117. package/dashboard/dist/assets/{TopicDetailPage-CtFztOnn.js.map → TopicDetailPage-0mvQde8R.js.map} +1 -1
  118. package/dashboard/dist/assets/TopicsPage-DkvsHLLe.js +2 -0
  119. package/dashboard/dist/assets/{TopicsPage-BXdc6pAU.js.map → TopicsPage-DkvsHLLe.js.map} +1 -1
  120. package/dashboard/dist/assets/UserName-EaD_Tz9y.js +2 -0
  121. package/dashboard/dist/assets/{UserName-R96NG6xB.js.map → UserName-EaD_Tz9y.js.map} +1 -1
  122. package/dashboard/dist/assets/WorkflowExecutionPage-CjMSQ9Bb.js +2 -0
  123. package/dashboard/dist/assets/{WorkflowExecutionPage-DmRJabMQ.js.map → WorkflowExecutionPage-CjMSQ9Bb.js.map} +1 -1
  124. package/dashboard/dist/assets/WorkflowPill-BtNBSplz.js +2 -0
  125. package/dashboard/dist/assets/{WorkflowPill-Cc2MlYbB.js.map → WorkflowPill-BtNBSplz.js.map} +1 -1
  126. package/dashboard/dist/assets/WorkflowsDashboard-BgUz_jO6.js +2 -0
  127. package/dashboard/dist/assets/WorkflowsDashboard-BgUz_jO6.js.map +1 -0
  128. package/dashboard/dist/assets/WorkflowsOverview-BzUjUfAz.js +2 -0
  129. package/dashboard/dist/assets/{WorkflowsOverview-BhgE0RS8.js.map → WorkflowsOverview-BzUjUfAz.js.map} +1 -1
  130. package/dashboard/dist/assets/YamlWorkflowDetailPage-C48Ui513.js +33 -0
  131. package/dashboard/dist/assets/{YamlWorkflowDetailPage-CvIgB5y7.js.map → YamlWorkflowDetailPage-C48Ui513.js.map} +1 -1
  132. package/dashboard/dist/assets/YamlWorkflowsPage-CQ-dk84N.js +2 -0
  133. package/dashboard/dist/assets/YamlWorkflowsPage-CQ-dk84N.js.map +1 -0
  134. package/dashboard/dist/assets/{agents-BpYMwrsB.js → agents-O1GlQE9p.js} +2 -2
  135. package/dashboard/dist/assets/{agents-BpYMwrsB.js.map → agents-O1GlQE9p.js.map} +1 -1
  136. package/dashboard/dist/assets/{bots-DI6Wqp5X.js → bots-DB5Z7MEk.js} +2 -2
  137. package/dashboard/dist/assets/{bots-DI6Wqp5X.js.map → bots-DB5Z7MEk.js.map} +1 -1
  138. package/dashboard/dist/assets/capabilities-Du9EfNdT.js +2 -0
  139. package/dashboard/dist/assets/{capabilities-BKZZb8eM.js.map → capabilities-Du9EfNdT.js.map} +1 -1
  140. package/dashboard/dist/assets/{controlplane-Djshb7fm.js → controlplane-ku4V2nVk.js} +2 -2
  141. package/dashboard/dist/assets/{controlplane-Djshb7fm.js.map → controlplane-ku4V2nVk.js.map} +1 -1
  142. package/dashboard/dist/assets/escalation-columns-C-xaR_Qg.js +2 -0
  143. package/dashboard/dist/assets/{escalation-columns-CyLzgPkz.js.map → escalation-columns-C-xaR_Qg.js.map} +1 -1
  144. package/dashboard/dist/assets/escalation-oVVz7Lw2.js +2 -0
  145. package/dashboard/dist/assets/{escalation-D8mrXtjS.js.map → escalation-oVVz7Lw2.js.map} +1 -1
  146. package/dashboard/dist/assets/index-61yKjTkk.js +2 -0
  147. package/dashboard/dist/assets/{index-DkbnD-Te.js.map → index-61yKjTkk.js.map} +1 -1
  148. package/dashboard/dist/assets/index-Bcgsf2yD.js +2 -0
  149. package/dashboard/dist/assets/{index-xn9fmkHC.js.map → index-Bcgsf2yD.js.map} +1 -1
  150. package/dashboard/dist/assets/index-BdqKh0UK.css +1 -0
  151. package/dashboard/dist/assets/index-BwXtXaw8.js +2 -0
  152. package/dashboard/dist/assets/{index-CwAmiy_j.js.map → index-BwXtXaw8.js.map} +1 -1
  153. package/dashboard/dist/assets/index-CAzFU1rn.js +9 -0
  154. package/dashboard/dist/assets/{index-Y6yj36QR.js.map → index-CAzFU1rn.js.map} +1 -1
  155. package/dashboard/dist/assets/index-CxlsLEr1.js +2 -0
  156. package/dashboard/dist/assets/{index-CphzO7b8.js.map → index-CxlsLEr1.js.map} +1 -1
  157. package/dashboard/dist/assets/index-CyXilW90.js +6 -0
  158. package/dashboard/dist/assets/{index-BfxiRwk2.js.map → index-CyXilW90.js.map} +1 -1
  159. package/dashboard/dist/assets/index-D0bDVU2a.js +6 -0
  160. package/dashboard/dist/assets/{index-eshNd6NY.js.map → index-D0bDVU2a.js.map} +1 -1
  161. package/dashboard/dist/assets/index-DcZDyLHC.js +2 -0
  162. package/dashboard/dist/assets/{index-yxnQew1X.js.map → index-DcZDyLHC.js.map} +1 -1
  163. package/dashboard/dist/assets/index-DgAmkmtv.js +2 -0
  164. package/dashboard/dist/assets/{index-B5MAG4Uv.js.map → index-DgAmkmtv.js.map} +1 -1
  165. package/dashboard/dist/assets/index-DkZnXWTA.js +2 -0
  166. package/dashboard/dist/assets/{index-CJb3dXku.js.map → index-DkZnXWTA.js.map} +1 -1
  167. package/dashboard/dist/assets/index-DsKK1fCc.js +2 -0
  168. package/dashboard/dist/assets/{index-CQtv2rj6.js.map → index-DsKK1fCc.js.map} +1 -1
  169. package/dashboard/dist/assets/index-MbEPoyTe.js +63 -0
  170. package/dashboard/dist/assets/index-MbEPoyTe.js.map +1 -0
  171. package/dashboard/dist/assets/index-aHhMmZ0W.js +2 -0
  172. package/dashboard/dist/assets/{index-C71I-f5G.js.map → index-aHhMmZ0W.js.map} +1 -1
  173. package/dashboard/dist/assets/{knowledge-C_1r0faY.js → knowledge-CTjJVvIG.js} +2 -2
  174. package/dashboard/dist/assets/{knowledge-C_1r0faY.js.map → knowledge-CTjJVvIG.js.map} +1 -1
  175. package/dashboard/dist/assets/{mcp-BtG54ZAx.js → mcp-CsHkygRS.js} +2 -2
  176. package/dashboard/dist/assets/{mcp-BtG54ZAx.js.map → mcp-CsHkygRS.js.map} +1 -1
  177. package/dashboard/dist/assets/{mcp-query-CSdQWxmv.js → mcp-query-BCt4tpjO.js} +2 -2
  178. package/dashboard/dist/assets/{mcp-query-CSdQWxmv.js.map → mcp-query-BCt4tpjO.js.map} +1 -1
  179. package/dashboard/dist/assets/{pipelines-DVkwxN64.js → pipelines-BpGmuS5V.js} +2 -2
  180. package/dashboard/dist/assets/{pipelines-DVkwxN64.js.map → pipelines-BpGmuS5V.js.map} +1 -1
  181. package/dashboard/dist/assets/roles-lHLgLwOY.js +2 -0
  182. package/dashboard/dist/assets/{roles-CpRcUIMm.js.map → roles-lHLgLwOY.js.map} +1 -1
  183. package/dashboard/dist/assets/tasks-BHfimh-E.js +2 -0
  184. package/dashboard/dist/assets/{tasks-DNdvW5H6.js.map → tasks-BHfimh-E.js.map} +1 -1
  185. package/dashboard/dist/assets/{topics-DNC77Chw.js → topics-BW2cS79q.js} +2 -2
  186. package/dashboard/dist/assets/{topics-DNC77Chw.js.map → topics-BW2cS79q.js.map} +1 -1
  187. package/dashboard/dist/assets/{useCollapsedSections-CGNA5oKV.js → useCollapsedSections-BU5HULGs.js} +2 -2
  188. package/dashboard/dist/assets/{useCollapsedSections-CGNA5oKV.js.map → useCollapsedSections-BU5HULGs.js.map} +1 -1
  189. package/dashboard/dist/assets/{useDebouncedValue-DmL3uNt_.js → useDebouncedValue-BA5S7V54.js} +2 -2
  190. package/dashboard/dist/assets/{useDebouncedValue-DmL3uNt_.js.map → useDebouncedValue-BA5S7V54.js.map} +1 -1
  191. package/dashboard/dist/assets/{useEventHooks-CUUeBSH1.js → useEventHooks-CeOIM1Ix.js} +2 -2
  192. package/dashboard/dist/assets/{useEventHooks-CUUeBSH1.js.map → useEventHooks-CeOIM1Ix.js.map} +1 -1
  193. package/dashboard/dist/assets/{useFilterParams-Ch-a71bE.js → useFilterParams-x-Dg0Vgz.js} +2 -2
  194. package/dashboard/dist/assets/{useFilterParams-Ch-a71bE.js.map → useFilterParams-x-Dg0Vgz.js.map} +1 -1
  195. package/dashboard/dist/assets/{useNamespace-D-AjLnPK.js → useNamespace-CEVLPGGY.js} +2 -2
  196. package/dashboard/dist/assets/{useNamespace-D-AjLnPK.js.map → useNamespace-CEVLPGGY.js.map} +1 -1
  197. package/dashboard/dist/assets/{useYamlActivityEvents-DRdetOb_.js → useYamlActivityEvents-DdRNcy7s.js} +2 -2
  198. package/dashboard/dist/assets/{useYamlActivityEvents-DRdetOb_.js.map → useYamlActivityEvents-DdRNcy7s.js.map} +1 -1
  199. package/dashboard/dist/assets/{users-BUgdEsec.js → users-CAih5Fty.js} +2 -2
  200. package/dashboard/dist/assets/{users-BUgdEsec.js.map → users-CAih5Fty.js.map} +1 -1
  201. package/dashboard/dist/assets/{vendor-icons-CNyYGNsk.js → vendor-icons-DOIDKgo6.js} +116 -121
  202. package/dashboard/dist/assets/{vendor-icons-CNyYGNsk.js.map → vendor-icons-DOIDKgo6.js.map} +1 -1
  203. package/dashboard/dist/assets/vendor-query-B2UbickB.js +18 -0
  204. package/dashboard/dist/assets/vendor-query-B2UbickB.js.map +1 -0
  205. package/dashboard/dist/assets/vendor-react-CXumBFUA.js +22 -0
  206. package/dashboard/dist/assets/vendor-react-CXumBFUA.js.map +1 -0
  207. package/dashboard/dist/assets/{workflows-BfyR5VJt.js → workflows-C_gCwB9q.js} +2 -2
  208. package/dashboard/dist/assets/{workflows-BfyR5VJt.js.map → workflows-C_gCwB9q.js.map} +1 -1
  209. package/dashboard/dist/assets/{yaml-workflows-Bz7yEnhl.js → yaml-workflows-CPabf8Sf.js} +2 -2
  210. package/dashboard/dist/assets/{yaml-workflows-Bz7yEnhl.js.map → yaml-workflows-CPabf8Sf.js.map} +1 -1
  211. package/dashboard/dist/index.html +5 -5
  212. package/docs/dashboard.md +58 -42
  213. package/package.json +2 -1
  214. package/dashboard/dist/assets/AdminDashboard-Ck5-jV9T.js +0 -2
  215. package/dashboard/dist/assets/AgentConfigPage-DFiXRBWs.js +0 -16
  216. package/dashboard/dist/assets/AgentDetailPage-BBgM_pMe.js +0 -4
  217. package/dashboard/dist/assets/AgentsPage-DxwFuedf.js +0 -2
  218. package/dashboard/dist/assets/AvailableEscalationsPage-DNQbeIcn.js +0 -2
  219. package/dashboard/dist/assets/BotPicker-mqwKVOE3.js +0 -2
  220. package/dashboard/dist/assets/CapabilitiesPage-Biffm0kW.js +0 -2
  221. package/dashboard/dist/assets/CollapsibleSection-Bn6Ks79X.js +0 -2
  222. package/dashboard/dist/assets/ConfirmDeleteModal-no0-c_1G.js +0 -2
  223. package/dashboard/dist/assets/CopyableId-DS6IDMIX.js +0 -2
  224. package/dashboard/dist/assets/CredentialsPage-C3NyncEB.js +0 -2
  225. package/dashboard/dist/assets/CronLabel-DQWBx57H.js +0 -2
  226. package/dashboard/dist/assets/CustomDurationPicker-DV42oZ1G.js +0 -2
  227. package/dashboard/dist/assets/DataTable-Bf4dgxll.js +0 -2
  228. package/dashboard/dist/assets/DropZone-CTSXBb3c.js +0 -2
  229. package/dashboard/dist/assets/ElapsedCell-roy4G5SQ.js +0 -2
  230. package/dashboard/dist/assets/EmptyState-CLVm9KmA.js +0 -2
  231. package/dashboard/dist/assets/EscalationSchemaPage-DulCCxea.js +0 -9
  232. package/dashboard/dist/assets/EscalationsOverview-DDwxn_mT.js +0 -2
  233. package/dashboard/dist/assets/EventTable-BaLNvCew.js +0 -2
  234. package/dashboard/dist/assets/FilterBar-DEAbNQqp.js +0 -2
  235. package/dashboard/dist/assets/GraphInvokePage-BmM8r0R3.js +0 -2
  236. package/dashboard/dist/assets/HomePage-Ds3PzWWr.js +0 -2
  237. package/dashboard/dist/assets/HomePage-Ds3PzWWr.js.map +0 -1
  238. package/dashboard/dist/assets/ListToolbar-Dviaskni.js +0 -2
  239. package/dashboard/dist/assets/McpOverview-BBm66wbF.js +0 -2
  240. package/dashboard/dist/assets/McpQueryDetailPage-B6GJOMcz.js +0 -5
  241. package/dashboard/dist/assets/McpQueryPage-C-8nIdBL.js +0 -2
  242. package/dashboard/dist/assets/McpRunDetailPage-CSq_0qqi.js +0 -2
  243. package/dashboard/dist/assets/McpRunsPage-BdK8ahX7.js +0 -2
  244. package/dashboard/dist/assets/McpRunsPage-BdK8ahX7.js.map +0 -1
  245. package/dashboard/dist/assets/Modal-C6HI6btY.js +0 -2
  246. package/dashboard/dist/assets/NamespacePill-eGsbJBFa.js +0 -2
  247. package/dashboard/dist/assets/OperationsPage-DODPFmf2.js +0 -2
  248. package/dashboard/dist/assets/OperationsPage-DODPFmf2.js.map +0 -1
  249. package/dashboard/dist/assets/OperatorDashboard-BbmgsOmQ.js +0 -2
  250. package/dashboard/dist/assets/PageHeader-DcgGV0Y2.js +0 -2
  251. package/dashboard/dist/assets/PageHeaderWithStats-Cf8TYFRh.js +0 -2
  252. package/dashboard/dist/assets/PriorityBadge-a7u8C9uY.js +0 -2
  253. package/dashboard/dist/assets/ProcessDetailPage-D80w44rV.js +0 -2
  254. package/dashboard/dist/assets/ProcessesListPage-BjW5xUkv.js +0 -2
  255. package/dashboard/dist/assets/RoleDetailPage-oahg0cdT.js +0 -11
  256. package/dashboard/dist/assets/RolePill-BAeaQUXX.js +0 -2
  257. package/dashboard/dist/assets/RolesPage-BI1Xtqq_.js +0 -2
  258. package/dashboard/dist/assets/RowActions--m4F6GW8.js +0 -2
  259. package/dashboard/dist/assets/RunAsSelector-DiGzSfiG.js +0 -2
  260. package/dashboard/dist/assets/StatCard-DCPGFzCv.js +0 -2
  261. package/dashboard/dist/assets/StatusBadge-mk-dJwPT.js +0 -2
  262. package/dashboard/dist/assets/StickyPagination-Clm9H840.js +0 -2
  263. package/dashboard/dist/assets/StreamMessageDetail-Bikvs1Cz.js +0 -2
  264. package/dashboard/dist/assets/SwimlaneTimeline-C9X3IVqI.js +0 -2
  265. package/dashboard/dist/assets/TagInput-DmJLnghg.js +0 -2
  266. package/dashboard/dist/assets/TaskDetailPage-C0tbiUi7.js +0 -2
  267. package/dashboard/dist/assets/TaskDetailPage-C0tbiUi7.js.map +0 -1
  268. package/dashboard/dist/assets/TaskQueuePill--1OX6egx.js +0 -2
  269. package/dashboard/dist/assets/TasksListPage-DcYV-GMA.js +0 -2
  270. package/dashboard/dist/assets/TimeAgo-pYn3T9IZ.js +0 -2
  271. package/dashboard/dist/assets/TimestampCell-BPMCscic.js +0 -2
  272. package/dashboard/dist/assets/ToolPill-BnF9lCUX.js +0 -2
  273. package/dashboard/dist/assets/ToolTestPanel-Bw4z_Tya.js +0 -2
  274. package/dashboard/dist/assets/TopicDetailPage-CtFztOnn.js +0 -9
  275. package/dashboard/dist/assets/TopicsPage-BXdc6pAU.js +0 -2
  276. package/dashboard/dist/assets/UserName-R96NG6xB.js +0 -2
  277. package/dashboard/dist/assets/WorkflowExecutionPage-DmRJabMQ.js +0 -2
  278. package/dashboard/dist/assets/WorkflowPill-Cc2MlYbB.js +0 -2
  279. package/dashboard/dist/assets/WorkflowsDashboard-uLU5ZToY.js +0 -2
  280. package/dashboard/dist/assets/WorkflowsDashboard-uLU5ZToY.js.map +0 -1
  281. package/dashboard/dist/assets/WorkflowsOverview-BhgE0RS8.js +0 -2
  282. package/dashboard/dist/assets/YamlWorkflowDetailPage-CvIgB5y7.js +0 -33
  283. package/dashboard/dist/assets/YamlWorkflowsPage-DWnsgl2v.js +0 -2
  284. package/dashboard/dist/assets/YamlWorkflowsPage-DWnsgl2v.js.map +0 -1
  285. package/dashboard/dist/assets/capabilities-BKZZb8eM.js +0 -2
  286. package/dashboard/dist/assets/escalation-D8mrXtjS.js +0 -2
  287. package/dashboard/dist/assets/escalation-columns-CyLzgPkz.js +0 -2
  288. package/dashboard/dist/assets/index-B5MAG4Uv.js +0 -2
  289. package/dashboard/dist/assets/index-BfxiRwk2.js +0 -6
  290. package/dashboard/dist/assets/index-C71I-f5G.js +0 -2
  291. package/dashboard/dist/assets/index-CC4g-6QE.css +0 -1
  292. package/dashboard/dist/assets/index-CJb3dXku.js +0 -2
  293. package/dashboard/dist/assets/index-CQtv2rj6.js +0 -2
  294. package/dashboard/dist/assets/index-CphzO7b8.js +0 -2
  295. package/dashboard/dist/assets/index-CwAmiy_j.js +0 -2
  296. package/dashboard/dist/assets/index-DgCS2Frb.js +0 -281
  297. package/dashboard/dist/assets/index-DgCS2Frb.js.map +0 -1
  298. package/dashboard/dist/assets/index-DkbnD-Te.js +0 -2
  299. package/dashboard/dist/assets/index-Y6yj36QR.js +0 -9
  300. package/dashboard/dist/assets/index-eshNd6NY.js +0 -6
  301. package/dashboard/dist/assets/index-xn9fmkHC.js +0 -2
  302. package/dashboard/dist/assets/index-yxnQew1X.js +0 -2
  303. package/dashboard/dist/assets/roles-CpRcUIMm.js +0 -2
  304. package/dashboard/dist/assets/tasks-DNdvW5H6.js +0 -2
  305. package/dashboard/dist/assets/vendor-query-DLp59M9_.js +0 -35
  306. package/dashboard/dist/assets/vendor-query-DLp59M9_.js.map +0 -1
  307. package/dashboard/dist/assets/vendor-react-zA2lQFDs.js +0 -26
  308. package/dashboard/dist/assets/vendor-react-zA2lQFDs.js.map +0 -1
@@ -1,2 +0,0 @@
1
- import{j as a,b as m}from"./index-DgCS2Frb.js";function r({date:e,className:o=""}){return a.jsxDEV(m,{date:e,format:"relative",className:o},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/TimeAgo.tsx",lineNumber:8,columnNumber:10},this)}export{r as T};
2
- //# sourceMappingURL=TimeAgo-pYn3T9IZ.js.map
@@ -1,2 +0,0 @@
1
- import{j as e,b as s}from"./index-DgCS2Frb.js";function a({date:m}){return e.jsxDEV("div",{children:[e.jsxDEV(s,{date:m,format:"relative"},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/TimestampCell.tsx",lineNumber:14,columnNumber:7},this),e.jsxDEV("p",{className:"text-[9px] font-mono text-text-secondary mt-0.5 whitespace-nowrap",children:[new Date(m).toISOString().replace("T"," ").slice(0,19)," UTC"]},void 0,!0,{fileName:"/app/dashboard/src/components/common/display/TimestampCell.tsx",lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/display/TimestampCell.tsx",lineNumber:13,columnNumber:5},this)}export{a as T};
2
- //# sourceMappingURL=TimestampCell-BPMCscic.js.map
@@ -1,2 +0,0 @@
1
- import{j as s}from"./index-DgCS2Frb.js";import{ab as a}from"./vendor-icons-CNyYGNsk.js";function l({name:o,size:e="sm"}){const t=e==="md"?"px-2 py-0.5 text-[12px] gap-1.5":"px-1.5 py-px text-[11px] gap-1",n=e==="md"?"w-2.5 h-2.5":"w-2 h-2";return s.jsxDEV("span",{className:`inline-flex items-center ${t} font-mono text-text-secondary bg-surface-sunken/50 rounded-md`,children:[s.jsxDEV(a,{className:`${n} shrink-0 text-text-quaternary`,strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/ToolPill.tsx",lineNumber:20,columnNumber:7},this),o]},void 0,!0,{fileName:"/app/dashboard/src/components/common/display/ToolPill.tsx",lineNumber:19,columnNumber:5},this)}export{l as T};
2
- //# sourceMappingURL=ToolPill-BnF9lCUX.js.map
@@ -1,2 +0,0 @@
1
- import{j as e,J as q}from"./index-DgCS2Frb.js";import{a as p}from"./vendor-query-DLp59M9_.js";import{h as O}from"./mcp-BtG54ZAx.js";import{R as A}from"./RunAsSelector-DiGzSfiG.js";import{T as L}from"./ToolPill-BnF9lCUX.js";import{t as y,ae as P,X as z,af as F,P as M,aa as W}from"./vendor-icons-CNyYGNsk.js";import{c as _,L as C}from"./vendor-react-zA2lQFDs.js";import{b as $}from"./helpers-DzO-OGPe.js";function B({name:t,serverId:n,short:a=!0}){const c=_(),o=a?t.replace(/^long-tail-/,""):t;return n?e.jsxDEV("button",{onClick:l=>{l.stopPropagation(),c(`/mcp/servers/${n}`)},className:"group/srv inline-flex items-center gap-1 text-[11px] font-mono text-text-tertiary hover:text-accent transition-colors",title:t,children:[e.jsxDEV(y,{className:"w-2.5 h-2.5 shrink-0 text-text-quaternary group-hover/srv:text-accent",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/ServerName.tsx",lineNumber:27,columnNumber:9},this),o,e.jsxDEV(P,{className:"w-2 h-2 shrink-0 invisible group-hover/srv:visible text-accent",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/ServerName.tsx",lineNumber:29,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/display/ServerName.tsx",lineNumber:22,columnNumber:7},this):e.jsxDEV("span",{className:"inline-flex items-center gap-1 text-[11px] font-mono text-text-tertiary",title:t,children:[e.jsxDEV(y,{className:"w-2.5 h-2.5 shrink-0 text-text-quaternary",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/ServerName.tsx",lineNumber:36,columnNumber:7},this),o]},void 0,!0,{fileName:"/app/dashboard/src/components/common/display/ServerName.tsx",lineNumber:35,columnNumber:5},this)}function I({error:t}){const n=t instanceof Error?t.message:"";return n.startsWith("No credential found for provider")?e.jsxDEV("div",{className:"bg-status-warning/10 border border-status-warning/30 rounded-md px-3 py-2 flex items-start gap-2",children:[e.jsxDEV(W,{size:14,className:"text-status-warning mt-0.5 shrink-0"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:17,columnNumber:9},this),e.jsxDEV("div",{children:[e.jsxDEV("p",{className:"text-[11px] font-medium text-text-primary mb-0.5",children:"Credential required"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:19,columnNumber:11},this),e.jsxDEV("p",{className:"text-[11px] text-text-secondary mb-1",children:n},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:20,columnNumber:11},this),e.jsxDEV(C,{to:"/credentials",className:"text-[11px] text-accent hover:underline inline-flex items-center gap-1",children:["Go to Credentials ",e.jsxDEV(P,{size:10},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:22,columnNumber:31},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:21,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:18,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:16,columnNumber:7},this):e.jsxDEV("div",{className:"bg-status-error/10 border border-status-error/20 rounded-md px-3 py-2",children:e.jsxDEV("p",{className:"text-[11px] text-status-error",children:n||"Tool call failed"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:30,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:29,columnNumber:5},this)}function U({data:t}){const n=t==null?void 0:t.result,a=n==null?void 0:n.job_id,c=(n==null?void 0:n.namespace)||"";return a?e.jsxDEV(C,{to:`/mcp/executions/${encodeURIComponent(a)}?namespace=${encodeURIComponent(c)}`,className:"inline-flex items-center gap-1.5 text-xs text-accent hover:underline",children:[e.jsxDEV(P,{size:12},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:45,columnNumber:7},this),"View Execution"]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:41,columnNumber:5},this):null}const f="input text-xs",S="label";function K({value:t,onChange:n,className:a}){const[c,o]=p.useState(t.join(", ")),l=()=>n(c.split(",").map(i=>i.trim()).filter(Boolean));return p.useEffect(()=>{o(t.join(", "))},[JSON.stringify(t)]),e.jsxDEV("input",{type:"text",value:c,onChange:i=>o(i.target.value),onBlur:l,onKeyDown:i=>{i.key==="Enter"&&(i.preventDefault(),l())},placeholder:"comma-separated values",className:a},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:68,columnNumber:5},this)}function te({serverId:t,serverName:n,tool:a,onClose:c}){const o=O(),[l,i]=p.useState(!1),[u,N]=p.useState({}),[T,v]=p.useState(""),[D,j]=p.useState(""),[E,w]=p.useState("");p.useEffect(()=>{const s=$(a.inputSchema);N(s),v(JSON.stringify(s,null,2)),i(!1),j(""),o.reset()},[a.name,t]);const R=!!o.data||!!o.error,k=()=>{if(!l)v(JSON.stringify(u,null,2));else try{N(JSON.parse(T))}catch{}i(!l)},J=()=>{j(""),o.reset();let s;if(l)try{s=JSON.parse(T)}catch{j("Invalid JSON");return}else s={...u};o.mutate({serverId:t,toolName:a.name,arguments:s,...E?{execute_as:E}:{}})};return e.jsxDEV("div",{className:"border-l border-surface-border bg-surface-raised",children:[e.jsxDEV("div",{className:"flex items-start justify-between px-4 py-3 border-b border-surface-border/50 shrink-0",children:[e.jsxDEV("div",{className:"min-w-0 space-y-1",children:[e.jsxDEV(B,{name:n,serverId:t,short:!1},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:130,columnNumber:11},this),e.jsxDEV("div",{children:e.jsxDEV(L,{name:a.name,size:"md"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:131,columnNumber:16},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:131,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:129,columnNumber:9},this),e.jsxDEV("button",{onClick:c,className:"p-1 text-text-quaternary hover:text-text-primary shrink-0 ml-2",children:e.jsxDEV(z,{className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:134,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:133,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:128,columnNumber:7},this),e.jsxDEV("div",{className:"px-4 py-4 space-y-5",children:[a.description&&e.jsxDEV("div",{className:"border-l-2 border-accent/30 pl-3 py-1",children:e.jsxDEV("p",{className:"text-[11px] text-text-secondary leading-relaxed italic",children:a.description},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:142,columnNumber:13},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:141,columnNumber:11},this),e.jsxDEV("div",{children:[e.jsxDEV("label",{className:S,children:"run as"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:148,columnNumber:11},this),e.jsxDEV(A,{selected:E,onChange:w},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:149,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:147,columnNumber:9},this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[e.jsxDEV("span",{className:"text-[10px] text-text-quaternary",children:"Parameters"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:155,columnNumber:13},this),e.jsxDEV("button",{onClick:k,className:"text-[10px] text-accent/70 hover:text-accent transition-colors",children:l?"Form view":"JSON view"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:156,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:154,columnNumber:11},this),l?e.jsxDEV("textarea",{value:T,onChange:s=>v(s.target.value),className:"input-json w-full",rows:6,spellCheck:!1},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:162,columnNumber:13},this):e.jsxDEV("div",{className:"space-y-3",children:[Object.entries(u).sort(([s],[r])=>{var h;const m=((h=a.inputSchema)==null?void 0:h.required)??[],b=m.indexOf(s),x=m.indexOf(r);return b!==-1&&x!==-1?b-x:b!==-1?-1:x!==-1?1:s.localeCompare(r)}).map(([s,r])=>{var h,V,g;const m=(V=(h=a.inputSchema)==null?void 0:h.properties)==null?void 0:V[s],b=m==null?void 0:m.description,x=(((g=a.inputSchema)==null?void 0:g.required)??[]).includes(s);return e.jsxDEV("div",{children:[e.jsxDEV("label",{className:S,children:[s,x&&e.jsxDEV("span",{className:"text-accent/50 ml-0.5",children:"*"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:187,columnNumber:38},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:185,columnNumber:21},this),typeof r=="boolean"?e.jsxDEV("select",{value:String(r),onChange:d=>N({...u,[s]:d.target.value==="true"}),className:f,children:[e.jsxDEV("option",{value:"true",children:"true"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:195,columnNumber:25},this),e.jsxDEV("option",{value:"false",children:"false"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:196,columnNumber:25},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:190,columnNumber:23},this):Array.isArray(r)?e.jsxDEV(K,{value:r,onChange:d=>N({...u,[s]:d}),className:f},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:199,columnNumber:23},this):typeof r=="object"&&r!==null?e.jsxDEV("textarea",{value:JSON.stringify(r,null,2),onChange:d=>{try{N({...u,[s]:JSON.parse(d.target.value)})}catch{}},className:`${f} min-h-[48px] font-mono resize-y`},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:205,columnNumber:23},this):e.jsxDEV("input",{type:typeof r=="number"?"number":"text",value:String(r??""),onChange:d=>N({...u,[s]:typeof r=="number"?Number(d.target.value):d.target.value}),className:f,placeholder:(m==null?void 0:m.type)==="string"&&(m==null?void 0:m.example)||""},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:211,columnNumber:23},this),b&&e.jsxDEV("p",{className:"text-[9px] text-text-quaternary/70 mt-0.5 leading-snug",children:b},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:219,columnNumber:30},this)]},s,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:184,columnNumber:19},this)}),Object.keys(u).length===0&&e.jsxDEV("p",{className:"text-[11px] text-text-quaternary",children:"No parameters"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:224,columnNumber:17},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:170,columnNumber:13},this),D&&e.jsxDEV("p",{className:"text-[11px] text-status-error mt-1",children:D},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:228,columnNumber:25},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:153,columnNumber:9},this),e.jsxDEV("button",{onClick:J,disabled:o.isPending,className:"btn-primary text-xs disabled:opacity-50 inline-flex items-center gap-1.5",children:o.isPending?"Running...":R?e.jsxDEV(e.Fragment,{children:[e.jsxDEV(F,{size:12},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:240,columnNumber:15},this)," Re-run"]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:240,columnNumber:13},this):e.jsxDEV(e.Fragment,{children:[e.jsxDEV(M,{size:12},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:242,columnNumber:15},this)," Run"]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:242,columnNumber:13},this)},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:232,columnNumber:9},this),o.isPending&&e.jsxDEV("div",{className:"animate-pulse",children:[e.jsxDEV("p",{className:"text-[10px] text-text-quaternary mb-1",children:"Response"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:249,columnNumber:13},this),e.jsxDEV("div",{className:"h-20 bg-surface-sunken/50 rounded-md"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:250,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:248,columnNumber:11},this),o.data?e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(q,{data:o.data,label:"Response",defaultCollapsed:!0},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:255,columnNumber:13},this),e.jsxDEV(U,{data:o.data},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:256,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:254,columnNumber:11},this):null,o.error?e.jsxDEV("div",{children:[e.jsxDEV("p",{className:"text-[10px] text-text-quaternary mb-1",children:"Response"},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:261,columnNumber:13},this),e.jsxDEV(I,{error:o.error},void 0,!1,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:262,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:260,columnNumber:11},this):null]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:139,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/components/common/test/ToolTestPanel.tsx",lineNumber:126,columnNumber:5},this)}export{B as S,te as T};
2
- //# sourceMappingURL=ToolTestPanel-Bw4z_Tya.js.map
@@ -1,9 +0,0 @@
1
- import{u as be,j as e,b as v,J as Y}from"./index-DgCS2Frb.js";import{a as t}from"./vendor-query-DLp59M9_.js";import{a as xe,b as he,c as Ne,d as ge}from"./topics-DNC77Chw.js";import{L as fe}from"./ListToolbar-Dviaskni.js";import{R as P,B as De,Q as ve,p as Pe,aX as Ee,X as Te,T as je,g as Ve,aY as ye,b as G,a9 as ke,q as we}from"./vendor-icons-CNyYGNsk.js";import{e as Se,c as Ce}from"./vendor-react-zA2lQFDs.js";const We={task:"bg-status-active/10 text-status-active",workflow:"bg-accent/15 text-accent",escalation:"bg-status-warning/10 text-status-warning",activity:"bg-status-active/10 text-status-active",knowledge:"bg-accent/10 text-accent",agent:"bg-status-success/10 text-status-success",app:"bg-status-error/10 text-status-error",milestone:"bg-accent/10 text-accent"};function E({icon:n,color:b,children:m}){return e.jsxDEV("div",{className:"flex items-center gap-2 mb-3 pb-2 border-b border-surface-border",children:[e.jsxDEV(n,{className:`w-4 h-4 ${b}`,strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:24,columnNumber:7},this),e.jsxDEV("h2",{className:"section-h2",children:m},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:25,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:23,columnNumber:5},this)}function Ae(){var U,F,z,X;const{topic:n}=Se(),b=n?decodeURIComponent(n):null,m=Ce(),{data:a,isLoading:H,refetch:x,isFetching:K}=xe(b),{data:h}=be(),Z=(U=h==null?void 0:h.ai)!=null&&U.enabled?"agents":"automations",T=he(),ee=Ne(),c=ge(),[r,N]=t.useState(!1),[p,j]=t.useState(""),[V,y]=t.useState(()=>`evt-${Date.now()}-${Math.random().toString(16).slice(2,6)}`),[g,k]=t.useState(""),[w,ae]=t.useState("myWorkflow"),[S,se]=t.useState("wf-001"),[C,te]=t.useState("default"),[W,ie]=t.useState(""),[_,le]=t.useState("esc-001"),[q,oe]=t.useState("myActivity"),[I,O]=t.useState(""),[J,$]=t.useState(""),[f,R]=t.useState(""),[A,d]=t.useState("");if(H)return e.jsxDEV("div",{className:"animate-pulse space-y-4",children:[e.jsxDEV("div",{className:"h-8 bg-surface-sunken rounded w-48"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:60,columnNumber:53},this),e.jsxDEV("div",{className:"h-40 bg-surface-sunken rounded"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:60,columnNumber:107},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:60,columnNumber:12},this);if(!a)return e.jsxDEV("div",{className:"flex flex-col items-center justify-center py-20 text-center",children:[e.jsxDEV(P,{className:"w-12 h-12 text-text-quaternary mb-4",strokeWidth:1},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:66,columnNumber:9},this),e.jsxDEV("h2",{className:"text-lg font-medium text-text-primary mb-2",children:"Topic not found"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:67,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:65,columnNumber:7},this);const re=a.source==="system",M=!a.managed,ce=We[a.category]??"bg-surface-sunken text-text-tertiary",u=a.example_payload?JSON.stringify(a.example_payload,null,2):(F=a.payload_schema)!=null&&F.properties?JSON.stringify(Object.fromEntries(Object.keys(a.payload_schema.properties).map(s=>[s,""])),null,2):"{}",l=a.topic.startsWith("system.workflow.")||a.topic.startsWith("system.task.")?"workflow":a.topic.startsWith("system.escalation.")?"escalation":a.topic.startsWith("system.activity.")?"activity":"none",L=l==="workflow"||l==="escalation"||l==="activity",B=l==="workflow"||l==="escalation",D=(p||a.topic).split(".").pop()??"",Q=()=>{let s={};try{s=JSON.parse(g||u)}catch{}const o=(p||a.topic)!==a.topic?p||a.topic:void 0,i={id:V||void 0,source:"dashboard",data:s};return o&&(i.subject=o),L&&(i.workflowName=w,i.workflowId=S,i.taskQueue=C),B&&(i.status=W||D),l==="escalation"&&(i.escalationId=_),l==="activity"&&(i.activityName=q),i},pe=(()=>{const{subject:s,...o}=Q();return JSON.stringify({type:s||a.topic,timestamp:"<minted>",...o},null,2)})();!g&&u!=="{}"&&k(u),p||j(a.topic);const ne=()=>{O(a.description??""),$((a.tags??[]).join(", ")),R(a.payload_schema?JSON.stringify(a.payload_schema,null,2):""),d(""),N(!0)},me=()=>N(!1),de=()=>{const s=J.split(",").map(i=>i.trim()).filter(Boolean);let o;if(f.trim())try{o=JSON.parse(f),d("")}catch{d("Invalid JSON");return}T.mutate({topic:a.topic,description:I,tags:s,...o!==void 0?{payload_schema:o}:{}},{onSuccess:()=>{N(!1),x()}})},ue=()=>{confirm(`Delete topic "${a.topic}"?
2
-
3
- This removes it from the catalog. Active subscriptions are not affected.`)&&ee.mutate(a.topic,{onSuccess:()=>m("/topics")})};return e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"flex items-start justify-between mb-4",children:[e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"flex items-center gap-3 mb-1",children:[e.jsxDEV(P,{className:"w-5 h-5 text-accent",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:165,columnNumber:13},this),e.jsxDEV("h1",{className:"text-lg font-mono font-medium text-text-primary",children:a.topic},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:166,columnNumber:13},this),e.jsxDEV("button",{onClick:()=>{window.location.hash="#docs:topics.md"},className:"text-text-quaternary hover:text-accent transition-colors",title:"Topic docs",children:e.jsxDEV(De,{className:"w-4 h-4",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:168,columnNumber:15},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:167,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:164,columnNumber:11},this),!r&&a.description?e.jsxDEV("p",{className:"text-sm text-text-secondary leading-relaxed",children:a.description},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:172,columnNumber:13},this):r?null:e.jsxDEV("p",{className:"text-sm text-text-quaternary italic",children:"No description"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:174,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:163,columnNumber:9},this),e.jsxDEV("div",{className:"flex items-center gap-2 shrink-0",children:[!r&&M&&e.jsxDEV("button",{onClick:ne,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-md bg-accent text-text-inverse hover:bg-accent-hover transition-colors",children:[e.jsxDEV(ve,{className:"w-3 h-3"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:180,columnNumber:15},this)," Edit"]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:179,columnNumber:13},this),!r&&!re&&M&&e.jsxDEV("button",{onClick:ue,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-md text-status-error/60 hover:text-status-error hover:bg-status-error/10 transition-colors",children:[e.jsxDEV(Pe,{className:"w-3 h-3"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:185,columnNumber:15},this)," Delete"]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:184,columnNumber:13},this),r&&e.jsxDEV(e.Fragment,{children:[e.jsxDEV("button",{onClick:de,disabled:T.isPending,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-md bg-accent text-text-inverse hover:bg-accent-hover transition-colors",children:[e.jsxDEV(Ee,{className:"w-3 h-3"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:191,columnNumber:17},this)," Save"]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:190,columnNumber:15},this),e.jsxDEV("button",{onClick:me,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-md text-text-tertiary hover:text-text-primary hover:bg-surface-hover transition-colors",children:[e.jsxDEV(Te,{className:"w-3 h-3"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:194,columnNumber:17},this)," Cancel"]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:193,columnNumber:15},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:189,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:177,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:162,columnNumber:7},this),e.jsxDEV("div",{className:"bg-surface-sunken/50 rounded-md px-5 py-3 flex flex-wrap gap-x-6 gap-y-3 items-start mb-5 relative",children:[e.jsxDEV("div",{children:[e.jsxDEV("p",{className:"text-[9px] font-semibold uppercase tracking-widest text-text-tertiary mb-1",children:"Category"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:204,columnNumber:11},this),e.jsxDEV("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-[10px] font-medium ${ce}`,children:a.category},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:205,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:203,columnNumber:9},this),e.jsxDEV("div",{children:[e.jsxDEV("p",{className:"text-[9px] font-semibold uppercase tracking-widest text-text-tertiary mb-1",children:"Source"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:208,columnNumber:11},this),e.jsxDEV("span",{className:"text-xs font-mono text-text-secondary",children:a.source},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:209,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:207,columnNumber:9},this),((z=a.tags)==null?void 0:z.length)>0&&e.jsxDEV("div",{children:[e.jsxDEV("p",{className:"text-[9px] font-semibold uppercase tracking-widest text-text-tertiary mb-1",children:"Tags"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:213,columnNumber:13},this),e.jsxDEV("div",{className:"flex items-center gap-1.5",children:[e.jsxDEV(je,{className:"w-2.5 h-2.5 text-text-quaternary",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:215,columnNumber:15},this),a.tags.map(s=>e.jsxDEV("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-mono text-text-tertiary bg-surface-sunken",children:s},s,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:217,columnNumber:17},this))]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:214,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:212,columnNumber:11},this),e.jsxDEV("div",{children:[e.jsxDEV("p",{className:"text-[9px] font-semibold uppercase tracking-widest text-text-tertiary mb-1",children:"Created"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:223,columnNumber:11},this),e.jsxDEV("span",{className:"text-xs text-text-secondary",children:e.jsxDEV(v,{date:a.created_at},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:224,columnNumber:57},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:224,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:222,columnNumber:9},this),e.jsxDEV("div",{children:[e.jsxDEV("p",{className:"text-[9px] font-semibold uppercase tracking-widest text-text-tertiary mb-1",children:"Updated"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:227,columnNumber:11},this),e.jsxDEV("span",{className:"text-xs text-text-secondary",children:e.jsxDEV(v,{date:a.updated_at},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:228,columnNumber:57},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:228,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:226,columnNumber:9},this),a.last_seen_at&&e.jsxDEV("div",{children:[e.jsxDEV("p",{className:"text-[9px] font-semibold uppercase tracking-widest text-text-tertiary mb-1",children:"Last Seen"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:232,columnNumber:13},this),e.jsxDEV("span",{className:"text-xs text-text-secondary",children:e.jsxDEV(v,{date:a.last_seen_at},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:233,columnNumber:59},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:233,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:231,columnNumber:11},this),e.jsxDEV("div",{className:"ml-auto self-center",children:e.jsxDEV(fe,{onRefresh:()=>x(),isFetching:K,apiPath:`/topics/by-name/${encodeURIComponent(a.topic)}`},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:237,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:236,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:202,columnNumber:7},this),!r&&e.jsxDEV("div",{className:"grid grid-cols-3 gap-5",children:[e.jsxDEV("div",{className:"min-w-0",children:[e.jsxDEV(E,{icon:P,color:"text-accent",children:"Payload Schema"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:246,columnNumber:13},this),a.payload_schema?e.jsxDEV(Y,{data:a.payload_schema},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:248,columnNumber:15},this):e.jsxDEV("p",{className:"text-[11px] text-text-quaternary",children:"No schema defined. Click Edit to add one."},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:250,columnNumber:15},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:245,columnNumber:11},this),e.jsxDEV("div",{className:"min-w-0",children:[e.jsxDEV(E,{icon:Ve,color:"text-accent",children:"Example Payload"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:256,columnNumber:13},this),a.example_payload?e.jsxDEV(Y,{data:a.example_payload},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:258,columnNumber:15},this):e.jsxDEV("p",{className:"text-[11px] text-text-quaternary",children:"No example defined. Click Edit to add one."},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:260,columnNumber:15},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:255,columnNumber:11},this),e.jsxDEV("div",{className:"min-w-0 space-y-4 animate-page-enter",children:[e.jsxDEV(E,{icon:ye,color:"text-accent",children:"Test"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:266,columnNumber:13},this),e.jsxDEV("div",{className:"bg-surface-sunken/30 rounded-md px-4 py-3",children:[e.jsxDEV("div",{className:"flex items-center gap-2 mb-2",children:[e.jsxDEV(G,{className:"w-3.5 h-3.5 text-status-success",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:270,columnNumber:17},this),e.jsxDEV("h2",{className:"text-[10px] font-semibold uppercase tracking-widest text-text-tertiary",children:"Target Subscribers"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:271,columnNumber:17},this),e.jsxDEV("span",{className:"relative group ml-auto",children:[e.jsxDEV(ke,{className:"w-3 h-3 text-text-quaternary cursor-help",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:275,columnNumber:19},this),e.jsxDEV("span",{className:"absolute right-0 top-full mt-1 w-48 p-2 rounded bg-surface-raised border border-surface-border shadow-lg text-[10px] text-text-secondary leading-relaxed hidden group-hover:block z-10",children:"Publishing a test event is live — these subscribers will receive and process the payload."},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:276,columnNumber:19},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:274,columnNumber:17},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:269,columnNumber:15},this),(X=a.subscribers)!=null&&X.length?e.jsxDEV("div",{className:"space-y-0.5",children:a.subscribers.map(s=>e.jsxDEV("button",{onClick:()=>m(`/agents/${s.agent_id}`),className:"flex items-center gap-2 w-full text-left py-1 rounded hover:bg-surface-hover/50 transition-colors",children:[e.jsxDEV(G,{className:"w-2.5 h-2.5 text-status-success shrink-0",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:289,columnNumber:23},this),e.jsxDEV("span",{className:"text-[11px] text-text-primary hover:text-accent transition-colors truncate",children:s.agent_name},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:290,columnNumber:23},this),e.jsxDEV("span",{className:"text-[9px] font-mono text-text-quaternary ml-auto shrink-0",children:s.reaction_type},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:291,columnNumber:23},this)]},s.id,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:284,columnNumber:21},this))},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:282,columnNumber:17},this):e.jsxDEV("p",{className:"text-[11px] text-text-quaternary",children:["No ",Z," subscribed."]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:296,columnNumber:17},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:268,columnNumber:13},this),e.jsxDEV("div",{className:"sticky top-16 bg-surface-sunken/40 rounded-md p-4",children:[e.jsxDEV("div",{className:"flex items-center gap-2 mb-3",children:[e.jsxDEV(we,{className:"w-3.5 h-3.5 text-accent",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:303,columnNumber:17},this),e.jsxDEV("h2",{className:"text-[10px] font-semibold uppercase tracking-widest text-text-tertiary",children:"Publish"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:304,columnNumber:17},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:302,columnNumber:15},this),e.jsxDEV("label",{className:"block text-[10px] text-text-quaternary uppercase tracking-wide mb-1",children:"Event ID"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:306,columnNumber:15},this),e.jsxDEV("input",{value:V,onChange:s=>y(s.target.value),className:"input w-full text-[11px] font-mono mb-3",spellCheck:!1,placeholder:"evt-1720368000000-a3f2"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:307,columnNumber:15},this),e.jsxDEV("label",{className:"block text-[10px] text-text-quaternary uppercase tracking-wide mb-1",children:"Subject"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:314,columnNumber:15},this),e.jsxDEV("input",{value:p||a.topic,onChange:s=>j(s.target.value),className:"input w-full text-[11px] font-mono mb-3",spellCheck:!1},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:315,columnNumber:15},this),L&&e.jsxDEV("div",{className:"grid grid-cols-2 gap-x-3",children:[e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"block text-[10px] text-text-quaternary uppercase tracking-wide mb-1",children:"Workflow Name"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:324,columnNumber:21},this),e.jsxDEV("input",{value:w,onChange:s=>ae(s.target.value),className:"input w-full text-[11px] font-mono mb-3",spellCheck:!1,placeholder:"myWorkflow"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:325,columnNumber:21},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:323,columnNumber:19},this),e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"block text-[10px] text-text-quaternary uppercase tracking-wide mb-1",children:"Workflow ID"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:334,columnNumber:21},this),e.jsxDEV("input",{value:S,onChange:s=>se(s.target.value),className:"input w-full text-[11px] font-mono mb-3",spellCheck:!1,placeholder:"wf-001"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:335,columnNumber:21},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:333,columnNumber:19},this),e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"block text-[10px] text-text-quaternary uppercase tracking-wide mb-1",children:"Task Queue"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:344,columnNumber:21},this),e.jsxDEV("input",{value:C,onChange:s=>te(s.target.value),className:"input w-full text-[11px] font-mono mb-3",spellCheck:!1,placeholder:"default"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:345,columnNumber:21},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:343,columnNumber:19},this),B&&e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"block text-[10px] text-text-quaternary uppercase tracking-wide mb-1",children:"Status"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:355,columnNumber:23},this),e.jsxDEV("input",{value:W||D,onChange:s=>ie(s.target.value),className:"input w-full text-[11px] font-mono mb-3",spellCheck:!1,placeholder:D},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:356,columnNumber:23},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:354,columnNumber:21},this),l==="escalation"&&e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"block text-[10px] text-text-quaternary uppercase tracking-wide mb-1",children:"Escalation ID"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:367,columnNumber:23},this),e.jsxDEV("input",{value:_,onChange:s=>le(s.target.value),className:"input w-full text-[11px] font-mono mb-3",spellCheck:!1,placeholder:"esc-001"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:368,columnNumber:23},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:366,columnNumber:21},this),l==="activity"&&e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"block text-[10px] text-text-quaternary uppercase tracking-wide mb-1",children:"Activity Name"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:379,columnNumber:23},this),e.jsxDEV("input",{value:q,onChange:s=>oe(s.target.value),className:"input w-full text-[11px] font-mono mb-3",spellCheck:!1,placeholder:"myActivity"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:380,columnNumber:23},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:378,columnNumber:21},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:322,columnNumber:17},this),e.jsxDEV("label",{className:"block text-[10px] text-text-quaternary uppercase tracking-wide mb-1",children:"Payload"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:391,columnNumber:15},this),e.jsxDEV("textarea",{value:g||u,onChange:s=>k(s.target.value),className:"input-json w-full text-[11px]",rows:6,spellCheck:!1,placeholder:'{ "key": "value" }'},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:392,columnNumber:15},this),e.jsxDEV("label",{className:"block text-[10px] text-text-quaternary uppercase tracking-wide mb-1 mt-3",children:"Event Preview"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:400,columnNumber:15},this),e.jsxDEV("pre",{className:"bg-surface-sunken/60 rounded px-2 py-2 text-[10px] font-mono text-text-tertiary overflow-auto max-h-44 whitespace-pre",children:pe},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:401,columnNumber:15},this),e.jsxDEV("div",{className:"mt-3",children:e.jsxDEV("button",{onClick:()=>{c.mutate({topic:a.topic,event:Q()},{onSuccess:()=>{x(),y(`evt-${Date.now()}-${Math.random().toString(16).slice(2,6)}`)}})},disabled:c.isPending,className:"btn-primary text-xs w-full",children:c.isPending?"Publishing…":"Publish"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:403,columnNumber:17},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:402,columnNumber:15},this),c.isSuccess&&e.jsxDEV("p",{className:"text-[10px] text-status-success mt-2 animate-page-enter",children:"Event published"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:421,columnNumber:17},this),c.isError&&e.jsxDEV("p",{className:"text-[10px] text-status-error mt-2",children:c.error.message},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:424,columnNumber:17},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:301,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:265,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:243,columnNumber:9},this),r&&e.jsxDEV("div",{className:"space-y-6 max-w-3xl",children:[e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"section-header",children:"Description"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:435,columnNumber:13},this),e.jsxDEV("textarea",{value:I,onChange:s=>O(s.target.value),rows:3,className:"input resize-none",placeholder:"What this topic represents"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:436,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:434,columnNumber:11},this),e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"section-header",children:"Tags"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:445,columnNumber:13},this),e.jsxDEV("input",{type:"text",value:J,onChange:s=>$(s.target.value),placeholder:"lifecycle, core, error",className:"input font-mono"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:446,columnNumber:13},this),e.jsxDEV("p",{className:"hint",children:"Comma-separated. Used for filtering in the catalog."},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:453,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:444,columnNumber:11},this),e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"section-header",children:"Payload Schema"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:456,columnNumber:13},this),e.jsxDEV("textarea",{value:f,onChange:s=>{R(s.target.value),d("")},rows:12,className:"input-json w-full",placeholder:`{
4
- "type": "object",
5
- "properties": {
6
- "orderId": { "type": "string" }
7
- }
8
- }`},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:457,columnNumber:13},this),A&&e.jsxDEV("p",{className:"text-[10px] text-status-error mt-1",children:A},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:464,columnNumber:29},this),e.jsxDEV("p",{className:"hint",children:"JSON Schema describing the event.data shape."},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:465,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:455,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:433,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicDetailPage.tsx",lineNumber:160,columnNumber:5},this)}export{Ae as TopicDetailPage};
9
- //# sourceMappingURL=TopicDetailPage-CtFztOnn.js.map
@@ -1,2 +0,0 @@
1
- import{j as e}from"./index-DgCS2Frb.js";import{a as m}from"./vendor-query-DLp59M9_.js";import{u as g}from"./topics-DNC77Chw.js";import{P as f}from"./PageHeader-DcgGV0Y2.js";import{F as v,b as T,a as E}from"./FilterBar-DEAbNQqp.js";import{aT as j,aU as y,b as P,B as D,Z as V,aV as k,v as w,aW as C,R as h}from"./vendor-icons-CNyYGNsk.js";import{c as S}from"./vendor-react-zA2lQFDs.js";const B={task:C,workflow:w,escalation:k,activity:V,knowledge:D,agent:P,app:y,milestone:j};function _(){const a=S(),[i,l]=m.useState(""),[c,x]=m.useState(null),{data:d,isLoading:u}=g({limit:500}),p=(d==null?void 0:d.topics)??[],n=m.useMemo(()=>{const s=new Set;for(const t of p)s.add(t.category);return Array.from(s).sort()},[p]),N=m.useMemo(()=>{const s=i.toLowerCase().trim();return(c?[c]:n).map(o=>({name:o,topics:p.filter(r=>{var b;return r.category===o&&(!s||r.topic.toLowerCase().includes(s)||((b=r.description)==null?void 0:b.toLowerCase().includes(s)))})})).filter(o=>o.topics.length>0)},[p,n,i,c]);return e.jsxDEV("div",{children:[e.jsxDEV(f,{title:"Event Topics",docsHash:"#docs:topics.md"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:59,columnNumber:7},this),!u&&n.length>0&&e.jsxDEV(v,{children:[e.jsxDEV(T,{label:"Category",value:c??"",onChange:s=>x(s||null),options:n.map(s=>({value:s,label:s}))},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:64,columnNumber:11},this),e.jsxDEV(E,{label:"Search",value:i,onChange:l,placeholder:`${p.length} topics…`},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:70,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:63,columnNumber:9},this),u?e.jsxDEV("div",{className:"animate-pulse space-y-8 mt-4",children:[1,2,3].map(s=>e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"h-4 bg-surface-sunken rounded w-28 mb-4"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:84,columnNumber:15},this),e.jsxDEV("div",{className:"space-y-3",children:[1,2,3,4].map(t=>e.jsxDEV("div",{className:"space-y-1.5",children:[e.jsxDEV("div",{className:"h-3 bg-surface-sunken rounded w-64"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:88,columnNumber:21},this),e.jsxDEV("div",{className:"h-3 bg-surface-sunken rounded w-full"},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:89,columnNumber:21},this)]},t,!0,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:87,columnNumber:19},this))},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:85,columnNumber:15},this)]},s,!0,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:83,columnNumber:13},this))},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:81,columnNumber:9},this):N.length===0?e.jsxDEV("p",{className:"text-sm text-text-tertiary mt-8",children:i||c?"No topics match your filter.":"No topics registered yet."},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:97,columnNumber:9},this):e.jsxDEV("div",{className:"space-y-10",children:N.map(({name:s,topics:t})=>{const o=B[s]??h;return e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"sticky top-[60px] z-10 bg-surface flex items-center gap-2 py-2 mb-2 border-b border-surface-border",children:[e.jsxDEV(o,{className:"w-3 h-3 text-accent",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:107,columnNumber:19},this),e.jsxDEV("h2",{className:"section-h2 capitalize",children:s},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:108,columnNumber:19},this),e.jsxDEV("span",{className:"text-xs text-text-quaternary",children:t.length},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:109,columnNumber:19},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:106,columnNumber:17},this),e.jsxDEV("div",{className:"divide-y divide-surface-border/30",children:t.map(r=>e.jsxDEV(R,{topic:r,onClick:()=>a(`/topics/${encodeURIComponent(r.topic)}`)},r.topic,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:113,columnNumber:21},this))},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:111,columnNumber:17},this)]},s,!0,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:105,columnNumber:15},this)})},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:101,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:58,columnNumber:5},this)}function R({topic:a,onClick:i}){return e.jsxDEV("div",{role:"button",tabIndex:0,onClick:i,onKeyDown:l=>{(l.key==="Enter"||l.key===" ")&&i()},className:"group py-2 px-3 -mx-3 rounded-md cursor-pointer transition-colors text-left",children:e.jsxDEV("div",{className:"flex items-center gap-3",children:[e.jsxDEV(h,{className:"w-3 h-3 shrink-0 text-text-quaternary group-hover:text-text-tertiary transition-colors",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:141,columnNumber:9},this),e.jsxDEV("span",{className:"text-xs font-mono text-text-primary truncate shrink-0 max-w-[24rem]",children:a.topic},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:142,columnNumber:9},this),e.jsxDEV("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-medium shrink-0 bg-accent/10 text-accent",children:a.category},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:143,columnNumber:9},this),(a.subscriber_count??0)>0&&e.jsxDEV("span",{className:"inline-flex items-center justify-center min-w-[18px] px-1 py-0.5 rounded-full text-[10px] font-medium bg-accent/15 text-accent shrink-0",children:a.subscriber_count},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:147,columnNumber:11},this),a.description&&e.jsxDEV("p",{className:"flex-1 min-w-0 truncate text-[11px] text-text-tertiary group-hover:text-text-secondary transition-colors",children:a.description},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:152,columnNumber:11},this),e.jsxDEV("span",{className:"ml-auto text-[10px] font-mono text-text-quaternary shrink-0",children:a.source},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:156,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:140,columnNumber:7},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/topics/TopicsPage.tsx",lineNumber:133,columnNumber:5},this)}export{_ as TopicsPage};
2
- //# sourceMappingURL=TopicsPage-BXdc6pAU.js.map
@@ -1,2 +0,0 @@
1
- import{j as s}from"./index-DgCS2Frb.js";import{a as m}from"./users-BUgdEsec.js";function i({userId:a,fallback:r}){const{data:e}=m(a);return e?s.jsxDEV(s.Fragment,{children:e.display_name||e.email||e.external_id},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/UserName.tsx",lineNumber:11,columnNumber:12},this):s.jsxDEV(s.Fragment,{children:r??`${a.slice(0,8)}…`},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/UserName.tsx",lineNumber:15,columnNumber:10},this)}export{i as U};
2
- //# sourceMappingURL=UserName-R96NG6xB.js.map
@@ -1,2 +0,0 @@
1
- import{j as e,b as v,D as _,J as j,e as C}from"./index-DgCS2Frb.js";import{a as k}from"./vendor-query-DLp59M9_.js";import{a as T,f as I}from"./workflows-BfyR5VJt.js";import{h as R}from"./useEventHooks-CUUeBSH1.js";import{u as $}from"./useCollapsedSections-CGNA5oKV.js";import{b as S,e as L}from"./tasks-DNdvW5H6.js";import{P as A}from"./PageHeader-DcgGV0Y2.js";import{C as g}from"./CollapsibleSection-Bn6Ks79X.js";import{L as U}from"./ListToolbar-Dviaskni.js";import{S as D}from"./StatusBadge-mk-dJwPT.js";import{C as M}from"./CopyableId-DS6IDMIX.js";import{L as f,e as K,c as Q}from"./vendor-react-zA2lQFDs.js";import{S as z}from"./SwimlaneTimeline-C9X3IVqI.js";import{E as B}from"./EventTable-BaLNvCew.js";import"./vendor-icons-CNyYGNsk.js";import"./StreamMessageDetail-Bikvs1Cz.js";import"./FilterBar-DEAbNQqp.js";function d({label:s,value:t,mono:o,truncate:a,children:r}){return e.jsxDEV("div",{children:[e.jsxDEV("p",{className:"text-[10px] font-semibold uppercase tracking-widest text-text-tertiary mb-1",children:s},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:23,columnNumber:7},this),r||e.jsxDEV("p",{className:`text-xs text-text-primary ${o?"font-mono":""} ${a?"truncate":""}`,title:a?t:void 0,children:t},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:27,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:22,columnNumber:5},this)}function J(s){const t=s.lastIndexOf("-");return t<=0?{taskQueue:s,workflowType:s}:{taskQueue:s.substring(0,t),workflowType:s.substring(t+1)}}function O({execution:s,task:t,escalations:o}){const a=s.parent_workflow_id,i=t&&t.workflow_id===s.workflow_id?t.parent_workflow_id:null,c=a||i||null,u=c&&c!==s.workflow_id?c:null,{taskQueue:l,workflowType:x}=J(s.workflow_type);return e.jsxDEV("div",{className:"bg-surface-sunken/50 rounded-md px-6 py-5 mb-6",children:[e.jsxDEV("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-y-4 gap-x-8",children:[e.jsxDEV(M,{label:"Workflow Type",value:x,href:`/workflows/executions?entity=${encodeURIComponent(x)}`},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:76,columnNumber:9},this),e.jsxDEV(d,{label:"Task Queue",value:l,mono:!0},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:77,columnNumber:9},this),e.jsxDEV(d,{label:"Start Time",children:s.start_time?e.jsxDEV(v,{date:s.start_time,format:"datetime",className:"text-text-primary"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:80,columnNumber:15},this):e.jsxDEV("span",{className:"text-xs text-text-tertiary",children:"--"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:81,columnNumber:15},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:78,columnNumber:9},this),e.jsxDEV(d,{label:"End Time",children:s.close_time?e.jsxDEV(v,{date:s.close_time,format:"datetime",className:"text-text-primary"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:85,columnNumber:15},this):e.jsxDEV("span",{className:"text-xs text-text-tertiary",children:"--"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:86,columnNumber:15},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:83,columnNumber:9},this),e.jsxDEV(d,{label:"Duration",children:e.jsxDEV(_,{ms:s.duration_ms,className:"font-mono text-text-primary"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:89,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:88,columnNumber:9},this),e.jsxDEV(d,{label:"History Size",value:`${s.summary.total_events} events`},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:91,columnNumber:9},this),e.jsxDEV(d,{label:"Activities",value:`${s.summary.activities.completed} / ${s.summary.activities.total}`},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:95,columnNumber:9},this),e.jsxDEV(d,{label:"Workflow ID",value:s.workflow_id,mono:!0,truncate:!0},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:99,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:75,columnNumber:7},this),(u||o&&o.length>0)&&e.jsxDEV("div",{className:"mt-5 pt-4 border-t border-surface-border/50 space-y-3",children:[u&&e.jsxDEV("div",{className:"flex items-center gap-2",children:[e.jsxDEV("span",{className:"text-[10px] font-semibold uppercase tracking-widest text-text-tertiary shrink-0",children:"Parent"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:113,columnNumber:15},this),e.jsxDEV(f,{to:`/workflows/executions/${u}`,className:"text-xs font-mono text-accent hover:underline truncate",title:u,children:u},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:116,columnNumber:15},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:112,columnNumber:13},this),!1,o&&o.length>0&&e.jsxDEV("div",{className:"flex items-start gap-2",children:[e.jsxDEV("span",{className:"text-[10px] font-semibold uppercase tracking-widest text-text-tertiary shrink-0 mt-0.5",children:o.length===1?"Escalation":"Escalations"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:144,columnNumber:15},this),e.jsxDEV("div",{className:"flex flex-wrap gap-x-4 gap-y-1",children:o.map(p=>e.jsxDEV(f,{to:`/escalations/detail/${p.id}`,className:"inline-flex items-center gap-1.5 text-xs font-mono text-accent hover:underline",children:[e.jsxDEV("span",{children:p.type},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:154,columnNumber:21},this),e.jsxDEV(D,{status:p.status},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:155,columnNumber:21},this)]},p.id,!0,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:149,columnNumber:19},this))},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:147,columnNumber:15},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:143,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:109,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionHeader.tsx",lineNumber:73,columnNumber:5},this)}function F(s){var a;const t=s.events.find(r=>r.event_type==="workflow_execution_started"),o=(a=t==null?void 0:t.attributes)==null?void 0:a.input;return o&&typeof o=="object"?o:null}function q({execution:s}){const t=F(s),o=s.result,a=(o==null?void 0:o.data)??o??null;return!t&&!a?null:e.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-6",children:[t!==null&&e.jsxDEV("div",{children:e.jsxDEV(j,{data:t,label:"Input Envelope"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionInputResult.tsx",lineNumber:34,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionInputResult.tsx",lineNumber:33,columnNumber:9},this),a!==null&&e.jsxDEV("div",{children:e.jsxDEV(j,{data:a,label:"Result"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionInputResult.tsx",lineNumber:39,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionInputResult.tsx",lineNumber:38,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/workflow-execution/ExecutionInputResult.tsx",lineNumber:31,columnNumber:5},this)}function Z({isRunning:s,hasToolCalls:t,workflowId:o,onAction:a}){const[r,i]=k.useState(!1),c=k.useRef(null);return k.useEffect(()=>{if(!r)return;const u=l=>{c.current&&!c.current.contains(l.target)&&i(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[r]),e.jsxDEV("div",{className:"relative",ref:c,children:[e.jsxDEV("button",{onClick:()=>i(!r),className:"btn-primary text-xs",children:"Actions"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:39,columnNumber:7},this),r&&e.jsxDEV("div",{className:"absolute right-0 mt-1 w-44 bg-surface-raised border border-surface-border rounded-md shadow-lg z-10",children:[e.jsxDEV("button",{onClick:()=>{a("restart"),i(!1)},className:"block w-full text-left px-4 py-2 text-xs text-text-secondary hover:bg-surface-hover",children:"Restart Workflow"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:44,columnNumber:11},this),s&&e.jsxDEV("button",{onClick:()=>{a("terminate"),i(!1)},className:"block w-full text-left px-4 py-2 text-xs text-status-error hover:bg-surface-hover",children:"Terminate"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:51,columnNumber:13},this),t&&e.jsxDEV(f,{to:`/mcp/queries/${o}?step=3`,className:"block w-full text-left px-4 py-2 text-xs text-accent hover:bg-surface-hover",onClick:()=>i(!1),children:"Compile into Pipeline"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:59,columnNumber:13},this),e.jsxDEV(f,{to:`/mcp/executions/${encodeURIComponent(o)}?namespace=durable`,className:"block w-full text-left px-4 py-2 text-xs text-text-secondary hover:bg-surface-hover",onClick:()=>i(!1),children:"View Pipeline Execution"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:67,columnNumber:11},this),e.jsxDEV(f,{to:`/admin/streams?source=worker&jid=${encodeURIComponent(o)}`,className:"block w-full text-left px-4 py-2 text-xs text-text-secondary hover:bg-surface-hover",onClick:()=>i(!1),children:"Worker Messages"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:74,columnNumber:11},this),e.jsxDEV(f,{to:`/admin/streams?source=engine&jid=${encodeURIComponent(o)}`,className:"block w-full text-left px-4 py-2 text-xs text-text-secondary hover:bg-surface-hover",onClick:()=>i(!1),children:"Engine Messages"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:81,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:43,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:38,columnNumber:5},this)}function xe(){const{workflowId:s}=K();R(s);const t="Workflow Execution",{data:o,isLoading:a,error:r,refetch:i,isFetching:c}=T(s),{data:u}=S(s),{data:l}=L(s),{data:x}=C(s),p=Q(),w=I(),{isCollapsed:b,toggle:N}=$("workflow-execution"),V=m=>{var n;if(m==="terminate")confirm("Are you sure you want to terminate this workflow?")&&w.mutate(s);else if(m==="restart"&&o){const P=o.workflow_id.replace(/-[A-Za-z0-9_-]{20,}$/,""),h=o.events.find(H=>H.event_type==="workflow_execution_started"),E=(n=h==null?void 0:h.attributes)==null?void 0:n.input;E&&sessionStorage.setItem("lt:invoke:prefill",JSON.stringify(E)),p(`/workflows/start?type=${encodeURIComponent(P)}&mode=now`)}};if(a)return e.jsxDEV("div",{className:"animate-pulse space-y-4",children:[e.jsxDEV("div",{className:"h-8 bg-surface-sunken rounded w-64"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:128,columnNumber:9},this),e.jsxDEV("div",{className:"h-60 bg-surface-sunken rounded"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:129,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:127,columnNumber:7},this);if(r||!o){const m=(r==null?void 0:r.message)??"",n=m.includes("expired")||m.includes("no longer available");return e.jsxDEV("div",{children:[e.jsxDEV(f,{to:"/workflows/executions",className:"text-xs text-text-tertiary hover:text-text-primary",children:"← Workflows"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:140,columnNumber:9},this),e.jsxDEV("div",{className:"mt-4 text-center py-8",children:[e.jsxDEV("p",{className:"text-sm text-text-primary mb-1",children:n?"Execution data is no longer available":r?"Unable to load execution":"Execution not found"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:144,columnNumber:11},this),e.jsxDEV("p",{className:"text-xs text-text-tertiary",children:n?"This workflow's underlying job has expired. The task record is preserved, but the execution timeline has been cleaned up.":m||"The workflow could not be resolved."},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:151,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:143,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:139,columnNumber:7},this)}const y=o.status!=="completed"&&o.status!=="failed",W=o.status==="completed"&&o.events.some(m=>{if(m.event_type!=="activity_task_completed")return!1;const n=m.attributes.activity_type;return n==="callDbTool"||n==="callVisionTool"||n==="callMcpTool"||(n==null?void 0:n.startsWith("mcp_"))});return e.jsxDEV("div",{children:[e.jsxDEV(A,{title:t,actions:e.jsxDEV("div",{className:"flex items-center gap-3",children:[e.jsxDEV(U,{onRefresh:()=>i(),isFetching:c,apiPath:`/workflow-states/${s}/execution`},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:176,columnNumber:13},this),e.jsxDEV(D,{status:o.status},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:181,columnNumber:13},this),e.jsxDEV(Z,{isRunning:y,hasToolCalls:W,workflowId:s,onAction:V},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:182,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:175,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:172,columnNumber:7},this),e.jsxDEV(O,{execution:o,task:u,childTasks:l==null?void 0:l.tasks,escalations:x==null?void 0:x.escalations},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:192,columnNumber:7},this),w.error&&e.jsxDEV("div",{className:"py-3 mb-6",children:e.jsxDEV("p",{className:"text-xs text-status-error",children:["Terminate failed: ",w.error.message]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:201,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:200,columnNumber:9},this),e.jsxDEV("div",{className:"space-y-6",children:[e.jsxDEV(g,{title:"Details",sectionKey:"details",isCollapsed:b("details"),onToggle:N,contentClassName:"mt-4 ml-9",children:e.jsxDEV(q,{execution:o},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:210,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:209,columnNumber:9},this),e.jsxDEV(g,{title:"Execution Timeline",sectionKey:"timeline",isCollapsed:b("timeline"),onToggle:N,contentClassName:"mt-4 ml-9",children:e.jsxDEV(z,{events:o.events,childTasks:l==null?void 0:l.tasks,jid:s,appId:"durable"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:214,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:213,columnNumber:9},this),e.jsxDEV(g,{title:"Events",sectionKey:"events",isCollapsed:b("events"),onToggle:N,contentClassName:"mt-4 ml-9",children:e.jsxDEV(B,{events:o.events,childTasks:l==null?void 0:l.tasks,jid:s,appId:"durable"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:223,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:222,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:208,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowExecutionPage.tsx",lineNumber:171,columnNumber:5},this)}export{xe as WorkflowExecutionPage};
2
- //# sourceMappingURL=WorkflowExecutionPage-DmRJabMQ.js.map
@@ -1,2 +0,0 @@
1
- import{j as o}from"./index-DgCS2Frb.js";import{W as s,Z as a,c as p,S as c,ad as m}from"./vendor-icons-CNyYGNsk.js";const d={certified:m,registered:c,pipeline:p,capability:a,durable:s},x={xs:{pill:"px-1 py-px text-[9px] gap-1",icon:"w-2 h-2"},sm:{pill:"px-1.5 py-px text-[11px] gap-1",icon:"w-2 h-2"},md:{pill:"px-2 py-0.5 text-[12px] gap-1.5",icon:"w-2.5 h-2.5"}};function N({type:t,size:i="sm",certified:l,variant:r}){const n=d[r??(l?"certified":"durable")]??s,e=x[i];return o.jsxDEV("span",{className:`inline-flex items-center ${e.pill} font-mono text-text-secondary bg-surface-sunken/50 rounded-md`,children:[o.jsxDEV(n,{className:`${e.icon} shrink-0 text-text-quaternary`,strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/WorkflowPill.tsx",lineNumber:42,columnNumber:7},this),t]},void 0,!0,{fileName:"/app/dashboard/src/components/common/display/WorkflowPill.tsx",lineNumber:41,columnNumber:5},this)}export{N as W};
2
- //# sourceMappingURL=WorkflowPill-Cc2MlYbB.js.map
@@ -1,2 +0,0 @@
1
- import{k as F,j as s,b as g}from"./index-DgCS2Frb.js";import{a as m}from"./vendor-query-DLp59M9_.js";import{E as R}from"./ElapsedCell-roy4G5SQ.js";import{u as z,d as A,b as $}from"./workflows-BfyR5VJt.js";import{u as L}from"./useNamespace-D-AjLnPK.js";import{b as M}from"./useEventHooks-CUUeBSH1.js";import{u as I}from"./useFilterParams-Ch-a71bE.js";import{b as U}from"./api-path-u2Jf9QXS.js";import{D as O}from"./DataTable-Bf4dgxll.js";import{W as B}from"./WorkflowPill-Cc2MlYbB.js";import{P as H}from"./PageHeader-DcgGV0Y2.js";import{F as G,c as p,b}from"./FilterBar-DEAbNQqp.js";import{S as J}from"./StickyPagination-Clm9H840.js";import{L as q}from"./ListToolbar-Dviaskni.js";import{R as K,a as v}from"./RowActions--m4F6GW8.js";import{u as Q,y as X}from"./vendor-icons-CNyYGNsk.js";import{c as Y}from"./vendor-react-zA2lQFDs.js";import"./controlplane-Djshb7fm.js";import"./EmptyState-CLVm9KmA.js";const Z={running:"in_progress",completed:"completed",failed:"failed"},ee={in_progress:"bg-status-active",completed:"bg-status-success",failed:"bg-status-error"},se={running:"text-status-active",completed:"text-status-success",failed:"text-status-error"};function ae(c,i,f,n,o){return[{key:"workflow_id",label:"Workflow ID",render:e=>{const t=ee[Z[e.status]??e.status]??"bg-status-pending",r=e.status==="running"?" animate-pulse":"";return s.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[s.jsxDEV("span",{className:`w-1.5 h-1.5 shrink-0 rounded-full dot-ring ${t}${r}`,title:e.status},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:57,columnNumber:13},this),s.jsxDEV("span",{className:"font-mono text-xs text-text-primary truncate",children:e.workflow_id},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:58,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:56,columnNumber:11},this)}},{key:"entity",label:"Type",render:e=>s.jsxDEV(B,{type:e.entity,variant:o.get(e.entity)??"durable",size:"xs"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:66,columnNumber:24},this),className:"w-44 shrink-0"},{key:"created_at",label:"Created",render:e=>s.jsxDEV(g,{date:e.created_at,format:"relative",className:"text-xs text-text-secondary whitespace-nowrap"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:72,columnNumber:24},this),className:"w-32",sortable:!0},{key:"updated_at",label:"Updated",render:e=>s.jsxDEV(g,{date:e.updated_at,format:"relative",className:"text-xs text-text-secondary whitespace-nowrap"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:79,columnNumber:24},this),className:"w-32",sortable:!0},{key:"duration",label:"Duration",render:e=>s.jsxDEV(R,{startDate:e.created_at,endDate:e.status==="running"?null:e.updated_at,isLive:e.status==="running"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:87,columnNumber:9},this),className:"w-28"},{key:"actions",label:"",render:e=>s.jsxDEV(K,{children:[s.jsxDEV(v,{icon:Q,title:`Filter by ${e.entity}`,onClick:()=>c(e.entity)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:100,columnNumber:11},this),s.jsxDEV("button",{onClick:t=>{t.stopPropagation(),i(e.status)},className:"opacity-0 group-hover/row:opacity-100 transition-opacity",title:`Filter by ${e.status}`,children:s.jsxDEV("svg",{className:`w-[18px] h-[18px] ${se[e.status]??"text-text-tertiary"} hover:opacity-70`,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,children:s.jsxDEV("circle",{cx:"12",cy:"12",r:"6"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:111,columnNumber:15},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:110,columnNumber:13},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:105,columnNumber:11},this),f&&s.jsxDEV(v,{icon:X,title:"View config",onClick:()=>n(`/workflows/registry/${encodeURIComponent(e.entity)}`)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:115,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:99,columnNumber:9},this),className:"w-24 text-right"}]}function ve({tier:c="all"}){M();const i=Y(),{isSuperAdmin:f}=F(),{namespace:n}=L(),{filters:o,setFilter:e,pagination:t,sort:r,setSort:D}=I({filters:{search:"",entity:"",status:"",tier:c}}),d=o.tier||"all",h=d==="certified"?"true":d==="durable"?"false":void 0,{data:w}=z(),{data:N}=A(),y=m.useMemo(()=>{const a=new Map;for(const k of N??[])a.set(k.workflow_type,k.tier??"durable");return a},[N]),W=ae(a=>e("entity",a),a=>e("status",a),f,i,y),[u,E]=m.useState(o.search);m.useEffect(()=>{if(u===o.search)return;const a=setTimeout(()=>e("search",u),300);return()=>clearTimeout(a)},[u,e,o.search]);const{data:l,isLoading:j,refetch:V,isFetching:S}=$({limit:t.pageSize,offset:t.offset,entity:o.entity||void 0,search:o.search||void 0,status:o.status||void 0,sort_by:r.sort_by||"created_at",order:r.order||"desc",registered:h,namespace:n||void 0}),x=(l==null?void 0:l.total)??0,_=(l==null?void 0:l.jobs)??[],C=m.useMemo(()=>[...new Set((w??[]).map(a=>a.workflow_type))].sort(),[w]),P="Workflow Executions",T=d==="certified"?"No certified workflow executions found":d==="durable"?"No durable workflow executions found":"No workflow executions found";return s.jsxDEV("div",{children:[s.jsxDEV(H,{title:P,docsHash:"#docs:dashboard.md:durable-executions"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:200,columnNumber:7},this),s.jsxDEV(G,{actions:s.jsxDEV(q,{onRefresh:()=>V(),isFetching:S,apiPath:U("/workflow-states/jobs",{limit:t.pageSize,offset:t.offset,entity:o.entity||void 0,search:o.search||void 0,status:o.status||void 0,sort_by:r.sort_by||"created_at",order:r.order||"desc",registered:h,namespace:n||void 0})},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:203,columnNumber:9},this),children:[s.jsxDEV("input",{type:"text",placeholder:"Search workflow ID...",value:u,onChange:a=>E(a.target.value),className:"input text-[11px] py-1 px-2 w-56"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:219,columnNumber:9},this),s.jsxDEV(p,{},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:226,columnNumber:9},this),s.jsxDEV(b,{label:"Type",value:o.entity,onChange:a=>e("entity",a),options:C.map(a=>({value:a,label:a}))},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:227,columnNumber:9},this),s.jsxDEV(p,{},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:233,columnNumber:9},this),s.jsxDEV(b,{label:"Status",value:o.status,onChange:a=>e("status",a),options:[{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"}]},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:234,columnNumber:9},this),s.jsxDEV(p,{},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:244,columnNumber:9},this),s.jsxDEV(b,{label:"Tier",value:o.tier==="all"?"":o.tier,onChange:a=>e("tier",a||"all"),options:[{value:"certified",label:"Certified"},{value:"durable",label:"Durable"}]},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:245,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:202,columnNumber:7},this),s.jsxDEV(O,{columns:W,data:_,keyFn:a=>a.workflow_id,onRowClick:a=>i(`/workflows/executions/${a.workflow_id}`),isLoading:j,emptyMessage:T,sort:r,onSort:D},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:256,columnNumber:7},this),s.jsxDEV(J,{page:t.page,totalPages:t.totalPages(x),onPageChange:t.setPage,total:x,pageSize:t.pageSize,onPageSizeChange:t.setPageSize},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:267,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsDashboard.tsx",lineNumber:199,columnNumber:5},this)}export{ve as WorkflowsDashboard};
2
- //# sourceMappingURL=WorkflowsDashboard-uLU5ZToY.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkflowsDashboard-uLU5ZToY.js","sources":["../../src/pages/workflows/WorkflowsDashboard.tsx"],"sourcesContent":["import { useState, useEffect, useMemo } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport { Filter, Settings } from 'lucide-react';\nimport { ElapsedCell } from '../../components/common/display/ElapsedCell';\nimport { DateValue } from '../../components/common/display/DateValue';\nimport { useJobs, useWorkflowConfigs, useDiscoveredWorkflows } from '../../api/workflows';\nimport { useAuth } from '../../hooks/useAuth';\nimport { useNamespace } from '../../hooks/useNamespace';\nimport { useWorkflowListEvents } from '../../hooks/useEventHooks';\nimport { useFilterParams } from '../../hooks/useFilterParams';\nimport { buildApiPath } from '../../lib/api-path';\nimport { DataTable, type Column } from '../../components/common/data/DataTable';\nimport { WorkflowPill } from '../../components/common/display/WorkflowPill';\nimport { PageHeader } from '../../components/common/layout/PageHeader';\nimport { FilterBar, FilterSelect, FilterDivider } from '../../components/common/data/FilterBar';\nimport { StickyPagination } from '../../components/common/data/StickyPagination';\nimport { ListToolbar } from '../../components/common/data/ListToolbar';\nimport { RowAction, RowActionGroup } from '../../components/common/layout/RowActions';\nimport type { LTJob, WorkflowTier } from '../../api/types';\n\nexport type ExecutionsTier = 'all' | 'certified' | 'durable';\n\nconst jobStatusMap: Record<string, string> = {\n running: 'in_progress',\n completed: 'completed',\n failed: 'failed',\n};\n\nconst STATUS_DOT: Record<string, string> = {\n in_progress: 'bg-status-active',\n completed: 'bg-status-success',\n failed: 'bg-status-error',\n};\n\nconst STATUS_COLORS: Record<string, string> = {\n running: 'text-status-active',\n completed: 'text-status-success',\n failed: 'text-status-error',\n};\n\nfunction buildColumns(\n onFilterEntity: (entity: string) => void,\n onFilterStatus: (status: string) => void,\n isSuperAdmin: boolean,\n navigate: (path: string) => void,\n tierMap: Map<string, WorkflowTier>,\n): Column<LTJob>[] {\n return [\n {\n key: 'workflow_id',\n label: 'Workflow ID',\n render: (row) => {\n const dotClass = STATUS_DOT[jobStatusMap[row.status] ?? row.status] ?? 'bg-status-pending';\n const pulseClass = row.status === 'running' ? ' animate-pulse' : '';\n return (\n <div className=\"flex items-center gap-2 min-w-0\">\n <span className={`w-1.5 h-1.5 shrink-0 rounded-full dot-ring ${dotClass}${pulseClass}`} title={row.status} />\n <span className=\"font-mono text-xs text-text-primary truncate\">{row.workflow_id}</span>\n </div>\n );\n },\n },\n {\n key: 'entity',\n label: 'Type',\n render: (row) => <WorkflowPill type={row.entity} variant={tierMap.get(row.entity) ?? 'durable'} size=\"xs\" />,\n className: 'w-44 shrink-0',\n },\n {\n key: 'created_at',\n label: 'Created',\n render: (row) => <DateValue date={row.created_at} format=\"relative\" className=\"text-xs text-text-secondary whitespace-nowrap\" />,\n className: 'w-32',\n sortable: true,\n },\n {\n key: 'updated_at',\n label: 'Updated',\n render: (row) => <DateValue date={row.updated_at} format=\"relative\" className=\"text-xs text-text-secondary whitespace-nowrap\" />,\n className: 'w-32',\n sortable: true,\n },\n {\n key: 'duration',\n label: 'Duration',\n render: (row) => (\n <ElapsedCell\n startDate={row.created_at}\n endDate={row.status === 'running' ? null : row.updated_at}\n isLive={row.status === 'running'}\n />\n ),\n className: 'w-28',\n },\n {\n key: 'actions',\n label: '',\n render: (row) => (\n <RowActionGroup>\n <RowAction\n icon={Filter}\n title={`Filter by ${row.entity}`}\n onClick={() => onFilterEntity(row.entity)}\n />\n <button\n onClick={(e) => { e.stopPropagation(); onFilterStatus(row.status); }}\n className=\"opacity-0 group-hover/row:opacity-100 transition-opacity\"\n title={`Filter by ${row.status}`}\n >\n <svg className={`w-[18px] h-[18px] ${STATUS_COLORS[row.status] ?? 'text-text-tertiary'} hover:opacity-70`} viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.5}>\n <circle cx=\"12\" cy=\"12\" r=\"6\" />\n </svg>\n </button>\n {isSuperAdmin && (\n <RowAction\n icon={Settings}\n title=\"View config\"\n onClick={() => navigate(`/workflows/registry/${encodeURIComponent(row.entity)}`)}\n />\n )}\n </RowActionGroup>\n ),\n className: 'w-24 text-right',\n },\n ];\n}\n\nexport function WorkflowsDashboard({ tier: initialTier = 'all' }: { tier?: ExecutionsTier }) {\n useWorkflowListEvents();\n const navigate = useNavigate();\n const { isSuperAdmin } = useAuth();\n const { namespace } = useNamespace();\n\n const { filters, setFilter, pagination, sort, setSort } = useFilterParams({\n filters: { search: '', entity: '', status: '', tier: initialTier },\n });\n\n const activeTier = (filters.tier || 'all') as ExecutionsTier;\n\n // Map tier to server-side registered filter\n const registeredFilter = activeTier === 'certified' ? 'true'\n : activeTier === 'durable' ? 'false'\n : undefined;\n\n const { data: configs } = useWorkflowConfigs();\n const { data: discoveredData } = useDiscoveredWorkflows();\n\n const tierMap = useMemo(() => {\n const map = new Map<string, WorkflowTier>();\n for (const dw of discoveredData ?? []) {\n map.set(dw.workflow_type, dw.tier ?? 'durable');\n }\n return map;\n }, [discoveredData]);\n\n const columns = buildColumns(\n (entity) => setFilter('entity', entity),\n (status) => setFilter('status', status),\n isSuperAdmin,\n navigate,\n tierMap,\n );\n const [searchInput, setSearchInput] = useState(filters.search);\n\n useEffect(() => {\n if (searchInput === filters.search) return;\n const timer = setTimeout(() => setFilter('search', searchInput), 300);\n return () => clearTimeout(timer);\n }, [searchInput, setFilter, filters.search]);\n\n const { data: jobsData, isLoading, refetch, isFetching } = useJobs({\n limit: pagination.pageSize,\n offset: pagination.offset,\n entity: filters.entity || undefined,\n search: filters.search || undefined,\n status: filters.status || undefined,\n sort_by: sort.sort_by || 'created_at',\n order: sort.order || 'desc',\n registered: registeredFilter,\n namespace: namespace || undefined,\n });\n\n const total = jobsData?.total ?? 0;\n const jobs = jobsData?.jobs ?? [];\n\n const entities = useMemo(() => {\n return [...new Set((configs ?? []).map((c) => c.workflow_type))].sort();\n }, [configs]);\n\n const pageTitle = 'Workflow Executions';\n\n const emptyMessage = activeTier === 'certified'\n ? 'No certified workflow executions found'\n : activeTier === 'durable'\n ? 'No durable workflow executions found'\n : 'No workflow executions found';\n\n return (\n <div>\n <PageHeader title={pageTitle} docsHash=\"#docs:dashboard.md:durable-executions\" />\n\n <FilterBar actions={\n <ListToolbar\n onRefresh={() => refetch()}\n isFetching={isFetching}\n apiPath={buildApiPath('/workflow-states/jobs', {\n limit: pagination.pageSize,\n offset: pagination.offset,\n entity: filters.entity || undefined,\n search: filters.search || undefined,\n status: filters.status || undefined,\n sort_by: sort.sort_by || 'created_at',\n order: sort.order || 'desc',\n registered: registeredFilter,\n namespace: namespace || undefined,\n })}\n />\n }>\n <input\n type=\"text\"\n placeholder=\"Search workflow ID...\"\n value={searchInput}\n onChange={(e) => setSearchInput(e.target.value)}\n className=\"input text-[11px] py-1 px-2 w-56\"\n />\n <FilterDivider />\n <FilterSelect\n label=\"Type\"\n value={filters.entity}\n onChange={(v) => setFilter('entity', v)}\n options={entities.map((e) => ({ value: e, label: e }))}\n />\n <FilterDivider />\n <FilterSelect\n label=\"Status\"\n value={filters.status}\n onChange={(v) => setFilter('status', v)}\n options={[\n { value: 'running', label: 'Running' },\n { value: 'completed', label: 'Completed' },\n { value: 'failed', label: 'Failed' },\n ]}\n />\n <FilterDivider />\n <FilterSelect\n label=\"Tier\"\n value={filters.tier === 'all' ? '' : filters.tier}\n onChange={(v) => setFilter('tier', v || 'all')}\n options={[\n { value: 'certified', label: 'Certified' },\n { value: 'durable', label: 'Durable' },\n ]}\n />\n </FilterBar>\n\n <DataTable\n columns={columns}\n data={jobs}\n keyFn={(row) => row.workflow_id}\n onRowClick={(row) => navigate(`/workflows/executions/${row.workflow_id}`)}\n isLoading={isLoading}\n emptyMessage={emptyMessage}\n sort={sort}\n onSort={setSort}\n />\n\n <StickyPagination\n page={pagination.page}\n totalPages={pagination.totalPages(total)}\n onPageChange={pagination.setPage}\n total={total}\n pageSize={pagination.pageSize}\n onPageSizeChange={pagination.setPageSize}\n />\n </div>\n );\n}\n"],"names":["jobStatusMap","STATUS_DOT","STATUS_COLORS","buildColumns","onFilterEntity","onFilterStatus","isSuperAdmin","navigate","tierMap","row","dotClass","pulseClass","jsxDEV","WorkflowPill","DateValue","ElapsedCell","RowActionGroup","RowAction","Filter","e","Settings","WorkflowsDashboard","initialTier","useWorkflowListEvents","useNavigate","useAuth","namespace","useNamespace","filters","setFilter","pagination","sort","setSort","useFilterParams","activeTier","registeredFilter","configs","useWorkflowConfigs","discoveredData","useDiscoveredWorkflows","useMemo","map","dw","columns","entity","status","searchInput","setSearchInput","useState","useEffect","timer","jobsData","isLoading","refetch","isFetching","useJobs","total","jobs","entities","c","pageTitle","emptyMessage","PageHeader","FilterBar","ListToolbar","buildApiPath","FilterDivider","FilterSelect","v","DataTable","StickyPagination"],"mappings":"o4BAsBA,MAAMA,EAAuC,CAC3C,QAAS,cACT,UAAW,YACX,OAAQ,QACV,EAEMC,GAAqC,CACzC,YAAa,mBACb,UAAW,oBACX,OAAQ,iBACV,EAEMC,GAAwC,CAC5C,QAAS,qBACT,UAAW,sBACX,OAAQ,mBACV,EAEA,SAASC,GACPC,EACAC,EACAC,EACAC,EACAC,EACiB,CACjB,MAAO,CACL,CACE,IAAK,cACL,MAAO,cACP,OAASC,GAAQ,CACf,MAAMC,EAAWT,GAAWD,EAAaS,EAAI,MAAM,GAAKA,EAAI,MAAM,GAAK,oBACjEE,EAAaF,EAAI,SAAW,UAAY,iBAAmB,GACjE,OACEG,EAAAA,OAAC,MAAA,CAAI,UAAU,kCACb,SAAA,CAAAA,EAAAA,OAAC,OAAA,CAAK,UAAW,8CAA8CF,CAAQ,GAAGC,CAAU,GAAI,MAAOF,EAAI,MAAA,EAAnG,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,GAAA,aAAA,EAAA,EAAA,IAA2G,EAC3GG,SAAC,OAAA,CAAK,UAAU,+CAAgD,WAAI,WAAA,EAApE,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,GAAA,aAAA,EAAA,EAAA,IAAgF,CAAA,CAAA,EAFlF,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,GAAA,aAAA,EAAA,EAAA,IAGA,CAEJ,CAAA,EAEF,CACE,IAAK,SACL,MAAO,OACP,OAASH,GAAQG,SAACC,EAAA,CAAa,KAAMJ,EAAI,OAAQ,QAASD,EAAQ,IAAIC,EAAI,MAAM,GAAK,UAAW,KAAK,IAAA,EAApF,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,GAAA,aAAA,EAAA,EAAA,IAAyF,EAC1G,UAAW,eAAA,EAEb,CACE,IAAK,aACL,MAAO,UACP,OAASA,GAAQG,EAAAA,OAACE,EAAA,CAAU,KAAML,EAAI,WAAY,OAAO,WAAW,UAAU,+CAAA,EAA7D,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,GAAA,aAAA,EAAA,EAAA,IAA6G,EAC9H,UAAW,OACX,SAAU,EAAA,EAEZ,CACE,IAAK,aACL,MAAO,UACP,OAASA,GAAQG,EAAAA,OAACE,EAAA,CAAU,KAAML,EAAI,WAAY,OAAO,WAAW,UAAU,+CAAA,EAA7D,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,GAAA,aAAA,EAAA,EAAA,IAA6G,EAC9H,UAAW,OACX,SAAU,EAAA,EAEZ,CACE,IAAK,WACL,MAAO,WACP,OAASA,GACPG,EAAAA,OAACG,EAAA,CACC,UAAWN,EAAI,WACf,QAASA,EAAI,SAAW,UAAY,KAAOA,EAAI,WAC/C,OAAQA,EAAI,SAAW,SAAA,EAHzB,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,GAAA,aAAA,CAAA,EAAA,IAAA,EAMF,UAAW,MAAA,EAEb,CACE,IAAK,UACL,MAAO,GACP,OAASA,GACPG,EAAAA,OAACI,EAAA,CACC,SAAA,CAAAJ,EAAAA,OAACK,EAAA,CACC,KAAMC,EACN,MAAO,aAAaT,EAAI,MAAM,GAC9B,QAAS,IAAML,EAAeK,EAAI,MAAM,CAAA,EAH1C,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,EAAA,EAAA,IAAA,EAKAG,EAAAA,OAAC,SAAA,CACC,QAAUO,GAAM,CAAEA,EAAE,gBAAA,EAAmBd,EAAeI,EAAI,MAAM,CAAG,EACnE,UAAU,2DACV,MAAO,aAAaA,EAAI,MAAM,GAE9B,SAAAG,EAAAA,OAAC,MAAA,CAAI,UAAW,qBAAqBV,GAAcO,EAAI,MAAM,GAAK,oBAAoB,oBAAqB,QAAQ,YAAY,KAAK,OAAO,OAAO,eAAe,YAAa,IAC5K,SAAAG,EAAAA,OAAC,SAAA,CAAO,GAAG,KAAK,GAAG,KAAK,EAAE,GAAA,EAA1B,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,EAAA,EAAA,IAA8B,CAAA,EADhC,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,EAAA,EAAA,IAEA,CAAA,EAPF,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,EAAA,EAAA,IAAA,EASCN,GACCM,EAAAA,OAACK,EAAA,CACC,KAAMG,EACN,MAAM,cACN,QAAS,IAAMb,EAAS,uBAAuB,mBAAmBE,EAAI,MAAM,CAAC,EAAE,CAAA,EAHjF,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,EAAA,EAAA,IAAA,CAIA,CAAA,EApBJ,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,GAAA,aAAA,CAAA,EAAA,IAsBA,EAEF,UAAW,iBAAA,CACb,CAEJ,CAEO,SAASY,GAAmB,CAAE,KAAMC,EAAc,OAAoC,CAC3FC,EAAA,EACA,MAAMhB,EAAWiB,EAAA,EACX,CAAE,aAAAlB,CAAA,EAAiBmB,EAAA,EACnB,CAAE,UAAAC,CAAA,EAAcC,EAAA,EAEhB,CAAE,QAAAC,EAAS,UAAAC,EAAW,WAAAC,EAAY,KAAAC,EAAM,QAAAC,CAAA,EAAYC,EAAgB,CACxE,QAAS,CAAE,OAAQ,GAAI,OAAQ,GAAI,OAAQ,GAAI,KAAMX,CAAA,CAAY,CAClE,EAEKY,EAAcN,EAAQ,MAAQ,MAG9BO,EAAmBD,IAAe,YAAc,OAClDA,IAAe,UAAY,QAC3B,OAEE,CAAE,KAAME,CAAA,EAAYC,EAAA,EACpB,CAAE,KAAMC,CAAA,EAAmBC,EAAA,EAE3B/B,EAAUgC,EAAAA,QAAQ,IAAM,CAC5B,MAAMC,MAAU,IAChB,UAAWC,KAAMJ,GAAkB,GACjCG,EAAI,IAAIC,EAAG,cAAeA,EAAG,MAAQ,SAAS,EAEhD,OAAOD,CACT,EAAG,CAACH,CAAc,CAAC,EAEbK,EAAUxC,GACbyC,GAAWf,EAAU,SAAUe,CAAM,EACrCC,GAAWhB,EAAU,SAAUgB,CAAM,EACtCvC,EACAC,EACAC,CAAA,EAEI,CAACsC,EAAaC,CAAc,EAAIC,EAAAA,SAASpB,EAAQ,MAAM,EAE7DqB,EAAAA,UAAU,IAAM,CACd,GAAIH,IAAgBlB,EAAQ,OAAQ,OACpC,MAAMsB,EAAQ,WAAW,IAAMrB,EAAU,SAAUiB,CAAW,EAAG,GAAG,EACpE,MAAO,IAAM,aAAaI,CAAK,CACjC,EAAG,CAACJ,EAAajB,EAAWD,EAAQ,MAAM,CAAC,EAE3C,KAAM,CAAE,KAAMuB,EAAU,UAAAC,EAAW,QAAAC,EAAS,WAAAC,CAAA,EAAeC,EAAQ,CACjE,MAAOzB,EAAW,SAClB,OAAQA,EAAW,OACnB,OAAQF,EAAQ,QAAU,OAC1B,OAAQA,EAAQ,QAAU,OAC1B,OAAQA,EAAQ,QAAU,OAC1B,QAASG,EAAK,SAAW,aACzB,MAAOA,EAAK,OAAS,OACrB,WAAYI,EACZ,UAAWT,GAAa,MAAA,CACzB,EAEK8B,GAAQL,GAAA,YAAAA,EAAU,QAAS,EAC3BM,GAAON,GAAA,YAAAA,EAAU,OAAQ,CAAA,EAEzBO,EAAWlB,EAAAA,QAAQ,IAChB,CAAC,GAAG,IAAI,KAAKJ,GAAW,CAAA,GAAI,IAAKuB,GAAMA,EAAE,aAAa,CAAC,CAAC,EAAE,KAAA,EAChE,CAACvB,CAAO,CAAC,EAENwB,EAAY,sBAEZC,EAAe3B,IAAe,YAChC,yCACAA,IAAe,UACb,uCACA,+BAEN,gBACG,MAAA,CACC,SAAA,CAAAtB,SAACkD,EAAA,CAAW,MAAOF,EAAW,SAAS,uCAAA,EAAvC,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,CAAA,EAAA,IAA+E,EAE/EhD,SAACmD,GAAU,QACTnD,EAAAA,OAACoD,EAAA,CACC,UAAW,IAAMX,EAAA,EACjB,WAAAC,EACA,QAASW,EAAa,wBAAyB,CAC7C,MAAOnC,EAAW,SAClB,OAAQA,EAAW,OACnB,OAAQF,EAAQ,QAAU,OAC1B,OAAQA,EAAQ,QAAU,OAC1B,OAAQA,EAAQ,QAAU,OAC1B,QAASG,EAAK,SAAW,aACzB,MAAOA,EAAK,OAAS,OACrB,WAAYI,EACZ,UAAWT,GAAa,MAAA,CACzB,CAAA,EAbH,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,CAAA,EAAA,IAAA,EAgBA,SAAA,CAAAd,EAAAA,OAAC,QAAA,CACC,KAAK,OACL,YAAY,wBACZ,MAAOkC,EACP,SAAW3B,GAAM4B,EAAe5B,EAAE,OAAO,KAAK,EAC9C,UAAU,kCAAA,EALZ,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,CAAA,EAAA,IAAA,WAOC+C,EAAA,GAAD,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,CAAA,EAAA,IAAe,EACftD,EAAAA,OAACuD,EAAA,CACC,MAAM,OACN,MAAOvC,EAAQ,OACf,SAAWwC,GAAMvC,EAAU,SAAUuC,CAAC,EACtC,QAASV,EAAS,IAAKvC,IAAO,CAAE,MAAOA,EAAG,MAAOA,GAAI,CAAA,EAJvD,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,CAAA,EAAA,IAAA,WAMC+C,EAAA,GAAD,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,CAAA,EAAA,IAAe,EACftD,EAAAA,OAACuD,EAAA,CACC,MAAM,SACN,MAAOvC,EAAQ,OACf,SAAWwC,GAAMvC,EAAU,SAAUuC,CAAC,EACtC,QAAS,CACP,CAAE,MAAO,UAAW,MAAO,SAAA,EAC3B,CAAE,MAAO,YAAa,MAAO,WAAA,EAC7B,CAAE,MAAO,SAAU,MAAO,QAAA,CAAS,CACrC,EARF,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,CAAA,EAAA,IAAA,WAUCF,EAAA,GAAD,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,CAAA,EAAA,IAAe,EACftD,EAAAA,OAACuD,EAAA,CACC,MAAM,OACN,MAAOvC,EAAQ,OAAS,MAAQ,GAAKA,EAAQ,KAC7C,SAAWwC,GAAMvC,EAAU,OAAQuC,GAAK,KAAK,EAC7C,QAAS,CACP,CAAE,MAAO,YAAa,MAAO,WAAA,EAC7B,CAAE,MAAO,UAAW,MAAO,SAAA,CAAU,CACvC,EAPF,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,CAAA,EAAA,IAAA,CAQA,CAAA,EAnDF,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,CAAA,EAAA,IAoDA,EAEAxD,EAAAA,OAACyD,EAAA,CACC,QAAA1B,EACA,KAAMc,EACN,MAAQhD,GAAQA,EAAI,YACpB,WAAaA,GAAQF,EAAS,yBAAyBE,EAAI,WAAW,EAAE,EACxE,UAAA2C,EACA,aAAAS,EACA,KAAA9B,EACA,OAAQC,CAAA,EARV,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,CAAA,EAAA,IAAA,EAWApB,EAAAA,OAAC0D,EAAA,CACC,KAAMxC,EAAW,KACjB,WAAYA,EAAW,WAAW0B,CAAK,EACvC,aAAc1B,EAAW,QACzB,MAAA0B,EACA,SAAU1B,EAAW,SACrB,iBAAkBA,EAAW,WAAA,EAN/B,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,CAAA,EAAA,IAAA,CAOA,CAAA,EA3EF,OAAA,GAAA,CAAA,SAAA,4DAAA,WAAA,IAAA,aAAA,CAAA,EAAA,IA4EA,CAEJ"}
@@ -1,2 +0,0 @@
1
- import{j as e}from"./index-DgCS2Frb.js";import{a as u}from"./vendor-query-DLp59M9_.js";import{b as D,u as j}from"./workflows-BfyR5VJt.js";import{b as W}from"./useEventHooks-CUUeBSH1.js";import{P as E}from"./PageHeader-DcgGV0Y2.js";import{S as p}from"./StatCard-DCPGFzCv.js";import{c as O}from"./vendor-react-zA2lQFDs.js";import"./vendor-icons-CNyYGNsk.js";const k=[{label:"1h",ms:36e5},{label:"24h",ms:864e5},{label:"7d",ms:6048e5},{label:"30d",ms:2592e6}];function V(o){return o<1e3?`${Math.round(o)}ms`:o<6e4?`${(o/1e3).toFixed(1)}s`:o<36e5?`${(o/6e4).toFixed(1)}m`:`${(o/36e5).toFixed(1)}h`}function w({value:o,colorClass:n,onClick:b}){return o===0?e.jsxDEV("span",{className:"text-text-tertiary",children:"0"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:49,columnNumber:12},this):e.jsxDEV("button",{onClick:b,className:`${n} hover:underline tabular-nums font-medium`,children:o},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:52,columnNumber:5},this)}function L(){W();const o=O(),[n,b]=u.useState("24h"),{data:m}=D({limit:500}),{data:h}=j(),N=u.useMemo(()=>{const s=k.find(i=>i.label===n);return Date.now()-s.ms},[n]),l=u.useMemo(()=>((m==null?void 0:m.jobs)??[]).filter(s=>new Date(s.created_at).getTime()>=N),[m==null?void 0:m.jobs,N]),v=u.useMemo(()=>{const s=new Map;for(const t of l){const r=s.get(t.entity)??{total:0,running:0,completed:0,failed:0,durations:[]};if(r.total++,t.status==="running"&&r.running++,t.status==="completed"){r.completed++;const f=new Date(t.updated_at).getTime()-new Date(t.created_at).getTime();f>0&&r.durations.push(f)}t.status==="failed"&&r.failed++,s.set(t.entity,r)}const i=[];for(const[t,r]of s)i.push({type:t,...r,avgDuration:r.durations.length>0?r.durations.reduce((f,g)=>f+g,0)/r.durations.length:null});return i.sort((t,r)=>r.total-t.total)},[l]),c=u.useMemo(()=>({total:l.length,running:l.filter(s=>s.status==="running").length,completed:l.filter(s=>s.status==="completed").length,failed:l.filter(s=>s.status==="failed").length}),[l]),x=(h==null?void 0:h.length)??0,a=(s,i)=>{const t=new URLSearchParams;s&&t.set("entity",s),i&&t.set("status",i);const r=t.toString();o(`/workflows/executions${r?`?${r}`:""}`)},d="pb-2 text-[10px] font-semibold uppercase tracking-widest text-text-tertiary";return e.jsxDEV("div",{children:[e.jsxDEV(E,{title:"Workflows",actions:e.jsxDEV("span",{className:"text-xs text-text-tertiary",children:[x," certified type",x!==1?"s":""]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:134,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:131,columnNumber:7},this),e.jsxDEV("div",{className:"flex items-center gap-1 mb-6",children:k.map(s=>e.jsxDEV("button",{onClick:()=>b(s.label),className:`px-3 py-1 text-xs rounded-full transition-colors ${n===s.label?"bg-accent text-text-inverse":"text-text-tertiary hover:text-text-primary hover:bg-surface-hover"}`,children:s.label},s.label,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:143,columnNumber:11},this))},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:141,columnNumber:7},this),e.jsxDEV("div",{className:"grid grid-cols-4 gap-4 mb-8",children:[e.jsxDEV(p,{label:"Total",value:c.total,onClick:()=>a()},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:159,columnNumber:9},this),e.jsxDEV(p,{label:"Running",value:c.running,colorClass:"text-status-active",onClick:()=>a(void 0,"running")},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:160,columnNumber:9},this),e.jsxDEV(p,{label:"Completed",value:c.completed,colorClass:"text-status-success",onClick:()=>a(void 0,"completed")},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:161,columnNumber:9},this),e.jsxDEV(p,{label:"Failed",value:c.failed,colorClass:"text-status-error",onClick:()=>a(void 0,"failed")},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:162,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:158,columnNumber:7},this),v.length>0&&e.jsxDEV("table",{className:"w-full text-left",children:[e.jsxDEV("thead",{children:e.jsxDEV("tr",{className:"border-b border-surface-border",children:[e.jsxDEV("th",{className:d,children:"Type"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:170,columnNumber:15},this),e.jsxDEV("th",{className:`${d} text-right w-20`,children:"Total"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:171,columnNumber:15},this),e.jsxDEV("th",{className:`${d} text-right w-20`,children:"Running"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:172,columnNumber:15},this),e.jsxDEV("th",{className:`${d} text-right w-24`,children:"Completed"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:173,columnNumber:15},this),e.jsxDEV("th",{className:`${d} text-right w-20`,children:"Failed"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:174,columnNumber:15},this),e.jsxDEV("th",{className:`${d} text-right w-28`,children:"Avg Duration"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:175,columnNumber:15},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:169,columnNumber:13},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:168,columnNumber:11},this),e.jsxDEV("tbody",{children:v.map(s=>e.jsxDEV("tr",{className:"border-b border-surface-border last:border-b-0",children:[e.jsxDEV("td",{className:"py-3 text-sm font-mono text-text-primary",children:e.jsxDEV("button",{onClick:()=>a(s.type),className:"hover:text-accent hover:underline",children:s.type},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:182,columnNumber:19},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:181,columnNumber:17},this),e.jsxDEV("td",{className:"py-3 text-sm text-right",children:e.jsxDEV(w,{value:s.total,colorClass:"text-text-secondary",onClick:()=>a(s.type)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:190,columnNumber:19},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:189,columnNumber:17},this),e.jsxDEV("td",{className:"py-3 text-sm text-right",children:e.jsxDEV(w,{value:s.running,colorClass:"text-status-active",onClick:()=>a(s.type,"running")},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:193,columnNumber:19},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:192,columnNumber:17},this),e.jsxDEV("td",{className:"py-3 text-sm text-right",children:e.jsxDEV(w,{value:s.completed,colorClass:"text-status-success",onClick:()=>a(s.type,"completed")},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:196,columnNumber:19},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:195,columnNumber:17},this),e.jsxDEV("td",{className:"py-3 text-sm text-right",children:e.jsxDEV(w,{value:s.failed,colorClass:"text-status-error",onClick:()=>a(s.type,"failed")},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:199,columnNumber:19},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:198,columnNumber:17},this),e.jsxDEV("td",{className:"py-3 text-sm font-mono text-text-secondary text-right",children:s.avgDuration!==null?V(s.avgDuration):"—"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:201,columnNumber:17},this)]},s.type,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:180,columnNumber:15},this))},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:178,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:167,columnNumber:9},this),v.length===0&&e.jsxDEV("div",{className:"py-16 text-center",children:e.jsxDEV("p",{className:"text-sm text-text-tertiary",children:["No workflow activity in the last ",n]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:212,columnNumber:11},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:211,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/WorkflowsOverview.tsx",lineNumber:130,columnNumber:5},this)}export{L as WorkflowsOverview};
2
- //# sourceMappingURL=WorkflowsOverview-BhgE0RS8.js.map
@@ -1,33 +0,0 @@
1
- import{j as s}from"./index-DgCS2Frb.js";import{c as gr,d as wr}from"./yaml-workflows-Bz7yEnhl.js";import{S as br}from"./StatusBadge-mk-dJwPT.js";import{N as vr}from"./NamespacePill-eGsbJBFa.js";import{B as Nr,P as Ar,a9 as kr,g as pe,W as yr,a2 as Er,ah as Dr}from"./vendor-icons-CNyYGNsk.js";import{e as _r,c as Cr}from"./vendor-react-zA2lQFDs.js";import"./vendor-query-DLp59M9_.js";/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function Se(e){return typeof e>"u"||e===null}function Sr(e){return typeof e=="object"&&e!==null}function Fr(e){return Array.isArray(e)?e:Se(e)?[]:[e]}function Tr(e,r){var i,l,n,a;if(r)for(a=Object.keys(r),i=0,l=a.length;i<l;i+=1)n=a[i],e[n]=r[n];return e}function Or(e,r){var i="",l;for(l=0;l<r;l+=1)i+=e;return i}function Pr(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Yr=Se,Ir=Sr,jr=Fr,Lr=Or,Wr=Pr,Rr=Tr,N={isNothing:Yr,isObject:Ir,toArray:jr,repeat:Lr,isNegativeZero:Wr,extend:Rr};function Fe(e,r){var i="",l=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+='in "'+e.mark.name+'" '),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(i+=`
2
-
3
- `+e.mark.snippet),l+" "+i):l}function M(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=Fe(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}M.prototype=Object.create(Error.prototype);M.prototype.constructor=M;M.prototype.toString=function(r){return this.name+": "+Fe(this,r)};var y=M;function X(e,r,i,l,n){var a="",o="",u=Math.floor(n/2)-1;return l-r>u&&(a=" ... ",r=l-u+a.length),i-l>u&&(o=" ...",i=l+u-o.length),{str:a+e.slice(r,i).replace(/\t/g,"→")+o,pos:l-r+a.length}}function Z(e,r){return N.repeat(" ",r-e.length)+e}function Mr(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var i=/\r?\n|\r|\0/g,l=[0],n=[],a,o=-1;a=i.exec(e.buffer);)n.push(a.index),l.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=l.length-2);o<0&&(o=l.length-1);var u="",t,c,p=Math.min(e.line+r.linesAfter,n.length).toString().length,f=r.maxLength-(r.indent+p+3);for(t=1;t<=r.linesBefore&&!(o-t<0);t++)c=X(e.buffer,l[o-t],n[o-t],e.position-(l[o]-l[o-t]),f),u=N.repeat(" ",r.indent)+Z((e.line-t+1).toString(),p)+" | "+c.str+`
4
- `+u;for(c=X(e.buffer,l[o],n[o],e.position,f),u+=N.repeat(" ",r.indent)+Z((e.line+1).toString(),p)+" | "+c.str+`
5
- `,u+=N.repeat("-",r.indent+p+3+c.pos)+`^
6
- `,t=1;t<=r.linesAfter&&!(o+t>=n.length);t++)c=X(e.buffer,l[o+t],n[o+t],e.position-(l[o]-l[o+t]),f),u+=N.repeat(" ",r.indent)+Z((e.line+t+1).toString(),p)+" | "+c.str+`
7
- `;return u.replace(/\n$/,"")}var Vr=Mr,Br=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Hr=["scalar","sequence","mapping"];function Ur(e){var r={};return e!==null&&Object.keys(e).forEach(function(i){e[i].forEach(function(l){r[String(l)]=i})}),r}function qr(e,r){if(r=r||{},Object.keys(r).forEach(function(i){if(Br.indexOf(i)===-1)throw new y('Unknown option "'+i+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(i){return i},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=Ur(r.styleAliases||null),Hr.indexOf(this.kind)===-1)throw new y('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var A=qr;function de(e,r){var i=[];return e[r].forEach(function(l){var n=i.length;i.forEach(function(a,o){a.tag===l.tag&&a.kind===l.kind&&a.multi===l.multi&&(n=o)}),i[n]=l}),i}function Kr(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,i;function l(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(r=0,i=arguments.length;r<i;r+=1)arguments[r].forEach(l);return e}function ee(e){return this.extend(e)}ee.prototype.extend=function(r){var i=[],l=[];if(r instanceof A)l.push(r);else if(Array.isArray(r))l=l.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(i=i.concat(r.implicit)),r.explicit&&(l=l.concat(r.explicit));else throw new y("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(a){if(!(a instanceof A))throw new y("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new y("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new y("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(a){if(!(a instanceof A))throw new y("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(ee.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(l),n.compiledImplicit=de(n,"implicit"),n.compiledExplicit=de(n,"explicit"),n.compiledTypeMap=Kr(n.compiledImplicit,n.compiledExplicit),n};var Te=ee,Oe=new A("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Pe=new A("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Ye=new A("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Ie=new Te({explicit:[Oe,Pe,Ye]});function Gr(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function $r(){return null}function Qr(e){return e===null}var je=new A("tag:yaml.org,2002:null",{kind:"scalar",resolve:Gr,construct:$r,predicate:Qr,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Xr(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function Zr(e){return e==="true"||e==="True"||e==="TRUE"}function zr(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Le=new A("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Xr,construct:Zr,predicate:zr,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Jr(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function ei(e){return 48<=e&&e<=55}function ri(e){return 48<=e&&e<=57}function ii(e){if(e===null)return!1;var r=e.length,i=0,l=!1,n;if(!r)return!1;if(n=e[i],(n==="-"||n==="+")&&(n=e[++i]),n==="0"){if(i+1===r)return!0;if(n=e[++i],n==="b"){for(i++;i<r;i++)if(n=e[i],n!=="_"){if(n!=="0"&&n!=="1")return!1;l=!0}return l&&n!=="_"}if(n==="x"){for(i++;i<r;i++)if(n=e[i],n!=="_"){if(!Jr(e.charCodeAt(i)))return!1;l=!0}return l&&n!=="_"}if(n==="o"){for(i++;i<r;i++)if(n=e[i],n!=="_"){if(!ei(e.charCodeAt(i)))return!1;l=!0}return l&&n!=="_"}}if(n==="_")return!1;for(;i<r;i++)if(n=e[i],n!=="_"){if(!ri(e.charCodeAt(i)))return!1;l=!0}return!(!l||n==="_")}function ni(e){var r=e,i=1,l;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),l=r[0],(l==="-"||l==="+")&&(l==="-"&&(i=-1),r=r.slice(1),l=r[0]),r==="0")return 0;if(l==="0"){if(r[1]==="b")return i*parseInt(r.slice(2),2);if(r[1]==="x")return i*parseInt(r.slice(2),16);if(r[1]==="o")return i*parseInt(r.slice(2),8)}return i*parseInt(r,10)}function li(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!N.isNegativeZero(e)}var We=new A("tag:yaml.org,2002:int",{kind:"scalar",resolve:ii,construct:ni,predicate:li,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),oi=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ai(e){return!(e===null||!oi.test(e)||e[e.length-1]==="_")}function ui(e){var r,i;return r=e.replace(/_/g,"").toLowerCase(),i=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:i*parseFloat(r,10)}var ti=/^[-+]?[0-9]+e/;function ci(e,r){var i;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(N.isNegativeZero(e))return"-0.0";return i=e.toString(10),ti.test(i)?i.replace("e",".e"):i}function fi(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||N.isNegativeZero(e))}var Re=new A("tag:yaml.org,2002:float",{kind:"scalar",resolve:ai,construct:ui,predicate:fi,represent:ci,defaultStyle:"lowercase"}),Me=Ie.extend({implicit:[je,Le,We,Re]}),Ve=Me,Be=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),He=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function si(e){return e===null?!1:Be.exec(e)!==null||He.exec(e)!==null}function pi(e){var r,i,l,n,a,o,u,t=0,c=null,p,f,m;if(r=Be.exec(e),r===null&&(r=He.exec(e)),r===null)throw new Error("Date resolve error");if(i=+r[1],l=+r[2]-1,n=+r[3],!r[4])return new Date(Date.UTC(i,l,n));if(a=+r[4],o=+r[5],u=+r[6],r[7]){for(t=r[7].slice(0,3);t.length<3;)t+="0";t=+t}return r[9]&&(p=+r[10],f=+(r[11]||0),c=(p*60+f)*6e4,r[9]==="-"&&(c=-c)),m=new Date(Date.UTC(i,l,n,a,o,u,t)),c&&m.setTime(m.getTime()-c),m}function di(e){return e.toISOString()}var Ue=new A("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:si,construct:pi,instanceOf:Date,represent:di});function mi(e){return e==="<<"||e===null}var qe=new A("tag:yaml.org,2002:merge",{kind:"scalar",resolve:mi}),ae=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
8
- \r`;function hi(e){if(e===null)return!1;var r,i,l=0,n=e.length,a=ae;for(i=0;i<n;i++)if(r=a.indexOf(e.charAt(i)),!(r>64)){if(r<0)return!1;l+=6}return l%8===0}function xi(e){var r,i,l=e.replace(/[\r\n=]/g,""),n=l.length,a=ae,o=0,u=[];for(r=0;r<n;r++)r%4===0&&r&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|a.indexOf(l.charAt(r));return i=n%4*6,i===0?(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)):i===18?(u.push(o>>10&255),u.push(o>>2&255)):i===12&&u.push(o>>4&255),new Uint8Array(u)}function gi(e){var r="",i=0,l,n,a=e.length,o=ae;for(l=0;l<a;l++)l%3===0&&l&&(r+=o[i>>18&63],r+=o[i>>12&63],r+=o[i>>6&63],r+=o[i&63]),i=(i<<8)+e[l];return n=a%3,n===0?(r+=o[i>>18&63],r+=o[i>>12&63],r+=o[i>>6&63],r+=o[i&63]):n===2?(r+=o[i>>10&63],r+=o[i>>4&63],r+=o[i<<2&63],r+=o[64]):n===1&&(r+=o[i>>2&63],r+=o[i<<4&63],r+=o[64],r+=o[64]),r}function wi(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Ke=new A("tag:yaml.org,2002:binary",{kind:"scalar",resolve:hi,construct:xi,predicate:wi,represent:gi}),bi=Object.prototype.hasOwnProperty,vi=Object.prototype.toString;function Ni(e){if(e===null)return!0;var r=[],i,l,n,a,o,u=e;for(i=0,l=u.length;i<l;i+=1){if(n=u[i],o=!1,vi.call(n)!=="[object Object]")return!1;for(a in n)if(bi.call(n,a))if(!o)o=!0;else return!1;if(!o)return!1;if(r.indexOf(a)===-1)r.push(a);else return!1}return!0}function Ai(e){return e!==null?e:[]}var Ge=new A("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ni,construct:Ai}),ki=Object.prototype.toString;function yi(e){if(e===null)return!0;var r,i,l,n,a,o=e;for(a=new Array(o.length),r=0,i=o.length;r<i;r+=1){if(l=o[r],ki.call(l)!=="[object Object]"||(n=Object.keys(l),n.length!==1))return!1;a[r]=[n[0],l[n[0]]]}return!0}function Ei(e){if(e===null)return[];var r,i,l,n,a,o=e;for(a=new Array(o.length),r=0,i=o.length;r<i;r+=1)l=o[r],n=Object.keys(l),a[r]=[n[0],l[n[0]]];return a}var $e=new A("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:yi,construct:Ei}),Di=Object.prototype.hasOwnProperty;function _i(e){if(e===null)return!0;var r,i=e;for(r in i)if(Di.call(i,r)&&i[r]!==null)return!1;return!0}function Ci(e){return e!==null?e:{}}var Qe=new A("tag:yaml.org,2002:set",{kind:"mapping",resolve:_i,construct:Ci}),ue=Ve.extend({implicit:[Ue,qe],explicit:[Ke,Ge,$e,Qe]}),F=Object.prototype.hasOwnProperty,U=1,Xe=2,Ze=3,q=4,z=1,Si=2,me=3,Fi=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ti=/[\x85\u2028\u2029]/,Oi=/[,\[\]\{\}]/,ze=/^(?:!|!!|![a-z\-]+!)$/i,Je=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function he(e){return Object.prototype.toString.call(e)}function _(e){return e===10||e===13}function T(e){return e===9||e===32}function E(e){return e===9||e===32||e===10||e===13}function j(e){return e===44||e===91||e===93||e===123||e===125}function Pi(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function Yi(e){return e===120?2:e===117?4:e===85?8:0}function Ii(e){return 48<=e&&e<=57?e-48:-1}function xe(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
9
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function ji(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function er(e,r,i){r==="__proto__"?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:i}):e[r]=i}var rr=new Array(256),ir=new Array(256);for(var O=0;O<256;O++)rr[O]=xe(O)?1:0,ir[O]=xe(O);function Li(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||ue,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function nr(e,r){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=Vr(i),new y(r,i)}function d(e,r){throw nr(e,r)}function K(e,r){e.onWarning&&e.onWarning.call(null,nr(e,r))}var ge={YAML:function(r,i,l){var n,a,o;r.version!==null&&d(r,"duplication of %YAML directive"),l.length!==1&&d(r,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),n===null&&d(r,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),o=parseInt(n[2],10),a!==1&&d(r,"unacceptable YAML version of the document"),r.version=l[0],r.checkLineBreaks=o<2,o!==1&&o!==2&&K(r,"unsupported YAML version of the document")},TAG:function(r,i,l){var n,a;l.length!==2&&d(r,"TAG directive accepts exactly two arguments"),n=l[0],a=l[1],ze.test(n)||d(r,"ill-formed tag handle (first argument) of the TAG directive"),F.call(r.tagMap,n)&&d(r,'there is a previously declared suffix for "'+n+'" tag handle'),Je.test(a)||d(r,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{d(r,"tag prefix is malformed: "+a)}r.tagMap[n]=a}};function S(e,r,i,l){var n,a,o,u;if(r<i){if(u=e.input.slice(r,i),l)for(n=0,a=u.length;n<a;n+=1)o=u.charCodeAt(n),o===9||32<=o&&o<=1114111||d(e,"expected valid JSON character");else Fi.test(u)&&d(e,"the stream contains non-printable characters");e.result+=u}}function we(e,r,i,l){var n,a,o,u;for(N.isObject(i)||d(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(i),o=0,u=n.length;o<u;o+=1)a=n[o],F.call(r,a)||(er(r,a,i[a]),l[a]=!0)}function L(e,r,i,l,n,a,o,u,t){var c,p;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,p=n.length;c<p;c+=1)Array.isArray(n[c])&&d(e,"nested arrays are not supported inside keys"),typeof n=="object"&&he(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&he(n)==="[object Object]"&&(n="[object Object]"),n=String(n),r===null&&(r={}),l==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,p=a.length;c<p;c+=1)we(e,r,a[c],i);else we(e,r,a,i);else!e.json&&!F.call(i,n)&&F.call(r,n)&&(e.line=o||e.line,e.lineStart=u||e.lineStart,e.position=t||e.position,d(e,"duplicated mapping key")),er(r,n,a),delete i[n];return r}function te(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):d(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function v(e,r,i){for(var l=0,n=e.input.charCodeAt(e.position);n!==0;){for(;T(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(r&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(_(n))for(te(e),n=e.input.charCodeAt(e.position),l++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return i!==-1&&l!==0&&e.lineIndent<i&&K(e,"deficient indentation"),l}function Q(e){var r=e.position,i;return i=e.input.charCodeAt(r),!!((i===45||i===46)&&i===e.input.charCodeAt(r+1)&&i===e.input.charCodeAt(r+2)&&(r+=3,i=e.input.charCodeAt(r),i===0||E(i)))}function ce(e,r){r===1?e.result+=" ":r>1&&(e.result+=N.repeat(`
10
- `,r-1))}function Wi(e,r,i){var l,n,a,o,u,t,c,p,f=e.kind,m=e.result,h;if(h=e.input.charCodeAt(e.position),E(h)||j(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(n=e.input.charCodeAt(e.position+1),E(n)||i&&j(n)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,u=!1;h!==0;){if(h===58){if(n=e.input.charCodeAt(e.position+1),E(n)||i&&j(n))break}else if(h===35){if(l=e.input.charCodeAt(e.position-1),E(l))break}else{if(e.position===e.lineStart&&Q(e)||i&&j(h))break;if(_(h))if(t=e.line,c=e.lineStart,p=e.lineIndent,v(e,!1,-1),e.lineIndent>=r){u=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=t,e.lineStart=c,e.lineIndent=p;break}}u&&(S(e,a,o,!1),ce(e,e.line-t),a=o=e.position,u=!1),T(h)||(o=e.position+1),h=e.input.charCodeAt(++e.position)}return S(e,a,o,!1),e.result?!0:(e.kind=f,e.result=m,!1)}function Ri(e,r){var i,l,n;if(i=e.input.charCodeAt(e.position),i!==39)return!1;for(e.kind="scalar",e.result="",e.position++,l=n=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if(S(e,l,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)l=e.position,e.position++,n=e.position;else return!0;else _(i)?(S(e,l,n,!0),ce(e,v(e,!1,r)),l=n=e.position):e.position===e.lineStart&&Q(e)?d(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);d(e,"unexpected end of the stream within a single quoted scalar")}function Mi(e,r){var i,l,n,a,o,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,i=l=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return S(e,i,e.position,!0),e.position++,!0;if(u===92){if(S(e,i,e.position,!0),u=e.input.charCodeAt(++e.position),_(u))v(e,!1,r);else if(u<256&&rr[u])e.result+=ir[u],e.position++;else if((o=Yi(u))>0){for(n=o,a=0;n>0;n--)u=e.input.charCodeAt(++e.position),(o=Pi(u))>=0?a=(a<<4)+o:d(e,"expected hexadecimal character");e.result+=ji(a),e.position++}else d(e,"unknown escape sequence");i=l=e.position}else _(u)?(S(e,i,l,!0),ce(e,v(e,!1,r)),i=l=e.position):e.position===e.lineStart&&Q(e)?d(e,"unexpected end of the document within a double quoted scalar"):(e.position++,l=e.position)}d(e,"unexpected end of the stream within a double quoted scalar")}function Vi(e,r){var i=!0,l,n,a,o=e.tag,u,t=e.anchor,c,p,f,m,h,x=Object.create(null),w,b,D,g;if(g=e.input.charCodeAt(e.position),g===91)p=93,h=!1,u=[];else if(g===123)p=125,h=!0,u={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),g=e.input.charCodeAt(++e.position);g!==0;){if(v(e,!0,r),g=e.input.charCodeAt(e.position),g===p)return e.position++,e.tag=o,e.anchor=t,e.kind=h?"mapping":"sequence",e.result=u,!0;i?g===44&&d(e,"expected the node content, but found ','"):d(e,"missed comma between flow collection entries"),b=w=D=null,f=m=!1,g===63&&(c=e.input.charCodeAt(e.position+1),E(c)&&(f=m=!0,e.position++,v(e,!0,r))),l=e.line,n=e.lineStart,a=e.position,W(e,r,U,!1,!0),b=e.tag,w=e.result,v(e,!0,r),g=e.input.charCodeAt(e.position),(m||e.line===l)&&g===58&&(f=!0,g=e.input.charCodeAt(++e.position),v(e,!0,r),W(e,r,U,!1,!0),D=e.result),h?L(e,u,x,b,w,D,l,n,a):f?u.push(L(e,null,x,b,w,D,l,n,a)):u.push(w),v(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(i=!0,g=e.input.charCodeAt(++e.position)):i=!1}d(e,"unexpected end of the stream within a flow collection")}function Bi(e,r){var i,l,n=z,a=!1,o=!1,u=r,t=0,c=!1,p,f;if(f=e.input.charCodeAt(e.position),f===124)l=!1;else if(f===62)l=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)z===n?n=f===43?me:Si:d(e,"repeat of a chomping mode identifier");else if((p=Ii(f))>=0)p===0?d(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?d(e,"repeat of an indentation width identifier"):(u=r+p-1,o=!0);else break;if(T(f)){do f=e.input.charCodeAt(++e.position);while(T(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!_(f)&&f!==0)}for(;f!==0;){for(te(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<u)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>u&&(u=e.lineIndent),_(f)){t++;continue}if(e.lineIndent<u){n===me?e.result+=N.repeat(`
11
- `,a?1+t:t):n===z&&a&&(e.result+=`
12
- `);break}for(l?T(f)?(c=!0,e.result+=N.repeat(`
13
- `,a?1+t:t)):c?(c=!1,e.result+=N.repeat(`
14
- `,t+1)):t===0?a&&(e.result+=" "):e.result+=N.repeat(`
15
- `,t):e.result+=N.repeat(`
16
- `,a?1+t:t),a=!0,o=!0,t=0,i=e.position;!_(f)&&f!==0;)f=e.input.charCodeAt(++e.position);S(e,i,e.position,!1)}return!0}function be(e,r){var i,l=e.tag,n=e.anchor,a=[],o,u=!1,t;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),t=e.input.charCodeAt(e.position);t!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,d(e,"tab characters must not be used in indentation")),!(t!==45||(o=e.input.charCodeAt(e.position+1),!E(o))));){if(u=!0,e.position++,v(e,!0,-1)&&e.lineIndent<=r){a.push(null),t=e.input.charCodeAt(e.position);continue}if(i=e.line,W(e,r,Ze,!1,!0),a.push(e.result),v(e,!0,-1),t=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>r)&&t!==0)d(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return u?(e.tag=l,e.anchor=n,e.kind="sequence",e.result=a,!0):!1}function Hi(e,r,i){var l,n,a,o,u,t,c=e.tag,p=e.anchor,f={},m=Object.create(null),h=null,x=null,w=null,b=!1,D=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),g=e.input.charCodeAt(e.position);g!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,d(e,"tab characters must not be used in indentation")),l=e.input.charCodeAt(e.position+1),a=e.line,(g===63||g===58)&&E(l))g===63?(b&&(L(e,f,m,h,x,null,o,u,t),h=x=w=null),D=!0,b=!0,n=!0):b?(b=!1,n=!0):d(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=l;else{if(o=e.line,u=e.lineStart,t=e.position,!W(e,i,Xe,!1,!0))break;if(e.line===a){for(g=e.input.charCodeAt(e.position);T(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),E(g)||d(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(L(e,f,m,h,x,null,o,u,t),h=x=w=null),D=!0,b=!1,n=!1,h=e.tag,x=e.result;else if(D)d(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=p,!0}else if(D)d(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=p,!0}if((e.line===a||e.lineIndent>r)&&(b&&(o=e.line,u=e.lineStart,t=e.position),W(e,r,q,!0,n)&&(b?x=e.result:w=e.result),b||(L(e,f,m,h,x,w,o,u,t),h=x=w=null),v(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>r)&&g!==0)d(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return b&&L(e,f,m,h,x,null,o,u,t),D&&(e.tag=c,e.anchor=p,e.kind="mapping",e.result=f),D}function Ui(e){var r,i=!1,l=!1,n,a,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&d(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(i=!0,o=e.input.charCodeAt(++e.position)):o===33?(l=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",r=e.position,i){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(r,e.position),o=e.input.charCodeAt(++e.position)):d(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!E(o);)o===33&&(l?d(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(r-1,e.position+1),ze.test(n)||d(e,"named tag handle cannot contain such characters"),l=!0,r=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(r,e.position),Oi.test(a)&&d(e,"tag suffix cannot contain flow indicator characters")}a&&!Je.test(a)&&d(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{d(e,"tag name is malformed: "+a)}return i?e.tag=a:F.call(e.tagMap,n)?e.tag=e.tagMap[n]+a:n==="!"?e.tag="!"+a:n==="!!"?e.tag="tag:yaml.org,2002:"+a:d(e,'undeclared tag handle "'+n+'"'),!0}function qi(e){var r,i;if(i=e.input.charCodeAt(e.position),i!==38)return!1;for(e.anchor!==null&&d(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position),r=e.position;i!==0&&!E(i)&&!j(i);)i=e.input.charCodeAt(++e.position);return e.position===r&&d(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function Ki(e){var r,i,l;if(l=e.input.charCodeAt(e.position),l!==42)return!1;for(l=e.input.charCodeAt(++e.position),r=e.position;l!==0&&!E(l)&&!j(l);)l=e.input.charCodeAt(++e.position);return e.position===r&&d(e,"name of an alias node must contain at least one character"),i=e.input.slice(r,e.position),F.call(e.anchorMap,i)||d(e,'unidentified alias "'+i+'"'),e.result=e.anchorMap[i],v(e,!0,-1),!0}function W(e,r,i,l,n){var a,o,u,t=1,c=!1,p=!1,f,m,h,x,w,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=u=q===i||Ze===i,l&&v(e,!0,-1)&&(c=!0,e.lineIndent>r?t=1:e.lineIndent===r?t=0:e.lineIndent<r&&(t=-1)),t===1)for(;Ui(e)||qi(e);)v(e,!0,-1)?(c=!0,u=a,e.lineIndent>r?t=1:e.lineIndent===r?t=0:e.lineIndent<r&&(t=-1)):u=!1;if(u&&(u=c||n),(t===1||q===i)&&(U===i||Xe===i?w=r:w=r+1,b=e.position-e.lineStart,t===1?u&&(be(e,b)||Hi(e,b,w))||Vi(e,w)?p=!0:(o&&Bi(e,w)||Ri(e,w)||Mi(e,w)?p=!0:Ki(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&d(e,"alias node should not have any properties")):Wi(e,w,U===i)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):t===0&&(p=u&&be(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&d(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,m=e.implicitTypes.length;f<m;f+=1)if(x=e.implicitTypes[f],x.resolve(e.result)){e.result=x.construct(e.result),e.tag=x.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(F.call(e.typeMap[e.kind||"fallback"],e.tag))x=e.typeMap[e.kind||"fallback"][e.tag];else for(x=null,h=e.typeMap.multi[e.kind||"fallback"],f=0,m=h.length;f<m;f+=1)if(e.tag.slice(0,h[f].tag.length)===h[f].tag){x=h[f];break}x||d(e,"unknown tag !<"+e.tag+">"),e.result!==null&&x.kind!==e.kind&&d(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+x.kind+'", not "'+e.kind+'"'),x.resolve(e.result,e.tag)?(e.result=x.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):d(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function Gi(e){var r=e.position,i,l,n,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(v(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),i=e.position;o!==0&&!E(o);)o=e.input.charCodeAt(++e.position);for(l=e.input.slice(i,e.position),n=[],l.length<1&&d(e,"directive name must not be less than one character in length");o!==0;){for(;T(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!_(o));break}if(_(o))break;for(i=e.position;o!==0&&!E(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(i,e.position))}o!==0&&te(e),F.call(ge,l)?ge[l](e,l,n):K(e,'unknown document directive "'+l+'"')}if(v(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,v(e,!0,-1)):a&&d(e,"directives end mark is expected"),W(e,e.lineIndent-1,q,!1,!0),v(e,!0,-1),e.checkLineBreaks&&Ti.test(e.input.slice(r,e.position))&&K(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Q(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,v(e,!0,-1));return}if(e.position<e.length-1)d(e,"end of the stream or a document separator is expected");else return}function lr(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
17
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var i=new Li(e,r),l=e.indexOf("\0");for(l!==-1&&(i.position=l,d(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Gi(i);return i.documents}function $i(e,r,i){r!==null&&typeof r=="object"&&typeof i>"u"&&(i=r,r=null);var l=lr(e,i);if(typeof r!="function")return l;for(var n=0,a=l.length;n<a;n+=1)r(l[n])}function Qi(e,r){var i=lr(e,r);if(i.length!==0){if(i.length===1)return i[0];throw new y("expected a single document in the stream, but found more")}}var Xi=$i,Zi=Qi,or={loadAll:Xi,load:Zi},ar=Object.prototype.toString,ur=Object.prototype.hasOwnProperty,fe=65279,zi=9,V=10,Ji=13,en=32,rn=33,nn=34,re=35,ln=37,on=38,an=39,un=42,tr=44,tn=45,G=58,cn=61,fn=62,sn=63,pn=64,cr=91,fr=93,dn=96,sr=123,mn=124,pr=125,k={};k[0]="\\0";k[7]="\\a";k[8]="\\b";k[9]="\\t";k[10]="\\n";k[11]="\\v";k[12]="\\f";k[13]="\\r";k[27]="\\e";k[34]='\\"';k[92]="\\\\";k[133]="\\N";k[160]="\\_";k[8232]="\\L";k[8233]="\\P";var hn=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],xn=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function gn(e,r){var i,l,n,a,o,u,t;if(r===null)return{};for(i={},l=Object.keys(r),n=0,a=l.length;n<a;n+=1)o=l[n],u=String(r[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),t=e.compiledTypeMap.fallback[o],t&&ur.call(t.styleAliases,u)&&(u=t.styleAliases[u]),i[o]=u;return i}function wn(e){var r,i,l;if(r=e.toString(16).toUpperCase(),e<=255)i="x",l=2;else if(e<=65535)i="u",l=4;else if(e<=4294967295)i="U",l=8;else throw new y("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+i+N.repeat("0",l-r.length)+r}var bn=1,B=2;function vn(e){this.schema=e.schema||ue,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=N.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=gn(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?B:bn,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ve(e,r){for(var i=N.repeat(" ",r),l=0,n=-1,a="",o,u=e.length;l<u;)n=e.indexOf(`
18
- `,l),n===-1?(o=e.slice(l),l=u):(o=e.slice(l,n+1),l=n+1),o.length&&o!==`
19
- `&&(a+=i),a+=o;return a}function ie(e,r){return`
20
- `+N.repeat(" ",e.indent*r)}function Nn(e,r){var i,l,n;for(i=0,l=e.implicitTypes.length;i<l;i+=1)if(n=e.implicitTypes[i],n.resolve(r))return!0;return!1}function $(e){return e===en||e===zi}function H(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==fe||65536<=e&&e<=1114111}function Ne(e){return H(e)&&e!==fe&&e!==Ji&&e!==V}function Ae(e,r,i){var l=Ne(e),n=l&&!$(e);return(i?l:l&&e!==tr&&e!==cr&&e!==fr&&e!==sr&&e!==pr)&&e!==re&&!(r===G&&!n)||Ne(r)&&!$(r)&&e===re||r===G&&n}function An(e){return H(e)&&e!==fe&&!$(e)&&e!==tn&&e!==sn&&e!==G&&e!==tr&&e!==cr&&e!==fr&&e!==sr&&e!==pr&&e!==re&&e!==on&&e!==un&&e!==rn&&e!==mn&&e!==cn&&e!==fn&&e!==an&&e!==nn&&e!==ln&&e!==pn&&e!==dn}function kn(e){return!$(e)&&e!==G}function R(e,r){var i=e.charCodeAt(r),l;return i>=55296&&i<=56319&&r+1<e.length&&(l=e.charCodeAt(r+1),l>=56320&&l<=57343)?(i-55296)*1024+l-56320+65536:i}function dr(e){var r=/^\n* /;return r.test(e)}var mr=1,ne=2,hr=3,xr=4,I=5;function yn(e,r,i,l,n,a,o,u){var t,c=0,p=null,f=!1,m=!1,h=l!==-1,x=-1,w=An(R(e,0))&&kn(R(e,e.length-1));if(r||o)for(t=0;t<e.length;c>=65536?t+=2:t++){if(c=R(e,t),!H(c))return I;w=w&&Ae(c,p,u),p=c}else{for(t=0;t<e.length;c>=65536?t+=2:t++){if(c=R(e,t),c===V)f=!0,h&&(m=m||t-x-1>l&&e[x+1]!==" ",x=t);else if(!H(c))return I;w=w&&Ae(c,p,u),p=c}m=m||h&&t-x-1>l&&e[x+1]!==" "}return!f&&!m?w&&!o&&!n(e)?mr:a===B?I:ne:i>9&&dr(e)?I:o?a===B?I:ne:m?xr:hr}function En(e,r,i,l,n){e.dump=(function(){if(r.length===0)return e.quotingType===B?'""':"''";if(!e.noCompatMode&&(hn.indexOf(r)!==-1||xn.test(r)))return e.quotingType===B?'"'+r+'"':"'"+r+"'";var a=e.indent*Math.max(1,i),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),u=l||e.flowLevel>-1&&i>=e.flowLevel;function t(c){return Nn(e,c)}switch(yn(r,u,e.indent,o,t,e.quotingType,e.forceQuotes&&!l,n)){case mr:return r;case ne:return"'"+r.replace(/'/g,"''")+"'";case hr:return"|"+ke(r,e.indent)+ye(ve(r,a));case xr:return">"+ke(r,e.indent)+ye(ve(Dn(r,o),a));case I:return'"'+_n(r)+'"';default:throw new y("impossible error: invalid scalar style")}})()}function ke(e,r){var i=dr(e)?String(r):"",l=e[e.length-1]===`
21
- `,n=l&&(e[e.length-2]===`
22
- `||e===`
23
- `),a=n?"+":l?"":"-";return i+a+`
24
- `}function ye(e){return e[e.length-1]===`
25
- `?e.slice(0,-1):e}function Dn(e,r){for(var i=/(\n+)([^\n]*)/g,l=(function(){var c=e.indexOf(`
26
- `);return c=c!==-1?c:e.length,i.lastIndex=c,Ee(e.slice(0,c),r)})(),n=e[0]===`
27
- `||e[0]===" ",a,o;o=i.exec(e);){var u=o[1],t=o[2];a=t[0]===" ",l+=u+(!n&&!a&&t!==""?`
28
- `:"")+Ee(t,r),n=a}return l}function Ee(e,r){if(e===""||e[0]===" ")return e;for(var i=/ [^ ]/g,l,n=0,a,o=0,u=0,t="";l=i.exec(e);)u=l.index,u-n>r&&(a=o>n?o:u,t+=`
29
- `+e.slice(n,a),n=a+1),o=u;return t+=`
30
- `,e.length-n>r&&o>n?t+=e.slice(n,o)+`
31
- `+e.slice(o+1):t+=e.slice(n),t.slice(1)}function _n(e){for(var r="",i=0,l,n=0;n<e.length;i>=65536?n+=2:n++)i=R(e,n),l=k[i],!l&&H(i)?(r+=e[n],i>=65536&&(r+=e[n+1])):r+=l||wn(i);return r}function Cn(e,r,i){var l="",n=e.tag,a,o,u;for(a=0,o=i.length;a<o;a+=1)u=i[a],e.replacer&&(u=e.replacer.call(i,String(a),u)),(C(e,r,u,!1,!1)||typeof u>"u"&&C(e,r,null,!1,!1))&&(l!==""&&(l+=","+(e.condenseFlow?"":" ")),l+=e.dump);e.tag=n,e.dump="["+l+"]"}function De(e,r,i,l){var n="",a=e.tag,o,u,t;for(o=0,u=i.length;o<u;o+=1)t=i[o],e.replacer&&(t=e.replacer.call(i,String(o),t)),(C(e,r+1,t,!0,!0,!1,!0)||typeof t>"u"&&C(e,r+1,null,!0,!0,!1,!0))&&((!l||n!=="")&&(n+=ie(e,r)),e.dump&&V===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=a,e.dump=n||"[]"}function Sn(e,r,i){var l="",n=e.tag,a=Object.keys(i),o,u,t,c,p;for(o=0,u=a.length;o<u;o+=1)p="",l!==""&&(p+=", "),e.condenseFlow&&(p+='"'),t=a[o],c=i[t],e.replacer&&(c=e.replacer.call(i,t,c)),C(e,r,t,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),C(e,r,c,!1,!1)&&(p+=e.dump,l+=p));e.tag=n,e.dump="{"+l+"}"}function Fn(e,r,i,l){var n="",a=e.tag,o=Object.keys(i),u,t,c,p,f,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new y("sortKeys must be a boolean or a function");for(u=0,t=o.length;u<t;u+=1)m="",(!l||n!=="")&&(m+=ie(e,r)),c=o[u],p=i[c],e.replacer&&(p=e.replacer.call(i,c,p)),C(e,r+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&V===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,f&&(m+=ie(e,r)),C(e,r+1,p,!0,f)&&(e.dump&&V===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,n+=m));e.tag=a,e.dump=n||"{}"}function _e(e,r,i){var l,n,a,o,u,t;for(n=i?e.explicitTypes:e.implicitTypes,a=0,o=n.length;a<o;a+=1)if(u=n[a],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof r=="object"&&r instanceof u.instanceOf)&&(!u.predicate||u.predicate(r))){if(i?u.multi&&u.representName?e.tag=u.representName(r):e.tag=u.tag:e.tag="?",u.represent){if(t=e.styleMap[u.tag]||u.defaultStyle,ar.call(u.represent)==="[object Function]")l=u.represent(r,t);else if(ur.call(u.represent,t))l=u.represent[t](r,t);else throw new y("!<"+u.tag+'> tag resolver accepts not "'+t+'" style');e.dump=l}return!0}return!1}function C(e,r,i,l,n,a,o){e.tag=null,e.dump=i,_e(e,i,!1)||_e(e,i,!0);var u=ar.call(e.dump),t=l,c;l&&(l=e.flowLevel<0||e.flowLevel>r);var p=u==="[object Object]"||u==="[object Array]",f,m;if(p&&(f=e.duplicates.indexOf(i),m=f!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&r>0)&&(n=!1),m&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(p&&m&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),u==="[object Object]")l&&Object.keys(e.dump).length!==0?(Fn(e,r,e.dump,n),m&&(e.dump="&ref_"+f+e.dump)):(Sn(e,r,e.dump),m&&(e.dump="&ref_"+f+" "+e.dump));else if(u==="[object Array]")l&&e.dump.length!==0?(e.noArrayIndent&&!o&&r>0?De(e,r-1,e.dump,n):De(e,r,e.dump,n),m&&(e.dump="&ref_"+f+e.dump)):(Cn(e,r,e.dump),m&&(e.dump="&ref_"+f+" "+e.dump));else if(u==="[object String]")e.tag!=="?"&&En(e,e.dump,r,a,t);else{if(u==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new y("unacceptable kind of an object to dump "+u)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function Tn(e,r){var i=[],l=[],n,a;for(le(e,i,l),n=0,a=l.length;n<a;n+=1)r.duplicates.push(i[l[n]]);r.usedDuplicates=new Array(a)}function le(e,r,i){var l,n,a;if(e!==null&&typeof e=="object")if(n=r.indexOf(e),n!==-1)i.indexOf(n)===-1&&i.push(n);else if(r.push(e),Array.isArray(e))for(n=0,a=e.length;n<a;n+=1)le(e[n],r,i);else for(l=Object.keys(e),n=0,a=l.length;n<a;n+=1)le(e[l[n]],r,i)}function On(e,r){r=r||{};var i=new vn(r);i.noRefs||Tn(e,i);var l=e;return i.replacer&&(l=i.replacer.call({"":l},"",l)),C(i,0,l,!0,!0)?i.dump+`
32
- `:""}var Pn=On,Yn={dump:Pn};function se(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var In=A,jn=Te,Ln=Ie,Wn=Me,Rn=Ve,Mn=ue,Vn=or.load,Bn=or.loadAll,Hn=Yn.dump,Un=y,qn={binary:Ke,float:Re,map:Ye,null:je,pairs:$e,set:Qe,timestamp:Ue,bool:Le,int:We,merge:qe,omap:Ge,seq:Pe,str:Oe},Kn=se("safeLoad","load"),Gn=se("safeLoadAll","loadAll"),$n=se("safeDump","dump"),Qn={Type:In,Schema:jn,FAILSAFE_SCHEMA:Ln,JSON_SCHEMA:Wn,CORE_SCHEMA:Rn,DEFAULT_SCHEMA:Mn,load:Vn,loadAll:Bn,dump:Hn,YAMLException:Un,types:qn,safeLoad:Kn,safeLoadAll:Gn,safeDump:$n};function Xn({children:e,className:r=""}){return s.jsxDEV("span",{className:`px-2 py-0.5 text-[10px] bg-surface-sunken rounded-full text-text-secondary ${r}`,children:e},void 0,!1,{fileName:"/app/dashboard/src/components/common/display/Pill.tsx",lineNumber:10,columnNumber:5},this)}function P({icon:e,color:r,children:i}){return s.jsxDEV("div",{className:"flex items-center gap-2 mb-3 pb-2 border-b border-surface-border",children:[s.jsxDEV(e,{className:`w-4 h-4 ${r}`,strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:16,columnNumber:7},this),s.jsxDEV("h2",{className:"section-h2",children:i},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:17,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:15,columnNumber:5},this)}function oe({text:e}){return s.jsxDEV("p",{className:"text-[11px] text-text-quaternary py-2",children:e},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:23,columnNumber:10},this)}function Y({label:e,children:r}){return s.jsxDEV("div",{className:"flex items-baseline justify-between py-2 gap-4",children:[s.jsxDEV("span",{className:"text-[10px] uppercase tracking-widest text-text-quaternary shrink-0",children:e},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:29,columnNumber:7},this),s.jsxDEV("span",{className:"text-xs text-text-primary text-right min-w-0 truncate",children:r},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:30,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:28,columnNumber:5},this)}function J(e){return e?new Date(e).toLocaleString("en-US",{dateStyle:"medium",timeStyle:"short"}):"—"}function Zn(e){const r=(e==null?void 0:e.properties)??{};return Object.entries(r).map(([i,l])=>({key:i,type:(l==null?void 0:l.type)??"any",description:(l==null?void 0:l.description)??""}))}function Ce({schema:e,empty:r}){const i=Zn(e);return i.length===0?s.jsxDEV(oe,{text:r},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:51,columnNumber:35},this):s.jsxDEV("div",{className:"divide-y divide-surface-border/30",children:i.map(l=>s.jsxDEV("div",{className:"py-2",children:[s.jsxDEV("div",{className:"flex items-baseline gap-2",children:[s.jsxDEV("code",{className:"text-xs font-mono text-text-primary",children:l.key},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:57,columnNumber:13},this),s.jsxDEV("span",{className:"text-[10px] font-mono text-text-quaternary",children:l.type},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:58,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:56,columnNumber:11},this),l.description&&s.jsxDEV("p",{className:"text-[11px] text-text-tertiary mt-0.5 leading-snug",children:l.description},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:60,columnNumber:29},this)]},l.key,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:55,columnNumber:9},this))},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:53,columnNumber:5},this)}function ol(){var t;const{id:e=""}=_r(),r=Cr(),{data:i,isLoading:l}=gr(e),{data:n}=wr(e),a=(n==null?void 0:n.versions)??[];if(l||!i)return s.jsxDEV("div",{className:"animate-pulse space-y-4",children:[s.jsxDEV("div",{className:"h-8 bg-surface-sunken rounded w-64"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:79,columnNumber:9},this),s.jsxDEV("div",{className:"h-40 bg-surface-sunken rounded"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:80,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:78,columnNumber:7},this);const o=i.activity_manifest??[],u=(()=>{var p,f,m,h;const c=i.output_schema;if(c&&Object.keys(c).length>0)return c;try{const x=Qn.load(i.yaml_content);return((h=(m=(f=(p=x==null?void 0:x.app)==null?void 0:p.graphs)==null?void 0:f[0])==null?void 0:m.output)==null?void 0:h.schema)??void 0}catch{return}})();return s.jsxDEV("div",{children:[s.jsxDEV("div",{className:"flex items-start justify-between mb-3",children:[s.jsxDEV("div",{className:"flex items-center gap-2",children:[s.jsxDEV("h1",{className:"text-3xl font-light text-text-primary font-mono",children:i.graph_topic},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:105,columnNumber:11},this),s.jsxDEV("button",{onClick:()=>{window.location.hash="#docs:dashboard.md:mcp-pipeline-tools"},className:"text-text-quaternary hover:text-accent transition-colors mt-1",title:"Docs",children:s.jsxDEV(Nr,{className:"w-4 h-4",strokeWidth:1.5},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:111,columnNumber:13},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:106,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:104,columnNumber:9},this),s.jsxDEV("div",{className:"flex items-center gap-3",children:i.status==="active"&&s.jsxDEV("button",{onClick:()=>r(`/mcp/workflows/invoke?id=${i.id}`),className:"flex items-center gap-1.5 px-4 py-1.5 text-xs rounded-md bg-accent text-text-inverse hover:bg-accent-hover transition-colors",children:[s.jsxDEV(Ar,{className:"w-3 h-3"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:120,columnNumber:15},this)," Run"]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:116,columnNumber:13},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:114,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:103,columnNumber:7},this),s.jsxDEV("div",{className:"flex items-center gap-3 mb-2",children:[s.jsxDEV(br,{status:i.status},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:127,columnNumber:9},this),s.jsxDEV(vr,{namespace:i.app_id},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:128,columnNumber:9},this),s.jsxDEV("span",{className:"text-[11px] font-mono text-text-quaternary",children:["v",i.content_version]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:129,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:126,columnNumber:7},this),i.description&&s.jsxDEV("p",{className:"text-sm text-text-secondary mb-8 max-w-2xl leading-relaxed",children:i.description},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:133,columnNumber:9},this),((t=i.tags)==null?void 0:t.length)>0&&s.jsxDEV("div",{className:"flex items-center gap-1.5 mb-10",children:i.tags.map(c=>s.jsxDEV(Xn,{children:c},c,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:138,columnNumber:33},this))},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:137,columnNumber:9},this),s.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-x-14 gap-y-10 mb-12",children:[s.jsxDEV("div",{children:[s.jsxDEV(P,{icon:kr,color:"text-accent",children:"Overview"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:146,columnNumber:11},this),s.jsxDEV("div",{className:"divide-y divide-surface-border/30",children:[s.jsxDEV(Y,{label:"Topic",children:s.jsxDEV("code",{className:"font-mono",children:i.graph_topic},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:148,columnNumber:32},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:148,columnNumber:13},this),s.jsxDEV(Y,{label:"Namespace",children:s.jsxDEV("code",{className:"font-mono",children:i.app_id},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:149,columnNumber:36},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:149,columnNumber:13},this),s.jsxDEV(Y,{label:"App version",children:i.app_version},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:150,columnNumber:13},this),s.jsxDEV(Y,{label:"Runs as",children:i.execute_as||"caller"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:151,columnNumber:13},this),s.jsxDEV(Y,{label:"Deployed",children:J(i.deployed_at)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:152,columnNumber:13},this),s.jsxDEV(Y,{label:"Activated",children:J(i.activated_at)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:153,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:147,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:145,columnNumber:9},this),s.jsxDEV("div",{className:"space-y-10",children:[s.jsxDEV("div",{children:[s.jsxDEV(P,{icon:pe,color:"text-accent",children:"Input"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:160,columnNumber:13},this),s.jsxDEV(Ce,{schema:i.input_schema,empty:"No declared input fields"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:161,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:159,columnNumber:11},this),s.jsxDEV("div",{children:[s.jsxDEV(P,{icon:pe,color:"text-accent",children:"Output"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:164,columnNumber:13},this),s.jsxDEV(Ce,{schema:u,empty:"No declared output fields"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:165,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:163,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:158,columnNumber:9},this),s.jsxDEV("div",{children:[s.jsxDEV(P,{icon:yr,color:"text-accent",children:"Graph"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:171,columnNumber:11},this),o.length===0?s.jsxDEV(oe,{text:"A single trigger maps the input straight to the output — see the graph definition below."},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:173,columnNumber:13},this):s.jsxDEV("div",{className:"divide-y divide-surface-border/30",children:o.map(c=>s.jsxDEV("div",{className:"flex items-center justify-between py-2 gap-3",children:[s.jsxDEV("div",{className:"min-w-0",children:[s.jsxDEV("code",{className:"text-xs font-mono text-text-primary",children:c.title||c.activity_id},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:179,columnNumber:21},this),c.topic&&s.jsxDEV("p",{className:"text-[10px] font-mono text-text-quaternary truncate",children:c.topic},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:180,columnNumber:33},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:178,columnNumber:19},this),s.jsxDEV("span",{className:"text-[10px] uppercase tracking-widest text-text-quaternary shrink-0",children:c.tool_source||c.type},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:182,columnNumber:19},this)]},c.activity_id,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:177,columnNumber:17},this))},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:175,columnNumber:13},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:170,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:143,columnNumber:7},this),s.jsxDEV("div",{className:"mb-12",children:[s.jsxDEV(P,{icon:Er,color:"text-accent",children:"Definition"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:192,columnNumber:9},this),s.jsxDEV("pre",{className:"text-[11px] font-mono text-text-secondary bg-surface-sunken/50 rounded-md p-4 overflow-x-auto leading-relaxed",children:i.yaml_content},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:193,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:191,columnNumber:7},this),s.jsxDEV("div",{children:[s.jsxDEV(P,{icon:Dr,color:"text-accent",children:["Versions (",a.length,")"]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:200,columnNumber:9},this),a.length===0?s.jsxDEV(oe,{text:"No prior versions"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:202,columnNumber:11},this):s.jsxDEV("div",{className:"divide-y divide-surface-border/30",children:a.map(c=>s.jsxDEV("div",{className:"flex items-center justify-between py-2 gap-3",children:[s.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[s.jsxDEV("span",{className:"text-xs font-mono text-text-primary",children:["v",c.version]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:208,columnNumber:19},this),c.change_summary&&s.jsxDEV("span",{className:"text-[11px] text-text-tertiary truncate",children:c.change_summary},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:209,columnNumber:40},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:207,columnNumber:17},this),s.jsxDEV("span",{className:"text-[10px] text-text-quaternary shrink-0",children:J(c.created_at)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:211,columnNumber:17},this)]},c.id,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:206,columnNumber:15},this))},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:204,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:199,columnNumber:7},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowDetailPage.tsx",lineNumber:101,columnNumber:5},this)}export{ol as YamlWorkflowDetailPage};
33
- //# sourceMappingURL=YamlWorkflowDetailPage-CvIgB5y7.js.map
@@ -1,2 +0,0 @@
1
- import{u,j as e}from"./index-DgCS2Frb.js";import{u as h}from"./yaml-workflows-Bz7yEnhl.js";import{u as b}from"./useFilterParams-Ch-a71bE.js";import{P as d}from"./PageHeader-DcgGV0Y2.js";import{F as w,a as N,b as x}from"./FilterBar-DEAbNQqp.js";import{E as n}from"./EmptyState-CLVm9KmA.js";import{T as g}from"./ToolPill-BnF9lCUX.js";import{N as k}from"./NamespacePill-eGsbJBFa.js";import{S as v}from"./StatusBadge-mk-dJwPT.js";import{c as W,W as P}from"./vendor-icons-CNyYGNsk.js";import{c as D}from"./vendor-react-zA2lQFDs.js";import"./vendor-query-DLp59M9_.js";function T(){var p;const r=D(),{data:o}=u(),l=!!((p=o==null?void 0:o.ai)!=null&&p.enabled),{filters:a,setFilter:i}=b({filters:{status:"",search:""}}),{data:t,isLoading:c}=h({status:a.status||void 0,search:a.search||void 0,limit:200,offset:0}),m=(t==null?void 0:t.workflows)??[];return c?e.jsxDEV("div",{children:[e.jsxDEV(d,{title:"Configure",docsHash:"#docs:dashboard.md:mcp-pipeline-tools"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:36,columnNumber:9},this),e.jsxDEV("div",{className:"animate-pulse space-y-0",children:Array.from({length:4}).map((s,f)=>e.jsxDEV("div",{className:"h-14 border-b last:border-b-0 px-6 flex items-center",children:e.jsxDEV("div",{className:"h-3 bg-surface-sunken rounded w-full"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:40,columnNumber:15},this)},f,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:39,columnNumber:13},this))},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:37,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:35,columnNumber:7},this):e.jsxDEV("div",{children:[e.jsxDEV(d,{title:"Configure",docsHash:"#docs:dashboard.md:mcp-pipeline-tools",actions:l?e.jsxDEV("button",{onClick:()=>r("/mcp/queries/new"),className:"btn-primary text-xs",children:"Design Flow"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:55,columnNumber:13},this):void 0},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:50,columnNumber:7},this),e.jsxDEV("p",{className:"text-sm text-text-secondary mb-6 max-w-2xl leading-relaxed",children:["The compiled form of a durable workflow — the same guarantees at roughly 3× the speed. Each flow is a graph the router discovers and runs on demand. Open one to inspect or run it",l?", or design a new one from a description.":"."]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:62,columnNumber:7},this),e.jsxDEV(w,{children:[e.jsxDEV(N,{label:"Search",value:a.search,onChange:s=>i("search",s),placeholder:"Flow or namespace…"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:69,columnNumber:9},this),e.jsxDEV(x,{label:"Status",value:a.status,onChange:s=>i("status",s),options:[{value:"draft",label:"Draft"},{value:"deployed",label:"Deployed"},{value:"active",label:"Active"},{value:"archived",label:"Archived"}]},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:75,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:68,columnNumber:7},this),m.length===0?l?e.jsxDEV("div",{className:"cursor-pointer",onClick:()=>r("/mcp/queries/new"),children:e.jsxDEV(n,{icon:W,title:"No graph flows yet",description:"Open the Designer to compile your first flow from a description, or register flows at startup with the graphWorkflows config."},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:91,columnNumber:13},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:90,columnNumber:11},this):e.jsxDEV(n,{icon:P,title:"No graph flows yet",description:"Register graph flows at startup with the graphWorkflows config — see the docs for an example."},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:98,columnNumber:11},this):e.jsxDEV("table",{className:"w-full",children:[e.jsxDEV("thead",{children:e.jsxDEV("tr",{className:"border-b",children:[e.jsxDEV("th",{className:"px-6 py-3 text-left text-[10px] font-semibold uppercase tracking-widest text-text-tertiary",children:"Flow"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:108,columnNumber:15},this),e.jsxDEV("th",{className:"px-4 py-3 text-left text-[10px] font-semibold uppercase tracking-widest text-text-tertiary w-40",children:"Namespace"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:111,columnNumber:15},this),e.jsxDEV("th",{className:"px-4 py-3 text-left text-[10px] font-semibold uppercase tracking-widest text-text-tertiary w-20",children:"Version"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:114,columnNumber:15},this),e.jsxDEV("th",{className:"px-4 py-3 text-left text-[10px] font-semibold uppercase tracking-widest text-text-tertiary w-28",children:"Status"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:117,columnNumber:15},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:107,columnNumber:13},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:106,columnNumber:11},this),e.jsxDEV("tbody",{children:m.map(s=>e.jsxDEV("tr",{onClick:()=>r(`/mcp/workflows/${s.id}`),className:"border-b border-surface-border/50 hover:bg-surface-hover/40 transition-colors duration-100 cursor-pointer",children:[e.jsxDEV("td",{className:"px-6 py-2.5",children:[e.jsxDEV(g,{name:s.graph_topic,size:"md"},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:130,columnNumber:19},this),s.description&&e.jsxDEV("p",{className:"text-[11px] leading-snug text-text-quaternary mt-0.5",children:s.description},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:132,columnNumber:21},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:129,columnNumber:17},this),e.jsxDEV("td",{className:"px-4 py-2.5",children:e.jsxDEV(k,{namespace:s.app_id},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:136,columnNumber:19},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:135,columnNumber:17},this),e.jsxDEV("td",{className:"px-4 py-2.5 text-[10px] text-text-quaternary font-mono whitespace-nowrap",children:["v",s.content_version]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:138,columnNumber:17},this),e.jsxDEV("td",{className:"px-4 py-2.5 whitespace-nowrap",children:e.jsxDEV(v,{status:s.status},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:142,columnNumber:19},this)},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:141,columnNumber:17},this)]},s.id,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:124,columnNumber:15},this))},void 0,!1,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:122,columnNumber:11},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:105,columnNumber:9},this)]},void 0,!0,{fileName:"/app/dashboard/src/pages/workflows/YamlWorkflowsPage.tsx",lineNumber:49,columnNumber:5},this)}export{T as YamlWorkflowsPage};
2
- //# sourceMappingURL=YamlWorkflowsPage-DWnsgl2v.js.map