@opengeni/react 6.5.2-canary.41607687019001 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/app-state.d.ts +4 -0
- package/dist/app/app-state.js +19 -14
- package/dist/app/components/Composer.js +25 -23
- package/dist/app/components/agent/agent-capability-picker.js +10 -8
- package/dist/app/components/artifacts/artifact-browse-controls.js +4 -4
- package/dist/app/components/artifacts/artifact-library.js +21 -19
- package/dist/app/components/artifacts/artifact-page-chrome.js +3 -3
- package/dist/app/components/artifacts/artifact-viewer.js +23 -22
- package/dist/app/components/artifacts/artifact-viewer.js.map +1 -1
- package/dist/app/components/artifacts/chat-interactive-block.js +12 -12
- package/dist/app/components/artifacts/copy-artifact-link.js +7 -5
- package/dist/app/components/artifacts/file-reach-dialog.js +11 -9
- package/dist/app/components/artifacts/inline-chat-image.js +18 -18
- package/dist/app/components/artifacts/retained-file-preview.js +24 -23
- package/dist/app/components/artifacts/retained-text-preview.js +3 -3
- package/dist/app/components/artifacts/site-audience.js +6 -5
- package/dist/app/components/artifacts/site-conversations.js +16 -14
- package/dist/app/components/artifacts/site-data.js +18 -16
- package/dist/app/components/artifacts/site-public-link.js +3 -2
- package/dist/app/components/artifacts/site-publishing-page.js +39 -37
- package/dist/app/components/artifacts/site-publishing.js +34 -32
- package/dist/app/components/artifacts/site-settings.js +38 -36
- package/dist/app/components/artifacts/site-version-menu.js +8 -7
- package/dist/app/components/billing-class-mark.js +3 -3
- package/dist/app/components/bots/bot-launch-strip.js +17 -17
- package/dist/app/components/bots/bot-template-dialog.js +30 -28
- package/dist/app/components/bots/bot-template-shortcuts.js +19 -19
- package/dist/app/components/bots/bot-templates-page.js +38 -36
- package/dist/app/components/bots/bot-templates-page.js.map +1 -1
- package/dist/app/components/capabilities/capability-detail-sheet.js +13 -11
- package/dist/app/components/capabilities/capability-logo-source.js +13 -13
- package/dist/app/components/capabilities/capability-logo.js +4 -3
- package/dist/app/components/capabilities/connector-tool-permissions.js +8 -6
- package/dist/app/components/capabilities/native-connect-setup.js +14 -14
- package/dist/app/components/capabilities/own-logins-shared-heads-up.js +7 -6
- package/dist/app/components/capabilities/perform-capability-action.js +7 -6
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +17 -17
- package/dist/app/components/capabilities/session-capability-card.js +72 -70
- package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.js +28 -26
- package/dist/app/components/capabilities/session-connection-accounts.js +4 -3
- package/dist/app/components/capabilities/session-custom-mcp-card.js +20 -19
- package/dist/app/components/capabilities/session-github-card.js +22 -20
- package/dist/app/components/capabilities/session-machine-card.js +27 -25
- package/dist/app/components/capabilities/session-personal-github-card.js +16 -16
- package/dist/app/components/capabilities/session-plugin-card.js +10 -9
- package/dist/app/components/capabilities/use-capabilities-catalog.js +4 -3
- package/dist/app/components/capabilities/use-connection-accounts.js +5 -4
- package/dist/app/components/command-menu/chat-status.js +15 -13
- package/dist/app/components/command-menu/chat-switcher.js +35 -33
- package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
- package/dist/app/components/command-menu/command-menu.js +53 -50
- package/dist/app/components/command-menu/command-menu.js.map +1 -1
- package/dist/app/components/command-menu/shortcut-sheet.js +18 -16
- package/dist/app/components/command-menu/shortcut-sheet.js.map +1 -1
- package/dist/app/components/common.js +4 -3
- package/dist/app/components/composer-capabilities-menu-body.js +4 -4
- package/dist/app/components/composer-mobile-plus-panel.js +8 -8
- package/dist/app/components/composer-mobile-plus.js +1 -1
- package/dist/app/components/credit-required-gate.js +3 -3
- package/dist/app/components/credit-required-prompt.js +10 -8
- package/dist/app/components/credit-required-prompt.js.map +1 -1
- package/dist/app/components/credits/checkout-credits-celebration.js +3 -2
- package/dist/app/components/credits/checkout-return.js +3 -2
- package/dist/app/components/credits/checkout-return.js.map +1 -1
- package/dist/app/components/credits/coupon-redeem.js +5 -4
- package/dist/app/components/credits/credit-refusal-notice.js +7 -5
- package/dist/app/components/cross-slot-deep-link-recovery.js +5 -4
- package/dist/app/components/desktop/app-shots.js +13 -11
- package/dist/app/components/desktop/computer-use.js +6 -4
- package/dist/app/components/desktop/this-computer.js +9 -7
- package/dist/app/components/feedback.js +5 -4
- package/dist/app/components/follow-up-repository-menu-body.js +8 -6
- package/dist/app/components/follow-up-repository-menu-body.js.map +1 -1
- package/dist/app/components/follow-up-repository-picker.js +1 -1
- package/dist/app/components/github-app-connect-launcher.js +5 -4
- package/dist/app/components/in-app-help-link.js +3 -3
- package/dist/app/components/knowledge/agent-learning-settings.js +3 -2
- package/dist/app/components/knowledge/agent-learning-settings.js.map +1 -1
- package/dist/app/components/machines/connect-machine-dialog.js +18 -16
- package/dist/app/components/manual-repository-editor.js +3 -2
- package/dist/app/components/markdown.js +6 -6
- package/dist/app/components/models/models-ui.js +12 -10
- package/dist/app/components/my-things.js +12 -10
- package/dist/app/components/my-things.js.map +1 -1
- package/dist/app/components/new-session-starters.js +3 -3
- package/dist/app/components/own-where-it-works.js +9 -7
- package/dist/app/components/personal-resource-attachment-surface.js +4 -4
- package/dist/app/components/pickers.js +5 -5
- package/dist/app/components/rail/channel-create-dialog.js +7 -5
- package/dist/app/components/rail/project-glyph.js +17 -17
- package/dist/app/components/rail/project-profile.js +31 -29
- package/dist/app/components/rail/rail-context.js +3 -3
- package/dist/app/components/rail/rail-sections.js +68 -66
- package/dist/app/components/rail/session-header.js +59 -57
- package/dist/app/components/rail/session-list.js +66 -64
- package/dist/app/components/rail/session-row-content.js +4 -4
- package/dist/app/components/rail/session-row-hover-details.js +14 -12
- package/dist/app/components/rail/session-shell.js +90 -88
- package/dist/app/components/rail/site-session-group-heading.js +8 -8
- package/dist/app/components/repository-picker.js +8 -6
- package/dist/app/components/secrets/session-secrets-panel.js +4 -3
- package/dist/app/components/secrets/vault-model.js +3 -2
- package/dist/app/components/session/agent-configuration-panel.js +25 -23
- package/dist/app/components/session/agent-configuration-panel.js.map +1 -1
- package/dist/app/components/session/artifact-link-boundary.js +3 -3
- package/dist/app/components/session/artifact-session-page.js +11 -9
- package/dist/app/components/session/banners.js +8 -8
- package/dist/app/components/session/codex-usage-notice.js +5 -3
- package/dist/app/components/session/console-new-conversation.js +42 -40
- package/dist/app/components/session/context-text-reader.js +3 -2
- package/dist/app/components/session/descendant-requests.js +39 -37
- package/dist/app/components/session/descendant-requests.js.map +1 -1
- package/dist/app/components/session/editable-artifacts-workspace.js +36 -34
- package/dist/app/components/session/editable-artifacts-workspace.js.map +1 -1
- package/dist/app/components/session/failed-session-banner.js +13 -11
- package/dist/app/components/session/failed-session-banner.js.map +1 -1
- package/dist/app/components/session/failure-recovery-boundary.js +3 -3
- package/dist/app/components/session/human-input-delegation-record.js +2 -2
- package/dist/app/components/session/human-input.js +33 -31
- package/dist/app/components/session/inspector.js +57 -55
- package/dist/app/components/session/inspector.js.map +1 -1
- package/dist/app/components/session/message-actions.js +5 -4
- package/dist/app/components/session/message-actions.js.map +1 -1
- package/dist/app/components/session/message-resource-attachments.js +12 -11
- package/dist/app/components/session/message-resource-attachments.js.map +1 -1
- package/dist/app/components/session/model-context-inspector.js +6 -4
- package/dist/app/components/session/model-recovery-notice.js +3 -3
- package/dist/app/components/session/new-session-settings-menu.js +11 -9
- package/dist/app/components/session/new-session-setup-strip.js +18 -18
- package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
- package/dist/app/components/session/sandbox-switcher.js +10 -9
- package/dist/app/components/session/sandbox-workspace.js +47 -46
- package/dist/app/components/session/search-markdown-highlight.js +7 -7
- package/dist/app/components/session/search-results-view.js +8 -8
- package/dist/app/components/session/session-admin-access.js +13 -11
- package/dist/app/components/session/session-admission-notice.js +7 -5
- package/dist/app/components/session/session-avatar-picker.js +22 -20
- package/dist/app/components/session/session-avatar.js +16 -16
- package/dist/app/components/session/session-machine-access-notice.js +7 -5
- package/dist/app/components/session/session-profile-dialog.js +29 -27
- package/dist/app/components/session/session-profile-editor.js +30 -28
- package/dist/app/components/session/session-retention.js +10 -8
- package/dist/app/components/session/session-search-dialog.js +10 -10
- package/dist/app/components/session/session-skill-reviews.js +2 -1
- package/dist/app/components/session/session-skill-reviews.js.map +1 -1
- package/dist/app/components/session/session-tenancy-control.js +13 -11
- package/dist/app/components/session/session-tenancy-control.js.map +1 -1
- package/dist/app/components/session/session-unattended-setting.js +7 -5
- package/dist/app/components/session/session-usage-limit-section.js +11 -9
- package/dist/app/components/session/share-chat-dialog.js +9 -7
- package/dist/app/components/session/site-origin-link.js +3 -3
- package/dist/app/components/session/subagents.js +8 -8
- package/dist/app/components/session/subscription-account-indicator.js +6 -6
- package/dist/app/components/session-connectors-menu-body.js +4 -3
- package/dist/app/components/session-connectors-menu-body.js.map +1 -1
- package/dist/app/components/settings/row-select.js +7 -5
- package/dist/app/components/toaster.js +3 -2
- package/dist/app/components/transcription-settings.js +11 -9
- package/dist/app/components/ui/destructive-confirm.js +11 -9
- package/dist/app/components/usage/usage-entry.js +5 -5
- package/dist/app/components/window-bar.js +16 -14
- package/dist/app/components/workspace-composer-plus.js +22 -21
- package/dist/app/components/workspace-reach.js +6 -4
- package/dist/app/components/workspace-tenant-boundary.js +5 -4
- package/dist/app/embed/memory-navigation.js +3 -3
- package/dist/app/embed/session-app.js +211 -209
- package/dist/app/lib/actions/actions-provider.js +15 -13
- package/dist/app/lib/agent-capabilities.js +3 -3
- package/dist/app/lib/app-surfaces.js +7 -6
- package/dist/app/lib/archive-session.d.ts +9 -4
- package/dist/app/lib/archive-session.js +4 -2
- package/dist/app/lib/bot-templates.js +3 -2
- package/dist/app/lib/capabilities.js +3 -2
- package/dist/app/lib/codex-usage-query.js +2 -2
- package/dist/app/lib/composer-connectors.js +17 -16
- package/dist/app/lib/console-site.js +2 -2
- package/dist/app/lib/console-text.js +2 -2
- package/dist/app/lib/events.js +9 -9
- package/dist/app/lib/failed-session-copy.js +3 -3
- package/dist/app/lib/inbox.js +4 -2
- package/dist/app/lib/model-access-onboarding.js +3 -3
- package/dist/app/lib/move-chat-to-machine.js +3 -3
- package/dist/app/lib/navigation.js +2 -2
- package/dist/app/lib/session-branch-cache.js +6 -6
- package/dist/app/lib/session-create.js +4 -4
- package/dist/app/lib/session-group-pagination.js +6 -6
- package/dist/app/lib/session-hover-facts.js +13 -11
- package/dist/app/lib/session-model.js +2 -2
- package/dist/app/lib/session-rail.js +3 -3
- package/dist/app/lib/session-rename.js +3 -3
- package/dist/app/lib/session-restart-operation-controller.js +4 -3
- package/dist/app/lib/session-tenancy.js +3 -2
- package/dist/app/lib/session-usage-limit.js +3 -2
- package/dist/app/lib/sessions-group.js +5 -5
- package/dist/app/lib/site-publishing.js +3 -2
- package/dist/app/lib/site-tool-consent-dialog.js +9 -7
- package/dist/app/lib/site-tool-consent-dialog.js.map +1 -1
- package/dist/app/lib/site-tool-consent.js +1 -1
- package/dist/app/lib/subscription-plans.js +3 -2
- package/dist/app/lib/toast.js +2 -1
- package/dist/app/lib/turn-failure-analytics.js +4 -4
- package/dist/app/lib/use-duplicate-site.js +6 -5
- package/dist/app/lib/use-follow-up-repositories.js +6 -5
- package/dist/app/lib/use-workspace-integrations.js +4 -3
- package/dist/app/lib/use-workspace-machines.js +4 -4
- package/dist/app/lib/use-workspace-model-catalog.js +5 -4
- package/dist/app/lib/use-workspace-rigs.js +2 -2
- package/dist/app/lib/workspace-navigation-preference.js +4 -4
- package/dist/app/lib/workspace-scope-context.js +3 -3
- package/dist/app/routes/artifacts.js +67 -66
- package/dist/app/routes/artifacts.js.map +1 -1
- package/dist/app/routes/retained-artifact.js +42 -40
- package/dist/app/routes/retained-artifact.js.map +1 -1
- package/dist/app/routes/session-unavailable.js +8 -7
- package/dist/app/routes/session.js +119 -117
- package/dist/app/routes/sessions-index-hydration.js +5 -5
- package/dist/app/routes/sessions-index.js +104 -102
- package/dist/app/routes/site-view.js +67 -65
- package/dist/app/routes/site-view.js.map +1 -1
- package/dist/artifacts-document.js +4 -4
- package/dist/artifacts-presentation.js +4 -4
- package/dist/artifacts-spreadsheet.js +4 -4
- package/dist/artifacts.js +10 -10
- package/dist/automations.js +17 -15
- package/dist/automations.js.map +1 -1
- package/dist/browser-viewer-TC27OCIP.js +23 -0
- package/dist/chat-interactive-block-RWPQBHVS.js +18 -0
- package/dist/chunk-2BDT3UZQ.js +229 -0
- package/dist/chunk-2CLNIEK4.js +373 -0
- package/dist/chunk-2FSBSCZJ.js +451 -0
- package/dist/chunk-2I7HDP53.js +199 -0
- package/dist/chunk-2INLDVK3.js +15 -0
- package/dist/chunk-2KALVELR.js +126 -0
- package/dist/chunk-2M3J7ZWQ.js +418 -0
- package/dist/chunk-2OP6WLGV.js +708 -0
- package/dist/chunk-2RG7NIAS.js +2936 -0
- package/dist/chunk-2STUPWEL.js +135 -0
- package/dist/chunk-2YUOVM3G.js +271 -0
- package/dist/chunk-2Z3NQNTM.js +3670 -0
- package/dist/chunk-3CPWWGNK.js +920 -0
- package/dist/chunk-3ED2U6XE.js +37 -0
- package/dist/chunk-3GZA4BUW.js +216 -0
- package/dist/chunk-3IK6UYO6.js +1022 -0
- package/dist/chunk-3PZ7JZI2.js +431 -0
- package/dist/chunk-4DVJ6ONS.js +50 -0
- package/dist/chunk-4DVNUCRR.js +2386 -0
- package/dist/chunk-4DVNUCRR.js.map +1 -0
- package/dist/chunk-4E3ZJRTZ.js +41 -0
- package/dist/chunk-4SAWSRAA.js +141 -0
- package/dist/chunk-53AGXXZM.js +307 -0
- package/dist/chunk-54YW6SZZ.js +818 -0
- package/dist/chunk-57AZS3IE.js +2317 -0
- package/dist/chunk-5CPEEAFD.js +143 -0
- package/dist/chunk-5EWSRZ2Y.js +340 -0
- package/dist/chunk-5IE76VCY.js +387 -0
- package/dist/chunk-5NWEKLDZ.js +170 -0
- package/dist/chunk-5O2FCCHZ.js +198 -0
- package/dist/chunk-5QAY6K77.js +399 -0
- package/dist/chunk-5YKW2K6I.js +625 -0
- package/dist/chunk-5YKW2K6I.js.map +1 -0
- package/dist/chunk-6BCXNDEI.js +4116 -0
- package/dist/chunk-6BCXNDEI.js.map +1 -0
- package/dist/chunk-6DK6Z4UN.js +2599 -0
- package/dist/chunk-6DVCC7QS.js +702 -0
- package/dist/chunk-6JHU2UBS.js +2058 -0
- package/dist/chunk-6PZ7OBYU.js +490 -0
- package/dist/chunk-6WD2INST.js +539 -0
- package/dist/chunk-6WD2INST.js.map +1 -0
- package/dist/chunk-6WGRDRMA.js +163 -0
- package/dist/chunk-77WAKEAH.js +186 -0
- package/dist/chunk-7T2ZE3VT.js +5558 -0
- package/dist/chunk-7T2ZE3VT.js.map +1 -0
- package/dist/chunk-7TDO3CUM.js +393 -0
- package/dist/chunk-7TIX2UAR.js +247 -0
- package/dist/chunk-7V5REBCP.js +148 -0
- package/dist/chunk-7VMZGLYI.js +339 -0
- package/dist/chunk-7W37NS3I.js +236 -0
- package/dist/chunk-7X6SDK2C.js +111 -0
- package/dist/chunk-7ZNUHRP5.js +95 -0
- package/dist/chunk-A36PZALD.js +84 -0
- package/dist/chunk-AUI6VA63.js +107 -0
- package/dist/chunk-AW2MQB37.js +24 -0
- package/dist/chunk-AWKES45Y.js +198 -0
- package/dist/chunk-AXHZYXUV.js +132 -0
- package/dist/chunk-BHNSJVBC.js +129 -0
- package/dist/chunk-BJEJFISW.js +50 -0
- package/dist/chunk-BJFH6JI5.js +422 -0
- package/dist/chunk-BMICEQZQ.js +960 -0
- package/dist/chunk-BTLBYBLU.js +29 -0
- package/dist/chunk-BXBDYNRP.js +89 -0
- package/dist/chunk-C372BFOV.js +357 -0
- package/dist/chunk-C43KRXGA.js +234 -0
- package/dist/chunk-C43KRXGA.js.map +1 -0
- package/dist/chunk-CMKGILJK.js +4824 -0
- package/dist/chunk-CRAOSVHC.js +50 -0
- package/dist/chunk-CRU35QQH.js +281 -0
- package/dist/chunk-CUIWCGMA.js +172 -0
- package/dist/chunk-D5TWNFFE.js +38 -0
- package/dist/chunk-DF5EAHDN.js +4461 -0
- package/dist/chunk-DJAXC5OK.js +56 -0
- package/dist/chunk-DXBYWSL5.js +3550 -0
- package/dist/chunk-DXR5PDFP.js +84 -0
- package/dist/chunk-DZWARC4M.js +267 -0
- package/dist/chunk-DZXEDSQI.js +106 -0
- package/dist/chunk-E7XERZWC.js +48 -0
- package/dist/chunk-ECJBYNLJ.js +79 -0
- package/dist/chunk-EDI6SJ2N.js +43 -0
- package/dist/chunk-EWSOC6WF.js +114 -0
- package/dist/chunk-F2OPHAUN.js +103 -0
- package/dist/chunk-F4ISQGGM.js +81 -0
- package/dist/chunk-FO4LYKJL.js +197 -0
- package/dist/chunk-FPXASDG5.js +73 -0
- package/dist/chunk-FSOQDUCG.js +117 -0
- package/dist/chunk-FSOQDUCG.js.map +1 -0
- package/dist/chunk-FVXBNBHO.js +157 -0
- package/dist/chunk-FYWT2O76.js +34 -0
- package/dist/chunk-FYWT2O76.js.map +1 -0
- package/dist/chunk-FZC5N55X.js +981 -0
- package/dist/chunk-GAVYGBFI.js +99 -0
- package/dist/chunk-GFIMOUDT.js +846 -0
- package/dist/chunk-GFIMOUDT.js.map +1 -0
- package/dist/chunk-GKVJIDHF.js +33 -0
- package/dist/chunk-GVN5SZLX.js +212 -0
- package/dist/chunk-H3T7IWNA.js +134 -0
- package/dist/chunk-HAX4LCR5.js +261 -0
- package/dist/chunk-HC4JFZVU.js +121 -0
- package/dist/chunk-HEFPPMBQ.js +581 -0
- package/dist/chunk-HGKTHF2U.js +1356 -0
- package/dist/chunk-HGKTHF2U.js.map +1 -0
- package/dist/chunk-HNLR7Q4Z.js +83 -0
- package/dist/chunk-HSOXMJOT.js +12 -0
- package/dist/chunk-I4MRDSUF.js +281 -0
- package/dist/chunk-I4QEJ62Y.js +202 -0
- package/dist/chunk-I5B5L6Q4.js +56 -0
- package/dist/chunk-I5QZJODL.js +264 -0
- package/dist/chunk-I7ITSXSJ.js +603 -0
- package/dist/chunk-I7XIZRFD.js +390 -0
- package/dist/chunk-IDANQPRH.js +82 -0
- package/dist/chunk-IFB3WJ36.js +212 -0
- package/dist/chunk-IHTAKKTK.js +264 -0
- package/dist/chunk-IKXNLWAL.js +205 -0
- package/dist/chunk-IKXNLWAL.js.map +1 -0
- package/dist/chunk-ILDXWY37.js +173 -0
- package/dist/chunk-IMDQUHBJ.js +570 -0
- package/dist/chunk-IMZCQBOT.js +119 -0
- package/dist/chunk-IXPTECSC.js +403 -0
- package/dist/chunk-J255A3N5.js +71 -0
- package/dist/chunk-J5F5HPPW.js +141 -0
- package/dist/chunk-JDTGRRNU.js +5045 -0
- package/dist/chunk-JDTGRRNU.js.map +1 -0
- package/dist/chunk-JEA3QDX7.js +2469 -0
- package/dist/chunk-JEUPAVYY.js +156 -0
- package/dist/chunk-JKHKLL5W.js +194 -0
- package/dist/chunk-JQL7ZH6C.js +650 -0
- package/dist/chunk-JWB44UGJ.js +57 -0
- package/dist/chunk-JZ4NLCAP.js +333 -0
- package/dist/chunk-K2A5PXQ5.js +412 -0
- package/dist/chunk-K56XV3C3.js +623 -0
- package/dist/chunk-K6GAXXVA.js +23 -0
- package/dist/chunk-KCBMFSMS.js +199 -0
- package/dist/chunk-KF2FV3ZJ.js +268 -0
- package/dist/chunk-KJD65EJP.js +278 -0
- package/dist/chunk-KLEUWIMZ.js +386 -0
- package/dist/chunk-KODELWYT.js +309 -0
- package/dist/chunk-KRDR5RJD.js +83 -0
- package/dist/chunk-KUDGXAF7.js +914 -0
- package/dist/chunk-KY2R73CG.js +171 -0
- package/dist/chunk-KY2R73CG.js.map +1 -0
- package/dist/chunk-KYS77RPN.js +85 -0
- package/dist/chunk-L7YTNTIK.js +368 -0
- package/dist/chunk-LHPNABDH.js +686 -0
- package/dist/chunk-MFROMEKA.js +401 -0
- package/dist/chunk-MIHN76LX.js +2656 -0
- package/dist/chunk-MIYFS2XN.js +42 -0
- package/dist/chunk-MJUCFQMS.js +65 -0
- package/dist/chunk-MM4FNWI4.js +3064 -0
- package/dist/chunk-MNZG4OHU.js +790 -0
- package/dist/chunk-MVW6HNPI.js +250 -0
- package/dist/chunk-MVW6HNPI.js.map +1 -0
- package/dist/chunk-N6AACDUW.js +200 -0
- package/dist/chunk-NC55IFN3.js +781 -0
- package/dist/chunk-NC7PVOEK.js +98 -0
- package/dist/chunk-NCYMNCJO.js +70 -0
- package/dist/chunk-ND2BXV3P.js +259 -0
- package/dist/chunk-NDBTFUO6.js +272 -0
- package/dist/chunk-NDQJZ7HF.js +206 -0
- package/dist/chunk-NGJJJPZZ.js +162 -0
- package/dist/chunk-NJTSNNE7.js +251 -0
- package/dist/chunk-NPGISCU6.js +4159 -0
- package/dist/chunk-NPGISCU6.js.map +1 -0
- package/dist/chunk-NRTE7DNV.js +1270 -0
- package/dist/chunk-NULUNM7H.js +290 -0
- package/dist/chunk-NUNZS36W.js +227 -0
- package/dist/chunk-NW53H5RW.js +2424 -0
- package/dist/chunk-NXCMHIKI.js +263 -0
- package/dist/chunk-O3LKCBP5.js +159 -0
- package/dist/chunk-O4EA4F3W.js +103 -0
- package/dist/chunk-O4EA4F3W.js.map +1 -0
- package/dist/chunk-O4OOG3D6.js +116 -0
- package/dist/chunk-O4OOG3D6.js.map +1 -0
- package/dist/chunk-O6N4ABCA.js +376 -0
- package/dist/chunk-O732GAFC.js +112 -0
- package/dist/chunk-OF4TIKYC.js +690 -0
- package/dist/chunk-OMPVOMPP.js +70 -0
- package/dist/chunk-OPJJSKUK.js +118 -0
- package/dist/chunk-OPWCMA4D.js +196 -0
- package/dist/chunk-ORJPS5VN.js +1193 -0
- package/dist/chunk-OSY5K7L7.js +187 -0
- package/dist/chunk-OV6QJRT4.js +45 -0
- package/dist/chunk-OVKYVZMW.js +108 -0
- package/dist/chunk-OZCBM3UC.js +171 -0
- package/dist/chunk-P3A2EINJ.js +61 -0
- package/dist/chunk-PTAG4PDC.js +27 -0
- package/dist/chunk-PTF5B7TJ.js +298 -0
- package/dist/chunk-Q3DPEYX4.js +848 -0
- package/dist/chunk-Q6CGOPJD.js +215 -0
- package/dist/chunk-Q6CGOPJD.js.map +1 -0
- package/dist/chunk-QB2KMIDP.js +100 -0
- package/dist/chunk-QCSJ4CWE.js +1067 -0
- package/dist/chunk-QIOQ2NPQ.js +414 -0
- package/dist/chunk-QK5EFEUT.js +353 -0
- package/dist/chunk-QPQBLYQJ.js +41 -0
- package/dist/chunk-QPSGCC5D.js +184 -0
- package/dist/chunk-QZAAUQRN.js +474 -0
- package/dist/chunk-QZM6YDJW.js +489 -0
- package/dist/chunk-QZM6YDJW.js.map +1 -0
- package/dist/chunk-RGBI63KJ.js +188 -0
- package/dist/chunk-RLBKLAEY.js +138 -0
- package/dist/chunk-RMFKVOM7.js +304 -0
- package/dist/chunk-ROKQU7WG.js +258 -0
- package/dist/chunk-RPVREAU7.js +251 -0
- package/dist/chunk-RQKLF42C.js +723 -0
- package/dist/chunk-SC6RRD2D.js +38 -0
- package/dist/chunk-SC6RRD2D.js.map +1 -0
- package/dist/chunk-SEO7TICN.js +94 -0
- package/dist/chunk-SHHJCL7X.js +432 -0
- package/dist/chunk-SIRLACNZ.js +114 -0
- package/dist/chunk-SKPHMYAA.js +237 -0
- package/dist/chunk-SODC7T6L.js +1583 -0
- package/dist/chunk-SQJIKMN3.js +366 -0
- package/dist/chunk-SVINDKVW.js +26 -0
- package/dist/chunk-SYCDHPZF.js +335 -0
- package/dist/chunk-T2QX3FDP.js +133 -0
- package/dist/chunk-T3OWFVMS.js +1187 -0
- package/dist/chunk-T6XI5FLY.js +61 -0
- package/dist/chunk-T7OXJZCX.js +62 -0
- package/dist/chunk-TAT5USZN.js +353 -0
- package/dist/chunk-TPQTRNER.js +172 -0
- package/dist/chunk-TUIN4MB7.js +266 -0
- package/dist/chunk-TX3VECZU.js +71 -0
- package/dist/chunk-TXLIEOJX.js +9624 -0
- package/dist/chunk-U3DN4HEY.js +27 -0
- package/dist/chunk-U7XM7CB4.js +191 -0
- package/dist/chunk-UJK53QFL.js +140 -0
- package/dist/chunk-UMTXA2TH.js +319 -0
- package/dist/chunk-UPDSXFK5.js +199 -0
- package/dist/chunk-UTIAXH52.js +269 -0
- package/dist/chunk-UVN5TMHU.js +1184 -0
- package/dist/chunk-V4Z4B2E3.js +52 -0
- package/dist/chunk-V4Z4B2E3.js.map +1 -0
- package/dist/chunk-VGYXW3VG.js +246 -0
- package/dist/chunk-VS7AHPCZ.js +255 -0
- package/dist/chunk-VTTAJOQ7.js +121 -0
- package/dist/chunk-VWPOLUAO.js +99 -0
- package/dist/chunk-X3MWB2QU.js +3851 -0
- package/dist/chunk-X6KAJI3V.js +211 -0
- package/dist/chunk-XBLRHV5R.js +50 -0
- package/dist/chunk-XDFP2LMW.js +605 -0
- package/dist/chunk-XEQMZB3C.js +525 -0
- package/dist/chunk-XEYLT5VA.js +223 -0
- package/dist/chunk-XHIQ5I6N.js +918 -0
- package/dist/chunk-XLH7QY2R.js +378 -0
- package/dist/chunk-XWFAMUZQ.js +113 -0
- package/dist/chunk-Y4BB2KS2.js +294 -0
- package/dist/chunk-Y4BB2KS2.js.map +1 -0
- package/dist/chunk-Y4OBB2VN.js +84 -0
- package/dist/chunk-YCVD6CI3.js +234 -0
- package/dist/chunk-YENLNISG.js +270 -0
- package/dist/chunk-YIRVLKAX.js +351 -0
- package/dist/chunk-YL73CVNK.js +390 -0
- package/dist/chunk-YLS6QE5G.js +288 -0
- package/dist/chunk-YNF2OC54.js +366 -0
- package/dist/chunk-YNF2OC54.js.map +1 -0
- package/dist/chunk-YPWU5KPE.js +147 -0
- package/dist/chunk-YQXTDZSU.js +2984 -0
- package/dist/chunk-YSJEAAOL.js +178 -0
- package/dist/chunk-YWIFM7D7.js +499 -0
- package/dist/chunk-YWVI6ZMK.js +103 -0
- package/dist/chunk-Z4FMAFNH.js +847 -0
- package/dist/chunk-Z654FWNU.js +136 -0
- package/dist/chunk-Z7Y523PS.js +130 -0
- package/dist/chunk-ZD67RM6G.js +60 -0
- package/dist/chunk-ZEG4VPBL.js +187 -0
- package/dist/chunk-ZHDFQITM.js +283 -0
- package/dist/chunk-ZHDFQITM.js.map +1 -0
- package/dist/chunk-ZLYCOBHW.js +75 -0
- package/dist/chunk-ZNJ5MTXV.js +89 -0
- package/dist/chunk-ZSGY3H53.js +155 -0
- package/dist/chunk-ZTPXACWB.js +1788 -0
- package/dist/chunk-ZUA3JMI6.js +107 -0
- package/dist/chunk-ZYAZUPPV.js +559 -0
- package/dist/composer.js +8 -8
- package/dist/computer-viewer-TDDO25AV.js +21 -0
- package/dist/connect.js +12 -12
- package/dist/desktop-dictation.js +12 -10
- package/dist/desktop-dictation.js.map +1 -1
- package/dist/desktop.js +2 -2
- package/dist/editor.js +2 -2
- package/dist/embedded-new-voice-2G3VLPVQ.js +24 -0
- package/dist/embedded-voice-T5IWOWGD.js +24 -0
- package/dist/fleet-decision-row-WM64KXP3.js +361 -0
- package/dist/in-chat-connect-model.js +5 -5
- package/dist/index.js +51 -51
- package/dist/interaction.js +5 -5
- package/dist/machines.js +3 -3
- package/dist/meetings-recorder.js +1 -1
- package/dist/meetings.js +40 -32
- package/dist/meetings.js.map +1 -1
- package/dist/messages/en.d.ts +3 -0
- package/dist/messages.js +1 -1
- package/dist/model-policy-picker-menu-SMC6J6QN.js +22 -0
- package/dist/payment-page-card-G4U63KUV.js +223 -0
- package/dist/platform-activity-row-BUZGZAKZ.js +128 -0
- package/dist/queue-surface-implementation-4KUZ4PJV.js +908 -0
- package/dist/realtime.js +4 -4
- package/dist/recorder-host-WF2RRR56.js +69 -0
- package/dist/recorder-host-WF2RRR56.js.map +1 -0
- package/dist/recordings.js +3 -3
- package/dist/sandbox-files-ESDMOFSD.js +27 -0
- package/dist/session-app.js +211 -209
- package/dist/session-connect-cards-Q53KMMYY.js +25 -0
- package/dist/session-list-model.js +2 -2
- package/dist/session-realtime-CF3I35WJ.js +30 -0
- package/dist/session-realtime.js +2 -2
- package/dist/session-ui.js +33 -31
- package/dist/session.js +5 -5
- package/dist/sites.js +2 -2
- package/dist/terminal.js +2 -2
- package/dist/this-computer.js +3 -3
- package/dist/timeline-annotation-markers-CJK4RYZ4.js +157 -0
- package/dist/timeline-annotation-selection-67GF5H26.js +208 -0
- package/dist/timeline-annotations-dialog-ONJPQDJQ.js +283 -0
- package/dist/ui/access-list.js +11 -9
- package/dist/ui/access-list.js.map +1 -1
- package/dist/ui/api-error.d.ts +6 -3
- package/dist/ui/api-error.js +2 -1
- package/dist/ui/cadence-picker.js +6 -4
- package/dist/ui/choice-cards.js +5 -3
- package/dist/ui/confirm-dialog.js +2 -2
- package/dist/ui/copy-field.js +5 -3
- package/dist/ui/detail-page.js +2 -2
- package/dist/ui/detail-sheet.js +2 -2
- package/dist/ui/diff-view.js +4 -3
- package/dist/ui/disclosure.js +3 -3
- package/dist/ui/email-chips-input.js +5 -3
- package/dist/ui/error-message.js +2 -1
- package/dist/ui/error-reference.d.ts +15 -0
- package/dist/ui/error-text.d.ts +10 -0
- package/dist/ui/error-text.js +9 -0
- package/dist/ui/error-text.js.map +1 -0
- package/dist/ui/field.js +4 -2
- package/dist/ui/flush-form-page.js +8 -6
- package/dist/ui/form-dialog.js +7 -5
- package/dist/ui/list-row.js +3 -3
- package/dist/ui/load-failure.js +3 -2
- package/dist/ui/load-failure.js.map +1 -1
- package/dist/ui/notice.js +3 -1
- package/dist/ui/relative-time.js +2 -2
- package/dist/ui/revision-history.js +9 -7
- package/dist/ui/revision-history.js.map +1 -1
- package/dist/ui/role-select.js +10 -8
- package/dist/ui/segmented-control.js +4 -2
- package/dist/ui/select-menu.js +5 -3
- package/dist/ui/setting-row.js +3 -1
- package/dist/ui/switch.js +4 -2
- package/dist/ui/usage-meter.js +3 -3
- package/dist/ui/word-list-row.js +4 -2
- package/dist/usage.js +2 -2
- package/dist/workbench.js +4 -4
- package/package.json +5 -6
- package/src/app/app-state.tsx +126 -14
- package/src/app/components/artifacts/site-data.tsx +2 -2
- package/src/app/components/artifacts/site-settings.tsx +2 -2
- package/src/app/components/rail/session-list.tsx +7 -8
- package/src/app/components/rail/session-shell.tsx +3 -3
- package/src/app/components/repository-picker.tsx +8 -1
- package/src/app/components/session/model-context-inspector.tsx +2 -1
- package/src/app/components/session/session-admin-access.tsx +2 -2
- package/src/app/lib/actions/chat-operations.ts +4 -4
- package/src/app/lib/archive-session.test.tsx +265 -2
- package/src/app/lib/archive-session.tsx +175 -9
- package/src/app/lib/copy-link.ts +2 -2
- package/src/app/lib/inbox.tsx +2 -2
- package/src/app/lib/session-failure-toasts.ts +3 -2
- package/src/app/lib/toast.test.tsx +215 -0
- package/src/app/lib/toast.tsx +67 -2
- package/src/app/personal-github-reconnect.test.tsx +356 -0
- package/src/app/routes/artifacts.tsx +1 -2
- package/src/components/tool-action-review.tsx +14 -1
- package/src/meetings/delete-meeting-dialog.tsx +2 -1
- package/src/meetings/meeting-ask.tsx +2 -1
- package/src/meetings/meeting-detail-page.tsx +2 -1
- package/src/meetings/meeting-notes.tsx +2 -1
- package/src/meetings/meeting-settings.tsx +4 -1
- package/src/meetings/meeting-transcript.tsx +4 -1
- package/src/meetings/recorder-context.tsx +10 -0
- package/src/meetings/recorder-host.test.tsx +60 -2
- package/src/meetings/recorder-host.tsx +16 -3
- package/src/meetings/recorder-panel.tsx +2 -1
- package/src/meetings/recorder-workspace.test.tsx +26 -1
- package/src/messages/en.ts +6 -0
- package/src/ui/api-error.test.ts +29 -5
- package/src/ui/api-error.tsx +10 -4
- package/src/ui/error-message.tsx +8 -0
- package/src/ui/error-reference.test.ts +54 -0
- package/src/ui/error-reference.ts +51 -0
- package/src/ui/error-text.test.tsx +66 -0
- package/src/ui/error-text.tsx +49 -0
- package/src/ui/field.tsx +4 -1
- package/src/ui/notice.tsx +7 -2
- package/src/ui/setting-row.tsx +4 -1
- package/styles/app.css +12 -0
- package/styles/compiled.css +9 -0
- package/dist/browser-viewer-NOP5EAUO.js +0 -23
- package/dist/chat-interactive-block-G7O44JHR.js +0 -18
- package/dist/chunk-26RWVLRD.js +0 -135
- package/dist/chunk-2AHTY7OT.js +0 -247
- package/dist/chunk-2GDNWKSC.js +0 -3670
- package/dist/chunk-2JENKGCE.js +0 -339
- package/dist/chunk-2KYQC4T5.js +0 -155
- package/dist/chunk-2RREGDQH.js +0 -708
- package/dist/chunk-2T7DX6KR.js +0 -353
- package/dist/chunk-2VB2O4FQ.js +0 -920
- package/dist/chunk-2VTTKH23.js +0 -94
- package/dist/chunk-2XNG2KNT.js +0 -172
- package/dist/chunk-2YC6JQRO.js +0 -399
- package/dist/chunk-2ZVRJRXC.js +0 -27
- package/dist/chunk-35737UT4.js +0 -162
- package/dist/chunk-366XZ4PM.js +0 -41
- package/dist/chunk-36MIDGAH.js +0 -199
- package/dist/chunk-3FD76LXM.js +0 -212
- package/dist/chunk-3OVIXY4O.js +0 -213
- package/dist/chunk-3OVIXY4O.js.map +0 -1
- package/dist/chunk-3QNRBEYH.js +0 -432
- package/dist/chunk-3QX55WLC.js +0 -15
- package/dist/chunk-3USJPT2S.js +0 -1022
- package/dist/chunk-42CMQ5VR.js +0 -251
- package/dist/chunk-4LPOWQJY.js +0 -42
- package/dist/chunk-4NBTZRKT.js +0 -79
- package/dist/chunk-4OXI6HCV.js +0 -118
- package/dist/chunk-4SZZAFYQ.js +0 -2317
- package/dist/chunk-4TQL3WP2.js +0 -140
- package/dist/chunk-4Y6BK7IU.js +0 -196
- package/dist/chunk-4YD7YZC5.js +0 -373
- package/dist/chunk-5DTST3TP.js +0 -81
- package/dist/chunk-5FH5LQVS.js +0 -130
- package/dist/chunk-5KWMYPJV.js +0 -847
- package/dist/chunk-5MUJDC6C.js +0 -84
- package/dist/chunk-5QM2WPKV.js +0 -41
- package/dist/chunk-5WUN7XPD.js +0 -1184
- package/dist/chunk-64PO2WXU.js +0 -1067
- package/dist/chunk-6AHATAAY.js +0 -431
- package/dist/chunk-6ED2YWBT.js +0 -56
- package/dist/chunk-6GXVYAGR.js +0 -170
- package/dist/chunk-6H4SJBPE.js +0 -85
- package/dist/chunk-6MT3HHUB.js +0 -84
- package/dist/chunk-6UHCBH4G.js +0 -198
- package/dist/chunk-6WLX3NR3.js +0 -198
- package/dist/chunk-73NXYYWE.js +0 -112
- package/dist/chunk-76ERNKIZ.js +0 -603
- package/dist/chunk-776QZ573.js +0 -57
- package/dist/chunk-7BYWOFVH.js +0 -171
- package/dist/chunk-7O5CGGIQ.js +0 -108
- package/dist/chunk-7QOHRZ67.js +0 -251
- package/dist/chunk-7WIDB4PL.js +0 -2058
- package/dist/chunk-7WKP3DYJ.js +0 -37
- package/dist/chunk-7XOVTPDI.js +0 -227
- package/dist/chunk-AB5MBIXY.js +0 -281
- package/dist/chunk-ADNMXBCX.js +0 -1193
- package/dist/chunk-AFBJTUFK.js +0 -202
- package/dist/chunk-ALVRWCXE.js +0 -61
- package/dist/chunk-AOHU6O3M.js +0 -247
- package/dist/chunk-AOHU6O3M.js.map +0 -1
- package/dist/chunk-APW4T4SW.js +0 -270
- package/dist/chunk-AXBSYWKX.js +0 -2656
- package/dist/chunk-B2I5ZW35.js +0 -422
- package/dist/chunk-B3LMRTRF.js +0 -223
- package/dist/chunk-BE2XENG2.js +0 -292
- package/dist/chunk-BE2XENG2.js.map +0 -1
- package/dist/chunk-BF4SADKX.js +0 -29
- package/dist/chunk-BKP43KK4.js +0 -1788
- package/dist/chunk-BM3NEZ6X.js +0 -781
- package/dist/chunk-BT3BAGB5.js +0 -216
- package/dist/chunk-BTSYDIVJ.js +0 -357
- package/dist/chunk-BUBNGKWG.js +0 -70
- package/dist/chunk-BVUJV5WR.js +0 -126
- package/dist/chunk-BZO5ZMUP.js +0 -27
- package/dist/chunk-C3HUF3M2.js +0 -157
- package/dist/chunk-C5QCAOES.js +0 -264
- package/dist/chunk-CGK6ALQU.js +0 -159
- package/dist/chunk-CPYGO76Q.js +0 -335
- package/dist/chunk-CQH4FWYA.js +0 -490
- package/dist/chunk-CZP5QXNB.js +0 -234
- package/dist/chunk-D2TOWEYH.js +0 -266
- package/dist/chunk-D6L4GHRH.js +0 -340
- package/dist/chunk-DKT3N37I.js +0 -50
- package/dist/chunk-DMMJIFKA.js +0 -84
- package/dist/chunk-DO74DQC7.js +0 -26
- package/dist/chunk-DOFJZ2JU.js +0 -83
- package/dist/chunk-DSXVY5WZ.js +0 -119
- package/dist/chunk-E337C2VK.js +0 -82
- package/dist/chunk-E6NRSRBE.js +0 -114
- package/dist/chunk-E6SQKHAU.js +0 -114
- package/dist/chunk-E7UIVD7F.js +0 -236
- package/dist/chunk-EGBII4CP.js +0 -229
- package/dist/chunk-EILSAQVJ.js +0 -200
- package/dist/chunk-ELL6HSYR.js +0 -307
- package/dist/chunk-EUBGLFFR.js +0 -73
- package/dist/chunk-EW6RNWSH.js +0 -212
- package/dist/chunk-EYUT5Y6V.js +0 -2599
- package/dist/chunk-F7U3QPZ3.js +0 -304
- package/dist/chunk-FBTJKSTM.js +0 -1270
- package/dist/chunk-FC2FTSK3.js +0 -2424
- package/dist/chunk-FOGNA3BU.js +0 -148
- package/dist/chunk-FQFKHNC7.js +0 -650
- package/dist/chunk-FTCHM755.js +0 -50
- package/dist/chunk-FXSHP4JZ.js +0 -3550
- package/dist/chunk-G6ZZC543.js +0 -818
- package/dist/chunk-G7FU6PUA.js +0 -100
- package/dist/chunk-GA4YEAMX.js +0 -3851
- package/dist/chunk-GE33BGB7.js +0 -12
- package/dist/chunk-GQ67HSJY.js +0 -570
- package/dist/chunk-GXXZ3WAK.js +0 -106
- package/dist/chunk-H2TCRX3H.js +0 -237
- package/dist/chunk-HLL4PBO7.js +0 -60
- package/dist/chunk-HLOEPV5C.js +0 -259
- package/dist/chunk-HUAGBS4O.js +0 -56
- package/dist/chunk-I36GSRUJ.js +0 -211
- package/dist/chunk-I6VBHT7S.js +0 -261
- package/dist/chunk-ICNNNOXE.js +0 -333
- package/dist/chunk-ICX64J4U.js +0 -172
- package/dist/chunk-ID36Y46W.js +0 -5046
- package/dist/chunk-ID36Y46W.js.map +0 -1
- package/dist/chunk-IGVVXLKJ.js +0 -559
- package/dist/chunk-IKJLSBUI.js +0 -2984
- package/dist/chunk-IKMUFDVS.js +0 -50
- package/dist/chunk-IKUNOX7F.js +0 -255
- package/dist/chunk-ILKDYBON.js +0 -288
- package/dist/chunk-IVYJX3OY.js +0 -187
- package/dist/chunk-JCY4CMDH.js +0 -107
- package/dist/chunk-JJZPLGIP.js +0 -474
- package/dist/chunk-JW33RV4V.js +0 -143
- package/dist/chunk-JWPA6ZPZ.js +0 -351
- package/dist/chunk-JZ4QXS6D.js +0 -50
- package/dist/chunk-K42OUZQ3.js +0 -386
- package/dist/chunk-K5TOVX5A.js +0 -206
- package/dist/chunk-K63HGHZX.js +0 -99
- package/dist/chunk-K6R5T44I.js +0 -75
- package/dist/chunk-KHJ5PXFM.js +0 -914
- package/dist/chunk-KJZRQ55O.js +0 -2319
- package/dist/chunk-KJZRQ55O.js.map +0 -1
- package/dist/chunk-KKI55ZMW.js +0 -65
- package/dist/chunk-KRPLAAFP.js +0 -199
- package/dist/chunk-KVFEZDBO.js +0 -134
- package/dist/chunk-L4I665WK.js +0 -45
- package/dist/chunk-L4OF77LE.js +0 -110
- package/dist/chunk-L4OF77LE.js.map +0 -1
- package/dist/chunk-LA5T52RM.js +0 -70
- package/dist/chunk-LM2W5YAT.js +0 -401
- package/dist/chunk-LQ62ECE6.js +0 -390
- package/dist/chunk-LQDUHU3Y.js +0 -71
- package/dist/chunk-LRJIYTZW.js +0 -4157
- package/dist/chunk-LRJIYTZW.js.map +0 -1
- package/dist/chunk-LRN6GYAZ.js +0 -138
- package/dist/chunk-M4SDVTKJ.js +0 -790
- package/dist/chunk-MA6O7CM6.js +0 -99
- package/dist/chunk-MBIBB6GI.js +0 -197
- package/dist/chunk-MF3ZFB4H.js +0 -199
- package/dist/chunk-MJJGJMYJ.js +0 -98
- package/dist/chunk-MLJADQFI.js +0 -4824
- package/dist/chunk-MQG7RV3B.js +0 -62
- package/dist/chunk-MTTGSQA5.js +0 -186
- package/dist/chunk-MW7Y3T55.js +0 -525
- package/dist/chunk-MYUFMVCH.js +0 -121
- package/dist/chunk-N3OARGH2.js +0 -61
- package/dist/chunk-NB2HMRT2.js +0 -353
- package/dist/chunk-NFDFYWMV.js +0 -141
- package/dist/chunk-NWGNFN3N.js +0 -1187
- package/dist/chunk-NWJRPDIO.js +0 -840
- package/dist/chunk-NWJRPDIO.js.map +0 -1
- package/dist/chunk-NXWBBZJV.js +0 -267
- package/dist/chunk-NY2QWROL.js +0 -71
- package/dist/chunk-O2IOPP3R.js +0 -848
- package/dist/chunk-O2UWH5RG.js +0 -141
- package/dist/chunk-O5YWDLYF.js +0 -393
- package/dist/chunk-OBMCZO7E.js +0 -121
- package/dist/chunk-OD3DCCCB.js +0 -132
- package/dist/chunk-OMH7R6I3.js +0 -390
- package/dist/chunk-OSA5EQG5.js +0 -113
- package/dist/chunk-OSJ3MUTZ.js +0 -2936
- package/dist/chunk-OWAYJ2OV.js +0 -368
- package/dist/chunk-OYXBFSGK.js +0 -269
- package/dist/chunk-PC2EBA5G.js +0 -4116
- package/dist/chunk-PC2EBA5G.js.map +0 -1
- package/dist/chunk-PC2MVXIP.js +0 -363
- package/dist/chunk-PC2MVXIP.js.map +0 -1
- package/dist/chunk-PENGLDR5.js +0 -309
- package/dist/chunk-PSMAWRPL.js +0 -191
- package/dist/chunk-PW4IMTYR.js +0 -702
- package/dist/chunk-PW54V7T5.js +0 -387
- package/dist/chunk-Q2EXYSMO.js +0 -24
- package/dist/chunk-Q2XJK5I4.js +0 -51
- package/dist/chunk-Q2XJK5I4.js.map +0 -1
- package/dist/chunk-Q4EFRI6X.js +0 -258
- package/dist/chunk-Q52CXW6C.js +0 -48
- package/dist/chunk-Q6XQ2R37.js +0 -184
- package/dist/chunk-QAJ53XBW.js +0 -23
- package/dist/chunk-QDTKECT4.js +0 -129
- package/dist/chunk-QE3ZFGI3.js +0 -43
- package/dist/chunk-QHHSUR2Y.js +0 -298
- package/dist/chunk-QHNVNR7B.js +0 -173
- package/dist/chunk-QIK2Q6N5.js +0 -376
- package/dist/chunk-QWL4L366.js +0 -38
- package/dist/chunk-R3J2PTVQ.js +0 -690
- package/dist/chunk-RBRX5ZS3.js +0 -319
- package/dist/chunk-REX6JIC7.js +0 -33
- package/dist/chunk-RGZ7EEC3.js +0 -537
- package/dist/chunk-RGZ7EEC3.js.map +0 -1
- package/dist/chunk-RIPS7GFR.js +0 -960
- package/dist/chunk-RTBZNFNV.js +0 -1354
- package/dist/chunk-RTBZNFNV.js.map +0 -1
- package/dist/chunk-SKMNW4SW.js +0 -187
- package/dist/chunk-SRFARKXC.js +0 -623
- package/dist/chunk-SWIHWCTW.js +0 -4461
- package/dist/chunk-TA5CFTO4.js +0 -103
- package/dist/chunk-TF4ZVJLI.js +0 -156
- package/dist/chunk-TG7DADJR.js +0 -9624
- package/dist/chunk-TI4R2ZD5.js +0 -623
- package/dist/chunk-TI4R2ZD5.js.map +0 -1
- package/dist/chunk-TNKWOUWP.js +0 -412
- package/dist/chunk-TNUSPXPW.js +0 -5555
- package/dist/chunk-TNUSPXPW.js.map +0 -1
- package/dist/chunk-TNYFHKVV.js +0 -366
- package/dist/chunk-TPMZBOFH.js +0 -178
- package/dist/chunk-TW3LKRJF.js +0 -263
- package/dist/chunk-TZAO65I4.js +0 -83
- package/dist/chunk-U5EFEMYU.js +0 -89
- package/dist/chunk-U6M4LS3M.js +0 -378
- package/dist/chunk-UI4HI5QK.js +0 -918
- package/dist/chunk-UJDOWCQ3.js +0 -272
- package/dist/chunk-UJUQ2QOX.js +0 -581
- package/dist/chunk-UQ3IM6FY.js +0 -133
- package/dist/chunk-UYE47LO6.js +0 -246
- package/dist/chunk-VADHIT26.js +0 -89
- package/dist/chunk-VFQ3H6CO.js +0 -163
- package/dist/chunk-VGUN6VB2.js +0 -188
- package/dist/chunk-VGWWEVSD.js +0 -723
- package/dist/chunk-VIEFJ2DM.js +0 -2469
- package/dist/chunk-VLXM36VS.js +0 -268
- package/dist/chunk-W3BFRR2G.js +0 -499
- package/dist/chunk-W5MPXR3A.js +0 -981
- package/dist/chunk-W5OWKVZG.js +0 -136
- package/dist/chunk-W6FRORMX.js +0 -486
- package/dist/chunk-W6FRORMX.js.map +0 -1
- package/dist/chunk-W7XROSZO.js +0 -232
- package/dist/chunk-W7XROSZO.js.map +0 -1
- package/dist/chunk-WEZ5PXZP.js +0 -403
- package/dist/chunk-WHWUWN2X.js +0 -197
- package/dist/chunk-WHWUWN2X.js.map +0 -1
- package/dist/chunk-WLEDGIVS.js +0 -114
- package/dist/chunk-WLEDGIVS.js.map +0 -1
- package/dist/chunk-WNDAKLHG.js +0 -281
- package/dist/chunk-WTJ4PLMU.js +0 -103
- package/dist/chunk-WV2KPJUW.js +0 -107
- package/dist/chunk-X3VY5EGY.js +0 -277
- package/dist/chunk-X3VY5EGY.js.map +0 -1
- package/dist/chunk-XDBYWVCW.js +0 -418
- package/dist/chunk-XF7MA4U5.js +0 -36
- package/dist/chunk-XF7MA4U5.js.map +0 -1
- package/dist/chunk-XOSQP3YA.js +0 -605
- package/dist/chunk-XYBV4ZJQ.js +0 -271
- package/dist/chunk-YBKVGLQR.js +0 -147
- package/dist/chunk-YDCUBUWH.js +0 -1583
- package/dist/chunk-YG6NARQY.js +0 -51
- package/dist/chunk-YG6NARQY.js.map +0 -1
- package/dist/chunk-YSVD5HI4.js +0 -278
- package/dist/chunk-YT3WGNG6.js +0 -290
- package/dist/chunk-YYICQDK4.js +0 -414
- package/dist/chunk-YYLMZLI6.js +0 -686
- package/dist/chunk-ZAMTKG5U.js +0 -95
- package/dist/chunk-ZDLYSXKN.js +0 -111
- package/dist/chunk-ZG447FSS.js +0 -194
- package/dist/chunk-ZIT5KD4Q.js +0 -264
- package/dist/chunk-ZUDOVDKR.js +0 -3064
- package/dist/chunk-ZW2ECJ3A.js +0 -451
- package/dist/computer-viewer-LPZ763KF.js +0 -21
- package/dist/embedded-new-voice-YVMKSLKJ.js +0 -24
- package/dist/embedded-voice-BJPQFXSU.js +0 -24
- package/dist/fleet-decision-row-AA4H5CDT.js +0 -361
- package/dist/model-policy-picker-menu-HSMWVO4P.js +0 -22
- package/dist/payment-page-card-3LTSFJGN.js +0 -223
- package/dist/platform-activity-row-5VYV6TX4.js +0 -128
- package/dist/queue-surface-implementation-NXHZUKD2.js +0 -908
- package/dist/recorder-host-ZKRWTDBM.js +0 -57
- package/dist/recorder-host-ZKRWTDBM.js.map +0 -1
- package/dist/sandbox-files-YCMLQUFU.js +0 -27
- package/dist/session-connect-cards-KSQLMRM5.js +0 -25
- package/dist/session-realtime-ZR6JLG3Y.js +0 -30
- package/dist/timeline-annotation-markers-YAHDPWVG.js +0 -157
- package/dist/timeline-annotation-selection-KHXNCEJP.js +0 -208
- package/dist/timeline-annotations-dialog-Y4XD3N7B.js +0 -283
- /package/dist/{browser-viewer-NOP5EAUO.js.map → browser-viewer-TC27OCIP.js.map} +0 -0
- /package/dist/{chat-interactive-block-G7O44JHR.js.map → chat-interactive-block-RWPQBHVS.js.map} +0 -0
- /package/dist/{chunk-EGBII4CP.js.map → chunk-2BDT3UZQ.js.map} +0 -0
- /package/dist/{chunk-4YD7YZC5.js.map → chunk-2CLNIEK4.js.map} +0 -0
- /package/dist/{chunk-ZW2ECJ3A.js.map → chunk-2FSBSCZJ.js.map} +0 -0
- /package/dist/{chunk-KRPLAAFP.js.map → chunk-2I7HDP53.js.map} +0 -0
- /package/dist/{chunk-3QX55WLC.js.map → chunk-2INLDVK3.js.map} +0 -0
- /package/dist/{chunk-BVUJV5WR.js.map → chunk-2KALVELR.js.map} +0 -0
- /package/dist/{chunk-XDBYWVCW.js.map → chunk-2M3J7ZWQ.js.map} +0 -0
- /package/dist/{chunk-2RREGDQH.js.map → chunk-2OP6WLGV.js.map} +0 -0
- /package/dist/{chunk-OSJ3MUTZ.js.map → chunk-2RG7NIAS.js.map} +0 -0
- /package/dist/{chunk-26RWVLRD.js.map → chunk-2STUPWEL.js.map} +0 -0
- /package/dist/{chunk-XYBV4ZJQ.js.map → chunk-2YUOVM3G.js.map} +0 -0
- /package/dist/{chunk-2GDNWKSC.js.map → chunk-2Z3NQNTM.js.map} +0 -0
- /package/dist/{chunk-2VB2O4FQ.js.map → chunk-3CPWWGNK.js.map} +0 -0
- /package/dist/{chunk-7WKP3DYJ.js.map → chunk-3ED2U6XE.js.map} +0 -0
- /package/dist/{chunk-BT3BAGB5.js.map → chunk-3GZA4BUW.js.map} +0 -0
- /package/dist/{chunk-3USJPT2S.js.map → chunk-3IK6UYO6.js.map} +0 -0
- /package/dist/{chunk-6AHATAAY.js.map → chunk-3PZ7JZI2.js.map} +0 -0
- /package/dist/{chunk-JZ4QXS6D.js.map → chunk-4DVJ6ONS.js.map} +0 -0
- /package/dist/{chunk-5QM2WPKV.js.map → chunk-4E3ZJRTZ.js.map} +0 -0
- /package/dist/{chunk-NFDFYWMV.js.map → chunk-4SAWSRAA.js.map} +0 -0
- /package/dist/{chunk-ELL6HSYR.js.map → chunk-53AGXXZM.js.map} +0 -0
- /package/dist/{chunk-G6ZZC543.js.map → chunk-54YW6SZZ.js.map} +0 -0
- /package/dist/{chunk-4SZZAFYQ.js.map → chunk-57AZS3IE.js.map} +0 -0
- /package/dist/{chunk-JW33RV4V.js.map → chunk-5CPEEAFD.js.map} +0 -0
- /package/dist/{chunk-D6L4GHRH.js.map → chunk-5EWSRZ2Y.js.map} +0 -0
- /package/dist/{chunk-PW54V7T5.js.map → chunk-5IE76VCY.js.map} +0 -0
- /package/dist/{chunk-6GXVYAGR.js.map → chunk-5NWEKLDZ.js.map} +0 -0
- /package/dist/{chunk-6UHCBH4G.js.map → chunk-5O2FCCHZ.js.map} +0 -0
- /package/dist/{chunk-2YC6JQRO.js.map → chunk-5QAY6K77.js.map} +0 -0
- /package/dist/{chunk-EYUT5Y6V.js.map → chunk-6DK6Z4UN.js.map} +0 -0
- /package/dist/{chunk-PW4IMTYR.js.map → chunk-6DVCC7QS.js.map} +0 -0
- /package/dist/{chunk-7WIDB4PL.js.map → chunk-6JHU2UBS.js.map} +0 -0
- /package/dist/{chunk-CQH4FWYA.js.map → chunk-6PZ7OBYU.js.map} +0 -0
- /package/dist/{chunk-VFQ3H6CO.js.map → chunk-6WGRDRMA.js.map} +0 -0
- /package/dist/{chunk-MTTGSQA5.js.map → chunk-77WAKEAH.js.map} +0 -0
- /package/dist/{chunk-O5YWDLYF.js.map → chunk-7TDO3CUM.js.map} +0 -0
- /package/dist/{chunk-2AHTY7OT.js.map → chunk-7TIX2UAR.js.map} +0 -0
- /package/dist/{chunk-FOGNA3BU.js.map → chunk-7V5REBCP.js.map} +0 -0
- /package/dist/{chunk-2JENKGCE.js.map → chunk-7VMZGLYI.js.map} +0 -0
- /package/dist/{chunk-E7UIVD7F.js.map → chunk-7W37NS3I.js.map} +0 -0
- /package/dist/{chunk-ZDLYSXKN.js.map → chunk-7X6SDK2C.js.map} +0 -0
- /package/dist/{chunk-ZAMTKG5U.js.map → chunk-7ZNUHRP5.js.map} +0 -0
- /package/dist/{chunk-DMMJIFKA.js.map → chunk-A36PZALD.js.map} +0 -0
- /package/dist/{chunk-WV2KPJUW.js.map → chunk-AUI6VA63.js.map} +0 -0
- /package/dist/{chunk-Q2EXYSMO.js.map → chunk-AW2MQB37.js.map} +0 -0
- /package/dist/{chunk-6WLX3NR3.js.map → chunk-AWKES45Y.js.map} +0 -0
- /package/dist/{chunk-OD3DCCCB.js.map → chunk-AXHZYXUV.js.map} +0 -0
- /package/dist/{chunk-QDTKECT4.js.map → chunk-BHNSJVBC.js.map} +0 -0
- /package/dist/{chunk-FTCHM755.js.map → chunk-BJEJFISW.js.map} +0 -0
- /package/dist/{chunk-B2I5ZW35.js.map → chunk-BJFH6JI5.js.map} +0 -0
- /package/dist/{chunk-RIPS7GFR.js.map → chunk-BMICEQZQ.js.map} +0 -0
- /package/dist/{chunk-BF4SADKX.js.map → chunk-BTLBYBLU.js.map} +0 -0
- /package/dist/{chunk-U5EFEMYU.js.map → chunk-BXBDYNRP.js.map} +0 -0
- /package/dist/{chunk-BTSYDIVJ.js.map → chunk-C372BFOV.js.map} +0 -0
- /package/dist/{chunk-MLJADQFI.js.map → chunk-CMKGILJK.js.map} +0 -0
- /package/dist/{chunk-DKT3N37I.js.map → chunk-CRAOSVHC.js.map} +0 -0
- /package/dist/{chunk-WNDAKLHG.js.map → chunk-CRU35QQH.js.map} +0 -0
- /package/dist/{chunk-2XNG2KNT.js.map → chunk-CUIWCGMA.js.map} +0 -0
- /package/dist/{chunk-QWL4L366.js.map → chunk-D5TWNFFE.js.map} +0 -0
- /package/dist/{chunk-SWIHWCTW.js.map → chunk-DF5EAHDN.js.map} +0 -0
- /package/dist/{chunk-HUAGBS4O.js.map → chunk-DJAXC5OK.js.map} +0 -0
- /package/dist/{chunk-FXSHP4JZ.js.map → chunk-DXBYWSL5.js.map} +0 -0
- /package/dist/{chunk-5MUJDC6C.js.map → chunk-DXR5PDFP.js.map} +0 -0
- /package/dist/{chunk-NXWBBZJV.js.map → chunk-DZWARC4M.js.map} +0 -0
- /package/dist/{chunk-GXXZ3WAK.js.map → chunk-DZXEDSQI.js.map} +0 -0
- /package/dist/{chunk-Q52CXW6C.js.map → chunk-E7XERZWC.js.map} +0 -0
- /package/dist/{chunk-4NBTZRKT.js.map → chunk-ECJBYNLJ.js.map} +0 -0
- /package/dist/{chunk-QE3ZFGI3.js.map → chunk-EDI6SJ2N.js.map} +0 -0
- /package/dist/{chunk-E6NRSRBE.js.map → chunk-EWSOC6WF.js.map} +0 -0
- /package/dist/{chunk-TA5CFTO4.js.map → chunk-F2OPHAUN.js.map} +0 -0
- /package/dist/{chunk-5DTST3TP.js.map → chunk-F4ISQGGM.js.map} +0 -0
- /package/dist/{chunk-MBIBB6GI.js.map → chunk-FO4LYKJL.js.map} +0 -0
- /package/dist/{chunk-EUBGLFFR.js.map → chunk-FPXASDG5.js.map} +0 -0
- /package/dist/{chunk-C3HUF3M2.js.map → chunk-FVXBNBHO.js.map} +0 -0
- /package/dist/{chunk-W5MPXR3A.js.map → chunk-FZC5N55X.js.map} +0 -0
- /package/dist/{chunk-MA6O7CM6.js.map → chunk-GAVYGBFI.js.map} +0 -0
- /package/dist/{chunk-REX6JIC7.js.map → chunk-GKVJIDHF.js.map} +0 -0
- /package/dist/{chunk-EW6RNWSH.js.map → chunk-GVN5SZLX.js.map} +0 -0
- /package/dist/{chunk-KVFEZDBO.js.map → chunk-H3T7IWNA.js.map} +0 -0
- /package/dist/{chunk-I6VBHT7S.js.map → chunk-HAX4LCR5.js.map} +0 -0
- /package/dist/{chunk-OBMCZO7E.js.map → chunk-HC4JFZVU.js.map} +0 -0
- /package/dist/{chunk-UJUQ2QOX.js.map → chunk-HEFPPMBQ.js.map} +0 -0
- /package/dist/{chunk-DOFJZ2JU.js.map → chunk-HNLR7Q4Z.js.map} +0 -0
- /package/dist/{chunk-GE33BGB7.js.map → chunk-HSOXMJOT.js.map} +0 -0
- /package/dist/{chunk-AB5MBIXY.js.map → chunk-I4MRDSUF.js.map} +0 -0
- /package/dist/{chunk-AFBJTUFK.js.map → chunk-I4QEJ62Y.js.map} +0 -0
- /package/dist/{chunk-6ED2YWBT.js.map → chunk-I5B5L6Q4.js.map} +0 -0
- /package/dist/{chunk-C5QCAOES.js.map → chunk-I5QZJODL.js.map} +0 -0
- /package/dist/{chunk-76ERNKIZ.js.map → chunk-I7ITSXSJ.js.map} +0 -0
- /package/dist/{chunk-OMH7R6I3.js.map → chunk-I7XIZRFD.js.map} +0 -0
- /package/dist/{chunk-E337C2VK.js.map → chunk-IDANQPRH.js.map} +0 -0
- /package/dist/{chunk-3FD76LXM.js.map → chunk-IFB3WJ36.js.map} +0 -0
- /package/dist/{chunk-ZIT5KD4Q.js.map → chunk-IHTAKKTK.js.map} +0 -0
- /package/dist/{chunk-QHNVNR7B.js.map → chunk-ILDXWY37.js.map} +0 -0
- /package/dist/{chunk-GQ67HSJY.js.map → chunk-IMDQUHBJ.js.map} +0 -0
- /package/dist/{chunk-DSXVY5WZ.js.map → chunk-IMZCQBOT.js.map} +0 -0
- /package/dist/{chunk-WEZ5PXZP.js.map → chunk-IXPTECSC.js.map} +0 -0
- /package/dist/{chunk-NY2QWROL.js.map → chunk-J255A3N5.js.map} +0 -0
- /package/dist/{chunk-O2UWH5RG.js.map → chunk-J5F5HPPW.js.map} +0 -0
- /package/dist/{chunk-VIEFJ2DM.js.map → chunk-JEA3QDX7.js.map} +0 -0
- /package/dist/{chunk-TF4ZVJLI.js.map → chunk-JEUPAVYY.js.map} +0 -0
- /package/dist/{chunk-ZG447FSS.js.map → chunk-JKHKLL5W.js.map} +0 -0
- /package/dist/{chunk-FQFKHNC7.js.map → chunk-JQL7ZH6C.js.map} +0 -0
- /package/dist/{chunk-776QZ573.js.map → chunk-JWB44UGJ.js.map} +0 -0
- /package/dist/{chunk-ICNNNOXE.js.map → chunk-JZ4NLCAP.js.map} +0 -0
- /package/dist/{chunk-TNKWOUWP.js.map → chunk-K2A5PXQ5.js.map} +0 -0
- /package/dist/{chunk-SRFARKXC.js.map → chunk-K56XV3C3.js.map} +0 -0
- /package/dist/{chunk-QAJ53XBW.js.map → chunk-K6GAXXVA.js.map} +0 -0
- /package/dist/{chunk-MF3ZFB4H.js.map → chunk-KCBMFSMS.js.map} +0 -0
- /package/dist/{chunk-VLXM36VS.js.map → chunk-KF2FV3ZJ.js.map} +0 -0
- /package/dist/{chunk-YSVD5HI4.js.map → chunk-KJD65EJP.js.map} +0 -0
- /package/dist/{chunk-K42OUZQ3.js.map → chunk-KLEUWIMZ.js.map} +0 -0
- /package/dist/{chunk-PENGLDR5.js.map → chunk-KODELWYT.js.map} +0 -0
- /package/dist/{chunk-TZAO65I4.js.map → chunk-KRDR5RJD.js.map} +0 -0
- /package/dist/{chunk-KHJ5PXFM.js.map → chunk-KUDGXAF7.js.map} +0 -0
- /package/dist/{chunk-6H4SJBPE.js.map → chunk-KYS77RPN.js.map} +0 -0
- /package/dist/{chunk-OWAYJ2OV.js.map → chunk-L7YTNTIK.js.map} +0 -0
- /package/dist/{chunk-YYLMZLI6.js.map → chunk-LHPNABDH.js.map} +0 -0
- /package/dist/{chunk-LM2W5YAT.js.map → chunk-MFROMEKA.js.map} +0 -0
- /package/dist/{chunk-AXBSYWKX.js.map → chunk-MIHN76LX.js.map} +0 -0
- /package/dist/{chunk-4LPOWQJY.js.map → chunk-MIYFS2XN.js.map} +0 -0
- /package/dist/{chunk-KKI55ZMW.js.map → chunk-MJUCFQMS.js.map} +0 -0
- /package/dist/{chunk-ZUDOVDKR.js.map → chunk-MM4FNWI4.js.map} +0 -0
- /package/dist/{chunk-M4SDVTKJ.js.map → chunk-MNZG4OHU.js.map} +0 -0
- /package/dist/{chunk-EILSAQVJ.js.map → chunk-N6AACDUW.js.map} +0 -0
- /package/dist/{chunk-BM3NEZ6X.js.map → chunk-NC55IFN3.js.map} +0 -0
- /package/dist/{chunk-MJJGJMYJ.js.map → chunk-NC7PVOEK.js.map} +0 -0
- /package/dist/{chunk-LA5T52RM.js.map → chunk-NCYMNCJO.js.map} +0 -0
- /package/dist/{chunk-HLOEPV5C.js.map → chunk-ND2BXV3P.js.map} +0 -0
- /package/dist/{chunk-UJDOWCQ3.js.map → chunk-NDBTFUO6.js.map} +0 -0
- /package/dist/{chunk-K5TOVX5A.js.map → chunk-NDQJZ7HF.js.map} +0 -0
- /package/dist/{chunk-35737UT4.js.map → chunk-NGJJJPZZ.js.map} +0 -0
- /package/dist/{chunk-42CMQ5VR.js.map → chunk-NJTSNNE7.js.map} +0 -0
- /package/dist/{chunk-FBTJKSTM.js.map → chunk-NRTE7DNV.js.map} +0 -0
- /package/dist/{chunk-YT3WGNG6.js.map → chunk-NULUNM7H.js.map} +0 -0
- /package/dist/{chunk-7XOVTPDI.js.map → chunk-NUNZS36W.js.map} +0 -0
- /package/dist/{chunk-FC2FTSK3.js.map → chunk-NW53H5RW.js.map} +0 -0
- /package/dist/{chunk-TW3LKRJF.js.map → chunk-NXCMHIKI.js.map} +0 -0
- /package/dist/{chunk-CGK6ALQU.js.map → chunk-O3LKCBP5.js.map} +0 -0
- /package/dist/{chunk-QIK2Q6N5.js.map → chunk-O6N4ABCA.js.map} +0 -0
- /package/dist/{chunk-73NXYYWE.js.map → chunk-O732GAFC.js.map} +0 -0
- /package/dist/{chunk-R3J2PTVQ.js.map → chunk-OF4TIKYC.js.map} +0 -0
- /package/dist/{chunk-BUBNGKWG.js.map → chunk-OMPVOMPP.js.map} +0 -0
- /package/dist/{chunk-4OXI6HCV.js.map → chunk-OPJJSKUK.js.map} +0 -0
- /package/dist/{chunk-4Y6BK7IU.js.map → chunk-OPWCMA4D.js.map} +0 -0
- /package/dist/{chunk-ADNMXBCX.js.map → chunk-ORJPS5VN.js.map} +0 -0
- /package/dist/{chunk-SKMNW4SW.js.map → chunk-OSY5K7L7.js.map} +0 -0
- /package/dist/{chunk-L4I665WK.js.map → chunk-OV6QJRT4.js.map} +0 -0
- /package/dist/{chunk-7O5CGGIQ.js.map → chunk-OVKYVZMW.js.map} +0 -0
- /package/dist/{chunk-7BYWOFVH.js.map → chunk-OZCBM3UC.js.map} +0 -0
- /package/dist/{chunk-ALVRWCXE.js.map → chunk-P3A2EINJ.js.map} +0 -0
- /package/dist/{chunk-BZO5ZMUP.js.map → chunk-PTAG4PDC.js.map} +0 -0
- /package/dist/{chunk-QHHSUR2Y.js.map → chunk-PTF5B7TJ.js.map} +0 -0
- /package/dist/{chunk-O2IOPP3R.js.map → chunk-Q3DPEYX4.js.map} +0 -0
- /package/dist/{chunk-G7FU6PUA.js.map → chunk-QB2KMIDP.js.map} +0 -0
- /package/dist/{chunk-64PO2WXU.js.map → chunk-QCSJ4CWE.js.map} +0 -0
- /package/dist/{chunk-YYICQDK4.js.map → chunk-QIOQ2NPQ.js.map} +0 -0
- /package/dist/{chunk-NB2HMRT2.js.map → chunk-QK5EFEUT.js.map} +0 -0
- /package/dist/{chunk-366XZ4PM.js.map → chunk-QPQBLYQJ.js.map} +0 -0
- /package/dist/{chunk-Q6XQ2R37.js.map → chunk-QPSGCC5D.js.map} +0 -0
- /package/dist/{chunk-JJZPLGIP.js.map → chunk-QZAAUQRN.js.map} +0 -0
- /package/dist/{chunk-VGUN6VB2.js.map → chunk-RGBI63KJ.js.map} +0 -0
- /package/dist/{chunk-LRN6GYAZ.js.map → chunk-RLBKLAEY.js.map} +0 -0
- /package/dist/{chunk-F7U3QPZ3.js.map → chunk-RMFKVOM7.js.map} +0 -0
- /package/dist/{chunk-Q4EFRI6X.js.map → chunk-ROKQU7WG.js.map} +0 -0
- /package/dist/{chunk-7QOHRZ67.js.map → chunk-RPVREAU7.js.map} +0 -0
- /package/dist/{chunk-VGWWEVSD.js.map → chunk-RQKLF42C.js.map} +0 -0
- /package/dist/{chunk-2VTTKH23.js.map → chunk-SEO7TICN.js.map} +0 -0
- /package/dist/{chunk-3QNRBEYH.js.map → chunk-SHHJCL7X.js.map} +0 -0
- /package/dist/{chunk-E6SQKHAU.js.map → chunk-SIRLACNZ.js.map} +0 -0
- /package/dist/{chunk-H2TCRX3H.js.map → chunk-SKPHMYAA.js.map} +0 -0
- /package/dist/{chunk-YDCUBUWH.js.map → chunk-SODC7T6L.js.map} +0 -0
- /package/dist/{chunk-TNYFHKVV.js.map → chunk-SQJIKMN3.js.map} +0 -0
- /package/dist/{chunk-DO74DQC7.js.map → chunk-SVINDKVW.js.map} +0 -0
- /package/dist/{chunk-CPYGO76Q.js.map → chunk-SYCDHPZF.js.map} +0 -0
- /package/dist/{chunk-UQ3IM6FY.js.map → chunk-T2QX3FDP.js.map} +0 -0
- /package/dist/{chunk-NWGNFN3N.js.map → chunk-T3OWFVMS.js.map} +0 -0
- /package/dist/{chunk-N3OARGH2.js.map → chunk-T6XI5FLY.js.map} +0 -0
- /package/dist/{chunk-MQG7RV3B.js.map → chunk-T7OXJZCX.js.map} +0 -0
- /package/dist/{chunk-2T7DX6KR.js.map → chunk-TAT5USZN.js.map} +0 -0
- /package/dist/{chunk-ICX64J4U.js.map → chunk-TPQTRNER.js.map} +0 -0
- /package/dist/{chunk-D2TOWEYH.js.map → chunk-TUIN4MB7.js.map} +0 -0
- /package/dist/{chunk-LQDUHU3Y.js.map → chunk-TX3VECZU.js.map} +0 -0
- /package/dist/{chunk-TG7DADJR.js.map → chunk-TXLIEOJX.js.map} +0 -0
- /package/dist/{chunk-2ZVRJRXC.js.map → chunk-U3DN4HEY.js.map} +0 -0
- /package/dist/{chunk-PSMAWRPL.js.map → chunk-U7XM7CB4.js.map} +0 -0
- /package/dist/{chunk-4TQL3WP2.js.map → chunk-UJK53QFL.js.map} +0 -0
- /package/dist/{chunk-RBRX5ZS3.js.map → chunk-UMTXA2TH.js.map} +0 -0
- /package/dist/{chunk-36MIDGAH.js.map → chunk-UPDSXFK5.js.map} +0 -0
- /package/dist/{chunk-OYXBFSGK.js.map → chunk-UTIAXH52.js.map} +0 -0
- /package/dist/{chunk-5WUN7XPD.js.map → chunk-UVN5TMHU.js.map} +0 -0
- /package/dist/{chunk-UYE47LO6.js.map → chunk-VGYXW3VG.js.map} +0 -0
- /package/dist/{chunk-IKUNOX7F.js.map → chunk-VS7AHPCZ.js.map} +0 -0
- /package/dist/{chunk-MYUFMVCH.js.map → chunk-VTTAJOQ7.js.map} +0 -0
- /package/dist/{chunk-K63HGHZX.js.map → chunk-VWPOLUAO.js.map} +0 -0
- /package/dist/{chunk-GA4YEAMX.js.map → chunk-X3MWB2QU.js.map} +0 -0
- /package/dist/{chunk-I36GSRUJ.js.map → chunk-X6KAJI3V.js.map} +0 -0
- /package/dist/{chunk-IKMUFDVS.js.map → chunk-XBLRHV5R.js.map} +0 -0
- /package/dist/{chunk-XOSQP3YA.js.map → chunk-XDFP2LMW.js.map} +0 -0
- /package/dist/{chunk-MW7Y3T55.js.map → chunk-XEQMZB3C.js.map} +0 -0
- /package/dist/{chunk-B3LMRTRF.js.map → chunk-XEYLT5VA.js.map} +0 -0
- /package/dist/{chunk-UI4HI5QK.js.map → chunk-XHIQ5I6N.js.map} +0 -0
- /package/dist/{chunk-U6M4LS3M.js.map → chunk-XLH7QY2R.js.map} +0 -0
- /package/dist/{chunk-OSA5EQG5.js.map → chunk-XWFAMUZQ.js.map} +0 -0
- /package/dist/{chunk-6MT3HHUB.js.map → chunk-Y4OBB2VN.js.map} +0 -0
- /package/dist/{chunk-CZP5QXNB.js.map → chunk-YCVD6CI3.js.map} +0 -0
- /package/dist/{chunk-APW4T4SW.js.map → chunk-YENLNISG.js.map} +0 -0
- /package/dist/{chunk-JWPA6ZPZ.js.map → chunk-YIRVLKAX.js.map} +0 -0
- /package/dist/{chunk-LQ62ECE6.js.map → chunk-YL73CVNK.js.map} +0 -0
- /package/dist/{chunk-ILKDYBON.js.map → chunk-YLS6QE5G.js.map} +0 -0
- /package/dist/{chunk-YBKVGLQR.js.map → chunk-YPWU5KPE.js.map} +0 -0
- /package/dist/{chunk-IKJLSBUI.js.map → chunk-YQXTDZSU.js.map} +0 -0
- /package/dist/{chunk-TPMZBOFH.js.map → chunk-YSJEAAOL.js.map} +0 -0
- /package/dist/{chunk-W3BFRR2G.js.map → chunk-YWIFM7D7.js.map} +0 -0
- /package/dist/{chunk-WTJ4PLMU.js.map → chunk-YWVI6ZMK.js.map} +0 -0
- /package/dist/{chunk-5KWMYPJV.js.map → chunk-Z4FMAFNH.js.map} +0 -0
- /package/dist/{chunk-W5OWKVZG.js.map → chunk-Z654FWNU.js.map} +0 -0
- /package/dist/{chunk-5FH5LQVS.js.map → chunk-Z7Y523PS.js.map} +0 -0
- /package/dist/{chunk-HLL4PBO7.js.map → chunk-ZD67RM6G.js.map} +0 -0
- /package/dist/{chunk-IVYJX3OY.js.map → chunk-ZEG4VPBL.js.map} +0 -0
- /package/dist/{chunk-K6R5T44I.js.map → chunk-ZLYCOBHW.js.map} +0 -0
- /package/dist/{chunk-VADHIT26.js.map → chunk-ZNJ5MTXV.js.map} +0 -0
- /package/dist/{chunk-2KYQC4T5.js.map → chunk-ZSGY3H53.js.map} +0 -0
- /package/dist/{chunk-BKP43KK4.js.map → chunk-ZTPXACWB.js.map} +0 -0
- /package/dist/{chunk-JCY4CMDH.js.map → chunk-ZUA3JMI6.js.map} +0 -0
- /package/dist/{chunk-IGVVXLKJ.js.map → chunk-ZYAZUPPV.js.map} +0 -0
- /package/dist/{computer-viewer-LPZ763KF.js.map → computer-viewer-TDDO25AV.js.map} +0 -0
- /package/dist/{embedded-new-voice-YVMKSLKJ.js.map → embedded-new-voice-2G3VLPVQ.js.map} +0 -0
- /package/dist/{embedded-voice-BJPQFXSU.js.map → embedded-voice-T5IWOWGD.js.map} +0 -0
- /package/dist/{fleet-decision-row-AA4H5CDT.js.map → fleet-decision-row-WM64KXP3.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-HSMWVO4P.js.map → model-policy-picker-menu-SMC6J6QN.js.map} +0 -0
- /package/dist/{payment-page-card-3LTSFJGN.js.map → payment-page-card-G4U63KUV.js.map} +0 -0
- /package/dist/{platform-activity-row-5VYV6TX4.js.map → platform-activity-row-BUZGZAKZ.js.map} +0 -0
- /package/dist/{queue-surface-implementation-NXHZUKD2.js.map → queue-surface-implementation-4KUZ4PJV.js.map} +0 -0
- /package/dist/{sandbox-files-YCMLQUFU.js.map → sandbox-files-ESDMOFSD.js.map} +0 -0
- /package/dist/{session-connect-cards-KSQLMRM5.js.map → session-connect-cards-Q53KMMYY.js.map} +0 -0
- /package/dist/{session-realtime-ZR6JLG3Y.js.map → session-realtime-CF3I35WJ.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-YAHDPWVG.js.map → timeline-annotation-markers-CJK4RYZ4.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-KHXNCEJP.js.map → timeline-annotation-selection-67GF5H26.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-Y4XD3N7B.js.map → timeline-annotations-dialog-ONJPQDJQ.js.map} +0 -0
package/dist/chunk-YDCUBUWH.js
DELETED
|
@@ -1,1583 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
useOpenGeniText
|
|
4
|
-
} from "./chunk-TNUSPXPW.js";
|
|
5
|
-
|
|
6
|
-
// src/hooks/use-transcription.ts
|
|
7
|
-
import {
|
|
8
|
-
authorizeTranscriptionAdapter,
|
|
9
|
-
createTranscriptionSessionRequest
|
|
10
|
-
} from "@opengeni/sdk";
|
|
11
|
-
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
12
|
-
var INITIAL_TRANSCRIPTION_CONTROL_STATE = {
|
|
13
|
-
status: "idle",
|
|
14
|
-
generation: 0,
|
|
15
|
-
localSessionId: null,
|
|
16
|
-
providerSessionId: null,
|
|
17
|
-
lastSequence: 0,
|
|
18
|
-
partial: "",
|
|
19
|
-
error: null,
|
|
20
|
-
acceptedFinalIds: [],
|
|
21
|
-
audioMilliseconds: 0,
|
|
22
|
-
costUsd: null
|
|
23
|
-
};
|
|
24
|
-
function transitionTranscriptionControl(state, action) {
|
|
25
|
-
if (action.type === "reset") {
|
|
26
|
-
return {
|
|
27
|
-
state: { ...INITIAL_TRANSCRIPTION_CONTROL_STATE, generation: state.generation },
|
|
28
|
-
commit: null
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
if (action.type === "start") {
|
|
32
|
-
if (action.generation <= state.generation) return { state, commit: null };
|
|
33
|
-
return {
|
|
34
|
-
state: {
|
|
35
|
-
...INITIAL_TRANSCRIPTION_CONTROL_STATE,
|
|
36
|
-
status: "requesting-permission",
|
|
37
|
-
generation: action.generation,
|
|
38
|
-
localSessionId: action.localSessionId
|
|
39
|
-
},
|
|
40
|
-
commit: null
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
if (action.generation !== state.generation) return { state, commit: null };
|
|
44
|
-
if (action.type === "start.failed") {
|
|
45
|
-
if (state.status === "closed" || state.status === "error") return { state, commit: null };
|
|
46
|
-
return {
|
|
47
|
-
state: {
|
|
48
|
-
...state,
|
|
49
|
-
status: "error",
|
|
50
|
-
partial: "",
|
|
51
|
-
error: { code: normalizeTranscriptionErrorCode(action.code), recoverable: false }
|
|
52
|
-
},
|
|
53
|
-
commit: null
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
if (action.type === "cancel") {
|
|
57
|
-
if (!isActiveTranscriptionStatus(state.status)) return { state, commit: null };
|
|
58
|
-
return {
|
|
59
|
-
state: { ...state, status: "cancelling", partial: "", error: null },
|
|
60
|
-
commit: null
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
if (action.type === "cancel.settled") {
|
|
64
|
-
if (state.status !== "cancelling") return { state, commit: null };
|
|
65
|
-
return { state: { ...state, status: "closed", partial: "" }, commit: null };
|
|
66
|
-
}
|
|
67
|
-
const event = action.event;
|
|
68
|
-
if (event.localSessionId !== state.localSessionId) return { state, commit: null };
|
|
69
|
-
if (!Number.isSafeInteger(event.sequence) || event.sequence <= state.lastSequence) {
|
|
70
|
-
return { state, commit: null };
|
|
71
|
-
}
|
|
72
|
-
if (state.status === "closed" || state.status === "error") return { state, commit: null };
|
|
73
|
-
if (state.status === "cancelling" && event.type !== "session.closed") {
|
|
74
|
-
return { state: { ...state, lastSequence: event.sequence }, commit: null };
|
|
75
|
-
}
|
|
76
|
-
const sequenced = { ...state, lastSequence: event.sequence };
|
|
77
|
-
switch (event.type) {
|
|
78
|
-
case "permission.requested":
|
|
79
|
-
return {
|
|
80
|
-
state: { ...sequenced, status: "requesting-permission", partial: "", error: null },
|
|
81
|
-
commit: null
|
|
82
|
-
};
|
|
83
|
-
case "session.opened":
|
|
84
|
-
return {
|
|
85
|
-
state: {
|
|
86
|
-
...sequenced,
|
|
87
|
-
status: "listening",
|
|
88
|
-
providerSessionId: event.providerSessionId,
|
|
89
|
-
error: null
|
|
90
|
-
},
|
|
91
|
-
commit: null
|
|
92
|
-
};
|
|
93
|
-
case "transcript.partial":
|
|
94
|
-
return {
|
|
95
|
-
state: { ...sequenced, status: "listening", partial: event.text, error: null },
|
|
96
|
-
commit: null
|
|
97
|
-
};
|
|
98
|
-
case "transcript.final": {
|
|
99
|
-
const text = event.text.trim();
|
|
100
|
-
const duplicate = state.acceptedFinalIds.includes(event.providerAcceptanceId);
|
|
101
|
-
const acceptedFinalIds = duplicate || text.length === 0 ? state.acceptedFinalIds : [...state.acceptedFinalIds, event.providerAcceptanceId];
|
|
102
|
-
return {
|
|
103
|
-
state: {
|
|
104
|
-
...sequenced,
|
|
105
|
-
status: "listening",
|
|
106
|
-
partial: "",
|
|
107
|
-
error: null,
|
|
108
|
-
acceptedFinalIds
|
|
109
|
-
},
|
|
110
|
-
commit: duplicate || text.length === 0 ? null : text
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
case "usage":
|
|
114
|
-
return {
|
|
115
|
-
state: {
|
|
116
|
-
...sequenced,
|
|
117
|
-
audioMilliseconds: Math.max(state.audioMilliseconds, event.audioMilliseconds),
|
|
118
|
-
costUsd: event.costUsd
|
|
119
|
-
},
|
|
120
|
-
commit: null
|
|
121
|
-
};
|
|
122
|
-
case "session.reconnecting":
|
|
123
|
-
return {
|
|
124
|
-
state: { ...sequenced, status: "reconnecting", partial: "", error: null },
|
|
125
|
-
commit: null
|
|
126
|
-
};
|
|
127
|
-
case "session.error":
|
|
128
|
-
return {
|
|
129
|
-
state: {
|
|
130
|
-
...sequenced,
|
|
131
|
-
status: event.recoverable ? "reconnecting" : "error",
|
|
132
|
-
partial: "",
|
|
133
|
-
error: {
|
|
134
|
-
code: normalizeTranscriptionErrorCode(event.code),
|
|
135
|
-
recoverable: event.recoverable
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
commit: null
|
|
139
|
-
};
|
|
140
|
-
case "session.closed":
|
|
141
|
-
return {
|
|
142
|
-
state: {
|
|
143
|
-
...sequenced,
|
|
144
|
-
status: event.reason === "error" ? "error" : "closed",
|
|
145
|
-
partial: ""
|
|
146
|
-
},
|
|
147
|
-
commit: null
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
function appendFinalTranscript(draft, transcript) {
|
|
152
|
-
const final = transcript.trim();
|
|
153
|
-
if (!final) return draft;
|
|
154
|
-
if (!draft) return final;
|
|
155
|
-
return /\s$/u.test(draft) ? `${draft}${final}` : `${draft} ${final}`;
|
|
156
|
-
}
|
|
157
|
-
var DEFAULT_TRANSCRIPTION_LIFECYCLE_TIMEOUTS = {
|
|
158
|
-
startMs: 15e3,
|
|
159
|
-
cleanupMs: 2e3
|
|
160
|
-
};
|
|
161
|
-
function useTranscription({
|
|
162
|
-
adapter,
|
|
163
|
-
policy,
|
|
164
|
-
selection = { kind: "primary" },
|
|
165
|
-
value,
|
|
166
|
-
setValue,
|
|
167
|
-
focusInput,
|
|
168
|
-
disabled = false,
|
|
169
|
-
createLocalSessionId = defaultLocalSessionId,
|
|
170
|
-
lifecycleTimeouts,
|
|
171
|
-
onDiagnostic
|
|
172
|
-
}) {
|
|
173
|
-
const t = useOpenGeniText();
|
|
174
|
-
const [state, setState] = useState(INITIAL_TRANSCRIPTION_CONTROL_STATE);
|
|
175
|
-
const stateRef = useRef(state);
|
|
176
|
-
const valueRef = useRef(value);
|
|
177
|
-
const sessionRef = useRef(null);
|
|
178
|
-
const pendingStartRef = useRef(null);
|
|
179
|
-
const activePolicyRef = useRef(null);
|
|
180
|
-
valueRef.current = value;
|
|
181
|
-
const startTimeoutMs = normalizeTimeout(
|
|
182
|
-
lifecycleTimeouts?.startMs,
|
|
183
|
-
DEFAULT_TRANSCRIPTION_LIFECYCLE_TIMEOUTS.startMs
|
|
184
|
-
);
|
|
185
|
-
const cleanupTimeoutMs = normalizeTimeout(
|
|
186
|
-
lifecycleTimeouts?.cleanupMs,
|
|
187
|
-
DEFAULT_TRANSCRIPTION_LIFECYCLE_TIMEOUTS.cleanupMs
|
|
188
|
-
);
|
|
189
|
-
const reportDiagnostic = useCallback(
|
|
190
|
-
(diagnostic) => {
|
|
191
|
-
if (!onDiagnostic) return;
|
|
192
|
-
try {
|
|
193
|
-
onDiagnostic(normalizeTranscriptionDiagnostic(t, diagnostic));
|
|
194
|
-
} catch {
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
[onDiagnostic, t]
|
|
198
|
-
);
|
|
199
|
-
const cleanupRuntimeRef = useRef({ cleanupTimeoutMs, reportDiagnostic });
|
|
200
|
-
useEffect(() => {
|
|
201
|
-
cleanupRuntimeRef.current = { cleanupTimeoutMs, reportDiagnostic };
|
|
202
|
-
}, [cleanupTimeoutMs, reportDiagnostic]);
|
|
203
|
-
const policyRevision = useMemo(
|
|
204
|
-
() => transcriptionPolicyRevision(policy, selection),
|
|
205
|
-
[policy, selection]
|
|
206
|
-
);
|
|
207
|
-
const authorization = useMemo(
|
|
208
|
-
() => adapter ? authorizeTranscriptionAdapter(policy, adapter.descriptor, selection) : null,
|
|
209
|
-
[adapter, policy, selection]
|
|
210
|
-
);
|
|
211
|
-
const unavailableReason = disabled ? "composer_disabled" : !policy.enabled ? "disabled" : !policy.acceptanceId ? "unaccepted" : !policy.primary ? "target_missing" : !adapter ? "adapter_missing" : authorization?.authorized ? null : authorization?.reason ?? "unaccepted";
|
|
212
|
-
const apply = useCallback(
|
|
213
|
-
(action) => {
|
|
214
|
-
const transition = transitionTranscriptionControl(stateRef.current, action);
|
|
215
|
-
if (transition.state !== stateRef.current) {
|
|
216
|
-
stateRef.current = transition.state;
|
|
217
|
-
setState(transition.state);
|
|
218
|
-
}
|
|
219
|
-
if (transition.commit !== null) {
|
|
220
|
-
const next = appendFinalTranscript(valueRef.current, transition.commit);
|
|
221
|
-
valueRef.current = next;
|
|
222
|
-
setValue(next);
|
|
223
|
-
focusInput();
|
|
224
|
-
}
|
|
225
|
-
return transition.state;
|
|
226
|
-
},
|
|
227
|
-
[focusInput, setValue]
|
|
228
|
-
);
|
|
229
|
-
const releaseTerminalSession = useCallback(
|
|
230
|
-
(generation) => {
|
|
231
|
-
const active = sessionRef.current;
|
|
232
|
-
if (!active || active.generation !== generation) return;
|
|
233
|
-
sessionRef.current = null;
|
|
234
|
-
if (activePolicyRef.current?.generation === generation) activePolicyRef.current = null;
|
|
235
|
-
detachSessionCleanup(t, active.session, {
|
|
236
|
-
cleanupTimeoutMs,
|
|
237
|
-
reportDiagnostic
|
|
238
|
-
});
|
|
239
|
-
},
|
|
240
|
-
[cleanupTimeoutMs, reportDiagnostic, t]
|
|
241
|
-
);
|
|
242
|
-
const start = useCallback(async () => {
|
|
243
|
-
if (!adapter || unavailableReason !== null || isActiveTranscriptionStatus(stateRef.current.status)) {
|
|
244
|
-
return false;
|
|
245
|
-
}
|
|
246
|
-
const generation = stateRef.current.generation + 1;
|
|
247
|
-
const localSessionId = createLocalSessionId();
|
|
248
|
-
apply({ type: "start", generation, localSessionId });
|
|
249
|
-
const request = createTranscriptionSessionRequest({
|
|
250
|
-
policy,
|
|
251
|
-
adapter,
|
|
252
|
-
localSessionId,
|
|
253
|
-
selection,
|
|
254
|
-
sequenceFloor: 0
|
|
255
|
-
});
|
|
256
|
-
if (!request) {
|
|
257
|
-
apply({
|
|
258
|
-
type: "start.failed",
|
|
259
|
-
generation,
|
|
260
|
-
code: "policy_blocked"
|
|
261
|
-
});
|
|
262
|
-
return false;
|
|
263
|
-
}
|
|
264
|
-
activePolicyRef.current = { generation, revision: policyRevision };
|
|
265
|
-
const controller = new AbortController();
|
|
266
|
-
pendingStartRef.current = { generation, controller };
|
|
267
|
-
let boundarySettled = false;
|
|
268
|
-
let accepted = false;
|
|
269
|
-
const observedStart = Promise.resolve().then(
|
|
270
|
-
() => adapter.start(
|
|
271
|
-
request,
|
|
272
|
-
(event) => {
|
|
273
|
-
apply({ type: "event", generation, event });
|
|
274
|
-
if (event.type === "session.error" && !event.recoverable) {
|
|
275
|
-
releaseTerminalSession(generation);
|
|
276
|
-
} else if (event.type === "session.closed") {
|
|
277
|
-
releaseTerminalSession(generation);
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
signal: controller.signal,
|
|
282
|
-
reportDiagnostic
|
|
283
|
-
}
|
|
284
|
-
)
|
|
285
|
-
).then(
|
|
286
|
-
(session) => {
|
|
287
|
-
if (boundarySettled && !accepted) {
|
|
288
|
-
detachSessionCleanup(t, session, {
|
|
289
|
-
cancelReason: "stale-generation",
|
|
290
|
-
cleanupTimeoutMs,
|
|
291
|
-
reportDiagnostic
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
return { kind: "session", session };
|
|
295
|
-
},
|
|
296
|
-
(error) => {
|
|
297
|
-
if (boundarySettled) {
|
|
298
|
-
reportDiagnostic({
|
|
299
|
-
operation: "start",
|
|
300
|
-
code: classifyStartError(error),
|
|
301
|
-
detail: diagnosticDetail(t, error)
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
return { kind: "error", error };
|
|
305
|
-
}
|
|
306
|
-
);
|
|
307
|
-
let abortListener = null;
|
|
308
|
-
const aborted = new Promise((resolve) => {
|
|
309
|
-
if (controller.signal.aborted) {
|
|
310
|
-
resolve({ kind: "aborted" });
|
|
311
|
-
return;
|
|
312
|
-
}
|
|
313
|
-
abortListener = () => resolve({ kind: "aborted" });
|
|
314
|
-
controller.signal.addEventListener("abort", abortListener, { once: true });
|
|
315
|
-
});
|
|
316
|
-
let timeoutId = null;
|
|
317
|
-
const timedOut = new Promise((resolve) => {
|
|
318
|
-
timeoutId = setTimeout(() => resolve({ kind: "timeout" }), startTimeoutMs);
|
|
319
|
-
});
|
|
320
|
-
const outcome = await Promise.race([observedStart, aborted, timedOut]);
|
|
321
|
-
boundarySettled = true;
|
|
322
|
-
if (timeoutId !== null) clearTimeout(timeoutId);
|
|
323
|
-
if (abortListener) controller.signal.removeEventListener("abort", abortListener);
|
|
324
|
-
if (pendingStartRef.current?.generation === generation) pendingStartRef.current = null;
|
|
325
|
-
if (outcome.kind === "aborted") return false;
|
|
326
|
-
if (outcome.kind === "timeout") {
|
|
327
|
-
controller.abort("transcription-start-timeout");
|
|
328
|
-
if (activePolicyRef.current?.generation === generation) activePolicyRef.current = null;
|
|
329
|
-
reportDiagnostic({
|
|
330
|
-
operation: "start",
|
|
331
|
-
code: "timeout",
|
|
332
|
-
detail: t("hooks.useTranscription.transcriptionAdapterStartExceededStarttimeoutms", {
|
|
333
|
-
startTimeoutMs
|
|
334
|
-
})
|
|
335
|
-
});
|
|
336
|
-
apply({ type: "start.failed", generation, code: "timeout" });
|
|
337
|
-
return false;
|
|
338
|
-
}
|
|
339
|
-
if (outcome.kind === "error") {
|
|
340
|
-
if (activePolicyRef.current?.generation === generation) activePolicyRef.current = null;
|
|
341
|
-
const code = classifyStartError(outcome.error);
|
|
342
|
-
reportDiagnostic({
|
|
343
|
-
operation: "start",
|
|
344
|
-
code,
|
|
345
|
-
detail: diagnosticDetail(t, outcome.error)
|
|
346
|
-
});
|
|
347
|
-
if (!controller.signal.aborted) {
|
|
348
|
-
apply({ type: "start.failed", generation, code });
|
|
349
|
-
}
|
|
350
|
-
return false;
|
|
351
|
-
}
|
|
352
|
-
const current = stateRef.current;
|
|
353
|
-
if (current.generation !== generation || current.localSessionId !== localSessionId || current.status === "cancelling" || !isActiveTranscriptionStatus(current.status)) {
|
|
354
|
-
if (activePolicyRef.current?.generation === generation) activePolicyRef.current = null;
|
|
355
|
-
detachSessionCleanup(t, outcome.session, {
|
|
356
|
-
...current.status === "error" ? {} : { cancelReason: "stale-generation" },
|
|
357
|
-
cleanupTimeoutMs,
|
|
358
|
-
reportDiagnostic
|
|
359
|
-
});
|
|
360
|
-
return false;
|
|
361
|
-
}
|
|
362
|
-
accepted = true;
|
|
363
|
-
sessionRef.current = { generation, session: outcome.session };
|
|
364
|
-
return true;
|
|
365
|
-
}, [
|
|
366
|
-
adapter,
|
|
367
|
-
apply,
|
|
368
|
-
createLocalSessionId,
|
|
369
|
-
cleanupTimeoutMs,
|
|
370
|
-
policy,
|
|
371
|
-
policyRevision,
|
|
372
|
-
releaseTerminalSession,
|
|
373
|
-
reportDiagnostic,
|
|
374
|
-
selection,
|
|
375
|
-
startTimeoutMs,
|
|
376
|
-
unavailableReason,
|
|
377
|
-
t
|
|
378
|
-
]);
|
|
379
|
-
const cancel = useCallback(async () => {
|
|
380
|
-
const current = stateRef.current;
|
|
381
|
-
if (!isActiveTranscriptionStatus(current.status)) return false;
|
|
382
|
-
const generation = current.generation;
|
|
383
|
-
apply({ type: "cancel", generation });
|
|
384
|
-
const pending = pendingStartRef.current;
|
|
385
|
-
if (pending?.generation === generation) {
|
|
386
|
-
pendingStartRef.current = null;
|
|
387
|
-
pending.controller.abort("transcription-locally-cancelled");
|
|
388
|
-
}
|
|
389
|
-
const active = sessionRef.current;
|
|
390
|
-
sessionRef.current = null;
|
|
391
|
-
if (activePolicyRef.current?.generation === generation) activePolicyRef.current = null;
|
|
392
|
-
apply({ type: "cancel.settled", generation });
|
|
393
|
-
focusInput();
|
|
394
|
-
if (active?.generation === generation) {
|
|
395
|
-
detachSessionCleanup(t, active.session, {
|
|
396
|
-
cancelReason: "user-cancelled",
|
|
397
|
-
cleanupTimeoutMs,
|
|
398
|
-
reportDiagnostic
|
|
399
|
-
});
|
|
400
|
-
}
|
|
401
|
-
return true;
|
|
402
|
-
}, [apply, cleanupTimeoutMs, focusInput, reportDiagnostic, t]);
|
|
403
|
-
const reset = useCallback(() => apply({ type: "reset" }), [apply]);
|
|
404
|
-
useEffect(() => {
|
|
405
|
-
if (!isActiveTranscriptionStatus(state.status)) return;
|
|
406
|
-
const onKeyDown = (event) => {
|
|
407
|
-
if (event.key !== "Escape") return;
|
|
408
|
-
event.preventDefault();
|
|
409
|
-
void cancel();
|
|
410
|
-
};
|
|
411
|
-
document.addEventListener("keydown", onKeyDown);
|
|
412
|
-
return () => document.removeEventListener("keydown", onKeyDown);
|
|
413
|
-
}, [cancel, state.status]);
|
|
414
|
-
useEffect(() => {
|
|
415
|
-
if (!isActiveTranscriptionStatus(state.status)) return;
|
|
416
|
-
const activePolicy = activePolicyRef.current;
|
|
417
|
-
if (unavailableReason === null && activePolicy?.generation === state.generation && activePolicy.revision === policyRevision) {
|
|
418
|
-
return;
|
|
419
|
-
}
|
|
420
|
-
void cancel();
|
|
421
|
-
}, [cancel, policyRevision, state.generation, state.status, unavailableReason]);
|
|
422
|
-
useEffect(
|
|
423
|
-
() => () => {
|
|
424
|
-
const pending = pendingStartRef.current;
|
|
425
|
-
pendingStartRef.current = null;
|
|
426
|
-
pending?.controller.abort("transcription-component-unmounted");
|
|
427
|
-
const active = sessionRef.current;
|
|
428
|
-
sessionRef.current = null;
|
|
429
|
-
activePolicyRef.current = null;
|
|
430
|
-
stateRef.current = {
|
|
431
|
-
...stateRef.current,
|
|
432
|
-
generation: stateRef.current.generation + 1,
|
|
433
|
-
status: "closed",
|
|
434
|
-
partial: ""
|
|
435
|
-
};
|
|
436
|
-
if (active) {
|
|
437
|
-
const runtime = cleanupRuntimeRef.current;
|
|
438
|
-
detachSessionCleanup(t, active.session, {
|
|
439
|
-
cancelReason: "component-unmounted",
|
|
440
|
-
cleanupTimeoutMs: runtime.cleanupTimeoutMs,
|
|
441
|
-
reportDiagnostic: runtime.reportDiagnostic
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
},
|
|
445
|
-
[t]
|
|
446
|
-
);
|
|
447
|
-
return {
|
|
448
|
-
state,
|
|
449
|
-
available: unavailableReason === null,
|
|
450
|
-
unavailableReason,
|
|
451
|
-
start,
|
|
452
|
-
cancel,
|
|
453
|
-
reset
|
|
454
|
-
};
|
|
455
|
-
}
|
|
456
|
-
function isActiveTranscriptionStatus(status) {
|
|
457
|
-
return status === "requesting-permission" || status === "listening" || status === "reconnecting" || status === "cancelling";
|
|
458
|
-
}
|
|
459
|
-
function defaultLocalSessionId() {
|
|
460
|
-
return globalThis.crypto.randomUUID();
|
|
461
|
-
}
|
|
462
|
-
function classifyStartError(error) {
|
|
463
|
-
if (isRecord(error)) {
|
|
464
|
-
const normalized = normalizeTranscriptionErrorCode(error.code);
|
|
465
|
-
if (normalized !== "unknown") return normalized;
|
|
466
|
-
}
|
|
467
|
-
if (typeof DOMException !== "undefined" && error instanceof DOMException) {
|
|
468
|
-
if (error.name === "NotAllowedError") return "permission_denied";
|
|
469
|
-
if (error.name === "NotSupportedError") return "not_supported";
|
|
470
|
-
if (error.name === "TimeoutError") return "timeout";
|
|
471
|
-
if (error.name === "AbortError") return "cancelled";
|
|
472
|
-
}
|
|
473
|
-
return "unknown";
|
|
474
|
-
}
|
|
475
|
-
function normalizeTranscriptionErrorCode(code) {
|
|
476
|
-
switch (code) {
|
|
477
|
-
case "insufficient_credits":
|
|
478
|
-
case "allowance_exhausted":
|
|
479
|
-
case "monthly_model_cost_limit":
|
|
480
|
-
case "unavailable":
|
|
481
|
-
case "too_large":
|
|
482
|
-
case "invalid_audio":
|
|
483
|
-
case "permission_denied":
|
|
484
|
-
case "not_supported":
|
|
485
|
-
case "network":
|
|
486
|
-
case "provider":
|
|
487
|
-
case "policy_blocked":
|
|
488
|
-
case "timeout":
|
|
489
|
-
case "cancelled":
|
|
490
|
-
case "unknown":
|
|
491
|
-
return code;
|
|
492
|
-
default:
|
|
493
|
-
return "unknown";
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
function normalizeTranscriptionDiagnostic(t, diagnostic) {
|
|
497
|
-
const source = isRecord(diagnostic) ? diagnostic : {};
|
|
498
|
-
const operation = source.operation === "start" || source.operation === "session" || source.operation === "cancel" || source.operation === "close" ? source.operation : "session";
|
|
499
|
-
const rawDetail = typeof source.detail === "string" ? source.detail : t("hooks.useTranscription.noDiagnosticDetail");
|
|
500
|
-
return {
|
|
501
|
-
operation,
|
|
502
|
-
code: normalizeTranscriptionErrorCode(source.code),
|
|
503
|
-
detail: rawDetail
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
function detachSessionCleanup(t, session, options) {
|
|
507
|
-
if (options.cancelReason) {
|
|
508
|
-
void runBoundedCleanup(
|
|
509
|
-
t,
|
|
510
|
-
"cancel",
|
|
511
|
-
() => session.cancel(options.cancelReason),
|
|
512
|
-
options.cleanupTimeoutMs,
|
|
513
|
-
options.reportDiagnostic
|
|
514
|
-
);
|
|
515
|
-
}
|
|
516
|
-
void runBoundedCleanup(
|
|
517
|
-
t,
|
|
518
|
-
"close",
|
|
519
|
-
() => session.close(),
|
|
520
|
-
options.cleanupTimeoutMs,
|
|
521
|
-
options.reportDiagnostic
|
|
522
|
-
);
|
|
523
|
-
}
|
|
524
|
-
async function runBoundedCleanup(t, operation, invoke, timeoutMs, reportDiagnostic) {
|
|
525
|
-
let timeoutId = null;
|
|
526
|
-
const result = Promise.resolve().then(invoke).then(
|
|
527
|
-
() => ({ kind: "settled" }),
|
|
528
|
-
(error) => ({ kind: "rejected", error })
|
|
529
|
-
);
|
|
530
|
-
const timeout = new Promise((resolve) => {
|
|
531
|
-
timeoutId = setTimeout(() => resolve({ kind: "timeout" }), timeoutMs);
|
|
532
|
-
});
|
|
533
|
-
const outcome = await Promise.race([result, timeout]);
|
|
534
|
-
if (timeoutId !== null) clearTimeout(timeoutId);
|
|
535
|
-
if (outcome.kind === "settled") return;
|
|
536
|
-
reportDiagnostic({
|
|
537
|
-
operation,
|
|
538
|
-
code: outcome.kind === "timeout" ? "timeout" : "provider",
|
|
539
|
-
detail: outcome.kind === "timeout" ? t("hooks.useTranscription.transcriptionOperationExceededTimeoutmsMs", {
|
|
540
|
-
operation,
|
|
541
|
-
timeoutMs
|
|
542
|
-
}) : diagnosticDetail(t, outcome.error)
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
function diagnosticDetail(t, error) {
|
|
546
|
-
if (error instanceof Error) return error.message;
|
|
547
|
-
return typeof error === "string" ? error : t("hooks.useTranscription.unknownTranscriptionAdapterFailure");
|
|
548
|
-
}
|
|
549
|
-
function normalizeTimeout(value, fallback) {
|
|
550
|
-
return typeof value === "number" && Number.isFinite(value) && value >= 1 ? Math.min(Math.floor(value), 6e4) : fallback;
|
|
551
|
-
}
|
|
552
|
-
function isRecord(value) {
|
|
553
|
-
return typeof value === "object" && value !== null;
|
|
554
|
-
}
|
|
555
|
-
function transcriptionPolicyRevision(policy, selection) {
|
|
556
|
-
const targetKey = (target) => target ? [
|
|
557
|
-
target.provider,
|
|
558
|
-
target.model ?? "",
|
|
559
|
-
target.credentialMode,
|
|
560
|
-
target.credentialConnectionId ?? "",
|
|
561
|
-
target.region ?? ""
|
|
562
|
-
].join("\0") : "";
|
|
563
|
-
return [
|
|
564
|
-
policy.enabled ? "1" : "0",
|
|
565
|
-
policy.acceptanceId ?? "",
|
|
566
|
-
targetKey(policy.primary),
|
|
567
|
-
policy.language ?? "",
|
|
568
|
-
policy.autoDetectLanguage ? "1" : "0",
|
|
569
|
-
policy.diarization.enabled ? "1" : "0",
|
|
570
|
-
policy.diarization.maxSpeakers?.toString() ?? "",
|
|
571
|
-
policy.retention.mode,
|
|
572
|
-
policy.retention.maxDays?.toString() ?? "",
|
|
573
|
-
policy.privacy.allowProviderLogging ? "1" : "0",
|
|
574
|
-
policy.privacy.allowProviderTraining ? "1" : "0",
|
|
575
|
-
policy.fallback.mode,
|
|
576
|
-
policy.fallback.targets.map(targetKey).join(""),
|
|
577
|
-
policy.cost.currency,
|
|
578
|
-
policy.cost.maxPerHour?.toString() ?? "",
|
|
579
|
-
policy.cost.maxPerMonth?.toString() ?? "",
|
|
580
|
-
selection.kind,
|
|
581
|
-
selection.kind === "fallback" ? selection.index.toString() : ""
|
|
582
|
-
].join("");
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
// src/hooks/use-voice-input.ts
|
|
586
|
-
import {
|
|
587
|
-
OpenGeniRecordingsClient,
|
|
588
|
-
RecordingUploader,
|
|
589
|
-
browserRecorderPlatform,
|
|
590
|
-
uploadRecordingAudio
|
|
591
|
-
} from "@opengeni/sdk/recordings";
|
|
592
|
-
import { useCallback as useCallback2, useEffect as useEffect2, useMemo as useMemo2, useRef as useRef2, useState as useState2 } from "react";
|
|
593
|
-
var VOICE_RECORDING_TIMESLICE_MILLISECONDS = 1e3;
|
|
594
|
-
var VOICE_RECORDING_OWNER_HEARTBEAT_MILLISECONDS = 5e3;
|
|
595
|
-
var VOICE_RECORDING_OWNER_STALE_MILLISECONDS = 3e4;
|
|
596
|
-
var VOICE_RECORDING_CLIENT_MAX_DURATION_SECONDS = 600;
|
|
597
|
-
var VOICE_RECORDING_RESUMABLE_CLIENT_MAX_DURATION_SECONDS = 8 * 60 * 60;
|
|
598
|
-
var ACCIDENTAL_START_MAX_MILLISECONDS = 3e3;
|
|
599
|
-
var DEFAULT_POLL_MILLISECONDS = 1e3;
|
|
600
|
-
var MAX_POLL_MILLISECONDS = 15e3;
|
|
601
|
-
var TAKEN_STORAGE_KEY = "opengeni.voice-input.taken.v1";
|
|
602
|
-
var MIME_PREFERENCES = ["audio/webm;codecs=opus", "audio/mp4", "audio/ogg;codecs=opus"];
|
|
603
|
-
var currentDate = () => /* @__PURE__ */ new Date();
|
|
604
|
-
var recordingClients = /* @__PURE__ */ new WeakMap();
|
|
605
|
-
function dictationClient(explicit, client) {
|
|
606
|
-
let candidate = explicit;
|
|
607
|
-
if (!candidate && client && typeof client.requestJson === "function") {
|
|
608
|
-
candidate = recordingClients.get(client);
|
|
609
|
-
if (!candidate) {
|
|
610
|
-
const created = new OpenGeniRecordingsClient(client);
|
|
611
|
-
recordingClients.set(client, created);
|
|
612
|
-
candidate = created;
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
if (!candidate) return null;
|
|
616
|
-
const methods = candidate;
|
|
617
|
-
const required = [
|
|
618
|
-
"createRecording",
|
|
619
|
-
"createRecordingUploads",
|
|
620
|
-
"completeRecordingChunks",
|
|
621
|
-
"finalizeRecording",
|
|
622
|
-
"deleteRecording",
|
|
623
|
-
"listRecordings",
|
|
624
|
-
"listRecordingTranscriptVersions",
|
|
625
|
-
"getRecordingTranscript",
|
|
626
|
-
"createRecordingTranscript"
|
|
627
|
-
];
|
|
628
|
-
return required.every((method) => typeof methods[method] === "function") ? candidate : null;
|
|
629
|
-
}
|
|
630
|
-
function useVoiceInput(options) {
|
|
631
|
-
const { workspaceId, capability, enabled, value, focusInput, disabled = false } = options;
|
|
632
|
-
const sdkClient = options.client;
|
|
633
|
-
const recordings = useMemo2(
|
|
634
|
-
() => dictationClient(options.recordings, sdkClient),
|
|
635
|
-
[options.recordings, sdkClient]
|
|
636
|
-
);
|
|
637
|
-
const defaultPlatform = useMemo2(() => browserRecorderPlatform(), []);
|
|
638
|
-
const platform = options.platform ?? defaultPlatform;
|
|
639
|
-
const durable = Boolean(recordings && capability?.resumable && platform.supported);
|
|
640
|
-
const [status, setStatus] = useState2("idle");
|
|
641
|
-
const [error, setError] = useState2(null);
|
|
642
|
-
const [stream, setStream] = useState2(null);
|
|
643
|
-
const [recordingId, setRecordingId] = useState2(null);
|
|
644
|
-
const [durationSeconds, setDurationSeconds] = useState2(0);
|
|
645
|
-
const [recordingStartedAt, setRecordingStartedAt] = useState2(null);
|
|
646
|
-
const [savedTranscript, setSavedTranscript] = useState2(null);
|
|
647
|
-
const [held, setHeld] = useState2(false);
|
|
648
|
-
const errorRef = useRef2(null);
|
|
649
|
-
errorRef.current = error;
|
|
650
|
-
const latest = useRef2({
|
|
651
|
-
...options,
|
|
652
|
-
recordings,
|
|
653
|
-
platform,
|
|
654
|
-
durable,
|
|
655
|
-
disabled,
|
|
656
|
-
value
|
|
657
|
-
});
|
|
658
|
-
latest.current = { ...options, recordings, platform, durable, disabled, value };
|
|
659
|
-
const statusRef = useRef2(status);
|
|
660
|
-
statusRef.current = status;
|
|
661
|
-
const generationRef = useRef2(0);
|
|
662
|
-
const dictationRef = useRef2(null);
|
|
663
|
-
const recorderRef = useRef2(null);
|
|
664
|
-
const oneShotRef = useRef2(null);
|
|
665
|
-
const oneShotLanguage = useRef2(null);
|
|
666
|
-
const gatingRef = useRef2(false);
|
|
667
|
-
const stopTimerRef = useRef2(null);
|
|
668
|
-
const uploaderRef = useRef2(null);
|
|
669
|
-
const audioCopies = useRef2(/* @__PURE__ */ new Map());
|
|
670
|
-
const handed = useRef2(null);
|
|
671
|
-
const startedAtRef = useRef2(0);
|
|
672
|
-
const oneShotText = useRef2(null);
|
|
673
|
-
const watchRef = useRef2(async () => void 0);
|
|
674
|
-
const loadSavedRef = useRef2(async () => void 0);
|
|
675
|
-
const now = useCallback2(() => (latest.current.now ?? currentDate)(), []);
|
|
676
|
-
const maxRecordingSeconds = capability ? durable && capability.resumable ? Math.min(
|
|
677
|
-
capability.resumable.maxDurationSeconds,
|
|
678
|
-
VOICE_RECORDING_RESUMABLE_CLIENT_MAX_DURATION_SECONDS
|
|
679
|
-
) : Math.min(capability.maxDurationSeconds, VOICE_RECORDING_CLIENT_MAX_DURATION_SECONDS) : null;
|
|
680
|
-
const maxRecordingSecondsRef = useRef2(maxRecordingSeconds);
|
|
681
|
-
maxRecordingSecondsRef.current = maxRecordingSeconds;
|
|
682
|
-
const transport = useMemo2(() => {
|
|
683
|
-
const current = () => {
|
|
684
|
-
const found = latest.current.recordings;
|
|
685
|
-
if (!found) throw new Error("Dictation needs a recordings client.");
|
|
686
|
-
return found;
|
|
687
|
-
};
|
|
688
|
-
return {
|
|
689
|
-
createRecording: (...args) => current().createRecording(...args),
|
|
690
|
-
createRecordingUploads: (...args) => current().createRecordingUploads(...args),
|
|
691
|
-
completeRecordingChunks: (...args) => current().completeRecordingChunks(...args),
|
|
692
|
-
finalizeRecording: (...args) => current().finalizeRecording(...args),
|
|
693
|
-
deleteRecording: (...args) => current().deleteRecording(...args)
|
|
694
|
-
};
|
|
695
|
-
}, []);
|
|
696
|
-
const uploader = useCallback2(() => {
|
|
697
|
-
if (!uploaderRef.current) {
|
|
698
|
-
const current = latest.current.platform;
|
|
699
|
-
const isCaptureActive = current.isCaptureActive;
|
|
700
|
-
uploaderRef.current = new RecordingUploader({
|
|
701
|
-
client: transport,
|
|
702
|
-
store: copyingStore(current.createStore(), audioCopies.current),
|
|
703
|
-
...current.fetch ? { fetch: current.fetch } : {},
|
|
704
|
-
...isCaptureActive ? { isCaptureActive: (id) => isCaptureActive(id) } : {}
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
return uploaderRef.current;
|
|
708
|
-
}, [transport]);
|
|
709
|
-
const clearStopTimer = () => {
|
|
710
|
-
if (stopTimerRef.current) clearTimeout(stopTimerRef.current);
|
|
711
|
-
stopTimerRef.current = null;
|
|
712
|
-
};
|
|
713
|
-
const settleIdle = useCallback2(() => {
|
|
714
|
-
dictationRef.current = null;
|
|
715
|
-
recorderRef.current = null;
|
|
716
|
-
oneShotRef.current = null;
|
|
717
|
-
handed.current = null;
|
|
718
|
-
clearStopTimer();
|
|
719
|
-
setStatus("idle");
|
|
720
|
-
setError(null);
|
|
721
|
-
setStream(null);
|
|
722
|
-
setRecordingId(null);
|
|
723
|
-
setDurationSeconds(0);
|
|
724
|
-
setRecordingStartedAt(null);
|
|
725
|
-
setSavedTranscript(null);
|
|
726
|
-
setHeld(false);
|
|
727
|
-
}, []);
|
|
728
|
-
const hold = useCallback2(
|
|
729
|
-
(dictation, next, code = null, autoInsert = false) => {
|
|
730
|
-
dictationRef.current = { ...dictation, autoInsert };
|
|
731
|
-
setRecordingId(dictation.recordingId);
|
|
732
|
-
setSavedTranscript(dictation.text);
|
|
733
|
-
setHeld(true);
|
|
734
|
-
setStatus(next);
|
|
735
|
-
setError(code);
|
|
736
|
-
setStream(null);
|
|
737
|
-
setRecordingStartedAt(null);
|
|
738
|
-
},
|
|
739
|
-
[]
|
|
740
|
-
);
|
|
741
|
-
const insertText = useCallback2((text) => {
|
|
742
|
-
const { setValue: write, focusInput: focus } = latest.current;
|
|
743
|
-
write(appendFinalTranscript(latest.current.value, text));
|
|
744
|
-
focus();
|
|
745
|
-
}, []);
|
|
746
|
-
const giveAudio = useCallback2((audio) => {
|
|
747
|
-
try {
|
|
748
|
-
latest.current.onAudio?.(audio);
|
|
749
|
-
} catch {
|
|
750
|
-
}
|
|
751
|
-
}, []);
|
|
752
|
-
const loadSaved = useCallback2(
|
|
753
|
-
async (generation) => {
|
|
754
|
-
const client = latest.current.recordings;
|
|
755
|
-
const workspace = latest.current.workspaceId;
|
|
756
|
-
if (!client || !latest.current.durable || latest.current.recover === false) return;
|
|
757
|
-
const resumed = await uploader().resume({
|
|
758
|
-
only: (stored) => stored.create.purpose === "dictation" && stored.workspaceId === workspace
|
|
759
|
-
}).catch(() => []);
|
|
760
|
-
let listed;
|
|
761
|
-
try {
|
|
762
|
-
listed = await client.listRecordings(workspace, { purpose: "dictation", limit: 10 });
|
|
763
|
-
} catch {
|
|
764
|
-
return;
|
|
765
|
-
}
|
|
766
|
-
if (generation !== generationRef.current || dictationRef.current) return;
|
|
767
|
-
const taken = readTaken();
|
|
768
|
-
const listedIds = new Set(listed.recordings.map((recording) => recording.id));
|
|
769
|
-
for (const recording of listed.recordings) {
|
|
770
|
-
if (taken.has(recording.id)) {
|
|
771
|
-
void client.deleteRecording(workspace, recording.id).then(
|
|
772
|
-
() => forgetTaken(recording.id),
|
|
773
|
-
(cause) => {
|
|
774
|
-
if (httpStatus(cause) === 404) forgetTaken(recording.id);
|
|
775
|
-
}
|
|
776
|
-
);
|
|
777
|
-
continue;
|
|
778
|
-
}
|
|
779
|
-
const dictation = {
|
|
780
|
-
recordingId: recording.id,
|
|
781
|
-
autoInsert: false,
|
|
782
|
-
fresh: false,
|
|
783
|
-
text: null
|
|
784
|
-
};
|
|
785
|
-
if (recording.state === "capturing") {
|
|
786
|
-
if (!resumed.includes(recording.id)) continue;
|
|
787
|
-
hold(dictation, "retrying");
|
|
788
|
-
void uploader().finish(recording.id).then(
|
|
789
|
-
(upload) => {
|
|
790
|
-
if (generation !== generationRef.current) return;
|
|
791
|
-
if (upload.discarded) settleIdle();
|
|
792
|
-
else if (upload.failed)
|
|
793
|
-
hold(dictation, "error", voiceInputCode(upload.failed.code));
|
|
794
|
-
else void watchRef.current(dictation, null, generation);
|
|
795
|
-
},
|
|
796
|
-
() => void 0
|
|
797
|
-
);
|
|
798
|
-
return;
|
|
799
|
-
}
|
|
800
|
-
if (recording.state === "failed") {
|
|
801
|
-
hold(
|
|
802
|
-
dictation,
|
|
803
|
-
"error",
|
|
804
|
-
voiceInputCode(recording.transcript?.errorCode ?? recording.errorCode)
|
|
805
|
-
);
|
|
806
|
-
return;
|
|
807
|
-
}
|
|
808
|
-
hold(dictation, recording.state === "ready" ? "transcribing" : "retrying");
|
|
809
|
-
void watchRef.current(dictation, null, generation);
|
|
810
|
-
return;
|
|
811
|
-
}
|
|
812
|
-
const unlisted = resumed.filter((id) => !listedIds.has(id));
|
|
813
|
-
if (unlisted.length > 0) {
|
|
814
|
-
void Promise.any(unlisted.map((id) => uploader().finish(id))).then(
|
|
815
|
-
() => {
|
|
816
|
-
if (generation === generationRef.current && !dictationRef.current) {
|
|
817
|
-
void loadSavedRef.current(generation);
|
|
818
|
-
}
|
|
819
|
-
},
|
|
820
|
-
() => void 0
|
|
821
|
-
);
|
|
822
|
-
}
|
|
823
|
-
},
|
|
824
|
-
[hold, settleIdle, uploader]
|
|
825
|
-
);
|
|
826
|
-
loadSavedRef.current = loadSaved;
|
|
827
|
-
const take = useCallback2(
|
|
828
|
-
async (dictation, text, generation) => {
|
|
829
|
-
const client = latest.current.recordings;
|
|
830
|
-
const workspace = latest.current.workspaceId;
|
|
831
|
-
let insert = true;
|
|
832
|
-
if (client) {
|
|
833
|
-
try {
|
|
834
|
-
await client.deleteRecording(workspace, dictation.recordingId);
|
|
835
|
-
} catch (cause) {
|
|
836
|
-
if (httpStatus(cause) === 404) {
|
|
837
|
-
insert = false;
|
|
838
|
-
} else {
|
|
839
|
-
rememberTaken(dictation.recordingId);
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
if (generation !== generationRef.current) {
|
|
844
|
-
if (insert && text.trim()) rememberTaken(dictation.recordingId);
|
|
845
|
-
return;
|
|
846
|
-
}
|
|
847
|
-
if (insert && text.trim()) insertText(text);
|
|
848
|
-
settleIdle();
|
|
849
|
-
void loadSaved(generation);
|
|
850
|
-
},
|
|
851
|
-
[insertText, loadSaved, settleIdle]
|
|
852
|
-
);
|
|
853
|
-
const watch = useCallback2(
|
|
854
|
-
async (dictation, versionId, generation) => {
|
|
855
|
-
const client = latest.current.recordings;
|
|
856
|
-
const workspace = latest.current.workspaceId;
|
|
857
|
-
if (!client) return;
|
|
858
|
-
let delay = latest.current.pollIntervalMilliseconds ?? DEFAULT_POLL_MILLISECONDS;
|
|
859
|
-
for (; ; ) {
|
|
860
|
-
if (generation !== generationRef.current) return;
|
|
861
|
-
let version;
|
|
862
|
-
try {
|
|
863
|
-
const versions = await client.listRecordingTranscriptVersions(
|
|
864
|
-
workspace,
|
|
865
|
-
dictation.recordingId
|
|
866
|
-
);
|
|
867
|
-
version = versionId ? versions.find((item) => item.id === versionId) : [...versions].sort((left, right) => right.createdAt.localeCompare(left.createdAt))[0];
|
|
868
|
-
} catch (cause) {
|
|
869
|
-
if (httpStatus(cause) === 404) {
|
|
870
|
-
if (generation === generationRef.current) settleIdle();
|
|
871
|
-
return;
|
|
872
|
-
}
|
|
873
|
-
delay = Math.min(MAX_POLL_MILLISECONDS, delay * 2);
|
|
874
|
-
}
|
|
875
|
-
if (generation !== generationRef.current) return;
|
|
876
|
-
if (version?.state === "failed") {
|
|
877
|
-
hold(dictation, "error", voiceInputCode(version.errorCode));
|
|
878
|
-
return;
|
|
879
|
-
}
|
|
880
|
-
if (version?.state === "complete") {
|
|
881
|
-
const text = await transcriptText(client, workspace, dictation.recordingId, version.id);
|
|
882
|
-
if (generation !== generationRef.current) return;
|
|
883
|
-
if (text === null) {
|
|
884
|
-
delay = Math.min(MAX_POLL_MILLISECONDS, delay * 2);
|
|
885
|
-
} else {
|
|
886
|
-
const current = dictationRef.current;
|
|
887
|
-
const automatic = current?.recordingId === dictation.recordingId && current.autoInsert && !latest.current.disabled;
|
|
888
|
-
if (automatic) {
|
|
889
|
-
await take(dictation, text, generation);
|
|
890
|
-
} else {
|
|
891
|
-
const waitingForSend = current?.recordingId === dictation.recordingId && current.autoInsert;
|
|
892
|
-
hold({ ...dictation, text }, "transcript-ready", null, waitingForSend);
|
|
893
|
-
}
|
|
894
|
-
return;
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
await sleep(delay);
|
|
898
|
-
}
|
|
899
|
-
},
|
|
900
|
-
[hold, settleIdle, take]
|
|
901
|
-
);
|
|
902
|
-
watchRef.current = watch;
|
|
903
|
-
const finishOneShot = useCallback2(
|
|
904
|
-
async (capture, generation, autoInsert) => {
|
|
905
|
-
const audio = await capture.stop();
|
|
906
|
-
oneShotRef.current = null;
|
|
907
|
-
if (generation !== generationRef.current) return;
|
|
908
|
-
if (!audio || audio.size === 0) {
|
|
909
|
-
settleIdle();
|
|
910
|
-
return;
|
|
911
|
-
}
|
|
912
|
-
const copy = {
|
|
913
|
-
recordingId: null,
|
|
914
|
-
audio,
|
|
915
|
-
durationMilliseconds: Math.round(capture.durationSeconds() * 1e3)
|
|
916
|
-
};
|
|
917
|
-
giveAudio(copy);
|
|
918
|
-
handed.current = copy;
|
|
919
|
-
const maxBytes = latest.current.capability?.maxSizeBytes;
|
|
920
|
-
if (maxBytes !== void 0 && audio.size > maxBytes) {
|
|
921
|
-
settleIdle();
|
|
922
|
-
setStatus("error");
|
|
923
|
-
setError("too_large");
|
|
924
|
-
return;
|
|
925
|
-
}
|
|
926
|
-
const client = latest.current.client;
|
|
927
|
-
if (!client) return;
|
|
928
|
-
setStatus("transcribing");
|
|
929
|
-
try {
|
|
930
|
-
const response = await client.transcribeAudio(latest.current.workspaceId, {
|
|
931
|
-
audio,
|
|
932
|
-
mimeType: audio.type || capture.mimeType,
|
|
933
|
-
durationSeconds: capture.durationSeconds(),
|
|
934
|
-
...oneShotLanguage.current ? { language: oneShotLanguage.current } : {}
|
|
935
|
-
});
|
|
936
|
-
if (generation !== generationRef.current) return;
|
|
937
|
-
if (autoInsert && !latest.current.disabled) {
|
|
938
|
-
insertText(response.text);
|
|
939
|
-
settleIdle();
|
|
940
|
-
} else {
|
|
941
|
-
oneShotText.current = response.text;
|
|
942
|
-
setSavedTranscript(response.text);
|
|
943
|
-
setHeld(true);
|
|
944
|
-
setStatus("transcript-ready");
|
|
945
|
-
}
|
|
946
|
-
} catch (cause) {
|
|
947
|
-
if (generation !== generationRef.current) return;
|
|
948
|
-
settleIdle();
|
|
949
|
-
setStatus("error");
|
|
950
|
-
setError(errorCode(cause));
|
|
951
|
-
}
|
|
952
|
-
},
|
|
953
|
-
[giveAudio, insertText, settleIdle]
|
|
954
|
-
);
|
|
955
|
-
const finishCapture = useCallback2(
|
|
956
|
-
async (autoInsert) => {
|
|
957
|
-
const generation = generationRef.current;
|
|
958
|
-
clearStopTimer();
|
|
959
|
-
const oneShot = oneShotRef.current;
|
|
960
|
-
if (oneShot) {
|
|
961
|
-
setStatus("saving");
|
|
962
|
-
setStream(null);
|
|
963
|
-
await finishOneShot(oneShot, generation, autoInsert);
|
|
964
|
-
return;
|
|
965
|
-
}
|
|
966
|
-
const recorder = recorderRef.current;
|
|
967
|
-
if (!recorder) return;
|
|
968
|
-
const id = recorder.snapshot.recordingId;
|
|
969
|
-
const elapsed = recorder.snapshot.elapsedMilliseconds;
|
|
970
|
-
setStatus(autoInsert ? "saving" : "recovered");
|
|
971
|
-
setStream(null);
|
|
972
|
-
setRecordingStartedAt(null);
|
|
973
|
-
if (dictationRef.current) dictationRef.current.autoInsert = autoInsert;
|
|
974
|
-
let upload;
|
|
975
|
-
try {
|
|
976
|
-
upload = await recorder.stop();
|
|
977
|
-
} catch {
|
|
978
|
-
upload = null;
|
|
979
|
-
}
|
|
980
|
-
recorderRef.current = null;
|
|
981
|
-
const audio = id ? takeCopy(audioCopies.current, id) : null;
|
|
982
|
-
if (generation !== generationRef.current || !id) return;
|
|
983
|
-
if (!upload || upload.discarded) {
|
|
984
|
-
settleIdle();
|
|
985
|
-
return;
|
|
986
|
-
}
|
|
987
|
-
if (audio && latest.current.onAudio && !upload.failed) {
|
|
988
|
-
const copy = { recordingId: id, audio, durationMilliseconds: elapsed };
|
|
989
|
-
giveAudio(copy);
|
|
990
|
-
handed.current = copy;
|
|
991
|
-
}
|
|
992
|
-
const dictation = dictationRef.current ?? {
|
|
993
|
-
recordingId: id,
|
|
994
|
-
autoInsert,
|
|
995
|
-
fresh: true,
|
|
996
|
-
text: null
|
|
997
|
-
};
|
|
998
|
-
if (upload.failed) {
|
|
999
|
-
await uploader().discard(id).catch(() => void 0);
|
|
1000
|
-
settleIdle();
|
|
1001
|
-
setStatus("error");
|
|
1002
|
-
setError(voiceInputCode(upload.failed.code));
|
|
1003
|
-
return;
|
|
1004
|
-
}
|
|
1005
|
-
const versionId = uploader().finalized.get(id)?.transcript.id ?? null;
|
|
1006
|
-
if (dictation.autoInsert) setStatus("transcribing");
|
|
1007
|
-
else hold(dictation, "recovered");
|
|
1008
|
-
await watch(dictation, versionId, generation);
|
|
1009
|
-
},
|
|
1010
|
-
[finishOneShot, giveAudio, hold, settleIdle, uploader, watch]
|
|
1011
|
-
);
|
|
1012
|
-
const stop = useCallback2(() => {
|
|
1013
|
-
if (statusRef.current !== "recording") return;
|
|
1014
|
-
void finishCapture(true);
|
|
1015
|
-
}, [finishCapture]);
|
|
1016
|
-
const beginCapture = useCallback2(
|
|
1017
|
-
(input, id) => {
|
|
1018
|
-
startedAtRef.current = now().getTime();
|
|
1019
|
-
setStream(input);
|
|
1020
|
-
setRecordingId(id);
|
|
1021
|
-
setDurationSeconds(0);
|
|
1022
|
-
setRecordingStartedAt(startedAtRef.current);
|
|
1023
|
-
setStatus("recording");
|
|
1024
|
-
const limit = maxRecordingSecondsRef.current;
|
|
1025
|
-
if (limit) {
|
|
1026
|
-
stopTimerRef.current = setTimeout(() => {
|
|
1027
|
-
if (statusRef.current === "recording") void finishCapture(true);
|
|
1028
|
-
}, limit * 1e3);
|
|
1029
|
-
}
|
|
1030
|
-
},
|
|
1031
|
-
[finishCapture, now]
|
|
1032
|
-
);
|
|
1033
|
-
const start = useCallback2(async () => {
|
|
1034
|
-
const startable = () => {
|
|
1035
|
-
const current2 = latest.current;
|
|
1036
|
-
return !(!current2.durable && !current2.client || !current2.capability?.available || !current2.enabled || current2.disabled || statusRef.current === "requesting-permission" || statusRef.current === "recording" || statusRef.current === "saving" || statusRef.current === "transcribing" || dictationRef.current);
|
|
1037
|
-
};
|
|
1038
|
-
if (gatingRef.current || !startable()) return false;
|
|
1039
|
-
const gate = latest.current.beforeStart;
|
|
1040
|
-
if (gate) {
|
|
1041
|
-
gatingRef.current = true;
|
|
1042
|
-
let allowed = false;
|
|
1043
|
-
try {
|
|
1044
|
-
allowed = await gate();
|
|
1045
|
-
} catch {
|
|
1046
|
-
allowed = false;
|
|
1047
|
-
} finally {
|
|
1048
|
-
gatingRef.current = false;
|
|
1049
|
-
}
|
|
1050
|
-
if (!allowed || !startable()) return false;
|
|
1051
|
-
}
|
|
1052
|
-
const current = latest.current;
|
|
1053
|
-
if (!current.capability) return false;
|
|
1054
|
-
const generation = ++generationRef.current;
|
|
1055
|
-
setStatus("requesting-permission");
|
|
1056
|
-
setError(null);
|
|
1057
|
-
const language = current.language || null;
|
|
1058
|
-
if (!current.durable) {
|
|
1059
|
-
oneShotLanguage.current = language;
|
|
1060
|
-
const capture = await startOneShot(current.capability.acceptedMimeTypes);
|
|
1061
|
-
if (generation !== generationRef.current) {
|
|
1062
|
-
if (!(capture instanceof Error)) await capture.stop();
|
|
1063
|
-
return false;
|
|
1064
|
-
}
|
|
1065
|
-
if (capture instanceof Error) {
|
|
1066
|
-
setStatus("error");
|
|
1067
|
-
setError(errorCode(capture));
|
|
1068
|
-
return false;
|
|
1069
|
-
}
|
|
1070
|
-
oneShotRef.current = capture;
|
|
1071
|
-
beginCapture(capture.stream, null);
|
|
1072
|
-
return true;
|
|
1073
|
-
}
|
|
1074
|
-
const transcription = dictationTranscription(language, current.keyterms, current.model);
|
|
1075
|
-
audioCopies.current.clear();
|
|
1076
|
-
const copying = Boolean(current.onAudio);
|
|
1077
|
-
const recorder = current.platform.createRecorder({
|
|
1078
|
-
client: transport,
|
|
1079
|
-
workspaceId: current.workspaceId,
|
|
1080
|
-
purpose: "dictation",
|
|
1081
|
-
microphone: true,
|
|
1082
|
-
...transcription ? { transcription } : {},
|
|
1083
|
-
uploader: uploader(),
|
|
1084
|
-
timesliceMilliseconds: VOICE_RECORDING_TIMESLICE_MILLISECONDS,
|
|
1085
|
-
keepAwake: false,
|
|
1086
|
-
onChange: (snapshot2) => {
|
|
1087
|
-
if (recorderRef.current !== recorder) return;
|
|
1088
|
-
if (copying && snapshot2.recordingId && !audioCopies.current.has(snapshot2.recordingId)) {
|
|
1089
|
-
audioCopies.current.set(snapshot2.recordingId, { mimeType: null, parts: [] });
|
|
1090
|
-
}
|
|
1091
|
-
setDurationSeconds(snapshot2.elapsedMilliseconds / 1e3);
|
|
1092
|
-
if (snapshot2.state === "recording" && snapshot2.upload?.failed) {
|
|
1093
|
-
const code = voiceInputCode(snapshot2.upload.failed.code);
|
|
1094
|
-
recorderRef.current = null;
|
|
1095
|
-
dictationRef.current = null;
|
|
1096
|
-
void recorder.discard().catch(() => void 0);
|
|
1097
|
-
settleIdle();
|
|
1098
|
-
setStatus("error");
|
|
1099
|
-
setError(code);
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
});
|
|
1103
|
-
recorderRef.current = recorder;
|
|
1104
|
-
await recorder.start();
|
|
1105
|
-
if (generation !== generationRef.current) {
|
|
1106
|
-
await recorder.discard().catch(() => void 0);
|
|
1107
|
-
return false;
|
|
1108
|
-
}
|
|
1109
|
-
const snapshot = recorder.snapshot;
|
|
1110
|
-
if (snapshot.state !== "recording" || !snapshot.recordingId) {
|
|
1111
|
-
recorderRef.current = null;
|
|
1112
|
-
setStatus("error");
|
|
1113
|
-
setError(captureCode(snapshot.error?.code ?? null));
|
|
1114
|
-
return false;
|
|
1115
|
-
}
|
|
1116
|
-
dictationRef.current = {
|
|
1117
|
-
recordingId: snapshot.recordingId,
|
|
1118
|
-
autoInsert: true,
|
|
1119
|
-
fresh: true,
|
|
1120
|
-
text: null
|
|
1121
|
-
};
|
|
1122
|
-
beginCapture(recorder.inputStream?.(0) ?? null, snapshot.recordingId);
|
|
1123
|
-
return true;
|
|
1124
|
-
}, [beginCapture, settleIdle, transport, uploader]);
|
|
1125
|
-
const discard = useCallback2(async () => {
|
|
1126
|
-
const generation = ++generationRef.current;
|
|
1127
|
-
const recorder = recorderRef.current;
|
|
1128
|
-
const oneShot = oneShotRef.current;
|
|
1129
|
-
const dictation = dictationRef.current;
|
|
1130
|
-
settleIdle();
|
|
1131
|
-
oneShotText.current = null;
|
|
1132
|
-
audioCopies.current.clear();
|
|
1133
|
-
if (oneShot) await oneShot.stop().catch(() => void 0);
|
|
1134
|
-
if (recorder) {
|
|
1135
|
-
await recorder.discard().catch(() => void 0);
|
|
1136
|
-
} else if (dictation) {
|
|
1137
|
-
await uploader().discard(dictation.recordingId).catch(() => void 0);
|
|
1138
|
-
await latest.current.recordings?.deleteRecording(latest.current.workspaceId, dictation.recordingId).catch(() => void 0);
|
|
1139
|
-
}
|
|
1140
|
-
focusInput();
|
|
1141
|
-
if (generation === generationRef.current) void loadSaved(generation);
|
|
1142
|
-
}, [focusInput, loadSaved, settleIdle, uploader]);
|
|
1143
|
-
const cancel = useCallback2(() => {
|
|
1144
|
-
const current = statusRef.current;
|
|
1145
|
-
if (current === "requesting-permission") {
|
|
1146
|
-
generationRef.current += 1;
|
|
1147
|
-
settleIdle();
|
|
1148
|
-
return;
|
|
1149
|
-
}
|
|
1150
|
-
const dictation = dictationRef.current;
|
|
1151
|
-
const keep = (copy) => {
|
|
1152
|
-
if (copy && copy.durationMilliseconds >= ACCIDENTAL_START_MAX_MILLISECONDS) {
|
|
1153
|
-
giveAudio({ ...copy, cancelled: true });
|
|
1154
|
-
}
|
|
1155
|
-
};
|
|
1156
|
-
if (current === "recording") {
|
|
1157
|
-
const recorder = recorderRef.current;
|
|
1158
|
-
const id = recorder?.snapshot.recordingId ?? null;
|
|
1159
|
-
if (recorder && id && latest.current.onAudio) {
|
|
1160
|
-
const audio = takeCopy(audioCopies.current, id);
|
|
1161
|
-
const spoken = Math.max(
|
|
1162
|
-
recorder.snapshot.elapsedMilliseconds,
|
|
1163
|
-
now().getTime() - startedAtRef.current
|
|
1164
|
-
);
|
|
1165
|
-
if (audio) keep({ recordingId: id, audio, durationMilliseconds: spoken });
|
|
1166
|
-
}
|
|
1167
|
-
void discard();
|
|
1168
|
-
return;
|
|
1169
|
-
}
|
|
1170
|
-
if (current !== "saving" && current !== "transcribing" && current !== "retrying") return;
|
|
1171
|
-
if (dictation && !dictation.fresh) {
|
|
1172
|
-
dictation.autoInsert = false;
|
|
1173
|
-
setHeld(true);
|
|
1174
|
-
setStatus("recovered");
|
|
1175
|
-
return;
|
|
1176
|
-
}
|
|
1177
|
-
if (handed.current) {
|
|
1178
|
-
keep(handed.current);
|
|
1179
|
-
} else if (dictation && latest.current.onAudio) {
|
|
1180
|
-
const audio = takeCopy(audioCopies.current, dictation.recordingId);
|
|
1181
|
-
const recorder = recorderRef.current;
|
|
1182
|
-
if (audio) {
|
|
1183
|
-
keep({
|
|
1184
|
-
recordingId: dictation.recordingId,
|
|
1185
|
-
audio,
|
|
1186
|
-
durationMilliseconds: recorder?.snapshot.elapsedMilliseconds ?? 0
|
|
1187
|
-
});
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
void discard();
|
|
1191
|
-
}, [discard, giveAudio, now, settleIdle]);
|
|
1192
|
-
const setAside = useCallback2(() => {
|
|
1193
|
-
const current = statusRef.current;
|
|
1194
|
-
if (current === "requesting-permission") {
|
|
1195
|
-
generationRef.current += 1;
|
|
1196
|
-
settleIdle();
|
|
1197
|
-
return;
|
|
1198
|
-
}
|
|
1199
|
-
if (current === "recording") {
|
|
1200
|
-
const elapsed = now().getTime() - startedAtRef.current;
|
|
1201
|
-
if (elapsed < ACCIDENTAL_START_MAX_MILLISECONDS) {
|
|
1202
|
-
void discard();
|
|
1203
|
-
return;
|
|
1204
|
-
}
|
|
1205
|
-
void finishCapture(false);
|
|
1206
|
-
return;
|
|
1207
|
-
}
|
|
1208
|
-
if (current === "saving" || current === "transcribing" || current === "retrying") {
|
|
1209
|
-
const dictation = dictationRef.current;
|
|
1210
|
-
if (!dictation) return;
|
|
1211
|
-
dictation.autoInsert = false;
|
|
1212
|
-
setHeld(true);
|
|
1213
|
-
setStatus("recovered");
|
|
1214
|
-
}
|
|
1215
|
-
}, [discard, finishCapture, now, settleIdle]);
|
|
1216
|
-
const retry = useCallback2(() => {
|
|
1217
|
-
const dictation = dictationRef.current;
|
|
1218
|
-
const client = latest.current.recordings;
|
|
1219
|
-
if (!dictation || dictation.text !== null || !client || latest.current.disabled) return;
|
|
1220
|
-
const generation = ++generationRef.current;
|
|
1221
|
-
const failed = statusRef.current === "error" || errorRef.current !== null;
|
|
1222
|
-
dictation.autoInsert = true;
|
|
1223
|
-
setHeld(false);
|
|
1224
|
-
setError(null);
|
|
1225
|
-
setStatus("transcribing");
|
|
1226
|
-
void (async () => {
|
|
1227
|
-
let versionId = null;
|
|
1228
|
-
if (failed) {
|
|
1229
|
-
try {
|
|
1230
|
-
versionId = (await client.createRecordingTranscript(
|
|
1231
|
-
latest.current.workspaceId,
|
|
1232
|
-
dictation.recordingId
|
|
1233
|
-
)).id;
|
|
1234
|
-
} catch (cause) {
|
|
1235
|
-
if (generation !== generationRef.current) return;
|
|
1236
|
-
if (httpStatus(cause) === 404) {
|
|
1237
|
-
settleIdle();
|
|
1238
|
-
return;
|
|
1239
|
-
}
|
|
1240
|
-
hold(dictation, "error", errorCode(cause));
|
|
1241
|
-
return;
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
await watch(dictation, versionId, generation);
|
|
1245
|
-
})();
|
|
1246
|
-
}, [hold, settleIdle, watch]);
|
|
1247
|
-
const insertSavedTranscript = useCallback2(async () => {
|
|
1248
|
-
if (latest.current.disabled) return;
|
|
1249
|
-
const generation = ++generationRef.current;
|
|
1250
|
-
const dictation = dictationRef.current;
|
|
1251
|
-
if (oneShotText.current !== null) {
|
|
1252
|
-
insertText(oneShotText.current);
|
|
1253
|
-
oneShotText.current = null;
|
|
1254
|
-
settleIdle();
|
|
1255
|
-
return;
|
|
1256
|
-
}
|
|
1257
|
-
if (!dictation || dictation.text === null) return;
|
|
1258
|
-
await take(dictation, dictation.text, generation);
|
|
1259
|
-
}, [insertText, settleIdle, take]);
|
|
1260
|
-
const release = useCallback2(() => {
|
|
1261
|
-
generationRef.current += 1;
|
|
1262
|
-
void recorderRef.current?.stop().catch(() => void 0);
|
|
1263
|
-
void oneShotRef.current?.stop().catch(() => void 0);
|
|
1264
|
-
oneShotText.current = null;
|
|
1265
|
-
audioCopies.current.clear();
|
|
1266
|
-
settleIdle();
|
|
1267
|
-
}, [settleIdle]);
|
|
1268
|
-
const transcribe = useCallback2(
|
|
1269
|
-
async (audio, timing = {}) => {
|
|
1270
|
-
const current = latest.current;
|
|
1271
|
-
const client = current.recordings;
|
|
1272
|
-
if (!client || !current.durable || current.disabled || !current.enabled || !current.capability?.available || statusRef.current !== "idle" || audio.size === 0) {
|
|
1273
|
-
return false;
|
|
1274
|
-
}
|
|
1275
|
-
const generation = ++generationRef.current;
|
|
1276
|
-
const newId = crypto.randomUUID();
|
|
1277
|
-
const transcription = dictationTranscription(
|
|
1278
|
-
current.language || null,
|
|
1279
|
-
current.keyterms,
|
|
1280
|
-
current.model
|
|
1281
|
-
);
|
|
1282
|
-
const dictation = {
|
|
1283
|
-
recordingId: newId,
|
|
1284
|
-
autoInsert: true,
|
|
1285
|
-
fresh: true,
|
|
1286
|
-
text: null
|
|
1287
|
-
};
|
|
1288
|
-
dictationRef.current = dictation;
|
|
1289
|
-
setRecordingId(newId);
|
|
1290
|
-
setError(null);
|
|
1291
|
-
setStatus("saving");
|
|
1292
|
-
let upload;
|
|
1293
|
-
try {
|
|
1294
|
-
upload = await uploadRecordingAudio({
|
|
1295
|
-
uploader: uploader(),
|
|
1296
|
-
workspaceId: current.workspaceId,
|
|
1297
|
-
recordingId: newId,
|
|
1298
|
-
audio,
|
|
1299
|
-
durationMilliseconds: timing.durationMilliseconds ?? 0,
|
|
1300
|
-
create: { purpose: "dictation", ...transcription ? { transcription } : {} }
|
|
1301
|
-
});
|
|
1302
|
-
} catch (cause) {
|
|
1303
|
-
if (generation !== generationRef.current) return false;
|
|
1304
|
-
settleIdle();
|
|
1305
|
-
setStatus("error");
|
|
1306
|
-
setError(errorCode(cause));
|
|
1307
|
-
return false;
|
|
1308
|
-
}
|
|
1309
|
-
if (generation !== generationRef.current) return true;
|
|
1310
|
-
if (upload.discarded || upload.failed) {
|
|
1311
|
-
await uploader().discard(newId).catch(() => void 0);
|
|
1312
|
-
settleIdle();
|
|
1313
|
-
setStatus("error");
|
|
1314
|
-
setError(upload.failed ? voiceInputCode(upload.failed.code) : "invalid_audio");
|
|
1315
|
-
return false;
|
|
1316
|
-
}
|
|
1317
|
-
if (dictation.autoInsert) setStatus("transcribing");
|
|
1318
|
-
else hold(dictation, "recovered");
|
|
1319
|
-
void watch(dictation, uploader().finalized.get(newId)?.transcript.id ?? null, generation);
|
|
1320
|
-
return true;
|
|
1321
|
-
},
|
|
1322
|
-
[hold, settleIdle, uploader, watch]
|
|
1323
|
-
);
|
|
1324
|
-
useEffect2(() => {
|
|
1325
|
-
const dictation = dictationRef.current;
|
|
1326
|
-
if (disabled || status !== "transcript-ready" || !dictation?.autoInsert || !dictation.text)
|
|
1327
|
-
return;
|
|
1328
|
-
void take(dictation, dictation.text, ++generationRef.current);
|
|
1329
|
-
}, [disabled, status, take]);
|
|
1330
|
-
useEffect2(() => {
|
|
1331
|
-
const generation = ++generationRef.current;
|
|
1332
|
-
const recorder = recorderRef.current;
|
|
1333
|
-
if (recorder) {
|
|
1334
|
-
void recorder.stop().catch(() => void 0);
|
|
1335
|
-
}
|
|
1336
|
-
void oneShotRef.current?.stop().catch(() => void 0);
|
|
1337
|
-
settleIdle();
|
|
1338
|
-
oneShotText.current = null;
|
|
1339
|
-
if (durable) void loadSaved(generation);
|
|
1340
|
-
}, [workspaceId, durable, loadSaved, settleIdle]);
|
|
1341
|
-
const level = useCallback2(() => {
|
|
1342
|
-
const levels = recorderRef.current?.levels();
|
|
1343
|
-
const first = levels?.[0];
|
|
1344
|
-
return typeof first === "number" ? first : null;
|
|
1345
|
-
}, []);
|
|
1346
|
-
useEffect2(
|
|
1347
|
-
() => () => {
|
|
1348
|
-
generationRef.current += 1;
|
|
1349
|
-
clearStopTimer();
|
|
1350
|
-
void recorderRef.current?.stop().catch(() => void 0);
|
|
1351
|
-
recorderRef.current = null;
|
|
1352
|
-
void oneShotRef.current?.stop().catch(() => void 0);
|
|
1353
|
-
oneShotRef.current = null;
|
|
1354
|
-
uploaderRef.current = null;
|
|
1355
|
-
},
|
|
1356
|
-
[]
|
|
1357
|
-
);
|
|
1358
|
-
return {
|
|
1359
|
-
status,
|
|
1360
|
-
error,
|
|
1361
|
-
available: Boolean(
|
|
1362
|
-
capability?.available && enabled && !disabled && (durable || canRecordInMemory())
|
|
1363
|
-
),
|
|
1364
|
-
stream,
|
|
1365
|
-
recordingId,
|
|
1366
|
-
durationSeconds,
|
|
1367
|
-
recordingStartedAt: status === "recording" ? recordingStartedAt : null,
|
|
1368
|
-
maxRecordingSeconds,
|
|
1369
|
-
locallySaved: durable && recordingId !== null,
|
|
1370
|
-
hasRecoverableRecording: held && status !== "recording",
|
|
1371
|
-
savedTranscript,
|
|
1372
|
-
level,
|
|
1373
|
-
start,
|
|
1374
|
-
stop,
|
|
1375
|
-
retry,
|
|
1376
|
-
insertSavedTranscript,
|
|
1377
|
-
cancel,
|
|
1378
|
-
setAside,
|
|
1379
|
-
discard,
|
|
1380
|
-
release,
|
|
1381
|
-
transcribe
|
|
1382
|
-
};
|
|
1383
|
-
}
|
|
1384
|
-
function takeCopy(copies, recordingId) {
|
|
1385
|
-
const copy = copies.get(recordingId);
|
|
1386
|
-
copies.delete(recordingId);
|
|
1387
|
-
const parts = copy?.parts.filter((part) => part !== void 0) ?? [];
|
|
1388
|
-
if (!copy || parts.length === 0) return null;
|
|
1389
|
-
return new Blob(parts, copy.mimeType ? { type: copy.mimeType } : {});
|
|
1390
|
-
}
|
|
1391
|
-
function dictationTranscription(language, keyterms, model) {
|
|
1392
|
-
const terms = (keyterms ?? []).map((term) => term.trim()).filter(Boolean);
|
|
1393
|
-
if (!model && !language && terms.length === 0) return null;
|
|
1394
|
-
return {
|
|
1395
|
-
...model ? { providerId: model.providerId, model: model.model } : {},
|
|
1396
|
-
...language ? { language } : {},
|
|
1397
|
-
...terms.length > 0 ? { keyterms: terms.slice(0, 100) } : {}
|
|
1398
|
-
};
|
|
1399
|
-
}
|
|
1400
|
-
function copyingStore(store, copies) {
|
|
1401
|
-
return {
|
|
1402
|
-
putRecording: async (recording) => {
|
|
1403
|
-
const copy = copies.get(recording.recordingId);
|
|
1404
|
-
if (copy && !copy.mimeType) {
|
|
1405
|
-
copy.mimeType = recording.create.tracks.find((track) => track.trackNumber === 0)?.mimeType ?? null;
|
|
1406
|
-
}
|
|
1407
|
-
await store.putRecording(recording);
|
|
1408
|
-
},
|
|
1409
|
-
getRecording: (recordingId) => store.getRecording(recordingId),
|
|
1410
|
-
listRecordings: () => store.listRecordings(),
|
|
1411
|
-
deleteRecording: (recordingId) => store.deleteRecording(recordingId),
|
|
1412
|
-
putChunk: async (chunk) => {
|
|
1413
|
-
await store.putChunk(chunk);
|
|
1414
|
-
const copy = copies.get(chunk.recordingId);
|
|
1415
|
-
if (copy && chunk.trackNumber === 0) copy.parts[chunk.chunkNumber] = chunk.bytes;
|
|
1416
|
-
},
|
|
1417
|
-
listChunks: (recordingId) => store.listChunks(recordingId),
|
|
1418
|
-
readChunk: (recordingId, trackNumber, chunkNumber) => store.readChunk(recordingId, trackNumber, chunkNumber),
|
|
1419
|
-
deleteChunks: (recordingId, trackNumber, chunkNumbers) => store.deleteChunks(recordingId, trackNumber, chunkNumbers)
|
|
1420
|
-
};
|
|
1421
|
-
}
|
|
1422
|
-
async function transcriptText(client, workspaceId, recordingId, versionId) {
|
|
1423
|
-
const parts = [];
|
|
1424
|
-
let after;
|
|
1425
|
-
try {
|
|
1426
|
-
for (; ; ) {
|
|
1427
|
-
const page = await client.getRecordingTranscript(workspaceId, recordingId, {
|
|
1428
|
-
versionId,
|
|
1429
|
-
...after !== void 0 ? { after } : {},
|
|
1430
|
-
limit: 500
|
|
1431
|
-
});
|
|
1432
|
-
for (const segment of page.segments) parts.push(segment.text.trim());
|
|
1433
|
-
if (page.nextAfter === null) break;
|
|
1434
|
-
after = page.nextAfter;
|
|
1435
|
-
}
|
|
1436
|
-
} catch {
|
|
1437
|
-
return null;
|
|
1438
|
-
}
|
|
1439
|
-
return parts.filter(Boolean).join(" ");
|
|
1440
|
-
}
|
|
1441
|
-
function canRecordInMemory() {
|
|
1442
|
-
return typeof MediaRecorder !== "undefined" && typeof navigator !== "undefined" && typeof navigator.mediaDevices?.getUserMedia === "function";
|
|
1443
|
-
}
|
|
1444
|
-
async function startOneShot(accepted) {
|
|
1445
|
-
let stream;
|
|
1446
|
-
try {
|
|
1447
|
-
stream = await navigator.mediaDevices.getUserMedia({ audio: true });
|
|
1448
|
-
} catch (cause) {
|
|
1449
|
-
return cause instanceof Error ? cause : new Error(String(cause));
|
|
1450
|
-
}
|
|
1451
|
-
try {
|
|
1452
|
-
const preferred = chooseMimeType(accepted);
|
|
1453
|
-
const recorder = new MediaRecorder(stream, preferred ? { mimeType: preferred } : void 0);
|
|
1454
|
-
const parts = [];
|
|
1455
|
-
recorder.ondataavailable = (event) => {
|
|
1456
|
-
if (event.data.size > 0) parts.push(event.data);
|
|
1457
|
-
};
|
|
1458
|
-
const startedAt = performance.now();
|
|
1459
|
-
recorder.start(VOICE_RECORDING_TIMESLICE_MILLISECONDS);
|
|
1460
|
-
let stopped = null;
|
|
1461
|
-
return {
|
|
1462
|
-
stream,
|
|
1463
|
-
mimeType: recorder.mimeType || preferred || "audio/webm",
|
|
1464
|
-
durationSeconds: () => (performance.now() - startedAt) / 1e3,
|
|
1465
|
-
stop: () => stopped ??= new Promise((resolve) => {
|
|
1466
|
-
const done = () => {
|
|
1467
|
-
for (const track of stream.getTracks()) track.stop();
|
|
1468
|
-
resolve(
|
|
1469
|
-
parts.length > 0 ? new Blob(parts, { type: recorder.mimeType || preferred || "audio/webm" }) : null
|
|
1470
|
-
);
|
|
1471
|
-
};
|
|
1472
|
-
if (recorder.state === "inactive") return done();
|
|
1473
|
-
recorder.addEventListener("stop", done, { once: true });
|
|
1474
|
-
recorder.stop();
|
|
1475
|
-
})
|
|
1476
|
-
};
|
|
1477
|
-
} catch (cause) {
|
|
1478
|
-
for (const track of stream.getTracks()) track.stop();
|
|
1479
|
-
return cause instanceof Error ? cause : new Error(String(cause));
|
|
1480
|
-
}
|
|
1481
|
-
}
|
|
1482
|
-
function chooseMimeType(accepted) {
|
|
1483
|
-
const normalized = accepted.map((value) => value.trim().toLowerCase());
|
|
1484
|
-
return MIME_PREFERENCES.find((mimeType) => {
|
|
1485
|
-
const bare = mimeType.split(";")[0] ?? mimeType;
|
|
1486
|
-
const allowed = normalized.includes(mimeType) || normalized.includes(bare) || normalized.some((candidate) => candidate.split(";")[0] === bare);
|
|
1487
|
-
return allowed && (typeof MediaRecorder.isTypeSupported !== "function" || MediaRecorder.isTypeSupported(mimeType));
|
|
1488
|
-
});
|
|
1489
|
-
}
|
|
1490
|
-
function voiceInputCode(code) {
|
|
1491
|
-
if (!code) return "unknown";
|
|
1492
|
-
if (code.startsWith("voice_")) return voiceInputCode(code.slice("voice_".length));
|
|
1493
|
-
if (code.startsWith("provider_")) return "provider";
|
|
1494
|
-
switch (code) {
|
|
1495
|
-
case "insufficient_credits":
|
|
1496
|
-
case "allowance_exhausted":
|
|
1497
|
-
case "monthly_model_cost_limit":
|
|
1498
|
-
case "policy_blocked":
|
|
1499
|
-
case "region_restricted":
|
|
1500
|
-
case "not_supported":
|
|
1501
|
-
case "unavailable":
|
|
1502
|
-
case "too_large":
|
|
1503
|
-
case "invalid_audio":
|
|
1504
|
-
case "network":
|
|
1505
|
-
case "provider":
|
|
1506
|
-
case "timeout":
|
|
1507
|
-
return code;
|
|
1508
|
-
case "upstream_unavailable":
|
|
1509
|
-
case "storage_unavailable":
|
|
1510
|
-
return "unavailable";
|
|
1511
|
-
default:
|
|
1512
|
-
return "unknown";
|
|
1513
|
-
}
|
|
1514
|
-
}
|
|
1515
|
-
function captureCode(code) {
|
|
1516
|
-
switch (code) {
|
|
1517
|
-
case "microphone_denied":
|
|
1518
|
-
return "permission_denied";
|
|
1519
|
-
case "unsupported":
|
|
1520
|
-
case "microphone_unavailable":
|
|
1521
|
-
return "not_supported";
|
|
1522
|
-
case "upload_failed":
|
|
1523
|
-
return "unavailable";
|
|
1524
|
-
default:
|
|
1525
|
-
return "unknown";
|
|
1526
|
-
}
|
|
1527
|
-
}
|
|
1528
|
-
function errorCode(error) {
|
|
1529
|
-
const details = error.details;
|
|
1530
|
-
if (typeof details?.transcriptionCode === "string") return details.transcriptionCode;
|
|
1531
|
-
if (typeof details?.code === "string") return voiceInputCode(details.code);
|
|
1532
|
-
if (error && typeof error === "object" && "code" in error && typeof error.code === "string") {
|
|
1533
|
-
return voiceInputCode(error.code);
|
|
1534
|
-
}
|
|
1535
|
-
if (error instanceof DOMException && error.name === "NotAllowedError") return "permission_denied";
|
|
1536
|
-
if (error instanceof DOMException && error.name === "NotSupportedError") return "not_supported";
|
|
1537
|
-
if (error instanceof TypeError) return "network";
|
|
1538
|
-
return "unknown";
|
|
1539
|
-
}
|
|
1540
|
-
function httpStatus(error) {
|
|
1541
|
-
const status = error?.status;
|
|
1542
|
-
return typeof status === "number" ? status : null;
|
|
1543
|
-
}
|
|
1544
|
-
function sleep(milliseconds) {
|
|
1545
|
-
return new Promise((resolve) => setTimeout(resolve, milliseconds));
|
|
1546
|
-
}
|
|
1547
|
-
function readTaken() {
|
|
1548
|
-
try {
|
|
1549
|
-
const raw = globalThis.localStorage?.getItem(TAKEN_STORAGE_KEY);
|
|
1550
|
-
const parsed = raw ? JSON.parse(raw) : [];
|
|
1551
|
-
return new Set(Array.isArray(parsed) ? parsed.filter((id) => typeof id === "string") : []);
|
|
1552
|
-
} catch {
|
|
1553
|
-
return /* @__PURE__ */ new Set();
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
function writeTaken(ids) {
|
|
1557
|
-
try {
|
|
1558
|
-
globalThis.localStorage?.setItem(TAKEN_STORAGE_KEY, JSON.stringify([...ids].slice(-50)));
|
|
1559
|
-
} catch {
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
function rememberTaken(recordingId) {
|
|
1563
|
-
const ids = readTaken();
|
|
1564
|
-
ids.add(recordingId);
|
|
1565
|
-
writeTaken(ids);
|
|
1566
|
-
}
|
|
1567
|
-
function forgetTaken(recordingId) {
|
|
1568
|
-
const ids = readTaken();
|
|
1569
|
-
if (ids.delete(recordingId)) writeTaken(ids);
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
export {
|
|
1573
|
-
INITIAL_TRANSCRIPTION_CONTROL_STATE,
|
|
1574
|
-
transitionTranscriptionControl,
|
|
1575
|
-
appendFinalTranscript,
|
|
1576
|
-
useTranscription,
|
|
1577
|
-
VOICE_RECORDING_TIMESLICE_MILLISECONDS,
|
|
1578
|
-
VOICE_RECORDING_OWNER_HEARTBEAT_MILLISECONDS,
|
|
1579
|
-
VOICE_RECORDING_OWNER_STALE_MILLISECONDS,
|
|
1580
|
-
VOICE_RECORDING_CLIENT_MAX_DURATION_SECONDS,
|
|
1581
|
-
useVoiceInput
|
|
1582
|
-
};
|
|
1583
|
-
//# sourceMappingURL=chunk-YDCUBUWH.js.map
|