@opengeni/react 3.3.2-canary.1 → 3.5.1-canary.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.
Files changed (49) hide show
  1. package/dist/artifacts.js +12 -12
  2. package/dist/{browser-viewer-MKKFRRRV.js → browser-viewer-E5DDEFQ4.js} +3 -3
  3. package/dist/{chunk-7KBJLTKS.js → chunk-4JFUT22W.js} +10 -8
  4. package/dist/chunk-4JFUT22W.js.map +1 -0
  5. package/dist/{chunk-ELIYWBZR.js → chunk-BV5A4OTE.js} +4 -4
  6. package/dist/{chunk-E5KISKFG.js → chunk-IB27C53Y.js} +115 -14
  7. package/dist/chunk-IB27C53Y.js.map +1 -0
  8. package/dist/{chunk-JAQ5K7W6.js → chunk-TJFMMDQU.js} +56 -53
  9. package/dist/chunk-TJFMMDQU.js.map +1 -0
  10. package/dist/{chunk-ZKNTK7IA.js → chunk-UNCXXIQR.js} +8 -8
  11. package/dist/{chunk-ZPBTI3TE.js → chunk-W2RGYBCV.js} +4 -4
  12. package/dist/{chunk-WSK7G5LE.js → chunk-W3OUAH6M.js} +80 -80
  13. package/dist/chunk-W3OUAH6M.js.map +1 -0
  14. package/dist/{chunk-X5S426G2.js → chunk-WMGF4Z7X.js} +6 -2
  15. package/dist/chunk-WMGF4Z7X.js.map +1 -0
  16. package/dist/{chunk-YG4QEQF5.js → chunk-WY3MELVJ.js} +7769 -7753
  17. package/dist/chunk-WY3MELVJ.js.map +1 -0
  18. package/dist/composer.js +4 -4
  19. package/dist/{computer-viewer-FWEZISW4.js → computer-viewer-7TEZC6Y2.js} +3 -3
  20. package/dist/hooks/use-session-events.d.ts +1 -1
  21. package/dist/index.js +85 -87
  22. package/dist/index.js.map +1 -1
  23. package/dist/interaction.js +3 -3
  24. package/dist/model-policy.js +1 -1
  25. package/dist/{queue-surface-implementation-BSKUWHRI.js → queue-surface-implementation-XL2A6PBM.js} +2 -2
  26. package/dist/realtime.js +2 -2
  27. package/dist/session-ui.js +6 -6
  28. package/dist/session.js +4 -4
  29. package/dist/timeline/types.d.ts +2 -0
  30. package/package.json +2 -2
  31. package/src/components/message-timeline.tsx +16 -2
  32. package/src/components/model-policy-picker.tsx +2 -0
  33. package/src/components/sandbox-workspace.tsx +7 -6
  34. package/src/hooks/use-session-events.ts +168 -8
  35. package/src/model-policy.ts +4 -0
  36. package/src/timeline/projection.ts +6 -1
  37. package/src/timeline/types.ts +2 -0
  38. package/dist/chunk-7KBJLTKS.js.map +0 -1
  39. package/dist/chunk-E5KISKFG.js.map +0 -1
  40. package/dist/chunk-JAQ5K7W6.js.map +0 -1
  41. package/dist/chunk-WSK7G5LE.js.map +0 -1
  42. package/dist/chunk-X5S426G2.js.map +0 -1
  43. package/dist/chunk-YG4QEQF5.js.map +0 -1
  44. /package/dist/{browser-viewer-MKKFRRRV.js.map → browser-viewer-E5DDEFQ4.js.map} +0 -0
  45. /package/dist/{chunk-ELIYWBZR.js.map → chunk-BV5A4OTE.js.map} +0 -0
  46. /package/dist/{chunk-ZKNTK7IA.js.map → chunk-UNCXXIQR.js.map} +0 -0
  47. /package/dist/{chunk-ZPBTI3TE.js.map → chunk-W2RGYBCV.js.map} +0 -0
  48. /package/dist/{computer-viewer-FWEZISW4.js.map → computer-viewer-7TEZC6Y2.js.map} +0 -0
  49. /package/dist/{queue-surface-implementation-BSKUWHRI.js.map → queue-surface-implementation-XL2A6PBM.js.map} +0 -0
package/dist/composer.js CHANGED
@@ -37,8 +37,7 @@ import {
37
37
  useChatComposer,
38
38
  useChatComposerController,
39
39
  useVoiceInput
40
- } from "./chunk-ZKNTK7IA.js";
41
- import "./chunk-IOLVN74D.js";
40
+ } from "./chunk-UNCXXIQR.js";
42
41
  import {
43
42
  BillingClassMark,
44
43
  ModelPolicyPicker,
@@ -47,13 +46,14 @@ import {
47
46
  PickerBackHeader,
48
47
  PickerNavRow,
49
48
  defaultModelPolicyPickerMessages
50
- } from "./chunk-7KBJLTKS.js";
51
- import "./chunk-X5S426G2.js";
49
+ } from "./chunk-4JFUT22W.js";
52
50
  import "./chunk-7EAFGICR.js";
