@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.
@@ -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 || setupRequest ? "capability" : event.type === "tool.auth_needed" ? "tool" : "credential",
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-SJ5HE4ZA.js.map
3972
+ //# sourceMappingURL=chunk-VI7HELBI.js.map