@opengeni/react 4.5.0 → 4.5.1-canary.39832248373001
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 +24 -24
- package/dist/app/components/Composer.js +20 -20
- package/dist/app/components/agent/agent-capability-picker.js +4 -4
- package/dist/app/components/artifacts/artifact-library.js +17 -17
- package/dist/app/components/artifacts/chat-interactive-block.js +15 -15
- package/dist/app/components/artifacts/inline-chat-image.js +27 -27
- package/dist/app/components/artifacts/retained-file-preview.js +30 -30
- package/dist/app/components/artifacts/retained-text-preview.js +3 -3
- package/dist/app/components/artifacts/site-audience.js +4 -4
- package/dist/app/components/artifacts/site-conversations.js +20 -20
- package/dist/app/components/artifacts/site-data.js +19 -19
- package/dist/app/components/artifacts/site-publishing.js +36 -36
- package/dist/app/components/artifacts/site-settings.js +45 -45
- package/dist/app/components/billing-class-mark.js +4 -4
- package/dist/app/components/capabilities/capability-detail-sheet.js +9 -9
- package/dist/app/components/capabilities/capability-logo-source.js +9 -9
- package/dist/app/components/capabilities/connector-tool-permissions.js +3 -3
- package/dist/app/components/capabilities/native-connect-setup.js +11 -11
- package/dist/app/components/capabilities/perform-capability-action.js +1 -1
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +11 -11
- package/dist/app/components/capabilities/session-capability-card.js +71 -71
- package/dist/app/components/capabilities/session-chrome-card.js +30 -30
- package/dist/app/components/capabilities/session-custom-mcp-card.js +16 -16
- package/dist/app/components/capabilities/session-github-card.js +21 -21
- package/dist/app/components/capabilities/session-machine-card.js +29 -29
- 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 +14 -14
- package/dist/app/components/command-menu/chat-switcher.js +19 -19
- package/dist/app/components/command-menu/command-menu.js +28 -28
- package/dist/app/components/command-menu/shortcut-sheet.js +10 -10
- package/dist/app/components/composer-capabilities-menu-body.js +3 -3
- package/dist/app/components/composer-mobile-plus-panel.js +19 -19
- 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 +10 -10
- package/dist/app/components/desktop/app-shots.js +1 -1
- package/dist/app/components/feedback.js +2 -2
- 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 +1 -1
- package/dist/app/components/knowledge/agent-learning-settings.js +3 -3
- package/dist/app/components/machines/connect-machine-dialog.js +16 -16
- package/dist/app/components/markdown.js +8 -8
- package/dist/app/components/message-context-pills.js +2 -2
- package/dist/app/components/models/models-ui.js +7 -7
- package/dist/app/components/pickers.js +8 -8
- package/dist/app/components/rail/rail-context.js +1 -1
- package/dist/app/components/rail/rail-sections.js +57 -57
- package/dist/app/components/rail/session-header.js +45 -45
- package/dist/app/components/rail/session-list.js +55 -55
- package/dist/app/components/rail/session-row-hover-details.js +21 -21
- package/dist/app/components/rail/session-shell.js +93 -93
- package/dist/app/components/rail/site-session-group-heading.js +10 -10
- 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 +32 -32
- package/dist/app/components/session/artifact-session-page.js +2 -2
- package/dist/app/components/session/banners.js +10 -10
- package/dist/app/components/session/codex-account-indicator.js +9 -9
- package/dist/app/components/session/editable-artifacts-workspace.js +40 -40
- package/dist/app/components/session/failed-session-banner.js +6 -6
- package/dist/app/components/session/human-input.js +51 -51
- package/dist/app/components/session/inspector.js +80 -80
- package/dist/app/components/session/message-actions.js +2 -2
- package/dist/app/components/session/message-resource-attachments.js +18 -18
- package/dist/app/components/session/model-account-indicator.js +8 -8
- package/dist/app/components/session/model-context-inspector.js +2 -2
- package/dist/app/components/session/new-session-settings-menu.js +10 -10
- package/dist/app/components/session/sandbox-switcher.js +9 -9
- package/dist/app/components/session/sandbox-workspace.js +68 -68
- package/dist/app/components/session/search-markdown-highlight.js +9 -9
- package/dist/app/components/session/search-results-view.js +10 -10
- package/dist/app/components/session/session-admin-access.js +9 -9
- package/dist/app/components/session/session-admission-notice.js +2 -2
- package/dist/app/components/session/session-machine-access-notice.js +2 -2
- package/dist/app/components/session/session-retention.js +4 -4
- package/dist/app/components/session/session-search-dialog.js +10 -10
- package/dist/app/components/session/session-skill-reviews.js +1 -1
- package/dist/app/components/session/session-tenancy-control.js +22 -22
- package/dist/app/components/session/session-usage-limit-section.js +9 -9
- package/dist/app/components/session/session-wait-status.js +9 -9
- package/dist/app/components/session/subagents.js +13 -13
- 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 +4 -4
- package/dist/app/components/workspace-composer-plus.js +18 -18
- package/dist/app/embed/session-app.js +255 -255
- package/dist/app/lib/actions/actions-provider.js +10 -10
- package/dist/app/lib/codex-usage-query.js +2 -2
- package/dist/app/lib/composer-connectors.js +10 -10
- package/dist/app/lib/events.js +14 -14
- package/dist/app/lib/session-branch-cache.js +11 -11
- package/dist/app/lib/session-create.js +2 -2
- package/dist/app/lib/session-group-pagination.js +11 -11
- package/dist/app/lib/session-hover-facts.js +12 -12
- package/dist/app/lib/session-model.js +3 -3
- package/dist/app/lib/session-rail.js +9 -9
- package/dist/app/lib/session-rename.js +3 -3
- package/dist/app/lib/sessions-group.js +11 -11
- package/dist/app/lib/turn-failure-analytics.js +1 -1
- 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 +2 -2
- package/dist/app/lib/use-workspace-model-catalog.js +3 -3
- package/dist/app/lib/use-workspace-rigs.js +3 -3
- package/dist/app/lib/workspace-navigation-preference.js +1 -1
- package/dist/app/lib/workspace-scope-context.js +1 -1
- package/dist/app/routes/artifacts.js +125 -125
- package/dist/app/routes/retained-artifact.js +64 -64
- package/dist/app/routes/session-unavailable.js +3 -3
- package/dist/app/routes/session.js +160 -160
- package/dist/app/routes/sessions-index-hydration.js +3 -3
- package/dist/app/routes/sessions-index.js +112 -112
- package/dist/app/routes/site-view.js +83 -83
- package/dist/artifacts-document.js +2 -2
- package/dist/artifacts-presentation.js +2 -2
- package/dist/artifacts-spreadsheet.js +2 -2
- package/dist/artifacts.js +36 -36
- package/dist/{browser-viewer-QMCNV4RI.js → browser-viewer-VPK3CV2H.js} +6 -6
- package/dist/{chat-interactive-block-PMIAUXSO.js → chat-interactive-block-AMDSW656.js} +5 -5
- package/dist/{chunk-3STBLX4O.js → chunk-25LWDG5D.js} +5 -5
- package/dist/{chunk-MCTTONOW.js → chunk-2CKVVAGP.js} +22 -22
- package/dist/{chunk-J7FBBLHF.js → chunk-2DL6NJP5.js} +37 -37
- package/dist/{chunk-CFFNT2OY.js → chunk-3GLAPCVI.js} +8 -8
- package/dist/{chunk-BXQYAAVE.js → chunk-3XOISKZC.js} +4 -4
- package/dist/{chunk-N3ZP4IDU.js → chunk-45WYYFP6.js} +2 -2
- package/dist/{chunk-52WK2GGK.js → chunk-4MQLGMV2.js} +7 -7
- package/dist/{chunk-MXLKI7BI.js → chunk-4U4GXWXS.js} +2 -2
- package/dist/{chunk-3RMKPHBL.js → chunk-5HIOVXOX.js} +2 -2
- package/dist/{chunk-5W6ZDKRR.js → chunk-5M23GZA2.js} +4 -4
- package/dist/{chunk-S2U4CDAC.js → chunk-6AFSZKZA.js} +149 -149
- package/dist/chunk-6AFSZKZA.js.map +1 -0
- package/dist/{chunk-UUGR3X5I.js → chunk-6MRY2RUZ.js} +5 -5
- package/dist/{chunk-ZVVT72MT.js → chunk-6O4VWKSO.js} +2 -2
- package/dist/{chunk-FTX5CNHA.js → chunk-767WCGAX.js} +4 -4
- package/dist/{chunk-5JHRMUAZ.js → chunk-7IYAHFPE.js} +11 -11
- package/dist/{chunk-EJ7WARW7.js → chunk-7J7PZB4S.js} +2 -2
- package/dist/{chunk-RIYZFKIM.js → chunk-7PUFAH4I.js} +38 -38
- package/dist/{chunk-KEXYBG7Q.js → chunk-7R2JQHBX.js} +2 -2
- package/dist/{chunk-TV6BWONY.js → chunk-7VN6VC3D.js} +2 -2
- package/dist/{chunk-5FEN3KYH.js → chunk-A2E3ZF6N.js} +11 -11
- package/dist/{chunk-SM5QX6UK.js → chunk-A2EWJQXX.js} +4 -4
- package/dist/{chunk-UP7I3W6O.js → chunk-A6CK4ENG.js} +54 -54
- package/dist/{chunk-TIQPKOFW.js → chunk-A6T4FGE7.js} +2 -2
- package/dist/{chunk-7P4AQMGA.js → chunk-AOUCHCSB.js} +10 -10
- package/dist/{chunk-RFLYID6H.js → chunk-AT4K4F6S.js} +4 -4
- package/dist/{chunk-YV56F4UP.js → chunk-AW3QEFOF.js} +179 -179
- package/dist/chunk-AW3QEFOF.js.map +1 -0
- package/dist/{chunk-CMLJSF2F.js → chunk-BLPXOHG6.js} +11 -11
- package/dist/{chunk-LF5CBAOS.js → chunk-C535KSTY.js} +4 -4
- package/dist/{chunk-4YXAQMTD.js → chunk-CB574ERL.js} +10 -10
- package/dist/{chunk-552UYIQ7.js → chunk-CDUDKETD.js} +19 -19
- package/dist/{chunk-PCFK7HKD.js → chunk-D3RK3NGM.js} +17 -17
- package/dist/{chunk-LHLK7FUA.js → chunk-D64Z4V26.js} +2 -2
- package/dist/{chunk-JO6R5EXF.js → chunk-DFXZYNTX.js} +4 -4
- package/dist/{chunk-4RMN4E2Y.js → chunk-DKCX643S.js} +13 -13
- package/dist/{chunk-CD3MO3IC.js → chunk-E36IC3LU.js} +2 -2
- package/dist/{chunk-7XO7YKPC.js → chunk-ECHYJP63.js} +70 -70
- package/dist/{chunk-QFMLAT7L.js → chunk-EH7TTYE6.js} +184 -184
- package/dist/{chunk-7KIENXRE.js → chunk-EMCB6XKU.js} +1 -1
- package/dist/{chunk-FFNPUSVO.js → chunk-ERG355NM.js} +6 -6
- package/dist/{chunk-22JFMNMF.js → chunk-F2RMKGDQ.js} +4 -4
- package/dist/{chunk-7TCT7KPQ.js → chunk-F33EDYS7.js} +224 -224
- package/dist/chunk-F33EDYS7.js.map +1 -0
- package/dist/{chunk-4VK2R5QC.js → chunk-F3FN6DO6.js} +2 -2
- package/dist/{chunk-62VER7O4.js → chunk-F3NERYBQ.js} +6 -6
- package/dist/{chunk-S37GP7LX.js → chunk-FB3B45FP.js} +18 -18
- package/dist/{chunk-U6MPB3K6.js → chunk-FVL4B552.js} +7 -7
- package/dist/{chunk-WCMG4HYI.js → chunk-G2BX56CN.js} +10 -10
- package/dist/{chunk-EQE3MNQN.js → chunk-GFSOXB2K.js} +5 -5
- package/dist/{chunk-3X5FKDYQ.js → chunk-GZGQHQI7.js} +24 -24
- package/dist/{chunk-GGV4NSG3.js → chunk-H4IE2PYF.js} +6 -6
- package/dist/{chunk-J22HD2PB.js → chunk-HNNM2GDN.js} +5 -5
- package/dist/{chunk-GXW2I2M2.js → chunk-HPB4KSV3.js} +2 -2
- package/dist/{chunk-YEROLKOA.js → chunk-HSQRYJ4P.js} +15 -15
- package/dist/{chunk-HU6JTNWF.js → chunk-HUXDGWAN.js} +2 -2
- package/dist/{chunk-ITX2TB4K.js → chunk-I66ZB6KD.js} +4 -4
- package/dist/{chunk-FDAV72IX.js → chunk-IC7KNOBB.js} +7 -7
- package/dist/{chunk-PO3BH3KQ.js → chunk-IIO2MR3B.js} +2 -2
- package/dist/{chunk-FWOBNL2A.js → chunk-IPPVX5GF.js} +1 -1
- package/dist/{chunk-4SAGYEVB.js → chunk-IUK5QGP5.js} +2 -2
- package/dist/{chunk-4XQC7VLT.js → chunk-JWN7SLTO.js} +11 -11
- package/dist/{chunk-5Y2FPLZE.js → chunk-KFWVBTUH.js} +7 -7
- package/dist/{chunk-JXT5QDJC.js → chunk-KNFDWNCH.js} +5 -5
- package/dist/{chunk-5DSKMG2I.js → chunk-LEXPBQ56.js} +4 -4
- package/dist/{chunk-LT4J7RHI.js → chunk-LKJ2C7PH.js} +10 -10
- package/dist/{chunk-XN7NSPE6.js → chunk-MJQBC7C5.js} +2 -2
- package/dist/{chunk-JQCGPTZ6.js → chunk-MM7OKOTE.js} +9 -9
- package/dist/{chunk-ULJAOMJA.js → chunk-ND2WCWXI.js} +4 -4
- package/dist/{chunk-EYS4ZOF5.js → chunk-NML44AW2.js} +2 -2
- package/dist/{chunk-TL7BOFFL.js → chunk-NQQKOJDI.js} +2 -2
- package/dist/{chunk-CP7ZQHBW.js → chunk-O4DYOSOL.js} +13 -13
- package/dist/{chunk-GRSODLVO.js → chunk-OANSIX34.js} +4 -4
- package/dist/{chunk-2QBYDGWO.js → chunk-OFB6TUDC.js} +7 -7
- package/dist/{chunk-EPWD4KRA.js → chunk-OOEO4MKY.js} +2 -2
- package/dist/{chunk-CDEXRJB6.js → chunk-PEKPWK5M.js} +4 -4
- package/dist/{chunk-4GLLWX33.js → chunk-PKEKZ2VA.js} +9 -9
- package/dist/{chunk-3RQUWFZT.js → chunk-PMD7V4N7.js} +65 -65
- package/dist/{chunk-3RQUWFZT.js.map → chunk-PMD7V4N7.js.map} +1 -1
- package/dist/{chunk-7FJMRJDG.js → chunk-PVR5EELP.js} +2 -2
- package/dist/{chunk-Y5BSA3I7.js → chunk-QBADR2FO.js} +6 -6
- package/dist/{chunk-22FFOHPT.js → chunk-QLIDZGPV.js} +11 -11
- package/dist/{chunk-JM4HQPAI.js → chunk-QZRDCFHI.js} +5 -5
- package/dist/{chunk-5W7KJ5NQ.js → chunk-R7XCJWCD.js} +37 -37
- package/dist/{chunk-GT7JFQ4E.js → chunk-RAMZTZOB.js} +111 -111
- package/dist/{chunk-A4BD4ZVB.js → chunk-S7PVL7XH.js} +4 -4
- package/dist/{chunk-I6KIQKU6.js → chunk-SCNEQFIW.js} +3 -3
- package/dist/{chunk-4LPA25NQ.js → chunk-SD2K5ZN5.js} +4 -4
- package/dist/{chunk-IDXTASGN.js → chunk-SD4PPZFB.js} +2 -2
- package/dist/{chunk-4HEXNAFI.js → chunk-SFAU5R5S.js} +18 -18
- package/dist/chunk-SFAU5R5S.js.map +1 -0
- package/dist/{chunk-35BC2FU2.js → chunk-SJORXXLV.js} +18 -18
- package/dist/{chunk-ZS2UQ3DV.js → chunk-SOXZ4LGS.js} +4 -4
- package/dist/{chunk-ACL2V2KE.js → chunk-SQDPHCK2.js} +19 -19
- package/dist/{chunk-YJPKDRI2.js → chunk-TDIOBPLA.js} +13 -13
- package/dist/{chunk-RYSRFAHN.js → chunk-TEPPPAJI.js} +19 -19
- package/dist/{chunk-FWYEZ3LE.js → chunk-THVIT3PW.js} +37 -37
- package/dist/{chunk-MIECLOQC.js → chunk-TN5T5HRZ.js} +6 -6
- package/dist/{chunk-RQNZDTKT.js → chunk-TR4HIKJ2.js} +15 -15
- package/dist/{chunk-J5MEDX7C.js → chunk-U47YDYLQ.js} +8 -8
- package/dist/{chunk-HQWVDQXW.js → chunk-UGEWCWVV.js} +7 -7
- package/dist/{chunk-YXA2EKV3.js → chunk-UUSAOIJR.js} +3 -3
- package/dist/{chunk-YVBHGMKC.js → chunk-VAIESMPY.js} +4 -4
- package/dist/{chunk-SY2AAZNB.js → chunk-VO6RVVP7.js} +1 -1
- package/dist/{chunk-3GU7AWG7.js → chunk-VPNXQUUS.js} +17 -17
- package/dist/{chunk-WKHUZIOW.js → chunk-VW3BBTMA.js} +1 -1
- package/dist/{chunk-7NPCEBZE.js → chunk-VWSFA4LJ.js} +4 -4
- package/dist/{chunk-GZS37O3G.js → chunk-WBPQ7OPC.js} +1 -1
- package/dist/{chunk-5FA455GR.js → chunk-WNG757ID.js} +4 -4
- package/dist/{chunk-G4HQUBO4.js → chunk-WSLPZ43N.js} +12 -12
- package/dist/{chunk-73WI7FL2.js → chunk-WUHB422G.js} +18 -18
- package/dist/{chunk-Z7IGO5EA.js → chunk-WVX5AQXS.js} +2 -2
- package/dist/{chunk-2NC7NZCE.js → chunk-WWOHORRO.js} +5 -5
- package/dist/{chunk-SSOO4GWN.js → chunk-WYDZP5F2.js} +114 -114
- package/dist/{chunk-SSOO4GWN.js.map → chunk-WYDZP5F2.js.map} +1 -1
- package/dist/{chunk-V4QZ7UBK.js → chunk-WYEPUXGL.js} +2 -2
- package/dist/{chunk-ZEIFJ6PX.js → chunk-XN6CALYY.js} +8 -8
- package/dist/{chunk-VH5EGTH2.js → chunk-XNACICAB.js} +3 -3
- package/dist/{chunk-YYCOSTUU.js → chunk-XU4I47IP.js} +16 -16
- package/dist/{chunk-GHHM6WN4.js → chunk-YG3IJCM2.js} +3 -3
- package/dist/{chunk-NEK4WB5P.js → chunk-YGSJWWT3.js} +2 -2
- package/dist/{chunk-IBA5FMRE.js → chunk-YO64YVYL.js} +133 -133
- package/dist/{chunk-XMNUZUUA.js → chunk-Z2DAWUO3.js} +6 -6
- package/dist/{chunk-BCM7C3MJ.js → chunk-Z4GJB24B.js} +8 -8
- package/dist/{chunk-UYNCMZX5.js → chunk-ZX5H7LWD.js} +3 -3
- package/dist/composer.js +12 -12
- package/dist/{computer-viewer-25AJIDYA.js → computer-viewer-VA5JONUH.js} +6 -6
- package/dist/connect.js +8 -8
- package/dist/{embedded-new-voice-RZZEJT6M.js → embedded-new-voice-6BILAOUG.js} +6 -6
- package/dist/{embedded-voice-6OKSSPLW.js → embedded-voice-UDE4JRKB.js} +6 -6
- package/dist/index.js +215 -215
- package/dist/interaction.js +8 -8
- package/dist/{latest-question-2PFWQSSG.js → latest-question-4WDBECXB.js} +2 -2
- package/dist/machines.js +1 -1
- package/dist/{model-policy-picker-menu-VVFGGAI6.js → model-policy-picker-menu-NRTO6FRP.js} +5 -5
- package/dist/native-previews.js +3 -3
- package/dist/{queue-surface-implementation-4SHOQPQQ.js → queue-surface-implementation-H4XSNHZE.js} +4 -4
- package/dist/realtime.js +5 -5
- package/dist/{sandbox-files-CCOTGXXA.js → sandbox-files-IEHODU35.js} +8 -8
- package/dist/session-app.js +255 -255
- package/dist/session-list-model.js +2 -2
- package/dist/session-ui.js +64 -64
- package/dist/session.js +18 -18
- package/dist/terminal.js +1 -1
- package/dist/{timeline-annotation-markers-KHNYNY2J.js → timeline-annotation-markers-ZSOFW7PG.js} +4 -4
- package/dist/{timeline-annotation-selection-AXEDJHBP.js → timeline-annotation-selection-YWV2UC34.js} +6 -6
- package/dist/{timeline-annotations-dialog-AV4ZBXRC.js → timeline-annotations-dialog-ZWQVX2HI.js} +7 -7
- package/dist/timeline-model.js +27 -27
- 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/workbench.js +9 -9
- package/package.json +4 -4
- package/dist/chunk-4HEXNAFI.js.map +0 -1
- package/dist/chunk-7TCT7KPQ.js.map +0 -1
- package/dist/chunk-S2U4CDAC.js.map +0 -1
- package/dist/chunk-YV56F4UP.js.map +0 -1
- /package/dist/{browser-viewer-QMCNV4RI.js.map → browser-viewer-VPK3CV2H.js.map} +0 -0
- /package/dist/{chat-interactive-block-PMIAUXSO.js.map → chat-interactive-block-AMDSW656.js.map} +0 -0
- /package/dist/{chunk-3STBLX4O.js.map → chunk-25LWDG5D.js.map} +0 -0
- /package/dist/{chunk-MCTTONOW.js.map → chunk-2CKVVAGP.js.map} +0 -0
- /package/dist/{chunk-J7FBBLHF.js.map → chunk-2DL6NJP5.js.map} +0 -0
- /package/dist/{chunk-CFFNT2OY.js.map → chunk-3GLAPCVI.js.map} +0 -0
- /package/dist/{chunk-BXQYAAVE.js.map → chunk-3XOISKZC.js.map} +0 -0
- /package/dist/{chunk-N3ZP4IDU.js.map → chunk-45WYYFP6.js.map} +0 -0
- /package/dist/{chunk-52WK2GGK.js.map → chunk-4MQLGMV2.js.map} +0 -0
- /package/dist/{chunk-MXLKI7BI.js.map → chunk-4U4GXWXS.js.map} +0 -0
- /package/dist/{chunk-3RMKPHBL.js.map → chunk-5HIOVXOX.js.map} +0 -0
- /package/dist/{chunk-5W6ZDKRR.js.map → chunk-5M23GZA2.js.map} +0 -0
- /package/dist/{chunk-UUGR3X5I.js.map → chunk-6MRY2RUZ.js.map} +0 -0
- /package/dist/{chunk-ZVVT72MT.js.map → chunk-6O4VWKSO.js.map} +0 -0
- /package/dist/{chunk-FTX5CNHA.js.map → chunk-767WCGAX.js.map} +0 -0
- /package/dist/{chunk-5JHRMUAZ.js.map → chunk-7IYAHFPE.js.map} +0 -0
- /package/dist/{chunk-EJ7WARW7.js.map → chunk-7J7PZB4S.js.map} +0 -0
- /package/dist/{chunk-RIYZFKIM.js.map → chunk-7PUFAH4I.js.map} +0 -0
- /package/dist/{chunk-KEXYBG7Q.js.map → chunk-7R2JQHBX.js.map} +0 -0
- /package/dist/{chunk-TV6BWONY.js.map → chunk-7VN6VC3D.js.map} +0 -0
- /package/dist/{chunk-5FEN3KYH.js.map → chunk-A2E3ZF6N.js.map} +0 -0
- /package/dist/{chunk-SM5QX6UK.js.map → chunk-A2EWJQXX.js.map} +0 -0
- /package/dist/{chunk-UP7I3W6O.js.map → chunk-A6CK4ENG.js.map} +0 -0
- /package/dist/{chunk-TIQPKOFW.js.map → chunk-A6T4FGE7.js.map} +0 -0
- /package/dist/{chunk-7P4AQMGA.js.map → chunk-AOUCHCSB.js.map} +0 -0
- /package/dist/{chunk-RFLYID6H.js.map → chunk-AT4K4F6S.js.map} +0 -0
- /package/dist/{chunk-CMLJSF2F.js.map → chunk-BLPXOHG6.js.map} +0 -0
- /package/dist/{chunk-LF5CBAOS.js.map → chunk-C535KSTY.js.map} +0 -0
- /package/dist/{chunk-4YXAQMTD.js.map → chunk-CB574ERL.js.map} +0 -0
- /package/dist/{chunk-552UYIQ7.js.map → chunk-CDUDKETD.js.map} +0 -0
- /package/dist/{chunk-PCFK7HKD.js.map → chunk-D3RK3NGM.js.map} +0 -0
- /package/dist/{chunk-LHLK7FUA.js.map → chunk-D64Z4V26.js.map} +0 -0
- /package/dist/{chunk-JO6R5EXF.js.map → chunk-DFXZYNTX.js.map} +0 -0
- /package/dist/{chunk-4RMN4E2Y.js.map → chunk-DKCX643S.js.map} +0 -0
- /package/dist/{chunk-CD3MO3IC.js.map → chunk-E36IC3LU.js.map} +0 -0
- /package/dist/{chunk-7XO7YKPC.js.map → chunk-ECHYJP63.js.map} +0 -0
- /package/dist/{chunk-QFMLAT7L.js.map → chunk-EH7TTYE6.js.map} +0 -0
- /package/dist/{chunk-7KIENXRE.js.map → chunk-EMCB6XKU.js.map} +0 -0
- /package/dist/{chunk-FFNPUSVO.js.map → chunk-ERG355NM.js.map} +0 -0
- /package/dist/{chunk-22JFMNMF.js.map → chunk-F2RMKGDQ.js.map} +0 -0
- /package/dist/{chunk-4VK2R5QC.js.map → chunk-F3FN6DO6.js.map} +0 -0
- /package/dist/{chunk-62VER7O4.js.map → chunk-F3NERYBQ.js.map} +0 -0
- /package/dist/{chunk-S37GP7LX.js.map → chunk-FB3B45FP.js.map} +0 -0
- /package/dist/{chunk-U6MPB3K6.js.map → chunk-FVL4B552.js.map} +0 -0
- /package/dist/{chunk-WCMG4HYI.js.map → chunk-G2BX56CN.js.map} +0 -0
- /package/dist/{chunk-EQE3MNQN.js.map → chunk-GFSOXB2K.js.map} +0 -0
- /package/dist/{chunk-3X5FKDYQ.js.map → chunk-GZGQHQI7.js.map} +0 -0
- /package/dist/{chunk-GGV4NSG3.js.map → chunk-H4IE2PYF.js.map} +0 -0
- /package/dist/{chunk-J22HD2PB.js.map → chunk-HNNM2GDN.js.map} +0 -0
- /package/dist/{chunk-GXW2I2M2.js.map → chunk-HPB4KSV3.js.map} +0 -0
- /package/dist/{chunk-YEROLKOA.js.map → chunk-HSQRYJ4P.js.map} +0 -0
- /package/dist/{chunk-HU6JTNWF.js.map → chunk-HUXDGWAN.js.map} +0 -0
- /package/dist/{chunk-ITX2TB4K.js.map → chunk-I66ZB6KD.js.map} +0 -0
- /package/dist/{chunk-FDAV72IX.js.map → chunk-IC7KNOBB.js.map} +0 -0
- /package/dist/{chunk-PO3BH3KQ.js.map → chunk-IIO2MR3B.js.map} +0 -0
- /package/dist/{chunk-FWOBNL2A.js.map → chunk-IPPVX5GF.js.map} +0 -0
- /package/dist/{chunk-4SAGYEVB.js.map → chunk-IUK5QGP5.js.map} +0 -0
- /package/dist/{chunk-4XQC7VLT.js.map → chunk-JWN7SLTO.js.map} +0 -0
- /package/dist/{chunk-5Y2FPLZE.js.map → chunk-KFWVBTUH.js.map} +0 -0
- /package/dist/{chunk-JXT5QDJC.js.map → chunk-KNFDWNCH.js.map} +0 -0
- /package/dist/{chunk-5DSKMG2I.js.map → chunk-LEXPBQ56.js.map} +0 -0
- /package/dist/{chunk-LT4J7RHI.js.map → chunk-LKJ2C7PH.js.map} +0 -0
- /package/dist/{chunk-XN7NSPE6.js.map → chunk-MJQBC7C5.js.map} +0 -0
- /package/dist/{chunk-JQCGPTZ6.js.map → chunk-MM7OKOTE.js.map} +0 -0
- /package/dist/{chunk-ULJAOMJA.js.map → chunk-ND2WCWXI.js.map} +0 -0
- /package/dist/{chunk-EYS4ZOF5.js.map → chunk-NML44AW2.js.map} +0 -0
- /package/dist/{chunk-TL7BOFFL.js.map → chunk-NQQKOJDI.js.map} +0 -0
- /package/dist/{chunk-CP7ZQHBW.js.map → chunk-O4DYOSOL.js.map} +0 -0
- /package/dist/{chunk-GRSODLVO.js.map → chunk-OANSIX34.js.map} +0 -0
- /package/dist/{chunk-2QBYDGWO.js.map → chunk-OFB6TUDC.js.map} +0 -0
- /package/dist/{chunk-EPWD4KRA.js.map → chunk-OOEO4MKY.js.map} +0 -0
- /package/dist/{chunk-CDEXRJB6.js.map → chunk-PEKPWK5M.js.map} +0 -0
- /package/dist/{chunk-4GLLWX33.js.map → chunk-PKEKZ2VA.js.map} +0 -0
- /package/dist/{chunk-7FJMRJDG.js.map → chunk-PVR5EELP.js.map} +0 -0
- /package/dist/{chunk-Y5BSA3I7.js.map → chunk-QBADR2FO.js.map} +0 -0
- /package/dist/{chunk-22FFOHPT.js.map → chunk-QLIDZGPV.js.map} +0 -0
- /package/dist/{chunk-JM4HQPAI.js.map → chunk-QZRDCFHI.js.map} +0 -0
- /package/dist/{chunk-5W7KJ5NQ.js.map → chunk-R7XCJWCD.js.map} +0 -0
- /package/dist/{chunk-GT7JFQ4E.js.map → chunk-RAMZTZOB.js.map} +0 -0
- /package/dist/{chunk-A4BD4ZVB.js.map → chunk-S7PVL7XH.js.map} +0 -0
- /package/dist/{chunk-I6KIQKU6.js.map → chunk-SCNEQFIW.js.map} +0 -0
- /package/dist/{chunk-4LPA25NQ.js.map → chunk-SD2K5ZN5.js.map} +0 -0
- /package/dist/{chunk-IDXTASGN.js.map → chunk-SD4PPZFB.js.map} +0 -0
- /package/dist/{chunk-35BC2FU2.js.map → chunk-SJORXXLV.js.map} +0 -0
- /package/dist/{chunk-ZS2UQ3DV.js.map → chunk-SOXZ4LGS.js.map} +0 -0
- /package/dist/{chunk-ACL2V2KE.js.map → chunk-SQDPHCK2.js.map} +0 -0
- /package/dist/{chunk-YJPKDRI2.js.map → chunk-TDIOBPLA.js.map} +0 -0
- /package/dist/{chunk-RYSRFAHN.js.map → chunk-TEPPPAJI.js.map} +0 -0
- /package/dist/{chunk-FWYEZ3LE.js.map → chunk-THVIT3PW.js.map} +0 -0
- /package/dist/{chunk-MIECLOQC.js.map → chunk-TN5T5HRZ.js.map} +0 -0
- /package/dist/{chunk-RQNZDTKT.js.map → chunk-TR4HIKJ2.js.map} +0 -0
- /package/dist/{chunk-J5MEDX7C.js.map → chunk-U47YDYLQ.js.map} +0 -0
- /package/dist/{chunk-HQWVDQXW.js.map → chunk-UGEWCWVV.js.map} +0 -0
- /package/dist/{chunk-YXA2EKV3.js.map → chunk-UUSAOIJR.js.map} +0 -0
- /package/dist/{chunk-YVBHGMKC.js.map → chunk-VAIESMPY.js.map} +0 -0
- /package/dist/{chunk-SY2AAZNB.js.map → chunk-VO6RVVP7.js.map} +0 -0
- /package/dist/{chunk-3GU7AWG7.js.map → chunk-VPNXQUUS.js.map} +0 -0
- /package/dist/{chunk-WKHUZIOW.js.map → chunk-VW3BBTMA.js.map} +0 -0
- /package/dist/{chunk-7NPCEBZE.js.map → chunk-VWSFA4LJ.js.map} +0 -0
- /package/dist/{chunk-GZS37O3G.js.map → chunk-WBPQ7OPC.js.map} +0 -0
- /package/dist/{chunk-5FA455GR.js.map → chunk-WNG757ID.js.map} +0 -0
- /package/dist/{chunk-G4HQUBO4.js.map → chunk-WSLPZ43N.js.map} +0 -0
- /package/dist/{chunk-73WI7FL2.js.map → chunk-WUHB422G.js.map} +0 -0
- /package/dist/{chunk-Z7IGO5EA.js.map → chunk-WVX5AQXS.js.map} +0 -0
- /package/dist/{chunk-2NC7NZCE.js.map → chunk-WWOHORRO.js.map} +0 -0
- /package/dist/{chunk-V4QZ7UBK.js.map → chunk-WYEPUXGL.js.map} +0 -0
- /package/dist/{chunk-ZEIFJ6PX.js.map → chunk-XN6CALYY.js.map} +0 -0
- /package/dist/{chunk-VH5EGTH2.js.map → chunk-XNACICAB.js.map} +0 -0
- /package/dist/{chunk-YYCOSTUU.js.map → chunk-XU4I47IP.js.map} +0 -0
- /package/dist/{chunk-GHHM6WN4.js.map → chunk-YG3IJCM2.js.map} +0 -0
- /package/dist/{chunk-NEK4WB5P.js.map → chunk-YGSJWWT3.js.map} +0 -0
- /package/dist/{chunk-IBA5FMRE.js.map → chunk-YO64YVYL.js.map} +0 -0
- /package/dist/{chunk-XMNUZUUA.js.map → chunk-Z2DAWUO3.js.map} +0 -0
- /package/dist/{chunk-BCM7C3MJ.js.map → chunk-Z4GJB24B.js.map} +0 -0
- /package/dist/{chunk-UYNCMZX5.js.map → chunk-ZX5H7LWD.js.map} +0 -0
- /package/dist/{computer-viewer-25AJIDYA.js.map → computer-viewer-VA5JONUH.js.map} +0 -0
- /package/dist/{embedded-new-voice-RZZEJT6M.js.map → embedded-new-voice-6BILAOUG.js.map} +0 -0
- /package/dist/{embedded-voice-6OKSSPLW.js.map → embedded-voice-UDE4JRKB.js.map} +0 -0
- /package/dist/{latest-question-2PFWQSSG.js.map → latest-question-4WDBECXB.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-VVFGGAI6.js.map → model-policy-picker-menu-NRTO6FRP.js.map} +0 -0
- /package/dist/{queue-surface-implementation-4SHOQPQQ.js.map → queue-surface-implementation-H4XSNHZE.js.map} +0 -0
- /package/dist/{sandbox-files-CCOTGXXA.js.map → sandbox-files-IEHODU35.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-KHNYNY2J.js.map → timeline-annotation-markers-ZSOFW7PG.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-AXEDJHBP.js.map → timeline-annotation-selection-YWV2UC34.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-AV4ZBXRC.js.map → timeline-annotations-dialog-ZWQVX2HI.js.map} +0 -0
|
@@ -6,6 +6,16 @@ import {
|
|
|
6
6
|
PatchApplyCommand,
|
|
7
7
|
useRetainedImageObjectUrl
|
|
8
8
|
} from "./chunk-LQ47YL6E.js";
|
|
9
|
+
import {
|
|
10
|
+
approvalsFromRequiresAction
|
|
11
|
+
} from "./chunk-UD2PSIIX.js";
|
|
12
|
+
import {
|
|
13
|
+
learningRefusalBody,
|
|
14
|
+
learningRefusalPlace,
|
|
15
|
+
learningRefusalPlaceLabel,
|
|
16
|
+
learningRefusalTitle,
|
|
17
|
+
presentTurnFailureText
|
|
18
|
+
} from "./chunk-6MRY2RUZ.js";
|
|
9
19
|
import {
|
|
10
20
|
ActivityDisclosure,
|
|
11
21
|
BodyNote,
|
|
@@ -24,7 +34,7 @@ import {
|
|
|
24
34
|
ToolOutputPreviewProvider,
|
|
25
35
|
useForcedDefaultOpen,
|
|
26
36
|
useTimelineSearchReveal
|
|
27
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-SJORXXLV.js";
|
|
28
38
|
import {
|
|
29
39
|
useToolDetails
|
|
30
40
|
} from "./chunk-RZLBICR5.js";
|
|
@@ -36,19 +46,6 @@ import {
|
|
|
36
46
|
pierreDiffsRevision,
|
|
37
47
|
subscribePierreDiffs
|
|
38
48
|
} from "./chunk-YSRBFJMQ.js";
|
|
39
|
-
import {
|
|
40
|
-
ShimmerText
|
|
41
|
-
} from "./chunk-UYNCMZX5.js";
|
|
42
|
-
import {
|
|
43
|
-
approvalsFromRequiresAction
|
|
44
|
-
} from "./chunk-UD2PSIIX.js";
|
|
45
|
-
import {
|
|
46
|
-
learningRefusalBody,
|
|
47
|
-
learningRefusalPlace,
|
|
48
|
-
learningRefusalPlaceLabel,
|
|
49
|
-
learningRefusalTitle,
|
|
50
|
-
presentTurnFailureText
|
|
51
|
-
} from "./chunk-UUGR3X5I.js";
|
|
52
49
|
import {
|
|
53
50
|
GENIE_PREPARING_PHRASES,
|
|
54
51
|
GENIE_WAITING_PHRASES,
|
|
@@ -77,7 +74,7 @@ import {
|
|
|
77
74
|
turnSummaryFallbackLabel,
|
|
78
75
|
webSearchPresentation,
|
|
79
76
|
writeStdinPresentation
|
|
80
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-AW3QEFOF.js";
|
|
81
78
|
import {
|
|
82
79
|
workerRowTitleParts
|
|
83
80
|
} from "./chunk-HEVQKE27.js";
|
|
@@ -99,6 +96,9 @@ import {
|
|
|
99
96
|
mcpToolLeaf,
|
|
100
97
|
toolDisplayName
|
|
101
98
|
} from "./chunk-LEKBNKLD.js";
|
|
99
|
+
import {
|
|
100
|
+
ShimmerText
|
|
101
|
+
} from "./chunk-ZX5H7LWD.js";
|
|
102
102
|
import {
|
|
103
103
|
formatBytes,
|
|
104
104
|
truncate,
|
|
@@ -111,6 +111,94 @@ import {
|
|
|
111
111
|
useOpenGeniText
|
|
112
112
|
} from "./chunk-JFK7NTEA.js";
|
|
113
113
|
|
|
114
|
+
// src/timeline/retained-loaders.ts
|
|
115
|
+
function createWorkspaceRetainedArtifactLoader(client, workspaceId) {
|
|
116
|
+
return async (artifact, signal, options) => {
|
|
117
|
+
if (artifact.kind === "file" && options?.prefer !== "url") {
|
|
118
|
+
const download2 = await client.downloadRetainedArtifact(workspaceId, artifact, { signal });
|
|
119
|
+
return download2.bytes;
|
|
120
|
+
}
|
|
121
|
+
const download = await client.createRetainedArtifactDownloadUrl(workspaceId, artifact, {
|
|
122
|
+
signal
|
|
123
|
+
});
|
|
124
|
+
return { url: download.url, expiresAt: download.expiresAt };
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function createSessionRetainedScreenshotLoader(client, workspaceId, sessionId) {
|
|
128
|
+
return async (artifact, signal) => {
|
|
129
|
+
const download = await client.downloadRetainedScreenshot(
|
|
130
|
+
workspaceId,
|
|
131
|
+
sessionId,
|
|
132
|
+
artifact.artifactId,
|
|
133
|
+
{ signal }
|
|
134
|
+
);
|
|
135
|
+
if (!download.metadata.available || !download.bytes) return null;
|
|
136
|
+
if (download.metadata.artifactId !== artifact.artifactId || download.metadata.kind !== artifact.kind || download.metadata.contentType !== artifact.contentType || download.metadata.originalBytes !== artifact.originalBytes || download.metadata.sha256 !== artifact.sha256 || download.metadata.dimensions?.width !== artifact.dimensions?.width || download.metadata.dimensions?.height !== artifact.dimensions?.height) {
|
|
137
|
+
throw new Error("Retained screenshot receipt verification failed");
|
|
138
|
+
}
|
|
139
|
+
return download.bytes;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
function createWorkspaceRetainedVideoLoader(client, workspaceId) {
|
|
143
|
+
return async (artifactId, signal) => await client.createVideoArtifactPlaybackSource(workspaceId, artifactId, { signal });
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// src/components/tool-review-history.tsx
|
|
147
|
+
import { createContext, useContext, useEffect, useMemo, useState } from "react";
|
|
148
|
+
import { jsx } from "react/jsx-runtime";
|
|
149
|
+
var History = createContext(null);
|
|
150
|
+
function ToolReviewHistoryProvider({
|
|
151
|
+
events,
|
|
152
|
+
load,
|
|
153
|
+
onViewDetails,
|
|
154
|
+
children
|
|
155
|
+
}) {
|
|
156
|
+
const value = useMemo(
|
|
157
|
+
() => ({
|
|
158
|
+
approvalIds: new Set(
|
|
159
|
+
events.flatMap(
|
|
160
|
+
(event) => event.type === "session.requiresAction" ? approvalsFromRequiresAction(event.payload).map((approval) => approval.id) : []
|
|
161
|
+
)
|
|
162
|
+
),
|
|
163
|
+
revision: [...events].reverse().find(
|
|
164
|
+
(event) => event.type === "session.requiresAction" || event.type === "agent.toolCall.output" || event.type.startsWith("turn.") || event.type === "user.approvalDecision" || event.type.startsWith("session.control.")
|
|
165
|
+
)?.sequence ?? 0,
|
|
166
|
+
load,
|
|
167
|
+
onViewDetails
|
|
168
|
+
}),
|
|
169
|
+
[events, load, onViewDetails]
|
|
170
|
+
);
|
|
171
|
+
return /* @__PURE__ */ jsx(History.Provider, { value, children });
|
|
172
|
+
}
|
|
173
|
+
function useHasToolReview(approvalId) {
|
|
174
|
+
const history = useContext(History);
|
|
175
|
+
return Boolean(approvalId && history?.approvalIds.has(approvalId));
|
|
176
|
+
}
|
|
177
|
+
function useRecordedToolReview(approvalId) {
|
|
178
|
+
const history = useContext(History);
|
|
179
|
+
const [review, setReview] = useState(null);
|
|
180
|
+
const load = history?.load;
|
|
181
|
+
const revision = history?.revision;
|
|
182
|
+
useEffect(() => {
|
|
183
|
+
if (!load || !approvalId) return;
|
|
184
|
+
let active = true;
|
|
185
|
+
void load(approvalId).then(
|
|
186
|
+
(value) => {
|
|
187
|
+
if (active && value.id === approvalId) setReview(value);
|
|
188
|
+
},
|
|
189
|
+
() => void 0
|
|
190
|
+
);
|
|
191
|
+
return () => {
|
|
192
|
+
active = false;
|
|
193
|
+
};
|
|
194
|
+
}, [approvalId, load, revision]);
|
|
195
|
+
const onViewDetails = history?.onViewDetails;
|
|
196
|
+
return {
|
|
197
|
+
review: review && review.id === approvalId ? review : null,
|
|
198
|
+
onViewDetails: review && onViewDetails ? (path) => onViewDetails(review, path) : void 0
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
|
|
114
202
|
// src/components/tool-action-review.tsx
|
|
115
203
|
import {
|
|
116
204
|
ArrowLeftIcon,
|
|
@@ -121,8 +209,8 @@ import {
|
|
|
121
209
|
LoaderCircleIcon,
|
|
122
210
|
ShieldCheckIcon
|
|
123
211
|
} from "lucide-react";
|
|
124
|
-
import { useEffect, useId, useRef, useState } from "react";
|
|
125
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
212
|
+
import { useEffect as useEffect2, useId, useRef, useState as useState2 } from "react";
|
|
213
|
+
import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
126
214
|
var statusText = (t) => ({
|
|
127
215
|
pending: t("toolActionReview.approvalNeeded"),
|
|
128
216
|
approved: t("toolActionReview.approved"),
|
|
@@ -184,12 +272,12 @@ var VISIBLE_FIELDS = 6;
|
|
|
184
272
|
function StatusIcon({ status, busy }) {
|
|
185
273
|
const className = "size-4";
|
|
186
274
|
if (busy || status === "executing" || status === "approved")
|
|
187
|
-
return /* @__PURE__ */
|
|
188
|
-
if (status === "pending") return /* @__PURE__ */
|
|
189
|
-
if (status === "completed") return /* @__PURE__ */
|
|
275
|
+
return /* @__PURE__ */ jsx2(LoaderCircleIcon, { "aria-hidden": "true", className: cn(className, "animate-spin") });
|
|
276
|
+
if (status === "pending") return /* @__PURE__ */ jsx2(ShieldCheckIcon, { "aria-hidden": "true", className });
|
|
277
|
+
if (status === "completed") return /* @__PURE__ */ jsx2(CheckIcon, { "aria-hidden": "true", className });
|
|
190
278
|
if (statusTone[status] === "failed")
|
|
191
|
-
return /* @__PURE__ */
|
|
192
|
-
return /* @__PURE__ */
|
|
279
|
+
return /* @__PURE__ */ jsx2(CircleAlertIcon, { "aria-hidden": "true", className });
|
|
280
|
+
return /* @__PURE__ */ jsx2(CircleSlashIcon, { "aria-hidden": "true", className });
|
|
193
281
|
}
|
|
194
282
|
function ToolReviewFrame({
|
|
195
283
|
tone,
|
|
@@ -216,7 +304,7 @@ function ToolReviewFrame({
|
|
|
216
304
|
),
|
|
217
305
|
children: [
|
|
218
306
|
/* @__PURE__ */ jsxs("header", { className: cn("flex min-w-0 items-start gap-3", bare ? "pb-1" : "px-4 py-3"), children: [
|
|
219
|
-
/* @__PURE__ */
|
|
307
|
+
/* @__PURE__ */ jsx2(
|
|
220
308
|
"span",
|
|
221
309
|
{
|
|
222
310
|
className: cn(
|
|
@@ -227,7 +315,7 @@ function ToolReviewFrame({
|
|
|
227
315
|
}
|
|
228
316
|
),
|
|
229
317
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
230
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ jsx2(
|
|
231
319
|
"p",
|
|
232
320
|
{
|
|
233
321
|
className: cn("m-0 text-og-xs font-medium", toneText[tone]),
|
|
@@ -236,7 +324,7 @@ function ToolReviewFrame({
|
|
|
236
324
|
children: eyebrow
|
|
237
325
|
}
|
|
238
326
|
),
|
|
239
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ jsx2(
|
|
240
328
|
"h3",
|
|
241
329
|
{
|
|
242
330
|
tabIndex: -1,
|
|
@@ -245,10 +333,10 @@ function ToolReviewFrame({
|
|
|
245
333
|
children: title
|
|
246
334
|
}
|
|
247
335
|
),
|
|
248
|
-
subtitle ? /* @__PURE__ */
|
|
336
|
+
subtitle ? /* @__PURE__ */ jsx2("p", { className: "m-0 mt-0.5 break-words text-og-xs text-og-fg-muted [overflow-wrap:anywhere]", children: subtitle }) : null
|
|
249
337
|
] })
|
|
250
338
|
] }),
|
|
251
|
-
children ? /* @__PURE__ */
|
|
339
|
+
children ? /* @__PURE__ */ jsx2(
|
|
252
340
|
"div",
|
|
253
341
|
{
|
|
254
342
|
className: cn(
|
|
@@ -260,7 +348,7 @@ function ToolReviewFrame({
|
|
|
260
348
|
children
|
|
261
349
|
}
|
|
262
350
|
) : null,
|
|
263
|
-
footer ? /* @__PURE__ */
|
|
351
|
+
footer ? /* @__PURE__ */ jsx2(
|
|
264
352
|
"footer",
|
|
265
353
|
{
|
|
266
354
|
className: cn(
|
|
@@ -300,24 +388,24 @@ function ReviewFacts({
|
|
|
300
388
|
const hasContent = note || effects.length || selection || shown.length || hiddenFields > 0 || samples.length;
|
|
301
389
|
if (!hasContent) return null;
|
|
302
390
|
return /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-3 text-og-sm", children: [
|
|
303
|
-
note ? /* @__PURE__ */
|
|
304
|
-
effects.length > 0 ? /* @__PURE__ */
|
|
305
|
-
/* @__PURE__ */
|
|
391
|
+
note ? /* @__PURE__ */ jsx2("p", { className: "m-0 leading-relaxed text-og-fg-muted", children: note }) : null,
|
|
392
|
+
effects.length > 0 ? /* @__PURE__ */ jsx2("ul", { className: "m-0 list-none space-y-1 p-0", "aria-label": t("toolActionReview.alsoChanges"), children: effects.map((effect) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2 text-og-fg", children: [
|
|
393
|
+
/* @__PURE__ */ jsx2(
|
|
306
394
|
"span",
|
|
307
395
|
{
|
|
308
396
|
"aria-hidden": "true",
|
|
309
397
|
className: "mt-[0.55em] size-1 shrink-0 rounded-full bg-og-fg-muted"
|
|
310
398
|
}
|
|
311
399
|
),
|
|
312
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ jsx2("span", { className: "min-w-0 break-words", children: effect })
|
|
313
401
|
] }, effect)) }) : null,
|
|
314
402
|
selection ? /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
315
403
|
samples.length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
316
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ jsx2("p", { className: "m-0 mb-1 text-og-xs text-og-fg-muted", children: t("toolActionReview.includes") }),
|
|
317
405
|
/* @__PURE__ */ jsxs("ul", { className: "m-0 list-none divide-y divide-og-border rounded-og-md border border-og-border bg-og-surface-1 p-0", children: [
|
|
318
406
|
samples.map((sample) => /* @__PURE__ */ jsxs("li", { className: "min-w-0 px-3 py-2", children: [
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
sample.subtitle ? /* @__PURE__ */
|
|
407
|
+
/* @__PURE__ */ jsx2("p", { className: "m-0 truncate text-og-sm text-og-fg", children: sample.title }),
|
|
408
|
+
sample.subtitle ? /* @__PURE__ */ jsx2("p", { className: "m-0 mt-0.5 truncate text-og-xs text-og-fg-muted", children: sample.subtitle }) : null
|
|
321
409
|
] }, sample.id)),
|
|
322
410
|
count > samples.length ? /* @__PURE__ */ jsxs("li", { className: "px-3 py-2 text-og-xs text-og-fg-muted", children: [
|
|
323
411
|
t("toolActionReview.and"),
|
|
@@ -340,18 +428,18 @@ function ReviewFacts({
|
|
|
340
428
|
localeString: count.toLocaleString(t.locale),
|
|
341
429
|
noun
|
|
342
430
|
}),
|
|
343
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ jsx2(ChevronRightIcon, { className: "size-3.5 shrink-0", "aria-hidden": "true" })
|
|
344
432
|
]
|
|
345
433
|
}
|
|
346
434
|
) : null
|
|
347
435
|
] }) : null,
|
|
348
|
-
shown.length > 0 ? /* @__PURE__ */
|
|
436
|
+
shown.length > 0 ? /* @__PURE__ */ jsx2("dl", { className: "m-0 min-w-0 space-y-2", children: shown.map((field) => /* @__PURE__ */ jsxs(
|
|
349
437
|
"div",
|
|
350
438
|
{
|
|
351
439
|
className: "grid min-w-0 gap-x-4 gap-y-0.5 sm:grid-cols-[minmax(0,9rem)_minmax(0,1fr)]",
|
|
352
440
|
children: [
|
|
353
|
-
/* @__PURE__ */
|
|
354
|
-
/* @__PURE__ */
|
|
441
|
+
/* @__PURE__ */ jsx2("dt", { className: "m-0 break-words text-og-xs text-og-fg-muted sm:pt-px sm:text-og-sm", children: field.label }),
|
|
442
|
+
/* @__PURE__ */ jsx2("dd", { className: "m-0 min-w-0 whitespace-pre-wrap break-words text-og-fg [overflow-wrap:anywhere]", children: field.protected ? /* @__PURE__ */ jsx2("span", { className: "text-og-fg-muted", children: t("toolActionReview.hidden") }) : field.truncated && canOpen ? /* @__PURE__ */ jsxs(
|
|
355
443
|
"button",
|
|
356
444
|
{
|
|
357
445
|
type: "button",
|
|
@@ -363,11 +451,11 @@ function ReviewFacts({
|
|
|
363
451
|
onClick: () => onViewDetails(field.path),
|
|
364
452
|
className: cn(linkButton, "max-w-full"),
|
|
365
453
|
children: [
|
|
366
|
-
/* @__PURE__ */
|
|
367
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ jsx2("span", { className: "line-clamp-4 min-w-0 break-words [overflow-wrap:anywhere]", children: /* @__PURE__ */ jsx2(SecretRefText, { text: field.preview, linkable: false }) }),
|
|
455
|
+
/* @__PURE__ */ jsx2(ChevronRightIcon, { className: "size-3.5 shrink-0", "aria-hidden": "true" })
|
|
368
456
|
]
|
|
369
457
|
}
|
|
370
|
-
) : /* @__PURE__ */
|
|
458
|
+
) : /* @__PURE__ */ jsx2(SecretRefText, { text: field.preview }) })
|
|
371
459
|
]
|
|
372
460
|
},
|
|
373
461
|
field.path
|
|
@@ -386,7 +474,7 @@ function DeclineButton({
|
|
|
386
474
|
onClick
|
|
387
475
|
}) {
|
|
388
476
|
const t = useOpenGeniText();
|
|
389
|
-
return /* @__PURE__ */
|
|
477
|
+
return /* @__PURE__ */ jsx2(
|
|
390
478
|
"button",
|
|
391
479
|
{
|
|
392
480
|
type: "button",
|
|
@@ -416,7 +504,7 @@ function ToolActionReviewCard({
|
|
|
416
504
|
const busy = Boolean(disabled || submitting);
|
|
417
505
|
const tone = statusTone[review.status];
|
|
418
506
|
const eyebrow = submitting ? submitting === "approve" ? t("toolActionReview.approving") : t("toolActionReview.declining") : review.status === "pending" ? pendingLabel ?? statusText(t).pending : statusText(t)[review.status];
|
|
419
|
-
const detailsLink = review.detailsAvailable && onViewDetails ? /* @__PURE__ */
|
|
507
|
+
const detailsLink = review.detailsAvailable && onViewDetails ? /* @__PURE__ */ jsx2(
|
|
420
508
|
"button",
|
|
421
509
|
{
|
|
422
510
|
type: "button",
|
|
@@ -431,7 +519,7 @@ function ToolActionReviewCard({
|
|
|
431
519
|
ToolReviewFrame,
|
|
432
520
|
{
|
|
433
521
|
tone,
|
|
434
|
-
icon: /* @__PURE__ */
|
|
522
|
+
icon: /* @__PURE__ */ jsx2(StatusIcon, { status: review.status, busy: Boolean(submitting) }),
|
|
435
523
|
eyebrow,
|
|
436
524
|
title: review.title,
|
|
437
525
|
titleId,
|
|
@@ -443,10 +531,10 @@ function ToolActionReviewCard({
|
|
|
443
531
|
footer: actionable ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
444
532
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 basis-48 flex-wrap items-center gap-x-3 gap-y-1", children: [
|
|
445
533
|
detailsLink,
|
|
446
|
-
reason ? /* @__PURE__ */
|
|
534
|
+
reason ? /* @__PURE__ */ jsx2("span", { className: "min-w-0 text-og-xs leading-relaxed text-og-fg-subtle", children: reason }) : null
|
|
447
535
|
] }),
|
|
448
536
|
/* @__PURE__ */ jsxs("div", { className: "ml-auto flex shrink-0 flex-wrap items-center justify-end gap-2", children: [
|
|
449
|
-
canReject ? /* @__PURE__ */
|
|
537
|
+
canReject ? /* @__PURE__ */ jsx2(
|
|
450
538
|
DeclineButton,
|
|
451
539
|
{
|
|
452
540
|
busy,
|
|
@@ -463,7 +551,7 @@ function ToolActionReviewCard({
|
|
|
463
551
|
onClick: onApprove,
|
|
464
552
|
className: "inline-flex min-h-9 items-center justify-center gap-2 rounded-og-md border border-og-primary-border bg-og-primary px-3.5 py-1.5 text-og-sm font-medium text-og-primary-fg transition-colors hover:bg-og-primary-hover disabled:opacity-60 [@media(pointer:coarse)]:min-h-11 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
|
|
465
553
|
children: [
|
|
466
|
-
submitting === "approve" ? /* @__PURE__ */
|
|
554
|
+
submitting === "approve" ? /* @__PURE__ */ jsx2(LoaderCircleIcon, { className: "size-3.5 animate-spin", "aria-hidden": "true" }) : null,
|
|
467
555
|
submitting === "approve" ? t("toolActionReview.approving") : review.approveLabel
|
|
468
556
|
]
|
|
469
557
|
}
|
|
@@ -471,8 +559,8 @@ function ToolActionReviewCard({
|
|
|
471
559
|
] })
|
|
472
560
|
] }) : void 0,
|
|
473
561
|
children: [
|
|
474
|
-
actionable && !canApprove ? /* @__PURE__ */
|
|
475
|
-
/* @__PURE__ */
|
|
562
|
+
actionable && !canApprove ? /* @__PURE__ */ jsx2("p", { className: "m-0 mb-3 text-og-sm leading-relaxed text-og-fg", children: UNRECOVERABLE_TEXT(t) }) : null,
|
|
563
|
+
/* @__PURE__ */ jsx2(
|
|
476
564
|
ReviewFacts,
|
|
477
565
|
{
|
|
478
566
|
review,
|
|
@@ -480,7 +568,7 @@ function ToolActionReviewCard({
|
|
|
480
568
|
showStatusDetail: review.status !== "pending"
|
|
481
569
|
}
|
|
482
570
|
),
|
|
483
|
-
!actionable && detailsLink ? /* @__PURE__ */
|
|
571
|
+
!actionable && detailsLink ? /* @__PURE__ */ jsx2("div", { className: "mt-2", children: detailsLink }) : null
|
|
484
572
|
]
|
|
485
573
|
}
|
|
486
574
|
);
|
|
@@ -493,22 +581,22 @@ function ToolActionReviewDetails({
|
|
|
493
581
|
manageFocus = true
|
|
494
582
|
}) {
|
|
495
583
|
const t = useOpenGeniText();
|
|
496
|
-
const [path, setPath] =
|
|
497
|
-
const [trail, setTrail] =
|
|
498
|
-
const [offset, setOffset] =
|
|
499
|
-
const [page, setPage] =
|
|
500
|
-
const [error, setError] =
|
|
501
|
-
const [retry, setRetry] =
|
|
584
|
+
const [path, setPath] = useState2(initialPath);
|
|
585
|
+
const [trail, setTrail] = useState2([]);
|
|
586
|
+
const [offset, setOffset] = useState2(0);
|
|
587
|
+
const [page, setPage] = useState2(null);
|
|
588
|
+
const [error, setError] = useState2(false);
|
|
589
|
+
const [retry, setRetry] = useState2(0);
|
|
502
590
|
const heading = useRef(null);
|
|
503
591
|
const focusedOnce = useRef(false);
|
|
504
|
-
|
|
592
|
+
useEffect2(() => {
|
|
505
593
|
if (page && manageFocus && !focusedOnce.current) {
|
|
506
594
|
focusedOnce.current = true;
|
|
507
595
|
heading.current?.focus({ preventScroll: true });
|
|
508
596
|
heading.current?.scrollIntoView({ block: "start" });
|
|
509
597
|
}
|
|
510
598
|
}, [page, manageFocus]);
|
|
511
|
-
|
|
599
|
+
useEffect2(() => {
|
|
512
600
|
let active = true;
|
|
513
601
|
setPage(null);
|
|
514
602
|
setError(false);
|
|
@@ -553,12 +641,12 @@ function ToolActionReviewDetails({
|
|
|
553
641
|
onClick: onBack,
|
|
554
642
|
className: "mb-4 inline-flex min-h-11 items-center gap-2 rounded-og-md pr-2 text-og-sm text-og-fg-muted hover:text-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
|
|
555
643
|
children: [
|
|
556
|
-
/* @__PURE__ */
|
|
644
|
+
/* @__PURE__ */ jsx2(ArrowLeftIcon, { className: "size-4", "aria-hidden": "true" }),
|
|
557
645
|
t("toolActionReview.backToReview")
|
|
558
646
|
]
|
|
559
647
|
}
|
|
560
648
|
),
|
|
561
|
-
/* @__PURE__ */
|
|
649
|
+
/* @__PURE__ */ jsx2(
|
|
562
650
|
"h2",
|
|
563
651
|
{
|
|
564
652
|
ref: heading,
|
|
@@ -567,8 +655,8 @@ function ToolActionReviewDetails({
|
|
|
567
655
|
children: review.title
|
|
568
656
|
}
|
|
569
657
|
),
|
|
570
|
-
review.accountLabel ? /* @__PURE__ */
|
|
571
|
-
/* @__PURE__ */
|
|
658
|
+
review.accountLabel ? /* @__PURE__ */ jsx2("p", { className: "m-0 mt-1 text-og-sm text-og-fg-muted", children: review.accountLabel }) : null,
|
|
659
|
+
/* @__PURE__ */ jsx2("p", { className: "m-0 mt-2 text-og-xs text-og-fg-subtle", children: t("toolActionReview.theExactValuesSavedFor") }),
|
|
572
660
|
trail.length > 0 ? /* @__PURE__ */ jsxs(
|
|
573
661
|
"button",
|
|
574
662
|
{
|
|
@@ -576,7 +664,7 @@ function ToolActionReviewDetails({
|
|
|
576
664
|
className: "mt-3 inline-flex min-h-11 items-center gap-1.5 text-og-sm text-og-fg-muted underline underline-offset-4 hover:text-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
|
|
577
665
|
onClick: up,
|
|
578
666
|
children: [
|
|
579
|
-
/* @__PURE__ */
|
|
667
|
+
/* @__PURE__ */ jsx2(ArrowLeftIcon, { className: "size-3.5", "aria-hidden": "true" }),
|
|
580
668
|
t("toolActionReview.backTo"),
|
|
581
669
|
" ",
|
|
582
670
|
trail.at(-1)?.label ?? t("toolActionReview.allValues")
|
|
@@ -586,7 +674,7 @@ function ToolActionReviewDetails({
|
|
|
586
674
|
error ? /* @__PURE__ */ jsxs("div", { role: "alert", className: "mt-4 py-4 text-og-sm", children: [
|
|
587
675
|
t("toolActionReview.couldnTLoadTheseDetails"),
|
|
588
676
|
" ",
|
|
589
|
-
/* @__PURE__ */
|
|
677
|
+
/* @__PURE__ */ jsx2(
|
|
590
678
|
"button",
|
|
591
679
|
{
|
|
592
680
|
type: "button",
|
|
@@ -595,9 +683,9 @@ function ToolActionReviewDetails({
|
|
|
595
683
|
children: t("toolActionReview.tryAgain")
|
|
596
684
|
}
|
|
597
685
|
)
|
|
598
|
-
] }) : !page ? /* @__PURE__ */
|
|
599
|
-
/* @__PURE__ */
|
|
600
|
-
/* @__PURE__ */
|
|
686
|
+
] }) : !page ? /* @__PURE__ */ jsx2("p", { role: "status", className: "mt-4 py-4 text-og-sm text-og-fg-muted", children: t("toolActionReview.loadingDetails") }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
687
|
+
/* @__PURE__ */ jsx2("dl", { className: "m-0 mt-4 divide-y divide-og-border border-y border-og-border", children: page.items.map((item) => /* @__PURE__ */ jsxs("div", { className: "py-3", children: [
|
|
688
|
+
/* @__PURE__ */ jsx2("dt", { className: "m-0 text-og-xs text-og-fg-muted", children: item.label }),
|
|
601
689
|
/* @__PURE__ */ jsxs("dd", { className: "m-0 mt-1 whitespace-pre-wrap break-words text-og-sm leading-relaxed [overflow-wrap:anywhere]", children: [
|
|
602
690
|
item.truncated && item.path ? /* @__PURE__ */ jsxs(
|
|
603
691
|
"button",
|
|
@@ -607,12 +695,12 @@ function ToolActionReviewDetails({
|
|
|
607
695
|
className: cn(linkButton, "max-w-full"),
|
|
608
696
|
onClick: () => open(item.path, item.label),
|
|
609
697
|
children: [
|
|
610
|
-
/* @__PURE__ */
|
|
611
|
-
/* @__PURE__ */
|
|
698
|
+
/* @__PURE__ */ jsx2("span", { className: "min-w-0 break-words focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40", children: /* @__PURE__ */ jsx2(SecretRefText, { text: item.value, linkable: false }) }),
|
|
699
|
+
/* @__PURE__ */ jsx2(ChevronRightIcon, { className: "size-3.5 shrink-0", "aria-hidden": "true" })
|
|
612
700
|
]
|
|
613
701
|
}
|
|
614
|
-
) : /* @__PURE__ */
|
|
615
|
-
item.detail ? /* @__PURE__ */
|
|
702
|
+
) : /* @__PURE__ */ jsx2(SecretRefText, { text: item.value }),
|
|
703
|
+
item.detail ? /* @__PURE__ */ jsx2("span", { className: "mt-0.5 block text-og-xs text-og-fg-muted", children: /* @__PURE__ */ jsx2(SecretRefText, { text: item.detail, linkable: false }) }) : null
|
|
616
704
|
] })
|
|
617
705
|
] }, `${page.path}:${item.label}`)) }),
|
|
618
706
|
page.total > page.items.length || offset > 0 ? /* @__PURE__ */ jsxs(
|
|
@@ -621,7 +709,7 @@ function ToolActionReviewDetails({
|
|
|
621
709
|
"aria-label": t("toolActionReview.detailPages"),
|
|
622
710
|
className: "mt-4 flex flex-wrap items-center justify-between gap-3 text-og-sm",
|
|
623
711
|
children: [
|
|
624
|
-
/* @__PURE__ */
|
|
712
|
+
/* @__PURE__ */ jsx2(
|
|
625
713
|
"button",
|
|
626
714
|
{
|
|
627
715
|
type: "button",
|
|
@@ -631,8 +719,8 @@ function ToolActionReviewDetails({
|
|
|
631
719
|
children: t("toolActionReview.previous")
|
|
632
720
|
}
|
|
633
721
|
),
|
|
634
|
-
/* @__PURE__ */
|
|
635
|
-
/* @__PURE__ */
|
|
722
|
+
/* @__PURE__ */ jsx2("span", { className: "text-og-fg-muted tabular-nums", children: page.total === 0 ? t("toolActionReview.noItems") : `${(offset + 1).toLocaleString(t.locale)}\u2013${(offset + page.items.length).toLocaleString(t.locale)} of ${page.total.toLocaleString(t.locale)}` }),
|
|
723
|
+
/* @__PURE__ */ jsx2(
|
|
636
724
|
"button",
|
|
637
725
|
{
|
|
638
726
|
type: "button",
|
|
@@ -652,36 +740,36 @@ function ToolActionReviewDetails({
|
|
|
652
740
|
}
|
|
653
741
|
|
|
654
742
|
// src/timeline/knowledge-receipt.tsx
|
|
655
|
-
import { createContext, useContext, useState as
|
|
743
|
+
import { createContext as createContext2, useContext as useContext2, useState as useState3 } from "react";
|
|
656
744
|
import { BrainCircuitIcon } from "lucide-react";
|
|
657
|
-
import { jsx as
|
|
658
|
-
var KnowledgeActions =
|
|
745
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
746
|
+
var KnowledgeActions = createContext2({});
|
|
659
747
|
function KnowledgeActivityProvider({
|
|
660
748
|
children,
|
|
661
749
|
...actions
|
|
662
750
|
}) {
|
|
663
|
-
return /* @__PURE__ */
|
|
751
|
+
return /* @__PURE__ */ jsx3(KnowledgeActions.Provider, { value: actions, children });
|
|
664
752
|
}
|
|
665
753
|
function KnowledgeReceiptRow(props) {
|
|
666
754
|
const t = useOpenGeniText();
|
|
667
|
-
const actions =
|
|
668
|
-
const [retrying, setRetrying] =
|
|
669
|
-
const [retrySent, setRetrySent] =
|
|
670
|
-
const [error, setError] =
|
|
755
|
+
const actions = useContext2(KnowledgeActions);
|
|
756
|
+
const [retrying, setRetrying] = useState3(false);
|
|
757
|
+
const [retrySent, setRetrySent] = useState3(false);
|
|
758
|
+
const [error, setError] = useState3(null);
|
|
671
759
|
const label = props.outcome === "pending" ? t("timeline.knowledgeReceipt.knowledgeSavedForReview") : props.outcome === "failed" ? t("timeline.knowledgeReceipt.sourcePreparationFailed") : props.outcome === "rejected" ? t("timeline.knowledgeReceipt.sourceRemainsRejected") : props.outcome === "archived" ? t("timeline.knowledgeReceipt.knowledgeArchived") : props.source ? t("timeline.knowledgeReceipt.sourceSavedToKnowledge") : t("timeline.knowledgeReceipt.savedToKnowledge");
|
|
672
760
|
const actionClass = "rounded-og-sm px-1 py-0.5 text-og-sm text-og-fg-muted hover:text-og-fg focus-visible:outline-2 focus-visible:outline-og-accent disabled:opacity-50";
|
|
673
761
|
return /* @__PURE__ */ jsxs2(
|
|
674
762
|
ActivityDisclosure,
|
|
675
763
|
{
|
|
676
|
-
icon: /* @__PURE__ */
|
|
764
|
+
icon: /* @__PURE__ */ jsx3(BrainCircuitIcon, { className: "size-3.5" }),
|
|
677
765
|
iconTone: "muted",
|
|
678
766
|
title: label,
|
|
679
767
|
preview: props.title,
|
|
680
768
|
children: [
|
|
681
|
-
props.outcome === "pending" ? /* @__PURE__ */
|
|
682
|
-
props.outcome === "failed" ? /* @__PURE__ */
|
|
683
|
-
props.outcome === "rejected" ? /* @__PURE__ */
|
|
684
|
-
props.entryId && actions.onInspect ? /* @__PURE__ */
|
|
769
|
+
props.outcome === "pending" ? /* @__PURE__ */ jsx3(BodyNote, { children: t("timeline.knowledgeReceipt.savedInNeedsReviewThis") }) : null,
|
|
770
|
+
props.outcome === "failed" ? /* @__PURE__ */ jsx3(BodyNote, { children: t("timeline.knowledgeReceipt.theOriginalFileRemainsAttached") }) : null,
|
|
771
|
+
props.outcome === "rejected" ? /* @__PURE__ */ jsx3(BodyNote, { children: t("timeline.knowledgeReceipt.processingTheFileAgainLeaves") }) : null,
|
|
772
|
+
props.entryId && actions.onInspect ? /* @__PURE__ */ jsx3(
|
|
685
773
|
"button",
|
|
686
774
|
{
|
|
687
775
|
className: actionClass,
|
|
@@ -690,7 +778,7 @@ function KnowledgeReceiptRow(props) {
|
|
|
690
778
|
children: props.outcome === "pending" ? t("timeline.knowledgeReceipt.reviewInKnowledge") : t("timeline.knowledgeReceipt.viewInKnowledge")
|
|
691
779
|
}
|
|
692
780
|
) : null,
|
|
693
|
-
props.outcome === "failed" && props.fileId && actions.onRetryFile ? /* @__PURE__ */
|
|
781
|
+
props.outcome === "failed" && props.fileId && actions.onRetryFile ? /* @__PURE__ */ jsx3(
|
|
694
782
|
"button",
|
|
695
783
|
{
|
|
696
784
|
className: actionClass,
|
|
@@ -707,100 +795,12 @@ function KnowledgeReceiptRow(props) {
|
|
|
707
795
|
children: retrying ? t("timeline.knowledgeReceipt.startingRetry") : retrySent ? t("timeline.knowledgeReceipt.retryRequested") : t("timeline.knowledgeReceipt.retryPreparation")
|
|
708
796
|
}
|
|
709
797
|
) : null,
|
|
710
|
-
error ? /* @__PURE__ */
|
|
798
|
+
error ? /* @__PURE__ */ jsx3("p", { role: "alert", className: "text-og-sm", children: error }) : null
|
|
711
799
|
]
|
|
712
800
|
}
|
|
713
801
|
);
|
|
714
802
|
}
|
|
715
803
|
|
|
716
|
-
// src/timeline/startup-preference.ts
|
|
717
|
-
import { useSyncExternalStore } from "react";
|
|
718
|
-
var KEY = "opengeni:startup-details:v1";
|
|
719
|
-
var EVENT = "opengeni:startup-details-changed";
|
|
720
|
-
var fallback = false;
|
|
721
|
-
function snapshot() {
|
|
722
|
-
try {
|
|
723
|
-
return window.localStorage.getItem(KEY) === "true";
|
|
724
|
-
} catch {
|
|
725
|
-
return fallback;
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
function subscribe(listener) {
|
|
729
|
-
window.addEventListener(EVENT, listener);
|
|
730
|
-
window.addEventListener("storage", listener);
|
|
731
|
-
return () => {
|
|
732
|
-
window.removeEventListener(EVENT, listener);
|
|
733
|
-
window.removeEventListener("storage", listener);
|
|
734
|
-
};
|
|
735
|
-
}
|
|
736
|
-
function setStartupDetails(value) {
|
|
737
|
-
fallback = value;
|
|
738
|
-
try {
|
|
739
|
-
window.localStorage.setItem(KEY, String(value));
|
|
740
|
-
} catch {
|
|
741
|
-
}
|
|
742
|
-
window.dispatchEvent(new Event(EVENT));
|
|
743
|
-
}
|
|
744
|
-
function useStartupDetails() {
|
|
745
|
-
return useSyncExternalStore(subscribe, snapshot, () => false);
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
// src/components/tool-review-history.tsx
|
|
749
|
-
import { createContext as createContext2, useContext as useContext2, useEffect as useEffect2, useMemo, useState as useState3 } from "react";
|
|
750
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
751
|
-
var History = createContext2(null);
|
|
752
|
-
function ToolReviewHistoryProvider({
|
|
753
|
-
events,
|
|
754
|
-
load,
|
|
755
|
-
onViewDetails,
|
|
756
|
-
children
|
|
757
|
-
}) {
|
|
758
|
-
const value = useMemo(
|
|
759
|
-
() => ({
|
|
760
|
-
approvalIds: new Set(
|
|
761
|
-
events.flatMap(
|
|
762
|
-
(event) => event.type === "session.requiresAction" ? approvalsFromRequiresAction(event.payload).map((approval) => approval.id) : []
|
|
763
|
-
)
|
|
764
|
-
),
|
|
765
|
-
revision: [...events].reverse().find(
|
|
766
|
-
(event) => event.type === "session.requiresAction" || event.type === "agent.toolCall.output" || event.type.startsWith("turn.") || event.type === "user.approvalDecision" || event.type.startsWith("session.control.")
|
|
767
|
-
)?.sequence ?? 0,
|
|
768
|
-
load,
|
|
769
|
-
onViewDetails
|
|
770
|
-
}),
|
|
771
|
-
[events, load, onViewDetails]
|
|
772
|
-
);
|
|
773
|
-
return /* @__PURE__ */ jsx3(History.Provider, { value, children });
|
|
774
|
-
}
|
|
775
|
-
function useHasToolReview(approvalId) {
|
|
776
|
-
const history = useContext2(History);
|
|
777
|
-
return Boolean(approvalId && history?.approvalIds.has(approvalId));
|
|
778
|
-
}
|
|
779
|
-
function useRecordedToolReview(approvalId) {
|
|
780
|
-
const history = useContext2(History);
|
|
781
|
-
const [review, setReview] = useState3(null);
|
|
782
|
-
const load = history?.load;
|
|
783
|
-
const revision = history?.revision;
|
|
784
|
-
useEffect2(() => {
|
|
785
|
-
if (!load || !approvalId) return;
|
|
786
|
-
let active = true;
|
|
787
|
-
void load(approvalId).then(
|
|
788
|
-
(value) => {
|
|
789
|
-
if (active && value.id === approvalId) setReview(value);
|
|
790
|
-
},
|
|
791
|
-
() => void 0
|
|
792
|
-
);
|
|
793
|
-
return () => {
|
|
794
|
-
active = false;
|
|
795
|
-
};
|
|
796
|
-
}, [approvalId, load, revision]);
|
|
797
|
-
const onViewDetails = history?.onViewDetails;
|
|
798
|
-
return {
|
|
799
|
-
review: review && review.id === approvalId ? review : null,
|
|
800
|
-
onViewDetails: review && onViewDetails ? (path) => onViewDetails(review, path) : void 0
|
|
801
|
-
};
|
|
802
|
-
}
|
|
803
|
-
|
|
804
804
|
// src/lib/git-patch.ts
|
|
805
805
|
function gitFileDiffToPatch(file) {
|
|
806
806
|
const oldPath = file.oldPath ?? file.path;
|
|
@@ -836,7 +836,7 @@ import {
|
|
|
836
836
|
Suspense,
|
|
837
837
|
useEffect as useEffect3,
|
|
838
838
|
useState as useState4,
|
|
839
|
-
useSyncExternalStore
|
|
839
|
+
useSyncExternalStore
|
|
840
840
|
} from "react";
|
|
841
841
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
842
842
|
var LazyPatchDiff = lazy(async () => {
|
|
@@ -866,7 +866,7 @@ function PierreDiff({
|
|
|
866
866
|
query.addEventListener?.("change", update);
|
|
867
867
|
return () => query.removeEventListener?.("change", update);
|
|
868
868
|
}, []);
|
|
869
|
-
const loaderRevision =
|
|
869
|
+
const loaderRevision = useSyncExternalStore(
|
|
870
870
|
subscribePierreDiffs,
|
|
871
871
|
pierreDiffsRevision,
|
|
872
872
|
pierreDiffsRevision
|
|
@@ -2867,6 +2867,38 @@ function createDefaultToolRegistry(options = {}) {
|
|
|
2867
2867
|
return createToolRegistry(BASE_ENTRIES, GenericRenderer, options);
|
|
2868
2868
|
}
|
|
2869
2869
|
|
|
2870
|
+
// src/timeline/startup-preference.ts
|
|
2871
|
+
import { useSyncExternalStore as useSyncExternalStore2 } from "react";
|
|
2872
|
+
var KEY = "opengeni:startup-details:v1";
|
|
2873
|
+
var EVENT = "opengeni:startup-details-changed";
|
|
2874
|
+
var fallback = false;
|
|
2875
|
+
function snapshot() {
|
|
2876
|
+
try {
|
|
2877
|
+
return window.localStorage.getItem(KEY) === "true";
|
|
2878
|
+
} catch {
|
|
2879
|
+
return fallback;
|
|
2880
|
+
}
|
|
2881
|
+
}
|
|
2882
|
+
function subscribe(listener) {
|
|
2883
|
+
window.addEventListener(EVENT, listener);
|
|
2884
|
+
window.addEventListener("storage", listener);
|
|
2885
|
+
return () => {
|
|
2886
|
+
window.removeEventListener(EVENT, listener);
|
|
2887
|
+
window.removeEventListener("storage", listener);
|
|
2888
|
+
};
|
|
2889
|
+
}
|
|
2890
|
+
function setStartupDetails(value) {
|
|
2891
|
+
fallback = value;
|
|
2892
|
+
try {
|
|
2893
|
+
window.localStorage.setItem(KEY, String(value));
|
|
2894
|
+
} catch {
|
|
2895
|
+
}
|
|
2896
|
+
window.dispatchEvent(new Event(EVENT));
|
|
2897
|
+
}
|
|
2898
|
+
function useStartupDetails() {
|
|
2899
|
+
return useSyncExternalStore2(subscribe, snapshot, () => false);
|
|
2900
|
+
}
|
|
2901
|
+
|
|
2870
2902
|
// src/timeline/agent-row.tsx
|
|
2871
2903
|
import { ArrowUpRightIcon, ChevronRightIcon as ChevronRightIcon2 } from "lucide-react";
|
|
2872
2904
|
import { useContext as useContext6, useState as useState8 } from "react";
|
|
@@ -4029,38 +4061,6 @@ var FacetRenderBoundary = class extends Component2 {
|
|
|
4029
4061
|
}
|
|
4030
4062
|
};
|
|
4031
4063
|
|
|
4032
|
-
// src/timeline/retained-loaders.ts
|
|
4033
|
-
function createWorkspaceRetainedArtifactLoader(client, workspaceId) {
|
|
4034
|
-
return async (artifact, signal, options) => {
|
|
4035
|
-
if (artifact.kind === "file" && options?.prefer !== "url") {
|
|
4036
|
-
const download2 = await client.downloadRetainedArtifact(workspaceId, artifact, { signal });
|
|
4037
|
-
return download2.bytes;
|
|
4038
|
-
}
|
|
4039
|
-
const download = await client.createRetainedArtifactDownloadUrl(workspaceId, artifact, {
|
|
4040
|
-
signal
|
|
4041
|
-
});
|
|
4042
|
-
return { url: download.url, expiresAt: download.expiresAt };
|
|
4043
|
-
};
|
|
4044
|
-
}
|
|
4045
|
-
function createSessionRetainedScreenshotLoader(client, workspaceId, sessionId) {
|
|
4046
|
-
return async (artifact, signal) => {
|
|
4047
|
-
const download = await client.downloadRetainedScreenshot(
|
|
4048
|
-
workspaceId,
|
|
4049
|
-
sessionId,
|
|
4050
|
-
artifact.artifactId,
|
|
4051
|
-
{ signal }
|
|
4052
|
-
);
|
|
4053
|
-
if (!download.metadata.available || !download.bytes) return null;
|
|
4054
|
-
if (download.metadata.artifactId !== artifact.artifactId || download.metadata.kind !== artifact.kind || download.metadata.contentType !== artifact.contentType || download.metadata.originalBytes !== artifact.originalBytes || download.metadata.sha256 !== artifact.sha256 || download.metadata.dimensions?.width !== artifact.dimensions?.width || download.metadata.dimensions?.height !== artifact.dimensions?.height) {
|
|
4055
|
-
throw new Error("Retained screenshot receipt verification failed");
|
|
4056
|
-
}
|
|
4057
|
-
return download.bytes;
|
|
4058
|
-
};
|
|
4059
|
-
}
|
|
4060
|
-
function createWorkspaceRetainedVideoLoader(client, workspaceId) {
|
|
4061
|
-
return async (artifactId, signal) => await client.createVideoArtifactPlaybackSource(workspaceId, artifactId, { signal });
|
|
4062
|
-
}
|
|
4063
|
-
|
|
4064
4064
|
// src/timeline/learning-refusal-row.tsx
|
|
4065
4065
|
import { BrainCircuitIcon as BrainCircuitIcon5 } from "lucide-react";
|
|
4066
4066
|
import { createContext as createContext12, useContext as useContext14 } from "react";
|
|
@@ -4107,12 +4107,23 @@ function LearningRefusalRow({ refusal }) {
|
|
|
4107
4107
|
}
|
|
4108
4108
|
|
|
4109
4109
|
export {
|
|
4110
|
+
createWorkspaceRetainedArtifactLoader,
|
|
4111
|
+
createSessionRetainedScreenshotLoader,
|
|
4112
|
+
createWorkspaceRetainedVideoLoader,
|
|
4113
|
+
ToolReviewHistoryProvider,
|
|
4110
4114
|
UNRECOVERABLE_TEXT,
|
|
4111
4115
|
ToolReviewFrame,
|
|
4112
4116
|
DeclineButton,
|
|
4113
4117
|
ToolActionReviewCard,
|
|
4114
4118
|
ToolActionReviewDetails,
|
|
4115
4119
|
KnowledgeActivityProvider,
|
|
4120
|
+
TimelineComputeLabelProvider,
|
|
4121
|
+
ProviderLogoProvider,
|
|
4122
|
+
ToolKindIcon,
|
|
4123
|
+
gitFileDiffToPatch,
|
|
4124
|
+
PierreDiff,
|
|
4125
|
+
defaultToolRegistry,
|
|
4126
|
+
createDefaultToolRegistry,
|
|
4116
4127
|
AgentRow,
|
|
4117
4128
|
AgentRowText,
|
|
4118
4129
|
AgentRowSection,
|
|
@@ -4123,14 +4134,6 @@ export {
|
|
|
4123
4134
|
EMBEDDED_GENIE_LOADING,
|
|
4124
4135
|
setStartupDetails,
|
|
4125
4136
|
useStartupDetails,
|
|
4126
|
-
ToolReviewHistoryProvider,
|
|
4127
|
-
TimelineComputeLabelProvider,
|
|
4128
|
-
ProviderLogoProvider,
|
|
4129
|
-
ToolKindIcon,
|
|
4130
|
-
gitFileDiffToPatch,
|
|
4131
|
-
PierreDiff,
|
|
4132
|
-
defaultToolRegistry,
|
|
4133
|
-
createDefaultToolRegistry,
|
|
4134
4137
|
EntranceAnimationProvider,
|
|
4135
4138
|
useEntranceAnimation,
|
|
4136
4139
|
SeenActivityIdsProvider,
|
|
@@ -4142,10 +4145,7 @@ export {
|
|
|
4142
4145
|
inheritFoldRestingState,
|
|
4143
4146
|
useTurnSettleOpen,
|
|
4144
4147
|
TurnSummary,
|
|
4145
|
-
createWorkspaceRetainedArtifactLoader,
|
|
4146
|
-
createSessionRetainedScreenshotLoader,
|
|
4147
|
-
createWorkspaceRetainedVideoLoader,
|
|
4148
4148
|
LearningRefusalActionsProvider,
|
|
4149
4149
|
LearningRefusalRow
|
|
4150
4150
|
};
|
|
4151
|
-
//# sourceMappingURL=chunk-
|
|
4151
|
+
//# sourceMappingURL=chunk-F33EDYS7.js.map
|