@hotmeshio/long-tail 0.16.0 → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/build/shared/form-validation/field-validator.d.ts +12 -0
  2. package/build/shared/form-validation/field-validator.js +31 -3
  3. package/build/shared/form-validation/x-lt-options.d.ts +7 -2
  4. package/build/shared/form-validation/x-lt-options.js +32 -10
  5. package/dashboard/dist/assets/{AdminDashboard-BVgjY4zN.js → AdminDashboard-BrOvvDHF.js} +2 -2
  6. package/dashboard/dist/assets/{AdminDashboard-BVgjY4zN.js.map → AdminDashboard-BrOvvDHF.js.map} +1 -1
  7. package/dashboard/dist/assets/{AgentConfigPage-ChL59YL5.js → AgentConfigPage-CtVq8J0L.js} +2 -2
  8. package/dashboard/dist/assets/{AgentConfigPage-ChL59YL5.js.map → AgentConfigPage-CtVq8J0L.js.map} +1 -1
  9. package/dashboard/dist/assets/{AgentDetailPage-IJfgCOIF.js → AgentDetailPage-DTfTQDug.js} +2 -2
  10. package/dashboard/dist/assets/{AgentDetailPage-IJfgCOIF.js.map → AgentDetailPage-DTfTQDug.js.map} +1 -1
  11. package/dashboard/dist/assets/{AgentsPage-C7PnPXz_.js → AgentsPage-vCTc3Qvj.js} +2 -2
  12. package/dashboard/dist/assets/{AgentsPage-C7PnPXz_.js.map → AgentsPage-vCTc3Qvj.js.map} +1 -1
  13. package/dashboard/dist/assets/{AvailableEscalationsPage-C5f2rqHa.js → AvailableEscalationsPage-DJODShd7.js} +2 -2
  14. package/dashboard/dist/assets/{AvailableEscalationsPage-C5f2rqHa.js.map → AvailableEscalationsPage-DJODShd7.js.map} +1 -1
  15. package/dashboard/dist/assets/{BotPicker-CBf6bHLV.js → BotPicker-GU44inXA.js} +2 -2
  16. package/dashboard/dist/assets/{BotPicker-CBf6bHLV.js.map → BotPicker-GU44inXA.js.map} +1 -1
  17. package/dashboard/dist/assets/{BulkAssignModal-CkxoPByA.js → BulkAssignModal-ChqzG6FY.js} +2 -2
  18. package/dashboard/dist/assets/{BulkAssignModal-CkxoPByA.js.map → BulkAssignModal-ChqzG6FY.js.map} +1 -1
  19. package/dashboard/dist/assets/{CapabilitiesPage-D7USh3F0.js → CapabilitiesPage-Y2hycdPY.js} +2 -2
  20. package/dashboard/dist/assets/{CapabilitiesPage-D7USh3F0.js.map → CapabilitiesPage-Y2hycdPY.js.map} +1 -1
  21. package/dashboard/dist/assets/{CollapsibleSection-DfPpAIxa.js → CollapsibleSection-CmCwt_Rs.js} +2 -2
  22. package/dashboard/dist/assets/{CollapsibleSection-DfPpAIxa.js.map → CollapsibleSection-CmCwt_Rs.js.map} +1 -1
  23. package/dashboard/dist/assets/{CountdownTimer-DVL7WIcE.js → CountdownTimer-Bx2XXJOd.js} +2 -2
  24. package/dashboard/dist/assets/{CountdownTimer-DVL7WIcE.js.map → CountdownTimer-Bx2XXJOd.js.map} +1 -1
  25. package/dashboard/dist/assets/{CredentialsPage-BHZ5SKIu.js → CredentialsPage-CoX_PNBe.js} +2 -2
  26. package/dashboard/dist/assets/{CredentialsPage-BHZ5SKIu.js.map → CredentialsPage-CoX_PNBe.js.map} +1 -1
  27. package/dashboard/dist/assets/{CronLabel-wE8Hms6c.js → CronLabel-CVYKRipP.js} +2 -2
  28. package/dashboard/dist/assets/{CronLabel-wE8Hms6c.js.map → CronLabel-CVYKRipP.js.map} +1 -1
  29. package/dashboard/dist/assets/{ElapsedCell-B4VxKHpw.js → ElapsedCell-jRURiCRW.js} +2 -2
  30. package/dashboard/dist/assets/{ElapsedCell-B4VxKHpw.js.map → ElapsedCell-jRURiCRW.js.map} +1 -1
  31. package/dashboard/dist/assets/{EntityTimelinePanel-CFbQDHOj.js → EntityTimelinePanel-G6nzvgpl.js} +2 -2
  32. package/dashboard/dist/assets/{EntityTimelinePanel-CFbQDHOj.js.map → EntityTimelinePanel-G6nzvgpl.js.map} +1 -1
  33. package/dashboard/dist/assets/{EscalationListSchemaPage-YTgexl4f.js → EscalationListSchemaPage-D-rVTQ1m.js} +2 -2
  34. package/dashboard/dist/assets/{EscalationListSchemaPage-YTgexl4f.js.map → EscalationListSchemaPage-D-rVTQ1m.js.map} +1 -1
  35. package/dashboard/dist/assets/{EscalationSchemaPage-Sjk05eHP.js → EscalationSchemaPage-CV0R_xY9.js} +2 -2
  36. package/dashboard/dist/assets/{EscalationSchemaPage-Sjk05eHP.js.map → EscalationSchemaPage-CV0R_xY9.js.map} +1 -1
  37. package/dashboard/dist/assets/{EscalationsOverview-gHWPjUpZ.js → EscalationsOverview-DMdx15CQ.js} +2 -2
  38. package/dashboard/dist/assets/{EscalationsOverview-gHWPjUpZ.js.map → EscalationsOverview-DMdx15CQ.js.map} +1 -1
  39. package/dashboard/dist/assets/{EventTable-C9lHQ57t.js → EventTable-CIvsdt-q.js} +2 -2
  40. package/dashboard/dist/assets/{EventTable-C9lHQ57t.js.map → EventTable-CIvsdt-q.js.map} +1 -1
  41. package/dashboard/dist/assets/{FilterBar-BY--ANxv.js → FilterBar-DWYGkVRH.js} +2 -2
  42. package/dashboard/dist/assets/{FilterBar-BY--ANxv.js.map → FilterBar-DWYGkVRH.js.map} +1 -1
  43. package/dashboard/dist/assets/{GraphInvokePage-B-Oo5s-W.js → GraphInvokePage-BGHlXh4r.js} +2 -2
  44. package/dashboard/dist/assets/{GraphInvokePage-B-Oo5s-W.js.map → GraphInvokePage-BGHlXh4r.js.map} +1 -1
  45. package/dashboard/dist/assets/{HomePage-BrcjKOaJ.js → HomePage-BHOnp8SK.js} +2 -2
  46. package/dashboard/dist/assets/{HomePage-BrcjKOaJ.js.map → HomePage-BHOnp8SK.js.map} +1 -1
  47. package/dashboard/dist/assets/{ListToolbar-D5TQ4X_M.js → ListToolbar-iOgn_db5.js} +2 -2
  48. package/dashboard/dist/assets/{ListToolbar-D5TQ4X_M.js.map → ListToolbar-iOgn_db5.js.map} +1 -1
  49. package/dashboard/dist/assets/{McpOverview-jlukVWQ7.js → McpOverview-Be9sMKCA.js} +2 -2
  50. package/dashboard/dist/assets/{McpOverview-jlukVWQ7.js.map → McpOverview-Be9sMKCA.js.map} +1 -1
  51. package/dashboard/dist/assets/{McpQueryDetailPage-BWKbvJSd.js → McpQueryDetailPage-BIgpmGJN.js} +2 -2
  52. package/dashboard/dist/assets/{McpQueryDetailPage-BWKbvJSd.js.map → McpQueryDetailPage-BIgpmGJN.js.map} +1 -1
  53. package/dashboard/dist/assets/{McpQueryPage-BH2Pon4M.js → McpQueryPage-Okcxw_Um.js} +2 -2
  54. package/dashboard/dist/assets/{McpQueryPage-BH2Pon4M.js.map → McpQueryPage-Okcxw_Um.js.map} +1 -1
  55. package/dashboard/dist/assets/{McpRunDetailPage-kUnq2QSO.js → McpRunDetailPage-DT8kOfih.js} +2 -2
  56. package/dashboard/dist/assets/{McpRunDetailPage-kUnq2QSO.js.map → McpRunDetailPage-DT8kOfih.js.map} +1 -1
  57. package/dashboard/dist/assets/{McpRunsPage-BTucgt64.js → McpRunsPage-BXhoP77D.js} +2 -2
  58. package/dashboard/dist/assets/{McpRunsPage-BTucgt64.js.map → McpRunsPage-BXhoP77D.js.map} +1 -1
  59. package/dashboard/dist/assets/{OperationsPage-Cp8WL-ld.js → OperationsPage-rVhC8JPv.js} +2 -2
  60. package/dashboard/dist/assets/{OperationsPage-Cp8WL-ld.js.map → OperationsPage-rVhC8JPv.js.map} +1 -1
  61. package/dashboard/dist/assets/{OperatorDashboard-wHyeLWzX.js → OperatorDashboard-CIt061hu.js} +2 -2
  62. package/dashboard/dist/assets/{OperatorDashboard-wHyeLWzX.js.map → OperatorDashboard-CIt061hu.js.map} +1 -1
  63. package/dashboard/dist/assets/{PersonaDetailPage-BXlTqLDK.js → PersonaDetailPage-r46uNF4E.js} +2 -2
  64. package/dashboard/dist/assets/{PersonaDetailPage-BXlTqLDK.js.map → PersonaDetailPage-r46uNF4E.js.map} +1 -1
  65. package/dashboard/dist/assets/{PersonasPage-DlmdJ3Dm.js → PersonasPage-CayYv9-j.js} +2 -2
  66. package/dashboard/dist/assets/{PersonasPage-DlmdJ3Dm.js.map → PersonasPage-CayYv9-j.js.map} +1 -1
  67. package/dashboard/dist/assets/{ProcessDetailPage-D88ocvmT.js → ProcessDetailPage-dn7lkM4c.js} +2 -2
  68. package/dashboard/dist/assets/{ProcessDetailPage-D88ocvmT.js.map → ProcessDetailPage-dn7lkM4c.js.map} +1 -1
  69. package/dashboard/dist/assets/{ProcessesListPage-DpXm-KtK.js → ProcessesListPage-DOp5J6Be.js} +2 -2
  70. package/dashboard/dist/assets/{ProcessesListPage-DpXm-KtK.js.map → ProcessesListPage-DOp5J6Be.js.map} +1 -1
  71. package/dashboard/dist/assets/{RoleDetailPage-DE2Rj2QE.js → RoleDetailPage-DOlNoiAK.js} +2 -2
  72. package/dashboard/dist/assets/{RoleDetailPage-DE2Rj2QE.js.map → RoleDetailPage-DOlNoiAK.js.map} +1 -1
  73. package/dashboard/dist/assets/{RolesPage-CZSvJlsz.js → RolesPage-DPppT6Zl.js} +2 -2
  74. package/dashboard/dist/assets/{RolesPage-CZSvJlsz.js.map → RolesPage-DPppT6Zl.js.map} +1 -1
  75. package/dashboard/dist/assets/{RunAsSelector-BawZcqAk.js → RunAsSelector-BgntKfSA.js} +2 -2
  76. package/dashboard/dist/assets/{RunAsSelector-BawZcqAk.js.map → RunAsSelector-BgntKfSA.js.map} +1 -1
  77. package/dashboard/dist/assets/{ScanCodesPage-DSlpA9kK.js → ScanCodesPage-DPm1lG79.js} +2 -2
  78. package/dashboard/dist/assets/{ScanCodesPage-DSlpA9kK.js.map → ScanCodesPage-DPm1lG79.js.map} +1 -1
  79. package/dashboard/dist/assets/{ScanSchemeDetailPage-BK4hisGD.js → ScanSchemeDetailPage-CuoG89q1.js} +2 -2
  80. package/dashboard/dist/assets/{ScanSchemeDetailPage-BK4hisGD.js.map → ScanSchemeDetailPage-CuoG89q1.js.map} +1 -1
  81. package/dashboard/dist/assets/{ScanStationPage-D3QjajFD.js → ScanStationPage-2SLXqqs0.js} +2 -2
  82. package/dashboard/dist/assets/{ScanStationPage-D3QjajFD.js.map → ScanStationPage-2SLXqqs0.js.map} +1 -1
  83. package/dashboard/dist/assets/{StickyPagination-BfZwU2NR.js → StickyPagination-Bc_Mzu_R.js} +2 -2
  84. package/dashboard/dist/assets/{StickyPagination-BfZwU2NR.js.map → StickyPagination-Bc_Mzu_R.js.map} +1 -1
  85. package/dashboard/dist/assets/{StreamMessageDetail-C7zIHX5D.js → StreamMessageDetail-S1cnLGkf.js} +2 -2
  86. package/dashboard/dist/assets/{StreamMessageDetail-C7zIHX5D.js.map → StreamMessageDetail-S1cnLGkf.js.map} +1 -1
  87. package/dashboard/dist/assets/{SwimlaneTimeline-DNSo8AT8.js → SwimlaneTimeline-BUu2sPmY.js} +2 -2
  88. package/dashboard/dist/assets/{SwimlaneTimeline-DNSo8AT8.js.map → SwimlaneTimeline-BUu2sPmY.js.map} +1 -1
  89. package/dashboard/dist/assets/{TaskDetailPage-BOJ8pwh3.js → TaskDetailPage-BMfNNtbN.js} +2 -2
  90. package/dashboard/dist/assets/{TaskDetailPage-BOJ8pwh3.js.map → TaskDetailPage-BMfNNtbN.js.map} +1 -1
  91. package/dashboard/dist/assets/{TasksListPage-C4CYqZf8.js → TasksListPage-BmNnopOU.js} +2 -2
  92. package/dashboard/dist/assets/{TasksListPage-C4CYqZf8.js.map → TasksListPage-BmNnopOU.js.map} +1 -1
  93. package/dashboard/dist/assets/{TimeAgo-JRPi9IEd.js → TimeAgo-Dip7gQQx.js} +2 -2
  94. package/dashboard/dist/assets/{TimeAgo-JRPi9IEd.js.map → TimeAgo-Dip7gQQx.js.map} +1 -1
  95. package/dashboard/dist/assets/{TimestampCell-BVYyU-nl.js → TimestampCell-DRAYnIrx.js} +2 -2
  96. package/dashboard/dist/assets/{TimestampCell-BVYyU-nl.js.map → TimestampCell-DRAYnIrx.js.map} +1 -1
  97. package/dashboard/dist/assets/{ToolTestPanel-IGrd44Au.js → ToolTestPanel-CQVYC3Ba.js} +2 -2
  98. package/dashboard/dist/assets/{ToolTestPanel-IGrd44Au.js.map → ToolTestPanel-CQVYC3Ba.js.map} +1 -1
  99. package/dashboard/dist/assets/{TopicDetailPage-DhianNey.js → TopicDetailPage-Bmtwuksg.js} +2 -2
  100. package/dashboard/dist/assets/{TopicDetailPage-DhianNey.js.map → TopicDetailPage-Bmtwuksg.js.map} +1 -1
  101. package/dashboard/dist/assets/{TopicsPage-Glhqz_Nv.js → TopicsPage-DIgF7-mJ.js} +2 -2
  102. package/dashboard/dist/assets/{TopicsPage-Glhqz_Nv.js.map → TopicsPage-DIgF7-mJ.js.map} +1 -1
  103. package/dashboard/dist/assets/{UserName-CD9OqhNI.js → UserName-DNKFz7X9.js} +2 -2
  104. package/dashboard/dist/assets/{UserName-CD9OqhNI.js.map → UserName-DNKFz7X9.js.map} +1 -1
  105. package/dashboard/dist/assets/{WorkflowExecutionPage-8Q2438Ry.js → WorkflowExecutionPage-DraIBNpl.js} +2 -2
  106. package/dashboard/dist/assets/{WorkflowExecutionPage-8Q2438Ry.js.map → WorkflowExecutionPage-DraIBNpl.js.map} +1 -1
  107. package/dashboard/dist/assets/{WorkflowsDashboard-CkAoYT86.js → WorkflowsDashboard-BH7kmFjM.js} +2 -2
  108. package/dashboard/dist/assets/{WorkflowsDashboard-CkAoYT86.js.map → WorkflowsDashboard-BH7kmFjM.js.map} +1 -1
  109. package/dashboard/dist/assets/{WorkflowsOverview-Zh_EidMp.js → WorkflowsOverview-C98pCjQX.js} +2 -2
  110. package/dashboard/dist/assets/{WorkflowsOverview-Zh_EidMp.js.map → WorkflowsOverview-C98pCjQX.js.map} +1 -1
  111. package/dashboard/dist/assets/{YamlWorkflowDetailPage-BKJbFT8C.js → YamlWorkflowDetailPage-BWQjXenZ.js} +2 -2
  112. package/dashboard/dist/assets/{YamlWorkflowDetailPage-BKJbFT8C.js.map → YamlWorkflowDetailPage-BWQjXenZ.js.map} +1 -1
  113. package/dashboard/dist/assets/{YamlWorkflowsPage-DK1z6iFt.js → YamlWorkflowsPage-BGTI_sdP.js} +2 -2
  114. package/dashboard/dist/assets/{YamlWorkflowsPage-DK1z6iFt.js.map → YamlWorkflowsPage-BGTI_sdP.js.map} +1 -1
  115. package/dashboard/dist/assets/{agents-BEASyYpg.js → agents-DfMrlw54.js} +2 -2
  116. package/dashboard/dist/assets/{agents-BEASyYpg.js.map → agents-DfMrlw54.js.map} +1 -1
  117. package/dashboard/dist/assets/{bots-CaXqSHat.js → bots-B9zS0z7D.js} +2 -2
  118. package/dashboard/dist/assets/{bots-CaXqSHat.js.map → bots-B9zS0z7D.js.map} +1 -1
  119. package/dashboard/dist/assets/{capabilities-Cijq-qev.js → capabilities-DkLM1xgH.js} +2 -2
  120. package/dashboard/dist/assets/{capabilities-Cijq-qev.js.map → capabilities-DkLM1xgH.js.map} +1 -1
  121. package/dashboard/dist/assets/{controlplane-HGuRC7AW.js → controlplane-SJK1yvbm.js} +2 -2
  122. package/dashboard/dist/assets/{controlplane-HGuRC7AW.js.map → controlplane-SJK1yvbm.js.map} +1 -1
  123. package/dashboard/dist/assets/{escalation-columns-BLVz8XCP.js → escalation-columns-BvAylNM1.js} +2 -2
  124. package/dashboard/dist/assets/{escalation-columns-BLVz8XCP.js.map → escalation-columns-BvAylNM1.js.map} +1 -1
  125. package/dashboard/dist/assets/{index-CEIp6WWg.js → index-CLxuBb17.js} +2 -2
  126. package/dashboard/dist/assets/{index-CEIp6WWg.js.map → index-CLxuBb17.js.map} +1 -1
  127. package/dashboard/dist/assets/{index-ClY0ihQ5.js → index-CXe2d5kg.js} +2 -2
  128. package/dashboard/dist/assets/{index-ClY0ihQ5.js.map → index-CXe2d5kg.js.map} +1 -1
  129. package/dashboard/dist/assets/{index-IkgBE7e_.js → index-ClVNU3G3.js} +2 -2
  130. package/dashboard/dist/assets/{index-IkgBE7e_.js.map → index-ClVNU3G3.js.map} +1 -1
  131. package/dashboard/dist/assets/{index-D2OU2MJb.js → index-Cw-V0VhS.js} +2 -2
  132. package/dashboard/dist/assets/{index-D2OU2MJb.js.map → index-Cw-V0VhS.js.map} +1 -1
  133. package/dashboard/dist/assets/{index-Xi3LO4Ye.js → index-D2IRxjSf.js} +2 -2
  134. package/dashboard/dist/assets/{index-Xi3LO4Ye.js.map → index-D2IRxjSf.js.map} +1 -1
  135. package/dashboard/dist/assets/{index-t1JXcmBG.js → index-DKXOIcO3.js} +2 -2
  136. package/dashboard/dist/assets/{index-t1JXcmBG.js.map → index-DKXOIcO3.js.map} +1 -1
  137. package/dashboard/dist/assets/{index-YMd3ZiPd.js → index-DSfY8oDp.js} +2 -2
  138. package/dashboard/dist/assets/{index-YMd3ZiPd.js.map → index-DSfY8oDp.js.map} +1 -1
  139. package/dashboard/dist/assets/index-DTZxHZJO.js +3 -0
  140. package/dashboard/dist/assets/index-DTZxHZJO.js.map +1 -0
  141. package/dashboard/dist/assets/{index-tCDjx1kF.js → index-DamcWcqG.js} +2 -2
  142. package/dashboard/dist/assets/{index-tCDjx1kF.js.map → index-DamcWcqG.js.map} +1 -1
  143. package/dashboard/dist/assets/{index-Cg0vCZng.js → index-DazfFRUx.js} +2 -2
  144. package/dashboard/dist/assets/{index-Cg0vCZng.js.map → index-DazfFRUx.js.map} +1 -1
  145. package/dashboard/dist/assets/{index-BJDAXUzO.js → index-DvmyIGeZ.js} +2 -2
  146. package/dashboard/dist/assets/{index-BJDAXUzO.js.map → index-DvmyIGeZ.js.map} +1 -1
  147. package/dashboard/dist/assets/{index-CLQ0HBHR.js → index-PjiXOVdw.js} +2 -2
  148. package/dashboard/dist/assets/{index-CLQ0HBHR.js.map → index-PjiXOVdw.js.map} +1 -1
  149. package/dashboard/dist/assets/{index-CgXVDPW-.js → index-zrTQcPjB.js} +3 -3
  150. package/dashboard/dist/assets/{index-CgXVDPW-.js.map → index-zrTQcPjB.js.map} +1 -1
  151. package/dashboard/dist/assets/{knowledge-DpaUJtVW.js → knowledge-BNp6MH-4.js} +2 -2
  152. package/dashboard/dist/assets/{knowledge-DpaUJtVW.js.map → knowledge-BNp6MH-4.js.map} +1 -1
  153. package/dashboard/dist/assets/{mcp-BkkLq6OE.js → mcp-Bb1k5rv-.js} +2 -2
  154. package/dashboard/dist/assets/{mcp-BkkLq6OE.js.map → mcp-Bb1k5rv-.js.map} +1 -1
  155. package/dashboard/dist/assets/{mcp-query-DeXu3La5.js → mcp-query-QVakMQnS.js} +2 -2
  156. package/dashboard/dist/assets/{mcp-query-DeXu3La5.js.map → mcp-query-QVakMQnS.js.map} +1 -1
  157. package/dashboard/dist/assets/{personas-BRbKVVko.js → personas-DV2JUjVj.js} +2 -2
  158. package/dashboard/dist/assets/{personas-BRbKVVko.js.map → personas-DV2JUjVj.js.map} +1 -1
  159. package/dashboard/dist/assets/{pipelines-B7xo92sK.js → pipelines-BkVB7Q0p.js} +2 -2
  160. package/dashboard/dist/assets/{pipelines-B7xo92sK.js.map → pipelines-BkVB7Q0p.js.map} +1 -1
  161. package/dashboard/dist/assets/{tasks-BGyqM1Ho.js → tasks-DvYWcASM.js} +2 -2
  162. package/dashboard/dist/assets/{tasks-BGyqM1Ho.js.map → tasks-DvYWcASM.js.map} +1 -1
  163. package/dashboard/dist/assets/{topics-I81rKc75.js → topics-B9zXFuVG.js} +2 -2
  164. package/dashboard/dist/assets/{topics-I81rKc75.js.map → topics-B9zXFuVG.js.map} +1 -1
  165. package/dashboard/dist/assets/{useEventHooks-CjV3uNxt.js → useEventHooks-JDpifqGZ.js} +2 -2
  166. package/dashboard/dist/assets/{useEventHooks-CjV3uNxt.js.map → useEventHooks-JDpifqGZ.js.map} +1 -1
  167. package/dashboard/dist/assets/{useNamespace-B-HMdRka.js → useNamespace-Bqr-LdWx.js} +2 -2
  168. package/dashboard/dist/assets/{useNamespace-B-HMdRka.js.map → useNamespace-Bqr-LdWx.js.map} +1 -1
  169. package/dashboard/dist/assets/{useYamlActivityEvents-CNsAlsgz.js → useYamlActivityEvents-n3naCEbw.js} +2 -2
  170. package/dashboard/dist/assets/{useYamlActivityEvents-CNsAlsgz.js.map → useYamlActivityEvents-n3naCEbw.js.map} +1 -1
  171. package/dashboard/dist/assets/{users-DiTqBepm.js → users-BNXLRVTS.js} +2 -2
  172. package/dashboard/dist/assets/{users-DiTqBepm.js.map → users-BNXLRVTS.js.map} +1 -1
  173. package/dashboard/dist/assets/{workflows-TA0p_3B8.js → workflows-D8uMBPvQ.js} +2 -2
  174. package/dashboard/dist/assets/{workflows-TA0p_3B8.js.map → workflows-D8uMBPvQ.js.map} +1 -1
  175. package/dashboard/dist/assets/{yaml-workflows-DN9-DBnQ.js → yaml-workflows-DVDOQM3Y.js} +2 -2
  176. package/dashboard/dist/assets/{yaml-workflows-DN9-DBnQ.js.map → yaml-workflows-DVDOQM3Y.js.map} +1 -1
  177. package/dashboard/dist/index.html +1 -1
  178. package/docs/hitl/lookups.md +13 -0
  179. package/docs/hitl/x-lt-validation.md +2 -1
  180. package/docs/hitl/x-lt-widget.md +8 -1
  181. package/docs/hitl-guide.md +2 -1
  182. package/package.json +1 -1
  183. package/dashboard/dist/assets/index-CK_ohh6Q.js +0 -3
  184. package/dashboard/dist/assets/index-CK_ohh6Q.js.map +0 -1
