@opengeni/react 1.0.1 → 1.0.2-canary.37202341988001
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 +660 -21
- package/dist/accounts.d.ts +64 -0
- package/dist/accounts.js +822 -0
- package/dist/accounts.js.map +1 -0
- package/dist/approvals.d.ts +2 -1
- package/dist/artifacts-document.js +3 -2
- package/dist/artifacts-presentation.js +3 -2
- package/dist/artifacts-spreadsheet.js +2 -2
- package/dist/artifacts.d.ts +4 -1
- package/dist/artifacts.js +518 -42
- package/dist/artifacts.js.map +1 -1
- package/dist/browser-viewer-SHYKQRNX.js +16 -0
- package/dist/capability-catalog-row.d.ts +20 -0
- package/dist/capability-logo-fallback.d.ts +3 -0
- package/dist/chat-interactive-block-UGBTNB3L.js +11 -0
- package/dist/chat-interactive-block-UGBTNB3L.js.map +1 -0
- package/dist/chunk-26ZNDDLZ.js +453 -0
- package/dist/chunk-26ZNDDLZ.js.map +1 -0
- package/dist/chunk-3CTRFMAK.js +359 -0
- package/dist/chunk-3CTRFMAK.js.map +1 -0
- package/dist/chunk-447JLCBU.js +209 -0
- package/dist/chunk-447JLCBU.js.map +1 -0
- package/dist/chunk-4RVYOY4O.js +379 -0
- package/dist/chunk-4RVYOY4O.js.map +1 -0
- package/dist/chunk-5CVXZA3Y.js +292 -0
- package/dist/chunk-5CVXZA3Y.js.map +1 -0
- package/dist/chunk-5J4FOW6Q.js +108 -0
- package/dist/chunk-5J4FOW6Q.js.map +1 -0
- package/dist/chunk-742CZ3L3.js +481 -0
- package/dist/chunk-742CZ3L3.js.map +1 -0
- package/dist/chunk-A2PI6UMY.js +41 -0
- package/dist/chunk-A2PI6UMY.js.map +1 -0
- package/dist/{chunk-7WCLAEFV.js → chunk-A4UJB2MM.js} +37 -27
- package/dist/chunk-A4UJB2MM.js.map +1 -0
- package/dist/chunk-B3V6TG77.js +41 -0
- package/dist/chunk-B3V6TG77.js.map +1 -0
- package/dist/chunk-BRM6FVZA.js +302 -0
- package/dist/chunk-BRM6FVZA.js.map +1 -0
- package/dist/chunk-C5X5AJXK.js +182 -0
- package/dist/chunk-C5X5AJXK.js.map +1 -0
- package/dist/{chunk-6KLX2RH5.js → chunk-DO544OSV.js} +1075 -79
- package/dist/chunk-DO544OSV.js.map +1 -0
- package/dist/{chunk-R3AZOAB5.js → chunk-DYWBUX5Q.js} +29 -123
- package/dist/chunk-DYWBUX5Q.js.map +1 -0
- package/dist/{chunk-HA46CYQK.js → chunk-EESD3PY3.js} +792 -537
- package/dist/chunk-EESD3PY3.js.map +1 -0
- package/dist/{chunk-5UQPNLIO.js → chunk-EN3YTHKR.js} +4117 -3896
- package/dist/chunk-EN3YTHKR.js.map +1 -0
- package/dist/chunk-ERGYJIBB.js +21 -0
- package/dist/chunk-ERGYJIBB.js.map +1 -0
- package/dist/chunk-FZCP527Y.js +116 -0
- package/dist/chunk-FZCP527Y.js.map +1 -0
- package/dist/chunk-GIMRELBW.js +14 -0
- package/dist/chunk-GIMRELBW.js.map +1 -0
- package/dist/chunk-GYVRFZDY.js +2733 -0
- package/dist/chunk-GYVRFZDY.js.map +1 -0
- package/dist/{chunk-LLOLUHVG.js → chunk-HDJWDK7W.js} +1358 -2746
- package/dist/chunk-HDJWDK7W.js.map +1 -0
- package/dist/chunk-I7IWRQLN.js +1608 -0
- package/dist/chunk-I7IWRQLN.js.map +1 -0
- package/dist/chunk-IT4BJUGF.js +13055 -0
- package/dist/chunk-IT4BJUGF.js.map +1 -0
- package/dist/chunk-IWIDV7SB.js +1 -0
- package/dist/chunk-IWIDV7SB.js.map +1 -0
- package/dist/chunk-J2QWVSQY.js +312 -0
- package/dist/chunk-J2QWVSQY.js.map +1 -0
- package/dist/chunk-J6DBS4T3.js +371 -0
- package/dist/chunk-J6DBS4T3.js.map +1 -0
- package/dist/{chunk-B6WPZSTT.js → chunk-JIQYUGVL.js} +1331 -1163
- package/dist/chunk-JIQYUGVL.js.map +1 -0
- package/dist/chunk-JT4JW7BC.js +54 -0
- package/dist/chunk-JT4JW7BC.js.map +1 -0
- package/dist/chunk-K3HQAKQX.js +24 -0
- package/dist/chunk-K3HQAKQX.js.map +1 -0
- package/dist/{chunk-PEI6RANI.js → chunk-PNY3JKBJ.js} +309 -74
- package/dist/chunk-PNY3JKBJ.js.map +1 -0
- package/dist/chunk-RHREZ7BO.js +11 -0
- package/dist/chunk-RHREZ7BO.js.map +1 -0
- package/dist/chunk-RLUSC2WA.js +299 -0
- package/dist/chunk-RLUSC2WA.js.map +1 -0
- package/dist/{chunk-IGC6A2ZI.js → chunk-RSI7XYXL.js} +777 -246
- package/dist/chunk-RSI7XYXL.js.map +1 -0
- package/dist/chunk-SCOTPE2I.js +589 -0
- package/dist/chunk-SCOTPE2I.js.map +1 -0
- package/dist/{chunk-C5ZPSSS5.js → chunk-TKOTKRWY.js} +5 -4
- package/dist/{chunk-C5ZPSSS5.js.map → chunk-TKOTKRWY.js.map} +1 -1
- package/dist/chunk-TMYGL6X5.js +742 -0
- package/dist/chunk-TMYGL6X5.js.map +1 -0
- package/dist/chunk-UGLEYEMP.js +33 -0
- package/dist/chunk-UGLEYEMP.js.map +1 -0
- package/dist/chunk-UK4TINKT.js +27 -0
- package/dist/chunk-UK4TINKT.js.map +1 -0
- package/dist/chunk-UTRTG6LH.js +220 -0
- package/dist/chunk-UTRTG6LH.js.map +1 -0
- package/dist/chunk-WEHMPOXK.js +39 -0
- package/dist/chunk-WEHMPOXK.js.map +1 -0
- package/dist/chunk-WGXVEJO5.js +319 -0
- package/dist/chunk-WGXVEJO5.js.map +1 -0
- package/dist/chunk-WRHIZYZF.js +988 -0
- package/dist/chunk-WRHIZYZF.js.map +1 -0
- package/dist/{chunk-HUIKIDM5.js → chunk-WUISZ3WU.js} +223 -115
- package/dist/chunk-WUISZ3WU.js.map +1 -0
- package/dist/chunk-XCHWDJ22.js +107 -0
- package/dist/chunk-XCHWDJ22.js.map +1 -0
- package/dist/{chunk-KCGXPP5V.js → chunk-Y2PRMYLC.js} +11 -6
- package/dist/chunk-Y2PRMYLC.js.map +1 -0
- package/dist/chunk-YBXQDQFX.js +1772 -0
- package/dist/chunk-YBXQDQFX.js.map +1 -0
- package/dist/chunk-YM2DE7BQ.js +3124 -0
- package/dist/chunk-YM2DE7BQ.js.map +1 -0
- package/dist/{chunk-KZ73RL76.js → chunk-YQEAA6LT.js} +7 -3
- package/dist/chunk-YQEAA6LT.js.map +1 -0
- package/dist/chunk-YV4L3ILF.js +9 -0
- package/dist/chunk-YV4L3ILF.js.map +1 -0
- package/dist/chunk-ZYRGEKWS.js +216 -0
- package/dist/chunk-ZYRGEKWS.js.map +1 -0
- package/dist/client.d.ts +7 -4
- package/dist/clipboard.js +1 -0
- package/dist/commands/types.d.ts +2 -0
- package/dist/components/anthropic-mark.d.ts +3 -0
- package/dist/components/approval-surface.d.ts +15 -0
- package/dist/components/artifacts/artifact-chrome.d.ts +120 -0
- package/dist/components/artifacts/artifact-sandbox.d.ts +27 -0
- package/dist/components/artifacts/artifact-surface.d.ts +3 -1
- 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 +2 -1
- package/dist/components/artifacts/editable-artifact-view.d.ts +46 -0
- package/dist/components/artifacts/editable-document.d.ts +1 -1
- package/dist/components/artifacts/editable-presentation.d.ts +2 -2
- package/dist/components/artifacts/editable-spreadsheet.d.ts +2 -1
- 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 +48 -3
- package/dist/components/artifacts/session-artifact-viewer.d.ts +39 -0
- package/dist/components/artifacts/site-view.d.ts +23 -0
- package/dist/components/artifacts/spreadsheet-general-display.d.ts +24 -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 +10 -1
- package/dist/components/chat-composer.d.ts +21 -3
- package/dist/components/child-session-link.d.ts +5 -0
- package/dist/components/claude-mark.d.ts +3 -0
- package/dist/components/code-editor.d.ts +1 -4
- package/dist/components/composer.d.ts +45 -4
- package/dist/components/computer-viewer.d.ts +4 -1
- package/dist/components/copy-button.d.ts +3 -1
- package/dist/components/desktop-viewer.d.ts +1 -1
- package/dist/components/enrollment-consent.d.ts +6 -3
- package/dist/components/file-browser.d.ts +10 -1
- package/dist/components/fleet-tile.d.ts +2 -2
- package/dist/components/grok-mark.d.ts +26 -0
- package/dist/components/human-input-form.d.ts +21 -2
- package/dist/components/human-input-surface.d.ts +6 -3
- package/dist/components/machine-card.d.ts +4 -1
- package/dist/components/machines/machine-detail.d.ts +4 -1
- package/dist/components/machines/machine-operation-policy.d.ts +11 -0
- package/dist/components/machines-dashboard.d.ts +3 -1
- package/dist/components/markdown-table-layout.d.ts +12 -0
- package/dist/components/markdown.d.ts +47 -3
- package/dist/components/message-timeline.d.ts +72 -9
- package/dist/components/model-mark.d.ts +29 -0
- package/dist/components/model-policy-picker-menu.d.ts +9 -0
- package/dist/components/model-policy-picker.d.ts +62 -13
- package/dist/components/open-geni-chat.d.ts +58 -0
- package/dist/components/open-geni-links.d.ts +68 -0
- package/dist/components/openrouter-mark.d.ts +6 -0
- package/dist/components/pierre-file.d.ts +1 -1
- package/dist/components/preview-loading.d.ts +2 -0
- package/dist/components/queue-item-content.d.ts +9 -0
- package/dist/components/sandbox-files.d.ts +13 -2
- package/dist/components/sandbox-workspace.d.ts +43 -3
- package/dist/components/session-capability-frame.d.ts +35 -0
- package/dist/components/session-chrome.d.ts +66 -8
- package/dist/components/session-commands-panel.d.ts +6 -0
- 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 +89 -0
- package/dist/components/session-list.d.ts +36 -0
- package/dist/components/session-mcp-capability-card.d.ts +41 -0
- package/dist/components/session-proxy-scope.d.ts +21 -0
- package/dist/components/timeline-anchor.d.ts +24 -0
- package/dist/components/timeline-annotation-chrome.d.ts +25 -0
- package/dist/components/timeline-annotation-layout.d.ts +42 -0
- package/dist/components/timeline-annotation-markers.d.ts +8 -0
- package/dist/components/timeline-annotation-reveal-context.d.ts +4 -0
- package/dist/components/timeline-annotation-shared.d.ts +31 -0
- package/dist/components/timeline-annotations-dialog.d.ts +3 -2
- package/dist/components/timeline-annotations.d.ts +13 -3
- 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/tip-follow.d.ts +16 -0
- package/dist/components/usage-limit-notice.d.ts +49 -0
- package/dist/components/usage-member-list.d.ts +91 -0
- package/dist/components/usage-meter.d.ts +73 -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/workspace-dock.d.ts +6 -2
- package/dist/composer.d.ts +5 -4
- package/dist/composer.js +15 -9
- package/dist/computer-viewer-6SRGWRUX.js +19 -0
- package/dist/computer-viewer-6SRGWRUX.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 +16 -0
- package/dist/connect.d.ts +21 -0
- package/dist/connect.js +2129 -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 +5 -0
- package/dist/desktop.d.ts +7 -0
- package/dist/desktop.js +26 -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 +14 -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 +21 -0
- package/dist/editor.js.map +1 -0
- package/dist/embedded-session-client.d.ts +23 -0
- package/dist/file-node-visibility.d.ts +15 -0
- package/dist/{fleet-decision-row-GGCAT4E4.js → fleet-decision-row-YZ3ZKWMM.js} +2 -1
- package/dist/fleet-decision-row-YZ3ZKWMM.js.map +1 -0
- package/dist/hooks/channel-cache.d.ts +23 -0
- package/dist/hooks/latest-question.d.ts +25 -0
- package/dist/hooks/shared-machines-list.d.ts +14 -0
- package/dist/hooks/use-attached-browsers.d.ts +2 -1
- 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-channels.d.ts +1 -0
- package/dist/hooks/use-codex-accounts.d.ts +25 -7
- package/dist/hooks/use-composer.d.ts +45 -9
- 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 +2 -0
- package/dist/hooks/use-connect.d.ts +22 -0
- package/dist/hooks/use-desktop-stream.d.ts +1 -1
- package/dist/hooks/use-file-attachments.d.ts +21 -2
- package/dist/hooks/use-machine-chip.d.ts +3 -3
- package/dist/hooks/use-machines.d.ts +19 -1
- package/dist/hooks/use-sandbox-files.d.ts +5 -1
- package/dist/hooks/use-session-background-commands.d.ts +14 -0
- package/dist/hooks/use-session-events.d.ts +30 -8
- package/dist/hooks/use-session-lineage.d.ts +4 -0
- package/dist/hooks/use-session-mcp-approval-policy.d.ts +2 -2
- package/dist/hooks/use-session.d.ts +6 -0
- package/dist/hooks/use-turn-queue.d.ts +12 -0
- package/dist/hooks/use-usage.d.ts +40 -0
- package/dist/hooks/use-workspace-edit.d.ts +4 -0
- package/dist/hooks/use-workspace-sessions.d.ts +27 -5
- package/dist/human-input.d.ts +3 -1
- package/dist/identity-link-accounts.d.ts +11 -0
- package/dist/identity-link-consent.d.ts +18 -0
- package/dist/index.d.ts +60 -17
- package/dist/index.js +2238 -6201
- package/dist/index.js.map +1 -1
- package/dist/interaction.d.ts +1 -1
- package/dist/interaction.js +35 -184
- package/dist/interaction.js.map +1 -1
- package/dist/latest-question-HTRIS4KJ.js +117 -0
- package/dist/latest-question-HTRIS4KJ.js.map +1 -0
- package/dist/lib/error-message.d.ts +7 -0
- package/dist/lib/format.d.ts +36 -2
- package/dist/lib/host-theme.d.ts +70 -0
- package/dist/lib/interaction-errors.d.ts +6 -0
- package/dist/lib/menu-styles.d.ts +22 -0
- package/dist/lib/pierre-diffs-loader.d.ts +20 -0
- package/dist/lib/workbench-peers.d.ts +36 -0
- package/dist/lib/xterm-theme.d.ts +7 -5
- package/dist/machines.d.ts +4 -2
- package/dist/machines.js +14 -4
- package/dist/markdown-table-layout-QXSLK4BY.js +106 -0
- package/dist/markdown-table-layout-QXSLK4BY.js.map +1 -0
- package/dist/mcp-connection-status.d.ts +14 -0
- package/dist/model-policy-picker-menu-M54ISBMN.js +14 -0
- package/dist/model-policy-picker-menu-M54ISBMN.js.map +1 -0
- package/dist/model-policy.d.ts +19 -3
- package/dist/model-policy.js +9 -1
- package/dist/older-history.d.ts +30 -0
- package/dist/platform-activity-row-627BFZ46.js +182 -0
- package/dist/platform-activity-row-627BFZ46.js.map +1 -0
- package/dist/plugin-details.d.ts +14 -0
- package/dist/plugin-discovery.d.ts +25 -0
- package/dist/provider.d.ts +13 -1
- package/dist/{queue-surface-implementation-2KVJTYXH.js → queue-surface-implementation-ZHFI5JBP.js} +131 -44
- package/dist/queue-surface-implementation-ZHFI5JBP.js.map +1 -0
- package/dist/realtime/realtime-control.d.ts +6 -3
- package/dist/realtime.js +133 -74
- package/dist/realtime.js.map +1 -1
- package/dist/sandbox-files-GORZOUUJ.js +20 -0
- package/dist/sandbox-files-GORZOUUJ.js.map +1 -0
- package/dist/session-auth-recommendation.d.ts +5 -0
- package/dist/session-capability-policy.d.ts +12 -0
- package/dist/session-ui.d.ts +30 -2
- package/dist/session-ui.js +85 -7
- package/dist/session-ui.js.map +1 -1
- package/dist/session.d.ts +8 -2
- package/dist/session.js +30 -19
- package/dist/sites-ui.d.ts +34 -0
- package/dist/sites.d.ts +3 -0
- package/dist/sites.js +11 -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 +31 -0
- package/dist/terminal.js.map +1 -0
- package/dist/timeline/activity-rail.d.ts +11 -2
- package/dist/timeline/allowance-exhausted-row.d.ts +24 -0
- package/dist/timeline/compaction-copy.d.ts +10 -0
- package/dist/timeline/entrance.d.ts +13 -1
- package/dist/timeline/genie-loading.d.ts +34 -0
- package/dist/timeline/index.d.ts +6 -2
- package/dist/timeline/knowledge-receipt.d.ts +17 -0
- package/dist/timeline/platform-activity-row.d.ts +14 -0
- package/dist/timeline/presented-image.d.ts +6 -0
- package/dist/timeline/projection.d.ts +31 -2
- package/dist/timeline/registry.d.ts +2 -0
- package/dist/timeline/retained-image.d.ts +18 -0
- package/dist/timeline/rolling-activity.d.ts +11 -0
- package/dist/timeline/screenshot-lightbox.d.ts +16 -1
- package/dist/timeline/shared.d.ts +8 -3
- 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 +2 -1
- package/dist/timeline/turn-summary.d.ts +34 -3
- package/dist/timeline/types.d.ts +147 -7
- package/dist/timeline-annotation-markers-GNDHTGBD.js +165 -0
- package/dist/timeline-annotation-markers-GNDHTGBD.js.map +1 -0
- package/dist/timeline-annotation-selection-DMLMM2TX.js +241 -0
- package/dist/timeline-annotation-selection-DMLMM2TX.js.map +1 -0
- package/dist/timeline-annotations-dialog-ELRDBHTS.js +273 -0
- package/dist/timeline-annotations-dialog-ELRDBHTS.js.map +1 -0
- package/dist/types/machines.d.ts +2 -2
- package/dist/usage/allowance-copy.d.ts +25 -0
- package/dist/usage/summary.d.ts +35 -0
- package/dist/usage.d.ts +13 -0
- package/dist/usage.js +1074 -0
- package/dist/usage.js.map +1 -0
- package/package.json +44 -4
- package/src/accounts.tsx +1072 -0
- package/src/approvals.ts +8 -1
- package/src/artifacts.ts +42 -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 +94 -0
- package/src/capability-logo-fallback.ts +22 -0
- package/src/client.ts +22 -13
- package/src/commands/registry.ts +18 -15
- package/src/commands/types.ts +2 -0
- package/src/components/anthropic-mark.tsx +10 -0
- package/src/components/approval-surface.tsx +171 -37
- package/src/components/artifacts/artifact-chrome.tsx +413 -0
- package/src/components/artifacts/artifact-sandbox.tsx +185 -0
- package/src/components/artifacts/artifact-surface.tsx +39 -19
- package/src/components/artifacts/chat-interactive-block.tsx +260 -0
- package/src/components/artifacts/deferred-chat-media.tsx +67 -0
- package/src/components/artifacts/document-editor.tsx +141 -16
- package/src/components/artifacts/editable-artifact-ui.tsx +4 -2
- package/src/components/artifacts/editable-artifact-view.tsx +187 -0
- package/src/components/artifacts/editable-artifact-workbench.tsx +5 -2
- package/src/components/artifacts/editable-document.tsx +37 -36
- package/src/components/artifacts/editable-presentation.tsx +36 -18
- package/src/components/artifacts/editable-spreadsheet.tsx +5 -2
- package/src/components/artifacts/index.ts +44 -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 +323 -67
- package/src/components/artifacts/published-html-artifact-frame.tsx +338 -5
- package/src/components/artifacts/session-artifact-viewer.tsx +376 -0
- package/src/components/artifacts/site-view.tsx +116 -0
- package/src/components/artifacts/spreadsheet-canvas.ts +5 -10
- package/src/components/artifacts/spreadsheet-general-display.ts +43 -0
- package/src/components/artifacts/spreadsheet-grid.tsx +12 -13
- 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 +312 -0
- package/src/components/browser-viewer.tsx +1054 -314
- package/src/components/chat-composer.tsx +131 -85
- package/src/components/child-session-link.tsx +27 -0
- package/src/components/claude-mark.tsx +10 -0
- package/src/components/code-editor.tsx +13 -16
- package/src/components/composer-transcription-control.tsx +7 -5
- package/src/components/composer.tsx +376 -49
- package/src/components/computer-viewer.tsx +1041 -329
- package/src/components/copy-button.tsx +13 -5
- package/src/components/desktop-viewer.tsx +1 -1
- package/src/components/enrollment-consent.tsx +65 -7
- package/src/components/enrollment-device-flow.tsx +1 -1
- package/src/components/file-browser.tsx +158 -34
- package/src/components/fleet-tile.tsx +8 -16
- package/src/components/generated-video-player.tsx +4 -2
- package/src/components/grok-mark.tsx +33 -0
- package/src/components/human-input-form.tsx +455 -114
- package/src/components/human-input-surface.tsx +18 -7
- package/src/components/interaction-intervention-banner.tsx +2 -2
- package/src/components/machine-card.tsx +119 -4
- package/src/components/machine-dock-bar.tsx +1 -1
- package/src/components/machine-input-display.ts +23 -2
- package/src/components/machines/machine-detail.tsx +52 -2
- package/src/components/machines/machine-operation-policy.tsx +179 -0
- package/src/components/machines-dashboard.tsx +8 -17
- package/src/components/markdown-table-layout.ts +132 -0
- package/src/components/markdown.tsx +473 -44
- package/src/components/message-timeline.tsx +2754 -665
- package/src/components/model-mark.tsx +90 -0
- package/src/components/model-picker.tsx +15 -4
- package/src/components/model-policy-picker-menu.tsx +424 -0
- package/src/components/model-policy-picker.tsx +337 -381
- package/src/components/open-geni-chat.tsx +338 -0
- package/src/components/open-geni-links.tsx +179 -0
- package/src/components/openrouter-mark.tsx +13 -0
- package/src/components/pierre-diff.tsx +41 -16
- package/src/components/pierre-file.tsx +36 -11
- package/src/components/preview-loading.tsx +154 -0
- package/src/components/queue-item-content.ts +14 -0
- package/src/components/queue-surface-implementation.tsx +132 -42
- package/src/components/queue-surface-state.tsx +3 -1
- package/src/components/sandbox-files.tsx +267 -35
- package/src/components/sandbox-terminal.tsx +48 -11
- package/src/components/sandbox-workspace.tsx +337 -135
- package/src/components/session-capability-frame.tsx +192 -0
- package/src/components/session-chrome.tsx +1027 -328
- package/src/components/session-commands-panel.tsx +126 -0
- package/src/components/session-commands.tsx +18 -0
- package/src/components/session-connection-request.tsx +97 -0
- package/src/components/session-conversation.tsx +526 -0
- package/src/components/session-list.tsx +250 -0
- package/src/components/session-mcp-capability-card.tsx +680 -0
- package/src/components/session-proxy-scope.tsx +92 -0
- package/src/components/session-status.tsx +1 -1
- package/src/components/timeline-anchor.tsx +119 -0
- package/src/components/timeline-annotation-chrome.tsx +196 -0
- package/src/components/timeline-annotation-layout.ts +268 -0
- package/src/components/timeline-annotation-markers.tsx +185 -0
- package/src/components/timeline-annotation-reveal-context.ts +9 -0
- package/src/components/timeline-annotation-selection.tsx +106 -54
- package/src/components/timeline-annotation-shared.ts +245 -0
- package/src/components/timeline-annotations-dialog.tsx +185 -128
- package/src/components/timeline-annotations.tsx +189 -45
- 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/tip-follow.ts +70 -7
- package/src/components/tooltip.tsx +38 -5
- package/src/components/usage-limit-notice.tsx +179 -0
- package/src/components/usage-member-list.tsx +792 -0
- package/src/components/usage-meter.tsx +382 -0
- package/src/components/use-viewer-menu-dismiss.ts +33 -0
- package/src/components/user-message-body.tsx +194 -49
- package/src/components/workspace-dock.tsx +141 -175
- package/src/composer.ts +6 -1
- package/src/connect-account-identity.tsx +34 -0
- package/src/connect-accounts.tsx +233 -0
- package/src/connect-chooser.tsx +336 -0
- package/src/connect-panel.tsx +99 -0
- package/src/connect-setup.tsx +307 -0
- package/src/connect.ts +60 -0
- package/src/connection-assets.d.ts +4 -0
- package/src/connection-catalog.tsx +162 -0
- package/src/connection-discovery.tsx +235 -0
- package/src/connection-installed.tsx +51 -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 +36 -0
- package/src/conversation-timeline.ts +92 -0
- package/src/desktop.ts +24 -0
- package/src/device-authorization.tsx +98 -0
- package/src/diffs.ts +16 -0
- package/src/discovery-cache.ts +42 -0
- package/src/editor.ts +13 -0
- package/src/embedded-session-client.ts +104 -0
- package/src/file-node-visibility.ts +66 -0
- package/src/hooks/channel-cache.ts +104 -0
- package/src/hooks/internal.ts +3 -2
- package/src/hooks/latest-question.ts +164 -0
- package/src/hooks/shared-machines-list.ts +239 -0
- package/src/hooks/use-attached-browsers.ts +5 -1
- package/src/hooks/use-available-models.ts +20 -14
- package/src/hooks/use-browser-frame-stream.ts +25 -3
- package/src/hooks/use-browser-session.ts +271 -71
- package/src/hooks/use-browser-sessions.ts +7 -1
- package/src/hooks/use-channels.ts +32 -10
- package/src/hooks/use-codex-accounts.ts +78 -21
- package/src/hooks/use-composer.ts +1034 -320
- package/src/hooks/use-computer-frame-stream.ts +39 -16
- package/src/hooks/use-computer-input-posture.ts +94 -0
- package/src/hooks/use-computer-session.ts +110 -32
- package/src/hooks/use-computer-sessions.ts +8 -1
- package/src/hooks/use-connect.ts +23 -0
- package/src/hooks/use-desktop-stream.ts +19 -28
- package/src/hooks/use-file-attachments.ts +118 -10
- package/src/hooks/use-goal.ts +36 -9
- package/src/hooks/use-human-input.ts +31 -4
- package/src/hooks/use-last-started-turn-policy.ts +15 -13
- package/src/hooks/use-machine-chip.ts +23 -6
- package/src/hooks/use-machines.ts +104 -6
- package/src/hooks/use-sandbox-files.ts +253 -150
- package/src/hooks/use-sandbox-git.ts +58 -29
- package/src/hooks/use-session-background-commands.ts +67 -0
- package/src/hooks/use-session-capabilities.ts +21 -2
- package/src/hooks/use-session-events.ts +759 -433
- package/src/hooks/use-session-lineage.ts +28 -6
- package/src/hooks/use-session-mcp-approval-policy.ts +13 -5
- package/src/hooks/use-session.ts +75 -16
- package/src/hooks/use-slash-commands.ts +6 -11
- package/src/hooks/use-turn-queue.ts +113 -13
- package/src/hooks/use-usage.ts +100 -0
- package/src/hooks/use-video-artifact-playback.ts +1 -1
- package/src/hooks/use-voice-input.ts +12 -1
- package/src/hooks/use-workspace-capture.ts +3 -2
- package/src/hooks/use-workspace-edit.ts +23 -5
- package/src/hooks/use-workspace-sessions.ts +99 -11
- package/src/human-input.ts +12 -1
- package/src/identity-link-accounts.tsx +148 -0
- package/src/identity-link-consent.tsx +192 -0
- package/src/index.ts +157 -12
- package/src/interaction.ts +1 -0
- package/src/lib/error-message.ts +37 -0
- package/src/lib/format.ts +150 -14
- package/src/lib/host-theme.ts +511 -0
- package/src/lib/interaction-errors.ts +33 -0
- package/src/lib/menu-styles.ts +44 -0
- package/src/lib/pierre-diffs-loader.ts +53 -0
- package/src/lib/workbench-peers.ts +62 -0
- package/src/lib/xterm-theme.ts +23 -21
- package/src/machines.ts +9 -1
- package/src/mcp-connection-status.ts +35 -0
- package/src/model-policy.ts +223 -69
- package/src/older-history.ts +87 -0
- package/src/plugin-details.tsx +185 -0
- package/src/plugin-discovery.tsx +196 -0
- package/src/provider.tsx +55 -14
- package/src/realtime/dropdown-menu.tsx +19 -12
- package/src/realtime/realtime-control.tsx +133 -46
- package/src/session-auth-recommendation.ts +48 -0
- package/src/session-capability-policy.ts +83 -0
- package/src/session-context.ts +4 -3
- package/src/session-ui.ts +66 -2
- package/src/session.ts +18 -1
- package/src/sites-ui.tsx +402 -0
- package/src/sites.ts +3 -0
- package/src/skill-discovery.tsx +208 -0
- package/src/terminal.ts +26 -0
- package/src/timeline/activity-rail.tsx +171 -80
- package/src/timeline/allowance-exhausted-row.tsx +86 -0
- package/src/timeline/compaction-copy.ts +42 -0
- package/src/timeline/entrance.tsx +28 -3
- package/src/timeline/fleet-decision-projection.ts +2 -1
- package/src/timeline/fleet-decision-row.tsx +1 -0
- package/src/timeline/genie-loading.tsx +136 -0
- package/src/timeline/index.ts +11 -0
- package/src/timeline/knowledge-receipt.tsx +100 -0
- package/src/timeline/parsers.ts +2 -2
- package/src/timeline/platform-activity-row.tsx +216 -0
- package/src/timeline/presented-image.ts +49 -0
- package/src/timeline/projection.ts +1609 -84
- package/src/timeline/registry.ts +15 -3
- package/src/timeline/retained-image.ts +97 -0
- package/src/timeline/rolling-activity.tsx +92 -0
- package/src/timeline/screenshot-lightbox.tsx +115 -17
- package/src/timeline/shared.tsx +47 -15
- package/src/timeline/startup-preference.ts +33 -0
- package/src/timeline/startup-timings.tsx +145 -0
- package/src/timeline/tool-display-name.ts +8 -6
- package/src/timeline/tool-renderers.tsx +497 -128
- package/src/timeline/turn-summary.tsx +218 -44
- package/src/timeline/types.ts +192 -7
- package/src/types/machines.ts +10 -0
- package/src/usage/allowance-copy.ts +64 -0
- package/src/usage/summary.ts +93 -0
- package/src/usage.ts +50 -0
- package/styles/compiled.css +2098 -757
- package/styles/connect.css +284 -0
- package/styles/connect.d.ts +1 -0
- package/styles/effective-tokens.css +1 -0
- package/styles/index.css +201 -9
- package/styles/responsive.css +27 -1
- package/styles/session-capability.css +44 -0
- package/styles/tokens.css +135 -65
- package/dist/chunk-5UQPNLIO.js.map +0 -1
- package/dist/chunk-6KLX2RH5.js.map +0 -1
- package/dist/chunk-7WCLAEFV.js.map +0 -1
- package/dist/chunk-B6WPZSTT.js.map +0 -1
- package/dist/chunk-FK6VG4LL.js +0 -90
- package/dist/chunk-FK6VG4LL.js.map +0 -1
- package/dist/chunk-HA46CYQK.js.map +0 -1
- package/dist/chunk-HUIKIDM5.js.map +0 -1
- package/dist/chunk-IGC6A2ZI.js.map +0 -1
- package/dist/chunk-KCGXPP5V.js.map +0 -1
- package/dist/chunk-KZ73RL76.js.map +0 -1
- package/dist/chunk-LAKLF4PA.js +0 -141
- package/dist/chunk-LAKLF4PA.js.map +0 -1
- package/dist/chunk-LLOLUHVG.js.map +0 -1
- package/dist/chunk-MKPIAGVL.js +0 -465
- package/dist/chunk-MKPIAGVL.js.map +0 -1
- package/dist/chunk-PEI6RANI.js.map +0 -1
- package/dist/chunk-R3AZOAB5.js.map +0 -1
- package/dist/chunk-WSK7G5LE.js +0 -170
- package/dist/chunk-WSK7G5LE.js.map +0 -1
- package/dist/chunk-XBZWOM2K.js +0 -218
- package/dist/chunk-XBZWOM2K.js.map +0 -1
- package/dist/chunk-Y7OEDUJ5.js +0 -8810
- package/dist/chunk-Y7OEDUJ5.js.map +0 -1
- package/dist/fleet-decision-row-GGCAT4E4.js.map +0 -1
- package/dist/hooks/use-packs.d.ts +0 -32
- package/dist/interactive-workbench-viewers-TOHBXJEE.js +0 -15
- package/dist/queue-surface-implementation-2KVJTYXH.js.map +0 -1
- package/dist/timeline-annotation-selection-3L7LHGG2.js +0 -187
- package/dist/timeline-annotation-selection-3L7LHGG2.js.map +0 -1
- package/dist/timeline-annotations-dialog-U7EVLR75.js +0 -196
- package/dist/timeline-annotations-dialog-U7EVLR75.js.map +0 -1
- package/src/hooks/use-packs.ts +0 -157
- /package/dist/{interactive-workbench-viewers-TOHBXJEE.js.map → browser-viewer-SHYKQRNX.js.map} +0 -0
package/src/approvals.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
parseToolDisplayMetadata,
|
|
3
|
+
type ToolDisplayMetadata,
|
|
4
|
+
type SessionEvent,
|
|
5
|
+
} from "@opengeni/sdk";
|
|
2
6
|
|
|
3
7
|
/* ----------------------------------------------------------------------------
|
|
4
8
|
Pending-approvals projection
|
|
@@ -26,6 +30,7 @@ export type PendingApproval = {
|
|
|
26
30
|
id: string;
|
|
27
31
|
/** Tool/function name awaiting the decision. */
|
|
28
32
|
name: string;
|
|
33
|
+
display?: ToolDisplayMetadata;
|
|
29
34
|
arguments?: unknown;
|
|
30
35
|
/** The raw approval entry from the `session.requiresAction` payload. */
|
|
31
36
|
raw?: unknown;
|
|
@@ -49,11 +54,13 @@ export function approvalsFromRequiresAction(payload: unknown): PendingApproval[]
|
|
|
49
54
|
raw.rawItem && typeof raw.rawItem === "object"
|
|
50
55
|
? (raw.rawItem as Record<string, unknown>)
|
|
51
56
|
: {};
|
|
57
|
+
const display = parseToolDisplayMetadata(raw.display);
|
|
52
58
|
return {
|
|
53
59
|
// Mirror the runtime's canonical interruption identity before retaining
|
|
54
60
|
// the legacy top-level callId fallback for already-normalized payloads.
|
|
55
61
|
id: String(rawItem.callId ?? rawItem.id ?? raw.id ?? raw.callId ?? raw.name ?? index),
|
|
56
62
|
name: String(raw.name ?? raw.toolName ?? rawItem.name ?? "approval"),
|
|
63
|
+
...(display ? { display } : {}),
|
|
57
64
|
arguments: raw.arguments ?? rawItem.arguments,
|
|
58
65
|
raw: approval,
|
|
59
66
|
};
|
package/src/artifacts.ts
CHANGED
|
@@ -1,3 +1,42 @@
|
|
|
1
|
+
export { inlineHtmlDocument } from "./components/artifacts/inline-html-document";
|
|
2
|
+
export { isRetainedImageContentType, useRetainedImageObjectUrl } from "./timeline/retained-image";
|
|
3
|
+
export {
|
|
4
|
+
ArtifactBadge,
|
|
5
|
+
ArtifactLabelsProvider,
|
|
6
|
+
DEFAULT_ARTIFACT_LABELS,
|
|
7
|
+
useArtifactLabels,
|
|
8
|
+
type ArtifactLabels,
|
|
9
|
+
ArtifactButton,
|
|
10
|
+
ArtifactLoading,
|
|
11
|
+
ArtifactProblem,
|
|
12
|
+
ArtifactSelect,
|
|
13
|
+
ArtifactViewerHeader,
|
|
14
|
+
artifactKindIcon,
|
|
15
|
+
artifactKindSubtitle,
|
|
16
|
+
artifactLoadErrorMessage,
|
|
17
|
+
artifactLoadErrorView,
|
|
18
|
+
type ArtifactKind,
|
|
19
|
+
type ArtifactLoadErrorKind,
|
|
20
|
+
type ArtifactLoadErrorView,
|
|
21
|
+
ArtifactSandbox,
|
|
22
|
+
type ArtifactSandboxProps,
|
|
23
|
+
DeferredChatMedia,
|
|
24
|
+
SiteView,
|
|
25
|
+
type SiteViewProps,
|
|
26
|
+
ChatInteractiveBlock,
|
|
27
|
+
type ChatInteractiveBlockProps,
|
|
28
|
+
type SiteSnapshotClient,
|
|
29
|
+
type SiteToolBridgeFactory,
|
|
30
|
+
type SiteToolScope,
|
|
31
|
+
EditableArtifactView,
|
|
32
|
+
type EditableArtifactRuntimes,
|
|
33
|
+
type EditableArtifactViewProps,
|
|
34
|
+
type OpenedEditableArtifact,
|
|
35
|
+
SessionArtifactViewer,
|
|
36
|
+
type SessionArtifactTarget,
|
|
37
|
+
type SessionArtifactViewerLabels,
|
|
38
|
+
type SessionArtifactViewerProps,
|
|
39
|
+
} from "./components/artifacts";
|
|
1
40
|
/** Public artifact surfaces. Import from `@opengeni/react/artifacts`. */
|
|
2
41
|
export {
|
|
3
42
|
ArtifactSurface,
|
|
@@ -18,6 +57,8 @@ export {
|
|
|
18
57
|
PresentationProjectionEditor,
|
|
19
58
|
PublishedHtmlArtifactFrame,
|
|
20
59
|
PUBLISHED_HTML_ARTIFACT_IFRAME_SANDBOX,
|
|
60
|
+
openGeniSiteBridgePortFromBootstrap,
|
|
61
|
+
publishedHtmlArtifactDocument,
|
|
21
62
|
SpreadsheetArtifactSurface,
|
|
22
63
|
SpreadsheetGrid,
|
|
23
64
|
SpreadsheetProjectionGrid,
|
|
@@ -62,6 +103,7 @@ export {
|
|
|
62
103
|
type PresentationProjectionConnector,
|
|
63
104
|
type PresentationProjectionEditorProps,
|
|
64
105
|
type PublishedHtmlArtifactFrameProps,
|
|
106
|
+
type PublishedHtmlArtifactToolBridge,
|
|
65
107
|
type PresentationProjectionElementMetadata,
|
|
66
108
|
type PresentationProjectionElement,
|
|
67
109
|
type PresentationProjectionFill,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Service marks
|
|
2
|
+
|
|
3
|
+
These provider-owned marks identify the connected service; they do not imply endorsement.
|
|
4
|
+
|
|
5
|
+
- `gmail.ico`: existing Gmail service mark.
|
|
6
|
+
- `outlook.ico`: https://outlook.live.com/favicon.ico (retrieved 2026-09-20).
|
|
7
|
+
|
|
8
|
+
The React package bundles these assets so embedding hosts do not need matching public paths or make third-party image requests for these marks.
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
2
|
+
import { AlertTriangleIcon, CheckIcon, Loader2Icon, PlusIcon } from "lucide-react";
|
|
3
|
+
|
|
4
|
+
export type CapabilityCatalogStatus =
|
|
5
|
+
| "available"
|
|
6
|
+
| "added"
|
|
7
|
+
| "attention"
|
|
8
|
+
| "unavailable"
|
|
9
|
+
| "loading";
|
|
10
|
+
|
|
11
|
+
export type CapabilityCatalogRowProps = Omit<
|
|
12
|
+
ComponentPropsWithoutRef<"button">,
|
|
13
|
+
"children" | "onClick" | "name"
|
|
14
|
+
> & {
|
|
15
|
+
name: string;
|
|
16
|
+
description?: string | undefined;
|
|
17
|
+
icon?: ReactNode;
|
|
18
|
+
status?: CapabilityCatalogStatus;
|
|
19
|
+
statusLabel?: string | undefined;
|
|
20
|
+
/** Preserve opaque host status text when adopting this row without typed health. */
|
|
21
|
+
showStatusLabel?: boolean;
|
|
22
|
+
onOpen: () => void;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const labels: Record<CapabilityCatalogStatus, string> = {
|
|
26
|
+
available: "Available to add",
|
|
27
|
+
added: "Added",
|
|
28
|
+
attention: "Needs attention",
|
|
29
|
+
unavailable: "Unavailable",
|
|
30
|
+
loading: "Working",
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** A display-only state. The entire catalog row is the action, never this glyph. */
|
|
34
|
+
export function CapabilityCatalogIndicator({
|
|
35
|
+
status = "available",
|
|
36
|
+
label,
|
|
37
|
+
showLabel = false,
|
|
38
|
+
}: {
|
|
39
|
+
status?: CapabilityCatalogStatus;
|
|
40
|
+
label?: string | undefined;
|
|
41
|
+
showLabel?: boolean;
|
|
42
|
+
}) {
|
|
43
|
+
const Icon =
|
|
44
|
+
status === "added"
|
|
45
|
+
? CheckIcon
|
|
46
|
+
: status === "attention" || status === "unavailable"
|
|
47
|
+
? AlertTriangleIcon
|
|
48
|
+
: status === "loading"
|
|
49
|
+
? Loader2Icon
|
|
50
|
+
: PlusIcon;
|
|
51
|
+
return (
|
|
52
|
+
<span className="og-capability-catalog-indicator" data-status={status}>
|
|
53
|
+
<Icon aria-hidden="true" />
|
|
54
|
+
<span
|
|
55
|
+
className={
|
|
56
|
+
showLabel || status === "attention" || status === "unavailable"
|
|
57
|
+
? "og-capability-catalog-notice"
|
|
58
|
+
: "og-capability-catalog-sr-only"
|
|
59
|
+
}
|
|
60
|
+
>
|
|
61
|
+
{label ?? labels[status]}
|
|
62
|
+
</span>
|
|
63
|
+
</span>
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** Shared by connections, skills, and plugins: one row, one focus target, one action. */
|
|
68
|
+
export function CapabilityCatalogRow({
|
|
69
|
+
name,
|
|
70
|
+
description,
|
|
71
|
+
icon,
|
|
72
|
+
status = "available",
|
|
73
|
+
statusLabel,
|
|
74
|
+
showStatusLabel = false,
|
|
75
|
+
onOpen,
|
|
76
|
+
className = "",
|
|
77
|
+
...props
|
|
78
|
+
}: CapabilityCatalogRowProps) {
|
|
79
|
+
return (
|
|
80
|
+
<button
|
|
81
|
+
{...props}
|
|
82
|
+
type="button"
|
|
83
|
+
className={`og-capability-catalog-row ${className}`}
|
|
84
|
+
onClick={onOpen}
|
|
85
|
+
>
|
|
86
|
+
{icon ? <span className="og-capability-catalog-icon">{icon}</span> : null}
|
|
87
|
+
<span className="og-capability-catalog-copy">
|
|
88
|
+
<strong>{name}</strong>
|
|
89
|
+
{description ? <span>{description}</span> : null}
|
|
90
|
+
</span>
|
|
91
|
+
<CapabilityCatalogIndicator status={status} label={statusLabel} showLabel={showStatusLabel} />
|
|
92
|
+
</button>
|
|
93
|
+
);
|
|
94
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CapabilityCatalogItem } from "@opengeni/sdk";
|
|
2
|
+
import gmailLogo from "./assets/gmail.ico";
|
|
3
|
+
|
|
4
|
+
/** Passive catalogue identity, shared by embedded and console surfaces. */
|
|
5
|
+
export function capabilityLogoFallback(
|
|
6
|
+
item: Pick<CapabilityCatalogItem, "id"> &
|
|
7
|
+
Partial<Pick<CapabilityCatalogItem, "metadata" | "mcpUrl">>,
|
|
8
|
+
): string | null {
|
|
9
|
+
if (
|
|
10
|
+
item.id.startsWith("mcp:integrations-sh:gmailmcp-googleapis-com-") ||
|
|
11
|
+
item.mcpUrl === "https://gmailmcp.googleapis.com/mcp/v1"
|
|
12
|
+
)
|
|
13
|
+
return gmailLogo;
|
|
14
|
+
const original = item.metadata?.originalLogoUrl;
|
|
15
|
+
if (typeof original !== "string") return null;
|
|
16
|
+
try {
|
|
17
|
+
const url = new URL(original);
|
|
18
|
+
return url.protocol === "https:" || url.protocol === "http:" ? url.href : null;
|
|
19
|
+
} catch {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
}
|
package/src/client.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { OpenGeniClient } from "@opengeni/sdk";
|
|
|
5
5
|
* pass the real SDK client, a proxy-backed client that routes through their
|
|
6
6
|
* own API, or a scripted client in tests/demos.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
type SessionClientMethods = Pick<
|
|
9
9
|
OpenGeniClient,
|
|
10
10
|
// Deployment config (host-exposed models, auth, upload limits)
|
|
11
11
|
| "getClientConfig"
|
|
@@ -34,6 +34,7 @@ export type SessionClientLike = Pick<
|
|
|
34
34
|
| "deleteQueueItem"
|
|
35
35
|
| "getComposerDraft"
|
|
36
36
|
| "saveComposerDraft"
|
|
37
|
+
| "submitComposerDraft"
|
|
37
38
|
| "listTurns"
|
|
38
39
|
// Goal
|
|
39
40
|
| "getGoal"
|
|
@@ -66,6 +67,7 @@ export type SessionClientLike = Pick<
|
|
|
66
67
|
| "listChannels"
|
|
67
68
|
| "createChannel"
|
|
68
69
|
| "updateChannel"
|
|
70
|
+
| "reorderChannels"
|
|
69
71
|
| "deleteChannel"
|
|
70
72
|
| "updateSessionChannel"
|
|
71
73
|
// Rigs
|
|
@@ -82,15 +84,6 @@ export type SessionClientLike = Pick<
|
|
|
82
84
|
| "verifyRigChange"
|
|
83
85
|
| "promoteRigChange"
|
|
84
86
|
| "verifyRig"
|
|
85
|
-
// Packs
|
|
86
|
-
| "listPacks"
|
|
87
|
-
| "registerPack"
|
|
88
|
-
| "enablePack"
|
|
89
|
-
| "previewPackInstallation"
|
|
90
|
-
| "installPack"
|
|
91
|
-
| "previewPackUninstall"
|
|
92
|
-
| "uninstallPack"
|
|
93
|
-
| "deletePack"
|
|
94
87
|
// Workspaces + billing
|
|
95
88
|
| "listWorkspaces"
|
|
96
89
|
| "createWorkspace"
|
|
@@ -187,7 +180,20 @@ export type SessionClientLike = Pick<
|
|
|
187
180
|
| "terminalPtyResize"
|
|
188
181
|
| "terminalPtyClose"
|
|
189
182
|
> &
|
|
190
|
-
Partial<
|
|
183
|
+
Partial<
|
|
184
|
+
Pick<
|
|
185
|
+
OpenGeniClient,
|
|
186
|
+
| "createVideoArtifactPlaybackSource"
|
|
187
|
+
| "streamWorkspaceLiveEvents"
|
|
188
|
+
| "listSessionBackgroundCommands"
|
|
189
|
+
| "cancelSessionBackgroundCommand"
|
|
190
|
+
| "getComputerInputPosture"
|
|
191
|
+
>
|
|
192
|
+
>;
|
|
193
|
+
|
|
194
|
+
/** Compact list transport is optional for scripted and older clients. */
|
|
195
|
+
export type SessionClientLike = SessionClientMethods &
|
|
196
|
+
Partial<Pick<OpenGeniClient, "listSessionSummaryPage">>;
|
|
191
197
|
|
|
192
198
|
/**
|
|
193
199
|
* Tenant-safe client surface required by the session-only React entry.
|
|
@@ -205,6 +211,7 @@ export type EmbeddedSessionClientLike = Pick<
|
|
|
205
211
|
| "streamEvents"
|
|
206
212
|
| "getComposerDraft"
|
|
207
213
|
| "saveComposerDraft"
|
|
214
|
+
| "submitComposerDraft"
|
|
208
215
|
| "sendMessage"
|
|
209
216
|
| "steerMessage"
|
|
210
217
|
| "getQueue"
|
|
@@ -235,7 +242,8 @@ export type EmbeddedSessionLineageClientLike = EmbeddedSessionEventClientLike &
|
|
|
235
242
|
Pick<OpenGeniClient, "getSessionLineage">;
|
|
236
243
|
|
|
237
244
|
/** Exact client surface required by {@link useFileAttachments}. */
|
|
238
|
-
export type EmbeddedFileAttachmentClientLike = Pick<OpenGeniClient, "uploadFile"
|
|
245
|
+
export type EmbeddedFileAttachmentClientLike = Pick<OpenGeniClient, "uploadFile"> &
|
|
246
|
+
Partial<Pick<OpenGeniClient, "createFileDownloadUrl">>;
|
|
239
247
|
|
|
240
248
|
/** Exact client surface required by structured human-input hooks. */
|
|
241
249
|
export type EmbeddedHumanInputSessionClientLike = EmbeddedSessionEventClientLike &
|
|
@@ -338,7 +346,8 @@ export type EmbeddedComputerInteractionClientLike = Pick<
|
|
|
338
346
|
| "heartbeatComputerSession"
|
|
339
347
|
| "endComputerSession"
|
|
340
348
|
> &
|
|
341
|
-
EmbeddedInterventionClientLike
|
|
349
|
+
EmbeddedInterventionClientLike &
|
|
350
|
+
Partial<Pick<OpenGeniClient, "getComputerInputPosture">>;
|
|
342
351
|
|
|
343
352
|
/** Complete public Browser + Computer interaction surface. */
|
|
344
353
|
export type EmbeddedInteractionClientLike = EmbeddedBrowserInteractionClientLike &
|
package/src/commands/registry.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Permission } from "@opengeni/sdk";
|
|
2
|
+
import { formatErrorMessage } from "@opengeni/sdk";
|
|
2
3
|
import type { CommandContext, SlashArg, SlashCommand } from "./types";
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -182,7 +183,10 @@ export const defaultCommands: readonly SlashCommand[] = [
|
|
|
182
183
|
});
|
|
183
184
|
return { status: "ok", message: action === "pause" ? "Goal paused." : "Goal resumed." };
|
|
184
185
|
} catch (cause) {
|
|
185
|
-
return {
|
|
186
|
+
return {
|
|
187
|
+
status: "error",
|
|
188
|
+
message: commandErrorMessage(ctx, cause, goalErrorMessage(cause, action)),
|
|
189
|
+
};
|
|
186
190
|
}
|
|
187
191
|
},
|
|
188
192
|
},
|
|
@@ -197,7 +201,7 @@ export const defaultCommands: readonly SlashCommand[] = [
|
|
|
197
201
|
const result = await ctx.client.compactSessionContext(ctx.workspaceId, sessionId);
|
|
198
202
|
return { status: "ok", message: result.message };
|
|
199
203
|
} catch (cause) {
|
|
200
|
-
return { status: "error", message:
|
|
204
|
+
return { status: "error", message: commandErrorMessage(ctx, cause) };
|
|
201
205
|
}
|
|
202
206
|
},
|
|
203
207
|
},
|
|
@@ -219,22 +223,21 @@ export const defaultCommands: readonly SlashCommand[] = [
|
|
|
219
223
|
await ctx.client.clearSessionContext(ctx.workspaceId, sessionId);
|
|
220
224
|
return { status: "ok", message: "Context cleared." };
|
|
221
225
|
} catch (cause) {
|
|
222
|
-
return {
|
|
226
|
+
return {
|
|
227
|
+
status: "error",
|
|
228
|
+
message: commandErrorMessage(ctx, cause, clearErrorMessage(cause)),
|
|
229
|
+
};
|
|
223
230
|
}
|
|
224
231
|
},
|
|
225
232
|
},
|
|
226
233
|
];
|
|
227
234
|
|
|
228
|
-
function
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
) {
|
|
235
|
-
return (cause as { message: string }).message;
|
|
236
|
-
}
|
|
237
|
-
return undefined;
|
|
235
|
+
function commandErrorMessage(
|
|
236
|
+
ctx: CommandContext,
|
|
237
|
+
cause: unknown,
|
|
238
|
+
message = formatErrorMessage(cause),
|
|
239
|
+
): string {
|
|
240
|
+
return ctx.formatError?.(cause, message) || message;
|
|
238
241
|
}
|
|
239
242
|
|
|
240
243
|
function statusCode(cause: unknown): number | undefined {
|
|
@@ -259,12 +262,12 @@ function goalErrorMessage(cause: unknown, action: "pause" | "resume"): string {
|
|
|
259
262
|
? "Only a paused goal can be resumed."
|
|
260
263
|
: "Goal is already in a terminal state.";
|
|
261
264
|
}
|
|
262
|
-
return
|
|
265
|
+
return formatErrorMessage(cause);
|
|
263
266
|
}
|
|
264
267
|
|
|
265
268
|
function clearErrorMessage(cause: unknown): string {
|
|
266
269
|
if (statusCode(cause) === 409) {
|
|
267
270
|
return "Pause the session and wait for the current inference to settle, then clear context.";
|
|
268
271
|
}
|
|
269
|
-
return
|
|
272
|
+
return formatErrorMessage(cause);
|
|
270
273
|
}
|
package/src/commands/types.ts
CHANGED
|
@@ -41,6 +41,8 @@ export type CommandContext = {
|
|
|
41
41
|
permissions: Permission[];
|
|
42
42
|
/** Surface a transient ok/error notice in the composer. */
|
|
43
43
|
notice: (notice: Notice) => void;
|
|
44
|
+
/** Optional presentation hook for native command failures; never rewrites command content. */
|
|
45
|
+
formatError?: ((error: unknown, defaultMessage: string) => string) | undefined;
|
|
44
46
|
/** Open the in-composer /help panel (rendered from the registry). */
|
|
45
47
|
openHelp: () => void;
|
|
46
48
|
/**
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
|
|
3
|
+
/** AnthropicMark: Simple Icons, CC0; https://github.com/simple-icons/simple-icons */
|
|
4
|
+
export function AnthropicMark(props: SVGProps<SVGSVGElement>) {
|
|
5
|
+
return (
|
|
6
|
+
<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" {...props}>
|
|
7
|
+
<path d="M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z" />
|
|
8
|
+
</svg>
|
|
9
|
+
);
|
|
10
|
+
}
|