@opengeni/react 6.5.2-canary.41607687019001 → 6.7.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 (1154) hide show
  1. package/dist/app/app-state.d.ts +4 -0
  2. package/dist/app/app-state.js +19 -14
  3. package/dist/app/components/Composer.js +25 -23
  4. package/dist/app/components/agent/agent-capability-picker.js +10 -8
  5. package/dist/app/components/artifacts/artifact-browse-controls.js +4 -4
  6. package/dist/app/components/artifacts/artifact-library.js +21 -19
  7. package/dist/app/components/artifacts/artifact-page-chrome.js +3 -3
  8. package/dist/app/components/artifacts/artifact-viewer.js +23 -22
  9. package/dist/app/components/artifacts/artifact-viewer.js.map +1 -1
  10. package/dist/app/components/artifacts/chat-interactive-block.js +12 -12
  11. package/dist/app/components/artifacts/copy-artifact-link.js +7 -5
  12. package/dist/app/components/artifacts/file-reach-dialog.js +11 -9
  13. package/dist/app/components/artifacts/inline-chat-image.js +18 -18
  14. package/dist/app/components/artifacts/retained-file-preview.js +24 -23
  15. package/dist/app/components/artifacts/retained-text-preview.js +3 -3
  16. package/dist/app/components/artifacts/site-audience.js +6 -5
  17. package/dist/app/components/artifacts/site-conversations.js +16 -14
  18. package/dist/app/components/artifacts/site-data.js +18 -16
  19. package/dist/app/components/artifacts/site-public-link.js +3 -2
  20. package/dist/app/components/artifacts/site-publishing-page.js +39 -37
  21. package/dist/app/components/artifacts/site-publishing.js +34 -32
  22. package/dist/app/components/artifacts/site-settings.js +38 -36
  23. package/dist/app/components/artifacts/site-version-menu.js +8 -7
  24. package/dist/app/components/billing-class-mark.js +3 -3
  25. package/dist/app/components/bots/bot-launch-strip.js +17 -17
  26. package/dist/app/components/bots/bot-template-dialog.js +30 -28
  27. package/dist/app/components/bots/bot-template-shortcuts.js +19 -19
  28. package/dist/app/components/bots/bot-templates-page.js +38 -36
  29. package/dist/app/components/bots/bot-templates-page.js.map +1 -1
  30. package/dist/app/components/capabilities/capability-detail-sheet.js +13 -11
  31. package/dist/app/components/capabilities/capability-logo-source.js +13 -13
  32. package/dist/app/components/capabilities/capability-logo.js +4 -3
  33. package/dist/app/components/capabilities/connector-tool-permissions.js +8 -6
  34. package/dist/app/components/capabilities/native-connect-setup.js +14 -14
  35. package/dist/app/components/capabilities/own-logins-shared-heads-up.js +7 -6
  36. package/dist/app/components/capabilities/perform-capability-action.js +7 -6
  37. package/dist/app/components/capabilities/prepared-mcp-setup-card.js +17 -17
  38. package/dist/app/components/capabilities/session-capability-card.js +72 -70
  39. package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
  40. package/dist/app/components/capabilities/session-chrome-card.js +28 -26
  41. package/dist/app/components/capabilities/session-connection-accounts.js +4 -3
  42. package/dist/app/components/capabilities/session-custom-mcp-card.js +20 -19
  43. package/dist/app/components/capabilities/session-github-card.js +22 -20
  44. package/dist/app/components/capabilities/session-machine-card.js +27 -25
  45. package/dist/app/components/capabilities/session-personal-github-card.js +16 -16
  46. package/dist/app/components/capabilities/session-plugin-card.js +10 -9
  47. package/dist/app/components/capabilities/use-capabilities-catalog.js +4 -3
  48. package/dist/app/components/capabilities/use-connection-accounts.js +5 -4
  49. package/dist/app/components/command-menu/chat-status.js +15 -13
  50. package/dist/app/components/command-menu/chat-switcher.js +35 -33
  51. package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
  52. package/dist/app/components/command-menu/command-menu.js +53 -50
  53. package/dist/app/components/command-menu/command-menu.js.map +1 -1
  54. package/dist/app/components/command-menu/shortcut-sheet.js +18 -16
  55. package/dist/app/components/command-menu/shortcut-sheet.js.map +1 -1
  56. package/dist/app/components/common.js +4 -3
  57. package/dist/app/components/composer-capabilities-menu-body.js +4 -4
  58. package/dist/app/components/composer-mobile-plus-panel.js +8 -8
  59. package/dist/app/components/composer-mobile-plus.js +1 -1
  60. package/dist/app/components/credit-required-gate.js +3 -3
  61. package/dist/app/components/credit-required-prompt.js +10 -8
  62. package/dist/app/components/credit-required-prompt.js.map +1 -1
  63. package/dist/app/components/credits/checkout-credits-celebration.js +3 -2
  64. package/dist/app/components/credits/checkout-return.js +3 -2
  65. package/dist/app/components/credits/checkout-return.js.map +1 -1
  66. package/dist/app/components/credits/coupon-redeem.js +5 -4
  67. package/dist/app/components/credits/credit-refusal-notice.js +7 -5
  68. package/dist/app/components/cross-slot-deep-link-recovery.js +5 -4
  69. package/dist/app/components/desktop/app-shots.js +13 -11
  70. package/dist/app/components/desktop/computer-use.js +6 -4
  71. package/dist/app/components/desktop/this-computer.js +9 -7
  72. package/dist/app/components/feedback.js +5 -4
  73. package/dist/app/components/follow-up-repository-menu-body.js +8 -6
  74. package/dist/app/components/follow-up-repository-menu-body.js.map +1 -1
  75. package/dist/app/components/follow-up-repository-picker.js +1 -1
  76. package/dist/app/components/github-app-connect-launcher.js +5 -4
  77. package/dist/app/components/in-app-help-link.js +3 -3
  78. package/dist/app/components/knowledge/agent-learning-settings.js +3 -2
  79. package/dist/app/components/knowledge/agent-learning-settings.js.map +1 -1
  80. package/dist/app/components/machines/connect-machine-dialog.js +18 -16
  81. package/dist/app/components/manual-repository-editor.js +3 -2
  82. package/dist/app/components/markdown.js +6 -6
  83. package/dist/app/components/models/models-ui.js +12 -10
  84. package/dist/app/components/my-things.js +12 -10
  85. package/dist/app/components/my-things.js.map +1 -1
  86. package/dist/app/components/new-session-starters.js +3 -3
  87. package/dist/app/components/own-where-it-works.js +9 -7
  88. package/dist/app/components/personal-resource-attachment-surface.js +4 -4
  89. package/dist/app/components/pickers.js +5 -5
  90. package/dist/app/components/rail/channel-create-dialog.js +7 -5
  91. package/dist/app/components/rail/project-glyph.js +17 -17
  92. package/dist/app/components/rail/project-profile.js +31 -29
  93. package/dist/app/components/rail/rail-context.js +3 -3
  94. package/dist/app/components/rail/rail-sections.js +68 -66
  95. package/dist/app/components/rail/session-header.js +59 -57
  96. package/dist/app/components/rail/session-list.js +66 -64
  97. package/dist/app/components/rail/session-row-content.js +4 -4
  98. package/dist/app/components/rail/session-row-hover-details.js +14 -12
  99. package/dist/app/components/rail/session-shell.js +90 -88
  100. package/dist/app/components/rail/site-session-group-heading.js +8 -8
  101. package/dist/app/components/repository-picker.js +8 -6
  102. package/dist/app/components/secrets/session-secrets-panel.js +4 -3
  103. package/dist/app/components/secrets/vault-model.js +3 -2
  104. package/dist/app/components/session/agent-configuration-panel.js +25 -23
  105. package/dist/app/components/session/agent-configuration-panel.js.map +1 -1
  106. package/dist/app/components/session/artifact-link-boundary.js +3 -3
  107. package/dist/app/components/session/artifact-session-page.js +11 -9
  108. package/dist/app/components/session/banners.js +8 -8
  109. package/dist/app/components/session/codex-usage-notice.js +5 -3
  110. package/dist/app/components/session/console-new-conversation.js +42 -40
  111. package/dist/app/components/session/context-text-reader.js +3 -2
  112. package/dist/app/components/session/descendant-requests.js +39 -37
  113. package/dist/app/components/session/descendant-requests.js.map +1 -1
  114. package/dist/app/components/session/editable-artifacts-workspace.js +36 -34
  115. package/dist/app/components/session/editable-artifacts-workspace.js.map +1 -1
  116. package/dist/app/components/session/failed-session-banner.js +13 -11
  117. package/dist/app/components/session/failed-session-banner.js.map +1 -1
  118. package/dist/app/components/session/failure-recovery-boundary.js +3 -3
  119. package/dist/app/components/session/human-input-delegation-record.js +2 -2
  120. package/dist/app/components/session/human-input.js +33 -31
  121. package/dist/app/components/session/inspector.js +57 -55
  122. package/dist/app/components/session/inspector.js.map +1 -1
  123. package/dist/app/components/session/message-actions.js +5 -4
  124. package/dist/app/components/session/message-actions.js.map +1 -1
  125. package/dist/app/components/session/message-resource-attachments.js +12 -11
  126. package/dist/app/components/session/message-resource-attachments.js.map +1 -1
  127. package/dist/app/components/session/model-context-inspector.js +6 -4
  128. package/dist/app/components/session/model-recovery-notice.js +3 -3
  129. package/dist/app/components/session/new-session-settings-menu.js +11 -9
  130. package/dist/app/components/session/new-session-setup-strip.js +18 -18
  131. package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
  132. package/dist/app/components/session/sandbox-switcher.js +10 -9
  133. package/dist/app/components/session/sandbox-workspace.js +47 -46
  134. package/dist/app/components/session/search-markdown-highlight.js +7 -7
  135. package/dist/app/components/session/search-results-view.js +8 -8
  136. package/dist/app/components/session/session-admin-access.js +13 -11
  137. package/dist/app/components/session/session-admission-notice.js +7 -5
  138. package/dist/app/components/session/session-avatar-picker.js +22 -20
  139. package/dist/app/components/session/session-avatar.js +16 -16
  140. package/dist/app/components/session/session-machine-access-notice.js +7 -5
  141. package/dist/app/components/session/session-profile-dialog.js +29 -27
  142. package/dist/app/components/session/session-profile-editor.js +30 -28
  143. package/dist/app/components/session/session-retention.js +10 -8
  144. package/dist/app/components/session/session-search-dialog.js +10 -10
  145. package/dist/app/components/session/session-skill-reviews.js +2 -1
  146. package/dist/app/components/session/session-skill-reviews.js.map +1 -1
  147. package/dist/app/components/session/session-tenancy-control.js +13 -11
  148. package/dist/app/components/session/session-tenancy-control.js.map +1 -1
  149. package/dist/app/components/session/session-unattended-setting.js +7 -5
  150. package/dist/app/components/session/session-usage-limit-section.js +11 -9
  151. package/dist/app/components/session/share-chat-dialog.js +9 -7
  152. package/dist/app/components/session/site-origin-link.js +3 -3
  153. package/dist/app/components/session/subagents.js +8 -8
  154. package/dist/app/components/session/subscription-account-indicator.js +6 -6
  155. package/dist/app/components/session-connectors-menu-body.js +4 -3
  156. package/dist/app/components/session-connectors-menu-body.js.map +1 -1
  157. package/dist/app/components/settings/row-select.js +7 -5
  158. package/dist/app/components/toaster.js +3 -2
  159. package/dist/app/components/transcription-settings.js +11 -9
  160. package/dist/app/components/ui/destructive-confirm.js +11 -9
  161. package/dist/app/components/usage/usage-entry.js +5 -5
  162. package/dist/app/components/window-bar.js +16 -14
  163. package/dist/app/components/workspace-composer-plus.js +22 -21
  164. package/dist/app/components/workspace-reach.js +6 -4
  165. package/dist/app/components/workspace-tenant-boundary.js +5 -4
  166. package/dist/app/embed/memory-navigation.js +3 -3
  167. package/dist/app/embed/session-app.js +211 -209
  168. package/dist/app/lib/actions/actions-provider.js +15 -13
  169. package/dist/app/lib/agent-capabilities.js +3 -3
  170. package/dist/app/lib/app-surfaces.js +7 -6
  171. package/dist/app/lib/archive-session.d.ts +9 -4
  172. package/dist/app/lib/archive-session.js +4 -2
  173. package/dist/app/lib/bot-templates.js +3 -2
  174. package/dist/app/lib/capabilities.js +3 -2
  175. package/dist/app/lib/codex-usage-query.js +2 -2
  176. package/dist/app/lib/composer-connectors.js +17 -16
  177. package/dist/app/lib/console-site.js +2 -2
  178. package/dist/app/lib/console-text.js +2 -2
  179. package/dist/app/lib/events.js +9 -9
  180. package/dist/app/lib/failed-session-copy.js +3 -3
  181. package/dist/app/lib/inbox.js +4 -2
  182. package/dist/app/lib/model-access-onboarding.js +3 -3
  183. package/dist/app/lib/move-chat-to-machine.js +3 -3
  184. package/dist/app/lib/navigation.js +2 -2
  185. package/dist/app/lib/session-branch-cache.js +6 -6
  186. package/dist/app/lib/session-create.js +4 -4
  187. package/dist/app/lib/session-group-pagination.js +6 -6
  188. package/dist/app/lib/session-hover-facts.js +13 -11
  189. package/dist/app/lib/session-model.js +2 -2
  190. package/dist/app/lib/session-rail.js +3 -3
  191. package/dist/app/lib/session-rename.js +3 -3
  192. package/dist/app/lib/session-restart-operation-controller.js +4 -3
  193. package/dist/app/lib/session-tenancy.js +3 -2
  194. package/dist/app/lib/session-usage-limit.js +3 -2
  195. package/dist/app/lib/sessions-group.js +5 -5
  196. package/dist/app/lib/site-publishing.js +3 -2
  197. package/dist/app/lib/site-tool-consent-dialog.js +9 -7
  198. package/dist/app/lib/site-tool-consent-dialog.js.map +1 -1
  199. package/dist/app/lib/site-tool-consent.js +1 -1
  200. package/dist/app/lib/subscription-plans.js +3 -2
  201. package/dist/app/lib/toast.js +2 -1
  202. package/dist/app/lib/turn-failure-analytics.js +4 -4
  203. package/dist/app/lib/use-duplicate-site.js +6 -5
  204. package/dist/app/lib/use-follow-up-repositories.js +6 -5
  205. package/dist/app/lib/use-workspace-integrations.js +4 -3
  206. package/dist/app/lib/use-workspace-machines.js +4 -4
  207. package/dist/app/lib/use-workspace-model-catalog.js +5 -4
  208. package/dist/app/lib/use-workspace-rigs.js +2 -2
  209. package/dist/app/lib/workspace-navigation-preference.js +4 -4
  210. package/dist/app/lib/workspace-scope-context.js +3 -3
  211. package/dist/app/routes/artifacts.js +67 -66
  212. package/dist/app/routes/artifacts.js.map +1 -1
  213. package/dist/app/routes/retained-artifact.js +42 -40
  214. package/dist/app/routes/retained-artifact.js.map +1 -1
  215. package/dist/app/routes/session-unavailable.js +8 -7
  216. package/dist/app/routes/session.js +119 -117
  217. package/dist/app/routes/sessions-index-hydration.js +5 -5
  218. package/dist/app/routes/sessions-index.js +104 -102
  219. package/dist/app/routes/site-view.js +67 -65
  220. package/dist/app/routes/site-view.js.map +1 -1
  221. package/dist/artifacts-document.js +4 -4
  222. package/dist/artifacts-presentation.js +4 -4
  223. package/dist/artifacts-spreadsheet.js +4 -4
  224. package/dist/artifacts.js +10 -10
  225. package/dist/automations.js +17 -15
  226. package/dist/automations.js.map +1 -1
  227. package/dist/browser-viewer-TC27OCIP.js +23 -0
  228. package/dist/chat-interactive-block-RWPQBHVS.js +18 -0
  229. package/dist/chunk-2BDT3UZQ.js +229 -0
  230. package/dist/chunk-2CLNIEK4.js +373 -0
  231. package/dist/chunk-2FSBSCZJ.js +451 -0
  232. package/dist/chunk-2I7HDP53.js +199 -0
  233. package/dist/chunk-2INLDVK3.js +15 -0
  234. package/dist/chunk-2KALVELR.js +126 -0
  235. package/dist/chunk-2M3J7ZWQ.js +418 -0
  236. package/dist/chunk-2OP6WLGV.js +708 -0
  237. package/dist/chunk-2RG7NIAS.js +2936 -0
  238. package/dist/chunk-2STUPWEL.js +135 -0
  239. package/dist/chunk-2YUOVM3G.js +271 -0
  240. package/dist/chunk-2Z3NQNTM.js +3670 -0
  241. package/dist/chunk-3CPWWGNK.js +920 -0
  242. package/dist/chunk-3ED2U6XE.js +37 -0
  243. package/dist/chunk-3GZA4BUW.js +216 -0
  244. package/dist/chunk-3IK6UYO6.js +1022 -0
  245. package/dist/chunk-3PZ7JZI2.js +431 -0
  246. package/dist/chunk-4DVJ6ONS.js +50 -0
  247. package/dist/chunk-4DVNUCRR.js +2386 -0
  248. package/dist/chunk-4DVNUCRR.js.map +1 -0
  249. package/dist/chunk-4E3ZJRTZ.js +41 -0
  250. package/dist/chunk-4SAWSRAA.js +141 -0
  251. package/dist/chunk-53AGXXZM.js +307 -0
  252. package/dist/chunk-54YW6SZZ.js +818 -0
  253. package/dist/chunk-57AZS3IE.js +2317 -0
  254. package/dist/chunk-5CPEEAFD.js +143 -0
  255. package/dist/chunk-5EWSRZ2Y.js +340 -0
  256. package/dist/chunk-5IE76VCY.js +387 -0
  257. package/dist/chunk-5NWEKLDZ.js +170 -0
  258. package/dist/chunk-5O2FCCHZ.js +198 -0
  259. package/dist/chunk-5QAY6K77.js +399 -0
  260. package/dist/chunk-5YKW2K6I.js +625 -0
  261. package/dist/chunk-5YKW2K6I.js.map +1 -0
  262. package/dist/chunk-6BCXNDEI.js +4116 -0
  263. package/dist/chunk-6BCXNDEI.js.map +1 -0
  264. package/dist/chunk-6DK6Z4UN.js +2599 -0
  265. package/dist/chunk-6DVCC7QS.js +702 -0
  266. package/dist/chunk-6JHU2UBS.js +2058 -0
  267. package/dist/chunk-6PZ7OBYU.js +490 -0
  268. package/dist/chunk-6WD2INST.js +539 -0
  269. package/dist/chunk-6WD2INST.js.map +1 -0
  270. package/dist/chunk-6WGRDRMA.js +163 -0
  271. package/dist/chunk-77WAKEAH.js +186 -0
  272. package/dist/chunk-7T2ZE3VT.js +5558 -0
  273. package/dist/chunk-7T2ZE3VT.js.map +1 -0
  274. package/dist/chunk-7TDO3CUM.js +393 -0
  275. package/dist/chunk-7TIX2UAR.js +247 -0
  276. package/dist/chunk-7V5REBCP.js +148 -0
  277. package/dist/chunk-7VMZGLYI.js +339 -0
  278. package/dist/chunk-7W37NS3I.js +236 -0
  279. package/dist/chunk-7X6SDK2C.js +111 -0
  280. package/dist/chunk-7ZNUHRP5.js +95 -0
  281. package/dist/chunk-A36PZALD.js +84 -0
  282. package/dist/chunk-AUI6VA63.js +107 -0
  283. package/dist/chunk-AW2MQB37.js +24 -0
  284. package/dist/chunk-AWKES45Y.js +198 -0
  285. package/dist/chunk-AXHZYXUV.js +132 -0
  286. package/dist/chunk-BHNSJVBC.js +129 -0
  287. package/dist/chunk-BJEJFISW.js +50 -0
  288. package/dist/chunk-BJFH6JI5.js +422 -0
  289. package/dist/chunk-BMICEQZQ.js +960 -0
  290. package/dist/chunk-BTLBYBLU.js +29 -0
  291. package/dist/chunk-BXBDYNRP.js +89 -0
  292. package/dist/chunk-C372BFOV.js +357 -0
  293. package/dist/chunk-C43KRXGA.js +234 -0
  294. package/dist/chunk-C43KRXGA.js.map +1 -0
  295. package/dist/chunk-CMKGILJK.js +4824 -0
  296. package/dist/chunk-CRAOSVHC.js +50 -0
  297. package/dist/chunk-CRU35QQH.js +281 -0
  298. package/dist/chunk-CUIWCGMA.js +172 -0
  299. package/dist/chunk-D5TWNFFE.js +38 -0
  300. package/dist/chunk-DF5EAHDN.js +4461 -0
  301. package/dist/chunk-DJAXC5OK.js +56 -0
  302. package/dist/chunk-DXBYWSL5.js +3550 -0
  303. package/dist/chunk-DXR5PDFP.js +84 -0
  304. package/dist/chunk-DZWARC4M.js +267 -0
  305. package/dist/chunk-DZXEDSQI.js +106 -0
  306. package/dist/chunk-E7XERZWC.js +48 -0
  307. package/dist/chunk-ECJBYNLJ.js +79 -0
  308. package/dist/chunk-EDI6SJ2N.js +43 -0
  309. package/dist/chunk-EWSOC6WF.js +114 -0
  310. package/dist/chunk-F2OPHAUN.js +103 -0
  311. package/dist/chunk-F4ISQGGM.js +81 -0
  312. package/dist/chunk-FO4LYKJL.js +197 -0
  313. package/dist/chunk-FPXASDG5.js +73 -0
  314. package/dist/chunk-FSOQDUCG.js +117 -0
  315. package/dist/chunk-FSOQDUCG.js.map +1 -0
  316. package/dist/chunk-FVXBNBHO.js +157 -0
  317. package/dist/chunk-FYWT2O76.js +34 -0
  318. package/dist/chunk-FYWT2O76.js.map +1 -0
  319. package/dist/chunk-FZC5N55X.js +981 -0
  320. package/dist/chunk-GAVYGBFI.js +99 -0
  321. package/dist/chunk-GFIMOUDT.js +846 -0
  322. package/dist/chunk-GFIMOUDT.js.map +1 -0
  323. package/dist/chunk-GKVJIDHF.js +33 -0
  324. package/dist/chunk-GVN5SZLX.js +212 -0
  325. package/dist/chunk-H3T7IWNA.js +134 -0
  326. package/dist/chunk-HAX4LCR5.js +261 -0
  327. package/dist/chunk-HC4JFZVU.js +121 -0
  328. package/dist/chunk-HEFPPMBQ.js +581 -0
  329. package/dist/chunk-HGKTHF2U.js +1356 -0
  330. package/dist/chunk-HGKTHF2U.js.map +1 -0
  331. package/dist/chunk-HNLR7Q4Z.js +83 -0
  332. package/dist/chunk-HSOXMJOT.js +12 -0
  333. package/dist/chunk-I4MRDSUF.js +281 -0
  334. package/dist/chunk-I4QEJ62Y.js +202 -0
  335. package/dist/chunk-I5B5L6Q4.js +56 -0
  336. package/dist/chunk-I5QZJODL.js +264 -0
  337. package/dist/chunk-I7ITSXSJ.js +603 -0
  338. package/dist/chunk-I7XIZRFD.js +390 -0
  339. package/dist/chunk-IDANQPRH.js +82 -0
  340. package/dist/chunk-IFB3WJ36.js +212 -0
  341. package/dist/chunk-IHTAKKTK.js +264 -0
  342. package/dist/chunk-IKXNLWAL.js +205 -0
  343. package/dist/chunk-IKXNLWAL.js.map +1 -0
  344. package/dist/chunk-ILDXWY37.js +173 -0
  345. package/dist/chunk-IMDQUHBJ.js +570 -0
  346. package/dist/chunk-IMZCQBOT.js +119 -0
  347. package/dist/chunk-IXPTECSC.js +403 -0
  348. package/dist/chunk-J255A3N5.js +71 -0
  349. package/dist/chunk-J5F5HPPW.js +141 -0
  350. package/dist/chunk-JDTGRRNU.js +5045 -0
  351. package/dist/chunk-JDTGRRNU.js.map +1 -0
  352. package/dist/chunk-JEA3QDX7.js +2469 -0
  353. package/dist/chunk-JEUPAVYY.js +156 -0
  354. package/dist/chunk-JKHKLL5W.js +194 -0
  355. package/dist/chunk-JQL7ZH6C.js +650 -0
  356. package/dist/chunk-JWB44UGJ.js +57 -0
  357. package/dist/chunk-JZ4NLCAP.js +333 -0
  358. package/dist/chunk-K2A5PXQ5.js +412 -0
  359. package/dist/chunk-K56XV3C3.js +623 -0
  360. package/dist/chunk-K6GAXXVA.js +23 -0
  361. package/dist/chunk-KCBMFSMS.js +199 -0
  362. package/dist/chunk-KF2FV3ZJ.js +268 -0
  363. package/dist/chunk-KJD65EJP.js +278 -0
  364. package/dist/chunk-KLEUWIMZ.js +386 -0
  365. package/dist/chunk-KODELWYT.js +309 -0
  366. package/dist/chunk-KRDR5RJD.js +83 -0
  367. package/dist/chunk-KUDGXAF7.js +914 -0
  368. package/dist/chunk-KY2R73CG.js +171 -0
  369. package/dist/chunk-KY2R73CG.js.map +1 -0
  370. package/dist/chunk-KYS77RPN.js +85 -0
  371. package/dist/chunk-L7YTNTIK.js +368 -0
  372. package/dist/chunk-LHPNABDH.js +686 -0
  373. package/dist/chunk-MFROMEKA.js +401 -0
  374. package/dist/chunk-MIHN76LX.js +2656 -0
  375. package/dist/chunk-MIYFS2XN.js +42 -0
  376. package/dist/chunk-MJUCFQMS.js +65 -0
  377. package/dist/chunk-MM4FNWI4.js +3064 -0
  378. package/dist/chunk-MNZG4OHU.js +790 -0
  379. package/dist/chunk-MVW6HNPI.js +250 -0
  380. package/dist/chunk-MVW6HNPI.js.map +1 -0
  381. package/dist/chunk-N6AACDUW.js +200 -0
  382. package/dist/chunk-NC55IFN3.js +781 -0
  383. package/dist/chunk-NC7PVOEK.js +98 -0
  384. package/dist/chunk-NCYMNCJO.js +70 -0
  385. package/dist/chunk-ND2BXV3P.js +259 -0
  386. package/dist/chunk-NDBTFUO6.js +272 -0
  387. package/dist/chunk-NDQJZ7HF.js +206 -0
  388. package/dist/chunk-NGJJJPZZ.js +162 -0
  389. package/dist/chunk-NJTSNNE7.js +251 -0
  390. package/dist/chunk-NPGISCU6.js +4159 -0
  391. package/dist/chunk-NPGISCU6.js.map +1 -0
  392. package/dist/chunk-NRTE7DNV.js +1270 -0
  393. package/dist/chunk-NULUNM7H.js +290 -0
  394. package/dist/chunk-NUNZS36W.js +227 -0
  395. package/dist/chunk-NW53H5RW.js +2424 -0
  396. package/dist/chunk-NXCMHIKI.js +263 -0
  397. package/dist/chunk-O3LKCBP5.js +159 -0
  398. package/dist/chunk-O4EA4F3W.js +103 -0
  399. package/dist/chunk-O4EA4F3W.js.map +1 -0
  400. package/dist/chunk-O4OOG3D6.js +116 -0
  401. package/dist/chunk-O4OOG3D6.js.map +1 -0
  402. package/dist/chunk-O6N4ABCA.js +376 -0
  403. package/dist/chunk-O732GAFC.js +112 -0
  404. package/dist/chunk-OF4TIKYC.js +690 -0
  405. package/dist/chunk-OMPVOMPP.js +70 -0
  406. package/dist/chunk-OPJJSKUK.js +118 -0
  407. package/dist/chunk-OPWCMA4D.js +196 -0
  408. package/dist/chunk-ORJPS5VN.js +1193 -0
  409. package/dist/chunk-OSY5K7L7.js +187 -0
  410. package/dist/chunk-OV6QJRT4.js +45 -0
  411. package/dist/chunk-OVKYVZMW.js +108 -0
  412. package/dist/chunk-OZCBM3UC.js +171 -0
  413. package/dist/chunk-P3A2EINJ.js +61 -0
  414. package/dist/chunk-PTAG4PDC.js +27 -0
  415. package/dist/chunk-PTF5B7TJ.js +298 -0
  416. package/dist/chunk-Q3DPEYX4.js +848 -0
  417. package/dist/chunk-Q6CGOPJD.js +215 -0
  418. package/dist/chunk-Q6CGOPJD.js.map +1 -0
  419. package/dist/chunk-QB2KMIDP.js +100 -0
  420. package/dist/chunk-QCSJ4CWE.js +1067 -0
  421. package/dist/chunk-QIOQ2NPQ.js +414 -0
  422. package/dist/chunk-QK5EFEUT.js +353 -0
  423. package/dist/chunk-QPQBLYQJ.js +41 -0
  424. package/dist/chunk-QPSGCC5D.js +184 -0
  425. package/dist/chunk-QZAAUQRN.js +474 -0
  426. package/dist/chunk-QZM6YDJW.js +489 -0
  427. package/dist/chunk-QZM6YDJW.js.map +1 -0
  428. package/dist/chunk-RGBI63KJ.js +188 -0
  429. package/dist/chunk-RLBKLAEY.js +138 -0
  430. package/dist/chunk-RMFKVOM7.js +304 -0
  431. package/dist/chunk-ROKQU7WG.js +258 -0
  432. package/dist/chunk-RPVREAU7.js +251 -0
  433. package/dist/chunk-RQKLF42C.js +723 -0
  434. package/dist/chunk-SC6RRD2D.js +38 -0
  435. package/dist/chunk-SC6RRD2D.js.map +1 -0
  436. package/dist/chunk-SEO7TICN.js +94 -0
  437. package/dist/chunk-SHHJCL7X.js +432 -0
  438. package/dist/chunk-SIRLACNZ.js +114 -0
  439. package/dist/chunk-SKPHMYAA.js +237 -0
  440. package/dist/chunk-SODC7T6L.js +1583 -0
  441. package/dist/chunk-SQJIKMN3.js +366 -0
  442. package/dist/chunk-SVINDKVW.js +26 -0
  443. package/dist/chunk-SYCDHPZF.js +335 -0
  444. package/dist/chunk-T2QX3FDP.js +133 -0
  445. package/dist/chunk-T3OWFVMS.js +1187 -0
  446. package/dist/chunk-T6XI5FLY.js +61 -0
  447. package/dist/chunk-T7OXJZCX.js +62 -0
  448. package/dist/chunk-TAT5USZN.js +353 -0
  449. package/dist/chunk-TPQTRNER.js +172 -0
  450. package/dist/chunk-TUIN4MB7.js +266 -0
  451. package/dist/chunk-TX3VECZU.js +71 -0
  452. package/dist/chunk-TXLIEOJX.js +9624 -0
  453. package/dist/chunk-U3DN4HEY.js +27 -0
  454. package/dist/chunk-U7XM7CB4.js +191 -0
  455. package/dist/chunk-UJK53QFL.js +140 -0
  456. package/dist/chunk-UMTXA2TH.js +319 -0
  457. package/dist/chunk-UPDSXFK5.js +199 -0
  458. package/dist/chunk-UTIAXH52.js +269 -0
  459. package/dist/chunk-UVN5TMHU.js +1184 -0
  460. package/dist/chunk-V4Z4B2E3.js +52 -0
  461. package/dist/chunk-V4Z4B2E3.js.map +1 -0
  462. package/dist/chunk-VGYXW3VG.js +246 -0
  463. package/dist/chunk-VS7AHPCZ.js +255 -0
  464. package/dist/chunk-VTTAJOQ7.js +121 -0
  465. package/dist/chunk-VWPOLUAO.js +99 -0
  466. package/dist/chunk-X3MWB2QU.js +3851 -0
  467. package/dist/chunk-X6KAJI3V.js +211 -0
  468. package/dist/chunk-XBLRHV5R.js +50 -0
  469. package/dist/chunk-XDFP2LMW.js +605 -0
  470. package/dist/chunk-XEQMZB3C.js +525 -0
  471. package/dist/chunk-XEYLT5VA.js +223 -0
  472. package/dist/chunk-XHIQ5I6N.js +918 -0
  473. package/dist/chunk-XLH7QY2R.js +378 -0
  474. package/dist/chunk-XWFAMUZQ.js +113 -0
  475. package/dist/chunk-Y4BB2KS2.js +294 -0
  476. package/dist/chunk-Y4BB2KS2.js.map +1 -0
  477. package/dist/chunk-Y4OBB2VN.js +84 -0
  478. package/dist/chunk-YCVD6CI3.js +234 -0
  479. package/dist/chunk-YENLNISG.js +270 -0
  480. package/dist/chunk-YIRVLKAX.js +351 -0
  481. package/dist/chunk-YL73CVNK.js +390 -0
  482. package/dist/chunk-YLS6QE5G.js +288 -0
  483. package/dist/chunk-YNF2OC54.js +366 -0
  484. package/dist/chunk-YNF2OC54.js.map +1 -0
  485. package/dist/chunk-YPWU5KPE.js +147 -0
  486. package/dist/chunk-YQXTDZSU.js +2984 -0
  487. package/dist/chunk-YSJEAAOL.js +178 -0
  488. package/dist/chunk-YWIFM7D7.js +499 -0
  489. package/dist/chunk-YWVI6ZMK.js +103 -0
  490. package/dist/chunk-Z4FMAFNH.js +847 -0
  491. package/dist/chunk-Z654FWNU.js +136 -0
  492. package/dist/chunk-Z7Y523PS.js +130 -0
  493. package/dist/chunk-ZD67RM6G.js +60 -0
  494. package/dist/chunk-ZEG4VPBL.js +187 -0
  495. package/dist/chunk-ZHDFQITM.js +283 -0
  496. package/dist/chunk-ZHDFQITM.js.map +1 -0
  497. package/dist/chunk-ZLYCOBHW.js +75 -0
  498. package/dist/chunk-ZNJ5MTXV.js +89 -0
  499. package/dist/chunk-ZSGY3H53.js +155 -0
  500. package/dist/chunk-ZTPXACWB.js +1788 -0
  501. package/dist/chunk-ZUA3JMI6.js +107 -0
  502. package/dist/chunk-ZYAZUPPV.js +559 -0
  503. package/dist/composer.js +8 -8
  504. package/dist/computer-viewer-TDDO25AV.js +21 -0
  505. package/dist/connect.js +12 -12
  506. package/dist/desktop-dictation.js +12 -10
  507. package/dist/desktop-dictation.js.map +1 -1
  508. package/dist/desktop.js +2 -2
  509. package/dist/editor.js +2 -2
  510. package/dist/embedded-new-voice-2G3VLPVQ.js +24 -0
  511. package/dist/embedded-voice-T5IWOWGD.js +24 -0
  512. package/dist/fleet-decision-row-WM64KXP3.js +361 -0
  513. package/dist/in-chat-connect-model.js +5 -5
  514. package/dist/index.js +51 -51
  515. package/dist/interaction.js +5 -5
  516. package/dist/machines.js +3 -3
  517. package/dist/meetings-recorder.js +1 -1
  518. package/dist/meetings.js +40 -32
  519. package/dist/meetings.js.map +1 -1
  520. package/dist/messages/en.d.ts +3 -0
  521. package/dist/messages.js +1 -1
  522. package/dist/model-policy-picker-menu-SMC6J6QN.js +22 -0
  523. package/dist/payment-page-card-G4U63KUV.js +223 -0
  524. package/dist/platform-activity-row-BUZGZAKZ.js +128 -0
  525. package/dist/queue-surface-implementation-4KUZ4PJV.js +908 -0
  526. package/dist/realtime.js +4 -4
  527. package/dist/recorder-host-WF2RRR56.js +69 -0
  528. package/dist/recorder-host-WF2RRR56.js.map +1 -0
  529. package/dist/recordings.js +3 -3
  530. package/dist/sandbox-files-ESDMOFSD.js +27 -0
  531. package/dist/session-app.js +211 -209
  532. package/dist/session-connect-cards-Q53KMMYY.js +25 -0
  533. package/dist/session-list-model.js +2 -2
  534. package/dist/session-realtime-CF3I35WJ.js +30 -0
  535. package/dist/session-realtime.js +2 -2
  536. package/dist/session-ui.js +33 -31
  537. package/dist/session.js +5 -5
  538. package/dist/sites.js +2 -2
  539. package/dist/terminal.js +2 -2
  540. package/dist/this-computer.js +3 -3
  541. package/dist/timeline-annotation-markers-CJK4RYZ4.js +157 -0
  542. package/dist/timeline-annotation-selection-67GF5H26.js +208 -0
  543. package/dist/timeline-annotations-dialog-ONJPQDJQ.js +283 -0
  544. package/dist/ui/access-list.js +11 -9
  545. package/dist/ui/access-list.js.map +1 -1
  546. package/dist/ui/api-error.d.ts +6 -3
  547. package/dist/ui/api-error.js +2 -1
  548. package/dist/ui/cadence-picker.js +6 -4
  549. package/dist/ui/choice-cards.js +5 -3
  550. package/dist/ui/confirm-dialog.js +2 -2
  551. package/dist/ui/copy-field.js +5 -3
  552. package/dist/ui/detail-page.js +2 -2
  553. package/dist/ui/detail-sheet.js +2 -2
  554. package/dist/ui/diff-view.js +4 -3
  555. package/dist/ui/disclosure.js +3 -3
  556. package/dist/ui/email-chips-input.js +5 -3
  557. package/dist/ui/error-message.js +2 -1
  558. package/dist/ui/error-reference.d.ts +15 -0
  559. package/dist/ui/error-text.d.ts +10 -0
  560. package/dist/ui/error-text.js +9 -0
  561. package/dist/ui/error-text.js.map +1 -0
  562. package/dist/ui/field.js +4 -2
  563. package/dist/ui/flush-form-page.js +8 -6
  564. package/dist/ui/form-dialog.js +7 -5
  565. package/dist/ui/list-row.js +3 -3
  566. package/dist/ui/load-failure.js +3 -2
  567. package/dist/ui/load-failure.js.map +1 -1
  568. package/dist/ui/notice.js +3 -1
  569. package/dist/ui/relative-time.js +2 -2
  570. package/dist/ui/revision-history.js +9 -7
  571. package/dist/ui/revision-history.js.map +1 -1
  572. package/dist/ui/role-select.js +10 -8
  573. package/dist/ui/segmented-control.js +4 -2
  574. package/dist/ui/select-menu.js +5 -3
  575. package/dist/ui/setting-row.js +3 -1
  576. package/dist/ui/switch.js +4 -2
  577. package/dist/ui/usage-meter.js +3 -3
  578. package/dist/ui/word-list-row.js +4 -2
  579. package/dist/usage.js +2 -2
  580. package/dist/workbench.js +4 -4
  581. package/package.json +5 -6
  582. package/src/app/app-state.tsx +126 -14
  583. package/src/app/components/artifacts/site-data.tsx +2 -2
  584. package/src/app/components/artifacts/site-settings.tsx +2 -2
  585. package/src/app/components/rail/session-list.tsx +7 -8
  586. package/src/app/components/rail/session-shell.tsx +3 -3
  587. package/src/app/components/repository-picker.tsx +8 -1
  588. package/src/app/components/session/model-context-inspector.tsx +2 -1
  589. package/src/app/components/session/session-admin-access.tsx +2 -2
  590. package/src/app/lib/actions/chat-operations.ts +4 -4
  591. package/src/app/lib/archive-session.test.tsx +265 -2
  592. package/src/app/lib/archive-session.tsx +175 -9
  593. package/src/app/lib/copy-link.ts +2 -2
  594. package/src/app/lib/inbox.tsx +2 -2
  595. package/src/app/lib/session-failure-toasts.ts +3 -2
  596. package/src/app/lib/toast.test.tsx +215 -0
  597. package/src/app/lib/toast.tsx +67 -2
  598. package/src/app/personal-github-reconnect.test.tsx +356 -0
  599. package/src/app/routes/artifacts.tsx +1 -2
  600. package/src/components/tool-action-review.tsx +14 -1
  601. package/src/meetings/delete-meeting-dialog.tsx +2 -1
  602. package/src/meetings/meeting-ask.tsx +2 -1
  603. package/src/meetings/meeting-detail-page.tsx +2 -1
  604. package/src/meetings/meeting-notes.tsx +2 -1
  605. package/src/meetings/meeting-settings.tsx +4 -1
  606. package/src/meetings/meeting-transcript.tsx +4 -1
  607. package/src/meetings/recorder-context.tsx +10 -0
  608. package/src/meetings/recorder-host.test.tsx +60 -2
  609. package/src/meetings/recorder-host.tsx +16 -3
  610. package/src/meetings/recorder-panel.tsx +2 -1
  611. package/src/meetings/recorder-workspace.test.tsx +26 -1
  612. package/src/messages/en.ts +6 -0
  613. package/src/ui/api-error.test.ts +29 -5
  614. package/src/ui/api-error.tsx +10 -4
  615. package/src/ui/error-message.tsx +8 -0
  616. package/src/ui/error-reference.test.ts +54 -0
  617. package/src/ui/error-reference.ts +51 -0
  618. package/src/ui/error-text.test.tsx +66 -0
  619. package/src/ui/error-text.tsx +49 -0
  620. package/src/ui/field.tsx +4 -1
  621. package/src/ui/notice.tsx +7 -2
  622. package/src/ui/setting-row.tsx +4 -1
  623. package/styles/app.css +12 -0
  624. package/styles/compiled.css +9 -0
  625. package/dist/browser-viewer-NOP5EAUO.js +0 -23
  626. package/dist/chat-interactive-block-G7O44JHR.js +0 -18
  627. package/dist/chunk-26RWVLRD.js +0 -135
  628. package/dist/chunk-2AHTY7OT.js +0 -247
  629. package/dist/chunk-2GDNWKSC.js +0 -3670
  630. package/dist/chunk-2JENKGCE.js +0 -339
  631. package/dist/chunk-2KYQC4T5.js +0 -155
  632. package/dist/chunk-2RREGDQH.js +0 -708
  633. package/dist/chunk-2T7DX6KR.js +0 -353
  634. package/dist/chunk-2VB2O4FQ.js +0 -920
  635. package/dist/chunk-2VTTKH23.js +0 -94
  636. package/dist/chunk-2XNG2KNT.js +0 -172
  637. package/dist/chunk-2YC6JQRO.js +0 -399
  638. package/dist/chunk-2ZVRJRXC.js +0 -27
  639. package/dist/chunk-35737UT4.js +0 -162
  640. package/dist/chunk-366XZ4PM.js +0 -41
  641. package/dist/chunk-36MIDGAH.js +0 -199
  642. package/dist/chunk-3FD76LXM.js +0 -212
  643. package/dist/chunk-3OVIXY4O.js +0 -213
  644. package/dist/chunk-3OVIXY4O.js.map +0 -1
  645. package/dist/chunk-3QNRBEYH.js +0 -432
  646. package/dist/chunk-3QX55WLC.js +0 -15
  647. package/dist/chunk-3USJPT2S.js +0 -1022
  648. package/dist/chunk-42CMQ5VR.js +0 -251
  649. package/dist/chunk-4LPOWQJY.js +0 -42
  650. package/dist/chunk-4NBTZRKT.js +0 -79
  651. package/dist/chunk-4OXI6HCV.js +0 -118
  652. package/dist/chunk-4SZZAFYQ.js +0 -2317
  653. package/dist/chunk-4TQL3WP2.js +0 -140
  654. package/dist/chunk-4Y6BK7IU.js +0 -196
  655. package/dist/chunk-4YD7YZC5.js +0 -373
  656. package/dist/chunk-5DTST3TP.js +0 -81
  657. package/dist/chunk-5FH5LQVS.js +0 -130
  658. package/dist/chunk-5KWMYPJV.js +0 -847
  659. package/dist/chunk-5MUJDC6C.js +0 -84
  660. package/dist/chunk-5QM2WPKV.js +0 -41
  661. package/dist/chunk-5WUN7XPD.js +0 -1184
  662. package/dist/chunk-64PO2WXU.js +0 -1067
  663. package/dist/chunk-6AHATAAY.js +0 -431
  664. package/dist/chunk-6ED2YWBT.js +0 -56
  665. package/dist/chunk-6GXVYAGR.js +0 -170
  666. package/dist/chunk-6H4SJBPE.js +0 -85
  667. package/dist/chunk-6MT3HHUB.js +0 -84
  668. package/dist/chunk-6UHCBH4G.js +0 -198
  669. package/dist/chunk-6WLX3NR3.js +0 -198
  670. package/dist/chunk-73NXYYWE.js +0 -112
  671. package/dist/chunk-76ERNKIZ.js +0 -603
  672. package/dist/chunk-776QZ573.js +0 -57
  673. package/dist/chunk-7BYWOFVH.js +0 -171
  674. package/dist/chunk-7O5CGGIQ.js +0 -108
  675. package/dist/chunk-7QOHRZ67.js +0 -251
  676. package/dist/chunk-7WIDB4PL.js +0 -2058
  677. package/dist/chunk-7WKP3DYJ.js +0 -37
  678. package/dist/chunk-7XOVTPDI.js +0 -227
  679. package/dist/chunk-AB5MBIXY.js +0 -281
  680. package/dist/chunk-ADNMXBCX.js +0 -1193
  681. package/dist/chunk-AFBJTUFK.js +0 -202
  682. package/dist/chunk-ALVRWCXE.js +0 -61
  683. package/dist/chunk-AOHU6O3M.js +0 -247
  684. package/dist/chunk-AOHU6O3M.js.map +0 -1
  685. package/dist/chunk-APW4T4SW.js +0 -270
  686. package/dist/chunk-AXBSYWKX.js +0 -2656
  687. package/dist/chunk-B2I5ZW35.js +0 -422
  688. package/dist/chunk-B3LMRTRF.js +0 -223
  689. package/dist/chunk-BE2XENG2.js +0 -292
  690. package/dist/chunk-BE2XENG2.js.map +0 -1
  691. package/dist/chunk-BF4SADKX.js +0 -29
  692. package/dist/chunk-BKP43KK4.js +0 -1788
  693. package/dist/chunk-BM3NEZ6X.js +0 -781
  694. package/dist/chunk-BT3BAGB5.js +0 -216
  695. package/dist/chunk-BTSYDIVJ.js +0 -357
  696. package/dist/chunk-BUBNGKWG.js +0 -70
  697. package/dist/chunk-BVUJV5WR.js +0 -126
  698. package/dist/chunk-BZO5ZMUP.js +0 -27
  699. package/dist/chunk-C3HUF3M2.js +0 -157
  700. package/dist/chunk-C5QCAOES.js +0 -264
  701. package/dist/chunk-CGK6ALQU.js +0 -159
  702. package/dist/chunk-CPYGO76Q.js +0 -335
  703. package/dist/chunk-CQH4FWYA.js +0 -490
  704. package/dist/chunk-CZP5QXNB.js +0 -234
  705. package/dist/chunk-D2TOWEYH.js +0 -266
  706. package/dist/chunk-D6L4GHRH.js +0 -340
  707. package/dist/chunk-DKT3N37I.js +0 -50
  708. package/dist/chunk-DMMJIFKA.js +0 -84
  709. package/dist/chunk-DO74DQC7.js +0 -26
  710. package/dist/chunk-DOFJZ2JU.js +0 -83
  711. package/dist/chunk-DSXVY5WZ.js +0 -119
  712. package/dist/chunk-E337C2VK.js +0 -82
  713. package/dist/chunk-E6NRSRBE.js +0 -114
  714. package/dist/chunk-E6SQKHAU.js +0 -114
  715. package/dist/chunk-E7UIVD7F.js +0 -236
  716. package/dist/chunk-EGBII4CP.js +0 -229
  717. package/dist/chunk-EILSAQVJ.js +0 -200
  718. package/dist/chunk-ELL6HSYR.js +0 -307
  719. package/dist/chunk-EUBGLFFR.js +0 -73
  720. package/dist/chunk-EW6RNWSH.js +0 -212
  721. package/dist/chunk-EYUT5Y6V.js +0 -2599
  722. package/dist/chunk-F7U3QPZ3.js +0 -304
  723. package/dist/chunk-FBTJKSTM.js +0 -1270
  724. package/dist/chunk-FC2FTSK3.js +0 -2424
  725. package/dist/chunk-FOGNA3BU.js +0 -148
  726. package/dist/chunk-FQFKHNC7.js +0 -650
  727. package/dist/chunk-FTCHM755.js +0 -50
  728. package/dist/chunk-FXSHP4JZ.js +0 -3550
  729. package/dist/chunk-G6ZZC543.js +0 -818
  730. package/dist/chunk-G7FU6PUA.js +0 -100
  731. package/dist/chunk-GA4YEAMX.js +0 -3851
  732. package/dist/chunk-GE33BGB7.js +0 -12
  733. package/dist/chunk-GQ67HSJY.js +0 -570
  734. package/dist/chunk-GXXZ3WAK.js +0 -106
  735. package/dist/chunk-H2TCRX3H.js +0 -237
  736. package/dist/chunk-HLL4PBO7.js +0 -60
  737. package/dist/chunk-HLOEPV5C.js +0 -259
  738. package/dist/chunk-HUAGBS4O.js +0 -56
  739. package/dist/chunk-I36GSRUJ.js +0 -211
  740. package/dist/chunk-I6VBHT7S.js +0 -261
  741. package/dist/chunk-ICNNNOXE.js +0 -333
  742. package/dist/chunk-ICX64J4U.js +0 -172
  743. package/dist/chunk-ID36Y46W.js +0 -5046
  744. package/dist/chunk-ID36Y46W.js.map +0 -1
  745. package/dist/chunk-IGVVXLKJ.js +0 -559
  746. package/dist/chunk-IKJLSBUI.js +0 -2984
  747. package/dist/chunk-IKMUFDVS.js +0 -50
  748. package/dist/chunk-IKUNOX7F.js +0 -255
  749. package/dist/chunk-ILKDYBON.js +0 -288
  750. package/dist/chunk-IVYJX3OY.js +0 -187
  751. package/dist/chunk-JCY4CMDH.js +0 -107
  752. package/dist/chunk-JJZPLGIP.js +0 -474
  753. package/dist/chunk-JW33RV4V.js +0 -143
  754. package/dist/chunk-JWPA6ZPZ.js +0 -351
  755. package/dist/chunk-JZ4QXS6D.js +0 -50
  756. package/dist/chunk-K42OUZQ3.js +0 -386
  757. package/dist/chunk-K5TOVX5A.js +0 -206
  758. package/dist/chunk-K63HGHZX.js +0 -99
  759. package/dist/chunk-K6R5T44I.js +0 -75
  760. package/dist/chunk-KHJ5PXFM.js +0 -914
  761. package/dist/chunk-KJZRQ55O.js +0 -2319
  762. package/dist/chunk-KJZRQ55O.js.map +0 -1
  763. package/dist/chunk-KKI55ZMW.js +0 -65
  764. package/dist/chunk-KRPLAAFP.js +0 -199
  765. package/dist/chunk-KVFEZDBO.js +0 -134
  766. package/dist/chunk-L4I665WK.js +0 -45
  767. package/dist/chunk-L4OF77LE.js +0 -110
  768. package/dist/chunk-L4OF77LE.js.map +0 -1
  769. package/dist/chunk-LA5T52RM.js +0 -70
  770. package/dist/chunk-LM2W5YAT.js +0 -401
  771. package/dist/chunk-LQ62ECE6.js +0 -390
  772. package/dist/chunk-LQDUHU3Y.js +0 -71
  773. package/dist/chunk-LRJIYTZW.js +0 -4157
  774. package/dist/chunk-LRJIYTZW.js.map +0 -1
  775. package/dist/chunk-LRN6GYAZ.js +0 -138
  776. package/dist/chunk-M4SDVTKJ.js +0 -790
  777. package/dist/chunk-MA6O7CM6.js +0 -99
  778. package/dist/chunk-MBIBB6GI.js +0 -197
  779. package/dist/chunk-MF3ZFB4H.js +0 -199
  780. package/dist/chunk-MJJGJMYJ.js +0 -98
  781. package/dist/chunk-MLJADQFI.js +0 -4824
  782. package/dist/chunk-MQG7RV3B.js +0 -62
  783. package/dist/chunk-MTTGSQA5.js +0 -186
  784. package/dist/chunk-MW7Y3T55.js +0 -525
  785. package/dist/chunk-MYUFMVCH.js +0 -121
  786. package/dist/chunk-N3OARGH2.js +0 -61
  787. package/dist/chunk-NB2HMRT2.js +0 -353
  788. package/dist/chunk-NFDFYWMV.js +0 -141
  789. package/dist/chunk-NWGNFN3N.js +0 -1187
  790. package/dist/chunk-NWJRPDIO.js +0 -840
  791. package/dist/chunk-NWJRPDIO.js.map +0 -1
  792. package/dist/chunk-NXWBBZJV.js +0 -267
  793. package/dist/chunk-NY2QWROL.js +0 -71
  794. package/dist/chunk-O2IOPP3R.js +0 -848
  795. package/dist/chunk-O2UWH5RG.js +0 -141
  796. package/dist/chunk-O5YWDLYF.js +0 -393
  797. package/dist/chunk-OBMCZO7E.js +0 -121
  798. package/dist/chunk-OD3DCCCB.js +0 -132
  799. package/dist/chunk-OMH7R6I3.js +0 -390
  800. package/dist/chunk-OSA5EQG5.js +0 -113
  801. package/dist/chunk-OSJ3MUTZ.js +0 -2936
  802. package/dist/chunk-OWAYJ2OV.js +0 -368
  803. package/dist/chunk-OYXBFSGK.js +0 -269
  804. package/dist/chunk-PC2EBA5G.js +0 -4116
  805. package/dist/chunk-PC2EBA5G.js.map +0 -1
  806. package/dist/chunk-PC2MVXIP.js +0 -363
  807. package/dist/chunk-PC2MVXIP.js.map +0 -1
  808. package/dist/chunk-PENGLDR5.js +0 -309
  809. package/dist/chunk-PSMAWRPL.js +0 -191
  810. package/dist/chunk-PW4IMTYR.js +0 -702
  811. package/dist/chunk-PW54V7T5.js +0 -387
  812. package/dist/chunk-Q2EXYSMO.js +0 -24
  813. package/dist/chunk-Q2XJK5I4.js +0 -51
  814. package/dist/chunk-Q2XJK5I4.js.map +0 -1
  815. package/dist/chunk-Q4EFRI6X.js +0 -258
  816. package/dist/chunk-Q52CXW6C.js +0 -48
  817. package/dist/chunk-Q6XQ2R37.js +0 -184
  818. package/dist/chunk-QAJ53XBW.js +0 -23
  819. package/dist/chunk-QDTKECT4.js +0 -129
  820. package/dist/chunk-QE3ZFGI3.js +0 -43
  821. package/dist/chunk-QHHSUR2Y.js +0 -298
  822. package/dist/chunk-QHNVNR7B.js +0 -173
  823. package/dist/chunk-QIK2Q6N5.js +0 -376
  824. package/dist/chunk-QWL4L366.js +0 -38
  825. package/dist/chunk-R3J2PTVQ.js +0 -690
  826. package/dist/chunk-RBRX5ZS3.js +0 -319
  827. package/dist/chunk-REX6JIC7.js +0 -33
  828. package/dist/chunk-RGZ7EEC3.js +0 -537
  829. package/dist/chunk-RGZ7EEC3.js.map +0 -1
  830. package/dist/chunk-RIPS7GFR.js +0 -960
  831. package/dist/chunk-RTBZNFNV.js +0 -1354
  832. package/dist/chunk-RTBZNFNV.js.map +0 -1
  833. package/dist/chunk-SKMNW4SW.js +0 -187
  834. package/dist/chunk-SRFARKXC.js +0 -623
  835. package/dist/chunk-SWIHWCTW.js +0 -4461
  836. package/dist/chunk-TA5CFTO4.js +0 -103
  837. package/dist/chunk-TF4ZVJLI.js +0 -156
  838. package/dist/chunk-TG7DADJR.js +0 -9624
  839. package/dist/chunk-TI4R2ZD5.js +0 -623
  840. package/dist/chunk-TI4R2ZD5.js.map +0 -1
  841. package/dist/chunk-TNKWOUWP.js +0 -412
  842. package/dist/chunk-TNUSPXPW.js +0 -5555
  843. package/dist/chunk-TNUSPXPW.js.map +0 -1
  844. package/dist/chunk-TNYFHKVV.js +0 -366
  845. package/dist/chunk-TPMZBOFH.js +0 -178
  846. package/dist/chunk-TW3LKRJF.js +0 -263
  847. package/dist/chunk-TZAO65I4.js +0 -83
  848. package/dist/chunk-U5EFEMYU.js +0 -89
  849. package/dist/chunk-U6M4LS3M.js +0 -378
  850. package/dist/chunk-UI4HI5QK.js +0 -918
  851. package/dist/chunk-UJDOWCQ3.js +0 -272
  852. package/dist/chunk-UJUQ2QOX.js +0 -581
  853. package/dist/chunk-UQ3IM6FY.js +0 -133
  854. package/dist/chunk-UYE47LO6.js +0 -246
  855. package/dist/chunk-VADHIT26.js +0 -89
  856. package/dist/chunk-VFQ3H6CO.js +0 -163
  857. package/dist/chunk-VGUN6VB2.js +0 -188
  858. package/dist/chunk-VGWWEVSD.js +0 -723
  859. package/dist/chunk-VIEFJ2DM.js +0 -2469
  860. package/dist/chunk-VLXM36VS.js +0 -268
  861. package/dist/chunk-W3BFRR2G.js +0 -499
  862. package/dist/chunk-W5MPXR3A.js +0 -981
  863. package/dist/chunk-W5OWKVZG.js +0 -136
  864. package/dist/chunk-W6FRORMX.js +0 -486
  865. package/dist/chunk-W6FRORMX.js.map +0 -1
  866. package/dist/chunk-W7XROSZO.js +0 -232
  867. package/dist/chunk-W7XROSZO.js.map +0 -1
  868. package/dist/chunk-WEZ5PXZP.js +0 -403
  869. package/dist/chunk-WHWUWN2X.js +0 -197
  870. package/dist/chunk-WHWUWN2X.js.map +0 -1
  871. package/dist/chunk-WLEDGIVS.js +0 -114
  872. package/dist/chunk-WLEDGIVS.js.map +0 -1
  873. package/dist/chunk-WNDAKLHG.js +0 -281
  874. package/dist/chunk-WTJ4PLMU.js +0 -103
  875. package/dist/chunk-WV2KPJUW.js +0 -107
  876. package/dist/chunk-X3VY5EGY.js +0 -277
  877. package/dist/chunk-X3VY5EGY.js.map +0 -1
  878. package/dist/chunk-XDBYWVCW.js +0 -418
  879. package/dist/chunk-XF7MA4U5.js +0 -36
  880. package/dist/chunk-XF7MA4U5.js.map +0 -1
  881. package/dist/chunk-XOSQP3YA.js +0 -605
  882. package/dist/chunk-XYBV4ZJQ.js +0 -271
  883. package/dist/chunk-YBKVGLQR.js +0 -147
  884. package/dist/chunk-YDCUBUWH.js +0 -1583
  885. package/dist/chunk-YG6NARQY.js +0 -51
  886. package/dist/chunk-YG6NARQY.js.map +0 -1
  887. package/dist/chunk-YSVD5HI4.js +0 -278
  888. package/dist/chunk-YT3WGNG6.js +0 -290
  889. package/dist/chunk-YYICQDK4.js +0 -414
  890. package/dist/chunk-YYLMZLI6.js +0 -686
  891. package/dist/chunk-ZAMTKG5U.js +0 -95
  892. package/dist/chunk-ZDLYSXKN.js +0 -111
  893. package/dist/chunk-ZG447FSS.js +0 -194
  894. package/dist/chunk-ZIT5KD4Q.js +0 -264
  895. package/dist/chunk-ZUDOVDKR.js +0 -3064
  896. package/dist/chunk-ZW2ECJ3A.js +0 -451
  897. package/dist/computer-viewer-LPZ763KF.js +0 -21
  898. package/dist/embedded-new-voice-YVMKSLKJ.js +0 -24
  899. package/dist/embedded-voice-BJPQFXSU.js +0 -24
  900. package/dist/fleet-decision-row-AA4H5CDT.js +0 -361
  901. package/dist/model-policy-picker-menu-HSMWVO4P.js +0 -22
  902. package/dist/payment-page-card-3LTSFJGN.js +0 -223
  903. package/dist/platform-activity-row-5VYV6TX4.js +0 -128
  904. package/dist/queue-surface-implementation-NXHZUKD2.js +0 -908
  905. package/dist/recorder-host-ZKRWTDBM.js +0 -57
  906. package/dist/recorder-host-ZKRWTDBM.js.map +0 -1
  907. package/dist/sandbox-files-YCMLQUFU.js +0 -27
  908. package/dist/session-connect-cards-KSQLMRM5.js +0 -25
  909. package/dist/session-realtime-ZR6JLG3Y.js +0 -30
  910. package/dist/timeline-annotation-markers-YAHDPWVG.js +0 -157
  911. package/dist/timeline-annotation-selection-KHXNCEJP.js +0 -208
  912. package/dist/timeline-annotations-dialog-Y4XD3N7B.js +0 -283
  913. /package/dist/{browser-viewer-NOP5EAUO.js.map → browser-viewer-TC27OCIP.js.map} +0 -0
  914. /package/dist/{chat-interactive-block-G7O44JHR.js.map → chat-interactive-block-RWPQBHVS.js.map} +0 -0
  915. /package/dist/{chunk-EGBII4CP.js.map → chunk-2BDT3UZQ.js.map} +0 -0
  916. /package/dist/{chunk-4YD7YZC5.js.map → chunk-2CLNIEK4.js.map} +0 -0
  917. /package/dist/{chunk-ZW2ECJ3A.js.map → chunk-2FSBSCZJ.js.map} +0 -0
  918. /package/dist/{chunk-KRPLAAFP.js.map → chunk-2I7HDP53.js.map} +0 -0
  919. /package/dist/{chunk-3QX55WLC.js.map → chunk-2INLDVK3.js.map} +0 -0
  920. /package/dist/{chunk-BVUJV5WR.js.map → chunk-2KALVELR.js.map} +0 -0
  921. /package/dist/{chunk-XDBYWVCW.js.map → chunk-2M3J7ZWQ.js.map} +0 -0
  922. /package/dist/{chunk-2RREGDQH.js.map → chunk-2OP6WLGV.js.map} +0 -0
  923. /package/dist/{chunk-OSJ3MUTZ.js.map → chunk-2RG7NIAS.js.map} +0 -0
  924. /package/dist/{chunk-26RWVLRD.js.map → chunk-2STUPWEL.js.map} +0 -0
  925. /package/dist/{chunk-XYBV4ZJQ.js.map → chunk-2YUOVM3G.js.map} +0 -0
  926. /package/dist/{chunk-2GDNWKSC.js.map → chunk-2Z3NQNTM.js.map} +0 -0
  927. /package/dist/{chunk-2VB2O4FQ.js.map → chunk-3CPWWGNK.js.map} +0 -0
  928. /package/dist/{chunk-7WKP3DYJ.js.map → chunk-3ED2U6XE.js.map} +0 -0
  929. /package/dist/{chunk-BT3BAGB5.js.map → chunk-3GZA4BUW.js.map} +0 -0
  930. /package/dist/{chunk-3USJPT2S.js.map → chunk-3IK6UYO6.js.map} +0 -0
  931. /package/dist/{chunk-6AHATAAY.js.map → chunk-3PZ7JZI2.js.map} +0 -0
  932. /package/dist/{chunk-JZ4QXS6D.js.map → chunk-4DVJ6ONS.js.map} +0 -0
  933. /package/dist/{chunk-5QM2WPKV.js.map → chunk-4E3ZJRTZ.js.map} +0 -0
  934. /package/dist/{chunk-NFDFYWMV.js.map → chunk-4SAWSRAA.js.map} +0 -0
  935. /package/dist/{chunk-ELL6HSYR.js.map → chunk-53AGXXZM.js.map} +0 -0
  936. /package/dist/{chunk-G6ZZC543.js.map → chunk-54YW6SZZ.js.map} +0 -0
  937. /package/dist/{chunk-4SZZAFYQ.js.map → chunk-57AZS3IE.js.map} +0 -0
  938. /package/dist/{chunk-JW33RV4V.js.map → chunk-5CPEEAFD.js.map} +0 -0
  939. /package/dist/{chunk-D6L4GHRH.js.map → chunk-5EWSRZ2Y.js.map} +0 -0
  940. /package/dist/{chunk-PW54V7T5.js.map → chunk-5IE76VCY.js.map} +0 -0
  941. /package/dist/{chunk-6GXVYAGR.js.map → chunk-5NWEKLDZ.js.map} +0 -0
  942. /package/dist/{chunk-6UHCBH4G.js.map → chunk-5O2FCCHZ.js.map} +0 -0
  943. /package/dist/{chunk-2YC6JQRO.js.map → chunk-5QAY6K77.js.map} +0 -0
  944. /package/dist/{chunk-EYUT5Y6V.js.map → chunk-6DK6Z4UN.js.map} +0 -0
  945. /package/dist/{chunk-PW4IMTYR.js.map → chunk-6DVCC7QS.js.map} +0 -0
  946. /package/dist/{chunk-7WIDB4PL.js.map → chunk-6JHU2UBS.js.map} +0 -0
  947. /package/dist/{chunk-CQH4FWYA.js.map → chunk-6PZ7OBYU.js.map} +0 -0
  948. /package/dist/{chunk-VFQ3H6CO.js.map → chunk-6WGRDRMA.js.map} +0 -0
  949. /package/dist/{chunk-MTTGSQA5.js.map → chunk-77WAKEAH.js.map} +0 -0
  950. /package/dist/{chunk-O5YWDLYF.js.map → chunk-7TDO3CUM.js.map} +0 -0
  951. /package/dist/{chunk-2AHTY7OT.js.map → chunk-7TIX2UAR.js.map} +0 -0
  952. /package/dist/{chunk-FOGNA3BU.js.map → chunk-7V5REBCP.js.map} +0 -0
  953. /package/dist/{chunk-2JENKGCE.js.map → chunk-7VMZGLYI.js.map} +0 -0
  954. /package/dist/{chunk-E7UIVD7F.js.map → chunk-7W37NS3I.js.map} +0 -0
  955. /package/dist/{chunk-ZDLYSXKN.js.map → chunk-7X6SDK2C.js.map} +0 -0
  956. /package/dist/{chunk-ZAMTKG5U.js.map → chunk-7ZNUHRP5.js.map} +0 -0
  957. /package/dist/{chunk-DMMJIFKA.js.map → chunk-A36PZALD.js.map} +0 -0
  958. /package/dist/{chunk-WV2KPJUW.js.map → chunk-AUI6VA63.js.map} +0 -0
  959. /package/dist/{chunk-Q2EXYSMO.js.map → chunk-AW2MQB37.js.map} +0 -0
  960. /package/dist/{chunk-6WLX3NR3.js.map → chunk-AWKES45Y.js.map} +0 -0
  961. /package/dist/{chunk-OD3DCCCB.js.map → chunk-AXHZYXUV.js.map} +0 -0
  962. /package/dist/{chunk-QDTKECT4.js.map → chunk-BHNSJVBC.js.map} +0 -0
  963. /package/dist/{chunk-FTCHM755.js.map → chunk-BJEJFISW.js.map} +0 -0
  964. /package/dist/{chunk-B2I5ZW35.js.map → chunk-BJFH6JI5.js.map} +0 -0
  965. /package/dist/{chunk-RIPS7GFR.js.map → chunk-BMICEQZQ.js.map} +0 -0
  966. /package/dist/{chunk-BF4SADKX.js.map → chunk-BTLBYBLU.js.map} +0 -0
  967. /package/dist/{chunk-U5EFEMYU.js.map → chunk-BXBDYNRP.js.map} +0 -0
  968. /package/dist/{chunk-BTSYDIVJ.js.map → chunk-C372BFOV.js.map} +0 -0
  969. /package/dist/{chunk-MLJADQFI.js.map → chunk-CMKGILJK.js.map} +0 -0
  970. /package/dist/{chunk-DKT3N37I.js.map → chunk-CRAOSVHC.js.map} +0 -0
  971. /package/dist/{chunk-WNDAKLHG.js.map → chunk-CRU35QQH.js.map} +0 -0
  972. /package/dist/{chunk-2XNG2KNT.js.map → chunk-CUIWCGMA.js.map} +0 -0
  973. /package/dist/{chunk-QWL4L366.js.map → chunk-D5TWNFFE.js.map} +0 -0
  974. /package/dist/{chunk-SWIHWCTW.js.map → chunk-DF5EAHDN.js.map} +0 -0
  975. /package/dist/{chunk-HUAGBS4O.js.map → chunk-DJAXC5OK.js.map} +0 -0
  976. /package/dist/{chunk-FXSHP4JZ.js.map → chunk-DXBYWSL5.js.map} +0 -0
  977. /package/dist/{chunk-5MUJDC6C.js.map → chunk-DXR5PDFP.js.map} +0 -0
  978. /package/dist/{chunk-NXWBBZJV.js.map → chunk-DZWARC4M.js.map} +0 -0
  979. /package/dist/{chunk-GXXZ3WAK.js.map → chunk-DZXEDSQI.js.map} +0 -0
  980. /package/dist/{chunk-Q52CXW6C.js.map → chunk-E7XERZWC.js.map} +0 -0
  981. /package/dist/{chunk-4NBTZRKT.js.map → chunk-ECJBYNLJ.js.map} +0 -0
  982. /package/dist/{chunk-QE3ZFGI3.js.map → chunk-EDI6SJ2N.js.map} +0 -0
  983. /package/dist/{chunk-E6NRSRBE.js.map → chunk-EWSOC6WF.js.map} +0 -0
  984. /package/dist/{chunk-TA5CFTO4.js.map → chunk-F2OPHAUN.js.map} +0 -0
  985. /package/dist/{chunk-5DTST3TP.js.map → chunk-F4ISQGGM.js.map} +0 -0
  986. /package/dist/{chunk-MBIBB6GI.js.map → chunk-FO4LYKJL.js.map} +0 -0
  987. /package/dist/{chunk-EUBGLFFR.js.map → chunk-FPXASDG5.js.map} +0 -0
  988. /package/dist/{chunk-C3HUF3M2.js.map → chunk-FVXBNBHO.js.map} +0 -0
  989. /package/dist/{chunk-W5MPXR3A.js.map → chunk-FZC5N55X.js.map} +0 -0
  990. /package/dist/{chunk-MA6O7CM6.js.map → chunk-GAVYGBFI.js.map} +0 -0
  991. /package/dist/{chunk-REX6JIC7.js.map → chunk-GKVJIDHF.js.map} +0 -0
  992. /package/dist/{chunk-EW6RNWSH.js.map → chunk-GVN5SZLX.js.map} +0 -0
  993. /package/dist/{chunk-KVFEZDBO.js.map → chunk-H3T7IWNA.js.map} +0 -0
  994. /package/dist/{chunk-I6VBHT7S.js.map → chunk-HAX4LCR5.js.map} +0 -0
  995. /package/dist/{chunk-OBMCZO7E.js.map → chunk-HC4JFZVU.js.map} +0 -0
  996. /package/dist/{chunk-UJUQ2QOX.js.map → chunk-HEFPPMBQ.js.map} +0 -0
  997. /package/dist/{chunk-DOFJZ2JU.js.map → chunk-HNLR7Q4Z.js.map} +0 -0
  998. /package/dist/{chunk-GE33BGB7.js.map → chunk-HSOXMJOT.js.map} +0 -0
  999. /package/dist/{chunk-AB5MBIXY.js.map → chunk-I4MRDSUF.js.map} +0 -0
  1000. /package/dist/{chunk-AFBJTUFK.js.map → chunk-I4QEJ62Y.js.map} +0 -0
  1001. /package/dist/{chunk-6ED2YWBT.js.map → chunk-I5B5L6Q4.js.map} +0 -0
  1002. /package/dist/{chunk-C5QCAOES.js.map → chunk-I5QZJODL.js.map} +0 -0
  1003. /package/dist/{chunk-76ERNKIZ.js.map → chunk-I7ITSXSJ.js.map} +0 -0
  1004. /package/dist/{chunk-OMH7R6I3.js.map → chunk-I7XIZRFD.js.map} +0 -0
  1005. /package/dist/{chunk-E337C2VK.js.map → chunk-IDANQPRH.js.map} +0 -0
  1006. /package/dist/{chunk-3FD76LXM.js.map → chunk-IFB3WJ36.js.map} +0 -0
  1007. /package/dist/{chunk-ZIT5KD4Q.js.map → chunk-IHTAKKTK.js.map} +0 -0
  1008. /package/dist/{chunk-QHNVNR7B.js.map → chunk-ILDXWY37.js.map} +0 -0
  1009. /package/dist/{chunk-GQ67HSJY.js.map → chunk-IMDQUHBJ.js.map} +0 -0
  1010. /package/dist/{chunk-DSXVY5WZ.js.map → chunk-IMZCQBOT.js.map} +0 -0
  1011. /package/dist/{chunk-WEZ5PXZP.js.map → chunk-IXPTECSC.js.map} +0 -0
  1012. /package/dist/{chunk-NY2QWROL.js.map → chunk-J255A3N5.js.map} +0 -0
  1013. /package/dist/{chunk-O2UWH5RG.js.map → chunk-J5F5HPPW.js.map} +0 -0
  1014. /package/dist/{chunk-VIEFJ2DM.js.map → chunk-JEA3QDX7.js.map} +0 -0
  1015. /package/dist/{chunk-TF4ZVJLI.js.map → chunk-JEUPAVYY.js.map} +0 -0
  1016. /package/dist/{chunk-ZG447FSS.js.map → chunk-JKHKLL5W.js.map} +0 -0
  1017. /package/dist/{chunk-FQFKHNC7.js.map → chunk-JQL7ZH6C.js.map} +0 -0
  1018. /package/dist/{chunk-776QZ573.js.map → chunk-JWB44UGJ.js.map} +0 -0
  1019. /package/dist/{chunk-ICNNNOXE.js.map → chunk-JZ4NLCAP.js.map} +0 -0
  1020. /package/dist/{chunk-TNKWOUWP.js.map → chunk-K2A5PXQ5.js.map} +0 -0
  1021. /package/dist/{chunk-SRFARKXC.js.map → chunk-K56XV3C3.js.map} +0 -0
  1022. /package/dist/{chunk-QAJ53XBW.js.map → chunk-K6GAXXVA.js.map} +0 -0
  1023. /package/dist/{chunk-MF3ZFB4H.js.map → chunk-KCBMFSMS.js.map} +0 -0
  1024. /package/dist/{chunk-VLXM36VS.js.map → chunk-KF2FV3ZJ.js.map} +0 -0
  1025. /package/dist/{chunk-YSVD5HI4.js.map → chunk-KJD65EJP.js.map} +0 -0
  1026. /package/dist/{chunk-K42OUZQ3.js.map → chunk-KLEUWIMZ.js.map} +0 -0
  1027. /package/dist/{chunk-PENGLDR5.js.map → chunk-KODELWYT.js.map} +0 -0
  1028. /package/dist/{chunk-TZAO65I4.js.map → chunk-KRDR5RJD.js.map} +0 -0
  1029. /package/dist/{chunk-KHJ5PXFM.js.map → chunk-KUDGXAF7.js.map} +0 -0
  1030. /package/dist/{chunk-6H4SJBPE.js.map → chunk-KYS77RPN.js.map} +0 -0
  1031. /package/dist/{chunk-OWAYJ2OV.js.map → chunk-L7YTNTIK.js.map} +0 -0
  1032. /package/dist/{chunk-YYLMZLI6.js.map → chunk-LHPNABDH.js.map} +0 -0
  1033. /package/dist/{chunk-LM2W5YAT.js.map → chunk-MFROMEKA.js.map} +0 -0
  1034. /package/dist/{chunk-AXBSYWKX.js.map → chunk-MIHN76LX.js.map} +0 -0
  1035. /package/dist/{chunk-4LPOWQJY.js.map → chunk-MIYFS2XN.js.map} +0 -0
  1036. /package/dist/{chunk-KKI55ZMW.js.map → chunk-MJUCFQMS.js.map} +0 -0
  1037. /package/dist/{chunk-ZUDOVDKR.js.map → chunk-MM4FNWI4.js.map} +0 -0
  1038. /package/dist/{chunk-M4SDVTKJ.js.map → chunk-MNZG4OHU.js.map} +0 -0
  1039. /package/dist/{chunk-EILSAQVJ.js.map → chunk-N6AACDUW.js.map} +0 -0
  1040. /package/dist/{chunk-BM3NEZ6X.js.map → chunk-NC55IFN3.js.map} +0 -0
  1041. /package/dist/{chunk-MJJGJMYJ.js.map → chunk-NC7PVOEK.js.map} +0 -0
  1042. /package/dist/{chunk-LA5T52RM.js.map → chunk-NCYMNCJO.js.map} +0 -0
  1043. /package/dist/{chunk-HLOEPV5C.js.map → chunk-ND2BXV3P.js.map} +0 -0
  1044. /package/dist/{chunk-UJDOWCQ3.js.map → chunk-NDBTFUO6.js.map} +0 -0
  1045. /package/dist/{chunk-K5TOVX5A.js.map → chunk-NDQJZ7HF.js.map} +0 -0
  1046. /package/dist/{chunk-35737UT4.js.map → chunk-NGJJJPZZ.js.map} +0 -0
  1047. /package/dist/{chunk-42CMQ5VR.js.map → chunk-NJTSNNE7.js.map} +0 -0
  1048. /package/dist/{chunk-FBTJKSTM.js.map → chunk-NRTE7DNV.js.map} +0 -0
  1049. /package/dist/{chunk-YT3WGNG6.js.map → chunk-NULUNM7H.js.map} +0 -0
  1050. /package/dist/{chunk-7XOVTPDI.js.map → chunk-NUNZS36W.js.map} +0 -0
  1051. /package/dist/{chunk-FC2FTSK3.js.map → chunk-NW53H5RW.js.map} +0 -0
  1052. /package/dist/{chunk-TW3LKRJF.js.map → chunk-NXCMHIKI.js.map} +0 -0
  1053. /package/dist/{chunk-CGK6ALQU.js.map → chunk-O3LKCBP5.js.map} +0 -0
  1054. /package/dist/{chunk-QIK2Q6N5.js.map → chunk-O6N4ABCA.js.map} +0 -0
  1055. /package/dist/{chunk-73NXYYWE.js.map → chunk-O732GAFC.js.map} +0 -0
  1056. /package/dist/{chunk-R3J2PTVQ.js.map → chunk-OF4TIKYC.js.map} +0 -0
  1057. /package/dist/{chunk-BUBNGKWG.js.map → chunk-OMPVOMPP.js.map} +0 -0
  1058. /package/dist/{chunk-4OXI6HCV.js.map → chunk-OPJJSKUK.js.map} +0 -0
  1059. /package/dist/{chunk-4Y6BK7IU.js.map → chunk-OPWCMA4D.js.map} +0 -0
  1060. /package/dist/{chunk-ADNMXBCX.js.map → chunk-ORJPS5VN.js.map} +0 -0
  1061. /package/dist/{chunk-SKMNW4SW.js.map → chunk-OSY5K7L7.js.map} +0 -0
  1062. /package/dist/{chunk-L4I665WK.js.map → chunk-OV6QJRT4.js.map} +0 -0
  1063. /package/dist/{chunk-7O5CGGIQ.js.map → chunk-OVKYVZMW.js.map} +0 -0
  1064. /package/dist/{chunk-7BYWOFVH.js.map → chunk-OZCBM3UC.js.map} +0 -0
  1065. /package/dist/{chunk-ALVRWCXE.js.map → chunk-P3A2EINJ.js.map} +0 -0
  1066. /package/dist/{chunk-BZO5ZMUP.js.map → chunk-PTAG4PDC.js.map} +0 -0
  1067. /package/dist/{chunk-QHHSUR2Y.js.map → chunk-PTF5B7TJ.js.map} +0 -0
  1068. /package/dist/{chunk-O2IOPP3R.js.map → chunk-Q3DPEYX4.js.map} +0 -0
  1069. /package/dist/{chunk-G7FU6PUA.js.map → chunk-QB2KMIDP.js.map} +0 -0
  1070. /package/dist/{chunk-64PO2WXU.js.map → chunk-QCSJ4CWE.js.map} +0 -0
  1071. /package/dist/{chunk-YYICQDK4.js.map → chunk-QIOQ2NPQ.js.map} +0 -0
  1072. /package/dist/{chunk-NB2HMRT2.js.map → chunk-QK5EFEUT.js.map} +0 -0
  1073. /package/dist/{chunk-366XZ4PM.js.map → chunk-QPQBLYQJ.js.map} +0 -0
  1074. /package/dist/{chunk-Q6XQ2R37.js.map → chunk-QPSGCC5D.js.map} +0 -0
  1075. /package/dist/{chunk-JJZPLGIP.js.map → chunk-QZAAUQRN.js.map} +0 -0
  1076. /package/dist/{chunk-VGUN6VB2.js.map → chunk-RGBI63KJ.js.map} +0 -0
  1077. /package/dist/{chunk-LRN6GYAZ.js.map → chunk-RLBKLAEY.js.map} +0 -0
  1078. /package/dist/{chunk-F7U3QPZ3.js.map → chunk-RMFKVOM7.js.map} +0 -0
  1079. /package/dist/{chunk-Q4EFRI6X.js.map → chunk-ROKQU7WG.js.map} +0 -0
  1080. /package/dist/{chunk-7QOHRZ67.js.map → chunk-RPVREAU7.js.map} +0 -0
  1081. /package/dist/{chunk-VGWWEVSD.js.map → chunk-RQKLF42C.js.map} +0 -0
  1082. /package/dist/{chunk-2VTTKH23.js.map → chunk-SEO7TICN.js.map} +0 -0
  1083. /package/dist/{chunk-3QNRBEYH.js.map → chunk-SHHJCL7X.js.map} +0 -0
  1084. /package/dist/{chunk-E6SQKHAU.js.map → chunk-SIRLACNZ.js.map} +0 -0
  1085. /package/dist/{chunk-H2TCRX3H.js.map → chunk-SKPHMYAA.js.map} +0 -0
  1086. /package/dist/{chunk-YDCUBUWH.js.map → chunk-SODC7T6L.js.map} +0 -0
  1087. /package/dist/{chunk-TNYFHKVV.js.map → chunk-SQJIKMN3.js.map} +0 -0
  1088. /package/dist/{chunk-DO74DQC7.js.map → chunk-SVINDKVW.js.map} +0 -0
  1089. /package/dist/{chunk-CPYGO76Q.js.map → chunk-SYCDHPZF.js.map} +0 -0
  1090. /package/dist/{chunk-UQ3IM6FY.js.map → chunk-T2QX3FDP.js.map} +0 -0
  1091. /package/dist/{chunk-NWGNFN3N.js.map → chunk-T3OWFVMS.js.map} +0 -0
  1092. /package/dist/{chunk-N3OARGH2.js.map → chunk-T6XI5FLY.js.map} +0 -0
  1093. /package/dist/{chunk-MQG7RV3B.js.map → chunk-T7OXJZCX.js.map} +0 -0
  1094. /package/dist/{chunk-2T7DX6KR.js.map → chunk-TAT5USZN.js.map} +0 -0
  1095. /package/dist/{chunk-ICX64J4U.js.map → chunk-TPQTRNER.js.map} +0 -0
  1096. /package/dist/{chunk-D2TOWEYH.js.map → chunk-TUIN4MB7.js.map} +0 -0
  1097. /package/dist/{chunk-LQDUHU3Y.js.map → chunk-TX3VECZU.js.map} +0 -0
  1098. /package/dist/{chunk-TG7DADJR.js.map → chunk-TXLIEOJX.js.map} +0 -0
  1099. /package/dist/{chunk-2ZVRJRXC.js.map → chunk-U3DN4HEY.js.map} +0 -0
  1100. /package/dist/{chunk-PSMAWRPL.js.map → chunk-U7XM7CB4.js.map} +0 -0
  1101. /package/dist/{chunk-4TQL3WP2.js.map → chunk-UJK53QFL.js.map} +0 -0
  1102. /package/dist/{chunk-RBRX5ZS3.js.map → chunk-UMTXA2TH.js.map} +0 -0
  1103. /package/dist/{chunk-36MIDGAH.js.map → chunk-UPDSXFK5.js.map} +0 -0
  1104. /package/dist/{chunk-OYXBFSGK.js.map → chunk-UTIAXH52.js.map} +0 -0
  1105. /package/dist/{chunk-5WUN7XPD.js.map → chunk-UVN5TMHU.js.map} +0 -0
  1106. /package/dist/{chunk-UYE47LO6.js.map → chunk-VGYXW3VG.js.map} +0 -0
  1107. /package/dist/{chunk-IKUNOX7F.js.map → chunk-VS7AHPCZ.js.map} +0 -0
  1108. /package/dist/{chunk-MYUFMVCH.js.map → chunk-VTTAJOQ7.js.map} +0 -0
  1109. /package/dist/{chunk-K63HGHZX.js.map → chunk-VWPOLUAO.js.map} +0 -0
  1110. /package/dist/{chunk-GA4YEAMX.js.map → chunk-X3MWB2QU.js.map} +0 -0
  1111. /package/dist/{chunk-I36GSRUJ.js.map → chunk-X6KAJI3V.js.map} +0 -0
  1112. /package/dist/{chunk-IKMUFDVS.js.map → chunk-XBLRHV5R.js.map} +0 -0
  1113. /package/dist/{chunk-XOSQP3YA.js.map → chunk-XDFP2LMW.js.map} +0 -0
  1114. /package/dist/{chunk-MW7Y3T55.js.map → chunk-XEQMZB3C.js.map} +0 -0
  1115. /package/dist/{chunk-B3LMRTRF.js.map → chunk-XEYLT5VA.js.map} +0 -0
  1116. /package/dist/{chunk-UI4HI5QK.js.map → chunk-XHIQ5I6N.js.map} +0 -0
  1117. /package/dist/{chunk-U6M4LS3M.js.map → chunk-XLH7QY2R.js.map} +0 -0
  1118. /package/dist/{chunk-OSA5EQG5.js.map → chunk-XWFAMUZQ.js.map} +0 -0
  1119. /package/dist/{chunk-6MT3HHUB.js.map → chunk-Y4OBB2VN.js.map} +0 -0
  1120. /package/dist/{chunk-CZP5QXNB.js.map → chunk-YCVD6CI3.js.map} +0 -0
  1121. /package/dist/{chunk-APW4T4SW.js.map → chunk-YENLNISG.js.map} +0 -0
  1122. /package/dist/{chunk-JWPA6ZPZ.js.map → chunk-YIRVLKAX.js.map} +0 -0
  1123. /package/dist/{chunk-LQ62ECE6.js.map → chunk-YL73CVNK.js.map} +0 -0
  1124. /package/dist/{chunk-ILKDYBON.js.map → chunk-YLS6QE5G.js.map} +0 -0
  1125. /package/dist/{chunk-YBKVGLQR.js.map → chunk-YPWU5KPE.js.map} +0 -0
  1126. /package/dist/{chunk-IKJLSBUI.js.map → chunk-YQXTDZSU.js.map} +0 -0
  1127. /package/dist/{chunk-TPMZBOFH.js.map → chunk-YSJEAAOL.js.map} +0 -0
  1128. /package/dist/{chunk-W3BFRR2G.js.map → chunk-YWIFM7D7.js.map} +0 -0
  1129. /package/dist/{chunk-WTJ4PLMU.js.map → chunk-YWVI6ZMK.js.map} +0 -0
  1130. /package/dist/{chunk-5KWMYPJV.js.map → chunk-Z4FMAFNH.js.map} +0 -0
  1131. /package/dist/{chunk-W5OWKVZG.js.map → chunk-Z654FWNU.js.map} +0 -0
  1132. /package/dist/{chunk-5FH5LQVS.js.map → chunk-Z7Y523PS.js.map} +0 -0
  1133. /package/dist/{chunk-HLL4PBO7.js.map → chunk-ZD67RM6G.js.map} +0 -0
  1134. /package/dist/{chunk-IVYJX3OY.js.map → chunk-ZEG4VPBL.js.map} +0 -0
  1135. /package/dist/{chunk-K6R5T44I.js.map → chunk-ZLYCOBHW.js.map} +0 -0
  1136. /package/dist/{chunk-VADHIT26.js.map → chunk-ZNJ5MTXV.js.map} +0 -0
  1137. /package/dist/{chunk-2KYQC4T5.js.map → chunk-ZSGY3H53.js.map} +0 -0
  1138. /package/dist/{chunk-BKP43KK4.js.map → chunk-ZTPXACWB.js.map} +0 -0
  1139. /package/dist/{chunk-JCY4CMDH.js.map → chunk-ZUA3JMI6.js.map} +0 -0
  1140. /package/dist/{chunk-IGVVXLKJ.js.map → chunk-ZYAZUPPV.js.map} +0 -0
  1141. /package/dist/{computer-viewer-LPZ763KF.js.map → computer-viewer-TDDO25AV.js.map} +0 -0
  1142. /package/dist/{embedded-new-voice-YVMKSLKJ.js.map → embedded-new-voice-2G3VLPVQ.js.map} +0 -0
  1143. /package/dist/{embedded-voice-BJPQFXSU.js.map → embedded-voice-T5IWOWGD.js.map} +0 -0
  1144. /package/dist/{fleet-decision-row-AA4H5CDT.js.map → fleet-decision-row-WM64KXP3.js.map} +0 -0
  1145. /package/dist/{model-policy-picker-menu-HSMWVO4P.js.map → model-policy-picker-menu-SMC6J6QN.js.map} +0 -0
  1146. /package/dist/{payment-page-card-3LTSFJGN.js.map → payment-page-card-G4U63KUV.js.map} +0 -0
  1147. /package/dist/{platform-activity-row-5VYV6TX4.js.map → platform-activity-row-BUZGZAKZ.js.map} +0 -0
  1148. /package/dist/{queue-surface-implementation-NXHZUKD2.js.map → queue-surface-implementation-4KUZ4PJV.js.map} +0 -0
  1149. /package/dist/{sandbox-files-YCMLQUFU.js.map → sandbox-files-ESDMOFSD.js.map} +0 -0
  1150. /package/dist/{session-connect-cards-KSQLMRM5.js.map → session-connect-cards-Q53KMMYY.js.map} +0 -0
  1151. /package/dist/{session-realtime-ZR6JLG3Y.js.map → session-realtime-CF3I35WJ.js.map} +0 -0
  1152. /package/dist/{timeline-annotation-markers-YAHDPWVG.js.map → timeline-annotation-markers-CJK4RYZ4.js.map} +0 -0
  1153. /package/dist/{timeline-annotation-selection-KHXNCEJP.js.map → timeline-annotation-selection-67GF5H26.js.map} +0 -0
  1154. /package/dist/{timeline-annotations-dialog-Y4XD3N7B.js.map → timeline-annotations-dialog-ONJPQDJQ.js.map} +0 -0
