@agentxv2/sdk 0.5.2 → 0.5.4

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/index.mjs CHANGED
@@ -2314,7 +2314,7 @@ var MultiEndpointClient = class {
2314
2314
  const endpoints = await this.getActiveEndpoints(agentId);
2315
2315
  if (endpoints.length === 0) return null;
2316
2316
  const http = endpoints.find((e) => e.protocol === "HTTP");
2317
- return http ?? endpoints[0];
2317
+ return http ?? endpoints[0] ?? null;
2318
2318
  }
2319
2319
  /** Pick any active endpoint URL — for MCP connector */
2320
2320
  async getBestMCPUrl(agentId) {