@opengeni/react 4.3.3-canary.39786771332001 → 4.5.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.js +29 -29
- package/dist/app/components/Composer.js +27 -27
- package/dist/app/components/agent/agent-capability-picker.js +4 -4
- package/dist/app/components/artifacts/artifact-browse-controls.js +2 -2
- package/dist/app/components/artifacts/artifact-library.js +19 -19
- package/dist/app/components/artifacts/artifact-page-chrome.js +2 -2
- 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 +4 -4
- package/dist/app/components/artifacts/site-conversations.js +22 -21
- package/dist/app/components/artifacts/site-data.js +19 -19
- package/dist/app/components/artifacts/site-publishing.js +41 -41
- package/dist/app/components/artifacts/site-settings.js +50 -50
- 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 +12 -12
- package/dist/app/components/capabilities/connector-tool-permissions.js +3 -3
- package/dist/app/components/capabilities/native-connect-setup.js +14 -14
- package/dist/app/components/capabilities/perform-capability-action.js +1 -1
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +16 -16
- package/dist/app/components/capabilities/session-capability-card.js +94 -76
- package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.css +1023 -0
- package/dist/app/components/capabilities/session-chrome-card.css.map +1 -0
- package/dist/app/components/capabilities/session-chrome-card.d.ts +18 -0
- package/dist/app/components/capabilities/session-chrome-card.js +72 -0
- package/dist/app/components/capabilities/session-custom-mcp-card.js +20 -20
- package/dist/app/components/capabilities/session-github-card.js +24 -24
- package/dist/app/components/capabilities/session-machine-card.d.ts +27 -1
- package/dist/app/components/capabilities/session-machine-card.js +40 -36
- 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-status.js +18 -17
- package/dist/app/components/command-menu/chat-switcher.js +19 -18
- package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
- package/dist/app/components/command-menu/command-menu.js +36 -114
- package/dist/app/components/command-menu/command-menu.js.map +1 -1
- package/dist/app/components/command-menu/shortcut-sheet.js +17 -17
- package/dist/app/components/composer-capabilities-menu-body.js +3 -3
- package/dist/app/components/composer-mobile-plus-panel.js +20 -20
- package/dist/app/components/composer-mobile-plus.js +1 -1
- package/dist/app/components/credit-required-gate.js +1 -1
- package/dist/app/components/credit-required-prompt.js +12 -12
- package/dist/app/components/credits/coupon-redeem.js +2 -2
- package/dist/app/components/credits/credit-refusal-notice.js +2 -2
- package/dist/app/components/desktop/app-shots.js +7 -7
- package/dist/app/components/desktop/this-computer.js +4 -4
- package/dist/app/components/feedback.js +4 -4
- package/dist/app/components/follow-up-repository-menu-body.js +5 -5
- package/dist/app/components/follow-up-repository-picker.js +1 -1
- package/dist/app/components/github-app-connect-launcher.js +2 -2
- package/dist/app/components/in-app-help-link.js +2 -2
- package/dist/app/components/knowledge/agent-learning-settings.js +3 -3
- package/dist/app/components/machines/connect-machine-dialog.js +18 -18
- package/dist/app/components/markdown.js +9 -9
- package/dist/app/components/message-context-pills.js +2 -2
- package/dist/app/components/models/models-ui.js +8 -8
- package/dist/app/components/new-session-starters.js +2 -2
- package/dist/app/components/pickers.js +9 -9
- package/dist/app/components/rail/rail-context.js +2 -2
- package/dist/app/components/rail/rail-sections.js +69 -66
- package/dist/app/components/rail/session-header.js +49 -48
- package/dist/app/components/rail/session-list.js +68 -65
- package/dist/app/components/rail/session-row-content.d.ts +6 -2
- package/dist/app/components/rail/session-row-content.js +1 -1
- package/dist/app/components/rail/session-row-hover-details.js +24 -23
- package/dist/app/components/rail/session-shell.js +107 -104
- package/dist/app/components/rail/site-session-group-heading.d.ts +7 -1
- package/dist/app/components/rail/site-session-group-heading.js +20 -3
- package/dist/app/components/repository-picker.js +5 -5
- package/dist/app/components/secrets/session-secrets-panel.js +3 -3
- package/dist/app/components/session/agent-configuration-panel.js +38 -38
- package/dist/app/components/session/artifact-link-boundary.js +2 -2
- package/dist/app/components/session/artifact-session-page.js +4 -4
- package/dist/app/components/session/banners.js +11 -11
- package/dist/app/components/session/codex-account-indicator.js +12 -12
- package/dist/app/components/session/editable-artifacts-workspace.js +45 -45
- package/dist/app/components/session/failed-session-banner.js +11 -11
- package/dist/app/components/session/human-input.js +59 -55
- package/dist/app/components/session/inspector.js +91 -87
- package/dist/app/components/session/inspector.js.map +1 -1
- package/dist/app/components/session/message-actions.js +4 -4
- 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 +12 -12
- package/dist/app/components/session/sandbox-switcher.js +16 -16
- package/dist/app/components/session/sandbox-workspace.js +83 -79
- package/dist/app/components/session/search-markdown-highlight.js +10 -10
- package/dist/app/components/session/search-results-view.js +11 -11
- package/dist/app/components/session/session-admin-access.js +9 -9
- package/dist/app/components/session/session-admission-notice.js +6 -6
- package/dist/app/components/session/session-machine-access-notice.js +6 -6
- package/dist/app/components/session/session-retention.js +4 -4
- package/dist/app/components/session/session-search-dialog.js +12 -12
- package/dist/app/components/session/session-skill-reviews.js +1 -1
- package/dist/app/components/session/session-tenancy-control.d.ts +2 -0
- package/dist/app/components/session/session-tenancy-control.js +41 -26
- package/dist/app/components/session/session-tenancy-control.js.map +1 -1
- package/dist/app/components/session/session-usage-limit-section.js +11 -11
- package/dist/app/components/session/session-wait-status.js +10 -9
- package/dist/app/components/session/session-wait-status.js.map +1 -1
- package/dist/app/components/session/site-origin-link.d.ts +1 -0
- package/dist/app/components/session/site-origin-link.js +2 -2
- package/dist/app/components/session/subagents.js +17 -16
- package/dist/app/components/session-connectors-menu-body.js +5 -5
- 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 +6 -6
- package/dist/app/components/usage/usage-entry.js +8 -8
- package/dist/app/components/workspace-composer-plus.js +22 -22
- package/dist/app/embed/memory-navigation.js +2 -2
- package/dist/app/embed/session-app.js +275 -269
- package/dist/app/lib/actions/actions-provider.js +14 -14
- package/dist/app/lib/actions/held-modifier.d.ts +11 -0
- package/dist/app/lib/app-surfaces.js +2 -2
- package/dist/app/lib/codex-usage-query.js +6 -6
- package/dist/app/lib/composer-connectors.js +13 -13
- package/dist/app/lib/console-site.d.ts +6 -0
- package/dist/app/lib/console-site.js +14 -0
- package/dist/app/lib/console-text.js +2 -2
- package/dist/app/lib/events.js +18 -17
- package/dist/app/lib/failed-session-copy.js +3 -3
- package/dist/app/lib/model-access-onboarding.js +3 -3
- package/dist/app/lib/move-chat-to-machine.js +3 -3
- package/dist/app/lib/navigation.d.ts +5 -0
- package/dist/app/lib/navigation.js +1 -1
- package/dist/app/lib/routes.d.ts +17 -0
- package/dist/app/lib/routes.js +9 -3
- package/dist/app/lib/session-branch-cache.js +14 -13
- package/dist/app/lib/session-create.js +2 -2
- package/dist/app/lib/session-deep-link.js +2 -2
- package/dist/app/lib/session-failure-toasts.d.ts +8 -0
- package/dist/app/lib/session-group-pagination.js +14 -13
- package/dist/app/lib/session-hover-facts.js +15 -14
- package/dist/app/lib/session-model.js +3 -3
- package/dist/app/lib/session-rail.js +10 -9
- package/dist/app/lib/session-rename.js +3 -3
- package/dist/app/lib/session-ui-features.d.ts +6 -1
- package/dist/app/lib/session-ui-features.js +1 -1
- package/dist/app/lib/sessions-group.d.ts +43 -3
- package/dist/app/lib/sessions-group.js +22 -15
- package/dist/app/lib/shared-query.js +3 -3
- package/dist/app/lib/site-opened.d.ts +6 -0
- package/dist/app/lib/site-opened.js +10 -0
- package/dist/app/lib/turn-failure-analytics.js +5 -5
- package/dist/app/lib/use-duplicate-site.js +3 -3
- package/dist/app/lib/use-follow-up-repositories.js +4 -4
- package/dist/app/lib/use-session-list-hint-refresh.d.ts +20 -2
- package/dist/app/lib/use-session-list-hint-refresh.js +5 -1
- package/dist/app/lib/use-workspace-machines.js +6 -6
- package/dist/app/lib/use-workspace-model-catalog.js +8 -8
- package/dist/app/lib/use-workspace-rigs.js +8 -8
- 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 +136 -153
- package/dist/app/routes/artifacts.js.map +1 -1
- package/dist/app/routes/retained-artifact.js +63 -62
- package/dist/app/routes/retained-artifact.js.map +1 -1
- package/dist/app/routes/session-unavailable.js +7 -5
- package/dist/app/routes/session.js +177 -173
- package/dist/app/routes/sessions-index-hydration.js +3 -3
- package/dist/app/routes/sessions-index.js +123 -121
- package/dist/app/routes/site-view.d.ts +11 -0
- package/dist/app/routes/site-view.js +597 -0
- package/dist/app/routes/site-view.js.map +1 -0
- 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-RYYQSRTC.js → browser-viewer-QMCNV4RI.js} +9 -7
- package/dist/{chat-interactive-block-ABCRKXJ4.js → chat-interactive-block-PMIAUXSO.js} +6 -6
- package/dist/{chunk-GIZGNFIX.js → chunk-22FFOHPT.js} +11 -11
- package/dist/chunk-22GTC4MZ.js +15 -0
- package/dist/chunk-22GTC4MZ.js.map +1 -0
- package/dist/{chunk-Z5WMLJKI.js → chunk-22JFMNMF.js} +92 -4
- package/dist/chunk-22JFMNMF.js.map +1 -0
- package/dist/{chunk-UHFWF6ZU.js → chunk-2FPS5H2D.js} +2 -2
- package/dist/{chunk-NAWXARTY.js → chunk-2KO2G3RI.js} +72 -6
- package/dist/chunk-2KO2G3RI.js.map +1 -0
- package/dist/{chunk-5POTDNQT.js → chunk-2NC7NZCE.js} +6 -6
- package/dist/{chunk-ZKYYZH6L.js → chunk-2QBYDGWO.js} +9 -9
- package/dist/{chunk-TWXIFWBD.js → chunk-34EU25RL.js} +2 -2
- package/dist/{chunk-LQKKSUCR.js → chunk-35BC2FU2.js} +19 -19
- package/dist/{chunk-PTGRFAMH.js → chunk-3ABPIUCK.js} +2 -2
- package/dist/{chunk-S4SC5SSV.js → chunk-3GU7AWG7.js} +18 -18
- package/dist/{chunk-722UO6YQ.js → chunk-3PEXVG4D.js} +2 -2
- package/dist/{chunk-OQAAI33Y.js → chunk-3RMKPHBL.js} +3 -3
- package/dist/{chunk-6JKZILLF.js → chunk-3RQUWFZT.js} +67 -67
- package/dist/{chunk-6JKZILLF.js.map → chunk-3RQUWFZT.js.map} +1 -1
- package/dist/{chunk-GCGTYXJJ.js → chunk-3STBLX4O.js} +9 -9
- package/dist/{chunk-YXIW7H4N.js → chunk-3X5FKDYQ.js} +28 -28
- package/dist/{chunk-KTRKZRID.js → chunk-4GLLWX33.js} +11 -11
- package/dist/{chunk-ROQOVH4N.js → chunk-4HEXNAFI.js} +20 -20
- package/dist/chunk-4HEXNAFI.js.map +1 -0
- package/dist/{chunk-SD2K5ZN5.js → chunk-4LPA25NQ.js} +4 -4
- package/dist/{chunk-DKCX643S.js → chunk-4RMN4E2Y.js} +13 -13
- package/dist/{chunk-E5FCEDMU.js → chunk-4SAGYEVB.js} +2 -2
- package/dist/{chunk-HTT3FB7T.js → chunk-4VK2R5QC.js} +3 -3
- package/dist/{chunk-CKG2EG62.js → chunk-4XQC7VLT.js} +14 -14
- package/dist/{chunk-IVOA3DXA.js → chunk-4YXAQMTD.js} +12 -12
- package/dist/{chunk-HOJGAJAB.js → chunk-52WK2GGK.js} +8 -8
- package/dist/{chunk-NYZQ7LO7.js → chunk-552UYIQ7.js} +20 -20
- package/dist/{chunk-LEXPBQ56.js → chunk-5DSKMG2I.js} +4 -4
- package/dist/{chunk-WNG757ID.js → chunk-5FA455GR.js} +4 -4
- package/dist/{chunk-MNWQAYY3.js → chunk-5FEN3KYH.js} +11 -11
- package/dist/{chunk-OSVHU2WU.js → chunk-5JHRMUAZ.js} +12 -12
- package/dist/{chunk-PM3OSANE.js → chunk-5MJHH72T.js} +14 -3
- package/dist/chunk-5MJHH72T.js.map +1 -0
- package/dist/{chunk-RKB2Z457.js → chunk-5VGJXWQ2.js} +2 -2
- package/dist/{chunk-GFUUFM2O.js → chunk-5W6ZDKRR.js} +6 -6
- package/dist/{chunk-NDETTZQA.js → chunk-5W7KJ5NQ.js} +37 -37
- package/dist/{chunk-Q35YZVDZ.js → chunk-5Y2FPLZE.js} +9 -9
- package/dist/{chunk-6W3LF3DB.js → chunk-5YFY4SFC.js} +2 -12
- package/dist/chunk-5YFY4SFC.js.map +1 -0
- package/dist/{chunk-F3NERYBQ.js → chunk-62VER7O4.js} +6 -6
- package/dist/{chunk-FBMU3VK5.js → chunk-6DCEDIF6.js} +2 -2
- package/dist/{chunk-WUHB422G.js → chunk-73WI7FL2.js} +18 -18
- package/dist/chunk-756MKA2J.js +45 -0
- package/dist/chunk-756MKA2J.js.map +1 -0
- package/dist/{chunk-QECZVL7S.js → chunk-7FJMRJDG.js} +2 -2
- package/dist/{chunk-7KGKDWWR.js → chunk-7HFLYNWN.js} +2 -2
- package/dist/{chunk-XVM566II.js → chunk-7KIENXRE.js} +2 -2
- package/dist/{chunk-CBY5CXBD.js → chunk-7NPCEBZE.js} +5 -5
- package/dist/{chunk-46VBQG2D.js → chunk-7P4AQMGA.js} +13 -13
- package/dist/{chunk-CKZW7A5S.js → chunk-7TCT7KPQ.js} +742 -644
- package/dist/chunk-7TCT7KPQ.js.map +1 -0
- package/dist/{chunk-O77Q4NG2.js → chunk-7XO7YKPC.js} +283 -1038
- package/dist/chunk-7XO7YKPC.js.map +1 -0
- package/dist/{chunk-S7PVL7XH.js → chunk-A4BD4ZVB.js} +4 -4
- package/dist/{chunk-VSQHDBHU.js → chunk-ACL2V2KE.js} +68 -35
- package/dist/chunk-ACL2V2KE.js.map +1 -0
- package/dist/{chunk-73SOCVLS.js → chunk-AIEXYO2X.js} +3 -3
- package/dist/{chunk-U7TC2XJQ.js → chunk-AJPW3SV4.js} +3 -3
- package/dist/{chunk-HRJQAFKR.js → chunk-AX6YJA5U.js} +2 -2
- package/dist/{chunk-P5WABK2H.js → chunk-BCM7C3MJ.js} +9 -9
- package/dist/{chunk-DT7BORXG.js → chunk-BMJTNPWK.js} +2 -2
- package/dist/{chunk-HIHO2QE7.js → chunk-BT2MVGHT.js} +2 -2
- package/dist/{chunk-3XOISKZC.js → chunk-BXQYAAVE.js} +4 -4
- package/dist/{chunk-IBTXYLBW.js → chunk-CCFWY4GF.js} +2 -2
- package/dist/{chunk-ZOC3OP6F.js → chunk-CCR33J7L.js} +2 -2
- package/dist/{chunk-GTQ3SNEI.js → chunk-CD3MO3IC.js} +2 -2
- package/dist/{chunk-WSMYOLHG.js → chunk-CDEXRJB6.js} +5 -5
- package/dist/{chunk-3GLAPCVI.js → chunk-CFFNT2OY.js} +8 -8
- package/dist/{chunk-FUSFVUIJ.js → chunk-CMLJSF2F.js} +12 -12
- package/dist/{chunk-O4DYOSOL.js → chunk-CP7ZQHBW.js} +13 -13
- package/dist/{chunk-IOKSNX74.js → chunk-D5OWJZQR.js} +2 -2
- package/dist/{chunk-SQGXMHJO.js → chunk-DGLRZMXL.js} +3 -3
- package/dist/{chunk-GNEHAPKV.js → chunk-DJFTH2DI.js} +3 -3
- package/dist/{chunk-HQG4SLTE.js → chunk-DYJGYGPB.js} +2 -2
- package/dist/{chunk-4EAF3HSD.js → chunk-EJ7WARW7.js} +2 -2
- package/dist/{chunk-3AA6RNGE.js → chunk-ENS6E4RZ.js} +2 -2
- package/dist/{chunk-OOEO4MKY.js → chunk-EPWD4KRA.js} +2 -2
- package/dist/{chunk-V5RJAWRP.js → chunk-EQE3MNQN.js} +5 -5
- package/dist/{chunk-TSBE4KOQ.js → chunk-EWL6NDOO.js} +3 -3
- package/dist/{chunk-OO2T63BY.js → chunk-EYS4ZOF5.js} +2 -2
- package/dist/{chunk-IC7KNOBB.js → chunk-FDAV72IX.js} +7 -7
- package/dist/{chunk-AG7VGUIW.js → chunk-FFNPUSVO.js} +7 -7
- package/dist/{chunk-P5T36BA3.js → chunk-FRP64DEK.js} +2 -2
- package/dist/{chunk-KBF3SE7G.js → chunk-FSP334UU.js} +2 -2
- package/dist/{chunk-ZHFKMMOT.js → chunk-FTX5CNHA.js} +6 -6
- package/dist/{chunk-KYBALSWW.js → chunk-FWOBNL2A.js} +1 -1
- package/dist/{chunk-HJ5XWW62.js → chunk-FWYEZ3LE.js} +34 -34
- package/dist/{chunk-WSLPZ43N.js → chunk-G4HQUBO4.js} +12 -12
- package/dist/{chunk-CSHBR2IZ.js → chunk-GDLDBR6B.js} +2 -2
- package/dist/chunk-GGV4NSG3.js +792 -0
- package/dist/chunk-GGV4NSG3.js.map +1 -0
- package/dist/{chunk-G3S2F35T.js → chunk-GHHM6WN4.js} +3 -3
- package/dist/{chunk-OANSIX34.js → chunk-GRSODLVO.js} +4 -4
- package/dist/{chunk-DDIBZA4X.js → chunk-GT7JFQ4E.js} +405 -148
- package/dist/chunk-GT7JFQ4E.js.map +1 -0
- package/dist/{chunk-EU6XSQFM.js → chunk-GXW2I2M2.js} +2 -2
- package/dist/{chunk-4246UYVG.js → chunk-GZS37O3G.js} +1 -1
- package/dist/{chunk-XFNLU7EW.js → chunk-H5M33DAL.js} +15 -6
- package/dist/chunk-H5M33DAL.js.map +1 -0
- package/dist/{chunk-Y7WMW74G.js → chunk-HQWVDQXW.js} +7 -7
- package/dist/{chunk-YTZQV2DD.js → chunk-HU6JTNWF.js} +2 -2
- package/dist/{chunk-QRVNI5V6.js → chunk-I6KIQKU6.js} +3 -3
- package/dist/{chunk-Q262Y2YX.js → chunk-IBA5FMRE.js} +141 -137
- package/dist/chunk-IBA5FMRE.js.map +1 -0
- package/dist/{chunk-BNUPYHHZ.js → chunk-IDXTASGN.js} +4 -4
- package/dist/{chunk-KF3MF6FP.js → chunk-IECRGM6K.js} +3 -2
- package/dist/chunk-IECRGM6K.js.map +1 -0
- package/dist/chunk-IJYL5BZM.js +38 -0
- package/dist/chunk-IJYL5BZM.js.map +1 -0
- package/dist/{chunk-L6RXRRN3.js → chunk-ILDOW2IQ.js} +3 -3
- package/dist/{chunk-VUHPA3XQ.js → chunk-ITX2TB4K.js} +6 -6
- package/dist/{chunk-ETCB6SUJ.js → chunk-J22HD2PB.js} +6 -6
- package/dist/{chunk-U47YDYLQ.js → chunk-J5MEDX7C.js} +8 -8
- package/dist/{chunk-6VQTHC4W.js → chunk-J7FBBLHF.js} +36 -36
- package/dist/{chunk-5JZYPZ72.js → chunk-JFK7NTEA.js} +4 -4
- package/dist/chunk-JFK7NTEA.js.map +1 -0
- package/dist/{chunk-QZRDCFHI.js → chunk-JM4HQPAI.js} +5 -5
- package/dist/{chunk-PIVGX42P.js → chunk-JNY5MT3I.js} +2 -2
- package/dist/{chunk-XWWXIZFP.js → chunk-JO6R5EXF.js} +7 -7
- package/dist/{chunk-MM7OKOTE.js → chunk-JQCGPTZ6.js} +9 -9
- package/dist/chunk-JRSNCSZN.js +37 -0
- package/dist/chunk-JRSNCSZN.js.map +1 -0
- package/dist/{chunk-KNFDWNCH.js → chunk-JXT5QDJC.js} +5 -5
- package/dist/{chunk-OR37STQZ.js → chunk-KEXYBG7Q.js} +3 -3
- package/dist/{chunk-AZVANYMB.js → chunk-KUNFUSZ7.js} +2 -2
- package/dist/{chunk-DXZNDKQD.js → chunk-LEEJBZ5B.js} +2 -2
- package/dist/{chunk-STUCI6QA.js → chunk-LEKBNKLD.js} +1 -1
- package/dist/{chunk-STUCI6QA.js.map → chunk-LEKBNKLD.js.map} +1 -1
- package/dist/{chunk-C535KSTY.js → chunk-LF5CBAOS.js} +4 -4
- package/dist/{chunk-BJIZ7PL7.js → chunk-LHLK7FUA.js} +145 -29
- package/dist/chunk-LHLK7FUA.js.map +1 -0
- package/dist/{chunk-RIMKJBCD.js → chunk-LMPTC4CX.js} +2 -2
- package/dist/{chunk-3KVWXKD6.js → chunk-LQ47YL6E.js} +2 -2
- package/dist/{chunk-H5WGWAYX.js → chunk-LT4J7RHI.js} +13 -13
- package/dist/{chunk-DSGMYES6.js → chunk-MCTTONOW.js} +28 -28
- package/dist/{chunk-IGHELZI7.js → chunk-MIECLOQC.js} +9 -9
- package/dist/{chunk-FM4OUCC2.js → chunk-MOKYT3X3.js} +3 -3
- package/dist/{chunk-GZ64CASI.js → chunk-MVZYNZXE.js} +5 -4
- package/dist/chunk-MVZYNZXE.js.map +1 -0
- package/dist/{chunk-RKILMLA7.js → chunk-MXLKI7BI.js} +3 -3
- package/dist/{chunk-45WYYFP6.js → chunk-N3ZP4IDU.js} +2 -2
- package/dist/{chunk-XRRSFQEV.js → chunk-NAZZLAWX.js} +2 -2
- package/dist/{chunk-UWJ5P5CU.js → chunk-NEK4WB5P.js} +3 -3
- package/dist/{chunk-6L7U46Y2.js → chunk-NKNVIO66.js} +2 -2
- package/dist/{chunk-JKUICTLM.js → chunk-NLAFNMPK.js} +2 -2
- package/dist/{chunk-4LKNIGHB.js → chunk-O2SBHS2N.js} +2 -2
- package/dist/{chunk-D3RK3NGM.js → chunk-PCFK7HKD.js} +17 -17
- package/dist/{chunk-VVCDB2T7.js → chunk-PCJLH45G.js} +3 -3
- package/dist/{chunk-PZ24CYDO.js → chunk-PFAUGEV5.js} +2 -2
- package/dist/{chunk-HGMWMK5K.js → chunk-PO3BH3KQ.js} +2 -2
- package/dist/{chunk-B74GSYR6.js → chunk-PUTS4DYW.js} +2 -2
- package/dist/{chunk-JSIDLTTG.js → chunk-PZ2V2XIK.js} +2 -2
- package/dist/{chunk-TMEQPODK.js → chunk-PZ37VDB5.js} +2 -2
- package/dist/{chunk-QIYBOFUV.js → chunk-QFMLAT7L.js} +246 -237
- package/dist/chunk-QFMLAT7L.js.map +1 -0
- package/dist/{chunk-LVONK3YQ.js → chunk-QRKTESVE.js} +2 -2
- package/dist/{chunk-HT5WSUC7.js → chunk-QXEDIDBZ.js} +3 -3
- package/dist/{chunk-WURSS6MP.js → chunk-R66YMYJU.js} +2 -2
- package/dist/{chunk-HDHK3SXK.js → chunk-RFLYID6H.js} +5 -5
- package/dist/{chunk-V77JK73U.js → chunk-RIYZFKIM.js} +37 -35
- package/dist/chunk-RIYZFKIM.js.map +1 -0
- package/dist/{chunk-VMFID36H.js → chunk-RQNZDTKT.js} +19 -19
- package/dist/{chunk-EHCUFCXM.js → chunk-RYSRFAHN.js} +32 -22
- package/dist/chunk-RYSRFAHN.js.map +1 -0
- package/dist/{chunk-I6VUUEXH.js → chunk-S2U4CDAC.js} +150 -150
- package/dist/chunk-S2U4CDAC.js.map +1 -0
- package/dist/chunk-S37GP7LX.js +204 -0
- package/dist/chunk-S37GP7LX.js.map +1 -0
- package/dist/{chunk-A2EWJQXX.js → chunk-SM5QX6UK.js} +4 -4
- package/dist/{chunk-FBE6AIIW.js → chunk-SOKNCW5U.js} +2 -2
- package/dist/{chunk-Q4NM77K7.js → chunk-SSOO4GWN.js} +193 -194
- package/dist/chunk-SSOO4GWN.js.map +1 -0
- package/dist/{chunk-PFKTGZKE.js → chunk-SY2AAZNB.js} +2 -2
- package/dist/{chunk-DFZMKCVP.js → chunk-TIQPKOFW.js} +4 -4
- package/dist/{chunk-HPPKLBTJ.js → chunk-TJQDL3JH.js} +2 -2
- package/dist/chunk-TL7BOFFL.js +89 -0
- package/dist/chunk-TL7BOFFL.js.map +1 -0
- package/dist/{chunk-FD4Q5KFL.js → chunk-TLL22FFO.js} +2 -2
- package/dist/{chunk-QM5H4FPT.js → chunk-TV6BWONY.js} +3 -3
- package/dist/{chunk-EDFJBX3V.js → chunk-U6MPB3K6.js} +9 -9
- package/dist/{chunk-TZD3U2S5.js → chunk-ULJAOMJA.js} +4 -4
- package/dist/chunk-ULYQEFNH.js +529 -0
- package/dist/chunk-ULYQEFNH.js.map +1 -0
- package/dist/{chunk-H5EVWF6L.js → chunk-UNNJUJVD.js} +2 -2
- package/dist/{chunk-324X6T6G.js → chunk-UP7I3W6O.js} +57 -55
- package/dist/chunk-UP7I3W6O.js.map +1 -0
- package/dist/{chunk-VU2EWALC.js → chunk-UUGR3X5I.js} +19 -12
- package/dist/chunk-UUGR3X5I.js.map +1 -0
- package/dist/{chunk-Z6DKXQG7.js → chunk-UXXFMF4X.js} +2 -2
- package/dist/{chunk-OBQVTCTW.js → chunk-UYNCMZX5.js} +4 -4
- package/dist/{chunk-RGPYMHKI.js → chunk-V3K4RQO7.js} +9 -3
- package/dist/chunk-V3K4RQO7.js.map +1 -0
- package/dist/{chunk-KZHW27BV.js → chunk-V4QZ7UBK.js} +2 -2
- package/dist/{chunk-NEVRLD77.js → chunk-VH5EGTH2.js} +3 -3
- package/dist/{chunk-MYNUBDU7.js → chunk-VYKW6TB2.js} +1 -1
- package/dist/chunk-VYKW6TB2.js.map +1 -0
- package/dist/{chunk-QEJTQTF5.js → chunk-W6T5HR3Z.js} +3 -3
- package/dist/{chunk-H6WWEKEV.js → chunk-WCMG4HYI.js} +10 -10
- package/dist/{chunk-GZLLDA6P.js → chunk-WEFN327U.js} +2 -2
- package/dist/{chunk-VW3BBTMA.js → chunk-WKHUZIOW.js} +1 -1
- package/dist/{chunk-ANHUMDJX.js → chunk-WNDTLK44.js} +2 -2
- package/dist/{chunk-2DS4UOYQ.js → chunk-WSZQNTVN.js} +2 -2
- package/dist/{chunk-Z2DAWUO3.js → chunk-XMNUZUUA.js} +6 -6
- package/dist/{chunk-GAIM5RNE.js → chunk-XN7NSPE6.js} +3 -3
- package/dist/chunk-XV6ZYRHK.js +59 -0
- package/dist/chunk-XV6ZYRHK.js.map +1 -0
- package/dist/{chunk-FLGUVRR7.js → chunk-Y5BSA3I7.js} +5 -5
- package/dist/{chunk-WRLWLGEF.js → chunk-Y5E3XQ2S.js} +25 -2
- package/dist/{chunk-WRLWLGEF.js.map → chunk-Y5E3XQ2S.js.map} +1 -1
- package/dist/{chunk-QILLL4JE.js → chunk-YEROLKOA.js} +16 -16
- package/dist/{chunk-NDF3SH3X.js → chunk-YJPKDRI2.js} +15 -15
- package/dist/{chunk-TQGJN5UZ.js → chunk-YV56F4UP.js} +318 -700
- package/dist/chunk-YV56F4UP.js.map +1 -0
- package/dist/{chunk-VAIESMPY.js → chunk-YVBHGMKC.js} +4 -4
- package/dist/{chunk-AD22P5X3.js → chunk-YXA2EKV3.js} +3 -3
- package/dist/{chunk-FDNJVZRE.js → chunk-YYCOSTUU.js} +17 -17
- package/dist/{chunk-NLMTNEWW.js → chunk-Z6E6TUAE.js} +2 -2
- package/dist/{chunk-BJW7G6EF.js → chunk-Z7IGO5EA.js} +3 -3
- package/dist/{chunk-N7JKT4ZU.js → chunk-ZEIFJ6PX.js} +7 -7
- package/dist/{chunk-Q4OHNGGB.js → chunk-ZS2UQ3DV.js} +68 -11
- package/dist/chunk-ZS2UQ3DV.js.map +1 -0
- package/dist/{chunk-VRGOOVDB.js → chunk-ZVVT72MT.js} +2 -2
- package/dist/components/browser-viewer.d.ts +1 -1
- package/dist/composer.js +14 -14
- package/dist/{computer-viewer-KEDVLD42.js → computer-viewer-25AJIDYA.js} +9 -9
- package/dist/connect.js +11 -11
- package/dist/desktop.js +2 -2
- package/dist/editor.js +2 -2
- package/dist/{embedded-new-voice-5PYRDZ6T.js → embedded-new-voice-RZZEJT6M.js} +8 -8
- package/dist/{embedded-voice-PABC5NBD.js → embedded-voice-6OKSSPLW.js} +8 -8
- package/dist/{fleet-decision-row-QNSTP3VX.js → fleet-decision-row-NN2HXDX3.js} +2 -2
- package/dist/hooks/internal.d.ts +38 -0
- package/dist/hooks/use-client-config-flags.d.ts +12 -0
- package/dist/hooks/use-workspace-sessions.d.ts +10 -1
- package/dist/index.js +233 -227
- package/dist/interaction.js +11 -9
- package/dist/interaction.js.map +1 -1
- package/dist/{latest-question-5LIRVG4G.js → latest-question-2PFWQSSG.js} +4 -3
- package/dist/{latest-question-5LIRVG4G.js.map → latest-question-2PFWQSSG.js.map} +1 -1
- package/dist/machines.js +5 -5
- package/dist/messages/en.d.ts +3 -3
- package/dist/messages.js +1 -1
- package/dist/{model-policy-picker-menu-CURJ247L.js → model-policy-picker-menu-VVFGGAI6.js} +6 -6
- package/dist/model-policy-picker-menu-VVFGGAI6.js.map +1 -0
- package/dist/native-previews.js +3 -3
- package/dist/{platform-activity-row-BMXXNZKX.js → platform-activity-row-ENQVIFTL.js} +2 -2
- package/dist/{queue-surface-implementation-2X5AXB6I.js → queue-surface-implementation-4SHOQPQQ.js} +10 -8
- package/dist/{queue-surface-implementation-2X5AXB6I.js.map → queue-surface-implementation-4SHOQPQQ.js.map} +1 -1
- package/dist/realtime.js +7 -7
- package/dist/{sandbox-files-4FBG3GS2.js → sandbox-files-CCOTGXXA.js} +11 -11
- package/dist/sandbox-files-CCOTGXXA.js.map +1 -0
- package/dist/session-app.js +277 -271
- package/dist/session-list-model.d.ts +1 -0
- package/dist/session-list-model.js +8 -2
- package/dist/{session-realtime-2XIB254N.js → session-realtime-JNKDSGH7.js} +3 -3
- package/dist/session-realtime-JNKDSGH7.js.map +1 -0
- package/dist/session-realtime.js +2 -2
- package/dist/session-ui.js +77 -72
- package/dist/session.js +27 -25
- package/dist/sites.js +2 -2
- package/dist/terminal.js +2 -2
- package/dist/this-computer.js +3 -3
- package/dist/timeline/invoked-tool.d.ts +5 -0
- package/dist/timeline/tool-display-name.d.ts +2 -2
- package/dist/timeline/tool-icon.d.ts +14 -0
- package/dist/timeline/tool-presentation.d.ts +8 -3
- package/dist/timeline/types.d.ts +2 -0
- package/dist/{timeline-annotation-markers-X4K2IEOO.js → timeline-annotation-markers-KHNYNY2J.js} +5 -5
- package/dist/{timeline-annotation-selection-MEHBW676.js → timeline-annotation-selection-AXEDJHBP.js} +7 -7
- package/dist/{timeline-annotations-dialog-U2FPQ3UY.js → timeline-annotations-dialog-AV4ZBXRC.js} +9 -9
- package/dist/timeline-model.js +28 -26
- package/dist/ui/access-list.js +20 -20
- package/dist/ui/choice-cards.js +2 -2
- package/dist/ui/detail-page.js +2 -2
- package/dist/ui/detail-sheet.js +2 -2
- package/dist/ui/diff-view.js +2 -2
- package/dist/ui/disclosure.js +4 -4
- package/dist/ui/flush-form-page.js +3 -3
- package/dist/ui/form-dialog.js +2 -2
- package/dist/ui/list-row.js +5 -5
- package/dist/ui/revision-history.js +11 -11
- package/dist/ui/role-select.js +6 -6
- package/dist/ui/settings-nav.js +3 -3
- package/dist/usage.js +3 -3
- package/dist/workbench.js +11 -11
- package/package.json +4 -4
- package/src/app/app-state.tsx +3 -1
- package/src/app/components/capabilities/session-capability-card.tsx +14 -1
- package/src/app/components/capabilities/session-chrome-card.dom-fixture.tsx +377 -0
- package/src/app/components/capabilities/session-chrome-card.test.tsx +18 -0
- package/src/app/components/capabilities/session-chrome-card.tsx +243 -0
- package/src/app/components/capabilities/session-machine-card.dom-fixture.tsx +2 -0
- package/src/app/components/capabilities/session-machine-card.tsx +74 -16
- package/src/app/components/rail/session-list.tsx +254 -44
- package/src/app/components/rail/session-row-content.tsx +24 -2
- package/src/app/components/rail/session-shell.tsx +14 -9
- package/src/app/components/rail/site-session-group-heading.tsx +59 -20
- package/src/app/components/session/session-tenancy-control.tsx +18 -0
- package/src/app/components/session/site-origin-link.test.tsx +73 -0
- package/src/app/components/session/site-origin-link.tsx +4 -2
- package/src/app/embed/memory-navigation.tsx +1 -0
- package/src/app/lib/actions/held-modifier.test.ts +101 -0
- package/src/app/lib/actions/held-modifier.ts +108 -0
- package/src/app/lib/console-site.tsx +38 -0
- package/src/app/lib/navigation.tsx +4 -0
- package/src/app/lib/routes.tsx +42 -0
- package/src/app/lib/session-failure-toasts.ts +26 -0
- package/src/app/lib/session-ui-features.tsx +18 -4
- package/src/app/lib/sessions-group.tsx +219 -30
- package/src/app/lib/site-opened.tsx +48 -0
- package/src/app/lib/site-session-groups.test.ts +173 -6
- package/src/app/lib/site-view-routes.test.ts +55 -0
- package/src/app/lib/use-session-list-hint-refresh.tsx +44 -4
- package/src/app/routes/artifacts.tsx +2 -29
- package/src/app/routes/session-transient-failures.test.tsx +343 -0
- package/src/app/routes/session-unavailable.tsx +74 -3
- package/src/app/routes/session.tsx +4 -13
- package/src/app/routes/sessions-index.tsx +13 -9
- package/src/app/routes/site-view.test.tsx +476 -0
- package/src/app/routes/site-view.tsx +583 -0
- package/src/components/browser-viewer.tsx +16 -2
- package/src/hooks/internal.ts +129 -6
- package/src/hooks/use-client-config-flags.ts +8 -0
- package/src/hooks/use-session-events.ts +83 -9
- package/src/hooks/use-workspace-sessions.ts +21 -1
- package/src/messages/en.ts +3 -3
- package/src/session-list-model.ts +4 -0
- package/src/timeline/activity-rail.tsx +3 -2
- package/src/timeline/invoked-tool.ts +14 -4
- package/src/timeline/projection.ts +15 -8
- package/src/timeline/rolling-activity.tsx +6 -2
- package/src/timeline/tool-display-name.ts +2 -2
- package/src/timeline/tool-icon.tsx +165 -0
- package/src/timeline/tool-presentation.ts +207 -48
- package/src/timeline/tool-renderers.tsx +1 -70
- package/src/timeline/types.ts +2 -0
- package/styles/compiled.css +38 -0
- package/dist/chunk-22ZBT6CN.js +0 -50
- package/dist/chunk-22ZBT6CN.js.map +0 -1
- package/dist/chunk-324X6T6G.js.map +0 -1
- package/dist/chunk-5JZYPZ72.js.map +0 -1
- package/dist/chunk-6W3LF3DB.js.map +0 -1
- package/dist/chunk-BJIZ7PL7.js.map +0 -1
- package/dist/chunk-CKZW7A5S.js.map +0 -1
- package/dist/chunk-DDIBZA4X.js.map +0 -1
- package/dist/chunk-EHCUFCXM.js.map +0 -1
- package/dist/chunk-GZ64CASI.js.map +0 -1
- package/dist/chunk-I6VUUEXH.js.map +0 -1
- package/dist/chunk-KF3MF6FP.js.map +0 -1
- package/dist/chunk-MYNUBDU7.js.map +0 -1
- package/dist/chunk-NAWXARTY.js.map +0 -1
- package/dist/chunk-O77Q4NG2.js.map +0 -1
- package/dist/chunk-PM3OSANE.js.map +0 -1
- package/dist/chunk-Q262Y2YX.js.map +0 -1
- package/dist/chunk-Q4NM77K7.js.map +0 -1
- package/dist/chunk-Q4OHNGGB.js.map +0 -1
- package/dist/chunk-QIYBOFUV.js.map +0 -1
- package/dist/chunk-R25ZKOZR.js +0 -24
- package/dist/chunk-R25ZKOZR.js.map +0 -1
- package/dist/chunk-RGPYMHKI.js.map +0 -1
- package/dist/chunk-ROQOVH4N.js.map +0 -1
- package/dist/chunk-TQGJN5UZ.js.map +0 -1
- package/dist/chunk-V77JK73U.js.map +0 -1
- package/dist/chunk-VSQHDBHU.js.map +0 -1
- package/dist/chunk-VU2EWALC.js.map +0 -1
- package/dist/chunk-XFNLU7EW.js.map +0 -1
- package/dist/chunk-Z5WMLJKI.js.map +0 -1
- /package/dist/{browser-viewer-RYYQSRTC.js.map → app/components/capabilities/session-chrome-card.js.map} +0 -0
- /package/dist/{chat-interactive-block-ABCRKXJ4.js.map → app/lib/console-site.js.map} +0 -0
- /package/dist/{computer-viewer-KEDVLD42.js.map → app/lib/site-opened.js.map} +0 -0
- /package/dist/{embedded-new-voice-5PYRDZ6T.js.map → browser-viewer-QMCNV4RI.js.map} +0 -0
- /package/dist/{embedded-voice-PABC5NBD.js.map → chat-interactive-block-PMIAUXSO.js.map} +0 -0
- /package/dist/{chunk-GIZGNFIX.js.map → chunk-22FFOHPT.js.map} +0 -0
- /package/dist/{chunk-UHFWF6ZU.js.map → chunk-2FPS5H2D.js.map} +0 -0
- /package/dist/{chunk-5POTDNQT.js.map → chunk-2NC7NZCE.js.map} +0 -0
- /package/dist/{chunk-ZKYYZH6L.js.map → chunk-2QBYDGWO.js.map} +0 -0
- /package/dist/{chunk-TWXIFWBD.js.map → chunk-34EU25RL.js.map} +0 -0
- /package/dist/{chunk-LQKKSUCR.js.map → chunk-35BC2FU2.js.map} +0 -0
- /package/dist/{chunk-PTGRFAMH.js.map → chunk-3ABPIUCK.js.map} +0 -0
- /package/dist/{chunk-S4SC5SSV.js.map → chunk-3GU7AWG7.js.map} +0 -0
- /package/dist/{chunk-722UO6YQ.js.map → chunk-3PEXVG4D.js.map} +0 -0
- /package/dist/{chunk-OQAAI33Y.js.map → chunk-3RMKPHBL.js.map} +0 -0
- /package/dist/{chunk-GCGTYXJJ.js.map → chunk-3STBLX4O.js.map} +0 -0
- /package/dist/{chunk-YXIW7H4N.js.map → chunk-3X5FKDYQ.js.map} +0 -0
- /package/dist/{chunk-KTRKZRID.js.map → chunk-4GLLWX33.js.map} +0 -0
- /package/dist/{chunk-SD2K5ZN5.js.map → chunk-4LPA25NQ.js.map} +0 -0
- /package/dist/{chunk-DKCX643S.js.map → chunk-4RMN4E2Y.js.map} +0 -0
- /package/dist/{chunk-E5FCEDMU.js.map → chunk-4SAGYEVB.js.map} +0 -0
- /package/dist/{chunk-HTT3FB7T.js.map → chunk-4VK2R5QC.js.map} +0 -0
- /package/dist/{chunk-CKG2EG62.js.map → chunk-4XQC7VLT.js.map} +0 -0
- /package/dist/{chunk-IVOA3DXA.js.map → chunk-4YXAQMTD.js.map} +0 -0
- /package/dist/{chunk-HOJGAJAB.js.map → chunk-52WK2GGK.js.map} +0 -0
- /package/dist/{chunk-NYZQ7LO7.js.map → chunk-552UYIQ7.js.map} +0 -0
- /package/dist/{chunk-LEXPBQ56.js.map → chunk-5DSKMG2I.js.map} +0 -0
- /package/dist/{chunk-WNG757ID.js.map → chunk-5FA455GR.js.map} +0 -0
- /package/dist/{chunk-MNWQAYY3.js.map → chunk-5FEN3KYH.js.map} +0 -0
- /package/dist/{chunk-OSVHU2WU.js.map → chunk-5JHRMUAZ.js.map} +0 -0
- /package/dist/{chunk-RKB2Z457.js.map → chunk-5VGJXWQ2.js.map} +0 -0
- /package/dist/{chunk-GFUUFM2O.js.map → chunk-5W6ZDKRR.js.map} +0 -0
- /package/dist/{chunk-NDETTZQA.js.map → chunk-5W7KJ5NQ.js.map} +0 -0
- /package/dist/{chunk-Q35YZVDZ.js.map → chunk-5Y2FPLZE.js.map} +0 -0
- /package/dist/{chunk-F3NERYBQ.js.map → chunk-62VER7O4.js.map} +0 -0
- /package/dist/{chunk-FBMU3VK5.js.map → chunk-6DCEDIF6.js.map} +0 -0
- /package/dist/{chunk-WUHB422G.js.map → chunk-73WI7FL2.js.map} +0 -0
- /package/dist/{chunk-QECZVL7S.js.map → chunk-7FJMRJDG.js.map} +0 -0
- /package/dist/{chunk-7KGKDWWR.js.map → chunk-7HFLYNWN.js.map} +0 -0
- /package/dist/{chunk-XVM566II.js.map → chunk-7KIENXRE.js.map} +0 -0
- /package/dist/{chunk-CBY5CXBD.js.map → chunk-7NPCEBZE.js.map} +0 -0
- /package/dist/{chunk-46VBQG2D.js.map → chunk-7P4AQMGA.js.map} +0 -0
- /package/dist/{chunk-S7PVL7XH.js.map → chunk-A4BD4ZVB.js.map} +0 -0
- /package/dist/{chunk-73SOCVLS.js.map → chunk-AIEXYO2X.js.map} +0 -0
- /package/dist/{chunk-U7TC2XJQ.js.map → chunk-AJPW3SV4.js.map} +0 -0
- /package/dist/{chunk-HRJQAFKR.js.map → chunk-AX6YJA5U.js.map} +0 -0
- /package/dist/{chunk-P5WABK2H.js.map → chunk-BCM7C3MJ.js.map} +0 -0
- /package/dist/{chunk-DT7BORXG.js.map → chunk-BMJTNPWK.js.map} +0 -0
- /package/dist/{chunk-HIHO2QE7.js.map → chunk-BT2MVGHT.js.map} +0 -0
- /package/dist/{chunk-3XOISKZC.js.map → chunk-BXQYAAVE.js.map} +0 -0
- /package/dist/{chunk-IBTXYLBW.js.map → chunk-CCFWY4GF.js.map} +0 -0
- /package/dist/{chunk-ZOC3OP6F.js.map → chunk-CCR33J7L.js.map} +0 -0
- /package/dist/{chunk-GTQ3SNEI.js.map → chunk-CD3MO3IC.js.map} +0 -0
- /package/dist/{chunk-WSMYOLHG.js.map → chunk-CDEXRJB6.js.map} +0 -0
- /package/dist/{chunk-3GLAPCVI.js.map → chunk-CFFNT2OY.js.map} +0 -0
- /package/dist/{chunk-FUSFVUIJ.js.map → chunk-CMLJSF2F.js.map} +0 -0
- /package/dist/{chunk-O4DYOSOL.js.map → chunk-CP7ZQHBW.js.map} +0 -0
- /package/dist/{chunk-IOKSNX74.js.map → chunk-D5OWJZQR.js.map} +0 -0
- /package/dist/{chunk-SQGXMHJO.js.map → chunk-DGLRZMXL.js.map} +0 -0
- /package/dist/{chunk-GNEHAPKV.js.map → chunk-DJFTH2DI.js.map} +0 -0
- /package/dist/{chunk-HQG4SLTE.js.map → chunk-DYJGYGPB.js.map} +0 -0
- /package/dist/{chunk-4EAF3HSD.js.map → chunk-EJ7WARW7.js.map} +0 -0
- /package/dist/{chunk-3AA6RNGE.js.map → chunk-ENS6E4RZ.js.map} +0 -0
- /package/dist/{chunk-OOEO4MKY.js.map → chunk-EPWD4KRA.js.map} +0 -0
- /package/dist/{chunk-V5RJAWRP.js.map → chunk-EQE3MNQN.js.map} +0 -0
- /package/dist/{chunk-TSBE4KOQ.js.map → chunk-EWL6NDOO.js.map} +0 -0
- /package/dist/{chunk-OO2T63BY.js.map → chunk-EYS4ZOF5.js.map} +0 -0
- /package/dist/{chunk-IC7KNOBB.js.map → chunk-FDAV72IX.js.map} +0 -0
- /package/dist/{chunk-AG7VGUIW.js.map → chunk-FFNPUSVO.js.map} +0 -0
- /package/dist/{chunk-P5T36BA3.js.map → chunk-FRP64DEK.js.map} +0 -0
- /package/dist/{chunk-KBF3SE7G.js.map → chunk-FSP334UU.js.map} +0 -0
- /package/dist/{chunk-ZHFKMMOT.js.map → chunk-FTX5CNHA.js.map} +0 -0
- /package/dist/{chunk-KYBALSWW.js.map → chunk-FWOBNL2A.js.map} +0 -0
- /package/dist/{chunk-HJ5XWW62.js.map → chunk-FWYEZ3LE.js.map} +0 -0
- /package/dist/{chunk-WSLPZ43N.js.map → chunk-G4HQUBO4.js.map} +0 -0
- /package/dist/{chunk-CSHBR2IZ.js.map → chunk-GDLDBR6B.js.map} +0 -0
- /package/dist/{chunk-G3S2F35T.js.map → chunk-GHHM6WN4.js.map} +0 -0
- /package/dist/{chunk-OANSIX34.js.map → chunk-GRSODLVO.js.map} +0 -0
- /package/dist/{chunk-EU6XSQFM.js.map → chunk-GXW2I2M2.js.map} +0 -0
- /package/dist/{chunk-4246UYVG.js.map → chunk-GZS37O3G.js.map} +0 -0
- /package/dist/{chunk-Y7WMW74G.js.map → chunk-HQWVDQXW.js.map} +0 -0
- /package/dist/{chunk-YTZQV2DD.js.map → chunk-HU6JTNWF.js.map} +0 -0
- /package/dist/{chunk-QRVNI5V6.js.map → chunk-I6KIQKU6.js.map} +0 -0
- /package/dist/{chunk-BNUPYHHZ.js.map → chunk-IDXTASGN.js.map} +0 -0
- /package/dist/{chunk-L6RXRRN3.js.map → chunk-ILDOW2IQ.js.map} +0 -0
- /package/dist/{chunk-VUHPA3XQ.js.map → chunk-ITX2TB4K.js.map} +0 -0
- /package/dist/{chunk-ETCB6SUJ.js.map → chunk-J22HD2PB.js.map} +0 -0
- /package/dist/{chunk-U47YDYLQ.js.map → chunk-J5MEDX7C.js.map} +0 -0
- /package/dist/{chunk-6VQTHC4W.js.map → chunk-J7FBBLHF.js.map} +0 -0
- /package/dist/{chunk-QZRDCFHI.js.map → chunk-JM4HQPAI.js.map} +0 -0
- /package/dist/{chunk-PIVGX42P.js.map → chunk-JNY5MT3I.js.map} +0 -0
- /package/dist/{chunk-XWWXIZFP.js.map → chunk-JO6R5EXF.js.map} +0 -0
- /package/dist/{chunk-MM7OKOTE.js.map → chunk-JQCGPTZ6.js.map} +0 -0
- /package/dist/{chunk-KNFDWNCH.js.map → chunk-JXT5QDJC.js.map} +0 -0
- /package/dist/{chunk-OR37STQZ.js.map → chunk-KEXYBG7Q.js.map} +0 -0
- /package/dist/{chunk-AZVANYMB.js.map → chunk-KUNFUSZ7.js.map} +0 -0
- /package/dist/{chunk-DXZNDKQD.js.map → chunk-LEEJBZ5B.js.map} +0 -0
- /package/dist/{chunk-C535KSTY.js.map → chunk-LF5CBAOS.js.map} +0 -0
- /package/dist/{chunk-RIMKJBCD.js.map → chunk-LMPTC4CX.js.map} +0 -0
- /package/dist/{chunk-3KVWXKD6.js.map → chunk-LQ47YL6E.js.map} +0 -0
- /package/dist/{chunk-H5WGWAYX.js.map → chunk-LT4J7RHI.js.map} +0 -0
- /package/dist/{chunk-DSGMYES6.js.map → chunk-MCTTONOW.js.map} +0 -0
- /package/dist/{chunk-IGHELZI7.js.map → chunk-MIECLOQC.js.map} +0 -0
- /package/dist/{chunk-FM4OUCC2.js.map → chunk-MOKYT3X3.js.map} +0 -0
- /package/dist/{chunk-RKILMLA7.js.map → chunk-MXLKI7BI.js.map} +0 -0
- /package/dist/{chunk-45WYYFP6.js.map → chunk-N3ZP4IDU.js.map} +0 -0
- /package/dist/{chunk-XRRSFQEV.js.map → chunk-NAZZLAWX.js.map} +0 -0
- /package/dist/{chunk-UWJ5P5CU.js.map → chunk-NEK4WB5P.js.map} +0 -0
- /package/dist/{chunk-6L7U46Y2.js.map → chunk-NKNVIO66.js.map} +0 -0
- /package/dist/{chunk-JKUICTLM.js.map → chunk-NLAFNMPK.js.map} +0 -0
- /package/dist/{chunk-4LKNIGHB.js.map → chunk-O2SBHS2N.js.map} +0 -0
- /package/dist/{chunk-D3RK3NGM.js.map → chunk-PCFK7HKD.js.map} +0 -0
- /package/dist/{chunk-VVCDB2T7.js.map → chunk-PCJLH45G.js.map} +0 -0
- /package/dist/{chunk-PZ24CYDO.js.map → chunk-PFAUGEV5.js.map} +0 -0
- /package/dist/{chunk-HGMWMK5K.js.map → chunk-PO3BH3KQ.js.map} +0 -0
- /package/dist/{chunk-B74GSYR6.js.map → chunk-PUTS4DYW.js.map} +0 -0
- /package/dist/{chunk-JSIDLTTG.js.map → chunk-PZ2V2XIK.js.map} +0 -0
- /package/dist/{chunk-TMEQPODK.js.map → chunk-PZ37VDB5.js.map} +0 -0
- /package/dist/{chunk-LVONK3YQ.js.map → chunk-QRKTESVE.js.map} +0 -0
- /package/dist/{chunk-HT5WSUC7.js.map → chunk-QXEDIDBZ.js.map} +0 -0
- /package/dist/{chunk-WURSS6MP.js.map → chunk-R66YMYJU.js.map} +0 -0
- /package/dist/{chunk-HDHK3SXK.js.map → chunk-RFLYID6H.js.map} +0 -0
- /package/dist/{chunk-VMFID36H.js.map → chunk-RQNZDTKT.js.map} +0 -0
- /package/dist/{chunk-A2EWJQXX.js.map → chunk-SM5QX6UK.js.map} +0 -0
- /package/dist/{chunk-FBE6AIIW.js.map → chunk-SOKNCW5U.js.map} +0 -0
- /package/dist/{chunk-PFKTGZKE.js.map → chunk-SY2AAZNB.js.map} +0 -0
- /package/dist/{chunk-DFZMKCVP.js.map → chunk-TIQPKOFW.js.map} +0 -0
- /package/dist/{chunk-HPPKLBTJ.js.map → chunk-TJQDL3JH.js.map} +0 -0
- /package/dist/{chunk-FD4Q5KFL.js.map → chunk-TLL22FFO.js.map} +0 -0
- /package/dist/{chunk-QM5H4FPT.js.map → chunk-TV6BWONY.js.map} +0 -0
- /package/dist/{chunk-EDFJBX3V.js.map → chunk-U6MPB3K6.js.map} +0 -0
- /package/dist/{chunk-TZD3U2S5.js.map → chunk-ULJAOMJA.js.map} +0 -0
- /package/dist/{chunk-H5EVWF6L.js.map → chunk-UNNJUJVD.js.map} +0 -0
- /package/dist/{chunk-Z6DKXQG7.js.map → chunk-UXXFMF4X.js.map} +0 -0
- /package/dist/{chunk-OBQVTCTW.js.map → chunk-UYNCMZX5.js.map} +0 -0
- /package/dist/{chunk-KZHW27BV.js.map → chunk-V4QZ7UBK.js.map} +0 -0
- /package/dist/{chunk-NEVRLD77.js.map → chunk-VH5EGTH2.js.map} +0 -0
- /package/dist/{chunk-QEJTQTF5.js.map → chunk-W6T5HR3Z.js.map} +0 -0
- /package/dist/{chunk-H6WWEKEV.js.map → chunk-WCMG4HYI.js.map} +0 -0
- /package/dist/{chunk-GZLLDA6P.js.map → chunk-WEFN327U.js.map} +0 -0
- /package/dist/{chunk-VW3BBTMA.js.map → chunk-WKHUZIOW.js.map} +0 -0
- /package/dist/{chunk-ANHUMDJX.js.map → chunk-WNDTLK44.js.map} +0 -0
- /package/dist/{chunk-2DS4UOYQ.js.map → chunk-WSZQNTVN.js.map} +0 -0
- /package/dist/{chunk-Z2DAWUO3.js.map → chunk-XMNUZUUA.js.map} +0 -0
- /package/dist/{chunk-GAIM5RNE.js.map → chunk-XN7NSPE6.js.map} +0 -0
- /package/dist/{chunk-FLGUVRR7.js.map → chunk-Y5BSA3I7.js.map} +0 -0
- /package/dist/{chunk-QILLL4JE.js.map → chunk-YEROLKOA.js.map} +0 -0
- /package/dist/{chunk-NDF3SH3X.js.map → chunk-YJPKDRI2.js.map} +0 -0
- /package/dist/{chunk-VAIESMPY.js.map → chunk-YVBHGMKC.js.map} +0 -0
- /package/dist/{chunk-AD22P5X3.js.map → chunk-YXA2EKV3.js.map} +0 -0
- /package/dist/{chunk-FDNJVZRE.js.map → chunk-YYCOSTUU.js.map} +0 -0
- /package/dist/{chunk-NLMTNEWW.js.map → chunk-Z6E6TUAE.js.map} +0 -0
- /package/dist/{chunk-BJW7G6EF.js.map → chunk-Z7IGO5EA.js.map} +0 -0
- /package/dist/{chunk-N7JKT4ZU.js.map → chunk-ZEIFJ6PX.js.map} +0 -0
- /package/dist/{chunk-VRGOOVDB.js.map → chunk-ZVVT72MT.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-CURJ247L.js.map → computer-viewer-25AJIDYA.js.map} +0 -0
- /package/dist/{sandbox-files-4FBG3GS2.js.map → embedded-new-voice-RZZEJT6M.js.map} +0 -0
- /package/dist/{session-realtime-2XIB254N.js.map → embedded-voice-6OKSSPLW.js.map} +0 -0
- /package/dist/{fleet-decision-row-QNSTP3VX.js.map → fleet-decision-row-NN2HXDX3.js.map} +0 -0
- /package/dist/{platform-activity-row-BMXXNZKX.js.map → platform-activity-row-ENQVIFTL.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-X4K2IEOO.js.map → timeline-annotation-markers-KHNYNY2J.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-MEHBW676.js.map → timeline-annotation-selection-AXEDJHBP.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-U2FPQ3UY.js.map → timeline-annotations-dialog-AV4ZBXRC.js.map} +0 -0
|
@@ -0,0 +1,792 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
EmptyQueueStateSurface
|
|
4
|
+
} from "./chunk-5YFY4SFC.js";
|
|
5
|
+
import {
|
|
6
|
+
useWorkspaceSessions
|
|
7
|
+
} from "./chunk-V3K4RQO7.js";
|
|
8
|
+
import {
|
|
9
|
+
NewConversation,
|
|
10
|
+
SessionConversation,
|
|
11
|
+
SessionProxyScope,
|
|
12
|
+
useHostTheme
|
|
13
|
+
} from "./chunk-7XO7YKPC.js";
|
|
14
|
+
import {
|
|
15
|
+
notifyObserver
|
|
16
|
+
} from "./chunk-DJFTH2DI.js";
|
|
17
|
+
import {
|
|
18
|
+
useClientConfigFlags
|
|
19
|
+
} from "./chunk-XV6ZYRHK.js";
|
|
20
|
+
import {
|
|
21
|
+
usePolledValue
|
|
22
|
+
} from "./chunk-2KO2G3RI.js";
|
|
23
|
+
import {
|
|
24
|
+
useErrorMessage
|
|
25
|
+
} from "./chunk-CM7LVUKC.js";
|
|
26
|
+
import {
|
|
27
|
+
useOpenGeni
|
|
28
|
+
} from "./chunk-TVQCDDSZ.js";
|
|
29
|
+
import {
|
|
30
|
+
formatClockTime,
|
|
31
|
+
formatRelativeTime
|
|
32
|
+
} from "./chunk-SJGAHTY5.js";
|
|
33
|
+
import {
|
|
34
|
+
cn
|
|
35
|
+
} from "./chunk-TXS65BB2.js";
|
|
36
|
+
import {
|
|
37
|
+
useOpenGeniText
|
|
38
|
+
} from "./chunk-JFK7NTEA.js";
|
|
39
|
+
|
|
40
|
+
// src/components/queue-surface.tsx
|
|
41
|
+
import { Loader2Icon } from "lucide-react";
|
|
42
|
+
import { lazy, Suspense } from "react";
|
|
43
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
44
|
+
var loadQueueSurface = () => import("./queue-surface-implementation-4SHOQPQQ.js");
|
|
45
|
+
var QueueSurface = createQueueSurface(loadQueueSurface);
|
|
46
|
+
function createQueueSurface(loadImplementation) {
|
|
47
|
+
const LazyQueueSurface = lazy(async () => ({
|
|
48
|
+
default: (await loadImplementation()).QueueSurface
|
|
49
|
+
}));
|
|
50
|
+
return function QueueSurfaceBoundary(props) {
|
|
51
|
+
const { queue } = props;
|
|
52
|
+
if (queue.queue.length + queue.pendingInputs.length === 0) {
|
|
53
|
+
if (!queue.stoppingPreviousAttempt && !queue.error && !queue.mutationError) return null;
|
|
54
|
+
return /* @__PURE__ */ jsx(EmptyQueueStateSurface, { queue });
|
|
55
|
+
}
|
|
56
|
+
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(QueueSurfaceFallback, {}), children: /* @__PURE__ */ jsx(LazyQueueSurface, { ...props }) });
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function QueueSurfaceFallback() {
|
|
60
|
+
const t = useOpenGeniText();
|
|
61
|
+
return /* @__PURE__ */ jsx(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
"aria-live": "polite",
|
|
65
|
+
className: "og-root mx-auto mb-2 w-full max-w-3xl shrink-0 px-4 sm:px-6",
|
|
66
|
+
"data-testid": "queue-surface-loading",
|
|
67
|
+
role: "status",
|
|
68
|
+
children: /* @__PURE__ */ jsx("div", { className: "overflow-hidden rounded-lg border border-border bg-surface/80 shadow-sm", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-3 py-2 text-og-control text-fg-muted pointer-coarse:min-h-[44px]", children: [
|
|
69
|
+
/* @__PURE__ */ jsx(
|
|
70
|
+
Loader2Icon,
|
|
71
|
+
{
|
|
72
|
+
"aria-hidden": "true",
|
|
73
|
+
className: "size-3.5 shrink-0 animate-spin motion-reduce:animate-none"
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
t("queueSurface.loadingInputs")
|
|
77
|
+
] }) })
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// src/components/session-list.tsx
|
|
83
|
+
import { deriveSessionDisplayTitle } from "@opengeni/sdk";
|
|
84
|
+
import { ArchiveIcon, PencilIcon, PlusIcon } from "lucide-react";
|
|
85
|
+
import { useEffect, useRef, useState } from "react";
|
|
86
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
87
|
+
var DEFAULT_LABELS = (t) => ({
|
|
88
|
+
heading: t("sessionList.chats"),
|
|
89
|
+
newChat: t("sessionList.newChat"),
|
|
90
|
+
empty: t("sessionList.noChatsYet"),
|
|
91
|
+
loading: t("sessionList.loadingChats"),
|
|
92
|
+
loadMore: t("sessionList.showMore"),
|
|
93
|
+
rename: t("sessionList.rename"),
|
|
94
|
+
archive: t("sessionList.archive"),
|
|
95
|
+
save: t("sessionList.save"),
|
|
96
|
+
cancel: t("sessionList.cancel")
|
|
97
|
+
});
|
|
98
|
+
function SessionList({
|
|
99
|
+
client,
|
|
100
|
+
workspaceId,
|
|
101
|
+
selectedSessionId,
|
|
102
|
+
onSelect,
|
|
103
|
+
onNewChat,
|
|
104
|
+
rename = true,
|
|
105
|
+
archive = true,
|
|
106
|
+
onArchived,
|
|
107
|
+
pageSize = 30,
|
|
108
|
+
refreshKey,
|
|
109
|
+
labels: labelOverrides,
|
|
110
|
+
className
|
|
111
|
+
}) {
|
|
112
|
+
const t = useOpenGeniText();
|
|
113
|
+
const labels = { ...DEFAULT_LABELS(t), ...labelOverrides };
|
|
114
|
+
const scope = { client, workspaceId };
|
|
115
|
+
const context = useOpenGeni(scope);
|
|
116
|
+
const [limit, setLimit] = useState(pageSize);
|
|
117
|
+
const list = useWorkspaceSessions({
|
|
118
|
+
...scope,
|
|
119
|
+
parentSessionId: null,
|
|
120
|
+
archiveStatus: "active",
|
|
121
|
+
sortBy: "updatedAt",
|
|
122
|
+
limit
|
|
123
|
+
});
|
|
124
|
+
const refresh = list.refresh;
|
|
125
|
+
const firstRefreshKey = useRef(refreshKey);
|
|
126
|
+
useEffect(() => {
|
|
127
|
+
if (Object.is(refreshKey, firstRefreshKey.current)) return;
|
|
128
|
+
firstRefreshKey.current = refreshKey;
|
|
129
|
+
void refresh();
|
|
130
|
+
}, [refresh, refreshKey]);
|
|
131
|
+
const [editing, setEditing] = useState(null);
|
|
132
|
+
const [busy, setBusy] = useState(null);
|
|
133
|
+
const [error, setError] = useState(null);
|
|
134
|
+
const formatError = useErrorMessage();
|
|
135
|
+
const archiveClient = context.client;
|
|
136
|
+
const config = useClientConfigFlags(context.client);
|
|
137
|
+
const canArchive = archive && config.archive && typeof archiveClient.updateSessionArchive === "function";
|
|
138
|
+
const run = async (id, action) => {
|
|
139
|
+
setBusy(id);
|
|
140
|
+
setError(null);
|
|
141
|
+
try {
|
|
142
|
+
await action();
|
|
143
|
+
await list.refresh();
|
|
144
|
+
} catch (cause) {
|
|
145
|
+
setError({ cause });
|
|
146
|
+
} finally {
|
|
147
|
+
setBusy(null);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
const saveTitle = (event) => {
|
|
151
|
+
event.preventDefault();
|
|
152
|
+
const current = editing;
|
|
153
|
+
if (!current) return;
|
|
154
|
+
const title = current.title.trim();
|
|
155
|
+
setEditing(null);
|
|
156
|
+
if (!title) return;
|
|
157
|
+
void run(
|
|
158
|
+
current.id,
|
|
159
|
+
() => context.client.updateSession(context.workspaceId, current.id, { title })
|
|
160
|
+
);
|
|
161
|
+
};
|
|
162
|
+
const archiveSession = (session) => void run(session.id, async () => {
|
|
163
|
+
await archiveClient.updateSessionArchive(context.workspaceId, session.id, {
|
|
164
|
+
archived: true
|
|
165
|
+
});
|
|
166
|
+
onArchived?.(session.id);
|
|
167
|
+
});
|
|
168
|
+
const sessions = list.sessions;
|
|
169
|
+
return /* @__PURE__ */ jsxs2(
|
|
170
|
+
"nav",
|
|
171
|
+
{
|
|
172
|
+
className: cn("flex min-h-0 min-w-0 flex-col gap-1 text-og-fg", className),
|
|
173
|
+
"aria-label": labels.heading,
|
|
174
|
+
"data-og-session-list": "",
|
|
175
|
+
children: [
|
|
176
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between gap-2 px-2 pb-1 pt-2", children: [
|
|
177
|
+
/* @__PURE__ */ jsx2("h2", { className: "text-og-sm font-semibold text-og-fg-muted", children: labels.heading }),
|
|
178
|
+
onNewChat ? /* @__PURE__ */ jsxs2(
|
|
179
|
+
"button",
|
|
180
|
+
{
|
|
181
|
+
type: "button",
|
|
182
|
+
onClick: onNewChat,
|
|
183
|
+
className: "inline-flex items-center gap-1 rounded-md px-2 py-1 text-og-control text-og-fg hover:bg-og-surface-2",
|
|
184
|
+
"data-og-new-chat": "",
|
|
185
|
+
children: [
|
|
186
|
+
/* @__PURE__ */ jsx2(PlusIcon, { className: "size-3.5", "aria-hidden": true }),
|
|
187
|
+
labels.newChat
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
) : null
|
|
191
|
+
] }),
|
|
192
|
+
error || list.error ? /* @__PURE__ */ jsx2("p", { role: "alert", className: "px-2 text-og-xs text-og-status-failed", children: formatError(error ? error.cause : list.error) }) : null,
|
|
193
|
+
/* @__PURE__ */ jsxs2("ul", { className: "flex min-h-0 flex-1 flex-col gap-0.5 overflow-y-auto px-1 pb-2", children: [
|
|
194
|
+
list.loading && sessions.length === 0 ? /* @__PURE__ */ jsx2("li", { className: "px-2 py-2 text-og-xs text-og-fg-subtle", children: labels.loading }) : null,
|
|
195
|
+
!list.loading && !list.error && sessions.length === 0 ? /* @__PURE__ */ jsx2("li", { className: "px-2 py-2 text-og-xs text-og-fg-subtle", children: labels.empty }) : null,
|
|
196
|
+
sessions.map((session) => {
|
|
197
|
+
const selected = session.id === selectedSessionId;
|
|
198
|
+
const title = deriveSessionDisplayTitle(session);
|
|
199
|
+
if (editing?.id === session.id) {
|
|
200
|
+
return /* @__PURE__ */ jsx2("li", { children: /* @__PURE__ */ jsxs2("form", { onSubmit: saveTitle, className: "flex items-center gap-1 px-1 py-1", children: [
|
|
201
|
+
/* @__PURE__ */ jsx2(
|
|
202
|
+
"input",
|
|
203
|
+
{
|
|
204
|
+
"aria-label": labels.rename,
|
|
205
|
+
value: editing.title,
|
|
206
|
+
maxLength: 200,
|
|
207
|
+
autoFocus: true,
|
|
208
|
+
onChange: (event) => setEditing({ id: session.id, title: event.target.value }),
|
|
209
|
+
onKeyDown: (event) => {
|
|
210
|
+
if (event.key === "Escape") setEditing(null);
|
|
211
|
+
},
|
|
212
|
+
className: "min-w-0 flex-1 rounded-md border border-og-border bg-og-bg px-2 py-1 text-og-sm text-og-fg"
|
|
213
|
+
}
|
|
214
|
+
),
|
|
215
|
+
/* @__PURE__ */ jsx2(
|
|
216
|
+
"button",
|
|
217
|
+
{
|
|
218
|
+
type: "submit",
|
|
219
|
+
className: "rounded-md px-2 py-1 text-og-xs text-og-fg hover:bg-og-surface-2",
|
|
220
|
+
children: labels.save
|
|
221
|
+
}
|
|
222
|
+
)
|
|
223
|
+
] }) }, session.id);
|
|
224
|
+
}
|
|
225
|
+
return /* @__PURE__ */ jsxs2("li", { className: "group relative", children: [
|
|
226
|
+
/* @__PURE__ */ jsxs2(
|
|
227
|
+
"button",
|
|
228
|
+
{
|
|
229
|
+
type: "button",
|
|
230
|
+
onClick: () => onSelect(session.id),
|
|
231
|
+
"aria-current": selected ? "true" : void 0,
|
|
232
|
+
disabled: busy === session.id,
|
|
233
|
+
className: cn(
|
|
234
|
+
"flex w-full min-w-0 flex-col items-start rounded-md px-2 py-1.5 text-left",
|
|
235
|
+
selected ? "bg-og-surface-2" : "hover:bg-og-surface-1"
|
|
236
|
+
),
|
|
237
|
+
"data-og-session-row": "",
|
|
238
|
+
children: [
|
|
239
|
+
/* @__PURE__ */ jsx2("span", { className: "w-full truncate pr-12 text-og-sm text-og-fg", children: title }),
|
|
240
|
+
/* @__PURE__ */ jsx2("span", { className: "text-og-xs text-og-fg-subtle", children: formatRelativeTime(t, session.updatedAt) })
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
),
|
|
244
|
+
/* @__PURE__ */ jsxs2("span", { className: "absolute right-1 top-1.5 hidden gap-0.5 group-focus-within:flex group-hover:flex pointer-coarse:flex", children: [
|
|
245
|
+
rename ? /* @__PURE__ */ jsx2(
|
|
246
|
+
"button",
|
|
247
|
+
{
|
|
248
|
+
type: "button",
|
|
249
|
+
"aria-label": `${labels.rename}: ${title}`,
|
|
250
|
+
onClick: () => setEditing({ id: session.id, title: session.title ?? title }),
|
|
251
|
+
className: "rounded p-1 text-og-fg-subtle hover:bg-og-surface-3 hover:text-og-fg",
|
|
252
|
+
children: /* @__PURE__ */ jsx2(PencilIcon, { className: "size-3.5", "aria-hidden": true })
|
|
253
|
+
}
|
|
254
|
+
) : null,
|
|
255
|
+
canArchive ? /* @__PURE__ */ jsx2(
|
|
256
|
+
"button",
|
|
257
|
+
{
|
|
258
|
+
type: "button",
|
|
259
|
+
"aria-label": `${labels.archive}: ${title}`,
|
|
260
|
+
onClick: () => archiveSession(session),
|
|
261
|
+
className: "rounded p-1 text-og-fg-subtle hover:bg-og-surface-3 hover:text-og-fg",
|
|
262
|
+
children: /* @__PURE__ */ jsx2(ArchiveIcon, { className: "size-3.5", "aria-hidden": true })
|
|
263
|
+
}
|
|
264
|
+
) : null
|
|
265
|
+
] })
|
|
266
|
+
] }, session.id);
|
|
267
|
+
}),
|
|
268
|
+
list.nextCursor ? /* @__PURE__ */ jsx2("li", { children: /* @__PURE__ */ jsx2(
|
|
269
|
+
"button",
|
|
270
|
+
{
|
|
271
|
+
type: "button",
|
|
272
|
+
onClick: () => setLimit((current) => current + pageSize),
|
|
273
|
+
className: "w-full rounded-md px-2 py-1.5 text-left text-og-xs text-og-fg-muted hover:bg-og-surface-1",
|
|
274
|
+
children: labels.loadMore
|
|
275
|
+
}
|
|
276
|
+
) }) : null
|
|
277
|
+
] })
|
|
278
|
+
]
|
|
279
|
+
}
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// src/components/open-geni-chat.tsx
|
|
284
|
+
import { MenuIcon, XIcon } from "lucide-react";
|
|
285
|
+
import { useCallback, useEffect as useEffect2, useRef as useRef2, useState as useState2 } from "react";
|
|
286
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
287
|
+
var DEFAULT_LABELS2 = (t) => ({
|
|
288
|
+
openChats: t("openGeniChat.openChats"),
|
|
289
|
+
closeChats: t("openGeniChat.closeChats"),
|
|
290
|
+
newChatPlaceholder: t("openGeniChat.askAnything"),
|
|
291
|
+
newChatTitle: t("openGeniChat.howCanIHelp"),
|
|
292
|
+
send: t("openGeniChat.send"),
|
|
293
|
+
newChatUnavailable: t("openGeniChat.newChatsAreNotEnabled")
|
|
294
|
+
});
|
|
295
|
+
function OpenGeniChat({ baseUrl, headers, fetch, ...props }) {
|
|
296
|
+
if (baseUrl === void 0) return /* @__PURE__ */ jsx3(Chat, { ...props });
|
|
297
|
+
const { client, workspaceId, ...rest } = props;
|
|
298
|
+
return /* @__PURE__ */ jsx3(
|
|
299
|
+
SessionProxyScope,
|
|
300
|
+
{
|
|
301
|
+
baseUrl,
|
|
302
|
+
workspaceId,
|
|
303
|
+
client,
|
|
304
|
+
headers,
|
|
305
|
+
fetch,
|
|
306
|
+
children: /* @__PURE__ */ jsx3(Chat, { ...rest })
|
|
307
|
+
}
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
function Chat({
|
|
311
|
+
client,
|
|
312
|
+
workspaceId,
|
|
313
|
+
sessionId: controlledSessionId,
|
|
314
|
+
defaultSessionId = null,
|
|
315
|
+
onSessionChange,
|
|
316
|
+
createSession,
|
|
317
|
+
newChat = true,
|
|
318
|
+
conversationProps,
|
|
319
|
+
listProps,
|
|
320
|
+
labels: labelOverrides,
|
|
321
|
+
className,
|
|
322
|
+
height = "100%",
|
|
323
|
+
theme,
|
|
324
|
+
surface
|
|
325
|
+
}) {
|
|
326
|
+
const t = useOpenGeniText();
|
|
327
|
+
const labels = { ...DEFAULT_LABELS2(t), ...labelOverrides };
|
|
328
|
+
const scope = { client, workspaceId };
|
|
329
|
+
const context = useOpenGeni(scope);
|
|
330
|
+
const [uncontrolled, setUncontrolled] = useState2(defaultSessionId);
|
|
331
|
+
const selected = controlledSessionId !== void 0 ? controlledSessionId : uncontrolled;
|
|
332
|
+
const [drawerOpen, setDrawerOpen] = useState2(false);
|
|
333
|
+
const [listRevision, setListRevision] = useState2(0);
|
|
334
|
+
const [handoff, setHandoff] = useState2(null);
|
|
335
|
+
const root = useRef2(null);
|
|
336
|
+
const hostTheme = useHostTheme(root, { theme, surface });
|
|
337
|
+
const config = useClientConfigFlags(context.client);
|
|
338
|
+
const canCreate = createSession !== void 0 || config.sessionCreation;
|
|
339
|
+
const select = useCallback(
|
|
340
|
+
(next) => {
|
|
341
|
+
setHandoff(null);
|
|
342
|
+
if (controlledSessionId === void 0) setUncontrolled(next);
|
|
343
|
+
notifyObserver(onSessionChange, next);
|
|
344
|
+
setDrawerOpen(false);
|
|
345
|
+
},
|
|
346
|
+
[controlledSessionId, onSessionChange]
|
|
347
|
+
);
|
|
348
|
+
useEffect2(() => {
|
|
349
|
+
if (!handoff) return;
|
|
350
|
+
if (selected === handoff.sessionId && !handoff.realtimeModel) setHandoff(null);
|
|
351
|
+
else if (selected !== null && selected !== handoff.sessionId) setHandoff(null);
|
|
352
|
+
}, [handoff, selected]);
|
|
353
|
+
const list = /* @__PURE__ */ jsx3(
|
|
354
|
+
SessionList,
|
|
355
|
+
{
|
|
356
|
+
...scope,
|
|
357
|
+
...listProps,
|
|
358
|
+
labels,
|
|
359
|
+
selectedSessionId: selected,
|
|
360
|
+
onSelect: select,
|
|
361
|
+
onNewChat: newChat && canCreate ? () => select(null) : void 0,
|
|
362
|
+
onArchived: (archivedId) => {
|
|
363
|
+
if (archivedId === selected) select(null);
|
|
364
|
+
},
|
|
365
|
+
refreshKey: listRevision,
|
|
366
|
+
className: "h-full"
|
|
367
|
+
}
|
|
368
|
+
);
|
|
369
|
+
return /* @__PURE__ */ jsxs3(
|
|
370
|
+
"div",
|
|
371
|
+
{
|
|
372
|
+
ref: root,
|
|
373
|
+
className: cn(
|
|
374
|
+
"og-root og-chat relative flex min-h-0 min-w-0 bg-og-bg text-og-base text-og-fg",
|
|
375
|
+
className
|
|
376
|
+
),
|
|
377
|
+
style: { ...hostTheme.style, height },
|
|
378
|
+
"data-og-theme": hostTheme.attribute,
|
|
379
|
+
"data-og-host-theme": "",
|
|
380
|
+
"data-og-chat": "",
|
|
381
|
+
children: [
|
|
382
|
+
/* @__PURE__ */ jsx3(
|
|
383
|
+
"aside",
|
|
384
|
+
{
|
|
385
|
+
className: "og-chat-sidebar min-h-0 w-64 shrink-0 flex-col border-r border-og-border",
|
|
386
|
+
"data-og-chat-sidebar": "",
|
|
387
|
+
children: list
|
|
388
|
+
}
|
|
389
|
+
),
|
|
390
|
+
drawerOpen ? /* @__PURE__ */ jsxs3("div", { className: "og-chat-drawer absolute inset-0 z-30 flex", "data-og-chat-drawer": "", children: [
|
|
391
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex h-full w-[min(20rem,85%)] flex-col border-r border-og-border bg-og-bg shadow-og-lg", children: [
|
|
392
|
+
/* @__PURE__ */ jsx3("div", { className: "flex justify-end p-1", children: /* @__PURE__ */ jsx3(
|
|
393
|
+
"button",
|
|
394
|
+
{
|
|
395
|
+
type: "button",
|
|
396
|
+
"aria-label": labels.closeChats,
|
|
397
|
+
onClick: () => setDrawerOpen(false),
|
|
398
|
+
className: "rounded p-1.5 text-og-fg-muted hover:bg-og-surface-2",
|
|
399
|
+
children: /* @__PURE__ */ jsx3(XIcon, { className: "size-4", "aria-hidden": true })
|
|
400
|
+
}
|
|
401
|
+
) }),
|
|
402
|
+
/* @__PURE__ */ jsx3("div", { className: "min-h-0 flex-1", children: list })
|
|
403
|
+
] }),
|
|
404
|
+
/* @__PURE__ */ jsx3(
|
|
405
|
+
"button",
|
|
406
|
+
{
|
|
407
|
+
type: "button",
|
|
408
|
+
"aria-label": labels.closeChats,
|
|
409
|
+
className: "flex-1 bg-black/25",
|
|
410
|
+
onClick: () => setDrawerOpen(false)
|
|
411
|
+
}
|
|
412
|
+
)
|
|
413
|
+
] }) : null,
|
|
414
|
+
/* @__PURE__ */ jsxs3("main", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
|
|
415
|
+
/* @__PURE__ */ jsxs3("div", { className: "og-chat-menu flex items-center gap-2 px-2 py-1", children: [
|
|
416
|
+
/* @__PURE__ */ jsx3(
|
|
417
|
+
"button",
|
|
418
|
+
{
|
|
419
|
+
type: "button",
|
|
420
|
+
"aria-label": labels.openChats,
|
|
421
|
+
"aria-expanded": drawerOpen,
|
|
422
|
+
onClick: () => setDrawerOpen(true),
|
|
423
|
+
className: "rounded p-1.5 text-og-fg-muted hover:bg-og-surface-2",
|
|
424
|
+
"data-og-chat-menu": "",
|
|
425
|
+
children: /* @__PURE__ */ jsx3(MenuIcon, { className: "size-4", "aria-hidden": true })
|
|
426
|
+
}
|
|
427
|
+
),
|
|
428
|
+
/* @__PURE__ */ jsx3("span", { className: "text-og-sm font-semibold text-og-fg-muted", children: labels.heading })
|
|
429
|
+
] }),
|
|
430
|
+
/* @__PURE__ */ jsx3("div", { className: "og-chat-main min-h-0 flex-1 px-3 pb-3 pt-1", children: selected ? /* @__PURE__ */ jsx3(
|
|
431
|
+
SessionConversation,
|
|
432
|
+
{
|
|
433
|
+
...conversationProps,
|
|
434
|
+
...handoff?.sessionId === selected && handoff.initialMessage ? { pendingPrompt: { text: handoff.initialMessage, sentAt: handoff.sentAt } } : {},
|
|
435
|
+
composerOptions: {
|
|
436
|
+
...conversationProps?.composerOptions,
|
|
437
|
+
...handoff?.sessionId === selected ? { initialDraft: handoff.draft } : {}
|
|
438
|
+
},
|
|
439
|
+
realtimeVoiceProps: {
|
|
440
|
+
...conversationProps?.realtimeVoiceProps,
|
|
441
|
+
...handoff?.sessionId === selected && handoff.realtimeModel ? {
|
|
442
|
+
realtimeAutostartModel: handoff.realtimeModel,
|
|
443
|
+
onRealtimeAutostartConsumed: () => {
|
|
444
|
+
setHandoff(null);
|
|
445
|
+
notifyObserver(
|
|
446
|
+
conversationProps?.realtimeVoiceProps?.onRealtimeAutostartConsumed
|
|
447
|
+
);
|
|
448
|
+
}
|
|
449
|
+
} : {}
|
|
450
|
+
},
|
|
451
|
+
onOpenSession: conversationProps?.onOpenSession ?? select,
|
|
452
|
+
...scope,
|
|
453
|
+
sessionId: selected,
|
|
454
|
+
height: "100%"
|
|
455
|
+
}
|
|
456
|
+
) : /* @__PURE__ */ jsx3(
|
|
457
|
+
NewConversation,
|
|
458
|
+
{
|
|
459
|
+
...scope,
|
|
460
|
+
attachments: conversationProps?.attachments,
|
|
461
|
+
modelPicker: conversationProps?.modelPicker,
|
|
462
|
+
modelPickerProps: conversationProps?.modelPickerProps,
|
|
463
|
+
composerProps: conversationProps?.composerProps,
|
|
464
|
+
voiceInput: conversationProps?.voiceInput,
|
|
465
|
+
realtimeVoice: conversationProps?.realtimeVoice,
|
|
466
|
+
realtimeVoiceProps: conversationProps?.realtimeVoiceProps,
|
|
467
|
+
labels: {
|
|
468
|
+
...labels.newChatRetry ? { retry: labels.newChatRetry } : {},
|
|
469
|
+
...labels.newChatPending ? { pending: labels.newChatPending } : {},
|
|
470
|
+
...labels.newChatFinishingUploads ? { finishingUploads: labels.newChatFinishingUploads } : {},
|
|
471
|
+
title: labels.newChatTitle,
|
|
472
|
+
send: labels.send,
|
|
473
|
+
unavailable: labels.newChatUnavailable,
|
|
474
|
+
placeholder: labelOverrides?.newChatPlaceholder ?? conversationProps?.composerProps?.placeholder ?? labels.newChatPlaceholder
|
|
475
|
+
},
|
|
476
|
+
enabled: canCreate,
|
|
477
|
+
createSession,
|
|
478
|
+
onCreated: (created) => {
|
|
479
|
+
setListRevision((revision) => revision + 1);
|
|
480
|
+
select(created.sessionId);
|
|
481
|
+
setHandoff(created);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
) })
|
|
485
|
+
] })
|
|
486
|
+
]
|
|
487
|
+
}
|
|
488
|
+
);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
// src/components/session-commands-panel.tsx
|
|
492
|
+
import { ChevronRightIcon, Loader2Icon as Loader2Icon2, SquareIcon } from "lucide-react";
|
|
493
|
+
import { useState as useState3 } from "react";
|
|
494
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
495
|
+
function SessionCommandsPanel({
|
|
496
|
+
commands: state,
|
|
497
|
+
readOnly = false,
|
|
498
|
+
renderMetadata,
|
|
499
|
+
compact = true
|
|
500
|
+
}) {
|
|
501
|
+
const t = useOpenGeniText();
|
|
502
|
+
const formatError = useErrorMessage();
|
|
503
|
+
const [pending, setPending] = useState3(null);
|
|
504
|
+
const [error, setError] = useState3(null);
|
|
505
|
+
const active = state.commands.filter(
|
|
506
|
+
(command) => command.state === "running" || command.state === "stopping"
|
|
507
|
+
);
|
|
508
|
+
const stop = async (id) => {
|
|
509
|
+
setPending(id);
|
|
510
|
+
setError(null);
|
|
511
|
+
try {
|
|
512
|
+
await state.cancel(id);
|
|
513
|
+
} catch (cause) {
|
|
514
|
+
setError(formatError(cause));
|
|
515
|
+
} finally {
|
|
516
|
+
setPending(null);
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
return /* @__PURE__ */ jsxs4(
|
|
520
|
+
"div",
|
|
521
|
+
{
|
|
522
|
+
className: `space-y-2 ${compact ? "text-og-xs" : "text-og-sm"}`,
|
|
523
|
+
"data-og-session-commands": "",
|
|
524
|
+
children: [
|
|
525
|
+
state.loading && active.length === 0 ? /* @__PURE__ */ jsx4("p", { role: "status", className: "text-og-fg-muted", children: t("sessionCommandsPanel.loadingCommands") }) : null,
|
|
526
|
+
state.error ? /* @__PURE__ */ jsxs4("div", { role: "alert", className: "flex items-center justify-between gap-2 text-og-danger", children: [
|
|
527
|
+
/* @__PURE__ */ jsx4("span", { children: t("sessionCommandsPanel.commandsUnavailable") }),
|
|
528
|
+
/* @__PURE__ */ jsx4(
|
|
529
|
+
"button",
|
|
530
|
+
{
|
|
531
|
+
type: "button",
|
|
532
|
+
className: "underline outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
|
|
533
|
+
onClick: () => void state.refresh(),
|
|
534
|
+
children: t("sessionCommandsPanel.retry")
|
|
535
|
+
}
|
|
536
|
+
)
|
|
537
|
+
] }) : null,
|
|
538
|
+
!state.loading && !state.error && active.length === 0 ? /* @__PURE__ */ jsx4("p", { role: "status", className: "text-og-fg-muted", children: t("sessionCommandsPanel.noBackgroundCommandsRunning") }) : null,
|
|
539
|
+
active.length > 0 ? /* @__PURE__ */ jsx4(
|
|
540
|
+
"ul",
|
|
541
|
+
{
|
|
542
|
+
className: `${compact ? "max-h-64 overflow-y-auto overscroll-contain" : ""} divide-y divide-og-border/40`,
|
|
543
|
+
children: active.map((command) => /* @__PURE__ */ jsxs4("li", { className: "flex items-start gap-3 py-2 first:pt-0 last:pb-0", children: [
|
|
544
|
+
/* @__PURE__ */ jsxs4("div", { className: "min-w-0 flex-1", children: [
|
|
545
|
+
renderMetadata?.(command),
|
|
546
|
+
/* @__PURE__ */ jsxs4("details", { className: "group/command", children: [
|
|
547
|
+
/* @__PURE__ */ jsxs4(
|
|
548
|
+
"summary",
|
|
549
|
+
{
|
|
550
|
+
className: "flex cursor-pointer list-none items-center gap-1.5 rounded-og-sm font-mono text-og-fg outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
|
|
551
|
+
title: t("sessionCommandsPanel.expandCommand"),
|
|
552
|
+
children: [
|
|
553
|
+
/* @__PURE__ */ jsx4(ChevronRightIcon, { className: "size-3 shrink-0 text-og-fg-subtle transition-transform group-open/command:rotate-90" }),
|
|
554
|
+
/* @__PURE__ */ jsx4(
|
|
555
|
+
"span",
|
|
556
|
+
{
|
|
557
|
+
className: "min-w-0 truncate",
|
|
558
|
+
title: command.commandText ?? (command.commandPreview || t("sessionCommandsPanel.backgroundCommand")),
|
|
559
|
+
children: command.commandText ?? (command.commandPreview || t("sessionCommandsPanel.backgroundCommand"))
|
|
560
|
+
}
|
|
561
|
+
)
|
|
562
|
+
]
|
|
563
|
+
}
|
|
564
|
+
),
|
|
565
|
+
/* @__PURE__ */ jsxs4("div", { className: "mt-2 space-y-1", children: [
|
|
566
|
+
/* @__PURE__ */ jsx4("p", { className: "whitespace-pre-wrap break-all font-mono text-og-fg-muted", children: command.commandText ?? (command.commandPreview || t("sessionCommandsPanel.backgroundCommand")) }),
|
|
567
|
+
/* @__PURE__ */ jsx4(
|
|
568
|
+
"time",
|
|
569
|
+
{
|
|
570
|
+
className: "block text-og-fg-subtle",
|
|
571
|
+
dateTime: command.startedAt,
|
|
572
|
+
title: new Date(command.startedAt).toLocaleString(t.locale),
|
|
573
|
+
children: t("sessionCommandsPanel.startedClocktime", {
|
|
574
|
+
clockTime: formatClockTime(t, command.startedAt)
|
|
575
|
+
})
|
|
576
|
+
}
|
|
577
|
+
)
|
|
578
|
+
] })
|
|
579
|
+
] }),
|
|
580
|
+
/* @__PURE__ */ jsx4("p", { className: "mt-1 text-og-fg-subtle", children: command.observationStatus === "unavailable" ? command.state === "stopping" ? t("sessionCommandsPanel.stopRequestedStatusUnavailable") : t("sessionCommandsPanel.commandStatusUnavailable") : command.state === "stopping" ? t("sessionCommandsPanel.stopping") : t("sessionCommandsPanel.running") })
|
|
581
|
+
] }),
|
|
582
|
+
!readOnly ? /* @__PURE__ */ jsxs4(
|
|
583
|
+
"button",
|
|
584
|
+
{
|
|
585
|
+
type: "button",
|
|
586
|
+
"aria-label": t("sessionCommandsPanel.stopCommandpreview", {
|
|
587
|
+
commandPreview: command.commandPreview || t("sessionCommandsPanel.backgroundCommand2")
|
|
588
|
+
}),
|
|
589
|
+
disabled: pending !== null || command.state === "stopping",
|
|
590
|
+
onClick: () => void stop(command.id),
|
|
591
|
+
className: "inline-flex min-h-7 shrink-0 items-center gap-1 rounded-og-sm px-2 text-og-fg-muted outline-hidden hover:bg-og-surface-3/70 hover:text-og-fg focus-visible:ring-2 focus-visible:ring-og-accent/40 disabled:opacity-50 pointer-coarse:min-h-11",
|
|
592
|
+
children: [
|
|
593
|
+
pending === command.id || command.state === "stopping" ? /* @__PURE__ */ jsx4(Loader2Icon2, { className: "size-3 animate-og-spin motion-reduce:animate-none" }) : /* @__PURE__ */ jsx4(SquareIcon, { className: "size-3" }),
|
|
594
|
+
t("sessionCommandsPanel.stop")
|
|
595
|
+
]
|
|
596
|
+
}
|
|
597
|
+
) : null
|
|
598
|
+
] }, command.id))
|
|
599
|
+
}
|
|
600
|
+
) : null,
|
|
601
|
+
error ? /* @__PURE__ */ jsx4("p", { role: "alert", className: "text-og-danger", children: error }) : null
|
|
602
|
+
]
|
|
603
|
+
}
|
|
604
|
+
);
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
// src/hooks/use-session-background-commands.ts
|
|
608
|
+
import { useCallback as useCallback2, useEffect as useEffect3, useRef as useRef3 } from "react";
|
|
609
|
+
function useSessionBackgroundCommands(sessionId, options = {}) {
|
|
610
|
+
const { client, workspaceId } = useOpenGeni(options);
|
|
611
|
+
const enabled = (options.enabled ?? true) && Boolean(sessionId);
|
|
612
|
+
const load = useCallback2(
|
|
613
|
+
async (signal) => {
|
|
614
|
+
if (!sessionId) return { commands: [] };
|
|
615
|
+
if (!client.listSessionBackgroundCommands) {
|
|
616
|
+
throw new Error("The configured Opengeni client does not support background commands");
|
|
617
|
+
}
|
|
618
|
+
return await client.listSessionBackgroundCommands(workspaceId, sessionId, { signal });
|
|
619
|
+
},
|
|
620
|
+
[client, workspaceId, sessionId]
|
|
621
|
+
);
|
|
622
|
+
const state = usePolledValue(load, {
|
|
623
|
+
enabled,
|
|
624
|
+
pollIntervalMs: options.pollIntervalMs
|
|
625
|
+
});
|
|
626
|
+
const refresh = state.refresh;
|
|
627
|
+
const generation = useRef3(0);
|
|
628
|
+
useEffect3(() => {
|
|
629
|
+
generation.current += 1;
|
|
630
|
+
return () => {
|
|
631
|
+
generation.current += 1;
|
|
632
|
+
};
|
|
633
|
+
}, [client, workspaceId, sessionId, enabled]);
|
|
634
|
+
const cancel = useCallback2(
|
|
635
|
+
async (commandId) => {
|
|
636
|
+
if (!sessionId) return;
|
|
637
|
+
if (!client.cancelSessionBackgroundCommand) {
|
|
638
|
+
throw new Error("The configured Opengeni client does not support background commands");
|
|
639
|
+
}
|
|
640
|
+
const ticket = generation.current;
|
|
641
|
+
await client.cancelSessionBackgroundCommand(workspaceId, sessionId, commandId);
|
|
642
|
+
if (enabled && ticket === generation.current) await refresh();
|
|
643
|
+
},
|
|
644
|
+
[client, workspaceId, sessionId, refresh, enabled]
|
|
645
|
+
);
|
|
646
|
+
return {
|
|
647
|
+
commands: state.data?.commands ?? [],
|
|
648
|
+
loading: state.loading,
|
|
649
|
+
error: state.error,
|
|
650
|
+
refresh,
|
|
651
|
+
cancel
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
// src/components/session-commands.tsx
|
|
656
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
657
|
+
function SessionCommands({
|
|
658
|
+
sessionId,
|
|
659
|
+
readOnly = false,
|
|
660
|
+
...options
|
|
661
|
+
}) {
|
|
662
|
+
const commands = useSessionBackgroundCommands(sessionId, {
|
|
663
|
+
pollIntervalMs: 3e3,
|
|
664
|
+
...options
|
|
665
|
+
});
|
|
666
|
+
return /* @__PURE__ */ jsx5(SessionCommandsPanel, { commands, readOnly });
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
// src/timeline/startup-timings.tsx
|
|
670
|
+
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
671
|
+
var LABELS = (t) => ({
|
|
672
|
+
queue: t("timeline.startupTimings.workerQueue"),
|
|
673
|
+
sandbox: t("timeline.startupTimings.sandbox"),
|
|
674
|
+
rig: t("timeline.startupTimings.sandboxEnvironment"),
|
|
675
|
+
repository: t("timeline.startupTimings.repository"),
|
|
676
|
+
files: t("timeline.startupTimings.files"),
|
|
677
|
+
tools: t("timeline.startupTimings.tools"),
|
|
678
|
+
model_preparation: t("timeline.startupTimings.runtimeModelRequest"),
|
|
679
|
+
provider_first_byte: t("timeline.startupTimings.firstModelResponse")
|
|
680
|
+
});
|
|
681
|
+
function StartupTimings({ phases }) {
|
|
682
|
+
const t = useOpenGeniText();
|
|
683
|
+
if (!phases.length)
|
|
684
|
+
return /* @__PURE__ */ jsx6("p", { className: "text-og-sm text-og-fg-subtle", children: t("timeline.startupTimings.noStartupTimingsRecordedYet") });
|
|
685
|
+
const byTurn = /* @__PURE__ */ new Map();
|
|
686
|
+
for (const phase of phases) {
|
|
687
|
+
const group = byTurn.get(phase.turnId) ?? [];
|
|
688
|
+
group.push(phase);
|
|
689
|
+
byTurn.set(phase.turnId, group);
|
|
690
|
+
}
|
|
691
|
+
const turns = [...byTurn.entries()].map(([turnId, turnPhases]) => ({
|
|
692
|
+
turnId,
|
|
693
|
+
phases: turnPhases,
|
|
694
|
+
startedAt: turnPhases.reduce(
|
|
695
|
+
(earliest, phase) => phase.startedAt < earliest ? phase.startedAt : earliest,
|
|
696
|
+
turnPhases[0].startedAt
|
|
697
|
+
)
|
|
698
|
+
})).sort((a, b) => b.startedAt.localeCompare(a.startedAt));
|
|
699
|
+
return /* @__PURE__ */ jsxs5("div", { className: "space-y-3", children: [
|
|
700
|
+
/* @__PURE__ */ jsx6("p", { className: "text-og-xs text-og-fg-subtle", children: t("timeline.startupTimings.eachTurnHasItsOwn") }),
|
|
701
|
+
turns.map((turn, index) => /* @__PURE__ */ jsx6(
|
|
702
|
+
StartupTurn,
|
|
703
|
+
{
|
|
704
|
+
...turn,
|
|
705
|
+
latest: index === 0 && turn.turnId !== null
|
|
706
|
+
},
|
|
707
|
+
turn.turnId ?? "unassigned"
|
|
708
|
+
))
|
|
709
|
+
] });
|
|
710
|
+
}
|
|
711
|
+
function StartupTurn({
|
|
712
|
+
turnId,
|
|
713
|
+
phases,
|
|
714
|
+
startedAt,
|
|
715
|
+
latest
|
|
716
|
+
}) {
|
|
717
|
+
const t = useOpenGeniText();
|
|
718
|
+
const failed = phases.some((phase) => phase.status === "failed");
|
|
719
|
+
const status = failed ? t("timeline.startupTimings.failed") : phases.some((phase) => phase.status === "running") ? t("timeline.startupTimings.inProgress") : phases.some((phase) => phase.status === "cancelled") ? t("timeline.startupTimings.interrupted") : t("timeline.startupTimings.ready");
|
|
720
|
+
return /* @__PURE__ */ jsxs5("details", { open: latest, className: "group border-b border-og-border pb-3", children: [
|
|
721
|
+
/* @__PURE__ */ jsxs5("summary", { className: "cursor-pointer rounded py-3 text-og-sm text-og-fg-muted focus-visible:outline-2 focus-visible:outline-og-accent", children: [
|
|
722
|
+
/* @__PURE__ */ jsx6("span", { className: "font-medium", children: turnId === null ? t("timeline.startupTimings.unassignedEvents") : latest ? t("timeline.startupTimings.latestTurn") : t("timeline.startupTimings.earlierTurn") }),
|
|
723
|
+
/* @__PURE__ */ jsx6("span", { className: "ml-2 text-og-xs text-og-fg-subtle", children: new Date(startedAt).toLocaleTimeString(t.locale, {
|
|
724
|
+
hour: "2-digit",
|
|
725
|
+
minute: "2-digit",
|
|
726
|
+
second: "2-digit"
|
|
727
|
+
}) }),
|
|
728
|
+
/* @__PURE__ */ jsx6(
|
|
729
|
+
"span",
|
|
730
|
+
{
|
|
731
|
+
className: failed ? "ml-2 text-og-xs text-og-status-failed" : "ml-2 text-og-xs text-og-fg-subtle",
|
|
732
|
+
children: status
|
|
733
|
+
}
|
|
734
|
+
),
|
|
735
|
+
/* @__PURE__ */ jsx6("span", { className: "mt-1 block break-all pl-4 font-og-mono text-og-xs text-og-fg-subtle", children: turnId ?? t("timeline.startupTimings.noTurnIdRecorded") })
|
|
736
|
+
] }),
|
|
737
|
+
/* @__PURE__ */ jsxs5("div", { className: "pb-2", children: [
|
|
738
|
+
/* @__PURE__ */ jsxs5("p", { className: "text-og-xs text-og-fg-subtle", children: [
|
|
739
|
+
t("timeline.startupTimings.started"),
|
|
740
|
+
" ",
|
|
741
|
+
/* @__PURE__ */ jsx6("time", { dateTime: startedAt, children: new Date(startedAt).toLocaleString(t.locale) })
|
|
742
|
+
] }),
|
|
743
|
+
/* @__PURE__ */ jsx6("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs5("table", { className: "w-full text-left text-og-xs", children: [
|
|
744
|
+
/* @__PURE__ */ jsxs5("caption", { className: "sr-only", children: [
|
|
745
|
+
t("timeline.startupTimings.startupPhasesFor"),
|
|
746
|
+
" ",
|
|
747
|
+
turnId ?? t("timeline.startupTimings.unassignedEvents2")
|
|
748
|
+
] }),
|
|
749
|
+
/* @__PURE__ */ jsx6("thead", { children: /* @__PURE__ */ jsxs5("tr", { className: "border-b border-og-border text-og-fg-subtle", children: [
|
|
750
|
+
/* @__PURE__ */ jsx6("th", { scope: "col", className: "py-2 font-medium", children: t("timeline.startupTimings.phase") }),
|
|
751
|
+
/* @__PURE__ */ jsx6("th", { scope: "col", className: "px-3 py-2 font-medium", children: t("timeline.startupTimings.status") }),
|
|
752
|
+
/* @__PURE__ */ jsx6("th", { scope: "col", className: "py-2 text-right font-medium", children: t("timeline.startupTimings.duration") })
|
|
753
|
+
] }) }),
|
|
754
|
+
/* @__PURE__ */ jsx6("tbody", { children: phases.map((phase) => /* @__PURE__ */ jsxs5(
|
|
755
|
+
"tr",
|
|
756
|
+
{
|
|
757
|
+
className: "border-b border-og-border/40",
|
|
758
|
+
title: t("timeline.startupTimings.turnTurnidStartedStartedat", {
|
|
759
|
+
turnId: phase.turnId ?? t("timeline.startupTimings.unknownTurn"),
|
|
760
|
+
startedAt: phase.startedAt
|
|
761
|
+
}),
|
|
762
|
+
children: [
|
|
763
|
+
/* @__PURE__ */ jsx6("th", { scope: "row", className: "py-2.5 font-normal text-og-fg-muted", children: LABELS(t)[phase.phase] }),
|
|
764
|
+
/* @__PURE__ */ jsx6(
|
|
765
|
+
"td",
|
|
766
|
+
{
|
|
767
|
+
className: `px-3 py-2.5 ${phase.status === "failed" ? "text-og-status-failed" : "text-og-fg-subtle"}`,
|
|
768
|
+
children: phase.status === "running" ? t("timeline.startupTimings.inProgress") : phase.status
|
|
769
|
+
}
|
|
770
|
+
),
|
|
771
|
+
/* @__PURE__ */ jsx6("td", { className: "py-2.5 text-right font-og-mono tabular-nums text-og-fg-muted", children: phase.durationMs === null ? "\u2014" : phase.durationMs < 1e3 ? t("timeline.startupTimings.roundMs", {
|
|
772
|
+
round: Math.round(phase.durationMs)
|
|
773
|
+
}) : `${(phase.durationMs / 1e3).toFixed(1)} s` })
|
|
774
|
+
]
|
|
775
|
+
},
|
|
776
|
+
phase.id
|
|
777
|
+
)) })
|
|
778
|
+
] }) })
|
|
779
|
+
] })
|
|
780
|
+
] });
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
export {
|
|
784
|
+
QueueSurface,
|
|
785
|
+
SessionList,
|
|
786
|
+
OpenGeniChat,
|
|
787
|
+
SessionCommandsPanel,
|
|
788
|
+
useSessionBackgroundCommands,
|
|
789
|
+
SessionCommands,
|
|
790
|
+
StartupTimings
|
|
791
|
+
};
|
|
792
|
+
//# sourceMappingURL=chunk-GGV4NSG3.js.map
|