@@ -1,2599 +0,0 @@
1
- "use client";
2
- import {
3
- machineScopeLabel
4
- } from "./chunk-ZY2Z2IU3.js";
5
- import {
6
- formatBytes,
7
- formatRelativeTime
8
- } from "./chunk-5MOJZORA.js";
9
- import {
10
- cn
11
- } from "./chunk-TXS65BB2.js";
12
- import {
13
- useOpenGeniText
14
- } from "./chunk-TNUSPXPW.js";
15
-
16
- // src/types/machines.ts
17
- function connectionStatusForState(state) {
18
- switch (state) {
19
- case "online":
20
- case "consent_required":
21
- case "display_unavailable":
22
- return "online";
23
- case "reconnecting":
24
- case "enrolling":
25
- return "reconnecting";
26
- case "offline":
27
- return "offline";
28
- default: {
29
- const _never = state;
30
- return _never;
31
- }
32
- }
33
- }
34
-
35
- // src/components/machine-status-pill.tsx
36
- import { jsx, jsxs } from "react/jsx-runtime";
37
- var CONNECTION_STATUS_META = (t) => ({
38
- online: {
39
- label: t("machineStatusPill.online"),
40
- dotClassName: "bg-og-status-running",
41
- badgeClassName: "text-og-status-running border-og-status-running/30 bg-og-status-running/10",
42
- pulse: false
43
- },
44
- reconnecting: {
45
- label: t("machineStatusPill.reconnecting"),
46
- dotClassName: "bg-og-status-waiting",
47
- badgeClassName: "text-og-status-waiting border-og-status-waiting/35 bg-og-status-waiting/10",
48
- pulse: true
49
- },
50
- offline: {
51
- label: t("machineStatusPill.offline"),
52
- dotClassName: "bg-og-status-failed",
53
- badgeClassName: "text-og-fg-subtle border-og-border bg-og-status-failed/10",
54
- pulse: false
55
- }
56
- });
57
- var MACHINE_STATE_BADGE_META = (t) => ({
58
- consent_required: {
59
- label: t("machineStatusPill.consentRequired"),
60
- badgeClassName: "text-og-status-waiting border-og-status-waiting/35 bg-og-status-waiting/10"
61
- },
62
- display_unavailable: {
63
- label: t("machineStatusPill.noDisplay"),
64
- badgeClassName: "text-og-fg-muted border-og-border bg-og-surface-2"
65
- },
66
- enrolling: {
67
- label: t("machineStatusPill.enrolling"),
68
- badgeClassName: "text-og-accent border-og-accent/30 bg-og-accent-soft"
69
- }
70
- });
71
- function ConnectionStatusPill({
72
- status,
73
- label,
74
- size = "md",
75
- className
76
- }) {
77
- const t = useOpenGeniText();
78
- const meta = CONNECTION_STATUS_META(t)[status];
79
- return /* @__PURE__ */ jsxs(
80
- "span",
81
- {
82
- "data-connection-status": status,
83
- className: cn(
84
- "og-root inline-flex shrink-0 items-center rounded-full border font-medium",
85
- size === "sm" ? "gap-1 px-1.5 py-px text-og-xs" : "gap-1.5 px-2 py-0.5 text-og-sm",
86
- meta.badgeClassName,
87
- className
88
- ),
89
- children: [
90
- /* @__PURE__ */ jsx(ConnectionDot, { status, className: size === "sm" ? "size-1" : "size-1.5" }),
91
- label ?? meta.label
92
- ]
93
- }
94
- );
95
- }
96
- function ConnectionDot({ status, className }) {
97
- const t = useOpenGeniText();
98
- const meta = CONNECTION_STATUS_META(t)[status];
99
- return /* @__PURE__ */ jsx(
100
- "span",
101
- {
102
- className: cn(
103
- "relative inline-flex size-1.5 shrink-0 rounded-full",
104
- meta.dotClassName,
105
- className
106
- ),
107
- children: meta.pulse ? /* @__PURE__ */ jsx("span", { className: cn("absolute inset-0 animate-og-pulse rounded-full", meta.dotClassName) }) : null
108
- }
109
- );
110
- }
111
- function MachineStatusPill({
112
- state,
113
- sharedSessionCount,
114
- size = "md",
115
- className
116
- }) {
117
- const t = useOpenGeniText();
118
- const stateBadge = MACHINE_STATE_BADGE_META(t)[state];
119
- const shared = (sharedSessionCount ?? 0) > 1;
120
- return /* @__PURE__ */ jsxs(
121
- "span",
122
- {
123
- className: cn("og-root inline-flex flex-wrap items-center gap-1", className),
124
- "data-machine-state": state,
125
- children: [
126
- /* @__PURE__ */ jsx(ConnectionStatusPill, { status: connectionStatusForState(state), size }),
127
- stateBadge ? /* @__PURE__ */ jsx(
128
- "span",
129
- {
130
- "data-state-badge": state,
131
- className: cn(
132
- "inline-flex shrink-0 items-center rounded-full border font-medium",
133
- size === "sm" ? "px-1.5 py-px text-og-xs" : "px-2 py-0.5 text-og-sm",
134
- stateBadge.badgeClassName
135
- ),
136
- children: stateBadge.label
137
- }
138
- ) : null,
139
- shared ? /* @__PURE__ */ jsx(
140
- "span",
141
- {
142
- "data-shared-chip": true,
143
- className: cn(
144
- "inline-flex shrink-0 items-center gap-1 rounded-full border font-medium",
145
- "text-og-accent border-og-accent/30 bg-og-accent-soft",
146
- size === "sm" ? "px-1.5 py-px text-og-xs" : "px-2 py-0.5 text-og-sm"
147
- ),
148
- title: t("machineStatusPill.sessionsOnThisMachine", { count: sharedSessionCount ?? 0 }),
149
- children: t("machineStatusPill.sharedCount", { count: sharedSessionCount ?? 0 })
150
- }
151
- ) : null
152
- ]
153
- }
154
- );
155
- }
156
-
157
- // src/components/machine-metrics.tsx
158
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
159
- function pct(value) {
160
- if (!Number.isFinite(value)) return 0;
161
- return Math.max(0, Math.min(100, value));
162
- }
163
- function Meter({
164
- label,
165
- value,
166
- fillPct,
167
- tone
168
- }) {
169
- const fillClass = tone === "hot" ? "bg-og-status-failed" : tone === "warn" ? "bg-og-status-running" : "bg-og-status-idle";
170
- return /* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-col gap-1", "data-metric": label.toLowerCase(), children: [
171
- /* @__PURE__ */ jsxs2("div", { className: "flex items-baseline justify-between gap-2", children: [
172
- /* @__PURE__ */ jsx2("span", { className: "text-[10px] font-medium uppercase tracking-wide text-og-fg-subtle", children: label }),
173
- /* @__PURE__ */ jsx2("span", { className: "font-og-mono text-[11px] tabular-nums text-og-fg-muted", children: value })
174
- ] }),
175
- /* @__PURE__ */ jsx2("div", { className: "h-1 w-full overflow-hidden rounded-full bg-og-surface-2", children: /* @__PURE__ */ jsx2(
176
- "div",
177
- {
178
- className: cn("h-full rounded-full transition-[width] duration-500", fillClass),
179
- style: { width: `${pct(fillPct)}%` }
180
- }
181
- ) })
182
- ] });
183
- }
184
- function toneFor(p) {
185
- if (p >= 90) return "hot";
186
- if (p >= 70) return "warn";
187
- return "ok";
188
- }
189
- function StatTriple({
190
- load1,
191
- load5,
192
- load15,
193
- runQueue
194
- }) {
195
- const t = useOpenGeniText();
196
- const stats = [
197
- { label: "1m", value: load1 },
198
- { label: "5m", value: load5 },
199
- { label: "15m", value: load15 }
200
- ];
201
- return /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between gap-3", "data-metric": "load", children: [
202
- /* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-col gap-1", children: [
203
- /* @__PURE__ */ jsx2("span", { className: "text-[10px] font-medium uppercase tracking-wide text-og-fg-subtle", children: t("machineMetrics.load") }),
204
- /* @__PURE__ */ jsx2("div", { className: "flex items-baseline gap-3", children: stats.map((s) => /* @__PURE__ */ jsxs2("div", { className: "flex items-baseline gap-1", children: [
205
- /* @__PURE__ */ jsx2("span", { className: "text-[10px] font-medium uppercase tracking-wide text-og-fg-subtle", children: s.label }),
206
- /* @__PURE__ */ jsx2("span", { className: "font-og-mono text-[12px] tabular-nums text-og-fg", children: s.value.toFixed(2) })
207
- ] }, s.label)) })
208
- ] }),
209
- runQueue > 0 ? /* @__PURE__ */ jsxs2(
210
- "div",
211
- {
212
- className: "flex shrink-0 items-baseline gap-1.5 rounded-og-sm bg-og-surface-2 px-2 py-1 text-[11px] text-og-fg-subtle",
213
- "data-metric": "runqueue",
214
- children: [
215
- /* @__PURE__ */ jsx2("span", { className: "font-medium uppercase tracking-wide", children: t("machineMetrics.queue") }),
216
- /* @__PURE__ */ jsx2("span", { className: "font-og-mono tabular-nums text-og-fg-muted", children: runQueue })
217
- ]
218
- }
219
- ) : null
220
- ] });
221
- }
222
- function MachineMetrics({ metrics, density = "compact", className }) {
223
- const t = useOpenGeniText();
224
- if (!metrics) {
225
- return /* @__PURE__ */ jsx2("div", { className: cn("text-[11px] text-og-fg-subtle", className), "data-metrics-empty": true, children: t("machineMetrics.noMetricsYet") });
226
- }
227
- const memPct2 = metrics.memTotalBytes > 0 ? metrics.memUsedBytes / metrics.memTotalBytes * 100 : 0;
228
- const diskPct2 = metrics.diskTotalBytes > 0 ? metrics.diskUsedBytes / metrics.diskTotalBytes * 100 : 0;
229
- const hasGpu = metrics.gpuUtilPct !== null;
230
- const gpuMemLabel = metrics.gpuMemBytes !== null ? formatBytes(metrics.gpuMemBytes) : null;
231
- const ratioGridClass = density === "full" ? "grid-cols-1" : "grid-cols-1 sm:grid-cols-2";
232
- return /* @__PURE__ */ jsxs2("div", { className: cn("flex flex-col gap-3", className), "data-machine-metrics": true, children: [
233
- /* @__PURE__ */ jsxs2("div", { className: cn("grid gap-x-4 gap-y-2.5", ratioGridClass), children: [
234
- /* @__PURE__ */ jsx2(
235
- Meter,
236
- {
237
- label: t("machineMetrics.memory"),
238
- value: `${formatBytes(metrics.memUsedBytes)} / ${formatBytes(metrics.memTotalBytes)}`,
239
- fillPct: memPct2,
240
- tone: toneFor(memPct2)
241
- }
242
- ),
243
- /* @__PURE__ */ jsx2(
244
- Meter,
245
- {
246
- label: t("machineMetrics.disk"),
247
- value: `${formatBytes(metrics.diskUsedBytes)} / ${formatBytes(metrics.diskTotalBytes)}`,
248
- fillPct: diskPct2,
249
- tone: toneFor(diskPct2)
250
- }
251
- )
252
- ] }),
253
- /* @__PURE__ */ jsxs2("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2.5", children: [
254
- /* @__PURE__ */ jsx2(
255
- Meter,
256
- {
257
- label: t("machineMetrics.cpu"),
258
- value: `${metrics.cpuPct.toFixed(0)}%`,
259
- fillPct: metrics.cpuPct,
260
- tone: toneFor(metrics.cpuPct)
261
- }
262
- ),
263
- hasGpu ? /* @__PURE__ */ jsx2(
264
- Meter,
265
- {
266
- label: t("machineMetrics.gpu"),
267
- value: gpuMemLabel ? `${metrics.gpuUtilPct.toFixed(0)}% \xB7 ${gpuMemLabel}` : `${metrics.gpuUtilPct.toFixed(0)}%`,
268
- fillPct: metrics.gpuUtilPct,
269
- tone: toneFor(metrics.gpuUtilPct)
270
- }
271
- ) : null
272
- ] }),
273
- /* @__PURE__ */ jsx2(
274
- StatTriple,
275
- {
276
- load1: metrics.load1,
277
- load5: metrics.load5,
278
- load15: metrics.load15,
279
- runQueue: metrics.runQueue
280
- }
281
- )
282
- ] });
283
- }
284
-
285
- // src/components/machine-card.tsx
286
- import {
287
- AlertTriangleIcon,
288
- ArrowRightIcon,
289
- CpuIcon,
290
- LaptopIcon,
291
- MonitorIcon,
292
- MonitorOffIcon,
293
- ServerIcon,
294
- UsersIcon
295
- } from "lucide-react";
296
-
297
- // src/components/machines/health.ts
298
- var PRESSURE = {
299
- cpu: { warn: 90, crit: 98 },
300
- mem: { warn: 85, crit: 95 },
301
- disk: { warn: 90, crit: 96 }
302
- };
303
- var STALE_AFTER_MS = 45e3;
304
- function pct2(used, total) {
305
- if (!Number.isFinite(used) || !Number.isFinite(total) || total <= 0) return 0;
306
- return used / total * 100;
307
- }
308
- function deriveHealth(msg, state, metrics, now = Date.now()) {
309
- if (state === "offline") {
310
- return {
311
- level: "offline",
312
- label: msg("machines.health.offline"),
313
- reason: msg("machines.health.notReachable"),
314
- stale: true
315
- };
316
- }
317
- if (state === "enrolling") {
318
- return {
319
- level: "unknown",
320
- label: msg("machines.health.enrolling"),
321
- reason: msg("machines.health.completingEnrollment"),
322
- stale: false
323
- };
324
- }
325
- const stale = metrics ? now - new Date(metrics.sampledAt).getTime() > STALE_AFTER_MS : true;
326
- if (state === "reconnecting") {
327
- return {
328
- level: "degraded",
329
- label: msg("machines.health.reconnecting"),
330
- reason: msg("machines.health.reEstablishingLink"),
331
- stale
332
- };
333
- }
334
- if (!metrics) {
335
- return {
336
- level: "unknown",
337
- label: msg("machines.health.online"),
338
- reason: msg("machines.health.awaitingFirstSample"),
339
- stale
340
- };
341
- }
342
- if (stale) {
343
- return {
344
- level: "degraded",
345
- label: msg("machines.health.telemetryStale"),
346
- reason: msg("machines.health.noRecentSample"),
347
- stale: true
348
- };
349
- }
350
- const memPct2 = pct2(metrics.memUsedBytes, metrics.memTotalBytes);
351
- const diskPct2 = pct2(metrics.diskUsedBytes, metrics.diskTotalBytes);
352
- const cpu = metrics.cpuPct;
353
- const pressures = [
354
- resolve(msg("machines.health.disk"), diskPct2, PRESSURE.disk),
355
- resolve(msg("machines.health.memory"), memPct2, PRESSURE.mem),
356
- resolve("CPU", cpu, PRESSURE.cpu)
357
- ];
358
- const worst = pressures.reduce((a, b) => b.sev > a.sev ? b : a);
359
- if (worst.sev === 2)
360
- return {
361
- level: "critical",
362
- label: msg("machines.health.critical"),
363
- reason: worst.reason,
364
- stale
365
- };
366
- if (worst.sev === 1)
367
- return {
368
- level: "degraded",
369
- label: msg("machines.health.underLoad"),
370
- reason: worst.reason,
371
- stale
372
- };
373
- return {
374
- level: "healthy",
375
- label: msg("machines.health.healthy"),
376
- reason: msg("machines.health.allSystemsNominal"),
377
- stale
378
- };
379
- }
380
- function resolve(name, value, t) {
381
- const rounded = Math.round(value);
382
- if (value >= t.crit) return { level: "critical", reason: `${name} ${rounded}%`, sev: 2 };
383
- if (value >= t.warn) return { level: "degraded", reason: `${name} ${rounded}%`, sev: 1 };
384
- return { level: "healthy", reason: `${name} ${rounded}%`, sev: 0 };
385
- }
386
- var HEALTH_TOKEN = {
387
- healthy: {
388
- text: "text-og-status-idle",
389
- dot: "bg-og-status-idle",
390
- soft: "bg-og-status-idle/10 border-og-status-idle/25"
391
- },
392
- degraded: {
393
- text: "text-og-status-running",
394
- dot: "bg-og-status-running",
395
- soft: "bg-og-status-running/10 border-og-status-running/25"
396
- },
397
- critical: {
398
- text: "text-og-status-failed",
399
- dot: "bg-og-status-failed",
400
- soft: "bg-og-status-failed/10 border-og-status-failed/30"
401
- },
402
- offline: {
403
- text: "text-og-fg-subtle",
404
- dot: "bg-og-fg-subtle",
405
- soft: "bg-og-surface-2 border-og-border"
406
- },
407
- unknown: {
408
- text: "text-og-fg-muted",
409
- dot: "bg-og-fg-muted",
410
- soft: "bg-og-surface-2 border-og-border"
411
- }
412
- };
413
- function healthPulses(level) {
414
- return level === "degraded" || level === "critical";
415
- }
416
-
417
- // src/components/machine-health-pill.tsx
418
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
419
- function MachineHealthPill({
420
- state,
421
- metrics,
422
- now,
423
- size = "sm",
424
- className
425
- }) {
426
- const t = useOpenGeniText();
427
- const health = deriveHealth(t, state, metrics, now ?? Date.now());
428
- const tone = HEALTH_TOKEN[health.level];
429
- const badge = MACHINE_STATE_BADGE_META(t)[state];
430
- const pad = size === "md" ? "px-2.5 py-1 text-og-sm" : "px-2 py-0.5 text-og-xs";
431
- return /* @__PURE__ */ jsxs3("div", { className: cn("flex shrink-0 items-center gap-1.5", className), children: [
432
- badge ? /* @__PURE__ */ jsx3(
433
- "span",
434
- {
435
- className: cn(
436
- "rounded-full border px-2 py-0.5 text-og-xs font-medium",
437
- badge.badgeClassName
438
- ),
439
- children: badge.label
440
- }
441
- ) : null,
442
- /* @__PURE__ */ jsxs3(
443
- "span",
444
- {
445
- className: cn(
446
- "inline-flex items-center gap-1.5 rounded-full border font-medium",
447
- pad,
448
- tone.soft,
449
- tone.text
450
- ),
451
- "data-health": health.level,
452
- title: health.reason,
453
- children: [
454
- /* @__PURE__ */ jsxs3("span", { className: "relative flex size-2", children: [
455
- healthPulses(health.level) && /* @__PURE__ */ jsx3(
456
- "span",
457
- {
458
- className: cn(
459
- "absolute inline-flex size-full animate-og-pulse rounded-full opacity-60",
460
- tone.dot
461
- )
462
- }
463
- ),
464
- /* @__PURE__ */ jsx3("span", { className: cn("relative inline-flex size-2 rounded-full", tone.dot) })
465
- ] }),
466
- health.label
467
- ]
468
- }
469
- )
470
- ] });
471
- }
472
-
473
- // src/components/machines/agent-status-icon.tsx
474
- import {
475
- CircleAlertIcon,
476
- CircleCheckIcon,
477
- ClockIcon,
478
- DownloadIcon,
479
- LoaderCircleIcon,
480
- TriangleAlertIcon
481
- } from "lucide-react";
482
- import { jsx as jsx4 } from "react/jsx-runtime";
483
- function AgentStatusIcon({ tone, className }) {
484
- const size = cn("size-3.5 shrink-0", className);
485
- switch (tone) {
486
- case "ok":
487
- return /* @__PURE__ */ jsx4(CircleCheckIcon, { className: cn(size, "text-og-status-idle"), "aria-hidden": true });
488
- case "progress":
489
- return /* @__PURE__ */ jsx4(LoaderCircleIcon, { className: cn(size, "animate-og-spin text-og-accent"), "aria-hidden": true });
490
- case "waiting":
491
- return /* @__PURE__ */ jsx4(ClockIcon, { className: cn(size, "text-og-fg-subtle"), "aria-hidden": true });
492
- case "attention":
493
- return /* @__PURE__ */ jsx4(TriangleAlertIcon, { className: cn(size, "text-og-status-waiting"), "aria-hidden": true });
494
- case "failed":
495
- return /* @__PURE__ */ jsx4(CircleAlertIcon, { className: cn(size, "text-og-status-failed"), "aria-hidden": true });
496
- default:
497
- return /* @__PURE__ */ jsx4(DownloadIcon, { className: cn(size, "text-og-fg-subtle"), "aria-hidden": true });
498
- }
499
- }
500
-
501
- // src/components/machines/machine-status.ts
502
- var UPDATE_CONFIRMATION_GRACE_MS = 3e4;
503
- var UPDATE_HOLD_ATTENTION_MS = 10 * 6e4;
504
- function elapsedDuration(t, ms) {
505
- const minutes = Math.max(1, Math.floor(ms / 6e4));
506
- return minutes < 60 ? t("lib.format.minutes", { count: minutes }) : minutes < 1440 ? t("lib.format.hours", { count: Math.floor(minutes / 60) }) : t("lib.format.days", { count: Math.floor(minutes / 1440) });
507
- }
508
- function updateWaitingReason(t, update, now) {
509
- const labels = {
510
- browser_action: t("machines.machineStatus.blockerBrowserAction"),
511
- browser_session: t("machines.machineStatus.blockerBrowserSession"),
512
- browser_creation: t("machines.machineStatus.blockerBrowserCreation"),
513
- browser_closing: t("machines.machineStatus.blockerBrowserClosing"),
514
- browser_recovery: t("machines.machineStatus.blockerBrowserRecovery"),
515
- browser_authentication: t("machines.machineStatus.blockerBrowserAuth"),
516
- browser_state_transfer: t("machines.machineStatus.blockerBrowserTransfer"),
517
- computer_action: t("machines.machineStatus.blockerComputerAction"),
518
- computer_virtual_seat: t("machines.machineStatus.blockerVirtualDesktop"),
519
- computer_session: t("machines.machineStatus.blockerComputerSession"),
520
- computer_creation: t("machines.machineStatus.blockerComputerCreation"),
521
- computer_closing: t("machines.machineStatus.blockerComputerClosing"),
522
- computer_seat_transfer: t("machines.machineStatus.blockerSeatTransfer"),
523
- controller_request: t("machines.machineStatus.blockerControllerRequest"),
524
- controller_lifecycle: t("machines.machineStatus.blockerControllerLifecycle"),
525
- controller_stream: t("machines.machineStatus.blockerStream"),
526
- controller_producer: t("machines.machineStatus.blockerProducer"),
527
- controller_previous_update: t("machines.machineStatus.blockerPreviousUpdate"),
528
- other_work: t("machines.machineStatus.blockerOtherWork"),
529
- upload: t("machines.machineStatus.blockerUpload"),
530
- native_request: t("machines.machineStatus.blockerNativeRequest"),
531
- native_operation: t("machines.machineStatus.blockerNativeOperation"),
532
- native_light_running: t("machines.machineStatus.blockerNativeRequest"),
533
- native_light_queued: t("machines.machineStatus.blockerQueuedRequest"),
534
- native_heavy_running: t("machines.machineStatus.blockerNativeOperation"),
535
- native_heavy_queued: t("machines.machineStatus.blockerQueuedOperation")
536
- };
537
- const raw = update.blockers ?? [];
538
- const native = raw.filter(
539
- (blocker) => blocker.kind.startsWith("native_") && !blocker.kind.includes("cleanup")
540
- );
541
- const blockers = raw.filter((blocker) => !native.includes(blocker));
542
- if (native.length)
543
- blockers.push({
544
- kind: "native_work",
545
- count: Math.max(...native.map((blocker) => blocker.count))
546
- });
547
- labels.native_work = t("machines.machineStatus.blockerNativeCounters");
548
- if (blockers.length) {
549
- const details = blockers.map((blocker) => {
550
- const label = labels[blocker.kind] ?? (blocker.kind.includes("cleanup") ? t("machines.machineStatus.blockerCleanup") : t("machines.machineStatus.blockerUnknown"));
551
- return t("machines.machineStatus.blockerCount", { label, count: blocker.count });
552
- }).join("; ");
553
- return t("machines.machineStatus.reportedBlockers", {
554
- details,
555
- duration: elapsedDuration(t, now - Date.parse(update.updatedAt))
556
- });
557
- }
558
- switch (update.errorCode) {
559
- case "update_busy_interactions":
560
- case "update_busy_browsers":
561
- return t("machines.machineStatus.waitingForInteractions");
562
- case "update_busy_uploads":
563
- return t("machines.machineStatus.waitingForUploads");
564
- case "update_busy_updating":
565
- return t("machines.machineStatus.waitingForAnotherUpdate");
566
- default:
567
- return t("machines.machineStatus.waitingForUnspecifiedWork");
568
- }
569
- }
570
- function isPostponedUpdate(errorCode) {
571
- return typeof errorCode === "string" && errorCode.startsWith("update_busy");
572
- }
573
- var FAILURE_REASON = (t) => ({
574
- update_cleanup_unconfirmed: t("machines.machineStatus.previousWorkCleanupUnconfirmed"),
575
- update_state_unavailable: t("machines.machineStatus.theAgentCouldnTCheck"),
576
- agent_offline: t("machines.machineStatus.theMachineWasOffline"),
577
- update_dispatch_rejected: t("machines.machineStatus.theAgentRefusedTheRequest"),
578
- invalid_agent_response: t("machines.machineStatus.theAgentSentAnUnexpected")
579
- });
580
- function failureReason(t, code) {
581
- if (!code) return null;
582
- return FAILURE_REASON(t)[code] ?? code.replaceAll("_", " ");
583
- }
584
- var ACTIVE_STATUSES = /* @__PURE__ */ new Set([
585
- "requested",
586
- "accepted",
587
- "waiting_for_idle",
588
- "downloading",
589
- "verifying",
590
- "applying",
591
- "restarting"
592
- ]);
593
- function describeAgentRuntime(t, runtime, now, online = true) {
594
- const installed = runtime.installedVersion;
595
- const title = installed ? t("machines.machineStatus.agentVInstalled", { installed }) : t("machines.machineStatus.agentVersionUnknown");
596
- const blocked = runtime.updateBlockedReason?.trim() || null;
597
- const update = runtime.update;
598
- const target = update ? `v${update.targetVersion}` : null;
599
- const alreadyInstalled = update !== null && (update.targetVersion === installed || runtime.versionState === "current" || runtime.versionState === "ahead");
600
- if (update && ACTIVE_STATUSES.has(update.status) && !alreadyInstalled) {
601
- const base = { title, tone: "progress", note: null, action: null };
602
- switch (update.status) {
603
- case "requested": {
604
- const stalled = now - new Date(update.updatedAt).getTime() >= UPDATE_CONFIRMATION_GRACE_MS;
605
- return stalled ? {
606
- title,
607
- status: t("machines.machineStatus.theAgentHasnTConfirmed", { target }),
608
- tone: "attention",
609
- note: null,
610
- action: { kind: "resend", label: t("machines.machineStatus.sendAgain") }
611
- } : { ...base, status: t("machines.machineStatus.sendingTheUpdateToTarget", { target }) };
612
- }
613
- case "accepted":
614
- return { ...base, status: t("machines.machineStatus.updatingToTarget", { target }) };
615
- case "waiting_for_idle": {
616
- const heldMs = Math.max(0, now - Date.parse(update.requestedAt));
617
- const duration = elapsedDuration(t, heldMs);
618
- return {
619
- ...base,
620
- tone: !online ? "muted" : heldMs >= UPDATE_HOLD_ATTENTION_MS ? "attention" : "waiting",
621
- status: !online ? t("machines.machineStatus.offlineUpdateReport") : heldMs >= UPDATE_HOLD_ATTENTION_MS ? t("machines.machineStatus.updateHeldDuration", { target, duration }) : t("machines.machineStatus.updatesToTargetWhenCurrent", { target }),
622
- note: blocked ?? updateWaitingReason(t, update, now)
623
- };
624
- }
625
- case "downloading":
626
- return { ...base, status: `Downloading ${target}\u2026` };
627
- case "verifying":
628
- return { ...base, status: `Verifying ${target}\u2026` };
629
- case "applying":
630
- return { ...base, status: `Installing ${target}\u2026` };
631
- default:
632
- return { ...base, status: t("machines.machineStatus.restartingTheAgent") };
633
- }
634
- }
635
- if (update?.status === "failed" && !alreadyInstalled) {
636
- if (isPostponedUpdate(update.errorCode)) {
637
- const browsersWouldClose = update.errorCode === "update_busy_browsers";
638
- return {
639
- title,
640
- status: browsersWouldClose ? t("machines.machineStatus.updateToTargetPostponedOpen", { target }) : t("machines.machineStatus.updateToTargetPostponedWhile", { target }),
641
- tone: "waiting",
642
- note: blocked ?? (browsersWouldClose ? t("machines.machineStatus.theInstalledAgentClosesIts") : updateWaitingReason(t, update, now)),
643
- action: blocked ? null : { kind: "update", label: t("machines.machineStatus.updateNow") }
644
- };
645
- }
646
- const reason = failureReason(t, update.errorCode);
647
- const retry = update.retryable && !blocked ? { kind: "retry", label: t("machines.machineStatus.tryAgain") } : null;
648
- if (update.rolledBack) {
649
- return {
650
- title,
651
- status: t("machines.machineStatus.couldnTUpdateToTarget", { target }),
652
- tone: "attention",
653
- note: blocked ?? (reason ? t("machines.machineStatus.reasonReason", { reason }) : null),
654
- action: retry
655
- };
656
- }
657
- return {
658
- title,
659
- status: t("machines.machineStatus.updateToTargetFailed", { target }),
660
- tone: "failed",
661
- note: blocked ?? (reason ? t("machines.machineStatus.reasonReason", { reason }) : null),
662
- action: retry
663
- };
664
- }
665
- const desired = runtime.desiredVersion;
666
- switch (runtime.versionState) {
667
- case "current":
668
- return {
669
- title,
670
- status: runtime.updateChannel === "beta" ? t("machines.machineStatus.upToDateBeta") : t("machines.machineStatus.upToDate"),
671
- tone: "ok",
672
- note: null,
673
- action: null
674
- };
675
- case "ahead":
676
- return {
677
- title,
678
- status: desired ? t("machines.machineStatus.newerThanTheReleasedV", { desired }) : t("machines.machineStatus.newerThanTheRelease"),
679
- tone: "muted",
680
- note: null,
681
- action: null
682
- };
683
- case "unknown":
684
- return {
685
- title,
686
- status: desired ? t("machines.machineStatus.latestIsVDesired", { desired }) : t("machines.machineStatus.noReleaseConfigured"),
687
- tone: "muted",
688
- note: blocked,
689
- action: null
690
- };
691
- default:
692
- if (!desired || desired === installed) {
693
- return {
694
- title,
695
- status: t("machines.machineStatus.upToDate"),
696
- tone: "ok",
697
- note: null,
698
- action: null
699
- };
700
- }
701
- return {
702
- title,
703
- status: `v${desired} available`,
704
- tone: "waiting",
705
- note: blocked,
706
- action: blocked ? null : { kind: "update", label: t("machines.machineStatus.update") }
707
- };
708
- }
709
- }
710
- var RUNNER_CONFLICT_ACTIVE_MS = 2 * 6e4;
711
- function runnerConflict(authority, now) {
712
- if (authority.duplicateRunnerDeniedCount <= 0) return null;
713
- const lastAt = authority.duplicateRunnerDeniedAt;
714
- const last = lastAt ? new Date(lastAt).getTime() : Number.NaN;
715
- return {
716
- active: Number.isFinite(last) && now - last < RUNNER_CONFLICT_ACTIVE_MS,
717
- count: authority.duplicateRunnerDeniedCount,
718
- lastAt
719
- };
720
- }
721
- function describeAgentConnection(t, authority) {
722
- if (authority.state !== "active" && authority.authenticationError === "credentials_expired") {
723
- return {
724
- label: t("machines.machineStatus.credentialsExpired"),
725
- detail: t("machines.machineStatus.credentialsRecovery")
726
- };
727
- }
728
- const label = authority.state === "active" ? t("machines.machineStatus.agentConnected") : authority.state === "expired" ? t("machines.machineStatus.agentConnectionLapsed") : t("machines.machineStatus.agentNotConnectedYet");
729
- const n = authority.supersededCount;
730
- return {
731
- label,
732
- detail: authority.state === "expired" || authority.state === "unclaimed" ? t("machines.machineStatus.offlineRecovery") : n > 0 ? t("machines.machineStatus.reconnectedTimesSinceSetup", { count: n }) : null
733
- };
734
- }
735
- var STATUS_TONE_TEXT = {
736
- ok: "text-og-status-idle",
737
- progress: "text-og-accent",
738
- waiting: "text-og-fg-muted",
739
- attention: "text-og-status-waiting",
740
- failed: "text-og-status-failed",
741
- muted: "text-og-fg-subtle"
742
- };
743
-
744
- // src/components/machines/metric-sparkline.tsx
745
- import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
746
- var VW = 120;
747
- function MetricSparkline({
748
- points,
749
- color = "var(--og-color-accent)",
750
- yMax = "auto",
751
- height = 28,
752
- className
753
- }) {
754
- const valued = points.filter(
755
- (p) => p.v != null && Number.isFinite(p.v)
756
- );
757
- if (valued.length < 2) {
758
- return /* @__PURE__ */ jsx5("div", { className, style: { height }, "aria-hidden": true });
759
- }
760
- const vh = height;
761
- const top = yMax === "auto" ? Math.max(1, ...valued.map((p) => p.v)) * 1.1 : yMax;
762
- const tMin = valued[0].t;
763
- const tSpan = Math.max(1, valued[valued.length - 1].t - tMin);
764
- const xy = valued.map((p) => ({
765
- x: (p.t - tMin) / tSpan * VW,
766
- y: vh - Math.min(top, Math.max(0, p.v)) / Math.max(1e-6, top) * (vh - 2) - 1
767
- }));
768
- let d = `M${xy[0].x},${xy[0].y}`;
769
- for (let i = 0; i < xy.length - 1; i++) {
770
- const p0 = xy[i - 1] ?? xy[i];
771
- const p1 = xy[i];
772
- const p2 = xy[i + 1];
773
- const p3 = xy[i + 2] ?? p2;
774
- d += `C${p1.x + (p2.x - p0.x) / 6},${p1.y + (p2.y - p0.y) / 6} ${p2.x - (p3.x - p1.x) / 6},${p2.y - (p3.y - p1.y) / 6} ${p2.x},${p2.y}`;
775
- }
776
- const last = xy[xy.length - 1];
777
- const gid = `spark-${Math.round(top)}-${color.length}`;
778
- return /* @__PURE__ */ jsxs4(
779
- "svg",
780
- {
781
- viewBox: `0 0 ${VW} ${vh}`,
782
- preserveAspectRatio: "none",
783
- className,
784
- style: { height, width: "100%" },
785
- "aria-hidden": true,
786
- children: [
787
- /* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */ jsxs4("linearGradient", { id: gid, x1: "0", y1: "0", x2: "0", y2: "1", children: [
788
- /* @__PURE__ */ jsx5("stop", { offset: "0%", stopColor: color, stopOpacity: "0.22" }),
789
- /* @__PURE__ */ jsx5("stop", { offset: "100%", stopColor: color, stopOpacity: "0" })
790
- ] }) }),
791
- /* @__PURE__ */ jsx5("path", { d: `${d} L${last.x},${vh} L${xy[0].x},${vh} Z`, fill: `url(#${gid})` }),
792
- /* @__PURE__ */ jsx5(
793
- "path",
794
- {
795
- d,
796
- fill: "none",
797
- stroke: color,
798
- strokeWidth: 1.25,
799
- strokeLinejoin: "round",
800
- strokeLinecap: "round",
801
- vectorEffect: "non-scaling-stroke"
802
- }
803
- ),
804
- /* @__PURE__ */ jsx5("circle", { cx: last.x, cy: last.y, r: 1.6, fill: color, vectorEffect: "non-scaling-stroke" })
805
- ]
806
- }
807
- );
808
- }
809
-
810
- // src/components/machine-card.tsx
811
- import { Fragment, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
812
- function KindIcon({ machine }) {
813
- if (machine.kind === "local" || machine.kind === "selfhosted")
814
- return /* @__PURE__ */ jsx6(LaptopIcon, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
815
- if (machine.kind === "docker" || machine.isSessionGroup)
816
- return /* @__PURE__ */ jsx6(ServerIcon, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
817
- if (machine.kind === "modal") return /* @__PURE__ */ jsx6(CpuIcon, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
818
- return /* @__PURE__ */ jsx6(ServerIcon, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
819
- }
820
- function MachineCard({
821
- machine,
822
- onAttach,
823
- attaching,
824
- onUpdateAgent,
825
- updatingAgent,
826
- series,
827
- onOpenDetail,
828
- now,
829
- className
830
- }) {
831
- const msg = useOpenGeniText();
832
- const offline = machine.state === "offline";
833
- const attachable = !machine.active && !offline && Boolean(onAttach);
834
- const shared = machine.sharedSessionCount > 1;
835
- const clockNow = now ?? Date.now();
836
- const sampledAgo = machine.metrics ? formatRelativeTime(msg, machine.metrics.sampledAt, new Date(clockNow)) : null;
837
- const cpuPts = (series ?? []).map((s) => ({ t: new Date(s.sampledAt).getTime(), v: s.cpuPct }));
838
- const openable = Boolean(onOpenDetail);
839
- const runtime = machine.runtime;
840
- const agent = runtime ? describeAgentRuntime(
841
- msg,
842
- runtime,
843
- clockNow,
844
- connectionStatusForState(machine.state) === "online"
845
- ) : null;
846
- const updateAction = agent?.action && machine.enrollmentId && onUpdateAgent && !offline ? agent.action : null;
847
- const conflict = runnerConflict(machine.connectionAuthority, clockNow);
848
- return /* @__PURE__ */ jsxs5(
849
- "div",
850
- {
851
- "data-machine-card": machine.sandboxId,
852
- "data-active": machine.active ? "true" : "false",
853
- role: openable ? "button" : void 0,
854
- tabIndex: openable ? 0 : void 0,
855
- onClick: openable ? () => onOpenDetail?.(machine) : void 0,
856
- onKeyDown: openable ? (e) => {
857
- if (e.key === "Enter" || e.key === " ") {
858
- e.preventDefault();
859
- onOpenDetail?.(machine);
860
- }
861
- } : void 0,
862
- className: cn(
863
- "og-root group relative flex flex-col gap-3 overflow-hidden rounded-og-lg border border-og-border",
864
- "bg-og-surface-1 p-4 shadow-og-sm transition-colors",
865
- openable && "cursor-pointer hover:border-og-border-strong focus-visible:border-og-accent/60 focus-visible:outline-hidden",
866
- machine.active && "border-og-accent/40",
867
- className
868
- ),
869
- children: [
870
- machine.active ? /* @__PURE__ */ jsx6("span", { "aria-hidden": true, className: "absolute inset-y-0 left-0 w-0.5 bg-og-accent" }) : null,
871
- /* @__PURE__ */ jsxs5("div", { className: "flex items-start justify-between gap-3", children: [
872
- /* @__PURE__ */ jsxs5("div", { className: "flex min-w-0 items-start gap-2.5", children: [
873
- /* @__PURE__ */ jsx6("span", { className: "mt-0.5 shrink-0", children: /* @__PURE__ */ jsx6(KindIcon, { machine }) }),
874
- /* @__PURE__ */ jsxs5("div", { className: "min-w-0", children: [
875
- /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-2", children: [
876
- /* @__PURE__ */ jsx6("span", { className: "truncate text-og-base font-medium text-og-fg", children: machine.name }),
877
- machine.active ? /* @__PURE__ */ jsx6(
878
- "span",
879
- {
880
- "data-active-marker": true,
881
- className: "shrink-0 rounded-full border border-og-accent/30 bg-og-accent-soft px-1.5 py-px text-og-xs font-medium text-og-accent",
882
- children: msg("machineCard.active")
883
- }
884
- ) : null
885
- ] }),
886
- /* @__PURE__ */ jsxs5("div", { className: "mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-og-xs text-og-fg-subtle", children: [
887
- /* @__PURE__ */ jsx6("span", { "data-machine-scope": machine.scope, children: machineScopeLabel(msg, machine.scope) }),
888
- /* @__PURE__ */ jsx6("span", { "aria-hidden": true, children: "\xB7" }),
889
- /* @__PURE__ */ jsx6("span", { className: "capitalize", children: machine.kind }),
890
- /* @__PURE__ */ jsx6("span", { "aria-hidden": true, children: "\xB7" }),
891
- /* @__PURE__ */ jsxs5("span", { className: "font-og-mono", children: [
892
- machine.os,
893
- "/",
894
- machine.arch
895
- ] }),
896
- /* @__PURE__ */ jsx6("span", { "aria-hidden": true, children: "\xB7" }),
897
- /* @__PURE__ */ jsxs5("span", { className: "inline-flex items-center gap-1", children: [
898
- machine.hasDisplay ? /* @__PURE__ */ jsx6(MonitorIcon, { className: "size-3", "aria-hidden": true }) : /* @__PURE__ */ jsx6(MonitorOffIcon, { className: "size-3", "aria-hidden": true }),
899
- machine.hasDisplay ? msg("machineCard.display") : msg("machineCard.headless")
900
- ] })
901
- ] })
902
- ] })
903
- ] }),
904
- /* @__PURE__ */ jsx6(
905
- MachineHealthPill,
906
- {
907
- state: machine.state,
908
- metrics: machine.metrics,
909
- now: clockNow,
910
- size: "sm",
911
- className: "shrink-0"
912
- }
913
- )
914
- ] }),
915
- shared ? /* @__PURE__ */ jsxs5(
916
- "p",
917
- {
918
- "data-shared-disclosure": true,
919
- className: "flex items-center gap-1.5 rounded-og-md border border-og-accent/25 bg-og-accent-soft px-2.5 py-1.5 text-og-xs text-og-fg-muted",
920
- children: [
921
- /* @__PURE__ */ jsx6(UsersIcon, { className: "size-3.5 shrink-0 text-og-accent", "aria-hidden": true }),
922
- msg("machineCard.sharedSharedsessioncountSessionsAreOn", {
923
- sharedSessionCount: machine.sharedSessionCount
924
- })
925
- ]
926
- }
927
- ) : null,
928
- conflict?.active ? /* @__PURE__ */ jsxs5(
929
- "p",
930
- {
931
- "data-runner-conflict": true,
932
- className: "flex items-start gap-1.5 rounded-og-md border border-og-status-waiting/30 bg-og-status-waiting/5 px-2.5 py-1.5 text-og-xs text-og-fg-muted",
933
- children: [
934
- /* @__PURE__ */ jsx6(
935
- AlertTriangleIcon,
936
- {
937
- className: "mt-px size-3.5 shrink-0 text-og-status-waiting",
938
- "aria-hidden": true
939
- }
940
- ),
941
- /* @__PURE__ */ jsx6("span", { children: msg("machineCard.aSecondCopyOfThe") })
942
- ]
943
- }
944
- ) : null,
945
- agent ? /* @__PURE__ */ jsxs5(
946
- "div",
947
- {
948
- "data-agent-runtime": true,
949
- className: "flex items-center justify-between gap-3 rounded-og-md border border-og-border/70 bg-og-surface-2/35 px-2.5 py-2 text-og-xs",
950
- children: [
951
- /* @__PURE__ */ jsxs5("div", { className: "min-w-0", children: [
952
- /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-1.5 text-og-fg-muted", children: [
953
- /* @__PURE__ */ jsx6(AgentStatusIcon, { tone: agent.tone }),
954
- /* @__PURE__ */ jsx6("span", { className: "truncate", children: agent.title })
955
- ] }),
956
- /* @__PURE__ */ jsx6(
957
- "p",
958
- {
959
- "data-agent-status": agent.tone,
960
- className: cn("mt-0.5", STATUS_TONE_TEXT[agent.tone]),
961
- children: agent.status
962
- }
963
- ),
964
- agent.note ? /* @__PURE__ */ jsx6("p", { className: "mt-1 text-og-fg-muted", children: agent.note }) : null
965
- ] }),
966
- updateAction ? /* @__PURE__ */ jsx6(
967
- "button",
968
- {
969
- type: "button",
970
- "data-update-agent": true,
971
- "data-update-action": updateAction.kind,
972
- disabled: updatingAgent,
973
- onClick: (event) => {
974
- event.stopPropagation();
975
- onUpdateAgent?.(machine);
976
- },
977
- className: "shrink-0 rounded-og-sm border border-og-border px-2 py-1 font-medium text-og-fg-muted transition-colors hover:border-og-border-strong hover:text-og-fg disabled:cursor-not-allowed disabled:opacity-50 pointer-coarse:min-h-11",
978
- children: updatingAgent ? msg("machineCard.starting") : updateAction.label
979
- }
980
- ) : null
981
- ]
982
- }
983
- ) : null,
984
- /* @__PURE__ */ jsx6(MachineMetrics, { metrics: machine.metrics }),
985
- cpuPts.length > 1 ? /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-1 rounded-og-md bg-og-surface-2/40 p-2.5", children: [
986
- /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between text-[10px] font-medium uppercase tracking-wide text-og-fg-subtle", children: [
987
- /* @__PURE__ */ jsx6("span", { children: msg("machineCard.cpuLast15m") }),
988
- openable ? /* @__PURE__ */ jsxs5("span", { className: "flex items-center gap-0.5 opacity-0 transition-opacity group-hover:opacity-100", children: [
989
- msg("machineCard.telemetry"),
990
- " ",
991
- /* @__PURE__ */ jsx6(ArrowRightIcon, { className: "size-2.5", "aria-hidden": true })
992
- ] }) : null
993
- ] }),
994
- /* @__PURE__ */ jsx6(MetricSparkline, { points: cpuPts, color: "var(--og-color-accent)", yMax: 100, height: 26 })
995
- ] }) : null,
996
- /* @__PURE__ */ jsxs5("div", { className: "mt-1 flex items-center justify-between gap-3 text-og-xs text-og-fg-subtle", children: [
997
- /* @__PURE__ */ jsx6("span", { className: "inline-flex items-center gap-1.5", children: sampledAgo ? /* @__PURE__ */ jsxs5(Fragment, { children: [
998
- /* @__PURE__ */ jsx6(
999
- "span",
1000
- {
1001
- className: cn(
1002
- "size-1.5 rounded-full",
1003
- sampledAgo === "now" ? "bg-og-status-idle" : "bg-og-fg-subtle"
1004
- ),
1005
- "aria-hidden": true
1006
- }
1007
- ),
1008
- sampledAgo === "now" ? msg("machineCard.live") : msg("machineCard.updatedSampledagoAgo", { sampledAgo })
1009
- ] }) : machine.lastSeenAt ? /* @__PURE__ */ jsxs5(Fragment, { children: [
1010
- msg("machineCard.lastSeen"),
1011
- " ",
1012
- formatRelativeTime(msg, machine.lastSeenAt, new Date(clockNow))
1013
- ] }) : msg("machineCard.neverConnected") }),
1014
- machine.active ? /* @__PURE__ */ jsx6("span", { className: "text-og-accent", children: msg("machineCard.routingHere") }) : attachable ? /* @__PURE__ */ jsx6(
1015
- "button",
1016
- {
1017
- type: "button",
1018
- "data-attach": true,
1019
- disabled: attaching,
1020
- onClick: (e) => {
1021
- e.stopPropagation();
1022
- onAttach?.(machine);
1023
- },
1024
- className: cn(
1025
- "rounded-og-sm border border-og-border px-2.5 py-1 text-og-xs font-medium text-og-fg-muted transition-colors pointer-coarse:min-h-11",
1026
- "hover:border-og-border-strong hover:text-og-fg disabled:cursor-not-allowed disabled:opacity-50"
1027
- ),
1028
- children: attaching ? msg("machineCard.switching") : msg("machineCard.attach")
1029
- }
1030
- ) : /* @__PURE__ */ jsx6("span", { className: "text-og-fg-subtle/70", children: offline ? msg("machineCard.unavailable") : "\u2014" })
1031
- ] })
1032
- ]
1033
- }
1034
- );
1035
- }
1036
-
1037
- // src/components/machines/metric-history-chart.tsx
1038
- import { useLayoutEffect, useRef, useState } from "react";
1039
- import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
1040
- var PAD = { top: 10, right: 12, bottom: 18, left: 40 };
1041
- function niceCeil(v) {
1042
- if (v <= 0) return 1;
1043
- const mag = 10 ** Math.floor(Math.log10(v));
1044
- const n = v / mag;
1045
- const step = n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10;
1046
- return step * mag;
1047
- }
1048
- function smoothPath(pts) {
1049
- if (pts.length === 0) return "";
1050
- if (pts.length === 1) return `M${pts[0].x},${pts[0].y}`;
1051
- let d = `M${pts[0].x},${pts[0].y}`;
1052
- for (let i = 0; i < pts.length - 1; i++) {
1053
- const p0 = pts[i - 1] ?? pts[i];
1054
- const p1 = pts[i];
1055
- const p2 = pts[i + 1];
1056
- const p3 = pts[i + 2] ?? p2;
1057
- const cp1x = p1.x + (p2.x - p0.x) / 6;
1058
- const cp1y = p1.y + (p2.y - p0.y) / 6;
1059
- const cp2x = p2.x - (p3.x - p1.x) / 6;
1060
- const cp2y = p2.y - (p3.y - p1.y) / 6;
1061
- d += `C${cp1x},${cp1y} ${cp2x},${cp2y} ${p2.x},${p2.y}`;
1062
- }
1063
- return d;
1064
- }
1065
- function fmtClock(t) {
1066
- const d = new Date(t);
1067
- return `${d.getHours().toString().padStart(2, "0")}:${d.getMinutes().toString().padStart(2, "0")}`;
1068
- }
1069
- function MetricHistoryChart({
1070
- points,
1071
- yMax = "auto",
1072
- yMin = 0,
1073
- format,
1074
- unit = "",
1075
- color = "var(--og-color-accent)",
1076
- thresholds,
1077
- height = 132,
1078
- rangeLabel: rangeLabelProp,
1079
- className
1080
- }) {
1081
- const msg = useOpenGeniText();
1082
- const rangeLabel = rangeLabelProp === void 0 ? msg("machines.metricHistoryChart.inThisRange") : rangeLabelProp;
1083
- const ref = useRef(null);
1084
- const [w, setW] = useState(560);
1085
- const [hover, setHover] = useState(null);
1086
- useLayoutEffect(() => {
1087
- const el = ref.current;
1088
- if (!el) return;
1089
- const ro = new ResizeObserver((entries) => {
1090
- const cw = entries[0]?.contentRect.width;
1091
- if (cw && cw > 0) setW(cw);
1092
- });
1093
- ro.observe(el);
1094
- return () => ro.disconnect();
1095
- }, []);
1096
- const valued = points.filter(
1097
- (p) => p.v != null && Number.isFinite(p.v)
1098
- );
1099
- const fmt = format ?? ((v) => `${Math.round(v)}${unit}`);
1100
- const H = height;
1101
- const plotW = Math.max(1, w - PAD.left - PAD.right);
1102
- const plotH = Math.max(1, H - PAD.top - PAD.bottom);
1103
- const dataMax = valued.length ? Math.max(...valued.map((p) => p.v)) : 1;
1104
- const top = yMax === "auto" ? niceCeil(Math.max(dataMax * 1.15, thresholds?.warn ?? 0, 1)) : yMax;
1105
- const span = Math.max(1e-6, top - yMin);
1106
- const tMin = valued.length ? valued[0].t : 0;
1107
- const tMax = valued.length ? valued[valued.length - 1].t : 1;
1108
- const tSpan = Math.max(1, tMax - tMin);
1109
- const xOf = (t) => PAD.left + (t - tMin) / tSpan * plotW;
1110
- const yOf = (v) => PAD.top + (1 - (Math.min(top, Math.max(yMin, v)) - yMin) / span) * plotH;
1111
- const pxPts = valued.map((p) => ({ x: xOf(p.t), y: yOf(p.v), t: p.t, v: p.v }));
1112
- const sparse = pxPts.length > 0 && pxPts.length <= 4;
1113
- const line = smoothPath(pxPts);
1114
- const area = pxPts.length > 1 ? `${line} L${pxPts[pxPts.length - 1].x},${PAD.top + plotH} L${pxPts[0].x},${PAD.top + plotH} Z` : "";
1115
- const yTicks = [yMin, yMin + span / 2, top];
1116
- const gid = `og-mh-${Math.round(top)}-${Math.round(color.length)}`;
1117
- const hoverPt = hover != null ? pxPts[hover] : null;
1118
- return /* @__PURE__ */ jsxs6(
1119
- "div",
1120
- {
1121
- ref,
1122
- className: cn("relative w-full select-none", className),
1123
- style: { height: H },
1124
- "data-metric-chart": true,
1125
- children: [
1126
- valued.length === 0 ? /* @__PURE__ */ jsx7("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx7("span", { className: "text-og-xs text-og-fg-subtle", children: msg("machines.metricHistoryChart.noSamplesRangelabel", { rangeLabel }) }) }) : /* @__PURE__ */ jsxs6(
1127
- "svg",
1128
- {
1129
- width: w,
1130
- height: H,
1131
- className: "overflow-visible",
1132
- role: "img",
1133
- onMouseLeave: () => setHover(null),
1134
- onMouseMove: (e) => {
1135
- const rect = e.currentTarget.getBoundingClientRect();
1136
- const mx = e.clientX - rect.left;
1137
- let best = 0;
1138
- let bestD = Infinity;
1139
- for (let i = 0; i < pxPts.length; i++) {
1140
- const d = Math.abs(pxPts[i].x - mx);
1141
- if (d < bestD) {
1142
- bestD = d;
1143
- best = i;
1144
- }
1145
- }
1146
- setHover(best);
1147
- },
1148
- children: [
1149
- /* @__PURE__ */ jsx7("defs", { children: /* @__PURE__ */ jsxs6("linearGradient", { id: gid, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1150
- /* @__PURE__ */ jsx7("stop", { offset: "0%", stopColor: color, stopOpacity: "0.26" }),
1151
- /* @__PURE__ */ jsx7("stop", { offset: "100%", stopColor: color, stopOpacity: "0" })
1152
- ] }) }),
1153
- yTicks.map((v, i) => {
1154
- const y = yOf(v);
1155
- return /* @__PURE__ */ jsxs6("g", { children: [
1156
- /* @__PURE__ */ jsx7(
1157
- "line",
1158
- {
1159
- x1: PAD.left,
1160
- x2: w - PAD.right,
1161
- y1: y,
1162
- y2: y,
1163
- stroke: "var(--og-color-border)",
1164
- strokeOpacity: i === 0 ? 0.9 : 0.4,
1165
- strokeWidth: 1
1166
- }
1167
- ),
1168
- /* @__PURE__ */ jsx7(
1169
- "text",
1170
- {
1171
- x: PAD.left - 8,
1172
- y: y + 3,
1173
- textAnchor: "end",
1174
- className: "font-og-mono",
1175
- fontSize: 10,
1176
- fill: "var(--og-color-fg-subtle)",
1177
- children: fmt(v)
1178
- }
1179
- )
1180
- ] }, `yt-${v}`);
1181
- }),
1182
- ["warn", "crit"].map((k) => {
1183
- const tv = thresholds?.[k];
1184
- if (tv == null || tv > top) return null;
1185
- const y = yOf(tv);
1186
- const stroke = k === "crit" ? "var(--og-color-status-failed)" : "var(--og-color-status-waiting)";
1187
- return /* @__PURE__ */ jsx7(
1188
- "line",
1189
- {
1190
- x1: PAD.left,
1191
- x2: w - PAD.right,
1192
- y1: y,
1193
- y2: y,
1194
- stroke,
1195
- strokeOpacity: 0.5,
1196
- strokeWidth: 1,
1197
- strokeDasharray: "3 4"
1198
- },
1199
- k
1200
- );
1201
- }),
1202
- valued.length > 1 && [tMin, tMax].map((t, i) => /* @__PURE__ */ jsx7(
1203
- "text",
1204
- {
1205
- x: i === 0 ? PAD.left : w - PAD.right,
1206
- y: H - 4,
1207
- textAnchor: i === 0 ? "start" : "end",
1208
- className: "font-og-mono",
1209
- fontSize: 10,
1210
- fill: "var(--og-color-fg-subtle)",
1211
- children: fmtClock(t)
1212
- },
1213
- i === 0 ? "x-start" : "x-end"
1214
- )),
1215
- area && /* @__PURE__ */ jsx7("path", { d: area, fill: `url(#${gid})` }),
1216
- /* @__PURE__ */ jsx7(
1217
- "path",
1218
- {
1219
- d: line,
1220
- fill: "none",
1221
- stroke: color,
1222
- strokeWidth: 1.75,
1223
- strokeLinejoin: "round",
1224
- strokeLinecap: "round",
1225
- pathLength: 1,
1226
- className: "og-mh-draw"
1227
- }
1228
- ),
1229
- sparse && pxPts.map((p) => /* @__PURE__ */ jsx7("circle", { cx: p.x, cy: p.y, r: 2.5, fill: color }, `m-${p.t}`)),
1230
- hoverPt && /* @__PURE__ */ jsxs6("g", { pointerEvents: "none", children: [
1231
- /* @__PURE__ */ jsx7(
1232
- "line",
1233
- {
1234
- x1: hoverPt.x,
1235
- x2: hoverPt.x,
1236
- y1: PAD.top,
1237
- y2: PAD.top + plotH,
1238
- stroke: "var(--og-color-border-strong)",
1239
- strokeWidth: 1
1240
- }
1241
- ),
1242
- /* @__PURE__ */ jsx7(
1243
- "circle",
1244
- {
1245
- cx: hoverPt.x,
1246
- cy: hoverPt.y,
1247
- r: 3.5,
1248
- fill: color,
1249
- stroke: "var(--og-color-bg)",
1250
- strokeWidth: 1.5
1251
- }
1252
- )
1253
- ] })
1254
- ]
1255
- }
1256
- ),
1257
- hoverPt && /* @__PURE__ */ jsxs6(
1258
- "div",
1259
- {
1260
- className: "pointer-events-none absolute z-10 flex flex-col rounded-og-sm border border-og-border-strong bg-og-surface-3/95 px-2 py-1 shadow-og-md backdrop-blur-sm",
1261
- style: {
1262
- left: Math.min(Math.max(hoverPt.x - 30, 0), w - 78),
1263
- top: Math.max(hoverPt.y - 42, 0)
1264
- },
1265
- children: [
1266
- /* @__PURE__ */ jsx7("span", { className: "font-og-mono text-og-sm font-medium tabular-nums text-og-fg", children: fmt(hoverPt.v) }),
1267
- /* @__PURE__ */ jsx7("span", { className: "font-og-mono text-[10px] tabular-nums text-og-fg-subtle", children: fmtClock(hoverPt.t) })
1268
- ]
1269
- }
1270
- )
1271
- ]
1272
- }
1273
- );
1274
- }
1275
-
1276
- // src/components/machines/machine-detail.tsx
1277
- import {
1278
- ArrowLeftIcon,
1279
- BuildingIcon,
1280
- ChevronRightIcon,
1281
- CpuIcon as CpuIcon2,
1282
- LayersIcon,
1283
- LaptopIcon as LaptopIcon2,
1284
- PlugIcon,
1285
- RadioIcon,
1286
- ServerIcon as ServerIcon2,
1287
- TriangleAlertIcon as TriangleAlertIcon2,
1288
- Trash2Icon,
1289
- UserIcon,
1290
- UsersIcon as UsersIcon2
1291
- } from "lucide-react";
1292
-
1293
- // src/components/machines/series.ts
1294
- var METRIC_WINDOWS = ["15m", "1h", "6h", "24h"];
1295
- var WINDOW_LABEL = (msg) => ({
1296
- "15m": msg("machines.series.inTheLast15Min"),
1297
- "1h": msg("machines.series.inTheLastHour"),
1298
- "6h": msg("machines.series.inTheLast6Hours"),
1299
- "24h": msg("machines.series.inTheLast24Hours")
1300
- });
1301
- function ptsFrom(samples, pick) {
1302
- return samples.map((s) => ({ t: new Date(s.sampledAt).getTime(), v: pick(s) }));
1303
- }
1304
- var memPct = (s) => s.memTotalBytes > 0 ? s.memUsedBytes / s.memTotalBytes * 100 : null;
1305
- var diskPct = (s) => s.diskTotalBytes > 0 ? s.diskUsedBytes / s.diskTotalBytes * 100 : null;
1306
- var fmtBytes = (b) => {
1307
- if (b < 1024) return `${b} B`;
1308
- const u = ["KB", "MB", "GB", "TB"];
1309
- let v = b / 1024;
1310
- for (const unit of u) {
1311
- if (v < 1024 || unit === "TB") return `${v.toFixed(v < 10 ? 1 : 0)} ${unit}`;
1312
- v /= 1024;
1313
- }
1314
- return `${b} B`;
1315
- };
1316
- var METRICS = (msg) => [
1317
- {
1318
- key: "cpu",
1319
- title: "CPU",
1320
- unit: "%",
1321
- yMax: 100,
1322
- color: "var(--og-color-accent)",
1323
- thresholds: { warn: 90, crit: 98 },
1324
- pick: (s) => s.cpuPct,
1325
- current: (s) => `${Math.round(s.cpuPct)}%`,
1326
- sub: (s) => msg("machines.series.runqueueInRunQueue", { runQueue: s.runQueue })
1327
- },
1328
- {
1329
- key: "mem",
1330
- title: msg("machines.series.memory"),
1331
- unit: "%",
1332
- yMax: 100,
1333
- color: "var(--og-color-status-idle)",
1334
- thresholds: { warn: 85, crit: 95 },
1335
- pick: memPct,
1336
- current: (s) => `${Math.round(memPct(s) ?? 0)}%`,
1337
- sub: (s) => `${fmtBytes(s.memUsedBytes)} / ${fmtBytes(s.memTotalBytes)}`
1338
- },
1339
- {
1340
- key: "disk",
1341
- title: msg("machines.series.disk"),
1342
- unit: "%",
1343
- yMax: 100,
1344
- color: "var(--og-color-status-waiting)",
1345
- thresholds: { warn: 90, crit: 96 },
1346
- pick: diskPct,
1347
- current: (s) => `${Math.round(diskPct(s) ?? 0)}%`,
1348
- sub: (s) => `${fmtBytes(s.diskUsedBytes)} / ${fmtBytes(s.diskTotalBytes)}`
1349
- },
1350
- {
1351
- key: "load",
1352
- title: msg("machines.series.loadAverage"),
1353
- unit: "",
1354
- yMax: "auto",
1355
- color: "var(--og-color-accent-strong)",
1356
- pick: (s) => s.load1,
1357
- current: (s) => s.load1.toFixed(2),
1358
- sub: (s) => `5m ${s.load5.toFixed(2)} \xB7 15m ${s.load15.toFixed(2)}`
1359
- },
1360
- {
1361
- key: "gpu",
1362
- title: "GPU",
1363
- unit: "%",
1364
- yMax: 100,
1365
- color: "var(--og-color-status-running)",
1366
- thresholds: { warn: 90, crit: 98 },
1367
- pick: (s) => s.gpuUtilPct,
1368
- current: (s) => s.gpuUtilPct == null ? "\u2014" : `${Math.round(s.gpuUtilPct)}%`,
1369
- sub: (s) => s.gpuMemBytes == null ? null : `${fmtBytes(s.gpuMemBytes)} used`
1370
- }
1371
- ];
1372
- function pointsFor(def, samples) {
1373
- return ptsFrom(samples, def.pick);
1374
- }
1375
-
1376
- // src/components/machines/machine-operation-policy.tsx
1377
- import { AlertTriangleIcon as AlertTriangleIcon2, Loader2Icon } from "lucide-react";
1378
- import { useEffect, useState as useState2 } from "react";
1379
- import { errorMessage } from "@opengeni/contracts/values";
1380
- import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
1381
- function fieldValue(value) {
1382
- return value === null ? "" : String(value);
1383
- }
1384
- function parseByteCount(t, label, value) {
1385
- const trimmed = value.trim();
1386
- if (!trimmed) return null;
1387
- if (!/^\d+$/.test(trimmed)) {
1388
- throw new Error(t("machines.machineOperationPolicy.bytesNotWholeNumber", { label }));
1389
- }
1390
- const parsed = Number(trimmed);
1391
- if (!Number.isSafeInteger(parsed) || parsed <= 0) {
1392
- throw new Error(t("machines.machineOperationPolicy.bytesNotPositive", { label }));
1393
- }
1394
- return parsed;
1395
- }
1396
- function parseCpuMillicores(t, value) {
1397
- const trimmed = value.trim();
1398
- if (!trimmed) return null;
1399
- if (!/^\d+$/.test(trimmed)) {
1400
- throw new Error(t("machines.machineOperationPolicy.cpuNotWholeNumber"));
1401
- }
1402
- const parsed = Number(trimmed);
1403
- if (!Number.isSafeInteger(parsed) || parsed <= 0 || parsed > 4294967295) {
1404
- throw new Error(t("machines.machineOperationPolicy.cpuOutOfRange"));
1405
- }
1406
- return parsed;
1407
- }
1408
- function MachineOperationPolicyEditor({
1409
- policy,
1410
- memorySupported,
1411
- cpuSupported,
1412
- saving = false,
1413
- onSave
1414
- }) {
1415
- const t = useOpenGeniText();
1416
- const [memoryMaxBytes, setMemoryMaxBytes] = useState2(fieldValue(policy.memoryMaxBytes));
1417
- const [memoryHighBytes, setMemoryHighBytes] = useState2(fieldValue(policy.memoryHighBytes));
1418
- const [cpuMaxMillicores, setCpuMaxMillicores] = useState2(fieldValue(policy.cpuMaxMillicores));
1419
- const [validationError, setValidationError] = useState2(null);
1420
- useEffect(() => {
1421
- setMemoryMaxBytes(fieldValue(policy.memoryMaxBytes));
1422
- setMemoryHighBytes(fieldValue(policy.memoryHighBytes));
1423
- setCpuMaxMillicores(fieldValue(policy.cpuMaxMillicores));
1424
- setValidationError(null);
1425
- }, [policy.memoryMaxBytes, policy.memoryHighBytes, policy.cpuMaxMillicores, policy.revision]);
1426
- const submit = async (event) => {
1427
- event.preventDefault();
1428
- try {
1429
- const max = parseByteCount(
1430
- t,
1431
- t("machines.machineOperationPolicy.hardCeiling"),
1432
- memoryMaxBytes
1433
- );
1434
- const high = parseByteCount(
1435
- t,
1436
- t("machines.machineOperationPolicy.reclaimThreshold"),
1437
- memoryHighBytes
1438
- );
1439
- if (max !== null && high !== null && high > max) {
1440
- throw new Error(t("machines.machineOperationPolicy.reclaimAboveCeiling"));
1441
- }
1442
- const cpuMax = parseCpuMillicores(t, cpuMaxMillicores);
1443
- setValidationError(null);
1444
- await onSave({
1445
- memoryMaxBytes: max,
1446
- memoryHighBytes: high,
1447
- cpuMaxMillicores: cpuMax,
1448
- expectedRevision: policy.revision
1449
- });
1450
- } catch (error) {
1451
- setValidationError(errorMessage(error));
1452
- }
1453
- };
1454
- const configured = policy.memoryMaxBytes !== null || policy.memoryHighBytes !== null || policy.cpuMaxMillicores !== null;
1455
- const memoryConfigured = policy.memoryMaxBytes !== null || policy.memoryHighBytes !== null;
1456
- const unsupportedMemory = memoryConfigured && !memorySupported;
1457
- const unsupportedCpu = policy.cpuMaxMillicores !== null && (!memorySupported || !cpuSupported);
1458
- return /* @__PURE__ */ jsxs7(
1459
- "section",
1460
- {
1461
- "data-machine-operation-policy": true,
1462
- className: "rounded-og-lg border border-og-border bg-og-surface-1 p-4 shadow-og-sm",
1463
- children: [
1464
- /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1", children: [
1465
- /* @__PURE__ */ jsx8("h2", { className: "text-og-sm font-semibold text-og-fg", children: t("machines.machineOperationPolicy.perCommandResourcePolicy") }),
1466
- /* @__PURE__ */ jsx8("p", { className: "text-og-xs leading-relaxed text-og-fg-muted", children: t("machines.machineOperationPolicy.optionalLimitsAppliedSeparatelyTo") })
1467
- ] }),
1468
- configured && (unsupportedMemory || unsupportedCpu) ? /* @__PURE__ */ jsxs7("div", { className: "mt-3 flex gap-2 rounded-og-md border border-og-status-failed/40 bg-og-status-failed/5 p-3 text-og-xs text-og-status-failed", children: [
1469
- /* @__PURE__ */ jsx8(AlertTriangleIcon2, { className: "mt-0.5 size-3.5 shrink-0", "aria-hidden": true }),
1470
- /* @__PURE__ */ jsxs7("span", { children: [
1471
- unsupportedCpu ? t("machines.machineOperationPolicy.thisRunnerCannotEnforceThe") : t("machines.machineOperationPolicy.thisRunnerCannotEnforceThe2"),
1472
- " ",
1473
- t("machines.machineOperationPolicy.commandExecutionFailsClosedUntil")
1474
- ] })
1475
- ] }) : null,
1476
- /* @__PURE__ */ jsxs7("form", { className: "mt-4 grid gap-3 sm:grid-cols-2", onSubmit: submit, children: [
1477
- /* @__PURE__ */ jsxs7("label", { className: "flex flex-col gap-1.5 text-og-xs text-og-fg-muted", children: [
1478
- t("machines.machineOperationPolicy.hardCeilingBytes"),
1479
- /* @__PURE__ */ jsx8(
1480
- "input",
1481
- {
1482
- inputMode: "numeric",
1483
- pattern: "[0-9]*",
1484
- value: memoryMaxBytes,
1485
- onChange: (event) => setMemoryMaxBytes(event.target.value),
1486
- placeholder: t("machines.machineOperationPolicy.unlimited"),
1487
- disabled: saving,
1488
- className: "min-h-9 rounded-og-sm border border-og-border bg-og-bg px-2.5 font-og-mono text-og-sm text-og-fg outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/50 disabled:opacity-60"
1489
- }
1490
- )
1491
- ] }),
1492
- /* @__PURE__ */ jsxs7("label", { className: "flex flex-col gap-1.5 text-og-xs text-og-fg-muted", children: [
1493
- t("machines.machineOperationPolicy.reclaimThresholdBytes"),
1494
- /* @__PURE__ */ jsx8(
1495
- "input",
1496
- {
1497
- inputMode: "numeric",
1498
- pattern: "[0-9]*",
1499
- value: memoryHighBytes,
1500
- onChange: (event) => setMemoryHighBytes(event.target.value),
1501
- placeholder: t("machines.machineOperationPolicy.unlimited"),
1502
- disabled: saving,
1503
- className: "min-h-9 rounded-og-sm border border-og-border bg-og-bg px-2.5 font-og-mono text-og-sm text-og-fg outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/50 disabled:opacity-60"
1504
- }
1505
- )
1506
- ] }),
1507
- /* @__PURE__ */ jsxs7("label", { className: "flex flex-col gap-1.5 text-og-xs text-og-fg-muted", children: [
1508
- t("machines.machineOperationPolicy.cpuMaximumMillicores"),
1509
- /* @__PURE__ */ jsx8(
1510
- "input",
1511
- {
1512
- inputMode: "numeric",
1513
- pattern: "[0-9]*",
1514
- value: cpuMaxMillicores,
1515
- onChange: (event) => setCpuMaxMillicores(event.target.value),
1516
- placeholder: t("machines.machineOperationPolicy.unlimited"),
1517
- disabled: saving,
1518
- className: "min-h-9 rounded-og-sm border border-og-border bg-og-bg px-2.5 font-og-mono text-og-sm text-og-fg outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/50 disabled:opacity-60"
1519
- }
1520
- ),
1521
- /* @__PURE__ */ jsx8("span", { children: t("machines.machineOperationPolicy.n1000MillicoresOneCpuCore") })
1522
- ] }),
1523
- /* @__PURE__ */ jsxs7("div", { className: "flex min-h-9 items-center justify-between gap-3 sm:col-span-2", children: [
1524
- /* @__PURE__ */ jsx8(
1525
- "span",
1526
- {
1527
- role: validationError ? "alert" : void 0,
1528
- className: "text-og-xs text-og-status-failed",
1529
- children: validationError
1530
- }
1531
- ),
1532
- /* @__PURE__ */ jsxs7(
1533
- "button",
1534
- {
1535
- type: "submit",
1536
- disabled: saving,
1537
- className: "inline-flex min-h-9 items-center gap-1.5 rounded-og-sm border border-og-primary-border bg-og-primary text-og-primary-fg px-3 py-1.5 text-og-xs font-medium transition-colors hover:bg-og-primary-hover disabled:cursor-not-allowed disabled:opacity-60",
1538
- children: [
1539
- saving ? /* @__PURE__ */ jsx8(Loader2Icon, { className: "size-3.5 animate-spin", "aria-hidden": true }) : null,
1540
- t("machines.machineOperationPolicy.savePolicy")
1541
- ]
1542
- }
1543
- )
1544
- ] })
1545
- ] })
1546
- ]
1547
- }
1548
- );
1549
- }
1550
-
1551
- // src/components/machines/machine-detail.tsx
1552
- import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
1553
- var AUDIENCE = (t) => ({
1554
- user: {
1555
- label: t("machines.machineDetail.onlyMe"),
1556
- description: t("machines.machineDetail.onlyItsOwnerCanRun"),
1557
- Icon: UserIcon
1558
- },
1559
- workspace: {
1560
- label: t("machines.machineDetail.thisWorkspace"),
1561
- description: t("machines.machineDetail.everyoneInThisWorkspaceCan"),
1562
- Icon: UsersIcon2
1563
- },
1564
- organization: {
1565
- label: t("machines.machineDetail.wholeOrganization"),
1566
- description: t("machines.machineDetail.membersCanUseItWhere"),
1567
- Icon: BuildingIcon
1568
- }
1569
- });
1570
- function MachineAudienceRow({
1571
- machine,
1572
- onChange
1573
- }) {
1574
- const t = useOpenGeniText();
1575
- const audience = AUDIENCE(t)[machine.scope];
1576
- const changeable = onChange !== void 0 && machine.scope !== "organization";
1577
- const content = /* @__PURE__ */ jsxs8(Fragment2, { children: [
1578
- /* @__PURE__ */ jsx9(audience.Icon, { className: "size-4 shrink-0 text-og-fg-subtle", "aria-hidden": true }),
1579
- /* @__PURE__ */ jsxs8("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 text-left", children: [
1580
- /* @__PURE__ */ jsx9("span", { className: "text-og-sm font-medium text-og-fg", children: t("machines.machineDetail.whoCanUseIt") }),
1581
- /* @__PURE__ */ jsx9("span", { className: "text-og-xs text-og-fg-muted", children: audience.description })
1582
- ] }),
1583
- /* @__PURE__ */ jsx9("span", { className: "shrink-0 text-og-sm text-og-fg-muted", children: audience.label }),
1584
- changeable ? /* @__PURE__ */ jsx9(ChevronRightIcon, { className: "size-4 shrink-0 text-og-fg-subtle", "aria-hidden": true }) : null
1585
- ] });
1586
- const frame = "flex w-full min-h-14 items-center gap-3 rounded-og-lg border border-og-border bg-og-surface-1 px-4 py-3 shadow-og-sm";
1587
- return changeable ? /* @__PURE__ */ jsx9(
1588
- "button",
1589
- {
1590
- type: "button",
1591
- "data-machine-audience": machine.scope,
1592
- onClick: () => onChange(machine),
1593
- "aria-label": t("machines.machineDetail.whoCanUseNameLabel", {
1594
- name: machine.name,
1595
- label: audience.label
1596
- }),
1597
- className: cn(
1598
- frame,
1599
- "transition-colors hover:bg-og-surface-2 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/50"
1600
- ),
1601
- children: content
1602
- }
1603
- ) : /* @__PURE__ */ jsx9("div", { "data-machine-audience": machine.scope, className: frame, children: content });
1604
- }
1605
- function MachineReachRow({
1606
- machine,
1607
- summary,
1608
- onChange
1609
- }) {
1610
- const t = useOpenGeniText();
1611
- const content = /* @__PURE__ */ jsxs8(Fragment2, { children: [
1612
- /* @__PURE__ */ jsx9(LayersIcon, { className: "size-4 shrink-0 text-og-fg-subtle", "aria-hidden": true }),
1613
- /* @__PURE__ */ jsxs8("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 text-left", children: [
1614
- /* @__PURE__ */ jsx9("span", { className: "text-og-sm font-medium text-og-fg", children: t("machines.machineDetail.availableIn") }),
1615
- /* @__PURE__ */ jsx9("span", { className: "text-og-xs text-og-fg-muted", children: t("machines.machineDetail.organizationOwnersChooseWhere") })
1616
- ] }),
1617
- /* @__PURE__ */ jsx9("span", { className: "shrink-0 text-og-sm text-og-fg-muted", children: summary }),
1618
- onChange ? /* @__PURE__ */ jsx9(ChevronRightIcon, { className: "size-4 shrink-0 text-og-fg-subtle", "aria-hidden": true }) : null
1619
- ] });
1620
- const frame = "flex w-full min-h-14 items-center gap-3 rounded-og-lg border border-og-border bg-og-surface-1 px-4 py-3 shadow-og-sm";
1621
- return onChange ? /* @__PURE__ */ jsx9(
1622
- "button",
1623
- {
1624
- type: "button",
1625
- "data-machine-reach": true,
1626
- onClick: () => onChange(machine),
1627
- "aria-label": t("machines.machineDetail.availableInNameLabel", {
1628
- name: machine.name,
1629
- summary
1630
- }),
1631
- className: cn(
1632
- frame,
1633
- "transition-colors hover:bg-og-surface-2 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/50"
1634
- ),
1635
- children: content
1636
- }
1637
- ) : /* @__PURE__ */ jsx9("div", { "data-machine-reach": true, className: frame, children: content });
1638
- }
1639
- function KindIcon2({ kind, session }) {
1640
- if (kind === "local" || kind === "selfhosted")
1641
- return /* @__PURE__ */ jsx9(LaptopIcon2, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
1642
- if (kind === "docker" || session)
1643
- return /* @__PURE__ */ jsx9(ServerIcon2, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
1644
- if (kind === "modal") return /* @__PURE__ */ jsx9(CpuIcon2, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
1645
- return /* @__PURE__ */ jsx9(ServerIcon2, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
1646
- }
1647
- function MachineAgentPanel({
1648
- machine,
1649
- now,
1650
- onUpdateAgent,
1651
- updatingAgent
1652
- }) {
1653
- const t = useOpenGeniText();
1654
- const authority = machine.connectionAuthority;
1655
- const runtime = machine.runtime;
1656
- if (!runtime && authority.state === "not_applicable") return null;
1657
- const agent = runtime ? describeAgentRuntime(t, runtime, now, connectionStatusForState(machine.state) === "online") : null;
1658
- const action = agent?.action && machine.enrollmentId && onUpdateAgent && machine.state !== "offline" ? agent.action : null;
1659
- const connection = authority.state === "not_applicable" ? null : describeAgentConnection(t, authority);
1660
- const conflict = runnerConflict(authority, now);
1661
- const conflictAgo = conflict?.lastAt ? formatRelativeTime(t, conflict.lastAt, new Date(now)) : null;
1662
- return /* @__PURE__ */ jsxs8(
1663
- "section",
1664
- {
1665
- "data-machine-agent": true,
1666
- "aria-label": t("machines.machineDetail.agent"),
1667
- className: "flex flex-col divide-y divide-og-border rounded-og-lg border border-og-border bg-og-surface-1 shadow-og-sm",
1668
- children: [
1669
- agent ? /* @__PURE__ */ jsxs8("div", { "data-agent-runtime": true, className: "flex min-h-14 items-center gap-3 px-4 py-3", children: [
1670
- /* @__PURE__ */ jsx9(AgentStatusIcon, { tone: agent.tone, className: "size-4" }),
1671
- /* @__PURE__ */ jsxs8("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
1672
- /* @__PURE__ */ jsx9("span", { className: "text-og-sm font-medium text-og-fg", children: agent.title }),
1673
- /* @__PURE__ */ jsx9(
1674
- "span",
1675
- {
1676
- "data-agent-status": agent.tone,
1677
- className: cn("text-og-xs", STATUS_TONE_TEXT[agent.tone]),
1678
- children: agent.status
1679
- }
1680
- ),
1681
- agent.note ? /* @__PURE__ */ jsx9("span", { className: "text-og-xs text-og-fg-muted", children: agent.note }) : null
1682
- ] }),
1683
- action ? /* @__PURE__ */ jsx9(
1684
- "button",
1685
- {
1686
- type: "button",
1687
- "data-update-agent": true,
1688
- "data-update-action": action.kind,
1689
- disabled: updatingAgent,
1690
- onClick: () => onUpdateAgent?.(machine),
1691
- className: "inline-flex min-h-9 shrink-0 items-center rounded-og-sm border border-og-border px-3 py-1 text-og-xs font-medium text-og-fg-muted transition-colors hover:border-og-border-strong hover:text-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/50 disabled:cursor-not-allowed disabled:opacity-50 pointer-coarse:min-h-11",
1692
- children: updatingAgent ? t("machines.machineDetail.starting") : action.label
1693
- }
1694
- ) : null
1695
- ] }) : null,
1696
- connection ? /* @__PURE__ */ jsxs8(
1697
- "div",
1698
- {
1699
- "data-connection-authority": authority.state,
1700
- className: "flex min-h-14 items-start gap-3 px-4 py-3",
1701
- children: [
1702
- /* @__PURE__ */ jsx9(PlugIcon, { className: "mt-0.5 size-4 shrink-0 text-og-fg-subtle", "aria-hidden": true }),
1703
- /* @__PURE__ */ jsxs8("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
1704
- /* @__PURE__ */ jsx9("span", { className: "text-og-sm font-medium text-og-fg", children: connection.label }),
1705
- connection.detail ? /* @__PURE__ */ jsx9("span", { className: "text-og-xs text-og-fg-muted", children: connection.detail }) : null,
1706
- conflict?.active ? /* @__PURE__ */ jsxs8(
1707
- "span",
1708
- {
1709
- "data-runner-conflict": "active",
1710
- className: "mt-1 flex items-start gap-1.5 text-og-xs text-og-fg-muted",
1711
- children: [
1712
- /* @__PURE__ */ jsx9(
1713
- TriangleAlertIcon2,
1714
- {
1715
- className: "mt-px size-3.5 shrink-0 text-og-status-waiting",
1716
- "aria-hidden": true
1717
- }
1718
- ),
1719
- t("machines.machineDetail.aSecondCopyOfThe")
1720
- ]
1721
- }
1722
- ) : conflict ? /* @__PURE__ */ jsxs8("span", { "data-runner-conflict": "past", className: "text-og-xs text-og-fg-subtle", children: [
1723
- t("machines.machineDetail.keptOutExtraCopiesOf", { count: conflict.count }),
1724
- conflictAgo ? t("machines.machineDetail.mostRecentlyValue", {
1725
- value: conflictAgo === "now" ? t("machines.machineDetail.justNow") : `${conflictAgo} ago`
1726
- }) : ""
1727
- ] }) : null
1728
- ] })
1729
- ]
1730
- }
1731
- ) : null
1732
- ]
1733
- }
1734
- );
1735
- }
1736
- function MachineDetail({
1737
- machine,
1738
- series,
1739
- window,
1740
- onWindowChange,
1741
- loadingSeries,
1742
- onBack,
1743
- onRemove,
1744
- onUpdateOperationPolicy,
1745
- updatingOperationPolicy,
1746
- onChangeAudience,
1747
- reachSummary,
1748
- onChangeReach,
1749
- whereItWorks,
1750
- onUpdateAgent,
1751
- updatingAgent,
1752
- now = Date.now(),
1753
- className
1754
- }) {
1755
- const t = useOpenGeniText();
1756
- const health = deriveHealth(t, machine.state, machine.metrics, now);
1757
- const tone = HEALTH_TOKEN[health.level];
1758
- const latest = machine.metrics;
1759
- const sampledAgo = latest ? formatRelativeTime(t, latest.sampledAt, new Date(now)) : null;
1760
- const visible = METRICS(t).filter((m) => !(m.key === "gpu" && latest?.gpuUtilPct == null));
1761
- const tileCols = visible.length >= 5 ? "grid-cols-2 sm:grid-cols-3 lg:grid-cols-5" : "grid-cols-2 sm:grid-cols-4";
1762
- return /* @__PURE__ */ jsxs8("div", { className: cn("og-root mx-auto flex w-full max-w-5xl flex-col gap-5", className), children: [
1763
- /* @__PURE__ */ jsxs8("div", { className: "flex items-center justify-between gap-3", children: [
1764
- /* @__PURE__ */ jsxs8("div", { className: "flex min-w-0 items-center gap-2.5", children: [
1765
- onBack && /* @__PURE__ */ jsx9(
1766
- "button",
1767
- {
1768
- type: "button",
1769
- onClick: onBack,
1770
- className: "flex size-7 shrink-0 items-center justify-center rounded-og-sm border border-og-border bg-og-surface-1 text-og-fg-muted transition-colors hover:bg-og-surface-2 hover:text-og-fg",
1771
- "aria-label": t("machines.machineDetail.backToMachines"),
1772
- children: /* @__PURE__ */ jsx9(ArrowLeftIcon, { className: "size-3.5", "aria-hidden": true })
1773
- }
1774
- ),
1775
- /* @__PURE__ */ jsx9(KindIcon2, { kind: machine.kind, session: machine.isSessionGroup }),
1776
- /* @__PURE__ */ jsx9("h1", { className: "truncate text-og-md font-semibold text-og-fg", children: machine.name }),
1777
- /* @__PURE__ */ jsxs8("span", { className: "hidden shrink-0 rounded-og-sm border border-og-border bg-og-surface-1 px-1.5 py-0.5 font-og-mono text-og-xs text-og-fg-subtle sm:inline", children: [
1778
- machine.os,
1779
- " \xB7 ",
1780
- machine.arch
1781
- ] })
1782
- ] }),
1783
- /* @__PURE__ */ jsxs8("div", { className: "flex shrink-0 items-center gap-2", children: [
1784
- onRemove && machine.enrollmentId && !machine.isSessionGroup ? /* @__PURE__ */ jsxs8(
1785
- "button",
1786
- {
1787
- type: "button",
1788
- "data-remove-machine": true,
1789
- "aria-label": t("machines.machineDetail.removeMachineName", { name: machine.name }),
1790
- onClick: () => onRemove(machine),
1791
- className: "inline-flex min-h-9 items-center gap-1.5 rounded-og-sm border border-og-status-failed/40 px-2.5 py-1 font-medium text-og-xs text-og-status-failed transition-colors hover:bg-og-status-failed/10 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-status-failed/50 pointer-coarse:min-h-11",
1792
- children: [
1793
- /* @__PURE__ */ jsx9(Trash2Icon, { className: "size-3.5", "aria-hidden": true }),
1794
- /* @__PURE__ */ jsx9("span", { className: "hidden sm:inline", children: t("machines.machineDetail.removeMachine") })
1795
- ]
1796
- }
1797
- ) : null,
1798
- /* @__PURE__ */ jsx9("div", { className: "flex items-center gap-0.5 rounded-og-md border border-og-border bg-og-surface-1 p-0.5", children: METRIC_WINDOWS.map((w) => /* @__PURE__ */ jsx9(
1799
- "button",
1800
- {
1801
- type: "button",
1802
- onClick: () => onWindowChange(w),
1803
- "data-active": w === window,
1804
- className: cn(
1805
- "rounded-og-sm px-2 py-1 font-og-mono text-og-xs transition-colors",
1806
- w === window ? "bg-og-surface-3 text-og-fg shadow-og-sm" : "text-og-fg-subtle hover:text-og-fg-muted"
1807
- ),
1808
- children: w
1809
- },
1810
- w
1811
- )) })
1812
- ] })
1813
- ] }),
1814
- /* @__PURE__ */ jsxs8(
1815
- "div",
1816
- {
1817
- className: cn(
1818
- "relative flex flex-col gap-4 overflow-hidden rounded-og-lg border p-5 shadow-og-sm",
1819
- tone.soft
1820
- ),
1821
- children: [
1822
- /* @__PURE__ */ jsx9("span", { "aria-hidden": true, className: cn("absolute inset-y-0 left-0 w-1", tone.dot) }),
1823
- /* @__PURE__ */ jsxs8("div", { className: "flex flex-wrap items-center justify-between gap-3 pl-1", children: [
1824
- /* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-3", children: [
1825
- /* @__PURE__ */ jsxs8("span", { className: "relative flex size-3", children: [
1826
- healthPulses(health.level) && /* @__PURE__ */ jsx9(
1827
- "span",
1828
- {
1829
- className: cn(
1830
- "absolute inline-flex size-full animate-og-pulse rounded-full opacity-60",
1831
- tone.dot
1832
- )
1833
- }
1834
- ),
1835
- /* @__PURE__ */ jsx9("span", { className: cn("relative inline-flex size-3 rounded-full", tone.dot) })
1836
- ] }),
1837
- /* @__PURE__ */ jsxs8("div", { className: "flex flex-col", children: [
1838
- /* @__PURE__ */ jsx9("span", { className: cn("text-og-md font-semibold", tone.text), children: health.label }),
1839
- /* @__PURE__ */ jsx9("span", { className: "text-og-sm text-og-fg-muted", children: health.reason })
1840
- ] })
1841
- ] }),
1842
- /* @__PURE__ */ jsxs8("div", { className: "flex items-start gap-5 pr-1", children: [
1843
- sampledAgo && /* @__PURE__ */ jsxs8("div", { className: "flex flex-col items-end gap-0.5", children: [
1844
- /* @__PURE__ */ jsx9("span", { className: "text-[10px] font-medium uppercase tracking-wide text-og-fg-subtle", children: t("machines.machineDetail.sampled") }),
1845
- /* @__PURE__ */ jsxs8("span", { className: "flex items-center gap-1 font-og-mono text-og-sm tabular-nums text-og-fg", children: [
1846
- /* @__PURE__ */ jsx9(
1847
- RadioIcon,
1848
- {
1849
- className: cn("size-3", health.stale ? "text-og-fg-subtle" : tone.text),
1850
- "aria-hidden": true
1851
- }
1852
- ),
1853
- sampledAgo === "now" ? t("machines.machineDetail.live") : t("machines.machineDetail.sampledagoAgo", { sampledAgo })
1854
- ] })
1855
- ] }),
1856
- machine.lastSeenAt && /* @__PURE__ */ jsxs8("div", { className: "hidden flex-col items-end gap-0.5 sm:flex", children: [
1857
- /* @__PURE__ */ jsx9("span", { className: "text-[10px] font-medium uppercase tracking-wide text-og-fg-subtle", children: t("machines.machineDetail.lastSeen") }),
1858
- /* @__PURE__ */ jsx9("span", { className: "font-og-mono text-og-sm tabular-nums text-og-fg-muted", children: formatRelativeTime(t, machine.lastSeenAt, new Date(now)) })
1859
- ] })
1860
- ] })
1861
- ] }),
1862
- latest && /* @__PURE__ */ jsx9(
1863
- "div",
1864
- {
1865
- className: cn(
1866
- "grid gap-px overflow-hidden rounded-og-md border border-og-border bg-og-border",
1867
- tileCols
1868
- ),
1869
- children: visible.map((m) => {
1870
- const pts = pointsFor(m, series);
1871
- return /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-1.5 bg-og-surface-1 p-3", children: [
1872
- /* @__PURE__ */ jsx9("span", { className: "text-[10px] font-medium uppercase tracking-wide text-og-fg-subtle", children: m.title }),
1873
- /* @__PURE__ */ jsx9("span", { className: "font-og-mono text-og-md font-medium tabular-nums text-og-fg", children: m.current(latest) }),
1874
- /* @__PURE__ */ jsx9(MetricSparkline, { points: pts, color: m.color, yMax: m.yMax, height: 22 }),
1875
- m.sub && /* @__PURE__ */ jsx9("span", { className: "truncate font-og-mono text-[10px] text-og-fg-subtle", children: m.sub(latest) })
1876
- ] }, m.key);
1877
- })
1878
- }
1879
- )
1880
- ]
1881
- }
1882
- ),
1883
- /* @__PURE__ */ jsx9(
1884
- MachineAgentPanel,
1885
- {
1886
- machine,
1887
- now,
1888
- onUpdateAgent,
1889
- updatingAgent
1890
- }
1891
- ),
1892
- machine.enrollmentId && !machine.isSessionGroup ? /* @__PURE__ */ jsx9(MachineAudienceRow, { machine, onChange: onChangeAudience }) : null,
1893
- machine.scope === "organization" && machine.enrollmentId && reachSummary ? /* @__PURE__ */ jsx9(MachineReachRow, { machine, summary: reachSummary, onChange: onChangeReach }) : null,
1894
- whereItWorks,
1895
- onUpdateOperationPolicy && machine.enrollmentId && machine.operationPolicy ? /* @__PURE__ */ jsx9(
1896
- MachineOperationPolicyEditor,
1897
- {
1898
- policy: machine.operationPolicy,
1899
- memorySupported: machine.runtime?.capabilities.operationResourcePolicy === true,
1900
- cpuSupported: machine.runtime?.capabilities.operationCpuQuota === true,
1901
- saving: updatingOperationPolicy,
1902
- onSave: (request) => onUpdateOperationPolicy(machine, request)
1903
- }
1904
- ) : null,
1905
- /* @__PURE__ */ jsx9("div", { className: "grid grid-cols-1 gap-3 lg:grid-cols-2", children: visible.map((m) => {
1906
- const pts = pointsFor(m, series);
1907
- return /* @__PURE__ */ jsxs8(
1908
- "div",
1909
- {
1910
- className: "flex flex-col gap-3 rounded-og-lg border border-og-border bg-og-surface-1 p-4 shadow-og-sm",
1911
- children: [
1912
- /* @__PURE__ */ jsxs8("div", { className: "flex items-baseline justify-between", children: [
1913
- /* @__PURE__ */ jsx9("span", { className: "text-og-sm font-medium text-og-fg", children: m.title }),
1914
- latest && /* @__PURE__ */ jsx9("span", { className: "font-og-mono text-og-sm tabular-nums text-og-fg-muted", children: m.current(latest) })
1915
- ] }),
1916
- /* @__PURE__ */ jsx9(
1917
- MetricHistoryChart,
1918
- {
1919
- points: pts,
1920
- yMax: m.yMax,
1921
- unit: m.unit,
1922
- color: m.color,
1923
- thresholds: m.thresholds,
1924
- rangeLabel: WINDOW_LABEL(t)[window],
1925
- height: 128,
1926
- className: cn(loadingSeries && "opacity-50 transition-opacity")
1927
- }
1928
- )
1929
- ]
1930
- },
1931
- m.key
1932
- );
1933
- }) })
1934
- ] });
1935
- }
1936
-
1937
- // src/components/machines-dashboard.tsx
1938
- import { LaptopIcon as LaptopIcon3, PlusIcon, RefreshCwIcon } from "lucide-react";
1939
- import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
1940
- function EmptyState({ onEnroll }) {
1941
- const t = useOpenGeniText();
1942
- return /* @__PURE__ */ jsxs9(
1943
- "div",
1944
- {
1945
- "data-machines-empty": true,
1946
- className: "flex flex-col items-center justify-center gap-3 rounded-og-lg border border-dashed border-og-border bg-og-surface-1 px-6 py-12 text-center",
1947
- children: [
1948
- /* @__PURE__ */ jsx10("span", { className: "flex size-10 items-center justify-center rounded-full bg-og-surface-2 text-og-fg-subtle", children: /* @__PURE__ */ jsx10(LaptopIcon3, { className: "size-5", "aria-hidden": true }) }),
1949
- /* @__PURE__ */ jsxs9("div", { className: "space-y-1", children: [
1950
- /* @__PURE__ */ jsx10("p", { className: "text-og-base font-medium text-og-fg", children: t("machinesDashboard.noMachinesYet") }),
1951
- /* @__PURE__ */ jsx10("p", { className: "max-w-xs text-og-sm text-og-fg-muted", children: t("machinesDashboard.connectYourOwnComputerTo") })
1952
- ] }),
1953
- onEnroll ? /* @__PURE__ */ jsxs9(
1954
- "button",
1955
- {
1956
- type: "button",
1957
- "data-enroll-cta": true,
1958
- onClick: onEnroll,
1959
- className: "inline-flex items-center gap-1.5 rounded-og-sm border border-og-primary-border bg-og-primary text-og-primary-fg px-3 py-1.5 text-og-sm font-medium transition-colors hover:bg-og-primary-hover pointer-coarse:min-h-11",
1960
- children: [
1961
- /* @__PURE__ */ jsx10(PlusIcon, { className: "size-3.5", "aria-hidden": true }),
1962
- t("machinesDashboard.connectAMachine")
1963
- ]
1964
- }
1965
- ) : null
1966
- ]
1967
- }
1968
- );
1969
- }
1970
- function Header({
1971
- count,
1972
- onEnroll
1973
- }) {
1974
- const t = useOpenGeniText();
1975
- return /* @__PURE__ */ jsxs9("div", { className: "flex items-center justify-between gap-3", children: [
1976
- /* @__PURE__ */ jsxs9("div", { className: "flex items-baseline gap-2", children: [
1977
- /* @__PURE__ */ jsx10("h2", { className: "text-og-base font-semibold text-og-fg", children: t("machinesDashboard.machines") }),
1978
- /* @__PURE__ */ jsx10("span", { className: "font-og-mono text-og-xs text-og-fg-subtle", children: count })
1979
- ] }),
1980
- /* @__PURE__ */ jsx10("div", { className: "flex items-center gap-1.5", children: onEnroll ? /* @__PURE__ */ jsxs9(
1981
- "button",
1982
- {
1983
- type: "button",
1984
- "data-enroll-cta": true,
1985
- onClick: onEnroll,
1986
- className: "inline-flex items-center gap-1.5 rounded-og-sm border border-og-border px-2.5 py-1 text-og-sm font-medium text-og-fg-muted transition-colors hover:border-og-border-strong hover:text-og-fg pointer-coarse:min-h-11",
1987
- children: [
1988
- /* @__PURE__ */ jsx10(PlusIcon, { className: "size-3.5", "aria-hidden": true }),
1989
- t("machinesDashboard.connectAMachine")
1990
- ]
1991
- }
1992
- ) : null })
1993
- ] });
1994
- }
1995
- function MachinesDashboard({
1996
- machines,
1997
- activeSandboxId,
1998
- loading,
1999
- error,
2000
- onAttach,
2001
- attachingSandboxId,
2002
- onUpdateAgent,
2003
- canUpdateMachine,
2004
- updatingEnrollmentId,
2005
- seriesByMachine,
2006
- onOpenDetail,
2007
- now,
2008
- onEnroll,
2009
- onRefresh,
2010
- className
2011
- }) {
2012
- const t = useOpenGeniText();
2013
- const isEmpty = !loading && !error && machines.length === 0;
2014
- return /* @__PURE__ */ jsxs9("section", { "data-machines-dashboard": true, className: cn("og-root flex flex-col gap-3", className), children: [
2015
- /* @__PURE__ */ jsx10(Header, { count: machines.length, onEnroll }),
2016
- error ? /* @__PURE__ */ jsxs9(
2017
- "div",
2018
- {
2019
- "data-machines-error": true,
2020
- className: "flex flex-wrap items-center justify-between gap-2 rounded-og-md border border-og-status-failed/30 bg-og-status-failed/10 px-3 py-2 text-og-sm text-og-status-failed",
2021
- children: [
2022
- /* @__PURE__ */ jsx10("span", { children: t("machinesDashboard.couldNotLoadMachinesMessage", { message: error.message }) }),
2023
- onRefresh ? /* @__PURE__ */ jsxs9(
2024
- "button",
2025
- {
2026
- type: "button",
2027
- "data-machines-retry": true,
2028
- onClick: onRefresh,
2029
- disabled: loading,
2030
- className: "inline-flex items-center gap-1.5 rounded-og-sm border border-og-status-failed/30 px-2 py-1 text-og-xs font-medium transition-colors hover:border-og-status-failed/50 disabled:cursor-not-allowed disabled:opacity-60 pointer-coarse:min-h-11",
2031
- children: [
2032
- /* @__PURE__ */ jsx10(RefreshCwIcon, { className: cn("size-3.5", loading && "animate-og-spin"), "aria-hidden": true }),
2033
- loading ? t("machinesDashboard.retrying") : t("machinesDashboard.retry")
2034
- ]
2035
- }
2036
- ) : null
2037
- ]
2038
- }
2039
- ) : null,
2040
- loading && machines.length === 0 ? /* @__PURE__ */ jsx10("div", { "data-machines-loading": true, className: "grid gap-3 sm:grid-cols-2", children: [0, 1].map((i) => /* @__PURE__ */ jsx10(
2041
- "div",
2042
- {
2043
- className: "h-36 animate-og-pulse rounded-og-lg border border-og-border bg-og-surface-1"
2044
- },
2045
- i
2046
- )) }) : isEmpty ? /* @__PURE__ */ jsx10(EmptyState, { onEnroll }) : /* @__PURE__ */ jsx10("div", { className: "grid gap-3 sm:grid-cols-2 xl:grid-cols-3", "data-machines-grid": true, children: machines.map((machine) => /* @__PURE__ */ jsx10(
2047
- MachineCard,
2048
- {
2049
- machine: {
2050
- ...machine,
2051
- active: machine.active || machine.sandboxId === activeSandboxId
2052
- },
2053
- onAttach,
2054
- attaching: attachingSandboxId === machine.sandboxId,
2055
- onUpdateAgent: canUpdateMachine && !canUpdateMachine(machine) ? void 0 : onUpdateAgent,
2056
- updatingAgent: updatingEnrollmentId === machine.enrollmentId,
2057
- series: seriesByMachine?.[machine.sandboxId],
2058
- onOpenDetail,
2059
- now
2060
- },
2061
- machine.sandboxId
2062
- )) })
2063
- ] });
2064
- }
2065
-
2066
- // src/components/machine-dock-bar.tsx
2067
- import { LaptopIcon as LaptopIcon4, CpuIcon as CpuIcon3, UsersIcon as UsersIcon3 } from "lucide-react";
2068
- import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
2069
- function MachineDockBar({ name, kind, state, className }) {
2070
- const t = useOpenGeniText();
2071
- const Icon = kind === "selfhosted" || kind === "local" ? LaptopIcon4 : CpuIcon3;
2072
- const stateBadge = MACHINE_STATE_BADGE_META(t)[state];
2073
- return /* @__PURE__ */ jsxs10(
2074
- "div",
2075
- {
2076
- "data-machine-dock-bar": true,
2077
- className: cn(
2078
- "flex shrink-0 items-center justify-between gap-2 border-b border-og-border bg-og-surface-1 px-2.5 py-1",
2079
- className
2080
- ),
2081
- children: [
2082
- /* @__PURE__ */ jsxs10("div", { className: "flex min-w-0 items-center gap-1.5", children: [
2083
- /* @__PURE__ */ jsx11(Icon, { className: "size-3.5 shrink-0 text-og-fg-subtle", "aria-hidden": true }),
2084
- /* @__PURE__ */ jsx11("span", { className: "truncate text-[11px] font-medium text-og-fg", children: name }),
2085
- stateBadge ? /* @__PURE__ */ jsx11(
2086
- "span",
2087
- {
2088
- "data-state-badge": state,
2089
- className: cn(
2090
- "shrink-0 rounded-full border px-1.5 py-px text-[10px] font-medium",
2091
- stateBadge.badgeClassName
2092
- ),
2093
- children: stateBadge.label
2094
- }
2095
- ) : null
2096
- ] }),
2097
- /* @__PURE__ */ jsx11(
2098
- ConnectionStatusPill,
2099
- {
2100
- status: connectionStatusForState(state),
2101
- size: "sm",
2102
- className: "shrink-0"
2103
- }
2104
- )
2105
- ]
2106
- }
2107
- );
2108
- }
2109
- function SharedMachineDisclosure({
2110
- sharedSessionCount,
2111
- density = "compact",
2112
- className
2113
- }) {
2114
- const t = useOpenGeniText();
2115
- const others = Math.max(0, sharedSessionCount - 1);
2116
- return /* @__PURE__ */ jsxs10(
2117
- "div",
2118
- {
2119
- "data-shared-disclosure": true,
2120
- className: cn(
2121
- "flex items-center gap-1.5 border-og-accent/25 bg-og-accent-soft text-og-fg-muted",
2122
- density === "full" ? "rounded-og-md border px-3 py-2 text-[12px]" : "border-b px-2.5 py-1 text-[11px]",
2123
- className
2124
- ),
2125
- children: [
2126
- /* @__PURE__ */ jsx11(UsersIcon3, { className: "size-3.5 shrink-0 text-og-accent", "aria-hidden": true }),
2127
- /* @__PURE__ */ jsxs10("span", { children: [
2128
- t("machineDockBar.shared"),
2129
- " ",
2130
- others === 1 ? t("machineDockBar.anotherSessionIs") : t("machineDockBar.othersOtherSessionsAre", { others }),
2131
- " ",
2132
- t("machineDockBar.onThisMachineTheySee")
2133
- ] })
2134
- ]
2135
- }
2136
- );
2137
- }
2138
-
2139
- // src/components/enrollment-device-flow.tsx
2140
- import { CopyIcon, ExternalLinkIcon, LaptopIcon as LaptopIcon5, TerminalIcon } from "lucide-react";
2141
- import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
2142
- var PHASE_TO_STATE = {
2143
- pending: "enrolling",
2144
- authorized: "online",
2145
- denied: "offline",
2146
- expired: "offline",
2147
- disabled: "offline"
2148
- };
2149
- function PhaseLabel({ phase }) {
2150
- const t = useOpenGeniText();
2151
- const text = {
2152
- pending: t("enrollmentDeviceFlow.waitingForApproval"),
2153
- authorized: t("enrollmentDeviceFlow.connected"),
2154
- denied: t("enrollmentDeviceFlow.denied"),
2155
- expired: t("enrollmentDeviceFlow.codeExpired"),
2156
- disabled: t("enrollmentDeviceFlow.enrollmentDisabled")
2157
- };
2158
- return /* @__PURE__ */ jsx12("span", { children: text[phase] });
2159
- }
2160
- function EnrollmentDeviceFlow({
2161
- userCode,
2162
- verificationUri,
2163
- verificationUriComplete,
2164
- installCommand,
2165
- phase = "pending",
2166
- expiresInSeconds,
2167
- onCopyCode,
2168
- onCopyInstall,
2169
- onOpenVerification,
2170
- className
2171
- }) {
2172
- const t = useOpenGeniText();
2173
- const href = verificationUriComplete ?? verificationUri;
2174
- const codeIsPlaceholder = !/[A-Za-z0-9]/.test(userCode);
2175
- const awaitingCode = phase === "pending" && codeIsPlaceholder;
2176
- return /* @__PURE__ */ jsxs11(
2177
- "div",
2178
- {
2179
- "data-enrollment-device-flow": true,
2180
- className: cn(
2181
- "og-root flex w-full max-w-md flex-col gap-4 rounded-og-lg border border-og-border bg-og-surface-1 p-5 shadow-og-sm",
2182
- className
2183
- ),
2184
- children: [
2185
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between gap-3", children: [
2186
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-2", children: [
2187
- /* @__PURE__ */ jsx12("span", { className: "flex size-7 items-center justify-center rounded-full bg-og-surface-2 text-og-fg-muted", children: /* @__PURE__ */ jsx12(LaptopIcon5, { className: "size-4", "aria-hidden": true }) }),
2188
- /* @__PURE__ */ jsx12("h2", { className: "text-og-menu font-semibold text-og-fg", children: t("enrollmentDeviceFlow.connectAMachine") })
2189
- ] }),
2190
- /* @__PURE__ */ jsx12(
2191
- ConnectionStatusPill,
2192
- {
2193
- status: PHASE_TO_STATE[phase] === "online" ? "online" : PHASE_TO_STATE[phase] === "offline" ? "offline" : "reconnecting",
2194
- label: /* @__PURE__ */ jsx12(PhaseLabel, { phase }),
2195
- size: "sm"
2196
- }
2197
- )
2198
- ] }),
2199
- installCommand ? /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-1.5", children: [
2200
- /* @__PURE__ */ jsx12("span", { className: "text-[11px] font-medium uppercase tracking-wide text-og-fg-subtle", children: t("enrollmentDeviceFlow.n1RunOnTheMachine") }),
2201
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between gap-2 overflow-hidden rounded-og-md border border-og-border bg-og-bg px-2.5 py-1.5", children: [
2202
- /* @__PURE__ */ jsxs11("code", { className: "flex min-w-0 items-center gap-2 overflow-x-auto font-og-mono text-[12px] text-og-fg", children: [
2203
- /* @__PURE__ */ jsx12(TerminalIcon, { className: "size-3.5 shrink-0 text-og-fg-subtle", "aria-hidden": true }),
2204
- installCommand
2205
- ] }),
2206
- /* @__PURE__ */ jsx12(
2207
- "button",
2208
- {
2209
- type: "button",
2210
- "data-copy-install": true,
2211
- onClick: onCopyInstall,
2212
- title: t("enrollmentDeviceFlow.copyCommand"),
2213
- className: "shrink-0 rounded-og-sm p-1.5 text-og-fg-subtle transition-colors hover:bg-og-surface-2 hover:text-og-fg",
2214
- children: /* @__PURE__ */ jsx12(CopyIcon, { className: "size-4", "aria-hidden": true })
2215
- }
2216
- )
2217
- ] })
2218
- ] }) : null,
2219
- /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-1.5", children: [
2220
- /* @__PURE__ */ jsx12("span", { className: "text-[11px] font-medium uppercase tracking-wide text-og-fg-subtle", children: installCommand ? t("enrollmentDeviceFlow.n2ApproveTheMachine") : t("enrollmentDeviceFlow.approveTheMachine") }),
2221
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between gap-3 rounded-og-md border border-og-border bg-og-bg px-3 py-2.5", children: [
2222
- awaitingCode ? /* @__PURE__ */ jsx12("span", { "data-user-code": true, className: "font-og-mono text-[13px] text-og-fg-subtle", children: t("enrollmentDeviceFlow.runTheCommandAboveYour") }) : /* @__PURE__ */ jsx12(
2223
- "span",
2224
- {
2225
- "data-user-code": true,
2226
- className: "select-all font-og-mono text-2xl font-semibold tracking-[0.25em] text-og-fg",
2227
- children: userCode
2228
- }
2229
- ),
2230
- /* @__PURE__ */ jsx12(
2231
- "button",
2232
- {
2233
- type: "button",
2234
- "data-copy-code": true,
2235
- onClick: onCopyCode,
2236
- disabled: awaitingCode,
2237
- title: t("enrollmentDeviceFlow.copyCode"),
2238
- className: "shrink-0 rounded-og-sm p-1.5 text-og-fg-subtle transition-colors hover:bg-og-surface-2 hover:text-og-fg disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-transparent disabled:hover:text-og-fg-subtle",
2239
- children: /* @__PURE__ */ jsx12(CopyIcon, { className: "size-4", "aria-hidden": true })
2240
- }
2241
- )
2242
- ] })
2243
- ] }),
2244
- /* @__PURE__ */ jsxs11(
2245
- "a",
2246
- {
2247
- href,
2248
- "data-open-verification": true,
2249
- target: "_blank",
2250
- rel: "noreferrer",
2251
- onClick: onOpenVerification,
2252
- className: "inline-flex items-center justify-center gap-1.5 rounded-og-sm border border-og-primary-border bg-og-primary text-og-primary-fg px-3 py-2 text-og-menu font-medium transition-colors hover:bg-og-primary-hover",
2253
- children: [
2254
- t("enrollmentDeviceFlow.openApprovalPage"),
2255
- /* @__PURE__ */ jsx12(ExternalLinkIcon, { className: "size-3.5", "aria-hidden": true })
2256
- ]
2257
- }
2258
- ),
2259
- /* @__PURE__ */ jsx12("p", { className: "text-center text-[11px] text-og-fg-subtle", children: awaitingCode ? /* @__PURE__ */ jsxs11(Fragment3, { children: [
2260
- t("enrollmentDeviceFlow.theOneLinerPrintsA"),
2261
- " ",
2262
- /* @__PURE__ */ jsx12("span", { className: "font-og-mono text-og-fg-muted", children: verificationUri }),
2263
- " ",
2264
- t("enrollmentDeviceFlow.andConfirmTheCodeShown")
2265
- ] }) : /* @__PURE__ */ jsxs11(Fragment3, { children: [
2266
- t("enrollmentDeviceFlow.confirmCode"),
2267
- " ",
2268
- /* @__PURE__ */ jsx12("span", { className: "font-og-mono text-og-fg-muted", children: userCode }),
2269
- " ",
2270
- t("enrollmentDeviceFlow.theOnePrintedByThe"),
2271
- " ",
2272
- /* @__PURE__ */ jsx12("span", { className: "font-og-mono text-og-fg-muted", children: verificationUri }),
2273
- ".",
2274
- typeof expiresInSeconds === "number" ? /* @__PURE__ */ jsxs11(Fragment3, { children: [
2275
- " ",
2276
- t("enrollmentDeviceFlow.expiresIn"),
2277
- " ",
2278
- Math.max(0, Math.round(expiresInSeconds / 60)),
2279
- " ",
2280
- t("enrollmentDeviceFlow.min")
2281
- ] }) : null
2282
- ] }) })
2283
- ]
2284
- }
2285
- );
2286
- }
2287
-
2288
- // src/components/enrollment-consent.tsx
2289
- import { useState as useState3 } from "react";
2290
- import {
2291
- CircleAlertIcon as CircleAlertIcon2,
2292
- LaptopIcon as LaptopIcon6,
2293
- MonitorIcon as MonitorIcon2,
2294
- ScreenShareIcon,
2295
- ShieldAlertIcon,
2296
- TerminalIcon as TerminalIcon2,
2297
- UsersIcon as UsersIcon4
2298
- } from "lucide-react";
2299
- import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
2300
- function Capability({ icon, title, body }) {
2301
- return /* @__PURE__ */ jsxs12("li", { className: "flex items-start gap-2.5", children: [
2302
- /* @__PURE__ */ jsx13("span", { className: "mt-0.5 shrink-0 text-og-status-failed", children: icon }),
2303
- /* @__PURE__ */ jsxs12("span", { className: "min-w-0", children: [
2304
- /* @__PURE__ */ jsx13("span", { className: "block text-og-base font-medium text-og-fg", children: title }),
2305
- /* @__PURE__ */ jsx13("span", { className: "block text-og-sm text-og-fg-muted", children: body })
2306
- ] })
2307
- ] });
2308
- }
2309
- function EnrollmentConsent({
2310
- userCode,
2311
- machine,
2312
- phase = "review",
2313
- allowWorkspaceScope = true,
2314
- allowOrganizationScope = false,
2315
- onApprove,
2316
- onDeny,
2317
- errorMessage: errorMessage2,
2318
- className
2319
- }) {
2320
- const t = useOpenGeniText();
2321
- const [allowScreenControl, setAllowScreenControl] = useState3(machine.requestsScreenControl);
2322
- const [scope, setScope] = useState3("user");
2323
- const busy = phase === "approving";
2324
- const scopeCopy = {
2325
- user: {
2326
- label: t("enrollmentConsent.personal"),
2327
- body: t("enrollmentConsent.onlyYouCanUseThis")
2328
- },
2329
- workspace: {
2330
- label: t("enrollmentConsent.workspace"),
2331
- body: t("enrollmentConsent.everyoneWithAccessToThis")
2332
- },
2333
- organization: {
2334
- label: t("enrollmentConsent.organization"),
2335
- body: t("enrollmentConsent.membersOfThisOrganizationCan")
2336
- }
2337
- };
2338
- if (phase === "approved") {
2339
- return /* @__PURE__ */ jsx13(
2340
- ConsentResult,
2341
- {
2342
- className,
2343
- tone: "ok",
2344
- title: t("enrollmentConsent.machineConnected"),
2345
- body: t("enrollmentConsent.machinenameIsNowConnectedWith", {
2346
- machineName: machine.machineName,
2347
- lowerCase: scopeCopy[scope].label.toLowerCase()
2348
- })
2349
- }
2350
- );
2351
- }
2352
- if (phase === "denied") {
2353
- return /* @__PURE__ */ jsx13(
2354
- ConsentResult,
2355
- {
2356
- className,
2357
- tone: "muted",
2358
- title: t("enrollmentConsent.enrollmentDenied"),
2359
- body: t("enrollmentConsent.youDeclinedToConnectMachinename", {
2360
- machineName: machine.machineName
2361
- })
2362
- }
2363
- );
2364
- }
2365
- if (phase === "error") {
2366
- return /* @__PURE__ */ jsx13(
2367
- ConsentResult,
2368
- {
2369
- className,
2370
- tone: "danger",
2371
- title: t("enrollmentConsent.couldNotCompleteEnrollment"),
2372
- body: errorMessage2 ?? t("enrollmentConsent.theCodeMayHaveExpired")
2373
- }
2374
- );
2375
- }
2376
- return /* @__PURE__ */ jsxs12(
2377
- "div",
2378
- {
2379
- "data-enrollment-consent": true,
2380
- className: cn(
2381
- "og-root mx-auto flex w-full max-w-md flex-col gap-5 rounded-og-lg border border-og-status-failed/30 bg-og-surface-1 p-6 shadow-og-md",
2382
- className
2383
- ),
2384
- children: [
2385
- /* @__PURE__ */ jsxs12("div", { className: "flex items-start gap-3", children: [
2386
- /* @__PURE__ */ jsx13("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-og-status-failed/15 text-og-status-failed", children: /* @__PURE__ */ jsx13(ShieldAlertIcon, { className: "size-5", "aria-hidden": true }) }),
2387
- /* @__PURE__ */ jsxs12("div", { className: "min-w-0", children: [
2388
- /* @__PURE__ */ jsx13("h1", { className: "text-og-md font-semibold text-og-fg", children: t("enrollmentConsent.giveTheAgentYourWhole") }),
2389
- /* @__PURE__ */ jsxs12("p", { className: "mt-1 text-og-base text-og-fg-muted", children: [
2390
- t("enrollmentConsent.approvingLetsTheOpengeniAgent"),
2391
- " ",
2392
- /* @__PURE__ */ jsx13("span", { className: "font-medium text-og-fg", children: machine.machineName }),
2393
- " ",
2394
- t("enrollmentConsent.withFullAccessThisIs")
2395
- ] })
2396
- ] })
2397
- ] }),
2398
- /* @__PURE__ */ jsxs12("div", { className: "flex flex-wrap items-center gap-2 rounded-og-md border border-og-border bg-og-surface-2 px-3 py-2 text-og-sm", children: [
2399
- /* @__PURE__ */ jsx13(LaptopIcon6, { className: "size-4 text-og-fg-subtle", "aria-hidden": true }),
2400
- /* @__PURE__ */ jsx13("span", { className: "font-medium text-og-fg", children: machine.machineName }),
2401
- /* @__PURE__ */ jsxs12("span", { className: "font-og-mono text-og-fg-subtle", children: [
2402
- machine.os,
2403
- "/",
2404
- machine.arch
2405
- ] }),
2406
- /* @__PURE__ */ jsx13("span", { "aria-hidden": true, className: "text-og-fg-subtle", children: "\xB7" }),
2407
- /* @__PURE__ */ jsxs12("span", { className: "text-og-fg-subtle", children: [
2408
- t("enrollmentConsent.code"),
2409
- " ",
2410
- /* @__PURE__ */ jsx13("span", { className: "font-og-mono font-medium text-og-fg", children: userCode })
2411
- ] })
2412
- ] }),
2413
- /* @__PURE__ */ jsxs12("ul", { className: "flex flex-col gap-3", children: [
2414
- /* @__PURE__ */ jsx13(
2415
- Capability,
2416
- {
2417
- icon: /* @__PURE__ */ jsx13(TerminalIcon2, { className: "size-4", "aria-hidden": true }),
2418
- title: t("enrollmentConsent.readWriteRunAnything"),
2419
- body: t("enrollmentConsent.theAgentCanReadAnd")
2420
- }
2421
- ),
2422
- machine.canOfferDisplay ? /* @__PURE__ */ jsx13(
2423
- Capability,
2424
- {
2425
- icon: /* @__PURE__ */ jsx13(MonitorIcon2, { className: "size-4", "aria-hidden": true }),
2426
- title: t("enrollmentConsent.seeYourScreen"),
2427
- body: t("enrollmentConsent.theAgentCanCaptureThis")
2428
- }
2429
- ) : null,
2430
- /* @__PURE__ */ jsx13(
2431
- Capability,
2432
- {
2433
- icon: /* @__PURE__ */ jsx13(UsersIcon4, { className: "size-4", "aria-hidden": true }),
2434
- title: t("enrollmentConsent.labelAccessWhileConnected", {
2435
- label: scopeCopy[scope].label
2436
- }),
2437
- body: t("enrollmentConsent.bodyDisconnectTheAgentTo", { body: scopeCopy[scope].body })
2438
- }
2439
- )
2440
- ] }),
2441
- /* @__PURE__ */ jsxs12("fieldset", { className: "flex flex-col gap-2", disabled: busy, children: [
2442
- /* @__PURE__ */ jsx13("legend", { className: "mb-1 text-og-sm font-medium text-og-fg", children: t("enrollmentConsent.whoCanUseThisMachine") }),
2443
- ["user", "workspace", "organization"].map((candidate) => {
2444
- const disabled = candidate === "organization" && !allowOrganizationScope || candidate === "workspace" && !allowWorkspaceScope;
2445
- return /* @__PURE__ */ jsxs12(
2446
- "label",
2447
- {
2448
- "data-enrollment-scope": candidate,
2449
- "data-disabled": disabled ? "true" : "false",
2450
- className: cn(
2451
- "flex items-start gap-2.5 rounded-og-md border border-og-border bg-og-bg px-3 py-2.5",
2452
- disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"
2453
- ),
2454
- children: [
2455
- /* @__PURE__ */ jsx13(
2456
- "input",
2457
- {
2458
- type: "radio",
2459
- name: "enrollment-scope",
2460
- value: candidate,
2461
- checked: scope === candidate,
2462
- disabled: disabled || busy,
2463
- onChange: () => setScope(candidate),
2464
- className: "mt-0.5 size-4 accent-og-accent"
2465
- }
2466
- ),
2467
- /* @__PURE__ */ jsxs12("span", { className: "min-w-0", children: [
2468
- /* @__PURE__ */ jsxs12("span", { className: "block text-og-base font-medium text-og-fg", children: [
2469
- scopeCopy[candidate].label,
2470
- disabled ? candidate === "organization" ? " \xB7 organization admin required" : " \xB7 workspace admin required" : ""
2471
- ] }),
2472
- /* @__PURE__ */ jsx13("span", { className: "block text-og-sm text-og-fg-muted", children: scopeCopy[candidate].body })
2473
- ] })
2474
- ]
2475
- },
2476
- candidate
2477
- );
2478
- })
2479
- ] }),
2480
- machine.canOfferDisplay ? /* @__PURE__ */ jsxs12(
2481
- "label",
2482
- {
2483
- "data-screen-control-toggle": true,
2484
- className: "flex cursor-pointer items-start gap-3 rounded-og-md border border-og-border bg-og-bg px-3 py-2.5",
2485
- children: [
2486
- /* @__PURE__ */ jsx13(
2487
- "input",
2488
- {
2489
- type: "checkbox",
2490
- checked: allowScreenControl,
2491
- disabled: busy,
2492
- onChange: (e) => setAllowScreenControl(e.target.checked),
2493
- className: "mt-0.5 size-4 accent-og-accent"
2494
- }
2495
- ),
2496
- /* @__PURE__ */ jsxs12("span", { className: "min-w-0", children: [
2497
- /* @__PURE__ */ jsxs12("span", { className: "flex items-center gap-1.5 text-og-base font-medium text-og-fg", children: [
2498
- /* @__PURE__ */ jsx13(ScreenShareIcon, { className: "size-3.5 text-og-fg-muted", "aria-hidden": true }),
2499
- t("enrollmentConsent.alsoLetTheAgentControl")
2500
- ] }),
2501
- /* @__PURE__ */ jsx13("span", { className: "mt-0.5 block text-og-sm text-og-fg-muted", children: t("enrollmentConsent.optionalEnablesComputerUseThe") })
2502
- ] })
2503
- ]
2504
- }
2505
- ) : /* @__PURE__ */ jsxs12("p", { className: "flex items-start gap-2 rounded-og-md border border-og-border bg-og-bg px-3 py-2 text-og-sm text-og-fg-muted", children: [
2506
- /* @__PURE__ */ jsx13(CircleAlertIcon2, { className: "mt-px size-3.5 shrink-0 text-og-fg-subtle", "aria-hidden": true }),
2507
- t("enrollmentConsent.thisMachineHasNoDisplay")
2508
- ] }),
2509
- /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-2", children: [
2510
- /* @__PURE__ */ jsx13(
2511
- "button",
2512
- {
2513
- type: "button",
2514
- "data-deny": true,
2515
- disabled: busy,
2516
- onClick: () => onDeny?.(),
2517
- className: "flex-1 rounded-og-sm border border-og-border px-3 py-2 text-og-sm font-medium text-og-fg-muted transition-colors hover:border-og-border-strong hover:text-og-fg disabled:opacity-50 pointer-coarse:min-h-11",
2518
- children: t("enrollmentConsent.cancel")
2519
- }
2520
- ),
2521
- /* @__PURE__ */ jsx13(
2522
- "button",
2523
- {
2524
- type: "button",
2525
- "data-approve": true,
2526
- disabled: busy,
2527
- onClick: () => onApprove?.(allowScreenControl, scope),
2528
- className: "flex-1 rounded-og-sm bg-og-status-failed px-3 py-2 text-og-sm font-semibold text-og-accent-fg transition-colors hover:opacity-90 disabled:opacity-50 pointer-coarse:min-h-11",
2529
- children: busy ? t("enrollmentConsent.connecting") : t("enrollmentConsent.grantFullAccess")
2530
- }
2531
- )
2532
- ] })
2533
- ]
2534
- }
2535
- );
2536
- }
2537
- function ConsentResult({
2538
- tone,
2539
- title,
2540
- body,
2541
- className
2542
- }) {
2543
- const ring = tone === "ok" ? "border-og-status-running/30" : tone === "danger" ? "border-og-status-failed/30" : "border-og-border";
2544
- const iconClass = tone === "ok" ? "text-og-status-running" : tone === "danger" ? "text-og-status-failed" : "text-og-fg-subtle";
2545
- return /* @__PURE__ */ jsxs12(
2546
- "div",
2547
- {
2548
- "data-enrollment-result": tone,
2549
- className: cn(
2550
- "og-root mx-auto flex w-full max-w-md flex-col items-center gap-3 rounded-og-lg border bg-og-surface-1 p-6 text-center shadow-og-md",
2551
- ring,
2552
- className
2553
- ),
2554
- children: [
2555
- /* @__PURE__ */ jsx13(
2556
- "span",
2557
- {
2558
- className: cn(
2559
- "flex size-10 items-center justify-center rounded-full bg-og-surface-2",
2560
- iconClass
2561
- ),
2562
- children: /* @__PURE__ */ jsx13(LaptopIcon6, { className: "size-5", "aria-hidden": true })
2563
- }
2564
- ),
2565
- /* @__PURE__ */ jsx13("h1", { className: "text-og-md font-semibold text-og-fg", children: title }),
2566
- /* @__PURE__ */ jsx13("p", { className: "max-w-sm text-og-base text-og-fg-muted", children: body })
2567
- ]
2568
- }
2569
- );
2570
- }
2571
-
2572
- export {
2573
- connectionStatusForState,
2574
- CONNECTION_STATUS_META,
2575
- MACHINE_STATE_BADGE_META,
2576
- ConnectionStatusPill,
2577
- ConnectionDot,
2578
- MachineStatusPill,
2579
- MachineMetrics,
2580
- deriveHealth,
2581
- HEALTH_TOKEN,
2582
- healthPulses,
2583
- MachineHealthPill,
2584
- MetricSparkline,
2585
- MachineCard,
2586
- MetricHistoryChart,
2587
- METRIC_WINDOWS,
2588
- WINDOW_LABEL,
2589
- METRICS,
2590
- pointsFor,
2591
- MachineOperationPolicyEditor,
2592
- MachineDetail,
2593
- MachinesDashboard,
2594
- MachineDockBar,
2595
- SharedMachineDisclosure,
2596
- EnrollmentDeviceFlow,
2597
- EnrollmentConsent
2598
- };
2599
- //# sourceMappingURL=chunk-EYUT5Y6V.js.map