@opengeni/react 6.5.2-canary.41607687019001 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/app-state.d.ts +4 -0
- package/dist/app/app-state.js +19 -14
- package/dist/app/components/Composer.js +25 -23
- package/dist/app/components/agent/agent-capability-picker.js +10 -8
- package/dist/app/components/artifacts/artifact-browse-controls.js +4 -4
- package/dist/app/components/artifacts/artifact-library.js +21 -19
- package/dist/app/components/artifacts/artifact-page-chrome.js +3 -3
- package/dist/app/components/artifacts/artifact-viewer.js +23 -22
- package/dist/app/components/artifacts/artifact-viewer.js.map +1 -1
- package/dist/app/components/artifacts/chat-interactive-block.js +12 -12
- package/dist/app/components/artifacts/copy-artifact-link.js +7 -5
- package/dist/app/components/artifacts/file-reach-dialog.js +11 -9
- package/dist/app/components/artifacts/inline-chat-image.js +18 -18
- package/dist/app/components/artifacts/retained-file-preview.js +24 -23
- package/dist/app/components/artifacts/retained-text-preview.js +3 -3
- package/dist/app/components/artifacts/site-audience.js +6 -5
- package/dist/app/components/artifacts/site-conversations.js +16 -14
- package/dist/app/components/artifacts/site-data.js +18 -16
- package/dist/app/components/artifacts/site-public-link.js +3 -2
- package/dist/app/components/artifacts/site-publishing-page.js +39 -37
- package/dist/app/components/artifacts/site-publishing.js +34 -32
- package/dist/app/components/artifacts/site-settings.js +38 -36
- package/dist/app/components/artifacts/site-version-menu.js +8 -7
- package/dist/app/components/billing-class-mark.js +3 -3
- package/dist/app/components/bots/bot-launch-strip.js +17 -17
- package/dist/app/components/bots/bot-template-dialog.js +30 -28
- package/dist/app/components/bots/bot-template-shortcuts.js +19 -19
- package/dist/app/components/bots/bot-templates-page.js +38 -36
- package/dist/app/components/bots/bot-templates-page.js.map +1 -1
- package/dist/app/components/capabilities/capability-detail-sheet.js +13 -11
- package/dist/app/components/capabilities/capability-logo-source.js +13 -13
- package/dist/app/components/capabilities/capability-logo.js +4 -3
- package/dist/app/components/capabilities/connector-tool-permissions.js +8 -6
- package/dist/app/components/capabilities/native-connect-setup.js +14 -14
- package/dist/app/components/capabilities/own-logins-shared-heads-up.js +7 -6
- package/dist/app/components/capabilities/perform-capability-action.js +7 -6
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +17 -17
- package/dist/app/components/capabilities/session-capability-card.js +72 -70
- package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.js +28 -26
- package/dist/app/components/capabilities/session-connection-accounts.js +4 -3
- package/dist/app/components/capabilities/session-custom-mcp-card.js +20 -19
- package/dist/app/components/capabilities/session-github-card.js +22 -20
- package/dist/app/components/capabilities/session-machine-card.js +27 -25
- package/dist/app/components/capabilities/session-personal-github-card.js +16 -16
- package/dist/app/components/capabilities/session-plugin-card.js +10 -9
- package/dist/app/components/capabilities/use-capabilities-catalog.js +4 -3
- package/dist/app/components/capabilities/use-connection-accounts.js +5 -4
- package/dist/app/components/command-menu/chat-status.js +15 -13
- package/dist/app/components/command-menu/chat-switcher.js +35 -33
- package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
- package/dist/app/components/command-menu/command-menu.js +53 -50
- package/dist/app/components/command-menu/command-menu.js.map +1 -1
- package/dist/app/components/command-menu/shortcut-sheet.js +18 -16
- package/dist/app/components/command-menu/shortcut-sheet.js.map +1 -1
- package/dist/app/components/common.js +4 -3
- package/dist/app/components/composer-capabilities-menu-body.js +4 -4
- package/dist/app/components/composer-mobile-plus-panel.js +8 -8
- package/dist/app/components/composer-mobile-plus.js +1 -1
- package/dist/app/components/credit-required-gate.js +3 -3
- package/dist/app/components/credit-required-prompt.js +10 -8
- package/dist/app/components/credit-required-prompt.js.map +1 -1
- package/dist/app/components/credits/checkout-credits-celebration.js +3 -2
- package/dist/app/components/credits/checkout-return.js +3 -2
- package/dist/app/components/credits/checkout-return.js.map +1 -1
- package/dist/app/components/credits/coupon-redeem.js +5 -4
- package/dist/app/components/credits/credit-refusal-notice.js +7 -5
- package/dist/app/components/cross-slot-deep-link-recovery.js +5 -4
- package/dist/app/components/desktop/app-shots.js +13 -11
- package/dist/app/components/desktop/computer-use.js +6 -4
- package/dist/app/components/desktop/this-computer.js +9 -7
- package/dist/app/components/feedback.js +5 -4
- package/dist/app/components/follow-up-repository-menu-body.js +8 -6
- package/dist/app/components/follow-up-repository-menu-body.js.map +1 -1
- package/dist/app/components/follow-up-repository-picker.js +1 -1
- package/dist/app/components/github-app-connect-launcher.js +5 -4
- package/dist/app/components/in-app-help-link.js +3 -3
- package/dist/app/components/knowledge/agent-learning-settings.js +3 -2
- package/dist/app/components/knowledge/agent-learning-settings.js.map +1 -1
- package/dist/app/components/machines/connect-machine-dialog.js +18 -16
- package/dist/app/components/manual-repository-editor.js +3 -2
- package/dist/app/components/markdown.js +6 -6
- package/dist/app/components/models/models-ui.js +12 -10
- package/dist/app/components/my-things.js +12 -10
- package/dist/app/components/my-things.js.map +1 -1
- package/dist/app/components/new-session-starters.js +3 -3
- package/dist/app/components/own-where-it-works.js +9 -7
- package/dist/app/components/personal-resource-attachment-surface.js +4 -4
- package/dist/app/components/pickers.js +5 -5
- package/dist/app/components/rail/channel-create-dialog.js +7 -5
- package/dist/app/components/rail/project-glyph.js +17 -17
- package/dist/app/components/rail/project-profile.js +31 -29
- package/dist/app/components/rail/rail-context.js +3 -3
- package/dist/app/components/rail/rail-sections.js +68 -66
- package/dist/app/components/rail/session-header.js +59 -57
- package/dist/app/components/rail/session-list.js +66 -64
- package/dist/app/components/rail/session-row-content.js +4 -4
- package/dist/app/components/rail/session-row-hover-details.js +14 -12
- package/dist/app/components/rail/session-shell.js +90 -88
- package/dist/app/components/rail/site-session-group-heading.js +8 -8
- package/dist/app/components/repository-picker.js +8 -6
- package/dist/app/components/secrets/session-secrets-panel.js +4 -3
- package/dist/app/components/secrets/vault-model.js +3 -2
- package/dist/app/components/session/agent-configuration-panel.js +25 -23
- package/dist/app/components/session/agent-configuration-panel.js.map +1 -1
- package/dist/app/components/session/artifact-link-boundary.js +3 -3
- package/dist/app/components/session/artifact-session-page.js +11 -9
- package/dist/app/components/session/banners.js +8 -8
- package/dist/app/components/session/codex-usage-notice.js +5 -3
- package/dist/app/components/session/console-new-conversation.js +42 -40
- package/dist/app/components/session/context-text-reader.js +3 -2
- package/dist/app/components/session/descendant-requests.js +39 -37
- package/dist/app/components/session/descendant-requests.js.map +1 -1
- package/dist/app/components/session/editable-artifacts-workspace.js +36 -34
- package/dist/app/components/session/editable-artifacts-workspace.js.map +1 -1
- package/dist/app/components/session/failed-session-banner.js +13 -11
- package/dist/app/components/session/failed-session-banner.js.map +1 -1
- package/dist/app/components/session/failure-recovery-boundary.js +3 -3
- package/dist/app/components/session/human-input-delegation-record.js +2 -2
- package/dist/app/components/session/human-input.js +33 -31
- package/dist/app/components/session/inspector.js +57 -55
- package/dist/app/components/session/inspector.js.map +1 -1
- package/dist/app/components/session/message-actions.js +5 -4
- package/dist/app/components/session/message-actions.js.map +1 -1
- package/dist/app/components/session/message-resource-attachments.js +12 -11
- package/dist/app/components/session/message-resource-attachments.js.map +1 -1
- package/dist/app/components/session/model-context-inspector.js +6 -4
- package/dist/app/components/session/model-recovery-notice.js +3 -3
- package/dist/app/components/session/new-session-settings-menu.js +11 -9
- package/dist/app/components/session/new-session-setup-strip.js +18 -18
- package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
- package/dist/app/components/session/sandbox-switcher.js +10 -9
- package/dist/app/components/session/sandbox-workspace.js +47 -46
- package/dist/app/components/session/search-markdown-highlight.js +7 -7
- package/dist/app/components/session/search-results-view.js +8 -8
- package/dist/app/components/session/session-admin-access.js +13 -11
- package/dist/app/components/session/session-admission-notice.js +7 -5
- package/dist/app/components/session/session-avatar-picker.js +22 -20
- package/dist/app/components/session/session-avatar.js +16 -16
- package/dist/app/components/session/session-machine-access-notice.js +7 -5
- package/dist/app/components/session/session-profile-dialog.js +29 -27
- package/dist/app/components/session/session-profile-editor.js +30 -28
- package/dist/app/components/session/session-retention.js +10 -8
- package/dist/app/components/session/session-search-dialog.js +10 -10
- package/dist/app/components/session/session-skill-reviews.js +2 -1
- package/dist/app/components/session/session-skill-reviews.js.map +1 -1
- package/dist/app/components/session/session-tenancy-control.js +13 -11
- package/dist/app/components/session/session-tenancy-control.js.map +1 -1
- package/dist/app/components/session/session-unattended-setting.js +7 -5
- package/dist/app/components/session/session-usage-limit-section.js +11 -9
- package/dist/app/components/session/share-chat-dialog.js +9 -7
- package/dist/app/components/session/site-origin-link.js +3 -3
- package/dist/app/components/session/subagents.js +8 -8
- package/dist/app/components/session/subscription-account-indicator.js +6 -6
- package/dist/app/components/session-connectors-menu-body.js +4 -3
- package/dist/app/components/session-connectors-menu-body.js.map +1 -1
- package/dist/app/components/settings/row-select.js +7 -5
- package/dist/app/components/toaster.js +3 -2
- package/dist/app/components/transcription-settings.js +11 -9
- package/dist/app/components/ui/destructive-confirm.js +11 -9
- package/dist/app/components/usage/usage-entry.js +5 -5
- package/dist/app/components/window-bar.js +16 -14
- package/dist/app/components/workspace-composer-plus.js +22 -21
- package/dist/app/components/workspace-reach.js +6 -4
- package/dist/app/components/workspace-tenant-boundary.js +5 -4
- package/dist/app/embed/memory-navigation.js +3 -3
- package/dist/app/embed/session-app.js +211 -209
- package/dist/app/lib/actions/actions-provider.js +15 -13
- package/dist/app/lib/agent-capabilities.js +3 -3
- package/dist/app/lib/app-surfaces.js +7 -6
- package/dist/app/lib/archive-session.d.ts +9 -4
- package/dist/app/lib/archive-session.js +4 -2
- package/dist/app/lib/bot-templates.js +3 -2
- package/dist/app/lib/capabilities.js +3 -2
- package/dist/app/lib/codex-usage-query.js +2 -2
- package/dist/app/lib/composer-connectors.js +17 -16
- package/dist/app/lib/console-site.js +2 -2
- package/dist/app/lib/console-text.js +2 -2
- package/dist/app/lib/events.js +9 -9
- package/dist/app/lib/failed-session-copy.js +3 -3
- package/dist/app/lib/inbox.js +4 -2
- package/dist/app/lib/model-access-onboarding.js +3 -3
- package/dist/app/lib/move-chat-to-machine.js +3 -3
- package/dist/app/lib/navigation.js +2 -2
- package/dist/app/lib/session-branch-cache.js +6 -6
- package/dist/app/lib/session-create.js +4 -4
- package/dist/app/lib/session-group-pagination.js +6 -6
- package/dist/app/lib/session-hover-facts.js +13 -11
- package/dist/app/lib/session-model.js +2 -2
- package/dist/app/lib/session-rail.js +3 -3
- package/dist/app/lib/session-rename.js +3 -3
- package/dist/app/lib/session-restart-operation-controller.js +4 -3
- package/dist/app/lib/session-tenancy.js +3 -2
- package/dist/app/lib/session-usage-limit.js +3 -2
- package/dist/app/lib/sessions-group.js +5 -5
- package/dist/app/lib/site-publishing.js +3 -2
- package/dist/app/lib/site-tool-consent-dialog.js +9 -7
- package/dist/app/lib/site-tool-consent-dialog.js.map +1 -1
- package/dist/app/lib/site-tool-consent.js +1 -1
- package/dist/app/lib/subscription-plans.js +3 -2
- package/dist/app/lib/toast.js +2 -1
- package/dist/app/lib/turn-failure-analytics.js +4 -4
- package/dist/app/lib/use-duplicate-site.js +6 -5
- package/dist/app/lib/use-follow-up-repositories.js +6 -5
- package/dist/app/lib/use-workspace-integrations.js +4 -3
- package/dist/app/lib/use-workspace-machines.js +4 -4
- package/dist/app/lib/use-workspace-model-catalog.js +5 -4
- package/dist/app/lib/use-workspace-rigs.js +2 -2
- package/dist/app/lib/workspace-navigation-preference.js +4 -4
- package/dist/app/lib/workspace-scope-context.js +3 -3
- package/dist/app/routes/artifacts.js +67 -66
- package/dist/app/routes/artifacts.js.map +1 -1
- package/dist/app/routes/retained-artifact.js +42 -40
- package/dist/app/routes/retained-artifact.js.map +1 -1
- package/dist/app/routes/session-unavailable.js +8 -7
- package/dist/app/routes/session.js +119 -117
- package/dist/app/routes/sessions-index-hydration.js +5 -5
- package/dist/app/routes/sessions-index.js +104 -102
- package/dist/app/routes/site-view.js +67 -65
- package/dist/app/routes/site-view.js.map +1 -1
- package/dist/artifacts-document.js +4 -4
- package/dist/artifacts-presentation.js +4 -4
- package/dist/artifacts-spreadsheet.js +4 -4
- package/dist/artifacts.js +10 -10
- package/dist/automations.js +17 -15
- package/dist/automations.js.map +1 -1
- package/dist/browser-viewer-TC27OCIP.js +23 -0
- package/dist/chat-interactive-block-RWPQBHVS.js +18 -0
- package/dist/chunk-2BDT3UZQ.js +229 -0
- package/dist/chunk-2CLNIEK4.js +373 -0
- package/dist/chunk-2FSBSCZJ.js +451 -0
- package/dist/chunk-2I7HDP53.js +199 -0
- package/dist/chunk-2INLDVK3.js +15 -0
- package/dist/chunk-2KALVELR.js +126 -0
- package/dist/chunk-2M3J7ZWQ.js +418 -0
- package/dist/chunk-2OP6WLGV.js +708 -0
- package/dist/chunk-2RG7NIAS.js +2936 -0
- package/dist/chunk-2STUPWEL.js +135 -0
- package/dist/chunk-2YUOVM3G.js +271 -0
- package/dist/chunk-2Z3NQNTM.js +3670 -0
- package/dist/chunk-3CPWWGNK.js +920 -0
- package/dist/chunk-3ED2U6XE.js +37 -0
- package/dist/chunk-3GZA4BUW.js +216 -0
- package/dist/chunk-3IK6UYO6.js +1022 -0
- package/dist/chunk-3PZ7JZI2.js +431 -0
- package/dist/chunk-4DVJ6ONS.js +50 -0
- package/dist/chunk-4DVNUCRR.js +2386 -0
- package/dist/chunk-4DVNUCRR.js.map +1 -0
- package/dist/chunk-4E3ZJRTZ.js +41 -0
- package/dist/chunk-4SAWSRAA.js +141 -0
- package/dist/chunk-53AGXXZM.js +307 -0
- package/dist/chunk-54YW6SZZ.js +818 -0
- package/dist/chunk-57AZS3IE.js +2317 -0
- package/dist/chunk-5CPEEAFD.js +143 -0
- package/dist/chunk-5EWSRZ2Y.js +340 -0
- package/dist/chunk-5IE76VCY.js +387 -0
- package/dist/chunk-5NWEKLDZ.js +170 -0
- package/dist/chunk-5O2FCCHZ.js +198 -0
- package/dist/chunk-5QAY6K77.js +399 -0
- package/dist/chunk-5YKW2K6I.js +625 -0
- package/dist/chunk-5YKW2K6I.js.map +1 -0
- package/dist/chunk-6BCXNDEI.js +4116 -0
- package/dist/chunk-6BCXNDEI.js.map +1 -0
- package/dist/chunk-6DK6Z4UN.js +2599 -0
- package/dist/chunk-6DVCC7QS.js +702 -0
- package/dist/chunk-6JHU2UBS.js +2058 -0
- package/dist/chunk-6PZ7OBYU.js +490 -0
- package/dist/chunk-6WD2INST.js +539 -0
- package/dist/chunk-6WD2INST.js.map +1 -0
- package/dist/chunk-6WGRDRMA.js +163 -0
- package/dist/chunk-77WAKEAH.js +186 -0
- package/dist/chunk-7T2ZE3VT.js +5558 -0
- package/dist/chunk-7T2ZE3VT.js.map +1 -0
- package/dist/chunk-7TDO3CUM.js +393 -0
- package/dist/chunk-7TIX2UAR.js +247 -0
- package/dist/chunk-7V5REBCP.js +148 -0
- package/dist/chunk-7VMZGLYI.js +339 -0
- package/dist/chunk-7W37NS3I.js +236 -0
- package/dist/chunk-7X6SDK2C.js +111 -0
- package/dist/chunk-7ZNUHRP5.js +95 -0
- package/dist/chunk-A36PZALD.js +84 -0
- package/dist/chunk-AUI6VA63.js +107 -0
- package/dist/chunk-AW2MQB37.js +24 -0
- package/dist/chunk-AWKES45Y.js +198 -0
- package/dist/chunk-AXHZYXUV.js +132 -0
- package/dist/chunk-BHNSJVBC.js +129 -0
- package/dist/chunk-BJEJFISW.js +50 -0
- package/dist/chunk-BJFH6JI5.js +422 -0
- package/dist/chunk-BMICEQZQ.js +960 -0
- package/dist/chunk-BTLBYBLU.js +29 -0
- package/dist/chunk-BXBDYNRP.js +89 -0
- package/dist/chunk-C372BFOV.js +357 -0
- package/dist/chunk-C43KRXGA.js +234 -0
- package/dist/chunk-C43KRXGA.js.map +1 -0
- package/dist/chunk-CMKGILJK.js +4824 -0
- package/dist/chunk-CRAOSVHC.js +50 -0
- package/dist/chunk-CRU35QQH.js +281 -0
- package/dist/chunk-CUIWCGMA.js +172 -0
- package/dist/chunk-D5TWNFFE.js +38 -0
- package/dist/chunk-DF5EAHDN.js +4461 -0
- package/dist/chunk-DJAXC5OK.js +56 -0
- package/dist/chunk-DXBYWSL5.js +3550 -0
- package/dist/chunk-DXR5PDFP.js +84 -0
- package/dist/chunk-DZWARC4M.js +267 -0
- package/dist/chunk-DZXEDSQI.js +106 -0
- package/dist/chunk-E7XERZWC.js +48 -0
- package/dist/chunk-ECJBYNLJ.js +79 -0
- package/dist/chunk-EDI6SJ2N.js +43 -0
- package/dist/chunk-EWSOC6WF.js +114 -0
- package/dist/chunk-F2OPHAUN.js +103 -0
- package/dist/chunk-F4ISQGGM.js +81 -0
- package/dist/chunk-FO4LYKJL.js +197 -0
- package/dist/chunk-FPXASDG5.js +73 -0
- package/dist/chunk-FSOQDUCG.js +117 -0
- package/dist/chunk-FSOQDUCG.js.map +1 -0
- package/dist/chunk-FVXBNBHO.js +157 -0
- package/dist/chunk-FYWT2O76.js +34 -0
- package/dist/chunk-FYWT2O76.js.map +1 -0
- package/dist/chunk-FZC5N55X.js +981 -0
- package/dist/chunk-GAVYGBFI.js +99 -0
- package/dist/chunk-GFIMOUDT.js +846 -0
- package/dist/chunk-GFIMOUDT.js.map +1 -0
- package/dist/chunk-GKVJIDHF.js +33 -0
- package/dist/chunk-GVN5SZLX.js +212 -0
- package/dist/chunk-H3T7IWNA.js +134 -0
- package/dist/chunk-HAX4LCR5.js +261 -0
- package/dist/chunk-HC4JFZVU.js +121 -0
- package/dist/chunk-HEFPPMBQ.js +581 -0
- package/dist/chunk-HGKTHF2U.js +1356 -0
- package/dist/chunk-HGKTHF2U.js.map +1 -0
- package/dist/chunk-HNLR7Q4Z.js +83 -0
- package/dist/chunk-HSOXMJOT.js +12 -0
- package/dist/chunk-I4MRDSUF.js +281 -0
- package/dist/chunk-I4QEJ62Y.js +202 -0
- package/dist/chunk-I5B5L6Q4.js +56 -0
- package/dist/chunk-I5QZJODL.js +264 -0
- package/dist/chunk-I7ITSXSJ.js +603 -0
- package/dist/chunk-I7XIZRFD.js +390 -0
- package/dist/chunk-IDANQPRH.js +82 -0
- package/dist/chunk-IFB3WJ36.js +212 -0
- package/dist/chunk-IHTAKKTK.js +264 -0
- package/dist/chunk-IKXNLWAL.js +205 -0
- package/dist/chunk-IKXNLWAL.js.map +1 -0
- package/dist/chunk-ILDXWY37.js +173 -0
- package/dist/chunk-IMDQUHBJ.js +570 -0
- package/dist/chunk-IMZCQBOT.js +119 -0
- package/dist/chunk-IXPTECSC.js +403 -0
- package/dist/chunk-J255A3N5.js +71 -0
- package/dist/chunk-J5F5HPPW.js +141 -0
- package/dist/chunk-JDTGRRNU.js +5045 -0
- package/dist/chunk-JDTGRRNU.js.map +1 -0
- package/dist/chunk-JEA3QDX7.js +2469 -0
- package/dist/chunk-JEUPAVYY.js +156 -0
- package/dist/chunk-JKHKLL5W.js +194 -0
- package/dist/chunk-JQL7ZH6C.js +650 -0
- package/dist/chunk-JWB44UGJ.js +57 -0
- package/dist/chunk-JZ4NLCAP.js +333 -0
- package/dist/chunk-K2A5PXQ5.js +412 -0
- package/dist/chunk-K56XV3C3.js +623 -0
- package/dist/chunk-K6GAXXVA.js +23 -0
- package/dist/chunk-KCBMFSMS.js +199 -0
- package/dist/chunk-KF2FV3ZJ.js +268 -0
- package/dist/chunk-KJD65EJP.js +278 -0
- package/dist/chunk-KLEUWIMZ.js +386 -0
- package/dist/chunk-KODELWYT.js +309 -0
- package/dist/chunk-KRDR5RJD.js +83 -0
- package/dist/chunk-KUDGXAF7.js +914 -0
- package/dist/chunk-KY2R73CG.js +171 -0
- package/dist/chunk-KY2R73CG.js.map +1 -0
- package/dist/chunk-KYS77RPN.js +85 -0
- package/dist/chunk-L7YTNTIK.js +368 -0
- package/dist/chunk-LHPNABDH.js +686 -0
- package/dist/chunk-MFROMEKA.js +401 -0
- package/dist/chunk-MIHN76LX.js +2656 -0
- package/dist/chunk-MIYFS2XN.js +42 -0
- package/dist/chunk-MJUCFQMS.js +65 -0
- package/dist/chunk-MM4FNWI4.js +3064 -0
- package/dist/chunk-MNZG4OHU.js +790 -0
- package/dist/chunk-MVW6HNPI.js +250 -0
- package/dist/chunk-MVW6HNPI.js.map +1 -0
- package/dist/chunk-N6AACDUW.js +200 -0
- package/dist/chunk-NC55IFN3.js +781 -0
- package/dist/chunk-NC7PVOEK.js +98 -0
- package/dist/chunk-NCYMNCJO.js +70 -0
- package/dist/chunk-ND2BXV3P.js +259 -0
- package/dist/chunk-NDBTFUO6.js +272 -0
- package/dist/chunk-NDQJZ7HF.js +206 -0
- package/dist/chunk-NGJJJPZZ.js +162 -0
- package/dist/chunk-NJTSNNE7.js +251 -0
- package/dist/chunk-NPGISCU6.js +4159 -0
- package/dist/chunk-NPGISCU6.js.map +1 -0
- package/dist/chunk-NRTE7DNV.js +1270 -0
- package/dist/chunk-NULUNM7H.js +290 -0
- package/dist/chunk-NUNZS36W.js +227 -0
- package/dist/chunk-NW53H5RW.js +2424 -0
- package/dist/chunk-NXCMHIKI.js +263 -0
- package/dist/chunk-O3LKCBP5.js +159 -0
- package/dist/chunk-O4EA4F3W.js +103 -0
- package/dist/chunk-O4EA4F3W.js.map +1 -0
- package/dist/chunk-O4OOG3D6.js +116 -0
- package/dist/chunk-O4OOG3D6.js.map +1 -0
- package/dist/chunk-O6N4ABCA.js +376 -0
- package/dist/chunk-O732GAFC.js +112 -0
- package/dist/chunk-OF4TIKYC.js +690 -0
- package/dist/chunk-OMPVOMPP.js +70 -0
- package/dist/chunk-OPJJSKUK.js +118 -0
- package/dist/chunk-OPWCMA4D.js +196 -0
- package/dist/chunk-ORJPS5VN.js +1193 -0
- package/dist/chunk-OSY5K7L7.js +187 -0
- package/dist/chunk-OV6QJRT4.js +45 -0
- package/dist/chunk-OVKYVZMW.js +108 -0
- package/dist/chunk-OZCBM3UC.js +171 -0
- package/dist/chunk-P3A2EINJ.js +61 -0
- package/dist/chunk-PTAG4PDC.js +27 -0
- package/dist/chunk-PTF5B7TJ.js +298 -0
- package/dist/chunk-Q3DPEYX4.js +848 -0
- package/dist/chunk-Q6CGOPJD.js +215 -0
- package/dist/chunk-Q6CGOPJD.js.map +1 -0
- package/dist/chunk-QB2KMIDP.js +100 -0
- package/dist/chunk-QCSJ4CWE.js +1067 -0
- package/dist/chunk-QIOQ2NPQ.js +414 -0
- package/dist/chunk-QK5EFEUT.js +353 -0
- package/dist/chunk-QPQBLYQJ.js +41 -0
- package/dist/chunk-QPSGCC5D.js +184 -0
- package/dist/chunk-QZAAUQRN.js +474 -0
- package/dist/chunk-QZM6YDJW.js +489 -0
- package/dist/chunk-QZM6YDJW.js.map +1 -0
- package/dist/chunk-RGBI63KJ.js +188 -0
- package/dist/chunk-RLBKLAEY.js +138 -0
- package/dist/chunk-RMFKVOM7.js +304 -0
- package/dist/chunk-ROKQU7WG.js +258 -0
- package/dist/chunk-RPVREAU7.js +251 -0
- package/dist/chunk-RQKLF42C.js +723 -0
- package/dist/chunk-SC6RRD2D.js +38 -0
- package/dist/chunk-SC6RRD2D.js.map +1 -0
- package/dist/chunk-SEO7TICN.js +94 -0
- package/dist/chunk-SHHJCL7X.js +432 -0
- package/dist/chunk-SIRLACNZ.js +114 -0
- package/dist/chunk-SKPHMYAA.js +237 -0
- package/dist/chunk-SODC7T6L.js +1583 -0
- package/dist/chunk-SQJIKMN3.js +366 -0
- package/dist/chunk-SVINDKVW.js +26 -0
- package/dist/chunk-SYCDHPZF.js +335 -0
- package/dist/chunk-T2QX3FDP.js +133 -0
- package/dist/chunk-T3OWFVMS.js +1187 -0
- package/dist/chunk-T6XI5FLY.js +61 -0
- package/dist/chunk-T7OXJZCX.js +62 -0
- package/dist/chunk-TAT5USZN.js +353 -0
- package/dist/chunk-TPQTRNER.js +172 -0
- package/dist/chunk-TUIN4MB7.js +266 -0
- package/dist/chunk-TX3VECZU.js +71 -0
- package/dist/chunk-TXLIEOJX.js +9624 -0
- package/dist/chunk-U3DN4HEY.js +27 -0
- package/dist/chunk-U7XM7CB4.js +191 -0
- package/dist/chunk-UJK53QFL.js +140 -0
- package/dist/chunk-UMTXA2TH.js +319 -0
- package/dist/chunk-UPDSXFK5.js +199 -0
- package/dist/chunk-UTIAXH52.js +269 -0
- package/dist/chunk-UVN5TMHU.js +1184 -0
- package/dist/chunk-V4Z4B2E3.js +52 -0
- package/dist/chunk-V4Z4B2E3.js.map +1 -0
- package/dist/chunk-VGYXW3VG.js +246 -0
- package/dist/chunk-VS7AHPCZ.js +255 -0
- package/dist/chunk-VTTAJOQ7.js +121 -0
- package/dist/chunk-VWPOLUAO.js +99 -0
- package/dist/chunk-X3MWB2QU.js +3851 -0
- package/dist/chunk-X6KAJI3V.js +211 -0
- package/dist/chunk-XBLRHV5R.js +50 -0
- package/dist/chunk-XDFP2LMW.js +605 -0
- package/dist/chunk-XEQMZB3C.js +525 -0
- package/dist/chunk-XEYLT5VA.js +223 -0
- package/dist/chunk-XHIQ5I6N.js +918 -0
- package/dist/chunk-XLH7QY2R.js +378 -0
- package/dist/chunk-XWFAMUZQ.js +113 -0
- package/dist/chunk-Y4BB2KS2.js +294 -0
- package/dist/chunk-Y4BB2KS2.js.map +1 -0
- package/dist/chunk-Y4OBB2VN.js +84 -0
- package/dist/chunk-YCVD6CI3.js +234 -0
- package/dist/chunk-YENLNISG.js +270 -0
- package/dist/chunk-YIRVLKAX.js +351 -0
- package/dist/chunk-YL73CVNK.js +390 -0
- package/dist/chunk-YLS6QE5G.js +288 -0
- package/dist/chunk-YNF2OC54.js +366 -0
- package/dist/chunk-YNF2OC54.js.map +1 -0
- package/dist/chunk-YPWU5KPE.js +147 -0
- package/dist/chunk-YQXTDZSU.js +2984 -0
- package/dist/chunk-YSJEAAOL.js +178 -0
- package/dist/chunk-YWIFM7D7.js +499 -0
- package/dist/chunk-YWVI6ZMK.js +103 -0
- package/dist/chunk-Z4FMAFNH.js +847 -0
- package/dist/chunk-Z654FWNU.js +136 -0
- package/dist/chunk-Z7Y523PS.js +130 -0
- package/dist/chunk-ZD67RM6G.js +60 -0
- package/dist/chunk-ZEG4VPBL.js +187 -0
- package/dist/chunk-ZHDFQITM.js +283 -0
- package/dist/chunk-ZHDFQITM.js.map +1 -0
- package/dist/chunk-ZLYCOBHW.js +75 -0
- package/dist/chunk-ZNJ5MTXV.js +89 -0
- package/dist/chunk-ZSGY3H53.js +155 -0
- package/dist/chunk-ZTPXACWB.js +1788 -0
- package/dist/chunk-ZUA3JMI6.js +107 -0
- package/dist/chunk-ZYAZUPPV.js +559 -0
- package/dist/composer.js +8 -8
- package/dist/computer-viewer-TDDO25AV.js +21 -0
- package/dist/connect.js +12 -12
- package/dist/desktop-dictation.js +12 -10
- package/dist/desktop-dictation.js.map +1 -1
- package/dist/desktop.js +2 -2
- package/dist/editor.js +2 -2
- package/dist/embedded-new-voice-2G3VLPVQ.js +24 -0
- package/dist/embedded-voice-T5IWOWGD.js +24 -0
- package/dist/fleet-decision-row-WM64KXP3.js +361 -0
- package/dist/in-chat-connect-model.js +5 -5
- package/dist/index.js +51 -51
- package/dist/interaction.js +5 -5
- package/dist/machines.js +3 -3
- package/dist/meetings-recorder.js +1 -1
- package/dist/meetings.js +40 -32
- package/dist/meetings.js.map +1 -1
- package/dist/messages/en.d.ts +3 -0
- package/dist/messages.js +1 -1
- package/dist/model-policy-picker-menu-SMC6J6QN.js +22 -0
- package/dist/payment-page-card-G4U63KUV.js +223 -0
- package/dist/platform-activity-row-BUZGZAKZ.js +128 -0
- package/dist/queue-surface-implementation-4KUZ4PJV.js +908 -0
- package/dist/realtime.js +4 -4
- package/dist/recorder-host-WF2RRR56.js +69 -0
- package/dist/recorder-host-WF2RRR56.js.map +1 -0
- package/dist/recordings.js +3 -3
- package/dist/sandbox-files-ESDMOFSD.js +27 -0
- package/dist/session-app.js +211 -209
- package/dist/session-connect-cards-Q53KMMYY.js +25 -0
- package/dist/session-list-model.js +2 -2
- package/dist/session-realtime-CF3I35WJ.js +30 -0
- package/dist/session-realtime.js +2 -2
- package/dist/session-ui.js +33 -31
- package/dist/session.js +5 -5
- package/dist/sites.js +2 -2
- package/dist/terminal.js +2 -2
- package/dist/this-computer.js +3 -3
- package/dist/timeline-annotation-markers-CJK4RYZ4.js +157 -0
- package/dist/timeline-annotation-selection-67GF5H26.js +208 -0
- package/dist/timeline-annotations-dialog-ONJPQDJQ.js +283 -0
- package/dist/ui/access-list.js +11 -9
- package/dist/ui/access-list.js.map +1 -1
- package/dist/ui/api-error.d.ts +6 -3
- package/dist/ui/api-error.js +2 -1
- package/dist/ui/cadence-picker.js +6 -4
- package/dist/ui/choice-cards.js +5 -3
- package/dist/ui/confirm-dialog.js +2 -2
- package/dist/ui/copy-field.js +5 -3
- package/dist/ui/detail-page.js +2 -2
- package/dist/ui/detail-sheet.js +2 -2
- package/dist/ui/diff-view.js +4 -3
- package/dist/ui/disclosure.js +3 -3
- package/dist/ui/email-chips-input.js +5 -3
- package/dist/ui/error-message.js +2 -1
- package/dist/ui/error-reference.d.ts +15 -0
- package/dist/ui/error-text.d.ts +10 -0
- package/dist/ui/error-text.js +9 -0
- package/dist/ui/error-text.js.map +1 -0
- package/dist/ui/field.js +4 -2
- package/dist/ui/flush-form-page.js +8 -6
- package/dist/ui/form-dialog.js +7 -5
- package/dist/ui/list-row.js +3 -3
- package/dist/ui/load-failure.js +3 -2
- package/dist/ui/load-failure.js.map +1 -1
- package/dist/ui/notice.js +3 -1
- package/dist/ui/relative-time.js +2 -2
- package/dist/ui/revision-history.js +9 -7
- package/dist/ui/revision-history.js.map +1 -1
- package/dist/ui/role-select.js +10 -8
- package/dist/ui/segmented-control.js +4 -2
- package/dist/ui/select-menu.js +5 -3
- package/dist/ui/setting-row.js +3 -1
- package/dist/ui/switch.js +4 -2
- package/dist/ui/usage-meter.js +3 -3
- package/dist/ui/word-list-row.js +4 -2
- package/dist/usage.js +2 -2
- package/dist/workbench.js +4 -4
- package/package.json +5 -6
- package/src/app/app-state.tsx +126 -14
- package/src/app/components/artifacts/site-data.tsx +2 -2
- package/src/app/components/artifacts/site-settings.tsx +2 -2
- package/src/app/components/rail/session-list.tsx +7 -8
- package/src/app/components/rail/session-shell.tsx +3 -3
- package/src/app/components/repository-picker.tsx +8 -1
- package/src/app/components/session/model-context-inspector.tsx +2 -1
- package/src/app/components/session/session-admin-access.tsx +2 -2
- package/src/app/lib/actions/chat-operations.ts +4 -4
- package/src/app/lib/archive-session.test.tsx +265 -2
- package/src/app/lib/archive-session.tsx +175 -9
- package/src/app/lib/copy-link.ts +2 -2
- package/src/app/lib/inbox.tsx +2 -2
- package/src/app/lib/session-failure-toasts.ts +3 -2
- package/src/app/lib/toast.test.tsx +215 -0
- package/src/app/lib/toast.tsx +67 -2
- package/src/app/personal-github-reconnect.test.tsx +356 -0
- package/src/app/routes/artifacts.tsx +1 -2
- package/src/components/tool-action-review.tsx +14 -1
- package/src/meetings/delete-meeting-dialog.tsx +2 -1
- package/src/meetings/meeting-ask.tsx +2 -1
- package/src/meetings/meeting-detail-page.tsx +2 -1
- package/src/meetings/meeting-notes.tsx +2 -1
- package/src/meetings/meeting-settings.tsx +4 -1
- package/src/meetings/meeting-transcript.tsx +4 -1
- package/src/meetings/recorder-context.tsx +10 -0
- package/src/meetings/recorder-host.test.tsx +60 -2
- package/src/meetings/recorder-host.tsx +16 -3
- package/src/meetings/recorder-panel.tsx +2 -1
- package/src/meetings/recorder-workspace.test.tsx +26 -1
- package/src/messages/en.ts +6 -0
- package/src/ui/api-error.test.ts +29 -5
- package/src/ui/api-error.tsx +10 -4
- package/src/ui/error-message.tsx +8 -0
- package/src/ui/error-reference.test.ts +54 -0
- package/src/ui/error-reference.ts +51 -0
- package/src/ui/error-text.test.tsx +66 -0
- package/src/ui/error-text.tsx +49 -0
- package/src/ui/field.tsx +4 -1
- package/src/ui/notice.tsx +7 -2
- package/src/ui/setting-row.tsx +4 -1
- package/styles/app.css +12 -0
- package/styles/compiled.css +9 -0
- package/dist/browser-viewer-NOP5EAUO.js +0 -23
- package/dist/chat-interactive-block-G7O44JHR.js +0 -18
- package/dist/chunk-26RWVLRD.js +0 -135
- package/dist/chunk-2AHTY7OT.js +0 -247
- package/dist/chunk-2GDNWKSC.js +0 -3670
- package/dist/chunk-2JENKGCE.js +0 -339
- package/dist/chunk-2KYQC4T5.js +0 -155
- package/dist/chunk-2RREGDQH.js +0 -708
- package/dist/chunk-2T7DX6KR.js +0 -353
- package/dist/chunk-2VB2O4FQ.js +0 -920
- package/dist/chunk-2VTTKH23.js +0 -94
- package/dist/chunk-2XNG2KNT.js +0 -172
- package/dist/chunk-2YC6JQRO.js +0 -399
- package/dist/chunk-2ZVRJRXC.js +0 -27
- package/dist/chunk-35737UT4.js +0 -162
- package/dist/chunk-366XZ4PM.js +0 -41
- package/dist/chunk-36MIDGAH.js +0 -199
- package/dist/chunk-3FD76LXM.js +0 -212
- package/dist/chunk-3OVIXY4O.js +0 -213
- package/dist/chunk-3OVIXY4O.js.map +0 -1
- package/dist/chunk-3QNRBEYH.js +0 -432
- package/dist/chunk-3QX55WLC.js +0 -15
- package/dist/chunk-3USJPT2S.js +0 -1022
- package/dist/chunk-42CMQ5VR.js +0 -251
- package/dist/chunk-4LPOWQJY.js +0 -42
- package/dist/chunk-4NBTZRKT.js +0 -79
- package/dist/chunk-4OXI6HCV.js +0 -118
- package/dist/chunk-4SZZAFYQ.js +0 -2317
- package/dist/chunk-4TQL3WP2.js +0 -140
- package/dist/chunk-4Y6BK7IU.js +0 -196
- package/dist/chunk-4YD7YZC5.js +0 -373
- package/dist/chunk-5DTST3TP.js +0 -81
- package/dist/chunk-5FH5LQVS.js +0 -130
- package/dist/chunk-5KWMYPJV.js +0 -847
- package/dist/chunk-5MUJDC6C.js +0 -84
- package/dist/chunk-5QM2WPKV.js +0 -41
- package/dist/chunk-5WUN7XPD.js +0 -1184
- package/dist/chunk-64PO2WXU.js +0 -1067
- package/dist/chunk-6AHATAAY.js +0 -431
- package/dist/chunk-6ED2YWBT.js +0 -56
- package/dist/chunk-6GXVYAGR.js +0 -170
- package/dist/chunk-6H4SJBPE.js +0 -85
- package/dist/chunk-6MT3HHUB.js +0 -84
- package/dist/chunk-6UHCBH4G.js +0 -198
- package/dist/chunk-6WLX3NR3.js +0 -198
- package/dist/chunk-73NXYYWE.js +0 -112
- package/dist/chunk-76ERNKIZ.js +0 -603
- package/dist/chunk-776QZ573.js +0 -57
- package/dist/chunk-7BYWOFVH.js +0 -171
- package/dist/chunk-7O5CGGIQ.js +0 -108
- package/dist/chunk-7QOHRZ67.js +0 -251
- package/dist/chunk-7WIDB4PL.js +0 -2058
- package/dist/chunk-7WKP3DYJ.js +0 -37
- package/dist/chunk-7XOVTPDI.js +0 -227
- package/dist/chunk-AB5MBIXY.js +0 -281
- package/dist/chunk-ADNMXBCX.js +0 -1193
- package/dist/chunk-AFBJTUFK.js +0 -202
- package/dist/chunk-ALVRWCXE.js +0 -61
- package/dist/chunk-AOHU6O3M.js +0 -247
- package/dist/chunk-AOHU6O3M.js.map +0 -1
- package/dist/chunk-APW4T4SW.js +0 -270
- package/dist/chunk-AXBSYWKX.js +0 -2656
- package/dist/chunk-B2I5ZW35.js +0 -422
- package/dist/chunk-B3LMRTRF.js +0 -223
- package/dist/chunk-BE2XENG2.js +0 -292
- package/dist/chunk-BE2XENG2.js.map +0 -1
- package/dist/chunk-BF4SADKX.js +0 -29
- package/dist/chunk-BKP43KK4.js +0 -1788
- package/dist/chunk-BM3NEZ6X.js +0 -781
- package/dist/chunk-BT3BAGB5.js +0 -216
- package/dist/chunk-BTSYDIVJ.js +0 -357
- package/dist/chunk-BUBNGKWG.js +0 -70
- package/dist/chunk-BVUJV5WR.js +0 -126
- package/dist/chunk-BZO5ZMUP.js +0 -27
- package/dist/chunk-C3HUF3M2.js +0 -157
- package/dist/chunk-C5QCAOES.js +0 -264
- package/dist/chunk-CGK6ALQU.js +0 -159
- package/dist/chunk-CPYGO76Q.js +0 -335
- package/dist/chunk-CQH4FWYA.js +0 -490
- package/dist/chunk-CZP5QXNB.js +0 -234
- package/dist/chunk-D2TOWEYH.js +0 -266
- package/dist/chunk-D6L4GHRH.js +0 -340
- package/dist/chunk-DKT3N37I.js +0 -50
- package/dist/chunk-DMMJIFKA.js +0 -84
- package/dist/chunk-DO74DQC7.js +0 -26
- package/dist/chunk-DOFJZ2JU.js +0 -83
- package/dist/chunk-DSXVY5WZ.js +0 -119
- package/dist/chunk-E337C2VK.js +0 -82
- package/dist/chunk-E6NRSRBE.js +0 -114
- package/dist/chunk-E6SQKHAU.js +0 -114
- package/dist/chunk-E7UIVD7F.js +0 -236
- package/dist/chunk-EGBII4CP.js +0 -229
- package/dist/chunk-EILSAQVJ.js +0 -200
- package/dist/chunk-ELL6HSYR.js +0 -307
- package/dist/chunk-EUBGLFFR.js +0 -73
- package/dist/chunk-EW6RNWSH.js +0 -212
- package/dist/chunk-EYUT5Y6V.js +0 -2599
- package/dist/chunk-F7U3QPZ3.js +0 -304
- package/dist/chunk-FBTJKSTM.js +0 -1270
- package/dist/chunk-FC2FTSK3.js +0 -2424
- package/dist/chunk-FOGNA3BU.js +0 -148
- package/dist/chunk-FQFKHNC7.js +0 -650
- package/dist/chunk-FTCHM755.js +0 -50
- package/dist/chunk-FXSHP4JZ.js +0 -3550
- package/dist/chunk-G6ZZC543.js +0 -818
- package/dist/chunk-G7FU6PUA.js +0 -100
- package/dist/chunk-GA4YEAMX.js +0 -3851
- package/dist/chunk-GE33BGB7.js +0 -12
- package/dist/chunk-GQ67HSJY.js +0 -570
- package/dist/chunk-GXXZ3WAK.js +0 -106
- package/dist/chunk-H2TCRX3H.js +0 -237
- package/dist/chunk-HLL4PBO7.js +0 -60
- package/dist/chunk-HLOEPV5C.js +0 -259
- package/dist/chunk-HUAGBS4O.js +0 -56
- package/dist/chunk-I36GSRUJ.js +0 -211
- package/dist/chunk-I6VBHT7S.js +0 -261
- package/dist/chunk-ICNNNOXE.js +0 -333
- package/dist/chunk-ICX64J4U.js +0 -172
- package/dist/chunk-ID36Y46W.js +0 -5046
- package/dist/chunk-ID36Y46W.js.map +0 -1
- package/dist/chunk-IGVVXLKJ.js +0 -559
- package/dist/chunk-IKJLSBUI.js +0 -2984
- package/dist/chunk-IKMUFDVS.js +0 -50
- package/dist/chunk-IKUNOX7F.js +0 -255
- package/dist/chunk-ILKDYBON.js +0 -288
- package/dist/chunk-IVYJX3OY.js +0 -187
- package/dist/chunk-JCY4CMDH.js +0 -107
- package/dist/chunk-JJZPLGIP.js +0 -474
- package/dist/chunk-JW33RV4V.js +0 -143
- package/dist/chunk-JWPA6ZPZ.js +0 -351
- package/dist/chunk-JZ4QXS6D.js +0 -50
- package/dist/chunk-K42OUZQ3.js +0 -386
- package/dist/chunk-K5TOVX5A.js +0 -206
- package/dist/chunk-K63HGHZX.js +0 -99
- package/dist/chunk-K6R5T44I.js +0 -75
- package/dist/chunk-KHJ5PXFM.js +0 -914
- package/dist/chunk-KJZRQ55O.js +0 -2319
- package/dist/chunk-KJZRQ55O.js.map +0 -1
- package/dist/chunk-KKI55ZMW.js +0 -65
- package/dist/chunk-KRPLAAFP.js +0 -199
- package/dist/chunk-KVFEZDBO.js +0 -134
- package/dist/chunk-L4I665WK.js +0 -45
- package/dist/chunk-L4OF77LE.js +0 -110
- package/dist/chunk-L4OF77LE.js.map +0 -1
- package/dist/chunk-LA5T52RM.js +0 -70
- package/dist/chunk-LM2W5YAT.js +0 -401
- package/dist/chunk-LQ62ECE6.js +0 -390
- package/dist/chunk-LQDUHU3Y.js +0 -71
- package/dist/chunk-LRJIYTZW.js +0 -4157
- package/dist/chunk-LRJIYTZW.js.map +0 -1
- package/dist/chunk-LRN6GYAZ.js +0 -138
- package/dist/chunk-M4SDVTKJ.js +0 -790
- package/dist/chunk-MA6O7CM6.js +0 -99
- package/dist/chunk-MBIBB6GI.js +0 -197
- package/dist/chunk-MF3ZFB4H.js +0 -199
- package/dist/chunk-MJJGJMYJ.js +0 -98
- package/dist/chunk-MLJADQFI.js +0 -4824
- package/dist/chunk-MQG7RV3B.js +0 -62
- package/dist/chunk-MTTGSQA5.js +0 -186
- package/dist/chunk-MW7Y3T55.js +0 -525
- package/dist/chunk-MYUFMVCH.js +0 -121
- package/dist/chunk-N3OARGH2.js +0 -61
- package/dist/chunk-NB2HMRT2.js +0 -353
- package/dist/chunk-NFDFYWMV.js +0 -141
- package/dist/chunk-NWGNFN3N.js +0 -1187
- package/dist/chunk-NWJRPDIO.js +0 -840
- package/dist/chunk-NWJRPDIO.js.map +0 -1
- package/dist/chunk-NXWBBZJV.js +0 -267
- package/dist/chunk-NY2QWROL.js +0 -71
- package/dist/chunk-O2IOPP3R.js +0 -848
- package/dist/chunk-O2UWH5RG.js +0 -141
- package/dist/chunk-O5YWDLYF.js +0 -393
- package/dist/chunk-OBMCZO7E.js +0 -121
- package/dist/chunk-OD3DCCCB.js +0 -132
- package/dist/chunk-OMH7R6I3.js +0 -390
- package/dist/chunk-OSA5EQG5.js +0 -113
- package/dist/chunk-OSJ3MUTZ.js +0 -2936
- package/dist/chunk-OWAYJ2OV.js +0 -368
- package/dist/chunk-OYXBFSGK.js +0 -269
- package/dist/chunk-PC2EBA5G.js +0 -4116
- package/dist/chunk-PC2EBA5G.js.map +0 -1
- package/dist/chunk-PC2MVXIP.js +0 -363
- package/dist/chunk-PC2MVXIP.js.map +0 -1
- package/dist/chunk-PENGLDR5.js +0 -309
- package/dist/chunk-PSMAWRPL.js +0 -191
- package/dist/chunk-PW4IMTYR.js +0 -702
- package/dist/chunk-PW54V7T5.js +0 -387
- package/dist/chunk-Q2EXYSMO.js +0 -24
- package/dist/chunk-Q2XJK5I4.js +0 -51
- package/dist/chunk-Q2XJK5I4.js.map +0 -1
- package/dist/chunk-Q4EFRI6X.js +0 -258
- package/dist/chunk-Q52CXW6C.js +0 -48
- package/dist/chunk-Q6XQ2R37.js +0 -184
- package/dist/chunk-QAJ53XBW.js +0 -23
- package/dist/chunk-QDTKECT4.js +0 -129
- package/dist/chunk-QE3ZFGI3.js +0 -43
- package/dist/chunk-QHHSUR2Y.js +0 -298
- package/dist/chunk-QHNVNR7B.js +0 -173
- package/dist/chunk-QIK2Q6N5.js +0 -376
- package/dist/chunk-QWL4L366.js +0 -38
- package/dist/chunk-R3J2PTVQ.js +0 -690
- package/dist/chunk-RBRX5ZS3.js +0 -319
- package/dist/chunk-REX6JIC7.js +0 -33
- package/dist/chunk-RGZ7EEC3.js +0 -537
- package/dist/chunk-RGZ7EEC3.js.map +0 -1
- package/dist/chunk-RIPS7GFR.js +0 -960
- package/dist/chunk-RTBZNFNV.js +0 -1354
- package/dist/chunk-RTBZNFNV.js.map +0 -1
- package/dist/chunk-SKMNW4SW.js +0 -187
- package/dist/chunk-SRFARKXC.js +0 -623
- package/dist/chunk-SWIHWCTW.js +0 -4461
- package/dist/chunk-TA5CFTO4.js +0 -103
- package/dist/chunk-TF4ZVJLI.js +0 -156
- package/dist/chunk-TG7DADJR.js +0 -9624
- package/dist/chunk-TI4R2ZD5.js +0 -623
- package/dist/chunk-TI4R2ZD5.js.map +0 -1
- package/dist/chunk-TNKWOUWP.js +0 -412
- package/dist/chunk-TNUSPXPW.js +0 -5555
- package/dist/chunk-TNUSPXPW.js.map +0 -1
- package/dist/chunk-TNYFHKVV.js +0 -366
- package/dist/chunk-TPMZBOFH.js +0 -178
- package/dist/chunk-TW3LKRJF.js +0 -263
- package/dist/chunk-TZAO65I4.js +0 -83
- package/dist/chunk-U5EFEMYU.js +0 -89
- package/dist/chunk-U6M4LS3M.js +0 -378
- package/dist/chunk-UI4HI5QK.js +0 -918
- package/dist/chunk-UJDOWCQ3.js +0 -272
- package/dist/chunk-UJUQ2QOX.js +0 -581
- package/dist/chunk-UQ3IM6FY.js +0 -133
- package/dist/chunk-UYE47LO6.js +0 -246
- package/dist/chunk-VADHIT26.js +0 -89
- package/dist/chunk-VFQ3H6CO.js +0 -163
- package/dist/chunk-VGUN6VB2.js +0 -188
- package/dist/chunk-VGWWEVSD.js +0 -723
- package/dist/chunk-VIEFJ2DM.js +0 -2469
- package/dist/chunk-VLXM36VS.js +0 -268
- package/dist/chunk-W3BFRR2G.js +0 -499
- package/dist/chunk-W5MPXR3A.js +0 -981
- package/dist/chunk-W5OWKVZG.js +0 -136
- package/dist/chunk-W6FRORMX.js +0 -486
- package/dist/chunk-W6FRORMX.js.map +0 -1
- package/dist/chunk-W7XROSZO.js +0 -232
- package/dist/chunk-W7XROSZO.js.map +0 -1
- package/dist/chunk-WEZ5PXZP.js +0 -403
- package/dist/chunk-WHWUWN2X.js +0 -197
- package/dist/chunk-WHWUWN2X.js.map +0 -1
- package/dist/chunk-WLEDGIVS.js +0 -114
- package/dist/chunk-WLEDGIVS.js.map +0 -1
- package/dist/chunk-WNDAKLHG.js +0 -281
- package/dist/chunk-WTJ4PLMU.js +0 -103
- package/dist/chunk-WV2KPJUW.js +0 -107
- package/dist/chunk-X3VY5EGY.js +0 -277
- package/dist/chunk-X3VY5EGY.js.map +0 -1
- package/dist/chunk-XDBYWVCW.js +0 -418
- package/dist/chunk-XF7MA4U5.js +0 -36
- package/dist/chunk-XF7MA4U5.js.map +0 -1
- package/dist/chunk-XOSQP3YA.js +0 -605
- package/dist/chunk-XYBV4ZJQ.js +0 -271
- package/dist/chunk-YBKVGLQR.js +0 -147
- package/dist/chunk-YDCUBUWH.js +0 -1583
- package/dist/chunk-YG6NARQY.js +0 -51
- package/dist/chunk-YG6NARQY.js.map +0 -1
- package/dist/chunk-YSVD5HI4.js +0 -278
- package/dist/chunk-YT3WGNG6.js +0 -290
- package/dist/chunk-YYICQDK4.js +0 -414
- package/dist/chunk-YYLMZLI6.js +0 -686
- package/dist/chunk-ZAMTKG5U.js +0 -95
- package/dist/chunk-ZDLYSXKN.js +0 -111
- package/dist/chunk-ZG447FSS.js +0 -194
- package/dist/chunk-ZIT5KD4Q.js +0 -264
- package/dist/chunk-ZUDOVDKR.js +0 -3064
- package/dist/chunk-ZW2ECJ3A.js +0 -451
- package/dist/computer-viewer-LPZ763KF.js +0 -21
- package/dist/embedded-new-voice-YVMKSLKJ.js +0 -24
- package/dist/embedded-voice-BJPQFXSU.js +0 -24
- package/dist/fleet-decision-row-AA4H5CDT.js +0 -361
- package/dist/model-policy-picker-menu-HSMWVO4P.js +0 -22
- package/dist/payment-page-card-3LTSFJGN.js +0 -223
- package/dist/platform-activity-row-5VYV6TX4.js +0 -128
- package/dist/queue-surface-implementation-NXHZUKD2.js +0 -908
- package/dist/recorder-host-ZKRWTDBM.js +0 -57
- package/dist/recorder-host-ZKRWTDBM.js.map +0 -1
- package/dist/sandbox-files-YCMLQUFU.js +0 -27
- package/dist/session-connect-cards-KSQLMRM5.js +0 -25
- package/dist/session-realtime-ZR6JLG3Y.js +0 -30
- package/dist/timeline-annotation-markers-YAHDPWVG.js +0 -157
- package/dist/timeline-annotation-selection-KHXNCEJP.js +0 -208
- package/dist/timeline-annotations-dialog-Y4XD3N7B.js +0 -283
- /package/dist/{browser-viewer-NOP5EAUO.js.map → browser-viewer-TC27OCIP.js.map} +0 -0
- /package/dist/{chat-interactive-block-G7O44JHR.js.map → chat-interactive-block-RWPQBHVS.js.map} +0 -0
- /package/dist/{chunk-EGBII4CP.js.map → chunk-2BDT3UZQ.js.map} +0 -0
- /package/dist/{chunk-4YD7YZC5.js.map → chunk-2CLNIEK4.js.map} +0 -0
- /package/dist/{chunk-ZW2ECJ3A.js.map → chunk-2FSBSCZJ.js.map} +0 -0
- /package/dist/{chunk-KRPLAAFP.js.map → chunk-2I7HDP53.js.map} +0 -0
- /package/dist/{chunk-3QX55WLC.js.map → chunk-2INLDVK3.js.map} +0 -0
- /package/dist/{chunk-BVUJV5WR.js.map → chunk-2KALVELR.js.map} +0 -0
- /package/dist/{chunk-XDBYWVCW.js.map → chunk-2M3J7ZWQ.js.map} +0 -0
- /package/dist/{chunk-2RREGDQH.js.map → chunk-2OP6WLGV.js.map} +0 -0
- /package/dist/{chunk-OSJ3MUTZ.js.map → chunk-2RG7NIAS.js.map} +0 -0
- /package/dist/{chunk-26RWVLRD.js.map → chunk-2STUPWEL.js.map} +0 -0
- /package/dist/{chunk-XYBV4ZJQ.js.map → chunk-2YUOVM3G.js.map} +0 -0
- /package/dist/{chunk-2GDNWKSC.js.map → chunk-2Z3NQNTM.js.map} +0 -0
- /package/dist/{chunk-2VB2O4FQ.js.map → chunk-3CPWWGNK.js.map} +0 -0
- /package/dist/{chunk-7WKP3DYJ.js.map → chunk-3ED2U6XE.js.map} +0 -0
- /package/dist/{chunk-BT3BAGB5.js.map → chunk-3GZA4BUW.js.map} +0 -0
- /package/dist/{chunk-3USJPT2S.js.map → chunk-3IK6UYO6.js.map} +0 -0
- /package/dist/{chunk-6AHATAAY.js.map → chunk-3PZ7JZI2.js.map} +0 -0
- /package/dist/{chunk-JZ4QXS6D.js.map → chunk-4DVJ6ONS.js.map} +0 -0
- /package/dist/{chunk-5QM2WPKV.js.map → chunk-4E3ZJRTZ.js.map} +0 -0
- /package/dist/{chunk-NFDFYWMV.js.map → chunk-4SAWSRAA.js.map} +0 -0
- /package/dist/{chunk-ELL6HSYR.js.map → chunk-53AGXXZM.js.map} +0 -0
- /package/dist/{chunk-G6ZZC543.js.map → chunk-54YW6SZZ.js.map} +0 -0
- /package/dist/{chunk-4SZZAFYQ.js.map → chunk-57AZS3IE.js.map} +0 -0
- /package/dist/{chunk-JW33RV4V.js.map → chunk-5CPEEAFD.js.map} +0 -0
- /package/dist/{chunk-D6L4GHRH.js.map → chunk-5EWSRZ2Y.js.map} +0 -0
- /package/dist/{chunk-PW54V7T5.js.map → chunk-5IE76VCY.js.map} +0 -0
- /package/dist/{chunk-6GXVYAGR.js.map → chunk-5NWEKLDZ.js.map} +0 -0
- /package/dist/{chunk-6UHCBH4G.js.map → chunk-5O2FCCHZ.js.map} +0 -0
- /package/dist/{chunk-2YC6JQRO.js.map → chunk-5QAY6K77.js.map} +0 -0
- /package/dist/{chunk-EYUT5Y6V.js.map → chunk-6DK6Z4UN.js.map} +0 -0
- /package/dist/{chunk-PW4IMTYR.js.map → chunk-6DVCC7QS.js.map} +0 -0
- /package/dist/{chunk-7WIDB4PL.js.map → chunk-6JHU2UBS.js.map} +0 -0
- /package/dist/{chunk-CQH4FWYA.js.map → chunk-6PZ7OBYU.js.map} +0 -0
- /package/dist/{chunk-VFQ3H6CO.js.map → chunk-6WGRDRMA.js.map} +0 -0
- /package/dist/{chunk-MTTGSQA5.js.map → chunk-77WAKEAH.js.map} +0 -0
- /package/dist/{chunk-O5YWDLYF.js.map → chunk-7TDO3CUM.js.map} +0 -0
- /package/dist/{chunk-2AHTY7OT.js.map → chunk-7TIX2UAR.js.map} +0 -0
- /package/dist/{chunk-FOGNA3BU.js.map → chunk-7V5REBCP.js.map} +0 -0
- /package/dist/{chunk-2JENKGCE.js.map → chunk-7VMZGLYI.js.map} +0 -0
- /package/dist/{chunk-E7UIVD7F.js.map → chunk-7W37NS3I.js.map} +0 -0
- /package/dist/{chunk-ZDLYSXKN.js.map → chunk-7X6SDK2C.js.map} +0 -0
- /package/dist/{chunk-ZAMTKG5U.js.map → chunk-7ZNUHRP5.js.map} +0 -0
- /package/dist/{chunk-DMMJIFKA.js.map → chunk-A36PZALD.js.map} +0 -0
- /package/dist/{chunk-WV2KPJUW.js.map → chunk-AUI6VA63.js.map} +0 -0
- /package/dist/{chunk-Q2EXYSMO.js.map → chunk-AW2MQB37.js.map} +0 -0
- /package/dist/{chunk-6WLX3NR3.js.map → chunk-AWKES45Y.js.map} +0 -0
- /package/dist/{chunk-OD3DCCCB.js.map → chunk-AXHZYXUV.js.map} +0 -0
- /package/dist/{chunk-QDTKECT4.js.map → chunk-BHNSJVBC.js.map} +0 -0
- /package/dist/{chunk-FTCHM755.js.map → chunk-BJEJFISW.js.map} +0 -0
- /package/dist/{chunk-B2I5ZW35.js.map → chunk-BJFH6JI5.js.map} +0 -0
- /package/dist/{chunk-RIPS7GFR.js.map → chunk-BMICEQZQ.js.map} +0 -0
- /package/dist/{chunk-BF4SADKX.js.map → chunk-BTLBYBLU.js.map} +0 -0
- /package/dist/{chunk-U5EFEMYU.js.map → chunk-BXBDYNRP.js.map} +0 -0
- /package/dist/{chunk-BTSYDIVJ.js.map → chunk-C372BFOV.js.map} +0 -0
- /package/dist/{chunk-MLJADQFI.js.map → chunk-CMKGILJK.js.map} +0 -0
- /package/dist/{chunk-DKT3N37I.js.map → chunk-CRAOSVHC.js.map} +0 -0
- /package/dist/{chunk-WNDAKLHG.js.map → chunk-CRU35QQH.js.map} +0 -0
- /package/dist/{chunk-2XNG2KNT.js.map → chunk-CUIWCGMA.js.map} +0 -0
- /package/dist/{chunk-QWL4L366.js.map → chunk-D5TWNFFE.js.map} +0 -0
- /package/dist/{chunk-SWIHWCTW.js.map → chunk-DF5EAHDN.js.map} +0 -0
- /package/dist/{chunk-HUAGBS4O.js.map → chunk-DJAXC5OK.js.map} +0 -0
- /package/dist/{chunk-FXSHP4JZ.js.map → chunk-DXBYWSL5.js.map} +0 -0
- /package/dist/{chunk-5MUJDC6C.js.map → chunk-DXR5PDFP.js.map} +0 -0
- /package/dist/{chunk-NXWBBZJV.js.map → chunk-DZWARC4M.js.map} +0 -0
- /package/dist/{chunk-GXXZ3WAK.js.map → chunk-DZXEDSQI.js.map} +0 -0
- /package/dist/{chunk-Q52CXW6C.js.map → chunk-E7XERZWC.js.map} +0 -0
- /package/dist/{chunk-4NBTZRKT.js.map → chunk-ECJBYNLJ.js.map} +0 -0
- /package/dist/{chunk-QE3ZFGI3.js.map → chunk-EDI6SJ2N.js.map} +0 -0
- /package/dist/{chunk-E6NRSRBE.js.map → chunk-EWSOC6WF.js.map} +0 -0
- /package/dist/{chunk-TA5CFTO4.js.map → chunk-F2OPHAUN.js.map} +0 -0
- /package/dist/{chunk-5DTST3TP.js.map → chunk-F4ISQGGM.js.map} +0 -0
- /package/dist/{chunk-MBIBB6GI.js.map → chunk-FO4LYKJL.js.map} +0 -0
- /package/dist/{chunk-EUBGLFFR.js.map → chunk-FPXASDG5.js.map} +0 -0
- /package/dist/{chunk-C3HUF3M2.js.map → chunk-FVXBNBHO.js.map} +0 -0
- /package/dist/{chunk-W5MPXR3A.js.map → chunk-FZC5N55X.js.map} +0 -0
- /package/dist/{chunk-MA6O7CM6.js.map → chunk-GAVYGBFI.js.map} +0 -0
- /package/dist/{chunk-REX6JIC7.js.map → chunk-GKVJIDHF.js.map} +0 -0
- /package/dist/{chunk-EW6RNWSH.js.map → chunk-GVN5SZLX.js.map} +0 -0
- /package/dist/{chunk-KVFEZDBO.js.map → chunk-H3T7IWNA.js.map} +0 -0
- /package/dist/{chunk-I6VBHT7S.js.map → chunk-HAX4LCR5.js.map} +0 -0
- /package/dist/{chunk-OBMCZO7E.js.map → chunk-HC4JFZVU.js.map} +0 -0
- /package/dist/{chunk-UJUQ2QOX.js.map → chunk-HEFPPMBQ.js.map} +0 -0
- /package/dist/{chunk-DOFJZ2JU.js.map → chunk-HNLR7Q4Z.js.map} +0 -0
- /package/dist/{chunk-GE33BGB7.js.map → chunk-HSOXMJOT.js.map} +0 -0
- /package/dist/{chunk-AB5MBIXY.js.map → chunk-I4MRDSUF.js.map} +0 -0
- /package/dist/{chunk-AFBJTUFK.js.map → chunk-I4QEJ62Y.js.map} +0 -0
- /package/dist/{chunk-6ED2YWBT.js.map → chunk-I5B5L6Q4.js.map} +0 -0
- /package/dist/{chunk-C5QCAOES.js.map → chunk-I5QZJODL.js.map} +0 -0
- /package/dist/{chunk-76ERNKIZ.js.map → chunk-I7ITSXSJ.js.map} +0 -0
- /package/dist/{chunk-OMH7R6I3.js.map → chunk-I7XIZRFD.js.map} +0 -0
- /package/dist/{chunk-E337C2VK.js.map → chunk-IDANQPRH.js.map} +0 -0
- /package/dist/{chunk-3FD76LXM.js.map → chunk-IFB3WJ36.js.map} +0 -0
- /package/dist/{chunk-ZIT5KD4Q.js.map → chunk-IHTAKKTK.js.map} +0 -0
- /package/dist/{chunk-QHNVNR7B.js.map → chunk-ILDXWY37.js.map} +0 -0
- /package/dist/{chunk-GQ67HSJY.js.map → chunk-IMDQUHBJ.js.map} +0 -0
- /package/dist/{chunk-DSXVY5WZ.js.map → chunk-IMZCQBOT.js.map} +0 -0
- /package/dist/{chunk-WEZ5PXZP.js.map → chunk-IXPTECSC.js.map} +0 -0
- /package/dist/{chunk-NY2QWROL.js.map → chunk-J255A3N5.js.map} +0 -0
- /package/dist/{chunk-O2UWH5RG.js.map → chunk-J5F5HPPW.js.map} +0 -0
- /package/dist/{chunk-VIEFJ2DM.js.map → chunk-JEA3QDX7.js.map} +0 -0
- /package/dist/{chunk-TF4ZVJLI.js.map → chunk-JEUPAVYY.js.map} +0 -0
- /package/dist/{chunk-ZG447FSS.js.map → chunk-JKHKLL5W.js.map} +0 -0
- /package/dist/{chunk-FQFKHNC7.js.map → chunk-JQL7ZH6C.js.map} +0 -0
- /package/dist/{chunk-776QZ573.js.map → chunk-JWB44UGJ.js.map} +0 -0
- /package/dist/{chunk-ICNNNOXE.js.map → chunk-JZ4NLCAP.js.map} +0 -0
- /package/dist/{chunk-TNKWOUWP.js.map → chunk-K2A5PXQ5.js.map} +0 -0
- /package/dist/{chunk-SRFARKXC.js.map → chunk-K56XV3C3.js.map} +0 -0
- /package/dist/{chunk-QAJ53XBW.js.map → chunk-K6GAXXVA.js.map} +0 -0
- /package/dist/{chunk-MF3ZFB4H.js.map → chunk-KCBMFSMS.js.map} +0 -0
- /package/dist/{chunk-VLXM36VS.js.map → chunk-KF2FV3ZJ.js.map} +0 -0
- /package/dist/{chunk-YSVD5HI4.js.map → chunk-KJD65EJP.js.map} +0 -0
- /package/dist/{chunk-K42OUZQ3.js.map → chunk-KLEUWIMZ.js.map} +0 -0
- /package/dist/{chunk-PENGLDR5.js.map → chunk-KODELWYT.js.map} +0 -0
- /package/dist/{chunk-TZAO65I4.js.map → chunk-KRDR5RJD.js.map} +0 -0
- /package/dist/{chunk-KHJ5PXFM.js.map → chunk-KUDGXAF7.js.map} +0 -0
- /package/dist/{chunk-6H4SJBPE.js.map → chunk-KYS77RPN.js.map} +0 -0
- /package/dist/{chunk-OWAYJ2OV.js.map → chunk-L7YTNTIK.js.map} +0 -0
- /package/dist/{chunk-YYLMZLI6.js.map → chunk-LHPNABDH.js.map} +0 -0
- /package/dist/{chunk-LM2W5YAT.js.map → chunk-MFROMEKA.js.map} +0 -0
- /package/dist/{chunk-AXBSYWKX.js.map → chunk-MIHN76LX.js.map} +0 -0
- /package/dist/{chunk-4LPOWQJY.js.map → chunk-MIYFS2XN.js.map} +0 -0
- /package/dist/{chunk-KKI55ZMW.js.map → chunk-MJUCFQMS.js.map} +0 -0
- /package/dist/{chunk-ZUDOVDKR.js.map → chunk-MM4FNWI4.js.map} +0 -0
- /package/dist/{chunk-M4SDVTKJ.js.map → chunk-MNZG4OHU.js.map} +0 -0
- /package/dist/{chunk-EILSAQVJ.js.map → chunk-N6AACDUW.js.map} +0 -0
- /package/dist/{chunk-BM3NEZ6X.js.map → chunk-NC55IFN3.js.map} +0 -0
- /package/dist/{chunk-MJJGJMYJ.js.map → chunk-NC7PVOEK.js.map} +0 -0
- /package/dist/{chunk-LA5T52RM.js.map → chunk-NCYMNCJO.js.map} +0 -0
- /package/dist/{chunk-HLOEPV5C.js.map → chunk-ND2BXV3P.js.map} +0 -0
- /package/dist/{chunk-UJDOWCQ3.js.map → chunk-NDBTFUO6.js.map} +0 -0
- /package/dist/{chunk-K5TOVX5A.js.map → chunk-NDQJZ7HF.js.map} +0 -0
- /package/dist/{chunk-35737UT4.js.map → chunk-NGJJJPZZ.js.map} +0 -0
- /package/dist/{chunk-42CMQ5VR.js.map → chunk-NJTSNNE7.js.map} +0 -0
- /package/dist/{chunk-FBTJKSTM.js.map → chunk-NRTE7DNV.js.map} +0 -0
- /package/dist/{chunk-YT3WGNG6.js.map → chunk-NULUNM7H.js.map} +0 -0
- /package/dist/{chunk-7XOVTPDI.js.map → chunk-NUNZS36W.js.map} +0 -0
- /package/dist/{chunk-FC2FTSK3.js.map → chunk-NW53H5RW.js.map} +0 -0
- /package/dist/{chunk-TW3LKRJF.js.map → chunk-NXCMHIKI.js.map} +0 -0
- /package/dist/{chunk-CGK6ALQU.js.map → chunk-O3LKCBP5.js.map} +0 -0
- /package/dist/{chunk-QIK2Q6N5.js.map → chunk-O6N4ABCA.js.map} +0 -0
- /package/dist/{chunk-73NXYYWE.js.map → chunk-O732GAFC.js.map} +0 -0
- /package/dist/{chunk-R3J2PTVQ.js.map → chunk-OF4TIKYC.js.map} +0 -0
- /package/dist/{chunk-BUBNGKWG.js.map → chunk-OMPVOMPP.js.map} +0 -0
- /package/dist/{chunk-4OXI6HCV.js.map → chunk-OPJJSKUK.js.map} +0 -0
- /package/dist/{chunk-4Y6BK7IU.js.map → chunk-OPWCMA4D.js.map} +0 -0
- /package/dist/{chunk-ADNMXBCX.js.map → chunk-ORJPS5VN.js.map} +0 -0
- /package/dist/{chunk-SKMNW4SW.js.map → chunk-OSY5K7L7.js.map} +0 -0
- /package/dist/{chunk-L4I665WK.js.map → chunk-OV6QJRT4.js.map} +0 -0
- /package/dist/{chunk-7O5CGGIQ.js.map → chunk-OVKYVZMW.js.map} +0 -0
- /package/dist/{chunk-7BYWOFVH.js.map → chunk-OZCBM3UC.js.map} +0 -0
- /package/dist/{chunk-ALVRWCXE.js.map → chunk-P3A2EINJ.js.map} +0 -0
- /package/dist/{chunk-BZO5ZMUP.js.map → chunk-PTAG4PDC.js.map} +0 -0
- /package/dist/{chunk-QHHSUR2Y.js.map → chunk-PTF5B7TJ.js.map} +0 -0
- /package/dist/{chunk-O2IOPP3R.js.map → chunk-Q3DPEYX4.js.map} +0 -0
- /package/dist/{chunk-G7FU6PUA.js.map → chunk-QB2KMIDP.js.map} +0 -0
- /package/dist/{chunk-64PO2WXU.js.map → chunk-QCSJ4CWE.js.map} +0 -0
- /package/dist/{chunk-YYICQDK4.js.map → chunk-QIOQ2NPQ.js.map} +0 -0
- /package/dist/{chunk-NB2HMRT2.js.map → chunk-QK5EFEUT.js.map} +0 -0
- /package/dist/{chunk-366XZ4PM.js.map → chunk-QPQBLYQJ.js.map} +0 -0
- /package/dist/{chunk-Q6XQ2R37.js.map → chunk-QPSGCC5D.js.map} +0 -0
- /package/dist/{chunk-JJZPLGIP.js.map → chunk-QZAAUQRN.js.map} +0 -0
- /package/dist/{chunk-VGUN6VB2.js.map → chunk-RGBI63KJ.js.map} +0 -0
- /package/dist/{chunk-LRN6GYAZ.js.map → chunk-RLBKLAEY.js.map} +0 -0
- /package/dist/{chunk-F7U3QPZ3.js.map → chunk-RMFKVOM7.js.map} +0 -0
- /package/dist/{chunk-Q4EFRI6X.js.map → chunk-ROKQU7WG.js.map} +0 -0
- /package/dist/{chunk-7QOHRZ67.js.map → chunk-RPVREAU7.js.map} +0 -0
- /package/dist/{chunk-VGWWEVSD.js.map → chunk-RQKLF42C.js.map} +0 -0
- /package/dist/{chunk-2VTTKH23.js.map → chunk-SEO7TICN.js.map} +0 -0
- /package/dist/{chunk-3QNRBEYH.js.map → chunk-SHHJCL7X.js.map} +0 -0
- /package/dist/{chunk-E6SQKHAU.js.map → chunk-SIRLACNZ.js.map} +0 -0
- /package/dist/{chunk-H2TCRX3H.js.map → chunk-SKPHMYAA.js.map} +0 -0
- /package/dist/{chunk-YDCUBUWH.js.map → chunk-SODC7T6L.js.map} +0 -0
- /package/dist/{chunk-TNYFHKVV.js.map → chunk-SQJIKMN3.js.map} +0 -0
- /package/dist/{chunk-DO74DQC7.js.map → chunk-SVINDKVW.js.map} +0 -0
- /package/dist/{chunk-CPYGO76Q.js.map → chunk-SYCDHPZF.js.map} +0 -0
- /package/dist/{chunk-UQ3IM6FY.js.map → chunk-T2QX3FDP.js.map} +0 -0
- /package/dist/{chunk-NWGNFN3N.js.map → chunk-T3OWFVMS.js.map} +0 -0
- /package/dist/{chunk-N3OARGH2.js.map → chunk-T6XI5FLY.js.map} +0 -0
- /package/dist/{chunk-MQG7RV3B.js.map → chunk-T7OXJZCX.js.map} +0 -0
- /package/dist/{chunk-2T7DX6KR.js.map → chunk-TAT5USZN.js.map} +0 -0
- /package/dist/{chunk-ICX64J4U.js.map → chunk-TPQTRNER.js.map} +0 -0
- /package/dist/{chunk-D2TOWEYH.js.map → chunk-TUIN4MB7.js.map} +0 -0
- /package/dist/{chunk-LQDUHU3Y.js.map → chunk-TX3VECZU.js.map} +0 -0
- /package/dist/{chunk-TG7DADJR.js.map → chunk-TXLIEOJX.js.map} +0 -0
- /package/dist/{chunk-2ZVRJRXC.js.map → chunk-U3DN4HEY.js.map} +0 -0
- /package/dist/{chunk-PSMAWRPL.js.map → chunk-U7XM7CB4.js.map} +0 -0
- /package/dist/{chunk-4TQL3WP2.js.map → chunk-UJK53QFL.js.map} +0 -0
- /package/dist/{chunk-RBRX5ZS3.js.map → chunk-UMTXA2TH.js.map} +0 -0
- /package/dist/{chunk-36MIDGAH.js.map → chunk-UPDSXFK5.js.map} +0 -0
- /package/dist/{chunk-OYXBFSGK.js.map → chunk-UTIAXH52.js.map} +0 -0
- /package/dist/{chunk-5WUN7XPD.js.map → chunk-UVN5TMHU.js.map} +0 -0
- /package/dist/{chunk-UYE47LO6.js.map → chunk-VGYXW3VG.js.map} +0 -0
- /package/dist/{chunk-IKUNOX7F.js.map → chunk-VS7AHPCZ.js.map} +0 -0
- /package/dist/{chunk-MYUFMVCH.js.map → chunk-VTTAJOQ7.js.map} +0 -0
- /package/dist/{chunk-K63HGHZX.js.map → chunk-VWPOLUAO.js.map} +0 -0
- /package/dist/{chunk-GA4YEAMX.js.map → chunk-X3MWB2QU.js.map} +0 -0
- /package/dist/{chunk-I36GSRUJ.js.map → chunk-X6KAJI3V.js.map} +0 -0
- /package/dist/{chunk-IKMUFDVS.js.map → chunk-XBLRHV5R.js.map} +0 -0
- /package/dist/{chunk-XOSQP3YA.js.map → chunk-XDFP2LMW.js.map} +0 -0
- /package/dist/{chunk-MW7Y3T55.js.map → chunk-XEQMZB3C.js.map} +0 -0
- /package/dist/{chunk-B3LMRTRF.js.map → chunk-XEYLT5VA.js.map} +0 -0
- /package/dist/{chunk-UI4HI5QK.js.map → chunk-XHIQ5I6N.js.map} +0 -0
- /package/dist/{chunk-U6M4LS3M.js.map → chunk-XLH7QY2R.js.map} +0 -0
- /package/dist/{chunk-OSA5EQG5.js.map → chunk-XWFAMUZQ.js.map} +0 -0
- /package/dist/{chunk-6MT3HHUB.js.map → chunk-Y4OBB2VN.js.map} +0 -0
- /package/dist/{chunk-CZP5QXNB.js.map → chunk-YCVD6CI3.js.map} +0 -0
- /package/dist/{chunk-APW4T4SW.js.map → chunk-YENLNISG.js.map} +0 -0
- /package/dist/{chunk-JWPA6ZPZ.js.map → chunk-YIRVLKAX.js.map} +0 -0
- /package/dist/{chunk-LQ62ECE6.js.map → chunk-YL73CVNK.js.map} +0 -0
- /package/dist/{chunk-ILKDYBON.js.map → chunk-YLS6QE5G.js.map} +0 -0
- /package/dist/{chunk-YBKVGLQR.js.map → chunk-YPWU5KPE.js.map} +0 -0
- /package/dist/{chunk-IKJLSBUI.js.map → chunk-YQXTDZSU.js.map} +0 -0
- /package/dist/{chunk-TPMZBOFH.js.map → chunk-YSJEAAOL.js.map} +0 -0
- /package/dist/{chunk-W3BFRR2G.js.map → chunk-YWIFM7D7.js.map} +0 -0
- /package/dist/{chunk-WTJ4PLMU.js.map → chunk-YWVI6ZMK.js.map} +0 -0
- /package/dist/{chunk-5KWMYPJV.js.map → chunk-Z4FMAFNH.js.map} +0 -0
- /package/dist/{chunk-W5OWKVZG.js.map → chunk-Z654FWNU.js.map} +0 -0
- /package/dist/{chunk-5FH5LQVS.js.map → chunk-Z7Y523PS.js.map} +0 -0
- /package/dist/{chunk-HLL4PBO7.js.map → chunk-ZD67RM6G.js.map} +0 -0
- /package/dist/{chunk-IVYJX3OY.js.map → chunk-ZEG4VPBL.js.map} +0 -0
- /package/dist/{chunk-K6R5T44I.js.map → chunk-ZLYCOBHW.js.map} +0 -0
- /package/dist/{chunk-VADHIT26.js.map → chunk-ZNJ5MTXV.js.map} +0 -0
- /package/dist/{chunk-2KYQC4T5.js.map → chunk-ZSGY3H53.js.map} +0 -0
- /package/dist/{chunk-BKP43KK4.js.map → chunk-ZTPXACWB.js.map} +0 -0
- /package/dist/{chunk-JCY4CMDH.js.map → chunk-ZUA3JMI6.js.map} +0 -0
- /package/dist/{chunk-IGVVXLKJ.js.map → chunk-ZYAZUPPV.js.map} +0 -0
- /package/dist/{computer-viewer-LPZ763KF.js.map → computer-viewer-TDDO25AV.js.map} +0 -0
- /package/dist/{embedded-new-voice-YVMKSLKJ.js.map → embedded-new-voice-2G3VLPVQ.js.map} +0 -0
- /package/dist/{embedded-voice-BJPQFXSU.js.map → embedded-voice-T5IWOWGD.js.map} +0 -0
- /package/dist/{fleet-decision-row-AA4H5CDT.js.map → fleet-decision-row-WM64KXP3.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-HSMWVO4P.js.map → model-policy-picker-menu-SMC6J6QN.js.map} +0 -0
- /package/dist/{payment-page-card-3LTSFJGN.js.map → payment-page-card-G4U63KUV.js.map} +0 -0
- /package/dist/{platform-activity-row-5VYV6TX4.js.map → platform-activity-row-BUZGZAKZ.js.map} +0 -0
- /package/dist/{queue-surface-implementation-NXHZUKD2.js.map → queue-surface-implementation-4KUZ4PJV.js.map} +0 -0
- /package/dist/{sandbox-files-YCMLQUFU.js.map → sandbox-files-ESDMOFSD.js.map} +0 -0
- /package/dist/{session-connect-cards-KSQLMRM5.js.map → session-connect-cards-Q53KMMYY.js.map} +0 -0
- /package/dist/{session-realtime-ZR6JLG3Y.js.map → session-realtime-CF3I35WJ.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-YAHDPWVG.js.map → timeline-annotation-markers-CJK4RYZ4.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-KHXNCEJP.js.map → timeline-annotation-selection-67GF5H26.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-Y4XD3N7B.js.map → timeline-annotations-dialog-ONJPQDJQ.js.map} +0 -0
package/dist/chunk-5WUN7XPD.js
DELETED
|
@@ -1,1184 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
sandboxAcceptsLiveIo
|
|
4
|
-
} from "./chunk-QV3DJVRZ.js";
|
|
5
|
-
import {
|
|
6
|
-
STREAM_KIND_PTY,
|
|
7
|
-
STREAM_ROLE_CLIENT,
|
|
8
|
-
decodeStreamFrame,
|
|
9
|
-
decodeStreamOpenAck,
|
|
10
|
-
encodeStreamFrame,
|
|
11
|
-
encodeStreamOpen
|
|
12
|
-
} from "./chunk-TNEZNMSN.js";
|
|
13
|
-
import {
|
|
14
|
-
sandboxTerminalPeers
|
|
15
|
-
} from "./chunk-5I4VRWBB.js";
|
|
16
|
-
import {
|
|
17
|
-
cn
|
|
18
|
-
} from "./chunk-TXS65BB2.js";
|
|
19
|
-
import {
|
|
20
|
-
useOpenGeniText
|
|
21
|
-
} from "./chunk-TNUSPXPW.js";
|
|
22
|
-
|
|
23
|
-
// src/hooks/use-terminal-stream.ts
|
|
24
|
-
import {
|
|
25
|
-
TTYD_SUBPROTOCOL,
|
|
26
|
-
terminalSocketUrl,
|
|
27
|
-
ttydAuthFrame,
|
|
28
|
-
ttydInputFrame,
|
|
29
|
-
ttydResizeFrame,
|
|
30
|
-
TtydServerCommand
|
|
31
|
-
} from "@opengeni/sdk";
|
|
32
|
-
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
33
|
-
|
|
34
|
-
// src/lib/terminal-input-readiness.ts
|
|
35
|
-
var TERMINAL_INPUT_READY_PREFERENCE = "opengeniInputReady";
|
|
36
|
-
var TERMINAL_INPUT_READY_PROTOCOL = "bash-readline-v1";
|
|
37
|
-
var PREFIX = "\x1B]777;opengeni-input;";
|
|
38
|
-
var FRAME = /^\x1b\]777;opengeni-input;(hello|ready);([a-f0-9]{32})\x07$/;
|
|
39
|
-
var MAX_FRAME = PREFIX.length + "hello;".length + 32 + 1;
|
|
40
|
-
function terminalInputReadyDecoder() {
|
|
41
|
-
let pending = "";
|
|
42
|
-
let received = false;
|
|
43
|
-
let identity = null;
|
|
44
|
-
return (data) => {
|
|
45
|
-
let input = pending + data;
|
|
46
|
-
let output = "";
|
|
47
|
-
let ready = false;
|
|
48
|
-
pending = "";
|
|
49
|
-
while (input.length > 0) {
|
|
50
|
-
const marker = input.indexOf(PREFIX);
|
|
51
|
-
if (marker < 0) break;
|
|
52
|
-
output += input.slice(0, marker);
|
|
53
|
-
input = input.slice(marker);
|
|
54
|
-
const end = input.indexOf("\x07", PREFIX.length);
|
|
55
|
-
if (end < 0 && input.length < MAX_FRAME) {
|
|
56
|
-
pending = input;
|
|
57
|
-
return { output, ready };
|
|
58
|
-
}
|
|
59
|
-
const match = end >= 0 && end < MAX_FRAME ? FRAME.exec(input.slice(0, end + 1)) : null;
|
|
60
|
-
if (!match) {
|
|
61
|
-
output += input[0];
|
|
62
|
-
input = input.slice(1);
|
|
63
|
-
continue;
|
|
64
|
-
}
|
|
65
|
-
input = input.slice(end + 1);
|
|
66
|
-
if (match[1] === "hello" && identity === null) identity = match[2];
|
|
67
|
-
if (match[1] === "ready" && match[2] === identity && !received) {
|
|
68
|
-
ready = true;
|
|
69
|
-
received = true;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
let suffix = Math.min(input.length, PREFIX.length - 1);
|
|
73
|
-
while (suffix > 0 && !PREFIX.startsWith(input.slice(-suffix))) suffix--;
|
|
74
|
-
pending = suffix > 0 ? input.slice(-suffix) : "";
|
|
75
|
-
return { output: output + (suffix > 0 ? input.slice(0, -suffix) : input), ready };
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// src/hooks/use-terminal-stream.ts
|
|
80
|
-
var MAX_PENDING_TERMINAL_INPUT_CODE_UNITS = 64 * 1024;
|
|
81
|
-
var TERMINAL_CONNECT_EXPIRY_SKEW_MS = 5e3;
|
|
82
|
-
var TERMINAL_RECONNECT_INITIAL_MS = 100;
|
|
83
|
-
var TERMINAL_RECONNECT_MAX_MS = 3e3;
|
|
84
|
-
var RELAY_TAG_OPEN = 1;
|
|
85
|
-
var RELAY_TAG_OPEN_ACK = 2;
|
|
86
|
-
var RELAY_TAG_FRAME = 3;
|
|
87
|
-
function relayDatagram(tag, body) {
|
|
88
|
-
const bytes = new Uint8Array(body.length + 1);
|
|
89
|
-
bytes[0] = tag;
|
|
90
|
-
bytes.set(body, 1);
|
|
91
|
-
return bytes.buffer;
|
|
92
|
-
}
|
|
93
|
-
function relayChannelFromUrl(url) {
|
|
94
|
-
const endpoint = new URL(url);
|
|
95
|
-
const channel = {
|
|
96
|
-
channelId: endpoint.searchParams.get("channel") ?? "",
|
|
97
|
-
workspaceId: endpoint.searchParams.get("ws") ?? "",
|
|
98
|
-
agentId: endpoint.searchParams.get("agent") ?? "",
|
|
99
|
-
kind: STREAM_KIND_PTY,
|
|
100
|
-
port: Number(endpoint.searchParams.get("port") ?? "0")
|
|
101
|
-
};
|
|
102
|
-
if (!channel.channelId || !channel.workspaceId || !channel.agentId || !Number.isSafeInteger(channel.port) || channel.port <= 0) {
|
|
103
|
-
throw new Error("terminal relay endpoint is incomplete");
|
|
104
|
-
}
|
|
105
|
-
return channel;
|
|
106
|
-
}
|
|
107
|
-
function sendRelayInput(socket, channel, sequence, data) {
|
|
108
|
-
socket.send(
|
|
109
|
-
relayDatagram(
|
|
110
|
-
RELAY_TAG_FRAME,
|
|
111
|
-
encodeStreamFrame({
|
|
112
|
-
channelId: channel.channelId,
|
|
113
|
-
seq: sequence.toString(),
|
|
114
|
-
data: new TextEncoder().encode(data),
|
|
115
|
-
producedAtMs: String(Date.now())
|
|
116
|
-
})
|
|
117
|
-
)
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
function terminalStreamCredentialUsable(capability, nowMs = Date.now()) {
|
|
121
|
-
if (capability?.transport !== "pty-ws" && capability?.transport !== "relay-pty" || !capability.url) {
|
|
122
|
-
return false;
|
|
123
|
-
}
|
|
124
|
-
if (!capability.expiresAt) return true;
|
|
125
|
-
const expiresAt = Date.parse(capability.expiresAt);
|
|
126
|
-
return Number.isFinite(expiresAt) && expiresAt > nowMs + TERMINAL_CONNECT_EXPIRY_SKEW_MS;
|
|
127
|
-
}
|
|
128
|
-
function decodeFrame(data) {
|
|
129
|
-
if (typeof data === "string") {
|
|
130
|
-
return { command: data.charAt(0), payload: data.slice(1) };
|
|
131
|
-
}
|
|
132
|
-
const bytes = new Uint8Array(data);
|
|
133
|
-
const command = bytes.length > 0 ? String.fromCharCode(bytes[0]) : "";
|
|
134
|
-
const payload = bytes.length > 1 ? new TextDecoder().decode(bytes.subarray(1)) : "";
|
|
135
|
-
return { command, payload };
|
|
136
|
-
}
|
|
137
|
-
function closeSocket(socket) {
|
|
138
|
-
try {
|
|
139
|
-
socket?.close();
|
|
140
|
-
} catch {
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
function useTerminalStream(options) {
|
|
144
|
-
const { capability, onOutput, onTitle, onReconnectNeeded, initialCols, initialRows } = options;
|
|
145
|
-
const [status, setStatus] = useState("closed");
|
|
146
|
-
const [inputReadiness, setInputReadiness] = useState("pending");
|
|
147
|
-
const [reconnectGeneration, setReconnectGeneration] = useState(0);
|
|
148
|
-
const wsRef = useRef(null);
|
|
149
|
-
const pendingInputRef = useRef("");
|
|
150
|
-
const socketFailedRef = useRef(false);
|
|
151
|
-
const socketAuthenticatedRef = useRef(false);
|
|
152
|
-
const legacyInputRef = useRef(null);
|
|
153
|
-
const manuallyDisconnectedRef = useRef(false);
|
|
154
|
-
const relayChannelRef = useRef(null);
|
|
155
|
-
const relayIdentityRef = useRef(null);
|
|
156
|
-
const relayInputSequenceRef = useRef(0n);
|
|
157
|
-
const relayOutputSequenceRef = useRef(0n);
|
|
158
|
-
const reconnectAttemptRef = useRef(0);
|
|
159
|
-
const credentialIdentityRef = useRef(null);
|
|
160
|
-
const refreshRequestedRef = useRef(false);
|
|
161
|
-
const intentionalCloseRef = useRef(/* @__PURE__ */ new WeakSet());
|
|
162
|
-
const sizeRef = useRef({
|
|
163
|
-
cols: initialCols ?? 80,
|
|
164
|
-
rows: initialRows ?? 24
|
|
165
|
-
});
|
|
166
|
-
const onOutputRef = useRef(onOutput);
|
|
167
|
-
const onTitleRef = useRef(onTitle);
|
|
168
|
-
const onReconnectNeededRef = useRef(onReconnectNeeded);
|
|
169
|
-
onOutputRef.current = onOutput;
|
|
170
|
-
onTitleRef.current = onTitle;
|
|
171
|
-
onReconnectNeededRef.current = onReconnectNeeded;
|
|
172
|
-
const transport = capability?.transport ?? null;
|
|
173
|
-
const url = capability?.url ?? null;
|
|
174
|
-
const token = capability?.token ?? null;
|
|
175
|
-
const expiresAt = capability?.expiresAt ?? null;
|
|
176
|
-
const transportRef = useRef(transport);
|
|
177
|
-
transportRef.current = transport;
|
|
178
|
-
const acquiringPty = transport === "sse-events" && capability?.ptyCapable === true && (capability.reason === "lease_cold" || capability.reason === "not_provisioned");
|
|
179
|
-
const acquiringPtyRef = useRef(acquiringPty);
|
|
180
|
-
acquiringPtyRef.current = acquiringPty;
|
|
181
|
-
useEffect(() => {
|
|
182
|
-
manuallyDisconnectedRef.current = false;
|
|
183
|
-
setInputReadiness("pending");
|
|
184
|
-
if (typeof window === "undefined" || typeof WebSocket === "undefined") return;
|
|
185
|
-
const relay = transport === "relay-pty";
|
|
186
|
-
if (transport !== "pty-ws" && !relay) {
|
|
187
|
-
pendingInputRef.current = "";
|
|
188
|
-
socketAuthenticatedRef.current = false;
|
|
189
|
-
relayIdentityRef.current = null;
|
|
190
|
-
relayInputSequenceRef.current = 0n;
|
|
191
|
-
relayOutputSequenceRef.current = 0n;
|
|
192
|
-
reconnectAttemptRef.current = 0;
|
|
193
|
-
credentialIdentityRef.current = null;
|
|
194
|
-
refreshRequestedRef.current = false;
|
|
195
|
-
socketFailedRef.current = false;
|
|
196
|
-
setStatus("closed");
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
const credentialIdentity = `${transport}\0${url ?? ""}\0${token ?? ""}\0${expiresAt ?? ""}`;
|
|
200
|
-
if (credentialIdentityRef.current !== credentialIdentity) {
|
|
201
|
-
credentialIdentityRef.current = credentialIdentity;
|
|
202
|
-
reconnectAttemptRef.current = 0;
|
|
203
|
-
refreshRequestedRef.current = false;
|
|
204
|
-
}
|
|
205
|
-
socketFailedRef.current = false;
|
|
206
|
-
socketAuthenticatedRef.current = false;
|
|
207
|
-
if (!url) {
|
|
208
|
-
setStatus("closed");
|
|
209
|
-
return;
|
|
210
|
-
}
|
|
211
|
-
if (!terminalStreamCredentialUsable({ transport, url, expiresAt })) {
|
|
212
|
-
setStatus("closed");
|
|
213
|
-
if (!refreshRequestedRef.current) {
|
|
214
|
-
refreshRequestedRef.current = true;
|
|
215
|
-
onReconnectNeededRef.current?.();
|
|
216
|
-
}
|
|
217
|
-
return;
|
|
218
|
-
}
|
|
219
|
-
let disposed = false;
|
|
220
|
-
let reconnectTimer = null;
|
|
221
|
-
let socket;
|
|
222
|
-
let relayChannel = null;
|
|
223
|
-
let authSent = false;
|
|
224
|
-
let preferencesReceived = false;
|
|
225
|
-
let readinessNegotiated = false;
|
|
226
|
-
let sentSize = null;
|
|
227
|
-
const decodeReadyOutput = terminalInputReadyDecoder();
|
|
228
|
-
const relayOutputDecoder = new TextDecoder();
|
|
229
|
-
setStatus("connecting");
|
|
230
|
-
try {
|
|
231
|
-
if (relay) {
|
|
232
|
-
relayChannel = relayChannelFromUrl(url);
|
|
233
|
-
const relayIdentity = [
|
|
234
|
-
relayChannel.workspaceId,
|
|
235
|
-
relayChannel.agentId,
|
|
236
|
-
relayChannel.port,
|
|
237
|
-
relayChannel.channelId
|
|
238
|
-
].join("\0");
|
|
239
|
-
if (relayIdentityRef.current !== relayIdentity) {
|
|
240
|
-
relayIdentityRef.current = relayIdentity;
|
|
241
|
-
relayInputSequenceRef.current = 0n;
|
|
242
|
-
relayOutputSequenceRef.current = 0n;
|
|
243
|
-
}
|
|
244
|
-
relayChannelRef.current = relayChannel;
|
|
245
|
-
socket = new WebSocket(url);
|
|
246
|
-
} else {
|
|
247
|
-
socket = new WebSocket(terminalSocketUrl({ url }), TTYD_SUBPROTOCOL);
|
|
248
|
-
}
|
|
249
|
-
} catch {
|
|
250
|
-
socketFailedRef.current = true;
|
|
251
|
-
setStatus("error");
|
|
252
|
-
return;
|
|
253
|
-
}
|
|
254
|
-
socket.binaryType = "arraybuffer";
|
|
255
|
-
wsRef.current = socket;
|
|
256
|
-
const requestFreshGrant = () => {
|
|
257
|
-
if (disposed || refreshRequestedRef.current || intentionalCloseRef.current.has(socket))
|
|
258
|
-
return;
|
|
259
|
-
refreshRequestedRef.current = true;
|
|
260
|
-
onReconnectNeededRef.current?.();
|
|
261
|
-
};
|
|
262
|
-
const scheduleTransportReconnect = () => {
|
|
263
|
-
if (disposed || reconnectTimer !== null || intentionalCloseRef.current.has(socket)) return;
|
|
264
|
-
if (refreshRequestedRef.current) return;
|
|
265
|
-
if (!terminalStreamCredentialUsable({ transport, url, expiresAt })) {
|
|
266
|
-
requestFreshGrant();
|
|
267
|
-
return;
|
|
268
|
-
}
|
|
269
|
-
const attempt = reconnectAttemptRef.current++;
|
|
270
|
-
const delay = Math.min(
|
|
271
|
-
TERMINAL_RECONNECT_INITIAL_MS * 2 ** Math.min(attempt, 8),
|
|
272
|
-
TERMINAL_RECONNECT_MAX_MS
|
|
273
|
-
);
|
|
274
|
-
setStatus("connecting");
|
|
275
|
-
reconnectTimer = setTimeout(() => {
|
|
276
|
-
reconnectTimer = null;
|
|
277
|
-
if (!disposed && !manuallyDisconnectedRef.current)
|
|
278
|
-
setReconnectGeneration((generation) => generation + 1);
|
|
279
|
-
}, delay);
|
|
280
|
-
};
|
|
281
|
-
const openTtydInput = (mode, discardPending = false) => {
|
|
282
|
-
if (disposed || wsRef.current !== socket || socket.readyState !== WebSocket.OPEN || !authSent || socketFailedRef.current)
|
|
283
|
-
return;
|
|
284
|
-
if (discardPending) pendingInputRef.current = "";
|
|
285
|
-
try {
|
|
286
|
-
if (sentSize?.cols !== sizeRef.current.cols || sentSize.rows !== sizeRef.current.rows) {
|
|
287
|
-
socket.send(ttydResizeFrame(sizeRef.current.cols, sizeRef.current.rows));
|
|
288
|
-
sentSize = { ...sizeRef.current };
|
|
289
|
-
}
|
|
290
|
-
if (pendingInputRef.current.length > 0) {
|
|
291
|
-
socket.send(ttydInputFrame(pendingInputRef.current));
|
|
292
|
-
pendingInputRef.current = "";
|
|
293
|
-
}
|
|
294
|
-
socketAuthenticatedRef.current = true;
|
|
295
|
-
legacyInputRef.current = null;
|
|
296
|
-
setInputReadiness(mode);
|
|
297
|
-
setStatus("open");
|
|
298
|
-
reconnectAttemptRef.current = 0;
|
|
299
|
-
refreshRequestedRef.current = false;
|
|
300
|
-
} catch {
|
|
301
|
-
socketAuthenticatedRef.current = false;
|
|
302
|
-
setInputReadiness("pending");
|
|
303
|
-
setStatus("connecting");
|
|
304
|
-
closeSocket(socket);
|
|
305
|
-
}
|
|
306
|
-
};
|
|
307
|
-
socket.onopen = () => {
|
|
308
|
-
if (disposed || wsRef.current !== socket || socketFailedRef.current) return;
|
|
309
|
-
if (relay && relayChannel) {
|
|
310
|
-
try {
|
|
311
|
-
socket.send(
|
|
312
|
-
relayDatagram(
|
|
313
|
-
RELAY_TAG_OPEN,
|
|
314
|
-
encodeStreamOpen({
|
|
315
|
-
channel: relayChannel,
|
|
316
|
-
token: token ?? "",
|
|
317
|
-
role: STREAM_ROLE_CLIENT,
|
|
318
|
-
resumeFromSeq: relayOutputSequenceRef.current.toString()
|
|
319
|
-
})
|
|
320
|
-
)
|
|
321
|
-
);
|
|
322
|
-
} catch {
|
|
323
|
-
socketFailedRef.current = false;
|
|
324
|
-
setStatus("connecting");
|
|
325
|
-
closeSocket(socket);
|
|
326
|
-
}
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
try {
|
|
330
|
-
socket.send(ttydAuthFrame({ columns: sizeRef.current.cols, rows: sizeRef.current.rows }));
|
|
331
|
-
socket.send(ttydResizeFrame(sizeRef.current.cols, sizeRef.current.rows));
|
|
332
|
-
sentSize = { ...sizeRef.current };
|
|
333
|
-
authSent = true;
|
|
334
|
-
} catch {
|
|
335
|
-
socketFailedRef.current = false;
|
|
336
|
-
setStatus("connecting");
|
|
337
|
-
closeSocket(socket);
|
|
338
|
-
return;
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
socket.onmessage = (ev) => {
|
|
342
|
-
if (disposed || wsRef.current !== socket || socketFailedRef.current) return;
|
|
343
|
-
if (relay) {
|
|
344
|
-
if (!(ev.data instanceof ArrayBuffer) || !relayChannel) return;
|
|
345
|
-
const bytes = new Uint8Array(ev.data);
|
|
346
|
-
if (bytes.length < 1) return;
|
|
347
|
-
const tag = bytes[0];
|
|
348
|
-
const body = bytes.subarray(1);
|
|
349
|
-
if (tag === RELAY_TAG_OPEN_ACK) {
|
|
350
|
-
try {
|
|
351
|
-
const ack = decodeStreamOpenAck(body);
|
|
352
|
-
if (!ack.accepted) throw new Error(ack.error?.message ?? "terminal relay rejected");
|
|
353
|
-
reconnectAttemptRef.current = 0;
|
|
354
|
-
refreshRequestedRef.current = false;
|
|
355
|
-
socketAuthenticatedRef.current = true;
|
|
356
|
-
if (pendingInputRef.current.length > 0) {
|
|
357
|
-
sendRelayInput(
|
|
358
|
-
socket,
|
|
359
|
-
relayChannel,
|
|
360
|
-
relayInputSequenceRef.current++,
|
|
361
|
-
pendingInputRef.current
|
|
362
|
-
);
|
|
363
|
-
pendingInputRef.current = "";
|
|
364
|
-
}
|
|
365
|
-
setStatus("open");
|
|
366
|
-
setInputReadiness("ready");
|
|
367
|
-
} catch {
|
|
368
|
-
socketFailedRef.current = true;
|
|
369
|
-
setStatus("error");
|
|
370
|
-
requestFreshGrant();
|
|
371
|
-
closeSocket(socket);
|
|
372
|
-
}
|
|
373
|
-
} else if (tag === RELAY_TAG_FRAME && socketAuthenticatedRef.current) {
|
|
374
|
-
try {
|
|
375
|
-
const frame = decodeStreamFrame(body);
|
|
376
|
-
const sequence = BigInt(frame.seq);
|
|
377
|
-
if (sequence < relayOutputSequenceRef.current) return;
|
|
378
|
-
relayOutputSequenceRef.current = sequence + 1n;
|
|
379
|
-
if (frame.data.length > 0) {
|
|
380
|
-
onOutputRef.current?.(relayOutputDecoder.decode(frame.data, { stream: true }));
|
|
381
|
-
}
|
|
382
|
-
} catch {
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
return;
|
|
386
|
-
}
|
|
387
|
-
const { command, payload } = decodeFrame(ev.data);
|
|
388
|
-
switch (command) {
|
|
389
|
-
case TtydServerCommand.OUTPUT:
|
|
390
|
-
if (readinessNegotiated) {
|
|
391
|
-
const decoded = decodeReadyOutput(payload);
|
|
392
|
-
if (decoded.output) onOutputRef.current?.(decoded.output);
|
|
393
|
-
if (decoded.ready && !socketAuthenticatedRef.current) openTtydInput("ready");
|
|
394
|
-
} else {
|
|
395
|
-
onOutputRef.current?.(payload);
|
|
396
|
-
}
|
|
397
|
-
break;
|
|
398
|
-
case TtydServerCommand.SET_WINDOW_TITLE:
|
|
399
|
-
onTitleRef.current?.(payload);
|
|
400
|
-
break;
|
|
401
|
-
case TtydServerCommand.SET_PREFERENCES:
|
|
402
|
-
if (!authSent || preferencesReceived || socketAuthenticatedRef.current) break;
|
|
403
|
-
preferencesReceived = true;
|
|
404
|
-
try {
|
|
405
|
-
const preferences = JSON.parse(payload);
|
|
406
|
-
if (!preferences || typeof preferences !== "object" || Array.isArray(preferences)) {
|
|
407
|
-
throw new Error("invalid ttyd preferences");
|
|
408
|
-
}
|
|
409
|
-
const protocol = preferences[TERMINAL_INPUT_READY_PREFERENCE];
|
|
410
|
-
if (protocol === void 0) {
|
|
411
|
-
openTtydInput("legacy");
|
|
412
|
-
} else {
|
|
413
|
-
readinessNegotiated = protocol === TERMINAL_INPUT_READY_PROTOCOL;
|
|
414
|
-
setInputReadiness("waiting");
|
|
415
|
-
legacyInputRef.current = () => openTtydInput("legacy", true);
|
|
416
|
-
}
|
|
417
|
-
} catch {
|
|
418
|
-
setInputReadiness("waiting");
|
|
419
|
-
legacyInputRef.current = () => openTtydInput("legacy", true);
|
|
420
|
-
}
|
|
421
|
-
break;
|
|
422
|
-
default:
|
|
423
|
-
break;
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
|
-
socket.onerror = () => {
|
|
427
|
-
if (!disposed && wsRef.current === socket && !intentionalCloseRef.current.has(socket)) {
|
|
428
|
-
socketFailedRef.current = false;
|
|
429
|
-
setStatus("connecting");
|
|
430
|
-
closeSocket(socket);
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
socket.onclose = () => {
|
|
434
|
-
if (disposed || wsRef.current !== socket) return;
|
|
435
|
-
if (wsRef.current === socket) wsRef.current = null;
|
|
436
|
-
socketAuthenticatedRef.current = false;
|
|
437
|
-
legacyInputRef.current = null;
|
|
438
|
-
setInputReadiness("pending");
|
|
439
|
-
if (!disposed) {
|
|
440
|
-
if (socketFailedRef.current) setStatus("error");
|
|
441
|
-
else scheduleTransportReconnect();
|
|
442
|
-
}
|
|
443
|
-
};
|
|
444
|
-
return () => {
|
|
445
|
-
disposed = true;
|
|
446
|
-
wsRef.current = null;
|
|
447
|
-
socketAuthenticatedRef.current = false;
|
|
448
|
-
legacyInputRef.current = null;
|
|
449
|
-
relayChannelRef.current = null;
|
|
450
|
-
if (reconnectTimer !== null) clearTimeout(reconnectTimer);
|
|
451
|
-
socket.onopen = null;
|
|
452
|
-
socket.onmessage = null;
|
|
453
|
-
socket.onerror = null;
|
|
454
|
-
socket.onclose = null;
|
|
455
|
-
closeSocket(socket);
|
|
456
|
-
};
|
|
457
|
-
}, [transport, url, token, expiresAt, acquiringPty, reconnectGeneration]);
|
|
458
|
-
const write = useCallback((data) => {
|
|
459
|
-
const currentTransport = transportRef.current;
|
|
460
|
-
const ws = wsRef.current;
|
|
461
|
-
if (ws && ws.readyState === WebSocket.OPEN && socketAuthenticatedRef.current) {
|
|
462
|
-
try {
|
|
463
|
-
const relayChannel = relayChannelRef.current;
|
|
464
|
-
if (currentTransport === "relay-pty" && relayChannel) {
|
|
465
|
-
sendRelayInput(ws, relayChannel, relayInputSequenceRef.current++, data);
|
|
466
|
-
} else {
|
|
467
|
-
ws.send(ttydInputFrame(data));
|
|
468
|
-
}
|
|
469
|
-
} catch {
|
|
470
|
-
if (currentTransport === "pty-ws") {
|
|
471
|
-
const nextSize = pendingInputRef.current.length + data.length;
|
|
472
|
-
if (nextSize > MAX_PENDING_TERMINAL_INPUT_CODE_UNITS) {
|
|
473
|
-
pendingInputRef.current = "";
|
|
474
|
-
socketFailedRef.current = true;
|
|
475
|
-
socketAuthenticatedRef.current = false;
|
|
476
|
-
setStatus("error");
|
|
477
|
-
closeSocket(ws);
|
|
478
|
-
return;
|
|
479
|
-
}
|
|
480
|
-
pendingInputRef.current += data;
|
|
481
|
-
}
|
|
482
|
-
socketAuthenticatedRef.current = false;
|
|
483
|
-
socketFailedRef.current = false;
|
|
484
|
-
setStatus("connecting");
|
|
485
|
-
closeSocket(ws);
|
|
486
|
-
}
|
|
487
|
-
} else if ((currentTransport === "pty-ws" || currentTransport === "relay-pty" || acquiringPtyRef.current) && !socketFailedRef.current) {
|
|
488
|
-
const nextSize = pendingInputRef.current.length + data.length;
|
|
489
|
-
if (nextSize > MAX_PENDING_TERMINAL_INPUT_CODE_UNITS) {
|
|
490
|
-
pendingInputRef.current = "";
|
|
491
|
-
socketFailedRef.current = true;
|
|
492
|
-
setStatus("error");
|
|
493
|
-
closeSocket(ws);
|
|
494
|
-
return;
|
|
495
|
-
}
|
|
496
|
-
pendingInputRef.current += data;
|
|
497
|
-
}
|
|
498
|
-
}, []);
|
|
499
|
-
const resize = useCallback((cols, rows) => {
|
|
500
|
-
if (cols <= 0 || rows <= 0) return;
|
|
501
|
-
sizeRef.current = { cols, rows };
|
|
502
|
-
const ws = wsRef.current;
|
|
503
|
-
if (ws && ws.readyState === WebSocket.OPEN && socketAuthenticatedRef.current) {
|
|
504
|
-
try {
|
|
505
|
-
if (transportRef.current === "pty-ws") ws.send(ttydResizeFrame(cols, rows));
|
|
506
|
-
} catch {
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
}, []);
|
|
510
|
-
const disconnect = useCallback(() => {
|
|
511
|
-
manuallyDisconnectedRef.current = true;
|
|
512
|
-
const ws = wsRef.current;
|
|
513
|
-
wsRef.current = null;
|
|
514
|
-
pendingInputRef.current = "";
|
|
515
|
-
socketFailedRef.current = false;
|
|
516
|
-
socketAuthenticatedRef.current = false;
|
|
517
|
-
legacyInputRef.current = null;
|
|
518
|
-
relayChannelRef.current = null;
|
|
519
|
-
setStatus("closed");
|
|
520
|
-
setInputReadiness("pending");
|
|
521
|
-
if (ws) intentionalCloseRef.current.add(ws);
|
|
522
|
-
closeSocket(ws);
|
|
523
|
-
}, []);
|
|
524
|
-
const useLegacyInput = useCallback(() => legacyInputRef.current?.(), []);
|
|
525
|
-
return useMemo(() => {
|
|
526
|
-
return {
|
|
527
|
-
connected: status === "open",
|
|
528
|
-
status,
|
|
529
|
-
inputReadiness,
|
|
530
|
-
useLegacyInput,
|
|
531
|
-
write,
|
|
532
|
-
resize,
|
|
533
|
-
disconnect
|
|
534
|
-
};
|
|
535
|
-
}, [status, inputReadiness, useLegacyInput, write, resize, disconnect]);
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
// src/lib/xterm-theme.ts
|
|
539
|
-
var DARK_ANSI = {
|
|
540
|
-
black: "oklch(0.3 0 0)",
|
|
541
|
-
red: "oklch(0.68 0.17 22)",
|
|
542
|
-
green: "oklch(0.75 0.13 155)",
|
|
543
|
-
yellow: "oklch(0.8 0.11 80)",
|
|
544
|
-
blue: "oklch(0.7 0.14 255)",
|
|
545
|
-
magenta: "oklch(0.72 0.13 305)",
|
|
546
|
-
cyan: "oklch(0.75 0.1 210)",
|
|
547
|
-
white: "oklch(0.8 0 0)",
|
|
548
|
-
brightBlack: "oklch(0.45 0 0)",
|
|
549
|
-
brightRed: "oklch(0.76 0.17 22)",
|
|
550
|
-
brightGreen: "oklch(0.82 0.14 155)",
|
|
551
|
-
brightYellow: "oklch(0.86 0.12 85)",
|
|
552
|
-
brightBlue: "oklch(0.78 0.13 255)",
|
|
553
|
-
brightMagenta: "oklch(0.8 0.13 305)",
|
|
554
|
-
brightCyan: "oklch(0.83 0.1 200)",
|
|
555
|
-
brightWhite: "oklch(0.97 0 0)",
|
|
556
|
-
selectionBackground: "oklch(0.8 0 0 / 0.3)",
|
|
557
|
-
selectionForeground: "oklch(0.985 0 0)",
|
|
558
|
-
selectionInactiveBackground: "oklch(0.72 0 0 / 0.2)"
|
|
559
|
-
};
|
|
560
|
-
var LIGHT_ANSI = {
|
|
561
|
-
black: "oklch(0.35 0 0)",
|
|
562
|
-
red: "oklch(0.52 0.19 22)",
|
|
563
|
-
green: "oklch(0.5 0.13 155)",
|
|
564
|
-
yellow: "oklch(0.56 0.13 80)",
|
|
565
|
-
blue: "oklch(0.52 0.18 255)",
|
|
566
|
-
magenta: "oklch(0.52 0.16 305)",
|
|
567
|
-
cyan: "oklch(0.52 0.1 210)",
|
|
568
|
-
white: "oklch(0.7 0 0)",
|
|
569
|
-
brightBlack: "oklch(0.5 0 0)",
|
|
570
|
-
brightRed: "oklch(0.55 0.2 22)",
|
|
571
|
-
brightGreen: "oklch(0.54 0.14 155)",
|
|
572
|
-
brightYellow: "oklch(0.6 0.14 80)",
|
|
573
|
-
brightBlue: "oklch(0.48 0.19 255)",
|
|
574
|
-
brightMagenta: "oklch(0.54 0.17 305)",
|
|
575
|
-
brightCyan: "oklch(0.54 0.11 210)",
|
|
576
|
-
brightWhite: "oklch(0.3 0 0)",
|
|
577
|
-
selectionBackground: "oklch(0.45 0 0 / 0.2)",
|
|
578
|
-
selectionForeground: "oklch(0.21 0 0)",
|
|
579
|
-
selectionInactiveBackground: "oklch(0.6 0 0 / 0.14)"
|
|
580
|
-
};
|
|
581
|
-
function ogAnsiPalette(mode) {
|
|
582
|
-
return mode === "light" ? LIGHT_ANSI : DARK_ANSI;
|
|
583
|
-
}
|
|
584
|
-
function buildXtermTheme(read, mode) {
|
|
585
|
-
const ansi = ogAnsiPalette(mode);
|
|
586
|
-
const bgFallback = mode === "light" ? "#ffffff" : "#202020";
|
|
587
|
-
const fgFallback = mode === "light" ? "#242424" : "#e6e6e6";
|
|
588
|
-
const bg = read("--og-color-bg") ?? bgFallback;
|
|
589
|
-
const fg = read("--og-color-fg") ?? fgFallback;
|
|
590
|
-
const accent = read("--og-color-accent") ?? ansi.brightBlue;
|
|
591
|
-
return {
|
|
592
|
-
// Match the dock surface the terminal paints on (`--og-color-bg`).
|
|
593
|
-
background: bg,
|
|
594
|
-
foreground: fg,
|
|
595
|
-
cursor: accent,
|
|
596
|
-
cursorAccent: bg,
|
|
597
|
-
selectionBackground: ansi.selectionBackground,
|
|
598
|
-
selectionForeground: ansi.selectionForeground,
|
|
599
|
-
selectionInactiveBackground: ansi.selectionInactiveBackground,
|
|
600
|
-
black: ansi.black,
|
|
601
|
-
red: ansi.red,
|
|
602
|
-
green: ansi.green,
|
|
603
|
-
yellow: ansi.yellow,
|
|
604
|
-
blue: ansi.blue,
|
|
605
|
-
magenta: ansi.magenta,
|
|
606
|
-
cyan: ansi.cyan,
|
|
607
|
-
white: ansi.white,
|
|
608
|
-
brightBlack: ansi.brightBlack,
|
|
609
|
-
brightRed: ansi.brightRed,
|
|
610
|
-
brightGreen: ansi.brightGreen,
|
|
611
|
-
brightYellow: ansi.brightYellow,
|
|
612
|
-
brightBlue: ansi.brightBlue,
|
|
613
|
-
brightMagenta: ansi.brightMagenta,
|
|
614
|
-
brightCyan: ansi.brightCyan,
|
|
615
|
-
brightWhite: ansi.brightWhite
|
|
616
|
-
};
|
|
617
|
-
}
|
|
618
|
-
function detectMode(el, style) {
|
|
619
|
-
const closest = el.closest?.bind(el);
|
|
620
|
-
if (closest) {
|
|
621
|
-
if (closest('[data-og-theme="light"]') || closest(".og-light")) return "light";
|
|
622
|
-
const explicit = closest("[data-og-theme]");
|
|
623
|
-
if (explicit) return explicit.getAttribute("data-og-theme") === "light" ? "light" : "dark";
|
|
624
|
-
}
|
|
625
|
-
const scheme = (style.getPropertyValue("color-scheme").trim() || style.colorScheme || "").toLowerCase();
|
|
626
|
-
if (scheme.includes("light") && !scheme.includes("dark")) return "light";
|
|
627
|
-
return "dark";
|
|
628
|
-
}
|
|
629
|
-
function xtermThemeFromTokens(root) {
|
|
630
|
-
if (typeof window === "undefined" || typeof getComputedStyle === "undefined") return void 0;
|
|
631
|
-
const el = root ?? (typeof document !== "undefined" ? document.querySelector("[data-og-theme]") ?? document.documentElement : null);
|
|
632
|
-
if (!el) return void 0;
|
|
633
|
-
const style = getComputedStyle(el);
|
|
634
|
-
const read = (name) => {
|
|
635
|
-
const value = style.getPropertyValue(name).trim();
|
|
636
|
-
return value || void 0;
|
|
637
|
-
};
|
|
638
|
-
return buildXtermTheme(read, detectMode(el, style));
|
|
639
|
-
}
|
|
640
|
-
var FALLBACK_MONO = "ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";
|
|
641
|
-
function resolveTerminalFontFromReader(read, overrides) {
|
|
642
|
-
const rawFamily = overrides?.fontFamily ?? read("--og-font-mono");
|
|
643
|
-
const fontFamily = rawFamily && rawFamily.trim() && !rawFamily.includes("var(") ? rawFamily.trim() : FALLBACK_MONO;
|
|
644
|
-
let fontSize = overrides?.fontSize;
|
|
645
|
-
if (fontSize == null) {
|
|
646
|
-
const raw = read("--og-code-font-size");
|
|
647
|
-
const parsed = raw ? Number.parseFloat(raw) : Number.NaN;
|
|
648
|
-
fontSize = Number.isFinite(parsed) && parsed > 0 ? parsed : 13;
|
|
649
|
-
}
|
|
650
|
-
return { fontFamily, fontSize, lineHeight: 1.3 };
|
|
651
|
-
}
|
|
652
|
-
function resolveTerminalFont(el, overrides) {
|
|
653
|
-
const style = getComputedStyle(el);
|
|
654
|
-
const read = (name) => {
|
|
655
|
-
const value = style.getPropertyValue(name).trim();
|
|
656
|
-
return value || void 0;
|
|
657
|
-
};
|
|
658
|
-
return resolveTerminalFontFromReader(read, overrides);
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
// src/components/sandbox-terminal.tsx
|
|
662
|
-
import {
|
|
663
|
-
useEffect as useEffect2,
|
|
664
|
-
useLayoutEffect,
|
|
665
|
-
useRef as useRef2,
|
|
666
|
-
useState as useState2,
|
|
667
|
-
useSyncExternalStore
|
|
668
|
-
} from "react";
|
|
669
|
-
|
|
670
|
-
// src/lib/terminal-capability.ts
|
|
671
|
-
function terminalCanAcquirePty(cell) {
|
|
672
|
-
if (!cell?.ptyCapable) return false;
|
|
673
|
-
if (cell.transport === "pty-ws" || cell.transport === "relay-pty") return true;
|
|
674
|
-
return cell.reason === "lease_cold" || cell.reason === "not_provisioned";
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
// src/lib/xterm-renderer.ts
|
|
678
|
-
var ORDER = ["webgl", "canvas", "dom"];
|
|
679
|
-
function nextRendererTier(tier) {
|
|
680
|
-
const i = ORDER.indexOf(tier);
|
|
681
|
-
return i >= 0 && i < ORDER.length - 1 ? ORDER[i + 1] : null;
|
|
682
|
-
}
|
|
683
|
-
async function attachRenderer(prefer, loaders, onTier) {
|
|
684
|
-
const start = Math.max(0, ORDER.indexOf(prefer));
|
|
685
|
-
for (let i = start; i < ORDER.length; i++) {
|
|
686
|
-
const tier = ORDER[i];
|
|
687
|
-
if (tier === "dom") break;
|
|
688
|
-
const loader = tier === "webgl" ? loaders.webgl : loaders.canvas;
|
|
689
|
-
if (!loader) continue;
|
|
690
|
-
try {
|
|
691
|
-
const downgrade = nextRendererTier(tier) ?? "dom";
|
|
692
|
-
await loader(() => {
|
|
693
|
-
void attachRenderer(downgrade, loaders, onTier);
|
|
694
|
-
});
|
|
695
|
-
onTier(tier);
|
|
696
|
-
return tier;
|
|
697
|
-
} catch {
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
onTier("dom");
|
|
701
|
-
return "dom";
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
// src/components/sandbox-terminal.tsx
|
|
705
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
706
|
-
function terminalSurfaceState(input) {
|
|
707
|
-
if (!input.ready) return "loading";
|
|
708
|
-
if (input.acceptsInput) return "interactive";
|
|
709
|
-
if (input.inputPending) return "connecting";
|
|
710
|
-
if (input.ptyStatus === "connecting") return "connecting";
|
|
711
|
-
if (input.ptyStatus === "error") return "error";
|
|
712
|
-
if (input.booting) return "waking";
|
|
713
|
-
return "output-only";
|
|
714
|
-
}
|
|
715
|
-
function subscribeTerminalInput(term, sink, enabled) {
|
|
716
|
-
if (!enabled || !term || !sink) return null;
|
|
717
|
-
return term.onData(sink);
|
|
718
|
-
}
|
|
719
|
-
function clearTerminalBootStatus(term) {
|
|
720
|
-
term.write("\r\x1B[2K\x1B[2J\x1B[H");
|
|
721
|
-
}
|
|
722
|
-
function resetTerminal(term) {
|
|
723
|
-
if (term.reset) {
|
|
724
|
-
term.reset();
|
|
725
|
-
return;
|
|
726
|
-
}
|
|
727
|
-
term.clear();
|
|
728
|
-
term.write("\x1B[2J\x1B[3J\x1B[H");
|
|
729
|
-
}
|
|
730
|
-
function forcedRendererFailures() {
|
|
731
|
-
const raw = typeof globalThis !== "undefined" ? globalThis.__OG_FORCE_RENDERER_FAIL__ : void 0;
|
|
732
|
-
const set = /* @__PURE__ */ new Set();
|
|
733
|
-
if (typeof raw === "string") {
|
|
734
|
-
for (const tier of raw.split(/[\s,]+/)) {
|
|
735
|
-
if (tier === "webgl" || tier === "canvas") set.add(tier);
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
return set;
|
|
739
|
-
}
|
|
740
|
-
function SandboxTerminal({
|
|
741
|
-
result,
|
|
742
|
-
terminalCapability,
|
|
743
|
-
theme,
|
|
744
|
-
fontFamily,
|
|
745
|
-
fontSize,
|
|
746
|
-
liveness,
|
|
747
|
-
readOnly,
|
|
748
|
-
placeholder,
|
|
749
|
-
showHeader,
|
|
750
|
-
shell,
|
|
751
|
-
onActivate,
|
|
752
|
-
onReconnectNeeded,
|
|
753
|
-
className
|
|
754
|
-
}) {
|
|
755
|
-
const t = useOpenGeniText();
|
|
756
|
-
const containerRef = useRef2(null);
|
|
757
|
-
const termRef = useRef2(null);
|
|
758
|
-
const fitRef = useRef2(null);
|
|
759
|
-
const rendererRef = useRef2(null);
|
|
760
|
-
const writtenRef = useRef2(/* @__PURE__ */ new Set());
|
|
761
|
-
const writtenThroughRef = useRef2(0);
|
|
762
|
-
const clearedThroughRef = useRef2(0);
|
|
763
|
-
const wroteFirehoseRef = useRef2(false);
|
|
764
|
-
const bootActiveRef = useRef2(false);
|
|
765
|
-
const [ready, setReady] = useState2(false);
|
|
766
|
-
const [loadError, setLoadError] = useState2(null);
|
|
767
|
-
const peerRevision = useSyncExternalStore(
|
|
768
|
-
sandboxTerminalPeers.subscribe,
|
|
769
|
-
sandboxTerminalPeers.revision,
|
|
770
|
-
sandboxTerminalPeers.revision
|
|
771
|
-
);
|
|
772
|
-
const [inputReady, setInputReady] = useState2(false);
|
|
773
|
-
const [activated, setActivated] = useState2(false);
|
|
774
|
-
const ptyDescriptor = terminalCapability?.transport === "pty-ws" || terminalCapability?.transport === "relay-pty";
|
|
775
|
-
const ptyAttachable = terminalCanAcquirePty(terminalCapability);
|
|
776
|
-
const {
|
|
777
|
-
status: ptyStatus,
|
|
778
|
-
write: ptyWrite,
|
|
779
|
-
resize: resizePty,
|
|
780
|
-
connected: ptyConnected,
|
|
781
|
-
inputReadiness,
|
|
782
|
-
useLegacyInput
|
|
783
|
-
} = useTerminalStream({
|
|
784
|
-
// Connect only after xterm exists. This makes the renderer the sole output
|
|
785
|
-
// owner from the first websocket frame and removes an otherwise unbounded
|
|
786
|
-
// pre-mount output queue during large command bursts.
|
|
787
|
-
capability: ptyAttachable && ready ? {
|
|
788
|
-
transport: terminalCapability.transport,
|
|
789
|
-
url: ptyDescriptor ? terminalCapability.url : null,
|
|
790
|
-
token: ptyDescriptor ? terminalCapability.token : null,
|
|
791
|
-
expiresAt: ptyDescriptor ? terminalCapability.expiresAt : null,
|
|
792
|
-
ptyCapable: terminalCapability.ptyCapable,
|
|
793
|
-
reason: terminalCapability.reason
|
|
794
|
-
} : null,
|
|
795
|
-
onOutput: (data) => {
|
|
796
|
-
termRef.current?.write(data);
|
|
797
|
-
},
|
|
798
|
-
onReconnectNeeded
|
|
799
|
-
});
|
|
800
|
-
const ptyMode = ptyDescriptor;
|
|
801
|
-
const ptyCapturesInput = ptyAttachable && ptyStatus !== "error";
|
|
802
|
-
const interactive = !readOnly && (ptyAttachable ? ptyCapturesInput : result.write !== null);
|
|
803
|
-
const acceptsInput = inputReady && (!ptyAttachable || ptyConnected);
|
|
804
|
-
const inputPending = inputReady && ptyAttachable && !ptyConnected && activated;
|
|
805
|
-
let terminalModeLabel;
|
|
806
|
-
if (readOnly) terminalModeLabel = t("sandboxTerminal.readOnly");
|
|
807
|
-
else if (!ptyAttachable)
|
|
808
|
-
terminalModeLabel = acceptsInput ? null : t("sandboxTerminal.outputOnly");
|
|
809
|
-
else if (ptyStatus === "error") terminalModeLabel = t("sandboxTerminal.connectionError");
|
|
810
|
-
else if (acceptsInput)
|
|
811
|
-
terminalModeLabel = inputReadiness === "legacy" ? t("sandboxTerminal.legacyInput") : null;
|
|
812
|
-
else
|
|
813
|
-
terminalModeLabel = activated ? t("sandboxTerminal.connecting") : t("sandboxTerminal.connectOnInput");
|
|
814
|
-
const warm = sandboxAcceptsLiveIo(liveness);
|
|
815
|
-
const booting = activated && !ptyMode && !warm && liveness !== null && liveness !== void 0 && result.chunks.length === 0;
|
|
816
|
-
const surfaceState = terminalSurfaceState({
|
|
817
|
-
ready,
|
|
818
|
-
acceptsInput,
|
|
819
|
-
inputPending,
|
|
820
|
-
ptyStatus,
|
|
821
|
-
booting
|
|
822
|
-
});
|
|
823
|
-
function handleActivate() {
|
|
824
|
-
const term = termRef.current;
|
|
825
|
-
if (term && !readOnly && (ptyAttachable || result.write !== null)) {
|
|
826
|
-
term.options.disableStdin = false;
|
|
827
|
-
term.options.cursorBlink = true;
|
|
828
|
-
}
|
|
829
|
-
term?.focus();
|
|
830
|
-
if (!activated) setActivated(true);
|
|
831
|
-
onActivate?.();
|
|
832
|
-
}
|
|
833
|
-
useEffect2(() => {
|
|
834
|
-
if (typeof window === "undefined") return;
|
|
835
|
-
const el = containerRef.current;
|
|
836
|
-
if (!el) return;
|
|
837
|
-
let disposed = false;
|
|
838
|
-
const waitForSize = (node) => new Promise((resolve) => {
|
|
839
|
-
if (node.clientWidth > 0 && node.clientHeight > 0) return resolve();
|
|
840
|
-
const ro = new ResizeObserver(() => {
|
|
841
|
-
if (node.clientWidth > 0 && node.clientHeight > 0) {
|
|
842
|
-
ro.disconnect();
|
|
843
|
-
resolve();
|
|
844
|
-
}
|
|
845
|
-
});
|
|
846
|
-
ro.observe(node);
|
|
847
|
-
setTimeout(() => {
|
|
848
|
-
ro.disconnect();
|
|
849
|
-
resolve();
|
|
850
|
-
}, 1e3);
|
|
851
|
-
});
|
|
852
|
-
ensureXtermBaseCss();
|
|
853
|
-
setLoadError(null);
|
|
854
|
-
void (async () => {
|
|
855
|
-
const { Terminal, FitAddon, WebLinksAddon, loadWebgl } = await sandboxTerminalPeers.load();
|
|
856
|
-
if (disposed) return;
|
|
857
|
-
await waitForSize(el);
|
|
858
|
-
if (disposed) return;
|
|
859
|
-
const font = resolveTerminalFont(el, { fontFamily, fontSize });
|
|
860
|
-
const initialTheme = theme ?? xtermThemeFromTokens(el);
|
|
861
|
-
const term = new Terminal({
|
|
862
|
-
convertEol: true,
|
|
863
|
-
disableStdin: !interactive,
|
|
864
|
-
cursorBlink: interactive,
|
|
865
|
-
fontFamily: font.fontFamily,
|
|
866
|
-
fontSize: font.fontSize,
|
|
867
|
-
lineHeight: font.lineHeight,
|
|
868
|
-
...initialTheme ? { theme: initialTheme } : {}
|
|
869
|
-
});
|
|
870
|
-
const fit = new FitAddon();
|
|
871
|
-
term.loadAddon(fit);
|
|
872
|
-
term.loadAddon(
|
|
873
|
-
new WebLinksAddon(
|
|
874
|
-
(_e, uri) => window.open(uri, "_blank", "noopener,noreferrer")
|
|
875
|
-
)
|
|
876
|
-
);
|
|
877
|
-
term.open(el);
|
|
878
|
-
termRef.current = term;
|
|
879
|
-
fitRef.current = fit;
|
|
880
|
-
const failSet = forcedRendererFailures();
|
|
881
|
-
const loaders = {
|
|
882
|
-
webgl: async (onLoss) => {
|
|
883
|
-
if (disposed) throw new Error("Terminal was disposed");
|
|
884
|
-
if (failSet.has("webgl")) throw new Error("forced webgl failure");
|
|
885
|
-
if (!loadWebgl) throw new Error("WebGL terminal renderer is not enabled");
|
|
886
|
-
const { WebglAddon } = await loadWebgl();
|
|
887
|
-
if (disposed) throw new Error("Terminal was disposed");
|
|
888
|
-
const addon = new WebglAddon();
|
|
889
|
-
addon.onContextLoss?.(() => {
|
|
890
|
-
if (disposed) return;
|
|
891
|
-
try {
|
|
892
|
-
addon.dispose();
|
|
893
|
-
} catch {
|
|
894
|
-
}
|
|
895
|
-
onLoss();
|
|
896
|
-
});
|
|
897
|
-
term.loadAddon(addon);
|
|
898
|
-
return addon;
|
|
899
|
-
}
|
|
900
|
-
};
|
|
901
|
-
await attachRenderer("webgl", loaders, (tier) => {
|
|
902
|
-
if (disposed) return;
|
|
903
|
-
rendererRef.current = tier;
|
|
904
|
-
el.setAttribute("data-og-term-renderer", tier);
|
|
905
|
-
});
|
|
906
|
-
if (disposed) return;
|
|
907
|
-
const settle = () => {
|
|
908
|
-
try {
|
|
909
|
-
fit.fit();
|
|
910
|
-
} catch {
|
|
911
|
-
}
|
|
912
|
-
};
|
|
913
|
-
settle();
|
|
914
|
-
requestAnimationFrame(() => {
|
|
915
|
-
if (disposed) return;
|
|
916
|
-
settle();
|
|
917
|
-
el.setAttribute("data-og-term-ready", "true");
|
|
918
|
-
if (typeof globalThis.__OG_TERMINAL_DEBUG__ === "function") {
|
|
919
|
-
globalThis.__OG_TERMINAL_DEBUG__({
|
|
920
|
-
renderer: rendererRef.current,
|
|
921
|
-
fontFamily: term.options.fontFamily,
|
|
922
|
-
fontSize: term.options.fontSize,
|
|
923
|
-
hasVarInFont: String(term.options.fontFamily ?? "").includes("var("),
|
|
924
|
-
theme: term.options.theme,
|
|
925
|
-
term
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
setReady(true);
|
|
929
|
-
});
|
|
930
|
-
})().catch((cause) => {
|
|
931
|
-
if (!disposed) setLoadError(cause instanceof Error ? cause : new Error(String(cause)));
|
|
932
|
-
});
|
|
933
|
-
return () => {
|
|
934
|
-
disposed = true;
|
|
935
|
-
termRef.current?.dispose();
|
|
936
|
-
termRef.current = null;
|
|
937
|
-
fitRef.current = null;
|
|
938
|
-
rendererRef.current = null;
|
|
939
|
-
writtenRef.current = /* @__PURE__ */ new Set();
|
|
940
|
-
writtenThroughRef.current = 0;
|
|
941
|
-
wroteFirehoseRef.current = false;
|
|
942
|
-
bootActiveRef.current = false;
|
|
943
|
-
setReady(false);
|
|
944
|
-
};
|
|
945
|
-
}, [peerRevision]);
|
|
946
|
-
useLayoutEffect(() => {
|
|
947
|
-
const term = termRef.current;
|
|
948
|
-
if (!ready || !term) return;
|
|
949
|
-
term.options.disableStdin = !interactive;
|
|
950
|
-
term.options.cursorBlink = interactive;
|
|
951
|
-
}, [ready, interactive]);
|
|
952
|
-
useEffect2(() => {
|
|
953
|
-
const term = termRef.current;
|
|
954
|
-
if (!ready || !term) return;
|
|
955
|
-
const next = theme ?? xtermThemeFromTokens(containerRef.current);
|
|
956
|
-
if (next) term.options.theme = next;
|
|
957
|
-
}, [ready, theme]);
|
|
958
|
-
useEffect2(() => {
|
|
959
|
-
const term = termRef.current;
|
|
960
|
-
if (!ready || !term) return;
|
|
961
|
-
if (!booting) {
|
|
962
|
-
if (bootActiveRef.current) {
|
|
963
|
-
bootActiveRef.current = false;
|
|
964
|
-
if (!wroteFirehoseRef.current) clearTerminalBootStatus(term);
|
|
965
|
-
}
|
|
966
|
-
return;
|
|
967
|
-
}
|
|
968
|
-
bootActiveRef.current = true;
|
|
969
|
-
const start = Date.now();
|
|
970
|
-
const paint = () => {
|
|
971
|
-
const s = Math.max(0, Math.round((Date.now() - start) / 1e3));
|
|
972
|
-
term.write(
|
|
973
|
-
`\r\x1B[2K\x1B[94m\u25CF\x1B[0m \x1B[2m${t("sandboxTerminal.wakingMachineSeconds", { seconds: s })}\x1B[0m`
|
|
974
|
-
);
|
|
975
|
-
};
|
|
976
|
-
term.write("\r\n");
|
|
977
|
-
paint();
|
|
978
|
-
const id = setInterval(paint, 1e3);
|
|
979
|
-
return () => clearInterval(id);
|
|
980
|
-
}, [ready, booting, t]);
|
|
981
|
-
useEffect2(() => {
|
|
982
|
-
const term = termRef.current;
|
|
983
|
-
if (!ready || !term || ptyMode) return;
|
|
984
|
-
const shown = result.chunks.filter((chunk) => chunk.seq > clearedThroughRef.current);
|
|
985
|
-
const fresh = shown.filter((chunk) => !writtenRef.current.has(chunk.id));
|
|
986
|
-
if (fresh.length === 0) return;
|
|
987
|
-
let pending = fresh;
|
|
988
|
-
if (fresh[0].seq < writtenThroughRef.current) {
|
|
989
|
-
resetTerminal(term);
|
|
990
|
-
writtenRef.current = /* @__PURE__ */ new Set();
|
|
991
|
-
pending = shown;
|
|
992
|
-
}
|
|
993
|
-
for (const chunk of pending) {
|
|
994
|
-
writtenRef.current.add(chunk.id);
|
|
995
|
-
writtenThroughRef.current = Math.max(writtenThroughRef.current, chunk.seq);
|
|
996
|
-
wroteFirehoseRef.current = true;
|
|
997
|
-
term.write(chunk.text);
|
|
998
|
-
}
|
|
999
|
-
}, [ready, result.chunks, ptyMode]);
|
|
1000
|
-
useLayoutEffect(() => {
|
|
1001
|
-
const term = termRef.current;
|
|
1002
|
-
if (!ready || !term || !interactive) {
|
|
1003
|
-
setInputReady(false);
|
|
1004
|
-
return;
|
|
1005
|
-
}
|
|
1006
|
-
const sink = ptyAttachable ? ptyWrite : result.write;
|
|
1007
|
-
if (!sink) {
|
|
1008
|
-
setInputReady(false);
|
|
1009
|
-
return;
|
|
1010
|
-
}
|
|
1011
|
-
const sub = subscribeTerminalInput(term, sink, true);
|
|
1012
|
-
setInputReady(sub !== null);
|
|
1013
|
-
return () => sub?.dispose();
|
|
1014
|
-
}, [ready, interactive, ptyAttachable, ptyWrite, result.write]);
|
|
1015
|
-
useEffect2(() => {
|
|
1016
|
-
const term = termRef.current;
|
|
1017
|
-
if (!ready || !term || !ptyMode) return;
|
|
1018
|
-
resizePty(term.cols, term.rows);
|
|
1019
|
-
const sub = term.onResize(({ cols, rows }) => resizePty(cols, rows));
|
|
1020
|
-
return () => sub.dispose();
|
|
1021
|
-
}, [ready, ptyMode, ptyConnected, resizePty]);
|
|
1022
|
-
useEffect2(() => {
|
|
1023
|
-
if (typeof window === "undefined") return;
|
|
1024
|
-
const refit = () => {
|
|
1025
|
-
try {
|
|
1026
|
-
fitRef.current?.fit();
|
|
1027
|
-
} catch {
|
|
1028
|
-
}
|
|
1029
|
-
};
|
|
1030
|
-
window.addEventListener("resize", refit);
|
|
1031
|
-
let observer = null;
|
|
1032
|
-
const el = containerRef.current;
|
|
1033
|
-
if (el && typeof ResizeObserver !== "undefined") {
|
|
1034
|
-
observer = new ResizeObserver(() => refit());
|
|
1035
|
-
observer.observe(el);
|
|
1036
|
-
}
|
|
1037
|
-
return () => {
|
|
1038
|
-
window.removeEventListener("resize", refit);
|
|
1039
|
-
observer?.disconnect();
|
|
1040
|
-
};
|
|
1041
|
-
}, [ready]);
|
|
1042
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("relative flex h-full w-full flex-col overflow-hidden", className), children: [
|
|
1043
|
-
showHeader && /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center justify-between gap-2 border-b border-og-border px-2 py-1 text-og-xs text-og-fg-subtle", children: [
|
|
1044
|
-
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
1045
|
-
/* @__PURE__ */ jsx(
|
|
1046
|
-
"span",
|
|
1047
|
-
{
|
|
1048
|
-
className: cn(
|
|
1049
|
-
"size-1.5 shrink-0 rounded-full",
|
|
1050
|
-
result.running ? "bg-og-status-running" : "bg-og-fg-subtle"
|
|
1051
|
-
)
|
|
1052
|
-
}
|
|
1053
|
-
),
|
|
1054
|
-
/* @__PURE__ */ jsxs("span", { className: "truncate font-og-mono", children: [
|
|
1055
|
-
t("sandboxTerminal.pty"),
|
|
1056
|
-
" ",
|
|
1057
|
-
shell ?? t("sandboxTerminal.shell")
|
|
1058
|
-
] })
|
|
1059
|
-
] }),
|
|
1060
|
-
/* @__PURE__ */ jsxs("span", { className: "flex shrink-0 items-center gap-2", children: [
|
|
1061
|
-
terminalModeLabel && /* @__PURE__ */ jsx(
|
|
1062
|
-
"span",
|
|
1063
|
-
{
|
|
1064
|
-
className: "rounded-og-sm bg-og-surface-2 px-1.5 py-0.5 text-og-xs uppercase tracking-wide",
|
|
1065
|
-
role: "status",
|
|
1066
|
-
title: inputReadiness === "legacy" ? t("sandboxTerminal.shellReadinessIsNotGuaranteed") : void 0,
|
|
1067
|
-
children: terminalModeLabel
|
|
1068
|
-
}
|
|
1069
|
-
),
|
|
1070
|
-
/* @__PURE__ */ jsx(
|
|
1071
|
-
"button",
|
|
1072
|
-
{
|
|
1073
|
-
type: "button",
|
|
1074
|
-
onClick: () => {
|
|
1075
|
-
termRef.current?.clear();
|
|
1076
|
-
clearedThroughRef.current = Math.max(
|
|
1077
|
-
clearedThroughRef.current,
|
|
1078
|
-
writtenThroughRef.current
|
|
1079
|
-
);
|
|
1080
|
-
wroteFirehoseRef.current = false;
|
|
1081
|
-
},
|
|
1082
|
-
className: "rounded-og-sm px-1.5 py-0.5 text-og-xs hover:text-og-fg pointer-coarse:min-h-11",
|
|
1083
|
-
children: t("sandboxTerminal.clear")
|
|
1084
|
-
}
|
|
1085
|
-
)
|
|
1086
|
-
] })
|
|
1087
|
-
] }),
|
|
1088
|
-
ptyAttachable && !readOnly && !showHeader && inputReadiness === "legacy" && /* @__PURE__ */ jsx("p", { role: "status", className: "shrink-0 px-3 py-1 text-og-xs text-og-fg-subtle", children: t("sandboxTerminal.legacyInputWaitForShell") }),
|
|
1089
|
-
ptyAttachable && !readOnly && inputReadiness === "waiting" && /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 flex-wrap items-center justify-between gap-2 border-b border-og-border px-3 py-2 text-og-xs text-og-fg-subtle", children: [
|
|
1090
|
-
/* @__PURE__ */ jsx("span", { role: "status", children: t("sandboxTerminal.waitingForShellReadinessManual") }),
|
|
1091
|
-
/* @__PURE__ */ jsx(
|
|
1092
|
-
"button",
|
|
1093
|
-
{
|
|
1094
|
-
type: "button",
|
|
1095
|
-
onClick: () => {
|
|
1096
|
-
useLegacyInput();
|
|
1097
|
-
termRef.current?.focus();
|
|
1098
|
-
},
|
|
1099
|
-
title: t("sandboxTerminal.useForStartupPromptsOr"),
|
|
1100
|
-
className: "shrink-0 rounded-og-sm px-2 py-1 text-og-fg hover:bg-og-surface-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-og-accent pointer-coarse:min-h-11",
|
|
1101
|
-
children: t("sandboxTerminal.useManualInput")
|
|
1102
|
-
}
|
|
1103
|
-
)
|
|
1104
|
-
] }),
|
|
1105
|
-
/* @__PURE__ */ jsxs(
|
|
1106
|
-
"div",
|
|
1107
|
-
{
|
|
1108
|
-
className: "relative min-h-0 flex-1 bg-og-bg p-3",
|
|
1109
|
-
onPointerDownCapture: handleActivate,
|
|
1110
|
-
onFocusCapture: handleActivate,
|
|
1111
|
-
children: [
|
|
1112
|
-
!ready && (loadError ? /* @__PURE__ */ jsx("p", { role: "alert", children: loadError.message }) : placeholder ?? /* @__PURE__ */ jsx(TerminalPlaceholder, {})),
|
|
1113
|
-
/* @__PURE__ */ jsx(
|
|
1114
|
-
"div",
|
|
1115
|
-
{
|
|
1116
|
-
ref: containerRef,
|
|
1117
|
-
className: "h-full w-full",
|
|
1118
|
-
style: { visibility: ready ? "visible" : "hidden" },
|
|
1119
|
-
"data-opengeni-terminal": true,
|
|
1120
|
-
"data-opengeni-terminal-ready": ready ? "true" : "false",
|
|
1121
|
-
"data-opengeni-terminal-interactive": surfaceState === "interactive" ? "true" : "false",
|
|
1122
|
-
"data-opengeni-terminal-state": surfaceState,
|
|
1123
|
-
"data-opengeni-terminal-status": ptyAttachable ? ptyStatus : "firehose",
|
|
1124
|
-
"data-opengeni-terminal-input-readiness": ptyAttachable ? inputReadiness : "firehose"
|
|
1125
|
-
}
|
|
1126
|
-
)
|
|
1127
|
-
]
|
|
1128
|
-
}
|
|
1129
|
-
)
|
|
1130
|
-
] });
|
|
1131
|
-
}
|
|
1132
|
-
var XTERM_STYLE_ID = "opengeni-xterm-base-css";
|
|
1133
|
-
var XTERM_BASE_CSS = `
|
|
1134
|
-
.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}
|
|
1135
|
-
.xterm.focus,.xterm:focus{outline:none}
|
|
1136
|
-
.xterm .xterm-helpers{position:absolute;top:0;z-index:5}
|
|
1137
|
-
.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}
|
|
1138
|
-
.xterm .composition-view{background:var(--og-color-bg);color:var(--og-color-fg);display:none;position:absolute;white-space:nowrap;z-index:1}
|
|
1139
|
-
.xterm .composition-view.active{display:block}
|
|
1140
|
-
.xterm .xterm-viewport{background-color:transparent;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}
|
|
1141
|
-
.xterm .xterm-screen{position:relative}
|
|
1142
|
-
.xterm .xterm-screen canvas{position:absolute;left:0;top:0}
|
|
1143
|
-
.xterm .xterm-scroll-area{visibility:hidden}
|
|
1144
|
-
.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}
|
|
1145
|
-
.xterm.enable-mouse-events{cursor:default}
|
|
1146
|
-
.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}
|
|
1147
|
-
.xterm.column-select.focus{cursor:crosshair}
|
|
1148
|
-
.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}
|
|
1149
|
-
.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}
|
|
1150
|
-
.xterm .xterm-accessibility-tree{user-select:text;white-space:pre}
|
|
1151
|
-
.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
|
|
1152
|
-
.xterm-dim{opacity:1!important}
|
|
1153
|
-
.xterm-underline-1{text-decoration:underline}
|
|
1154
|
-
.xterm-underline-2{text-decoration:double underline}
|
|
1155
|
-
.xterm-underline-3{text-decoration:wavy underline}
|
|
1156
|
-
.xterm-underline-4{text-decoration:dotted underline}
|
|
1157
|
-
.xterm-underline-5{text-decoration:dashed underline}
|
|
1158
|
-
.xterm-overline{text-decoration:overline}
|
|
1159
|
-
.xterm-strikethrough{text-decoration:line-through}
|
|
1160
|
-
.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}
|
|
1161
|
-
.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}
|
|
1162
|
-
.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}
|
|
1163
|
-
.xterm-decoration-top{z-index:2;position:relative}
|
|
1164
|
-
`;
|
|
1165
|
-
function ensureXtermBaseCss() {
|
|
1166
|
-
if (typeof document === "undefined") return;
|
|
1167
|
-
if (document.getElementById(XTERM_STYLE_ID)) return;
|
|
1168
|
-
const style = document.createElement("style");
|
|
1169
|
-
style.id = XTERM_STYLE_ID;
|
|
1170
|
-
style.textContent = XTERM_BASE_CSS;
|
|
1171
|
-
document.head.appendChild(style);
|
|
1172
|
-
}
|
|
1173
|
-
function TerminalPlaceholder() {
|
|
1174
|
-
const t = useOpenGeniText();
|
|
1175
|
-
return /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center text-og-sm text-og-fg-subtle", children: t("sandboxTerminal.loadingTerminal") });
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
export {
|
|
1179
|
-
useTerminalStream,
|
|
1180
|
-
xtermThemeFromTokens,
|
|
1181
|
-
terminalCanAcquirePty,
|
|
1182
|
-
SandboxTerminal
|
|
1183
|
-
};
|
|
1184
|
-
//# sourceMappingURL=chunk-5WUN7XPD.js.map
|