@opengeni/react 7.1.0 → 7.1.2-canary.36079201993001
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/dist/artifacts-document.js +2 -2
- package/dist/artifacts-presentation.js +2 -2
- package/dist/artifacts-spreadsheet.js +2 -2
- package/dist/artifacts.js +4 -4
- package/dist/{browser-viewer-MN7MOYQT.js → browser-viewer-K2H3SLIW.js} +2 -2
- package/dist/{chunk-4ACTWOOW.js → chunk-6N3AZUOV.js} +31 -14
- package/dist/chunk-6N3AZUOV.js.map +1 -0
- package/dist/{chunk-KCGXPP5V.js → chunk-6P7T4RPE.js} +7 -3
- package/dist/chunk-6P7T4RPE.js.map +1 -0
- package/dist/{chunk-SHRCATV6.js → chunk-7J4DUR3E.js} +12 -5
- package/dist/chunk-7J4DUR3E.js.map +1 -0
- package/dist/{chunk-ZC2DK5SC.js → chunk-AWIX4UAC.js} +88 -7
- package/dist/chunk-AWIX4UAC.js.map +1 -0
- package/dist/{chunk-UQS7BGNQ.js → chunk-ETA37UZ7.js} +82 -11
- package/dist/chunk-ETA37UZ7.js.map +1 -0
- package/dist/{chunk-VR4Z73EU.js → chunk-G2SCXNXW.js} +9 -2
- package/dist/chunk-G2SCXNXW.js.map +1 -0
- package/dist/{chunk-5UONOQ3Y.js → chunk-K3MQZO7R.js} +150 -67
- package/dist/chunk-K3MQZO7R.js.map +1 -0
- package/dist/{chunk-OWHPKAOV.js → chunk-L6MYP3QU.js} +4 -2
- package/dist/{chunk-OWHPKAOV.js.map → chunk-L6MYP3QU.js.map} +1 -1
- package/dist/{chunk-VI7HELBI.js → chunk-SJ5HE4ZA.js} +21 -2
- package/dist/chunk-SJ5HE4ZA.js.map +1 -0
- package/dist/{chunk-XMXRI5JK.js → chunk-ZZ4744OZ.js} +128 -71
- package/dist/chunk-ZZ4744OZ.js.map +1 -0
- package/dist/components/artifacts/artifact-surface.d.ts +3 -1
- package/dist/components/artifacts/document-editor.d.ts +4 -2
- package/dist/components/artifacts/editable-document.d.ts +1 -1
- package/dist/components/artifacts/editable-presentation.d.ts +1 -1
- package/dist/components/artifacts/editable-spreadsheet.d.ts +2 -1
- package/dist/components/artifacts/presentation-editor.d.ts +4 -2
- package/dist/components/browser-viewer.d.ts +4 -1
- package/dist/components/markdown.d.ts +2 -0
- package/dist/components/session-capability-frame.d.ts +5 -1
- package/dist/composer.js +1 -1
- package/dist/connect.js +2 -2
- package/dist/hooks/use-browser-session.d.ts +3 -0
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/interaction.js +1 -1
- package/dist/session-ui.js +4 -4
- package/dist/session.js +1 -1
- package/dist/timeline/types.d.ts +2 -0
- package/package.json +3 -3
- package/src/components/artifacts/artifact-surface.tsx +39 -19
- package/src/components/artifacts/document-editor.tsx +77 -9
- package/src/components/artifacts/editable-document.tsx +3 -0
- package/src/components/artifacts/editable-presentation.tsx +3 -0
- package/src/components/artifacts/editable-spreadsheet.tsx +3 -0
- package/src/components/artifacts/presentation-editor.tsx +6 -0
- package/src/components/browser-viewer.tsx +11 -5
- package/src/components/composer-transcription-control.tsx +4 -2
- package/src/components/composer.tsx +20 -9
- package/src/components/markdown.tsx +9 -2
- package/src/components/sandbox-workspace.tsx +1 -0
- package/src/components/session-capability-frame.tsx +11 -3
- package/src/components/session-mcp-capability-card.tsx +174 -70
- package/src/hooks/use-browser-frame-stream.ts +3 -1
- package/src/hooks/use-browser-session.ts +107 -3
- package/src/hooks/use-voice-input.ts +12 -1
- package/src/timeline/compaction-copy.ts +2 -0
- package/src/timeline/parsers.ts +2 -2
- package/src/timeline/projection.ts +31 -5
- package/src/timeline/tool-renderers.tsx +105 -16
- package/src/timeline/turn-summary.tsx +10 -2
- package/src/timeline/types.ts +2 -0
- package/styles/compiled.css +6 -0
- package/styles/session-capability.css +2 -0
- package/dist/chunk-4ACTWOOW.js.map +0 -1
- package/dist/chunk-5UONOQ3Y.js.map +0 -1
- package/dist/chunk-KCGXPP5V.js.map +0 -1
- package/dist/chunk-SHRCATV6.js.map +0 -1
- package/dist/chunk-UQS7BGNQ.js.map +0 -1
- package/dist/chunk-VI7HELBI.js.map +0 -1
- package/dist/chunk-VR4Z73EU.js.map +0 -1
- package/dist/chunk-XMXRI5JK.js.map +0 -1
- package/dist/chunk-ZC2DK5SC.js.map +0 -1
- /package/dist/{browser-viewer-MN7MOYQT.js.map → browser-viewer-K2H3SLIW.js.map} +0 -0
|
@@ -1053,6 +1053,7 @@ ${message}` : message;
|
|
|
1053
1053
|
case "tool.auth_needed":
|
|
1054
1054
|
case "credential.auth_needed": {
|
|
1055
1055
|
const capability = capabilityAuthorizationRequest(payload.capability);
|
|
1056
|
+
const setupRequest = customMcpSetupRequest(payload.setupRequest);
|
|
1056
1057
|
if (event.type === "tool.auth_needed" && !stringValue(payload.toolName) && stringValue(payload.serverId) !== "codex_apps") {
|
|
1057
1058
|
break;
|
|
1058
1059
|
}
|
|
@@ -1064,7 +1065,7 @@ ${message}` : message;
|
|
|
1064
1065
|
serverId: typeof payload.serverId === "string" ? payload.serverId : null,
|
|
1065
1066
|
canonicalServerId: typeof payload.canonicalServerId === "string" ? payload.canonicalServerId : null,
|
|
1066
1067
|
connectionSubjectScope: payload.connectionSubjectScope === "subject" || payload.connectionSubjectScope === "workspace" ? payload.connectionSubjectScope : null,
|
|
1067
|
-
source: capability ? "capability" : event.type === "tool.auth_needed" ? "tool" : "credential",
|
|
1068
|
+
source: capability || setupRequest ? "capability" : event.type === "tool.auth_needed" ? "tool" : "credential",
|
|
1068
1069
|
providerDomain: stringValue(payload.providerDomain),
|
|
1069
1070
|
connectionId: typeof payload.connectionId === "string" ? payload.connectionId : null,
|
|
1070
1071
|
authoritySource: payload.authoritySource === "host" ? "host" : null,
|
|
@@ -1076,6 +1077,7 @@ ${message}` : message;
|
|
|
1076
1077
|
toolName: typeof payload.toolName === "string" ? payload.toolName : null,
|
|
1077
1078
|
authorizationUrl: typeof payload.authorizationUrl === "string" ? payload.authorizationUrl : null,
|
|
1078
1079
|
capability,
|
|
1080
|
+
setupRequest,
|
|
1079
1081
|
occurredAt: event.occurredAt
|
|
1080
1082
|
});
|
|
1081
1083
|
break;
|
|
@@ -2154,6 +2156,23 @@ function capabilityAuthorizationRequest(value) {
|
|
|
2154
2156
|
requiredVariables: stringList(record.requiredVariables)
|
|
2155
2157
|
};
|
|
2156
2158
|
}
|
|
2159
|
+
function customMcpSetupRequest(value) {
|
|
2160
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return null;
|
|
2161
|
+
const input = value;
|
|
2162
|
+
if (input.kind !== "mcp" || typeof input.name !== "string" || typeof input.rationale !== "string" || typeof input.endpointUrl !== "string")
|
|
2163
|
+
return null;
|
|
2164
|
+
try {
|
|
2165
|
+
if (new URL(input.endpointUrl).protocol !== "https:") return null;
|
|
2166
|
+
} catch {
|
|
2167
|
+
return null;
|
|
2168
|
+
}
|
|
2169
|
+
return {
|
|
2170
|
+
kind: "mcp",
|
|
2171
|
+
name: input.name,
|
|
2172
|
+
endpointUrl: input.endpointUrl,
|
|
2173
|
+
rationale: input.rationale
|
|
2174
|
+
};
|
|
2175
|
+
}
|
|
2157
2176
|
function stringList(value) {
|
|
2158
2177
|
return Array.isArray(value) ? value.filter((entry) => typeof entry === "string" && entry.trim().length > 0) : [];
|
|
2159
2178
|
}
|
|
@@ -3969,4 +3988,4 @@ export {
|
|
|
3969
3988
|
useHumanInputRequests,
|
|
3970
3989
|
conversationTimeline
|
|
3971
3990
|
};
|
|
3972
|
-
//# sourceMappingURL=chunk-
|
|
3991
|
+
//# sourceMappingURL=chunk-SJ5HE4ZA.js.map
|