open-agents-ai 0.184.61 → 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 +19 -4
- 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.");
|
|
@@ -53130,7 +53142,7 @@ var init_banner = __esm({
|
|
|
53130
53142
|
if (!frame)
|
|
53131
53143
|
return;
|
|
53132
53144
|
this.width = process.stdout.columns ?? 80;
|
|
53133
|
-
let buf = "\
|
|
53145
|
+
let buf = "\x1B[?25l";
|
|
53134
53146
|
for (let r = 0; r < this.rows; r++) {
|
|
53135
53147
|
buf += `\x1B[${r + 1};1H\x1B[2K`;
|
|
53136
53148
|
const row = frame.grid[r];
|
|
@@ -53171,9 +53183,10 @@ var init_banner = __esm({
|
|
|
53171
53183
|
const versionFg = ramp[versionIdx];
|
|
53172
53184
|
const updateFg = ramp[updateIdx];
|
|
53173
53185
|
const bgDark = 234;
|
|
53174
|
-
const
|
|
53186
|
+
const storedVersion = this.currentDesign.version ?? "";
|
|
53187
|
+
const vText = ` OA v${storedVersion}`;
|
|
53175
53188
|
const vStart = 3;
|
|
53176
|
-
const vLen = vText.length
|
|
53189
|
+
const vLen = vText.length;
|
|
53177
53190
|
buf += `\x1B[1;${vStart}H\x1B[1;38;5;${versionFg}m\x1B[48;5;${bgDark}m`;
|
|
53178
53191
|
for (let c3 = vStart - 1; c3 < vStart - 1 + vLen && c3 < this.width; c3++) {
|
|
53179
53192
|
const cell = frame.grid[0]?.[c3];
|
|
@@ -53203,7 +53216,9 @@ var init_banner = __esm({
|
|
|
53203
53216
|
}
|
|
53204
53217
|
buf += "\x1B[0m";
|
|
53205
53218
|
}
|
|
53206
|
-
|
|
53219
|
+
const termRows = process.stdout.rows ?? 24;
|
|
53220
|
+
const footerHeight = 3;
|
|
53221
|
+
buf += `\x1B[${termRows - footerHeight};1H\x1B[0m\x1B[?25h`;
|
|
53207
53222
|
process.stdout.write(buf);
|
|
53208
53223
|
if (this.onAfterRender)
|
|
53209
53224
|
this.onAfterRender();
|
package/package.json
CHANGED