@hotmeshio/long-tail 0.30.1 → 0.30.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/build/api/scan-codes/verb-fill.js +1 -1
  2. package/build/api/scan-codes/verb-into-subject.js +1 -1
  3. package/build/api/scan-codes/verbs-subject.js +2 -2
  4. package/dashboard/dist/assets/{AdminDashboard-CZIeiLe0.js → AdminDashboard-NVtdLI4I.js} +2 -2
  5. package/dashboard/dist/assets/{AdminDashboard-CZIeiLe0.js.map → AdminDashboard-NVtdLI4I.js.map} +1 -1
  6. package/dashboard/dist/assets/{AgentConfigPage-DO3ATfCU.js → AgentConfigPage-Db1Oi72V.js} +2 -2
  7. package/dashboard/dist/assets/{AgentConfigPage-DO3ATfCU.js.map → AgentConfigPage-Db1Oi72V.js.map} +1 -1
  8. package/dashboard/dist/assets/{AgentDetailPage-BWAlHQfB.js → AgentDetailPage-BF4mw1bD.js} +3 -3
  9. package/dashboard/dist/assets/{AgentDetailPage-BWAlHQfB.js.map → AgentDetailPage-BF4mw1bD.js.map} +1 -1
  10. package/dashboard/dist/assets/{AgentsPage-Cs4IKeec.js → AgentsPage-DmF0m3Ro.js} +2 -2
  11. package/dashboard/dist/assets/{AgentsPage-Cs4IKeec.js.map → AgentsPage-DmF0m3Ro.js.map} +1 -1
  12. package/dashboard/dist/assets/{AvailableEscalationsPage-CiRxaing.js → AvailableEscalationsPage-jy2WKDjr.js} +2 -2
  13. package/dashboard/dist/assets/{AvailableEscalationsPage-CiRxaing.js.map → AvailableEscalationsPage-jy2WKDjr.js.map} +1 -1
  14. package/dashboard/dist/assets/{BotPicker-DGLkc9PQ.js → BotPicker-HJtVHdNe.js} +2 -2
  15. package/dashboard/dist/assets/{BotPicker-DGLkc9PQ.js.map → BotPicker-HJtVHdNe.js.map} +1 -1
  16. package/dashboard/dist/assets/{BulkAssignModal-C4LV8s0y.js → BulkAssignModal-DsJJZ9X4.js} +2 -2
  17. package/dashboard/dist/assets/{BulkAssignModal-C4LV8s0y.js.map → BulkAssignModal-DsJJZ9X4.js.map} +1 -1
  18. package/dashboard/dist/assets/{CapabilitiesPage-BLMMV3-W.js → CapabilitiesPage-iCn7PxDP.js} +2 -2
  19. package/dashboard/dist/assets/{CapabilitiesPage-BLMMV3-W.js.map → CapabilitiesPage-iCn7PxDP.js.map} +1 -1
  20. package/dashboard/dist/assets/{CollapsibleSection-BAizcNCt.js → CollapsibleSection-DFfVr_Ut.js} +2 -2
  21. package/dashboard/dist/assets/{CollapsibleSection-BAizcNCt.js.map → CollapsibleSection-DFfVr_Ut.js.map} +1 -1
  22. package/dashboard/dist/assets/{ConfirmDeleteModal-DlNWHVxi.js → ConfirmDeleteModal-D6TwO-yT.js} +2 -2
  23. package/dashboard/dist/assets/{ConfirmDeleteModal-DlNWHVxi.js.map → ConfirmDeleteModal-D6TwO-yT.js.map} +1 -1
  24. package/dashboard/dist/assets/{ConnectedAppsPage-D94kx0v3.js → ConnectedAppsPage-BOD-tgY0.js} +2 -2
  25. package/dashboard/dist/assets/{ConnectedAppsPage-D94kx0v3.js.map → ConnectedAppsPage-BOD-tgY0.js.map} +1 -1
  26. package/dashboard/dist/assets/{CountdownTimer-CSdAwgwZ.js → CountdownTimer-u_o3OygV.js} +2 -2
  27. package/dashboard/dist/assets/{CountdownTimer-CSdAwgwZ.js.map → CountdownTimer-u_o3OygV.js.map} +1 -1
  28. package/dashboard/dist/assets/{CredentialsPage-pOyC1GfC.js → CredentialsPage-C3dnRsMh.js} +2 -2
  29. package/dashboard/dist/assets/{CredentialsPage-pOyC1GfC.js.map → CredentialsPage-C3dnRsMh.js.map} +1 -1
  30. package/dashboard/dist/assets/{CronLabel-BVlOOcyo.js → CronLabel-BFh5TCsB.js} +2 -2
  31. package/dashboard/dist/assets/{CronLabel-BVlOOcyo.js.map → CronLabel-BFh5TCsB.js.map} +1 -1
  32. package/dashboard/dist/assets/{ElapsedCell-Bnjp3onG.js → ElapsedCell-D0jYuFKh.js} +2 -2
  33. package/dashboard/dist/assets/{ElapsedCell-Bnjp3onG.js.map → ElapsedCell-D0jYuFKh.js.map} +1 -1
  34. package/dashboard/dist/assets/{EntityTimelinePanel-D6Z7YXuY.js → EntityTimelinePanel-Ch-BsRu8.js} +2 -2
  35. package/dashboard/dist/assets/{EntityTimelinePanel-D6Z7YXuY.js.map → EntityTimelinePanel-Ch-BsRu8.js.map} +1 -1
  36. package/dashboard/dist/assets/{EscalationListSchemaPage-D2aa_arC.js → EscalationListSchemaPage-DuSLiInU.js} +2 -2
  37. package/dashboard/dist/assets/{EscalationListSchemaPage-D2aa_arC.js.map → EscalationListSchemaPage-DuSLiInU.js.map} +1 -1
  38. package/dashboard/dist/assets/{EscalationSchemaPage-DuOje0Ke.js → EscalationSchemaPage-D_mYri6e.js} +2 -2
  39. package/dashboard/dist/assets/{EscalationSchemaPage-DuOje0Ke.js.map → EscalationSchemaPage-D_mYri6e.js.map} +1 -1
  40. package/dashboard/dist/assets/{EscalationTimeline-DFkhU2Z2.js → EscalationTimeline-DiN8ImWF.js} +2 -2
  41. package/dashboard/dist/assets/{EscalationTimeline-DFkhU2Z2.js.map → EscalationTimeline-DiN8ImWF.js.map} +1 -1
  42. package/dashboard/dist/assets/{EscalationTitleSelect-CgYnMM_O.js → EscalationTitleSelect-36tkc2TE.js} +2 -2
  43. package/dashboard/dist/assets/{EscalationTitleSelect-CgYnMM_O.js.map → EscalationTitleSelect-36tkc2TE.js.map} +1 -1
  44. package/dashboard/dist/assets/{EscalationsOverview-BTkFoklS.js → EscalationsOverview-yHY6JKiV.js} +2 -2
  45. package/dashboard/dist/assets/{EscalationsOverview-BTkFoklS.js.map → EscalationsOverview-yHY6JKiV.js.map} +1 -1
  46. package/dashboard/dist/assets/{EventTable-MJmAbu6N.js → EventTable-DTtu2iM_.js} +2 -2
  47. package/dashboard/dist/assets/{EventTable-MJmAbu6N.js.map → EventTable-DTtu2iM_.js.map} +1 -1
  48. package/dashboard/dist/assets/{FilterBar-Blt7qcUc.js → FilterBar-ByZiD0ty.js} +2 -2
  49. package/dashboard/dist/assets/{FilterBar-Blt7qcUc.js.map → FilterBar-ByZiD0ty.js.map} +1 -1
  50. package/dashboard/dist/assets/{GraphInvokePage-B4K3mT_c.js → GraphInvokePage-Cbn6igr_.js} +2 -2
  51. package/dashboard/dist/assets/{GraphInvokePage-B4K3mT_c.js.map → GraphInvokePage-Cbn6igr_.js.map} +1 -1
  52. package/dashboard/dist/assets/{HomePage-BN5wXq6V.js → HomePage-CtLKm_S4.js} +2 -2
  53. package/dashboard/dist/assets/{HomePage-BN5wXq6V.js.map → HomePage-CtLKm_S4.js.map} +1 -1
  54. package/dashboard/dist/assets/{LinePage-CuHHHwBy.js → LinePage-Q5Cgjd3N.js} +3 -3
  55. package/dashboard/dist/assets/{LinePage-CuHHHwBy.js.map → LinePage-Q5Cgjd3N.js.map} +1 -1
  56. package/dashboard/dist/assets/{LinesPage-D9TRHWyt.js → LinesPage-BX3d-rj0.js} +2 -2
  57. package/dashboard/dist/assets/{LinesPage-D9TRHWyt.js.map → LinesPage-BX3d-rj0.js.map} +1 -1
  58. package/dashboard/dist/assets/{ListToolbar-GGj6X36p.js → ListToolbar-bj2sgAK4.js} +2 -2
  59. package/dashboard/dist/assets/{ListToolbar-GGj6X36p.js.map → ListToolbar-bj2sgAK4.js.map} +1 -1
  60. package/dashboard/dist/assets/{McpOverview-Do31A1jL.js → McpOverview-BD3UWbcC.js} +2 -2
  61. package/dashboard/dist/assets/{McpOverview-Do31A1jL.js.map → McpOverview-BD3UWbcC.js.map} +1 -1
  62. package/dashboard/dist/assets/{McpQueryDetailPage-D6FSB1bS.js → McpQueryDetailPage-ISzY-BfT.js} +2 -2
  63. package/dashboard/dist/assets/{McpQueryDetailPage-D6FSB1bS.js.map → McpQueryDetailPage-ISzY-BfT.js.map} +1 -1
  64. package/dashboard/dist/assets/{McpQueryPage-CyT2d0Y_.js → McpQueryPage-t555QJ3m.js} +2 -2
  65. package/dashboard/dist/assets/{McpQueryPage-CyT2d0Y_.js.map → McpQueryPage-t555QJ3m.js.map} +1 -1
  66. package/dashboard/dist/assets/{McpRunDetailPage-C3mmTl4Y.js → McpRunDetailPage-C4jozQFh.js} +2 -2
  67. package/dashboard/dist/assets/{McpRunDetailPage-C3mmTl4Y.js.map → McpRunDetailPage-C4jozQFh.js.map} +1 -1
  68. package/dashboard/dist/assets/{McpRunsPage-CTeFFUE2.js → McpRunsPage-Z-mtyRBp.js} +2 -2
  69. package/dashboard/dist/assets/{McpRunsPage-CTeFFUE2.js.map → McpRunsPage-Z-mtyRBp.js.map} +1 -1
  70. package/dashboard/dist/assets/{OperationsPage-BUtQP5dm.js → OperationsPage-ClYilVyZ.js} +2 -2
  71. package/dashboard/dist/assets/{OperationsPage-BUtQP5dm.js.map → OperationsPage-ClYilVyZ.js.map} +1 -1
  72. package/dashboard/dist/assets/{OperatorDashboard-BwYOXyUV.js → OperatorDashboard-3Hi2IiHi.js} +2 -2
  73. package/dashboard/dist/assets/{OperatorDashboard-BwYOXyUV.js.map → OperatorDashboard-3Hi2IiHi.js.map} +1 -1
  74. package/dashboard/dist/assets/{PersonaDetailPage-CkrKJLNv.js → PersonaDetailPage-xb7O3tn9.js} +2 -2
  75. package/dashboard/dist/assets/{PersonaDetailPage-CkrKJLNv.js.map → PersonaDetailPage-xb7O3tn9.js.map} +1 -1
  76. package/dashboard/dist/assets/{PersonasPage-BS8aBeOv.js → PersonasPage-uCYVhRBB.js} +2 -2
  77. package/dashboard/dist/assets/{PersonasPage-BS8aBeOv.js.map → PersonasPage-uCYVhRBB.js.map} +1 -1
  78. package/dashboard/dist/assets/{PortalPage-PEBk6VVu.js → PortalPage-D1MOMJ9Q.js} +2 -2
  79. package/dashboard/dist/assets/{PortalPage-PEBk6VVu.js.map → PortalPage-D1MOMJ9Q.js.map} +1 -1
  80. package/dashboard/dist/assets/{ProcessDetailPage-CJ71bxDs.js → ProcessDetailPage-Tf8FQCUm.js} +2 -2
  81. package/dashboard/dist/assets/{ProcessDetailPage-CJ71bxDs.js.map → ProcessDetailPage-Tf8FQCUm.js.map} +1 -1
  82. package/dashboard/dist/assets/{ProcessesListPage-ov_HLxz5.js → ProcessesListPage-DPLRgznC.js} +2 -2
  83. package/dashboard/dist/assets/{ProcessesListPage-ov_HLxz5.js.map → ProcessesListPage-DPLRgznC.js.map} +1 -1
  84. package/dashboard/dist/assets/{ResolverForm-BKiUY-lN.js → ResolverForm-BXqJEPte.js} +2 -2
  85. package/dashboard/dist/assets/{ResolverForm-BKiUY-lN.js.map → ResolverForm-BXqJEPte.js.map} +1 -1
  86. package/dashboard/dist/assets/{RoleDetailPage-CmfWwjtG.js → RoleDetailPage-KJnZGPPY.js} +2 -2
  87. package/dashboard/dist/assets/{RoleDetailPage-CmfWwjtG.js.map → RoleDetailPage-KJnZGPPY.js.map} +1 -1
  88. package/dashboard/dist/assets/{RolesPage-DvO5DJWY.js → RolesPage-C5f-3zcs.js} +2 -2
  89. package/dashboard/dist/assets/{RolesPage-DvO5DJWY.js.map → RolesPage-C5f-3zcs.js.map} +1 -1
  90. package/dashboard/dist/assets/{RosterWidget-Cs6OTbST.js → RosterWidget-WCtpUEzc.js} +2 -2
  91. package/dashboard/dist/assets/{RosterWidget-Cs6OTbST.js.map → RosterWidget-WCtpUEzc.js.map} +1 -1
  92. package/dashboard/dist/assets/{RunAsSelector-VNjUn9Zp.js → RunAsSelector-CzabsFYU.js} +2 -2
  93. package/dashboard/dist/assets/{RunAsSelector-VNjUn9Zp.js.map → RunAsSelector-CzabsFYU.js.map} +1 -1
  94. package/dashboard/dist/assets/{ScanCodesPage-Dbaud0fc.js → ScanCodesPage-D51d17HH.js} +2 -2
  95. package/dashboard/dist/assets/{ScanCodesPage-Dbaud0fc.js.map → ScanCodesPage-D51d17HH.js.map} +1 -1
  96. package/dashboard/dist/assets/{ScanSchemeDetailPage-BfDw_Eke.js → ScanSchemeDetailPage-CUK6Skxj.js} +2 -2
  97. package/dashboard/dist/assets/{ScanSchemeDetailPage-BfDw_Eke.js.map → ScanSchemeDetailPage-CUK6Skxj.js.map} +1 -1
  98. package/dashboard/dist/assets/ScanStationPage-7vK0ddiV.js +2 -0
  99. package/dashboard/dist/assets/ScanStationPage-7vK0ddiV.js.map +1 -0
  100. package/dashboard/dist/assets/{StickyPagination-CJ3jjlDX.js → StickyPagination-C2fzclxr.js} +2 -2
  101. package/dashboard/dist/assets/{StickyPagination-CJ3jjlDX.js.map → StickyPagination-C2fzclxr.js.map} +1 -1
  102. package/dashboard/dist/assets/{StreamMessageDetail-yOdyJGHR.js → StreamMessageDetail-wF4NM8gi.js} +2 -2
  103. package/dashboard/dist/assets/{StreamMessageDetail-yOdyJGHR.js.map → StreamMessageDetail-wF4NM8gi.js.map} +1 -1
  104. package/dashboard/dist/assets/{SwimlaneTimeline-DeFWNFrL.js → SwimlaneTimeline-B4Hg97qO.js} +2 -2
  105. package/dashboard/dist/assets/{SwimlaneTimeline-DeFWNFrL.js.map → SwimlaneTimeline-B4Hg97qO.js.map} +1 -1
  106. package/dashboard/dist/assets/{TaskDetailPage-BPL_Zx-L.js → TaskDetailPage-DAxxcFDD.js} +2 -2
  107. package/dashboard/dist/assets/{TaskDetailPage-BPL_Zx-L.js.map → TaskDetailPage-DAxxcFDD.js.map} +1 -1
  108. package/dashboard/dist/assets/{TasksListPage-Bc3S63_O.js → TasksListPage-BmghuHbc.js} +2 -2
  109. package/dashboard/dist/assets/{TasksListPage-Bc3S63_O.js.map → TasksListPage-BmghuHbc.js.map} +1 -1
  110. package/dashboard/dist/assets/{TimeAgo-DAtnJQwU.js → TimeAgo-CFeB6U2O.js} +2 -2
  111. package/dashboard/dist/assets/{TimeAgo-DAtnJQwU.js.map → TimeAgo-CFeB6U2O.js.map} +1 -1
  112. package/dashboard/dist/assets/{TimestampCell-CG0erHqq.js → TimestampCell-M_FD9JEc.js} +2 -2
  113. package/dashboard/dist/assets/{TimestampCell-CG0erHqq.js.map → TimestampCell-M_FD9JEc.js.map} +1 -1
  114. package/dashboard/dist/assets/{ToolTestPanel-c71yqZv7.js → ToolTestPanel-D7PihZG9.js} +2 -2
  115. package/dashboard/dist/assets/{ToolTestPanel-c71yqZv7.js.map → ToolTestPanel-D7PihZG9.js.map} +1 -1
  116. package/dashboard/dist/assets/{TopicDetailPage-BlUP0bb1.js → TopicDetailPage-T0dLt7Ao.js} +2 -2
  117. package/dashboard/dist/assets/{TopicDetailPage-BlUP0bb1.js.map → TopicDetailPage-T0dLt7Ao.js.map} +1 -1
  118. package/dashboard/dist/assets/{TopicsPage-lQ9HNzOq.js → TopicsPage-DP5ox5oX.js} +2 -2
  119. package/dashboard/dist/assets/{TopicsPage-lQ9HNzOq.js.map → TopicsPage-DP5ox5oX.js.map} +1 -1
  120. package/dashboard/dist/assets/{UserName-Vf97ofcW.js → UserName-ET3r3u-A.js} +2 -2
  121. package/dashboard/dist/assets/{UserName-Vf97ofcW.js.map → UserName-ET3r3u-A.js.map} +1 -1
  122. package/dashboard/dist/assets/{WorkflowExecutionPage-B195cnHb.js → WorkflowExecutionPage-DBq2lZ_C.js} +2 -2
  123. package/dashboard/dist/assets/{WorkflowExecutionPage-B195cnHb.js.map → WorkflowExecutionPage-DBq2lZ_C.js.map} +1 -1
  124. package/dashboard/dist/assets/{WorkflowsDashboard-gH-PGsKq.js → WorkflowsDashboard-WO4cH8sU.js} +2 -2
  125. package/dashboard/dist/assets/{WorkflowsDashboard-gH-PGsKq.js.map → WorkflowsDashboard-WO4cH8sU.js.map} +1 -1
  126. package/dashboard/dist/assets/{WorkflowsOverview-D_wYDqw3.js → WorkflowsOverview-CJfg0rQH.js} +2 -2
  127. package/dashboard/dist/assets/{WorkflowsOverview-D_wYDqw3.js.map → WorkflowsOverview-CJfg0rQH.js.map} +1 -1
  128. package/dashboard/dist/assets/{YamlWorkflowDetailPage-Imob5F8H.js → YamlWorkflowDetailPage-C8rkvYCp.js} +2 -2
  129. package/dashboard/dist/assets/{YamlWorkflowDetailPage-Imob5F8H.js.map → YamlWorkflowDetailPage-C8rkvYCp.js.map} +1 -1
  130. package/dashboard/dist/assets/{YamlWorkflowsPage-DVEVSKKJ.js → YamlWorkflowsPage-DHQ4ZVzM.js} +2 -2
  131. package/dashboard/dist/assets/{YamlWorkflowsPage-DVEVSKKJ.js.map → YamlWorkflowsPage-DHQ4ZVzM.js.map} +1 -1
  132. package/dashboard/dist/assets/{agents-B-8z_DV8.js → agents-zulmHig2.js} +2 -2
  133. package/dashboard/dist/assets/{agents-B-8z_DV8.js.map → agents-zulmHig2.js.map} +1 -1
  134. package/dashboard/dist/assets/{bots-Clm-wZeG.js → bots-D4mtcPHB.js} +2 -2
  135. package/dashboard/dist/assets/{bots-Clm-wZeG.js.map → bots-D4mtcPHB.js.map} +1 -1
  136. package/dashboard/dist/assets/{capabilities-CBwgv5tr.js → capabilities-rFZDH0zF.js} +2 -2
  137. package/dashboard/dist/assets/{capabilities-CBwgv5tr.js.map → capabilities-rFZDH0zF.js.map} +1 -1
  138. package/dashboard/dist/assets/{controlplane-B96o1-zT.js → controlplane-INfcW_9F.js} +2 -2
  139. package/dashboard/dist/assets/{controlplane-B96o1-zT.js.map → controlplane-INfcW_9F.js.map} +1 -1
  140. package/dashboard/dist/assets/{escalation-columns-CFoFILF1.js → escalation-columns-8ker-czW.js} +2 -2
  141. package/dashboard/dist/assets/{escalation-columns-CFoFILF1.js.map → escalation-columns-8ker-czW.js.map} +1 -1
  142. package/dashboard/dist/assets/{escalation-items-BCUiPsfS.js → escalation-items-B6eDMoTN.js} +2 -2
  143. package/dashboard/dist/assets/{escalation-items-BCUiPsfS.js.map → escalation-items-B6eDMoTN.js.map} +1 -1
  144. package/dashboard/dist/assets/{index-B_z-OFwk.js → index-0LXkjZjt.js} +2 -2
  145. package/dashboard/dist/assets/{index-B_z-OFwk.js.map → index-0LXkjZjt.js.map} +1 -1
  146. package/dashboard/dist/assets/{index-BXKDpLk5.js → index-5XUBZtlv.js} +2 -2
  147. package/dashboard/dist/assets/{index-BXKDpLk5.js.map → index-5XUBZtlv.js.map} +1 -1
  148. package/dashboard/dist/assets/{index-CnhNCVPc.js → index-BcVkiaCv.js} +2 -2
  149. package/dashboard/dist/assets/{index-CnhNCVPc.js.map → index-BcVkiaCv.js.map} +1 -1
  150. package/dashboard/dist/assets/{index-EZkdUZwM.js → index-BpJ77OST.js} +2 -2
  151. package/dashboard/dist/assets/{index-EZkdUZwM.js.map → index-BpJ77OST.js.map} +1 -1
  152. package/dashboard/dist/assets/{index-IedmSPp1.js → index-BpillEP7.js} +2 -2
  153. package/dashboard/dist/assets/{index-IedmSPp1.js.map → index-BpillEP7.js.map} +1 -1
  154. package/dashboard/dist/assets/{index-P22vmuEu.js → index-CV7KmPdF.js} +2 -2
  155. package/dashboard/dist/assets/{index-P22vmuEu.js.map → index-CV7KmPdF.js.map} +1 -1
  156. package/dashboard/dist/assets/{index-XS-6UjQd.js → index-Cfg4TFDb.js} +2 -2
  157. package/dashboard/dist/assets/{index-XS-6UjQd.js.map → index-Cfg4TFDb.js.map} +1 -1
  158. package/dashboard/dist/assets/{index-MGquOb7J.js → index-Cg9W61lM.js} +2 -2
  159. package/dashboard/dist/assets/{index-MGquOb7J.js.map → index-Cg9W61lM.js.map} +1 -1
  160. package/dashboard/dist/assets/{index-DvgjLvvn.js → index-ChF-l2z9.js} +2 -2
  161. package/dashboard/dist/assets/{index-DvgjLvvn.js.map → index-ChF-l2z9.js.map} +1 -1
  162. package/dashboard/dist/assets/{index-Czb9O4Ns.js → index-Cm6_Peh7.js} +2 -2
  163. package/dashboard/dist/assets/{index-Czb9O4Ns.js.map → index-Cm6_Peh7.js.map} +1 -1
  164. package/dashboard/dist/assets/{index-BOuGMe78.js → index-D-EVgGsm.js} +2 -2
  165. package/dashboard/dist/assets/{index-BOuGMe78.js.map → index-D-EVgGsm.js.map} +1 -1
  166. package/dashboard/dist/assets/{index-C1WJs6IZ.js → index-D-Fd0gQ_.js} +2 -2
  167. package/dashboard/dist/assets/{index-C1WJs6IZ.js.map → index-D-Fd0gQ_.js.map} +1 -1
  168. package/dashboard/dist/assets/{index-CXNh7LuG.js → index-xycFf66M.js} +3 -3
  169. package/dashboard/dist/assets/{index-CXNh7LuG.js.map → index-xycFf66M.js.map} +1 -1
  170. package/dashboard/dist/assets/{knowledge-d92ncKgf.js → knowledge-_WaBsrbC.js} +2 -2
  171. package/dashboard/dist/assets/{knowledge-d92ncKgf.js.map → knowledge-_WaBsrbC.js.map} +1 -1
  172. package/dashboard/dist/assets/{machines-BG9laURp.js → machines-D6ig2Q8z.js} +2 -2
  173. package/dashboard/dist/assets/{machines-BG9laURp.js.map → machines-D6ig2Q8z.js.map} +1 -1
  174. package/dashboard/dist/assets/{mcp-CsZdpCEf.js → mcp-DtWRQM1G.js} +2 -2
  175. package/dashboard/dist/assets/{mcp-CsZdpCEf.js.map → mcp-DtWRQM1G.js.map} +1 -1
  176. package/dashboard/dist/assets/{mcp-query-o2xqrZJv.js → mcp-query-vQm92kTd.js} +2 -2
  177. package/dashboard/dist/assets/{mcp-query-o2xqrZJv.js.map → mcp-query-vQm92kTd.js.map} +1 -1
  178. package/dashboard/dist/assets/{personas-EYROtAxm.js → personas-BLxQpGNz.js} +2 -2
  179. package/dashboard/dist/assets/{personas-EYROtAxm.js.map → personas-BLxQpGNz.js.map} +1 -1
  180. package/dashboard/dist/assets/{pipelines-C17xZZsa.js → pipelines-ClmRtlkR.js} +2 -2
  181. package/dashboard/dist/assets/{pipelines-C17xZZsa.js.map → pipelines-ClmRtlkR.js.map} +1 -1
  182. package/dashboard/dist/assets/{tasks-CUppIhu6.js → tasks-CVZT1pf0.js} +2 -2
  183. package/dashboard/dist/assets/{tasks-CUppIhu6.js.map → tasks-CVZT1pf0.js.map} +1 -1
  184. package/dashboard/dist/assets/{topics-B-lCJzVc.js → topics-rkG9-6El.js} +2 -2
  185. package/dashboard/dist/assets/{topics-B-lCJzVc.js.map → topics-rkG9-6El.js.map} +1 -1
  186. package/dashboard/dist/assets/{useDebouncedValue-C5mMbYoU.js → useDebouncedValue-D2aCC74y.js} +2 -2
  187. package/dashboard/dist/assets/{useDebouncedValue-C5mMbYoU.js.map → useDebouncedValue-D2aCC74y.js.map} +1 -1
  188. package/dashboard/dist/assets/{useNamespace-Bu42ipvu.js → useNamespace-BGfkF4ej.js} +2 -2
  189. package/dashboard/dist/assets/{useNamespace-Bu42ipvu.js.map → useNamespace-BGfkF4ej.js.map} +1 -1
  190. package/dashboard/dist/assets/{useYamlActivityEvents-C29uM9Qp.js → useYamlActivityEvents-DOU0_nfZ.js} +2 -2
  191. package/dashboard/dist/assets/{useYamlActivityEvents-C29uM9Qp.js.map → useYamlActivityEvents-DOU0_nfZ.js.map} +1 -1
  192. package/dashboard/dist/assets/{validate-Bt5QGwSc.js → validate-bHZ917pZ.js} +2 -2
  193. package/dashboard/dist/assets/{validate-Bt5QGwSc.js.map → validate-bHZ917pZ.js.map} +1 -1
  194. package/dashboard/dist/assets/{yaml-workflows-DgrmL_Kt.js → yaml-workflows-S7qlgdg6.js} +2 -2
  195. package/dashboard/dist/assets/{yaml-workflows-DgrmL_Kt.js.map → yaml-workflows-S7qlgdg6.js.map} +1 -1
  196. package/dashboard/dist/index.html +1 -1
  197. package/docs/dashboard.md +1 -1
  198. package/docs/scan-codes.md +17 -5
  199. package/package.json +1 -1
  200. package/dashboard/dist/assets/ScanStationPage-DE-zJTiD.js +0 -2
  201. package/dashboard/dist/assets/ScanStationPage-DE-zJTiD.js.map +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ProcessesListPage-ov_HLxz5.js","./vendor-query-DvWWuNIB.js","./tasks-CUppIhu6.js","./useFilterParams-DBRw1Hcv.js","./vendor-react-_9U4mKFr.js","./useDebouncedValue-C5mMbYoU.js","./api-path-u2Jf9QXS.js","./DataTable-FjFhx0SE.js","./EmptyState-DgC_6njU.js","./useContainerWidth-DSLp1gEm.js","./TimestampCell-CG0erHqq.js","./StickyPagination-CJ3jjlDX.js","./FilterBar-Blt7qcUc.js","./vendor-icons-en0_uSRD.js","./PageHeader-DiGWAQlR.js","./ListToolbar-GGj6X36p.js","./WorkflowPill-CKHip3hH.js","./ProcessDetailPage-CJ71bxDs.js","./PageHeaderWithStats-DwnKQ06j.js","./StatusBadge-DHVwxre2.js","./RolePill-D3hkAdKf.js","./UserName-Vf97ofcW.js","./McpOverview-Do31A1jL.js","./mcp-CsZdpCEf.js","./pipelines-C17xZZsa.js","./yaml-workflows-DgrmL_Kt.js","./controlplane-B96o1-zT.js","./StatCard-nWY4sndl.js","./McpRunsPage-CTeFFUE2.js","./useNamespace-Bu42ipvu.js","./ElapsedCell-Bnjp3onG.js","./RowActions-Bdd7z4eB.js","./McpRunDetailPage-C3mmTl4Y.js","./SegmentedTabs-BpJh4Hwn.js","./EventTable-MJmAbu6N.js","./SwimlaneTimeline-DeFWNFrL.js","./StreamMessageDetail-yOdyJGHR.js","./CopyableId-Bn02zYxt.js","./McpQueryPage-CyT2d0Y_.js","./mcp-query-o2xqrZJv.js","./McpQueryDetailPage-D6FSB1bS.js","./TagInput-DaIdhv3h.js","./CollapsibleSection-BAizcNCt.js","./useYamlActivityEvents-C29uM9Qp.js","./helpers-DzO-OGPe.js","./RunAsSelector-VNjUn9Zp.js","./BotPicker-DGLkc9PQ.js","./bots-Clm-wZeG.js","./ToolPill-CpBAFdEX.js","./TimeAgo-DAtnJQwU.js","./EscalationsOverview-BTkFoklS.js","./AvailableEscalationsPage-CiRxaing.js","./task-queues-7-sHKPsN.js","./BulkAssignModal-C4LV8s0y.js","./constants-CeBBTzf5.js","./EscalationTitleSelect-CgYnMM_O.js","./EscalationTimeline-DFkhU2Z2.js","./escalation-items-BCUiPsfS.js","./validate-Bt5QGwSc.js","./escalation-columns-CFoFILF1.js","./EntityTimelinePanel-D6Z7YXuY.js","./PriorityBadge-r33mpDju.js","./CountdownTimer-CSdAwgwZ.js","./OperatorDashboard-BwYOXyUV.js","./index-EZkdUZwM.js","./ResolverForm-BKiUY-lN.js","./RosterWidget-Cs6OTbST.js","./metadata-display-B7X5hGxG.js","./WorkflowsOverview-D_wYDqw3.js","./index-CnhNCVPc.js","./NamespacePill-CeSfHH-j.js","./WorkflowsDashboard-gH-PGsKq.js","./YamlWorkflowsPage-DVEVSKKJ.js","./GraphInvokePage-B4K3mT_c.js","./YamlWorkflowDetailPage-Imob5F8H.js","./TasksListPage-Bc3S63_O.js","./TaskDetailPage-BPL_Zx-L.js","./WorkflowExecutionPage-B195cnHb.js","./AdminDashboard-CZIeiLe0.js","./index-XS-6UjQd.js","./TaskQueuePill-sUA1nZe-.js","./index-MGquOb7J.js","./ConfirmDeleteModal-DlNWHVxi.js","./index-DvgjLvvn.js","./ToolTestPanel-c71yqZv7.js","./index-P22vmuEu.js","./index-C1WJs6IZ.js","./personas-EYROtAxm.js","./ScopeBadge-DGz79rmG.js","./RolesPage-DvO5DJWY.js","./RoleDetailPage-CmfWwjtG.js","./AutoGrowTextarea-7X3T9La8.js","./PersonasPage-BS8aBeOv.js","./PersonaDetailPage-CkrKJLNv.js","./EscalationSchemaPage-DuOje0Ke.js","./PortalPage-PEBk6VVu.js","./EscalationListSchemaPage-D2aa_arC.js","./ScanCodesPage-Dbaud0fc.js","./GrantScopeField-BzWGzBfA.js","./ScanSchemeDetailPage-BfDw_Eke.js","./ScanStationPage-DE-zJTiD.js","./index-B_z-OFwk.js","./OperationsPage-BUtQP5dm.js","./index-Czb9O4Ns.js","./index-BOuGMe78.js","./CredentialsPage-pOyC1GfC.js","./ConnectedAppsPage-D94kx0v3.js","./index-IedmSPp1.js","./DropZone-DefYTYQy.js","./index-BXKDpLk5.js","./knowledge-d92ncKgf.js","./LinesPage-D9TRHWyt.js","./machines-BG9laURp.js","./LinePage-CuHHHwBy.js","./HomePage-BN5wXq6V.js","./AgentsPage-Cs4IKeec.js","./agents-B-8z_DV8.js","./AgentDetailPage-BWAlHQfB.js","./CronLabel-BVlOOcyo.js","./AgentConfigPage-DO3ATfCU.js","./capabilities-CBwgv5tr.js","./topics-B-lCJzVc.js","./CapabilitiesPage-BLMMV3-W.js","./TopicsPage-lQ9HNzOq.js","./TopicDetailPage-BlUP0bb1.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ProcessesListPage-DPLRgznC.js","./vendor-query-DvWWuNIB.js","./tasks-CVZT1pf0.js","./useFilterParams-DBRw1Hcv.js","./vendor-react-_9U4mKFr.js","./useDebouncedValue-D2aCC74y.js","./api-path-u2Jf9QXS.js","./DataTable-FjFhx0SE.js","./EmptyState-DgC_6njU.js","./useContainerWidth-DSLp1gEm.js","./TimestampCell-M_FD9JEc.js","./StickyPagination-C2fzclxr.js","./FilterBar-ByZiD0ty.js","./vendor-icons-en0_uSRD.js","./PageHeader-DiGWAQlR.js","./ListToolbar-bj2sgAK4.js","./WorkflowPill-CKHip3hH.js","./ProcessDetailPage-Tf8FQCUm.js","./PageHeaderWithStats-DwnKQ06j.js","./StatusBadge-DHVwxre2.js","./RolePill-D3hkAdKf.js","./UserName-ET3r3u-A.js","./McpOverview-BD3UWbcC.js","./mcp-DtWRQM1G.js","./pipelines-ClmRtlkR.js","./yaml-workflows-S7qlgdg6.js","./controlplane-INfcW_9F.js","./StatCard-nWY4sndl.js","./McpRunsPage-Z-mtyRBp.js","./useNamespace-BGfkF4ej.js","./ElapsedCell-D0jYuFKh.js","./RowActions-Bdd7z4eB.js","./McpRunDetailPage-C4jozQFh.js","./SegmentedTabs-BpJh4Hwn.js","./EventTable-DTtu2iM_.js","./SwimlaneTimeline-B4Hg97qO.js","./StreamMessageDetail-wF4NM8gi.js","./CopyableId-Bn02zYxt.js","./McpQueryPage-t555QJ3m.js","./mcp-query-vQm92kTd.js","./McpQueryDetailPage-ISzY-BfT.js","./TagInput-DaIdhv3h.js","./CollapsibleSection-DFfVr_Ut.js","./useYamlActivityEvents-DOU0_nfZ.js","./helpers-DzO-OGPe.js","./RunAsSelector-CzabsFYU.js","./BotPicker-HJtVHdNe.js","./bots-D4mtcPHB.js","./ToolPill-CpBAFdEX.js","./TimeAgo-CFeB6U2O.js","./EscalationsOverview-yHY6JKiV.js","./AvailableEscalationsPage-jy2WKDjr.js","./task-queues-7-sHKPsN.js","./BulkAssignModal-DsJJZ9X4.js","./constants-CeBBTzf5.js","./EscalationTitleSelect-36tkc2TE.js","./EscalationTimeline-DiN8ImWF.js","./escalation-items-B6eDMoTN.js","./validate-bHZ917pZ.js","./escalation-columns-8ker-czW.js","./EntityTimelinePanel-Ch-BsRu8.js","./PriorityBadge-r33mpDju.js","./CountdownTimer-u_o3OygV.js","./OperatorDashboard-3Hi2IiHi.js","./index-BpJ77OST.js","./ResolverForm-BXqJEPte.js","./RosterWidget-WCtpUEzc.js","./metadata-display-B7X5hGxG.js","./WorkflowsOverview-CJfg0rQH.js","./index-BcVkiaCv.js","./NamespacePill-CeSfHH-j.js","./WorkflowsDashboard-WO4cH8sU.js","./YamlWorkflowsPage-DHQ4ZVzM.js","./GraphInvokePage-Cbn6igr_.js","./YamlWorkflowDetailPage-C8rkvYCp.js","./TasksListPage-BmghuHbc.js","./TaskDetailPage-DAxxcFDD.js","./WorkflowExecutionPage-DBq2lZ_C.js","./AdminDashboard-NVtdLI4I.js","./index-Cfg4TFDb.js","./TaskQueuePill-sUA1nZe-.js","./index-Cg9W61lM.js","./ConfirmDeleteModal-D6TwO-yT.js","./index-ChF-l2z9.js","./ToolTestPanel-D7PihZG9.js","./index-CV7KmPdF.js","./index-D-Fd0gQ_.js","./personas-BLxQpGNz.js","./ScopeBadge-DGz79rmG.js","./RolesPage-C5f-3zcs.js","./RoleDetailPage-KJnZGPPY.js","./AutoGrowTextarea-7X3T9La8.js","./PersonasPage-uCYVhRBB.js","./PersonaDetailPage-xb7O3tn9.js","./EscalationSchemaPage-D_mYri6e.js","./PortalPage-D1MOMJ9Q.js","./EscalationListSchemaPage-DuSLiInU.js","./ScanCodesPage-D51d17HH.js","./GrantScopeField-BzWGzBfA.js","./ScanSchemeDetailPage-CUK6Skxj.js","./ScanStationPage-7vK0ddiV.js","./index-0LXkjZjt.js","./OperationsPage-ClYilVyZ.js","./index-Cm6_Peh7.js","./index-D-EVgGsm.js","./CredentialsPage-C3dnRsMh.js","./ConnectedAppsPage-BOD-tgY0.js","./index-BpillEP7.js","./DropZone-DefYTYQy.js","./index-5XUBZtlv.js","./knowledge-_WaBsrbC.js","./LinesPage-BX3d-rj0.js","./machines-D6ig2Q8z.js","./LinePage-Q5Cgjd3N.js","./HomePage-CtLKm_S4.js","./AgentsPage-DmF0m3Ro.js","./agents-zulmHig2.js","./AgentDetailPage-BF4mw1bD.js","./CronLabel-BFh5TCsB.js","./AgentConfigPage-Db1Oi72V.js","./capabilities-rFZDH0zF.js","./topics-rkG9-6El.js","./CapabilitiesPage-iCn7PxDP.js","./TopicsPage-DP5ox5oX.js","./TopicDetailPage-T0dLt7Ao.js"])))=>i.map(i=>d[i]);
