@hotmeshio/long-tail 0.28.1 → 0.28.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/events/publish.js +3 -2
- package/build/lib/machines/transport/nats-bus.d.ts +2 -0
- package/build/lib/machines/transport/stream-bus.d.ts +2 -0
- package/build/lib/machines/transport/stream-bus.js +8 -2
- package/build/lib/machines/transport/streams.d.ts +2 -1
- package/build/lib/machines/transport/streams.js +3 -2
- package/build/lib/messaging/memory.js +7 -3
- package/build/lib/messaging/nats/permissions.js +1 -0
- package/build/lib/messaging/nats/streams.d.ts +18 -4
- package/build/lib/messaging/nats/streams.js +55 -10
- package/build/services/machines/gateway/dispatcher.js +18 -6
- package/build/services/machines/gateway/executor.d.ts +6 -1
- package/build/services/machines/gateway/executor.js +19 -2
- package/build/services/machines/gateway/log.d.ts +1 -0
- package/build/services/machines/gateway/log.js +1 -0
- package/build/services/machines/gateway/plan-escalation.js +21 -3
- package/build/services/machines/gateway/state.d.ts +4 -0
- package/build/services/machines/gateway/state.js +1 -1
- package/build/services/machines/leadership.d.ts +2 -0
- package/build/services/machines/leadership.js +7 -1
- package/build/services/machines/select.d.ts +1 -1
- package/build/services/machines/select.js +2 -2
- package/build/services/machines/surface.js +8 -2
- package/build/types/messaging.d.ts +5 -1
- package/dashboard/dist/assets/{AdminDashboard-Bm7VG65H.js → AdminDashboard-DRE0hSDS.js} +2 -2
- package/dashboard/dist/assets/{AdminDashboard-Bm7VG65H.js.map → AdminDashboard-DRE0hSDS.js.map} +1 -1
- package/dashboard/dist/assets/{AgentConfigPage-aJF7Sdbc.js → AgentConfigPage-BuflQGgy.js} +2 -2
- package/dashboard/dist/assets/{AgentConfigPage-aJF7Sdbc.js.map → AgentConfigPage-BuflQGgy.js.map} +1 -1
- package/dashboard/dist/assets/{AgentDetailPage-GwwghhxT.js → AgentDetailPage-BiL9FB7i.js} +2 -2
- package/dashboard/dist/assets/{AgentDetailPage-GwwghhxT.js.map → AgentDetailPage-BiL9FB7i.js.map} +1 -1
- package/dashboard/dist/assets/{AgentsPage-DVvCzZyg.js → AgentsPage-C4ZxCNxt.js} +2 -2
- package/dashboard/dist/assets/{AgentsPage-DVvCzZyg.js.map → AgentsPage-C4ZxCNxt.js.map} +1 -1
- package/dashboard/dist/assets/{AvailableEscalationsPage-Cxmcji_K.js → AvailableEscalationsPage-B5p8QJvI.js} +2 -2
- package/dashboard/dist/assets/{AvailableEscalationsPage-Cxmcji_K.js.map → AvailableEscalationsPage-B5p8QJvI.js.map} +1 -1
- package/dashboard/dist/assets/{BotPicker-CofRxk4L.js → BotPicker-B7V77PnY.js} +2 -2
- package/dashboard/dist/assets/{BotPicker-CofRxk4L.js.map → BotPicker-B7V77PnY.js.map} +1 -1
- package/dashboard/dist/assets/{BulkAssignModal-BARWuz4L.js → BulkAssignModal-DcGVMQqm.js} +2 -2
- package/dashboard/dist/assets/{BulkAssignModal-BARWuz4L.js.map → BulkAssignModal-DcGVMQqm.js.map} +1 -1
- package/dashboard/dist/assets/{CapabilitiesPage-BJAWVNEx.js → CapabilitiesPage-DmbC1pEs.js} +2 -2
- package/dashboard/dist/assets/{CapabilitiesPage-BJAWVNEx.js.map → CapabilitiesPage-DmbC1pEs.js.map} +1 -1
- package/dashboard/dist/assets/{CollapsibleSection-CtgoaG75.js → CollapsibleSection-C81S1qic.js} +2 -2
- package/dashboard/dist/assets/{CollapsibleSection-CtgoaG75.js.map → CollapsibleSection-C81S1qic.js.map} +1 -1
- package/dashboard/dist/assets/{ConfirmDeleteModal-BYXXBWs6.js → ConfirmDeleteModal-3RFyWN9Q.js} +2 -2
- package/dashboard/dist/assets/{ConfirmDeleteModal-BYXXBWs6.js.map → ConfirmDeleteModal-3RFyWN9Q.js.map} +1 -1
- package/dashboard/dist/assets/{ConnectedAppsPage-D0JkzWa7.js → ConnectedAppsPage-B0D2OvTD.js} +2 -2
- package/dashboard/dist/assets/{ConnectedAppsPage-D0JkzWa7.js.map → ConnectedAppsPage-B0D2OvTD.js.map} +1 -1
- package/dashboard/dist/assets/{CountdownTimer-BcFxdZYN.js → CountdownTimer-iAG28fzG.js} +2 -2
- package/dashboard/dist/assets/{CountdownTimer-BcFxdZYN.js.map → CountdownTimer-iAG28fzG.js.map} +1 -1
- package/dashboard/dist/assets/{CredentialsPage-DPSY20rV.js → CredentialsPage-DoFwNvFv.js} +2 -2
- package/dashboard/dist/assets/{CredentialsPage-DPSY20rV.js.map → CredentialsPage-DoFwNvFv.js.map} +1 -1
- package/dashboard/dist/assets/{CronLabel-Dg_Oew_Y.js → CronLabel-C1Bb2wo4.js} +2 -2
- package/dashboard/dist/assets/{CronLabel-Dg_Oew_Y.js.map → CronLabel-C1Bb2wo4.js.map} +1 -1
- package/dashboard/dist/assets/{ElapsedCell-Dm3G5fK2.js → ElapsedCell-DZs1I1JW.js} +2 -2
- package/dashboard/dist/assets/{ElapsedCell-Dm3G5fK2.js.map → ElapsedCell-DZs1I1JW.js.map} +1 -1
- package/dashboard/dist/assets/{EntityTimelinePanel-CrEEP04e.js → EntityTimelinePanel-Du1O6Oly.js} +2 -2
- package/dashboard/dist/assets/{EntityTimelinePanel-CrEEP04e.js.map → EntityTimelinePanel-Du1O6Oly.js.map} +1 -1
- package/dashboard/dist/assets/{EscalationListSchemaPage-wOInXcjs.js → EscalationListSchemaPage-CrpBhC0e.js} +2 -2
- package/dashboard/dist/assets/{EscalationListSchemaPage-wOInXcjs.js.map → EscalationListSchemaPage-CrpBhC0e.js.map} +1 -1
- package/dashboard/dist/assets/{EscalationSchemaPage-CrIj_g9d.js → EscalationSchemaPage-Co59lcuD.js} +2 -2
- package/dashboard/dist/assets/{EscalationSchemaPage-CrIj_g9d.js.map → EscalationSchemaPage-Co59lcuD.js.map} +1 -1
- package/dashboard/dist/assets/{EscalationTimeline-CeAsl5IT.js → EscalationTimeline-B_fzNsX5.js} +2 -2
- package/dashboard/dist/assets/{EscalationTimeline-CeAsl5IT.js.map → EscalationTimeline-B_fzNsX5.js.map} +1 -1
- package/dashboard/dist/assets/{EscalationTitleSelect-D8qpCYiy.js → EscalationTitleSelect-C2Goebjo.js} +2 -2
- package/dashboard/dist/assets/{EscalationTitleSelect-D8qpCYiy.js.map → EscalationTitleSelect-C2Goebjo.js.map} +1 -1
- package/dashboard/dist/assets/{EscalationsOverview-CvaqVPsr.js → EscalationsOverview-Cgmrl8Zc.js} +2 -2
- package/dashboard/dist/assets/{EscalationsOverview-CvaqVPsr.js.map → EscalationsOverview-Cgmrl8Zc.js.map} +1 -1
- package/dashboard/dist/assets/{EventTable-Be0JuEl6.js → EventTable-BdEiu3Fv.js} +2 -2
- package/dashboard/dist/assets/{EventTable-Be0JuEl6.js.map → EventTable-BdEiu3Fv.js.map} +1 -1
- package/dashboard/dist/assets/{FilterBar-BVyAjIgv.js → FilterBar-CzKYBOMC.js} +2 -2
- package/dashboard/dist/assets/{FilterBar-BVyAjIgv.js.map → FilterBar-CzKYBOMC.js.map} +1 -1
- package/dashboard/dist/assets/{GraphInvokePage-D_QigJeD.js → GraphInvokePage-CcDFhY53.js} +2 -2
- package/dashboard/dist/assets/{GraphInvokePage-D_QigJeD.js.map → GraphInvokePage-CcDFhY53.js.map} +1 -1
- package/dashboard/dist/assets/{HomePage-C1haeuNy.js → HomePage-Xahqcdu9.js} +2 -2
- package/dashboard/dist/assets/{HomePage-C1haeuNy.js.map → HomePage-Xahqcdu9.js.map} +1 -1
- package/dashboard/dist/assets/{LinePage-CWD5pv1g.js → LinePage-DKwhGunp.js} +2 -2
- package/dashboard/dist/assets/{LinePage-CWD5pv1g.js.map → LinePage-DKwhGunp.js.map} +1 -1
- package/dashboard/dist/assets/{LinesPage-NqChsKcO.js → LinesPage-BXZVO4MC.js} +2 -2
- package/dashboard/dist/assets/{LinesPage-NqChsKcO.js.map → LinesPage-BXZVO4MC.js.map} +1 -1
- package/dashboard/dist/assets/{ListToolbar-BZCNrTh6.js → ListToolbar-orQsOdl_.js} +2 -2
- package/dashboard/dist/assets/{ListToolbar-BZCNrTh6.js.map → ListToolbar-orQsOdl_.js.map} +1 -1
- package/dashboard/dist/assets/{McpOverview-yJTYnh1z.js → McpOverview-pSnadtSM.js} +2 -2
- package/dashboard/dist/assets/{McpOverview-yJTYnh1z.js.map → McpOverview-pSnadtSM.js.map} +1 -1
- package/dashboard/dist/assets/{McpQueryDetailPage-ChuLpJ4u.js → McpQueryDetailPage-BCAJ3rKO.js} +2 -2
- package/dashboard/dist/assets/{McpQueryDetailPage-ChuLpJ4u.js.map → McpQueryDetailPage-BCAJ3rKO.js.map} +1 -1
- package/dashboard/dist/assets/{McpQueryPage-9S-v9soF.js → McpQueryPage-CRyXeRp5.js} +2 -2
- package/dashboard/dist/assets/{McpQueryPage-9S-v9soF.js.map → McpQueryPage-CRyXeRp5.js.map} +1 -1
- package/dashboard/dist/assets/{McpRunDetailPage-BhrcfxD5.js → McpRunDetailPage-BHppCztI.js} +2 -2
- package/dashboard/dist/assets/{McpRunDetailPage-BhrcfxD5.js.map → McpRunDetailPage-BHppCztI.js.map} +1 -1
- package/dashboard/dist/assets/{McpRunsPage-C5_i8_Zx.js → McpRunsPage-Cd9yCT-_.js} +2 -2
- package/dashboard/dist/assets/{McpRunsPage-C5_i8_Zx.js.map → McpRunsPage-Cd9yCT-_.js.map} +1 -1
- package/dashboard/dist/assets/{OperationsPage-C03CeU5P.js → OperationsPage-BtnthZgj.js} +2 -2
- package/dashboard/dist/assets/{OperationsPage-C03CeU5P.js.map → OperationsPage-BtnthZgj.js.map} +1 -1
- package/dashboard/dist/assets/{OperatorDashboard-BzC134Jt.js → OperatorDashboard-B4_OBhYh.js} +2 -2
- package/dashboard/dist/assets/{OperatorDashboard-BzC134Jt.js.map → OperatorDashboard-B4_OBhYh.js.map} +1 -1
- package/dashboard/dist/assets/{PersonaDetailPage-D0mY9L6j.js → PersonaDetailPage-BAYjM9qf.js} +2 -2
- package/dashboard/dist/assets/{PersonaDetailPage-D0mY9L6j.js.map → PersonaDetailPage-BAYjM9qf.js.map} +1 -1
- package/dashboard/dist/assets/{PersonasPage-FFlm5Eug.js → PersonasPage-6HsOp-1y.js} +2 -2
- package/dashboard/dist/assets/{PersonasPage-FFlm5Eug.js.map → PersonasPage-6HsOp-1y.js.map} +1 -1
- package/dashboard/dist/assets/{PortalPage-Cpc25uO-.js → PortalPage-6OMr7KtJ.js} +2 -2
- package/dashboard/dist/assets/{PortalPage-Cpc25uO-.js.map → PortalPage-6OMr7KtJ.js.map} +1 -1
- package/dashboard/dist/assets/{ProcessDetailPage-Di2J7KwY.js → ProcessDetailPage-AidH_h7z.js} +2 -2
- package/dashboard/dist/assets/{ProcessDetailPage-Di2J7KwY.js.map → ProcessDetailPage-AidH_h7z.js.map} +1 -1
- package/dashboard/dist/assets/{ProcessesListPage-BEXwU3Z0.js → ProcessesListPage-BWKoKbXk.js} +2 -2
- package/dashboard/dist/assets/{ProcessesListPage-BEXwU3Z0.js.map → ProcessesListPage-BWKoKbXk.js.map} +1 -1
- package/dashboard/dist/assets/{ResolverForm-2ks-3jXC.js → ResolverForm-BaSvhLoT.js} +2 -2
- package/dashboard/dist/assets/ResolverForm-BaSvhLoT.js.map +1 -0
- package/dashboard/dist/assets/{RoleDetailPage-DqoOk0xc.js → RoleDetailPage-D_30TDVh.js} +2 -2
- package/dashboard/dist/assets/{RoleDetailPage-DqoOk0xc.js.map → RoleDetailPage-D_30TDVh.js.map} +1 -1
- package/dashboard/dist/assets/{RolesPage-CPmo8Srr.js → RolesPage-T2hH_MV5.js} +2 -2
- package/dashboard/dist/assets/{RolesPage-CPmo8Srr.js.map → RolesPage-T2hH_MV5.js.map} +1 -1
- package/dashboard/dist/assets/{RosterWidget-D2yovCKw.js → RosterWidget-DG6Rcx4P.js} +2 -2
- package/dashboard/dist/assets/{RosterWidget-D2yovCKw.js.map → RosterWidget-DG6Rcx4P.js.map} +1 -1
- package/dashboard/dist/assets/{RunAsSelector-CMv96On6.js → RunAsSelector-M2h9U6PP.js} +2 -2
- package/dashboard/dist/assets/{RunAsSelector-CMv96On6.js.map → RunAsSelector-M2h9U6PP.js.map} +1 -1
- package/dashboard/dist/assets/{ScanCodesPage-CA6cTT-M.js → ScanCodesPage-lB_WxoZw.js} +2 -2
- package/dashboard/dist/assets/{ScanCodesPage-CA6cTT-M.js.map → ScanCodesPage-lB_WxoZw.js.map} +1 -1
- package/dashboard/dist/assets/{ScanSchemeDetailPage-DnctN5-H.js → ScanSchemeDetailPage-C3VLg61H.js} +2 -2
- package/dashboard/dist/assets/{ScanSchemeDetailPage-DnctN5-H.js.map → ScanSchemeDetailPage-C3VLg61H.js.map} +1 -1
- package/dashboard/dist/assets/{ScanStationPage-Bk8RwkKL.js → ScanStationPage-CVET1_4r.js} +2 -2
- package/dashboard/dist/assets/{ScanStationPage-Bk8RwkKL.js.map → ScanStationPage-CVET1_4r.js.map} +1 -1
- package/dashboard/dist/assets/{StickyPagination-B0FSuUgs.js → StickyPagination-BdjseWXr.js} +2 -2
- package/dashboard/dist/assets/{StickyPagination-B0FSuUgs.js.map → StickyPagination-BdjseWXr.js.map} +1 -1
- package/dashboard/dist/assets/{StreamMessageDetail-BwZEvMpP.js → StreamMessageDetail-DJCBxETh.js} +2 -2
- package/dashboard/dist/assets/{StreamMessageDetail-BwZEvMpP.js.map → StreamMessageDetail-DJCBxETh.js.map} +1 -1
- package/dashboard/dist/assets/{SwimlaneTimeline-BDVQEaMw.js → SwimlaneTimeline-DiXm9jIk.js} +2 -2
- package/dashboard/dist/assets/{SwimlaneTimeline-BDVQEaMw.js.map → SwimlaneTimeline-DiXm9jIk.js.map} +1 -1
- package/dashboard/dist/assets/{TaskDetailPage-BOlv3iGB.js → TaskDetailPage-m8CQFN4w.js} +2 -2
- package/dashboard/dist/assets/{TaskDetailPage-BOlv3iGB.js.map → TaskDetailPage-m8CQFN4w.js.map} +1 -1
- package/dashboard/dist/assets/{TasksListPage-e2teY0bD.js → TasksListPage-DHBSUhZC.js} +2 -2
- package/dashboard/dist/assets/{TasksListPage-e2teY0bD.js.map → TasksListPage-DHBSUhZC.js.map} +1 -1
- package/dashboard/dist/assets/{TimeAgo-Cvkpf_b3.js → TimeAgo-Cq3bKUd-.js} +2 -2
- package/dashboard/dist/assets/{TimeAgo-Cvkpf_b3.js.map → TimeAgo-Cq3bKUd-.js.map} +1 -1
- package/dashboard/dist/assets/{TimestampCell-B3btAV0N.js → TimestampCell-e5gRR_FY.js} +2 -2
- package/dashboard/dist/assets/{TimestampCell-B3btAV0N.js.map → TimestampCell-e5gRR_FY.js.map} +1 -1
- package/dashboard/dist/assets/{ToolTestPanel-B03nebR7.js → ToolTestPanel-Bg0ss9oN.js} +2 -2
- package/dashboard/dist/assets/{ToolTestPanel-B03nebR7.js.map → ToolTestPanel-Bg0ss9oN.js.map} +1 -1
- package/dashboard/dist/assets/{TopicDetailPage-DBRWne3O.js → TopicDetailPage-DhPiCfOO.js} +2 -2
- package/dashboard/dist/assets/{TopicDetailPage-DBRWne3O.js.map → TopicDetailPage-DhPiCfOO.js.map} +1 -1
- package/dashboard/dist/assets/{TopicsPage-CVe2M9HD.js → TopicsPage-BqZaVv3d.js} +2 -2
- package/dashboard/dist/assets/{TopicsPage-CVe2M9HD.js.map → TopicsPage-BqZaVv3d.js.map} +1 -1
- package/dashboard/dist/assets/{UserName-B_q_qp6V.js → UserName-C6ZNHHKN.js} +2 -2
- package/dashboard/dist/assets/{UserName-B_q_qp6V.js.map → UserName-C6ZNHHKN.js.map} +1 -1
- package/dashboard/dist/assets/{WorkflowExecutionPage-Bh_dr9tM.js → WorkflowExecutionPage-BUqIhtcr.js} +2 -2
- package/dashboard/dist/assets/{WorkflowExecutionPage-Bh_dr9tM.js.map → WorkflowExecutionPage-BUqIhtcr.js.map} +1 -1
- package/dashboard/dist/assets/{WorkflowsDashboard-DA6Mj7qH.js → WorkflowsDashboard-BKxhC_hT.js} +2 -2
- package/dashboard/dist/assets/{WorkflowsDashboard-DA6Mj7qH.js.map → WorkflowsDashboard-BKxhC_hT.js.map} +1 -1
- package/dashboard/dist/assets/{WorkflowsOverview-B1kBLj-a.js → WorkflowsOverview-018s2q_p.js} +2 -2
- package/dashboard/dist/assets/{WorkflowsOverview-B1kBLj-a.js.map → WorkflowsOverview-018s2q_p.js.map} +1 -1
- package/dashboard/dist/assets/{YamlWorkflowDetailPage-6GJM8QIX.js → YamlWorkflowDetailPage-C2zcXDr1.js} +2 -2
- package/dashboard/dist/assets/{YamlWorkflowDetailPage-6GJM8QIX.js.map → YamlWorkflowDetailPage-C2zcXDr1.js.map} +1 -1
- package/dashboard/dist/assets/{YamlWorkflowsPage-Bu811C7f.js → YamlWorkflowsPage-aVcNZNu6.js} +2 -2
- package/dashboard/dist/assets/{YamlWorkflowsPage-Bu811C7f.js.map → YamlWorkflowsPage-aVcNZNu6.js.map} +1 -1
- package/dashboard/dist/assets/{agents-MPk_GnYz.js → agents-DRaaJUue.js} +2 -2
- package/dashboard/dist/assets/{agents-MPk_GnYz.js.map → agents-DRaaJUue.js.map} +1 -1
- package/dashboard/dist/assets/{bots-2RihE2Tc.js → bots-C4N90NCj.js} +2 -2
- package/dashboard/dist/assets/{bots-2RihE2Tc.js.map → bots-C4N90NCj.js.map} +1 -1
- package/dashboard/dist/assets/{capabilities-CC4iwJ1P.js → capabilities-BoRWifSC.js} +2 -2
- package/dashboard/dist/assets/{capabilities-CC4iwJ1P.js.map → capabilities-BoRWifSC.js.map} +1 -1
- package/dashboard/dist/assets/{controlplane-Bmkic8BH.js → controlplane-DGZAxi7J.js} +2 -2
- package/dashboard/dist/assets/{controlplane-Bmkic8BH.js.map → controlplane-DGZAxi7J.js.map} +1 -1
- package/dashboard/dist/assets/{escalation-columns-B0lhUUrQ.js → escalation-columns-DJbfsH_m.js} +2 -2
- package/dashboard/dist/assets/{escalation-columns-B0lhUUrQ.js.map → escalation-columns-DJbfsH_m.js.map} +1 -1
- package/dashboard/dist/assets/{escalation-items-7WFpPo46.js → escalation-items-C8iJZEA8.js} +2 -2
- package/dashboard/dist/assets/{escalation-items-7WFpPo46.js.map → escalation-items-C8iJZEA8.js.map} +1 -1
- package/dashboard/dist/assets/{index-CvJsvqIc.js → index-3HaFP00M.js} +2 -2
- package/dashboard/dist/assets/{index-CvJsvqIc.js.map → index-3HaFP00M.js.map} +1 -1
- package/dashboard/dist/assets/{index-CmsmwCyv.js → index-BFxHIfQ_.js} +2 -2
- package/dashboard/dist/assets/{index-CmsmwCyv.js.map → index-BFxHIfQ_.js.map} +1 -1
- package/dashboard/dist/assets/{index-C2CLfGwL.js → index-BhS9XSy8.js} +2 -2
- package/dashboard/dist/assets/{index-C2CLfGwL.js.map → index-BhS9XSy8.js.map} +1 -1
- package/dashboard/dist/assets/{index-DSUtfDXx.js → index-BuSUevzO.js} +2 -2
- package/dashboard/dist/assets/{index-DSUtfDXx.js.map → index-BuSUevzO.js.map} +1 -1
- package/dashboard/dist/assets/{index-Da6ycKyf.js → index-CXXc9sUr.js} +2 -2
- package/dashboard/dist/assets/index-CXXc9sUr.js.map +1 -0
- package/dashboard/dist/assets/{index-D-ilRyfy.js → index-CeeSFnl-.js} +2 -2
- package/dashboard/dist/assets/{index-D-ilRyfy.js.map → index-CeeSFnl-.js.map} +1 -1
- package/dashboard/dist/assets/{index-CcArGkzI.js → index-CjjRxpVe.js} +2 -2
- package/dashboard/dist/assets/index-CjjRxpVe.js.map +1 -0
- package/dashboard/dist/assets/{index-CRWsB7ZC.js → index-CyL-6CAa.js} +2 -2
- package/dashboard/dist/assets/{index-CRWsB7ZC.js.map → index-CyL-6CAa.js.map} +1 -1
- package/dashboard/dist/assets/{index-C3AeFihz.js → index-DIU89TX3.js} +2 -2
- package/dashboard/dist/assets/{index-C3AeFihz.js.map → index-DIU89TX3.js.map} +1 -1
- package/dashboard/dist/assets/{index-B_XV1rwu.js → index-DMKLnxt8.js} +2 -2
- package/dashboard/dist/assets/{index-B_XV1rwu.js.map → index-DMKLnxt8.js.map} +1 -1
- package/dashboard/dist/assets/{index-CTOv3G7a.js → index-DeyA88jq.js} +2 -2
- package/dashboard/dist/assets/{index-CTOv3G7a.js.map → index-DeyA88jq.js.map} +1 -1
- package/dashboard/dist/assets/{index-CBri8fYM.js → index-DhKGp4QK.js} +2 -2
- package/dashboard/dist/assets/{index-CBri8fYM.js.map → index-DhKGp4QK.js.map} +1 -1
- package/dashboard/dist/assets/{index-CkMHS-hG.js → index-pzbGpihI.js} +3 -3
- package/dashboard/dist/assets/{index-CkMHS-hG.js.map → index-pzbGpihI.js.map} +1 -1
- package/dashboard/dist/assets/{knowledge-Bpbg20DC.js → knowledge-BWo3OCJc.js} +2 -2
- package/dashboard/dist/assets/{knowledge-Bpbg20DC.js.map → knowledge-BWo3OCJc.js.map} +1 -1
- package/dashboard/dist/assets/{machines-BqOZZU-3.js → machines-LEYY_yar.js} +2 -2
- package/dashboard/dist/assets/{machines-BqOZZU-3.js.map → machines-LEYY_yar.js.map} +1 -1
- package/dashboard/dist/assets/{mcp-CmcUXYce.js → mcp-_0kFRcyT.js} +2 -2
- package/dashboard/dist/assets/{mcp-CmcUXYce.js.map → mcp-_0kFRcyT.js.map} +1 -1
- package/dashboard/dist/assets/{mcp-query-C8buQxN9.js → mcp-query-BzmN0lc5.js} +2 -2
- package/dashboard/dist/assets/{mcp-query-C8buQxN9.js.map → mcp-query-BzmN0lc5.js.map} +1 -1
- package/dashboard/dist/assets/{personas-C2n5oDmY.js → personas-kE4PMrgo.js} +2 -2
- package/dashboard/dist/assets/{personas-C2n5oDmY.js.map → personas-kE4PMrgo.js.map} +1 -1
- package/dashboard/dist/assets/{pipelines-RKpSkFz7.js → pipelines-DYDNaypF.js} +2 -2
- package/dashboard/dist/assets/{pipelines-RKpSkFz7.js.map → pipelines-DYDNaypF.js.map} +1 -1
- package/dashboard/dist/assets/{tasks-Dab4hExW.js → tasks-ClJ-mbj9.js} +2 -2
- package/dashboard/dist/assets/{tasks-Dab4hExW.js.map → tasks-ClJ-mbj9.js.map} +1 -1
- package/dashboard/dist/assets/{topics-FTMNP7r3.js → topics-oHX4vbqe.js} +2 -2
- package/dashboard/dist/assets/{topics-FTMNP7r3.js.map → topics-oHX4vbqe.js.map} +1 -1
- package/dashboard/dist/assets/{useDebouncedValue-B_1u1YIk.js → useDebouncedValue-C97KADrj.js} +2 -2
- package/dashboard/dist/assets/{useDebouncedValue-B_1u1YIk.js.map → useDebouncedValue-C97KADrj.js.map} +1 -1
- package/dashboard/dist/assets/{useNamespace-HUeAI7Qb.js → useNamespace-Kje0Rn7j.js} +2 -2
- package/dashboard/dist/assets/{useNamespace-HUeAI7Qb.js.map → useNamespace-Kje0Rn7j.js.map} +1 -1
- package/dashboard/dist/assets/{useYamlActivityEvents-Cax54qHH.js → useYamlActivityEvents-DMz-HKFv.js} +2 -2
- package/dashboard/dist/assets/{useYamlActivityEvents-Cax54qHH.js.map → useYamlActivityEvents-DMz-HKFv.js.map} +1 -1
- package/dashboard/dist/assets/{validate-DxOaV7QS.js → validate-hUqjWN63.js} +2 -2
- package/dashboard/dist/assets/{validate-DxOaV7QS.js.map → validate-hUqjWN63.js.map} +1 -1
- package/dashboard/dist/assets/{yaml-workflows-BgY1XHJx.js → yaml-workflows-64vfmKJx.js} +2 -2
- package/dashboard/dist/assets/{yaml-workflows-BgY1XHJx.js.map → yaml-workflows-64vfmKJx.js.map} +1 -1
- package/dashboard/dist/index.html +1 -1
- package/docs/machines.md +3 -3
- package/package.json +1 -1
- package/dashboard/dist/assets/ResolverForm-2ks-3jXC.js.map +0 -1
- package/dashboard/dist/assets/index-CcArGkzI.js.map +0 -1
- package/dashboard/dist/assets/index-Da6ycKyf.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ProcessesListPage-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ProcessesListPage-BWKoKbXk.js","./vendor-query-DvWWuNIB.js","./tasks-ClJ-mbj9.js","./useFilterParams-DBRw1Hcv.js","./vendor-react-_9U4mKFr.js","./useDebouncedValue-C97KADrj.js","./api-path-u2Jf9QXS.js","./DataTable-FjFhx0SE.js","./EmptyState-DgC_6njU.js","./useContainerWidth-DSLp1gEm.js","./TimestampCell-e5gRR_FY.js","./StickyPagination-BdjseWXr.js","./FilterBar-CzKYBOMC.js","./vendor-icons-fxBvvHBi.js","./PageHeader-Hx8APPwE.js","./ListToolbar-orQsOdl_.js","./WorkflowPill-D7244fKp.js","./ProcessDetailPage-AidH_h7z.js","./PageHeaderWithStats-BEQYYBJv.js","./StatusBadge-DHVwxre2.js","./RolePill-R5_ctGFy.js","./UserName-C6ZNHHKN.js","./McpOverview-pSnadtSM.js","./mcp-_0kFRcyT.js","./pipelines-DYDNaypF.js","./yaml-workflows-64vfmKJx.js","./controlplane-DGZAxi7J.js","./StatCard-nWY4sndl.js","./McpRunsPage-Cd9yCT-_.js","./useNamespace-Kje0Rn7j.js","./ElapsedCell-DZs1I1JW.js","./RowActions-Bdd7z4eB.js","./McpRunDetailPage-BHppCztI.js","./SegmentedTabs-BpJh4Hwn.js","./EventTable-BdEiu3Fv.js","./SwimlaneTimeline-DiXm9jIk.js","./StreamMessageDetail-DJCBxETh.js","./CopyableId-Bn02zYxt.js","./McpQueryPage-CRyXeRp5.js","./mcp-query-BzmN0lc5.js","./McpQueryDetailPage-BCAJ3rKO.js","./TagInput-DjPUDp2M.js","./CollapsibleSection-C81S1qic.js","./useYamlActivityEvents-DMz-HKFv.js","./helpers-DzO-OGPe.js","./RunAsSelector-M2h9U6PP.js","./BotPicker-B7V77PnY.js","./bots-C4N90NCj.js","./ToolPill-GsKQ80CO.js","./TimeAgo-Cq3bKUd-.js","./EscalationsOverview-Cgmrl8Zc.js","./AvailableEscalationsPage-B5p8QJvI.js","./task-queues-7-sHKPsN.js","./BulkAssignModal-DcGVMQqm.js","./constants-CeBBTzf5.js","./EscalationTitleSelect-C2Goebjo.js","./EscalationTimeline-B_fzNsX5.js","./escalation-items-C8iJZEA8.js","./validate-hUqjWN63.js","./escalation-columns-DJbfsH_m.js","./EntityTimelinePanel-Du1O6Oly.js","./PriorityBadge-r33mpDju.js","./CountdownTimer-iAG28fzG.js","./OperatorDashboard-B4_OBhYh.js","./index-CjjRxpVe.js","./ResolverForm-BaSvhLoT.js","./RosterWidget-DG6Rcx4P.js","./metadata-display-B7X5hGxG.js","./WorkflowsOverview-018s2q_p.js","./index-DMKLnxt8.js","./NamespacePill-OTZD2hzt.js","./WorkflowsDashboard-BKxhC_hT.js","./YamlWorkflowsPage-aVcNZNu6.js","./GraphInvokePage-CcDFhY53.js","./YamlWorkflowDetailPage-C2zcXDr1.js","./TasksListPage-DHBSUhZC.js","./TaskDetailPage-m8CQFN4w.js","./WorkflowExecutionPage-BUqIhtcr.js","./AdminDashboard-DRE0hSDS.js","./index-DIU89TX3.js","./TaskQueuePill-D-4Ynf3K.js","./index-CXXc9sUr.js","./ConfirmDeleteModal-3RFyWN9Q.js","./index-BhS9XSy8.js","./ToolTestPanel-Bg0ss9oN.js","./index-3HaFP00M.js","./index-CyL-6CAa.js","./personas-kE4PMrgo.js","./ScopeBadge-BXZ084nD.js","./RolesPage-T2hH_MV5.js","./RoleDetailPage-D_30TDVh.js","./AutoGrowTextarea-7X3T9La8.js","./PersonasPage-6HsOp-1y.js","./PersonaDetailPage-BAYjM9qf.js","./EscalationSchemaPage-Co59lcuD.js","./PortalPage-6OMr7KtJ.js","./EscalationListSchemaPage-CrpBhC0e.js","./ScanCodesPage-lB_WxoZw.js","./GrantScopeField-BzWGzBfA.js","./ScanSchemeDetailPage-C3VLg61H.js","./ScanStationPage-CVET1_4r.js","./index-BuSUevzO.js","./OperationsPage-BtnthZgj.js","./index-BFxHIfQ_.js","./index-DhKGp4QK.js","./CredentialsPage-DoFwNvFv.js","./ConnectedAppsPage-B0D2OvTD.js","./index-DeyA88jq.js","./DropZone-Cl_Flb16.js","./index-CeeSFnl-.js","./knowledge-BWo3OCJc.js","./LinesPage-BXZVO4MC.js","./machines-LEYY_yar.js","./LinePage-DKwhGunp.js","./HomePage-Xahqcdu9.js","./AgentsPage-C4ZxCNxt.js","./agents-DRaaJUue.js","./AgentDetailPage-BiL9FB7i.js","./CronLabel-C1Bb2wo4.js","./AgentConfigPage-BuflQGgy.js","./capabilities-BoRWifSC.js","./topics-oHX4vbqe.js","./CapabilitiesPage-DmbC1pEs.js","./TopicsPage-BqZaVv3d.js","./TopicDetailPage-DhPiCfOO.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 qe,a as E,j as h,b as Pe,c as $e,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 en,b as sm,L as ar,N as Os,c as cn,O as vs,d as pS,R as yS}from"./vendor-react-_9U4mKFr.js";import{X as Zt,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-fxBvvHBi.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:{}},ro={},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=en(),[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(X=>X.map(W=>W.id===te.id?{...W,workflowId:D}:W)),d.current&&clearInterval(d.current),d.current=setInterval(async()=>{var X;try{const W=await ue(`/workflows/${D}/result`),he=(X=W==null?void 0:W.result)==null?void 0:X.data;if(he){d.current&&clearInterval(d.current),d.current=null,p(null);const Se=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:Se,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(Zt,{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(${Vt}/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(Zt,{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===To.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(Zt,{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,"&").replace(/</g,"<").replace(/>/g,">")}function KC(n){try{return localStorage.getItem(`${Xv}${n}`)==="1"}catch{return!1}}function JC(){const{isAuthenticated:n,userRoleNames:e}=qt(),{data:s}=gv(n),i=Pe(),[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(Zt,{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=en(),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(cn,{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}=qt(),e=en();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(cn,{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 qe({queryKey:["oauth-connections"],queryFn:()=>ue("/auth/oauth/connections")})}function rR(){const n=Pe();return $e({mutationFn:({provider:e,label:s})=>e3(e,s),onSuccess:()=>{n.invalidateQueries({queryKey:["oauth-connections"]})}})}function t3(){var ae;const{login:n,isAuthenticated:e}=qt(),s=ni(),i=en(),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,X;try{const W=await lm().catch(()=>null);if(!((F=W==null?void 0:W.auth)!=null&&F.sso))return;const he=await fetch(`${Vt}/api/auth/sso`,{method:"POST"});if(!he.ok){_("Host authentication required — please log in to your organization first");return}const Se=await he.json();Se.token&&((U=W.auth)!=null&&U.ssoLogoutUrl&&sessionStorage.setItem("lt_sso_logout_url",W.auth.ssoLogoutUrl),q(!0),n(Se.token,void 0,{displayName:(D=Se.user)==null?void 0:D.display_name,username:(X=Se.user)==null?void 0:X.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(cn,{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 X=await fetch(`${Vt}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:u.trim(),password:b})}),W=await X.json();if(!X.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:`${Vt}/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}=qt(),e=ni(),s=en(),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=`${Vt}/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 qe({queryKey:["oauth-client",n],queryFn:()=>ue(`/oauth/clients/${encodeURIComponent(n)}`),enabled:!!n,retry:!1})}function i3(n){return qe({queryKey:["oauth-presets"],queryFn:()=>ue("/oauth/presets"),enabled:n})}function a3(){return $e({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 qe({queryKey:["oauth-grants"],queryFn:()=>ue("/oauth/grants")})}function iR(){const n=Pe();return $e({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}=qt(),s=ni(),i=en(),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}=qt();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(cn,{to:s,replace:!0})}function f3(){const{data:n,isSuccess:e}=Hv();return e&&n.length===0?h.jsx(cn,{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(cn,{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(cn,{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(cn,{to:n,replace:!0})}const p3=E.lazy(()=>Oe(()=>import("./ProcessesListPage-BEXwU3Z0.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-Di2J7KwY.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-yJTYnh1z.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-C5_i8_Zx.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-BhrcfxD5.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-9S-v9soF.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-ChuLpJ4u.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-CvaqVPsr.js"),__vite__mapDeps([50,1,14,13,27,4]),import.meta.url).then(n=>({default:n.EscalationsOverview}))),S3=E.lazy(()=>Oe(()=>import("./AvailableEscalationsPage-Cxmcji_K.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-BzC134Jt.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-CcArGkzI.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-B1kBLj-a.js"),__vite__mapDeps([68,1,14,13,27,4]),import.meta.url).then(n=>({default:n.WorkflowsOverview}))),j3=E.lazy(()=>Oe(()=>import("./index-B_XV1rwu.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-B_XV1rwu.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-DA6Mj7qH.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-DA6Mj7qH.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-Bu811C7f.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-D_QigJeD.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-6GJM8QIX.js"),__vite__mapDeps([74,1,25,19,70,13,4]),import.meta.url).then(n=>({default:n.YamlWorkflowDetailPage}))),D3=E.lazy(()=>Oe(()=>import("./TasksListPage-e2teY0bD.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-BOlv3iGB.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-Bh_dr9tM.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-Bm7VG65H.js"),__vite__mapDeps([78,1,2,23,18,13,4]),import.meta.url).then(n=>({default:n.AdminDashboard}))),P3=E.lazy(()=>Oe(()=>import("./index-C3AeFihz.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-Da6ycKyf.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-Da6ycKyf.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-C2CLfGwL.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-CvJsvqIc.js"),__vite__mapDeps([85,1,23,14,13,41,4]),import.meta.url).then(n=>({default:n.McpServerDetailPage}))),z3=E.lazy(()=>Oe(()=>import("./index-CRWsB7ZC.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-CPmo8Srr.js"),__vite__mapDeps([89,1,12,13,14,20,4]),import.meta.url).then(n=>({default:n.RolesPage}))),$3=E.lazy(()=>Oe(()=>import("./RoleDetailPage-DqoOk0xc.js"),__vite__mapDeps([90,1,91,82,13,4]),import.meta.url).then(n=>({default:n.RoleDetailPage}))),H3=E.lazy(()=>Oe(()=>import("./PersonasPage-FFlm5Eug.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-D0mY9L6j.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-CrIj_g9d.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-Cpc25uO-.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-wOInXcjs.js"),__vite__mapDeps([96,1,13,4]),import.meta.url).then(n=>({default:n.EscalationListSchemaPage}))),K3=E.lazy(()=>Oe(()=>import("./ScanCodesPage-CA6cTT-M.js"),__vite__mapDeps([97,1,98,14,13,4]),import.meta.url).then(n=>({default:n.ScanCodesPage}))),J3=E.lazy(()=>Oe(()=>import("./ScanSchemeDetailPage-DnctN5-H.js"),__vite__mapDeps([99,1,82,14,13,98,4]),import.meta.url).then(n=>({default:n.ScanSchemeDetailPage}))),Q3=E.lazy(()=>Oe(()=>import("./ScanStationPage-Bk8RwkKL.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-DSUtfDXx.js"),__vite__mapDeps([101,1,14,13,54,4]),import.meta.url).then(n=>({default:n.MaintenancePage}))),ox=E.lazy(()=>Oe(()=>import("./OperationsPage-C03CeU5P.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-CmsmwCyv.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-CBri8fYM.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-DPSY20rV.js"),__vite__mapDeps([105,1,14,13,49,82,4]),import.meta.url).then(n=>({default:n.CredentialsPage}))),t5=E.lazy(()=>Oe(()=>import("./ConnectedAppsPage-D0JkzWa7.js"),__vite__mapDeps([106,1,14,13,49,82,4]),import.meta.url).then(n=>({default:n.ConnectedAppsPage}))),n5=E.lazy(()=>Oe(()=>import("./index-CTOv3G7a.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-D-ilRyfy.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-NqChsKcO.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-CWD5pv1g.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-C1haeuNy.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-DVvCzZyg.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-GwwghhxT.js"),__vite__mapDeps([117,1,116,118,13,16,4]),import.meta.url).then(n=>({default:n.AgentDetailPage}))),lx=E.lazy(()=>Oe(()=>import("./AgentConfigPage-aJF7Sdbc.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-BJAWVNEx.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-CVe2M9HD.js"),__vite__mapDeps([123,1,121,14,13,12,4]),import.meta.url).then(n=>({default:n.TopicsPage}))),f5=E.lazy(()=>Oe(()=>import("./TopicDetailPage-DBRWne3O.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 we({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(we,{children:h.jsx(a5,{})})},{path:"processes/all",element:h.jsx(we,{children:h.jsx(p3,{})})},{path:"processes/detail/:originId",element:h.jsx(we,{children:h.jsx(y3,{})})},{path:"credentials",element:h.jsx(we,{children:h.jsx(e5,{})})},{path:"connected-apps",element:h.jsx(we,{children:h.jsx(t5,{})})},{path:"connections",element:h.jsx(cn,{to:"/credentials",replace:!0})},{path:"escalations",element:h.jsx(we,{children:h.jsx(w3,{})})},{path:"escalations/available",element:h.jsx(we,{children:h.jsx(S3,{})})},{path:"escalations/queue",element:h.jsx(we,{children:h.jsx(E3,{})})},{path:"escalations/detail/:id",element:h.jsx(we,{children:h.jsx(O3,{})})},{path:"portal/:role/:portal?",element:h.jsx(we,{children:h.jsx(V3,{})})},{path:"scan/station",element:h.jsx(we,{children:h.jsx(Q3,{})})},{path:"capabilities",element:h.jsx(we,{children:h.jsx(c5,{})})},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"agents",element:h.jsx(we,{children:h.jsx(o5,{})})},{path:"agents/new",element:h.jsx(we,{children:h.jsx(lx,{})})},{path:"agents/:id",element:h.jsx(we,{children:h.jsx(l5,{})})},{path:"agents/:id/edit",element:h.jsx(we,{children:h.jsx(lx,{})})},{path:"topics",element:h.jsx(we,{children:h.jsx(u5,{})})},{path:"topics/:topic",element:h.jsx(we,{children:h.jsx(f5,{})})}]},{element:h.jsx(f3,{}),children:[{path:"workflows/start",element:h.jsx(we,{children:h.jsx(j3,{})})},{path:"workflows/durable/invoke",element:h.jsx(we,{children:h.jsx(k3,{})})}]},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"workflows",element:h.jsx(we,{children:h.jsx(A3,{})})},{path:"workflows/executions",element:h.jsx(we,{children:h.jsx(T3,{})})},{path:"workflows/durable/executions",element:h.jsx(we,{children:h.jsx(N3,{})})},{path:"workflows/durable/executions/:workflowId",element:h.jsx(we,{children:h.jsx(sx,{})})},{path:"workflows/tasks",element:h.jsx(we,{children:h.jsx(D3,{})})},{path:"workflows/tasks/detail/:id",element:h.jsx(we,{children:h.jsx(L3,{})})},{path:"workflows/executions/:workflowId",element:h.jsx(we,{children:h.jsx(sx,{})})},{path:"workflows/cron",element:h.jsx(cn,{to:"/workflows/start?mode=schedule",replace:!0})},{path:"workflows/workers",element:h.jsx(we,{children:h.jsx(P3,{})})},{path:"workflows/registry",element:h.jsx(we,{children:h.jsx(B3,{})})},{path:"workflows/registry/new",element:h.jsx(we,{children:h.jsx(ix,{})})},{path:"workflows/registry/:workflowType",element:h.jsx(we,{children:h.jsx(ix,{})})}]},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"mcp/workflows",element:h.jsx(we,{children:h.jsx(C3,{})})},{path:"mcp/workflows/invoke",element:h.jsx(we,{children:h.jsx(M3,{})})},{path:"mcp/workflows/:id",element:h.jsx(we,{children:h.jsx(R3,{})})},{path:"mcp/executions",element:h.jsx(we,{children:h.jsx(b3,{})})},{path:"mcp/executions/:jobId",element:h.jsx(we,{children:h.jsx(x3,{})})},{path:"files",element:h.jsx(we,{children:h.jsx(n5,{})})},{path:"knowledge",element:h.jsx(we,{children:h.jsx(r5,{})})},{element:h.jsx(h3,{}),children:[{path:"mcp",element:h.jsx(we,{children:h.jsx(g3,{})})},{path:"mcp/queries",element:h.jsx(we,{children:h.jsx(v3,{})})},{path:"mcp/queries/:workflowId",element:h.jsx(we,{children:h.jsx(_3,{})})},{path:"mcp/tools",element:h.jsx(cn,{to:"/mcp/servers",replace:!0})},{path:"mcp/servers",element:h.jsx(we,{children:h.jsx(U3,{})})},{path:"mcp/servers/new",element:h.jsx(we,{children:h.jsx(ax,{})})},{path:"mcp/servers/:serverId",element:h.jsx(we,{children:h.jsx(ax,{})})}]}]},{path:"pace",element:h.jsx(we,{children:h.jsx(ox,{})})},{path:"trends",element:h.jsx(we,{children:h.jsx(ox,{})})},{path:"operations",element:h.jsx(cn,{to:"/pace",replace:!0})},{element:h.jsx(Ki,{roleTypes:["admin","superadmin"],roleNames:["engineer"]}),children:[{element:h.jsx(m3,{}),children:[{path:"lines",element:h.jsx(we,{children:h.jsx(s5,{})})},{path:"lines/:siteId/:lineId",element:h.jsx(we,{children:h.jsx(i5,{})})}]}]},{element:h.jsx(Ki,{roleTypes:["admin","superadmin"],roleNames:["engineer"]}),children:[{path:"admin",element:h.jsx(we,{children:h.jsx(q3,{})})},{path:"admin/users",element:h.jsx(we,{children:h.jsx(z3,{})})},{path:"admin/escalation-chains",element:h.jsx(cn,{to:"/admin/roles",replace:!0})},{path:"admin/roles",element:h.jsx(we,{children:h.jsx(I3,{})})},{path:"admin/roles/:role",element:h.jsx(we,{children:h.jsx($3,{})})},{path:"admin/roles/:role/schema",element:h.jsx(we,{children:h.jsx(G3,{})})},{path:"admin/roles/:role/list-schema",element:h.jsx(we,{children:h.jsx(Y3,{})})},{path:"admin/scan-codes",element:h.jsx(we,{children:h.jsx(K3,{})})},{path:"admin/scan-codes/:version",element:h.jsx(we,{children:h.jsx(J3,{})})},{path:"admin/personas",element:h.jsx(we,{children:h.jsx(H3,{})})},{path:"admin/personas/:key",element:h.jsx(we,{children:h.jsx(F3,{})})}]},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"admin/bots",element:h.jsx(cn,{to:"/admin/users?tab=service-accounts",replace:!0})},{element:h.jsx(d3,{flag:"dbMaintenance"}),children:[{path:"admin/maintenance",element:h.jsx(we,{children:h.jsx(X3,{})})}]},{path:"admin/controlplane",element:h.jsx(we,{children:h.jsx(W3,{})})},{path:"admin/streams",element:h.jsx(we,{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=`${Vt}/api/settings/custom.css`;document.head.appendChild(Vm);WS.createRoot(document.getElementById("root")).render(h.jsx(E.StrictMode,{children:h.jsx(m5,{})}));export{qt 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,Xt 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,na 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,Eo as b2,tR as b3,qx as b4,n3 as b5,EM as b6,Vt 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,CM as bH,$5 as bI,gM as bJ,rT as bK,nR as bL,rR as bM,Wv as bN,sR as bO,iR as bP,qj as bQ,iC as bR,jm as bS,nv as bT,wM as bU,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,tn 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-
|
|
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(Zt,{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=en(),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(cn,{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}=qt(),e=en();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(cn,{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 qe({queryKey:["oauth-connections"],queryFn:()=>ue("/auth/oauth/connections")})}function rR(){const n=Pe();return $e({mutationFn:({provider:e,label:s})=>e3(e,s),onSuccess:()=>{n.invalidateQueries({queryKey:["oauth-connections"]})}})}function t3(){var ae;const{login:n,isAuthenticated:e}=qt(),s=ni(),i=en(),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,X;try{const W=await lm().catch(()=>null);if(!((F=W==null?void 0:W.auth)!=null&&F.sso))return;const he=await fetch(`${Vt}/api/auth/sso`,{method:"POST"});if(!he.ok){_("Host authentication required — please log in to your organization first");return}const Se=await he.json();Se.token&&((U=W.auth)!=null&&U.ssoLogoutUrl&&sessionStorage.setItem("lt_sso_logout_url",W.auth.ssoLogoutUrl),q(!0),n(Se.token,void 0,{displayName:(D=Se.user)==null?void 0:D.display_name,username:(X=Se.user)==null?void 0:X.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(cn,{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 X=await fetch(`${Vt}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:u.trim(),password:b})}),W=await X.json();if(!X.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:`${Vt}/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}=qt(),e=ni(),s=en(),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=`${Vt}/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 qe({queryKey:["oauth-client",n],queryFn:()=>ue(`/oauth/clients/${encodeURIComponent(n)}`),enabled:!!n,retry:!1})}function i3(n){return qe({queryKey:["oauth-presets"],queryFn:()=>ue("/oauth/presets"),enabled:n})}function a3(){return $e({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 qe({queryKey:["oauth-grants"],queryFn:()=>ue("/oauth/grants")})}function iR(){const n=Pe();return $e({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}=qt(),s=ni(),i=en(),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}=qt();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(cn,{to:s,replace:!0})}function f3(){const{data:n,isSuccess:e}=Hv();return e&&n.length===0?h.jsx(cn,{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(cn,{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(cn,{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(cn,{to:n,replace:!0})}const p3=E.lazy(()=>Oe(()=>import("./ProcessesListPage-BWKoKbXk.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-AidH_h7z.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-pSnadtSM.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-Cd9yCT-_.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-BHppCztI.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-CRyXeRp5.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-BCAJ3rKO.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-Cgmrl8Zc.js"),__vite__mapDeps([50,1,14,13,27,4]),import.meta.url).then(n=>({default:n.EscalationsOverview}))),S3=E.lazy(()=>Oe(()=>import("./AvailableEscalationsPage-B5p8QJvI.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-B4_OBhYh.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-CjjRxpVe.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-018s2q_p.js"),__vite__mapDeps([68,1,14,13,27,4]),import.meta.url).then(n=>({default:n.WorkflowsOverview}))),j3=E.lazy(()=>Oe(()=>import("./index-DMKLnxt8.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-DMKLnxt8.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-BKxhC_hT.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-BKxhC_hT.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-aVcNZNu6.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-CcDFhY53.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-C2zcXDr1.js"),__vite__mapDeps([74,1,25,19,70,13,4]),import.meta.url).then(n=>({default:n.YamlWorkflowDetailPage}))),D3=E.lazy(()=>Oe(()=>import("./TasksListPage-DHBSUhZC.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-m8CQFN4w.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-BUqIhtcr.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-DRE0hSDS.js"),__vite__mapDeps([78,1,2,23,18,13,4]),import.meta.url).then(n=>({default:n.AdminDashboard}))),P3=E.lazy(()=>Oe(()=>import("./index-DIU89TX3.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-CXXc9sUr.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-CXXc9sUr.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-BhS9XSy8.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-3HaFP00M.js"),__vite__mapDeps([85,1,23,14,13,41,4]),import.meta.url).then(n=>({default:n.McpServerDetailPage}))),z3=E.lazy(()=>Oe(()=>import("./index-CyL-6CAa.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-T2hH_MV5.js"),__vite__mapDeps([89,1,12,13,14,20,4]),import.meta.url).then(n=>({default:n.RolesPage}))),$3=E.lazy(()=>Oe(()=>import("./RoleDetailPage-D_30TDVh.js"),__vite__mapDeps([90,1,91,82,13,4]),import.meta.url).then(n=>({default:n.RoleDetailPage}))),H3=E.lazy(()=>Oe(()=>import("./PersonasPage-6HsOp-1y.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-BAYjM9qf.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-Co59lcuD.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-6OMr7KtJ.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-CrpBhC0e.js"),__vite__mapDeps([96,1,13,4]),import.meta.url).then(n=>({default:n.EscalationListSchemaPage}))),K3=E.lazy(()=>Oe(()=>import("./ScanCodesPage-lB_WxoZw.js"),__vite__mapDeps([97,1,98,14,13,4]),import.meta.url).then(n=>({default:n.ScanCodesPage}))),J3=E.lazy(()=>Oe(()=>import("./ScanSchemeDetailPage-C3VLg61H.js"),__vite__mapDeps([99,1,82,14,13,98,4]),import.meta.url).then(n=>({default:n.ScanSchemeDetailPage}))),Q3=E.lazy(()=>Oe(()=>import("./ScanStationPage-CVET1_4r.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-BuSUevzO.js"),__vite__mapDeps([101,1,14,13,54,4]),import.meta.url).then(n=>({default:n.MaintenancePage}))),ox=E.lazy(()=>Oe(()=>import("./OperationsPage-BtnthZgj.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-BFxHIfQ_.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-DhKGp4QK.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-DoFwNvFv.js"),__vite__mapDeps([105,1,14,13,49,82,4]),import.meta.url).then(n=>({default:n.CredentialsPage}))),t5=E.lazy(()=>Oe(()=>import("./ConnectedAppsPage-B0D2OvTD.js"),__vite__mapDeps([106,1,14,13,49,82,4]),import.meta.url).then(n=>({default:n.ConnectedAppsPage}))),n5=E.lazy(()=>Oe(()=>import("./index-DeyA88jq.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-CeeSFnl-.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-BXZVO4MC.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-DKwhGunp.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-Xahqcdu9.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-C4ZxCNxt.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-BiL9FB7i.js"),__vite__mapDeps([117,1,116,118,13,16,4]),import.meta.url).then(n=>({default:n.AgentDetailPage}))),lx=E.lazy(()=>Oe(()=>import("./AgentConfigPage-BuflQGgy.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-DmbC1pEs.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-BqZaVv3d.js"),__vite__mapDeps([123,1,121,14,13,12,4]),import.meta.url).then(n=>({default:n.TopicsPage}))),f5=E.lazy(()=>Oe(()=>import("./TopicDetailPage-DhPiCfOO.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 we({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(we,{children:h.jsx(a5,{})})},{path:"processes/all",element:h.jsx(we,{children:h.jsx(p3,{})})},{path:"processes/detail/:originId",element:h.jsx(we,{children:h.jsx(y3,{})})},{path:"credentials",element:h.jsx(we,{children:h.jsx(e5,{})})},{path:"connected-apps",element:h.jsx(we,{children:h.jsx(t5,{})})},{path:"connections",element:h.jsx(cn,{to:"/credentials",replace:!0})},{path:"escalations",element:h.jsx(we,{children:h.jsx(w3,{})})},{path:"escalations/available",element:h.jsx(we,{children:h.jsx(S3,{})})},{path:"escalations/queue",element:h.jsx(we,{children:h.jsx(E3,{})})},{path:"escalations/detail/:id",element:h.jsx(we,{children:h.jsx(O3,{})})},{path:"portal/:role/:portal?",element:h.jsx(we,{children:h.jsx(V3,{})})},{path:"scan/station",element:h.jsx(we,{children:h.jsx(Q3,{})})},{path:"capabilities",element:h.jsx(we,{children:h.jsx(c5,{})})},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"agents",element:h.jsx(we,{children:h.jsx(o5,{})})},{path:"agents/new",element:h.jsx(we,{children:h.jsx(lx,{})})},{path:"agents/:id",element:h.jsx(we,{children:h.jsx(l5,{})})},{path:"agents/:id/edit",element:h.jsx(we,{children:h.jsx(lx,{})})},{path:"topics",element:h.jsx(we,{children:h.jsx(u5,{})})},{path:"topics/:topic",element:h.jsx(we,{children:h.jsx(f5,{})})}]},{element:h.jsx(f3,{}),children:[{path:"workflows/start",element:h.jsx(we,{children:h.jsx(j3,{})})},{path:"workflows/durable/invoke",element:h.jsx(we,{children:h.jsx(k3,{})})}]},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"workflows",element:h.jsx(we,{children:h.jsx(A3,{})})},{path:"workflows/executions",element:h.jsx(we,{children:h.jsx(T3,{})})},{path:"workflows/durable/executions",element:h.jsx(we,{children:h.jsx(N3,{})})},{path:"workflows/durable/executions/:workflowId",element:h.jsx(we,{children:h.jsx(sx,{})})},{path:"workflows/tasks",element:h.jsx(we,{children:h.jsx(D3,{})})},{path:"workflows/tasks/detail/:id",element:h.jsx(we,{children:h.jsx(L3,{})})},{path:"workflows/executions/:workflowId",element:h.jsx(we,{children:h.jsx(sx,{})})},{path:"workflows/cron",element:h.jsx(cn,{to:"/workflows/start?mode=schedule",replace:!0})},{path:"workflows/workers",element:h.jsx(we,{children:h.jsx(P3,{})})},{path:"workflows/registry",element:h.jsx(we,{children:h.jsx(B3,{})})},{path:"workflows/registry/new",element:h.jsx(we,{children:h.jsx(ix,{})})},{path:"workflows/registry/:workflowType",element:h.jsx(we,{children:h.jsx(ix,{})})}]},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"mcp/workflows",element:h.jsx(we,{children:h.jsx(C3,{})})},{path:"mcp/workflows/invoke",element:h.jsx(we,{children:h.jsx(M3,{})})},{path:"mcp/workflows/:id",element:h.jsx(we,{children:h.jsx(R3,{})})},{path:"mcp/executions",element:h.jsx(we,{children:h.jsx(b3,{})})},{path:"mcp/executions/:jobId",element:h.jsx(we,{children:h.jsx(x3,{})})},{path:"files",element:h.jsx(we,{children:h.jsx(n5,{})})},{path:"knowledge",element:h.jsx(we,{children:h.jsx(r5,{})})},{element:h.jsx(h3,{}),children:[{path:"mcp",element:h.jsx(we,{children:h.jsx(g3,{})})},{path:"mcp/queries",element:h.jsx(we,{children:h.jsx(v3,{})})},{path:"mcp/queries/:workflowId",element:h.jsx(we,{children:h.jsx(_3,{})})},{path:"mcp/tools",element:h.jsx(cn,{to:"/mcp/servers",replace:!0})},{path:"mcp/servers",element:h.jsx(we,{children:h.jsx(U3,{})})},{path:"mcp/servers/new",element:h.jsx(we,{children:h.jsx(ax,{})})},{path:"mcp/servers/:serverId",element:h.jsx(we,{children:h.jsx(ax,{})})}]}]},{path:"pace",element:h.jsx(we,{children:h.jsx(ox,{})})},{path:"trends",element:h.jsx(we,{children:h.jsx(ox,{})})},{path:"operations",element:h.jsx(cn,{to:"/pace",replace:!0})},{element:h.jsx(Ki,{roleTypes:["admin","superadmin"],roleNames:["engineer"]}),children:[{element:h.jsx(m3,{}),children:[{path:"lines",element:h.jsx(we,{children:h.jsx(s5,{})})},{path:"lines/:siteId/:lineId",element:h.jsx(we,{children:h.jsx(i5,{})})}]}]},{element:h.jsx(Ki,{roleTypes:["admin","superadmin"],roleNames:["engineer"]}),children:[{path:"admin",element:h.jsx(we,{children:h.jsx(q3,{})})},{path:"admin/users",element:h.jsx(we,{children:h.jsx(z3,{})})},{path:"admin/escalation-chains",element:h.jsx(cn,{to:"/admin/roles",replace:!0})},{path:"admin/roles",element:h.jsx(we,{children:h.jsx(I3,{})})},{path:"admin/roles/:role",element:h.jsx(we,{children:h.jsx($3,{})})},{path:"admin/roles/:role/schema",element:h.jsx(we,{children:h.jsx(G3,{})})},{path:"admin/roles/:role/list-schema",element:h.jsx(we,{children:h.jsx(Y3,{})})},{path:"admin/scan-codes",element:h.jsx(we,{children:h.jsx(K3,{})})},{path:"admin/scan-codes/:version",element:h.jsx(we,{children:h.jsx(J3,{})})},{path:"admin/personas",element:h.jsx(we,{children:h.jsx(H3,{})})},{path:"admin/personas/:key",element:h.jsx(we,{children:h.jsx(F3,{})})}]},{element:h.jsx(Ki,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"admin/bots",element:h.jsx(cn,{to:"/admin/users?tab=service-accounts",replace:!0})},{element:h.jsx(d3,{flag:"dbMaintenance"}),children:[{path:"admin/maintenance",element:h.jsx(we,{children:h.jsx(X3,{})})}]},{path:"admin/controlplane",element:h.jsx(we,{children:h.jsx(W3,{})})},{path:"admin/streams",element:h.jsx(we,{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=`${Vt}/api/settings/custom.css`;document.head.appendChild(Vm);WS.createRoot(document.getElementById("root")).render(h.jsx(E.StrictMode,{children:h.jsx(m5,{})}));export{qt 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,Xt 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,na 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,Eo as b2,tR as b3,qx as b4,n3 as b5,EM as b6,Vt 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,CM as bH,$5 as bI,gM as bJ,rT as bK,nR as bL,rR as bM,Wv as bN,sR as bO,iR as bP,qj as bQ,iC as bR,jm as bS,nv as bT,wM as bU,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,tn 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-pzbGpihI.js.map
|