@opengeni/react 4.2.1-canary.39642758903001 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/app-state.js +27 -27
- package/dist/app/components/Composer.js +27 -26
- package/dist/app/components/agent/agent-capability-picker.js +5 -5
- package/dist/app/components/artifacts/artifact-library.js +19 -19
- package/dist/app/components/artifacts/chat-interactive-block.js +16 -16
- package/dist/app/components/artifacts/inline-chat-image.js +31 -30
- package/dist/app/components/artifacts/retained-file-preview.js +35 -34
- package/dist/app/components/artifacts/retained-text-preview.js +5 -5
- package/dist/app/components/artifacts/site-audience.js +5 -5
- package/dist/app/components/artifacts/site-conversations.js +24 -22
- package/dist/app/components/artifacts/site-data.js +20 -20
- package/dist/app/components/artifacts/site-publishing.js +39 -39
- package/dist/app/components/artifacts/site-settings.js +48 -48
- package/dist/app/components/billing-class-mark.js +5 -5
- package/dist/app/components/capabilities/capability-detail-sheet.js +9 -9
- package/dist/app/components/capabilities/capability-logo-source.js +13 -12
- package/dist/app/components/capabilities/connection-account-picker.js +2 -2
- package/dist/app/components/capabilities/connector-tool-permissions.js +5 -5
- package/dist/app/components/capabilities/native-connect-setup.js +14 -13
- package/dist/app/components/capabilities/native-connect-setup.js.map +1 -1
- package/dist/app/components/capabilities/perform-capability-action.js +3 -3
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +15 -14
- package/dist/app/components/capabilities/session-capability-card.js +78 -77
- package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
- package/dist/app/components/capabilities/session-custom-mcp-card.js +20 -19
- package/dist/app/components/capabilities/session-github-card.js +25 -24
- package/dist/app/components/capabilities/session-machine-card.js +38 -38
- package/dist/app/components/capabilities/use-capabilities-catalog.js +3 -3
- package/dist/app/components/capabilities/use-connection-accounts.js +1 -1
- package/dist/app/components/command-menu/chat-switcher.d.ts +12 -0
- package/dist/app/components/command-menu/chat-switcher.js +142 -0
- package/dist/app/components/command-menu/chat-switcher.js.map +1 -0
- package/dist/app/components/command-menu/command-menu.d.ts +15 -0
- package/dist/app/components/command-menu/command-menu.js +812 -0
- package/dist/app/components/command-menu/command-menu.js.map +1 -0
- package/dist/app/components/command-menu/keycaps.d.ts +21 -0
- package/dist/app/components/command-menu/keycaps.js +12 -0
- package/dist/app/components/command-menu/shortcut-sheet.d.ts +12 -0
- package/dist/app/components/command-menu/shortcut-sheet.js +150 -0
- package/dist/app/components/command-menu/shortcut-sheet.js.map +1 -0
- package/dist/app/components/composer-capabilities-menu-body.js +3 -3
- package/dist/app/components/composer-mobile-plus-panel.js +21 -21
- package/dist/app/components/composer-mobile-plus.js +3 -3
- package/dist/app/components/credit-required-gate.js +1 -1
- package/dist/app/components/credit-required-prompt.js +16 -16
- package/dist/app/components/credits/coupon-redeem.js +2 -2
- package/dist/app/components/credits/credit-refusal-notice.d.ts +18 -0
- package/dist/app/components/credits/credit-refusal-notice.js +17 -0
- package/dist/app/components/cross-slot-deep-link-recovery.js +1 -1
- package/dist/app/components/desktop/app-shots.js +6 -6
- package/dist/app/components/desktop/this-computer.js +4 -4
- package/dist/app/components/feedback.js +5 -5
- package/dist/app/components/follow-up-repository-menu-body.js +7 -7
- package/dist/app/components/follow-up-repository-picker.js +3 -3
- package/dist/app/components/github-app-connect-launcher.js +1 -1
- package/dist/app/components/knowledge/agent-learning-settings.js +6 -6
- package/dist/app/components/machines/connect-machine-dialog.js +18 -18
- package/dist/app/components/manual-repository-editor.js +2 -2
- package/dist/app/components/markdown.js +10 -9
- package/dist/app/components/message-context-pills.js +2 -2
- package/dist/app/components/models/models-ui.js +10 -10
- package/dist/app/components/pickers.js +10 -10
- package/dist/app/components/rail/rail-context.d.ts +6 -0
- package/dist/app/components/rail/rail-context.js +3 -3
- package/dist/app/components/rail/rail-sections.js +61 -55
- package/dist/app/components/rail/session-browse-order-controls.js +2 -2
- package/dist/app/components/rail/session-header.js +50 -36
- package/dist/app/components/rail/session-list.js +59 -52
- package/dist/app/components/rail/session-row-hover-details.js +25 -23
- package/dist/app/components/rail/session-shell.js +96 -91
- package/dist/app/components/repository-picker.js +7 -7
- package/dist/app/components/secrets/session-secrets-panel.js +4 -4
- package/dist/app/components/session/agent-configuration-panel.js +34 -34
- package/dist/app/components/session/banners.js +12 -11
- package/dist/app/components/session/codex-account-indicator.js +12 -12
- package/dist/app/components/session/composer-menu-radio.js +2 -2
- package/dist/app/components/session/conversation-find.js +1 -1
- package/dist/app/components/session/editable-artifacts-workspace.js +45 -45
- package/dist/app/components/session/failed-session-banner.js +12 -12
- package/dist/app/components/session/human-input.js +48 -47
- package/dist/app/components/session/inspector.js +80 -79
- package/dist/app/components/session/inspector.js.map +1 -1
- package/dist/app/components/session/message-actions.js +5 -5
- package/dist/app/components/session/message-resource-attachments.js +21 -20
- package/dist/app/components/session/message-resource-attachments.js.map +1 -1
- package/dist/app/components/session/model-account-indicator.js +11 -11
- package/dist/app/components/session/model-context-inspector.js +2 -2
- package/dist/app/components/session/model-recovery-notice.js +3 -3
- package/dist/app/components/session/new-session-settings-menu.js +13 -13
- package/dist/app/components/session/sandbox-switcher.js +16 -16
- package/dist/app/components/session/sandbox-workspace.js +68 -67
- package/dist/app/components/session/search-markdown-highlight.js +11 -10
- package/dist/app/components/session/search-results-view.js +12 -11
- package/dist/app/components/session/session-admin-access.js +11 -11
- package/dist/app/components/session/session-retention.js +4 -4
- package/dist/app/components/session/session-search-dialog.d.ts +5 -0
- package/dist/app/components/session/session-search-dialog.js +22 -12
- package/dist/app/components/session/session-search-dialog.js.map +1 -1
- package/dist/app/components/session/session-skill-reviews.js +3 -3
- package/dist/app/components/session/session-tenancy-control.js +25 -25
- package/dist/app/components/session/session-usage-limit-section.js +9 -9
- package/dist/app/components/session/session-wait-status.js +11 -9
- package/dist/app/components/session/session-wait-status.js.map +1 -1
- package/dist/app/components/session/subagents.js +17 -15
- package/dist/app/components/session/subscription-account-menu.js +2 -2
- package/dist/app/components/session-connectors-menu-body.js +6 -6
- package/dist/app/components/settings/row-select.js +1 -1
- package/dist/app/components/transcription-settings.js +2 -2
- package/dist/app/components/ui/destructive-confirm.js +8 -8
- package/dist/app/components/usage/usage-entry.js +6 -6
- package/dist/app/components/workspace-composer-plus.js +22 -21
- package/dist/app/embed/session-app.js +264 -258
- package/dist/app/lib/actions/actions-provider.d.ts +30 -0
- package/dist/app/lib/actions/actions-provider.js +32 -0
- package/dist/app/lib/actions/chat-directory.d.ts +30 -0
- package/dist/app/lib/actions/chat-operations.d.ts +11 -0
- package/dist/app/lib/actions/chat-switcher.d.ts +31 -0
- package/dist/app/lib/actions/chords.d.ts +40 -0
- package/dist/app/lib/actions/events.d.ts +6 -0
- package/dist/app/lib/actions/rank.d.ts +17 -0
- package/dist/app/lib/actions/registry.d.ts +71 -0
- package/dist/app/lib/codex-usage-query.js +3 -3
- package/dist/app/lib/composer-connectors.js +14 -13
- package/dist/app/lib/console-text.js +2 -2
- package/dist/app/lib/credit-coverage.d.ts +21 -0
- package/dist/app/lib/credit-coverage.js +15 -0
- package/dist/app/lib/deployment-free-model.js +2 -2
- package/dist/app/lib/events.js +19 -18
- package/dist/app/lib/failed-session-copy.js +5 -5
- package/dist/app/lib/free-credit-gap.d.ts +9 -0
- package/dist/app/lib/free-credit-gap.js +4 -2
- package/dist/app/lib/integration-connect-analytics.d.ts +1 -1
- package/dist/app/lib/integration-connect-analytics.js +1 -1
- package/dist/app/lib/integration-connect-redirect.js +1 -1
- package/dist/app/lib/model-access-onboarding.js +4 -4
- package/dist/app/lib/model-policy.js +1 -1
- package/dist/app/lib/models-route.d.ts +6 -2
- package/dist/app/lib/models-route.js +6 -3
- package/dist/app/lib/models-route.js.map +1 -1
- package/dist/app/lib/move-chat-to-machine.js +3 -3
- package/dist/app/lib/session-branch-cache.js +15 -13
- package/dist/app/lib/session-create.js +2 -2
- package/dist/app/lib/session-group-pagination.js +15 -13
- package/dist/app/lib/session-hover-facts.js +16 -14
- package/dist/app/lib/session-model.js +3 -3
- package/dist/app/lib/session-rail.js +11 -9
- package/dist/app/lib/session-rename.js +3 -3
- package/dist/app/lib/session-search-route.d.ts +1 -1
- package/dist/app/lib/session-search-route.js +1 -1
- package/dist/app/lib/session-ui-features.d.ts +11 -3
- package/dist/app/lib/session-ui-features.js +1 -1
- package/dist/app/lib/sessions-group.js +15 -13
- package/dist/app/lib/turn-failure-analytics.js +7 -7
- package/dist/app/lib/unavailable-session-model.js +2 -2
- package/dist/app/lib/use-duplicate-site.js +2 -2
- package/dist/app/lib/use-follow-up-repositories.js +3 -3
- package/dist/app/lib/use-workspace-machines.js +8 -8
- package/dist/app/lib/use-workspace-model-catalog.js +6 -6
- package/dist/app/lib/use-workspace-rigs.js +4 -4
- package/dist/app/lib/workspace-navigation-preference.js +5 -5
- package/dist/app/lib/workspace-scope-context.js +4 -4
- package/dist/app/routes/artifacts.js +124 -122
- package/dist/app/routes/artifacts.js.map +1 -1
- package/dist/app/routes/retained-artifact.js +69 -68
- package/dist/app/routes/retained-artifact.js.map +1 -1
- package/dist/app/routes/session-unavailable.js +3 -3
- package/dist/app/routes/session.js +168 -166
- package/dist/app/routes/sessions-index-hydration.js +3 -3
- package/dist/app/routes/sessions-index.js +122 -116
- 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 +39 -39
- package/dist/{browser-viewer-ZRFZX3VN.js → browser-viewer-HPUMK7UP.js} +7 -7
- package/dist/{chat-interactive-block-HUMYWVCK.js → chat-interactive-block-22PPECCT.js} +6 -6
- package/dist/{chunk-GVIQ7H62.js → chunk-2LUBBDZV.js} +5 -5
- package/dist/{chunk-SWWYYGQO.js → chunk-325C2TCI.js} +5 -2
- package/dist/chunk-325C2TCI.js.map +1 -0
- package/dist/{chunk-XMMVIY7B.js → chunk-3CCJWHQY.js} +2 -2
- package/dist/{chunk-XS2FZ6DX.js → chunk-3F5ZPIWI.js} +2 -2
- package/dist/{chunk-72US6QNB.js → chunk-3J2YZRY5.js} +2 -2
- package/dist/{chunk-D4YQF4E3.js → chunk-3SMJ2BIQ.js} +2 -2
- package/dist/{chunk-TBJINQXA.js → chunk-3WCYK36X.js} +17 -17
- package/dist/{chunk-WPCF34V6.js → chunk-3WG3CRL7.js} +14 -14
- package/dist/{chunk-JI5BYQKO.js → chunk-3X46PNBX.js} +14 -14
- package/dist/{chunk-UO36FC3S.js → chunk-46I7MMAL.js} +6 -2
- package/dist/chunk-46I7MMAL.js.map +1 -0
- package/dist/{chunk-PBK44WJC.js → chunk-4GJ37O6G.js} +2 -2
- package/dist/chunk-4IWBQUQU.js +152 -0
- package/dist/chunk-4IWBQUQU.js.map +1 -0
- package/dist/{chunk-LEXPBQ56.js → chunk-4SKJX3C4.js} +6 -6
- package/dist/{chunk-ZA6YD2LW.js → chunk-57SYK776.js} +2 -2
- package/dist/{chunk-22LBKJDE.js → chunk-5DIAN5GQ.js} +12 -12
- package/dist/{chunk-LJ3TDK2L.js → chunk-5FA455GR.js} +4 -4
- package/dist/{chunk-N2BEUKXT.js → chunk-5FBZDEHE.js} +228 -228
- package/dist/chunk-5FBZDEHE.js.map +1 -0
- package/dist/{chunk-YPR5INHV.js → chunk-5X3E2Z3D.js} +4 -4
- package/dist/{chunk-OXNWZTEU.js → chunk-5ZJCL6X4.js} +5 -5
- package/dist/{chunk-62OAZ4LO.js → chunk-6C5GQQMC.js} +12 -12
- package/dist/{chunk-VGITH57T.js → chunk-6ERTXDZM.js} +4 -4
- package/dist/{chunk-ZQ7XQZCF.js → chunk-6FX73Y4I.js} +8 -8
- package/dist/{chunk-QZO2KK2F.js → chunk-6P44NG6Y.js} +2 -2
- package/dist/{chunk-N2DDJLTM.js → chunk-6T7Y33JA.js} +3 -3
- package/dist/{chunk-RBAGC2MJ.js → chunk-75VE5QUS.js} +22 -22
- package/dist/{chunk-MRXOGI3O.js → chunk-77CUDSHG.js} +9 -9
- package/dist/{chunk-F2GXK2Z6.js → chunk-7G446JFO.js} +431 -348
- package/dist/chunk-7G446JFO.js.map +1 -0
- package/dist/{chunk-GZ65XQR5.js → chunk-7T7FHSGS.js} +3 -3
- package/dist/{chunk-YGAH34CD.js → chunk-A3S26JSP.js} +8 -8
- package/dist/{chunk-GYPAO6RS.js → chunk-A664GSDM.js} +8 -8
- package/dist/{chunk-JSZSNMDR.js → chunk-ASUYLXKO.js} +2 -2
- package/dist/{chunk-RTK7SUPL.js → chunk-AUUJLVA3.js} +7 -7
- package/dist/{chunk-OOTBYSCA.js → chunk-BBWKPNJB.js} +5 -5
- package/dist/{chunk-BGZIMIUU.js → chunk-BCUYWOQU.js} +2 -2
- package/dist/{chunk-EKN4N4LS.js → chunk-BDFMNJZJ.js} +2 -2
- package/dist/{chunk-YZKGOWCC.js → chunk-BIDXQAGO.js} +2 -2
- package/dist/{chunk-Q2UUANHF.js → chunk-BIKAJ4DY.js} +5 -5
- package/dist/{chunk-5IQBF2X3.js → chunk-BJPJ2OUX.js} +3 -3
- package/dist/{chunk-EY2EMHZW.js → chunk-BPM2OTYK.js} +8 -8
- package/dist/{chunk-MT4TBRQB.js → chunk-BSWS2RUZ.js} +2 -2
- package/dist/{chunk-T7YD3VGK.js → chunk-C52MNKXU.js} +12 -12
- package/dist/{chunk-THNW33K7.js → chunk-CEUDV4OA.js} +18 -18
- package/dist/{chunk-GRLPRM56.js → chunk-CFEFYPNR.js} +8 -2
- package/dist/chunk-CFEFYPNR.js.map +1 -0
- package/dist/{chunk-LHGIS6SZ.js → chunk-CVK74BH7.js} +2 -2
- package/dist/{chunk-DFO2UCYG.js → chunk-CW5I65ZX.js} +11 -11
- package/dist/chunk-DKNTQDVL.js +86 -0
- package/dist/chunk-DKNTQDVL.js.map +1 -0
- package/dist/{chunk-SKRLKQEG.js → chunk-DOSC2HRQ.js} +79 -79
- package/dist/{chunk-KVB6XDLP.js → chunk-DPJ2CWVN.js} +2 -2
- package/dist/{chunk-4J6V4DH7.js → chunk-DXMRO2MU.js} +3 -3
- package/dist/{chunk-42I4O4WQ.js → chunk-EE55IDDR.js} +26 -26
- package/dist/{chunk-2RA6XABP.js → chunk-EEERTLFF.js} +12 -12
- package/dist/{chunk-PTOTKUKO.js → chunk-EEO744XR.js} +8 -8
- package/dist/{chunk-LD3HVI2J.js → chunk-EMFGBAQL.js} +6 -6
- package/dist/{chunk-FQGUK4ST.js → chunk-ENPJKVMN.js} +38 -38
- package/dist/{chunk-HDHK3SXK.js → chunk-EU6RLHMP.js} +4 -4
- package/dist/{chunk-G7VLL3PG.js → chunk-F2YABPRJ.js} +13 -4
- package/dist/chunk-F2YABPRJ.js.map +1 -0
- package/dist/{chunk-MRUWRQBX.js → chunk-FET6XHGS.js} +2 -2
- package/dist/{chunk-M6KUY3YH.js → chunk-FIICQA55.js} +2 -2
- package/dist/{chunk-NLWLCYCT.js → chunk-FTZXCPE3.js} +19 -19
- package/dist/{chunk-FN2KA3MJ.js → chunk-FUS76DO4.js} +3 -3
- package/dist/{chunk-AM4IIPWI.js → chunk-G7N5NPRJ.js} +2 -2
- package/dist/{chunk-CCQ7YKOD.js → chunk-GBYZ6653.js} +2 -2
- package/dist/{chunk-SOOWLNC5.js → chunk-GJUPLSC5.js} +330 -109
- package/dist/chunk-GJUPLSC5.js.map +1 -0
- package/dist/{chunk-YKKVIJVX.js → chunk-GQDSC6QZ.js} +5 -5
- package/dist/chunk-GQGNRL2L.js +53 -0
- package/dist/chunk-GQGNRL2L.js.map +1 -0
- package/dist/{chunk-5X6JP75Q.js → chunk-GRSODLVO.js} +4 -4
- package/dist/{chunk-73YP3R5X.js → chunk-GSESCQFY.js} +4 -4
- package/dist/{chunk-KWB5U3ZT.js → chunk-GWRW4N3T.js} +199 -137
- package/dist/chunk-GWRW4N3T.js.map +1 -0
- package/dist/{chunk-RTR7RNG4.js → chunk-GYRU4PNM.js} +9 -7
- package/dist/{chunk-RTR7RNG4.js.map → chunk-GYRU4PNM.js.map} +1 -1
- package/dist/{chunk-MZLEBFUZ.js → chunk-GZD6VBIK.js} +3 -3
- package/dist/{chunk-IZR2QRFF.js → chunk-H3HH5AHS.js} +4 -4
- package/dist/{chunk-DN3TKURW.js → chunk-H3LIIAGE.js} +4 -54
- package/dist/chunk-H3LIIAGE.js.map +1 -0
- package/dist/{chunk-NPLEQMNM.js → chunk-H5GWAG4I.js} +7 -5
- package/dist/{chunk-NPLEQMNM.js.map → chunk-H5GWAG4I.js.map} +1 -1
- package/dist/{chunk-OJPUVUB6.js → chunk-HAOZCLLA.js} +3 -3
- package/dist/{chunk-ZBHDGAYL.js → chunk-HEFE4OZJ.js} +2 -2
- package/dist/{chunk-WTG34JVA.js → chunk-HI75UTI6.js} +2 -2
- package/dist/{chunk-OMBIG3NC.js → chunk-HM633ROV.js} +14 -14
- package/dist/{chunk-WDFZWSKD.js → chunk-HRIP4M6H.js} +3 -3
- package/dist/{chunk-A2BCW6CQ.js → chunk-HU2DRFFI.js} +3 -3
- package/dist/{chunk-PO35PBAB.js → chunk-HVH7FFJH.js} +2 -2
- package/dist/{chunk-EG7KNUF7.js → chunk-HYTXTKST.js} +18 -18
- package/dist/{chunk-TFHG75A4.js → chunk-I4XMDFUJ.js} +7 -7
- package/dist/{chunk-IZHVZZQA.js → chunk-ICAUYWSL.js} +9 -9
- package/dist/{chunk-ZSERYHHT.js → chunk-IDMXEPHL.js} +150 -150
- package/dist/chunk-IDMXEPHL.js.map +1 -0
- package/dist/{chunk-DCLPWYP3.js → chunk-IEVPJ3G6.js} +2 -2
- package/dist/{chunk-EVWZHDSF.js → chunk-IKH3VTA4.js} +2 -2
- package/dist/{chunk-L5UCO2UV.js → chunk-ILBSBZGC.js} +13 -4
- package/dist/chunk-ILBSBZGC.js.map +1 -0
- package/dist/{chunk-IO6K6UYJ.js → chunk-IQ64BNAG.js} +4 -2
- package/dist/chunk-IQ64BNAG.js.map +1 -0
- package/dist/{chunk-TYHLEFD2.js → chunk-IZJNMRIR.js} +9 -9
- package/dist/{chunk-D2SR3TEB.js → chunk-J243WGUA.js} +2 -2
- package/dist/{chunk-QGSGIYE3.js → chunk-J2C6LB6W.js} +4 -4
- package/dist/{chunk-MT6TRTXF.js → chunk-J5MEDX7C.js} +9 -9
- package/dist/{chunk-6QHUKBJP.js → chunk-J7SKOO44.js} +2 -2
- package/dist/{chunk-W2QK7PYS.js → chunk-JAAST75A.js} +11 -11
- package/dist/{chunk-NQCMS4AJ.js → chunk-JQCGPTZ6.js} +9 -9
- package/dist/chunk-JRJUSKDY.js +832 -0
- package/dist/chunk-JRJUSKDY.js.map +1 -0
- package/dist/{chunk-CMUXJHGH.js → chunk-JRSCWQMC.js} +9 -9
- package/dist/{chunk-Q4OHNGGB.js → chunk-JRXHSVD5.js} +4 -4
- package/dist/{chunk-SD2K5ZN5.js → chunk-JXYLDT6X.js} +4 -4
- package/dist/{chunk-S3M5WCZW.js → chunk-KA4LV7G6.js} +35 -50
- package/dist/chunk-KA4LV7G6.js.map +1 -0
- package/dist/{chunk-IXX6ZOL2.js → chunk-KGTMHEAP.js} +7 -7
- package/dist/{chunk-22OBGVEJ.js → chunk-KOXVGPW4.js} +3 -3
- package/dist/{chunk-NOZ5CGZE.js → chunk-L5GPPMUB.js} +2 -2
- package/dist/{chunk-KIHYJM5F.js → chunk-LXJT4WAW.js} +58 -58
- package/dist/{chunk-KIHYJM5F.js.map → chunk-LXJT4WAW.js.map} +1 -1
- package/dist/{chunk-4FOOHMTU.js → chunk-LY6727IF.js} +1 -1
- package/dist/{chunk-PT7MTXRE.js → chunk-MAOCN7J6.js} +2 -2
- package/dist/{chunk-4K2JSJNX.js → chunk-MB5LZVDO.js} +2 -2
- package/dist/chunk-MF464AKA.js +139 -0
- package/dist/chunk-MF464AKA.js.map +1 -0
- package/dist/{chunk-UYSZKDQY.js → chunk-MK54JLE4.js} +1 -1
- package/dist/chunk-MK54JLE4.js.map +1 -0
- package/dist/{chunk-5LES64PP.js → chunk-MKOQAVOE.js} +21 -21
- package/dist/{chunk-BMV2SNYX.js → chunk-MUPWNSEJ.js} +18 -18
- package/dist/{chunk-Y5TRG22C.js → chunk-NRXIECWC.js} +2 -2
- package/dist/{chunk-GOE7G5JX.js → chunk-NWSAF6P5.js} +2 -2
- package/dist/chunk-OB3YGXHQ.js +158 -0
- package/dist/chunk-OB3YGXHQ.js.map +1 -0
- package/dist/{chunk-DUM363VS.js → chunk-OFZQJNF6.js} +5 -5
- package/dist/{chunk-CKN5QPEL.js → chunk-OMF7POEY.js} +2 -2
- package/dist/{chunk-MVXKO2BD.js → chunk-OXD6ET34.js} +1 -1
- package/dist/{chunk-47JUEVME.js → chunk-PALX6HWV.js} +21 -21
- package/dist/{chunk-B6OGSG7I.js → chunk-PE3BLBDT.js} +3 -3
- package/dist/{chunk-RVISSNVE.js → chunk-PMZKJOG6.js} +15 -15
- package/dist/{chunk-CESAMXWX.js → chunk-PQUTMG3S.js} +2 -2
- package/dist/{chunk-7VFCOKPG.js → chunk-PWBGODZU.js} +3 -3
- package/dist/{chunk-MOPAXD2H.js → chunk-QCADUTYX.js} +2 -2
- package/dist/{chunk-CT5FBO7E.js → chunk-RPOUJI25.js} +1 -1
- package/dist/{chunk-VE3FKXJ7.js → chunk-RUSXEE7X.js} +35 -32
- package/dist/chunk-RUSXEE7X.js.map +1 -0
- package/dist/{chunk-WKHYOS72.js → chunk-RW4GFE56.js} +3 -3
- package/dist/{chunk-FH4GO7HO.js → chunk-RYLVVDR7.js} +1 -1
- package/dist/{chunk-QZRDCFHI.js → chunk-S66SBBFQ.js} +5 -5
- package/dist/{chunk-CQJFIPAH.js → chunk-S7TNV2I7.js} +14 -14
- package/dist/{chunk-ZBQSIGGR.js → chunk-SC773IMJ.js} +13 -13
- package/dist/{chunk-RZV7SXED.js → chunk-SF3M27AN.js} +37 -12
- package/dist/chunk-SF3M27AN.js.map +1 -0
- package/dist/{chunk-FBJ2HK7A.js → chunk-SGPJ3YS2.js} +20 -20
- package/dist/{chunk-A2EWJQXX.js → chunk-SM5QX6UK.js} +4 -4
- package/dist/chunk-SWCLN6JE.js +40 -0
- package/dist/chunk-SWCLN6JE.js.map +1 -0
- package/dist/{chunk-OS3EQOIS.js → chunk-T4F5TW2X.js} +29 -24
- package/dist/chunk-T4F5TW2X.js.map +1 -0
- package/dist/{chunk-RKZWCTXV.js → chunk-TAEKDMEF.js} +2 -2
- package/dist/{chunk-6AVCAUGL.js → chunk-TASEV25T.js} +3 -3
- package/dist/{chunk-3XOISKZC.js → chunk-TLGDPMUX.js} +6 -6
- package/dist/{chunk-MOF3XSUM.js → chunk-TREHTIBD.js} +3 -2
- package/dist/chunk-TREHTIBD.js.map +1 -0
- package/dist/{chunk-HUQHJSPV.js → chunk-TTPXGD5S.js} +68 -33
- package/dist/chunk-TTPXGD5S.js.map +1 -0
- package/dist/{chunk-NFCYIZHX.js → chunk-TXIIBNCA.js} +7 -3
- package/dist/{chunk-NFCYIZHX.js.map → chunk-TXIIBNCA.js.map} +1 -1
- package/dist/{chunk-5IUW34PG.js → chunk-TY3QYPJ6.js} +7 -7
- package/dist/{chunk-VQFR4EU4.js → chunk-U3JK5VJV.js} +2 -2
- package/dist/{chunk-2AWMJO54.js → chunk-U42P3RMZ.js} +5 -5
- package/dist/{chunk-2RIUMV7S.js → chunk-UBIJBLUK.js} +234 -234
- package/dist/chunk-UBIJBLUK.js.map +1 -0
- package/dist/{chunk-GUU75DES.js → chunk-UEJTOPLW.js} +8 -8
- package/dist/{chunk-QWCTYLMD.js → chunk-URDONAEJ.js} +240 -204
- package/dist/chunk-URDONAEJ.js.map +1 -0
- package/dist/{chunk-OZOEWLGR.js → chunk-UT6JAORE.js} +4 -4
- package/dist/{chunk-5TELOQA6.js → chunk-UTHPUINA.js} +3 -3
- package/dist/{chunk-SOV7DTTU.js → chunk-V6HZ2HJZ.js} +67 -67
- package/dist/{chunk-SOV7DTTU.js.map → chunk-V6HZ2HJZ.js.map} +1 -1
- package/dist/{chunk-26RQ6JBR.js → chunk-VBVCNH6D.js} +5 -5
- package/dist/{chunk-P646DND6.js → chunk-VCMQPCME.js} +2 -2
- package/dist/{chunk-LV7FMIMM.js → chunk-VGUHAHHV.js} +2 -2
- package/dist/{chunk-GYVXARCY.js → chunk-VIBPFVU4.js} +41 -41
- package/dist/{chunk-KHPOKZ6Z.js → chunk-VMAC66JX.js} +6 -6
- package/dist/{chunk-SHKRS6I5.js → chunk-VRPNETPK.js} +3 -3
- package/dist/{chunk-6U4J6RVS.js → chunk-WCHW4XN7.js} +14 -14
- package/dist/{chunk-CJH6QUQJ.js → chunk-WD3UXNJV.js} +3 -3
- package/dist/{chunk-H5EVWF6L.js → chunk-WR67FJMX.js} +4 -4
- package/dist/{chunk-XLIJ36RG.js → chunk-WRMQ7EX4.js} +5 -5
- package/dist/{chunk-VVFWOBAM.js → chunk-WTJUKYB2.js} +15 -16
- package/dist/chunk-WTJUKYB2.js.map +1 -0
- package/dist/{chunk-7KLCFJ5G.js → chunk-X4PPGXQG.js} +2 -2
- package/dist/{chunk-ZE2JTVCQ.js → chunk-X5BMQXFD.js} +11 -11
- package/dist/{chunk-OYJY4Y4A.js → chunk-XFNLU7EW.js} +14 -7
- package/dist/chunk-XFNLU7EW.js.map +1 -0
- package/dist/{chunk-UECU6LZI.js → chunk-XXRBOSWV.js} +3 -3
- package/dist/{chunk-SPKAIDWX.js → chunk-XZEFCPBL.js} +2 -2
- package/dist/{chunk-EZ5NYRHK.js → chunk-YL6N7QLA.js} +5 -5
- package/dist/{chunk-Q2ZJOECN.js → chunk-YMVTIV5L.js} +19 -19
- package/dist/chunk-YMVTIV5L.js.map +1 -0
- package/dist/{chunk-VAIESMPY.js → chunk-YVBHGMKC.js} +4 -4
- package/dist/{chunk-AR62NQXE.js → chunk-Z2S5VQG7.js} +2 -2
- package/dist/{chunk-2MXUB3ZO.js → chunk-Z5OGTWMZ.js} +15 -2
- package/dist/chunk-Z5OGTWMZ.js.map +1 -0
- package/dist/{chunk-7UQJEADK.js → chunk-ZL2O4BYP.js} +2 -2
- package/dist/{chunk-FOOITLHR.js → chunk-ZZHBT5WQ.js} +2 -2
- package/dist/{chunk-X6VJQJYY.js → chunk-ZZWHKC6A.js} +3 -3
- package/dist/components/timeline-annotation-shared.d.ts +1 -9
- package/dist/composer-messages.js +2 -2
- package/dist/composer.js +15 -15
- package/dist/{computer-viewer-D4NHQB5D.js → computer-viewer-S6TE6TN7.js} +8 -8
- package/dist/connect.js +12 -11
- package/dist/desktop.js +2 -2
- package/dist/editor.js +2 -2
- package/dist/{embedded-new-voice-X4ZW6SY4.js → embedded-new-voice-ZDZPGX25.js} +8 -8
- package/dist/{embedded-voice-4OD6Z3HU.js → embedded-voice-FKCUXSJO.js} +8 -8
- package/dist/{fleet-decision-row-5UCJXTDP.js → fleet-decision-row-VCGWYJAV.js} +2 -2
- package/dist/hooks/page-wake.d.ts +21 -0
- package/dist/hooks/use-session-events.d.ts +1 -0
- package/dist/index.js +206 -205
- package/dist/interaction.js +9 -9
- package/dist/{latest-question-VGVNUGAU.js → latest-question-SINEV4U6.js} +3 -3
- package/dist/lib/format.d.ts +3 -2
- package/dist/machines.js +6 -6
- package/dist/messages/en.d.ts +12 -3
- package/dist/messages.js +1 -1
- package/dist/model-picker-model.js +2 -2
- package/dist/{model-policy-picker-menu-XOPYY6YA.js → model-policy-picker-menu-66JPM3G5.js} +6 -6
- package/dist/model-policy-picker-menu-66JPM3G5.js.map +1 -0
- package/dist/model-policy.js +1 -1
- package/dist/native-previews.js +3 -3
- package/dist/{platform-activity-row-56XOVTRA.js → platform-activity-row-LU5WABI2.js} +2 -2
- package/dist/{queue-surface-implementation-OZDOBJ6W.js → queue-surface-implementation-Y4OUVS7N.js} +8 -7
- package/dist/{queue-surface-implementation-OZDOBJ6W.js.map → queue-surface-implementation-Y4OUVS7N.js.map} +1 -1
- package/dist/realtime.js +7 -7
- package/dist/{sandbox-files-LJCR437H.js → sandbox-files-NBIVKVCZ.js} +11 -11
- package/dist/sandbox-files-NBIVKVCZ.js.map +1 -0
- package/dist/session-app.js +266 -260
- package/dist/session-list-model.js +3 -3
- package/dist/{session-realtime-UISLBZ4A.js → session-realtime-3PALSNMJ.js} +3 -3
- package/dist/session-realtime-3PALSNMJ.js.map +1 -0
- package/dist/session-realtime.js +2 -2
- package/dist/session-ui.js +62 -61
- package/dist/session.d.ts +1 -1
- package/dist/session.js +17 -17
- package/dist/sites.js +2 -2
- package/dist/terminal.js +2 -2
- package/dist/this-computer.js +3 -3
- package/dist/timeline/annotation-model.d.ts +48 -0
- package/dist/{timeline-annotation-markers-ACT7XRMW.js → timeline-annotation-markers-6526H2NM.js} +11 -9
- package/dist/{timeline-annotation-markers-ACT7XRMW.js.map → timeline-annotation-markers-6526H2NM.js.map} +1 -1
- package/dist/{timeline-annotation-selection-2IA7T5VR.js → timeline-annotation-selection-KV5SM6TA.js} +16 -62
- package/dist/timeline-annotation-selection-KV5SM6TA.js.map +1 -0
- package/dist/{timeline-annotations-dialog-W5B2HMYY.js → timeline-annotations-dialog-7CDHWC7Y.js} +12 -10
- package/dist/{timeline-annotations-dialog-W5B2HMYY.js.map → timeline-annotations-dialog-7CDHWC7Y.js.map} +1 -1
- package/dist/timeline-model.d.ts +3 -0
- package/dist/timeline-model.js +40 -14
- package/dist/ui/access-list.js +24 -24
- package/dist/ui/choice-cards.js +2 -2
- package/dist/ui/composer-menu-action.js +2 -2
- package/dist/ui/context-menu.d.ts +3 -1
- package/dist/ui/context-menu.js +3 -1
- package/dist/ui/detail-page.js +3 -3
- package/dist/ui/detail-sheet.js +3 -3
- package/dist/ui/diff-view.js +3 -3
- package/dist/ui/disclosure.js +5 -5
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/flush-form-page.js +5 -5
- package/dist/ui/form-dialog.js +4 -4
- package/dist/ui/list-row.js +5 -5
- package/dist/ui/load-failure.js +3 -3
- package/dist/ui/page-actions.js +3 -3
- package/dist/ui/revision-history.js +11 -11
- package/dist/ui/role-select.js +8 -8
- package/dist/ui/segmented-control.js +1 -1
- package/dist/ui/settings-nav.js +3 -3
- package/dist/ui/toolbar.js +3 -3
- package/dist/usage.js +2 -2
- package/dist/workbench.js +11 -11
- package/package.json +4 -4
- package/src/app/app-state.tsx +2 -1
- package/src/app/components/command-menu/chat-switcher.tsx +135 -0
- package/src/app/components/command-menu/command-menu.tsx +840 -0
- package/src/app/components/command-menu/keycaps.tsx +56 -0
- package/src/app/components/command-menu/shortcut-sheet.tsx +155 -0
- package/src/app/components/credits/credit-refusal-notice.test.tsx +132 -0
- package/src/app/components/credits/credit-refusal-notice.tsx +92 -0
- package/src/app/components/rail/rail-context.tsx +28 -5
- package/src/app/components/rail/rail-sections.tsx +3 -5
- package/src/app/components/rail/session-header-mute.test.tsx +23 -1
- package/src/app/components/rail/session-header.test.tsx +21 -2
- package/src/app/components/rail/session-header.tsx +31 -1
- package/src/app/components/rail/session-list.tsx +89 -16
- package/src/app/components/rail/session-shell.tsx +0 -14
- package/src/app/components/session/session-search-dialog.tsx +12 -1
- package/src/app/embed/session-app.tsx +6 -3
- package/src/app/lib/actions/actions-provider.tsx +486 -0
- package/src/app/lib/actions/actions.test.ts +249 -0
- package/src/app/lib/actions/chat-directory.ts +231 -0
- package/src/app/lib/actions/chat-operations.ts +145 -0
- package/src/app/lib/actions/chat-switcher.ts +62 -0
- package/src/app/lib/actions/chords.ts +185 -0
- package/src/app/lib/actions/events.ts +10 -0
- package/src/app/lib/actions/rank.ts +119 -0
- package/src/app/lib/actions/registry.ts +333 -0
- package/src/app/lib/credit-coverage.test.ts +83 -0
- package/src/app/lib/credit-coverage.tsx +48 -0
- package/src/app/lib/free-credit-gap.test.ts +32 -1
- package/src/app/lib/free-credit-gap.tsx +32 -2
- package/src/app/lib/integration-connect-analytics.test.ts +1 -0
- package/src/app/lib/integration-connect-analytics.tsx +4 -0
- package/src/app/lib/models-route.test.ts +18 -0
- package/src/app/lib/models-route.tsx +26 -4
- package/src/app/lib/session-search-route.tsx +6 -1
- package/src/app/lib/session-ui-features.tsx +28 -9
- package/src/app/routes/session.tsx +74 -16
- package/src/app/routes/sessions-index.tsx +83 -4
- package/src/components/timeline-annotation-selection.tsx +9 -64
- package/src/components/timeline-annotation-shared.ts +9 -57
- package/src/hooks/page-wake.ts +80 -0
- package/src/hooks/use-session-events.ts +309 -81
- package/src/lib/format.ts +3 -2
- package/src/messages/en.ts +13 -3
- package/src/model-picker-model.ts +3 -0
- package/src/model-policy.ts +9 -1
- package/src/session.ts +1 -0
- package/src/timeline/annotation-model.ts +217 -0
- package/src/timeline/projection.ts +27 -21
- package/src/timeline-model.ts +14 -0
- package/src/ui/context-menu.tsx +16 -0
- package/src/ui/dropdown-menu.tsx +4 -1
- package/src/ui/segmented-control.tsx +3 -0
- package/styles/compiled.css +92 -0
- package/dist/app/lib/keyboard-shortcuts.d.ts +0 -51
- package/dist/app/lib/keyboard-shortcuts.js +0 -16
- package/dist/chunk-2MXUB3ZO.js.map +0 -1
- package/dist/chunk-2RIUMV7S.js.map +0 -1
- package/dist/chunk-53IXIUYP.js +0 -39
- package/dist/chunk-53IXIUYP.js.map +0 -1
- package/dist/chunk-DN3TKURW.js.map +0 -1
- package/dist/chunk-F2GXK2Z6.js.map +0 -1
- package/dist/chunk-G7VLL3PG.js.map +0 -1
- package/dist/chunk-GRLPRM56.js.map +0 -1
- package/dist/chunk-HUQHJSPV.js.map +0 -1
- package/dist/chunk-IO6K6UYJ.js.map +0 -1
- package/dist/chunk-KWB5U3ZT.js.map +0 -1
- package/dist/chunk-L5UCO2UV.js.map +0 -1
- package/dist/chunk-MOF3XSUM.js.map +0 -1
- package/dist/chunk-N2BEUKXT.js.map +0 -1
- package/dist/chunk-OS3EQOIS.js.map +0 -1
- package/dist/chunk-OYJY4Y4A.js.map +0 -1
- package/dist/chunk-Q2ZJOECN.js.map +0 -1
- package/dist/chunk-QWCTYLMD.js.map +0 -1
- package/dist/chunk-RZV7SXED.js.map +0 -1
- package/dist/chunk-S3M5WCZW.js.map +0 -1
- package/dist/chunk-SOOWLNC5.js.map +0 -1
- package/dist/chunk-SWWYYGQO.js.map +0 -1
- package/dist/chunk-UO36FC3S.js.map +0 -1
- package/dist/chunk-UYSZKDQY.js.map +0 -1
- package/dist/chunk-VE3FKXJ7.js.map +0 -1
- package/dist/chunk-VVFWOBAM.js.map +0 -1
- package/dist/chunk-ZSERYHHT.js.map +0 -1
- package/dist/timeline-annotation-selection-2IA7T5VR.js.map +0 -1
- package/src/app/lib/keyboard-shortcuts.test.ts +0 -47
- package/src/app/lib/keyboard-shortcuts.tsx +0 -58
- /package/dist/app/{lib/keyboard-shortcuts.js.map → components/command-menu/keycaps.js.map} +0 -0
- /package/dist/{browser-viewer-ZRFZX3VN.js.map → app/components/credits/credit-refusal-notice.js.map} +0 -0
- /package/dist/{chat-interactive-block-HUMYWVCK.js.map → app/lib/actions/actions-provider.js.map} +0 -0
- /package/dist/{computer-viewer-D4NHQB5D.js.map → app/lib/credit-coverage.js.map} +0 -0
- /package/dist/{embedded-new-voice-X4ZW6SY4.js.map → browser-viewer-HPUMK7UP.js.map} +0 -0
- /package/dist/{embedded-voice-4OD6Z3HU.js.map → chat-interactive-block-22PPECCT.js.map} +0 -0
- /package/dist/{chunk-GVIQ7H62.js.map → chunk-2LUBBDZV.js.map} +0 -0
- /package/dist/{chunk-XMMVIY7B.js.map → chunk-3CCJWHQY.js.map} +0 -0
- /package/dist/{chunk-XS2FZ6DX.js.map → chunk-3F5ZPIWI.js.map} +0 -0
- /package/dist/{chunk-72US6QNB.js.map → chunk-3J2YZRY5.js.map} +0 -0
- /package/dist/{chunk-D4YQF4E3.js.map → chunk-3SMJ2BIQ.js.map} +0 -0
- /package/dist/{chunk-TBJINQXA.js.map → chunk-3WCYK36X.js.map} +0 -0
- /package/dist/{chunk-WPCF34V6.js.map → chunk-3WG3CRL7.js.map} +0 -0
- /package/dist/{chunk-JI5BYQKO.js.map → chunk-3X46PNBX.js.map} +0 -0
- /package/dist/{chunk-PBK44WJC.js.map → chunk-4GJ37O6G.js.map} +0 -0
- /package/dist/{chunk-LEXPBQ56.js.map → chunk-4SKJX3C4.js.map} +0 -0
- /package/dist/{chunk-ZA6YD2LW.js.map → chunk-57SYK776.js.map} +0 -0
- /package/dist/{chunk-22LBKJDE.js.map → chunk-5DIAN5GQ.js.map} +0 -0
- /package/dist/{chunk-LJ3TDK2L.js.map → chunk-5FA455GR.js.map} +0 -0
- /package/dist/{chunk-YPR5INHV.js.map → chunk-5X3E2Z3D.js.map} +0 -0
- /package/dist/{chunk-OXNWZTEU.js.map → chunk-5ZJCL6X4.js.map} +0 -0
- /package/dist/{chunk-62OAZ4LO.js.map → chunk-6C5GQQMC.js.map} +0 -0
- /package/dist/{chunk-VGITH57T.js.map → chunk-6ERTXDZM.js.map} +0 -0
- /package/dist/{chunk-ZQ7XQZCF.js.map → chunk-6FX73Y4I.js.map} +0 -0
- /package/dist/{chunk-QZO2KK2F.js.map → chunk-6P44NG6Y.js.map} +0 -0
- /package/dist/{chunk-N2DDJLTM.js.map → chunk-6T7Y33JA.js.map} +0 -0
- /package/dist/{chunk-RBAGC2MJ.js.map → chunk-75VE5QUS.js.map} +0 -0
- /package/dist/{chunk-MRXOGI3O.js.map → chunk-77CUDSHG.js.map} +0 -0
- /package/dist/{chunk-GZ65XQR5.js.map → chunk-7T7FHSGS.js.map} +0 -0
- /package/dist/{chunk-YGAH34CD.js.map → chunk-A3S26JSP.js.map} +0 -0
- /package/dist/{chunk-GYPAO6RS.js.map → chunk-A664GSDM.js.map} +0 -0
- /package/dist/{chunk-JSZSNMDR.js.map → chunk-ASUYLXKO.js.map} +0 -0
- /package/dist/{chunk-RTK7SUPL.js.map → chunk-AUUJLVA3.js.map} +0 -0
- /package/dist/{chunk-OOTBYSCA.js.map → chunk-BBWKPNJB.js.map} +0 -0
- /package/dist/{chunk-BGZIMIUU.js.map → chunk-BCUYWOQU.js.map} +0 -0
- /package/dist/{chunk-EKN4N4LS.js.map → chunk-BDFMNJZJ.js.map} +0 -0
- /package/dist/{chunk-YZKGOWCC.js.map → chunk-BIDXQAGO.js.map} +0 -0
- /package/dist/{chunk-Q2UUANHF.js.map → chunk-BIKAJ4DY.js.map} +0 -0
- /package/dist/{chunk-5IQBF2X3.js.map → chunk-BJPJ2OUX.js.map} +0 -0
- /package/dist/{chunk-EY2EMHZW.js.map → chunk-BPM2OTYK.js.map} +0 -0
- /package/dist/{chunk-MT4TBRQB.js.map → chunk-BSWS2RUZ.js.map} +0 -0
- /package/dist/{chunk-T7YD3VGK.js.map → chunk-C52MNKXU.js.map} +0 -0
- /package/dist/{chunk-THNW33K7.js.map → chunk-CEUDV4OA.js.map} +0 -0
- /package/dist/{chunk-LHGIS6SZ.js.map → chunk-CVK74BH7.js.map} +0 -0
- /package/dist/{chunk-DFO2UCYG.js.map → chunk-CW5I65ZX.js.map} +0 -0
- /package/dist/{chunk-SKRLKQEG.js.map → chunk-DOSC2HRQ.js.map} +0 -0
- /package/dist/{chunk-KVB6XDLP.js.map → chunk-DPJ2CWVN.js.map} +0 -0
- /package/dist/{chunk-4J6V4DH7.js.map → chunk-DXMRO2MU.js.map} +0 -0
- /package/dist/{chunk-42I4O4WQ.js.map → chunk-EE55IDDR.js.map} +0 -0
- /package/dist/{chunk-2RA6XABP.js.map → chunk-EEERTLFF.js.map} +0 -0
- /package/dist/{chunk-PTOTKUKO.js.map → chunk-EEO744XR.js.map} +0 -0
- /package/dist/{chunk-LD3HVI2J.js.map → chunk-EMFGBAQL.js.map} +0 -0
- /package/dist/{chunk-FQGUK4ST.js.map → chunk-ENPJKVMN.js.map} +0 -0
- /package/dist/{chunk-HDHK3SXK.js.map → chunk-EU6RLHMP.js.map} +0 -0
- /package/dist/{chunk-MRUWRQBX.js.map → chunk-FET6XHGS.js.map} +0 -0
- /package/dist/{chunk-M6KUY3YH.js.map → chunk-FIICQA55.js.map} +0 -0
- /package/dist/{chunk-NLWLCYCT.js.map → chunk-FTZXCPE3.js.map} +0 -0
- /package/dist/{chunk-FN2KA3MJ.js.map → chunk-FUS76DO4.js.map} +0 -0
- /package/dist/{chunk-AM4IIPWI.js.map → chunk-G7N5NPRJ.js.map} +0 -0
- /package/dist/{chunk-CCQ7YKOD.js.map → chunk-GBYZ6653.js.map} +0 -0
- /package/dist/{chunk-YKKVIJVX.js.map → chunk-GQDSC6QZ.js.map} +0 -0
- /package/dist/{chunk-5X6JP75Q.js.map → chunk-GRSODLVO.js.map} +0 -0
- /package/dist/{chunk-73YP3R5X.js.map → chunk-GSESCQFY.js.map} +0 -0
- /package/dist/{chunk-MZLEBFUZ.js.map → chunk-GZD6VBIK.js.map} +0 -0
- /package/dist/{chunk-IZR2QRFF.js.map → chunk-H3HH5AHS.js.map} +0 -0
- /package/dist/{chunk-OJPUVUB6.js.map → chunk-HAOZCLLA.js.map} +0 -0
- /package/dist/{chunk-ZBHDGAYL.js.map → chunk-HEFE4OZJ.js.map} +0 -0
- /package/dist/{chunk-WTG34JVA.js.map → chunk-HI75UTI6.js.map} +0 -0
- /package/dist/{chunk-OMBIG3NC.js.map → chunk-HM633ROV.js.map} +0 -0
- /package/dist/{chunk-WDFZWSKD.js.map → chunk-HRIP4M6H.js.map} +0 -0
- /package/dist/{chunk-A2BCW6CQ.js.map → chunk-HU2DRFFI.js.map} +0 -0
- /package/dist/{chunk-PO35PBAB.js.map → chunk-HVH7FFJH.js.map} +0 -0
- /package/dist/{chunk-EG7KNUF7.js.map → chunk-HYTXTKST.js.map} +0 -0
- /package/dist/{chunk-TFHG75A4.js.map → chunk-I4XMDFUJ.js.map} +0 -0
- /package/dist/{chunk-IZHVZZQA.js.map → chunk-ICAUYWSL.js.map} +0 -0
- /package/dist/{chunk-DCLPWYP3.js.map → chunk-IEVPJ3G6.js.map} +0 -0
- /package/dist/{chunk-EVWZHDSF.js.map → chunk-IKH3VTA4.js.map} +0 -0
- /package/dist/{chunk-TYHLEFD2.js.map → chunk-IZJNMRIR.js.map} +0 -0
- /package/dist/{chunk-D2SR3TEB.js.map → chunk-J243WGUA.js.map} +0 -0
- /package/dist/{chunk-QGSGIYE3.js.map → chunk-J2C6LB6W.js.map} +0 -0
- /package/dist/{chunk-MT6TRTXF.js.map → chunk-J5MEDX7C.js.map} +0 -0
- /package/dist/{chunk-6QHUKBJP.js.map → chunk-J7SKOO44.js.map} +0 -0
- /package/dist/{chunk-W2QK7PYS.js.map → chunk-JAAST75A.js.map} +0 -0
- /package/dist/{chunk-NQCMS4AJ.js.map → chunk-JQCGPTZ6.js.map} +0 -0
- /package/dist/{chunk-CMUXJHGH.js.map → chunk-JRSCWQMC.js.map} +0 -0
- /package/dist/{chunk-Q4OHNGGB.js.map → chunk-JRXHSVD5.js.map} +0 -0
- /package/dist/{chunk-SD2K5ZN5.js.map → chunk-JXYLDT6X.js.map} +0 -0
- /package/dist/{chunk-IXX6ZOL2.js.map → chunk-KGTMHEAP.js.map} +0 -0
- /package/dist/{chunk-22OBGVEJ.js.map → chunk-KOXVGPW4.js.map} +0 -0
- /package/dist/{chunk-NOZ5CGZE.js.map → chunk-L5GPPMUB.js.map} +0 -0
- /package/dist/{chunk-4FOOHMTU.js.map → chunk-LY6727IF.js.map} +0 -0
- /package/dist/{chunk-PT7MTXRE.js.map → chunk-MAOCN7J6.js.map} +0 -0
- /package/dist/{chunk-4K2JSJNX.js.map → chunk-MB5LZVDO.js.map} +0 -0
- /package/dist/{chunk-5LES64PP.js.map → chunk-MKOQAVOE.js.map} +0 -0
- /package/dist/{chunk-BMV2SNYX.js.map → chunk-MUPWNSEJ.js.map} +0 -0
- /package/dist/{chunk-Y5TRG22C.js.map → chunk-NRXIECWC.js.map} +0 -0
- /package/dist/{chunk-GOE7G5JX.js.map → chunk-NWSAF6P5.js.map} +0 -0
- /package/dist/{chunk-DUM363VS.js.map → chunk-OFZQJNF6.js.map} +0 -0
- /package/dist/{chunk-CKN5QPEL.js.map → chunk-OMF7POEY.js.map} +0 -0
- /package/dist/{chunk-MVXKO2BD.js.map → chunk-OXD6ET34.js.map} +0 -0
- /package/dist/{chunk-47JUEVME.js.map → chunk-PALX6HWV.js.map} +0 -0
- /package/dist/{chunk-B6OGSG7I.js.map → chunk-PE3BLBDT.js.map} +0 -0
- /package/dist/{chunk-RVISSNVE.js.map → chunk-PMZKJOG6.js.map} +0 -0
- /package/dist/{chunk-CESAMXWX.js.map → chunk-PQUTMG3S.js.map} +0 -0
- /package/dist/{chunk-7VFCOKPG.js.map → chunk-PWBGODZU.js.map} +0 -0
- /package/dist/{chunk-MOPAXD2H.js.map → chunk-QCADUTYX.js.map} +0 -0
- /package/dist/{chunk-CT5FBO7E.js.map → chunk-RPOUJI25.js.map} +0 -0
- /package/dist/{chunk-WKHYOS72.js.map → chunk-RW4GFE56.js.map} +0 -0
- /package/dist/{chunk-FH4GO7HO.js.map → chunk-RYLVVDR7.js.map} +0 -0
- /package/dist/{chunk-QZRDCFHI.js.map → chunk-S66SBBFQ.js.map} +0 -0
- /package/dist/{chunk-CQJFIPAH.js.map → chunk-S7TNV2I7.js.map} +0 -0
- /package/dist/{chunk-ZBQSIGGR.js.map → chunk-SC773IMJ.js.map} +0 -0
- /package/dist/{chunk-FBJ2HK7A.js.map → chunk-SGPJ3YS2.js.map} +0 -0
- /package/dist/{chunk-A2EWJQXX.js.map → chunk-SM5QX6UK.js.map} +0 -0
- /package/dist/{chunk-RKZWCTXV.js.map → chunk-TAEKDMEF.js.map} +0 -0
- /package/dist/{chunk-6AVCAUGL.js.map → chunk-TASEV25T.js.map} +0 -0
- /package/dist/{chunk-3XOISKZC.js.map → chunk-TLGDPMUX.js.map} +0 -0
- /package/dist/{chunk-5IUW34PG.js.map → chunk-TY3QYPJ6.js.map} +0 -0
- /package/dist/{chunk-VQFR4EU4.js.map → chunk-U3JK5VJV.js.map} +0 -0
- /package/dist/{chunk-2AWMJO54.js.map → chunk-U42P3RMZ.js.map} +0 -0
- /package/dist/{chunk-GUU75DES.js.map → chunk-UEJTOPLW.js.map} +0 -0
- /package/dist/{chunk-OZOEWLGR.js.map → chunk-UT6JAORE.js.map} +0 -0
- /package/dist/{chunk-5TELOQA6.js.map → chunk-UTHPUINA.js.map} +0 -0
- /package/dist/{chunk-26RQ6JBR.js.map → chunk-VBVCNH6D.js.map} +0 -0
- /package/dist/{chunk-P646DND6.js.map → chunk-VCMQPCME.js.map} +0 -0
- /package/dist/{chunk-LV7FMIMM.js.map → chunk-VGUHAHHV.js.map} +0 -0
- /package/dist/{chunk-GYVXARCY.js.map → chunk-VIBPFVU4.js.map} +0 -0
- /package/dist/{chunk-KHPOKZ6Z.js.map → chunk-VMAC66JX.js.map} +0 -0
- /package/dist/{chunk-SHKRS6I5.js.map → chunk-VRPNETPK.js.map} +0 -0
- /package/dist/{chunk-6U4J6RVS.js.map → chunk-WCHW4XN7.js.map} +0 -0
- /package/dist/{chunk-CJH6QUQJ.js.map → chunk-WD3UXNJV.js.map} +0 -0
- /package/dist/{chunk-H5EVWF6L.js.map → chunk-WR67FJMX.js.map} +0 -0
- /package/dist/{chunk-XLIJ36RG.js.map → chunk-WRMQ7EX4.js.map} +0 -0
- /package/dist/{chunk-7KLCFJ5G.js.map → chunk-X4PPGXQG.js.map} +0 -0
- /package/dist/{chunk-ZE2JTVCQ.js.map → chunk-X5BMQXFD.js.map} +0 -0
- /package/dist/{chunk-UECU6LZI.js.map → chunk-XXRBOSWV.js.map} +0 -0
- /package/dist/{chunk-SPKAIDWX.js.map → chunk-XZEFCPBL.js.map} +0 -0
- /package/dist/{chunk-EZ5NYRHK.js.map → chunk-YL6N7QLA.js.map} +0 -0
- /package/dist/{chunk-VAIESMPY.js.map → chunk-YVBHGMKC.js.map} +0 -0
- /package/dist/{chunk-AR62NQXE.js.map → chunk-Z2S5VQG7.js.map} +0 -0
- /package/dist/{chunk-7UQJEADK.js.map → chunk-ZL2O4BYP.js.map} +0 -0
- /package/dist/{chunk-FOOITLHR.js.map → chunk-ZZHBT5WQ.js.map} +0 -0
- /package/dist/{chunk-X6VJQJYY.js.map → chunk-ZZWHKC6A.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-XOPYY6YA.js.map → computer-viewer-S6TE6TN7.js.map} +0 -0
- /package/dist/{sandbox-files-LJCR437H.js.map → embedded-new-voice-ZDZPGX25.js.map} +0 -0
- /package/dist/{session-realtime-UISLBZ4A.js.map → embedded-voice-FKCUXSJO.js.map} +0 -0
- /package/dist/{fleet-decision-row-5UCJXTDP.js.map → fleet-decision-row-VCGWYJAV.js.map} +0 -0
- /package/dist/{latest-question-VGVNUGAU.js.map → latest-question-SINEV4U6.js.map} +0 -0
- /package/dist/{platform-activity-row-56XOVTRA.js.map → platform-activity-row-LU5WABI2.js.map} +0 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { expect, test } from "bun:test";
|
|
2
|
+
import type { BillingSummary } from "../types";
|
|
3
|
+
import { creditBalanceSplit, creditBalanceSplitLabel, modelListSummary } from "./credit-coverage";
|
|
4
|
+
|
|
5
|
+
function balance(overrides: Partial<BillingSummary["balance"]>): BillingSummary["balance"] {
|
|
6
|
+
return {
|
|
7
|
+
accountId: "00000000-0000-4000-8000-000000000001",
|
|
8
|
+
balanceMicros: 0,
|
|
9
|
+
currency: "usd",
|
|
10
|
+
updatedAt: "2026-10-18T12:00:00Z",
|
|
11
|
+
...overrides,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
test("model lists stay short and name the rest by count", () => {
|
|
16
|
+
expect(modelListSummary([])).toBe("");
|
|
17
|
+
expect(modelListSummary(["GPT-6 Sol"])).toBe("GPT-6 Sol");
|
|
18
|
+
expect(modelListSummary(["GPT-6 Sol", "GPT-6 Luna"])).toBe("GPT-6 Sol and GPT-6 Luna");
|
|
19
|
+
expect(modelListSummary(["A", "B", "C"])).toBe("A, B and C");
|
|
20
|
+
expect(modelListSummary(["A", "B", "C", "D", "E"])).toBe("A, B and 3 more");
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
test("a drained general balance beside scoped credit is not shown as one total", () => {
|
|
24
|
+
// The incident shape: general credit spent, $110 left only for some models.
|
|
25
|
+
const drained = balance({
|
|
26
|
+
balanceMicros: 110_000_000,
|
|
27
|
+
generalBalanceMicros: 0,
|
|
28
|
+
promotionalCredits: [
|
|
29
|
+
{
|
|
30
|
+
grantId: "00000000-0000-4000-8000-000000000002",
|
|
31
|
+
label: "Signup trial",
|
|
32
|
+
remainingMicros: 10_000_000,
|
|
33
|
+
eligibleModelIds: ["gpt-6-luna"],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
grantId: "00000000-0000-4000-8000-000000000003",
|
|
37
|
+
label: "Credit gift",
|
|
38
|
+
remainingMicros: 100_000_000,
|
|
39
|
+
eligibleModelIds: ["gpt-6-luna", "gpt-6-sol"],
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
});
|
|
43
|
+
expect(creditBalanceSplit(drained)).toEqual({ generalMicros: 0, scopedMicros: 110_000_000 });
|
|
44
|
+
expect(creditBalanceSplitLabel(drained)).toBe(
|
|
45
|
+
"$0.00 for any model · $110.00 for selected models",
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
test("negative general balances read as none for any model", () => {
|
|
50
|
+
const owed = balance({
|
|
51
|
+
balanceMicros: 5_000_000,
|
|
52
|
+
generalBalanceMicros: -5_000_000,
|
|
53
|
+
promotionalCredits: [
|
|
54
|
+
{
|
|
55
|
+
grantId: "00000000-0000-4000-8000-000000000002",
|
|
56
|
+
label: "Coupon",
|
|
57
|
+
remainingMicros: 10_000_000,
|
|
58
|
+
eligibleModelIds: ["gpt-6-luna"],
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
});
|
|
62
|
+
expect(creditBalanceSplit(owed)).toEqual({ generalMicros: 0, scopedMicros: 10_000_000 });
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
test("balances without remaining scoped credit keep their single total", () => {
|
|
66
|
+
expect(creditBalanceSplitLabel(balance({ balanceMicros: 12_400_000 }))).toBeNull();
|
|
67
|
+
expect(
|
|
68
|
+
creditBalanceSplitLabel(
|
|
69
|
+
balance({
|
|
70
|
+
balanceMicros: 12_400_000,
|
|
71
|
+
generalBalanceMicros: 12_400_000,
|
|
72
|
+
promotionalCredits: [
|
|
73
|
+
{
|
|
74
|
+
grantId: "00000000-0000-4000-8000-000000000002",
|
|
75
|
+
label: "Spent coupon",
|
|
76
|
+
remainingMicros: 0,
|
|
77
|
+
eligibleModelIds: ["gpt-6-luna"],
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
}),
|
|
81
|
+
),
|
|
82
|
+
).toBeNull();
|
|
83
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { modelDisplayName } from "@opengeni/sdk/model-display";
|
|
2
|
+
import { formatMoneyMicros } from "./format";
|
|
3
|
+
import type { BillingSummary } from "../types";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Short, readable list of models: "GPT-6 Sol, GPT-6 Luna and 3 more". Labels
|
|
7
|
+
* come from the caller (catalog rows) or the shared display-name table.
|
|
8
|
+
*/
|
|
9
|
+
export function modelListSummary(
|
|
10
|
+
labels: readonly string[],
|
|
11
|
+
{ limit = 2 }: { limit?: number } = {},
|
|
12
|
+
): string {
|
|
13
|
+
if (labels.length === 0) return "";
|
|
14
|
+
if (labels.length <= limit + 1) {
|
|
15
|
+
if (labels.length === 1) return labels[0]!;
|
|
16
|
+
return `${labels.slice(0, -1).join(", ")} and ${labels.at(-1)!}`;
|
|
17
|
+
}
|
|
18
|
+
return `${labels.slice(0, limit).join(", ")} and ${labels.length - limit} more`;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** The models a scoped credit grant pays for, by display name. */
|
|
22
|
+
export function coveredModelsSummary(eligibleModelIds: readonly string[]): string {
|
|
23
|
+
return modelListSummary(eligibleModelIds.map((id) => modelDisplayName(id)));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Splits a balance into credit any credits-billed model can spend and credit
|
|
28
|
+
* only some models can spend. The total alone overstates what an uncovered
|
|
29
|
+
* model can use, so compact rows show both parts. Null without scoped credit.
|
|
30
|
+
*/
|
|
31
|
+
export function creditBalanceSplit(
|
|
32
|
+
balance: BillingSummary["balance"],
|
|
33
|
+
): { generalMicros: number; scopedMicros: number } | null {
|
|
34
|
+
const scopedMicros = (balance.promotionalCredits ?? []).reduce(
|
|
35
|
+
(total, grant) => total + Math.max(0, grant.remainingMicros),
|
|
36
|
+
0,
|
|
37
|
+
);
|
|
38
|
+
if (scopedMicros <= 0) return null;
|
|
39
|
+
const general = balance.generalBalanceMicros ?? balance.balanceMicros - scopedMicros;
|
|
40
|
+
return { generalMicros: Math.max(0, general), scopedMicros };
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** "$0.00 for any model · $100.00 for selected models", or null without scoped credit. */
|
|
44
|
+
export function creditBalanceSplitLabel(balance: BillingSummary["balance"]): string | null {
|
|
45
|
+
const split = creditBalanceSplit(balance);
|
|
46
|
+
if (!split) return null;
|
|
47
|
+
return `${formatMoneyMicros(split.generalMicros, balance.currency)} for any model · ${formatMoneyMicros(split.scopedMicros, balance.currency)} for selected models`;
|
|
48
|
+
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { expect, test } from "bun:test";
|
|
2
2
|
import type { PickerModelRow } from "./model-policy";
|
|
3
3
|
import { failedSessionCopy } from "./failed-session-copy";
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
coveredModelChoice,
|
|
6
|
+
creditRefusalGap,
|
|
7
|
+
freeCreditGap,
|
|
8
|
+
freeCreditGapReason,
|
|
9
|
+
} from "./free-credit-gap";
|
|
5
10
|
|
|
6
11
|
type Funding = "promotional" | "general" | "unavailable" | undefined;
|
|
7
12
|
function row(id: string, label: string, creditFunding: Funding, selectable = true) {
|
|
@@ -113,3 +118,29 @@ test("the one-click switch keeps the composer policy sendable", () => {
|
|
|
113
118
|
});
|
|
114
119
|
expect(coveredModelChoice({ ...sol, selectable: false }, "high", "standard")).toBeNull();
|
|
115
120
|
});
|
|
121
|
+
|
|
122
|
+
test("a credit refusal names its model even while the catalog still says it is funded", () => {
|
|
123
|
+
// The catalog was read before general credit ran out: Argon still reads "general".
|
|
124
|
+
const stale = [row("vertex-gateway/gemini-4-argon", "Gemini 4 Argon", "general"), ...rows];
|
|
125
|
+
expect(freeCreditGap(stale, "vertex-gateway/gemini-4-argon")).toBeNull();
|
|
126
|
+
expect(
|
|
127
|
+
creditRefusalGap(stale, "vertex-gateway/gemini-4-argon", {
|
|
128
|
+
selectedModel: "vertex-gateway/gemini-4-argon",
|
|
129
|
+
preferredModel: "azure-sol/gpt-6.1-sol",
|
|
130
|
+
}),
|
|
131
|
+
).toEqual({
|
|
132
|
+
modelLabel: "Gemini 4 Argon",
|
|
133
|
+
covered: [
|
|
134
|
+
{ id: "azure-sol/gpt-6.1-sol", label: "GPT-6.1 Sol" },
|
|
135
|
+
{ id: "gpt-6-luna", label: "GPT-6 Luna" },
|
|
136
|
+
],
|
|
137
|
+
selectionUsable: false,
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
test("a credit refusal without covered models still names the model", () => {
|
|
142
|
+
const gap = creditRefusalGap([rows[0]!, rows[5]!], "claude-opus", { selectedModel: "connected" });
|
|
143
|
+
expect(gap).toEqual({ modelLabel: "Claude Opus 5.5", covered: [], selectionUsable: true });
|
|
144
|
+
// A model missing from the catalog falls back to its display name.
|
|
145
|
+
expect(creditRefusalGap([], "gpt-6-sol").modelLabel).toBe("GPT-6 Sol");
|
|
146
|
+
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LatencyMode, ReasoningEffort } from "@opengeni/sdk";
|
|
2
|
+
import { modelDisplayName } from "@opengeni/sdk/model-display";
|
|
2
3
|
import {
|
|
3
4
|
coerceReasoningEffortForModel,
|
|
4
5
|
findPickerRow,
|
|
@@ -33,17 +34,46 @@ export function freeCreditGap(
|
|
|
33
34
|
): FreeCreditGap | null {
|
|
34
35
|
const current = findPickerRow(rows, model);
|
|
35
36
|
if (current?.catalog.creditFunding !== "unavailable") return null;
|
|
37
|
+
const gap = creditCoverageGap(rows, model, current.label, options);
|
|
38
|
+
return gap.covered.length > 0 ? gap : null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The API refused a Send or a new chat because no credit pays for its model.
|
|
43
|
+
* The refusal is authoritative even while the catalog still reports older
|
|
44
|
+
* funding, so the gap is named whether or not other models are covered.
|
|
45
|
+
*/
|
|
46
|
+
export function creditRefusalGap(
|
|
47
|
+
rows: PickerModelRow[],
|
|
48
|
+
model: string,
|
|
49
|
+
options: {
|
|
50
|
+
selectedModel?: string | null | undefined;
|
|
51
|
+
preferredModel?: string | null | undefined;
|
|
52
|
+
} = {},
|
|
53
|
+
): FreeCreditGap {
|
|
54
|
+
const label = findPickerRow(rows, model)?.label ?? modelDisplayName(model);
|
|
55
|
+
return creditCoverageGap(rows, model, label, options);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function creditCoverageGap(
|
|
59
|
+
rows: PickerModelRow[],
|
|
60
|
+
model: string,
|
|
61
|
+
modelLabel: string,
|
|
62
|
+
options: {
|
|
63
|
+
selectedModel?: string | null | undefined;
|
|
64
|
+
preferredModel?: string | null | undefined;
|
|
65
|
+
},
|
|
66
|
+
): FreeCreditGap {
|
|
36
67
|
const covered = rows.filter(
|
|
37
68
|
(row) => row.id !== model && row.selectable && row.catalog.creditFunding === "promotional",
|
|
38
69
|
);
|
|
39
|
-
if (covered.length === 0) return null;
|
|
40
70
|
const { selectedModel, preferredModel } = options;
|
|
41
71
|
const preferred = preferredModel ? covered.findIndex((row) => row.id === preferredModel) : -1;
|
|
42
72
|
if (preferred > 0) covered.unshift(...covered.splice(preferred, 1));
|
|
43
73
|
const selected =
|
|
44
74
|
selectedModel && selectedModel !== model ? findPickerRow(rows, selectedModel) : null;
|
|
45
75
|
return {
|
|
46
|
-
modelLabel
|
|
76
|
+
modelLabel,
|
|
47
77
|
covered: covered.map((row) => ({ id: row.id, label: row.label })),
|
|
48
78
|
selectionUsable: Boolean(
|
|
49
79
|
selected?.selectable && selected.catalog.creditFunding !== "unavailable",
|
|
@@ -62,6 +62,7 @@ describe("integration classes", () => {
|
|
|
62
62
|
expect(integrationClassFromConnectProvider("openapi")).toBe("other");
|
|
63
63
|
expect(modelConnectionClass("ai-gateway")).toBe("vercel_gateway");
|
|
64
64
|
expect(modelConnectionClass("claude_subscription")).toBe("claude_subscription");
|
|
65
|
+
expect(modelConnectionClass("azure_openai")).toBe("azure_openai");
|
|
65
66
|
expect(modelConnectionClass("unknown")).toBeNull();
|
|
66
67
|
});
|
|
67
68
|
|
|
@@ -58,6 +58,8 @@ export const MODEL_CONNECTION_CLASSES = [
|
|
|
58
58
|
"claude_subscription",
|
|
59
59
|
"opper",
|
|
60
60
|
"elevenlabs",
|
|
61
|
+
"openai",
|
|
62
|
+
"azure_openai",
|
|
61
63
|
] as const satisfies readonly ModelClass[];
|
|
62
64
|
|
|
63
65
|
export type IntegrationClass = ConnectionClass | ModelClass;
|
|
@@ -145,6 +147,8 @@ export function modelConnectionClass(provider: string): ModelClass | null {
|
|
|
145
147
|
case "supergrok":
|
|
146
148
|
case "openrouter":
|
|
147
149
|
case "opper":
|
|
150
|
+
case "openai":
|
|
151
|
+
case "azure_openai":
|
|
148
152
|
case "anthropic":
|
|
149
153
|
case "claude_subscription":
|
|
150
154
|
case "elevenlabs":
|
|
@@ -52,6 +52,24 @@ describe("Models URLs", () => {
|
|
|
52
52
|
expect(connectStepOf("connect")).toBeNull();
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
+
test("Azure OpenAI is addressed for the organization only", () => {
|
|
56
|
+
// A workspace's own Azure key is a direct connection, not a Models account.
|
|
57
|
+
expect(parseModelsAccount("org:gateway:azure_openai")).toBe("org:gateway:azure_openai");
|
|
58
|
+
expect(parseModelsAccount("gateway:azure_openai")).toBeUndefined();
|
|
59
|
+
expect(accountKeyOf("org:gateway:azure_openai")).toEqual({
|
|
60
|
+
provider: "gateway",
|
|
61
|
+
id: "azure_openai",
|
|
62
|
+
organization: true,
|
|
63
|
+
});
|
|
64
|
+
expect(accountKeyOf("gateway:azure_openai")).toBeNull();
|
|
65
|
+
expect(parseModelsView("connect-org:azure_openai")).toBe("connect-org:azure_openai");
|
|
66
|
+
expect(parseModelsView("connect:azure_openai")).toBeUndefined();
|
|
67
|
+
expect(connectStepOf("connect-org:azure_openai")).toEqual({
|
|
68
|
+
provider: "azure_openai",
|
|
69
|
+
organization: true,
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
|
|
55
73
|
test("a workspace's old Models URL opens its page in Organization settings > Models", () => {
|
|
56
74
|
expect(
|
|
57
75
|
workspaceModelsRedirect({ workspaceId: "ws-1", account: undefined, view: undefined }),
|
|
@@ -23,6 +23,8 @@ export type ModelsProvider =
|
|
|
23
23
|
| "vercel"
|
|
24
24
|
| "openrouter"
|
|
25
25
|
| "opper"
|
|
26
|
+
| "openai"
|
|
27
|
+
| "azure_openai"
|
|
26
28
|
| "anthropic"
|
|
27
29
|
| "claude_subscription";
|
|
28
30
|
|
|
@@ -46,11 +48,19 @@ const PROVIDERS: readonly ModelsProvider[] = [
|
|
|
46
48
|
"claude_subscription",
|
|
47
49
|
];
|
|
48
50
|
|
|
51
|
+
/**
|
|
52
|
+
* Connected for the organization only: a workspace's own OpenAI or Azure key is
|
|
53
|
+
* a direct connection with its own section.
|
|
54
|
+
*/
|
|
55
|
+
const ORGANIZATION_ONLY_PROVIDERS: readonly ModelsProvider[] = ["openai", "azure_openai"];
|
|
56
|
+
|
|
49
57
|
const VIEWS: ReadonlySet<string> = new Set<ModelsView>([
|
|
50
58
|
"connect",
|
|
51
59
|
"connect-workspace",
|
|
52
60
|
...PROVIDERS.map((provider) => `connect:${provider}` as const),
|
|
53
|
-
...PROVIDERS.map(
|
|
61
|
+
...[...PROVIDERS, ...ORGANIZATION_ONLY_PROVIDERS].map(
|
|
62
|
+
(provider) => `connect-org:${provider}` as const,
|
|
63
|
+
),
|
|
54
64
|
"allowed-models",
|
|
55
65
|
"compaction",
|
|
56
66
|
"account-rule-locks",
|
|
@@ -62,13 +72,24 @@ export function parseModelsView(value: unknown): ModelsView | undefined {
|
|
|
62
72
|
}
|
|
63
73
|
|
|
64
74
|
const ACCOUNT_KEY =
|
|
65
|
-
/^(org:)?((codex|supergrok|claude):[\w-]{1,128}|gateway:(vercel|openrouter|opper|anthropic|claude_subscription))$/;
|
|
75
|
+
/^((org:)?((codex|supergrok|claude):[\w-]{1,128}|gateway:(vercel|openrouter|opper|anthropic|claude_subscription))|org:gateway:(openai|azure_openai))$/;
|
|
66
76
|
|
|
67
77
|
export function parseModelsAccount(value: unknown): string | undefined {
|
|
68
78
|
return typeof value === "string" && ACCOUNT_KEY.test(value) ? value : undefined;
|
|
69
79
|
}
|
|
70
80
|
|
|
71
|
-
export type GatewayId =
|
|
81
|
+
export type GatewayId =
|
|
82
|
+
| "vercel"
|
|
83
|
+
| "openrouter"
|
|
84
|
+
| "opper"
|
|
85
|
+
| "anthropic"
|
|
86
|
+
| "claude_subscription"
|
|
87
|
+
/** Organization only; workspace pages never address these. */
|
|
88
|
+
| "openai"
|
|
89
|
+
| "azure_openai";
|
|
90
|
+
|
|
91
|
+
/** The API-key providers a workspace can hold as its own. */
|
|
92
|
+
export type WorkspaceGatewayId = Exclude<GatewayId, "openai" | "azure_openai">;
|
|
72
93
|
|
|
73
94
|
export type AccountKey = (
|
|
74
95
|
| { provider: "codex" | "supergrok" | "claude"; id: string }
|
|
@@ -92,7 +113,8 @@ export function accountKeyOf(value: string | undefined): AccountKey | null {
|
|
|
92
113
|
id === "openrouter" ||
|
|
93
114
|
id === "opper" ||
|
|
94
115
|
id === "anthropic" ||
|
|
95
|
-
id === "claude_subscription"
|
|
116
|
+
id === "claude_subscription" ||
|
|
117
|
+
((id === "openai" || id === "azure_openai") && organization))
|
|
96
118
|
) {
|
|
97
119
|
return { provider, id, organization };
|
|
98
120
|
}
|
|
@@ -39,10 +39,15 @@ export function requestSessionSearch(
|
|
|
39
39
|
target: EventTarget,
|
|
40
40
|
workspaceId: string,
|
|
41
41
|
returnFocus?: HTMLElement,
|
|
42
|
+
query?: string,
|
|
42
43
|
): void {
|
|
43
44
|
target.dispatchEvent(
|
|
44
45
|
new CustomEvent(OPEN_SESSION_SEARCH_EVENT, {
|
|
45
|
-
detail: {
|
|
46
|
+
detail: {
|
|
47
|
+
workspaceId,
|
|
48
|
+
...(returnFocus ? { returnFocus } : {}),
|
|
49
|
+
...(query?.trim() ? { query: query.trim() } : {}),
|
|
50
|
+
},
|
|
46
51
|
}),
|
|
47
52
|
);
|
|
48
53
|
}
|
|
@@ -14,8 +14,11 @@ export type SessionUiFeatures = Readonly<{
|
|
|
14
14
|
dock: boolean;
|
|
15
15
|
/** The workspace-admin access indicator and grant dialog in the header. */
|
|
16
16
|
adminAccess: boolean;
|
|
17
|
-
/**
|
|
18
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Page-wide keyboard shortcuts and the ⌘K command menu (⌘/Ctrl+⇧O for a new
|
|
19
|
+
* chat, ⌘/Ctrl+K, next and previous chat, the shortcut sheet).
|
|
20
|
+
*/
|
|
21
|
+
keyboardShortcuts: boolean;
|
|
19
22
|
/** The Opengeni logo and wordmark at the top of the chat list. */
|
|
20
23
|
brand: boolean;
|
|
21
24
|
}>;
|
|
@@ -24,16 +27,16 @@ export type SessionUiPreset = "app" | "companion" | "embed";
|
|
|
24
27
|
|
|
25
28
|
export const SESSION_UI_PRESETS: Readonly<Record<SessionUiPreset, SessionUiFeatures>> = {
|
|
26
29
|
/** The web app and the desktop app. */
|
|
27
|
-
app: { chatList: true, dock: true, adminAccess: true,
|
|
30
|
+
app: { chatList: true, dock: true, adminAccess: true, keyboardShortcuts: true, brand: true },
|
|
28
31
|
/**
|
|
29
32
|
* First-party side panes (the Excel add-in): everything but admin access and
|
|
30
|
-
*
|
|
33
|
+
* page-wide keyboard shortcuts.
|
|
31
34
|
*/
|
|
32
35
|
companion: {
|
|
33
36
|
chatList: true,
|
|
34
37
|
dock: true,
|
|
35
38
|
adminAccess: false,
|
|
36
|
-
|
|
39
|
+
keyboardShortcuts: false,
|
|
37
40
|
brand: true,
|
|
38
41
|
},
|
|
39
42
|
/**
|
|
@@ -41,23 +44,39 @@ export const SESSION_UI_PRESETS: Readonly<Record<SessionUiPreset, SessionUiFeatu
|
|
|
41
44
|
* without Opengeni's brand, the session panel, admin access or page-wide
|
|
42
45
|
* shortcuts until the host turns them on.
|
|
43
46
|
*/
|
|
44
|
-
embed: {
|
|
47
|
+
embed: {
|
|
48
|
+
chatList: true,
|
|
49
|
+
dock: false,
|
|
50
|
+
adminAccess: false,
|
|
51
|
+
keyboardShortcuts: false,
|
|
52
|
+
brand: false,
|
|
53
|
+
},
|
|
45
54
|
};
|
|
46
55
|
|
|
47
56
|
const SessionUiFeaturesContext = createContext<SessionUiFeatures>(SESSION_UI_PRESETS.app);
|
|
48
57
|
|
|
58
|
+
/** Feature switches a host may pass, including names from earlier releases. */
|
|
59
|
+
export type SessionUiFeatureOverrides = Partial<SessionUiFeatures> & {
|
|
60
|
+
/** @deprecated Use `keyboardShortcuts`. */
|
|
61
|
+
newChatShortcut?: boolean | undefined;
|
|
62
|
+
};
|
|
63
|
+
|
|
49
64
|
export function SessionUiFeaturesProvider(props: {
|
|
50
65
|
preset?: SessionUiPreset | undefined;
|
|
51
|
-
features?:
|
|
66
|
+
features?: SessionUiFeatureOverrides | undefined;
|
|
52
67
|
children?: ReactNode;
|
|
53
68
|
}) {
|
|
54
69
|
const preset = props.preset ?? "app";
|
|
55
|
-
const
|
|
70
|
+
const { newChatShortcut, ...current } = props.features ?? {};
|
|
71
|
+
const overrides: Partial<SessionUiFeatures> =
|
|
72
|
+
newChatShortcut === undefined || current.keyboardShortcuts !== undefined
|
|
73
|
+
? current
|
|
74
|
+
: { ...current, keyboardShortcuts: newChatShortcut };
|
|
56
75
|
const value = useMemo(
|
|
57
76
|
() => ({ ...SESSION_UI_PRESETS[preset], ...overrides }),
|
|
58
77
|
// Hosts often pass an inline object; compare by content.
|
|
59
78
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
60
|
-
[preset, JSON.stringify(overrides
|
|
79
|
+
[preset, JSON.stringify(overrides)],
|
|
61
80
|
);
|
|
62
81
|
return (
|
|
63
82
|
<SessionUiFeaturesContext.Provider value={value}>
|
|
@@ -29,7 +29,8 @@ import {
|
|
|
29
29
|
} from "../lib/failed-session-retry";
|
|
30
30
|
import { useSessionStartupTimeline } from "../lib/session-startup-timeline";
|
|
31
31
|
import { failedSessionCopy } from "../lib/failed-session-copy";
|
|
32
|
-
import { coveredModelChoice, freeCreditGap } from "../lib/free-credit-gap";
|
|
32
|
+
import { coveredModelChoice, creditRefusalGap, freeCreditGap } from "../lib/free-credit-gap";
|
|
33
|
+
import { isPaymentRequiredError } from "../lib/model-access";
|
|
33
34
|
import { timelineShowsFailure } from "../lib/timeline-failure-owner";
|
|
34
35
|
import { sessionDisplayTitle } from "../lib/session-rename";
|
|
35
36
|
import { useStreamHealthTelemetry } from "../lib/stream-health";
|
|
@@ -130,7 +131,7 @@ import {
|
|
|
130
131
|
import { toast } from "../lib/toast";
|
|
131
132
|
|
|
132
133
|
import { isApiErrorStatus, useAppApi } from "../lib/app-api";
|
|
133
|
-
import { userErrorText } from "../../ui/api-error";
|
|
134
|
+
import { apiErrorFacts, userErrorText } from "../../ui/api-error";
|
|
134
135
|
import { ConsoleComposer } from "../components/Composer";
|
|
135
136
|
import { CONSOLE_TIMELINE_ALLOWANCE_LABELS } from "../lib/allowance-labels";
|
|
136
137
|
import { WorkspaceComposerPlus as ComposerMobilePlus } from "../components/workspace-composer-plus";
|
|
@@ -326,6 +327,13 @@ const LazyFailedSessionBanner = lazy(() =>
|
|
|
326
327
|
})),
|
|
327
328
|
);
|
|
328
329
|
|
|
330
|
+
// Only a refused Send shows it, so it stays out of the direct session bundle.
|
|
331
|
+
const LazyCreditRefusalNotice = lazy(() =>
|
|
332
|
+
import("../components/credits/credit-refusal-notice").then((module) => ({
|
|
333
|
+
default: module.CreditRefusalNotice,
|
|
334
|
+
})),
|
|
335
|
+
);
|
|
336
|
+
|
|
329
337
|
const LazyAgentConfigurationPanel = lazy(() =>
|
|
330
338
|
import("../components/session/agent-configuration-panel").then(({ AgentConfigurationPanel }) => ({
|
|
331
339
|
default: AgentConfigurationPanel,
|
|
@@ -2116,6 +2124,13 @@ function SessionChatPane(props: {
|
|
|
2116
2124
|
const [refusedModel, setRefusedModel] = useState<{ sessionId: string; model: string } | null>(
|
|
2117
2125
|
null,
|
|
2118
2126
|
);
|
|
2127
|
+
// The API's credit refusal of a Send: no remaining credit pays for that model.
|
|
2128
|
+
// It stays above the composer until a message is accepted or it is dismissed.
|
|
2129
|
+
const [creditRefusal, setCreditRefusal] = useState<{
|
|
2130
|
+
sessionId: string;
|
|
2131
|
+
model: string;
|
|
2132
|
+
message: string;
|
|
2133
|
+
} | null>(null);
|
|
2119
2134
|
useEffect(() => {
|
|
2120
2135
|
const onFocusRequest = (event: Event) => {
|
|
2121
2136
|
const detail = (event as CustomEvent<SessionComposerFocusIntent>).detail;
|
|
@@ -2680,6 +2695,7 @@ function SessionChatPane(props: {
|
|
|
2680
2695
|
// host-owned upload/repository queue in sync once those inputs are
|
|
2681
2696
|
// accepted too; the immutable input snapshot preserves later additions.
|
|
2682
2697
|
onSent: (_text, input) => {
|
|
2698
|
+
setCreditRefusal(null);
|
|
2683
2699
|
attachments.removeReadyFiles(
|
|
2684
2700
|
(input.resources ?? []).flatMap((resource) =>
|
|
2685
2701
|
resource.kind === "file" ? [resource.fileId] : [],
|
|
@@ -2698,6 +2714,15 @@ function SessionChatPane(props: {
|
|
|
2698
2714
|
void modelCatalog.refresh();
|
|
2699
2715
|
setModelPickerSession(props.session.id);
|
|
2700
2716
|
}
|
|
2717
|
+
// Re-read funding so the notice and picker name what the credit covers now.
|
|
2718
|
+
if (isPaymentRequiredError(error)) {
|
|
2719
|
+
setCreditRefusal({
|
|
2720
|
+
sessionId: props.session.id,
|
|
2721
|
+
model: refusedModelId(error, input) ?? props.session.model,
|
|
2722
|
+
message: error.message,
|
|
2723
|
+
});
|
|
2724
|
+
void modelCatalog.refresh();
|
|
2725
|
+
}
|
|
2701
2726
|
},
|
|
2702
2727
|
});
|
|
2703
2728
|
useBrowserAccountBridgeBlocker(`session-composer:${props.session.id}`, () => {
|
|
@@ -3274,6 +3299,15 @@ function SessionChatPane(props: {
|
|
|
3274
3299
|
],
|
|
3275
3300
|
);
|
|
3276
3301
|
|
|
3302
|
+
const canBuyCredits =
|
|
3303
|
+
context.clientConfig.billingMode === "stripe" &&
|
|
3304
|
+
Boolean(workspaceAccountId) &&
|
|
3305
|
+
hasAccountPermission(context.accessContext, workspaceAccountId ?? "", "billing:manage");
|
|
3306
|
+
const canConnectModel = hasWorkspacePermission(
|
|
3307
|
+
context.accessContext,
|
|
3308
|
+
props.session.workspaceId,
|
|
3309
|
+
"connections:write",
|
|
3310
|
+
);
|
|
3277
3311
|
const failureRecovery =
|
|
3278
3312
|
!props.hasNewer &&
|
|
3279
3313
|
props.failure &&
|
|
@@ -3301,20 +3335,8 @@ function SessionChatPane(props: {
|
|
|
3301
3335
|
freeCreditGap={creditGap}
|
|
3302
3336
|
onChooseModel={chooseCoveredModel}
|
|
3303
3337
|
workspaceId={props.session.workspaceId}
|
|
3304
|
-
canBuyCredits={
|
|
3305
|
-
|
|
3306
|
-
Boolean(workspaceAccountId) &&
|
|
3307
|
-
hasAccountPermission(
|
|
3308
|
-
context.accessContext,
|
|
3309
|
-
workspaceAccountId ?? "",
|
|
3310
|
-
"billing:manage",
|
|
3311
|
-
)
|
|
3312
|
-
}
|
|
3313
|
-
canConnectModel={hasWorkspacePermission(
|
|
3314
|
-
context.accessContext,
|
|
3315
|
-
props.session.workspaceId,
|
|
3316
|
-
"connections:write",
|
|
3317
|
-
)}
|
|
3338
|
+
canBuyCredits={canBuyCredits}
|
|
3339
|
+
canConnectModel={canConnectModel}
|
|
3318
3340
|
sandboxRecovery={
|
|
3319
3341
|
needsSandboxRecoveryCheck(props.session, props.failure.structuralSandboxFailure)
|
|
3320
3342
|
? {
|
|
@@ -3372,6 +3394,38 @@ function SessionChatPane(props: {
|
|
|
3372
3394
|
</Suspense>
|
|
3373
3395
|
</FailureRecoveryBoundary>
|
|
3374
3396
|
) : null;
|
|
3397
|
+
// A refused Send names its model, the models the credit still covers, and the
|
|
3398
|
+
// next step above the composer. The credit-stop banner already says this.
|
|
3399
|
+
const sessionCreditRefusal =
|
|
3400
|
+
creditRefusal?.sessionId === props.session.id &&
|
|
3401
|
+
!terminal &&
|
|
3402
|
+
!(failureRecovery && props.creditExhausted)
|
|
3403
|
+
? creditRefusal
|
|
3404
|
+
: null;
|
|
3405
|
+
// The plain refusal text shows while the notice chunk loads or if it fails.
|
|
3406
|
+
const creditRefusalFallback = sessionCreditRefusal ? (
|
|
3407
|
+
<p role="alert" className="px-1.5 text-sm text-fg-muted">
|
|
3408
|
+
{apiErrorFacts(sessionCreditRefusal.message).serverMessage ?? sessionCreditRefusal.message}
|
|
3409
|
+
</p>
|
|
3410
|
+
) : null;
|
|
3411
|
+
const creditRefusalNotice = sessionCreditRefusal ? (
|
|
3412
|
+
<FailureRecoveryBoundary key={props.session.id} fallback={creditRefusalFallback}>
|
|
3413
|
+
<Suspense fallback={creditRefusalFallback}>
|
|
3414
|
+
<LazyCreditRefusalNotice
|
|
3415
|
+
gap={creditRefusalGap(modelCatalog.rows, sessionCreditRefusal.model, {
|
|
3416
|
+
selectedModel: composerPolicy?.model,
|
|
3417
|
+
preferredModel: modelCatalog.defaultSelection?.model,
|
|
3418
|
+
})}
|
|
3419
|
+
message={sessionCreditRefusal.message}
|
|
3420
|
+
workspaceId={props.session.workspaceId}
|
|
3421
|
+
canBuyCredits={canBuyCredits}
|
|
3422
|
+
canConnectModel={canConnectModel}
|
|
3423
|
+
onChooseModel={modelPickerDisabled ? undefined : chooseCoveredModel}
|
|
3424
|
+
onDismiss={() => setCreditRefusal(null)}
|
|
3425
|
+
/>
|
|
3426
|
+
</Suspense>
|
|
3427
|
+
</FailureRecoveryBoundary>
|
|
3428
|
+
) : null;
|
|
3375
3429
|
|
|
3376
3430
|
const modelRecovery = props.hasNewer
|
|
3377
3431
|
? null
|
|
@@ -3733,6 +3787,7 @@ function SessionChatPane(props: {
|
|
|
3733
3787
|
header={
|
|
3734
3788
|
unavailableModelNotice ||
|
|
3735
3789
|
usageLimitNotice ||
|
|
3790
|
+
creditRefusalNotice ||
|
|
3736
3791
|
(machineAccess && !machineAccess.isOwner) ? (
|
|
3737
3792
|
<>
|
|
3738
3793
|
{!(
|
|
@@ -3754,6 +3809,9 @@ function SessionChatPane(props: {
|
|
|
3754
3809
|
) : null}
|
|
3755
3810
|
{unavailableModelNotice}
|
|
3756
3811
|
{usageLimitNotice}
|
|
3812
|
+
{creditRefusalNotice ? (
|
|
3813
|
+
<div className="px-2 pt-2">{creditRefusalNotice}</div>
|
|
3814
|
+
) : null}
|
|
3757
3815
|
</>
|
|
3758
3816
|
) : null
|
|
3759
3817
|
}
|