2
2
  var oS=Object.defineProperty;var lS=(n,e,s)=>e in n?oS(n,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[e]=s;var j=(n,e,s)=>lS(n,typeof e!="symbol"?e+"":e,s);import{r as cS,u as Le,a as E,j as h,b as qe,c as Ie,g as uS,d as fS,Q as hS,e as dS}from"./vendor-query-DvWWuNIB.js";import{r as mS,u as ni,a as tn,b as sm,L as ar,N as Os,c as un,O as vs,d as pS,R as yS}from"./vendor-react-_9U4mKFr.js";import{X as en,E as gS,S as bS,M as xS,a as Mo,C as im,b as vS,B as _S,c as wS,d as cx,e as gd,I as bd,U as SS,L as xd,f as ES,G as OS,T as AS,F as jS,R as ux,g as kS,Z as NS,P as Mg,h as fx,i as TS,j as Rg,k as vd,l as Dg,m as CS,W as am,n as MS,o as RS,p as DS,q as hx,r as LS,D as qS,N as PS,s as BS,t as dx,u as mx,v as px,w as US,x as zS,y as IS,z as $S,A as HS,H as FS,J as GS,K as VS,O as YS}from"./vendor-icons-en0_uSRD.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const m of c.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&i(m)}).observe(document,{childList:!0,subtree:!0});function s(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(o){if(o.ep)return;o.ep=!0;const c=s(o);fetch(o.href,c)}})();var Jh={exports:{}},so={},Qh={exports:{}},Xh={};/**
3
3
  * @license React
4
4
  * scheduler.production.js
@@ -63,5 +63,5 @@ ${s.map(o=>`${o.role==="user"?"User":"Assistant"}: ${o.content}`).join(`
63
63
 
64
64
  `}function DC(n){const e=n.summary,s=n.title;if(e){const i=e.search(/\n\s*\{[\s\S]*"title"\s*:/);return i>0?e.slice(0,i).trim():e}return s||(typeof n=="string"?n:"Query completed.")}const Jv=E.createContext(null);function LC({children:n}){const e=tn(),[s,i]=E.useState(!1),[o,c]=E.useState([]),[m,p]=E.useState(null),[g,u]=E.useState({}),d=E.useRef(null),b={page:e.pathname.split("/").filter(Boolean).join("-")||"home",route:e.pathname,params:{},...g,suggestedTags:g.suggestedTags??MC(e.pathname)};E.useEffect(()=>()=>{d.current&&clearInterval(d.current)},[]);const x=E.useCallback(()=>i(B=>!B),[]),v=E.useCallback(B=>{u(B)},[]),_=E.useCallback(()=>{c([]),p(null)},[]),S=E.useCallback(async B=>{var F;const q=new Date().toISOString(),ne={id:`user-${Date.now()}`,role:"user",content:B,timestamp:q},te={id:`pending-${Date.now()}`,role:"assistant",content:"",timestamp:q,pending:!0};c(U=>[...U,ne,te]);const M={...b};(F=M.entities)!=null&&F.yamlContent&&M.entities.yamlContent.length>ex&&(M.entities={...M.entities,yamlContent:M.entities.yamlContent.slice(0,ex)+`
65
65
  ... (truncated)`});const ae=`${RC(o.concat(ne))}${B}`;try{const D=(await ue("/insight/mcp-query",{method:"POST",body:JSON.stringify({prompt:ae,tags:M.suggestedTags,context:M,wait:!1,direct:!0})})).workflow_id;p(D),c(Q=>Q.map(W=>W.id===te.id?{...W,workflowId:D}:W)),d.current&&clearInterval(d.current),d.current=setInterval(async()=>{var Q;try{const W=await ue(`/workflows/${D}/result`),he=(Q=W==null?void 0:W.result)==null?void 0:Q.data;if(he){d.current&&clearInterval(d.current),d.current=null,p(null);const Ee=DC(he);let Ae;try{Ae=(await ue(`/workflow-states/${D}/execution`)).duration_ms}catch{}c(H=>H.map(J=>J.id===te.id?{...J,content:Ee,timestamp:new Date().toISOString(),pending:!1,durationMs:Ae}:J))}}catch{}},3e3)}catch{c(U=>U.map(D=>D.id===te.id?{...D,content:"Failed to submit query. Please try again.",pending:!1}:D))}},[o,b]),C=E.useCallback(async B=>{const q=o.find(M=>M.id===B);if(!(q!=null&&q.workflowId)||q.compilationStatus==="compiling"||q.compilationStatus==="done")return;const ne=o.indexOf(q),te=o.slice(0,ne).reverse().find(M=>M.role==="user");if(te){c(M=>M.map(z=>z.id===B?{...z,compilationStatus:"compiling"}:z));try{const M=await ue("/insight/mcp-query/describe",{method:"POST",body:JSON.stringify({prompt:te.content,summary:q.content})}),z=await ue("/yaml-workflows",{method:"POST",body:JSON.stringify({workflow_id:q.workflowId,task_queue:"long-tail-system",workflow_name:"mcpQuery",name:M.tool_name,description:M.description,tags:M.tags,app_id:""})});await ue(`/yaml-workflows/${z.id}/deploy`,{method:"POST"}),c(ae=>ae.map(F=>F.id===B?{...F,compilationStatus:"done"}:F))}catch(M){const z=M instanceof Error?M.message:"Compilation failed";c(ae=>ae.map(F=>F.id===B?{...F,compilationStatus:"error",compilationError:z}:F))}}},[o]);return h.jsx(Jv.Provider,{value:{helpOpen:s,setHelpOpen:i,toggleHelp:x,messages:o,sendMessage:S,pageContext:b,setPageContext:v,activeWorkflowId:m,clearMessages:_,compileMessage:C},children:n})}function Qv(){const n=E.useContext(Jv);if(!n)throw new Error("useHelpAssistant must be used within HelpAssistantProvider");return n}function qC(){const{helpOpen:n,toggleHelp:e}=Qv();return h.jsx("button",{onClick:e,className:"fixed right-3 z-[45] flex items-center justify-center w-10 h-10 rounded-full bg-surface-raised shadow-lg hover:scale-110 transition-transform duration-150 border border-accent/30",style:{bottom:"44px"},"aria-label":n?"Close help":"Ask for help",children:n?h.jsx(en,{className:"w-5 h-5 text-text-tertiary",strokeWidth:1.5}):h.jsx("span",{role:"img","aria-label":"Help",className:"logo-mark w-8 h-8 -rotate-[120deg]",style:{"--logo-url":`url(${Yt}/logo512.png)`}})})}function PC({ms:n,className:e=""}){const s=gk(n),i=E.useMemo(()=>n==null?[]:[{label:"ms",value:String(n)},{label:"sec",value:`${(n/1e3).toFixed(3)}s`},{label:"text",value:s}],[n,s]);return n==null?h.jsx("span",{className:`text-xs text-text-tertiary ${e}`,children:"--"}):h.jsx(bv,{options:i,children:h.jsx("span",{className:`text-xs text-text-tertiary ${e}`,children:s})})}const BC=["sm","md","lg","full"],tx={sm:"w-[28rem] max-h-[40vh]",md:"w-[36rem] max-h-[60vh]",lg:"w-[48rem] max-h-[80vh]",full:"inset-4 w-auto max-h-none"},nx={sm:"Small",md:"Medium",lg:"Large",full:"Fullscreen"};function UC({which:n}){const e="stroke-current";switch(n){case"sm":return h.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:h.jsx("rect",{x:"5",y:"5",width:"7",height:"7",rx:"1.5",className:e,strokeWidth:"1.5"})});case"md":return h.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:h.jsx("rect",{x:"3",y:"3",width:"9",height:"9",rx:"1.5",className:e,strokeWidth:"1.5"})});case"lg":return h.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:h.jsx("rect",{x:"1.5",y:"1.5",width:"11",height:"11",rx:"1.5",className:e,strokeWidth:"1.5"})});case"full":return h.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:h.jsx("rect",{x:"0.75",y:"0.75",width:"12.5",height:"12.5",rx:"1.5",className:e,strokeWidth:"1.5"})})}}function zC({msg:n}){const[e,s]=E.useState(0);E.useEffect(()=>{const m=new Date(n.timestamp).getTime(),p=()=>s(Math.floor((Date.now()-m)/1e3));p();const g=setInterval(p,1e3);return()=>clearInterval(g)},[n.timestamp]);const i=Math.floor(e/60),o=e%60,c=i>0?`${i}m ${o}s`:`${o}s`;return h.jsxs("span",{className:"inline-flex flex-col gap-1.5",children:[h.jsxs("span",{className:"inline-flex items-center gap-1",children:[h.jsx("span",{className:"text-text-tertiary",children:"Thinking"}),h.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-text-tertiary animate-pulse"}),h.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-text-tertiary animate-pulse [animation-delay:150ms]"}),h.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-text-tertiary animate-pulse [animation-delay:300ms]"}),h.jsx("span",{className:"text-text-muted ml-1 tabular-nums",children:c})]}),n.workflowId&&h.jsxs(ar,{to:`/workflows/executions/${n.workflowId}`,className:"inline-flex items-center gap-1 text-2xs text-accent/70 hover:text-accent transition-colors",children:[h.jsx(am,{className:"w-2.5 h-2.5",strokeWidth:1.5}),"watch execution"]})]})}function IC({msg:n,compileMessage:e}){const s=n.role==="assistant";return h.jsxs("div",{className:`flex items-center gap-1.5 ${s?"justify-start":"justify-end"}`,children:[h.jsx(xv,{date:n.timestamp,format:"time",className:"!text-2xs text-text-muted/50"}),n.durationMs!=null&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-text-muted/30 text-2xs",children:"·"}),h.jsx(PC,{ms:n.durationMs,className:"!text-2xs text-text-muted/50"})]}),n.workflowId&&h.jsx(ar,{to:`/workflows/executions/${n.workflowId}`,className:"text-text-muted/40 hover:text-accent transition-colors",title:"View workflow execution",children:h.jsx(am,{className:"w-2.5 h-2.5",strokeWidth:1.5})}),s&&n.workflowId&&!n.pending&&h.jsx("button",{onClick:()=>e(n.id),disabled:n.compilationStatus==="compiling"||n.compilationStatus==="done",className:"transition-colors",title:n.compilationStatus==="done"?"Compiled — future queries will match this pipeline":n.compilationStatus==="error"?n.compilationError??"Compilation failed":n.compilationStatus==="compiling"?"Compiling...":"Compile to fast pipeline",children:h.jsx(HS,{className:`w-2.5 h-2.5 ${n.compilationStatus==="done"?"text-status-success":n.compilationStatus==="error"?"text-status-error":n.compilationStatus==="compiling"?"text-accent/40 animate-pulse":"text-text-muted/40 hover:text-accent"}`,strokeWidth:1.5})})]})}function $C(){const{helpOpen:n,setHelpOpen:e,messages:s,sendMessage:i,pageContext:o,activeWorkflowId:c,clearMessages:m,compileMessage:p}=Qv(),[g,u]=E.useState(""),[d,b]=E.useState("md"),[x,v]=E.useState(!0),_=E.useRef(null),S=E.useRef(null);if(E.useEffect(()=>{_.current&&(_.current.scrollTop=_.current.scrollHeight)},[s]),E.useEffect(()=>{n&&S.current&&S.current.focus()},[n]),E.useEffect(()=>{if(!n)return;const M=z=>{z.key==="Escape"&&(d==="full"?b("lg"):d==="lg"?b("md"):d==="md"?b("sm"):e(!1))};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[n,d,e]),!n)return null;const C=()=>{const M=g.trim();!M||c||(i(M),u(""),S.current&&(S.current.style.height="auto"))},B=M=>{M.key==="Enter"&&!M.shiftKey&&(M.preventDefault(),C())},q=d==="full",ne=o.page.replace(/-/g," "),te=q?{}:{bottom:"108px"};return h.jsxs("div",{className:`fixed z-[45] flex flex-col border border-surface-border rounded-lg overflow-hidden transition-all duration-300 ${q?tx.full:`right-6 ${tx[d]}`} ${x?"bg-surface-raised shadow-xl":"bg-surface-raised/[0.03] shadow-lg shadow-black/5"}`,style:te,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:[h.jsxs("div",{className:`flex items-center justify-between px-4 py-2.5 border-b border-surface-border shrink-0 transition-all duration-300 ${x?"opacity-100":"opacity-50 grayscale brightness-150"}`,children:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("p",{className:"text-xs font-medium text-text-primary truncate",children:"Help Assistant"}),h.jsx("p",{className:"text-2xs text-text-tertiary truncate",children:ne})]}),h.jsxs("div",{className:"flex items-center gap-1 ml-2",children:[h.jsx("div",{className:"flex items-center gap-0.5 border border-surface-border rounded p-0.5",role:"radiogroup","aria-label":"Panel size",children:BC.map(M=>h.jsx("button",{onClick:()=>b(M),className:`p-1 rounded transition-colors ${M===d?"bg-accent/15 text-accent":"text-text-muted hover:text-text-secondary hover:bg-surface-hover"}`,role:"radio","aria-checked":M===d,"aria-label":nx[M],title:nx[M],children:h.jsx(UC,{which:M})},M))}),s.length>0&&h.jsx("button",{onClick:m,className:"p-1 text-text-tertiary hover:text-text-secondary transition-colors","aria-label":"Clear conversation",title:"Clear conversation",children:h.jsx(FS,{className:"w-3.5 h-3.5",strokeWidth:1.5})}),h.jsx("button",{onClick:()=>e(!1),className:"p-1 text-text-tertiary hover:text-text-primary transition-colors","aria-label":"Close",title:"Close",children:h.jsx(en,{className:"w-3.5 h-3.5",strokeWidth:1.5})})]})]}),h.jsxs("div",{ref:_,className:`flex-1 overflow-y-auto px-4 py-3 space-y-3 min-h-[120px] transition-all duration-300 ${x?"opacity-100":"opacity-50 grayscale brightness-150"}`,children:[s.length===0&&h.jsx("p",{className:"text-xs text-text-tertiary text-center py-6",children:"Ask anything about what you're viewing."}),s.map(M=>h.jsxs("div",{className:`text-xs leading-relaxed ${M.role==="user"?"text-right":"text-left"}`,children:[h.jsx("div",{className:`inline-block max-w-[85%] px-3 py-2 rounded-md whitespace-pre-wrap ${M.role==="user"?"bg-accent/10 text-text-primary":"bg-surface-sunken text-text-secondary"}`,children:M.pending?h.jsx(zC,{msg:M}):M.role==="assistant"?h.jsx(Pu,{content:M.content}):M.content}),!M.pending&&h.jsx("div",{className:"mt-0.5",children:h.jsx(IC,{msg:M,compileMessage:p})})]},M.id))]}),h.jsxs("div",{className:`border-t border-surface-border px-3 py-2.5 flex gap-2 shrink-0 transition-all duration-300 ${x?"opacity-100":"opacity-50 grayscale brightness-150"}`,children:[h.jsx("textarea",{ref:S,value:g,onChange:M=>{u(M.target.value);const z=M.target;z.style.height="auto",z.style.height=`${Math.min(z.scrollHeight,120)}px`},onKeyDown:B,placeholder:"Ask a question...",rows:2,className:"flex-1 resize-none bg-surface text-xs text-text-primary placeholder:text-text-tertiary rounded px-2.5 py-1.5 border border-surface-border focus:outline-none focus:border-accent",style:{minHeight:"2.5rem"},disabled:!!c}),h.jsx("button",{onClick:C,disabled:!g.trim()||!!c,className:"px-2.5 py-1.5 text-accent hover:text-accent-hover disabled:text-text-muted transition-colors self-end","aria-label":"Send",children:h.jsx(GS,{className:"w-4 h-4",strokeWidth:1.5})})]})]})}const HC=6e3,FC="scan";function GC(){const{lastResult:n}=$m(),{open:e,ownerKey:s}=Lm(),[i,o]=E.useState(null);return E.useEffect(()=>{if(!n)return;const c=setTimeout(()=>o(n.at),HC);return()=>clearTimeout(c)},[n]),!n||n.navigated||i===n.at||e&&s===FC||n.source===na.TOOLBAR?null:h.jsx("div",{role:"status",className:"fixed bottom-14 right-4 z-[60] w-80 max-w-[calc(100vw-2rem)] bg-surface-raised border border-surface-border shadow-lg rounded-md animate-page-in",children:h.jsxs("div",{className:"flex items-start gap-2.5 px-3.5 py-3",children:[h.jsx(Mo,{className:"w-4 h-4 mt-0.5 text-accent-muted shrink-0",strokeWidth:1.5}),h.jsx("div",{className:"flex-1 min-w-0",children:h.jsx(Hm,{result:n})}),h.jsx("button",{type:"button",onClick:()=>o(n.at),className:"text-text-tertiary hover:text-text-primary shrink-0",title:"Dismiss",children:h.jsx(en,{className:"w-3.5 h-3.5"})})]})})}const Xv="lt-announcement-dismissed:",VC="Live updates unavailable. Reconnecting… Refresh if this persists.";function YC(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function KC(n){try{return localStorage.getItem(`${Xv}${n}`)==="1"}catch{return!1}}function JC(){const{isAuthenticated:n,userRoleNames:e}=Lt(),{data:s}=gv(n),i=qe(),[o,c]=E.useState(null),[m,p]=E.useState(0),{unavailable:g}=mO();An(dk,()=>{i.invalidateQueries({queryKey:["announcements"]})});const u=Date.now(),d=((s==null?void 0:s.announcements)??[]).filter(x=>!KC(x.id)&&new Date(x.expires_at).getTime()>u&&(x.roles.length===0||x.roles.some(v=>e.includes(v))));if(E.useEffect(()=>{const x=((s==null?void 0:s.announcements)??[]).map(_=>new Date(_.expires_at).getTime()-Date.now()).filter(_=>_>0);if(x.length===0)return;const v=setTimeout(()=>p(_=>_+1),Math.min(...x)+250);return()=>clearTimeout(v)},[s,m]),d.length===0&&!g)return null;const b=x=>{try{localStorage.setItem(`${Xv}${x}`,"1")}catch{}p(v=>v+1)};return h.jsxs("div",{"data-testid":"announcement-banner",className:"relative z-40",children:[g&&h.jsx("div",{"data-testid":"live-updates-notice",role:"status",className:"border-b border-status-warning/25 bg-status-warning/10",children:h.jsxs("div",{className:"flex items-center gap-2 px-4 py-1.5",children:[h.jsx("span",{className:"text-2xs font-semibold uppercase tracking-widest text-status-warning",children:"Notice"}),h.jsx("span",{className:"truncate text-xs text-text-primary",children:VC})]})}),d.map(x=>{const v=o===x.id,_=x.title??x.body.split(`
66
- `)[0];return h.jsxs("div",{className:"border-b border-accent/25 bg-accent/10",children:[h.jsxs("div",{className:"flex items-center gap-2 px-4 py-1.5",children:[h.jsx("span",{className:"text-2xs font-semibold uppercase tracking-widest text-accent",children:"Notice"}),h.jsxs("button",{type:"button",onClick:()=>c(v?null:x.id),className:"flex items-center gap-1.5 text-xs text-text-primary hover:text-accent transition-colors min-w-0",children:[h.jsx("span",{className:"truncate",children:_}),v?h.jsx(px,{className:"w-3 h-3 shrink-0",strokeWidth:1.5}):h.jsx(im,{className:"w-3 h-3 shrink-0",strokeWidth:1.5})]}),h.jsx("div",{className:"flex-1"}),h.jsx("button",{type:"button",onClick:()=>b(x.id),className:"icon-link",title:"Dismiss","aria-label":`Dismiss ${_}`,children:h.jsx(en,{className:"w-3.5 h-3.5",strokeWidth:1.5})})]}),v&&h.jsx("div",{className:"px-4 pb-3 text-sm text-text-secondary max-w-measure",children:h.jsx(Pu,{content:YC(x.body)})})]},x.id)})]})}function QC(){var ae,F;const{isBuilder:n,isOps:e,viewAs:s}=tv(),{canSeePaceBoard:i}=nv();EA();const{data:o}=Hn();Lj((ae=o==null?void 0:o.display)==null?void 0:ae.timeZone);const c=Xx(),m=c!==null?c:!!((F=o==null?void 0:o.ai)!=null&&F.enabled),p=!!(o!=null&&o.machines),{collapsed:g,toggle:u}=Rm(),[d,b]=E.useState(!1),[x,v]=E.useState(!1),[_,S]=E.useState(!1),[C,B]=E.useState(()=>window.location.hash.startsWith("#docs")),q=tn(),ne=E.useRef(null),{kiosk:te,homePath:M}=Cm(),z=te||Kj(q.pathname);return E.useEffect(()=>{const U=ne.current;U&&(U.classList.remove("animate-page-in"),U.offsetWidth,U.classList.add("animate-page-in"))},[q.pathname]),E.useEffect(()=>{const U=()=>{window.location.hash.startsWith("#docs")&&B(!0)};return window.addEventListener("hashchange",U),()=>window.removeEventListener("hashchange",U)},[]),te&&M&&!Wj(q.pathname,q.search)?h.jsx(un,{to:M,replace:!0}):h.jsxs("div",{className:"h-screen bg-surface flex flex-col",children:[h.jsx(NT,{onToggleEventFeed:()=>b(U=>!U),onToggleDocs:()=>B(U=>!U),onToggleNav:z?void 0:()=>v(U=>!U)}),h.jsx(JC,{}),h.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[!z&&h.jsxs("aside",{className:`${g?"w-16":"w-60"} shrink-0 bg-surface-raised border-r border-surface-border hidden lg:flex flex-col transition-[width] duration-200 ease-out overflow-hidden relative z-20`,children:[h.jsx("nav",{className:"flex-1 px-3 pt-[36px] pb-4 space-y-2 overflow-y-auto overflow-x-hidden",children:h.jsx(Fv,{aiEnabled:m,isBuilder:n,isOps:e,viewAs:s,canSeePaceBoard:i,showLines:p})}),h.jsx("button",{onClick:u,className:`shrink-0 py-3 text-text-tertiary hover:text-text-secondary transition-colors duration-150 ${g?"flex justify-center":"flex items-center px-7"}`,"aria-label":g?"Expand sidebar":"Collapse sidebar",children:g?h.jsx(VS,{className:"w-4 h-4 text-accent-muted",strokeWidth:1.5}):h.jsx(YS,{className:"w-4 h-4 text-accent-muted",strokeWidth:1.5})}),!g&&(o==null?void 0:o.environment)&&h.jsxs("div",{className:"shrink-0 px-5 pb-3 text-2xs leading-tight text-text-tertiary whitespace-nowrap overflow-hidden text-ellipsis",title:`long-tail v${o.environment.longTailVersion} · HotMesh v${o.environment.hotmeshVersion} · Node ${o.environment.nodeVersion} · ${o.environment.nodeEnv}`,children:["long-tail v",o.environment.longTailVersion,h.jsx("span",{className:"mx-1 text-surface-border",children:"·"}),"HotMesh v",o.environment.hotmeshVersion]})]}),h.jsx("main",{className:"flex-1 min-w-0 overflow-y-auto",children:h.jsx("div",{ref:ne,className:"w-full px-page-x py-8 pb-16 animate-page-in h-full flex flex-col @container",children:h.jsx(vs,{})})}),h.jsx(XC,{})]}),!z&&h.jsx(nC,{open:x,onClose:()=>v(!1),aiEnabled:m,isBuilder:n,isOps:e,viewAs:s,canSeePaceBoard:i,showLines:p}),h.jsx(_C,{open:d,onToggle:()=>b(U=>!U),configOpen:_,onToggleConfig:()=>S(U=>!U)}),h.jsx(CC,{open:C,onClose:()=>{B(!1),history.replaceState(null,"",window.location.pathname+window.location.search)}}),m&&h.jsx(qC,{}),m&&h.jsx($C,{}),h.jsx(GC,{})]})}function XC(){const{node:n,width:e,open:s}=Lm();return h.jsx(rk,{open:s,width:e,className:"border-l border-surface-border bg-surface-raised",children:n})}function WC(){const{isAuthenticated:n}=Lt(),e=tn();return n?h.jsx(ek,{children:h.jsx(nk,{children:h.jsx(LC,{children:h.jsx(_A,{children:h.jsx(eN,{children:h.jsx(QC,{})})})})})}):h.jsx(un,{to:"/login",state:{from:e.pathname},replace:!0})}function Wv({provider:n,className:e="w-5 h-5"}){switch(n){case"google":return h.jsxs("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:[h.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"}),h.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),h.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),h.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]});case"github":return h.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:h.jsx("path",{d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"})});case"microsoft":return h.jsxs("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:[h.jsx("path",{d:"M3 3h8.5v8.5H3z",fill:"#F25022"}),h.jsx("path",{d:"M12.5 3H21v8.5h-8.5z",fill:"#7FBA00"}),h.jsx("path",{d:"M3 12.5h8.5V21H3z",fill:"#00A4EF"}),h.jsx("path",{d:"M12.5 12.5H21V21h-8.5z",fill:"#FFB900"})]});case"anthropic":return h.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:h.jsx("path",{d:"M13.827 3.52h3.603L24 20.48h-3.603l-6.57-16.96zm-7.258 0h3.767L16.906 20.48h-3.674l-1.343-3.461H6.396l-1.34 3.461H1.5l5.07-16.96zm2.327 5.14l-2.065 5.326h4.108l-2.043-5.326z"})});default:return h.jsxs("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[h.jsx("circle",{cx:"12",cy:"12",r:"10"}),h.jsx("path",{d:"M12 8v4l3 3"})]})}}async function ZC(){return ue("/auth/oauth/providers")}async function e3(n,e){const s=e?`?label=${encodeURIComponent(e)}`:"";return ue(`/auth/oauth/connections/${n}${s}`,{method:"DELETE"})}function nR(){return Le({queryKey:["oauth-connections"],queryFn:()=>ue("/auth/oauth/connections")})}function rR(){const n=qe();return Ie({mutationFn:({provider:e,label:s})=>e3(e,s),onSuccess:()=>{n.invalidateQueries({queryKey:["oauth-connections"]})}})}function t3(){var ae;const{login:n,isAuthenticated:e}=Lt(),s=ni(),i=tn(),o=new URLSearchParams(i.search),c=o.get("token"),m=o.get("error"),p=((ae=i.state)==null?void 0:ae.from)??o.get("returnTo")??"/",g=E.useRef(!1);c&&!g.current&&(g.current=!0,n(c,void 0,{displayName:o.get("displayName"),username:o.get("username")}));const[u,d]=E.useState(""),[b,x]=E.useState(""),[v,_]=E.useState(m||""),[S,C]=E.useState(!1),[B,q]=E.useState(!!c),[ne,te]=E.useState([]),M=E.useRef(!1);if(E.useEffect(()=>{c||M.current||(M.current=!0,(async()=>{var F,U,D,Q;try{const W=await lm().catch(()=>null);if(!((F=W==null?void 0:W.auth)!=null&&F.sso))return;const he=await fetch(`${Yt}/api/auth/sso`,{method:"POST"});if(!he.ok){_("Host authentication required — please log in to your organization first");return}const Ee=await he.json();Ee.token&&((U=W.auth)!=null&&U.ssoLogoutUrl&&sessionStorage.setItem("lt_sso_logout_url",W.auth.ssoLogoutUrl),q(!0),n(Ee.token,void 0,{displayName:(D=Ee.user)==null?void 0:D.display_name,username:(Q=Ee.user)==null?void 0:Q.external_id}))}catch{}})())},[]),E.useEffect(()=>{c||ZC().then(te).catch(()=>{})},[]),E.useEffect(()=>{if(!B)return;const F=setTimeout(()=>s(p,{replace:!0}),1500);return()=>clearTimeout(F)},[B]),e&&!B)return h.jsx(un,{to:p,replace:!0});const z=async F=>{var U,D;if(F.preventDefault(),_(""),!u.trim()||!b){_("Username and password are required");return}C(!0);try{const Q=await fetch(`${Yt}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:u.trim(),password:b})}),W=await Q.json();if(!Q.ok){_(W.error||"Login failed");return}q(!0),n(W.token,{username:u.trim(),password:b},{displayName:(U=W.user)==null?void 0:U.display_name,username:(D=W.user)==null?void 0:D.external_id})}catch{_("Unable to connect to server")}finally{C(!1)}};return h.jsx("div",{className:"min-h-screen bg-surface flex items-center justify-center overflow-hidden",children:h.jsxs("div",{className:"w-full max-w-md p-10",children:[h.jsx("div",{className:`mb-10 transition-all duration-[1500ms] ease-in ${B?"translate-x-[120vw] -translate-y-[60vh] scale-[3] opacity-0":""}`,children:h.jsx(Ru,{size:"lg",hideLabel:B})}),h.jsxs("form",{onSubmit:z,className:`space-y-5 transition-opacity duration-300 ${B?"opacity-0":""}`,children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"username",className:"block text-sm font-medium text-text-secondary mb-2",children:"Username"}),h.jsx("input",{id:"username",type:"text",value:u,onChange:F=>d(F.target.value),className:"input",placeholder:"Enter your username",autoFocus:!B,autoComplete:"username"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-text-secondary mb-2",children:"Password"}),h.jsx("input",{id:"password",type:"password",value:b,onChange:F=>x(F.target.value),className:"input",placeholder:"Enter your password",autoComplete:"current-password"})]}),v&&h.jsx("p",{className:"text-sm text-status-error",children:v}),h.jsx("button",{type:"submit",className:"btn-primary w-full",disabled:S||B,children:S?"Signing in...":"Sign In"}),ne.length>0&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"flex items-center gap-3 mt-6",children:[h.jsx("div",{className:"flex-1 h-px bg-border"}),h.jsx("span",{className:"text-xs text-text-tertiary",children:"or continue with"}),h.jsx("div",{className:"flex-1 h-px bg-border"})]}),h.jsx("div",{className:"space-y-2",children:ne.filter(F=>F.provider!=="anthropic").map(F=>h.jsxs("a",{href:`${Yt}/api/auth/oauth/${F.provider}?returnTo=${encodeURIComponent(p)}`,className:"btn-secondary w-full flex items-center justify-center gap-2",children:[h.jsx(Wv,{provider:F.provider}),"Sign in with ",F.name]},F.provider))})]})]})]})})}function rx(){const{isAuthenticated:n}=Lt(),e=ni(),s=tn(),i=new URLSearchParams(s.search),o=i.get("state")||"";E.useEffect(()=>{n||e(`/login?returnTo=${encodeURIComponent(s.pathname+s.search)}`)},[n]);const[c,m]=E.useState(""),[p,g]=E.useState(i.get("label")||"default"),[u,d]=E.useState(""),[b,x]=E.useState(!1),v=c.trim().startsWith("sk-ant-oat"),_=c.trim().startsWith("sk-ant-api"),S=C=>{C.preventDefault();const B=c.trim();if(!B){d("A token or API key is required");return}if(!B.startsWith("sk-ant-")){d('Invalid format. Must start with "sk-ant-oat" (OAuth token) or "sk-ant-api" (API key)');return}x(!0),d("");const q=`${Yt}/api/auth/oauth/anthropic/callback?code=${encodeURIComponent(B)}&state=${encodeURIComponent(o)}`;window.location.href=q};return h.jsx("div",{className:"min-h-screen bg-surface flex items-center justify-center",children:h.jsxs("div",{className:"w-full max-w-md p-10",children:[h.jsx("div",{className:"mb-10",children:h.jsx(Ru,{size:"lg"})}),h.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[h.jsx(Wv,{provider:"anthropic",className:"w-6 h-6"}),h.jsx("h2",{className:"heading-3",children:"Connect Anthropic"})]}),h.jsx("p",{className:"text-sm text-text-secondary mb-4",children:"Connect your Anthropic account so Claude Code tasks run under your credentials. Your token is encrypted at rest."}),h.jsxs("form",{onSubmit:S,className:"space-y-5",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"token",className:"block text-sm font-medium text-text-secondary mb-2",children:"OAuth Token or API Key"}),h.jsx("input",{id:"token",type:"password",value:c,onChange:C=>m(C.target.value),className:"input",placeholder:"sk-ant-oat01-... or sk-ant-api03-...",autoFocus:!0,autoComplete:"off"}),v&&h.jsx("p",{className:"text-xs text-status-success mt-1",children:"OAuth token detected — uses your Claude subscription (flat rate)"}),_&&h.jsx("p",{className:"text-xs text-status-warning mt-1",children:"API key detected — billed per-token from your Anthropic API account"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"label",className:"block text-sm font-medium text-text-secondary mb-2",children:"Label"}),h.jsx("input",{id:"label",type:"text",value:p,onChange:C=>g(C.target.value.replace(/\s+/g,"-").toLowerCase()),className:"input",placeholder:"default",autoComplete:"off"}),h.jsx("p",{className:"text-xs text-text-tertiary mt-1",children:'A name for this credential. Use different labels to store multiple credentials (e.g., "subscription", "api-batch").'})]}),u&&h.jsx("p",{className:"text-sm text-status-error",children:u}),h.jsx("button",{type:"submit",className:"btn-primary w-full",disabled:b,children:b?"Validating...":"Connect"}),h.jsx("a",{href:"/",className:"block text-center text-sm text-text-tertiary hover:text-text-secondary",children:"Cancel"})]}),h.jsxs("div",{className:"mt-6 space-y-3 text-xs text-text-tertiary",children:[h.jsxs("div",{children:[h.jsx("span",{className:"font-medium text-text-secondary",children:"Recommended:"})," ","Run"," ",h.jsx("code",{className:"px-1 py-0.5 bg-surface-sunken rounded text-2xs",children:"claude setup-token"})," ","in your terminal to generate an OAuth token that uses your subscription."]}),h.jsxs("div",{children:[h.jsx("span",{className:"font-medium text-text-secondary",children:"Alternative:"})," ","Use an API key from"," ",h.jsx("a",{href:"https://console.anthropic.com/settings/keys",target:"_blank",rel:"noopener noreferrer",className:"text-accent-secondary hover:underline",children:"console.anthropic.com"})," ","(billed per-token)."]})]})]})})}function n3({items:n,columns:e=1}){if(n.length===0)return null;const s=e>=2&&n.length>1?"grid-cols-1 @dict-inline:grid-cols-[max-content_1fr] @dict-pairs:grid-cols-[max-content_1fr_max-content_1fr]":"grid-cols-1 @dict-inline:grid-cols-[max-content_1fr]";return h.jsx("div",{className:"@container",children:h.jsx("dl",{className:`grid ${s} items-baseline gap-x-6 @dict-pairs:gap-x-8 gap-y-1.5`,children:n.map(({key:i,label:o,value:c})=>h.jsxs(E.Fragment,{children:[h.jsx("dt",{className:"text-2xs font-semibold uppercase tracking-wide text-text-secondary mt-2 first:mt-0 @dict-inline:mt-0",children:o}),h.jsx("dd",{className:"text-sm text-text-primary break-words whitespace-pre-wrap min-w-0","data-field-key":i,children:r3(c)})]},i))})})}function r3(n){return n==null||n===""?"—":typeof n=="boolean"?n?"Yes":"No":typeof n=="object"?JSON.stringify(n):String(n)}function s3(n){return Le({queryKey:["oauth-client",n],queryFn:()=>ue(`/oauth/clients/${encodeURIComponent(n)}`),enabled:!!n,retry:!1})}function i3(n){return Le({queryKey:["oauth-presets"],queryFn:()=>ue("/oauth/presets"),enabled:n})}function a3(){return Ie({mutationFn:n=>ue(n.preset?"/oauth/authorize":"/oauth/deny",{method:"POST",body:JSON.stringify(n.preset?{...n.request,preset:n.preset}:n.request)})})}function sR(){return Le({queryKey:["oauth-grants"],queryFn:()=>ue("/oauth/grants")})}function iR(){const n=qe();return Ie({mutationFn:e=>ue(`/oauth/grants/${encodeURIComponent(e)}`,{method:"DELETE"}),onSuccess:()=>n.invalidateQueries({queryKey:["oauth-grants"]})})}const o3=["client_id","redirect_uri","code_challenge","code_challenge_method","response_type","state","scope","resource"],yd={read_only:{action:"Allow read-only",effect:"Reads what you can read and runs workflows marked read-safe."},just_me:{action:"Allow as me",effect:"Acts with your full rights: claims, resolves, invokes, and administers wherever you may."}};function l3(n){const e=new URLSearchParams(n),s=o3.map(o=>[o,e.get(o)??void 0]),i=Object.fromEntries(s);return!i.client_id||!i.redirect_uri||!i.code_challenge?null:i}function c3(n){try{return new URL(n).host}catch{return n}}function u3(){var b,x,v;const{isAuthenticated:n,user:e}=Lt(),s=ni(),i=tn(),o=E.useMemo(()=>l3(i.search),[i.search]);E.useEffect(()=>{n||s(`/login?returnTo=${encodeURIComponent(i.pathname+i.search)}`,{replace:!0})},[n]);const c=s3(n&&o?o.client_id:null),m=i3(n&&!!o),p=a3(),g=_=>{o&&p.mutate({request:o,preset:_},{onSuccess:({redirect:S})=>window.location.assign(S)})};if(!n)return null;const u=!o||c.isError,d=((b=c.data)==null?void 0:b.client_name)||"An app";return h.jsx("div",{className:"min-h-screen bg-surface flex items-center justify-center",children:h.jsxs("div",{className:"w-full max-w-lg p-10",children:[h.jsx("div",{className:"mb-10",children:h.jsx(Ru,{size:"lg"})}),u?h.jsxs("div",{role:"alert",children:[h.jsx("h2",{className:"heading-3 mb-3",children:"Sign-in link not valid"}),h.jsx("p",{className:"text-sm text-text-secondary",children:"Start the connection again from the app."})]}):h.jsxs(h.Fragment,{children:[h.jsxs("h2",{className:"heading-2 mb-2",children:["Connect ",d]}),h.jsxs("p",{className:"text-sm text-text-secondary mb-6",children:["Pick how much ",d," may do as you. Disconnect it any time under Connected apps."]}),h.jsx("div",{className:"mb-8",children:h.jsx(n3,{items:[{key:"app",label:"App",value:d},{key:"account",label:"Account",value:(e==null?void 0:e.displayName)||(e==null?void 0:e.username)||(e==null?void 0:e.userId)||null},{key:"returns-to",label:"Returns to",value:c3(o.redirect_uri)},{key:"deployment",label:"Deployment",value:window.location.host}]})}),h.jsx("dl",{className:"space-y-3 mb-8",children:(((x=m.data)==null?void 0:x.presets)??[]).map(_=>h.jsxs("div",{children:[h.jsx("dt",{className:"text-sm font-medium text-text-primary",children:yd[_].action}),h.jsx("dd",{className:"text-sm text-text-secondary",children:yd[_].effect})]},_))}),p.isError&&h.jsx("p",{className:"text-sm text-status-error mb-4",role:"alert",children:p.error.message}),h.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[(((v=m.data)==null?void 0:v.presets)??[]).map(_=>h.jsx("button",{type:"button",className:_==="read_only"?"btn-primary":"btn-secondary",disabled:p.isPending||c.isLoading,onClick:()=>g(_),children:yd[_].action},_)),h.jsx("button",{type:"button",className:"btn-ghost",disabled:p.isPending,onClick:()=>g(null),children:"Deny"})]})]})]})})}function Ki({roleTypes:n,roleNames:e,redirectTo:s="/"}){const{isSuperAdmin:i,hasRole:o,hasRoleType:c}=Lt();return i?h.jsx(vs,{}):n&&n.some(m=>c(m))?h.jsx(vs,{}):e&&e.some(m=>o(m))?h.jsx(vs,{}):h.jsx(un,{to:s,replace:!0})}function f3(){const{data:n,isSuccess:e}=Hv();return e&&n.length===0?h.jsx(un,{to:"/",replace:!0}):h.jsx(vs,{})}function h3({redirectTo:n="/"}){var i;const{data:e,isLoading:s}=Hn();return s||!e?null:(i=e.ai)!=null&&i.enabled?h.jsx(vs,{}):h.jsx(un,{to:n,replace:!0})}function d3({flag:n,redirectTo:e="/"}){var o;const{data:s,isLoading:i}=Hn();return i||!s?null:((o=s.features)==null?void 0:o[n])===!1?h.jsx(un,{to:e,replace:!0}):h.jsx(vs,{})}function m3({redirectTo:n="/"}){const{data:e,isLoading:s}=Hn();return s||!e?null:e.machines?h.jsx(vs,{}):h.jsx(un,{to:n,replace:!0})}const p3=E.lazy(()=>Oe(()=>import("./ProcessesListPage-ov_HLxz5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url).then(n=>({default:n.ProcessesListPage}))),y3=E.lazy(()=>Oe(()=>import("./ProcessDetailPage-CJ71bxDs.js"),__vite__mapDeps([17,1,2,18,13,19,16,10,4,20,21]),import.meta.url).then(n=>({default:n.ProcessDetailPage}))),g3=E.lazy(()=>Oe(()=>import("./McpOverview-Do31A1jL.js"),__vite__mapDeps([22,1,23,24,25,26,14,13,27,4]),import.meta.url).then(n=>({default:n.McpOverview}))),b3=E.lazy(()=>Oe(()=>import("./McpRunsPage-CTeFFUE2.js"),__vite__mapDeps([28,1,24,25,3,4,29,26,6,7,8,9,16,13,30,14,12,11,15,31]),import.meta.url).then(n=>({default:n.McpRunsPage}))),x3=E.lazy(()=>Oe(()=>import("./McpRunDetailPage-C3mmTl4Y.js"),__vite__mapDeps([32,1,24,14,13,33,34,12,35,19,4,36,15,37]),import.meta.url).then(n=>({default:n.McpRunDetailPage}))),v3=E.lazy(()=>Oe(()=>import("./McpQueryPage-CyT2d0Y_.js"),__vite__mapDeps([38,1,14,13,7,8,9,12,11,15,6,10,30,16,31,3,4,39]),import.meta.url).then(n=>({default:n.McpQueryPage}))),_3=E.lazy(()=>Oe(()=>import("./McpQueryDetailPage-D6FSB1bS.js"),__vite__mapDeps([40,1,14,13,19,39,4,25,41,42,24,2,43,44,45,46,47,48,37,49,35,36]),import.meta.url).then(n=>({default:n.McpQueryDetailPage}))),w3=E.lazy(()=>Oe(()=>import("./EscalationsOverview-BTkFoklS.js"),__vite__mapDeps([50,1,14,13,27,4]),import.meta.url).then(n=>({default:n.EscalationsOverview}))),S3=E.lazy(()=>Oe(()=>import("./AvailableEscalationsPage-CiRxaing.js"),__vite__mapDeps([51,1,4,52,13,53,54,5,55,56,57,21,58,19,7,8,9,59,11,60,12,61,20,16,62,3,31]),import.meta.url).then(n=>({default:n.AvailableEscalationsPage}))),E3=E.lazy(()=>Oe(()=>import("./OperatorDashboard-BwYOXyUV.js"),__vite__mapDeps([63,1,3,4,5,6,52,7,8,9,11,31,59,57,21,13,58,19,60,12,61,20,16,62,55,15]),import.meta.url).then(n=>({default:n.OperatorDashboard}))),O3=E.lazy(()=>Oe(()=>import("./index-EZkdUZwM.js"),__vite__mapDeps([64,1,65,13,66,4,57,21,58,19,54,16,53,5,14,15,20,62,37,67]),import.meta.url).then(n=>({default:n.EscalationDetailPage}))),A3=E.lazy(()=>Oe(()=>import("./WorkflowsOverview-D_wYDqw3.js"),__vite__mapDeps([68,1,14,13,27,4]),import.meta.url).then(n=>({default:n.WorkflowsOverview}))),j3=E.lazy(()=>Oe(()=>import("./index-CnhNCVPc.js"),__vite__mapDeps([69,1,14,13,12,16,65,66,4,57,21,58,19,54,70,46,47]),import.meta.url).then(n=>({default:n.StartWorkflowPage}))),k3=E.lazy(()=>Oe(()=>import("./index-CnhNCVPc.js"),__vite__mapDeps([69,1,14,13,12,16,65,66,4,57,21,58,19,54,70,46,47]),import.meta.url).then(n=>({default:n.DurableInvokePage}))),N3=E.lazy(()=>Oe(()=>import("./WorkflowsDashboard-gH-PGsKq.js"),__vite__mapDeps([71,1,30,29,26,4,3,6,7,8,9,16,13,14,12,11,15,31]),import.meta.url).then(n=>({default:()=>n.WorkflowsDashboard({tier:"durable"})}))),T3=E.lazy(()=>Oe(()=>import("./WorkflowsDashboard-gH-PGsKq.js"),__vite__mapDeps([71,1,30,29,26,4,3,6,7,8,9,16,13,14,12,11,15,31]),import.meta.url).then(n=>({default:()=>n.WorkflowsDashboard({tier:"all"})}))),C3=E.lazy(()=>Oe(()=>import("./YamlWorkflowsPage-DVEVSKKJ.js"),__vite__mapDeps([72,1,25,3,4,14,13,12,8,48,70,19]),import.meta.url).then(n=>({default:n.YamlWorkflowsPage}))),M3=E.lazy(()=>Oe(()=>import("./GraphInvokePage-B4K3mT_c.js"),__vite__mapDeps([73,1,25,14,13,43,45,46,47,44,4,48,70]),import.meta.url).then(n=>({default:n.GraphInvokePage}))),R3=E.lazy(()=>Oe(()=>import("./YamlWorkflowDetailPage-Imob5F8H.js"),__vite__mapDeps([74,1,25,19,70,13,4]),import.meta.url).then(n=>({default:n.YamlWorkflowDetailPage}))),D3=E.lazy(()=>Oe(()=>import("./TasksListPage-Bc3S63_O.js"),__vite__mapDeps([75,1,2,3,4,7,8,9,19,61,49,11,12,13,14,16]),import.meta.url).then(n=>({default:n.TasksListPage}))),L3=E.lazy(()=>Oe(()=>import("./TaskDetailPage-BPL_Zx-L.js"),__vite__mapDeps([76,1,2,19,61,14,13,4]),import.meta.url).then(n=>({default:n.TaskDetailPage}))),sx=E.lazy(()=>Oe(()=>import("./WorkflowExecutionPage-B195cnHb.js"),__vite__mapDeps([77,1,34,12,13,35,19,4,36,2,14,33,15,37]),import.meta.url).then(n=>({default:n.WorkflowExecutionPage}))),q3=E.lazy(()=>Oe(()=>import("./AdminDashboard-CZIeiLe0.js"),__vite__mapDeps([78,1,2,23,18,13,4]),import.meta.url).then(n=>({default:n.AdminDashboard}))),P3=E.lazy(()=>Oe(()=>import("./index-XS-6UjQd.js"),__vite__mapDeps([79,1,7,8,9,12,13,31,3,4,14,80,16]),import.meta.url).then(n=>({default:n.WorkersPage}))),B3=E.lazy(()=>Oe(()=>import("./index-MGquOb7J.js"),__vite__mapDeps([81,1,12,13,82,20,16,14,4,46,47,70,65,66,57,21,58,19,54]),import.meta.url).then(n=>({default:n.WorkflowConfigsPage}))),ix=E.lazy(()=>Oe(()=>import("./index-MGquOb7J.js"),__vite__mapDeps([81,1,12,13,82,20,16,14,4,46,47,70,65,66,57,21,58,19,54]),import.meta.url).then(n=>({default:n.WorkflowConfigDetailPage}))),U3=E.lazy(()=>Oe(()=>import("./index-DvgjLvvn.js"),__vite__mapDeps([83,1,23,8,82,14,13,12,11,3,4,84,45,46,47,48,44,31,19]),import.meta.url).then(n=>({default:n.McpServersPage}))),ax=E.lazy(()=>Oe(()=>import("./index-P22vmuEu.js"),__vite__mapDeps([85,1,23,14,13,41,4]),import.meta.url).then(n=>({default:n.McpServerDetailPage}))),z3=E.lazy(()=>Oe(()=>import("./index-C1WJs6IZ.js"),__vite__mapDeps([86,1,3,4,7,8,9,11,12,13,82,31,14,20,47,49,87,88,33]),import.meta.url).then(n=>({default:n.UsersPage}))),I3=E.lazy(()=>Oe(()=>import("./RolesPage-DvO5DJWY.js"),__vite__mapDeps([89,1,12,13,14,20,4]),import.meta.url).then(n=>({default:n.RolesPage}))),$3=E.lazy(()=>Oe(()=>import("./RoleDetailPage-CmfWwjtG.js"),__vite__mapDeps([90,1,91,82,13,4]),import.meta.url).then(n=>({default:n.RoleDetailPage}))),H3=E.lazy(()=>Oe(()=>import("./PersonasPage-BS8aBeOv.js"),__vite__mapDeps([92,1,87,12,13,14,20,4,5]),import.meta.url).then(n=>({default:n.PersonasPage}))),F3=E.lazy(()=>Oe(()=>import("./PersonaDetailPage-CkrKJLNv.js"),__vite__mapDeps([93,1,87,20,13,88,91,82,4]),import.meta.url).then(n=>({default:n.PersonaDetailPage}))),G3=E.lazy(()=>Oe(()=>import("./EscalationSchemaPage-DuOje0Ke.js"),__vite__mapDeps([94,1,65,13,66,4,57,21,58,19,54,16]),import.meta.url).then(n=>({default:n.EscalationSchemaPage}))),V3=E.lazy(()=>Oe(()=>import("./PortalPage-PEBk6VVu.js"),__vite__mapDeps([95,1,9,56,13,57,21,58,19,4,7,8,59,11,60,12,61,20,16,62]),import.meta.url).then(n=>({default:n.PortalPage}))),Y3=E.lazy(()=>Oe(()=>import("./EscalationListSchemaPage-D2aa_arC.js"),__vite__mapDeps([96,1,13,4]),import.meta.url).then(n=>({default:n.EscalationListSchemaPage}))),K3=E.lazy(()=>Oe(()=>import("./ScanCodesPage-Dbaud0fc.js"),__vite__mapDeps([97,1,98,14,13,4]),import.meta.url).then(n=>({default:n.ScanCodesPage}))),J3=E.lazy(()=>Oe(()=>import("./ScanSchemeDetailPage-BfDw_Eke.js"),__vite__mapDeps([99,1,82,14,13,98,4]),import.meta.url).then(n=>({default:n.ScanSchemeDetailPage}))),Q3=E.lazy(()=>Oe(()=>import("./ScanStationPage-DE-zJTiD.js"),__vite__mapDeps([100,1,13,67,57,21,66,4]),import.meta.url).then(n=>({default:n.ScanStationPage}))),X3=E.lazy(()=>Oe(()=>import("./index-B_z-OFwk.js"),__vite__mapDeps([101,1,14,13,54,4]),import.meta.url).then(n=>({default:n.MaintenancePage}))),ox=E.lazy(()=>Oe(()=>import("./OperationsPage-BUtQP5dm.js").then(n=>n.O),__vite__mapDeps([102,1,60,13,4,14,9]),import.meta.url).then(n=>({default:n.OperationsPage}))),W3=E.lazy(()=>Oe(()=>import("./index-Czb9O4Ns.js"),__vite__mapDeps([103,1,18,13,12,3,4,29,26,42,80,7,8,9,31]),import.meta.url).then(n=>({default:n.ControlPlanePage}))),Z3=E.lazy(()=>Oe(()=>import("./index-BOuGMe78.js"),__vite__mapDeps([104,1,36,13,3,4,29,26,6,7,8,9,11,12,14,15]),import.meta.url).then(n=>({default:n.StreamMessagesPage}))),e5=E.lazy(()=>Oe(()=>import("./CredentialsPage-pOyC1GfC.js"),__vite__mapDeps([105,1,14,13,49,82,4]),import.meta.url).then(n=>({default:n.CredentialsPage}))),t5=E.lazy(()=>Oe(()=>import("./ConnectedAppsPage-D94kx0v3.js"),__vite__mapDeps([106,1,14,13,49,82,4]),import.meta.url).then(n=>({default:n.ConnectedAppsPage}))),n5=E.lazy(()=>Oe(()=>import("./index-IedmSPp1.js"),__vite__mapDeps([107,1,4,14,13,12,15,6,8,108,49]),import.meta.url).then(n=>({default:n.FilesPage}))),r5=E.lazy(()=>Oe(()=>import("./index-BXKDpLk5.js"),__vite__mapDeps([109,1,14,13,12,15,11,8,108,49,110,41,4]),import.meta.url).then(n=>({default:n.KnowledgePage}))),s5=E.lazy(()=>Oe(()=>import("./LinesPage-D9TRHWyt.js"),__vite__mapDeps([111,1,112,7,8,9,12,13,11,14,5,3,4]),import.meta.url).then(n=>({default:n.LinesPage}))),i5=E.lazy(()=>Oe(()=>import("./LinePage-CuHHHwBy.js"),__vite__mapDeps([113,1,112,14,13,60,4,12]),import.meta.url).then(n=>({default:n.LinePage}))),a5=E.lazy(()=>Oe(()=>import("./HomePage-BN5wXq6V.js"),__vite__mapDeps([114,1,24,26,20,13,16,15,102,60,4,14,9,52]),import.meta.url).then(n=>({default:n.HomePage}))),o5=E.lazy(()=>Oe(()=>import("./AgentsPage-Cs4IKeec.js"),__vite__mapDeps([115,1,116,3,4,6,7,8,9,11,12,13,14,15]),import.meta.url).then(n=>({default:n.AgentsPage}))),l5=E.lazy(()=>Oe(()=>import("./AgentDetailPage-BWAlHQfB.js"),__vite__mapDeps([117,1,116,118,13,16,4]),import.meta.url).then(n=>({default:n.AgentDetailPage}))),lx=E.lazy(()=>Oe(()=>import("./AgentConfigPage-DO3ATfCU.js"),__vite__mapDeps([119,1,116,118,13,14,110,45,46,47,25,120,121,16,4]),import.meta.url).then(n=>({default:n.AgentConfigPage}))),c5=E.lazy(()=>Oe(()=>import("./CapabilitiesPage-BLMMV3-W.js"),__vite__mapDeps([122,1,120,84,23,45,46,47,13,48,4,44,14,12]),import.meta.url).then(n=>({default:n.CapabilitiesPage}))),u5=E.lazy(()=>Oe(()=>import("./TopicsPage-lQ9HNzOq.js"),__vite__mapDeps([123,1,121,14,13,12,4]),import.meta.url).then(n=>({default:n.TopicsPage}))),f5=E.lazy(()=>Oe(()=>import("./TopicDetailPage-BlUP0bb1.js"),__vite__mapDeps([124,1,121,15,13,4]),import.meta.url).then(n=>({default:n.TopicDetailPage})));function h5(){return h.jsxs("div",{className:"animate-pulse space-y-4",children:[h.jsx("div",{className:"h-8 bg-surface-sunken rounded w-48"}),h.jsx("div",{className:"h-40 bg-surface-sunken rounded"})]})}function Se({children:n}){return h.jsx(E.Suspense,{fallback:h.jsx(h5,{}),children:h.jsx("div",{className:"animate-page-enter flex flex-col flex-1 min-h-0",children:n})})}const Zv=new hS({defaultOptions:{queries:{staleTime:1e4,retry:(n,e)=>e instanceof Error&&e.message==="Session expired"?!1:n<1}}});window.addEventListener("auth:unauthorized",()=>{Zv.clear(),sessionStorage.removeItem("lt_token"),sessionStorage.removeItem("lt_credentials"),sessionStorage.removeItem("lt_user_info");const n=window.__LT_BASE__||"",e=`${n}/login`;if(window.location.pathname!==e){const s=window.location.pathname+window.location.search,i=n&&s.startsWith(n)?s.slice(n.length)||"/":s;window.location.href=`${e}?returnTo=${encodeURIComponent(i)}`}});const d5=pS([{path:"/login",element:h.jsx(t3,{})},{path:"/connect/anthropic",element:h.jsx(rx,{})},{path:"/connect/:provider",element:h.jsx(rx,{})},{path:"/oauth/consent",element:h.jsx(u3,{})},{path:"/",element:h.jsx(WC,{}),children:[{index:!0,element:h.jsx(Se,{children:h.jsx(a5,{})})},{path:"processes/all",element:h.jsx(Se,{children:h.jsx(p3,{})})},{path:"processes/detail/:originId",element:h.jsx(Se,{children:h.jsx(y3,{})})},{path:"credentials",element:h.jsx(Se,{children:h.jsx(e5,{})})},{path:"connected-apps",element:h.jsx(Se,{children:h.jsx(t5,{})})},{path:"connections",element:h.jsx(un,{to:"/credentials",replace:!0})},{path:"escalations",element:h.jsx(Se,{children:h.jsx(w3,{})})},{path:"escalations/available",element:h.jsx(Se,{children:h.jsx(S3,{})})},{path:"escalations/queue",element:h.jsx(Se,{children:h.jsx(E3,{})})},{path:"escalations/detail/:id",element:h.jsx(Se,{children:h.jsx(O3,{})})},{path:"portal/:role/:portal?",element:h.jsx(Se,{children:h.jsx(V3,{})})},{path:"scan/station",element:h.jsx(Se,{children:h.jsx(Q3,{})})},{path:"capabilities",element:h.jsx(Se,{children:h.jsx(c5,{})})},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"agents",element:h.jsx(Se,{children:h.jsx(o5,{})})},{path:"agents/new",element:h.jsx(Se,{children:h.jsx(lx,{})})},{path:"agents/:id",element:h.jsx(Se,{children:h.jsx(l5,{})})},{path:"agents/:id/edit",element:h.jsx(Se,{children:h.jsx(lx,{})})},{path:"topics",element:h.jsx(Se,{children:h.jsx(u5,{})})},{path:"topics/:topic",element:h.jsx(Se,{children:h.jsx(f5,{})})}]},{element:h.jsx(f3,{}),children:[{path:"workflows/start",element:h.jsx(Se,{children:h.jsx(j3,{})})},{path:"workflows/durable/invoke",element:h.jsx(Se,{children:h.jsx(k3,{})})}]},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"workflows",element:h.jsx(Se,{children:h.jsx(A3,{})})},{path:"workflows/executions",element:h.jsx(Se,{children:h.jsx(T3,{})})},{path:"workflows/durable/executions",element:h.jsx(Se,{children:h.jsx(N3,{})})},{path:"workflows/durable/executions/:workflowId",element:h.jsx(Se,{children:h.jsx(sx,{})})},{path:"workflows/tasks",element:h.jsx(Se,{children:h.jsx(D3,{})})},{path:"workflows/tasks/detail/:id",element:h.jsx(Se,{children:h.jsx(L3,{})})},{path:"workflows/executions/:workflowId",element:h.jsx(Se,{children:h.jsx(sx,{})})},{path:"workflows/cron",element:h.jsx(un,{to:"/workflows/start?mode=schedule",replace:!0})},{path:"workflows/workers",element:h.jsx(Se,{children:h.jsx(P3,{})})},{path:"workflows/registry",element:h.jsx(Se,{children:h.jsx(B3,{})})},{path:"workflows/registry/new",element:h.jsx(Se,{children:h.jsx(ix,{})})},{path:"workflows/registry/:workflowType",element:h.jsx(Se,{children:h.jsx(ix,{})})}]},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"mcp/workflows",element:h.jsx(Se,{children:h.jsx(C3,{})})},{path:"mcp/workflows/invoke",element:h.jsx(Se,{children:h.jsx(M3,{})})},{path:"mcp/workflows/:id",element:h.jsx(Se,{children:h.jsx(R3,{})})},{path:"mcp/executions",element:h.jsx(Se,{children:h.jsx(b3,{})})},{path:"mcp/executions/:jobId",element:h.jsx(Se,{children:h.jsx(x3,{})})},{path:"files",element:h.jsx(Se,{children:h.jsx(n5,{})})},{path:"knowledge",element:h.jsx(Se,{children:h.jsx(r5,{})})},{element:h.jsx(h3,{}),children:[{path:"mcp",element:h.jsx(Se,{children:h.jsx(g3,{})})},{path:"mcp/queries",element:h.jsx(Se,{children:h.jsx(v3,{})})},{path:"mcp/queries/:workflowId",element:h.jsx(Se,{children:h.jsx(_3,{})})},{path:"mcp/tools",element:h.jsx(un,{to:"/mcp/servers",replace:!0})},{path:"mcp/servers",element:h.jsx(Se,{children:h.jsx(U3,{})})},{path:"mcp/servers/new",element:h.jsx(Se,{children:h.jsx(ax,{})})},{path:"mcp/servers/:serverId",element:h.jsx(Se,{children:h.jsx(ax,{})})}]}]},{path:"pace",element:h.jsx(Se,{children:h.jsx(ox,{})})},{path:"trends",element:h.jsx(Se,{children:h.jsx(ox,{})})},{path:"operations",element:h.jsx(un,{to:"/pace",replace:!0})},{element:h.jsx(Ki,{roleTypes:["admin","superadmin"],roleNames:["engineer"]}),children:[{element:h.jsx(m3,{}),children:[{path:"lines",element:h.jsx(Se,{children:h.jsx(s5,{})})},{path:"lines/:siteId/:lineId",element:h.jsx(Se,{children:h.jsx(i5,{})})}]}]},{element:h.jsx(Ki,{roleTypes:["admin","superadmin"],roleNames:["engineer"]}),children:[{path:"admin",element:h.jsx(Se,{children:h.jsx(q3,{})})},{path:"admin/users",element:h.jsx(Se,{children:h.jsx(z3,{})})},{path:"admin/escalation-chains",element:h.jsx(un,{to:"/admin/roles",replace:!0})},{path:"admin/roles",element:h.jsx(Se,{children:h.jsx(I3,{})})},{path:"admin/roles/:role",element:h.jsx(Se,{children:h.jsx($3,{})})},{path:"admin/roles/:role/schema",element:h.jsx(Se,{children:h.jsx(G3,{})})},{path:"admin/roles/:role/list-schema",element:h.jsx(Se,{children:h.jsx(Y3,{})})},{path:"admin/scan-codes",element:h.jsx(Se,{children:h.jsx(K3,{})})},{path:"admin/scan-codes/:version",element:h.jsx(Se,{children:h.jsx(J3,{})})},{path:"admin/personas",element:h.jsx(Se,{children:h.jsx(H3,{})})},{path:"admin/personas/:key",element:h.jsx(Se,{children:h.jsx(F3,{})})}]},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"admin/bots",element:h.jsx(un,{to:"/admin/users?tab=service-accounts",replace:!0})},{element:h.jsx(d3,{flag:"dbMaintenance"}),children:[{path:"admin/maintenance",element:h.jsx(Se,{children:h.jsx(X3,{})})}]},{path:"admin/controlplane",element:h.jsx(Se,{children:h.jsx(W3,{})})},{path:"admin/streams",element:h.jsx(Se,{children:h.jsx(Z3,{})})}]}]}],{basename:window.__LT_BASE__||"/"});function m5(){return h.jsx(dS,{client:Zv,children:h.jsx(lE,{children:h.jsx(hA,{children:h.jsx(yS,{router:d5})})})})}Ev(Sv());const Vm=document.createElement("link");Vm.rel="stylesheet";Vm.href=`${Yt}/api/settings/custom.css`;document.head.appendChild(Vm);WS.createRoot(document.getElementById("root")).render(h.jsx(E.StrictMode,{children:h.jsx(m5,{})}));export{Lt as $,Qk as A,PM as B,Gm as C,PC as D,G5 as E,Vv as F,BM as G,Lm as H,LT as I,bC as J,qT as K,GT as L,nT as M,Wt as N,tv as O,z5 as P,Cm as Q,rM as R,aC as S,sM as T,iM as U,aM as V,oM as W,cM as X,$j as Y,Mu as Z,F5 as _,VM as a,M5 as a$,nm as a0,IT as a1,C5 as a2,HM as a3,Bm as a4,ra as a5,xs as a6,Q5 as a7,R5 as a8,pv as a9,KM as aA,YM as aB,Hv as aC,JM as aD,GM as aE,bv as aF,hM as aG,WM as aH,FM as aI,eR as aJ,ZM as aK,S5 as aL,E5 as aM,k5 as aN,N5 as aO,O5 as aP,A5 as aQ,j5 as aR,L5 as aS,P5 as aT,q5 as aU,zM as aV,T5 as aW,Tm as aX,B5 as aY,$T as aZ,U5 as a_,jT as aa,Ck as ab,TM as ac,Wk as ad,dc as ae,eM as af,tM as ag,Pu as ah,Xk as ai,GN as aj,UM as ak,jv as al,Cu as am,zm as an,Ij as ao,wA as ap,Y5 as aq,_M as ar,K5 as as,nM as at,lM as au,uv as av,v5 as aw,zg as ax,_5 as ay,XM as az,pM as b,AM as b0,ks as b1,Oo as b2,tR as b3,qx as b4,n3 as b5,EM as b6,Yt as b7,wd as b8,w5 as b9,MM as bA,DM as bB,ET as bC,$m as bD,yk as bE,Zk as bF,ke as bG,Yd as bH,CM as bI,$5 as bJ,gM as bK,rT as bL,nR as bM,rR as bN,Wv as bO,sR as bP,iR as bQ,qj as bR,iC as bS,jm as bT,nv as bU,wM as bV,BT as ba,$M as bb,yv as bc,K1 as bd,kv as be,vM as bf,km as bg,bM as bh,kM as bi,Cj as bj,jM as bk,Ik as bl,zk as bm,ak as bn,Z5 as bo,W5 as bp,fr as bq,rv as br,OM as bs,ta as bt,D5 as bu,Fk as bv,RM as bw,vk as bx,LM as by,qM as bz,Hn as c,NM as d,uM as e,gk as f,xv as g,rk as h,I5 as i,nn as j,An as k,fM as l,ue as m,QM as n,dM as o,mM as p,V5 as q,J5 as r,X5 as s,yM as t,SM as u,H5 as v,Fm as w,IM as x,Xx as y,xM as z};
67
- //# sourceMappingURL=index-CXNh7LuG.js.map
66
+ `)[0];return h.jsxs("div",{className:"border-b border-accent/25 bg-accent/10",children:[h.jsxs("div",{className:"flex items-center gap-2 px-4 py-1.5",children:[h.jsx("span",{className:"text-2xs font-semibold uppercase tracking-widest text-accent",children:"Notice"}),h.jsxs("button",{type:"button",onClick:()=>c(v?null:x.id),className:"flex items-center gap-1.5 text-xs text-text-primary hover:text-accent transition-colors min-w-0",children:[h.jsx("span",{className:"truncate",children:_}),v?h.jsx(px,{className:"w-3 h-3 shrink-0",strokeWidth:1.5}):h.jsx(im,{className:"w-3 h-3 shrink-0",strokeWidth:1.5})]}),h.jsx("div",{className:"flex-1"}),h.jsx("button",{type:"button",onClick:()=>b(x.id),className:"icon-link",title:"Dismiss","aria-label":`Dismiss ${_}`,children:h.jsx(en,{className:"w-3.5 h-3.5",strokeWidth:1.5})})]}),v&&h.jsx("div",{className:"px-4 pb-3 text-sm text-text-secondary max-w-measure",children:h.jsx(Pu,{content:YC(x.body)})})]},x.id)})]})}function QC(){var ae,F;const{isBuilder:n,isOps:e,viewAs:s}=tv(),{canSeePaceBoard:i}=nv();EA();const{data:o}=Hn();Lj((ae=o==null?void 0:o.display)==null?void 0:ae.timeZone);const c=Xx(),m=c!==null?c:!!((F=o==null?void 0:o.ai)!=null&&F.enabled),p=!!(o!=null&&o.machines),{collapsed:g,toggle:u}=Rm(),[d,b]=E.useState(!1),[x,v]=E.useState(!1),[_,S]=E.useState(!1),[C,B]=E.useState(()=>window.location.hash.startsWith("#docs")),q=tn(),ne=E.useRef(null),{kiosk:te,homePath:M}=Cm(),z=te||Kj(q.pathname);return E.useEffect(()=>{const U=ne.current;U&&(U.classList.remove("animate-page-in"),U.offsetWidth,U.classList.add("animate-page-in"))},[q.pathname]),E.useEffect(()=>{const U=()=>{window.location.hash.startsWith("#docs")&&B(!0)};return window.addEventListener("hashchange",U),()=>window.removeEventListener("hashchange",U)},[]),te&&M&&!Wj(q.pathname,q.search)?h.jsx(un,{to:M,replace:!0}):h.jsxs("div",{className:"h-screen bg-surface flex flex-col",children:[h.jsx(NT,{onToggleEventFeed:()=>b(U=>!U),onToggleDocs:()=>B(U=>!U),onToggleNav:z?void 0:()=>v(U=>!U)}),h.jsx(JC,{}),h.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[!z&&h.jsxs("aside",{className:`${g?"w-16":"w-60"} shrink-0 bg-surface-raised border-r border-surface-border hidden lg:flex flex-col transition-[width] duration-200 ease-out overflow-hidden relative z-20`,children:[h.jsx("nav",{className:"flex-1 px-3 pt-[36px] pb-4 space-y-2 overflow-y-auto overflow-x-hidden",children:h.jsx(Fv,{aiEnabled:m,isBuilder:n,isOps:e,viewAs:s,canSeePaceBoard:i,showLines:p})}),h.jsx("button",{onClick:u,className:`shrink-0 py-3 text-text-tertiary hover:text-text-secondary transition-colors duration-150 ${g?"flex justify-center":"flex items-center px-7"}`,"aria-label":g?"Expand sidebar":"Collapse sidebar",children:g?h.jsx(VS,{className:"w-4 h-4 text-accent-muted",strokeWidth:1.5}):h.jsx(YS,{className:"w-4 h-4 text-accent-muted",strokeWidth:1.5})}),!g&&(o==null?void 0:o.environment)&&h.jsxs("div",{className:"shrink-0 px-5 pb-3 text-2xs leading-tight text-text-tertiary whitespace-nowrap overflow-hidden text-ellipsis",title:`long-tail v${o.environment.longTailVersion} · HotMesh v${o.environment.hotmeshVersion} · Node ${o.environment.nodeVersion} · ${o.environment.nodeEnv}`,children:["long-tail v",o.environment.longTailVersion,h.jsx("span",{className:"mx-1 text-surface-border",children:"·"}),"HotMesh v",o.environment.hotmeshVersion]})]}),h.jsx("main",{className:"flex-1 min-w-0 overflow-y-auto",children:h.jsx("div",{ref:ne,className:"w-full px-page-x py-8 pb-16 animate-page-in h-full flex flex-col @container",children:h.jsx(vs,{})})}),h.jsx(XC,{})]}),!z&&h.jsx(nC,{open:x,onClose:()=>v(!1),aiEnabled:m,isBuilder:n,isOps:e,viewAs:s,canSeePaceBoard:i,showLines:p}),h.jsx(_C,{open:d,onToggle:()=>b(U=>!U),configOpen:_,onToggleConfig:()=>S(U=>!U)}),h.jsx(CC,{open:C,onClose:()=>{B(!1),history.replaceState(null,"",window.location.pathname+window.location.search)}}),m&&h.jsx(qC,{}),m&&h.jsx($C,{}),h.jsx(GC,{})]})}function XC(){const{node:n,width:e,open:s}=Lm();return h.jsx(rk,{open:s,width:e,className:"border-l border-surface-border bg-surface-raised",children:n})}function WC(){const{isAuthenticated:n}=Lt(),e=tn();return n?h.jsx(ek,{children:h.jsx(nk,{children:h.jsx(LC,{children:h.jsx(_A,{children:h.jsx(eN,{children:h.jsx(QC,{})})})})})}):h.jsx(un,{to:"/login",state:{from:e.pathname},replace:!0})}function Wv({provider:n,className:e="w-5 h-5"}){switch(n){case"google":return h.jsxs("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:[h.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"}),h.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),h.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),h.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]});case"github":return h.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:h.jsx("path",{d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"})});case"microsoft":return h.jsxs("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:[h.jsx("path",{d:"M3 3h8.5v8.5H3z",fill:"#F25022"}),h.jsx("path",{d:"M12.5 3H21v8.5h-8.5z",fill:"#7FBA00"}),h.jsx("path",{d:"M3 12.5h8.5V21H3z",fill:"#00A4EF"}),h.jsx("path",{d:"M12.5 12.5H21V21h-8.5z",fill:"#FFB900"})]});case"anthropic":return h.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:h.jsx("path",{d:"M13.827 3.52h3.603L24 20.48h-3.603l-6.57-16.96zm-7.258 0h3.767L16.906 20.48h-3.674l-1.343-3.461H6.396l-1.34 3.461H1.5l5.07-16.96zm2.327 5.14l-2.065 5.326h4.108l-2.043-5.326z"})});default:return h.jsxs("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[h.jsx("circle",{cx:"12",cy:"12",r:"10"}),h.jsx("path",{d:"M12 8v4l3 3"})]})}}async function ZC(){return ue("/auth/oauth/providers")}async function e3(n,e){const s=e?`?label=${encodeURIComponent(e)}`:"";return ue(`/auth/oauth/connections/${n}${s}`,{method:"DELETE"})}function nR(){return Le({queryKey:["oauth-connections"],queryFn:()=>ue("/auth/oauth/connections")})}function rR(){const n=qe();return Ie({mutationFn:({provider:e,label:s})=>e3(e,s),onSuccess:()=>{n.invalidateQueries({queryKey:["oauth-connections"]})}})}function t3(){var ae;const{login:n,isAuthenticated:e}=Lt(),s=ni(),i=tn(),o=new URLSearchParams(i.search),c=o.get("token"),m=o.get("error"),p=((ae=i.state)==null?void 0:ae.from)??o.get("returnTo")??"/",g=E.useRef(!1);c&&!g.current&&(g.current=!0,n(c,void 0,{displayName:o.get("displayName"),username:o.get("username")}));const[u,d]=E.useState(""),[b,x]=E.useState(""),[v,_]=E.useState(m||""),[S,C]=E.useState(!1),[B,q]=E.useState(!!c),[ne,te]=E.useState([]),M=E.useRef(!1);if(E.useEffect(()=>{c||M.current||(M.current=!0,(async()=>{var F,U,D,Q;try{const W=await lm().catch(()=>null);if(!((F=W==null?void 0:W.auth)!=null&&F.sso))return;const he=await fetch(`${Yt}/api/auth/sso`,{method:"POST"});if(!he.ok){_("Host authentication required — please log in to your organization first");return}const Ee=await he.json();Ee.token&&((U=W.auth)!=null&&U.ssoLogoutUrl&&sessionStorage.setItem("lt_sso_logout_url",W.auth.ssoLogoutUrl),q(!0),n(Ee.token,void 0,{displayName:(D=Ee.user)==null?void 0:D.display_name,username:(Q=Ee.user)==null?void 0:Q.external_id}))}catch{}})())},[]),E.useEffect(()=>{c||ZC().then(te).catch(()=>{})},[]),E.useEffect(()=>{if(!B)return;const F=setTimeout(()=>s(p,{replace:!0}),1500);return()=>clearTimeout(F)},[B]),e&&!B)return h.jsx(un,{to:p,replace:!0});const z=async F=>{var U,D;if(F.preventDefault(),_(""),!u.trim()||!b){_("Username and password are required");return}C(!0);try{const Q=await fetch(`${Yt}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:u.trim(),password:b})}),W=await Q.json();if(!Q.ok){_(W.error||"Login failed");return}q(!0),n(W.token,{username:u.trim(),password:b},{displayName:(U=W.user)==null?void 0:U.display_name,username:(D=W.user)==null?void 0:D.external_id})}catch{_("Unable to connect to server")}finally{C(!1)}};return h.jsx("div",{className:"min-h-screen bg-surface flex items-center justify-center overflow-hidden",children:h.jsxs("div",{className:"w-full max-w-md p-10",children:[h.jsx("div",{className:`mb-10 transition-all duration-[1500ms] ease-in ${B?"translate-x-[120vw] -translate-y-[60vh] scale-[3] opacity-0":""}`,children:h.jsx(Ru,{size:"lg",hideLabel:B})}),h.jsxs("form",{onSubmit:z,className:`space-y-5 transition-opacity duration-300 ${B?"opacity-0":""}`,children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"username",className:"block text-sm font-medium text-text-secondary mb-2",children:"Username"}),h.jsx("input",{id:"username",type:"text",value:u,onChange:F=>d(F.target.value),className:"input",placeholder:"Enter your username",autoFocus:!B,autoComplete:"username"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-text-secondary mb-2",children:"Password"}),h.jsx("input",{id:"password",type:"password",value:b,onChange:F=>x(F.target.value),className:"input",placeholder:"Enter your password",autoComplete:"current-password"})]}),v&&h.jsx("p",{className:"text-sm text-status-error",children:v}),h.jsx("button",{type:"submit",className:"btn-primary w-full",disabled:S||B,children:S?"Signing in...":"Sign In"}),ne.length>0&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"flex items-center gap-3 mt-6",children:[h.jsx("div",{className:"flex-1 h-px bg-border"}),h.jsx("span",{className:"text-xs text-text-tertiary",children:"or continue with"}),h.jsx("div",{className:"flex-1 h-px bg-border"})]}),h.jsx("div",{className:"space-y-2",children:ne.filter(F=>F.provider!=="anthropic").map(F=>h.jsxs("a",{href:`${Yt}/api/auth/oauth/${F.provider}?returnTo=${encodeURIComponent(p)}`,className:"btn-secondary w-full flex items-center justify-center gap-2",children:[h.jsx(Wv,{provider:F.provider}),"Sign in with ",F.name]},F.provider))})]})]})]})})}function rx(){const{isAuthenticated:n}=Lt(),e=ni(),s=tn(),i=new URLSearchParams(s.search),o=i.get("state")||"";E.useEffect(()=>{n||e(`/login?returnTo=${encodeURIComponent(s.pathname+s.search)}`)},[n]);const[c,m]=E.useState(""),[p,g]=E.useState(i.get("label")||"default"),[u,d]=E.useState(""),[b,x]=E.useState(!1),v=c.trim().startsWith("sk-ant-oat"),_=c.trim().startsWith("sk-ant-api"),S=C=>{C.preventDefault();const B=c.trim();if(!B){d("A token or API key is required");return}if(!B.startsWith("sk-ant-")){d('Invalid format. Must start with "sk-ant-oat" (OAuth token) or "sk-ant-api" (API key)');return}x(!0),d("");const q=`${Yt}/api/auth/oauth/anthropic/callback?code=${encodeURIComponent(B)}&state=${encodeURIComponent(o)}`;window.location.href=q};return h.jsx("div",{className:"min-h-screen bg-surface flex items-center justify-center",children:h.jsxs("div",{className:"w-full max-w-md p-10",children:[h.jsx("div",{className:"mb-10",children:h.jsx(Ru,{size:"lg"})}),h.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[h.jsx(Wv,{provider:"anthropic",className:"w-6 h-6"}),h.jsx("h2",{className:"heading-3",children:"Connect Anthropic"})]}),h.jsx("p",{className:"text-sm text-text-secondary mb-4",children:"Connect your Anthropic account so Claude Code tasks run under your credentials. Your token is encrypted at rest."}),h.jsxs("form",{onSubmit:S,className:"space-y-5",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"token",className:"block text-sm font-medium text-text-secondary mb-2",children:"OAuth Token or API Key"}),h.jsx("input",{id:"token",type:"password",value:c,onChange:C=>m(C.target.value),className:"input",placeholder:"sk-ant-oat01-... or sk-ant-api03-...",autoFocus:!0,autoComplete:"off"}),v&&h.jsx("p",{className:"text-xs text-status-success mt-1",children:"OAuth token detected — uses your Claude subscription (flat rate)"}),_&&h.jsx("p",{className:"text-xs text-status-warning mt-1",children:"API key detected — billed per-token from your Anthropic API account"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"label",className:"block text-sm font-medium text-text-secondary mb-2",children:"Label"}),h.jsx("input",{id:"label",type:"text",value:p,onChange:C=>g(C.target.value.replace(/\s+/g,"-").toLowerCase()),className:"input",placeholder:"default",autoComplete:"off"}),h.jsx("p",{className:"text-xs text-text-tertiary mt-1",children:'A name for this credential. Use different labels to store multiple credentials (e.g., "subscription", "api-batch").'})]}),u&&h.jsx("p",{className:"text-sm text-status-error",children:u}),h.jsx("button",{type:"submit",className:"btn-primary w-full",disabled:b,children:b?"Validating...":"Connect"}),h.jsx("a",{href:"/",className:"block text-center text-sm text-text-tertiary hover:text-text-secondary",children:"Cancel"})]}),h.jsxs("div",{className:"mt-6 space-y-3 text-xs text-text-tertiary",children:[h.jsxs("div",{children:[h.jsx("span",{className:"font-medium text-text-secondary",children:"Recommended:"})," ","Run"," ",h.jsx("code",{className:"px-1 py-0.5 bg-surface-sunken rounded text-2xs",children:"claude setup-token"})," ","in your terminal to generate an OAuth token that uses your subscription."]}),h.jsxs("div",{children:[h.jsx("span",{className:"font-medium text-text-secondary",children:"Alternative:"})," ","Use an API key from"," ",h.jsx("a",{href:"https://console.anthropic.com/settings/keys",target:"_blank",rel:"noopener noreferrer",className:"text-accent-secondary hover:underline",children:"console.anthropic.com"})," ","(billed per-token)."]})]})]})})}function n3({items:n,columns:e=1}){if(n.length===0)return null;const s=e>=2&&n.length>1?"grid-cols-1 @dict-inline:grid-cols-[max-content_1fr] @dict-pairs:grid-cols-[max-content_1fr_max-content_1fr]":"grid-cols-1 @dict-inline:grid-cols-[max-content_1fr]";return h.jsx("div",{className:"@container",children:h.jsx("dl",{className:`grid ${s} items-baseline gap-x-6 @dict-pairs:gap-x-8 gap-y-1.5`,children:n.map(({key:i,label:o,value:c})=>h.jsxs(E.Fragment,{children:[h.jsx("dt",{className:"text-2xs font-semibold uppercase tracking-wide text-text-secondary mt-2 first:mt-0 @dict-inline:mt-0",children:o}),h.jsx("dd",{className:"text-sm text-text-primary break-words whitespace-pre-wrap min-w-0","data-field-key":i,children:r3(c)})]},i))})})}function r3(n){return n==null||n===""?"—":typeof n=="boolean"?n?"Yes":"No":typeof n=="object"?JSON.stringify(n):String(n)}function s3(n){return Le({queryKey:["oauth-client",n],queryFn:()=>ue(`/oauth/clients/${encodeURIComponent(n)}`),enabled:!!n,retry:!1})}function i3(n){return Le({queryKey:["oauth-presets"],queryFn:()=>ue("/oauth/presets"),enabled:n})}function a3(){return Ie({mutationFn:n=>ue(n.preset?"/oauth/authorize":"/oauth/deny",{method:"POST",body:JSON.stringify(n.preset?{...n.request,preset:n.preset}:n.request)})})}function sR(){return Le({queryKey:["oauth-grants"],queryFn:()=>ue("/oauth/grants")})}function iR(){const n=qe();return Ie({mutationFn:e=>ue(`/oauth/grants/${encodeURIComponent(e)}`,{method:"DELETE"}),onSuccess:()=>n.invalidateQueries({queryKey:["oauth-grants"]})})}const o3=["client_id","redirect_uri","code_challenge","code_challenge_method","response_type","state","scope","resource"],yd={read_only:{action:"Allow read-only",effect:"Reads what you can read and runs workflows marked read-safe."},just_me:{action:"Allow as me",effect:"Acts with your full rights: claims, resolves, invokes, and administers wherever you may."}};function l3(n){const e=new URLSearchParams(n),s=o3.map(o=>[o,e.get(o)??void 0]),i=Object.fromEntries(s);return!i.client_id||!i.redirect_uri||!i.code_challenge?null:i}function c3(n){try{return new URL(n).host}catch{return n}}function u3(){var b,x,v;const{isAuthenticated:n,user:e}=Lt(),s=ni(),i=tn(),o=E.useMemo(()=>l3(i.search),[i.search]);E.useEffect(()=>{n||s(`/login?returnTo=${encodeURIComponent(i.pathname+i.search)}`,{replace:!0})},[n]);const c=s3(n&&o?o.client_id:null),m=i3(n&&!!o),p=a3(),g=_=>{o&&p.mutate({request:o,preset:_},{onSuccess:({redirect:S})=>window.location.assign(S)})};if(!n)return null;const u=!o||c.isError,d=((b=c.data)==null?void 0:b.client_name)||"An app";return h.jsx("div",{className:"min-h-screen bg-surface flex items-center justify-center",children:h.jsxs("div",{className:"w-full max-w-lg p-10",children:[h.jsx("div",{className:"mb-10",children:h.jsx(Ru,{size:"lg"})}),u?h.jsxs("div",{role:"alert",children:[h.jsx("h2",{className:"heading-3 mb-3",children:"Sign-in link not valid"}),h.jsx("p",{className:"text-sm text-text-secondary",children:"Start the connection again from the app."})]}):h.jsxs(h.Fragment,{children:[h.jsxs("h2",{className:"heading-2 mb-2",children:["Connect ",d]}),h.jsxs("p",{className:"text-sm text-text-secondary mb-6",children:["Pick how much ",d," may do as you. Disconnect it any time under Connected apps."]}),h.jsx("div",{className:"mb-8",children:h.jsx(n3,{items:[{key:"app",label:"App",value:d},{key:"account",label:"Account",value:(e==null?void 0:e.displayName)||(e==null?void 0:e.username)||(e==null?void 0:e.userId)||null},{key:"returns-to",label:"Returns to",value:c3(o.redirect_uri)},{key:"deployment",label:"Deployment",value:window.location.host}]})}),h.jsx("dl",{className:"space-y-3 mb-8",children:(((x=m.data)==null?void 0:x.presets)??[]).map(_=>h.jsxs("div",{children:[h.jsx("dt",{className:"text-sm font-medium text-text-primary",children:yd[_].action}),h.jsx("dd",{className:"text-sm text-text-secondary",children:yd[_].effect})]},_))}),p.isError&&h.jsx("p",{className:"text-sm text-status-error mb-4",role:"alert",children:p.error.message}),h.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[(((v=m.data)==null?void 0:v.presets)??[]).map(_=>h.jsx("button",{type:"button",className:_==="read_only"?"btn-primary":"btn-secondary",disabled:p.isPending||c.isLoading,onClick:()=>g(_),children:yd[_].action},_)),h.jsx("button",{type:"button",className:"btn-ghost",disabled:p.isPending,onClick:()=>g(null),children:"Deny"})]})]})]})})}function Ki({roleTypes:n,roleNames:e,redirectTo:s="/"}){const{isSuperAdmin:i,hasRole:o,hasRoleType:c}=Lt();return i?h.jsx(vs,{}):n&&n.some(m=>c(m))?h.jsx(vs,{}):e&&e.some(m=>o(m))?h.jsx(vs,{}):h.jsx(un,{to:s,replace:!0})}function f3(){const{data:n,isSuccess:e}=Hv();return e&&n.length===0?h.jsx(un,{to:"/",replace:!0}):h.jsx(vs,{})}function h3({redirectTo:n="/"}){var i;const{data:e,isLoading:s}=Hn();return s||!e?null:(i=e.ai)!=null&&i.enabled?h.jsx(vs,{}):h.jsx(un,{to:n,replace:!0})}function d3({flag:n,redirectTo:e="/"}){var o;const{data:s,isLoading:i}=Hn();return i||!s?null:((o=s.features)==null?void 0:o[n])===!1?h.jsx(un,{to:e,replace:!0}):h.jsx(vs,{})}function m3({redirectTo:n="/"}){const{data:e,isLoading:s}=Hn();return s||!e?null:e.machines?h.jsx(vs,{}):h.jsx(un,{to:n,replace:!0})}const p3=E.lazy(()=>Oe(()=>import("./ProcessesListPage-DPLRgznC.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url).then(n=>({default:n.ProcessesListPage}))),y3=E.lazy(()=>Oe(()=>import("./ProcessDetailPage-Tf8FQCUm.js"),__vite__mapDeps([17,1,2,18,13,19,16,10,4,20,21]),import.meta.url).then(n=>({default:n.ProcessDetailPage}))),g3=E.lazy(()=>Oe(()=>import("./McpOverview-BD3UWbcC.js"),__vite__mapDeps([22,1,23,24,25,26,14,13,27,4]),import.meta.url).then(n=>({default:n.McpOverview}))),b3=E.lazy(()=>Oe(()=>import("./McpRunsPage-Z-mtyRBp.js"),__vite__mapDeps([28,1,24,25,3,4,29,26,6,7,8,9,16,13,30,14,12,11,15,31]),import.meta.url).then(n=>({default:n.McpRunsPage}))),x3=E.lazy(()=>Oe(()=>import("./McpRunDetailPage-C4jozQFh.js"),__vite__mapDeps([32,1,24,14,13,33,34,12,35,19,4,36,15,37]),import.meta.url).then(n=>({default:n.McpRunDetailPage}))),v3=E.lazy(()=>Oe(()=>import("./McpQueryPage-t555QJ3m.js"),__vite__mapDeps([38,1,14,13,7,8,9,12,11,15,6,10,30,16,31,3,4,39]),import.meta.url).then(n=>({default:n.McpQueryPage}))),_3=E.lazy(()=>Oe(()=>import("./McpQueryDetailPage-ISzY-BfT.js"),__vite__mapDeps([40,1,14,13,19,39,4,25,41,42,24,2,43,44,45,46,47,48,37,49,35,36]),import.meta.url).then(n=>({default:n.McpQueryDetailPage}))),w3=E.lazy(()=>Oe(()=>import("./EscalationsOverview-yHY6JKiV.js"),__vite__mapDeps([50,1,14,13,27,4]),import.meta.url).then(n=>({default:n.EscalationsOverview}))),S3=E.lazy(()=>Oe(()=>import("./AvailableEscalationsPage-jy2WKDjr.js"),__vite__mapDeps([51,1,4,52,13,53,54,5,55,56,57,21,58,19,7,8,9,59,11,60,12,61,20,16,62,3,31]),import.meta.url).then(n=>({default:n.AvailableEscalationsPage}))),E3=E.lazy(()=>Oe(()=>import("./OperatorDashboard-3Hi2IiHi.js"),__vite__mapDeps([63,1,3,4,5,6,52,7,8,9,11,31,59,57,21,13,58,19,60,12,61,20,16,62,55,15]),import.meta.url).then(n=>({default:n.OperatorDashboard}))),O3=E.lazy(()=>Oe(()=>import("./index-BpJ77OST.js"),__vite__mapDeps([64,1,65,13,66,4,57,21,58,19,54,16,53,5,14,15,20,62,37,67]),import.meta.url).then(n=>({default:n.EscalationDetailPage}))),A3=E.lazy(()=>Oe(()=>import("./WorkflowsOverview-CJfg0rQH.js"),__vite__mapDeps([68,1,14,13,27,4]),import.meta.url).then(n=>({default:n.WorkflowsOverview}))),j3=E.lazy(()=>Oe(()=>import("./index-BcVkiaCv.js"),__vite__mapDeps([69,1,14,13,12,16,65,66,4,57,21,58,19,54,70,46,47]),import.meta.url).then(n=>({default:n.StartWorkflowPage}))),k3=E.lazy(()=>Oe(()=>import("./index-BcVkiaCv.js"),__vite__mapDeps([69,1,14,13,12,16,65,66,4,57,21,58,19,54,70,46,47]),import.meta.url).then(n=>({default:n.DurableInvokePage}))),N3=E.lazy(()=>Oe(()=>import("./WorkflowsDashboard-WO4cH8sU.js"),__vite__mapDeps([71,1,30,29,26,4,3,6,7,8,9,16,13,14,12,11,15,31]),import.meta.url).then(n=>({default:()=>n.WorkflowsDashboard({tier:"durable"})}))),T3=E.lazy(()=>Oe(()=>import("./WorkflowsDashboard-WO4cH8sU.js"),__vite__mapDeps([71,1,30,29,26,4,3,6,7,8,9,16,13,14,12,11,15,31]),import.meta.url).then(n=>({default:()=>n.WorkflowsDashboard({tier:"all"})}))),C3=E.lazy(()=>Oe(()=>import("./YamlWorkflowsPage-DHQ4ZVzM.js"),__vite__mapDeps([72,1,25,3,4,14,13,12,8,48,70,19]),import.meta.url).then(n=>({default:n.YamlWorkflowsPage}))),M3=E.lazy(()=>Oe(()=>import("./GraphInvokePage-Cbn6igr_.js"),__vite__mapDeps([73,1,25,14,13,43,45,46,47,44,4,48,70]),import.meta.url).then(n=>({default:n.GraphInvokePage}))),R3=E.lazy(()=>Oe(()=>import("./YamlWorkflowDetailPage-C8rkvYCp.js"),__vite__mapDeps([74,1,25,19,70,13,4]),import.meta.url).then(n=>({default:n.YamlWorkflowDetailPage}))),D3=E.lazy(()=>Oe(()=>import("./TasksListPage-BmghuHbc.js"),__vite__mapDeps([75,1,2,3,4,7,8,9,19,61,49,11,12,13,14,16]),import.meta.url).then(n=>({default:n.TasksListPage}))),L3=E.lazy(()=>Oe(()=>import("./TaskDetailPage-DAxxcFDD.js"),__vite__mapDeps([76,1,2,19,61,14,13,4]),import.meta.url).then(n=>({default:n.TaskDetailPage}))),sx=E.lazy(()=>Oe(()=>import("./WorkflowExecutionPage-DBq2lZ_C.js"),__vite__mapDeps([77,1,34,12,13,35,19,4,36,2,14,33,15,37]),import.meta.url).then(n=>({default:n.WorkflowExecutionPage}))),q3=E.lazy(()=>Oe(()=>import("./AdminDashboard-NVtdLI4I.js"),__vite__mapDeps([78,1,2,23,18,13,4]),import.meta.url).then(n=>({default:n.AdminDashboard}))),P3=E.lazy(()=>Oe(()=>import("./index-Cfg4TFDb.js"),__vite__mapDeps([79,1,7,8,9,12,13,31,3,4,14,80,16]),import.meta.url).then(n=>({default:n.WorkersPage}))),B3=E.lazy(()=>Oe(()=>import("./index-Cg9W61lM.js"),__vite__mapDeps([81,1,12,13,82,20,16,14,4,46,47,70,65,66,57,21,58,19,54]),import.meta.url).then(n=>({default:n.WorkflowConfigsPage}))),ix=E.lazy(()=>Oe(()=>import("./index-Cg9W61lM.js"),__vite__mapDeps([81,1,12,13,82,20,16,14,4,46,47,70,65,66,57,21,58,19,54]),import.meta.url).then(n=>({default:n.WorkflowConfigDetailPage}))),U3=E.lazy(()=>Oe(()=>import("./index-ChF-l2z9.js"),__vite__mapDeps([83,1,23,8,82,14,13,12,11,3,4,84,45,46,47,48,44,31,19]),import.meta.url).then(n=>({default:n.McpServersPage}))),ax=E.lazy(()=>Oe(()=>import("./index-CV7KmPdF.js"),__vite__mapDeps([85,1,23,14,13,41,4]),import.meta.url).then(n=>({default:n.McpServerDetailPage}))),z3=E.lazy(()=>Oe(()=>import("./index-D-Fd0gQ_.js"),__vite__mapDeps([86,1,3,4,7,8,9,11,12,13,82,31,14,20,47,49,87,88,33]),import.meta.url).then(n=>({default:n.UsersPage}))),I3=E.lazy(()=>Oe(()=>import("./RolesPage-C5f-3zcs.js"),__vite__mapDeps([89,1,12,13,14,20,4]),import.meta.url).then(n=>({default:n.RolesPage}))),$3=E.lazy(()=>Oe(()=>import("./RoleDetailPage-KJnZGPPY.js"),__vite__mapDeps([90,1,91,82,13,4]),import.meta.url).then(n=>({default:n.RoleDetailPage}))),H3=E.lazy(()=>Oe(()=>import("./PersonasPage-uCYVhRBB.js"),__vite__mapDeps([92,1,87,12,13,14,20,4,5]),import.meta.url).then(n=>({default:n.PersonasPage}))),F3=E.lazy(()=>Oe(()=>import("./PersonaDetailPage-xb7O3tn9.js"),__vite__mapDeps([93,1,87,20,13,88,91,82,4]),import.meta.url).then(n=>({default:n.PersonaDetailPage}))),G3=E.lazy(()=>Oe(()=>import("./EscalationSchemaPage-D_mYri6e.js"),__vite__mapDeps([94,1,65,13,66,4,57,21,58,19,54,16]),import.meta.url).then(n=>({default:n.EscalationSchemaPage}))),V3=E.lazy(()=>Oe(()=>import("./PortalPage-D1MOMJ9Q.js"),__vite__mapDeps([95,1,9,56,13,57,21,58,19,4,7,8,59,11,60,12,61,20,16,62]),import.meta.url).then(n=>({default:n.PortalPage}))),Y3=E.lazy(()=>Oe(()=>import("./EscalationListSchemaPage-DuSLiInU.js"),__vite__mapDeps([96,1,13,4]),import.meta.url).then(n=>({default:n.EscalationListSchemaPage}))),K3=E.lazy(()=>Oe(()=>import("./ScanCodesPage-D51d17HH.js"),__vite__mapDeps([97,1,98,14,13,4]),import.meta.url).then(n=>({default:n.ScanCodesPage}))),J3=E.lazy(()=>Oe(()=>import("./ScanSchemeDetailPage-CUK6Skxj.js"),__vite__mapDeps([99,1,82,14,13,98,4]),import.meta.url).then(n=>({default:n.ScanSchemeDetailPage}))),Q3=E.lazy(()=>Oe(()=>import("./ScanStationPage-7vK0ddiV.js"),__vite__mapDeps([100,1,13,67,57,21,66,4]),import.meta.url).then(n=>({default:n.ScanStationPage}))),X3=E.lazy(()=>Oe(()=>import("./index-0LXkjZjt.js"),__vite__mapDeps([101,1,14,13,54,4]),import.meta.url).then(n=>({default:n.MaintenancePage}))),ox=E.lazy(()=>Oe(()=>import("./OperationsPage-ClYilVyZ.js").then(n=>n.O),__vite__mapDeps([102,1,60,13,4,14,9]),import.meta.url).then(n=>({default:n.OperationsPage}))),W3=E.lazy(()=>Oe(()=>import("./index-Cm6_Peh7.js"),__vite__mapDeps([103,1,18,13,12,3,4,29,26,42,80,7,8,9,31]),import.meta.url).then(n=>({default:n.ControlPlanePage}))),Z3=E.lazy(()=>Oe(()=>import("./index-D-EVgGsm.js"),__vite__mapDeps([104,1,36,13,3,4,29,26,6,7,8,9,11,12,14,15]),import.meta.url).then(n=>({default:n.StreamMessagesPage}))),e5=E.lazy(()=>Oe(()=>import("./CredentialsPage-C3dnRsMh.js"),__vite__mapDeps([105,1,14,13,49,82,4]),import.meta.url).then(n=>({default:n.CredentialsPage}))),t5=E.lazy(()=>Oe(()=>import("./ConnectedAppsPage-BOD-tgY0.js"),__vite__mapDeps([106,1,14,13,49,82,4]),import.meta.url).then(n=>({default:n.ConnectedAppsPage}))),n5=E.lazy(()=>Oe(()=>import("./index-BpillEP7.js"),__vite__mapDeps([107,1,4,14,13,12,15,6,8,108,49]),import.meta.url).then(n=>({default:n.FilesPage}))),r5=E.lazy(()=>Oe(()=>import("./index-5XUBZtlv.js"),__vite__mapDeps([109,1,14,13,12,15,11,8,108,49,110,41,4]),import.meta.url).then(n=>({default:n.KnowledgePage}))),s5=E.lazy(()=>Oe(()=>import("./LinesPage-BX3d-rj0.js"),__vite__mapDeps([111,1,112,7,8,9,12,13,11,14,5,3,4]),import.meta.url).then(n=>({default:n.LinesPage}))),i5=E.lazy(()=>Oe(()=>import("./LinePage-Q5Cgjd3N.js"),__vite__mapDeps([113,1,112,14,13,60,4,12]),import.meta.url).then(n=>({default:n.LinePage}))),a5=E.lazy(()=>Oe(()=>import("./HomePage-CtLKm_S4.js"),__vite__mapDeps([114,1,24,26,20,13,16,15,102,60,4,14,9,52]),import.meta.url).then(n=>({default:n.HomePage}))),o5=E.lazy(()=>Oe(()=>import("./AgentsPage-DmF0m3Ro.js"),__vite__mapDeps([115,1,116,3,4,6,7,8,9,11,12,13,14,15]),import.meta.url).then(n=>({default:n.AgentsPage}))),l5=E.lazy(()=>Oe(()=>import("./AgentDetailPage-BF4mw1bD.js"),__vite__mapDeps([117,1,116,118,13,16,4]),import.meta.url).then(n=>({default:n.AgentDetailPage}))),lx=E.lazy(()=>Oe(()=>import("./AgentConfigPage-Db1Oi72V.js"),__vite__mapDeps([119,1,116,118,13,14,110,45,46,47,25,120,121,16,4]),import.meta.url).then(n=>({default:n.AgentConfigPage}))),c5=E.lazy(()=>Oe(()=>import("./CapabilitiesPage-iCn7PxDP.js"),__vite__mapDeps([122,1,120,84,23,45,46,47,13,48,4,44,14,12]),import.meta.url).then(n=>({default:n.CapabilitiesPage}))),u5=E.lazy(()=>Oe(()=>import("./TopicsPage-DP5ox5oX.js"),__vite__mapDeps([123,1,121,14,13,12,4]),import.meta.url).then(n=>({default:n.TopicsPage}))),f5=E.lazy(()=>Oe(()=>import("./TopicDetailPage-T0dLt7Ao.js"),__vite__mapDeps([124,1,121,15,13,4]),import.meta.url).then(n=>({default:n.TopicDetailPage})));function h5(){return h.jsxs("div",{className:"animate-pulse space-y-4",children:[h.jsx("div",{className:"h-8 bg-surface-sunken rounded w-48"}),h.jsx("div",{className:"h-40 bg-surface-sunken rounded"})]})}function Se({children:n}){return h.jsx(E.Suspense,{fallback:h.jsx(h5,{}),children:h.jsx("div",{className:"animate-page-enter flex flex-col flex-1 min-h-0",children:n})})}const Zv=new hS({defaultOptions:{queries:{staleTime:1e4,retry:(n,e)=>e instanceof Error&&e.message==="Session expired"?!1:n<1}}});window.addEventListener("auth:unauthorized",()=>{Zv.clear(),sessionStorage.removeItem("lt_token"),sessionStorage.removeItem("lt_credentials"),sessionStorage.removeItem("lt_user_info");const n=window.__LT_BASE__||"",e=`${n}/login`;if(window.location.pathname!==e){const s=window.location.pathname+window.location.search,i=n&&s.startsWith(n)?s.slice(n.length)||"/":s;window.location.href=`${e}?returnTo=${encodeURIComponent(i)}`}});const d5=pS([{path:"/login",element:h.jsx(t3,{})},{path:"/connect/anthropic",element:h.jsx(rx,{})},{path:"/connect/:provider",element:h.jsx(rx,{})},{path:"/oauth/consent",element:h.jsx(u3,{})},{path:"/",element:h.jsx(WC,{}),children:[{index:!0,element:h.jsx(Se,{children:h.jsx(a5,{})})},{path:"processes/all",element:h.jsx(Se,{children:h.jsx(p3,{})})},{path:"processes/detail/:originId",element:h.jsx(Se,{children:h.jsx(y3,{})})},{path:"credentials",element:h.jsx(Se,{children:h.jsx(e5,{})})},{path:"connected-apps",element:h.jsx(Se,{children:h.jsx(t5,{})})},{path:"connections",element:h.jsx(un,{to:"/credentials",replace:!0})},{path:"escalations",element:h.jsx(Se,{children:h.jsx(w3,{})})},{path:"escalations/available",element:h.jsx(Se,{children:h.jsx(S3,{})})},{path:"escalations/queue",element:h.jsx(Se,{children:h.jsx(E3,{})})},{path:"escalations/detail/:id",element:h.jsx(Se,{children:h.jsx(O3,{})})},{path:"portal/:role/:portal?",element:h.jsx(Se,{children:h.jsx(V3,{})})},{path:"scan/station",element:h.jsx(Se,{children:h.jsx(Q3,{})})},{path:"capabilities",element:h.jsx(Se,{children:h.jsx(c5,{})})},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"agents",element:h.jsx(Se,{children:h.jsx(o5,{})})},{path:"agents/new",element:h.jsx(Se,{children:h.jsx(lx,{})})},{path:"agents/:id",element:h.jsx(Se,{children:h.jsx(l5,{})})},{path:"agents/:id/edit",element:h.jsx(Se,{children:h.jsx(lx,{})})},{path:"topics",element:h.jsx(Se,{children:h.jsx(u5,{})})},{path:"topics/:topic",element:h.jsx(Se,{children:h.jsx(f5,{})})}]},{element:h.jsx(f3,{}),children:[{path:"workflows/start",element:h.jsx(Se,{children:h.jsx(j3,{})})},{path:"workflows/durable/invoke",element:h.jsx(Se,{children:h.jsx(k3,{})})}]},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"workflows",element:h.jsx(Se,{children:h.jsx(A3,{})})},{path:"workflows/executions",element:h.jsx(Se,{children:h.jsx(T3,{})})},{path:"workflows/durable/executions",element:h.jsx(Se,{children:h.jsx(N3,{})})},{path:"workflows/durable/executions/:workflowId",element:h.jsx(Se,{children:h.jsx(sx,{})})},{path:"workflows/tasks",element:h.jsx(Se,{children:h.jsx(D3,{})})},{path:"workflows/tasks/detail/:id",element:h.jsx(Se,{children:h.jsx(L3,{})})},{path:"workflows/executions/:workflowId",element:h.jsx(Se,{children:h.jsx(sx,{})})},{path:"workflows/cron",element:h.jsx(un,{to:"/workflows/start?mode=schedule",replace:!0})},{path:"workflows/workers",element:h.jsx(Se,{children:h.jsx(P3,{})})},{path:"workflows/registry",element:h.jsx(Se,{children:h.jsx(B3,{})})},{path:"workflows/registry/new",element:h.jsx(Se,{children:h.jsx(ix,{})})},{path:"workflows/registry/:workflowType",element:h.jsx(Se,{children:h.jsx(ix,{})})}]},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"mcp/workflows",element:h.jsx(Se,{children:h.jsx(C3,{})})},{path:"mcp/workflows/invoke",element:h.jsx(Se,{children:h.jsx(M3,{})})},{path:"mcp/workflows/:id",element:h.jsx(Se,{children:h.jsx(R3,{})})},{path:"mcp/executions",element:h.jsx(Se,{children:h.jsx(b3,{})})},{path:"mcp/executions/:jobId",element:h.jsx(Se,{children:h.jsx(x3,{})})},{path:"files",element:h.jsx(Se,{children:h.jsx(n5,{})})},{path:"knowledge",element:h.jsx(Se,{children:h.jsx(r5,{})})},{element:h.jsx(h3,{}),children:[{path:"mcp",element:h.jsx(Se,{children:h.jsx(g3,{})})},{path:"mcp/queries",element:h.jsx(Se,{children:h.jsx(v3,{})})},{path:"mcp/queries/:workflowId",element:h.jsx(Se,{children:h.jsx(_3,{})})},{path:"mcp/tools",element:h.jsx(un,{to:"/mcp/servers",replace:!0})},{path:"mcp/servers",element:h.jsx(Se,{children:h.jsx(U3,{})})},{path:"mcp/servers/new",element:h.jsx(Se,{children:h.jsx(ax,{})})},{path:"mcp/servers/:serverId",element:h.jsx(Se,{children:h.jsx(ax,{})})}]}]},{path:"pace",element:h.jsx(Se,{children:h.jsx(ox,{})})},{path:"trends",element:h.jsx(Se,{children:h.jsx(ox,{})})},{path:"operations",element:h.jsx(un,{to:"/pace",replace:!0})},{element:h.jsx(Ki,{roleTypes:["admin","superadmin"],roleNames:["engineer"]}),children:[{element:h.jsx(m3,{}),children:[{path:"lines",element:h.jsx(Se,{children:h.jsx(s5,{})})},{path:"lines/:siteId/:lineId",element:h.jsx(Se,{children:h.jsx(i5,{})})}]}]},{element:h.jsx(Ki,{roleTypes:["admin","superadmin"],roleNames:["engineer"]}),children:[{path:"admin",element:h.jsx(Se,{children:h.jsx(q3,{})})},{path:"admin/users",element:h.jsx(Se,{children:h.jsx(z3,{})})},{path:"admin/escalation-chains",element:h.jsx(un,{to:"/admin/roles",replace:!0})},{path:"admin/roles",element:h.jsx(Se,{children:h.jsx(I3,{})})},{path:"admin/roles/:role",element:h.jsx(Se,{children:h.jsx($3,{})})},{path:"admin/roles/:role/schema",element:h.jsx(Se,{children:h.jsx(G3,{})})},{path:"admin/roles/:role/list-schema",element:h.jsx(Se,{children:h.jsx(Y3,{})})},{path:"admin/scan-codes",element:h.jsx(Se,{children:h.jsx(K3,{})})},{path:"admin/scan-codes/:version",element:h.jsx(Se,{children:h.jsx(J3,{})})},{path:"admin/personas",element:h.jsx(Se,{children:h.jsx(H3,{})})},{path:"admin/personas/:key",element:h.jsx(Se,{children:h.jsx(F3,{})})}]},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"admin/bots",element:h.jsx(un,{to:"/admin/users?tab=service-accounts",replace:!0})},{element:h.jsx(d3,{flag:"dbMaintenance"}),children:[{path:"admin/maintenance",element:h.jsx(Se,{children:h.jsx(X3,{})})}]},{path:"admin/controlplane",element:h.jsx(Se,{children:h.jsx(W3,{})})},{path:"admin/streams",element:h.jsx(Se,{children:h.jsx(Z3,{})})}]}]}],{basename:window.__LT_BASE__||"/"});function m5(){return h.jsx(dS,{client:Zv,children:h.jsx(lE,{children:h.jsx(hA,{children:h.jsx(yS,{router:d5})})})})}Ev(Sv());const Vm=document.createElement("link");Vm.rel="stylesheet";Vm.href=`${Yt}/api/settings/custom.css`;document.head.appendChild(Vm);WS.createRoot(document.getElementById("root")).render(h.jsx(E.StrictMode,{children:h.jsx(m5,{})}));export{Lt as $,Qk as A,PM as B,Gm as C,PC as D,G5 as E,Vv as F,BM as G,Lm as H,LT as I,bC as J,qT as K,GT as L,nT as M,Wt as N,tv as O,z5 as P,Cm as Q,rM as R,aC as S,sM as T,iM as U,aM as V,oM as W,cM as X,$j as Y,Mu as Z,F5 as _,VM as a,M5 as a$,nm as a0,IT as a1,C5 as a2,HM as a3,Bm as a4,ra as a5,xs as a6,Q5 as a7,R5 as a8,pv as a9,KM as aA,YM as aB,Hv as aC,JM as aD,GM as aE,bv as aF,hM as aG,WM as aH,FM as aI,eR as aJ,ZM as aK,S5 as aL,E5 as aM,k5 as aN,N5 as aO,O5 as aP,A5 as aQ,j5 as aR,L5 as aS,P5 as aT,q5 as aU,zM as aV,T5 as aW,Tm as aX,B5 as aY,$T as aZ,U5 as a_,jT as aa,Ck as ab,TM as ac,Wk as ad,dc as ae,eM as af,tM as ag,Pu as ah,Xk as ai,GN as aj,UM as ak,jv as al,Cu as am,zm as an,Ij as ao,wA as ap,Y5 as aq,_M as ar,K5 as as,nM as at,lM as au,uv as av,v5 as aw,zg as ax,_5 as ay,XM as az,pM as b,AM as b0,ks as b1,Oo as b2,tR as b3,qx as b4,n3 as b5,EM as b6,Yt as b7,wd as b8,w5 as b9,MM as bA,DM as bB,ET as bC,$m as bD,yk as bE,Zk as bF,ke as bG,Yd as bH,CM as bI,hv as bJ,$5 as bK,gM as bL,rT as bM,nR as bN,rR as bO,Wv as bP,sR as bQ,iR as bR,qj as bS,iC as bT,jm as bU,nv as bV,wM as bW,BT as ba,$M as bb,yv as bc,K1 as bd,kv as be,vM as bf,km as bg,bM as bh,kM as bi,Cj as bj,jM as bk,Ik as bl,zk as bm,ak as bn,Z5 as bo,W5 as bp,fr as bq,rv as br,OM as bs,ta as bt,D5 as bu,Fk as bv,RM as bw,vk as bx,LM as by,qM as bz,Hn as c,NM as d,uM as e,gk as f,xv as g,rk as h,I5 as i,nn as j,An as k,fM as l,ue as m,QM as n,dM as o,mM as p,V5 as q,J5 as r,X5 as s,yM as t,SM as u,H5 as v,Fm as w,IM as x,Xx as y,xM as z};
67
+ //# sourceMappingURL=index-xycFf66M.js.map