omnius 1.0.296 → 1.0.298

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
@@ -607449,12 +607449,22 @@ var init_status_bar = __esm({
607449
607449
  const decorateMenuButton = (cmd, label) => {
607450
607450
  return linkify(
607451
607451
  cmd,
607452
- `${HEADER_BUTTON_FG}${HEADER_BUTTON_BG} ${label} \x1B[0m${PANEL_BG_SEQ}`
607452
+ `${HEADER_BUTTON_FG}${HEADER_BUTTON_BG}🭁${label}🭝\x1B[0m${PANEL_BG_SEQ}`
607453
607453
  );
607454
607454
  };
607455
607455
  const renderBtn = (cmd, label) => {
607456
607456
  const fg2 = buttonFg(cmd);
607457
- return linkify(cmd, `\x1B[38;5;${fg2}m${label}`);
607457
+ const left = _isWindows ? "" : "🛁";
607458
+ const right = _isWindows ? "" : "🛂";
607459
+ const leftW = _isWindows ? 0 : 2;
607460
+ const rightW = _isWindows ? 0 : 2;
607461
+ const btnW = label.length + leftW + rightW + 4;
607462
+ const availW2 = getTermWidth() - identity3.width - 1;
607463
+ if (btnW > availW2) return linkify(cmd, `\x1B[38;5;${fg2}m${label}`);
607464
+ return linkify(
607465
+ cmd,
607466
+ ` ${PANEL_BG_SEQ}\x1B[38;5;${tuiBg()}m${left}\x1B[0m ${PANEL_BG_SEQ}\x1B[38;5;${fg2}m${label}\x1B[0m ${PANEL_BG_SEQ}\x1B[38;5;${tuiBg()}m${right}\x1B[0m `
607467
+ );
607458
607468
  };
607459
607469
  const identity3 = this.buildHeaderIdentityRender();
607460
607470
  const modelLabel = this.summarizeHeaderModelName() || "model";
@@ -607462,7 +607472,11 @@ var init_status_bar = __esm({
607462
607472
  const menuBtns = [
607463
607473
  { cmd: "help", label: "help", w: "help".length + 2 },
607464
607474
  // +2 for spaces
607465
- { cmd: "voice", label: this._voiceActive ? this._voiceModelId || "voice" : "voice", w: (this._voiceActive ? this._voiceModelId || "voice" : "voice").length + 2 },
607475
+ {
607476
+ cmd: "voice",
607477
+ label: this._voiceActive ? this._voiceModelId || "voice" : "voice",
607478
+ w: (this._voiceActive ? this._voiceModelId || "voice" : "voice").length + 2
607479
+ },
607466
607480
  // +2 for spaces
607467
607481
  { cmd: "model", label: modelLabel, w: modelLabel.length + 2 },
607468
607482
  // +2 for spaces
@@ -607753,7 +607767,9 @@ var init_status_bar = __esm({
607753
607767
  buf += `\x1B[${subRow};1H${PANEL_BG_SEQ}\x1B[2K`;
607754
607768
  buf += `${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
607755
607769
  buf += `\x1B[38;5;${TEXT_DIM}m${PANEL_BG_SEQ}`;
607756
- const subAgents = this._agentViews.size > 1 ? Array.from(this._agentViews.values()).filter((v) => v.id !== "main").map((v) => `${v.status === "running" ? "●" : v.status === "completed" ? "✓" : "○"} ${v.label}`).join(" ") : "no sub-agents";
607770
+ const subAgents = this._agentViews.size > 1 ? Array.from(this._agentViews.values()).filter((v) => v.id !== "main").map(
607771
+ (v) => `${v.status === "running" ? "●" : v.status === "completed" ? "✓" : "○"} ${v.label}`
607772
+ ).join(" ") : "no sub-agents";
607757
607773
  buf += subAgents.substring(0, w - 4);
607758
607774
  buf += `\x1B[${subRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
607759
607775
  const sepRow = subRow + 1;
@@ -607766,7 +607782,7 @@ var init_status_bar = __esm({
607766
607782
  buf += `\x1B[38;5;${TEXT_DIM}m${PANEL_BG_SEQ}`;
607767
607783
  buf += `scroll: ${scrollPct}`.substring(0, w - 4);
607768
607784
  buf += `\x1B[${scrollRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
607769
- buf += `\x1B[${scrollRow};1H${BOX_FG}└${"─".repeat(w - 2)}${BOX_FG}┘${RESET4}${PANEL_BG_SEQ}`;
607785
+ buf += `\x1B[${scrollRow};1H${BOX_FG}╰${"─".repeat(w - 2)}${BOX_FG}╯${RESET4}${PANEL_BG_SEQ}`;
607770
607786
  } else {
607771
607787
  const scrollRow = hdrRow + 1;
607772
607788
  buf += `\x1B[${scrollRow};1H${PANEL_BG_SEQ}\x1B[2K`;
@@ -607774,7 +607790,7 @@ var init_status_bar = __esm({
607774
607790
  buf += `\x1B[38;5;${TEXT_DIM}m${PANEL_BG_SEQ}`;
607775
607791
  buf += `scroll: ${scrollPct}`.substring(0, w - 4);
607776
607792
  buf += `\x1B[${scrollRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
607777
- buf += `\x1B[${scrollRow};1H${BOX_FG}└${"─".repeat(w - 2)}${BOX_FG}┘${RESET4}${PANEL_BG_SEQ}`;
607793
+ buf += `\x1B[${scrollRow};1H${BOX_FG}╰${"─".repeat(w - 2)}${BOX_FG}╯${RESET4}${PANEL_BG_SEQ}`;
607778
607794
  }
607779
607795
  buf += "\x1B8";
607780
607796
  this.termWrite(buf);
@@ -610028,8 +610044,8 @@ ${CONTENT_BG_SEQ}`);
610028
610044
  const snrColor = snrPct >= 70 ? c3.green : snrPct >= 40 ? c3.yellow : c3.red;
610029
610045
  const dPrimeStr = this._snr.dPrime.toFixed(1);
610030
610046
  const capStr = this._snr.capacityWarning ? c3.red(" !CAP") : "";
610031
- const snrExpanded = pastel2(183, "SNR ") + snrColor(c3.bold(`${snrPct}%`)) + c3.dim(` d'${dPrimeStr}`) + capStr;
610032
- const snrCompact = snrColor(`${snrPct}%`);
610047
+ const snrExpanded = pastel2(183, "SNR ") + snrColor(_StatusBar.digitBarAnsi(snrPct, 183)) + c3.dim(` d'${dPrimeStr}`) + capStr;
610048
+ const snrCompact = snrColor(_StatusBar.digitBarAnsi(snrPct, 183));
610033
610049
  const expW = 4 + `${snrPct}%`.length + 3 + dPrimeStr.length + (this._snr.capacityWarning ? 5 : 0);
610034
610050
  sections.push({
610035
610051
  expanded: snrExpanded,
@@ -610040,24 +610056,12 @@ ${CONTENT_BG_SEQ}`);
610040
610056
  btnColor: 183
610041
610057
  });
610042
610058
  }
610043
- if (this._emotion) {
610044
- const emotionExpanded = this._emotion.emoji + " " + pastel2(183, this._emotion.label);
610045
- const emotionCompact = this._emotion.emoji;
610046
- sections.push({
610047
- expanded: emotionExpanded,
610048
- compact: emotionCompact,
610049
- expandedW: 2 + 1 + this._emotion.label.length,
610050
- compactW: 2,
610051
- empty: false,
610052
- btnColor: 183
610053
- });
610054
- }
610055
610059
  if (this._speedTracker.hasData) {
610056
610060
  const ratio = this._speedTracker.getSpeedRatio();
610057
610061
  if (ratio > 0) {
610058
610062
  const ratioStr = ratio >= 10 ? `${Math.round(ratio)}x` : `${ratio.toFixed(1)}x`;
610059
610063
  const ratioColor = ratio >= 2 ? c3.green : ratio >= 1 ? c3.yellow : c3.red;
610060
- const speedExpanded = pastel2(218, "Exp ") + ratioColor(c3.bold(ratioStr));
610064
+ const speedExpanded = pastel2(218, "Exp ") + ratioColor(_StatusBar.digitBarAnsi(Math.round(ratio * 10), 218));
610061
610065
  sections.push({
610062
610066
  expanded: speedExpanded,
610063
610067
  compact: speedExpanded,
@@ -610070,8 +610074,11 @@ ${CONTENT_BG_SEQ}`);
610070
610074
  }
610071
610075
  if (m2.hasPricing && m2.estimatedCost !== void 0) {
610072
610076
  const costStr = m2.estimatedCost < 0.01 ? `$${m2.estimatedCost.toFixed(4)}` : m2.estimatedCost < 1 ? `$${m2.estimatedCost.toFixed(3)}` : `$${m2.estimatedCost.toFixed(2)}`;
610073
- const costExpanded = pastel2(222, "Cost ") + c3.bold(costStr);
610074
- const costCompact = c3.bold(costStr);
610077
+ const costExpanded = pastel2(222, "Cost ") + _StatusBar.digitBarAnsi(Math.round(m2.estimatedCost * 1e4), 222);
610078
+ const costCompact = _StatusBar.digitBarAnsi(
610079
+ Math.round(m2.estimatedCost * 1e4),
610080
+ 222
610081
+ );
610075
610082
  sections.push({
610076
610083
  expanded: costExpanded,
610077
610084
  compact: costCompact,
@@ -610275,7 +610282,7 @@ ${CONTENT_BG_SEQ}`);
610275
610282
  const sec = sections[idx];
610276
610283
  const content = isCompact[idx] ? sec.compact : sec.expanded;
610277
610284
  const color = sec.btnColor ?? 183;
610278
- result += ` ${PANEL_BG_SEQ}\x1B[38;5;${tuiBg()}m${BTN_L}\x1B[0m ${PANEL_BG_SEQ}\x1B[38;5;${color}m${content}\x1B[0m ${PANEL_BG_SEQ}\x1B[38;5;${tuiBg()}m${BTN_R}\x1B[0m `;
610285
+ result += ` ${PANEL_BG_SEQ}\x1B[38;5;${color}m${content}\x1B[0m `;
610279
610286
  }
610280
610287
  return result.replace(/\x1B\[0m/g, `\x1B[0m${PANEL_BG_SEQ}`);
610281
610288
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.296",
3
+ "version": "1.0.298",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.296",
9
+ "version": "1.0.298",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.296",
3
+ "version": "1.0.298",
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",