@elevasis/ui 1.20.0 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (584) hide show
  1. package/dist/auth/index.d.ts +174 -14
  2. package/dist/charts/index.js +3 -2
  3. package/dist/{chunk-Z2BXCFAG.js → chunk-2WLVOFK7.js} +1 -1
  4. package/dist/{chunk-ACD2QA6E.js → chunk-3DIU726S.js} +2 -2
  5. package/dist/chunk-3KMDHCAR.js +52 -0
  6. package/dist/chunk-AWT255UH.js +255 -0
  7. package/dist/{chunk-AWMZCYKH.js → chunk-BC6TJEON.js} +2 -45
  8. package/dist/{chunk-I6EVLOP3.js → chunk-CRFV2TVK.js} +2 -2
  9. package/dist/{chunk-EMN755L5.js → chunk-CTF6FS2M.js} +10 -216
  10. package/dist/{chunk-4SY4EQSK.js → chunk-CYJILY7M.js} +3 -3
  11. package/dist/{chunk-AQ5MQDSS.js → chunk-EDAYKRPJ.js} +404 -2
  12. package/dist/{chunk-XOTN3X3Z.js → chunk-FATKFO7X.js} +3 -54
  13. package/dist/{chunk-ERVB3QJQ.js → chunk-FVBYSDM4.js} +1 -1
  14. package/dist/{chunk-BX565EOK.js → chunk-MOBXWBES.js} +495 -860
  15. package/dist/{chunk-U4CHEPIL.js → chunk-NL6EFQYE.js} +515 -265
  16. package/dist/{chunk-JHMJKDVU.js → chunk-R3R367QY.js} +1 -1
  17. package/dist/chunk-ROSMICXG.js +668 -0
  18. package/dist/{chunk-GH7ZO4VD.js → chunk-ST2RSBQ3.js} +364 -364
  19. package/dist/{chunk-JZEXFQ6N.js → chunk-UZWZY7TJ.js} +2 -2
  20. package/dist/{chunk-UMFPUM7Q.js → chunk-V422ET6W.js} +12 -12
  21. package/dist/components/chat/index.d.ts +202 -0
  22. package/dist/components/chat/index.js +2 -0
  23. package/dist/components/index.d.ts +5708 -22
  24. package/dist/components/index.js +2653 -2901
  25. package/dist/features/auth/index.d.ts +2557 -9
  26. package/dist/features/dashboard/index.d.ts +244 -9
  27. package/dist/features/dashboard/index.js +10 -9
  28. package/dist/features/monitoring/index.d.ts +121 -15
  29. package/dist/features/monitoring/index.js +11 -10
  30. package/dist/features/operations/index.d.ts +2006 -29
  31. package/dist/features/operations/index.js +1116 -170
  32. package/dist/features/settings/index.d.ts +2589 -23
  33. package/dist/features/settings/index.js +10 -9
  34. package/dist/hooks/index.css +68 -0
  35. package/dist/hooks/index.d.ts +7772 -22
  36. package/dist/hooks/index.js +6 -6
  37. package/dist/hooks/published.css +68 -0
  38. package/dist/hooks/published.d.ts +7216 -21
  39. package/dist/hooks/published.js +5 -5
  40. package/dist/index.css +68 -0
  41. package/dist/index.d.ts +9684 -15
  42. package/dist/index.js +7 -7
  43. package/dist/initialization/index.d.ts +2526 -23
  44. package/dist/layout/index.d.ts +3 -3
  45. package/dist/layout/index.js +4 -4
  46. package/dist/organization/index.d.ts +274 -23
  47. package/dist/profile/index.d.ts +2477 -15
  48. package/dist/provider/index.d.ts +334 -11
  49. package/dist/provider/index.js +4 -4
  50. package/dist/provider/published.d.ts +309 -11
  51. package/dist/theme/index.d.ts +148 -10
  52. package/dist/theme/index.js +3 -3
  53. package/dist/theme/presets/synapse.d.ts.map +1 -1
  54. package/dist/theme/presets/synapse.js +75 -0
  55. package/dist/types/index.d.ts +1 -1
  56. package/package.json +9 -4
  57. package/dist/auth/guards/AdminGuard.d.ts +0 -32
  58. package/dist/auth/guards/AdminGuard.d.ts.map +0 -1
  59. package/dist/auth/guards/ProtectedRoute.d.ts +0 -60
  60. package/dist/auth/guards/ProtectedRoute.d.ts.map +0 -1
  61. package/dist/auth/guards/__tests__/AdminGuard.test.d.ts +0 -12
  62. package/dist/auth/guards/__tests__/AdminGuard.test.d.ts.map +0 -1
  63. package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts +0 -14
  64. package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts.map +0 -1
  65. package/dist/auth/index.d.ts.map +0 -1
  66. package/dist/chunk-JFRG2JJE.js +0 -47
  67. package/dist/components/charts/ActivityTrendChart.d.ts +0 -13
  68. package/dist/components/charts/ActivityTrendChart.d.ts.map +0 -1
  69. package/dist/components/charts/CombinedTrendChart.d.ts +0 -22
  70. package/dist/components/charts/CombinedTrendChart.d.ts.map +0 -1
  71. package/dist/components/charts/CostTrendChart.d.ts +0 -13
  72. package/dist/components/charts/CostTrendChart.d.ts.map +0 -1
  73. package/dist/components/charts/HeroStatsRow.d.ts +0 -15
  74. package/dist/components/charts/HeroStatsRow.d.ts.map +0 -1
  75. package/dist/components/charts/index.d.ts +0 -9
  76. package/dist/components/charts/index.d.ts.map +0 -1
  77. package/dist/components/command-queue/TaskCard.d.ts +0 -18
  78. package/dist/components/command-queue/TaskCard.d.ts.map +0 -1
  79. package/dist/components/command-queue/index.d.ts +0 -5
  80. package/dist/components/command-queue/index.d.ts.map +0 -1
  81. package/dist/components/display/PageNotFound.d.ts +0 -2
  82. package/dist/components/display/PageNotFound.d.ts.map +0 -1
  83. package/dist/components/display/index.d.ts +0 -26
  84. package/dist/components/display/index.d.ts.map +0 -1
  85. package/dist/components/execution/ExecutionStats.d.ts +0 -16
  86. package/dist/components/execution/ExecutionStats.d.ts.map +0 -1
  87. package/dist/components/execution/index.d.ts +0 -18
  88. package/dist/components/execution/index.d.ts.map +0 -1
  89. package/dist/components/index.d.ts.map +0 -1
  90. package/dist/components/layout/backgrounds/AuroraBackground.d.ts +0 -16
  91. package/dist/components/layout/backgrounds/AuroraBackground.d.ts.map +0 -1
  92. package/dist/components/layout/backgrounds/AuroraBackground.js +0 -169
  93. package/dist/components/layout/backgrounds/EmberBackground.d.ts +0 -16
  94. package/dist/components/layout/backgrounds/EmberBackground.d.ts.map +0 -1
  95. package/dist/components/layout/backgrounds/EmberBackground.js +0 -169
  96. package/dist/components/layout/backgrounds/RoseGoldBackground.d.ts +0 -16
  97. package/dist/components/layout/backgrounds/RoseGoldBackground.d.ts.map +0 -1
  98. package/dist/components/layout/backgrounds/RoseGoldBackground.js +0 -169
  99. package/dist/components/monitoring/ErrorBreakdownTable.d.ts +0 -12
  100. package/dist/components/monitoring/ErrorBreakdownTable.d.ts.map +0 -1
  101. package/dist/components/monitoring/ResourceHealthPanel.d.ts +0 -8
  102. package/dist/components/monitoring/ResourceHealthPanel.d.ts.map +0 -1
  103. package/dist/components/monitoring/index.d.ts +0 -16
  104. package/dist/components/monitoring/index.d.ts.map +0 -1
  105. package/dist/components/notifications/NotificationBell.d.ts +0 -9
  106. package/dist/components/notifications/NotificationBell.d.ts.map +0 -1
  107. package/dist/components/notifications/NotificationItem.d.ts +0 -9
  108. package/dist/components/notifications/NotificationItem.d.ts.map +0 -1
  109. package/dist/components/notifications/NotificationList.d.ts +0 -10
  110. package/dist/components/notifications/NotificationList.d.ts.map +0 -1
  111. package/dist/components/notifications/NotificationPanel.d.ts +0 -10
  112. package/dist/components/notifications/NotificationPanel.d.ts.map +0 -1
  113. package/dist/components/notifications/index.d.ts +0 -5
  114. package/dist/components/notifications/index.d.ts.map +0 -1
  115. package/dist/components/operations/calibration/CreateProjectModal.d.ts +0 -9
  116. package/dist/components/operations/calibration/CreateProjectModal.d.ts.map +0 -1
  117. package/dist/components/operations/calibration/ProjectCard.d.ts +0 -9
  118. package/dist/components/operations/calibration/ProjectCard.d.ts.map +0 -1
  119. package/dist/components/operations/command-queue/index.d.ts +0 -3
  120. package/dist/components/operations/command-queue/index.d.ts.map +0 -1
  121. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts +0 -17
  122. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts.map +0 -1
  123. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts +0 -17
  124. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts.map +0 -1
  125. package/dist/components/operations/command-queue/sidebar/index.d.ts +0 -5
  126. package/dist/components/operations/command-queue/sidebar/index.d.ts.map +0 -1
  127. package/dist/components/operations/command-view/CommandViewGraph.d.ts +0 -22
  128. package/dist/components/operations/command-view/CommandViewGraph.d.ts.map +0 -1
  129. package/dist/components/operations/command-view/index.d.ts +0 -4
  130. package/dist/components/operations/command-view/index.d.ts.map +0 -1
  131. package/dist/components/operations/executions/AgentExecutionLogs.d.ts +0 -13
  132. package/dist/components/operations/executions/AgentExecutionLogs.d.ts.map +0 -1
  133. package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts +0 -13
  134. package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts.map +0 -1
  135. package/dist/components/operations/executions/index.d.ts +0 -4
  136. package/dist/components/operations/executions/index.d.ts.map +0 -1
  137. package/dist/components/operations/index.d.ts +0 -8
  138. package/dist/components/operations/index.d.ts.map +0 -1
  139. package/dist/components/operations/knowledge-base/DocTreeNav.d.ts +0 -14
  140. package/dist/components/operations/knowledge-base/DocTreeNav.d.ts.map +0 -1
  141. package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts +0 -16
  142. package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts.map +0 -1
  143. package/dist/components/operations/knowledge-base/index.d.ts +0 -3
  144. package/dist/components/operations/knowledge-base/index.d.ts.map +0 -1
  145. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts +0 -16
  146. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts.map +0 -1
  147. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts +0 -12
  148. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts.map +0 -1
  149. package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts +0 -12
  150. package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts.map +0 -1
  151. package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts +0 -7
  152. package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts.map +0 -1
  153. package/dist/components/operations/shared/index.d.ts +0 -5
  154. package/dist/components/operations/shared/index.d.ts.map +0 -1
  155. package/dist/components/operations/shared/layouts/ResourceHeader.d.ts +0 -11
  156. package/dist/components/operations/shared/layouts/ResourceHeader.d.ts.map +0 -1
  157. package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts +0 -8
  158. package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts.map +0 -1
  159. package/dist/components/operations/shared/layouts/index.d.ts +0 -4
  160. package/dist/components/operations/shared/layouts/index.d.ts.map +0 -1
  161. package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts +0 -7
  162. package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts.map +0 -1
  163. package/dist/components/operations/task-scheduler/TaskScheduler.d.ts +0 -2
  164. package/dist/components/operations/task-scheduler/TaskScheduler.d.ts.map +0 -1
  165. package/dist/components/operations/task-scheduler/index.d.ts +0 -11
  166. package/dist/components/operations/task-scheduler/index.d.ts.map +0 -1
  167. package/dist/components/sdk-barrel.d.ts +0 -26
  168. package/dist/components/sdk-barrel.d.ts.map +0 -1
  169. package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts +0 -9
  170. package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts.map +0 -1
  171. package/dist/components/settings/api-keys/ApiKeyList.d.ts +0 -8
  172. package/dist/components/settings/api-keys/ApiKeyList.d.ts.map +0 -1
  173. package/dist/components/settings/api-keys/ApiKeySettings.d.ts +0 -2
  174. package/dist/components/settings/api-keys/ApiKeySettings.d.ts.map +0 -1
  175. package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts +0 -9
  176. package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts.map +0 -1
  177. package/dist/components/settings/api-keys/EditApiKeyModal.d.ts +0 -8
  178. package/dist/components/settings/api-keys/EditApiKeyModal.d.ts.map +0 -1
  179. package/dist/components/settings/api-keys/index.d.ts +0 -6
  180. package/dist/components/settings/api-keys/index.d.ts.map +0 -1
  181. package/dist/components/settings/credentials/CreateCredentialModal.d.ts +0 -9
  182. package/dist/components/settings/credentials/CreateCredentialModal.d.ts.map +0 -1
  183. package/dist/components/settings/credentials/CredentialList.d.ts +0 -10
  184. package/dist/components/settings/credentials/CredentialList.d.ts.map +0 -1
  185. package/dist/components/settings/credentials/CredentialSettings.d.ts +0 -7
  186. package/dist/components/settings/credentials/CredentialSettings.d.ts.map +0 -1
  187. package/dist/components/settings/credentials/index.d.ts +0 -5
  188. package/dist/components/settings/credentials/index.d.ts.map +0 -1
  189. package/dist/components/settings/deployments/DeploymentList.d.ts +0 -8
  190. package/dist/components/settings/deployments/DeploymentList.d.ts.map +0 -1
  191. package/dist/components/settings/deployments/DeploymentSettings.d.ts +0 -2
  192. package/dist/components/settings/deployments/DeploymentSettings.d.ts.map +0 -1
  193. package/dist/components/settings/deployments/index.d.ts +0 -5
  194. package/dist/components/settings/deployments/index.d.ts.map +0 -1
  195. package/dist/components/settings/index.d.ts +0 -6
  196. package/dist/components/settings/index.d.ts.map +0 -1
  197. package/dist/components/table/SortableHeader.d.ts +0 -12
  198. package/dist/components/table/SortableHeader.d.ts.map +0 -1
  199. package/dist/components/table/index.d.ts +0 -4
  200. package/dist/components/table/index.d.ts.map +0 -1
  201. package/dist/features/auth/AdminGuard.d.ts +0 -38
  202. package/dist/features/auth/AdminGuard.d.ts.map +0 -1
  203. package/dist/features/auth/FeatureGuard.d.ts +0 -45
  204. package/dist/features/auth/FeatureGuard.d.ts.map +0 -1
  205. package/dist/features/auth/ProtectedRoute.d.ts +0 -43
  206. package/dist/features/auth/ProtectedRoute.d.ts.map +0 -1
  207. package/dist/features/auth/index.d.ts.map +0 -1
  208. package/dist/features/auth/useUserProfile.d.ts +0 -10
  209. package/dist/features/auth/useUserProfile.d.ts.map +0 -1
  210. package/dist/features/dashboard/Dashboard.d.ts +0 -57
  211. package/dist/features/dashboard/Dashboard.d.ts.map +0 -1
  212. package/dist/features/dashboard/RecentExecutionsByResource.d.ts +0 -11
  213. package/dist/features/dashboard/RecentExecutionsByResource.d.ts.map +0 -1
  214. package/dist/features/dashboard/ResourceOverview.d.ts +0 -21
  215. package/dist/features/dashboard/ResourceOverview.d.ts.map +0 -1
  216. package/dist/features/dashboard/UnresolvedErrorsTeaser.d.ts +0 -7
  217. package/dist/features/dashboard/UnresolvedErrorsTeaser.d.ts.map +0 -1
  218. package/dist/features/dashboard/index.d.ts.map +0 -1
  219. package/dist/features/monitoring/ActivityFeed.d.ts +0 -37
  220. package/dist/features/monitoring/ActivityFeed.d.ts.map +0 -1
  221. package/dist/features/monitoring/ActivityLog.d.ts +0 -8
  222. package/dist/features/monitoring/ActivityLog.d.ts.map +0 -1
  223. package/dist/features/monitoring/CostAnalytics.d.ts +0 -13
  224. package/dist/features/monitoring/CostAnalytics.d.ts.map +0 -1
  225. package/dist/features/monitoring/ErrorDetailsModal.d.ts +0 -13
  226. package/dist/features/monitoring/ErrorDetailsModal.d.ts.map +0 -1
  227. package/dist/features/monitoring/ExecutionHealth.d.ts +0 -9
  228. package/dist/features/monitoring/ExecutionHealth.d.ts.map +0 -1
  229. package/dist/features/monitoring/ExecutionLogsPage.d.ts +0 -20
  230. package/dist/features/monitoring/ExecutionLogsPage.d.ts.map +0 -1
  231. package/dist/features/monitoring/NotificationCenter.d.ts +0 -5
  232. package/dist/features/monitoring/NotificationCenter.d.ts.map +0 -1
  233. package/dist/features/monitoring/index.d.ts.map +0 -1
  234. package/dist/features/operations/CalibrationPage.d.ts +0 -9
  235. package/dist/features/operations/CalibrationPage.d.ts.map +0 -1
  236. package/dist/features/operations/CalibrationProjectDetailPage.d.ts +0 -43
  237. package/dist/features/operations/CalibrationProjectDetailPage.d.ts.map +0 -1
  238. package/dist/features/operations/CalibrationProjectsPage.d.ts +0 -10
  239. package/dist/features/operations/CalibrationProjectsPage.d.ts.map +0 -1
  240. package/dist/features/operations/CalibrationRunDetailPage.d.ts +0 -35
  241. package/dist/features/operations/CalibrationRunDetailPage.d.ts.map +0 -1
  242. package/dist/features/operations/CommandQueueDetailPage.d.ts +0 -16
  243. package/dist/features/operations/CommandQueueDetailPage.d.ts.map +0 -1
  244. package/dist/features/operations/CommandQueuePage.d.ts +0 -13
  245. package/dist/features/operations/CommandQueuePage.d.ts.map +0 -1
  246. package/dist/features/operations/CommandViewPage.d.ts +0 -6
  247. package/dist/features/operations/CommandViewPage.d.ts.map +0 -1
  248. package/dist/features/operations/CommandViewSidebarContent.d.ts +0 -19
  249. package/dist/features/operations/CommandViewSidebarContent.d.ts.map +0 -1
  250. package/dist/features/operations/ResourceDetailPage.d.ts +0 -25
  251. package/dist/features/operations/ResourceDetailPage.d.ts.map +0 -1
  252. package/dist/features/operations/ResourcesPage.d.ts +0 -15
  253. package/dist/features/operations/ResourcesPage.d.ts.map +0 -1
  254. package/dist/features/operations/ResourcesSidebar.d.ts +0 -9
  255. package/dist/features/operations/ResourcesSidebar.d.ts.map +0 -1
  256. package/dist/features/operations/calibration-components/ComparisonTable.d.ts +0 -9
  257. package/dist/features/operations/calibration-components/ComparisonTable.d.ts.map +0 -1
  258. package/dist/features/operations/executions/AgentExecutionPanel.d.ts +0 -12
  259. package/dist/features/operations/executions/AgentExecutionPanel.d.ts.map +0 -1
  260. package/dist/features/operations/executions/ExecutionPanel.d.ts +0 -13
  261. package/dist/features/operations/executions/ExecutionPanel.d.ts.map +0 -1
  262. package/dist/features/operations/executions/WorkflowExecutionPanel.d.ts +0 -12
  263. package/dist/features/operations/executions/WorkflowExecutionPanel.d.ts.map +0 -1
  264. package/dist/features/operations/executions/index.d.ts +0 -7
  265. package/dist/features/operations/executions/index.d.ts.map +0 -1
  266. package/dist/features/operations/index.d.ts.map +0 -1
  267. package/dist/features/operations/layouts/components/ResourceHeader.d.ts +0 -11
  268. package/dist/features/operations/layouts/components/ResourceHeader.d.ts.map +0 -1
  269. package/dist/features/operations/layouts/components/ResourceNotFoundState.d.ts +0 -8
  270. package/dist/features/operations/layouts/components/ResourceNotFoundState.d.ts.map +0 -1
  271. package/dist/features/operations/layouts/components/index.d.ts +0 -4
  272. package/dist/features/operations/layouts/components/index.d.ts.map +0 -1
  273. package/dist/features/settings/AccountSettings.d.ts +0 -20
  274. package/dist/features/settings/AccountSettings.d.ts.map +0 -1
  275. package/dist/features/settings/AppearanceSettings.d.ts +0 -23
  276. package/dist/features/settings/AppearanceSettings.d.ts.map +0 -1
  277. package/dist/features/settings/CreateWebhookEndpointModal.d.ts +0 -8
  278. package/dist/features/settings/CreateWebhookEndpointModal.d.ts.map +0 -1
  279. package/dist/features/settings/EditCredentialModal.d.ts +0 -9
  280. package/dist/features/settings/EditCredentialModal.d.ts.map +0 -1
  281. package/dist/features/settings/EditWebhookEndpointModal.d.ts +0 -8
  282. package/dist/features/settings/EditWebhookEndpointModal.d.ts.map +0 -1
  283. package/dist/features/settings/MemberConfigModal.d.ts +0 -14
  284. package/dist/features/settings/MemberConfigModal.d.ts.map +0 -1
  285. package/dist/features/settings/OAuthIntegrationsCard.d.ts +0 -6
  286. package/dist/features/settings/OAuthIntegrationsCard.d.ts.map +0 -1
  287. package/dist/features/settings/OrgMembersList.d.ts +0 -5
  288. package/dist/features/settings/OrgMembersList.d.ts.map +0 -1
  289. package/dist/features/settings/OrganizationSettings.d.ts +0 -30
  290. package/dist/features/settings/OrganizationSettings.d.ts.map +0 -1
  291. package/dist/features/settings/WebhookEndpointList.d.ts +0 -9
  292. package/dist/features/settings/WebhookEndpointList.d.ts.map +0 -1
  293. package/dist/features/settings/WebhookEndpointSettings.d.ts +0 -6
  294. package/dist/features/settings/WebhookEndpointSettings.d.ts.map +0 -1
  295. package/dist/features/settings/index.d.ts.map +0 -1
  296. package/dist/hooks/command-queue/index.d.ts +0 -7
  297. package/dist/hooks/command-queue/index.d.ts.map +0 -1
  298. package/dist/hooks/command-queue/useCommandQueue.d.ts +0 -33
  299. package/dist/hooks/command-queue/useCommandQueue.d.ts.map +0 -1
  300. package/dist/hooks/command-queue/useCommandQueueTotals.d.ts +0 -17
  301. package/dist/hooks/command-queue/useCommandQueueTotals.d.ts.map +0 -1
  302. package/dist/hooks/command-queue/useDeleteTask.d.ts +0 -5
  303. package/dist/hooks/command-queue/useDeleteTask.d.ts.map +0 -1
  304. package/dist/hooks/command-queue/usePatchTask.d.ts +0 -6
  305. package/dist/hooks/command-queue/usePatchTask.d.ts.map +0 -1
  306. package/dist/hooks/command-queue/useSubmitAction.d.ts +0 -29
  307. package/dist/hooks/command-queue/useSubmitAction.d.ts.map +0 -1
  308. package/dist/hooks/executions/index.d.ts +0 -17
  309. package/dist/hooks/executions/index.d.ts.map +0 -1
  310. package/dist/hooks/executions/useArchivedLogs.d.ts +0 -14
  311. package/dist/hooks/executions/useArchivedLogs.d.ts.map +0 -1
  312. package/dist/hooks/executions/useBulkDeleteExecutions.d.ts +0 -15
  313. package/dist/hooks/executions/useBulkDeleteExecutions.d.ts.map +0 -1
  314. package/dist/hooks/executions/useCancelExecution.d.ts +0 -20
  315. package/dist/hooks/executions/useCancelExecution.d.ts.map +0 -1
  316. package/dist/hooks/executions/useDeleteExecution.d.ts +0 -13
  317. package/dist/hooks/executions/useDeleteExecution.d.ts.map +0 -1
  318. package/dist/hooks/executions/useExecuteAsync.d.ts +0 -21
  319. package/dist/hooks/executions/useExecuteAsync.d.ts.map +0 -1
  320. package/dist/hooks/executions/useExecution.d.ts +0 -10
  321. package/dist/hooks/executions/useExecution.d.ts.map +0 -1
  322. package/dist/hooks/executions/useExecutions.d.ts +0 -16
  323. package/dist/hooks/executions/useExecutions.d.ts.map +0 -1
  324. package/dist/hooks/executions/useResourceDefinition.d.ts +0 -9
  325. package/dist/hooks/executions/useResourceDefinition.d.ts.map +0 -1
  326. package/dist/hooks/executions/useResources.d.ts +0 -15
  327. package/dist/hooks/executions/useResources.d.ts.map +0 -1
  328. package/dist/hooks/executions/useRetryExecution.d.ts +0 -16
  329. package/dist/hooks/executions/useRetryExecution.d.ts.map +0 -1
  330. package/dist/hooks/feature-access/createUseFeatureAccess.d.ts +0 -41
  331. package/dist/hooks/feature-access/createUseFeatureAccess.d.ts.map +0 -1
  332. package/dist/hooks/feature-access/index.d.ts +0 -2
  333. package/dist/hooks/feature-access/index.d.ts.map +0 -1
  334. package/dist/hooks/index.d.ts.map +0 -1
  335. package/dist/hooks/monitoring/index.d.ts +0 -11
  336. package/dist/hooks/monitoring/index.d.ts.map +0 -1
  337. package/dist/hooks/monitoring/useActivities.d.ts +0 -52
  338. package/dist/hooks/monitoring/useActivities.d.ts.map +0 -1
  339. package/dist/hooks/monitoring/useCostSummary.d.ts +0 -7
  340. package/dist/hooks/monitoring/useCostSummary.d.ts.map +0 -1
  341. package/dist/hooks/monitoring/useExecutionHealth.d.ts +0 -10
  342. package/dist/hooks/monitoring/useExecutionHealth.d.ts.map +0 -1
  343. package/dist/hooks/monitoring/useExecutionLogs.d.ts +0 -56
  344. package/dist/hooks/monitoring/useExecutionLogs.d.ts.map +0 -1
  345. package/dist/hooks/monitoring/useNotificationCount.d.ts +0 -26
  346. package/dist/hooks/monitoring/useNotificationCount.d.ts.map +0 -1
  347. package/dist/hooks/monitoring/useNotifications.d.ts +0 -11
  348. package/dist/hooks/monitoring/useNotifications.d.ts.map +0 -1
  349. package/dist/hooks/notifications/index.d.ts +0 -8
  350. package/dist/hooks/notifications/index.d.ts.map +0 -1
  351. package/dist/hooks/notifications/useMarkAllAsRead.d.ts +0 -2
  352. package/dist/hooks/notifications/useMarkAllAsRead.d.ts.map +0 -1
  353. package/dist/hooks/notifications/useMarkAsRead.d.ts +0 -2
  354. package/dist/hooks/notifications/useMarkAsRead.d.ts.map +0 -1
  355. package/dist/hooks/notifications/useTestNotification.d.ts +0 -16
  356. package/dist/hooks/notifications/useTestNotification.d.ts.map +0 -1
  357. package/dist/hooks/observability/index.d.ts +0 -25
  358. package/dist/hooks/observability/index.d.ts.map +0 -1
  359. package/dist/hooks/observability/useBatchedResourcesHealth.d.ts +0 -15
  360. package/dist/hooks/observability/useBatchedResourcesHealth.d.ts.map +0 -1
  361. package/dist/hooks/observability/useBusinessImpact.d.ts +0 -9
  362. package/dist/hooks/observability/useBusinessImpact.d.ts.map +0 -1
  363. package/dist/hooks/observability/useCostBreakdown.d.ts +0 -10
  364. package/dist/hooks/observability/useCostBreakdown.d.ts.map +0 -1
  365. package/dist/hooks/observability/useCostByModel.d.ts +0 -3
  366. package/dist/hooks/observability/useCostByModel.d.ts.map +0 -1
  367. package/dist/hooks/observability/useCostTrends.d.ts +0 -3
  368. package/dist/hooks/observability/useCostTrends.d.ts.map +0 -1
  369. package/dist/hooks/observability/useDashboardMetrics.d.ts +0 -3
  370. package/dist/hooks/observability/useDashboardMetrics.d.ts.map +0 -1
  371. package/dist/hooks/observability/useErrorAnalysis.d.ts +0 -7
  372. package/dist/hooks/observability/useErrorAnalysis.d.ts.map +0 -1
  373. package/dist/hooks/observability/useErrorDetails.d.ts +0 -20
  374. package/dist/hooks/observability/useErrorDetails.d.ts.map +0 -1
  375. package/dist/hooks/observability/useErrorDistribution.d.ts +0 -12
  376. package/dist/hooks/observability/useErrorDistribution.d.ts.map +0 -1
  377. package/dist/hooks/observability/useErrorTrends.d.ts +0 -12
  378. package/dist/hooks/observability/useErrorTrends.d.ts.map +0 -1
  379. package/dist/hooks/observability/useRecentExecutionsByResource.d.ts +0 -18
  380. package/dist/hooks/observability/useRecentExecutionsByResource.d.ts.map +0 -1
  381. package/dist/hooks/observability/useResolveError.d.ts +0 -17
  382. package/dist/hooks/observability/useResolveError.d.ts.map +0 -1
  383. package/dist/hooks/observability/useResourcesHealth.d.ts +0 -13
  384. package/dist/hooks/observability/useResourcesHealth.d.ts.map +0 -1
  385. package/dist/hooks/observability/useTopFailingResources.d.ts +0 -13
  386. package/dist/hooks/observability/useTopFailingResources.d.ts.map +0 -1
  387. package/dist/hooks/observability/useUnresolvedErrors.d.ts +0 -15
  388. package/dist/hooks/observability/useUnresolvedErrors.d.ts.map +0 -1
  389. package/dist/hooks/operations/calibration/useCalibrationProjects.d.ts +0 -24
  390. package/dist/hooks/operations/calibration/useCalibrationProjects.d.ts.map +0 -1
  391. package/dist/hooks/operations/calibration/useCalibrationRunFull.d.ts +0 -3
  392. package/dist/hooks/operations/calibration/useCalibrationRunFull.d.ts.map +0 -1
  393. package/dist/hooks/operations/calibration/useCalibrationRuns.d.ts +0 -35
  394. package/dist/hooks/operations/calibration/useCalibrationRuns.d.ts.map +0 -1
  395. package/dist/hooks/operations/command-view/index.d.ts +0 -8
  396. package/dist/hooks/operations/command-view/index.d.ts.map +0 -1
  397. package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts +0 -24
  398. package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts.map +0 -1
  399. package/dist/hooks/operations/command-view/useCommandViewData.d.ts +0 -11
  400. package/dist/hooks/operations/command-view/useCommandViewData.d.ts.map +0 -1
  401. package/dist/hooks/operations/command-view/useCommandViewStats.d.ts +0 -12
  402. package/dist/hooks/operations/command-view/useCommandViewStats.d.ts.map +0 -1
  403. package/dist/hooks/operations/command-view/useResourceErrors.d.ts +0 -22
  404. package/dist/hooks/operations/command-view/useResourceErrors.d.ts.map +0 -1
  405. package/dist/hooks/operations/command-view/useResourceExecutions.d.ts +0 -22
  406. package/dist/hooks/operations/command-view/useResourceExecutions.d.ts.map +0 -1
  407. package/dist/hooks/operations/index.d.ts +0 -4
  408. package/dist/hooks/operations/index.d.ts.map +0 -1
  409. package/dist/hooks/operations/knowledge-base/index.d.ts +0 -3
  410. package/dist/hooks/operations/knowledge-base/index.d.ts.map +0 -1
  411. package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts +0 -27
  412. package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts.map +0 -1
  413. package/dist/hooks/operations/settings/index.d.ts +0 -4
  414. package/dist/hooks/operations/settings/index.d.ts.map +0 -1
  415. package/dist/hooks/operations/settings/useOAuthFlow.d.ts +0 -17
  416. package/dist/hooks/operations/settings/useOAuthFlow.d.ts.map +0 -1
  417. package/dist/hooks/operations/settings/useUpdateThemePreference.d.ts +0 -17
  418. package/dist/hooks/operations/settings/useUpdateThemePreference.d.ts.map +0 -1
  419. package/dist/hooks/operations/shared/index.d.ts +0 -6
  420. package/dist/hooks/operations/shared/index.d.ts.map +0 -1
  421. package/dist/hooks/operations/shared/queryKeys.d.ts +0 -23
  422. package/dist/hooks/operations/shared/queryKeys.d.ts.map +0 -1
  423. package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts +0 -11
  424. package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts.map +0 -1
  425. package/dist/hooks/operations/shared/useExecutionPanelState.d.ts +0 -46
  426. package/dist/hooks/operations/shared/useExecutionPanelState.d.ts.map +0 -1
  427. package/dist/hooks/published.d.ts.map +0 -1
  428. package/dist/hooks/scheduling/index.d.ts +0 -7
  429. package/dist/hooks/scheduling/index.d.ts.map +0 -1
  430. package/dist/hooks/scheduling/useScheduledTasks.d.ts +0 -19
  431. package/dist/hooks/scheduling/useScheduledTasks.d.ts.map +0 -1
  432. package/dist/hooks/scheduling/useSchedules.d.ts +0 -185
  433. package/dist/hooks/scheduling/useSchedules.d.ts.map +0 -1
  434. package/dist/hooks/sessions/index.d.ts +0 -8
  435. package/dist/hooks/sessions/index.d.ts.map +0 -1
  436. package/dist/hooks/sessions/useSessionExecutions.d.ts +0 -13
  437. package/dist/hooks/sessions/useSessionExecutions.d.ts.map +0 -1
  438. package/dist/hooks/sessions/useSessionMessages.d.ts +0 -7
  439. package/dist/hooks/sessions/useSessionMessages.d.ts.map +0 -1
  440. package/dist/hooks/sessions/useSessions.d.ts +0 -26
  441. package/dist/hooks/sessions/useSessions.d.ts.map +0 -1
  442. package/dist/hooks/settings/api-keys/index.d.ts +0 -7
  443. package/dist/hooks/settings/api-keys/index.d.ts.map +0 -1
  444. package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts +0 -3
  445. package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts.map +0 -1
  446. package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts +0 -2
  447. package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts.map +0 -1
  448. package/dist/hooks/settings/api-keys/useListApiKeys.d.ts +0 -2
  449. package/dist/hooks/settings/api-keys/useListApiKeys.d.ts.map +0 -1
  450. package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts +0 -5
  451. package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts.map +0 -1
  452. package/dist/hooks/settings/credentials/index.d.ts +0 -7
  453. package/dist/hooks/settings/credentials/index.d.ts.map +0 -1
  454. package/dist/hooks/settings/credentials/useCreateCredential.d.ts +0 -3
  455. package/dist/hooks/settings/credentials/useCreateCredential.d.ts.map +0 -1
  456. package/dist/hooks/settings/credentials/useCredentials.d.ts +0 -8
  457. package/dist/hooks/settings/credentials/useCredentials.d.ts.map +0 -1
  458. package/dist/hooks/settings/credentials/useDeleteCredential.d.ts +0 -2
  459. package/dist/hooks/settings/credentials/useDeleteCredential.d.ts.map +0 -1
  460. package/dist/hooks/settings/credentials/useUpdateCredential.d.ts +0 -10
  461. package/dist/hooks/settings/credentials/useUpdateCredential.d.ts.map +0 -1
  462. package/dist/hooks/settings/deployments/index.d.ts +0 -5
  463. package/dist/hooks/settings/deployments/index.d.ts.map +0 -1
  464. package/dist/hooks/settings/deployments/useDeploymentActions.d.ts +0 -4
  465. package/dist/hooks/settings/deployments/useDeploymentActions.d.ts.map +0 -1
  466. package/dist/hooks/settings/deployments/useListDeployments.d.ts +0 -2
  467. package/dist/hooks/settings/deployments/useListDeployments.d.ts.map +0 -1
  468. package/dist/hooks/settings/index.d.ts +0 -6
  469. package/dist/hooks/settings/index.d.ts.map +0 -1
  470. package/dist/hooks/settings/organization/index.d.ts +0 -6
  471. package/dist/hooks/settings/organization/index.d.ts.map +0 -1
  472. package/dist/hooks/settings/organization/useDeactivateMembership.d.ts +0 -11
  473. package/dist/hooks/settings/organization/useDeactivateMembership.d.ts.map +0 -1
  474. package/dist/hooks/settings/organization/useReactivateMembership.d.ts +0 -11
  475. package/dist/hooks/settings/organization/useReactivateMembership.d.ts.map +0 -1
  476. package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts +0 -8
  477. package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts.map +0 -1
  478. package/dist/hooks/settings/organization/useUserMemberships.d.ts +0 -3
  479. package/dist/hooks/settings/organization/useUserMemberships.d.ts.map +0 -1
  480. package/dist/hooks/settings/webhooks/index.d.ts +0 -7
  481. package/dist/hooks/settings/webhooks/index.d.ts.map +0 -1
  482. package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts +0 -18
  483. package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts.map +0 -1
  484. package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts +0 -2
  485. package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts.map +0 -1
  486. package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts +0 -14
  487. package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts.map +0 -1
  488. package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts +0 -18
  489. package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts.map +0 -1
  490. package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts +0 -27
  491. package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts.map +0 -1
  492. package/dist/hooks/useOrganizationMembers.d.ts +0 -18
  493. package/dist/hooks/useOrganizationMembers.d.ts.map +0 -1
  494. package/dist/index.d.ts.map +0 -1
  495. package/dist/initialization/InitializationProvider.d.ts +0 -48
  496. package/dist/initialization/InitializationProvider.d.ts.map +0 -1
  497. package/dist/initialization/hooks/useAppInitialization.d.ts +0 -32
  498. package/dist/initialization/hooks/useAppInitialization.d.ts.map +0 -1
  499. package/dist/initialization/index.d.ts.map +0 -1
  500. package/dist/organization/context/OrganizationProvider.d.ts +0 -24
  501. package/dist/organization/context/OrganizationProvider.d.ts.map +0 -1
  502. package/dist/organization/hooks/useOrgInitialization.d.ts +0 -56
  503. package/dist/organization/hooks/useOrgInitialization.d.ts.map +0 -1
  504. package/dist/organization/index.d.ts.map +0 -1
  505. package/dist/profile/context/ProfileProvider.d.ts +0 -31
  506. package/dist/profile/context/ProfileProvider.d.ts.map +0 -1
  507. package/dist/profile/hooks/useUserProfile.d.ts +0 -38
  508. package/dist/profile/hooks/useUserProfile.d.ts.map +0 -1
  509. package/dist/profile/index.d.ts.map +0 -1
  510. package/dist/provider/CoreAuthKitInner.d.ts +0 -12
  511. package/dist/provider/CoreAuthKitInner.d.ts.map +0 -1
  512. package/dist/provider/ElevasisCoreProvider.d.ts +0 -25
  513. package/dist/provider/ElevasisCoreProvider.d.ts.map +0 -1
  514. package/dist/provider/ElevasisServiceContext.d.ts +0 -31
  515. package/dist/provider/ElevasisServiceContext.d.ts.map +0 -1
  516. package/dist/provider/ElevasisUIProvider.d.ts +0 -28
  517. package/dist/provider/ElevasisUIProvider.d.ts.map +0 -1
  518. package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts +0 -2
  519. package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts.map +0 -1
  520. package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts +0 -2
  521. package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts.map +0 -1
  522. package/dist/provider/index.d.ts.map +0 -1
  523. package/dist/provider/published.d.ts.map +0 -1
  524. package/dist/provider/types.d.ts +0 -151
  525. package/dist/provider/types.d.ts.map +0 -1
  526. package/dist/sdk-barrel.d.ts +0 -20
  527. package/dist/sdk-barrel.d.ts.map +0 -1
  528. package/dist/theme/PresetsContext.d.ts +0 -4
  529. package/dist/theme/PresetsContext.d.ts.map +0 -1
  530. package/dist/theme/cssVariables.d.ts +0 -12
  531. package/dist/theme/cssVariables.d.ts.map +0 -1
  532. package/dist/theme/index.d.ts.map +0 -1
  533. package/dist/theme/presets/__tests__/getPreset.test.d.ts +0 -2
  534. package/dist/theme/presets/__tests__/getPreset.test.d.ts.map +0 -1
  535. package/dist/theme/presets/abyss.d.ts +0 -3
  536. package/dist/theme/presets/abyss.d.ts.map +0 -1
  537. package/dist/theme/presets/aurora.d.ts +0 -12
  538. package/dist/theme/presets/aurora.d.ts.map +0 -1
  539. package/dist/theme/presets/canopy.d.ts +0 -12
  540. package/dist/theme/presets/canopy.d.ts.map +0 -1
  541. package/dist/theme/presets/canyon.d.ts +0 -11
  542. package/dist/theme/presets/canyon.d.ts.map +0 -1
  543. package/dist/theme/presets/cortex.d.ts +0 -3
  544. package/dist/theme/presets/cortex.d.ts.map +0 -1
  545. package/dist/theme/presets/cyber-punk.d.ts +0 -11
  546. package/dist/theme/presets/cyber-punk.d.ts.map +0 -1
  547. package/dist/theme/presets/cyber-strike.d.ts +0 -13
  548. package/dist/theme/presets/cyber-strike.d.ts.map +0 -1
  549. package/dist/theme/presets/cyber-void.d.ts +0 -12
  550. package/dist/theme/presets/cyber-void.d.ts.map +0 -1
  551. package/dist/theme/presets/cyber-volt.d.ts +0 -12
  552. package/dist/theme/presets/cyber-volt.d.ts.map +0 -1
  553. package/dist/theme/presets/default.d.ts +0 -4
  554. package/dist/theme/presets/default.d.ts.map +0 -1
  555. package/dist/theme/presets/ember.d.ts +0 -12
  556. package/dist/theme/presets/ember.d.ts.map +0 -1
  557. package/dist/theme/presets/helios.d.ts +0 -3
  558. package/dist/theme/presets/helios.d.ts.map +0 -1
  559. package/dist/theme/presets/honey.d.ts +0 -12
  560. package/dist/theme/presets/honey.d.ts.map +0 -1
  561. package/dist/theme/presets/index.d.ts +0 -8
  562. package/dist/theme/presets/index.d.ts.map +0 -1
  563. package/dist/theme/presets/midnight.d.ts +0 -12
  564. package/dist/theme/presets/midnight.d.ts.map +0 -1
  565. package/dist/theme/presets/nirvana.d.ts +0 -16
  566. package/dist/theme/presets/nirvana.d.ts.map +0 -1
  567. package/dist/theme/presets/obsidian.d.ts +0 -3
  568. package/dist/theme/presets/obsidian.d.ts.map +0 -1
  569. package/dist/theme/presets/regal.d.ts +0 -8
  570. package/dist/theme/presets/regal.d.ts.map +0 -1
  571. package/dist/theme/presets/rose-gold.d.ts +0 -12
  572. package/dist/theme/presets/rose-gold.d.ts.map +0 -1
  573. package/dist/theme/presets/slate.d.ts +0 -3
  574. package/dist/theme/presets/slate.d.ts.map +0 -1
  575. package/dist/theme/presets/tactical.d.ts +0 -8
  576. package/dist/theme/presets/tactical.d.ts.map +0 -1
  577. package/dist/theme/presets/types.d.ts +0 -43
  578. package/dist/theme/presets/types.d.ts.map +0 -1
  579. package/dist/theme/presets/verdant.d.ts +0 -3
  580. package/dist/theme/presets/verdant.d.ts.map +0 -1
  581. package/dist/theme/presets/wave.d.ts +0 -14
  582. package/dist/theme/presets/wave.d.ts.map +0 -1
  583. package/dist/theme/useAvailablePresets.d.ts +0 -16
  584. package/dist/theme/useAvailablePresets.d.ts.map +0 -1
