open-agents-ai 0.184.99 → 0.185.1
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 +59 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -62091,8 +62091,10 @@ ${CONTENT_BG_SEQ}`);
|
|
|
62091
62091
|
for (let si = 0; si < this._suggestions.length; si++) {
|
|
62092
62092
|
const row = pos.suggestStartRow + si;
|
|
62093
62093
|
const cmd = this._suggestions[si];
|
|
62094
|
-
|
|
62095
|
-
buf +=
|
|
62094
|
+
buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K`;
|
|
62095
|
+
buf += `${PANEL_BG_SEQ}\x1B[38;5;${TEXT_DIM}m /`;
|
|
62096
|
+
buf += `\x1B[38;5;${TEXT_PRIMARY}m${cmd}`;
|
|
62097
|
+
buf += `${RESET}`;
|
|
62096
62098
|
}
|
|
62097
62099
|
} else {
|
|
62098
62100
|
buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildBufferContent(w)}${RESET}`;
|
|
@@ -62137,7 +62139,18 @@ ${CONTENT_BG_SEQ}`);
|
|
|
62137
62139
|
if (pos.tabBarRow > 0) {
|
|
62138
62140
|
buf += `\x1B[${pos.tabBarRow};1H${PANEL_BG_SEQ}\x1B[2K${RESET}`;
|
|
62139
62141
|
}
|
|
62140
|
-
|
|
62142
|
+
if (this._suggestions.length > 0 && pos.suggestStartRow > 0) {
|
|
62143
|
+
for (let si = 0; si < this._suggestions.length; si++) {
|
|
62144
|
+
const row = pos.suggestStartRow + si;
|
|
62145
|
+
const cmd = this._suggestions[si];
|
|
62146
|
+
buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K`;
|
|
62147
|
+
buf += `${PANEL_BG_SEQ}\x1B[38;5;${TEXT_DIM}m /`;
|
|
62148
|
+
buf += `\x1B[38;5;${TEXT_PRIMARY}m${cmd}${RESET}`;
|
|
62149
|
+
}
|
|
62150
|
+
} else {
|
|
62151
|
+
buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildBufferContent(w)}${RESET}`;
|
|
62152
|
+
}
|
|
62153
|
+
buf += `\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET}\x1B[?7h\x1B8` + // DEC restore cursor
|
|
62141
62154
|
(this.writeDepth === 0 ? "\x1B[?25h" : "");
|
|
62142
62155
|
this.termWrite(buf);
|
|
62143
62156
|
if (pos.tabBarRow > 0)
|
|
@@ -62487,6 +62500,15 @@ var init_mouse_filter = __esm({
|
|
|
62487
62500
|
i += mouseMatch[0].length;
|
|
62488
62501
|
continue;
|
|
62489
62502
|
}
|
|
62503
|
+
if (remaining.startsWith("\x1B[M")) {
|
|
62504
|
+
if (remaining.length >= 6) {
|
|
62505
|
+
if (this.onActivity)
|
|
62506
|
+
this.onActivity();
|
|
62507
|
+
i += 6;
|
|
62508
|
+
continue;
|
|
62509
|
+
}
|
|
62510
|
+
break;
|
|
62511
|
+
}
|
|
62490
62512
|
if (remaining.startsWith("\x1B[<") && remaining.length < 15) {
|
|
62491
62513
|
break;
|
|
62492
62514
|
}
|
|
@@ -62509,8 +62531,15 @@ var init_mouse_filter = __esm({
|
|
|
62509
62531
|
clearTimeout(this.flushTimer);
|
|
62510
62532
|
this.flushTimer = setTimeout(() => {
|
|
62511
62533
|
if (this.buffer.length > 0) {
|
|
62512
|
-
this.
|
|
62513
|
-
|
|
62534
|
+
if (this.buffer.startsWith("\x1B[<") || this.buffer.startsWith("\x1B[M")) {
|
|
62535
|
+
this.buffer = "";
|
|
62536
|
+
} else if (this.buffer === "\x1B" || this.buffer === "\x1B[") {
|
|
62537
|
+
this.push(this.buffer);
|
|
62538
|
+
this.buffer = "";
|
|
62539
|
+
} else {
|
|
62540
|
+
this.push(this.buffer);
|
|
62541
|
+
this.buffer = "";
|
|
62542
|
+
}
|
|
62514
62543
|
}
|
|
62515
62544
|
}, 50);
|
|
62516
62545
|
}
|
|
@@ -62653,6 +62682,22 @@ var init_direct_input = __esm({
|
|
|
62653
62682
|
if (remaining.startsWith("\x1B[<") && remaining.length < 15) {
|
|
62654
62683
|
break;
|
|
62655
62684
|
}
|
|
62685
|
+
if (remaining.startsWith("\x1B[M") && remaining.length >= 6) {
|
|
62686
|
+
i += 6;
|
|
62687
|
+
continue;
|
|
62688
|
+
}
|
|
62689
|
+
if (remaining.startsWith("\x1B[M") && remaining.length < 6) {
|
|
62690
|
+
break;
|
|
62691
|
+
}
|
|
62692
|
+
if (remaining.startsWith("\x1B[<")) {
|
|
62693
|
+
let end = 3;
|
|
62694
|
+
while (end < remaining.length && remaining[end] !== "M" && remaining[end] !== "m")
|
|
62695
|
+
end++;
|
|
62696
|
+
if (end < remaining.length)
|
|
62697
|
+
end++;
|
|
62698
|
+
i += end;
|
|
62699
|
+
continue;
|
|
62700
|
+
}
|
|
62656
62701
|
const csiMatch = remaining.match(/^\x1B\[([0-9;]*)([A-Za-z~])/);
|
|
62657
62702
|
if (csiMatch) {
|
|
62658
62703
|
this._handleCSI(csiMatch[1], csiMatch[2]);
|
|
@@ -66859,19 +66904,14 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
66859
66904
|
}
|
|
66860
66905
|
}
|
|
66861
66906
|
if (best) {
|
|
66862
|
-
writeContent(() => {
|
|
66863
|
-
renderInfo(`No local Ollama detected. Auto-connecting to sponsored inference: ${best.name}`);
|
|
66864
|
-
renderInfo(`Endpoint: ${best.tunnelUrl}`);
|
|
66865
|
-
renderInfo(`Models: ${best.models?.slice(0, 3).join(", ") || "available"}`);
|
|
66866
|
-
renderInfo(`Change anytime: /endpoint or /endpoint sponsor`);
|
|
66867
|
-
});
|
|
66868
66907
|
currentConfig.backendUrl = best.tunnelUrl;
|
|
66869
66908
|
currentConfig.apiKey = bestNoAuth ? "" : best.authKey;
|
|
66870
66909
|
currentConfig.backendType = "openai";
|
|
66871
|
-
|
|
66872
|
-
|
|
66873
|
-
|
|
66874
|
-
|
|
66910
|
+
setTimeout(() => {
|
|
66911
|
+
if (statusBar.isActive) {
|
|
66912
|
+
writeContent(() => renderInfo(`Connected to sponsored endpoint: ${best.name}`));
|
|
66913
|
+
}
|
|
66914
|
+
}, 2e3);
|
|
66875
66915
|
}
|
|
66876
66916
|
}
|
|
66877
66917
|
} catch {
|
|
@@ -66891,7 +66931,10 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
66891
66931
|
ollamaUrl: currentConfig.backendUrl || "http://127.0.0.1:11434"
|
|
66892
66932
|
});
|
|
66893
66933
|
apiServer.on?.("listening", () => {
|
|
66894
|
-
|
|
66934
|
+
setTimeout(() => {
|
|
66935
|
+
if (statusBar.isActive)
|
|
66936
|
+
writeContent(() => renderInfo(`REST API: http://localhost:${apiPort}`));
|
|
66937
|
+
}, 1500);
|
|
66895
66938
|
});
|
|
66896
66939
|
apiServer.on?.("error", () => {
|
|
66897
66940
|
});
|
package/package.json
CHANGED