@opengeni/react 6.36.0 → 6.36.1-canary.45113772604001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/app-state.js +10 -10
- package/dist/app/components/Composer.js +19 -19
- package/dist/app/components/agent/agent-capability-picker.js +6 -6
- package/dist/app/components/agents/agent-can-use.js +21 -20
- package/dist/app/components/agents/agent-form-page.js +69 -65
- package/dist/app/components/agents/agent-form-page.js.map +1 -1
- package/dist/app/components/agents/agent-page.js +68 -64
- package/dist/app/components/agents/agent-setup-sections.js +40 -36
- package/dist/app/components/agents/agent-skills.js +5 -5
- package/dist/app/components/agents/agent-trigger-chat-field.js +4 -4
- package/dist/app/components/agents/agent-trigger-dialog.js +20 -17
- package/dist/app/components/agents/agent-trigger-model.d.ts +14 -0
- package/dist/app/components/agents/agent-trigger-picker.js +6 -5
- package/dist/app/components/agents/agent-trigger-repositories.d.ts +9 -0
- package/dist/app/components/agents/agent-trigger-repositories.js +31 -0
- package/dist/app/components/agents/agents-page.css +1905 -0
- package/dist/app/components/agents/agents-page.css.map +1 -0
- package/dist/app/components/agents/agents-page.js +106 -61
- package/dist/app/components/agents/agents-page.js.map +1 -1
- package/dist/app/components/agents/composer-agent-chip.js +29 -29
- package/dist/app/components/agents/session-agent-chip.js +29 -29
- package/dist/app/components/artifacts/app-package.js +3 -3
- package/dist/app/components/artifacts/app-server-status.d.ts +22 -0
- package/dist/app/components/artifacts/app-server-status.js +13 -0
- package/dist/app/components/artifacts/artifact-library.css +1905 -0
- package/dist/app/components/artifacts/artifact-library.css.map +1 -0
- package/dist/app/components/artifacts/artifact-library.js +8 -8
- package/dist/app/components/artifacts/artifact-viewer.css +1905 -0
- package/dist/app/components/artifacts/artifact-viewer.css.map +1 -0
- package/dist/app/components/artifacts/artifact-viewer.js +30 -30
- package/dist/app/components/artifacts/chat-interactive-block.js +16 -16
- package/dist/app/components/artifacts/file-reach-dialog.js +6 -6
- package/dist/app/components/artifacts/inline-chat-image.js +28 -28
- package/dist/app/components/artifacts/ready-made-apps.css +1905 -0
- package/dist/app/components/artifacts/ready-made-apps.css.map +1 -0
- package/dist/app/components/artifacts/ready-made-apps.d.ts +3 -0
- package/dist/app/components/artifacts/ready-made-apps.js +40 -0
- package/dist/app/components/artifacts/retained-file-preview.js +30 -30
- package/dist/app/components/artifacts/retained-text-preview.js +3 -3
- package/dist/app/components/artifacts/site-actions.js +1 -1
- package/dist/app/components/artifacts/site-audience.js +3 -3
- package/dist/app/components/artifacts/site-conversations.js +15 -15
- package/dist/app/components/artifacts/site-data.js +11 -11
- package/dist/app/components/artifacts/site-publishing-page.js +32 -32
- package/dist/app/components/artifacts/site-publishing.js +24 -24
- package/dist/app/components/artifacts/site-settings.js +31 -31
- package/dist/app/components/artifacts/site-version-menu.js +4 -4
- package/dist/app/components/billing-class-mark.js +3 -3
- package/dist/app/components/capabilities/capability-detail-sheet.js +7 -7
- package/dist/app/components/capabilities/capability-logo-source.js +15 -14
- package/dist/app/components/capabilities/connector-tool-permissions.js +4 -4
- package/dist/app/components/capabilities/native-connect-setup.js +16 -15
- package/dist/app/components/capabilities/own-logins-shared-heads-up.js +3 -3
- package/dist/app/components/capabilities/perform-capability-action.js +1 -1
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +17 -16
- package/dist/app/components/capabilities/session-capability-card.js +70 -69
- package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.js +22 -22
- package/dist/app/components/capabilities/session-connect-inputs-card.js +16 -15
- package/dist/app/components/capabilities/session-custom-mcp-card.js +18 -17
- package/dist/app/components/capabilities/session-github-card.js +19 -18
- package/dist/app/components/capabilities/session-machine-card.js +21 -21
- package/dist/app/components/capabilities/session-personal-github-card.js +16 -15
- package/dist/app/components/capabilities/session-plugin-card.js +9 -9
- package/dist/app/components/capabilities/use-connection-accounts.js +1 -1
- package/dist/app/components/command-menu/chat-status.js +18 -18
- package/dist/app/components/command-menu/chat-switcher.js +47 -47
- package/dist/app/components/command-menu/command-menu.js +58 -58
- package/dist/app/components/command-menu/shortcut-sheet.js +15 -15
- package/dist/app/components/composer-capabilities-menu-body.js +4 -4
- package/dist/app/components/composer-mobile-plus-panel.js +9 -9
- package/dist/app/components/composer-mobile-plus.js +1 -1
- package/dist/app/components/credit-required-gate.js +1 -1
- package/dist/app/components/credit-required-prompt.js +11 -11
- package/dist/app/components/credits/checkout-credits-celebration.js +2 -2
- package/dist/app/components/credits/checkout-return.js +2 -2
- package/dist/app/components/credits/credit-refusal-notice.js +2 -2
- package/dist/app/components/desktop/app-shots.js +7 -7
- package/dist/app/components/desktop/computer-use.js +2 -2
- package/dist/app/components/desktop/this-computer.js +5 -5
- package/dist/app/components/feedback.js +3 -3
- package/dist/app/components/follow-up-repository-menu-body.js +2 -2
- package/dist/app/components/follow-up-repository-picker.js +1 -1
- package/dist/app/components/github-app-connect-launcher.js +1 -1
- package/dist/app/components/machines/connect-machine-dialog.js +11 -11
- package/dist/app/components/markdown.js +7 -7
- package/dist/app/components/models/models-ui.js +6 -6
- package/dist/app/components/models/subscription-usage.js +5 -5
- package/dist/app/components/my-things.js +4 -4
- package/dist/app/components/own-where-it-works.js +3 -3
- package/dist/app/components/personal-resource-attachment-surface.js +4 -4
- package/dist/app/components/pickers.js +6 -6
- package/dist/app/components/rail/channel-create-dialog.js +3 -3
- package/dist/app/components/rail/project-glyph.js +29 -29
- package/dist/app/components/rail/project-profile.js +36 -36
- package/dist/app/components/rail/rail-context.js +1 -1
- package/dist/app/components/rail/rail-sections.js +80 -80
- package/dist/app/components/rail/session-header.js +64 -64
- package/dist/app/components/rail/session-list.js +78 -78
- package/dist/app/components/rail/session-row-content.js +4 -4
- package/dist/app/components/rail/session-row-hover-details.js +20 -20
- package/dist/app/components/rail/session-shell.js +102 -102
- package/dist/app/components/rail/site-session-group-heading.js +14 -14
- package/dist/app/components/repository-picker.js +2 -2
- package/dist/app/components/session/agent-configuration-panel.js +16 -16
- package/dist/app/components/session/artifact-session-page.js +1 -1
- package/dist/app/components/session/banners.js +9 -9
- package/dist/app/components/session/chat-avatar.js +29 -29
- package/dist/app/components/session/console-new-conversation.js +51 -51
- package/dist/app/components/session/descendant-requests.js +46 -46
- package/dist/app/components/session/editable-artifacts-workspace.css +1905 -0
- package/dist/app/components/session/editable-artifacts-workspace.css.map +1 -0
- package/dist/app/components/session/editable-artifacts-workspace.js +22 -22
- package/dist/app/components/session/failed-session-banner.js +10 -10
- 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 +42 -42
- package/dist/app/components/session/inspector.js +56 -56
- package/dist/app/components/session/linked-panel.js +3 -3
- package/dist/app/components/session/message-actions.js +3 -3
- package/dist/app/components/session/model-recovery-notice.js +3 -3
- package/dist/app/components/session/new-session-settings-menu.js +11 -11
- package/dist/app/components/session/new-session-setup-strip.js +30 -30
- package/dist/app/components/session/pull-request-panel.js +11 -11
- package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
- package/dist/app/components/session/sandbox-switcher.js +8 -8
- package/dist/app/components/session/sandbox-workspace.js +58 -58
- package/dist/app/components/session/search-markdown-highlight.js +8 -8
- package/dist/app/components/session/search-results-view.js +9 -9
- package/dist/app/components/session/session-admin-access.js +4 -4
- package/dist/app/components/session/session-admission-notice.js +4 -4
- package/dist/app/components/session/session-avatar-picker.js +30 -30
- package/dist/app/components/session/session-avatar.js +28 -28
- package/dist/app/components/session/session-machine-access-notice.js +4 -4
- package/dist/app/components/session/session-profile-dialog.js +34 -34
- package/dist/app/components/session/session-profile-editor.js +35 -35
- package/dist/app/components/session/session-retention.js +4 -4
- package/dist/app/components/session/session-search-dialog.js +9 -9
- package/dist/app/components/session/session-tenancy-control.js +8 -8
- package/dist/app/components/session/session-usage-limit-section.js +4 -4
- package/dist/app/components/session/share-chat-dialog.js +6 -6
- package/dist/app/components/session/subagents.js +13 -13
- package/dist/app/components/session/subscription-account-indicator.js +11 -11
- package/dist/app/components/session/subscription-account-menu.js +6 -6
- package/dist/app/components/settings/row-select.js +4 -4
- package/dist/app/components/toaster.js +2 -2
- package/dist/app/components/transcription-settings.js +6 -6
- package/dist/app/components/ui/destructive-confirm.js +5 -5
- package/dist/app/components/usage/usage-entry.js +3 -3
- package/dist/app/components/window-bar.js +13 -13
- package/dist/app/components/workspace-composer-plus.js +18 -17
- package/dist/app/components/workspace-reach.js +4 -4
- package/dist/app/embed/session-app.js +241 -240
- package/dist/app/lib/actions/actions-provider.js +12 -12
- package/dist/app/lib/agent-capabilities.js +3 -3
- package/dist/app/lib/app-connect-card.js +9 -9
- package/dist/app/lib/app-shared-key-dialog.js +4 -4
- package/dist/app/lib/app-sync-opt-in.js +3 -3
- package/dist/app/lib/codex-usage-query.js +2 -2
- package/dist/app/lib/composer-connectors.js +16 -15
- package/dist/app/lib/console-site.js +5 -5
- package/dist/app/lib/console-text.js +2 -2
- package/dist/app/lib/events.js +18 -18
- package/dist/app/lib/failed-session-copy.js +3 -3
- 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/needs-you.d.ts +2 -1
- package/dist/app/lib/needs-you.js +1 -1
- package/dist/app/lib/ready-made-apps.d.ts +14 -0
- package/dist/app/lib/ready-made-apps.js +8 -0
- package/dist/app/lib/session-branch-cache.js +13 -13
- package/dist/app/lib/session-capabilities.js +1 -1
- package/dist/app/lib/session-create.js +4 -4
- package/dist/app/lib/session-group-pagination.js +13 -13
- package/dist/app/lib/session-hover-facts.js +17 -17
- package/dist/app/lib/session-list-dirty-scopes.js +14 -14
- package/dist/app/lib/session-model.js +2 -2
- package/dist/app/lib/session-rail.js +10 -10
- package/dist/app/lib/session-rename.js +3 -3
- package/dist/app/lib/sessions-group.js +12 -12
- package/dist/app/lib/site-tool-consent-dialog.js +8 -8
- package/dist/app/lib/site-tool-consent.js +1 -1
- package/dist/app/lib/turn-failure-analytics.js +4 -4
- package/dist/app/lib/use-follow-up-repositories.js +3 -3
- package/dist/app/lib/use-workspace-machines.js +4 -4
- package/dist/app/lib/use-workspace-model-catalog.js +3 -3
- 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/app-page-view.js +10 -10
- package/dist/app/routes/app-page.js +1 -1
- package/dist/app/routes/artifacts.css +1905 -0
- package/dist/app/routes/artifacts.css.map +1 -0
- package/dist/app/routes/artifacts.js +105 -94
- package/dist/app/routes/artifacts.js.map +1 -1
- package/dist/app/routes/retained-artifact.js +47 -47
- package/dist/app/routes/session-unavailable.js +2 -2
- package/dist/app/routes/session.js +131 -130
- package/dist/app/routes/sessions-index-hydration.js +5 -5
- package/dist/app/routes/sessions-index.js +108 -107
- package/dist/app/routes/site-view.js +107 -95
- package/dist/app/routes/site-view.js.map +1 -1
- package/dist/approval-review-model.js +2 -2
- package/dist/artifacts-document.js +4 -4
- package/dist/artifacts-presentation.js +5 -5
- package/dist/artifacts-spreadsheet.js +4 -4
- package/dist/artifacts.js +15 -15
- package/dist/automation-model.js +5 -5
- package/dist/automations.d.ts +1 -0
- package/dist/automations.js +29 -22
- package/dist/automations.js.map +1 -1
- package/dist/browser-viewer-EPGAK2W6.js +23 -0
- package/dist/chat-interactive-block-65YU6TMO.js +22 -0
- package/dist/chunk-25ODMMHH.js +403 -0
- package/dist/chunk-266ZPUMH.js +400 -0
- package/dist/chunk-2A7SB7UR.js +168 -0
- package/dist/chunk-2EU4Y7A7.js +100 -0
- package/dist/chunk-2F7VSGRS.js +1177 -0
- package/dist/chunk-2F7VSGRS.js.map +1 -0
- package/dist/chunk-2L6B6766.js +5915 -0
- package/dist/chunk-2L6B6766.js.map +1 -0
- package/dist/chunk-2LBYEHBH.js +570 -0
- package/dist/chunk-2MHIIF4N.js +141 -0
- package/dist/chunk-2SHWGDAA.js +283 -0
- package/dist/chunk-2VX42S4W.js +773 -0
- package/dist/chunk-2WGJQ4XK.js +311 -0
- package/dist/chunk-2XSF44TY.js +15 -0
- package/dist/chunk-33HUZMNE.js +639 -0
- package/dist/chunk-36IKHM4Q.js +148 -0
- package/dist/chunk-3JVQZAXQ.js +4480 -0
- package/dist/chunk-3SDESU6U.js +287 -0
- package/dist/chunk-3VXZFBP6.js +292 -0
- package/dist/chunk-3WDNCSVU.js +197 -0
- package/dist/chunk-3WDNCSVU.js.map +1 -0
- package/dist/chunk-3YKED2ZV.js +307 -0
- package/dist/chunk-3ZNOKD3S.js +1019 -0
- package/dist/chunk-45SB4UK3.js +2580 -0
- package/dist/chunk-47BETTVA.js +133 -0
- package/dist/chunk-4BTQ473O.js +274 -0
- package/dist/chunk-4JQRWJVR.js +249 -0
- package/dist/chunk-4NGIKV2W.js +316 -0
- package/dist/chunk-4NGIKV2W.js.map +1 -0
- package/dist/chunk-4R6WFQKZ.js +202 -0
- package/dist/chunk-4WEPVL7X.js +283 -0
- package/dist/chunk-4YWHOAB4.js +201 -0
- package/dist/chunk-52XGYRVS.js +155 -0
- package/dist/chunk-5G6UHUJZ.js +43 -0
- package/dist/chunk-5HFITPHH.js +229 -0
- package/dist/chunk-5LVVN2K7.js +650 -0
- package/dist/chunk-5PVXFVIT.js +48 -0
- package/dist/chunk-5WFGW7B7.js +187 -0
- package/dist/chunk-5YMSLKJP.js +92 -0
- package/dist/chunk-5YMSLKJP.js.map +1 -0
- package/dist/chunk-66M7RVM6.js +3070 -0
- package/dist/chunk-6AGNZI2W.js +437 -0
- package/dist/chunk-6ENO634Y.js +373 -0
- package/dist/chunk-6LQ5KEMP.js +200 -0
- package/dist/chunk-6QGIWLH5.js +428 -0
- package/dist/chunk-6WEDWD4N.js +170 -0
- package/dist/chunk-6YCYPXDA.js +114 -0
- package/dist/chunk-6YTNMDFP.js +318 -0
- package/dist/chunk-73O7NO3F.js +50 -0
- package/dist/chunk-76VXLTQF.js +251 -0
- package/dist/chunk-7EJ7PSZT.js +93 -0
- package/dist/chunk-7GS2MGFU.js +27 -0
- package/dist/chunk-7MF6MFHS.js +406 -0
- package/dist/chunk-7N35XBSC.js +386 -0
- package/dist/chunk-7ND2VMKV.js +270 -0
- package/dist/chunk-7RVJLO3N.js +154 -0
- package/dist/chunk-7VAILBP6.js +353 -0
- package/dist/chunk-7VSJQWFO.js +37 -0
- package/dist/chunk-7YKUIKGH.js +335 -0
- package/dist/chunk-A7DS77WC.js +138 -0
- package/dist/chunk-ABGHRGID.js +376 -0
- package/dist/chunk-ABGHRGID.js.map +1 -0
- package/dist/chunk-AEH34OOU.js +298 -0
- package/dist/chunk-ANWMRO2G.js +554 -0
- package/dist/chunk-APGUIORF.js +247 -0
- package/dist/chunk-ASCVQJB4.js +1309 -0
- package/dist/chunk-AVYFJKQS.js +10044 -0
- package/dist/chunk-AVYFJKQS.js.map +1 -0
- package/dist/chunk-AY4XH73V.js +1333 -0
- package/dist/chunk-B6AH43UQ.js +2434 -0
- package/dist/chunk-BBZUHH4F.js +154 -0
- package/dist/chunk-BBZUHH4F.js.map +1 -0
- package/dist/chunk-BGT43KDL.js +42 -0
- package/dist/chunk-BHS4KW4W.js +3851 -0
- package/dist/chunk-BJUDGPOD.js +1803 -0
- package/dist/chunk-BJUDGPOD.js.map +1 -0
- package/dist/chunk-BNWO72C2.js +851 -0
- package/dist/chunk-BSPIASSQ.js +2551 -0
- package/dist/chunk-BVWJEZXG.js +230 -0
- package/dist/chunk-BZ47G3VP.js +366 -0
- package/dist/chunk-C6KI5P3H.js +72 -0
- package/dist/chunk-CLERWAEA.js +2317 -0
- package/dist/chunk-CNRFFCAE.js +572 -0
- package/dist/chunk-CPC6CYVW.js +236 -0
- package/dist/chunk-D23UAPXK.js +107 -0
- package/dist/chunk-DAPZEB4R.js +29 -0
- package/dist/chunk-DEDEA3WS.js +205 -0
- package/dist/chunk-DHVA3T3K.js +271 -0
- package/dist/chunk-DJQ6TKIP.js +391 -0
- package/dist/chunk-DK2CDAMR.js +33 -0
- package/dist/chunk-DPOB6MUS.js +278 -0
- package/dist/chunk-DSO7S6PZ.js +137 -0
- package/dist/chunk-DV3OECO6.js +333 -0
- package/dist/chunk-DW2IQRMB.js +1187 -0
- package/dist/chunk-DWLPQTDL.js +134 -0
- package/dist/chunk-DXMKECFR.js +3176 -0
- package/dist/chunk-DYQRNIID.js +73 -0
- package/dist/chunk-DZLWO73N.js +129 -0
- package/dist/chunk-DZZSFPMW.js +66 -0
- package/dist/chunk-DZZSFPMW.js.map +1 -0
- package/dist/chunk-E2GNUL64.js +107 -0
- package/dist/chunk-E7XU2KHD.js +192 -0
- package/dist/chunk-ENYULVQW.js +114 -0
- package/dist/chunk-EWHQ3DFM.js +41 -0
- package/dist/chunk-F2T4J7CK.js +4957 -0
- package/dist/chunk-F2T4J7CK.js.map +1 -0
- package/dist/chunk-F3LIUDXN.js +738 -0
- package/dist/chunk-F5C7DTVR.js +103 -0
- package/dist/chunk-F5NFGBIN.js +391 -0
- package/dist/chunk-F6XJLGOV.js +175 -0
- package/dist/chunk-F7T2STMX.js +158 -0
- package/dist/chunk-FAEVOM6B.js +371 -0
- package/dist/chunk-FCFAXQDM.js +276 -0
- package/dist/chunk-FEQVCQMK.js +138 -0
- package/dist/chunk-FLD4VOJW.js +4565 -0
- package/dist/chunk-FLD4VOJW.js.map +1 -0
- package/dist/chunk-FLDF2Z44.js +396 -0
- package/dist/chunk-GADABL3P.js +772 -0
- package/dist/chunk-GFUDB3SA.js +140 -0
- package/dist/chunk-GGPZPBHS.js +215 -0
- package/dist/chunk-GIEGIEMT.js +311 -0
- package/dist/chunk-GKWFQEO3.js +187 -0
- package/dist/chunk-GMMB4NCN.js +250 -0
- package/dist/chunk-GN4FOL2G.js +269 -0
- package/dist/chunk-GQJAMANY.js +469 -0
- package/dist/chunk-H7F4ANJQ.js +379 -0
- package/dist/chunk-HEPFJ3XQ.js +3110 -0
- package/dist/chunk-HLRAQITA.js +234 -0
- package/dist/chunk-HXYSZKCC.js +117 -0
- package/dist/chunk-I5Q6FVHP.js +828 -0
- package/dist/chunk-I7M5BYJU.js +265 -0
- package/dist/chunk-IH3J7VWW.js +85 -0
- package/dist/chunk-IMMDXSZ4.js +178 -0
- package/dist/chunk-IOMZDY5D.js +199 -0
- package/dist/chunk-IQTCUUDF.js +1236 -0
- package/dist/chunk-ISR6KXWT.js +898 -0
- package/dist/chunk-IWPPGXUZ.js +3321 -0
- package/dist/chunk-IYKO6BBK.js +3854 -0
- package/dist/chunk-IYKO6BBK.js.map +1 -0
- package/dist/chunk-IYUZPNMU.js +79 -0
- package/dist/chunk-IYUZPNMU.js.map +1 -0
- package/dist/chunk-JNPCRNPA.js +84 -0
- package/dist/chunk-JSJGGP32.js +505 -0
- package/dist/chunk-JZZUEJYD.js +56 -0
- package/dist/chunk-K5XFZKK5.js +270 -0
- package/dist/chunk-K6GRTSEA.js +65 -0
- package/dist/chunk-KA4PZU3Q.js +103 -0
- package/dist/chunk-KGZ35ESO.js +83 -0
- package/dist/chunk-KRM4PW5N.js +1021 -0
- package/dist/chunk-KSNKF6FE.js +551 -0
- package/dist/chunk-KSNKF6FE.js.map +1 -0
- package/dist/chunk-LEZGGRDQ.js +1095 -0
- package/dist/chunk-LFWMFFKT.js +144 -0
- package/dist/chunk-LKSPUZPH.js +849 -0
- package/dist/chunk-LLX4S6BI.js +401 -0
- package/dist/chunk-M4WEF4DZ.js +850 -0
- package/dist/chunk-MATYGLUT.js +121 -0
- package/dist/chunk-MDI6SH7B.js +27 -0
- package/dist/chunk-MQO7MSA6.js +43 -0
- package/dist/chunk-MQO7MSA6.js.map +1 -0
- package/dist/chunk-MQTYIBY6.js +263 -0
- package/dist/chunk-MRKY2GL5.js +1185 -0
- package/dist/chunk-MSIQ42IY.js +794 -0
- package/dist/chunk-MVGU7BET.js +357 -0
- package/dist/chunk-MWY4TBDY.js +404 -0
- package/dist/chunk-NGQCWCD6.js +234 -0
- package/dist/chunk-NKXMIOYN.js +538 -0
- package/dist/chunk-NMVRFFCR.js +256 -0
- package/dist/chunk-NNTDIKJP.js +407 -0
- package/dist/chunk-NQXCPP4G.js +98 -0
- package/dist/chunk-NYGS6FNV.js +132 -0
- package/dist/chunk-O3LOQDTI.js +176 -0
- package/dist/chunk-O5HRZ2KG.js +818 -0
- package/dist/chunk-O5PZRVQR.js +214 -0
- package/dist/chunk-O6KR5SN7.js +399 -0
- package/dist/chunk-OBKDRV2H.js +259 -0
- package/dist/chunk-OBKKUBGL.js +107 -0
- package/dist/chunk-OFYXDB6I.js +52 -0
- package/dist/chunk-OLMWJGSJ.js +50 -0
- package/dist/chunk-OO7N6APA.js +598 -0
- package/dist/chunk-OO7N6APA.js.map +1 -0
- package/dist/chunk-ORRACKLB.js +1263 -0
- package/dist/chunk-P426WWAB.js +351 -0
- package/dist/chunk-P4GOY3ZL.js +177 -0
- package/dist/chunk-P4KVJLUC.js +129 -0
- package/dist/chunk-P4N7ZS6W.js +56 -0
- package/dist/chunk-P6LSLNSL.js +209 -0
- package/dist/chunk-P7MQCSML.js +77 -0
- package/dist/chunk-P7MQCSML.js.map +1 -0
- package/dist/chunk-PAFSIDM2.js +111 -0
- package/dist/chunk-PC2JAIAH.js +117 -0
- package/dist/chunk-PGSXT5OY.js +207 -0
- package/dist/chunk-QDMGUTOU.js +2984 -0
- package/dist/chunk-QEMDQKQT.js +1356 -0
- package/dist/chunk-QK7VU5N3.js +2412 -0
- package/dist/chunk-QL4Q332Z.js +12 -0
- package/dist/chunk-QL5227KT.js +1184 -0
- package/dist/chunk-QREYGVWO.js +297 -0
- package/dist/chunk-QREYGVWO.js.map +1 -0
- package/dist/chunk-QUFCZMHG.js +114 -0
- package/dist/chunk-QXPKUKOV.js +227 -0
- package/dist/chunk-QZE3KD34.js +441 -0
- package/dist/chunk-RAIUIXCY.js +166 -0
- package/dist/chunk-RDLS6IZY.js +723 -0
- package/dist/chunk-RKPETJDJ.js +175 -0
- package/dist/chunk-RMDLTRLI.js +372 -0
- package/dist/chunk-RR6DQN4X.js +523 -0
- package/dist/chunk-RVPH6BB7.js +218 -0
- package/dist/chunk-RVXLSVJH.js +931 -0
- package/dist/chunk-RVY5EZNU.js +246 -0
- package/dist/chunk-RWHBX4MN.js +1024 -0
- package/dist/chunk-RWHDMGFG.js +214 -0
- package/dist/chunk-RYB3WBMZ.js +113 -0
- package/dist/chunk-S7EO77EE.js +449 -0
- package/dist/chunk-S7J4HBPP.js +584 -0
- package/dist/chunk-SA3XI7FB.js +108 -0
- package/dist/chunk-SKRTCSUL.js +196 -0
- package/dist/chunk-SUWDILUY.js +5089 -0
- package/dist/chunk-SWTPVMR4.js +251 -0
- package/dist/chunk-T5BYEE66.js +191 -0
- package/dist/chunk-T652Q4R6.js +48 -0
- package/dist/chunk-TBUOHK6R.js +608 -0
- package/dist/chunk-TCUAGCAX.js +1628 -0
- package/dist/chunk-TLWH4E3P.js +126 -0
- package/dist/chunk-TNHGSWG3.js +1152 -0
- package/dist/chunk-TO6VBJI3.js +383 -0
- package/dist/chunk-TOL7MOAN.js +162 -0
- package/dist/chunk-U243CBVZ.js +2553 -0
- package/dist/chunk-U2CEPRDH.js +46 -0
- package/dist/chunk-UAZPXKPH.js +3996 -0
- package/dist/chunk-UHRGUMLJ.js +412 -0
- package/dist/chunk-UNDSD6UA.js +131 -0
- package/dist/chunk-USU2SS4V.js +3690 -0
- package/dist/chunk-USWA5GQQ.js +340 -0
- package/dist/chunk-UXGTI4HR.js +184 -0
- package/dist/chunk-UZKAHEQO.js +172 -0
- package/dist/chunk-VALESBNH.js +113 -0
- package/dist/chunk-VMSMVWCJ.js +515 -0
- package/dist/chunk-VPERSFGV.js +158 -0
- package/dist/chunk-VVW2CBWK.js +21 -0
- package/dist/chunk-VVW2CBWK.js.map +1 -0
- package/dist/chunk-VXPY2GF3.js +124 -0
- package/dist/chunk-W7RKXZDV.js +112 -0
- package/dist/chunk-WEGZPK4I.js +532 -0
- package/dist/chunk-WPKY3BGG.js +380 -0
- package/dist/chunk-X3T3N6W5.js +1022 -0
- package/dist/chunk-X4OGMBY6.js +110 -0
- package/dist/chunk-X7ZHIJEI.js +82 -0
- package/dist/chunk-XR7Y2HPZ.js +67 -0
- package/dist/chunk-Y2NMKJ7F.js +57 -0
- package/dist/chunk-Y2QYPJDN.js +26 -0
- package/dist/chunk-Y47EPVCD.js +211 -0
- package/dist/chunk-Y5Q4ETIW.js +162 -0
- package/dist/chunk-YMQVVFXI.js +105 -0
- package/dist/chunk-YQ6FP33X.js +378 -0
- package/dist/chunk-YUA42N5A.js +406 -0
- package/dist/chunk-YXFNW64N.js +91 -0
- package/dist/chunk-Z76RJPZF.js +389 -0
- package/dist/chunk-ZD67RM6G.js +60 -0
- package/dist/chunk-ZE4RD7U5.js +231 -0
- package/dist/chunk-ZGR7LNXC.js +432 -0
- package/dist/chunk-ZNA65Q6Y.js +20 -0
- package/dist/chunk-ZRNK6FK6.js +188 -0
- package/dist/chunk-ZVAIKQMC.js +296 -0
- package/dist/chunk-ZZ3KNGTJ.js +246 -0
- package/dist/components/automations/pasted-webhook-steps.d.ts +29 -0
- package/dist/components/browser-viewer.d.ts +4 -1
- package/dist/components/human-input-form.d.ts +3 -4
- package/dist/components/use-fit-browser-viewport.d.ts +10 -0
- package/dist/composer.js +8 -8
- package/dist/computer-viewer-M5N3GWBR.js +21 -0
- package/dist/connect.js +17 -15
- package/dist/connection-step-up-CNVFVWYO.js +146 -0
- package/dist/connection-step-up-CNVFVWYO.js.map +1 -0
- package/dist/desktop-dictation.js +8 -8
- package/dist/desktop.js +2 -2
- package/dist/editor.js +2 -2
- package/dist/embedded-new-voice-QZJG5DZ3.js +25 -0
- package/dist/embedded-voice-7KOQNGKU.js +25 -0
- package/dist/fleet-decision-row-FJPAWNOQ.js +361 -0
- package/dist/in-chat-connect-model.js +5 -5
- package/dist/index.js +65 -65
- package/dist/interaction.js +5 -5
- package/dist/latest-question-F3VPDR7U.js +124 -0
- package/dist/machines.js +3 -3
- package/dist/meetings-recorder.js +1 -1
- package/dist/meetings.js +20 -20
- package/dist/messages/en.d.ts +1 -1
- package/dist/messages.js +1 -1
- package/dist/model-policy-picker-menu-UNI5B6N6.js +23 -0
- package/dist/model-policy-picker-menu-UNI5B6N6.js.map +1 -0
- package/dist/payment-page-card-HZJVN3F4.js +226 -0
- package/dist/platform-activity-row-NPEGG2VE.js +156 -0
- package/dist/queue-surface-implementation-RTCTPF5T.js +932 -0
- package/dist/realtime.js +4 -4
- package/dist/recorder-host-YPWPLMS6.js +80 -0
- package/dist/recordings.js +3 -3
- package/dist/sandbox-files-BJKCREOU.js +28 -0
- package/dist/sandbox-files-BJKCREOU.js.map +1 -0
- package/dist/session-app.js +242 -241
- package/dist/session-connect-cards-DK3UJZRY.js +27 -0
- package/dist/session-connect-cards-DK3UJZRY.js.map +1 -0
- package/dist/session-list-model.js +2 -2
- package/dist/session-realtime-AKDUKFY4.js +30 -0
- package/dist/session-realtime-AKDUKFY4.js.map +1 -0
- package/dist/session-realtime.js +2 -2
- package/dist/session-ui.js +42 -42
- package/dist/session.js +11 -11
- package/dist/sites.js +2 -2
- package/dist/terminal.js +2 -2
- package/dist/this-computer.js +3 -3
- package/dist/timeline-annotation-markers-7QSYK22C.js +157 -0
- package/dist/timeline-annotation-selection-XYNMESWL.js +208 -0
- package/dist/timeline-annotations-dialog-WSI6L2CP.js +283 -0
- package/dist/timeline-model.js +26 -26
- package/dist/ui/access-list.js +5 -5
- package/dist/ui/cadence-picker.js +5 -5
- package/dist/ui/choice-cards.js +3 -3
- package/dist/ui/confirm-dialog.js +2 -2
- package/dist/ui/copy-field.js +3 -3
- package/dist/ui/detail-page.js +2 -2
- package/dist/ui/detail-sheet.js +2 -2
- package/dist/ui/disclosure.js +3 -3
- package/dist/ui/email-chips-input.js +3 -3
- package/dist/ui/field.js +2 -2
- package/dist/ui/flush-form-page.js +3 -3
- package/dist/ui/form-dialog.js +2 -2
- package/dist/ui/list-row.js +4 -4
- package/dist/ui/relative-time.js +3 -3
- package/dist/ui/revision-history.js +5 -5
- package/dist/ui/role-select.js +5 -5
- package/dist/ui/select-menu.js +3 -3
- package/dist/ui/usage-meter.js +4 -4
- package/dist/usage.js +2 -2
- package/dist/workbench.js +4 -4
- package/package.json +6 -5
- package/src/app/components/agents/agent-skills.tsx +21 -18
- package/src/app/components/agents/agent-trigger-dialog.tsx +80 -119
- package/src/app/components/agents/agent-trigger-model.ts +47 -0
- package/src/app/components/agents/agent-trigger-repositories.tsx +88 -0
- package/src/app/components/agents/agents-page.tsx +118 -38
- package/src/app/components/artifacts/app-server-status.test.tsx +33 -0
- package/src/app/components/artifacts/app-server-status.tsx +93 -0
- package/src/app/components/artifacts/ready-made-apps.tsx +84 -0
- package/src/app/lib/codex-model-switch.ts +1 -0
- package/src/app/lib/needs-you.test.ts +8 -0
- package/src/app/lib/needs-you.tsx +3 -1
- package/src/app/lib/ready-made-apps.tsx +42 -0
- package/src/app/lib/session-capabilities.tsx +1 -0
- package/src/app/routes/artifacts.tsx +11 -0
- package/src/app/routes/site-view.tsx +9 -0
- package/src/automations.ts +8 -2
- package/src/components/automations/pasted-webhook-steps.tsx +89 -0
- package/src/components/browser-viewer.tsx +49 -7
- package/src/components/human-input-form.tsx +16 -5
- package/src/components/secret-question-field.tsx +42 -32
- package/src/components/use-fit-browser-viewport.ts +84 -0
- package/src/messages/en.ts +1 -1
- package/src/timeline/projection.ts +5 -2
- package/src/timeline/tool-steps.ts +2 -0
- package/dist/browser-viewer-EIEMRVFF.js +0 -23
- package/dist/chat-interactive-block-FV37LWYZ.js +0 -22
- package/dist/chunk-2COBAJC7.js +0 -818
- package/dist/chunk-2HS3IUXE.js +0 -170
- package/dist/chunk-2JTMFYCT.js +0 -296
- package/dist/chunk-2JXKP4M6.js +0 -114
- package/dist/chunk-2P5K7CBH.js +0 -269
- package/dist/chunk-2XGRHMRI.js +0 -250
- package/dist/chunk-332BYSAZ.js +0 -65
- package/dist/chunk-3EM5GTP3.js +0 -158
- package/dist/chunk-3L5ATO4A.js +0 -52
- package/dist/chunk-3S3PJB7J.js +0 -107
- package/dist/chunk-3SBKYPNM.js +0 -270
- package/dist/chunk-3Z7VA6ET.js +0 -114
- package/dist/chunk-43BRJBEV.js +0 -207
- package/dist/chunk-46LZO4ZO.js +0 -188
- package/dist/chunk-4AH4EEHE.js +0 -298
- package/dist/chunk-4D3YJNVN.js +0 -270
- package/dist/chunk-4E5QVAT4.js +0 -4480
- package/dist/chunk-4I4RTI4D.js +0 -37
- package/dist/chunk-4KASGJTF.js +0 -287
- package/dist/chunk-4RUKLIOF.js +0 -1263
- package/dist/chunk-4UU7FN3I.js +0 -650
- package/dist/chunk-4ZRNASBF.js +0 -2551
- package/dist/chunk-5EJBPQI2.js +0 -41
- package/dist/chunk-5G4IGG7F.js +0 -209
- package/dist/chunk-5JAYZOAW.js +0 -131
- package/dist/chunk-5JOKVDSR.js +0 -789
- package/dist/chunk-5JOKVDSR.js.map +0 -1
- package/dist/chunk-5MP3G7ZV.js +0 -1236
- package/dist/chunk-5OVRMKP5.js +0 -42
- package/dist/chunk-5SGTRULO.js +0 -1184
- package/dist/chunk-5SOL4INY.js +0 -572
- package/dist/chunk-5Y34P32B.js +0 -27
- package/dist/chunk-62HIKJ5F.js +0 -72
- package/dist/chunk-63VNZRLY.js +0 -386
- package/dist/chunk-63WDQV5X.js +0 -148
- package/dist/chunk-6DOIINY4.js +0 -201
- package/dist/chunk-6DQBUKGJ.js +0 -112
- package/dist/chunk-6SETNFNH.js +0 -1399
- package/dist/chunk-6SETNFNH.js.map +0 -1
- package/dist/chunk-6XYFMHNT.js +0 -56
- package/dist/chunk-6YU3WV2P.js +0 -33
- package/dist/chunk-6YUHDFOZ.js +0 -351
- package/dist/chunk-72EOXOR7.js +0 -1185
- package/dist/chunk-72ND4ALI.js +0 -532
- package/dist/chunk-757LE32E.js +0 -283
- package/dist/chunk-7S2S4MXR.js +0 -138
- package/dist/chunk-7SYCHMXS.js +0 -200
- package/dist/chunk-7TVAPQOV.js +0 -5089
- package/dist/chunk-7UDLRDHK.js +0 -214
- package/dist/chunk-7YLQCMZP.js +0 -357
- package/dist/chunk-A5GX3CAE.js +0 -849
- package/dist/chunk-A7EBV2EB.js +0 -318
- package/dist/chunk-AB5SPXUR.js +0 -114
- package/dist/chunk-AHVQGL5A.js +0 -202
- package/dist/chunk-AI77ZKEV.js +0 -26
- package/dist/chunk-AIX2D6RB.js +0 -1019
- package/dist/chunk-AVSIHP7Q.js +0 -192
- package/dist/chunk-AWK23Q32.js +0 -107
- package/dist/chunk-AYM3UFP2.js +0 -43
- package/dist/chunk-AYM3UFP2.js.map +0 -1
- package/dist/chunk-AYVWA6KD.js +0 -432
- package/dist/chunk-AYVWA6KD.js.map +0 -1
- package/dist/chunk-AYZXE4IM.js +0 -2553
- package/dist/chunk-AZGGSPTE.js +0 -124
- package/dist/chunk-B45TB4HY.js +0 -931
- package/dist/chunk-BC7PTVXW.js +0 -140
- package/dist/chunk-BIUJHNVR.js +0 -46
- package/dist/chunk-BJUOKUE5.js +0 -234
- package/dist/chunk-BMT5IXQW.js +0 -154
- package/dist/chunk-BMT5IXQW.js.map +0 -1
- package/dist/chunk-BPEEVMKH.js +0 -292
- package/dist/chunk-BXMND6YU.js +0 -307
- package/dist/chunk-C6OM2SRG.js +0 -117
- package/dist/chunk-CIRCUDKF.js +0 -1309
- package/dist/chunk-CLKR4UG3.js +0 -403
- package/dist/chunk-CPX6BHER.js +0 -554
- package/dist/chunk-CVC4RO7D.js +0 -155
- package/dist/chunk-D3YJAQGK.js +0 -103
- package/dist/chunk-DFQ72BLS.js +0 -1024
- package/dist/chunk-DG65PJOZ.js +0 -4564
- package/dist/chunk-DG65PJOZ.js.map +0 -1
- package/dist/chunk-DNAXAS5R.js +0 -406
- package/dist/chunk-DO247ITS.js +0 -175
- package/dist/chunk-DONBARLL.js +0 -154
- package/dist/chunk-DTLXQ3ZU.js +0 -373
- package/dist/chunk-EAXTACI4.js +0 -274
- package/dist/chunk-EDPH7AJH.js +0 -412
- package/dist/chunk-EER3B3G5.js +0 -10036
- package/dist/chunk-EER3B3G5.js.map +0 -1
- package/dist/chunk-EFKQHCGJ.js +0 -276
- package/dist/chunk-EILSPMVD.js +0 -133
- package/dist/chunk-EMWT6GOK.js +0 -437
- package/dist/chunk-EO22NST7.js +0 -259
- package/dist/chunk-ER5MYLIE.js +0 -256
- package/dist/chunk-ES5HKVQF.js +0 -234
- package/dist/chunk-EXRQ5ATC.js +0 -738
- package/dist/chunk-F26YBYAZ.js +0 -111
- package/dist/chunk-F6QP4GSK.js +0 -515
- package/dist/chunk-F7QEO7M2.js +0 -851
- package/dist/chunk-FJFGDLXB.js +0 -12
- package/dist/chunk-FLLJ2WXW.js +0 -113
- package/dist/chunk-FMBJKMT4.js +0 -107
- package/dist/chunk-FPN4I4CG.js +0 -3690
- package/dist/chunk-FUXFJTXL.js +0 -3070
- package/dist/chunk-FZI4QOAV.js +0 -3996
- package/dist/chunk-G6SSSX5R.js +0 -158
- package/dist/chunk-GBGCMHBB.js +0 -608
- package/dist/chunk-GJ4GTYOD.js +0 -372
- package/dist/chunk-GLSDWNFV.js +0 -432
- package/dist/chunk-GMGAW3T6.js +0 -278
- package/dist/chunk-GNGI6XFN.js +0 -43
- package/dist/chunk-GSW4YHZE.js +0 -229
- package/dist/chunk-GUC6IWEY.js +0 -407
- package/dist/chunk-GWAY3SO5.js +0 -15
- package/dist/chunk-GXOTNT5D.js +0 -168
- package/dist/chunk-GZZCVF76.js +0 -3851
- package/dist/chunk-H4VMHFOX.js +0 -214
- package/dist/chunk-HA5RFQAF.js +0 -110
- package/dist/chunk-HJLHGXWL.js +0 -103
- package/dist/chunk-HKNMNL7B.js +0 -2984
- package/dist/chunk-HT7MBHLY.js +0 -1021
- package/dist/chunk-I5FSUZVW.js +0 -584
- package/dist/chunk-II376XH3.js +0 -117
- package/dist/chunk-IINQO425.js +0 -246
- package/dist/chunk-IIXNEOK4.js +0 -1022
- package/dist/chunk-IM3WA5AL.js +0 -311
- package/dist/chunk-IX4P4OGR.js +0 -399
- package/dist/chunk-IX5VHZYS.js +0 -129
- package/dist/chunk-J7QHW2KS.js +0 -549
- package/dist/chunk-J7QHW2KS.js.map +0 -1
- package/dist/chunk-JB3TSUZO.js +0 -263
- package/dist/chunk-JD6LHU26.js +0 -3852
- package/dist/chunk-JD6LHU26.js.map +0 -1
- package/dist/chunk-JIC6RLUB.js +0 -27
- package/dist/chunk-JNJIZCTN.js +0 -172
- package/dist/chunk-JNV5ZPUV.js +0 -828
- package/dist/chunk-JPQFVR24.js +0 -50
- package/dist/chunk-JPZVMXDP.js +0 -1333
- package/dist/chunk-JVPF34MX.js +0 -215
- package/dist/chunk-KED67KAF.js +0 -85
- package/dist/chunk-KJ72GMZ2.js +0 -378
- package/dist/chunk-KVPQUADA.js +0 -5915
- package/dist/chunk-KVPQUADA.js.map +0 -1
- package/dist/chunk-KXBLLFOO.js +0 -249
- package/dist/chunk-LIOZ2MXJ.js +0 -380
- package/dist/chunk-LPEFULJY.js +0 -73
- package/dist/chunk-LRMGPO7E.js +0 -98
- package/dist/chunk-LVKTKORH.js +0 -121
- package/dist/chunk-MFVUNNFN.js +0 -205
- package/dist/chunk-MIUJ3EH5.js +0 -60
- package/dist/chunk-MIUMNTIJ.js +0 -175
- package/dist/chunk-ML46TXRM.js +0 -113
- package/dist/chunk-MQRHTOQ2.js +0 -218
- package/dist/chunk-NIPON7YB.js +0 -850
- package/dist/chunk-NPBEUU22.js +0 -196
- package/dist/chunk-NSXKGS2K.js +0 -178
- package/dist/chunk-NUEFORM6.js +0 -2317
- package/dist/chunk-NZOFNQNC.js +0 -176
- package/dist/chunk-OATXCLTY.js +0 -211
- package/dist/chunk-OG3ELROW.js +0 -538
- package/dist/chunk-OI4WS7FW.js +0 -162
- package/dist/chunk-OITGZUDC.js +0 -82
- package/dist/chunk-OKD2LBMK.js +0 -333
- package/dist/chunk-OSA4CGST.js +0 -134
- package/dist/chunk-OXYAKUFU.js +0 -401
- package/dist/chunk-OYMSMU5O.js +0 -396
- package/dist/chunk-P4NZ72KY.js +0 -162
- package/dist/chunk-PBYL2VIM.js +0 -379
- package/dist/chunk-PDW3OOSZ.js +0 -505
- package/dist/chunk-PGRKTQIW.js +0 -523
- package/dist/chunk-Q273Q33U.js +0 -166
- package/dist/chunk-Q4CLS2HL.js +0 -340
- package/dist/chunk-QFOBUA2J.js +0 -428
- package/dist/chunk-QLIM4D56.js +0 -1095
- package/dist/chunk-QMQF5U2D.js +0 -20
- package/dist/chunk-QPOUPVPD.js +0 -144
- package/dist/chunk-QTJAQ6DS.js +0 -48
- package/dist/chunk-QUOFP3G7.js +0 -404
- package/dist/chunk-QVOTPOXK.js +0 -29
- package/dist/chunk-QYZ5RVGM.js +0 -184
- package/dist/chunk-R7CVDKRN.js +0 -2580
- package/dist/chunk-RB7MXNZD.js +0 -639
- package/dist/chunk-RDZQFZOQ.js +0 -187
- package/dist/chunk-RIHKEGWS.js +0 -194
- package/dist/chunk-RIHKEGWS.js.map +0 -1
- package/dist/chunk-ROSB7GF6.js +0 -57
- package/dist/chunk-RP3YMYCX.js +0 -723
- package/dist/chunk-RPHXJHNX.js +0 -271
- package/dist/chunk-RVC3M66H.js +0 -191
- package/dist/chunk-S3OTJAAC.js +0 -283
- package/dist/chunk-SBWPMVRN.js +0 -56
- package/dist/chunk-SERECSAR.js +0 -138
- package/dist/chunk-SHSEF3GJ.js +0 -187
- package/dist/chunk-SMS2M3RG.js +0 -772
- package/dist/chunk-SRDHDIRQ.js +0 -177
- package/dist/chunk-SXRYA7NN.js +0 -389
- package/dist/chunk-SYA3WYG4.js +0 -1187
- package/dist/chunk-T2QDSTBH.js +0 -371
- package/dist/chunk-TFSCGFYV.js +0 -251
- package/dist/chunk-TGCKZOSX.js +0 -246
- package/dist/chunk-THILLYQM.js +0 -132
- package/dist/chunk-TI6LGUEZ.js +0 -2412
- package/dist/chunk-TSY6YZL2.js +0 -366
- package/dist/chunk-TW2RHTLH.js +0 -3321
- package/dist/chunk-TWA5G277.js +0 -141
- package/dist/chunk-TZZ2S4XI.js +0 -247
- package/dist/chunk-UECD27LX.js +0 -251
- package/dist/chunk-UFJDETKG.js +0 -108
- package/dist/chunk-UHBIXNRW.js +0 -100
- package/dist/chunk-UHCFYX4I.js +0 -570
- package/dist/chunk-UHTURYJO.js +0 -898
- package/dist/chunk-UJH63JT3.js +0 -67
- package/dist/chunk-UMLPIMGW.js +0 -105
- package/dist/chunk-UOLDS6S5.js +0 -1152
- package/dist/chunk-UUE3OGXI.js +0 -84
- package/dist/chunk-UUNJ2E57.js +0 -391
- package/dist/chunk-UYQVWRAH.js +0 -199
- package/dist/chunk-UYWWUEL4.js +0 -126
- package/dist/chunk-V4CQKX5H.js +0 -48
- package/dist/chunk-V4QM7GDQ.js +0 -3176
- package/dist/chunk-V5Y74WII.js +0 -91
- package/dist/chunk-VGGZLUQK.js +0 -129
- package/dist/chunk-VGX636MB.js +0 -311
- package/dist/chunk-VGZLFQO2.js +0 -773
- package/dist/chunk-VJWZATNF.js +0 -137
- package/dist/chunk-VMWCIC2N.js +0 -50
- package/dist/chunk-VPWKTIU5.js +0 -227
- package/dist/chunk-VXOLG6YB.js +0 -469
- package/dist/chunk-W2NAU5VB.js +0 -1628
- package/dist/chunk-WGORKMR3.js +0 -353
- package/dist/chunk-WMIDELSJ.js +0 -391
- package/dist/chunk-WSOSGL2G.js +0 -383
- package/dist/chunk-WXUUOM4X.js +0 -400
- package/dist/chunk-WZ74QHLE.js +0 -4863
- package/dist/chunk-WZ74QHLE.js.map +0 -1
- package/dist/chunk-X2OWM2ME.js +0 -1870
- package/dist/chunk-X2OWM2ME.js.map +0 -1
- package/dist/chunk-XDXKB25W.js +0 -93
- package/dist/chunk-XE4PHI74.js +0 -231
- package/dist/chunk-XLJ4SQFS.js +0 -230
- package/dist/chunk-XOD4FX6M.js +0 -2434
- package/dist/chunk-XODQ2GPF.js +0 -3110
- package/dist/chunk-XT54RTAM.js +0 -441
- package/dist/chunk-YDQHFJM2.js +0 -83
- package/dist/chunk-YH6O6OQ6.js +0 -1356
- package/dist/chunk-YIKPC2QP.js +0 -794
- package/dist/chunk-ZD7PKYC4.js +0 -335
- package/dist/chunk-ZEQYHEWP.js +0 -406
- package/dist/chunk-ZRVUCTSI.js +0 -265
- package/dist/chunk-ZSI3ITRK.js +0 -449
- package/dist/chunk-ZZMEQCIZ.js +0 -236
- package/dist/computer-viewer-ZBY3BPYW.js +0 -21
- package/dist/connection-step-up-JQ4OFSQN.js +0 -145
- package/dist/connection-step-up-JQ4OFSQN.js.map +0 -1
- package/dist/embedded-new-voice-ZB5XLKLU.js +0 -25
- package/dist/embedded-voice-MZJISDCS.js +0 -25
- package/dist/fleet-decision-row-LG3SYVR3.js +0 -361
- package/dist/latest-question-QWJTXMFA.js +0 -124
- package/dist/model-policy-picker-menu-5Y72PLNF.js +0 -23
- package/dist/payment-page-card-YPSXRHBA.js +0 -226
- package/dist/platform-activity-row-ZU4MEBNK.js +0 -156
- package/dist/queue-surface-implementation-6Q25RPH6.js +0 -932
- package/dist/recorder-host-JD4GWJ2Z.js +0 -80
- package/dist/sandbox-files-HCLEEJMU.js +0 -28
- package/dist/session-connect-cards-DRKEN3Z4.js +0 -27
- package/dist/session-realtime-IZOTTRH6.js +0 -30
- package/dist/timeline-annotation-markers-WWXNJOXI.js +0 -157
- package/dist/timeline-annotation-selection-ZKRIQFIQ.js +0 -208
- package/dist/timeline-annotations-dialog-4IMKTOXJ.js +0 -283
- /package/dist/{browser-viewer-EIEMRVFF.js.map → app/components/agents/agent-trigger-repositories.js.map} +0 -0
- /package/dist/{chat-interactive-block-FV37LWYZ.js.map → app/components/artifacts/app-server-status.js.map} +0 -0
- /package/dist/{computer-viewer-ZBY3BPYW.js.map → app/components/artifacts/ready-made-apps.js.map} +0 -0
- /package/dist/{embedded-new-voice-ZB5XLKLU.js.map → app/lib/ready-made-apps.js.map} +0 -0
- /package/dist/{embedded-voice-MZJISDCS.js.map → browser-viewer-EPGAK2W6.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-5Y72PLNF.js.map → chat-interactive-block-65YU6TMO.js.map} +0 -0
- /package/dist/{chunk-CLKR4UG3.js.map → chunk-25ODMMHH.js.map} +0 -0
- /package/dist/{chunk-WXUUOM4X.js.map → chunk-266ZPUMH.js.map} +0 -0
- /package/dist/{chunk-GXOTNT5D.js.map → chunk-2A7SB7UR.js.map} +0 -0
- /package/dist/{chunk-UHBIXNRW.js.map → chunk-2EU4Y7A7.js.map} +0 -0
- /package/dist/{chunk-UHCFYX4I.js.map → chunk-2LBYEHBH.js.map} +0 -0
- /package/dist/{chunk-TWA5G277.js.map → chunk-2MHIIF4N.js.map} +0 -0
- /package/dist/{chunk-757LE32E.js.map → chunk-2SHWGDAA.js.map} +0 -0
- /package/dist/{chunk-VGZLFQO2.js.map → chunk-2VX42S4W.js.map} +0 -0
- /package/dist/{chunk-VGX636MB.js.map → chunk-2WGJQ4XK.js.map} +0 -0
- /package/dist/{chunk-GWAY3SO5.js.map → chunk-2XSF44TY.js.map} +0 -0
- /package/dist/{chunk-RB7MXNZD.js.map → chunk-33HUZMNE.js.map} +0 -0
- /package/dist/{chunk-63WDQV5X.js.map → chunk-36IKHM4Q.js.map} +0 -0
- /package/dist/{chunk-4E5QVAT4.js.map → chunk-3JVQZAXQ.js.map} +0 -0
- /package/dist/{chunk-4KASGJTF.js.map → chunk-3SDESU6U.js.map} +0 -0
- /package/dist/{chunk-BPEEVMKH.js.map → chunk-3VXZFBP6.js.map} +0 -0
- /package/dist/{chunk-BXMND6YU.js.map → chunk-3YKED2ZV.js.map} +0 -0
- /package/dist/{chunk-AIX2D6RB.js.map → chunk-3ZNOKD3S.js.map} +0 -0
- /package/dist/{chunk-R7CVDKRN.js.map → chunk-45SB4UK3.js.map} +0 -0
- /package/dist/{chunk-EILSPMVD.js.map → chunk-47BETTVA.js.map} +0 -0
- /package/dist/{chunk-EAXTACI4.js.map → chunk-4BTQ473O.js.map} +0 -0
- /package/dist/{chunk-KXBLLFOO.js.map → chunk-4JQRWJVR.js.map} +0 -0
- /package/dist/{chunk-AHVQGL5A.js.map → chunk-4R6WFQKZ.js.map} +0 -0
- /package/dist/{chunk-S3OTJAAC.js.map → chunk-4WEPVL7X.js.map} +0 -0
- /package/dist/{chunk-6DOIINY4.js.map → chunk-4YWHOAB4.js.map} +0 -0
- /package/dist/{chunk-CVC4RO7D.js.map → chunk-52XGYRVS.js.map} +0 -0
- /package/dist/{chunk-GNGI6XFN.js.map → chunk-5G6UHUJZ.js.map} +0 -0
- /package/dist/{chunk-GSW4YHZE.js.map → chunk-5HFITPHH.js.map} +0 -0
- /package/dist/{chunk-4UU7FN3I.js.map → chunk-5LVVN2K7.js.map} +0 -0
- /package/dist/{chunk-V4CQKX5H.js.map → chunk-5PVXFVIT.js.map} +0 -0
- /package/dist/{chunk-RDZQFZOQ.js.map → chunk-5WFGW7B7.js.map} +0 -0
- /package/dist/{chunk-FUXFJTXL.js.map → chunk-66M7RVM6.js.map} +0 -0
- /package/dist/{chunk-EMWT6GOK.js.map → chunk-6AGNZI2W.js.map} +0 -0
- /package/dist/{chunk-DTLXQ3ZU.js.map → chunk-6ENO634Y.js.map} +0 -0
- /package/dist/{chunk-7SYCHMXS.js.map → chunk-6LQ5KEMP.js.map} +0 -0
- /package/dist/{chunk-QFOBUA2J.js.map → chunk-6QGIWLH5.js.map} +0 -0
- /package/dist/{chunk-2HS3IUXE.js.map → chunk-6WEDWD4N.js.map} +0 -0
- /package/dist/{chunk-AB5SPXUR.js.map → chunk-6YCYPXDA.js.map} +0 -0
- /package/dist/{chunk-A7EBV2EB.js.map → chunk-6YTNMDFP.js.map} +0 -0
- /package/dist/{chunk-JPQFVR24.js.map → chunk-73O7NO3F.js.map} +0 -0
- /package/dist/{chunk-UECD27LX.js.map → chunk-76VXLTQF.js.map} +0 -0
- /package/dist/{chunk-XDXKB25W.js.map → chunk-7EJ7PSZT.js.map} +0 -0
- /package/dist/{chunk-JIC6RLUB.js.map → chunk-7GS2MGFU.js.map} +0 -0
- /package/dist/{chunk-DNAXAS5R.js.map → chunk-7MF6MFHS.js.map} +0 -0
- /package/dist/{chunk-63VNZRLY.js.map → chunk-7N35XBSC.js.map} +0 -0
- /package/dist/{chunk-3SBKYPNM.js.map → chunk-7ND2VMKV.js.map} +0 -0
- /package/dist/{chunk-DONBARLL.js.map → chunk-7RVJLO3N.js.map} +0 -0
- /package/dist/{chunk-WGORKMR3.js.map → chunk-7VAILBP6.js.map} +0 -0
- /package/dist/{chunk-4I4RTI4D.js.map → chunk-7VSJQWFO.js.map} +0 -0
- /package/dist/{chunk-ZD7PKYC4.js.map → chunk-7YKUIKGH.js.map} +0 -0
- /package/dist/{chunk-SERECSAR.js.map → chunk-A7DS77WC.js.map} +0 -0
- /package/dist/{chunk-4AH4EEHE.js.map → chunk-AEH34OOU.js.map} +0 -0
- /package/dist/{chunk-CPX6BHER.js.map → chunk-ANWMRO2G.js.map} +0 -0
- /package/dist/{chunk-TZZ2S4XI.js.map → chunk-APGUIORF.js.map} +0 -0
- /package/dist/{chunk-CIRCUDKF.js.map → chunk-ASCVQJB4.js.map} +0 -0
- /package/dist/{chunk-JPZVMXDP.js.map → chunk-AY4XH73V.js.map} +0 -0
- /package/dist/{chunk-XOD4FX6M.js.map → chunk-B6AH43UQ.js.map} +0 -0
- /package/dist/{chunk-5OVRMKP5.js.map → chunk-BGT43KDL.js.map} +0 -0
- /package/dist/{chunk-GZZCVF76.js.map → chunk-BHS4KW4W.js.map} +0 -0
- /package/dist/{chunk-F7QEO7M2.js.map → chunk-BNWO72C2.js.map} +0 -0
- /package/dist/{chunk-4ZRNASBF.js.map → chunk-BSPIASSQ.js.map} +0 -0
- /package/dist/{chunk-XLJ4SQFS.js.map → chunk-BVWJEZXG.js.map} +0 -0
- /package/dist/{chunk-TSY6YZL2.js.map → chunk-BZ47G3VP.js.map} +0 -0
- /package/dist/{chunk-62HIKJ5F.js.map → chunk-C6KI5P3H.js.map} +0 -0
- /package/dist/{chunk-NUEFORM6.js.map → chunk-CLERWAEA.js.map} +0 -0
- /package/dist/{chunk-5SOL4INY.js.map → chunk-CNRFFCAE.js.map} +0 -0
- /package/dist/{chunk-ZZMEQCIZ.js.map → chunk-CPC6CYVW.js.map} +0 -0
- /package/dist/{chunk-FMBJKMT4.js.map → chunk-D23UAPXK.js.map} +0 -0
- /package/dist/{chunk-QVOTPOXK.js.map → chunk-DAPZEB4R.js.map} +0 -0
- /package/dist/{chunk-MFVUNNFN.js.map → chunk-DEDEA3WS.js.map} +0 -0
- /package/dist/{chunk-RPHXJHNX.js.map → chunk-DHVA3T3K.js.map} +0 -0
- /package/dist/{chunk-UUNJ2E57.js.map → chunk-DJQ6TKIP.js.map} +0 -0
- /package/dist/{chunk-6YU3WV2P.js.map → chunk-DK2CDAMR.js.map} +0 -0
- /package/dist/{chunk-GMGAW3T6.js.map → chunk-DPOB6MUS.js.map} +0 -0
- /package/dist/{chunk-VJWZATNF.js.map → chunk-DSO7S6PZ.js.map} +0 -0
- /package/dist/{chunk-OKD2LBMK.js.map → chunk-DV3OECO6.js.map} +0 -0
- /package/dist/{chunk-SYA3WYG4.js.map → chunk-DW2IQRMB.js.map} +0 -0
- /package/dist/{chunk-OSA4CGST.js.map → chunk-DWLPQTDL.js.map} +0 -0
- /package/dist/{chunk-V4QM7GDQ.js.map → chunk-DXMKECFR.js.map} +0 -0
- /package/dist/{chunk-LPEFULJY.js.map → chunk-DYQRNIID.js.map} +0 -0
- /package/dist/{chunk-VGGZLUQK.js.map → chunk-DZLWO73N.js.map} +0 -0
- /package/dist/{chunk-AWK23Q32.js.map → chunk-E2GNUL64.js.map} +0 -0
- /package/dist/{chunk-AVSIHP7Q.js.map → chunk-E7XU2KHD.js.map} +0 -0
- /package/dist/{chunk-2JXKP4M6.js.map → chunk-ENYULVQW.js.map} +0 -0
- /package/dist/{chunk-5EJBPQI2.js.map → chunk-EWHQ3DFM.js.map} +0 -0
- /package/dist/{chunk-EXRQ5ATC.js.map → chunk-F3LIUDXN.js.map} +0 -0
- /package/dist/{chunk-D3YJAQGK.js.map → chunk-F5C7DTVR.js.map} +0 -0
- /package/dist/{chunk-WMIDELSJ.js.map → chunk-F5NFGBIN.js.map} +0 -0
- /package/dist/{chunk-DO247ITS.js.map → chunk-F6XJLGOV.js.map} +0 -0
- /package/dist/{chunk-G6SSSX5R.js.map → chunk-F7T2STMX.js.map} +0 -0
- /package/dist/{chunk-T2QDSTBH.js.map → chunk-FAEVOM6B.js.map} +0 -0
- /package/dist/{chunk-EFKQHCGJ.js.map → chunk-FCFAXQDM.js.map} +0 -0
- /package/dist/{chunk-7S2S4MXR.js.map → chunk-FEQVCQMK.js.map} +0 -0
- /package/dist/{chunk-OYMSMU5O.js.map → chunk-FLDF2Z44.js.map} +0 -0
- /package/dist/{chunk-SMS2M3RG.js.map → chunk-GADABL3P.js.map} +0 -0
- /package/dist/{chunk-BC7PTVXW.js.map → chunk-GFUDB3SA.js.map} +0 -0
- /package/dist/{chunk-JVPF34MX.js.map → chunk-GGPZPBHS.js.map} +0 -0
- /package/dist/{chunk-IM3WA5AL.js.map → chunk-GIEGIEMT.js.map} +0 -0
- /package/dist/{chunk-SHSEF3GJ.js.map → chunk-GKWFQEO3.js.map} +0 -0
- /package/dist/{chunk-2XGRHMRI.js.map → chunk-GMMB4NCN.js.map} +0 -0
- /package/dist/{chunk-2P5K7CBH.js.map → chunk-GN4FOL2G.js.map} +0 -0
- /package/dist/{chunk-VXOLG6YB.js.map → chunk-GQJAMANY.js.map} +0 -0
- /package/dist/{chunk-PBYL2VIM.js.map → chunk-H7F4ANJQ.js.map} +0 -0
- /package/dist/{chunk-XODQ2GPF.js.map → chunk-HEPFJ3XQ.js.map} +0 -0
- /package/dist/{chunk-ES5HKVQF.js.map → chunk-HLRAQITA.js.map} +0 -0
- /package/dist/{chunk-II376XH3.js.map → chunk-HXYSZKCC.js.map} +0 -0
- /package/dist/{chunk-JNV5ZPUV.js.map → chunk-I5Q6FVHP.js.map} +0 -0
- /package/dist/{chunk-ZRVUCTSI.js.map → chunk-I7M5BYJU.js.map} +0 -0
- /package/dist/{chunk-KED67KAF.js.map → chunk-IH3J7VWW.js.map} +0 -0
- /package/dist/{chunk-NSXKGS2K.js.map → chunk-IMMDXSZ4.js.map} +0 -0
- /package/dist/{chunk-UYQVWRAH.js.map → chunk-IOMZDY5D.js.map} +0 -0
- /package/dist/{chunk-5MP3G7ZV.js.map → chunk-IQTCUUDF.js.map} +0 -0
- /package/dist/{chunk-UHTURYJO.js.map → chunk-ISR6KXWT.js.map} +0 -0
- /package/dist/{chunk-TW2RHTLH.js.map → chunk-IWPPGXUZ.js.map} +0 -0
- /package/dist/{chunk-UUE3OGXI.js.map → chunk-JNPCRNPA.js.map} +0 -0
- /package/dist/{chunk-PDW3OOSZ.js.map → chunk-JSJGGP32.js.map} +0 -0
- /package/dist/{chunk-SBWPMVRN.js.map → chunk-JZZUEJYD.js.map} +0 -0
- /package/dist/{chunk-4D3YJNVN.js.map → chunk-K5XFZKK5.js.map} +0 -0
- /package/dist/{chunk-332BYSAZ.js.map → chunk-K6GRTSEA.js.map} +0 -0
- /package/dist/{chunk-HJLHGXWL.js.map → chunk-KA4PZU3Q.js.map} +0 -0
- /package/dist/{chunk-YDQHFJM2.js.map → chunk-KGZ35ESO.js.map} +0 -0
- /package/dist/{chunk-HT7MBHLY.js.map → chunk-KRM4PW5N.js.map} +0 -0
- /package/dist/{chunk-QLIM4D56.js.map → chunk-LEZGGRDQ.js.map} +0 -0
- /package/dist/{chunk-QPOUPVPD.js.map → chunk-LFWMFFKT.js.map} +0 -0
- /package/dist/{chunk-A5GX3CAE.js.map → chunk-LKSPUZPH.js.map} +0 -0
- /package/dist/{chunk-OXYAKUFU.js.map → chunk-LLX4S6BI.js.map} +0 -0
- /package/dist/{chunk-NIPON7YB.js.map → chunk-M4WEF4DZ.js.map} +0 -0
- /package/dist/{chunk-LVKTKORH.js.map → chunk-MATYGLUT.js.map} +0 -0
- /package/dist/{chunk-5Y34P32B.js.map → chunk-MDI6SH7B.js.map} +0 -0
- /package/dist/{chunk-JB3TSUZO.js.map → chunk-MQTYIBY6.js.map} +0 -0
- /package/dist/{chunk-72EOXOR7.js.map → chunk-MRKY2GL5.js.map} +0 -0
- /package/dist/{chunk-YIKPC2QP.js.map → chunk-MSIQ42IY.js.map} +0 -0
- /package/dist/{chunk-7YLQCMZP.js.map → chunk-MVGU7BET.js.map} +0 -0
- /package/dist/{chunk-QUOFP3G7.js.map → chunk-MWY4TBDY.js.map} +0 -0
- /package/dist/{chunk-BJUOKUE5.js.map → chunk-NGQCWCD6.js.map} +0 -0
- /package/dist/{chunk-OG3ELROW.js.map → chunk-NKXMIOYN.js.map} +0 -0
- /package/dist/{chunk-ER5MYLIE.js.map → chunk-NMVRFFCR.js.map} +0 -0
- /package/dist/{chunk-GUC6IWEY.js.map → chunk-NNTDIKJP.js.map} +0 -0
- /package/dist/{chunk-LRMGPO7E.js.map → chunk-NQXCPP4G.js.map} +0 -0
- /package/dist/{chunk-THILLYQM.js.map → chunk-NYGS6FNV.js.map} +0 -0
- /package/dist/{chunk-NZOFNQNC.js.map → chunk-O3LOQDTI.js.map} +0 -0
- /package/dist/{chunk-2COBAJC7.js.map → chunk-O5HRZ2KG.js.map} +0 -0
- /package/dist/{chunk-H4VMHFOX.js.map → chunk-O5PZRVQR.js.map} +0 -0
- /package/dist/{chunk-IX4P4OGR.js.map → chunk-O6KR5SN7.js.map} +0 -0
- /package/dist/{chunk-EO22NST7.js.map → chunk-OBKDRV2H.js.map} +0 -0
- /package/dist/{chunk-3S3PJB7J.js.map → chunk-OBKKUBGL.js.map} +0 -0
- /package/dist/{chunk-3L5ATO4A.js.map → chunk-OFYXDB6I.js.map} +0 -0
- /package/dist/{chunk-VMWCIC2N.js.map → chunk-OLMWJGSJ.js.map} +0 -0
- /package/dist/{chunk-4RUKLIOF.js.map → chunk-ORRACKLB.js.map} +0 -0
- /package/dist/{chunk-6YUHDFOZ.js.map → chunk-P426WWAB.js.map} +0 -0
- /package/dist/{chunk-SRDHDIRQ.js.map → chunk-P4GOY3ZL.js.map} +0 -0
- /package/dist/{chunk-IX5VHZYS.js.map → chunk-P4KVJLUC.js.map} +0 -0
- /package/dist/{chunk-6XYFMHNT.js.map → chunk-P4N7ZS6W.js.map} +0 -0
- /package/dist/{chunk-5G4IGG7F.js.map → chunk-P6LSLNSL.js.map} +0 -0
- /package/dist/{chunk-F26YBYAZ.js.map → chunk-PAFSIDM2.js.map} +0 -0
- /package/dist/{chunk-C6OM2SRG.js.map → chunk-PC2JAIAH.js.map} +0 -0
- /package/dist/{chunk-43BRJBEV.js.map → chunk-PGSXT5OY.js.map} +0 -0
- /package/dist/{chunk-HKNMNL7B.js.map → chunk-QDMGUTOU.js.map} +0 -0
- /package/dist/{chunk-YH6O6OQ6.js.map → chunk-QEMDQKQT.js.map} +0 -0
- /package/dist/{chunk-TI6LGUEZ.js.map → chunk-QK7VU5N3.js.map} +0 -0
- /package/dist/{chunk-FJFGDLXB.js.map → chunk-QL4Q332Z.js.map} +0 -0
- /package/dist/{chunk-5SGTRULO.js.map → chunk-QL5227KT.js.map} +0 -0
- /package/dist/{chunk-3Z7VA6ET.js.map → chunk-QUFCZMHG.js.map} +0 -0
- /package/dist/{chunk-VPWKTIU5.js.map → chunk-QXPKUKOV.js.map} +0 -0
- /package/dist/{chunk-XT54RTAM.js.map → chunk-QZE3KD34.js.map} +0 -0
- /package/dist/{chunk-Q273Q33U.js.map → chunk-RAIUIXCY.js.map} +0 -0
- /package/dist/{chunk-RP3YMYCX.js.map → chunk-RDLS6IZY.js.map} +0 -0
- /package/dist/{chunk-MIUMNTIJ.js.map → chunk-RKPETJDJ.js.map} +0 -0
- /package/dist/{chunk-GJ4GTYOD.js.map → chunk-RMDLTRLI.js.map} +0 -0
- /package/dist/{chunk-PGRKTQIW.js.map → chunk-RR6DQN4X.js.map} +0 -0
- /package/dist/{chunk-MQRHTOQ2.js.map → chunk-RVPH6BB7.js.map} +0 -0
- /package/dist/{chunk-B45TB4HY.js.map → chunk-RVXLSVJH.js.map} +0 -0
- /package/dist/{chunk-IINQO425.js.map → chunk-RVY5EZNU.js.map} +0 -0
- /package/dist/{chunk-DFQ72BLS.js.map → chunk-RWHBX4MN.js.map} +0 -0
- /package/dist/{chunk-7UDLRDHK.js.map → chunk-RWHDMGFG.js.map} +0 -0
- /package/dist/{chunk-FLLJ2WXW.js.map → chunk-RYB3WBMZ.js.map} +0 -0
- /package/dist/{chunk-ZSI3ITRK.js.map → chunk-S7EO77EE.js.map} +0 -0
- /package/dist/{chunk-I5FSUZVW.js.map → chunk-S7J4HBPP.js.map} +0 -0
- /package/dist/{chunk-UFJDETKG.js.map → chunk-SA3XI7FB.js.map} +0 -0
- /package/dist/{chunk-NPBEUU22.js.map → chunk-SKRTCSUL.js.map} +0 -0
- /package/dist/{chunk-7TVAPQOV.js.map → chunk-SUWDILUY.js.map} +0 -0
- /package/dist/{chunk-TFSCGFYV.js.map → chunk-SWTPVMR4.js.map} +0 -0
- /package/dist/{chunk-RVC3M66H.js.map → chunk-T5BYEE66.js.map} +0 -0
- /package/dist/{chunk-QTJAQ6DS.js.map → chunk-T652Q4R6.js.map} +0 -0
- /package/dist/{chunk-GBGCMHBB.js.map → chunk-TBUOHK6R.js.map} +0 -0
- /package/dist/{chunk-W2NAU5VB.js.map → chunk-TCUAGCAX.js.map} +0 -0
- /package/dist/{chunk-UYWWUEL4.js.map → chunk-TLWH4E3P.js.map} +0 -0
- /package/dist/{chunk-UOLDS6S5.js.map → chunk-TNHGSWG3.js.map} +0 -0
- /package/dist/{chunk-WSOSGL2G.js.map → chunk-TO6VBJI3.js.map} +0 -0
- /package/dist/{chunk-OI4WS7FW.js.map → chunk-TOL7MOAN.js.map} +0 -0
- /package/dist/{chunk-AYZXE4IM.js.map → chunk-U243CBVZ.js.map} +0 -0
- /package/dist/{chunk-BIUJHNVR.js.map → chunk-U2CEPRDH.js.map} +0 -0
- /package/dist/{chunk-FZI4QOAV.js.map → chunk-UAZPXKPH.js.map} +0 -0
- /package/dist/{chunk-EDPH7AJH.js.map → chunk-UHRGUMLJ.js.map} +0 -0
- /package/dist/{chunk-5JAYZOAW.js.map → chunk-UNDSD6UA.js.map} +0 -0
- /package/dist/{chunk-FPN4I4CG.js.map → chunk-USU2SS4V.js.map} +0 -0
- /package/dist/{chunk-Q4CLS2HL.js.map → chunk-USWA5GQQ.js.map} +0 -0
- /package/dist/{chunk-QYZ5RVGM.js.map → chunk-UXGTI4HR.js.map} +0 -0
- /package/dist/{chunk-JNJIZCTN.js.map → chunk-UZKAHEQO.js.map} +0 -0
- /package/dist/{chunk-ML46TXRM.js.map → chunk-VALESBNH.js.map} +0 -0
- /package/dist/{chunk-F6QP4GSK.js.map → chunk-VMSMVWCJ.js.map} +0 -0
- /package/dist/{chunk-3EM5GTP3.js.map → chunk-VPERSFGV.js.map} +0 -0
- /package/dist/{chunk-AZGGSPTE.js.map → chunk-VXPY2GF3.js.map} +0 -0
- /package/dist/{chunk-6DQBUKGJ.js.map → chunk-W7RKXZDV.js.map} +0 -0
- /package/dist/{chunk-72ND4ALI.js.map → chunk-WEGZPK4I.js.map} +0 -0
- /package/dist/{chunk-LIOZ2MXJ.js.map → chunk-WPKY3BGG.js.map} +0 -0
- /package/dist/{chunk-IIXNEOK4.js.map → chunk-X3T3N6W5.js.map} +0 -0
- /package/dist/{chunk-HA5RFQAF.js.map → chunk-X4OGMBY6.js.map} +0 -0
- /package/dist/{chunk-OITGZUDC.js.map → chunk-X7ZHIJEI.js.map} +0 -0
- /package/dist/{chunk-UJH63JT3.js.map → chunk-XR7Y2HPZ.js.map} +0 -0
- /package/dist/{chunk-ROSB7GF6.js.map → chunk-Y2NMKJ7F.js.map} +0 -0
- /package/dist/{chunk-AI77ZKEV.js.map → chunk-Y2QYPJDN.js.map} +0 -0
- /package/dist/{chunk-OATXCLTY.js.map → chunk-Y47EPVCD.js.map} +0 -0
- /package/dist/{chunk-P4NZ72KY.js.map → chunk-Y5Q4ETIW.js.map} +0 -0
- /package/dist/{chunk-UMLPIMGW.js.map → chunk-YMQVVFXI.js.map} +0 -0
- /package/dist/{chunk-KJ72GMZ2.js.map → chunk-YQ6FP33X.js.map} +0 -0
- /package/dist/{chunk-ZEQYHEWP.js.map → chunk-YUA42N5A.js.map} +0 -0
- /package/dist/{chunk-V5Y74WII.js.map → chunk-YXFNW64N.js.map} +0 -0
- /package/dist/{chunk-SXRYA7NN.js.map → chunk-Z76RJPZF.js.map} +0 -0
- /package/dist/{chunk-MIUJ3EH5.js.map → chunk-ZD67RM6G.js.map} +0 -0
- /package/dist/{chunk-XE4PHI74.js.map → chunk-ZE4RD7U5.js.map} +0 -0
- /package/dist/{chunk-GLSDWNFV.js.map → chunk-ZGR7LNXC.js.map} +0 -0
- /package/dist/{chunk-QMQF5U2D.js.map → chunk-ZNA65Q6Y.js.map} +0 -0
- /package/dist/{chunk-46LZO4ZO.js.map → chunk-ZRNK6FK6.js.map} +0 -0
- /package/dist/{chunk-2JTMFYCT.js.map → chunk-ZVAIKQMC.js.map} +0 -0
- /package/dist/{chunk-TGCKZOSX.js.map → chunk-ZZ3KNGTJ.js.map} +0 -0
- /package/dist/{sandbox-files-HCLEEJMU.js.map → computer-viewer-M5N3GWBR.js.map} +0 -0
- /package/dist/{session-connect-cards-DRKEN3Z4.js.map → embedded-new-voice-QZJG5DZ3.js.map} +0 -0
- /package/dist/{session-realtime-IZOTTRH6.js.map → embedded-voice-7KOQNGKU.js.map} +0 -0
- /package/dist/{fleet-decision-row-LG3SYVR3.js.map → fleet-decision-row-FJPAWNOQ.js.map} +0 -0
- /package/dist/{latest-question-QWJTXMFA.js.map → latest-question-F3VPDR7U.js.map} +0 -0
- /package/dist/{payment-page-card-YPSXRHBA.js.map → payment-page-card-HZJVN3F4.js.map} +0 -0
- /package/dist/{platform-activity-row-ZU4MEBNK.js.map → platform-activity-row-NPEGG2VE.js.map} +0 -0
- /package/dist/{queue-surface-implementation-6Q25RPH6.js.map → queue-surface-implementation-RTCTPF5T.js.map} +0 -0
- /package/dist/{recorder-host-JD4GWJ2Z.js.map → recorder-host-YPWPLMS6.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-WWXNJOXI.js.map → timeline-annotation-markers-7QSYK22C.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-ZKRIQFIQ.js.map → timeline-annotation-selection-XYNMESWL.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-4IMKTOXJ.js.map → timeline-annotations-dialog-WSI6L2CP.js.map} +0 -0
package/dist/chunk-72EOXOR7.js
DELETED
|
@@ -1,1185 +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-KVPQUADA.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
|
-
// Selection matches --og-color-text-selection (tokens.css).
|
|
557
|
-
selectionBackground: "#488ceb70",
|
|
558
|
-
selectionForeground: "oklch(0.985 0 0)",
|
|
559
|
-
selectionInactiveBackground: "#488ceb40"
|
|
560
|
-
};
|
|
561
|
-
var LIGHT_ANSI = {
|
|
562
|
-
black: "oklch(0.35 0 0)",
|
|
563
|
-
red: "oklch(0.52 0.19 22)",
|
|
564
|
-
green: "oklch(0.5 0.13 155)",
|
|
565
|
-
yellow: "oklch(0.56 0.13 80)",
|
|
566
|
-
blue: "oklch(0.52 0.18 255)",
|
|
567
|
-
magenta: "oklch(0.52 0.16 305)",
|
|
568
|
-
cyan: "oklch(0.52 0.1 210)",
|
|
569
|
-
white: "oklch(0.7 0 0)",
|
|
570
|
-
brightBlack: "oklch(0.5 0 0)",
|
|
571
|
-
brightRed: "oklch(0.55 0.2 22)",
|
|
572
|
-
brightGreen: "oklch(0.54 0.14 155)",
|
|
573
|
-
brightYellow: "oklch(0.6 0.14 80)",
|
|
574
|
-
brightBlue: "oklch(0.48 0.19 255)",
|
|
575
|
-
brightMagenta: "oklch(0.54 0.17 305)",
|
|
576
|
-
brightCyan: "oklch(0.54 0.11 210)",
|
|
577
|
-
brightWhite: "oklch(0.3 0 0)",
|
|
578
|
-
selectionBackground: "#3884ff52",
|
|
579
|
-
selectionForeground: "oklch(0.21 0 0)",
|
|
580
|
-
selectionInactiveBackground: "#3884ff2e"
|
|
581
|
-
};
|
|
582
|
-
function ogAnsiPalette(mode) {
|
|
583
|
-
return mode === "light" ? LIGHT_ANSI : DARK_ANSI;
|
|
584
|
-
}
|
|
585
|
-
function buildXtermTheme(read, mode) {
|
|
586
|
-
const ansi = ogAnsiPalette(mode);
|
|
587
|
-
const bgFallback = mode === "light" ? "#ffffff" : "#202020";
|
|
588
|
-
const fgFallback = mode === "light" ? "#242424" : "#e6e6e6";
|
|
589
|
-
const bg = read("--og-color-bg") ?? bgFallback;
|
|
590
|
-
const fg = read("--og-color-fg") ?? fgFallback;
|
|
591
|
-
const accent = read("--og-color-accent") ?? ansi.brightBlue;
|
|
592
|
-
return {
|
|
593
|
-
// Match the dock surface the terminal paints on (`--og-color-bg`).
|
|
594
|
-
background: bg,
|
|
595
|
-
foreground: fg,
|
|
596
|
-
cursor: accent,
|
|
597
|
-
cursorAccent: bg,
|
|
598
|
-
selectionBackground: ansi.selectionBackground,
|
|
599
|
-
selectionForeground: ansi.selectionForeground,
|
|
600
|
-
selectionInactiveBackground: ansi.selectionInactiveBackground,
|
|
601
|
-
black: ansi.black,
|
|
602
|
-
red: ansi.red,
|
|
603
|
-
green: ansi.green,
|
|
604
|
-
yellow: ansi.yellow,
|
|
605
|
-
blue: ansi.blue,
|
|
606
|
-
magenta: ansi.magenta,
|
|
607
|
-
cyan: ansi.cyan,
|
|
608
|
-
white: ansi.white,
|
|
609
|
-
brightBlack: ansi.brightBlack,
|
|
610
|
-
brightRed: ansi.brightRed,
|
|
611
|
-
brightGreen: ansi.brightGreen,
|
|
612
|
-
brightYellow: ansi.brightYellow,
|
|
613
|
-
brightBlue: ansi.brightBlue,
|
|
614
|
-
brightMagenta: ansi.brightMagenta,
|
|
615
|
-
brightCyan: ansi.brightCyan,
|
|
616
|
-
brightWhite: ansi.brightWhite
|
|
617
|
-
};
|
|
618
|
-
}
|
|
619
|
-
function detectMode(el, style) {
|
|
620
|
-
const closest = el.closest?.bind(el);
|
|
621
|
-
if (closest) {
|
|
622
|
-
if (closest('[data-og-theme="light"]') || closest(".og-light")) return "light";
|
|
623
|
-
const explicit = closest("[data-og-theme]");
|
|
624
|
-
if (explicit) return explicit.getAttribute("data-og-theme") === "light" ? "light" : "dark";
|
|
625
|
-
}
|
|
626
|
-
const scheme = (style.getPropertyValue("color-scheme").trim() || style.colorScheme || "").toLowerCase();
|
|
627
|
-
if (scheme.includes("light") && !scheme.includes("dark")) return "light";
|
|
628
|
-
return "dark";
|
|
629
|
-
}
|
|
630
|
-
function xtermThemeFromTokens(root) {
|
|
631
|
-
if (typeof window === "undefined" || typeof getComputedStyle === "undefined") return void 0;
|
|
632
|
-
const el = root ?? (typeof document !== "undefined" ? document.querySelector("[data-og-theme]") ?? document.documentElement : null);
|
|
633
|
-
if (!el) return void 0;
|
|
634
|
-
const style = getComputedStyle(el);
|
|
635
|
-
const read = (name) => {
|
|
636
|
-
const value = style.getPropertyValue(name).trim();
|
|
637
|
-
return value || void 0;
|
|
638
|
-
};
|
|
639
|
-
return buildXtermTheme(read, detectMode(el, style));
|
|
640
|
-
}
|
|
641
|
-
var FALLBACK_MONO = "ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";
|
|
642
|
-
function resolveTerminalFontFromReader(read, overrides) {
|
|
643
|
-
const rawFamily = overrides?.fontFamily ?? read("--og-font-mono");
|
|
644
|
-
const fontFamily = rawFamily && rawFamily.trim() && !rawFamily.includes("var(") ? rawFamily.trim() : FALLBACK_MONO;
|
|
645
|
-
let fontSize = overrides?.fontSize;
|
|
646
|
-
if (fontSize == null) {
|
|
647
|
-
const raw = read("--og-code-font-size");
|
|
648
|
-
const parsed = raw ? Number.parseFloat(raw) : Number.NaN;
|
|
649
|
-
fontSize = Number.isFinite(parsed) && parsed > 0 ? parsed : 13;
|
|
650
|
-
}
|
|
651
|
-
return { fontFamily, fontSize, lineHeight: 1.3 };
|
|
652
|
-
}
|
|
653
|
-
function resolveTerminalFont(el, overrides) {
|
|
654
|
-
const style = getComputedStyle(el);
|
|
655
|
-
const read = (name) => {
|
|
656
|
-
const value = style.getPropertyValue(name).trim();
|
|
657
|
-
return value || void 0;
|
|
658
|
-
};
|
|
659
|
-
return resolveTerminalFontFromReader(read, overrides);
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
// src/components/sandbox-terminal.tsx
|
|
663
|
-
import {
|
|
664
|
-
useEffect as useEffect2,
|
|
665
|
-
useLayoutEffect,
|
|
666
|
-
useRef as useRef2,
|
|
667
|
-
useState as useState2,
|
|
668
|
-
useSyncExternalStore
|
|
669
|
-
} from "react";
|
|
670
|
-
|
|
671
|
-
// src/lib/terminal-capability.ts
|
|
672
|
-
function terminalCanAcquirePty(cell) {
|
|
673
|
-
if (!cell?.ptyCapable) return false;
|
|
674
|
-
if (cell.transport === "pty-ws" || cell.transport === "relay-pty") return true;
|
|
675
|
-
return cell.reason === "lease_cold" || cell.reason === "not_provisioned";
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
// src/lib/xterm-renderer.ts
|
|
679
|
-
var ORDER = ["webgl", "canvas", "dom"];
|
|
680
|
-
function nextRendererTier(tier) {
|
|
681
|
-
const i = ORDER.indexOf(tier);
|
|
682
|
-
return i >= 0 && i < ORDER.length - 1 ? ORDER[i + 1] : null;
|
|
683
|
-
}
|
|
684
|
-
async function attachRenderer(prefer, loaders, onTier) {
|
|
685
|
-
const start = Math.max(0, ORDER.indexOf(prefer));
|
|
686
|
-
for (let i = start; i < ORDER.length; i++) {
|
|
687
|
-
const tier = ORDER[i];
|
|
688
|
-
if (tier === "dom") break;
|
|
689
|
-
const loader = tier === "webgl" ? loaders.webgl : loaders.canvas;
|
|
690
|
-
if (!loader) continue;
|
|
691
|
-
try {
|
|
692
|
-
const downgrade = nextRendererTier(tier) ?? "dom";
|
|
693
|
-
await loader(() => {
|
|
694
|
-
void attachRenderer(downgrade, loaders, onTier);
|
|
695
|
-
});
|
|
696
|
-
onTier(tier);
|
|
697
|
-
return tier;
|
|
698
|
-
} catch {
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
onTier("dom");
|
|
702
|
-
return "dom";
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
// src/components/sandbox-terminal.tsx
|
|
706
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
707
|
-
function terminalSurfaceState(input) {
|
|
708
|
-
if (!input.ready) return "loading";
|
|
709
|
-
if (input.acceptsInput) return "interactive";
|
|
710
|
-
if (input.inputPending) return "connecting";
|
|
711
|
-
if (input.ptyStatus === "connecting") return "connecting";
|
|
712
|
-
if (input.ptyStatus === "error") return "error";
|
|
713
|
-
if (input.booting) return "waking";
|
|
714
|
-
return "output-only";
|
|
715
|
-
}
|
|
716
|
-
function subscribeTerminalInput(term, sink, enabled) {
|
|
717
|
-
if (!enabled || !term || !sink) return null;
|
|
718
|
-
return term.onData(sink);
|
|
719
|
-
}
|
|
720
|
-
function clearTerminalBootStatus(term) {
|
|
721
|
-
term.write("\r\x1B[2K\x1B[2J\x1B[H");
|
|
722
|
-
}
|
|
723
|
-
function resetTerminal(term) {
|
|
724
|
-
if (term.reset) {
|
|
725
|
-
term.reset();
|
|
726
|
-
return;
|
|
727
|
-
}
|
|
728
|
-
term.clear();
|
|
729
|
-
term.write("\x1B[2J\x1B[3J\x1B[H");
|
|
730
|
-
}
|
|
731
|
-
function forcedRendererFailures() {
|
|
732
|
-
const raw = typeof globalThis !== "undefined" ? globalThis.__OG_FORCE_RENDERER_FAIL__ : void 0;
|
|
733
|
-
const set = /* @__PURE__ */ new Set();
|
|
734
|
-
if (typeof raw === "string") {
|
|
735
|
-
for (const tier of raw.split(/[\s,]+/)) {
|
|
736
|
-
if (tier === "webgl" || tier === "canvas") set.add(tier);
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
return set;
|
|
740
|
-
}
|
|
741
|
-
function SandboxTerminal({
|
|
742
|
-
result,
|
|
743
|
-
terminalCapability,
|
|
744
|
-
theme,
|
|
745
|
-
fontFamily,
|
|
746
|
-
fontSize,
|
|
747
|
-
liveness,
|
|
748
|
-
readOnly,
|
|
749
|
-
placeholder,
|
|
750
|
-
showHeader,
|
|
751
|
-
shell,
|
|
752
|
-
onActivate,
|
|
753
|
-
onReconnectNeeded,
|
|
754
|
-
className
|
|
755
|
-
}) {
|
|
756
|
-
const t = useOpenGeniText();
|
|
757
|
-
const containerRef = useRef2(null);
|
|
758
|
-
const termRef = useRef2(null);
|
|
759
|
-
const fitRef = useRef2(null);
|
|
760
|
-
const rendererRef = useRef2(null);
|
|
761
|
-
const writtenRef = useRef2(/* @__PURE__ */ new Set());
|
|
762
|
-
const writtenThroughRef = useRef2(0);
|
|
763
|
-
const clearedThroughRef = useRef2(0);
|
|
764
|
-
const wroteFirehoseRef = useRef2(false);
|
|
765
|
-
const bootActiveRef = useRef2(false);
|
|
766
|
-
const [ready, setReady] = useState2(false);
|
|
767
|
-
const [loadError, setLoadError] = useState2(null);
|
|
768
|
-
const peerRevision = useSyncExternalStore(
|
|
769
|
-
sandboxTerminalPeers.subscribe,
|
|
770
|
-
sandboxTerminalPeers.revision,
|
|
771
|
-
sandboxTerminalPeers.revision
|
|
772
|
-
);
|
|
773
|
-
const [inputReady, setInputReady] = useState2(false);
|
|
774
|
-
const [activated, setActivated] = useState2(false);
|
|
775
|
-
const ptyDescriptor = terminalCapability?.transport === "pty-ws" || terminalCapability?.transport === "relay-pty";
|
|
776
|
-
const ptyAttachable = terminalCanAcquirePty(terminalCapability);
|
|
777
|
-
const {
|
|
778
|
-
status: ptyStatus,
|
|
779
|
-
write: ptyWrite,
|
|
780
|
-
resize: resizePty,
|
|
781
|
-
connected: ptyConnected,
|
|
782
|
-
inputReadiness,
|
|
783
|
-
useLegacyInput
|
|
784
|
-
} = useTerminalStream({
|
|
785
|
-
// Connect only after xterm exists. This makes the renderer the sole output
|
|
786
|
-
// owner from the first websocket frame and removes an otherwise unbounded
|
|
787
|
-
// pre-mount output queue during large command bursts.
|
|
788
|
-
capability: ptyAttachable && ready ? {
|
|
789
|
-
transport: terminalCapability.transport,
|
|
790
|
-
url: ptyDescriptor ? terminalCapability.url : null,
|
|
791
|
-
token: ptyDescriptor ? terminalCapability.token : null,
|
|
792
|
-
expiresAt: ptyDescriptor ? terminalCapability.expiresAt : null,
|
|
793
|
-
ptyCapable: terminalCapability.ptyCapable,
|
|
794
|
-
reason: terminalCapability.reason
|
|
795
|
-
} : null,
|
|
796
|
-
onOutput: (data) => {
|
|
797
|
-
termRef.current?.write(data);
|
|
798
|
-
},
|
|
799
|
-
onReconnectNeeded
|
|
800
|
-
});
|
|
801
|
-
const ptyMode = ptyDescriptor;
|
|
802
|
-
const ptyCapturesInput = ptyAttachable && ptyStatus !== "error";
|
|
803
|
-
const interactive = !readOnly && (ptyAttachable ? ptyCapturesInput : result.write !== null);
|
|
804
|
-
const acceptsInput = inputReady && (!ptyAttachable || ptyConnected);
|
|
805
|
-
const inputPending = inputReady && ptyAttachable && !ptyConnected && activated;
|
|
806
|
-
let terminalModeLabel;
|
|
807
|
-
if (readOnly) terminalModeLabel = t("sandboxTerminal.readOnly");
|
|
808
|
-
else if (!ptyAttachable)
|
|
809
|
-
terminalModeLabel = acceptsInput ? null : t("sandboxTerminal.outputOnly");
|
|
810
|
-
else if (ptyStatus === "error") terminalModeLabel = t("sandboxTerminal.connectionError");
|
|
811
|
-
else if (acceptsInput)
|
|
812
|
-
terminalModeLabel = inputReadiness === "legacy" ? t("sandboxTerminal.legacyInput") : null;
|
|
813
|
-
else
|
|
814
|
-
terminalModeLabel = activated ? t("sandboxTerminal.connecting") : t("sandboxTerminal.connectOnInput");
|
|
815
|
-
const warm = sandboxAcceptsLiveIo(liveness);
|
|
816
|
-
const booting = activated && !ptyMode && !warm && liveness !== null && liveness !== void 0 && result.chunks.length === 0;
|
|
817
|
-
const surfaceState = terminalSurfaceState({
|
|
818
|
-
ready,
|
|
819
|
-
acceptsInput,
|
|
820
|
-
inputPending,
|
|
821
|
-
ptyStatus,
|
|
822
|
-
booting
|
|
823
|
-
});
|
|
824
|
-
function handleActivate() {
|
|
825
|
-
const term = termRef.current;
|
|
826
|
-
if (term && !readOnly && (ptyAttachable || result.write !== null)) {
|
|
827
|
-
term.options.disableStdin = false;
|
|
828
|
-
term.options.cursorBlink = true;
|
|
829
|
-
}
|
|
830
|
-
term?.focus();
|
|
831
|
-
if (!activated) setActivated(true);
|
|
832
|
-
onActivate?.();
|
|
833
|
-
}
|
|
834
|
-
useEffect2(() => {
|
|
835
|
-
if (typeof window === "undefined") return;
|
|
836
|
-
const el = containerRef.current;
|
|
837
|
-
if (!el) return;
|
|
838
|
-
let disposed = false;
|
|
839
|
-
const waitForSize = (node) => new Promise((resolve) => {
|
|
840
|
-
if (node.clientWidth > 0 && node.clientHeight > 0) return resolve();
|
|
841
|
-
const ro = new ResizeObserver(() => {
|
|
842
|
-
if (node.clientWidth > 0 && node.clientHeight > 0) {
|
|
843
|
-
ro.disconnect();
|
|
844
|
-
resolve();
|
|
845
|
-
}
|
|
846
|
-
});
|
|
847
|
-
ro.observe(node);
|
|
848
|
-
setTimeout(() => {
|
|
849
|
-
ro.disconnect();
|
|
850
|
-
resolve();
|
|
851
|
-
}, 1e3);
|
|
852
|
-
});
|
|
853
|
-
ensureXtermBaseCss();
|
|
854
|
-
setLoadError(null);
|
|
855
|
-
void (async () => {
|
|
856
|
-
const { Terminal, FitAddon, WebLinksAddon, loadWebgl } = await sandboxTerminalPeers.load();
|
|
857
|
-
if (disposed) return;
|
|
858
|
-
await waitForSize(el);
|
|
859
|
-
if (disposed) return;
|
|
860
|
-
const font = resolveTerminalFont(el, { fontFamily, fontSize });
|
|
861
|
-
const initialTheme = theme ?? xtermThemeFromTokens(el);
|
|
862
|
-
const term = new Terminal({
|
|
863
|
-
convertEol: true,
|
|
864
|
-
disableStdin: !interactive,
|
|
865
|
-
cursorBlink: interactive,
|
|
866
|
-
fontFamily: font.fontFamily,
|
|
867
|
-
fontSize: font.fontSize,
|
|
868
|
-
lineHeight: font.lineHeight,
|
|
869
|
-
...initialTheme ? { theme: initialTheme } : {}
|
|
870
|
-
});
|
|
871
|
-
const fit = new FitAddon();
|
|
872
|
-
term.loadAddon(fit);
|
|
873
|
-
term.loadAddon(
|
|
874
|
-
new WebLinksAddon(
|
|
875
|
-
(_e, uri) => window.open(uri, "_blank", "noopener,noreferrer")
|
|
876
|
-
)
|
|
877
|
-
);
|
|
878
|
-
term.open(el);
|
|
879
|
-
termRef.current = term;
|
|
880
|
-
fitRef.current = fit;
|
|
881
|
-
const failSet = forcedRendererFailures();
|
|
882
|
-
const loaders = {
|
|
883
|
-
webgl: async (onLoss) => {
|
|
884
|
-
if (disposed) throw new Error("Terminal was disposed");
|
|
885
|
-
if (failSet.has("webgl")) throw new Error("forced webgl failure");
|
|
886
|
-
if (!loadWebgl) throw new Error("WebGL terminal renderer is not enabled");
|
|
887
|
-
const { WebglAddon } = await loadWebgl();
|
|
888
|
-
if (disposed) throw new Error("Terminal was disposed");
|
|
889
|
-
const addon = new WebglAddon();
|
|
890
|
-
addon.onContextLoss?.(() => {
|
|
891
|
-
if (disposed) return;
|
|
892
|
-
try {
|
|
893
|
-
addon.dispose();
|
|
894
|
-
} catch {
|
|
895
|
-
}
|
|
896
|
-
onLoss();
|
|
897
|
-
});
|
|
898
|
-
term.loadAddon(addon);
|
|
899
|
-
return addon;
|
|
900
|
-
}
|
|
901
|
-
};
|
|
902
|
-
await attachRenderer("webgl", loaders, (tier) => {
|
|
903
|
-
if (disposed) return;
|
|
904
|
-
rendererRef.current = tier;
|
|
905
|
-
el.setAttribute("data-og-term-renderer", tier);
|
|
906
|
-
});
|
|
907
|
-
if (disposed) return;
|
|
908
|
-
const settle = () => {
|
|
909
|
-
try {
|
|
910
|
-
fit.fit();
|
|
911
|
-
} catch {
|
|
912
|
-
}
|
|
913
|
-
};
|
|
914
|
-
settle();
|
|
915
|
-
requestAnimationFrame(() => {
|
|
916
|
-
if (disposed) return;
|
|
917
|
-
settle();
|
|
918
|
-
el.setAttribute("data-og-term-ready", "true");
|
|
919
|
-
if (typeof globalThis.__OG_TERMINAL_DEBUG__ === "function") {
|
|
920
|
-
globalThis.__OG_TERMINAL_DEBUG__({
|
|
921
|
-
renderer: rendererRef.current,
|
|
922
|
-
fontFamily: term.options.fontFamily,
|
|
923
|
-
fontSize: term.options.fontSize,
|
|
924
|
-
hasVarInFont: String(term.options.fontFamily ?? "").includes("var("),
|
|
925
|
-
theme: term.options.theme,
|
|
926
|
-
term
|
|
927
|
-
});
|
|
928
|
-
}
|
|
929
|
-
setReady(true);
|
|
930
|
-
});
|
|
931
|
-
})().catch((cause) => {
|
|
932
|
-
if (!disposed) setLoadError(cause instanceof Error ? cause : new Error(String(cause)));
|
|
933
|
-
});
|
|
934
|
-
return () => {
|
|
935
|
-
disposed = true;
|
|
936
|
-
termRef.current?.dispose();
|
|
937
|
-
termRef.current = null;
|
|
938
|
-
fitRef.current = null;
|
|
939
|
-
rendererRef.current = null;
|
|
940
|
-
writtenRef.current = /* @__PURE__ */ new Set();
|
|
941
|
-
writtenThroughRef.current = 0;
|
|
942
|
-
wroteFirehoseRef.current = false;
|
|
943
|
-
bootActiveRef.current = false;
|
|
944
|
-
setReady(false);
|
|
945
|
-
};
|
|
946
|
-
}, [peerRevision]);
|
|
947
|
-
useLayoutEffect(() => {
|
|
948
|
-
const term = termRef.current;
|
|
949
|
-
if (!ready || !term) return;
|
|
950
|
-
term.options.disableStdin = !interactive;
|
|
951
|
-
term.options.cursorBlink = interactive;
|
|
952
|
-
}, [ready, interactive]);
|
|
953
|
-
useEffect2(() => {
|
|
954
|
-
const term = termRef.current;
|
|
955
|
-
if (!ready || !term) return;
|
|
956
|
-
const next = theme ?? xtermThemeFromTokens(containerRef.current);
|
|
957
|
-
if (next) term.options.theme = next;
|
|
958
|
-
}, [ready, theme]);
|
|
959
|
-
useEffect2(() => {
|
|
960
|
-
const term = termRef.current;
|
|
961
|
-
if (!ready || !term) return;
|
|
962
|
-
if (!booting) {
|
|
963
|
-
if (bootActiveRef.current) {
|
|
964
|
-
bootActiveRef.current = false;
|
|
965
|
-
if (!wroteFirehoseRef.current) clearTerminalBootStatus(term);
|
|
966
|
-
}
|
|
967
|
-
return;
|
|
968
|
-
}
|
|
969
|
-
bootActiveRef.current = true;
|
|
970
|
-
const start = Date.now();
|
|
971
|
-
const paint = () => {
|
|
972
|
-
const s = Math.max(0, Math.round((Date.now() - start) / 1e3));
|
|
973
|
-
term.write(
|
|
974
|
-
`\r\x1B[2K\x1B[94m\u25CF\x1B[0m \x1B[2m${t("sandboxTerminal.wakingMachineSeconds", { seconds: s })}\x1B[0m`
|
|
975
|
-
);
|
|
976
|
-
};
|
|
977
|
-
term.write("\r\n");
|
|
978
|
-
paint();
|
|
979
|
-
const id = setInterval(paint, 1e3);
|
|
980
|
-
return () => clearInterval(id);
|
|
981
|
-
}, [ready, booting, t]);
|
|
982
|
-
useEffect2(() => {
|
|
983
|
-
const term = termRef.current;
|
|
984
|
-
if (!ready || !term || ptyMode) return;
|
|
985
|
-
const shown = result.chunks.filter((chunk) => chunk.seq > clearedThroughRef.current);
|
|
986
|
-
const fresh = shown.filter((chunk) => !writtenRef.current.has(chunk.id));
|
|
987
|
-
if (fresh.length === 0) return;
|
|
988
|
-
let pending = fresh;
|
|
989
|
-
if (fresh[0].seq < writtenThroughRef.current) {
|
|
990
|
-
resetTerminal(term);
|
|
991
|
-
writtenRef.current = /* @__PURE__ */ new Set();
|
|
992
|
-
pending = shown;
|
|
993
|
-
}
|
|
994
|
-
for (const chunk of pending) {
|
|
995
|
-
writtenRef.current.add(chunk.id);
|
|
996
|
-
writtenThroughRef.current = Math.max(writtenThroughRef.current, chunk.seq);
|
|
997
|
-
wroteFirehoseRef.current = true;
|
|
998
|
-
term.write(chunk.text);
|
|
999
|
-
}
|
|
1000
|
-
}, [ready, result.chunks, ptyMode]);
|
|
1001
|
-
useLayoutEffect(() => {
|
|
1002
|
-
const term = termRef.current;
|
|
1003
|
-
if (!ready || !term || !interactive) {
|
|
1004
|
-
setInputReady(false);
|
|
1005
|
-
return;
|
|
1006
|
-
}
|
|
1007
|
-
const sink = ptyAttachable ? ptyWrite : result.write;
|
|
1008
|
-
if (!sink) {
|
|
1009
|
-
setInputReady(false);
|
|
1010
|
-
return;
|
|
1011
|
-
}
|
|
1012
|
-
const sub = subscribeTerminalInput(term, sink, true);
|
|
1013
|
-
setInputReady(sub !== null);
|
|
1014
|
-
return () => sub?.dispose();
|
|
1015
|
-
}, [ready, interactive, ptyAttachable, ptyWrite, result.write]);
|
|
1016
|
-
useEffect2(() => {
|
|
1017
|
-
const term = termRef.current;
|
|
1018
|
-
if (!ready || !term || !ptyMode) return;
|
|
1019
|
-
resizePty(term.cols, term.rows);
|
|
1020
|
-
const sub = term.onResize(({ cols, rows }) => resizePty(cols, rows));
|
|
1021
|
-
return () => sub.dispose();
|
|
1022
|
-
}, [ready, ptyMode, ptyConnected, resizePty]);
|
|
1023
|
-
useEffect2(() => {
|
|
1024
|
-
if (typeof window === "undefined") return;
|
|
1025
|
-
const refit = () => {
|
|
1026
|
-
try {
|
|
1027
|
-
fitRef.current?.fit();
|
|
1028
|
-
} catch {
|
|
1029
|
-
}
|
|
1030
|
-
};
|
|
1031
|
-
window.addEventListener("resize", refit);
|
|
1032
|
-
let observer = null;
|
|
1033
|
-
const el = containerRef.current;
|
|
1034
|
-
if (el && typeof ResizeObserver !== "undefined") {
|
|
1035
|
-
observer = new ResizeObserver(() => refit());
|
|
1036
|
-
observer.observe(el);
|
|
1037
|
-
}
|
|
1038
|
-
return () => {
|
|
1039
|
-
window.removeEventListener("resize", refit);
|
|
1040
|
-
observer?.disconnect();
|
|
1041
|
-
};
|
|
1042
|
-
}, [ready]);
|
|
1043
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("relative flex h-full w-full flex-col overflow-hidden", className), children: [
|
|
1044
|
-
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: [
|
|
1045
|
-
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
1046
|
-
/* @__PURE__ */ jsx(
|
|
1047
|
-
"span",
|
|
1048
|
-
{
|
|
1049
|
-
className: cn(
|
|
1050
|
-
"size-1.5 shrink-0 rounded-full",
|
|
1051
|
-
result.running ? "bg-og-status-running" : "bg-og-fg-subtle"
|
|
1052
|
-
)
|
|
1053
|
-
}
|
|
1054
|
-
),
|
|
1055
|
-
/* @__PURE__ */ jsxs("span", { className: "truncate font-og-mono", children: [
|
|
1056
|
-
t("sandboxTerminal.pty"),
|
|
1057
|
-
" ",
|
|
1058
|
-
shell ?? t("sandboxTerminal.shell")
|
|
1059
|
-
] })
|
|
1060
|
-
] }),
|
|
1061
|
-
/* @__PURE__ */ jsxs("span", { className: "flex shrink-0 items-center gap-2", children: [
|
|
1062
|
-
terminalModeLabel && /* @__PURE__ */ jsx(
|
|
1063
|
-
"span",
|
|
1064
|
-
{
|
|
1065
|
-
className: "rounded-og-sm bg-og-surface-2 px-1.5 py-0.5 text-og-xs uppercase tracking-wide",
|
|
1066
|
-
role: "status",
|
|
1067
|
-
title: inputReadiness === "legacy" ? t("sandboxTerminal.shellReadinessIsNotGuaranteed") : void 0,
|
|
1068
|
-
children: terminalModeLabel
|
|
1069
|
-
}
|
|
1070
|
-
),
|
|
1071
|
-
/* @__PURE__ */ jsx(
|
|
1072
|
-
"button",
|
|
1073
|
-
{
|
|
1074
|
-
type: "button",
|
|
1075
|
-
onClick: () => {
|
|
1076
|
-
termRef.current?.clear();
|
|
1077
|
-
clearedThroughRef.current = Math.max(
|
|
1078
|
-
clearedThroughRef.current,
|
|
1079
|
-
writtenThroughRef.current
|
|
1080
|
-
);
|
|
1081
|
-
wroteFirehoseRef.current = false;
|
|
1082
|
-
},
|
|
1083
|
-
className: "rounded-og-sm px-1.5 py-0.5 text-og-xs hover:text-og-fg pointer-coarse:min-h-11",
|
|
1084
|
-
children: t("sandboxTerminal.clear")
|
|
1085
|
-
}
|
|
1086
|
-
)
|
|
1087
|
-
] })
|
|
1088
|
-
] }),
|
|
1089
|
-
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") }),
|
|
1090
|
-
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: [
|
|
1091
|
-
/* @__PURE__ */ jsx("span", { role: "status", children: t("sandboxTerminal.waitingForShellReadinessManual") }),
|
|
1092
|
-
/* @__PURE__ */ jsx(
|
|
1093
|
-
"button",
|
|
1094
|
-
{
|
|
1095
|
-
type: "button",
|
|
1096
|
-
onClick: () => {
|
|
1097
|
-
useLegacyInput();
|
|
1098
|
-
termRef.current?.focus();
|
|
1099
|
-
},
|
|
1100
|
-
title: t("sandboxTerminal.useForStartupPromptsOr"),
|
|
1101
|
-
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",
|
|
1102
|
-
children: t("sandboxTerminal.useManualInput")
|
|
1103
|
-
}
|
|
1104
|
-
)
|
|
1105
|
-
] }),
|
|
1106
|
-
/* @__PURE__ */ jsxs(
|
|
1107
|
-
"div",
|
|
1108
|
-
{
|
|
1109
|
-
className: "relative min-h-0 flex-1 bg-og-bg p-3",
|
|
1110
|
-
onPointerDownCapture: handleActivate,
|
|
1111
|
-
onFocusCapture: handleActivate,
|
|
1112
|
-
children: [
|
|
1113
|
-
!ready && (loadError ? /* @__PURE__ */ jsx("p", { role: "alert", children: loadError.message }) : placeholder ?? /* @__PURE__ */ jsx(TerminalPlaceholder, {})),
|
|
1114
|
-
/* @__PURE__ */ jsx(
|
|
1115
|
-
"div",
|
|
1116
|
-
{
|
|
1117
|
-
ref: containerRef,
|
|
1118
|
-
className: "h-full w-full",
|
|
1119
|
-
style: { visibility: ready ? "visible" : "hidden" },
|
|
1120
|
-
"data-opengeni-terminal": true,
|
|
1121
|
-
"data-opengeni-terminal-ready": ready ? "true" : "false",
|
|
1122
|
-
"data-opengeni-terminal-interactive": surfaceState === "interactive" ? "true" : "false",
|
|
1123
|
-
"data-opengeni-terminal-state": surfaceState,
|
|
1124
|
-
"data-opengeni-terminal-status": ptyAttachable ? ptyStatus : "firehose",
|
|
1125
|
-
"data-opengeni-terminal-input-readiness": ptyAttachable ? inputReadiness : "firehose"
|
|
1126
|
-
}
|
|
1127
|
-
)
|
|
1128
|
-
]
|
|
1129
|
-
}
|
|
1130
|
-
)
|
|
1131
|
-
] });
|
|
1132
|
-
}
|
|
1133
|
-
var XTERM_STYLE_ID = "opengeni-xterm-base-css";
|
|
1134
|
-
var XTERM_BASE_CSS = `
|
|
1135
|
-
.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}
|
|
1136
|
-
.xterm.focus,.xterm:focus{outline:none}
|
|
1137
|
-
.xterm .xterm-helpers{position:absolute;top:0;z-index:5}
|
|
1138
|
-
.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}
|
|
1139
|
-
.xterm .composition-view{background:var(--og-color-bg);color:var(--og-color-fg);display:none;position:absolute;white-space:nowrap;z-index:1}
|
|
1140
|
-
.xterm .composition-view.active{display:block}
|
|
1141
|
-
.xterm .xterm-viewport{background-color:transparent;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}
|
|
1142
|
-
.xterm .xterm-screen{position:relative}
|
|
1143
|
-
.xterm .xterm-screen canvas{position:absolute;left:0;top:0}
|
|
1144
|
-
.xterm .xterm-scroll-area{visibility:hidden}
|
|
1145
|
-
.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}
|
|
1146
|
-
.xterm.enable-mouse-events{cursor:default}
|
|
1147
|
-
.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}
|
|
1148
|
-
.xterm.column-select.focus{cursor:crosshair}
|
|
1149
|
-
.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}
|
|
1150
|
-
.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}
|
|
1151
|
-
.xterm .xterm-accessibility-tree{user-select:text;white-space:pre}
|
|
1152
|
-
.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
|
|
1153
|
-
.xterm-dim{opacity:1!important}
|
|
1154
|
-
.xterm-underline-1{text-decoration:underline}
|
|
1155
|
-
.xterm-underline-2{text-decoration:double underline}
|
|
1156
|
-
.xterm-underline-3{text-decoration:wavy underline}
|
|
1157
|
-
.xterm-underline-4{text-decoration:dotted underline}
|
|
1158
|
-
.xterm-underline-5{text-decoration:dashed underline}
|
|
1159
|
-
.xterm-overline{text-decoration:overline}
|
|
1160
|
-
.xterm-strikethrough{text-decoration:line-through}
|
|
1161
|
-
.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}
|
|
1162
|
-
.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}
|
|
1163
|
-
.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}
|
|
1164
|
-
.xterm-decoration-top{z-index:2;position:relative}
|
|
1165
|
-
`;
|
|
1166
|
-
function ensureXtermBaseCss() {
|
|
1167
|
-
if (typeof document === "undefined") return;
|
|
1168
|
-
if (document.getElementById(XTERM_STYLE_ID)) return;
|
|
1169
|
-
const style = document.createElement("style");
|
|
1170
|
-
style.id = XTERM_STYLE_ID;
|
|
1171
|
-
style.textContent = XTERM_BASE_CSS;
|
|
1172
|
-
document.head.appendChild(style);
|
|
1173
|
-
}
|
|
1174
|
-
function TerminalPlaceholder() {
|
|
1175
|
-
const t = useOpenGeniText();
|
|
1176
|
-
return /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center text-og-sm text-og-fg-subtle", children: t("sandboxTerminal.loadingTerminal") });
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
export {
|
|
1180
|
-
terminalCanAcquirePty,
|
|
1181
|
-
useTerminalStream,
|
|
1182
|
-
xtermThemeFromTokens,
|
|
1183
|
-
SandboxTerminal
|
|
1184
|
-
};
|
|
1185
|
-
//# sourceMappingURL=chunk-72EOXOR7.js.map
|