53
51
  import "./chunk-VZTQ73XT.js";
52
+ import "./chunk-IOLVN74D.js";
54
53
  import "./chunk-KZ73RL76.js";
55
54
  import "./chunk-NEXLLTP4.js";
56
55
  import "./chunk-VTOREEXF.js";
56
+ import "./chunk-WMGF4Z7X.js";
57
57
  import "./chunk-22KP6LR5.js";
58
58
  export {
59
59
  Actions,
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  ComputerViewer,
3
3
  computerKey
4
- } from "./chunk-ELIYWBZR.js";
4
+ } from "./chunk-BV5A4OTE.js";
5
5
  import "./chunk-H5YGYNXS.js";
6
6
  import "./chunk-4MDLEHXL.js";
7
7
  import "./chunk-5YK2ZDIG.js";
8
+ import "./chunk-JVYQRRC4.js";
8
9
  import "./chunk-KZ73RL76.js";
9
10
  import "./chunk-NEXLLTP4.js";
10
- import "./chunk-JVYQRRC4.js";
11
11
  import "./chunk-22KP6LR5.js";
12
12
  export {
13
13
  ComputerViewer,
14
14
  computerKey
15
15
  };
16
- //# sourceMappingURL=computer-viewer-FWEZISW4.js.map
16
+ //# sourceMappingURL=computer-viewer-7TEZC6Y2.js.map
@@ -1,4 +1,4 @@
1
- import type { SessionEvent, SessionStatus, StreamConnectionState } from "@opengeni/sdk";
1
+ import { type SessionEvent, type SessionStatus, type StreamConnectionState } from "@opengeni/sdk";
2
2
  import { type EmbeddedSessionClientOverride } from "../session-context.js";
3
3
  import { type OlderHistoryLoadReceipt } from "../older-history.js";
4
4
  import type { TimelineItem } from "../timeline/types.js";
