open-agents-ai 0.186.35 → 0.186.36
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 +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5933,7 +5933,7 @@ async function handleCmd(cmd) {
|
|
|
5933
5933
|
}
|
|
5934
5934
|
}
|
|
5935
5935
|
|
|
5936
|
-
writeResp(id, { ok: true, output:
|
|
5936
|
+
writeResp(id, { ok: true, output: JSON.stringify({ sponsors: unique, count: unique.length }) });
|
|
5937
5937
|
break;
|
|
5938
5938
|
}
|
|
5939
5939
|
case 'discover_peers': {
|
|
@@ -53512,9 +53512,10 @@ async function handleSponsoredEndpoint(ctx, local) {
|
|
|
53512
53512
|
action: "sponsor_discover",
|
|
53513
53513
|
timeout_ms: "5000"
|
|
53514
53514
|
});
|
|
53515
|
-
|
|
53515
|
+
const discoverOutput = typeof discoverResult === "object" && discoverResult?.output ? String(discoverResult.output) : typeof discoverResult === "string" ? discoverResult : "";
|
|
53516
|
+
if (discoverOutput) {
|
|
53516
53517
|
try {
|
|
53517
|
-
const parsed = JSON.parse(
|
|
53518
|
+
const parsed = JSON.parse(discoverOutput);
|
|
53518
53519
|
const nexusSponsors = parsed.sponsors || [];
|
|
53519
53520
|
for (const ns of nexusSponsors) {
|
|
53520
53521
|
sponsors.push({
|
package/package.json
CHANGED