@opengeni/react 6.1.0 → 7.0.0-canary.35585322809001
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 +83 -2
- package/dist/artifacts-document.js +1 -1
- package/dist/artifacts-presentation.js +1 -1
- package/dist/artifacts-spreadsheet.js +1 -1
- package/dist/artifacts.js +3 -3
- package/dist/{browser-viewer-NTD6UIPR.js → browser-viewer-LGH4IP47.js} +3 -3
- package/dist/capability-catalog-row.d.ts +20 -0
- package/dist/capability-logo-fallback.d.ts +3 -0
- package/dist/{chunk-NOSYBS2D.js → chunk-2VHARTBL.js} +2 -1
- package/dist/{chunk-VRBL3F5E.js → chunk-5GAL23FF.js} +10 -2
- package/dist/{chunk-VRBL3F5E.js.map → chunk-5GAL23FF.js.map} +1 -1
- package/dist/chunk-5UONOQ3Y.js +635 -0
- package/dist/chunk-5UONOQ3Y.js.map +1 -0
- package/dist/{chunk-NYESIADM.js → chunk-AKOMC3VO.js} +3 -3
- package/dist/chunk-AKOMC3VO.js.map +1 -0
- package/dist/chunk-BRM6FVZA.js +302 -0
- package/dist/chunk-BRM6FVZA.js.map +1 -0
- package/dist/{chunk-TDSEILUH.js → chunk-D5NOQPLR.js} +1289 -1530
- package/dist/chunk-D5NOQPLR.js.map +1 -0
- package/dist/chunk-D7GAPJ3V.js +1558 -0
- package/dist/chunk-D7GAPJ3V.js.map +1 -0
- package/dist/{chunk-5M6VTFJ5.js → chunk-GBPCZH3Y.js} +2 -2
- package/dist/{chunk-YBM6CQRU.js → chunk-GEN54DU5.js} +4 -4
- package/dist/{chunk-UMECRJRV.js → chunk-HJ5VJ4JB.js} +21 -12
- package/dist/chunk-HJ5VJ4JB.js.map +1 -0
- package/dist/{chunk-R4KRSFGA.js → chunk-IP4BUBKH.js} +3 -3
- package/dist/{chunk-KANFU34B.js → chunk-IYUPN32E.js} +6 -2
- package/dist/chunk-IYUPN32E.js.map +1 -0
- package/dist/{chunk-L2NBTKRX.js → chunk-JKLGJQO5.js} +193 -12
- package/dist/chunk-JKLGJQO5.js.map +1 -0
- package/dist/{chunk-NLTS7JHI.js → chunk-JPHDWKZE.js} +5 -5
- package/dist/{chunk-ICA6R6TW.js → chunk-OWHPKAOV.js} +28 -20
- package/dist/chunk-OWHPKAOV.js.map +1 -0
- package/dist/{chunk-24M4YBCL.js → chunk-PNAVEK2U.js} +4 -4
- package/dist/{chunk-45XEUVTK.js → chunk-UXE5SSNN.js} +293 -463
- package/dist/chunk-UXE5SSNN.js.map +1 -0
- package/dist/{chunk-PEI6RANI.js → chunk-VR4Z73EU.js} +203 -9
- package/dist/chunk-VR4Z73EU.js.map +1 -0
- package/dist/{chunk-HUIKIDM5.js → chunk-XMXRI5JK.js} +65 -18
- package/dist/chunk-XMXRI5JK.js.map +1 -0
- package/dist/client.d.ts +1 -1
- package/dist/components/artifacts/spreadsheet-general-display.d.ts +24 -0
- package/dist/components/chat-composer.d.ts +13 -3
- package/dist/components/markdown.d.ts +4 -3
- package/dist/components/message-timeline.d.ts +7 -2
- package/dist/components/preview-loading.d.ts +2 -0
- package/dist/components/session-capability-frame.d.ts +24 -0
- package/dist/components/session-chrome.d.ts +1 -2
- package/dist/components/session-commands.d.ts +6 -0
- package/dist/components/session-connection-request.d.ts +8 -0
- package/dist/components/session-mcp-capability-card.d.ts +22 -0
- package/dist/components/timeline-search.d.ts +34 -0
- package/dist/composer.js +7 -7
- package/dist/connect-account-identity.d.ts +8 -0
- package/dist/connect-accounts.d.ts +5 -0
- package/dist/connect-chooser.d.ts +6 -0
- package/dist/connect-panel.d.ts +9 -2
- package/dist/connect-setup.d.ts +5 -1
- package/dist/connect.d.ts +5 -21
- package/dist/connect.js +1268 -584
- package/dist/connect.js.map +1 -1
- package/dist/connection-catalog.d.ts +6 -1
- package/dist/connection-discovery.d.ts +12 -0
- package/dist/connection-installed.d.ts +1 -0
- package/dist/connection-logo.d.ts +5 -2
- 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/discovery-cache.d.ts +5 -0
- package/dist/hooks/use-codex-accounts.d.ts +11 -5
- package/dist/hooks/use-connect.d.ts +22 -0
- package/dist/hooks/use-session-events.d.ts +5 -0
- package/dist/hooks/use-session-mcp-approval-policy.d.ts +2 -2
- package/dist/hooks/use-workspace-sessions.d.ts +2 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.js +771 -793
- package/dist/index.js.map +1 -1
- package/dist/interaction.js +2 -2
- package/dist/machines.js +2 -2
- package/dist/mcp-connection-status.d.ts +14 -0
- package/dist/{model-policy-picker-menu-3R336DP2.js → model-policy-picker-menu-RVOQ4ZZG.js} +4 -4
- package/dist/model-policy.d.ts +6 -2
- package/dist/model-policy.js +1 -1
- package/dist/{platform-activity-row-DUE2W74J.js → platform-activity-row-HLOH7FW4.js} +9 -4
- package/dist/platform-activity-row-HLOH7FW4.js.map +1 -0
- package/dist/plugin-discovery.d.ts +6 -0
- package/dist/{queue-surface-implementation-LK3S4BIW.js → queue-surface-implementation-3RIFK2BS.js} +4 -4
- package/dist/realtime.js +22 -22
- package/dist/realtime.js.map +1 -1
- package/dist/session-auth-recommendation.d.ts +5 -0
- package/dist/session-capability-policy.d.ts +12 -0
- package/dist/session-ui.d.ts +2 -0
- package/dist/session-ui.js +14 -12
- package/dist/session.d.ts +1 -0
- package/dist/session.js +6 -4
- package/dist/skill-discovery.d.ts +11 -0
- package/dist/timeline/compaction-copy.d.ts +10 -0
- package/dist/timeline/projection.d.ts +3 -1
- package/dist/timeline/turn-summary.d.ts +2 -2
- package/dist/timeline/types.d.ts +22 -1
- package/dist/{timeline-annotation-markers-DRSTLEM6.js → timeline-annotation-markers-OY6OWR3V.js} +2 -2
- package/dist/{timeline-annotation-selection-IHLUGVND.js → timeline-annotation-selection-BOXA2TIN.js} +2 -2
- package/dist/{timeline-annotations-dialog-6Q53N5FG.js → timeline-annotations-dialog-RGY3MHL3.js} +3 -3
- package/package.json +3 -3
- 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 +0 -9
- package/src/components/artifacts/document-editor.tsx +63 -6
- package/src/components/artifacts/presentation-editor.tsx +214 -9
- package/src/components/artifacts/spreadsheet-canvas.ts +3 -8
- package/src/components/artifacts/spreadsheet-general-display.ts +43 -0
- package/src/components/artifacts/spreadsheet-grid.tsx +10 -11
- package/src/components/chat-composer.tsx +26 -3
- package/src/components/composer.tsx +10 -4
- package/src/components/human-input-form.tsx +12 -2
- package/src/components/markdown.tsx +86 -4
- package/src/components/message-timeline.tsx +104 -36
- package/src/components/model-picker.tsx +11 -3
- package/src/components/model-policy-picker-menu.tsx +10 -3
- package/src/components/preview-loading.tsx +154 -0
- package/src/components/sandbox-workspace.tsx +20 -36
- package/src/components/session-capability-frame.tsx +163 -0
- package/src/components/session-chrome.tsx +46 -77
- package/src/components/session-commands.tsx +18 -0
- package/src/components/session-connection-request.tsx +97 -0
- package/src/components/session-conversation.tsx +5 -4
- package/src/components/session-mcp-capability-card.tsx +532 -0
- package/src/components/session-status.tsx +2 -2
- package/src/components/timeline-anchor.tsx +9 -8
- package/src/components/timeline-search.tsx +168 -0
- package/src/components/user-message-body.tsx +7 -0
- package/src/connect-account-identity.tsx +34 -0
- package/src/connect-accounts.tsx +114 -52
- package/src/connect-chooser.tsx +171 -39
- package/src/connect-panel.tsx +73 -9
- package/src/connect-setup.tsx +72 -25
- package/src/connect.ts +13 -22
- package/src/connection-assets.d.ts +4 -0
- package/src/connection-catalog.tsx +61 -39
- package/src/connection-discovery.tsx +235 -0
- package/src/connection-installed.tsx +2 -0
- package/src/connection-logo.tsx +18 -10
- 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/conversation-timeline.ts +1 -0
- package/src/discovery-cache.ts +42 -0
- package/src/hooks/use-codex-accounts.ts +33 -14
- package/src/hooks/use-composer.ts +4 -5
- package/src/hooks/use-connect.ts +23 -0
- package/src/hooks/use-session-events.ts +114 -1
- package/src/hooks/use-session-mcp-approval-policy.ts +13 -5
- package/src/hooks/use-workspace-sessions.ts +10 -0
- package/src/index.ts +22 -2
- package/src/mcp-connection-status.ts +35 -0
- package/src/model-policy.ts +21 -0
- package/src/plugin-details.tsx +8 -5
- package/src/plugin-discovery.tsx +92 -72
- package/src/realtime/realtime-control.tsx +6 -8
- package/src/session-auth-recommendation.ts +48 -0
- package/src/session-capability-policy.ts +83 -0
- package/src/session-ui.ts +2 -0
- package/src/session.ts +1 -0
- package/src/skill-discovery.tsx +101 -56
- package/src/timeline/compaction-copy.ts +40 -0
- package/src/timeline/platform-activity-row.tsx +8 -3
- package/src/timeline/projection.ts +74 -2
- package/src/timeline/shared.tsx +6 -1
- package/src/timeline/startup-timings.tsx +1 -1
- package/src/timeline/turn-summary.tsx +17 -3
- package/src/timeline/types.ts +22 -2
- package/styles/compiled.css +325 -27
- package/styles/connect.css +90 -15
- package/styles/index.css +46 -0
- package/styles/session-capability.css +42 -0
- package/dist/chunk-45XEUVTK.js.map +0 -1
- package/dist/chunk-HQV2I5HV.js +0 -124
- package/dist/chunk-HQV2I5HV.js.map +0 -1
- package/dist/chunk-HUIKIDM5.js.map +0 -1
- package/dist/chunk-ICA6R6TW.js.map +0 -1
- package/dist/chunk-IHQII5WO.js +0 -886
- package/dist/chunk-IHQII5WO.js.map +0 -1
- package/dist/chunk-KANFU34B.js.map +0 -1
- package/dist/chunk-L2NBTKRX.js.map +0 -1
- package/dist/chunk-NYESIADM.js.map +0 -1
- package/dist/chunk-PEI6RANI.js.map +0 -1
- package/dist/chunk-TDSEILUH.js.map +0 -1
- package/dist/chunk-UMECRJRV.js.map +0 -1
- package/dist/hooks/use-packs.d.ts +0 -32
- package/dist/platform-activity-row-DUE2W74J.js.map +0 -1
- package/src/hooks/use-packs.ts +0 -157
- /package/dist/{browser-viewer-NTD6UIPR.js.map → browser-viewer-LGH4IP47.js.map} +0 -0
- /package/dist/{chunk-NOSYBS2D.js.map → chunk-2VHARTBL.js.map} +0 -0
- /package/dist/{chunk-5M6VTFJ5.js.map → chunk-GBPCZH3Y.js.map} +0 -0
- /package/dist/{chunk-YBM6CQRU.js.map → chunk-GEN54DU5.js.map} +0 -0
- /package/dist/{chunk-R4KRSFGA.js.map → chunk-IP4BUBKH.js.map} +0 -0
- /package/dist/{chunk-NLTS7JHI.js.map → chunk-JPHDWKZE.js.map} +0 -0
- /package/dist/{chunk-24M4YBCL.js.map → chunk-PNAVEK2U.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-3R336DP2.js.map → model-policy-picker-menu-RVOQ4ZZG.js.map} +0 -0
- /package/dist/{queue-surface-implementation-LK3S4BIW.js.map → queue-surface-implementation-3RIFK2BS.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-DRSTLEM6.js.map → timeline-annotation-markers-OY6OWR3V.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-IHLUGVND.js.map → timeline-annotation-selection-BOXA2TIN.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-6Q53N5FG.js.map → timeline-annotations-dialog-RGY3MHL3.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
formatBytes,
|
|
3
|
-
formatRelativeTime
|
|
4
|
-
} from "./chunk-PLYRL5ER.js";
|
|
5
1
|
import {
|
|
6
2
|
useMutationRunner,
|
|
7
3
|
usePageLiveActivity
|
|
8
4
|
} from "./chunk-KZ73RL76.js";
|
|
5
|
+
import {
|
|
6
|
+
formatBytes,
|
|
7
|
+
formatRelativeTime
|
|
8
|
+
} from "./chunk-PLYRL5ER.js";
|
|
9
9
|
import {
|
|
10
10
|
useOpenGeni
|
|
11
11
|
} from "./chunk-NEXLLTP4.js";
|
|
@@ -2442,4 +2442,4 @@ export {
|
|
|
2442
2442
|
EnrollmentDeviceFlow,
|
|
2443
2443
|
EnrollmentConsent
|
|
2444
2444
|
};
|
|
2445
|
-
//# sourceMappingURL=chunk-
|
|
2445
|
+
//# sourceMappingURL=chunk-JPHDWKZE.js.map
|
|
@@ -21,6 +21,26 @@ import {
|
|
|
21
21
|
useState
|
|
22
22
|
} from "react";
|
|
23
23
|
|
|
24
|
+
// src/components/artifacts/spreadsheet-general-display.ts
|
|
25
|
+
function formatSpreadsheetGeneralDisplay(value) {
|
|
26
|
+
if (value === null || value === void 0) return "";
|
|
27
|
+
if (value instanceof Date) return Number.isNaN(value.getTime()) ? "" : value.toLocaleDateString();
|
|
28
|
+
if (typeof value === "boolean") return value ? "TRUE" : "FALSE";
|
|
29
|
+
if (typeof value === "number") {
|
|
30
|
+
if (Object.is(value, -0) || value === 0) return "0";
|
|
31
|
+
if (!Number.isFinite(value)) return String(value);
|
|
32
|
+
const rounded = Number(value.toPrecision(15));
|
|
33
|
+
return String(Number.isFinite(rounded) ? rounded : value);
|
|
34
|
+
}
|
|
35
|
+
return String(value);
|
|
36
|
+
}
|
|
37
|
+
function spreadsheetCellEditSource(value) {
|
|
38
|
+
if (value === null || value === void 0) return "";
|
|
39
|
+
if (value instanceof Date) return Number.isNaN(value.getTime()) ? "" : value.toLocaleDateString();
|
|
40
|
+
if (typeof value === "boolean") return value ? "TRUE" : "FALSE";
|
|
41
|
+
return String(value);
|
|
42
|
+
}
|
|
43
|
+
|
|
24
44
|
// src/components/artifacts/spreadsheet-canvas.ts
|
|
25
45
|
var TILE_SIZE = 256;
|
|
26
46
|
var MAX_CACHE_PHYSICAL_PIXELS = 32e6;
|
|
@@ -266,7 +286,7 @@ var SpreadsheetCanvasRenderer = class {
|
|
|
266
286
|
paintTileGrid(context, input, tileLeft, tileTop, tileRight, tileBottom);
|
|
267
287
|
for (const cell of cells) {
|
|
268
288
|
const value = input.projection.valueAt(cell);
|
|
269
|
-
const text =
|
|
289
|
+
const text = formatSpreadsheetGeneralDisplay(value);
|
|
270
290
|
if (!text) continue;
|
|
271
291
|
paintCellText(context, input, cell, text, tileLeft, tileTop);
|
|
272
292
|
}
|
|
@@ -522,12 +542,6 @@ function ellipsize(context, input, maximumWidth) {
|
|
|
522
542
|
function finitePositive(value, fallback) {
|
|
523
543
|
return value !== void 0 && Number.isFinite(value) && value > 0 ? value : fallback;
|
|
524
544
|
}
|
|
525
|
-
function displayValue(value) {
|
|
526
|
-
if (value === null || value === void 0) return "";
|
|
527
|
-
if (value instanceof Date) return Number.isNaN(value.getTime()) ? "" : value.toLocaleDateString();
|
|
528
|
-
if (typeof value === "boolean") return value ? "TRUE" : "FALSE";
|
|
529
|
-
return String(value);
|
|
530
|
-
}
|
|
531
545
|
function columnName(index) {
|
|
532
546
|
let value = index + 1;
|
|
533
547
|
let result = "";
|
|
@@ -795,12 +809,6 @@ function isCellSelected(selection, row, col) {
|
|
|
795
809
|
const normalized = normalizeSelection(selection);
|
|
796
810
|
return row >= normalized.top && row <= normalized.bottom && col >= normalized.left && col <= normalized.right;
|
|
797
811
|
}
|
|
798
|
-
function displayValue2(value) {
|
|
799
|
-
if (value === null || value === void 0) return "";
|
|
800
|
-
if (value instanceof Date) return Number.isNaN(value.getTime()) ? "" : value.toLocaleDateString();
|
|
801
|
-
if (typeof value === "boolean") return value ? "TRUE" : "FALSE";
|
|
802
|
-
return String(value);
|
|
803
|
-
}
|
|
804
812
|
function parseCellInput(input) {
|
|
805
813
|
if (input === "") return null;
|
|
806
814
|
const normalized = input.trim();
|
|
@@ -1153,7 +1161,7 @@ function SpreadsheetGrid({
|
|
|
1153
1161
|
const data = worksheet.cellData(row, col);
|
|
1154
1162
|
return {
|
|
1155
1163
|
value: data.formula ? workbook.valueAt(worksheet, { row, col }) : data.value,
|
|
1156
|
-
input: data.formula ??
|
|
1164
|
+
input: data.formula ?? spreadsheetCellEditSource(data.value),
|
|
1157
1165
|
format: data.format
|
|
1158
1166
|
};
|
|
1159
1167
|
}
|
|
@@ -2219,7 +2227,7 @@ function SpreadsheetProjectionGrid({
|
|
|
2219
2227
|
role: "gridcell",
|
|
2220
2228
|
"aria-colindex": col + 1,
|
|
2221
2229
|
"aria-selected": selected,
|
|
2222
|
-
"aria-label": `${address}${value === null ? "" : `, ${
|
|
2230
|
+
"aria-label": `${address}${value === null ? "" : `, ${formatSpreadsheetGeneralDisplay(value)}`}`,
|
|
2223
2231
|
"data-og-cell": address,
|
|
2224
2232
|
className: cn(
|
|
2225
2233
|
"pointer-events-none absolute top-0 flex h-full min-w-0 overflow-hidden border-b border-r border-og-border px-1.5 text-og-fg",
|
|
@@ -2251,7 +2259,7 @@ function SpreadsheetProjectionGrid({
|
|
|
2251
2259
|
onPointerDown: (event) => event.stopPropagation(),
|
|
2252
2260
|
className: "pointer-events-auto absolute inset-0 size-full bg-og-surface-1 px-1.5 font-mono text-og-sm text-og-fg outline-hidden ring-2 ring-inset ring-og-accent"
|
|
2253
2261
|
}
|
|
2254
|
-
) : /* @__PURE__ */ jsx("span", { className: "block min-w-0 overflow-hidden text-ellipsis", children:
|
|
2262
|
+
) : /* @__PURE__ */ jsx("span", { className: "block min-w-0 overflow-hidden text-ellipsis", children: formatSpreadsheetGeneralDisplay(value) })
|
|
2255
2263
|
},
|
|
2256
2264
|
col
|
|
2257
2265
|
);
|
|
@@ -2268,7 +2276,7 @@ function SpreadsheetProjectionGrid({
|
|
|
2268
2276
|
role: "gridcell",
|
|
2269
2277
|
"aria-colindex": selection.focus.col + 1,
|
|
2270
2278
|
"aria-selected": "true",
|
|
2271
|
-
"aria-label": `${cellName(selection.focus)}${hiddenActiveValue == null ? "" : `, ${
|
|
2279
|
+
"aria-label": `${cellName(selection.focus)}${hiddenActiveValue == null ? "" : `, ${formatSpreadsheetGeneralDisplay(hiddenActiveValue)}`}`
|
|
2272
2280
|
}
|
|
2273
2281
|
) }) : null
|
|
2274
2282
|
]
|
|
@@ -2688,7 +2696,7 @@ function projectSdkViewport(sheet, metadataRevision, query, viewport, rowCount,
|
|
|
2688
2696
|
const cell = byCoordinate.get(`${row}:${column}`);
|
|
2689
2697
|
return cell ? {
|
|
2690
2698
|
value: cell.value,
|
|
2691
|
-
input: cell.formula ??
|
|
2699
|
+
input: cell.formula ?? displayValue(cell.value),
|
|
2692
2700
|
format: cell.format
|
|
2693
2701
|
} : null;
|
|
2694
2702
|
}
|
|
@@ -2799,7 +2807,7 @@ function boundedSheetCount(requested, maximum, usedEnd) {
|
|
|
2799
2807
|
const usedCount = usedEnd === void 0 || !Number.isSafeInteger(usedEnd) ? 1 : Math.max(1, Math.min(maximum, usedEnd + 1));
|
|
2800
2808
|
return Math.max(requestedCount, usedCount);
|
|
2801
2809
|
}
|
|
2802
|
-
function
|
|
2810
|
+
function displayValue(value) {
|
|
2803
2811
|
if (value === null || value === void 0) return "";
|
|
2804
2812
|
if (value instanceof Date) return Number.isNaN(value.getTime()) ? "" : value.toISOString();
|
|
2805
2813
|
if (typeof value === "boolean") return value ? "TRUE" : "FALSE";
|
|
@@ -2825,4 +2833,4 @@ export {
|
|
|
2825
2833
|
EditableSpreadsheetGrid,
|
|
2826
2834
|
EditableSpreadsheetArtifactSurface
|
|
2827
2835
|
};
|
|
2828
|
-
//# sourceMappingURL=chunk-
|
|
2836
|
+
//# sourceMappingURL=chunk-OWHPKAOV.js.map
|