package/dist/index.js CHANGED
@@ -1,29 +1,3 @@
1
- import {
2
- SESSION_EVENT_BROWSER_MAX_BYTES,
3
- SESSION_EVENT_BROWSER_MAX_COUNT,
4
- SESSION_EVENT_BROWSER_PENDING_MAX_BYTES,
5
- SESSION_EVENT_BROWSER_PENDING_MAX_COUNT,
6
- SESSION_EVENT_BROWSER_SINGLE_EVENT_MAX_BYTES,
7
- approvalsFromRequiresAction,
8
- boundBrowserSessionEventWindow,
9
- createEmbeddedSessionClient,
10
- isGoalEvent,
11
- isHumanInputEvent,
12
- isLineageRefreshEvent,
13
- isSessionMcpApprovalPolicyEvent,
14
- isTitleEvent,
15
- isTurnQueueEvent,
16
- projectPendingApprovals,
17
- useFileAttachments,
18
- useGoal,
19
- useHumanInputRequests,
20
- useSession,
21
- useSessionControl,
22
- useSessionEvents,
23
- useSessionLineage,
24
- useSessionMcpApprovalPolicy,
25
- useTurnQueue
26
- } from "./chunk-E5KISKFG.js";
27
1
  import {
28
2
  CONNECTION_STATUS_META,
29
3
  ConnectionDot,
@@ -56,6 +30,19 @@ import {
56
30
  pointsFor,
57
31
  useMachines
58
32
  } from "./chunk-YVCHAQZY.js";
33
+ import {
34
+ DesktopViewer,
35
+ useDesktopStream,
36
+ useRelayFrameStream
37
+ } from "./chunk-4MDLEHXL.js";
38
+ import {
39
+ STREAM_KIND_PTY,
40
+ STREAM_ROLE_CLIENT,
41
+ decodeStreamFrame,
42
+ decodeStreamOpenAck,
43
+ encodeStreamFrame,
44
+ encodeStreamOpen
45
+ } from "./chunk-5YK2ZDIG.js";
59
46
  import {
60
47
  Actions,
61
48
  AttachButton,
@@ -108,14 +95,7 @@ import {
108
95
  useSlashCommands,
109
96
  useTranscription,
110
97
  useVoiceInput
111
- } from "./chunk-ZKNTK7IA.js";
112
- import {
113
- FILE_ONLY_MESSAGE_TEXT,
114
- composeSendInput,
115
- shouldSteerOnKey,
116
- shouldSubmitOnKey,
117
- useComposer
118
- } from "./chunk-IOLVN74D.js";
98
+ } from "./chunk-UNCXXIQR.js";
119
99
  import {
120
100
  BillingClassMark,
121
101
  ModelPolicyPicker,
@@ -124,25 +104,7 @@ import {
124
104
  PickerBackHeader,
125
105
  PickerNavRow,
126
106
  defaultModelPolicyPickerMessages
127
- } from "./chunk-7KBJLTKS.js";
128
- import {
129
- advancedSourceSummary,
130
- availabilityReasonLabel,
131
- billingClassForModel,
132
- billingClassLabel,
133
- coerceReasoningEffortForModel,
134
- defaultEffortForModel,
135
- effortOptionsForModel,
136
- findPickerRow,
137
- groupPickerRowsByBillingClass,
138
- labelLatencyMode,
139
- labelReasoningEffort,
140
- payerSummaryForModel,
141
- projectClientModelRows,
142
- projectPickerRows,
143
- runnableLatencyModesForModel,
144
- sortPickerRows
145
- } from "./chunk-X5S426G2.js";
107
+ } from "./chunk-4JFUT22W.js";
146
108
  import {
147
109
  ActivityDisclosure,
148
110
  ActivityRail,
@@ -201,21 +163,14 @@ import {
201
163
  useThemeType,
202
164
  userMessageLikelyNeedsDisclosure,
203
165
  v4aToGitFileDiff
204
- } from "./chunk-YG4QEQF5.js";
205
- import {
206
- buildTimeline,
207
- createOlderHistoryLoadReceipt,
208
- creditExhaustedFromEvents,
209
- extractSessionRef,
210
- groupTimeline,
211
- humanInputRequestFromEvent,
212
- projectPendingHumanInputRequests,
213
- sessionStatusFromEvents,
214
- toolDisplayName
215
- } from "./chunk-JAQ5K7W6.js";
166
+ } from "./chunk-WY3MELVJ.js";
216
167
  import {
217
168
  TimelineAnnotationsChip
218
- } from "./chunk-WSK7G5LE.js";
169
+ } from "./chunk-W3OUAH6M.js";
170
+ import {
171
+ copyTextToClipboard,
172
+ tableElementToTsv
173
+ } from "./chunk-JVYQRRC4.js";
219
174
  import {
220
175
  LightboxProvider,
221
176
  Tooltip,
@@ -230,18 +185,38 @@ import {
230
185
  usePortalTokenStyle
231
186
  } from "./chunk-VZTQ73XT.js";
232
187
  import {
233
- DesktopViewer,
234
- useDesktopStream,
235
- useRelayFrameStream
236
- } from "./chunk-4MDLEHXL.js";
188
+ SESSION_EVENT_BROWSER_MAX_BYTES,
189
+ SESSION_EVENT_BROWSER_MAX_COUNT,
190
+ SESSION_EVENT_BROWSER_PENDING_MAX_BYTES,
191
+ SESSION_EVENT_BROWSER_PENDING_MAX_COUNT,
192
+ SESSION_EVENT_BROWSER_SINGLE_EVENT_MAX_BYTES,
193
+ approvalsFromRequiresAction,
194
+ boundBrowserSessionEventWindow,
195
+ createEmbeddedSessionClient,
196
+ isGoalEvent,
197
+ isHumanInputEvent,
198
+ isLineageRefreshEvent,
199
+ isSessionMcpApprovalPolicyEvent,
200
+ isTitleEvent,
201
+ isTurnQueueEvent,
202
+ projectPendingApprovals,
203
+ useFileAttachments,
204
+ useGoal,
205
+ useHumanInputRequests,
206
+ useSession,
207
+ useSessionControl,
208
+ useSessionEvents,
209
+ useSessionLineage,
210
+ useSessionMcpApprovalPolicy,
211
+ useTurnQueue
212
+ } from "./chunk-IB27C53Y.js";
237
213
  import {
238
- STREAM_KIND_PTY,
239
- STREAM_ROLE_CLIENT,
240
- decodeStreamFrame,
241
- decodeStreamOpenAck,
242
- encodeStreamFrame,
243
- encodeStreamOpen
244
- } from "./chunk-5YK2ZDIG.js";
214
+ FILE_ONLY_MESSAGE_TEXT,
215
+ composeSendInput,
216
+ shouldSteerOnKey,
217
+ shouldSubmitOnKey,
218
+ useComposer
219
+ } from "./chunk-IOLVN74D.js";
245
220
  import {
246
221
  useMutationRunner,
247
222
  usePageLiveActivity,
@@ -253,9 +228,16 @@ import {
253
228
  useOpenGeniClient
254
229
  } from "./chunk-NEXLLTP4.js";
255
230
  import {
256
- copyTextToClipboard,
257
- tableElementToTsv
258
- } from "./chunk-JVYQRRC4.js";
231
+ buildTimeline,
232
+ createOlderHistoryLoadReceipt,
233
+ creditExhaustedFromEvents,
234
+ extractSessionRef,
235
+ groupTimeline,
236
+ humanInputRequestFromEvent,
237
+ projectPendingHumanInputRequests,
238
+ sessionStatusFromEvents,
239
+ toolDisplayName
240
+ } from "./chunk-TJFMMDQU.js";
259
241
  import {
260
242
  COMPOSER_PAYMENT_REQUIRED_MESSAGE,
261
243
  CREDIT_EXHAUSTION_MESSAGE,
@@ -269,6 +251,24 @@ import {
269
251
  truncate,
270
252
  tryParseJson
271
253
  } from "./chunk-VTOREEXF.js";
254
+ import {
255
+ advancedSourceSummary,
256
+ availabilityReasonLabel,
257
+ billingClassForModel,
258
+ billingClassLabel,
259
+ coerceReasoningEffortForModel,
260
+ defaultEffortForModel,
261
+ effortOptionsForModel,
262
+ findPickerRow,
263
+ groupPickerRowsByBillingClass,
264
+ labelLatencyMode,
265
+ labelReasoningEffort,
266
+ payerSummaryForModel,
267
+ projectClientModelRows,
268
+ projectPickerRows,
269
+ runnableLatencyModesForModel,
270
+ sortPickerRows
271
+ } from "./chunk-WMGF4Z7X.js";
272
272
  import {
273
273
  cn
274
274
  } from "./chunk-22KP6LR5.js";
@@ -8431,11 +8431,11 @@ import {
8431
8431
  } from "lucide-react";
8432
8432
  import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
8433
8433
  var LazyBrowserViewer = lazy2(async () => {
8434
- const { BrowserViewer } = await import("./browser-viewer-MKKFRRRV.js");
8434
+ const { BrowserViewer } = await import("./browser-viewer-E5DDEFQ4.js");
8435
8435
  return { default: BrowserViewer };
8436
8436
  });
8437
8437
  var LazyComputerViewer = lazy2(async () => {
8438
- const { ComputerViewer } = await import("./computer-viewer-FWEZISW4.js");
8438
+ const { ComputerViewer } = await import("./computer-viewer-7TEZC6Y2.js");
8439
8439
  return { default: ComputerViewer };
8440
8440
  });
8441
8441
  var WORKBENCH_TAB_CHANGES = "changes";
@@ -8617,6 +8617,7 @@ function useSandboxWorkspaceTabs(options) {
8617
8617
  );
8618
8618
  const warmIntents = storedWarmIntents.sessionId === sessionId ? storedWarmIntents : emptyWarmIntents(sessionId);
8619
8619
  const { warmTerminal, warmFiles } = warmIntents;
8620
+ const filesWarmRequested = warmFiles || Boolean(requestedFilePath);
8620
8621
  const requestWarmIntent = useCallback25(
8621
8622
  (intent) => {
8622
8623
  setStoredWarmIntents((previous) => {
@@ -8626,9 +8627,6 @@ function useSandboxWorkspaceTabs(options) {
8626
8627
  },
8627
8628
  [sessionId]
8628
8629
  );
8629
- useEffect20(() => {
8630
- if (requestedFilePath) requestWarmIntent("warmFiles");
8631
- }, [requestWarmIntent, requestedFilePath, requestedFileRequestId]);
8632
8630
  const machines = useMachines({
8633
8631
  workspaceId,
8634
8632
  sessionId,
@@ -8643,7 +8641,7 @@ function useSandboxWorkspaceTabs(options) {
8643
8641
  attachTerminal: terminalEnabled && warmTerminal,
8644
8642
  // Explicit live-file intent only — NOT "the Files tab is open". A cold edit
8645
8643
  // or guarded-file open wakes the box; a glance at the tree/diff does not.
8646
- attachFiles: workspaceDataEnabled && warmFiles
8644
+ attachFiles: workspaceDataEnabled && filesWarmRequested
8647
8645
  });
8648
8646
  const capabilities = caps.capabilities;
8649
8647
  const liveness = capabilities?.liveness;
@@ -8764,7 +8762,7 @@ function useSandboxWorkspaceTabs(options) {
8764
8762
  capabilitiesState: caps.state,
8765
8763
  activeMachineState: activeMachine?.state ?? null,
8766
8764
  activeIsSelfhosted: activeMachine?.kind === "selfhosted",
8767
- wantsWarm: terminalEnabled && warmTerminal || workspaceDataEnabled && warmFiles,
8765
+ wantsWarm: terminalEnabled && warmTerminal || workspaceDataEnabled && filesWarmRequested,
8768
8766
  capturedAt: captureState.capturedAt
8769
8767
  });
8770
8768
  const workspaceWaking = chip.state === "waking";