@opengeni/react 6.5.2-canary.41607687019001 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/app-state.d.ts +4 -0
- package/dist/app/app-state.js +19 -14
- package/dist/app/components/Composer.js +25 -23
- package/dist/app/components/agent/agent-capability-picker.js +10 -8
- package/dist/app/components/artifacts/artifact-browse-controls.js +4 -4
- package/dist/app/components/artifacts/artifact-library.js +21 -19
- package/dist/app/components/artifacts/artifact-page-chrome.js +3 -3
- package/dist/app/components/artifacts/artifact-viewer.js +23 -22
- package/dist/app/components/artifacts/artifact-viewer.js.map +1 -1
- package/dist/app/components/artifacts/chat-interactive-block.js +12 -12
- package/dist/app/components/artifacts/copy-artifact-link.js +7 -5
- package/dist/app/components/artifacts/file-reach-dialog.js +11 -9
- package/dist/app/components/artifacts/inline-chat-image.js +18 -18
- package/dist/app/components/artifacts/retained-file-preview.js +24 -23
- package/dist/app/components/artifacts/retained-text-preview.js +3 -3
- package/dist/app/components/artifacts/site-audience.js +6 -5
- package/dist/app/components/artifacts/site-conversations.js +16 -14
- package/dist/app/components/artifacts/site-data.js +18 -16
- package/dist/app/components/artifacts/site-public-link.js +3 -2
- package/dist/app/components/artifacts/site-publishing-page.js +39 -37
- package/dist/app/components/artifacts/site-publishing.js +34 -32
- package/dist/app/components/artifacts/site-settings.js +38 -36
- package/dist/app/components/artifacts/site-version-menu.js +8 -7
- package/dist/app/components/billing-class-mark.js +3 -3
- package/dist/app/components/bots/bot-launch-strip.js +17 -17
- package/dist/app/components/bots/bot-template-dialog.js +30 -28
- package/dist/app/components/bots/bot-template-shortcuts.js +19 -19
- package/dist/app/components/bots/bot-templates-page.js +38 -36
- package/dist/app/components/bots/bot-templates-page.js.map +1 -1
- package/dist/app/components/capabilities/capability-detail-sheet.js +13 -11
- package/dist/app/components/capabilities/capability-logo-source.js +13 -13
- package/dist/app/components/capabilities/capability-logo.js +4 -3
- package/dist/app/components/capabilities/connector-tool-permissions.js +8 -6
- package/dist/app/components/capabilities/native-connect-setup.js +14 -14
- package/dist/app/components/capabilities/own-logins-shared-heads-up.js +7 -6
- package/dist/app/components/capabilities/perform-capability-action.js +7 -6
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +17 -17
- package/dist/app/components/capabilities/session-capability-card.js +72 -70
- package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.js +28 -26
- package/dist/app/components/capabilities/session-connection-accounts.js +4 -3
- package/dist/app/components/capabilities/session-custom-mcp-card.js +20 -19
- package/dist/app/components/capabilities/session-github-card.js +22 -20
- package/dist/app/components/capabilities/session-machine-card.js +27 -25
- package/dist/app/components/capabilities/session-personal-github-card.js +16 -16
- package/dist/app/components/capabilities/session-plugin-card.js +10 -9
- package/dist/app/components/capabilities/use-capabilities-catalog.js +4 -3
- package/dist/app/components/capabilities/use-connection-accounts.js +5 -4
- package/dist/app/components/command-menu/chat-status.js +15 -13
- package/dist/app/components/command-menu/chat-switcher.js +35 -33
- package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
- package/dist/app/components/command-menu/command-menu.js +53 -50
- package/dist/app/components/command-menu/command-menu.js.map +1 -1
- package/dist/app/components/command-menu/shortcut-sheet.js +18 -16
- package/dist/app/components/command-menu/shortcut-sheet.js.map +1 -1
- package/dist/app/components/common.js +4 -3
- package/dist/app/components/composer-capabilities-menu-body.js +4 -4
- package/dist/app/components/composer-mobile-plus-panel.js +8 -8
- package/dist/app/components/composer-mobile-plus.js +1 -1
- package/dist/app/components/credit-required-gate.js +3 -3
- package/dist/app/components/credit-required-prompt.js +10 -8
- package/dist/app/components/credit-required-prompt.js.map +1 -1
- package/dist/app/components/credits/checkout-credits-celebration.js +3 -2
- package/dist/app/components/credits/checkout-return.js +3 -2
- package/dist/app/components/credits/checkout-return.js.map +1 -1
- package/dist/app/components/credits/coupon-redeem.js +5 -4
- package/dist/app/components/credits/credit-refusal-notice.js +7 -5
- package/dist/app/components/cross-slot-deep-link-recovery.js +5 -4
- package/dist/app/components/desktop/app-shots.js +13 -11
- package/dist/app/components/desktop/computer-use.js +6 -4
- package/dist/app/components/desktop/this-computer.js +9 -7
- package/dist/app/components/feedback.js +5 -4
- package/dist/app/components/follow-up-repository-menu-body.js +8 -6
- package/dist/app/components/follow-up-repository-menu-body.js.map +1 -1
- package/dist/app/components/follow-up-repository-picker.js +1 -1
- package/dist/app/components/github-app-connect-launcher.js +5 -4
- package/dist/app/components/in-app-help-link.js +3 -3
- package/dist/app/components/knowledge/agent-learning-settings.js +3 -2
- package/dist/app/components/knowledge/agent-learning-settings.js.map +1 -1
- package/dist/app/components/machines/connect-machine-dialog.js +18 -16
- package/dist/app/components/manual-repository-editor.js +3 -2
- package/dist/app/components/markdown.js +6 -6
- package/dist/app/components/models/models-ui.js +12 -10
- package/dist/app/components/my-things.js +12 -10
- package/dist/app/components/my-things.js.map +1 -1
- package/dist/app/components/new-session-starters.js +3 -3
- package/dist/app/components/own-where-it-works.js +9 -7
- package/dist/app/components/personal-resource-attachment-surface.js +4 -4
- package/dist/app/components/pickers.js +5 -5
- package/dist/app/components/rail/channel-create-dialog.js +7 -5
- package/dist/app/components/rail/project-glyph.js +17 -17
- package/dist/app/components/rail/project-profile.js +31 -29
- package/dist/app/components/rail/rail-context.js +3 -3
- package/dist/app/components/rail/rail-sections.js +68 -66
- package/dist/app/components/rail/session-header.js +59 -57
- package/dist/app/components/rail/session-list.js +66 -64
- package/dist/app/components/rail/session-row-content.js +4 -4
- package/dist/app/components/rail/session-row-hover-details.js +14 -12
- package/dist/app/components/rail/session-shell.js +90 -88
- package/dist/app/components/rail/site-session-group-heading.js +8 -8
- package/dist/app/components/repository-picker.js +8 -6
- package/dist/app/components/secrets/session-secrets-panel.js +4 -3
- package/dist/app/components/secrets/vault-model.js +3 -2
- package/dist/app/components/session/agent-configuration-panel.js +25 -23
- package/dist/app/components/session/agent-configuration-panel.js.map +1 -1
- package/dist/app/components/session/artifact-link-boundary.js +3 -3
- package/dist/app/components/session/artifact-session-page.js +11 -9
- package/dist/app/components/session/banners.js +8 -8
- package/dist/app/components/session/codex-usage-notice.js +5 -3
- package/dist/app/components/session/console-new-conversation.js +42 -40
- package/dist/app/components/session/context-text-reader.js +3 -2
- package/dist/app/components/session/descendant-requests.js +39 -37
- package/dist/app/components/session/descendant-requests.js.map +1 -1
- package/dist/app/components/session/editable-artifacts-workspace.js +36 -34
- package/dist/app/components/session/editable-artifacts-workspace.js.map +1 -1
- package/dist/app/components/session/failed-session-banner.js +13 -11
- package/dist/app/components/session/failed-session-banner.js.map +1 -1
- package/dist/app/components/session/failure-recovery-boundary.js +3 -3
- package/dist/app/components/session/human-input-delegation-record.js +2 -2
- package/dist/app/components/session/human-input.js +33 -31
- package/dist/app/components/session/inspector.js +57 -55
- package/dist/app/components/session/inspector.js.map +1 -1
- package/dist/app/components/session/message-actions.js +5 -4
- package/dist/app/components/session/message-actions.js.map +1 -1
- package/dist/app/components/session/message-resource-attachments.js +12 -11
- package/dist/app/components/session/message-resource-attachments.js.map +1 -1
- package/dist/app/components/session/model-context-inspector.js +6 -4
- package/dist/app/components/session/model-recovery-notice.js +3 -3
- package/dist/app/components/session/new-session-settings-menu.js +11 -9
- package/dist/app/components/session/new-session-setup-strip.js +18 -18
- package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
- package/dist/app/components/session/sandbox-switcher.js +10 -9
- package/dist/app/components/session/sandbox-workspace.js +47 -46
- package/dist/app/components/session/search-markdown-highlight.js +7 -7
- package/dist/app/components/session/search-results-view.js +8 -8
- package/dist/app/components/session/session-admin-access.js +13 -11
- package/dist/app/components/session/session-admission-notice.js +7 -5
- package/dist/app/components/session/session-avatar-picker.js +22 -20
- package/dist/app/components/session/session-avatar.js +16 -16
- package/dist/app/components/session/session-machine-access-notice.js +7 -5
- package/dist/app/components/session/session-profile-dialog.js +29 -27
- package/dist/app/components/session/session-profile-editor.js +30 -28
- package/dist/app/components/session/session-retention.js +10 -8
- package/dist/app/components/session/session-search-dialog.js +10 -10
- package/dist/app/components/session/session-skill-reviews.js +2 -1
- package/dist/app/components/session/session-skill-reviews.js.map +1 -1
- package/dist/app/components/session/session-tenancy-control.js +13 -11
- package/dist/app/components/session/session-tenancy-control.js.map +1 -1
- package/dist/app/components/session/session-unattended-setting.js +7 -5
- package/dist/app/components/session/session-usage-limit-section.js +11 -9
- package/dist/app/components/session/share-chat-dialog.js +9 -7
- package/dist/app/components/session/site-origin-link.js +3 -3
- package/dist/app/components/session/subagents.js +8 -8
- package/dist/app/components/session/subscription-account-indicator.js +6 -6
- package/dist/app/components/session-connectors-menu-body.js +4 -3
- package/dist/app/components/session-connectors-menu-body.js.map +1 -1
- package/dist/app/components/settings/row-select.js +7 -5
- package/dist/app/components/toaster.js +3 -2
- package/dist/app/components/transcription-settings.js +11 -9
- package/dist/app/components/ui/destructive-confirm.js +11 -9
- package/dist/app/components/usage/usage-entry.js +5 -5
- package/dist/app/components/window-bar.js +16 -14
- package/dist/app/components/workspace-composer-plus.js +22 -21
- package/dist/app/components/workspace-reach.js +6 -4
- package/dist/app/components/workspace-tenant-boundary.js +5 -4
- package/dist/app/embed/memory-navigation.js +3 -3
- package/dist/app/embed/session-app.js +211 -209
- package/dist/app/lib/actions/actions-provider.js +15 -13
- package/dist/app/lib/agent-capabilities.js +3 -3
- package/dist/app/lib/app-surfaces.js +7 -6
- package/dist/app/lib/archive-session.d.ts +9 -4
- package/dist/app/lib/archive-session.js +4 -2
- package/dist/app/lib/bot-templates.js +3 -2
- package/dist/app/lib/capabilities.js +3 -2
- package/dist/app/lib/codex-usage-query.js +2 -2
- package/dist/app/lib/composer-connectors.js +17 -16
- package/dist/app/lib/console-site.js +2 -2
- package/dist/app/lib/console-text.js +2 -2
- package/dist/app/lib/events.js +9 -9
- package/dist/app/lib/failed-session-copy.js +3 -3
- package/dist/app/lib/inbox.js +4 -2
- package/dist/app/lib/model-access-onboarding.js +3 -3
- package/dist/app/lib/move-chat-to-machine.js +3 -3
- package/dist/app/lib/navigation.js +2 -2
- package/dist/app/lib/session-branch-cache.js +6 -6
- package/dist/app/lib/session-create.js +4 -4
- package/dist/app/lib/session-group-pagination.js +6 -6
- package/dist/app/lib/session-hover-facts.js +13 -11
- package/dist/app/lib/session-model.js +2 -2
- package/dist/app/lib/session-rail.js +3 -3
- package/dist/app/lib/session-rename.js +3 -3
- package/dist/app/lib/session-restart-operation-controller.js +4 -3
- package/dist/app/lib/session-tenancy.js +3 -2
- package/dist/app/lib/session-usage-limit.js +3 -2
- package/dist/app/lib/sessions-group.js +5 -5
- package/dist/app/lib/site-publishing.js +3 -2
- package/dist/app/lib/site-tool-consent-dialog.js +9 -7
- package/dist/app/lib/site-tool-consent-dialog.js.map +1 -1
- package/dist/app/lib/site-tool-consent.js +1 -1
- package/dist/app/lib/subscription-plans.js +3 -2
- package/dist/app/lib/toast.js +2 -1
- package/dist/app/lib/turn-failure-analytics.js +4 -4
- package/dist/app/lib/use-duplicate-site.js +6 -5
- package/dist/app/lib/use-follow-up-repositories.js +6 -5
- package/dist/app/lib/use-workspace-integrations.js +4 -3
- package/dist/app/lib/use-workspace-machines.js +4 -4
- package/dist/app/lib/use-workspace-model-catalog.js +5 -4
- package/dist/app/lib/use-workspace-rigs.js +2 -2
- package/dist/app/lib/workspace-navigation-preference.js +4 -4
- package/dist/app/lib/workspace-scope-context.js +3 -3
- package/dist/app/routes/artifacts.js +67 -66
- package/dist/app/routes/artifacts.js.map +1 -1
- package/dist/app/routes/retained-artifact.js +42 -40
- package/dist/app/routes/retained-artifact.js.map +1 -1
- package/dist/app/routes/session-unavailable.js +8 -7
- package/dist/app/routes/session.js +119 -117
- package/dist/app/routes/sessions-index-hydration.js +5 -5
- package/dist/app/routes/sessions-index.js +104 -102
- package/dist/app/routes/site-view.js +67 -65
- package/dist/app/routes/site-view.js.map +1 -1
- package/dist/artifacts-document.js +4 -4
- package/dist/artifacts-presentation.js +4 -4
- package/dist/artifacts-spreadsheet.js +4 -4
- package/dist/artifacts.js +10 -10
- package/dist/automations.js +17 -15
- package/dist/automations.js.map +1 -1
- package/dist/browser-viewer-TC27OCIP.js +23 -0
- package/dist/chat-interactive-block-RWPQBHVS.js +18 -0
- package/dist/chunk-2BDT3UZQ.js +229 -0
- package/dist/chunk-2CLNIEK4.js +373 -0
- package/dist/chunk-2FSBSCZJ.js +451 -0
- package/dist/chunk-2I7HDP53.js +199 -0
- package/dist/chunk-2INLDVK3.js +15 -0
- package/dist/chunk-2KALVELR.js +126 -0
- package/dist/chunk-2M3J7ZWQ.js +418 -0
- package/dist/chunk-2OP6WLGV.js +708 -0
- package/dist/chunk-2RG7NIAS.js +2936 -0
- package/dist/chunk-2STUPWEL.js +135 -0
- package/dist/chunk-2YUOVM3G.js +271 -0
- package/dist/chunk-2Z3NQNTM.js +3670 -0
- package/dist/chunk-3CPWWGNK.js +920 -0
- package/dist/chunk-3ED2U6XE.js +37 -0
- package/dist/chunk-3GZA4BUW.js +216 -0
- package/dist/chunk-3IK6UYO6.js +1022 -0
- package/dist/chunk-3PZ7JZI2.js +431 -0
- package/dist/chunk-4DVJ6ONS.js +50 -0
- package/dist/chunk-4DVNUCRR.js +2386 -0
- package/dist/chunk-4DVNUCRR.js.map +1 -0
- package/dist/chunk-4E3ZJRTZ.js +41 -0
- package/dist/chunk-4SAWSRAA.js +141 -0
- package/dist/chunk-53AGXXZM.js +307 -0
- package/dist/chunk-54YW6SZZ.js +818 -0
- package/dist/chunk-57AZS3IE.js +2317 -0
- package/dist/chunk-5CPEEAFD.js +143 -0
- package/dist/chunk-5EWSRZ2Y.js +340 -0
- package/dist/chunk-5IE76VCY.js +387 -0
- package/dist/chunk-5NWEKLDZ.js +170 -0
- package/dist/chunk-5O2FCCHZ.js +198 -0
- package/dist/chunk-5QAY6K77.js +399 -0
- package/dist/chunk-5YKW2K6I.js +625 -0
- package/dist/chunk-5YKW2K6I.js.map +1 -0
- package/dist/chunk-6BCXNDEI.js +4116 -0
- package/dist/chunk-6BCXNDEI.js.map +1 -0
- package/dist/chunk-6DK6Z4UN.js +2599 -0
- package/dist/chunk-6DVCC7QS.js +702 -0
- package/dist/chunk-6JHU2UBS.js +2058 -0
- package/dist/chunk-6PZ7OBYU.js +490 -0
- package/dist/chunk-6WD2INST.js +539 -0
- package/dist/chunk-6WD2INST.js.map +1 -0
- package/dist/chunk-6WGRDRMA.js +163 -0
- package/dist/chunk-77WAKEAH.js +186 -0
- package/dist/chunk-7T2ZE3VT.js +5558 -0
- package/dist/chunk-7T2ZE3VT.js.map +1 -0
- package/dist/chunk-7TDO3CUM.js +393 -0
- package/dist/chunk-7TIX2UAR.js +247 -0
- package/dist/chunk-7V5REBCP.js +148 -0
- package/dist/chunk-7VMZGLYI.js +339 -0
- package/dist/chunk-7W37NS3I.js +236 -0
- package/dist/chunk-7X6SDK2C.js +111 -0
- package/dist/chunk-7ZNUHRP5.js +95 -0
- package/dist/chunk-A36PZALD.js +84 -0
- package/dist/chunk-AUI6VA63.js +107 -0
- package/dist/chunk-AW2MQB37.js +24 -0
- package/dist/chunk-AWKES45Y.js +198 -0
- package/dist/chunk-AXHZYXUV.js +132 -0
- package/dist/chunk-BHNSJVBC.js +129 -0
- package/dist/chunk-BJEJFISW.js +50 -0
- package/dist/chunk-BJFH6JI5.js +422 -0
- package/dist/chunk-BMICEQZQ.js +960 -0
- package/dist/chunk-BTLBYBLU.js +29 -0
- package/dist/chunk-BXBDYNRP.js +89 -0
- package/dist/chunk-C372BFOV.js +357 -0
- package/dist/chunk-C43KRXGA.js +234 -0
- package/dist/chunk-C43KRXGA.js.map +1 -0
- package/dist/chunk-CMKGILJK.js +4824 -0
- package/dist/chunk-CRAOSVHC.js +50 -0
- package/dist/chunk-CRU35QQH.js +281 -0
- package/dist/chunk-CUIWCGMA.js +172 -0
- package/dist/chunk-D5TWNFFE.js +38 -0
- package/dist/chunk-DF5EAHDN.js +4461 -0
- package/dist/chunk-DJAXC5OK.js +56 -0
- package/dist/chunk-DXBYWSL5.js +3550 -0
- package/dist/chunk-DXR5PDFP.js +84 -0
- package/dist/chunk-DZWARC4M.js +267 -0
- package/dist/chunk-DZXEDSQI.js +106 -0
- package/dist/chunk-E7XERZWC.js +48 -0
- package/dist/chunk-ECJBYNLJ.js +79 -0
- package/dist/chunk-EDI6SJ2N.js +43 -0
- package/dist/chunk-EWSOC6WF.js +114 -0
- package/dist/chunk-F2OPHAUN.js +103 -0
- package/dist/chunk-F4ISQGGM.js +81 -0
- package/dist/chunk-FO4LYKJL.js +197 -0
- package/dist/chunk-FPXASDG5.js +73 -0
- package/dist/chunk-FSOQDUCG.js +117 -0
- package/dist/chunk-FSOQDUCG.js.map +1 -0
- package/dist/chunk-FVXBNBHO.js +157 -0
- package/dist/chunk-FYWT2O76.js +34 -0
- package/dist/chunk-FYWT2O76.js.map +1 -0
- package/dist/chunk-FZC5N55X.js +981 -0
- package/dist/chunk-GAVYGBFI.js +99 -0
- package/dist/chunk-GFIMOUDT.js +846 -0
- package/dist/chunk-GFIMOUDT.js.map +1 -0
- package/dist/chunk-GKVJIDHF.js +33 -0
- package/dist/chunk-GVN5SZLX.js +212 -0
- package/dist/chunk-H3T7IWNA.js +134 -0
- package/dist/chunk-HAX4LCR5.js +261 -0
- package/dist/chunk-HC4JFZVU.js +121 -0
- package/dist/chunk-HEFPPMBQ.js +581 -0
- package/dist/chunk-HGKTHF2U.js +1356 -0
- package/dist/chunk-HGKTHF2U.js.map +1 -0
- package/dist/chunk-HNLR7Q4Z.js +83 -0
- package/dist/chunk-HSOXMJOT.js +12 -0
- package/dist/chunk-I4MRDSUF.js +281 -0
- package/dist/chunk-I4QEJ62Y.js +202 -0
- package/dist/chunk-I5B5L6Q4.js +56 -0
- package/dist/chunk-I5QZJODL.js +264 -0
- package/dist/chunk-I7ITSXSJ.js +603 -0
- package/dist/chunk-I7XIZRFD.js +390 -0
- package/dist/chunk-IDANQPRH.js +82 -0
- package/dist/chunk-IFB3WJ36.js +212 -0
- package/dist/chunk-IHTAKKTK.js +264 -0
- package/dist/chunk-IKXNLWAL.js +205 -0
- package/dist/chunk-IKXNLWAL.js.map +1 -0
- package/dist/chunk-ILDXWY37.js +173 -0
- package/dist/chunk-IMDQUHBJ.js +570 -0
- package/dist/chunk-IMZCQBOT.js +119 -0
- package/dist/chunk-IXPTECSC.js +403 -0
- package/dist/chunk-J255A3N5.js +71 -0
- package/dist/chunk-J5F5HPPW.js +141 -0
- package/dist/chunk-JDTGRRNU.js +5045 -0
- package/dist/chunk-JDTGRRNU.js.map +1 -0
- package/dist/chunk-JEA3QDX7.js +2469 -0
- package/dist/chunk-JEUPAVYY.js +156 -0
- package/dist/chunk-JKHKLL5W.js +194 -0
- package/dist/chunk-JQL7ZH6C.js +650 -0
- package/dist/chunk-JWB44UGJ.js +57 -0
- package/dist/chunk-JZ4NLCAP.js +333 -0
- package/dist/chunk-K2A5PXQ5.js +412 -0
- package/dist/chunk-K56XV3C3.js +623 -0
- package/dist/chunk-K6GAXXVA.js +23 -0
- package/dist/chunk-KCBMFSMS.js +199 -0
- package/dist/chunk-KF2FV3ZJ.js +268 -0
- package/dist/chunk-KJD65EJP.js +278 -0
- package/dist/chunk-KLEUWIMZ.js +386 -0
- package/dist/chunk-KODELWYT.js +309 -0
- package/dist/chunk-KRDR5RJD.js +83 -0
- package/dist/chunk-KUDGXAF7.js +914 -0
- package/dist/chunk-KY2R73CG.js +171 -0
- package/dist/chunk-KY2R73CG.js.map +1 -0
- package/dist/chunk-KYS77RPN.js +85 -0
- package/dist/chunk-L7YTNTIK.js +368 -0
- package/dist/chunk-LHPNABDH.js +686 -0
- package/dist/chunk-MFROMEKA.js +401 -0
- package/dist/chunk-MIHN76LX.js +2656 -0
- package/dist/chunk-MIYFS2XN.js +42 -0
- package/dist/chunk-MJUCFQMS.js +65 -0
- package/dist/chunk-MM4FNWI4.js +3064 -0
- package/dist/chunk-MNZG4OHU.js +790 -0
- package/dist/chunk-MVW6HNPI.js +250 -0
- package/dist/chunk-MVW6HNPI.js.map +1 -0
- package/dist/chunk-N6AACDUW.js +200 -0
- package/dist/chunk-NC55IFN3.js +781 -0
- package/dist/chunk-NC7PVOEK.js +98 -0
- package/dist/chunk-NCYMNCJO.js +70 -0
- package/dist/chunk-ND2BXV3P.js +259 -0
- package/dist/chunk-NDBTFUO6.js +272 -0
- package/dist/chunk-NDQJZ7HF.js +206 -0
- package/dist/chunk-NGJJJPZZ.js +162 -0
- package/dist/chunk-NJTSNNE7.js +251 -0
- package/dist/chunk-NPGISCU6.js +4159 -0
- package/dist/chunk-NPGISCU6.js.map +1 -0
- package/dist/chunk-NRTE7DNV.js +1270 -0
- package/dist/chunk-NULUNM7H.js +290 -0
- package/dist/chunk-NUNZS36W.js +227 -0
- package/dist/chunk-NW53H5RW.js +2424 -0
- package/dist/chunk-NXCMHIKI.js +263 -0
- package/dist/chunk-O3LKCBP5.js +159 -0
- package/dist/chunk-O4EA4F3W.js +103 -0
- package/dist/chunk-O4EA4F3W.js.map +1 -0
- package/dist/chunk-O4OOG3D6.js +116 -0
- package/dist/chunk-O4OOG3D6.js.map +1 -0
- package/dist/chunk-O6N4ABCA.js +376 -0
- package/dist/chunk-O732GAFC.js +112 -0
- package/dist/chunk-OF4TIKYC.js +690 -0
- package/dist/chunk-OMPVOMPP.js +70 -0
- package/dist/chunk-OPJJSKUK.js +118 -0
- package/dist/chunk-OPWCMA4D.js +196 -0
- package/dist/chunk-ORJPS5VN.js +1193 -0
- package/dist/chunk-OSY5K7L7.js +187 -0
- package/dist/chunk-OV6QJRT4.js +45 -0
- package/dist/chunk-OVKYVZMW.js +108 -0
- package/dist/chunk-OZCBM3UC.js +171 -0
- package/dist/chunk-P3A2EINJ.js +61 -0
- package/dist/chunk-PTAG4PDC.js +27 -0
- package/dist/chunk-PTF5B7TJ.js +298 -0
- package/dist/chunk-Q3DPEYX4.js +848 -0
- package/dist/chunk-Q6CGOPJD.js +215 -0
- package/dist/chunk-Q6CGOPJD.js.map +1 -0
- package/dist/chunk-QB2KMIDP.js +100 -0
- package/dist/chunk-QCSJ4CWE.js +1067 -0
- package/dist/chunk-QIOQ2NPQ.js +414 -0
- package/dist/chunk-QK5EFEUT.js +353 -0
- package/dist/chunk-QPQBLYQJ.js +41 -0
- package/dist/chunk-QPSGCC5D.js +184 -0
- package/dist/chunk-QZAAUQRN.js +474 -0
- package/dist/chunk-QZM6YDJW.js +489 -0
- package/dist/chunk-QZM6YDJW.js.map +1 -0
- package/dist/chunk-RGBI63KJ.js +188 -0
- package/dist/chunk-RLBKLAEY.js +138 -0
- package/dist/chunk-RMFKVOM7.js +304 -0
- package/dist/chunk-ROKQU7WG.js +258 -0
- package/dist/chunk-RPVREAU7.js +251 -0
- package/dist/chunk-RQKLF42C.js +723 -0
- package/dist/chunk-SC6RRD2D.js +38 -0
- package/dist/chunk-SC6RRD2D.js.map +1 -0
- package/dist/chunk-SEO7TICN.js +94 -0
- package/dist/chunk-SHHJCL7X.js +432 -0
- package/dist/chunk-SIRLACNZ.js +114 -0
- package/dist/chunk-SKPHMYAA.js +237 -0
- package/dist/chunk-SODC7T6L.js +1583 -0
- package/dist/chunk-SQJIKMN3.js +366 -0
- package/dist/chunk-SVINDKVW.js +26 -0
- package/dist/chunk-SYCDHPZF.js +335 -0
- package/dist/chunk-T2QX3FDP.js +133 -0
- package/dist/chunk-T3OWFVMS.js +1187 -0
- package/dist/chunk-T6XI5FLY.js +61 -0
- package/dist/chunk-T7OXJZCX.js +62 -0
- package/dist/chunk-TAT5USZN.js +353 -0
- package/dist/chunk-TPQTRNER.js +172 -0
- package/dist/chunk-TUIN4MB7.js +266 -0
- package/dist/chunk-TX3VECZU.js +71 -0
- package/dist/chunk-TXLIEOJX.js +9624 -0
- package/dist/chunk-U3DN4HEY.js +27 -0
- package/dist/chunk-U7XM7CB4.js +191 -0
- package/dist/chunk-UJK53QFL.js +140 -0
- package/dist/chunk-UMTXA2TH.js +319 -0
- package/dist/chunk-UPDSXFK5.js +199 -0
- package/dist/chunk-UTIAXH52.js +269 -0
- package/dist/chunk-UVN5TMHU.js +1184 -0
- package/dist/chunk-V4Z4B2E3.js +52 -0
- package/dist/chunk-V4Z4B2E3.js.map +1 -0
- package/dist/chunk-VGYXW3VG.js +246 -0
- package/dist/chunk-VS7AHPCZ.js +255 -0
- package/dist/chunk-VTTAJOQ7.js +121 -0
- package/dist/chunk-VWPOLUAO.js +99 -0
- package/dist/chunk-X3MWB2QU.js +3851 -0
- package/dist/chunk-X6KAJI3V.js +211 -0
- package/dist/chunk-XBLRHV5R.js +50 -0
- package/dist/chunk-XDFP2LMW.js +605 -0
- package/dist/chunk-XEQMZB3C.js +525 -0
- package/dist/chunk-XEYLT5VA.js +223 -0
- package/dist/chunk-XHIQ5I6N.js +918 -0
- package/dist/chunk-XLH7QY2R.js +378 -0
- package/dist/chunk-XWFAMUZQ.js +113 -0
- package/dist/chunk-Y4BB2KS2.js +294 -0
- package/dist/chunk-Y4BB2KS2.js.map +1 -0
- package/dist/chunk-Y4OBB2VN.js +84 -0
- package/dist/chunk-YCVD6CI3.js +234 -0
- package/dist/chunk-YENLNISG.js +270 -0
- package/dist/chunk-YIRVLKAX.js +351 -0
- package/dist/chunk-YL73CVNK.js +390 -0
- package/dist/chunk-YLS6QE5G.js +288 -0
- package/dist/chunk-YNF2OC54.js +366 -0
- package/dist/chunk-YNF2OC54.js.map +1 -0
- package/dist/chunk-YPWU5KPE.js +147 -0
- package/dist/chunk-YQXTDZSU.js +2984 -0
- package/dist/chunk-YSJEAAOL.js +178 -0
- package/dist/chunk-YWIFM7D7.js +499 -0
- package/dist/chunk-YWVI6ZMK.js +103 -0
- package/dist/chunk-Z4FMAFNH.js +847 -0
- package/dist/chunk-Z654FWNU.js +136 -0
- package/dist/chunk-Z7Y523PS.js +130 -0
- package/dist/chunk-ZD67RM6G.js +60 -0
- package/dist/chunk-ZEG4VPBL.js +187 -0
- package/dist/chunk-ZHDFQITM.js +283 -0
- package/dist/chunk-ZHDFQITM.js.map +1 -0
- package/dist/chunk-ZLYCOBHW.js +75 -0
- package/dist/chunk-ZNJ5MTXV.js +89 -0
- package/dist/chunk-ZSGY3H53.js +155 -0
- package/dist/chunk-ZTPXACWB.js +1788 -0
- package/dist/chunk-ZUA3JMI6.js +107 -0
- package/dist/chunk-ZYAZUPPV.js +559 -0
- package/dist/composer.js +8 -8
- package/dist/computer-viewer-TDDO25AV.js +21 -0
- package/dist/connect.js +12 -12
- package/dist/desktop-dictation.js +12 -10
- package/dist/desktop-dictation.js.map +1 -1
- package/dist/desktop.js +2 -2
- package/dist/editor.js +2 -2
- package/dist/embedded-new-voice-2G3VLPVQ.js +24 -0
- package/dist/embedded-voice-T5IWOWGD.js +24 -0
- package/dist/fleet-decision-row-WM64KXP3.js +361 -0
- package/dist/in-chat-connect-model.js +5 -5
- package/dist/index.js +51 -51
- package/dist/interaction.js +5 -5
- package/dist/machines.js +3 -3
- package/dist/meetings-recorder.js +1 -1
- package/dist/meetings.js +40 -32
- package/dist/meetings.js.map +1 -1
- package/dist/messages/en.d.ts +3 -0
- package/dist/messages.js +1 -1
- package/dist/model-policy-picker-menu-SMC6J6QN.js +22 -0
- package/dist/payment-page-card-G4U63KUV.js +223 -0
- package/dist/platform-activity-row-BUZGZAKZ.js +128 -0
- package/dist/queue-surface-implementation-4KUZ4PJV.js +908 -0
- package/dist/realtime.js +4 -4
- package/dist/recorder-host-WF2RRR56.js +69 -0
- package/dist/recorder-host-WF2RRR56.js.map +1 -0
- package/dist/recordings.js +3 -3
- package/dist/sandbox-files-ESDMOFSD.js +27 -0
- package/dist/session-app.js +211 -209
- package/dist/session-connect-cards-Q53KMMYY.js +25 -0
- package/dist/session-list-model.js +2 -2
- package/dist/session-realtime-CF3I35WJ.js +30 -0
- package/dist/session-realtime.js +2 -2
- package/dist/session-ui.js +33 -31
- package/dist/session.js +5 -5
- package/dist/sites.js +2 -2
- package/dist/terminal.js +2 -2
- package/dist/this-computer.js +3 -3
- package/dist/timeline-annotation-markers-CJK4RYZ4.js +157 -0
- package/dist/timeline-annotation-selection-67GF5H26.js +208 -0
- package/dist/timeline-annotations-dialog-ONJPQDJQ.js +283 -0
- package/dist/ui/access-list.js +11 -9
- package/dist/ui/access-list.js.map +1 -1
- package/dist/ui/api-error.d.ts +6 -3
- package/dist/ui/api-error.js +2 -1
- package/dist/ui/cadence-picker.js +6 -4
- package/dist/ui/choice-cards.js +5 -3
- package/dist/ui/confirm-dialog.js +2 -2
- package/dist/ui/copy-field.js +5 -3
- package/dist/ui/detail-page.js +2 -2
- package/dist/ui/detail-sheet.js +2 -2
- package/dist/ui/diff-view.js +4 -3
- package/dist/ui/disclosure.js +3 -3
- package/dist/ui/email-chips-input.js +5 -3
- package/dist/ui/error-message.js +2 -1
- package/dist/ui/error-reference.d.ts +15 -0
- package/dist/ui/error-text.d.ts +10 -0
- package/dist/ui/error-text.js +9 -0
- package/dist/ui/error-text.js.map +1 -0
- package/dist/ui/field.js +4 -2
- package/dist/ui/flush-form-page.js +8 -6
- package/dist/ui/form-dialog.js +7 -5
- package/dist/ui/list-row.js +3 -3
- package/dist/ui/load-failure.js +3 -2
- package/dist/ui/load-failure.js.map +1 -1
- package/dist/ui/notice.js +3 -1
- package/dist/ui/relative-time.js +2 -2
- package/dist/ui/revision-history.js +9 -7
- package/dist/ui/revision-history.js.map +1 -1
- package/dist/ui/role-select.js +10 -8
- package/dist/ui/segmented-control.js +4 -2
- package/dist/ui/select-menu.js +5 -3
- package/dist/ui/setting-row.js +3 -1
- package/dist/ui/switch.js +4 -2
- package/dist/ui/usage-meter.js +3 -3
- package/dist/ui/word-list-row.js +4 -2
- package/dist/usage.js +2 -2
- package/dist/workbench.js +4 -4
- package/package.json +5 -6
- package/src/app/app-state.tsx +126 -14
- package/src/app/components/artifacts/site-data.tsx +2 -2
- package/src/app/components/artifacts/site-settings.tsx +2 -2
- package/src/app/components/rail/session-list.tsx +7 -8
- package/src/app/components/rail/session-shell.tsx +3 -3
- package/src/app/components/repository-picker.tsx +8 -1
- package/src/app/components/session/model-context-inspector.tsx +2 -1
- package/src/app/components/session/session-admin-access.tsx +2 -2
- package/src/app/lib/actions/chat-operations.ts +4 -4
- package/src/app/lib/archive-session.test.tsx +265 -2
- package/src/app/lib/archive-session.tsx +175 -9
- package/src/app/lib/copy-link.ts +2 -2
- package/src/app/lib/inbox.tsx +2 -2
- package/src/app/lib/session-failure-toasts.ts +3 -2
- package/src/app/lib/toast.test.tsx +215 -0
- package/src/app/lib/toast.tsx +67 -2
- package/src/app/personal-github-reconnect.test.tsx +356 -0
- package/src/app/routes/artifacts.tsx +1 -2
- package/src/components/tool-action-review.tsx +14 -1
- package/src/meetings/delete-meeting-dialog.tsx +2 -1
- package/src/meetings/meeting-ask.tsx +2 -1
- package/src/meetings/meeting-detail-page.tsx +2 -1
- package/src/meetings/meeting-notes.tsx +2 -1
- package/src/meetings/meeting-settings.tsx +4 -1
- package/src/meetings/meeting-transcript.tsx +4 -1
- package/src/meetings/recorder-context.tsx +10 -0
- package/src/meetings/recorder-host.test.tsx +60 -2
- package/src/meetings/recorder-host.tsx +16 -3
- package/src/meetings/recorder-panel.tsx +2 -1
- package/src/meetings/recorder-workspace.test.tsx +26 -1
- package/src/messages/en.ts +6 -0
- package/src/ui/api-error.test.ts +29 -5
- package/src/ui/api-error.tsx +10 -4
- package/src/ui/error-message.tsx +8 -0
- package/src/ui/error-reference.test.ts +54 -0
- package/src/ui/error-reference.ts +51 -0
- package/src/ui/error-text.test.tsx +66 -0
- package/src/ui/error-text.tsx +49 -0
- package/src/ui/field.tsx +4 -1
- package/src/ui/notice.tsx +7 -2
- package/src/ui/setting-row.tsx +4 -1
- package/styles/app.css +12 -0
- package/styles/compiled.css +9 -0
- package/dist/browser-viewer-NOP5EAUO.js +0 -23
- package/dist/chat-interactive-block-G7O44JHR.js +0 -18
- package/dist/chunk-26RWVLRD.js +0 -135
- package/dist/chunk-2AHTY7OT.js +0 -247
- package/dist/chunk-2GDNWKSC.js +0 -3670
- package/dist/chunk-2JENKGCE.js +0 -339
- package/dist/chunk-2KYQC4T5.js +0 -155
- package/dist/chunk-2RREGDQH.js +0 -708
- package/dist/chunk-2T7DX6KR.js +0 -353
- package/dist/chunk-2VB2O4FQ.js +0 -920
- package/dist/chunk-2VTTKH23.js +0 -94
- package/dist/chunk-2XNG2KNT.js +0 -172
- package/dist/chunk-2YC6JQRO.js +0 -399
- package/dist/chunk-2ZVRJRXC.js +0 -27
- package/dist/chunk-35737UT4.js +0 -162
- package/dist/chunk-366XZ4PM.js +0 -41
- package/dist/chunk-36MIDGAH.js +0 -199
- package/dist/chunk-3FD76LXM.js +0 -212
- package/dist/chunk-3OVIXY4O.js +0 -213
- package/dist/chunk-3OVIXY4O.js.map +0 -1
- package/dist/chunk-3QNRBEYH.js +0 -432
- package/dist/chunk-3QX55WLC.js +0 -15
- package/dist/chunk-3USJPT2S.js +0 -1022
- package/dist/chunk-42CMQ5VR.js +0 -251
- package/dist/chunk-4LPOWQJY.js +0 -42
- package/dist/chunk-4NBTZRKT.js +0 -79
- package/dist/chunk-4OXI6HCV.js +0 -118
- package/dist/chunk-4SZZAFYQ.js +0 -2317
- package/dist/chunk-4TQL3WP2.js +0 -140
- package/dist/chunk-4Y6BK7IU.js +0 -196
- package/dist/chunk-4YD7YZC5.js +0 -373
- package/dist/chunk-5DTST3TP.js +0 -81
- package/dist/chunk-5FH5LQVS.js +0 -130
- package/dist/chunk-5KWMYPJV.js +0 -847
- package/dist/chunk-5MUJDC6C.js +0 -84
- package/dist/chunk-5QM2WPKV.js +0 -41
- package/dist/chunk-5WUN7XPD.js +0 -1184
- package/dist/chunk-64PO2WXU.js +0 -1067
- package/dist/chunk-6AHATAAY.js +0 -431
- package/dist/chunk-6ED2YWBT.js +0 -56
- package/dist/chunk-6GXVYAGR.js +0 -170
- package/dist/chunk-6H4SJBPE.js +0 -85
- package/dist/chunk-6MT3HHUB.js +0 -84
- package/dist/chunk-6UHCBH4G.js +0 -198
- package/dist/chunk-6WLX3NR3.js +0 -198
- package/dist/chunk-73NXYYWE.js +0 -112
- package/dist/chunk-76ERNKIZ.js +0 -603
- package/dist/chunk-776QZ573.js +0 -57
- package/dist/chunk-7BYWOFVH.js +0 -171
- package/dist/chunk-7O5CGGIQ.js +0 -108
- package/dist/chunk-7QOHRZ67.js +0 -251
- package/dist/chunk-7WIDB4PL.js +0 -2058
- package/dist/chunk-7WKP3DYJ.js +0 -37
- package/dist/chunk-7XOVTPDI.js +0 -227
- package/dist/chunk-AB5MBIXY.js +0 -281
- package/dist/chunk-ADNMXBCX.js +0 -1193
- package/dist/chunk-AFBJTUFK.js +0 -202
- package/dist/chunk-ALVRWCXE.js +0 -61
- package/dist/chunk-AOHU6O3M.js +0 -247
- package/dist/chunk-AOHU6O3M.js.map +0 -1
- package/dist/chunk-APW4T4SW.js +0 -270
- package/dist/chunk-AXBSYWKX.js +0 -2656
- package/dist/chunk-B2I5ZW35.js +0 -422
- package/dist/chunk-B3LMRTRF.js +0 -223
- package/dist/chunk-BE2XENG2.js +0 -292
- package/dist/chunk-BE2XENG2.js.map +0 -1
- package/dist/chunk-BF4SADKX.js +0 -29
- package/dist/chunk-BKP43KK4.js +0 -1788
- package/dist/chunk-BM3NEZ6X.js +0 -781
- package/dist/chunk-BT3BAGB5.js +0 -216
- package/dist/chunk-BTSYDIVJ.js +0 -357
- package/dist/chunk-BUBNGKWG.js +0 -70
- package/dist/chunk-BVUJV5WR.js +0 -126
- package/dist/chunk-BZO5ZMUP.js +0 -27
- package/dist/chunk-C3HUF3M2.js +0 -157
- package/dist/chunk-C5QCAOES.js +0 -264
- package/dist/chunk-CGK6ALQU.js +0 -159
- package/dist/chunk-CPYGO76Q.js +0 -335
- package/dist/chunk-CQH4FWYA.js +0 -490
- package/dist/chunk-CZP5QXNB.js +0 -234
- package/dist/chunk-D2TOWEYH.js +0 -266
- package/dist/chunk-D6L4GHRH.js +0 -340
- package/dist/chunk-DKT3N37I.js +0 -50
- package/dist/chunk-DMMJIFKA.js +0 -84
- package/dist/chunk-DO74DQC7.js +0 -26
- package/dist/chunk-DOFJZ2JU.js +0 -83
- package/dist/chunk-DSXVY5WZ.js +0 -119
- package/dist/chunk-E337C2VK.js +0 -82
- package/dist/chunk-E6NRSRBE.js +0 -114
- package/dist/chunk-E6SQKHAU.js +0 -114
- package/dist/chunk-E7UIVD7F.js +0 -236
- package/dist/chunk-EGBII4CP.js +0 -229
- package/dist/chunk-EILSAQVJ.js +0 -200
- package/dist/chunk-ELL6HSYR.js +0 -307
- package/dist/chunk-EUBGLFFR.js +0 -73
- package/dist/chunk-EW6RNWSH.js +0 -212
- package/dist/chunk-EYUT5Y6V.js +0 -2599
- package/dist/chunk-F7U3QPZ3.js +0 -304
- package/dist/chunk-FBTJKSTM.js +0 -1270
- package/dist/chunk-FC2FTSK3.js +0 -2424
- package/dist/chunk-FOGNA3BU.js +0 -148
- package/dist/chunk-FQFKHNC7.js +0 -650
- package/dist/chunk-FTCHM755.js +0 -50
- package/dist/chunk-FXSHP4JZ.js +0 -3550
- package/dist/chunk-G6ZZC543.js +0 -818
- package/dist/chunk-G7FU6PUA.js +0 -100
- package/dist/chunk-GA4YEAMX.js +0 -3851
- package/dist/chunk-GE33BGB7.js +0 -12
- package/dist/chunk-GQ67HSJY.js +0 -570
- package/dist/chunk-GXXZ3WAK.js +0 -106
- package/dist/chunk-H2TCRX3H.js +0 -237
- package/dist/chunk-HLL4PBO7.js +0 -60
- package/dist/chunk-HLOEPV5C.js +0 -259
- package/dist/chunk-HUAGBS4O.js +0 -56
- package/dist/chunk-I36GSRUJ.js +0 -211
- package/dist/chunk-I6VBHT7S.js +0 -261
- package/dist/chunk-ICNNNOXE.js +0 -333
- package/dist/chunk-ICX64J4U.js +0 -172
- package/dist/chunk-ID36Y46W.js +0 -5046
- package/dist/chunk-ID36Y46W.js.map +0 -1
- package/dist/chunk-IGVVXLKJ.js +0 -559
- package/dist/chunk-IKJLSBUI.js +0 -2984
- package/dist/chunk-IKMUFDVS.js +0 -50
- package/dist/chunk-IKUNOX7F.js +0 -255
- package/dist/chunk-ILKDYBON.js +0 -288
- package/dist/chunk-IVYJX3OY.js +0 -187
- package/dist/chunk-JCY4CMDH.js +0 -107
- package/dist/chunk-JJZPLGIP.js +0 -474
- package/dist/chunk-JW33RV4V.js +0 -143
- package/dist/chunk-JWPA6ZPZ.js +0 -351
- package/dist/chunk-JZ4QXS6D.js +0 -50
- package/dist/chunk-K42OUZQ3.js +0 -386
- package/dist/chunk-K5TOVX5A.js +0 -206
- package/dist/chunk-K63HGHZX.js +0 -99
- package/dist/chunk-K6R5T44I.js +0 -75
- package/dist/chunk-KHJ5PXFM.js +0 -914
- package/dist/chunk-KJZRQ55O.js +0 -2319
- package/dist/chunk-KJZRQ55O.js.map +0 -1
- package/dist/chunk-KKI55ZMW.js +0 -65
- package/dist/chunk-KRPLAAFP.js +0 -199
- package/dist/chunk-KVFEZDBO.js +0 -134
- package/dist/chunk-L4I665WK.js +0 -45
- package/dist/chunk-L4OF77LE.js +0 -110
- package/dist/chunk-L4OF77LE.js.map +0 -1
- package/dist/chunk-LA5T52RM.js +0 -70
- package/dist/chunk-LM2W5YAT.js +0 -401
- package/dist/chunk-LQ62ECE6.js +0 -390
- package/dist/chunk-LQDUHU3Y.js +0 -71
- package/dist/chunk-LRJIYTZW.js +0 -4157
- package/dist/chunk-LRJIYTZW.js.map +0 -1
- package/dist/chunk-LRN6GYAZ.js +0 -138
- package/dist/chunk-M4SDVTKJ.js +0 -790
- package/dist/chunk-MA6O7CM6.js +0 -99
- package/dist/chunk-MBIBB6GI.js +0 -197
- package/dist/chunk-MF3ZFB4H.js +0 -199
- package/dist/chunk-MJJGJMYJ.js +0 -98
- package/dist/chunk-MLJADQFI.js +0 -4824
- package/dist/chunk-MQG7RV3B.js +0 -62
- package/dist/chunk-MTTGSQA5.js +0 -186
- package/dist/chunk-MW7Y3T55.js +0 -525
- package/dist/chunk-MYUFMVCH.js +0 -121
- package/dist/chunk-N3OARGH2.js +0 -61
- package/dist/chunk-NB2HMRT2.js +0 -353
- package/dist/chunk-NFDFYWMV.js +0 -141
- package/dist/chunk-NWGNFN3N.js +0 -1187
- package/dist/chunk-NWJRPDIO.js +0 -840
- package/dist/chunk-NWJRPDIO.js.map +0 -1
- package/dist/chunk-NXWBBZJV.js +0 -267
- package/dist/chunk-NY2QWROL.js +0 -71
- package/dist/chunk-O2IOPP3R.js +0 -848
- package/dist/chunk-O2UWH5RG.js +0 -141
- package/dist/chunk-O5YWDLYF.js +0 -393
- package/dist/chunk-OBMCZO7E.js +0 -121
- package/dist/chunk-OD3DCCCB.js +0 -132
- package/dist/chunk-OMH7R6I3.js +0 -390
- package/dist/chunk-OSA5EQG5.js +0 -113
- package/dist/chunk-OSJ3MUTZ.js +0 -2936
- package/dist/chunk-OWAYJ2OV.js +0 -368
- package/dist/chunk-OYXBFSGK.js +0 -269
- package/dist/chunk-PC2EBA5G.js +0 -4116
- package/dist/chunk-PC2EBA5G.js.map +0 -1
- package/dist/chunk-PC2MVXIP.js +0 -363
- package/dist/chunk-PC2MVXIP.js.map +0 -1
- package/dist/chunk-PENGLDR5.js +0 -309
- package/dist/chunk-PSMAWRPL.js +0 -191
- package/dist/chunk-PW4IMTYR.js +0 -702
- package/dist/chunk-PW54V7T5.js +0 -387
- package/dist/chunk-Q2EXYSMO.js +0 -24
- package/dist/chunk-Q2XJK5I4.js +0 -51
- package/dist/chunk-Q2XJK5I4.js.map +0 -1
- package/dist/chunk-Q4EFRI6X.js +0 -258
- package/dist/chunk-Q52CXW6C.js +0 -48
- package/dist/chunk-Q6XQ2R37.js +0 -184
- package/dist/chunk-QAJ53XBW.js +0 -23
- package/dist/chunk-QDTKECT4.js +0 -129
- package/dist/chunk-QE3ZFGI3.js +0 -43
- package/dist/chunk-QHHSUR2Y.js +0 -298
- package/dist/chunk-QHNVNR7B.js +0 -173
- package/dist/chunk-QIK2Q6N5.js +0 -376
- package/dist/chunk-QWL4L366.js +0 -38
- package/dist/chunk-R3J2PTVQ.js +0 -690
- package/dist/chunk-RBRX5ZS3.js +0 -319
- package/dist/chunk-REX6JIC7.js +0 -33
- package/dist/chunk-RGZ7EEC3.js +0 -537
- package/dist/chunk-RGZ7EEC3.js.map +0 -1
- package/dist/chunk-RIPS7GFR.js +0 -960
- package/dist/chunk-RTBZNFNV.js +0 -1354
- package/dist/chunk-RTBZNFNV.js.map +0 -1
- package/dist/chunk-SKMNW4SW.js +0 -187
- package/dist/chunk-SRFARKXC.js +0 -623
- package/dist/chunk-SWIHWCTW.js +0 -4461
- package/dist/chunk-TA5CFTO4.js +0 -103
- package/dist/chunk-TF4ZVJLI.js +0 -156
- package/dist/chunk-TG7DADJR.js +0 -9624
- package/dist/chunk-TI4R2ZD5.js +0 -623
- package/dist/chunk-TI4R2ZD5.js.map +0 -1
- package/dist/chunk-TNKWOUWP.js +0 -412
- package/dist/chunk-TNUSPXPW.js +0 -5555
- package/dist/chunk-TNUSPXPW.js.map +0 -1
- package/dist/chunk-TNYFHKVV.js +0 -366
- package/dist/chunk-TPMZBOFH.js +0 -178
- package/dist/chunk-TW3LKRJF.js +0 -263
- package/dist/chunk-TZAO65I4.js +0 -83
- package/dist/chunk-U5EFEMYU.js +0 -89
- package/dist/chunk-U6M4LS3M.js +0 -378
- package/dist/chunk-UI4HI5QK.js +0 -918
- package/dist/chunk-UJDOWCQ3.js +0 -272
- package/dist/chunk-UJUQ2QOX.js +0 -581
- package/dist/chunk-UQ3IM6FY.js +0 -133
- package/dist/chunk-UYE47LO6.js +0 -246
- package/dist/chunk-VADHIT26.js +0 -89
- package/dist/chunk-VFQ3H6CO.js +0 -163
- package/dist/chunk-VGUN6VB2.js +0 -188
- package/dist/chunk-VGWWEVSD.js +0 -723
- package/dist/chunk-VIEFJ2DM.js +0 -2469
- package/dist/chunk-VLXM36VS.js +0 -268
- package/dist/chunk-W3BFRR2G.js +0 -499
- package/dist/chunk-W5MPXR3A.js +0 -981
- package/dist/chunk-W5OWKVZG.js +0 -136
- package/dist/chunk-W6FRORMX.js +0 -486
- package/dist/chunk-W6FRORMX.js.map +0 -1
- package/dist/chunk-W7XROSZO.js +0 -232
- package/dist/chunk-W7XROSZO.js.map +0 -1
- package/dist/chunk-WEZ5PXZP.js +0 -403
- package/dist/chunk-WHWUWN2X.js +0 -197
- package/dist/chunk-WHWUWN2X.js.map +0 -1
- package/dist/chunk-WLEDGIVS.js +0 -114
- package/dist/chunk-WLEDGIVS.js.map +0 -1
- package/dist/chunk-WNDAKLHG.js +0 -281
- package/dist/chunk-WTJ4PLMU.js +0 -103
- package/dist/chunk-WV2KPJUW.js +0 -107
- package/dist/chunk-X3VY5EGY.js +0 -277
- package/dist/chunk-X3VY5EGY.js.map +0 -1
- package/dist/chunk-XDBYWVCW.js +0 -418
- package/dist/chunk-XF7MA4U5.js +0 -36
- package/dist/chunk-XF7MA4U5.js.map +0 -1
- package/dist/chunk-XOSQP3YA.js +0 -605
- package/dist/chunk-XYBV4ZJQ.js +0 -271
- package/dist/chunk-YBKVGLQR.js +0 -147
- package/dist/chunk-YDCUBUWH.js +0 -1583
- package/dist/chunk-YG6NARQY.js +0 -51
- package/dist/chunk-YG6NARQY.js.map +0 -1
- package/dist/chunk-YSVD5HI4.js +0 -278
- package/dist/chunk-YT3WGNG6.js +0 -290
- package/dist/chunk-YYICQDK4.js +0 -414
- package/dist/chunk-YYLMZLI6.js +0 -686
- package/dist/chunk-ZAMTKG5U.js +0 -95
- package/dist/chunk-ZDLYSXKN.js +0 -111
- package/dist/chunk-ZG447FSS.js +0 -194
- package/dist/chunk-ZIT5KD4Q.js +0 -264
- package/dist/chunk-ZUDOVDKR.js +0 -3064
- package/dist/chunk-ZW2ECJ3A.js +0 -451
- package/dist/computer-viewer-LPZ763KF.js +0 -21
- package/dist/embedded-new-voice-YVMKSLKJ.js +0 -24
- package/dist/embedded-voice-BJPQFXSU.js +0 -24
- package/dist/fleet-decision-row-AA4H5CDT.js +0 -361
- package/dist/model-policy-picker-menu-HSMWVO4P.js +0 -22
- package/dist/payment-page-card-3LTSFJGN.js +0 -223
- package/dist/platform-activity-row-5VYV6TX4.js +0 -128
- package/dist/queue-surface-implementation-NXHZUKD2.js +0 -908
- package/dist/recorder-host-ZKRWTDBM.js +0 -57
- package/dist/recorder-host-ZKRWTDBM.js.map +0 -1
- package/dist/sandbox-files-YCMLQUFU.js +0 -27
- package/dist/session-connect-cards-KSQLMRM5.js +0 -25
- package/dist/session-realtime-ZR6JLG3Y.js +0 -30
- package/dist/timeline-annotation-markers-YAHDPWVG.js +0 -157
- package/dist/timeline-annotation-selection-KHXNCEJP.js +0 -208
- package/dist/timeline-annotations-dialog-Y4XD3N7B.js +0 -283
- /package/dist/{browser-viewer-NOP5EAUO.js.map → browser-viewer-TC27OCIP.js.map} +0 -0
- /package/dist/{chat-interactive-block-G7O44JHR.js.map → chat-interactive-block-RWPQBHVS.js.map} +0 -0
- /package/dist/{chunk-EGBII4CP.js.map → chunk-2BDT3UZQ.js.map} +0 -0
- /package/dist/{chunk-4YD7YZC5.js.map → chunk-2CLNIEK4.js.map} +0 -0
- /package/dist/{chunk-ZW2ECJ3A.js.map → chunk-2FSBSCZJ.js.map} +0 -0
- /package/dist/{chunk-KRPLAAFP.js.map → chunk-2I7HDP53.js.map} +0 -0
- /package/dist/{chunk-3QX55WLC.js.map → chunk-2INLDVK3.js.map} +0 -0
- /package/dist/{chunk-BVUJV5WR.js.map → chunk-2KALVELR.js.map} +0 -0
- /package/dist/{chunk-XDBYWVCW.js.map → chunk-2M3J7ZWQ.js.map} +0 -0
- /package/dist/{chunk-2RREGDQH.js.map → chunk-2OP6WLGV.js.map} +0 -0
- /package/dist/{chunk-OSJ3MUTZ.js.map → chunk-2RG7NIAS.js.map} +0 -0
- /package/dist/{chunk-26RWVLRD.js.map → chunk-2STUPWEL.js.map} +0 -0
- /package/dist/{chunk-XYBV4ZJQ.js.map → chunk-2YUOVM3G.js.map} +0 -0
- /package/dist/{chunk-2GDNWKSC.js.map → chunk-2Z3NQNTM.js.map} +0 -0
- /package/dist/{chunk-2VB2O4FQ.js.map → chunk-3CPWWGNK.js.map} +0 -0
- /package/dist/{chunk-7WKP3DYJ.js.map → chunk-3ED2U6XE.js.map} +0 -0
- /package/dist/{chunk-BT3BAGB5.js.map → chunk-3GZA4BUW.js.map} +0 -0
- /package/dist/{chunk-3USJPT2S.js.map → chunk-3IK6UYO6.js.map} +0 -0
- /package/dist/{chunk-6AHATAAY.js.map → chunk-3PZ7JZI2.js.map} +0 -0
- /package/dist/{chunk-JZ4QXS6D.js.map → chunk-4DVJ6ONS.js.map} +0 -0
- /package/dist/{chunk-5QM2WPKV.js.map → chunk-4E3ZJRTZ.js.map} +0 -0
- /package/dist/{chunk-NFDFYWMV.js.map → chunk-4SAWSRAA.js.map} +0 -0
- /package/dist/{chunk-ELL6HSYR.js.map → chunk-53AGXXZM.js.map} +0 -0
- /package/dist/{chunk-G6ZZC543.js.map → chunk-54YW6SZZ.js.map} +0 -0
- /package/dist/{chunk-4SZZAFYQ.js.map → chunk-57AZS3IE.js.map} +0 -0
- /package/dist/{chunk-JW33RV4V.js.map → chunk-5CPEEAFD.js.map} +0 -0
- /package/dist/{chunk-D6L4GHRH.js.map → chunk-5EWSRZ2Y.js.map} +0 -0
- /package/dist/{chunk-PW54V7T5.js.map → chunk-5IE76VCY.js.map} +0 -0
- /package/dist/{chunk-6GXVYAGR.js.map → chunk-5NWEKLDZ.js.map} +0 -0
- /package/dist/{chunk-6UHCBH4G.js.map → chunk-5O2FCCHZ.js.map} +0 -0
- /package/dist/{chunk-2YC6JQRO.js.map → chunk-5QAY6K77.js.map} +0 -0
- /package/dist/{chunk-EYUT5Y6V.js.map → chunk-6DK6Z4UN.js.map} +0 -0
- /package/dist/{chunk-PW4IMTYR.js.map → chunk-6DVCC7QS.js.map} +0 -0
- /package/dist/{chunk-7WIDB4PL.js.map → chunk-6JHU2UBS.js.map} +0 -0
- /package/dist/{chunk-CQH4FWYA.js.map → chunk-6PZ7OBYU.js.map} +0 -0
- /package/dist/{chunk-VFQ3H6CO.js.map → chunk-6WGRDRMA.js.map} +0 -0
- /package/dist/{chunk-MTTGSQA5.js.map → chunk-77WAKEAH.js.map} +0 -0
- /package/dist/{chunk-O5YWDLYF.js.map → chunk-7TDO3CUM.js.map} +0 -0
- /package/dist/{chunk-2AHTY7OT.js.map → chunk-7TIX2UAR.js.map} +0 -0
- /package/dist/{chunk-FOGNA3BU.js.map → chunk-7V5REBCP.js.map} +0 -0
- /package/dist/{chunk-2JENKGCE.js.map → chunk-7VMZGLYI.js.map} +0 -0
- /package/dist/{chunk-E7UIVD7F.js.map → chunk-7W37NS3I.js.map} +0 -0
- /package/dist/{chunk-ZDLYSXKN.js.map → chunk-7X6SDK2C.js.map} +0 -0
- /package/dist/{chunk-ZAMTKG5U.js.map → chunk-7ZNUHRP5.js.map} +0 -0
- /package/dist/{chunk-DMMJIFKA.js.map → chunk-A36PZALD.js.map} +0 -0
- /package/dist/{chunk-WV2KPJUW.js.map → chunk-AUI6VA63.js.map} +0 -0
- /package/dist/{chunk-Q2EXYSMO.js.map → chunk-AW2MQB37.js.map} +0 -0
- /package/dist/{chunk-6WLX3NR3.js.map → chunk-AWKES45Y.js.map} +0 -0
- /package/dist/{chunk-OD3DCCCB.js.map → chunk-AXHZYXUV.js.map} +0 -0
- /package/dist/{chunk-QDTKECT4.js.map → chunk-BHNSJVBC.js.map} +0 -0
- /package/dist/{chunk-FTCHM755.js.map → chunk-BJEJFISW.js.map} +0 -0
- /package/dist/{chunk-B2I5ZW35.js.map → chunk-BJFH6JI5.js.map} +0 -0
- /package/dist/{chunk-RIPS7GFR.js.map → chunk-BMICEQZQ.js.map} +0 -0
- /package/dist/{chunk-BF4SADKX.js.map → chunk-BTLBYBLU.js.map} +0 -0
- /package/dist/{chunk-U5EFEMYU.js.map → chunk-BXBDYNRP.js.map} +0 -0
- /package/dist/{chunk-BTSYDIVJ.js.map → chunk-C372BFOV.js.map} +0 -0
- /package/dist/{chunk-MLJADQFI.js.map → chunk-CMKGILJK.js.map} +0 -0
- /package/dist/{chunk-DKT3N37I.js.map → chunk-CRAOSVHC.js.map} +0 -0
- /package/dist/{chunk-WNDAKLHG.js.map → chunk-CRU35QQH.js.map} +0 -0
- /package/dist/{chunk-2XNG2KNT.js.map → chunk-CUIWCGMA.js.map} +0 -0
- /package/dist/{chunk-QWL4L366.js.map → chunk-D5TWNFFE.js.map} +0 -0
- /package/dist/{chunk-SWIHWCTW.js.map → chunk-DF5EAHDN.js.map} +0 -0
- /package/dist/{chunk-HUAGBS4O.js.map → chunk-DJAXC5OK.js.map} +0 -0
- /package/dist/{chunk-FXSHP4JZ.js.map → chunk-DXBYWSL5.js.map} +0 -0
- /package/dist/{chunk-5MUJDC6C.js.map → chunk-DXR5PDFP.js.map} +0 -0
- /package/dist/{chunk-NXWBBZJV.js.map → chunk-DZWARC4M.js.map} +0 -0
- /package/dist/{chunk-GXXZ3WAK.js.map → chunk-DZXEDSQI.js.map} +0 -0
- /package/dist/{chunk-Q52CXW6C.js.map → chunk-E7XERZWC.js.map} +0 -0
- /package/dist/{chunk-4NBTZRKT.js.map → chunk-ECJBYNLJ.js.map} +0 -0
- /package/dist/{chunk-QE3ZFGI3.js.map → chunk-EDI6SJ2N.js.map} +0 -0
- /package/dist/{chunk-E6NRSRBE.js.map → chunk-EWSOC6WF.js.map} +0 -0
- /package/dist/{chunk-TA5CFTO4.js.map → chunk-F2OPHAUN.js.map} +0 -0
- /package/dist/{chunk-5DTST3TP.js.map → chunk-F4ISQGGM.js.map} +0 -0
- /package/dist/{chunk-MBIBB6GI.js.map → chunk-FO4LYKJL.js.map} +0 -0
- /package/dist/{chunk-EUBGLFFR.js.map → chunk-FPXASDG5.js.map} +0 -0
- /package/dist/{chunk-C3HUF3M2.js.map → chunk-FVXBNBHO.js.map} +0 -0
- /package/dist/{chunk-W5MPXR3A.js.map → chunk-FZC5N55X.js.map} +0 -0
- /package/dist/{chunk-MA6O7CM6.js.map → chunk-GAVYGBFI.js.map} +0 -0
- /package/dist/{chunk-REX6JIC7.js.map → chunk-GKVJIDHF.js.map} +0 -0
- /package/dist/{chunk-EW6RNWSH.js.map → chunk-GVN5SZLX.js.map} +0 -0
- /package/dist/{chunk-KVFEZDBO.js.map → chunk-H3T7IWNA.js.map} +0 -0
- /package/dist/{chunk-I6VBHT7S.js.map → chunk-HAX4LCR5.js.map} +0 -0
- /package/dist/{chunk-OBMCZO7E.js.map → chunk-HC4JFZVU.js.map} +0 -0
- /package/dist/{chunk-UJUQ2QOX.js.map → chunk-HEFPPMBQ.js.map} +0 -0
- /package/dist/{chunk-DOFJZ2JU.js.map → chunk-HNLR7Q4Z.js.map} +0 -0
- /package/dist/{chunk-GE33BGB7.js.map → chunk-HSOXMJOT.js.map} +0 -0
- /package/dist/{chunk-AB5MBIXY.js.map → chunk-I4MRDSUF.js.map} +0 -0
- /package/dist/{chunk-AFBJTUFK.js.map → chunk-I4QEJ62Y.js.map} +0 -0
- /package/dist/{chunk-6ED2YWBT.js.map → chunk-I5B5L6Q4.js.map} +0 -0
- /package/dist/{chunk-C5QCAOES.js.map → chunk-I5QZJODL.js.map} +0 -0
- /package/dist/{chunk-76ERNKIZ.js.map → chunk-I7ITSXSJ.js.map} +0 -0
- /package/dist/{chunk-OMH7R6I3.js.map → chunk-I7XIZRFD.js.map} +0 -0
- /package/dist/{chunk-E337C2VK.js.map → chunk-IDANQPRH.js.map} +0 -0
- /package/dist/{chunk-3FD76LXM.js.map → chunk-IFB3WJ36.js.map} +0 -0
- /package/dist/{chunk-ZIT5KD4Q.js.map → chunk-IHTAKKTK.js.map} +0 -0
- /package/dist/{chunk-QHNVNR7B.js.map → chunk-ILDXWY37.js.map} +0 -0
- /package/dist/{chunk-GQ67HSJY.js.map → chunk-IMDQUHBJ.js.map} +0 -0
- /package/dist/{chunk-DSXVY5WZ.js.map → chunk-IMZCQBOT.js.map} +0 -0
- /package/dist/{chunk-WEZ5PXZP.js.map → chunk-IXPTECSC.js.map} +0 -0
- /package/dist/{chunk-NY2QWROL.js.map → chunk-J255A3N5.js.map} +0 -0
- /package/dist/{chunk-O2UWH5RG.js.map → chunk-J5F5HPPW.js.map} +0 -0
- /package/dist/{chunk-VIEFJ2DM.js.map → chunk-JEA3QDX7.js.map} +0 -0
- /package/dist/{chunk-TF4ZVJLI.js.map → chunk-JEUPAVYY.js.map} +0 -0
- /package/dist/{chunk-ZG447FSS.js.map → chunk-JKHKLL5W.js.map} +0 -0
- /package/dist/{chunk-FQFKHNC7.js.map → chunk-JQL7ZH6C.js.map} +0 -0
- /package/dist/{chunk-776QZ573.js.map → chunk-JWB44UGJ.js.map} +0 -0
- /package/dist/{chunk-ICNNNOXE.js.map → chunk-JZ4NLCAP.js.map} +0 -0
- /package/dist/{chunk-TNKWOUWP.js.map → chunk-K2A5PXQ5.js.map} +0 -0
- /package/dist/{chunk-SRFARKXC.js.map → chunk-K56XV3C3.js.map} +0 -0
- /package/dist/{chunk-QAJ53XBW.js.map → chunk-K6GAXXVA.js.map} +0 -0
- /package/dist/{chunk-MF3ZFB4H.js.map → chunk-KCBMFSMS.js.map} +0 -0
- /package/dist/{chunk-VLXM36VS.js.map → chunk-KF2FV3ZJ.js.map} +0 -0
- /package/dist/{chunk-YSVD5HI4.js.map → chunk-KJD65EJP.js.map} +0 -0
- /package/dist/{chunk-K42OUZQ3.js.map → chunk-KLEUWIMZ.js.map} +0 -0
- /package/dist/{chunk-PENGLDR5.js.map → chunk-KODELWYT.js.map} +0 -0
- /package/dist/{chunk-TZAO65I4.js.map → chunk-KRDR5RJD.js.map} +0 -0
- /package/dist/{chunk-KHJ5PXFM.js.map → chunk-KUDGXAF7.js.map} +0 -0
- /package/dist/{chunk-6H4SJBPE.js.map → chunk-KYS77RPN.js.map} +0 -0
- /package/dist/{chunk-OWAYJ2OV.js.map → chunk-L7YTNTIK.js.map} +0 -0
- /package/dist/{chunk-YYLMZLI6.js.map → chunk-LHPNABDH.js.map} +0 -0
- /package/dist/{chunk-LM2W5YAT.js.map → chunk-MFROMEKA.js.map} +0 -0
- /package/dist/{chunk-AXBSYWKX.js.map → chunk-MIHN76LX.js.map} +0 -0
- /package/dist/{chunk-4LPOWQJY.js.map → chunk-MIYFS2XN.js.map} +0 -0
- /package/dist/{chunk-KKI55ZMW.js.map → chunk-MJUCFQMS.js.map} +0 -0
- /package/dist/{chunk-ZUDOVDKR.js.map → chunk-MM4FNWI4.js.map} +0 -0
- /package/dist/{chunk-M4SDVTKJ.js.map → chunk-MNZG4OHU.js.map} +0 -0
- /package/dist/{chunk-EILSAQVJ.js.map → chunk-N6AACDUW.js.map} +0 -0
- /package/dist/{chunk-BM3NEZ6X.js.map → chunk-NC55IFN3.js.map} +0 -0
- /package/dist/{chunk-MJJGJMYJ.js.map → chunk-NC7PVOEK.js.map} +0 -0
- /package/dist/{chunk-LA5T52RM.js.map → chunk-NCYMNCJO.js.map} +0 -0
- /package/dist/{chunk-HLOEPV5C.js.map → chunk-ND2BXV3P.js.map} +0 -0
- /package/dist/{chunk-UJDOWCQ3.js.map → chunk-NDBTFUO6.js.map} +0 -0
- /package/dist/{chunk-K5TOVX5A.js.map → chunk-NDQJZ7HF.js.map} +0 -0
- /package/dist/{chunk-35737UT4.js.map → chunk-NGJJJPZZ.js.map} +0 -0
- /package/dist/{chunk-42CMQ5VR.js.map → chunk-NJTSNNE7.js.map} +0 -0
- /package/dist/{chunk-FBTJKSTM.js.map → chunk-NRTE7DNV.js.map} +0 -0
- /package/dist/{chunk-YT3WGNG6.js.map → chunk-NULUNM7H.js.map} +0 -0
- /package/dist/{chunk-7XOVTPDI.js.map → chunk-NUNZS36W.js.map} +0 -0
- /package/dist/{chunk-FC2FTSK3.js.map → chunk-NW53H5RW.js.map} +0 -0
- /package/dist/{chunk-TW3LKRJF.js.map → chunk-NXCMHIKI.js.map} +0 -0
- /package/dist/{chunk-CGK6ALQU.js.map → chunk-O3LKCBP5.js.map} +0 -0
- /package/dist/{chunk-QIK2Q6N5.js.map → chunk-O6N4ABCA.js.map} +0 -0
- /package/dist/{chunk-73NXYYWE.js.map → chunk-O732GAFC.js.map} +0 -0
- /package/dist/{chunk-R3J2PTVQ.js.map → chunk-OF4TIKYC.js.map} +0 -0
- /package/dist/{chunk-BUBNGKWG.js.map → chunk-OMPVOMPP.js.map} +0 -0
- /package/dist/{chunk-4OXI6HCV.js.map → chunk-OPJJSKUK.js.map} +0 -0
- /package/dist/{chunk-4Y6BK7IU.js.map → chunk-OPWCMA4D.js.map} +0 -0
- /package/dist/{chunk-ADNMXBCX.js.map → chunk-ORJPS5VN.js.map} +0 -0
- /package/dist/{chunk-SKMNW4SW.js.map → chunk-OSY5K7L7.js.map} +0 -0
- /package/dist/{chunk-L4I665WK.js.map → chunk-OV6QJRT4.js.map} +0 -0
- /package/dist/{chunk-7O5CGGIQ.js.map → chunk-OVKYVZMW.js.map} +0 -0
- /package/dist/{chunk-7BYWOFVH.js.map → chunk-OZCBM3UC.js.map} +0 -0
- /package/dist/{chunk-ALVRWCXE.js.map → chunk-P3A2EINJ.js.map} +0 -0
- /package/dist/{chunk-BZO5ZMUP.js.map → chunk-PTAG4PDC.js.map} +0 -0
- /package/dist/{chunk-QHHSUR2Y.js.map → chunk-PTF5B7TJ.js.map} +0 -0
- /package/dist/{chunk-O2IOPP3R.js.map → chunk-Q3DPEYX4.js.map} +0 -0
- /package/dist/{chunk-G7FU6PUA.js.map → chunk-QB2KMIDP.js.map} +0 -0
- /package/dist/{chunk-64PO2WXU.js.map → chunk-QCSJ4CWE.js.map} +0 -0
- /package/dist/{chunk-YYICQDK4.js.map → chunk-QIOQ2NPQ.js.map} +0 -0
- /package/dist/{chunk-NB2HMRT2.js.map → chunk-QK5EFEUT.js.map} +0 -0
- /package/dist/{chunk-366XZ4PM.js.map → chunk-QPQBLYQJ.js.map} +0 -0
- /package/dist/{chunk-Q6XQ2R37.js.map → chunk-QPSGCC5D.js.map} +0 -0
- /package/dist/{chunk-JJZPLGIP.js.map → chunk-QZAAUQRN.js.map} +0 -0
- /package/dist/{chunk-VGUN6VB2.js.map → chunk-RGBI63KJ.js.map} +0 -0
- /package/dist/{chunk-LRN6GYAZ.js.map → chunk-RLBKLAEY.js.map} +0 -0
- /package/dist/{chunk-F7U3QPZ3.js.map → chunk-RMFKVOM7.js.map} +0 -0
- /package/dist/{chunk-Q4EFRI6X.js.map → chunk-ROKQU7WG.js.map} +0 -0
- /package/dist/{chunk-7QOHRZ67.js.map → chunk-RPVREAU7.js.map} +0 -0
- /package/dist/{chunk-VGWWEVSD.js.map → chunk-RQKLF42C.js.map} +0 -0
- /package/dist/{chunk-2VTTKH23.js.map → chunk-SEO7TICN.js.map} +0 -0
- /package/dist/{chunk-3QNRBEYH.js.map → chunk-SHHJCL7X.js.map} +0 -0
- /package/dist/{chunk-E6SQKHAU.js.map → chunk-SIRLACNZ.js.map} +0 -0
- /package/dist/{chunk-H2TCRX3H.js.map → chunk-SKPHMYAA.js.map} +0 -0
- /package/dist/{chunk-YDCUBUWH.js.map → chunk-SODC7T6L.js.map} +0 -0
- /package/dist/{chunk-TNYFHKVV.js.map → chunk-SQJIKMN3.js.map} +0 -0
- /package/dist/{chunk-DO74DQC7.js.map → chunk-SVINDKVW.js.map} +0 -0
- /package/dist/{chunk-CPYGO76Q.js.map → chunk-SYCDHPZF.js.map} +0 -0
- /package/dist/{chunk-UQ3IM6FY.js.map → chunk-T2QX3FDP.js.map} +0 -0
- /package/dist/{chunk-NWGNFN3N.js.map → chunk-T3OWFVMS.js.map} +0 -0
- /package/dist/{chunk-N3OARGH2.js.map → chunk-T6XI5FLY.js.map} +0 -0
- /package/dist/{chunk-MQG7RV3B.js.map → chunk-T7OXJZCX.js.map} +0 -0
- /package/dist/{chunk-2T7DX6KR.js.map → chunk-TAT5USZN.js.map} +0 -0
- /package/dist/{chunk-ICX64J4U.js.map → chunk-TPQTRNER.js.map} +0 -0
- /package/dist/{chunk-D2TOWEYH.js.map → chunk-TUIN4MB7.js.map} +0 -0
- /package/dist/{chunk-LQDUHU3Y.js.map → chunk-TX3VECZU.js.map} +0 -0
- /package/dist/{chunk-TG7DADJR.js.map → chunk-TXLIEOJX.js.map} +0 -0
- /package/dist/{chunk-2ZVRJRXC.js.map → chunk-U3DN4HEY.js.map} +0 -0
- /package/dist/{chunk-PSMAWRPL.js.map → chunk-U7XM7CB4.js.map} +0 -0
- /package/dist/{chunk-4TQL3WP2.js.map → chunk-UJK53QFL.js.map} +0 -0
- /package/dist/{chunk-RBRX5ZS3.js.map → chunk-UMTXA2TH.js.map} +0 -0
- /package/dist/{chunk-36MIDGAH.js.map → chunk-UPDSXFK5.js.map} +0 -0
- /package/dist/{chunk-OYXBFSGK.js.map → chunk-UTIAXH52.js.map} +0 -0
- /package/dist/{chunk-5WUN7XPD.js.map → chunk-UVN5TMHU.js.map} +0 -0
- /package/dist/{chunk-UYE47LO6.js.map → chunk-VGYXW3VG.js.map} +0 -0
- /package/dist/{chunk-IKUNOX7F.js.map → chunk-VS7AHPCZ.js.map} +0 -0
- /package/dist/{chunk-MYUFMVCH.js.map → chunk-VTTAJOQ7.js.map} +0 -0
- /package/dist/{chunk-K63HGHZX.js.map → chunk-VWPOLUAO.js.map} +0 -0
- /package/dist/{chunk-GA4YEAMX.js.map → chunk-X3MWB2QU.js.map} +0 -0
- /package/dist/{chunk-I36GSRUJ.js.map → chunk-X6KAJI3V.js.map} +0 -0
- /package/dist/{chunk-IKMUFDVS.js.map → chunk-XBLRHV5R.js.map} +0 -0
- /package/dist/{chunk-XOSQP3YA.js.map → chunk-XDFP2LMW.js.map} +0 -0
- /package/dist/{chunk-MW7Y3T55.js.map → chunk-XEQMZB3C.js.map} +0 -0
- /package/dist/{chunk-B3LMRTRF.js.map → chunk-XEYLT5VA.js.map} +0 -0
- /package/dist/{chunk-UI4HI5QK.js.map → chunk-XHIQ5I6N.js.map} +0 -0
- /package/dist/{chunk-U6M4LS3M.js.map → chunk-XLH7QY2R.js.map} +0 -0
- /package/dist/{chunk-OSA5EQG5.js.map → chunk-XWFAMUZQ.js.map} +0 -0
- /package/dist/{chunk-6MT3HHUB.js.map → chunk-Y4OBB2VN.js.map} +0 -0
- /package/dist/{chunk-CZP5QXNB.js.map → chunk-YCVD6CI3.js.map} +0 -0
- /package/dist/{chunk-APW4T4SW.js.map → chunk-YENLNISG.js.map} +0 -0
- /package/dist/{chunk-JWPA6ZPZ.js.map → chunk-YIRVLKAX.js.map} +0 -0
- /package/dist/{chunk-LQ62ECE6.js.map → chunk-YL73CVNK.js.map} +0 -0
- /package/dist/{chunk-ILKDYBON.js.map → chunk-YLS6QE5G.js.map} +0 -0
- /package/dist/{chunk-YBKVGLQR.js.map → chunk-YPWU5KPE.js.map} +0 -0
- /package/dist/{chunk-IKJLSBUI.js.map → chunk-YQXTDZSU.js.map} +0 -0
- /package/dist/{chunk-TPMZBOFH.js.map → chunk-YSJEAAOL.js.map} +0 -0
- /package/dist/{chunk-W3BFRR2G.js.map → chunk-YWIFM7D7.js.map} +0 -0
- /package/dist/{chunk-WTJ4PLMU.js.map → chunk-YWVI6ZMK.js.map} +0 -0
- /package/dist/{chunk-5KWMYPJV.js.map → chunk-Z4FMAFNH.js.map} +0 -0
- /package/dist/{chunk-W5OWKVZG.js.map → chunk-Z654FWNU.js.map} +0 -0
- /package/dist/{chunk-5FH5LQVS.js.map → chunk-Z7Y523PS.js.map} +0 -0
- /package/dist/{chunk-HLL4PBO7.js.map → chunk-ZD67RM6G.js.map} +0 -0
- /package/dist/{chunk-IVYJX3OY.js.map → chunk-ZEG4VPBL.js.map} +0 -0
- /package/dist/{chunk-K6R5T44I.js.map → chunk-ZLYCOBHW.js.map} +0 -0
- /package/dist/{chunk-VADHIT26.js.map → chunk-ZNJ5MTXV.js.map} +0 -0
- /package/dist/{chunk-2KYQC4T5.js.map → chunk-ZSGY3H53.js.map} +0 -0
- /package/dist/{chunk-BKP43KK4.js.map → chunk-ZTPXACWB.js.map} +0 -0
- /package/dist/{chunk-JCY4CMDH.js.map → chunk-ZUA3JMI6.js.map} +0 -0
- /package/dist/{chunk-IGVVXLKJ.js.map → chunk-ZYAZUPPV.js.map} +0 -0
- /package/dist/{computer-viewer-LPZ763KF.js.map → computer-viewer-TDDO25AV.js.map} +0 -0
- /package/dist/{embedded-new-voice-YVMKSLKJ.js.map → embedded-new-voice-2G3VLPVQ.js.map} +0 -0
- /package/dist/{embedded-voice-BJPQFXSU.js.map → embedded-voice-T5IWOWGD.js.map} +0 -0
- /package/dist/{fleet-decision-row-AA4H5CDT.js.map → fleet-decision-row-WM64KXP3.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-HSMWVO4P.js.map → model-policy-picker-menu-SMC6J6QN.js.map} +0 -0
- /package/dist/{payment-page-card-3LTSFJGN.js.map → payment-page-card-G4U63KUV.js.map} +0 -0
- /package/dist/{platform-activity-row-5VYV6TX4.js.map → platform-activity-row-BUZGZAKZ.js.map} +0 -0
- /package/dist/{queue-surface-implementation-NXHZUKD2.js.map → queue-surface-implementation-4KUZ4PJV.js.map} +0 -0
- /package/dist/{sandbox-files-YCMLQUFU.js.map → sandbox-files-ESDMOFSD.js.map} +0 -0
- /package/dist/{session-connect-cards-KSQLMRM5.js.map → session-connect-cards-Q53KMMYY.js.map} +0 -0
- /package/dist/{session-realtime-ZR6JLG3Y.js.map → session-realtime-CF3I35WJ.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-YAHDPWVG.js.map → timeline-annotation-markers-CJK4RYZ4.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-KHXNCEJP.js.map → timeline-annotation-selection-67GF5H26.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-Y4XD3N7B.js.map → timeline-annotations-dialog-ONJPQDJQ.js.map} +0 -0
package/dist/chunk-KJZRQ55O.js
DELETED
|
@@ -1,2319 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
useCapabilityToolDefaults
|
|
4
|
-
} from "./chunk-UDMFRWVB.js";
|
|
5
|
-
import {
|
|
6
|
-
sameSessionForContext
|
|
7
|
-
} from "./chunk-CTBP2E2T.js";
|
|
8
|
-
import {
|
|
9
|
-
startWorkspaceClientConfigRefresh,
|
|
10
|
-
withWorkspaceClientConfig
|
|
11
|
-
} from "./chunk-DC6CN2XS.js";
|
|
12
|
-
import {
|
|
13
|
-
ManagedAuthSessionUnavailableError,
|
|
14
|
-
signOutWithAuthoritativeReconciliation
|
|
15
|
-
} from "./chunk-MXDZE5ML.js";
|
|
16
|
-
import {
|
|
17
|
-
beginSocialLoginAnalytics,
|
|
18
|
-
noteSuccessfulLogin,
|
|
19
|
-
observeSocialLoginResult
|
|
20
|
-
} from "./chunk-2GTZXN6F.js";
|
|
21
|
-
import {
|
|
22
|
-
startDeploymentRefresh
|
|
23
|
-
} from "./chunk-ARIV4S6T.js";
|
|
24
|
-
import {
|
|
25
|
-
deleteWorkspaceWithReconciliation
|
|
26
|
-
} from "./chunk-BZ74K6IE.js";
|
|
27
|
-
import {
|
|
28
|
-
unlinkGitHubInstallationWithReconciliation
|
|
29
|
-
} from "./chunk-3BCPHI4Q.js";
|
|
30
|
-
import {
|
|
31
|
-
isAuthorizedWorkspaceId,
|
|
32
|
-
organizationWorkspacePreferenceStorageId,
|
|
33
|
-
workspaceNavigationPreferenceStorageId,
|
|
34
|
-
writeLastWorkspaceId,
|
|
35
|
-
writeLastWorkspaceIdForOrganization
|
|
36
|
-
} from "./chunk-OBMCZO7E.js";
|
|
37
|
-
import {
|
|
38
|
-
beginWorkspaceOperation,
|
|
39
|
-
beginWorkspaceTransition,
|
|
40
|
-
invalidatePrincipalTransition,
|
|
41
|
-
invalidateWorkspaceTransition,
|
|
42
|
-
ownsPrincipalTransition,
|
|
43
|
-
ownsTransitionInvocation,
|
|
44
|
-
ownsWorkspaceOperation,
|
|
45
|
-
ownsWorkspaceTransition,
|
|
46
|
-
runCurrentTransitionInvocation,
|
|
47
|
-
runCurrentWorkspaceOperation,
|
|
48
|
-
runCurrentWorkspaceRequest,
|
|
49
|
-
settleWorkspaceOperation
|
|
50
|
-
} from "./chunk-ANALJOJL.js";
|
|
51
|
-
import {
|
|
52
|
-
useManualRepositoryCatalogReconciliation
|
|
53
|
-
} from "./chunk-WGBIFKTP.js";
|
|
54
|
-
import {
|
|
55
|
-
readBootstrap
|
|
56
|
-
} from "./chunk-CBMZS6DL.js";
|
|
57
|
-
import {
|
|
58
|
-
runSingleFlight
|
|
59
|
-
} from "./chunk-34XTCKDJ.js";
|
|
60
|
-
import {
|
|
61
|
-
createWithOpeningContext
|
|
62
|
-
} from "./chunk-KMDWWTDF.js";
|
|
63
|
-
import {
|
|
64
|
-
bootstrapErrorPresentation,
|
|
65
|
-
bootstrapWaitingPresentation
|
|
66
|
-
} from "./chunk-B7QZASPX.js";
|
|
67
|
-
import {
|
|
68
|
-
createQuietRetry
|
|
69
|
-
} from "./chunk-MME2XIN6.js";
|
|
70
|
-
import {
|
|
71
|
-
creationHandoffReconciled
|
|
72
|
-
} from "./chunk-UKZ3SGNF.js";
|
|
73
|
-
import {
|
|
74
|
-
markIntegrationConnectRedirect
|
|
75
|
-
} from "./chunk-OXD6ET34.js";
|
|
76
|
-
import {
|
|
77
|
-
SessionChannelProjectionAuthority,
|
|
78
|
-
applySessionPinProjection,
|
|
79
|
-
notifySessionPinChanged,
|
|
80
|
-
reconcileFailedSessionPin
|
|
81
|
-
} from "./chunk-JHZRAYI4.js";
|
|
82
|
-
import {
|
|
83
|
-
reusablePersonalGitHubAuthority
|
|
84
|
-
} from "./chunk-MFGKX4C3.js";
|
|
85
|
-
import {
|
|
86
|
-
isPaymentRequiredError,
|
|
87
|
-
paymentRefusalCode
|
|
88
|
-
} from "./chunk-INXGSG3J.js";
|
|
89
|
-
import {
|
|
90
|
-
upsertWorkspace
|
|
91
|
-
} from "./chunk-NI7NYZ2O.js";
|
|
92
|
-
import {
|
|
93
|
-
buildCreateSessionRequest,
|
|
94
|
-
classifyCreateSessionFailure,
|
|
95
|
-
prepareCreateSessionAttempt,
|
|
96
|
-
retainCreateSessionAttemptAfterFailure
|
|
97
|
-
} from "./chunk-WEZ5PXZP.js";
|
|
98
|
-
import {
|
|
99
|
-
useConsoleSharedQueries
|
|
100
|
-
} from "./chunk-Z2ZZZ6UF.js";
|
|
101
|
-
import {
|
|
102
|
-
t
|
|
103
|
-
} from "./chunk-GE33BGB7.js";
|
|
104
|
-
import {
|
|
105
|
-
buildOpenGeniUiTools,
|
|
106
|
-
buildResources,
|
|
107
|
-
enabledWorkspaceCapabilityMcpServers,
|
|
108
|
-
groupRepositories,
|
|
109
|
-
initialReasoningEffort,
|
|
110
|
-
installedApiIntegrationMcpServers,
|
|
111
|
-
isAbortError,
|
|
112
|
-
mergeMcpServerOptions,
|
|
113
|
-
selectableMcpServers
|
|
114
|
-
} from "./chunk-ZPW5NFYD.js";
|
|
115
|
-
import {
|
|
116
|
-
hasWorkspacePermission,
|
|
117
|
-
isWorkspacePermissionDenied,
|
|
118
|
-
lacksWorkspacePermission
|
|
119
|
-
} from "./chunk-H2ALCTWC.js";
|
|
120
|
-
import {
|
|
121
|
-
loadCurrentManagedSelfContext,
|
|
122
|
-
managedSelfContextIdentity
|
|
123
|
-
} from "./chunk-LBSXJVHD.js";
|
|
124
|
-
import {
|
|
125
|
-
useNavigate,
|
|
126
|
-
usePage,
|
|
127
|
-
useRouterState
|
|
128
|
-
} from "./chunk-U5EFEMYU.js";
|
|
129
|
-
import {
|
|
130
|
-
useEmbedded,
|
|
131
|
-
useHostMessageContext,
|
|
132
|
-
useHostMessageContextTools
|
|
133
|
-
} from "./chunk-ENFLCAR3.js";
|
|
134
|
-
import {
|
|
135
|
-
toast
|
|
136
|
-
} from "./chunk-YG6NARQY.js";
|
|
137
|
-
import {
|
|
138
|
-
createSessionEventFeedStore,
|
|
139
|
-
useLatestCallback
|
|
140
|
-
} from "./chunk-JDFDPMKX.js";
|
|
141
|
-
import {
|
|
142
|
-
userErrorText
|
|
143
|
-
} from "./chunk-L4OF77LE.js";
|
|
144
|
-
import {
|
|
145
|
-
claimHumanInputDraftOwner,
|
|
146
|
-
forgetAllHumanInputDrafts
|
|
147
|
-
} from "./chunk-X62OJCQW.js";
|
|
148
|
-
import {
|
|
149
|
-
composerSubmissionErrorMessage
|
|
150
|
-
} from "./chunk-5MOJZORA.js";
|
|
151
|
-
import {
|
|
152
|
-
isTransientServiceFailure
|
|
153
|
-
} from "./chunk-5AIMVW6Y.js";
|
|
154
|
-
|
|
155
|
-
// src/app/app-state.tsx
|
|
156
|
-
import {
|
|
157
|
-
resolveWorkspaceSessionDefaults,
|
|
158
|
-
resolveWorkspaceSessionToolDefaults
|
|
159
|
-
} from "@opengeni/contracts";
|
|
160
|
-
import { OpenGeniApiError } from "@opengeni/sdk/browser";
|
|
161
|
-
import {
|
|
162
|
-
useCallback,
|
|
163
|
-
useEffect,
|
|
164
|
-
useInsertionEffect,
|
|
165
|
-
useMemo,
|
|
166
|
-
useRef,
|
|
167
|
-
useState
|
|
168
|
-
} from "react";
|
|
169
|
-
import { flushSync } from "react-dom";
|
|
170
|
-
import { errorMessage } from "@opengeni/contracts/values";
|
|
171
|
-
var GITHUB_STATUS_TOAST_ID = "opengeni-github-status";
|
|
172
|
-
var PERSONAL_GITHUB_STATUS_TOAST_ID = "opengeni-personal-github-status";
|
|
173
|
-
function preserveSlackLinkForManagedAuth(mode, phase) {
|
|
174
|
-
return mode === "signin" && phase === "raw";
|
|
175
|
-
}
|
|
176
|
-
function createSlackLinkPrepareController(value) {
|
|
177
|
-
let workspaceId = value?.workspaceId ?? null;
|
|
178
|
-
let bearer = value?.token ?? null;
|
|
179
|
-
let inFlight = null;
|
|
180
|
-
let prepared = null;
|
|
181
|
-
let failure;
|
|
182
|
-
let hasFailure = false;
|
|
183
|
-
let generation = 0;
|
|
184
|
-
return {
|
|
185
|
-
workspaceId: () => workspaceId,
|
|
186
|
-
phase: () => {
|
|
187
|
-
if (!workspaceId) return "none";
|
|
188
|
-
if (bearer !== null) return "raw";
|
|
189
|
-
if (inFlight) return "in_flight";
|
|
190
|
-
if (prepared !== null) return "prepared";
|
|
191
|
-
return hasFailure ? "failed" : "none";
|
|
192
|
-
},
|
|
193
|
-
prepare: (requestedWorkspaceId, exchange) => {
|
|
194
|
-
if (!workspaceId || requestedWorkspaceId !== workspaceId) return Promise.resolve(null);
|
|
195
|
-
if (prepared !== null) return Promise.resolve(prepared);
|
|
196
|
-
if (hasFailure) return Promise.reject(failure);
|
|
197
|
-
if (inFlight) return inFlight;
|
|
198
|
-
if (bearer === null) return Promise.resolve(null);
|
|
199
|
-
const token = bearer;
|
|
200
|
-
const claimedGeneration = generation;
|
|
201
|
-
let exchangePromise;
|
|
202
|
-
try {
|
|
203
|
-
exchangePromise = exchange(token);
|
|
204
|
-
} catch (error) {
|
|
205
|
-
exchangePromise = Promise.reject(error);
|
|
206
|
-
}
|
|
207
|
-
bearer = null;
|
|
208
|
-
let flight;
|
|
209
|
-
flight = exchangePromise.then(
|
|
210
|
-
(request) => {
|
|
211
|
-
if (generation === claimedGeneration) prepared = request;
|
|
212
|
-
return request;
|
|
213
|
-
},
|
|
214
|
-
(error) => {
|
|
215
|
-
if (generation === claimedGeneration) {
|
|
216
|
-
failure = error;
|
|
217
|
-
hasFailure = true;
|
|
218
|
-
}
|
|
219
|
-
throw error;
|
|
220
|
-
}
|
|
221
|
-
).finally(() => {
|
|
222
|
-
if (generation === claimedGeneration && inFlight === flight) inFlight = null;
|
|
223
|
-
});
|
|
224
|
-
inFlight = flight;
|
|
225
|
-
return flight;
|
|
226
|
-
},
|
|
227
|
-
clear: () => {
|
|
228
|
-
generation += 1;
|
|
229
|
-
workspaceId = null;
|
|
230
|
-
bearer = null;
|
|
231
|
-
inFlight = null;
|
|
232
|
-
prepared = null;
|
|
233
|
-
failure = void 0;
|
|
234
|
-
hasFailure = false;
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
function useAppState(host, appStateOptions) {
|
|
239
|
-
const messageContext = useHostMessageContext();
|
|
240
|
-
const embedded = useEmbedded();
|
|
241
|
-
const hostMessageContext = useRef(messageContext);
|
|
242
|
-
hostMessageContext.current = messageContext;
|
|
243
|
-
const messageContextTools = useHostMessageContextTools();
|
|
244
|
-
const hostMessageContextTools = useRef(messageContextTools);
|
|
245
|
-
hostMessageContextTools.current = messageContextTools;
|
|
246
|
-
const {
|
|
247
|
-
captureProductEvent,
|
|
248
|
-
checkDeploymentRevision,
|
|
249
|
-
clearStoredAccessKey,
|
|
250
|
-
configureManagedActorEpoch,
|
|
251
|
-
createOpenGeniClient,
|
|
252
|
-
fetchAuthSession,
|
|
253
|
-
fetchClientConfig,
|
|
254
|
-
getStoredAccessKey,
|
|
255
|
-
setStoredAccessKey,
|
|
256
|
-
signInEmail,
|
|
257
|
-
signOutManaged,
|
|
258
|
-
signUpEmail,
|
|
259
|
-
startManagedSocialSignIn,
|
|
260
|
-
signInPasskey,
|
|
261
|
-
signUpPasskey,
|
|
262
|
-
slackLink
|
|
263
|
-
} = host;
|
|
264
|
-
const [session, setSessionState] = useState(null);
|
|
265
|
-
const [sessionChannelProjectionAuthority] = useState(
|
|
266
|
-
() => new SessionChannelProjectionAuthority()
|
|
267
|
-
);
|
|
268
|
-
const [sessionCreationHandoff, setSessionCreationHandoff] = useState(null);
|
|
269
|
-
const [clientConfig, setClientConfig] = useState(null);
|
|
270
|
-
const [workspaceConfig, setWorkspaceConfig] = useState(
|
|
271
|
-
void 0
|
|
272
|
-
);
|
|
273
|
-
const [workspaceConfigVersion, setWorkspaceConfigVersion] = useState(0);
|
|
274
|
-
const [configError, setConfigError] = useState(null);
|
|
275
|
-
const [configRequestVersion, setConfigRequestVersion] = useState(0);
|
|
276
|
-
const [authSession, setAuthSession] = useState(void 0);
|
|
277
|
-
const [managedAuthBootstrapComplete, setManagedAuthBootstrapComplete] = useState(false);
|
|
278
|
-
const [accessContext, setAccessContext] = useState(null);
|
|
279
|
-
const accessContextRef = useRef(accessContext);
|
|
280
|
-
useInsertionEffect(() => {
|
|
281
|
-
accessContextRef.current = accessContext;
|
|
282
|
-
}, [accessContext]);
|
|
283
|
-
const [workspaces, setWorkspaces] = useState([]);
|
|
284
|
-
const [managedSelfContext, setManagedSelfContext] = useState(null);
|
|
285
|
-
const [slackLinkContinuationWorkspaceId, setSlackLinkContinuationWorkspaceId] = useState(slackLink.workspaceId);
|
|
286
|
-
const [invalidSlackLinkQueryWorkspaceId, setInvalidSlackLinkQueryWorkspaceId] = useState(host.initialInvalidSlackLinkQueryWorkspaceId);
|
|
287
|
-
const [accessLoading, setAccessLoading] = useState(false);
|
|
288
|
-
const [accessError, setAccessError] = useState(null);
|
|
289
|
-
const [creditRequired, setCreditRequired] = useState(null);
|
|
290
|
-
const [model, setModel] = useState("gpt-6-astra");
|
|
291
|
-
const [reasoningEffort, setReasoningEffort] = useState("low");
|
|
292
|
-
const [latencyMode, setLatencyMode] = useState("standard");
|
|
293
|
-
const [inspectorOpen, setInspectorOpen] = useState(false);
|
|
294
|
-
const [connectionState, setConnectionState] = useState("idle");
|
|
295
|
-
const [sessionEventFeedStore] = useState(createSessionEventFeedStore);
|
|
296
|
-
useEffect(() => {
|
|
297
|
-
const retireReconciledCreation = () => {
|
|
298
|
-
const feed = sessionEventFeedStore.getSnapshot();
|
|
299
|
-
if (!feed) return;
|
|
300
|
-
setSessionCreationHandoff(
|
|
301
|
-
(current) => creationHandoffReconciled(current, feed.events) ? null : current
|
|
302
|
-
);
|
|
303
|
-
};
|
|
304
|
-
retireReconciledCreation();
|
|
305
|
-
return sessionEventFeedStore.subscribe(retireReconciledCreation);
|
|
306
|
-
}, [sessionEventFeedStore]);
|
|
307
|
-
const [manualRepos, setManualRepos] = useState([]);
|
|
308
|
-
const [manualReposOpen, setManualReposOpen] = useState(false);
|
|
309
|
-
const [nextRepoId, setNextRepoId] = useState(1);
|
|
310
|
-
const [selectedRepoIds, setSelectedRepoIds] = useState(() => /* @__PURE__ */ new Set());
|
|
311
|
-
const [selectedRepoRefs, setSelectedRepoRefs] = useState({});
|
|
312
|
-
const [githubRepos, setGithubRepos] = useState([]);
|
|
313
|
-
const [githubStatus, setGithubStatus] = useState(null);
|
|
314
|
-
const [githubStatusFailed, setGithubStatusFailed] = useState(false);
|
|
315
|
-
const [githubCatalogReady, setGithubCatalogReady] = useState(false);
|
|
316
|
-
const [personalGitHubStatus, setPersonalGitHubStatus] = useState(null);
|
|
317
|
-
const [personalGitHubRepositories, setPersonalGitHubRepositories] = useState([]);
|
|
318
|
-
const [personalGitHubSelection, setPersonalGitHubSelection] = useState(null);
|
|
319
|
-
const [personalGitHubCatalogReady, setPersonalGitHubCatalogReady] = useState(false);
|
|
320
|
-
const [personalGitHubBusy, setPersonalGitHubBusy] = useState(false);
|
|
321
|
-
const [selectedPersonalGitHubRepoIds, setSelectedPersonalGitHubRepoIds] = useState(
|
|
322
|
-
() => /* @__PURE__ */ new Set()
|
|
323
|
-
);
|
|
324
|
-
const [selectedPersonalGitHubRepoRefs, setSelectedPersonalGitHubRepoRefs] = useState({});
|
|
325
|
-
const [personalGitHubAuthorityCache, setPersonalGitHubAuthorityCache] = useState(null);
|
|
326
|
-
const personalGitHubAuthority = personalGitHubAuthorityCache?.authority ?? null;
|
|
327
|
-
const [githubOrg, setGithubOrg] = useState("");
|
|
328
|
-
const [workspaceMcpServers, setWorkspaceMcpServers] = useState([]);
|
|
329
|
-
const [workspaceCapabilityCatalog, setWorkspaceCapabilityCatalog] = useState([]);
|
|
330
|
-
const [workspaceMemberIntegrationSetup, setWorkspaceMemberIntegrationSetup] = useState(void 0);
|
|
331
|
-
const [workspaceMcpCatalogReady, setWorkspaceMcpCatalogReady] = useState(false);
|
|
332
|
-
const [workspaceMcpCatalogLoadedSuccessfully, setWorkspaceMcpCatalogLoadedSuccessfully] = useState(false);
|
|
333
|
-
const [selectedCapabilityToolIds, setSelectedCapabilityToolIds] = useState(
|
|
334
|
-
() => /* @__PURE__ */ new Set()
|
|
335
|
-
);
|
|
336
|
-
const [workspaceStateOwnerId, setWorkspaceStateOwnerId] = useState(null);
|
|
337
|
-
const workspaceTransitionIdentity = useRef({
|
|
338
|
-
workspaceId: null,
|
|
339
|
-
revision: 0
|
|
340
|
-
});
|
|
341
|
-
const principalTransitionIdentity = useRef({
|
|
342
|
-
revision: 0
|
|
343
|
-
});
|
|
344
|
-
const workspaceOperationSequence = useRef(0);
|
|
345
|
-
const activeCreateOperation = useRef(null);
|
|
346
|
-
const githubManifestOperationSequence = useRef(0);
|
|
347
|
-
const activeGitHubManifestOperation = useRef(null);
|
|
348
|
-
const githubDisconnectOperationSequence = useRef(0);
|
|
349
|
-
const activeGitHubDisconnectOperation = useRef(null);
|
|
350
|
-
const authPrincipalIdRef = useRef(null);
|
|
351
|
-
const accessPrincipalIdRef = useRef(null);
|
|
352
|
-
const managedSelfContextIdentityRef = useRef(null);
|
|
353
|
-
const seenCapabilityToolIds = useRef(/* @__PURE__ */ new Set());
|
|
354
|
-
const githubRefreshId = useRef(0);
|
|
355
|
-
const personalGitHubRefreshId = useRef(0);
|
|
356
|
-
const githubQuietRetry = useRef(createQuietRetry());
|
|
357
|
-
const personalGitHubQuietRetry = useRef(createQuietRetry());
|
|
358
|
-
const refreshGitHubRef = useRef(async () => {
|
|
359
|
-
});
|
|
360
|
-
const refreshPersonalGitHubRef = useRef(async () => {
|
|
361
|
-
});
|
|
362
|
-
useEffect(
|
|
363
|
-
() => () => {
|
|
364
|
-
githubQuietRetry.current.reset();
|
|
365
|
-
personalGitHubQuietRetry.current.reset();
|
|
366
|
-
},
|
|
367
|
-
[]
|
|
368
|
-
);
|
|
369
|
-
const mcpRefreshId = useRef(0);
|
|
370
|
-
const mcpCatalogRequests = useRef(/* @__PURE__ */ new Map());
|
|
371
|
-
const pendingCreateAttempt = useRef(null);
|
|
372
|
-
const appliedWorkspaceSessionDefaultsKey = useRef(null);
|
|
373
|
-
const appliedWorkspaceToolDefaultsKey = useRef(null);
|
|
374
|
-
const [busy, setBusy] = useState(false);
|
|
375
|
-
const [repoBusy, setRepoBusy] = useState(false);
|
|
376
|
-
const [githubAppBusy, setGithubAppBusy] = useState(false);
|
|
377
|
-
const [hasAccessKey, setHasAccessKey] = useState(() => getStoredAccessKey() !== null);
|
|
378
|
-
const [accessKeyDraft, setAccessKeyDraft] = useState("");
|
|
379
|
-
const [accessKeyVersion, setAccessKeyVersion] = useState(0);
|
|
380
|
-
const keyAuthRequired = host.authority === "app" && (clientConfig?.auth.mode === "deploymentKey" || clientConfig?.auth.mode === "configuredToken");
|
|
381
|
-
const managedAuthRequired = host.authority === "app" && clientConfig?.auth.mode === "managedSession";
|
|
382
|
-
const browserAccountsConfigured = managedAuthRequired && clientConfig?.managedAuthSessionSetMode !== "legacy";
|
|
383
|
-
const browserAccountsEnabled = browserAccountsConfigured && managedAuthBootstrapComplete;
|
|
384
|
-
const managedEmailVerificationRequired = clientConfig?.auth.mode === "managedSession" ? clientConfig.auth.emailVerificationRequired ?? true : true;
|
|
385
|
-
const managedSocialProviders = clientConfig?.auth.mode === "managedSession" ? clientConfig.auth.socialProviders ?? [] : [];
|
|
386
|
-
const managedPasskeySignIn = clientConfig?.auth.mode === "managedSession" && clientConfig.auth.passkeySignIn === true && signInPasskey !== void 0;
|
|
387
|
-
const managedPasskeySignUp = managedPasskeySignIn && clientConfig?.auth.mode === "managedSession" && clientConfig.auth.passkeySignUp === true && signUpPasskey !== void 0;
|
|
388
|
-
const managedNewSignupsEnabled = clientConfig?.auth.mode === "managedSession" ? clientConfig.auth.newSignupsEnabled !== false : true;
|
|
389
|
-
const keyAuthReady = !keyAuthRequired || hasAccessKey;
|
|
390
|
-
const managedAuthReady = !managedAuthRequired || Boolean(authSession);
|
|
391
|
-
const authReady = keyAuthReady && managedAuthReady;
|
|
392
|
-
const defaultWorkspaceId = accessContext?.defaultWorkspaceId ?? workspaces[0]?.id ?? accessContext?.workspaceGrants[0]?.workspaceId ?? null;
|
|
393
|
-
const navigate = useNavigate();
|
|
394
|
-
const hostPage = usePage();
|
|
395
|
-
const pathname = useRouterState({
|
|
396
|
-
select: (state) => state.location.pathname
|
|
397
|
-
});
|
|
398
|
-
useEffect(() => {
|
|
399
|
-
if (!browserAccountsConfigured) configureManagedActorEpoch(null);
|
|
400
|
-
return () => configureManagedActorEpoch(null);
|
|
401
|
-
}, [browserAccountsConfigured, configureManagedActorEpoch]);
|
|
402
|
-
useEffect(() => {
|
|
403
|
-
if (invalidSlackLinkQueryWorkspaceId && pathname !== `/workspaces/${encodeURIComponent(invalidSlackLinkQueryWorkspaceId)}/capabilities`) {
|
|
404
|
-
setInvalidSlackLinkQueryWorkspaceId(null);
|
|
405
|
-
}
|
|
406
|
-
}, [invalidSlackLinkQueryWorkspaceId, pathname]);
|
|
407
|
-
const client = useMemo(() => {
|
|
408
|
-
void accessKeyVersion;
|
|
409
|
-
return createOpenGeniClient(sessionChannelProjectionAuthority.beginRead);
|
|
410
|
-
}, [accessKeyVersion, createOpenGeniClient, sessionChannelProjectionAuthority]);
|
|
411
|
-
useConsoleSharedQueries(client);
|
|
412
|
-
const setSession = useCallback((value) => {
|
|
413
|
-
setSessionState((current) => {
|
|
414
|
-
const next = typeof value === "function" ? value(current) : value;
|
|
415
|
-
return sameSessionForContext(current, next) ? current : next;
|
|
416
|
-
});
|
|
417
|
-
}, []);
|
|
418
|
-
const resetSessionView = useCallback(() => {
|
|
419
|
-
setSession(null);
|
|
420
|
-
setSessionCreationHandoff(null);
|
|
421
|
-
setConnectionState("idle");
|
|
422
|
-
sessionEventFeedStore.set(null);
|
|
423
|
-
}, [sessionEventFeedStore, setSession]);
|
|
424
|
-
const resetWorkspaceIntegrations = useCallback(() => {
|
|
425
|
-
setGithubStatus(null);
|
|
426
|
-
setGithubStatusFailed(false);
|
|
427
|
-
setGithubRepos([]);
|
|
428
|
-
setGithubCatalogReady(false);
|
|
429
|
-
setPersonalGitHubStatus(null);
|
|
430
|
-
setPersonalGitHubRepositories([]);
|
|
431
|
-
setPersonalGitHubSelection(null);
|
|
432
|
-
setPersonalGitHubCatalogReady(false);
|
|
433
|
-
setPersonalGitHubAuthorityCache(null);
|
|
434
|
-
setWorkspaceMcpServers([]);
|
|
435
|
-
setWorkspaceCapabilityCatalog([]);
|
|
436
|
-
setWorkspaceMemberIntegrationSetup(void 0);
|
|
437
|
-
setWorkspaceMcpCatalogReady(false);
|
|
438
|
-
setWorkspaceMcpCatalogLoadedSuccessfully(false);
|
|
439
|
-
}, []);
|
|
440
|
-
const resetWorkspaceState = useCallback(
|
|
441
|
-
(workspaceId, force) => {
|
|
442
|
-
const previousWorkspaceId = workspaceTransitionIdentity.current.workspaceId;
|
|
443
|
-
const transition = workspaceId === null ? {
|
|
444
|
-
identity: invalidateWorkspaceTransition(workspaceTransitionIdentity.current),
|
|
445
|
-
changed: true
|
|
446
|
-
} : beginWorkspaceTransition(workspaceTransitionIdentity.current, workspaceId);
|
|
447
|
-
if (!force && !transition.changed) {
|
|
448
|
-
return;
|
|
449
|
-
}
|
|
450
|
-
workspaceTransitionIdentity.current = transition.identity;
|
|
451
|
-
if (previousWorkspaceId && (force || previousWorkspaceId !== workspaceId)) {
|
|
452
|
-
sessionChannelProjectionAuthority.clearWorkspace(previousWorkspaceId);
|
|
453
|
-
}
|
|
454
|
-
activeCreateOperation.current = null;
|
|
455
|
-
activeGitHubManifestOperation.current = null;
|
|
456
|
-
activeGitHubDisconnectOperation.current = null;
|
|
457
|
-
githubRefreshId.current += 1;
|
|
458
|
-
personalGitHubRefreshId.current += 1;
|
|
459
|
-
mcpRefreshId.current += 1;
|
|
460
|
-
pendingCreateAttempt.current = null;
|
|
461
|
-
resetSessionView();
|
|
462
|
-
setInspectorOpen(false);
|
|
463
|
-
setManualRepos([]);
|
|
464
|
-
setManualReposOpen(false);
|
|
465
|
-
setNextRepoId(1);
|
|
466
|
-
setSelectedRepoIds(/* @__PURE__ */ new Set());
|
|
467
|
-
setSelectedRepoRefs({});
|
|
468
|
-
setSelectedPersonalGitHubRepoIds(/* @__PURE__ */ new Set());
|
|
469
|
-
setSelectedPersonalGitHubRepoRefs({});
|
|
470
|
-
setSelectedCapabilityToolIds(/* @__PURE__ */ new Set());
|
|
471
|
-
seenCapabilityToolIds.current = /* @__PURE__ */ new Set();
|
|
472
|
-
appliedWorkspaceToolDefaultsKey.current = null;
|
|
473
|
-
setGithubOrg("");
|
|
474
|
-
setBusy(false);
|
|
475
|
-
setRepoBusy(false);
|
|
476
|
-
setGithubAppBusy(false);
|
|
477
|
-
setPersonalGitHubBusy(false);
|
|
478
|
-
resetWorkspaceIntegrations();
|
|
479
|
-
setWorkspaceConfig(void 0);
|
|
480
|
-
setWorkspaceStateOwnerId(workspaceId);
|
|
481
|
-
},
|
|
482
|
-
[resetSessionView, resetWorkspaceIntegrations, sessionChannelProjectionAuthority]
|
|
483
|
-
);
|
|
484
|
-
const prepareWorkspaceTransition = useCallback(
|
|
485
|
-
(workspaceId) => resetWorkspaceState(workspaceId, false),
|
|
486
|
-
[resetWorkspaceState]
|
|
487
|
-
);
|
|
488
|
-
const captureWorkspaceInvocation = useCallback(
|
|
489
|
-
(workspaceId) => {
|
|
490
|
-
const accepted = workspaceTransitionIdentity.current;
|
|
491
|
-
return ownsWorkspaceTransition(accepted, accepted, workspaceId) ? accepted : null;
|
|
492
|
-
},
|
|
493
|
-
[]
|
|
494
|
-
);
|
|
495
|
-
const ownsWorkspaceInvocation = useCallback(
|
|
496
|
-
(workspaceId, accepted) => ownsWorkspaceTransition(workspaceTransitionIdentity.current, accepted, workspaceId),
|
|
497
|
-
[]
|
|
498
|
-
);
|
|
499
|
-
const clientConfigurationReady = clientConfig !== null;
|
|
500
|
-
useEffect(() => {
|
|
501
|
-
if (!clientConfigurationReady || !authReady || !workspaceStateOwnerId) return;
|
|
502
|
-
const workspaceId = workspaceStateOwnerId;
|
|
503
|
-
const accepted = captureWorkspaceInvocation(workspaceId);
|
|
504
|
-
if (!accepted) return;
|
|
505
|
-
return startWorkspaceClientConfigRefresh({
|
|
506
|
-
read: (signal) => fetchClientConfig(signal, workspaceId),
|
|
507
|
-
ownsWorkspace: () => ownsWorkspaceInvocation(workspaceId, accepted),
|
|
508
|
-
apply: setWorkspaceConfig,
|
|
509
|
-
subscribeFocus: (refresh) => {
|
|
510
|
-
window.addEventListener("focus", refresh);
|
|
511
|
-
return () => window.removeEventListener("focus", refresh);
|
|
512
|
-
}
|
|
513
|
-
});
|
|
514
|
-
}, [
|
|
515
|
-
fetchClientConfig,
|
|
516
|
-
clientConfigurationReady,
|
|
517
|
-
authReady,
|
|
518
|
-
workspaceStateOwnerId,
|
|
519
|
-
workspaceConfigVersion,
|
|
520
|
-
accessContext?.subjectId,
|
|
521
|
-
accessKeyVersion,
|
|
522
|
-
captureWorkspaceInvocation,
|
|
523
|
-
ownsWorkspaceInvocation
|
|
524
|
-
]);
|
|
525
|
-
const refreshWorkspaceConfig = useCallback(
|
|
526
|
-
() => setWorkspaceConfigVersion((version) => version + 1),
|
|
527
|
-
[]
|
|
528
|
-
);
|
|
529
|
-
const invalidatePrincipalWorkspaceState = useCallback(
|
|
530
|
-
(options) => {
|
|
531
|
-
principalTransitionIdentity.current = invalidatePrincipalTransition(
|
|
532
|
-
principalTransitionIdentity.current
|
|
533
|
-
);
|
|
534
|
-
authPrincipalIdRef.current = null;
|
|
535
|
-
accessPrincipalIdRef.current = null;
|
|
536
|
-
managedSelfContextIdentityRef.current = null;
|
|
537
|
-
setManagedSelfContext(null);
|
|
538
|
-
if (options?.preservePendingSlackLink !== true) {
|
|
539
|
-
slackLink.clear();
|
|
540
|
-
setSlackLinkContinuationWorkspaceId(null);
|
|
541
|
-
}
|
|
542
|
-
resetWorkspaceState(null, true);
|
|
543
|
-
},
|
|
544
|
-
[resetWorkspaceState, slackLink]
|
|
545
|
-
);
|
|
546
|
-
useEffect(() => {
|
|
547
|
-
if (appStateOptions.bootstrapSuspended) return;
|
|
548
|
-
let cancelled = false;
|
|
549
|
-
let stopDeploymentRefresh = () => {
|
|
550
|
-
};
|
|
551
|
-
const controller = new AbortController();
|
|
552
|
-
void Promise.resolve().then(
|
|
553
|
-
() => readBootstrap({
|
|
554
|
-
context: "client_configuration",
|
|
555
|
-
request: () => fetchClientConfig(controller.signal),
|
|
556
|
-
signal: controller.signal,
|
|
557
|
-
// An update parks the API for a while: say so calmly and continue
|
|
558
|
-
// on our own as soon as it answers.
|
|
559
|
-
waiting: {
|
|
560
|
-
onWaiting: (error, elapsedMs) => {
|
|
561
|
-
if (!cancelled) {
|
|
562
|
-
setConfigError(
|
|
563
|
-
bootstrapWaitingPresentation(error, "client_configuration", elapsedMs)
|
|
564
|
-
);
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
})
|
|
569
|
-
).then((config) => {
|
|
570
|
-
if (cancelled) {
|
|
571
|
-
return;
|
|
572
|
-
}
|
|
573
|
-
setClientConfig(config);
|
|
574
|
-
setConfigError(null);
|
|
575
|
-
setModel(config.defaultModel);
|
|
576
|
-
setReasoningEffort(initialReasoningEffort(config));
|
|
577
|
-
setLatencyMode("standard");
|
|
578
|
-
if (checkDeploymentRevision) {
|
|
579
|
-
stopDeploymentRefresh = startDeploymentRefresh(checkDeploymentRevision);
|
|
580
|
-
}
|
|
581
|
-
}).catch((error) => {
|
|
582
|
-
if (cancelled) {
|
|
583
|
-
return;
|
|
584
|
-
}
|
|
585
|
-
const presentation = bootstrapErrorPresentation(error, "client_configuration");
|
|
586
|
-
setConfigError(presentation);
|
|
587
|
-
});
|
|
588
|
-
return () => {
|
|
589
|
-
cancelled = true;
|
|
590
|
-
controller.abort();
|
|
591
|
-
stopDeploymentRefresh();
|
|
592
|
-
};
|
|
593
|
-
}, [
|
|
594
|
-
checkDeploymentRevision,
|
|
595
|
-
configRequestVersion,
|
|
596
|
-
fetchClientConfig,
|
|
597
|
-
appStateOptions.bootstrapSuspended
|
|
598
|
-
]);
|
|
599
|
-
useEffect(() => {
|
|
600
|
-
if (!clientConfig) {
|
|
601
|
-
setManagedAuthBootstrapComplete(false);
|
|
602
|
-
return;
|
|
603
|
-
}
|
|
604
|
-
if (!managedAuthRequired) {
|
|
605
|
-
if (authPrincipalIdRef.current !== null) {
|
|
606
|
-
invalidatePrincipalWorkspaceState();
|
|
607
|
-
}
|
|
608
|
-
setAuthSession(null);
|
|
609
|
-
setManagedAuthBootstrapComplete(true);
|
|
610
|
-
return;
|
|
611
|
-
}
|
|
612
|
-
let cancelled = false;
|
|
613
|
-
const acceptedPrincipal = principalTransitionIdentity.current;
|
|
614
|
-
const controller = new AbortController();
|
|
615
|
-
setManagedAuthBootstrapComplete(false);
|
|
616
|
-
setAuthSession(void 0);
|
|
617
|
-
void readBootstrap({
|
|
618
|
-
context: "client_configuration",
|
|
619
|
-
request: fetchAuthSession,
|
|
620
|
-
signal: controller.signal,
|
|
621
|
-
waiting: {
|
|
622
|
-
onWaiting: (error, elapsedMs) => {
|
|
623
|
-
if (!cancelled) {
|
|
624
|
-
setConfigError(bootstrapWaitingPresentation(error, "client_configuration", elapsedMs));
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
}).then((nextSession) => {
|
|
629
|
-
if (cancelled || !ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
630
|
-
return;
|
|
631
|
-
}
|
|
632
|
-
setConfigError((current) => current?.recovering ? null : current);
|
|
633
|
-
const nextPrincipalId = nextSession?.user.id ?? null;
|
|
634
|
-
if (authPrincipalIdRef.current !== null && authPrincipalIdRef.current !== nextPrincipalId) {
|
|
635
|
-
invalidatePrincipalWorkspaceState();
|
|
636
|
-
}
|
|
637
|
-
authPrincipalIdRef.current = nextPrincipalId;
|
|
638
|
-
observeSocialLoginResult(nextSession);
|
|
639
|
-
setAuthSession(nextSession);
|
|
640
|
-
setManagedAuthBootstrapComplete(true);
|
|
641
|
-
}).catch(() => {
|
|
642
|
-
if (cancelled || !ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
643
|
-
return;
|
|
644
|
-
}
|
|
645
|
-
setConfigError((current) => current?.recovering ? null : current);
|
|
646
|
-
setAuthSession(null);
|
|
647
|
-
setManagedAuthBootstrapComplete(true);
|
|
648
|
-
});
|
|
649
|
-
return () => {
|
|
650
|
-
cancelled = true;
|
|
651
|
-
controller.abort();
|
|
652
|
-
};
|
|
653
|
-
}, [clientConfig, fetchAuthSession, managedAuthRequired, invalidatePrincipalWorkspaceState]);
|
|
654
|
-
useEffect(() => {
|
|
655
|
-
if (!clientConfig || !authReady) {
|
|
656
|
-
setAccessContext(null);
|
|
657
|
-
setWorkspaces([]);
|
|
658
|
-
managedSelfContextIdentityRef.current = null;
|
|
659
|
-
setManagedSelfContext(null);
|
|
660
|
-
setAccessLoading(false);
|
|
661
|
-
setAccessError(null);
|
|
662
|
-
return;
|
|
663
|
-
}
|
|
664
|
-
let cancelled = false;
|
|
665
|
-
let acceptedPrincipal = principalTransitionIdentity.current;
|
|
666
|
-
const acceptedManagedIdentity = managedAuthRequired && authSession ? managedSelfContextIdentity({
|
|
667
|
-
credentialGeneration: accessKeyVersion,
|
|
668
|
-
managedUserId: authSession.user.id
|
|
669
|
-
}) : null;
|
|
670
|
-
managedSelfContextIdentityRef.current = acceptedManagedIdentity;
|
|
671
|
-
setManagedSelfContext(null);
|
|
672
|
-
setAccessLoading(true);
|
|
673
|
-
setAccessError((current) => current?.recovering ? current : null);
|
|
674
|
-
const controller = new AbortController();
|
|
675
|
-
const readAccess = (request) => readBootstrap({
|
|
676
|
-
context: "workspace_access",
|
|
677
|
-
request,
|
|
678
|
-
signal: controller.signal,
|
|
679
|
-
isCurrent: () => ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal),
|
|
680
|
-
waiting: {
|
|
681
|
-
onWaiting: (error, elapsedMs) => {
|
|
682
|
-
if (!cancelled && ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
683
|
-
setAccessError(bootstrapWaitingPresentation(error, "workspace_access", elapsedMs));
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
});
|
|
688
|
-
const selfContextPromise = acceptedManagedIdentity ? loadCurrentManagedSelfContext({
|
|
689
|
-
identity: acceptedManagedIdentity,
|
|
690
|
-
currentIdentity: () => managedSelfContextIdentityRef.current,
|
|
691
|
-
request: () => readAccess(() => client.listOrganizationMemberships())
|
|
692
|
-
}) : Promise.resolve(null);
|
|
693
|
-
void Promise.all([
|
|
694
|
-
readAccess(() => client.getAccessContext()),
|
|
695
|
-
readAccess(() => client.listWorkspaces()),
|
|
696
|
-
selfContextPromise
|
|
697
|
-
]).then(([context, nextWorkspaces, nextManagedSelfContext]) => {
|
|
698
|
-
if (cancelled || !ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
699
|
-
return;
|
|
700
|
-
}
|
|
701
|
-
setAccessError((current) => current?.recovering ? null : current);
|
|
702
|
-
if (acceptedManagedIdentity && nextManagedSelfContext === null) {
|
|
703
|
-
return;
|
|
704
|
-
}
|
|
705
|
-
if (nextManagedSelfContext && context.subjectId !== nextManagedSelfContext.identity.subjectId) {
|
|
706
|
-
throw new Error("managed self context did not match the authenticated subject");
|
|
707
|
-
}
|
|
708
|
-
if (accessPrincipalIdRef.current !== null && accessPrincipalIdRef.current !== context.subjectId) {
|
|
709
|
-
invalidatePrincipalWorkspaceState();
|
|
710
|
-
acceptedPrincipal = principalTransitionIdentity.current;
|
|
711
|
-
managedSelfContextIdentityRef.current = acceptedManagedIdentity;
|
|
712
|
-
}
|
|
713
|
-
accessPrincipalIdRef.current = context.subjectId;
|
|
714
|
-
claimHumanInputDraftOwner(context.subjectId);
|
|
715
|
-
setAccessContext(context);
|
|
716
|
-
setWorkspaces(nextWorkspaces);
|
|
717
|
-
setManagedSelfContext(nextManagedSelfContext);
|
|
718
|
-
}).catch((error) => {
|
|
719
|
-
if (cancelled || !ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
720
|
-
return;
|
|
721
|
-
}
|
|
722
|
-
const presentation = bootstrapErrorPresentation(error, "workspace_access");
|
|
723
|
-
controller.abort();
|
|
724
|
-
setAccessContext(null);
|
|
725
|
-
setWorkspaces([]);
|
|
726
|
-
setAccessError(presentation);
|
|
727
|
-
}).finally(() => {
|
|
728
|
-
if (!cancelled && ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
729
|
-
setAccessLoading(false);
|
|
730
|
-
}
|
|
731
|
-
});
|
|
732
|
-
return () => {
|
|
733
|
-
cancelled = true;
|
|
734
|
-
if (managedSelfContextIdentityRef.current === acceptedManagedIdentity) {
|
|
735
|
-
managedSelfContextIdentityRef.current = null;
|
|
736
|
-
}
|
|
737
|
-
controller.abort();
|
|
738
|
-
};
|
|
739
|
-
}, [
|
|
740
|
-
accessKeyVersion,
|
|
741
|
-
authSession,
|
|
742
|
-
clientConfig,
|
|
743
|
-
authReady,
|
|
744
|
-
client,
|
|
745
|
-
managedAuthRequired,
|
|
746
|
-
invalidatePrincipalWorkspaceState
|
|
747
|
-
]);
|
|
748
|
-
useEffect(() => {
|
|
749
|
-
if (!accessContext) return;
|
|
750
|
-
const workspaceId = /^\/workspaces\/([^/]+)/.exec(pathname)?.[1] ?? null;
|
|
751
|
-
if (!isAuthorizedWorkspaceId(workspaceId, workspaces, accessContext)) return;
|
|
752
|
-
writeLastWorkspaceId(
|
|
753
|
-
workspaceNavigationPreferenceStorageId(accessContext.subjectId),
|
|
754
|
-
workspaceId
|
|
755
|
-
);
|
|
756
|
-
const accountId = workspaces.find((workspace) => workspace.id === workspaceId)?.accountId;
|
|
757
|
-
if (accountId) {
|
|
758
|
-
writeLastWorkspaceIdForOrganization(
|
|
759
|
-
organizationWorkspacePreferenceStorageId(accessContext.subjectId),
|
|
760
|
-
accountId,
|
|
761
|
-
workspaceId
|
|
762
|
-
);
|
|
763
|
-
}
|
|
764
|
-
}, [accessContext, pathname, workspaces]);
|
|
765
|
-
useEffect(() => {
|
|
766
|
-
if (!clientConfig) return;
|
|
767
|
-
const workspaceId = /^\/workspaces\/([^/]+)/.exec(pathname)?.[1] ?? null;
|
|
768
|
-
if (!workspaceId) return;
|
|
769
|
-
const workspace = workspaces.find((candidate) => candidate.id === workspaceId);
|
|
770
|
-
if (!workspace) return;
|
|
771
|
-
const configured = resolveWorkspaceSessionDefaults(workspace.settings);
|
|
772
|
-
const nextModel = configured?.model ?? clientConfig.defaultModel;
|
|
773
|
-
const nextEffort = configured?.reasoningEffort ?? initialReasoningEffort(clientConfig);
|
|
774
|
-
const key = `${workspaceId}\0${nextModel}\0${nextEffort}`;
|
|
775
|
-
if (appliedWorkspaceSessionDefaultsKey.current === key) return;
|
|
776
|
-
appliedWorkspaceSessionDefaultsKey.current = key;
|
|
777
|
-
setModel(nextModel);
|
|
778
|
-
setReasoningEffort(nextEffort);
|
|
779
|
-
setLatencyMode("standard");
|
|
780
|
-
}, [clientConfig, pathname, workspaces]);
|
|
781
|
-
const repositoryGroups = useMemo(() => groupRepositories(githubRepos), [githubRepos]);
|
|
782
|
-
const toolMcpServers = useMemo(
|
|
783
|
-
() => mergeMcpServerOptions(selectableMcpServers(clientConfig), workspaceMcpServers),
|
|
784
|
-
[clientConfig, workspaceMcpServers]
|
|
785
|
-
);
|
|
786
|
-
const routedWorkspaceId = /^\/workspaces\/([^/]+)/.exec(pathname)?.[1] ?? null;
|
|
787
|
-
const routedWorkspace = workspaces.find((workspace) => workspace.id === routedWorkspaceId) ?? null;
|
|
788
|
-
const configuredWorkspaceToolDefaults = useMemo(
|
|
789
|
-
() => resolveWorkspaceSessionToolDefaults(routedWorkspace?.settings),
|
|
790
|
-
[routedWorkspace?.settings]
|
|
791
|
-
);
|
|
792
|
-
const workspaceDefaultToolIds = useMemo(() => {
|
|
793
|
-
const available = new Set(toolMcpServers.map((server) => server.id));
|
|
794
|
-
const configured = configuredWorkspaceToolDefaults?.mcpServerIds;
|
|
795
|
-
return configured ? [
|
|
796
|
-
.../* @__PURE__ */ new Set([
|
|
797
|
-
...configured.filter((id) => available.has(id)),
|
|
798
|
-
...configuredWorkspaceToolDefaults?.inheritConnectedMcpServers ? toolMcpServers.filter((server) => !["opengeni", "files", "docs"].includes(server.id)).map((server) => server.id) : []
|
|
799
|
-
])
|
|
800
|
-
] : toolMcpServers.map((server) => server.id);
|
|
801
|
-
}, [configuredWorkspaceToolDefaults, toolMcpServers]);
|
|
802
|
-
const lastValidResources = useRef([]);
|
|
803
|
-
const repositoryBuild = useMemo(() => {
|
|
804
|
-
try {
|
|
805
|
-
return {
|
|
806
|
-
resources: buildResources(
|
|
807
|
-
manualRepos,
|
|
808
|
-
githubRepos,
|
|
809
|
-
selectedRepoIds,
|
|
810
|
-
selectedRepoRefs,
|
|
811
|
-
personalGitHubRepositories,
|
|
812
|
-
selectedPersonalGitHubRepoIds,
|
|
813
|
-
selectedPersonalGitHubRepoRefs,
|
|
814
|
-
personalGitHubSelection?.credentialBindingId ?? null
|
|
815
|
-
),
|
|
816
|
-
error: null
|
|
817
|
-
};
|
|
818
|
-
} catch (error) {
|
|
819
|
-
return {
|
|
820
|
-
resources: lastValidResources.current,
|
|
821
|
-
error: errorMessage(error)
|
|
822
|
-
};
|
|
823
|
-
}
|
|
824
|
-
}, [
|
|
825
|
-
manualRepos,
|
|
826
|
-
githubRepos,
|
|
827
|
-
selectedRepoIds,
|
|
828
|
-
selectedRepoRefs,
|
|
829
|
-
personalGitHubRepositories,
|
|
830
|
-
selectedPersonalGitHubRepoIds,
|
|
831
|
-
selectedPersonalGitHubRepoRefs,
|
|
832
|
-
personalGitHubSelection?.credentialBindingId
|
|
833
|
-
]);
|
|
834
|
-
useEffect(() => {
|
|
835
|
-
if (!repositoryBuild.error) lastValidResources.current = repositoryBuild.resources;
|
|
836
|
-
}, [repositoryBuild]);
|
|
837
|
-
useManualRepositoryCatalogReconciliation({
|
|
838
|
-
manualRepos,
|
|
839
|
-
selectedRepoIds,
|
|
840
|
-
selectedRepoRefs,
|
|
841
|
-
repositories: githubRepos,
|
|
842
|
-
catalogReady: githubCatalogReady,
|
|
843
|
-
personalRepositories: personalGitHubRepositories,
|
|
844
|
-
selectedPersonalRepoIds: selectedPersonalGitHubRepoIds,
|
|
845
|
-
selectedPersonalRepoRefs: selectedPersonalGitHubRepoRefs,
|
|
846
|
-
setManualRepos,
|
|
847
|
-
setSelectedRepoIds,
|
|
848
|
-
setSelectedRepoRefs
|
|
849
|
-
});
|
|
850
|
-
const currentResources = repositoryBuild.resources;
|
|
851
|
-
const repositoryValidationError = repositoryBuild.error;
|
|
852
|
-
useCapabilityToolDefaults({
|
|
853
|
-
principalKey: JSON.stringify(principalTransitionIdentity.current),
|
|
854
|
-
ready: clientConfig !== null && !/^\/workspaces\/[^/]+\/sessions\/?$/.test(pathname),
|
|
855
|
-
workspaceId: routedWorkspaceId,
|
|
856
|
-
configuredIds: configuredWorkspaceToolDefaults?.mcpServerIds,
|
|
857
|
-
availableIds: toolMcpServers.map((server) => server.id),
|
|
858
|
-
defaultIds: workspaceDefaultToolIds,
|
|
859
|
-
appliedKey: appliedWorkspaceToolDefaultsKey,
|
|
860
|
-
seenIds: seenCapabilityToolIds,
|
|
861
|
-
setSelected: setSelectedCapabilityToolIds
|
|
862
|
-
});
|
|
863
|
-
async function createWorkspace(request) {
|
|
864
|
-
const acceptedTransition = workspaceTransitionIdentity.current;
|
|
865
|
-
const ownsInvocation = () => ownsTransitionInvocation(workspaceTransitionIdentity.current, acceptedTransition);
|
|
866
|
-
let created;
|
|
867
|
-
try {
|
|
868
|
-
const creation = await runCurrentTransitionInvocation({
|
|
869
|
-
isCurrent: ownsInvocation,
|
|
870
|
-
request: async () => await client.createWorkspace(request)
|
|
871
|
-
});
|
|
872
|
-
if (creation.status === "stale") return null;
|
|
873
|
-
created = creation.value;
|
|
874
|
-
} catch (error) {
|
|
875
|
-
toast.error("Failed to create workspace", {
|
|
876
|
-
description: userErrorText(error)
|
|
877
|
-
});
|
|
878
|
-
return null;
|
|
879
|
-
}
|
|
880
|
-
setWorkspaces((current) => upsertWorkspace(current, created));
|
|
881
|
-
captureProductEvent("workspace_created", {
|
|
882
|
-
$insert_id: `workspace_created:${created.id}`,
|
|
883
|
-
account_id: created.accountId,
|
|
884
|
-
workspace_id: created.id
|
|
885
|
-
});
|
|
886
|
-
try {
|
|
887
|
-
const accessRefresh = await runCurrentTransitionInvocation({
|
|
888
|
-
isCurrent: ownsInvocation,
|
|
889
|
-
request: async () => await client.getAccessContext()
|
|
890
|
-
});
|
|
891
|
-
if (accessRefresh.status === "stale") return null;
|
|
892
|
-
claimHumanInputDraftOwner(accessRefresh.value.subjectId);
|
|
893
|
-
setAccessContext(accessRefresh.value);
|
|
894
|
-
} catch {
|
|
895
|
-
toast.warning("Permissions may be out of date", {
|
|
896
|
-
description: "Reload if something looks off."
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
return created;
|
|
900
|
-
}
|
|
901
|
-
async function renameWorkspace(workspaceId, name) {
|
|
902
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
903
|
-
if (!acceptedTransition) return null;
|
|
904
|
-
try {
|
|
905
|
-
const update = await runCurrentTransitionInvocation({
|
|
906
|
-
isCurrent: () => ownsWorkspaceInvocation(workspaceId, acceptedTransition),
|
|
907
|
-
request: async () => await client.updateWorkspace(workspaceId, { name })
|
|
908
|
-
});
|
|
909
|
-
if (update.status === "stale") return null;
|
|
910
|
-
setWorkspaces((current) => upsertWorkspace(current, update.value));
|
|
911
|
-
return update.value;
|
|
912
|
-
} catch (error) {
|
|
913
|
-
toast.error("Failed to rename workspace", {
|
|
914
|
-
description: userErrorText(error)
|
|
915
|
-
});
|
|
916
|
-
return null;
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
async function setWorkspaceInferenceControl(workspaceId, action) {
|
|
920
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
921
|
-
if (!acceptedTransition) return false;
|
|
922
|
-
const current = workspaces.find((workspace) => workspace.id === workspaceId);
|
|
923
|
-
const update = await runCurrentTransitionInvocation({
|
|
924
|
-
isCurrent: () => ownsWorkspaceInvocation(workspaceId, acceptedTransition),
|
|
925
|
-
request: async () => await client.setWorkspaceInferenceState(workspaceId, {
|
|
926
|
-
action,
|
|
927
|
-
clientEventId: crypto.randomUUID(),
|
|
928
|
-
...current ? { expectedRevision: current.inferenceControl.revision } : {}
|
|
929
|
-
})
|
|
930
|
-
});
|
|
931
|
-
if (update.status === "stale") return false;
|
|
932
|
-
const response = update.value;
|
|
933
|
-
setWorkspaces(
|
|
934
|
-
(all) => all.map(
|
|
935
|
-
(workspace) => workspace.id === workspaceId ? {
|
|
936
|
-
...workspace,
|
|
937
|
-
inferenceControl: {
|
|
938
|
-
state: response.state,
|
|
939
|
-
revision: response.revision,
|
|
940
|
-
reason: null,
|
|
941
|
-
changedBy: null,
|
|
942
|
-
changedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
943
|
-
}
|
|
944
|
-
} : workspace
|
|
945
|
-
)
|
|
946
|
-
);
|
|
947
|
-
return true;
|
|
948
|
-
}
|
|
949
|
-
const refreshWorkspace = useCallback(
|
|
950
|
-
async (workspaceId) => {
|
|
951
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
952
|
-
if (!acceptedTransition) return;
|
|
953
|
-
const refresh = await runCurrentTransitionInvocation({
|
|
954
|
-
isCurrent: () => ownsWorkspaceInvocation(workspaceId, acceptedTransition),
|
|
955
|
-
request: async () => await client.getWorkspace(workspaceId)
|
|
956
|
-
});
|
|
957
|
-
if (refresh.status === "stale") return;
|
|
958
|
-
setWorkspaces((current) => upsertWorkspace(current, refresh.value));
|
|
959
|
-
},
|
|
960
|
-
[captureWorkspaceInvocation, client, ownsWorkspaceInvocation]
|
|
961
|
-
);
|
|
962
|
-
async function updateWorkspaceSettings(workspaceId, settings) {
|
|
963
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
964
|
-
if (!acceptedTransition) return null;
|
|
965
|
-
try {
|
|
966
|
-
const update = await runCurrentTransitionInvocation({
|
|
967
|
-
isCurrent: () => ownsWorkspaceInvocation(workspaceId, acceptedTransition),
|
|
968
|
-
request: async () => await client.updateWorkspaceSettings(workspaceId, settings)
|
|
969
|
-
});
|
|
970
|
-
if (update.status === "stale") return null;
|
|
971
|
-
setWorkspaces((current) => upsertWorkspace(current, update.value));
|
|
972
|
-
return update.value;
|
|
973
|
-
} catch (error) {
|
|
974
|
-
toast.error("Failed to update workspace settings", {
|
|
975
|
-
description: userErrorText(error)
|
|
976
|
-
});
|
|
977
|
-
return null;
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
async function setWorkspaceDefaultRig(workspaceId, rigId) {
|
|
981
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
982
|
-
if (!acceptedTransition) return null;
|
|
983
|
-
try {
|
|
984
|
-
const update = await runCurrentTransitionInvocation({
|
|
985
|
-
isCurrent: () => ownsWorkspaceInvocation(workspaceId, acceptedTransition),
|
|
986
|
-
request: async () => await client.setWorkspaceDefaultRig(workspaceId, {
|
|
987
|
-
rigId
|
|
988
|
-
})
|
|
989
|
-
});
|
|
990
|
-
if (update.status === "stale") return null;
|
|
991
|
-
setWorkspaces((current) => upsertWorkspace(current, update.value));
|
|
992
|
-
return update.value;
|
|
993
|
-
} catch (error) {
|
|
994
|
-
toast.error("Failed to update the workspace default sandbox environment", {
|
|
995
|
-
description: userErrorText(error)
|
|
996
|
-
});
|
|
997
|
-
return null;
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
async function updateSessionTitle(workspaceId, sessionId, title) {
|
|
1001
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1002
|
-
if (!acceptedTransition) return null;
|
|
1003
|
-
try {
|
|
1004
|
-
const update = await runCurrentTransitionInvocation({
|
|
1005
|
-
isCurrent: () => ownsWorkspaceInvocation(workspaceId, acceptedTransition),
|
|
1006
|
-
request: async () => await client.updateSession(workspaceId, sessionId, {
|
|
1007
|
-
title
|
|
1008
|
-
})
|
|
1009
|
-
});
|
|
1010
|
-
if (update.status === "stale") return null;
|
|
1011
|
-
const updated = update.value;
|
|
1012
|
-
setSession(
|
|
1013
|
-
(current) => current && current.id === updated.id ? {
|
|
1014
|
-
...current,
|
|
1015
|
-
title: updated.title,
|
|
1016
|
-
titleSource: updated.titleSource
|
|
1017
|
-
} : current
|
|
1018
|
-
);
|
|
1019
|
-
return updated;
|
|
1020
|
-
} catch (error) {
|
|
1021
|
-
toast.error("Failed to rename session", {
|
|
1022
|
-
description: userErrorText(error)
|
|
1023
|
-
});
|
|
1024
|
-
return null;
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
async function updateSessionProfile(workspaceId, sessionId, change) {
|
|
1028
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1029
|
-
if (!acceptedTransition) return null;
|
|
1030
|
-
const update = await runCurrentTransitionInvocation({
|
|
1031
|
-
isCurrent: () => ownsWorkspaceInvocation(workspaceId, acceptedTransition),
|
|
1032
|
-
request: async () => await client.updateSession(workspaceId, sessionId, change)
|
|
1033
|
-
});
|
|
1034
|
-
if (update.status === "stale") return null;
|
|
1035
|
-
const updated = update.value;
|
|
1036
|
-
setSession(
|
|
1037
|
-
(current) => current && current.id === updated.id ? {
|
|
1038
|
-
...current,
|
|
1039
|
-
title: updated.title,
|
|
1040
|
-
titleSource: updated.titleSource,
|
|
1041
|
-
description: updated.description ?? null,
|
|
1042
|
-
avatar: updated.avatar ?? null
|
|
1043
|
-
} : current
|
|
1044
|
-
);
|
|
1045
|
-
return updated;
|
|
1046
|
-
}
|
|
1047
|
-
async function updateSessionPin(workspaceId, sessionId, pinned, expectedVersion) {
|
|
1048
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1049
|
-
if (!acceptedTransition) return null;
|
|
1050
|
-
const ownsInvocation = () => ownsWorkspaceInvocation(workspaceId, acceptedTransition);
|
|
1051
|
-
const before = session;
|
|
1052
|
-
const optimisticVersion = (expectedVersion ?? before?.pinVersion ?? 0) + 1;
|
|
1053
|
-
const optimistic = before && before.id === sessionId ? {
|
|
1054
|
-
...before,
|
|
1055
|
-
pinned,
|
|
1056
|
-
pinnedAt: pinned ? (/* @__PURE__ */ new Date()).toISOString() : null,
|
|
1057
|
-
pinVersion: optimisticVersion
|
|
1058
|
-
} : null;
|
|
1059
|
-
if (optimistic) {
|
|
1060
|
-
setSession(optimistic);
|
|
1061
|
-
}
|
|
1062
|
-
try {
|
|
1063
|
-
const update = await runCurrentTransitionInvocation({
|
|
1064
|
-
isCurrent: ownsInvocation,
|
|
1065
|
-
request: async () => await client.updateSessionPin(workspaceId, sessionId, {
|
|
1066
|
-
pinned,
|
|
1067
|
-
...expectedVersion !== void 0 ? { expectedVersion } : {}
|
|
1068
|
-
})
|
|
1069
|
-
});
|
|
1070
|
-
if (update.status === "stale") return null;
|
|
1071
|
-
const updated = update.value;
|
|
1072
|
-
setSession((current) => applySessionPinProjection(current, updated));
|
|
1073
|
-
notifySessionPinChanged(workspaceId, sessionId);
|
|
1074
|
-
return updated;
|
|
1075
|
-
} catch (error) {
|
|
1076
|
-
const reconciliation = await runCurrentTransitionInvocation({
|
|
1077
|
-
isCurrent: ownsInvocation,
|
|
1078
|
-
request: async () => await client.getSession(workspaceId, sessionId, { fresh: true }).catch(() => null)
|
|
1079
|
-
});
|
|
1080
|
-
if (reconciliation.status === "stale") return null;
|
|
1081
|
-
const authoritative = reconciliation.value;
|
|
1082
|
-
if (authoritative) {
|
|
1083
|
-
setSession((current) => reconcileFailedSessionPin(current, optimistic, authoritative));
|
|
1084
|
-
notifySessionPinChanged(workspaceId, sessionId);
|
|
1085
|
-
if (Boolean(authoritative.pinned) === pinned) {
|
|
1086
|
-
return authoritative;
|
|
1087
|
-
}
|
|
1088
|
-
} else if (optimistic) {
|
|
1089
|
-
setSession(
|
|
1090
|
-
(current) => current?.id === sessionId && Boolean(current.pinned) === Boolean(optimistic.pinned) && (current.pinnedAt ?? null) === (optimistic.pinnedAt ?? null) && (current.pinVersion ?? 0) === (optimistic.pinVersion ?? 0) ? before : current
|
|
1091
|
-
);
|
|
1092
|
-
}
|
|
1093
|
-
toast.error(
|
|
1094
|
-
error instanceof OpenGeniApiError && error.status === 409 ? "Session pin changed elsewhere" : `Couldn't ${pinned ? "pin" : "unpin"} session`,
|
|
1095
|
-
{
|
|
1096
|
-
description: userErrorText(error)
|
|
1097
|
-
}
|
|
1098
|
-
);
|
|
1099
|
-
return null;
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
async function deleteWorkspace(workspaceId) {
|
|
1103
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1104
|
-
if (!acceptedTransition) return false;
|
|
1105
|
-
const ownsInvocation = () => ownsWorkspaceInvocation(workspaceId, acceptedTransition);
|
|
1106
|
-
try {
|
|
1107
|
-
const deletion = await runCurrentTransitionInvocation({
|
|
1108
|
-
isCurrent: ownsInvocation,
|
|
1109
|
-
request: async () => await deleteWorkspaceWithReconciliation({
|
|
1110
|
-
deleteWorkspace: async () => await client.deleteWorkspace(workspaceId),
|
|
1111
|
-
readWorkspace: async () => await client.getWorkspace(workspaceId)
|
|
1112
|
-
})
|
|
1113
|
-
});
|
|
1114
|
-
if (deletion.status === "stale") return false;
|
|
1115
|
-
} catch (error) {
|
|
1116
|
-
toast.error("Failed to delete workspace", {
|
|
1117
|
-
description: userErrorText(error)
|
|
1118
|
-
});
|
|
1119
|
-
return false;
|
|
1120
|
-
}
|
|
1121
|
-
setWorkspaces((current) => current.filter((workspace) => workspace.id !== workspaceId));
|
|
1122
|
-
try {
|
|
1123
|
-
const accessRefresh = await runCurrentTransitionInvocation({
|
|
1124
|
-
isCurrent: ownsInvocation,
|
|
1125
|
-
request: async () => await client.getAccessContext()
|
|
1126
|
-
});
|
|
1127
|
-
if (accessRefresh.status === "stale") return false;
|
|
1128
|
-
claimHumanInputDraftOwner(accessRefresh.value.subjectId);
|
|
1129
|
-
setAccessContext(accessRefresh.value);
|
|
1130
|
-
} catch {
|
|
1131
|
-
toast.warning("Permissions may be out of date", {
|
|
1132
|
-
description: "Reload if something looks off."
|
|
1133
|
-
});
|
|
1134
|
-
}
|
|
1135
|
-
return true;
|
|
1136
|
-
}
|
|
1137
|
-
const refreshGitHub = useCallback(
|
|
1138
|
-
async (workspaceId, signal, options) => {
|
|
1139
|
-
const acceptedTransition = workspaceTransitionIdentity.current;
|
|
1140
|
-
if (!ownsWorkspaceTransition(acceptedTransition, acceptedTransition, workspaceId)) {
|
|
1141
|
-
return;
|
|
1142
|
-
}
|
|
1143
|
-
const ownsRefresh = () => ownsWorkspaceTransition(
|
|
1144
|
-
workspaceTransitionIdentity.current,
|
|
1145
|
-
acceptedTransition,
|
|
1146
|
-
workspaceId
|
|
1147
|
-
);
|
|
1148
|
-
const refreshId = githubRefreshId.current + 1;
|
|
1149
|
-
githubRefreshId.current = refreshId;
|
|
1150
|
-
githubQuietRetry.current.cancel();
|
|
1151
|
-
if (lacksWorkspacePermission(accessContextRef.current, workspaceId, "github:use")) {
|
|
1152
|
-
githubQuietRetry.current.reset();
|
|
1153
|
-
setGithubStatus(null);
|
|
1154
|
-
setGithubStatusFailed(false);
|
|
1155
|
-
setGithubRepos([]);
|
|
1156
|
-
setGithubCatalogReady(true);
|
|
1157
|
-
setRepoBusy(false);
|
|
1158
|
-
return;
|
|
1159
|
-
}
|
|
1160
|
-
setRepoBusy(true);
|
|
1161
|
-
try {
|
|
1162
|
-
const status = await client.getGitHubApp(workspaceId);
|
|
1163
|
-
if (signal?.aborted || githubRefreshId.current !== refreshId || !ownsRefresh()) {
|
|
1164
|
-
return;
|
|
1165
|
-
}
|
|
1166
|
-
setGithubStatus(status);
|
|
1167
|
-
setGithubStatusFailed(false);
|
|
1168
|
-
if (status.status === "bound") {
|
|
1169
|
-
const { repositories } = options?.sync ? await client.syncGitHubRepositories(workspaceId) : await client.listGitHubRepositories(workspaceId);
|
|
1170
|
-
if (signal?.aborted || githubRefreshId.current !== refreshId || !ownsRefresh()) {
|
|
1171
|
-
return;
|
|
1172
|
-
}
|
|
1173
|
-
setGithubRepos(repositories);
|
|
1174
|
-
setGithubCatalogReady(true);
|
|
1175
|
-
} else {
|
|
1176
|
-
setGithubRepos([]);
|
|
1177
|
-
setGithubCatalogReady(true);
|
|
1178
|
-
}
|
|
1179
|
-
githubQuietRetry.current.reset();
|
|
1180
|
-
} catch (error) {
|
|
1181
|
-
if (isAbortError(error) || signal?.aborted || githubRefreshId.current !== refreshId || !ownsRefresh()) {
|
|
1182
|
-
return;
|
|
1183
|
-
}
|
|
1184
|
-
setGithubStatusFailed(true);
|
|
1185
|
-
if (isTransientServiceFailure(error)) {
|
|
1186
|
-
githubQuietRetry.current.schedule(() => {
|
|
1187
|
-
if (!ownsRefresh() || githubRefreshId.current !== refreshId) return;
|
|
1188
|
-
void refreshGitHubRef.current(workspaceId);
|
|
1189
|
-
}, workspaceId);
|
|
1190
|
-
}
|
|
1191
|
-
if (!options?.userInitiated || isWorkspacePermissionDenied(error)) return;
|
|
1192
|
-
toast.error("GitHub status unavailable", {
|
|
1193
|
-
id: GITHUB_STATUS_TOAST_ID,
|
|
1194
|
-
description: userErrorText(error)
|
|
1195
|
-
});
|
|
1196
|
-
} finally {
|
|
1197
|
-
if (githubRefreshId.current === refreshId && ownsRefresh()) {
|
|
1198
|
-
setRepoBusy(false);
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
},
|
|
1202
|
-
[client]
|
|
1203
|
-
);
|
|
1204
|
-
useInsertionEffect(() => {
|
|
1205
|
-
refreshGitHubRef.current = refreshGitHub;
|
|
1206
|
-
}, [refreshGitHub]);
|
|
1207
|
-
const refreshPersonalGitHub = useCallback(
|
|
1208
|
-
async (workspaceId, signal, options) => {
|
|
1209
|
-
const acceptedTransition = workspaceTransitionIdentity.current;
|
|
1210
|
-
if (!ownsWorkspaceTransition(acceptedTransition, acceptedTransition, workspaceId)) return;
|
|
1211
|
-
const refreshId = personalGitHubRefreshId.current + 1;
|
|
1212
|
-
personalGitHubRefreshId.current = refreshId;
|
|
1213
|
-
personalGitHubQuietRetry.current.cancel();
|
|
1214
|
-
const ownsRefresh = () => ownsWorkspaceTransition(
|
|
1215
|
-
workspaceTransitionIdentity.current,
|
|
1216
|
-
acceptedTransition,
|
|
1217
|
-
workspaceId
|
|
1218
|
-
) && personalGitHubRefreshId.current === refreshId;
|
|
1219
|
-
if (!hasWorkspacePermission(accessContextRef.current, workspaceId, "connections:read")) {
|
|
1220
|
-
setPersonalGitHubStatus(null);
|
|
1221
|
-
setPersonalGitHubRepositories([]);
|
|
1222
|
-
setPersonalGitHubSelection(null);
|
|
1223
|
-
setPersonalGitHubAuthorityCache(null);
|
|
1224
|
-
setSelectedPersonalGitHubRepoIds(/* @__PURE__ */ new Set());
|
|
1225
|
-
setSelectedPersonalGitHubRepoRefs({});
|
|
1226
|
-
setPersonalGitHubCatalogReady(true);
|
|
1227
|
-
setPersonalGitHubBusy(false);
|
|
1228
|
-
personalGitHubQuietRetry.current.reset();
|
|
1229
|
-
return;
|
|
1230
|
-
}
|
|
1231
|
-
setPersonalGitHubBusy(true);
|
|
1232
|
-
try {
|
|
1233
|
-
const status = await client.personalGitHubStatus(workspaceId);
|
|
1234
|
-
if (signal?.aborted || !ownsRefresh()) return;
|
|
1235
|
-
const connection = status.connection;
|
|
1236
|
-
setPersonalGitHubStatus(status);
|
|
1237
|
-
setPersonalGitHubAuthorityCache(
|
|
1238
|
-
(current) => connection && reusablePersonalGitHubAuthority(current, {
|
|
1239
|
-
connectionId: connection.id,
|
|
1240
|
-
connectionVersion: connection.version
|
|
1241
|
-
}) ? current : null
|
|
1242
|
-
);
|
|
1243
|
-
if (!status.enabled || connection?.status !== "active") {
|
|
1244
|
-
setPersonalGitHubRepositories([]);
|
|
1245
|
-
setPersonalGitHubSelection(null);
|
|
1246
|
-
setSelectedPersonalGitHubRepoIds(/* @__PURE__ */ new Set());
|
|
1247
|
-
setSelectedPersonalGitHubRepoRefs({});
|
|
1248
|
-
setPersonalGitHubCatalogReady(true);
|
|
1249
|
-
personalGitHubQuietRetry.current.reset();
|
|
1250
|
-
return;
|
|
1251
|
-
}
|
|
1252
|
-
const repositories = [];
|
|
1253
|
-
let cursor;
|
|
1254
|
-
let selection = null;
|
|
1255
|
-
do {
|
|
1256
|
-
const page = await client.listPersonalGitHubRepositories(workspaceId, connection.id, {
|
|
1257
|
-
...cursor ? { cursor } : {},
|
|
1258
|
-
limit: 100
|
|
1259
|
-
});
|
|
1260
|
-
repositories.push(...page.repositories);
|
|
1261
|
-
selection = page.selection;
|
|
1262
|
-
cursor = page.nextCursor ?? void 0;
|
|
1263
|
-
} while (cursor !== void 0 && repositories.length < 1e3);
|
|
1264
|
-
if (signal?.aborted || !ownsRefresh()) return;
|
|
1265
|
-
setPersonalGitHubRepositories(repositories);
|
|
1266
|
-
setPersonalGitHubSelection(selection);
|
|
1267
|
-
setPersonalGitHubAuthorityCache(
|
|
1268
|
-
(current) => selection && reusablePersonalGitHubAuthority(current, {
|
|
1269
|
-
connectionId: connection.id,
|
|
1270
|
-
connectionVersion: connection.version
|
|
1271
|
-
}) ? current : null
|
|
1272
|
-
);
|
|
1273
|
-
setSelectedPersonalGitHubRepoIds(
|
|
1274
|
-
(current) => new Set(
|
|
1275
|
-
[...current].filter(
|
|
1276
|
-
(id) => repositories.some((repo) => repo.repositoryId === id && repo.selectedAccess)
|
|
1277
|
-
)
|
|
1278
|
-
)
|
|
1279
|
-
);
|
|
1280
|
-
setPersonalGitHubCatalogReady(true);
|
|
1281
|
-
personalGitHubQuietRetry.current.reset();
|
|
1282
|
-
} catch (error) {
|
|
1283
|
-
if (signal?.aborted || !ownsRefresh() || isAbortError(error)) return;
|
|
1284
|
-
setPersonalGitHubCatalogReady(true);
|
|
1285
|
-
if (isTransientServiceFailure(error)) {
|
|
1286
|
-
personalGitHubQuietRetry.current.schedule(() => {
|
|
1287
|
-
if (!ownsRefresh()) return;
|
|
1288
|
-
void refreshPersonalGitHubRef.current(workspaceId);
|
|
1289
|
-
}, workspaceId);
|
|
1290
|
-
if (!options?.userInitiated) return;
|
|
1291
|
-
}
|
|
1292
|
-
toast.error("Your GitHub account is unavailable", {
|
|
1293
|
-
id: PERSONAL_GITHUB_STATUS_TOAST_ID,
|
|
1294
|
-
description: userErrorText(error)
|
|
1295
|
-
});
|
|
1296
|
-
} finally {
|
|
1297
|
-
if (ownsRefresh()) setPersonalGitHubBusy(false);
|
|
1298
|
-
}
|
|
1299
|
-
},
|
|
1300
|
-
[client]
|
|
1301
|
-
);
|
|
1302
|
-
useInsertionEffect(() => {
|
|
1303
|
-
refreshPersonalGitHubRef.current = refreshPersonalGitHub;
|
|
1304
|
-
}, [refreshPersonalGitHub]);
|
|
1305
|
-
async function beginPersonalGitHubOAuth(workspaceId, reconnect) {
|
|
1306
|
-
const connection = personalGitHubStatus?.connection;
|
|
1307
|
-
try {
|
|
1308
|
-
const attempt = await client.beginConnect(workspaceId, {
|
|
1309
|
-
providerId: "github-personal",
|
|
1310
|
-
ownership: "personal",
|
|
1311
|
-
returnUrl: hostPage.href(),
|
|
1312
|
-
idempotencyKey: crypto.randomUUID(),
|
|
1313
|
-
...reconnect && connection ? { reconnectAccountId: connection.id } : {}
|
|
1314
|
-
});
|
|
1315
|
-
if (attempt.nextAction.type !== "authorize")
|
|
1316
|
-
throw new Error("GitHub did not return an authorization link");
|
|
1317
|
-
await markIntegrationConnectRedirect("github", "oauth", { returnsWithOutcome: false });
|
|
1318
|
-
hostPage.assign(attempt.nextAction.url);
|
|
1319
|
-
} catch (error) {
|
|
1320
|
-
toast.error("Couldn't open GitHub sign-in", {
|
|
1321
|
-
description: userErrorText(error)
|
|
1322
|
-
});
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
async function disconnectPersonalGitHub(workspaceId) {
|
|
1326
|
-
const connection = personalGitHubStatus?.connection;
|
|
1327
|
-
if (!connection) return true;
|
|
1328
|
-
setPersonalGitHubBusy(true);
|
|
1329
|
-
try {
|
|
1330
|
-
await client.disconnectPersonalGitHub(workspaceId, connection.id, {
|
|
1331
|
-
expectedVersion: connection.version,
|
|
1332
|
-
idempotencyKey: crypto.randomUUID()
|
|
1333
|
-
});
|
|
1334
|
-
await refreshPersonalGitHub(workspaceId, void 0, { userInitiated: true });
|
|
1335
|
-
toast.success("Your GitHub account was disconnected");
|
|
1336
|
-
return true;
|
|
1337
|
-
} catch (error) {
|
|
1338
|
-
toast.error("Couldn't disconnect your GitHub account", {
|
|
1339
|
-
description: userErrorText(error)
|
|
1340
|
-
});
|
|
1341
|
-
return false;
|
|
1342
|
-
} finally {
|
|
1343
|
-
setPersonalGitHubBusy(false);
|
|
1344
|
-
}
|
|
1345
|
-
}
|
|
1346
|
-
async function savePersonalGitHubRepositories(workspaceId, repositories) {
|
|
1347
|
-
const connection = personalGitHubStatus?.connection;
|
|
1348
|
-
const selection = personalGitHubSelection;
|
|
1349
|
-
if (!connection || !selection) return false;
|
|
1350
|
-
setPersonalGitHubBusy(true);
|
|
1351
|
-
try {
|
|
1352
|
-
await client.replacePersonalGitHubRepositorySelections(workspaceId, connection.id, {
|
|
1353
|
-
expectedConnectionAuthorityGeneration: selection.connectionAuthorityGeneration,
|
|
1354
|
-
expectedSelectionGeneration: selection.selectionGeneration,
|
|
1355
|
-
idempotencyKey: crypto.randomUUID(),
|
|
1356
|
-
repositories
|
|
1357
|
-
});
|
|
1358
|
-
await refreshPersonalGitHub(workspaceId, void 0, { userInitiated: true });
|
|
1359
|
-
toast.success("GitHub repository access updated");
|
|
1360
|
-
return true;
|
|
1361
|
-
} catch (error) {
|
|
1362
|
-
toast.error("Couldn't update GitHub repository access", {
|
|
1363
|
-
description: userErrorText(error)
|
|
1364
|
-
});
|
|
1365
|
-
return false;
|
|
1366
|
-
} finally {
|
|
1367
|
-
setPersonalGitHubBusy(false);
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
async function ensurePersonalGitHubAuthority(_workspaceId) {
|
|
1371
|
-
const connection = personalGitHubStatus?.connection;
|
|
1372
|
-
if (!connection?.authorityId || connection.status !== "active") {
|
|
1373
|
-
toast.error("Connect your GitHub account before selecting its repositories");
|
|
1374
|
-
return null;
|
|
1375
|
-
}
|
|
1376
|
-
const authority = { serverId: "github:personal", connectionId: connection.id };
|
|
1377
|
-
setPersonalGitHubAuthorityCache({ authority, connectionVersion: connection.version });
|
|
1378
|
-
return authority;
|
|
1379
|
-
}
|
|
1380
|
-
async function togglePersonalGitHubRepository(workspaceId, repository) {
|
|
1381
|
-
if (selectedPersonalGitHubRepoIds.has(repository.repositoryId)) {
|
|
1382
|
-
setSelectedPersonalGitHubRepoIds((current) => {
|
|
1383
|
-
const next = new Set(current);
|
|
1384
|
-
next.delete(repository.repositoryId);
|
|
1385
|
-
return next;
|
|
1386
|
-
});
|
|
1387
|
-
return;
|
|
1388
|
-
}
|
|
1389
|
-
if (!repository.selectedAccess) return;
|
|
1390
|
-
if (!await ensurePersonalGitHubAuthority(workspaceId)) return;
|
|
1391
|
-
setSelectedRepoIds(
|
|
1392
|
-
(current) => new Set(
|
|
1393
|
-
[...current].filter(
|
|
1394
|
-
(id) => githubRepos.find((candidate) => candidate.id === id)?.fullName.toLowerCase() !== repository.fullName.toLowerCase()
|
|
1395
|
-
)
|
|
1396
|
-
)
|
|
1397
|
-
);
|
|
1398
|
-
setSelectedPersonalGitHubRepoIds((current) => new Set(current).add(repository.repositoryId));
|
|
1399
|
-
setSelectedPersonalGitHubRepoRefs((current) => ({
|
|
1400
|
-
...current,
|
|
1401
|
-
[repository.repositoryId]: current[repository.repositoryId] ?? repository.defaultBranch
|
|
1402
|
-
}));
|
|
1403
|
-
}
|
|
1404
|
-
const refreshWorkspaceMcpServers = useCallback(
|
|
1405
|
-
async (workspaceId, signal) => {
|
|
1406
|
-
const refreshId = mcpRefreshId.current + 1;
|
|
1407
|
-
mcpRefreshId.current = refreshId;
|
|
1408
|
-
setWorkspaceMcpCatalogLoadedSuccessfully(false);
|
|
1409
|
-
const requestKey = `${accessKeyVersion}:${workspaceId}`;
|
|
1410
|
-
try {
|
|
1411
|
-
const result = await runCurrentWorkspaceRequest({
|
|
1412
|
-
signal,
|
|
1413
|
-
requestId: refreshId,
|
|
1414
|
-
currentRequestId: () => mcpRefreshId.current,
|
|
1415
|
-
request: async () => await Promise.all([
|
|
1416
|
-
runSingleFlight(
|
|
1417
|
-
mcpCatalogRequests.current,
|
|
1418
|
-
requestKey,
|
|
1419
|
-
async () => await client.listCapabilities(workspaceId)
|
|
1420
|
-
),
|
|
1421
|
-
client.listApiIntegrations(workspaceId)
|
|
1422
|
-
])
|
|
1423
|
-
});
|
|
1424
|
-
if (!result) {
|
|
1425
|
-
return;
|
|
1426
|
-
}
|
|
1427
|
-
const [catalog, apiIntegrations] = result;
|
|
1428
|
-
setWorkspaceMcpServers(
|
|
1429
|
-
mergeMcpServerOptions(
|
|
1430
|
-
enabledWorkspaceCapabilityMcpServers(catalog.items),
|
|
1431
|
-
installedApiIntegrationMcpServers(apiIntegrations.integrations)
|
|
1432
|
-
)
|
|
1433
|
-
);
|
|
1434
|
-
setWorkspaceCapabilityCatalog(catalog.items);
|
|
1435
|
-
setWorkspaceMemberIntegrationSetup(catalog.memberIntegrationSetup);
|
|
1436
|
-
setWorkspaceMcpCatalogLoadedSuccessfully(true);
|
|
1437
|
-
setWorkspaceMcpCatalogReady(true);
|
|
1438
|
-
} catch (error) {
|
|
1439
|
-
if (signal?.aborted || mcpRefreshId.current !== refreshId) throw error;
|
|
1440
|
-
setWorkspaceMcpCatalogLoadedSuccessfully(false);
|
|
1441
|
-
setWorkspaceMcpCatalogReady(true);
|
|
1442
|
-
throw error;
|
|
1443
|
-
}
|
|
1444
|
-
},
|
|
1445
|
-
[accessKeyVersion, client]
|
|
1446
|
-
);
|
|
1447
|
-
async function startSession(workspaceId, submission, options) {
|
|
1448
|
-
const startedOperation = beginWorkspaceOperation(
|
|
1449
|
-
workspaceOperationSequence.current,
|
|
1450
|
-
workspaceTransitionIdentity.current
|
|
1451
|
-
);
|
|
1452
|
-
workspaceOperationSequence.current = startedOperation.sequence;
|
|
1453
|
-
const operation = startedOperation.operation;
|
|
1454
|
-
activeCreateOperation.current = operation;
|
|
1455
|
-
let attempted = null;
|
|
1456
|
-
setBusy(true);
|
|
1457
|
-
try {
|
|
1458
|
-
if (repositoryValidationError) {
|
|
1459
|
-
toast.error("Fix repository details", { description: repositoryValidationError });
|
|
1460
|
-
return null;
|
|
1461
|
-
}
|
|
1462
|
-
const sessionTools = options?.sessionTools;
|
|
1463
|
-
if (!workspaceMcpCatalogReady && !sessionTools) {
|
|
1464
|
-
toast.error("Tools are still loading", {
|
|
1465
|
-
description: "Wait for the workspace tool catalog to finish loading, then try again."
|
|
1466
|
-
});
|
|
1467
|
-
return null;
|
|
1468
|
-
}
|
|
1469
|
-
const selectedTools = sessionTools ? [...sessionTools] : buildOpenGeniUiTools(submission.tools, selectedCapabilityToolIds);
|
|
1470
|
-
const includesPersonalGitHub = currentResources.some(
|
|
1471
|
-
(resource) => resource.kind === "repository" && resource.connectionType === "github_personal"
|
|
1472
|
-
);
|
|
1473
|
-
if (includesPersonalGitHub && !personalGitHubAuthority) {
|
|
1474
|
-
toast.error("Your GitHub identity is still being prepared", {
|
|
1475
|
-
description: "Select the repository again, then send when it is ready."
|
|
1476
|
-
});
|
|
1477
|
-
return null;
|
|
1478
|
-
}
|
|
1479
|
-
const effectiveSubmission = includesPersonalGitHub ? {
|
|
1480
|
-
...submission,
|
|
1481
|
-
connectionAccounts: [
|
|
1482
|
-
...(submission.connectionAccounts ?? []).filter(
|
|
1483
|
-
(authority) => authority.serverId !== "github:personal"
|
|
1484
|
-
),
|
|
1485
|
-
personalGitHubAuthority
|
|
1486
|
-
]
|
|
1487
|
-
} : submission;
|
|
1488
|
-
const freshIdempotencyKey = crypto.randomUUID();
|
|
1489
|
-
const attempt = prepareCreateSessionAttempt({
|
|
1490
|
-
pending: pendingCreateAttempt.current,
|
|
1491
|
-
client,
|
|
1492
|
-
workspaceId,
|
|
1493
|
-
freshIdempotencyKey,
|
|
1494
|
-
request: buildCreateSessionRequest({
|
|
1495
|
-
currentResources,
|
|
1496
|
-
submission: effectiveSubmission,
|
|
1497
|
-
instructions: options?.instructions,
|
|
1498
|
-
installedSkillIds: options?.installedSkillIds,
|
|
1499
|
-
bot: options?.bot,
|
|
1500
|
-
omitWorkspaceResources: options?.omitWorkspaceResources,
|
|
1501
|
-
selectedTools,
|
|
1502
|
-
newSessionDraftToolPolicy: options?.newSessionDraftToolPolicy,
|
|
1503
|
-
defaultModel: model,
|
|
1504
|
-
defaultReasoningEffort: reasoningEffort,
|
|
1505
|
-
defaultLatencyMode: latencyMode,
|
|
1506
|
-
clientEventId: crypto.randomUUID(),
|
|
1507
|
-
idempotencyKey: freshIdempotencyKey,
|
|
1508
|
-
workspaceDefaultMcpServerIds: workspaceDefaultToolIds,
|
|
1509
|
-
workspaceMcpCatalogReady,
|
|
1510
|
-
targetSandboxId: options?.targetSandboxId,
|
|
1511
|
-
workingDir: options?.workingDir,
|
|
1512
|
-
channelId: options?.channelId,
|
|
1513
|
-
expectedNewSessionDraftRevision: options?.expectedNewSessionDraftRevision,
|
|
1514
|
-
agentLearning: options?.agentLearning,
|
|
1515
|
-
startMode: options?.startMode,
|
|
1516
|
-
visibility: options?.visibility,
|
|
1517
|
-
usageLimitMicros: options?.usageLimitMicros
|
|
1518
|
-
})
|
|
1519
|
-
});
|
|
1520
|
-
attempted = attempt;
|
|
1521
|
-
pendingCreateAttempt.current = attempt.pending;
|
|
1522
|
-
const hostContext = attempt.request.startMode === "realtime" ? void 0 : hostMessageContext.current?.();
|
|
1523
|
-
const created = await createWithOpeningContext(
|
|
1524
|
-
(request) => client.createSession(workspaceId, request),
|
|
1525
|
-
attempt.request,
|
|
1526
|
-
hostContext,
|
|
1527
|
-
hostContext ? hostMessageContextTools.current?.() : void 0
|
|
1528
|
-
);
|
|
1529
|
-
if (pendingCreateAttempt.current?.idempotencyKey === attempt.pending.idempotencyKey) {
|
|
1530
|
-
pendingCreateAttempt.current = null;
|
|
1531
|
-
}
|
|
1532
|
-
if (!ownsWorkspaceOperation(
|
|
1533
|
-
activeCreateOperation.current,
|
|
1534
|
-
workspaceTransitionIdentity.current,
|
|
1535
|
-
operation,
|
|
1536
|
-
workspaceId
|
|
1537
|
-
)) {
|
|
1538
|
-
return null;
|
|
1539
|
-
}
|
|
1540
|
-
setSession(created);
|
|
1541
|
-
if (attempt.request.clientEventId && attempt.request.startMode !== "realtime") {
|
|
1542
|
-
setSessionCreationHandoff({
|
|
1543
|
-
session: created,
|
|
1544
|
-
clientEventId: attempt.request.clientEventId
|
|
1545
|
-
});
|
|
1546
|
-
} else {
|
|
1547
|
-
setSessionCreationHandoff(null);
|
|
1548
|
-
}
|
|
1549
|
-
setConnectionState("idle");
|
|
1550
|
-
captureProductEvent("session_started", {
|
|
1551
|
-
$insert_id: `session_started:${created.id}`,
|
|
1552
|
-
account_id: created.accountId,
|
|
1553
|
-
workspace_id: created.workspaceId,
|
|
1554
|
-
session_id: created.id,
|
|
1555
|
-
...attempt.request.model ? { model: attempt.request.model } : {},
|
|
1556
|
-
start_mode: options?.startMode ?? "standard"
|
|
1557
|
-
});
|
|
1558
|
-
return created;
|
|
1559
|
-
} catch (error) {
|
|
1560
|
-
const { error: problem, outcomeUnknown } = classifyCreateSessionFailure(error);
|
|
1561
|
-
if (attempted) {
|
|
1562
|
-
pendingCreateAttempt.current = retainCreateSessionAttemptAfterFailure({
|
|
1563
|
-
current: pendingCreateAttempt.current,
|
|
1564
|
-
attempted: attempted.pending,
|
|
1565
|
-
outcomeUnknown
|
|
1566
|
-
});
|
|
1567
|
-
}
|
|
1568
|
-
if (ownsWorkspaceOperation(
|
|
1569
|
-
activeCreateOperation.current,
|
|
1570
|
-
workspaceTransitionIdentity.current,
|
|
1571
|
-
operation,
|
|
1572
|
-
workspaceId
|
|
1573
|
-
)) {
|
|
1574
|
-
const handled = attempted ? options?.onFailure?.({
|
|
1575
|
-
error: problem,
|
|
1576
|
-
request: attempted.request,
|
|
1577
|
-
outcomeUnknown
|
|
1578
|
-
}) : false;
|
|
1579
|
-
if (isPaymentRequiredError(problem) && handled !== true) {
|
|
1580
|
-
const workspace = workspaces.find((candidate) => candidate.id === workspaceId);
|
|
1581
|
-
setCreditRequired({
|
|
1582
|
-
workspaceId,
|
|
1583
|
-
accountId: workspace?.accountId ?? null,
|
|
1584
|
-
code: paymentRefusalCode(problem)
|
|
1585
|
-
});
|
|
1586
|
-
} else if (handled !== true) {
|
|
1587
|
-
toast.error("Failed to start session", {
|
|
1588
|
-
description: composerSubmissionErrorMessage(t, problem)
|
|
1589
|
-
});
|
|
1590
|
-
}
|
|
1591
|
-
}
|
|
1592
|
-
return null;
|
|
1593
|
-
} finally {
|
|
1594
|
-
const settlement = settleWorkspaceOperation(activeCreateOperation.current, operation);
|
|
1595
|
-
activeCreateOperation.current = settlement.active;
|
|
1596
|
-
if (settlement.settledCurrent) {
|
|
1597
|
-
setBusy(false);
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
async function startGitHubAppManifestFlow(workspaceId) {
|
|
1602
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1603
|
-
if (!acceptedTransition) return;
|
|
1604
|
-
const started = beginWorkspaceOperation(
|
|
1605
|
-
githubManifestOperationSequence.current,
|
|
1606
|
-
acceptedTransition
|
|
1607
|
-
);
|
|
1608
|
-
githubManifestOperationSequence.current = started.sequence;
|
|
1609
|
-
const operation = started.operation;
|
|
1610
|
-
activeGitHubManifestOperation.current = operation;
|
|
1611
|
-
setGithubAppBusy(true);
|
|
1612
|
-
try {
|
|
1613
|
-
const result = await runCurrentWorkspaceOperation({
|
|
1614
|
-
activeOperation: () => activeGitHubManifestOperation.current,
|
|
1615
|
-
currentTransition: () => workspaceTransitionIdentity.current,
|
|
1616
|
-
operation,
|
|
1617
|
-
workspaceId,
|
|
1618
|
-
request: async () => await client.createGitHubAppManifest(workspaceId, {
|
|
1619
|
-
...githubOrg.trim() ? { organization: githubOrg.trim() } : {},
|
|
1620
|
-
public: false,
|
|
1621
|
-
includeCiPermissions: true
|
|
1622
|
-
})
|
|
1623
|
-
});
|
|
1624
|
-
if (result.status === "stale" || !ownsWorkspaceOperation(
|
|
1625
|
-
activeGitHubManifestOperation.current,
|
|
1626
|
-
workspaceTransitionIdentity.current,
|
|
1627
|
-
operation,
|
|
1628
|
-
workspaceId
|
|
1629
|
-
)) {
|
|
1630
|
-
return;
|
|
1631
|
-
}
|
|
1632
|
-
submitGitHubManifest(result.value.actionUrl, result.value.manifest, embedded);
|
|
1633
|
-
} catch (error) {
|
|
1634
|
-
if (ownsWorkspaceOperation(
|
|
1635
|
-
activeGitHubManifestOperation.current,
|
|
1636
|
-
workspaceTransitionIdentity.current,
|
|
1637
|
-
operation,
|
|
1638
|
-
workspaceId
|
|
1639
|
-
)) {
|
|
1640
|
-
toast.error("GitHub App setup failed", {
|
|
1641
|
-
description: userErrorText(error)
|
|
1642
|
-
});
|
|
1643
|
-
}
|
|
1644
|
-
} finally {
|
|
1645
|
-
const settlement = settleWorkspaceOperation(activeGitHubManifestOperation.current, operation);
|
|
1646
|
-
activeGitHubManifestOperation.current = settlement.active;
|
|
1647
|
-
if (settlement.settledCurrent) {
|
|
1648
|
-
setGithubAppBusy(false);
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
async function disconnectGitHubInstallation(workspaceId, installationId) {
|
|
1653
|
-
const acceptedTransition = captureWorkspaceInvocation(workspaceId);
|
|
1654
|
-
if (!acceptedTransition) return false;
|
|
1655
|
-
const started = beginWorkspaceOperation(
|
|
1656
|
-
githubDisconnectOperationSequence.current,
|
|
1657
|
-
acceptedTransition
|
|
1658
|
-
);
|
|
1659
|
-
githubDisconnectOperationSequence.current = started.sequence;
|
|
1660
|
-
const operation = started.operation;
|
|
1661
|
-
activeGitHubDisconnectOperation.current = operation;
|
|
1662
|
-
const previousStatus = githubStatus;
|
|
1663
|
-
const previousRepositories = githubRepos;
|
|
1664
|
-
const previousSelectedIds = selectedRepoIds;
|
|
1665
|
-
const previousSelectedRefs = selectedRepoRefs;
|
|
1666
|
-
const removedRepositoryIds = new Set(
|
|
1667
|
-
githubRepos.filter((repository) => repository.installationId === installationId).map((repository) => repository.id)
|
|
1668
|
-
);
|
|
1669
|
-
setGithubRepos(
|
|
1670
|
-
(current) => current.filter((repository) => repository.installationId !== installationId)
|
|
1671
|
-
);
|
|
1672
|
-
setGithubStatus(
|
|
1673
|
-
(current) => current ? {
|
|
1674
|
-
...current,
|
|
1675
|
-
installations: current.installations.filter(
|
|
1676
|
-
(installation) => installation.installationId !== installationId
|
|
1677
|
-
)
|
|
1678
|
-
} : current
|
|
1679
|
-
);
|
|
1680
|
-
setSelectedRepoIds(
|
|
1681
|
-
(current) => new Set([...current].filter((repositoryId) => !removedRepositoryIds.has(repositoryId)))
|
|
1682
|
-
);
|
|
1683
|
-
setSelectedRepoRefs(
|
|
1684
|
-
(current) => Object.fromEntries(
|
|
1685
|
-
Object.entries(current).filter(
|
|
1686
|
-
([repositoryId]) => !removedRepositoryIds.has(Number(repositoryId))
|
|
1687
|
-
)
|
|
1688
|
-
)
|
|
1689
|
-
);
|
|
1690
|
-
try {
|
|
1691
|
-
const unlink = await runCurrentWorkspaceOperation({
|
|
1692
|
-
activeOperation: () => activeGitHubDisconnectOperation.current,
|
|
1693
|
-
currentTransition: () => workspaceTransitionIdentity.current,
|
|
1694
|
-
operation,
|
|
1695
|
-
workspaceId,
|
|
1696
|
-
request: async () => await unlinkGitHubInstallationWithReconciliation({
|
|
1697
|
-
installationId,
|
|
1698
|
-
unlink: async () => await client.unlinkGitHubInstallation(workspaceId, installationId),
|
|
1699
|
-
readStatus: async () => await client.getGitHubApp(workspaceId)
|
|
1700
|
-
})
|
|
1701
|
-
});
|
|
1702
|
-
if (unlink.status === "stale" || !ownsWorkspaceOperation(
|
|
1703
|
-
activeGitHubDisconnectOperation.current,
|
|
1704
|
-
workspaceTransitionIdentity.current,
|
|
1705
|
-
operation,
|
|
1706
|
-
workspaceId
|
|
1707
|
-
)) {
|
|
1708
|
-
return false;
|
|
1709
|
-
}
|
|
1710
|
-
await refreshGitHub(workspaceId, void 0, { sync: true, userInitiated: true });
|
|
1711
|
-
if (!ownsWorkspaceOperation(
|
|
1712
|
-
activeGitHubDisconnectOperation.current,
|
|
1713
|
-
workspaceTransitionIdentity.current,
|
|
1714
|
-
operation,
|
|
1715
|
-
workspaceId
|
|
1716
|
-
)) {
|
|
1717
|
-
return false;
|
|
1718
|
-
}
|
|
1719
|
-
toast.success("GitHub installation unlinked from this workspace");
|
|
1720
|
-
return true;
|
|
1721
|
-
} catch (error) {
|
|
1722
|
-
if (ownsWorkspaceOperation(
|
|
1723
|
-
activeGitHubDisconnectOperation.current,
|
|
1724
|
-
workspaceTransitionIdentity.current,
|
|
1725
|
-
operation,
|
|
1726
|
-
workspaceId
|
|
1727
|
-
)) {
|
|
1728
|
-
setGithubStatus(previousStatus);
|
|
1729
|
-
setGithubRepos(previousRepositories);
|
|
1730
|
-
setSelectedRepoIds(previousSelectedIds);
|
|
1731
|
-
setSelectedRepoRefs(previousSelectedRefs);
|
|
1732
|
-
toast.error("Failed to unlink GitHub installation", {
|
|
1733
|
-
description: userErrorText(error)
|
|
1734
|
-
});
|
|
1735
|
-
}
|
|
1736
|
-
return false;
|
|
1737
|
-
} finally {
|
|
1738
|
-
const settlement = settleWorkspaceOperation(
|
|
1739
|
-
activeGitHubDisconnectOperation.current,
|
|
1740
|
-
operation
|
|
1741
|
-
);
|
|
1742
|
-
activeGitHubDisconnectOperation.current = settlement.active;
|
|
1743
|
-
}
|
|
1744
|
-
}
|
|
1745
|
-
function toggleGitHubRepository(repo) {
|
|
1746
|
-
setSelectedRepoIds((current) => {
|
|
1747
|
-
const next = new Set(current);
|
|
1748
|
-
if (next.has(repo.id)) {
|
|
1749
|
-
next.delete(repo.id);
|
|
1750
|
-
} else {
|
|
1751
|
-
next.add(repo.id);
|
|
1752
|
-
}
|
|
1753
|
-
return next;
|
|
1754
|
-
});
|
|
1755
|
-
if (!selectedRepoIds.has(repo.id)) {
|
|
1756
|
-
const personal = personalGitHubRepositories.find(
|
|
1757
|
-
(candidate) => candidate.fullName.toLowerCase() === repo.fullName.toLowerCase()
|
|
1758
|
-
);
|
|
1759
|
-
if (personal) {
|
|
1760
|
-
setSelectedPersonalGitHubRepoIds((current) => {
|
|
1761
|
-
const next = new Set(current);
|
|
1762
|
-
next.delete(personal.repositoryId);
|
|
1763
|
-
return next;
|
|
1764
|
-
});
|
|
1765
|
-
}
|
|
1766
|
-
}
|
|
1767
|
-
setSelectedRepoRefs((current) => ({
|
|
1768
|
-
...current,
|
|
1769
|
-
[repo.id]: current[repo.id] ?? repo.defaultBranch
|
|
1770
|
-
}));
|
|
1771
|
-
}
|
|
1772
|
-
function addManualRepository() {
|
|
1773
|
-
setManualRepos((current) => [
|
|
1774
|
-
...current,
|
|
1775
|
-
{ id: nextRepoId, url: "", ref: "main", attached: false }
|
|
1776
|
-
]);
|
|
1777
|
-
setNextRepoId((value) => value + 1);
|
|
1778
|
-
setManualReposOpen(true);
|
|
1779
|
-
}
|
|
1780
|
-
function saveAccessKey() {
|
|
1781
|
-
const key = accessKeyDraft.trim();
|
|
1782
|
-
if (!key) {
|
|
1783
|
-
toast.error("Enter an access key");
|
|
1784
|
-
return;
|
|
1785
|
-
}
|
|
1786
|
-
invalidatePrincipalWorkspaceState();
|
|
1787
|
-
setStoredAccessKey(key);
|
|
1788
|
-
setHasAccessKey(true);
|
|
1789
|
-
setAccessKeyDraft("");
|
|
1790
|
-
setAccessError(null);
|
|
1791
|
-
setAccessKeyVersion((version) => version + 1);
|
|
1792
|
-
}
|
|
1793
|
-
function forgetAccessKey() {
|
|
1794
|
-
invalidatePrincipalWorkspaceState();
|
|
1795
|
-
clearStoredAccessKey();
|
|
1796
|
-
setHasAccessKey(false);
|
|
1797
|
-
setSession(null);
|
|
1798
|
-
setAccessContext(null);
|
|
1799
|
-
setWorkspaces([]);
|
|
1800
|
-
setAccessError(null);
|
|
1801
|
-
setAccessKeyVersion((version) => version + 1);
|
|
1802
|
-
}
|
|
1803
|
-
async function handleManagedAuth(mode, input) {
|
|
1804
|
-
invalidatePrincipalWorkspaceState({
|
|
1805
|
-
preservePendingSlackLink: preserveSlackLinkForManagedAuth(mode, slackLink.phase())
|
|
1806
|
-
});
|
|
1807
|
-
const acceptedPrincipal = principalTransitionIdentity.current;
|
|
1808
|
-
const ownsInvocation = () => ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal);
|
|
1809
|
-
if (mode === "signup") {
|
|
1810
|
-
const signup = await runCurrentTransitionInvocation({
|
|
1811
|
-
isCurrent: ownsInvocation,
|
|
1812
|
-
request: async () => await signUpEmail(input)
|
|
1813
|
-
});
|
|
1814
|
-
if (signup.status === "stale") return;
|
|
1815
|
-
captureProductEvent("signup_submitted", {
|
|
1816
|
-
method: "email",
|
|
1817
|
-
verification_required: managedEmailVerificationRequired
|
|
1818
|
-
});
|
|
1819
|
-
} else {
|
|
1820
|
-
const signin = await runCurrentTransitionInvocation({
|
|
1821
|
-
isCurrent: ownsInvocation,
|
|
1822
|
-
request: async () => await signInEmail({
|
|
1823
|
-
email: input.email,
|
|
1824
|
-
password: input.password,
|
|
1825
|
-
rememberMe: true
|
|
1826
|
-
})
|
|
1827
|
-
});
|
|
1828
|
-
if (signin.status === "stale") return;
|
|
1829
|
-
}
|
|
1830
|
-
const sessionRead = await runCurrentTransitionInvocation({
|
|
1831
|
-
isCurrent: ownsInvocation,
|
|
1832
|
-
request: fetchAuthSession
|
|
1833
|
-
});
|
|
1834
|
-
if (sessionRead.status === "stale") return;
|
|
1835
|
-
const nextSession = sessionRead.value;
|
|
1836
|
-
if (!nextSession && !(mode === "signup" && managedEmailVerificationRequired)) {
|
|
1837
|
-
throw new ManagedAuthSessionUnavailableError(mode);
|
|
1838
|
-
}
|
|
1839
|
-
authPrincipalIdRef.current = nextSession?.user.id ?? null;
|
|
1840
|
-
if (mode === "signin" && nextSession) noteSuccessfulLogin(nextSession.user.id, "email");
|
|
1841
|
-
setAuthSession(nextSession);
|
|
1842
|
-
setAccessKeyVersion((version) => version + 1);
|
|
1843
|
-
}
|
|
1844
|
-
async function handleManagedSessionSetSignup(input) {
|
|
1845
|
-
invalidatePrincipalWorkspaceState();
|
|
1846
|
-
const acceptedPrincipal = principalTransitionIdentity.current;
|
|
1847
|
-
const signup = await runCurrentTransitionInvocation({
|
|
1848
|
-
isCurrent: () => ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal),
|
|
1849
|
-
request: async () => await signUpEmail(input)
|
|
1850
|
-
});
|
|
1851
|
-
if (signup.status === "stale") return;
|
|
1852
|
-
captureProductEvent("signup_submitted", {
|
|
1853
|
-
method: "email",
|
|
1854
|
-
verification_required: managedEmailVerificationRequired
|
|
1855
|
-
});
|
|
1856
|
-
}
|
|
1857
|
-
async function handleManagedSocialAuth(provider, signupChallengeToken) {
|
|
1858
|
-
invalidatePrincipalWorkspaceState({
|
|
1859
|
-
preservePendingSlackLink: preserveSlackLinkForManagedAuth("signin", slackLink.phase())
|
|
1860
|
-
});
|
|
1861
|
-
beginSocialLoginAnalytics(provider);
|
|
1862
|
-
await startManagedSocialSignIn(provider, signupChallengeToken);
|
|
1863
|
-
}
|
|
1864
|
-
async function handleManagedPasskeyAuth(mode, input) {
|
|
1865
|
-
if (!signInPasskey || mode === "signup" && (!signUpPasskey || !input)) {
|
|
1866
|
-
throw new Error("Passkeys aren't available here");
|
|
1867
|
-
}
|
|
1868
|
-
invalidatePrincipalWorkspaceState({
|
|
1869
|
-
preservePendingSlackLink: preserveSlackLinkForManagedAuth(mode, slackLink.phase())
|
|
1870
|
-
});
|
|
1871
|
-
const acceptedPrincipal = principalTransitionIdentity.current;
|
|
1872
|
-
const ownsInvocation = () => ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal);
|
|
1873
|
-
const ceremony = await runCurrentTransitionInvocation({
|
|
1874
|
-
isCurrent: ownsInvocation,
|
|
1875
|
-
request: async () => mode === "signup" ? await signUpPasskey(input) : await signInPasskey()
|
|
1876
|
-
});
|
|
1877
|
-
if (ceremony.status === "stale") return;
|
|
1878
|
-
if (mode === "signup") {
|
|
1879
|
-
captureProductEvent("signup_submitted", { method: "passkey", verification_required: false });
|
|
1880
|
-
}
|
|
1881
|
-
const sessionRead = await runCurrentTransitionInvocation({
|
|
1882
|
-
isCurrent: ownsInvocation,
|
|
1883
|
-
request: fetchAuthSession
|
|
1884
|
-
});
|
|
1885
|
-
if (sessionRead.status === "stale") return;
|
|
1886
|
-
const nextSession = sessionRead.value;
|
|
1887
|
-
if (!nextSession) throw new ManagedAuthSessionUnavailableError(mode);
|
|
1888
|
-
authPrincipalIdRef.current = nextSession.user.id;
|
|
1889
|
-
if (mode === "signin") noteSuccessfulLogin(nextSession.user.id, "passkey");
|
|
1890
|
-
else captureProductEvent("signup_completed", { method: "passkey", is_new_user: true });
|
|
1891
|
-
setAuthSession(nextSession);
|
|
1892
|
-
setAccessKeyVersion((version) => version + 1);
|
|
1893
|
-
}
|
|
1894
|
-
async function handleManagedSignOut() {
|
|
1895
|
-
flushSync(() => {
|
|
1896
|
-
invalidatePrincipalWorkspaceState();
|
|
1897
|
-
setAuthSession(void 0);
|
|
1898
|
-
setAccessContext(null);
|
|
1899
|
-
setWorkspaces([]);
|
|
1900
|
-
setAccessError(null);
|
|
1901
|
-
});
|
|
1902
|
-
forgetAllHumanInputDrafts();
|
|
1903
|
-
const acceptedPrincipal = principalTransitionIdentity.current;
|
|
1904
|
-
const ownsInvocation = () => ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal);
|
|
1905
|
-
const reconciliation = await runCurrentTransitionInvocation({
|
|
1906
|
-
isCurrent: ownsInvocation,
|
|
1907
|
-
request: async () => await signOutWithAuthoritativeReconciliation({
|
|
1908
|
-
signOut: signOutManaged,
|
|
1909
|
-
readSession: fetchAuthSession
|
|
1910
|
-
})
|
|
1911
|
-
});
|
|
1912
|
-
if (reconciliation.status === "stale") return;
|
|
1913
|
-
const result = reconciliation.value;
|
|
1914
|
-
authPrincipalIdRef.current = result.session?.user.id ?? null;
|
|
1915
|
-
setAuthSession(result.session);
|
|
1916
|
-
setAccessKeyVersion((version) => version + 1);
|
|
1917
|
-
if (result.status === "reconciled_failure") {
|
|
1918
|
-
throw result.error;
|
|
1919
|
-
}
|
|
1920
|
-
setSession(null);
|
|
1921
|
-
await navigate({ to: "/", replace: true });
|
|
1922
|
-
}
|
|
1923
|
-
async function handleBrowserActorTransition(transition) {
|
|
1924
|
-
flushSync(() => {
|
|
1925
|
-
invalidatePrincipalWorkspaceState();
|
|
1926
|
-
setAuthSession(void 0);
|
|
1927
|
-
setAccessContext(null);
|
|
1928
|
-
setWorkspaces([]);
|
|
1929
|
-
setAccessError(null);
|
|
1930
|
-
});
|
|
1931
|
-
configureManagedActorEpoch(transition.to?.actorEpoch ?? null);
|
|
1932
|
-
flushSync(() => {
|
|
1933
|
-
setAccessKeyVersion((version) => version + 1);
|
|
1934
|
-
});
|
|
1935
|
-
if (transition.to === null) return;
|
|
1936
|
-
if (transition.to.selectedSlotId === null || transition.to.state !== "ready") {
|
|
1937
|
-
authPrincipalIdRef.current = null;
|
|
1938
|
-
setAuthSession(null);
|
|
1939
|
-
setSession(null);
|
|
1940
|
-
await navigate({ to: "/", replace: true });
|
|
1941
|
-
return;
|
|
1942
|
-
}
|
|
1943
|
-
const acceptedPrincipal = principalTransitionIdentity.current;
|
|
1944
|
-
const ownsInvocation = () => !transition.signal.aborted && ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal);
|
|
1945
|
-
try {
|
|
1946
|
-
const sessionRead = await runCurrentTransitionInvocation({
|
|
1947
|
-
isCurrent: ownsInvocation,
|
|
1948
|
-
request: fetchAuthSession
|
|
1949
|
-
});
|
|
1950
|
-
if (sessionRead.status === "stale") return;
|
|
1951
|
-
const nextSession = sessionRead.value;
|
|
1952
|
-
authPrincipalIdRef.current = nextSession?.user.id ?? null;
|
|
1953
|
-
setAuthSession(nextSession);
|
|
1954
|
-
} catch (error) {
|
|
1955
|
-
if (ownsInvocation()) setAuthSession(null);
|
|
1956
|
-
throw error;
|
|
1957
|
-
}
|
|
1958
|
-
}
|
|
1959
|
-
const contextAddManualRepository = useLatestCallback(addManualRepository);
|
|
1960
|
-
const contextForgetAccessKey = useLatestCallback(forgetAccessKey);
|
|
1961
|
-
const contextHandleManagedSignOut = useLatestCallback(handleManagedSignOut);
|
|
1962
|
-
const contextHandleBrowserActorTransition = useLatestCallback(handleBrowserActorTransition);
|
|
1963
|
-
const revalidatePrincipalAccess = useCallback(
|
|
1964
|
-
() => setAccessKeyVersion((version) => version + 1),
|
|
1965
|
-
[]
|
|
1966
|
-
);
|
|
1967
|
-
const completeOrganizationOnboarding = useCallback(
|
|
1968
|
-
async (destination) => {
|
|
1969
|
-
const arrived = destination?.sessionId ? navigate({
|
|
1970
|
-
to: "/workspaces/$workspaceId/sessions/$sessionId",
|
|
1971
|
-
params: { workspaceId: destination.workspaceId, sessionId: destination.sessionId }
|
|
1972
|
-
}) : destination ? navigate({
|
|
1973
|
-
to: "/workspaces/$workspaceId/sessions",
|
|
1974
|
-
params: { workspaceId: destination.workspaceId }
|
|
1975
|
-
}) : null;
|
|
1976
|
-
revalidatePrincipalAccess();
|
|
1977
|
-
await arrived;
|
|
1978
|
-
},
|
|
1979
|
-
[navigate, revalidatePrincipalAccess]
|
|
1980
|
-
);
|
|
1981
|
-
async function refreshPrincipalAccess() {
|
|
1982
|
-
if (!clientConfig || !authReady) return false;
|
|
1983
|
-
let acceptedPrincipal = principalTransitionIdentity.current;
|
|
1984
|
-
const acceptedManagedIdentity = clientConfig.auth.mode === "managedSession" && authSession ? managedSelfContextIdentity({
|
|
1985
|
-
credentialGeneration: accessKeyVersion,
|
|
1986
|
-
managedUserId: authSession.user.id
|
|
1987
|
-
}) : null;
|
|
1988
|
-
managedSelfContextIdentityRef.current = acceptedManagedIdentity;
|
|
1989
|
-
const selfContextPromise = acceptedManagedIdentity ? loadCurrentManagedSelfContext({
|
|
1990
|
-
identity: acceptedManagedIdentity,
|
|
1991
|
-
currentIdentity: () => managedSelfContextIdentityRef.current,
|
|
1992
|
-
request: () => client.listOrganizationMemberships()
|
|
1993
|
-
}) : Promise.resolve(null);
|
|
1994
|
-
const [nextAccessContext, nextWorkspaces, nextManagedSelfContext] = await Promise.all([
|
|
1995
|
-
client.getAccessContext(),
|
|
1996
|
-
client.listWorkspaces(),
|
|
1997
|
-
selfContextPromise
|
|
1998
|
-
]);
|
|
1999
|
-
if (!ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
2000
|
-
return false;
|
|
2001
|
-
}
|
|
2002
|
-
if (acceptedManagedIdentity && nextManagedSelfContext === null) return false;
|
|
2003
|
-
if (nextManagedSelfContext && nextAccessContext.subjectId !== nextManagedSelfContext.identity.subjectId) {
|
|
2004
|
-
throw new Error("managed self context did not match the authenticated subject");
|
|
2005
|
-
}
|
|
2006
|
-
if (accessPrincipalIdRef.current !== null && accessPrincipalIdRef.current !== nextAccessContext.subjectId) {
|
|
2007
|
-
invalidatePrincipalWorkspaceState();
|
|
2008
|
-
acceptedPrincipal = principalTransitionIdentity.current;
|
|
2009
|
-
managedSelfContextIdentityRef.current = acceptedManagedIdentity;
|
|
2010
|
-
}
|
|
2011
|
-
if (!ownsPrincipalTransition(principalTransitionIdentity.current, acceptedPrincipal)) {
|
|
2012
|
-
return false;
|
|
2013
|
-
}
|
|
2014
|
-
accessPrincipalIdRef.current = nextAccessContext.subjectId;
|
|
2015
|
-
claimHumanInputDraftOwner(nextAccessContext.subjectId);
|
|
2016
|
-
setAccessContext(nextAccessContext);
|
|
2017
|
-
setWorkspaces(nextWorkspaces);
|
|
2018
|
-
setManagedSelfContext(nextManagedSelfContext);
|
|
2019
|
-
return true;
|
|
2020
|
-
}
|
|
2021
|
-
const contextRefreshPrincipalAccess = useLatestCallback(refreshPrincipalAccess);
|
|
2022
|
-
const contextCreateWorkspace = useLatestCallback(createWorkspace);
|
|
2023
|
-
const contextRenameWorkspace = useLatestCallback(renameWorkspace);
|
|
2024
|
-
const contextSetWorkspaceInferenceControl = useLatestCallback(setWorkspaceInferenceControl);
|
|
2025
|
-
const contextUpdateWorkspaceSettings = useLatestCallback(updateWorkspaceSettings);
|
|
2026
|
-
const contextSetWorkspaceDefaultRig = useLatestCallback(setWorkspaceDefaultRig);
|
|
2027
|
-
const contextUpdateSessionTitle = useLatestCallback(updateSessionTitle);
|
|
2028
|
-
const contextUpdateSessionProfile = useLatestCallback(updateSessionProfile);
|
|
2029
|
-
const contextUpdateSessionPin = useLatestCallback(updateSessionPin);
|
|
2030
|
-
const contextDeleteWorkspace = useLatestCallback(deleteWorkspace);
|
|
2031
|
-
const contextStartGitHubAppManifestFlow = useLatestCallback(startGitHubAppManifestFlow);
|
|
2032
|
-
const contextDisconnectGitHubInstallation = useLatestCallback(disconnectGitHubInstallation);
|
|
2033
|
-
const contextToggleGitHubRepository = useLatestCallback(toggleGitHubRepository);
|
|
2034
|
-
const contextConnectPersonalGitHub = useLatestCallback(
|
|
2035
|
-
(workspaceId) => beginPersonalGitHubOAuth(workspaceId, false)
|
|
2036
|
-
);
|
|
2037
|
-
const contextReconnectPersonalGitHub = useLatestCallback(
|
|
2038
|
-
(workspaceId) => beginPersonalGitHubOAuth(workspaceId, true)
|
|
2039
|
-
);
|
|
2040
|
-
const contextDisconnectPersonalGitHub = useLatestCallback(disconnectPersonalGitHub);
|
|
2041
|
-
const contextSavePersonalGitHubRepositories = useLatestCallback(savePersonalGitHubRepositories);
|
|
2042
|
-
const contextEnsurePersonalGitHubAuthority = useLatestCallback(ensurePersonalGitHubAuthority);
|
|
2043
|
-
const contextTogglePersonalGitHubRepository = useLatestCallback(togglePersonalGitHubRepository);
|
|
2044
|
-
const contextStartSession = useLatestCallback(startSession);
|
|
2045
|
-
const preparePendingSlackLink = useCallback(
|
|
2046
|
-
async (workspaceId) => await slackLink.prepare(
|
|
2047
|
-
workspaceId,
|
|
2048
|
-
async (token) => await client.prepareSlackUserLinkAccess(workspaceId, {
|
|
2049
|
-
linkToken: token
|
|
2050
|
-
})
|
|
2051
|
-
),
|
|
2052
|
-
[client, slackLink]
|
|
2053
|
-
);
|
|
2054
|
-
const clearSlackLinkContinuation = useCallback(() => {
|
|
2055
|
-
slackLink.clear();
|
|
2056
|
-
setSlackLinkContinuationWorkspaceId(null);
|
|
2057
|
-
}, [slackLink]);
|
|
2058
|
-
const appContext = useMemo(() => {
|
|
2059
|
-
return clientConfig && accessContext ? {
|
|
2060
|
-
client,
|
|
2061
|
-
clientConfig: withWorkspaceClientConfig(clientConfig, workspaceConfig),
|
|
2062
|
-
refreshWorkspaceConfig,
|
|
2063
|
-
authSession: authSession ?? null,
|
|
2064
|
-
accessContext,
|
|
2065
|
-
workspaces,
|
|
2066
|
-
managedSelfContext,
|
|
2067
|
-
slackLinkContinuationWorkspaceId,
|
|
2068
|
-
invalidSlackLinkQueryWorkspaceId,
|
|
2069
|
-
preparePendingSlackLink,
|
|
2070
|
-
clearSlackLinkContinuation,
|
|
2071
|
-
accessKeyVersion,
|
|
2072
|
-
keyAuthRequired: keyAuthRequired === true,
|
|
2073
|
-
model,
|
|
2074
|
-
setModel,
|
|
2075
|
-
reasoningEffort,
|
|
2076
|
-
setReasoningEffort,
|
|
2077
|
-
latencyMode,
|
|
2078
|
-
setLatencyMode,
|
|
2079
|
-
inspectorOpen,
|
|
2080
|
-
setInspectorOpen,
|
|
2081
|
-
session,
|
|
2082
|
-
setSession,
|
|
2083
|
-
sessionChannelProjectionAuthority,
|
|
2084
|
-
sessionCreationHandoff,
|
|
2085
|
-
connectionState,
|
|
2086
|
-
setConnectionState,
|
|
2087
|
-
sessionEventFeedStore,
|
|
2088
|
-
manualRepos,
|
|
2089
|
-
setManualRepos,
|
|
2090
|
-
manualReposOpen,
|
|
2091
|
-
setManualReposOpen,
|
|
2092
|
-
selectedRepoIds,
|
|
2093
|
-
setSelectedRepoIds,
|
|
2094
|
-
selectedRepoRefs,
|
|
2095
|
-
setSelectedRepoRefs,
|
|
2096
|
-
githubRepos,
|
|
2097
|
-
githubStatus,
|
|
2098
|
-
githubStatusFailed,
|
|
2099
|
-
githubCatalogReady,
|
|
2100
|
-
personalGitHubStatus,
|
|
2101
|
-
personalGitHubRepositories,
|
|
2102
|
-
personalGitHubSelection,
|
|
2103
|
-
personalGitHubCatalogReady,
|
|
2104
|
-
personalGitHubBusy,
|
|
2105
|
-
selectedPersonalGitHubRepoIds,
|
|
2106
|
-
setSelectedPersonalGitHubRepoIds,
|
|
2107
|
-
selectedPersonalGitHubRepoRefs,
|
|
2108
|
-
setSelectedPersonalGitHubRepoRefs,
|
|
2109
|
-
personalGitHubAuthority,
|
|
2110
|
-
githubOrg,
|
|
2111
|
-
setGithubOrg,
|
|
2112
|
-
selectedCapabilityToolIds,
|
|
2113
|
-
setSelectedCapabilityToolIds,
|
|
2114
|
-
busy,
|
|
2115
|
-
repoBusy,
|
|
2116
|
-
githubAppBusy,
|
|
2117
|
-
repositoryGroups,
|
|
2118
|
-
toolMcpServers,
|
|
2119
|
-
workspaceDefaultToolIds,
|
|
2120
|
-
workspaceMcpCatalogReady,
|
|
2121
|
-
workspaceMcpCatalogLoadedSuccessfully,
|
|
2122
|
-
workspaceCapabilityCatalog,
|
|
2123
|
-
workspaceMemberIntegrationSetup,
|
|
2124
|
-
currentResources,
|
|
2125
|
-
repositoryValidationError,
|
|
2126
|
-
workspaceStateOwnerId,
|
|
2127
|
-
prepareWorkspaceTransition,
|
|
2128
|
-
captureWorkspaceInvocation,
|
|
2129
|
-
ownsWorkspaceInvocation,
|
|
2130
|
-
addManualRepository: contextAddManualRepository,
|
|
2131
|
-
forgetAccessKey: contextForgetAccessKey,
|
|
2132
|
-
handleManagedSignOut: contextHandleManagedSignOut,
|
|
2133
|
-
revalidatePrincipalAccess,
|
|
2134
|
-
refreshPrincipalAccess: contextRefreshPrincipalAccess,
|
|
2135
|
-
createWorkspace: contextCreateWorkspace,
|
|
2136
|
-
renameWorkspace: contextRenameWorkspace,
|
|
2137
|
-
setWorkspaceInferenceControl: contextSetWorkspaceInferenceControl,
|
|
2138
|
-
refreshWorkspace,
|
|
2139
|
-
updateWorkspaceSettings: contextUpdateWorkspaceSettings,
|
|
2140
|
-
setWorkspaceDefaultRig: contextSetWorkspaceDefaultRig,
|
|
2141
|
-
updateSessionTitle: contextUpdateSessionTitle,
|
|
2142
|
-
updateSessionProfile: contextUpdateSessionProfile,
|
|
2143
|
-
updateSessionPin: contextUpdateSessionPin,
|
|
2144
|
-
deleteWorkspace: contextDeleteWorkspace,
|
|
2145
|
-
refreshGitHub,
|
|
2146
|
-
refreshPersonalGitHub,
|
|
2147
|
-
connectPersonalGitHub: contextConnectPersonalGitHub,
|
|
2148
|
-
reconnectPersonalGitHub: contextReconnectPersonalGitHub,
|
|
2149
|
-
disconnectPersonalGitHub: contextDisconnectPersonalGitHub,
|
|
2150
|
-
savePersonalGitHubRepositories: contextSavePersonalGitHubRepositories,
|
|
2151
|
-
ensurePersonalGitHubAuthority: contextEnsurePersonalGitHubAuthority,
|
|
2152
|
-
togglePersonalGitHubRepository: contextTogglePersonalGitHubRepository,
|
|
2153
|
-
refreshWorkspaceMcpServers,
|
|
2154
|
-
startGitHubAppManifestFlow: contextStartGitHubAppManifestFlow,
|
|
2155
|
-
disconnectGitHubInstallation: contextDisconnectGitHubInstallation,
|
|
2156
|
-
toggleGitHubRepository: contextToggleGitHubRepository,
|
|
2157
|
-
startSession: contextStartSession,
|
|
2158
|
-
resetSessionView,
|
|
2159
|
-
resetWorkspaceIntegrations
|
|
2160
|
-
} : null;
|
|
2161
|
-
}, [
|
|
2162
|
-
accessContext,
|
|
2163
|
-
accessKeyVersion,
|
|
2164
|
-
authSession,
|
|
2165
|
-
busy,
|
|
2166
|
-
captureWorkspaceInvocation,
|
|
2167
|
-
clearSlackLinkContinuation,
|
|
2168
|
-
client,
|
|
2169
|
-
clientConfig,
|
|
2170
|
-
workspaceConfig,
|
|
2171
|
-
refreshWorkspaceConfig,
|
|
2172
|
-
connectionState,
|
|
2173
|
-
contextAddManualRepository,
|
|
2174
|
-
contextCreateWorkspace,
|
|
2175
|
-
contextDeleteWorkspace,
|
|
2176
|
-
contextConnectPersonalGitHub,
|
|
2177
|
-
contextDisconnectPersonalGitHub,
|
|
2178
|
-
contextEnsurePersonalGitHubAuthority,
|
|
2179
|
-
contextForgetAccessKey,
|
|
2180
|
-
contextHandleManagedSignOut,
|
|
2181
|
-
contextRenameWorkspace,
|
|
2182
|
-
contextReconnectPersonalGitHub,
|
|
2183
|
-
contextSavePersonalGitHubRepositories,
|
|
2184
|
-
contextSetWorkspaceInferenceControl,
|
|
2185
|
-
contextUpdateSessionProfile,
|
|
2186
|
-
contextSetWorkspaceDefaultRig,
|
|
2187
|
-
contextDisconnectGitHubInstallation,
|
|
2188
|
-
contextStartGitHubAppManifestFlow,
|
|
2189
|
-
contextStartSession,
|
|
2190
|
-
contextToggleGitHubRepository,
|
|
2191
|
-
contextTogglePersonalGitHubRepository,
|
|
2192
|
-
contextUpdateSessionPin,
|
|
2193
|
-
contextUpdateSessionTitle,
|
|
2194
|
-
contextUpdateWorkspaceSettings,
|
|
2195
|
-
currentResources,
|
|
2196
|
-
repositoryValidationError,
|
|
2197
|
-
githubAppBusy,
|
|
2198
|
-
githubOrg,
|
|
2199
|
-
githubRepos,
|
|
2200
|
-
githubStatus,
|
|
2201
|
-
githubStatusFailed,
|
|
2202
|
-
personalGitHubStatus,
|
|
2203
|
-
personalGitHubRepositories,
|
|
2204
|
-
personalGitHubSelection,
|
|
2205
|
-
personalGitHubCatalogReady,
|
|
2206
|
-
personalGitHubBusy,
|
|
2207
|
-
selectedPersonalGitHubRepoIds,
|
|
2208
|
-
selectedPersonalGitHubRepoRefs,
|
|
2209
|
-
personalGitHubAuthority,
|
|
2210
|
-
githubCatalogReady,
|
|
2211
|
-
inspectorOpen,
|
|
2212
|
-
invalidSlackLinkQueryWorkspaceId,
|
|
2213
|
-
keyAuthRequired,
|
|
2214
|
-
manualRepos,
|
|
2215
|
-
manualReposOpen,
|
|
2216
|
-
managedSelfContext,
|
|
2217
|
-
model,
|
|
2218
|
-
ownsWorkspaceInvocation,
|
|
2219
|
-
preparePendingSlackLink,
|
|
2220
|
-
prepareWorkspaceTransition,
|
|
2221
|
-
slackLinkContinuationWorkspaceId,
|
|
2222
|
-
latencyMode,
|
|
2223
|
-
reasoningEffort,
|
|
2224
|
-
revalidatePrincipalAccess,
|
|
2225
|
-
contextRefreshPrincipalAccess,
|
|
2226
|
-
refreshGitHub,
|
|
2227
|
-
refreshPersonalGitHub,
|
|
2228
|
-
refreshWorkspace,
|
|
2229
|
-
refreshWorkspaceMcpServers,
|
|
2230
|
-
repoBusy,
|
|
2231
|
-
repositoryGroups,
|
|
2232
|
-
resetSessionView,
|
|
2233
|
-
resetWorkspaceIntegrations,
|
|
2234
|
-
selectedCapabilityToolIds,
|
|
2235
|
-
selectedRepoIds,
|
|
2236
|
-
selectedRepoRefs,
|
|
2237
|
-
session,
|
|
2238
|
-
sessionChannelProjectionAuthority,
|
|
2239
|
-
sessionCreationHandoff,
|
|
2240
|
-
sessionEventFeedStore,
|
|
2241
|
-
setSession,
|
|
2242
|
-
toolMcpServers,
|
|
2243
|
-
workspaceDefaultToolIds,
|
|
2244
|
-
workspaceMcpCatalogReady,
|
|
2245
|
-
workspaceMcpCatalogLoadedSuccessfully,
|
|
2246
|
-
workspaceCapabilityCatalog,
|
|
2247
|
-
workspaceMemberIntegrationSetup,
|
|
2248
|
-
workspaceStateOwnerId,
|
|
2249
|
-
workspaces
|
|
2250
|
-
]);
|
|
2251
|
-
return {
|
|
2252
|
-
appContext,
|
|
2253
|
-
client,
|
|
2254
|
-
clientConfig,
|
|
2255
|
-
configError,
|
|
2256
|
-
retryClientConfig: () => {
|
|
2257
|
-
setConfigError((current) => current?.recovering ? current : null);
|
|
2258
|
-
setConfigRequestVersion((version) => version + 1);
|
|
2259
|
-
},
|
|
2260
|
-
authSession,
|
|
2261
|
-
accessContext,
|
|
2262
|
-
accessError,
|
|
2263
|
-
accessLoading,
|
|
2264
|
-
accessKeyVersion,
|
|
2265
|
-
retryAccess: () => setAccessKeyVersion((version) => version + 1),
|
|
2266
|
-
keyAuthRequired,
|
|
2267
|
-
hasAccessKey,
|
|
2268
|
-
accessKeyDraft,
|
|
2269
|
-
setAccessKeyDraft,
|
|
2270
|
-
saveAccessKey,
|
|
2271
|
-
managedAuthRequired,
|
|
2272
|
-
managedEmailVerificationRequired,
|
|
2273
|
-
managedNewSignupsEnabled,
|
|
2274
|
-
managedSocialProviders,
|
|
2275
|
-
managedPasskeySignIn,
|
|
2276
|
-
managedPasskeySignUp,
|
|
2277
|
-
browserAccountsConfigured,
|
|
2278
|
-
browserAccountsEnabled,
|
|
2279
|
-
handleManagedAuth,
|
|
2280
|
-
handleManagedSessionSetSignup,
|
|
2281
|
-
handleManagedSocialAuth,
|
|
2282
|
-
handleManagedPasskeyAuth,
|
|
2283
|
-
handleManagedSignOut: contextHandleManagedSignOut,
|
|
2284
|
-
handleBrowserActorTransition: contextHandleBrowserActorTransition,
|
|
2285
|
-
completeOrganizationOnboarding,
|
|
2286
|
-
revalidatePrincipalAccess,
|
|
2287
|
-
defaultWorkspaceId,
|
|
2288
|
-
slackLinkContinuationWorkspaceId,
|
|
2289
|
-
routedWorkspace,
|
|
2290
|
-
creditRequired,
|
|
2291
|
-
setCreditRequired,
|
|
2292
|
-
mutationBusy: busy || repoBusy || githubAppBusy || pendingCreateAttempt.current !== null
|
|
2293
|
-
};
|
|
2294
|
-
}
|
|
2295
|
-
function submitGitHubManifest(actionUrl, manifest, newTab) {
|
|
2296
|
-
const form = document.createElement("form");
|
|
2297
|
-
form.method = "POST";
|
|
2298
|
-
form.action = actionUrl;
|
|
2299
|
-
if (newTab) form.target = "_blank";
|
|
2300
|
-
form.style.display = "none";
|
|
2301
|
-
form.acceptCharset = "utf-8";
|
|
2302
|
-
const input = document.createElement("input");
|
|
2303
|
-
input.type = "hidden";
|
|
2304
|
-
input.name = "manifest";
|
|
2305
|
-
input.value = JSON.stringify(manifest);
|
|
2306
|
-
form.append(input);
|
|
2307
|
-
document.body.append(form);
|
|
2308
|
-
form.submit();
|
|
2309
|
-
if (newTab) form.remove();
|
|
2310
|
-
}
|
|
2311
|
-
|
|
2312
|
-
export {
|
|
2313
|
-
GITHUB_STATUS_TOAST_ID,
|
|
2314
|
-
PERSONAL_GITHUB_STATUS_TOAST_ID,
|
|
2315
|
-
preserveSlackLinkForManagedAuth,
|
|
2316
|
-
createSlackLinkPrepareController,
|
|
2317
|
-
useAppState
|
|
2318
|
-
};
|
|
2319
|
-
//# sourceMappingURL=chunk-KJZRQ55O.js.map
|