@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,1356 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
applicableChords,
|
|
4
|
+
chordAccelerator,
|
|
5
|
+
chordAriaKeys,
|
|
6
|
+
chordLabel,
|
|
7
|
+
currentPlatform,
|
|
8
|
+
isTextEntry,
|
|
9
|
+
matchesChord
|
|
10
|
+
} from "./chunk-BTF7WNUT.js";
|
|
11
|
+
import {
|
|
12
|
+
applySessionArchiveProjection
|
|
13
|
+
} from "./chunk-OSI2QWSL.js";
|
|
14
|
+
import {
|
|
15
|
+
FORK_CURRENT_CHAT_EVENT,
|
|
16
|
+
OPEN_COMMAND_MENU_EVENT,
|
|
17
|
+
RENAME_CURRENT_CHAT_EVENT,
|
|
18
|
+
useRail
|
|
19
|
+
} from "./chunk-USWA5GQQ.js";
|
|
20
|
+
import {
|
|
21
|
+
requestSessionComposerFocus
|
|
22
|
+
} from "./chunk-MMY23KS7.js";
|
|
23
|
+
import {
|
|
24
|
+
notifySessionListChanged
|
|
25
|
+
} from "./chunk-O5S57N6H.js";
|
|
26
|
+
import {
|
|
27
|
+
archiveActionLabel,
|
|
28
|
+
requestSessionArchive
|
|
29
|
+
} from "./chunk-OH6KP4JB.js";
|
|
30
|
+
import {
|
|
31
|
+
requestSessionSearch
|
|
32
|
+
} from "./chunk-TXIIBNCA.js";
|
|
33
|
+
import {
|
|
34
|
+
requestConversationFind
|
|
35
|
+
} from "./chunk-7ZEGSUR7.js";
|
|
36
|
+
import {
|
|
37
|
+
copyLink
|
|
38
|
+
} from "./chunk-PEMILYAK.js";
|
|
39
|
+
import {
|
|
40
|
+
listsAsTopLevel,
|
|
41
|
+
readChatDirectory,
|
|
42
|
+
recordChatVisit,
|
|
43
|
+
rememberChats
|
|
44
|
+
} from "./chunk-MQTYIBY6.js";
|
|
45
|
+
import {
|
|
46
|
+
useSessionUiFeature
|
|
47
|
+
} from "./chunk-FWXMQTVG.js";
|
|
48
|
+
import {
|
|
49
|
+
toast
|
|
50
|
+
} from "./chunk-O4EA4F3W.js";
|
|
51
|
+
import {
|
|
52
|
+
t
|
|
53
|
+
} from "./chunk-QL4Q332Z.js";
|
|
54
|
+
import {
|
|
55
|
+
hasWorkspacePermission
|
|
56
|
+
} from "./chunk-EQSXKGTW.js";
|
|
57
|
+
import {
|
|
58
|
+
isPersonalWorkspace,
|
|
59
|
+
navigableWorkspaces
|
|
60
|
+
} from "./chunk-LBSXJVHD.js";
|
|
61
|
+
import {
|
|
62
|
+
useNavigate,
|
|
63
|
+
usePage,
|
|
64
|
+
useRouterState
|
|
65
|
+
} from "./chunk-C52N45PY.js";
|
|
66
|
+
import {
|
|
67
|
+
desktopBridge,
|
|
68
|
+
desktopCapability
|
|
69
|
+
} from "./chunk-5QBCQVKZ.js";
|
|
70
|
+
import {
|
|
71
|
+
useAppContext
|
|
72
|
+
} from "./chunk-7GGVDTCZ.js";
|
|
73
|
+
import {
|
|
74
|
+
workspacesByOrganization
|
|
75
|
+
} from "./chunk-NRP4REXE.js";
|
|
76
|
+
import {
|
|
77
|
+
sessionDisplayTitle
|
|
78
|
+
} from "./chunk-ZGR7LNXC.js";
|
|
79
|
+
import {
|
|
80
|
+
useMeetingOnScreen
|
|
81
|
+
} from "./chunk-TGT2R5VO.js";
|
|
82
|
+
import {
|
|
83
|
+
useUiEventTarget
|
|
84
|
+
} from "./chunk-WGPLDFEC.js";
|
|
85
|
+
import {
|
|
86
|
+
canStartRecording,
|
|
87
|
+
useMeetingRecorderControls
|
|
88
|
+
} from "./chunk-6YTNMDFP.js";
|
|
89
|
+
import {
|
|
90
|
+
userErrorText
|
|
91
|
+
} from "./chunk-UJQMDNZ5.js";
|
|
92
|
+
import {
|
|
93
|
+
meetingTitle
|
|
94
|
+
} from "./chunk-2LBYEHBH.js";
|
|
95
|
+
|
|
96
|
+
// src/app/lib/actions/actions-provider.tsx
|
|
97
|
+
import {
|
|
98
|
+
createContext,
|
|
99
|
+
lazy,
|
|
100
|
+
Suspense,
|
|
101
|
+
useCallback as useCallback2,
|
|
102
|
+
useContext,
|
|
103
|
+
useEffect,
|
|
104
|
+
useMemo as useMemo2,
|
|
105
|
+
useRef as useRef2,
|
|
106
|
+
useState
|
|
107
|
+
} from "react";
|
|
108
|
+
import { OpenGeniRecordingsClient } from "@opengeni/sdk/recordings";
|
|
109
|
+
|
|
110
|
+
// src/app/lib/actions/site-directory.ts
|
|
111
|
+
import { useSyncExternalStore } from "react";
|
|
112
|
+
var directories = /* @__PURE__ */ new Map();
|
|
113
|
+
var listeners = /* @__PURE__ */ new Map();
|
|
114
|
+
function directory(subjectId) {
|
|
115
|
+
let state = directories.get(subjectId);
|
|
116
|
+
if (!state) {
|
|
117
|
+
state = { sites: /* @__PURE__ */ new Map(), version: 0 };
|
|
118
|
+
directories.set(subjectId, state);
|
|
119
|
+
}
|
|
120
|
+
return state;
|
|
121
|
+
}
|
|
122
|
+
function siteRecords(workspaceId, sources) {
|
|
123
|
+
const seen = /* @__PURE__ */ new Set();
|
|
124
|
+
const records = [];
|
|
125
|
+
for (const source of sources) {
|
|
126
|
+
const id = source.siteId ?? source.id;
|
|
127
|
+
if (typeof id !== "string" || !id || seen.has(id)) continue;
|
|
128
|
+
seen.add(id);
|
|
129
|
+
records.push({
|
|
130
|
+
id,
|
|
131
|
+
workspaceId,
|
|
132
|
+
title: typeof source.title === "string" && source.title.trim() || "Untitled app",
|
|
133
|
+
updatedAt: Date.parse(source.updatedAt) || 0
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
return records;
|
|
137
|
+
}
|
|
138
|
+
function rememberSidebarSites(subjectId, workspaceId, sources) {
|
|
139
|
+
const state = directory(subjectId);
|
|
140
|
+
const next = siteRecords(workspaceId, sources).sort((a, b) => b.updatedAt - a.updatedAt);
|
|
141
|
+
const current = state.sites.get(workspaceId);
|
|
142
|
+
if (current && current.length === next.length && current.every(
|
|
143
|
+
(site, index) => site.id === next[index].id && site.title === next[index].title && site.updatedAt === next[index].updatedAt
|
|
144
|
+
))
|
|
145
|
+
return;
|
|
146
|
+
state.sites.set(workspaceId, next);
|
|
147
|
+
state.version += 1;
|
|
148
|
+
for (const listener of listeners.get(subjectId) ?? []) listener();
|
|
149
|
+
}
|
|
150
|
+
function readSidebarSites(subjectId, workspaceId) {
|
|
151
|
+
return directory(subjectId).sites.get(workspaceId) ?? [];
|
|
152
|
+
}
|
|
153
|
+
function useSiteDirectoryVersion(subjectId) {
|
|
154
|
+
return useSyncExternalStore(
|
|
155
|
+
(listener) => {
|
|
156
|
+
let set = listeners.get(subjectId);
|
|
157
|
+
if (!set) {
|
|
158
|
+
set = /* @__PURE__ */ new Set();
|
|
159
|
+
listeners.set(subjectId, set);
|
|
160
|
+
}
|
|
161
|
+
set.add(listener);
|
|
162
|
+
return () => {
|
|
163
|
+
set.delete(listener);
|
|
164
|
+
};
|
|
165
|
+
},
|
|
166
|
+
() => directory(subjectId).version,
|
|
167
|
+
() => 0
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
function sitePath(workspaceId, siteId) {
|
|
171
|
+
return `/workspaces/${encodeURIComponent(workspaceId)}/sites/${encodeURIComponent(siteId)}`;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// src/app/lib/actions/meeting-directory.ts
|
|
175
|
+
import { useSyncExternalStore as useSyncExternalStore2 } from "react";
|
|
176
|
+
var directories2 = /* @__PURE__ */ new Map();
|
|
177
|
+
var listeners2 = /* @__PURE__ */ new Map();
|
|
178
|
+
function directory2(subjectId) {
|
|
179
|
+
let state = directories2.get(subjectId);
|
|
180
|
+
if (!state) {
|
|
181
|
+
state = { meetings: /* @__PURE__ */ new Map(), version: 0 };
|
|
182
|
+
directories2.set(subjectId, state);
|
|
183
|
+
}
|
|
184
|
+
return state;
|
|
185
|
+
}
|
|
186
|
+
function meetingRecords(recordings) {
|
|
187
|
+
const seen = /* @__PURE__ */ new Set();
|
|
188
|
+
const records = [];
|
|
189
|
+
for (const recording of recordings) {
|
|
190
|
+
if (!recording?.id || seen.has(recording.id)) continue;
|
|
191
|
+
seen.add(recording.id);
|
|
192
|
+
records.push({
|
|
193
|
+
id: recording.id,
|
|
194
|
+
workspaceId: recording.workspaceId,
|
|
195
|
+
title: meetingTitle(recording),
|
|
196
|
+
startedAt: Date.parse(recording.startedAt) || 0
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
return records;
|
|
200
|
+
}
|
|
201
|
+
function rememberRecentMeetings(subjectId, workspaceId, records) {
|
|
202
|
+
const state = directory2(subjectId);
|
|
203
|
+
const next = [...records].sort((a, b) => b.startedAt - a.startedAt);
|
|
204
|
+
const current = state.meetings.get(workspaceId);
|
|
205
|
+
if (current && current.length === next.length && current.every(
|
|
206
|
+
(meeting, index) => meeting.id === next[index].id && meeting.title === next[index].title && meeting.startedAt === next[index].startedAt
|
|
207
|
+
))
|
|
208
|
+
return;
|
|
209
|
+
state.meetings.set(workspaceId, next);
|
|
210
|
+
state.version += 1;
|
|
211
|
+
for (const listener of listeners2.get(subjectId) ?? []) listener();
|
|
212
|
+
}
|
|
213
|
+
function readRecentMeetings(subjectId, workspaceId) {
|
|
214
|
+
return directory2(subjectId).meetings.get(workspaceId) ?? [];
|
|
215
|
+
}
|
|
216
|
+
function useMeetingDirectoryVersion(subjectId) {
|
|
217
|
+
return useSyncExternalStore2(
|
|
218
|
+
(listener) => {
|
|
219
|
+
let set = listeners2.get(subjectId);
|
|
220
|
+
if (!set) {
|
|
221
|
+
set = /* @__PURE__ */ new Set();
|
|
222
|
+
listeners2.set(subjectId, set);
|
|
223
|
+
}
|
|
224
|
+
set.add(listener);
|
|
225
|
+
return () => {
|
|
226
|
+
set.delete(listener);
|
|
227
|
+
};
|
|
228
|
+
},
|
|
229
|
+
() => directory2(subjectId).version,
|
|
230
|
+
() => 0
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
function meetingPath(workspaceId, recordingId) {
|
|
234
|
+
return `/workspaces/${encodeURIComponent(workspaceId)}/meetings/${encodeURIComponent(recordingId)}`;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// src/app/lib/actions/chat-switcher.ts
|
|
238
|
+
var SWITCHER_LIMIT = 100;
|
|
239
|
+
var SWITCHER_SHOW_DELAY_MS = 140;
|
|
240
|
+
function switchable(record, reachable) {
|
|
241
|
+
return Boolean(record && !record.archived && reachable(record.workspaceId));
|
|
242
|
+
}
|
|
243
|
+
function moreChats(directory3, taken, reachable, room) {
|
|
244
|
+
if (room <= 0) return [];
|
|
245
|
+
const more = [];
|
|
246
|
+
for (const record of directory3.rows.values()) {
|
|
247
|
+
if (!taken.has(record.id) && switchable(record, reachable) && listsAsTopLevel(record)) {
|
|
248
|
+
more.push(record);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
more.sort((a, b) => b.updatedAt - a.updatedAt || (a.id < b.id ? -1 : 1));
|
|
252
|
+
return more.slice(0, room).map((record) => record.id);
|
|
253
|
+
}
|
|
254
|
+
function openChatSwitcher(directory3, currentChatId, backwards, reachable = () => true) {
|
|
255
|
+
const recent = directory3.recent.filter(
|
|
256
|
+
(id) => id !== currentChatId && switchable(directory3.rows.get(id), reachable)
|
|
257
|
+
);
|
|
258
|
+
const viewed = (currentChatId ? [currentChatId, ...recent] : recent).slice(0, SWITCHER_LIMIT);
|
|
259
|
+
const ids = [
|
|
260
|
+
...viewed,
|
|
261
|
+
...moreChats(directory3, new Set(viewed), reachable, SWITCHER_LIMIT - viewed.length)
|
|
262
|
+
];
|
|
263
|
+
const first = currentChatId ? 1 : 0;
|
|
264
|
+
if (ids.length <= first) return null;
|
|
265
|
+
return {
|
|
266
|
+
ids,
|
|
267
|
+
viewed: viewed.length,
|
|
268
|
+
index: backwards ? ids.length - 1 : first,
|
|
269
|
+
visible: false
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
function extendChatSwitcher(state, directory3, reachable = () => true) {
|
|
273
|
+
const more = moreChats(
|
|
274
|
+
directory3,
|
|
275
|
+
new Set(state.ids),
|
|
276
|
+
reachable,
|
|
277
|
+
SWITCHER_LIMIT - state.ids.length
|
|
278
|
+
);
|
|
279
|
+
return more.length === 0 ? state : { ...state, ids: [...state.ids, ...more] };
|
|
280
|
+
}
|
|
281
|
+
function stepChatSwitcher(state, step) {
|
|
282
|
+
const count = state.ids.length;
|
|
283
|
+
return { ...state, index: (state.index + step + count) % count, visible: true };
|
|
284
|
+
}
|
|
285
|
+
function isSwitcherKey(event) {
|
|
286
|
+
return event.code === "Tab" && event.ctrlKey && !event.metaKey && !event.altKey;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// src/app/lib/actions/chat-operations.ts
|
|
290
|
+
import { useCallback, useMemo, useRef } from "react";
|
|
291
|
+
function chatPath(chat) {
|
|
292
|
+
return `/workspaces/${encodeURIComponent(chat.workspaceId)}/sessions/${encodeURIComponent(chat.id)}`;
|
|
293
|
+
}
|
|
294
|
+
function useChatOperations() {
|
|
295
|
+
const context = useAppContext();
|
|
296
|
+
const page = usePage();
|
|
297
|
+
const archiving = useRef(/* @__PURE__ */ new Set());
|
|
298
|
+
const linkTo = useCallback(
|
|
299
|
+
(chat) => `${page.origin()}${chatPath(chat)}`,
|
|
300
|
+
[page]
|
|
301
|
+
);
|
|
302
|
+
const copyLink2 = useCallback(
|
|
303
|
+
(chat) => copyLink(linkTo(chat)),
|
|
304
|
+
[linkTo]
|
|
305
|
+
);
|
|
306
|
+
const setPinned = useCallback(
|
|
307
|
+
async (chat, pinned) => {
|
|
308
|
+
const updated = await context.updateSessionPin(
|
|
309
|
+
chat.workspaceId,
|
|
310
|
+
chat.id,
|
|
311
|
+
pinned,
|
|
312
|
+
chat.pinVersion ?? 0
|
|
313
|
+
);
|
|
314
|
+
if (updated) toast.success(pinned ? "Chat pinned" : "Chat unpinned");
|
|
315
|
+
else toast.error(pinned ? "Couldn't pin the chat." : "Couldn't unpin the chat.");
|
|
316
|
+
},
|
|
317
|
+
[context]
|
|
318
|
+
);
|
|
319
|
+
const setArchivedRef = useRef(null);
|
|
320
|
+
const setArchived = useCallback(
|
|
321
|
+
async (chat, archived) => {
|
|
322
|
+
if (archiving.current.has(chat.id)) return;
|
|
323
|
+
const accepted = context.captureWorkspaceInvocation(chat.workspaceId);
|
|
324
|
+
if (!accepted) return;
|
|
325
|
+
archiving.current.add(chat.id);
|
|
326
|
+
try {
|
|
327
|
+
const updated = await requestSessionArchive(
|
|
328
|
+
context,
|
|
329
|
+
chat,
|
|
330
|
+
archived,
|
|
331
|
+
sessionDisplayTitle(chat),
|
|
332
|
+
(next) => void setArchivedRef.current?.({ ...chat, archived: !next }, next)
|
|
333
|
+
);
|
|
334
|
+
if (!updated) return;
|
|
335
|
+
if (!context.ownsWorkspaceInvocation(chat.workspaceId, accepted)) return;
|
|
336
|
+
context.setSession(
|
|
337
|
+
(current) => current?.id === updated.id && current.workspaceId === updated.workspaceId ? applySessionArchiveProjection(current, updated) : current
|
|
338
|
+
);
|
|
339
|
+
notifySessionListChanged({
|
|
340
|
+
workspaceId: chat.workspaceId,
|
|
341
|
+
sessionId: chat.id,
|
|
342
|
+
archived: updated.archived
|
|
343
|
+
});
|
|
344
|
+
} catch (error) {
|
|
345
|
+
if (!context.ownsWorkspaceInvocation(chat.workspaceId, accepted)) return;
|
|
346
|
+
toast.error(archived ? "Couldn't archive the chat." : "Couldn't undo the archive.", {
|
|
347
|
+
description: userErrorText(error)
|
|
348
|
+
});
|
|
349
|
+
} finally {
|
|
350
|
+
archiving.current.delete(chat.id);
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
[context]
|
|
354
|
+
);
|
|
355
|
+
setArchivedRef.current = setArchived;
|
|
356
|
+
const setUnread = useCallback(
|
|
357
|
+
async (chat, unread) => {
|
|
358
|
+
try {
|
|
359
|
+
const updated = await context.client.updateSessionAttention(chat.workspaceId, chat.id, {
|
|
360
|
+
unread,
|
|
361
|
+
expectedVersion: chat.attentionVersion ?? 0
|
|
362
|
+
});
|
|
363
|
+
context.setSession(
|
|
364
|
+
(current) => current?.id === updated.id ? {
|
|
365
|
+
...current,
|
|
366
|
+
...updated.unread !== void 0 ? { unread: updated.unread } : {},
|
|
367
|
+
...updated.attentionVersion !== void 0 ? { attentionVersion: updated.attentionVersion } : {}
|
|
368
|
+
} : current
|
|
369
|
+
);
|
|
370
|
+
notifySessionListChanged({ workspaceId: chat.workspaceId, sessionId: chat.id });
|
|
371
|
+
toast.success(unread ? "Marked as unread" : "Marked as read");
|
|
372
|
+
} catch (error) {
|
|
373
|
+
toast.error("Couldn't update the chat.", {
|
|
374
|
+
description: userErrorText(error)
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
[context]
|
|
379
|
+
);
|
|
380
|
+
return useMemo(
|
|
381
|
+
() => ({
|
|
382
|
+
linkTo,
|
|
383
|
+
copyLink: copyLink2,
|
|
384
|
+
setPinned,
|
|
385
|
+
setArchived,
|
|
386
|
+
setUnread,
|
|
387
|
+
archiveLabel: (chat) => archiveActionLabel(context, chat)
|
|
388
|
+
}),
|
|
389
|
+
[linkTo, copyLink2, setPinned, setArchived, setUnread, context]
|
|
390
|
+
);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
// src/app/lib/actions/registry.ts
|
|
394
|
+
import {
|
|
395
|
+
ArchiveIcon,
|
|
396
|
+
ArrowDownIcon,
|
|
397
|
+
ArrowUpIcon,
|
|
398
|
+
AudioLinesIcon,
|
|
399
|
+
ChevronsUpDownIcon,
|
|
400
|
+
CommandIcon,
|
|
401
|
+
GitForkIcon,
|
|
402
|
+
HistoryIcon,
|
|
403
|
+
InboxIcon,
|
|
404
|
+
KeyboardIcon,
|
|
405
|
+
LinkIcon,
|
|
406
|
+
MailIcon,
|
|
407
|
+
MailOpenIcon,
|
|
408
|
+
MessageCircleQuestionIcon,
|
|
409
|
+
MicIcon,
|
|
410
|
+
PanelLeftIcon,
|
|
411
|
+
PanelRightIcon,
|
|
412
|
+
PencilIcon,
|
|
413
|
+
PinIcon,
|
|
414
|
+
PinOffIcon,
|
|
415
|
+
PlusIcon,
|
|
416
|
+
SearchIcon,
|
|
417
|
+
SquareIcon,
|
|
418
|
+
TextSearchIcon
|
|
419
|
+
} from "lucide-react";
|
|
420
|
+
function actionTitle(action, env, chat) {
|
|
421
|
+
return typeof action.title === "string" ? action.title : action.title(env, chat);
|
|
422
|
+
}
|
|
423
|
+
function actionIcon(action, chat) {
|
|
424
|
+
return action.iconFor?.(chat) ?? action.icon;
|
|
425
|
+
}
|
|
426
|
+
var ALWAYS = () => true;
|
|
427
|
+
function stepChat(env, direction) {
|
|
428
|
+
const order = env.sidebarOrder();
|
|
429
|
+
if (order.length === 0) return;
|
|
430
|
+
const index = env.currentChat ? order.indexOf(env.currentChat.id) : -1;
|
|
431
|
+
const next = index < 0 ? direction === 1 ? 0 : order.length - 1 : index + direction;
|
|
432
|
+
if (next < 0 || next >= order.length) return;
|
|
433
|
+
env.openChat(order[next]);
|
|
434
|
+
}
|
|
435
|
+
function stepWorkspace(workspaces, currentId, direction) {
|
|
436
|
+
if (workspaces.length < 2) return null;
|
|
437
|
+
const index = workspaces.findIndex((workspace) => workspace.id === currentId);
|
|
438
|
+
const next = index < 0 ? direction === 1 ? 0 : workspaces.length - 1 : (index + direction + workspaces.length) % workspaces.length;
|
|
439
|
+
return workspaces[next].id;
|
|
440
|
+
}
|
|
441
|
+
function switchWorkspace(env, direction) {
|
|
442
|
+
const id = stepWorkspace(env.workspaces, env.workspaceId, direction);
|
|
443
|
+
if (id && id !== env.workspaceId) env.openWorkspace(id);
|
|
444
|
+
}
|
|
445
|
+
var hasOtherWorkspaces = (env) => env.workspaces.length > 1;
|
|
446
|
+
function meetingBusy(env) {
|
|
447
|
+
return !canStartRecording(env.meetings?.state);
|
|
448
|
+
}
|
|
449
|
+
var PINNED_CHORDS = Array.from({ length: 9 }, (_, index) => ({
|
|
450
|
+
code: `Digit${index + 1}`,
|
|
451
|
+
mod: true,
|
|
452
|
+
only: "desktop"
|
|
453
|
+
}));
|
|
454
|
+
var appActionList;
|
|
455
|
+
function appActions() {
|
|
456
|
+
return appActionList ??= [
|
|
457
|
+
{
|
|
458
|
+
id: "commandMenu.open",
|
|
459
|
+
title: "Command menu",
|
|
460
|
+
group: "help",
|
|
461
|
+
icon: CommandIcon,
|
|
462
|
+
chords: [{ code: "KeyK", mod: true }],
|
|
463
|
+
inCommandMenu: false,
|
|
464
|
+
desktopMenu: "go",
|
|
465
|
+
available: ALWAYS,
|
|
466
|
+
run: (env) => env.openCommandMenu()
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
id: "chat.new",
|
|
470
|
+
title: "New chat",
|
|
471
|
+
group: "chat",
|
|
472
|
+
icon: PlusIcon,
|
|
473
|
+
keywords: ["start", "create", "session"],
|
|
474
|
+
// The desktop menu shows its first key, the familiar ⌘N; browsers keep ⌘N for windows.
|
|
475
|
+
chords: [
|
|
476
|
+
{ code: "KeyN", mod: true, only: "desktop" },
|
|
477
|
+
{ code: "KeyO", mod: true, shift: true }
|
|
478
|
+
],
|
|
479
|
+
suggested: true,
|
|
480
|
+
desktopMenu: "file",
|
|
481
|
+
available: ALWAYS,
|
|
482
|
+
run: (env) => env.newChat()
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
// The Meetings page's Start recording button, from anywhere. While one
|
|
486
|
+
// records, it shows that recording instead of starting a second one, as a
|
|
487
|
+
// desktop call notification's Record does. ⌃⌘N sits beside New chat's ⌘N
|
|
488
|
+
// and, like Archive, is Ctrl+Alt elsewhere; see the shortcuts doc.
|
|
489
|
+
id: "meetings.start",
|
|
490
|
+
title: (env) => meetingBusy(env) ? "Go to recording" : "Start recording",
|
|
491
|
+
group: "meetings",
|
|
492
|
+
icon: MicIcon,
|
|
493
|
+
keywords: ["meeting", "new meeting", "record", "notetaker", "transcript", "audio", "call"],
|
|
494
|
+
chords: [
|
|
495
|
+
{ code: "KeyN", mod: true, control: true, platform: "mac" },
|
|
496
|
+
{ code: "KeyN", mod: true, alt: true, platform: "other" }
|
|
497
|
+
],
|
|
498
|
+
desktopMenu: "file",
|
|
499
|
+
available: (env) => env.meetings !== null,
|
|
500
|
+
run: (env) => meetingBusy(env) ? env.meetings?.show() : env.meetings?.start()
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
// No key, so a stray press never ends a meeting.
|
|
504
|
+
id: "meetings.stop",
|
|
505
|
+
title: "Stop recording",
|
|
506
|
+
group: "meetings",
|
|
507
|
+
icon: SquareIcon,
|
|
508
|
+
keywords: ["meeting", "end", "finish", "record"],
|
|
509
|
+
desktopMenu: "file",
|
|
510
|
+
available: (env) => env.meetings?.state === "recording" || env.meetings?.state === "paused",
|
|
511
|
+
run: (env) => env.meetings?.stop()
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
// The meeting on screen's Ask field, from ⌘K. Typing a question first
|
|
515
|
+
// asks it straight away; see the menu's "Ask about this meeting: …" row.
|
|
516
|
+
id: "meeting.ask",
|
|
517
|
+
title: "Ask about this meeting",
|
|
518
|
+
group: "meetings",
|
|
519
|
+
icon: MessageCircleQuestionIcon,
|
|
520
|
+
keywords: ["question", "chat", "agent", "summary", "notes"],
|
|
521
|
+
forMeeting: true,
|
|
522
|
+
opensDialog: true,
|
|
523
|
+
available: (env) => Boolean(env.meetingPages?.current?.ask),
|
|
524
|
+
run: (env) => env.meetingPages?.current?.ask?.(null)
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
id: "meeting.copyLink",
|
|
528
|
+
title: "Copy meeting link",
|
|
529
|
+
group: "meetings",
|
|
530
|
+
icon: LinkIcon,
|
|
531
|
+
keywords: ["share", "url", "address"],
|
|
532
|
+
forMeeting: true,
|
|
533
|
+
available: (env) => Boolean(env.meetingPages?.current),
|
|
534
|
+
run: (env) => {
|
|
535
|
+
const current = env.meetingPages?.current;
|
|
536
|
+
if (current) return env.meetingPages?.copyLink(current.recordingId);
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
id: "chat.copyLink",
|
|
541
|
+
title: "Copy link",
|
|
542
|
+
group: "chat",
|
|
543
|
+
icon: LinkIcon,
|
|
544
|
+
keywords: ["share", "url", "address"],
|
|
545
|
+
chords: [{ code: "Comma", mod: true, shift: true }],
|
|
546
|
+
forChat: true,
|
|
547
|
+
suggested: true,
|
|
548
|
+
desktopMenu: "chat",
|
|
549
|
+
available: (_env, chat) => chat !== null,
|
|
550
|
+
run: (env, chat) => chat ? env.ops.copyLink(chat) : void 0
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
id: "chat.pin",
|
|
554
|
+
title: (_env, chat) => chat?.pinned ? "Unpin" : "Pin",
|
|
555
|
+
group: "chat",
|
|
556
|
+
icon: PinIcon,
|
|
557
|
+
iconFor: (chat) => chat?.pinned ? PinOffIcon : PinIcon,
|
|
558
|
+
keywords: ["unpin", "favorite", "star"],
|
|
559
|
+
chords: [{ code: "KeyP", mod: true, alt: true }],
|
|
560
|
+
forChat: true,
|
|
561
|
+
suggested: true,
|
|
562
|
+
desktopMenu: "chat",
|
|
563
|
+
available: (_env, chat) => chat !== null && !chat.archived,
|
|
564
|
+
run: (env, chat) => chat ? env.ops.setPinned(chat, !chat.pinned) : void 0
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
id: "chat.rename",
|
|
568
|
+
title: "Rename",
|
|
569
|
+
group: "chat",
|
|
570
|
+
icon: PencilIcon,
|
|
571
|
+
keywords: ["title", "name"],
|
|
572
|
+
forChat: true,
|
|
573
|
+
desktopMenu: "chat",
|
|
574
|
+
// Renaming happens in the chat's own title, so only for the chat on screen.
|
|
575
|
+
available: (env, chat) => chat !== null && env.currentChat?.id === chat.id,
|
|
576
|
+
run: (env) => env.renameCurrentChat()
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
id: "chat.fork",
|
|
580
|
+
title: "Fork chat",
|
|
581
|
+
group: "chat",
|
|
582
|
+
icon: GitForkIcon,
|
|
583
|
+
keywords: ["copy", "duplicate", "branch", "clone"],
|
|
584
|
+
forChat: true,
|
|
585
|
+
opensDialog: true,
|
|
586
|
+
desktopMenu: "chat",
|
|
587
|
+
// From the latest message, as the fork button under a message does; only
|
|
588
|
+
// for the chat on screen, whose messages are loaded.
|
|
589
|
+
available: (env, chat) => chat !== null && env.currentChat?.id === chat.id && env.canForkCurrentChat,
|
|
590
|
+
run: (env) => env.forkCurrentChat()
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
id: "chat.unread",
|
|
594
|
+
title: (_env, chat) => chat?.unread ? "Mark as read" : "Mark as unread",
|
|
595
|
+
group: "chat",
|
|
596
|
+
icon: MailIcon,
|
|
597
|
+
iconFor: (chat) => chat?.unread ? MailOpenIcon : MailIcon,
|
|
598
|
+
keywords: ["read", "unread"],
|
|
599
|
+
forChat: true,
|
|
600
|
+
desktopMenu: "chat",
|
|
601
|
+
available: (_env, chat) => chat !== null && !chat.archived,
|
|
602
|
+
run: (env, chat) => chat ? env.ops.setUnread(chat, !chat.unread) : void 0
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
id: "chat.archive",
|
|
606
|
+
title: "Archive",
|
|
607
|
+
group: "chat",
|
|
608
|
+
icon: ArchiveIcon,
|
|
609
|
+
keywords: ["archive", "done", "storage"],
|
|
610
|
+
// Apple Mail's Archive key; Ctrl+Alt elsewhere, as Pin, since browsers there
|
|
611
|
+
// keep Ctrl+Shift+A for tab search.
|
|
612
|
+
chords: [
|
|
613
|
+
{ code: "KeyA", mod: true, control: true, platform: "mac" },
|
|
614
|
+
{ code: "KeyA", mod: true, alt: true, platform: "other" }
|
|
615
|
+
],
|
|
616
|
+
forChat: true,
|
|
617
|
+
desktopMenu: "chat",
|
|
618
|
+
// Archived chats stay archived; only people who can control a chat archive it.
|
|
619
|
+
available: (env, chat) => chat !== null && chat.parentSessionId === null && !chat.archived && (env.ops.archiveLabel ? env.ops.archiveLabel(chat) !== null : true),
|
|
620
|
+
run: (env, chat) => chat ? env.ops.setArchived(chat, true) : void 0
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
id: "chat.find",
|
|
624
|
+
title: "Find in chat",
|
|
625
|
+
group: "chat",
|
|
626
|
+
icon: TextSearchIcon,
|
|
627
|
+
keywords: ["search", "find"],
|
|
628
|
+
chords: [{ code: "KeyF", mod: true }],
|
|
629
|
+
desktopMenu: "chat",
|
|
630
|
+
// The conversation owns ⌘F itself; the registry lists it so it is discoverable.
|
|
631
|
+
available: (env) => env.currentChat !== null,
|
|
632
|
+
run: (env) => env.findInChat()
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
id: "go.inbox",
|
|
636
|
+
title: "Inbox",
|
|
637
|
+
group: "navigate",
|
|
638
|
+
icon: InboxIcon,
|
|
639
|
+
keywords: ["notifications", "replies", "needs you"],
|
|
640
|
+
chords: [
|
|
641
|
+
{ code: "KeyI", mod: true, shift: true, platform: "mac" },
|
|
642
|
+
// Browsers on Windows and Linux open developer tools with Ctrl+Shift+I.
|
|
643
|
+
{ code: "KeyI", mod: true, shift: true, platform: "other", only: "desktop" }
|
|
644
|
+
],
|
|
645
|
+
suggested: true,
|
|
646
|
+
desktopMenu: "go",
|
|
647
|
+
available: ALWAYS,
|
|
648
|
+
run: (env) => env.openInbox()
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
id: "go.meetings",
|
|
652
|
+
title: "Meetings",
|
|
653
|
+
group: "navigate",
|
|
654
|
+
icon: AudioLinesIcon,
|
|
655
|
+
keywords: ["recordings", "transcripts", "calls", "notes"],
|
|
656
|
+
suggested: true,
|
|
657
|
+
desktopMenu: "go",
|
|
658
|
+
available: (env) => env.meetingPages !== null,
|
|
659
|
+
run: (env) => env.meetingPages?.openList()
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
id: "go.previousChat",
|
|
663
|
+
title: "Previous chat",
|
|
664
|
+
group: "navigate",
|
|
665
|
+
icon: ArrowUpIcon,
|
|
666
|
+
chords: [{ code: "ArrowUp", alt: true }],
|
|
667
|
+
inCommandMenu: false,
|
|
668
|
+
available: (env) => env.chatList,
|
|
669
|
+
run: (env) => stepChat(env, -1)
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
id: "go.nextChat",
|
|
673
|
+
title: "Next chat",
|
|
674
|
+
group: "navigate",
|
|
675
|
+
icon: ArrowDownIcon,
|
|
676
|
+
chords: [{ code: "ArrowDown", alt: true }],
|
|
677
|
+
inCommandMenu: false,
|
|
678
|
+
available: (env) => env.chatList,
|
|
679
|
+
run: (env) => stepChat(env, 1)
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
// Hold Control to see recent chats and keep pressing Tab; release to open.
|
|
683
|
+
// The actions provider runs the switcher itself because it needs Control's
|
|
684
|
+
// release, so the desktop menu bar never owns this key.
|
|
685
|
+
id: "go.recentChat",
|
|
686
|
+
title: "Switch to recent chat",
|
|
687
|
+
group: "navigate",
|
|
688
|
+
icon: HistoryIcon,
|
|
689
|
+
chords: [
|
|
690
|
+
{ code: "Tab", control: true, platform: "mac", only: "desktop" },
|
|
691
|
+
// Browsers keep Control+Tab for their own tabs.
|
|
692
|
+
{ code: "Tab", mod: true, platform: "other", only: "desktop" }
|
|
693
|
+
],
|
|
694
|
+
inCommandMenu: false,
|
|
695
|
+
available: ALWAYS,
|
|
696
|
+
run: (env) => env.switchToRecentChat()
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
id: "go.pinnedChat",
|
|
700
|
+
title: "Pinned chat 1 to 9",
|
|
701
|
+
group: "navigate",
|
|
702
|
+
icon: PinIcon,
|
|
703
|
+
chords: PINNED_CHORDS,
|
|
704
|
+
chordSummary: (platform) => platform === "mac" ? "\u23181 \u2013 \u23189" : "Ctrl+1 \u2013 Ctrl+9",
|
|
705
|
+
inCommandMenu: false,
|
|
706
|
+
available: (env) => env.chatList,
|
|
707
|
+
run: (env, _chat, chord) => {
|
|
708
|
+
const index = chord ? Number(chord.code.slice(5)) - 1 : 0;
|
|
709
|
+
const id = env.pinnedOrder()[index];
|
|
710
|
+
if (id) env.openChat(id);
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
id: "go.searchMessages",
|
|
715
|
+
title: "Search messages",
|
|
716
|
+
group: "navigate",
|
|
717
|
+
icon: SearchIcon,
|
|
718
|
+
keywords: ["find", "history", "full text"],
|
|
719
|
+
opensDialog: true,
|
|
720
|
+
desktopMenu: "go",
|
|
721
|
+
available: ALWAYS,
|
|
722
|
+
run: (env) => env.searchMessages()
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
id: "go.switchWorkspace",
|
|
726
|
+
title: "Switch workspace\u2026",
|
|
727
|
+
group: "navigate",
|
|
728
|
+
icon: ChevronsUpDownIcon,
|
|
729
|
+
keywords: ["workspace", "organization", "team", "change", "go to"],
|
|
730
|
+
desktopMenu: "go",
|
|
731
|
+
available: hasOtherWorkspaces,
|
|
732
|
+
run: (env) => env.openWorkspacePicker()
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
// The workspace picker's order, wrapping around. ⌥⌘ and arrows sit in the
|
|
736
|
+
// same place on every keyboard layout, and browsers leave them alone.
|
|
737
|
+
id: "go.previousWorkspace",
|
|
738
|
+
title: "Previous workspace",
|
|
739
|
+
group: "navigate",
|
|
740
|
+
icon: ArrowUpIcon,
|
|
741
|
+
chords: [
|
|
742
|
+
{ code: "ArrowUp", mod: true, alt: true },
|
|
743
|
+
// Some Linux desktops take Ctrl+Alt+arrows to switch their own workspaces.
|
|
744
|
+
{ code: "PageUp", mod: true, shift: true, platform: "other", only: "desktop" }
|
|
745
|
+
],
|
|
746
|
+
inCommandMenu: false,
|
|
747
|
+
desktopMenu: "go",
|
|
748
|
+
available: hasOtherWorkspaces,
|
|
749
|
+
run: (env) => switchWorkspace(env, -1)
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
id: "go.nextWorkspace",
|
|
753
|
+
title: "Next workspace",
|
|
754
|
+
group: "navigate",
|
|
755
|
+
icon: ArrowDownIcon,
|
|
756
|
+
chords: [
|
|
757
|
+
{ code: "ArrowDown", mod: true, alt: true },
|
|
758
|
+
{ code: "PageDown", mod: true, shift: true, platform: "other", only: "desktop" }
|
|
759
|
+
],
|
|
760
|
+
inCommandMenu: false,
|
|
761
|
+
desktopMenu: "go",
|
|
762
|
+
available: hasOtherWorkspaces,
|
|
763
|
+
run: (env) => switchWorkspace(env, 1)
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
id: "view.sidebar",
|
|
767
|
+
title: "Toggle sidebar",
|
|
768
|
+
group: "view",
|
|
769
|
+
icon: PanelLeftIcon,
|
|
770
|
+
keywords: ["hide", "show", "collapse", "rail"],
|
|
771
|
+
// ⌘B as in most editors and chat apps. It is bold in rich text, so the menu
|
|
772
|
+
// bar shows the platform's standard sidebar key instead, which also works.
|
|
773
|
+
chords: [
|
|
774
|
+
{ code: "KeyB", mod: true, formatting: true },
|
|
775
|
+
{ code: "KeyS", mod: true, control: true, platform: "mac" },
|
|
776
|
+
{ code: "KeyS", mod: true, shift: true, platform: "other" }
|
|
777
|
+
],
|
|
778
|
+
desktopMenu: "view",
|
|
779
|
+
available: (env) => env.chatList,
|
|
780
|
+
run: (env) => env.toggleSidebar()
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
id: "view.workspacePanel",
|
|
784
|
+
title: "Toggle workspace panel",
|
|
785
|
+
group: "view",
|
|
786
|
+
icon: PanelRightIcon,
|
|
787
|
+
keywords: ["right", "inspector", "files", "browser", "terminal", "hide", "show"],
|
|
788
|
+
// The second sidebar's key in VS Code and Cursor.
|
|
789
|
+
chords: [{ code: "KeyB", mod: true, alt: true }],
|
|
790
|
+
desktopMenu: "view",
|
|
791
|
+
available: (env) => env.workspacePanel && env.currentChat !== null,
|
|
792
|
+
run: (env) => env.toggleWorkspacePanel()
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
id: "help.shortcuts",
|
|
796
|
+
title: "Keyboard shortcuts",
|
|
797
|
+
group: "help",
|
|
798
|
+
icon: KeyboardIcon,
|
|
799
|
+
keywords: ["keys", "hotkeys", "cheat sheet", "help"],
|
|
800
|
+
chords: [{ code: "Slash", mod: true }],
|
|
801
|
+
desktopMenu: "help",
|
|
802
|
+
available: ALWAYS,
|
|
803
|
+
run: (env) => env.openShortcutSheet()
|
|
804
|
+
}
|
|
805
|
+
];
|
|
806
|
+
}
|
|
807
|
+
function findAction(id) {
|
|
808
|
+
return appActions().find((action) => action.id === id);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
// src/app/lib/actions/actions-provider.tsx
|
|
812
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
813
|
+
var CommandMenu = lazy(() => import("./app/components/command-menu/command-menu.js"));
|
|
814
|
+
var ShortcutSheet = lazy(() => import("./app/components/command-menu/shortcut-sheet.js"));
|
|
815
|
+
var loadChatSwitcher = () => import("./app/components/command-menu/chat-switcher.js");
|
|
816
|
+
var ChatSwitcher = lazy(loadChatSwitcher);
|
|
817
|
+
var ActionsContext = createContext(null);
|
|
818
|
+
function useAppActions() {
|
|
819
|
+
return useContext(ActionsContext);
|
|
820
|
+
}
|
|
821
|
+
function useActionShortcut(actionId) {
|
|
822
|
+
const enabled = useSessionUiFeature("keyboardShortcuts");
|
|
823
|
+
const action = findAction(actionId);
|
|
824
|
+
if (!enabled || !action) return null;
|
|
825
|
+
const platform = currentPlatform();
|
|
826
|
+
const chords = applicableChords(action.chords, surface, platform);
|
|
827
|
+
const chord = chords[0];
|
|
828
|
+
if (!chord) return null;
|
|
829
|
+
return {
|
|
830
|
+
label: chordLabel(chord, platform),
|
|
831
|
+
ariaKeys: chords.map((candidate) => chordAriaKeys(candidate, platform)).join(" "),
|
|
832
|
+
chord
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
var surface = desktopBridge ? "desktop" : "web";
|
|
836
|
+
function isRichTextEditor(target) {
|
|
837
|
+
return target instanceof HTMLElement && target.isContentEditable;
|
|
838
|
+
}
|
|
839
|
+
function insideOtherOverlay(target) {
|
|
840
|
+
if (!(target instanceof Element)) return false;
|
|
841
|
+
const overlay = target.closest(
|
|
842
|
+
'[role="dialog"],[role="alertdialog"],[role="menu"],[role="listbox"]'
|
|
843
|
+
);
|
|
844
|
+
return Boolean(overlay && !overlay.closest("[data-og-command-menu],[data-og-shortcut-sheet]"));
|
|
845
|
+
}
|
|
846
|
+
function menuOwnedChord(action, platform) {
|
|
847
|
+
return applicableChords(action.chords, "desktop", platform).find(
|
|
848
|
+
(chord) => (!chord.alt || chord.mod) && !chord.formatting
|
|
849
|
+
);
|
|
850
|
+
}
|
|
851
|
+
function menuChord(action, platform) {
|
|
852
|
+
const chord = menuOwnedChord(action, platform);
|
|
853
|
+
return chord ? chordAccelerator(chord) : null;
|
|
854
|
+
}
|
|
855
|
+
function insideCommandMenu(target) {
|
|
856
|
+
return target instanceof Element && Boolean(target.closest("[data-og-command-menu]"));
|
|
857
|
+
}
|
|
858
|
+
function textEntryIsEmpty(target) {
|
|
859
|
+
if (target instanceof HTMLTextAreaElement || target instanceof HTMLInputElement) {
|
|
860
|
+
return target.value.length === 0;
|
|
861
|
+
}
|
|
862
|
+
if (target instanceof HTMLElement && target.isContentEditable) {
|
|
863
|
+
return (target.textContent ?? "").length === 0;
|
|
864
|
+
}
|
|
865
|
+
return true;
|
|
866
|
+
}
|
|
867
|
+
function ActionsProvider(props) {
|
|
868
|
+
const app = useAppContext();
|
|
869
|
+
const rail = useRail();
|
|
870
|
+
const navigate = useNavigate();
|
|
871
|
+
const page = usePage();
|
|
872
|
+
const ops = useChatOperations();
|
|
873
|
+
const uiEvents = useUiEventTarget("document");
|
|
874
|
+
const windowEvents = useUiEventTarget("window");
|
|
875
|
+
const chatList = useSessionUiFeature("chatList");
|
|
876
|
+
const workspacePanel = useSessionUiFeature("dock");
|
|
877
|
+
const { inspectorOpen, setInspectorOpen } = app;
|
|
878
|
+
const keyboardShortcuts = useSessionUiFeature("keyboardShortcuts");
|
|
879
|
+
const recorder = useMeetingRecorderControls();
|
|
880
|
+
const platform = useMemo2(() => currentPlatform(), []);
|
|
881
|
+
const workspaceId = rail.workspaceId;
|
|
882
|
+
const subjectId = app.accessContext.subjectId;
|
|
883
|
+
const pathname = useRouterState({ select: (state) => state.location.pathname });
|
|
884
|
+
const routeChatId = /\/sessions\/([^/]+)/.exec(pathname)?.[1] ?? null;
|
|
885
|
+
const routeSiteId = /\/sites\/([^/]+)/.exec(pathname)?.[1] ?? null;
|
|
886
|
+
const routeMeetingId = /\/meetings\/([^/]+)/.exec(pathname)?.[1] ?? null;
|
|
887
|
+
const meetingOnScreen = useMeetingOnScreen(uiEvents);
|
|
888
|
+
const currentChat = app.session && app.session.id === routeChatId && app.session.workspaceId === workspaceId ? app.session : null;
|
|
889
|
+
const workspaces = useMemo2(
|
|
890
|
+
() => workspacesByOrganization(
|
|
891
|
+
t,
|
|
892
|
+
app.accessContext,
|
|
893
|
+
navigableWorkspaces(app.workspaces, app.managedSelfContext, workspaceId)
|
|
894
|
+
).flatMap(
|
|
895
|
+
(group) => group.workspaces.map((workspace) => ({
|
|
896
|
+
id: workspace.id,
|
|
897
|
+
name: workspace.name,
|
|
898
|
+
organization: group.org.label,
|
|
899
|
+
personal: isPersonalWorkspace(workspace, app.managedSelfContext)
|
|
900
|
+
}))
|
|
901
|
+
),
|
|
902
|
+
[app.accessContext, app.workspaces, app.managedSelfContext, workspaceId]
|
|
903
|
+
);
|
|
904
|
+
const canForkCurrentChat = currentChat !== null && app.clientConfig.auth.mode === "managedSession" && app.authSession !== null && Boolean(app.session?.tenancy) && hasWorkspacePermission(app.accessContext, workspaceId, "sessions:create");
|
|
905
|
+
const meetings = useMemo2(() => {
|
|
906
|
+
if (!recorder || recorder.supported === false) return null;
|
|
907
|
+
const showMeetings = () => {
|
|
908
|
+
rail.setDrawerOpen(false);
|
|
909
|
+
void navigate({ to: "/workspaces/$workspaceId/meetings", params: { workspaceId } });
|
|
910
|
+
};
|
|
911
|
+
return {
|
|
912
|
+
state: recorder.state,
|
|
913
|
+
start: () => {
|
|
914
|
+
recorder.requestStart();
|
|
915
|
+
showMeetings();
|
|
916
|
+
},
|
|
917
|
+
show: showMeetings,
|
|
918
|
+
stop: async () => {
|
|
919
|
+
const stopped = await recorder.stop();
|
|
920
|
+
if (stopped && !stopped.opened) {
|
|
921
|
+
void navigate({
|
|
922
|
+
to: "/workspaces/$workspaceId/meetings/$recordingId",
|
|
923
|
+
params: { workspaceId: stopped.workspaceId, recordingId: stopped.recordingId }
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
};
|
|
928
|
+
}, [recorder, rail, navigate, workspaceId]);
|
|
929
|
+
const recordingsClient = useMemo2(
|
|
930
|
+
() => typeof app.client?.requestJson === "function" ? new OpenGeniRecordingsClient(app.client) : null,
|
|
931
|
+
[app.client]
|
|
932
|
+
);
|
|
933
|
+
const meetingPages = useMemo2(() => {
|
|
934
|
+
if (!recorder || !recordingsClient) return null;
|
|
935
|
+
const link = (recordingId) => `${page.origin()}${meetingPath(workspaceId, recordingId)}`;
|
|
936
|
+
const onScreen = routeMeetingId && meetingOnScreen?.recordingId === routeMeetingId ? meetingOnScreen : null;
|
|
937
|
+
return {
|
|
938
|
+
openList: () => {
|
|
939
|
+
rail.setDrawerOpen(false);
|
|
940
|
+
void navigate({ to: "/workspaces/$workspaceId/meetings", params: { workspaceId } });
|
|
941
|
+
},
|
|
942
|
+
open: (recordingId) => {
|
|
943
|
+
rail.setDrawerOpen(false);
|
|
944
|
+
void navigate({
|
|
945
|
+
to: "/workspaces/$workspaceId/meetings/$recordingId",
|
|
946
|
+
params: { workspaceId, recordingId }
|
|
947
|
+
});
|
|
948
|
+
},
|
|
949
|
+
link,
|
|
950
|
+
copyLink: (recordingId) => copyLink(link(recordingId)),
|
|
951
|
+
list: async (options) => {
|
|
952
|
+
const { signal, ...rest } = options;
|
|
953
|
+
const answer = await recordingsClient.listRecordings(workspaceId, {
|
|
954
|
+
...rest,
|
|
955
|
+
...signal ? { signal } : {}
|
|
956
|
+
});
|
|
957
|
+
return answer.recordings;
|
|
958
|
+
},
|
|
959
|
+
current: routeMeetingId ? { recordingId: routeMeetingId, ask: onScreen?.ask ?? null } : null
|
|
960
|
+
};
|
|
961
|
+
}, [
|
|
962
|
+
recorder,
|
|
963
|
+
recordingsClient,
|
|
964
|
+
page,
|
|
965
|
+
workspaceId,
|
|
966
|
+
routeMeetingId,
|
|
967
|
+
meetingOnScreen,
|
|
968
|
+
rail,
|
|
969
|
+
navigate
|
|
970
|
+
]);
|
|
971
|
+
const [menu, setMenu] = useState({ open: false, mounted: false, workspaces: false });
|
|
972
|
+
const [sheet, setSheet] = useState({ open: false, mounted: false });
|
|
973
|
+
const railRef = useRef2(rail);
|
|
974
|
+
railRef.current = rail;
|
|
975
|
+
const returnFocus = useRef2(null);
|
|
976
|
+
const menuOpen = useRef2(false);
|
|
977
|
+
const sheetOpen = useRef2(false);
|
|
978
|
+
menuOpen.current = menu.open;
|
|
979
|
+
sheetOpen.current = sheet.open;
|
|
980
|
+
const rememberFocus = useCallback2(() => {
|
|
981
|
+
if (menuOpen.current || sheetOpen.current || typeof document === "undefined") return;
|
|
982
|
+
const drawerTrigger = railRef.current.drawerOpen ? railRef.current.drawerTriggerRef.current : null;
|
|
983
|
+
if (drawerTrigger) {
|
|
984
|
+
returnFocus.current = drawerTrigger;
|
|
985
|
+
return;
|
|
986
|
+
}
|
|
987
|
+
const active = document.activeElement;
|
|
988
|
+
returnFocus.current = active instanceof HTMLElement && active !== document.body ? active : null;
|
|
989
|
+
}, []);
|
|
990
|
+
const openCommandMenu = useCallback2(
|
|
991
|
+
(pickWorkspace = false) => {
|
|
992
|
+
rememberFocus();
|
|
993
|
+
setSheet((current) => current.open ? { ...current, open: false } : current);
|
|
994
|
+
railRef.current.handOffDrawer();
|
|
995
|
+
setMenu((current) => ({
|
|
996
|
+
open: pickWorkspace ? true : !current.open,
|
|
997
|
+
mounted: true,
|
|
998
|
+
workspaces: pickWorkspace
|
|
999
|
+
}));
|
|
1000
|
+
},
|
|
1001
|
+
[rememberFocus]
|
|
1002
|
+
);
|
|
1003
|
+
const openShortcutSheet = useCallback2(() => {
|
|
1004
|
+
rememberFocus();
|
|
1005
|
+
setMenu((current) => current.open ? { ...current, open: false } : current);
|
|
1006
|
+
setSheet((current) => ({ open: !current.open, mounted: true }));
|
|
1007
|
+
}, [rememberFocus]);
|
|
1008
|
+
useEffect(() => {
|
|
1009
|
+
if (currentChat) recordChatVisit(subjectId, currentChat);
|
|
1010
|
+
}, [currentChat?.id, subjectId]);
|
|
1011
|
+
useEffect(() => {
|
|
1012
|
+
if (currentChat) rememberChats(subjectId, [currentChat]);
|
|
1013
|
+
}, [currentChat, subjectId]);
|
|
1014
|
+
const reachable = useMemo2(() => {
|
|
1015
|
+
const ids = new Set(workspaces.map((workspace) => workspace.id));
|
|
1016
|
+
return (id) => ids.has(id) || id === workspaceId;
|
|
1017
|
+
}, [workspaces, workspaceId]);
|
|
1018
|
+
const openChatForTyping = useCallback2(
|
|
1019
|
+
(chatId, inWorkspaceId) => {
|
|
1020
|
+
if (!rail.isMobile) {
|
|
1021
|
+
requestSessionComposerFocus(windowEvents, inWorkspaceId ?? workspaceId, chatId, "keyboard");
|
|
1022
|
+
}
|
|
1023
|
+
rail.openSession(chatId, inWorkspaceId);
|
|
1024
|
+
},
|
|
1025
|
+
[rail, windowEvents, workspaceId]
|
|
1026
|
+
);
|
|
1027
|
+
const env = useMemo2(
|
|
1028
|
+
() => ({
|
|
1029
|
+
workspaceId,
|
|
1030
|
+
subjectId,
|
|
1031
|
+
surface,
|
|
1032
|
+
platform,
|
|
1033
|
+
currentChat,
|
|
1034
|
+
currentSiteId: routeSiteId,
|
|
1035
|
+
ops,
|
|
1036
|
+
chatList,
|
|
1037
|
+
workspacePanel,
|
|
1038
|
+
workspaces,
|
|
1039
|
+
canForkCurrentChat,
|
|
1040
|
+
meetings,
|
|
1041
|
+
meetingPages,
|
|
1042
|
+
newChat: () => rail.startNewSession(),
|
|
1043
|
+
openChat: (chatId, inWorkspaceId) => openChatForTyping(chatId, inWorkspaceId),
|
|
1044
|
+
openSite: (siteId) => {
|
|
1045
|
+
rail.setDrawerOpen(false);
|
|
1046
|
+
void navigate({
|
|
1047
|
+
to: "/workspaces/$workspaceId/sites/$siteId",
|
|
1048
|
+
params: { workspaceId, siteId }
|
|
1049
|
+
});
|
|
1050
|
+
},
|
|
1051
|
+
siteLink: (siteId) => `${page.origin()}${sitePath(workspaceId, siteId)}`,
|
|
1052
|
+
openWorkspace: (id) => rail.openWorkspace(id),
|
|
1053
|
+
openWorkspacePicker: () => openCommandMenu(true),
|
|
1054
|
+
openInbox: () => {
|
|
1055
|
+
rail.setDrawerOpen(false);
|
|
1056
|
+
void navigate({ to: "/workspaces/$workspaceId/inbox", params: { workspaceId } });
|
|
1057
|
+
},
|
|
1058
|
+
toggleSidebar: () => rail.isMobile ? rail.setDrawerOpen(!rail.drawerOpen) : rail.toggleCollapsed(),
|
|
1059
|
+
toggleWorkspacePanel: () => {
|
|
1060
|
+
if (!inspectorOpen && rail.isMobile) rail.setDrawerOpen(false);
|
|
1061
|
+
setInspectorOpen((open) => !open);
|
|
1062
|
+
},
|
|
1063
|
+
findInChat: () => requestConversationFind(uiEvents),
|
|
1064
|
+
searchMessages: (query) => requestSessionSearch(windowEvents, workspaceId, void 0, query),
|
|
1065
|
+
renameCurrentChat: () => uiEvents.dispatchEvent(new Event(RENAME_CURRENT_CHAT_EVENT)),
|
|
1066
|
+
forkCurrentChat: () => uiEvents.dispatchEvent(new Event(FORK_CURRENT_CHAT_EVENT)),
|
|
1067
|
+
openCommandMenu: () => openCommandMenu(),
|
|
1068
|
+
openShortcutSheet,
|
|
1069
|
+
switchToRecentChat: () => {
|
|
1070
|
+
const directory3 = readChatDirectory(subjectId, workspaceId);
|
|
1071
|
+
const target = openChatSwitcher(directory3, routeChatId, false, reachable);
|
|
1072
|
+
const id = target?.ids[target.index];
|
|
1073
|
+
if (id) openChatForTyping(id, directory3.rows.get(id)?.workspaceId);
|
|
1074
|
+
},
|
|
1075
|
+
sidebarOrder: () => readChatDirectory(subjectId, workspaceId).sidebarOrder,
|
|
1076
|
+
pinnedOrder: () => readChatDirectory(subjectId, workspaceId).pinnedOrder
|
|
1077
|
+
}),
|
|
1078
|
+
[
|
|
1079
|
+
workspaceId,
|
|
1080
|
+
subjectId,
|
|
1081
|
+
platform,
|
|
1082
|
+
currentChat,
|
|
1083
|
+
routeSiteId,
|
|
1084
|
+
routeChatId,
|
|
1085
|
+
ops,
|
|
1086
|
+
chatList,
|
|
1087
|
+
workspacePanel,
|
|
1088
|
+
workspaces,
|
|
1089
|
+
canForkCurrentChat,
|
|
1090
|
+
reachable,
|
|
1091
|
+
meetings,
|
|
1092
|
+
meetingPages,
|
|
1093
|
+
inspectorOpen,
|
|
1094
|
+
setInspectorOpen,
|
|
1095
|
+
rail,
|
|
1096
|
+
openChatForTyping,
|
|
1097
|
+
navigate,
|
|
1098
|
+
page,
|
|
1099
|
+
uiEvents,
|
|
1100
|
+
windowEvents,
|
|
1101
|
+
openCommandMenu,
|
|
1102
|
+
openShortcutSheet
|
|
1103
|
+
]
|
|
1104
|
+
);
|
|
1105
|
+
const envRef = useRef2(env);
|
|
1106
|
+
envRef.current = env;
|
|
1107
|
+
const chordsFor = useCallback2(
|
|
1108
|
+
(action) => applicableChords(action.chords, surface, platform),
|
|
1109
|
+
[platform]
|
|
1110
|
+
);
|
|
1111
|
+
const run = useCallback2((action, chat, chord) => {
|
|
1112
|
+
const current = envRef.current;
|
|
1113
|
+
if (action.id !== "commandMenu.open") {
|
|
1114
|
+
setMenu((state) => state.open ? { ...state, open: false } : state);
|
|
1115
|
+
}
|
|
1116
|
+
if (action.id !== "help.shortcuts") {
|
|
1117
|
+
setSheet((state) => state.open ? { ...state, open: false } : state);
|
|
1118
|
+
}
|
|
1119
|
+
const target = chat === void 0 ? current.currentChat : chat;
|
|
1120
|
+
if (!action.available(current, action.forChat ? target : null)) return;
|
|
1121
|
+
void Promise.resolve(action.run(current, action.forChat ? target : null, chord)).catch(() => {
|
|
1122
|
+
});
|
|
1123
|
+
}, []);
|
|
1124
|
+
const menuBridge = desktopCapability("menuActions")?.menuActions ?? null;
|
|
1125
|
+
const menuSignature = useMemo2(() => {
|
|
1126
|
+
if (!menuBridge) return "";
|
|
1127
|
+
return JSON.stringify(
|
|
1128
|
+
appActions().filter((action) => action.desktopMenu).map((action) => {
|
|
1129
|
+
const chat = action.forChat ? env.currentChat : null;
|
|
1130
|
+
return {
|
|
1131
|
+
id: action.id,
|
|
1132
|
+
label: actionTitle(action, env, chat),
|
|
1133
|
+
section: action.desktopMenu,
|
|
1134
|
+
accelerator: menuChord(action, platform),
|
|
1135
|
+
enabled: action.available(env, chat)
|
|
1136
|
+
};
|
|
1137
|
+
})
|
|
1138
|
+
);
|
|
1139
|
+
}, [menuBridge, env, platform]);
|
|
1140
|
+
useEffect(() => {
|
|
1141
|
+
if (!menuBridge || !menuSignature) return;
|
|
1142
|
+
menuBridge.set(JSON.parse(menuSignature));
|
|
1143
|
+
}, [menuBridge, menuSignature]);
|
|
1144
|
+
useEffect(() => {
|
|
1145
|
+
if (!menuBridge) return;
|
|
1146
|
+
return menuBridge.onAction((id) => {
|
|
1147
|
+
const action = findAction(id);
|
|
1148
|
+
if (action) run(action);
|
|
1149
|
+
});
|
|
1150
|
+
}, [menuBridge, run]);
|
|
1151
|
+
useEffect(() => {
|
|
1152
|
+
const open = () => openCommandMenu();
|
|
1153
|
+
windowEvents.addEventListener(OPEN_COMMAND_MENU_EVENT, open);
|
|
1154
|
+
return () => windowEvents.removeEventListener(OPEN_COMMAND_MENU_EVENT, open);
|
|
1155
|
+
}, [windowEvents, openCommandMenu]);
|
|
1156
|
+
useEffect(() => {
|
|
1157
|
+
if (!keyboardShortcuts) return;
|
|
1158
|
+
const menuOwnsKeys = Boolean(menuBridge);
|
|
1159
|
+
function onKeyDown(event) {
|
|
1160
|
+
if (event.defaultPrevented) return;
|
|
1161
|
+
const current = envRef.current;
|
|
1162
|
+
for (const action of appActions()) {
|
|
1163
|
+
if (action.id === "chat.find") continue;
|
|
1164
|
+
if (action.id === "go.recentChat") continue;
|
|
1165
|
+
const chord = applicableChords(action.chords, surface, platform).find(
|
|
1166
|
+
(candidate) => matchesChord(event, candidate, platform)
|
|
1167
|
+
);
|
|
1168
|
+
if (!chord) continue;
|
|
1169
|
+
if (menuOwnsKeys && action.desktopMenu && chord === menuOwnedChord(action, platform))
|
|
1170
|
+
return;
|
|
1171
|
+
const toggleMenu = action.id === "commandMenu.open";
|
|
1172
|
+
if (action.forChat && insideCommandMenu(event.target)) return;
|
|
1173
|
+
if (!toggleMenu && insideOtherOverlay(event.target)) return;
|
|
1174
|
+
if (chord.formatting && isRichTextEditor(event.target)) return;
|
|
1175
|
+
if (!chord.mod && isTextEntry(event.target) && !textEntryIsEmpty(event.target)) return;
|
|
1176
|
+
if (!action.available(current, action.forChat ? current.currentChat : null)) return;
|
|
1177
|
+
event.preventDefault();
|
|
1178
|
+
event.stopPropagation();
|
|
1179
|
+
run(action, void 0, chord);
|
|
1180
|
+
return;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
document.addEventListener("keydown", onKeyDown, true);
|
|
1184
|
+
return () => document.removeEventListener("keydown", onKeyDown, true);
|
|
1185
|
+
}, [keyboardShortcuts, menuBridge, platform, run]);
|
|
1186
|
+
const [switcher, setSwitcherState] = useState(null);
|
|
1187
|
+
const switcherRef = useRef2(null);
|
|
1188
|
+
const setSwitcher = useCallback2((next) => {
|
|
1189
|
+
switcherRef.current = next;
|
|
1190
|
+
setSwitcherState(next);
|
|
1191
|
+
}, []);
|
|
1192
|
+
const routeChatIdRef = useRef2(routeChatId);
|
|
1193
|
+
routeChatIdRef.current = routeChatId;
|
|
1194
|
+
const reachableRef = useRef2(reachable);
|
|
1195
|
+
reachableRef.current = reachable;
|
|
1196
|
+
const switcherEnabled = keyboardShortcuts && chatList && surface === "desktop";
|
|
1197
|
+
const pickSwitcherChat = useCallback2(
|
|
1198
|
+
(index) => {
|
|
1199
|
+
const state = switcherRef.current;
|
|
1200
|
+
if (!state) return;
|
|
1201
|
+
const id = state.ids[index ?? state.index];
|
|
1202
|
+
setSwitcher(null);
|
|
1203
|
+
if (!id || id === routeChatIdRef.current) return;
|
|
1204
|
+
const current = envRef.current;
|
|
1205
|
+
current.openChat(
|
|
1206
|
+
id,
|
|
1207
|
+
readChatDirectory(current.subjectId, current.workspaceId).rows.get(id)?.workspaceId
|
|
1208
|
+
);
|
|
1209
|
+
},
|
|
1210
|
+
[setSwitcher]
|
|
1211
|
+
);
|
|
1212
|
+
useEffect(() => {
|
|
1213
|
+
if (!switcherEnabled) {
|
|
1214
|
+
setSwitcher(null);
|
|
1215
|
+
return;
|
|
1216
|
+
}
|
|
1217
|
+
let showTimer;
|
|
1218
|
+
const cancel = () => {
|
|
1219
|
+
clearTimeout(showTimer);
|
|
1220
|
+
if (switcherRef.current) setSwitcher(null);
|
|
1221
|
+
};
|
|
1222
|
+
function onKeyDown(event) {
|
|
1223
|
+
const state = switcherRef.current;
|
|
1224
|
+
if (isSwitcherKey(event)) {
|
|
1225
|
+
event.preventDefault();
|
|
1226
|
+
event.stopPropagation();
|
|
1227
|
+
if (state) {
|
|
1228
|
+
clearTimeout(showTimer);
|
|
1229
|
+
setSwitcher(stepChatSwitcher(state, event.shiftKey ? -1 : 1));
|
|
1230
|
+
return;
|
|
1231
|
+
}
|
|
1232
|
+
if (event.repeat || menuOpen.current || sheetOpen.current) return;
|
|
1233
|
+
if (insideOtherOverlay(event.target)) return;
|
|
1234
|
+
const opened = openChatSwitcher(
|
|
1235
|
+
readChatDirectory(subjectId, workspaceId),
|
|
1236
|
+
routeChatIdRef.current,
|
|
1237
|
+
event.shiftKey,
|
|
1238
|
+
reachableRef.current
|
|
1239
|
+
);
|
|
1240
|
+
if (!opened) return;
|
|
1241
|
+
void loadChatSwitcher();
|
|
1242
|
+
setSwitcher(opened);
|
|
1243
|
+
showTimer = setTimeout(() => {
|
|
1244
|
+
const current = switcherRef.current;
|
|
1245
|
+
if (current && !current.visible) setSwitcher({ ...current, visible: true });
|
|
1246
|
+
}, SWITCHER_SHOW_DELAY_MS);
|
|
1247
|
+
return;
|
|
1248
|
+
}
|
|
1249
|
+
if (!state) return;
|
|
1250
|
+
if (!event.ctrlKey && event.key !== "Control") {
|
|
1251
|
+
cancel();
|
|
1252
|
+
return;
|
|
1253
|
+
}
|
|
1254
|
+
if (event.key === "Escape") {
|
|
1255
|
+
event.preventDefault();
|
|
1256
|
+
event.stopPropagation();
|
|
1257
|
+
cancel();
|
|
1258
|
+
} else if (event.key === "Enter") {
|
|
1259
|
+
event.preventDefault();
|
|
1260
|
+
event.stopPropagation();
|
|
1261
|
+
clearTimeout(showTimer);
|
|
1262
|
+
pickSwitcherChat();
|
|
1263
|
+
} else if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
1264
|
+
event.preventDefault();
|
|
1265
|
+
event.stopPropagation();
|
|
1266
|
+
clearTimeout(showTimer);
|
|
1267
|
+
setSwitcher(stepChatSwitcher(state, event.key === "ArrowDown" ? 1 : -1));
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
function onKeyUp(event) {
|
|
1271
|
+
if (event.key !== "Control" || !switcherRef.current) return;
|
|
1272
|
+
clearTimeout(showTimer);
|
|
1273
|
+
pickSwitcherChat();
|
|
1274
|
+
}
|
|
1275
|
+
document.addEventListener("keydown", onKeyDown, true);
|
|
1276
|
+
document.addEventListener("keyup", onKeyUp, true);
|
|
1277
|
+
window.addEventListener("blur", cancel);
|
|
1278
|
+
return () => {
|
|
1279
|
+
clearTimeout(showTimer);
|
|
1280
|
+
document.removeEventListener("keydown", onKeyDown, true);
|
|
1281
|
+
document.removeEventListener("keyup", onKeyUp, true);
|
|
1282
|
+
window.removeEventListener("blur", cancel);
|
|
1283
|
+
};
|
|
1284
|
+
}, [switcherEnabled, subjectId, workspaceId, pickSwitcherChat, setSwitcher]);
|
|
1285
|
+
const value = useMemo2(
|
|
1286
|
+
() => ({ env, run, chordsFor }),
|
|
1287
|
+
[env, run, chordsFor]
|
|
1288
|
+
);
|
|
1289
|
+
return /* @__PURE__ */ jsxs(ActionsContext.Provider, { value, children: [
|
|
1290
|
+
props.children,
|
|
1291
|
+
menu.mounted ? /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
|
|
1292
|
+
CommandMenu,
|
|
1293
|
+
{
|
|
1294
|
+
open: menu.open,
|
|
1295
|
+
pickWorkspace: menu.workspaces,
|
|
1296
|
+
onOpenChange: (open) => setMenu((current) => ({ ...current, open })),
|
|
1297
|
+
returnFocus
|
|
1298
|
+
}
|
|
1299
|
+
) }) : null,
|
|
1300
|
+
sheet.mounted ? /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
|
|
1301
|
+
ShortcutSheet,
|
|
1302
|
+
{
|
|
1303
|
+
open: sheet.open,
|
|
1304
|
+
onOpenChange: (open) => setSheet((current) => ({ ...current, open })),
|
|
1305
|
+
returnFocus
|
|
1306
|
+
}
|
|
1307
|
+
) }) : null,
|
|
1308
|
+
switcher ? /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
|
|
1309
|
+
ChatSwitcher,
|
|
1310
|
+
{
|
|
1311
|
+
state: switcher,
|
|
1312
|
+
subjectId,
|
|
1313
|
+
workspaceId,
|
|
1314
|
+
workspaces,
|
|
1315
|
+
currentChatId: routeChatId,
|
|
1316
|
+
platform,
|
|
1317
|
+
onHover: (index) => {
|
|
1318
|
+
const current = switcherRef.current;
|
|
1319
|
+
if (current) setSwitcher({ ...current, index });
|
|
1320
|
+
},
|
|
1321
|
+
onDirectoryChange: () => {
|
|
1322
|
+
const current = switcherRef.current;
|
|
1323
|
+
if (!current) return;
|
|
1324
|
+
const next = extendChatSwitcher(
|
|
1325
|
+
current,
|
|
1326
|
+
readChatDirectory(subjectId, workspaceId),
|
|
1327
|
+
reachableRef.current
|
|
1328
|
+
);
|
|
1329
|
+
if (next !== current) setSwitcher(next);
|
|
1330
|
+
},
|
|
1331
|
+
onPick: pickSwitcherChat,
|
|
1332
|
+
onDismiss: () => setSwitcher(null)
|
|
1333
|
+
}
|
|
1334
|
+
) }) : null
|
|
1335
|
+
] });
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
export {
|
|
1339
|
+
siteRecords,
|
|
1340
|
+
rememberSidebarSites,
|
|
1341
|
+
readSidebarSites,
|
|
1342
|
+
useSiteDirectoryVersion,
|
|
1343
|
+
meetingRecords,
|
|
1344
|
+
rememberRecentMeetings,
|
|
1345
|
+
readRecentMeetings,
|
|
1346
|
+
useMeetingDirectoryVersion,
|
|
1347
|
+
useChatOperations,
|
|
1348
|
+
actionTitle,
|
|
1349
|
+
actionIcon,
|
|
1350
|
+
appActions,
|
|
1351
|
+
findAction,
|
|
1352
|
+
useAppActions,
|
|
1353
|
+
useActionShortcut,
|
|
1354
|
+
ActionsProvider
|
|
1355
|
+
};
|
|
1356
|
+
//# sourceMappingURL=chunk-QEMDQKQT.js.map
|