@opengeni/react 0.48.0 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +138 -2
- package/dist/artifacts-document.d.ts +3 -0
- package/dist/artifacts-document.js +17 -0
- package/dist/artifacts-document.js.map +1 -0
- package/dist/artifacts-presentation.d.ts +3 -0
- package/dist/artifacts-presentation.js +17 -0
- package/dist/artifacts-presentation.js.map +1 -0
- package/dist/artifacts-spreadsheet.d.ts +3 -0
- package/dist/artifacts-spreadsheet.js +17 -0
- package/dist/artifacts-spreadsheet.js.map +1 -0
- package/dist/artifacts.d.ts +2 -0
- package/dist/artifacts.js +199 -0
- package/dist/artifacts.js.map +1 -0
- package/dist/{chunk-NJ7M2B6Z.js → chunk-5UQPNLIO.js} +16 -8
- package/dist/{chunk-NJ7M2B6Z.js.map → chunk-5UQPNLIO.js.map} +1 -1
- package/dist/{chunk-LHLYWG5R.js → chunk-6KLX2RH5.js} +461 -38
- package/dist/chunk-6KLX2RH5.js.map +1 -0
- package/dist/chunk-7WCLAEFV.js +2828 -0
- package/dist/chunk-7WCLAEFV.js.map +1 -0
- package/dist/{chunk-I4MPFDRP.js → chunk-B6WPZSTT.js} +104 -104
- package/dist/{chunk-I4MPFDRP.js.map → chunk-B6WPZSTT.js.map} +1 -1
- package/dist/{chunk-EKZH6IDG.js → chunk-C5ZPSSS5.js} +111 -1
- package/dist/chunk-C5ZPSSS5.js.map +1 -0
- package/dist/{chunk-OL6QVXGF.js → chunk-HA46CYQK.js} +152 -8
- package/dist/chunk-HA46CYQK.js.map +1 -0
- package/dist/chunk-HUIKIDM5.js +2148 -0
- package/dist/chunk-HUIKIDM5.js.map +1 -0
- package/dist/{chunk-FWXGSNXT.js → chunk-IGC6A2ZI.js} +585 -34
- package/dist/chunk-IGC6A2ZI.js.map +1 -0
- package/dist/chunk-JVYQRRC4.js +53 -0
- package/dist/chunk-JVYQRRC4.js.map +1 -0
- package/dist/chunk-KCGXPP5V.js +157 -0
- package/dist/chunk-KCGXPP5V.js.map +1 -0
- package/dist/chunk-LLOLUHVG.js +5937 -0
- package/dist/chunk-LLOLUHVG.js.map +1 -0
- package/dist/{chunk-WYA65Y3F.js → chunk-MKPIAGVL.js} +13 -3
- package/dist/chunk-MKPIAGVL.js.map +1 -0
- package/dist/chunk-PEI6RANI.js +3234 -0
- package/dist/chunk-PEI6RANI.js.map +1 -0
- package/dist/chunk-R3AZOAB5.js +933 -0
- package/dist/chunk-R3AZOAB5.js.map +1 -0
- package/dist/{chunk-O4VXOBGF.js → chunk-WSK7G5LE.js} +70 -2
- package/dist/chunk-WSK7G5LE.js.map +1 -0
- package/dist/{chunk-23EJ676W.js → chunk-XBZWOM2K.js} +9 -4
- package/dist/chunk-XBZWOM2K.js.map +1 -0
- package/dist/{chunk-XCNTXWBB.js → chunk-Y7OEDUJ5.js} +856 -338
- package/dist/chunk-Y7OEDUJ5.js.map +1 -0
- package/dist/client.d.ts +10 -2
- package/dist/clipboard.d.ts +1 -0
- package/dist/clipboard.js +7 -0
- package/dist/clipboard.js.map +1 -0
- package/dist/commands/index.d.ts +3 -3
- package/dist/commands/registry.d.ts +1 -1
- package/dist/commands/types.d.ts +1 -1
- package/dist/components/approval-surface.d.ts +2 -2
- package/dist/components/artifacts/artifact-surface.d.ts +18 -0
- package/dist/components/artifacts/document-editor.d.ts +172 -0
- package/dist/components/artifacts/editable-artifact-ui.d.ts +13 -0
- package/dist/components/artifacts/editable-artifact-workbench.d.ts +49 -0
- package/dist/components/artifacts/editable-document.d.ts +24 -0
- package/dist/components/artifacts/editable-presentation.d.ts +24 -0
- package/dist/components/artifacts/editable-spreadsheet.d.ts +32 -0
- package/dist/components/artifacts/index.d.ts +9 -0
- package/dist/components/artifacts/presentation-editor.d.ts +297 -0
- package/dist/components/artifacts/published-html-artifact-frame.d.ts +14 -0
- package/dist/components/artifacts/spreadsheet-canvas.d.ts +120 -0
- package/dist/components/artifacts/spreadsheet-grid.d.ts +113 -0
- package/dist/components/browser-input.d.ts +7 -0
- package/dist/components/browser-viewer.d.ts +30 -0
- package/dist/components/chat-composer.d.ts +8 -8
- package/dist/components/code-editor.d.ts +25 -3
- package/dist/components/command-palette.d.ts +2 -2
- package/dist/components/composer-transcription-control.d.ts +2 -2
- package/dist/components/composer.d.ts +17 -17
- package/dist/components/computer-viewer.d.ts +24 -0
- package/dist/components/copy-button.d.ts +2 -2
- package/dist/components/desktop-viewer.d.ts +50 -22
- package/dist/components/diff-view.d.ts +1 -1
- package/dist/components/enrollment-consent.d.ts +1 -1
- package/dist/components/enrollment-device-flow.d.ts +1 -1
- package/dist/components/file-browser.d.ts +2 -2
- package/dist/components/fleet-tile.d.ts +1 -1
- package/dist/components/generated-video-player.d.ts +10 -0
- package/dist/components/human-input-form.d.ts +1 -1
- package/dist/components/human-input-surface.d.ts +2 -2
- package/dist/components/interaction-intervention-banner.d.ts +11 -0
- package/dist/components/interactive-workbench-viewers.d.ts +2 -0
- package/dist/components/machine-card.d.ts +2 -2
- package/dist/components/machine-dock-bar.d.ts +3 -3
- package/dist/components/machine-health-pill.d.ts +2 -2
- package/dist/components/machine-input-display.d.ts +1 -1
- package/dist/components/machine-metrics.d.ts +2 -2
- package/dist/components/machine-status-pill.d.ts +4 -4
- package/dist/components/machines/health.d.ts +1 -1
- package/dist/components/machines/machine-detail.d.ts +3 -3
- package/dist/components/machines/metric-history-chart.d.ts +1 -1
- package/dist/components/machines/metric-sparkline.d.ts +2 -2
- package/dist/components/machines/series.d.ts +2 -2
- package/dist/components/machines-dashboard.d.ts +2 -2
- package/dist/components/markdown.d.ts +1 -1
- package/dist/components/message-timeline.d.ts +12 -5
- package/dist/components/model-picker.d.ts +2 -2
- package/dist/components/model-policy-picker.d.ts +7 -7
- package/dist/components/pierre-diff.d.ts +1 -1
- package/dist/components/pierre-file.d.ts +1 -1
- package/dist/components/queue-draft-policy.d.ts +1 -1
- package/dist/components/queue-surface-implementation.d.ts +3 -3
- package/dist/components/queue-surface-state.d.ts +4 -4
- package/dist/components/queue-surface.d.ts +5 -5
- package/dist/components/sandbox-files.d.ts +3 -3
- package/dist/components/sandbox-terminal.d.ts +24 -4
- package/dist/components/sandbox-workspace.d.ts +28 -9
- package/dist/components/session-chrome.d.ts +4 -4
- package/dist/components/session-status.d.ts +2 -2
- package/dist/components/timeline-annotation-selection.d.ts +9 -0
- package/dist/components/timeline-annotations-dialog.d.ts +16 -0
- package/dist/components/timeline-annotations.d.ts +13 -0
- package/dist/components/tooltip.d.ts +4 -4
- package/dist/components/user-message-body.d.ts +2 -2
- package/dist/components/workbench-changes.d.ts +2 -2
- package/dist/components/workspace-dock.d.ts +1 -1
- package/dist/composer.d.ts +11 -11
- package/dist/composer.js +7 -7
- package/dist/hooks/internal.d.ts +1 -1
- package/dist/hooks/use-attached-browsers.d.ts +21 -0
- package/dist/hooks/use-auth-runs.d.ts +32 -0
- package/dist/hooks/use-available-models.d.ts +2 -2
- package/dist/hooks/use-billing-usage.d.ts +1 -1
- package/dist/hooks/use-browser-downloads.d.ts +25 -0
- package/dist/hooks/use-browser-frame-stream.d.ts +28 -0
- package/dist/hooks/use-browser-identities.d.ts +30 -0
- package/dist/hooks/use-browser-session.d.ts +29 -0
- package/dist/hooks/use-browser-sessions.d.ts +32 -0
- package/dist/hooks/use-channels.d.ts +26 -0
- package/dist/hooks/use-codex-accounts.d.ts +2 -2
- package/dist/hooks/use-composer.d.ts +36 -9
- package/dist/hooks/use-computer-frame-stream.d.ts +24 -0
- package/dist/hooks/use-computer-session.d.ts +29 -0
- package/dist/hooks/use-computer-sessions.d.ts +28 -0
- package/dist/hooks/use-desktop-stream.d.ts +5 -1
- package/dist/hooks/use-environments.d.ts +1 -1
- package/dist/hooks/use-file-attachments.d.ts +1 -1
- package/dist/hooks/use-goal.d.ts +2 -2
- package/dist/hooks/use-human-input.d.ts +2 -2
- package/dist/hooks/use-interaction-interventions.d.ts +27 -0
- package/dist/hooks/use-interaction-invalidation.d.ts +19 -0
- package/dist/hooks/use-last-started-turn-policy.d.ts +2 -2
- package/dist/hooks/use-machine-chip.d.ts +2 -2
- package/dist/hooks/use-machines.d.ts +4 -4
- package/dist/hooks/use-network-routes.d.ts +25 -0
- package/dist/hooks/use-packs.d.ts +7 -2
- package/dist/hooks/use-rigs.d.ts +1 -1
- package/dist/hooks/use-sandbox-files.d.ts +6 -4
- package/dist/hooks/use-sandbox-git.d.ts +6 -5
- package/dist/hooks/use-sandbox-terminal.d.ts +1 -1
- package/dist/hooks/use-scheduled-tasks.d.ts +1 -1
- package/dist/hooks/use-session-capabilities.d.ts +5 -4
- package/dist/hooks/use-session-control.d.ts +1 -1
- package/dist/hooks/use-session-events.d.ts +2 -2
- package/dist/hooks/use-session-lineage.d.ts +1 -1
- package/dist/hooks/use-session-mcp-approval-policy.d.ts +2 -2
- package/dist/hooks/use-session.d.ts +2 -2
- package/dist/hooks/use-site-auth-connections.d.ts +25 -0
- package/dist/hooks/use-slash-commands.d.ts +1 -1
- package/dist/hooks/use-supergrok-accounts.d.ts +26 -0
- package/dist/hooks/use-terminal-stream.d.ts +11 -2
- package/dist/hooks/use-turn-queue.d.ts +2 -2
- package/dist/hooks/use-video-artifact-playback.d.ts +9 -0
- package/dist/hooks/use-voice-input.d.ts +1 -1
- package/dist/hooks/use-workspace-capture.d.ts +1 -1
- package/dist/hooks/use-workspace-edit.d.ts +1 -1
- package/dist/hooks/use-workspace-sessions.d.ts +1 -1
- package/dist/hooks/use-workspaces.d.ts +1 -1
- package/dist/index.d.ts +162 -155
- package/dist/index.js +1822 -1703
- package/dist/index.js.map +1 -1
- package/dist/interaction.d.ts +33 -0
- package/dist/interaction.js +550 -0
- package/dist/interaction.js.map +1 -0
- package/dist/interactive-workbench-viewers-TOHBXJEE.js +15 -0
- package/dist/interactive-workbench-viewers-TOHBXJEE.js.map +1 -0
- package/dist/lib/host-platform.d.ts +5 -0
- package/dist/lib/relay-wire.d.ts +24 -1
- package/dist/lib/sandbox-liveness.d.ts +9 -0
- package/dist/lib/terminal-capability.d.ts +5 -0
- package/dist/lib/xterm-theme.d.ts +1 -1
- package/dist/machines.d.ts +30 -30
- package/dist/machines.js +2 -2
- package/dist/model-policy.d.ts +1 -1
- package/dist/model-policy.js +1 -1
- package/dist/provider.d.ts +6 -5
- package/dist/{queue-surface-implementation-U5JFG7HT.js → queue-surface-implementation-2KVJTYXH.js} +100 -48
- package/dist/queue-surface-implementation-2KVJTYXH.js.map +1 -0
- package/dist/realtime/dropdown-menu.d.ts +8 -8
- package/dist/realtime/realtime-control.d.ts +8 -8
- package/dist/realtime.d.ts +4 -4
- package/dist/realtime.js +38 -11
- package/dist/realtime.js.map +1 -1
- package/dist/session-context.d.ts +28 -2
- package/dist/session-ui.d.ts +14 -14
- package/dist/session-ui.js +5 -4
- package/dist/session.d.ts +28 -28
- package/dist/session.js +10 -10
- package/dist/timeline/activity-rail.d.ts +5 -3
- package/dist/timeline/disclosure-context.d.ts +1 -1
- package/dist/timeline/fleet-decision-projection.d.ts +1 -1
- package/dist/timeline/fleet-decision-row.d.ts +3 -3
- package/dist/timeline/index.d.ts +19 -19
- package/dist/timeline/parsers.d.ts +4 -1
- package/dist/timeline/projection.d.ts +3 -3
- package/dist/timeline/registry.d.ts +8 -2
- package/dist/timeline/screenshot-lightbox.d.ts +2 -2
- package/dist/timeline/shared.d.ts +21 -10
- package/dist/timeline/tool-diff.d.ts +2 -2
- package/dist/timeline/tool-renderers.d.ts +1 -1
- package/dist/timeline/turn-summary.d.ts +3 -3
- package/dist/timeline/types.d.ts +44 -3
- package/dist/timeline-annotation-selection-3L7LHGG2.js +187 -0
- package/dist/timeline-annotation-selection-3L7LHGG2.js.map +1 -0
- package/dist/timeline-annotations-dialog-U7EVLR75.js +196 -0
- package/dist/timeline-annotations-dialog-U7EVLR75.js.map +1 -0
- package/package.json +36 -7
- package/src/artifacts-document.ts +31 -0
- package/src/artifacts-presentation.ts +36 -0
- package/src/artifacts-spreadsheet.ts +21 -0
- package/src/artifacts.ts +89 -0
- package/src/client.ts +157 -1
- package/src/clipboard.ts +2 -0
- package/src/components/artifacts/artifact-surface.tsx +93 -0
- package/src/components/artifacts/document-editor.tsx +2255 -0
- package/src/components/artifacts/editable-artifact-ui.tsx +89 -0
- package/src/components/artifacts/editable-artifact-workbench.tsx +203 -0
- package/src/components/artifacts/editable-document.tsx +657 -0
- package/src/components/artifacts/editable-presentation.tsx +1020 -0
- package/src/components/artifacts/editable-spreadsheet.tsx +733 -0
- package/src/components/artifacts/index.ts +104 -0
- package/src/components/artifacts/presentation-editor.tsx +3148 -0
- package/src/components/artifacts/published-html-artifact-frame.tsx +38 -0
- package/src/components/artifacts/spreadsheet-canvas.ts +799 -0
- package/src/components/artifacts/spreadsheet-grid.tsx +2129 -0
- package/src/components/browser-input.ts +65 -0
- package/src/components/browser-viewer.tsx +2702 -0
- package/src/components/chat-composer.tsx +13 -0
- package/src/components/code-editor.tsx +89 -30
- package/src/components/composer-transcription-control.tsx +10 -6
- package/src/components/computer-viewer.tsx +1636 -0
- package/src/components/desktop-viewer.tsx +215 -74
- package/src/components/generated-video-player.tsx +89 -0
- package/src/components/interaction-intervention-banner.tsx +99 -0
- package/src/components/interactive-workbench-viewers.ts +2 -0
- package/src/components/machine-input-display.ts +3 -0
- package/src/components/machines/machine-detail.tsx +1 -1
- package/src/components/message-timeline.tsx +289 -32
- package/src/components/model-policy-picker.tsx +15 -0
- package/src/components/queue-surface-implementation.tsx +116 -60
- package/src/components/sandbox-files.tsx +2 -2
- package/src/components/sandbox-terminal.tsx +128 -46
- package/src/components/sandbox-workspace.tsx +256 -90
- package/src/components/session-chrome.tsx +53 -13
- package/src/components/timeline-annotation-selection.tsx +221 -0
- package/src/components/timeline-annotations-dialog.tsx +213 -0
- package/src/components/timeline-annotations.tsx +84 -0
- package/src/components/workbench-changes.tsx +188 -31
- package/src/components/workspace-dock.tsx +59 -5
- package/src/hooks/use-attached-browsers.ts +154 -0
- package/src/hooks/use-auth-runs.ts +278 -0
- package/src/hooks/use-browser-downloads.ts +218 -0
- package/src/hooks/use-browser-frame-stream.ts +425 -0
- package/src/hooks/use-browser-identities.ts +266 -0
- package/src/hooks/use-browser-session.ts +543 -0
- package/src/hooks/use-browser-sessions.ts +286 -0
- package/src/hooks/use-channels.ts +99 -0
- package/src/hooks/use-composer.ts +769 -24
- package/src/hooks/use-computer-frame-stream.ts +434 -0
- package/src/hooks/use-computer-session.ts +462 -0
- package/src/hooks/use-computer-sessions.ts +251 -0
- package/src/hooks/use-desktop-stream.ts +39 -7
- package/src/hooks/use-interaction-interventions.ts +242 -0
- package/src/hooks/use-interaction-invalidation.ts +66 -0
- package/src/hooks/use-machine-chip.ts +15 -3
- package/src/hooks/use-machines.ts +33 -3
- package/src/hooks/use-network-routes.ts +214 -0
- package/src/hooks/use-packs.ts +51 -0
- package/src/hooks/use-sandbox-files.ts +98 -55
- package/src/hooks/use-sandbox-git.ts +93 -38
- package/src/hooks/use-sandbox-terminal.ts +3 -2
- package/src/hooks/use-session-capabilities.ts +59 -46
- package/src/hooks/use-site-auth-connections.ts +226 -0
- package/src/hooks/use-supergrok-accounts.ts +81 -0
- package/src/hooks/use-terminal-stream.ts +359 -47
- package/src/hooks/use-video-artifact-playback.ts +28 -0
- package/src/hooks/use-workspace-edit.ts +2 -1
- package/src/index.ts +18 -0
- package/src/interaction.ts +101 -0
- package/src/lib/host-platform.ts +10 -0
- package/src/lib/relay-wire.ts +47 -4
- package/src/lib/sandbox-liveness.ts +11 -0
- package/src/lib/terminal-capability.ts +10 -0
- package/src/model-policy.ts +19 -4
- package/src/provider.tsx +133 -1
- package/src/realtime/realtime-control.tsx +34 -6
- package/src/session-context.ts +156 -1
- package/src/timeline/activity-rail.tsx +25 -3
- package/src/timeline/index.ts +3 -0
- package/src/timeline/parsers.ts +14 -1
- package/src/timeline/projection.ts +269 -14
- package/src/timeline/registry.ts +13 -1
- package/src/timeline/screenshot-lightbox.tsx +19 -9
- package/src/timeline/shared.tsx +56 -8
- package/src/timeline/tool-renderers.tsx +303 -50
- package/src/timeline/types.ts +57 -3
- package/styles/compiled.css +312 -21
- package/styles/index.css +15 -0
- package/styles/responsive.css +13 -1
- package/dist/chunk-23EJ676W.js.map +0 -1
- package/dist/chunk-EKZH6IDG.js.map +0 -1
- package/dist/chunk-FWXGSNXT.js.map +0 -1
- package/dist/chunk-LHLYWG5R.js.map +0 -1
- package/dist/chunk-O4VXOBGF.js.map +0 -1
- package/dist/chunk-OL6QVXGF.js.map +0 -1
- package/dist/chunk-WYA65Y3F.js.map +0 -1
- package/dist/chunk-XCNTXWBB.js.map +0 -1
- package/dist/fleet-decision-projection-SLNZMS42.js +0 -241
- package/dist/fleet-decision-projection-SLNZMS42.js.map +0 -1
- package/dist/queue-surface-implementation-U5JFG7HT.js.map +0 -1
package/dist/client.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { OpenGeniClient } from "@opengeni/sdk";
|
|
|
4
4
|
* pass the real SDK client, a proxy-backed client that routes through their
|
|
5
5
|
* own API, or a scripted client in tests/demos.
|
|
6
6
|
*/
|
|
7
|
-
export type SessionClientLike = Pick<OpenGeniClient, "getClientConfig" | "getSession" | "getSessionLineage" | "updateSession" | "updateSessionPin" | "listSessions" | "listSessionPage" | "sendMessage" | "steerMessage" | "pauseSession" | "resumeSession" | "sendApprovalDecision" | "listHumanInputRequests" | "getHumanInputRequest" | "submitHumanInputResponse" | "listEvents" | "streamEvents" | "getQueue" | "moveQueueItem" | "editQueueItem" | "steerQueueItem" | "deleteQueueItem" | "getComposerDraft" | "saveComposerDraft" | "listTurns" | "getGoal" | "updateGoal" | "deleteGoal" | "clearSessionContext" | "compactSessionContext" | "listScheduledTasks" | "uploadFile" | "getFile" | "createFileDownloadUrl" | "listVariableSets" | "getVariableSetVariable" | "createVariableSet" | "updateVariableSet" | "deleteVariableSet" | "setVariableSetVariable" | "deleteVariableSetVariable" | "listEnvironments" | "createEnvironment" | "updateEnvironment" | "deleteEnvironment" | "setEnvironmentVariable" | "deleteEnvironmentVariable" | "listRigs" | "createRig" | "getRig" | "updateRig" | "deleteRig" | "listRigVersions" | "activateRigVersion" | "listRigChanges" | "proposeRigChange" | "getRigChange" | "verifyRigChange" | "promoteRigChange" | "verifyRig" | "listPacks" | "registerPack" | "enablePack" | "deletePack" | "listWorkspaces" | "createWorkspace" | "updateWorkspace" | "setWorkspaceInferenceState" | "getWorkspace" | "getWorkspaceModelCatalog" | "listWorkspaceControlEvents" | "streamWorkspaceControlEvents" | "getBillingUsage" | "getClientConfig" | "getStreamCapabilities" | "acknowledgeStream" | "attachViewer" | "heartbeatViewer" | "detachViewer" | "fsList" | "fsListBatch" | "fsRead" | "fsWrite" | "fsDelete" | "fsMove" | "fsMkdir" | "gitStatus" | "gitDiff" | "gitReadBatch" | "getWorkspaceCapture" | "getWorkspaceCaptureFile" | "terminalExec" | "terminalPtyOpen" | "terminalPtyWrite" | "terminalPtyResize" | "terminalPtyClose"
|
|
7
|
+
export type SessionClientLike = Pick<OpenGeniClient, "getClientConfig" | "getSession" | "getSessionLineage" | "updateSession" | "updateSessionPin" | "listSessions" | "listSessionPage" | "sendMessage" | "steerMessage" | "pauseSession" | "resumeSession" | "sendApprovalDecision" | "listHumanInputRequests" | "getHumanInputRequest" | "submitHumanInputResponse" | "listEvents" | "streamEvents" | "getQueue" | "moveQueueItem" | "editQueueItem" | "steerQueueItem" | "deleteQueueItem" | "getComposerDraft" | "saveComposerDraft" | "listTurns" | "getGoal" | "updateGoal" | "deleteGoal" | "clearSessionContext" | "compactSessionContext" | "listScheduledTasks" | "uploadFile" | "getFile" | "createFileDownloadUrl" | "listVariableSets" | "getVariableSetVariable" | "createVariableSet" | "updateVariableSet" | "deleteVariableSet" | "setVariableSetVariable" | "deleteVariableSetVariable" | "listEnvironments" | "createEnvironment" | "updateEnvironment" | "deleteEnvironment" | "setEnvironmentVariable" | "deleteEnvironmentVariable" | "listChannels" | "createChannel" | "updateChannel" | "deleteChannel" | "updateSessionChannel" | "listRigs" | "createRig" | "getRig" | "updateRig" | "deleteRig" | "listRigVersions" | "activateRigVersion" | "listRigChanges" | "proposeRigChange" | "getRigChange" | "verifyRigChange" | "promoteRigChange" | "verifyRig" | "listPacks" | "registerPack" | "enablePack" | "previewPackInstallation" | "installPack" | "previewPackUninstall" | "uninstallPack" | "deletePack" | "listWorkspaces" | "createWorkspace" | "updateWorkspace" | "setWorkspaceInferenceState" | "getWorkspace" | "getWorkspaceModelCatalog" | "listWorkspaceControlEvents" | "streamWorkspaceControlEvents" | "streamWorkspaceInteractionRevisions" | "getBillingUsage" | "getClientConfig" | "getStreamCapabilities" | "acknowledgeStream" | "attachViewer" | "heartbeatViewer" | "detachViewer" | "listNetworkRoutes" | "getNetworkRoute" | "createNetworkRoute" | "updateNetworkRoute" | "listSiteAuthConnections" | "getSiteAuthConnection" | "createSiteAuthConnection" | "updateSiteAuthConnection" | "listAuthRuns" | "getAuthRun" | "startBrowserAuthRun" | "reportBrowserAuthRun" | "protectedBrowserAuthFill" | "verifyBrowserAuthRun" | "listInteractionInterventions" | "getInteractionIntervention" | "createInteractionIntervention" | "resolveInteractionIntervention" | "listAttachedBrowsers" | "getAttachedBrowser" | "listBrowserIdentities" | "getBrowserIdentity" | "createBrowserIdentity" | "updateBrowserIdentity" | "listBrowserRevisions" | "listBrowserSessions" | "getBrowserSession" | "readBrowserClipboard" | "listBrowserDownloads" | "getBrowserDownload" | "saveBrowserDownload" | "createBrowserSession" | "listBrowserTargets" | "openBrowserTarget" | "selectBrowserTarget" | "closeBrowserTarget" | "observeBrowserTarget" | "actInBrowser" | "getBrowserActionReceipt" | "listBrowserDiagnostics" | "attachBrowserSession" | "heartbeatBrowserSession" | "publishBrowserRevision" | "suspendBrowserSession" | "resumeBrowserSession" | "endBrowserSession" | "listComputerSessions" | "getComputerSession" | "readComputerClipboard" | "createComputerSession" | "listComputerTargets" | "observeComputerTarget" | "actInComputer" | "getComputerActionReceipt" | "attachComputerSession" | "heartbeatComputerSession" | "endComputerSession" | "fsList" | "fsListBatch" | "fsRead" | "fsWrite" | "fsDelete" | "fsMove" | "fsMkdir" | "gitStatus" | "gitDiff" | "gitReadBatch" | "getWorkspaceCapture" | "getWorkspaceCaptureFile" | "terminalExec" | "terminalPtyOpen" | "terminalPtyWrite" | "terminalPtyResize" | "terminalPtyClose"> & Partial<Pick<OpenGeniClient, "createVideoArtifactPlaybackSource" | "streamWorkspaceLiveEvents">>;
|
|
8
8
|
/**
|
|
9
9
|
* Tenant-safe client surface required by the session-only React entry.
|
|
10
10
|
*
|
|
@@ -32,4 +32,12 @@ export type EmbeddedHumanInputSessionClientLike = EmbeddedSessionEventClientLike
|
|
|
32
32
|
/** Exact client surface required by MCP approval-policy hooks. */
|
|
33
33
|
export type EmbeddedSessionMcpApprovalPolicyClientLike = EmbeddedSessionEventClientLike & Pick<OpenGeniClient, "updateSessionMcpApprovalPolicy">;
|
|
34
34
|
/** Exact client surface required by the public realtime React subpath. */
|
|
35
|
-
export type EmbeddedRealtimeSessionClientLike = Pick<OpenGeniClient, "getWorkspaceRealtimeModelCatalog" | "beginSessionRealtime" | "heartbeatSessionRealtime" | "negotiateCodexRealtimeWebrtc" | "negotiateGatewayRealtime" | "activateCodexRealtimeConnection" | "syncSessionRealtimeLedger" | "endSessionRealtime">;
|
|
35
|
+
export type EmbeddedRealtimeSessionClientLike = Pick<OpenGeniClient, "getWorkspaceRealtimeModelCatalog" | "beginSessionRealtime" | "heartbeatSessionRealtime" | "negotiateCodexRealtimeWebrtc" | "negotiateGatewayRealtime" | "negotiateXaiSubscriptionRealtime" | "activateCodexRealtimeConnection" | "syncSessionRealtimeLedger" | "endSessionRealtime">;
|
|
36
|
+
/** Exact public SDK surface required by cross-surface human interventions. */
|
|
37
|
+
export type EmbeddedInterventionClientLike = Pick<OpenGeniClient, "streamWorkspaceInteractionRevisions" | "listInteractionInterventions" | "getInteractionIntervention" | "createInteractionIntervention" | "resolveInteractionIntervention">;
|
|
38
|
+
/** Exact public SDK surface required by BrowserSession hooks and components. */
|
|
39
|
+
export type EmbeddedBrowserInteractionClientLike = Pick<OpenGeniClient, "streamWorkspaceInteractionRevisions" | "listNetworkRoutes" | "getNetworkRoute" | "createNetworkRoute" | "updateNetworkRoute" | "listSiteAuthConnections" | "getSiteAuthConnection" | "createSiteAuthConnection" | "updateSiteAuthConnection" | "listAuthRuns" | "getAuthRun" | "startBrowserAuthRun" | "reportBrowserAuthRun" | "protectedBrowserAuthFill" | "verifyBrowserAuthRun" | "listInteractionInterventions" | "getInteractionIntervention" | "createInteractionIntervention" | "resolveInteractionIntervention" | "listAttachedBrowsers" | "getAttachedBrowser" | "listBrowserIdentities" | "getBrowserIdentity" | "createBrowserIdentity" | "updateBrowserIdentity" | "listBrowserRevisions" | "listBrowserSessions" | "getBrowserSession" | "readBrowserClipboard" | "listBrowserDownloads" | "getBrowserDownload" | "saveBrowserDownload" | "createBrowserSession" | "listBrowserTargets" | "openBrowserTarget" | "selectBrowserTarget" | "closeBrowserTarget" | "observeBrowserTarget" | "actInBrowser" | "getBrowserActionReceipt" | "listBrowserDiagnostics" | "attachBrowserSession" | "heartbeatBrowserSession" | "publishBrowserRevision" | "suspendBrowserSession" | "resumeBrowserSession" | "endBrowserSession"> & EmbeddedInterventionClientLike;
|
|
40
|
+
/** Exact public SDK surface required by ComputerSession hooks and components. */
|
|
41
|
+
export type EmbeddedComputerInteractionClientLike = Pick<OpenGeniClient, "streamWorkspaceInteractionRevisions" | "listComputerSessions" | "getComputerSession" | "readComputerClipboard" | "createComputerSession" | "listComputerTargets" | "observeComputerTarget" | "actInComputer" | "getComputerActionReceipt" | "attachComputerSession" | "heartbeatComputerSession" | "endComputerSession"> & EmbeddedInterventionClientLike;
|
|
42
|
+
/** Complete public Browser + Computer interaction surface. */
|
|
43
|
+
export type EmbeddedInteractionClientLike = EmbeddedBrowserInteractionClientLike & EmbeddedComputerInteractionClientLike;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { copyTextToClipboard } from "./lib/clipboard.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/commands/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { CommandContext, CommandResult, Notice, SlashArg, SlashCommand } from "./types";
|
|
2
|
-
export { argHint, defaultCommands, filterCommands, firstMissingRequiredArg, hasPermission, matchCommand, parseCommandLine, } from "./registry";
|
|
3
|
-
export type { ParsedCommandLine } from "./registry";
|
|
1
|
+
export type { CommandContext, CommandResult, Notice, SlashArg, SlashCommand } from "./types.js";
|
|
2
|
+
export { argHint, defaultCommands, filterCommands, firstMissingRequiredArg, hasPermission, matchCommand, parseCommandLine, } from "./registry.js";
|
|
3
|
+
export type { ParsedCommandLine } from "./registry.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Permission } from "@opengeni/sdk";
|
|
2
|
-
import type { CommandContext, SlashArg, SlashCommand } from "./types";
|
|
2
|
+
import type { CommandContext, SlashArg, SlashCommand } from "./types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Parse a composer value into a command name + the rest. A command is
|
|
5
5
|
* recognized ONLY when the value's first character is "/" (the start token);
|
package/dist/commands/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Permission, SessionStatus } from "@opengeni/sdk";
|
|
2
|
-
import type { SessionClientLike } from "../client";
|
|
2
|
+
import type { SessionClientLike } from "../client.js";
|
|
3
3
|
/**
|
|
4
4
|
* The slash-command registry. A command is a SESSION / OPERATOR control — an
|
|
5
5
|
* action on the session or the UI (clear, compact, pause the goal, show help) —
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import type { PendingApproval } from "../approvals";
|
|
2
|
+
import type { PendingApproval } from "../approvals.js";
|
|
3
3
|
export type ApprovalSurfaceMessages = {
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
@@ -25,4 +25,4 @@ export type ApprovalSurfaceProps = {
|
|
|
25
25
|
* projection and control callbacks. It owns only presentation and duplicate
|
|
26
26
|
* click fencing; OpenGeni remains the authority for approval state.
|
|
27
27
|
*/
|
|
28
|
-
export declare function ApprovalSurface({ approvals, onApprove, onReject, responding, error, messages: overrides, renderApproval, className, }: ApprovalSurfaceProps): import("react
|
|
28
|
+
export declare function ApprovalSurface({ approvals, onApprove, onReject, responding, error, messages: overrides, renderApproval, className, }: ApprovalSurfaceProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type ArtifactModality = "spreadsheet" | "document" | "presentation";
|
|
3
|
+
export type ArtifactSurfaceProps = {
|
|
4
|
+
modality: ArtifactModality;
|
|
5
|
+
title: string;
|
|
6
|
+
subtitle?: ReactNode | undefined;
|
|
7
|
+
actions?: ReactNode | undefined;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
footer?: ReactNode | undefined;
|
|
10
|
+
busy?: boolean | undefined;
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Modality-neutral artifact chrome. It deliberately owns no file, session, or
|
|
15
|
+
* persistence state: hosts can use the same surface for a local draft, a
|
|
16
|
+
* durable OpenGeni artifact, or a collaborative projection.
|
|
17
|
+
*/
|
|
18
|
+
export declare function ArtifactSurface({ modality, title, subtitle, actions, children, footer, busy, className, }: ArtifactSurfaceProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import type { Document as ReferenceDocument, DocumentTextStyle as ReferenceDocumentTextStyle } from "@opengeni/artifact-tool/reference";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
export type DocumentLayoutMode = "paginated" | "continuous";
|
|
4
|
+
export type DocumentSelection = {
|
|
5
|
+
blockId: string;
|
|
6
|
+
start: number;
|
|
7
|
+
end: number;
|
|
8
|
+
};
|
|
9
|
+
export type DocumentCommit = {
|
|
10
|
+
kind: "text";
|
|
11
|
+
blockId: string;
|
|
12
|
+
text: string;
|
|
13
|
+
revision: string | number;
|
|
14
|
+
} | {
|
|
15
|
+
kind: "format";
|
|
16
|
+
blockId: string;
|
|
17
|
+
range: {
|
|
18
|
+
start: number;
|
|
19
|
+
end: number;
|
|
20
|
+
};
|
|
21
|
+
style: Partial<ReferenceDocumentTextStyle>;
|
|
22
|
+
revision: string | number;
|
|
23
|
+
} | {
|
|
24
|
+
kind: "insert-paragraph";
|
|
25
|
+
blockId: string;
|
|
26
|
+
revision: string | number;
|
|
27
|
+
};
|
|
28
|
+
export type DocumentCommitHandler = ((commit: DocumentCommit) => void) | ((commit: DocumentCommit) => Promise<void>);
|
|
29
|
+
export type DocumentProjectionPageGeometry = Readonly<{
|
|
30
|
+
widthPt: number;
|
|
31
|
+
heightPt: number;
|
|
32
|
+
marginTopPt: number;
|
|
33
|
+
marginRightPt: number;
|
|
34
|
+
marginBottomPt: number;
|
|
35
|
+
marginLeftPt: number;
|
|
36
|
+
headerPt?: number;
|
|
37
|
+
footerPt?: number;
|
|
38
|
+
gutterPt?: number;
|
|
39
|
+
}>;
|
|
40
|
+
export type DocumentProjectionTextStyle = Readonly<{
|
|
41
|
+
fontFamily?: string;
|
|
42
|
+
fontSizePt?: number;
|
|
43
|
+
color?: string;
|
|
44
|
+
bold?: boolean;
|
|
45
|
+
italic?: boolean;
|
|
46
|
+
underline?: boolean;
|
|
47
|
+
strike?: boolean;
|
|
48
|
+
}>;
|
|
49
|
+
export type DocumentProjectionParagraphStyle = Readonly<{
|
|
50
|
+
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
51
|
+
alignment?: "left" | "center" | "right" | "justify";
|
|
52
|
+
spaceBeforePt?: number;
|
|
53
|
+
spaceAfterPt?: number;
|
|
54
|
+
lineHeight?: number;
|
|
55
|
+
keepNext?: boolean;
|
|
56
|
+
pageBreakBefore?: boolean;
|
|
57
|
+
list?: Readonly<{
|
|
58
|
+
kind: "bullet" | "number";
|
|
59
|
+
level?: number;
|
|
60
|
+
instanceId?: string;
|
|
61
|
+
}>;
|
|
62
|
+
}>;
|
|
63
|
+
export type DocumentProjectionTextRun = Readonly<{
|
|
64
|
+
text: string;
|
|
65
|
+
style?: DocumentProjectionTextStyle;
|
|
66
|
+
}>;
|
|
67
|
+
export type DocumentProjectionParagraph = Readonly<{
|
|
68
|
+
kind: "paragraph";
|
|
69
|
+
id: string;
|
|
70
|
+
runs: readonly DocumentProjectionTextRun[];
|
|
71
|
+
style?: DocumentProjectionParagraphStyle;
|
|
72
|
+
}>;
|
|
73
|
+
export type DocumentProjectionTable = Readonly<{
|
|
74
|
+
kind: "table";
|
|
75
|
+
id: string;
|
|
76
|
+
rows: readonly (readonly (readonly DocumentProjectionTextRun[])[])[];
|
|
77
|
+
style?: Readonly<{
|
|
78
|
+
widthPt?: number;
|
|
79
|
+
columnWidthsPt?: readonly number[];
|
|
80
|
+
headerRows?: number;
|
|
81
|
+
cellPaddingPt?: number;
|
|
82
|
+
borderColor?: string;
|
|
83
|
+
headerFill?: string;
|
|
84
|
+
allowRowSplit?: boolean;
|
|
85
|
+
}>;
|
|
86
|
+
}>;
|
|
87
|
+
export type DocumentProjectionPageBreak = Readonly<{
|
|
88
|
+
kind: "pageBreak";
|
|
89
|
+
id: string;
|
|
90
|
+
}>;
|
|
91
|
+
export type DocumentProjectionBlock = DocumentProjectionParagraph | DocumentProjectionTable | DocumentProjectionPageBreak;
|
|
92
|
+
export type DocumentProjectionSection = Readonly<{
|
|
93
|
+
id: string;
|
|
94
|
+
startBlockIndex: number;
|
|
95
|
+
page: DocumentProjectionPageGeometry;
|
|
96
|
+
titlePage?: boolean;
|
|
97
|
+
headerBlockCounts?: readonly [number, number, number];
|
|
98
|
+
footerBlockCounts?: readonly [number, number, number];
|
|
99
|
+
}>;
|
|
100
|
+
export type DocumentProjectionComment = Readonly<{
|
|
101
|
+
id: string;
|
|
102
|
+
blockId: string;
|
|
103
|
+
start: number;
|
|
104
|
+
end: number;
|
|
105
|
+
resolved: boolean;
|
|
106
|
+
replies: readonly Readonly<{
|
|
107
|
+
author: string;
|
|
108
|
+
text: string;
|
|
109
|
+
createdAt: string;
|
|
110
|
+
}>[];
|
|
111
|
+
}>;
|
|
112
|
+
export type DocumentProjectionChange = Readonly<{
|
|
113
|
+
id: string;
|
|
114
|
+
blockId: string;
|
|
115
|
+
kind: "insert" | "delete";
|
|
116
|
+
start: number;
|
|
117
|
+
end: number;
|
|
118
|
+
author: string;
|
|
119
|
+
createdAt: string;
|
|
120
|
+
}>;
|
|
121
|
+
/** Immutable render/edit projection; canonical document state stays with the host. */
|
|
122
|
+
export type DocumentEditorProjection = Readonly<{
|
|
123
|
+
revision: string | number;
|
|
124
|
+
page: DocumentProjectionPageGeometry;
|
|
125
|
+
blocks: readonly DocumentProjectionBlock[];
|
|
126
|
+
sections?: readonly DocumentProjectionSection[];
|
|
127
|
+
comments?: readonly DocumentProjectionComment[];
|
|
128
|
+
changes?: readonly DocumentProjectionChange[];
|
|
129
|
+
}>;
|
|
130
|
+
export type DocumentEditorProps = {
|
|
131
|
+
document: ReferenceDocument;
|
|
132
|
+
/** Controlled projection mode. Omit to let the editor own the toggle. */
|
|
133
|
+
layout?: DocumentLayoutMode | undefined;
|
|
134
|
+
defaultLayout?: DocumentLayoutMode | undefined;
|
|
135
|
+
onLayoutChange?: ((layout: DocumentLayoutMode) => void) | undefined;
|
|
136
|
+
onSelectionChange?: ((selection: DocumentSelection) => void) | undefined;
|
|
137
|
+
onCommit?: DocumentCommitHandler | undefined;
|
|
138
|
+
onCommandError?: ((error: Error) => void) | undefined;
|
|
139
|
+
readOnly?: boolean | undefined;
|
|
140
|
+
ariaLabel?: string | undefined;
|
|
141
|
+
viewportHeight?: number | undefined;
|
|
142
|
+
overscanPages?: number | undefined;
|
|
143
|
+
className?: string | undefined;
|
|
144
|
+
};
|
|
145
|
+
export type DocumentProjectionEditorProps = Omit<DocumentEditorProps, "document" | "onSelectionChange" | "onCommit"> & {
|
|
146
|
+
projection: DocumentEditorProjection;
|
|
147
|
+
commit?: DocumentCommitHandler | undefined;
|
|
148
|
+
onCommandError?: ((error: Error) => void) | undefined;
|
|
149
|
+
onSelectionChange?: ((selection: DocumentSelection) => void) | undefined;
|
|
150
|
+
};
|
|
151
|
+
export type DocumentProjectionArtifactSurfaceProps = Omit<DocumentProjectionEditorProps, "ariaLabel" | "className"> & {
|
|
152
|
+
title: string;
|
|
153
|
+
subtitle?: ReactNode | undefined;
|
|
154
|
+
busy?: boolean | undefined;
|
|
155
|
+
className?: string | undefined;
|
|
156
|
+
editorClassName?: string | undefined;
|
|
157
|
+
};
|
|
158
|
+
export type DocumentArtifactSurfaceProps = Omit<DocumentEditorProps, "ariaLabel" | "className"> & {
|
|
159
|
+
title: string;
|
|
160
|
+
subtitle?: ReactNode | undefined;
|
|
161
|
+
busy?: boolean | undefined;
|
|
162
|
+
className?: string | undefined;
|
|
163
|
+
editorClassName?: string | undefined;
|
|
164
|
+
};
|
|
165
|
+
/** Compatibility adapter for the public authoring model. */
|
|
166
|
+
export declare function DocumentEditor(props: DocumentEditorProps): import("react").JSX.Element;
|
|
167
|
+
/** Projection-first document editor with one async command boundary. */
|
|
168
|
+
export declare function DocumentProjectionEditor({ projection, commit, onCommandError, onSelectionChange, readOnly, ...props }: DocumentProjectionEditorProps): import("react").JSX.Element;
|
|
169
|
+
/** Artifact chrome plus the reusable document editor. */
|
|
170
|
+
export declare function DocumentArtifactSurface({ document, title, subtitle, busy, className, editorClassName, ...editorProps }: DocumentArtifactSurfaceProps): import("react").JSX.Element;
|
|
171
|
+
/** Artifact chrome over the projection-first document editor. */
|
|
172
|
+
export declare function DocumentProjectionArtifactSurface({ projection, title, subtitle, busy, className, editorClassName, ...editorProps }: DocumentProjectionArtifactSurfaceProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { EditableArtifactSession, EditableArtifactSyncView } from "@opengeni/sdk/editable-artifacts";
|
|
2
|
+
export declare function useEditableArtifactView(session: EditableArtifactSession): EditableArtifactSyncView;
|
|
3
|
+
/** Changes whenever the Worker-resident speculative projection may have changed. */
|
|
4
|
+
export declare function editableArtifactProjectionKey(view: EditableArtifactSyncView): string;
|
|
5
|
+
export declare function editableArtifactStatusLabel(view: EditableArtifactSyncView): string;
|
|
6
|
+
/** Revoked read authority must hide any projection retained before invalidation. */
|
|
7
|
+
export declare function editableArtifactAccessRevoked(view: EditableArtifactSyncView): boolean;
|
|
8
|
+
export declare function EditableArtifactMessage({ title, detail, retry, }: {
|
|
9
|
+
title: string;
|
|
10
|
+
detail: string;
|
|
11
|
+
retry?: (() => void) | undefined;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
export declare function asEditableArtifactError(cause: unknown, fallback: string): Error;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type CreateBrowserEditableArtifactSessionOptions, type EditableArtifactBrowserRuntime, type EditableArtifactSession } from "@opengeni/sdk/editable-artifacts";
|
|
2
|
+
import { type EditableDocumentArtifactSurfaceProps } from "./editable-document.js";
|
|
3
|
+
import { type EditablePresentationArtifactSurfaceProps } from "./editable-presentation.js";
|
|
4
|
+
import { type EditableSpreadsheetArtifactSurfaceProps } from "./editable-spreadsheet.js";
|
|
5
|
+
export type EditableArtifactWorkbenchProps = Readonly<{
|
|
6
|
+
session: EditableArtifactSession;
|
|
7
|
+
document?: Omit<EditableDocumentArtifactSurfaceProps, "session">;
|
|
8
|
+
spreadsheet?: Omit<EditableSpreadsheetArtifactSurfaceProps, "session">;
|
|
9
|
+
presentation?: Omit<EditablePresentationArtifactSurfaceProps, "session">;
|
|
10
|
+
}>;
|
|
11
|
+
export type EditableArtifactWorkbenchHostProps = Omit<EditableArtifactWorkbenchProps, "session"> & Readonly<{
|
|
12
|
+
/**
|
|
13
|
+
* Complete identity of the browser session authority. Change this when the
|
|
14
|
+
* artifact, deployment, principal, or authorization epoch changes.
|
|
15
|
+
*/
|
|
16
|
+
sessionKey: string;
|
|
17
|
+
/** Called for the active keyed lifecycle and again only after replacement or retry. */
|
|
18
|
+
createSession: () => EditableArtifactSession;
|
|
19
|
+
}>;
|
|
20
|
+
type DefaultBrowserArtifactTransport = Omit<NonNullable<CreateBrowserEditableArtifactSessionOptions["transport"]>, "apiKey" | "fetch" | "headers" | "webSocketFactory"> & Readonly<{
|
|
21
|
+
/** Static deployment auth headers; rotate authorizationEpoch when they change. */
|
|
22
|
+
headers?: Readonly<Record<string, string>>;
|
|
23
|
+
}>;
|
|
24
|
+
export type BrowserEditableArtifactWorkbenchOptions = Omit<CreateBrowserEditableArtifactSessionOptions, "runtime" | "storage" | "transport"> & Readonly<{
|
|
25
|
+
/** Default module Worker only; custom Worker hosts use EditableArtifactWorkbenchHost. */
|
|
26
|
+
runtime: Omit<EditableArtifactBrowserRuntime, "workerFactory">;
|
|
27
|
+
/** Default fetch/WebSocket only; static deployment auth headers are supported. */
|
|
28
|
+
transport?: DefaultBrowserArtifactTransport;
|
|
29
|
+
}>;
|
|
30
|
+
export type BrowserEditableArtifactWorkbenchProps = Omit<EditableArtifactWorkbenchProps, "session"> & Readonly<{
|
|
31
|
+
options: BrowserEditableArtifactWorkbenchOptions;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* One modality-neutral SDK workbench. Embedding hosts keep one route/component;
|
|
35
|
+
* each artifact still renders through its complete first-party editor surface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function EditableArtifactWorkbench({ session, document, spreadsheet, presentation, }: EditableArtifactWorkbenchProps): import("react").JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* Route/embed composition that owns exactly one SDK session. The host supplies
|
|
40
|
+
* the authenticated SDK factory; React guarantees replacement and teardown.
|
|
41
|
+
*/
|
|
42
|
+
export declare function EditableArtifactWorkbenchHost({ sessionKey, createSession, document, spreadsheet, presentation, }: EditableArtifactWorkbenchHostProps): import("react").JSX.Element;
|
|
43
|
+
/**
|
|
44
|
+
* Complete default-browser composition for embedders: verified WASM Worker,
|
|
45
|
+
* durable IndexedDB state, authenticated live sync, teardown, and the matching
|
|
46
|
+
* first-party editor. Advanced/custom transports compose the lower-level host.
|
|
47
|
+
*/
|
|
48
|
+
export declare function BrowserEditableArtifactWorkbench({ options, document, spreadsheet, presentation, }: BrowserEditableArtifactWorkbenchProps): import("react").JSX.Element;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type EditableArtifactSession } from "@opengeni/sdk/editable-artifacts";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import { type DocumentCommitHandler, type DocumentEditorProjection, type DocumentProjectionArtifactSurfaceProps } from "./document-editor.js";
|
|
4
|
+
export type EditableDocumentArtifactSurfaceProps = Omit<DocumentProjectionArtifactSurfaceProps, "projection" | "commit" | "readOnly" | "busy" | "subtitle"> & {
|
|
5
|
+
session: EditableArtifactSession;
|
|
6
|
+
subtitle?: ReactNode | undefined;
|
|
7
|
+
readOnly?: boolean | undefined;
|
|
8
|
+
/** Called only after the durable SDK command has been accepted locally. */
|
|
9
|
+
onCommit?: DocumentCommitHandler | undefined;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Durable document editor over the public SDK session. Canonical state and
|
|
13
|
+
* speculative replay remain Worker-owned; React receives bounded projections.
|
|
14
|
+
*/
|
|
15
|
+
export declare function EditableDocumentArtifactSurface({ session, title, subtitle, readOnly, onCommit, onCommandError, ...surfaceProps }: EditableDocumentArtifactSurfaceProps): import("react").JSX.Element;
|
|
16
|
+
/** Deterministically composes summary/body/sections/review at one Worker revision. */
|
|
17
|
+
export declare function composeDocumentEditorProjection(session: EditableArtifactSession): Promise<DocumentEditorProjection>;
|
|
18
|
+
export declare function minimalUtf16TextEdit(before: string, after: string): {
|
|
19
|
+
range: {
|
|
20
|
+
start: number;
|
|
21
|
+
end: number;
|
|
22
|
+
};
|
|
23
|
+
replacement: string;
|
|
24
|
+
} | null;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type EditableArtifactSession, type PresentationArtifactEditorSceneNode, type PresentationArtifactRichText } from "@opengeni/sdk/editable-artifacts";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import { type PresentationCommitHandler, type PresentationEditorProjection, type PresentationProjectionArtifactSurfaceProps } from "./presentation-editor.js";
|
|
4
|
+
export type EditablePresentationArtifactSurfaceProps = Omit<PresentationProjectionArtifactSurfaceProps, "projection" | "commit" | "readOnly" | "busy" | "subtitle"> & {
|
|
5
|
+
session: EditableArtifactSession;
|
|
6
|
+
subtitle?: ReactNode | undefined;
|
|
7
|
+
readOnly?: boolean | undefined;
|
|
8
|
+
/** Called only after the durable SDK command has been accepted locally. */
|
|
9
|
+
onCommit?: PresentationCommitHandler | undefined;
|
|
10
|
+
};
|
|
11
|
+
export type ComposedPresentationProjection = Readonly<{
|
|
12
|
+
projection: PresentationEditorProjection;
|
|
13
|
+
sceneNodes: ReadonlyMap<string, PresentationArtifactEditorSceneNode>;
|
|
14
|
+
}>;
|
|
15
|
+
/**
|
|
16
|
+
* Durable presentation editor over the public SDK. The Worker owns canonical
|
|
17
|
+
* state; React only receives bounded catalog and per-slide editor projections.
|
|
18
|
+
*/
|
|
19
|
+
export declare function EditablePresentationArtifactSurface({ session, title, subtitle, readOnly, onCommit, onCommandError, ...surfaceProps }: EditablePresentationArtifactSurfaceProps): import("react").JSX.Element;
|
|
20
|
+
/** Builds a deterministic, bounded catalog + editor-slide projection at one revision. */
|
|
21
|
+
export declare function composePresentationEditorProjection(session: EditableArtifactSession): Promise<ComposedPresentationProjection>;
|
|
22
|
+
export declare function flattenPresentationRichText(text: PresentationArtifactRichText): string;
|
|
23
|
+
/** Preserves unaffected run styles and paragraph alignment across one UTF-16 text edit. */
|
|
24
|
+
export declare function replacePresentationRichText(richText: PresentationArtifactRichText, before: string, after: string): PresentationArtifactRichText;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type EditableArtifactSession, type EditableSpreadsheetSheetMetadata } from "@opengeni/sdk/editable-artifacts";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import { type SpreadsheetCommit, type SpreadsheetSelection, type SpreadsheetViewport } from "./spreadsheet-grid.js";
|
|
4
|
+
export type EditableSpreadsheetGridProps = {
|
|
5
|
+
session: EditableArtifactSession;
|
|
6
|
+
sheet: EditableSpreadsheetSheetMetadata;
|
|
7
|
+
metadataRevision: bigint;
|
|
8
|
+
readOnly?: boolean | undefined;
|
|
9
|
+
rowCount?: number | undefined;
|
|
10
|
+
columnCount?: number | undefined;
|
|
11
|
+
overscanRows?: number | undefined;
|
|
12
|
+
overscanColumns?: number | undefined;
|
|
13
|
+
onSelectionChange?: ((selection: SpreadsheetSelection) => void) | undefined;
|
|
14
|
+
onCommit?: ((commit: SpreadsheetCommit) => void) | undefined;
|
|
15
|
+
onCommandError?: ((error: Error) => void) | undefined;
|
|
16
|
+
onViewportChange?: ((viewport: SpreadsheetViewport) => void) | undefined;
|
|
17
|
+
className?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
export type EditableSpreadsheetArtifactSurfaceProps = Omit<EditableSpreadsheetGridProps, "metadataRevision" | "sheet"> & {
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
subtitle?: ReactNode | undefined;
|
|
22
|
+
actions?: ReactNode | undefined;
|
|
23
|
+
initialSheetId?: string | undefined;
|
|
24
|
+
allowAddSheet?: boolean | undefined;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Durable spreadsheet editor over one SDK session. Canonical state remains in
|
|
28
|
+
* the dedicated Worker; React receives one bounded immutable viewport only.
|
|
29
|
+
*/
|
|
30
|
+
export declare function EditableSpreadsheetGrid({ session, sheet, metadataRevision, readOnly, rowCount: requestedRowCount, columnCount: requestedColumnCount, overscanRows, overscanColumns, onSelectionChange, onCommit, onCommandError, onViewportChange, className, }: EditableSpreadsheetGridProps): import("react").JSX.Element;
|
|
31
|
+
/** Artifact chrome, sheet navigation, and one Worker-backed spreadsheet grid. */
|
|
32
|
+
export declare function EditableSpreadsheetArtifactSurface({ session, title, subtitle, actions, initialSheetId, allowAddSheet, readOnly, ...gridProps }: EditableSpreadsheetArtifactSurfaceProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { ArtifactSurface, type ArtifactModality, type ArtifactSurfaceProps, } from "./artifact-surface.js";
|
|
2
|
+
export { PUBLISHED_HTML_ARTIFACT_IFRAME_SANDBOX, PublishedHtmlArtifactFrame, type PublishedHtmlArtifactFrameProps, } from "./published-html-artifact-frame.js";
|
|
3
|
+
export { SpreadsheetArtifactSurface, SpreadsheetGrid, SpreadsheetProjectionGrid, type SpreadsheetArtifactSurfaceProps, type SpreadsheetCommit, type SpreadsheetRangeCommit, type SpreadsheetGridProps, type SpreadsheetGridProjection, type SpreadsheetProjectionCell, type SpreadsheetProjectionGridProps, type SpreadsheetSelection, type SpreadsheetViewport, } from "./spreadsheet-grid.js";
|
|
4
|
+
export { EditableSpreadsheetArtifactSurface, EditableSpreadsheetGrid, type EditableSpreadsheetArtifactSurfaceProps, type EditableSpreadsheetGridProps, } from "./editable-spreadsheet.js";
|
|
5
|
+
export { BrowserEditableArtifactWorkbench, EditableArtifactWorkbench, EditableArtifactWorkbenchHost, type BrowserEditableArtifactWorkbenchOptions, type BrowserEditableArtifactWorkbenchProps, type EditableArtifactWorkbenchHostProps, type EditableArtifactWorkbenchProps, } from "./editable-artifact-workbench.js";
|
|
6
|
+
export { EditableDocumentArtifactSurface, type EditableDocumentArtifactSurfaceProps, } from "./editable-document.js";
|
|
7
|
+
export { DocumentArtifactSurface, DocumentEditor, DocumentProjectionArtifactSurface, DocumentProjectionEditor, type DocumentArtifactSurfaceProps, type DocumentCommit, type DocumentCommitHandler, type DocumentEditorProps, type DocumentEditorProjection, type DocumentLayoutMode, type DocumentProjectionArtifactSurfaceProps, type DocumentProjectionBlock, type DocumentProjectionChange, type DocumentProjectionComment, type DocumentProjectionEditorProps, type DocumentProjectionPageBreak, type DocumentProjectionPageGeometry, type DocumentProjectionParagraph, type DocumentProjectionParagraphStyle, type DocumentProjectionSection, type DocumentProjectionTable, type DocumentProjectionTextRun, type DocumentProjectionTextStyle, type DocumentSelection, } from "./document-editor.js";
|
|
8
|
+
export { EditablePresentationArtifactSurface, type EditablePresentationArtifactSurfaceProps, } from "./editable-presentation.js";
|
|
9
|
+
export { PresentationArtifactSurface, PresentationEditor, PresentationProjectionArtifactSurface, PresentationProjectionEditor, type PresentationArtifactSurfaceProps, type PresentationCommit, type PresentationCommitHandler, type PresentationEditorProps, type PresentationEditorProjection, type PresentationProjectionArtifactSurfaceProps, type PresentationProjectionChart, type PresentationProjectionChartSeries, type PresentationProjectionConnector, type PresentationProjectionEditorProps, type PresentationProjectionElementMetadata, type PresentationProjectionElement, type PresentationProjectionFill, type PresentationProjectionGroup, type PresentationProjectionImage, type PresentationProjectionLine, type PresentationProjectionPosition, type PresentationProjectionRichText, type PresentationProjectionShape, type PresentationProjectionTable, type PresentationProjectionTableCell, type PresentationProjectionTextParagraph, type PresentationProjectionTextRun, type PresentationProjectionTextStyle, type PresentationSlideProjection, } from "./presentation-editor.js";
|