@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
@@ -64,6 +64,22 @@ function isRecord(value) {
64
64
  return Boolean(value) && typeof value === "object" && !Array.isArray(value);
65
65
  }
66
66
 
67
+ // src/timeline/tool-display-name.ts
68
+ function mcpToolLeaf(name) {
69
+ const boundary = name.indexOf("__");
70
+ return boundary >= 0 ? name.slice(boundary + 2) : name;
71
+ }
72
+ function toolMatchesLeaf(wireName, leaf) {
73
+ return wireName === leaf || wireName.endsWith(`__${leaf}`);
74
+ }
75
+ function toolDisplayName(name) {
76
+ const phrase = mcpToolLeaf(name).replace(/[_-]+/g, " ").trim();
77
+ if (!phrase) {
78
+ return name;
79
+ }
80
+ return phrase.charAt(0).toUpperCase() + phrase.slice(1);
81
+ }
82
+
67
83
  // src/older-history.ts
68
84
  var activeReceiptCapture;
69
85
  var preserveTailForAutomaticLoad = false;
@@ -106,22 +122,6 @@ function createOlderHistoryLoadReceipt(load) {
106
122
  return result;
107
123
  }
108
124
 
109
- // src/timeline/tool-display-name.ts
110
- function mcpToolLeaf(name) {
111
- const boundary = name.indexOf("__");
112
- return boundary >= 0 ? name.slice(boundary + 2) : name;
113
- }
114
- function toolMatchesLeaf(wireName, leaf) {
115
- return wireName === leaf || wireName.endsWith(`__${leaf}`);
116
- }
117
- function toolDisplayName(name) {
118
- const phrase = mcpToolLeaf(name).replace(/[_-]+/g, " ").trim();
119
- if (!phrase) {
120
- return name;
121
- }
122
- return phrase.charAt(0).toUpperCase() + phrase.slice(1);
123
- }
124
-
125
125
  // src/timeline/projection.ts
126
126
  import {
127
127
  parseMediaGenerationResult
@@ -1167,6 +1167,40 @@ ${message}` : message;
1167
1167
  }
1168
1168
  break;
1169
1169
  }
1170
+ case "instruction.confirmation.recovered": {
1171
+ const receipt = asRecord2(payload.receipt);
1172
+ if (receipt.outcome !== "published") break;
1173
+ closeStreamingTail();
1174
+ items.push({
1175
+ kind: "notice",
1176
+ id: event.id,
1177
+ tone: "input",
1178
+ text: "Your previously approved workspace instruction was saved.",
1179
+ occurredAt: event.occurredAt
1180
+ });
1181
+ break;
1182
+ }
1183
+ case "knowledge.confirmation.recovered":
1184
+ case "knowledge.source.prepared":
1185
+ case "knowledge.source.failed": {
1186
+ const receipt = asRecord2(payload.receipt);
1187
+ const outcome = event.type === "knowledge.source.failed" ? "failed" : receipt.outcome;
1188
+ if (event.type !== "knowledge.confirmation.recovered" && typeof payload.fileId !== "string" || !["published", "pending", "rejected", "archived", "failed"].includes(String(outcome)))
1189
+ break;
1190
+ closeStreamingTail();
1191
+ items.push({
1192
+ kind: "knowledge",
1193
+ id: event.id,
1194
+ turnId,
1195
+ fileId: typeof payload.fileId === "string" ? payload.fileId : void 0,
1196
+ filename: typeof payload.filename === "string" ? payload.filename : void 0,
1197
+ entryId: typeof receipt.entryId === "string" ? receipt.entryId : void 0,
1198
+ status: outcome === "failed" ? "failed" : "complete",
1199
+ outcome,
1200
+ occurredAt: event.occurredAt
1201
+ });
1202
+ break;
1203
+ }
1170
1204
  case "memory.saved":
1171
1205
  case "memory.corrected": {
1172
1206
  const memory = memoryItem(event.id, event.type, turnId, payload, event.occurredAt);
@@ -1400,6 +1434,7 @@ function isActivityItem(item) {
1400
1434
  case "sandbox":
1401
1435
  case "startup-phase":
1402
1436
  case "memory":
1437
+ case "knowledge":
1403
1438
  case "fleet-decision":
1404
1439
  return true;
1405
1440
  default:
@@ -3699,10 +3734,10 @@ export {
3699
3734
  isActionableHumanInputRequest,
3700
3735
  humanInputRequestFromEvent,
3701
3736
  projectPendingHumanInputRequests,
3702
- invokeOlderHistoryLoaderWithReceiptCapture,
3703
- createOlderHistoryLoadReceipt,
3704
3737
  mcpToolLeaf,
3705
3738
  toolDisplayName,
3739
+ invokeOlderHistoryLoaderWithReceiptCapture,
3740
+ createOlderHistoryLoadReceipt,
3706
3741
  buildTimeline,
3707
3742
  creditExhaustedFromEvents,
3708
3743
  sessionStatusFromEvents,
@@ -3721,4 +3756,4 @@ export {
3721
3756
  isHumanInputEvent,
3722
3757
  useHumanInputRequests
3723
3758
  };
3724
- //# sourceMappingURL=chunk-HUMIRRYI.js.map
3759
+ //# sourceMappingURL=chunk-PZ27MCZP.js.map