@@ -1,29 +1,2006 @@
1
- export { ResourcesPage } from './ResourcesPage';
2
- export type { ResourcesPageProps } from './ResourcesPage';
3
- export { ResourcesSidebar } from './ResourcesSidebar';
4
- export type { ResourcesSidebarProps } from './ResourcesSidebar';
5
- export { ResourceDetailPage } from './ResourceDetailPage';
6
- export type { ResourceDetailPageProps, ResourceDetailPageRenderExecutionPanelArgs } from './ResourceDetailPage';
7
- export { CommandQueuePage } from './CommandQueuePage';
8
- export type { CommandQueuePageProps } from './CommandQueuePage';
9
- export { CommandQueueDetailPage } from './CommandQueueDetailPage';
10
- export type { CommandQueueDetailPageProps, CommandQueueDetailPageRichTextArgs } from './CommandQueueDetailPage';
11
- export { CommandViewPage } from './CommandViewPage';
12
- export type { CommandViewPageProps } from './CommandViewPage';
13
- export { CalibrationPage } from './CalibrationPage';
14
- export type { CalibrationPageProps } from './CalibrationPage';
15
- export { CalibrationProjectDetailPage } from './CalibrationProjectDetailPage';
16
- export type { CalibrationProjectDetailPageProps, CalibrationProjectDetailPageRenderRunCardArgs, CalibrationProjectDetailPageRenderCreateModalArgs } from './CalibrationProjectDetailPage';
17
- export { CalibrationProjectsPage } from './CalibrationProjectsPage';
18
- export type { CalibrationProjectsPageProps } from './CalibrationProjectsPage';
19
- export { CommandViewSidebarContent } from './CommandViewSidebarContent';
20
- export type { CommandViewSidebarContentProps } from './CommandViewSidebarContent';
21
- export { CalibrationRunDetailPage } from './CalibrationRunDetailPage';
22
- export type { CalibrationRunDetailPageProps } from './CalibrationRunDetailPage';
23
- export { ExecutionPanel } from './executions/index.js';
24
- export type { ExecutionPanelProps } from './executions/index.js';
25
- export { WorkflowExecutionPanel } from './executions/index.js';
26
- export type { WorkflowExecutionPanelProps } from './executions/index.js';
27
- export { AgentExecutionPanel } from './executions/index.js';
28
- export type { AgentExecutionPanelProps } from './executions/index.js';
29
- //# sourceMappingURL=index.d.ts.map
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { z } from 'zod';
3
+ import { ReactNode } from 'react';
4
+
5
+ /**
6
+ * Workflow-specific logging types and utilities
7
+ */
8
+
9
+ interface WorkflowExecutionContext {
10
+ type: 'workflow';
11
+ contextType: 'workflow-execution';
12
+ executionId: string;
13
+ workflowId: string;
14
+ workflowName?: string;
15
+ organizationId: string;
16
+ executionPath?: string[];
17
+ }
18
+ interface WorkflowFailureContext {
19
+ type: 'workflow';
20
+ contextType: 'workflow-failure';
21
+ executionId: string;
22
+ workflowId: string;
23
+ error: string;
24
+ }
25
+ interface StepStartedContext {
26
+ type: 'workflow';
27
+ contextType: 'step-started';
28
+ stepId: string;
29
+ stepStatus: 'started';
30
+ input: unknown;
31
+ startTime: number;
32
+ }
33
+ interface StepCompletedContext {
34
+ type: 'workflow';
35
+ contextType: 'step-completed';
36
+ stepId: string;
37
+ stepStatus: 'completed';
38
+ output: unknown;
39
+ duration: number;
40
+ isTerminal: boolean;
41
+ startTime: number;
42
+ endTime: number;
43
+ }
44
+ interface StepFailedContext {
45
+ type: 'workflow';
46
+ contextType: 'step-failed';
47
+ stepId: string;
48
+ stepStatus: 'failed';
49
+ error: string;
50
+ duration: number;
51
+ startTime: number;
52
+ endTime: number;
53
+ }
54
+ interface ConditionalRouteContext {
55
+ type: 'workflow';
56
+ contextType: 'conditional-route';
57
+ stepId: string;
58
+ target: string;
59
+ error?: string;
60
+ }
61
+ interface ExecutionPathContext {
62
+ type: 'workflow';
63
+ contextType: 'execution-path';
64
+ executionPath: string[];
65
+ }
66
+ type WorkflowLogContext = WorkflowExecutionContext | WorkflowFailureContext | StepStartedContext | StepCompletedContext | StepFailedContext | ConditionalRouteContext | ExecutionPathContext;
67
+
68
+ /**
69
+ * Agent-specific logging types
70
+ * Simplified 2-event model: lifecycle, iteration
71
+ *
72
+ * Design Philosophy:
73
+ * - LIFECYCLE EVENTS: Structural checkpoints (initialization, iteration, completion)
74
+ * - ITERATION EVENTS: Execution activities (reasoning, actions during iterations)
75
+ */
76
+
77
+ /**
78
+ * Agent lifecycle stages
79
+ * Universal checkpoints that apply to all agent executions
80
+ */
81
+ type AgentLifecycle = 'initialization' | 'iteration' | 'completion';
82
+ /**
83
+ * Iteration event types
84
+ * Activities that occur during agent iterations
85
+ */
86
+ type IterationEventType = 'reasoning' | 'action' | 'tool-call';
87
+ /**
88
+ * Base fields shared by all lifecycle events
89
+ */
90
+ interface AgentLifecycleEventBase {
91
+ type: 'agent';
92
+ agentId: string;
93
+ lifecycle: AgentLifecycle;
94
+ sessionId?: string;
95
+ }
96
+ /**
97
+ * Lifecycle started event - emitted when a phase begins
98
+ * REQUIRED: startTime (phase has started, no end yet)
99
+ */
100
+ interface AgentLifecycleStartedEvent extends AgentLifecycleEventBase {
101
+ stage: 'started';
102
+ startTime: number;
103
+ iteration?: number;
104
+ }
105
+ /**
106
+ * Lifecycle completed event - emitted when a phase succeeds
107
+ * REQUIRED: startTime, endTime, duration (phase has finished successfully)
108
+ */
109
+ interface AgentLifecycleCompletedEvent extends AgentLifecycleEventBase {
110
+ stage: 'completed';
111
+ startTime: number;
112
+ endTime: number;
113
+ duration: number;
114
+ iteration?: number;
115
+ attempts?: number;
116
+ memorySize?: {
117
+ sessionMemoryKeys: number;
118
+ historyEntries: number;
119
+ };
120
+ }
121
+ /**
122
+ * Lifecycle failed event - emitted when a phase fails
123
+ * REQUIRED: startTime, endTime, duration, error (phase has finished with error)
124
+ */
125
+ interface AgentLifecycleFailedEvent extends AgentLifecycleEventBase {
126
+ stage: 'failed';
127
+ startTime: number;
128
+ endTime: number;
129
+ duration: number;
130
+ error: string;
131
+ iteration?: number;
132
+ }
133
+ /**
134
+ * Union type for all lifecycle events
135
+ * Discriminated by 'stage' field for type narrowing
136
+ */
137
+ type AgentLifecycleEvent = AgentLifecycleStartedEvent | AgentLifecycleCompletedEvent | AgentLifecycleFailedEvent;
138
+ /**
139
+ * Placeholder data for MVP
140
+ * Will be typed per actionType in future
141
+ */
142
+ interface ActionPlaceholderData {
143
+ message: string;
144
+ }
145
+ /**
146
+ * Iteration event - captures activities during agent iterations
147
+ * Consolidates reasoning (LLM thought process) and actions (tool use, memory ops, etc.)
148
+ */
149
+ interface AgentIterationEvent {
150
+ type: 'agent';
151
+ agentId: string;
152
+ lifecycle: 'iteration';
153
+ eventType: IterationEventType;
154
+ iteration: number;
155
+ sessionId?: string;
156
+ startTime: number;
157
+ endTime: number;
158
+ duration: number;
159
+ output?: string;
160
+ actionType?: string;
161
+ data?: ActionPlaceholderData;
162
+ }
163
+ /**
164
+ * Tool call event - captures individual tool executions during iterations
165
+ * Provides granular timing for each tool invocation
166
+ */
167
+ interface AgentToolCallEvent {
168
+ type: 'agent';
169
+ agentId: string;
170
+ lifecycle: 'iteration';
171
+ eventType: 'tool-call';
172
+ iteration: number;
173
+ sessionId?: string;
174
+ toolName: string;
175
+ startTime: number;
176
+ endTime: number;
177
+ duration: number;
178
+ success: boolean;
179
+ error?: string;
180
+ input?: Record<string, unknown>;
181
+ output?: unknown;
182
+ }
183
+ /**
184
+ * Union type for all agent log contexts
185
+ * 3 event types total (lifecycle, iteration, tool-call)
186
+ */
187
+ type AgentLogContext = AgentLifecycleEvent | AgentIterationEvent | AgentToolCallEvent;
188
+ /**
189
+ * Data for lifecycle 'started' events
190
+ */
191
+ interface AgentLifecycleStartedData {
192
+ startTime: number;
193
+ iteration?: number;
194
+ }
195
+ /**
196
+ * Data for lifecycle 'completed' events
197
+ */
198
+ interface AgentLifecycleCompletedData {
199
+ startTime: number;
200
+ endTime: number;
201
+ duration: number;
202
+ iteration?: number;
203
+ attempts?: number;
204
+ memorySize?: {
205
+ sessionMemoryKeys: number;
206
+ historyEntries: number;
207
+ };
208
+ }
209
+ /**
210
+ * Data for lifecycle 'failed' events
211
+ */
212
+ interface AgentLifecycleFailedData {
213
+ startTime: number;
214
+ endTime: number;
215
+ duration: number;
216
+ error: string;
217
+ iteration?: number;
218
+ }
219
+ /**
220
+ * Scoped logger for agent execution
221
+ * Captures logger and agentId to eliminate repetitive parameter passing
222
+ *
223
+ * Type-safe lifecycle logging with stage-specific required fields
224
+ */
225
+ interface AgentScopedLogger {
226
+ lifecycle(lifecycle: AgentLifecycle, stage: 'started', data: AgentLifecycleStartedData): void;
227
+ lifecycle(lifecycle: AgentLifecycle, stage: 'completed', data: AgentLifecycleCompletedData): void;
228
+ lifecycle(lifecycle: AgentLifecycle, stage: 'failed', data: AgentLifecycleFailedData): void;
229
+ reasoning(output: string, iteration: number, startTime: number, endTime: number, duration: number): void;
230
+ action(actionType: string, message: string, iteration: number, startTime: number, endTime: number, duration: number): void;
231
+ toolCall(toolName: string, iteration: number, startTime: number, endTime: number, duration: number, success: boolean, error?: string, input?: unknown, output?: unknown): void;
232
+ }
233
+
234
+ type LogContext = WorkflowLogContext | AgentLogContext;
235
+ interface IExecutionLogger {
236
+ debug(message: string, context?: LogContext): void;
237
+ info(message: string, context?: LogContext): void;
238
+ warn(message: string, context?: LogContext): void;
239
+ error(message: string, context?: LogContext): void;
240
+ }
241
+
242
+ /**
243
+ * Shared form field types for dynamic form generation
244
+ * Used by: Command Queue, Execution Runner UI, future form-based features
245
+ */
246
+ /**
247
+ * Supported form field types for action payloads
248
+ * Maps to Mantine form components
249
+ */
250
+ type FormFieldType = 'text' | 'textarea' | 'number' | 'select' | 'checkbox' | 'radio' | 'richtext';
251
+ /**
252
+ * Form field definition
253
+ */
254
+ interface FormField {
255
+ /** Field key in payload object */
256
+ name: string;
257
+ /** Field label for UI */
258
+ label: string;
259
+ /** Field type (determines UI component) */
260
+ type: FormFieldType;
261
+ /** Default value */
262
+ defaultValue?: unknown;
263
+ /** Required field */
264
+ required?: boolean;
265
+ /** Placeholder text */
266
+ placeholder?: string;
267
+ /** Help text */
268
+ description?: string;
269
+ /** Options for select/radio */
270
+ options?: Array<{
271
+ label: string;
272
+ value: string | number;
273
+ }>;
274
+ /** Min/max for number */
275
+ min?: number;
276
+ max?: number;
277
+ /** Path to context value for pre-filling (dot notation, e.g., 'proposal.summary') */
278
+ defaultValueFromContext?: string;
279
+ }
280
+ /**
281
+ * Form schema for action payload collection
282
+ */
283
+ interface FormSchema {
284
+ /** Form title */
285
+ title?: string;
286
+ /** Form description */
287
+ description?: string;
288
+ /** Form fields */
289
+ fields: FormField[];
290
+ }
291
+
292
+ /**
293
+ * Serialized Registry Types
294
+ *
295
+ * Pre-computed JSON-safe types for API responses and Command View.
296
+ * Serialization happens once at API startup, enabling instant response times.
297
+ */
298
+
299
+ /**
300
+ * Serialized form field for API responses
301
+ */
302
+ interface SerializedFormField {
303
+ name: string;
304
+ label: string;
305
+ type: FormFieldType;
306
+ defaultValue?: unknown;
307
+ required?: boolean;
308
+ placeholder?: string;
309
+ description?: string;
310
+ options?: Array<{
311
+ label: string;
312
+ value: string | number;
313
+ }>;
314
+ min?: number;
315
+ max?: number;
316
+ }
317
+ /**
318
+ * Serialized form schema for API responses
319
+ */
320
+ interface SerializedFormSchema {
321
+ title?: string;
322
+ description?: string;
323
+ fields: SerializedFormField[];
324
+ layout?: 'vertical' | 'horizontal' | 'grid';
325
+ }
326
+ /**
327
+ * Serialized execution form schema for API responses
328
+ */
329
+ interface SerializedExecutionFormSchema extends SerializedFormSchema {
330
+ fieldMappings?: Record<string, string>;
331
+ submitButton?: {
332
+ label?: string;
333
+ loadingLabel?: string;
334
+ confirmMessage?: string;
335
+ };
336
+ }
337
+ /**
338
+ * Serialized schedule config for API responses
339
+ */
340
+ interface SerializedScheduleConfig {
341
+ enabled: boolean;
342
+ defaultSchedule?: string;
343
+ allowedPatterns?: string[];
344
+ }
345
+ /**
346
+ * Serialized webhook config for API responses
347
+ */
348
+ interface SerializedWebhookConfig {
349
+ enabled: boolean;
350
+ payloadSchema?: unknown;
351
+ }
352
+ /**
353
+ * Serialized execution interface for API responses
354
+ */
355
+ interface SerializedExecutionInterface {
356
+ form: SerializedExecutionFormSchema;
357
+ schedule?: SerializedScheduleConfig;
358
+ webhook?: SerializedWebhookConfig;
359
+ }
360
+ /**
361
+ * Serialized agent definition (JSON-safe)
362
+ * Result of serializeDefinition(AgentDefinition)
363
+ */
364
+ interface SerializedAgentDefinition {
365
+ config: {
366
+ resourceId: string;
367
+ name: string;
368
+ description: string;
369
+ version: string;
370
+ type: 'agent';
371
+ status: 'dev' | 'prod';
372
+ /** Whether this resource is archived and should be excluded from registration and deployment */
373
+ archived?: boolean;
374
+ systemPrompt: string;
375
+ constraints?: {
376
+ maxIterations?: number;
377
+ timeout?: number;
378
+ maxSessionMemoryKeys?: number;
379
+ maxMemoryTokens?: number;
380
+ };
381
+ sessionCapable?: boolean;
382
+ memoryPreferences?: string;
383
+ };
384
+ modelConfig: {
385
+ provider: string;
386
+ model: string;
387
+ apiKey: string;
388
+ temperature: number;
389
+ maxOutputTokens: number;
390
+ topP?: number;
391
+ modelOptions?: Record<string, unknown>;
392
+ };
393
+ contract: {
394
+ inputSchema: object;
395
+ outputSchema?: object;
396
+ };
397
+ tools: Array<{
398
+ name: string;
399
+ description: string;
400
+ inputSchema?: object;
401
+ outputSchema?: object;
402
+ }>;
403
+ knowledgeMap?: {
404
+ nodeCount: number;
405
+ nodes: Array<{
406
+ id: string;
407
+ description: string;
408
+ loaded: boolean;
409
+ hasPrompt: boolean;
410
+ }>;
411
+ };
412
+ metricsConfig?: object;
413
+ interface?: SerializedExecutionInterface;
414
+ }
415
+ /**
416
+ * Serialized workflow definition (JSON-safe)
417
+ * Result of serializeDefinition(WorkflowDefinition)
418
+ */
419
+ interface SerializedWorkflowDefinition {
420
+ config: {
421
+ resourceId: string;
422
+ name: string;
423
+ description: string;
424
+ version: string;
425
+ type: 'workflow';
426
+ status: 'dev' | 'prod';
427
+ /** Whether this resource is archived and should be excluded from registration and deployment */
428
+ archived?: boolean;
429
+ };
430
+ entryPoint: string;
431
+ steps: Array<{
432
+ id: string;
433
+ name: string;
434
+ description: string;
435
+ inputSchema?: object;
436
+ outputSchema?: object;
437
+ next: {
438
+ type: 'linear' | 'conditional';
439
+ target?: string;
440
+ routes?: Array<{
441
+ target: string;
442
+ }>;
443
+ default?: string;
444
+ } | null;
445
+ }>;
446
+ contract: {
447
+ inputSchema: object;
448
+ outputSchema?: object;
449
+ };
450
+ metricsConfig?: object;
451
+ interface?: SerializedExecutionInterface;
452
+ }
453
+
454
+ /**
455
+ * Model Configuration
456
+ * Centralized model information, configuration, options, constraints, and validation
457
+ * Single source of truth for all model-related definitions
458
+ * Update manually when pricing changes or new models are added
459
+ */
460
+
461
+ /**
462
+ * Supported Open AI models (direct SDK access)
463
+ */
464
+ type OpenAIModel = 'gpt-5' | 'gpt-5.4-mini' | 'gpt-5.4-nano';
465
+ /**
466
+ * Supported OpenRouter models (explicit union for type safety)
467
+ */
468
+ type OpenRouterModel = 'openrouter/z-ai/glm-5';
469
+ /**
470
+ * Supported Google models (direct SDK access)
471
+ */
472
+ type GoogleModel = 'gemini-3-flash-preview' | 'gemini-3.1-flash-lite-preview';
473
+ /**
474
+ * Supported Anthropic models (direct SDK access via @anthropic-ai/sdk)
475
+ */
476
+ type AnthropicModel = 'claude-sonnet-4-5';
477
+ /** Supported LLM models */
478
+ type LLMModel = OpenAIModel | OpenRouterModel | GoogleModel | AnthropicModel | 'mock';
479
+ /**
480
+ * GPT-5 model options schema
481
+ */
482
+ declare const GPT5OptionsSchema: z.ZodObject<{
483
+ reasoning_effort: z.ZodOptional<z.ZodEnum<{
484
+ minimal: "minimal";
485
+ low: "low";
486
+ medium: "medium";
487
+ high: "high";
488
+ }>>;
489
+ verbosity: z.ZodOptional<z.ZodEnum<{
490
+ low: "low";
491
+ medium: "medium";
492
+ high: "high";
493
+ }>>;
494
+ }, z.core.$strip>;
495
+ /**
496
+ * OpenRouter model options schema
497
+ * OpenRouter-specific options for routing and transforms
498
+ */
499
+ declare const OpenRouterOptionsSchema: z.ZodObject<{
500
+ transforms: z.ZodOptional<z.ZodArray<z.ZodString>>;
501
+ route: z.ZodOptional<z.ZodEnum<{
502
+ fallback: "fallback";
503
+ }>>;
504
+ }, z.core.$strip>;
505
+ /**
506
+ * Google model options schema
507
+ * Gemini 3 specific options for thinking depth control
508
+ */
509
+ declare const GoogleOptionsSchema: z.ZodObject<{
510
+ thinkingLevel: z.ZodOptional<z.ZodEnum<{
511
+ minimal: "minimal";
512
+ low: "low";
513
+ medium: "medium";
514
+ high: "high";
515
+ }>>;
516
+ }, z.core.$strip>;
517
+ /**
518
+ * Anthropic model options schema
519
+ * Currently empty - future options: budget_tokens for extended thinking
520
+ */
521
+ declare const AnthropicOptionsSchema: z.ZodObject<{}, z.core.$strip>;
522
+ /**
523
+ * Infer TypeScript types from schemas
524
+ */
525
+ type GPT5Options = z.infer<typeof GPT5OptionsSchema>;
526
+ type MockOptions = Record<string, never>;
527
+ type OpenRouterOptions = z.infer<typeof OpenRouterOptionsSchema>;
528
+ type GoogleOptions = z.infer<typeof GoogleOptionsSchema>;
529
+ type AnthropicOptions = z.infer<typeof AnthropicOptionsSchema>;
530
+ type ModelSpecificOptions = GPT5Options | MockOptions | OpenRouterOptions | GoogleOptions | AnthropicOptions;
531
+ /**
532
+ * Model configuration for LLM execution
533
+ * Belongs in resource definition (AgentDefinition, WorkflowDefinition, etc.)
534
+ */
535
+ interface ModelConfig {
536
+ model: LLMModel;
537
+ provider: 'openai' | 'anthropic' | 'openrouter' | 'google' | 'mock';
538
+ apiKey: string;
539
+ temperature?: number;
540
+ /** Maximum output tokens per LLM call. NOT the model's context window — see ModelInfo.maxTokens for that. */
541
+ maxOutputTokens?: number;
542
+ topP?: number;
543
+ /**
544
+ * Model-specific options (flat structure)
545
+ * Options are model-specific, not vendor-specific
546
+ * Available options defined in MODEL_INFO per model
547
+ * Validated at build time via validateModelOptions()
548
+ */
549
+ modelOptions?: ModelSpecificOptions;
550
+ }
551
+
552
+ /**
553
+ * Execution interface configuration
554
+ * Defines how a resource is executed via the UI (forms, scheduling, webhooks)
555
+ * Applies to both agents and workflows
556
+ */
557
+ interface ExecutionInterface {
558
+ /** Form configuration for execution inputs */
559
+ form: ExecutionFormSchema;
560
+ /** Optional: Schedule configuration */
561
+ schedule?: ScheduleConfig;
562
+ /** Optional: Webhook trigger configuration */
563
+ webhook?: WebhookConfig;
564
+ }
565
+ /**
566
+ * Execution form schema
567
+ * Extends FormSchema with execution-specific fields
568
+ */
569
+ interface ExecutionFormSchema extends FormSchema {
570
+ /**
571
+ * Field mappings to resource input schema
572
+ * Maps form field names to contract input paths
573
+ * If omitted, field names must match contract input keys exactly
574
+ */
575
+ fieldMappings?: Record<string, string>;
576
+ /**
577
+ * Submit button configuration
578
+ * Default: { label: 'Run', loadingLabel: 'Running...' }
579
+ */
580
+ submitButton?: {
581
+ label?: string;
582
+ loadingLabel?: string;
583
+ confirmMessage?: string;
584
+ };
585
+ }
586
+ /**
587
+ * Schedule configuration for automated execution
588
+ */
589
+ interface ScheduleConfig {
590
+ /** Whether scheduling is enabled for this resource */
591
+ enabled: boolean;
592
+ /** Default schedule (cron expression) */
593
+ defaultSchedule?: string;
594
+ /** Allowed schedule patterns (if restricted) */
595
+ allowedPatterns?: string[];
596
+ }
597
+ /**
598
+ * Webhook configuration for external triggers
599
+ */
600
+ interface WebhookConfig {
601
+ /** Whether webhook trigger is enabled */
602
+ enabled: boolean;
603
+ /** Expected payload schema (for documentation) */
604
+ payloadSchema?: unknown;
605
+ }
606
+
607
+ interface WorkflowConfig extends ResourceDefinition {
608
+ type: 'workflow';
609
+ }
610
+ interface WorkflowStepDefinition {
611
+ id: string;
612
+ name: string;
613
+ description: string;
614
+ }
615
+ type StepHandler = (input: unknown, context: ExecutionContext) => Promise<unknown>;
616
+ interface LinearNext {
617
+ type: 'linear';
618
+ target: string;
619
+ }
620
+ interface ConditionalNext {
621
+ type: 'conditional';
622
+ routes: Array<{
623
+ condition: (data: unknown) => boolean;
624
+ target: string;
625
+ }>;
626
+ default: string;
627
+ }
628
+ type NextConfig = LinearNext | ConditionalNext | null;
629
+ interface WorkflowStep extends WorkflowStepDefinition {
630
+ handler: StepHandler;
631
+ inputSchema: z.ZodSchema;
632
+ outputSchema: z.ZodSchema;
633
+ next: NextConfig;
634
+ }
635
+ interface WorkflowDefinition {
636
+ config: WorkflowConfig;
637
+ contract: Contract;
638
+ steps: Record<string, WorkflowStep>;
639
+ entryPoint: string;
640
+ /**
641
+ * Metrics configuration for ROI calculations
642
+ * Optional: Only needed if tracking automation savings
643
+ */
644
+ metricsConfig?: ResourceMetricsConfig;
645
+ /**
646
+ * Execution interface configuration (optional)
647
+ * If provided, workflow appears in Execution Runner UI
648
+ */
649
+ interface?: ExecutionInterface;
650
+ }
651
+
652
+ /**
653
+ * Generic LLM Types
654
+ * Universal interfaces for LLM interaction across all resource types
655
+ */
656
+ /**
657
+ * Standard chat message format
658
+ * Compatible with OpenAI, Anthropic, and other providers
659
+ */
660
+ interface LLMMessage {
661
+ role: 'system' | 'user' | 'assistant';
662
+ content: string;
663
+ }
664
+ /**
665
+ * Generic LLM generation request
666
+ * Usable by agents, workflows, tools, etc.
667
+ */
668
+ interface LLMGenerateRequest {
669
+ messages: LLMMessage[];
670
+ responseSchema: unknown;
671
+ /** Maximum output tokens per LLM call. NOT the model's context window — see ModelInfo.maxTokens for that. */
672
+ maxOutputTokens?: number;
673
+ temperature?: number;
674
+ topP?: number;
675
+ signal?: AbortSignal;
676
+ }
677
+ /**
678
+ * Generic LLM generation response
679
+ * Usage field is internal-only (stripped by UniversalLLMAdapter wrapper)
680
+ */
681
+ interface LLMGenerateResponse<T = unknown> {
682
+ output: T;
683
+ usage?: {
684
+ inputTokens: number;
685
+ outputTokens: number;
686
+ totalTokens: number;
687
+ };
688
+ cost?: number;
689
+ }
690
+ /**
691
+ * LLM Adapter interface
692
+ * Generic primitive for all resource types (agents, workflows, tools)
693
+ *
694
+ * Design principles:
695
+ * - Single method: generate() - the core LLM primitive
696
+ * - Generic return type for type safety
697
+ * - Universal format (not agent-specific)
698
+ * - Standard message-based input (OpenAI-compatible)
699
+ */
700
+ interface LLMAdapter {
701
+ /**
702
+ * Generate structured output from prompt using LLM
703
+ *
704
+ * @param request - Generation request with messages and response schema
705
+ * @returns Generated output (typed) with optional usage metadata
706
+ */
707
+ generate<T = unknown>(request: LLMGenerateRequest): Promise<LLMGenerateResponse<T>>;
708
+ }
709
+
710
+ /**
711
+ * Memory type definitions
712
+ * Types for agent memory management with semantic entry types
713
+ */
714
+ /**
715
+ * Semantic memory entry types
716
+ * Use-case agnostic types that describe the purpose of each entry
717
+ * Memory types mirror action types for clarity and filtering
718
+ */
719
+ type MemoryEntryType = 'context' | 'input' | 'reasoning' | 'tool-result' | 'delegation-result' | 'error';
720
+ /**
721
+ * Memory entry - represents a single entry in agent memory
722
+ * Stored in agent memory, translated by adapters to vendor-specific formats
723
+ */
724
+ interface MemoryEntry {
725
+ type: MemoryEntryType;
726
+ content: string;
727
+ timestamp: number;
728
+ turnNumber: number | null;
729
+ iterationNumber: number | null;
730
+ }
731
+ /**
732
+ * Agent memory - Self-orchestrated memory with session + working storage
733
+ * Agent has full control over what persists, framework handles auto-compaction
734
+ */
735
+ interface AgentMemory {
736
+ /**
737
+ * Session memory - Persists for session/conversation duration
738
+ * Never auto-trimmed by framework
739
+ * Agent-managed key-value store for critical information
740
+ * Agent provides strings, framework wraps in MemoryEntry
741
+ */
742
+ sessionMemory: Record<string, MemoryEntry>;
743
+ /**
744
+ * Working memory - Execution history
745
+ * Automatically compacted by framework when needed
746
+ * Agent doesn't control compaction
747
+ */
748
+ history: MemoryEntry[];
749
+ }
750
+ /**
751
+ * Memory status for agent awareness
752
+ */
753
+ interface MemoryStatus {
754
+ sessionMemoryKeys: number;
755
+ sessionMemoryLimit: number;
756
+ currentKeys: string[];
757
+ historyPercent: number;
758
+ historyTokens: number;
759
+ tokenBudget: number;
760
+ }
761
+ /**
762
+ * Memory constraints (optional limits)
763
+ */
764
+ interface MemoryConstraints {
765
+ maxSessionMemoryKeys?: number;
766
+ maxMemoryTokens?: number;
767
+ }
768
+
769
+ /**
770
+ * Memory Manager
771
+ * Encapsulates all memory operations with ultra-simple agent API
772
+ * Agent provides strings, framework handles wrapping and auto-compaction
773
+ */
774
+
775
+ /**
776
+ * Memory Manager - Agent memory orchestration
777
+ * Provides ultra-simple API for agents (strings only)
778
+ * Handles automatic compaction and token management
779
+ */
780
+ declare class MemoryManager {
781
+ private memory;
782
+ private constraints;
783
+ private logger?;
784
+ private cachedSnapshot?;
785
+ constructor(memory: AgentMemory, constraints?: MemoryConstraints, logger?: AgentScopedLogger | undefined);
786
+ /**
787
+ * Set session memory entry (agent provides string, framework wraps it)
788
+ * @param key - Session memory key
789
+ * @param content - String content from agent
790
+ */
791
+ set(key: string, content: string): void;
792
+ /**
793
+ * Get session memory entry content
794
+ * @param key - Session memory key
795
+ * @returns String content if exists, undefined otherwise
796
+ */
797
+ get(key: string): string | undefined;
798
+ /**
799
+ * Delete session memory entry
800
+ * @param key - Key to delete
801
+ * @returns True if key existed and was deleted
802
+ */
803
+ delete(key: string): boolean;
804
+ /**
805
+ * Add entry to history (called by framework after tool results, reasoning, etc.)
806
+ * Automatically sets timestamp to current time
807
+ * @param entry - Memory entry to add (without timestamp - auto-generated)
808
+ */
809
+ addToHistory(entry: Omit<MemoryEntry, 'timestamp'>): void;
810
+ /**
811
+ * Auto-compact history if approaching token budget
812
+ * Uses preserve-anchors strategy: keep first + recent entries
813
+ */
814
+ autoCompact(): void;
815
+ /**
816
+ * Enforce hard limits (called before LLM request)
817
+ * Emergency fallback if agent exceeds limits
818
+ */
819
+ enforceHardLimits(): void;
820
+ /**
821
+ * Get history length (for logging and introspection)
822
+ * @returns Number of entries in history
823
+ */
824
+ getHistoryLength(): number;
825
+ /**
826
+ * Get memory status for agent awareness
827
+ * @returns Memory status with token usage and key counts
828
+ */
829
+ getStatus(): MemoryStatus;
830
+ /**
831
+ * Create memory snapshot for persistence
832
+ * Caches snapshot internally for later retrieval
833
+ * @returns Deep copy of current memory state
834
+ */
835
+ toSnapshot(): AgentMemory;
836
+ /**
837
+ * Get cached memory snapshot
838
+ * Returns snapshot created by toSnapshot()
839
+ * @returns Cached snapshot (undefined if toSnapshot() not called yet)
840
+ */
841
+ getSnapshot(): AgentMemory | undefined;
842
+ /**
843
+ * Build context string for LLM
844
+ * Serializes sessionmemory + history memory with clear sections
845
+ * Shows current iteration entries FIRST (reverse chronological) for LLM attention
846
+ * @param currentIteration - Current iteration number (0 = pre-iteration)
847
+ * @param currentTurn - Current turn number (optional, for session context filtering)
848
+ * @returns Formatted memory context for LLM prompt
849
+ */
850
+ toContext(currentIteration: number, currentTurn?: number): string;
851
+ }
852
+
853
+ /**
854
+ * Knowledge Map Types
855
+ *
856
+ * Enables agents to navigate organizational knowledge through a lightweight
857
+ * graph that lazy-loads capabilities on-demand.
858
+ *
859
+ * @module agent/knowledge-map
860
+ */
861
+
862
+ /**
863
+ * Lightweight knowledge map (passed as agent property)
864
+ *
865
+ * Contains metadata about available knowledge nodes without loading
866
+ * the full content upfront. Total size: ~300-500 tokens.
867
+ *
868
+ * Multi-tenancy is enforced via:
869
+ * - File-scoped maps (organizations/{org-name}/knowledge/)
870
+ * - ExecutionContext.organizationId passed to node.load()
871
+ */
872
+ interface KnowledgeMap {
873
+ /** Available knowledge nodes indexed by ID */
874
+ nodes: Record<string, KnowledgeNode>;
875
+ }
876
+ /**
877
+ * Single knowledge source
878
+ *
879
+ * Represents a domain knowledge area (CRM, brand guidelines, Excel tools)
880
+ * that can be lazy-loaded to provide instructions and tools to agents.
881
+ */
882
+ interface KnowledgeNode {
883
+ /** Unique identifier for this node (e.g., "crm", "brand-guidelines") */
884
+ id: string;
885
+ /**
886
+ * Description of when to use this knowledge
887
+ * Used for semantic matching against user intent
888
+ */
889
+ description: string;
890
+ /**
891
+ * Load knowledge content on-demand
892
+ *
893
+ * @param context - Execution context with organizationId for multi-tenancy
894
+ * @returns Promise resolving to knowledge content (prompt + optional tools)
895
+ */
896
+ load(context: ExecutionContext): Promise<KnowledgeContent>;
897
+ /**
898
+ * Loaded state flag
899
+ * Set to true after load() is called
900
+ */
901
+ loaded?: boolean;
902
+ /**
903
+ * Cached prompt (for system prompt serialization)
904
+ * Only the prompt is cached - tools go to toolRegistry, children flattened to nodes
905
+ */
906
+ prompt?: string;
907
+ }
908
+ /**
909
+ * Content returned by knowledge node
910
+ *
911
+ * Separates instructions (prompt) from capabilities (tools).
912
+ * Tools are optional - some nodes only provide context.
913
+ *
914
+ * Supports recursive navigation - nodes can contain child nodes
915
+ * that are discovered when the parent node is loaded.
916
+ */
917
+ interface KnowledgeContent {
918
+ /** Instructions and context (markdown format) */
919
+ prompt: string;
920
+ /** Tool implementations (optional) */
921
+ tools?: Tool[];
922
+ /**
923
+ * Child knowledge nodes (optional, recursive)
924
+ *
925
+ * Enables hierarchical navigation: base → specialized → deep expertise.
926
+ * Child nodes are flattened into the main knowledge map when parent loads,
927
+ * making them available for subsequent navigate-knowledge actions.
928
+ *
929
+ * Example: CRM base node returns crm-customers and crm-deals as children
930
+ */
931
+ nodes?: Record<string, KnowledgeNode>;
932
+ }
933
+
934
+ /**
935
+ * Agent-specific type definitions
936
+ * Types for autonomous agents with tools, memory, and constraints
937
+ */
938
+
939
+ /**
940
+ * Factory function for creating LLM adapters.
941
+ * Injected into the Agent class to decouple the engine from server-only provider SDKs.
942
+ * - API process: provides createLLMAdapter (real SDKs + process.env API keys)
943
+ * - SDK worker: provides PostMessageLLMAdapter (proxies via platform.call)
944
+ *
945
+ * Uses `any` for optional params so both the real createLLMAdapter (with typed
946
+ * AIUsageCollector/AICallContext) and the worker proxy (which ignores them) satisfy the type.
947
+ */
948
+ type LLMAdapterFactory = (config: ModelConfig, ...args: any[]) => LLMAdapter;
949
+ interface AgentConfig extends ResourceDefinition {
950
+ type: 'agent';
951
+ systemPrompt: string;
952
+ constraints?: AgentConstraints;
953
+ /**
954
+ * Session capability declaration (opt-in)
955
+ * If true, agent is designed for multi-turn session interactions
956
+ * Controls whether agent can use message action and appears in Sessions UI
957
+ *
958
+ * Use for:
959
+ * - Conversational agents with multi-turn interactions
960
+ * - Agents requiring persistent context across turns
961
+ * - Agents that need human-in-the-loop communication
962
+ */
963
+ sessionCapable?: boolean;
964
+ /**
965
+ * Security level for system prompt hardening (auto-derived if omitted)
966
+ *
967
+ * - 'standard': Lightweight defense (3 rules) - default for non-session agents
968
+ * - 'hardened': Comprehensive defense (6 rules) - default for session-capable agents
969
+ * - 'none': No security prompt - for pure internal agents with no external input
970
+ *
971
+ * If omitted, derived from sessionCapable:
972
+ * sessionCapable: true -> 'hardened'
973
+ * sessionCapable: false -> 'standard'
974
+ */
975
+ securityLevel?: 'standard' | 'hardened' | 'none';
976
+ /**
977
+ * Memory management preferences (opt-in)
978
+ * If provided, agent can use memoryOps to manage session memory
979
+ * If omitted, agent has no memory management capabilities
980
+ *
981
+ * Agent-specific guidance on what to preserve, when to persist, and what to clean up.
982
+ * This guidance is injected into the system prompt when memory management is enabled.
983
+ *
984
+ * Use for:
985
+ * - Conversational agents needing cross-turn context
986
+ * - Agents managing complex user preferences
987
+ * - Agents tracking decisions over multiple iterations
988
+ */
989
+ memoryPreferences?: string;
990
+ }
991
+ interface AgentConstraints {
992
+ maxIterations?: number;
993
+ timeout?: number;
994
+ maxSessionMemoryKeys?: number;
995
+ maxMemoryTokens?: number;
996
+ }
997
+ interface AgentDefinition {
998
+ config: AgentConfig;
999
+ contract: Contract;
1000
+ tools: Tool[];
1001
+ /**
1002
+ * Model configuration for LLM execution
1003
+ * Specifies provider, API key, and model-specific options
1004
+ */
1005
+ modelConfig: ModelConfig;
1006
+ /**
1007
+ * Optional knowledge map for lazy-loading capabilities
1008
+ * Enables agents to navigate organizational knowledge on-demand
1009
+ */
1010
+ knowledgeMap?: KnowledgeMap;
1011
+ /**
1012
+ * Preload memory before execution starts
1013
+ * Handles BOTH context loading AND session restoration
1014
+ *
1015
+ * @param context - Execution context (includes sessionId if session turn)
1016
+ * @returns Initial AgentMemory state (sessionMemory entries + optionally history)
1017
+ */
1018
+ preloadMemory?: (context: ExecutionContext) => Promise<AgentMemory> | AgentMemory;
1019
+ /**
1020
+ * Metrics configuration for ROI calculations
1021
+ * Optional: Only needed if tracking automation savings
1022
+ */
1023
+ metricsConfig?: ResourceMetricsConfig;
1024
+ /**
1025
+ * Execution interface configuration (optional)
1026
+ * If provided, agent appears in Execution Runner UI
1027
+ */
1028
+ interface?: ExecutionInterface;
1029
+ }
1030
+ /**
1031
+ * Agent execution context
1032
+ * Groups all state needed for agent execution phases
1033
+ */
1034
+ interface IterationContext {
1035
+ config: AgentConfig;
1036
+ contract: Contract;
1037
+ toolRegistry: Map<string, Tool>;
1038
+ memoryManager: MemoryManager;
1039
+ executionContext: ExecutionContext;
1040
+ iteration: number;
1041
+ logger: AgentScopedLogger;
1042
+ modelConfig: ModelConfig;
1043
+ adapterFactory: LLMAdapterFactory;
1044
+ knowledgeMap?: KnowledgeMap;
1045
+ }
1046
+
1047
+ /**
1048
+ * Session Data Transfer Object (DTO)
1049
+ * Transform type for API responses (snake_case DB → camelCase frontend)
1050
+ * Used by frontend apps to display session data
1051
+ */
1052
+ interface SessionDTO {
1053
+ sessionId: string;
1054
+ resourceId: string;
1055
+ organizationId: string;
1056
+ userId?: string | null;
1057
+ turnCount: number;
1058
+ isEnded: boolean;
1059
+ title?: string | null;
1060
+ memorySnapshot?: AgentMemory;
1061
+ metadata?: Record<string, unknown> | null;
1062
+ createdAt: Date;
1063
+ updatedAt: Date;
1064
+ endedAt?: Date | null;
1065
+ }
1066
+
1067
+ /**
1068
+ * MetricsCollector
1069
+ * Tracks execution timing and ROI metrics
1070
+ */
1071
+ declare class MetricsCollector {
1072
+ private timings;
1073
+ private durationMs?;
1074
+ /**
1075
+ * Start a timer with a label
1076
+ */
1077
+ startTimer(label: string): void;
1078
+ /**
1079
+ * End a timer and calculate duration
1080
+ * If label is 'execution', stores duration for metrics summary
1081
+ */
1082
+ endTimer(label: string): number | null;
1083
+ /**
1084
+ * Build execution metrics summary with optional ROI calculation
1085
+ */
1086
+ buildExecutionMetrics(metricsConfig?: ResourceMetricsConfig): ExecutionMetricsSummary;
1087
+ }
1088
+
1089
+ interface BaseAICall {
1090
+ callSequence: number;
1091
+ callType: 'agent-reasoning' | 'agent-completion' | 'workflow-step' | 'tool' | 'other';
1092
+ model: LLMModel;
1093
+ inputTokens: number;
1094
+ outputTokens: number;
1095
+ costUsd: number;
1096
+ latencyMs: number;
1097
+ context?: AICallContext;
1098
+ }
1099
+ type AICallContext = AgentReasoningContext | AgentCompletionContext | WorkflowStepContext | ToolCallContext | OtherCallContext;
1100
+ interface AgentReasoningContext {
1101
+ type: 'agent-reasoning';
1102
+ iteration: number;
1103
+ actionsPlanned?: string[];
1104
+ sessionId?: string;
1105
+ turnNumber?: number;
1106
+ }
1107
+ interface AgentCompletionContext {
1108
+ type: 'agent-completion';
1109
+ attempt: 1 | 2;
1110
+ validationFailed?: boolean;
1111
+ sessionId?: string;
1112
+ turnNumber?: number;
1113
+ }
1114
+ interface WorkflowStepContext {
1115
+ type: 'workflow-step';
1116
+ stepId: string;
1117
+ stepName?: string;
1118
+ stepSequence?: number;
1119
+ }
1120
+ interface ToolCallContext {
1121
+ type: 'tool';
1122
+ toolName: string;
1123
+ parentIteration?: number;
1124
+ parentStepId?: string;
1125
+ }
1126
+ interface OtherCallContext {
1127
+ type: 'other';
1128
+ description?: string;
1129
+ metadata?: Record<string, unknown>;
1130
+ }
1131
+ type AICallRecord = BaseAICall;
1132
+ /**
1133
+ * Raw LLM usage data returned by adapters
1134
+ * Used as input to AIUsageCollector.record()
1135
+ */
1136
+ interface LLMUsageData {
1137
+ model: LLMModel;
1138
+ inputTokens: number;
1139
+ outputTokens: number;
1140
+ latencyMs: number;
1141
+ /** Actual cost from provider in USD (when available, e.g., OpenRouter) */
1142
+ cost?: number;
1143
+ }
1144
+ interface AIUsageSummary {
1145
+ model: LLMModel;
1146
+ totalInputTokens: number;
1147
+ totalOutputTokens: number;
1148
+ totalTokens: number;
1149
+ totalCostUsd: number;
1150
+ callCount: number;
1151
+ calls: AICallRecord[];
1152
+ }
1153
+ interface ExecutionMetricsSummary {
1154
+ durationMs?: number;
1155
+ automationSavingsUsd?: number;
1156
+ }
1157
+ interface ResourceMetricsConfig {
1158
+ estimatedManualMinutes: number;
1159
+ hourlyLaborRateUsd: number;
1160
+ confidenceLevel?: 'low' | 'medium' | 'high';
1161
+ notes?: string;
1162
+ }
1163
+ /**
1164
+ * Time range selector for dashboard metrics
1165
+ */
1166
+ type TimeRange = '1h' | '24h' | '7d' | '30d';
1167
+
1168
+ /**
1169
+ * AIUsageCollector
1170
+ * Centralized token tracking that aggregates usage across all LLM calls in an execution
1171
+ */
1172
+ declare class AIUsageCollector {
1173
+ private model;
1174
+ private calls;
1175
+ private callSequence;
1176
+ /**
1177
+ * Record a single AI call with usage metrics
1178
+ *
1179
+ * @param usage - Token usage and latency data from LLM adapter
1180
+ * @param callType - Type discriminator (agent-reasoning, tool, etc.)
1181
+ * @param context - Optional typed context specific to callType
1182
+ */
1183
+ record(usage: LLMUsageData, callType?: BaseAICall['callType'], context?: AICallContext): void;
1184
+ /**
1185
+ * Get aggregated summary of all AI calls
1186
+ */
1187
+ getSummary(): AIUsageSummary;
1188
+ /**
1189
+ * Check if any usage has been recorded
1190
+ */
1191
+ hasUsage(): boolean;
1192
+ }
1193
+
1194
+ /**
1195
+ * Base Execution Engine type definitions
1196
+ * Core types shared across all Execution Engine resources
1197
+ */
1198
+
1199
+ /**
1200
+ * Immutable execution metadata
1201
+ * Represents complete execution identity (who, what, when, where)
1202
+ * Shared across ExecutionContext and ExecutionLoggerContext to eliminate field duplication
1203
+ */
1204
+ interface ExecutionMetadata {
1205
+ executionId: string;
1206
+ organizationId: string;
1207
+ organizationName: string;
1208
+ resourceId: string;
1209
+ userId?: string;
1210
+ sessionId?: string;
1211
+ sessionTurnNumber?: number;
1212
+ }
1213
+ /**
1214
+ * Unified message event type - covers all message types in sessions
1215
+ * Replaces separate SessionTurnMessages and AgentActivityEvent mechanisms
1216
+ */
1217
+ /**
1218
+ * Structured action metadata attached to assistant messages.
1219
+ * Frontend reads this instead of parsing text prefixes.
1220
+ */
1221
+ type AssistantAction = {
1222
+ kind: 'navigate';
1223
+ path: string;
1224
+ reason: string;
1225
+ } | {
1226
+ kind: 'update_filters';
1227
+ timeRange: string | null;
1228
+ statusFilter: string | null;
1229
+ searchQuery: string | null;
1230
+ };
1231
+ type MessageEvent = {
1232
+ type: 'user_message';
1233
+ text: string;
1234
+ } | {
1235
+ type: 'assistant_message';
1236
+ text: string;
1237
+ _action?: AssistantAction;
1238
+ } | {
1239
+ type: 'agent:started';
1240
+ } | {
1241
+ type: 'agent:completed';
1242
+ } | {
1243
+ type: 'agent:error';
1244
+ error: string;
1245
+ } | {
1246
+ type: 'agent:reasoning';
1247
+ iteration: number;
1248
+ reasoning: string;
1249
+ } | {
1250
+ type: 'agent:tool_call';
1251
+ toolName: string;
1252
+ args: Record<string, unknown>;
1253
+ } | {
1254
+ type: 'agent:tool_result';
1255
+ toolName: string;
1256
+ success: boolean;
1257
+ result?: unknown;
1258
+ error?: string;
1259
+ };
1260
+ /**
1261
+ * Execution context for all resources
1262
+ * Unified callback replaces SessionTurnMessages (removed)
1263
+ */
1264
+ interface ExecutionContext extends ExecutionMetadata {
1265
+ logger: IExecutionLogger;
1266
+ signal?: AbortSignal;
1267
+ onMessageEvent?: (event: MessageEvent) => Promise<void>;
1268
+ /** Called per iteration to write heartbeat + check stall status. Non-fatal if it throws. */
1269
+ onHeartbeat?: () => Promise<void>;
1270
+ aiUsageCollector?: AIUsageCollector;
1271
+ metricsCollector?: MetricsCollector;
1272
+ parentExecutionId?: string;
1273
+ executionDepth: number;
1274
+ credentialName?: string;
1275
+ store: Map<string, unknown>;
1276
+ }
1277
+ interface Contract {
1278
+ inputSchema: z.ZodSchema;
1279
+ outputSchema?: z.ZodSchema;
1280
+ }
1281
+ /**
1282
+ * NOTE: AIResource interface has been removed and replaced with ResourceDefinition
1283
+ * from registry/types.ts. All resources (executable and non-executable) now extend
1284
+ * the unified ResourceDefinition base interface.
1285
+ *
1286
+ * AgentConfig and WorkflowConfig now extend ResourceDefinition directly.
1287
+ * See packages/core/src/registry/types.ts for the base interface definition.
1288
+ */
1289
+ type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefinition;
1290
+
1291
+ /**
1292
+ * Tool definitions
1293
+ *
1294
+ * Tool interface used by agents and workflows.
1295
+ * Provides a universal interface for AI systems to interact with tools.
1296
+ */
1297
+
1298
+ /**
1299
+ * Options for tool execution
1300
+ * Provides named parameters for better API clarity and extensibility
1301
+ */
1302
+ interface ToolExecutionOptions {
1303
+ /** Tool input (validated against inputSchema before execution) */
1304
+ input: unknown;
1305
+ /** Execution context with multi-tenant isolation and observability (optional for simple tools, required for platform/integration tools) */
1306
+ executionContext?: ExecutionContext;
1307
+ /** Full iteration context for advanced tools (provides access to memoryManager, toolRegistry, logger, etc.) */
1308
+ iterationContext?: IterationContext;
1309
+ /** Abort signal for timeout/cancellation -- forward to fetch() calls for clean cancellation */
1310
+ signal?: AbortSignal;
1311
+ }
1312
+ /**
1313
+ * Tool interface for AI systems
1314
+ *
1315
+ * Used by:
1316
+ * - Agents: For agentic tool use (reasoning loop selects and executes tools)
1317
+ * - Workflows: For workflow step tool invocation (future)
1318
+ * - Platform tools: createApprovalTool(), createSchedulerTool()
1319
+ * - Integration tools: External API calls (Gmail, Slack, etc.)
1320
+ */
1321
+ interface Tool {
1322
+ name: string;
1323
+ description: string;
1324
+ inputSchema: z.ZodSchema;
1325
+ outputSchema: z.ZodSchema;
1326
+ execute: (options: ToolExecutionOptions) => Promise<unknown>;
1327
+ timeout?: number;
1328
+ }
1329
+
1330
+ /**
1331
+ * Resource Registry type definitions
1332
+ */
1333
+
1334
+ /**
1335
+ * Environment/deployment status for resources
1336
+ */
1337
+ type ResourceStatus = 'dev' | 'prod';
1338
+ /**
1339
+ * All resource types in the platform
1340
+ * Used as the discriminator field in ResourceDefinition
1341
+ */
1342
+ type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
1343
+ /**
1344
+ * Base interface for ALL platform resources
1345
+ * Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
1346
+ */
1347
+ interface ResourceDefinition {
1348
+ /** Unique resource identifier */
1349
+ resourceId: string;
1350
+ /** Display name */
1351
+ name: string;
1352
+ /** Purpose and functionality description */
1353
+ description: string;
1354
+ /** Version for change tracking and evolution */
1355
+ version: string;
1356
+ /** Resource type discriminator */
1357
+ type: ResourceType;
1358
+ /** Environment/deployment status */
1359
+ status: ResourceStatus;
1360
+ /** Domain tags for filtering and organization */
1361
+ domains?: ResourceDomain[];
1362
+ /** Whether the agent supports multi-turn sessions (agents only) */
1363
+ sessionCapable?: boolean;
1364
+ /** Whether the resource is local (monorepo) or remote (externally deployed) */
1365
+ origin?: 'local' | 'remote';
1366
+ /** Whether this resource is archived and should be excluded from registration and deployment */
1367
+ archived?: boolean;
1368
+ }
1369
+
1370
+ /**
1371
+ * Standard Domain Definitions
1372
+ * Centralized domain constants and definitions for all organization resources.
1373
+ */
1374
+
1375
+ declare const DOMAINS: {
1376
+ readonly INBOUND_PIPELINE: "inbound-pipeline";
1377
+ readonly LEAD_GEN_PIPELINE: "lead-gen-pipeline";
1378
+ readonly SUPPORT: "support";
1379
+ readonly CLIENT_SUPPORT: "client-support";
1380
+ readonly DELIVERY: "delivery";
1381
+ readonly OPERATIONS: "operations";
1382
+ readonly FINANCE: "finance";
1383
+ readonly EXECUTIVE: "executive";
1384
+ readonly INSTANTLY: "instantly";
1385
+ readonly TESTING: "testing";
1386
+ readonly INTERNAL: "internal";
1387
+ readonly INTEGRATION: "integration";
1388
+ readonly UTILITY: "utility";
1389
+ readonly DIAGNOSTIC: "diagnostic";
1390
+ };
1391
+ /**
1392
+ * ResourceDomain - Strongly typed domain identifier
1393
+ * Use this type for all domain references to ensure compile-time validation.
1394
+ */
1395
+ type ResourceDomain = (typeof DOMAINS)[keyof typeof DOMAINS];
1396
+
1397
+ /**
1398
+ * Calibration Lab Type Definitions
1399
+ * Core types for AI model configuration optimization with cost/performance comparison
1400
+ */
1401
+
1402
+ /**
1403
+ * Configuration variant for testing
1404
+ * Defines what to override in the base agent/workflow definition
1405
+ */
1406
+ interface ConfigVariant {
1407
+ variantName: string;
1408
+ definitionOverrides?: AgentCalibrationOverrides | WorkflowCalibrationOverrides;
1409
+ }
1410
+ /**
1411
+ * Agent definition overrides for calibration
1412
+ * Excludes identity/metadata fields that should not be modified
1413
+ */
1414
+ type AgentCalibrationOverrides = Omit<Partial<AgentDefinition>, 'config' | 'contract' | 'tools' | 'metricsConfig' | 'interface'>;
1415
+ /**
1416
+ * Workflow definition overrides for calibration
1417
+ * Excludes identity/metadata fields that should not be modified
1418
+ */
1419
+ type WorkflowCalibrationOverrides = Omit<Partial<WorkflowDefinition>, 'config' | 'contract' | 'steps' | 'entryPoint' | 'metricsConfig' | 'interface'>;
1420
+ /**
1421
+ * Grading rubric for LLM-as-judge evaluation
1422
+ * Defines criteria and passing threshold
1423
+ */
1424
+ interface GradingRubric {
1425
+ passingThreshold: number;
1426
+ criteria: GradingCriterion[];
1427
+ }
1428
+ /**
1429
+ * Individual grading criterion
1430
+ * Weight should be 0-1, and all weights should sum to 1
1431
+ */
1432
+ interface GradingCriterion {
1433
+ name: string;
1434
+ weight: number;
1435
+ description: string;
1436
+ scoringGuide: string;
1437
+ }
1438
+ /**
1439
+ * Grading result for a single execution or session
1440
+ * Contains overall score and per-criterion breakdown
1441
+ */
1442
+ interface GradeResult {
1443
+ score: number;
1444
+ passed: boolean;
1445
+ details: Record<string, {
1446
+ score: number;
1447
+ justification: string;
1448
+ }>;
1449
+ }
1450
+ /**
1451
+ * Single-turn calibration result
1452
+ * One result per (variant × input) combination
1453
+ */
1454
+ interface SingleCalibrationResult {
1455
+ executionId: string;
1456
+ variantName: string;
1457
+ inputIndex: number;
1458
+ appliedOverrides?: AgentCalibrationOverrides | WorkflowCalibrationOverrides;
1459
+ status: 'pending' | 'running' | 'completed' | 'failed';
1460
+ errorMessage?: string;
1461
+ grade?: GradeResult;
1462
+ gradeError?: string;
1463
+ }
1464
+ /**
1465
+ * Multi-turn session calibration result
1466
+ * Leverages existing sessions infrastructure
1467
+ */
1468
+ interface SessionCalibrationResult {
1469
+ sessionId: string;
1470
+ variantName: string;
1471
+ appliedOverrides?: AgentCalibrationOverrides | WorkflowCalibrationOverrides;
1472
+ status: 'pending' | 'running' | 'completed' | 'failed';
1473
+ errorMessage?: string;
1474
+ turnCount: number;
1475
+ grade?: GradeResult;
1476
+ gradeError?: string;
1477
+ }
1478
+ /**
1479
+ * Calibration run - individual test execution within a project
1480
+ * Contains configuration, results, and grading information
1481
+ */
1482
+ interface CalibrationRun {
1483
+ id: string;
1484
+ organizationId: string;
1485
+ projectId: string;
1486
+ name: string;
1487
+ description?: string | null;
1488
+ executionMode: 'single' | 'session';
1489
+ testInputs: unknown[];
1490
+ configVariants: ConfigVariant[];
1491
+ gradingRubric?: GradingRubric | null;
1492
+ graderModel?: string | null;
1493
+ results: (SingleCalibrationResult | SessionCalibrationResult)[];
1494
+ status: 'pending' | 'running' | 'completed' | 'partial' | 'failed';
1495
+ createdAt: Date;
1496
+ completedAt?: Date | null;
1497
+ }
1498
+
1499
+ interface ResourcesPageProps {
1500
+ /** Initial filter type from the URL search param (caller-managed) */
1501
+ initialFilter?: ResourceType;
1502
+ /** Called when the user changes the tab filter — caller should update its URL */
1503
+ onTypeChange: (type: ResourceType | undefined) => void;
1504
+ /** Current time range value — caller passes from its own store */
1505
+ timeRange: TimeRange;
1506
+ /** Called when the user clicks a resource row — caller handles navigation */
1507
+ onResourceClick: (resource: ResourceDefinition) => void;
1508
+ /** Items per page (defaults to 20) */
1509
+ pageSize?: number;
1510
+ }
1511
+ declare function ResourcesPage({ initialFilter, onTypeChange, timeRange, onResourceClick, pageSize }: ResourcesPageProps): react_jsx_runtime.JSX.Element;
1512
+
1513
+ interface ResourcesSidebarProps {
1514
+ timeRange: TimeRange;
1515
+ }
1516
+ /**
1517
+ * Resources sidebar - shows execution health donut, domain filters and search
1518
+ */
1519
+ declare function ResourcesSidebar({ timeRange }: ResourcesSidebarProps): react_jsx_runtime.JSX.Element;
1520
+
1521
+ interface ResourceDetailPageRenderExecutionPanelArgs {
1522
+ resourceId: string;
1523
+ resourceType: ResourceType;
1524
+ resourceName: string;
1525
+ resourceDefinition: AIResourceDefinition;
1526
+ onConnectionStatus: (connected: boolean, count: number) => void;
1527
+ }
1528
+ interface ResourceDetailPageProps {
1529
+ /** Resource type (workflow, agent, etc.) */
1530
+ type: ResourceType;
1531
+ /** Resource identifier */
1532
+ resourceId: string;
1533
+ /** Current time range value — caller passes from its own store */
1534
+ timeRange: TimeRange;
1535
+ /**
1536
+ * Render-prop slot for the consumer's ExecutionPanel. The shared layout owns connection
1537
+ * state and passes it to the slot via `onConnectionStatus`. The resolved
1538
+ * `resourceDefinition` is threaded through so the execution panel does not refetch.
1539
+ */
1540
+ renderExecutionPanel: (args: ResourceDetailPageRenderExecutionPanelArgs) => ReactNode;
1541
+ }
1542
+ declare function ResourceDetailPage({ type, resourceId, timeRange, renderExecutionPanel }: ResourceDetailPageProps): react_jsx_runtime.JSX.Element;
1543
+
1544
+ interface EventSourceMessage {
1545
+ id: string;
1546
+ event: string;
1547
+ data: string;
1548
+ retry?: number;
1549
+ }
1550
+
1551
+ interface FetchEventSourceWithTokenRefreshOptions {
1552
+ url: string;
1553
+ getToken: () => Promise<string | undefined>;
1554
+ headers?: Record<string, string>;
1555
+ signal: AbortSignal;
1556
+ /** Delay in ms before reconnecting after token refresh. Defaults to 2000. */
1557
+ tokenRefreshDelayMs?: number;
1558
+ onopen?: (response: Response) => void | Promise<void>;
1559
+ onmessage?: (event: EventSourceMessage) => void;
1560
+ onerror?: (error: unknown) => void;
1561
+ onclose?: () => void;
1562
+ }
1563
+
1564
+ interface SSEConnectionManagerOptions {
1565
+ /** Grace period in ms before closing idle connections. Defaults to 5000. */
1566
+ closeGracePeriodMs?: number;
1567
+ }
1568
+ /**
1569
+ * SSE Connection Manager
1570
+ *
1571
+ * Ensures only ONE SSE connection exists per endpoint, preventing duplicate
1572
+ * connections when components re-render or remount.
1573
+ *
1574
+ * Benefits:
1575
+ * - Prevents resource waste from duplicate connections
1576
+ * - Eliminates race conditions from overlapping connections
1577
+ * - Automatically manages connection lifecycle
1578
+ * - Shares single connection across multiple subscribers
1579
+ */
1580
+ declare class SSEConnectionManager {
1581
+ private connections;
1582
+ private closeGracePeriodMs;
1583
+ constructor(options?: SSEConnectionManagerOptions);
1584
+ /**
1585
+ * Subscribe to an SSE endpoint
1586
+ *
1587
+ * If a connection already exists for this endpoint, reuses it.
1588
+ * Otherwise, creates a new connection.
1589
+ *
1590
+ * @param key - Unique identifier for the connection (e.g., 'notifications', 'resource-executive-agent')
1591
+ * @param subscriberId - Unique identifier for this subscriber (usually component instance)
1592
+ * @param options - SSE connection options
1593
+ * @returns Unsubscribe function to call when component unmounts
1594
+ */
1595
+ subscribe(key: string, subscriberId: string, options: Omit<FetchEventSourceWithTokenRefreshOptions, 'signal'>): () => void;
1596
+ /**
1597
+ * Unsubscribe from an SSE endpoint
1598
+ *
1599
+ * If this is the last subscriber, closes the connection after grace period.
1600
+ */
1601
+ private unsubscribe;
1602
+ /**
1603
+ * Force close a connection and all its subscribers
1604
+ */
1605
+ closeConnection(key: string): void;
1606
+ /**
1607
+ * Get current connection status
1608
+ */
1609
+ getConnectionInfo(): Map<string, {
1610
+ url: string;
1611
+ subscribers: number;
1612
+ }>;
1613
+ }
1614
+
1615
+ type TaskFilterStatus = 'all' | 'pending' | 'completed' | 'expired';
1616
+
1617
+ interface CommandQueuePageProps {
1618
+ timeRange: TimeRange;
1619
+ pageSize?: number;
1620
+ onNavigateToTask: (taskId: string) => void;
1621
+ /** Filter props forwarded from the sidebar */
1622
+ selectedCheckpoint?: string;
1623
+ status?: TaskFilterStatus;
1624
+ priorityRange?: [number, number];
1625
+ }
1626
+ declare function CommandQueuePage({ timeRange, pageSize, onNavigateToTask, selectedCheckpoint, status, priorityRange }: CommandQueuePageProps): react_jsx_runtime.JSX.Element;
1627
+
1628
+ interface CommandQueueDetailPageRichTextArgs {
1629
+ content: string;
1630
+ onChange: (content: string) => void;
1631
+ placeholder?: string;
1632
+ }
1633
+ interface CommandQueueDetailPageProps {
1634
+ taskId: string;
1635
+ orgName: string;
1636
+ renderRichText?: (args: CommandQueueDetailPageRichTextArgs) => ReactNode;
1637
+ onNavigateToTask: (taskId: string) => void;
1638
+ onNavigateBack: () => void;
1639
+ onViewExecution: (type: string, resourceId: string, executionId: string) => void;
1640
+ }
1641
+ declare function CommandQueueDetailPage({ taskId, orgName, renderRichText, onNavigateBack, onViewExecution }: CommandQueueDetailPageProps): react_jsx_runtime.JSX.Element;
1642
+
1643
+ interface CommandViewPageProps {
1644
+ timeRange: TimeRange;
1645
+ }
1646
+ declare function CommandViewPage({ timeRange }: CommandViewPageProps): react_jsx_runtime.JSX.Element;
1647
+
1648
+ interface CalibrationPageProps {
1649
+ /** The resource this calibration tab is embedded within */
1650
+ resourceId: string;
1651
+ resourceType: 'agent' | 'workflow';
1652
+ /** Called when the user clicks a project card. Caller handles navigation. */
1653
+ onProjectNavigate: (projectId: string) => void;
1654
+ }
1655
+ declare function CalibrationPage({ resourceId, resourceType, onProjectNavigate }: CalibrationPageProps): react_jsx_runtime.JSX.Element;
1656
+
1657
+ interface CalibrationProjectDetailPageRenderRunCardArgs {
1658
+ run: CalibrationRun;
1659
+ projectId: string;
1660
+ }
1661
+ interface CalibrationProjectDetailPageRenderCreateModalArgs {
1662
+ opened: boolean;
1663
+ onClose: () => void;
1664
+ projectId: string;
1665
+ }
1666
+ interface CalibrationProjectDetailPageProps {
1667
+ /** ID of the calibration project to display */
1668
+ projectId: string;
1669
+ /** Root path for the calibration section, e.g. '/operations/calibration' */
1670
+ calibrationRootPath: string;
1671
+ /**
1672
+ * Called when the organization changes while viewing this page.
1673
+ * The CC wrapper navigates back to the calibration root on org switch.
1674
+ */
1675
+ onOrgChange?: () => void;
1676
+ /**
1677
+ * Render-prop slot for a single run card.
1678
+ * Required because CalibrationRunCard has CC-local hook dependencies
1679
+ * (useDeleteRun, useExecuteRun) that cannot be co-extracted yet.
1680
+ */
1681
+ renderRunCard: (args: CalibrationProjectDetailPageRenderRunCardArgs) => ReactNode;
1682
+ /**
1683
+ * Render-prop slot for the create run modal.
1684
+ * Required because CreateRunModal has CC-local hook dependencies
1685
+ * (useCreateRun) that cannot be co-extracted yet.
1686
+ */
1687
+ renderCreateModal: (args: CalibrationProjectDetailPageRenderCreateModalArgs) => ReactNode;
1688
+ /**
1689
+ * Runs array to display. Kept in CC because useCalibrationRuns is deferred
1690
+ * to batch 3 extraction. Pass `undefined` while loading.
1691
+ */
1692
+ runs: CalibrationRun[] | undefined;
1693
+ /** Whether the runs data is still loading */
1694
+ runsLoading: boolean;
1695
+ }
1696
+ declare function CalibrationProjectDetailPage({ projectId, calibrationRootPath, renderRunCard, renderCreateModal, runs, runsLoading }: CalibrationProjectDetailPageProps): react_jsx_runtime.JSX.Element | null;
1697
+
1698
+ interface CalibrationProjectsPageProps {
1699
+ /** Called when the user clicks a project card. Caller handles navigation. */
1700
+ onNavigateToProject: (projectId: string) => void;
1701
+ }
1702
+ /**
1703
+ * Main Calibration Lab landing page
1704
+ * Shows all calibration projects across the organization
1705
+ */
1706
+ declare function CalibrationProjectsPage({ onNavigateToProject }: CalibrationProjectsPageProps): react_jsx_runtime.JSX.Element;
1707
+
1708
+ interface CommandViewSidebarContentProps {
1709
+ /** Current time range value — caller passes from its own store (e.g. useAppStore) */
1710
+ timeRange: TimeRange;
1711
+ }
1712
+ /**
1713
+ * Contextual sidebar for the Command View page.
1714
+ * Shown in the shared Operations subshell sidebar when on /operations/command-view.
1715
+ *
1716
+ * Contains:
1717
+ * - Execution health donut chart (filtered by domain + status)
1718
+ * - Environment filter (All/Prod/Dev)
1719
+ * - Show integrations toggle
1720
+ * - Domain filters (collapsible)
1721
+ * - Settings (fit view on filter)
1722
+ * - Selected node details + executions/tasks (lazy loaded)
1723
+ */
1724
+ declare function CommandViewSidebarContent({ timeRange }: CommandViewSidebarContentProps): react_jsx_runtime.JSX.Element;
1725
+
1726
+ interface CalibrationRunDetailPageProps {
1727
+ /** ID of the calibration run to display */
1728
+ runId: string;
1729
+ /** Root path for the calibration section, e.g. '/operations/calibration' */
1730
+ calibrationRootPath: string;
1731
+ /**
1732
+ * Called when the user clicks the back-to-project button.
1733
+ * Receives the project ID to navigate to.
1734
+ */
1735
+ onNavigateToProject: (projectId: string) => void;
1736
+ /**
1737
+ * Called when the organization changes while viewing this page.
1738
+ * The CC wrapper should navigate back to the calibration root on org switch.
1739
+ */
1740
+ onOrgChange?: () => void;
1741
+ /**
1742
+ * Render-prop slot for the session comparison panel.
1743
+ * Required because SessionComparison has CC-local hook dependencies
1744
+ * (useSessionMessages, ChatInterface from @/shared/components/chat).
1745
+ */
1746
+ renderSessionComparison?: (args: {
1747
+ run: CalibrationRun;
1748
+ }) => ReactNode;
1749
+ /** SSE connection manager instance for live calibration progress updates. */
1750
+ manager: SSEConnectionManager;
1751
+ /** Base API URL used by CalibrationProgress to connect to the SSE endpoint. */
1752
+ apiUrl: string;
1753
+ }
1754
+ declare function CalibrationRunDetailPage({ runId, onNavigateToProject, renderSessionComparison, manager, apiUrl }: CalibrationRunDetailPageProps): react_jsx_runtime.JSX.Element | null;
1755
+
1756
+ interface CalibrationProgressProps {
1757
+ runId: string;
1758
+ manager: SSEConnectionManager;
1759
+ apiUrl: string;
1760
+ }
1761
+ declare function CalibrationProgress({ runId, manager, apiUrl }: CalibrationProgressProps): react_jsx_runtime.JSX.Element;
1762
+
1763
+ interface CalibrationSidebarProps {
1764
+ currentProjectId: string | undefined;
1765
+ currentRunId: string | undefined;
1766
+ currentPath: string;
1767
+ onProjectClick: (projectId: string) => void;
1768
+ onRunClick: (runId: string) => void;
1769
+ }
1770
+ /**
1771
+ * Calibration sidebar - displays projects and runs for navigation.
1772
+ * Uses shared CollapsibleSidebarGroup and SidebarListItem components.
1773
+ */
1774
+ declare function CalibrationSidebar({ currentProjectId, currentRunId, currentPath, onProjectClick, onRunClick }: CalibrationSidebarProps): react_jsx_runtime.JSX.Element;
1775
+
1776
+ interface ExecutionPanelProps {
1777
+ resourceId: string;
1778
+ resourceType: ResourceType;
1779
+ resourceName?: string;
1780
+ resourceDefinition: AIResourceDefinition;
1781
+ sseManager: SSEConnectionManager;
1782
+ apiUrl: string;
1783
+ onConnectionStatus?: (connected: boolean, runningCount: number) => void;
1784
+ }
1785
+ declare function ExecutionPanel({ resourceId, resourceType, resourceName, resourceDefinition, sseManager, apiUrl, onConnectionStatus }: ExecutionPanelProps): react_jsx_runtime.JSX.Element;
1786
+
1787
+ interface WorkflowExecutionPanelProps {
1788
+ resourceId: string;
1789
+ resourceName?: string;
1790
+ resourceDefinition: SerializedWorkflowDefinition;
1791
+ sseManager: SSEConnectionManager;
1792
+ apiUrl: string;
1793
+ onConnectionStatus?: (connected: boolean, runningCount: number) => void;
1794
+ }
1795
+ declare function WorkflowExecutionPanel({ resourceId, resourceDefinition, sseManager, apiUrl, onConnectionStatus }: WorkflowExecutionPanelProps): react_jsx_runtime.JSX.Element;
1796
+
1797
+ interface AgentExecutionPanelProps {
1798
+ resourceId: string;
1799
+ resourceName?: string;
1800
+ resourceDefinition: SerializedAgentDefinition;
1801
+ sseManager: SSEConnectionManager;
1802
+ apiUrl: string;
1803
+ onConnectionStatus?: (connected: boolean, runningCount: number) => void;
1804
+ }
1805
+ declare function AgentExecutionPanel({ resourceId, resourceDefinition, sseManager, apiUrl, onConnectionStatus }: AgentExecutionPanelProps): react_jsx_runtime.JSX.Element;
1806
+
1807
+ interface SessionsPageProps {
1808
+ /** Whether the organization context is ready; blocks render until true */
1809
+ isReady: boolean;
1810
+ /** The currently selected agent resource ID (from URL search param) */
1811
+ agentParam?: string;
1812
+ /** Builds the URL for a session detail page */
1813
+ buildSessionDetailUrl: (sessionId: string) => string;
1814
+ /** Builds the URL for the sessions list with an agent pre-selected */
1815
+ buildSessionListUrl: (agentId: string) => string;
1816
+ /** Imperative navigation handler; receives a fully-built URL string */
1817
+ onNavigate: (to: string) => void;
1818
+ }
1819
+ /**
1820
+ * Sessions page — agent grid + selected-agent session list.
1821
+ * Agent card selection, new-session creation, and navigation are delegated
1822
+ * to DI props so this component has no CC router dependency.
1823
+ */
1824
+ declare function SessionsPage({ isReady, agentParam, buildSessionDetailUrl, buildSessionListUrl, onNavigate }: SessionsPageProps): react_jsx_runtime.JSX.Element;
1825
+
1826
+ interface SessionListItem$1 {
1827
+ sessionId: string;
1828
+ resourceId: string;
1829
+ turnCount: number;
1830
+ isEnded: boolean;
1831
+ createdAt: Date;
1832
+ updatedAt: Date;
1833
+ }
1834
+ interface SessionGroup {
1835
+ resourceId: string;
1836
+ agentName: string;
1837
+ sessions: SessionListItem$1[];
1838
+ isExpanded: boolean;
1839
+ }
1840
+ /**
1841
+ * WebSocket connection state
1842
+ */
1843
+ interface WebSocketState {
1844
+ isConnected: boolean;
1845
+ isProcessing: boolean;
1846
+ error: string | null;
1847
+ }
1848
+
1849
+ interface ConversationViewSlotArgs {
1850
+ sessionId: string;
1851
+ onConnectionStateChange?: (state: WebSocketState) => void;
1852
+ emptyStateText?: string;
1853
+ emptyStateSubtext?: string;
1854
+ placeholder?: string;
1855
+ }
1856
+ interface SessionChatInterfaceProps {
1857
+ sessionId: string;
1858
+ onConnectionStateChange?: (state: WebSocketState) => void;
1859
+ renderConversationView: (args: ConversationViewSlotArgs) => ReactNode;
1860
+ }
1861
+ /**
1862
+ * Session chat interface for the session detail page.
1863
+ * Thin wrapper that delegates rendering to a render-prop slot,
1864
+ * allowing CC-local ConversationView (WebSocket-backed) to be injected
1865
+ * without coupling @repo/ui to CC-specific infrastructure.
1866
+ */
1867
+ declare function SessionChatInterface({ sessionId, onConnectionStateChange, renderConversationView }: SessionChatInterfaceProps): react_jsx_runtime.JSX.Element;
1868
+
1869
+ interface SessionChatPageProps {
1870
+ /** Session ID sourced from the URL param; host extracts it from the router */
1871
+ sessionId: string;
1872
+ /** Whether the organization context is ready; blocks render until true */
1873
+ isReady: boolean;
1874
+ /** Render-prop that injects the CC-local WebSocket-backed ConversationView */
1875
+ renderConversationView: (args: ConversationViewSlotArgs) => ReactNode;
1876
+ /** Builds the URL for an execution detail page; forwarded to SessionExecutionLogs */
1877
+ buildExecutionUrl: (executionId: string) => string;
1878
+ /** Builds the URL to navigate back to the sessions list */
1879
+ buildSessionListUrl: () => string;
1880
+ /** Organization name used for CLI copy strings in the session sidebar */
1881
+ organizationName: string;
1882
+ }
1883
+ /**
1884
+ * Session chat detail page.
1885
+ * Guards on isReady + session load, then renders the full chat layout
1886
+ * (header, chat area, execution logs, memory snapshot).
1887
+ * WebSocket connectivity is injected via renderConversationView.
1888
+ */
1889
+ declare function SessionChatPage({ sessionId, isReady, renderConversationView, buildExecutionUrl, buildSessionListUrl: _buildSessionListUrl, organizationName }: SessionChatPageProps): react_jsx_runtime.JSX.Element;
1890
+
1891
+ interface SessionChatAreaProps {
1892
+ sessionId: string;
1893
+ session: SessionDTO;
1894
+ organizationName: string;
1895
+ onDeleted?: () => void;
1896
+ renderConversationView: (args: {
1897
+ sessionId: string;
1898
+ onConnectionStateChange?: (state: WebSocketState) => void;
1899
+ emptyStateText?: string;
1900
+ emptyStateSubtext?: string;
1901
+ placeholder?: string;
1902
+ }) => ReactNode;
1903
+ }
1904
+ /**
1905
+ * Consolidated chat area component with header, chat interface, and sidebar.
1906
+ * Handles sidebar state and layout transitions.
1907
+ */
1908
+ declare function SessionChatArea({ sessionId, session, organizationName, onDeleted, renderConversationView }: SessionChatAreaProps): react_jsx_runtime.JSX.Element;
1909
+
1910
+ interface SessionHeaderProps {
1911
+ session: SessionDTO;
1912
+ connectionState: WebSocketState;
1913
+ onToggleSidebar: () => void;
1914
+ isSidebarOpen: boolean;
1915
+ tokenUsage?: {
1916
+ used: number;
1917
+ total: number;
1918
+ };
1919
+ }
1920
+ /**
1921
+ * Header component for session chat page.
1922
+ * Displays session title, connection status, turn count, and sidebar toggle.
1923
+ */
1924
+ declare function SessionHeader({ session: _session, connectionState, onToggleSidebar, isSidebarOpen, tokenUsage }: SessionHeaderProps): react_jsx_runtime.JSX.Element;
1925
+
1926
+ interface SessionDetailsSidebarProps {
1927
+ session: SessionDTO;
1928
+ isOpen: boolean;
1929
+ onClose: () => void;
1930
+ /** Organization name for CLI copy string */
1931
+ organizationName: string;
1932
+ /** Called after a successful session delete; wrapper should navigate away */
1933
+ onDeleted?: () => void;
1934
+ }
1935
+ /**
1936
+ * Floating sidebar that displays session details.
1937
+ * Slides in from the right, only as tall as the chat interface section.
1938
+ */
1939
+ declare function SessionDetailsSidebar({ session, isOpen, onClose, organizationName, onDeleted }: SessionDetailsSidebarProps): react_jsx_runtime.JSX.Element;
1940
+
1941
+ interface SessionListItemProps {
1942
+ session: SessionListItem$1;
1943
+ /** Called when the session row is clicked; host is responsible for navigation */
1944
+ onClick: (sessionId: string) => void;
1945
+ /** Whether this session is the currently selected one (drives highlight styles) */
1946
+ isSelected?: boolean;
1947
+ /** Called after a successful delete; host should navigate away if needed */
1948
+ onDeleted?: (sessionId: string) => void;
1949
+ }
1950
+ /**
1951
+ * A single session row for use in session lists and sidebars.
1952
+ * Displays turn count, last activity time, and an inline delete action.
1953
+ * Navigation is delegated via the `onClick` DI prop.
1954
+ */
1955
+ declare function SessionListItem({ session, onClick, isSelected, onDeleted }: SessionListItemProps): react_jsx_runtime.JSX.Element;
1956
+
1957
+ interface SessionExecutionLogsProps {
1958
+ sessionId: string;
1959
+ session: SessionDTO;
1960
+ /** Builds the URL for an execution detail page; opens in a new tab */
1961
+ buildExecutionUrl: (executionId: string) => string;
1962
+ }
1963
+ /**
1964
+ * Displays execution summary for all turns in a session.
1965
+ * Clicking an execution opens the full execution log page in a new tab.
1966
+ */
1967
+ declare function SessionExecutionLogs({ sessionId, session, buildExecutionUrl }: SessionExecutionLogsProps): react_jsx_runtime.JSX.Element;
1968
+
1969
+ interface AgentSessionGroupProps {
1970
+ group: SessionGroup;
1971
+ /** Called when the agent header label is clicked; host is responsible for navigation */
1972
+ onAgentClick: (agentId: string) => void;
1973
+ /** Called when a session row is clicked; forwarded to SessionListItem */
1974
+ onSessionClick: (sessionId: string) => void;
1975
+ /** Currently selected session ID, forwarded to SessionListItem for highlight */
1976
+ selectedSessionId?: string;
1977
+ /** Called after a session is deleted; host should navigate away if the deleted session was selected */
1978
+ onSessionDeleted?: (sessionId: string) => void;
1979
+ }
1980
+ /**
1981
+ * Collapsible session group for the sessions sidebar.
1982
+ * Displays an agent header with a badge count, and a collapsible list of sessions beneath it.
1983
+ */
1984
+ declare function AgentSessionGroup({ group, onAgentClick, onSessionClick, selectedSessionId, onSessionDeleted }: AgentSessionGroupProps): react_jsx_runtime.JSX.Element;
1985
+
1986
+ interface SessionsSidebarProps {
1987
+ /** Whether the organization context is ready; blocks render until true */
1988
+ isReady: boolean;
1989
+ /** Called when an agent list item is clicked; host is responsible for navigation */
1990
+ onAgentClick: (agentId: string) => void;
1991
+ /** Builds the URL for a session detail page; forwarded to SessionListItem */
1992
+ buildSessionDetailUrl: (sessionId: string) => string;
1993
+ /** Current session ID from URL params — undefined when on the list view */
1994
+ sessionId?: string;
1995
+ /** Current agent param from URL search — undefined when no agent is selected */
1996
+ agentParam?: string;
1997
+ }
1998
+ /**
1999
+ * Sessions sidebar — context-aware navigation panel.
2000
+ * Shows an agents list on the list view, or a flat sessions list when viewing a specific session.
2001
+ * Router-state (sessionId, agentParam) is injected as DI props.
2002
+ */
2003
+ declare function SessionsSidebar({ isReady, onAgentClick, buildSessionDetailUrl, sessionId, agentParam }: SessionsSidebarProps): react_jsx_runtime.JSX.Element;
2004
+
2005
+ export { AgentExecutionPanel, AgentSessionGroup, CalibrationPage, CalibrationProgress, CalibrationProjectDetailPage, CalibrationProjectsPage, CalibrationRunDetailPage, CalibrationSidebar, CommandQueueDetailPage, CommandQueuePage, CommandViewPage, CommandViewSidebarContent, ExecutionPanel, ResourceDetailPage, ResourcesPage, ResourcesSidebar, SessionChatArea, SessionChatInterface, SessionChatPage, SessionDetailsSidebar, SessionExecutionLogs, SessionHeader, SessionListItem, SessionsPage, SessionsSidebar, WorkflowExecutionPanel };
2006
+ export type { AgentExecutionPanelProps, AgentSessionGroupProps, CalibrationPageProps, CalibrationProgressProps, CalibrationProjectDetailPageProps, CalibrationProjectDetailPageRenderCreateModalArgs, CalibrationProjectDetailPageRenderRunCardArgs, CalibrationProjectsPageProps, CalibrationRunDetailPageProps, CalibrationSidebarProps, CommandQueueDetailPageProps, CommandQueueDetailPageRichTextArgs, CommandQueuePageProps, CommandViewPageProps, CommandViewSidebarContentProps, ConversationViewSlotArgs, ExecutionPanelProps, ResourceDetailPageProps, ResourceDetailPageRenderExecutionPanelArgs, ResourcesPageProps, ResourcesSidebarProps, SessionChatAreaProps, SessionChatInterfaceProps, SessionChatPageProps, SessionDetailsSidebarProps, SessionExecutionLogsProps, SessionHeaderProps, SessionListItemProps, SessionsPageProps, SessionsSidebarProps, WorkflowExecutionPanelProps };