open-agents-ai 0.138.29 → 0.138.31

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.
Files changed (2) hide show
  1. package/dist/index.js +35 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -29362,7 +29362,7 @@ function formatMarkdownLine(line) {
29362
29362
  }
29363
29363
  const ulMatch = line.match(/^(\s*)([-*+])\s+(.*)/);
29364
29364
  if (ulMatch) {
29365
- return ulMatch[1] + fg256(MD.listBullet, "\u2022") + " " + formatInlineMarkdown(ulMatch[3]);
29365
+ return ulMatch[1] + fg256(MD.listBullet, "\u25CB") + " " + formatInlineMarkdown(ulMatch[3]);
29366
29366
  }
29367
29367
  const olMatch = line.match(/^(\s*)(\d+[.)])\s+(.*)/);
29368
29368
  if (olMatch) {
@@ -29411,7 +29411,7 @@ function formatMarkdownBlock(text) {
29411
29411
  }
29412
29412
  function renderUserMessage(text) {
29413
29413
  process.stdout.write(`
29414
- ${c2.bold(c2.blue("> "))}${c2.bold(text)}
29414
+ ${c2.bold(c2.blue("\u25B9 "))}${c2.bold(text)}
29415
29415
  `);
29416
29416
  }
29417
29417
  function renderAssistantText(text) {
@@ -29722,7 +29722,7 @@ function renderWarning(message) {
29722
29722
  }
29723
29723
  function renderVerbose(message) {
29724
29724
  const redir = _contentWriteHook?.redirect?.();
29725
- const text = `${c2.dim(` > ${message}`)}
29725
+ const text = `${c2.dim(` \u25B9 ${message}`)}
29726
29726
  `;
29727
29727
  if (redir) {
29728
29728
  redir(text);
@@ -45473,7 +45473,7 @@ var init_stream_renderer = __esm({
45473
45473
  }
45474
45474
  const ulMatch = line.match(/^(\s*)([-*+])\s+(.*)/);
45475
45475
  if (ulMatch) {
45476
- return ulMatch[1] + fg2563(PASTEL.blockquote, "\u2022") + " " + this.highlightInline(ulMatch[3]);
45476
+ return ulMatch[1] + fg2563(PASTEL.blockquote, "\u25CB") + " " + this.highlightInline(ulMatch[3]);
45477
45477
  }
45478
45478
  const olMatch = line.match(/^(\s*)(\d+[.)])\s+(.*)/);
45479
45479
  if (olMatch) {
@@ -51591,7 +51591,8 @@ ${CONTENT_BG_SEQ}`);
51591
51591
  buf += "\x1B8";
51592
51592
  buf += "\x1B[?25h";
51593
51593
  buf += "\x1B[?2026l";
51594
- process.stdout.write(buf);
51594
+ const writer = this._origWrite ?? process.stdout.write.bind(process.stdout);
51595
+ writer(buf);
51595
51596
  }
51596
51597
  /**
51597
51598
  * Clear the input row and position cursor there at column 1.
@@ -52212,12 +52213,41 @@ ${CONTENT_BG_SEQ}`);
52212
52213
  let arrowBurst = 0;
52213
52214
  let arrowBurstDir = "";
52214
52215
  let arrowBurstTimer = null;
52216
+ let sawEscape = false;
52217
+ let sawEscapeTime = 0;
52215
52218
  rl._ttyWrite = function(s, key) {
52216
52219
  if (!self.active)
52217
52220
  return origTtyWrite(s, key);
52218
52221
  if (s && (/\x1B\[</.test(s) || /^\d+;\d+;\d*[Mm]/.test(s) || /^;\d+[Mm]/.test(s) || /\[<\d/.test(s))) {
52219
52222
  return;
52220
52223
  }
52224
+ if (key?.name === "escape" || s === "\x1B") {
52225
+ sawEscape = true;
52226
+ sawEscapeTime = Date.now();
52227
+ if (self.writeDepth > 0)
52228
+ return;
52229
+ return origTtyWrite(s, key);
52230
+ }
52231
+ if (sawEscape && Date.now() - sawEscapeTime < 100) {
52232
+ sawEscape = false;
52233
+ if (s === "[A" || s === "[B") {
52234
+ if (s === "[A")
52235
+ self.scrollContentUp(1);
52236
+ else
52237
+ self.scrollContentDown(1);
52238
+ return;
52239
+ }
52240
+ if (s === "[5~" || s === "[6~") {
52241
+ if (s === "[5~")
52242
+ self.pageUpContent();
52243
+ else
52244
+ self.pageDownContent();
52245
+ return;
52246
+ }
52247
+ if (s.startsWith("["))
52248
+ return;
52249
+ }
52250
+ sawEscape = false;
52221
52251
  if (key?.name === "up" || key?.name === "down") {
52222
52252
  const dir = key.name;
52223
52253
  if (dir === arrowBurstDir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.138.29",
3
+ "version": "0.138.31",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",