@opengeni/react 6.36.0 → 6.36.1-canary.45113772604001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/app-state.js +10 -10
- package/dist/app/components/Composer.js +19 -19
- package/dist/app/components/agent/agent-capability-picker.js +6 -6
- package/dist/app/components/agents/agent-can-use.js +21 -20
- package/dist/app/components/agents/agent-form-page.js +69 -65
- package/dist/app/components/agents/agent-form-page.js.map +1 -1
- package/dist/app/components/agents/agent-page.js +68 -64
- package/dist/app/components/agents/agent-setup-sections.js +40 -36
- package/dist/app/components/agents/agent-skills.js +5 -5
- package/dist/app/components/agents/agent-trigger-chat-field.js +4 -4
- package/dist/app/components/agents/agent-trigger-dialog.js +20 -17
- package/dist/app/components/agents/agent-trigger-model.d.ts +14 -0
- package/dist/app/components/agents/agent-trigger-picker.js +6 -5
- package/dist/app/components/agents/agent-trigger-repositories.d.ts +9 -0
- package/dist/app/components/agents/agent-trigger-repositories.js +31 -0
- package/dist/app/components/agents/agents-page.css +1905 -0
- package/dist/app/components/agents/agents-page.css.map +1 -0
- package/dist/app/components/agents/agents-page.js +106 -61
- package/dist/app/components/agents/agents-page.js.map +1 -1
- package/dist/app/components/agents/composer-agent-chip.js +29 -29
- package/dist/app/components/agents/session-agent-chip.js +29 -29
- package/dist/app/components/artifacts/app-package.js +3 -3
- package/dist/app/components/artifacts/app-server-status.d.ts +22 -0
- package/dist/app/components/artifacts/app-server-status.js +13 -0
- package/dist/app/components/artifacts/artifact-library.css +1905 -0
- package/dist/app/components/artifacts/artifact-library.css.map +1 -0
- package/dist/app/components/artifacts/artifact-library.js +8 -8
- package/dist/app/components/artifacts/artifact-viewer.css +1905 -0
- package/dist/app/components/artifacts/artifact-viewer.css.map +1 -0
- package/dist/app/components/artifacts/artifact-viewer.js +30 -30
- package/dist/app/components/artifacts/chat-interactive-block.js +16 -16
- package/dist/app/components/artifacts/file-reach-dialog.js +6 -6
- package/dist/app/components/artifacts/inline-chat-image.js +28 -28
- package/dist/app/components/artifacts/ready-made-apps.css +1905 -0
- package/dist/app/components/artifacts/ready-made-apps.css.map +1 -0
- package/dist/app/components/artifacts/ready-made-apps.d.ts +3 -0
- package/dist/app/components/artifacts/ready-made-apps.js +40 -0
- package/dist/app/components/artifacts/retained-file-preview.js +30 -30
- package/dist/app/components/artifacts/retained-text-preview.js +3 -3
- package/dist/app/components/artifacts/site-actions.js +1 -1
- package/dist/app/components/artifacts/site-audience.js +3 -3
- package/dist/app/components/artifacts/site-conversations.js +15 -15
- package/dist/app/components/artifacts/site-data.js +11 -11
- package/dist/app/components/artifacts/site-publishing-page.js +32 -32
- package/dist/app/components/artifacts/site-publishing.js +24 -24
- package/dist/app/components/artifacts/site-settings.js +31 -31
- package/dist/app/components/artifacts/site-version-menu.js +4 -4
- package/dist/app/components/billing-class-mark.js +3 -3
- package/dist/app/components/capabilities/capability-detail-sheet.js +7 -7
- package/dist/app/components/capabilities/capability-logo-source.js +15 -14
- package/dist/app/components/capabilities/connector-tool-permissions.js +4 -4
- package/dist/app/components/capabilities/native-connect-setup.js +16 -15
- package/dist/app/components/capabilities/own-logins-shared-heads-up.js +3 -3
- package/dist/app/components/capabilities/perform-capability-action.js +1 -1
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +17 -16
- package/dist/app/components/capabilities/session-capability-card.js +70 -69
- package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.js +22 -22
- package/dist/app/components/capabilities/session-connect-inputs-card.js +16 -15
- package/dist/app/components/capabilities/session-custom-mcp-card.js +18 -17
- package/dist/app/components/capabilities/session-github-card.js +19 -18
- package/dist/app/components/capabilities/session-machine-card.js +21 -21
- package/dist/app/components/capabilities/session-personal-github-card.js +16 -15
- package/dist/app/components/capabilities/session-plugin-card.js +9 -9
- package/dist/app/components/capabilities/use-connection-accounts.js +1 -1
- package/dist/app/components/command-menu/chat-status.js +18 -18
- package/dist/app/components/command-menu/chat-switcher.js +47 -47
- package/dist/app/components/command-menu/command-menu.js +58 -58
- package/dist/app/components/command-menu/shortcut-sheet.js +15 -15
- package/dist/app/components/composer-capabilities-menu-body.js +4 -4
- package/dist/app/components/composer-mobile-plus-panel.js +9 -9
- package/dist/app/components/composer-mobile-plus.js +1 -1
- package/dist/app/components/credit-required-gate.js +1 -1
- package/dist/app/components/credit-required-prompt.js +11 -11
- package/dist/app/components/credits/checkout-credits-celebration.js +2 -2
- package/dist/app/components/credits/checkout-return.js +2 -2
- package/dist/app/components/credits/credit-refusal-notice.js +2 -2
- package/dist/app/components/desktop/app-shots.js +7 -7
- package/dist/app/components/desktop/computer-use.js +2 -2
- package/dist/app/components/desktop/this-computer.js +5 -5
- package/dist/app/components/feedback.js +3 -3
- package/dist/app/components/follow-up-repository-menu-body.js +2 -2
- package/dist/app/components/follow-up-repository-picker.js +1 -1
- package/dist/app/components/github-app-connect-launcher.js +1 -1
- package/dist/app/components/machines/connect-machine-dialog.js +11 -11
- package/dist/app/components/markdown.js +7 -7
- package/dist/app/components/models/models-ui.js +6 -6
- package/dist/app/components/models/subscription-usage.js +5 -5
- package/dist/app/components/my-things.js +4 -4
- package/dist/app/components/own-where-it-works.js +3 -3
- package/dist/app/components/personal-resource-attachment-surface.js +4 -4
- package/dist/app/components/pickers.js +6 -6
- package/dist/app/components/rail/channel-create-dialog.js +3 -3
- package/dist/app/components/rail/project-glyph.js +29 -29
- package/dist/app/components/rail/project-profile.js +36 -36
- package/dist/app/components/rail/rail-context.js +1 -1
- package/dist/app/components/rail/rail-sections.js +80 -80
- package/dist/app/components/rail/session-header.js +64 -64
- package/dist/app/components/rail/session-list.js +78 -78
- package/dist/app/components/rail/session-row-content.js +4 -4
- package/dist/app/components/rail/session-row-hover-details.js +20 -20
- package/dist/app/components/rail/session-shell.js +102 -102
- package/dist/app/components/rail/site-session-group-heading.js +14 -14
- package/dist/app/components/repository-picker.js +2 -2
- package/dist/app/components/session/agent-configuration-panel.js +16 -16
- package/dist/app/components/session/artifact-session-page.js +1 -1
- package/dist/app/components/session/banners.js +9 -9
- package/dist/app/components/session/chat-avatar.js +29 -29
- package/dist/app/components/session/console-new-conversation.js +51 -51
- package/dist/app/components/session/descendant-requests.js +46 -46
- package/dist/app/components/session/editable-artifacts-workspace.css +1905 -0
- package/dist/app/components/session/editable-artifacts-workspace.css.map +1 -0
- package/dist/app/components/session/editable-artifacts-workspace.js +22 -22
- package/dist/app/components/session/failed-session-banner.js +10 -10
- package/dist/app/components/session/failure-recovery-boundary.js +3 -3
- package/dist/app/components/session/human-input-delegation-record.js +2 -2
- package/dist/app/components/session/human-input.js +42 -42
- package/dist/app/components/session/inspector.js +56 -56
- package/dist/app/components/session/linked-panel.js +3 -3
- package/dist/app/components/session/message-actions.js +3 -3
- package/dist/app/components/session/model-recovery-notice.js +3 -3
- package/dist/app/components/session/new-session-settings-menu.js +11 -11
- package/dist/app/components/session/new-session-setup-strip.js +30 -30
- package/dist/app/components/session/pull-request-panel.js +11 -11
- package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
- package/dist/app/components/session/sandbox-switcher.js +8 -8
- package/dist/app/components/session/sandbox-workspace.js +58 -58
- package/dist/app/components/session/search-markdown-highlight.js +8 -8
- package/dist/app/components/session/search-results-view.js +9 -9
- package/dist/app/components/session/session-admin-access.js +4 -4
- package/dist/app/components/session/session-admission-notice.js +4 -4
- package/dist/app/components/session/session-avatar-picker.js +30 -30
- package/dist/app/components/session/session-avatar.js +28 -28
- package/dist/app/components/session/session-machine-access-notice.js +4 -4
- package/dist/app/components/session/session-profile-dialog.js +34 -34
- package/dist/app/components/session/session-profile-editor.js +35 -35
- package/dist/app/components/session/session-retention.js +4 -4
- package/dist/app/components/session/session-search-dialog.js +9 -9
- package/dist/app/components/session/session-tenancy-control.js +8 -8
- package/dist/app/components/session/session-usage-limit-section.js +4 -4
- package/dist/app/components/session/share-chat-dialog.js +6 -6
- package/dist/app/components/session/subagents.js +13 -13
- package/dist/app/components/session/subscription-account-indicator.js +11 -11
- package/dist/app/components/session/subscription-account-menu.js +6 -6
- package/dist/app/components/settings/row-select.js +4 -4
- package/dist/app/components/toaster.js +2 -2
- package/dist/app/components/transcription-settings.js +6 -6
- package/dist/app/components/ui/destructive-confirm.js +5 -5
- package/dist/app/components/usage/usage-entry.js +3 -3
- package/dist/app/components/window-bar.js +13 -13
- package/dist/app/components/workspace-composer-plus.js +18 -17
- package/dist/app/components/workspace-reach.js +4 -4
- package/dist/app/embed/session-app.js +241 -240
- package/dist/app/lib/actions/actions-provider.js +12 -12
- package/dist/app/lib/agent-capabilities.js +3 -3
- package/dist/app/lib/app-connect-card.js +9 -9
- package/dist/app/lib/app-shared-key-dialog.js +4 -4
- package/dist/app/lib/app-sync-opt-in.js +3 -3
- package/dist/app/lib/codex-usage-query.js +2 -2
- package/dist/app/lib/composer-connectors.js +16 -15
- package/dist/app/lib/console-site.js +5 -5
- package/dist/app/lib/console-text.js +2 -2
- package/dist/app/lib/events.js +18 -18
- package/dist/app/lib/failed-session-copy.js +3 -3
- package/dist/app/lib/model-access-onboarding.js +3 -3
- package/dist/app/lib/move-chat-to-machine.js +3 -3
- package/dist/app/lib/needs-you.d.ts +2 -1
- package/dist/app/lib/needs-you.js +1 -1
- package/dist/app/lib/ready-made-apps.d.ts +14 -0
- package/dist/app/lib/ready-made-apps.js +8 -0
- package/dist/app/lib/session-branch-cache.js +13 -13
- package/dist/app/lib/session-capabilities.js +1 -1
- package/dist/app/lib/session-create.js +4 -4
- package/dist/app/lib/session-group-pagination.js +13 -13
- package/dist/app/lib/session-hover-facts.js +17 -17
- package/dist/app/lib/session-list-dirty-scopes.js +14 -14
- package/dist/app/lib/session-model.js +2 -2
- package/dist/app/lib/session-rail.js +10 -10
- package/dist/app/lib/session-rename.js +3 -3
- package/dist/app/lib/sessions-group.js +12 -12
- package/dist/app/lib/site-tool-consent-dialog.js +8 -8
- package/dist/app/lib/site-tool-consent.js +1 -1
- package/dist/app/lib/turn-failure-analytics.js +4 -4
- package/dist/app/lib/use-follow-up-repositories.js +3 -3
- package/dist/app/lib/use-workspace-machines.js +4 -4
- package/dist/app/lib/use-workspace-model-catalog.js +3 -3
- package/dist/app/lib/use-workspace-rigs.js +2 -2
- package/dist/app/lib/workspace-navigation-preference.js +4 -4
- package/dist/app/lib/workspace-scope-context.js +3 -3
- package/dist/app/routes/app-page-view.js +10 -10
- package/dist/app/routes/app-page.js +1 -1
- package/dist/app/routes/artifacts.css +1905 -0
- package/dist/app/routes/artifacts.css.map +1 -0
- package/dist/app/routes/artifacts.js +105 -94
- package/dist/app/routes/artifacts.js.map +1 -1
- package/dist/app/routes/retained-artifact.js +47 -47
- package/dist/app/routes/session-unavailable.js +2 -2
- package/dist/app/routes/session.js +131 -130
- package/dist/app/routes/sessions-index-hydration.js +5 -5
- package/dist/app/routes/sessions-index.js +108 -107
- package/dist/app/routes/site-view.js +107 -95
- package/dist/app/routes/site-view.js.map +1 -1
- package/dist/approval-review-model.js +2 -2
- package/dist/artifacts-document.js +4 -4
- package/dist/artifacts-presentation.js +5 -5
- package/dist/artifacts-spreadsheet.js +4 -4
- package/dist/artifacts.js +15 -15
- package/dist/automation-model.js +5 -5
- package/dist/automations.d.ts +1 -0
- package/dist/automations.js +29 -22
- package/dist/automations.js.map +1 -1
- package/dist/browser-viewer-EPGAK2W6.js +23 -0
- package/dist/chat-interactive-block-65YU6TMO.js +22 -0
- package/dist/chunk-25ODMMHH.js +403 -0
- package/dist/chunk-266ZPUMH.js +400 -0
- package/dist/chunk-2A7SB7UR.js +168 -0
- package/dist/chunk-2EU4Y7A7.js +100 -0
- package/dist/chunk-2F7VSGRS.js +1177 -0
- package/dist/chunk-2F7VSGRS.js.map +1 -0
- package/dist/chunk-2L6B6766.js +5915 -0
- package/dist/chunk-2L6B6766.js.map +1 -0
- package/dist/chunk-2LBYEHBH.js +570 -0
- package/dist/chunk-2MHIIF4N.js +141 -0
- package/dist/chunk-2SHWGDAA.js +283 -0
- package/dist/chunk-2VX42S4W.js +773 -0
- package/dist/chunk-2WGJQ4XK.js +311 -0
- package/dist/chunk-2XSF44TY.js +15 -0
- package/dist/chunk-33HUZMNE.js +639 -0
- package/dist/chunk-36IKHM4Q.js +148 -0
- package/dist/chunk-3JVQZAXQ.js +4480 -0
- package/dist/chunk-3SDESU6U.js +287 -0
- package/dist/chunk-3VXZFBP6.js +292 -0
- package/dist/chunk-3WDNCSVU.js +197 -0
- package/dist/chunk-3WDNCSVU.js.map +1 -0
- package/dist/chunk-3YKED2ZV.js +307 -0
- package/dist/chunk-3ZNOKD3S.js +1019 -0
- package/dist/chunk-45SB4UK3.js +2580 -0
- package/dist/chunk-47BETTVA.js +133 -0
- package/dist/chunk-4BTQ473O.js +274 -0
- package/dist/chunk-4JQRWJVR.js +249 -0
- package/dist/chunk-4NGIKV2W.js +316 -0
- package/dist/chunk-4NGIKV2W.js.map +1 -0
- package/dist/chunk-4R6WFQKZ.js +202 -0
- package/dist/chunk-4WEPVL7X.js +283 -0
- package/dist/chunk-4YWHOAB4.js +201 -0
- package/dist/chunk-52XGYRVS.js +155 -0
- package/dist/chunk-5G6UHUJZ.js +43 -0
- package/dist/chunk-5HFITPHH.js +229 -0
- package/dist/chunk-5LVVN2K7.js +650 -0
- package/dist/chunk-5PVXFVIT.js +48 -0
- package/dist/chunk-5WFGW7B7.js +187 -0
- package/dist/chunk-5YMSLKJP.js +92 -0
- package/dist/chunk-5YMSLKJP.js.map +1 -0
- package/dist/chunk-66M7RVM6.js +3070 -0
- package/dist/chunk-6AGNZI2W.js +437 -0
- package/dist/chunk-6ENO634Y.js +373 -0
- package/dist/chunk-6LQ5KEMP.js +200 -0
- package/dist/chunk-6QGIWLH5.js +428 -0
- package/dist/chunk-6WEDWD4N.js +170 -0
- package/dist/chunk-6YCYPXDA.js +114 -0
- package/dist/chunk-6YTNMDFP.js +318 -0
- package/dist/chunk-73O7NO3F.js +50 -0
- package/dist/chunk-76VXLTQF.js +251 -0
- package/dist/chunk-7EJ7PSZT.js +93 -0
- package/dist/chunk-7GS2MGFU.js +27 -0
- package/dist/chunk-7MF6MFHS.js +406 -0
- package/dist/chunk-7N35XBSC.js +386 -0
- package/dist/chunk-7ND2VMKV.js +270 -0
- package/dist/chunk-7RVJLO3N.js +154 -0
- package/dist/chunk-7VAILBP6.js +353 -0
- package/dist/chunk-7VSJQWFO.js +37 -0
- package/dist/chunk-7YKUIKGH.js +335 -0
- package/dist/chunk-A7DS77WC.js +138 -0
- package/dist/chunk-ABGHRGID.js +376 -0
- package/dist/chunk-ABGHRGID.js.map +1 -0
- package/dist/chunk-AEH34OOU.js +298 -0
- package/dist/chunk-ANWMRO2G.js +554 -0
- package/dist/chunk-APGUIORF.js +247 -0
- package/dist/chunk-ASCVQJB4.js +1309 -0
- package/dist/chunk-AVYFJKQS.js +10044 -0
- package/dist/chunk-AVYFJKQS.js.map +1 -0
- package/dist/chunk-AY4XH73V.js +1333 -0
- package/dist/chunk-B6AH43UQ.js +2434 -0
- package/dist/chunk-BBZUHH4F.js +154 -0
- package/dist/chunk-BBZUHH4F.js.map +1 -0
- package/dist/chunk-BGT43KDL.js +42 -0
- package/dist/chunk-BHS4KW4W.js +3851 -0
- package/dist/chunk-BJUDGPOD.js +1803 -0
- package/dist/chunk-BJUDGPOD.js.map +1 -0
- package/dist/chunk-BNWO72C2.js +851 -0
- package/dist/chunk-BSPIASSQ.js +2551 -0
- package/dist/chunk-BVWJEZXG.js +230 -0
- package/dist/chunk-BZ47G3VP.js +366 -0
- package/dist/chunk-C6KI5P3H.js +72 -0
- package/dist/chunk-CLERWAEA.js +2317 -0
- package/dist/chunk-CNRFFCAE.js +572 -0
- package/dist/chunk-CPC6CYVW.js +236 -0
- package/dist/chunk-D23UAPXK.js +107 -0
- package/dist/chunk-DAPZEB4R.js +29 -0
- package/dist/chunk-DEDEA3WS.js +205 -0
- package/dist/chunk-DHVA3T3K.js +271 -0
- package/dist/chunk-DJQ6TKIP.js +391 -0
- package/dist/chunk-DK2CDAMR.js +33 -0
- package/dist/chunk-DPOB6MUS.js +278 -0
- package/dist/chunk-DSO7S6PZ.js +137 -0
- package/dist/chunk-DV3OECO6.js +333 -0
- package/dist/chunk-DW2IQRMB.js +1187 -0
- package/dist/chunk-DWLPQTDL.js +134 -0
- package/dist/chunk-DXMKECFR.js +3176 -0
- package/dist/chunk-DYQRNIID.js +73 -0
- package/dist/chunk-DZLWO73N.js +129 -0
- package/dist/chunk-DZZSFPMW.js +66 -0
- package/dist/chunk-DZZSFPMW.js.map +1 -0
- package/dist/chunk-E2GNUL64.js +107 -0
- package/dist/chunk-E7XU2KHD.js +192 -0
- package/dist/chunk-ENYULVQW.js +114 -0
- package/dist/chunk-EWHQ3DFM.js +41 -0
- package/dist/chunk-F2T4J7CK.js +4957 -0
- package/dist/chunk-F2T4J7CK.js.map +1 -0
- package/dist/chunk-F3LIUDXN.js +738 -0
- package/dist/chunk-F5C7DTVR.js +103 -0
- package/dist/chunk-F5NFGBIN.js +391 -0
- package/dist/chunk-F6XJLGOV.js +175 -0
- package/dist/chunk-F7T2STMX.js +158 -0
- package/dist/chunk-FAEVOM6B.js +371 -0
- package/dist/chunk-FCFAXQDM.js +276 -0
- package/dist/chunk-FEQVCQMK.js +138 -0
- package/dist/chunk-FLD4VOJW.js +4565 -0
- package/dist/chunk-FLD4VOJW.js.map +1 -0
- package/dist/chunk-FLDF2Z44.js +396 -0
- package/dist/chunk-GADABL3P.js +772 -0
- package/dist/chunk-GFUDB3SA.js +140 -0
- package/dist/chunk-GGPZPBHS.js +215 -0
- package/dist/chunk-GIEGIEMT.js +311 -0
- package/dist/chunk-GKWFQEO3.js +187 -0
- package/dist/chunk-GMMB4NCN.js +250 -0
- package/dist/chunk-GN4FOL2G.js +269 -0
- package/dist/chunk-GQJAMANY.js +469 -0
- package/dist/chunk-H7F4ANJQ.js +379 -0
- package/dist/chunk-HEPFJ3XQ.js +3110 -0
- package/dist/chunk-HLRAQITA.js +234 -0
- package/dist/chunk-HXYSZKCC.js +117 -0
- package/dist/chunk-I5Q6FVHP.js +828 -0
- package/dist/chunk-I7M5BYJU.js +265 -0
- package/dist/chunk-IH3J7VWW.js +85 -0
- package/dist/chunk-IMMDXSZ4.js +178 -0
- package/dist/chunk-IOMZDY5D.js +199 -0
- package/dist/chunk-IQTCUUDF.js +1236 -0
- package/dist/chunk-ISR6KXWT.js +898 -0
- package/dist/chunk-IWPPGXUZ.js +3321 -0
- package/dist/chunk-IYKO6BBK.js +3854 -0
- package/dist/chunk-IYKO6BBK.js.map +1 -0
- package/dist/chunk-IYUZPNMU.js +79 -0
- package/dist/chunk-IYUZPNMU.js.map +1 -0
- package/dist/chunk-JNPCRNPA.js +84 -0
- package/dist/chunk-JSJGGP32.js +505 -0
- package/dist/chunk-JZZUEJYD.js +56 -0
- package/dist/chunk-K5XFZKK5.js +270 -0
- package/dist/chunk-K6GRTSEA.js +65 -0
- package/dist/chunk-KA4PZU3Q.js +103 -0
- package/dist/chunk-KGZ35ESO.js +83 -0
- package/dist/chunk-KRM4PW5N.js +1021 -0
- package/dist/chunk-KSNKF6FE.js +551 -0
- package/dist/chunk-KSNKF6FE.js.map +1 -0
- package/dist/chunk-LEZGGRDQ.js +1095 -0
- package/dist/chunk-LFWMFFKT.js +144 -0
- package/dist/chunk-LKSPUZPH.js +849 -0
- package/dist/chunk-LLX4S6BI.js +401 -0
- package/dist/chunk-M4WEF4DZ.js +850 -0
- package/dist/chunk-MATYGLUT.js +121 -0
- package/dist/chunk-MDI6SH7B.js +27 -0
- package/dist/chunk-MQO7MSA6.js +43 -0
- package/dist/chunk-MQO7MSA6.js.map +1 -0
- package/dist/chunk-MQTYIBY6.js +263 -0
- package/dist/chunk-MRKY2GL5.js +1185 -0
- package/dist/chunk-MSIQ42IY.js +794 -0
- package/dist/chunk-MVGU7BET.js +357 -0
- package/dist/chunk-MWY4TBDY.js +404 -0
- package/dist/chunk-NGQCWCD6.js +234 -0
- package/dist/chunk-NKXMIOYN.js +538 -0
- package/dist/chunk-NMVRFFCR.js +256 -0
- package/dist/chunk-NNTDIKJP.js +407 -0
- package/dist/chunk-NQXCPP4G.js +98 -0
- package/dist/chunk-NYGS6FNV.js +132 -0
- package/dist/chunk-O3LOQDTI.js +176 -0
- package/dist/chunk-O5HRZ2KG.js +818 -0
- package/dist/chunk-O5PZRVQR.js +214 -0
- package/dist/chunk-O6KR5SN7.js +399 -0
- package/dist/chunk-OBKDRV2H.js +259 -0
- package/dist/chunk-OBKKUBGL.js +107 -0
- package/dist/chunk-OFYXDB6I.js +52 -0
- package/dist/chunk-OLMWJGSJ.js +50 -0
- package/dist/chunk-OO7N6APA.js +598 -0
- package/dist/chunk-OO7N6APA.js.map +1 -0
- package/dist/chunk-ORRACKLB.js +1263 -0
- package/dist/chunk-P426WWAB.js +351 -0
- package/dist/chunk-P4GOY3ZL.js +177 -0
- package/dist/chunk-P4KVJLUC.js +129 -0
- package/dist/chunk-P4N7ZS6W.js +56 -0
- package/dist/chunk-P6LSLNSL.js +209 -0
- package/dist/chunk-P7MQCSML.js +77 -0
- package/dist/chunk-P7MQCSML.js.map +1 -0
- package/dist/chunk-PAFSIDM2.js +111 -0
- package/dist/chunk-PC2JAIAH.js +117 -0
- package/dist/chunk-PGSXT5OY.js +207 -0
- package/dist/chunk-QDMGUTOU.js +2984 -0
- package/dist/chunk-QEMDQKQT.js +1356 -0
- package/dist/chunk-QK7VU5N3.js +2412 -0
- package/dist/chunk-QL4Q332Z.js +12 -0
- package/dist/chunk-QL5227KT.js +1184 -0
- package/dist/chunk-QREYGVWO.js +297 -0
- package/dist/chunk-QREYGVWO.js.map +1 -0
- package/dist/chunk-QUFCZMHG.js +114 -0
- package/dist/chunk-QXPKUKOV.js +227 -0
- package/dist/chunk-QZE3KD34.js +441 -0
- package/dist/chunk-RAIUIXCY.js +166 -0
- package/dist/chunk-RDLS6IZY.js +723 -0
- package/dist/chunk-RKPETJDJ.js +175 -0
- package/dist/chunk-RMDLTRLI.js +372 -0
- package/dist/chunk-RR6DQN4X.js +523 -0
- package/dist/chunk-RVPH6BB7.js +218 -0
- package/dist/chunk-RVXLSVJH.js +931 -0
- package/dist/chunk-RVY5EZNU.js +246 -0
- package/dist/chunk-RWHBX4MN.js +1024 -0
- package/dist/chunk-RWHDMGFG.js +214 -0
- package/dist/chunk-RYB3WBMZ.js +113 -0
- package/dist/chunk-S7EO77EE.js +449 -0
- package/dist/chunk-S7J4HBPP.js +584 -0
- package/dist/chunk-SA3XI7FB.js +108 -0
- package/dist/chunk-SKRTCSUL.js +196 -0
- package/dist/chunk-SUWDILUY.js +5089 -0
- package/dist/chunk-SWTPVMR4.js +251 -0
- package/dist/chunk-T5BYEE66.js +191 -0
- package/dist/chunk-T652Q4R6.js +48 -0
- package/dist/chunk-TBUOHK6R.js +608 -0
- package/dist/chunk-TCUAGCAX.js +1628 -0
- package/dist/chunk-TLWH4E3P.js +126 -0
- package/dist/chunk-TNHGSWG3.js +1152 -0
- package/dist/chunk-TO6VBJI3.js +383 -0
- package/dist/chunk-TOL7MOAN.js +162 -0
- package/dist/chunk-U243CBVZ.js +2553 -0
- package/dist/chunk-U2CEPRDH.js +46 -0
- package/dist/chunk-UAZPXKPH.js +3996 -0
- package/dist/chunk-UHRGUMLJ.js +412 -0
- package/dist/chunk-UNDSD6UA.js +131 -0
- package/dist/chunk-USU2SS4V.js +3690 -0
- package/dist/chunk-USWA5GQQ.js +340 -0
- package/dist/chunk-UXGTI4HR.js +184 -0
- package/dist/chunk-UZKAHEQO.js +172 -0
- package/dist/chunk-VALESBNH.js +113 -0
- package/dist/chunk-VMSMVWCJ.js +515 -0
- package/dist/chunk-VPERSFGV.js +158 -0
- package/dist/chunk-VVW2CBWK.js +21 -0
- package/dist/chunk-VVW2CBWK.js.map +1 -0
- package/dist/chunk-VXPY2GF3.js +124 -0
- package/dist/chunk-W7RKXZDV.js +112 -0
- package/dist/chunk-WEGZPK4I.js +532 -0
- package/dist/chunk-WPKY3BGG.js +380 -0
- package/dist/chunk-X3T3N6W5.js +1022 -0
- package/dist/chunk-X4OGMBY6.js +110 -0
- package/dist/chunk-X7ZHIJEI.js +82 -0
- package/dist/chunk-XR7Y2HPZ.js +67 -0
- package/dist/chunk-Y2NMKJ7F.js +57 -0
- package/dist/chunk-Y2QYPJDN.js +26 -0
- package/dist/chunk-Y47EPVCD.js +211 -0
- package/dist/chunk-Y5Q4ETIW.js +162 -0
- package/dist/chunk-YMQVVFXI.js +105 -0
- package/dist/chunk-YQ6FP33X.js +378 -0
- package/dist/chunk-YUA42N5A.js +406 -0
- package/dist/chunk-YXFNW64N.js +91 -0
- package/dist/chunk-Z76RJPZF.js +389 -0
- package/dist/chunk-ZD67RM6G.js +60 -0
- package/dist/chunk-ZE4RD7U5.js +231 -0
- package/dist/chunk-ZGR7LNXC.js +432 -0
- package/dist/chunk-ZNA65Q6Y.js +20 -0
- package/dist/chunk-ZRNK6FK6.js +188 -0
- package/dist/chunk-ZVAIKQMC.js +296 -0
- package/dist/chunk-ZZ3KNGTJ.js +246 -0
- package/dist/components/automations/pasted-webhook-steps.d.ts +29 -0
- package/dist/components/browser-viewer.d.ts +4 -1
- package/dist/components/human-input-form.d.ts +3 -4
- package/dist/components/use-fit-browser-viewport.d.ts +10 -0
- package/dist/composer.js +8 -8
- package/dist/computer-viewer-M5N3GWBR.js +21 -0
- package/dist/connect.js +17 -15
- package/dist/connection-step-up-CNVFVWYO.js +146 -0
- package/dist/connection-step-up-CNVFVWYO.js.map +1 -0
- package/dist/desktop-dictation.js +8 -8
- package/dist/desktop.js +2 -2
- package/dist/editor.js +2 -2
- package/dist/embedded-new-voice-QZJG5DZ3.js +25 -0
- package/dist/embedded-voice-7KOQNGKU.js +25 -0
- package/dist/fleet-decision-row-FJPAWNOQ.js +361 -0
- package/dist/in-chat-connect-model.js +5 -5
- package/dist/index.js +65 -65
- package/dist/interaction.js +5 -5
- package/dist/latest-question-F3VPDR7U.js +124 -0
- package/dist/machines.js +3 -3
- package/dist/meetings-recorder.js +1 -1
- package/dist/meetings.js +20 -20
- package/dist/messages/en.d.ts +1 -1
- package/dist/messages.js +1 -1
- package/dist/model-policy-picker-menu-UNI5B6N6.js +23 -0
- package/dist/model-policy-picker-menu-UNI5B6N6.js.map +1 -0
- package/dist/payment-page-card-HZJVN3F4.js +226 -0
- package/dist/platform-activity-row-NPEGG2VE.js +156 -0
- package/dist/queue-surface-implementation-RTCTPF5T.js +932 -0
- package/dist/realtime.js +4 -4
- package/dist/recorder-host-YPWPLMS6.js +80 -0
- package/dist/recordings.js +3 -3
- package/dist/sandbox-files-BJKCREOU.js +28 -0
- package/dist/sandbox-files-BJKCREOU.js.map +1 -0
- package/dist/session-app.js +242 -241
- package/dist/session-connect-cards-DK3UJZRY.js +27 -0
- package/dist/session-connect-cards-DK3UJZRY.js.map +1 -0
- package/dist/session-list-model.js +2 -2
- package/dist/session-realtime-AKDUKFY4.js +30 -0
- package/dist/session-realtime-AKDUKFY4.js.map +1 -0
- package/dist/session-realtime.js +2 -2
- package/dist/session-ui.js +42 -42
- package/dist/session.js +11 -11
- package/dist/sites.js +2 -2
- package/dist/terminal.js +2 -2
- package/dist/this-computer.js +3 -3
- package/dist/timeline-annotation-markers-7QSYK22C.js +157 -0
- package/dist/timeline-annotation-selection-XYNMESWL.js +208 -0
- package/dist/timeline-annotations-dialog-WSI6L2CP.js +283 -0
- package/dist/timeline-model.js +26 -26
- package/dist/ui/access-list.js +5 -5
- package/dist/ui/cadence-picker.js +5 -5
- package/dist/ui/choice-cards.js +3 -3
- package/dist/ui/confirm-dialog.js +2 -2
- package/dist/ui/copy-field.js +3 -3
- package/dist/ui/detail-page.js +2 -2
- package/dist/ui/detail-sheet.js +2 -2
- package/dist/ui/disclosure.js +3 -3
- package/dist/ui/email-chips-input.js +3 -3
- package/dist/ui/field.js +2 -2
- package/dist/ui/flush-form-page.js +3 -3
- package/dist/ui/form-dialog.js +2 -2
- package/dist/ui/list-row.js +4 -4
- package/dist/ui/relative-time.js +3 -3
- package/dist/ui/revision-history.js +5 -5
- package/dist/ui/role-select.js +5 -5
- package/dist/ui/select-menu.js +3 -3
- package/dist/ui/usage-meter.js +4 -4
- package/dist/usage.js +2 -2
- package/dist/workbench.js +4 -4
- package/package.json +6 -5
- package/src/app/components/agents/agent-skills.tsx +21 -18
- package/src/app/components/agents/agent-trigger-dialog.tsx +80 -119
- package/src/app/components/agents/agent-trigger-model.ts +47 -0
- package/src/app/components/agents/agent-trigger-repositories.tsx +88 -0
- package/src/app/components/agents/agents-page.tsx +118 -38
- package/src/app/components/artifacts/app-server-status.test.tsx +33 -0
- package/src/app/components/artifacts/app-server-status.tsx +93 -0
- package/src/app/components/artifacts/ready-made-apps.tsx +84 -0
- package/src/app/lib/codex-model-switch.ts +1 -0
- package/src/app/lib/needs-you.test.ts +8 -0
- package/src/app/lib/needs-you.tsx +3 -1
- package/src/app/lib/ready-made-apps.tsx +42 -0
- package/src/app/lib/session-capabilities.tsx +1 -0
- package/src/app/routes/artifacts.tsx +11 -0
- package/src/app/routes/site-view.tsx +9 -0
- package/src/automations.ts +8 -2
- package/src/components/automations/pasted-webhook-steps.tsx +89 -0
- package/src/components/browser-viewer.tsx +49 -7
- package/src/components/human-input-form.tsx +16 -5
- package/src/components/secret-question-field.tsx +42 -32
- package/src/components/use-fit-browser-viewport.ts +84 -0
- package/src/messages/en.ts +1 -1
- package/src/timeline/projection.ts +5 -2
- package/src/timeline/tool-steps.ts +2 -0
- package/dist/browser-viewer-EIEMRVFF.js +0 -23
- package/dist/chat-interactive-block-FV37LWYZ.js +0 -22
- package/dist/chunk-2COBAJC7.js +0 -818
- package/dist/chunk-2HS3IUXE.js +0 -170
- package/dist/chunk-2JTMFYCT.js +0 -296
- package/dist/chunk-2JXKP4M6.js +0 -114
- package/dist/chunk-2P5K7CBH.js +0 -269
- package/dist/chunk-2XGRHMRI.js +0 -250
- package/dist/chunk-332BYSAZ.js +0 -65
- package/dist/chunk-3EM5GTP3.js +0 -158
- package/dist/chunk-3L5ATO4A.js +0 -52
- package/dist/chunk-3S3PJB7J.js +0 -107
- package/dist/chunk-3SBKYPNM.js +0 -270
- package/dist/chunk-3Z7VA6ET.js +0 -114
- package/dist/chunk-43BRJBEV.js +0 -207
- package/dist/chunk-46LZO4ZO.js +0 -188
- package/dist/chunk-4AH4EEHE.js +0 -298
- package/dist/chunk-4D3YJNVN.js +0 -270
- package/dist/chunk-4E5QVAT4.js +0 -4480
- package/dist/chunk-4I4RTI4D.js +0 -37
- package/dist/chunk-4KASGJTF.js +0 -287
- package/dist/chunk-4RUKLIOF.js +0 -1263
- package/dist/chunk-4UU7FN3I.js +0 -650
- package/dist/chunk-4ZRNASBF.js +0 -2551
- package/dist/chunk-5EJBPQI2.js +0 -41
- package/dist/chunk-5G4IGG7F.js +0 -209
- package/dist/chunk-5JAYZOAW.js +0 -131
- package/dist/chunk-5JOKVDSR.js +0 -789
- package/dist/chunk-5JOKVDSR.js.map +0 -1
- package/dist/chunk-5MP3G7ZV.js +0 -1236
- package/dist/chunk-5OVRMKP5.js +0 -42
- package/dist/chunk-5SGTRULO.js +0 -1184
- package/dist/chunk-5SOL4INY.js +0 -572
- package/dist/chunk-5Y34P32B.js +0 -27
- package/dist/chunk-62HIKJ5F.js +0 -72
- package/dist/chunk-63VNZRLY.js +0 -386
- package/dist/chunk-63WDQV5X.js +0 -148
- package/dist/chunk-6DOIINY4.js +0 -201
- package/dist/chunk-6DQBUKGJ.js +0 -112
- package/dist/chunk-6SETNFNH.js +0 -1399
- package/dist/chunk-6SETNFNH.js.map +0 -1
- package/dist/chunk-6XYFMHNT.js +0 -56
- package/dist/chunk-6YU3WV2P.js +0 -33
- package/dist/chunk-6YUHDFOZ.js +0 -351
- package/dist/chunk-72EOXOR7.js +0 -1185
- package/dist/chunk-72ND4ALI.js +0 -532
- package/dist/chunk-757LE32E.js +0 -283
- package/dist/chunk-7S2S4MXR.js +0 -138
- package/dist/chunk-7SYCHMXS.js +0 -200
- package/dist/chunk-7TVAPQOV.js +0 -5089
- package/dist/chunk-7UDLRDHK.js +0 -214
- package/dist/chunk-7YLQCMZP.js +0 -357
- package/dist/chunk-A5GX3CAE.js +0 -849
- package/dist/chunk-A7EBV2EB.js +0 -318
- package/dist/chunk-AB5SPXUR.js +0 -114
- package/dist/chunk-AHVQGL5A.js +0 -202
- package/dist/chunk-AI77ZKEV.js +0 -26
- package/dist/chunk-AIX2D6RB.js +0 -1019
- package/dist/chunk-AVSIHP7Q.js +0 -192
- package/dist/chunk-AWK23Q32.js +0 -107
- package/dist/chunk-AYM3UFP2.js +0 -43
- package/dist/chunk-AYM3UFP2.js.map +0 -1
- package/dist/chunk-AYVWA6KD.js +0 -432
- package/dist/chunk-AYVWA6KD.js.map +0 -1
- package/dist/chunk-AYZXE4IM.js +0 -2553
- package/dist/chunk-AZGGSPTE.js +0 -124
- package/dist/chunk-B45TB4HY.js +0 -931
- package/dist/chunk-BC7PTVXW.js +0 -140
- package/dist/chunk-BIUJHNVR.js +0 -46
- package/dist/chunk-BJUOKUE5.js +0 -234
- package/dist/chunk-BMT5IXQW.js +0 -154
- package/dist/chunk-BMT5IXQW.js.map +0 -1
- package/dist/chunk-BPEEVMKH.js +0 -292
- package/dist/chunk-BXMND6YU.js +0 -307
- package/dist/chunk-C6OM2SRG.js +0 -117
- package/dist/chunk-CIRCUDKF.js +0 -1309
- package/dist/chunk-CLKR4UG3.js +0 -403
- package/dist/chunk-CPX6BHER.js +0 -554
- package/dist/chunk-CVC4RO7D.js +0 -155
- package/dist/chunk-D3YJAQGK.js +0 -103
- package/dist/chunk-DFQ72BLS.js +0 -1024
- package/dist/chunk-DG65PJOZ.js +0 -4564
- package/dist/chunk-DG65PJOZ.js.map +0 -1
- package/dist/chunk-DNAXAS5R.js +0 -406
- package/dist/chunk-DO247ITS.js +0 -175
- package/dist/chunk-DONBARLL.js +0 -154
- package/dist/chunk-DTLXQ3ZU.js +0 -373
- package/dist/chunk-EAXTACI4.js +0 -274
- package/dist/chunk-EDPH7AJH.js +0 -412
- package/dist/chunk-EER3B3G5.js +0 -10036
- package/dist/chunk-EER3B3G5.js.map +0 -1
- package/dist/chunk-EFKQHCGJ.js +0 -276
- package/dist/chunk-EILSPMVD.js +0 -133
- package/dist/chunk-EMWT6GOK.js +0 -437
- package/dist/chunk-EO22NST7.js +0 -259
- package/dist/chunk-ER5MYLIE.js +0 -256
- package/dist/chunk-ES5HKVQF.js +0 -234
- package/dist/chunk-EXRQ5ATC.js +0 -738
- package/dist/chunk-F26YBYAZ.js +0 -111
- package/dist/chunk-F6QP4GSK.js +0 -515
- package/dist/chunk-F7QEO7M2.js +0 -851
- package/dist/chunk-FJFGDLXB.js +0 -12
- package/dist/chunk-FLLJ2WXW.js +0 -113
- package/dist/chunk-FMBJKMT4.js +0 -107
- package/dist/chunk-FPN4I4CG.js +0 -3690
- package/dist/chunk-FUXFJTXL.js +0 -3070
- package/dist/chunk-FZI4QOAV.js +0 -3996
- package/dist/chunk-G6SSSX5R.js +0 -158
- package/dist/chunk-GBGCMHBB.js +0 -608
- package/dist/chunk-GJ4GTYOD.js +0 -372
- package/dist/chunk-GLSDWNFV.js +0 -432
- package/dist/chunk-GMGAW3T6.js +0 -278
- package/dist/chunk-GNGI6XFN.js +0 -43
- package/dist/chunk-GSW4YHZE.js +0 -229
- package/dist/chunk-GUC6IWEY.js +0 -407
- package/dist/chunk-GWAY3SO5.js +0 -15
- package/dist/chunk-GXOTNT5D.js +0 -168
- package/dist/chunk-GZZCVF76.js +0 -3851
- package/dist/chunk-H4VMHFOX.js +0 -214
- package/dist/chunk-HA5RFQAF.js +0 -110
- package/dist/chunk-HJLHGXWL.js +0 -103
- package/dist/chunk-HKNMNL7B.js +0 -2984
- package/dist/chunk-HT7MBHLY.js +0 -1021
- package/dist/chunk-I5FSUZVW.js +0 -584
- package/dist/chunk-II376XH3.js +0 -117
- package/dist/chunk-IINQO425.js +0 -246
- package/dist/chunk-IIXNEOK4.js +0 -1022
- package/dist/chunk-IM3WA5AL.js +0 -311
- package/dist/chunk-IX4P4OGR.js +0 -399
- package/dist/chunk-IX5VHZYS.js +0 -129
- package/dist/chunk-J7QHW2KS.js +0 -549
- package/dist/chunk-J7QHW2KS.js.map +0 -1
- package/dist/chunk-JB3TSUZO.js +0 -263
- package/dist/chunk-JD6LHU26.js +0 -3852
- package/dist/chunk-JD6LHU26.js.map +0 -1
- package/dist/chunk-JIC6RLUB.js +0 -27
- package/dist/chunk-JNJIZCTN.js +0 -172
- package/dist/chunk-JNV5ZPUV.js +0 -828
- package/dist/chunk-JPQFVR24.js +0 -50
- package/dist/chunk-JPZVMXDP.js +0 -1333
- package/dist/chunk-JVPF34MX.js +0 -215
- package/dist/chunk-KED67KAF.js +0 -85
- package/dist/chunk-KJ72GMZ2.js +0 -378
- package/dist/chunk-KVPQUADA.js +0 -5915
- package/dist/chunk-KVPQUADA.js.map +0 -1
- package/dist/chunk-KXBLLFOO.js +0 -249
- package/dist/chunk-LIOZ2MXJ.js +0 -380
- package/dist/chunk-LPEFULJY.js +0 -73
- package/dist/chunk-LRMGPO7E.js +0 -98
- package/dist/chunk-LVKTKORH.js +0 -121
- package/dist/chunk-MFVUNNFN.js +0 -205
- package/dist/chunk-MIUJ3EH5.js +0 -60
- package/dist/chunk-MIUMNTIJ.js +0 -175
- package/dist/chunk-ML46TXRM.js +0 -113
- package/dist/chunk-MQRHTOQ2.js +0 -218
- package/dist/chunk-NIPON7YB.js +0 -850
- package/dist/chunk-NPBEUU22.js +0 -196
- package/dist/chunk-NSXKGS2K.js +0 -178
- package/dist/chunk-NUEFORM6.js +0 -2317
- package/dist/chunk-NZOFNQNC.js +0 -176
- package/dist/chunk-OATXCLTY.js +0 -211
- package/dist/chunk-OG3ELROW.js +0 -538
- package/dist/chunk-OI4WS7FW.js +0 -162
- package/dist/chunk-OITGZUDC.js +0 -82
- package/dist/chunk-OKD2LBMK.js +0 -333
- package/dist/chunk-OSA4CGST.js +0 -134
- package/dist/chunk-OXYAKUFU.js +0 -401
- package/dist/chunk-OYMSMU5O.js +0 -396
- package/dist/chunk-P4NZ72KY.js +0 -162
- package/dist/chunk-PBYL2VIM.js +0 -379
- package/dist/chunk-PDW3OOSZ.js +0 -505
- package/dist/chunk-PGRKTQIW.js +0 -523
- package/dist/chunk-Q273Q33U.js +0 -166
- package/dist/chunk-Q4CLS2HL.js +0 -340
- package/dist/chunk-QFOBUA2J.js +0 -428
- package/dist/chunk-QLIM4D56.js +0 -1095
- package/dist/chunk-QMQF5U2D.js +0 -20
- package/dist/chunk-QPOUPVPD.js +0 -144
- package/dist/chunk-QTJAQ6DS.js +0 -48
- package/dist/chunk-QUOFP3G7.js +0 -404
- package/dist/chunk-QVOTPOXK.js +0 -29
- package/dist/chunk-QYZ5RVGM.js +0 -184
- package/dist/chunk-R7CVDKRN.js +0 -2580
- package/dist/chunk-RB7MXNZD.js +0 -639
- package/dist/chunk-RDZQFZOQ.js +0 -187
- package/dist/chunk-RIHKEGWS.js +0 -194
- package/dist/chunk-RIHKEGWS.js.map +0 -1
- package/dist/chunk-ROSB7GF6.js +0 -57
- package/dist/chunk-RP3YMYCX.js +0 -723
- package/dist/chunk-RPHXJHNX.js +0 -271
- package/dist/chunk-RVC3M66H.js +0 -191
- package/dist/chunk-S3OTJAAC.js +0 -283
- package/dist/chunk-SBWPMVRN.js +0 -56
- package/dist/chunk-SERECSAR.js +0 -138
- package/dist/chunk-SHSEF3GJ.js +0 -187
- package/dist/chunk-SMS2M3RG.js +0 -772
- package/dist/chunk-SRDHDIRQ.js +0 -177
- package/dist/chunk-SXRYA7NN.js +0 -389
- package/dist/chunk-SYA3WYG4.js +0 -1187
- package/dist/chunk-T2QDSTBH.js +0 -371
- package/dist/chunk-TFSCGFYV.js +0 -251
- package/dist/chunk-TGCKZOSX.js +0 -246
- package/dist/chunk-THILLYQM.js +0 -132
- package/dist/chunk-TI6LGUEZ.js +0 -2412
- package/dist/chunk-TSY6YZL2.js +0 -366
- package/dist/chunk-TW2RHTLH.js +0 -3321
- package/dist/chunk-TWA5G277.js +0 -141
- package/dist/chunk-TZZ2S4XI.js +0 -247
- package/dist/chunk-UECD27LX.js +0 -251
- package/dist/chunk-UFJDETKG.js +0 -108
- package/dist/chunk-UHBIXNRW.js +0 -100
- package/dist/chunk-UHCFYX4I.js +0 -570
- package/dist/chunk-UHTURYJO.js +0 -898
- package/dist/chunk-UJH63JT3.js +0 -67
- package/dist/chunk-UMLPIMGW.js +0 -105
- package/dist/chunk-UOLDS6S5.js +0 -1152
- package/dist/chunk-UUE3OGXI.js +0 -84
- package/dist/chunk-UUNJ2E57.js +0 -391
- package/dist/chunk-UYQVWRAH.js +0 -199
- package/dist/chunk-UYWWUEL4.js +0 -126
- package/dist/chunk-V4CQKX5H.js +0 -48
- package/dist/chunk-V4QM7GDQ.js +0 -3176
- package/dist/chunk-V5Y74WII.js +0 -91
- package/dist/chunk-VGGZLUQK.js +0 -129
- package/dist/chunk-VGX636MB.js +0 -311
- package/dist/chunk-VGZLFQO2.js +0 -773
- package/dist/chunk-VJWZATNF.js +0 -137
- package/dist/chunk-VMWCIC2N.js +0 -50
- package/dist/chunk-VPWKTIU5.js +0 -227
- package/dist/chunk-VXOLG6YB.js +0 -469
- package/dist/chunk-W2NAU5VB.js +0 -1628
- package/dist/chunk-WGORKMR3.js +0 -353
- package/dist/chunk-WMIDELSJ.js +0 -391
- package/dist/chunk-WSOSGL2G.js +0 -383
- package/dist/chunk-WXUUOM4X.js +0 -400
- package/dist/chunk-WZ74QHLE.js +0 -4863
- package/dist/chunk-WZ74QHLE.js.map +0 -1
- package/dist/chunk-X2OWM2ME.js +0 -1870
- package/dist/chunk-X2OWM2ME.js.map +0 -1
- package/dist/chunk-XDXKB25W.js +0 -93
- package/dist/chunk-XE4PHI74.js +0 -231
- package/dist/chunk-XLJ4SQFS.js +0 -230
- package/dist/chunk-XOD4FX6M.js +0 -2434
- package/dist/chunk-XODQ2GPF.js +0 -3110
- package/dist/chunk-XT54RTAM.js +0 -441
- package/dist/chunk-YDQHFJM2.js +0 -83
- package/dist/chunk-YH6O6OQ6.js +0 -1356
- package/dist/chunk-YIKPC2QP.js +0 -794
- package/dist/chunk-ZD7PKYC4.js +0 -335
- package/dist/chunk-ZEQYHEWP.js +0 -406
- package/dist/chunk-ZRVUCTSI.js +0 -265
- package/dist/chunk-ZSI3ITRK.js +0 -449
- package/dist/chunk-ZZMEQCIZ.js +0 -236
- package/dist/computer-viewer-ZBY3BPYW.js +0 -21
- package/dist/connection-step-up-JQ4OFSQN.js +0 -145
- package/dist/connection-step-up-JQ4OFSQN.js.map +0 -1
- package/dist/embedded-new-voice-ZB5XLKLU.js +0 -25
- package/dist/embedded-voice-MZJISDCS.js +0 -25
- package/dist/fleet-decision-row-LG3SYVR3.js +0 -361
- package/dist/latest-question-QWJTXMFA.js +0 -124
- package/dist/model-policy-picker-menu-5Y72PLNF.js +0 -23
- package/dist/payment-page-card-YPSXRHBA.js +0 -226
- package/dist/platform-activity-row-ZU4MEBNK.js +0 -156
- package/dist/queue-surface-implementation-6Q25RPH6.js +0 -932
- package/dist/recorder-host-JD4GWJ2Z.js +0 -80
- package/dist/sandbox-files-HCLEEJMU.js +0 -28
- package/dist/session-connect-cards-DRKEN3Z4.js +0 -27
- package/dist/session-realtime-IZOTTRH6.js +0 -30
- package/dist/timeline-annotation-markers-WWXNJOXI.js +0 -157
- package/dist/timeline-annotation-selection-ZKRIQFIQ.js +0 -208
- package/dist/timeline-annotations-dialog-4IMKTOXJ.js +0 -283
- /package/dist/{browser-viewer-EIEMRVFF.js.map → app/components/agents/agent-trigger-repositories.js.map} +0 -0
- /package/dist/{chat-interactive-block-FV37LWYZ.js.map → app/components/artifacts/app-server-status.js.map} +0 -0
- /package/dist/{computer-viewer-ZBY3BPYW.js.map → app/components/artifacts/ready-made-apps.js.map} +0 -0
- /package/dist/{embedded-new-voice-ZB5XLKLU.js.map → app/lib/ready-made-apps.js.map} +0 -0
- /package/dist/{embedded-voice-MZJISDCS.js.map → browser-viewer-EPGAK2W6.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-5Y72PLNF.js.map → chat-interactive-block-65YU6TMO.js.map} +0 -0
- /package/dist/{chunk-CLKR4UG3.js.map → chunk-25ODMMHH.js.map} +0 -0
- /package/dist/{chunk-WXUUOM4X.js.map → chunk-266ZPUMH.js.map} +0 -0
- /package/dist/{chunk-GXOTNT5D.js.map → chunk-2A7SB7UR.js.map} +0 -0
- /package/dist/{chunk-UHBIXNRW.js.map → chunk-2EU4Y7A7.js.map} +0 -0
- /package/dist/{chunk-UHCFYX4I.js.map → chunk-2LBYEHBH.js.map} +0 -0
- /package/dist/{chunk-TWA5G277.js.map → chunk-2MHIIF4N.js.map} +0 -0
- /package/dist/{chunk-757LE32E.js.map → chunk-2SHWGDAA.js.map} +0 -0
- /package/dist/{chunk-VGZLFQO2.js.map → chunk-2VX42S4W.js.map} +0 -0
- /package/dist/{chunk-VGX636MB.js.map → chunk-2WGJQ4XK.js.map} +0 -0
- /package/dist/{chunk-GWAY3SO5.js.map → chunk-2XSF44TY.js.map} +0 -0
- /package/dist/{chunk-RB7MXNZD.js.map → chunk-33HUZMNE.js.map} +0 -0
- /package/dist/{chunk-63WDQV5X.js.map → chunk-36IKHM4Q.js.map} +0 -0
- /package/dist/{chunk-4E5QVAT4.js.map → chunk-3JVQZAXQ.js.map} +0 -0
- /package/dist/{chunk-4KASGJTF.js.map → chunk-3SDESU6U.js.map} +0 -0
- /package/dist/{chunk-BPEEVMKH.js.map → chunk-3VXZFBP6.js.map} +0 -0
- /package/dist/{chunk-BXMND6YU.js.map → chunk-3YKED2ZV.js.map} +0 -0
- /package/dist/{chunk-AIX2D6RB.js.map → chunk-3ZNOKD3S.js.map} +0 -0
- /package/dist/{chunk-R7CVDKRN.js.map → chunk-45SB4UK3.js.map} +0 -0
- /package/dist/{chunk-EILSPMVD.js.map → chunk-47BETTVA.js.map} +0 -0
- /package/dist/{chunk-EAXTACI4.js.map → chunk-4BTQ473O.js.map} +0 -0
- /package/dist/{chunk-KXBLLFOO.js.map → chunk-4JQRWJVR.js.map} +0 -0
- /package/dist/{chunk-AHVQGL5A.js.map → chunk-4R6WFQKZ.js.map} +0 -0
- /package/dist/{chunk-S3OTJAAC.js.map → chunk-4WEPVL7X.js.map} +0 -0
- /package/dist/{chunk-6DOIINY4.js.map → chunk-4YWHOAB4.js.map} +0 -0
- /package/dist/{chunk-CVC4RO7D.js.map → chunk-52XGYRVS.js.map} +0 -0
- /package/dist/{chunk-GNGI6XFN.js.map → chunk-5G6UHUJZ.js.map} +0 -0
- /package/dist/{chunk-GSW4YHZE.js.map → chunk-5HFITPHH.js.map} +0 -0
- /package/dist/{chunk-4UU7FN3I.js.map → chunk-5LVVN2K7.js.map} +0 -0
- /package/dist/{chunk-V4CQKX5H.js.map → chunk-5PVXFVIT.js.map} +0 -0
- /package/dist/{chunk-RDZQFZOQ.js.map → chunk-5WFGW7B7.js.map} +0 -0
- /package/dist/{chunk-FUXFJTXL.js.map → chunk-66M7RVM6.js.map} +0 -0
- /package/dist/{chunk-EMWT6GOK.js.map → chunk-6AGNZI2W.js.map} +0 -0
- /package/dist/{chunk-DTLXQ3ZU.js.map → chunk-6ENO634Y.js.map} +0 -0
- /package/dist/{chunk-7SYCHMXS.js.map → chunk-6LQ5KEMP.js.map} +0 -0
- /package/dist/{chunk-QFOBUA2J.js.map → chunk-6QGIWLH5.js.map} +0 -0
- /package/dist/{chunk-2HS3IUXE.js.map → chunk-6WEDWD4N.js.map} +0 -0
- /package/dist/{chunk-AB5SPXUR.js.map → chunk-6YCYPXDA.js.map} +0 -0
- /package/dist/{chunk-A7EBV2EB.js.map → chunk-6YTNMDFP.js.map} +0 -0
- /package/dist/{chunk-JPQFVR24.js.map → chunk-73O7NO3F.js.map} +0 -0
- /package/dist/{chunk-UECD27LX.js.map → chunk-76VXLTQF.js.map} +0 -0
- /package/dist/{chunk-XDXKB25W.js.map → chunk-7EJ7PSZT.js.map} +0 -0
- /package/dist/{chunk-JIC6RLUB.js.map → chunk-7GS2MGFU.js.map} +0 -0
- /package/dist/{chunk-DNAXAS5R.js.map → chunk-7MF6MFHS.js.map} +0 -0
- /package/dist/{chunk-63VNZRLY.js.map → chunk-7N35XBSC.js.map} +0 -0
- /package/dist/{chunk-3SBKYPNM.js.map → chunk-7ND2VMKV.js.map} +0 -0
- /package/dist/{chunk-DONBARLL.js.map → chunk-7RVJLO3N.js.map} +0 -0
- /package/dist/{chunk-WGORKMR3.js.map → chunk-7VAILBP6.js.map} +0 -0
- /package/dist/{chunk-4I4RTI4D.js.map → chunk-7VSJQWFO.js.map} +0 -0
- /package/dist/{chunk-ZD7PKYC4.js.map → chunk-7YKUIKGH.js.map} +0 -0
- /package/dist/{chunk-SERECSAR.js.map → chunk-A7DS77WC.js.map} +0 -0
- /package/dist/{chunk-4AH4EEHE.js.map → chunk-AEH34OOU.js.map} +0 -0
- /package/dist/{chunk-CPX6BHER.js.map → chunk-ANWMRO2G.js.map} +0 -0
- /package/dist/{chunk-TZZ2S4XI.js.map → chunk-APGUIORF.js.map} +0 -0
- /package/dist/{chunk-CIRCUDKF.js.map → chunk-ASCVQJB4.js.map} +0 -0
- /package/dist/{chunk-JPZVMXDP.js.map → chunk-AY4XH73V.js.map} +0 -0
- /package/dist/{chunk-XOD4FX6M.js.map → chunk-B6AH43UQ.js.map} +0 -0
- /package/dist/{chunk-5OVRMKP5.js.map → chunk-BGT43KDL.js.map} +0 -0
- /package/dist/{chunk-GZZCVF76.js.map → chunk-BHS4KW4W.js.map} +0 -0
- /package/dist/{chunk-F7QEO7M2.js.map → chunk-BNWO72C2.js.map} +0 -0
- /package/dist/{chunk-4ZRNASBF.js.map → chunk-BSPIASSQ.js.map} +0 -0
- /package/dist/{chunk-XLJ4SQFS.js.map → chunk-BVWJEZXG.js.map} +0 -0
- /package/dist/{chunk-TSY6YZL2.js.map → chunk-BZ47G3VP.js.map} +0 -0
- /package/dist/{chunk-62HIKJ5F.js.map → chunk-C6KI5P3H.js.map} +0 -0
- /package/dist/{chunk-NUEFORM6.js.map → chunk-CLERWAEA.js.map} +0 -0
- /package/dist/{chunk-5SOL4INY.js.map → chunk-CNRFFCAE.js.map} +0 -0
- /package/dist/{chunk-ZZMEQCIZ.js.map → chunk-CPC6CYVW.js.map} +0 -0
- /package/dist/{chunk-FMBJKMT4.js.map → chunk-D23UAPXK.js.map} +0 -0
- /package/dist/{chunk-QVOTPOXK.js.map → chunk-DAPZEB4R.js.map} +0 -0
- /package/dist/{chunk-MFVUNNFN.js.map → chunk-DEDEA3WS.js.map} +0 -0
- /package/dist/{chunk-RPHXJHNX.js.map → chunk-DHVA3T3K.js.map} +0 -0
- /package/dist/{chunk-UUNJ2E57.js.map → chunk-DJQ6TKIP.js.map} +0 -0
- /package/dist/{chunk-6YU3WV2P.js.map → chunk-DK2CDAMR.js.map} +0 -0
- /package/dist/{chunk-GMGAW3T6.js.map → chunk-DPOB6MUS.js.map} +0 -0
- /package/dist/{chunk-VJWZATNF.js.map → chunk-DSO7S6PZ.js.map} +0 -0
- /package/dist/{chunk-OKD2LBMK.js.map → chunk-DV3OECO6.js.map} +0 -0
- /package/dist/{chunk-SYA3WYG4.js.map → chunk-DW2IQRMB.js.map} +0 -0
- /package/dist/{chunk-OSA4CGST.js.map → chunk-DWLPQTDL.js.map} +0 -0
- /package/dist/{chunk-V4QM7GDQ.js.map → chunk-DXMKECFR.js.map} +0 -0
- /package/dist/{chunk-LPEFULJY.js.map → chunk-DYQRNIID.js.map} +0 -0
- /package/dist/{chunk-VGGZLUQK.js.map → chunk-DZLWO73N.js.map} +0 -0
- /package/dist/{chunk-AWK23Q32.js.map → chunk-E2GNUL64.js.map} +0 -0
- /package/dist/{chunk-AVSIHP7Q.js.map → chunk-E7XU2KHD.js.map} +0 -0
- /package/dist/{chunk-2JXKP4M6.js.map → chunk-ENYULVQW.js.map} +0 -0
- /package/dist/{chunk-5EJBPQI2.js.map → chunk-EWHQ3DFM.js.map} +0 -0
- /package/dist/{chunk-EXRQ5ATC.js.map → chunk-F3LIUDXN.js.map} +0 -0
- /package/dist/{chunk-D3YJAQGK.js.map → chunk-F5C7DTVR.js.map} +0 -0
- /package/dist/{chunk-WMIDELSJ.js.map → chunk-F5NFGBIN.js.map} +0 -0
- /package/dist/{chunk-DO247ITS.js.map → chunk-F6XJLGOV.js.map} +0 -0
- /package/dist/{chunk-G6SSSX5R.js.map → chunk-F7T2STMX.js.map} +0 -0
- /package/dist/{chunk-T2QDSTBH.js.map → chunk-FAEVOM6B.js.map} +0 -0
- /package/dist/{chunk-EFKQHCGJ.js.map → chunk-FCFAXQDM.js.map} +0 -0
- /package/dist/{chunk-7S2S4MXR.js.map → chunk-FEQVCQMK.js.map} +0 -0
- /package/dist/{chunk-OYMSMU5O.js.map → chunk-FLDF2Z44.js.map} +0 -0
- /package/dist/{chunk-SMS2M3RG.js.map → chunk-GADABL3P.js.map} +0 -0
- /package/dist/{chunk-BC7PTVXW.js.map → chunk-GFUDB3SA.js.map} +0 -0
- /package/dist/{chunk-JVPF34MX.js.map → chunk-GGPZPBHS.js.map} +0 -0
- /package/dist/{chunk-IM3WA5AL.js.map → chunk-GIEGIEMT.js.map} +0 -0
- /package/dist/{chunk-SHSEF3GJ.js.map → chunk-GKWFQEO3.js.map} +0 -0
- /package/dist/{chunk-2XGRHMRI.js.map → chunk-GMMB4NCN.js.map} +0 -0
- /package/dist/{chunk-2P5K7CBH.js.map → chunk-GN4FOL2G.js.map} +0 -0
- /package/dist/{chunk-VXOLG6YB.js.map → chunk-GQJAMANY.js.map} +0 -0
- /package/dist/{chunk-PBYL2VIM.js.map → chunk-H7F4ANJQ.js.map} +0 -0
- /package/dist/{chunk-XODQ2GPF.js.map → chunk-HEPFJ3XQ.js.map} +0 -0
- /package/dist/{chunk-ES5HKVQF.js.map → chunk-HLRAQITA.js.map} +0 -0
- /package/dist/{chunk-II376XH3.js.map → chunk-HXYSZKCC.js.map} +0 -0
- /package/dist/{chunk-JNV5ZPUV.js.map → chunk-I5Q6FVHP.js.map} +0 -0
- /package/dist/{chunk-ZRVUCTSI.js.map → chunk-I7M5BYJU.js.map} +0 -0
- /package/dist/{chunk-KED67KAF.js.map → chunk-IH3J7VWW.js.map} +0 -0
- /package/dist/{chunk-NSXKGS2K.js.map → chunk-IMMDXSZ4.js.map} +0 -0
- /package/dist/{chunk-UYQVWRAH.js.map → chunk-IOMZDY5D.js.map} +0 -0
- /package/dist/{chunk-5MP3G7ZV.js.map → chunk-IQTCUUDF.js.map} +0 -0
- /package/dist/{chunk-UHTURYJO.js.map → chunk-ISR6KXWT.js.map} +0 -0
- /package/dist/{chunk-TW2RHTLH.js.map → chunk-IWPPGXUZ.js.map} +0 -0
- /package/dist/{chunk-UUE3OGXI.js.map → chunk-JNPCRNPA.js.map} +0 -0
- /package/dist/{chunk-PDW3OOSZ.js.map → chunk-JSJGGP32.js.map} +0 -0
- /package/dist/{chunk-SBWPMVRN.js.map → chunk-JZZUEJYD.js.map} +0 -0
- /package/dist/{chunk-4D3YJNVN.js.map → chunk-K5XFZKK5.js.map} +0 -0
- /package/dist/{chunk-332BYSAZ.js.map → chunk-K6GRTSEA.js.map} +0 -0
- /package/dist/{chunk-HJLHGXWL.js.map → chunk-KA4PZU3Q.js.map} +0 -0
- /package/dist/{chunk-YDQHFJM2.js.map → chunk-KGZ35ESO.js.map} +0 -0
- /package/dist/{chunk-HT7MBHLY.js.map → chunk-KRM4PW5N.js.map} +0 -0
- /package/dist/{chunk-QLIM4D56.js.map → chunk-LEZGGRDQ.js.map} +0 -0
- /package/dist/{chunk-QPOUPVPD.js.map → chunk-LFWMFFKT.js.map} +0 -0
- /package/dist/{chunk-A5GX3CAE.js.map → chunk-LKSPUZPH.js.map} +0 -0
- /package/dist/{chunk-OXYAKUFU.js.map → chunk-LLX4S6BI.js.map} +0 -0
- /package/dist/{chunk-NIPON7YB.js.map → chunk-M4WEF4DZ.js.map} +0 -0
- /package/dist/{chunk-LVKTKORH.js.map → chunk-MATYGLUT.js.map} +0 -0
- /package/dist/{chunk-5Y34P32B.js.map → chunk-MDI6SH7B.js.map} +0 -0
- /package/dist/{chunk-JB3TSUZO.js.map → chunk-MQTYIBY6.js.map} +0 -0
- /package/dist/{chunk-72EOXOR7.js.map → chunk-MRKY2GL5.js.map} +0 -0
- /package/dist/{chunk-YIKPC2QP.js.map → chunk-MSIQ42IY.js.map} +0 -0
- /package/dist/{chunk-7YLQCMZP.js.map → chunk-MVGU7BET.js.map} +0 -0
- /package/dist/{chunk-QUOFP3G7.js.map → chunk-MWY4TBDY.js.map} +0 -0
- /package/dist/{chunk-BJUOKUE5.js.map → chunk-NGQCWCD6.js.map} +0 -0
- /package/dist/{chunk-OG3ELROW.js.map → chunk-NKXMIOYN.js.map} +0 -0
- /package/dist/{chunk-ER5MYLIE.js.map → chunk-NMVRFFCR.js.map} +0 -0
- /package/dist/{chunk-GUC6IWEY.js.map → chunk-NNTDIKJP.js.map} +0 -0
- /package/dist/{chunk-LRMGPO7E.js.map → chunk-NQXCPP4G.js.map} +0 -0
- /package/dist/{chunk-THILLYQM.js.map → chunk-NYGS6FNV.js.map} +0 -0
- /package/dist/{chunk-NZOFNQNC.js.map → chunk-O3LOQDTI.js.map} +0 -0
- /package/dist/{chunk-2COBAJC7.js.map → chunk-O5HRZ2KG.js.map} +0 -0
- /package/dist/{chunk-H4VMHFOX.js.map → chunk-O5PZRVQR.js.map} +0 -0
- /package/dist/{chunk-IX4P4OGR.js.map → chunk-O6KR5SN7.js.map} +0 -0
- /package/dist/{chunk-EO22NST7.js.map → chunk-OBKDRV2H.js.map} +0 -0
- /package/dist/{chunk-3S3PJB7J.js.map → chunk-OBKKUBGL.js.map} +0 -0
- /package/dist/{chunk-3L5ATO4A.js.map → chunk-OFYXDB6I.js.map} +0 -0
- /package/dist/{chunk-VMWCIC2N.js.map → chunk-OLMWJGSJ.js.map} +0 -0
- /package/dist/{chunk-4RUKLIOF.js.map → chunk-ORRACKLB.js.map} +0 -0
- /package/dist/{chunk-6YUHDFOZ.js.map → chunk-P426WWAB.js.map} +0 -0
- /package/dist/{chunk-SRDHDIRQ.js.map → chunk-P4GOY3ZL.js.map} +0 -0
- /package/dist/{chunk-IX5VHZYS.js.map → chunk-P4KVJLUC.js.map} +0 -0
- /package/dist/{chunk-6XYFMHNT.js.map → chunk-P4N7ZS6W.js.map} +0 -0
- /package/dist/{chunk-5G4IGG7F.js.map → chunk-P6LSLNSL.js.map} +0 -0
- /package/dist/{chunk-F26YBYAZ.js.map → chunk-PAFSIDM2.js.map} +0 -0
- /package/dist/{chunk-C6OM2SRG.js.map → chunk-PC2JAIAH.js.map} +0 -0
- /package/dist/{chunk-43BRJBEV.js.map → chunk-PGSXT5OY.js.map} +0 -0
- /package/dist/{chunk-HKNMNL7B.js.map → chunk-QDMGUTOU.js.map} +0 -0
- /package/dist/{chunk-YH6O6OQ6.js.map → chunk-QEMDQKQT.js.map} +0 -0
- /package/dist/{chunk-TI6LGUEZ.js.map → chunk-QK7VU5N3.js.map} +0 -0
- /package/dist/{chunk-FJFGDLXB.js.map → chunk-QL4Q332Z.js.map} +0 -0
- /package/dist/{chunk-5SGTRULO.js.map → chunk-QL5227KT.js.map} +0 -0
- /package/dist/{chunk-3Z7VA6ET.js.map → chunk-QUFCZMHG.js.map} +0 -0
- /package/dist/{chunk-VPWKTIU5.js.map → chunk-QXPKUKOV.js.map} +0 -0
- /package/dist/{chunk-XT54RTAM.js.map → chunk-QZE3KD34.js.map} +0 -0
- /package/dist/{chunk-Q273Q33U.js.map → chunk-RAIUIXCY.js.map} +0 -0
- /package/dist/{chunk-RP3YMYCX.js.map → chunk-RDLS6IZY.js.map} +0 -0
- /package/dist/{chunk-MIUMNTIJ.js.map → chunk-RKPETJDJ.js.map} +0 -0
- /package/dist/{chunk-GJ4GTYOD.js.map → chunk-RMDLTRLI.js.map} +0 -0
- /package/dist/{chunk-PGRKTQIW.js.map → chunk-RR6DQN4X.js.map} +0 -0
- /package/dist/{chunk-MQRHTOQ2.js.map → chunk-RVPH6BB7.js.map} +0 -0
- /package/dist/{chunk-B45TB4HY.js.map → chunk-RVXLSVJH.js.map} +0 -0
- /package/dist/{chunk-IINQO425.js.map → chunk-RVY5EZNU.js.map} +0 -0
- /package/dist/{chunk-DFQ72BLS.js.map → chunk-RWHBX4MN.js.map} +0 -0
- /package/dist/{chunk-7UDLRDHK.js.map → chunk-RWHDMGFG.js.map} +0 -0
- /package/dist/{chunk-FLLJ2WXW.js.map → chunk-RYB3WBMZ.js.map} +0 -0
- /package/dist/{chunk-ZSI3ITRK.js.map → chunk-S7EO77EE.js.map} +0 -0
- /package/dist/{chunk-I5FSUZVW.js.map → chunk-S7J4HBPP.js.map} +0 -0
- /package/dist/{chunk-UFJDETKG.js.map → chunk-SA3XI7FB.js.map} +0 -0
- /package/dist/{chunk-NPBEUU22.js.map → chunk-SKRTCSUL.js.map} +0 -0
- /package/dist/{chunk-7TVAPQOV.js.map → chunk-SUWDILUY.js.map} +0 -0
- /package/dist/{chunk-TFSCGFYV.js.map → chunk-SWTPVMR4.js.map} +0 -0
- /package/dist/{chunk-RVC3M66H.js.map → chunk-T5BYEE66.js.map} +0 -0
- /package/dist/{chunk-QTJAQ6DS.js.map → chunk-T652Q4R6.js.map} +0 -0
- /package/dist/{chunk-GBGCMHBB.js.map → chunk-TBUOHK6R.js.map} +0 -0
- /package/dist/{chunk-W2NAU5VB.js.map → chunk-TCUAGCAX.js.map} +0 -0
- /package/dist/{chunk-UYWWUEL4.js.map → chunk-TLWH4E3P.js.map} +0 -0
- /package/dist/{chunk-UOLDS6S5.js.map → chunk-TNHGSWG3.js.map} +0 -0
- /package/dist/{chunk-WSOSGL2G.js.map → chunk-TO6VBJI3.js.map} +0 -0
- /package/dist/{chunk-OI4WS7FW.js.map → chunk-TOL7MOAN.js.map} +0 -0
- /package/dist/{chunk-AYZXE4IM.js.map → chunk-U243CBVZ.js.map} +0 -0
- /package/dist/{chunk-BIUJHNVR.js.map → chunk-U2CEPRDH.js.map} +0 -0
- /package/dist/{chunk-FZI4QOAV.js.map → chunk-UAZPXKPH.js.map} +0 -0
- /package/dist/{chunk-EDPH7AJH.js.map → chunk-UHRGUMLJ.js.map} +0 -0
- /package/dist/{chunk-5JAYZOAW.js.map → chunk-UNDSD6UA.js.map} +0 -0
- /package/dist/{chunk-FPN4I4CG.js.map → chunk-USU2SS4V.js.map} +0 -0
- /package/dist/{chunk-Q4CLS2HL.js.map → chunk-USWA5GQQ.js.map} +0 -0
- /package/dist/{chunk-QYZ5RVGM.js.map → chunk-UXGTI4HR.js.map} +0 -0
- /package/dist/{chunk-JNJIZCTN.js.map → chunk-UZKAHEQO.js.map} +0 -0
- /package/dist/{chunk-ML46TXRM.js.map → chunk-VALESBNH.js.map} +0 -0
- /package/dist/{chunk-F6QP4GSK.js.map → chunk-VMSMVWCJ.js.map} +0 -0
- /package/dist/{chunk-3EM5GTP3.js.map → chunk-VPERSFGV.js.map} +0 -0
- /package/dist/{chunk-AZGGSPTE.js.map → chunk-VXPY2GF3.js.map} +0 -0
- /package/dist/{chunk-6DQBUKGJ.js.map → chunk-W7RKXZDV.js.map} +0 -0
- /package/dist/{chunk-72ND4ALI.js.map → chunk-WEGZPK4I.js.map} +0 -0
- /package/dist/{chunk-LIOZ2MXJ.js.map → chunk-WPKY3BGG.js.map} +0 -0
- /package/dist/{chunk-IIXNEOK4.js.map → chunk-X3T3N6W5.js.map} +0 -0
- /package/dist/{chunk-HA5RFQAF.js.map → chunk-X4OGMBY6.js.map} +0 -0
- /package/dist/{chunk-OITGZUDC.js.map → chunk-X7ZHIJEI.js.map} +0 -0
- /package/dist/{chunk-UJH63JT3.js.map → chunk-XR7Y2HPZ.js.map} +0 -0
- /package/dist/{chunk-ROSB7GF6.js.map → chunk-Y2NMKJ7F.js.map} +0 -0
- /package/dist/{chunk-AI77ZKEV.js.map → chunk-Y2QYPJDN.js.map} +0 -0
- /package/dist/{chunk-OATXCLTY.js.map → chunk-Y47EPVCD.js.map} +0 -0
- /package/dist/{chunk-P4NZ72KY.js.map → chunk-Y5Q4ETIW.js.map} +0 -0
- /package/dist/{chunk-UMLPIMGW.js.map → chunk-YMQVVFXI.js.map} +0 -0
- /package/dist/{chunk-KJ72GMZ2.js.map → chunk-YQ6FP33X.js.map} +0 -0
- /package/dist/{chunk-ZEQYHEWP.js.map → chunk-YUA42N5A.js.map} +0 -0
- /package/dist/{chunk-V5Y74WII.js.map → chunk-YXFNW64N.js.map} +0 -0
- /package/dist/{chunk-SXRYA7NN.js.map → chunk-Z76RJPZF.js.map} +0 -0
- /package/dist/{chunk-MIUJ3EH5.js.map → chunk-ZD67RM6G.js.map} +0 -0
- /package/dist/{chunk-XE4PHI74.js.map → chunk-ZE4RD7U5.js.map} +0 -0
- /package/dist/{chunk-GLSDWNFV.js.map → chunk-ZGR7LNXC.js.map} +0 -0
- /package/dist/{chunk-QMQF5U2D.js.map → chunk-ZNA65Q6Y.js.map} +0 -0
- /package/dist/{chunk-46LZO4ZO.js.map → chunk-ZRNK6FK6.js.map} +0 -0
- /package/dist/{chunk-2JTMFYCT.js.map → chunk-ZVAIKQMC.js.map} +0 -0
- /package/dist/{chunk-TGCKZOSX.js.map → chunk-ZZ3KNGTJ.js.map} +0 -0
- /package/dist/{sandbox-files-HCLEEJMU.js.map → computer-viewer-M5N3GWBR.js.map} +0 -0
- /package/dist/{session-connect-cards-DRKEN3Z4.js.map → embedded-new-voice-QZJG5DZ3.js.map} +0 -0
- /package/dist/{session-realtime-IZOTTRH6.js.map → embedded-voice-7KOQNGKU.js.map} +0 -0
- /package/dist/{fleet-decision-row-LG3SYVR3.js.map → fleet-decision-row-FJPAWNOQ.js.map} +0 -0
- /package/dist/{latest-question-QWJTXMFA.js.map → latest-question-F3VPDR7U.js.map} +0 -0
- /package/dist/{payment-page-card-YPSXRHBA.js.map → payment-page-card-HZJVN3F4.js.map} +0 -0
- /package/dist/{platform-activity-row-ZU4MEBNK.js.map → platform-activity-row-NPEGG2VE.js.map} +0 -0
- /package/dist/{queue-surface-implementation-6Q25RPH6.js.map → queue-surface-implementation-RTCTPF5T.js.map} +0 -0
- /package/dist/{recorder-host-JD4GWJ2Z.js.map → recorder-host-YPWPLMS6.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-WWXNJOXI.js.map → timeline-annotation-markers-7QSYK22C.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-ZKRIQFIQ.js.map → timeline-annotation-selection-XYNMESWL.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-4IMKTOXJ.js.map → timeline-annotations-dialog-WSI6L2CP.js.map} +0 -0
|
@@ -0,0 +1,1152 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
capabilityPresentation
|
|
4
|
+
} from "./chunk-I27KY5KW.js";
|
|
5
|
+
import {
|
|
6
|
+
ownLoginOffHere,
|
|
7
|
+
turnOnOwnLoginHere
|
|
8
|
+
} from "./chunk-SDFG5Q4G.js";
|
|
9
|
+
import {
|
|
10
|
+
ConnectCardMessage,
|
|
11
|
+
attachSessionCapability,
|
|
12
|
+
continueAfterCapabilitySetup,
|
|
13
|
+
sessionUsesCapability
|
|
14
|
+
} from "./chunk-ALLBOTP7.js";
|
|
15
|
+
import {
|
|
16
|
+
workspaceHasNobodyToShareWith
|
|
17
|
+
} from "./chunk-RNC6B4BN.js";
|
|
18
|
+
import {
|
|
19
|
+
useOpenGeniText
|
|
20
|
+
} from "./chunk-2L6B6766.js";
|
|
21
|
+
|
|
22
|
+
// src/hooks/use-connect.ts
|
|
23
|
+
import { useMemo, useSyncExternalStore } from "react";
|
|
24
|
+
function useConnect(controller) {
|
|
25
|
+
const snapshot = useSyncExternalStore(
|
|
26
|
+
controller.subscribe,
|
|
27
|
+
controller.getSnapshot,
|
|
28
|
+
controller.getSnapshot
|
|
29
|
+
);
|
|
30
|
+
const actions = useMemo(
|
|
31
|
+
() => ({
|
|
32
|
+
begin: controller.begin.bind(controller),
|
|
33
|
+
recover: controller.recover.bind(controller),
|
|
34
|
+
refresh: controller.refresh.bind(controller),
|
|
35
|
+
waitForAction: controller.waitForAction.bind(controller),
|
|
36
|
+
advance: controller.advance.bind(controller),
|
|
37
|
+
cancel: controller.cancel.bind(controller)
|
|
38
|
+
}),
|
|
39
|
+
[controller]
|
|
40
|
+
);
|
|
41
|
+
return useMemo(() => ({ ...snapshot, ...actions }), [snapshot, actions]);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// src/connect-setup-model.ts
|
|
45
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
46
|
+
import {
|
|
47
|
+
ConnectPopupClosedError,
|
|
48
|
+
pollConnectAttempt
|
|
49
|
+
} from "@opengeni/connect";
|
|
50
|
+
import { organizationAppApproval as organizationAppApproval2 } from "@opengeni/contracts/connect";
|
|
51
|
+
|
|
52
|
+
// src/connect-sign-in-memory.ts
|
|
53
|
+
import {
|
|
54
|
+
organizationAppApproval
|
|
55
|
+
} from "@opengeni/contracts/connect";
|
|
56
|
+
var REMEMBER_MS = 30 * 24 * 60 * 6e4;
|
|
57
|
+
var browserSignInMemory = {
|
|
58
|
+
read(key) {
|
|
59
|
+
try {
|
|
60
|
+
return localStorage.getItem(key);
|
|
61
|
+
} catch {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
remember(key, value) {
|
|
66
|
+
try {
|
|
67
|
+
localStorage.setItem(key, value);
|
|
68
|
+
} catch {
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
forget(key) {
|
|
72
|
+
try {
|
|
73
|
+
localStorage.removeItem(key);
|
|
74
|
+
} catch {
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
var memoryKey = (workspaceId, providerId) => `opengeni:connect-sign-in:${workspaceId}:${providerId}`;
|
|
79
|
+
function parse(raw) {
|
|
80
|
+
if (!raw) return null;
|
|
81
|
+
try {
|
|
82
|
+
const value = JSON.parse(raw);
|
|
83
|
+
const approval = value.approval;
|
|
84
|
+
if (typeof value.attemptId !== "string" || typeof value.startedAt !== "number" || !approval || typeof approval.appId !== "string" || approval.approvalUrl !== null && typeof approval.approvalUrl !== "string")
|
|
85
|
+
return null;
|
|
86
|
+
if (approval.approvalUrl) {
|
|
87
|
+
const url = new URL(approval.approvalUrl);
|
|
88
|
+
if (url.protocol !== "https:" || url.username || url.password) return null;
|
|
89
|
+
}
|
|
90
|
+
return { attemptId: value.attemptId, startedAt: value.startedAt, approval };
|
|
91
|
+
} catch {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function rememberSignIn(memory, attempt) {
|
|
96
|
+
if (!memory || attempt.nextAction.type !== "authorize") return;
|
|
97
|
+
const approval = organizationAppApproval(
|
|
98
|
+
attempt.nextAction.url,
|
|
99
|
+
attempt.nextAction.organizationApprovalUrl
|
|
100
|
+
);
|
|
101
|
+
if (!approval) return;
|
|
102
|
+
memory.remember(
|
|
103
|
+
memoryKey(attempt.workspaceId, attempt.providerId),
|
|
104
|
+
JSON.stringify({ attemptId: attempt.id, startedAt: Date.now(), approval })
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
function forgetSignIn(memory, attempt) {
|
|
108
|
+
if (!memory) return;
|
|
109
|
+
const key = memoryKey(attempt.workspaceId, attempt.providerId);
|
|
110
|
+
if (parse(memory.read(key))?.attemptId === attempt.id) memory.forget(key);
|
|
111
|
+
}
|
|
112
|
+
function forgetSignInsTo(memory, workspaceId, providerId) {
|
|
113
|
+
memory?.forget(memoryKey(workspaceId, providerId));
|
|
114
|
+
}
|
|
115
|
+
function signInNeverReturned(attempt) {
|
|
116
|
+
if (attempt.error) return false;
|
|
117
|
+
return attempt.state === "expired" || attempt.state === "cancelled" || attempt.state === "requires_user_action" && attempt.nextAction.type === "authorize";
|
|
118
|
+
}
|
|
119
|
+
async function unreturnedSignIn(memory, transport, workspaceId, providerId, options = {}) {
|
|
120
|
+
if (!memory) return null;
|
|
121
|
+
const key = memoryKey(workspaceId, providerId);
|
|
122
|
+
const remembered = parse(memory.read(key));
|
|
123
|
+
if (!remembered || Date.now() - remembered.startedAt > REMEMBER_MS) {
|
|
124
|
+
memory.forget(key);
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
let attempt;
|
|
128
|
+
try {
|
|
129
|
+
attempt = await transport.get(workspaceId, remembered.attemptId, options);
|
|
130
|
+
} catch (failure) {
|
|
131
|
+
const status = failure?.status;
|
|
132
|
+
if (status === 404 || status === 403) memory.forget(key);
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
135
|
+
if (attempt.id !== remembered.attemptId || attempt.providerId !== providerId || !signInNeverReturned(attempt)) {
|
|
136
|
+
memory.forget(key);
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
return remembered.approval;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// src/connect-provider-refusal.ts
|
|
143
|
+
import {
|
|
144
|
+
OAUTH_PROVIDER_REFUSALS,
|
|
145
|
+
oauthProviderErrorDescription,
|
|
146
|
+
oauthProviderRefusal
|
|
147
|
+
} from "@opengeni/contracts/connect";
|
|
148
|
+
import { OpenGeniApiError } from "@opengeni/sdk";
|
|
149
|
+
function refusalText(t, refusal) {
|
|
150
|
+
switch (refusal) {
|
|
151
|
+
case "app_not_allowed":
|
|
152
|
+
return t("sessionMcpCapabilityCard.serviceAllowsApprovedAppsOnly");
|
|
153
|
+
case "app_registration_required":
|
|
154
|
+
return t("sessionMcpCapabilityCard.serviceNeedsAppRegistered");
|
|
155
|
+
case "access_not_accepted":
|
|
156
|
+
return t("sessionMcpCapabilityCard.serviceRefusedTheAccess");
|
|
157
|
+
case "provider_unavailable":
|
|
158
|
+
return t("sessionMcpCapabilityCard.serviceCouldNotFinishSignIn");
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function setupRefusalText(t, failure) {
|
|
162
|
+
if (!(failure instanceof OpenGeniApiError) || !failure.details) return null;
|
|
163
|
+
const details = failure.details;
|
|
164
|
+
const refusal = OAUTH_PROVIDER_REFUSALS.find((value) => value === details.providerRefusal);
|
|
165
|
+
if (refusal) return refusalText(t, refusal);
|
|
166
|
+
const code = typeof details.providerError === "string" ? details.providerError : null;
|
|
167
|
+
const known = oauthProviderRefusal(code);
|
|
168
|
+
if (known) return refusalText(t, known);
|
|
169
|
+
const reason = oauthProviderErrorDescription(details.providerErrorDescription) ?? code;
|
|
170
|
+
return reason ? t("sessionMcpCapabilityCard.serviceSaid", { reason }) : null;
|
|
171
|
+
}
|
|
172
|
+
function signInRefusalText(t, attempt) {
|
|
173
|
+
const refusal = oauthProviderRefusal(attempt?.error?.code);
|
|
174
|
+
return refusal ? refusalText(t, refusal) : null;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// src/connect-setup-model.ts
|
|
178
|
+
var connectSetupStatus = (t) => ({
|
|
179
|
+
ready: t("connectSetup.readyToConnect"),
|
|
180
|
+
requires_user_action: t("connectSetup.authorizeYourAccount"),
|
|
181
|
+
credential_input: t("connectSetup.enterConnectionDetails"),
|
|
182
|
+
provider_wait: t("connectSetup.waitingForAuthorization2"),
|
|
183
|
+
account_selection: t("connectSetup.chooseAnAccount"),
|
|
184
|
+
resource_selection: t("connectSetup.chooseResources"),
|
|
185
|
+
preview: t("connectSetup.chooseTools"),
|
|
186
|
+
installing: t("connectSetup.addingSelectedTools"),
|
|
187
|
+
connected_but_incomplete: t("connectSetup.chooseWhichToolsToAdd"),
|
|
188
|
+
complete: t("connectSetup.connectionReady"),
|
|
189
|
+
cancelled: t("connectSetup.setupCancelled"),
|
|
190
|
+
expired: t("connectSetup.setupExpired"),
|
|
191
|
+
failed: t("connectSetup.setupCouldNotFinish"),
|
|
192
|
+
uncertain: t("connectSetup.setupOutcomeNeedsChecking")
|
|
193
|
+
});
|
|
194
|
+
function isOwnerApprovalPending(attempt) {
|
|
195
|
+
return attempt.error?.code === "owner_approval_pending";
|
|
196
|
+
}
|
|
197
|
+
function isCuratedDefinitionAttempt(attempt) {
|
|
198
|
+
return attempt.completionRequirement === "integration" && !attempt.mcpSetup && (attempt.source === void 0 || attempt.source.kind === "definition");
|
|
199
|
+
}
|
|
200
|
+
function curatedAutoAdvance(attempt) {
|
|
201
|
+
if (!isCuratedDefinitionAttempt(attempt) || attempt.error) return null;
|
|
202
|
+
const next = attempt.nextAction;
|
|
203
|
+
if (attempt.state === "connected_but_incomplete" && next.type === "none")
|
|
204
|
+
return { type: "retry" };
|
|
205
|
+
if (attempt.state === "preview" && next.type === "preview")
|
|
206
|
+
return {
|
|
207
|
+
type: "install",
|
|
208
|
+
previewId: next.previewId,
|
|
209
|
+
contentHash: next.contentHash,
|
|
210
|
+
operationIds: next.operations.map((operation) => operation.id)
|
|
211
|
+
};
|
|
212
|
+
return null;
|
|
213
|
+
}
|
|
214
|
+
function connectSetupContinuesWithoutDialog(attempt, signInStarted) {
|
|
215
|
+
if (attempt.error || ["complete", "cancelled", "expired", "failed", "uncertain"].includes(attempt.state))
|
|
216
|
+
return false;
|
|
217
|
+
if (curatedAutoAdvance(attempt)) return true;
|
|
218
|
+
return signInStarted && ["authorize", "wait"].includes(attempt.nextAction.type);
|
|
219
|
+
}
|
|
220
|
+
async function continueConnectSetup(transport, attempt, options = {}) {
|
|
221
|
+
const signal = options.signal ? { signal: options.signal } : {};
|
|
222
|
+
let current = attempt;
|
|
223
|
+
try {
|
|
224
|
+
for (let step = 0; step < 6; step++) {
|
|
225
|
+
if (current.state === "complete") return current;
|
|
226
|
+
if (current.error) return null;
|
|
227
|
+
const advance = curatedAutoAdvance(current);
|
|
228
|
+
if (advance) {
|
|
229
|
+
try {
|
|
230
|
+
current = await transport.advance(
|
|
231
|
+
current.workspaceId,
|
|
232
|
+
current.id,
|
|
233
|
+
{
|
|
234
|
+
expectedRevision: current.revision,
|
|
235
|
+
idempotencyKey: crypto.randomUUID(),
|
|
236
|
+
action: advance
|
|
237
|
+
},
|
|
238
|
+
signal
|
|
239
|
+
);
|
|
240
|
+
} catch (error) {
|
|
241
|
+
if (!connectStepMayHaveMoved(error)) return null;
|
|
242
|
+
current = await settledConnectAttempt(transport, current, options);
|
|
243
|
+
}
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
if (!["authorize", "wait"].includes(current.nextAction.type)) return null;
|
|
247
|
+
current = await pollConnectAttempt(transport, current.workspaceId, current.id, {
|
|
248
|
+
...signal,
|
|
249
|
+
minimumRevision: current.revision,
|
|
250
|
+
expiresAt: current.expiresAt
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
return current.state === "complete" ? current : null;
|
|
254
|
+
} catch {
|
|
255
|
+
return null;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
function connectStepMayHaveMoved(error) {
|
|
259
|
+
const status = error && typeof error === "object" && "status" in error ? error.status : void 0;
|
|
260
|
+
return typeof status !== "number" || status === 409 || status >= 500;
|
|
261
|
+
}
|
|
262
|
+
async function settledConnectAttempt(transport, attempt, options) {
|
|
263
|
+
const deadline = Date.now() + (options.settleMs ?? 6e4);
|
|
264
|
+
while (true) {
|
|
265
|
+
options.signal?.throwIfAborted();
|
|
266
|
+
const fresh = await transport.get(attempt.workspaceId, attempt.id, {
|
|
267
|
+
...options.signal ? { signal: options.signal } : {}
|
|
268
|
+
});
|
|
269
|
+
if (fresh.id !== attempt.id || fresh.workspaceId !== attempt.workspaceId)
|
|
270
|
+
throw new Error("Connect response scope mismatch");
|
|
271
|
+
if (fresh.revision > attempt.revision) return fresh;
|
|
272
|
+
if (Date.now() >= deadline) throw new Error("Connect setup did not move");
|
|
273
|
+
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
var MICROSOFT_APPROVAL_LINK = /https:\/\/login\.microsoftonline\.com\/[^\s]+/;
|
|
277
|
+
function adminApprovalLink(attempt) {
|
|
278
|
+
const error = attempt.error;
|
|
279
|
+
if (!error || !["admin_consent_required", "provider_denied"].includes(error.code)) return null;
|
|
280
|
+
const match = MICROSOFT_APPROVAL_LINK.exec(error.message)?.[0];
|
|
281
|
+
if (!match) return null;
|
|
282
|
+
try {
|
|
283
|
+
const url = new URL(match);
|
|
284
|
+
if (url.protocol !== "https:" || url.username || url.password) return null;
|
|
285
|
+
return { url: url.toString(), required: error.code === "admin_consent_required" };
|
|
286
|
+
} catch {
|
|
287
|
+
return null;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
function organizationApprovalFor(attempt, unfinished = null) {
|
|
291
|
+
const link = adminApprovalLink(attempt);
|
|
292
|
+
if (link) {
|
|
293
|
+
const appId = new URL(link.url).searchParams.get("client_id");
|
|
294
|
+
return { reason: link.required ? "required" : "possible", url: link.url, appId };
|
|
295
|
+
}
|
|
296
|
+
if (!unfinished || attempt.error || attempt.nextAction.type !== "authorize") return null;
|
|
297
|
+
const current = organizationAppApproval2(attempt.nextAction.url, attempt.nextAction.organizationApprovalUrl) ?? unfinished;
|
|
298
|
+
return { reason: "unfinished", url: current.approvalUrl, appId: current.appId };
|
|
299
|
+
}
|
|
300
|
+
function organizationApprovalMessage(t, approval, serviceName) {
|
|
301
|
+
const service = serviceName?.trim() || t("connectSetup.myWorkAccount");
|
|
302
|
+
if (approval.url) return t("connectSetup.itMessageWithLink", { service, link: approval.url });
|
|
303
|
+
if (approval.appId)
|
|
304
|
+
return t("connectSetup.itMessageWithAppId", { service, appId: approval.appId });
|
|
305
|
+
return null;
|
|
306
|
+
}
|
|
307
|
+
function deviceVerificationUrl(action) {
|
|
308
|
+
if (action.type !== "wait" || !action.verificationUrl) return null;
|
|
309
|
+
try {
|
|
310
|
+
const url = new URL(action.verificationUrl);
|
|
311
|
+
return url.protocol === "https:" && !url.username && !url.password ? action.verificationUrl : null;
|
|
312
|
+
} catch {
|
|
313
|
+
return null;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
var FORM_ACTIONS = /* @__PURE__ */ new Set(["credentials", "select_account", "select_resources", "preview"]);
|
|
317
|
+
function useConnectSetupFlow(controller, options) {
|
|
318
|
+
const t = useOpenGeniText();
|
|
319
|
+
const view = useConnect(controller);
|
|
320
|
+
const [localError, setLocalError] = useState(false);
|
|
321
|
+
const [signInClosed, setSignInClosed] = useState(false);
|
|
322
|
+
const [navigating, setNavigating] = useState(false);
|
|
323
|
+
const [unreturned, setUnreturned] = useState(null);
|
|
324
|
+
const latest = useRef(options);
|
|
325
|
+
latest.current = options;
|
|
326
|
+
const memory = options.signInMemory !== void 0 ? options.signInMemory : options.inChat ? null : browserSignInMemory;
|
|
327
|
+
const autoStep = useRef(null);
|
|
328
|
+
const invoke = useCallback((operation) => {
|
|
329
|
+
setLocalError(false);
|
|
330
|
+
setSignInClosed(false);
|
|
331
|
+
const failed = (failure) => failure instanceof ConnectPopupClosedError ? setSignInClosed(true) : setLocalError(true);
|
|
332
|
+
try {
|
|
333
|
+
void Promise.resolve(operation()).catch(failed);
|
|
334
|
+
} catch (failure) {
|
|
335
|
+
failed(failure);
|
|
336
|
+
}
|
|
337
|
+
}, []);
|
|
338
|
+
const attempt = view.attempt;
|
|
339
|
+
const awaitsSignIn = attempt?.nextAction.type === "authorize";
|
|
340
|
+
useEffect(() => {
|
|
341
|
+
setUnreturned(null);
|
|
342
|
+
if (!attempt || !awaitsSignIn || !memory) return;
|
|
343
|
+
const abort = new AbortController();
|
|
344
|
+
void unreturnedSignIn(memory, controller.transport, attempt.workspaceId, attempt.providerId, {
|
|
345
|
+
signal: abort.signal
|
|
346
|
+
}).then((approval) => {
|
|
347
|
+
if (!abort.signal.aborted) setUnreturned(approval);
|
|
348
|
+
}).catch(() => void 0);
|
|
349
|
+
return () => abort.abort();
|
|
350
|
+
}, [attempt?.id, awaitsSignIn, memory, controller]);
|
|
351
|
+
useEffect(() => {
|
|
352
|
+
if (attempt && !signInNeverReturned(attempt)) forgetSignIn(memory, attempt);
|
|
353
|
+
}, [attempt, memory]);
|
|
354
|
+
useEffect(() => {
|
|
355
|
+
if (!attempt || view.busy || localError || view.error) return;
|
|
356
|
+
const step = `${attempt.id}:${attempt.revision}`;
|
|
357
|
+
if (autoStep.current === step) return;
|
|
358
|
+
const advance = curatedAutoAdvance(attempt);
|
|
359
|
+
if (!advance) return;
|
|
360
|
+
autoStep.current = step;
|
|
361
|
+
invoke(() => view.advance(advance, crypto.randomUUID()));
|
|
362
|
+
}, [attempt, view.busy, localError, view.error]);
|
|
363
|
+
const action = attempt?.nextAction ?? null;
|
|
364
|
+
const awaitingOwner = !!attempt && isOwnerApprovalPending(attempt);
|
|
365
|
+
const autoFinishing = !!attempt && !localError && !view.error && (curatedAutoAdvance(attempt) !== null || attempt.state === "installing" && isCuratedDefinitionAttempt(attempt) && !attempt.error);
|
|
366
|
+
const adminApproval = attempt ? adminApprovalLink(attempt) : null;
|
|
367
|
+
const unfinished = attempt && signInClosed && attempt.nextAction.type === "authorize" ? organizationAppApproval2(
|
|
368
|
+
attempt.nextAction.url,
|
|
369
|
+
attempt.nextAction.organizationApprovalUrl
|
|
370
|
+
) ?? unreturned : unreturned;
|
|
371
|
+
const organizationApproval = attempt ? organizationApprovalFor(attempt, unfinished) : null;
|
|
372
|
+
const terminal = !!attempt && ["complete", "cancelled", "expired"].includes(attempt.state);
|
|
373
|
+
const busy = view.busy || navigating;
|
|
374
|
+
const run = (advance) => {
|
|
375
|
+
if (busy) return;
|
|
376
|
+
const key = crypto.randomUUID();
|
|
377
|
+
invoke(() => view.advance(advance, key));
|
|
378
|
+
};
|
|
379
|
+
return {
|
|
380
|
+
view,
|
|
381
|
+
attempt,
|
|
382
|
+
action,
|
|
383
|
+
busy,
|
|
384
|
+
navigating,
|
|
385
|
+
awaitingOwner,
|
|
386
|
+
autoFinishing,
|
|
387
|
+
adminApproval,
|
|
388
|
+
organizationApproval,
|
|
389
|
+
terminal,
|
|
390
|
+
/** The manual controls (form, sign-in, status and cancel) are shown. */
|
|
391
|
+
interactive: !!attempt && !terminal && !autoFinishing,
|
|
392
|
+
/** The step's controls submit as one form. */
|
|
393
|
+
formStep: !!action && FORM_ACTIONS.has(action.type),
|
|
394
|
+
verificationUrl: action ? deviceVerificationUrl(action) : null,
|
|
395
|
+
offersGitHubRequest: !!attempt && action?.type === "select_account" && attempt.providerId.startsWith("github") && action.accounts.some((account) => account.id === "new"),
|
|
396
|
+
scopeLabel: attempt ? attempt.ownership === "personal" ? t("connectSetup.personalConnection") : t("connectSetup.workspaceConnection") : "",
|
|
397
|
+
scopeDescription: attempt ? attempt.ownership === "personal" ? t("connectSetup.onlyYourWorkCanUse") : t("connectSetup.workInThisWorkspaceCan") : "",
|
|
398
|
+
status: !attempt ? t("connectSetup.chooseAConnectionToBegin") : awaitingOwner ? t("connectSetup.waitingForAnOrganizationOwner") : attempt.mcpSetup && attempt.state === "credential_input" ? t("connectSetup.enterTheRequestedKey") : autoFinishing ? t("connectSetup.finishingSetup") : connectSetupStatus(t)[attempt.state],
|
|
399
|
+
errorText: attempt && (localError || view.error || attempt.error && !awaitingOwner && !adminApproval) ? attempt.error?.code === "source_changed" ? t("connectSetup.theIntegrationSourceChangedReview") : attempt.error?.code === "mcp_verification_failed" ? t("connectSetup.couldNotVerifyThisConnection") : (
|
|
400
|
+
// A service that refused setup says why.
|
|
401
|
+
(view.error ? setupRefusalText(t, view.error) : null) ?? signInRefusalText(t, attempt) ?? (options.inChat ? t("connectSetup.setupCouldNotContinueTryAgain") : t("connectSetup.connectionSetupCouldNotContinue"))
|
|
402
|
+
) : null,
|
|
403
|
+
signInClosed,
|
|
404
|
+
notice: signInClosed ? t("connectSetup.signInWindowClosed") : null,
|
|
405
|
+
submitLabel: action?.type === "preview" ? t("connectSetup.addSelectedTools") : attempt?.mcpSetup && action?.type === "credentials" ? view.busy ? t("connectSetup.verifyingConnection") : t("connectSetup.connect") : t("connectSetup.continue"),
|
|
406
|
+
invoke,
|
|
407
|
+
submitCredentials(values) {
|
|
408
|
+
if (action?.type !== "credentials") return;
|
|
409
|
+
run({ type: "credentials", values });
|
|
410
|
+
},
|
|
411
|
+
selectAccount(accountId) {
|
|
412
|
+
if (busy || action?.type !== "select_account") return;
|
|
413
|
+
if (!action.accounts.some(
|
|
414
|
+
(account) => account.id === accountId && account.status !== "disabled"
|
|
415
|
+
))
|
|
416
|
+
return;
|
|
417
|
+
const key = crypto.randomUUID();
|
|
418
|
+
invoke(async () => {
|
|
419
|
+
const select = latest.current.onSelectAccount;
|
|
420
|
+
if (!select) return view.advance({ type: "account", accountId }, key);
|
|
421
|
+
setNavigating(true);
|
|
422
|
+
try {
|
|
423
|
+
await select(accountId);
|
|
424
|
+
} finally {
|
|
425
|
+
setNavigating(false);
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
},
|
|
429
|
+
selectResources(resourceIds) {
|
|
430
|
+
if (action?.type !== "select_resources" || action.cursor) return;
|
|
431
|
+
run({ type: "resources", resourceIds });
|
|
432
|
+
},
|
|
433
|
+
install(operationIds) {
|
|
434
|
+
if (action?.type !== "preview") return;
|
|
435
|
+
run({
|
|
436
|
+
type: "install",
|
|
437
|
+
previewId: action.previewId,
|
|
438
|
+
contentHash: action.contentHash,
|
|
439
|
+
operationIds
|
|
440
|
+
});
|
|
441
|
+
},
|
|
442
|
+
chooseTools() {
|
|
443
|
+
invoke(() => view.advance({ type: "retry" }, crypto.randomUUID()));
|
|
444
|
+
},
|
|
445
|
+
authorize() {
|
|
446
|
+
if (!attempt) return;
|
|
447
|
+
const snapshot = JSON.parse(JSON.stringify(attempt));
|
|
448
|
+
rememberSignIn(memory, snapshot);
|
|
449
|
+
invoke(() => latest.current.onAuthorize(snapshot));
|
|
450
|
+
},
|
|
451
|
+
refresh() {
|
|
452
|
+
invoke(() => view.refresh());
|
|
453
|
+
},
|
|
454
|
+
cancel() {
|
|
455
|
+
invoke(() => view.cancel(crypto.randomUUID()));
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
// src/components/mcp-capability-connect-flow.ts
|
|
461
|
+
import {
|
|
462
|
+
authorizeConnectAttempt,
|
|
463
|
+
ConnectController,
|
|
464
|
+
ConnectPopupClosedError as ConnectPopupClosedError2
|
|
465
|
+
} from "@opengeni/connect";
|
|
466
|
+
import {
|
|
467
|
+
OpenGeniApiError as OpenGeniApiError2
|
|
468
|
+
} from "@opengeni/sdk";
|
|
469
|
+
import { useEffect as useEffect2, useRef as useRef2, useState as useState2 } from "react";
|
|
470
|
+
|
|
471
|
+
// src/connect-window-host.ts
|
|
472
|
+
import {
|
|
473
|
+
createBrowserConnectNavigation,
|
|
474
|
+
reserveBrowserConnectNavigation
|
|
475
|
+
} from "@opengeni/connect";
|
|
476
|
+
function browserConnectWindowHost(browser) {
|
|
477
|
+
return {
|
|
478
|
+
reserve: () => reserveBrowserConnectNavigation(browser),
|
|
479
|
+
open: () => createBrowserConnectNavigation(browser),
|
|
480
|
+
finishInPopup: true
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
var attemptHint = {
|
|
484
|
+
read(key) {
|
|
485
|
+
try {
|
|
486
|
+
return sessionStorage.getItem(key);
|
|
487
|
+
} catch {
|
|
488
|
+
return null;
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
remember(key, attemptId) {
|
|
492
|
+
try {
|
|
493
|
+
sessionStorage.setItem(key, attemptId);
|
|
494
|
+
} catch {
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
forget(key) {
|
|
498
|
+
try {
|
|
499
|
+
sessionStorage.removeItem(key);
|
|
500
|
+
} catch {
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
// src/mcp-connection-status.ts
|
|
506
|
+
function matchingActiveMcpConnections(item, connections) {
|
|
507
|
+
return matchingMcpConnections(item, connections).filter((entry) => entry.status === "active");
|
|
508
|
+
}
|
|
509
|
+
function matchingMcpConnections(item, connections) {
|
|
510
|
+
const ref = item.connectionRef;
|
|
511
|
+
if (!item.enabled || !ref) return [];
|
|
512
|
+
return connections.filter(
|
|
513
|
+
(entry) => entry.status !== "revoked" && entry.kind === "oauth2" && entry.metadata.mcpUrl === (item.mcpUrl ?? item.endpointUrl) && (ref.subjectScope !== "subject" ? entry.id === ref.connectionId && entry.subjectId === null : entry.subjectId !== null)
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
function mcpConnectionDiscoveryState(t, item, connections) {
|
|
517
|
+
const matching = matchingMcpConnections(item, connections);
|
|
518
|
+
const active = matching.filter((entry) => entry.status === "active");
|
|
519
|
+
if (active.length === 1)
|
|
520
|
+
return { status: "added", label: t("mcpConnectionStatus.connected") };
|
|
521
|
+
if (matching.length > 0)
|
|
522
|
+
return { status: "attention", label: t("mcpConnectionStatus.reviewConnection") };
|
|
523
|
+
return { status: "available", label: t("mcpConnectionStatus.connect") };
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
// src/components/mcp-capability-connect-flow.ts
|
|
527
|
+
import { ADMIN_PASSKEY_STEP_UP_REQUIRED_CODE } from "@opengeni/contracts/managed-sign-in-methods";
|
|
528
|
+
import { organizationAppApproval as organizationAppApproval3 } from "@opengeni/contracts/connect";
|
|
529
|
+
var GOOGLE_DRIVE_MCP_URL = "https://drivemcp.googleapis.com/mcp/v1";
|
|
530
|
+
var PERSONAL_ONLY_MCP_URLS = /* @__PURE__ */ new Set([
|
|
531
|
+
"https://gmailmcp.googleapis.com/mcp/v1",
|
|
532
|
+
GOOGLE_DRIVE_MCP_URL,
|
|
533
|
+
"https://calendarmcp.googleapis.com/mcp/v1"
|
|
534
|
+
]);
|
|
535
|
+
var RESTART_STATES = ["failed", "expired", "cancelled"];
|
|
536
|
+
function personalReconnectTarget(connections, mcpUrl) {
|
|
537
|
+
const logins = connections.filter(
|
|
538
|
+
(entry) => entry.subjectId !== null && entry.kind === "oauth2" && entry.status !== "revoked" && entry.metadata.mcpUrl === mcpUrl
|
|
539
|
+
);
|
|
540
|
+
return logins.length > 1 ? { ambiguous: true } : { ambiguous: false, connectionId: logins[0]?.id };
|
|
541
|
+
}
|
|
542
|
+
function ownLoginToUseHere(accounts, mcpUrl) {
|
|
543
|
+
if (!mcpUrl) return null;
|
|
544
|
+
const logins = accounts.filter(
|
|
545
|
+
(entry) => entry.subjectId !== null && entry.kind === "oauth2" && entry.status === "active" && entry.metadata.mcpUrl === mcpUrl
|
|
546
|
+
);
|
|
547
|
+
return logins.length === 1 ? logins[0] : null;
|
|
548
|
+
}
|
|
549
|
+
function personalOnlyService(item) {
|
|
550
|
+
const url = item?.mcpUrl ?? item?.endpointUrl;
|
|
551
|
+
return !!url && PERSONAL_ONLY_MCP_URLS.has(url);
|
|
552
|
+
}
|
|
553
|
+
function useMcpCapabilityConnect({
|
|
554
|
+
client,
|
|
555
|
+
workspaceId,
|
|
556
|
+
sessionId,
|
|
557
|
+
capabilityId,
|
|
558
|
+
returnUrl,
|
|
559
|
+
windows,
|
|
560
|
+
onConfigured,
|
|
561
|
+
dialogOnly = false,
|
|
562
|
+
onClose,
|
|
563
|
+
personalOnly: configuredPersonalOnly = false,
|
|
564
|
+
reconnectConnectionId,
|
|
565
|
+
adminStepUp
|
|
566
|
+
}) {
|
|
567
|
+
const t = useOpenGeniText();
|
|
568
|
+
const [controller] = useState2(
|
|
569
|
+
() => new ConnectController(client.connectTransport(), workspaceId)
|
|
570
|
+
);
|
|
571
|
+
const view = useConnect(controller);
|
|
572
|
+
const [item, setItem] = useState2(null);
|
|
573
|
+
const [alone, setAlone] = useState2(false);
|
|
574
|
+
const personalOnly = configuredPersonalOnly || personalOnlyService(item) || alone;
|
|
575
|
+
const [expanded, setExpanded] = useState2(dialogOnly);
|
|
576
|
+
const [complete, setComplete] = useState2(false);
|
|
577
|
+
const [connected, setConnected] = useState2(false);
|
|
578
|
+
const [ownLogin, setOwnLogin] = useState2(null);
|
|
579
|
+
const [waiting, setWaiting] = useState2(false);
|
|
580
|
+
const [reconciling, setReconciling] = useState2(false);
|
|
581
|
+
const [busy, setBusy] = useState2(false);
|
|
582
|
+
const [error, setError] = useState2(null);
|
|
583
|
+
const [notice, setNotice] = useState2(null);
|
|
584
|
+
const [stepUp, setStepUp] = useState2(null);
|
|
585
|
+
const [retryFresh, setRetryFresh] = useState2(false);
|
|
586
|
+
const [leftSignIn, setLeftSignIn] = useState2(null);
|
|
587
|
+
const [ownership, setOwnership] = useState2(
|
|
588
|
+
personalOnly ? "personal" : "workspace"
|
|
589
|
+
);
|
|
590
|
+
const offHere = ownership === "personal" ? ownLogin : null;
|
|
591
|
+
const lifetime = useRef2(null);
|
|
592
|
+
const authorization = useRef2(null);
|
|
593
|
+
const operation = useRef2(null);
|
|
594
|
+
const reservedPopup = useRef2(null);
|
|
595
|
+
const steppingUp = useRef2(false);
|
|
596
|
+
const steppedUp = useRef2(false);
|
|
597
|
+
const startKey = useRef2(crypto.randomUUID());
|
|
598
|
+
const advanceKey = useRef2(crypto.randomUUID());
|
|
599
|
+
const startInput = useRef2(null);
|
|
600
|
+
const windowHost = useRef2(windows);
|
|
601
|
+
windowHost.current = windows;
|
|
602
|
+
const hints = windows.hints ?? attemptHint;
|
|
603
|
+
const storageKey = sessionId ? `opengeni:session-connect:${workspaceId}:${sessionId}:${capabilityId}` : `opengeni:workspace-connect:${workspaceId}:${capabilityId}`;
|
|
604
|
+
const current = () => !!lifetime.current && !lifetime.current.signal.aborted;
|
|
605
|
+
const attemptState = view.attempt?.state;
|
|
606
|
+
useEffect2(() => {
|
|
607
|
+
if (attemptState && RESTART_STATES.includes(attemptState)) hints.forget(storageKey);
|
|
608
|
+
}, [attemptState, hints, storageKey]);
|
|
609
|
+
async function load(active = current) {
|
|
610
|
+
const invocation = lifetime.current;
|
|
611
|
+
const [catalog, session] = await Promise.all([
|
|
612
|
+
client.listCapabilities(workspaceId),
|
|
613
|
+
sessionId ? client.getSession(workspaceId, sessionId) : Promise.resolve(null)
|
|
614
|
+
]);
|
|
615
|
+
if (!invocation || invocation.signal.aborted || lifetime.current !== invocation || !active())
|
|
616
|
+
return null;
|
|
617
|
+
let resolved = catalog.items.find((entry) => entry.id === capabilityId);
|
|
618
|
+
if (resolved?.kind === "mcp" && !resolved.enabled && !resolved.authKind) {
|
|
619
|
+
const endpoint = resolved.mcpUrl ?? resolved.endpointUrl;
|
|
620
|
+
if (endpoint) {
|
|
621
|
+
const inspected = await client.inspectMcpAuthentication(workspaceId, endpoint);
|
|
622
|
+
if (invocation.signal.aborted || lifetime.current !== invocation || !active()) return null;
|
|
623
|
+
if (inspected.kind === "oauth2") resolved = { ...resolved, authKind: "oauth2" };
|
|
624
|
+
else if (inspected.kind === "unknown")
|
|
625
|
+
throw new ConnectCardMessage(t("sessionMcpCapabilityCard.couldNotDetermineHowTo"));
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
if (!resolved || resolved.kind !== "mcp" || resolved.authKind !== "oauth2")
|
|
629
|
+
throw new ConnectCardMessage(t("sessionMcpCapabilityCard.thisRecommendationIsNotAn"));
|
|
630
|
+
const nobodyToShareWith = !resolved.connectionRef && !personalOnly && !personalOnlyService(resolved) ? await workspaceHasNobodyToShareWith(client, workspaceId) : false;
|
|
631
|
+
if (invocation.signal.aborted || lifetime.current !== invocation || !active()) return null;
|
|
632
|
+
setItem(resolved);
|
|
633
|
+
if (nobodyToShareWith) setAlone(true);
|
|
634
|
+
if (resolved.connectionRef)
|
|
635
|
+
setOwnership(resolved.connectionRef.subjectScope === "subject" ? "personal" : "workspace");
|
|
636
|
+
else if (!item && (personalOnly || nobodyToShareWith || personalOnlyService(resolved) || resolved.metadata?.defaultConnectionOwnership === "personal"))
|
|
637
|
+
setOwnership("personal");
|
|
638
|
+
let accountReady = false;
|
|
639
|
+
let ownLoginElsewhere = null;
|
|
640
|
+
if (resolved.enabled && resolved.connectionRef) {
|
|
641
|
+
const connections = resolved.connectionRef.subjectScope === "subject" ? await client.listOwnConnectionAccounts(workspaceId) : await client.listConnections(workspaceId);
|
|
642
|
+
if (invocation.signal.aborted || lifetime.current !== invocation || !active()) return null;
|
|
643
|
+
const matches = matchingActiveMcpConnections(resolved, connections);
|
|
644
|
+
const usableHere = matches.filter((entry) => !ownLoginOffHere(entry));
|
|
645
|
+
accountReady = reconnectConnectionId ? usableHere.some((entry) => entry.id === reconnectConnectionId) : usableHere.length === 1;
|
|
646
|
+
if (usableHere.length === 0) ownLoginElsewhere = matches.find(ownLoginOffHere) ?? null;
|
|
647
|
+
} else if (!resolved.enabled && !reconnectConnectionId && // A shared account it was set up with before stays its account: turning
|
|
648
|
+
// it on again connects that, not someone's own login.
|
|
649
|
+
(!resolved.connectionRef || resolved.connectionRef.subjectScope === "subject")) {
|
|
650
|
+
const accounts = await Promise.resolve().then(() => client.listOwnConnectionAccounts(workspaceId)).catch(() => []);
|
|
651
|
+
if (invocation.signal.aborted || lifetime.current !== invocation || !active()) return null;
|
|
652
|
+
ownLoginElsewhere = ownLoginToUseHere(accounts, resolved.mcpUrl ?? resolved.endpointUrl);
|
|
653
|
+
if (ownLoginElsewhere && !item && !resolved.connectionRef) setOwnership("personal");
|
|
654
|
+
}
|
|
655
|
+
if (invocation.signal.aborted || lifetime.current !== invocation || !active()) return null;
|
|
656
|
+
setConnected(accountReady);
|
|
657
|
+
setOwnLogin(ownLoginElsewhere);
|
|
658
|
+
setComplete(accountReady && !!session && sessionUsesCapability(session, resolved));
|
|
659
|
+
return resolved;
|
|
660
|
+
}
|
|
661
|
+
useEffect2(() => {
|
|
662
|
+
const abort = new AbortController();
|
|
663
|
+
lifetime.current = abort;
|
|
664
|
+
if (dialogOnly) setBusy(true);
|
|
665
|
+
void (async () => {
|
|
666
|
+
await load();
|
|
667
|
+
if (abort.signal.aborted || !dialogOnly) return;
|
|
668
|
+
await recoverSavedAttempt();
|
|
669
|
+
})().catch((failure) => {
|
|
670
|
+
if (!abort.signal.aborted)
|
|
671
|
+
setError(
|
|
672
|
+
failure instanceof ConnectCardMessage ? failure.message : t("sessionMcpCapabilityCard.couldnTLoadConnectionDetails")
|
|
673
|
+
);
|
|
674
|
+
}).finally(() => {
|
|
675
|
+
if (!abort.signal.aborted && dialogOnly) setBusy(false);
|
|
676
|
+
});
|
|
677
|
+
return () => {
|
|
678
|
+
abort.abort();
|
|
679
|
+
};
|
|
680
|
+
}, [client, workspaceId, sessionId, capabilityId, dialogOnly, t]);
|
|
681
|
+
async function run(action) {
|
|
682
|
+
if (operation.current || !current()) return;
|
|
683
|
+
const pending = new AbortController();
|
|
684
|
+
operation.current = pending;
|
|
685
|
+
const active = () => current() && operation.current === pending && !pending.signal.aborted;
|
|
686
|
+
setBusy(true);
|
|
687
|
+
setError(null);
|
|
688
|
+
setNotice(null);
|
|
689
|
+
setStepUp(null);
|
|
690
|
+
setRetryFresh(false);
|
|
691
|
+
setLeftSignIn(null);
|
|
692
|
+
try {
|
|
693
|
+
await action(active);
|
|
694
|
+
} catch (failure) {
|
|
695
|
+
if (active()) {
|
|
696
|
+
if (failure instanceof ConnectPopupClosedError2) {
|
|
697
|
+
setNotice(t("connectSetup.signInWindowClosed"));
|
|
698
|
+
const left = controller.getSnapshot().attempt;
|
|
699
|
+
if (left?.nextAction.type === "authorize")
|
|
700
|
+
setLeftSignIn(
|
|
701
|
+
organizationAppApproval3(left.nextAction.url, left.nextAction.organizationApprovalUrl)
|
|
702
|
+
);
|
|
703
|
+
} else {
|
|
704
|
+
setError(
|
|
705
|
+
// This flow's own steps explain themselves; a server or network
|
|
706
|
+
// failure gets the card's plain line instead of its raw text,
|
|
707
|
+
// unless the service refused setup and said why.
|
|
708
|
+
failure instanceof ConnectCardMessage ? failure.message : setupRefusalText(t, failure) ?? t("sessionMcpCapabilityCard.connectionSetupCouldNotFinish")
|
|
709
|
+
);
|
|
710
|
+
if (failure instanceof ConnectCardMessage && failure.stepUp)
|
|
711
|
+
setStepUp({
|
|
712
|
+
...failure.stepUp,
|
|
713
|
+
hostAction: failure.stepUp.hostAction ?? false,
|
|
714
|
+
opened: false
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
} finally {
|
|
719
|
+
if (operation.current === pending) {
|
|
720
|
+
operation.current = null;
|
|
721
|
+
if (current()) setBusy(false);
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
async function reconcile(attempt2, active = current) {
|
|
726
|
+
if (!active()) return;
|
|
727
|
+
if (attempt2.state !== "complete" || !attempt2.account || !attempt2.credentialsCommitted) return;
|
|
728
|
+
const resolved = await load(active);
|
|
729
|
+
if (!resolved || !active()) return;
|
|
730
|
+
let connection = (await client.listConnections(workspaceId)).find(
|
|
731
|
+
(entry) => entry.id === attempt2.account.id
|
|
732
|
+
);
|
|
733
|
+
if (!active()) return;
|
|
734
|
+
if (!connection && attempt2.ownership === "personal") {
|
|
735
|
+
connection = (await client.listOwnConnectionAccounts(workspaceId)).find(
|
|
736
|
+
(entry) => entry.id === attempt2.account.id
|
|
737
|
+
);
|
|
738
|
+
if (!active()) return;
|
|
739
|
+
}
|
|
740
|
+
if (!connection || connection.status !== "active" || connection.kind !== "oauth2" || connection.metadata.mcpUrl !== (resolved.mcpUrl ?? resolved.endpointUrl) || connection.subjectId !== null !== (attempt2.ownership === "personal"))
|
|
741
|
+
throw new ConnectCardMessage(t("sessionMcpCapabilityCard.theAuthorizedAccountDoesNot"));
|
|
742
|
+
const previous = resolved.connectionRef;
|
|
743
|
+
if (resolved.enabled && previous?.subjectScope !== "subject" && previous?.connectionId && previous.connectionId !== connection.id)
|
|
744
|
+
throw new ConnectCardMessage(t("sessionMcpCapabilityCard.thisIntegrationSSelectedAccount"));
|
|
745
|
+
if (ownLoginOffHere(connection)) {
|
|
746
|
+
await turnOnOwnLoginHere(client, workspaceId, connection);
|
|
747
|
+
if (!active()) return;
|
|
748
|
+
}
|
|
749
|
+
const alreadyBound = resolved.enabled && previous?.providerDomain === connection.providerDomain && (attempt2.ownership === "personal" ? previous.subjectScope === "subject" : previous.subjectScope !== "subject" && previous.connectionId === connection.id);
|
|
750
|
+
if (!alreadyBound) {
|
|
751
|
+
await enableWith(resolved, connection, attempt2.ownership);
|
|
752
|
+
if (!active()) return;
|
|
753
|
+
}
|
|
754
|
+
const enabled = await load(active);
|
|
755
|
+
if (enabled && active()) {
|
|
756
|
+
await finishConnection(enabled, active);
|
|
757
|
+
}
|
|
758
|
+
if (!active()) return;
|
|
759
|
+
hints.forget(storageKey);
|
|
760
|
+
}
|
|
761
|
+
async function enableWith(resolved, connection, accountOwnership) {
|
|
762
|
+
try {
|
|
763
|
+
await client.enableCapability(workspaceId, capabilityId, {
|
|
764
|
+
connectionRef: accountOwnership === "personal" ? {
|
|
765
|
+
providerDomain: connection.providerDomain,
|
|
766
|
+
kind: "oauth2",
|
|
767
|
+
subjectScope: "subject"
|
|
768
|
+
} : {
|
|
769
|
+
providerDomain: connection.providerDomain,
|
|
770
|
+
kind: "oauth2",
|
|
771
|
+
subjectScope: "workspace",
|
|
772
|
+
connectionId: connection.id
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
} catch (failure) {
|
|
776
|
+
if (failure instanceof OpenGeniApiError2 && failure.status === 403 && failure.details?.code === ADMIN_PASSKEY_STEP_UP_REQUIRED_CODE) {
|
|
777
|
+
const registered = failure.details.passkeyRegistered !== false;
|
|
778
|
+
const hostAction = Boolean(adminStepUp) && !steppedUp.current;
|
|
779
|
+
throw new ConnectCardMessage(
|
|
780
|
+
t(
|
|
781
|
+
hostAction ? registered ? "sessionMcpCapabilityCard.confirmWithPasskeyToTurnOnHere" : "sessionMcpCapabilityCard.addAPasskeyToTurnOnHere" : registered ? "sessionMcpCapabilityCard.confirmWithPasskeyToTurnOn" : "sessionMcpCapabilityCard.addAPasskeyToTurnOn",
|
|
782
|
+
{ name: resolved.name }
|
|
783
|
+
),
|
|
784
|
+
{ stepUp: { passkeyRegistered: registered, hostAction } }
|
|
785
|
+
);
|
|
786
|
+
}
|
|
787
|
+
if (failure instanceof OpenGeniApiError2 && failure.status === 403)
|
|
788
|
+
throw new ConnectCardMessage(
|
|
789
|
+
t("sessionMcpCapabilityCard.onlyAnAdminCanTurnOn", { name: resolved.name })
|
|
790
|
+
);
|
|
791
|
+
throw failure;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
function retryTurnOn() {
|
|
795
|
+
if (offHere) {
|
|
796
|
+
void useHere();
|
|
797
|
+
return;
|
|
798
|
+
}
|
|
799
|
+
void run(async (active) => {
|
|
800
|
+
const attempt2 = controller.getSnapshot().attempt;
|
|
801
|
+
if (attempt2?.state === "complete") await reconcile(attempt2, active);
|
|
802
|
+
else await recoverSavedAttempt(active);
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
async function confirmStepUp() {
|
|
806
|
+
const asked = stepUp;
|
|
807
|
+
if (!asked || operation.current || steppingUp.current) return;
|
|
808
|
+
if (asked.opened || !asked.hostAction || !adminStepUp) {
|
|
809
|
+
retryTurnOn();
|
|
810
|
+
return;
|
|
811
|
+
}
|
|
812
|
+
let confirmed = false;
|
|
813
|
+
steppingUp.current = true;
|
|
814
|
+
steppedUp.current = true;
|
|
815
|
+
try {
|
|
816
|
+
confirmed = await adminStepUp({ passkeyRegistered: asked.passkeyRegistered });
|
|
817
|
+
} catch {
|
|
818
|
+
confirmed = false;
|
|
819
|
+
} finally {
|
|
820
|
+
steppingUp.current = false;
|
|
821
|
+
}
|
|
822
|
+
if (!current()) return;
|
|
823
|
+
if (confirmed) retryTurnOn();
|
|
824
|
+
else setStepUp({ ...asked, opened: true });
|
|
825
|
+
}
|
|
826
|
+
async function open() {
|
|
827
|
+
setExpanded(true);
|
|
828
|
+
await run(async (active) => {
|
|
829
|
+
await load(active);
|
|
830
|
+
if (!active()) return;
|
|
831
|
+
await recoverSavedAttempt(active);
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
async function recoverSavedAttempt(active = current) {
|
|
835
|
+
const saved = hints.read(storageKey);
|
|
836
|
+
if (saved) {
|
|
837
|
+
const attempt2 = await controller.recover(saved);
|
|
838
|
+
if (!active()) return;
|
|
839
|
+
if (RESTART_STATES.includes(attempt2.state)) setRetryFresh(true);
|
|
840
|
+
if (attempt2.state === "complete") setReconciling(true);
|
|
841
|
+
try {
|
|
842
|
+
await reconcile(attempt2, active);
|
|
843
|
+
} finally {
|
|
844
|
+
if (active()) setReconciling(false);
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
async function begin(fresh = false) {
|
|
849
|
+
await run(async (active) => {
|
|
850
|
+
if (fresh || view.attempt && RESTART_STATES.includes(view.attempt.state)) {
|
|
851
|
+
startKey.current = crypto.randomUUID();
|
|
852
|
+
advanceKey.current = crypto.randomUUID();
|
|
853
|
+
}
|
|
854
|
+
let reserved;
|
|
855
|
+
try {
|
|
856
|
+
reserved = windowHost.current.reserve();
|
|
857
|
+
} catch {
|
|
858
|
+
throw new ConnectCardMessage(t("connectWindowHost.allowPopups"));
|
|
859
|
+
}
|
|
860
|
+
reservedPopup.current = reserved.close;
|
|
861
|
+
try {
|
|
862
|
+
const resolved = await load(active);
|
|
863
|
+
if (!resolved || !active()) return;
|
|
864
|
+
const mcpUrl = resolved.mcpUrl ?? resolved.endpointUrl;
|
|
865
|
+
if (!mcpUrl)
|
|
866
|
+
throw new ConnectCardMessage(t("sessionMcpCapabilityCard.theCurrentCatalogHasNo"));
|
|
867
|
+
const lapsed = reconnectConnectionId ? (await client.listConnections(workspaceId)).find(
|
|
868
|
+
(entry) => entry.id === reconnectConnectionId && entry.kind === "oauth2" && entry.status !== "active" && (typeof entry.metadata.mcpUrl !== "string" || entry.metadata.mcpUrl === mcpUrl)
|
|
869
|
+
) : void 0;
|
|
870
|
+
if (!active()) return;
|
|
871
|
+
const beginOwnership = lapsed ? lapsed.subjectId === null ? "workspace" : "personal" : ownership;
|
|
872
|
+
if (beginOwnership !== ownership) setOwnership(beginOwnership);
|
|
873
|
+
if (resolved.connectionRef && beginOwnership !== (resolved.connectionRef.subjectScope === "subject" ? "personal" : "workspace"))
|
|
874
|
+
throw new ConnectCardMessage(
|
|
875
|
+
t("sessionMcpCapabilityCard.theConnectionOwnershipChangedReview")
|
|
876
|
+
);
|
|
877
|
+
let reconnectAccountId = lapsed?.id ?? resolved.connectionRef?.connectionId ?? void 0;
|
|
878
|
+
if (!lapsed && resolved.connectionRef?.subjectScope === "subject") {
|
|
879
|
+
const target = personalReconnectTarget(await client.listConnections(workspaceId), mcpUrl);
|
|
880
|
+
if (!active()) return;
|
|
881
|
+
if (target.ambiguous)
|
|
882
|
+
throw new ConnectCardMessage(t("sessionMcpCapabilityCard.moreThanOnePersonalAccount"));
|
|
883
|
+
reconnectAccountId = target.connectionId;
|
|
884
|
+
}
|
|
885
|
+
const input = JSON.stringify({
|
|
886
|
+
ownership: beginOwnership,
|
|
887
|
+
returnUrl,
|
|
888
|
+
reconnectAccountId,
|
|
889
|
+
mcpUrl
|
|
890
|
+
});
|
|
891
|
+
if (startInput.current !== null && startInput.current !== input) {
|
|
892
|
+
startKey.current = crypto.randomUUID();
|
|
893
|
+
advanceKey.current = crypto.randomUUID();
|
|
894
|
+
}
|
|
895
|
+
startInput.current = input;
|
|
896
|
+
let attempt2 = await controller.begin({
|
|
897
|
+
providerId: mcpUrl === GOOGLE_DRIVE_MCP_URL ? "google-drive" : "mcp-oauth",
|
|
898
|
+
ownership: beginOwnership,
|
|
899
|
+
returnUrl,
|
|
900
|
+
// A browser popup ends on a page that closes itself instead of
|
|
901
|
+
// loading this page a second time; a phone returns to the app.
|
|
902
|
+
...windowHost.current.finishInPopup ? { finishInPopup: true } : {},
|
|
903
|
+
idempotencyKey: startKey.current,
|
|
904
|
+
...reconnectAccountId ? { reconnectAccountId } : {}
|
|
905
|
+
});
|
|
906
|
+
if (!active()) return;
|
|
907
|
+
hints.remember(storageKey, attempt2.id);
|
|
908
|
+
if (attempt2.state === "credential_input")
|
|
909
|
+
attempt2 = await controller.advance(
|
|
910
|
+
{
|
|
911
|
+
type: "credentials",
|
|
912
|
+
values: mcpUrl === GOOGLE_DRIVE_MCP_URL ? {} : { mcpUrl }
|
|
913
|
+
},
|
|
914
|
+
advanceKey.current
|
|
915
|
+
);
|
|
916
|
+
if (!active()) return;
|
|
917
|
+
if (attempt2.nextAction.type === "authorize")
|
|
918
|
+
await performAuthorization(attempt2, reserved.navigation, active);
|
|
919
|
+
else await reconcile(attempt2, active);
|
|
920
|
+
} finally {
|
|
921
|
+
if (reservedPopup.current === reserved.close) reservedPopup.current = null;
|
|
922
|
+
reserved.close();
|
|
923
|
+
}
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
async function performAuthorization(attempt2, navigation, active) {
|
|
927
|
+
if (!active()) return;
|
|
928
|
+
const pending = new AbortController();
|
|
929
|
+
authorization.current = pending;
|
|
930
|
+
const abortOnUnmount = () => pending.abort(lifetime.current?.signal.reason);
|
|
931
|
+
lifetime.current.signal.addEventListener("abort", abortOnUnmount, { once: true });
|
|
932
|
+
setWaiting(true);
|
|
933
|
+
try {
|
|
934
|
+
const result = await authorizeConnectAttempt(controller.transport, attempt2, navigation, {
|
|
935
|
+
mode: "popup",
|
|
936
|
+
signal: pending.signal
|
|
937
|
+
});
|
|
938
|
+
if (!active() || !result) return;
|
|
939
|
+
const finished = await controller.recover(result.id).catch(() => null) ?? result;
|
|
940
|
+
if (!active()) return;
|
|
941
|
+
setWaiting(false);
|
|
942
|
+
setReconciling(true);
|
|
943
|
+
await reconcile(result, active);
|
|
944
|
+
if (!active()) return;
|
|
945
|
+
if (finished.state !== "complete" && organizationApprovalFor(finished)) {
|
|
946
|
+
setRetryFresh(true);
|
|
947
|
+
return;
|
|
948
|
+
}
|
|
949
|
+
if (result.state === "cancelled") {
|
|
950
|
+
setNotice(t("sessionMcpCapabilityCard.signInWasCancelledYou"));
|
|
951
|
+
setRetryFresh(true);
|
|
952
|
+
return;
|
|
953
|
+
}
|
|
954
|
+
if (result.state !== "complete") {
|
|
955
|
+
if (["failed", "expired"].includes(result.state)) setRetryFresh(true);
|
|
956
|
+
throw new ConnectCardMessage(
|
|
957
|
+
signInRefusalText(t, finished) ?? t("sessionMcpCapabilityCard.signInDidNotFinish")
|
|
958
|
+
);
|
|
959
|
+
}
|
|
960
|
+
} finally {
|
|
961
|
+
lifetime.current?.signal.removeEventListener("abort", abortOnUnmount);
|
|
962
|
+
if (authorization.current === pending) authorization.current = null;
|
|
963
|
+
if (active()) {
|
|
964
|
+
setReconciling(false);
|
|
965
|
+
setWaiting(false);
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
function authorize(attempt2) {
|
|
970
|
+
return run((active) => performAuthorization(attempt2, windowHost.current.open(), active));
|
|
971
|
+
}
|
|
972
|
+
async function finishConnection(capability, active = current) {
|
|
973
|
+
if (!sessionId) {
|
|
974
|
+
await onConfigured?.();
|
|
975
|
+
if (!active()) return;
|
|
976
|
+
setComplete(true);
|
|
977
|
+
setExpanded(false);
|
|
978
|
+
onClose?.();
|
|
979
|
+
return;
|
|
980
|
+
}
|
|
981
|
+
if (capability.connectionRef && capability.connectionRef.subjectScope !== "subject") {
|
|
982
|
+
const selected = (await client.listConnections(workspaceId)).find(
|
|
983
|
+
(entry) => entry.id === capability.connectionRef?.connectionId
|
|
984
|
+
);
|
|
985
|
+
if (!active()) return;
|
|
986
|
+
if (!selected || selected.status !== "active")
|
|
987
|
+
throw new ConnectCardMessage(
|
|
988
|
+
t("sessionMcpCapabilityCard.thisAccountNeedsReconnectionBefore")
|
|
989
|
+
);
|
|
990
|
+
}
|
|
991
|
+
if (capability.connectionRef?.subjectScope === "subject") {
|
|
992
|
+
const accounts = await client.listOwnConnectionAccounts(workspaceId);
|
|
993
|
+
if (!active()) return;
|
|
994
|
+
if (matchingActiveMcpConnections(capability, accounts).filter(
|
|
995
|
+
(entry) => !ownLoginOffHere(entry)
|
|
996
|
+
).length === 0)
|
|
997
|
+
throw new ConnectCardMessage(
|
|
998
|
+
t("sessionMcpCapabilityCard.yourAccountNeedsReconnectionBefore")
|
|
999
|
+
);
|
|
1000
|
+
}
|
|
1001
|
+
if (!active()) return;
|
|
1002
|
+
await attachSessionCapability(t, client, workspaceId, sessionId, capability, active);
|
|
1003
|
+
if (!active()) return;
|
|
1004
|
+
await onConfigured?.();
|
|
1005
|
+
if (!active()) return;
|
|
1006
|
+
continueAfterCapabilitySetup(client, workspaceId, sessionId, capability.id);
|
|
1007
|
+
setComplete(true);
|
|
1008
|
+
setExpanded(false);
|
|
1009
|
+
}
|
|
1010
|
+
async function addHere() {
|
|
1011
|
+
await run(async (active) => {
|
|
1012
|
+
if (item) await finishConnection(item, active);
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
async function useHere() {
|
|
1016
|
+
let finished = false;
|
|
1017
|
+
await run(async (active) => {
|
|
1018
|
+
const login = offHere;
|
|
1019
|
+
if (!item || !login) return;
|
|
1020
|
+
const enabling = !item.enabled || !item.connectionRef;
|
|
1021
|
+
if (enabling) {
|
|
1022
|
+
await enableWith(item, login, "personal");
|
|
1023
|
+
if (!active()) return;
|
|
1024
|
+
}
|
|
1025
|
+
if (ownLoginOffHere(login)) {
|
|
1026
|
+
await turnOnOwnLoginHere(client, workspaceId, login);
|
|
1027
|
+
if (!active()) return;
|
|
1028
|
+
}
|
|
1029
|
+
setOwnLogin(null);
|
|
1030
|
+
let capability = item;
|
|
1031
|
+
if (enabling) {
|
|
1032
|
+
const enabled = await load(active);
|
|
1033
|
+
if (!enabled || !active()) return;
|
|
1034
|
+
capability = enabled;
|
|
1035
|
+
}
|
|
1036
|
+
setConnected(true);
|
|
1037
|
+
await finishConnection(capability, active);
|
|
1038
|
+
finished = true;
|
|
1039
|
+
});
|
|
1040
|
+
if (!finished && current()) setExpanded(true);
|
|
1041
|
+
}
|
|
1042
|
+
function close() {
|
|
1043
|
+
const pending = operation.current;
|
|
1044
|
+
if (pending) {
|
|
1045
|
+
operation.current = null;
|
|
1046
|
+
pending.abort(new ConnectPopupClosedError2());
|
|
1047
|
+
authorization.current?.abort(new ConnectPopupClosedError2());
|
|
1048
|
+
authorization.current = null;
|
|
1049
|
+
reservedPopup.current?.();
|
|
1050
|
+
setBusy(false);
|
|
1051
|
+
setWaiting(false);
|
|
1052
|
+
setReconciling(false);
|
|
1053
|
+
}
|
|
1054
|
+
setExpanded(false);
|
|
1055
|
+
onClose?.();
|
|
1056
|
+
}
|
|
1057
|
+
function signIn() {
|
|
1058
|
+
if (notice || retryFresh) void begin(true);
|
|
1059
|
+
else if (view.attempt?.nextAction.type === "authorize" && view.attempt.ownership === ownership)
|
|
1060
|
+
void authorize(view.attempt);
|
|
1061
|
+
else void begin();
|
|
1062
|
+
}
|
|
1063
|
+
const attempt = view.attempt;
|
|
1064
|
+
const approval = busy ? null : attempt && (attempt.error || !leftSignIn) ? organizationApprovalFor(attempt) : leftSignIn ? { reason: "unfinished", url: leftSignIn.approvalUrl, appId: leftSignIn.appId } : null;
|
|
1065
|
+
return {
|
|
1066
|
+
controller,
|
|
1067
|
+
view,
|
|
1068
|
+
item,
|
|
1069
|
+
personalOnly,
|
|
1070
|
+
expanded,
|
|
1071
|
+
complete,
|
|
1072
|
+
connected,
|
|
1073
|
+
offHere,
|
|
1074
|
+
waiting,
|
|
1075
|
+
reconciling,
|
|
1076
|
+
busy,
|
|
1077
|
+
// A refused sign-in with an approval link sets no error (see
|
|
1078
|
+
// performAuthorization), so any error here is newer and stays visible.
|
|
1079
|
+
error,
|
|
1080
|
+
notice,
|
|
1081
|
+
ownership,
|
|
1082
|
+
setOwnership,
|
|
1083
|
+
/** The sign-in button says "Try signing in again" rather than continuing. */
|
|
1084
|
+
retrySignIn: retryFresh || // The card already knows the last sign-in ended (it recovers the
|
|
1085
|
+
// finished attempt), so the next one starts afresh.
|
|
1086
|
+
!!attemptState && RESTART_STATES.includes(attemptState) || Boolean(error || notice) && view.attempt?.nextAction.type === "authorize",
|
|
1087
|
+
approval,
|
|
1088
|
+
stepUp,
|
|
1089
|
+
confirmStepUp: () => void confirmStepUp(),
|
|
1090
|
+
open: () => void open(),
|
|
1091
|
+
signIn,
|
|
1092
|
+
addHere: () => void addHere(),
|
|
1093
|
+
useHere: () => void useHere(),
|
|
1094
|
+
close,
|
|
1095
|
+
stopWaiting: () => authorization.current?.abort(new ConnectPopupClosedError2())
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
// src/components/mcp-server-label.ts
|
|
1100
|
+
import {
|
|
1101
|
+
capabilityCatalogItemIsTrustedForExposure
|
|
1102
|
+
} from "@opengeni/contracts";
|
|
1103
|
+
import {
|
|
1104
|
+
microsoftDynamicsEnvironmentAddress,
|
|
1105
|
+
microsoftDynamicsProductForMcpUrl
|
|
1106
|
+
} from "@opengeni/contracts/microsoft-dynamics";
|
|
1107
|
+
function showsMcpServerLabel(item) {
|
|
1108
|
+
if (!item) return false;
|
|
1109
|
+
if (item.endpointUrl && microsoftDynamicsProductForMcpUrl(item.endpointUrl)) return false;
|
|
1110
|
+
switch (item.source) {
|
|
1111
|
+
case "built_in":
|
|
1112
|
+
case "library":
|
|
1113
|
+
case "configured":
|
|
1114
|
+
return false;
|
|
1115
|
+
case "registry":
|
|
1116
|
+
return !capabilityCatalogItemIsTrustedForExposure(item);
|
|
1117
|
+
default:
|
|
1118
|
+
return true;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
function connectionCardSubtitle(item) {
|
|
1122
|
+
if (!item) return "";
|
|
1123
|
+
const environment = item.endpointUrl && microsoftDynamicsEnvironmentAddress(item.endpointUrl);
|
|
1124
|
+
if (environment) return environment;
|
|
1125
|
+
if (showsMcpServerLabel(item)) return item.providerDomain ?? "";
|
|
1126
|
+
return capabilityPresentation(item.metadata)?.providerName ?? "";
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
export {
|
|
1130
|
+
browserSignInMemory,
|
|
1131
|
+
rememberSignIn,
|
|
1132
|
+
forgetSignIn,
|
|
1133
|
+
forgetSignInsTo,
|
|
1134
|
+
signInNeverReturned,
|
|
1135
|
+
unreturnedSignIn,
|
|
1136
|
+
useConnect,
|
|
1137
|
+
connectSetupStatus,
|
|
1138
|
+
isOwnerApprovalPending,
|
|
1139
|
+
connectSetupContinuesWithoutDialog,
|
|
1140
|
+
continueConnectSetup,
|
|
1141
|
+
adminApprovalLink,
|
|
1142
|
+
organizationApprovalFor,
|
|
1143
|
+
organizationApprovalMessage,
|
|
1144
|
+
useConnectSetupFlow,
|
|
1145
|
+
browserConnectWindowHost,
|
|
1146
|
+
attemptHint,
|
|
1147
|
+
mcpConnectionDiscoveryState,
|
|
1148
|
+
useMcpCapabilityConnect,
|
|
1149
|
+
showsMcpServerLabel,
|
|
1150
|
+
connectionCardSubtitle
|
|
1151
|
+
};
|
|
1152
|
+
//# sourceMappingURL=chunk-TNHGSWG3.js.map
|