@opengeni/react 4.0.2 → 4.0.5-canary.39118806767001
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/README.md +787 -26
- package/dist/accounts.js +2 -0
- package/dist/accounts.js.map +1 -1
- package/dist/approvals.d.ts +2 -1
- package/dist/artifacts-document.js +6 -3
- package/dist/artifacts-presentation.js +6 -3
- package/dist/artifacts-spreadsheet.d.ts +1 -1
- package/dist/artifacts-spreadsheet.js +6 -3
- package/dist/artifacts.d.ts +5 -1
- package/dist/artifacts.js +542 -278
- package/dist/artifacts.js.map +1 -1
- package/dist/browser-viewer-GEHX3KYE.js +20 -0
- package/dist/capability-catalog-row.d.ts +20 -0
- package/dist/capability-logo-fallback.d.ts +3 -0
- package/dist/chat-interactive-block-5V3BGLXT.js +15 -0
- package/dist/chunk-2DDJ6YH6.js +41 -0
- package/dist/chunk-2DDJ6YH6.js.map +1 -0
- package/dist/chunk-2EGXXUG4.js +1161 -0
- package/dist/chunk-2EGXXUG4.js.map +1 -0
- package/dist/chunk-2XKRY4GF.js +302 -0
- package/dist/chunk-2XKRY4GF.js.map +1 -0
- package/dist/chunk-2ZUUIMBY.js +343 -0
- package/dist/chunk-2ZUUIMBY.js.map +1 -0
- package/dist/chunk-4F4FGCH2.js +34 -0
- package/dist/chunk-4F4FGCH2.js.map +1 -0
- package/dist/{chunk-Z7WBDB4E.js → chunk-4M2MJLY3.js} +848 -867
- package/dist/chunk-4M2MJLY3.js.map +1 -0
- package/dist/chunk-4U7SHFQ2.js +193 -0
- package/dist/chunk-4U7SHFQ2.js.map +1 -0
- package/dist/chunk-5I4VRWBB.js +56 -0
- package/dist/chunk-5I4VRWBB.js.map +1 -0
- package/dist/{chunk-24M4YBCL.js → chunk-62XZ3IX3.js} +1751 -845
- package/dist/chunk-62XZ3IX3.js.map +1 -0
- package/dist/chunk-77THWHSU.js +308 -0
- package/dist/chunk-77THWHSU.js.map +1 -0
- package/dist/chunk-7CZLTFXF.js +466 -0
- package/dist/chunk-7CZLTFXF.js.map +1 -0
- package/dist/chunk-7N5AD2TC.js +327 -0
- package/dist/chunk-7N5AD2TC.js.map +1 -0
- package/dist/chunk-7SZ7MMCY.js +325 -0
- package/dist/chunk-7SZ7MMCY.js.map +1 -0
- package/dist/chunk-7TG6KTR2.js +3153 -0
- package/dist/chunk-7TG6KTR2.js.map +1 -0
- package/dist/chunk-AIX25FIQ.js +409 -0
- package/dist/chunk-AIX25FIQ.js.map +1 -0
- package/dist/chunk-AT2HD6RQ.js +1936 -0
- package/dist/chunk-AT2HD6RQ.js.map +1 -0
- package/dist/chunk-B27E3V37.js +29 -0
- package/dist/chunk-B27E3V37.js.map +1 -0
- package/dist/{chunk-5M6VTFJ5.js → chunk-B4EDAXMC.js} +37 -13
- package/dist/chunk-B4EDAXMC.js.map +1 -0
- package/dist/chunk-BOG2FED3.js +35 -0
- package/dist/chunk-BOG2FED3.js.map +1 -0
- package/dist/chunk-BQYQU5QW.js +109 -0
- package/dist/chunk-BQYQU5QW.js.map +1 -0
- package/dist/{chunk-PAJU5KKL.js → chunk-BRIOXCLH.js} +68 -25
- package/dist/chunk-BRIOXCLH.js.map +1 -0
- package/dist/chunk-CM7LVUKC.js +35 -0
- package/dist/chunk-CM7LVUKC.js.map +1 -0
- package/dist/{chunk-KCGXPP5V.js → chunk-CXIGFHVL.js} +35 -23
- package/dist/chunk-CXIGFHVL.js.map +1 -0
- package/dist/chunk-DHXKEJBH.js +71 -0
- package/dist/chunk-DHXKEJBH.js.map +1 -0
- package/dist/{chunk-NOSYBS2D.js → chunk-DN3TKURW.js} +12 -9
- package/dist/chunk-DN3TKURW.js.map +1 -0
- package/dist/chunk-DNJ23AWQ.js +35 -0
- package/dist/chunk-DNJ23AWQ.js.map +1 -0
- package/dist/chunk-ESAMXNBZ.js +3237 -0
- package/dist/chunk-ESAMXNBZ.js.map +1 -0
- package/dist/{chunk-4MDLEHXL.js → chunk-EWATYP5L.js} +64 -44
- package/dist/chunk-EWATYP5L.js.map +1 -0
- package/dist/{chunk-YBM6CQRU.js → chunk-FQ5CXNUG.js} +65 -42
- package/dist/chunk-FQ5CXNUG.js.map +1 -0
- package/dist/chunk-HEVQKE27.js +150 -0
- package/dist/chunk-HEVQKE27.js.map +1 -0
- package/dist/chunk-HZ47S3DP.js +1086 -0
- package/dist/chunk-HZ47S3DP.js.map +1 -0
- package/dist/chunk-I5BJ7ENY.js +174 -0
- package/dist/chunk-I5BJ7ENY.js.map +1 -0
- package/dist/chunk-IGFZFLI2.js +1390 -0
- package/dist/chunk-IGFZFLI2.js.map +1 -0
- package/dist/chunk-IGVL3ELX.js +46 -0
- package/dist/chunk-IGVL3ELX.js.map +1 -0
- package/dist/chunk-IOD24LGR.js +384 -0
- package/dist/chunk-IOD24LGR.js.map +1 -0
- package/dist/chunk-IOYHDEP3.js +38 -0
- package/dist/chunk-IOYHDEP3.js.map +1 -0
- package/dist/chunk-IQL77TMM.js +803 -0
- package/dist/chunk-IQL77TMM.js.map +1 -0
- package/dist/chunk-IZV5FTJC.js +55 -0
- package/dist/chunk-IZV5FTJC.js.map +1 -0
- package/dist/{chunk-H5YGYNXS.js → chunk-JAYYFOOB.js} +75 -28
- package/dist/chunk-JAYYFOOB.js.map +1 -0
- package/dist/chunk-KN2MYSCC.js +409 -0
- package/dist/chunk-KN2MYSCC.js.map +1 -0
- package/dist/{chunk-PEI6RANI.js → chunk-KYVJMTXL.js} +434 -145
- package/dist/chunk-KYVJMTXL.js.map +1 -0
- package/dist/{chunk-ZYRGEKWS.js → chunk-LJUMYUBO.js} +3 -1
- package/dist/{chunk-ZYRGEKWS.js.map → chunk-LJUMYUBO.js.map} +1 -1
- package/dist/{chunk-ICA6R6TW.js → chunk-LNUD3JNI.js} +1532 -395
- package/dist/chunk-LNUD3JNI.js.map +1 -0
- package/dist/chunk-M357MHH3.js +2 -0
- package/dist/{chunk-BV5A4OTE.js → chunk-MEL6PH2I.js} +1218 -537
- package/dist/chunk-MEL6PH2I.js.map +1 -0
- package/dist/chunk-MF6WS2XF.js +386 -0
- package/dist/chunk-MF6WS2XF.js.map +1 -0
- package/dist/chunk-MK2TQO4Y.js +24 -0
- package/dist/chunk-MK2TQO4Y.js.map +1 -0
- package/dist/chunk-N7S72EXK.js +25 -0
- package/dist/chunk-N7S72EXK.js.map +1 -0
- package/dist/{chunk-KZ73RL76.js → chunk-NAWXARTY.js} +58 -9
- package/dist/chunk-NAWXARTY.js.map +1 -0
- package/dist/chunk-NX4ADH73.js +14 -0
- package/dist/chunk-NX4ADH73.js.map +1 -0
- package/dist/chunk-OYQQJL3J.js +16 -0
- package/dist/chunk-OYQQJL3J.js.map +1 -0
- package/dist/chunk-P4MKPCTC.js +51 -0
- package/dist/chunk-P4MKPCTC.js.map +1 -0
- package/dist/{chunk-JVYQRRC4.js → chunk-PEHTX3V7.js} +21 -1
- package/dist/chunk-PEHTX3V7.js.map +1 -0
- package/dist/chunk-PMV53IMM.js +26 -0
- package/dist/chunk-PMV53IMM.js.map +1 -0
- package/dist/chunk-PYSEGV5X.js +14396 -0
- package/dist/chunk-PYSEGV5X.js.map +1 -0
- package/dist/{chunk-HUIKIDM5.js → chunk-QOEWDOFW.js} +295 -156
- package/dist/chunk-QOEWDOFW.js.map +1 -0
- package/dist/chunk-QV3DJVRZ.js +11 -0
- package/dist/chunk-QV3DJVRZ.js.map +1 -0
- package/dist/{chunk-HUMIRRYI.js → chunk-QYUYVSNG.js} +1103 -1699
- package/dist/chunk-QYUYVSNG.js.map +1 -0
- package/dist/{chunk-6J56T3MG.js → chunk-RRAQ5FV5.js} +186 -60
- package/dist/chunk-RRAQ5FV5.js.map +1 -0
- package/dist/{chunk-5YK2ZDIG.js → chunk-TNEZNMSN.js} +4 -10
- package/dist/chunk-TNEZNMSN.js.map +1 -0
- package/dist/{chunk-22KP6LR5.js → chunk-TXS65BB2.js} +3 -1
- package/dist/{chunk-22KP6LR5.js.map → chunk-TXS65BB2.js.map} +1 -1
- package/dist/chunk-UIWIOB4U.js +2215 -0
- package/dist/chunk-UIWIOB4U.js.map +1 -0
- package/dist/chunk-UNJPZGNK.js +63 -0
- package/dist/chunk-UNJPZGNK.js.map +1 -0
- package/dist/chunk-V7UGCQHQ.js +86 -0
- package/dist/chunk-V7UGCQHQ.js.map +1 -0
- package/dist/chunk-VU4QUISJ.js +3405 -0
- package/dist/chunk-VU4QUISJ.js.map +1 -0
- package/dist/chunk-WEY5J52U.js +467 -0
- package/dist/chunk-WEY5J52U.js.map +1 -0
- package/dist/chunk-WH2CBESG.js +409 -0
- package/dist/chunk-WH2CBESG.js.map +1 -0
- package/dist/{chunk-VZTQ73XT.js → chunk-XEA5BCMA.js} +3 -1
- package/dist/{chunk-VZTQ73XT.js.map → chunk-XEA5BCMA.js.map} +1 -1
- package/dist/{chunk-NLTS7JHI.js → chunk-XEIHS3RN.js} +834 -403
- package/dist/chunk-XEIHS3RN.js.map +1 -0
- package/dist/chunk-YNXZRE3F.js +408 -0
- package/dist/chunk-YNXZRE3F.js.map +1 -0
- package/dist/chunk-YSRBFJMQ.js +43 -0
- package/dist/chunk-YSRBFJMQ.js.map +1 -0
- package/dist/{chunk-NEXLLTP4.js → chunk-ZGFU4LVW.js} +6 -5
- package/dist/chunk-ZGFU4LVW.js.map +1 -0
- package/dist/chunk-ZO35BAMO.js +172 -0
- package/dist/chunk-ZO35BAMO.js.map +1 -0
- package/dist/chunk-ZUWF4NF7.js +13 -0
- package/dist/chunk-ZUWF4NF7.js.map +1 -0
- package/dist/client.d.ts +15 -6
- package/dist/clipboard.js +3 -1
- package/dist/commands/registry.d.ts +2 -1
- package/dist/commands/types.d.ts +2 -0
- package/dist/components/anthropic-mark.d.ts +3 -0
- package/dist/components/approval-surface.d.ts +21 -7
- package/dist/components/artifacts/artifact-chrome.d.ts +121 -0
- package/dist/components/artifacts/artifact-sandbox.d.ts +30 -0
- package/dist/components/artifacts/artifact-surface.d.ts +4 -2
- package/dist/components/artifacts/chat-interactive-block.d.ts +29 -0
- package/dist/components/artifacts/deferred-chat-media.d.ts +15 -0
- package/dist/components/artifacts/document-editor.d.ts +4 -2
- package/dist/components/artifacts/editable-artifact-ui.d.ts +4 -2
- package/dist/components/artifacts/editable-artifact-view.d.ts +48 -0
- package/dist/components/artifacts/editable-document.d.ts +3 -2
- package/dist/components/artifacts/editable-presentation.d.ts +4 -3
- package/dist/components/artifacts/editable-spreadsheet.d.ts +8 -3
- package/dist/components/artifacts/index.d.ts +8 -1
- package/dist/components/artifacts/inline-html-document.d.ts +2 -0
- package/dist/components/artifacts/latest-task-runner.d.ts +15 -0
- package/dist/components/artifacts/presentation-editor.d.ts +6 -2
- package/dist/components/artifacts/published-html-artifact-frame.d.ts +17 -40
- package/dist/components/artifacts/session-artifact-viewer.d.ts +39 -0
- package/dist/components/artifacts/site-view.d.ts +26 -0
- package/dist/components/artifacts/spreadsheet-command-queue.d.ts +20 -0
- package/dist/components/artifacts/spreadsheet-download.d.ts +7 -0
- package/dist/components/artifacts/spreadsheet-general-display.d.ts +24 -0
- package/dist/components/artifacts/spreadsheet-grid.d.ts +11 -4
- package/dist/components/artifacts/spreadsheet-resize.d.ts +50 -0
- package/dist/components/artifacts/spreadsheet-submissions.d.ts +9 -0
- package/dist/components/artifacts/visualization-assets.gen.d.ts +2 -0
- package/dist/components/browser-select-control.d.ts +16 -0
- package/dist/components/browser-viewer.d.ts +11 -2
- package/dist/components/chat-composer.d.ts +21 -3
- package/dist/components/child-session-link.d.ts +5 -1
- package/dist/components/claude-mark.d.ts +3 -0
- package/dist/components/code-editor.d.ts +1 -4
- package/dist/components/command-palette.d.ts +1 -1
- package/dist/components/composer-transcription-control.d.ts +7 -0
- package/dist/components/composer.d.ts +30 -67
- package/dist/components/computer-viewer.d.ts +1 -1
- package/dist/components/copy-button.d.ts +3 -1
- package/dist/components/desktop-viewer.d.ts +1 -1
- package/dist/components/generated-video-player.d.ts +1 -1
- package/dist/components/grok-mark.d.ts +26 -0
- package/dist/components/human-input-form.d.ts +26 -32
- package/dist/components/human-input-surface.d.ts +5 -1
- package/dist/components/linkified-text.d.ts +18 -0
- package/dist/components/machine-input-display.d.ts +25 -3
- package/dist/components/machine-status-pill.d.ts +3 -2
- package/dist/components/machines/agent-status-icon.d.ts +6 -0
- package/dist/components/machines/health.d.ts +2 -1
- package/dist/components/machines/machine-detail.d.ts +7 -1
- package/dist/components/machines/machine-status.d.ts +49 -0
- package/dist/components/machines/metric-history-chart.d.ts +1 -1
- package/dist/components/machines/series.d.ts +3 -2
- package/dist/components/markdown-table-layout.d.ts +11 -2
- package/dist/components/markdown.d.ts +37 -4
- package/dist/components/message-timeline.d.ts +79 -7
- package/dist/components/model-mark.d.ts +29 -0
- package/dist/components/model-picker.d.ts +1 -1
- package/dist/components/model-policy-picker.d.ts +31 -22
- package/dist/components/new-conversation.d.ts +32 -0
- package/dist/components/open-geni-chat.d.ts +73 -0
- package/dist/components/open-geni-links.d.ts +69 -0
- package/dist/components/openrouter-mark.d.ts +6 -0
- package/dist/components/opper-mark.d.ts +7 -0
- package/dist/components/preview-loading.d.ts +2 -0
- package/dist/components/provider-recovery-notice.d.ts +17 -0
- package/dist/components/queue-item-content.d.ts +10 -0
- package/dist/components/rehype-secret-refs.d.ts +23 -0
- package/dist/components/remark-soft-line-breaks.d.ts +38 -0
- package/dist/components/sandbox-workspace.d.ts +18 -0
- package/dist/components/secret-question-field.d.ts +31 -0
- package/dist/components/secret-ref-chip.d.ts +35 -0
- package/dist/components/session-capability-frame.d.ts +37 -0
- package/dist/components/session-chrome.d.ts +20 -7
- package/dist/components/session-commands.d.ts +6 -0
- package/dist/components/session-connection-request.d.ts +8 -0
- package/dist/components/session-conversation.d.ts +147 -6
- package/dist/components/session-list.d.ts +39 -0
- package/dist/components/session-mcp-capability-card.d.ts +41 -0
- package/dist/components/session-proxy-scope.d.ts +35 -0
- package/dist/components/session-status.d.ts +6 -2
- package/dist/components/session-usage-limit-notice.d.ts +39 -0
- package/dist/components/this-computer/illustrations.d.ts +38 -0
- package/dist/components/this-computer/labels.d.ts +111 -0
- package/dist/components/this-computer/this-computer-card.d.ts +40 -0
- package/dist/components/this-computer/this-computer-setup.d.ts +35 -0
- package/dist/components/this-computer/this-computer-status.d.ts +42 -0
- package/dist/components/this-computer/use-this-computer.d.ts +29 -0
- package/dist/components/timeline-anchor.d.ts +3 -0
- package/dist/components/timeline-annotation-shared.d.ts +3 -2
- package/dist/components/timeline-annotations-dialog.d.ts +2 -1
- package/dist/components/timeline-annotations.d.ts +5 -1
- package/dist/components/timeline-reading-progress.d.ts +11 -0
- package/dist/components/timeline-search.d.ts +34 -0
- package/dist/components/timeline-settlement.d.ts +16 -0
- package/dist/components/tool-action-review.d.ts +48 -0
- package/dist/components/tool-review-history.d.ts +25 -0
- package/dist/components/usage-limit-notice.d.ts +50 -0
- package/dist/components/usage-member-list.d.ts +92 -0
- package/dist/components/usage-meter.d.ts +74 -0
- package/dist/components/use-viewer-menu-dismiss.d.ts +2 -0
- package/dist/components/user-message-body.d.ts +10 -1
- package/dist/components/workbench-changes.d.ts +2 -1
- package/dist/composer-messages.d.ts +75 -0
- package/dist/composer-messages.js +9 -0
- package/dist/composer-messages.js.map +1 -0
- package/dist/composer-voice-events.d.ts +8 -0
- package/dist/composer.d.ts +3 -3
- package/dist/composer.js +25 -12
- package/dist/computer-viewer-VOIOZGVZ.js +21 -0
- package/dist/computer-viewer-VOIOZGVZ.js.map +1 -0
- package/dist/connect-account-identity.d.ts +8 -0
- package/dist/connect-accounts.d.ts +15 -0
- package/dist/connect-chooser.d.ts +18 -0
- package/dist/connect-panel.d.ts +18 -0
- package/dist/connect-setup.d.ts +18 -0
- package/dist/connect.d.ts +21 -0
- package/dist/connect.js +2216 -0
- package/dist/connect.js.map +1 -0
- package/dist/connection-catalog.d.ts +38 -0
- package/dist/connection-discovery.d.ts +12 -0
- package/dist/connection-installed.d.ts +17 -0
- package/dist/connection-logo.d.ts +9 -0
- package/dist/connection-service-logo.d.ts +8 -0
- package/dist/connection-service-presentation.d.ts +13 -0
- package/dist/connection-skeleton.d.ts +5 -0
- package/dist/connection-type-picker.d.ts +6 -0
- package/dist/conversation-timeline.d.ts +1 -1
- package/dist/desktop.d.ts +7 -0
- package/dist/desktop.js +28 -0
- package/dist/desktop.js.map +1 -0
- package/dist/device-authorization.d.ts +23 -0
- package/dist/diffs.d.ts +8 -0
- package/dist/diffs.js +15 -0
- package/dist/diffs.js.map +1 -0
- package/dist/discovery-cache.d.ts +5 -0
- package/dist/editor.d.ts +7 -0
- package/dist/editor.js +23 -0
- package/dist/editor.js.map +1 -0
- package/dist/embedded-new-voice-KPLC5UJZ.js +19 -0
- package/dist/embedded-new-voice-KPLC5UJZ.js.map +1 -0
- package/dist/embedded-voice-V2RFSLIU.js +19 -0
- package/dist/embedded-voice-V2RFSLIU.js.map +1 -0
- package/dist/fleet-decision-row-FE73NSQ6.js +361 -0
- package/dist/fleet-decision-row-FE73NSQ6.js.map +1 -0
- package/dist/hooks/internal.d.ts +27 -2
- package/dist/hooks/latest-question.d.ts +26 -0
- package/dist/hooks/session-view-cache.d.ts +38 -0
- package/dist/hooks/shared-machines-list.d.ts +4 -0
- package/dist/hooks/shared-query.d.ts +123 -0
- package/dist/hooks/use-attached-browsers.d.ts +1 -1
- package/dist/hooks/use-auth-runs.d.ts +1 -4
- package/dist/hooks/use-available-models.d.ts +8 -3
- package/dist/hooks/use-browser-frame-stream.d.ts +1 -1
- package/dist/hooks/use-browser-session.d.ts +12 -1
- package/dist/hooks/use-client-config-flags.d.ts +49 -0
- package/dist/hooks/use-codex-accounts.d.ts +48 -9
- package/dist/hooks/use-composer.d.ts +24 -3
- package/dist/hooks/use-computer-frame-stream.d.ts +1 -1
- package/dist/hooks/use-computer-input-posture.d.ts +13 -0
- package/dist/hooks/use-computer-session.d.ts +5 -0
- package/dist/hooks/use-connect.d.ts +23 -0
- package/dist/hooks/use-desktop-stream.d.ts +1 -1
- package/dist/hooks/use-file-attachments.d.ts +4 -0
- package/dist/hooks/use-goal.d.ts +2 -1
- package/dist/hooks/use-last-started-turn-policy.d.ts +5 -1
- package/dist/hooks/use-machine-chip.d.ts +3 -2
- package/dist/hooks/use-new-conversation.d.ts +56 -0
- package/dist/hooks/use-new-session-draft.d.ts +74 -0
- package/dist/hooks/use-realtime-voice-models.d.ts +7 -0
- package/dist/hooks/use-sandbox-files.d.ts +3 -2
- package/dist/hooks/use-session-conversation.d.ts +49 -0
- package/dist/hooks/use-session-events.d.ts +21 -2
- package/dist/hooks/use-session-mcp-approval-policy.d.ts +2 -2
- package/dist/hooks/use-session-model-account.d.ts +48 -0
- package/dist/hooks/use-supergrok-accounts.d.ts +7 -1
- package/dist/hooks/use-terminal-stream.d.ts +11 -5
- package/dist/hooks/use-transcription.d.ts +2 -1
- package/dist/hooks/use-usage.d.ts +40 -0
- package/dist/hooks/use-vaults.d.ts +53 -0
- package/dist/hooks/use-voice-input.d.ts +8 -1
- package/dist/hooks/use-workspace-sessions.d.ts +24 -5
- package/dist/human-input-model.d.ts +123 -0
- package/dist/identity-link-accounts.d.ts +11 -0
- package/dist/identity-link-consent.d.ts +18 -0
- package/dist/index.d.ts +83 -18
- package/dist/index.js +2317 -6453
- package/dist/index.js.map +1 -1
- package/dist/interaction.d.ts +1 -1
- package/dist/interaction.js +20 -29
- package/dist/interaction.js.map +1 -1
- package/dist/latest-question-SXBXROBT.js +118 -0
- package/dist/latest-question-SXBXROBT.js.map +1 -0
- package/dist/lib/client-config-read.d.ts +31 -0
- package/dist/lib/clipboard.d.ts +7 -0
- package/dist/lib/error-message.d.ts +7 -0
- package/dist/lib/format.d.ts +59 -9
- package/dist/lib/host-theme.d.ts +77 -0
- package/dist/lib/interaction-errors.d.ts +3 -0
- package/dist/lib/menu-styles.d.ts +22 -0
- package/dist/lib/notify-observer.d.ts +2 -0
- package/dist/lib/pierre-diffs-loader.d.ts +20 -0
- package/dist/lib/provider-recovery.d.ts +56 -0
- package/dist/lib/scrollbars.d.ts +11 -0
- package/dist/lib/terminal-input-readiness.d.ts +11 -0
- package/dist/lib/transient-retry.d.ts +26 -0
- package/dist/lib/workbench-peers.d.ts +36 -0
- package/dist/lib/xterm-theme.d.ts +7 -5
- package/dist/machines.js +12 -6
- package/dist/{markdown-table-layout-3Z3AWBY7.js → markdown-table-layout-3PV2UAAH.js} +51 -9
- package/dist/markdown-table-layout-3PV2UAAH.js.map +1 -0
- package/dist/mcp-connection-status.d.ts +15 -0
- package/dist/messages/en.d.ts +3328 -0
- package/dist/messages/runtime.d.ts +69 -0
- package/dist/messages.d.ts +3 -0
- package/dist/messages.js +16 -0
- package/dist/messages.js.map +1 -0
- package/dist/model-mark-paths.d.ts +34 -0
- package/dist/model-mark-paths.js +16 -0
- package/dist/model-mark-paths.js.map +1 -0
- package/dist/model-picker-model.d.ts +112 -0
- package/dist/model-picker-model.js +25 -0
- package/dist/model-picker-model.js.map +1 -0
- package/dist/model-policy-picker-menu-NWIETWSR.js +18 -0
- package/dist/model-policy-picker-menu-NWIETWSR.js.map +1 -0
- package/dist/model-policy.d.ts +35 -10
- package/dist/model-policy.js +12 -1
- package/dist/native-previews.d.ts +29 -0
- package/dist/native-previews.js +82 -0
- package/dist/native-previews.js.map +1 -0
- package/dist/new-session-draft.d.ts +7 -0
- package/dist/new-session-draft.js +639 -0
- package/dist/new-session-draft.js.map +1 -0
- package/dist/notification-text.d.ts +27 -0
- package/dist/{noto-sans-arabic-loader-IA2T4X2A.js → noto-sans-arabic-loader-XSH2KYWJ.js} +3 -1
- package/dist/{noto-sans-arabic-loader-IA2T4X2A.js.map → noto-sans-arabic-loader-XSH2KYWJ.js.map} +1 -1
- package/dist/{noto-sans-jp-loader.generated-HFGLYBR3.js → noto-sans-jp-loader.generated-MR5L6V7K.js} +3 -1
- package/dist/{noto-sans-jp-loader.generated-HFGLYBR3.js.map → noto-sans-jp-loader.generated-MR5L6V7K.js.map} +1 -1
- package/dist/organization-model.d.ts +33 -0
- package/dist/organization-model.js +65 -0
- package/dist/organization-model.js.map +1 -0
- package/dist/platform-activity-row-VSQ2FZ5T.js +119 -0
- package/dist/platform-activity-row-VSQ2FZ5T.js.map +1 -0
- package/dist/plugin-details.d.ts +14 -0
- package/dist/plugin-discovery.d.ts +25 -0
- package/dist/preview-loading-paint.d.ts +20 -0
- package/dist/provider.d.ts +37 -2
- package/dist/queue-presentation-model.d.ts +73 -0
- package/dist/queue-presentation-model.js +38 -0
- package/dist/queue-presentation-model.js.map +1 -0
- package/dist/{queue-surface-implementation-LK3S4BIW.js → queue-surface-implementation-MEKXXWGR.js} +189 -343
- package/dist/queue-surface-implementation-MEKXXWGR.js.map +1 -0
- package/dist/realtime/embedded-new-voice.d.ts +1 -0
- package/dist/realtime/embedded-voice.d.ts +1 -0
- package/dist/realtime/realtime-control.d.ts +4 -65
- package/dist/realtime/session-realtime.d.ts +79 -0
- package/dist/realtime.js +26 -1333
- package/dist/realtime.js.map +1 -1
- package/dist/sandbox-files-5NRC2QUT.js +24 -0
- package/dist/sandbox-files-5NRC2QUT.js.map +1 -0
- package/dist/sandbox-label-model.d.ts +31 -0
- package/dist/sandbox-label-model.js +20 -0
- package/dist/sandbox-label-model.js.map +1 -0
- package/dist/scrollbars.d.ts +1 -0
- package/dist/scrollbars.js +10 -0
- package/dist/scrollbars.js.map +1 -0
- package/dist/secret-reference-label.d.ts +15 -0
- package/dist/secrets-ui.d.ts +57 -0
- package/dist/session-agents-model.d.ts +11 -0
- package/dist/session-agents-model.js +25 -0
- package/dist/session-agents-model.js.map +1 -0
- package/dist/session-attention-model.d.ts +8 -0
- package/dist/session-attention-model.js +47 -0
- package/dist/session-attention-model.js.map +1 -0
- package/dist/session-auth-recommendation.d.ts +6 -0
- package/dist/session-capability-policy.d.ts +32 -0
- package/dist/session-context.d.ts +9 -1
- package/dist/session-feedback-model.d.ts +21 -0
- package/dist/session-feedback-model.js +56 -0
- package/dist/session-feedback-model.js.map +1 -0
- package/dist/session-list-model.d.ts +139 -0
- package/dist/session-list-model.js +274 -0
- package/dist/session-list-model.js.map +1 -0
- package/dist/session-realtime-OZCE6IKP.js +22 -0
- package/dist/session-realtime-OZCE6IKP.js.map +1 -0
- package/dist/session-realtime.d.ts +7 -0
- package/dist/session-realtime.js +20 -0
- package/dist/session-realtime.js.map +1 -0
- package/dist/session-status-model.d.ts +37 -0
- package/dist/session-ui.d.ts +40 -3
- package/dist/session-ui.js +127 -21
- package/dist/session-ui.js.map +1 -1
- package/dist/session.d.ts +10 -2
- package/dist/session.js +44 -20
- package/dist/site-snapshot.d.ts +14 -0
- package/dist/sites-ui.d.ts +24 -0
- package/dist/sites.d.ts +3 -0
- package/dist/sites.js +15 -0
- package/dist/sites.js.map +1 -0
- package/dist/skill-discovery.d.ts +47 -0
- package/dist/terminal.d.ts +8 -0
- package/dist/terminal.js +33 -0
- package/dist/terminal.js.map +1 -0
- package/dist/testing/session-scenarios.d.ts +10 -0
- package/dist/testing/session-scenarios.js +367 -0
- package/dist/testing/session-scenarios.js.map +1 -0
- package/dist/this-computer.d.ts +8 -0
- package/dist/this-computer.js +1042 -0
- package/dist/this-computer.js.map +1 -0
- package/dist/timeline/activity-rail.d.ts +12 -2
- package/dist/timeline/agent-identity.d.ts +30 -0
- package/dist/timeline/agent-row.d.ts +31 -0
- package/dist/timeline/allowance-exhausted-row.d.ts +24 -0
- package/dist/timeline/compaction-copy.d.ts +47 -0
- package/dist/timeline/focus-sequence.d.ts +9 -0
- package/dist/timeline/genie-copy.d.ts +4 -0
- package/dist/timeline/genie-loading.d.ts +48 -0
- package/dist/timeline/index.d.ts +12 -5
- package/dist/timeline/invoked-tool.d.ts +6 -0
- package/dist/timeline/knowledge-receipt.d.ts +17 -0
- package/dist/timeline/learning-refusal-copy.d.ts +23 -0
- package/dist/timeline/learning-refusal-row.d.ts +19 -0
- package/dist/timeline/message-sender.d.ts +19 -0
- package/dist/timeline/notice-presentation.d.ts +14 -0
- package/dist/timeline/parsers.d.ts +11 -0
- package/dist/timeline/patch-apply-command.d.ts +19 -0
- package/dist/timeline/platform-activity-presentation.d.ts +26 -0
- package/dist/timeline/platform-activity-row.d.ts +1 -2
- package/dist/timeline/presented-image.d.ts +11 -0
- package/dist/timeline/projection.d.ts +32 -2
- package/dist/timeline/provider-logo.d.ts +15 -0
- package/dist/timeline/question-nav-model.d.ts +23 -0
- package/dist/timeline/registry.d.ts +10 -1
- package/dist/timeline/retained-image.d.ts +18 -0
- package/dist/timeline/retained-loaders.d.ts +27 -0
- package/dist/timeline/rolling-activity.d.ts +11 -0
- package/dist/timeline/screenshot-lightbox.d.ts +23 -1
- package/dist/timeline/session-usage-limit-row.d.ts +11 -0
- package/dist/timeline/shared.d.ts +8 -3
- package/dist/timeline/startup-dispatch-details.d.ts +5 -0
- package/dist/timeline/startup-preference.d.ts +3 -0
- package/dist/timeline/startup-timings.d.ts +4 -0
- package/dist/timeline/tool-display-name.d.ts +6 -2
- package/dist/timeline/tool-presentation.d.ts +185 -0
- package/dist/timeline/turn-summary-model.d.ts +102 -0
- package/dist/timeline/turn-summary.d.ts +20 -54
- package/dist/timeline/types.d.ts +184 -7
- package/dist/timeline/work-presentation.d.ts +61 -0
- package/dist/{timeline-annotation-markers-DRSTLEM6.js → timeline-annotation-markers-HYLRTT6S.js} +11 -6
- package/dist/timeline-annotation-markers-HYLRTT6S.js.map +1 -0
- package/dist/{timeline-annotation-selection-IHLUGVND.js → timeline-annotation-selection-LBKW5GHA.js} +15 -5
- package/dist/timeline-annotation-selection-LBKW5GHA.js.map +1 -0
- package/dist/{timeline-annotations-dialog-6Q53N5FG.js → timeline-annotations-dialog-JKVINC42.js} +34 -19
- package/dist/timeline-annotations-dialog-JKVINC42.js.map +1 -0
- package/dist/timeline-model.d.ts +29 -0
- package/dist/timeline-model.js +254 -0
- package/dist/timeline-model.js.map +1 -0
- package/dist/usage/allowance-copy.d.ts +26 -0
- package/dist/usage/session-usage-limit.d.ts +89 -0
- package/dist/usage/summary.d.ts +35 -0
- package/dist/usage.d.ts +17 -0
- package/dist/usage.js +1201 -0
- package/dist/usage.js.map +1 -0
- package/dist/voice-recording-owner.d.ts +7 -0
- package/package.json +119 -7
- package/src/approvals.ts +8 -1
- package/src/artifacts-spreadsheet.ts +1 -0
- package/src/artifacts.ts +41 -0
- package/src/assets/README.md +8 -0
- package/src/assets/gmail.ico +0 -0
- package/src/assets/outlook.ico +0 -0
- package/src/capability-catalog-row.tsx +96 -0
- package/src/capability-logo-fallback.ts +22 -0
- package/src/client.ts +18 -30
- package/src/commands/registry.ts +46 -36
- package/src/commands/types.ts +2 -0
- package/src/components/anthropic-mark.tsx +10 -0
- package/src/components/approval-surface.tsx +407 -142
- package/src/components/artifacts/artifact-chrome.tsx +425 -0
- package/src/components/artifacts/artifact-sandbox.tsx +193 -0
- package/src/components/artifacts/artifact-surface.tsx +48 -26
- package/src/components/artifacts/chat-interactive-block.tsx +260 -0
- package/src/components/artifacts/deferred-chat-media.tsx +72 -0
- package/src/components/artifacts/document-editor.tsx +193 -45
- package/src/components/artifacts/editable-artifact-ui.tsx +23 -11
- package/src/components/artifacts/editable-artifact-view.tsx +199 -0
- package/src/components/artifacts/editable-artifact-workbench.tsx +8 -3
- package/src/components/artifacts/editable-document.tsx +76 -54
- package/src/components/artifacts/editable-presentation.tsx +86 -40
- package/src/components/artifacts/editable-spreadsheet.tsx +581 -121
- package/src/components/artifacts/index.ts +42 -0
- package/src/components/artifacts/inline-html-document.ts +24 -0
- package/src/components/artifacts/latest-task-runner.ts +49 -0
- package/src/components/artifacts/presentation-editor.tsx +422 -122
- package/src/components/artifacts/published-html-artifact-frame.tsx +79 -265
- package/src/components/artifacts/session-artifact-viewer.tsx +381 -0
- package/src/components/artifacts/site-view.tsx +129 -0
- package/src/components/artifacts/spreadsheet-canvas.ts +5 -10
- package/src/components/artifacts/spreadsheet-command-queue.ts +190 -0
- package/src/components/artifacts/spreadsheet-download.tsx +117 -0
- package/src/components/artifacts/spreadsheet-general-display.ts +43 -0
- package/src/components/artifacts/spreadsheet-grid.tsx +390 -172
- package/src/components/artifacts/spreadsheet-resize.tsx +432 -0
- package/src/components/artifacts/spreadsheet-submissions.tsx +46 -0
- package/src/components/artifacts/visualization-assets/base.css +1015 -0
- package/src/components/artifacts/visualization-assets/helpers.html +349 -0
- package/src/components/artifacts/visualization-assets.gen.ts +3 -0
- package/src/components/browser-select-control.tsx +320 -0
- package/src/components/browser-viewer.tsx +1102 -505
- package/src/components/chat-composer.tsx +42 -3
- package/src/components/child-session-link.tsx +16 -5
- package/src/components/claude-mark.tsx +11 -0
- package/src/components/code-editor.tsx +38 -27
- package/src/components/command-palette.tsx +4 -1
- package/src/components/composer-transcription-control.tsx +151 -50
- package/src/components/composer.tsx +281 -176
- package/src/components/computer-viewer.tsx +1013 -341
- package/src/components/copy-button.tsx +17 -7
- package/src/components/desktop-viewer.tsx +42 -33
- package/src/components/diff-view.tsx +3 -1
- package/src/components/enrollment-consent.tsx +39 -34
- package/src/components/enrollment-device-flow.tsx +31 -19
- package/src/components/file-browser.tsx +47 -35
- package/src/components/fleet-tile.tsx +8 -4
- package/src/components/generated-video-player.tsx +10 -5
- package/src/components/grok-mark.tsx +34 -0
- package/src/components/human-input-form.tsx +438 -251
- package/src/components/human-input-surface.tsx +8 -0
- package/src/components/interaction-intervention-banner.tsx +15 -13
- package/src/components/linkified-text.tsx +79 -0
- package/src/components/machine-card.tsx +56 -89
- package/src/components/machine-dock-bar.tsx +10 -4
- package/src/components/machine-health-pill.tsx +4 -2
- package/src/components/machine-input-display.ts +309 -34
- package/src/components/machine-metrics.tsx +10 -7
- package/src/components/machine-status-pill.tsx +23 -15
- package/src/components/machines/agent-status-icon.tsx +31 -0
- package/src/components/machines/health.ts +53 -10
- package/src/components/machines/machine-detail.tsx +230 -42
- package/src/components/machines/machine-operation-policy.tsx +36 -29
- package/src/components/machines/machine-status.ts +264 -0
- package/src/components/machines/metric-history-chart.tsx +8 -2
- package/src/components/machines/series.ts +12 -11
- package/src/components/machines-dashboard.tsx +16 -9
- package/src/components/markdown-table-layout.ts +67 -9
- package/src/components/markdown.tsx +470 -133
- package/src/components/message-timeline.tsx +2290 -752
- package/src/components/model-mark.tsx +102 -0
- package/src/components/model-picker.tsx +27 -9
- package/src/components/model-policy-picker-menu.tsx +204 -100
- package/src/components/model-policy-picker.tsx +215 -152
- package/src/components/new-conversation.tsx +223 -0
- package/src/components/open-geni-chat.tsx +311 -0
- package/src/components/open-geni-links.tsx +183 -0
- package/src/components/openrouter-mark.tsx +13 -0
- package/src/components/opper-mark.tsx +18 -0
- package/src/components/pierre-diff.tsx +47 -19
- package/src/components/pierre-file.tsx +38 -11
- package/src/components/preview-loading.tsx +111 -0
- package/src/components/provider-recovery-notice.tsx +51 -0
- package/src/components/queue-item-content.ts +16 -0
- package/src/components/queue-surface-implementation.tsx +185 -420
- package/src/components/queue-surface-state.tsx +13 -8
- package/src/components/queue-surface.tsx +3 -1
- package/src/components/rehype-secret-refs.ts +98 -0
- package/src/components/remark-soft-line-breaks.ts +166 -0
- package/src/components/sandbox-files.tsx +75 -44
- package/src/components/sandbox-terminal.tsx +103 -22
- package/src/components/sandbox-workspace.tsx +168 -78
- package/src/components/secret-question-field.tsx +326 -0
- package/src/components/secret-ref-chip.tsx +187 -0
- package/src/components/session-capability-frame.tsx +203 -0
- package/src/components/session-chrome.tsx +559 -328
- package/src/components/session-commands-panel.tsx +34 -17
- package/src/components/session-commands.tsx +18 -0
- package/src/components/session-connection-request.tsx +99 -0
- package/src/components/session-conversation.tsx +853 -118
- package/src/components/session-list.tsx +259 -0
- package/src/components/session-mcp-capability-card.tsx +681 -0
- package/src/components/session-proxy-scope.tsx +160 -0
- package/src/components/session-status.tsx +35 -21
- package/src/components/session-usage-limit-notice.tsx +176 -0
- package/src/components/this-computer/illustrations.tsx +164 -0
- package/src/components/this-computer/labels.ts +234 -0
- package/src/components/this-computer/this-computer-card.tsx +203 -0
- package/src/components/this-computer/this-computer-setup.tsx +433 -0
- package/src/components/this-computer/this-computer-status.tsx +329 -0
- package/src/components/this-computer/use-this-computer.ts +183 -0
- package/src/components/timeline-anchor.tsx +43 -15
- package/src/components/timeline-annotation-chrome.tsx +33 -9
- package/src/components/timeline-annotation-markers.tsx +4 -2
- package/src/components/timeline-annotation-selection.tsx +11 -2
- package/src/components/timeline-annotation-shared.ts +9 -8
- package/src/components/timeline-annotations-dialog.tsx +30 -9
- package/src/components/timeline-annotations.tsx +24 -7
- package/src/components/timeline-reading-progress.ts +80 -0
- package/src/components/timeline-search.tsx +168 -0
- package/src/components/timeline-settlement.ts +60 -0
- package/src/components/tool-action-review.tsx +670 -0
- package/src/components/tool-review-history.tsx +88 -0
- package/src/components/usage-limit-notice.tsx +183 -0
- package/src/components/usage-member-list.tsx +797 -0
- package/src/components/usage-meter.tsx +386 -0
- package/src/components/use-viewer-menu-dismiss.ts +33 -0
- package/src/components/user-message-body.tsx +33 -2
- package/src/components/workbench-changes.tsx +28 -16
- package/src/components/workspace-dock.tsx +45 -13
- package/src/composer-messages.ts +153 -0
- package/src/composer-voice-events.ts +12 -0
- package/src/composer.ts +4 -0
- package/src/connect-account-identity.tsx +38 -0
- package/src/connect-accounts.tsx +233 -0
- package/src/connect-chooser.tsx +339 -0
- package/src/connect-panel.tsx +104 -0
- package/src/connect-setup.tsx +354 -0
- package/src/connect.ts +60 -0
- package/src/connection-assets.d.ts +4 -0
- package/src/connection-catalog.tsx +175 -0
- package/src/connection-discovery.tsx +251 -0
- package/src/connection-installed.tsx +56 -0
- package/src/connection-logo.tsx +37 -0
- package/src/connection-service-logo.tsx +55 -0
- package/src/connection-service-presentation.ts +46 -0
- package/src/connection-skeleton.tsx +16 -0
- package/src/connection-type-picker.tsx +38 -0
- package/src/conversation-timeline.ts +11 -2
- package/src/desktop.ts +24 -0
- package/src/device-authorization.tsx +111 -0
- package/src/diffs.ts +16 -0
- package/src/discovery-cache.ts +42 -0
- package/src/editor.ts +13 -0
- package/src/hooks/internal.ts +93 -10
- package/src/hooks/latest-question.ts +168 -0
- package/src/hooks/session-view-cache.ts +167 -0
- package/src/hooks/shared-machines-list.ts +34 -1
- package/src/hooks/shared-query.ts +744 -0
- package/src/hooks/use-attached-browsers.ts +1 -1
- package/src/hooks/use-auth-runs.ts +0 -27
- package/src/hooks/use-available-models.ts +20 -10
- package/src/hooks/use-browser-frame-stream.ts +23 -4
- package/src/hooks/use-browser-session.ts +684 -206
- package/src/hooks/use-browser-sessions.ts +32 -1
- package/src/hooks/use-client-config-flags.ts +102 -0
- package/src/hooks/use-codex-accounts.ts +216 -43
- package/src/hooks/use-composer.ts +240 -59
- package/src/hooks/use-computer-frame-stream.ts +29 -9
- package/src/hooks/use-computer-input-posture.ts +96 -0
- package/src/hooks/use-computer-session.ts +419 -100
- package/src/hooks/use-connect.ts +23 -0
- package/src/hooks/use-desktop-stream.ts +19 -28
- package/src/hooks/use-file-attachments.ts +19 -3
- package/src/hooks/use-goal.ts +172 -21
- package/src/hooks/use-human-input.ts +16 -2
- package/src/hooks/use-last-started-turn-policy.ts +37 -11
- package/src/hooks/use-machine-chip.ts +13 -8
- package/src/hooks/use-machines.ts +24 -10
- package/src/hooks/use-new-conversation.ts +377 -0
- package/src/hooks/use-new-session-draft.ts +813 -0
- package/src/hooks/use-realtime-voice-models.ts +46 -0
- package/src/hooks/use-sandbox-files.ts +22 -16
- package/src/hooks/use-session-background-commands.ts +2 -2
- package/src/hooks/use-session-capabilities.ts +3 -2
- package/src/hooks/use-session-conversation.ts +150 -0
- package/src/hooks/use-session-events.ts +403 -64
- package/src/hooks/use-session-lineage.ts +47 -9
- package/src/hooks/use-session-mcp-approval-policy.ts +13 -5
- package/src/hooks/use-session-model-account.ts +174 -0
- package/src/hooks/use-session.ts +19 -3
- package/src/hooks/use-slash-commands.ts +6 -11
- package/src/hooks/use-supergrok-accounts.ts +22 -8
- package/src/hooks/use-terminal-stream.ts +153 -27
- package/src/hooks/use-transcription.ts +45 -19
- package/src/hooks/use-turn-queue.ts +25 -5
- package/src/hooks/use-usage.ts +100 -0
- package/src/hooks/use-vaults.ts +153 -0
- package/src/hooks/use-video-artifact-playback.ts +1 -1
- package/src/hooks/use-voice-input.ts +127 -19
- package/src/hooks/use-workspace-capture.ts +3 -2
- package/src/hooks/use-workspace-sessions.ts +74 -7
- package/src/human-input-model.ts +374 -0
- package/src/identity-link-accounts.tsx +149 -0
- package/src/identity-link-consent.tsx +193 -0
- package/src/index.ts +282 -16
- package/src/interaction.ts +1 -0
- package/src/lib/client-config-read.ts +76 -0
- package/src/lib/clipboard.ts +29 -0
- package/src/lib/error-message.ts +37 -0
- package/src/lib/format.ts +231 -36
- package/src/lib/host-theme.ts +529 -0
- package/src/lib/interaction-errors.ts +15 -0
- package/src/lib/menu-styles.ts +44 -0
- package/src/lib/notify-observer.ts +15 -0
- package/src/lib/pierre-diffs-loader.ts +53 -0
- package/src/lib/provider-recovery.ts +255 -0
- package/src/lib/scrollbars.ts +30 -0
- package/src/lib/terminal-input-readiness.ts +51 -0
- package/src/lib/transient-retry.ts +101 -0
- package/src/lib/workbench-peers.ts +62 -0
- package/src/lib/xterm-theme.ts +23 -21
- package/src/mcp-connection-status.ts +39 -0
- package/src/messages/en.ts +3810 -0
- package/src/messages/runtime.tsx +175 -0
- package/src/messages.ts +19 -0
- package/src/model-mark-paths.ts +53 -0
- package/src/model-picker-model.ts +343 -0
- package/src/model-policy.ts +301 -79
- package/src/native-previews.ts +104 -0
- package/src/new-session-draft.ts +22 -0
- package/src/notification-text.ts +81 -0
- package/src/organization-model.ts +123 -0
- package/src/plugin-details.tsx +192 -0
- package/src/plugin-discovery.tsx +209 -0
- package/src/preview-loading-paint.ts +68 -0
- package/src/provider.tsx +105 -21
- package/src/queue-presentation-model.ts +475 -0
- package/src/realtime/dropdown-menu.tsx +19 -12
- package/src/realtime/embedded-new-voice.tsx +1 -0
- package/src/realtime/embedded-voice.tsx +3 -0
- package/src/realtime/realtime-control.tsx +240 -609
- package/src/realtime/session-realtime.ts +582 -0
- package/src/sandbox-label-model.ts +56 -0
- package/src/scrollbars.ts +3 -0
- package/src/secret-reference-label.ts +47 -0
- package/src/secrets-ui.tsx +59 -0
- package/src/session-agents-model.ts +40 -0
- package/src/session-attention-model.ts +62 -0
- package/src/session-auth-recommendation.ts +50 -0
- package/src/session-capability-policy.ts +200 -0
- package/src/session-context.ts +13 -5
- package/src/session-feedback-model.ts +101 -0
- package/src/session-list-model.ts +437 -0
- package/src/session-realtime.ts +18 -0
- package/src/session-status-model.ts +99 -0
- package/src/session-ui.ts +102 -3
- package/src/session.ts +19 -1
- package/src/site-snapshot.ts +74 -0
- package/src/sites-ui.tsx +350 -0
- package/src/sites.ts +3 -0
- package/src/skill-discovery.tsx +221 -0
- package/src/terminal.ts +26 -0
- package/src/testing/session-scenarios.ts +404 -0
- package/src/this-computer.ts +62 -0
- package/src/timeline/activity-rail.tsx +289 -119
- package/src/timeline/agent-identity.tsx +84 -0
- package/src/timeline/agent-row.tsx +235 -0
- package/src/timeline/allowance-exhausted-row.tsx +90 -0
- package/src/timeline/compaction-copy.ts +125 -0
- package/src/timeline/fleet-decision-row.tsx +120 -101
- package/src/timeline/focus-sequence.ts +44 -0
- package/src/timeline/genie-copy.ts +22 -0
- package/src/timeline/genie-loading.tsx +158 -0
- package/src/timeline/index.ts +37 -2
- package/src/timeline/invoked-tool.ts +15 -0
- package/src/timeline/knowledge-receipt.tsx +104 -0
- package/src/timeline/learning-refusal-copy.ts +67 -0
- package/src/timeline/learning-refusal-row.tsx +70 -0
- package/src/timeline/message-sender.tsx +71 -0
- package/src/timeline/notice-presentation.ts +67 -0
- package/src/timeline/parsers.ts +42 -2
- package/src/timeline/patch-apply-command.tsx +139 -0
- package/src/timeline/platform-activity-presentation.ts +219 -0
- package/src/timeline/platform-activity-row.tsx +34 -98
- package/src/timeline/presented-image.ts +63 -0
- package/src/timeline/projection.ts +1556 -71
- package/src/timeline/provider-logo.tsx +53 -0
- package/src/timeline/question-nav-model.ts +28 -0
- package/src/timeline/registry.ts +11 -1
- package/src/timeline/retained-image.ts +102 -0
- package/src/timeline/retained-loaders.ts +91 -0
- package/src/timeline/rolling-activity.tsx +84 -0
- package/src/timeline/screenshot-lightbox.tsx +250 -10
- package/src/timeline/session-usage-limit-row.tsx +44 -0
- package/src/timeline/shared.tsx +76 -29
- package/src/timeline/startup-dispatch-details.tsx +43 -0
- package/src/timeline/startup-preference.ts +33 -0
- package/src/timeline/startup-timings.tsx +164 -0
- package/src/timeline/tool-diff.tsx +3 -1
- package/src/timeline/tool-display-name.ts +38 -6
- package/src/timeline/tool-presentation.ts +1552 -0
- package/src/timeline/tool-renderers.tsx +1023 -1265
- package/src/timeline/turn-summary-model.ts +363 -0
- package/src/timeline/turn-summary.tsx +288 -367
- package/src/timeline/types.ts +191 -7
- package/src/timeline/work-presentation.ts +196 -0
- package/src/timeline-model.ts +143 -0
- package/src/usage/allowance-copy.ts +70 -0
- package/src/usage/session-usage-limit.ts +270 -0
- package/src/usage/summary.ts +93 -0
- package/src/usage.ts +70 -0
- package/src/voice-recording-owner.ts +22 -0
- package/styles/compiled.css +2010 -651
- package/styles/connect.css +290 -0
- package/styles/connect.d.ts +1 -0
- package/styles/effective-tokens.css +1 -0
- package/styles/index.css +286 -9
- package/styles/responsive.css +98 -6
- package/styles/session-capability.css +44 -0
- package/styles/this-computer.css +1042 -0
- package/styles/this-computer.d.ts +1 -0
- package/styles/tokens.css +132 -64
- package/dist/browser-viewer-NTD6UIPR.js +0 -14
- package/dist/chunk-24M4YBCL.js.map +0 -1
- package/dist/chunk-4MDLEHXL.js.map +0 -1
- package/dist/chunk-5M6VTFJ5.js.map +0 -1
- package/dist/chunk-5PQJOCX5.js +0 -902
- package/dist/chunk-5PQJOCX5.js.map +0 -1
- package/dist/chunk-5YK2ZDIG.js.map +0 -1
- package/dist/chunk-6J56T3MG.js.map +0 -1
- package/dist/chunk-BV5A4OTE.js.map +0 -1
- package/dist/chunk-CQG7YUJB.js +0 -10883
- package/dist/chunk-CQG7YUJB.js.map +0 -1
- package/dist/chunk-H5YGYNXS.js.map +0 -1
- package/dist/chunk-HUIKIDM5.js.map +0 -1
- package/dist/chunk-HUMIRRYI.js.map +0 -1
- package/dist/chunk-ICA6R6TW.js.map +0 -1
- package/dist/chunk-JVYQRRC4.js.map +0 -1
- package/dist/chunk-KCGXPP5V.js.map +0 -1
- package/dist/chunk-KZ73RL76.js.map +0 -1
- package/dist/chunk-NEXLLTP4.js.map +0 -1
- package/dist/chunk-NLTS7JHI.js.map +0 -1
- package/dist/chunk-NOSYBS2D.js.map +0 -1
- package/dist/chunk-PAJU5KKL.js.map +0 -1
- package/dist/chunk-PEI6RANI.js.map +0 -1
- package/dist/chunk-PLYRL5ER.js +0 -164
- package/dist/chunk-PLYRL5ER.js.map +0 -1
- package/dist/chunk-R4KRSFGA.js +0 -290
- package/dist/chunk-R4KRSFGA.js.map +0 -1
- package/dist/chunk-UMECRJRV.js +0 -223
- package/dist/chunk-UMECRJRV.js.map +0 -1
- package/dist/chunk-VRBL3F5E.js +0 -241
- package/dist/chunk-VRBL3F5E.js.map +0 -1
- package/dist/chunk-YBM6CQRU.js.map +0 -1
- package/dist/chunk-Z7WBDB4E.js.map +0 -1
- package/dist/computer-viewer-7TEZC6Y2.js +0 -16
- package/dist/fleet-decision-row-YZ3ZKWMM.js +0 -352
- package/dist/fleet-decision-row-YZ3ZKWMM.js.map +0 -1
- package/dist/hooks/use-environments.d.ts +0 -41
- package/dist/hooks/use-packs.d.ts +0 -32
- package/dist/markdown-table-layout-3Z3AWBY7.js.map +0 -1
- package/dist/model-policy-picker-menu-3R336DP2.js +0 -13
- package/dist/platform-activity-row-27LKAWZD.js +0 -169
- package/dist/platform-activity-row-27LKAWZD.js.map +0 -1
- package/dist/queue-surface-implementation-LK3S4BIW.js.map +0 -1
- package/dist/timeline-annotation-markers-DRSTLEM6.js.map +0 -1
- package/dist/timeline-annotation-selection-IHLUGVND.js.map +0 -1
- package/dist/timeline-annotations-dialog-6Q53N5FG.js.map +0 -1
- package/src/hooks/use-environments.ts +0 -182
- package/src/hooks/use-packs.ts +0 -157
- /package/dist/{browser-viewer-NTD6UIPR.js.map → browser-viewer-GEHX3KYE.js.map} +0 -0
- /package/dist/{computer-viewer-7TEZC6Y2.js.map → chat-interactive-block-5V3BGLXT.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-3R336DP2.js.map → chunk-M357MHH3.js.map} +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @opengeni/react
|
|
2
2
|
|
|
3
|
-
React hooks and styled components for
|
|
3
|
+
React hooks and styled components for Opengeni, built on
|
|
4
4
|
[`@opengeni/sdk`](../sdk): live session streaming, a chat composer, a message
|
|
5
5
|
timeline that renders streaming deltas / tool calls / spawned-worker status,
|
|
6
6
|
session status badges, and fleet tiles for workspace overviews. Two opt-in
|
|
@@ -19,17 +19,325 @@ island for back-compat, deprecated per #144.)
|
|
|
19
19
|
|
|
20
20
|
Design-system-first: every visual decision routes through CSS-variable tokens
|
|
21
21
|
(`styles/tokens.css`) — color, typography, radius, shadow, motion. Dark mode is
|
|
22
|
-
the first-class default; light is an opt-in via `data-og-theme="light"` on
|
|
23
|
-
ancestor.
|
|
22
|
+
the first-class token default; light is an opt-in via `data-og-theme="light"` on
|
|
23
|
+
any ancestor. The embedded chat roots (`OpenGeniChat`, `SessionConversation`)
|
|
24
|
+
resolve light or dark from the host page instead; see
|
|
25
|
+
[Conversation UI](#conversation-ui). Components are styled with Tailwind v4 utilities mapped onto the
|
|
24
26
|
tokens, Radix primitives for behavior, and Motion for state-communicating
|
|
25
27
|
animation. Override the tokens to rebrand everything.
|
|
26
28
|
|
|
29
|
+
## Embedded connections and Sites
|
|
30
|
+
|
|
31
|
+
For a child chat's capability selection, `prepareSessionCapabilityAccess` reads
|
|
32
|
+
an ancestor-to-child access plan without writing. Show the parent chats whose
|
|
33
|
+
`request` is non-null and obtain an explicit confirmation before calling
|
|
34
|
+
`applySessionCapabilityAccess`. The plan preserves existing choices, applies
|
|
35
|
+
version-fenced updates root first, and grants no authority: each ordinary API
|
|
36
|
+
request still authorizes its caller. Invalidate the review on actor/workspace
|
|
37
|
+
changes. A partial failure may leave approved parent changes saved; prepare a
|
|
38
|
+
new plan for retry instead of rolling them back. Existing
|
|
39
|
+
`attachSessionCapability` remains a single-chat operation and never changes
|
|
40
|
+
parents implicitly.
|
|
41
|
+
|
|
42
|
+
Optional `@opengeni/react/connect` exports `useConnect`, `ConnectChooser`,
|
|
43
|
+
`ConnectSetup`, `ConnectAccounts`, and the composed `ConnectPanel`. Inject one
|
|
44
|
+
`@opengeni/connect` controller per authenticated actor/workspace and dispose it
|
|
45
|
+
when that scope changes. The controller uses your authenticated backend proxy;
|
|
46
|
+
never place an organization key in browser props. Import
|
|
47
|
+
`@opengeni/react/connect.css` for opt-in, scoped styles without Tailwind.
|
|
48
|
+
`DeviceAuthorization` also accepts an optional `render` callback for host presentation;
|
|
49
|
+
it receives shared copy state, the copy action, and the validated verification URL.
|
|
50
|
+
Omitting it preserves the default embedded presentation.
|
|
51
|
+
|
|
52
|
+
`CapabilityCatalogRow` gives connections, skills, and plugins one consistent
|
|
53
|
+
icon/name/description button with a decorative plus/check and visible exception
|
|
54
|
+
states. Supply `onOpen` and an explicit `status`; the host owns setup and
|
|
55
|
+
installation. `ConnectionCatalog` accepts the same states through each option's
|
|
56
|
+
`state`. Older callers that omit `state` keep their visible status labels, so
|
|
57
|
+
provider warnings are not hidden during migration.
|
|
58
|
+
|
|
59
|
+
`PluginDiscovery` accepts `defaultProvider="openai"` or `"anthropic"` to choose
|
|
60
|
+
the initial registry. Omitting it starts with All. Users can still switch among
|
|
61
|
+
All, OpenAI, and Anthropic; changing the search preserves their selection. The
|
|
62
|
+
Opengeni Plugins page starts with OpenAI.
|
|
63
|
+
|
|
64
|
+
```tsx
|
|
65
|
+
import { ConnectPanel } from "@opengeni/react/connect";
|
|
66
|
+
import "@opengeni/react/connect.css";
|
|
67
|
+
|
|
68
|
+
<ConnectPanel
|
|
69
|
+
controller={controller}
|
|
70
|
+
returnUrl={hostSelectedReturnUrl}
|
|
71
|
+
onAuthorize={hostAuthorizeFromClick}
|
|
72
|
+
/>;
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
The host owns synchronous popup/full-redirect navigation and pending-attempt
|
|
76
|
+
recovery. Backend state, not a popup message or URL query, proves completion.
|
|
77
|
+
Operation installation uses explicit selection; OAuth success alone is not
|
|
78
|
+
installation. Account disconnect requires an observed version and confirmation,
|
|
79
|
+
revokes local Opengeni access only, and never silently retries an unknown outcome.
|
|
80
|
+
Provider readiness is deployment-dependent; use the server catalog rather than
|
|
81
|
+
assuming every OAuth application or operator-managed provider is configured.
|
|
82
|
+
|
|
83
|
+
Optional `@opengeni/react/sites` exports `SiteList`, `SiteDetail`, and `SiteClient`.
|
|
84
|
+
Pass the public SDK client through your host proxy. `onOpen` owns list
|
|
85
|
+
navigation. Authoring buttons and prompts belong to the host and use the ordinary
|
|
86
|
+
session SDK; they are not part of the Site component API. `SiteDetail` reuses `PublishedHtmlArtifactFrame`, accepts
|
|
87
|
+
an optional authenticated/filtered tool bridge, and removes the frame after
|
|
88
|
+
read-authority refresh failure. Loaded Sites revalidate every 15 seconds;
|
|
89
|
+
downloaded HTML cannot be recalled and every tool call still needs live authority.
|
|
90
|
+
|
|
91
|
+
`canPublish` is only a presentation hint. Version-checked rollback/archive/restore
|
|
92
|
+
remain subject to backend `artifacts:publish` permission. Sites stay workspace
|
|
93
|
+
shared, even if a source session is private. See
|
|
94
|
+
[`examples/embedded-product`](../../examples/embedded-product/README.md) for the
|
|
95
|
+
runnable loopback host reference. Native route reuse and full visual acceptance
|
|
96
|
+
are not implied by these optional package surfaces.
|
|
27
97
|
## Conversation UI
|
|
28
98
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
99
|
+
For an account-aware header, `useLastStartedTurnPolicy(sessionId, { events,
|
|
100
|
+
includeServingModel: true })` overlays the latest lease-backed serving receipt
|
|
101
|
+
only when it belongs to the last started turn. This requires the optional
|
|
102
|
+
`getSessionModelAccount` client method. Without the option, the hook continues
|
|
103
|
+
to return the accepted turn policy. Neither mode changes the composer's
|
|
104
|
+
preferred model. `useSessionModelAccount` reads authorized accounts and choices;
|
|
105
|
+
pass `provider` so Automatic resets only that provider's choice. Its optional
|
|
106
|
+
`choice.serving` is the last committed placement, not a queued next-turn choice.
|
|
107
|
+
The timeline renders neutral account-switch events without exposing account
|
|
108
|
+
identity or duplicating provider compatibility events.
|
|
109
|
+
|
|
110
|
+
`OpenGeniChat` and `SessionConversation` are the default product integration.
|
|
111
|
+
Back them with `createSessionProxyHandler` from `@opengeni/sdk`, mounted on your
|
|
112
|
+
server, and pass its mount as `baseUrl`. No provider, client, or workspace id
|
|
113
|
+
is needed: the component creates the browser client and uses the workspace the
|
|
114
|
+
proxy resolved for the signed-in user (from the proxy's client config).
|
|
115
|
+
|
|
116
|
+
```tsx
|
|
117
|
+
import "@opengeni/react/compiled.css";
|
|
118
|
+
|
|
119
|
+
<OpenGeniChat baseUrl="/api/opengeni" />;
|
|
120
|
+
// or one conversation: <SessionConversation baseUrl="/api/opengeni" sessionId={sessionId} />
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Bearer-token apps pass `headers` (a function runs per request) or a custom
|
|
124
|
+
`fetch`; a `client` passed with `baseUrl` replaces the one the component
|
|
125
|
+
creates:
|
|
126
|
+
|
|
127
|
+
```tsx
|
|
128
|
+
<OpenGeniChat baseUrl="/api/opengeni" headers={() => ({ Authorization: `Bearer ${getToken()}` })} />
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
The provider form keeps working, for example for several components sharing one
|
|
132
|
+
client or the headless hooks:
|
|
133
|
+
|
|
134
|
+
```tsx
|
|
135
|
+
<OpenGeniProvider client={new OpenGeniClient({ baseUrl: "/api/opengeni" })} workspaceId={workspaceId}>
|
|
136
|
+
<SessionConversation sessionId={sessionId} />
|
|
137
|
+
</OpenGeniProvider>
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Compose `MessageTimeline` and `ChatComposer` with the session hooks only when
|
|
141
|
+
the product needs a materially different interaction model. These components do
|
|
142
|
+
not consume the text-only `@opengeni/sdk/chat` fallback protocol.
|
|
143
|
+
|
|
144
|
+
`OpenGeniChat` adds the user's chat list to the conversation: a sidebar when
|
|
145
|
+
the component is wide and a drawer behind a menu button when narrow (measured on
|
|
146
|
+
its own container, so it works inside panels), a new-chat composer that creates
|
|
147
|
+
the session from its first message, and inline rename and archive. It is
|
|
148
|
+
composed from `SessionList` and `SessionConversation`, which you can also mount
|
|
149
|
+
separately. Pass `conversationProps` for message rendering and tool renderers,
|
|
150
|
+
`createSession` to create chats through your own endpoint, or `sessionId` /
|
|
151
|
+
`onSessionChange` to control the selection (for example from the URL).
|
|
152
|
+
|
|
153
|
+
Live voice is opt-in, because a call spends your credits and asks the browser
|
|
154
|
+
for the microphone. Turn it on with `realtimeVoice={true}` (via `OpenGeniChat`'s
|
|
155
|
+
`conversationProps` too) or `createSessionProxyHandler({ realtimeVoice: true })`.
|
|
156
|
+
The composer then shows a voice button when the workspace offers an available
|
|
157
|
+
voice model (for example hosted GPT Live with credits): the user talks, the
|
|
158
|
+
voice model answers and hands work to the agent in the same chat, and the
|
|
159
|
+
transcript lands in the timeline. It stays hidden when no model is available,
|
|
160
|
+
when the proxy sets `realtimeVoice: false`, or when you pass
|
|
161
|
+
`realtimeVoice={false}`. The voice code loads lazily on first display.
|
|
162
|
+
|
|
163
|
+
The working indicator before the first reply says "Thinking…". Pass
|
|
164
|
+
`genieLoading` (`phrases`, `messages`, `orb`, or a whole `render`) to use your
|
|
165
|
+
own copy or visual. File attachments follow the proxy: it reports them off when
|
|
166
|
+
`files: false`, and for anonymous visitors (`visitor: true` from `resolve`)
|
|
167
|
+
unless it sets `visitorUploads: true`.
|
|
168
|
+
|
|
169
|
+
`SessionConversation` and `OpenGeniChat` are built to look native inside
|
|
170
|
+
someone else's product with zero styling:
|
|
171
|
+
|
|
172
|
+
- **Theme follows the host**, not the OS: an enclosing `data-og-theme`, then
|
|
173
|
+
`class="dark"`/`data-theme` (and similar) on `<html>`/`<body>`, the host's
|
|
174
|
+
`color-scheme`, then the luminance of the background the chat sits on. Pass
|
|
175
|
+
`theme="light" | "dark"` to force one.
|
|
176
|
+
- **Surfaces blend into the host** (`surface="host"`, default): backgrounds and
|
|
177
|
+
cards are opaque mixes of the host background, so a navy app gets navy cards.
|
|
178
|
+
Host-customized `--og-color-*` tokens are kept; `surface="theme"` uses the
|
|
179
|
+
token surfaces as they are.
|
|
180
|
+
- **Run control is Stop, not Pause**: a Stop control appears only while a
|
|
181
|
+
response runs, and the next message continues a stopped conversation. Opt
|
|
182
|
+
into the console's workstream Pause with `composerProps={{ runControl: "pause" }}`
|
|
183
|
+
(`"none"` hides both).
|
|
184
|
+
- **No model picker by default**: end users rarely choose models. Pass
|
|
185
|
+
`modelPicker`, or report `modelSelection: true` from the proxy
|
|
186
|
+
(`createSessionProxyHandler({ modelSelection: true })`); `modelSelection: false`
|
|
187
|
+
also fixes the policy server-side.
|
|
188
|
+
|
|
189
|
+
Attachments appear when the deployment enables uploads (`attachments={false}`
|
|
190
|
+
opts out), the microphone appears when it reports voice input available
|
|
191
|
+
(`voiceInput={false}` opts out), generated images, video, published files and
|
|
192
|
+
screenshots display through the conversation's session scope, actions a
|
|
193
|
+
session proxy reports unavailable (`sessionCreation`, `archive`, `artifacts`)
|
|
194
|
+
are hidden, the session goal shows with Pause/Resume/Clear, sub-agent cards
|
|
195
|
+
open the child through `onOpenSession` (`OpenGeniChat` opens it in place),
|
|
196
|
+
pending tool approvals render Approve/Reject, a yes/no question
|
|
197
|
+
renders as two buttons, a failed load offers Try again, and `toolRegistry`
|
|
198
|
+
customizes tool rendering.
|
|
199
|
+
|
|
200
|
+
The root keeps all existing exports, including workbench components, but never
|
|
201
|
+
imports their optional peers. Conversation-only Next.js/Vite hosts do not need
|
|
202
|
+
terminal, desktop, editor, or diff packages. Hosts mounting those surfaces opt
|
|
203
|
+
in through the [per-surface setup entries](#optional-peer-dependencies).
|
|
204
|
+
|
|
205
|
+
Highlighted diffs use the optional `@pierre/diffs` peer only after an explicit
|
|
206
|
+
opt-in, so a host without it still builds with any bundler (Turbopack resolves
|
|
207
|
+
every reachable `import()`). Hosts that install it call `enablePierreDiffs()`
|
|
208
|
+
once; call it from the lazily loaded route that renders diffs to keep the peer
|
|
209
|
+
out of your initial bundle. Views already on screen upgrade when it registers:
|
|
210
|
+
|
|
211
|
+
```ts
|
|
212
|
+
import { enablePierreDiffs } from "@opengeni/react/diffs";
|
|
213
|
+
enablePierreDiffs();
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
Without it, diffs and file views render as plain text.
|
|
217
|
+
|
|
218
|
+
`OpenGeniProvider` never blocks or reloads the host page when Opengeni deploys
|
|
219
|
+
a new API contract revision. The stock Opengeni console opts into that
|
|
220
|
+
stale-tab protection with `reloadOnApiContractChange`; embedded products
|
|
221
|
+
should leave it off.
|
|
222
|
+
|
|
223
|
+
Subscription account lists and their usage readings (`useCodexAccounts`,
|
|
224
|
+
`useSuperGrokAccounts`) are shared per `client` object: readers mounted at the
|
|
225
|
+
same time share one request and one result, and account changes made through
|
|
226
|
+
these hooks re-read every mounted list (also when the component that made the
|
|
227
|
+
change has already unmounted). By default nothing is kept after the last reader
|
|
228
|
+
unmounts, so a host that reuses one `client` for different people never shows
|
|
229
|
+
one person's accounts to the next, also when it re-keys its tree for the next
|
|
230
|
+
person in a single render: the new reader and its children never render the
|
|
231
|
+
previous rows, and a read still in flight for the previous person is
|
|
232
|
+
discarded. (A reader joining one already on screen shows its rows before the
|
|
233
|
+
browser paints, after one extra render.) Set `retainReadsAcrossMounts` on
|
|
234
|
+
`OpenGeniProvider` to keep them across navigation instead: returning to a page
|
|
235
|
+
renders the last accounts at once and re-reads them in the background once
|
|
236
|
+
they are older than 10 seconds. Failed reads are never kept, and a
|
|
237
|
+
401/403/404 drops what was kept. Retained reads are dropped when `client`
|
|
238
|
+
changes or the provider unmounts.
|
|
239
|
+
|
|
240
|
+
The same opt-in keeps the last view of each conversation a person leaves: its
|
|
241
|
+
event tail, detail, prompt queue, pending questions, goal and lineage. Reopening
|
|
242
|
+
it within 10 minutes draws that view in the first render, with no loading
|
|
243
|
+
state, while every hook still reads its resource once in the background and the
|
|
244
|
+
fresh tail replaces the kept one when it lands. It is held in memory only (never
|
|
245
|
+
written to the device), and the kept event tails together stay within one open
|
|
246
|
+
conversation's window budget, dropping the least recently left first. Hosts
|
|
247
|
+
without `OpenGeniProvider` (for example a React Native app passing `client` to
|
|
248
|
+
each hook) opt in with `useRetainedReads(client)` in a component that stays
|
|
249
|
+
mounted while that person is signed in.
|
|
250
|
+
|
|
251
|
+
> **Host action item:** only set `retainReadsAcrossMounts` (or call
|
|
252
|
+
> `useRetainedReads`) when every signed-in person gets their own `client`
|
|
253
|
+
> object (create a new client on sign-in, sign-out and account switch), as the
|
|
254
|
+
> stock Opengeni console does. With a shared client, leave it off.
|
|
255
|
+
|
|
256
|
+
Read hooks watching a shared event feed (`events` from `useSessionEvents`)
|
|
257
|
+
re-read their projection only for an event after what their own read reflects.
|
|
258
|
+
Current servers report that in the `X-OpenGeni-Session-Sequence` response header
|
|
259
|
+
of the queue, pending questions, goal and lineage reads
|
|
260
|
+
(`observedSessionSequence` in `@opengeni/sdk`); behind a server or proxy that
|
|
261
|
+
does not report it, every matching event in the loaded tail re-reads as before.
|
|
262
|
+
|
|
263
|
+
### Exact conversation search navigation
|
|
264
|
+
|
|
265
|
+
`useSessionEvents().initialHistoryReady` becomes true when a history window has
|
|
266
|
+
loaded successfully, including an empty tail. It stays true through later stream
|
|
267
|
+
errors, history navigation, and tip reloads, and resets for a new session/replay
|
|
268
|
+
identity. Use it rather than inferring initial success from `initialLoading` or
|
|
269
|
+
the combined `error`. A failed first load stays unready until recovery;
|
|
270
|
+
`jumpToLatest()` clears its stale error and retries. Full replay has no history
|
|
271
|
+
snapshot-completion watermark, so SSE alone does not set this flag.
|
|
272
|
+
|
|
273
|
+
`useSessionEvents(sessionId).jumpToSequence(sequence)` replaces the current
|
|
274
|
+
window with at most two bounded cursor reads around an exact durable event.
|
|
275
|
+
It resolves `true` only when that event is retained, `false` for a missing or
|
|
276
|
+
superseded target, and rejects current request errors. `loadingTarget` exposes
|
|
277
|
+
the pending state. New targets supersede older targets/pages; session/client
|
|
278
|
+
changes fence stale results. Search enters history mode; use the existing
|
|
279
|
+
`loadOlder`, `loadNewer`, and `jumpToLatest` controls to navigate onward. It does
|
|
280
|
+
not download the intervening session history.
|
|
281
|
+
Pass `jumpToSequence(sequence, { signal })` to cancel one navigation: an
|
|
282
|
+
aborted signal fences the pending jump before its fetched window is applied
|
|
283
|
+
(the underlying reads may still complete), resolves `false`, and settles
|
|
284
|
+
`loadingTarget` without disturbing any newer navigation that superseded it.
|
|
285
|
+
|
|
286
|
+
Pass the selected hit to `MessageTimeline` independently of loading:
|
|
287
|
+
|
|
288
|
+
```tsx
|
|
289
|
+
const history = useSessionEvents(sessionId);
|
|
290
|
+
const [target, setTarget] = useState<TimelineSearchTarget | null>(null);
|
|
291
|
+
|
|
292
|
+
function selectHit(hit: { sequence: number; eventId: string }, query: string, occurrence = 0) {
|
|
293
|
+
setTarget({ ...hit, query, occurrence });
|
|
294
|
+
void history.jumpToSequence(hit.sequence);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
<MessageTimeline events={history.events} items={history.timeline} searchTarget={target} />;
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
The host owns search results, error handling, next/previous controls and query
|
|
301
|
+
state. `TimelineSearchTarget` is exported from the root and `session-ui` entry:
|
|
302
|
+
`{ sequence: number; eventId?: string; query: string; occurrence?: number; offset?: number }`.
|
|
303
|
+
Matching is literal, case-insensitive, non-overlapping; `occurrence` is zero-based
|
|
304
|
+
within the message, defaulting to zero. When the backend all-occurrence search
|
|
305
|
+
returns `messageMatchOffset`, pass it as `offset`: the zero-based UTF-16 position
|
|
306
|
+
of the match in the original message text. An explicit `offset` takes precedence
|
|
307
|
+
over `occurrence` and is validated against the query, so a stale offset simply
|
|
308
|
+
produces no highlight. `buildTimeline` supplies `sourceEvents`
|
|
309
|
+
identities so completed assistant events remain addressable when the renderer
|
|
310
|
+
keeps a first-delta ID. Hosts supplying their own items should preserve those
|
|
311
|
+
identities (or the canonical `annotationSource`).
|
|
312
|
+
|
|
313
|
+
The active message's group and long-user disclosure open persistently. Setting
|
|
314
|
+
`searchTarget={null}` removes the active highlight without collapsing content or
|
|
315
|
+
restoring a former scroll position. The package mounts its complete bounded
|
|
316
|
+
window. The default Markdown renderer shows a labeled, bounded **message source**
|
|
317
|
+
excerpt for the active match, including Markdown syntax and link destinations;
|
|
318
|
+
closing find removes the highlight but retains that excerpt and its layout.
|
|
319
|
+
An explicit **Show formatted message** action restores the full body; this can
|
|
320
|
+
expand a huge message, so it is never done automatically on closing Find.
|
|
321
|
+
Raw UTF-16 offsets are never applied
|
|
322
|
+
to rendered Markdown text. Custom hosts can use
|
|
323
|
+
`<Markdown searchTarget={searchTarget}>{text}</Markdown>` for the same behavior.
|
|
324
|
+
A custom virtualized renderer receives
|
|
325
|
+
`renderMessageText(text, item, { searchTarget })` and must materialize the exact
|
|
326
|
+
occurrence when that context is non-null. Existing two-argument renderers remain
|
|
327
|
+
compatible. If previous occurrences are omitted from the virtualized DOM, wrap
|
|
328
|
+
the materialized match in an element with `data-og-search-occurrence` (zero-based
|
|
329
|
+
index), `data-og-search-sequence` and `data-og-search-query`, each set from the
|
|
330
|
+
target; when the target carries an `offset`, set `data-og-search-offset` to it
|
|
331
|
+
alongside `data-og-search-occurrence` (which can be zero). This lets navigation
|
|
332
|
+
identify that exact occurrence without recounting an incomplete DOM. Keep the
|
|
333
|
+
materialized window when the context clears to
|
|
334
|
+
preserve position. Navigation waits for the mounted text and highlights the active
|
|
335
|
+
DOM range using the CSS Custom Highlight API, without rewriting React-owned
|
|
336
|
+
text. Explicit source-offset targets require this marker: matching characters
|
|
337
|
+
at the same rendered offset are not proof of source identity. A custom renderer
|
|
338
|
+
that omits source text or puts it in an opaque iframe must reveal that text
|
|
339
|
+
itself. Existing renderers without this mapping remain render-compatible but
|
|
340
|
+
cannot provide exact source-offset navigation.
|
|
33
341
|
|
|
34
342
|
## Editable Office artifacts
|
|
35
343
|
|
|
@@ -83,6 +391,29 @@ import { EditablePresentationArtifactSurface } from "@opengeni/react/artifacts/p
|
|
|
83
391
|
<EditablePresentationArtifactSurface session={presentationSession} title="Launch deck" />;
|
|
84
392
|
```
|
|
85
393
|
|
|
394
|
+
The spreadsheet surface supports typing, formulas, rectangular paste, clear,
|
|
395
|
+
and durable row/column resizing. Drag a header boundary for immediate visual
|
|
396
|
+
feedback and one command on release. Focus a boundary and use arrows to resize
|
|
397
|
+
(Shift for 1 px), Home to reset, or Escape to cancel. Pending saves do not block
|
|
398
|
+
typing; the sync indicator remains pending until server acknowledgement. Failed
|
|
399
|
+
independent edits stay visible, and retry cannot overwrite newer overlapping
|
|
400
|
+
edits. The same component is used in the dock and full-page artifact view;
|
|
401
|
+
dimensions and values remain authoritative in the SDK Worker.
|
|
402
|
+
The console supplies an XLSX Download action in both dock and full-page views.
|
|
403
|
+
Custom hosts can supply `download(signal): Promise<Blob>` on the spreadsheet
|
|
404
|
+
surface, or `downloadSpreadsheet(opened, signal): Promise<Blob>` on
|
|
405
|
+
`EditableArtifactView`. Use the authenticated artifact SDK to pin the saved native
|
|
406
|
+
head, materialize XLSX, poll its job, and download its bytes; never return the
|
|
407
|
+
original imported file. Forward the abort signal through every request. The
|
|
408
|
+
control waits for live sync without pending edits, shows progress and retryable
|
|
409
|
+
errors, and cancels on teardown or revoked access. Omit the callback when the host
|
|
410
|
+
does not support export; other modalities do not gain an unsupported download.
|
|
411
|
+
Double-click a sheet tab or focus it and press F2 to rename it. Enter/Save submits
|
|
412
|
+
the canonical `sheet.rename` command; Escape/Cancel discards an unsent name.
|
|
413
|
+
Validation and failed submissions keep the name editor open. Pending cell edits
|
|
414
|
+
show submitted input until the Worker projection catches up; pending formulas
|
|
415
|
+
show their source, not an invented result.
|
|
416
|
+
|
|
86
417
|
The durable document surface composes bounded summary, body, section, and
|
|
87
418
|
review queries at one native revision. Text edits become UTF-16-correct minimal
|
|
88
419
|
`paragraph.edit` commands; formatting becomes `paragraph.format`. Empty
|
|
@@ -104,7 +435,7 @@ or permissive fallback.
|
|
|
104
435
|
|
|
105
436
|
`DocumentProjectionEditor`, `PresentationProjectionEditor`, and
|
|
106
437
|
`SpreadsheetProjectionGrid` expose the same host-owned projection/async-command
|
|
107
|
-
boundary without requiring the
|
|
438
|
+
boundary without requiring the Opengeni sync session. Pending, failure, retry,
|
|
108
439
|
read-only, focus, and reconciliation behavior stays inside the components.
|
|
109
440
|
|
|
110
441
|
Projection editors use browser-safe structural views and do not load
|
|
@@ -176,7 +507,7 @@ derived defaults use scoped effective values so changing a base accent, radius,
|
|
|
176
507
|
motion, or surface token updates its dependents at runtime.
|
|
177
508
|
|
|
178
509
|
The original Tailwind v4 bridge remains available for hosts that intentionally
|
|
179
|
-
want
|
|
510
|
+
want Opengeni utilities compiled into their own Tailwind entry:
|
|
180
511
|
|
|
181
512
|
```css
|
|
182
513
|
@import "tailwindcss";
|
|
@@ -315,9 +646,52 @@ export function App() {
|
|
|
315
646
|
}
|
|
316
647
|
```
|
|
317
648
|
|
|
649
|
+
## Your own labels and languages
|
|
650
|
+
|
|
651
|
+
Every piece of text the components show, including user-facing error messages,
|
|
652
|
+
comes from one message catalog. The built-in catalog is English; pass `locale`
|
|
653
|
+
and `messages` to `OpenGeniProvider` to show your own words or a full translation.
|
|
654
|
+
|
|
655
|
+
```tsx
|
|
656
|
+
import { OpenGeniProvider, type OpenGeniMessages } from "@opengeni/react";
|
|
657
|
+
|
|
658
|
+
const norwegian: OpenGeniMessages = {
|
|
659
|
+
"composer.stop": "Stopp",
|
|
660
|
+
"counts.items_one": "{count} element",
|
|
661
|
+
"counts.items_other": "{count} elementer",
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
<OpenGeniProvider client={client} workspaceId={workspaceId} locale="nb" messages={norwegian}>
|
|
665
|
+
{children}
|
|
666
|
+
</OpenGeniProvider>;
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
- Keys are stable, typed identifiers. `englishMessages` is the complete default
|
|
670
|
+
catalog: export it to your translation tooling as is.
|
|
671
|
+
- Templates use single-brace parameters (`"Start voice with {model}"`); a
|
|
672
|
+
translation must keep the same parameters.
|
|
673
|
+
- Counted text uses plural suffixes (`_zero`, `_one`, `_two`, `_few`, `_many`,
|
|
674
|
+
`_other`) chosen with `Intl.PluralRules` for `locale`, so each language
|
|
675
|
+
supplies the forms it needs. `_other` is always required.
|
|
676
|
+
- `locale` also sets the language of the dates, times and numbers the
|
|
677
|
+
components format.
|
|
678
|
+
- Missing keys fall back to an outer provider, then English, never to a raw key.
|
|
679
|
+
Declare a full translation as `OpenGeniMessageCatalog` and TypeScript reports
|
|
680
|
+
every key you have not translated yet, including keys added in later releases.
|
|
681
|
+
- `OpenGeniMessagesProvider` scopes overrides to part of a tree (for example a
|
|
682
|
+
different label in one panel); `useOpenGeniText()` gives your own components
|
|
683
|
+
the same translator.
|
|
684
|
+
- `@opengeni/react/messages` exports the catalog and runtime without any DOM
|
|
685
|
+
code, for React Native and server rendering.
|
|
686
|
+
|
|
687
|
+
Component props that accept labels (for example `ChatComposer`'s `messages`)
|
|
688
|
+
still win over the catalog; their defaults, such as `defaultChatComposerMessages(t)`,
|
|
689
|
+
are functions of the translator. Internal diagnostics (developer invariants and
|
|
690
|
+
protocol errors never meant for end users) stay in English.
|
|
691
|
+
|
|
318
692
|
## Realtime composer controls (`@opengeni/react/realtime`)
|
|
319
693
|
|
|
320
|
-
The realtime subpath is the exact
|
|
694
|
+
The realtime subpath is the exact Opengeni composer experience: model catalog
|
|
321
695
|
and selection, split-button motion, start/stop/retry states, microphone and
|
|
322
696
|
audio mute controls, diagnostics, recovery, and the same copy, ARIA, classes,
|
|
323
697
|
and styling used by the web console. It is deliberately separate from the root
|
|
@@ -383,7 +757,7 @@ The reference consumer is `demo/realtime.html`. Run `bun run demo` from
|
|
|
383
757
|
`packages/react`, then open `http://localhost:3100/realtime.html?mode=mock` for
|
|
384
758
|
deterministic selection/start/mute/stop/reconnect/error testing. Use
|
|
385
759
|
`?mode=live&workspaceId=…&sessionId=…` against the web server's same-origin
|
|
386
|
-
`/demo-api` proxy for a real local
|
|
760
|
+
`/demo-api` proxy for a real local Opengeni environment. Configure
|
|
387
761
|
`OPENGENI_DEMO_API_URL` and, only on the server, optional demo API/access
|
|
388
762
|
credentials; the browser receives neither credential. Prefer the deployment's
|
|
389
763
|
normal browser authentication. If the proxy needs a server credential, create a
|
|
@@ -408,11 +782,46 @@ through published package APIs only.
|
|
|
408
782
|
## Browser and computer surfaces (`@opengeni/react/interaction`)
|
|
409
783
|
|
|
410
784
|
The interaction subpath renders the same browser-native and semantic computer
|
|
411
|
-
surfaces used by the
|
|
785
|
+
surfaces used by the Opengeni web app. It consumes only the public SDK client:
|
|
412
786
|
workspace discovery, peer switching, tabs/windows, live frames, human input,
|
|
413
787
|
identity versions, interventions, diagnostics, reconnect, and lifecycle state do
|
|
414
788
|
not require app-private controller glue.
|
|
415
789
|
|
|
790
|
+
Managed browser actions keep the foreground tab in place. Target-local Chromium
|
|
791
|
+
focus emulation keeps animation callbacks running without an open preview;
|
|
792
|
+
explicit activation brings a tab forward. The override ends when its controller
|
|
793
|
+
detaches. Native **App controls** also work in the background where supported.
|
|
794
|
+
Physical desktop mouse/keyboard input shares the foreground seat; **Bring to front**
|
|
795
|
+
makes that change explicit.
|
|
796
|
+
Computer frames fit the dock while preserving their proportions. Resizing or
|
|
797
|
+
reopening the dock refits the visible image without changing capture resolution
|
|
798
|
+
or the coordinates sent to the computer.
|
|
799
|
+
Desktop opens a whole screen by default. Multiple screens use a compact screen
|
|
800
|
+
selector; app controls and window views are available from **Advanced**. Explicit
|
|
801
|
+
view choices survive refreshes while the target remains available.
|
|
802
|
+
|
|
803
|
+
Desktop IME candidates and their selection keys stay local; only committed text is sent.
|
|
804
|
+
|
|
805
|
+
A managed browser's attachment authority error keeps a same-browser **Reconnect**
|
|
806
|
+
action available. It obtains a fresh server-authorized attachment without creating
|
|
807
|
+
a replacement browser or replaying input. The fresh Connected Chrome instruction
|
|
808
|
+
is reserved for the selected extension-attached browser's generation loss; a
|
|
809
|
+
different lost browser in the workspace cannot change that recovery path.
|
|
810
|
+
|
|
811
|
+
The browser viewer negotiates bounded typing batches from the active controller's
|
|
812
|
+
short-lived attachment. Supporting helpers recheck the original controller,
|
|
813
|
+
target, document and frame fence before every action; old helpers retain one
|
|
814
|
+
request per action. Only queued text actions share a request (at most 16), with
|
|
815
|
+
each text/input event preserved. Keys, pointer input and clipboard operations
|
|
816
|
+
remain ordering barriers. A failed or uncertain action discards the queued suffix
|
|
817
|
+
without replay.
|
|
818
|
+
IME candidate-selection keys stay local to the viewer; only committed text is
|
|
819
|
+
sent to the remote page. A later ordinary Enter remains a remote key action.
|
|
820
|
+
Live image props use opaque byte buffers so React development timing diagnostics
|
|
821
|
+
cannot expand and retain every screenshot byte. Normal timing diagnostics remain enabled.
|
|
822
|
+
Queued inputs retain only immutable frame fences, not screenshot bytes or prior
|
|
823
|
+
render callbacks. Replacing the selected viewer invalidates its queued suffix.
|
|
824
|
+
|
|
416
825
|
```tsx
|
|
417
826
|
import { OpenGeniProvider } from "@opengeni/react";
|
|
418
827
|
import { BrowserViewer, ComputerViewer } from "@opengeni/react/interaction";
|
|
@@ -438,6 +847,33 @@ returned ComputerSession must be the exact placement/window the browser uses.
|
|
|
438
847
|
`onOpenComputer` then changes the host layout to that resource—it must not open a
|
|
439
848
|
lookalike desktop. Closing either viewer never ends its durable resource.
|
|
440
849
|
|
|
850
|
+
`ComputerViewer` disables input when its control service is unavailable, even if
|
|
851
|
+
frames keep arriving. Reconnect refreshes the selected desktop's controls and
|
|
852
|
+
frames. App accessibility inspection failures leave independent live input
|
|
853
|
+
available; `useComputerSession().controlError` reports service loss separately
|
|
854
|
+
from the hook's general `error`.
|
|
855
|
+
|
|
856
|
+
If the chat's latest browser was lost or failed, the viewer names it and explains
|
|
857
|
+
why it is unavailable instead of showing the ordinary empty state. It offers the
|
|
858
|
+
existing new-browser controls without reopening the lost controller or selecting
|
|
859
|
+
another chat's browser. Explicitly closed browsers still use the empty state;
|
|
860
|
+
older failures do not replace a newer closed browser. This loss notice also takes
|
|
861
|
+
precedence over `renderEmpty`. Preview the deadline-loss case with
|
|
862
|
+
`browser.html?mode=mock&lost=1` (add `width=360&theme=light` for a narrow light dock).
|
|
863
|
+
|
|
864
|
+
Native dropdown popups may not appear in page frames. With a controller that
|
|
865
|
+
advertises focused input observations, clicking one opens its choices beside
|
|
866
|
+
the click. Ordinary clicks use a bounded focus probe instead of a full page
|
|
867
|
+
snapshot; only a focused native dropdown (or a child-frame focus hint) requests
|
|
868
|
+
semantic options. Current controllers show no permanent **Choose option** button
|
|
869
|
+
over the page; older controllers retain that explicit fallback. **Alt+Down** opens
|
|
870
|
+
the focused dropdown and reads its options on either controller generation.
|
|
871
|
+
Selection uses the normal browser action API. The viewer retains that
|
|
872
|
+
observation's target/document/frame fence. Private, oversized, or ambiguous
|
|
873
|
+
choices remain unavailable; the page's keyboard controls still work. This
|
|
874
|
+
fallback requires a controller with focused native-select metadata support and
|
|
875
|
+
does not rewrite the page or capture the desktop.
|
|
876
|
+
|
|
441
877
|
The provider opens one shared workspace interaction-revision stream and every
|
|
442
878
|
catalog refreshes only when its revision advances; hidden or disconnected pages
|
|
443
879
|
fall back to bounded polling and reconcile from the retained cursor. Hosts that
|
|
@@ -450,6 +886,18 @@ same-origin `/demo-api` proxy and the exact published SDK/React entrypoints.
|
|
|
450
886
|
|
|
451
887
|
## Composer customization (`@opengeni/react/composer`)
|
|
452
888
|
|
|
889
|
+
`SessionChrome` accepts `onComposerFocus` for queue editing. Connect it to
|
|
890
|
+
`controller.focusInput` from `useChatComposerController`, or focus a custom
|
|
891
|
+
input through its ref. Chrome calls it after a successful checkout and
|
|
892
|
+
`composer.applyDraft`, including confirmed draft replacement; failed checkout
|
|
893
|
+
and pending/cancelled replacement do not request focus. The host retains
|
|
894
|
+
ownership of the input and no DOM selector or global focus event is needed.
|
|
895
|
+
|
|
896
|
+
When sharing `useSessionEvents().events` with `useGoal`, the hook still fetches
|
|
897
|
+
the authoritative goal on mount and target changes, even when the supplied log
|
|
898
|
+
already contains goal events. The shared log drives subsequent invalidations
|
|
899
|
+
without opening another event stream. A 404 remains a normal goal-less state.
|
|
900
|
+
|
|
453
901
|
Use `ChatComposer` for the standard layout and its `controlsStart`, `header`,
|
|
454
902
|
and `messages` props for small additions. For a different layout, import the
|
|
455
903
|
headless controller and compound primitives as a namespace. The controller is
|
|
@@ -528,7 +976,8 @@ state remains application-owned; durable draft and session state remain in
|
|
|
528
976
|
|
|
529
977
|
- `useSessionEvents(sessionId)` — loads a compact, bounded tail window by
|
|
530
978
|
default, then live-streams on the SDK's exactly-once/ordered event delivery.
|
|
531
|
-
Initial replay
|
|
979
|
+
Initial replay reads one 1000-row raw page, with at most one extra page to
|
|
980
|
+
recover a dense turn's boundary; `loadOlder` is capped at two such pages;
|
|
532
981
|
timeline group density is only an early stop. It returns the raw windowed
|
|
533
982
|
`events`, projected `timeline`, latest `sessionStatus`, connection state, and
|
|
534
983
|
older-history controls (`hasOlder`, `loadingOlder`, `loadOlder`). Pass
|
|
@@ -541,13 +990,32 @@ state remains application-owned; durable draft and session state remain in
|
|
|
541
990
|
callback return type. Custom loaders can use `createOlderHistoryLoadReceipt`
|
|
542
991
|
and call `markCommitted` immediately before publishing their accepted older
|
|
543
992
|
window.
|
|
993
|
+
- Browser retention limits are exported as `SESSION_EVENT_BROWSER_MAX_BYTES`
|
|
994
|
+
and `SESSION_EVENT_BROWSER_MAX_COUNT`; they do not change fetch page sizes.
|
|
995
|
+
The live working set is at most 16 MiB or 20,000 events. One event larger than
|
|
996
|
+
the byte target stays complete in a window of its own.
|
|
997
|
+
Live appends reuse the retained window's byte total, measuring only incoming
|
|
998
|
+
and evicted events. History still pages when either retention limit is reached.
|
|
999
|
+
- Newer history uses `hasNewer`, `loadingNewer`, and `loadNewer`. A failed
|
|
1000
|
+
`loadNewer()` preserves the retained events and cursors, exposes the original
|
|
1001
|
+
failure through `error`, and still rejects for the caller to handle. Pass
|
|
1002
|
+
`onLoadNewer={loadNewer}` (or return its promise from your wrapper) to
|
|
1003
|
+
`MessageTimeline`: it catches the request failure, shows the error and an
|
|
1004
|
+
explicit **Retry later activity** action, and does not automatically retry
|
|
1005
|
+
the failed boundary. A successful retry, jump to the start/latest window,
|
|
1006
|
+
or session change clears that failure. Loading older rows alone does not
|
|
1007
|
+
resolve a failed newer read. Late failures from a previous session are ignored.
|
|
1008
|
+
A host that discards the promise must handle its own rejected request.
|
|
544
1009
|
- `useComposer(sessionId, { sendExtras, effectiveControl })` — revisioned private
|
|
545
1010
|
draft, Send, Steer, and workstream Pause/Resume state. `send()` appends in
|
|
546
1011
|
visible queue order (including while paused); `steer()` puts the new direction
|
|
547
1012
|
directly in chat and supersedes the current direction. Resume is always an
|
|
548
1013
|
explicit control action and never an implicit side effect of Send. Drafts
|
|
549
1014
|
autosave with optimistic concurrency, survive failed sends, and reuse one
|
|
550
|
-
`clientEventId` across retries so the server dedupes.
|
|
1015
|
+
`clientEventId` across retries so the server dedupes. Draft reads retry transient
|
|
1016
|
+
failures, including request timeouts, with backoff. Successful refreshes clear
|
|
1017
|
+
draft-read errors without dismissing Send, Steer, or control errors; a draft
|
|
1018
|
+
sync timeout does not mean the agent turn has stopped. `composer.policy` and
|
|
551
1019
|
`setModel` / `setReasoningEffort` / `setLatencyMode` expose the exact policy
|
|
552
1020
|
owned by that actor/session draft; policy is `null` until hydration completes.
|
|
553
1021
|
`sendExtras` (object or function evaluated at send time) is only for
|
|
@@ -579,16 +1047,24 @@ state remains application-owned; durable draft and session state remain in
|
|
|
579
1047
|
plus the `defaultModel` to preselect (from the client config) for a picker.
|
|
580
1048
|
- `useCodexAccounts()` — connected Codex (ChatGPT) accounts, the active/next-run
|
|
581
1049
|
pointer, and per-session account pinning for multi-account subscriptions.
|
|
1050
|
+
`refreshUsage({ maxAgeMs })` reuses live usage readings only when every
|
|
1051
|
+
listed account was read within `maxAgeMs`; concurrent refreshes share one
|
|
1052
|
+
provider read. `liveUsageUpdatedAt` is the time of the oldest account
|
|
1053
|
+
reading. See `retainReadsAcrossMounts` above for keeping the list and
|
|
1054
|
+
readings across navigation.
|
|
582
1055
|
- `useSlashCommands(...)` — the slash-command palette state (registry + parsing +
|
|
583
1056
|
handlers) behind `CommandPalette`.
|
|
584
1057
|
- `useWorkspaceSessions()` / `useScheduledTasks()` — workspace lists for
|
|
585
|
-
fleet/manager views (optional polling).
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
1058
|
+
fleet/manager views (optional polling). `useWorkspaceSessions({ projection:
|
|
1059
|
+
"summary" })` returns compact list entries; omit the option for full sessions.
|
|
1060
|
+
Scripted clients can omit the summary method and the hook projects full pages
|
|
1061
|
+
locally while retaining cancellation and causal read revisions.
|
|
1062
|
+
- `useVaults()` / `useVault()` / `useVaultItems()` / `useVaultItem()` /
|
|
1063
|
+
`useVaultFieldVersions()` / `useSessionSecrets()` — vaults, items, field
|
|
1064
|
+
history and a session's vault policy, metadata only. `useVaultsApi()` returns
|
|
1065
|
+
the SDK's `client.vaults(workspaceId)` routes for writes and the one audited
|
|
1066
|
+
`revealField` call; keep revealed values in component state, never in a
|
|
1067
|
+
cache. Variable Sets and `useVariableSets()` were removed in 2.0.0.
|
|
592
1068
|
- `useWorkspaces()` — the caller's workspaces with create/update (client-only;
|
|
593
1069
|
not bound to the provider's workspace).
|
|
594
1070
|
- `useBillingUsage({ accountId?, workspaceId? })` — credit balance + recent
|
|
@@ -636,18 +1112,33 @@ intentional changes should regenerate those snapshots and review the diff.
|
|
|
636
1112
|
- `MessageTimeline` — the session timeline with stick-to-bottom scrolling, a
|
|
637
1113
|
"jump to latest" affordance, streaming caret, collapsible activity clusters,
|
|
638
1114
|
and worker cards (wire `onOpenSession` to drill into a worker). Pass
|
|
639
|
-
`renderMessageText` to plug a markdown renderer.
|
|
1115
|
+
`renderMessageText` to plug a markdown renderer. The default renderer shows a
|
|
1116
|
+
single newline in a message as a line break, like other chat apps; a custom
|
|
1117
|
+
renderer gets the same result with `<Markdown softLineBreaks>{text}</Markdown>`
|
|
1118
|
+
(off by default for non-chat Markdown). Pass
|
|
640
1119
|
`loadRetainedArtifact` to render permanent generated-image receipts; a loader
|
|
641
1120
|
may return verified bytes or a short-lived signed URL. The stock web app uses
|
|
642
1121
|
the URL path to avoid copying multi-megabyte images into JavaScript memory.
|
|
1122
|
+
`createWorkspaceRetainedArtifactLoader`, `createSessionRetainedScreenshotLoader`,
|
|
1123
|
+
and `createWorkspaceRetainedVideoLoader` bind the SDK reads to a workspace
|
|
1124
|
+
(and session); `SessionConversation` uses them by default.
|
|
643
1125
|
- `UserMessageBody` — the shared lossless rendered-height disclosure for
|
|
644
1126
|
already-sent user text. Use it inside a custom `renderMessageText` user branch
|
|
645
1127
|
so attachments and voice identity remain outside the clipped Markdown region.
|
|
1128
|
+
Pass `disclosureLabels={{ showMore: "Afficher davantage", showLess: "Réduire" }}`
|
|
1129
|
+
to localize a direct instance. For the default timeline, pass the same object
|
|
1130
|
+
as `MessageTimeline.userMessageDisclosureLabels` or
|
|
1131
|
+
`SessionConversation.userMessageDisclosureLabels`; custom `UserMessageBody`
|
|
1132
|
+
renderers inside that timeline inherit these labels too. Each direct label
|
|
1133
|
+
overrides its timeline label independently, then falls back to `Show more`
|
|
1134
|
+
or `Show less`. Changing labels does not reset a message's expanded state.
|
|
1135
|
+
`UserMessageDisclosureLabels` is exported from both `@opengeni/react` and
|
|
1136
|
+
`@opengeni/react/session-ui`.
|
|
646
1137
|
- `SessionStatus` / `StatusDot` — status badges; live states breathe.
|
|
647
1138
|
- `FleetTile` — one session in a fleet grid: title, status, model, recency.
|
|
648
1139
|
- `ModelPicker` — a compact model dropdown for a composer slot, grouping the
|
|
649
1140
|
host-exposed models by provider.
|
|
650
|
-
- `ModelPolicyPicker` — the full model policy control used by the
|
|
1141
|
+
- `ModelPolicyPicker` — the full model policy control used by the Opengeni web
|
|
651
1142
|
app: provider/billing rails, model availability, reasoning effort, and
|
|
652
1143
|
runnable latency modes such as Fast. It accepts either `ClientModel[]` or
|
|
653
1144
|
catalog-backed `PickerModelRow[]`, and supports host-supplied labels.
|
|
@@ -657,6 +1148,8 @@ intentional changes should regenerate those snapshots and review the diff.
|
|
|
657
1148
|
paragraphs, user bubbles, and nested or standalone Markdown keep their normal
|
|
658
1149
|
width; oversized tables retain table-only horizontal scrolling. No host prop
|
|
659
1150
|
or viewport-wide layout override is required.
|
|
1151
|
+
Remeasurement during host rerenders or tail streaming does not temporarily
|
|
1152
|
+
resize the live table or displace an unpinned history reader.
|
|
660
1153
|
With `onSandboxFile`, a valid `sandbox:<path>[:line]` application link becomes
|
|
661
1154
|
an in-session Open action. The callback receives the decoded path unchanged;
|
|
662
1155
|
the optional line is positive and 1-based. Invalid sandbox references render
|
|
@@ -707,6 +1200,97 @@ remaining built-ins in supplied order. Duplicate IDs keep their first
|
|
|
707
1200
|
definition; remove a built-in before adding a custom facet with the same ID.
|
|
708
1201
|
`replace` is type-exclusive with `add` and `remove`.
|
|
709
1202
|
|
|
1203
|
+
`turnSummary={{ rolling: true }}` selects the readable per-turn presentation:
|
|
1204
|
+
startup shows the preparation orb outside any disclosure, then hands over to
|
|
1205
|
+
Working without resetting the startup-inclusive elapsed clock. While work is
|
|
1206
|
+
live, assistant progress messages stay fully formatted and visible,
|
|
1207
|
+
followed by one Working or Waiting disclosure with the rolling latest step.
|
|
1208
|
+
When the turn finishes, earlier assistant messages and tools share the Worked
|
|
1209
|
+
disclosure; the final response remains visible. Expanding reveals that turn's
|
|
1210
|
+
earlier prose and activity in chronological order, not a fold of multiple turns.
|
|
1211
|
+
An already expanded or actively read view is preserved through settlement.
|
|
1212
|
+
Routine machine inputs get one compact reason per resumed turn. Normal tip-follow
|
|
1213
|
+
continues through long answers, and manual scrolling never auto-repins on new work.
|
|
1214
|
+
Expanded outer work headers stay reachable at the top of the timeline until
|
|
1215
|
+
their own details end; nested headers never stick. The contextual navigation
|
|
1216
|
+
pill stays below the sticky-header strip and avoids interactive controls. If
|
|
1217
|
+
no horizontal slot fits beside a toolbar, only the pill moves below it; the
|
|
1218
|
+
timeline's size and scroll position do not change.
|
|
1219
|
+
|
|
1220
|
+
The single **Back to your message** button returns to the loaded user prompt
|
|
1221
|
+
associated with the response or work being read: the latest prompt preceding
|
|
1222
|
+
the viewport midpoint. It appears only when that prompt's start is more than
|
|
1223
|
+
24 px above the viewport and its entire body and attachments are out of view.
|
|
1224
|
+
Clicking synchronously scrolls and focuses that exact
|
|
1225
|
+
mounted prompt near the top and leaves tip-follow. Later messages and queued
|
|
1226
|
+
prompts do not change the destination while the reader remains in older work.
|
|
1227
|
+
An older bounded window uses its own loaded context; a window with no associated
|
|
1228
|
+
prompt shows no action. Navigation never replaces the history window or looks up
|
|
1229
|
+
the globally newest message. There are no previous/next arrows.
|
|
1230
|
+
|
|
1231
|
+
`SessionConversation` includes this behavior automatically. Custom timelines
|
|
1232
|
+
need no prompt-navigation callback:
|
|
1233
|
+
|
|
1234
|
+
```tsx
|
|
1235
|
+
const events = useSessionEvents(sessionId);
|
|
1236
|
+
<MessageTimeline
|
|
1237
|
+
events={events.events}
|
|
1238
|
+
items={events.timeline}
|
|
1239
|
+
turnSummary={{ rolling: true }}
|
|
1240
|
+
hasNewer={events.hasNewer}
|
|
1241
|
+
onJumpToLatest={events.jumpToLatest}
|
|
1242
|
+
/>;
|
|
1243
|
+
```
|
|
1244
|
+
|
|
1245
|
+
`onJumpToLatest` retains its separate live-bottom behavior. The deprecated
|
|
1246
|
+
`MessageTimeline.onJumpToLatestQuestion` prop remains source-compatible but is
|
|
1247
|
+
not invoked by contextual navigation.
|
|
1248
|
+
|
|
1249
|
+
### Optional global newest-message lookup
|
|
1250
|
+
|
|
1251
|
+
The public `useSessionEvents().jumpToLatestQuestion()` hook remains available for
|
|
1252
|
+
hosts that deliberately build a **separate** global lookup action. It is not wired
|
|
1253
|
+
to `MessageTimeline` or the first-party conversation's contextual button.
|
|
1254
|
+
The hook checks the authoritative queue and normally uses one filtered forensic
|
|
1255
|
+
lookup plus, if needed, two bounded context reads. It pages past legacy worker
|
|
1256
|
+
completions and withdrawn/cancelled-before-start prompts, never substituting an
|
|
1257
|
+
arbitrary question from a loaded old page. Queued/legacy admission uses filtered
|
|
1258
|
+
lifecycle evidence to locate its real turn start. A distant prompt is retained as
|
|
1259
|
+
one projection-only witness in `events.timeline`; `events.events` remains the
|
|
1260
|
+
bounded contiguous raw window, so pass `items` as above.
|
|
1261
|
+
The optional resolver loads on its first invocation, not when opening a session.
|
|
1262
|
+
Identity and navigation guards also cover that module-loading delay.
|
|
1263
|
+
|
|
1264
|
+
Custom hosts can provide their own queue destination when invoking this hook:
|
|
1265
|
+
|
|
1266
|
+
```tsx
|
|
1267
|
+
const navigateToNewest = () => events.jumpToLatestQuestion({
|
|
1268
|
+
onQueuedQuestion: async (turn, navigation) => {
|
|
1269
|
+
await queue.refresh();
|
|
1270
|
+
if (!navigation.isCurrent()) return;
|
|
1271
|
+
// Check the host's latest queue/error state before applying its focus request.
|
|
1272
|
+
setQueueFocusTarget((previous) => ({
|
|
1273
|
+
turnId: turn.id,
|
|
1274
|
+
requestId: (previous?.requestId ?? 0) + 1,
|
|
1275
|
+
}));
|
|
1276
|
+
},
|
|
1277
|
+
});
|
|
1278
|
+
// Pass queueFocusTarget to SessionChrome; each new request opens/focuses once.
|
|
1279
|
+
```
|
|
1280
|
+
|
|
1281
|
+
A queue destination returns `null`, not an invisible transcript sequence. Without
|
|
1282
|
+
`onQueuedQuestion`, a pending prompt rejects with `LatestQuestionQueuedError`;
|
|
1283
|
+
the custom host can show guidance. Transitional queue state can be retried.
|
|
1284
|
+
Check `navigation.isCurrent()` after awaits and immediately before queue UI effects:
|
|
1285
|
+
an explicit history jump can supersede a queued lookup without changing the session.
|
|
1286
|
+
The shared projection predicate supplies execution evidence for older queued turns
|
|
1287
|
+
without `turn.started`, including tools, agent/sandbox activity, startup, recovery,
|
|
1288
|
+
and capacity events. Compact cursor coverage skips coalesced delta runs.
|
|
1289
|
+
`groupTimeline(items)` retains classic
|
|
1290
|
+
grouping; `{ readableTurns: true }` selects the new projection. The deprecated
|
|
1291
|
+
`foldExchanges` option aliases readable turns, not the removed cross-turn fold. See
|
|
1292
|
+
[`docs/design/genie-loading.md`](../../docs/design/genie-loading.md).
|
|
1293
|
+
|
|
710
1294
|
## Sandbox surfacing
|
|
711
1295
|
|
|
712
1296
|
An opt-in workbench that surfaces a session's live sandbox — files, terminal,
|
|
@@ -789,11 +1373,62 @@ function Fleet({ sessionId }: { sessionId: string }) {
|
|
|
789
1373
|
See the [Connected Machines guide](../../docs/connected-machines.md) for the
|
|
790
1374
|
end-to-end embedder story (create-on-machine, discover, swap, enroll, revoke).
|
|
791
1375
|
|
|
1376
|
+
## Usage allowances (`@opengeni/react/usage`)
|
|
1377
|
+
|
|
1378
|
+
Show people where they stand against a workspace or member usage allowance.
|
|
1379
|
+
A separate subpath, so hosts that don't meter usage never load it.
|
|
1380
|
+
|
|
1381
|
+
- `useUsage({ workspaceId? })` — the signed-in person's own `/usage/me`
|
|
1382
|
+
(through `getMyUsage` or any client with `requestJson`) plus a summary of
|
|
1383
|
+
which limit binds first. `refreshKey` re-reads when work settles.
|
|
1384
|
+
- `UsageMeter` — "38% left · Resets Nov 1". Shares only; pass `formatAmount`
|
|
1385
|
+
for money, credits or plan multiples. `density="compact"` for menus,
|
|
1386
|
+
`"hero"` to lead a page.
|
|
1387
|
+
- `UsageLimitNotice` — the calm composer line: nothing while comfortable, a
|
|
1388
|
+
dismissible heads-up near the limit, then who can raise it and when it
|
|
1389
|
+
resets. `labels` rewords it; `action` adds your own "Upgrade" button.
|
|
1390
|
+
- `UsageMemberList` — the admin roster with a share-of-budget slider,
|
|
1391
|
+
optional fixed amounts, and a visible note when shares add up to more than
|
|
1392
|
+
the pool. Save rules through your backend in `onChangeRule`.
|
|
1393
|
+
|
|
1394
|
+
```tsx
|
|
1395
|
+
import { UsageLimitNotice, UsageMeter } from "@opengeni/react/usage";
|
|
1396
|
+
|
|
1397
|
+
<UsageMeter workspaceId={workspaceId} />
|
|
1398
|
+
<SessionConversation
|
|
1399
|
+
sessionId={sessionId}
|
|
1400
|
+
composerProps={{ header: <UsageLimitNotice workspaceId={workspaceId} /> }}
|
|
1401
|
+
allowanceExhaustedLabels={{ memberRemedy: "Ask your team admin for more." }}
|
|
1402
|
+
/>
|
|
1403
|
+
```
|
|
1404
|
+
|
|
1405
|
+
The conversation's "usage limit reached" row is customized on
|
|
1406
|
+
`MessageTimeline`/`SessionConversation` with `allowanceExhaustedLabels` or
|
|
1407
|
+
replaced with `renderAllowanceExhausted`. See
|
|
1408
|
+
[usage allowances](../../docs/usage-allowances.md#react-components-and-the-console).
|
|
1409
|
+
|
|
1410
|
+
## Terminal startup input
|
|
1411
|
+
|
|
1412
|
+
`SandboxTerminal` captures bounded early typing while attaching. Supported stock
|
|
1413
|
+
sandbox images negotiate explicit Bash Readline readiness; banners and first
|
|
1414
|
+
output do not release queued commands. Silent prompts work too. If a startup
|
|
1415
|
+
profile asks for input or disables line editing, **Use manual input** clears
|
|
1416
|
+
buffered typing before enabling unguaranteed input. Old images/running ttyd
|
|
1417
|
+
daemons retain labelled **legacy input** behavior; wait for their shell startup
|
|
1418
|
+
before typing. Relay PTYs retain their existing OPEN_ACK behavior.
|
|
1419
|
+
|
|
1420
|
+
Custom consumers of `useTerminalStream` can inspect `inputReadiness` and expose
|
|
1421
|
+
`useLegacyInput()` for `waiting` states. That action discards queued typing; it
|
|
1422
|
+
is not an acknowledgement of shell readiness. A new React package alone cannot
|
|
1423
|
+
upgrade an old sandbox image. See the [native readiness contract](../../agent/native/terminal-ready/README.md)
|
|
1424
|
+
for compatibility, startup limits and coordinated release requirements.
|
|
1425
|
+
|
|
792
1426
|
## Optional peer dependencies
|
|
793
1427
|
|
|
794
|
-
The chat/timeline surface
|
|
795
|
-
|
|
796
|
-
|
|
1428
|
+
The chat/timeline surface needs only the required React/React DOM peers. All
|
|
1429
|
+
existing root exports remain available without optional workbench peers, even
|
|
1430
|
+
when a bundler resolves every reachable dynamic import. Install and enable
|
|
1431
|
+
only the surfaces you mount, once in their client route or bootstrap:
|
|
797
1432
|
|
|
798
1433
|
- Terminal (`SandboxTerminal`): `@xterm/xterm`, `@xterm/addon-fit`,
|
|
799
1434
|
`@xterm/addon-web-links`.
|
|
@@ -803,6 +1438,37 @@ what the surfaces you mount need:
|
|
|
803
1438
|
language packs you need (`css`, `html`, `javascript`, `json`, `markdown`,
|
|
804
1439
|
`python`).
|
|
805
1440
|
|
|
1441
|
+
```ts
|
|
1442
|
+
import { enableSandboxTerminal } from "@opengeni/react/terminal";
|
|
1443
|
+
import { enableDesktopViewer } from "@opengeni/react/desktop";
|
|
1444
|
+
import { enableCodeEditor } from "@opengeni/react/editor";
|
|
1445
|
+
|
|
1446
|
+
enableSandboxTerminal();
|
|
1447
|
+
enableDesktopViewer();
|
|
1448
|
+
enableCodeEditor({
|
|
1449
|
+
javascript: async () =>
|
|
1450
|
+
(await import("@codemirror/lang-javascript")).javascript({ jsx: true, typescript: true }),
|
|
1451
|
+
});
|
|
1452
|
+
```
|
|
1453
|
+
|
|
1454
|
+
Omit imports and calls for surfaces you do not use. These entries also re-export
|
|
1455
|
+
their components; root component imports continue to work after setup. The
|
|
1456
|
+
libraries load on mount, not during setup or SSR. Import the setup from a lazy
|
|
1457
|
+
route to keep its peer chunks outside the initial conversation graph.
|
|
1458
|
+
|
|
1459
|
+
For optional terminal WebGL acceleration, install `@xterm/addon-webgl` and call
|
|
1460
|
+
`enableSandboxTerminal({ webgl: () => import("@xterm/addon-webgl") })`. Without
|
|
1461
|
+
it, or if it fails, the terminal uses its DOM renderer. Only supply editor
|
|
1462
|
+
grammar loaders for packages you installed; absent/failed grammars use plain
|
|
1463
|
+
CodeMirror. Without editor setup, the existing textarea fallback remains usable.
|
|
1464
|
+
Without terminal/VNC setup, those surfaces show a setup error; relay-frame
|
|
1465
|
+
desktops and a custom `rfbFactory` need no noVNC setup.
|
|
1466
|
+
|
|
1467
|
+
Custom hosts may supply `registerSandboxTerminal`, `registerCodeEditor`, or
|
|
1468
|
+
`registerDesktopViewer` loaders from the root instead. Mounted fallbacks retry
|
|
1469
|
+
when registration changes. Do not hide peer imports behind runtime bare strings
|
|
1470
|
+
or `@vite-ignore`: browsers cannot resolve those without an import map.
|
|
1471
|
+
|
|
806
1472
|
## Demo harness
|
|
807
1473
|
|
|
808
1474
|
`bun run demo` (from this package) serves a harness that drives the real hooks
|
|
@@ -822,11 +1488,83 @@ unsupported effort falls back to the new model's default, and unsupported speed
|
|
|
822
1488
|
returns to Standard. Thinking uses inline radio choices and is hidden when the
|
|
823
1489
|
model has no adjustable reasoning levels. Availability and Codex-only session restrictions still disable choices.
|
|
824
1490
|
|
|
1491
|
+
Use `allowModelOptions={false}` for policies that save only a model identity,
|
|
1492
|
+
such as a fallback order. This hides effort and speed controls without changing
|
|
1493
|
+
the catalog, payment-source labels, or model eligibility.
|
|
1494
|
+
|
|
825
1495
|
The trigger renders immediately; the searchable popover loads when opened. Hosts
|
|
826
1496
|
can translate its search, current-selection, empty-result, attachment-warning, and
|
|
827
1497
|
thinking labels through `messages`, and override payment descriptions through
|
|
828
1498
|
`messages.billingHints`.
|
|
829
1499
|
|
|
1500
|
+
The stock deployment-provided group is labeled **Models**, with a generic model
|
|
1501
|
+
icon. It can contain both credit-backed and free models; the **Free** badge
|
|
1502
|
+
depends on the model's explicit cost, not its group. Genuine external-provider
|
|
1503
|
+
and subscription identities retain their own labels and marks.
|
|
1504
|
+
|
|
1505
|
+
Hosts can rebrand the full picker without replacing its interaction logic:
|
|
1506
|
+
|
|
1507
|
+
```tsx
|
|
1508
|
+
<ModelPolicyPicker
|
|
1509
|
+
{...pickerProps}
|
|
1510
|
+
groupPresentation={{
|
|
1511
|
+
opengeni_credits: {
|
|
1512
|
+
label: "Acme Assist",
|
|
1513
|
+
icon: <AcmeMark aria-hidden="true" />,
|
|
1514
|
+
description: "Provided by your workspace",
|
|
1515
|
+
},
|
|
1516
|
+
codex_subscription: { description: null },
|
|
1517
|
+
}}
|
|
1518
|
+
/>
|
|
1519
|
+
```
|
|
1520
|
+
|
|
1521
|
+
`groupPresentation` is a partial map keyed by `PickerBillingClass`. Labels apply
|
|
1522
|
+
to group headings, search, and trigger-icon accessibility. Icons apply to both
|
|
1523
|
+
the menu and trigger; supply decorative, non-interactive content (SVG or image)
|
|
1524
|
+
that fits the existing 14px slot. Explicit `null` hides an icon or description;
|
|
1525
|
+
omitted fields retain defaults. Descriptions override `messages.billingHints`,
|
|
1526
|
+
can also be shown for the deployment-provided group, and are searchable. Existing
|
|
1527
|
+
`rows[].billingClassLabel` remains the fallback when no label override is supplied.
|
|
1528
|
+
This is presentation only: model IDs, billing, ordering, availability and callbacks
|
|
1529
|
+
are unchanged. The type `ModelPolicyPickerGroupPresentation` is exported from
|
|
1530
|
+
both `@opengeni/react` and `@opengeni/react/composer`. The native `ModelPicker`
|
|
1531
|
+
is a separate control; this API targets the full `ModelPolicyPicker` shown above.
|
|
1532
|
+
|
|
1533
|
+
The complete conversation uses this same neutral picker. Customize its appearance
|
|
1534
|
+
without replacing composer controls through `SessionConversation.modelPickerProps`,
|
|
1535
|
+
or through `OpenGeniChat.conversationProps`:
|
|
1536
|
+
|
|
1537
|
+
```tsx
|
|
1538
|
+
<OpenGeniChat
|
|
1539
|
+
client={client}
|
|
1540
|
+
workspaceId={workspaceId}
|
|
1541
|
+
conversationProps={{
|
|
1542
|
+
modelPickerProps: {
|
|
1543
|
+
groupPresentation: {
|
|
1544
|
+
opengeni_credits: { label: "Acme Assist", icon: <AcmeMark aria-hidden="true" /> },
|
|
1545
|
+
},
|
|
1546
|
+
messages: { label: "Choose a model" },
|
|
1547
|
+
},
|
|
1548
|
+
}}
|
|
1549
|
+
/>
|
|
1550
|
+
```
|
|
1551
|
+
|
|
1552
|
+
`modelPickerProps` accepts only `groupPresentation` and `messages`; it does not
|
|
1553
|
+
enable a hidden picker or change policy, model availability or callbacks. Keep
|
|
1554
|
+
model-picker visibility controlled by `modelPicker` and the client configuration.
|
|
1555
|
+
|
|
1556
|
+
For a rendered example, open the composer-responsive demo with `?branding=host`.
|
|
1557
|
+
|
|
1558
|
+
Models always show their clean name and maker logo: picker rows carry
|
|
1559
|
+
`modelDisplayName(model)` (`claude-opus-4-8` and
|
|
1560
|
+
`organization-claude-subscription/claude-opus-5-5` read `Claude Opus 4.8` and
|
|
1561
|
+
`Claude Opus 5.5`) and a `ModelMark`. Organization- and workspace-connected API
|
|
1562
|
+
keys share one "API keys" group, and identical copies of one model in a
|
|
1563
|
+
connection group show once. Render a model anywhere else with
|
|
1564
|
+
`<ModelName model={id} />`, or `modelDisplayName` / `modelVendor` from
|
|
1565
|
+
`@opengeni/react` or `@opengeni/sdk/model-display`. The trigger keeps a host's
|
|
1566
|
+
explicit group icon; otherwise API-key models show the maker's logo.
|
|
1567
|
+
|
|
830
1568
|
Subscription descriptions appear once per provider group. Free models carry a
|
|
831
1569
|
Free badge. Pass `hasImageAttachments` for the current draft to show an image
|
|
832
1570
|
compatibility warning only when the selected model cannot view those images.
|
|
@@ -836,3 +1574,26 @@ Copy and the timestamp for user messages and completed assistant messages.
|
|
|
836
1574
|
The host owns feedback, fork authorization, and mutations; streaming assistant
|
|
837
1575
|
messages omit this slot. Use the `group/copy` hover/focus state and preserve
|
|
838
1576
|
visible touch targets when styling actions.
|
|
1577
|
+
|
|
1578
|
+
### Portable action reviews
|
|
1579
|
+
|
|
1580
|
+
`ApprovalSurface` accepts `loadReview(approval)` and `onViewDetails(review, path)`;
|
|
1581
|
+
load the versioned facts with `client.getToolActionReview`. It shows one selected
|
|
1582
|
+
action, counts and bounded fields instead of raw argument JSON. Keep
|
|
1583
|
+
`selectedApprovalId` and `onSelectedApprovalChange` in the host if a full-page
|
|
1584
|
+
detail route unmounts the surface, so returning cannot silently select a different
|
|
1585
|
+
action. The native `onApprove` / `onReject` identity is unchanged and duplicate
|
|
1586
|
+
submission is fenced until authoritative events remove the request.
|
|
1587
|
+
|
|
1588
|
+
Render `ToolActionReviewDetails` on the host's normal page with
|
|
1589
|
+
`client.getToolReviewDetails`, passing the review's `actionDigest`, path and offset.
|
|
1590
|
+
Details are immutable, authenticated, paginated, and redact protected values.
|
|
1591
|
+
Restore focus to the original `data-review-path` button on return. No web-app
|
|
1592
|
+
imports, iframe, second confirmation, or nested scrolling pane is required.
|
|
1593
|
+
The standalone fallback retains bounded details for older SDK approvals.
|
|
1594
|
+
|
|
1595
|
+
Wrap `MessageTimeline` in `ToolReviewHistoryProvider` with its visible events,
|
|
1596
|
+
authenticated `load(approvalId)` callback and `onViewDetails` to keep recorded
|
|
1597
|
+
reviews readable inside the corresponding tool activity. Historical receipts
|
|
1598
|
+
never render decision buttons. The same semantic tokens support light/dark
|
|
1599
|
+
embeds; `demo/approval-review.html` is the synthetic state gallery.
|