@opengeni/react 5.1.0-canary.0 → 5.2.0-canary.1

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.
Files changed (90) hide show
  1. package/README.md +12 -0
  2. package/dist/artifacts.d.ts +2 -0
  3. package/dist/artifacts.js +1391 -2
  4. package/dist/artifacts.js.map +1 -1
  5. package/dist/chunk-2TKI3WEG.js +73 -0
  6. package/dist/chunk-2TKI3WEG.js.map +1 -0
  7. package/dist/{chunk-M2HNWZYR.js → chunk-IHQII5WO.js} +69 -18
  8. package/dist/chunk-IHQII5WO.js.map +1 -0
  9. package/dist/{chunk-5PQJOCX5.js → chunk-KANFU34B.js} +6 -4
  10. package/dist/chunk-KANFU34B.js.map +1 -0
  11. package/dist/{chunk-WS6D5BHH.js → chunk-O4NQNMPG.js} +2393 -2123
  12. package/dist/chunk-O4NQNMPG.js.map +1 -0
  13. package/dist/{chunk-HUMIRRYI.js → chunk-PZ27MCZP.js} +54 -19
  14. package/dist/chunk-PZ27MCZP.js.map +1 -0
  15. package/dist/{chunk-BRFMGY4L.js → chunk-UGMKPUEM.js} +28 -3
  16. package/dist/chunk-UGMKPUEM.js.map +1 -0
  17. package/dist/{chunk-BV5A4OTE.js → chunk-YS24CFDI.js} +44 -10
  18. package/dist/chunk-YS24CFDI.js.map +1 -0
  19. package/dist/components/artifacts/inline-html-document.d.ts +2 -0
  20. package/dist/components/artifacts/published-html-artifact-frame.d.ts +2 -0
  21. package/dist/components/artifacts/visualization-assets.gen.d.ts +2 -0
  22. package/dist/components/markdown.d.ts +13 -1
  23. package/dist/components/session-chrome.d.ts +6 -1
  24. package/dist/{computer-viewer-7TEZC6Y2.js → computer-viewer-CTFCJVS7.js} +2 -2
  25. package/dist/connect.js +1 -1
  26. package/dist/hooks/use-file-attachments.d.ts +2 -0
  27. package/dist/index.d.ts +6 -1
  28. package/dist/index.js +16 -5
  29. package/dist/index.js.map +1 -1
  30. package/dist/interaction.js +1 -1
  31. package/dist/{platform-activity-row-27LKAWZD.js → platform-activity-row-DUE2W74J.js} +6 -3
  32. package/dist/platform-activity-row-DUE2W74J.js.map +1 -0
  33. package/dist/session-ui.d.ts +2 -0
  34. package/dist/session-ui.js +7 -107
  35. package/dist/session-ui.js.map +1 -1
  36. package/dist/session.js +2 -2
  37. package/dist/sites-ui.d.ts +2 -1
  38. package/dist/sites.js +12 -4
  39. package/dist/sites.js.map +1 -1
  40. package/dist/timeline/activity-rail.d.ts +1 -0
  41. package/dist/timeline/genie-loading.d.ts +9 -1
  42. package/dist/timeline/index.d.ts +3 -1
  43. package/dist/timeline/knowledge-receipt.d.ts +17 -0
  44. package/dist/timeline/platform-activity-row.d.ts +1 -2
  45. package/dist/timeline/retained-image.d.ts +16 -0
  46. package/dist/timeline/rolling-activity.d.ts +9 -0
  47. package/dist/timeline/shared.d.ts +4 -1
  48. package/dist/timeline/turn-summary.d.ts +4 -1
  49. package/dist/timeline/types.d.ts +13 -2
  50. package/package.json +4 -4
  51. package/src/artifacts.ts +2 -0
  52. package/src/components/artifacts/inline-html-document.ts +24 -0
  53. package/src/components/artifacts/published-html-artifact-frame.tsx +32 -2
  54. package/src/components/artifacts/visualization-assets/base.css +1015 -0
  55. package/src/components/artifacts/visualization-assets/helpers.html +349 -0
  56. package/src/components/artifacts/visualization-assets.gen.ts +3 -0
  57. package/src/components/computer-viewer.tsx +11 -3
  58. package/src/components/copy-button.tsx +7 -2
  59. package/src/components/markdown.tsx +111 -34
  60. package/src/components/message-timeline.tsx +48 -3
  61. package/src/components/session-chrome.tsx +14 -2
  62. package/src/hooks/use-computer-frame-stream.ts +17 -5
  63. package/src/hooks/use-computer-session.ts +36 -1
  64. package/src/hooks/use-file-attachments.ts +4 -1
  65. package/src/hooks/use-goal.ts +3 -1
  66. package/src/index.ts +12 -1
  67. package/src/session-ui.ts +3 -0
  68. package/src/sites-ui.tsx +23 -6
  69. package/src/timeline/activity-rail.tsx +31 -4
  70. package/src/timeline/genie-loading.tsx +18 -4
  71. package/src/timeline/index.ts +4 -0
  72. package/src/timeline/knowledge-receipt.tsx +100 -0
  73. package/src/timeline/platform-activity-row.tsx +5 -3
  74. package/src/timeline/projection.ts +40 -0
  75. package/src/timeline/retained-image.ts +91 -0
  76. package/src/timeline/rolling-activity.tsx +83 -0
  77. package/src/timeline/shared.tsx +33 -12
  78. package/src/timeline/tool-renderers.tsx +55 -91
  79. package/src/timeline/turn-summary.tsx +21 -15
  80. package/src/timeline/types.ts +14 -0
  81. package/styles/compiled.css +122 -0
  82. package/styles/index.css +49 -0
  83. package/dist/chunk-5PQJOCX5.js.map +0 -1
  84. package/dist/chunk-BRFMGY4L.js.map +0 -1
  85. package/dist/chunk-BV5A4OTE.js.map +0 -1
  86. package/dist/chunk-HUMIRRYI.js.map +0 -1
  87. package/dist/chunk-M2HNWZYR.js.map +0 -1
  88. package/dist/chunk-WS6D5BHH.js.map +0 -1
  89. package/dist/platform-activity-row-27LKAWZD.js.map +0 -1
  90. /package/dist/{computer-viewer-7TEZC6Y2.js.map → computer-viewer-CTFCJVS7.js.map} +0 -0
