@opengeni/react 6.40.0 → 6.41.1-canary.45704649926001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/app-state.js +34 -34
- package/dist/app/components/Composer.js +45 -45
- package/dist/app/components/add-card-dialog.js +3 -3
- package/dist/app/components/add-card.js +2 -2
- package/dist/app/components/agent/agent-capability-picker.js +10 -10
- package/dist/app/components/agents/agent-can-use.js +51 -50
- package/dist/app/components/agents/agent-cost.js +2 -2
- package/dist/app/components/agents/agent-form-page.js +153 -152
- package/dist/app/components/agents/agent-form-page.js.map +1 -1
- package/dist/app/components/agents/agent-page.js +134 -133
- package/dist/app/components/agents/agent-setup-sections.js +81 -80
- package/dist/app/components/agents/agent-skills.js +15 -15
- package/dist/app/components/agents/agent-trigger-chat-field.js +6 -6
- package/dist/app/components/agents/agent-trigger-dialog.js +35 -35
- package/dist/app/components/agents/agent-trigger-picker.js +8 -8
- package/dist/app/components/agents/agent-trigger-repositories.js +16 -16
- package/dist/app/components/agents/agents-page.js +99 -98
- package/dist/app/components/agents/agents-page.js.map +1 -1
- package/dist/app/components/agents/composer-agent-chip.js +60 -59
- package/dist/app/components/agents/session-agent-chip.js +55 -54
- package/dist/app/components/artifacts/app-package.js +13 -13
- package/dist/app/components/artifacts/artifact-browse-controls.js +3 -3
- package/dist/app/components/artifacts/artifact-library.js +30 -30
- package/dist/app/components/artifacts/artifact-page-chrome.js +1 -1
- package/dist/app/components/artifacts/artifact-viewer.js +64 -63
- package/dist/app/components/artifacts/artifact-viewer.js.map +1 -1
- package/dist/app/components/artifacts/chat-interactive-block.js +30 -28
- package/dist/app/components/artifacts/chat-interactive-block.js.map +1 -1
- package/dist/app/components/artifacts/copy-artifact-link.js +3 -3
- package/dist/app/components/artifacts/file-reach-dialog.js +13 -13
- package/dist/app/components/artifacts/inline-chat-image.js +52 -51
- package/dist/app/components/artifacts/ready-made-apps.js +13 -13
- package/dist/app/components/artifacts/retained-file-preview.js +57 -56
- package/dist/app/components/artifacts/retained-text-preview.js +7 -7
- package/dist/app/components/artifacts/site-actions.js +11 -11
- package/dist/app/components/artifacts/site-audience.js +8 -8
- package/dist/app/components/artifacts/site-conversations.js +34 -34
- package/dist/app/components/artifacts/site-data.js +30 -30
- package/dist/app/components/artifacts/site-public-link.js +1 -1
- package/dist/app/components/artifacts/site-publishing-page.js +72 -72
- package/dist/app/components/artifacts/site-publishing.js +55 -55
- package/dist/app/components/artifacts/site-settings.js +71 -71
- package/dist/app/components/artifacts/site-version-menu.js +9 -9
- package/dist/app/components/billing-class-mark.js +7 -7
- package/dist/app/components/capabilities/capability-detail-sheet.js +18 -18
- package/dist/app/components/capabilities/capability-logo-source.js +31 -30
- package/dist/app/components/capabilities/capability-logo.js +1 -1
- package/dist/app/components/capabilities/connection-account-picker.js +2 -2
- package/dist/app/components/capabilities/connection-ownership-selector.js +4 -4
- package/dist/app/components/capabilities/connector-tool-permissions.js +7 -7
- package/dist/app/components/capabilities/detail-dialog.js +3 -3
- package/dist/app/components/capabilities/native-connect-setup.js +36 -35
- package/dist/app/components/capabilities/own-logins-shared-heads-up.js +7 -7
- package/dist/app/components/capabilities/perform-capability-action.js +3 -3
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +35 -34
- package/dist/app/components/capabilities/session-capability-card.js +142 -141
- package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.js +49 -49
- package/dist/app/components/capabilities/session-connect-inputs-card.js +38 -37
- package/dist/app/components/capabilities/session-custom-mcp-card.js +43 -42
- package/dist/app/components/capabilities/session-github-card.js +49 -48
- package/dist/app/components/capabilities/session-machine-card.js +50 -50
- package/dist/app/components/capabilities/session-personal-github-card.js +35 -34
- package/dist/app/components/capabilities/session-plugin-card.js +23 -22
- package/dist/app/components/capabilities/use-capabilities-catalog.js +4 -4
- package/dist/app/components/capabilities/use-connection-accounts.js +3 -3
- package/dist/app/components/command-menu/chat-status.js +25 -25
- package/dist/app/components/command-menu/chat-switcher.js +90 -89
- package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
- package/dist/app/components/command-menu/command-menu.js +118 -117
- package/dist/app/components/command-menu/command-menu.js.map +1 -1
- package/dist/app/components/command-menu/shortcut-sheet.js +26 -26
- package/dist/app/components/composer-capabilities-menu-body.js +7 -7
- package/dist/app/components/composer-mobile-plus-panel.js +32 -32
- package/dist/app/components/composer-mobile-plus.js +5 -5
- package/dist/app/components/credit-amount-picker.js +2 -2
- package/dist/app/components/credit-required-gate.js +6 -6
- package/dist/app/components/credit-required-prompt.js +27 -27
- package/dist/app/components/credits/checkout-credits-celebration.js +4 -4
- package/dist/app/components/credits/checkout-return.js +4 -4
- package/dist/app/components/credits/coupon-redeem.js +1 -1
- package/dist/app/components/credits/credit-refusal-notice.js +8 -8
- package/dist/app/components/credits/own-subscription-plan-notice.js +3 -3
- package/dist/app/components/cross-slot-deep-link-recovery.js +2 -2
- package/dist/app/components/desktop/app-shots.js +10 -10
- package/dist/app/components/desktop/app-update.js +3 -3
- package/dist/app/components/desktop/computer-use.js +4 -4
- package/dist/app/components/desktop/this-computer.js +8 -8
- package/dist/app/components/feedback.js +11 -11
- package/dist/app/components/follow-up-repository-menu-body.js +12 -12
- package/dist/app/components/follow-up-repository-picker.js +1 -1
- package/dist/app/components/github-app-connect-launcher.js +2 -2
- package/dist/app/components/in-app-help-link.js +3 -3
- package/dist/app/components/knowledge/agent-learning-settings.js +5 -5
- package/dist/app/components/machines/connect-machine-dialog.js +25 -25
- package/dist/app/components/manual-repository-editor.js +1 -1
- package/dist/app/components/markdown.js +18 -17
- package/dist/app/components/model-identity.js +3 -3
- package/dist/app/components/models/models-ui.js +17 -17
- package/dist/app/components/models/provider-mark.js +3 -3
- package/dist/app/components/models/subscription-usage.js +5 -5
- package/dist/app/components/my-things.js +19 -19
- package/dist/app/components/own-where-it-works.js +12 -12
- package/dist/app/components/personal-resource-attachment-surface.js +4 -4
- package/dist/app/components/pickers.js +12 -12
- package/dist/app/components/rail/channel-create-dialog.js +6 -6
- package/dist/app/components/rail/project-glyph.js +54 -53
- package/dist/app/components/rail/project-profile.js +76 -75
- package/dist/app/components/rail/rail-context.js +2 -2
- package/dist/app/components/rail/rail-sections.js +155 -154
- package/dist/app/components/rail/session-header.js +125 -124
- package/dist/app/components/rail/session-list.js +153 -152
- package/dist/app/components/rail/session-row-content.js +6 -6
- package/dist/app/components/rail/session-row-hover-details.js +36 -36
- package/dist/app/components/rail/session-shell.js +194 -193
- package/dist/app/components/rail/site-session-group-heading.js +37 -37
- package/dist/app/components/repository-picker.js +12 -12
- package/dist/app/components/secrets/session-secrets-panel.js +3 -3
- package/dist/app/components/session/agent-configuration-panel.js +53 -53
- package/dist/app/components/session/artifact-session-page.js +8 -8
- package/dist/app/components/session/banners.js +22 -21
- package/dist/app/components/session/chat-avatar.js +54 -53
- package/dist/app/components/session/console-new-conversation.js +105 -104
- package/dist/app/components/session/descendant-requests.js +101 -100
- package/dist/app/components/session/descendant-requests.js.map +1 -1
- package/dist/app/components/session/editable-artifacts-workspace.js +62 -60
- package/dist/app/components/session/editable-artifacts-workspace.js.map +1 -1
- package/dist/app/components/session/failed-session-banner.js +28 -28
- package/dist/app/components/session/failure-recovery-boundary.js +3 -3
- package/dist/app/components/session/human-input-delegation-record.js +3 -3
- package/dist/app/components/session/human-input.js +88 -87
- package/dist/app/components/session/inspector.js +136 -135
- package/dist/app/components/session/inspector.js.map +1 -1
- package/dist/app/components/session/linked-panel.js +3 -3
- package/dist/app/components/session/message-actions.js +11 -11
- package/dist/app/components/session/model-recovery-notice.js +4 -4
- package/dist/app/components/session/new-session-settings-menu.js +32 -32
- package/dist/app/components/session/new-session-setup-strip.js +58 -57
- package/dist/app/components/session/own-account-wait-notice.js +8 -8
- package/dist/app/components/session/pinned-account-wait-notice.js +8 -8
- package/dist/app/components/session/pull-request-panel.js +26 -25
- package/dist/app/components/session/sandbox-recovery-actions.js +5 -5
- package/dist/app/components/session/sandbox-switcher.js +22 -22
- package/dist/app/components/session/sandbox-workspace.js +118 -117
- package/dist/app/components/session/search-markdown-highlight.js +19 -18
- package/dist/app/components/session/search-results-view.js +20 -19
- package/dist/app/components/session/session-admin-access.js +12 -12
- package/dist/app/components/session/session-admission-notice.js +11 -11
- package/dist/app/components/session/session-avatar-picker.js +61 -60
- package/dist/app/components/session/session-avatar.js +56 -55
- package/dist/app/components/session/session-machine-access-notice.js +11 -11
- package/dist/app/components/session/session-profile-dialog.js +72 -71
- package/dist/app/components/session/session-profile-editor.js +73 -72
- package/dist/app/components/session/session-retention.js +8 -8
- package/dist/app/components/session/session-search-dialog.js +26 -25
- package/dist/app/components/session/session-search-dialog.js.map +1 -1
- package/dist/app/components/session/session-skill-reviews.js +5 -5
- package/dist/app/components/session/session-tenancy-control.js +25 -25
- package/dist/app/components/session/session-unattended-setting.js +4 -4
- package/dist/app/components/session/session-usage-limit-section.js +13 -13
- package/dist/app/components/session/share-chat-dialog.js +12 -12
- package/dist/app/components/session/subagents.js +22 -22
- package/dist/app/components/session/subscription-account-indicator.js +25 -25
- package/dist/app/components/session/subscription-account-menu.js +7 -7
- package/dist/app/components/session-connectors-menu-body.js +11 -11
- package/dist/app/components/settings/row-select.js +6 -6
- package/dist/app/components/transcription-settings.js +10 -10
- package/dist/app/components/ui/destructive-confirm.js +11 -11
- package/dist/app/components/usage/usage-entry.js +8 -8
- package/dist/app/components/window-bar.js +25 -25
- package/dist/app/components/workspace-composer-plus.js +46 -45
- package/dist/app/components/workspace-reach.d.ts +2 -0
- package/dist/app/components/workspace-reach.js +6 -6
- package/dist/app/embed/session-app.js +406 -405
- package/dist/app/lib/actions/actions-provider.js +18 -18
- package/dist/app/lib/agent-capabilities.js +4 -4
- package/dist/app/lib/app-connect-card.js +16 -16
- package/dist/app/lib/app-shared-key-dialog.js +9 -9
- package/dist/app/lib/app-surfaces.js +1 -1
- package/dist/app/lib/app-sync-opt-in.js +7 -7
- package/dist/app/lib/codex-usage-query.js +3 -3
- package/dist/app/lib/composer-agent.js +2 -2
- package/dist/app/lib/composer-connectors.js +35 -34
- package/dist/app/lib/composer-send-blocking.js +2 -2
- package/dist/app/lib/console-site.js +9 -9
- package/dist/app/lib/console-text.js +2 -2
- package/dist/app/lib/events.js +32 -31
- package/dist/app/lib/failed-session-copy.js +5 -5
- package/dist/app/lib/feedback-capture.js +2 -2
- package/dist/app/lib/model-access-onboarding.js +4 -4
- package/dist/app/lib/move-chat-to-machine.js +5 -5
- package/dist/app/lib/personal-resource-attachments.js +1 -1
- package/dist/app/lib/session-branch-cache.js +18 -18
- package/dist/app/lib/session-create.js +5 -5
- package/dist/app/lib/session-group-pagination.js +18 -18
- package/dist/app/lib/session-hover-facts.js +25 -25
- package/dist/app/lib/session-list-dirty-scopes.js +19 -19
- package/dist/app/lib/session-model.js +2 -2
- package/dist/app/lib/session-rail.js +15 -15
- package/dist/app/lib/session-rename.js +3 -3
- package/dist/app/lib/sessions-group.js +23 -23
- package/dist/app/lib/site-tool-consent-dialog.js +24 -24
- package/dist/app/lib/site-tool-consent.js +1 -1
- package/dist/app/lib/turn-failure-analytics.js +6 -6
- package/dist/app/lib/use-artifact-catalog.js +2 -2
- package/dist/app/lib/use-duplicate-site.js +4 -4
- package/dist/app/lib/use-follow-up-repositories.js +9 -9
- package/dist/app/lib/use-personal-resource-attachment.js +2 -2
- package/dist/app/lib/use-workspace-integrations.js +2 -2
- package/dist/app/lib/use-workspace-machines.js +10 -10
- package/dist/app/lib/use-workspace-model-catalog.js +6 -6
- package/dist/app/lib/use-workspace-rigs.js +6 -6
- package/dist/app/lib/workspace-navigation-preference.js +5 -5
- package/dist/app/lib/workspace-scope-context.js +4 -4
- package/dist/app/routes/app-page-view.js +52 -50
- package/dist/app/routes/app-page-view.js.map +1 -1
- package/dist/app/routes/app-page.js +2 -2
- package/dist/app/routes/artifacts.js +170 -168
- package/dist/app/routes/artifacts.js.map +1 -1
- package/dist/app/routes/retained-artifact.js +110 -109
- package/dist/app/routes/retained-artifact.js.map +1 -1
- package/dist/app/routes/session-unavailable.js +6 -6
- package/dist/app/routes/session.js +249 -248
- package/dist/app/routes/sessions-index-hydration.js +6 -6
- package/dist/app/routes/sessions-index.js +204 -203
- package/dist/app/routes/site-view.js +210 -209
- package/dist/app/routes/site-view.js.map +1 -1
- package/dist/artifacts-document.js +4 -4
- package/dist/artifacts-presentation.js +9 -9
- package/dist/artifacts-spreadsheet.js +4 -4
- package/dist/artifacts.js +53 -51
- package/dist/automation-model.js +6 -6
- package/dist/automations.js +64 -64
- package/dist/browser-viewer-TRPZI6NT.js +23 -0
- package/dist/chat-interactive-block-Y4BS4JCM.js +24 -0
- package/dist/chunk-22E2YJHT.js +469 -0
- package/dist/chunk-2T6TN2YL.js +538 -0
- package/dist/chunk-2WNN26NW.js +175 -0
- package/dist/chunk-3432A6XB.js +88 -0
- package/dist/chunk-35U7NSOR.js +366 -0
- package/dist/chunk-3EPR76WS.js +773 -0
- package/dist/chunk-3FXXEU5D.js +144 -0
- package/dist/chunk-3MXOPOEU.js +650 -0
- package/dist/chunk-3PKDU4JI.js +340 -0
- package/dist/chunk-3PMO2BIV.js +12 -0
- package/dist/chunk-3XWHJNFY.js +48 -0
- package/dist/chunk-45WD2PKE.js +401 -0
- package/dist/chunk-4H2OWNRA.js +598 -0
- package/dist/chunk-4HVGOTMU.js +263 -0
- package/dist/chunk-4JER2ZMV.js +818 -0
- package/dist/chunk-4LVZ2VOQ.js +214 -0
- package/dist/chunk-4OGDD2EM.js +2434 -0
- package/dist/chunk-4PQC6WMF.js +54 -0
- package/dist/chunk-4UVSWAT3.js +794 -0
- package/dist/chunk-53A47RBX.js +214 -0
- package/dist/chunk-552KKENW.js +114 -0
- package/dist/chunk-55F7L6M3.js +177 -0
- package/dist/chunk-5AHIKB3O.js +449 -0
- package/dist/chunk-5KQD6MLJ.js +3996 -0
- package/dist/chunk-5KQD6MLJ.js.map +1 -0
- package/dist/chunk-5N4L5WTE.js +199 -0
- package/dist/chunk-5OUJCVZI.js +79 -0
- package/dist/chunk-5OYXQ7MH.js +65 -0
- package/dist/chunk-5RGF74K5.js +371 -0
- package/dist/chunk-5RGF74K5.js.map +1 -0
- package/dist/chunk-5TAVVMFX.js +225 -0
- package/dist/chunk-5Y3LYRNH.js +269 -0
- package/dist/chunk-5ZJKKE4T.js +386 -0
- package/dist/chunk-62DPSQRZ.js +57 -0
- package/dist/chunk-64KMWTJ6.js +608 -0
- package/dist/chunk-6F34IWSA.js +47 -0
- package/dist/chunk-6F34IWSA.js.map +1 -0
- package/dist/chunk-6MZBNUS7.js +73 -0
- package/dist/chunk-6YCE4ZC4.js +250 -0
- package/dist/chunk-6YROWWMX.js +175 -0
- package/dist/chunk-73RZ72VU.js +1236 -0
- package/dist/chunk-74KV436L.js +84 -0
- package/dist/chunk-7HKGLPV5.js +83 -0
- package/dist/chunk-7JSWODT6.js +466 -0
- package/dist/chunk-7K3PKWER.js +428 -0
- package/dist/chunk-7MPWC42V.js +1356 -0
- package/dist/chunk-7REO6FRN.js +141 -0
- package/dist/chunk-7V3OL7JC.js +850 -0
- package/dist/chunk-7V3OL7JC.js.map +1 -0
- package/dist/chunk-7YMWRNRQ.js +145 -0
- package/dist/chunk-A6H3KJ7G.js +131 -0
- package/dist/chunk-AGQIE6YU.js +1769 -0
- package/dist/chunk-AHQM4I5V.js +373 -0
- package/dist/chunk-AMTRO7XF.js +172 -0
- package/dist/chunk-AO4LTCG7.js +91 -0
- package/dist/chunk-APJ22OZV.js +2580 -0
- package/dist/chunk-APWL37KW.js +407 -0
- package/dist/chunk-AQEJOBQ2.js +15 -0
- package/dist/chunk-ARKNT6BX.js +234 -0
- package/dist/chunk-B2IHDMAR.js +211 -0
- package/dist/chunk-BCKIV26W.js +112 -0
- package/dist/chunk-BE26JUSD.js +259 -0
- package/dist/chunk-BOVCD6KD.js +171 -0
- package/dist/chunk-BQWV66A6.js +129 -0
- package/dist/chunk-BSQJXGGP.js +441 -0
- package/dist/chunk-BZY3MEVZ.js +3183 -0
- package/dist/chunk-C3D3OOEY.js +335 -0
- package/dist/chunk-CDHYO3DP.js +82 -0
- package/dist/chunk-CDV5JGVI.js +79 -0
- package/dist/chunk-CNW45M7G.js +207 -0
- package/dist/chunk-CUVQ37HB.js +150 -0
- package/dist/chunk-D32T3IIC.js +532 -0
- package/dist/chunk-D32VVOBJ.js +738 -0
- package/dist/chunk-D32VVOBJ.js.map +1 -0
- package/dist/chunk-D65BSM64.js +371 -0
- package/dist/chunk-D7435DWV.js +570 -0
- package/dist/chunk-DFH3M7B3.js +72 -0
- package/dist/chunk-DGWBQ76M.js +162 -0
- package/dist/chunk-DHJDTGSJ.js +372 -0
- package/dist/chunk-DKEFTNCD.js +400 -0
- package/dist/chunk-DNAF6MT4.js +107 -0
- package/dist/chunk-DSJ7K5IF.js +380 -0
- package/dist/chunk-DSJ7K5IF.js.map +1 -0
- package/dist/chunk-E35XY7DS.js +27 -0
- package/dist/chunk-E5T5WIIP.js +396 -0
- package/dist/chunk-EL6ECD34.js +166 -0
- package/dist/chunk-ELR6ITRC.js +467 -0
- package/dist/chunk-EPE3V2VE.js +851 -0
- package/dist/chunk-EYGQHHVW.js +584 -0
- package/dist/chunk-EYQEJHYP.js +307 -0
- package/dist/chunk-EZTH2XMH.js +276 -0
- package/dist/chunk-F3QVHVFS.js +287 -0
- package/dist/chunk-F5VWPREQ.js +1187 -0
- package/dist/chunk-FM7AQUBL.js +113 -0
- package/dist/chunk-FP6BUXJM.js +100 -0
- package/dist/chunk-FVU52L3I.js +249 -0
- package/dist/chunk-FZKNXNNO.js +218 -0
- package/dist/chunk-G3IXJWRY.js +236 -0
- package/dist/chunk-G6EI2O3N.js +333 -0
- package/dist/chunk-G7KHMA3E.js +256 -0
- package/dist/chunk-G7KHMA3E.js.map +1 -0
- package/dist/chunk-GB5T6YMZ.js +401 -0
- package/dist/chunk-GBLD6FOG.js +157 -0
- package/dist/chunk-GJBFFXCY.js +137 -0
- package/dist/chunk-GJDP2K2S.js +66 -0
- package/dist/chunk-GP26XTDX.js +187 -0
- package/dist/chunk-GTE6WP4N.js +606 -0
- package/dist/chunk-GWG3OAV7.js +108 -0
- package/dist/chunk-GXMHTMM6.js +931 -0
- package/dist/chunk-GYRN5O2E.js +107 -0
- package/dist/chunk-GZX7W2WW.js +65 -0
- package/dist/chunk-H3QI2G2B.js +403 -0
- package/dist/chunk-H7D4DVWY.js +849 -0
- package/dist/chunk-HCDGBBBJ.js +191 -0
- package/dist/chunk-HDSH6MIJ.js +3851 -0
- package/dist/chunk-HOEUPZ6O.js +89 -0
- package/dist/chunk-HPQRWTQB.js +772 -0
- package/dist/chunk-HUKGLWAY.js +174 -0
- package/dist/chunk-HUTQJY3F.js +23 -0
- package/dist/chunk-HWOYJOKK.js +266 -0
- package/dist/chunk-HZR3WGUP.js +96 -0
- package/dist/chunk-I7YUDPDR.js +138 -0
- package/dist/chunk-IDII52M4.js +27 -0
- package/dist/chunk-IDPWEUM7.js +103 -0
- package/dist/chunk-IEWQFGEC.js +192 -0
- package/dist/chunk-IKWGPFT5.js +300 -0
- package/dist/chunk-IKWGPFT5.js.map +1 -0
- package/dist/chunk-IMTACEXF.js +351 -0
- package/dist/chunk-IVWT6M6N.js +114 -0
- package/dist/chunk-JE2YXAVR.js +485 -0
- package/dist/chunk-JE2YXAVR.js.map +1 -0
- package/dist/chunk-JEUPIHIP.js +111 -0
- package/dist/chunk-JF4WX3GQ.js +168 -0
- package/dist/chunk-JJPYXUKC.js +2591 -0
- package/dist/chunk-JNHWTYDD.js +43 -0
- package/dist/chunk-JP7AOJWD.js +46 -0
- package/dist/chunk-JTWT2WQA.js +297 -0
- package/dist/chunk-JW3WIHWO.js +117 -0
- package/dist/chunk-JW7RJMEZ.js +134 -0
- package/dist/chunk-K76PXR3O.js +2317 -0
- package/dist/chunk-KCNIQN6V.js +107 -0
- package/dist/chunk-KH6KHYST.js +231 -0
- package/dist/chunk-KK4SEN7N.js +247 -0
- package/dist/chunk-KOKRGAAI.js +383 -0
- package/dist/chunk-KQFNTGAF.js +187 -0
- package/dist/chunk-KRLNC6TH.js +50 -0
- package/dist/chunk-KYDLVMKA.js +99 -0
- package/dist/chunk-KZQDP2JM.js +155 -0
- package/dist/chunk-L2EZ2HOX.js +132 -0
- package/dist/chunk-L2UAFR2D.js +33 -0
- package/dist/chunk-L4R7ORMD.js +4596 -0
- package/dist/chunk-LCLWN64E.js +227 -0
- package/dist/chunk-LFQI2C46.js +175 -0
- package/dist/chunk-LLYX4F5A.js +1628 -0
- package/dist/chunk-LQX5QCDS.js +215 -0
- package/dist/chunk-LRMHASG2.js +196 -0
- package/dist/chunk-LVUSG56I.js +5930 -0
- package/dist/chunk-LVUSG56I.js.map +1 -0
- package/dist/chunk-M5FX5KH5.js +629 -0
- package/dist/chunk-MLOTUQJJ.js +201 -0
- package/dist/chunk-MPUKGKXZ.js +209 -0
- package/dist/chunk-MS6LW4VU.js +283 -0
- package/dist/chunk-MWN7LDYV.js +4601 -0
- package/dist/chunk-MWN7LDYV.js.map +1 -0
- package/dist/chunk-MXPW4F74.js +278 -0
- package/dist/chunk-MZ7GJX5S.js +158 -0
- package/dist/chunk-N5OUIUYD.js +1260 -0
- package/dist/chunk-N6FNORC7.js +412 -0
- package/dist/chunk-NALVKY4U.js +113 -0
- package/dist/chunk-NJ77ZL5T.js +5222 -0
- package/dist/chunk-NM2DNJDJ.js +270 -0
- package/dist/chunk-NNKRRF7E.js +110 -0
- package/dist/chunk-NP5UFWU4.js +318 -0
- package/dist/chunk-NV3AEIFO.js +118 -0
- package/dist/chunk-O6JDF7KH.js +828 -0
- package/dist/chunk-OERZH3J4.js +251 -0
- package/dist/chunk-OKHWTWWU.js +1152 -0
- package/dist/chunk-OLAIUVGT.js +274 -0
- package/dist/chunk-OO36IUMS.js +270 -0
- package/dist/chunk-OVDK7K2Z.js +57 -0
- package/dist/chunk-OX5ZCHZQ.js +63 -0
- package/dist/chunk-P6LLCGPO.js +515 -0
- package/dist/chunk-PA2CUHTD.js +505 -0
- package/dist/chunk-PB4CQIRA.js +4979 -0
- package/dist/chunk-PBV2P632.js +566 -0
- package/dist/chunk-PCSRHFRF.js +75 -0
- package/dist/chunk-PEPWW5BC.js +436 -0
- package/dist/chunk-PMBZMVKE.js +33 -0
- package/dist/chunk-PP32RE26.js +34 -0
- package/dist/chunk-PTXAPI3Q.js +73 -0
- package/dist/chunk-PULNNF7G.js +56 -0
- package/dist/chunk-Q6KNROUT.js +158 -0
- package/dist/chunk-QEGP3HSW.js +184 -0
- package/dist/chunk-QEGP3HSW.js.map +1 -0
- package/dist/chunk-QGJIFIKN.js +1032 -0
- package/dist/chunk-QKKKORGL.js +41 -0
- package/dist/chunk-QKUMMG6P.js +85 -0
- package/dist/chunk-QNOWKKZ4.js +40 -0
- package/dist/chunk-QSWD3AHE.js +84 -0
- package/dist/chunk-QZ4U2VL5.js +391 -0
- package/dist/chunk-QZJNCLHV.js +271 -0
- package/dist/chunk-R6CFPY3F.js +278 -0
- package/dist/chunk-R6QRUYUH.js +406 -0
- package/dist/chunk-RE3GAQI5.js +2984 -0
- package/dist/chunk-RFHUVPFA.js +1184 -0
- package/dist/chunk-RH45HT5T.js +3690 -0
- package/dist/chunk-RJNQTZ5O.js +439 -0
- package/dist/chunk-RN24AP7Q.js +247 -0
- package/dist/chunk-RN24AP7Q.js.map +1 -0
- package/dist/chunk-S2BJTAAB.js +37 -0
- package/dist/chunk-S56PWXIX.js +138 -0
- package/dist/chunk-S6BDABIC.js +1390 -0
- package/dist/chunk-S6BDABIC.js.map +1 -0
- package/dist/chunk-S6FFDIHD.js +640 -0
- package/dist/chunk-S6MAMIK2.js +56 -0
- package/dist/chunk-SERTO6H6.js +311 -0
- package/dist/chunk-STOOH7EI.js +200 -0
- package/dist/chunk-SWSTEUXX.js +121 -0
- package/dist/chunk-SWZN7NNZ.js +1029 -0
- package/dist/chunk-SYDF57KS.js +178 -0
- package/dist/chunk-T275CUVD.js +29 -0
- package/dist/chunk-T4OT7QWP.js +378 -0
- package/dist/chunk-TCSRY2NP.js +2582 -0
- package/dist/chunk-TCX5OA2X.js +1177 -0
- package/dist/chunk-TDW5CSO5.js +3158 -0
- package/dist/chunk-TGG3ODCS.js +99 -0
- package/dist/chunk-TILSTYUC.js +505 -0
- package/dist/chunk-TJ5DYWXU.js +1333 -0
- package/dist/chunk-TNRI4ZE6.js +391 -0
- package/dist/chunk-TPIFVUMF.js +188 -0
- package/dist/chunk-TSW6OF22.js +162 -0
- package/dist/chunk-TTSTBHGR.js +1095 -0
- package/dist/chunk-U3JYAWMR.js +170 -0
- package/dist/chunk-U7ODSHA5.js +124 -0
- package/dist/chunk-UEGEPRNP.js +48 -0
- package/dist/chunk-UGIA2YEJ.js +83 -0
- package/dist/chunk-UHLKKDNF.js +432 -0
- package/dist/chunk-ULVXKIPX.js +26 -0
- package/dist/chunk-UN37ZY6R.js +10074 -0
- package/dist/chunk-UN37ZY6R.js.map +1 -0
- package/dist/chunk-USUDKZ5G.js +98 -0
- package/dist/chunk-UVO6I2F6.js +85 -0
- package/dist/chunk-V6NVG4K2.js +357 -0
- package/dist/chunk-VCMQFD3G.js +1185 -0
- package/dist/chunk-VKPBDNIO.js +246 -0
- package/dist/chunk-VLDKWGHD.js +61 -0
- package/dist/chunk-VM2NA2EL.js +905 -0
- package/dist/chunk-VMZTCVEL.js +114 -0
- package/dist/chunk-VQH5AXZY.js +269 -0
- package/dist/chunk-VTBTW6N4.js +114 -0
- package/dist/chunk-VV7PLDX4.js +230 -0
- package/dist/chunk-VYGGLH5H.js +50 -0
- package/dist/chunk-VYQHHTQ4.js +133 -0
- package/dist/chunk-VYSGRD2W.js +292 -0
- package/dist/chunk-W4W63LTP.js +1309 -0
- package/dist/chunk-WFC2JA6D.js +2335 -0
- package/dist/chunk-WFC2JA6D.js.map +1 -0
- package/dist/chunk-WHTRR66J.js +197 -0
- package/dist/chunk-WICIQFHJ.js +42 -0
- package/dist/chunk-WJYYMCCC.js +283 -0
- package/dist/chunk-WSJOWQJE.js +399 -0
- package/dist/chunk-WY333GHH.js +108 -0
- package/dist/chunk-WY333GHH.js.map +1 -0
- package/dist/chunk-WYDUXZ2R.js +353 -0
- package/dist/chunk-X62CN4YR.js +3321 -0
- package/dist/chunk-XFQHKMO6.js +1024 -0
- package/dist/chunk-XGJ7XZHS.js +527 -0
- package/dist/chunk-XJFJNOEV.js +723 -0
- package/dist/chunk-XKJLHMXZ.js +234 -0
- package/dist/chunk-XLFPJVQS.js +103 -0
- package/dist/chunk-XM4ZLZFW.js +129 -0
- package/dist/chunk-Y2GAWEJD.js +1021 -0
- package/dist/chunk-Y3A74SVK.js +296 -0
- package/dist/chunk-YANEVGI3.js +92 -0
- package/dist/chunk-YHHSO5QR.js +128 -0
- package/dist/chunk-YOSOCHCB.js +52 -0
- package/dist/chunk-YP4SNX4P.js +220 -0
- package/dist/chunk-YQH6AMIH.js +176 -0
- package/dist/chunk-YRWL2IAE.js +165 -0
- package/dist/chunk-YTWRQ3WK.js +251 -0
- package/dist/chunk-YV5GGSLK.js +20 -0
- package/dist/chunk-YXUDK37V.js +126 -0
- package/dist/chunk-YYM5TSCR.js +75 -0
- package/dist/chunk-ZG2CKFQF.js +202 -0
- package/dist/chunk-ZGJXO2HH.js +93 -0
- package/dist/chunk-ZGV76PZ4.js +3070 -0
- package/dist/chunk-ZOBUR2VC.js +229 -0
- package/dist/components/artifacts/artifact-chrome.d.ts +4 -0
- package/dist/components/artifacts/artifact-sandbox.d.ts +13 -0
- package/dist/components/artifacts/inline-html-document.d.ts +10 -1
- package/dist/components/artifacts/published-html-artifact-frame.d.ts +17 -0
- package/dist/components/preview-loading.d.ts +3 -1
- package/dist/composer.js +37 -37
- package/dist/computer-viewer-S6AL3XDT.js +21 -0
- package/dist/connect.js +38 -37
- package/dist/connection-step-up-XGPZKQEL.js +149 -0
- package/dist/connection-step-up-XGPZKQEL.js.map +1 -0
- package/dist/desktop-dictation.js +23 -23
- package/dist/desktop.js +2 -2
- package/dist/editor.js +2 -2
- package/dist/embedded-new-voice-T3BXRYJX.js +25 -0
- package/dist/embedded-voice-ZJXMF3RP.js +25 -0
- package/dist/fleet-decision-row-AUCMLBCV.js +361 -0
- package/dist/in-chat-connect-model.js +5 -5
- package/dist/index.js +296 -295
- package/dist/interaction.js +9 -9
- package/dist/latest-question-D5BKKEP6.js +1 -1
- package/dist/machine-request-model.js +1 -1
- package/dist/machines.js +8 -8
- package/dist/meetings/meeting-detail-page.d.ts +14 -0
- package/dist/meetings/meeting-notes.d.ts +6 -2
- package/dist/meetings/meeting-transcript.d.ts +3 -1
- package/dist/meetings-recorder.js +1 -1
- package/dist/meetings.js +367 -260
- package/dist/meetings.js.map +1 -1
- package/dist/messages/en.d.ts +6 -2
- package/dist/messages.js +1 -1
- package/dist/model-policy-picker-menu-TO57YUQ6.js +23 -0
- package/dist/native-previews.js +1 -1
- package/dist/payment-page-card-DFGDAMTG.js +227 -0
- package/dist/platform-activity-row-ZMBEJGXN.js +156 -0
- package/dist/queue-surface-implementation-KDK5CYH6.js +933 -0
- package/dist/realtime.js +17 -17
- package/dist/recorder-host-3HLYRL4H.js +80 -0
- package/dist/recordings.js +3 -3
- package/dist/sandbox-files-UOZ4OJZU.js +29 -0
- package/dist/session-app.js +406 -405
- package/dist/session-connect-cards-VZIYLH45.js +28 -0
- package/dist/session-list-model.js +2 -2
- package/dist/session-realtime-2ZGJWVZP.js +30 -0
- package/dist/session-realtime.js +2 -2
- package/dist/session-ui.js +98 -97
- package/dist/session.js +40 -40
- package/dist/sites.js +3 -3
- package/dist/skills.js +32 -32
- package/dist/terminal.js +2 -2
- package/dist/testing/meetings-fixture.d.ts +8 -0
- package/dist/testing/meetings-fixture.js +22 -1
- package/dist/testing/meetings-fixture.js.map +1 -1
- package/dist/this-computer.js +3 -3
- package/dist/timeline-annotation-markers-KBTFWLME.js +157 -0
- package/dist/timeline-annotation-selection-VI4YSDR5.js +208 -0
- package/dist/timeline-annotations-dialog-4PLWNLRB.js +283 -0
- package/dist/timeline-model.js +37 -37
- package/dist/ui/access-list.js +24 -24
- package/dist/ui/cadence-picker.js +7 -7
- package/dist/ui/capability-page.js +10 -10
- package/dist/ui/choice-cards.js +3 -3
- package/dist/ui/confirm-dialog.js +4 -4
- package/dist/ui/copy-field.js +3 -3
- package/dist/ui/detail-page.js +6 -6
- package/dist/ui/detail-sheet.js +6 -6
- package/dist/ui/dialog.js +2 -2
- package/dist/ui/diff-view.js +3 -3
- package/dist/ui/disclosure.js +7 -7
- package/dist/ui/email-chips-input.js +3 -3
- package/dist/ui/field.js +2 -2
- package/dist/ui/flush-form-page.js +8 -8
- package/dist/ui/form-dialog.js +7 -7
- package/dist/ui/list-row.js +7 -7
- package/dist/ui/load-failure.js +3 -3
- package/dist/ui/relative-time.js +3 -3
- package/dist/ui/revision-history.js +16 -16
- package/dist/ui/role-select.js +13 -13
- package/dist/ui/select-menu.js +5 -5
- package/dist/ui/settings-nav.js +6 -6
- package/dist/ui/sheet.js +2 -2
- package/dist/ui/usage-meter.js +4 -4
- package/dist/usage.js +3 -3
- package/dist/workbench.js +11 -11
- package/package.json +6 -5
- package/src/app/components/session/sandbox-recovery-actions.test.tsx +26 -0
- package/src/app/components/session/sandbox-recovery-actions.tsx +2 -1
- package/src/app/components/workspace-reach.tsx +2 -0
- package/src/components/artifacts/artifact-chrome.tsx +6 -0
- package/src/components/artifacts/artifact-sandbox.tsx +119 -20
- package/src/components/artifacts/chat-interactive-block.tsx +1 -0
- package/src/components/artifacts/inline-html-document.ts +13 -3
- package/src/components/artifacts/published-html-artifact-frame.tsx +60 -4
- package/src/components/preview-loading.tsx +2 -2
- package/src/meetings/meeting-detail-page.tsx +232 -112
- package/src/meetings/meeting-notes.tsx +48 -24
- package/src/meetings/meeting-transcript.tsx +75 -57
- package/src/meetings/meetings-pages.test.tsx +181 -2
- package/src/messages/en.ts +6 -2
- package/src/testing/meetings-fixture.ts +35 -1
- package/styles/compiled.css +8 -0
- package/styles/index.css +7 -0
- package/dist/browser-viewer-KFMM5S2B.js +0 -23
- package/dist/chat-interactive-block-5DJ72HU7.js +0 -22
- package/dist/chunk-2B3RQRNQ.js +0 -584
- package/dist/chunk-2DA7DTHO.js +0 -83
- package/dist/chunk-2GXAXCS2.js +0 -401
- package/dist/chunk-2JTZMHQK.js +0 -57
- package/dist/chunk-2LRJ32SO.js +0 -114
- package/dist/chunk-2VK7FJNR.js +0 -307
- package/dist/chunk-2YJS75C3.js +0 -269
- package/dist/chunk-2YNEUYWM.js +0 -231
- package/dist/chunk-2ZR75AUO.js +0 -225
- package/dist/chunk-32LD46VC.js +0 -72
- package/dist/chunk-3FVVZW7J.js +0 -84
- package/dist/chunk-4327UGUS.js +0 -79
- package/dist/chunk-45TILHFZ.js +0 -249
- package/dist/chunk-4AUSS7CX.js +0 -318
- package/dist/chunk-4ECOHGUL.js +0 -818
- package/dist/chunk-4FKE42TW.js +0 -1333
- package/dist/chunk-4K5UVYZQ.js +0 -113
- package/dist/chunk-4UZE7ZT4.js +0 -54
- package/dist/chunk-4XQH4XPP.js +0 -400
- package/dist/chunk-4Z7BPBS7.js +0 -34
- package/dist/chunk-56KVDNOS.js +0 -98
- package/dist/chunk-56NHT2TZ.js +0 -56
- package/dist/chunk-57QWSJLX.js +0 -114
- package/dist/chunk-5AGRFQSH.js +0 -432
- package/dist/chunk-5JMX5FRF.js +0 -1309
- package/dist/chunk-5UTHPGFF.js +0 -93
- package/dist/chunk-5VPQVMJI.js +0 -84
- package/dist/chunk-5WJCOFIU.js +0 -207
- package/dist/chunk-62T2ZPD5.js +0 -266
- package/dist/chunk-63AVTSUI.js +0 -383
- package/dist/chunk-6CDBX3XG.js +0 -33
- package/dist/chunk-6D3D2JWY.js +0 -278
- package/dist/chunk-6GUG7FXP.js +0 -380
- package/dist/chunk-6GUG7FXP.js.map +0 -1
- package/dist/chunk-6JGMBTXP.js +0 -114
- package/dist/chunk-6LYBRPUG.js +0 -931
- package/dist/chunk-6PHBW7SS.js +0 -287
- package/dist/chunk-6S2XVKNI.js +0 -91
- package/dist/chunk-6TWS6AXT.js +0 -1021
- package/dist/chunk-6VEIDSF4.js +0 -73
- package/dist/chunk-76NGRVCY.js +0 -340
- package/dist/chunk-7FFZLLCH.js +0 -391
- package/dist/chunk-7RRDXPNC.js +0 -111
- package/dist/chunk-7TLYFHMT.js +0 -851
- package/dist/chunk-7V2CQLTN.js +0 -20
- package/dist/chunk-7VDWXFTL.js +0 -772
- package/dist/chunk-A2OMNLDF.js +0 -150
- package/dist/chunk-A3QEJ2IZ.js +0 -229
- package/dist/chunk-A6Q6EUBR.js +0 -209
- package/dist/chunk-AJSRYRJS.js +0 -138
- package/dist/chunk-APNPWJCK.js +0 -66
- package/dist/chunk-ARNQH2XE.js +0 -178
- package/dist/chunk-B6AH43UQ.js +0 -2434
- package/dist/chunk-BIXGAYDJ.js +0 -276
- package/dist/chunk-BJ3WRO2K.js +0 -441
- package/dist/chunk-BO3D22BS.js +0 -12
- package/dist/chunk-BR62BHVY.js +0 -357
- package/dist/chunk-BTMSR4OA.js +0 -214
- package/dist/chunk-BVZYHORS.js +0 -40
- package/dist/chunk-BWBBS6HJ.js +0 -42
- package/dist/chunk-C22UPHA2.js +0 -274
- package/dist/chunk-C2EERTYX.js +0 -353
- package/dist/chunk-C2F6SKOS.js +0 -270
- package/dist/chunk-C625ODRG.js +0 -92
- package/dist/chunk-CAF3HFJH.js +0 -184
- package/dist/chunk-CAF3HFJH.js.map +0 -1
- package/dist/chunk-CC4JBFWY.js +0 -85
- package/dist/chunk-CDB66JAO.js +0 -283
- package/dist/chunk-CG2HT7TI.js +0 -269
- package/dist/chunk-CNNOPEAK.js +0 -570
- package/dist/chunk-CRBHMSAP.js +0 -469
- package/dist/chunk-CSK2WOOX.js +0 -83
- package/dist/chunk-CTBPPPLR.js +0 -2580
- package/dist/chunk-CTOLX2EW.js +0 -2317
- package/dist/chunk-CVDY7P3E.js +0 -246
- package/dist/chunk-CX3Z7W5Y.js +0 -107
- package/dist/chunk-D5K2BS5Q.js +0 -259
- package/dist/chunk-DA7XLT5F.js +0 -366
- package/dist/chunk-DAKKJ3XM.js +0 -298
- package/dist/chunk-DAKKJ3XM.js.map +0 -1
- package/dist/chunk-DC6KFW2R.js +0 -333
- package/dist/chunk-DIHPR5KJ.js +0 -15
- package/dist/chunk-DLMYANZX.js +0 -3851
- package/dist/chunk-DRAG2LZP.js +0 -171
- package/dist/chunk-E2SGFW2B.js +0 -3321
- package/dist/chunk-EAXZSBWV.js +0 -412
- package/dist/chunk-EFKWOXBP.js +0 -428
- package/dist/chunk-EGD5RPRX.js +0 -401
- package/dist/chunk-ELC2ZPHI.js +0 -1177
- package/dist/chunk-EZ5ZBOGQ.js +0 -1032
- package/dist/chunk-F2JKNL73.js +0 -187
- package/dist/chunk-F3LIUDXN.js +0 -738
- package/dist/chunk-F3LIUDXN.js.map +0 -1
- package/dist/chunk-FAB5SXNO.js +0 -640
- package/dist/chunk-FQ33JHJN.js +0 -63
- package/dist/chunk-FX343J2L.js +0 -132
- package/dist/chunk-FXFOKD7A.js +0 -449
- package/dist/chunk-FY42DW2R.js +0 -515
- package/dist/chunk-G4E5WKY7.js +0 -65
- package/dist/chunk-GFTV3RR6.js +0 -187
- package/dist/chunk-GGBMQNAB.js +0 -33
- package/dist/chunk-GGU7KV4G.js +0 -124
- package/dist/chunk-GIHE7U3Y.js +0 -174
- package/dist/chunk-GRGK3JJI.js +0 -10074
- package/dist/chunk-GRGK3JJI.js.map +0 -1
- package/dist/chunk-GT3FJVU6.js +0 -4596
- package/dist/chunk-GTGPKGWC.js +0 -65
- package/dist/chunk-GY6DSWBM.js +0 -82
- package/dist/chunk-H3EP6GNA.js +0 -538
- package/dist/chunk-HD2MCYQF.js +0 -234
- package/dist/chunk-HE4VN5D3.js +0 -4979
- package/dist/chunk-HFROJDFQ.js +0 -118
- package/dist/chunk-HHFFPE67.js +0 -220
- package/dist/chunk-HJ2CDFZX.js +0 -117
- package/dist/chunk-HJ2J2XQI.js +0 -88
- package/dist/chunk-HLLZPULI.js +0 -172
- package/dist/chunk-HPYQ5MES.js +0 -103
- package/dist/chunk-HRLJNDDC.js +0 -197
- package/dist/chunk-HVGM5IME.js +0 -170
- package/dist/chunk-HZE6V7GW.js +0 -214
- package/dist/chunk-I5DW76GB.js +0 -200
- package/dist/chunk-I7MZOZGC.js +0 -121
- package/dist/chunk-IB2EX6GX.js +0 -292
- package/dist/chunk-IEDDIJ6B.js +0 -4601
- package/dist/chunk-IEDDIJ6B.js.map +0 -1
- package/dist/chunk-IGFZFLI2.js +0 -1390
- package/dist/chunk-IGFZFLI2.js.map +0 -1
- package/dist/chunk-IIMRBCA4.js +0 -271
- package/dist/chunk-IIWNSYFA.js +0 -129
- package/dist/chunk-IN2ZJR2A.js +0 -96
- package/dist/chunk-IUPIJWFK.js +0 -905
- package/dist/chunk-IZA2KBYK.js +0 -57
- package/dist/chunk-IZZINUFM.js +0 -527
- package/dist/chunk-JFEAJRG6.js +0 -1029
- package/dist/chunk-JG7MEMJP.js +0 -1184
- package/dist/chunk-JIZWFW5A.js +0 -107
- package/dist/chunk-JJKUERR4.js +0 -131
- package/dist/chunk-JL4PMUDG.js +0 -192
- package/dist/chunk-JTWK3VE7.js +0 -202
- package/dist/chunk-JV2TJLUW.js +0 -144
- package/dist/chunk-KBDWMUYA.js +0 -175
- package/dist/chunk-KF65UG2L.js +0 -1628
- package/dist/chunk-KFYLTQGK.js +0 -133
- package/dist/chunk-KJI2DVSO.js +0 -26
- package/dist/chunk-KLYBSXHE.js +0 -3183
- package/dist/chunk-KPD6TBO4.js +0 -89
- package/dist/chunk-KTGKGHEA.js +0 -75
- package/dist/chunk-KUYQTNVT.js +0 -794
- package/dist/chunk-KZE7M52Y.js +0 -598
- package/dist/chunk-KZYZ3JHS.js +0 -112
- package/dist/chunk-L6WVCO6D.js +0 -61
- package/dist/chunk-L7T7M2P3.js +0 -5222
- package/dist/chunk-LKF6IPFC.js +0 -247
- package/dist/chunk-LLU7VKCZ.js +0 -188
- package/dist/chunk-LWEJGMVO.js +0 -50
- package/dist/chunk-LX5IEXDF.js +0 -505
- package/dist/chunk-LYEALWBN.js +0 -251
- package/dist/chunk-M722GGD3.js +0 -566
- package/dist/chunk-MCPKUVMQ.js +0 -99
- package/dist/chunk-MDGNCUAC.js +0 -145
- package/dist/chunk-MFLU3466.js +0 -99
- package/dist/chunk-MITT6IZG.js +0 -134
- package/dist/chunk-MN4LJYKQ.js +0 -608
- package/dist/chunk-MNCBL5AX.js +0 -449
- package/dist/chunk-MNCBL5AX.js.map +0 -1
- package/dist/chunk-MO3XJQN2.js +0 -629
- package/dist/chunk-MPP6BEAN.js +0 -158
- package/dist/chunk-MQRUZ2LW.js +0 -335
- package/dist/chunk-MRJFF5KY.js +0 -351
- package/dist/chunk-MUB44LD3.js +0 -75
- package/dist/chunk-MYDFABO6.js +0 -296
- package/dist/chunk-NJVHMK5R.js +0 -3158
- package/dist/chunk-NO6VQNWH.js +0 -396
- package/dist/chunk-NUF43R2F.js +0 -278
- package/dist/chunk-NUM3QV66.js +0 -107
- package/dist/chunk-NW4RPGET.js +0 -48
- package/dist/chunk-NZBZLY7H.js +0 -165
- package/dist/chunk-O664PL2U.js +0 -47
- package/dist/chunk-O664PL2U.js.map +0 -1
- package/dist/chunk-OCS3KIYC.js +0 -378
- package/dist/chunk-OKI45WHM.js +0 -311
- package/dist/chunk-ONF5M5GP.js +0 -283
- package/dist/chunk-OPCPBLHA.js +0 -79
- package/dist/chunk-OROXCA6L.js +0 -251
- package/dist/chunk-OTMJS3FV.js +0 -56
- package/dist/chunk-OXM267RC.js +0 -128
- package/dist/chunk-P5FLGDXW.js +0 -723
- package/dist/chunk-PC3FWPOP.js +0 -828
- package/dist/chunk-PPQJIVGM.js +0 -175
- package/dist/chunk-PQOVMZI2.js +0 -372
- package/dist/chunk-PVGD2RAV.js +0 -5926
- package/dist/chunk-PVGD2RAV.js.map +0 -1
- package/dist/chunk-PYU7CLEG.js +0 -215
- package/dist/chunk-Q2N5UR7Q.js +0 -505
- package/dist/chunk-Q4GB2QU3.js +0 -199
- package/dist/chunk-Q4RJKXQM.js +0 -606
- package/dist/chunk-Q4ZNRQKH.js +0 -196
- package/dist/chunk-Q7QXSQ46.js +0 -1185
- package/dist/chunk-QAVSUXLA.js +0 -773
- package/dist/chunk-QBJDMSFA.js +0 -27
- package/dist/chunk-QCB3WNCA.js +0 -176
- package/dist/chunk-QIOIJ7K5.js +0 -162
- package/dist/chunk-QR72J6WR.js +0 -650
- package/dist/chunk-QUTMVW4P.js +0 -141
- package/dist/chunk-QUXQYYZO.js +0 -73
- package/dist/chunk-RDHK2NYW.js +0 -129
- package/dist/chunk-RFBYAUZH.js +0 -311
- package/dist/chunk-RFBYAUZH.js.map +0 -1
- package/dist/chunk-RGCCRYTY.js +0 -46
- package/dist/chunk-RSTS3RWN.js +0 -211
- package/dist/chunk-RY7YRYVT.js +0 -126
- package/dist/chunk-S4LRL5BA.js +0 -439
- package/dist/chunk-S62CVC5C.js +0 -850
- package/dist/chunk-S62CVC5C.js.map +0 -1
- package/dist/chunk-SHVW3C3Y.js +0 -50
- package/dist/chunk-SL4CLUHR.js +0 -48
- package/dist/chunk-SOPKVWZJ.js +0 -1187
- package/dist/chunk-ST3H53IJ.js +0 -201
- package/dist/chunk-SYYFA7W7.js +0 -23
- package/dist/chunk-TBUWK3RP.js +0 -399
- package/dist/chunk-TC42NAIJ.js +0 -177
- package/dist/chunk-TJBTP6LH.js +0 -297
- package/dist/chunk-TQQALBLU.js +0 -391
- package/dist/chunk-TW56PZBB.js +0 -407
- package/dist/chunk-U6XRXK2T.js +0 -1356
- package/dist/chunk-U735UBHS.js +0 -2431
- package/dist/chunk-U735UBHS.js.map +0 -1
- package/dist/chunk-UAKG7GLE.js +0 -155
- package/dist/chunk-UB4GKFCI.js +0 -1095
- package/dist/chunk-UEAAF27Y.js +0 -108
- package/dist/chunk-UITWSZH3.js +0 -162
- package/dist/chunk-UQ67SEGH.js +0 -234
- package/dist/chunk-URSNCM57.js +0 -37
- package/dist/chunk-V77BSX2F.js +0 -1152
- package/dist/chunk-VATOL3OZ.js +0 -110
- package/dist/chunk-VEJG6GQQ.js +0 -103
- package/dist/chunk-VFQZPHZR.js +0 -436
- package/dist/chunk-VFZJV26C.js +0 -41
- package/dist/chunk-VJZPVP6C.js +0 -230
- package/dist/chunk-VQL7FHIF.js +0 -27
- package/dist/chunk-VSS6LRAK.js +0 -263
- package/dist/chunk-VSSXDLO3.js +0 -467
- package/dist/chunk-VVCKB62D.js +0 -1024
- package/dist/chunk-VVJDYTD4.js +0 -168
- package/dist/chunk-VVXOG3ZC.js +0 -52
- package/dist/chunk-W2EX346X.js +0 -85
- package/dist/chunk-W3R4C7Z2.js +0 -166
- package/dist/chunk-W43FINJV.js +0 -218
- package/dist/chunk-W6PJWSZ6.js +0 -1769
- package/dist/chunk-WCP32H3P.js +0 -2984
- package/dist/chunk-WKELNNIG.js +0 -3690
- package/dist/chunk-WRFXCMRW.js +0 -2591
- package/dist/chunk-WRLEHV4A.js +0 -386
- package/dist/chunk-WTNQHM6Q.js +0 -43
- package/dist/chunk-WTZ6OJUY.js +0 -3070
- package/dist/chunk-WVFMFQRZ.js +0 -256
- package/dist/chunk-WVFMFQRZ.js.map +0 -1
- package/dist/chunk-WYIC3CXE.js +0 -157
- package/dist/chunk-WZABXFUL.js +0 -246
- package/dist/chunk-WZABXFUL.js.map +0 -1
- package/dist/chunk-X3GBTLKD.js +0 -175
- package/dist/chunk-XBOLFS6I.js +0 -532
- package/dist/chunk-XF4UH54P.js +0 -250
- package/dist/chunk-XHPBQTJP.js +0 -1260
- package/dist/chunk-XQ4TJITR.js +0 -270
- package/dist/chunk-XRFMGLCE.js +0 -466
- package/dist/chunk-XV2F7PGS.js +0 -236
- package/dist/chunk-Y2EQTW5Q.js +0 -100
- package/dist/chunk-YAOXCAQD.js +0 -371
- package/dist/chunk-YCDB3HPS.js +0 -137
- package/dist/chunk-YCONEOZQ.js +0 -191
- package/dist/chunk-YG243U6J.js +0 -158
- package/dist/chunk-YGQANOSV.js +0 -113
- package/dist/chunk-YKRWKRNX.js +0 -138
- package/dist/chunk-YKT5NYYJ.js +0 -3996
- package/dist/chunk-YKT5NYYJ.js.map +0 -1
- package/dist/chunk-YLWABUFE.js +0 -406
- package/dist/chunk-YOKIE7NG.js +0 -227
- package/dist/chunk-YRCDL3GO.js +0 -2582
- package/dist/chunk-YVBAYE7Y.js +0 -1236
- package/dist/chunk-YYKPRX4P.js +0 -29
- package/dist/chunk-Z4MW635R.js +0 -849
- package/dist/chunk-Z7IPPKG6.js +0 -403
- package/dist/chunk-ZFGXQ54H.js +0 -114
- package/dist/chunk-ZGBXHHCL.js +0 -373
- package/dist/computer-viewer-AVH5J4TC.js +0 -21
- package/dist/connection-step-up-T2B25VP7.js +0 -148
- package/dist/connection-step-up-T2B25VP7.js.map +0 -1
- package/dist/embedded-new-voice-M6PBWMQZ.js +0 -25
- package/dist/embedded-voice-7USALJKI.js +0 -25
- package/dist/fleet-decision-row-XY6OZPHA.js +0 -361
- package/dist/model-policy-picker-menu-S5RTVLMQ.js +0 -23
- package/dist/payment-page-card-XSY5NO7D.js +0 -227
- package/dist/platform-activity-row-77WER5O3.js +0 -156
- package/dist/queue-surface-implementation-SDV7I32L.js +0 -933
- package/dist/recorder-host-7GNQG6BB.js +0 -80
- package/dist/sandbox-files-JOH2Q57T.js +0 -29
- package/dist/session-connect-cards-HZIR4ZWT.js +0 -28
- package/dist/session-realtime-OPCPTIAP.js +0 -30
- package/dist/timeline-annotation-markers-WXCRA4BY.js +0 -157
- package/dist/timeline-annotation-selection-YBZQNCNX.js +0 -208
- package/dist/timeline-annotations-dialog-4WVXTKFW.js +0 -283
- /package/dist/{browser-viewer-KFMM5S2B.js.map → browser-viewer-TRPZI6NT.js.map} +0 -0
- /package/dist/{chat-interactive-block-5DJ72HU7.js.map → chat-interactive-block-Y4BS4JCM.js.map} +0 -0
- /package/dist/{chunk-CRBHMSAP.js.map → chunk-22E2YJHT.js.map} +0 -0
- /package/dist/{chunk-H3EP6GNA.js.map → chunk-2T6TN2YL.js.map} +0 -0
- /package/dist/{chunk-KBDWMUYA.js.map → chunk-2WNN26NW.js.map} +0 -0
- /package/dist/{chunk-HJ2J2XQI.js.map → chunk-3432A6XB.js.map} +0 -0
- /package/dist/{chunk-DA7XLT5F.js.map → chunk-35U7NSOR.js.map} +0 -0
- /package/dist/{chunk-QAVSUXLA.js.map → chunk-3EPR76WS.js.map} +0 -0
- /package/dist/{chunk-JV2TJLUW.js.map → chunk-3FXXEU5D.js.map} +0 -0
- /package/dist/{chunk-QR72J6WR.js.map → chunk-3MXOPOEU.js.map} +0 -0
- /package/dist/{chunk-76NGRVCY.js.map → chunk-3PKDU4JI.js.map} +0 -0
- /package/dist/{chunk-BO3D22BS.js.map → chunk-3PMO2BIV.js.map} +0 -0
- /package/dist/{chunk-SL4CLUHR.js.map → chunk-3XWHJNFY.js.map} +0 -0
- /package/dist/{chunk-EGD5RPRX.js.map → chunk-45WD2PKE.js.map} +0 -0
- /package/dist/{chunk-KZE7M52Y.js.map → chunk-4H2OWNRA.js.map} +0 -0
- /package/dist/{chunk-VSS6LRAK.js.map → chunk-4HVGOTMU.js.map} +0 -0
- /package/dist/{chunk-4ECOHGUL.js.map → chunk-4JER2ZMV.js.map} +0 -0
- /package/dist/{chunk-HZE6V7GW.js.map → chunk-4LVZ2VOQ.js.map} +0 -0
- /package/dist/{chunk-B6AH43UQ.js.map → chunk-4OGDD2EM.js.map} +0 -0
- /package/dist/{chunk-4UZE7ZT4.js.map → chunk-4PQC6WMF.js.map} +0 -0
- /package/dist/{chunk-KUYQTNVT.js.map → chunk-4UVSWAT3.js.map} +0 -0
- /package/dist/{chunk-BTMSR4OA.js.map → chunk-53A47RBX.js.map} +0 -0
- /package/dist/{chunk-57QWSJLX.js.map → chunk-552KKENW.js.map} +0 -0
- /package/dist/{chunk-TC42NAIJ.js.map → chunk-55F7L6M3.js.map} +0 -0
- /package/dist/{chunk-FXFOKD7A.js.map → chunk-5AHIKB3O.js.map} +0 -0
- /package/dist/{chunk-Q4GB2QU3.js.map → chunk-5N4L5WTE.js.map} +0 -0
- /package/dist/{chunk-4327UGUS.js.map → chunk-5OUJCVZI.js.map} +0 -0
- /package/dist/{chunk-GTGPKGWC.js.map → chunk-5OYXQ7MH.js.map} +0 -0
- /package/dist/{chunk-2ZR75AUO.js.map → chunk-5TAVVMFX.js.map} +0 -0
- /package/dist/{chunk-2YJS75C3.js.map → chunk-5Y3LYRNH.js.map} +0 -0
- /package/dist/{chunk-WRLEHV4A.js.map → chunk-5ZJKKE4T.js.map} +0 -0
- /package/dist/{chunk-2JTZMHQK.js.map → chunk-62DPSQRZ.js.map} +0 -0
- /package/dist/{chunk-MN4LJYKQ.js.map → chunk-64KMWTJ6.js.map} +0 -0
- /package/dist/{chunk-QUXQYYZO.js.map → chunk-6MZBNUS7.js.map} +0 -0
- /package/dist/{chunk-XF4UH54P.js.map → chunk-6YCE4ZC4.js.map} +0 -0
- /package/dist/{chunk-X3GBTLKD.js.map → chunk-6YROWWMX.js.map} +0 -0
- /package/dist/{chunk-YVBAYE7Y.js.map → chunk-73RZ72VU.js.map} +0 -0
- /package/dist/{chunk-5VPQVMJI.js.map → chunk-74KV436L.js.map} +0 -0
- /package/dist/{chunk-CSK2WOOX.js.map → chunk-7HKGLPV5.js.map} +0 -0
- /package/dist/{chunk-XRFMGLCE.js.map → chunk-7JSWODT6.js.map} +0 -0
- /package/dist/{chunk-EFKWOXBP.js.map → chunk-7K3PKWER.js.map} +0 -0
- /package/dist/{chunk-U6XRXK2T.js.map → chunk-7MPWC42V.js.map} +0 -0
- /package/dist/{chunk-QUTMVW4P.js.map → chunk-7REO6FRN.js.map} +0 -0
- /package/dist/{chunk-MDGNCUAC.js.map → chunk-7YMWRNRQ.js.map} +0 -0
- /package/dist/{chunk-JJKUERR4.js.map → chunk-A6H3KJ7G.js.map} +0 -0
- /package/dist/{chunk-W6PJWSZ6.js.map → chunk-AGQIE6YU.js.map} +0 -0
- /package/dist/{chunk-ZGBXHHCL.js.map → chunk-AHQM4I5V.js.map} +0 -0
- /package/dist/{chunk-HLLZPULI.js.map → chunk-AMTRO7XF.js.map} +0 -0
- /package/dist/{chunk-6S2XVKNI.js.map → chunk-AO4LTCG7.js.map} +0 -0
- /package/dist/{chunk-CTBPPPLR.js.map → chunk-APJ22OZV.js.map} +0 -0
- /package/dist/{chunk-TW56PZBB.js.map → chunk-APWL37KW.js.map} +0 -0
- /package/dist/{chunk-DIHPR5KJ.js.map → chunk-AQEJOBQ2.js.map} +0 -0
- /package/dist/{chunk-HD2MCYQF.js.map → chunk-ARKNT6BX.js.map} +0 -0
- /package/dist/{chunk-RSTS3RWN.js.map → chunk-B2IHDMAR.js.map} +0 -0
- /package/dist/{chunk-KZYZ3JHS.js.map → chunk-BCKIV26W.js.map} +0 -0
- /package/dist/{chunk-D5K2BS5Q.js.map → chunk-BE26JUSD.js.map} +0 -0
- /package/dist/{chunk-DRAG2LZP.js.map → chunk-BOVCD6KD.js.map} +0 -0
- /package/dist/{chunk-IIWNSYFA.js.map → chunk-BQWV66A6.js.map} +0 -0
- /package/dist/{chunk-BJ3WRO2K.js.map → chunk-BSQJXGGP.js.map} +0 -0
- /package/dist/{chunk-KLYBSXHE.js.map → chunk-BZY3MEVZ.js.map} +0 -0
- /package/dist/{chunk-MQRUZ2LW.js.map → chunk-C3D3OOEY.js.map} +0 -0
- /package/dist/{chunk-GY6DSWBM.js.map → chunk-CDHYO3DP.js.map} +0 -0
- /package/dist/{chunk-OPCPBLHA.js.map → chunk-CDV5JGVI.js.map} +0 -0
- /package/dist/{chunk-5WJCOFIU.js.map → chunk-CNW45M7G.js.map} +0 -0
- /package/dist/{chunk-A2OMNLDF.js.map → chunk-CUVQ37HB.js.map} +0 -0
- /package/dist/{chunk-XBOLFS6I.js.map → chunk-D32T3IIC.js.map} +0 -0
- /package/dist/{chunk-YAOXCAQD.js.map → chunk-D65BSM64.js.map} +0 -0
- /package/dist/{chunk-CNNOPEAK.js.map → chunk-D7435DWV.js.map} +0 -0
- /package/dist/{chunk-32LD46VC.js.map → chunk-DFH3M7B3.js.map} +0 -0
- /package/dist/{chunk-QIOIJ7K5.js.map → chunk-DGWBQ76M.js.map} +0 -0
- /package/dist/{chunk-PQOVMZI2.js.map → chunk-DHJDTGSJ.js.map} +0 -0
- /package/dist/{chunk-4XQH4XPP.js.map → chunk-DKEFTNCD.js.map} +0 -0
- /package/dist/{chunk-JIZWFW5A.js.map → chunk-DNAF6MT4.js.map} +0 -0
- /package/dist/{chunk-QBJDMSFA.js.map → chunk-E35XY7DS.js.map} +0 -0
- /package/dist/{chunk-NO6VQNWH.js.map → chunk-E5T5WIIP.js.map} +0 -0
- /package/dist/{chunk-W3R4C7Z2.js.map → chunk-EL6ECD34.js.map} +0 -0
- /package/dist/{chunk-VSSXDLO3.js.map → chunk-ELR6ITRC.js.map} +0 -0
- /package/dist/{chunk-7TLYFHMT.js.map → chunk-EPE3V2VE.js.map} +0 -0
- /package/dist/{chunk-2B3RQRNQ.js.map → chunk-EYGQHHVW.js.map} +0 -0
- /package/dist/{chunk-2VK7FJNR.js.map → chunk-EYQEJHYP.js.map} +0 -0
- /package/dist/{chunk-BIXGAYDJ.js.map → chunk-EZTH2XMH.js.map} +0 -0
- /package/dist/{chunk-6PHBW7SS.js.map → chunk-F3QVHVFS.js.map} +0 -0
- /package/dist/{chunk-SOPKVWZJ.js.map → chunk-F5VWPREQ.js.map} +0 -0
- /package/dist/{chunk-YGQANOSV.js.map → chunk-FM7AQUBL.js.map} +0 -0
- /package/dist/{chunk-Y2EQTW5Q.js.map → chunk-FP6BUXJM.js.map} +0 -0
- /package/dist/{chunk-45TILHFZ.js.map → chunk-FVU52L3I.js.map} +0 -0
- /package/dist/{chunk-W43FINJV.js.map → chunk-FZKNXNNO.js.map} +0 -0
- /package/dist/{chunk-XV2F7PGS.js.map → chunk-G3IXJWRY.js.map} +0 -0
- /package/dist/{chunk-DC6KFW2R.js.map → chunk-G6EI2O3N.js.map} +0 -0
- /package/dist/{chunk-2GXAXCS2.js.map → chunk-GB5T6YMZ.js.map} +0 -0
- /package/dist/{chunk-WYIC3CXE.js.map → chunk-GBLD6FOG.js.map} +0 -0
- /package/dist/{chunk-YCDB3HPS.js.map → chunk-GJBFFXCY.js.map} +0 -0
- /package/dist/{chunk-APNPWJCK.js.map → chunk-GJDP2K2S.js.map} +0 -0
- /package/dist/{chunk-GFTV3RR6.js.map → chunk-GP26XTDX.js.map} +0 -0
- /package/dist/{chunk-Q4RJKXQM.js.map → chunk-GTE6WP4N.js.map} +0 -0
- /package/dist/{chunk-UEAAF27Y.js.map → chunk-GWG3OAV7.js.map} +0 -0
- /package/dist/{chunk-6LYBRPUG.js.map → chunk-GXMHTMM6.js.map} +0 -0
- /package/dist/{chunk-NUM3QV66.js.map → chunk-GYRN5O2E.js.map} +0 -0
- /package/dist/{chunk-G4E5WKY7.js.map → chunk-GZX7W2WW.js.map} +0 -0
- /package/dist/{chunk-Z7IPPKG6.js.map → chunk-H3QI2G2B.js.map} +0 -0
- /package/dist/{chunk-Z4MW635R.js.map → chunk-H7D4DVWY.js.map} +0 -0
- /package/dist/{chunk-YCONEOZQ.js.map → chunk-HCDGBBBJ.js.map} +0 -0
- /package/dist/{chunk-DLMYANZX.js.map → chunk-HDSH6MIJ.js.map} +0 -0
- /package/dist/{chunk-KPD6TBO4.js.map → chunk-HOEUPZ6O.js.map} +0 -0
- /package/dist/{chunk-7VDWXFTL.js.map → chunk-HPQRWTQB.js.map} +0 -0
- /package/dist/{chunk-GIHE7U3Y.js.map → chunk-HUKGLWAY.js.map} +0 -0
- /package/dist/{chunk-SYYFA7W7.js.map → chunk-HUTQJY3F.js.map} +0 -0
- /package/dist/{chunk-62T2ZPD5.js.map → chunk-HWOYJOKK.js.map} +0 -0
- /package/dist/{chunk-IN2ZJR2A.js.map → chunk-HZR3WGUP.js.map} +0 -0
- /package/dist/{chunk-YKRWKRNX.js.map → chunk-I7YUDPDR.js.map} +0 -0
- /package/dist/{chunk-VQL7FHIF.js.map → chunk-IDII52M4.js.map} +0 -0
- /package/dist/{chunk-HPYQ5MES.js.map → chunk-IDPWEUM7.js.map} +0 -0
- /package/dist/{chunk-JL4PMUDG.js.map → chunk-IEWQFGEC.js.map} +0 -0
- /package/dist/{chunk-MRJFF5KY.js.map → chunk-IMTACEXF.js.map} +0 -0
- /package/dist/{chunk-2LRJ32SO.js.map → chunk-IVWT6M6N.js.map} +0 -0
- /package/dist/{chunk-7RRDXPNC.js.map → chunk-JEUPIHIP.js.map} +0 -0
- /package/dist/{chunk-VVJDYTD4.js.map → chunk-JF4WX3GQ.js.map} +0 -0
- /package/dist/{chunk-WRFXCMRW.js.map → chunk-JJPYXUKC.js.map} +0 -0
- /package/dist/{chunk-WTNQHM6Q.js.map → chunk-JNHWTYDD.js.map} +0 -0
- /package/dist/{chunk-RGCCRYTY.js.map → chunk-JP7AOJWD.js.map} +0 -0
- /package/dist/{chunk-TJBTP6LH.js.map → chunk-JTWT2WQA.js.map} +0 -0
- /package/dist/{chunk-HJ2CDFZX.js.map → chunk-JW3WIHWO.js.map} +0 -0
- /package/dist/{chunk-MITT6IZG.js.map → chunk-JW7RJMEZ.js.map} +0 -0
- /package/dist/{chunk-CTOLX2EW.js.map → chunk-K76PXR3O.js.map} +0 -0
- /package/dist/{chunk-CX3Z7W5Y.js.map → chunk-KCNIQN6V.js.map} +0 -0
- /package/dist/{chunk-2YNEUYWM.js.map → chunk-KH6KHYST.js.map} +0 -0
- /package/dist/{chunk-LKF6IPFC.js.map → chunk-KK4SEN7N.js.map} +0 -0
- /package/dist/{chunk-63AVTSUI.js.map → chunk-KOKRGAAI.js.map} +0 -0
- /package/dist/{chunk-F2JKNL73.js.map → chunk-KQFNTGAF.js.map} +0 -0
- /package/dist/{chunk-SHVW3C3Y.js.map → chunk-KRLNC6TH.js.map} +0 -0
- /package/dist/{chunk-MFLU3466.js.map → chunk-KYDLVMKA.js.map} +0 -0
- /package/dist/{chunk-UAKG7GLE.js.map → chunk-KZQDP2JM.js.map} +0 -0
- /package/dist/{chunk-FX343J2L.js.map → chunk-L2EZ2HOX.js.map} +0 -0
- /package/dist/{chunk-GGBMQNAB.js.map → chunk-L2UAFR2D.js.map} +0 -0
- /package/dist/{chunk-GT3FJVU6.js.map → chunk-L4R7ORMD.js.map} +0 -0
- /package/dist/{chunk-YOKIE7NG.js.map → chunk-LCLWN64E.js.map} +0 -0
- /package/dist/{chunk-PPQJIVGM.js.map → chunk-LFQI2C46.js.map} +0 -0
- /package/dist/{chunk-KF65UG2L.js.map → chunk-LLYX4F5A.js.map} +0 -0
- /package/dist/{chunk-PYU7CLEG.js.map → chunk-LQX5QCDS.js.map} +0 -0
- /package/dist/{chunk-Q4ZNRQKH.js.map → chunk-LRMHASG2.js.map} +0 -0
- /package/dist/{chunk-MO3XJQN2.js.map → chunk-M5FX5KH5.js.map} +0 -0
- /package/dist/{chunk-ST3H53IJ.js.map → chunk-MLOTUQJJ.js.map} +0 -0
- /package/dist/{chunk-A6Q6EUBR.js.map → chunk-MPUKGKXZ.js.map} +0 -0
- /package/dist/{chunk-ONF5M5GP.js.map → chunk-MS6LW4VU.js.map} +0 -0
- /package/dist/{chunk-NUF43R2F.js.map → chunk-MXPW4F74.js.map} +0 -0
- /package/dist/{chunk-MPP6BEAN.js.map → chunk-MZ7GJX5S.js.map} +0 -0
- /package/dist/{chunk-XHPBQTJP.js.map → chunk-N5OUIUYD.js.map} +0 -0
- /package/dist/{chunk-EAXZSBWV.js.map → chunk-N6FNORC7.js.map} +0 -0
- /package/dist/{chunk-4K5UVYZQ.js.map → chunk-NALVKY4U.js.map} +0 -0
- /package/dist/{chunk-L7T7M2P3.js.map → chunk-NJ77ZL5T.js.map} +0 -0
- /package/dist/{chunk-XQ4TJITR.js.map → chunk-NM2DNJDJ.js.map} +0 -0
- /package/dist/{chunk-VATOL3OZ.js.map → chunk-NNKRRF7E.js.map} +0 -0
- /package/dist/{chunk-4AUSS7CX.js.map → chunk-NP5UFWU4.js.map} +0 -0
- /package/dist/{chunk-HFROJDFQ.js.map → chunk-NV3AEIFO.js.map} +0 -0
- /package/dist/{chunk-PC3FWPOP.js.map → chunk-O6JDF7KH.js.map} +0 -0
- /package/dist/{chunk-OROXCA6L.js.map → chunk-OERZH3J4.js.map} +0 -0
- /package/dist/{chunk-V77BSX2F.js.map → chunk-OKHWTWWU.js.map} +0 -0
- /package/dist/{chunk-C22UPHA2.js.map → chunk-OLAIUVGT.js.map} +0 -0
- /package/dist/{chunk-C2F6SKOS.js.map → chunk-OO36IUMS.js.map} +0 -0
- /package/dist/{chunk-IZA2KBYK.js.map → chunk-OVDK7K2Z.js.map} +0 -0
- /package/dist/{chunk-FQ33JHJN.js.map → chunk-OX5ZCHZQ.js.map} +0 -0
- /package/dist/{chunk-FY42DW2R.js.map → chunk-P6LLCGPO.js.map} +0 -0
- /package/dist/{chunk-LX5IEXDF.js.map → chunk-PA2CUHTD.js.map} +0 -0
- /package/dist/{chunk-HE4VN5D3.js.map → chunk-PB4CQIRA.js.map} +0 -0
- /package/dist/{chunk-M722GGD3.js.map → chunk-PBV2P632.js.map} +0 -0
- /package/dist/{chunk-KTGKGHEA.js.map → chunk-PCSRHFRF.js.map} +0 -0
- /package/dist/{chunk-VFQZPHZR.js.map → chunk-PEPWW5BC.js.map} +0 -0
- /package/dist/{chunk-6CDBX3XG.js.map → chunk-PMBZMVKE.js.map} +0 -0
- /package/dist/{chunk-4Z7BPBS7.js.map → chunk-PP32RE26.js.map} +0 -0
- /package/dist/{chunk-6VEIDSF4.js.map → chunk-PTXAPI3Q.js.map} +0 -0
- /package/dist/{chunk-OTMJS3FV.js.map → chunk-PULNNF7G.js.map} +0 -0
- /package/dist/{chunk-YG243U6J.js.map → chunk-Q6KNROUT.js.map} +0 -0
- /package/dist/{chunk-EZ5ZBOGQ.js.map → chunk-QGJIFIKN.js.map} +0 -0
- /package/dist/{chunk-VFZJV26C.js.map → chunk-QKKKORGL.js.map} +0 -0
- /package/dist/{chunk-W2EX346X.js.map → chunk-QKUMMG6P.js.map} +0 -0
- /package/dist/{chunk-BVZYHORS.js.map → chunk-QNOWKKZ4.js.map} +0 -0
- /package/dist/{chunk-3FVVZW7J.js.map → chunk-QSWD3AHE.js.map} +0 -0
- /package/dist/{chunk-7FFZLLCH.js.map → chunk-QZ4U2VL5.js.map} +0 -0
- /package/dist/{chunk-IIMRBCA4.js.map → chunk-QZJNCLHV.js.map} +0 -0
- /package/dist/{chunk-6D3D2JWY.js.map → chunk-R6CFPY3F.js.map} +0 -0
- /package/dist/{chunk-YLWABUFE.js.map → chunk-R6QRUYUH.js.map} +0 -0
- /package/dist/{chunk-WCP32H3P.js.map → chunk-RE3GAQI5.js.map} +0 -0
- /package/dist/{chunk-JG7MEMJP.js.map → chunk-RFHUVPFA.js.map} +0 -0
- /package/dist/{chunk-WKELNNIG.js.map → chunk-RH45HT5T.js.map} +0 -0
- /package/dist/{chunk-S4LRL5BA.js.map → chunk-RJNQTZ5O.js.map} +0 -0
- /package/dist/{chunk-URSNCM57.js.map → chunk-S2BJTAAB.js.map} +0 -0
- /package/dist/{chunk-AJSRYRJS.js.map → chunk-S56PWXIX.js.map} +0 -0
- /package/dist/{chunk-FAB5SXNO.js.map → chunk-S6FFDIHD.js.map} +0 -0
- /package/dist/{chunk-56NHT2TZ.js.map → chunk-S6MAMIK2.js.map} +0 -0
- /package/dist/{chunk-OKI45WHM.js.map → chunk-SERTO6H6.js.map} +0 -0
- /package/dist/{chunk-I5DW76GB.js.map → chunk-STOOH7EI.js.map} +0 -0
- /package/dist/{chunk-I7MZOZGC.js.map → chunk-SWSTEUXX.js.map} +0 -0
- /package/dist/{chunk-JFEAJRG6.js.map → chunk-SWZN7NNZ.js.map} +0 -0
- /package/dist/{chunk-ARNQH2XE.js.map → chunk-SYDF57KS.js.map} +0 -0
- /package/dist/{chunk-YYKPRX4P.js.map → chunk-T275CUVD.js.map} +0 -0
- /package/dist/{chunk-OCS3KIYC.js.map → chunk-T4OT7QWP.js.map} +0 -0
- /package/dist/{chunk-YRCDL3GO.js.map → chunk-TCSRY2NP.js.map} +0 -0
- /package/dist/{chunk-ELC2ZPHI.js.map → chunk-TCX5OA2X.js.map} +0 -0
- /package/dist/{chunk-NJVHMK5R.js.map → chunk-TDW5CSO5.js.map} +0 -0
- /package/dist/{chunk-MCPKUVMQ.js.map → chunk-TGG3ODCS.js.map} +0 -0
- /package/dist/{chunk-Q2N5UR7Q.js.map → chunk-TILSTYUC.js.map} +0 -0
- /package/dist/{chunk-4FKE42TW.js.map → chunk-TJ5DYWXU.js.map} +0 -0
- /package/dist/{chunk-TQQALBLU.js.map → chunk-TNRI4ZE6.js.map} +0 -0
- /package/dist/{chunk-LLU7VKCZ.js.map → chunk-TPIFVUMF.js.map} +0 -0
- /package/dist/{chunk-UITWSZH3.js.map → chunk-TSW6OF22.js.map} +0 -0
- /package/dist/{chunk-UB4GKFCI.js.map → chunk-TTSTBHGR.js.map} +0 -0
- /package/dist/{chunk-HVGM5IME.js.map → chunk-U3JYAWMR.js.map} +0 -0
- /package/dist/{chunk-GGU7KV4G.js.map → chunk-U7ODSHA5.js.map} +0 -0
- /package/dist/{chunk-NW4RPGET.js.map → chunk-UEGEPRNP.js.map} +0 -0
- /package/dist/{chunk-2DA7DTHO.js.map → chunk-UGIA2YEJ.js.map} +0 -0
- /package/dist/{chunk-5AGRFQSH.js.map → chunk-UHLKKDNF.js.map} +0 -0
- /package/dist/{chunk-KJI2DVSO.js.map → chunk-ULVXKIPX.js.map} +0 -0
- /package/dist/{chunk-56KVDNOS.js.map → chunk-USUDKZ5G.js.map} +0 -0
- /package/dist/{chunk-CC4JBFWY.js.map → chunk-UVO6I2F6.js.map} +0 -0
- /package/dist/{chunk-BR62BHVY.js.map → chunk-V6NVG4K2.js.map} +0 -0
- /package/dist/{chunk-Q7QXSQ46.js.map → chunk-VCMQFD3G.js.map} +0 -0
- /package/dist/{chunk-CVDY7P3E.js.map → chunk-VKPBDNIO.js.map} +0 -0
- /package/dist/{chunk-L6WVCO6D.js.map → chunk-VLDKWGHD.js.map} +0 -0
- /package/dist/{chunk-IUPIJWFK.js.map → chunk-VM2NA2EL.js.map} +0 -0
- /package/dist/{chunk-6JGMBTXP.js.map → chunk-VMZTCVEL.js.map} +0 -0
- /package/dist/{chunk-CG2HT7TI.js.map → chunk-VQH5AXZY.js.map} +0 -0
- /package/dist/{chunk-ZFGXQ54H.js.map → chunk-VTBTW6N4.js.map} +0 -0
- /package/dist/{chunk-VJZPVP6C.js.map → chunk-VV7PLDX4.js.map} +0 -0
- /package/dist/{chunk-LWEJGMVO.js.map → chunk-VYGGLH5H.js.map} +0 -0
- /package/dist/{chunk-KFYLTQGK.js.map → chunk-VYQHHTQ4.js.map} +0 -0
- /package/dist/{chunk-IB2EX6GX.js.map → chunk-VYSGRD2W.js.map} +0 -0
- /package/dist/{chunk-5JMX5FRF.js.map → chunk-W4W63LTP.js.map} +0 -0
- /package/dist/{chunk-HRLJNDDC.js.map → chunk-WHTRR66J.js.map} +0 -0
- /package/dist/{chunk-BWBBS6HJ.js.map → chunk-WICIQFHJ.js.map} +0 -0
- /package/dist/{chunk-CDB66JAO.js.map → chunk-WJYYMCCC.js.map} +0 -0
- /package/dist/{chunk-TBUWK3RP.js.map → chunk-WSJOWQJE.js.map} +0 -0
- /package/dist/{chunk-C2EERTYX.js.map → chunk-WYDUXZ2R.js.map} +0 -0
- /package/dist/{chunk-E2SGFW2B.js.map → chunk-X62CN4YR.js.map} +0 -0
- /package/dist/{chunk-VVCKB62D.js.map → chunk-XFQHKMO6.js.map} +0 -0
- /package/dist/{chunk-IZZINUFM.js.map → chunk-XGJ7XZHS.js.map} +0 -0
- /package/dist/{chunk-P5FLGDXW.js.map → chunk-XJFJNOEV.js.map} +0 -0
- /package/dist/{chunk-UQ67SEGH.js.map → chunk-XKJLHMXZ.js.map} +0 -0
- /package/dist/{chunk-VEJG6GQQ.js.map → chunk-XLFPJVQS.js.map} +0 -0
- /package/dist/{chunk-RDHK2NYW.js.map → chunk-XM4ZLZFW.js.map} +0 -0
- /package/dist/{chunk-6TWS6AXT.js.map → chunk-Y2GAWEJD.js.map} +0 -0
- /package/dist/{chunk-MYDFABO6.js.map → chunk-Y3A74SVK.js.map} +0 -0
- /package/dist/{chunk-C625ODRG.js.map → chunk-YANEVGI3.js.map} +0 -0
- /package/dist/{chunk-OXM267RC.js.map → chunk-YHHSO5QR.js.map} +0 -0
- /package/dist/{chunk-VVXOG3ZC.js.map → chunk-YOSOCHCB.js.map} +0 -0
- /package/dist/{chunk-HHFFPE67.js.map → chunk-YP4SNX4P.js.map} +0 -0
- /package/dist/{chunk-QCB3WNCA.js.map → chunk-YQH6AMIH.js.map} +0 -0
- /package/dist/{chunk-NZBZLY7H.js.map → chunk-YRWL2IAE.js.map} +0 -0
- /package/dist/{chunk-LYEALWBN.js.map → chunk-YTWRQ3WK.js.map} +0 -0
- /package/dist/{chunk-7V2CQLTN.js.map → chunk-YV5GGSLK.js.map} +0 -0
- /package/dist/{chunk-RY7YRYVT.js.map → chunk-YXUDK37V.js.map} +0 -0
- /package/dist/{chunk-MUB44LD3.js.map → chunk-YYM5TSCR.js.map} +0 -0
- /package/dist/{chunk-JTWK3VE7.js.map → chunk-ZG2CKFQF.js.map} +0 -0
- /package/dist/{chunk-5UTHPGFF.js.map → chunk-ZGJXO2HH.js.map} +0 -0
- /package/dist/{chunk-WTZ6OJUY.js.map → chunk-ZGV76PZ4.js.map} +0 -0
- /package/dist/{chunk-A3QEJ2IZ.js.map → chunk-ZOBUR2VC.js.map} +0 -0
- /package/dist/{computer-viewer-AVH5J4TC.js.map → computer-viewer-S6AL3XDT.js.map} +0 -0
- /package/dist/{embedded-new-voice-M6PBWMQZ.js.map → embedded-new-voice-T3BXRYJX.js.map} +0 -0
- /package/dist/{embedded-voice-7USALJKI.js.map → embedded-voice-ZJXMF3RP.js.map} +0 -0
- /package/dist/{fleet-decision-row-XY6OZPHA.js.map → fleet-decision-row-AUCMLBCV.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-S5RTVLMQ.js.map → model-policy-picker-menu-TO57YUQ6.js.map} +0 -0
- /package/dist/{payment-page-card-XSY5NO7D.js.map → payment-page-card-DFGDAMTG.js.map} +0 -0
- /package/dist/{platform-activity-row-77WER5O3.js.map → platform-activity-row-ZMBEJGXN.js.map} +0 -0
- /package/dist/{queue-surface-implementation-SDV7I32L.js.map → queue-surface-implementation-KDK5CYH6.js.map} +0 -0
- /package/dist/{recorder-host-7GNQG6BB.js.map → recorder-host-3HLYRL4H.js.map} +0 -0
- /package/dist/{sandbox-files-JOH2Q57T.js.map → sandbox-files-UOZ4OJZU.js.map} +0 -0
- /package/dist/{session-connect-cards-HZIR4ZWT.js.map → session-connect-cards-VZIYLH45.js.map} +0 -0
- /package/dist/{session-realtime-OPCPTIAP.js.map → session-realtime-2ZGJWVZP.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-WXCRA4BY.js.map → timeline-annotation-markers-KBTFWLME.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-YBZQNCNX.js.map → timeline-annotation-selection-VI4YSDR5.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-4WVXTKFW.js.map → timeline-annotations-dialog-4PLWNLRB.js.map} +0 -0
|
@@ -0,0 +1,2580 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
connectionStatusForState
|
|
4
|
+
} from "./chunk-MSXVGGFQ.js";
|
|
5
|
+
import {
|
|
6
|
+
machinePlatformLabel,
|
|
7
|
+
machineScopeLabel,
|
|
8
|
+
machineScreenLabel,
|
|
9
|
+
machineSystemDetail
|
|
10
|
+
} from "./chunk-2TBRW7I6.js";
|
|
11
|
+
import {
|
|
12
|
+
formatBytes,
|
|
13
|
+
formatRelativeTime
|
|
14
|
+
} from "./chunk-UIK52VL4.js";
|
|
15
|
+
import {
|
|
16
|
+
cn
|
|
17
|
+
} from "./chunk-TXS65BB2.js";
|
|
18
|
+
import {
|
|
19
|
+
useOpenGeniText
|
|
20
|
+
} from "./chunk-LVUSG56I.js";
|
|
21
|
+
|
|
22
|
+
// src/components/machine-status-pill.tsx
|
|
23
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
24
|
+
var CONNECTION_STATUS_META = (t) => ({
|
|
25
|
+
online: {
|
|
26
|
+
label: t("machineStatusPill.online"),
|
|
27
|
+
dotClassName: "bg-og-status-running",
|
|
28
|
+
badgeClassName: "text-og-status-running border-og-status-running/30 bg-og-status-running/10",
|
|
29
|
+
pulse: false
|
|
30
|
+
},
|
|
31
|
+
reconnecting: {
|
|
32
|
+
label: t("machineStatusPill.reconnecting"),
|
|
33
|
+
dotClassName: "bg-og-status-waiting",
|
|
34
|
+
badgeClassName: "text-og-status-waiting border-og-status-waiting/35 bg-og-status-waiting/10",
|
|
35
|
+
pulse: true
|
|
36
|
+
},
|
|
37
|
+
offline: {
|
|
38
|
+
label: t("machineStatusPill.offline"),
|
|
39
|
+
dotClassName: "bg-og-status-failed",
|
|
40
|
+
badgeClassName: "text-og-fg-subtle border-og-border bg-og-status-failed/10",
|
|
41
|
+
pulse: false
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
var MACHINE_STATE_BADGE_META = (t) => ({
|
|
45
|
+
consent_required: {
|
|
46
|
+
label: t("machineStatusPill.consentRequired"),
|
|
47
|
+
badgeClassName: "text-og-status-waiting border-og-status-waiting/35 bg-og-status-waiting/10"
|
|
48
|
+
},
|
|
49
|
+
display_unavailable: {
|
|
50
|
+
label: t("machineStatusPill.noDisplay"),
|
|
51
|
+
badgeClassName: "text-og-fg-muted border-og-border bg-og-surface-2"
|
|
52
|
+
},
|
|
53
|
+
enrolling: {
|
|
54
|
+
label: t("machineStatusPill.enrolling"),
|
|
55
|
+
badgeClassName: "text-og-accent border-og-accent/30 bg-og-accent-soft"
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
function ConnectionStatusPill({
|
|
59
|
+
status,
|
|
60
|
+
label,
|
|
61
|
+
size = "md",
|
|
62
|
+
className
|
|
63
|
+
}) {
|
|
64
|
+
const t = useOpenGeniText();
|
|
65
|
+
const meta = CONNECTION_STATUS_META(t)[status];
|
|
66
|
+
return /* @__PURE__ */ jsxs(
|
|
67
|
+
"span",
|
|
68
|
+
{
|
|
69
|
+
"data-connection-status": status,
|
|
70
|
+
className: cn(
|
|
71
|
+
"og-root inline-flex shrink-0 items-center rounded-full border font-medium",
|
|
72
|
+
size === "sm" ? "gap-1 px-1.5 py-px text-og-xs" : "gap-1.5 px-2 py-0.5 text-og-sm",
|
|
73
|
+
meta.badgeClassName,
|
|
74
|
+
className
|
|
75
|
+
),
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ jsx(ConnectionDot, { status, className: size === "sm" ? "size-1" : "size-1.5" }),
|
|
78
|
+
label ?? meta.label
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
function ConnectionDot({ status, className }) {
|
|
84
|
+
const t = useOpenGeniText();
|
|
85
|
+
const meta = CONNECTION_STATUS_META(t)[status];
|
|
86
|
+
return /* @__PURE__ */ jsx(
|
|
87
|
+
"span",
|
|
88
|
+
{
|
|
89
|
+
className: cn(
|
|
90
|
+
"relative inline-flex size-1.5 shrink-0 rounded-full",
|
|
91
|
+
meta.dotClassName,
|
|
92
|
+
className
|
|
93
|
+
),
|
|
94
|
+
children: meta.pulse ? /* @__PURE__ */ jsx("span", { className: cn("absolute inset-0 animate-og-pulse rounded-full", meta.dotClassName) }) : null
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
function MachineStatusPill({
|
|
99
|
+
state,
|
|
100
|
+
sharedSessionCount,
|
|
101
|
+
size = "md",
|
|
102
|
+
className
|
|
103
|
+
}) {
|
|
104
|
+
const t = useOpenGeniText();
|
|
105
|
+
const stateBadge = MACHINE_STATE_BADGE_META(t)[state];
|
|
106
|
+
const shared = (sharedSessionCount ?? 0) > 1;
|
|
107
|
+
return /* @__PURE__ */ jsxs(
|
|
108
|
+
"span",
|
|
109
|
+
{
|
|
110
|
+
className: cn("og-root inline-flex flex-wrap items-center gap-1", className),
|
|
111
|
+
"data-machine-state": state,
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ jsx(ConnectionStatusPill, { status: connectionStatusForState(state), size }),
|
|
114
|
+
stateBadge ? /* @__PURE__ */ jsx(
|
|
115
|
+
"span",
|
|
116
|
+
{
|
|
117
|
+
"data-state-badge": state,
|
|
118
|
+
className: cn(
|
|
119
|
+
"inline-flex shrink-0 items-center rounded-full border font-medium",
|
|
120
|
+
size === "sm" ? "px-1.5 py-px text-og-xs" : "px-2 py-0.5 text-og-sm",
|
|
121
|
+
stateBadge.badgeClassName
|
|
122
|
+
),
|
|
123
|
+
children: stateBadge.label
|
|
124
|
+
}
|
|
125
|
+
) : null,
|
|
126
|
+
shared ? /* @__PURE__ */ jsx(
|
|
127
|
+
"span",
|
|
128
|
+
{
|
|
129
|
+
"data-shared-chip": true,
|
|
130
|
+
className: cn(
|
|
131
|
+
"inline-flex shrink-0 items-center gap-1 rounded-full border font-medium",
|
|
132
|
+
"text-og-accent border-og-accent/30 bg-og-accent-soft",
|
|
133
|
+
size === "sm" ? "px-1.5 py-px text-og-xs" : "px-2 py-0.5 text-og-sm"
|
|
134
|
+
),
|
|
135
|
+
title: t("machineStatusPill.sessionsOnThisMachine", { count: sharedSessionCount ?? 0 }),
|
|
136
|
+
children: t("machineStatusPill.sharedCount", { count: sharedSessionCount ?? 0 })
|
|
137
|
+
}
|
|
138
|
+
) : null
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// src/components/machine-metrics.tsx
|
|
145
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
146
|
+
function pct(value) {
|
|
147
|
+
if (!Number.isFinite(value)) return 0;
|
|
148
|
+
return Math.max(0, Math.min(100, value));
|
|
149
|
+
}
|
|
150
|
+
function Meter({
|
|
151
|
+
label,
|
|
152
|
+
value,
|
|
153
|
+
fillPct,
|
|
154
|
+
tone
|
|
155
|
+
}) {
|
|
156
|
+
const fillClass = tone === "hot" ? "bg-og-status-failed" : tone === "warn" ? "bg-og-status-running" : "bg-og-status-idle";
|
|
157
|
+
return /* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-col gap-1", "data-metric": label.toLowerCase(), children: [
|
|
158
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-baseline justify-between gap-2", children: [
|
|
159
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[10px] font-medium uppercase tracking-wide text-og-fg-subtle", children: label }),
|
|
160
|
+
/* @__PURE__ */ jsx2("span", { className: "font-og-mono text-[11px] tabular-nums text-og-fg-muted", children: value })
|
|
161
|
+
] }),
|
|
162
|
+
/* @__PURE__ */ jsx2("div", { className: "h-1 w-full overflow-hidden rounded-full bg-og-surface-2", children: /* @__PURE__ */ jsx2(
|
|
163
|
+
"div",
|
|
164
|
+
{
|
|
165
|
+
className: cn("h-full rounded-full transition-[width] duration-500", fillClass),
|
|
166
|
+
style: { width: `${pct(fillPct)}%` }
|
|
167
|
+
}
|
|
168
|
+
) })
|
|
169
|
+
] });
|
|
170
|
+
}
|
|
171
|
+
function toneFor(p) {
|
|
172
|
+
if (p >= 90) return "hot";
|
|
173
|
+
if (p >= 70) return "warn";
|
|
174
|
+
return "ok";
|
|
175
|
+
}
|
|
176
|
+
function StatTriple({
|
|
177
|
+
load1,
|
|
178
|
+
load5,
|
|
179
|
+
load15,
|
|
180
|
+
runQueue
|
|
181
|
+
}) {
|
|
182
|
+
const t = useOpenGeniText();
|
|
183
|
+
const stats = [
|
|
184
|
+
{ label: "1m", value: load1 },
|
|
185
|
+
{ label: "5m", value: load5 },
|
|
186
|
+
{ label: "15m", value: load15 }
|
|
187
|
+
];
|
|
188
|
+
return /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between gap-3", "data-metric": "load", children: [
|
|
189
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-col gap-1", children: [
|
|
190
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[10px] font-medium uppercase tracking-wide text-og-fg-subtle", children: t("machineMetrics.load") }),
|
|
191
|
+
/* @__PURE__ */ jsx2("div", { className: "flex items-baseline gap-3", children: stats.map((s) => /* @__PURE__ */ jsxs2("div", { className: "flex items-baseline gap-1", children: [
|
|
192
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[10px] font-medium uppercase tracking-wide text-og-fg-subtle", children: s.label }),
|
|
193
|
+
/* @__PURE__ */ jsx2("span", { className: "font-og-mono text-[12px] tabular-nums text-og-fg", children: s.value.toFixed(2) })
|
|
194
|
+
] }, s.label)) })
|
|
195
|
+
] }),
|
|
196
|
+
runQueue > 0 ? /* @__PURE__ */ jsxs2(
|
|
197
|
+
"div",
|
|
198
|
+
{
|
|
199
|
+
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",
|
|
200
|
+
"data-metric": "runqueue",
|
|
201
|
+
children: [
|
|
202
|
+
/* @__PURE__ */ jsx2("span", { className: "font-medium uppercase tracking-wide", children: t("machineMetrics.queue") }),
|
|
203
|
+
/* @__PURE__ */ jsx2("span", { className: "font-og-mono tabular-nums text-og-fg-muted", children: runQueue })
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
) : null
|
|
207
|
+
] });
|
|
208
|
+
}
|
|
209
|
+
function MachineMetrics({ metrics, density = "compact", className }) {
|
|
210
|
+
const t = useOpenGeniText();
|
|
211
|
+
if (!metrics) {
|
|
212
|
+
return /* @__PURE__ */ jsx2("div", { className: cn("text-[11px] text-og-fg-subtle", className), "data-metrics-empty": true, children: t("machineMetrics.noMetricsYet") });
|
|
213
|
+
}
|
|
214
|
+
const memPct2 = metrics.memTotalBytes > 0 ? metrics.memUsedBytes / metrics.memTotalBytes * 100 : 0;
|
|
215
|
+
const diskPct2 = metrics.diskTotalBytes > 0 ? metrics.diskUsedBytes / metrics.diskTotalBytes * 100 : 0;
|
|
216
|
+
const hasGpu = metrics.gpuUtilPct !== null;
|
|
217
|
+
const gpuMemLabel = metrics.gpuMemBytes !== null ? formatBytes(metrics.gpuMemBytes) : null;
|
|
218
|
+
const ratioGridClass = density === "full" ? "grid-cols-1" : "grid-cols-1 sm:grid-cols-2";
|
|
219
|
+
return /* @__PURE__ */ jsxs2("div", { className: cn("flex flex-col gap-3", className), "data-machine-metrics": true, children: [
|
|
220
|
+
/* @__PURE__ */ jsxs2("div", { className: cn("grid gap-x-4 gap-y-2.5", ratioGridClass), children: [
|
|
221
|
+
/* @__PURE__ */ jsx2(
|
|
222
|
+
Meter,
|
|
223
|
+
{
|
|
224
|
+
label: t("machineMetrics.memory"),
|
|
225
|
+
value: `${formatBytes(metrics.memUsedBytes)} / ${formatBytes(metrics.memTotalBytes)}`,
|
|
226
|
+
fillPct: memPct2,
|
|
227
|
+
tone: toneFor(memPct2)
|
|
228
|
+
}
|
|
229
|
+
),
|
|
230
|
+
/* @__PURE__ */ jsx2(
|
|
231
|
+
Meter,
|
|
232
|
+
{
|
|
233
|
+
label: t("machineMetrics.disk"),
|
|
234
|
+
value: `${formatBytes(metrics.diskUsedBytes)} / ${formatBytes(metrics.diskTotalBytes)}`,
|
|
235
|
+
fillPct: diskPct2,
|
|
236
|
+
tone: toneFor(diskPct2)
|
|
237
|
+
}
|
|
238
|
+
)
|
|
239
|
+
] }),
|
|
240
|
+
/* @__PURE__ */ jsxs2("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2.5", children: [
|
|
241
|
+
/* @__PURE__ */ jsx2(
|
|
242
|
+
Meter,
|
|
243
|
+
{
|
|
244
|
+
label: t("machineMetrics.cpu"),
|
|
245
|
+
value: `${metrics.cpuPct.toFixed(0)}%`,
|
|
246
|
+
fillPct: metrics.cpuPct,
|
|
247
|
+
tone: toneFor(metrics.cpuPct)
|
|
248
|
+
}
|
|
249
|
+
),
|
|
250
|
+
hasGpu ? /* @__PURE__ */ jsx2(
|
|
251
|
+
Meter,
|
|
252
|
+
{
|
|
253
|
+
label: t("machineMetrics.gpu"),
|
|
254
|
+
value: gpuMemLabel ? `${metrics.gpuUtilPct.toFixed(0)}% \xB7 ${gpuMemLabel}` : `${metrics.gpuUtilPct.toFixed(0)}%`,
|
|
255
|
+
fillPct: metrics.gpuUtilPct,
|
|
256
|
+
tone: toneFor(metrics.gpuUtilPct)
|
|
257
|
+
}
|
|
258
|
+
) : null
|
|
259
|
+
] }),
|
|
260
|
+
density === "full" ? /* @__PURE__ */ jsx2(
|
|
261
|
+
StatTriple,
|
|
262
|
+
{
|
|
263
|
+
load1: metrics.load1,
|
|
264
|
+
load5: metrics.load5,
|
|
265
|
+
load15: metrics.load15,
|
|
266
|
+
runQueue: metrics.runQueue
|
|
267
|
+
}
|
|
268
|
+
) : null
|
|
269
|
+
] });
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// src/components/machine-card.tsx
|
|
273
|
+
import {
|
|
274
|
+
AlertTriangleIcon,
|
|
275
|
+
ArrowRightIcon,
|
|
276
|
+
CpuIcon,
|
|
277
|
+
LaptopIcon,
|
|
278
|
+
MonitorIcon,
|
|
279
|
+
MonitorOffIcon,
|
|
280
|
+
ServerIcon,
|
|
281
|
+
UsersIcon
|
|
282
|
+
} from "lucide-react";
|
|
283
|
+
|
|
284
|
+
// src/components/machines/health.ts
|
|
285
|
+
var PRESSURE = {
|
|
286
|
+
cpu: { warn: 90, crit: 98 },
|
|
287
|
+
mem: { warn: 85, crit: 95 },
|
|
288
|
+
disk: { warn: 90, crit: 96 }
|
|
289
|
+
};
|
|
290
|
+
var STALE_AFTER_MS = 45e3;
|
|
291
|
+
function pct2(used, total) {
|
|
292
|
+
if (!Number.isFinite(used) || !Number.isFinite(total) || total <= 0) return 0;
|
|
293
|
+
return used / total * 100;
|
|
294
|
+
}
|
|
295
|
+
function deriveHealth(msg, state, metrics, now = Date.now()) {
|
|
296
|
+
if (state === "offline") {
|
|
297
|
+
return {
|
|
298
|
+
level: "offline",
|
|
299
|
+
label: msg("machines.health.offline"),
|
|
300
|
+
reason: msg("machines.health.notReachable"),
|
|
301
|
+
stale: true
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
if (state === "enrolling") {
|
|
305
|
+
return {
|
|
306
|
+
level: "unknown",
|
|
307
|
+
label: msg("machines.health.enrolling"),
|
|
308
|
+
reason: msg("machines.health.completingEnrollment"),
|
|
309
|
+
stale: false
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
const stale = metrics ? now - new Date(metrics.sampledAt).getTime() > STALE_AFTER_MS : true;
|
|
313
|
+
if (state === "reconnecting") {
|
|
314
|
+
return {
|
|
315
|
+
level: "degraded",
|
|
316
|
+
label: msg("machines.health.reconnecting"),
|
|
317
|
+
reason: msg("machines.health.reEstablishingLink"),
|
|
318
|
+
stale
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
if (!metrics) {
|
|
322
|
+
return {
|
|
323
|
+
level: "unknown",
|
|
324
|
+
label: msg("machines.health.online"),
|
|
325
|
+
reason: msg("machines.health.awaitingFirstSample"),
|
|
326
|
+
stale
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
if (stale) {
|
|
330
|
+
return {
|
|
331
|
+
level: "degraded",
|
|
332
|
+
label: msg("machines.health.telemetryStale"),
|
|
333
|
+
reason: msg("machines.health.noRecentSample"),
|
|
334
|
+
stale: true
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
const memPct2 = pct2(metrics.memUsedBytes, metrics.memTotalBytes);
|
|
338
|
+
const diskPct2 = pct2(metrics.diskUsedBytes, metrics.diskTotalBytes);
|
|
339
|
+
const cpu = metrics.cpuPct;
|
|
340
|
+
const pressures = [
|
|
341
|
+
resolve(msg("machines.health.disk"), diskPct2, PRESSURE.disk),
|
|
342
|
+
resolve(msg("machines.health.memory"), memPct2, PRESSURE.mem),
|
|
343
|
+
resolve("CPU", cpu, PRESSURE.cpu)
|
|
344
|
+
];
|
|
345
|
+
const worst = pressures.reduce((a, b) => b.sev > a.sev ? b : a);
|
|
346
|
+
if (worst.sev === 2)
|
|
347
|
+
return {
|
|
348
|
+
level: "critical",
|
|
349
|
+
label: msg("machines.health.critical"),
|
|
350
|
+
reason: worst.reason,
|
|
351
|
+
stale
|
|
352
|
+
};
|
|
353
|
+
if (worst.sev === 1)
|
|
354
|
+
return {
|
|
355
|
+
level: "degraded",
|
|
356
|
+
label: msg("machines.health.underLoad"),
|
|
357
|
+
reason: worst.reason,
|
|
358
|
+
stale
|
|
359
|
+
};
|
|
360
|
+
return {
|
|
361
|
+
level: "healthy",
|
|
362
|
+
label: msg("machines.health.healthy"),
|
|
363
|
+
reason: msg("machines.health.allSystemsNominal"),
|
|
364
|
+
stale
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
function resolve(name, value, t) {
|
|
368
|
+
const rounded = Math.round(value);
|
|
369
|
+
if (value >= t.crit) return { level: "critical", reason: `${name} ${rounded}%`, sev: 2 };
|
|
370
|
+
if (value >= t.warn) return { level: "degraded", reason: `${name} ${rounded}%`, sev: 1 };
|
|
371
|
+
return { level: "healthy", reason: `${name} ${rounded}%`, sev: 0 };
|
|
372
|
+
}
|
|
373
|
+
var HEALTH_TOKEN = {
|
|
374
|
+
healthy: {
|
|
375
|
+
text: "text-og-status-idle",
|
|
376
|
+
dot: "bg-og-status-idle",
|
|
377
|
+
soft: "bg-og-status-idle/10 border-og-status-idle/25"
|
|
378
|
+
},
|
|
379
|
+
degraded: {
|
|
380
|
+
text: "text-og-status-running",
|
|
381
|
+
dot: "bg-og-status-running",
|
|
382
|
+
soft: "bg-og-status-running/10 border-og-status-running/25"
|
|
383
|
+
},
|
|
384
|
+
critical: {
|
|
385
|
+
text: "text-og-status-failed",
|
|
386
|
+
dot: "bg-og-status-failed",
|
|
387
|
+
soft: "bg-og-status-failed/10 border-og-status-failed/30"
|
|
388
|
+
},
|
|
389
|
+
offline: {
|
|
390
|
+
text: "text-og-fg-subtle",
|
|
391
|
+
dot: "bg-og-fg-subtle",
|
|
392
|
+
soft: "bg-og-surface-2 border-og-border"
|
|
393
|
+
},
|
|
394
|
+
unknown: {
|
|
395
|
+
text: "text-og-fg-muted",
|
|
396
|
+
dot: "bg-og-fg-muted",
|
|
397
|
+
soft: "bg-og-surface-2 border-og-border"
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
function healthPulses(level) {
|
|
401
|
+
return level === "degraded" || level === "critical";
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
// src/components/machine-health-pill.tsx
|
|
405
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
406
|
+
function MachineHealthPill({
|
|
407
|
+
state,
|
|
408
|
+
metrics,
|
|
409
|
+
now,
|
|
410
|
+
size = "sm",
|
|
411
|
+
className
|
|
412
|
+
}) {
|
|
413
|
+
const t = useOpenGeniText();
|
|
414
|
+
const health = deriveHealth(t, state, metrics, now ?? Date.now());
|
|
415
|
+
const tone = HEALTH_TOKEN[health.level];
|
|
416
|
+
const badge = MACHINE_STATE_BADGE_META(t)[state];
|
|
417
|
+
const pad = size === "md" ? "px-2.5 py-1 text-og-sm" : "px-2 py-0.5 text-og-xs";
|
|
418
|
+
return /* @__PURE__ */ jsxs3("div", { className: cn("flex shrink-0 items-center gap-1.5", className), children: [
|
|
419
|
+
badge ? /* @__PURE__ */ jsx3(
|
|
420
|
+
"span",
|
|
421
|
+
{
|
|
422
|
+
className: cn(
|
|
423
|
+
"rounded-full border px-2 py-0.5 text-og-xs font-medium",
|
|
424
|
+
badge.badgeClassName
|
|
425
|
+
),
|
|
426
|
+
children: badge.label
|
|
427
|
+
}
|
|
428
|
+
) : null,
|
|
429
|
+
/* @__PURE__ */ jsxs3(
|
|
430
|
+
"span",
|
|
431
|
+
{
|
|
432
|
+
className: cn(
|
|
433
|
+
"inline-flex items-center gap-1.5 rounded-full border font-medium",
|
|
434
|
+
pad,
|
|
435
|
+
tone.soft,
|
|
436
|
+
tone.text
|
|
437
|
+
),
|
|
438
|
+
"data-health": health.level,
|
|
439
|
+
title: health.reason,
|
|
440
|
+
children: [
|
|
441
|
+
/* @__PURE__ */ jsxs3("span", { className: "relative flex size-2", children: [
|
|
442
|
+
healthPulses(health.level) && /* @__PURE__ */ jsx3(
|
|
443
|
+
"span",
|
|
444
|
+
{
|
|
445
|
+
className: cn(
|
|
446
|
+
"absolute inline-flex size-full animate-og-pulse rounded-full opacity-60",
|
|
447
|
+
tone.dot
|
|
448
|
+
)
|
|
449
|
+
}
|
|
450
|
+
),
|
|
451
|
+
/* @__PURE__ */ jsx3("span", { className: cn("relative inline-flex size-2 rounded-full", tone.dot) })
|
|
452
|
+
] }),
|
|
453
|
+
health.label
|
|
454
|
+
]
|
|
455
|
+
}
|
|
456
|
+
)
|
|
457
|
+
] });
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
// src/components/machines/agent-status-icon.tsx
|
|
461
|
+
import {
|
|
462
|
+
CircleAlertIcon,
|
|
463
|
+
CircleCheckIcon,
|
|
464
|
+
ClockIcon,
|
|
465
|
+
DownloadIcon,
|
|
466
|
+
LoaderCircleIcon,
|
|
467
|
+
TriangleAlertIcon
|
|
468
|
+
} from "lucide-react";
|
|
469
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
470
|
+
function AgentStatusIcon({ tone, className }) {
|
|
471
|
+
const size = cn("size-3.5 shrink-0", className);
|
|
472
|
+
switch (tone) {
|
|
473
|
+
case "ok":
|
|
474
|
+
return /* @__PURE__ */ jsx4(CircleCheckIcon, { className: cn(size, "text-og-status-idle"), "aria-hidden": true });
|
|
475
|
+
case "progress":
|
|
476
|
+
return /* @__PURE__ */ jsx4(LoaderCircleIcon, { className: cn(size, "animate-og-spin text-og-accent"), "aria-hidden": true });
|
|
477
|
+
case "waiting":
|
|
478
|
+
return /* @__PURE__ */ jsx4(ClockIcon, { className: cn(size, "text-og-fg-subtle"), "aria-hidden": true });
|
|
479
|
+
case "attention":
|
|
480
|
+
return /* @__PURE__ */ jsx4(TriangleAlertIcon, { className: cn(size, "text-og-status-waiting"), "aria-hidden": true });
|
|
481
|
+
case "failed":
|
|
482
|
+
return /* @__PURE__ */ jsx4(CircleAlertIcon, { className: cn(size, "text-og-status-failed"), "aria-hidden": true });
|
|
483
|
+
default:
|
|
484
|
+
return /* @__PURE__ */ jsx4(DownloadIcon, { className: cn(size, "text-og-fg-subtle"), "aria-hidden": true });
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
// src/components/machines/machine-status.ts
|
|
489
|
+
var UPDATE_CONFIRMATION_GRACE_MS = 3e4;
|
|
490
|
+
var UPDATE_HOLD_ATTENTION_MS = 10 * 6e4;
|
|
491
|
+
function elapsedDuration(t, ms) {
|
|
492
|
+
const minutes = Math.max(1, Math.floor(ms / 6e4));
|
|
493
|
+
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) });
|
|
494
|
+
}
|
|
495
|
+
function updateWaitingReason(t, update, now) {
|
|
496
|
+
const labels = {
|
|
497
|
+
browser_action: t("machines.machineStatus.blockerBrowserAction"),
|
|
498
|
+
browser_session: t("machines.machineStatus.blockerBrowserSession"),
|
|
499
|
+
browser_creation: t("machines.machineStatus.blockerBrowserCreation"),
|
|
500
|
+
browser_closing: t("machines.machineStatus.blockerBrowserClosing"),
|
|
501
|
+
browser_recovery: t("machines.machineStatus.blockerBrowserRecovery"),
|
|
502
|
+
browser_authentication: t("machines.machineStatus.blockerBrowserAuth"),
|
|
503
|
+
browser_state_transfer: t("machines.machineStatus.blockerBrowserTransfer"),
|
|
504
|
+
computer_action: t("machines.machineStatus.blockerComputerAction"),
|
|
505
|
+
computer_virtual_seat: t("machines.machineStatus.blockerVirtualDesktop"),
|
|
506
|
+
computer_session: t("machines.machineStatus.blockerComputerSession"),
|
|
507
|
+
computer_creation: t("machines.machineStatus.blockerComputerCreation"),
|
|
508
|
+
computer_closing: t("machines.machineStatus.blockerComputerClosing"),
|
|
509
|
+
computer_seat_transfer: t("machines.machineStatus.blockerSeatTransfer"),
|
|
510
|
+
controller_request: t("machines.machineStatus.blockerControllerRequest"),
|
|
511
|
+
controller_lifecycle: t("machines.machineStatus.blockerControllerLifecycle"),
|
|
512
|
+
controller_stream: t("machines.machineStatus.blockerStream"),
|
|
513
|
+
controller_producer: t("machines.machineStatus.blockerProducer"),
|
|
514
|
+
controller_previous_update: t("machines.machineStatus.blockerPreviousUpdate"),
|
|
515
|
+
other_work: t("machines.machineStatus.blockerOtherWork"),
|
|
516
|
+
upload: t("machines.machineStatus.blockerUpload"),
|
|
517
|
+
native_request: t("machines.machineStatus.blockerNativeRequest"),
|
|
518
|
+
native_operation: t("machines.machineStatus.blockerNativeOperation"),
|
|
519
|
+
native_light_running: t("machines.machineStatus.blockerNativeRequest"),
|
|
520
|
+
native_light_queued: t("machines.machineStatus.blockerQueuedRequest"),
|
|
521
|
+
native_heavy_running: t("machines.machineStatus.blockerNativeOperation"),
|
|
522
|
+
native_heavy_queued: t("machines.machineStatus.blockerQueuedOperation")
|
|
523
|
+
};
|
|
524
|
+
const raw = update.blockers ?? [];
|
|
525
|
+
const native = raw.filter(
|
|
526
|
+
(blocker) => blocker.kind.startsWith("native_") && !blocker.kind.includes("cleanup")
|
|
527
|
+
);
|
|
528
|
+
const blockers = raw.filter((blocker) => !native.includes(blocker));
|
|
529
|
+
if (native.length)
|
|
530
|
+
blockers.push({
|
|
531
|
+
kind: "native_work",
|
|
532
|
+
count: Math.max(...native.map((blocker) => blocker.count))
|
|
533
|
+
});
|
|
534
|
+
labels.native_work = t("machines.machineStatus.blockerNativeCounters");
|
|
535
|
+
if (blockers.length) {
|
|
536
|
+
const details = blockers.map((blocker) => {
|
|
537
|
+
const label = labels[blocker.kind] ?? (blocker.kind.includes("cleanup") ? t("machines.machineStatus.blockerCleanup") : t("machines.machineStatus.blockerUnknown"));
|
|
538
|
+
return t("machines.machineStatus.blockerCount", { label, count: blocker.count });
|
|
539
|
+
}).join("; ");
|
|
540
|
+
return t("machines.machineStatus.reportedBlockers", {
|
|
541
|
+
details,
|
|
542
|
+
duration: elapsedDuration(t, now - Date.parse(update.updatedAt))
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
switch (update.errorCode) {
|
|
546
|
+
case "update_busy_interactions":
|
|
547
|
+
case "update_busy_browsers":
|
|
548
|
+
return t("machines.machineStatus.waitingForInteractions");
|
|
549
|
+
case "update_busy_uploads":
|
|
550
|
+
return t("machines.machineStatus.waitingForUploads");
|
|
551
|
+
case "update_busy_updating":
|
|
552
|
+
return t("machines.machineStatus.waitingForAnotherUpdate");
|
|
553
|
+
default:
|
|
554
|
+
return t("machines.machineStatus.waitingForUnspecifiedWork");
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
function isPostponedUpdate(errorCode) {
|
|
558
|
+
return typeof errorCode === "string" && errorCode.startsWith("update_busy");
|
|
559
|
+
}
|
|
560
|
+
var FAILURE_REASON = (t) => ({
|
|
561
|
+
update_cleanup_unconfirmed: t("machines.machineStatus.previousWorkCleanupUnconfirmed"),
|
|
562
|
+
update_state_unavailable: t("machines.machineStatus.theAgentCouldnTCheck"),
|
|
563
|
+
agent_offline: t("machines.machineStatus.theMachineWasOffline"),
|
|
564
|
+
update_dispatch_rejected: t("machines.machineStatus.theAgentRefusedTheRequest"),
|
|
565
|
+
invalid_agent_response: t("machines.machineStatus.theAgentSentAnUnexpected")
|
|
566
|
+
});
|
|
567
|
+
function failureReason(t, code) {
|
|
568
|
+
if (!code) return null;
|
|
569
|
+
return FAILURE_REASON(t)[code] ?? code.replaceAll("_", " ");
|
|
570
|
+
}
|
|
571
|
+
var ACTIVE_STATUSES = /* @__PURE__ */ new Set([
|
|
572
|
+
"requested",
|
|
573
|
+
"accepted",
|
|
574
|
+
"waiting_for_idle",
|
|
575
|
+
"downloading",
|
|
576
|
+
"verifying",
|
|
577
|
+
"applying",
|
|
578
|
+
"restarting"
|
|
579
|
+
]);
|
|
580
|
+
function describeAgentRuntime(t, runtime, now, online = true) {
|
|
581
|
+
const installed = runtime.installedVersion;
|
|
582
|
+
const title = installed ? t("machines.machineStatus.agentVInstalled", { installed }) : t("machines.machineStatus.agentVersionUnknown");
|
|
583
|
+
const blocked = runtime.updateBlockedReason?.trim() || null;
|
|
584
|
+
const update = runtime.update;
|
|
585
|
+
const target = update ? `v${update.targetVersion}` : null;
|
|
586
|
+
const alreadyInstalled = update !== null && (update.targetVersion === installed || runtime.versionState === "current" || runtime.versionState === "ahead");
|
|
587
|
+
if (update && ACTIVE_STATUSES.has(update.status) && !alreadyInstalled) {
|
|
588
|
+
const base = { title, tone: "progress", note: null, action: null };
|
|
589
|
+
switch (update.status) {
|
|
590
|
+
case "requested": {
|
|
591
|
+
const stalled = now - new Date(update.updatedAt).getTime() >= UPDATE_CONFIRMATION_GRACE_MS;
|
|
592
|
+
return stalled ? {
|
|
593
|
+
title,
|
|
594
|
+
status: t("machines.machineStatus.theAgentHasnTConfirmed", { target }),
|
|
595
|
+
tone: "attention",
|
|
596
|
+
note: null,
|
|
597
|
+
action: { kind: "resend", label: t("machines.machineStatus.sendAgain") }
|
|
598
|
+
} : { ...base, status: t("machines.machineStatus.sendingTheUpdateToTarget", { target }) };
|
|
599
|
+
}
|
|
600
|
+
case "accepted":
|
|
601
|
+
return { ...base, status: t("machines.machineStatus.updatingToTarget", { target }) };
|
|
602
|
+
case "waiting_for_idle": {
|
|
603
|
+
const heldMs = Math.max(0, now - Date.parse(update.requestedAt));
|
|
604
|
+
const duration = elapsedDuration(t, heldMs);
|
|
605
|
+
return {
|
|
606
|
+
...base,
|
|
607
|
+
tone: !online ? "muted" : heldMs >= UPDATE_HOLD_ATTENTION_MS ? "attention" : "waiting",
|
|
608
|
+
status: !online ? t("machines.machineStatus.offlineUpdateReport") : heldMs >= UPDATE_HOLD_ATTENTION_MS ? t("machines.machineStatus.updateHeldDuration", { target, duration }) : t("machines.machineStatus.updatesToTargetWhenCurrent", { target }),
|
|
609
|
+
note: blocked ?? updateWaitingReason(t, update, now)
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
case "downloading":
|
|
613
|
+
return { ...base, status: `Downloading ${target}\u2026` };
|
|
614
|
+
case "verifying":
|
|
615
|
+
return { ...base, status: `Verifying ${target}\u2026` };
|
|
616
|
+
case "applying":
|
|
617
|
+
return { ...base, status: `Installing ${target}\u2026` };
|
|
618
|
+
default:
|
|
619
|
+
return { ...base, status: t("machines.machineStatus.restartingTheAgent") };
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
if (update?.status === "failed" && !alreadyInstalled) {
|
|
623
|
+
if (isPostponedUpdate(update.errorCode)) {
|
|
624
|
+
const browsersWouldClose = update.errorCode === "update_busy_browsers";
|
|
625
|
+
return {
|
|
626
|
+
title,
|
|
627
|
+
status: browsersWouldClose ? t("machines.machineStatus.updateToTargetPostponedOpen", { target }) : t("machines.machineStatus.updateToTargetPostponedWhile", { target }),
|
|
628
|
+
tone: "waiting",
|
|
629
|
+
note: blocked ?? (browsersWouldClose ? t("machines.machineStatus.theInstalledAgentClosesIts") : updateWaitingReason(t, update, now)),
|
|
630
|
+
action: blocked ? null : { kind: "update", label: t("machines.machineStatus.updateNow") }
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
const reason = failureReason(t, update.errorCode);
|
|
634
|
+
const retry = update.retryable && !blocked ? { kind: "retry", label: t("machines.machineStatus.tryAgain") } : null;
|
|
635
|
+
if (update.rolledBack) {
|
|
636
|
+
return {
|
|
637
|
+
title,
|
|
638
|
+
status: t("machines.machineStatus.couldnTUpdateToTarget", { target }),
|
|
639
|
+
tone: "attention",
|
|
640
|
+
note: blocked ?? (reason ? t("machines.machineStatus.reasonReason", { reason }) : null),
|
|
641
|
+
action: retry
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
return {
|
|
645
|
+
title,
|
|
646
|
+
status: t("machines.machineStatus.updateToTargetFailed", { target }),
|
|
647
|
+
tone: "failed",
|
|
648
|
+
note: blocked ?? (reason ? t("machines.machineStatus.reasonReason", { reason }) : null),
|
|
649
|
+
action: retry
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
const desired = runtime.desiredVersion;
|
|
653
|
+
switch (runtime.versionState) {
|
|
654
|
+
case "current":
|
|
655
|
+
return {
|
|
656
|
+
title,
|
|
657
|
+
status: runtime.updateChannel === "beta" ? t("machines.machineStatus.upToDateBeta") : t("machines.machineStatus.upToDate"),
|
|
658
|
+
tone: "ok",
|
|
659
|
+
note: null,
|
|
660
|
+
action: null
|
|
661
|
+
};
|
|
662
|
+
case "ahead":
|
|
663
|
+
return {
|
|
664
|
+
title,
|
|
665
|
+
status: desired ? t("machines.machineStatus.newerThanTheReleasedV", { desired }) : t("machines.machineStatus.newerThanTheRelease"),
|
|
666
|
+
tone: "muted",
|
|
667
|
+
note: null,
|
|
668
|
+
action: null
|
|
669
|
+
};
|
|
670
|
+
case "unknown":
|
|
671
|
+
return {
|
|
672
|
+
title,
|
|
673
|
+
status: desired ? t("machines.machineStatus.latestIsVDesired", { desired }) : t("machines.machineStatus.noReleaseConfigured"),
|
|
674
|
+
tone: "muted",
|
|
675
|
+
note: blocked,
|
|
676
|
+
action: null
|
|
677
|
+
};
|
|
678
|
+
default:
|
|
679
|
+
if (!desired || desired === installed) {
|
|
680
|
+
return {
|
|
681
|
+
title,
|
|
682
|
+
status: t("machines.machineStatus.upToDate"),
|
|
683
|
+
tone: "ok",
|
|
684
|
+
note: null,
|
|
685
|
+
action: null
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
return {
|
|
689
|
+
title,
|
|
690
|
+
status: `v${desired} available`,
|
|
691
|
+
tone: "waiting",
|
|
692
|
+
note: blocked,
|
|
693
|
+
action: blocked ? null : { kind: "update", label: t("machines.machineStatus.update") }
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
var RUNNER_CONFLICT_ACTIVE_MS = 2 * 6e4;
|
|
698
|
+
function runnerConflict(authority, now) {
|
|
699
|
+
if (authority.duplicateRunnerDeniedCount <= 0) return null;
|
|
700
|
+
const lastAt = authority.duplicateRunnerDeniedAt;
|
|
701
|
+
const last = lastAt ? new Date(lastAt).getTime() : Number.NaN;
|
|
702
|
+
return {
|
|
703
|
+
active: Number.isFinite(last) && now - last < RUNNER_CONFLICT_ACTIVE_MS,
|
|
704
|
+
count: authority.duplicateRunnerDeniedCount,
|
|
705
|
+
lastAt
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
function describeAgentConnection(t, authority) {
|
|
709
|
+
if (authority.state !== "active" && authority.authenticationError === "credentials_expired") {
|
|
710
|
+
return {
|
|
711
|
+
label: t("machines.machineStatus.credentialsExpired"),
|
|
712
|
+
detail: t("machines.machineStatus.credentialsRecovery")
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
const label = authority.state === "active" ? t("machines.machineStatus.agentConnected") : authority.state === "expired" ? t("machines.machineStatus.agentConnectionLapsed") : t("machines.machineStatus.agentNotConnectedYet");
|
|
716
|
+
const n = authority.supersededCount;
|
|
717
|
+
return {
|
|
718
|
+
label,
|
|
719
|
+
detail: authority.state === "expired" || authority.state === "unclaimed" ? t("machines.machineStatus.offlineRecovery") : n > 0 ? t("machines.machineStatus.reconnectedTimesSinceSetup", { count: n }) : null
|
|
720
|
+
};
|
|
721
|
+
}
|
|
722
|
+
var STATUS_TONE_TEXT = {
|
|
723
|
+
ok: "text-og-status-idle",
|
|
724
|
+
progress: "text-og-accent",
|
|
725
|
+
waiting: "text-og-fg-muted",
|
|
726
|
+
attention: "text-og-status-waiting",
|
|
727
|
+
failed: "text-og-status-failed",
|
|
728
|
+
muted: "text-og-fg-subtle"
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
// src/components/machines/metric-sparkline.tsx
|
|
732
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
733
|
+
var VW = 120;
|
|
734
|
+
function MetricSparkline({
|
|
735
|
+
points,
|
|
736
|
+
color = "var(--og-color-accent)",
|
|
737
|
+
yMax = "auto",
|
|
738
|
+
height = 28,
|
|
739
|
+
className
|
|
740
|
+
}) {
|
|
741
|
+
const valued = points.filter(
|
|
742
|
+
(p) => p.v != null && Number.isFinite(p.v)
|
|
743
|
+
);
|
|
744
|
+
if (valued.length < 2) {
|
|
745
|
+
return /* @__PURE__ */ jsx5("div", { className, style: { height }, "aria-hidden": true });
|
|
746
|
+
}
|
|
747
|
+
const vh = height;
|
|
748
|
+
const top = yMax === "auto" ? Math.max(1, ...valued.map((p) => p.v)) * 1.1 : yMax;
|
|
749
|
+
const tMin = valued[0].t;
|
|
750
|
+
const tSpan = Math.max(1, valued[valued.length - 1].t - tMin);
|
|
751
|
+
const xy = valued.map((p) => ({
|
|
752
|
+
x: (p.t - tMin) / tSpan * VW,
|
|
753
|
+
y: vh - Math.min(top, Math.max(0, p.v)) / Math.max(1e-6, top) * (vh - 2) - 1
|
|
754
|
+
}));
|
|
755
|
+
let d = `M${xy[0].x},${xy[0].y}`;
|
|
756
|
+
for (let i = 0; i < xy.length - 1; i++) {
|
|
757
|
+
const p0 = xy[i - 1] ?? xy[i];
|
|
758
|
+
const p1 = xy[i];
|
|
759
|
+
const p2 = xy[i + 1];
|
|
760
|
+
const p3 = xy[i + 2] ?? p2;
|
|
761
|
+
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}`;
|
|
762
|
+
}
|
|
763
|
+
const last = xy[xy.length - 1];
|
|
764
|
+
const gid = `spark-${Math.round(top)}-${color.length}`;
|
|
765
|
+
return /* @__PURE__ */ jsxs4(
|
|
766
|
+
"svg",
|
|
767
|
+
{
|
|
768
|
+
viewBox: `0 0 ${VW} ${vh}`,
|
|
769
|
+
preserveAspectRatio: "none",
|
|
770
|
+
className,
|
|
771
|
+
style: { height, width: "100%" },
|
|
772
|
+
"aria-hidden": true,
|
|
773
|
+
children: [
|
|
774
|
+
/* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */ jsxs4("linearGradient", { id: gid, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
775
|
+
/* @__PURE__ */ jsx5("stop", { offset: "0%", stopColor: color, stopOpacity: "0.22" }),
|
|
776
|
+
/* @__PURE__ */ jsx5("stop", { offset: "100%", stopColor: color, stopOpacity: "0" })
|
|
777
|
+
] }) }),
|
|
778
|
+
/* @__PURE__ */ jsx5("path", { d: `${d} L${last.x},${vh} L${xy[0].x},${vh} Z`, fill: `url(#${gid})` }),
|
|
779
|
+
/* @__PURE__ */ jsx5(
|
|
780
|
+
"path",
|
|
781
|
+
{
|
|
782
|
+
d,
|
|
783
|
+
fill: "none",
|
|
784
|
+
stroke: color,
|
|
785
|
+
strokeWidth: 1.25,
|
|
786
|
+
strokeLinejoin: "round",
|
|
787
|
+
strokeLinecap: "round",
|
|
788
|
+
vectorEffect: "non-scaling-stroke"
|
|
789
|
+
}
|
|
790
|
+
),
|
|
791
|
+
/* @__PURE__ */ jsx5("circle", { cx: last.x, cy: last.y, r: 1.6, fill: color, vectorEffect: "non-scaling-stroke" })
|
|
792
|
+
]
|
|
793
|
+
}
|
|
794
|
+
);
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
// src/components/machine-card.tsx
|
|
798
|
+
import { Fragment, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
799
|
+
function KindIcon({ machine }) {
|
|
800
|
+
if (machine.kind === "local" || machine.kind === "selfhosted")
|
|
801
|
+
return /* @__PURE__ */ jsx6(LaptopIcon, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
|
|
802
|
+
if (machine.kind === "docker" || machine.isSessionGroup)
|
|
803
|
+
return /* @__PURE__ */ jsx6(ServerIcon, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
|
|
804
|
+
if (machine.kind === "modal") return /* @__PURE__ */ jsx6(CpuIcon, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
|
|
805
|
+
return /* @__PURE__ */ jsx6(ServerIcon, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
|
|
806
|
+
}
|
|
807
|
+
function MachineCard({
|
|
808
|
+
machine,
|
|
809
|
+
onAttach,
|
|
810
|
+
attaching,
|
|
811
|
+
onUpdateAgent,
|
|
812
|
+
updatingAgent,
|
|
813
|
+
series,
|
|
814
|
+
onOpenDetail,
|
|
815
|
+
now,
|
|
816
|
+
className
|
|
817
|
+
}) {
|
|
818
|
+
const msg = useOpenGeniText();
|
|
819
|
+
const offline = machine.state === "offline";
|
|
820
|
+
const attachable = !machine.active && !offline && Boolean(onAttach);
|
|
821
|
+
const shared = machine.sharedSessionCount > 1;
|
|
822
|
+
const clockNow = now ?? Date.now();
|
|
823
|
+
const sampledAgo = machine.metrics ? formatRelativeTime(msg, machine.metrics.sampledAt, new Date(clockNow)) : null;
|
|
824
|
+
const cpuPts = (series ?? []).map((s) => ({ t: new Date(s.sampledAt).getTime(), v: s.cpuPct }));
|
|
825
|
+
const openable = Boolean(onOpenDetail);
|
|
826
|
+
const runtime = machine.runtime;
|
|
827
|
+
const agent = runtime ? describeAgentRuntime(
|
|
828
|
+
msg,
|
|
829
|
+
runtime,
|
|
830
|
+
clockNow,
|
|
831
|
+
connectionStatusForState(machine.state) === "online"
|
|
832
|
+
) : null;
|
|
833
|
+
const updateAction = agent?.action && machine.enrollmentId && onUpdateAgent && !offline ? agent.action : null;
|
|
834
|
+
const conflict = runnerConflict(machine.connectionAuthority, clockNow);
|
|
835
|
+
return /* @__PURE__ */ jsxs5(
|
|
836
|
+
"div",
|
|
837
|
+
{
|
|
838
|
+
"data-machine-card": machine.sandboxId,
|
|
839
|
+
"data-active": machine.active ? "true" : "false",
|
|
840
|
+
role: openable ? "button" : void 0,
|
|
841
|
+
tabIndex: openable ? 0 : void 0,
|
|
842
|
+
onClick: openable ? () => onOpenDetail?.(machine) : void 0,
|
|
843
|
+
onKeyDown: openable ? (e) => {
|
|
844
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
845
|
+
e.preventDefault();
|
|
846
|
+
onOpenDetail?.(machine);
|
|
847
|
+
}
|
|
848
|
+
} : void 0,
|
|
849
|
+
className: cn(
|
|
850
|
+
"og-root group relative flex flex-col gap-3 overflow-hidden rounded-og-lg border border-og-border",
|
|
851
|
+
"bg-og-surface-1 p-4 shadow-og-sm transition-colors",
|
|
852
|
+
openable && "cursor-pointer hover:border-og-border-strong focus-visible:border-og-accent/60 focus-visible:outline-hidden",
|
|
853
|
+
machine.active && "border-og-accent/40",
|
|
854
|
+
className
|
|
855
|
+
),
|
|
856
|
+
children: [
|
|
857
|
+
machine.active ? /* @__PURE__ */ jsx6("span", { "aria-hidden": true, className: "absolute inset-y-0 left-0 w-0.5 bg-og-accent" }) : null,
|
|
858
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex items-start justify-between gap-3", children: [
|
|
859
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex min-w-0 items-start gap-2.5", children: [
|
|
860
|
+
/* @__PURE__ */ jsx6("span", { className: "mt-0.5 shrink-0", children: /* @__PURE__ */ jsx6(KindIcon, { machine }) }),
|
|
861
|
+
/* @__PURE__ */ jsxs5("div", { className: "min-w-0", children: [
|
|
862
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-2", children: [
|
|
863
|
+
/* @__PURE__ */ jsx6("span", { className: "truncate text-og-base font-medium text-og-fg", children: machine.name }),
|
|
864
|
+
machine.active ? /* @__PURE__ */ jsx6(
|
|
865
|
+
"span",
|
|
866
|
+
{
|
|
867
|
+
"data-active-marker": true,
|
|
868
|
+
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",
|
|
869
|
+
children: msg("machineCard.active")
|
|
870
|
+
}
|
|
871
|
+
) : null
|
|
872
|
+
] }),
|
|
873
|
+
/* @__PURE__ */ jsxs5("div", { className: "mt-0.5 flex flex-col gap-0.5 text-og-xs text-og-fg-subtle", children: [
|
|
874
|
+
/* @__PURE__ */ jsxs5("span", { className: "flex flex-wrap items-center gap-x-2", children: [
|
|
875
|
+
/* @__PURE__ */ jsx6("span", { "data-machine-scope": machine.scope, children: machineScopeLabel(msg, machine.scope) }),
|
|
876
|
+
/* @__PURE__ */ jsx6("span", { "aria-hidden": true, children: "\xB7" }),
|
|
877
|
+
/* @__PURE__ */ jsx6("span", { "data-machine-platform": true, title: machineSystemDetail(machine), children: machinePlatformLabel(msg, machine.os) })
|
|
878
|
+
] }),
|
|
879
|
+
/* @__PURE__ */ jsxs5("span", { "data-machine-screen": true, className: "inline-flex items-center gap-1", children: [
|
|
880
|
+
machine.hasDisplay && machine.allowScreenControl ? /* @__PURE__ */ jsx6(MonitorIcon, { className: "size-3", "aria-hidden": true }) : /* @__PURE__ */ jsx6(MonitorOffIcon, { className: "size-3", "aria-hidden": true }),
|
|
881
|
+
machineScreenLabel(msg, machine)
|
|
882
|
+
] })
|
|
883
|
+
] })
|
|
884
|
+
] })
|
|
885
|
+
] }),
|
|
886
|
+
/* @__PURE__ */ jsx6(
|
|
887
|
+
MachineHealthPill,
|
|
888
|
+
{
|
|
889
|
+
state: machine.state,
|
|
890
|
+
metrics: machine.metrics,
|
|
891
|
+
now: clockNow,
|
|
892
|
+
size: "sm",
|
|
893
|
+
className: "shrink-0"
|
|
894
|
+
}
|
|
895
|
+
)
|
|
896
|
+
] }),
|
|
897
|
+
shared ? /* @__PURE__ */ jsxs5(
|
|
898
|
+
"p",
|
|
899
|
+
{
|
|
900
|
+
"data-shared-disclosure": true,
|
|
901
|
+
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",
|
|
902
|
+
children: [
|
|
903
|
+
/* @__PURE__ */ jsx6(UsersIcon, { className: "size-3.5 shrink-0 text-og-accent", "aria-hidden": true }),
|
|
904
|
+
msg("machineCard.sharedSharedsessioncountSessionsAreOn", {
|
|
905
|
+
sharedSessionCount: machine.sharedSessionCount
|
|
906
|
+
})
|
|
907
|
+
]
|
|
908
|
+
}
|
|
909
|
+
) : null,
|
|
910
|
+
conflict?.active ? /* @__PURE__ */ jsxs5(
|
|
911
|
+
"p",
|
|
912
|
+
{
|
|
913
|
+
"data-runner-conflict": true,
|
|
914
|
+
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",
|
|
915
|
+
children: [
|
|
916
|
+
/* @__PURE__ */ jsx6(
|
|
917
|
+
AlertTriangleIcon,
|
|
918
|
+
{
|
|
919
|
+
className: "mt-px size-3.5 shrink-0 text-og-status-waiting",
|
|
920
|
+
"aria-hidden": true
|
|
921
|
+
}
|
|
922
|
+
),
|
|
923
|
+
/* @__PURE__ */ jsx6("span", { children: msg("machineCard.aSecondCopyOfThe") })
|
|
924
|
+
]
|
|
925
|
+
}
|
|
926
|
+
) : null,
|
|
927
|
+
agent ? /* @__PURE__ */ jsxs5(
|
|
928
|
+
"div",
|
|
929
|
+
{
|
|
930
|
+
"data-agent-runtime": true,
|
|
931
|
+
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",
|
|
932
|
+
children: [
|
|
933
|
+
/* @__PURE__ */ jsxs5("div", { className: "min-w-0", children: [
|
|
934
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-1.5 text-og-fg-muted", children: [
|
|
935
|
+
/* @__PURE__ */ jsx6(AgentStatusIcon, { tone: agent.tone }),
|
|
936
|
+
/* @__PURE__ */ jsx6("span", { className: "truncate", children: agent.title })
|
|
937
|
+
] }),
|
|
938
|
+
/* @__PURE__ */ jsx6(
|
|
939
|
+
"p",
|
|
940
|
+
{
|
|
941
|
+
"data-agent-status": agent.tone,
|
|
942
|
+
className: cn("mt-0.5", STATUS_TONE_TEXT[agent.tone]),
|
|
943
|
+
children: agent.status
|
|
944
|
+
}
|
|
945
|
+
),
|
|
946
|
+
agent.note ? /* @__PURE__ */ jsx6("p", { className: "mt-1 text-og-fg-muted", children: agent.note }) : null
|
|
947
|
+
] }),
|
|
948
|
+
updateAction ? /* @__PURE__ */ jsx6(
|
|
949
|
+
"button",
|
|
950
|
+
{
|
|
951
|
+
type: "button",
|
|
952
|
+
"data-update-agent": true,
|
|
953
|
+
"data-update-action": updateAction.kind,
|
|
954
|
+
disabled: updatingAgent,
|
|
955
|
+
onClick: (event) => {
|
|
956
|
+
event.stopPropagation();
|
|
957
|
+
onUpdateAgent?.(machine);
|
|
958
|
+
},
|
|
959
|
+
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",
|
|
960
|
+
children: updatingAgent ? msg("machineCard.starting") : updateAction.label
|
|
961
|
+
}
|
|
962
|
+
) : null
|
|
963
|
+
]
|
|
964
|
+
}
|
|
965
|
+
) : null,
|
|
966
|
+
/* @__PURE__ */ jsx6(MachineMetrics, { metrics: machine.metrics }),
|
|
967
|
+
cpuPts.length > 1 ? /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-1 rounded-og-md bg-og-surface-2/40 p-2.5", children: [
|
|
968
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between text-[10px] font-medium uppercase tracking-wide text-og-fg-subtle", children: [
|
|
969
|
+
/* @__PURE__ */ jsx6("span", { children: msg("machineCard.cpuLast15m") }),
|
|
970
|
+
openable ? /* @__PURE__ */ jsxs5("span", { className: "flex items-center gap-0.5 opacity-0 transition-opacity group-hover:opacity-100", children: [
|
|
971
|
+
msg("machineCard.telemetry"),
|
|
972
|
+
" ",
|
|
973
|
+
/* @__PURE__ */ jsx6(ArrowRightIcon, { className: "size-2.5", "aria-hidden": true })
|
|
974
|
+
] }) : null
|
|
975
|
+
] }),
|
|
976
|
+
/* @__PURE__ */ jsx6(MetricSparkline, { points: cpuPts, color: "var(--og-color-accent)", yMax: 100, height: 26 })
|
|
977
|
+
] }) : null,
|
|
978
|
+
/* @__PURE__ */ jsxs5("div", { className: "mt-1 flex items-center justify-between gap-3 text-og-xs text-og-fg-subtle", children: [
|
|
979
|
+
/* @__PURE__ */ jsx6("span", { className: "inline-flex items-center gap-1.5", children: sampledAgo ? /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
980
|
+
/* @__PURE__ */ jsx6(
|
|
981
|
+
"span",
|
|
982
|
+
{
|
|
983
|
+
className: cn(
|
|
984
|
+
"size-1.5 rounded-full",
|
|
985
|
+
sampledAgo === "now" ? "bg-og-status-idle" : "bg-og-fg-subtle"
|
|
986
|
+
),
|
|
987
|
+
"aria-hidden": true
|
|
988
|
+
}
|
|
989
|
+
),
|
|
990
|
+
sampledAgo === "now" ? msg("machineCard.live") : msg("machineCard.updatedSampledagoAgo", { sampledAgo })
|
|
991
|
+
] }) : machine.lastSeenAt ? /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
992
|
+
msg("machineCard.lastSeen"),
|
|
993
|
+
" ",
|
|
994
|
+
formatRelativeTime(msg, machine.lastSeenAt, new Date(clockNow))
|
|
995
|
+
] }) : msg("machineCard.neverConnected") }),
|
|
996
|
+
machine.active ? /* @__PURE__ */ jsx6("span", { className: "text-og-accent", children: msg("machineCard.routingHere") }) : attachable ? /* @__PURE__ */ jsx6(
|
|
997
|
+
"button",
|
|
998
|
+
{
|
|
999
|
+
type: "button",
|
|
1000
|
+
"data-attach": true,
|
|
1001
|
+
disabled: attaching,
|
|
1002
|
+
onClick: (e) => {
|
|
1003
|
+
e.stopPropagation();
|
|
1004
|
+
onAttach?.(machine);
|
|
1005
|
+
},
|
|
1006
|
+
className: cn(
|
|
1007
|
+
"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",
|
|
1008
|
+
"hover:border-og-border-strong hover:text-og-fg disabled:cursor-not-allowed disabled:opacity-50"
|
|
1009
|
+
),
|
|
1010
|
+
children: attaching ? msg("machineCard.switching") : msg("machineCard.attach")
|
|
1011
|
+
}
|
|
1012
|
+
) : /* @__PURE__ */ jsx6("span", { className: "text-og-fg-subtle/70", children: offline ? msg("machineCard.unavailable") : "\u2014" })
|
|
1013
|
+
] })
|
|
1014
|
+
]
|
|
1015
|
+
}
|
|
1016
|
+
);
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
// src/components/machines/metric-history-chart.tsx
|
|
1020
|
+
import { useLayoutEffect, useRef, useState } from "react";
|
|
1021
|
+
import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1022
|
+
var PAD = { top: 10, right: 12, bottom: 18, left: 40 };
|
|
1023
|
+
function niceCeil(v) {
|
|
1024
|
+
if (v <= 0) return 1;
|
|
1025
|
+
const mag = 10 ** Math.floor(Math.log10(v));
|
|
1026
|
+
const n = v / mag;
|
|
1027
|
+
const step = n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10;
|
|
1028
|
+
return step * mag;
|
|
1029
|
+
}
|
|
1030
|
+
function smoothPath(pts) {
|
|
1031
|
+
if (pts.length === 0) return "";
|
|
1032
|
+
if (pts.length === 1) return `M${pts[0].x},${pts[0].y}`;
|
|
1033
|
+
let d = `M${pts[0].x},${pts[0].y}`;
|
|
1034
|
+
for (let i = 0; i < pts.length - 1; i++) {
|
|
1035
|
+
const p0 = pts[i - 1] ?? pts[i];
|
|
1036
|
+
const p1 = pts[i];
|
|
1037
|
+
const p2 = pts[i + 1];
|
|
1038
|
+
const p3 = pts[i + 2] ?? p2;
|
|
1039
|
+
const cp1x = p1.x + (p2.x - p0.x) / 6;
|
|
1040
|
+
const cp1y = p1.y + (p2.y - p0.y) / 6;
|
|
1041
|
+
const cp2x = p2.x - (p3.x - p1.x) / 6;
|
|
1042
|
+
const cp2y = p2.y - (p3.y - p1.y) / 6;
|
|
1043
|
+
d += `C${cp1x},${cp1y} ${cp2x},${cp2y} ${p2.x},${p2.y}`;
|
|
1044
|
+
}
|
|
1045
|
+
return d;
|
|
1046
|
+
}
|
|
1047
|
+
function fmtClock(t) {
|
|
1048
|
+
const d = new Date(t);
|
|
1049
|
+
return `${d.getHours().toString().padStart(2, "0")}:${d.getMinutes().toString().padStart(2, "0")}`;
|
|
1050
|
+
}
|
|
1051
|
+
function MetricHistoryChart({
|
|
1052
|
+
points,
|
|
1053
|
+
yMax = "auto",
|
|
1054
|
+
yMin = 0,
|
|
1055
|
+
format,
|
|
1056
|
+
unit = "",
|
|
1057
|
+
color = "var(--og-color-accent)",
|
|
1058
|
+
thresholds,
|
|
1059
|
+
height = 132,
|
|
1060
|
+
rangeLabel: rangeLabelProp,
|
|
1061
|
+
className
|
|
1062
|
+
}) {
|
|
1063
|
+
const msg = useOpenGeniText();
|
|
1064
|
+
const rangeLabel = rangeLabelProp === void 0 ? msg("machines.metricHistoryChart.inThisRange") : rangeLabelProp;
|
|
1065
|
+
const ref = useRef(null);
|
|
1066
|
+
const [w, setW] = useState(560);
|
|
1067
|
+
const [hover, setHover] = useState(null);
|
|
1068
|
+
useLayoutEffect(() => {
|
|
1069
|
+
const el = ref.current;
|
|
1070
|
+
if (!el) return;
|
|
1071
|
+
const ro = new ResizeObserver((entries) => {
|
|
1072
|
+
const cw = entries[0]?.contentRect.width;
|
|
1073
|
+
if (cw && cw > 0) setW(cw);
|
|
1074
|
+
});
|
|
1075
|
+
ro.observe(el);
|
|
1076
|
+
return () => ro.disconnect();
|
|
1077
|
+
}, []);
|
|
1078
|
+
const valued = points.filter(
|
|
1079
|
+
(p) => p.v != null && Number.isFinite(p.v)
|
|
1080
|
+
);
|
|
1081
|
+
const fmt = format ?? ((v) => `${Math.round(v)}${unit}`);
|
|
1082
|
+
const H = height;
|
|
1083
|
+
const plotW = Math.max(1, w - PAD.left - PAD.right);
|
|
1084
|
+
const plotH = Math.max(1, H - PAD.top - PAD.bottom);
|
|
1085
|
+
const dataMax = valued.length ? Math.max(...valued.map((p) => p.v)) : 1;
|
|
1086
|
+
const top = yMax === "auto" ? niceCeil(Math.max(dataMax * 1.15, thresholds?.warn ?? 0, 1)) : yMax;
|
|
1087
|
+
const span = Math.max(1e-6, top - yMin);
|
|
1088
|
+
const tMin = valued.length ? valued[0].t : 0;
|
|
1089
|
+
const tMax = valued.length ? valued[valued.length - 1].t : 1;
|
|
1090
|
+
const tSpan = Math.max(1, tMax - tMin);
|
|
1091
|
+
const xOf = (t) => PAD.left + (t - tMin) / tSpan * plotW;
|
|
1092
|
+
const yOf = (v) => PAD.top + (1 - (Math.min(top, Math.max(yMin, v)) - yMin) / span) * plotH;
|
|
1093
|
+
const pxPts = valued.map((p) => ({ x: xOf(p.t), y: yOf(p.v), t: p.t, v: p.v }));
|
|
1094
|
+
const sparse = pxPts.length > 0 && pxPts.length <= 4;
|
|
1095
|
+
const line = smoothPath(pxPts);
|
|
1096
|
+
const area = pxPts.length > 1 ? `${line} L${pxPts[pxPts.length - 1].x},${PAD.top + plotH} L${pxPts[0].x},${PAD.top + plotH} Z` : "";
|
|
1097
|
+
const yTicks = [yMin, yMin + span / 2, top];
|
|
1098
|
+
const gid = `og-mh-${Math.round(top)}-${Math.round(color.length)}`;
|
|
1099
|
+
const hoverPt = hover != null ? pxPts[hover] : null;
|
|
1100
|
+
return /* @__PURE__ */ jsxs6(
|
|
1101
|
+
"div",
|
|
1102
|
+
{
|
|
1103
|
+
ref,
|
|
1104
|
+
className: cn("relative w-full select-none", className),
|
|
1105
|
+
style: { height: H },
|
|
1106
|
+
"data-metric-chart": true,
|
|
1107
|
+
children: [
|
|
1108
|
+
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(
|
|
1109
|
+
"svg",
|
|
1110
|
+
{
|
|
1111
|
+
width: w,
|
|
1112
|
+
height: H,
|
|
1113
|
+
className: "overflow-visible",
|
|
1114
|
+
role: "img",
|
|
1115
|
+
onMouseLeave: () => setHover(null),
|
|
1116
|
+
onMouseMove: (e) => {
|
|
1117
|
+
const rect = e.currentTarget.getBoundingClientRect();
|
|
1118
|
+
const mx = e.clientX - rect.left;
|
|
1119
|
+
let best = 0;
|
|
1120
|
+
let bestD = Infinity;
|
|
1121
|
+
for (let i = 0; i < pxPts.length; i++) {
|
|
1122
|
+
const d = Math.abs(pxPts[i].x - mx);
|
|
1123
|
+
if (d < bestD) {
|
|
1124
|
+
bestD = d;
|
|
1125
|
+
best = i;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
setHover(best);
|
|
1129
|
+
},
|
|
1130
|
+
children: [
|
|
1131
|
+
/* @__PURE__ */ jsx7("defs", { children: /* @__PURE__ */ jsxs6("linearGradient", { id: gid, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
1132
|
+
/* @__PURE__ */ jsx7("stop", { offset: "0%", stopColor: color, stopOpacity: "0.26" }),
|
|
1133
|
+
/* @__PURE__ */ jsx7("stop", { offset: "100%", stopColor: color, stopOpacity: "0" })
|
|
1134
|
+
] }) }),
|
|
1135
|
+
yTicks.map((v, i) => {
|
|
1136
|
+
const y = yOf(v);
|
|
1137
|
+
return /* @__PURE__ */ jsxs6("g", { children: [
|
|
1138
|
+
/* @__PURE__ */ jsx7(
|
|
1139
|
+
"line",
|
|
1140
|
+
{
|
|
1141
|
+
x1: PAD.left,
|
|
1142
|
+
x2: w - PAD.right,
|
|
1143
|
+
y1: y,
|
|
1144
|
+
y2: y,
|
|
1145
|
+
stroke: "var(--og-color-border)",
|
|
1146
|
+
strokeOpacity: i === 0 ? 0.9 : 0.4,
|
|
1147
|
+
strokeWidth: 1
|
|
1148
|
+
}
|
|
1149
|
+
),
|
|
1150
|
+
/* @__PURE__ */ jsx7(
|
|
1151
|
+
"text",
|
|
1152
|
+
{
|
|
1153
|
+
x: PAD.left - 8,
|
|
1154
|
+
y: y + 3,
|
|
1155
|
+
textAnchor: "end",
|
|
1156
|
+
className: "font-og-mono",
|
|
1157
|
+
fontSize: 10,
|
|
1158
|
+
fill: "var(--og-color-fg-subtle)",
|
|
1159
|
+
children: fmt(v)
|
|
1160
|
+
}
|
|
1161
|
+
)
|
|
1162
|
+
] }, `yt-${v}`);
|
|
1163
|
+
}),
|
|
1164
|
+
["warn", "crit"].map((k) => {
|
|
1165
|
+
const tv = thresholds?.[k];
|
|
1166
|
+
if (tv == null || tv > top) return null;
|
|
1167
|
+
const y = yOf(tv);
|
|
1168
|
+
const stroke = k === "crit" ? "var(--og-color-status-failed)" : "var(--og-color-status-waiting)";
|
|
1169
|
+
return /* @__PURE__ */ jsx7(
|
|
1170
|
+
"line",
|
|
1171
|
+
{
|
|
1172
|
+
x1: PAD.left,
|
|
1173
|
+
x2: w - PAD.right,
|
|
1174
|
+
y1: y,
|
|
1175
|
+
y2: y,
|
|
1176
|
+
stroke,
|
|
1177
|
+
strokeOpacity: 0.5,
|
|
1178
|
+
strokeWidth: 1,
|
|
1179
|
+
strokeDasharray: "3 4"
|
|
1180
|
+
},
|
|
1181
|
+
k
|
|
1182
|
+
);
|
|
1183
|
+
}),
|
|
1184
|
+
valued.length > 1 && [tMin, tMax].map((t, i) => /* @__PURE__ */ jsx7(
|
|
1185
|
+
"text",
|
|
1186
|
+
{
|
|
1187
|
+
x: i === 0 ? PAD.left : w - PAD.right,
|
|
1188
|
+
y: H - 4,
|
|
1189
|
+
textAnchor: i === 0 ? "start" : "end",
|
|
1190
|
+
className: "font-og-mono",
|
|
1191
|
+
fontSize: 10,
|
|
1192
|
+
fill: "var(--og-color-fg-subtle)",
|
|
1193
|
+
children: fmtClock(t)
|
|
1194
|
+
},
|
|
1195
|
+
i === 0 ? "x-start" : "x-end"
|
|
1196
|
+
)),
|
|
1197
|
+
area && /* @__PURE__ */ jsx7("path", { d: area, fill: `url(#${gid})` }),
|
|
1198
|
+
/* @__PURE__ */ jsx7(
|
|
1199
|
+
"path",
|
|
1200
|
+
{
|
|
1201
|
+
d: line,
|
|
1202
|
+
fill: "none",
|
|
1203
|
+
stroke: color,
|
|
1204
|
+
strokeWidth: 1.75,
|
|
1205
|
+
strokeLinejoin: "round",
|
|
1206
|
+
strokeLinecap: "round",
|
|
1207
|
+
pathLength: 1,
|
|
1208
|
+
className: "og-mh-draw"
|
|
1209
|
+
}
|
|
1210
|
+
),
|
|
1211
|
+
sparse && pxPts.map((p) => /* @__PURE__ */ jsx7("circle", { cx: p.x, cy: p.y, r: 2.5, fill: color }, `m-${p.t}`)),
|
|
1212
|
+
hoverPt && /* @__PURE__ */ jsxs6("g", { pointerEvents: "none", children: [
|
|
1213
|
+
/* @__PURE__ */ jsx7(
|
|
1214
|
+
"line",
|
|
1215
|
+
{
|
|
1216
|
+
x1: hoverPt.x,
|
|
1217
|
+
x2: hoverPt.x,
|
|
1218
|
+
y1: PAD.top,
|
|
1219
|
+
y2: PAD.top + plotH,
|
|
1220
|
+
stroke: "var(--og-color-border-strong)",
|
|
1221
|
+
strokeWidth: 1
|
|
1222
|
+
}
|
|
1223
|
+
),
|
|
1224
|
+
/* @__PURE__ */ jsx7(
|
|
1225
|
+
"circle",
|
|
1226
|
+
{
|
|
1227
|
+
cx: hoverPt.x,
|
|
1228
|
+
cy: hoverPt.y,
|
|
1229
|
+
r: 3.5,
|
|
1230
|
+
fill: color,
|
|
1231
|
+
stroke: "var(--og-color-bg)",
|
|
1232
|
+
strokeWidth: 1.5
|
|
1233
|
+
}
|
|
1234
|
+
)
|
|
1235
|
+
] })
|
|
1236
|
+
]
|
|
1237
|
+
}
|
|
1238
|
+
),
|
|
1239
|
+
hoverPt && /* @__PURE__ */ jsxs6(
|
|
1240
|
+
"div",
|
|
1241
|
+
{
|
|
1242
|
+
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",
|
|
1243
|
+
style: {
|
|
1244
|
+
left: Math.min(Math.max(hoverPt.x - 30, 0), w - 78),
|
|
1245
|
+
top: Math.max(hoverPt.y - 42, 0)
|
|
1246
|
+
},
|
|
1247
|
+
children: [
|
|
1248
|
+
/* @__PURE__ */ jsx7("span", { className: "font-og-mono text-og-sm font-medium tabular-nums text-og-fg", children: fmt(hoverPt.v) }),
|
|
1249
|
+
/* @__PURE__ */ jsx7("span", { className: "font-og-mono text-[10px] tabular-nums text-og-fg-subtle", children: fmtClock(hoverPt.t) })
|
|
1250
|
+
]
|
|
1251
|
+
}
|
|
1252
|
+
)
|
|
1253
|
+
]
|
|
1254
|
+
}
|
|
1255
|
+
);
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
// src/components/machines/machine-detail.tsx
|
|
1259
|
+
import {
|
|
1260
|
+
ArrowLeftIcon,
|
|
1261
|
+
BuildingIcon,
|
|
1262
|
+
ChevronRightIcon,
|
|
1263
|
+
CpuIcon as CpuIcon2,
|
|
1264
|
+
LayersIcon,
|
|
1265
|
+
LaptopIcon as LaptopIcon2,
|
|
1266
|
+
PlugIcon,
|
|
1267
|
+
RadioIcon,
|
|
1268
|
+
ServerIcon as ServerIcon2,
|
|
1269
|
+
TriangleAlertIcon as TriangleAlertIcon2,
|
|
1270
|
+
Trash2Icon,
|
|
1271
|
+
UserIcon,
|
|
1272
|
+
UsersIcon as UsersIcon2
|
|
1273
|
+
} from "lucide-react";
|
|
1274
|
+
|
|
1275
|
+
// src/components/machines/series.ts
|
|
1276
|
+
var METRIC_WINDOWS = ["15m", "1h", "6h", "24h"];
|
|
1277
|
+
var WINDOW_LABEL = (msg) => ({
|
|
1278
|
+
"15m": msg("machines.series.inTheLast15Min"),
|
|
1279
|
+
"1h": msg("machines.series.inTheLastHour"),
|
|
1280
|
+
"6h": msg("machines.series.inTheLast6Hours"),
|
|
1281
|
+
"24h": msg("machines.series.inTheLast24Hours")
|
|
1282
|
+
});
|
|
1283
|
+
function ptsFrom(samples, pick) {
|
|
1284
|
+
return samples.map((s) => ({ t: new Date(s.sampledAt).getTime(), v: pick(s) }));
|
|
1285
|
+
}
|
|
1286
|
+
var memPct = (s) => s.memTotalBytes > 0 ? s.memUsedBytes / s.memTotalBytes * 100 : null;
|
|
1287
|
+
var diskPct = (s) => s.diskTotalBytes > 0 ? s.diskUsedBytes / s.diskTotalBytes * 100 : null;
|
|
1288
|
+
var fmtBytes = (b) => {
|
|
1289
|
+
if (b < 1024) return `${b} B`;
|
|
1290
|
+
const u = ["KB", "MB", "GB", "TB"];
|
|
1291
|
+
let v = b / 1024;
|
|
1292
|
+
for (const unit of u) {
|
|
1293
|
+
if (v < 1024 || unit === "TB") return `${v.toFixed(v < 10 ? 1 : 0)} ${unit}`;
|
|
1294
|
+
v /= 1024;
|
|
1295
|
+
}
|
|
1296
|
+
return `${b} B`;
|
|
1297
|
+
};
|
|
1298
|
+
var METRICS = (msg) => [
|
|
1299
|
+
{
|
|
1300
|
+
key: "cpu",
|
|
1301
|
+
title: "CPU",
|
|
1302
|
+
unit: "%",
|
|
1303
|
+
yMax: 100,
|
|
1304
|
+
color: "var(--og-color-accent)",
|
|
1305
|
+
thresholds: { warn: 90, crit: 98 },
|
|
1306
|
+
pick: (s) => s.cpuPct,
|
|
1307
|
+
current: (s) => `${Math.round(s.cpuPct)}%`,
|
|
1308
|
+
sub: (s) => msg("machines.series.runqueueInRunQueue", { runQueue: s.runQueue })
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
key: "mem",
|
|
1312
|
+
title: msg("machines.series.memory"),
|
|
1313
|
+
unit: "%",
|
|
1314
|
+
yMax: 100,
|
|
1315
|
+
color: "var(--og-color-status-idle)",
|
|
1316
|
+
thresholds: { warn: 85, crit: 95 },
|
|
1317
|
+
pick: memPct,
|
|
1318
|
+
current: (s) => `${Math.round(memPct(s) ?? 0)}%`,
|
|
1319
|
+
sub: (s) => `${fmtBytes(s.memUsedBytes)} / ${fmtBytes(s.memTotalBytes)}`
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
key: "disk",
|
|
1323
|
+
title: msg("machines.series.disk"),
|
|
1324
|
+
unit: "%",
|
|
1325
|
+
yMax: 100,
|
|
1326
|
+
color: "var(--og-color-status-waiting)",
|
|
1327
|
+
thresholds: { warn: 90, crit: 96 },
|
|
1328
|
+
pick: diskPct,
|
|
1329
|
+
current: (s) => `${Math.round(diskPct(s) ?? 0)}%`,
|
|
1330
|
+
sub: (s) => `${fmtBytes(s.diskUsedBytes)} / ${fmtBytes(s.diskTotalBytes)}`
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
key: "load",
|
|
1334
|
+
title: msg("machines.series.loadAverage"),
|
|
1335
|
+
unit: "",
|
|
1336
|
+
yMax: "auto",
|
|
1337
|
+
color: "var(--og-color-accent-strong)",
|
|
1338
|
+
pick: (s) => s.load1,
|
|
1339
|
+
current: (s) => s.load1.toFixed(2),
|
|
1340
|
+
sub: (s) => `5m ${s.load5.toFixed(2)} \xB7 15m ${s.load15.toFixed(2)}`
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
key: "gpu",
|
|
1344
|
+
title: "GPU",
|
|
1345
|
+
unit: "%",
|
|
1346
|
+
yMax: 100,
|
|
1347
|
+
color: "var(--og-color-status-running)",
|
|
1348
|
+
thresholds: { warn: 90, crit: 98 },
|
|
1349
|
+
pick: (s) => s.gpuUtilPct,
|
|
1350
|
+
current: (s) => s.gpuUtilPct == null ? "\u2014" : `${Math.round(s.gpuUtilPct)}%`,
|
|
1351
|
+
sub: (s) => s.gpuMemBytes == null ? null : `${fmtBytes(s.gpuMemBytes)} used`
|
|
1352
|
+
}
|
|
1353
|
+
];
|
|
1354
|
+
function pointsFor(def, samples) {
|
|
1355
|
+
return ptsFrom(samples, def.pick);
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
// src/components/machines/machine-operation-policy.tsx
|
|
1359
|
+
import { AlertTriangleIcon as AlertTriangleIcon2, Loader2Icon } from "lucide-react";
|
|
1360
|
+
import { useEffect, useState as useState2 } from "react";
|
|
1361
|
+
import { errorMessage } from "@opengeni/contracts/values";
|
|
1362
|
+
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1363
|
+
function fieldValue(value) {
|
|
1364
|
+
return value === null ? "" : String(value);
|
|
1365
|
+
}
|
|
1366
|
+
function parseByteCount(t, label, value) {
|
|
1367
|
+
const trimmed = value.trim();
|
|
1368
|
+
if (!trimmed) return null;
|
|
1369
|
+
if (!/^\d+$/.test(trimmed)) {
|
|
1370
|
+
throw new Error(t("machines.machineOperationPolicy.bytesNotWholeNumber", { label }));
|
|
1371
|
+
}
|
|
1372
|
+
const parsed = Number(trimmed);
|
|
1373
|
+
if (!Number.isSafeInteger(parsed) || parsed <= 0) {
|
|
1374
|
+
throw new Error(t("machines.machineOperationPolicy.bytesNotPositive", { label }));
|
|
1375
|
+
}
|
|
1376
|
+
return parsed;
|
|
1377
|
+
}
|
|
1378
|
+
function parseCpuMillicores(t, value) {
|
|
1379
|
+
const trimmed = value.trim();
|
|
1380
|
+
if (!trimmed) return null;
|
|
1381
|
+
if (!/^\d+$/.test(trimmed)) {
|
|
1382
|
+
throw new Error(t("machines.machineOperationPolicy.cpuNotWholeNumber"));
|
|
1383
|
+
}
|
|
1384
|
+
const parsed = Number(trimmed);
|
|
1385
|
+
if (!Number.isSafeInteger(parsed) || parsed <= 0 || parsed > 4294967295) {
|
|
1386
|
+
throw new Error(t("machines.machineOperationPolicy.cpuOutOfRange"));
|
|
1387
|
+
}
|
|
1388
|
+
return parsed;
|
|
1389
|
+
}
|
|
1390
|
+
function MachineOperationPolicyEditor({
|
|
1391
|
+
policy,
|
|
1392
|
+
memorySupported,
|
|
1393
|
+
cpuSupported,
|
|
1394
|
+
saving = false,
|
|
1395
|
+
onSave
|
|
1396
|
+
}) {
|
|
1397
|
+
const t = useOpenGeniText();
|
|
1398
|
+
const [memoryMaxBytes, setMemoryMaxBytes] = useState2(fieldValue(policy.memoryMaxBytes));
|
|
1399
|
+
const [memoryHighBytes, setMemoryHighBytes] = useState2(fieldValue(policy.memoryHighBytes));
|
|
1400
|
+
const [cpuMaxMillicores, setCpuMaxMillicores] = useState2(fieldValue(policy.cpuMaxMillicores));
|
|
1401
|
+
const [validationError, setValidationError] = useState2(null);
|
|
1402
|
+
useEffect(() => {
|
|
1403
|
+
setMemoryMaxBytes(fieldValue(policy.memoryMaxBytes));
|
|
1404
|
+
setMemoryHighBytes(fieldValue(policy.memoryHighBytes));
|
|
1405
|
+
setCpuMaxMillicores(fieldValue(policy.cpuMaxMillicores));
|
|
1406
|
+
setValidationError(null);
|
|
1407
|
+
}, [policy.memoryMaxBytes, policy.memoryHighBytes, policy.cpuMaxMillicores, policy.revision]);
|
|
1408
|
+
const submit = async (event) => {
|
|
1409
|
+
event.preventDefault();
|
|
1410
|
+
try {
|
|
1411
|
+
const max = parseByteCount(
|
|
1412
|
+
t,
|
|
1413
|
+
t("machines.machineOperationPolicy.hardCeiling"),
|
|
1414
|
+
memoryMaxBytes
|
|
1415
|
+
);
|
|
1416
|
+
const high = parseByteCount(
|
|
1417
|
+
t,
|
|
1418
|
+
t("machines.machineOperationPolicy.reclaimThreshold"),
|
|
1419
|
+
memoryHighBytes
|
|
1420
|
+
);
|
|
1421
|
+
if (max !== null && high !== null && high > max) {
|
|
1422
|
+
throw new Error(t("machines.machineOperationPolicy.reclaimAboveCeiling"));
|
|
1423
|
+
}
|
|
1424
|
+
const cpuMax = parseCpuMillicores(t, cpuMaxMillicores);
|
|
1425
|
+
setValidationError(null);
|
|
1426
|
+
await onSave({
|
|
1427
|
+
memoryMaxBytes: max,
|
|
1428
|
+
memoryHighBytes: high,
|
|
1429
|
+
cpuMaxMillicores: cpuMax,
|
|
1430
|
+
expectedRevision: policy.revision
|
|
1431
|
+
});
|
|
1432
|
+
} catch (error) {
|
|
1433
|
+
setValidationError(errorMessage(error));
|
|
1434
|
+
}
|
|
1435
|
+
};
|
|
1436
|
+
const configured = policy.memoryMaxBytes !== null || policy.memoryHighBytes !== null || policy.cpuMaxMillicores !== null;
|
|
1437
|
+
const memoryConfigured = policy.memoryMaxBytes !== null || policy.memoryHighBytes !== null;
|
|
1438
|
+
const unsupportedMemory = memoryConfigured && !memorySupported;
|
|
1439
|
+
const unsupportedCpu = policy.cpuMaxMillicores !== null && (!memorySupported || !cpuSupported);
|
|
1440
|
+
return /* @__PURE__ */ jsxs7(
|
|
1441
|
+
"section",
|
|
1442
|
+
{
|
|
1443
|
+
"data-machine-operation-policy": true,
|
|
1444
|
+
className: "rounded-og-lg border border-og-border bg-og-surface-1 p-4 shadow-og-sm",
|
|
1445
|
+
children: [
|
|
1446
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1", children: [
|
|
1447
|
+
/* @__PURE__ */ jsx8("h2", { className: "text-og-sm font-semibold text-og-fg", children: t("machines.machineOperationPolicy.perCommandResourcePolicy") }),
|
|
1448
|
+
/* @__PURE__ */ jsx8("p", { className: "text-og-xs leading-relaxed text-og-fg-muted", children: t("machines.machineOperationPolicy.optionalLimitsAppliedSeparatelyTo") })
|
|
1449
|
+
] }),
|
|
1450
|
+
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: [
|
|
1451
|
+
/* @__PURE__ */ jsx8(AlertTriangleIcon2, { className: "mt-0.5 size-3.5 shrink-0", "aria-hidden": true }),
|
|
1452
|
+
/* @__PURE__ */ jsxs7("span", { children: [
|
|
1453
|
+
unsupportedCpu ? t("machines.machineOperationPolicy.thisRunnerCannotEnforceThe") : t("machines.machineOperationPolicy.thisRunnerCannotEnforceThe2"),
|
|
1454
|
+
" ",
|
|
1455
|
+
t("machines.machineOperationPolicy.commandExecutionFailsClosedUntil")
|
|
1456
|
+
] })
|
|
1457
|
+
] }) : null,
|
|
1458
|
+
/* @__PURE__ */ jsxs7("form", { className: "mt-4 grid gap-3 sm:grid-cols-2", onSubmit: submit, children: [
|
|
1459
|
+
/* @__PURE__ */ jsxs7("label", { className: "flex flex-col gap-1.5 text-og-xs text-og-fg-muted", children: [
|
|
1460
|
+
t("machines.machineOperationPolicy.hardCeilingBytes"),
|
|
1461
|
+
/* @__PURE__ */ jsx8(
|
|
1462
|
+
"input",
|
|
1463
|
+
{
|
|
1464
|
+
inputMode: "numeric",
|
|
1465
|
+
pattern: "[0-9]*",
|
|
1466
|
+
value: memoryMaxBytes,
|
|
1467
|
+
onChange: (event) => setMemoryMaxBytes(event.target.value),
|
|
1468
|
+
placeholder: t("machines.machineOperationPolicy.unlimited"),
|
|
1469
|
+
disabled: saving,
|
|
1470
|
+
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"
|
|
1471
|
+
}
|
|
1472
|
+
)
|
|
1473
|
+
] }),
|
|
1474
|
+
/* @__PURE__ */ jsxs7("label", { className: "flex flex-col gap-1.5 text-og-xs text-og-fg-muted", children: [
|
|
1475
|
+
t("machines.machineOperationPolicy.reclaimThresholdBytes"),
|
|
1476
|
+
/* @__PURE__ */ jsx8(
|
|
1477
|
+
"input",
|
|
1478
|
+
{
|
|
1479
|
+
inputMode: "numeric",
|
|
1480
|
+
pattern: "[0-9]*",
|
|
1481
|
+
value: memoryHighBytes,
|
|
1482
|
+
onChange: (event) => setMemoryHighBytes(event.target.value),
|
|
1483
|
+
placeholder: t("machines.machineOperationPolicy.unlimited"),
|
|
1484
|
+
disabled: saving,
|
|
1485
|
+
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"
|
|
1486
|
+
}
|
|
1487
|
+
)
|
|
1488
|
+
] }),
|
|
1489
|
+
/* @__PURE__ */ jsxs7("label", { className: "flex flex-col gap-1.5 text-og-xs text-og-fg-muted", children: [
|
|
1490
|
+
t("machines.machineOperationPolicy.cpuMaximumMillicores"),
|
|
1491
|
+
/* @__PURE__ */ jsx8(
|
|
1492
|
+
"input",
|
|
1493
|
+
{
|
|
1494
|
+
inputMode: "numeric",
|
|
1495
|
+
pattern: "[0-9]*",
|
|
1496
|
+
value: cpuMaxMillicores,
|
|
1497
|
+
onChange: (event) => setCpuMaxMillicores(event.target.value),
|
|
1498
|
+
placeholder: t("machines.machineOperationPolicy.unlimited"),
|
|
1499
|
+
disabled: saving,
|
|
1500
|
+
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"
|
|
1501
|
+
}
|
|
1502
|
+
),
|
|
1503
|
+
/* @__PURE__ */ jsx8("span", { children: t("machines.machineOperationPolicy.n1000MillicoresOneCpuCore") })
|
|
1504
|
+
] }),
|
|
1505
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex min-h-9 items-center justify-between gap-3 sm:col-span-2", children: [
|
|
1506
|
+
/* @__PURE__ */ jsx8(
|
|
1507
|
+
"span",
|
|
1508
|
+
{
|
|
1509
|
+
role: validationError ? "alert" : void 0,
|
|
1510
|
+
className: "text-og-xs text-og-status-failed",
|
|
1511
|
+
children: validationError
|
|
1512
|
+
}
|
|
1513
|
+
),
|
|
1514
|
+
/* @__PURE__ */ jsxs7(
|
|
1515
|
+
"button",
|
|
1516
|
+
{
|
|
1517
|
+
type: "submit",
|
|
1518
|
+
disabled: saving,
|
|
1519
|
+
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",
|
|
1520
|
+
children: [
|
|
1521
|
+
saving ? /* @__PURE__ */ jsx8(Loader2Icon, { className: "size-3.5 animate-spin", "aria-hidden": true }) : null,
|
|
1522
|
+
t("machines.machineOperationPolicy.savePolicy")
|
|
1523
|
+
]
|
|
1524
|
+
}
|
|
1525
|
+
)
|
|
1526
|
+
] })
|
|
1527
|
+
] })
|
|
1528
|
+
]
|
|
1529
|
+
}
|
|
1530
|
+
);
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
// src/components/machines/machine-detail.tsx
|
|
1534
|
+
import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1535
|
+
var AUDIENCE = (t) => ({
|
|
1536
|
+
user: {
|
|
1537
|
+
label: t("machines.machineDetail.onlyMe"),
|
|
1538
|
+
description: t("machines.machineDetail.onlyItsOwnerCanRun"),
|
|
1539
|
+
Icon: UserIcon
|
|
1540
|
+
},
|
|
1541
|
+
workspace: {
|
|
1542
|
+
label: t("machines.machineDetail.thisWorkspace"),
|
|
1543
|
+
description: t("machines.machineDetail.everyoneInThisWorkspaceCan"),
|
|
1544
|
+
Icon: UsersIcon2
|
|
1545
|
+
},
|
|
1546
|
+
organization: {
|
|
1547
|
+
label: t("machines.machineDetail.wholeOrganization"),
|
|
1548
|
+
description: t("machines.machineDetail.membersCanUseItWhere"),
|
|
1549
|
+
Icon: BuildingIcon
|
|
1550
|
+
}
|
|
1551
|
+
});
|
|
1552
|
+
function MachineAudienceRow({
|
|
1553
|
+
machine,
|
|
1554
|
+
onChange
|
|
1555
|
+
}) {
|
|
1556
|
+
const t = useOpenGeniText();
|
|
1557
|
+
const audience = AUDIENCE(t)[machine.scope];
|
|
1558
|
+
const changeable = onChange !== void 0 && machine.scope !== "organization";
|
|
1559
|
+
const content = /* @__PURE__ */ jsxs8(Fragment2, { children: [
|
|
1560
|
+
/* @__PURE__ */ jsx9(audience.Icon, { className: "size-4 shrink-0 text-og-fg-subtle", "aria-hidden": true }),
|
|
1561
|
+
/* @__PURE__ */ jsxs8("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 text-left", children: [
|
|
1562
|
+
/* @__PURE__ */ jsx9("span", { className: "text-og-sm font-medium text-og-fg", children: t("machines.machineDetail.whoCanUseIt") }),
|
|
1563
|
+
/* @__PURE__ */ jsx9("span", { className: "text-og-xs text-og-fg-muted", children: audience.description })
|
|
1564
|
+
] }),
|
|
1565
|
+
/* @__PURE__ */ jsx9("span", { className: "shrink-0 text-og-sm text-og-fg-muted", children: audience.label }),
|
|
1566
|
+
changeable ? /* @__PURE__ */ jsx9(ChevronRightIcon, { className: "size-4 shrink-0 text-og-fg-subtle", "aria-hidden": true }) : null
|
|
1567
|
+
] });
|
|
1568
|
+
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";
|
|
1569
|
+
return changeable ? /* @__PURE__ */ jsx9(
|
|
1570
|
+
"button",
|
|
1571
|
+
{
|
|
1572
|
+
type: "button",
|
|
1573
|
+
"data-machine-audience": machine.scope,
|
|
1574
|
+
onClick: () => onChange(machine),
|
|
1575
|
+
"aria-label": t("machines.machineDetail.whoCanUseNameLabel", {
|
|
1576
|
+
name: machine.name,
|
|
1577
|
+
label: audience.label
|
|
1578
|
+
}),
|
|
1579
|
+
className: cn(
|
|
1580
|
+
frame,
|
|
1581
|
+
"transition-colors hover:bg-og-surface-2 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/50"
|
|
1582
|
+
),
|
|
1583
|
+
children: content
|
|
1584
|
+
}
|
|
1585
|
+
) : /* @__PURE__ */ jsx9("div", { "data-machine-audience": machine.scope, className: frame, children: content });
|
|
1586
|
+
}
|
|
1587
|
+
function MachineReachRow({
|
|
1588
|
+
machine,
|
|
1589
|
+
summary,
|
|
1590
|
+
onChange
|
|
1591
|
+
}) {
|
|
1592
|
+
const t = useOpenGeniText();
|
|
1593
|
+
const content = /* @__PURE__ */ jsxs8(Fragment2, { children: [
|
|
1594
|
+
/* @__PURE__ */ jsx9(LayersIcon, { className: "size-4 shrink-0 text-og-fg-subtle", "aria-hidden": true }),
|
|
1595
|
+
/* @__PURE__ */ jsxs8("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 text-left", children: [
|
|
1596
|
+
/* @__PURE__ */ jsx9("span", { className: "text-og-sm font-medium text-og-fg", children: t("machines.machineDetail.availableIn") }),
|
|
1597
|
+
/* @__PURE__ */ jsx9("span", { className: "text-og-xs text-og-fg-muted", children: t("machines.machineDetail.organizationOwnersChooseWhere") })
|
|
1598
|
+
] }),
|
|
1599
|
+
/* @__PURE__ */ jsx9("span", { className: "shrink-0 text-og-sm text-og-fg-muted", children: summary }),
|
|
1600
|
+
onChange ? /* @__PURE__ */ jsx9(ChevronRightIcon, { className: "size-4 shrink-0 text-og-fg-subtle", "aria-hidden": true }) : null
|
|
1601
|
+
] });
|
|
1602
|
+
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";
|
|
1603
|
+
return onChange ? /* @__PURE__ */ jsx9(
|
|
1604
|
+
"button",
|
|
1605
|
+
{
|
|
1606
|
+
type: "button",
|
|
1607
|
+
"data-machine-reach": true,
|
|
1608
|
+
onClick: () => onChange(machine),
|
|
1609
|
+
"aria-label": t("machines.machineDetail.availableInNameLabel", {
|
|
1610
|
+
name: machine.name,
|
|
1611
|
+
summary
|
|
1612
|
+
}),
|
|
1613
|
+
className: cn(
|
|
1614
|
+
frame,
|
|
1615
|
+
"transition-colors hover:bg-og-surface-2 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/50"
|
|
1616
|
+
),
|
|
1617
|
+
children: content
|
|
1618
|
+
}
|
|
1619
|
+
) : /* @__PURE__ */ jsx9("div", { "data-machine-reach": true, className: frame, children: content });
|
|
1620
|
+
}
|
|
1621
|
+
function KindIcon2({ kind, session }) {
|
|
1622
|
+
if (kind === "local" || kind === "selfhosted")
|
|
1623
|
+
return /* @__PURE__ */ jsx9(LaptopIcon2, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
|
|
1624
|
+
if (kind === "docker" || session)
|
|
1625
|
+
return /* @__PURE__ */ jsx9(ServerIcon2, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
|
|
1626
|
+
if (kind === "modal") return /* @__PURE__ */ jsx9(CpuIcon2, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
|
|
1627
|
+
return /* @__PURE__ */ jsx9(ServerIcon2, { className: "size-4 text-og-fg-subtle", "aria-hidden": true });
|
|
1628
|
+
}
|
|
1629
|
+
function MachineAgentPanel({
|
|
1630
|
+
machine,
|
|
1631
|
+
now,
|
|
1632
|
+
onUpdateAgent,
|
|
1633
|
+
updatingAgent
|
|
1634
|
+
}) {
|
|
1635
|
+
const t = useOpenGeniText();
|
|
1636
|
+
const authority = machine.connectionAuthority;
|
|
1637
|
+
const runtime = machine.runtime;
|
|
1638
|
+
if (!runtime && authority.state === "not_applicable") return null;
|
|
1639
|
+
const agent = runtime ? describeAgentRuntime(t, runtime, now, connectionStatusForState(machine.state) === "online") : null;
|
|
1640
|
+
const action = agent?.action && machine.enrollmentId && onUpdateAgent && machine.state !== "offline" ? agent.action : null;
|
|
1641
|
+
const connection = authority.state === "not_applicable" ? null : describeAgentConnection(t, authority);
|
|
1642
|
+
const conflict = runnerConflict(authority, now);
|
|
1643
|
+
const conflictAgo = conflict?.lastAt ? formatRelativeTime(t, conflict.lastAt, new Date(now)) : null;
|
|
1644
|
+
return /* @__PURE__ */ jsxs8(
|
|
1645
|
+
"section",
|
|
1646
|
+
{
|
|
1647
|
+
"data-machine-agent": true,
|
|
1648
|
+
"aria-label": t("machines.machineDetail.agent"),
|
|
1649
|
+
className: "flex flex-col divide-y divide-og-border rounded-og-lg border border-og-border bg-og-surface-1 shadow-og-sm",
|
|
1650
|
+
children: [
|
|
1651
|
+
agent ? /* @__PURE__ */ jsxs8("div", { "data-agent-runtime": true, className: "flex min-h-14 items-center gap-3 px-4 py-3", children: [
|
|
1652
|
+
/* @__PURE__ */ jsx9(AgentStatusIcon, { tone: agent.tone, className: "size-4" }),
|
|
1653
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
1654
|
+
/* @__PURE__ */ jsx9("span", { className: "text-og-sm font-medium text-og-fg", children: agent.title }),
|
|
1655
|
+
/* @__PURE__ */ jsx9(
|
|
1656
|
+
"span",
|
|
1657
|
+
{
|
|
1658
|
+
"data-agent-status": agent.tone,
|
|
1659
|
+
className: cn("text-og-xs", STATUS_TONE_TEXT[agent.tone]),
|
|
1660
|
+
children: agent.status
|
|
1661
|
+
}
|
|
1662
|
+
),
|
|
1663
|
+
agent.note ? /* @__PURE__ */ jsx9("span", { className: "text-og-xs text-og-fg-muted", children: agent.note }) : null
|
|
1664
|
+
] }),
|
|
1665
|
+
action ? /* @__PURE__ */ jsx9(
|
|
1666
|
+
"button",
|
|
1667
|
+
{
|
|
1668
|
+
type: "button",
|
|
1669
|
+
"data-update-agent": true,
|
|
1670
|
+
"data-update-action": action.kind,
|
|
1671
|
+
disabled: updatingAgent,
|
|
1672
|
+
onClick: () => onUpdateAgent?.(machine),
|
|
1673
|
+
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",
|
|
1674
|
+
children: updatingAgent ? t("machines.machineDetail.starting") : action.label
|
|
1675
|
+
}
|
|
1676
|
+
) : null
|
|
1677
|
+
] }) : null,
|
|
1678
|
+
connection ? /* @__PURE__ */ jsxs8(
|
|
1679
|
+
"div",
|
|
1680
|
+
{
|
|
1681
|
+
"data-connection-authority": authority.state,
|
|
1682
|
+
className: "flex min-h-14 items-start gap-3 px-4 py-3",
|
|
1683
|
+
children: [
|
|
1684
|
+
/* @__PURE__ */ jsx9(PlugIcon, { className: "mt-0.5 size-4 shrink-0 text-og-fg-subtle", "aria-hidden": true }),
|
|
1685
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
1686
|
+
/* @__PURE__ */ jsx9("span", { className: "text-og-sm font-medium text-og-fg", children: connection.label }),
|
|
1687
|
+
connection.detail ? /* @__PURE__ */ jsx9("span", { className: "text-og-xs text-og-fg-muted", children: connection.detail }) : null,
|
|
1688
|
+
conflict?.active ? /* @__PURE__ */ jsxs8(
|
|
1689
|
+
"span",
|
|
1690
|
+
{
|
|
1691
|
+
"data-runner-conflict": "active",
|
|
1692
|
+
className: "mt-1 flex items-start gap-1.5 text-og-xs text-og-fg-muted",
|
|
1693
|
+
children: [
|
|
1694
|
+
/* @__PURE__ */ jsx9(
|
|
1695
|
+
TriangleAlertIcon2,
|
|
1696
|
+
{
|
|
1697
|
+
className: "mt-px size-3.5 shrink-0 text-og-status-waiting",
|
|
1698
|
+
"aria-hidden": true
|
|
1699
|
+
}
|
|
1700
|
+
),
|
|
1701
|
+
t("machines.machineDetail.aSecondCopyOfThe")
|
|
1702
|
+
]
|
|
1703
|
+
}
|
|
1704
|
+
) : conflict ? /* @__PURE__ */ jsxs8("span", { "data-runner-conflict": "past", className: "text-og-xs text-og-fg-subtle", children: [
|
|
1705
|
+
t("machines.machineDetail.keptOutExtraCopiesOf", { count: conflict.count }),
|
|
1706
|
+
conflictAgo ? t("machines.machineDetail.mostRecentlyValue", {
|
|
1707
|
+
value: conflictAgo === "now" ? t("machines.machineDetail.justNow") : `${conflictAgo} ago`
|
|
1708
|
+
}) : ""
|
|
1709
|
+
] }) : null
|
|
1710
|
+
] })
|
|
1711
|
+
]
|
|
1712
|
+
}
|
|
1713
|
+
) : null
|
|
1714
|
+
]
|
|
1715
|
+
}
|
|
1716
|
+
);
|
|
1717
|
+
}
|
|
1718
|
+
function MachineDetail({
|
|
1719
|
+
machine,
|
|
1720
|
+
series,
|
|
1721
|
+
window,
|
|
1722
|
+
onWindowChange,
|
|
1723
|
+
loadingSeries,
|
|
1724
|
+
onBack,
|
|
1725
|
+
onRemove,
|
|
1726
|
+
onUpdateOperationPolicy,
|
|
1727
|
+
updatingOperationPolicy,
|
|
1728
|
+
onChangeAudience,
|
|
1729
|
+
reachSummary,
|
|
1730
|
+
onChangeReach,
|
|
1731
|
+
whereItWorks,
|
|
1732
|
+
onUpdateAgent,
|
|
1733
|
+
updatingAgent,
|
|
1734
|
+
now = Date.now(),
|
|
1735
|
+
className
|
|
1736
|
+
}) {
|
|
1737
|
+
const t = useOpenGeniText();
|
|
1738
|
+
const health = deriveHealth(t, machine.state, machine.metrics, now);
|
|
1739
|
+
const tone = HEALTH_TOKEN[health.level];
|
|
1740
|
+
const latest = machine.metrics;
|
|
1741
|
+
const sampledAgo = latest ? formatRelativeTime(t, latest.sampledAt, new Date(now)) : null;
|
|
1742
|
+
const visible = METRICS(t).filter((m) => !(m.key === "gpu" && latest?.gpuUtilPct == null));
|
|
1743
|
+
const tileCols = visible.length >= 5 ? "grid-cols-2 sm:grid-cols-3 lg:grid-cols-5" : "grid-cols-2 sm:grid-cols-4";
|
|
1744
|
+
return /* @__PURE__ */ jsxs8("div", { className: cn("og-root mx-auto flex w-full max-w-5xl flex-col gap-5", className), children: [
|
|
1745
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center justify-between gap-3", children: [
|
|
1746
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex min-w-0 items-center gap-2.5", children: [
|
|
1747
|
+
onBack && /* @__PURE__ */ jsx9(
|
|
1748
|
+
"button",
|
|
1749
|
+
{
|
|
1750
|
+
type: "button",
|
|
1751
|
+
onClick: onBack,
|
|
1752
|
+
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",
|
|
1753
|
+
"aria-label": t("machines.machineDetail.backToMachines"),
|
|
1754
|
+
children: /* @__PURE__ */ jsx9(ArrowLeftIcon, { className: "size-3.5", "aria-hidden": true })
|
|
1755
|
+
}
|
|
1756
|
+
),
|
|
1757
|
+
/* @__PURE__ */ jsx9(KindIcon2, { kind: machine.kind, session: machine.isSessionGroup }),
|
|
1758
|
+
/* @__PURE__ */ jsx9("h1", { className: "truncate text-og-md font-semibold text-og-fg", children: machine.name }),
|
|
1759
|
+
/* @__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: [
|
|
1760
|
+
machine.os,
|
|
1761
|
+
" \xB7 ",
|
|
1762
|
+
machine.arch
|
|
1763
|
+
] })
|
|
1764
|
+
] }),
|
|
1765
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
1766
|
+
onRemove && machine.enrollmentId && !machine.isSessionGroup ? /* @__PURE__ */ jsxs8(
|
|
1767
|
+
"button",
|
|
1768
|
+
{
|
|
1769
|
+
type: "button",
|
|
1770
|
+
"data-remove-machine": true,
|
|
1771
|
+
"aria-label": t("machines.machineDetail.removeMachineName", { name: machine.name }),
|
|
1772
|
+
onClick: () => onRemove(machine),
|
|
1773
|
+
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",
|
|
1774
|
+
children: [
|
|
1775
|
+
/* @__PURE__ */ jsx9(Trash2Icon, { className: "size-3.5", "aria-hidden": true }),
|
|
1776
|
+
/* @__PURE__ */ jsx9("span", { className: "hidden sm:inline", children: t("machines.machineDetail.removeMachine") })
|
|
1777
|
+
]
|
|
1778
|
+
}
|
|
1779
|
+
) : null,
|
|
1780
|
+
/* @__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(
|
|
1781
|
+
"button",
|
|
1782
|
+
{
|
|
1783
|
+
type: "button",
|
|
1784
|
+
onClick: () => onWindowChange(w),
|
|
1785
|
+
"data-active": w === window,
|
|
1786
|
+
className: cn(
|
|
1787
|
+
"rounded-og-sm px-2 py-1 font-og-mono text-og-xs transition-colors",
|
|
1788
|
+
w === window ? "bg-og-surface-3 text-og-fg shadow-og-sm" : "text-og-fg-subtle hover:text-og-fg-muted"
|
|
1789
|
+
),
|
|
1790
|
+
children: w
|
|
1791
|
+
},
|
|
1792
|
+
w
|
|
1793
|
+
)) })
|
|
1794
|
+
] })
|
|
1795
|
+
] }),
|
|
1796
|
+
/* @__PURE__ */ jsxs8(
|
|
1797
|
+
"div",
|
|
1798
|
+
{
|
|
1799
|
+
className: cn(
|
|
1800
|
+
"relative flex flex-col gap-4 overflow-hidden rounded-og-lg border p-5 shadow-og-sm",
|
|
1801
|
+
tone.soft
|
|
1802
|
+
),
|
|
1803
|
+
children: [
|
|
1804
|
+
/* @__PURE__ */ jsx9("span", { "aria-hidden": true, className: cn("absolute inset-y-0 left-0 w-1", tone.dot) }),
|
|
1805
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex flex-wrap items-center justify-between gap-3 pl-1", children: [
|
|
1806
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-3", children: [
|
|
1807
|
+
/* @__PURE__ */ jsxs8("span", { className: "relative flex size-3", children: [
|
|
1808
|
+
healthPulses(health.level) && /* @__PURE__ */ jsx9(
|
|
1809
|
+
"span",
|
|
1810
|
+
{
|
|
1811
|
+
className: cn(
|
|
1812
|
+
"absolute inline-flex size-full animate-og-pulse rounded-full opacity-60",
|
|
1813
|
+
tone.dot
|
|
1814
|
+
)
|
|
1815
|
+
}
|
|
1816
|
+
),
|
|
1817
|
+
/* @__PURE__ */ jsx9("span", { className: cn("relative inline-flex size-3 rounded-full", tone.dot) })
|
|
1818
|
+
] }),
|
|
1819
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex flex-col", children: [
|
|
1820
|
+
/* @__PURE__ */ jsx9("span", { className: cn("text-og-md font-semibold", tone.text), children: health.label }),
|
|
1821
|
+
/* @__PURE__ */ jsx9("span", { className: "text-og-sm text-og-fg-muted", children: health.reason })
|
|
1822
|
+
] })
|
|
1823
|
+
] }),
|
|
1824
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-start gap-5 pr-1", children: [
|
|
1825
|
+
sampledAgo && /* @__PURE__ */ jsxs8("div", { className: "flex flex-col items-end gap-0.5", children: [
|
|
1826
|
+
/* @__PURE__ */ jsx9("span", { className: "text-[10px] font-medium uppercase tracking-wide text-og-fg-subtle", children: t("machines.machineDetail.sampled") }),
|
|
1827
|
+
/* @__PURE__ */ jsxs8("span", { className: "flex items-center gap-1 font-og-mono text-og-sm tabular-nums text-og-fg", children: [
|
|
1828
|
+
/* @__PURE__ */ jsx9(
|
|
1829
|
+
RadioIcon,
|
|
1830
|
+
{
|
|
1831
|
+
className: cn("size-3", health.stale ? "text-og-fg-subtle" : tone.text),
|
|
1832
|
+
"aria-hidden": true
|
|
1833
|
+
}
|
|
1834
|
+
),
|
|
1835
|
+
sampledAgo === "now" ? t("machines.machineDetail.live") : t("machines.machineDetail.sampledagoAgo", { sampledAgo })
|
|
1836
|
+
] })
|
|
1837
|
+
] }),
|
|
1838
|
+
machine.lastSeenAt && /* @__PURE__ */ jsxs8("div", { className: "hidden flex-col items-end gap-0.5 sm:flex", children: [
|
|
1839
|
+
/* @__PURE__ */ jsx9("span", { className: "text-[10px] font-medium uppercase tracking-wide text-og-fg-subtle", children: t("machines.machineDetail.lastSeen") }),
|
|
1840
|
+
/* @__PURE__ */ jsx9("span", { className: "font-og-mono text-og-sm tabular-nums text-og-fg-muted", children: formatRelativeTime(t, machine.lastSeenAt, new Date(now)) })
|
|
1841
|
+
] })
|
|
1842
|
+
] })
|
|
1843
|
+
] }),
|
|
1844
|
+
latest && /* @__PURE__ */ jsx9(
|
|
1845
|
+
"div",
|
|
1846
|
+
{
|
|
1847
|
+
className: cn(
|
|
1848
|
+
"grid gap-px overflow-hidden rounded-og-md border border-og-border bg-og-border",
|
|
1849
|
+
tileCols
|
|
1850
|
+
),
|
|
1851
|
+
children: visible.map((m) => {
|
|
1852
|
+
const pts = pointsFor(m, series);
|
|
1853
|
+
return /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-1.5 bg-og-surface-1 p-3", children: [
|
|
1854
|
+
/* @__PURE__ */ jsx9("span", { className: "text-[10px] font-medium uppercase tracking-wide text-og-fg-subtle", children: m.title }),
|
|
1855
|
+
/* @__PURE__ */ jsx9("span", { className: "font-og-mono text-og-md font-medium tabular-nums text-og-fg", children: m.current(latest) }),
|
|
1856
|
+
/* @__PURE__ */ jsx9(MetricSparkline, { points: pts, color: m.color, yMax: m.yMax, height: 22 }),
|
|
1857
|
+
m.sub && /* @__PURE__ */ jsx9("span", { className: "truncate font-og-mono text-[10px] text-og-fg-subtle", children: m.sub(latest) })
|
|
1858
|
+
] }, m.key);
|
|
1859
|
+
})
|
|
1860
|
+
}
|
|
1861
|
+
)
|
|
1862
|
+
]
|
|
1863
|
+
}
|
|
1864
|
+
),
|
|
1865
|
+
/* @__PURE__ */ jsx9(
|
|
1866
|
+
MachineAgentPanel,
|
|
1867
|
+
{
|
|
1868
|
+
machine,
|
|
1869
|
+
now,
|
|
1870
|
+
onUpdateAgent,
|
|
1871
|
+
updatingAgent
|
|
1872
|
+
}
|
|
1873
|
+
),
|
|
1874
|
+
machine.enrollmentId && !machine.isSessionGroup ? /* @__PURE__ */ jsx9(MachineAudienceRow, { machine, onChange: onChangeAudience }) : null,
|
|
1875
|
+
machine.scope === "organization" && machine.enrollmentId && reachSummary ? /* @__PURE__ */ jsx9(MachineReachRow, { machine, summary: reachSummary, onChange: onChangeReach }) : null,
|
|
1876
|
+
whereItWorks,
|
|
1877
|
+
onUpdateOperationPolicy && machine.enrollmentId && machine.operationPolicy ? /* @__PURE__ */ jsx9(
|
|
1878
|
+
MachineOperationPolicyEditor,
|
|
1879
|
+
{
|
|
1880
|
+
policy: machine.operationPolicy,
|
|
1881
|
+
memorySupported: machine.runtime?.capabilities.operationResourcePolicy === true,
|
|
1882
|
+
cpuSupported: machine.runtime?.capabilities.operationCpuQuota === true,
|
|
1883
|
+
saving: updatingOperationPolicy,
|
|
1884
|
+
onSave: (request) => onUpdateOperationPolicy(machine, request)
|
|
1885
|
+
}
|
|
1886
|
+
) : null,
|
|
1887
|
+
/* @__PURE__ */ jsx9("div", { className: "grid grid-cols-1 gap-3 lg:grid-cols-2", children: visible.map((m) => {
|
|
1888
|
+
const pts = pointsFor(m, series);
|
|
1889
|
+
return /* @__PURE__ */ jsxs8(
|
|
1890
|
+
"div",
|
|
1891
|
+
{
|
|
1892
|
+
className: "flex flex-col gap-3 rounded-og-lg border border-og-border bg-og-surface-1 p-4 shadow-og-sm",
|
|
1893
|
+
children: [
|
|
1894
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-baseline justify-between", children: [
|
|
1895
|
+
/* @__PURE__ */ jsx9("span", { className: "text-og-sm font-medium text-og-fg", children: m.title }),
|
|
1896
|
+
latest && /* @__PURE__ */ jsx9("span", { className: "font-og-mono text-og-sm tabular-nums text-og-fg-muted", children: m.current(latest) })
|
|
1897
|
+
] }),
|
|
1898
|
+
/* @__PURE__ */ jsx9(
|
|
1899
|
+
MetricHistoryChart,
|
|
1900
|
+
{
|
|
1901
|
+
points: pts,
|
|
1902
|
+
yMax: m.yMax,
|
|
1903
|
+
unit: m.unit,
|
|
1904
|
+
color: m.color,
|
|
1905
|
+
thresholds: m.thresholds,
|
|
1906
|
+
rangeLabel: WINDOW_LABEL(t)[window],
|
|
1907
|
+
height: 128,
|
|
1908
|
+
className: cn(loadingSeries && "opacity-50 transition-opacity")
|
|
1909
|
+
}
|
|
1910
|
+
)
|
|
1911
|
+
]
|
|
1912
|
+
},
|
|
1913
|
+
m.key
|
|
1914
|
+
);
|
|
1915
|
+
}) })
|
|
1916
|
+
] });
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
// src/components/machines-dashboard.tsx
|
|
1920
|
+
import { LaptopIcon as LaptopIcon3, PlusIcon, RefreshCwIcon } from "lucide-react";
|
|
1921
|
+
import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1922
|
+
function EmptyState({ onEnroll }) {
|
|
1923
|
+
const t = useOpenGeniText();
|
|
1924
|
+
return /* @__PURE__ */ jsxs9(
|
|
1925
|
+
"div",
|
|
1926
|
+
{
|
|
1927
|
+
"data-machines-empty": true,
|
|
1928
|
+
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",
|
|
1929
|
+
children: [
|
|
1930
|
+
/* @__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 }) }),
|
|
1931
|
+
/* @__PURE__ */ jsxs9("div", { className: "space-y-1", children: [
|
|
1932
|
+
/* @__PURE__ */ jsx10("p", { className: "text-og-base font-medium text-og-fg", children: t("machinesDashboard.noMachinesYet") }),
|
|
1933
|
+
/* @__PURE__ */ jsx10("p", { className: "max-w-xs text-og-sm text-og-fg-muted", children: t("machinesDashboard.connectYourOwnComputerTo") })
|
|
1934
|
+
] }),
|
|
1935
|
+
onEnroll ? /* @__PURE__ */ jsxs9(
|
|
1936
|
+
"button",
|
|
1937
|
+
{
|
|
1938
|
+
type: "button",
|
|
1939
|
+
"data-enroll-cta": true,
|
|
1940
|
+
onClick: onEnroll,
|
|
1941
|
+
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",
|
|
1942
|
+
children: [
|
|
1943
|
+
/* @__PURE__ */ jsx10(PlusIcon, { className: "size-3.5", "aria-hidden": true }),
|
|
1944
|
+
t("machinesDashboard.connectAMachine")
|
|
1945
|
+
]
|
|
1946
|
+
}
|
|
1947
|
+
) : null
|
|
1948
|
+
]
|
|
1949
|
+
}
|
|
1950
|
+
);
|
|
1951
|
+
}
|
|
1952
|
+
function Header({
|
|
1953
|
+
count,
|
|
1954
|
+
onEnroll
|
|
1955
|
+
}) {
|
|
1956
|
+
const t = useOpenGeniText();
|
|
1957
|
+
return /* @__PURE__ */ jsxs9("div", { className: "flex items-center justify-between gap-3", children: [
|
|
1958
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex items-baseline gap-2", children: [
|
|
1959
|
+
/* @__PURE__ */ jsx10("h2", { className: "text-og-base font-semibold text-og-fg", children: t("machinesDashboard.machines") }),
|
|
1960
|
+
/* @__PURE__ */ jsx10("span", { className: "font-og-mono text-og-xs text-og-fg-subtle", children: count })
|
|
1961
|
+
] }),
|
|
1962
|
+
/* @__PURE__ */ jsx10("div", { className: "flex items-center gap-1.5", children: onEnroll ? /* @__PURE__ */ jsxs9(
|
|
1963
|
+
"button",
|
|
1964
|
+
{
|
|
1965
|
+
type: "button",
|
|
1966
|
+
"data-enroll-cta": true,
|
|
1967
|
+
onClick: onEnroll,
|
|
1968
|
+
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",
|
|
1969
|
+
children: [
|
|
1970
|
+
/* @__PURE__ */ jsx10(PlusIcon, { className: "size-3.5", "aria-hidden": true }),
|
|
1971
|
+
t("machinesDashboard.connectAMachine")
|
|
1972
|
+
]
|
|
1973
|
+
}
|
|
1974
|
+
) : null })
|
|
1975
|
+
] });
|
|
1976
|
+
}
|
|
1977
|
+
function MachinesDashboard({
|
|
1978
|
+
machines,
|
|
1979
|
+
activeSandboxId,
|
|
1980
|
+
loading,
|
|
1981
|
+
error,
|
|
1982
|
+
onAttach,
|
|
1983
|
+
attachingSandboxId,
|
|
1984
|
+
onUpdateAgent,
|
|
1985
|
+
canUpdateMachine,
|
|
1986
|
+
updatingEnrollmentId,
|
|
1987
|
+
seriesByMachine,
|
|
1988
|
+
onOpenDetail,
|
|
1989
|
+
now,
|
|
1990
|
+
onEnroll,
|
|
1991
|
+
onRefresh,
|
|
1992
|
+
className
|
|
1993
|
+
}) {
|
|
1994
|
+
const t = useOpenGeniText();
|
|
1995
|
+
const isEmpty = !loading && !error && machines.length === 0;
|
|
1996
|
+
return /* @__PURE__ */ jsxs9("section", { "data-machines-dashboard": true, className: cn("og-root flex flex-col gap-3", className), children: [
|
|
1997
|
+
/* @__PURE__ */ jsx10(Header, { count: machines.length, onEnroll }),
|
|
1998
|
+
error ? /* @__PURE__ */ jsxs9(
|
|
1999
|
+
"div",
|
|
2000
|
+
{
|
|
2001
|
+
"data-machines-error": true,
|
|
2002
|
+
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",
|
|
2003
|
+
children: [
|
|
2004
|
+
/* @__PURE__ */ jsx10("span", { children: t("machinesDashboard.couldNotLoadMachinesMessage", { message: error.message }) }),
|
|
2005
|
+
onRefresh ? /* @__PURE__ */ jsxs9(
|
|
2006
|
+
"button",
|
|
2007
|
+
{
|
|
2008
|
+
type: "button",
|
|
2009
|
+
"data-machines-retry": true,
|
|
2010
|
+
onClick: onRefresh,
|
|
2011
|
+
disabled: loading,
|
|
2012
|
+
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",
|
|
2013
|
+
children: [
|
|
2014
|
+
/* @__PURE__ */ jsx10(RefreshCwIcon, { className: cn("size-3.5", loading && "animate-og-spin"), "aria-hidden": true }),
|
|
2015
|
+
loading ? t("machinesDashboard.retrying") : t("machinesDashboard.retry")
|
|
2016
|
+
]
|
|
2017
|
+
}
|
|
2018
|
+
) : null
|
|
2019
|
+
]
|
|
2020
|
+
}
|
|
2021
|
+
) : null,
|
|
2022
|
+
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(
|
|
2023
|
+
"div",
|
|
2024
|
+
{
|
|
2025
|
+
className: "h-36 animate-og-pulse rounded-og-lg border border-og-border bg-og-surface-1"
|
|
2026
|
+
},
|
|
2027
|
+
i
|
|
2028
|
+
)) }) : 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(
|
|
2029
|
+
MachineCard,
|
|
2030
|
+
{
|
|
2031
|
+
machine: {
|
|
2032
|
+
...machine,
|
|
2033
|
+
active: machine.active || machine.sandboxId === activeSandboxId
|
|
2034
|
+
},
|
|
2035
|
+
onAttach,
|
|
2036
|
+
attaching: attachingSandboxId === machine.sandboxId,
|
|
2037
|
+
onUpdateAgent: canUpdateMachine && !canUpdateMachine(machine) ? void 0 : onUpdateAgent,
|
|
2038
|
+
updatingAgent: updatingEnrollmentId === machine.enrollmentId,
|
|
2039
|
+
series: seriesByMachine?.[machine.sandboxId],
|
|
2040
|
+
onOpenDetail,
|
|
2041
|
+
now
|
|
2042
|
+
},
|
|
2043
|
+
machine.sandboxId
|
|
2044
|
+
)) })
|
|
2045
|
+
] });
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
// src/components/machine-dock-bar.tsx
|
|
2049
|
+
import { LaptopIcon as LaptopIcon4, CpuIcon as CpuIcon3, UsersIcon as UsersIcon3 } from "lucide-react";
|
|
2050
|
+
import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2051
|
+
function MachineDockBar({ name, kind, state, className }) {
|
|
2052
|
+
const t = useOpenGeniText();
|
|
2053
|
+
const Icon = kind === "selfhosted" || kind === "local" ? LaptopIcon4 : CpuIcon3;
|
|
2054
|
+
const stateBadge = MACHINE_STATE_BADGE_META(t)[state];
|
|
2055
|
+
return /* @__PURE__ */ jsxs10(
|
|
2056
|
+
"div",
|
|
2057
|
+
{
|
|
2058
|
+
"data-machine-dock-bar": true,
|
|
2059
|
+
className: cn(
|
|
2060
|
+
"flex shrink-0 items-center justify-between gap-2 border-b border-og-border bg-og-surface-1 px-2.5 py-1",
|
|
2061
|
+
className
|
|
2062
|
+
),
|
|
2063
|
+
children: [
|
|
2064
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
2065
|
+
/* @__PURE__ */ jsx11(Icon, { className: "size-3.5 shrink-0 text-og-fg-subtle", "aria-hidden": true }),
|
|
2066
|
+
/* @__PURE__ */ jsx11("span", { className: "truncate text-[11px] font-medium text-og-fg", children: name }),
|
|
2067
|
+
stateBadge ? /* @__PURE__ */ jsx11(
|
|
2068
|
+
"span",
|
|
2069
|
+
{
|
|
2070
|
+
"data-state-badge": state,
|
|
2071
|
+
className: cn(
|
|
2072
|
+
"shrink-0 rounded-full border px-1.5 py-px text-[10px] font-medium",
|
|
2073
|
+
stateBadge.badgeClassName
|
|
2074
|
+
),
|
|
2075
|
+
children: stateBadge.label
|
|
2076
|
+
}
|
|
2077
|
+
) : null
|
|
2078
|
+
] }),
|
|
2079
|
+
/* @__PURE__ */ jsx11(
|
|
2080
|
+
ConnectionStatusPill,
|
|
2081
|
+
{
|
|
2082
|
+
status: connectionStatusForState(state),
|
|
2083
|
+
size: "sm",
|
|
2084
|
+
className: "shrink-0"
|
|
2085
|
+
}
|
|
2086
|
+
)
|
|
2087
|
+
]
|
|
2088
|
+
}
|
|
2089
|
+
);
|
|
2090
|
+
}
|
|
2091
|
+
function SharedMachineDisclosure({
|
|
2092
|
+
sharedSessionCount,
|
|
2093
|
+
density = "compact",
|
|
2094
|
+
className
|
|
2095
|
+
}) {
|
|
2096
|
+
const t = useOpenGeniText();
|
|
2097
|
+
const others = Math.max(0, sharedSessionCount - 1);
|
|
2098
|
+
return /* @__PURE__ */ jsxs10(
|
|
2099
|
+
"div",
|
|
2100
|
+
{
|
|
2101
|
+
"data-shared-disclosure": true,
|
|
2102
|
+
className: cn(
|
|
2103
|
+
"flex items-center gap-1.5 border-og-accent/25 bg-og-accent-soft text-og-fg-muted",
|
|
2104
|
+
density === "full" ? "rounded-og-md border px-3 py-2 text-[12px]" : "border-b px-2.5 py-1 text-[11px]",
|
|
2105
|
+
className
|
|
2106
|
+
),
|
|
2107
|
+
children: [
|
|
2108
|
+
/* @__PURE__ */ jsx11(UsersIcon3, { className: "size-3.5 shrink-0 text-og-accent", "aria-hidden": true }),
|
|
2109
|
+
/* @__PURE__ */ jsxs10("span", { children: [
|
|
2110
|
+
t("machineDockBar.shared"),
|
|
2111
|
+
" ",
|
|
2112
|
+
others === 1 ? t("machineDockBar.anotherSessionIs") : t("machineDockBar.othersOtherSessionsAre", { others }),
|
|
2113
|
+
" ",
|
|
2114
|
+
t("machineDockBar.onThisMachineTheySee")
|
|
2115
|
+
] })
|
|
2116
|
+
]
|
|
2117
|
+
}
|
|
2118
|
+
);
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
// src/components/enrollment-device-flow.tsx
|
|
2122
|
+
import { CopyIcon, ExternalLinkIcon, LaptopIcon as LaptopIcon5, TerminalIcon } from "lucide-react";
|
|
2123
|
+
import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2124
|
+
var PHASE_TO_STATE = {
|
|
2125
|
+
pending: "enrolling",
|
|
2126
|
+
authorized: "online",
|
|
2127
|
+
denied: "offline",
|
|
2128
|
+
expired: "offline",
|
|
2129
|
+
disabled: "offline"
|
|
2130
|
+
};
|
|
2131
|
+
function PhaseLabel({ phase }) {
|
|
2132
|
+
const t = useOpenGeniText();
|
|
2133
|
+
const text = {
|
|
2134
|
+
pending: t("enrollmentDeviceFlow.waitingForApproval"),
|
|
2135
|
+
authorized: t("enrollmentDeviceFlow.connected"),
|
|
2136
|
+
denied: t("enrollmentDeviceFlow.denied"),
|
|
2137
|
+
expired: t("enrollmentDeviceFlow.codeExpired"),
|
|
2138
|
+
disabled: t("enrollmentDeviceFlow.enrollmentDisabled")
|
|
2139
|
+
};
|
|
2140
|
+
return /* @__PURE__ */ jsx12("span", { children: text[phase] });
|
|
2141
|
+
}
|
|
2142
|
+
function EnrollmentDeviceFlow({
|
|
2143
|
+
userCode,
|
|
2144
|
+
verificationUri,
|
|
2145
|
+
verificationUriComplete,
|
|
2146
|
+
installCommand,
|
|
2147
|
+
phase = "pending",
|
|
2148
|
+
expiresInSeconds,
|
|
2149
|
+
onCopyCode,
|
|
2150
|
+
onCopyInstall,
|
|
2151
|
+
onOpenVerification,
|
|
2152
|
+
className
|
|
2153
|
+
}) {
|
|
2154
|
+
const t = useOpenGeniText();
|
|
2155
|
+
const href = verificationUriComplete ?? verificationUri;
|
|
2156
|
+
const codeIsPlaceholder = !/[A-Za-z0-9]/.test(userCode);
|
|
2157
|
+
const awaitingCode = phase === "pending" && codeIsPlaceholder;
|
|
2158
|
+
return /* @__PURE__ */ jsxs11(
|
|
2159
|
+
"div",
|
|
2160
|
+
{
|
|
2161
|
+
"data-enrollment-device-flow": true,
|
|
2162
|
+
className: cn(
|
|
2163
|
+
"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",
|
|
2164
|
+
className
|
|
2165
|
+
),
|
|
2166
|
+
children: [
|
|
2167
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between gap-3", children: [
|
|
2168
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-2", children: [
|
|
2169
|
+
/* @__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 }) }),
|
|
2170
|
+
/* @__PURE__ */ jsx12("h2", { className: "text-og-menu font-semibold text-og-fg", children: t("enrollmentDeviceFlow.connectAMachine") })
|
|
2171
|
+
] }),
|
|
2172
|
+
/* @__PURE__ */ jsx12(
|
|
2173
|
+
ConnectionStatusPill,
|
|
2174
|
+
{
|
|
2175
|
+
status: PHASE_TO_STATE[phase] === "online" ? "online" : PHASE_TO_STATE[phase] === "offline" ? "offline" : "reconnecting",
|
|
2176
|
+
label: /* @__PURE__ */ jsx12(PhaseLabel, { phase }),
|
|
2177
|
+
size: "sm"
|
|
2178
|
+
}
|
|
2179
|
+
)
|
|
2180
|
+
] }),
|
|
2181
|
+
installCommand ? /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-1.5", children: [
|
|
2182
|
+
/* @__PURE__ */ jsx12("span", { className: "text-[11px] font-medium uppercase tracking-wide text-og-fg-subtle", children: t("enrollmentDeviceFlow.n1RunOnTheMachine") }),
|
|
2183
|
+
/* @__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: [
|
|
2184
|
+
/* @__PURE__ */ jsxs11("code", { className: "flex min-w-0 items-center gap-2 overflow-x-auto font-og-mono text-[12px] text-og-fg", children: [
|
|
2185
|
+
/* @__PURE__ */ jsx12(TerminalIcon, { className: "size-3.5 shrink-0 text-og-fg-subtle", "aria-hidden": true }),
|
|
2186
|
+
installCommand
|
|
2187
|
+
] }),
|
|
2188
|
+
/* @__PURE__ */ jsx12(
|
|
2189
|
+
"button",
|
|
2190
|
+
{
|
|
2191
|
+
type: "button",
|
|
2192
|
+
"data-copy-install": true,
|
|
2193
|
+
onClick: onCopyInstall,
|
|
2194
|
+
title: t("enrollmentDeviceFlow.copyCommand"),
|
|
2195
|
+
className: "shrink-0 rounded-og-sm p-1.5 text-og-fg-subtle transition-colors hover:bg-og-surface-2 hover:text-og-fg",
|
|
2196
|
+
children: /* @__PURE__ */ jsx12(CopyIcon, { className: "size-4", "aria-hidden": true })
|
|
2197
|
+
}
|
|
2198
|
+
)
|
|
2199
|
+
] })
|
|
2200
|
+
] }) : null,
|
|
2201
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-1.5", children: [
|
|
2202
|
+
/* @__PURE__ */ jsx12("span", { className: "text-[11px] font-medium uppercase tracking-wide text-og-fg-subtle", children: installCommand ? t("enrollmentDeviceFlow.n2ApproveTheMachine") : t("enrollmentDeviceFlow.approveTheMachine") }),
|
|
2203
|
+
/* @__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: [
|
|
2204
|
+
awaitingCode ? /* @__PURE__ */ jsx12("span", { "data-user-code": true, className: "font-og-mono text-[13px] text-og-fg-subtle", children: t("enrollmentDeviceFlow.runTheCommandAboveYour") }) : /* @__PURE__ */ jsx12(
|
|
2205
|
+
"span",
|
|
2206
|
+
{
|
|
2207
|
+
"data-user-code": true,
|
|
2208
|
+
className: "select-all font-og-mono text-2xl font-semibold tracking-[0.25em] text-og-fg",
|
|
2209
|
+
children: userCode
|
|
2210
|
+
}
|
|
2211
|
+
),
|
|
2212
|
+
/* @__PURE__ */ jsx12(
|
|
2213
|
+
"button",
|
|
2214
|
+
{
|
|
2215
|
+
type: "button",
|
|
2216
|
+
"data-copy-code": true,
|
|
2217
|
+
onClick: onCopyCode,
|
|
2218
|
+
disabled: awaitingCode,
|
|
2219
|
+
title: t("enrollmentDeviceFlow.copyCode"),
|
|
2220
|
+
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",
|
|
2221
|
+
children: /* @__PURE__ */ jsx12(CopyIcon, { className: "size-4", "aria-hidden": true })
|
|
2222
|
+
}
|
|
2223
|
+
)
|
|
2224
|
+
] })
|
|
2225
|
+
] }),
|
|
2226
|
+
/* @__PURE__ */ jsxs11(
|
|
2227
|
+
"a",
|
|
2228
|
+
{
|
|
2229
|
+
href,
|
|
2230
|
+
"data-open-verification": true,
|
|
2231
|
+
target: "_blank",
|
|
2232
|
+
rel: "noreferrer",
|
|
2233
|
+
onClick: onOpenVerification,
|
|
2234
|
+
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",
|
|
2235
|
+
children: [
|
|
2236
|
+
t("enrollmentDeviceFlow.openApprovalPage"),
|
|
2237
|
+
/* @__PURE__ */ jsx12(ExternalLinkIcon, { className: "size-3.5", "aria-hidden": true })
|
|
2238
|
+
]
|
|
2239
|
+
}
|
|
2240
|
+
),
|
|
2241
|
+
/* @__PURE__ */ jsx12("p", { className: "text-center text-[11px] text-og-fg-subtle", children: awaitingCode ? /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
2242
|
+
t("enrollmentDeviceFlow.theOneLinerPrintsA"),
|
|
2243
|
+
" ",
|
|
2244
|
+
/* @__PURE__ */ jsx12("span", { className: "font-og-mono text-og-fg-muted", children: verificationUri }),
|
|
2245
|
+
" ",
|
|
2246
|
+
t("enrollmentDeviceFlow.andConfirmTheCodeShown")
|
|
2247
|
+
] }) : /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
2248
|
+
t("enrollmentDeviceFlow.confirmCode"),
|
|
2249
|
+
" ",
|
|
2250
|
+
/* @__PURE__ */ jsx12("span", { className: "font-og-mono text-og-fg-muted", children: userCode }),
|
|
2251
|
+
" ",
|
|
2252
|
+
t("enrollmentDeviceFlow.theOnePrintedByThe"),
|
|
2253
|
+
" ",
|
|
2254
|
+
/* @__PURE__ */ jsx12("span", { className: "font-og-mono text-og-fg-muted", children: verificationUri }),
|
|
2255
|
+
".",
|
|
2256
|
+
typeof expiresInSeconds === "number" ? /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
2257
|
+
" ",
|
|
2258
|
+
t("enrollmentDeviceFlow.expiresIn"),
|
|
2259
|
+
" ",
|
|
2260
|
+
Math.max(0, Math.round(expiresInSeconds / 60)),
|
|
2261
|
+
" ",
|
|
2262
|
+
t("enrollmentDeviceFlow.min")
|
|
2263
|
+
] }) : null
|
|
2264
|
+
] }) })
|
|
2265
|
+
]
|
|
2266
|
+
}
|
|
2267
|
+
);
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
// src/components/enrollment-consent.tsx
|
|
2271
|
+
import { useState as useState3 } from "react";
|
|
2272
|
+
import {
|
|
2273
|
+
CircleAlertIcon as CircleAlertIcon2,
|
|
2274
|
+
LaptopIcon as LaptopIcon6,
|
|
2275
|
+
MonitorIcon as MonitorIcon2,
|
|
2276
|
+
ScreenShareIcon,
|
|
2277
|
+
ShieldAlertIcon,
|
|
2278
|
+
TerminalIcon as TerminalIcon2,
|
|
2279
|
+
UsersIcon as UsersIcon4
|
|
2280
|
+
} from "lucide-react";
|
|
2281
|
+
import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2282
|
+
function Capability({ icon, title, body }) {
|
|
2283
|
+
return /* @__PURE__ */ jsxs12("li", { className: "flex items-start gap-2.5", children: [
|
|
2284
|
+
/* @__PURE__ */ jsx13("span", { className: "mt-0.5 shrink-0 text-og-status-failed", children: icon }),
|
|
2285
|
+
/* @__PURE__ */ jsxs12("span", { className: "min-w-0", children: [
|
|
2286
|
+
/* @__PURE__ */ jsx13("span", { className: "block text-og-base font-medium text-og-fg", children: title }),
|
|
2287
|
+
/* @__PURE__ */ jsx13("span", { className: "block text-og-sm text-og-fg-muted", children: body })
|
|
2288
|
+
] })
|
|
2289
|
+
] });
|
|
2290
|
+
}
|
|
2291
|
+
function EnrollmentConsent({
|
|
2292
|
+
userCode,
|
|
2293
|
+
machine,
|
|
2294
|
+
phase = "review",
|
|
2295
|
+
allowWorkspaceScope = true,
|
|
2296
|
+
allowOrganizationScope = false,
|
|
2297
|
+
onApprove,
|
|
2298
|
+
onDeny,
|
|
2299
|
+
errorMessage: errorMessage2,
|
|
2300
|
+
className
|
|
2301
|
+
}) {
|
|
2302
|
+
const t = useOpenGeniText();
|
|
2303
|
+
const [allowScreenControl, setAllowScreenControl] = useState3(machine.requestsScreenControl);
|
|
2304
|
+
const [scope, setScope] = useState3("user");
|
|
2305
|
+
const busy = phase === "approving";
|
|
2306
|
+
const scopeCopy = {
|
|
2307
|
+
user: {
|
|
2308
|
+
label: t("enrollmentConsent.personal"),
|
|
2309
|
+
body: t("enrollmentConsent.onlyYouCanUseThis")
|
|
2310
|
+
},
|
|
2311
|
+
workspace: {
|
|
2312
|
+
label: t("enrollmentConsent.workspace"),
|
|
2313
|
+
body: t("enrollmentConsent.everyoneWithAccessToThis")
|
|
2314
|
+
},
|
|
2315
|
+
organization: {
|
|
2316
|
+
label: t("enrollmentConsent.organization"),
|
|
2317
|
+
body: t("enrollmentConsent.membersOfThisOrganizationCan")
|
|
2318
|
+
}
|
|
2319
|
+
};
|
|
2320
|
+
if (phase === "approved") {
|
|
2321
|
+
return /* @__PURE__ */ jsx13(
|
|
2322
|
+
ConsentResult,
|
|
2323
|
+
{
|
|
2324
|
+
className,
|
|
2325
|
+
tone: "ok",
|
|
2326
|
+
title: t("enrollmentConsent.machineConnected"),
|
|
2327
|
+
body: t("enrollmentConsent.machinenameIsNowConnectedWith", {
|
|
2328
|
+
machineName: machine.machineName,
|
|
2329
|
+
lowerCase: scopeCopy[scope].label.toLowerCase()
|
|
2330
|
+
})
|
|
2331
|
+
}
|
|
2332
|
+
);
|
|
2333
|
+
}
|
|
2334
|
+
if (phase === "denied") {
|
|
2335
|
+
return /* @__PURE__ */ jsx13(
|
|
2336
|
+
ConsentResult,
|
|
2337
|
+
{
|
|
2338
|
+
className,
|
|
2339
|
+
tone: "muted",
|
|
2340
|
+
title: t("enrollmentConsent.enrollmentDenied"),
|
|
2341
|
+
body: t("enrollmentConsent.youDeclinedToConnectMachinename", {
|
|
2342
|
+
machineName: machine.machineName
|
|
2343
|
+
})
|
|
2344
|
+
}
|
|
2345
|
+
);
|
|
2346
|
+
}
|
|
2347
|
+
if (phase === "error") {
|
|
2348
|
+
return /* @__PURE__ */ jsx13(
|
|
2349
|
+
ConsentResult,
|
|
2350
|
+
{
|
|
2351
|
+
className,
|
|
2352
|
+
tone: "danger",
|
|
2353
|
+
title: t("enrollmentConsent.couldNotCompleteEnrollment"),
|
|
2354
|
+
body: errorMessage2 ?? t("enrollmentConsent.theCodeMayHaveExpired")
|
|
2355
|
+
}
|
|
2356
|
+
);
|
|
2357
|
+
}
|
|
2358
|
+
return /* @__PURE__ */ jsxs12(
|
|
2359
|
+
"div",
|
|
2360
|
+
{
|
|
2361
|
+
"data-enrollment-consent": true,
|
|
2362
|
+
className: cn(
|
|
2363
|
+
"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",
|
|
2364
|
+
className
|
|
2365
|
+
),
|
|
2366
|
+
children: [
|
|
2367
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex items-start gap-3", children: [
|
|
2368
|
+
/* @__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 }) }),
|
|
2369
|
+
/* @__PURE__ */ jsxs12("div", { className: "min-w-0", children: [
|
|
2370
|
+
/* @__PURE__ */ jsx13("h1", { className: "text-og-md font-semibold text-og-fg", children: t("enrollmentConsent.giveTheAgentYourWhole") }),
|
|
2371
|
+
/* @__PURE__ */ jsxs12("p", { className: "mt-1 text-og-base text-og-fg-muted", children: [
|
|
2372
|
+
t("enrollmentConsent.approvingLetsTheOpengeniAgent"),
|
|
2373
|
+
" ",
|
|
2374
|
+
/* @__PURE__ */ jsx13("span", { className: "font-medium text-og-fg", children: machine.machineName }),
|
|
2375
|
+
" ",
|
|
2376
|
+
t("enrollmentConsent.withFullAccessThisIs")
|
|
2377
|
+
] })
|
|
2378
|
+
] })
|
|
2379
|
+
] }),
|
|
2380
|
+
/* @__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: [
|
|
2381
|
+
/* @__PURE__ */ jsx13(LaptopIcon6, { className: "size-4 text-og-fg-subtle", "aria-hidden": true }),
|
|
2382
|
+
/* @__PURE__ */ jsx13("span", { className: "font-medium text-og-fg", children: machine.machineName }),
|
|
2383
|
+
/* @__PURE__ */ jsxs12("span", { className: "font-og-mono text-og-fg-subtle", children: [
|
|
2384
|
+
machine.os,
|
|
2385
|
+
"/",
|
|
2386
|
+
machine.arch
|
|
2387
|
+
] }),
|
|
2388
|
+
/* @__PURE__ */ jsx13("span", { "aria-hidden": true, className: "text-og-fg-subtle", children: "\xB7" }),
|
|
2389
|
+
/* @__PURE__ */ jsxs12("span", { className: "text-og-fg-subtle", children: [
|
|
2390
|
+
t("enrollmentConsent.code"),
|
|
2391
|
+
" ",
|
|
2392
|
+
/* @__PURE__ */ jsx13("span", { className: "font-og-mono font-medium text-og-fg", children: userCode })
|
|
2393
|
+
] })
|
|
2394
|
+
] }),
|
|
2395
|
+
/* @__PURE__ */ jsxs12("ul", { className: "flex flex-col gap-3", children: [
|
|
2396
|
+
/* @__PURE__ */ jsx13(
|
|
2397
|
+
Capability,
|
|
2398
|
+
{
|
|
2399
|
+
icon: /* @__PURE__ */ jsx13(TerminalIcon2, { className: "size-4", "aria-hidden": true }),
|
|
2400
|
+
title: t("enrollmentConsent.readWriteRunAnything"),
|
|
2401
|
+
body: t("enrollmentConsent.theAgentCanReadAnd")
|
|
2402
|
+
}
|
|
2403
|
+
),
|
|
2404
|
+
machine.canOfferDisplay ? /* @__PURE__ */ jsx13(
|
|
2405
|
+
Capability,
|
|
2406
|
+
{
|
|
2407
|
+
icon: /* @__PURE__ */ jsx13(MonitorIcon2, { className: "size-4", "aria-hidden": true }),
|
|
2408
|
+
title: t("enrollmentConsent.seeYourScreen"),
|
|
2409
|
+
body: t("enrollmentConsent.theAgentCanCaptureThis")
|
|
2410
|
+
}
|
|
2411
|
+
) : null,
|
|
2412
|
+
/* @__PURE__ */ jsx13(
|
|
2413
|
+
Capability,
|
|
2414
|
+
{
|
|
2415
|
+
icon: /* @__PURE__ */ jsx13(UsersIcon4, { className: "size-4", "aria-hidden": true }),
|
|
2416
|
+
title: t("enrollmentConsent.labelAccessWhileConnected", {
|
|
2417
|
+
label: scopeCopy[scope].label
|
|
2418
|
+
}),
|
|
2419
|
+
body: t("enrollmentConsent.bodyDisconnectTheAgentTo", { body: scopeCopy[scope].body })
|
|
2420
|
+
}
|
|
2421
|
+
)
|
|
2422
|
+
] }),
|
|
2423
|
+
/* @__PURE__ */ jsxs12("fieldset", { className: "flex flex-col gap-2", disabled: busy, children: [
|
|
2424
|
+
/* @__PURE__ */ jsx13("legend", { className: "mb-1 text-og-sm font-medium text-og-fg", children: t("enrollmentConsent.whoCanUseThisMachine") }),
|
|
2425
|
+
["user", "workspace", "organization"].map((candidate) => {
|
|
2426
|
+
const disabled = candidate === "organization" && !allowOrganizationScope || candidate === "workspace" && !allowWorkspaceScope;
|
|
2427
|
+
return /* @__PURE__ */ jsxs12(
|
|
2428
|
+
"label",
|
|
2429
|
+
{
|
|
2430
|
+
"data-enrollment-scope": candidate,
|
|
2431
|
+
"data-disabled": disabled ? "true" : "false",
|
|
2432
|
+
className: cn(
|
|
2433
|
+
"flex items-start gap-2.5 rounded-og-md border border-og-border bg-og-bg px-3 py-2.5",
|
|
2434
|
+
disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"
|
|
2435
|
+
),
|
|
2436
|
+
children: [
|
|
2437
|
+
/* @__PURE__ */ jsx13(
|
|
2438
|
+
"input",
|
|
2439
|
+
{
|
|
2440
|
+
type: "radio",
|
|
2441
|
+
name: "enrollment-scope",
|
|
2442
|
+
value: candidate,
|
|
2443
|
+
checked: scope === candidate,
|
|
2444
|
+
disabled: disabled || busy,
|
|
2445
|
+
onChange: () => setScope(candidate),
|
|
2446
|
+
className: "mt-0.5 size-4 accent-og-accent"
|
|
2447
|
+
}
|
|
2448
|
+
),
|
|
2449
|
+
/* @__PURE__ */ jsxs12("span", { className: "min-w-0", children: [
|
|
2450
|
+
/* @__PURE__ */ jsxs12("span", { className: "block text-og-base font-medium text-og-fg", children: [
|
|
2451
|
+
scopeCopy[candidate].label,
|
|
2452
|
+
disabled ? candidate === "organization" ? " \xB7 organization admin required" : " \xB7 workspace admin required" : ""
|
|
2453
|
+
] }),
|
|
2454
|
+
/* @__PURE__ */ jsx13("span", { className: "block text-og-sm text-og-fg-muted", children: scopeCopy[candidate].body })
|
|
2455
|
+
] })
|
|
2456
|
+
]
|
|
2457
|
+
},
|
|
2458
|
+
candidate
|
|
2459
|
+
);
|
|
2460
|
+
})
|
|
2461
|
+
] }),
|
|
2462
|
+
machine.canOfferDisplay ? /* @__PURE__ */ jsxs12(
|
|
2463
|
+
"label",
|
|
2464
|
+
{
|
|
2465
|
+
"data-screen-control-toggle": true,
|
|
2466
|
+
className: "flex cursor-pointer items-start gap-3 rounded-og-md border border-og-border bg-og-bg px-3 py-2.5",
|
|
2467
|
+
children: [
|
|
2468
|
+
/* @__PURE__ */ jsx13(
|
|
2469
|
+
"input",
|
|
2470
|
+
{
|
|
2471
|
+
type: "checkbox",
|
|
2472
|
+
checked: allowScreenControl,
|
|
2473
|
+
disabled: busy,
|
|
2474
|
+
onChange: (e) => setAllowScreenControl(e.target.checked),
|
|
2475
|
+
className: "mt-0.5 size-4 accent-og-accent"
|
|
2476
|
+
}
|
|
2477
|
+
),
|
|
2478
|
+
/* @__PURE__ */ jsxs12("span", { className: "min-w-0", children: [
|
|
2479
|
+
/* @__PURE__ */ jsxs12("span", { className: "flex items-center gap-1.5 text-og-base font-medium text-og-fg", children: [
|
|
2480
|
+
/* @__PURE__ */ jsx13(ScreenShareIcon, { className: "size-3.5 text-og-fg-muted", "aria-hidden": true }),
|
|
2481
|
+
t("enrollmentConsent.alsoLetTheAgentControl")
|
|
2482
|
+
] }),
|
|
2483
|
+
/* @__PURE__ */ jsx13("span", { className: "mt-0.5 block text-og-sm text-og-fg-muted", children: t("enrollmentConsent.optionalEnablesComputerUseThe") })
|
|
2484
|
+
] })
|
|
2485
|
+
]
|
|
2486
|
+
}
|
|
2487
|
+
) : /* @__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: [
|
|
2488
|
+
/* @__PURE__ */ jsx13(CircleAlertIcon2, { className: "mt-px size-3.5 shrink-0 text-og-fg-subtle", "aria-hidden": true }),
|
|
2489
|
+
t("enrollmentConsent.thisMachineHasNoDisplay")
|
|
2490
|
+
] }),
|
|
2491
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-2", children: [
|
|
2492
|
+
/* @__PURE__ */ jsx13(
|
|
2493
|
+
"button",
|
|
2494
|
+
{
|
|
2495
|
+
type: "button",
|
|
2496
|
+
"data-deny": true,
|
|
2497
|
+
disabled: busy,
|
|
2498
|
+
onClick: () => onDeny?.(),
|
|
2499
|
+
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",
|
|
2500
|
+
children: t("enrollmentConsent.cancel")
|
|
2501
|
+
}
|
|
2502
|
+
),
|
|
2503
|
+
/* @__PURE__ */ jsx13(
|
|
2504
|
+
"button",
|
|
2505
|
+
{
|
|
2506
|
+
type: "button",
|
|
2507
|
+
"data-approve": true,
|
|
2508
|
+
disabled: busy,
|
|
2509
|
+
onClick: () => onApprove?.(allowScreenControl, scope),
|
|
2510
|
+
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",
|
|
2511
|
+
children: busy ? t("enrollmentConsent.connecting") : t("enrollmentConsent.grantFullAccess")
|
|
2512
|
+
}
|
|
2513
|
+
)
|
|
2514
|
+
] })
|
|
2515
|
+
]
|
|
2516
|
+
}
|
|
2517
|
+
);
|
|
2518
|
+
}
|
|
2519
|
+
function ConsentResult({
|
|
2520
|
+
tone,
|
|
2521
|
+
title,
|
|
2522
|
+
body,
|
|
2523
|
+
className
|
|
2524
|
+
}) {
|
|
2525
|
+
const ring = tone === "ok" ? "border-og-status-running/30" : tone === "danger" ? "border-og-status-failed/30" : "border-og-border";
|
|
2526
|
+
const iconClass = tone === "ok" ? "text-og-status-running" : tone === "danger" ? "text-og-status-failed" : "text-og-fg-subtle";
|
|
2527
|
+
return /* @__PURE__ */ jsxs12(
|
|
2528
|
+
"div",
|
|
2529
|
+
{
|
|
2530
|
+
"data-enrollment-result": tone,
|
|
2531
|
+
className: cn(
|
|
2532
|
+
"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",
|
|
2533
|
+
ring,
|
|
2534
|
+
className
|
|
2535
|
+
),
|
|
2536
|
+
children: [
|
|
2537
|
+
/* @__PURE__ */ jsx13(
|
|
2538
|
+
"span",
|
|
2539
|
+
{
|
|
2540
|
+
className: cn(
|
|
2541
|
+
"flex size-10 items-center justify-center rounded-full bg-og-surface-2",
|
|
2542
|
+
iconClass
|
|
2543
|
+
),
|
|
2544
|
+
children: /* @__PURE__ */ jsx13(LaptopIcon6, { className: "size-5", "aria-hidden": true })
|
|
2545
|
+
}
|
|
2546
|
+
),
|
|
2547
|
+
/* @__PURE__ */ jsx13("h1", { className: "text-og-md font-semibold text-og-fg", children: title }),
|
|
2548
|
+
/* @__PURE__ */ jsx13("p", { className: "max-w-sm text-og-base text-og-fg-muted", children: body })
|
|
2549
|
+
]
|
|
2550
|
+
}
|
|
2551
|
+
);
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2554
|
+
export {
|
|
2555
|
+
CONNECTION_STATUS_META,
|
|
2556
|
+
MACHINE_STATE_BADGE_META,
|
|
2557
|
+
ConnectionStatusPill,
|
|
2558
|
+
ConnectionDot,
|
|
2559
|
+
MachineStatusPill,
|
|
2560
|
+
MachineMetrics,
|
|
2561
|
+
deriveHealth,
|
|
2562
|
+
HEALTH_TOKEN,
|
|
2563
|
+
healthPulses,
|
|
2564
|
+
MachineHealthPill,
|
|
2565
|
+
MetricSparkline,
|
|
2566
|
+
MachineCard,
|
|
2567
|
+
MetricHistoryChart,
|
|
2568
|
+
METRIC_WINDOWS,
|
|
2569
|
+
WINDOW_LABEL,
|
|
2570
|
+
METRICS,
|
|
2571
|
+
pointsFor,
|
|
2572
|
+
MachineOperationPolicyEditor,
|
|
2573
|
+
MachineDetail,
|
|
2574
|
+
MachinesDashboard,
|
|
2575
|
+
MachineDockBar,
|
|
2576
|
+
SharedMachineDisclosure,
|
|
2577
|
+
EnrollmentDeviceFlow,
|
|
2578
|
+
EnrollmentConsent
|
|
2579
|
+
};
|
|
2580
|
+
//# sourceMappingURL=chunk-APJ22OZV.js.map
|