open-agents-ai 0.158.0 → 0.160.0

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 +18 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -27435,8 +27435,15 @@ ${transcript}`
27435
27435
  }
27436
27436
  if (chunk.type === "content" && chunk.content) {
27437
27437
  content += chunk.content;
27438
- let kind = inThinkTag ? "thinking" : "content";
27439
27438
  const fragment = chunk.content;
27439
+ let kind;
27440
+ if (chunk.thinking) {
27441
+ kind = "thinking";
27442
+ } else if (inThinkTag) {
27443
+ kind = "thinking";
27444
+ } else {
27445
+ kind = "content";
27446
+ }
27440
27447
  if (fragment.includes("<think>")) {
27441
27448
  inThinkTag = true;
27442
27449
  kind = "thinking";
@@ -27637,6 +27644,9 @@ ${transcript}`
27637
27644
  continue;
27638
27645
  const delta = choice.delta;
27639
27646
  const finishReason = choice.finish_reason;
27647
+ if (delta?.reasoning) {
27648
+ yield { type: "content", content: delta.reasoning, thinking: true };
27649
+ }
27640
27650
  if (delta?.content) {
27641
27651
  yield { type: "content", content: delta.content };
27642
27652
  }
@@ -57940,7 +57950,8 @@ var init_status_bar = __esm({
57940
57950
  this.cancelMouseIdle();
57941
57951
  this.enableMouseTracking();
57942
57952
  const rows = process.stdout.rows ?? 24;
57943
- const scrollEnd = Math.max(rows - this._currentFooterHeight, this.scrollRegionTop + 1);
57953
+ const pos = this.rowPositions(rows);
57954
+ const scrollEnd = pos.scrollEnd;
57944
57955
  if (this.writeDepth === 1 && !this._origWrite) {
57945
57956
  this._origWrite = this._trueStdoutWrite;
57946
57957
  const origBound = this._trueStdoutWrite;
@@ -58759,7 +58770,11 @@ ${CONTENT_BG_SEQ}`);
58759
58770
  self.copySelection();
58760
58771
  return;
58761
58772
  }
58762
- if (s === "\x1B[67;6u") {
58773
+ if (s === "\x1B[67;6u" || s === "\x1B[27;6;67~") {
58774
+ self.copySelection();
58775
+ return;
58776
+ }
58777
+ if (s === "" && key?.shift) {
58763
58778
  self.copySelection();
58764
58779
  return;
58765
58780
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.158.0",
3
+ "version": "0.160.0",
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",