@opengeni/react 6.40.0 → 6.41.1-canary.45704649926001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/app-state.js +34 -34
- package/dist/app/components/Composer.js +45 -45
- package/dist/app/components/add-card-dialog.js +3 -3
- package/dist/app/components/add-card.js +2 -2
- package/dist/app/components/agent/agent-capability-picker.js +10 -10
- package/dist/app/components/agents/agent-can-use.js +51 -50
- package/dist/app/components/agents/agent-cost.js +2 -2
- package/dist/app/components/agents/agent-form-page.js +153 -152
- package/dist/app/components/agents/agent-form-page.js.map +1 -1
- package/dist/app/components/agents/agent-page.js +134 -133
- package/dist/app/components/agents/agent-setup-sections.js +81 -80
- package/dist/app/components/agents/agent-skills.js +15 -15
- package/dist/app/components/agents/agent-trigger-chat-field.js +6 -6
- package/dist/app/components/agents/agent-trigger-dialog.js +35 -35
- package/dist/app/components/agents/agent-trigger-picker.js +8 -8
- package/dist/app/components/agents/agent-trigger-repositories.js +16 -16
- package/dist/app/components/agents/agents-page.js +99 -98
- package/dist/app/components/agents/agents-page.js.map +1 -1
- package/dist/app/components/agents/composer-agent-chip.js +60 -59
- package/dist/app/components/agents/session-agent-chip.js +55 -54
- package/dist/app/components/artifacts/app-package.js +13 -13
- package/dist/app/components/artifacts/artifact-browse-controls.js +3 -3
- package/dist/app/components/artifacts/artifact-library.js +30 -30
- package/dist/app/components/artifacts/artifact-page-chrome.js +1 -1
- package/dist/app/components/artifacts/artifact-viewer.js +64 -63
- package/dist/app/components/artifacts/artifact-viewer.js.map +1 -1
- package/dist/app/components/artifacts/chat-interactive-block.js +30 -28
- package/dist/app/components/artifacts/chat-interactive-block.js.map +1 -1
- package/dist/app/components/artifacts/copy-artifact-link.js +3 -3
- package/dist/app/components/artifacts/file-reach-dialog.js +13 -13
- package/dist/app/components/artifacts/inline-chat-image.js +52 -51
- package/dist/app/components/artifacts/ready-made-apps.js +13 -13
- package/dist/app/components/artifacts/retained-file-preview.js +57 -56
- package/dist/app/components/artifacts/retained-text-preview.js +7 -7
- package/dist/app/components/artifacts/site-actions.js +11 -11
- package/dist/app/components/artifacts/site-audience.js +8 -8
- package/dist/app/components/artifacts/site-conversations.js +34 -34
- package/dist/app/components/artifacts/site-data.js +30 -30
- package/dist/app/components/artifacts/site-public-link.js +1 -1
- package/dist/app/components/artifacts/site-publishing-page.js +72 -72
- package/dist/app/components/artifacts/site-publishing.js +55 -55
- package/dist/app/components/artifacts/site-settings.js +71 -71
- package/dist/app/components/artifacts/site-version-menu.js +9 -9
- package/dist/app/components/billing-class-mark.js +7 -7
- package/dist/app/components/capabilities/capability-detail-sheet.js +18 -18
- package/dist/app/components/capabilities/capability-logo-source.js +31 -30
- package/dist/app/components/capabilities/capability-logo.js +1 -1
- package/dist/app/components/capabilities/connection-account-picker.js +2 -2
- package/dist/app/components/capabilities/connection-ownership-selector.js +4 -4
- package/dist/app/components/capabilities/connector-tool-permissions.js +7 -7
- package/dist/app/components/capabilities/detail-dialog.js +3 -3
- package/dist/app/components/capabilities/native-connect-setup.js +36 -35
- package/dist/app/components/capabilities/own-logins-shared-heads-up.js +7 -7
- package/dist/app/components/capabilities/perform-capability-action.js +3 -3
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +35 -34
- package/dist/app/components/capabilities/session-capability-card.js +142 -141
- package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.js +49 -49
- package/dist/app/components/capabilities/session-connect-inputs-card.js +38 -37
- package/dist/app/components/capabilities/session-custom-mcp-card.js +43 -42
- package/dist/app/components/capabilities/session-github-card.js +49 -48
- package/dist/app/components/capabilities/session-machine-card.js +50 -50
- package/dist/app/components/capabilities/session-personal-github-card.js +35 -34
- package/dist/app/components/capabilities/session-plugin-card.js +23 -22
- package/dist/app/components/capabilities/use-capabilities-catalog.js +4 -4
- package/dist/app/components/capabilities/use-connection-accounts.js +3 -3
- package/dist/app/components/command-menu/chat-status.js +25 -25
- package/dist/app/components/command-menu/chat-switcher.js +90 -89
- package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
- package/dist/app/components/command-menu/command-menu.js +118 -117
- package/dist/app/components/command-menu/command-menu.js.map +1 -1
- package/dist/app/components/command-menu/shortcut-sheet.js +26 -26
- package/dist/app/components/composer-capabilities-menu-body.js +7 -7
- package/dist/app/components/composer-mobile-plus-panel.js +32 -32
- package/dist/app/components/composer-mobile-plus.js +5 -5
- package/dist/app/components/credit-amount-picker.js +2 -2
- package/dist/app/components/credit-required-gate.js +6 -6
- package/dist/app/components/credit-required-prompt.js +27 -27
- package/dist/app/components/credits/checkout-credits-celebration.js +4 -4
- package/dist/app/components/credits/checkout-return.js +4 -4
- package/dist/app/components/credits/coupon-redeem.js +1 -1
- package/dist/app/components/credits/credit-refusal-notice.js +8 -8
- package/dist/app/components/credits/own-subscription-plan-notice.js +3 -3
- package/dist/app/components/cross-slot-deep-link-recovery.js +2 -2
- package/dist/app/components/desktop/app-shots.js +10 -10
- package/dist/app/components/desktop/app-update.js +3 -3
- package/dist/app/components/desktop/computer-use.js +4 -4
- package/dist/app/components/desktop/this-computer.js +8 -8
- package/dist/app/components/feedback.js +11 -11
- package/dist/app/components/follow-up-repository-menu-body.js +12 -12
- package/dist/app/components/follow-up-repository-picker.js +1 -1
- package/dist/app/components/github-app-connect-launcher.js +2 -2
- package/dist/app/components/in-app-help-link.js +3 -3
- package/dist/app/components/knowledge/agent-learning-settings.js +5 -5
- package/dist/app/components/machines/connect-machine-dialog.js +25 -25
- package/dist/app/components/manual-repository-editor.js +1 -1
- package/dist/app/components/markdown.js +18 -17
- package/dist/app/components/model-identity.js +3 -3
- package/dist/app/components/models/models-ui.js +17 -17
- package/dist/app/components/models/provider-mark.js +3 -3
- package/dist/app/components/models/subscription-usage.js +5 -5
- package/dist/app/components/my-things.js +19 -19
- package/dist/app/components/own-where-it-works.js +12 -12
- package/dist/app/components/personal-resource-attachment-surface.js +4 -4
- package/dist/app/components/pickers.js +12 -12
- package/dist/app/components/rail/channel-create-dialog.js +6 -6
- package/dist/app/components/rail/project-glyph.js +54 -53
- package/dist/app/components/rail/project-profile.js +76 -75
- package/dist/app/components/rail/rail-context.js +2 -2
- package/dist/app/components/rail/rail-sections.js +155 -154
- package/dist/app/components/rail/session-header.js +125 -124
- package/dist/app/components/rail/session-list.js +153 -152
- package/dist/app/components/rail/session-row-content.js +6 -6
- package/dist/app/components/rail/session-row-hover-details.js +36 -36
- package/dist/app/components/rail/session-shell.js +194 -193
- package/dist/app/components/rail/site-session-group-heading.js +37 -37
- package/dist/app/components/repository-picker.js +12 -12
- package/dist/app/components/secrets/session-secrets-panel.js +3 -3
- package/dist/app/components/session/agent-configuration-panel.js +53 -53
- package/dist/app/components/session/artifact-session-page.js +8 -8
- package/dist/app/components/session/banners.js +22 -21
- package/dist/app/components/session/chat-avatar.js +54 -53
- package/dist/app/components/session/console-new-conversation.js +105 -104
- package/dist/app/components/session/descendant-requests.js +101 -100
- package/dist/app/components/session/descendant-requests.js.map +1 -1
- package/dist/app/components/session/editable-artifacts-workspace.js +62 -60
- package/dist/app/components/session/editable-artifacts-workspace.js.map +1 -1
- package/dist/app/components/session/failed-session-banner.js +28 -28
- package/dist/app/components/session/failure-recovery-boundary.js +3 -3
- package/dist/app/components/session/human-input-delegation-record.js +3 -3
- package/dist/app/components/session/human-input.js +88 -87
- package/dist/app/components/session/inspector.js +136 -135
- package/dist/app/components/session/inspector.js.map +1 -1
- package/dist/app/components/session/linked-panel.js +3 -3
- package/dist/app/components/session/message-actions.js +11 -11
- package/dist/app/components/session/model-recovery-notice.js +4 -4
- package/dist/app/components/session/new-session-settings-menu.js +32 -32
- package/dist/app/components/session/new-session-setup-strip.js +58 -57
- package/dist/app/components/session/own-account-wait-notice.js +8 -8
- package/dist/app/components/session/pinned-account-wait-notice.js +8 -8
- package/dist/app/components/session/pull-request-panel.js +26 -25
- package/dist/app/components/session/sandbox-recovery-actions.js +5 -5
- package/dist/app/components/session/sandbox-switcher.js +22 -22
- package/dist/app/components/session/sandbox-workspace.js +118 -117
- package/dist/app/components/session/search-markdown-highlight.js +19 -18
- package/dist/app/components/session/search-results-view.js +20 -19
- package/dist/app/components/session/session-admin-access.js +12 -12
- package/dist/app/components/session/session-admission-notice.js +11 -11
- package/dist/app/components/session/session-avatar-picker.js +61 -60
- package/dist/app/components/session/session-avatar.js +56 -55
- package/dist/app/components/session/session-machine-access-notice.js +11 -11
- package/dist/app/components/session/session-profile-dialog.js +72 -71
- package/dist/app/components/session/session-profile-editor.js +73 -72
- package/dist/app/components/session/session-retention.js +8 -8
- package/dist/app/components/session/session-search-dialog.js +26 -25
- package/dist/app/components/session/session-search-dialog.js.map +1 -1
- package/dist/app/components/session/session-skill-reviews.js +5 -5
- package/dist/app/components/session/session-tenancy-control.js +25 -25
- package/dist/app/components/session/session-unattended-setting.js +4 -4
- package/dist/app/components/session/session-usage-limit-section.js +13 -13
- package/dist/app/components/session/share-chat-dialog.js +12 -12
- package/dist/app/components/session/subagents.js +22 -22
- package/dist/app/components/session/subscription-account-indicator.js +25 -25
- package/dist/app/components/session/subscription-account-menu.js +7 -7
- package/dist/app/components/session-connectors-menu-body.js +11 -11
- package/dist/app/components/settings/row-select.js +6 -6
- package/dist/app/components/transcription-settings.js +10 -10
- package/dist/app/components/ui/destructive-confirm.js +11 -11
- package/dist/app/components/usage/usage-entry.js +8 -8
- package/dist/app/components/window-bar.js +25 -25
- package/dist/app/components/workspace-composer-plus.js +46 -45
- package/dist/app/components/workspace-reach.d.ts +2 -0
- package/dist/app/components/workspace-reach.js +6 -6
- package/dist/app/embed/session-app.js +406 -405
- package/dist/app/lib/actions/actions-provider.js +18 -18
- package/dist/app/lib/agent-capabilities.js +4 -4
- package/dist/app/lib/app-connect-card.js +16 -16
- package/dist/app/lib/app-shared-key-dialog.js +9 -9
- package/dist/app/lib/app-surfaces.js +1 -1
- package/dist/app/lib/app-sync-opt-in.js +7 -7
- package/dist/app/lib/codex-usage-query.js +3 -3
- package/dist/app/lib/composer-agent.js +2 -2
- package/dist/app/lib/composer-connectors.js +35 -34
- package/dist/app/lib/composer-send-blocking.js +2 -2
- package/dist/app/lib/console-site.js +9 -9
- package/dist/app/lib/console-text.js +2 -2
- package/dist/app/lib/events.js +32 -31
- package/dist/app/lib/failed-session-copy.js +5 -5
- package/dist/app/lib/feedback-capture.js +2 -2
- package/dist/app/lib/model-access-onboarding.js +4 -4
- package/dist/app/lib/move-chat-to-machine.js +5 -5
- package/dist/app/lib/personal-resource-attachments.js +1 -1
- package/dist/app/lib/session-branch-cache.js +18 -18
- package/dist/app/lib/session-create.js +5 -5
- package/dist/app/lib/session-group-pagination.js +18 -18
- package/dist/app/lib/session-hover-facts.js +25 -25
- package/dist/app/lib/session-list-dirty-scopes.js +19 -19
- package/dist/app/lib/session-model.js +2 -2
- package/dist/app/lib/session-rail.js +15 -15
- package/dist/app/lib/session-rename.js +3 -3
- package/dist/app/lib/sessions-group.js +23 -23
- package/dist/app/lib/site-tool-consent-dialog.js +24 -24
- package/dist/app/lib/site-tool-consent.js +1 -1
- package/dist/app/lib/turn-failure-analytics.js +6 -6
- package/dist/app/lib/use-artifact-catalog.js +2 -2
- package/dist/app/lib/use-duplicate-site.js +4 -4
- package/dist/app/lib/use-follow-up-repositories.js +9 -9
- package/dist/app/lib/use-personal-resource-attachment.js +2 -2
- package/dist/app/lib/use-workspace-integrations.js +2 -2
- package/dist/app/lib/use-workspace-machines.js +10 -10
- package/dist/app/lib/use-workspace-model-catalog.js +6 -6
- package/dist/app/lib/use-workspace-rigs.js +6 -6
- package/dist/app/lib/workspace-navigation-preference.js +5 -5
- package/dist/app/lib/workspace-scope-context.js +4 -4
- package/dist/app/routes/app-page-view.js +52 -50
- package/dist/app/routes/app-page-view.js.map +1 -1
- package/dist/app/routes/app-page.js +2 -2
- package/dist/app/routes/artifacts.js +170 -168
- package/dist/app/routes/artifacts.js.map +1 -1
- package/dist/app/routes/retained-artifact.js +110 -109
- package/dist/app/routes/retained-artifact.js.map +1 -1
- package/dist/app/routes/session-unavailable.js +6 -6
- package/dist/app/routes/session.js +249 -248
- package/dist/app/routes/sessions-index-hydration.js +6 -6
- package/dist/app/routes/sessions-index.js +204 -203
- package/dist/app/routes/site-view.js +210 -209
- package/dist/app/routes/site-view.js.map +1 -1
- package/dist/artifacts-document.js +4 -4
- package/dist/artifacts-presentation.js +9 -9
- package/dist/artifacts-spreadsheet.js +4 -4
- package/dist/artifacts.js +53 -51
- package/dist/automation-model.js +6 -6
- package/dist/automations.js +64 -64
- package/dist/browser-viewer-TRPZI6NT.js +23 -0
- package/dist/chat-interactive-block-Y4BS4JCM.js +24 -0
- package/dist/chunk-22E2YJHT.js +469 -0
- package/dist/chunk-2T6TN2YL.js +538 -0
- package/dist/chunk-2WNN26NW.js +175 -0
- package/dist/chunk-3432A6XB.js +88 -0
- package/dist/chunk-35U7NSOR.js +366 -0
- package/dist/chunk-3EPR76WS.js +773 -0
- package/dist/chunk-3FXXEU5D.js +144 -0
- package/dist/chunk-3MXOPOEU.js +650 -0
- package/dist/chunk-3PKDU4JI.js +340 -0
- package/dist/chunk-3PMO2BIV.js +12 -0
- package/dist/chunk-3XWHJNFY.js +48 -0
- package/dist/chunk-45WD2PKE.js +401 -0
- package/dist/chunk-4H2OWNRA.js +598 -0
- package/dist/chunk-4HVGOTMU.js +263 -0
- package/dist/chunk-4JER2ZMV.js +818 -0
- package/dist/chunk-4LVZ2VOQ.js +214 -0
- package/dist/chunk-4OGDD2EM.js +2434 -0
- package/dist/chunk-4PQC6WMF.js +54 -0
- package/dist/chunk-4UVSWAT3.js +794 -0
- package/dist/chunk-53A47RBX.js +214 -0
- package/dist/chunk-552KKENW.js +114 -0
- package/dist/chunk-55F7L6M3.js +177 -0
- package/dist/chunk-5AHIKB3O.js +449 -0
- package/dist/chunk-5KQD6MLJ.js +3996 -0
- package/dist/chunk-5KQD6MLJ.js.map +1 -0
- package/dist/chunk-5N4L5WTE.js +199 -0
- package/dist/chunk-5OUJCVZI.js +79 -0
- package/dist/chunk-5OYXQ7MH.js +65 -0
- package/dist/chunk-5RGF74K5.js +371 -0
- package/dist/chunk-5RGF74K5.js.map +1 -0
- package/dist/chunk-5TAVVMFX.js +225 -0
- package/dist/chunk-5Y3LYRNH.js +269 -0
- package/dist/chunk-5ZJKKE4T.js +386 -0
- package/dist/chunk-62DPSQRZ.js +57 -0
- package/dist/chunk-64KMWTJ6.js +608 -0
- package/dist/chunk-6F34IWSA.js +47 -0
- package/dist/chunk-6F34IWSA.js.map +1 -0
- package/dist/chunk-6MZBNUS7.js +73 -0
- package/dist/chunk-6YCE4ZC4.js +250 -0
- package/dist/chunk-6YROWWMX.js +175 -0
- package/dist/chunk-73RZ72VU.js +1236 -0
- package/dist/chunk-74KV436L.js +84 -0
- package/dist/chunk-7HKGLPV5.js +83 -0
- package/dist/chunk-7JSWODT6.js +466 -0
- package/dist/chunk-7K3PKWER.js +428 -0
- package/dist/chunk-7MPWC42V.js +1356 -0
- package/dist/chunk-7REO6FRN.js +141 -0
- package/dist/chunk-7V3OL7JC.js +850 -0
- package/dist/chunk-7V3OL7JC.js.map +1 -0
- package/dist/chunk-7YMWRNRQ.js +145 -0
- package/dist/chunk-A6H3KJ7G.js +131 -0
- package/dist/chunk-AGQIE6YU.js +1769 -0
- package/dist/chunk-AHQM4I5V.js +373 -0
- package/dist/chunk-AMTRO7XF.js +172 -0
- package/dist/chunk-AO4LTCG7.js +91 -0
- package/dist/chunk-APJ22OZV.js +2580 -0
- package/dist/chunk-APWL37KW.js +407 -0
- package/dist/chunk-AQEJOBQ2.js +15 -0
- package/dist/chunk-ARKNT6BX.js +234 -0
- package/dist/chunk-B2IHDMAR.js +211 -0
- package/dist/chunk-BCKIV26W.js +112 -0
- package/dist/chunk-BE26JUSD.js +259 -0
- package/dist/chunk-BOVCD6KD.js +171 -0
- package/dist/chunk-BQWV66A6.js +129 -0
- package/dist/chunk-BSQJXGGP.js +441 -0
- package/dist/chunk-BZY3MEVZ.js +3183 -0
- package/dist/chunk-C3D3OOEY.js +335 -0
- package/dist/chunk-CDHYO3DP.js +82 -0
- package/dist/chunk-CDV5JGVI.js +79 -0
- package/dist/chunk-CNW45M7G.js +207 -0
- package/dist/chunk-CUVQ37HB.js +150 -0
- package/dist/chunk-D32T3IIC.js +532 -0
- package/dist/chunk-D32VVOBJ.js +738 -0
- package/dist/chunk-D32VVOBJ.js.map +1 -0
- package/dist/chunk-D65BSM64.js +371 -0
- package/dist/chunk-D7435DWV.js +570 -0
- package/dist/chunk-DFH3M7B3.js +72 -0
- package/dist/chunk-DGWBQ76M.js +162 -0
- package/dist/chunk-DHJDTGSJ.js +372 -0
- package/dist/chunk-DKEFTNCD.js +400 -0
- package/dist/chunk-DNAF6MT4.js +107 -0
- package/dist/chunk-DSJ7K5IF.js +380 -0
- package/dist/chunk-DSJ7K5IF.js.map +1 -0
- package/dist/chunk-E35XY7DS.js +27 -0
- package/dist/chunk-E5T5WIIP.js +396 -0
- package/dist/chunk-EL6ECD34.js +166 -0
- package/dist/chunk-ELR6ITRC.js +467 -0
- package/dist/chunk-EPE3V2VE.js +851 -0
- package/dist/chunk-EYGQHHVW.js +584 -0
- package/dist/chunk-EYQEJHYP.js +307 -0
- package/dist/chunk-EZTH2XMH.js +276 -0
- package/dist/chunk-F3QVHVFS.js +287 -0
- package/dist/chunk-F5VWPREQ.js +1187 -0
- package/dist/chunk-FM7AQUBL.js +113 -0
- package/dist/chunk-FP6BUXJM.js +100 -0
- package/dist/chunk-FVU52L3I.js +249 -0
- package/dist/chunk-FZKNXNNO.js +218 -0
- package/dist/chunk-G3IXJWRY.js +236 -0
- package/dist/chunk-G6EI2O3N.js +333 -0
- package/dist/chunk-G7KHMA3E.js +256 -0
- package/dist/chunk-G7KHMA3E.js.map +1 -0
- package/dist/chunk-GB5T6YMZ.js +401 -0
- package/dist/chunk-GBLD6FOG.js +157 -0
- package/dist/chunk-GJBFFXCY.js +137 -0
- package/dist/chunk-GJDP2K2S.js +66 -0
- package/dist/chunk-GP26XTDX.js +187 -0
- package/dist/chunk-GTE6WP4N.js +606 -0
- package/dist/chunk-GWG3OAV7.js +108 -0
- package/dist/chunk-GXMHTMM6.js +931 -0
- package/dist/chunk-GYRN5O2E.js +107 -0
- package/dist/chunk-GZX7W2WW.js +65 -0
- package/dist/chunk-H3QI2G2B.js +403 -0
- package/dist/chunk-H7D4DVWY.js +849 -0
- package/dist/chunk-HCDGBBBJ.js +191 -0
- package/dist/chunk-HDSH6MIJ.js +3851 -0
- package/dist/chunk-HOEUPZ6O.js +89 -0
- package/dist/chunk-HPQRWTQB.js +772 -0
- package/dist/chunk-HUKGLWAY.js +174 -0
- package/dist/chunk-HUTQJY3F.js +23 -0
- package/dist/chunk-HWOYJOKK.js +266 -0
- package/dist/chunk-HZR3WGUP.js +96 -0
- package/dist/chunk-I7YUDPDR.js +138 -0
- package/dist/chunk-IDII52M4.js +27 -0
- package/dist/chunk-IDPWEUM7.js +103 -0
- package/dist/chunk-IEWQFGEC.js +192 -0
- package/dist/chunk-IKWGPFT5.js +300 -0
- package/dist/chunk-IKWGPFT5.js.map +1 -0
- package/dist/chunk-IMTACEXF.js +351 -0
- package/dist/chunk-IVWT6M6N.js +114 -0
- package/dist/chunk-JE2YXAVR.js +485 -0
- package/dist/chunk-JE2YXAVR.js.map +1 -0
- package/dist/chunk-JEUPIHIP.js +111 -0
- package/dist/chunk-JF4WX3GQ.js +168 -0
- package/dist/chunk-JJPYXUKC.js +2591 -0
- package/dist/chunk-JNHWTYDD.js +43 -0
- package/dist/chunk-JP7AOJWD.js +46 -0
- package/dist/chunk-JTWT2WQA.js +297 -0
- package/dist/chunk-JW3WIHWO.js +117 -0
- package/dist/chunk-JW7RJMEZ.js +134 -0
- package/dist/chunk-K76PXR3O.js +2317 -0
- package/dist/chunk-KCNIQN6V.js +107 -0
- package/dist/chunk-KH6KHYST.js +231 -0
- package/dist/chunk-KK4SEN7N.js +247 -0
- package/dist/chunk-KOKRGAAI.js +383 -0
- package/dist/chunk-KQFNTGAF.js +187 -0
- package/dist/chunk-KRLNC6TH.js +50 -0
- package/dist/chunk-KYDLVMKA.js +99 -0
- package/dist/chunk-KZQDP2JM.js +155 -0
- package/dist/chunk-L2EZ2HOX.js +132 -0
- package/dist/chunk-L2UAFR2D.js +33 -0
- package/dist/chunk-L4R7ORMD.js +4596 -0
- package/dist/chunk-LCLWN64E.js +227 -0
- package/dist/chunk-LFQI2C46.js +175 -0
- package/dist/chunk-LLYX4F5A.js +1628 -0
- package/dist/chunk-LQX5QCDS.js +215 -0
- package/dist/chunk-LRMHASG2.js +196 -0
- package/dist/chunk-LVUSG56I.js +5930 -0
- package/dist/chunk-LVUSG56I.js.map +1 -0
- package/dist/chunk-M5FX5KH5.js +629 -0
- package/dist/chunk-MLOTUQJJ.js +201 -0
- package/dist/chunk-MPUKGKXZ.js +209 -0
- package/dist/chunk-MS6LW4VU.js +283 -0
- package/dist/chunk-MWN7LDYV.js +4601 -0
- package/dist/chunk-MWN7LDYV.js.map +1 -0
- package/dist/chunk-MXPW4F74.js +278 -0
- package/dist/chunk-MZ7GJX5S.js +158 -0
- package/dist/chunk-N5OUIUYD.js +1260 -0
- package/dist/chunk-N6FNORC7.js +412 -0
- package/dist/chunk-NALVKY4U.js +113 -0
- package/dist/chunk-NJ77ZL5T.js +5222 -0
- package/dist/chunk-NM2DNJDJ.js +270 -0
- package/dist/chunk-NNKRRF7E.js +110 -0
- package/dist/chunk-NP5UFWU4.js +318 -0
- package/dist/chunk-NV3AEIFO.js +118 -0
- package/dist/chunk-O6JDF7KH.js +828 -0
- package/dist/chunk-OERZH3J4.js +251 -0
- package/dist/chunk-OKHWTWWU.js +1152 -0
- package/dist/chunk-OLAIUVGT.js +274 -0
- package/dist/chunk-OO36IUMS.js +270 -0
- package/dist/chunk-OVDK7K2Z.js +57 -0
- package/dist/chunk-OX5ZCHZQ.js +63 -0
- package/dist/chunk-P6LLCGPO.js +515 -0
- package/dist/chunk-PA2CUHTD.js +505 -0
- package/dist/chunk-PB4CQIRA.js +4979 -0
- package/dist/chunk-PBV2P632.js +566 -0
- package/dist/chunk-PCSRHFRF.js +75 -0
- package/dist/chunk-PEPWW5BC.js +436 -0
- package/dist/chunk-PMBZMVKE.js +33 -0
- package/dist/chunk-PP32RE26.js +34 -0
- package/dist/chunk-PTXAPI3Q.js +73 -0
- package/dist/chunk-PULNNF7G.js +56 -0
- package/dist/chunk-Q6KNROUT.js +158 -0
- package/dist/chunk-QEGP3HSW.js +184 -0
- package/dist/chunk-QEGP3HSW.js.map +1 -0
- package/dist/chunk-QGJIFIKN.js +1032 -0
- package/dist/chunk-QKKKORGL.js +41 -0
- package/dist/chunk-QKUMMG6P.js +85 -0
- package/dist/chunk-QNOWKKZ4.js +40 -0
- package/dist/chunk-QSWD3AHE.js +84 -0
- package/dist/chunk-QZ4U2VL5.js +391 -0
- package/dist/chunk-QZJNCLHV.js +271 -0
- package/dist/chunk-R6CFPY3F.js +278 -0
- package/dist/chunk-R6QRUYUH.js +406 -0
- package/dist/chunk-RE3GAQI5.js +2984 -0
- package/dist/chunk-RFHUVPFA.js +1184 -0
- package/dist/chunk-RH45HT5T.js +3690 -0
- package/dist/chunk-RJNQTZ5O.js +439 -0
- package/dist/chunk-RN24AP7Q.js +247 -0
- package/dist/chunk-RN24AP7Q.js.map +1 -0
- package/dist/chunk-S2BJTAAB.js +37 -0
- package/dist/chunk-S56PWXIX.js +138 -0
- package/dist/chunk-S6BDABIC.js +1390 -0
- package/dist/chunk-S6BDABIC.js.map +1 -0
- package/dist/chunk-S6FFDIHD.js +640 -0
- package/dist/chunk-S6MAMIK2.js +56 -0
- package/dist/chunk-SERTO6H6.js +311 -0
- package/dist/chunk-STOOH7EI.js +200 -0
- package/dist/chunk-SWSTEUXX.js +121 -0
- package/dist/chunk-SWZN7NNZ.js +1029 -0
- package/dist/chunk-SYDF57KS.js +178 -0
- package/dist/chunk-T275CUVD.js +29 -0
- package/dist/chunk-T4OT7QWP.js +378 -0
- package/dist/chunk-TCSRY2NP.js +2582 -0
- package/dist/chunk-TCX5OA2X.js +1177 -0
- package/dist/chunk-TDW5CSO5.js +3158 -0
- package/dist/chunk-TGG3ODCS.js +99 -0
- package/dist/chunk-TILSTYUC.js +505 -0
- package/dist/chunk-TJ5DYWXU.js +1333 -0
- package/dist/chunk-TNRI4ZE6.js +391 -0
- package/dist/chunk-TPIFVUMF.js +188 -0
- package/dist/chunk-TSW6OF22.js +162 -0
- package/dist/chunk-TTSTBHGR.js +1095 -0
- package/dist/chunk-U3JYAWMR.js +170 -0
- package/dist/chunk-U7ODSHA5.js +124 -0
- package/dist/chunk-UEGEPRNP.js +48 -0
- package/dist/chunk-UGIA2YEJ.js +83 -0
- package/dist/chunk-UHLKKDNF.js +432 -0
- package/dist/chunk-ULVXKIPX.js +26 -0
- package/dist/chunk-UN37ZY6R.js +10074 -0
- package/dist/chunk-UN37ZY6R.js.map +1 -0
- package/dist/chunk-USUDKZ5G.js +98 -0
- package/dist/chunk-UVO6I2F6.js +85 -0
- package/dist/chunk-V6NVG4K2.js +357 -0
- package/dist/chunk-VCMQFD3G.js +1185 -0
- package/dist/chunk-VKPBDNIO.js +246 -0
- package/dist/chunk-VLDKWGHD.js +61 -0
- package/dist/chunk-VM2NA2EL.js +905 -0
- package/dist/chunk-VMZTCVEL.js +114 -0
- package/dist/chunk-VQH5AXZY.js +269 -0
- package/dist/chunk-VTBTW6N4.js +114 -0
- package/dist/chunk-VV7PLDX4.js +230 -0
- package/dist/chunk-VYGGLH5H.js +50 -0
- package/dist/chunk-VYQHHTQ4.js +133 -0
- package/dist/chunk-VYSGRD2W.js +292 -0
- package/dist/chunk-W4W63LTP.js +1309 -0
- package/dist/chunk-WFC2JA6D.js +2335 -0
- package/dist/chunk-WFC2JA6D.js.map +1 -0
- package/dist/chunk-WHTRR66J.js +197 -0
- package/dist/chunk-WICIQFHJ.js +42 -0
- package/dist/chunk-WJYYMCCC.js +283 -0
- package/dist/chunk-WSJOWQJE.js +399 -0
- package/dist/chunk-WY333GHH.js +108 -0
- package/dist/chunk-WY333GHH.js.map +1 -0
- package/dist/chunk-WYDUXZ2R.js +353 -0
- package/dist/chunk-X62CN4YR.js +3321 -0
- package/dist/chunk-XFQHKMO6.js +1024 -0
- package/dist/chunk-XGJ7XZHS.js +527 -0
- package/dist/chunk-XJFJNOEV.js +723 -0
- package/dist/chunk-XKJLHMXZ.js +234 -0
- package/dist/chunk-XLFPJVQS.js +103 -0
- package/dist/chunk-XM4ZLZFW.js +129 -0
- package/dist/chunk-Y2GAWEJD.js +1021 -0
- package/dist/chunk-Y3A74SVK.js +296 -0
- package/dist/chunk-YANEVGI3.js +92 -0
- package/dist/chunk-YHHSO5QR.js +128 -0
- package/dist/chunk-YOSOCHCB.js +52 -0
- package/dist/chunk-YP4SNX4P.js +220 -0
- package/dist/chunk-YQH6AMIH.js +176 -0
- package/dist/chunk-YRWL2IAE.js +165 -0
- package/dist/chunk-YTWRQ3WK.js +251 -0
- package/dist/chunk-YV5GGSLK.js +20 -0
- package/dist/chunk-YXUDK37V.js +126 -0
- package/dist/chunk-YYM5TSCR.js +75 -0
- package/dist/chunk-ZG2CKFQF.js +202 -0
- package/dist/chunk-ZGJXO2HH.js +93 -0
- package/dist/chunk-ZGV76PZ4.js +3070 -0
- package/dist/chunk-ZOBUR2VC.js +229 -0
- package/dist/components/artifacts/artifact-chrome.d.ts +4 -0
- package/dist/components/artifacts/artifact-sandbox.d.ts +13 -0
- package/dist/components/artifacts/inline-html-document.d.ts +10 -1
- package/dist/components/artifacts/published-html-artifact-frame.d.ts +17 -0
- package/dist/components/preview-loading.d.ts +3 -1
- package/dist/composer.js +37 -37
- package/dist/computer-viewer-S6AL3XDT.js +21 -0
- package/dist/connect.js +38 -37
- package/dist/connection-step-up-XGPZKQEL.js +149 -0
- package/dist/connection-step-up-XGPZKQEL.js.map +1 -0
- package/dist/desktop-dictation.js +23 -23
- package/dist/desktop.js +2 -2
- package/dist/editor.js +2 -2
- package/dist/embedded-new-voice-T3BXRYJX.js +25 -0
- package/dist/embedded-voice-ZJXMF3RP.js +25 -0
- package/dist/fleet-decision-row-AUCMLBCV.js +361 -0
- package/dist/in-chat-connect-model.js +5 -5
- package/dist/index.js +296 -295
- package/dist/interaction.js +9 -9
- package/dist/latest-question-D5BKKEP6.js +1 -1
- package/dist/machine-request-model.js +1 -1
- package/dist/machines.js +8 -8
- package/dist/meetings/meeting-detail-page.d.ts +14 -0
- package/dist/meetings/meeting-notes.d.ts +6 -2
- package/dist/meetings/meeting-transcript.d.ts +3 -1
- package/dist/meetings-recorder.js +1 -1
- package/dist/meetings.js +367 -260
- package/dist/meetings.js.map +1 -1
- package/dist/messages/en.d.ts +6 -2
- package/dist/messages.js +1 -1
- package/dist/model-policy-picker-menu-TO57YUQ6.js +23 -0
- package/dist/native-previews.js +1 -1
- package/dist/payment-page-card-DFGDAMTG.js +227 -0
- package/dist/platform-activity-row-ZMBEJGXN.js +156 -0
- package/dist/queue-surface-implementation-KDK5CYH6.js +933 -0
- package/dist/realtime.js +17 -17
- package/dist/recorder-host-3HLYRL4H.js +80 -0
- package/dist/recordings.js +3 -3
- package/dist/sandbox-files-UOZ4OJZU.js +29 -0
- package/dist/session-app.js +406 -405
- package/dist/session-connect-cards-VZIYLH45.js +28 -0
- package/dist/session-list-model.js +2 -2
- package/dist/session-realtime-2ZGJWVZP.js +30 -0
- package/dist/session-realtime.js +2 -2
- package/dist/session-ui.js +98 -97
- package/dist/session.js +40 -40
- package/dist/sites.js +3 -3
- package/dist/skills.js +32 -32
- package/dist/terminal.js +2 -2
- package/dist/testing/meetings-fixture.d.ts +8 -0
- package/dist/testing/meetings-fixture.js +22 -1
- package/dist/testing/meetings-fixture.js.map +1 -1
- package/dist/this-computer.js +3 -3
- package/dist/timeline-annotation-markers-KBTFWLME.js +157 -0
- package/dist/timeline-annotation-selection-VI4YSDR5.js +208 -0
- package/dist/timeline-annotations-dialog-4PLWNLRB.js +283 -0
- package/dist/timeline-model.js +37 -37
- package/dist/ui/access-list.js +24 -24
- package/dist/ui/cadence-picker.js +7 -7
- package/dist/ui/capability-page.js +10 -10
- package/dist/ui/choice-cards.js +3 -3
- package/dist/ui/confirm-dialog.js +4 -4
- package/dist/ui/copy-field.js +3 -3
- package/dist/ui/detail-page.js +6 -6
- package/dist/ui/detail-sheet.js +6 -6
- package/dist/ui/dialog.js +2 -2
- package/dist/ui/diff-view.js +3 -3
- package/dist/ui/disclosure.js +7 -7
- package/dist/ui/email-chips-input.js +3 -3
- package/dist/ui/field.js +2 -2
- package/dist/ui/flush-form-page.js +8 -8
- package/dist/ui/form-dialog.js +7 -7
- package/dist/ui/list-row.js +7 -7
- package/dist/ui/load-failure.js +3 -3
- package/dist/ui/relative-time.js +3 -3
- package/dist/ui/revision-history.js +16 -16
- package/dist/ui/role-select.js +13 -13
- package/dist/ui/select-menu.js +5 -5
- package/dist/ui/settings-nav.js +6 -6
- package/dist/ui/sheet.js +2 -2
- package/dist/ui/usage-meter.js +4 -4
- package/dist/usage.js +3 -3
- package/dist/workbench.js +11 -11
- package/package.json +6 -5
- package/src/app/components/session/sandbox-recovery-actions.test.tsx +26 -0
- package/src/app/components/session/sandbox-recovery-actions.tsx +2 -1
- package/src/app/components/workspace-reach.tsx +2 -0
- package/src/components/artifacts/artifact-chrome.tsx +6 -0
- package/src/components/artifacts/artifact-sandbox.tsx +119 -20
- package/src/components/artifacts/chat-interactive-block.tsx +1 -0
- package/src/components/artifacts/inline-html-document.ts +13 -3
- package/src/components/artifacts/published-html-artifact-frame.tsx +60 -4
- package/src/components/preview-loading.tsx +2 -2
- package/src/meetings/meeting-detail-page.tsx +232 -112
- package/src/meetings/meeting-notes.tsx +48 -24
- package/src/meetings/meeting-transcript.tsx +75 -57
- package/src/meetings/meetings-pages.test.tsx +181 -2
- package/src/messages/en.ts +6 -2
- package/src/testing/meetings-fixture.ts +35 -1
- package/styles/compiled.css +8 -0
- package/styles/index.css +7 -0
- package/dist/browser-viewer-KFMM5S2B.js +0 -23
- package/dist/chat-interactive-block-5DJ72HU7.js +0 -22
- package/dist/chunk-2B3RQRNQ.js +0 -584
- package/dist/chunk-2DA7DTHO.js +0 -83
- package/dist/chunk-2GXAXCS2.js +0 -401
- package/dist/chunk-2JTZMHQK.js +0 -57
- package/dist/chunk-2LRJ32SO.js +0 -114
- package/dist/chunk-2VK7FJNR.js +0 -307
- package/dist/chunk-2YJS75C3.js +0 -269
- package/dist/chunk-2YNEUYWM.js +0 -231
- package/dist/chunk-2ZR75AUO.js +0 -225
- package/dist/chunk-32LD46VC.js +0 -72
- package/dist/chunk-3FVVZW7J.js +0 -84
- package/dist/chunk-4327UGUS.js +0 -79
- package/dist/chunk-45TILHFZ.js +0 -249
- package/dist/chunk-4AUSS7CX.js +0 -318
- package/dist/chunk-4ECOHGUL.js +0 -818
- package/dist/chunk-4FKE42TW.js +0 -1333
- package/dist/chunk-4K5UVYZQ.js +0 -113
- package/dist/chunk-4UZE7ZT4.js +0 -54
- package/dist/chunk-4XQH4XPP.js +0 -400
- package/dist/chunk-4Z7BPBS7.js +0 -34
- package/dist/chunk-56KVDNOS.js +0 -98
- package/dist/chunk-56NHT2TZ.js +0 -56
- package/dist/chunk-57QWSJLX.js +0 -114
- package/dist/chunk-5AGRFQSH.js +0 -432
- package/dist/chunk-5JMX5FRF.js +0 -1309
- package/dist/chunk-5UTHPGFF.js +0 -93
- package/dist/chunk-5VPQVMJI.js +0 -84
- package/dist/chunk-5WJCOFIU.js +0 -207
- package/dist/chunk-62T2ZPD5.js +0 -266
- package/dist/chunk-63AVTSUI.js +0 -383
- package/dist/chunk-6CDBX3XG.js +0 -33
- package/dist/chunk-6D3D2JWY.js +0 -278
- package/dist/chunk-6GUG7FXP.js +0 -380
- package/dist/chunk-6GUG7FXP.js.map +0 -1
- package/dist/chunk-6JGMBTXP.js +0 -114
- package/dist/chunk-6LYBRPUG.js +0 -931
- package/dist/chunk-6PHBW7SS.js +0 -287
- package/dist/chunk-6S2XVKNI.js +0 -91
- package/dist/chunk-6TWS6AXT.js +0 -1021
- package/dist/chunk-6VEIDSF4.js +0 -73
- package/dist/chunk-76NGRVCY.js +0 -340
- package/dist/chunk-7FFZLLCH.js +0 -391
- package/dist/chunk-7RRDXPNC.js +0 -111
- package/dist/chunk-7TLYFHMT.js +0 -851
- package/dist/chunk-7V2CQLTN.js +0 -20
- package/dist/chunk-7VDWXFTL.js +0 -772
- package/dist/chunk-A2OMNLDF.js +0 -150
- package/dist/chunk-A3QEJ2IZ.js +0 -229
- package/dist/chunk-A6Q6EUBR.js +0 -209
- package/dist/chunk-AJSRYRJS.js +0 -138
- package/dist/chunk-APNPWJCK.js +0 -66
- package/dist/chunk-ARNQH2XE.js +0 -178
- package/dist/chunk-B6AH43UQ.js +0 -2434
- package/dist/chunk-BIXGAYDJ.js +0 -276
- package/dist/chunk-BJ3WRO2K.js +0 -441
- package/dist/chunk-BO3D22BS.js +0 -12
- package/dist/chunk-BR62BHVY.js +0 -357
- package/dist/chunk-BTMSR4OA.js +0 -214
- package/dist/chunk-BVZYHORS.js +0 -40
- package/dist/chunk-BWBBS6HJ.js +0 -42
- package/dist/chunk-C22UPHA2.js +0 -274
- package/dist/chunk-C2EERTYX.js +0 -353
- package/dist/chunk-C2F6SKOS.js +0 -270
- package/dist/chunk-C625ODRG.js +0 -92
- package/dist/chunk-CAF3HFJH.js +0 -184
- package/dist/chunk-CAF3HFJH.js.map +0 -1
- package/dist/chunk-CC4JBFWY.js +0 -85
- package/dist/chunk-CDB66JAO.js +0 -283
- package/dist/chunk-CG2HT7TI.js +0 -269
- package/dist/chunk-CNNOPEAK.js +0 -570
- package/dist/chunk-CRBHMSAP.js +0 -469
- package/dist/chunk-CSK2WOOX.js +0 -83
- package/dist/chunk-CTBPPPLR.js +0 -2580
- package/dist/chunk-CTOLX2EW.js +0 -2317
- package/dist/chunk-CVDY7P3E.js +0 -246
- package/dist/chunk-CX3Z7W5Y.js +0 -107
- package/dist/chunk-D5K2BS5Q.js +0 -259
- package/dist/chunk-DA7XLT5F.js +0 -366
- package/dist/chunk-DAKKJ3XM.js +0 -298
- package/dist/chunk-DAKKJ3XM.js.map +0 -1
- package/dist/chunk-DC6KFW2R.js +0 -333
- package/dist/chunk-DIHPR5KJ.js +0 -15
- package/dist/chunk-DLMYANZX.js +0 -3851
- package/dist/chunk-DRAG2LZP.js +0 -171
- package/dist/chunk-E2SGFW2B.js +0 -3321
- package/dist/chunk-EAXZSBWV.js +0 -412
- package/dist/chunk-EFKWOXBP.js +0 -428
- package/dist/chunk-EGD5RPRX.js +0 -401
- package/dist/chunk-ELC2ZPHI.js +0 -1177
- package/dist/chunk-EZ5ZBOGQ.js +0 -1032
- package/dist/chunk-F2JKNL73.js +0 -187
- package/dist/chunk-F3LIUDXN.js +0 -738
- package/dist/chunk-F3LIUDXN.js.map +0 -1
- package/dist/chunk-FAB5SXNO.js +0 -640
- package/dist/chunk-FQ33JHJN.js +0 -63
- package/dist/chunk-FX343J2L.js +0 -132
- package/dist/chunk-FXFOKD7A.js +0 -449
- package/dist/chunk-FY42DW2R.js +0 -515
- package/dist/chunk-G4E5WKY7.js +0 -65
- package/dist/chunk-GFTV3RR6.js +0 -187
- package/dist/chunk-GGBMQNAB.js +0 -33
- package/dist/chunk-GGU7KV4G.js +0 -124
- package/dist/chunk-GIHE7U3Y.js +0 -174
- package/dist/chunk-GRGK3JJI.js +0 -10074
- package/dist/chunk-GRGK3JJI.js.map +0 -1
- package/dist/chunk-GT3FJVU6.js +0 -4596
- package/dist/chunk-GTGPKGWC.js +0 -65
- package/dist/chunk-GY6DSWBM.js +0 -82
- package/dist/chunk-H3EP6GNA.js +0 -538
- package/dist/chunk-HD2MCYQF.js +0 -234
- package/dist/chunk-HE4VN5D3.js +0 -4979
- package/dist/chunk-HFROJDFQ.js +0 -118
- package/dist/chunk-HHFFPE67.js +0 -220
- package/dist/chunk-HJ2CDFZX.js +0 -117
- package/dist/chunk-HJ2J2XQI.js +0 -88
- package/dist/chunk-HLLZPULI.js +0 -172
- package/dist/chunk-HPYQ5MES.js +0 -103
- package/dist/chunk-HRLJNDDC.js +0 -197
- package/dist/chunk-HVGM5IME.js +0 -170
- package/dist/chunk-HZE6V7GW.js +0 -214
- package/dist/chunk-I5DW76GB.js +0 -200
- package/dist/chunk-I7MZOZGC.js +0 -121
- package/dist/chunk-IB2EX6GX.js +0 -292
- package/dist/chunk-IEDDIJ6B.js +0 -4601
- package/dist/chunk-IEDDIJ6B.js.map +0 -1
- package/dist/chunk-IGFZFLI2.js +0 -1390
- package/dist/chunk-IGFZFLI2.js.map +0 -1
- package/dist/chunk-IIMRBCA4.js +0 -271
- package/dist/chunk-IIWNSYFA.js +0 -129
- package/dist/chunk-IN2ZJR2A.js +0 -96
- package/dist/chunk-IUPIJWFK.js +0 -905
- package/dist/chunk-IZA2KBYK.js +0 -57
- package/dist/chunk-IZZINUFM.js +0 -527
- package/dist/chunk-JFEAJRG6.js +0 -1029
- package/dist/chunk-JG7MEMJP.js +0 -1184
- package/dist/chunk-JIZWFW5A.js +0 -107
- package/dist/chunk-JJKUERR4.js +0 -131
- package/dist/chunk-JL4PMUDG.js +0 -192
- package/dist/chunk-JTWK3VE7.js +0 -202
- package/dist/chunk-JV2TJLUW.js +0 -144
- package/dist/chunk-KBDWMUYA.js +0 -175
- package/dist/chunk-KF65UG2L.js +0 -1628
- package/dist/chunk-KFYLTQGK.js +0 -133
- package/dist/chunk-KJI2DVSO.js +0 -26
- package/dist/chunk-KLYBSXHE.js +0 -3183
- package/dist/chunk-KPD6TBO4.js +0 -89
- package/dist/chunk-KTGKGHEA.js +0 -75
- package/dist/chunk-KUYQTNVT.js +0 -794
- package/dist/chunk-KZE7M52Y.js +0 -598
- package/dist/chunk-KZYZ3JHS.js +0 -112
- package/dist/chunk-L6WVCO6D.js +0 -61
- package/dist/chunk-L7T7M2P3.js +0 -5222
- package/dist/chunk-LKF6IPFC.js +0 -247
- package/dist/chunk-LLU7VKCZ.js +0 -188
- package/dist/chunk-LWEJGMVO.js +0 -50
- package/dist/chunk-LX5IEXDF.js +0 -505
- package/dist/chunk-LYEALWBN.js +0 -251
- package/dist/chunk-M722GGD3.js +0 -566
- package/dist/chunk-MCPKUVMQ.js +0 -99
- package/dist/chunk-MDGNCUAC.js +0 -145
- package/dist/chunk-MFLU3466.js +0 -99
- package/dist/chunk-MITT6IZG.js +0 -134
- package/dist/chunk-MN4LJYKQ.js +0 -608
- package/dist/chunk-MNCBL5AX.js +0 -449
- package/dist/chunk-MNCBL5AX.js.map +0 -1
- package/dist/chunk-MO3XJQN2.js +0 -629
- package/dist/chunk-MPP6BEAN.js +0 -158
- package/dist/chunk-MQRUZ2LW.js +0 -335
- package/dist/chunk-MRJFF5KY.js +0 -351
- package/dist/chunk-MUB44LD3.js +0 -75
- package/dist/chunk-MYDFABO6.js +0 -296
- package/dist/chunk-NJVHMK5R.js +0 -3158
- package/dist/chunk-NO6VQNWH.js +0 -396
- package/dist/chunk-NUF43R2F.js +0 -278
- package/dist/chunk-NUM3QV66.js +0 -107
- package/dist/chunk-NW4RPGET.js +0 -48
- package/dist/chunk-NZBZLY7H.js +0 -165
- package/dist/chunk-O664PL2U.js +0 -47
- package/dist/chunk-O664PL2U.js.map +0 -1
- package/dist/chunk-OCS3KIYC.js +0 -378
- package/dist/chunk-OKI45WHM.js +0 -311
- package/dist/chunk-ONF5M5GP.js +0 -283
- package/dist/chunk-OPCPBLHA.js +0 -79
- package/dist/chunk-OROXCA6L.js +0 -251
- package/dist/chunk-OTMJS3FV.js +0 -56
- package/dist/chunk-OXM267RC.js +0 -128
- package/dist/chunk-P5FLGDXW.js +0 -723
- package/dist/chunk-PC3FWPOP.js +0 -828
- package/dist/chunk-PPQJIVGM.js +0 -175
- package/dist/chunk-PQOVMZI2.js +0 -372
- package/dist/chunk-PVGD2RAV.js +0 -5926
- package/dist/chunk-PVGD2RAV.js.map +0 -1
- package/dist/chunk-PYU7CLEG.js +0 -215
- package/dist/chunk-Q2N5UR7Q.js +0 -505
- package/dist/chunk-Q4GB2QU3.js +0 -199
- package/dist/chunk-Q4RJKXQM.js +0 -606
- package/dist/chunk-Q4ZNRQKH.js +0 -196
- package/dist/chunk-Q7QXSQ46.js +0 -1185
- package/dist/chunk-QAVSUXLA.js +0 -773
- package/dist/chunk-QBJDMSFA.js +0 -27
- package/dist/chunk-QCB3WNCA.js +0 -176
- package/dist/chunk-QIOIJ7K5.js +0 -162
- package/dist/chunk-QR72J6WR.js +0 -650
- package/dist/chunk-QUTMVW4P.js +0 -141
- package/dist/chunk-QUXQYYZO.js +0 -73
- package/dist/chunk-RDHK2NYW.js +0 -129
- package/dist/chunk-RFBYAUZH.js +0 -311
- package/dist/chunk-RFBYAUZH.js.map +0 -1
- package/dist/chunk-RGCCRYTY.js +0 -46
- package/dist/chunk-RSTS3RWN.js +0 -211
- package/dist/chunk-RY7YRYVT.js +0 -126
- package/dist/chunk-S4LRL5BA.js +0 -439
- package/dist/chunk-S62CVC5C.js +0 -850
- package/dist/chunk-S62CVC5C.js.map +0 -1
- package/dist/chunk-SHVW3C3Y.js +0 -50
- package/dist/chunk-SL4CLUHR.js +0 -48
- package/dist/chunk-SOPKVWZJ.js +0 -1187
- package/dist/chunk-ST3H53IJ.js +0 -201
- package/dist/chunk-SYYFA7W7.js +0 -23
- package/dist/chunk-TBUWK3RP.js +0 -399
- package/dist/chunk-TC42NAIJ.js +0 -177
- package/dist/chunk-TJBTP6LH.js +0 -297
- package/dist/chunk-TQQALBLU.js +0 -391
- package/dist/chunk-TW56PZBB.js +0 -407
- package/dist/chunk-U6XRXK2T.js +0 -1356
- package/dist/chunk-U735UBHS.js +0 -2431
- package/dist/chunk-U735UBHS.js.map +0 -1
- package/dist/chunk-UAKG7GLE.js +0 -155
- package/dist/chunk-UB4GKFCI.js +0 -1095
- package/dist/chunk-UEAAF27Y.js +0 -108
- package/dist/chunk-UITWSZH3.js +0 -162
- package/dist/chunk-UQ67SEGH.js +0 -234
- package/dist/chunk-URSNCM57.js +0 -37
- package/dist/chunk-V77BSX2F.js +0 -1152
- package/dist/chunk-VATOL3OZ.js +0 -110
- package/dist/chunk-VEJG6GQQ.js +0 -103
- package/dist/chunk-VFQZPHZR.js +0 -436
- package/dist/chunk-VFZJV26C.js +0 -41
- package/dist/chunk-VJZPVP6C.js +0 -230
- package/dist/chunk-VQL7FHIF.js +0 -27
- package/dist/chunk-VSS6LRAK.js +0 -263
- package/dist/chunk-VSSXDLO3.js +0 -467
- package/dist/chunk-VVCKB62D.js +0 -1024
- package/dist/chunk-VVJDYTD4.js +0 -168
- package/dist/chunk-VVXOG3ZC.js +0 -52
- package/dist/chunk-W2EX346X.js +0 -85
- package/dist/chunk-W3R4C7Z2.js +0 -166
- package/dist/chunk-W43FINJV.js +0 -218
- package/dist/chunk-W6PJWSZ6.js +0 -1769
- package/dist/chunk-WCP32H3P.js +0 -2984
- package/dist/chunk-WKELNNIG.js +0 -3690
- package/dist/chunk-WRFXCMRW.js +0 -2591
- package/dist/chunk-WRLEHV4A.js +0 -386
- package/dist/chunk-WTNQHM6Q.js +0 -43
- package/dist/chunk-WTZ6OJUY.js +0 -3070
- package/dist/chunk-WVFMFQRZ.js +0 -256
- package/dist/chunk-WVFMFQRZ.js.map +0 -1
- package/dist/chunk-WYIC3CXE.js +0 -157
- package/dist/chunk-WZABXFUL.js +0 -246
- package/dist/chunk-WZABXFUL.js.map +0 -1
- package/dist/chunk-X3GBTLKD.js +0 -175
- package/dist/chunk-XBOLFS6I.js +0 -532
- package/dist/chunk-XF4UH54P.js +0 -250
- package/dist/chunk-XHPBQTJP.js +0 -1260
- package/dist/chunk-XQ4TJITR.js +0 -270
- package/dist/chunk-XRFMGLCE.js +0 -466
- package/dist/chunk-XV2F7PGS.js +0 -236
- package/dist/chunk-Y2EQTW5Q.js +0 -100
- package/dist/chunk-YAOXCAQD.js +0 -371
- package/dist/chunk-YCDB3HPS.js +0 -137
- package/dist/chunk-YCONEOZQ.js +0 -191
- package/dist/chunk-YG243U6J.js +0 -158
- package/dist/chunk-YGQANOSV.js +0 -113
- package/dist/chunk-YKRWKRNX.js +0 -138
- package/dist/chunk-YKT5NYYJ.js +0 -3996
- package/dist/chunk-YKT5NYYJ.js.map +0 -1
- package/dist/chunk-YLWABUFE.js +0 -406
- package/dist/chunk-YOKIE7NG.js +0 -227
- package/dist/chunk-YRCDL3GO.js +0 -2582
- package/dist/chunk-YVBAYE7Y.js +0 -1236
- package/dist/chunk-YYKPRX4P.js +0 -29
- package/dist/chunk-Z4MW635R.js +0 -849
- package/dist/chunk-Z7IPPKG6.js +0 -403
- package/dist/chunk-ZFGXQ54H.js +0 -114
- package/dist/chunk-ZGBXHHCL.js +0 -373
- package/dist/computer-viewer-AVH5J4TC.js +0 -21
- package/dist/connection-step-up-T2B25VP7.js +0 -148
- package/dist/connection-step-up-T2B25VP7.js.map +0 -1
- package/dist/embedded-new-voice-M6PBWMQZ.js +0 -25
- package/dist/embedded-voice-7USALJKI.js +0 -25
- package/dist/fleet-decision-row-XY6OZPHA.js +0 -361
- package/dist/model-policy-picker-menu-S5RTVLMQ.js +0 -23
- package/dist/payment-page-card-XSY5NO7D.js +0 -227
- package/dist/platform-activity-row-77WER5O3.js +0 -156
- package/dist/queue-surface-implementation-SDV7I32L.js +0 -933
- package/dist/recorder-host-7GNQG6BB.js +0 -80
- package/dist/sandbox-files-JOH2Q57T.js +0 -29
- package/dist/session-connect-cards-HZIR4ZWT.js +0 -28
- package/dist/session-realtime-OPCPTIAP.js +0 -30
- package/dist/timeline-annotation-markers-WXCRA4BY.js +0 -157
- package/dist/timeline-annotation-selection-YBZQNCNX.js +0 -208
- package/dist/timeline-annotations-dialog-4WVXTKFW.js +0 -283
- /package/dist/{browser-viewer-KFMM5S2B.js.map → browser-viewer-TRPZI6NT.js.map} +0 -0
- /package/dist/{chat-interactive-block-5DJ72HU7.js.map → chat-interactive-block-Y4BS4JCM.js.map} +0 -0
- /package/dist/{chunk-CRBHMSAP.js.map → chunk-22E2YJHT.js.map} +0 -0
- /package/dist/{chunk-H3EP6GNA.js.map → chunk-2T6TN2YL.js.map} +0 -0
- /package/dist/{chunk-KBDWMUYA.js.map → chunk-2WNN26NW.js.map} +0 -0
- /package/dist/{chunk-HJ2J2XQI.js.map → chunk-3432A6XB.js.map} +0 -0
- /package/dist/{chunk-DA7XLT5F.js.map → chunk-35U7NSOR.js.map} +0 -0
- /package/dist/{chunk-QAVSUXLA.js.map → chunk-3EPR76WS.js.map} +0 -0
- /package/dist/{chunk-JV2TJLUW.js.map → chunk-3FXXEU5D.js.map} +0 -0
- /package/dist/{chunk-QR72J6WR.js.map → chunk-3MXOPOEU.js.map} +0 -0
- /package/dist/{chunk-76NGRVCY.js.map → chunk-3PKDU4JI.js.map} +0 -0
- /package/dist/{chunk-BO3D22BS.js.map → chunk-3PMO2BIV.js.map} +0 -0
- /package/dist/{chunk-SL4CLUHR.js.map → chunk-3XWHJNFY.js.map} +0 -0
- /package/dist/{chunk-EGD5RPRX.js.map → chunk-45WD2PKE.js.map} +0 -0
- /package/dist/{chunk-KZE7M52Y.js.map → chunk-4H2OWNRA.js.map} +0 -0
- /package/dist/{chunk-VSS6LRAK.js.map → chunk-4HVGOTMU.js.map} +0 -0
- /package/dist/{chunk-4ECOHGUL.js.map → chunk-4JER2ZMV.js.map} +0 -0
- /package/dist/{chunk-HZE6V7GW.js.map → chunk-4LVZ2VOQ.js.map} +0 -0
- /package/dist/{chunk-B6AH43UQ.js.map → chunk-4OGDD2EM.js.map} +0 -0
- /package/dist/{chunk-4UZE7ZT4.js.map → chunk-4PQC6WMF.js.map} +0 -0
- /package/dist/{chunk-KUYQTNVT.js.map → chunk-4UVSWAT3.js.map} +0 -0
- /package/dist/{chunk-BTMSR4OA.js.map → chunk-53A47RBX.js.map} +0 -0
- /package/dist/{chunk-57QWSJLX.js.map → chunk-552KKENW.js.map} +0 -0
- /package/dist/{chunk-TC42NAIJ.js.map → chunk-55F7L6M3.js.map} +0 -0
- /package/dist/{chunk-FXFOKD7A.js.map → chunk-5AHIKB3O.js.map} +0 -0
- /package/dist/{chunk-Q4GB2QU3.js.map → chunk-5N4L5WTE.js.map} +0 -0
- /package/dist/{chunk-4327UGUS.js.map → chunk-5OUJCVZI.js.map} +0 -0
- /package/dist/{chunk-GTGPKGWC.js.map → chunk-5OYXQ7MH.js.map} +0 -0
- /package/dist/{chunk-2ZR75AUO.js.map → chunk-5TAVVMFX.js.map} +0 -0
- /package/dist/{chunk-2YJS75C3.js.map → chunk-5Y3LYRNH.js.map} +0 -0
- /package/dist/{chunk-WRLEHV4A.js.map → chunk-5ZJKKE4T.js.map} +0 -0
- /package/dist/{chunk-2JTZMHQK.js.map → chunk-62DPSQRZ.js.map} +0 -0
- /package/dist/{chunk-MN4LJYKQ.js.map → chunk-64KMWTJ6.js.map} +0 -0
- /package/dist/{chunk-QUXQYYZO.js.map → chunk-6MZBNUS7.js.map} +0 -0
- /package/dist/{chunk-XF4UH54P.js.map → chunk-6YCE4ZC4.js.map} +0 -0
- /package/dist/{chunk-X3GBTLKD.js.map → chunk-6YROWWMX.js.map} +0 -0
- /package/dist/{chunk-YVBAYE7Y.js.map → chunk-73RZ72VU.js.map} +0 -0
- /package/dist/{chunk-5VPQVMJI.js.map → chunk-74KV436L.js.map} +0 -0
- /package/dist/{chunk-CSK2WOOX.js.map → chunk-7HKGLPV5.js.map} +0 -0
- /package/dist/{chunk-XRFMGLCE.js.map → chunk-7JSWODT6.js.map} +0 -0
- /package/dist/{chunk-EFKWOXBP.js.map → chunk-7K3PKWER.js.map} +0 -0
- /package/dist/{chunk-U6XRXK2T.js.map → chunk-7MPWC42V.js.map} +0 -0
- /package/dist/{chunk-QUTMVW4P.js.map → chunk-7REO6FRN.js.map} +0 -0
- /package/dist/{chunk-MDGNCUAC.js.map → chunk-7YMWRNRQ.js.map} +0 -0
- /package/dist/{chunk-JJKUERR4.js.map → chunk-A6H3KJ7G.js.map} +0 -0
- /package/dist/{chunk-W6PJWSZ6.js.map → chunk-AGQIE6YU.js.map} +0 -0
- /package/dist/{chunk-ZGBXHHCL.js.map → chunk-AHQM4I5V.js.map} +0 -0
- /package/dist/{chunk-HLLZPULI.js.map → chunk-AMTRO7XF.js.map} +0 -0
- /package/dist/{chunk-6S2XVKNI.js.map → chunk-AO4LTCG7.js.map} +0 -0
- /package/dist/{chunk-CTBPPPLR.js.map → chunk-APJ22OZV.js.map} +0 -0
- /package/dist/{chunk-TW56PZBB.js.map → chunk-APWL37KW.js.map} +0 -0
- /package/dist/{chunk-DIHPR5KJ.js.map → chunk-AQEJOBQ2.js.map} +0 -0
- /package/dist/{chunk-HD2MCYQF.js.map → chunk-ARKNT6BX.js.map} +0 -0
- /package/dist/{chunk-RSTS3RWN.js.map → chunk-B2IHDMAR.js.map} +0 -0
- /package/dist/{chunk-KZYZ3JHS.js.map → chunk-BCKIV26W.js.map} +0 -0
- /package/dist/{chunk-D5K2BS5Q.js.map → chunk-BE26JUSD.js.map} +0 -0
- /package/dist/{chunk-DRAG2LZP.js.map → chunk-BOVCD6KD.js.map} +0 -0
- /package/dist/{chunk-IIWNSYFA.js.map → chunk-BQWV66A6.js.map} +0 -0
- /package/dist/{chunk-BJ3WRO2K.js.map → chunk-BSQJXGGP.js.map} +0 -0
- /package/dist/{chunk-KLYBSXHE.js.map → chunk-BZY3MEVZ.js.map} +0 -0
- /package/dist/{chunk-MQRUZ2LW.js.map → chunk-C3D3OOEY.js.map} +0 -0
- /package/dist/{chunk-GY6DSWBM.js.map → chunk-CDHYO3DP.js.map} +0 -0
- /package/dist/{chunk-OPCPBLHA.js.map → chunk-CDV5JGVI.js.map} +0 -0
- /package/dist/{chunk-5WJCOFIU.js.map → chunk-CNW45M7G.js.map} +0 -0
- /package/dist/{chunk-A2OMNLDF.js.map → chunk-CUVQ37HB.js.map} +0 -0
- /package/dist/{chunk-XBOLFS6I.js.map → chunk-D32T3IIC.js.map} +0 -0
- /package/dist/{chunk-YAOXCAQD.js.map → chunk-D65BSM64.js.map} +0 -0
- /package/dist/{chunk-CNNOPEAK.js.map → chunk-D7435DWV.js.map} +0 -0
- /package/dist/{chunk-32LD46VC.js.map → chunk-DFH3M7B3.js.map} +0 -0
- /package/dist/{chunk-QIOIJ7K5.js.map → chunk-DGWBQ76M.js.map} +0 -0
- /package/dist/{chunk-PQOVMZI2.js.map → chunk-DHJDTGSJ.js.map} +0 -0
- /package/dist/{chunk-4XQH4XPP.js.map → chunk-DKEFTNCD.js.map} +0 -0
- /package/dist/{chunk-JIZWFW5A.js.map → chunk-DNAF6MT4.js.map} +0 -0
- /package/dist/{chunk-QBJDMSFA.js.map → chunk-E35XY7DS.js.map} +0 -0
- /package/dist/{chunk-NO6VQNWH.js.map → chunk-E5T5WIIP.js.map} +0 -0
- /package/dist/{chunk-W3R4C7Z2.js.map → chunk-EL6ECD34.js.map} +0 -0
- /package/dist/{chunk-VSSXDLO3.js.map → chunk-ELR6ITRC.js.map} +0 -0
- /package/dist/{chunk-7TLYFHMT.js.map → chunk-EPE3V2VE.js.map} +0 -0
- /package/dist/{chunk-2B3RQRNQ.js.map → chunk-EYGQHHVW.js.map} +0 -0
- /package/dist/{chunk-2VK7FJNR.js.map → chunk-EYQEJHYP.js.map} +0 -0
- /package/dist/{chunk-BIXGAYDJ.js.map → chunk-EZTH2XMH.js.map} +0 -0
- /package/dist/{chunk-6PHBW7SS.js.map → chunk-F3QVHVFS.js.map} +0 -0
- /package/dist/{chunk-SOPKVWZJ.js.map → chunk-F5VWPREQ.js.map} +0 -0
- /package/dist/{chunk-YGQANOSV.js.map → chunk-FM7AQUBL.js.map} +0 -0
- /package/dist/{chunk-Y2EQTW5Q.js.map → chunk-FP6BUXJM.js.map} +0 -0
- /package/dist/{chunk-45TILHFZ.js.map → chunk-FVU52L3I.js.map} +0 -0
- /package/dist/{chunk-W43FINJV.js.map → chunk-FZKNXNNO.js.map} +0 -0
- /package/dist/{chunk-XV2F7PGS.js.map → chunk-G3IXJWRY.js.map} +0 -0
- /package/dist/{chunk-DC6KFW2R.js.map → chunk-G6EI2O3N.js.map} +0 -0
- /package/dist/{chunk-2GXAXCS2.js.map → chunk-GB5T6YMZ.js.map} +0 -0
- /package/dist/{chunk-WYIC3CXE.js.map → chunk-GBLD6FOG.js.map} +0 -0
- /package/dist/{chunk-YCDB3HPS.js.map → chunk-GJBFFXCY.js.map} +0 -0
- /package/dist/{chunk-APNPWJCK.js.map → chunk-GJDP2K2S.js.map} +0 -0
- /package/dist/{chunk-GFTV3RR6.js.map → chunk-GP26XTDX.js.map} +0 -0
- /package/dist/{chunk-Q4RJKXQM.js.map → chunk-GTE6WP4N.js.map} +0 -0
- /package/dist/{chunk-UEAAF27Y.js.map → chunk-GWG3OAV7.js.map} +0 -0
- /package/dist/{chunk-6LYBRPUG.js.map → chunk-GXMHTMM6.js.map} +0 -0
- /package/dist/{chunk-NUM3QV66.js.map → chunk-GYRN5O2E.js.map} +0 -0
- /package/dist/{chunk-G4E5WKY7.js.map → chunk-GZX7W2WW.js.map} +0 -0
- /package/dist/{chunk-Z7IPPKG6.js.map → chunk-H3QI2G2B.js.map} +0 -0
- /package/dist/{chunk-Z4MW635R.js.map → chunk-H7D4DVWY.js.map} +0 -0
- /package/dist/{chunk-YCONEOZQ.js.map → chunk-HCDGBBBJ.js.map} +0 -0
- /package/dist/{chunk-DLMYANZX.js.map → chunk-HDSH6MIJ.js.map} +0 -0
- /package/dist/{chunk-KPD6TBO4.js.map → chunk-HOEUPZ6O.js.map} +0 -0
- /package/dist/{chunk-7VDWXFTL.js.map → chunk-HPQRWTQB.js.map} +0 -0
- /package/dist/{chunk-GIHE7U3Y.js.map → chunk-HUKGLWAY.js.map} +0 -0
- /package/dist/{chunk-SYYFA7W7.js.map → chunk-HUTQJY3F.js.map} +0 -0
- /package/dist/{chunk-62T2ZPD5.js.map → chunk-HWOYJOKK.js.map} +0 -0
- /package/dist/{chunk-IN2ZJR2A.js.map → chunk-HZR3WGUP.js.map} +0 -0
- /package/dist/{chunk-YKRWKRNX.js.map → chunk-I7YUDPDR.js.map} +0 -0
- /package/dist/{chunk-VQL7FHIF.js.map → chunk-IDII52M4.js.map} +0 -0
- /package/dist/{chunk-HPYQ5MES.js.map → chunk-IDPWEUM7.js.map} +0 -0
- /package/dist/{chunk-JL4PMUDG.js.map → chunk-IEWQFGEC.js.map} +0 -0
- /package/dist/{chunk-MRJFF5KY.js.map → chunk-IMTACEXF.js.map} +0 -0
- /package/dist/{chunk-2LRJ32SO.js.map → chunk-IVWT6M6N.js.map} +0 -0
- /package/dist/{chunk-7RRDXPNC.js.map → chunk-JEUPIHIP.js.map} +0 -0
- /package/dist/{chunk-VVJDYTD4.js.map → chunk-JF4WX3GQ.js.map} +0 -0
- /package/dist/{chunk-WRFXCMRW.js.map → chunk-JJPYXUKC.js.map} +0 -0
- /package/dist/{chunk-WTNQHM6Q.js.map → chunk-JNHWTYDD.js.map} +0 -0
- /package/dist/{chunk-RGCCRYTY.js.map → chunk-JP7AOJWD.js.map} +0 -0
- /package/dist/{chunk-TJBTP6LH.js.map → chunk-JTWT2WQA.js.map} +0 -0
- /package/dist/{chunk-HJ2CDFZX.js.map → chunk-JW3WIHWO.js.map} +0 -0
- /package/dist/{chunk-MITT6IZG.js.map → chunk-JW7RJMEZ.js.map} +0 -0
- /package/dist/{chunk-CTOLX2EW.js.map → chunk-K76PXR3O.js.map} +0 -0
- /package/dist/{chunk-CX3Z7W5Y.js.map → chunk-KCNIQN6V.js.map} +0 -0
- /package/dist/{chunk-2YNEUYWM.js.map → chunk-KH6KHYST.js.map} +0 -0
- /package/dist/{chunk-LKF6IPFC.js.map → chunk-KK4SEN7N.js.map} +0 -0
- /package/dist/{chunk-63AVTSUI.js.map → chunk-KOKRGAAI.js.map} +0 -0
- /package/dist/{chunk-F2JKNL73.js.map → chunk-KQFNTGAF.js.map} +0 -0
- /package/dist/{chunk-SHVW3C3Y.js.map → chunk-KRLNC6TH.js.map} +0 -0
- /package/dist/{chunk-MFLU3466.js.map → chunk-KYDLVMKA.js.map} +0 -0
- /package/dist/{chunk-UAKG7GLE.js.map → chunk-KZQDP2JM.js.map} +0 -0
- /package/dist/{chunk-FX343J2L.js.map → chunk-L2EZ2HOX.js.map} +0 -0
- /package/dist/{chunk-GGBMQNAB.js.map → chunk-L2UAFR2D.js.map} +0 -0
- /package/dist/{chunk-GT3FJVU6.js.map → chunk-L4R7ORMD.js.map} +0 -0
- /package/dist/{chunk-YOKIE7NG.js.map → chunk-LCLWN64E.js.map} +0 -0
- /package/dist/{chunk-PPQJIVGM.js.map → chunk-LFQI2C46.js.map} +0 -0
- /package/dist/{chunk-KF65UG2L.js.map → chunk-LLYX4F5A.js.map} +0 -0
- /package/dist/{chunk-PYU7CLEG.js.map → chunk-LQX5QCDS.js.map} +0 -0
- /package/dist/{chunk-Q4ZNRQKH.js.map → chunk-LRMHASG2.js.map} +0 -0
- /package/dist/{chunk-MO3XJQN2.js.map → chunk-M5FX5KH5.js.map} +0 -0
- /package/dist/{chunk-ST3H53IJ.js.map → chunk-MLOTUQJJ.js.map} +0 -0
- /package/dist/{chunk-A6Q6EUBR.js.map → chunk-MPUKGKXZ.js.map} +0 -0
- /package/dist/{chunk-ONF5M5GP.js.map → chunk-MS6LW4VU.js.map} +0 -0
- /package/dist/{chunk-NUF43R2F.js.map → chunk-MXPW4F74.js.map} +0 -0
- /package/dist/{chunk-MPP6BEAN.js.map → chunk-MZ7GJX5S.js.map} +0 -0
- /package/dist/{chunk-XHPBQTJP.js.map → chunk-N5OUIUYD.js.map} +0 -0
- /package/dist/{chunk-EAXZSBWV.js.map → chunk-N6FNORC7.js.map} +0 -0
- /package/dist/{chunk-4K5UVYZQ.js.map → chunk-NALVKY4U.js.map} +0 -0
- /package/dist/{chunk-L7T7M2P3.js.map → chunk-NJ77ZL5T.js.map} +0 -0
- /package/dist/{chunk-XQ4TJITR.js.map → chunk-NM2DNJDJ.js.map} +0 -0
- /package/dist/{chunk-VATOL3OZ.js.map → chunk-NNKRRF7E.js.map} +0 -0
- /package/dist/{chunk-4AUSS7CX.js.map → chunk-NP5UFWU4.js.map} +0 -0
- /package/dist/{chunk-HFROJDFQ.js.map → chunk-NV3AEIFO.js.map} +0 -0
- /package/dist/{chunk-PC3FWPOP.js.map → chunk-O6JDF7KH.js.map} +0 -0
- /package/dist/{chunk-OROXCA6L.js.map → chunk-OERZH3J4.js.map} +0 -0
- /package/dist/{chunk-V77BSX2F.js.map → chunk-OKHWTWWU.js.map} +0 -0
- /package/dist/{chunk-C22UPHA2.js.map → chunk-OLAIUVGT.js.map} +0 -0
- /package/dist/{chunk-C2F6SKOS.js.map → chunk-OO36IUMS.js.map} +0 -0
- /package/dist/{chunk-IZA2KBYK.js.map → chunk-OVDK7K2Z.js.map} +0 -0
- /package/dist/{chunk-FQ33JHJN.js.map → chunk-OX5ZCHZQ.js.map} +0 -0
- /package/dist/{chunk-FY42DW2R.js.map → chunk-P6LLCGPO.js.map} +0 -0
- /package/dist/{chunk-LX5IEXDF.js.map → chunk-PA2CUHTD.js.map} +0 -0
- /package/dist/{chunk-HE4VN5D3.js.map → chunk-PB4CQIRA.js.map} +0 -0
- /package/dist/{chunk-M722GGD3.js.map → chunk-PBV2P632.js.map} +0 -0
- /package/dist/{chunk-KTGKGHEA.js.map → chunk-PCSRHFRF.js.map} +0 -0
- /package/dist/{chunk-VFQZPHZR.js.map → chunk-PEPWW5BC.js.map} +0 -0
- /package/dist/{chunk-6CDBX3XG.js.map → chunk-PMBZMVKE.js.map} +0 -0
- /package/dist/{chunk-4Z7BPBS7.js.map → chunk-PP32RE26.js.map} +0 -0
- /package/dist/{chunk-6VEIDSF4.js.map → chunk-PTXAPI3Q.js.map} +0 -0
- /package/dist/{chunk-OTMJS3FV.js.map → chunk-PULNNF7G.js.map} +0 -0
- /package/dist/{chunk-YG243U6J.js.map → chunk-Q6KNROUT.js.map} +0 -0
- /package/dist/{chunk-EZ5ZBOGQ.js.map → chunk-QGJIFIKN.js.map} +0 -0
- /package/dist/{chunk-VFZJV26C.js.map → chunk-QKKKORGL.js.map} +0 -0
- /package/dist/{chunk-W2EX346X.js.map → chunk-QKUMMG6P.js.map} +0 -0
- /package/dist/{chunk-BVZYHORS.js.map → chunk-QNOWKKZ4.js.map} +0 -0
- /package/dist/{chunk-3FVVZW7J.js.map → chunk-QSWD3AHE.js.map} +0 -0
- /package/dist/{chunk-7FFZLLCH.js.map → chunk-QZ4U2VL5.js.map} +0 -0
- /package/dist/{chunk-IIMRBCA4.js.map → chunk-QZJNCLHV.js.map} +0 -0
- /package/dist/{chunk-6D3D2JWY.js.map → chunk-R6CFPY3F.js.map} +0 -0
- /package/dist/{chunk-YLWABUFE.js.map → chunk-R6QRUYUH.js.map} +0 -0
- /package/dist/{chunk-WCP32H3P.js.map → chunk-RE3GAQI5.js.map} +0 -0
- /package/dist/{chunk-JG7MEMJP.js.map → chunk-RFHUVPFA.js.map} +0 -0
- /package/dist/{chunk-WKELNNIG.js.map → chunk-RH45HT5T.js.map} +0 -0
- /package/dist/{chunk-S4LRL5BA.js.map → chunk-RJNQTZ5O.js.map} +0 -0
- /package/dist/{chunk-URSNCM57.js.map → chunk-S2BJTAAB.js.map} +0 -0
- /package/dist/{chunk-AJSRYRJS.js.map → chunk-S56PWXIX.js.map} +0 -0
- /package/dist/{chunk-FAB5SXNO.js.map → chunk-S6FFDIHD.js.map} +0 -0
- /package/dist/{chunk-56NHT2TZ.js.map → chunk-S6MAMIK2.js.map} +0 -0
- /package/dist/{chunk-OKI45WHM.js.map → chunk-SERTO6H6.js.map} +0 -0
- /package/dist/{chunk-I5DW76GB.js.map → chunk-STOOH7EI.js.map} +0 -0
- /package/dist/{chunk-I7MZOZGC.js.map → chunk-SWSTEUXX.js.map} +0 -0
- /package/dist/{chunk-JFEAJRG6.js.map → chunk-SWZN7NNZ.js.map} +0 -0
- /package/dist/{chunk-ARNQH2XE.js.map → chunk-SYDF57KS.js.map} +0 -0
- /package/dist/{chunk-YYKPRX4P.js.map → chunk-T275CUVD.js.map} +0 -0
- /package/dist/{chunk-OCS3KIYC.js.map → chunk-T4OT7QWP.js.map} +0 -0
- /package/dist/{chunk-YRCDL3GO.js.map → chunk-TCSRY2NP.js.map} +0 -0
- /package/dist/{chunk-ELC2ZPHI.js.map → chunk-TCX5OA2X.js.map} +0 -0
- /package/dist/{chunk-NJVHMK5R.js.map → chunk-TDW5CSO5.js.map} +0 -0
- /package/dist/{chunk-MCPKUVMQ.js.map → chunk-TGG3ODCS.js.map} +0 -0
- /package/dist/{chunk-Q2N5UR7Q.js.map → chunk-TILSTYUC.js.map} +0 -0
- /package/dist/{chunk-4FKE42TW.js.map → chunk-TJ5DYWXU.js.map} +0 -0
- /package/dist/{chunk-TQQALBLU.js.map → chunk-TNRI4ZE6.js.map} +0 -0
- /package/dist/{chunk-LLU7VKCZ.js.map → chunk-TPIFVUMF.js.map} +0 -0
- /package/dist/{chunk-UITWSZH3.js.map → chunk-TSW6OF22.js.map} +0 -0
- /package/dist/{chunk-UB4GKFCI.js.map → chunk-TTSTBHGR.js.map} +0 -0
- /package/dist/{chunk-HVGM5IME.js.map → chunk-U3JYAWMR.js.map} +0 -0
- /package/dist/{chunk-GGU7KV4G.js.map → chunk-U7ODSHA5.js.map} +0 -0
- /package/dist/{chunk-NW4RPGET.js.map → chunk-UEGEPRNP.js.map} +0 -0
- /package/dist/{chunk-2DA7DTHO.js.map → chunk-UGIA2YEJ.js.map} +0 -0
- /package/dist/{chunk-5AGRFQSH.js.map → chunk-UHLKKDNF.js.map} +0 -0
- /package/dist/{chunk-KJI2DVSO.js.map → chunk-ULVXKIPX.js.map} +0 -0
- /package/dist/{chunk-56KVDNOS.js.map → chunk-USUDKZ5G.js.map} +0 -0
- /package/dist/{chunk-CC4JBFWY.js.map → chunk-UVO6I2F6.js.map} +0 -0
- /package/dist/{chunk-BR62BHVY.js.map → chunk-V6NVG4K2.js.map} +0 -0
- /package/dist/{chunk-Q7QXSQ46.js.map → chunk-VCMQFD3G.js.map} +0 -0
- /package/dist/{chunk-CVDY7P3E.js.map → chunk-VKPBDNIO.js.map} +0 -0
- /package/dist/{chunk-L6WVCO6D.js.map → chunk-VLDKWGHD.js.map} +0 -0
- /package/dist/{chunk-IUPIJWFK.js.map → chunk-VM2NA2EL.js.map} +0 -0
- /package/dist/{chunk-6JGMBTXP.js.map → chunk-VMZTCVEL.js.map} +0 -0
- /package/dist/{chunk-CG2HT7TI.js.map → chunk-VQH5AXZY.js.map} +0 -0
- /package/dist/{chunk-ZFGXQ54H.js.map → chunk-VTBTW6N4.js.map} +0 -0
- /package/dist/{chunk-VJZPVP6C.js.map → chunk-VV7PLDX4.js.map} +0 -0
- /package/dist/{chunk-LWEJGMVO.js.map → chunk-VYGGLH5H.js.map} +0 -0
- /package/dist/{chunk-KFYLTQGK.js.map → chunk-VYQHHTQ4.js.map} +0 -0
- /package/dist/{chunk-IB2EX6GX.js.map → chunk-VYSGRD2W.js.map} +0 -0
- /package/dist/{chunk-5JMX5FRF.js.map → chunk-W4W63LTP.js.map} +0 -0
- /package/dist/{chunk-HRLJNDDC.js.map → chunk-WHTRR66J.js.map} +0 -0
- /package/dist/{chunk-BWBBS6HJ.js.map → chunk-WICIQFHJ.js.map} +0 -0
- /package/dist/{chunk-CDB66JAO.js.map → chunk-WJYYMCCC.js.map} +0 -0
- /package/dist/{chunk-TBUWK3RP.js.map → chunk-WSJOWQJE.js.map} +0 -0
- /package/dist/{chunk-C2EERTYX.js.map → chunk-WYDUXZ2R.js.map} +0 -0
- /package/dist/{chunk-E2SGFW2B.js.map → chunk-X62CN4YR.js.map} +0 -0
- /package/dist/{chunk-VVCKB62D.js.map → chunk-XFQHKMO6.js.map} +0 -0
- /package/dist/{chunk-IZZINUFM.js.map → chunk-XGJ7XZHS.js.map} +0 -0
- /package/dist/{chunk-P5FLGDXW.js.map → chunk-XJFJNOEV.js.map} +0 -0
- /package/dist/{chunk-UQ67SEGH.js.map → chunk-XKJLHMXZ.js.map} +0 -0
- /package/dist/{chunk-VEJG6GQQ.js.map → chunk-XLFPJVQS.js.map} +0 -0
- /package/dist/{chunk-RDHK2NYW.js.map → chunk-XM4ZLZFW.js.map} +0 -0
- /package/dist/{chunk-6TWS6AXT.js.map → chunk-Y2GAWEJD.js.map} +0 -0
- /package/dist/{chunk-MYDFABO6.js.map → chunk-Y3A74SVK.js.map} +0 -0
- /package/dist/{chunk-C625ODRG.js.map → chunk-YANEVGI3.js.map} +0 -0
- /package/dist/{chunk-OXM267RC.js.map → chunk-YHHSO5QR.js.map} +0 -0
- /package/dist/{chunk-VVXOG3ZC.js.map → chunk-YOSOCHCB.js.map} +0 -0
- /package/dist/{chunk-HHFFPE67.js.map → chunk-YP4SNX4P.js.map} +0 -0
- /package/dist/{chunk-QCB3WNCA.js.map → chunk-YQH6AMIH.js.map} +0 -0
- /package/dist/{chunk-NZBZLY7H.js.map → chunk-YRWL2IAE.js.map} +0 -0
- /package/dist/{chunk-LYEALWBN.js.map → chunk-YTWRQ3WK.js.map} +0 -0
- /package/dist/{chunk-7V2CQLTN.js.map → chunk-YV5GGSLK.js.map} +0 -0
- /package/dist/{chunk-RY7YRYVT.js.map → chunk-YXUDK37V.js.map} +0 -0
- /package/dist/{chunk-MUB44LD3.js.map → chunk-YYM5TSCR.js.map} +0 -0
- /package/dist/{chunk-JTWK3VE7.js.map → chunk-ZG2CKFQF.js.map} +0 -0
- /package/dist/{chunk-5UTHPGFF.js.map → chunk-ZGJXO2HH.js.map} +0 -0
- /package/dist/{chunk-WTZ6OJUY.js.map → chunk-ZGV76PZ4.js.map} +0 -0
- /package/dist/{chunk-A3QEJ2IZ.js.map → chunk-ZOBUR2VC.js.map} +0 -0
- /package/dist/{computer-viewer-AVH5J4TC.js.map → computer-viewer-S6AL3XDT.js.map} +0 -0
- /package/dist/{embedded-new-voice-M6PBWMQZ.js.map → embedded-new-voice-T3BXRYJX.js.map} +0 -0
- /package/dist/{embedded-voice-7USALJKI.js.map → embedded-voice-ZJXMF3RP.js.map} +0 -0
- /package/dist/{fleet-decision-row-XY6OZPHA.js.map → fleet-decision-row-AUCMLBCV.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-S5RTVLMQ.js.map → model-policy-picker-menu-TO57YUQ6.js.map} +0 -0
- /package/dist/{payment-page-card-XSY5NO7D.js.map → payment-page-card-DFGDAMTG.js.map} +0 -0
- /package/dist/{platform-activity-row-77WER5O3.js.map → platform-activity-row-ZMBEJGXN.js.map} +0 -0
- /package/dist/{queue-surface-implementation-SDV7I32L.js.map → queue-surface-implementation-KDK5CYH6.js.map} +0 -0
- /package/dist/{recorder-host-7GNQG6BB.js.map → recorder-host-3HLYRL4H.js.map} +0 -0
- /package/dist/{sandbox-files-JOH2Q57T.js.map → sandbox-files-UOZ4OJZU.js.map} +0 -0
- /package/dist/{session-connect-cards-HZIR4ZWT.js.map → session-connect-cards-VZIYLH45.js.map} +0 -0
- /package/dist/{session-realtime-OPCPTIAP.js.map → session-realtime-2ZGJWVZP.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-WXCRA4BY.js.map → timeline-annotation-markers-KBTFWLME.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-YBZQNCNX.js.map → timeline-annotation-selection-VI4YSDR5.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-4WVXTKFW.js.map → timeline-annotations-dialog-4PLWNLRB.js.map} +0 -0
package/dist/chunk-WRFXCMRW.js
DELETED
|
@@ -1,2591 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
useManualRepositoryCatalogReconciliation
|
|
4
|
-
} from "./chunk-MUHAQS6B.js";
|
|
5
|
-
import {
|
|
6
|
-
isAuthorizedWorkspaceId,
|
|
7
|
-
organizationWorkspacePreferenceStorageId,
|
|
8
|
-
workspaceNavigationPreferenceStorageId,
|
|
9
|
-
writeLastWorkspaceId,
|
|
10
|
-
writeLastWorkspaceIdForOrganization
|
|
11
|
-
} from "./chunk-I7MZOZGC.js";
|
|
12
|
-
import {
|
|
13
|
-
beginWorkspaceOperation,
|
|
14
|
-
beginWorkspaceTransition,
|
|
15
|
-
invalidatePrincipalTransition,
|
|
16
|
-
invalidateWorkspaceTransition,
|
|
17
|
-
ownsPrincipalTransition,
|
|
18
|
-
ownsTransitionInvocation,
|
|
19
|
-
ownsWorkspaceOperation,
|
|
20
|
-
ownsWorkspaceTransition,
|
|
21
|
-
runCurrentTransitionInvocation,
|
|
22
|
-
runCurrentWorkspaceOperation,
|
|
23
|
-
runCurrentWorkspaceRequest,
|
|
24
|
-
settleWorkspaceOperation
|
|
25
|
-
} from "./chunk-ANALJOJL.js";
|
|
26
|
-
import {
|
|
27
|
-
createWithOpeningContext
|
|
28
|
-
} from "./chunk-KMDWWTDF.js";
|
|
29
|
-
import {
|
|
30
|
-
startDeploymentRefresh
|
|
31
|
-
} from "./chunk-ARIV4S6T.js";
|
|
32
|
-
import {
|
|
33
|
-
ManagedAuthSessionUnavailableError,
|
|
34
|
-
signOutWithAuthoritativeReconciliation
|
|
35
|
-
} from "./chunk-MXDZE5ML.js";
|
|
36
|
-
import {
|
|
37
|
-
readBootstrap
|
|
38
|
-
} from "./chunk-CBMZS6DL.js";
|
|
39
|
-
import {
|
|
40
|
-
startWorkspaceClientConfigRefresh,
|
|
41
|
-
withWorkspaceClientConfig
|
|
42
|
-
} from "./chunk-DC6CN2XS.js";
|
|
43
|
-
import {
|
|
44
|
-
unlinkGitHubInstallationWithReconciliation
|
|
45
|
-
} from "./chunk-3BCPHI4Q.js";
|
|
46
|
-
import {
|
|
47
|
-
beginSocialLoginAnalytics,
|
|
48
|
-
noteSuccessfulLogin,
|
|
49
|
-
observeSocialLoginResult
|
|
50
|
-
} from "./chunk-2GTZXN6F.js";
|
|
51
|
-
import {
|
|
52
|
-
sameSessionForContext
|
|
53
|
-
} from "./chunk-CTBP2E2T.js";
|
|
54
|
-
import {
|
|
55
|
-
deleteWorkspaceWithReconciliation
|
|
56
|
-
} from "./chunk-BZ74K6IE.js";
|
|
57
|
-
import {
|
|
58
|
-
rememberRouteRecoveryNotice
|
|
59
|
-
} from "./chunk-A5NTTC2Y.js";
|
|
60
|
-
import {
|
|
61
|
-
useCapabilityToolDefaults
|
|
62
|
-
} from "./chunk-APXVCSCB.js";
|
|
63
|
-
import {
|
|
64
|
-
createQuietRetry
|
|
65
|
-
} from "./chunk-MME2XIN6.js";
|
|
66
|
-
import {
|
|
67
|
-
reusablePersonalGitHubAuthority
|
|
68
|
-
} from "./chunk-MFGKX4C3.js";
|
|
69
|
-
import {
|
|
70
|
-
bootstrapErrorPresentation,
|
|
71
|
-
bootstrapWaitingPresentation
|
|
72
|
-
} from "./chunk-B7QZASPX.js";
|
|
73
|
-
import {
|
|
74
|
-
runSingleFlight
|
|
75
|
-
} from "./chunk-34XTCKDJ.js";
|
|
76
|
-
import {
|
|
77
|
-
markIntegrationConnectRedirect
|
|
78
|
-
} from "./chunk-ZEOWTFDQ.js";
|
|
79
|
-
import {
|
|
80
|
-
SessionChannelProjectionAuthority,
|
|
81
|
-
applySessionPinProjection,
|
|
82
|
-
notifySessionPinChanged,
|
|
83
|
-
reconcileFailedSessionPin
|
|
84
|
-
} from "./chunk-PL325D3F.js";
|
|
85
|
-
import {
|
|
86
|
-
creationHandoffReconciled
|
|
87
|
-
} from "./chunk-UKZ3SGNF.js";
|
|
88
|
-
import {
|
|
89
|
-
isPaymentRequiredError,
|
|
90
|
-
paymentRefusalCode
|
|
91
|
-
} from "./chunk-OZNF2JEJ.js";
|
|
92
|
-
import {
|
|
93
|
-
upsertWorkspace
|
|
94
|
-
} from "./chunk-POUQIO45.js";
|
|
95
|
-
import {
|
|
96
|
-
useConsoleSharedQueries
|
|
97
|
-
} from "./chunk-5THRC6UW.js";
|
|
98
|
-
import {
|
|
99
|
-
useSimplifiedInterface
|
|
100
|
-
} from "./chunk-Z7PXQLGK.js";
|
|
101
|
-
import {
|
|
102
|
-
toast
|
|
103
|
-
} from "./chunk-O4EA4F3W.js";
|
|
104
|
-
import {
|
|
105
|
-
useNavigate,
|
|
106
|
-
usePage,
|
|
107
|
-
useRouterState
|
|
108
|
-
} from "./chunk-C52N45PY.js";
|
|
109
|
-
import {
|
|
110
|
-
createSessionEventFeedStore,
|
|
111
|
-
useLatestCallback
|
|
112
|
-
} from "./chunk-7GGVDTCZ.js";
|
|
113
|
-
import {
|
|
114
|
-
buildCreateSessionRequest,
|
|
115
|
-
classifyCreateSessionFailure,
|
|
116
|
-
prepareCreateSessionAttempt,
|
|
117
|
-
retainCreateSessionAttemptAfterFailure
|
|
118
|
-
} from "./chunk-NO6VQNWH.js";
|
|
119
|
-
import {
|
|
120
|
-
buildOpenGeniUiTools,
|
|
121
|
-
buildResources,
|
|
122
|
-
enabledWorkspaceCapabilityMcpServers,
|
|
123
|
-
groupRepositories,
|
|
124
|
-
initialReasoningEffort,
|
|
125
|
-
installedApiIntegrationMcpServers,
|
|
126
|
-
isAbortError,
|
|
127
|
-
mergeMcpServerOptions,
|
|
128
|
-
selectableMcpServers
|
|
129
|
-
} from "./chunk-AK2634UU.js";
|
|
130
|
-
import {
|
|
131
|
-
hasWorkspacePermission,
|
|
132
|
-
isWorkspacePermissionDenied,
|
|
133
|
-
lacksWorkspacePermission
|
|
134
|
-
} from "./chunk-EQSXKGTW.js";
|
|
135
|
-
import {
|
|
136
|
-
loadCurrentManagedSelfContext,
|
|
137
|
-
managedSelfContextIdentity
|
|
138
|
-
} from "./chunk-LBSXJVHD.js";
|
|
139
|
-
import {
|
|
140
|
-
t
|
|
141
|
-
} from "./chunk-BO3D22BS.js";
|
|
142
|
-
import {
|
|
143
|
-
userErrorText
|
|
144
|
-
} from "./chunk-UJQMDNZ5.js";
|
|
145
|
-
import {
|
|
146
|
-
prepareRecordingsForSignOut,
|
|
147
|
-
recordingOwnerKey
|
|
148
|
-
} from "./chunk-4VBRP6Q5.js";
|
|
149
|
-
import {
|
|
150
|
-
useEmbedded,
|
|
151
|
-
useHostMessageContext,
|
|
152
|
-
useHostMessageContextTools
|
|
153
|
-
} from "./chunk-BFBHLYNE.js";
|
|
154
|
-
import {
|
|
155
|
-
claimHumanInputDraftOwner,
|
|
156
|
-
forgetAllHumanInputDrafts
|
|
157
|
-
} from "./chunk-UYWVK7JQ.js";
|
|
158
|
-
import {
|
|
159
|
-
forgetAllComposerOperations
|
|
160
|
-
} from "./chunk-NJVHMK5R.js";
|
|
161
|
-
import {
|
|
162
|
-
isTransientServiceFailure
|
|
163
|
-
} from "./chunk-5AIMVW6Y.js";
|
|
164
|
-
import {
|
|
165
|
-
composerSubmissionErrorMessage
|
|
166
|
-
} from "./chunk-UIK52VL4.js";
|
|
167
|
-
|
|
168
|
-
// src/app/app-state.tsx
|
|
169
|
-
import { personalGitHubAllRepositoriesEffectiveAccess } from "@opengeni/contracts/personal-github";
|
|
170
|
-
import {
|
|
171
|
-
resolveWorkspaceSessionDefaults,
|
|
172
|
-
resolveWorkspaceSessionToolDefaults
|
|
173
|
-
} from "@opengeni/contracts";
|
|
174
|
-
import { OpenGeniApiError } from "@opengeni/sdk/browser";
|
|
175
|
-
|
|
176
|
-
// src/sign-out-browser-data.ts
|
|
177
|
-
var KEPT_ACROSS_SIGN_OUT = [
|
|
178
|
-
"opengeni.reloadForApiContract:",
|
|
179
|
-
"opengeni.reloadForRevision:",
|
|
180
|
-
"opengeni.desktop.webSessionRestoredAt",
|
|
181
|
-
"opengeni:vite-preload-recovery-build",
|
|
182
|
-
"opengeni:sign-in-change-feedback",
|
|
183
|
-
"opengeni:organization-invitation-continuation:v1"
|
|
184
|
-
];
|
|
185
|
-
function opengeniKey(key) {
|
|
186
|
-
return key.startsWith("opengeni.") || key.startsWith("opengeni:");
|
|
187
|
-
}
|
|
188
|
-
function sessionStore() {
|
|
189
|
-
try {
|
|
190
|
-
return typeof window === "undefined" ? null : window.sessionStorage;
|
|
191
|
-
} catch {
|
|
192
|
-
return null;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
function forgetSignedOutBrowserData(storage = sessionStore()) {
|
|
196
|
-
forgetAllHumanInputDrafts();
|
|
197
|
-
forgetAllComposerOperations();
|
|
198
|
-
if (!storage) return;
|
|
199
|
-
try {
|
|
200
|
-
const keys = [];
|
|
201
|
-
for (let index = 0; index < storage.length; index += 1) {
|
|
202
|
-
const key = storage.key(index);
|
|
203
|
-
if (key !== null && opengeniKey(key) && !KEPT_ACROSS_SIGN_OUT.some((kept) => key === kept || key.startsWith(kept)))
|
|
204
|
-
keys.push(key);
|
|
205
|
-
}
|
|
206
|
-
for (const key of keys) storage.removeItem(key);
|
|
207
|
-
} catch {
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// src/app/app-state.tsx
|
|
212
|
-
import {
|
|
213
|
-
useCallback,
|
|
214
|
-
useEffect,
|
|
215
|
-
useInsertionEffect,
|
|
216
|
-
useMemo,
|
|
217
|
-
useRef,
|
|
218
|
-
useState
|
|
219
|
-
} from "react";
|
|
220
|
-
import { flushSync } from "react-dom";
|
|
221
|
-
|
|
222
|
-
// src/app/lib/simplified-interface-model.ts
|
|
223
|
-
var SIMPLIFIED_INTERFACE_MODEL_SLUG = "gpt-6.1-sol";
|
|
224
|
-
var SIMPLIFIED_INTERFACE_REASONING_EFFORT = "medium";
|
|
225
|
-
function simplifiedInterfaceModelPolicy(config) {
|
|
226
|
-
const pinned = config.models.find(
|
|
227
|
-
(model) => (model.source === void 0 || model.source === "opengeni") && (model.id === SIMPLIFIED_INTERFACE_MODEL_SLUG || model.id.endsWith(`/${SIMPLIFIED_INTERFACE_MODEL_SLUG}`))
|
|
228
|
-
);
|
|
229
|
-
const chosen = pinned ?? config.models.find((model) => model.id === config.defaultModel);
|
|
230
|
-
const efforts = chosen?.capabilities?.reasoning?.efforts;
|
|
231
|
-
const reasoningEffort = !efforts || efforts.includes(SIMPLIFIED_INTERFACE_REASONING_EFFORT) ? SIMPLIFIED_INTERFACE_REASONING_EFFORT : chosen?.capabilities?.reasoning?.defaultEffort ?? config.defaultReasoningEffort;
|
|
232
|
-
return { model: chosen?.id ?? config.defaultModel, reasoningEffort };
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
// src/app/app-state.tsx
|
|
236
|
-
import { errorMessage } from "@opengeni/contracts/values";
|
|
237
|
-
var PRINCIPAL_RECHECK_INTERVAL_MS = 5e3;
|
|
238
|
-
var GITHUB_STATUS_TOAST_ID = "opengeni-github-status";
|
|
239
|
-
var PERSONAL_GITHUB_STATUS_TOAST_ID = "opengeni-personal-github-status";
|
|
240
|
-
var PERSONAL_GITHUB_RECONNECT_TOAST_ID = "opengeni-personal-github-reconnect";
|
|
241
|
-
function personalGitHubNeedsReconnect(connection) {
|
|
242
|
-
return Boolean(connection && connection.status !== "active" && connection.status !== "revoked");
|
|
243
|
-
}
|
|
244
|
-
function announcePersonalGitHubReconnect(state, connection, onReconnect) {
|
|
245
|
-
const key = `${connection.id}:${connection.version}`;
|
|
246
|
-
if (state.shownFor === key) return;
|
|
247
|
-
state.shownFor = key;
|
|
248
|
-
const login = typeof connection.metadata.githubLogin === "string" && connection.metadata.githubLogin ? connection.metadata.githubLogin : null;
|
|
249
|
-
showPersonalGitHubReconnectToast(login, onReconnect);
|
|
250
|
-
}
|
|
251
|
-
function showPersonalGitHubReconnectToast(githubLogin, onReconnect) {
|
|
252
|
-
toast.warning("Reconnect your GitHub", {
|
|
253
|
-
id: PERSONAL_GITHUB_RECONNECT_TOAST_ID,
|
|
254
|
-
description: `Opengeni can't work as ${githubLogin ? `@${githubLogin}` : "you"} until you reconnect.`,
|
|
255
|
-
duration: Infinity,
|
|
256
|
-
closeButton: true,
|
|
257
|
-
action: { label: "Reconnect", onClick: onReconnect }
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
function clearPersonalGitHubReconnectToast(state) {
|
|
261
|
-
if (state.shownFor === null) return;
|
|
262
|
-
state.shownFor = null;
|
|
263
|
-
toast.dismiss(PERSONAL_GITHUB_RECONNECT_TOAST_ID);
|
|
264
|
-
}
|
|
265
|
-
function preserveSlackLinkForManagedAuth(mode, phase) {
|
|
266
|
-
return mode === "signin" && phase === "raw";
|
|
267
|
-
}
|
|
268
|
-
function createSlackLinkPrepareController(value) {
|
|
269
|
-
let workspaceId = value?.workspaceId ?? null;
|
|
270
|
-
let bearer = value?.token ?? null;
|
|
271
|
-
let inFlight = null;
|
|
272
|
-
let prepared = null;
|
|
273
|
-
let failure;
|
|
274
|
-
let hasFailure = false;
|
|
275
|
-
let generation = 0;
|
|
276
|
-
return {
|
|
277
|
-
workspaceId: () => workspaceId,
|
|
278
|
-
phase: () => {
|
|
279
|
-
if (!workspaceId) return "none";
|
|
280
|
-
if (bearer !== null) return "raw";
|
|
281
|
-
if (inFlight) return "in_flight";
|
|
282
|
-
if (prepared !== null) return "prepared";
|
|
283
|
-
return hasFailure ? "failed" : "none";
|
|
284
|
-
},
|
|
285
|
-
prepare: (requestedWorkspaceId, exchange) => {
|
|
286
|
-
if (!workspaceId || requestedWorkspaceId !== workspaceId) return Promise.resolve(null);
|
|
287
|
-
if (prepared !== null) return Promise.resolve(prepared);
|
|
288
|
-
if (hasFailure) return Promise.reject(failure);
|
|
289
|
-
if (inFlight) return inFlight;
|
|
290
|
-
if (bearer === null) return Promise.resolve(null);
|
|
291
|
-
const token = bearer;
|
|
292
|
-
const claimedGeneration = generation;
|
|
293
|
-
let exchangePromise;
|
|
294
|
-
try {
|
|
295
|
-
exchangePromise = exchange(token);
|
|
296
|
-
} catch (error) {
|
|
297
|
-
exchangePromise = Promise.reject(error);
|
|
298
|
-
}
|
|
299
|
-
bearer = null;
|
|
300
|
-
let flight;
|
|
301
|
-
flight = exchangePromise.then(
|
|
302
|
-
(request) => {
|
|
303
|
-
if (generation === claimedGeneration) prepared = request;
|
|
304
|
-
return request;
|
|
305
|
-
},
|
|
306
|
-
(error) => {
|
|
307
|
-
if (generation === claimedGeneration) {
|
|
308
|
-
failure = error;
|
|
309
|
-
hasFailure = true;
|
|
310
|
-
}
|
|
311
|
-
throw error;
|
|
312
|
-
}
|
|
313
|
-
).finally(() => {
|
|
314
|
-
if (generation === claimedGeneration && inFlight === flight) inFlight = null;
|
|
315
|
-
});
|
|
316
|
-
inFlight = flight;
|
|
317
|
-
return flight;
|
|
318
|
-
},
|
|
319
|
-
clear: () => {
|
|
320
|
-
generation += 1;
|
|
321
|
-
workspaceId = null;
|
|
322
|
-
bearer = null;
|
|
323
|
-
inFlight = null;
|
|
324
|
-
prepared = null;
|
|
325
|
-
failure = void 0;
|
|
326
|
-
hasFailure = false;
|
|
327
|
-
}
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
|
-
function useAppState(host, appStateOptions) {
|
|
331
|
-
const messageContext = useHostMessageContext();
|
|
332
|
-
const embedded = useEmbedded();
|
|
333
|
-
const hostMessageContext = useRef(messageContext);
|
|
334
|
-
hostMessageContext.current = messageContext;
|
|
335
|
-
const messageContextTools = useHostMessageContextTools();
|
|
336
|
-
const hostMessageContextTools = useRef(messageContextTools);
|
|
337
|
-
hostMessageContextTools.current = messageContextTools;
|
|
338
|
-
const {
|
|
339
|
-
captureProductEvent,
|
|
340
|
-
checkDeploymentRevision,
|
|
341
|
-
clearStoredAccessKey,
|
|
342
|
-
configureManagedActorEpoch,
|
|
343
|
-
createOpenGeniClient,
|
|
344
|
-
fetchAuthSession,
|
|
345
|
-
fetchClientConfig,
|
|
346
|
-
getStoredAccessKey,
|
|
347
|
-
setStoredAccessKey,
|
|
348
|
-
signInEmail,
|
|
349
|
-
signOutManaged,
|
|
350
|
-
signUpEmail,
|
|
351
|
-
startManagedSocialSignIn,
|
|
352
|
-
signInPasskey,
|
|
353
|
-
signUpPasskey,
|
|
354
|
-
slackLink,
|
|
355
|
-
subscribeSignInLost
|
|
356
|
-
} = host;
|
|
357
|
-
const [session, setSessionState] = useState(null);
|
|
358
|
-
const [sessionChannelProjectionAuthority] = useState(
|
|
359
|
-
() => new SessionChannelProjectionAuthority()
|
|
360
|
-
);
|
|
361
|
-
const [sessionCreationHandoff, setSessionCreationHandoff] = useState(null);
|
|
362
|
-
const [clientConfig, setClientConfig] = useState(null);
|
|
363
|
-
const [workspaceConfig, setWorkspaceConfig] = useState(
|
|
364
|
-
void 0
|
|
365
|
-
);
|
|
366
|
-
const [workspaceConfigVersion, setWorkspaceConfigVersion] = useState(0);
|
|
367
|
-
const [configError, setConfigError] = useState(null);
|
|
368
|
-
const [configRequestVersion, setConfigRequestVersion] = useState(0);
|
|
369
|
-
const [authSession, setAuthSession] = useState(void 0);
|
|
370
|
-
const [managedAuthBootstrapComplete, setManagedAuthBootstrapComplete] = useState(false);
|
|
371
|
-
const [accessContext, setAccessContext] = useState(null);
|
|
372
|
-
const accessContextRef = useRef(accessContext);
|
|
373
|
-
useInsertionEffect(() => {
|
|
374
|
-
accessContextRef.current = accessContext;
|
|
375
|
-
}, [accessContext]);
|
|
376
|
-
const [workspaces, setWorkspaces] = useState([]);
|
|
377
|
-
const [managedSelfContext, setManagedSelfContext] = useState(null);
|
|
378
|
-
const [slackLinkContinuationWorkspaceId, setSlackLinkContinuationWorkspaceId] = useState(slackLink.workspaceId);
|
|
379
|
-
const [slackLinkLinkedWorkspaceId, setSlackLinkLinkedWorkspaceId] = useState(null);
|
|
380
|
-
const [invalidSlackLinkQueryWorkspaceId, setInvalidSlackLinkQueryWorkspaceId] = useState(host.initialInvalidSlackLinkQueryWorkspaceId);
|
|
381
|
-
const [accessLoading, setAccessLoading] = useState(false);
|
|
382
|
-
const [accessError, setAccessError] = useState(null);
|
|
383
|
-
const [creditRequired, setCreditRequired] = useState(null);
|
|
384
|
-
const [chosenModel, setModel] = useState("gpt-6.2-astra");
|
|
385
|
-
const [chosenReasoningEffort, setReasoningEffort] = useState("low");
|
|
386
|
-
const [chosenLatencyMode, setLatencyMode] = useState("standard");
|
|
387
|
-
const { simplified } = useSimplifiedInterface();
|
|
388
|
-
const simplifiedPolicy = useMemo(
|
|
389
|
-
() => simplified && clientConfig ? simplifiedInterfaceModelPolicy(clientConfig) : null,
|
|
390
|
-
[clientConfig, simplified]
|
|
391
|
-
);
|
|
392
|
-
const model = simplifiedPolicy?.model ?? chosenModel;
|
|
393
|
-
const reasoningEffort = simplifiedPolicy?.reasoningEffort ?? chosenReasoningEffort;
|
|
394
|
-
const latencyMode = simplifiedPolicy ? "standard" : chosenLatencyMode;
|
|
395
|
-
const [inspectorOpen, setInspectorOpen] = useState(false);
|
|
396
|
-
const [inspectorHint, setInspectorHint] = useState(false);
|
|
397
|
-
const [connectionState, setConnectionState] = useState("idle");
|
|
398
|
-
const [sessionEventFeedStore] = useState(createSessionEventFeedStore);
|
|
399
|
-
useEffect(() => {
|
|
400
|
-
const retireReconciledCreation = () => {
|
|
401
|
-
const feed = sessionEventFeedStore.getSnapshot();
|
|
402
|
-
if (!feed) return;
|
|
403
|
-
setSessionCreationHandoff(
|
|
404
|
-
(current) => creationHandoffReconciled(current, feed.events) ? null : current
|
|
405
|
-
);
|
|
406
|
-
};
|
|
407
|
-
retireReconciledCreation();
|
|
408
|
-
return sessionEventFeedStore.subscribe(retireReconciledCreation);
|
|
409
|
-
}, [sessionEventFeedStore]);
|
|
410
|
-
const [manualRepos, setManualRepos] = useState([]);
|
|
411
|
-
const [manualReposOpen, setManualReposOpen] = useState(false);
|
|
412
|
-
const [nextRepoId, setNextRepoId] = useState(1);
|
|
413
|
-
const [selectedRepoIds, setSelectedRepoIds] = useState(() => /* @__PURE__ */ new Set());
|
|
414
|
-
const [selectedRepoRefs, setSelectedRepoRefs] = useState({});
|
|
415
|
-
const [githubRepos, setGithubRepos] = useState([]);
|
|
416
|
-
const [githubStatus, setGithubStatus] = useState(null);
|
|
417
|
-
const [githubStatusFailed, setGithubStatusFailed] = useState(false);
|
|
418
|
-
const [githubCatalogReady, setGithubCatalogReady] = useState(false);
|
|
419
|
-
const [personalGitHubStatus, setPersonalGitHubStatus] = useState(null);
|
|
420
|
-
const [personalGitHubRepositories, setPersonalGitHubRepositories] = useState([]);
|
|
421
|
-
const [personalGitHubSelection, setPersonalGitHubSelection] = useState(null);
|
|
422
|
-
const [personalGitHubCatalogReady, setPersonalGitHubCatalogReady] = useState(false);
|
|
423
|
-
const [personalGitHubBusy, setPersonalGitHubBusy] = useState(false);
|
|
424
|
-
const [selectedPersonalGitHubRepoIds, setSelectedPersonalGitHubRepoIds] = useState(
|
|
425
|
-
() => /* @__PURE__ */ new Set()
|
|
426
|
-
);
|
|
427
|
-
const [selectedPersonalGitHubRepoRefs, setSelectedPersonalGitHubRepoRefs] = useState({});
|
|
428
|
-
const [personalGitHubAuthorityCache, setPersonalGitHubAuthorityCache] = useState(null);
|
|
429
|
-
const personalGitHubAuthority = personalGitHubAuthorityCache?.authority ?? null;
|
|
430
|
-
const [githubOrg, setGithubOrg] = useState("");
|
|
431
|
-
const [workspaceMcpServers, setWorkspaceMcpServers] = useState([]);
|
|
432
|
-
const [workspaceCapabilityCatalog, setWorkspaceCapabilityCatalog] = useState([]);
|
|
433
|
-
const [workspaceMemberIntegrationSetup, setWorkspaceMemberIntegrationSetup] = useState(void 0);
|
|
434
|
-
const [workspaceMcpCatalogReady, setWorkspaceMcpCatalogReady] = useState(false);
|
|
435
|
-
const [workspaceMcpCatalogLoadedSuccessfully, setWorkspaceMcpCatalogLoadedSuccessfully] = useState(false);
|
|
436
|
-
const [selectedCapabilityToolIds, setSelectedCapabilityToolIds] = useState(
|
|
437
|
-
() => /* @__PURE__ */ new Set()
|
|
438
|
-
);
|
|
439
|
-
const [workspaceStateOwnerId, setWorkspaceStateOwnerId] = useState(null);
|
|
440
|
-
const workspaceTransitionIdentity = useRef({
|
|
441
|
-
workspaceId: null,
|
|
442
|
-
revision: 0
|
|
443
|
-
});
|
|
444
|
-
const principalTransitionIdentity = useRef({
|
|
445
|
-
revision: 0
|
|
446
|
-
});
|
|
447
|
-
const workspaceOperationSequence = useRef(0);
|
|
448
|
-
const activeCreateOperation = useRef(null);
|
|
449
|
-
const githubManifestOperationSequence = useRef(0);
|
|
450
|
-
const activeGitHubManifestOperation = useRef(null);
|
|
451
|
-
const githubDisconnectOperationSequence = useRef(0);
|
|
452
|
-
const activeGitHubDisconnectOperation = useRef(null);
|
|
453
|
-
const authPrincipalIdRef = useRef(null);
|
|
454
|
-
const accessPrincipalIdRef = useRef(null);
|
|
455
|
-
const managedSelfContextIdentityRef = useRef(null);
|
|
456
|
-
const seenCapabilityToolIds = useRef(/* @__PURE__ */ new Set());
|
|
457
|
-
const githubRefreshId = useRef(0);
|
|
458
|
-
const personalGitHubRefreshId = useRef(0);
|
|
459
|
-
const githubQuietRetry = useRef(createQuietRetry());
|
|
460
|
-
const personalGitHubQuietRetry = useRef(createQuietRetry());
|
|
461
|
-
const refreshGitHubRef = useRef(async () => {
|
|
462
|
-
});
|
|
463
|
-
const refreshPersonalGitHubRef = useRef(async () => {
|
|
464
|
-
});
|
|
465
|
-
const personalGitHubReconnectToast = useRef({ shownFor: null });
|
|
466
|
-
const reconnectPersonalGitHubFromToast = useLatestCallback(
|
|
467
|
-
(workspaceId, connectionId) => void beginPersonalGitHubOAuth(workspaceId, true, connectionId)
|
|
468
|
-
);
|
|
469
|
-
useEffect(
|
|
470
|
-
() => () => {
|
|
471
|
-
githubQuietRetry.current.reset();
|
|
472
|
-
personalGitHubQuietRetry.current.reset();
|
|
473
|
-
},
|
|
474
|
-
[]
|
|
475
|
-
);
|
|
476
|
-
const mcpRefreshId = useRef(0);
|
|
477
|
-
const mcpCatalogRequests = useRef(/* @__PURE__ */ new Map());
|
|
478
|
-
const pendingCreateAttempt = useRef(null);
|
|
479
|
-
const appliedWorkspaceSessionDefaultsKey = useRef(null);
|
|
480
|
-
const appliedWorkspaceToolDefaultsKey = useRef(null);
|
|
481
|
-
const [busy, setBusy] = useState(false);
|
|
482
|
-
const [repoBusy, setRepoBusy] = useState(false);
|
|
483
|
-
const [githubAppBusy, setGithubAppBusy] = useState(false);
|
|
484
|
-
const [hasAccessKey, setHasAccessKey] = useState(() => getStoredAccessKey() !== null);
|
|
485
|
-
const [accessKeyDraft, setAccessKeyDraft] = useState("");
|
|
486
|
-
const [accessKeyVersion, setAccessKeyVersion] = useState(0);
|
|
487
|
-
const keyAuthRequired = host.authority === "app" && (clientConfig?.auth.mode === "deploymentKey" || clientConfig?.auth.mode === "configuredToken");
|
|
488
|
-
const managedAuthRequired = host.authority === "app" && clientConfig?.auth.mode === "managedSession";
|
|
489
|
-
const browserAccountsConfigured = managedAuthRequired && clientConfig?.managedAuthSessionSetMode !== "legacy";
|
|
490
|
-
const browserAccountsEnabled = browserAccountsConfigured && managedAuthBootstrapComplete;
|
|
491
|
-
const managedEmailVerificationRequired = clientConfig?.auth.mode === "managedSession" ? clientConfig.auth.emailVerificationRequired ?? true : true;
|
|
492
|
-
const managedSocialProviders = clientConfig?.auth.mode === "managedSession" ? clientConfig.auth.socialProviders ?? [] : [];
|
|
493
|
-
const managedPasskeySignIn = clientConfig?.auth.mode === "managedSession" && clientConfig.auth.passkeySignIn === true && signInPasskey !== void 0;
|
|
494
|
-
const managedPasskeySignUp = managedPasskeySignIn && clientConfig?.auth.mode === "managedSession" && clientConfig.auth.passkeySignUp === true && signUpPasskey !== void 0;
|
|
495
|
-
const managedNewSignupsEnabled = clientConfig?.auth.mode === "managedSession" ? clientConfig.auth.newSignupsEnabled !== false : true;
|
|
496
|
-
const keyAuthReady = !keyAuthRequired || hasAccessKey;
|
|
497
|
-
const managedAuthReady = !managedAuthRequired || Boolean(authSession);
|
|
498
|
-
const authReady = keyAuthReady && managedAuthReady;
|
|
499
|
-
const defaultWorkspaceId = accessContext?.defaultWorkspaceId ?? workspaces[0]?.id ?? accessContext?.workspaceGrants[0]?.workspaceId ?? null;
|
|
500
|
-
const navigate = useNavigate();
|
|
501
|
-
const hostPage = usePage();
|
|
502
|
-
const pathname = useRouterState({
|
|
503
|
-
select: (state) => state.location.pathname
|
|
504
|
-
});
|
|
505
|
-
useEffect(() => {
|
|
506
|
-
if (!browserAccountsConfigured) configureManagedActorEpoch(null);
|
|
507
|
-
return () => configureManagedActorEpoch(null);
|
|
508
|
-
}, [browserAccountsConfigured, configureManagedActorEpoch]);
|
|
509
|
-
useEffect(() => {
|
|
510
|
-
if (invalidSlackLinkQueryWorkspaceId && pathname !== `/workspaces/${encodeURIComponent(invalidSlackLinkQueryWorkspaceId)}/capabilities`) {
|
|
511
|
-
setInvalidSlackLinkQueryWorkspaceId(null);
|
|
512
|
-
}
|
|
513
|
-
}, [invalidSlackLinkQueryWorkspaceId, pathname]);
|
|
514
|
-
const client = useMemo(() => {
|
|
515
|
-
void accessKeyVersion;
|
|
516
|
-
return createOpenGeniClient(sessionChannelProjectionAuthority.beginRead);
|
|
517
|
-
}, [accessKeyVersion, createOpenGeniClient, sessionChannelProjectionAuthority]);
|
|
518
|
-
useConsoleSharedQueries(client);
|
|
519
|
-
const setSession = useCallback((value) => {
|
|
520
|
-
setSessionState((current) => {
|
|
521
|
-
const next = typeof value === "function" ? value(current) : value;
|
|
522
|
-
return sameSessionForContext(current, next) ? current : next;
|
|
523
|
-
});
|
|
524
|
-
}, []);
|
|
525
|
-
const resetSessionView = useCallback(() => {
|
|
526
|
-
setSession(null);
|
|
527
|
-
setSessionCreationHandoff(null);
|
|
528
|
-
setConnectionState("idle");
|
|
529
|
-
sessionEventFeedStore.set(null);
|
|
530
|
-
}, [sessionEventFeedStore, setSession]);
|
|
531
|
-
const resetWorkspaceIntegrations = useCallback(() => {
|
|
532
|
-
setGithubStatus(null);
|
|
533
|
-
setGithubStatusFailed(false);
|
|
534
|
-
setGithubRepos([]);
|
|
535
|
-
setGithubCatalogReady(false);
|
|
536
|
-
setPersonalGitHubStatus(null);
|
|
537
|
-
setPersonalGitHubRepositories([]);
|
|
538
|
-
setPersonalGitHubSelection(null);
|
|
539
|
-
setPersonalGitHubCatalogReady(false);
|
|
540
|
-
setPersonalGitHubAuthorityCache(null);
|
|
541
|
-
setWorkspaceMcpServers([]);
|
|
542
|
-
setWorkspaceCapabilityCatalog([]);
|
|
543
|
-
setWorkspaceMemberIntegrationSetup(void 0);
|
|
544
|
-
setWorkspaceMcpCatalogReady(false);
|
|
545
|
-
setWorkspaceMcpCatalogLoadedSuccessfully(false);
|
|
546
|
-
}, []);
|
|
547
|
-
const resetWorkspaceState = useCallback(
|
|
548
|
-
(workspaceId, force) => {
|
|
549
|
-
const previousWorkspaceId = workspaceTransitionIdentity.current.workspaceId;
|
|
550
|
-
const transition = workspaceId === null ? {
|
|
551
|
-
identity: invalidateWorkspaceTransition(workspaceTransitionIdentity.current),
|
|
552
|
-
changed: true
|
|
553
|
-
} : beginWorkspaceTransition(workspaceTransitionIdentity.current, workspaceId);
|
|
554
|
-
if (!force && !transition.changed) {
|
|
555
|
-
return;
|
|
556
|
-
}
|
|
557
|
-
workspaceTransitionIdentity.current = transition.identity;
|
|
558
|
-
if (previousWorkspaceId && (force || previousWorkspaceId !== workspaceId)) {
|
|
559
|
-
sessionChannelProjectionAuthority.clearWorkspace(previousWorkspaceId);
|
|
560
|
-
}
|
|
561
|
-
activeCreateOperation.current = null;
|
|
562
|
-
activeGitHubManifestOperation.current = null;
|
|
563
|
-
activeGitHubDisconnectOperation.current = null;
|
|
564
|
-
githubRefreshId.current += 1;
|
|
565
|
-
personalGitHubRefreshId.current += 1;
|
|
566
|
-
mcpRefreshId.current += 1;
|
|
567
|
-
pendingCreateAttempt.current = null;
|
|
568
|
-
resetSessionView();
|
|
569
|
-
setInspectorOpen(false);
|
|
570
|
-
setManualRepos([]);
|
|
571
|
-
setManualReposOpen(false);
|
|
572
|
-
setNextRepoId(1);
|
|
573
|
-
setSelectedRepoIds(/* @__PURE__ */ new Set());
|
|
574
|
-
setSelectedRepoRefs({});
|
|
575
|
-
setSelectedPersonalGitHubRepoIds(/* @__PURE__ */ new Set());
|
|
576
|
-
setSelectedPersonalGitHubRepoRefs({});
|
|
577
|
-
setSelectedCapabilityToolIds(/* @__PURE__ */ new Set());
|
|
578
|
-
seenCapabilityToolIds.current = /* @__PURE__ */ new Set();
|
|
579
|
-
appliedWorkspaceToolDefaultsKey.current = null;
|
|
580
|
-
setGithubOrg("");
|
|
581
|
-
setBusy(false);
|
|
582
|
-
setRepoBusy(false);
|
|
583
|
-
setGithubAppBusy(false);
|
|
584
|
-
setPersonalGitHubBusy(false);
|
|
585
|
-
resetWorkspaceIntegrations();
|
|
586
|
-
setWorkspaceConfig(void 0);
|
|
587
|
-
setWorkspaceStateOwnerId(workspaceId);
|
|
588
|
-
},
|
|
589
|
-
[resetSessionView, resetWorkspaceIntegrations, sessionChannelProjectionAuthority]
|
|
590
|
-
);
|
|
591
|
-
const prepareWorkspaceTransition = useCallback(
|
|
592
|
-
(workspaceId) => resetWorkspaceState(workspaceId, false),
|
|
593
|
-
[resetWorkspaceState]
|
|
594
|
-
);
|
|
595
|
-
const captureWorkspaceInvocation = useCallback(
|
|
596
|
-
(workspaceId) => {
|
|
597
|
-
const accepted = workspaceTransitionIdentity.current;
|
|
598
|
-
return ownsWorkspaceTransition(accepted, accepted, workspaceId) ? accepted : null;
|
|
599
|
-
},
|
|
600
|
-
[]
|
|
601
|
-
);
|
|
602
|
-
const ownsWorkspaceInvocation = useCallback(
|
|
603
|
-
(workspaceId, accepted) => ownsWorkspaceTransition(workspaceTransitionIdentity.current, accepted, workspaceId),
|
|
604
|
-
[]
|
|
605
|
-
);
|
|
606
|
-
const clientConfigurationReady = clientConfig !== null;
|
|
607
|
-
useEffect(() => {
|
|
608
|
-
if (!clientConfigurationReady || !authReady || !workspaceStateOwnerId) return;
|
|
609
|
-
const workspaceId = workspaceStateOwnerId;
|
|
610
|
-
const accepted = captureWorkspaceInvocation(workspaceId);
|
|
611
|
-
if (!accepted) return;
|
|
612
|
-
return startWorkspaceClientConfigRefresh({
|
|
613
|
-
read: (signal) => fetchClientConfig(signal, workspaceId),
|
|
614
|
-
ownsWorkspace: () => ownsWorkspaceInvocation(workspaceId, accepted),
|
|
615
|
-
apply: setWorkspaceConfig,
|
|
616
|
-
subscribeFocus: (refresh) => {
|
|
617
|
-
window.addEventListener("focus", refresh);
|
|
618
|
-
return () => window.removeEventListener("focus", refresh);
|
|
619
|
-
}
|
|
620
|
-
});
|
|
621
|
-
}, [
|
|
622
|
-
fetchClientConfig,
|
|
623
|
-
clientConfigurationReady,
|
|
624
|
-
authReady,
|
|
625
|
-
workspaceStateOwnerId,
|
|
626
|
-
workspaceConfigVersion,
|
|
627
|
-
accessContext?.subjectId,
|
|
628
|
-
accessKeyVersion,
|
|
629
|
-
captureWorkspaceInvocation,
|
|
630
|
-
ownsWorkspaceInvocation
|
|
631
|
-
]);
|
|
632
|
-
const refreshWorkspaceConfig = useCallback(
|
|
633
|
-
() => setWorkspaceConfigVersion((version) => version + 1),
|
|
634
|
-
[]
|
|
635
|
-
);
|
|
636
|
-
const invalidatePrincipalWorkspaceState = useCallback(
|
|
637
|
-
(options) => {
|
|
638
|
-
principalTransitionIdentity.current = invalidatePrincipalTransition(
|
|
639
|
-
principalTransitionIdentity.current
|
|
640
|
-
);
|
|
641
|
-
authPrincipalIdRef.current = null;
|
|
642
|
-
accessPrincipalIdRef.current = null;
|
|
643
|
-
managedSelfContextIdentityRef.current = null;
|
|
644
|
-
setManagedSelfContext(null);
|
|
645
|
-
if (options?.preservePendingSlackLink !== true) {
|
|
646
|
-
slackLink.clear();
|
|
647
|
-
setSlackLinkContinuationWorkspaceId(null);
|
|
648
|
-
setSlackLinkLinkedWorkspaceId(null);
|
|
649
|
-
}
|
|
650
|
-
resetWorkspaceState(null, true);
|
|
651
|
-
},
|
|
652
|
-
[resetWorkspaceState, slackLink]
|
|
653
|
-
);
|
|
654
|
-
useEffect(() => {
|
|
655
|
-
if (appStateOptions.bootstrapSuspended) return;
|
|
656
|
-
let cancelled = false;
|
|
657
|
-
let stopDeploymentRefresh = () => {
|
|
658
|
-
};
|
|
659
|
-
const controller = new AbortController();
|
|
660
|
-
void Promise.resolve().then(
|
|
661
|
-
() => readBootstrap({
|
|
662
|
-
context: "client_configuration",
|
|
663
|
-
request: () => fetchClientConfig(controller.signal),
|
|
664
|
-
signal: controller.signal,
|
|
665
|
-
// An update parks the API for a while: say so calmly and continue
|
|
666
|
-
// on our own as soon as it answers.
|
|
667
|
-
waiting: {
|
|
668
|
-
onWaiting: (error, elapsedMs) => {
|
|
669
|
-
if (!cancelled) {
|
|
670
|
-
setConfigError(
|
|
671
|
-
bootstrapWaitingPresentation(error, "client_configuration", elapsedMs)
|
|
672
|
-
);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
})
|
|
677
|
-
).then((config) => {
|
|
678
|
-
if (cancelled) {
|
|
679
|
-
return;
|
|
680
|
-
}
|
|
681
|
-
setClientConfig(config);
|
|
682
|
-
setConfigError(null);
|
|
683
|
-
setModel(config.defaultModel);
|
|
684
|
-
setReasoningEffort(initialReasoningEffort(config));
|
|
685
|
-
setLatencyMode("standard");
|
|
686
|
-
if (checkDeploymentRevision) {
|
|
687
|
-
stopDeploymentRefresh = startDeploymentRefresh(checkDeploymentRevision);
|
|
688
|
-
}
|
|
689
|
-
}).catch((error) => {
|
|
690
|
-
if (cancelled) {
|
|
691
|
-
return;
|
|
692
|
-
}
|
|
693
|
-
const presentation = bootstrapErrorPresentation(error, "client_configuration");
|
|
694
|
-
setConfigError(presentation);
|
|
695
|
-
});
|
|
696
|
-
return () => {
|
|
697
|
-
cancelled = true;
|
|
698
|
-
controller.abort();
|
|
699
|
-
stopDeploymentRefresh();
|
|
700
|
-
};
|
|
701
|
-
}, [
|
|
702
|
-
checkDeploymentRevision,
|
|
703
|
-
configRequestVersion,
|
|
704
|
-
fetchClientConfig,
|
|
705
|
-
appStateOptions.bootstrapSuspended
|
|
706
|
-
]);
|
|
707
|
-
useEffect(() => {
|
|
708
|
-
if (!clientConfig) {
|
|
709
|
-
setManagedAuthBootstrapComplete(false);
|
|
710
|
-
return;
|
|
711
|
-
}
|
|
712
|
-
if (!managedAuthRequired) {
|
|
713
|
-
if (authPrincipalIdRef.current !== null) {
|
|
714
|
-
invalidatePrincipalWorkspaceState();
|
|
715
|
-
}
|
|
716
|
-
setAuthSession(null);
|
|
717
|
-
setManagedAuthBootstrapComplete(true);
|
|
718
|
-
return;
|
|
719
|
-
}
|
|
720
|
-
let cancelled = false;
|
|
721
|
-
const acceptedPrincipal = principalTransitionIdentity.current;
|
|
722
|
-
const controller = new AbortController();
|
|
723
|
-
setManagedAuthBootstrapComplete(false);
|
|
724
|
-
setAuthSession(void 0);
|
|
725
|
-
void readBootstrap({
|
|
726
|
-
context: "client_configuration",
|
|
727
|
-
request: fetchAuthSession,
|
|
728
|
-
signal: controller.signal,
|
|
729
|
-
waiting: {
|
|
730
|
-
onWaiting: (error, elapsedMs) => {
|
|
731
|
-
if (!cancelled) {
|
|
732
|
-
setConfigError(bootstrapWaitingPresentation(error, "client_configuration", elapsedMs));
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
}).then((nextSession) => {
|
|
737
|
-
if (cancelled || !ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
738
|
-
return;
|
|
739
|
-
}
|
|
740
|
-
setConfigError((current) => current?.recovering ? null : current);
|
|
741
|
-
const nextPrincipalId = nextSession?.user.id ?? null;
|
|
742
|
-
if (authPrincipalIdRef.current !== null && authPrincipalIdRef.current !== nextPrincipalId) {
|
|
743
|
-
invalidatePrincipalWorkspaceState();
|
|
744
|
-
}
|
|
745
|
-
authPrincipalIdRef.current = nextPrincipalId;
|
|
746
|
-
observeSocialLoginResult(nextSession);
|
|
747
|
-
setAuthSession(nextSession);
|
|
748
|
-
setManagedAuthBootstrapComplete(true);
|
|
749
|
-
}).catch(() => {
|
|
750
|
-
if (cancelled || !ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
751
|
-
return;
|
|
752
|
-
}
|
|
753
|
-
setConfigError((current) => current?.recovering ? null : current);
|
|
754
|
-
setAuthSession(null);
|
|
755
|
-
setManagedAuthBootstrapComplete(true);
|
|
756
|
-
});
|
|
757
|
-
return () => {
|
|
758
|
-
cancelled = true;
|
|
759
|
-
controller.abort();
|
|
760
|
-
};
|
|
761
|
-
}, [clientConfig, fetchAuthSession, managedAuthRequired, invalidatePrincipalWorkspaceState]);
|
|
762
|
-
useEffect(() => {
|
|
763
|
-
if (!subscribeSignInLost || !managedAuthRequired || !authSession) return;
|
|
764
|
-
const signedInUserId = authSession.user.id;
|
|
765
|
-
const acceptedPrincipal = principalTransitionIdentity.current;
|
|
766
|
-
const checksPrincipal = !browserAccountsConfigured;
|
|
767
|
-
let cancelled = false;
|
|
768
|
-
let checking = false;
|
|
769
|
-
let lastPrincipalCheckAt = 0;
|
|
770
|
-
const check = (reason) => {
|
|
771
|
-
if (cancelled || checking) return;
|
|
772
|
-
if (reason !== "signed_out") {
|
|
773
|
-
if (!checksPrincipal) return;
|
|
774
|
-
const now = Date.now();
|
|
775
|
-
if (now - lastPrincipalCheckAt < PRINCIPAL_RECHECK_INTERVAL_MS) return;
|
|
776
|
-
lastPrincipalCheckAt = now;
|
|
777
|
-
}
|
|
778
|
-
checking = true;
|
|
779
|
-
void fetchAuthSession().then((current) => {
|
|
780
|
-
if (cancelled || !ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal) || current?.user.id === signedInUserId) {
|
|
781
|
-
return;
|
|
782
|
-
}
|
|
783
|
-
invalidatePrincipalWorkspaceState();
|
|
784
|
-
authPrincipalIdRef.current = current?.user.id ?? null;
|
|
785
|
-
if (current) {
|
|
786
|
-
cancelled = true;
|
|
787
|
-
forgetSignedOutBrowserData();
|
|
788
|
-
void prepareRecordingsForSignOut(null, { ask: false }).finally(() => {
|
|
789
|
-
rememberRouteRecoveryNotice("account_changed");
|
|
790
|
-
hostPage.assign("/", { replace: true });
|
|
791
|
-
});
|
|
792
|
-
return;
|
|
793
|
-
}
|
|
794
|
-
setAuthSession(current);
|
|
795
|
-
}).catch(() => void 0).finally(() => {
|
|
796
|
-
checking = false;
|
|
797
|
-
});
|
|
798
|
-
};
|
|
799
|
-
const unsubscribe = subscribeSignInLost((reason) => check(reason ?? "signed_out"));
|
|
800
|
-
const onVisible = () => {
|
|
801
|
-
if (document.visibilityState === "visible") check("visible");
|
|
802
|
-
};
|
|
803
|
-
const onFocus = () => check("visible");
|
|
804
|
-
if (checksPrincipal && typeof window !== "undefined") {
|
|
805
|
-
window.addEventListener("focus", onFocus);
|
|
806
|
-
document.addEventListener("visibilitychange", onVisible);
|
|
807
|
-
}
|
|
808
|
-
return () => {
|
|
809
|
-
cancelled = true;
|
|
810
|
-
unsubscribe();
|
|
811
|
-
if (checksPrincipal && typeof window !== "undefined") {
|
|
812
|
-
window.removeEventListener("focus", onFocus);
|
|
813
|
-
document.removeEventListener("visibilitychange", onVisible);
|
|
814
|
-
}
|
|
815
|
-
};
|
|
816
|
-
}, [
|
|
817
|
-
subscribeSignInLost,
|
|
818
|
-
managedAuthRequired,
|
|
819
|
-
authSession,
|
|
820
|
-
fetchAuthSession,
|
|
821
|
-
invalidatePrincipalWorkspaceState,
|
|
822
|
-
browserAccountsConfigured,
|
|
823
|
-
hostPage
|
|
824
|
-
]);
|
|
825
|
-
useEffect(() => {
|
|
826
|
-
if (!clientConfig || !authReady) {
|
|
827
|
-
setAccessContext(null);
|
|
828
|
-
setWorkspaces([]);
|
|
829
|
-
managedSelfContextIdentityRef.current = null;
|
|
830
|
-
setManagedSelfContext(null);
|
|
831
|
-
setAccessLoading(false);
|
|
832
|
-
setAccessError(null);
|
|
833
|
-
return;
|
|
834
|
-
}
|
|
835
|
-
let cancelled = false;
|
|
836
|
-
let acceptedPrincipal = principalTransitionIdentity.current;
|
|
837
|
-
const acceptedManagedIdentity = managedAuthRequired && authSession ? managedSelfContextIdentity({
|
|
838
|
-
credentialGeneration: accessKeyVersion,
|
|
839
|
-
managedUserId: authSession.user.id
|
|
840
|
-
}) : null;
|
|
841
|
-
managedSelfContextIdentityRef.current = acceptedManagedIdentity;
|
|
842
|
-
setManagedSelfContext(null);
|
|
843
|
-
setAccessLoading(true);
|
|
844
|
-
setAccessError((current) => current?.recovering ? current : null);
|
|
845
|
-
const controller = new AbortController();
|
|
846
|
-
const readAccess = (request) => readBootstrap({
|
|
847
|
-
context: "workspace_access",
|
|
848
|
-
request,
|
|
849
|
-
signal: controller.signal,
|
|
850
|
-
isCurrent: () => ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal),
|
|
851
|
-
waiting: {
|
|
852
|
-
onWaiting: (error, elapsedMs) => {
|
|
853
|
-
if (!cancelled && ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
854
|
-
setAccessError(bootstrapWaitingPresentation(error, "workspace_access", elapsedMs));
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
});
|
|
859
|
-
const selfContextPromise = acceptedManagedIdentity ? loadCurrentManagedSelfContext({
|
|
860
|
-
identity: acceptedManagedIdentity,
|
|
861
|
-
currentIdentity: () => managedSelfContextIdentityRef.current,
|
|
862
|
-
request: () => readAccess(() => client.listOrganizationMemberships())
|
|
863
|
-
}) : Promise.resolve(null);
|
|
864
|
-
void Promise.all([
|
|
865
|
-
readAccess(() => client.getAccessContext()),
|
|
866
|
-
readAccess(() => client.listWorkspaces()),
|
|
867
|
-
selfContextPromise
|
|
868
|
-
]).then(([context, nextWorkspaces, nextManagedSelfContext]) => {
|
|
869
|
-
if (cancelled || !ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
870
|
-
return;
|
|
871
|
-
}
|
|
872
|
-
setAccessError((current) => current?.recovering ? null : current);
|
|
873
|
-
if (acceptedManagedIdentity && nextManagedSelfContext === null) {
|
|
874
|
-
return;
|
|
875
|
-
}
|
|
876
|
-
if (nextManagedSelfContext && context.subjectId !== nextManagedSelfContext.identity.subjectId) {
|
|
877
|
-
throw new Error("managed self context did not match the authenticated subject");
|
|
878
|
-
}
|
|
879
|
-
if (accessPrincipalIdRef.current !== null && accessPrincipalIdRef.current !== context.subjectId) {
|
|
880
|
-
invalidatePrincipalWorkspaceState();
|
|
881
|
-
acceptedPrincipal = principalTransitionIdentity.current;
|
|
882
|
-
managedSelfContextIdentityRef.current = acceptedManagedIdentity;
|
|
883
|
-
}
|
|
884
|
-
accessPrincipalIdRef.current = context.subjectId;
|
|
885
|
-
claimHumanInputDraftOwner(context.subjectId);
|
|
886
|
-
setAccessContext(context);
|
|
887
|
-
setWorkspaces(nextWorkspaces);
|
|
888
|
-
setManagedSelfContext(nextManagedSelfContext);
|
|
889
|
-
}).catch((error) => {
|
|
890
|
-
if (cancelled || !ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
891
|
-
return;
|
|
892
|
-
}
|
|
893
|
-
const presentation = bootstrapErrorPresentation(error, "workspace_access");
|
|
894
|
-
controller.abort();
|
|
895
|
-
setAccessContext(null);
|
|
896
|
-
setWorkspaces([]);
|
|
897
|
-
setAccessError(presentation);
|
|
898
|
-
}).finally(() => {
|
|
899
|
-
if (!cancelled && ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
900
|
-
setAccessLoading(false);
|
|
901
|
-
}
|
|
902
|
-
});
|
|
903
|
-
return () => {
|
|
904
|
-
cancelled = true;
|
|
905
|
-
if (managedSelfContextIdentityRef.current === acceptedManagedIdentity) {
|
|
906
|
-
managedSelfContextIdentityRef.current = null;
|
|
907
|
-
}
|
|
908
|
-
controller.abort();
|
|
909
|
-
};
|
|
910
|
-
}, [
|
|
911
|
-
accessKeyVersion,
|
|
912
|
-
authSession,
|
|
913
|
-
clientConfig,
|
|
914
|
-
authReady,
|
|
915
|
-
client,
|
|
916
|
-
managedAuthRequired,
|
|
917
|
-
invalidatePrincipalWorkspaceState
|
|
918
|
-
]);
|
|
919
|
-
useEffect(() => {
|
|
920
|
-
if (!accessContext) return;
|
|
921
|
-
const workspaceId = /^\/workspaces\/([^/]+)/.exec(pathname)?.[1] ?? null;
|
|
922
|
-
if (!isAuthorizedWorkspaceId(workspaceId, workspaces, accessContext)) return;
|
|
923
|
-
writeLastWorkspaceId(
|
|
924
|
-
workspaceNavigationPreferenceStorageId(accessContext.subjectId),
|
|
925
|
-
workspaceId
|
|
926
|
-
);
|
|
927
|
-
const accountId = workspaces.find((workspace) => workspace.id === workspaceId)?.accountId;
|
|
928
|
-
if (accountId) {
|
|
929
|
-
writeLastWorkspaceIdForOrganization(
|
|
930
|
-
organizationWorkspacePreferenceStorageId(accessContext.subjectId),
|
|
931
|
-
accountId,
|
|
932
|
-
workspaceId
|
|
933
|
-
);
|
|
934
|
-
}
|
|
935
|
-
}, [accessContext, pathname, workspaces]);
|
|
936
|
-
useEffect(() => {
|
|
937
|
-
if (!clientConfig) return;
|
|
938
|
-
const workspaceId = /^\/workspaces\/([^/]+)/.exec(pathname)?.[1] ?? null;
|
|
939
|
-
if (!workspaceId) return;
|
|
940
|
-
const workspace = workspaces.find((candidate) => candidate.id === workspaceId);
|
|
941
|
-
if (!workspace) return;
|
|
942
|
-
const configured = resolveWorkspaceSessionDefaults(workspace.settings);
|
|
943
|
-
const nextModel = configured?.model ?? clientConfig.defaultModel;
|
|
944
|
-
const nextEffort = configured?.reasoningEffort ?? initialReasoningEffort(clientConfig);
|
|
945
|
-
const key = `${workspaceId}\0${nextModel}\0${nextEffort}`;
|
|
946
|
-
if (appliedWorkspaceSessionDefaultsKey.current === key) return;
|
|
947
|
-
appliedWorkspaceSessionDefaultsKey.current = key;
|
|
948
|
-
setModel(nextModel);
|
|
949
|
-
setReasoningEffort(nextEffort);
|
|
950
|
-
setLatencyMode("standard");
|
|
951
|
-
}, [clientConfig, pathname, workspaces]);
|
|
952
|
-
const repositoryGroups = useMemo(() => groupRepositories(githubRepos), [githubRepos]);
|
|
953
|
-
const toolMcpServers = useMemo(
|
|
954
|
-
() => mergeMcpServerOptions(selectableMcpServers(clientConfig), workspaceMcpServers),
|
|
955
|
-
[clientConfig, workspaceMcpServers]
|
|
956
|
-
);
|
|
957
|
-
const routedWorkspaceId = /^\/workspaces\/([^/]+)/.exec(pathname)?.[1] ?? null;
|
|
958
|
-
const routedWorkspace = workspaces.find((workspace) => workspace.id === routedWorkspaceId) ?? null;
|
|
959
|
-
const configuredWorkspaceToolDefaults = useMemo(
|
|
960
|
-
() => resolveWorkspaceSessionToolDefaults(routedWorkspace?.settings),
|
|
961
|
-
[routedWorkspace?.settings]
|
|
962
|
-
);
|
|
963
|
-
const workspaceDefaultToolIds = useMemo(() => {
|
|
964
|
-
const available = new Set(toolMcpServers.map((server) => server.id));
|
|
965
|
-
const configured = configuredWorkspaceToolDefaults?.mcpServerIds;
|
|
966
|
-
return configured ? [
|
|
967
|
-
.../* @__PURE__ */ new Set([
|
|
968
|
-
...configured.filter((id) => available.has(id)),
|
|
969
|
-
...configuredWorkspaceToolDefaults?.inheritConnectedMcpServers ? toolMcpServers.filter((server) => !["opengeni", "files", "docs"].includes(server.id)).map((server) => server.id) : []
|
|
970
|
-
])
|
|
971
|
-
] : toolMcpServers.map((server) => server.id);
|
|
972
|
-
}, [configuredWorkspaceToolDefaults, toolMcpServers]);
|
|
973
|
-
const lastValidResources = useRef([]);
|
|
974
|
-
const repositoryBuild = useMemo(() => {
|
|
975
|
-
try {
|
|
976
|
-
return {
|
|
977
|
-
resources: buildResources(
|
|
978
|
-
manualRepos,
|
|
979
|
-
githubRepos,
|
|
980
|
-
selectedRepoIds,
|
|
981
|
-
selectedRepoRefs,
|
|
982
|
-
personalGitHubRepositories,
|
|
983
|
-
selectedPersonalGitHubRepoIds,
|
|
984
|
-
selectedPersonalGitHubRepoRefs,
|
|
985
|
-
personalGitHubSelection?.credentialBindingId ?? null
|
|
986
|
-
),
|
|
987
|
-
error: null
|
|
988
|
-
};
|
|
989
|
-
} catch (error) {
|
|
990
|
-
return {
|
|
991
|
-
resources: lastValidResources.current,
|
|
992
|
-
error: errorMessage(error)
|
|
993
|
-
};
|
|
994
|
-
}
|
|
995
|
-
}, [
|
|
996
|
-
manualRepos,
|
|
997
|
-
githubRepos,
|
|
998
|
-
selectedRepoIds,
|
|
999
|
-
selectedRepoRefs,
|
|
1000
|
-
personalGitHubRepositories,
|
|
1001
|
-
selectedPersonalGitHubRepoIds,
|
|
1002
|
-
selectedPersonalGitHubRepoRefs,
|
|
1003
|
-
personalGitHubSelection?.credentialBindingId
|
|
1004
|
-
]);
|
|
1005
|
-
useEffect(() => {
|
|
1006
|
-
if (!repositoryBuild.error) lastValidResources.current = repositoryBuild.resources;
|
|
1007
|
-
}, [repositoryBuild]);
|
|
1008
|
-
useManualRepositoryCatalogReconciliation({
|
|
1009
|
-
manualRepos,
|
|
1010
|
-
selectedRepoIds,
|
|
1011
|
-
selectedRepoRefs,
|
|
1012
|
-
repositories: githubRepos,
|
|
1013
|
-
catalogReady: githubCatalogReady,
|
|
1014
|
-
personalRepositories: personalGitHubRepositories,
|
|
1015
|
-
selectedPersonalRepoIds: selectedPersonalGitHubRepoIds,
|
|
1016
|
-
selectedPersonalRepoRefs: selectedPersonalGitHubRepoRefs,
|
|
1017
|
-
setManualRepos,
|
|
1018
|
-
setSelectedRepoIds,
|
|
1019
|
-
setSelectedRepoRefs
|
|
1020
|
-
});
|
|
1021
|
-
const currentResources = repositoryBuild.resources;
|
|
1022
|
-
const repositoryValidationError = repositoryBuild.error;
|
|
1023
|
-
useCapabilityToolDefaults({
|
|
1024
|
-
principalKey: JSON.stringify(principalTransitionIdentity.current),
|
|
1025
|
-
ready: clientConfig !== null && !/^\/workspaces\/[^/]+\/sessions\/?$/.test(pathname),
|
|
1026
|
-
workspaceId: routedWorkspaceId,
|
|
1027
|
-
configuredIds: configuredWorkspaceToolDefaults?.mcpServerIds,
|
|
1028
|
-
availableIds: toolMcpServers.map((server) => server.id),
|
|
1029
|
-
defaultIds: workspaceDefaultToolIds,
|
|
1030
|
-
appliedKey: appliedWorkspaceToolDefaultsKey,
|
|
1031
|
-
seenIds: seenCapabilityToolIds,
|
|
1032
|
-
setSelected: setSelectedCapabilityToolIds
|
|
1033
|
-
});
|
|
1034
|
-
async function createWorkspace(request) {
|
|
1035
|
-
const acceptedTransition = workspaceTransitionIdentity.current;
|
|
1036
|
-
const ownsInvocation = () => ownsTransitionInvocation(workspaceTransitionIdentity.current, acceptedTransition);
|
|
1037
|
-
let created;
|
|
1038
|
-
try {
|
|
1039
|
-
const creation = await runCurrentTransitionInvocation({
|
|
1040
|
-
isCurrent: ownsInvocation,
|
|
1041
|
-
request: async () => await client.createWorkspace(request)
|
|
1042
|
-
});
|
|
1043
|
-
if (creation.status === "stale") return null;
|
|
1044
|
-
created = creation.value;
|
|
1045
|
-
} catch (error) {
|
|
1046
|
-
toast.error("Failed to create workspace", {
|
|
1047
|
-
description: userErrorText(error)
|
|
1048
|
-
});
|
|
1049
|
-
return null;
|
|
1050
|
-
}
|
|
1051
|
-
setWorkspaces((current) => upsertWorkspace(current, created));
|
|
1052
|
-
captureProductEvent("workspace_created", {
|
|
1053
|
-
$insert_id: `workspace_created:${created.id}`,
|
|
1054
|
-
account_id: created.accountId,
|
|
1055
|
-
workspace_id: created.id
|
|
1056
|
-
});
|
|
1057
|
-
try {
|
|
1058
|
-
const accessRefresh = await runCurrentTransitionInvocation({
|
|
1059
|
-
isCurrent: ownsInvocation,
|
|
1060
|
-
request: async () => await client.getAccessContext()
|
|
1061
|
-
});
|
|
1062
|
-
if (accessRefresh.status === "stale") return null;
|
|
1063
|
-
claimHumanInputDraftOwner(accessRefresh.value.subjectId);
|
|
1064
|
-
setAccessContext(accessRefresh.value);
|
|
1065
|
-
} catch {
|
|
1066
|
-
toast.warning("Permissions may be out of date", {
|
|
1067
|
-
description: "Reload if something looks off."
|
|
1068
|
-
});
|
|
1069
|
-
}
|
|
1070
|
-
return created;
|
|
1071
|
-
}
|
|
1072
|
-
async function renameWorkspace(workspaceId, name) {
|
|
1073
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1074
|
-
if (!acceptedTransition) return null;
|
|
1075
|
-
try {
|
|
1076
|
-
const update = await runCurrentTransitionInvocation({
|
|
1077
|
-
isCurrent: () => ownsWorkspaceInvocation(workspaceId, acceptedTransition),
|
|
1078
|
-
request: async () => await client.updateWorkspace(workspaceId, { name })
|
|
1079
|
-
});
|
|
1080
|
-
if (update.status === "stale") return null;
|
|
1081
|
-
setWorkspaces((current) => upsertWorkspace(current, update.value));
|
|
1082
|
-
return update.value;
|
|
1083
|
-
} catch (error) {
|
|
1084
|
-
toast.error("Failed to rename workspace", {
|
|
1085
|
-
description: userErrorText(error)
|
|
1086
|
-
});
|
|
1087
|
-
return null;
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
async function setWorkspaceInferenceControl(workspaceId, action) {
|
|
1091
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1092
|
-
if (!acceptedTransition) return false;
|
|
1093
|
-
const current = workspaces.find((workspace) => workspace.id === workspaceId);
|
|
1094
|
-
const update = await runCurrentTransitionInvocation({
|
|
1095
|
-
isCurrent: () => ownsWorkspaceInvocation(workspaceId, acceptedTransition),
|
|
1096
|
-
request: async () => await client.setWorkspaceInferenceState(workspaceId, {
|
|
1097
|
-
action,
|
|
1098
|
-
clientEventId: crypto.randomUUID(),
|
|
1099
|
-
...current ? { expectedRevision: current.inferenceControl.revision } : {}
|
|
1100
|
-
})
|
|
1101
|
-
});
|
|
1102
|
-
if (update.status === "stale") return false;
|
|
1103
|
-
const response = update.value;
|
|
1104
|
-
setWorkspaces(
|
|
1105
|
-
(all) => all.map(
|
|
1106
|
-
(workspace) => workspace.id === workspaceId ? {
|
|
1107
|
-
...workspace,
|
|
1108
|
-
inferenceControl: {
|
|
1109
|
-
state: response.state,
|
|
1110
|
-
revision: response.revision,
|
|
1111
|
-
reason: null,
|
|
1112
|
-
changedBy: null,
|
|
1113
|
-
changedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
1114
|
-
}
|
|
1115
|
-
} : workspace
|
|
1116
|
-
)
|
|
1117
|
-
);
|
|
1118
|
-
return true;
|
|
1119
|
-
}
|
|
1120
|
-
const refreshWorkspace = useCallback(
|
|
1121
|
-
async (workspaceId) => {
|
|
1122
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1123
|
-
if (!acceptedTransition) return;
|
|
1124
|
-
const refresh = await runCurrentTransitionInvocation({
|
|
1125
|
-
isCurrent: () => ownsWorkspaceInvocation(workspaceId, acceptedTransition),
|
|
1126
|
-
request: async () => await client.getWorkspace(workspaceId)
|
|
1127
|
-
});
|
|
1128
|
-
if (refresh.status === "stale") return;
|
|
1129
|
-
setWorkspaces((current) => upsertWorkspace(current, refresh.value));
|
|
1130
|
-
},
|
|
1131
|
-
[captureWorkspaceInvocation, client, ownsWorkspaceInvocation]
|
|
1132
|
-
);
|
|
1133
|
-
async function updateWorkspaceSettings(workspaceId, settings) {
|
|
1134
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1135
|
-
if (!acceptedTransition) return null;
|
|
1136
|
-
try {
|
|
1137
|
-
const update = await runCurrentTransitionInvocation({
|
|
1138
|
-
isCurrent: () => ownsWorkspaceInvocation(workspaceId, acceptedTransition),
|
|
1139
|
-
request: async () => await client.updateWorkspaceSettings(workspaceId, settings)
|
|
1140
|
-
});
|
|
1141
|
-
if (update.status === "stale") return null;
|
|
1142
|
-
setWorkspaces((current) => upsertWorkspace(current, update.value));
|
|
1143
|
-
return update.value;
|
|
1144
|
-
} catch (error) {
|
|
1145
|
-
toast.error("Failed to update workspace settings", {
|
|
1146
|
-
description: userErrorText(error)
|
|
1147
|
-
});
|
|
1148
|
-
return null;
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
async function setWorkspaceDefaultRig(workspaceId, rigId) {
|
|
1152
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1153
|
-
if (!acceptedTransition) return null;
|
|
1154
|
-
try {
|
|
1155
|
-
const update = await runCurrentTransitionInvocation({
|
|
1156
|
-
isCurrent: () => ownsWorkspaceInvocation(workspaceId, acceptedTransition),
|
|
1157
|
-
request: async () => await client.setWorkspaceDefaultRig(workspaceId, {
|
|
1158
|
-
rigId
|
|
1159
|
-
})
|
|
1160
|
-
});
|
|
1161
|
-
if (update.status === "stale") return null;
|
|
1162
|
-
setWorkspaces((current) => upsertWorkspace(current, update.value));
|
|
1163
|
-
return update.value;
|
|
1164
|
-
} catch (error) {
|
|
1165
|
-
toast.error("Failed to update the workspace default sandbox environment", {
|
|
1166
|
-
description: userErrorText(error)
|
|
1167
|
-
});
|
|
1168
|
-
return null;
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
async function updateSessionTitle(workspaceId, sessionId, title) {
|
|
1172
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1173
|
-
if (!acceptedTransition) return null;
|
|
1174
|
-
try {
|
|
1175
|
-
const update = await runCurrentTransitionInvocation({
|
|
1176
|
-
isCurrent: () => ownsWorkspaceInvocation(workspaceId, acceptedTransition),
|
|
1177
|
-
request: async () => await client.updateSession(workspaceId, sessionId, {
|
|
1178
|
-
title
|
|
1179
|
-
})
|
|
1180
|
-
});
|
|
1181
|
-
if (update.status === "stale") return null;
|
|
1182
|
-
const updated = update.value;
|
|
1183
|
-
setSession(
|
|
1184
|
-
(current) => current && current.id === updated.id ? {
|
|
1185
|
-
...current,
|
|
1186
|
-
title: updated.title,
|
|
1187
|
-
titleSource: updated.titleSource
|
|
1188
|
-
} : current
|
|
1189
|
-
);
|
|
1190
|
-
return updated;
|
|
1191
|
-
} catch (error) {
|
|
1192
|
-
toast.error("Failed to rename session", {
|
|
1193
|
-
description: userErrorText(error)
|
|
1194
|
-
});
|
|
1195
|
-
return null;
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
async function updateSessionProfile(workspaceId, sessionId, change) {
|
|
1199
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1200
|
-
if (!acceptedTransition) return null;
|
|
1201
|
-
const update = await runCurrentTransitionInvocation({
|
|
1202
|
-
isCurrent: () => ownsWorkspaceInvocation(workspaceId, acceptedTransition),
|
|
1203
|
-
request: async () => await client.updateSession(workspaceId, sessionId, change)
|
|
1204
|
-
});
|
|
1205
|
-
if (update.status === "stale") return null;
|
|
1206
|
-
const updated = update.value;
|
|
1207
|
-
setSession(
|
|
1208
|
-
(current) => current && current.id === updated.id ? {
|
|
1209
|
-
...current,
|
|
1210
|
-
title: updated.title,
|
|
1211
|
-
titleSource: updated.titleSource,
|
|
1212
|
-
description: updated.description ?? null,
|
|
1213
|
-
avatar: updated.avatar ?? null
|
|
1214
|
-
} : current
|
|
1215
|
-
);
|
|
1216
|
-
return updated;
|
|
1217
|
-
}
|
|
1218
|
-
async function updateSessionPin(workspaceId, sessionId, pinned, expectedVersion) {
|
|
1219
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1220
|
-
if (!acceptedTransition) return null;
|
|
1221
|
-
const ownsInvocation = () => ownsWorkspaceInvocation(workspaceId, acceptedTransition);
|
|
1222
|
-
const before = session;
|
|
1223
|
-
const optimisticVersion = (expectedVersion ?? before?.pinVersion ?? 0) + 1;
|
|
1224
|
-
const optimistic = before && before.id === sessionId ? {
|
|
1225
|
-
...before,
|
|
1226
|
-
pinned,
|
|
1227
|
-
pinnedAt: pinned ? (/* @__PURE__ */ new Date()).toISOString() : null,
|
|
1228
|
-
pinVersion: optimisticVersion
|
|
1229
|
-
} : null;
|
|
1230
|
-
if (optimistic) {
|
|
1231
|
-
setSession(optimistic);
|
|
1232
|
-
}
|
|
1233
|
-
try {
|
|
1234
|
-
const update = await runCurrentTransitionInvocation({
|
|
1235
|
-
isCurrent: ownsInvocation,
|
|
1236
|
-
request: async () => await client.updateSessionPin(workspaceId, sessionId, {
|
|
1237
|
-
pinned,
|
|
1238
|
-
...expectedVersion !== void 0 ? { expectedVersion } : {}
|
|
1239
|
-
})
|
|
1240
|
-
});
|
|
1241
|
-
if (update.status === "stale") return null;
|
|
1242
|
-
const updated = update.value;
|
|
1243
|
-
setSession((current) => applySessionPinProjection(current, updated));
|
|
1244
|
-
notifySessionPinChanged(workspaceId, sessionId);
|
|
1245
|
-
return updated;
|
|
1246
|
-
} catch (error) {
|
|
1247
|
-
const reconciliation = await runCurrentTransitionInvocation({
|
|
1248
|
-
isCurrent: ownsInvocation,
|
|
1249
|
-
request: async () => await client.getSession(workspaceId, sessionId, { fresh: true }).catch(() => null)
|
|
1250
|
-
});
|
|
1251
|
-
if (reconciliation.status === "stale") return null;
|
|
1252
|
-
const authoritative = reconciliation.value;
|
|
1253
|
-
if (authoritative) {
|
|
1254
|
-
setSession((current) => reconcileFailedSessionPin(current, optimistic, authoritative));
|
|
1255
|
-
notifySessionPinChanged(workspaceId, sessionId);
|
|
1256
|
-
if (Boolean(authoritative.pinned) === pinned) {
|
|
1257
|
-
return authoritative;
|
|
1258
|
-
}
|
|
1259
|
-
} else if (optimistic) {
|
|
1260
|
-
setSession(
|
|
1261
|
-
(current) => current?.id === sessionId && Boolean(current.pinned) === Boolean(optimistic.pinned) && (current.pinnedAt ?? null) === (optimistic.pinnedAt ?? null) && (current.pinVersion ?? 0) === (optimistic.pinVersion ?? 0) ? before : current
|
|
1262
|
-
);
|
|
1263
|
-
}
|
|
1264
|
-
toast.error(
|
|
1265
|
-
error instanceof OpenGeniApiError && error.status === 409 ? "Session pin changed elsewhere" : `Couldn't ${pinned ? "pin" : "unpin"} session`,
|
|
1266
|
-
{
|
|
1267
|
-
description: userErrorText(error)
|
|
1268
|
-
}
|
|
1269
|
-
);
|
|
1270
|
-
return null;
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
async function deleteWorkspace(workspaceId) {
|
|
1274
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1275
|
-
if (!acceptedTransition) return false;
|
|
1276
|
-
const ownsInvocation = () => ownsWorkspaceInvocation(workspaceId, acceptedTransition);
|
|
1277
|
-
try {
|
|
1278
|
-
const deletion = await runCurrentTransitionInvocation({
|
|
1279
|
-
isCurrent: ownsInvocation,
|
|
1280
|
-
request: async () => await deleteWorkspaceWithReconciliation({
|
|
1281
|
-
deleteWorkspace: async () => await client.deleteWorkspace(workspaceId),
|
|
1282
|
-
readWorkspace: async () => await client.getWorkspace(workspaceId)
|
|
1283
|
-
})
|
|
1284
|
-
});
|
|
1285
|
-
if (deletion.status === "stale") return false;
|
|
1286
|
-
} catch (error) {
|
|
1287
|
-
toast.error("Failed to delete workspace", {
|
|
1288
|
-
description: userErrorText(error)
|
|
1289
|
-
});
|
|
1290
|
-
return false;
|
|
1291
|
-
}
|
|
1292
|
-
setWorkspaces((current) => current.filter((workspace) => workspace.id !== workspaceId));
|
|
1293
|
-
try {
|
|
1294
|
-
const accessRefresh = await runCurrentTransitionInvocation({
|
|
1295
|
-
isCurrent: ownsInvocation,
|
|
1296
|
-
request: async () => await client.getAccessContext()
|
|
1297
|
-
});
|
|
1298
|
-
if (accessRefresh.status === "stale") return false;
|
|
1299
|
-
claimHumanInputDraftOwner(accessRefresh.value.subjectId);
|
|
1300
|
-
setAccessContext(accessRefresh.value);
|
|
1301
|
-
} catch {
|
|
1302
|
-
toast.warning("Permissions may be out of date", {
|
|
1303
|
-
description: "Reload if something looks off."
|
|
1304
|
-
});
|
|
1305
|
-
}
|
|
1306
|
-
return true;
|
|
1307
|
-
}
|
|
1308
|
-
const refreshGitHub = useCallback(
|
|
1309
|
-
async (workspaceId, signal, options) => {
|
|
1310
|
-
const acceptedTransition = workspaceTransitionIdentity.current;
|
|
1311
|
-
if (!ownsWorkspaceTransition(acceptedTransition, acceptedTransition, workspaceId)) {
|
|
1312
|
-
return;
|
|
1313
|
-
}
|
|
1314
|
-
const ownsRefresh = () => ownsWorkspaceTransition(
|
|
1315
|
-
workspaceTransitionIdentity.current,
|
|
1316
|
-
acceptedTransition,
|
|
1317
|
-
workspaceId
|
|
1318
|
-
);
|
|
1319
|
-
const refreshId = githubRefreshId.current + 1;
|
|
1320
|
-
githubRefreshId.current = refreshId;
|
|
1321
|
-
githubQuietRetry.current.cancel();
|
|
1322
|
-
if (lacksWorkspacePermission(accessContextRef.current, workspaceId, "github:use")) {
|
|
1323
|
-
githubQuietRetry.current.reset();
|
|
1324
|
-
setGithubStatus(null);
|
|
1325
|
-
setGithubStatusFailed(false);
|
|
1326
|
-
setGithubRepos([]);
|
|
1327
|
-
setGithubCatalogReady(true);
|
|
1328
|
-
setRepoBusy(false);
|
|
1329
|
-
return;
|
|
1330
|
-
}
|
|
1331
|
-
setRepoBusy(true);
|
|
1332
|
-
try {
|
|
1333
|
-
const status = await client.getGitHubApp(workspaceId);
|
|
1334
|
-
if (signal?.aborted || githubRefreshId.current !== refreshId || !ownsRefresh()) {
|
|
1335
|
-
return;
|
|
1336
|
-
}
|
|
1337
|
-
setGithubStatus(status);
|
|
1338
|
-
setGithubStatusFailed(false);
|
|
1339
|
-
if (status.status === "bound") {
|
|
1340
|
-
const { repositories } = options?.sync ? await client.syncGitHubRepositories(workspaceId) : await client.listGitHubRepositories(workspaceId);
|
|
1341
|
-
if (signal?.aborted || githubRefreshId.current !== refreshId || !ownsRefresh()) {
|
|
1342
|
-
return;
|
|
1343
|
-
}
|
|
1344
|
-
setGithubRepos(repositories);
|
|
1345
|
-
setGithubCatalogReady(true);
|
|
1346
|
-
} else {
|
|
1347
|
-
setGithubRepos([]);
|
|
1348
|
-
setGithubCatalogReady(true);
|
|
1349
|
-
}
|
|
1350
|
-
githubQuietRetry.current.reset();
|
|
1351
|
-
} catch (error) {
|
|
1352
|
-
if (isAbortError(error) || signal?.aborted || githubRefreshId.current !== refreshId || !ownsRefresh()) {
|
|
1353
|
-
return;
|
|
1354
|
-
}
|
|
1355
|
-
setGithubStatusFailed(true);
|
|
1356
|
-
if (isTransientServiceFailure(error)) {
|
|
1357
|
-
githubQuietRetry.current.schedule(() => {
|
|
1358
|
-
if (!ownsRefresh() || githubRefreshId.current !== refreshId) return;
|
|
1359
|
-
void refreshGitHubRef.current(workspaceId);
|
|
1360
|
-
}, workspaceId);
|
|
1361
|
-
}
|
|
1362
|
-
if (!options?.userInitiated || isWorkspacePermissionDenied(error)) return;
|
|
1363
|
-
toast.error("GitHub status unavailable", {
|
|
1364
|
-
id: GITHUB_STATUS_TOAST_ID,
|
|
1365
|
-
description: userErrorText(error)
|
|
1366
|
-
});
|
|
1367
|
-
} finally {
|
|
1368
|
-
if (githubRefreshId.current === refreshId && ownsRefresh()) {
|
|
1369
|
-
setRepoBusy(false);
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
},
|
|
1373
|
-
[client]
|
|
1374
|
-
);
|
|
1375
|
-
useInsertionEffect(() => {
|
|
1376
|
-
refreshGitHubRef.current = refreshGitHub;
|
|
1377
|
-
}, [refreshGitHub]);
|
|
1378
|
-
const refreshPersonalGitHub = useCallback(
|
|
1379
|
-
async (workspaceId, signal, options) => {
|
|
1380
|
-
const acceptedTransition = workspaceTransitionIdentity.current;
|
|
1381
|
-
if (!ownsWorkspaceTransition(acceptedTransition, acceptedTransition, workspaceId)) return;
|
|
1382
|
-
const refreshId = personalGitHubRefreshId.current + 1;
|
|
1383
|
-
personalGitHubRefreshId.current = refreshId;
|
|
1384
|
-
personalGitHubQuietRetry.current.cancel();
|
|
1385
|
-
const ownsRefresh = () => ownsWorkspaceTransition(
|
|
1386
|
-
workspaceTransitionIdentity.current,
|
|
1387
|
-
acceptedTransition,
|
|
1388
|
-
workspaceId
|
|
1389
|
-
) && personalGitHubRefreshId.current === refreshId;
|
|
1390
|
-
if (!hasWorkspacePermission(accessContextRef.current, workspaceId, "connections:read")) {
|
|
1391
|
-
setPersonalGitHubStatus(null);
|
|
1392
|
-
setPersonalGitHubRepositories([]);
|
|
1393
|
-
setPersonalGitHubSelection(null);
|
|
1394
|
-
setPersonalGitHubAuthorityCache(null);
|
|
1395
|
-
setSelectedPersonalGitHubRepoIds(/* @__PURE__ */ new Set());
|
|
1396
|
-
setSelectedPersonalGitHubRepoRefs({});
|
|
1397
|
-
setPersonalGitHubCatalogReady(true);
|
|
1398
|
-
setPersonalGitHubBusy(false);
|
|
1399
|
-
personalGitHubQuietRetry.current.reset();
|
|
1400
|
-
clearPersonalGitHubReconnectToast(personalGitHubReconnectToast.current);
|
|
1401
|
-
return;
|
|
1402
|
-
}
|
|
1403
|
-
setPersonalGitHubBusy(true);
|
|
1404
|
-
const clearPersonalCatalog = () => {
|
|
1405
|
-
setPersonalGitHubRepositories([]);
|
|
1406
|
-
setPersonalGitHubSelection(null);
|
|
1407
|
-
setSelectedPersonalGitHubRepoIds(/* @__PURE__ */ new Set());
|
|
1408
|
-
setSelectedPersonalGitHubRepoRefs({});
|
|
1409
|
-
setPersonalGitHubCatalogReady(true);
|
|
1410
|
-
personalGitHubQuietRetry.current.reset();
|
|
1411
|
-
};
|
|
1412
|
-
const showReconnectState = (status) => {
|
|
1413
|
-
const connection = status.connection;
|
|
1414
|
-
if (!status.enabled || !personalGitHubNeedsReconnect(connection)) {
|
|
1415
|
-
clearPersonalGitHubReconnectToast(personalGitHubReconnectToast.current);
|
|
1416
|
-
return false;
|
|
1417
|
-
}
|
|
1418
|
-
announcePersonalGitHubReconnect(
|
|
1419
|
-
personalGitHubReconnectToast.current,
|
|
1420
|
-
connection,
|
|
1421
|
-
() => reconnectPersonalGitHubFromToast(workspaceId, connection.id)
|
|
1422
|
-
);
|
|
1423
|
-
return true;
|
|
1424
|
-
};
|
|
1425
|
-
try {
|
|
1426
|
-
const status = await client.personalGitHubStatus(workspaceId);
|
|
1427
|
-
if (signal?.aborted || !ownsRefresh()) return;
|
|
1428
|
-
const connection = status.connection;
|
|
1429
|
-
setPersonalGitHubStatus(status);
|
|
1430
|
-
setPersonalGitHubAuthorityCache(
|
|
1431
|
-
(current) => connection && reusablePersonalGitHubAuthority(current, {
|
|
1432
|
-
connectionId: connection.id,
|
|
1433
|
-
connectionVersion: connection.version
|
|
1434
|
-
}) ? current : null
|
|
1435
|
-
);
|
|
1436
|
-
showReconnectState(status);
|
|
1437
|
-
if (!status.enabled || connection?.status !== "active") {
|
|
1438
|
-
clearPersonalCatalog();
|
|
1439
|
-
return;
|
|
1440
|
-
}
|
|
1441
|
-
const repositories = [];
|
|
1442
|
-
let cursor;
|
|
1443
|
-
let selection = null;
|
|
1444
|
-
do {
|
|
1445
|
-
const page = await client.listPersonalGitHubRepositories(workspaceId, connection.id, {
|
|
1446
|
-
...cursor ? { cursor } : {},
|
|
1447
|
-
limit: 100
|
|
1448
|
-
});
|
|
1449
|
-
repositories.push(...page.repositories.map(usablePersonalGitHubRepository));
|
|
1450
|
-
selection = page.selection;
|
|
1451
|
-
cursor = page.nextCursor ?? void 0;
|
|
1452
|
-
} while (cursor !== void 0 && repositories.length < 1e3);
|
|
1453
|
-
if (signal?.aborted || !ownsRefresh()) return;
|
|
1454
|
-
setPersonalGitHubRepositories((current) => {
|
|
1455
|
-
const allRepositoriesAccess = status.allRepositoriesAvailable === false ? null : selection?.allRepositoriesAccess;
|
|
1456
|
-
if (!allRepositoriesAccess) return repositories;
|
|
1457
|
-
const listed = new Set(repositories.map((repository) => repository.repositoryId));
|
|
1458
|
-
const found = current.flatMap((repository) => {
|
|
1459
|
-
if (listed.has(repository.repositoryId)) return [];
|
|
1460
|
-
const access = personalGitHubAllRepositoriesEffectiveAccess(
|
|
1461
|
-
allRepositoriesAccess,
|
|
1462
|
-
repository
|
|
1463
|
-
);
|
|
1464
|
-
return access ? [{ ...repository, selectedAccess: access, effectiveAccess: access }] : [];
|
|
1465
|
-
});
|
|
1466
|
-
return [...repositories, ...found];
|
|
1467
|
-
});
|
|
1468
|
-
setPersonalGitHubSelection(selection);
|
|
1469
|
-
setPersonalGitHubAuthorityCache(
|
|
1470
|
-
(current) => selection && reusablePersonalGitHubAuthority(current, {
|
|
1471
|
-
connectionId: connection.id,
|
|
1472
|
-
connectionVersion: connection.version
|
|
1473
|
-
}) ? current : null
|
|
1474
|
-
);
|
|
1475
|
-
setSelectedPersonalGitHubRepoIds(
|
|
1476
|
-
(current) => new Set(
|
|
1477
|
-
[...current].filter(
|
|
1478
|
-
(id) => repositories.some((repo) => repo.repositoryId === id && repo.selectedAccess)
|
|
1479
|
-
)
|
|
1480
|
-
)
|
|
1481
|
-
);
|
|
1482
|
-
setPersonalGitHubCatalogReady(true);
|
|
1483
|
-
personalGitHubQuietRetry.current.reset();
|
|
1484
|
-
} catch (error) {
|
|
1485
|
-
if (signal?.aborted || !ownsRefresh() || isAbortError(error)) return;
|
|
1486
|
-
setPersonalGitHubCatalogReady(true);
|
|
1487
|
-
if (isTransientServiceFailure(error)) {
|
|
1488
|
-
personalGitHubQuietRetry.current.schedule(() => {
|
|
1489
|
-
if (!ownsRefresh()) return;
|
|
1490
|
-
void refreshPersonalGitHubRef.current(workspaceId);
|
|
1491
|
-
}, workspaceId);
|
|
1492
|
-
if (!options?.userInitiated) return;
|
|
1493
|
-
} else {
|
|
1494
|
-
const current = await client.personalGitHubStatus(workspaceId).catch(() => null);
|
|
1495
|
-
if (signal?.aborted || !ownsRefresh()) return;
|
|
1496
|
-
if (current) {
|
|
1497
|
-
setPersonalGitHubStatus(current);
|
|
1498
|
-
if (showReconnectState(current)) {
|
|
1499
|
-
clearPersonalCatalog();
|
|
1500
|
-
return;
|
|
1501
|
-
}
|
|
1502
|
-
}
|
|
1503
|
-
if (!options?.userInitiated) return;
|
|
1504
|
-
}
|
|
1505
|
-
toast.error("Your GitHub account is unavailable", {
|
|
1506
|
-
id: PERSONAL_GITHUB_STATUS_TOAST_ID,
|
|
1507
|
-
description: userErrorText(error)
|
|
1508
|
-
});
|
|
1509
|
-
} finally {
|
|
1510
|
-
if (ownsRefresh()) setPersonalGitHubBusy(false);
|
|
1511
|
-
}
|
|
1512
|
-
},
|
|
1513
|
-
[client, reconnectPersonalGitHubFromToast]
|
|
1514
|
-
);
|
|
1515
|
-
useInsertionEffect(() => {
|
|
1516
|
-
refreshPersonalGitHubRef.current = refreshPersonalGitHub;
|
|
1517
|
-
}, [refreshPersonalGitHub]);
|
|
1518
|
-
async function beginPersonalGitHubOAuth(workspaceId, reconnect, connectionId) {
|
|
1519
|
-
const reconnectAccountId = connectionId ?? personalGitHubStatus?.connection?.id;
|
|
1520
|
-
try {
|
|
1521
|
-
const attempt = await client.beginConnect(workspaceId, {
|
|
1522
|
-
providerId: "github-personal",
|
|
1523
|
-
ownership: "personal",
|
|
1524
|
-
returnUrl: hostPage.href(),
|
|
1525
|
-
idempotencyKey: crypto.randomUUID(),
|
|
1526
|
-
...reconnect && reconnectAccountId ? { reconnectAccountId } : {}
|
|
1527
|
-
});
|
|
1528
|
-
if (attempt.nextAction.type !== "authorize")
|
|
1529
|
-
throw new Error("GitHub did not return an authorization link");
|
|
1530
|
-
await markIntegrationConnectRedirect("github", "oauth", { returnsWithOutcome: false });
|
|
1531
|
-
hostPage.assign(attempt.nextAction.url);
|
|
1532
|
-
} catch (error) {
|
|
1533
|
-
toast.error("Couldn't open GitHub sign-in", {
|
|
1534
|
-
description: userErrorText(error)
|
|
1535
|
-
});
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
async function disconnectPersonalGitHub(workspaceId) {
|
|
1539
|
-
const connection = personalGitHubStatus?.connection;
|
|
1540
|
-
if (!connection) return true;
|
|
1541
|
-
setPersonalGitHubBusy(true);
|
|
1542
|
-
try {
|
|
1543
|
-
const disconnect = (target) => client.disconnectPersonalGitHub(workspaceId, target.id, {
|
|
1544
|
-
expectedVersion: target.version,
|
|
1545
|
-
idempotencyKey: crypto.randomUUID()
|
|
1546
|
-
});
|
|
1547
|
-
try {
|
|
1548
|
-
await disconnect(connection);
|
|
1549
|
-
} catch (error) {
|
|
1550
|
-
if (!(error instanceof OpenGeniApiError && error.status === 409)) throw error;
|
|
1551
|
-
const current = (await client.personalGitHubStatus(workspaceId)).connection;
|
|
1552
|
-
if (current && current.status !== "revoked") await disconnect(current);
|
|
1553
|
-
}
|
|
1554
|
-
await refreshPersonalGitHub(workspaceId, void 0, { userInitiated: true });
|
|
1555
|
-
toast.success("Your GitHub account was disconnected");
|
|
1556
|
-
return true;
|
|
1557
|
-
} catch (error) {
|
|
1558
|
-
toast.error("Couldn't disconnect your GitHub account", {
|
|
1559
|
-
description: userErrorText(error)
|
|
1560
|
-
});
|
|
1561
|
-
return false;
|
|
1562
|
-
} finally {
|
|
1563
|
-
setPersonalGitHubBusy(false);
|
|
1564
|
-
}
|
|
1565
|
-
}
|
|
1566
|
-
async function searchPersonalGitHubRepositories(workspaceId, query) {
|
|
1567
|
-
const connection = personalGitHubStatus?.connection;
|
|
1568
|
-
const trimmed = query.trim();
|
|
1569
|
-
if (!connection || connection.status !== "active" || trimmed.length < 2) return;
|
|
1570
|
-
const page = await client.listPersonalGitHubRepositories(workspaceId, connection.id, {
|
|
1571
|
-
query: trimmed,
|
|
1572
|
-
limit: 50
|
|
1573
|
-
});
|
|
1574
|
-
if (page.repositories.length === 0) return;
|
|
1575
|
-
setPersonalGitHubRepositories((current) => {
|
|
1576
|
-
const known = new Set(current.map((repository) => repository.repositoryId));
|
|
1577
|
-
const added = page.repositories.filter((repository) => !known.has(repository.repositoryId)).map(usablePersonalGitHubRepository);
|
|
1578
|
-
return added.length > 0 ? [...current, ...added] : current;
|
|
1579
|
-
});
|
|
1580
|
-
}
|
|
1581
|
-
async function savePersonalGitHubRepositories(workspaceId, repositories, allRepositoriesAccess) {
|
|
1582
|
-
const connection = personalGitHubStatus?.connection;
|
|
1583
|
-
const selection = personalGitHubSelection;
|
|
1584
|
-
if (!connection || !selection) return false;
|
|
1585
|
-
setPersonalGitHubBusy(true);
|
|
1586
|
-
try {
|
|
1587
|
-
await client.replacePersonalGitHubRepositorySelections(workspaceId, connection.id, {
|
|
1588
|
-
expectedConnectionAuthorityGeneration: selection.connectionAuthorityGeneration,
|
|
1589
|
-
expectedSelectionGeneration: selection.selectionGeneration,
|
|
1590
|
-
idempotencyKey: crypto.randomUUID(),
|
|
1591
|
-
repositories,
|
|
1592
|
-
...allRepositoriesAccess !== void 0 ? { allRepositoriesAccess } : {}
|
|
1593
|
-
});
|
|
1594
|
-
await refreshPersonalGitHub(workspaceId, void 0, { userInitiated: true });
|
|
1595
|
-
toast.success("GitHub repository access updated");
|
|
1596
|
-
return true;
|
|
1597
|
-
} catch (error) {
|
|
1598
|
-
toast.error("Couldn't update GitHub repository access", {
|
|
1599
|
-
description: userErrorText(error)
|
|
1600
|
-
});
|
|
1601
|
-
return false;
|
|
1602
|
-
} finally {
|
|
1603
|
-
setPersonalGitHubBusy(false);
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
async function ensurePersonalGitHubAuthority(_workspaceId) {
|
|
1607
|
-
const connection = personalGitHubStatus?.connection;
|
|
1608
|
-
if (!connection?.authorityId || connection.status !== "active") {
|
|
1609
|
-
toast.error("Connect your GitHub account before selecting its repositories");
|
|
1610
|
-
return null;
|
|
1611
|
-
}
|
|
1612
|
-
const authority = { serverId: "github:personal", connectionId: connection.id };
|
|
1613
|
-
setPersonalGitHubAuthorityCache({ authority, connectionVersion: connection.version });
|
|
1614
|
-
return authority;
|
|
1615
|
-
}
|
|
1616
|
-
async function togglePersonalGitHubRepository(workspaceId, repository) {
|
|
1617
|
-
if (selectedPersonalGitHubRepoIds.has(repository.repositoryId)) {
|
|
1618
|
-
setSelectedPersonalGitHubRepoIds((current) => {
|
|
1619
|
-
const next = new Set(current);
|
|
1620
|
-
next.delete(repository.repositoryId);
|
|
1621
|
-
return next;
|
|
1622
|
-
});
|
|
1623
|
-
return;
|
|
1624
|
-
}
|
|
1625
|
-
if (!repository.selectedAccess) return;
|
|
1626
|
-
if (!await ensurePersonalGitHubAuthority(workspaceId)) return;
|
|
1627
|
-
setSelectedRepoIds(
|
|
1628
|
-
(current) => new Set(
|
|
1629
|
-
[...current].filter(
|
|
1630
|
-
(id) => githubRepos.find((candidate) => candidate.id === id)?.fullName.toLowerCase() !== repository.fullName.toLowerCase()
|
|
1631
|
-
)
|
|
1632
|
-
)
|
|
1633
|
-
);
|
|
1634
|
-
setSelectedPersonalGitHubRepoIds((current) => new Set(current).add(repository.repositoryId));
|
|
1635
|
-
setSelectedPersonalGitHubRepoRefs((current) => ({
|
|
1636
|
-
...current,
|
|
1637
|
-
[repository.repositoryId]: current[repository.repositoryId] ?? repository.defaultBranch
|
|
1638
|
-
}));
|
|
1639
|
-
}
|
|
1640
|
-
const refreshWorkspaceMcpServers = useCallback(
|
|
1641
|
-
async (workspaceId, signal) => {
|
|
1642
|
-
const refreshId = mcpRefreshId.current + 1;
|
|
1643
|
-
mcpRefreshId.current = refreshId;
|
|
1644
|
-
setWorkspaceMcpCatalogLoadedSuccessfully(false);
|
|
1645
|
-
const requestKey = `${accessKeyVersion}:${workspaceId}`;
|
|
1646
|
-
try {
|
|
1647
|
-
const result = await runCurrentWorkspaceRequest({
|
|
1648
|
-
signal,
|
|
1649
|
-
requestId: refreshId,
|
|
1650
|
-
currentRequestId: () => mcpRefreshId.current,
|
|
1651
|
-
request: async () => await Promise.all([
|
|
1652
|
-
runSingleFlight(
|
|
1653
|
-
mcpCatalogRequests.current,
|
|
1654
|
-
requestKey,
|
|
1655
|
-
async () => await client.listCapabilities(workspaceId)
|
|
1656
|
-
),
|
|
1657
|
-
client.listApiIntegrations(workspaceId)
|
|
1658
|
-
])
|
|
1659
|
-
});
|
|
1660
|
-
if (!result) {
|
|
1661
|
-
return;
|
|
1662
|
-
}
|
|
1663
|
-
const [catalog, apiIntegrations] = result;
|
|
1664
|
-
setWorkspaceMcpServers(
|
|
1665
|
-
mergeMcpServerOptions(
|
|
1666
|
-
enabledWorkspaceCapabilityMcpServers(catalog.items),
|
|
1667
|
-
installedApiIntegrationMcpServers(apiIntegrations.integrations)
|
|
1668
|
-
)
|
|
1669
|
-
);
|
|
1670
|
-
setWorkspaceCapabilityCatalog(catalog.items);
|
|
1671
|
-
setWorkspaceMemberIntegrationSetup(catalog.memberIntegrationSetup);
|
|
1672
|
-
setWorkspaceMcpCatalogLoadedSuccessfully(true);
|
|
1673
|
-
setWorkspaceMcpCatalogReady(true);
|
|
1674
|
-
} catch (error) {
|
|
1675
|
-
if (signal?.aborted || mcpRefreshId.current !== refreshId) throw error;
|
|
1676
|
-
setWorkspaceMcpCatalogLoadedSuccessfully(false);
|
|
1677
|
-
setWorkspaceMcpCatalogReady(true);
|
|
1678
|
-
throw error;
|
|
1679
|
-
}
|
|
1680
|
-
},
|
|
1681
|
-
[accessKeyVersion, client]
|
|
1682
|
-
);
|
|
1683
|
-
async function startSession(workspaceId, submission, options) {
|
|
1684
|
-
const startedOperation = beginWorkspaceOperation(
|
|
1685
|
-
workspaceOperationSequence.current,
|
|
1686
|
-
workspaceTransitionIdentity.current
|
|
1687
|
-
);
|
|
1688
|
-
workspaceOperationSequence.current = startedOperation.sequence;
|
|
1689
|
-
const operation = startedOperation.operation;
|
|
1690
|
-
activeCreateOperation.current = operation;
|
|
1691
|
-
let attempted = null;
|
|
1692
|
-
setBusy(true);
|
|
1693
|
-
try {
|
|
1694
|
-
if (repositoryValidationError) {
|
|
1695
|
-
toast.error("Fix repository details", { description: repositoryValidationError });
|
|
1696
|
-
return null;
|
|
1697
|
-
}
|
|
1698
|
-
const sessionTools = options?.sessionTools;
|
|
1699
|
-
if (!workspaceMcpCatalogReady && !sessionTools) {
|
|
1700
|
-
toast.error("Tools are still loading", {
|
|
1701
|
-
description: "Wait for the workspace tool catalog to finish loading, then try again."
|
|
1702
|
-
});
|
|
1703
|
-
return null;
|
|
1704
|
-
}
|
|
1705
|
-
const selectedTools = sessionTools ? [...sessionTools] : buildOpenGeniUiTools(submission.tools, selectedCapabilityToolIds);
|
|
1706
|
-
const includesPersonalGitHub = currentResources.some(
|
|
1707
|
-
(resource) => resource.kind === "repository" && resource.connectionType === "github_personal"
|
|
1708
|
-
);
|
|
1709
|
-
if (includesPersonalGitHub && !personalGitHubAuthority) {
|
|
1710
|
-
toast.error("Your GitHub identity is still being prepared", {
|
|
1711
|
-
description: "Select the repository again, then send when it is ready."
|
|
1712
|
-
});
|
|
1713
|
-
return null;
|
|
1714
|
-
}
|
|
1715
|
-
const effectiveSubmission = includesPersonalGitHub ? {
|
|
1716
|
-
...submission,
|
|
1717
|
-
connectionAccounts: [
|
|
1718
|
-
...(submission.connectionAccounts ?? []).filter(
|
|
1719
|
-
(authority) => authority.serverId !== "github:personal"
|
|
1720
|
-
),
|
|
1721
|
-
personalGitHubAuthority
|
|
1722
|
-
]
|
|
1723
|
-
} : submission;
|
|
1724
|
-
const freshIdempotencyKey = crypto.randomUUID();
|
|
1725
|
-
const attempt = prepareCreateSessionAttempt({
|
|
1726
|
-
pending: pendingCreateAttempt.current,
|
|
1727
|
-
client,
|
|
1728
|
-
workspaceId,
|
|
1729
|
-
freshIdempotencyKey,
|
|
1730
|
-
request: buildCreateSessionRequest({
|
|
1731
|
-
currentResources,
|
|
1732
|
-
submission: effectiveSubmission,
|
|
1733
|
-
instructions: options?.instructions,
|
|
1734
|
-
installedSkillIds: options?.installedSkillIds,
|
|
1735
|
-
agent: options?.agent,
|
|
1736
|
-
omitWorkspaceResources: options?.omitWorkspaceResources,
|
|
1737
|
-
selectedTools,
|
|
1738
|
-
newSessionDraftToolPolicy: options?.newSessionDraftToolPolicy,
|
|
1739
|
-
defaultModel: model,
|
|
1740
|
-
defaultReasoningEffort: reasoningEffort,
|
|
1741
|
-
defaultLatencyMode: latencyMode,
|
|
1742
|
-
clientEventId: crypto.randomUUID(),
|
|
1743
|
-
idempotencyKey: freshIdempotencyKey,
|
|
1744
|
-
workspaceDefaultMcpServerIds: workspaceDefaultToolIds,
|
|
1745
|
-
workspaceMcpCatalogReady,
|
|
1746
|
-
targetSandboxId: options?.targetSandboxId,
|
|
1747
|
-
workingDir: options?.workingDir,
|
|
1748
|
-
channelId: options?.channelId,
|
|
1749
|
-
expectedNewSessionDraftRevision: options?.expectedNewSessionDraftRevision,
|
|
1750
|
-
agentLearning: options?.agentLearning,
|
|
1751
|
-
startMode: options?.startMode,
|
|
1752
|
-
visibility: options?.visibility,
|
|
1753
|
-
usageLimitMicros: options?.usageLimitMicros
|
|
1754
|
-
})
|
|
1755
|
-
});
|
|
1756
|
-
attempted = attempt;
|
|
1757
|
-
pendingCreateAttempt.current = attempt.pending;
|
|
1758
|
-
const hostContext = attempt.request.startMode === "realtime" ? void 0 : hostMessageContext.current?.();
|
|
1759
|
-
const created = await createWithOpeningContext(
|
|
1760
|
-
(request) => client.createSession(workspaceId, request),
|
|
1761
|
-
attempt.request,
|
|
1762
|
-
hostContext,
|
|
1763
|
-
hostContext ? hostMessageContextTools.current?.() : void 0
|
|
1764
|
-
);
|
|
1765
|
-
if (pendingCreateAttempt.current?.idempotencyKey === attempt.pending.idempotencyKey) {
|
|
1766
|
-
pendingCreateAttempt.current = null;
|
|
1767
|
-
}
|
|
1768
|
-
if (!ownsWorkspaceOperation(
|
|
1769
|
-
activeCreateOperation.current,
|
|
1770
|
-
workspaceTransitionIdentity.current,
|
|
1771
|
-
operation,
|
|
1772
|
-
workspaceId
|
|
1773
|
-
)) {
|
|
1774
|
-
return null;
|
|
1775
|
-
}
|
|
1776
|
-
setSession(created);
|
|
1777
|
-
if (attempt.request.clientEventId && attempt.request.startMode !== "realtime") {
|
|
1778
|
-
setSessionCreationHandoff({
|
|
1779
|
-
session: created,
|
|
1780
|
-
clientEventId: attempt.request.clientEventId
|
|
1781
|
-
});
|
|
1782
|
-
} else {
|
|
1783
|
-
setSessionCreationHandoff(null);
|
|
1784
|
-
}
|
|
1785
|
-
setConnectionState("idle");
|
|
1786
|
-
captureProductEvent("session_started", {
|
|
1787
|
-
$insert_id: `session_started:${created.id}`,
|
|
1788
|
-
account_id: created.accountId,
|
|
1789
|
-
workspace_id: created.workspaceId,
|
|
1790
|
-
session_id: created.id,
|
|
1791
|
-
...attempt.request.model ? { model: attempt.request.model } : {},
|
|
1792
|
-
start_mode: options?.startMode ?? "standard"
|
|
1793
|
-
});
|
|
1794
|
-
return created;
|
|
1795
|
-
} catch (error) {
|
|
1796
|
-
const { error: problem, outcomeUnknown } = classifyCreateSessionFailure(error);
|
|
1797
|
-
if (attempted) {
|
|
1798
|
-
pendingCreateAttempt.current = retainCreateSessionAttemptAfterFailure({
|
|
1799
|
-
current: pendingCreateAttempt.current,
|
|
1800
|
-
attempted: attempted.pending,
|
|
1801
|
-
outcomeUnknown
|
|
1802
|
-
});
|
|
1803
|
-
}
|
|
1804
|
-
if (ownsWorkspaceOperation(
|
|
1805
|
-
activeCreateOperation.current,
|
|
1806
|
-
workspaceTransitionIdentity.current,
|
|
1807
|
-
operation,
|
|
1808
|
-
workspaceId
|
|
1809
|
-
)) {
|
|
1810
|
-
const handled = attempted ? options?.onFailure?.({
|
|
1811
|
-
error: problem,
|
|
1812
|
-
request: attempted.request,
|
|
1813
|
-
outcomeUnknown
|
|
1814
|
-
}) : false;
|
|
1815
|
-
if (isPaymentRequiredError(problem) && handled !== true) {
|
|
1816
|
-
const workspace = workspaces.find((candidate) => candidate.id === workspaceId);
|
|
1817
|
-
setCreditRequired({
|
|
1818
|
-
workspaceId,
|
|
1819
|
-
accountId: workspace?.accountId ?? null,
|
|
1820
|
-
code: paymentRefusalCode(problem)
|
|
1821
|
-
});
|
|
1822
|
-
} else if (handled !== true) {
|
|
1823
|
-
toast.error("Failed to start session", {
|
|
1824
|
-
description: composerSubmissionErrorMessage(t, problem)
|
|
1825
|
-
});
|
|
1826
|
-
}
|
|
1827
|
-
}
|
|
1828
|
-
return null;
|
|
1829
|
-
} finally {
|
|
1830
|
-
const settlement = settleWorkspaceOperation(activeCreateOperation.current, operation);
|
|
1831
|
-
activeCreateOperation.current = settlement.active;
|
|
1832
|
-
if (settlement.settledCurrent) {
|
|
1833
|
-
setBusy(false);
|
|
1834
|
-
}
|
|
1835
|
-
}
|
|
1836
|
-
}
|
|
1837
|
-
async function startGitHubAppManifestFlow(workspaceId) {
|
|
1838
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1839
|
-
if (!acceptedTransition) return;
|
|
1840
|
-
const started = beginWorkspaceOperation(
|
|
1841
|
-
githubManifestOperationSequence.current,
|
|
1842
|
-
acceptedTransition
|
|
1843
|
-
);
|
|
1844
|
-
githubManifestOperationSequence.current = started.sequence;
|
|
1845
|
-
const operation = started.operation;
|
|
1846
|
-
activeGitHubManifestOperation.current = operation;
|
|
1847
|
-
setGithubAppBusy(true);
|
|
1848
|
-
try {
|
|
1849
|
-
const result = await runCurrentWorkspaceOperation({
|
|
1850
|
-
activeOperation: () => activeGitHubManifestOperation.current,
|
|
1851
|
-
currentTransition: () => workspaceTransitionIdentity.current,
|
|
1852
|
-
operation,
|
|
1853
|
-
workspaceId,
|
|
1854
|
-
request: async () => await client.createGitHubAppManifest(workspaceId, {
|
|
1855
|
-
...githubOrg.trim() ? { organization: githubOrg.trim() } : {},
|
|
1856
|
-
public: false,
|
|
1857
|
-
includeCiPermissions: true
|
|
1858
|
-
})
|
|
1859
|
-
});
|
|
1860
|
-
if (result.status === "stale" || !ownsWorkspaceOperation(
|
|
1861
|
-
activeGitHubManifestOperation.current,
|
|
1862
|
-
workspaceTransitionIdentity.current,
|
|
1863
|
-
operation,
|
|
1864
|
-
workspaceId
|
|
1865
|
-
)) {
|
|
1866
|
-
return;
|
|
1867
|
-
}
|
|
1868
|
-
submitGitHubManifest(result.value.actionUrl, result.value.manifest, embedded);
|
|
1869
|
-
} catch (error) {
|
|
1870
|
-
if (ownsWorkspaceOperation(
|
|
1871
|
-
activeGitHubManifestOperation.current,
|
|
1872
|
-
workspaceTransitionIdentity.current,
|
|
1873
|
-
operation,
|
|
1874
|
-
workspaceId
|
|
1875
|
-
)) {
|
|
1876
|
-
toast.error("GitHub App setup failed", {
|
|
1877
|
-
description: userErrorText(error)
|
|
1878
|
-
});
|
|
1879
|
-
}
|
|
1880
|
-
} finally {
|
|
1881
|
-
const settlement = settleWorkspaceOperation(activeGitHubManifestOperation.current, operation);
|
|
1882
|
-
activeGitHubManifestOperation.current = settlement.active;
|
|
1883
|
-
if (settlement.settledCurrent) {
|
|
1884
|
-
setGithubAppBusy(false);
|
|
1885
|
-
}
|
|
1886
|
-
}
|
|
1887
|
-
}
|
|
1888
|
-
async function disconnectGitHubInstallation(workspaceId, installationId) {
|
|
1889
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1890
|
-
if (!acceptedTransition) return false;
|
|
1891
|
-
const started = beginWorkspaceOperation(
|
|
1892
|
-
githubDisconnectOperationSequence.current,
|
|
1893
|
-
acceptedTransition
|
|
1894
|
-
);
|
|
1895
|
-
githubDisconnectOperationSequence.current = started.sequence;
|
|
1896
|
-
const operation = started.operation;
|
|
1897
|
-
activeGitHubDisconnectOperation.current = operation;
|
|
1898
|
-
const previousStatus = githubStatus;
|
|
1899
|
-
const previousRepositories = githubRepos;
|
|
1900
|
-
const previousSelectedIds = selectedRepoIds;
|
|
1901
|
-
const previousSelectedRefs = selectedRepoRefs;
|
|
1902
|
-
const removedRepositoryIds = new Set(
|
|
1903
|
-
githubRepos.filter((repository) => repository.installationId === installationId).map((repository) => repository.id)
|
|
1904
|
-
);
|
|
1905
|
-
setGithubRepos(
|
|
1906
|
-
(current) => current.filter((repository) => repository.installationId !== installationId)
|
|
1907
|
-
);
|
|
1908
|
-
setGithubStatus(
|
|
1909
|
-
(current) => current ? {
|
|
1910
|
-
...current,
|
|
1911
|
-
installations: current.installations.filter(
|
|
1912
|
-
(installation) => installation.installationId !== installationId
|
|
1913
|
-
)
|
|
1914
|
-
} : current
|
|
1915
|
-
);
|
|
1916
|
-
setSelectedRepoIds(
|
|
1917
|
-
(current) => new Set([...current].filter((repositoryId) => !removedRepositoryIds.has(repositoryId)))
|
|
1918
|
-
);
|
|
1919
|
-
setSelectedRepoRefs(
|
|
1920
|
-
(current) => Object.fromEntries(
|
|
1921
|
-
Object.entries(current).filter(
|
|
1922
|
-
([repositoryId]) => !removedRepositoryIds.has(Number(repositoryId))
|
|
1923
|
-
)
|
|
1924
|
-
)
|
|
1925
|
-
);
|
|
1926
|
-
try {
|
|
1927
|
-
const unlink = await runCurrentWorkspaceOperation({
|
|
1928
|
-
activeOperation: () => activeGitHubDisconnectOperation.current,
|
|
1929
|
-
currentTransition: () => workspaceTransitionIdentity.current,
|
|
1930
|
-
operation,
|
|
1931
|
-
workspaceId,
|
|
1932
|
-
request: async () => await unlinkGitHubInstallationWithReconciliation({
|
|
1933
|
-
installationId,
|
|
1934
|
-
unlink: async () => await client.unlinkGitHubInstallation(workspaceId, installationId),
|
|
1935
|
-
readStatus: async () => await client.getGitHubApp(workspaceId)
|
|
1936
|
-
})
|
|
1937
|
-
});
|
|
1938
|
-
if (unlink.status === "stale" || !ownsWorkspaceOperation(
|
|
1939
|
-
activeGitHubDisconnectOperation.current,
|
|
1940
|
-
workspaceTransitionIdentity.current,
|
|
1941
|
-
operation,
|
|
1942
|
-
workspaceId
|
|
1943
|
-
)) {
|
|
1944
|
-
return false;
|
|
1945
|
-
}
|
|
1946
|
-
await refreshGitHub(workspaceId, void 0, { sync: true, userInitiated: true });
|
|
1947
|
-
if (!ownsWorkspaceOperation(
|
|
1948
|
-
activeGitHubDisconnectOperation.current,
|
|
1949
|
-
workspaceTransitionIdentity.current,
|
|
1950
|
-
operation,
|
|
1951
|
-
workspaceId
|
|
1952
|
-
)) {
|
|
1953
|
-
return false;
|
|
1954
|
-
}
|
|
1955
|
-
toast.success("GitHub installation unlinked from this workspace");
|
|
1956
|
-
return true;
|
|
1957
|
-
} catch (error) {
|
|
1958
|
-
if (ownsWorkspaceOperation(
|
|
1959
|
-
activeGitHubDisconnectOperation.current,
|
|
1960
|
-
workspaceTransitionIdentity.current,
|
|
1961
|
-
operation,
|
|
1962
|
-
workspaceId
|
|
1963
|
-
)) {
|
|
1964
|
-
setGithubStatus(previousStatus);
|
|
1965
|
-
setGithubRepos(previousRepositories);
|
|
1966
|
-
setSelectedRepoIds(previousSelectedIds);
|
|
1967
|
-
setSelectedRepoRefs(previousSelectedRefs);
|
|
1968
|
-
toast.error("Failed to unlink GitHub installation", {
|
|
1969
|
-
description: userErrorText(error)
|
|
1970
|
-
});
|
|
1971
|
-
}
|
|
1972
|
-
return false;
|
|
1973
|
-
} finally {
|
|
1974
|
-
const settlement = settleWorkspaceOperation(
|
|
1975
|
-
activeGitHubDisconnectOperation.current,
|
|
1976
|
-
operation
|
|
1977
|
-
);
|
|
1978
|
-
activeGitHubDisconnectOperation.current = settlement.active;
|
|
1979
|
-
}
|
|
1980
|
-
}
|
|
1981
|
-
function toggleGitHubRepository(repo) {
|
|
1982
|
-
setSelectedRepoIds((current) => {
|
|
1983
|
-
const next = new Set(current);
|
|
1984
|
-
if (next.has(repo.id)) {
|
|
1985
|
-
next.delete(repo.id);
|
|
1986
|
-
} else {
|
|
1987
|
-
next.add(repo.id);
|
|
1988
|
-
}
|
|
1989
|
-
return next;
|
|
1990
|
-
});
|
|
1991
|
-
if (!selectedRepoIds.has(repo.id)) {
|
|
1992
|
-
const personal = personalGitHubRepositories.find(
|
|
1993
|
-
(candidate) => candidate.fullName.toLowerCase() === repo.fullName.toLowerCase()
|
|
1994
|
-
);
|
|
1995
|
-
if (personal) {
|
|
1996
|
-
setSelectedPersonalGitHubRepoIds((current) => {
|
|
1997
|
-
const next = new Set(current);
|
|
1998
|
-
next.delete(personal.repositoryId);
|
|
1999
|
-
return next;
|
|
2000
|
-
});
|
|
2001
|
-
}
|
|
2002
|
-
}
|
|
2003
|
-
setSelectedRepoRefs((current) => ({
|
|
2004
|
-
...current,
|
|
2005
|
-
[repo.id]: current[repo.id] ?? repo.defaultBranch
|
|
2006
|
-
}));
|
|
2007
|
-
}
|
|
2008
|
-
function addManualRepository() {
|
|
2009
|
-
setManualRepos((current) => [
|
|
2010
|
-
...current,
|
|
2011
|
-
{ id: nextRepoId, url: "", ref: "main", attached: false }
|
|
2012
|
-
]);
|
|
2013
|
-
setNextRepoId((value) => value + 1);
|
|
2014
|
-
setManualReposOpen(true);
|
|
2015
|
-
}
|
|
2016
|
-
function saveAccessKey() {
|
|
2017
|
-
const key = accessKeyDraft.trim();
|
|
2018
|
-
if (!key) {
|
|
2019
|
-
toast.error("Enter an access key");
|
|
2020
|
-
return;
|
|
2021
|
-
}
|
|
2022
|
-
invalidatePrincipalWorkspaceState();
|
|
2023
|
-
setStoredAccessKey(key);
|
|
2024
|
-
setHasAccessKey(true);
|
|
2025
|
-
setAccessKeyDraft("");
|
|
2026
|
-
setAccessError(null);
|
|
2027
|
-
setAccessKeyVersion((version) => version + 1);
|
|
2028
|
-
}
|
|
2029
|
-
function forgetAccessKey() {
|
|
2030
|
-
invalidatePrincipalWorkspaceState();
|
|
2031
|
-
clearStoredAccessKey();
|
|
2032
|
-
setHasAccessKey(false);
|
|
2033
|
-
setSession(null);
|
|
2034
|
-
setAccessContext(null);
|
|
2035
|
-
setWorkspaces([]);
|
|
2036
|
-
setAccessError(null);
|
|
2037
|
-
setAccessKeyVersion((version) => version + 1);
|
|
2038
|
-
}
|
|
2039
|
-
async function handleManagedAuth(mode, input) {
|
|
2040
|
-
invalidatePrincipalWorkspaceState({
|
|
2041
|
-
preservePendingSlackLink: preserveSlackLinkForManagedAuth(mode, slackLink.phase())
|
|
2042
|
-
});
|
|
2043
|
-
const acceptedPrincipal = principalTransitionIdentity.current;
|
|
2044
|
-
const ownsInvocation = () => ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal);
|
|
2045
|
-
if (mode === "signup") {
|
|
2046
|
-
const signup = await runCurrentTransitionInvocation({
|
|
2047
|
-
isCurrent: ownsInvocation,
|
|
2048
|
-
request: async () => await signUpEmail(input)
|
|
2049
|
-
});
|
|
2050
|
-
if (signup.status === "stale") return;
|
|
2051
|
-
captureProductEvent("signup_submitted", {
|
|
2052
|
-
method: "email",
|
|
2053
|
-
verification_required: managedEmailVerificationRequired
|
|
2054
|
-
});
|
|
2055
|
-
} else {
|
|
2056
|
-
const signin = await runCurrentTransitionInvocation({
|
|
2057
|
-
isCurrent: ownsInvocation,
|
|
2058
|
-
request: async () => await signInEmail({
|
|
2059
|
-
email: input.email,
|
|
2060
|
-
password: input.password,
|
|
2061
|
-
rememberMe: true
|
|
2062
|
-
})
|
|
2063
|
-
});
|
|
2064
|
-
if (signin.status === "stale") return;
|
|
2065
|
-
}
|
|
2066
|
-
const sessionRead = await runCurrentTransitionInvocation({
|
|
2067
|
-
isCurrent: ownsInvocation,
|
|
2068
|
-
request: fetchAuthSession
|
|
2069
|
-
});
|
|
2070
|
-
if (sessionRead.status === "stale") return;
|
|
2071
|
-
const nextSession = sessionRead.value;
|
|
2072
|
-
if (!nextSession && !(mode === "signup" && managedEmailVerificationRequired)) {
|
|
2073
|
-
throw new ManagedAuthSessionUnavailableError(mode);
|
|
2074
|
-
}
|
|
2075
|
-
authPrincipalIdRef.current = nextSession?.user.id ?? null;
|
|
2076
|
-
if (mode === "signin" && nextSession) noteSuccessfulLogin(nextSession.user.id, "email");
|
|
2077
|
-
setAuthSession(nextSession);
|
|
2078
|
-
setAccessKeyVersion((version) => version + 1);
|
|
2079
|
-
}
|
|
2080
|
-
async function handleManagedSessionSetSignup(input) {
|
|
2081
|
-
invalidatePrincipalWorkspaceState();
|
|
2082
|
-
const acceptedPrincipal = principalTransitionIdentity.current;
|
|
2083
|
-
const signup = await runCurrentTransitionInvocation({
|
|
2084
|
-
isCurrent: () => ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal),
|
|
2085
|
-
request: async () => await signUpEmail(input)
|
|
2086
|
-
});
|
|
2087
|
-
if (signup.status === "stale") return;
|
|
2088
|
-
captureProductEvent("signup_submitted", {
|
|
2089
|
-
method: "email",
|
|
2090
|
-
verification_required: managedEmailVerificationRequired
|
|
2091
|
-
});
|
|
2092
|
-
}
|
|
2093
|
-
async function handleManagedSocialAuth(provider, signupChallengeToken) {
|
|
2094
|
-
invalidatePrincipalWorkspaceState({
|
|
2095
|
-
preservePendingSlackLink: preserveSlackLinkForManagedAuth("signin", slackLink.phase())
|
|
2096
|
-
});
|
|
2097
|
-
beginSocialLoginAnalytics(provider);
|
|
2098
|
-
await startManagedSocialSignIn(provider, signupChallengeToken);
|
|
2099
|
-
}
|
|
2100
|
-
async function handleManagedPasskeyAuth(mode, input) {
|
|
2101
|
-
if (!signInPasskey || mode === "signup" && (!signUpPasskey || !input)) {
|
|
2102
|
-
throw new Error("Passkeys aren't available here");
|
|
2103
|
-
}
|
|
2104
|
-
invalidatePrincipalWorkspaceState({
|
|
2105
|
-
preservePendingSlackLink: preserveSlackLinkForManagedAuth(mode, slackLink.phase())
|
|
2106
|
-
});
|
|
2107
|
-
const acceptedPrincipal = principalTransitionIdentity.current;
|
|
2108
|
-
const ownsInvocation = () => ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal);
|
|
2109
|
-
const ceremony = await runCurrentTransitionInvocation({
|
|
2110
|
-
isCurrent: ownsInvocation,
|
|
2111
|
-
request: async () => mode === "signup" ? await signUpPasskey(input) : await signInPasskey()
|
|
2112
|
-
});
|
|
2113
|
-
if (ceremony.status === "stale") return;
|
|
2114
|
-
if (mode === "signup") {
|
|
2115
|
-
captureProductEvent("signup_submitted", { method: "passkey", verification_required: false });
|
|
2116
|
-
}
|
|
2117
|
-
const sessionRead = await runCurrentTransitionInvocation({
|
|
2118
|
-
isCurrent: ownsInvocation,
|
|
2119
|
-
request: fetchAuthSession
|
|
2120
|
-
});
|
|
2121
|
-
if (sessionRead.status === "stale") return;
|
|
2122
|
-
const nextSession = sessionRead.value;
|
|
2123
|
-
if (!nextSession) throw new ManagedAuthSessionUnavailableError(mode);
|
|
2124
|
-
authPrincipalIdRef.current = nextSession.user.id;
|
|
2125
|
-
if (mode === "signin") noteSuccessfulLogin(nextSession.user.id, "passkey");
|
|
2126
|
-
else captureProductEvent("signup_completed", { method: "passkey", is_new_user: true });
|
|
2127
|
-
setAuthSession(nextSession);
|
|
2128
|
-
setAccessKeyVersion((version) => version + 1);
|
|
2129
|
-
}
|
|
2130
|
-
async function handleManagedSignOut() {
|
|
2131
|
-
const owner = recordingOwnerKey(authSession?.user.email);
|
|
2132
|
-
if (!await prepareRecordingsForSignOut(owner)) return;
|
|
2133
|
-
flushSync(() => {
|
|
2134
|
-
invalidatePrincipalWorkspaceState();
|
|
2135
|
-
setAuthSession(void 0);
|
|
2136
|
-
setAccessContext(null);
|
|
2137
|
-
setWorkspaces([]);
|
|
2138
|
-
setAccessError(null);
|
|
2139
|
-
});
|
|
2140
|
-
forgetSignedOutBrowserData();
|
|
2141
|
-
const acceptedPrincipal = principalTransitionIdentity.current;
|
|
2142
|
-
const ownsInvocation = () => ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal);
|
|
2143
|
-
const reconciliation = await runCurrentTransitionInvocation({
|
|
2144
|
-
isCurrent: ownsInvocation,
|
|
2145
|
-
request: async () => await signOutWithAuthoritativeReconciliation({
|
|
2146
|
-
signOut: signOutManaged,
|
|
2147
|
-
readSession: fetchAuthSession
|
|
2148
|
-
})
|
|
2149
|
-
});
|
|
2150
|
-
if (reconciliation.status === "stale") return;
|
|
2151
|
-
const result = reconciliation.value;
|
|
2152
|
-
authPrincipalIdRef.current = result.session?.user.id ?? null;
|
|
2153
|
-
setAuthSession(result.session);
|
|
2154
|
-
setAccessKeyVersion((version) => version + 1);
|
|
2155
|
-
if (result.status === "reconciled_failure") {
|
|
2156
|
-
throw result.error;
|
|
2157
|
-
}
|
|
2158
|
-
setSession(null);
|
|
2159
|
-
await navigate({ to: "/", replace: true });
|
|
2160
|
-
}
|
|
2161
|
-
async function handleBrowserActorTransition(transition) {
|
|
2162
|
-
flushSync(() => {
|
|
2163
|
-
invalidatePrincipalWorkspaceState();
|
|
2164
|
-
setAuthSession(void 0);
|
|
2165
|
-
setAccessContext(null);
|
|
2166
|
-
setWorkspaces([]);
|
|
2167
|
-
setAccessError(null);
|
|
2168
|
-
});
|
|
2169
|
-
configureManagedActorEpoch(transition.to?.actorEpoch ?? null);
|
|
2170
|
-
flushSync(() => {
|
|
2171
|
-
setAccessKeyVersion((version) => version + 1);
|
|
2172
|
-
});
|
|
2173
|
-
if (transition.to === null) return;
|
|
2174
|
-
if (transition.to.selectedSlotId === null || transition.to.state !== "ready") {
|
|
2175
|
-
forgetSignedOutBrowserData();
|
|
2176
|
-
void prepareRecordingsForSignOut(null, { ask: false });
|
|
2177
|
-
authPrincipalIdRef.current = null;
|
|
2178
|
-
setAuthSession(null);
|
|
2179
|
-
setSession(null);
|
|
2180
|
-
await navigate({ to: "/", replace: true });
|
|
2181
|
-
return;
|
|
2182
|
-
}
|
|
2183
|
-
const acceptedPrincipal = principalTransitionIdentity.current;
|
|
2184
|
-
const ownsInvocation = () => !transition.signal.aborted && ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal);
|
|
2185
|
-
try {
|
|
2186
|
-
const sessionRead = await runCurrentTransitionInvocation({
|
|
2187
|
-
isCurrent: ownsInvocation,
|
|
2188
|
-
request: fetchAuthSession
|
|
2189
|
-
});
|
|
2190
|
-
if (sessionRead.status === "stale") return;
|
|
2191
|
-
const nextSession = sessionRead.value;
|
|
2192
|
-
authPrincipalIdRef.current = nextSession?.user.id ?? null;
|
|
2193
|
-
setAuthSession(nextSession);
|
|
2194
|
-
} catch (error) {
|
|
2195
|
-
if (ownsInvocation()) setAuthSession(null);
|
|
2196
|
-
throw error;
|
|
2197
|
-
}
|
|
2198
|
-
}
|
|
2199
|
-
const contextAddManualRepository = useLatestCallback(addManualRepository);
|
|
2200
|
-
const contextForgetAccessKey = useLatestCallback(forgetAccessKey);
|
|
2201
|
-
const contextHandleManagedSignOut = useLatestCallback(handleManagedSignOut);
|
|
2202
|
-
const contextHandleBrowserActorTransition = useLatestCallback(handleBrowserActorTransition);
|
|
2203
|
-
const revalidatePrincipalAccess = useCallback(
|
|
2204
|
-
() => setAccessKeyVersion((version) => version + 1),
|
|
2205
|
-
[]
|
|
2206
|
-
);
|
|
2207
|
-
const completeOrganizationOnboarding = useCallback(
|
|
2208
|
-
async (destination) => {
|
|
2209
|
-
const arrived = destination?.sessionId ? navigate({
|
|
2210
|
-
to: "/workspaces/$workspaceId/sessions/$sessionId",
|
|
2211
|
-
params: { workspaceId: destination.workspaceId, sessionId: destination.sessionId }
|
|
2212
|
-
}) : destination?.page === "get-started" ? navigate({
|
|
2213
|
-
to: "/workspaces/$workspaceId/get-started",
|
|
2214
|
-
params: { workspaceId: destination.workspaceId }
|
|
2215
|
-
}) : destination ? navigate({
|
|
2216
|
-
to: "/workspaces/$workspaceId/sessions",
|
|
2217
|
-
params: { workspaceId: destination.workspaceId }
|
|
2218
|
-
}) : null;
|
|
2219
|
-
revalidatePrincipalAccess();
|
|
2220
|
-
await arrived;
|
|
2221
|
-
},
|
|
2222
|
-
[navigate, revalidatePrincipalAccess]
|
|
2223
|
-
);
|
|
2224
|
-
async function refreshPrincipalAccess() {
|
|
2225
|
-
if (!clientConfig || !authReady) return false;
|
|
2226
|
-
let acceptedPrincipal = principalTransitionIdentity.current;
|
|
2227
|
-
const acceptedManagedIdentity = clientConfig.auth.mode === "managedSession" && authSession ? managedSelfContextIdentity({
|
|
2228
|
-
credentialGeneration: accessKeyVersion,
|
|
2229
|
-
managedUserId: authSession.user.id
|
|
2230
|
-
}) : null;
|
|
2231
|
-
managedSelfContextIdentityRef.current = acceptedManagedIdentity;
|
|
2232
|
-
const selfContextPromise = acceptedManagedIdentity ? loadCurrentManagedSelfContext({
|
|
2233
|
-
identity: acceptedManagedIdentity,
|
|
2234
|
-
currentIdentity: () => managedSelfContextIdentityRef.current,
|
|
2235
|
-
request: () => client.listOrganizationMemberships()
|
|
2236
|
-
}) : Promise.resolve(null);
|
|
2237
|
-
const [nextAccessContext, nextWorkspaces, nextManagedSelfContext] = await Promise.all([
|
|
2238
|
-
client.getAccessContext(),
|
|
2239
|
-
client.listWorkspaces(),
|
|
2240
|
-
selfContextPromise
|
|
2241
|
-
]);
|
|
2242
|
-
if (!ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
2243
|
-
return false;
|
|
2244
|
-
}
|
|
2245
|
-
if (acceptedManagedIdentity && nextManagedSelfContext === null) return false;
|
|
2246
|
-
if (nextManagedSelfContext && nextAccessContext.subjectId !== nextManagedSelfContext.identity.subjectId) {
|
|
2247
|
-
throw new Error("managed self context did not match the authenticated subject");
|
|
2248
|
-
}
|
|
2249
|
-
if (accessPrincipalIdRef.current !== null && accessPrincipalIdRef.current !== nextAccessContext.subjectId) {
|
|
2250
|
-
invalidatePrincipalWorkspaceState();
|
|
2251
|
-
acceptedPrincipal = principalTransitionIdentity.current;
|
|
2252
|
-
managedSelfContextIdentityRef.current = acceptedManagedIdentity;
|
|
2253
|
-
}
|
|
2254
|
-
if (!ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
2255
|
-
return false;
|
|
2256
|
-
}
|
|
2257
|
-
accessPrincipalIdRef.current = nextAccessContext.subjectId;
|
|
2258
|
-
claimHumanInputDraftOwner(nextAccessContext.subjectId);
|
|
2259
|
-
setAccessContext(nextAccessContext);
|
|
2260
|
-
setWorkspaces(nextWorkspaces);
|
|
2261
|
-
setManagedSelfContext(nextManagedSelfContext);
|
|
2262
|
-
return true;
|
|
2263
|
-
}
|
|
2264
|
-
const contextRefreshPrincipalAccess = useLatestCallback(refreshPrincipalAccess);
|
|
2265
|
-
const contextCreateWorkspace = useLatestCallback(createWorkspace);
|
|
2266
|
-
const contextRenameWorkspace = useLatestCallback(renameWorkspace);
|
|
2267
|
-
const contextSetWorkspaceInferenceControl = useLatestCallback(setWorkspaceInferenceControl);
|
|
2268
|
-
const contextUpdateWorkspaceSettings = useLatestCallback(updateWorkspaceSettings);
|
|
2269
|
-
const contextSetWorkspaceDefaultRig = useLatestCallback(setWorkspaceDefaultRig);
|
|
2270
|
-
const contextUpdateSessionTitle = useLatestCallback(updateSessionTitle);
|
|
2271
|
-
const contextUpdateSessionProfile = useLatestCallback(updateSessionProfile);
|
|
2272
|
-
const contextUpdateSessionPin = useLatestCallback(updateSessionPin);
|
|
2273
|
-
const contextDeleteWorkspace = useLatestCallback(deleteWorkspace);
|
|
2274
|
-
const contextStartGitHubAppManifestFlow = useLatestCallback(startGitHubAppManifestFlow);
|
|
2275
|
-
const contextDisconnectGitHubInstallation = useLatestCallback(disconnectGitHubInstallation);
|
|
2276
|
-
const contextToggleGitHubRepository = useLatestCallback(toggleGitHubRepository);
|
|
2277
|
-
const contextConnectPersonalGitHub = useLatestCallback(
|
|
2278
|
-
(workspaceId) => beginPersonalGitHubOAuth(workspaceId, false)
|
|
2279
|
-
);
|
|
2280
|
-
const contextReconnectPersonalGitHub = useLatestCallback(
|
|
2281
|
-
(workspaceId) => beginPersonalGitHubOAuth(workspaceId, true)
|
|
2282
|
-
);
|
|
2283
|
-
const contextDisconnectPersonalGitHub = useLatestCallback(disconnectPersonalGitHub);
|
|
2284
|
-
const contextSavePersonalGitHubRepositories = useLatestCallback(savePersonalGitHubRepositories);
|
|
2285
|
-
const contextSearchPersonalGitHubRepositories = useLatestCallback(
|
|
2286
|
-
searchPersonalGitHubRepositories
|
|
2287
|
-
);
|
|
2288
|
-
const contextEnsurePersonalGitHubAuthority = useLatestCallback(ensurePersonalGitHubAuthority);
|
|
2289
|
-
const contextTogglePersonalGitHubRepository = useLatestCallback(togglePersonalGitHubRepository);
|
|
2290
|
-
const contextStartSession = useLatestCallback(startSession);
|
|
2291
|
-
const preparePendingSlackLink = useCallback(
|
|
2292
|
-
async (workspaceId) => await slackLink.prepare(
|
|
2293
|
-
workspaceId,
|
|
2294
|
-
async (token) => await client.prepareSlackUserLinkAccess(workspaceId, {
|
|
2295
|
-
linkToken: token
|
|
2296
|
-
})
|
|
2297
|
-
),
|
|
2298
|
-
[client, slackLink]
|
|
2299
|
-
);
|
|
2300
|
-
const clearSlackLinkContinuation = useCallback(() => {
|
|
2301
|
-
slackLink.clear();
|
|
2302
|
-
setSlackLinkContinuationWorkspaceId(null);
|
|
2303
|
-
setSlackLinkLinkedWorkspaceId(null);
|
|
2304
|
-
}, [slackLink]);
|
|
2305
|
-
const completeSlackLinkContinuation = useCallback(
|
|
2306
|
-
(workspaceId) => {
|
|
2307
|
-
slackLink.clear();
|
|
2308
|
-
setSlackLinkContinuationWorkspaceId(null);
|
|
2309
|
-
setSlackLinkLinkedWorkspaceId(workspaceId);
|
|
2310
|
-
},
|
|
2311
|
-
[slackLink]
|
|
2312
|
-
);
|
|
2313
|
-
const appContext = useMemo(() => {
|
|
2314
|
-
return clientConfig && accessContext ? {
|
|
2315
|
-
client,
|
|
2316
|
-
clientConfig: withWorkspaceClientConfig(clientConfig, workspaceConfig),
|
|
2317
|
-
refreshWorkspaceConfig,
|
|
2318
|
-
authSession: authSession ?? null,
|
|
2319
|
-
accessContext,
|
|
2320
|
-
workspaces,
|
|
2321
|
-
managedSelfContext,
|
|
2322
|
-
slackLinkContinuationWorkspaceId,
|
|
2323
|
-
slackLinkLinkedWorkspaceId,
|
|
2324
|
-
invalidSlackLinkQueryWorkspaceId,
|
|
2325
|
-
preparePendingSlackLink,
|
|
2326
|
-
clearSlackLinkContinuation,
|
|
2327
|
-
completeSlackLinkContinuation,
|
|
2328
|
-
accessKeyVersion,
|
|
2329
|
-
keyAuthRequired: keyAuthRequired === true,
|
|
2330
|
-
model,
|
|
2331
|
-
setModel,
|
|
2332
|
-
reasoningEffort,
|
|
2333
|
-
setReasoningEffort,
|
|
2334
|
-
latencyMode,
|
|
2335
|
-
setLatencyMode,
|
|
2336
|
-
inspectorOpen,
|
|
2337
|
-
setInspectorOpen,
|
|
2338
|
-
inspectorHint,
|
|
2339
|
-
setInspectorHint,
|
|
2340
|
-
session,
|
|
2341
|
-
setSession,
|
|
2342
|
-
sessionChannelProjectionAuthority,
|
|
2343
|
-
sessionCreationHandoff,
|
|
2344
|
-
connectionState,
|
|
2345
|
-
setConnectionState,
|
|
2346
|
-
sessionEventFeedStore,
|
|
2347
|
-
manualRepos,
|
|
2348
|
-
setManualRepos,
|
|
2349
|
-
manualReposOpen,
|
|
2350
|
-
setManualReposOpen,
|
|
2351
|
-
selectedRepoIds,
|
|
2352
|
-
setSelectedRepoIds,
|
|
2353
|
-
selectedRepoRefs,
|
|
2354
|
-
setSelectedRepoRefs,
|
|
2355
|
-
githubRepos,
|
|
2356
|
-
githubStatus,
|
|
2357
|
-
githubStatusFailed,
|
|
2358
|
-
githubCatalogReady,
|
|
2359
|
-
personalGitHubStatus,
|
|
2360
|
-
personalGitHubRepositories,
|
|
2361
|
-
personalGitHubSelection,
|
|
2362
|
-
personalGitHubCatalogReady,
|
|
2363
|
-
personalGitHubBusy,
|
|
2364
|
-
selectedPersonalGitHubRepoIds,
|
|
2365
|
-
setSelectedPersonalGitHubRepoIds,
|
|
2366
|
-
selectedPersonalGitHubRepoRefs,
|
|
2367
|
-
setSelectedPersonalGitHubRepoRefs,
|
|
2368
|
-
personalGitHubAuthority,
|
|
2369
|
-
githubOrg,
|
|
2370
|
-
setGithubOrg,
|
|
2371
|
-
selectedCapabilityToolIds,
|
|
2372
|
-
setSelectedCapabilityToolIds,
|
|
2373
|
-
busy,
|
|
2374
|
-
repoBusy,
|
|
2375
|
-
githubAppBusy,
|
|
2376
|
-
repositoryGroups,
|
|
2377
|
-
toolMcpServers,
|
|
2378
|
-
workspaceDefaultToolIds,
|
|
2379
|
-
workspaceMcpCatalogReady,
|
|
2380
|
-
workspaceMcpCatalogLoadedSuccessfully,
|
|
2381
|
-
workspaceCapabilityCatalog,
|
|
2382
|
-
workspaceMemberIntegrationSetup,
|
|
2383
|
-
currentResources,
|
|
2384
|
-
repositoryValidationError,
|
|
2385
|
-
workspaceStateOwnerId,
|
|
2386
|
-
prepareWorkspaceTransition,
|
|
2387
|
-
captureWorkspaceInvocation,
|
|
2388
|
-
ownsWorkspaceInvocation,
|
|
2389
|
-
addManualRepository: contextAddManualRepository,
|
|
2390
|
-
forgetAccessKey: contextForgetAccessKey,
|
|
2391
|
-
handleManagedSignOut: contextHandleManagedSignOut,
|
|
2392
|
-
revalidatePrincipalAccess,
|
|
2393
|
-
refreshPrincipalAccess: contextRefreshPrincipalAccess,
|
|
2394
|
-
createWorkspace: contextCreateWorkspace,
|
|
2395
|
-
renameWorkspace: contextRenameWorkspace,
|
|
2396
|
-
setWorkspaceInferenceControl: contextSetWorkspaceInferenceControl,
|
|
2397
|
-
refreshWorkspace,
|
|
2398
|
-
updateWorkspaceSettings: contextUpdateWorkspaceSettings,
|
|
2399
|
-
setWorkspaceDefaultRig: contextSetWorkspaceDefaultRig,
|
|
2400
|
-
updateSessionTitle: contextUpdateSessionTitle,
|
|
2401
|
-
updateSessionProfile: contextUpdateSessionProfile,
|
|
2402
|
-
updateSessionPin: contextUpdateSessionPin,
|
|
2403
|
-
deleteWorkspace: contextDeleteWorkspace,
|
|
2404
|
-
refreshGitHub,
|
|
2405
|
-
refreshPersonalGitHub,
|
|
2406
|
-
connectPersonalGitHub: contextConnectPersonalGitHub,
|
|
2407
|
-
reconnectPersonalGitHub: contextReconnectPersonalGitHub,
|
|
2408
|
-
disconnectPersonalGitHub: contextDisconnectPersonalGitHub,
|
|
2409
|
-
savePersonalGitHubRepositories: contextSavePersonalGitHubRepositories,
|
|
2410
|
-
searchPersonalGitHubRepositories: contextSearchPersonalGitHubRepositories,
|
|
2411
|
-
ensurePersonalGitHubAuthority: contextEnsurePersonalGitHubAuthority,
|
|
2412
|
-
togglePersonalGitHubRepository: contextTogglePersonalGitHubRepository,
|
|
2413
|
-
refreshWorkspaceMcpServers,
|
|
2414
|
-
startGitHubAppManifestFlow: contextStartGitHubAppManifestFlow,
|
|
2415
|
-
disconnectGitHubInstallation: contextDisconnectGitHubInstallation,
|
|
2416
|
-
toggleGitHubRepository: contextToggleGitHubRepository,
|
|
2417
|
-
startSession: contextStartSession,
|
|
2418
|
-
resetSessionView,
|
|
2419
|
-
resetWorkspaceIntegrations
|
|
2420
|
-
} : null;
|
|
2421
|
-
}, [
|
|
2422
|
-
accessContext,
|
|
2423
|
-
accessKeyVersion,
|
|
2424
|
-
authSession,
|
|
2425
|
-
busy,
|
|
2426
|
-
captureWorkspaceInvocation,
|
|
2427
|
-
clearSlackLinkContinuation,
|
|
2428
|
-
completeSlackLinkContinuation,
|
|
2429
|
-
client,
|
|
2430
|
-
clientConfig,
|
|
2431
|
-
workspaceConfig,
|
|
2432
|
-
refreshWorkspaceConfig,
|
|
2433
|
-
connectionState,
|
|
2434
|
-
contextAddManualRepository,
|
|
2435
|
-
contextCreateWorkspace,
|
|
2436
|
-
contextDeleteWorkspace,
|
|
2437
|
-
contextConnectPersonalGitHub,
|
|
2438
|
-
contextDisconnectPersonalGitHub,
|
|
2439
|
-
contextEnsurePersonalGitHubAuthority,
|
|
2440
|
-
contextForgetAccessKey,
|
|
2441
|
-
contextHandleManagedSignOut,
|
|
2442
|
-
contextRenameWorkspace,
|
|
2443
|
-
contextReconnectPersonalGitHub,
|
|
2444
|
-
contextSavePersonalGitHubRepositories,
|
|
2445
|
-
contextSearchPersonalGitHubRepositories,
|
|
2446
|
-
contextSetWorkspaceInferenceControl,
|
|
2447
|
-
contextUpdateSessionProfile,
|
|
2448
|
-
contextSetWorkspaceDefaultRig,
|
|
2449
|
-
contextDisconnectGitHubInstallation,
|
|
2450
|
-
contextStartGitHubAppManifestFlow,
|
|
2451
|
-
contextStartSession,
|
|
2452
|
-
contextToggleGitHubRepository,
|
|
2453
|
-
contextTogglePersonalGitHubRepository,
|
|
2454
|
-
contextUpdateSessionPin,
|
|
2455
|
-
contextUpdateSessionTitle,
|
|
2456
|
-
contextUpdateWorkspaceSettings,
|
|
2457
|
-
currentResources,
|
|
2458
|
-
repositoryValidationError,
|
|
2459
|
-
githubAppBusy,
|
|
2460
|
-
githubOrg,
|
|
2461
|
-
githubRepos,
|
|
2462
|
-
githubStatus,
|
|
2463
|
-
githubStatusFailed,
|
|
2464
|
-
personalGitHubStatus,
|
|
2465
|
-
personalGitHubRepositories,
|
|
2466
|
-
personalGitHubSelection,
|
|
2467
|
-
personalGitHubCatalogReady,
|
|
2468
|
-
personalGitHubBusy,
|
|
2469
|
-
selectedPersonalGitHubRepoIds,
|
|
2470
|
-
selectedPersonalGitHubRepoRefs,
|
|
2471
|
-
personalGitHubAuthority,
|
|
2472
|
-
githubCatalogReady,
|
|
2473
|
-
inspectorOpen,
|
|
2474
|
-
inspectorHint,
|
|
2475
|
-
invalidSlackLinkQueryWorkspaceId,
|
|
2476
|
-
keyAuthRequired,
|
|
2477
|
-
manualRepos,
|
|
2478
|
-
manualReposOpen,
|
|
2479
|
-
managedSelfContext,
|
|
2480
|
-
model,
|
|
2481
|
-
ownsWorkspaceInvocation,
|
|
2482
|
-
preparePendingSlackLink,
|
|
2483
|
-
prepareWorkspaceTransition,
|
|
2484
|
-
slackLinkContinuationWorkspaceId,
|
|
2485
|
-
slackLinkLinkedWorkspaceId,
|
|
2486
|
-
latencyMode,
|
|
2487
|
-
reasoningEffort,
|
|
2488
|
-
revalidatePrincipalAccess,
|
|
2489
|
-
contextRefreshPrincipalAccess,
|
|
2490
|
-
refreshGitHub,
|
|
2491
|
-
refreshPersonalGitHub,
|
|
2492
|
-
refreshWorkspace,
|
|
2493
|
-
refreshWorkspaceMcpServers,
|
|
2494
|
-
repoBusy,
|
|
2495
|
-
repositoryGroups,
|
|
2496
|
-
resetSessionView,
|
|
2497
|
-
resetWorkspaceIntegrations,
|
|
2498
|
-
selectedCapabilityToolIds,
|
|
2499
|
-
selectedRepoIds,
|
|
2500
|
-
selectedRepoRefs,
|
|
2501
|
-
session,
|
|
2502
|
-
sessionChannelProjectionAuthority,
|
|
2503
|
-
sessionCreationHandoff,
|
|
2504
|
-
sessionEventFeedStore,
|
|
2505
|
-
setSession,
|
|
2506
|
-
toolMcpServers,
|
|
2507
|
-
workspaceDefaultToolIds,
|
|
2508
|
-
workspaceMcpCatalogReady,
|
|
2509
|
-
workspaceMcpCatalogLoadedSuccessfully,
|
|
2510
|
-
workspaceCapabilityCatalog,
|
|
2511
|
-
workspaceMemberIntegrationSetup,
|
|
2512
|
-
workspaceStateOwnerId,
|
|
2513
|
-
workspaces
|
|
2514
|
-
]);
|
|
2515
|
-
return {
|
|
2516
|
-
appContext,
|
|
2517
|
-
client,
|
|
2518
|
-
clientConfig,
|
|
2519
|
-
configError,
|
|
2520
|
-
retryClientConfig: () => {
|
|
2521
|
-
setConfigError((current) => current?.recovering ? current : null);
|
|
2522
|
-
setConfigRequestVersion((version) => version + 1);
|
|
2523
|
-
},
|
|
2524
|
-
authSession,
|
|
2525
|
-
accessContext,
|
|
2526
|
-
accessError,
|
|
2527
|
-
accessLoading,
|
|
2528
|
-
accessKeyVersion,
|
|
2529
|
-
retryAccess: () => setAccessKeyVersion((version) => version + 1),
|
|
2530
|
-
keyAuthRequired,
|
|
2531
|
-
hasAccessKey,
|
|
2532
|
-
accessKeyDraft,
|
|
2533
|
-
setAccessKeyDraft,
|
|
2534
|
-
saveAccessKey,
|
|
2535
|
-
managedAuthRequired,
|
|
2536
|
-
managedEmailVerificationRequired,
|
|
2537
|
-
managedNewSignupsEnabled,
|
|
2538
|
-
managedSocialProviders,
|
|
2539
|
-
managedPasskeySignIn,
|
|
2540
|
-
managedPasskeySignUp,
|
|
2541
|
-
browserAccountsConfigured,
|
|
2542
|
-
browserAccountsEnabled,
|
|
2543
|
-
handleManagedAuth,
|
|
2544
|
-
handleManagedSessionSetSignup,
|
|
2545
|
-
handleManagedSocialAuth,
|
|
2546
|
-
handleManagedPasskeyAuth,
|
|
2547
|
-
handleManagedSignOut: contextHandleManagedSignOut,
|
|
2548
|
-
handleBrowserActorTransition: contextHandleBrowserActorTransition,
|
|
2549
|
-
completeOrganizationOnboarding,
|
|
2550
|
-
revalidatePrincipalAccess,
|
|
2551
|
-
defaultWorkspaceId,
|
|
2552
|
-
slackLinkContinuationWorkspaceId,
|
|
2553
|
-
slackLinkLinkedWorkspaceId,
|
|
2554
|
-
routedWorkspace,
|
|
2555
|
-
creditRequired,
|
|
2556
|
-
setCreditRequired,
|
|
2557
|
-
mutationBusy: busy || repoBusy || githubAppBusy || pendingCreateAttempt.current !== null
|
|
2558
|
-
};
|
|
2559
|
-
}
|
|
2560
|
-
function submitGitHubManifest(actionUrl, manifest, newTab) {
|
|
2561
|
-
const form = document.createElement("form");
|
|
2562
|
-
form.method = "POST";
|
|
2563
|
-
form.action = actionUrl;
|
|
2564
|
-
if (newTab) form.target = "_blank";
|
|
2565
|
-
form.style.display = "none";
|
|
2566
|
-
form.acceptCharset = "utf-8";
|
|
2567
|
-
const input = document.createElement("input");
|
|
2568
|
-
input.type = "hidden";
|
|
2569
|
-
input.name = "manifest";
|
|
2570
|
-
input.value = JSON.stringify(manifest);
|
|
2571
|
-
form.append(input);
|
|
2572
|
-
document.body.append(form);
|
|
2573
|
-
form.submit();
|
|
2574
|
-
if (newTab) form.remove();
|
|
2575
|
-
}
|
|
2576
|
-
function usablePersonalGitHubRepository(repository) {
|
|
2577
|
-
if (repository.effectiveAccess === void 0) return repository;
|
|
2578
|
-
return repository.effectiveAccess === repository.selectedAccess ? repository : { ...repository, selectedAccess: repository.effectiveAccess };
|
|
2579
|
-
}
|
|
2580
|
-
|
|
2581
|
-
export {
|
|
2582
|
-
PRINCIPAL_RECHECK_INTERVAL_MS,
|
|
2583
|
-
GITHUB_STATUS_TOAST_ID,
|
|
2584
|
-
PERSONAL_GITHUB_STATUS_TOAST_ID,
|
|
2585
|
-
PERSONAL_GITHUB_RECONNECT_TOAST_ID,
|
|
2586
|
-
showPersonalGitHubReconnectToast,
|
|
2587
|
-
preserveSlackLinkForManagedAuth,
|
|
2588
|
-
createSlackLinkPrepareController,
|
|
2589
|
-
useAppState
|
|
2590
|
-
};
|
|
2591
|
-
//# sourceMappingURL=chunk-WRFXCMRW.js.map
|