open-agents-ai 0.138.31 → 0.138.33

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 +25 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -29411,7 +29411,7 @@ function formatMarkdownBlock(text) {
29411
29411
  }
29412
29412
  function renderUserMessage(text) {
29413
29413
  process.stdout.write(`
29414
- ${c2.bold(c2.blue("\u25B9 "))}${c2.bold(text)}
29414
+ \x1B[38;5;178m\u25B9\x1B[0m ${c2.bold(text)}
29415
29415
  `);
29416
29416
  }
29417
29417
  function renderAssistantText(text) {
@@ -29681,7 +29681,7 @@ function setContentWriteHook(hook) {
29681
29681
  }
29682
29682
  function renderError(message) {
29683
29683
  const redir = _contentWriteHook?.redirect?.();
29684
- const icon = _emojisEnabled ? c2.red("\u2716") : c2.red("E");
29684
+ const icon = _emojisEnabled ? "\x1B[38;5;178m\u2716\x1B[0m" : c2.red("E");
29685
29685
  if (redir) {
29686
29686
  redir(`
29687
29687
  ${icon} ${message}
@@ -29696,7 +29696,7 @@ ${icon} ${message}
29696
29696
  }
29697
29697
  function renderInfo(message) {
29698
29698
  const redir = _contentWriteHook?.redirect?.();
29699
- const icon = _emojisEnabled ? c2.cyan("\u2139") : c2.cyan("i");
29699
+ const icon = _emojisEnabled ? "\x1B[38;5;178m\u2139\x1B[0m" : "\x1B[38;5;178mi\x1B[0m";
29700
29700
  if (redir) {
29701
29701
  redir(`${icon} ${message}
29702
29702
  `);
@@ -29709,7 +29709,7 @@ function renderInfo(message) {
29709
29709
  }
29710
29710
  function renderWarning(message) {
29711
29711
  const redir = _contentWriteHook?.redirect?.();
29712
- const icon = _emojisEnabled ? c2.yellow("\u26A0") : c2.yellow("!");
29712
+ const icon = _emojisEnabled ? "\x1B[38;5;178m\u26A0\x1B[0m" : "\x1B[38;5;178m!\x1B[0m";
29713
29713
  if (redir) {
29714
29714
  redir(`${icon} ${message}
29715
29715
  `);
@@ -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(` \u25B9 ${message}`)}
29725
+ const text = ` \x1B[38;5;178m\u25B9\x1B[0m ${c2.dim(message)}
29726
29726
  `;
29727
29727
  if (redir) {
29728
29728
  redir(text);
@@ -52249,6 +52249,13 @@ ${CONTENT_BG_SEQ}`);
52249
52249
  }
52250
52250
  sawEscape = false;
52251
52251
  if (key?.name === "up" || key?.name === "down") {
52252
+ if (self.writeDepth > 0) {
52253
+ if (key.name === "up")
52254
+ self.scrollContentUp(1);
52255
+ else
52256
+ self.scrollContentDown(1);
52257
+ return;
52258
+ }
52252
52259
  const dir = key.name;
52253
52260
  if (dir === arrowBurstDir) {
52254
52261
  arrowBurst++;
@@ -52286,6 +52293,19 @@ ${CONTENT_BG_SEQ}`);
52286
52293
  self.scrollContentDown(3);
52287
52294
  return;
52288
52295
  }
52296
+ if (self.writeDepth > 0) {
52297
+ if (s && (s.startsWith("\x1B") || s.startsWith("[")))
52298
+ return;
52299
+ if (key?.name === "escape")
52300
+ return;
52301
+ const rows = process.stdout.rows ?? 24;
52302
+ const pos = self.rowPositions(rows);
52303
+ const writer = self._origWrite ?? process.stdout.write.bind(process.stdout);
52304
+ writer(`\x1B7\x1B[${pos.inputStartRow};1H`);
52305
+ origTtyWrite(s, key);
52306
+ writer(`\x1B8`);
52307
+ return;
52308
+ }
52289
52309
  return origTtyWrite(s, key);
52290
52310
  };
52291
52311
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.138.31",
3
+ "version": "0.138.33",
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",