@@ -8,6 +8,8 @@ export type UseFileAttachmentsOptions = EmbeddedFileAttachmentClientOverride & {
8
8
  * UseFileAttachmentsResult.addFiles} (the explicit picker / drop path)
9
9
  * bypasses it.
10
10
  */
11
+ /** Retain original uploads in the chat owner’s personal scope when private. */
12
+ scope?: "workspace" | "personal";
11
13
  pasteFilter?: ((file: File) => boolean) | undefined;
12
14
  };
13
15
  export type FileAttachment = {
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { retainedImageId } from "./components/markdown.js";
1
2
  export type { EmbeddedBrowserInteractionClientLike, EmbeddedComputerInteractionClientLike, EmbeddedFileAttachmentClientLike, EmbeddedGoalClientLike, EmbeddedHumanInputSessionClientLike, EmbeddedInteractionClientLike, EmbeddedSessionEventClientLike, EmbeddedSessionLineageClientLike, EmbeddedSessionMcpApprovalPolicyClientLike, EmbeddedSessionReadClientLike, EmbeddedSessionClientLike, SessionClientLike, } from "./client.js";
2
3
  export { OpenGeniProvider } from "./provider.js";
3
4
  export type { OpenGeniProviderProps } from "./provider.js";
@@ -133,7 +134,7 @@ export type { MessageTimelineProps } from "./components/message-timeline.js";
133
134
  export { UserMessageBody, userMessageLikelyNeedsDisclosure } from "./components/user-message-body.js";
134
135
  export type { UserMessageBodyProps, UserMessageDisclosureLabels, } from "./components/user-message-body.js";
135
136
  export { Markdown, sandboxFileLocationFromHref, sandboxFilePathFromHref, } from "./components/markdown.js";
136
- export type { MarkdownProps, SandboxFileLocation } from "./components/markdown.js";
137
+ export type { MarkdownProps, MarkdownInteractiveBlock, SandboxFileLocation, } from "./components/markdown.js";
137
138
  export { CopyButton, CopyHoverFrame } from "./components/copy-button.js";
138
139
  export { copyTextToClipboard, tableElementToTsv } from "./lib/clipboard.js";
139
140
  export { SessionStatus, StatusDot, SESSION_STATUS_META } from "./components/session-status.js";
@@ -172,3 +173,7 @@ export { xtermThemeFromTokens } from "./lib/xterm-theme.js";
172
173
  export { cn } from "./lib/cn.js";
173
174
  export { CREDIT_EXHAUSTION_MESSAGE, formatBytes, formatClockTime, formatRelativeTime, humanizeFailureReason, presentFailure, isCreditExhaustion, stringifyPayload, truncate, tryParseJson, } from "./lib/format.js";
174
175
  export { SessionCommandsPanel } from "./components/session-commands-panel.js";
176
+ export { KnowledgeActivityProvider } from "./timeline/knowledge-receipt.js";
177
+ export type { KnowledgeActivityActions } from "./timeline/knowledge-receipt.js";
178
+ export { StartupTimings } from "./timeline/startup-timings.js";
179
+ export { setStartupDetails, useStartupDetails } from "./timeline/startup-preference.js";
package/dist/index.js CHANGED
@@ -56,6 +56,7 @@ import {
56
56
  GeneratedVideoPlayer,
57
57
  HumanInputForm,
58
58
  HumanInputSurface,
59
+ KnowledgeActivityProvider,
59
60
  MediaEmpty,
60
61
  MediaSkeleton,
61
62
  MessageTimeline,
@@ -68,6 +69,7 @@ import {
68
69
  SessionCommandsPanel,
69
70
  SessionConversation,
70
71
  SessionStatus,
72
+ StartupTimings,
71
73
  StatusDot,
72
74
  TermBlock,
73
75
  Thumbnail,
@@ -96,15 +98,17 @@ import {
96
98
  sessionChromeGoalPillExplanation,
97
99
  sessionChromeGoalPillLabel,
98
100
  sessionChromeGoalPillState,
101
+ setStartupDetails,
99
102
  stripExecBanner,
100
103
  tailPeek,
101
104
  unwrapMcpOutput,
102
105
  useAvailableModels,
106
+ useStartupDetails,
103
107
  useThemeType,
104
108
  useWorkspaceModelCatalog,
105
109
  userMessageLikelyNeedsDisclosure,
106
110
  v4aToGitFileDiff
107
- } from "./chunk-WS6D5BHH.js";
111
+ } from "./chunk-O4NQNMPG.js";
108
112
  import "./chunk-YBM6CQRU.js";
109
113
  import "./chunk-5M6VTFJ5.js";
110
114
  import "./chunk-ZYRGEKWS.js";
@@ -117,9 +121,10 @@ import {
117
121
  CopyHoverFrame,
118
122
  Markdown,
119
123
  prefersReducedMotion,
124
+ retainedImageId,
120
125
  sandboxFileLocationFromHref,
121
126
  sandboxFilePathFromHref
122
- } from "./chunk-M2HNWZYR.js";
127
+ } from "./chunk-IHQII5WO.js";
123
128
  import {
124
129
  copyTextToClipboard,
125
130
  tableElementToTsv
@@ -166,6 +171,7 @@ import {
166
171
  TooltipProvider,
167
172
  TooltipTrigger
168
173
  } from "./chunk-HQV2I5HV.js";
174
+ import "./chunk-2TKI3WEG.js";
169
175
  import {
170
176
  BillingClassMark,
171
177
  ModelPolicyPicker,
@@ -190,7 +196,7 @@ import {
190
196
  useSessionControl,
191
197
  useSessionLineage,
192
198
  useSessionMcpApprovalPolicy
193
- } from "./chunk-5PQJOCX5.js";
199
+ } from "./chunk-KANFU34B.js";
194
200
  import {
195
201
  SESSION_EVENT_BROWSER_MAX_BYTES,
196
202
  SESSION_EVENT_BROWSER_MAX_COUNT,
@@ -213,7 +219,7 @@ import {
213
219
  useSession,
214
220
  useSessionEvents,
215
221
  useTurnQueue
216
- } from "./chunk-HUMIRRYI.js";
222
+ } from "./chunk-PZ27MCZP.js";
217
223
  import {
218
224
  FILE_ONLY_MESSAGE_TEXT,
219
225
  composeSendInput,
@@ -8194,7 +8200,7 @@ var LazyBrowserViewer = lazy2(async () => {
8194
8200
  return { default: BrowserViewer };
8195
8201
  });
8196
8202
  var LazyComputerViewer = lazy2(async () => {
8197
- const { ComputerViewer } = await import("./computer-viewer-7TEZC6Y2.js");
8203
+ const { ComputerViewer } = await import("./computer-viewer-CTFCJVS7.js");
8198
8204
  return { default: ComputerViewer };
8199
8205
  });
8200
8206
  var WORKBENCH_TAB_CHANGES = "changes";
@@ -9356,6 +9362,7 @@ export {
9356
9362
  HumanInputSurface,
9357
9363
  INITIAL_TRANSCRIPTION_CONTROL_STATE,
9358
9364
  IndexedDbVoiceRecordingStore,
9365
+ KnowledgeActivityProvider,
9359
9366
  LightboxProvider,
9360
9367
  MACHINES_COMPOSER_POLL_MS,
9361
9368
  MACHINES_DASHBOARD_POLL_MS,
@@ -9403,6 +9410,7 @@ export {
9403
9410
  SessionConversation,
9404
9411
  SessionStatus,
9405
9412
  SharedMachineDisclosure,
9413
+ StartupTimings,
9406
9414
  StatusDot,
9407
9415
  TermBlock,
9408
9416
  Thumbnail,
@@ -9515,6 +9523,7 @@ export {
9515
9523
  projectPendingHumanInputRequests,
9516
9524
  projectPickerRows,
9517
9525
  rawTypeOf,
9526
+ retainedImageId,
9518
9527
  runnableLatencyModesForModel,
9519
9528
  sandboxCommandExitCode,
9520
9529
  sandboxFileLocationFromHref,
@@ -9524,6 +9533,7 @@ export {
9524
9533
  sessionChromeGoalPillState,
9525
9534
  sessionDisplayTitle,
9526
9535
  sessionStatusFromEvents,
9536
+ setStartupDetails,
9527
9537
  shouldSteerOnKey,
9528
9538
  shouldSubmitOnKey,
9529
9539
  sortPickerRows,
@@ -9573,6 +9583,7 @@ export {
9573
9583
  useSessionLineage,
9574
9584
  useSessionMcpApprovalPolicy,
9575
9585
  useSlashCommands,
9586
+ useStartupDetails,
9576
9587
  useSuperGrokAccounts,
9577
9588
  useTerminalStream,
9578
9589
  useTranscription,