@opengeni/react 7.1.2-canary.36079201993001 → 7.1.2
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/{browser-viewer-K2H3SLIW.js → browser-viewer-TZ6T76E3.js} +2 -2
- package/dist/{chunk-6N3AZUOV.js → chunk-4ACTWOOW.js} +14 -31
- package/dist/chunk-4ACTWOOW.js.map +1 -0
- package/dist/{chunk-ETA37UZ7.js → chunk-CP6IFD2Z.js} +7 -4
- package/dist/chunk-CP6IFD2Z.js.map +1 -0
- package/dist/{chunk-AWIX4UAC.js → chunk-VHEY4CB3.js} +3 -5
- package/dist/{chunk-AWIX4UAC.js.map → chunk-VHEY4CB3.js.map} +1 -1
- package/dist/{chunk-SJ5HE4ZA.js → chunk-VI7HELBI.js} +2 -21
- package/dist/chunk-VI7HELBI.js.map +1 -0
- package/dist/composer.js +1 -1
- package/dist/index.js +4 -4
- package/dist/interaction.js +1 -1
- package/dist/session-ui.js +3 -3
- package/dist/session.js +1 -1
- package/dist/timeline/types.d.ts +0 -2
- package/package.json +3 -3
- package/src/components/browser-viewer.tsx +5 -1
- package/src/components/composer-transcription-control.tsx +2 -4
- package/src/components/composer.tsx +9 -20
- package/src/hooks/use-browser-frame-stream.ts +1 -3
- package/src/hooks/use-voice-input.ts +1 -12
- package/src/timeline/compaction-copy.ts +0 -2
- package/src/timeline/projection.ts +5 -31
- package/src/timeline/types.ts +0 -2
- package/dist/chunk-6N3AZUOV.js.map +0 -1
- package/dist/chunk-ETA37UZ7.js.map +0 -1
- package/dist/chunk-SJ5HE4ZA.js.map +0 -1
- /package/dist/{browser-viewer-K2H3SLIW.js.map → browser-viewer-TZ6T76E3.js.map} +0 -0
|
@@ -1053,7 +1053,6 @@ ${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);
|
|
1057
1056
|
if (event.type === "tool.auth_needed" && !stringValue(payload.toolName) && stringValue(payload.serverId) !== "codex_apps") {
|
|
1058
1057
|
break;
|
|
1059
1058
|
}
|
|
@@ -1065,7 +1064,7 @@ ${message}` : message;
|
|
|
1065
1064
|
serverId: typeof payload.serverId === "string" ? payload.serverId : null,
|
|
1066
1065
|
canonicalServerId: typeof payload.canonicalServerId === "string" ? payload.canonicalServerId : null,
|
|
1067
1066
|
connectionSubjectScope: payload.connectionSubjectScope === "subject" || payload.connectionSubjectScope === "workspace" ? payload.connectionSubjectScope : null,
|
|
1068
|
-
source: capability
|
|
1067
|
+
source: capability ? "capability" : event.type === "tool.auth_needed" ? "tool" : "credential",
|
|
1069
1068
|
providerDomain: stringValue(payload.providerDomain),
|
|
1070
1069
|
connectionId: typeof payload.connectionId === "string" ? payload.connectionId : null,
|
|
1071
1070
|
authoritySource: payload.authoritySource === "host" ? "host" : null,
|
|
@@ -1077,7 +1076,6 @@ ${message}` : message;
|
|
|
1077
1076
|
toolName: typeof payload.toolName === "string" ? payload.toolName : null,
|
|
1078
1077
|
authorizationUrl: typeof payload.authorizationUrl === "string" ? payload.authorizationUrl : null,
|
|
1079
1078
|
capability,
|
|
1080
|
-
setupRequest,
|
|
1081
1079
|
occurredAt: event.occurredAt
|
|
1082
1080
|
});
|
|
1083
1081
|
break;
|
|
@@ -2156,23 +2154,6 @@ function capabilityAuthorizationRequest(value) {
|
|
|
2156
2154
|
requiredVariables: stringList(record.requiredVariables)
|
|
2157
2155
|
};
|
|
2158
2156
|
}
|
|
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
|
-
}
|
|
2176
2157
|
function stringList(value) {
|
|
2177
2158
|
return Array.isArray(value) ? value.filter((entry) => typeof entry === "string" && entry.trim().length > 0) : [];
|
|
2178
2159
|
}
|
|
@@ -3988,4 +3969,4 @@ export {
|
|
|
3988
3969
|
useHumanInputRequests,
|
|
3989
3970
|
conversationTimeline
|
|
3990
3971
|
};
|
|
3991
|
-
//# sourceMappingURL=chunk-
|
|
3972
|
+
//# sourceMappingURL=chunk-VI7HELBI.js.map
|