@opengeni/react 4.0.2 → 4.0.5-canary.39120434730001
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-FVROZ7HR.js +14396 -0
- package/dist/chunk-FVROZ7HR.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-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 +1019 -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
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
revealLoadedAnnotationSource,
|
|
13
13
|
truncateAnnotationQuote,
|
|
14
14
|
} from "./timeline-annotation-shared";
|
|
15
|
+
import { useOpenGeniText } from "../messages/runtime";
|
|
15
16
|
|
|
16
17
|
export type TimelineAnnotationLike = DraftTimelineAnnotation | TimelineAnnotation;
|
|
17
18
|
|
|
@@ -43,14 +44,18 @@ export function AnnotationQuoteSourceButton({
|
|
|
43
44
|
onRevealSource?: ((source: TimelineAnnotationSource) => boolean) | undefined;
|
|
44
45
|
onUnavailable: (id: string | null) => void;
|
|
45
46
|
}) {
|
|
47
|
+
const t = useOpenGeniText();
|
|
46
48
|
const preview = quotePreview(annotation.quote);
|
|
47
|
-
const sourceLabel = annotationSourceLabel(annotation.source);
|
|
49
|
+
const sourceLabel = annotationSourceLabel(t, annotation.source);
|
|
48
50
|
const sourceRoot = useTimelineAnnotationSourceRoot();
|
|
49
51
|
return (
|
|
50
52
|
<button
|
|
51
53
|
type="button"
|
|
52
54
|
title={annotation.quote}
|
|
53
|
-
aria-label={
|
|
55
|
+
aria-label={t("timelineAnnotationChrome.viewSourcelabelSourceTruncateannotationquote", {
|
|
56
|
+
sourceLabel,
|
|
57
|
+
truncateAnnotationQuote: truncateAnnotationQuote(annotation.quote, 88),
|
|
58
|
+
})}
|
|
54
59
|
className="block w-full min-w-0 rounded-sm border-0 bg-transparent text-left text-og-sm leading-5 text-og-fg-muted outline-hidden transition-colors hover:text-og-fg focus-visible:ring-2 focus-visible:ring-og-accent pointer-coarse:min-h-[44px]"
|
|
55
60
|
onClick={() => {
|
|
56
61
|
const revealed =
|
|
@@ -70,7 +75,7 @@ export function AnnotationQuoteSourceButton({
|
|
|
70
75
|
>
|
|
71
76
|
{preview.text}
|
|
72
77
|
</span>
|
|
73
|
-
<span className="sr-only">
|
|
78
|
+
<span className="sr-only"> {t("timelineAnnotationChrome.viewSource")}</span>
|
|
74
79
|
</button>
|
|
75
80
|
);
|
|
76
81
|
}
|
|
@@ -101,6 +106,7 @@ export function AnnotationNotePreview({
|
|
|
101
106
|
ordinal: number;
|
|
102
107
|
className?: string | undefined;
|
|
103
108
|
}) {
|
|
109
|
+
const t = useOpenGeniText();
|
|
104
110
|
const [expanded, setExpanded] = useState(false);
|
|
105
111
|
if (!note) return null;
|
|
106
112
|
const collapsible = annotationNoteNeedsDisclosure(note);
|
|
@@ -125,11 +131,15 @@ export function AnnotationNotePreview({
|
|
|
125
131
|
aria-expanded={expanded}
|
|
126
132
|
aria-controls={contentId}
|
|
127
133
|
aria-label={
|
|
128
|
-
expanded
|
|
134
|
+
expanded
|
|
135
|
+
? t("timelineAnnotationChrome.showLessAnnotationOrdinal", { ordinal })
|
|
136
|
+
: t("timelineAnnotationChrome.showMoreAnnotationOrdinal", { ordinal })
|
|
129
137
|
}
|
|
130
138
|
onClick={() => setExpanded((current) => !current)}
|
|
131
139
|
>
|
|
132
|
-
{expanded
|
|
140
|
+
{expanded
|
|
141
|
+
? t("timelineAnnotationChrome.showLess")
|
|
142
|
+
: t("timelineAnnotationChrome.showMore")}
|
|
133
143
|
</button>
|
|
134
144
|
) : null}
|
|
135
145
|
</div>
|
|
@@ -147,15 +157,29 @@ export function AnnotationNoteField({
|
|
|
147
157
|
onUpdate: (id: string, note: string) => void;
|
|
148
158
|
onCommit?: (() => void) | undefined;
|
|
149
159
|
}) {
|
|
160
|
+
const t = useOpenGeniText();
|
|
150
161
|
const localRef = useRef<HTMLTextAreaElement | null>(null);
|
|
151
162
|
const setRef = (node: HTMLTextAreaElement | null) => {
|
|
152
163
|
localRef.current = node;
|
|
153
164
|
inputRef?.(node);
|
|
154
|
-
autosizeNote(node);
|
|
155
165
|
};
|
|
156
166
|
|
|
157
167
|
useLayoutEffect(() => {
|
|
158
|
-
|
|
168
|
+
const textarea = localRef.current;
|
|
169
|
+
if (!textarea) return;
|
|
170
|
+
// Ref callbacks can reattach on every scroll-driven parent render. Reflowing
|
|
171
|
+
// unchanged notes there interrupts native scrolling, particularly in WebKit.
|
|
172
|
+
autosizeNote(textarea);
|
|
173
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
174
|
+
let width = textarea.getBoundingClientRect().width;
|
|
175
|
+
const observer = new ResizeObserver(() => {
|
|
176
|
+
const nextWidth = textarea.getBoundingClientRect().width;
|
|
177
|
+
if (nextWidth === width) return;
|
|
178
|
+
width = nextWidth;
|
|
179
|
+
autosizeNote(textarea);
|
|
180
|
+
});
|
|
181
|
+
observer.observe(textarea);
|
|
182
|
+
return () => observer.disconnect();
|
|
159
183
|
}, [annotation.note]);
|
|
160
184
|
|
|
161
185
|
return (
|
|
@@ -164,8 +188,8 @@ export function AnnotationNoteField({
|
|
|
164
188
|
value={annotation.note}
|
|
165
189
|
rows={1}
|
|
166
190
|
maxLength={2048}
|
|
167
|
-
placeholder="
|
|
168
|
-
aria-label="
|
|
191
|
+
placeholder={t("timelineAnnotationChrome.addANote")}
|
|
192
|
+
aria-label={t("timelineAnnotationChrome.note")}
|
|
169
193
|
className="mt-0.5 max-h-40 min-h-8 w-full resize-none overflow-y-auto break-words border-0 bg-transparent px-0 py-1 text-og-sm leading-5 text-og-fg outline-hidden placeholder:text-og-fg-subtle focus-visible:ring-0"
|
|
170
194
|
onInput={(event) => {
|
|
171
195
|
autosizeNote(event.currentTarget);
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
matchingQuoteInSource,
|
|
19
19
|
occurrenceOffsets,
|
|
20
20
|
} from "./timeline-annotation-shared";
|
|
21
|
+
import { useOpenGeniText } from "../messages/runtime";
|
|
21
22
|
|
|
22
23
|
function lastVisibleRect(range: Range): DOMRect | null {
|
|
23
24
|
try {
|
|
@@ -127,6 +128,7 @@ export function TimelineAnnotationMarkers({
|
|
|
127
128
|
onSelect?: ((id: string) => void) | undefined;
|
|
128
129
|
rootRef: RefObject<HTMLElement | null>;
|
|
129
130
|
}) {
|
|
131
|
+
const t = useOpenGeniText();
|
|
130
132
|
const [markers, setMarkers] = useState<AnnotationBadgeAnchor[]>([]);
|
|
131
133
|
|
|
132
134
|
useLayoutEffect(() => {
|
|
@@ -163,10 +165,10 @@ export function TimelineAnnotationMarkers({
|
|
|
163
165
|
data-og-annotation-badge-ordinal={marker.ordinal}
|
|
164
166
|
style={{ left: marker.left, top: marker.top, zIndex: marker.ordinal }}
|
|
165
167
|
className={cn(
|
|
166
|
-
"pointer-events-auto absolute flex h-4 min-w-4 -translate-x-1/2 -translate-y-[110%] items-center justify-center rounded-full bg-og-accent px-0.5 text-[10px] font-semibold tabular-nums text-
|
|
168
|
+
"pointer-events-auto absolute flex h-4 min-w-4 -translate-x-1/2 -translate-y-[110%] items-center justify-center rounded-full bg-og-accent px-0.5 text-[10px] font-semibold tabular-nums text-og-accent-fg shadow-sm outline-hidden select-none after:absolute after:-inset-2 after:content-[''] focus-visible:ring-2 focus-visible:ring-og-accent pointer-coarse:after:-inset-2.5",
|
|
167
169
|
marker.incomplete && "ring-1 ring-og-accent-fg/35",
|
|
168
170
|
)}
|
|
169
|
-
aria-label={
|
|
171
|
+
aria-label={t("timelineAnnotationMarkers.annotationOrdinal", { ordinal: marker.ordinal })}
|
|
170
172
|
onMouseDown={(event) => event.preventDefault()}
|
|
171
173
|
onClick={(event) => {
|
|
172
174
|
event.preventDefault();
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
truncateAnnotationQuote,
|
|
13
13
|
visibleClientRect,
|
|
14
14
|
} from "./timeline-annotation-shared";
|
|
15
|
+
import { useOpenGeniText } from "../messages/runtime";
|
|
15
16
|
|
|
16
17
|
type SelectionCandidate = {
|
|
17
18
|
annotation: DraftTimelineAnnotation;
|
|
@@ -161,8 +162,10 @@ export function TimelineAnnotationSelection({
|
|
|
161
162
|
sources: ReadonlyMap<string, TimelineAnnotationSourceDescriptor>;
|
|
162
163
|
onAnnotate?: ((annotation: DraftTimelineAnnotation) => void) | undefined;
|
|
163
164
|
}) {
|
|
165
|
+
const t = useOpenGeniText();
|
|
164
166
|
const [candidate, setCandidate] = useState<SelectionCandidate | null>(null);
|
|
165
167
|
const buttonRef = useRef<HTMLButtonElement | null>(null);
|
|
168
|
+
const initialSelectionObservedRef = useRef(false);
|
|
166
169
|
const pointerOriginRef = useRef<"unset" | "inside" | "outside">("unset");
|
|
167
170
|
const portalStyle = usePortalTokenStyle(rootRef.current);
|
|
168
171
|
|
|
@@ -175,6 +178,12 @@ export function TimelineAnnotationSelection({
|
|
|
175
178
|
const update = (keyboard: boolean) => {
|
|
176
179
|
setCandidate(buildCandidate(root, sources, keyboard));
|
|
177
180
|
};
|
|
181
|
+
// A user may finish selecting text before this lazy component arrives.
|
|
182
|
+
// Reconcile once; later prop changes must not revive dismissed selections.
|
|
183
|
+
if (!initialSelectionObservedRef.current) {
|
|
184
|
+
initialSelectionObservedRef.current = true;
|
|
185
|
+
update(false);
|
|
186
|
+
}
|
|
178
187
|
const onRootPointerUp = (event: PointerEvent) => {
|
|
179
188
|
if (event.target instanceof Node && buttonRef.current?.contains(event.target)) return;
|
|
180
189
|
// Tests may fire only pointerup on the source. A real click that started
|
|
@@ -242,7 +251,7 @@ export function TimelineAnnotationSelection({
|
|
|
242
251
|
data-og-annotation-popover=""
|
|
243
252
|
style={{ left: candidate.left, top: candidate.top, ...portalStyle }}
|
|
244
253
|
className="og-root fixed z-[80] flex max-w-[min(18rem,calc(100vw-1.5rem))] -translate-x-1/2 items-start gap-2 rounded-2xl border border-og-border bg-og-surface-1 px-3 py-2 text-og-sm font-medium text-og-fg shadow-xl outline-hidden transition hover:border-og-accent/40 hover:bg-og-surface-2 focus-visible:ring-2 focus-visible:ring-og-accent pointer-coarse:min-h-[44px]"
|
|
245
|
-
aria-label={
|
|
254
|
+
aria-label={t("timelineAnnotationSelection.addANoteAboutPreview", { preview })}
|
|
246
255
|
title={candidate.annotation.quote}
|
|
247
256
|
onPointerDown={(event) => event.preventDefault()}
|
|
248
257
|
onClick={() => {
|
|
@@ -253,7 +262,7 @@ export function TimelineAnnotationSelection({
|
|
|
253
262
|
>
|
|
254
263
|
<QuoteIcon className="mt-0.5 size-3.5 shrink-0 text-og-accent" aria-hidden="true" />
|
|
255
264
|
<span className="min-w-0 text-left">
|
|
256
|
-
<span className="block leading-5">
|
|
265
|
+
<span className="block leading-5">{t("timelineAnnotationSelection.addNote")}</span>
|
|
257
266
|
<span className="mt-0.5 block truncate text-og-xs font-normal text-og-fg-muted">
|
|
258
267
|
{preview}
|
|
259
268
|
</span>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TimelineAnnotationSource } from "@opengeni/sdk";
|
|
2
|
+
import { type OpenGeniText } from "../messages/runtime";
|
|
2
3
|
|
|
3
4
|
export const ANNOTATION_CHROME_SELECTOR =
|
|
4
5
|
"[data-og-annotation-chrome], [data-og-annotation-badge], [data-og-annotation-popover]";
|
|
@@ -14,19 +15,19 @@ export function annotationDisplayOrdinal(
|
|
|
14
15
|
return typeof annotation.ordinal === "number" ? annotation.ordinal : index + 1;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
export function sourceKindLabel(kind: TimelineAnnotationSource["kind"]): string {
|
|
18
|
+
export function sourceKindLabel(t: OpenGeniText, kind: TimelineAnnotationSource["kind"]): string {
|
|
18
19
|
switch (kind) {
|
|
19
20
|
case "user_message":
|
|
20
|
-
return "
|
|
21
|
+
return t("timelineAnnotationShared.yourMessage");
|
|
21
22
|
case "assistant_message":
|
|
22
|
-
return "
|
|
23
|
+
return t("timelineAnnotationShared.assistant");
|
|
23
24
|
case "tool_output":
|
|
24
|
-
return "
|
|
25
|
+
return t("timelineAnnotationShared.toolOutput");
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
export function annotationSourceLabel(source: TimelineAnnotationSource): string {
|
|
29
|
-
return source.label?.trim() || sourceKindLabel(source.kind);
|
|
29
|
+
export function annotationSourceLabel(t: OpenGeniText, source: TimelineAnnotationSource): string {
|
|
30
|
+
return source.label?.trim() || sourceKindLabel(t, source.kind);
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export function truncateAnnotationQuote(quote: string, maxChars = 160): string {
|
|
@@ -231,8 +232,8 @@ export function revealLoadedAnnotationSource(
|
|
|
231
232
|
element.animate?.(
|
|
232
233
|
[
|
|
233
234
|
{
|
|
234
|
-
boxShadow: "inset 0 0 0 2px color-mix(in oklch, var(--og-accent) 70%, transparent)",
|
|
235
|
-
backgroundColor: "color-mix(in oklch, var(--og-accent) 14%, transparent)",
|
|
235
|
+
boxShadow: "inset 0 0 0 2px color-mix(in oklch, var(--og-color-accent) 70%, transparent)",
|
|
236
|
+
backgroundColor: "color-mix(in oklch, var(--og-color-accent) 14%, transparent)",
|
|
236
237
|
},
|
|
237
238
|
{
|
|
238
239
|
boxShadow: "inset 0 0 0 2px transparent",
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
scrollAnnotationRowIntoList,
|
|
17
17
|
} from "./timeline-annotation-layout";
|
|
18
18
|
import { annotationDisplayOrdinal, cssEscapeAttribute } from "./timeline-annotation-shared";
|
|
19
|
+
import { useOpenGeniText } from "../messages/runtime";
|
|
19
20
|
|
|
20
21
|
function focusableElements(root: HTMLElement): HTMLElement[] {
|
|
21
22
|
return [
|
|
@@ -36,6 +37,7 @@ export function TimelineAnnotationsDialog({
|
|
|
36
37
|
triggerRef,
|
|
37
38
|
countLabel,
|
|
38
39
|
onDismiss,
|
|
40
|
+
onCommit,
|
|
39
41
|
}: {
|
|
40
42
|
annotations: readonly TimelineAnnotationLike[];
|
|
41
43
|
editable: boolean;
|
|
@@ -47,13 +49,16 @@ export function TimelineAnnotationsDialog({
|
|
|
47
49
|
triggerRef: RefObject<HTMLButtonElement | null>;
|
|
48
50
|
countLabel: string;
|
|
49
51
|
onDismiss: (restoreFocus: boolean) => void;
|
|
52
|
+
onCommit: () => void;
|
|
50
53
|
}) {
|
|
54
|
+
const t = useOpenGeniText();
|
|
51
55
|
const [unavailableId, setUnavailableId] = useState<string | null>(null);
|
|
52
56
|
const [position, setPosition] = useState({ left: 12, top: 12, maxHeight: 0 });
|
|
53
57
|
const panelRef = useRef<HTMLDivElement | null>(null);
|
|
54
58
|
const headerRef = useRef<HTMLDivElement | null>(null);
|
|
55
59
|
const listRef = useRef<HTMLDivElement | null>(null);
|
|
56
60
|
const noteRefs = useRef(new Map<string, HTMLTextAreaElement>());
|
|
61
|
+
const focusedAnnotationIdRef = useRef<string | null>(null);
|
|
57
62
|
const portalStyle = usePortalTokenStyle(triggerRef.current);
|
|
58
63
|
const revealNote = (id: string) => {
|
|
59
64
|
const row = listRef.current?.querySelector<HTMLElement>(
|
|
@@ -69,7 +74,7 @@ export function TimelineAnnotationsDialog({
|
|
|
69
74
|
return (live?.value ?? annotation.note).trim().length === 0;
|
|
70
75
|
});
|
|
71
76
|
if (incomplete.length === 0) {
|
|
72
|
-
|
|
77
|
+
onCommit();
|
|
73
78
|
return;
|
|
74
79
|
}
|
|
75
80
|
const fromIndex = annotations.findIndex((annotation) => annotation.id === fromId);
|
|
@@ -108,10 +113,20 @@ export function TimelineAnnotationsDialog({
|
|
|
108
113
|
}, [annotations, triggerRef]);
|
|
109
114
|
|
|
110
115
|
useLayoutEffect(() => {
|
|
111
|
-
if (!focusAnnotationId
|
|
116
|
+
if (!focusAnnotationId) {
|
|
117
|
+
focusedAnnotationIdRef.current = null;
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
// A consumed request must not reclaim focus or scroll on layout/callback updates.
|
|
121
|
+
if (focusedAnnotationIdRef.current === focusAnnotationId) return;
|
|
122
|
+
focusedAnnotationIdRef.current = null;
|
|
123
|
+
if (position.maxHeight <= 0) return;
|
|
112
124
|
revealNote(focusAnnotationId);
|
|
113
125
|
const note = noteRefs.current.get(focusAnnotationId);
|
|
114
|
-
if (note && document.activeElement === note)
|
|
126
|
+
if (note && document.activeElement === note) {
|
|
127
|
+
focusedAnnotationIdRef.current = focusAnnotationId;
|
|
128
|
+
onFocusConsumed?.();
|
|
129
|
+
}
|
|
115
130
|
}, [focusAnnotationId, onFocusConsumed, annotations.length, position.maxHeight]);
|
|
116
131
|
|
|
117
132
|
useEffect(() => {
|
|
@@ -168,7 +183,11 @@ export function TimelineAnnotationsDialog({
|
|
|
168
183
|
...portalStyle,
|
|
169
184
|
}}
|
|
170
185
|
className="og-root fixed z-[75] box-border flex w-[min(25rem,calc(100vw-1.5rem))] flex-col overflow-hidden rounded-og-lg border border-og-border bg-og-surface-1 text-og-fg shadow-xl outline-hidden"
|
|
171
|
-
aria-label={
|
|
186
|
+
aria-label={
|
|
187
|
+
editable
|
|
188
|
+
? t("timelineAnnotationsDialog.editQuotedNotes")
|
|
189
|
+
: t("timelineAnnotationsDialog.quotedNotes")
|
|
190
|
+
}
|
|
172
191
|
>
|
|
173
192
|
<div
|
|
174
193
|
ref={headerRef}
|
|
@@ -179,7 +198,7 @@ export function TimelineAnnotationsDialog({
|
|
|
179
198
|
<button
|
|
180
199
|
type="button"
|
|
181
200
|
className="inline-flex size-8 shrink-0 items-center justify-center rounded-md border-0 bg-transparent text-og-fg-muted outline-hidden hover:bg-og-surface-2 hover:text-og-fg focus-visible:ring-2 focus-visible:ring-og-accent pointer-coarse:size-11"
|
|
182
|
-
aria-label="
|
|
201
|
+
aria-label={t("timelineAnnotationsDialog.close")}
|
|
183
202
|
onClick={() => onDismiss(true)}
|
|
184
203
|
>
|
|
185
204
|
<XIcon className="size-3.5" aria-hidden="true" />
|
|
@@ -196,13 +215,13 @@ export function TimelineAnnotationsDialog({
|
|
|
196
215
|
<section
|
|
197
216
|
key={annotation.id}
|
|
198
217
|
data-og-annotation-id={annotation.id}
|
|
199
|
-
aria-label={
|
|
218
|
+
aria-label={t("timelineAnnotationsDialog.annotationOrdinal", { ordinal })}
|
|
200
219
|
>
|
|
201
220
|
<AnnotationAccentRow>
|
|
202
221
|
<div className="flex items-start gap-1">
|
|
203
222
|
<div className="min-w-0 flex-1">
|
|
204
223
|
<p className="mb-0.5 text-og-xs font-medium tabular-nums text-og-fg-subtle">
|
|
205
|
-
|
|
224
|
+
{t("timelineAnnotationsDialog.annotationOrdinal", { ordinal })}
|
|
206
225
|
</p>
|
|
207
226
|
<AnnotationQuoteSourceButton
|
|
208
227
|
annotation={annotation}
|
|
@@ -215,7 +234,9 @@ export function TimelineAnnotationsDialog({
|
|
|
215
234
|
<button
|
|
216
235
|
type="button"
|
|
217
236
|
className="inline-flex size-7 shrink-0 items-center justify-center rounded-md border-0 bg-transparent text-og-fg-subtle outline-hidden hover:bg-og-surface-1 hover:text-og-status-failed focus-visible:ring-2 focus-visible:ring-og-accent pointer-coarse:size-11"
|
|
218
|
-
aria-label={
|
|
237
|
+
aria-label={t("timelineAnnotationsDialog.removeAnnotationOrdinal", {
|
|
238
|
+
ordinal,
|
|
239
|
+
})}
|
|
219
240
|
onClick={() => onRemove(annotation.id)}
|
|
220
241
|
>
|
|
221
242
|
<XIcon className="size-3.5" aria-hidden="true" />
|
|
@@ -224,7 +245,7 @@ export function TimelineAnnotationsDialog({
|
|
|
224
245
|
</div>
|
|
225
246
|
{unavailableId === annotation.id ? (
|
|
226
247
|
<p role="status" className="text-og-xs text-og-status-waiting">
|
|
227
|
-
|
|
248
|
+
{t("timelineAnnotationsDialog.sourceIsOutsideTheLoaded")}
|
|
228
249
|
</p>
|
|
229
250
|
) : null}
|
|
230
251
|
{editable && onUpdate ? (
|
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
annotationHasNote,
|
|
28
28
|
resolveAnnotationRevealRoot,
|
|
29
29
|
} from "./timeline-annotation-shared";
|
|
30
|
+
import { useOpenGeniText } from "../messages/runtime";
|
|
30
31
|
|
|
31
32
|
export type { TimelineAnnotationLike } from "./timeline-annotation-chrome";
|
|
32
33
|
|
|
@@ -65,6 +66,7 @@ export function TimelineAnnotationCards({
|
|
|
65
66
|
onRevealSource?: ((source: TimelineAnnotationSource) => boolean) | undefined;
|
|
66
67
|
className?: string | undefined;
|
|
67
68
|
}) {
|
|
69
|
+
const t = useOpenGeniText();
|
|
68
70
|
const [unavailableId, setUnavailableId] = useState<string | null>(null);
|
|
69
71
|
if (annotations.length === 0) return null;
|
|
70
72
|
return (
|
|
@@ -80,10 +82,13 @@ export function TimelineAnnotationCards({
|
|
|
80
82
|
{annotations.map((annotation, index) => {
|
|
81
83
|
const ordinal = annotationDisplayOrdinal(annotation, index);
|
|
82
84
|
return (
|
|
83
|
-
<section
|
|
85
|
+
<section
|
|
86
|
+
key={annotation.id}
|
|
87
|
+
aria-label={t("timelineAnnotations.annotationOrdinal", { ordinal })}
|
|
88
|
+
>
|
|
84
89
|
<AnnotationAccentRow>
|
|
85
90
|
<p className="mb-0.5 text-og-xs font-medium tabular-nums text-og-fg-subtle">
|
|
86
|
-
|
|
91
|
+
{t("timelineAnnotations.annotationOrdinal", { ordinal })}
|
|
87
92
|
</p>
|
|
88
93
|
<AnnotationQuoteSourceButton
|
|
89
94
|
annotation={annotation}
|
|
@@ -93,7 +98,7 @@ export function TimelineAnnotationCards({
|
|
|
93
98
|
/>
|
|
94
99
|
{unavailableId === annotation.id ? (
|
|
95
100
|
<p role="status" className="text-og-xs text-og-status-waiting">
|
|
96
|
-
|
|
101
|
+
{t("timelineAnnotations.sourceIsOutsideTheLoaded")}
|
|
97
102
|
</p>
|
|
98
103
|
) : null}
|
|
99
104
|
<AnnotationNotePreview
|
|
@@ -118,6 +123,8 @@ export function TimelineAnnotationsChip({
|
|
|
118
123
|
onRemove,
|
|
119
124
|
onRevealSource,
|
|
120
125
|
className,
|
|
126
|
+
compact = false,
|
|
127
|
+
onCommit,
|
|
121
128
|
}: {
|
|
122
129
|
annotations: readonly TimelineAnnotationLike[];
|
|
123
130
|
editable?: boolean | undefined;
|
|
@@ -125,9 +132,14 @@ export function TimelineAnnotationsChip({
|
|
|
125
132
|
onFocusConsumed?: (() => void) | undefined;
|
|
126
133
|
onUpdate?: ((id: string, note: string) => void) | undefined;
|
|
127
134
|
onRemove?: ((id: string) => void) | undefined;
|
|
135
|
+
/** Return focus to the owning input after all notes are completed with Enter. */
|
|
136
|
+
onCommit?: (() => void) | undefined;
|
|
128
137
|
onRevealSource?: ((source: TimelineAnnotationSource) => boolean) | undefined;
|
|
129
138
|
className?: string | undefined;
|
|
139
|
+
/** Dense trigger for single-line rows such as the compact queue dock. */
|
|
140
|
+
compact?: boolean | undefined;
|
|
130
141
|
}) {
|
|
142
|
+
const t = useOpenGeniText();
|
|
131
143
|
const focusRequested = Boolean(
|
|
132
144
|
focusAnnotationId && annotations.some((item) => item.id === focusAnnotationId),
|
|
133
145
|
);
|
|
@@ -146,7 +158,7 @@ export function TimelineAnnotationsChip({
|
|
|
146
158
|
}, [focusAnnotationId, focusRequested]);
|
|
147
159
|
|
|
148
160
|
if (annotations.length === 0) return null;
|
|
149
|
-
const countLabel =
|
|
161
|
+
const countLabel = t("counts.annotations", { count: annotations.length });
|
|
150
162
|
const incomplete = annotations.some((annotation) => !annotationHasNote(annotation.note));
|
|
151
163
|
const canClear = Boolean(editable && onRemove);
|
|
152
164
|
|
|
@@ -168,10 +180,11 @@ export function TimelineAnnotationsChip({
|
|
|
168
180
|
ref={triggerRef}
|
|
169
181
|
type="button"
|
|
170
182
|
className={cn(
|
|
171
|
-
"inline-flex min-
|
|
183
|
+
"inline-flex min-w-0 max-w-full items-center gap-1.5 rounded-full border-0 bg-transparent font-medium outline-hidden transition hover:text-og-fg focus-visible:ring-2 focus-visible:ring-og-accent pointer-coarse:min-h-[44px]",
|
|
184
|
+
compact ? "min-h-6 py-0.5 text-og-xs" : "min-h-8 py-1 text-og-sm",
|
|
172
185
|
canClear ? "pr-1 pl-2.5" : "px-2.5",
|
|
173
186
|
)}
|
|
174
|
-
aria-label={
|
|
187
|
+
aria-label={t("timelineAnnotations.reviewCountlabel", { countLabel })}
|
|
175
188
|
aria-haspopup="dialog"
|
|
176
189
|
aria-expanded={open}
|
|
177
190
|
onClick={() => setOpen((current) => !current)}
|
|
@@ -183,7 +196,7 @@ export function TimelineAnnotationsChip({
|
|
|
183
196
|
<button
|
|
184
197
|
type="button"
|
|
185
198
|
className="inline-flex size-7 shrink-0 items-center justify-center rounded-full border-0 bg-transparent text-og-fg-subtle outline-hidden hover:text-og-status-failed focus-visible:ring-2 focus-visible:ring-og-accent pointer-coarse:size-11"
|
|
186
|
-
aria-label="
|
|
199
|
+
aria-label={t("timelineAnnotations.removeAllAnnotations")}
|
|
187
200
|
onClick={() => {
|
|
188
201
|
for (const annotation of annotations) onRemove?.(annotation.id);
|
|
189
202
|
}}
|
|
@@ -206,6 +219,10 @@ export function TimelineAnnotationsChip({
|
|
|
206
219
|
triggerRef={triggerRef}
|
|
207
220
|
countLabel={countLabel}
|
|
208
221
|
onDismiss={dismiss}
|
|
222
|
+
onCommit={() => {
|
|
223
|
+
dismiss(!onCommit);
|
|
224
|
+
onCommit?.();
|
|
225
|
+
}}
|
|
209
226
|
/>
|
|
210
227
|
</Suspense>
|
|
211
228
|
</AnnotationSourceRootBridge>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { useCallback, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
2
|
+
import type { TimelineGroup } from "../timeline/types";
|
|
3
|
+
import { timelineHasReader } from "./timeline-anchor";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Settlement may compact history, but cannot remove prose beneath a reader.
|
|
7
|
+
* Keep only progress that was already primary on the preceding commit; loading
|
|
8
|
+
* settled history never expands it. An explicit work toggle or tip return ends
|
|
9
|
+
* the protection. Keeping the original sibling keys also preserves selection.
|
|
10
|
+
*/
|
|
11
|
+
export function useReadingProgress(
|
|
12
|
+
projected: TimelineGroup[],
|
|
13
|
+
pinned: boolean,
|
|
14
|
+
scroller: HTMLElement | null,
|
|
15
|
+
) {
|
|
16
|
+
const following = pinned && !timelineHasReader(scroller);
|
|
17
|
+
const previous = useRef<TimelineGroup[]>([]);
|
|
18
|
+
const [released, setReleased] = useState<ReadonlySet<string>>(() => new Set());
|
|
19
|
+
const groups = useMemo(() => {
|
|
20
|
+
if (following) return projected;
|
|
21
|
+
const key = (group: TimelineGroup) => (group.kind === "item" ? group.item.id : group.id);
|
|
22
|
+
const visible = new Set(previous.current.map(key));
|
|
23
|
+
const retained = new Map<string, TimelineGroup>();
|
|
24
|
+
const compact = projected.map((group): TimelineGroup => {
|
|
25
|
+
if (group.kind !== "activity" || !group.work?.endedAt || released.has(group.id)) {
|
|
26
|
+
return group;
|
|
27
|
+
}
|
|
28
|
+
const progress = group.work.details.filter(
|
|
29
|
+
(child) =>
|
|
30
|
+
child.kind === "item" &&
|
|
31
|
+
child.item.kind === "agent-message" &&
|
|
32
|
+
visible.has(child.item.id),
|
|
33
|
+
);
|
|
34
|
+
if (!progress.length) return group;
|
|
35
|
+
for (const child of progress) retained.set(key(child), child);
|
|
36
|
+
return {
|
|
37
|
+
...group,
|
|
38
|
+
work: {
|
|
39
|
+
...group.work,
|
|
40
|
+
details: group.work.details.filter((child) => !retained.has(key(child))),
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
if (!retained.size) return compact;
|
|
45
|
+
// Keep prose before the same retained sibling, including attention rows.
|
|
46
|
+
// Merely hoisting it before Work would still move its DOM across those rows
|
|
47
|
+
// and invalidate a browser selection despite retaining React keys.
|
|
48
|
+
const current = new Set(compact.map(key));
|
|
49
|
+
const before = new Map<string | null, TimelineGroup[]>();
|
|
50
|
+
let next: string | null = null;
|
|
51
|
+
for (let index = previous.current.length - 1; index >= 0; index--) {
|
|
52
|
+
const id = key(previous.current[index]!);
|
|
53
|
+
const child = retained.get(id);
|
|
54
|
+
if (child) before.set(next, [child, ...(before.get(next) ?? [])]);
|
|
55
|
+
else if (current.has(id)) next = id;
|
|
56
|
+
}
|
|
57
|
+
return [
|
|
58
|
+
...compact.flatMap((group) => [...(before.get(key(group)) ?? []), group]),
|
|
59
|
+
...(before.get(null) ?? []),
|
|
60
|
+
];
|
|
61
|
+
}, [projected, following, released]);
|
|
62
|
+
useLayoutEffect(() => {
|
|
63
|
+
previous.current = groups;
|
|
64
|
+
if (following && released.size) setReleased(new Set());
|
|
65
|
+
}, [groups, following, released]);
|
|
66
|
+
const release = useCallback(
|
|
67
|
+
(id: string | null) => {
|
|
68
|
+
if (
|
|
69
|
+
!id ||
|
|
70
|
+
!projected.some(
|
|
71
|
+
(group) => group.kind === "activity" && group.id === id && group.work?.endedAt,
|
|
72
|
+
)
|
|
73
|
+
)
|
|
74
|
+
return;
|
|
75
|
+
setReleased((current) => (current.has(id) ? current : new Set([...current, id])));
|
|
76
|
+
},
|
|
77
|
+
[projected],
|
|
78
|
+
);
|
|
79
|
+
return { groups, release };
|
|
80
|
+
}
|