@hotmeshio/long-tail 0.22.3 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/build/api/escalations/accumulate.js +7 -1
  2. package/build/api/escalations/resolve-batch.d.ts +2 -1
  3. package/build/api/escalations/resolve-batch.js +6 -5
  4. package/build/services/escalation/batch.d.ts +4 -4
  5. package/build/services/escalation/batch.js +7 -4
  6. package/build/services/orchestrator/condition.d.ts +4 -1
  7. package/build/services/orchestrator/condition.js +4 -1
  8. package/build/types/escalation.d.ts +9 -0
  9. package/build/types/escalation.js +2 -0
  10. package/build/types/index.d.ts +1 -1
  11. package/dashboard/dist/assets/{AdminDashboard-hI5-kKpL.js → AdminDashboard-DKrqLGjn.js} +2 -2
  12. package/dashboard/dist/assets/{AdminDashboard-hI5-kKpL.js.map → AdminDashboard-DKrqLGjn.js.map} +1 -1
  13. package/dashboard/dist/assets/{AgentConfigPage-DetU4HZe.js → AgentConfigPage-BoQhRW6U.js} +2 -2
  14. package/dashboard/dist/assets/{AgentConfigPage-DetU4HZe.js.map → AgentConfigPage-BoQhRW6U.js.map} +1 -1
  15. package/dashboard/dist/assets/{AgentDetailPage-DrGXo8KQ.js → AgentDetailPage-DZhzuZmO.js} +2 -2
  16. package/dashboard/dist/assets/{AgentDetailPage-DrGXo8KQ.js.map → AgentDetailPage-DZhzuZmO.js.map} +1 -1
  17. package/dashboard/dist/assets/{AgentsPage-D4md5BzM.js → AgentsPage-5MynmbWX.js} +2 -2
  18. package/dashboard/dist/assets/{AgentsPage-D4md5BzM.js.map → AgentsPage-5MynmbWX.js.map} +1 -1
  19. package/dashboard/dist/assets/{AvailableEscalationsPage-B2bS2ZJy.js → AvailableEscalationsPage-CWMyy3IL.js} +2 -2
  20. package/dashboard/dist/assets/{AvailableEscalationsPage-B2bS2ZJy.js.map → AvailableEscalationsPage-CWMyy3IL.js.map} +1 -1
  21. package/dashboard/dist/assets/{BotPicker-BXtey255.js → BotPicker-C3LR6Sqy.js} +2 -2
  22. package/dashboard/dist/assets/{BotPicker-BXtey255.js.map → BotPicker-C3LR6Sqy.js.map} +1 -1
  23. package/dashboard/dist/assets/{BulkAssignModal-CSL_PeZv.js → BulkAssignModal-COjoOIIH.js} +2 -2
  24. package/dashboard/dist/assets/{BulkAssignModal-CSL_PeZv.js.map → BulkAssignModal-COjoOIIH.js.map} +1 -1
  25. package/dashboard/dist/assets/{CapabilitiesPage-5scufTHW.js → CapabilitiesPage-DKxLvOfB.js} +2 -2
  26. package/dashboard/dist/assets/{CapabilitiesPage-5scufTHW.js.map → CapabilitiesPage-DKxLvOfB.js.map} +1 -1
  27. package/dashboard/dist/assets/{CollapsibleSection-DjjDGxP_.js → CollapsibleSection-Cz5sRx-r.js} +2 -2
  28. package/dashboard/dist/assets/{CollapsibleSection-DjjDGxP_.js.map → CollapsibleSection-Cz5sRx-r.js.map} +1 -1
  29. package/dashboard/dist/assets/{ConfirmDeleteModal-DJSmsHQM.js → ConfirmDeleteModal-Beq1vQtY.js} +2 -2
  30. package/dashboard/dist/assets/{ConfirmDeleteModal-DJSmsHQM.js.map → ConfirmDeleteModal-Beq1vQtY.js.map} +1 -1
  31. package/dashboard/dist/assets/{CountdownTimer-C5ZRYPfF.js → CountdownTimer-BUBl_4mP.js} +2 -2
  32. package/dashboard/dist/assets/{CountdownTimer-C5ZRYPfF.js.map → CountdownTimer-BUBl_4mP.js.map} +1 -1
  33. package/dashboard/dist/assets/{CredentialsPage-CV6e60yC.js → CredentialsPage-DhiHiPsG.js} +2 -2
  34. package/dashboard/dist/assets/{CredentialsPage-CV6e60yC.js.map → CredentialsPage-DhiHiPsG.js.map} +1 -1
  35. package/dashboard/dist/assets/{CronLabel-CnqhqW0B.js → CronLabel-C9SkawB-.js} +2 -2
  36. package/dashboard/dist/assets/{CronLabel-CnqhqW0B.js.map → CronLabel-C9SkawB-.js.map} +1 -1
  37. package/dashboard/dist/assets/{ElapsedCell-C1IOn-tj.js → ElapsedCell-BeK1SUDK.js} +2 -2
  38. package/dashboard/dist/assets/{ElapsedCell-C1IOn-tj.js.map → ElapsedCell-BeK1SUDK.js.map} +1 -1
  39. package/dashboard/dist/assets/{EntityTimelinePanel-Dz6Liig4.js → EntityTimelinePanel-BThdefKj.js} +2 -2
  40. package/dashboard/dist/assets/{EntityTimelinePanel-Dz6Liig4.js.map → EntityTimelinePanel-BThdefKj.js.map} +1 -1
  41. package/dashboard/dist/assets/{EscalationListSchemaPage-bgdmLmrh.js → EscalationListSchemaPage-DlDIYb-p.js} +2 -2
  42. package/dashboard/dist/assets/{EscalationListSchemaPage-bgdmLmrh.js.map → EscalationListSchemaPage-DlDIYb-p.js.map} +1 -1
  43. package/dashboard/dist/assets/{EscalationListView-CrlD3ZGt.js → EscalationListView-DTIVuym4.js} +2 -2
  44. package/dashboard/dist/assets/{EscalationListView-CrlD3ZGt.js.map → EscalationListView-DTIVuym4.js.map} +1 -1
  45. package/dashboard/dist/assets/{EscalationSchemaPage-dxXO_T3t.js → EscalationSchemaPage-CQt-Embr.js} +2 -2
  46. package/dashboard/dist/assets/{EscalationSchemaPage-dxXO_T3t.js.map → EscalationSchemaPage-CQt-Embr.js.map} +1 -1
  47. package/dashboard/dist/assets/{EscalationTimeline-C3WQZQuM.js → EscalationTimeline-DNKNp6pL.js} +2 -2
  48. package/dashboard/dist/assets/{EscalationTimeline-C3WQZQuM.js.map → EscalationTimeline-DNKNp6pL.js.map} +1 -1
  49. package/dashboard/dist/assets/{EscalationTitleSelect-CTtcETUO.js → EscalationTitleSelect-Dewrv8wX.js} +2 -2
  50. package/dashboard/dist/assets/{EscalationTitleSelect-CTtcETUO.js.map → EscalationTitleSelect-Dewrv8wX.js.map} +1 -1
  51. package/dashboard/dist/assets/{EscalationsOverview-DAjZ7JY2.js → EscalationsOverview-BzH-Y-5x.js} +2 -2
  52. package/dashboard/dist/assets/{EscalationsOverview-DAjZ7JY2.js.map → EscalationsOverview-BzH-Y-5x.js.map} +1 -1
  53. package/dashboard/dist/assets/{EventTable-B72DQP_v.js → EventTable-C97m6IZv.js} +2 -2
  54. package/dashboard/dist/assets/{EventTable-B72DQP_v.js.map → EventTable-C97m6IZv.js.map} +1 -1
  55. package/dashboard/dist/assets/{FilterBar-CCTaA_LH.js → FilterBar-D-6xVHIw.js} +2 -2
  56. package/dashboard/dist/assets/{FilterBar-CCTaA_LH.js.map → FilterBar-D-6xVHIw.js.map} +1 -1
  57. package/dashboard/dist/assets/{GraphInvokePage-CAsCgFo3.js → GraphInvokePage-Bwi8EF9Y.js} +2 -2
  58. package/dashboard/dist/assets/{GraphInvokePage-CAsCgFo3.js.map → GraphInvokePage-Bwi8EF9Y.js.map} +1 -1
  59. package/dashboard/dist/assets/{HomePage-DseE_iSr.js → HomePage-Z_Q03C0z.js} +2 -2
  60. package/dashboard/dist/assets/{HomePage-DseE_iSr.js.map → HomePage-Z_Q03C0z.js.map} +1 -1
  61. package/dashboard/dist/assets/{ListToolbar-1zdqnjW6.js → ListToolbar-_jWTw5no.js} +2 -2
  62. package/dashboard/dist/assets/{ListToolbar-1zdqnjW6.js.map → ListToolbar-_jWTw5no.js.map} +1 -1
  63. package/dashboard/dist/assets/{McpOverview-DS_JXDW5.js → McpOverview-CjqTuP0N.js} +2 -2
  64. package/dashboard/dist/assets/{McpOverview-DS_JXDW5.js.map → McpOverview-CjqTuP0N.js.map} +1 -1
  65. package/dashboard/dist/assets/{McpQueryDetailPage-BeMUGcv3.js → McpQueryDetailPage-leCsje1U.js} +2 -2
  66. package/dashboard/dist/assets/{McpQueryDetailPage-BeMUGcv3.js.map → McpQueryDetailPage-leCsje1U.js.map} +1 -1
  67. package/dashboard/dist/assets/{McpQueryPage-CeiLO_LR.js → McpQueryPage-C-PyXYX4.js} +2 -2
  68. package/dashboard/dist/assets/{McpQueryPage-CeiLO_LR.js.map → McpQueryPage-C-PyXYX4.js.map} +1 -1
  69. package/dashboard/dist/assets/{McpRunDetailPage-DYp1uZK2.js → McpRunDetailPage-JDrr3uUQ.js} +2 -2
  70. package/dashboard/dist/assets/{McpRunDetailPage-DYp1uZK2.js.map → McpRunDetailPage-JDrr3uUQ.js.map} +1 -1
  71. package/dashboard/dist/assets/{McpRunsPage-VeaDzcL4.js → McpRunsPage-DERXQLgZ.js} +2 -2
  72. package/dashboard/dist/assets/{McpRunsPage-VeaDzcL4.js.map → McpRunsPage-DERXQLgZ.js.map} +1 -1
  73. package/dashboard/dist/assets/{OperationsPage-DK2mgaXf.js → OperationsPage-B2DA7n9m.js} +2 -2
  74. package/dashboard/dist/assets/{OperationsPage-DK2mgaXf.js.map → OperationsPage-B2DA7n9m.js.map} +1 -1
  75. package/dashboard/dist/assets/{OperatorDashboard-BNjLF0f7.js → OperatorDashboard-C8RtPv8P.js} +2 -2
  76. package/dashboard/dist/assets/{OperatorDashboard-BNjLF0f7.js.map → OperatorDashboard-C8RtPv8P.js.map} +1 -1
  77. package/dashboard/dist/assets/{PersonaDetailPage-IQ2fZLa6.js → PersonaDetailPage-ChXwJ6u5.js} +2 -2
  78. package/dashboard/dist/assets/{PersonaDetailPage-IQ2fZLa6.js.map → PersonaDetailPage-ChXwJ6u5.js.map} +1 -1
  79. package/dashboard/dist/assets/{PersonasPage-DpGFEcU-.js → PersonasPage-BFFxncSE.js} +2 -2
  80. package/dashboard/dist/assets/{PersonasPage-DpGFEcU-.js.map → PersonasPage-BFFxncSE.js.map} +1 -1
  81. package/dashboard/dist/assets/{PortalPage-D07xyvG_.js → PortalPage-Xk1zVneM.js} +2 -2
  82. package/dashboard/dist/assets/{PortalPage-D07xyvG_.js.map → PortalPage-Xk1zVneM.js.map} +1 -1
  83. package/dashboard/dist/assets/{ProcessDetailPage-t8EEYSMk.js → ProcessDetailPage-D7EYwW-j.js} +2 -2
  84. package/dashboard/dist/assets/{ProcessDetailPage-t8EEYSMk.js.map → ProcessDetailPage-D7EYwW-j.js.map} +1 -1
  85. package/dashboard/dist/assets/{ProcessesListPage-BDUXLFdb.js → ProcessesListPage-CakYRtnE.js} +2 -2
  86. package/dashboard/dist/assets/{ProcessesListPage-BDUXLFdb.js.map → ProcessesListPage-CakYRtnE.js.map} +1 -1
  87. package/dashboard/dist/assets/{ResolverForm-BwWOYv_Z.js → ResolverForm-BwVOJUpJ.js} +2 -2
  88. package/dashboard/dist/assets/{ResolverForm-BwWOYv_Z.js.map → ResolverForm-BwVOJUpJ.js.map} +1 -1
  89. package/dashboard/dist/assets/{RoleDetailPage-zMF3x2xi.js → RoleDetailPage-CKbGwezP.js} +2 -2
  90. package/dashboard/dist/assets/{RoleDetailPage-zMF3x2xi.js.map → RoleDetailPage-CKbGwezP.js.map} +1 -1
  91. package/dashboard/dist/assets/{RolesPage-CEBp_PpL.js → RolesPage-Czu7Zku4.js} +2 -2
  92. package/dashboard/dist/assets/{RolesPage-CEBp_PpL.js.map → RolesPage-Czu7Zku4.js.map} +1 -1
  93. package/dashboard/dist/assets/{RunAsSelector-CC_EHN3z.js → RunAsSelector-6BLScYTX.js} +2 -2
  94. package/dashboard/dist/assets/{RunAsSelector-CC_EHN3z.js.map → RunAsSelector-6BLScYTX.js.map} +1 -1
  95. package/dashboard/dist/assets/{ScanCodesPage-DD4uU-jY.js → ScanCodesPage-Cv9q8Bvt.js} +2 -2
  96. package/dashboard/dist/assets/{ScanCodesPage-DD4uU-jY.js.map → ScanCodesPage-Cv9q8Bvt.js.map} +1 -1
  97. package/dashboard/dist/assets/{ScanSchemeDetailPage-CUW8gYFh.js → ScanSchemeDetailPage-BxazXYIc.js} +2 -2
  98. package/dashboard/dist/assets/{ScanSchemeDetailPage-CUW8gYFh.js.map → ScanSchemeDetailPage-BxazXYIc.js.map} +1 -1
  99. package/dashboard/dist/assets/{ScanStationPage-DpO_ESuf.js → ScanStationPage-Cg8LCFR7.js} +2 -2
  100. package/dashboard/dist/assets/{ScanStationPage-DpO_ESuf.js.map → ScanStationPage-Cg8LCFR7.js.map} +1 -1
  101. package/dashboard/dist/assets/{StickyPagination-cNqSDm5f.js → StickyPagination-DsdtYoXR.js} +2 -2
  102. package/dashboard/dist/assets/{StickyPagination-cNqSDm5f.js.map → StickyPagination-DsdtYoXR.js.map} +1 -1
  103. package/dashboard/dist/assets/{StreamMessageDetail-C4oZqQdB.js → StreamMessageDetail-CT3FQoT3.js} +2 -2
  104. package/dashboard/dist/assets/{StreamMessageDetail-C4oZqQdB.js.map → StreamMessageDetail-CT3FQoT3.js.map} +1 -1
  105. package/dashboard/dist/assets/{SwimlaneTimeline-BjBiV7GT.js → SwimlaneTimeline-C8TjkJ10.js} +2 -2
  106. package/dashboard/dist/assets/{SwimlaneTimeline-BjBiV7GT.js.map → SwimlaneTimeline-C8TjkJ10.js.map} +1 -1
  107. package/dashboard/dist/assets/{TaskDetailPage-pO_AnVS1.js → TaskDetailPage-DGUzdBFN.js} +2 -2
  108. package/dashboard/dist/assets/{TaskDetailPage-pO_AnVS1.js.map → TaskDetailPage-DGUzdBFN.js.map} +1 -1
  109. package/dashboard/dist/assets/{TasksListPage-DKDHlWP7.js → TasksListPage-BVIP6-EZ.js} +2 -2
  110. package/dashboard/dist/assets/{TasksListPage-DKDHlWP7.js.map → TasksListPage-BVIP6-EZ.js.map} +1 -1
  111. package/dashboard/dist/assets/{TimeAgo-D2qchUuJ.js → TimeAgo-C-rd9F9g.js} +2 -2
  112. package/dashboard/dist/assets/{TimeAgo-D2qchUuJ.js.map → TimeAgo-C-rd9F9g.js.map} +1 -1
  113. package/dashboard/dist/assets/{TimestampCell-DeswZGGo.js → TimestampCell-DPbchDOI.js} +2 -2
  114. package/dashboard/dist/assets/{TimestampCell-DeswZGGo.js.map → TimestampCell-DPbchDOI.js.map} +1 -1
  115. package/dashboard/dist/assets/{ToolTestPanel-DJh7PIUa.js → ToolTestPanel-DAUC8DHK.js} +2 -2
  116. package/dashboard/dist/assets/{ToolTestPanel-DJh7PIUa.js.map → ToolTestPanel-DAUC8DHK.js.map} +1 -1
  117. package/dashboard/dist/assets/{TopicDetailPage-CsgDJ4Z4.js → TopicDetailPage-70mMKBzG.js} +2 -2
  118. package/dashboard/dist/assets/{TopicDetailPage-CsgDJ4Z4.js.map → TopicDetailPage-70mMKBzG.js.map} +1 -1
  119. package/dashboard/dist/assets/{TopicsPage-tBRZDVDN.js → TopicsPage-CE3hBthn.js} +2 -2
  120. package/dashboard/dist/assets/{TopicsPage-tBRZDVDN.js.map → TopicsPage-CE3hBthn.js.map} +1 -1
  121. package/dashboard/dist/assets/{UserName-B-5JcDck.js → UserName-BDBDA-LR.js} +2 -2
  122. package/dashboard/dist/assets/{UserName-B-5JcDck.js.map → UserName-BDBDA-LR.js.map} +1 -1
  123. package/dashboard/dist/assets/{WorkflowExecutionPage-BPHVnhp6.js → WorkflowExecutionPage-BbkLZ1co.js} +2 -2
  124. package/dashboard/dist/assets/{WorkflowExecutionPage-BPHVnhp6.js.map → WorkflowExecutionPage-BbkLZ1co.js.map} +1 -1
  125. package/dashboard/dist/assets/{WorkflowsDashboard-CxLlfZmY.js → WorkflowsDashboard-Bp1L7Ggz.js} +2 -2
  126. package/dashboard/dist/assets/{WorkflowsDashboard-CxLlfZmY.js.map → WorkflowsDashboard-Bp1L7Ggz.js.map} +1 -1
  127. package/dashboard/dist/assets/{WorkflowsOverview-C4az5rwp.js → WorkflowsOverview-IeTKHAi4.js} +2 -2
  128. package/dashboard/dist/assets/{WorkflowsOverview-C4az5rwp.js.map → WorkflowsOverview-IeTKHAi4.js.map} +1 -1
  129. package/dashboard/dist/assets/{YamlWorkflowDetailPage-BmhlAUFQ.js → YamlWorkflowDetailPage-DtKCXnKt.js} +2 -2
  130. package/dashboard/dist/assets/{YamlWorkflowDetailPage-BmhlAUFQ.js.map → YamlWorkflowDetailPage-DtKCXnKt.js.map} +1 -1
  131. package/dashboard/dist/assets/{YamlWorkflowsPage-CSbG5o2V.js → YamlWorkflowsPage-CEcZBV_3.js} +2 -2
  132. package/dashboard/dist/assets/{YamlWorkflowsPage-CSbG5o2V.js.map → YamlWorkflowsPage-CEcZBV_3.js.map} +1 -1
  133. package/dashboard/dist/assets/{agents-BohEn7vw.js → agents-BT-sEk81.js} +2 -2
  134. package/dashboard/dist/assets/{agents-BohEn7vw.js.map → agents-BT-sEk81.js.map} +1 -1
  135. package/dashboard/dist/assets/{bots-BG2EO-Wi.js → bots-DRoAdLek.js} +2 -2
  136. package/dashboard/dist/assets/{bots-BG2EO-Wi.js.map → bots-DRoAdLek.js.map} +1 -1
  137. package/dashboard/dist/assets/{capabilities-CeFrBmYX.js → capabilities-Bc-nJk6y.js} +2 -2
  138. package/dashboard/dist/assets/{capabilities-CeFrBmYX.js.map → capabilities-Bc-nJk6y.js.map} +1 -1
  139. package/dashboard/dist/assets/{controlplane-Dhvt8l8F.js → controlplane-aXceSIRf.js} +2 -2
  140. package/dashboard/dist/assets/{controlplane-Dhvt8l8F.js.map → controlplane-aXceSIRf.js.map} +1 -1
  141. package/dashboard/dist/assets/{escalation-columns-BWMNxImp.js → escalation-columns-Bf09Q89t.js} +2 -2
  142. package/dashboard/dist/assets/{escalation-columns-BWMNxImp.js.map → escalation-columns-Bf09Q89t.js.map} +1 -1
  143. package/dashboard/dist/assets/{index-CtZWpy22.js → index-BCFEQEMC.js} +2 -2
  144. package/dashboard/dist/assets/{index-CtZWpy22.js.map → index-BCFEQEMC.js.map} +1 -1
  145. package/dashboard/dist/assets/{index-dYKgd06u.js → index-BEPKAjna.js} +2 -2
  146. package/dashboard/dist/assets/{index-dYKgd06u.js.map → index-BEPKAjna.js.map} +1 -1
  147. package/dashboard/dist/assets/{index-fUsx_gYx.js → index-BUYokcrl.js} +3 -3
  148. package/dashboard/dist/assets/{index-fUsx_gYx.js.map → index-BUYokcrl.js.map} +1 -1
  149. package/dashboard/dist/assets/{index-Y-bdW8vo.js → index-Ba-s5Yb5.js} +2 -2
  150. package/dashboard/dist/assets/{index-Y-bdW8vo.js.map → index-Ba-s5Yb5.js.map} +1 -1
  151. package/dashboard/dist/assets/{index-Dc_zWK23.js → index-C3VTJcrp.js} +2 -2
  152. package/dashboard/dist/assets/{index-Dc_zWK23.js.map → index-C3VTJcrp.js.map} +1 -1
  153. package/dashboard/dist/assets/{index-Dc3Om6G3.js → index-CZyO9hRb.js} +2 -2
  154. package/dashboard/dist/assets/{index-Dc3Om6G3.js.map → index-CZyO9hRb.js.map} +1 -1
  155. package/dashboard/dist/assets/{index-DABkM7s-.js → index-CcgmR-7-.js} +2 -2
  156. package/dashboard/dist/assets/{index-DABkM7s-.js.map → index-CcgmR-7-.js.map} +1 -1
  157. package/dashboard/dist/assets/{index-Cl_YXEdp.js → index-CuBGGwXf.js} +2 -2
  158. package/dashboard/dist/assets/{index-Cl_YXEdp.js.map → index-CuBGGwXf.js.map} +1 -1
  159. package/dashboard/dist/assets/index-D1mKf_qz.js +3 -0
  160. package/dashboard/dist/assets/index-D1mKf_qz.js.map +1 -0
  161. package/dashboard/dist/assets/{index-D90D9y0J.js → index-DBxpyIw5.js} +2 -2
  162. package/dashboard/dist/assets/{index-D90D9y0J.js.map → index-DBxpyIw5.js.map} +1 -1
  163. package/dashboard/dist/assets/{index-C8VlM2Oe.js → index-DH03y-UT.js} +2 -2
  164. package/dashboard/dist/assets/{index-C8VlM2Oe.js.map → index-DH03y-UT.js.map} +1 -1
  165. package/dashboard/dist/assets/{index-CiqSVDga.js → index-Djsoi8DI.js} +2 -2
  166. package/dashboard/dist/assets/{index-CiqSVDga.js.map → index-Djsoi8DI.js.map} +1 -1
  167. package/dashboard/dist/assets/{index-Bd_dgyfJ.js → index-h2gX31B2.js} +2 -2
  168. package/dashboard/dist/assets/{index-Bd_dgyfJ.js.map → index-h2gX31B2.js.map} +1 -1
  169. package/dashboard/dist/assets/{knowledge-CCcTidNV.js → knowledge-BhW8V-Hq.js} +2 -2
  170. package/dashboard/dist/assets/{knowledge-CCcTidNV.js.map → knowledge-BhW8V-Hq.js.map} +1 -1
  171. package/dashboard/dist/assets/{mcp-CLA1z7Pg.js → mcp-BYfSMQzh.js} +2 -2
  172. package/dashboard/dist/assets/{mcp-CLA1z7Pg.js.map → mcp-BYfSMQzh.js.map} +1 -1
  173. package/dashboard/dist/assets/{mcp-query-CWG0WMAs.js → mcp-query-DUJoOk_q.js} +2 -2
  174. package/dashboard/dist/assets/{mcp-query-CWG0WMAs.js.map → mcp-query-DUJoOk_q.js.map} +1 -1
  175. package/dashboard/dist/assets/{personas-8jURIzx6.js → personas-jT1O_SB4.js} +2 -2
  176. package/dashboard/dist/assets/{personas-8jURIzx6.js.map → personas-jT1O_SB4.js.map} +1 -1
  177. package/dashboard/dist/assets/{pipelines-hVVRAXqG.js → pipelines-Bp-wIaz2.js} +2 -2
  178. package/dashboard/dist/assets/{pipelines-hVVRAXqG.js.map → pipelines-Bp-wIaz2.js.map} +1 -1
  179. package/dashboard/dist/assets/{tasks-BE1O57Bf.js → tasks-CCrvnXbz.js} +2 -2
  180. package/dashboard/dist/assets/{tasks-BE1O57Bf.js.map → tasks-CCrvnXbz.js.map} +1 -1
  181. package/dashboard/dist/assets/{topics-Bg96Wp1r.js → topics-Blft0I1L.js} +2 -2
  182. package/dashboard/dist/assets/{topics-Bg96Wp1r.js.map → topics-Blft0I1L.js.map} +1 -1
  183. package/dashboard/dist/assets/{useDebouncedValue-DmEveyEy.js → useDebouncedValue-BYqbcism.js} +2 -2
  184. package/dashboard/dist/assets/{useDebouncedValue-DmEveyEy.js.map → useDebouncedValue-BYqbcism.js.map} +1 -1
  185. package/dashboard/dist/assets/{useNamespace-DHgkzIuL.js → useNamespace-BfxJAUgG.js} +2 -2
  186. package/dashboard/dist/assets/{useNamespace-DHgkzIuL.js.map → useNamespace-BfxJAUgG.js.map} +1 -1
  187. package/dashboard/dist/assets/{useYamlActivityEvents-RU0PvU8S.js → useYamlActivityEvents-BukJuWpb.js} +2 -2
  188. package/dashboard/dist/assets/{useYamlActivityEvents-RU0PvU8S.js.map → useYamlActivityEvents-BukJuWpb.js.map} +1 -1
  189. package/dashboard/dist/assets/{yaml-workflows-DQWE9ijc.js → yaml-workflows-DeRWqMGk.js} +2 -2
  190. package/dashboard/dist/assets/{yaml-workflows-DQWE9ijc.js.map → yaml-workflows-DeRWqMGk.js.map} +1 -1
  191. package/dashboard/dist/index.html +1 -1
  192. package/docs/accumulator.md +1 -1
  193. package/docs/api/sdk/escalations.md +1 -1
  194. package/docs/hitl/escalation.md +12 -0
  195. package/docs/hitl/resolution.md +1 -1
  196. package/package.json +2 -2
  197. package/dashboard/dist/assets/index-Dbwu51xm.js +0 -3
  198. package/dashboard/dist/assets/index-Dbwu51xm.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index-CtZWpy22.js","sources":["../../src/hooks/useMediaQuery.ts","../../src/pages/workflows/start/WorkflowSelector.tsx","../../src/pages/workflows/start/IdentitySummary.tsx","../../src/pages/workflows/start/StartNowPanel.tsx","../../src/pages/workflows/start/StartWorkflowPage.tsx","../../src/pages/workflows/start/DurableInvokePage.tsx"],"sourcesContent":["import { useEffect, useState } from 'react';\n\n/**\n * Tracks a viewport media query. Unlike container measurement, the viewport\n * is stable while shell panels open and close, so layout decisions made on\n * it never feed back into themselves. Returns false in environments without\n * matchMedia (jsdom), which callers treat as \"wide\".\n */\nexport function useMediaQuery(query: string): boolean {\n const [matches, setMatches] = useState<boolean>(() => {\n try {\n return window.matchMedia(query).matches;\n } catch {\n return false;\n }\n });\n\n useEffect(() => {\n let mql: MediaQueryList;\n try {\n mql = window.matchMedia(query);\n } catch {\n return;\n }\n setMatches(mql.matches);\n const onChange = (e: MediaQueryListEvent) => setMatches(e.matches);\n mql.addEventListener('change', onChange);\n return () => mql.removeEventListener('change', onChange);\n }, [query]);\n\n return matches;\n}\n","import { useMemo } from 'react';\nimport { Bot, Clock, Play, Server, Wrench } from 'lucide-react';\nimport { WorkflowPill } from '../../../components/common/display/WorkflowPill';\nimport { WorkflowIcon } from '../../../components/common/display/WorkflowIcon';\nimport { identifierToTitle } from '../../../lib/identifier-label';\nimport { NamespacePill } from '../../../components/common/display/NamespacePill';\nimport type { LTWorkflowConfig, WorkflowTier } from '../../../api/types';\n\nconst NO_QUEUE_LABEL = 'No Queue';\n\n/** The queue set a filter offers — shared with the grouping below. */\nexport function workflowQueues(configs: LTWorkflowConfig[]): string[] {\n return [...new Set(configs.map((c) => c.task_queue).filter(Boolean))].sort() as string[];\n}\n\n/** One section per task queue; unqueued workflows trail under their own heading when no queue filter is active. */\nexport function groupWorkflows(\n configs: LTWorkflowConfig[],\n search: string,\n activeQueue: string | null,\n): { queue: string; workflows: LTWorkflowConfig[] }[] {\n const q = search.toLowerCase().trim();\n const matches = (c: LTWorkflowConfig) =>\n !q || c.workflow_type.toLowerCase().includes(q) || c.description?.toLowerCase().includes(q);\n\n const targetQueues = activeQueue ? [activeQueue] : workflowQueues(configs);\n const sections = targetQueues\n .map((queue) => ({ queue, workflows: configs.filter((c) => c.task_queue === queue && matches(c)) }))\n .filter((g) => g.workflows.length > 0);\n\n if (!activeQueue) {\n const noQueue = configs.filter((c) => !c.task_queue && matches(c));\n if (noQueue.length > 0) sections.push({ queue: '', workflows: noQueue });\n }\n return sections;\n}\n\n/** The first row of the unfiltered list — what the page preselects. */\nexport function firstWorkflowType(configs: LTWorkflowConfig[]): string | null {\n return groupWorkflows(configs, '', null)[0]?.workflows[0]?.workflow_type ?? null;\n}\n\nexport function WorkflowSelector({\n configs,\n selectedType,\n onSelect,\n tierMap,\n activeTypes,\n search,\n activeQueue,\n compact = false,\n}: {\n configs: LTWorkflowConfig[];\n selectedType: string;\n onSelect: (config: LTWorkflowConfig) => void;\n tierMap: Map<string, WorkflowTier>;\n activeTypes?: Set<string>;\n search: string;\n activeQueue: string | null;\n /** The narrow list column beside the form: name and tier only, headings in flow. */\n compact?: boolean;\n}) {\n const grouped = useMemo(() => groupWorkflows(configs, search, activeQueue), [configs, search, activeQueue]);\n\n if (grouped.length === 0) {\n return <p className=\"text-sm text-text-tertiary py-8 text-center\">No workflows match your filter.</p>;\n }\n\n return (\n <div className={compact ? 'space-y-6' : 'space-y-10'}>\n {grouped.map(({ queue, workflows }) => (\n <div key={queue || '__none__'}>\n <div className={`flex items-center gap-2 py-2 mb-1 border-b border-surface-border ${compact ? '' : 'sticky top-[60px] z-10 bg-surface mb-2'}`}>\n {queue ? (\n <Server className=\"w-3 h-3 text-accent shrink-0\" strokeWidth={1.5} />\n ) : (\n <Wrench className=\"w-3 h-3 text-text-quaternary shrink-0\" strokeWidth={1.5} />\n )}\n <h2 className=\"section-h2 truncate\" title={queue || undefined}>{queue ? identifierToTitle(queue) : NO_QUEUE_LABEL}</h2>\n <span className=\"text-xs text-text-quaternary\">{workflows.length}</span>\n </div>\n <div className={compact ? '' : 'divide-y divide-surface-border/30'}>\n {workflows.map((config) => (\n <WorkflowRow\n key={config.workflow_type}\n config={config}\n isSelected={selectedType === config.workflow_type}\n tier={tierMap.get(config.workflow_type) ?? 'durable'}\n cronActive={activeTypes?.has(config.workflow_type) ?? false}\n onSelect={onSelect}\n compact={compact}\n />\n ))}\n </div>\n </div>\n ))}\n </div>\n );\n}\n\nfunction WorkflowRow({\n config,\n isSelected,\n tier,\n cronActive,\n onSelect,\n compact,\n}: {\n config: LTWorkflowConfig;\n isSelected: boolean;\n tier: WorkflowTier;\n cronActive: boolean;\n onSelect: (config: LTWorkflowConfig) => void;\n compact: boolean;\n}) {\n const variant = tier === 'certified' ? 'certified' : tier === 'registered' ? 'registered' : 'durable';\n\n if (compact) {\n return (\n <button\n onClick={() => onSelect(config)}\n aria-current={isSelected ? 'true' : undefined}\n title={config.workflow_type}\n className={`group w-full text-left flex items-center gap-2.5 pl-3 pr-2 py-2 border-l-2 transition-colors ${\n isSelected ? 'border-accent bg-accent/10 text-accent' : 'border-transparent text-text-primary hover:bg-surface-hover'\n }`}\n >\n <WorkflowIcon icon={config.icon} tier={tier} className={`w-5 h-5 shrink-0 ${isSelected ? 'text-accent' : 'text-accent/65'}`} />\n <span className=\"text-sm truncate\">{identifierToTitle(config.workflow_type)}</span>\n {cronActive && (\n <span title=\"Cron schedule active\" className=\"ml-auto shrink-0\">\n <Clock className=\"w-3 h-3 text-status-success/70\" />\n </span>\n )}\n </button>\n );\n }\n\n return (\n <button\n onClick={() => onSelect(config)}\n className=\"group relative w-full text-left py-2 px-3 -mx-3 rounded-md hover:bg-surface-hover/30 transition-colors duration-150\"\n >\n {isSelected && (\n <span className=\"absolute left-0 top-1 bottom-1 w-0.5 bg-accent rounded-full\" />\n )}\n <div className=\"flex items-center gap-3\">\n <WorkflowPill type={config.workflow_type} size=\"md\" variant={variant} />\n {config.description && (\n <p className=\"flex-1 min-w-0 truncate text-2xs text-text-tertiary group-hover:text-text-secondary transition-colors\">\n {config.description}\n </p>\n )}\n <span className=\"ml-auto flex items-center gap-2 shrink-0\">\n {config.execute_as && (\n <span className=\"inline-flex items-center gap-0.5 px-1.5 py-0.5 text-2xs bg-accent/10 text-accent rounded\">\n <Bot className=\"w-2.5 h-2.5\" />\n {config.execute_as}\n </span>\n )}\n {cronActive && (\n <span title=\"Cron schedule active\">\n <Clock className=\"w-3 h-3 text-status-success/70 shrink-0\" />\n </span>\n )}\n <NamespacePill namespace=\"durable\" />\n <span title=\"Configure & invoke\">\n <Play\n className={`w-3 h-3 transition-opacity ${\n isSelected ? 'text-accent opacity-100' : 'text-accent opacity-0 group-hover:opacity-100'\n }`}\n strokeWidth={1.5}\n />\n </span>\n </span>\n </div>\n </button>\n );\n}\n","import { Bot, UserCircle } from 'lucide-react';\nimport { BotPicker } from '../../../components/common/form/BotPicker';\nimport { useAuth } from '../../../hooks/useAuth';\nimport type { LTWorkflowConfig } from '../../../api/types';\n\nexport function IdentitySummary({\n config,\n overrideBot,\n onOverrideChange,\n showOverride,\n}: {\n config: LTWorkflowConfig;\n overrideBot?: string;\n onOverrideChange?: (botExternalId: string) => void;\n showOverride?: boolean;\n}) {\n const { user } = useAuth();\n const effectiveBot = overrideBot || config.execute_as;\n\n return (\n <div className=\"bg-surface-sunken rounded-lg px-4 py-3 space-y-3\">\n <div>\n <div className=\"flex items-center justify-between mb-1\">\n <span className=\"text-2xs text-text-tertiary uppercase tracking-wider font-medium\">Running as</span>\n {effectiveBot && !overrideBot && (\n <span className=\"text-2xs text-text-tertiary\">configured default</span>\n )}\n {overrideBot && (\n <span className=\"text-2xs text-accent\">admin override</span>\n )}\n </div>\n {/* Read-only identity, styled as a field so it reads consistently with\n the Override control below and pops off the sunken band. */}\n <div className=\"field flex items-center gap-1.5\">\n {effectiveBot ? (\n <>\n <Bot className=\"w-3.5 h-3.5 text-accent/70 shrink-0\" />\n <span className=\"text-xs text-text-primary font-mono\">{effectiveBot}</span>\n </>\n ) : (\n <>\n <UserCircle className=\"w-3.5 h-3.5 text-text-tertiary shrink-0\" />\n <span className=\"text-xs text-text-primary\">\n {user?.displayName || user?.username || 'you'}\n </span>\n </>\n )}\n </div>\n </div>\n {showOverride && onOverrideChange && (\n <div>\n <label className=\"text-2xs text-text-tertiary uppercase tracking-wider font-medium mb-1 block\">Override identity</label>\n <BotPicker\n selected={overrideBot ?? ''}\n onChange={onOverrideChange}\n placeholder={config.execute_as ? `Default: ${config.execute_as}` : 'Invoking user (default)'}\n />\n </div>\n )}\n </div>\n );\n}\n","import { useEffect, useMemo, useState } from 'react';\nimport { lookupLabel } from '../../../lib/lookup-label';\nimport { AlertTriangle, ShieldCheck } from 'lucide-react';\nimport { useAuth } from '../../../hooks/useAuth';\nimport { foldWorkflowLookups, useWorkflowLookups } from '../../../api/workflows';\nimport type { InvocableWorkflow } from '../../../api/types';\nimport { WorkflowIcon } from '../../../components/common/display/WorkflowIcon';\nimport { MarkdownRenderer } from '../../../components/common/display/MarkdownRenderer';\nimport { identifierToTitle } from '../../../lib/identifier-label';\nimport { IdentitySummary } from './IdentitySummary';\nimport { LegacyInvokeForm } from './LegacyInvokeForm';\nimport { RichInvokeForm } from './RichInvokeForm';\nimport { useInvokeSubmit } from './use-invoke-submit';\n\n/**\n * The form column. The workflow's name is the column's heading and stays\n * put; Start stays put at the bottom; description, identity, options, and\n* the fields scroll between them. A declared input_schema renders the\n * x-lt-* form, with pinned input_lookups resolved into its lookup domain;\n * otherwise the envelope template form.\n */\nexport function StartNowPanel({ selected }: { selected: InvocableWorkflow }) {\n const { isSuperAdmin, hasRoleType } = useAuth();\n const isAdmin = isSuperAdmin || hasRoleType('admin');\n const [overrideBot, setOverrideBot] = useState('');\n // Per-run interceptor opt-out, offered when the registration is certified.\n const [certified, setCertified] = useState(selected.certified);\n\n useEffect(() => {\n setOverrideBot('');\n setCertified(selected.certified);\n }, [selected.workflow_type, selected.certified]);\n\n const metadata = useMemo(() => {\n const md = selected.envelope_schema?.metadata;\n return md && typeof md === 'object' ? (md as Record<string, unknown>) : {};\n }, [selected.envelope_schema]);\n\n const hasLookups = Array.isArray(selected.input_lookups) && selected.input_lookups.length > 0;\n const { data: lookupData } = useWorkflowLookups(selected.workflow_type, hasLookups);\n const lookup = useMemo(() => (lookupData ? foldWorkflowLookups(lookupData.lookups) : undefined), [lookupData]);\n const missingLookups = lookupData?.lookups.filter((l) => l.missing) ?? [];\n\n const submission = useInvokeSubmit(selected, { certified, overrideBot });\n\n const lead = (\n <>\n {selected.description && (\n <MarkdownRenderer content={selected.description} className=\"text-xs text-text-secondary leading-relaxed\" />\n )}\n <IdentitySummary\n config={selected}\n overrideBot={overrideBot}\n onOverrideChange={setOverrideBot}\n showOverride={isAdmin}\n />\n {selected.certified && (\n <label className=\"flex items-center gap-2 cursor-pointer\">\n <input\n type=\"checkbox\"\n checked={certified}\n onChange={(e) => setCertified(e.target.checked)}\n className=\"rounded border-surface-border text-accent focus:ring-accent/30\"\n />\n <ShieldCheck className=\"w-3.5 h-3.5 text-text-tertiary\" />\n <span className=\"text-xs text-text-secondary\">Enable task tracking and escalation routing</span>\n </label>\n )}\n </>\n );\n\n return (\n <div className=\"max-w-form\" data-testid=\"invoke-form\">\n {/* Sticks to the top of the shell scroll; the pulled-up padding covers the page gutter above it. */}\n <header className=\"sticky top-0 z-10 bg-surface -mt-8 pt-8 flex items-baseline gap-3 min-w-0 pb-3 mb-5 border-b border-surface-border/60\">\n <WorkflowIcon icon={selected.icon} tier={selected.tier} className=\"w-7 h-7 self-center shrink-0 text-accent\" />\n <h2 className=\"heading-2 truncate\" title={selected.workflow_type}>\n {identifierToTitle(selected.workflow_type)}\n </h2>\n <span className=\"text-2xs font-mono text-text-quaternary shrink-0\">{selected.workflow_type}</span>\n <span className=\"text-2xs uppercase tracking-widest text-text-tertiary shrink-0\">{selected.tier}</span>\n {selected.task_queue && (\n <span className=\"text-2xs font-mono text-text-quaternary truncate\">{selected.task_queue}</span>\n )}\n </header>\n\n {missingLookups.length > 0 && (\n <p className=\"flex items-center gap-1.5 text-2xs text-status-warning mb-4\" data-testid=\"lookup-missing\">\n <AlertTriangle className=\"w-3 h-3 shrink-0\" strokeWidth={1.5} />\n {missingLookups.map(lookupLabel).join(', ')} {missingLookups.length === 1 ? 'is' : 'are'} not available; the fields that read {missingLookups.length === 1 ? 'it' : 'them'} fall back to plain inputs.\n </p>\n )}\n\n {selected.input_schema ? (\n <RichInvokeForm selected={selected} schema={selected.input_schema} metadata={metadata} lookup={lookup} submission={submission} lead={lead} />\n ) : (\n <LegacyInvokeForm selected={selected} metadata={metadata} submission={submission} lead={lead} />\n )}\n </div>\n );\n}\n","import { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useSearchParams } from 'react-router-dom';\nimport { useInvocableWorkflows, useCronStatus } from '../../../api/workflows';\nimport { PageHeader } from '../../../components/common/layout/PageHeader';\nimport { FilterSelect, FilterInput } from '../../../components/common/data/FilterBar';\nimport { useMediaQuery } from '../../../hooks/useMediaQuery';\nimport type { InvocableWorkflow, WorkflowTier } from '../../../api/types';\nimport { WorkflowSelector, workflowQueues, firstWorkflowType } from './WorkflowSelector';\nimport { identifierToTitle } from '../../../lib/identifier-label';\nimport { StartNowPanel } from './StartNowPanel';\n\nconst TYPE_PARAM = 'type';\n// A few dozen workflows read fine grouped by queue; the filters wait for scale to demand them.\nconst LIST_FILTERS_VISIBLE = false;\n\n/**\n * Invoke — the list of workflows the caller may run beside the form for the\n * one chosen. The list is grouped by queue and takes a quarter of the row;\n * the form takes the rest. Selection lives in `?type=`, and the first row\n * is preselected so the page opens on a form, never on an empty column.\n */\nexport function StartWorkflowPage() {\n const [searchParams, setSearchParams] = useSearchParams();\n const { data: invocable, isLoading } = useInvocableWorkflows();\n const { data: cronEntries } = useCronStatus();\n // Below xl the list and the form cannot share the row: the list folds\n // into a select and the form takes the full width.\n const compact = useMediaQuery('(max-width: 1279px)');\n\n const selectedType = searchParams.get(TYPE_PARAM) ?? '';\n const [search, setSearch] = useState('');\n const [activeQueue, setActiveQueue] = useState<string | null>(null);\n\n const workflows: InvocableWorkflow[] = invocable ?? [];\n const tierMap = useMemo(() => {\n const map = new Map<string, WorkflowTier>();\n for (const w of workflows) map.set(w.workflow_type, w.tier);\n return map;\n }, [workflows]);\n const selected = workflows.find((c) => c.workflow_type === selectedType);\n const activeTypes = new Set((cronEntries ?? []).filter((e) => e.active).map((e) => e.workflow_type));\n\n // A user's choice is a history entry; the opening preselect only rewrites the landing URL.\n const setType = useCallback(\n (value: string | null, opts: { replace?: boolean } = {}) => {\n setSearchParams(\n (prev) => {\n const next = new URLSearchParams(prev);\n if (value) next.set(TYPE_PARAM, value);\n else next.delete(TYPE_PARAM);\n return next;\n },\n { replace: opts.replace ?? false },\n );\n },\n [setSearchParams],\n );\n\n useEffect(() => {\n if (searchParams.get(TYPE_PARAM) || workflows.length === 0) return;\n const first = firstWorkflowType(workflows);\n if (first) setType(first, { replace: true });\n }, [workflows, searchParams, setType]);\n\n if (isLoading) {\n return (\n <div className=\"animate-pulse space-y-4\">\n <div className=\"h-8 bg-surface-sunken rounded w-48\" />\n <div className=\"h-40 bg-surface-sunken rounded\" />\n </div>\n );\n }\n\n const queues = workflowQueues(workflows);\n const form = selected\n ? <StartNowPanel selected={selected} />\n : <p className=\"text-xs text-text-tertiary\">Choose a tool to begin.</p>;\n\n return (\n <div>\n <PageHeader title=\"Invoke Tool\" docsHash=\"#docs:dashboard.md:invoke-tool\" />\n\n {workflows.length === 0 ? (\n <div className=\"py-16 text-center\">\n <p className=\"text-sm text-text-primary mb-1\">No tools to invoke</p>\n <p className=\"text-xs text-text-tertiary\">Mark workflows as invocable in the registry, or start the server with examples enabled.</p>\n </div>\n ) : compact ? (\n <>\n <label className=\"block mb-6 max-w-2xl\">\n <span className=\"block text-2xs font-semibold uppercase tracking-widest text-text-tertiary mb-1\">Tool</span>\n <select\n value={selectedType}\n onChange={(e) => setType(e.target.value || null)}\n className=\"select text-xs font-mono w-full\"\n >\n <option value=\"\">Choose a tool…</option>\n {queues.map((q) => (\n <optgroup key={q} label={identifierToTitle(q)}>\n {workflows\n .filter((c) => (c.task_queue || '') === q)\n .map((c) => (\n <option key={c.workflow_type} value={c.workflow_type}>{identifierToTitle(c.workflow_type)}</option>\n ))}\n </optgroup>\n ))}\n {workflows\n .filter((c) => !c.task_queue)\n .map((c) => (\n <option key={c.workflow_type} value={c.workflow_type}>{identifierToTitle(c.workflow_type)}</option>\n ))}\n </select>\n </label>\n {/* The form heading pulls itself up over the page gutter when stuck; give it that room here so it never covers the picker. */}\n <div className=\"pt-8\">{form}</div>\n </>\n ) : (\n <div className=\"flex gap-10 items-start\">\n {/* The page scrolls as a whole; the list column and the form's title and Start stick while the title of the page rides away. */}\n <aside className=\"w-1/4 min-w-[15rem] shrink-0 sticky top-0 self-start -mt-8 pt-8 max-h-[calc(100vh-5rem)] overflow-y-auto pr-1 space-y-4\" data-testid=\"invoke-list\">\n {LIST_FILTERS_VISIBLE && <div className=\"flex flex-col gap-3\">\n {queues.length > 1 && (\n <FilterSelect\n label=\"Queue\"\n value={activeQueue ?? ''}\n onChange={(v) => setActiveQueue(v || null)}\n options={queues.map((q) => ({ value: q, label: q }))}\n />\n )}\n <FilterInput\n label=\"Search\"\n value={search}\n onChange={setSearch}\n placeholder={`${workflows.length} workflows…`}\n />\n </div>}\n <WorkflowSelector\n configs={workflows}\n selectedType={selectedType}\n onSelect={(c) => setType(c.workflow_type)}\n tierMap={tierMap}\n activeTypes={activeTypes}\n search={search}\n activeQueue={activeQueue}\n compact\n />\n </aside>\n <section className=\"flex-1 min-w-0\">{form}</section>\n </div>\n )}\n </div>\n );\n}\n","import { StartWorkflowPage } from './StartWorkflowPage';\n\nexport function DurableInvokePage() {\n return <StartWorkflowPage />;\n}\n"],"names":["useMediaQuery","query","matches","setMatches","useState","useEffect","mql","onChange","e","NO_QUEUE_LABEL","workflowQueues","configs","c","groupWorkflows","search","activeQueue","q","_a","sections","queue","g","noQueue","firstWorkflowType","_b","WorkflowSelector","selectedType","onSelect","tierMap","activeTypes","compact","grouped","useMemo","jsx","workflows","jsxs","Server","Wrench","identifierToTitle","config","WorkflowRow","isSelected","tier","cronActive","variant","WorkflowIcon","Clock","WorkflowPill","Bot","NamespacePill","Play","IdentitySummary","overrideBot","onOverrideChange","showOverride","user","useAuth","effectiveBot","Fragment","UserCircle","BotPicker","StartNowPanel","selected","isSuperAdmin","hasRoleType","isAdmin","setOverrideBot","certified","setCertified","metadata","md","hasLookups","lookupData","useWorkflowLookups","lookup","foldWorkflowLookups","missingLookups","l","submission","useInvokeSubmit","lead","MarkdownRenderer","ShieldCheck","AlertTriangle","lookupLabel","RichInvokeForm","LegacyInvokeForm","TYPE_PARAM","LIST_FILTERS_VISIBLE","StartWorkflowPage","searchParams","setSearchParams","useSearchParams","invocable","isLoading","useInvocableWorkflows","cronEntries","useCronStatus","setSearch","setActiveQueue","map","w","setType","useCallback","value","opts","prev","next","first","queues","form","PageHeader","DurableInvokePage"],"mappings":"83BAQO,SAASA,EAAcC,EAAwB,CACpD,KAAM,CAACC,EAASC,CAAU,EAAIC,EAAAA,SAAkB,IAAM,CACpD,GAAI,CACF,OAAO,OAAO,WAAWH,CAAK,EAAE,OAClC,MAAQ,CACN,MAAO,EACT,CACF,CAAC,EAEDI,OAAAA,EAAAA,UAAU,IAAM,CACd,IAAIC,EACJ,GAAI,CACFA,EAAM,OAAO,WAAWL,CAAK,CAC/B,MAAQ,CACN,MACF,CACAE,EAAWG,EAA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,IAAI,EAC/C,UAAU,kCAEV,SAAA,CAAAwB,EAAAA,IAAC,SAAA,CAAO,MAAM,GAAG,SAAA,iBAAc,EAC9B4E,EAAO,IAAK5F,GACXgB,EAAAA,IAAC,YAAiB,MAAOK,EAAkBrB,CAAC,EACzC,WACE,OAAQJ,IAAOA,EAAE,YAAc,MAAQI,CAAC,EACxC,IAAKJ,GACJoB,EAAAA,IAAC,SAAA,CAA6B,MAAOpB,EAAE,cAAgB,SAAAyB,EAAkBzB,EAAE,aAAa,GAA3EA,EAAE,aAA2E,CAC3F,CAAA,EALUI,CAMf,CACD,EACAiB,EACE,OAAQrB,GAAM,CAACA,EAAE,UAAU,EAC3B,IAAKA,SACH,SAAA,CAA6B,MAAOA,EAAE,cAAgB,SAAAyB,EAAkBzB,EAAE,aAAa,CAAA,EAA3EA,EAAE,aAA2E,CAC3F,CAAA,CAAA,CAAA,CACL,EACF,EAEAoB,EAAAA,IAAC,MAAA,CAAI,UAAU,OAAQ,SAAA6E,CAAA,CAAK,CAAA,CAAA,CAC9B,EAEA3E,EAAAA,KAAC,MAAA,CAAI,UAAU,0BAEb,SAAA,CAAAA,EAAAA,KAAC,QAAA,CAAM,UAAU,0HAA0H,cAAY,cACpJ,SAAA,CAAAqD,GAgBDvD,EAAAA,IAACR,GAAA,CACC,QAASS,EACT,aAAAR,EACA,SAAWb,GAAMyF,EAAQzF,EAAE,aAAa,EACxC,QAAAe,EACA,YAAAC,EACA,OAAAd,EACA,YAAAC,EACA,QAAO,EAAA,CAAA,CACT,EACF,EACAiB,EAAAA,IAAC,UAAA,CAAQ,UAAU,iBAAkB,SAAA6E,CAAA,CAAK,CAAA,CAAA,CAC5C,CAAA,EAEJ,CAEJ,CCtJO,SAASE,IAAoB,CAClC,aAAQvB,GAAA,EAAkB,CAC5B"}
