open-agents-ai 0.187.399 → 0.187.401

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 CHANGED
@@ -532525,8 +532525,8 @@ var init_status_bar = __esm({
532525
532525
  };
532526
532526
  const decorateMenuButton = (cmd, label) => {
532527
532527
  const fg3 = buttonFg(cmd);
532528
- const body = `⡇ ${label} ⢸`;
532529
- return linkify(cmd, `\x1B[4m\x1B[53m\x1B[38;5;${fg3}m${body}\x1B[24m\x1B[55m`);
532528
+ const body = `▏ ${label} ▕`;
532529
+ return linkify(cmd, `\x1B[53m\x1B[38;5;${fg3}m${body}\x1B[55m`);
532530
532530
  };
532531
532531
  const renderBtn = (cmd, label) => {
532532
532532
  const fg3 = buttonFg(cmd);
@@ -532534,11 +532534,11 @@ var init_status_bar = __esm({
532534
532534
  };
532535
532535
  const identity3 = this.buildHeaderIdentityRender();
532536
532536
  const menuBtns = [
532537
- { cmd: "help", label: "help", w: " help ".length },
532538
- { cmd: "voice", label: "voice", w: " voice ".length },
532539
- { cmd: "model", label: "model", w: " model ".length },
532540
- { cmd: "endpoint", label: "endpoint", w: " endpoint ".length },
532541
- { cmd: "sponsor", label: "sponsor", w: " sponsor ".length }
532537
+ { cmd: "help", label: "help", w: " help ".length },
532538
+ { cmd: "voice", label: "voice", w: " voice ".length },
532539
+ { cmd: "model", label: "model", w: " model ".length },
532540
+ { cmd: "endpoint", label: "endpoint", w: " endpoint ".length },
532541
+ { cmd: "sponsor", label: "sponsor", w: " sponsor ".length }
532542
532542
  ];
532543
532543
  const verW = identity3.width;
532544
532544
  let menuPages = [];
@@ -534397,14 +534397,27 @@ ${CONTENT_BG_SEQ}`);
534397
534397
  const capsStr = capParts.length > 0 ? " " + capParts.join(" ") : "";
534398
534398
  const capsVisW = capParts.length > 0 ? 1 + capParts.length * 2 + (capParts.length - 1) : 0;
534399
534399
  if (this._modelName) {
534400
- const paramMatch = this._modelName.match(/(\d+\.?\d*[bBmM])/);
534401
- const paramStr = paramMatch ? paramMatch[1] : this._modelName.split(":")[0]?.split("/").pop() ?? this._modelName;
534402
- const modelExpanded = pastel2(146, this._modelName) + (capsStr ? " " + pastel2(183, capParts.join(" ")) : "") + promptSuffix + ctxSuffix;
534403
- const modelCompact = (capParts.length > 0 ? pastel2(183, capParts.join(" ")) : pastel2(146, paramStr)) + promptCompSuffix + ctxCompSuffix;
534404
- const expW = this._modelName.length + capsVisW + promptSuffixW + ctxSuffixW;
534405
- const compW = (capParts.length > 0 ? capParts.length * 2 + (capParts.length - 1) : paramStr.length) + promptCompSuffixW + ctxCompSuffixW;
534406
- modelSectionIdx = sections.length;
534407
- sections.push({ expanded: modelExpanded, compact: modelCompact, expandedW: expW, compactW: compW, empty: false });
534400
+ const hasCaps = capParts.length > 0;
534401
+ const hasPrompt = promptSuffixW > 0;
534402
+ const hasCtx = ctxSuffixW > 0;
534403
+ if (hasCaps || hasPrompt || hasCtx) {
534404
+ const capsRender = hasCaps ? pastel2(183, capParts.join(" ")) : "";
534405
+ const stripLead = (s2, n2) => s2.startsWith(" ".repeat(n2)) ? s2.slice(n2) : s2;
534406
+ const expandedTail = promptSuffix + ctxSuffix;
534407
+ const compactTail = promptCompSuffix + ctxCompSuffix;
534408
+ const modelExpanded = hasCaps ? capsRender + expandedTail : stripLead(expandedTail, 1);
534409
+ const modelCompact = hasCaps ? capsRender + compactTail : stripLead(compactTail, 1);
534410
+ const expW = (hasCaps ? capParts.length * 2 + (capParts.length - 1) : 0) + promptSuffixW + ctxSuffixW - (hasCaps ? 0 : 1);
534411
+ const compW = (hasCaps ? capParts.length * 2 + (capParts.length - 1) : 0) + promptCompSuffixW + ctxCompSuffixW - (hasCaps ? 0 : 1);
534412
+ modelSectionIdx = sections.length;
534413
+ sections.push({
534414
+ expanded: modelExpanded,
534415
+ compact: modelCompact,
534416
+ expandedW: Math.max(0, expW),
534417
+ compactW: Math.max(0, compW),
534418
+ empty: false
534419
+ });
534420
+ }
534408
534421
  } else if (capParts.length > 0) {
534409
534422
  const capsOnly = pastel2(183, capParts.join(" ")) + ctxCompSuffix;
534410
534423
  const capsOnlyW = capParts.length * 2 + (capParts.length - 1) + ctxCompSuffixW;
@@ -534558,12 +534571,6 @@ ${CONTENT_BG_SEQ}`);
534558
534571
  const recW = 1 + 4 + (this._countdown > 0 ? 1 + `${this._countdown}s`.length : 0);
534559
534572
  sections.push({ expanded: recStr, compact: recStr, expandedW: recW, compactW: recW, empty: false });
534560
534573
  }
534561
- if (this._version) {
534562
- versionSectionIdx = sections.length;
534563
- const vStr = pastel2(245, "v" + this._version);
534564
- const vW = 1 + this._version.length;
534565
- sections.push({ expanded: vStr, compact: vStr, expandedW: vW, compactW: vW, empty: false });
534566
- }
534567
534574
  const activeIndices = sections.map((s2, i2) => !s2.empty ? i2 : -1).filter((i2) => i2 >= 0);
534568
534575
  const isCompact = new Array(sections.length).fill(false);
534569
534576
  const isHidden = new Array(sections.length).fill(false);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.399",
3
+ "version": "0.187.401",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "open-agents-ai",
9
- "version": "0.187.399",
9
+ "version": "0.187.401",
10
10
  "hasInstallScript": true,
11
11
  "license": "CC-BY-NC-4.0",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.399",
3
+ "version": "0.187.401",
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",