open-agents-ai 0.184.62 → 0.184.63
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.js +12 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50247,6 +50247,18 @@ async function handleSponsoredEndpoint(ctx, local) {
|
|
|
50247
50247
|
}
|
|
50248
50248
|
} catch {
|
|
50249
50249
|
}
|
|
50250
|
+
const seenNames = /* @__PURE__ */ new Map();
|
|
50251
|
+
const deduped = [];
|
|
50252
|
+
for (const sp of sponsors) {
|
|
50253
|
+
const existing = seenNames.get(sp.name);
|
|
50254
|
+
if (existing !== void 0) {
|
|
50255
|
+
continue;
|
|
50256
|
+
}
|
|
50257
|
+
seenNames.set(sp.name, deduped.length);
|
|
50258
|
+
deduped.push(sp);
|
|
50259
|
+
}
|
|
50260
|
+
sponsors.length = 0;
|
|
50261
|
+
sponsors.push(...deduped);
|
|
50250
50262
|
process.stdout.write("\n");
|
|
50251
50263
|
if (sponsors.length === 0) {
|
|
50252
50264
|
renderInfo("No sponsored endpoints found on the nexus mesh.");
|
package/package.json
CHANGED