@@ -15,6 +15,18 @@ interface ChecklistItem {
15
15
  * list.
16
16
  */
17
17
  export declare function resolveChecklistItems(sourcePath: unknown, ctx: Record<string, unknown> | undefined): ChecklistItem[];
18
+ export declare const X_LT_DEFAULT_CHECKED = "x-lt-default-checked";
19
+ /**
20
+ * The checklist's first-load default (`x-lt-default-checked`): every resolved
21
+ * item starts checked, for affirm-then-exception flows where the submitter
22
+ * unchecks what failed. Returns the all-checked answer map ONLY when the
23
+ * field carries no answer yet — a saved or drafted map (any key, even
24
+ * all-false) is never clobbered — and null otherwise: absent flag, existing
25
+ * answer, or a source that resolves to no items. Declared on the widget
26
+ * because the item set is runtime-sourced (envelope or lookup): a pure
27
+ * escalation-minting step cannot enumerate the ids to seed formDefaults.
28
+ */
29
+ export declare function resolveChecklistDefault(fieldSchema: Record<string, unknown> | null | undefined, currentValue: unknown, ctx?: Record<string, unknown>): Record<string, boolean> | null;
18
30
  /**
19
31
  * The checklist completion guard (`x-lt-require-all`): every rendered item must
20
32
  * be checked, except items whose definition carries `required: false` (the
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.X_LT_DEFAULT_CHECKED = void 0;
3
4
  exports.resolveChecklistItems = resolveChecklistItems;
5
+ exports.resolveChecklistDefault = resolveChecklistDefault;
4
6
  exports.validateRequireAll = validateRequireAll;
5
7
  exports.validateFieldType = validateFieldType;
6
8
  exports.validateFieldConstraints = validateFieldConstraints;
@@ -27,6 +29,31 @@ function resolveChecklistItems(sourcePath, ctx) {
27
29
  const cur = (0, ctx_path_1.resolveCtxPath)(concrete, ctx);
28
30
  return Array.isArray(cur) ? cur : [];
29
31
  }
32
+ exports.X_LT_DEFAULT_CHECKED = 'x-lt-default-checked';
33
+ /**
34
+ * The checklist's first-load default (`x-lt-default-checked`): every resolved
35
+ * item starts checked, for affirm-then-exception flows where the submitter
36
+ * unchecks what failed. Returns the all-checked answer map ONLY when the
37
+ * field carries no answer yet — a saved or drafted map (any key, even
38
+ * all-false) is never clobbered — and null otherwise: absent flag, existing
39
+ * answer, or a source that resolves to no items. Declared on the widget
40
+ * because the item set is runtime-sourced (envelope or lookup): a pure
41
+ * escalation-minting step cannot enumerate the ids to seed formDefaults.
42
+ */
43
+ function resolveChecklistDefault(fieldSchema, currentValue, ctx) {
44
+ if (fieldSchema?.['x-lt-widget'] !== 'checklist')
45
+ return null;
46
+ if (fieldSchema[exports.X_LT_DEFAULT_CHECKED] !== true)
47
+ return null;
48
+ if (currentValue && typeof currentValue === 'object' && !Array.isArray(currentValue)
49
+ && Object.keys(currentValue).length > 0) {
50
+ return null;
51
+ }
52
+ const items = resolveChecklistItems(fieldSchema['x-lt-source'], ctx);
53
+ if (items.length === 0)
54
+ return null;
55
+ return Object.fromEntries(items.map((i) => [i.id, true]));
56
+ }
30
57
  /**
31
58
  * The checklist completion guard (`x-lt-require-all`): every rendered item must
32
59
  * be checked, except items whose definition carries `required: false` (the
@@ -96,7 +123,8 @@ function validateFieldConstraints(value, fieldSchema, ctx) {
96
123
  return undefined;
97
124
  // Option membership — the form's select widget constrains choices; API-first
98
125
  // callers are unconstrained, so the effective option list is the contract:
99
- // the static enum, or the x-lt-options list resolved from context. An
126
+ // the static enum, or the x-lt-options list resolved from context. The
127
+ // submitted answer is the option VALUE (labels are presentation). An
100
128
  // interpolated list that currently offers nothing fails closed — a stale
101
129
  // cascade child value never submits.
102
130
  const allowed = (0, x_lt_options_1.resolveFieldOptions)(fieldSchema, ctx);
@@ -104,8 +132,8 @@ function validateFieldConstraints(value, fieldSchema, ctx) {
104
132
  if (allowed.length === 0) {
105
133
  return 'No valid options for this selection';
106
134
  }
107
- if (!allowed.includes(value)) {
108
- return `Must be one of: ${allowed.map((v) => String(v)).join(', ')}`;
135
+ if (!allowed.some((o) => o.value === value)) {
136
+ return `Must be one of: ${allowed.map((o) => String(o.value)).join(', ')}`;
109
137
  }
110
138
  }
111
139
  if (typeof value === 'string') {
@@ -1,7 +1,12 @@
1
1
  export declare const X_LT_OPTIONS = "x-lt-options";
2
2
  export type OptionValue = string | number;
3
+ /** One resolved option: the payload value and the rendered label. */
4
+ export interface ResolvedOption {
5
+ value: OptionValue;
6
+ label: string;
7
+ }
3
8
  /**
4
9
  * The field's effective option list: the static `enum` when present, else the
5
- * scalars at the token's `"domain.path"`.
10
+ * entries at the token's `"domain.path"`.
6
11
  */
7
- export declare function resolveFieldOptions(fieldSchema: Record<string, unknown> | null | undefined, ctx: Record<string, unknown> | undefined): OptionValue[] | undefined;
12
+ export declare function resolveFieldOptions(fieldSchema: Record<string, unknown> | null | undefined, ctx: Record<string, unknown> | undefined): ResolvedOption[] | undefined;
@@ -5,16 +5,20 @@ exports.resolveFieldOptions = resolveFieldOptions;
5
5
  /**
6
6
  * x-lt-options — a select's option list resolved from the escalation context.
7
7
  * The field-level token names a `"domain.path"`; the value at that path is an
8
- * array of scalars (strings or numbers) that becomes the field's option list,
9
- * so one static role form can offer a different legal set per escalation
10
- * (e.g. `[1..N]` where N rides the envelope, or a versioned knowledge lookup
11
- * under the `lookup` domain).
8
+ * array whose entries are scalars (strings or numbers) or `{ value, label }`
9
+ * objects (`{ id, label }` accepted as an alias), so one static role form can
10
+ * offer a different legal set per escalation (e.g. `[1..N]` where N rides the
11
+ * envelope, or a versioned knowledge lookup under the `lookup` domain).
12
12
  *
13
13
  * x-lt-options "domain.path" — e.g. "envelope.left_quantity_options"
14
14
  * paths may embed {{domain.path}} interpolation segments —
15
15
  * e.g. "lookup.geo.regions.{{resolver.country}}" — making
16
16
  * the option list follow another answer (cascading selects)
17
17
  *
18
+ * Object entries separate what the submitter SEES from what the payload
19
+ * STORES: the select renders the label and emits the value (a DB-backed pick
20
+ * list showing text while storing its foreign key). A scalar entry is both.
21
+ *
18
22
  * A static `enum` takes precedence when both are present — the same
19
23
  * static-over-dynamic rule as x-lt-minimum/x-lt-maximum. Resolution is a
20
24
  * tri-state:
@@ -23,22 +27,40 @@ exports.resolveFieldOptions = resolveFieldOptions;
23
27
  * (the field renders as its plain input; membership unenforced)
24
28
  * [] — a dynamic (interpolated) contract offering nothing YET: the
25
29
  * select renders disabled and a present value fails membership
26
- * values — the option list
30
+ * options — the option list
27
31
  *
28
- * Non-scalar entries in a resolved array are dropped.
32
+ * Malformed entries in a resolved array are dropped.
29
33
  */
30
34
  const ctx_path_1 = require("./ctx-path");
31
35
  exports.X_LT_OPTIONS = 'x-lt-options';
36
+ function isScalar(v) {
37
+ return typeof v === 'string' || (typeof v === 'number' && Number.isFinite(v));
38
+ }
39
+ /** Normalize one array entry, mixed arrays resolving each entry independently. */
40
+ function toOption(entry) {
41
+ if (isScalar(entry))
42
+ return { value: entry, label: String(entry) };
43
+ if (entry && typeof entry === 'object' && !Array.isArray(entry)) {
44
+ const o = entry;
45
+ const value = o.value !== undefined ? o.value : o.id;
46
+ if (isScalar(value) && typeof o.label === 'string' && o.label.length > 0) {
47
+ return { value, label: o.label };
48
+ }
49
+ }
50
+ return null;
51
+ }
32
52
  /**
33
53
  * The field's effective option list: the static `enum` when present, else the
34
- * scalars at the token's `"domain.path"`.
54
+ * entries at the token's `"domain.path"`.
35
55
  */
36
56
  function resolveFieldOptions(fieldSchema, ctx) {
37
57
  if (!fieldSchema)
38
58
  return undefined;
59
+ // Enum entries pass through verbatim as values (whatever their type), each
60
+ // labeled by its string form — the legacy membership contract is unchanged.
39
61
  const staticEnum = fieldSchema.enum;
40
62
  if (Array.isArray(staticEnum) && staticEnum.length > 0) {
41
- return staticEnum;
63
+ return staticEnum.map((v) => ({ value: v, label: String(v) }));
42
64
  }
43
65
  const sourcePath = fieldSchema[exports.X_LT_OPTIONS];
44
66
  if (typeof sourcePath !== 'string')
@@ -58,6 +80,6 @@ function resolveFieldOptions(fieldSchema, ctx) {
58
80
  const cur = (0, ctx_path_1.resolveCtxPath)(concrete, ctx);
59
81
  if (!Array.isArray(cur))
60
82
  return miss;
61
- const scalars = cur.filter((v) => typeof v === 'string' || (typeof v === 'number' && Number.isFinite(v)));
62
- return scalars.length > 0 ? scalars : miss;
83
+ const options = cur.map(toOption).filter((o) => o !== null);
84
+ return options.length > 0 ? options : miss;
63
85
  }
@@ -1,2 +1,2 @@
1
- import{j as o}from"./vendor-query-RUZdMvN6.js";import{c as n}from"./tasks-BGyqM1Ho.js";import{T as m}from"./index-CgXVDPW-.js";import{f as c}from"./useEventHooks-CjV3uNxt.js";import{u}from"./mcp-BkkLq6OE.js";import{P as d}from"./PageHeaderWithStats-D9tQxILm.js";import"./vendor-react-CdqEC2zv.js";import"./vendor-icons-h-jlRSb9.js";function j(){var a;c();const{data:s}=n({limit:1}),{data:e}=m({status:"pending",limit:1}),{data:t}=u(),r=((a=t==null?void 0:t.servers)==null?void 0:a.filter(i=>i.status==="connected").length)??0,l=t?`${r}/${t.total}`:"—";return o.jsx("div",{children:o.jsx(d,{title:"Admin",stats:[{label:"Tasks",value:(s==null?void 0:s.total)??"—"},{label:"Pending Escalations",value:(e==null?void 0:e.total)??"—",dotClass:"bg-status-pending"},{label:"MCP Servers",value:l},{label:"System",value:"Healthy",dotClass:"bg-status-success"}]})})}export{j as AdminDashboard};
2
- //# sourceMappingURL=AdminDashboard-BVgjY4zN.js.map
1
+ import{j as o}from"./vendor-query-RUZdMvN6.js";import{c as n}from"./tasks-DvYWcASM.js";import{T as m}from"./index-zrTQcPjB.js";import{f as c}from"./useEventHooks-JDpifqGZ.js";import{u}from"./mcp-Bb1k5rv-.js";import{P as d}from"./PageHeaderWithStats-D9tQxILm.js";import"./vendor-react-CdqEC2zv.js";import"./vendor-icons-h-jlRSb9.js";function j(){var a;c();const{data:s}=n({limit:1}),{data:e}=m({status:"pending",limit:1}),{data:t}=u(),r=((a=t==null?void 0:t.servers)==null?void 0:a.filter(i=>i.status==="connected").length)??0,l=t?`${r}/${t.total}`:"—";return o.jsx("div",{children:o.jsx(d,{title:"Admin",stats:[{label:"Tasks",value:(s==null?void 0:s.total)??"—"},{label:"Pending Escalations",value:(e==null?void 0:e.total)??"—",dotClass:"bg-status-pending"},{label:"MCP Servers",value:l},{label:"System",value:"Healthy",dotClass:"bg-status-success"}]})})}export{j as AdminDashboard};
2
+ //# sourceMappingURL=AdminDashboard-BrOvvDHF.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AdminDashboard-BVgjY4zN.js","sources":["../../src/pages/admin/AdminDashboard.tsx"],"sourcesContent":["import { useTasks } from '../../api/tasks';\nimport { useEscalations } from '../../api/escalations';\nimport { useEscalationListEvents } from '../../hooks/useEventHooks';\nimport { useMcpServers } from '../../api/mcp';\nimport { PageHeaderWithStats } from '../../components/common/layout/PageHeaderWithStats';\n\nexport function AdminDashboard() {\n useEscalationListEvents();\n const { data: taskData } = useTasks({ limit: 1 });\n const { data: pendingEsc } = useEscalations({ status: 'pending', limit: 1 });\n const { data: mcpData } = useMcpServers();\n\n const connectedServers =\n mcpData?.servers?.filter((s) => s.status === 'connected').length ?? 0;\n const mcpLabel = mcpData ? `${connectedServers}/${mcpData.total}` : '—';\n\n return (\n <div>\n <PageHeaderWithStats\n title=\"Admin\"\n stats={[\n { label: 'Tasks', value: taskData?.total ?? '—' },\n { label: 'Pending Escalations', value: pendingEsc?.total ?? '—', dotClass: 'bg-status-pending' },\n { label: 'MCP Servers', value: mcpLabel },\n { label: 'System', value: 'Healthy', dotClass: 'bg-status-success' },\n ]}\n />\n </div>\n );\n}\n"],"names":["AdminDashboard","useEscalationListEvents","taskData","useTasks","pendingEsc","useEscalations","mcpData","useMcpServers","connectedServers","_a","s","mcpLabel","jsx","PageHeaderWithStats"],"mappings":"4UAMO,SAASA,GAAiB,OAC/BC,EAAA,EACA,KAAM,CAAE,KAAMC,CAAA,EAAaC,EAAS,CAAE,MAAO,EAAG,EAC1C,CAAE,KAAMC,CAAA,EAAeC,EAAe,CAAE,OAAQ,UAAW,MAAO,EAAG,EACrE,CAAE,KAAMC,CAAA,EAAYC,EAAA,EAEpBC,IACJC,EAAAH,GAAA,YAAAA,EAAS,UAAT,YAAAG,EAAkB,OAAQC,GAAMA,EAAE,SAAW,aAAa,SAAU,EAChEC,EAAWL,EAAU,GAAGE,CAAgB,IAAIF,EAAQ,KAAK,GAAK,IAEpE,aACG,MAAA,CACC,SAAAM,EAAAA,IAACC,EAAA,CACC,MAAM,QACN,MAAO,CACL,CAAE,MAAO,QAAS,OAAOX,GAAA,YAAAA,EAAU,QAAS,GAAA,EAC5C,CAAE,MAAO,sBAAuB,OAAOE,GAAA,YAAAA,EAAY,QAAS,IAAK,SAAU,mBAAA,EAC3E,CAAE,MAAO,cAAe,MAAOO,CAAA,EAC/B,CAAE,MAAO,SAAU,MAAO,UAAW,SAAU,mBAAA,CAAoB,CACrE,CAAA,EAEJ,CAEJ"}
1
+ {"version":3,"file":"AdminDashboard-BrOvvDHF.js","sources":["../../src/pages/admin/AdminDashboard.tsx"],"sourcesContent":["import { useTasks } from '../../api/tasks';\nimport { useEscalations } from '../../api/escalations';\nimport { useEscalationListEvents } from '../../hooks/useEventHooks';\nimport { useMcpServers } from '../../api/mcp';\nimport { PageHeaderWithStats } from '../../components/common/layout/PageHeaderWithStats';\n\nexport function AdminDashboard() {\n useEscalationListEvents();\n const { data: taskData } = useTasks({ limit: 1 });\n const { data: pendingEsc } = useEscalations({ status: 'pending', limit: 1 });\n const { data: mcpData } = useMcpServers();\n\n const connectedServers =\n mcpData?.servers?.filter((s) => s.status === 'connected').length ?? 0;\n const mcpLabel = mcpData ? `${connectedServers}/${mcpData.total}` : '—';\n\n return (\n <div>\n <PageHeaderWithStats\n title=\"Admin\"\n stats={[\n { label: 'Tasks', value: taskData?.total ?? '—' },\n { label: 'Pending Escalations', value: pendingEsc?.total ?? '—', dotClass: 'bg-status-pending' },\n { label: 'MCP Servers', value: mcpLabel },\n { label: 'System', value: 'Healthy', dotClass: 'bg-status-success' },\n ]}\n />\n </div>\n );\n}\n"],"names":["AdminDashboard","useEscalationListEvents","taskData","useTasks","pendingEsc","useEscalations","mcpData","useMcpServers","connectedServers","_a","s","mcpLabel","jsx","PageHeaderWithStats"],"mappings":"4UAMO,SAASA,GAAiB,OAC/BC,EAAA,EACA,KAAM,CAAE,KAAMC,CAAA,EAAaC,EAAS,CAAE,MAAO,EAAG,EAC1C,CAAE,KAAMC,CAAA,EAAeC,EAAe,CAAE,OAAQ,UAAW,MAAO,EAAG,EACrE,CAAE,KAAMC,CAAA,EAAYC,EAAA,EAEpBC,IACJC,EAAAH,GAAA,YAAAA,EAAS,UAAT,YAAAG,EAAkB,OAAQC,GAAMA,EAAE,SAAW,aAAa,SAAU,EAChEC,EAAWL,EAAU,GAAGE,CAAgB,IAAIF,EAAQ,KAAK,GAAK,IAEpE,aACG,MAAA,CACC,SAAAM,EAAAA,IAACC,EAAA,CACC,MAAM,QACN,MAAO,CACL,CAAE,MAAO,QAAS,OAAOX,GAAA,YAAAA,EAAU,QAAS,GAAA,EAC5C,CAAE,MAAO,sBAAuB,OAAOE,GAAA,YAAAA,EAAY,QAAS,IAAK,SAAU,mBAAA,EAC3E,CAAE,MAAO,cAAe,MAAOO,CAAA,EAC/B,CAAE,MAAO,SAAU,MAAO,UAAW,SAAU,mBAAA,CAAoB,CACrE,CAAA,EAEJ,CAEJ"}
@@ -1,4 +1,4 @@
1
- import{j as e,a as f}from"./vendor-query-RUZdMvN6.js";import{a as le,d as ce,b as oe}from"./agents-BEASyYpg.js";import{E as de,C as xe,u as pe,a as ue,b as me,c as he}from"./CronLabel-wE8Hms6c.js";import{b as fe,u as ve,l as be}from"./index-CgXVDPW-.js";import{P as ye}from"./PageHeader-CFVw67M6.js";import{B as E,n as U,A as ge,R as Y,f as M,T as Z,aq as G,e as V,bb as ee,a8 as je}from"./vendor-icons-h-jlRSb9.js";import{g as we}from"./knowledge-DpaUJtVW.js";import{R as te}from"./RunAsSelector-BawZcqAk.js";import{u as Ne}from"./workflows-TA0p_3B8.js";import{u as _e}from"./yaml-workflows-DN9-DBnQ.js";import{u as se}from"./capabilities-Cijq-qev.js";import{u as ke}from"./topics-I81rKc75.js";import{W as Q}from"./WorkflowPill-CN-952iI.js";import{e as Ce,u as Se,f as qe}from"./vendor-react-CdqEC2zv.js";import"./BotPicker-CBf6bHLV.js";import"./bots-CaXqSHat.js";const X={name:"",description:"",goals:"",rules:"",user_id:"",knowledge_domain:"",subscriptions:[],schedules:[]},Ae={topic:"",filter:"",reaction_type:"durable",workflow_type:"",pipeline_id:"",mcp_prompt:"",server_id:"",tool_name:"",input_mapping:"{}",execute_as:"",enabled:!0},Oe={cron:"0 * * * *",reaction_type:"durable",workflow_type:"",pipeline_id:"",server_id:"",tool_name:"",envelope:"{}",execute_as:""};function Re(s,a){var o,x,m;const r=(x=(o=s.behaviors)==null?void 0:o.schedules)!=null&&x.length?s.behaviors.schedules.map(i=>({cron:i.cron||"",reaction_type:i.reaction_type||"durable",workflow_type:i.workflow_type||"",pipeline_id:i.pipeline_id||"",server_id:i.server_id||"",tool_name:i.tool_name||"",envelope:i.envelope?JSON.stringify(i.envelope,null,2):"{}",execute_as:i.execute_as||""})):(m=s.behaviors)!=null&&m.cron?[{cron:s.behaviors.cron,reaction_type:"durable",workflow_type:s.workflow_type??"",pipeline_id:"",server_id:"",tool_name:"",envelope:"{}",execute_as:""}]:[];return{name:s.id,description:s.description??"",goals:s.goals??"",rules:s.rules??"",user_id:s.user_id??"",knowledge_domain:s.knowledge_domain??"",subscriptions:a.map(i=>({id:i.id,topic:i.topic,filter:i.filter?JSON.stringify(i.filter,null,2):"",reaction_type:i.reaction_type,workflow_type:i.workflow_type??"",pipeline_id:i.pipeline_id??"",mcp_prompt:i.mcp_prompt??"",server_id:i.server_id??"",tool_name:i.tool_name??"",input_mapping:JSON.stringify(i.input_mapping??{},null,2),execute_as:i.execute_as??"",enabled:i.enabled})),schedules:r}}function Ee(s){var r;const a={};return s.schedules.length>0&&(a.schedules=s.schedules.map(o=>({cron:o.cron,reaction_type:o.reaction_type||"durable",workflow_type:o.reaction_type==="pipeline"?void 0:o.workflow_type,pipeline_id:o.reaction_type==="pipeline"?o.pipeline_id:void 0,envelope:B(o.envelope)??{},execute_as:o.execute_as||void 0})),a.cron=s.schedules[0].cron),{id:s.name,description:s.description||void 0,goals:s.goals||void 0,rules:s.rules||void 0,user_id:s.user_id||void 0,knowledge_domain:s.knowledge_domain||void 0,behaviors:a,workflow_type:((r=s.schedules[0])==null?void 0:r.workflow_type)||void 0,pipeline_id:void 0}}function $e(s){return s.subscriptions.map(a=>({id:a.id,topic:a.topic,filter:a.filter?B(a.filter):void 0,reaction_type:a.reaction_type,workflow_type:a.workflow_type||void 0,pipeline_id:a.pipeline_id||void 0,mcp_prompt:a.mcp_prompt||void 0,server_id:a.server_id||void 0,tool_name:a.tool_name||void 0,input_mapping:B(a.input_mapping)??{},execute_as:a.execute_as||void 0,enabled:a.enabled}))}function B(s){if(s.trim())try{return JSON.parse(s)}catch{return}}function Pe(s,a,r,o){let x;try{x=JSON.parse(s)}catch{x={}}const m=o.includes(a),i=r===""||r===void 0||r===null||Array.isArray(r)&&r.length===0||r==="[]";if(!m&&i){const{[a]:p,...c}=x;return JSON.stringify(c,null,2)}let u=r;if(typeof r=="string")try{const p=JSON.parse(r);Array.isArray(p)&&(u=p)}catch{}return JSON.stringify({...x,[a]:u},null,2)}const S="section-header mt-[3em] first:mt-0",P="label",_="hint",O="input",L="input-json w-full";function Ie({form:s,set:a}){return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"border-l-2 border-accent/30 pl-3 py-1 flex items-start justify-between",children:[e.jsx("p",{className:"text-xs text-text-secondary italic leading-relaxed",children:"Give your automation a name and describe what it does. The name appears everywhere — in events, logs, and the dashboard."}),e.jsx("button",{onClick:()=>{window.location.hash="#docs:agents.md:identity"},className:"text-text-quaternary hover:text-accent transition-colors shrink-0 ml-3",title:"Docs: Identity",children:e.jsx(E,{className:"w-3 h-3",strokeWidth:1.5})})]}),e.jsxs("div",{children:[e.jsx("label",{className:P,children:"Name *"}),e.jsx("input",{type:"text",value:s.name,onChange:r=>a("name",r.target.value),placeholder:"health-monitor",className:O}),e.jsx("p",{className:_,children:"Lowercase, kebab-case. This appears everywhere."})]}),e.jsxs("div",{children:[e.jsx("label",{className:P,children:"Description"}),e.jsx("input",{type:"text",value:s.description,onChange:r=>a("description",r.target.value),placeholder:"Watches for workflow failures and captures diagnostics",className:O}),e.jsx("p",{className:_,children:"One sentence that explains what this automation does."})]})]})}function We({form:s,set:a}){return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"border-l-2 border-accent/30 pl-3 py-1 flex items-start justify-between",children:[e.jsx("p",{className:"text-xs text-text-secondary italic leading-relaxed",children:"Goals define what drives the automation. Rules define what constrains it."}),e.jsx("button",{onClick:()=>{window.location.hash="#docs:agents.md:motivation"},className:"text-text-quaternary hover:text-accent transition-colors shrink-0 ml-3",title:"Docs: Motivation",children:e.jsx(E,{className:"w-3 h-3",strokeWidth:1.5})})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-8",children:[e.jsxs("div",{children:[e.jsx("label",{className:P,children:"Goals"}),e.jsx("textarea",{value:s.goals,onChange:r=>a("goals",r.target.value),placeholder:"Detect failures early, capture diagnostics, alert before cascading",rows:4,className:`${O} resize-none`}),e.jsx("p",{className:_,children:"Primary motivation. What the automation is trying to achieve."})]}),e.jsxs("div",{children:[e.jsx("label",{className:P,children:"Rules"}),e.jsx("textarea",{value:s.rules,onChange:r=>a("rules",r.target.value),placeholder:"Never auto-restart failed workflows. Always escalate to humans.",rows:4,className:`${O} resize-none`}),e.jsx("p",{className:_,children:"Guardrails. What it must never do, even when goals suggest it should."})]})]})]})}function Te({form:s,set:a}){const{data:r}=we(),o=(r==null?void 0:r.domains)??[];return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"border-l-2 border-accent/30 pl-3 py-1 flex items-start justify-between",children:[e.jsx("p",{className:"text-xs text-text-secondary italic leading-relaxed",children:"Assign a knowledge domain — the automation's memory. It stores context here over time."}),e.jsx("button",{onClick:()=>{window.location.hash="#docs:agents.md:knowledge"},className:"text-text-quaternary hover:text-accent transition-colors shrink-0 ml-3",title:"Docs: Knowledge",children:e.jsx(E,{className:"w-3 h-3",strokeWidth:1.5})})]}),e.jsxs("div",{children:[e.jsx("label",{className:P,children:"Knowledge Domain"}),e.jsx("input",{type:"text",value:s.knowledge_domain,onChange:x=>a("knowledge_domain",x.target.value),placeholder:"e.g., system-health, content-review, vendor-data",className:O,list:"domain-suggestions"}),e.jsx("datalist",{id:"domain-suggestions",children:o.map(x=>e.jsx("option",{value:x.domain},x.domain))}),e.jsx("p",{className:_,children:"Choose an existing domain to share memory, or type a new name to create one."})]}),o.length>0&&e.jsxs("div",{children:[e.jsx("label",{className:P,children:"Existing Domains"}),e.jsx("div",{className:"space-y-0.5 mt-2",children:o.map(x=>e.jsxs("button",{type:"button",onClick:()=>a("knowledge_domain",x.domain),className:`w-full flex items-center gap-3 px-3 py-2 rounded-md text-left transition-colors ${s.knowledge_domain===x.domain?"border-l-2 border-l-accent bg-accent/5":"hover:bg-surface-hover border-l-2 border-l-transparent"}`,children:[e.jsx(U,{className:"w-3.5 h-3.5 text-text-quaternary shrink-0",strokeWidth:1.5}),e.jsx("span",{className:"text-sm text-text-primary flex-1",children:x.domain}),e.jsxs("span",{className:"text-2xs text-text-quaternary",children:[x.count," entries"]}),e.jsx("span",{className:"text-2xs text-text-quaternary",children:e.jsx(fe,{date:x.latest})})]},x.domain))})]})]})}function Me({serverId:s,toolName:a,onChange:r}){const{data:o}=se(),x=f.useMemo(()=>{var t;return((t=o==null?void 0:o.categories)==null?void 0:t.flatMap(n=>n.tools))??[]},[o]),[m,i]=f.useState(!1),[u,p]=f.useState(""),c=f.useRef(null),h=f.useRef(null);f.useEffect(()=>{if(!m)return;function t(n){h.current&&!h.current.contains(n.target)&&i(!1)}return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[m]);const l=a?`${a}`:"",d=m?u:l,y=f.useMemo(()=>{const t=(m?u:"").toLowerCase();return t?x.filter(n=>n.name.toLowerCase().includes(t)||n.serverName.toLowerCase().includes(t)||(n.description??"").toLowerCase().includes(t)):x},[x,u,m]),v=a?x.find(t=>t.serverId===s&&t.name===a):void 0;return e.jsxs("div",{ref:h,className:"relative",children:[e.jsx("input",{ref:c,type:"text",value:d,onFocus:()=>{i(!0),p(l)},onChange:t=>{const n=t.target.value;p(n),n||r("",""),m||i(!0)},placeholder:"Search capabilities...",className:"input font-mono text-sm w-full"}),!m&&(v==null?void 0:v.description)&&e.jsx("p",{className:"text-2xs text-text-tertiary mt-1 italic",children:v.description}),m&&y.length>0&&e.jsx("div",{className:"absolute z-[100] left-0 right-0 mt-1 max-h-64 overflow-y-auto rounded-md border border-surface-border bg-surface shadow-lg",children:y.map(t=>e.jsxs("button",{type:"button",onClick:()=>{r(t.serverId,t.name),p(t.name),i(!1)},className:`w-full text-left px-3 py-2 hover:bg-surface-hover transition-colors flex items-center gap-3 ${s===t.serverId&&a===t.name?"bg-accent/5":""}`,children:[e.jsx("span",{className:"text-2xs font-mono text-text-primary shrink-0",children:t.name}),e.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-2xs font-medium shrink-0 bg-accent/10 text-accent",children:[e.jsx(ge,{className:"w-2 h-2",strokeWidth:1.5}),t.serverName]}),t.description&&e.jsx("span",{className:"text-2xs text-text-quaternary truncate",children:t.description})]},`${t.serverId}:${t.name}`))}),m&&y.length===0&&u&&e.jsx("div",{className:"absolute z-[100] left-0 right-0 mt-1 rounded-md border border-surface-border bg-surface shadow-lg px-3 py-4 text-center",children:e.jsxs("p",{className:"text-2xs text-text-quaternary",children:['No capabilities match "',u,'"']})})]})}const Le={durable:"Workflow",pipeline:"Pipeline",capability:"Capability",mcp_query:"MCP Query"},Je=["durable","pipeline","capability","mcp_query"];function ae({reactionType:s,onReactionTypeChange:a,workflowType:r,onWorkflowTypeChange:o,pipelineId:x,onPipelineIdChange:m,serverId:i,toolName:u,onCapabilityChange:p,mcpPrompt:c,onMcpPromptChange:h,availableTypes:l=[...Je]}){const{data:d}=Ne(),y=(d??[]).filter(n=>n.invocable).map(n=>n.workflow_type),{data:v}=_e({status:"active"}),t=((v==null?void 0:v.workflows)??[]).map(n=>({id:n.id,name:n.graph_topic||n.id}));return e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"flex gap-1",children:l.map(n=>{const b=s===n;return e.jsx("button",{type:"button",onClick:()=>a(n),className:`px-3 py-1.5 text-2xs font-medium rounded-md transition-colors ${b?"bg-accent/10 text-accent":"text-text-tertiary hover:text-text-primary hover:bg-surface-hover"}`,children:Le[n]},n)})}),s==="durable"&&e.jsxs("div",{children:[e.jsx("label",{className:"label",children:"Workflow *"}),e.jsxs("select",{value:r,onChange:n=>o(n.target.value),className:"input",children:[e.jsx("option",{value:"",children:"Select workflow..."}),y.map(n=>e.jsx("option",{value:n,children:n},n))]})]}),s==="pipeline"&&e.jsxs("div",{children:[e.jsx("label",{className:"label",children:"Pipeline *"}),e.jsxs("select",{value:x,onChange:n=>m(n.target.value),className:"input",children:[e.jsx("option",{value:"",children:"Select pipeline..."}),t.map(n=>e.jsx("option",{value:n.id,children:n.name},n.id))]})]}),s==="capability"&&e.jsxs("div",{children:[e.jsx("label",{className:"label",children:"Capability *"}),e.jsx(Me,{serverId:i,toolName:u,onChange:p})]}),s==="mcp_query"&&h&&e.jsxs("div",{children:[e.jsx("label",{className:"label",children:"Prompt *"}),e.jsx("textarea",{value:c??"",onChange:n=>h(n.target.value),placeholder:"Analyze the error and suggest remediation...",rows:3,className:"input resize-none"})]})]})}const Fe={task:"bg-status-active/10 text-status-active",workflow:"bg-accent/15 text-accent",escalation:"bg-status-warning/10 text-status-warning",activity:"bg-status-active/10 text-status-active",knowledge:"bg-accent/10 text-accent",file:"bg-status-draft/10 text-status-draft",agent:"bg-status-success/10 text-status-success",app:"bg-status-error/10 text-status-error",milestone:"bg-accent/10 text-accent"};function De({form:s,set:a}){const{data:r}=ke({limit:200}),{data:o}=se(),x=(r==null?void 0:r.topics)??[],m=f.useMemo(()=>{var t;return((t=o==null?void 0:o.categories)==null?void 0:t.flatMap(n=>n.tools))??[]},[o]),[i,u]=f.useState(0),p=(t,n,b)=>{const g=[...s.subscriptions];g[t]={...g[t],[n]:b},a("subscriptions",g)},c=()=>{a("subscriptions",[...s.subscriptions,{...Ae}]),u(s.subscriptions.length)},h=t=>{a("subscriptions",s.subscriptions.filter((n,b)=>b!==t)),i>=s.subscriptions.length-1&&u(Math.max(0,s.subscriptions.length-2))},l=s.subscriptions,d=l[i],y=t=>t.topic?t.reaction_type==="durable"?!!t.workflow_type:t.reaction_type==="pipeline"?!!t.pipeline_id:t.reaction_type==="mcp_query"?!!t.mcp_prompt:t.reaction_type==="capability"?!!t.server_id&&!!t.tool_name:!1:!1,v=d?x.find(t=>t.topic===d.topic):void 0;return l.length===0?e.jsxs("div",{className:"max-w-xl",children:[e.jsxs("div",{className:"border-l-2 border-accent/30 pl-3 py-1 flex items-start justify-between mb-8",children:[e.jsx("p",{className:"text-xs text-text-secondary italic leading-relaxed",children:"Optional. When a matching event is published, the automation runs the configured workflow with the event payload."}),e.jsx("button",{onClick:()=>{window.location.hash="#docs:agents.md:subscriptions"},className:"text-text-quaternary hover:text-accent transition-colors shrink-0 ml-3",title:"Docs: Subscriptions",children:e.jsx(E,{className:"w-3 h-3",strokeWidth:1.5})})]}),e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(Y,{className:"w-8 h-8 text-text-quaternary/40 mb-3",strokeWidth:1}),e.jsx("p",{className:"text-sm text-text-tertiary mb-2",children:"No event subscriptions yet"}),e.jsx("p",{className:"text-2xs text-text-quaternary max-w-sm mb-6",children:"Each subscription listens for a topic pattern and runs a workflow when it matches."}),e.jsxs("button",{onClick:c,className:"flex items-center gap-2 text-xs text-accent hover:text-accent-hover transition-colors",children:[e.jsx(M,{className:"w-3.5 h-3.5"})," Add first subscription"]})]})]}):e.jsxs("div",{children:[e.jsxs("div",{className:"border-l-2 border-accent/30 pl-3 py-1 flex items-start justify-between mb-6",children:[e.jsx("p",{className:"text-xs text-text-secondary italic leading-relaxed",children:"Optional. When a matching event is published, the automation runs the configured workflow with the event payload."}),e.jsx("button",{onClick:()=>{window.location.hash="#docs:agents.md:subscriptions"},className:"text-text-quaternary hover:text-accent transition-colors shrink-0 ml-3",title:"Docs: Subscriptions",children:e.jsx(E,{className:"w-3 h-3",strokeWidth:1.5})})]}),e.jsxs("div",{className:"flex gap-8",children:[e.jsxs("div",{className:"w-52 shrink-0 space-y-0.5",children:[l.map((t,n)=>e.jsxs("div",{className:`group/sub flex items-center rounded-md transition-colors ${i===n?"bg-accent/10 text-accent":"text-text-tertiary hover:text-text-primary hover:bg-surface-hover"}`,children:[e.jsxs("button",{onClick:()=>u(n),className:"flex-1 text-left px-3 py-2 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:`w-2.5 h-2.5 rounded-full dot-ring shrink-0 ${y(t)?"bg-status-success":"bg-surface-border"}`}),e.jsx("span",{className:"text-2xs font-mono truncate",children:t.topic||"new subscription"})]}),e.jsxs("span",{className:"text-2xs text-text-quaternary ml-3",children:["→ ",t.workflow_type||t.tool_name||t.reaction_type]})]}),e.jsx("button",{onClick:b=>{b.stopPropagation(),confirm(`Remove subscription "${t.topic||"new"}"?
1
+ import{j as e,a as f}from"./vendor-query-RUZdMvN6.js";import{a as le,d as ce,b as oe}from"./agents-DfMrlw54.js";import{E as de,C as xe,u as pe,a as ue,b as me,c as he}from"./CronLabel-CVYKRipP.js";import{b as fe,u as ve,l as be}from"./index-zrTQcPjB.js";import{P as ye}from"./PageHeader-CFVw67M6.js";import{B as E,n as U,A as ge,R as Y,f as M,T as Z,aq as G,e as V,bb as ee,a8 as je}from"./vendor-icons-h-jlRSb9.js";import{g as we}from"./knowledge-BNp6MH-4.js";import{R as te}from"./RunAsSelector-BgntKfSA.js";import{u as Ne}from"./workflows-D8uMBPvQ.js";import{u as _e}from"./yaml-workflows-DVDOQM3Y.js";import{u as se}from"./capabilities-DkLM1xgH.js";import{u as ke}from"./topics-B9zXFuVG.js";import{W as Q}from"./WorkflowPill-CN-952iI.js";import{e as Ce,u as Se,f as qe}from"./vendor-react-CdqEC2zv.js";import"./BotPicker-GU44inXA.js";import"./bots-B9zS0z7D.js";const X={name:"",description:"",goals:"",rules:"",user_id:"",knowledge_domain:"",subscriptions:[],schedules:[]},Ae={topic:"",filter:"",reaction_type:"durable",workflow_type:"",pipeline_id:"",mcp_prompt:"",server_id:"",tool_name:"",input_mapping:"{}",execute_as:"",enabled:!0},Oe={cron:"0 * * * *",reaction_type:"durable",workflow_type:"",pipeline_id:"",server_id:"",tool_name:"",envelope:"{}",execute_as:""};function Re(s,a){var o,x,m;const r=(x=(o=s.behaviors)==null?void 0:o.schedules)!=null&&x.length?s.behaviors.schedules.map(i=>({cron:i.cron||"",reaction_type:i.reaction_type||"durable",workflow_type:i.workflow_type||"",pipeline_id:i.pipeline_id||"",server_id:i.server_id||"",tool_name:i.tool_name||"",envelope:i.envelope?JSON.stringify(i.envelope,null,2):"{}",execute_as:i.execute_as||""})):(m=s.behaviors)!=null&&m.cron?[{cron:s.behaviors.cron,reaction_type:"durable",workflow_type:s.workflow_type??"",pipeline_id:"",server_id:"",tool_name:"",envelope:"{}",execute_as:""}]:[];return{name:s.id,description:s.description??"",goals:s.goals??"",rules:s.rules??"",user_id:s.user_id??"",knowledge_domain:s.knowledge_domain??"",subscriptions:a.map(i=>({id:i.id,topic:i.topic,filter:i.filter?JSON.stringify(i.filter,null,2):"",reaction_type:i.reaction_type,workflow_type:i.workflow_type??"",pipeline_id:i.pipeline_id??"",mcp_prompt:i.mcp_prompt??"",server_id:i.server_id??"",tool_name:i.tool_name??"",input_mapping:JSON.stringify(i.input_mapping??{},null,2),execute_as:i.execute_as??"",enabled:i.enabled})),schedules:r}}function Ee(s){var r;const a={};return s.schedules.length>0&&(a.schedules=s.schedules.map(o=>({cron:o.cron,reaction_type:o.reaction_type||"durable",workflow_type:o.reaction_type==="pipeline"?void 0:o.workflow_type,pipeline_id:o.reaction_type==="pipeline"?o.pipeline_id:void 0,envelope:B(o.envelope)??{},execute_as:o.execute_as||void 0})),a.cron=s.schedules[0].cron),{id:s.name,description:s.description||void 0,goals:s.goals||void 0,rules:s.rules||void 0,user_id:s.user_id||void 0,knowledge_domain:s.knowledge_domain||void 0,behaviors:a,workflow_type:((r=s.schedules[0])==null?void 0:r.workflow_type)||void 0,pipeline_id:void 0}}function $e(s){return s.subscriptions.map(a=>({id:a.id,topic:a.topic,filter:a.filter?B(a.filter):void 0,reaction_type:a.reaction_type,workflow_type:a.workflow_type||void 0,pipeline_id:a.pipeline_id||void 0,mcp_prompt:a.mcp_prompt||void 0,server_id:a.server_id||void 0,tool_name:a.tool_name||void 0,input_mapping:B(a.input_mapping)??{},execute_as:a.execute_as||void 0,enabled:a.enabled}))}function B(s){if(s.trim())try{return JSON.parse(s)}catch{return}}function Pe(s,a,r,o){let x;try{x=JSON.parse(s)}catch{x={}}const m=o.includes(a),i=r===""||r===void 0||r===null||Array.isArray(r)&&r.length===0||r==="[]";if(!m&&i){const{[a]:p,...c}=x;return JSON.stringify(c,null,2)}let u=r;if(typeof r=="string")try{const p=JSON.parse(r);Array.isArray(p)&&(u=p)}catch{}return JSON.stringify({...x,[a]:u},null,2)}const S="section-header mt-[3em] first:mt-0",P="label",_="hint",O="input",L="input-json w-full";function Ie({form:s,set:a}){return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"border-l-2 border-accent/30 pl-3 py-1 flex items-start justify-between",children:[e.jsx("p",{className:"text-xs text-text-secondary italic leading-relaxed",children:"Give your automation a name and describe what it does. The name appears everywhere — in events, logs, and the dashboard."}),e.jsx("button",{onClick:()=>{window.location.hash="#docs:agents.md:identity"},className:"text-text-quaternary hover:text-accent transition-colors shrink-0 ml-3",title:"Docs: Identity",children:e.jsx(E,{className:"w-3 h-3",strokeWidth:1.5})})]}),e.jsxs("div",{children:[e.jsx("label",{className:P,children:"Name *"}),e.jsx("input",{type:"text",value:s.name,onChange:r=>a("name",r.target.value),placeholder:"health-monitor",className:O}),e.jsx("p",{className:_,children:"Lowercase, kebab-case. This appears everywhere."})]}),e.jsxs("div",{children:[e.jsx("label",{className:P,children:"Description"}),e.jsx("input",{type:"text",value:s.description,onChange:r=>a("description",r.target.value),placeholder:"Watches for workflow failures and captures diagnostics",className:O}),e.jsx("p",{className:_,children:"One sentence that explains what this automation does."})]})]})}function We({form:s,set:a}){return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"border-l-2 border-accent/30 pl-3 py-1 flex items-start justify-between",children:[e.jsx("p",{className:"text-xs text-text-secondary italic leading-relaxed",children:"Goals define what drives the automation. Rules define what constrains it."}),e.jsx("button",{onClick:()=>{window.location.hash="#docs:agents.md:motivation"},className:"text-text-quaternary hover:text-accent transition-colors shrink-0 ml-3",title:"Docs: Motivation",children:e.jsx(E,{className:"w-3 h-3",strokeWidth:1.5})})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-8",children:[e.jsxs("div",{children:[e.jsx("label",{className:P,children:"Goals"}),e.jsx("textarea",{value:s.goals,onChange:r=>a("goals",r.target.value),placeholder:"Detect failures early, capture diagnostics, alert before cascading",rows:4,className:`${O} resize-none`}),e.jsx("p",{className:_,children:"Primary motivation. What the automation is trying to achieve."})]}),e.jsxs("div",{children:[e.jsx("label",{className:P,children:"Rules"}),e.jsx("textarea",{value:s.rules,onChange:r=>a("rules",r.target.value),placeholder:"Never auto-restart failed workflows. Always escalate to humans.",rows:4,className:`${O} resize-none`}),e.jsx("p",{className:_,children:"Guardrails. What it must never do, even when goals suggest it should."})]})]})]})}function Te({form:s,set:a}){const{data:r}=we(),o=(r==null?void 0:r.domains)??[];return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"border-l-2 border-accent/30 pl-3 py-1 flex items-start justify-between",children:[e.jsx("p",{className:"text-xs text-text-secondary italic leading-relaxed",children:"Assign a knowledge domain — the automation's memory. It stores context here over time."}),e.jsx("button",{onClick:()=>{window.location.hash="#docs:agents.md:knowledge"},className:"text-text-quaternary hover:text-accent transition-colors shrink-0 ml-3",title:"Docs: Knowledge",children:e.jsx(E,{className:"w-3 h-3",strokeWidth:1.5})})]}),e.jsxs("div",{children:[e.jsx("label",{className:P,children:"Knowledge Domain"}),e.jsx("input",{type:"text",value:s.knowledge_domain,onChange:x=>a("knowledge_domain",x.target.value),placeholder:"e.g., system-health, content-review, vendor-data",className:O,list:"domain-suggestions"}),e.jsx("datalist",{id:"domain-suggestions",children:o.map(x=>e.jsx("option",{value:x.domain},x.domain))}),e.jsx("p",{className:_,children:"Choose an existing domain to share memory, or type a new name to create one."})]}),o.length>0&&e.jsxs("div",{children:[e.jsx("label",{className:P,children:"Existing Domains"}),e.jsx("div",{className:"space-y-0.5 mt-2",children:o.map(x=>e.jsxs("button",{type:"button",onClick:()=>a("knowledge_domain",x.domain),className:`w-full flex items-center gap-3 px-3 py-2 rounded-md text-left transition-colors ${s.knowledge_domain===x.domain?"border-l-2 border-l-accent bg-accent/5":"hover:bg-surface-hover border-l-2 border-l-transparent"}`,children:[e.jsx(U,{className:"w-3.5 h-3.5 text-text-quaternary shrink-0",strokeWidth:1.5}),e.jsx("span",{className:"text-sm text-text-primary flex-1",children:x.domain}),e.jsxs("span",{className:"text-2xs text-text-quaternary",children:[x.count," entries"]}),e.jsx("span",{className:"text-2xs text-text-quaternary",children:e.jsx(fe,{date:x.latest})})]},x.domain))})]})]})}function Me({serverId:s,toolName:a,onChange:r}){const{data:o}=se(),x=f.useMemo(()=>{var t;return((t=o==null?void 0:o.categories)==null?void 0:t.flatMap(n=>n.tools))??[]},[o]),[m,i]=f.useState(!1),[u,p]=f.useState(""),c=f.useRef(null),h=f.useRef(null);f.useEffect(()=>{if(!m)return;function t(n){h.current&&!h.current.contains(n.target)&&i(!1)}return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[m]);const l=a?`${a}`:"",d=m?u:l,y=f.useMemo(()=>{const t=(m?u:"").toLowerCase();return t?x.filter(n=>n.name.toLowerCase().includes(t)||n.serverName.toLowerCase().includes(t)||(n.description??"").toLowerCase().includes(t)):x},[x,u,m]),v=a?x.find(t=>t.serverId===s&&t.name===a):void 0;return e.jsxs("div",{ref:h,className:"relative",children:[e.jsx("input",{ref:c,type:"text",value:d,onFocus:()=>{i(!0),p(l)},onChange:t=>{const n=t.target.value;p(n),n||r("",""),m||i(!0)},placeholder:"Search capabilities...",className:"input font-mono text-sm w-full"}),!m&&(v==null?void 0:v.description)&&e.jsx("p",{className:"text-2xs text-text-tertiary mt-1 italic",children:v.description}),m&&y.length>0&&e.jsx("div",{className:"absolute z-[100] left-0 right-0 mt-1 max-h-64 overflow-y-auto rounded-md border border-surface-border bg-surface shadow-lg",children:y.map(t=>e.jsxs("button",{type:"button",onClick:()=>{r(t.serverId,t.name),p(t.name),i(!1)},className:`w-full text-left px-3 py-2 hover:bg-surface-hover transition-colors flex items-center gap-3 ${s===t.serverId&&a===t.name?"bg-accent/5":""}`,children:[e.jsx("span",{className:"text-2xs font-mono text-text-primary shrink-0",children:t.name}),e.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-2xs font-medium shrink-0 bg-accent/10 text-accent",children:[e.jsx(ge,{className:"w-2 h-2",strokeWidth:1.5}),t.serverName]}),t.description&&e.jsx("span",{className:"text-2xs text-text-quaternary truncate",children:t.description})]},`${t.serverId}:${t.name}`))}),m&&y.length===0&&u&&e.jsx("div",{className:"absolute z-[100] left-0 right-0 mt-1 rounded-md border border-surface-border bg-surface shadow-lg px-3 py-4 text-center",children:e.jsxs("p",{className:"text-2xs text-text-quaternary",children:['No capabilities match "',u,'"']})})]})}const Le={durable:"Workflow",pipeline:"Pipeline",capability:"Capability",mcp_query:"MCP Query"},Je=["durable","pipeline","capability","mcp_query"];function ae({reactionType:s,onReactionTypeChange:a,workflowType:r,onWorkflowTypeChange:o,pipelineId:x,onPipelineIdChange:m,serverId:i,toolName:u,onCapabilityChange:p,mcpPrompt:c,onMcpPromptChange:h,availableTypes:l=[...Je]}){const{data:d}=Ne(),y=(d??[]).filter(n=>n.invocable).map(n=>n.workflow_type),{data:v}=_e({status:"active"}),t=((v==null?void 0:v.workflows)??[]).map(n=>({id:n.id,name:n.graph_topic||n.id}));return e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"flex gap-1",children:l.map(n=>{const b=s===n;return e.jsx("button",{type:"button",onClick:()=>a(n),className:`px-3 py-1.5 text-2xs font-medium rounded-md transition-colors ${b?"bg-accent/10 text-accent":"text-text-tertiary hover:text-text-primary hover:bg-surface-hover"}`,children:Le[n]},n)})}),s==="durable"&&e.jsxs("div",{children:[e.jsx("label",{className:"label",children:"Workflow *"}),e.jsxs("select",{value:r,onChange:n=>o(n.target.value),className:"input",children:[e.jsx("option",{value:"",children:"Select workflow..."}),y.map(n=>e.jsx("option",{value:n,children:n},n))]})]}),s==="pipeline"&&e.jsxs("div",{children:[e.jsx("label",{className:"label",children:"Pipeline *"}),e.jsxs("select",{value:x,onChange:n=>m(n.target.value),className:"input",children:[e.jsx("option",{value:"",children:"Select pipeline..."}),t.map(n=>e.jsx("option",{value:n.id,children:n.name},n.id))]})]}),s==="capability"&&e.jsxs("div",{children:[e.jsx("label",{className:"label",children:"Capability *"}),e.jsx(Me,{serverId:i,toolName:u,onChange:p})]}),s==="mcp_query"&&h&&e.jsxs("div",{children:[e.jsx("label",{className:"label",children:"Prompt *"}),e.jsx("textarea",{value:c??"",onChange:n=>h(n.target.value),placeholder:"Analyze the error and suggest remediation...",rows:3,className:"input resize-none"})]})]})}const Fe={task:"bg-status-active/10 text-status-active",workflow:"bg-accent/15 text-accent",escalation:"bg-status-warning/10 text-status-warning",activity:"bg-status-active/10 text-status-active",knowledge:"bg-accent/10 text-accent",file:"bg-status-draft/10 text-status-draft",agent:"bg-status-success/10 text-status-success",app:"bg-status-error/10 text-status-error",milestone:"bg-accent/10 text-accent"};function De({form:s,set:a}){const{data:r}=ke({limit:200}),{data:o}=se(),x=(r==null?void 0:r.topics)??[],m=f.useMemo(()=>{var t;return((t=o==null?void 0:o.categories)==null?void 0:t.flatMap(n=>n.tools))??[]},[o]),[i,u]=f.useState(0),p=(t,n,b)=>{const g=[...s.subscriptions];g[t]={...g[t],[n]:b},a("subscriptions",g)},c=()=>{a("subscriptions",[...s.subscriptions,{...Ae}]),u(s.subscriptions.length)},h=t=>{a("subscriptions",s.subscriptions.filter((n,b)=>b!==t)),i>=s.subscriptions.length-1&&u(Math.max(0,s.subscriptions.length-2))},l=s.subscriptions,d=l[i],y=t=>t.topic?t.reaction_type==="durable"?!!t.workflow_type:t.reaction_type==="pipeline"?!!t.pipeline_id:t.reaction_type==="mcp_query"?!!t.mcp_prompt:t.reaction_type==="capability"?!!t.server_id&&!!t.tool_name:!1:!1,v=d?x.find(t=>t.topic===d.topic):void 0;return l.length===0?e.jsxs("div",{className:"max-w-xl",children:[e.jsxs("div",{className:"border-l-2 border-accent/30 pl-3 py-1 flex items-start justify-between mb-8",children:[e.jsx("p",{className:"text-xs text-text-secondary italic leading-relaxed",children:"Optional. When a matching event is published, the automation runs the configured workflow with the event payload."}),e.jsx("button",{onClick:()=>{window.location.hash="#docs:agents.md:subscriptions"},className:"text-text-quaternary hover:text-accent transition-colors shrink-0 ml-3",title:"Docs: Subscriptions",children:e.jsx(E,{className:"w-3 h-3",strokeWidth:1.5})})]}),e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(Y,{className:"w-8 h-8 text-text-quaternary/40 mb-3",strokeWidth:1}),e.jsx("p",{className:"text-sm text-text-tertiary mb-2",children:"No event subscriptions yet"}),e.jsx("p",{className:"text-2xs text-text-quaternary max-w-sm mb-6",children:"Each subscription listens for a topic pattern and runs a workflow when it matches."}),e.jsxs("button",{onClick:c,className:"flex items-center gap-2 text-xs text-accent hover:text-accent-hover transition-colors",children:[e.jsx(M,{className:"w-3.5 h-3.5"})," Add first subscription"]})]})]}):e.jsxs("div",{children:[e.jsxs("div",{className:"border-l-2 border-accent/30 pl-3 py-1 flex items-start justify-between mb-6",children:[e.jsx("p",{className:"text-xs text-text-secondary italic leading-relaxed",children:"Optional. When a matching event is published, the automation runs the configured workflow with the event payload."}),e.jsx("button",{onClick:()=>{window.location.hash="#docs:agents.md:subscriptions"},className:"text-text-quaternary hover:text-accent transition-colors shrink-0 ml-3",title:"Docs: Subscriptions",children:e.jsx(E,{className:"w-3 h-3",strokeWidth:1.5})})]}),e.jsxs("div",{className:"flex gap-8",children:[e.jsxs("div",{className:"w-52 shrink-0 space-y-0.5",children:[l.map((t,n)=>e.jsxs("div",{className:`group/sub flex items-center rounded-md transition-colors ${i===n?"bg-accent/10 text-accent":"text-text-tertiary hover:text-text-primary hover:bg-surface-hover"}`,children:[e.jsxs("button",{onClick:()=>u(n),className:"flex-1 text-left px-3 py-2 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:`w-2.5 h-2.5 rounded-full dot-ring shrink-0 ${y(t)?"bg-status-success":"bg-surface-border"}`}),e.jsx("span",{className:"text-2xs font-mono truncate",children:t.topic||"new subscription"})]}),e.jsxs("span",{className:"text-2xs text-text-quaternary ml-3",children:["→ ",t.workflow_type||t.tool_name||t.reaction_type]})]}),e.jsx("button",{onClick:b=>{b.stopPropagation(),confirm(`Remove subscription "${t.topic||"new"}"?
2
2
 
3
3
  This takes effect when you save.`)&&h(n)},className:"opacity-0 group-hover/sub:opacity-100 px-2 text-text-quaternary hover:text-status-error transition-all",title:"Remove",children:e.jsx(Z,{className:"w-3 h-3"})})]},n)),e.jsxs("button",{onClick:c,className:"w-full flex items-center gap-1.5 px-3 py-2 text-2xs text-accent hover:text-accent-hover transition-colors",children:[e.jsx(M,{className:"w-3 h-3"})," Add"]})]}),d&&e.jsxs("div",{className:"flex-1 min-w-0 space-y-12",children:[e.jsxs("div",{children:[e.jsx("label",{className:S,children:"When this event fires"}),e.jsx(Ue,{value:d.topic,onChange:t=>p(i,"topic",t),topics:x}),(v==null?void 0:v.payload_schema)&&e.jsxs("div",{className:"mt-3 p-3 rounded-md bg-surface-sunken border border-surface-border",children:[e.jsx("p",{className:"text-2xs text-text-quaternary mb-1 uppercase tracking-wider font-medium",children:"Payload Schema"}),e.jsx("pre",{className:"text-2xs font-mono text-text-secondary whitespace-pre-wrap overflow-x-auto max-h-40",children:JSON.stringify(v.payload_schema.properties??v.payload_schema,null,2)}),v.description&&e.jsx("p",{className:"text-2xs text-text-tertiary mt-2 italic",children:v.description})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:S,children:"Run this reaction"}),e.jsx(ae,{reactionType:d.reaction_type,onReactionTypeChange:t=>p(i,"reaction_type",t),workflowType:d.workflow_type,onWorkflowTypeChange:t=>p(i,"workflow_type",t),pipelineId:d.pipeline_id,onPipelineIdChange:t=>p(i,"pipeline_id",t),serverId:d.server_id,toolName:d.tool_name,onCapabilityChange:(t,n)=>{var $;const b=[...s.subscriptions],g={...b[i],server_id:t,tool_name:n},k=m.find(q=>q.serverId===t&&q.name===n),R=($=k==null?void 0:k.inputSchema)==null?void 0:$.properties;if(R&&n){const q={};for(const w of Object.keys(R))w.startsWith("_")||(q[w]=`{event.data.${w}}`);g.input_mapping=JSON.stringify(q,null,2)}b[i]=g,a("subscriptions",b)},mcpPrompt:d.mcp_prompt,onMcpPromptChange:t=>p(i,"mcp_prompt",t)})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:S,children:"As identity"}),e.jsx(te,{selected:d.execute_as,onChange:t=>p(i,"execute_as",t)}),e.jsx("p",{className:_,children:"Identity used when invoking the workflow."})]}),e.jsxs("div",{children:[e.jsx("label",{className:S,children:"But only if"}),e.jsx("input",{type:"text",value:d.filter,onChange:t=>p(i,"filter",t.target.value),placeholder:'{"extension": "png"}',className:`${O} font-mono text-xs`}),e.jsx("p",{className:_,children:"JSON filter against event.data. Click an operator to insert:"}),e.jsx("div",{className:"flex flex-wrap gap-1.5 mt-1.5",children:[{label:"equals",value:'{"key": "val"}'},{label:"not equal",value:'{"key": {"$ne": "val"}}'},{label:"in list",value:'{"key": {"$in": ["a", "b"]}}'},{label:"exists",value:'{"key": {"$exists": true}}'}].map(t=>e.jsx("button",{type:"button",onClick:()=>p(i,"filter",t.value),className:"px-2 py-0.5 text-2xs font-mono rounded bg-accent/8 text-accent hover:bg-accent/15 transition-colors",children:t.label},t.label))})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:S,children:"With this data"}),d.reaction_type==="capability"&&d.tool_name?e.jsx(ze,{tool:m.find(t=>t.serverId===d.server_id&&t.name===d.tool_name),value:d.input_mapping,onChange:t=>p(i,"input_mapping",t),eventSchema:v==null?void 0:v.payload_schema}):e.jsxs(e.Fragment,{children:[e.jsx("textarea",{value:d.input_mapping,onChange:t=>p(i,"input_mapping",t.target.value),rows:10,className:L,placeholder:`{
4
4
  "data": {
@@ -13,4 +13,4 @@ This takes effect when you save.`)&&h(n)},className:"opacity-0 group-hover/sub:o
13
13
  This takes effect when you save.`)&&i(h)},className:"opacity-0 group-hover/sched:opacity-100 px-2 text-text-quaternary hover:text-status-error transition-all",title:"Remove",children:e.jsx(Z,{className:"w-3 h-3"})})]},h)),e.jsxs("button",{onClick:m,className:"w-full flex items-center gap-1.5 px-3 py-2 text-2xs text-accent hover:text-accent-hover transition-colors",children:[e.jsx(M,{className:"w-3 h-3"})," Add"]})]}),p&&e.jsxs("div",{className:"flex-1 min-w-0 space-y-12",children:[e.jsxs("div",{children:[e.jsx("label",{className:S,children:"Run every"}),e.jsx("input",{type:"text",value:p.cron,onChange:c=>x(r,"cron",c.target.value),placeholder:"0 * * * *",className:`${O} font-mono`}),p.cron&&e.jsx("p",{className:"text-2xs text-accent/80 mt-1",children:z(p.cron)}),e.jsx("div",{className:"flex gap-3 mt-2 overflow-x-auto",children:Ye.map(c=>e.jsx("button",{type:"button",onClick:()=>x(r,"cron",c),className:`text-2xs font-mono whitespace-nowrap transition-colors ${p.cron===c?"text-accent font-medium":"text-accent/50 hover:text-accent"}`,children:z(c)},c))})]}),e.jsxs("div",{children:[e.jsx("label",{className:S,children:"Run this reaction"}),e.jsx(ae,{reactionType:p.reaction_type,onReactionTypeChange:c=>x(r,"reaction_type",c),workflowType:p.workflow_type,onWorkflowTypeChange:c=>x(r,"workflow_type",c),pipelineId:p.pipeline_id,onPipelineIdChange:c=>x(r,"pipeline_id",c),serverId:p.server_id,toolName:p.tool_name,onCapabilityChange:(c,h)=>{x(r,"server_id",c),x(r,"tool_name",h)},availableTypes:["durable","pipeline","capability"]})]}),e.jsxs("div",{children:[e.jsx("label",{className:S,children:"As identity"}),e.jsx(te,{selected:p.execute_as,onChange:c=>x(r,"execute_as",c)}),e.jsx("p",{className:_,children:"Identity used when invoking."})]}),e.jsxs("div",{children:[e.jsx("label",{className:S,children:"With this data"}),e.jsx("textarea",{value:p.envelope,onChange:c=>x(r,"envelope",c.target.value),rows:10,className:L,placeholder:`{
14
14
  "data": { "source": "cron" }
15
15
  }`}),e.jsx("p",{className:_,children:"Static payload passed to the workflow on each invocation."})]})]})]})]})}function W({icon:s,color:a,title:r,children:o}){return e.jsxs("div",{className:"mb-10",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2 pb-1.5 border-b border-surface-border/40",children:[e.jsx(s,{className:`w-3.5 h-3.5 ${a}`,strokeWidth:1.5}),e.jsx("h3",{className:"text-xs font-semibold uppercase tracking-widest text-accent/80",children:r})]}),e.jsx("div",{className:"pl-5.5",children:o})]})}function T({label:s,children:a}){return e.jsxs("div",{className:"flex gap-3 py-0.5",children:[e.jsx("span",{className:"text-2xs text-text-quaternary w-20 shrink-0",children:s}),e.jsx("span",{className:"text-xs text-text-primary",children:a})]})}function Ke({form:s}){return e.jsxs("div",{children:[e.jsxs(W,{icon:V,color:"text-accent",title:"Identity",children:[e.jsx(T,{label:"Name",children:s.name||"—"}),s.description&&e.jsx(T,{label:"Description",children:s.description})]}),(s.goals||s.rules)&&e.jsxs(W,{icon:ee,color:"text-accent",title:"Motivation",children:[s.goals&&e.jsx(T,{label:"Goals",children:s.goals}),s.rules&&e.jsx(T,{label:"Rules",children:s.rules})]}),e.jsx(W,{icon:U,color:"text-accent",title:"Knowledge",children:e.jsx(T,{label:"Domain",children:s.knowledge_domain||"None"})}),e.jsxs("div",{className:"grid grid-cols-2 gap-x-10",children:[e.jsx(W,{icon:Y,color:"text-accent",title:`Subscriptions (${s.subscriptions.length})`,children:s.subscriptions.length===0?e.jsx("span",{className:"text-2xs text-text-quaternary",children:"None configured"}):e.jsx("div",{className:"divide-y divide-surface-border/30",children:s.subscriptions.map((a,r)=>e.jsxs("div",{className:"flex items-center py-1.5",children:[e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx(de,{topic:a.topic||"unset"})}),e.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[e.jsx("span",{className:"text-text-quaternary text-2xs",children:"→"}),a.workflow_type?e.jsx(Q,{type:a.workflow_type}):e.jsx("span",{className:"text-2xs text-text-quaternary",children:a.reaction_type})]})]},r))})}),e.jsx(W,{icon:G,color:"text-accent",title:`Schedules (${s.schedules.length})`,children:s.schedules.length===0?e.jsx("span",{className:"text-2xs text-text-quaternary",children:"None configured"}):e.jsx("div",{className:"divide-y divide-surface-border/30",children:s.schedules.map((a,r)=>e.jsxs("div",{className:"flex items-center py-1.5",children:[e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx(xe,{cron:a.cron})}),e.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[e.jsx("span",{className:"text-text-quaternary text-2xs",children:"→"}),a.workflow_type?e.jsx(Q,{type:a.workflow_type}):e.jsx("span",{className:"text-2xs text-text-quaternary",children:"no workflow"})]})]},r))})})]}),e.jsx("div",{className:"border-l-2 border-status-success/30 pl-3 py-2 mt-6",children:e.jsx("p",{className:"text-2xs text-text-tertiary leading-relaxed",children:"After saving, subscriptions and schedules activate immediately. You can pause the automation anytime."})})]})}const He=[{id:1,label:"Identity",icon:V},{id:2,label:"Motivation",icon:ee},{id:3,label:"Knowledge",icon:U},{id:4,label:"Subscriptions",icon:Y},{id:5,label:"Schedules",icon:G},{id:6,label:"Review",icon:je}];function pt(){var H;const{id:s}=Ce(),a=!s,r=Se(),{data:o}=ve(),x=be(),i=(x!==null?x:!!((H=o==null?void 0:o.ai)!=null&&H.enabled))?"Agent":"Automation",{data:u,isLoading:p}=le(a?null:s),{data:c}=pe(a?null:s),h=ce(),l=oe(),d=ue(),y=me(),v=he(),[t,n]=f.useState(X),[b,g]=f.useState(!1),[k,R]=f.useState(""),[$,q]=qe(),w=parseInt($.get("step")||"1",10),ne=f.useCallback(j=>{q(N=>{const A=new URLSearchParams(N);return A.set("step",String(j)),A},{replace:!0})},[q]);f.useEffect(()=>{if(!b){if(a){n(X),g(!0);return}u&&c&&(n(Re(u,c.subscriptions??[])),g(!0))}},[u,c,a,b]);const I=(j,N)=>n(A=>({...A,[j]:N})),ie=async()=>{R("");try{const j=Ee(t);let N=s;a?N=(await h.mutateAsync(j)).id:await l.mutateAsync({id:s,...j});const A=$e(t),re=(c==null?void 0:c.subscriptions)??[],J=new Set(re.map(C=>C.id));for(const C of A)if(C.id&&J.has(C.id)){const{id:F,...D}=C;await y.mutateAsync({agentId:N,subId:F,...D}),J.delete(F)}else{const{id:F,...D}=C;await d.mutateAsync({agentId:N,...D})}for(const C of J)await v.mutateAsync({agentId:N,subId:C});r(`/agents/${N}`)}catch(j){R(j.message)}};if(!a&&p)return e.jsxs("div",{className:"animate-pulse space-y-4",children:[e.jsx("div",{className:"h-8 bg-surface-sunken rounded w-48"}),e.jsx("div",{className:"h-60 bg-surface-sunken rounded"})]});const K=h.isPending||l.isPending;return e.jsxs("div",{children:[e.jsx(ye,{title:a?`New ${i}`:`${i}: ${(u==null?void 0:u.id)??""}`,docsHash:"#docs:agents.md"}),e.jsxs("div",{className:"flex gap-10",children:[e.jsxs("nav",{className:"w-44 shrink-0 sticky top-0 self-start pt-2",children:[e.jsx("div",{className:"space-y-0.5",children:He.map(j=>{const N=j.icon,A=w===j.id;return e.jsxs("button",{onClick:()=>ne(j.id),className:`w-full flex items-center gap-2.5 px-3 py-2 rounded-md text-left transition-colors ${A?"bg-accent/10 text-accent":"text-text-tertiary hover:text-text-primary hover:bg-surface-hover"}`,children:[e.jsx(N,{className:"w-3.5 h-3.5 shrink-0",strokeWidth:1.5}),e.jsx("span",{className:"text-xs font-medium",children:j.label})]},j.id)})}),e.jsxs("div",{className:"mt-8 pt-4 border-t border-surface-border space-y-2",children:[e.jsx("button",{onClick:ie,disabled:!t.name.trim()||K,className:"w-full btn-primary text-xs disabled:opacity-50",children:K?"Saving...":a?`Create ${i}`:"Save"}),e.jsx("button",{onClick:()=>r(a?"/agents":`/agents/${s}`),className:"w-full btn-ghost text-xs",children:"Cancel"})]}),k&&e.jsx("p",{className:"text-xs text-status-error mt-3",children:k})]}),e.jsxs("div",{className:"flex-1 min-w-0 pt-2",children:[w===1&&e.jsx(Ie,{form:t,set:I}),w===2&&e.jsx(We,{form:t,set:I}),w===3&&e.jsx(Te,{form:t,set:I}),w===4&&e.jsx(De,{form:t,set:I}),w===5&&e.jsx(Ge,{form:t,set:I}),w===6&&e.jsx(Ke,{form:t})]})]})]})}export{pt as AgentConfigPage};
16
- //# sourceMappingURL=AgentConfigPage-ChL59YL5.js.map
16
+ //# sourceMappingURL=AgentConfigPage-CtVq8J0L.js.map