1
+ {"version":3,"file":"index-BCFEQEMC.js","sources":["../../src/hooks/useMediaQuery.ts","../../src/pages/workflows/start/WorkflowSelector.tsx","../../src/pages/workflows/start/IdentitySummary.tsx","../../src/pages/workflows/start/StartNowPanel.tsx","../../src/pages/workflows/start/StartWorkflowPage.tsx","../../src/pages/workflows/start/DurableInvokePage.tsx"],"sourcesContent":["import { useEffect, useState } from 'react';\n\n/**\n * Tracks a viewport media query. Unlike container measurement, the viewport\n * is stable while shell panels open and close, so layout decisions made on\n * it never feed back into themselves. Returns false in environments without\n * matchMedia (jsdom), which callers treat as \"wide\".\n */\nexport function useMediaQuery(query: string): boolean {\n const [matches, setMatches] = useState<boolean>(() => {\n try {\n return window.matchMedia(query).matches;\n } catch {\n return false;\n }\n });\n\n useEffect(() => {\n let mql: MediaQueryList;\n try {\n mql = window.matchMedia(query);\n } catch {\n return;\n }\n setMatches(mql.matches);\n const onChange = (e: MediaQueryListEvent) => setMatches(e.matches);\n mql.addEventListener('change', onChange);\n return () => mql.removeEventListener('change', onChange);\n }, [query]);\n\n return matches;\n}\n","import { useMemo } from 'react';\nimport { Bot, Clock, Play, Server, Wrench } from 'lucide-react';\nimport { WorkflowPill } from '../../../components/common/display/WorkflowPill';\nimport { WorkflowIcon } from '../../../components/common/display/WorkflowIcon';\nimport { identifierToTitle } from '../../../lib/identifier-label';\nimport { NamespacePill } from '../../../components/common/display/NamespacePill';\nimport type { LTWorkflowConfig, WorkflowTier } from '../../../api/types';\n\nconst NO_QUEUE_LABEL = 'No Queue';\n\n/** The queue set a filter offers — shared with the grouping below. */\nexport function workflowQueues(configs: LTWorkflowConfig[]): string[] {\n return [...new Set(configs.map((c) => c.task_queue).filter(Boolean))].sort() as string[];\n}\n\n/** One section per task queue; unqueued workflows trail under their own heading when no queue filter is active. */\nexport function groupWorkflows(\n configs: LTWorkflowConfig[],\n search: string,\n activeQueue: string | null,\n): { queue: string; workflows: LTWorkflowConfig[] }[] {\n const q = search.toLowerCase().trim();\n const matches = (c: LTWorkflowConfig) =>\n !q || c.workflow_type.toLowerCase().includes(q) || c.description?.toLowerCase().includes(q);\n\n const targetQueues = activeQueue ? [activeQueue] : workflowQueues(configs);\n const sections = targetQueues\n .map((queue) => ({ queue, workflows: configs.filter((c) => c.task_queue === queue && matches(c)) }))\n .filter((g) => g.workflows.length > 0);\n\n if (!activeQueue) {\n const noQueue = configs.filter((c) => !c.task_queue && matches(c));\n if (noQueue.length > 0) sections.push({ queue: '', workflows: noQueue });\n }\n return sections;\n}\n\n/** The first row of the unfiltered list — what the page preselects. */\nexport function firstWorkflowType(configs: LTWorkflowConfig[]): string | null {\n return groupWorkflows(configs, '', null)[0]?.workflows[0]?.workflow_type ?? null;\n}\n\nexport function WorkflowSelector({\n configs,\n selectedType,\n onSelect,\n tierMap,\n activeTypes,\n search,\n activeQueue,\n compact = false,\n}: {\n configs: LTWorkflowConfig[];\n selectedType: string;\n onSelect: (config: LTWorkflowConfig) => void;\n tierMap: Map<string, WorkflowTier>;\n activeTypes?: Set<string>;\n search: string;\n activeQueue: string | null;\n /** The narrow list column beside the form: name and tier only, headings in flow. */\n compact?: boolean;\n}) {\n const grouped = useMemo(() => groupWorkflows(configs, search, activeQueue), [configs, search, activeQueue]);\n\n if (grouped.length === 0) {\n return <p className=\"text-sm text-text-tertiary py-8 text-center\">No workflows match your filter.</p>;\n }\n\n return (\n <div className={compact ? 'space-y-6' : 'space-y-10'}>\n {grouped.map(({ queue, workflows }) => (\n <div key={queue || '__none__'}>\n <div className={`flex items-center gap-2 py-2 mb-1 border-b border-surface-border ${compact ? '' : 'sticky top-[60px] z-10 bg-surface mb-2'}`}>\n {queue ? (\n <Server className=\"w-3 h-3 text-accent shrink-0\" strokeWidth={1.5} />\n ) : (\n <Wrench className=\"w-3 h-3 text-text-quaternary shrink-0\" strokeWidth={1.5} />\n )}\n <h2 className=\"section-h2 truncate\" title={queue || undefined}>{queue ? identifierToTitle(queue) : NO_QUEUE_LABEL}</h2>\n <span className=\"text-xs text-text-quaternary\">{workflows.length}</span>\n </div>\n <div className={compact ? '' : 'divide-y divide-surface-border/30'}>\n {workflows.map((config) => (\n <WorkflowRow\n key={config.workflow_type}\n config={config}\n isSelected={selectedType === config.workflow_type}\n tier={tierMap.get(config.workflow_type) ?? 'durable'}\n cronActive={activeTypes?.has(config.workflow_type) ?? false}\n onSelect={onSelect}\n compact={compact}\n />\n ))}\n </div>\n </div>\n ))}\n </div>\n );\n}\n\nfunction WorkflowRow({\n config,\n isSelected,\n tier,\n cronActive,\n onSelect,\n compact,\n}: {\n config: LTWorkflowConfig;\n isSelected: boolean;\n tier: WorkflowTier;\n cronActive: boolean;\n onSelect: (config: LTWorkflowConfig) => void;\n compact: boolean;\n}) {\n const variant = tier === 'certified' ? 'certified' : tier === 'registered' ? 'registered' : 'durable';\n\n if (compact) {\n return (\n <button\n onClick={() => onSelect(config)}\n aria-current={isSelected ? 'true' : undefined}\n title={config.workflow_type}\n className={`group w-full text-left flex items-center gap-2.5 pl-3 pr-2 py-2 border-l-2 transition-colors ${\n isSelected ? 'border-accent bg-accent/10 text-accent' : 'border-transparent text-text-primary hover:bg-surface-hover'\n }`}\n >\n <WorkflowIcon icon={config.icon} tier={tier} className={`w-5 h-5 shrink-0 ${isSelected ? 'text-accent' : 'text-accent/65'}`} />\n <span className=\"text-sm truncate\">{identifierToTitle(config.workflow_type)}</span>\n {cronActive && (\n <span title=\"Cron schedule active\" className=\"ml-auto shrink-0\">\n <Clock className=\"w-3 h-3 text-status-success/70\" />\n </span>\n )}\n </button>\n );\n }\n\n return (\n <button\n onClick={() => onSelect(config)}\n className=\"group relative w-full text-left py-2 px-3 -mx-3 rounded-md hover:bg-surface-hover/30 transition-colors duration-150\"\n >\n {isSelected && (\n <span className=\"absolute left-0 top-1 bottom-1 w-0.5 bg-accent rounded-full\" />\n )}\n <div className=\"flex items-center gap-3\">\n <WorkflowPill type={config.workflow_type} size=\"md\" variant={variant} />\n {config.description && (\n <p className=\"flex-1 min-w-0 truncate text-2xs text-text-tertiary group-hover:text-text-secondary transition-colors\">\n {config.description}\n </p>\n )}\n <span className=\"ml-auto flex items-center gap-2 shrink-0\">\n {config.execute_as && (\n <span className=\"inline-flex items-center gap-0.5 px-1.5 py-0.5 text-2xs bg-accent/10 text-accent rounded\">\n <Bot className=\"w-2.5 h-2.5\" />\n {config.execute_as}\n </span>\n )}\n {cronActive && (\n <span title=\"Cron schedule active\">\n <Clock className=\"w-3 h-3 text-status-success/70 shrink-0\" />\n </span>\n )}\n <NamespacePill namespace=\"durable\" />\n <span title=\"Configure & invoke\">\n <Play\n className={`w-3 h-3 transition-opacity ${\n isSelected ? 'text-accent opacity-100' : 'text-accent opacity-0 group-hover:opacity-100'\n }`}\n strokeWidth={1.5}\n />\n </span>\n </span>\n </div>\n </button>\n );\n}\n","import { Bot, UserCircle } from 'lucide-react';\nimport { BotPicker } from '../../../components/common/form/BotPicker';\nimport { useAuth } from '../../../hooks/useAuth';\nimport type { LTWorkflowConfig } from '../../../api/types';\n\nexport function IdentitySummary({\n config,\n overrideBot,\n onOverrideChange,\n showOverride,\n}: {\n config: LTWorkflowConfig;\n overrideBot?: string;\n onOverrideChange?: (botExternalId: string) => void;\n showOverride?: boolean;\n}) {\n const { user } = useAuth();\n const effectiveBot = overrideBot || config.execute_as;\n\n return (\n <div className=\"bg-surface-sunken rounded-lg px-4 py-3 space-y-3\">\n <div>\n <div className=\"flex items-center justify-between mb-1\">\n <span className=\"text-2xs text-text-tertiary uppercase tracking-wider font-medium\">Running as</span>\n {effectiveBot && !overrideBot && (\n <span className=\"text-2xs text-text-tertiary\">configured default</span>\n )}\n {overrideBot && (\n <span className=\"text-2xs text-accent\">admin override</span>\n )}\n </div>\n {/* Read-only identity, styled as a field so it reads consistently with\n the Override control below and pops off the sunken band. */}\n <div className=\"field flex items-center gap-1.5\">\n {effectiveBot ? (\n <>\n <Bot className=\"w-3.5 h-3.5 text-accent/70 shrink-0\" />\n <span className=\"text-xs text-text-primary font-mono\">{effectiveBot}</span>\n </>\n ) : (\n <>\n <UserCircle className=\"w-3.5 h-3.5 text-text-tertiary shrink-0\" />\n <span className=\"text-xs text-text-primary\">\n {user?.displayName || user?.username || 'you'}\n </span>\n </>\n )}\n </div>\n </div>\n {showOverride && onOverrideChange && (\n <div>\n <label className=\"text-2xs text-text-tertiary uppercase tracking-wider font-medium mb-1 block\">Override identity</label>\n <BotPicker\n selected={overrideBot ?? ''}\n onChange={onOverrideChange}\n placeholder={config.execute_as ? `Default: ${config.execute_as}` : 'Invoking user (default)'}\n />\n </div>\n )}\n </div>\n );\n}\n","import { useEffect, useMemo, useState } from 'react';\nimport { lookupLabel } from '../../../lib/lookup-label';\nimport { AlertTriangle, ShieldCheck } from 'lucide-react';\nimport { useAuth } from '../../../hooks/useAuth';\nimport { foldWorkflowLookups, useWorkflowLookups } from '../../../api/workflows';\nimport type { InvocableWorkflow } from '../../../api/types';\nimport { WorkflowIcon } from '../../../components/common/display/WorkflowIcon';\nimport { MarkdownRenderer } from '../../../components/common/display/MarkdownRenderer';\nimport { identifierToTitle } from '../../../lib/identifier-label';\nimport { IdentitySummary } from './IdentitySummary';\nimport { LegacyInvokeForm } from './LegacyInvokeForm';\nimport { RichInvokeForm } from './RichInvokeForm';\nimport { useInvokeSubmit } from './use-invoke-submit';\n\n/**\n * The form column. The workflow's name is the column's heading and stays\n * put; Start stays put at the bottom; description, identity, options, and\n* the fields scroll between them. A declared input_schema renders the\n * x-lt-* form, with pinned input_lookups resolved into its lookup domain;\n * otherwise the envelope template form.\n */\nexport function StartNowPanel({ selected }: { selected: InvocableWorkflow }) {\n const { isSuperAdmin, hasRoleType } = useAuth();\n const isAdmin = isSuperAdmin || hasRoleType('admin');\n const [overrideBot, setOverrideBot] = useState('');\n // Per-run interceptor opt-out, offered when the registration is certified.\n const [certified, setCertified] = useState(selected.certified);\n\n useEffect(() => {\n setOverrideBot('');\n setCertified(selected.certified);\n }, [selected.workflow_type, selected.certified]);\n\n const metadata = useMemo(() => {\n const md = selected.envelope_schema?.metadata;\n return md && typeof md === 'object' ? (md as Record<string, unknown>) : {};\n }, [selected.envelope_schema]);\n\n const hasLookups = Array.isArray(selected.input_lookups) && selected.input_lookups.length > 0;\n const { data: lookupData } = useWorkflowLookups(selected.workflow_type, hasLookups);\n const lookup = useMemo(() => (lookupData ? foldWorkflowLookups(lookupData.lookups) : undefined), [lookupData]);\n const missingLookups = lookupData?.lookups.filter((l) => l.missing) ?? [];\n\n const submission = useInvokeSubmit(selected, { certified, overrideBot });\n\n const lead = (\n <>\n {selected.description && (\n <MarkdownRenderer content={selected.description} className=\"text-xs text-text-secondary leading-relaxed\" />\n )}\n <IdentitySummary\n config={selected}\n overrideBot={overrideBot}\n onOverrideChange={setOverrideBot}\n showOverride={isAdmin}\n />\n {selected.certified && (\n <label className=\"flex items-center gap-2 cursor-pointer\">\n <input\n type=\"checkbox\"\n checked={certified}\n onChange={(e) => setCertified(e.target.checked)}\n className=\"rounded border-surface-border text-accent focus:ring-accent/30\"\n />\n <ShieldCheck className=\"w-3.5 h-3.5 text-text-tertiary\" />\n <span className=\"text-xs text-text-secondary\">Enable task tracking and escalation routing</span>\n </label>\n )}\n </>\n );\n\n return (\n <div className=\"max-w-form\" data-testid=\"invoke-form\">\n {/* Sticks to the top of the shell scroll; the pulled-up padding covers the page gutter above it. */}\n <header className=\"sticky top-0 z-10 bg-surface -mt-8 pt-8 flex items-baseline gap-3 min-w-0 pb-3 mb-5 border-b border-surface-border/60\">\n <WorkflowIcon icon={selected.icon} tier={selected.tier} className=\"w-7 h-7 self-center shrink-0 text-accent\" />\n <h2 className=\"heading-2 truncate\" title={selected.workflow_type}>\n {identifierToTitle(selected.workflow_type)}\n </h2>\n <span className=\"text-2xs font-mono text-text-quaternary shrink-0\">{selected.workflow_type}</span>\n <span className=\"text-2xs uppercase tracking-widest text-text-tertiary shrink-0\">{selected.tier}</span>\n {selected.task_queue && (\n <span className=\"text-2xs font-mono text-text-quaternary truncate\">{selected.task_queue}</span>\n )}\n </header>\n\n {missingLookups.length > 0 && (\n <p className=\"flex items-center gap-1.5 text-2xs text-status-warning mb-4\" data-testid=\"lookup-missing\">\n <AlertTriangle className=\"w-3 h-3 shrink-0\" strokeWidth={1.5} />\n {missingLookups.map(lookupLabel).join(', ')} {missingLookups.length === 1 ? 'is' : 'are'} not available; the fields that read {missingLookups.length === 1 ? 'it' : 'them'} fall back to plain inputs.\n </p>\n )}\n\n {selected.input_schema ? (\n <RichInvokeForm selected={selected} schema={selected.input_schema} metadata={metadata} lookup={lookup} submission={submission} lead={lead} />\n ) : (\n <LegacyInvokeForm selected={selected} metadata={metadata} submission={submission} lead={lead} />\n )}\n </div>\n );\n}\n","import { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useSearchParams } from 'react-router-dom';\nimport { useInvocableWorkflows, useCronStatus } from '../../../api/workflows';\nimport { PageHeader } from '../../../components/common/layout/PageHeader';\nimport { FilterSelect, FilterInput } from '../../../components/common/data/FilterBar';\nimport { useMediaQuery } from '../../../hooks/useMediaQuery';\nimport type { InvocableWorkflow, WorkflowTier } from '../../../api/types';\nimport { WorkflowSelector, workflowQueues, firstWorkflowType } from './WorkflowSelector';\nimport { identifierToTitle } from '../../../lib/identifier-label';\nimport { StartNowPanel } from './StartNowPanel';\n\nconst TYPE_PARAM = 'type';\n// A few dozen workflows read fine grouped by queue; the filters wait for scale to demand them.\nconst LIST_FILTERS_VISIBLE = false;\n\n/**\n * Invoke — the list of workflows the caller may run beside the form for the\n * one chosen. The list is grouped by queue and takes a quarter of the row;\n * the form takes the rest. Selection lives in `?type=`, and the first row\n * is preselected so the page opens on a form, never on an empty column.\n */\nexport function StartWorkflowPage() {\n const [searchParams, setSearchParams] = useSearchParams();\n const { data: invocable, isLoading } = useInvocableWorkflows();\n const { data: cronEntries } = useCronStatus();\n // Below xl the list and the form cannot share the row: the list folds\n // into a select and the form takes the full width.\n const compact = useMediaQuery('(max-width: 1279px)');\n\n const selectedType = searchParams.get(TYPE_PARAM) ?? '';\n const [search, setSearch] = useState('');\n const [activeQueue, setActiveQueue] = useState<string | null>(null);\n\n const workflows: InvocableWorkflow[] = invocable ?? [];\n const tierMap = useMemo(() => {\n const map = new Map<string, WorkflowTier>();\n for (const w of workflows) map.set(w.workflow_type, w.tier);\n return map;\n }, [workflows]);\n const selected = workflows.find((c) => c.workflow_type === selectedType);\n const activeTypes = new Set((cronEntries ?? []).filter((e) => e.active).map((e) => e.workflow_type));\n\n // A user's choice is a history entry; the opening preselect only rewrites the landing URL.\n const setType = useCallback(\n (value: string | null, opts: { replace?: boolean } = {}) => {\n setSearchParams(\n (prev) => {\n const next = new URLSearchParams(prev);\n if (value) next.set(TYPE_PARAM, value);\n else next.delete(TYPE_PARAM);\n return next;\n },\n { replace: opts.replace ?? false },\n );\n },\n [setSearchParams],\n );\n\n useEffect(() => {\n if (searchParams.get(TYPE_PARAM) || workflows.length === 0) return;\n const first = firstWorkflowType(workflows);\n if (first) setType(first, { replace: true });\n }, [workflows, searchParams, setType]);\n\n if (isLoading) {\n return (\n <div className=\"animate-pulse space-y-4\">\n <div className=\"h-8 bg-surface-sunken rounded w-48\" />\n <div className=\"h-40 bg-surface-sunken rounded\" />\n </div>\n );\n }\n\n const queues = workflowQueues(workflows);\n const form = selected\n ? <StartNowPanel selected={selected} />\n : <p className=\"text-xs text-text-tertiary\">Choose a tool to begin.</p>;\n\n return (\n <div>\n <PageHeader title=\"Invoke Tool\" docsHash=\"#docs:dashboard.md:invoke-tool\" />\n\n {workflows.length === 0 ? (\n <div className=\"py-16 text-center\">\n <p className=\"text-sm text-text-primary mb-1\">No tools to invoke</p>\n <p className=\"text-xs text-text-tertiary\">Mark workflows as invocable in the registry, or start the server with examples enabled.</p>\n </div>\n ) : compact ? (\n <>\n <label className=\"block mb-6 max-w-2xl\">\n <span className=\"block text-2xs font-semibold uppercase tracking-widest text-text-tertiary mb-1\">Tool</span>\n <select\n value={selectedType}\n onChange={(e) => setType(e.target.value || null)}\n className=\"select text-xs font-mono w-full\"\n >\n <option value=\"\">Choose a tool…</option>\n {queues.map((q) => (\n <optgroup key={q} label={identifierToTitle(q)}>\n {workflows\n .filter((c) => (c.task_queue || '') === q)\n .map((c) => (\n <option key={c.workflow_type} value={c.workflow_type}>{identifierToTitle(c.workflow_type)}</option>\n ))}\n </optgroup>\n ))}\n {workflows\n .filter((c) => !c.task_queue)\n .map((c) => (\n <option key={c.workflow_type} value={c.workflow_type}>{identifierToTitle(c.workflow_type)}</option>\n ))}\n </select>\n </label>\n {/* The form heading pulls itself up over the page gutter when stuck; give it that room here so it never covers the picker. */}\n <div className=\"pt-8\">{form}</div>\n </>\n ) : (\n <div className=\"flex gap-10 items-start\">\n {/* The page scrolls as a whole; the list column and the form's title and Start stick while the title of the page rides away. */}\n <aside className=\"w-1/4 min-w-[15rem] shrink-0 sticky top-0 self-start -mt-8 pt-8 max-h-[calc(100vh-5rem)] overflow-y-auto pr-1 space-y-4\" data-testid=\"invoke-list\">\n {LIST_FILTERS_VISIBLE && <div className=\"flex flex-col gap-3\">\n {queues.length > 1 && (\n <FilterSelect\n label=\"Queue\"\n value={activeQueue ?? ''}\n onChange={(v) => setActiveQueue(v || null)}\n options={queues.map((q) => ({ value: q, label: q }))}\n />\n )}\n <FilterInput\n label=\"Search\"\n value={search}\n onChange={setSearch}\n placeholder={`${workflows.length} workflows…`}\n />\n </div>}\n <WorkflowSelector\n configs={workflows}\n selectedType={selectedType}\n onSelect={(c) => setType(c.workflow_type)}\n tierMap={tierMap}\n activeTypes={activeTypes}\n search={search}\n activeQueue={activeQueue}\n compact\n />\n </aside>\n <section className=\"flex-1 min-w-0\">{form}</section>\n </div>\n )}\n </div>\n );\n}\n","import { StartWorkflowPage } from './StartWorkflowPage';\n\nexport function DurableInvokePage() {\n return <StartWorkflowPage />;\n}\n"],"names":["useMediaQuery","query","matches","setMatches","useState","useEffect","mql","onChange","e","NO_QUEUE_LABEL","workflowQueues","configs","c","groupWorkflows","search","activeQueue","q","_a","sections","queue","g","noQueue","firstWorkflowType","_b","WorkflowSelector","selectedType","onSelect","tierMap","activeTypes","compact","grouped","useMemo","jsx","workflows","jsxs","Server","Wrench","identifierToTitle","config","WorkflowRow","isSelected","tier","cronActive","variant","WorkflowIcon","Clock","WorkflowPill","Bot","NamespacePill","Play","IdentitySummary","overrideBot","onOverrideChange","showOverride","user","useAuth","effectiveBot","Fragment","UserCircle","BotPicker","StartNowPanel","selected","isSuperAdmin","hasRoleType","isAdmin","setOverrideBot","certified","setCertified","metadata","md","hasLookups","lookupData","useWorkflowLookups","lookup","foldWorkflowLookups","missingLookups","l","submission","useInvokeSubmit","lead","MarkdownRenderer","ShieldCheck","AlertTriangle","lookupLabel","RichInvokeForm","LegacyInvokeForm","TYPE_PARAM","LIST_FILTERS_VISIBLE","StartWorkflowPage","searchParams","setSearchParams","useSearchParams","invocable","isLoading","useInvocableWorkflows","cronEntries","useCronStatus","setSearch","setActiveQueue","map","w","setType","useCallback","value","opts","prev","next","first","queues","form","PageHeader","DurableInvokePage"],"mappings":"83BAQO,SAASA,EAAcC,EAAwB,CACpD,KAAM,CAACC,EAASC,CAAU,EAAIC,EAAAA,SAAkB,IAAM,CACpD,GAAI,CACF,OAAO,OAAO,WAAWH,CAAK,EAAE,OAClC,MAAQ,CACN,MAAO,EACT,CACF,CAAC,EAEDI,OAAAA,EAAAA,UAAU,IAAM,CACd,IAAIC,EACJ,GAAI,CACFA,EAAM,OAAO,WAAWL,CAAK,CAC/B,MAAQ,CACN,MACF,CACAE,EAAWG,EAAI,OAAO,EACtB,MAAMC,EAAYC,GAA2BL,EAAWK,EAAE,OAAO,EACjE,OAAAF,EAAI,iBAAiB,SAAUC,CAAQ,EAChC,IAAMD,EAAI,oBAAoB,SAAUC,CAAQ,CACzD,EAAG,CAACN,CAAK,CAAC,EAEHC,CACT,CCvBA,MAAMO,EAAiB,WAGhB,SAASC,EAAeC,EAAuC,CACpE,MAAO,CAAC,GAAG,IAAI,IAAIA,EAAQ,IAAKC,GAAMA,EAAE,UAAU,EAAE,OAAO,OAAO,CAAC,CAAC,EAAE,KAAA,CACxE,CAGO,SAASC,EACdF,EACAG,EACAC,EACoD,CACpD,MAAMC,EAAIF,EAAO,YAAA,EAAc,KAAA,EACzBZ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,CAA6B,MAAOA,EAAE,cAAgB,SAAAyB,EAAkBzB,EAAE,aAAa,CAAA,EAA3EA,EAAE,aAA2E,CAC3F,CAAA,CAAA,CAAA,CACL,EACF,EAEAoB,EAAAA,IAAC,MAAA,CAAI,UAAU,OAAQ,SAAA6E,CAAA,CAAK,CAAA,CAAA,CAC9B,EAEA3E,EAAAA,KAAC,MAAA,CAAI,UAAU,0BAEb,SAAA,CAAAA,EAAAA,KAAC,QAAA,CAAM,UAAU,0HAA0H,cAAY,cACpJ,SAAA,CAAAqD,GAgBDvD,EAAAA,IAACR,GAAA,CACC,QAASS,EACT,aAAAR,EACA,SAAWb,GAAMyF,EAAQzF,EAAE,aAAa,EACxC,QAAAe,EACA,YAAAC,EACA,OAAAd,EACA,YAAAC,EACA,QAAO,EAAA,CAAA,CACT,EACF,EACAiB,EAAAA,IAAC,UAAA,CAAQ,UAAU,iBAAkB,SAAA6E,CAAA,CAAK,CAAA,CAAA,CAC5C,CAAA,EAEJ,CAEJ,CCtJO,SAASE,IAAoB,CAClC,aAAQvB,GAAA,EAAkB,CAC5B"}
@@ -1,4 +1,4 @@
1
- import{a as d,j as e}from"./vendor-query-DvWWuNIB.js";import{aC as Z,aH as A,Y as ee,a as te,aI as se,ay as re,az as oe,ax as ne}from"./index-fUsx_gYx.js";import{F as ae,b as le,a as ie}from"./FilterBar-CCTaA_LH.js";import{C as Q}from"./ConfirmDeleteModal-DJSmsHQM.js";import{R as L}from"./RolePill-Di2CAHuD.js";import{W as ce}from"./WorkflowPill-Dg7BDTyM.js";import{P as ue}from"./PageHeader-CMd3f4bz.js";import{K as de,aw as F,az as z,aD as me,j as B,aE as xe,aF as H,a3 as pe,U as T,X as he,C as fe,ab as we,aG as J,l as ke,E as ve}from"./vendor-icons-CeVtUKyP.js";import{u as G,e as ge,f as je}from"./vendor-react-_9U4mKFr.js";import{B as ye}from"./BotPicker-BXtey255.js";import{N as Ne}from"./NamespacePill-DwM5pNA4.js";import{c as be,f as _e,R as Ce,g as Se,h as U}from"./ResolverForm-BwWOYv_Z.js";import"./EscalationListView-CrlD3ZGt.js";import"./bots-BG2EO-Wi.js";import"./StatusBadge-DHVwxre2.js";import"./constants-CeBBTzf5.js";import"./DataTable-spX1dFyb.js";import"./EmptyState-DgC_6njU.js";import"./useContainerWidth-DSLp1gEm.js";import"./UserName-B-5JcDck.js";import"./StickyPagination-cNqSDm5f.js";function Ie({tier:t}){return t==="certified"?e.jsxs("span",{className:"inline-flex items-center gap-1 text-2xs font-medium text-status-success",children:[e.jsx(z,{className:"w-3 h-3"}),"Certified"]}):t==="registered"?e.jsxs("span",{className:"inline-flex items-center gap-1 text-2xs font-medium text-text-secondary",children:[e.jsx(pe,{className:"w-3 h-3"}),"Registered"]}):e.jsxs("span",{className:"inline-flex items-center gap-1 text-2xs font-medium text-text-quaternary",children:[e.jsx(F,{className:"w-3 h-3"}),"Durable"]})}function nt(){const t=G(),{data:o,isLoading:i}=Z(),m=A(),[u,p]=d.useState(""),[r,k]=d.useState(null),[f,g]=d.useState(null),a=o??[],y=d.useMemo(()=>[...new Set(a.map(l=>l.task_queue).filter(Boolean))].sort(),[a]),c=d.useMemo(()=>{const l=u.toLowerCase().trim();return(r?[r]:y).map(h=>({queue:h,workflows:a.filter(S=>{var N;return S.task_queue===h&&(!l||S.workflow_type.toLowerCase().includes(l)||((N=S.description)==null?void 0:N.toLowerCase().includes(l)))})})).filter(h=>h.workflows.length>0)},[a,y,u,r]),x=d.useMemo(()=>{const l=u.toLowerCase().trim();return r?[]:a.filter(s=>{var h;return!s.task_queue&&(!l||s.workflow_type.toLowerCase().includes(l)||((h=s.description)==null?void 0:h.toLowerCase().includes(l)))})},[a,u,r]),C=l=>{l.registered?t(`/workflows/registry/${encodeURIComponent(l.workflow_type)}`):t(`/workflows/registry/new?workflow_type=${encodeURIComponent(l.workflow_type)}&task_queue=${encodeURIComponent(l.task_queue??"")}`)},I=()=>{f&&m.mutate(f,{onSuccess:()=>g(null)})};return e.jsxs("div",{children:[e.jsx(ue,{title:"Registered Workflows",docsHash:"#docs:dashboard.md:workflow-registry",actions:e.jsx("button",{onClick:()=>t("/workflows/registry/new"),className:"btn-primary text-xs",children:"Register Workflow"})}),!i&&y.length>0&&e.jsxs(ae,{children:[e.jsx(le,{label:"Queue",value:r??"",onChange:l=>k(l||null),options:y.map(l=>({value:l,label:l}))}),e.jsx(ie,{label:"Search",value:u,onChange:p,placeholder:`${a.length} workflows…`})]}),i?e.jsx(We,{}):c.length===0&&x.length===0?e.jsx("p",{className:"text-sm text-text-tertiary mt-8",children:u||r?"No workflows match your filter.":"No workflows discovered yet."}):e.jsxs("div",{className:"space-y-10",children:[c.map(({queue:l,workflows:s})=>e.jsxs("div",{children:[e.jsxs("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.jsx(de,{className:"w-3 h-3 text-accent",strokeWidth:1.5}),e.jsx("h2",{className:"section-h2",children:l}),e.jsx("span",{className:"text-xs text-text-quaternary",children:s.length})]}),e.jsx($,{}),e.jsx("div",{className:"divide-y divide-surface-border/30",children:s.map(h=>e.jsx(M,{wf:h,onRowClick:C,onDelete:g,onNavigate:t},h.workflow_type))})]},l)),x.length>0&&e.jsxs("div",{children:[e.jsxs("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.jsx(F,{className:"w-3 h-3 text-text-quaternary",strokeWidth:1.5}),e.jsx("h2",{className:"section-h2",children:"No Queue"}),e.jsx("span",{className:"text-xs text-text-quaternary",children:x.length})]}),e.jsx($,{}),e.jsx("div",{className:"divide-y divide-surface-border/30",children:x.map(l=>e.jsx(M,{wf:l,onRowClick:C,onDelete:g,onNavigate:t},l.workflow_type))})]})]}),e.jsx(Q,{open:!!f,onClose:()=>g(null),onConfirm:I,title:"Unregister Workflow",description:e.jsxs(e.Fragment,{children:["Delete the registration for"," ",e.jsx("span",{className:"font-mono font-medium text-text-primary",children:f}),"? This removes its invocation settings, certification, and interceptor treatment; the workflow keeps running as a plain durable workflow. To demote certified → registered instead, open the workflow and uncheck Certify — that keeps every setting."]}),isPending:m.isPending,error:m.error})]})}const K="grid grid-cols-[minmax(0,1fr)_7rem_13rem_4.5rem] gap-x-6";function $(){return e.jsxs("div",{className:`${K} px-3 pb-2 pt-1`,children:[e.jsx("span",{className:"text-2xs font-medium text-text-quaternary",children:"Workflow"}),e.jsx("span",{className:"text-2xs font-medium text-text-quaternary",children:"Tier"}),e.jsx("span",{className:"text-2xs font-medium text-text-quaternary",children:"Access"}),e.jsx("span",{})]})}function M({wf:t,onRowClick:o,onDelete:i,onNavigate:m}){const u=t.roles??[],p=t.invocation_roles??[];return e.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(t),onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&o(t)},className:`group ${K} py-2 px-3 -mx-3 rounded-md cursor-pointer transition-colors items-center`,children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx(ce,{type:t.workflow_type,size:"md",variant:t.tier==="certified"?"certified":t.tier==="registered"?"registered":"durable"}),t.description&&e.jsx("p",{className:"flex-1 min-w-0 truncate text-2xs text-text-tertiary group-hover:text-text-secondary transition-colors",children:t.description})]}),e.jsx("div",{children:e.jsx(Ie,{tier:t.tier??"durable"})}),e.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 overflow-hidden whitespace-nowrap",children:[u.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{title:"Escalation roles",children:e.jsx(z,{className:"w-3 h-3 text-text-quaternary shrink-0"})}),u.map(r=>e.jsx(L,{role:r},`e-${r}`))]}),p.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{title:"Invocation roles",children:e.jsx(me,{className:"w-3 h-3 text-text-quaternary shrink-0"})}),p.map(r=>e.jsx(L,{role:r},`i-${r}`))]}),u.length===0&&p.length===0&&e.jsx("span",{className:"text-xs text-text-quaternary",children:"—"})]}),e.jsxs("div",{className:"flex items-center justify-end gap-2.5 opacity-0 group-hover:opacity-100 transition-opacity",children:[t.invocable&&e.jsx("button",{title:"Invoke workflow",onClick:r=>{r.stopPropagation(),m(`/workflows/start?type=${encodeURIComponent(t.workflow_type)}&mode=now`)},className:"text-text-quaternary hover:text-status-success transition-colors",children:e.jsx(B,{className:"w-3.5 h-3.5"})}),t.tier==="durable"&&e.jsx("button",{title:"Configure workflow",onClick:r=>{r.stopPropagation(),m(`/workflows/registry/new?workflow_type=${encodeURIComponent(t.workflow_type)}&task_queue=${encodeURIComponent(t.task_queue??"")}`)},className:"text-text-quaternary hover:text-status-info transition-colors",children:e.jsx(F,{className:"w-3.5 h-3.5"})}),t.tier==="registered"&&e.jsx("button",{title:"Certify workflow",onClick:r=>{r.stopPropagation(),m(`/workflows/registry/${encodeURIComponent(t.workflow_type)}`)},className:"text-text-quaternary hover:text-status-success transition-colors",children:e.jsx(xe,{className:"w-3.5 h-3.5"})}),t.registered&&e.jsx("button",{title:"Unregister workflow",onClick:r=>{r.stopPropagation(),i(t.workflow_type)},className:"text-text-quaternary hover:text-status-warning transition-colors",children:e.jsx(H,{className:"w-3.5 h-3.5"})})]})]})}function We(){return e.jsx("div",{className:"animate-pulse space-y-8 mt-4",children:[1,2].map(t=>e.jsxs("div",{children:[e.jsx("div",{className:"h-4 bg-surface-sunken rounded w-36 mb-4"}),e.jsx("div",{className:"space-y-4",children:[1,2,3].map(o=>e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("div",{className:"h-3 bg-surface-sunken rounded w-48"}),e.jsx("div",{className:"h-3 bg-surface-sunken rounded w-full"})]},o))})]},t))})}function Re({selected:t,onChange:o,single:i,placeholder:m}){const{data:u}=ee(),p=(u==null?void 0:u.roles)??[],[r,k]=d.useState(!1),f=d.useRef(null);d.useEffect(()=>{const c=x=>{f.current&&!f.current.contains(x.target)&&k(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]);const g=c=>{i?(o(t.includes(c)?[]:[c]),k(!1)):o(t.includes(c)?t.filter(x=>x!==c):[...t,c])},a=c=>{o(t.filter(x=>x!==c))},y=m??(i?"Select role...":"Add roles...");return e.jsxs("div",{ref:f,className:"relative",children:[e.jsxs("button",{type:"button",onClick:()=>k(!r),className:"flex flex-wrap items-center gap-1.5 w-full min-h-[34px] px-2 py-1.5 bg-surface-sunken border border-surface-border rounded-md text-left cursor-pointer hover:border-accent/40 transition-colors focus:ring-1 focus:ring-accent focus:outline-none",children:[t.length===0&&e.jsx("span",{className:"text-xs text-text-tertiary",children:y}),t.map(c=>e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-lg bg-accent/[0.08] text-text-secondary text-2xs",children:[e.jsx(T,{className:"w-2.5 h-2.5 shrink-0 text-accent/75"}),c,e.jsx("span",{role:"button",onClick:x=>{x.stopPropagation(),a(c)},className:"ml-0.5 hover:text-status-error transition-colors",children:e.jsx(he,{className:"w-2.5 h-2.5"})})]},c)),e.jsx(fe,{className:`w-3.5 h-3.5 ml-auto shrink-0 text-text-tertiary transition-transform ${r?"rotate-180":""}`})]}),r&&e.jsx("div",{className:"absolute z-[100] mt-1 w-full bg-surface-raised border border-surface-border rounded-md shadow-lg max-h-48 overflow-y-auto",children:p.length===0?e.jsx("p",{className:"px-3 py-2 text-xs text-text-tertiary",children:"No roles defined"}):p.map(c=>{const x=t.includes(c);return e.jsxs("button",{type:"button",onClick:()=>g(c),className:`flex items-center gap-2 w-full px-3 py-1.5 text-left text-xs transition-colors ${x?"bg-accent/[0.06] text-accent":"text-text-primary hover:bg-surface-sunken"}`,children:[e.jsx(T,{className:"w-3 h-3 shrink-0 text-accent/60"}),e.jsx("span",{className:"flex-1",children:c}),x&&e.jsx(we,{className:"w-3 h-3 shrink-0"})]},c)})})]})}function W(t){return t.split(",").map(o=>o.trim()).filter(Boolean)}const R={workflow_type:"",description:"",task_queue:"",default_role:"reviewer",invocable:!1,roles:"",invocation_roles:"",consumes:"",envelope_schema:"",input_schema:"",input_lookups:"",icon:"",resolver_schema:"",cron_schedule:"",execute_as:"",certified:!1};function qe(t){var m;const o=(t.roles??[]).join(", "),i=(t.consumes??[]).join(", ");return{workflow_type:t.workflow_type,description:t.description??"",task_queue:t.task_queue??"",default_role:t.default_role,invocable:t.invocable,roles:o,invocation_roles:(t.invocation_roles??[]).join(", "),consumes:i,envelope_schema:t.envelope_schema?JSON.stringify(t.envelope_schema,null,2):"",input_schema:t.input_schema?JSON.stringify(t.input_schema,null,2):"",input_lookups:(m=t.input_lookups)!=null&&m.length?JSON.stringify(t.input_lookups,null,2):"",icon:t.icon??"",resolver_schema:t.resolver_schema?JSON.stringify(t.resolver_schema,null,2):"",cron_schedule:t.cron_schedule??"",execute_as:t.execute_as??"",certified:t.certified}}function _(t){if(!t.trim())return!0;try{return JSON.parse(t),!0}catch{return!1}}function Pe(t){if(!t.trim())return null;try{const o=JSON.parse(t);return o&&typeof o=="object"&&!Array.isArray(o)&&o.properties?o:null}catch{return null}}function Fe({schemaText:t,lookup:o}){const i=d.useMemo(()=>Pe(t),[t]),m=d.useMemo(()=>i?be(i):"",[i]),[u,p]=d.useState(m);d.useEffect(()=>{p(m)},[m]);const r=d.useMemo(()=>({..._e({},o),resolver:null}),[o]);return i?e.jsx("div",{className:"@container","data-testid":"input-form-preview",children:e.jsx(Ce,{value:u,onChange:p,escalationContext:r})}):e.jsxs("p",{className:"text-2xs text-text-tertiary",children:["A schema with ",e.jsx("code",{className:"font-mono",children:"properties"})," previews here as the operator's form."]})}function Oe({value:t,onChange:o}){const[i,m]=d.useState(""),u=d.useMemo(()=>Se(i),[i]),p=U(t);return e.jsxs("div",{className:"space-y-2","data-testid":"workflow-icon-picker",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"text",value:i,onChange:r=>m(r.target.value),placeholder:"Filter icons…","aria-label":"Filter icons",className:"input text-2xs py-1 w-40"}),e.jsxs("span",{className:"flex items-center gap-1.5 text-2xs text-text-tertiary min-w-0",children:[p?e.jsx(p,{className:"w-3.5 h-3.5 text-accent shrink-0",strokeWidth:1.5}):e.jsx(J,{className:"w-3.5 h-3.5 shrink-0",strokeWidth:1.5}),e.jsx("span",{className:"font-mono truncate",children:t||"tier glyph"})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-1",role:"listbox","aria-label":"Workflow icon",children:[e.jsx("button",{type:"button",role:"option","aria-selected":!t,title:"No icon (tier glyph)",onClick:()=>o(""),className:`p-1.5 rounded-md border transition-colors ${t?"border-transparent text-text-quaternary hover:bg-surface-hover hover:text-text-secondary":"border-accent bg-accent/10 text-accent"}`,children:e.jsx(J,{className:"w-4 h-4",strokeWidth:1.5})}),u.map(r=>{const k=U(r),f=t===r;return e.jsx("button",{type:"button",role:"option","aria-selected":f,title:r,onClick:()=>o(r),className:`p-1.5 rounded-md border transition-colors ${f?"border-accent bg-accent/10 text-accent":"border-transparent text-text-tertiary hover:bg-surface-hover hover:text-text-primary"}`,children:e.jsx(k,{className:"w-4 h-4",strokeWidth:1.5})},r)}),u.length===0&&e.jsx("p",{className:"text-2xs text-text-tertiary px-1 py-1.5",children:"No icon matches."})]})]})}function q({icon:t,color:o,children:i}){return e.jsxs("div",{className:"flex items-center gap-2 mb-4 pb-2 border-b border-surface-border",children:[e.jsx(t,{className:`w-4 h-4 ${o}`,strokeWidth:1.5}),e.jsx("h2",{className:"section-h2",children:i})]})}function j({label:t,hint:o,children:i}){return e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"label",children:t}),i,o&&e.jsx("p",{className:"hint",children:o})]})}const P="input-json w-full";function De(t){return W(t)}function Ee(t){return t.join(", ")}const Le=new Set(["mcpQuery","mcpDeterministic","mcpQueryRouter","mcpTriage","mcpTriageRouter","mcpTriageDeterministic","insightQuery"]);function at(){const{workflowType:t}=ge(),o=!t,i=G(),[m]=je(),{data:u,isLoading:p}=te(),r=se(),k=A(),[f,g]=d.useState(!1),a=(u==null?void 0:u.find(n=>n.workflow_type===t))??null,y=Array.isArray(a==null?void 0:a.input_lookups)&&a.input_lookups.length>0,{data:c}=re((a==null?void 0:a.workflow_type)??"",y),x=d.useMemo(()=>c?oe(c.lookups):void 0,[c]),{data:C}=ne({limit:500}),I=d.useMemo(()=>{const n=new Set((u??[]).map(v=>v.workflow_type));return[...new Set(((C==null?void 0:C.jobs)??[]).map(v=>v.entity))].filter(v=>!n.has(v)&&!Le.has(v)).sort()},[u,C]),l=d.useMemo(()=>{if(!o)return R;const n=m.get("workflow_type")??"",b=m.get("task_queue")??"";return n||b?{...R,workflow_type:n,task_queue:b}:R},[o,m]),[s,h]=d.useState(l),[S,N]=d.useState(""),[O,D]=d.useState(!1),w=d.useCallback((n,b)=>h(v=>({...v,[n]:b})),[]);d.useEffect(()=>{if(!O){if(o){h(l),D(!0);return}a&&(h(qe(a)),D(!0))}},[a,o,O,l]);const Y=()=>{if(!s.workflow_type.trim())return;N("");let n=null,b=null,v=null,E=null;try{s.envelope_schema.trim()&&(n=JSON.parse(s.envelope_schema))}catch{N("Invalid JSON in Envelope Schema");return}try{s.input_schema.trim()&&(b=JSON.parse(s.input_schema))}catch{N("Invalid JSON in Input Form");return}try{s.input_lookups.trim()&&(v=JSON.parse(s.input_lookups))}catch{N("Invalid JSON in Lookups");return}try{s.resolver_schema.trim()&&(E=JSON.parse(s.resolver_schema))}catch{N("Invalid JSON in Resolver Schema");return}r.mutate({workflow_type:s.workflow_type.trim(),description:s.description.trim()||null,task_queue:s.task_queue.trim()||null,default_role:s.default_role.trim()||"reviewer",invocable:s.invocable,certified:s.certified,roles:W(s.roles),invocation_roles:W(s.invocation_roles),consumes:W(s.consumes),envelope_schema:n,input_schema:b,input_lookups:v,icon:s.icon||null,resolver_schema:E,cron_schedule:s.cron_schedule.trim()||null,execute_as:s.execute_as.trim()||null},{onSuccess:()=>i("/workflows/registry")})};if(p)return e.jsxs("div",{className:"animate-pulse space-y-4",children:[e.jsx("div",{className:"h-8 bg-surface-sunken rounded w-64"}),e.jsx("div",{className:"h-40 bg-surface-sunken rounded"})]});if(!o&&!a)return e.jsx("p",{className:"text-sm text-text-secondary",children:"Config not found."});const V=!!s.workflow_type.trim()&&_(s.envelope_schema)&&_(s.input_schema)&&_(s.input_lookups)&&_(s.resolver_schema),X=o&&!s.workflow_type&&I.length>0;return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-start justify-between mb-8",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-light font-mono text-text-primary",children:o?"New Workflow":(a==null?void 0:a.workflow_type)??""}),a&&e.jsx("div",{className:"flex items-center gap-2 mt-2",children:e.jsx(Ne,{namespace:"durable"})})]}),e.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[a&&e.jsxs("button",{onClick:()=>g(!0),className:"flex items-center gap-1.5 text-2xs text-status-warning hover:underline mr-3",title:"Delete this registration — the workflow returns to plain durable",children:[e.jsx(H,{className:"w-3 h-3",strokeWidth:1.5})," Unregister"]}),e.jsx("button",{onClick:()=>i("/workflows/registry"),className:"btn-ghost text-xs",children:"Cancel"}),e.jsx("button",{onClick:Y,disabled:!V||r.isPending,className:"btn-primary text-xs",children:r.isPending?"Saving…":o?"Register":"Save"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 @wall:grid-cols-3 gap-x-14 gap-y-10",children:[e.jsxs("div",{children:[e.jsx(q,{icon:ke,color:"text-accent",children:"Identity"}),e.jsxs("div",{className:"space-y-5",children:[e.jsx(j,{label:"Workflow Type",hint:"Register a workflow to configure invocation and HITL escalation routing.",children:X?e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs text-text-secondary",children:"Select a durable workflow to register:"}),e.jsx("div",{className:"grid gap-1",children:I.map(n=>e.jsx("button",{onClick:()=>w("workflow_type",n),className:"flex items-center gap-2 px-3 py-2 text-left text-xs font-mono rounded-md border border-surface-border hover:border-accent/50 hover:bg-accent/[0.04] transition-colors",children:n},n))}),e.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[e.jsx("span",{className:"text-2xs text-text-tertiary",children:"or"}),e.jsx("input",{type:"text",onChange:n=>w("workflow_type",n.target.value),placeholder:"Enter type manually",className:"input font-mono flex-1"})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"text",value:s.workflow_type,onChange:n=>w("workflow_type",n.target.value),disabled:!o,placeholder:"reviewContent",className:"input font-mono w-full"}),o&&s.workflow_type&&I.length>0&&e.jsx("button",{onClick:()=>w("workflow_type",""),className:"text-2xs text-accent hover:underline mt-1",children:"Choose from durable workflows"})]})}),e.jsx(j,{label:"Icon",hint:"Leads the workflow's row and heading on the Invoke Tool page so operators tell tools apart at a glance. Declared in code as WORKFLOW_ICONS.*",children:e.jsx(Oe,{value:s.icon,onChange:n=>w("icon",n)})}),e.jsx(j,{label:"Description",children:e.jsx("input",{type:"text",value:s.description,onChange:n=>w("description",n.target.value),placeholder:"Describe what this workflow does",className:"input text-xs w-full"})}),e.jsx(j,{label:"Task Queue",hint:"Durable task queue this workflow listens on.",children:e.jsx("input",{type:"text",value:s.task_queue,onChange:n=>w("task_queue",n.target.value),placeholder:"lt-review",className:"input font-mono w-full"})})]})]}),e.jsxs("div",{children:[e.jsx(q,{icon:B,color:"text-accent",children:"Invocation"}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:s.invocable,onChange:n=>w("invocable",n.target.checked),className:"w-4 h-4 rounded border-border accent-accent"}),e.jsx("span",{className:"text-xs text-text-primary font-medium",children:"Invocable"})]}),e.jsx("p",{className:"hint",children:"Allow this workflow to be started from the dashboard or API."})]}),s.invocable?e.jsxs(e.Fragment,{children:[e.jsx(j,{label:"Run As",hint:"Bot identity to run under. Default runs as the invoking user.",children:e.jsx(ye,{selected:s.execute_as,onChange:n=>w("execute_as",n)})}),e.jsx(j,{label:"Invocation Roles",hint:"Only users with these roles can start this workflow. Empty = all authenticated users.",children:e.jsx(Re,{selected:De(s.invocation_roles),onChange:n=>w("invocation_roles",Ee(n)),placeholder:"Select roles…"})}),e.jsxs(j,{label:"Input Form",hint:e.jsx("button",{type:"button",onClick:()=>{window.location.hash="#docs:hitl/invoke-form.md"},className:"text-accent hover:underline",children:"Authoring reference →"}),children:[e.jsx("textarea",{value:s.input_schema,onChange:n=>w("input_schema",n.target.value),placeholder:`{
1
+ import{a as d,j as e}from"./vendor-query-DvWWuNIB.js";import{aC as Z,aH as A,Y as ee,a as te,aI as se,ay as re,az as oe,ax as ne}from"./index-BUYokcrl.js";import{F as ae,b as le,a as ie}from"./FilterBar-D-6xVHIw.js";import{C as Q}from"./ConfirmDeleteModal-Beq1vQtY.js";import{R as L}from"./RolePill-Di2CAHuD.js";import{W as ce}from"./WorkflowPill-Dg7BDTyM.js";import{P as ue}from"./PageHeader-CMd3f4bz.js";import{K as de,aw as F,az as z,aD as me,j as B,aE as xe,aF as H,a3 as pe,U as T,X as he,C as fe,ab as we,aG as J,l as ke,E as ve}from"./vendor-icons-CeVtUKyP.js";import{u as G,e as ge,f as je}from"./vendor-react-_9U4mKFr.js";import{B as ye}from"./BotPicker-C3LR6Sqy.js";import{N as Ne}from"./NamespacePill-DwM5pNA4.js";import{c as be,f as _e,R as Ce,g as Se,h as U}from"./ResolverForm-BwVOJUpJ.js";import"./EscalationListView-DTIVuym4.js";import"./bots-DRoAdLek.js";import"./StatusBadge-DHVwxre2.js";import"./constants-CeBBTzf5.js";import"./DataTable-spX1dFyb.js";import"./EmptyState-DgC_6njU.js";import"./useContainerWidth-DSLp1gEm.js";import"./UserName-BDBDA-LR.js";import"./StickyPagination-DsdtYoXR.js";function Ie({tier:t}){return t==="certified"?e.jsxs("span",{className:"inline-flex items-center gap-1 text-2xs font-medium text-status-success",children:[e.jsx(z,{className:"w-3 h-3"}),"Certified"]}):t==="registered"?e.jsxs("span",{className:"inline-flex items-center gap-1 text-2xs font-medium text-text-secondary",children:[e.jsx(pe,{className:"w-3 h-3"}),"Registered"]}):e.jsxs("span",{className:"inline-flex items-center gap-1 text-2xs font-medium text-text-quaternary",children:[e.jsx(F,{className:"w-3 h-3"}),"Durable"]})}function nt(){const t=G(),{data:o,isLoading:i}=Z(),m=A(),[u,p]=d.useState(""),[r,k]=d.useState(null),[f,g]=d.useState(null),a=o??[],y=d.useMemo(()=>[...new Set(a.map(l=>l.task_queue).filter(Boolean))].sort(),[a]),c=d.useMemo(()=>{const l=u.toLowerCase().trim();return(r?[r]:y).map(h=>({queue:h,workflows:a.filter(S=>{var N;return S.task_queue===h&&(!l||S.workflow_type.toLowerCase().includes(l)||((N=S.description)==null?void 0:N.toLowerCase().includes(l)))})})).filter(h=>h.workflows.length>0)},[a,y,u,r]),x=d.useMemo(()=>{const l=u.toLowerCase().trim();return r?[]:a.filter(s=>{var h;return!s.task_queue&&(!l||s.workflow_type.toLowerCase().includes(l)||((h=s.description)==null?void 0:h.toLowerCase().includes(l)))})},[a,u,r]),C=l=>{l.registered?t(`/workflows/registry/${encodeURIComponent(l.workflow_type)}`):t(`/workflows/registry/new?workflow_type=${encodeURIComponent(l.workflow_type)}&task_queue=${encodeURIComponent(l.task_queue??"")}`)},I=()=>{f&&m.mutate(f,{onSuccess:()=>g(null)})};return e.jsxs("div",{children:[e.jsx(ue,{title:"Registered Workflows",docsHash:"#docs:dashboard.md:workflow-registry",actions:e.jsx("button",{onClick:()=>t("/workflows/registry/new"),className:"btn-primary text-xs",children:"Register Workflow"})}),!i&&y.length>0&&e.jsxs(ae,{children:[e.jsx(le,{label:"Queue",value:r??"",onChange:l=>k(l||null),options:y.map(l=>({value:l,label:l}))}),e.jsx(ie,{label:"Search",value:u,onChange:p,placeholder:`${a.length} workflows…`})]}),i?e.jsx(We,{}):c.length===0&&x.length===0?e.jsx("p",{className:"text-sm text-text-tertiary mt-8",children:u||r?"No workflows match your filter.":"No workflows discovered yet."}):e.jsxs("div",{className:"space-y-10",children:[c.map(({queue:l,workflows:s})=>e.jsxs("div",{children:[e.jsxs("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.jsx(de,{className:"w-3 h-3 text-accent",strokeWidth:1.5}),e.jsx("h2",{className:"section-h2",children:l}),e.jsx("span",{className:"text-xs text-text-quaternary",children:s.length})]}),e.jsx($,{}),e.jsx("div",{className:"divide-y divide-surface-border/30",children:s.map(h=>e.jsx(M,{wf:h,onRowClick:C,onDelete:g,onNavigate:t},h.workflow_type))})]},l)),x.length>0&&e.jsxs("div",{children:[e.jsxs("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.jsx(F,{className:"w-3 h-3 text-text-quaternary",strokeWidth:1.5}),e.jsx("h2",{className:"section-h2",children:"No Queue"}),e.jsx("span",{className:"text-xs text-text-quaternary",children:x.length})]}),e.jsx($,{}),e.jsx("div",{className:"divide-y divide-surface-border/30",children:x.map(l=>e.jsx(M,{wf:l,onRowClick:C,onDelete:g,onNavigate:t},l.workflow_type))})]})]}),e.jsx(Q,{open:!!f,onClose:()=>g(null),onConfirm:I,title:"Unregister Workflow",description:e.jsxs(e.Fragment,{children:["Delete the registration for"," ",e.jsx("span",{className:"font-mono font-medium text-text-primary",children:f}),"? This removes its invocation settings, certification, and interceptor treatment; the workflow keeps running as a plain durable workflow. To demote certified → registered instead, open the workflow and uncheck Certify — that keeps every setting."]}),isPending:m.isPending,error:m.error})]})}const K="grid grid-cols-[minmax(0,1fr)_7rem_13rem_4.5rem] gap-x-6";function $(){return e.jsxs("div",{className:`${K} px-3 pb-2 pt-1`,children:[e.jsx("span",{className:"text-2xs font-medium text-text-quaternary",children:"Workflow"}),e.jsx("span",{className:"text-2xs font-medium text-text-quaternary",children:"Tier"}),e.jsx("span",{className:"text-2xs font-medium text-text-quaternary",children:"Access"}),e.jsx("span",{})]})}function M({wf:t,onRowClick:o,onDelete:i,onNavigate:m}){const u=t.roles??[],p=t.invocation_roles??[];return e.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(t),onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&o(t)},className:`group ${K} py-2 px-3 -mx-3 rounded-md cursor-pointer transition-colors items-center`,children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx(ce,{type:t.workflow_type,size:"md",variant:t.tier==="certified"?"certified":t.tier==="registered"?"registered":"durable"}),t.description&&e.jsx("p",{className:"flex-1 min-w-0 truncate text-2xs text-text-tertiary group-hover:text-text-secondary transition-colors",children:t.description})]}),e.jsx("div",{children:e.jsx(Ie,{tier:t.tier??"durable"})}),e.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 overflow-hidden whitespace-nowrap",children:[u.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{title:"Escalation roles",children:e.jsx(z,{className:"w-3 h-3 text-text-quaternary shrink-0"})}),u.map(r=>e.jsx(L,{role:r},`e-${r}`))]}),p.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{title:"Invocation roles",children:e.jsx(me,{className:"w-3 h-3 text-text-quaternary shrink-0"})}),p.map(r=>e.jsx(L,{role:r},`i-${r}`))]}),u.length===0&&p.length===0&&e.jsx("span",{className:"text-xs text-text-quaternary",children:"—"})]}),e.jsxs("div",{className:"flex items-center justify-end gap-2.5 opacity-0 group-hover:opacity-100 transition-opacity",children:[t.invocable&&e.jsx("button",{title:"Invoke workflow",onClick:r=>{r.stopPropagation(),m(`/workflows/start?type=${encodeURIComponent(t.workflow_type)}&mode=now`)},className:"text-text-quaternary hover:text-status-success transition-colors",children:e.jsx(B,{className:"w-3.5 h-3.5"})}),t.tier==="durable"&&e.jsx("button",{title:"Configure workflow",onClick:r=>{r.stopPropagation(),m(`/workflows/registry/new?workflow_type=${encodeURIComponent(t.workflow_type)}&task_queue=${encodeURIComponent(t.task_queue??"")}`)},className:"text-text-quaternary hover:text-status-info transition-colors",children:e.jsx(F,{className:"w-3.5 h-3.5"})}),t.tier==="registered"&&e.jsx("button",{title:"Certify workflow",onClick:r=>{r.stopPropagation(),m(`/workflows/registry/${encodeURIComponent(t.workflow_type)}`)},className:"text-text-quaternary hover:text-status-success transition-colors",children:e.jsx(xe,{className:"w-3.5 h-3.5"})}),t.registered&&e.jsx("button",{title:"Unregister workflow",onClick:r=>{r.stopPropagation(),i(t.workflow_type)},className:"text-text-quaternary hover:text-status-warning transition-colors",children:e.jsx(H,{className:"w-3.5 h-3.5"})})]})]})}function We(){return e.jsx("div",{className:"animate-pulse space-y-8 mt-4",children:[1,2].map(t=>e.jsxs("div",{children:[e.jsx("div",{className:"h-4 bg-surface-sunken rounded w-36 mb-4"}),e.jsx("div",{className:"space-y-4",children:[1,2,3].map(o=>e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("div",{className:"h-3 bg-surface-sunken rounded w-48"}),e.jsx("div",{className:"h-3 bg-surface-sunken rounded w-full"})]},o))})]},t))})}function Re({selected:t,onChange:o,single:i,placeholder:m}){const{data:u}=ee(),p=(u==null?void 0:u.roles)??[],[r,k]=d.useState(!1),f=d.useRef(null);d.useEffect(()=>{const c=x=>{f.current&&!f.current.contains(x.target)&&k(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]);const g=c=>{i?(o(t.includes(c)?[]:[c]),k(!1)):o(t.includes(c)?t.filter(x=>x!==c):[...t,c])},a=c=>{o(t.filter(x=>x!==c))},y=m??(i?"Select role...":"Add roles...");return e.jsxs("div",{ref:f,className:"relative",children:[e.jsxs("button",{type:"button",onClick:()=>k(!r),className:"flex flex-wrap items-center gap-1.5 w-full min-h-[34px] px-2 py-1.5 bg-surface-sunken border border-surface-border rounded-md text-left cursor-pointer hover:border-accent/40 transition-colors focus:ring-1 focus:ring-accent focus:outline-none",children:[t.length===0&&e.jsx("span",{className:"text-xs text-text-tertiary",children:y}),t.map(c=>e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-lg bg-accent/[0.08] text-text-secondary text-2xs",children:[e.jsx(T,{className:"w-2.5 h-2.5 shrink-0 text-accent/75"}),c,e.jsx("span",{role:"button",onClick:x=>{x.stopPropagation(),a(c)},className:"ml-0.5 hover:text-status-error transition-colors",children:e.jsx(he,{className:"w-2.5 h-2.5"})})]},c)),e.jsx(fe,{className:`w-3.5 h-3.5 ml-auto shrink-0 text-text-tertiary transition-transform ${r?"rotate-180":""}`})]}),r&&e.jsx("div",{className:"absolute z-[100] mt-1 w-full bg-surface-raised border border-surface-border rounded-md shadow-lg max-h-48 overflow-y-auto",children:p.length===0?e.jsx("p",{className:"px-3 py-2 text-xs text-text-tertiary",children:"No roles defined"}):p.map(c=>{const x=t.includes(c);return e.jsxs("button",{type:"button",onClick:()=>g(c),className:`flex items-center gap-2 w-full px-3 py-1.5 text-left text-xs transition-colors ${x?"bg-accent/[0.06] text-accent":"text-text-primary hover:bg-surface-sunken"}`,children:[e.jsx(T,{className:"w-3 h-3 shrink-0 text-accent/60"}),e.jsx("span",{className:"flex-1",children:c}),x&&e.jsx(we,{className:"w-3 h-3 shrink-0"})]},c)})})]})}function W(t){return t.split(",").map(o=>o.trim()).filter(Boolean)}const R={workflow_type:"",description:"",task_queue:"",default_role:"reviewer",invocable:!1,roles:"",invocation_roles:"",consumes:"",envelope_schema:"",input_schema:"",input_lookups:"",icon:"",resolver_schema:"",cron_schedule:"",execute_as:"",certified:!1};function qe(t){var m;const o=(t.roles??[]).join(", "),i=(t.consumes??[]).join(", ");return{workflow_type:t.workflow_type,description:t.description??"",task_queue:t.task_queue??"",default_role:t.default_role,invocable:t.invocable,roles:o,invocation_roles:(t.invocation_roles??[]).join(", "),consumes:i,envelope_schema:t.envelope_schema?JSON.stringify(t.envelope_schema,null,2):"",input_schema:t.input_schema?JSON.stringify(t.input_schema,null,2):"",input_lookups:(m=t.input_lookups)!=null&&m.length?JSON.stringify(t.input_lookups,null,2):"",icon:t.icon??"",resolver_schema:t.resolver_schema?JSON.stringify(t.resolver_schema,null,2):"",cron_schedule:t.cron_schedule??"",execute_as:t.execute_as??"",certified:t.certified}}function _(t){if(!t.trim())return!0;try{return JSON.parse(t),!0}catch{return!1}}function Pe(t){if(!t.trim())return null;try{const o=JSON.parse(t);return o&&typeof o=="object"&&!Array.isArray(o)&&o.properties?o:null}catch{return null}}function Fe({schemaText:t,lookup:o}){const i=d.useMemo(()=>Pe(t),[t]),m=d.useMemo(()=>i?be(i):"",[i]),[u,p]=d.useState(m);d.useEffect(()=>{p(m)},[m]);const r=d.useMemo(()=>({..._e({},o),resolver:null}),[o]);return i?e.jsx("div",{className:"@container","data-testid":"input-form-preview",children:e.jsx(Ce,{value:u,onChange:p,escalationContext:r})}):e.jsxs("p",{className:"text-2xs text-text-tertiary",children:["A schema with ",e.jsx("code",{className:"font-mono",children:"properties"})," previews here as the operator's form."]})}function Oe({value:t,onChange:o}){const[i,m]=d.useState(""),u=d.useMemo(()=>Se(i),[i]),p=U(t);return e.jsxs("div",{className:"space-y-2","data-testid":"workflow-icon-picker",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"text",value:i,onChange:r=>m(r.target.value),placeholder:"Filter icons…","aria-label":"Filter icons",className:"input text-2xs py-1 w-40"}),e.jsxs("span",{className:"flex items-center gap-1.5 text-2xs text-text-tertiary min-w-0",children:[p?e.jsx(p,{className:"w-3.5 h-3.5 text-accent shrink-0",strokeWidth:1.5}):e.jsx(J,{className:"w-3.5 h-3.5 shrink-0",strokeWidth:1.5}),e.jsx("span",{className:"font-mono truncate",children:t||"tier glyph"})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-1",role:"listbox","aria-label":"Workflow icon",children:[e.jsx("button",{type:"button",role:"option","aria-selected":!t,title:"No icon (tier glyph)",onClick:()=>o(""),className:`p-1.5 rounded-md border transition-colors ${t?"border-transparent text-text-quaternary hover:bg-surface-hover hover:text-text-secondary":"border-accent bg-accent/10 text-accent"}`,children:e.jsx(J,{className:"w-4 h-4",strokeWidth:1.5})}),u.map(r=>{const k=U(r),f=t===r;return e.jsx("button",{type:"button",role:"option","aria-selected":f,title:r,onClick:()=>o(r),className:`p-1.5 rounded-md border transition-colors ${f?"border-accent bg-accent/10 text-accent":"border-transparent text-text-tertiary hover:bg-surface-hover hover:text-text-primary"}`,children:e.jsx(k,{className:"w-4 h-4",strokeWidth:1.5})},r)}),u.length===0&&e.jsx("p",{className:"text-2xs text-text-tertiary px-1 py-1.5",children:"No icon matches."})]})]})}function q({icon:t,color:o,children:i}){return e.jsxs("div",{className:"flex items-center gap-2 mb-4 pb-2 border-b border-surface-border",children:[e.jsx(t,{className:`w-4 h-4 ${o}`,strokeWidth:1.5}),e.jsx("h2",{className:"section-h2",children:i})]})}function j({label:t,hint:o,children:i}){return e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"label",children:t}),i,o&&e.jsx("p",{className:"hint",children:o})]})}const P="input-json w-full";function De(t){return W(t)}function Ee(t){return t.join(", ")}const Le=new Set(["mcpQuery","mcpDeterministic","mcpQueryRouter","mcpTriage","mcpTriageRouter","mcpTriageDeterministic","insightQuery"]);function at(){const{workflowType:t}=ge(),o=!t,i=G(),[m]=je(),{data:u,isLoading:p}=te(),r=se(),k=A(),[f,g]=d.useState(!1),a=(u==null?void 0:u.find(n=>n.workflow_type===t))??null,y=Array.isArray(a==null?void 0:a.input_lookups)&&a.input_lookups.length>0,{data:c}=re((a==null?void 0:a.workflow_type)??"",y),x=d.useMemo(()=>c?oe(c.lookups):void 0,[c]),{data:C}=ne({limit:500}),I=d.useMemo(()=>{const n=new Set((u??[]).map(v=>v.workflow_type));return[...new Set(((C==null?void 0:C.jobs)??[]).map(v=>v.entity))].filter(v=>!n.has(v)&&!Le.has(v)).sort()},[u,C]),l=d.useMemo(()=>{if(!o)return R;const n=m.get("workflow_type")??"",b=m.get("task_queue")??"";return n||b?{...R,workflow_type:n,task_queue:b}:R},[o,m]),[s,h]=d.useState(l),[S,N]=d.useState(""),[O,D]=d.useState(!1),w=d.useCallback((n,b)=>h(v=>({...v,[n]:b})),[]);d.useEffect(()=>{if(!O){if(o){h(l),D(!0);return}a&&(h(qe(a)),D(!0))}},[a,o,O,l]);const Y=()=>{if(!s.workflow_type.trim())return;N("");let n=null,b=null,v=null,E=null;try{s.envelope_schema.trim()&&(n=JSON.parse(s.envelope_schema))}catch{N("Invalid JSON in Envelope Schema");return}try{s.input_schema.trim()&&(b=JSON.parse(s.input_schema))}catch{N("Invalid JSON in Input Form");return}try{s.input_lookups.trim()&&(v=JSON.parse(s.input_lookups))}catch{N("Invalid JSON in Lookups");return}try{s.resolver_schema.trim()&&(E=JSON.parse(s.resolver_schema))}catch{N("Invalid JSON in Resolver Schema");return}r.mutate({workflow_type:s.workflow_type.trim(),description:s.description.trim()||null,task_queue:s.task_queue.trim()||null,default_role:s.default_role.trim()||"reviewer",invocable:s.invocable,certified:s.certified,roles:W(s.roles),invocation_roles:W(s.invocation_roles),consumes:W(s.consumes),envelope_schema:n,input_schema:b,input_lookups:v,icon:s.icon||null,resolver_schema:E,cron_schedule:s.cron_schedule.trim()||null,execute_as:s.execute_as.trim()||null},{onSuccess:()=>i("/workflows/registry")})};if(p)return e.jsxs("div",{className:"animate-pulse space-y-4",children:[e.jsx("div",{className:"h-8 bg-surface-sunken rounded w-64"}),e.jsx("div",{className:"h-40 bg-surface-sunken rounded"})]});if(!o&&!a)return e.jsx("p",{className:"text-sm text-text-secondary",children:"Config not found."});const V=!!s.workflow_type.trim()&&_(s.envelope_schema)&&_(s.input_schema)&&_(s.input_lookups)&&_(s.resolver_schema),X=o&&!s.workflow_type&&I.length>0;return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-start justify-between mb-8",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-light font-mono text-text-primary",children:o?"New Workflow":(a==null?void 0:a.workflow_type)??""}),a&&e.jsx("div",{className:"flex items-center gap-2 mt-2",children:e.jsx(Ne,{namespace:"durable"})})]}),e.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[a&&e.jsxs("button",{onClick:()=>g(!0),className:"flex items-center gap-1.5 text-2xs text-status-warning hover:underline mr-3",title:"Delete this registration — the workflow returns to plain durable",children:[e.jsx(H,{className:"w-3 h-3",strokeWidth:1.5})," Unregister"]}),e.jsx("button",{onClick:()=>i("/workflows/registry"),className:"btn-ghost text-xs",children:"Cancel"}),e.jsx("button",{onClick:Y,disabled:!V||r.isPending,className:"btn-primary text-xs",children:r.isPending?"Saving…":o?"Register":"Save"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 @wall:grid-cols-3 gap-x-14 gap-y-10",children:[e.jsxs("div",{children:[e.jsx(q,{icon:ke,color:"text-accent",children:"Identity"}),e.jsxs("div",{className:"space-y-5",children:[e.jsx(j,{label:"Workflow Type",hint:"Register a workflow to configure invocation and HITL escalation routing.",children:X?e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs text-text-secondary",children:"Select a durable workflow to register:"}),e.jsx("div",{className:"grid gap-1",children:I.map(n=>e.jsx("button",{onClick:()=>w("workflow_type",n),className:"flex items-center gap-2 px-3 py-2 text-left text-xs font-mono rounded-md border border-surface-border hover:border-accent/50 hover:bg-accent/[0.04] transition-colors",children:n},n))}),e.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[e.jsx("span",{className:"text-2xs text-text-tertiary",children:"or"}),e.jsx("input",{type:"text",onChange:n=>w("workflow_type",n.target.value),placeholder:"Enter type manually",className:"input font-mono flex-1"})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"text",value:s.workflow_type,onChange:n=>w("workflow_type",n.target.value),disabled:!o,placeholder:"reviewContent",className:"input font-mono w-full"}),o&&s.workflow_type&&I.length>0&&e.jsx("button",{onClick:()=>w("workflow_type",""),className:"text-2xs text-accent hover:underline mt-1",children:"Choose from durable workflows"})]})}),e.jsx(j,{label:"Icon",hint:"Leads the workflow's row and heading on the Invoke Tool page so operators tell tools apart at a glance. Declared in code as WORKFLOW_ICONS.*",children:e.jsx(Oe,{value:s.icon,onChange:n=>w("icon",n)})}),e.jsx(j,{label:"Description",children:e.jsx("input",{type:"text",value:s.description,onChange:n=>w("description",n.target.value),placeholder:"Describe what this workflow does",className:"input text-xs w-full"})}),e.jsx(j,{label:"Task Queue",hint:"Durable task queue this workflow listens on.",children:e.jsx("input",{type:"text",value:s.task_queue,onChange:n=>w("task_queue",n.target.value),placeholder:"lt-review",className:"input font-mono w-full"})})]})]}),e.jsxs("div",{children:[e.jsx(q,{icon:B,color:"text-accent",children:"Invocation"}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:s.invocable,onChange:n=>w("invocable",n.target.checked),className:"w-4 h-4 rounded border-border accent-accent"}),e.jsx("span",{className:"text-xs text-text-primary font-medium",children:"Invocable"})]}),e.jsx("p",{className:"hint",children:"Allow this workflow to be started from the dashboard or API."})]}),s.invocable?e.jsxs(e.Fragment,{children:[e.jsx(j,{label:"Run As",hint:"Bot identity to run under. Default runs as the invoking user.",children:e.jsx(ye,{selected:s.execute_as,onChange:n=>w("execute_as",n)})}),e.jsx(j,{label:"Invocation Roles",hint:"Only users with these roles can start this workflow. Empty = all authenticated users.",children:e.jsx(Re,{selected:De(s.invocation_roles),onChange:n=>w("invocation_roles",Ee(n)),placeholder:"Select roles…"})}),e.jsxs(j,{label:"Input Form",hint:e.jsx("button",{type:"button",onClick:()=>{window.location.hash="#docs:hitl/invoke-form.md"},className:"text-accent hover:underline",children:"Authoring reference →"}),children:[e.jsx("textarea",{value:s.input_schema,onChange:n=>w("input_schema",n.target.value),placeholder:`{
2
2
  "x-lt-layout": "two-column",
3
3
  "required": ["serialNumber"],
4
4
  "properties": {
@@ -10,4 +10,4 @@ import{a as d,j as e}from"./vendor-query-DvWWuNIB.js";import{aC as Z,aH as A,Y a
10
10
  "data": {},
11
11
  "metadata": {}
12
12
  }`,className:P,rows:8,spellCheck:!1}),s.envelope_schema.trim()&&!_(s.envelope_schema)&&e.jsx("p",{className:"text-2xs text-status-error mt-1",children:"Invalid JSON"})]})]}):e.jsxs("p",{className:"text-2xs text-text-tertiary py-2",children:["Enable ",e.jsx("span",{className:"font-medium text-text-secondary",children:"Invocable"})," to configure invocation roles and an input template."]})]})]}),e.jsxs("div",{className:"@wall:sticky @wall:top-0 self-start max-h-[calc(100vh-6rem)] overflow-y-auto",children:[e.jsx(q,{icon:ve,color:"text-accent",children:"Preview"}),s.invocable&&s.input_schema.trim()&&_(s.input_schema)?e.jsx(Fe,{schemaText:s.input_schema,lookup:x}):e.jsx("p",{className:"text-2xs text-text-tertiary leading-relaxed",children:s.invocable?"Declare an Input Form and it previews here as the operator's form, live as you type.":"Enable Invocable and declare an Input Form to preview the operator's form here."})]})]}),(S||r.error)&&e.jsx("p",{className:"text-xs text-status-error mt-8",children:S||r.error.message}),e.jsx(Q,{open:f,onClose:()=>g(!1),onConfirm:()=>k.mutate(a.workflow_type,{onSuccess:()=>i("/workflows/registry")}),title:"Unregister Workflow",description:e.jsxs(e.Fragment,{children:["Delete the registration for"," ",e.jsx("span",{className:"font-mono font-medium text-text-primary",children:a==null?void 0:a.workflow_type}),"? This removes its invocation settings, certification, and interceptor treatment; the workflow keeps running as a plain durable workflow. Escalation schemas versioned on roles are untouched."]}),isPending:k.isPending,error:k.error})]})}export{at as WorkflowConfigDetailPage,nt as WorkflowConfigsPage};
13
- //# sourceMappingURL=index-dYKgd06u.js.map
13
+ //# sourceMappingURL=index-BEPKAjna.js.map