omnius 1.0.299 → 1.0.301

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
@@ -607473,10 +607473,7 @@ var init_status_bar = __esm({
607473
607473
  return fg2;
607474
607474
  };
607475
607475
  const decorateMenuButton = (cmd, label) => {
607476
- return linkify(
607477
- cmd,
607478
- `\x1B[38;5;${HEADER_ACCENT_GREEN}m🭁\x1B[0m${HEADER_BUTTON_FG}${HEADER_BUTTON_BG}${label}\x1B[0m${PANEL_BG_SEQ}\x1B[38;5;${HEADER_ACCENT_GREEN}m🭝\x1B[0m${PANEL_BG_SEQ}`
607479
- );
607476
+ return `\x1B[38;5;${HEADER_ACCENT_GREEN}m🭁\x1B[0m${HEADER_BUTTON_FG}${HEADER_BUTTON_BG}${label}\x1B[0m${PANEL_BG_SEQ}\x1B[38;5;${HEADER_ACCENT_GREEN}m🭝\x1B[0m${PANEL_BG_SEQ}`;
607480
607477
  };
607481
607478
  const renderBtn = (cmd, label) => {
607482
607479
  const fg2 = buttonFg(cmd);
@@ -607789,25 +607786,18 @@ var init_status_bar = __esm({
607789
607786
  buf += `\x1B[${hdrRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
607790
607787
  const scrollPct = this._contentScrollOffset > 0 ? `${Math.round(this._contentScrollOffset / this._contentMaxLines * 100)}%` : "live";
607791
607788
  if (this._headerExpanded) {
607792
- const subRow = hdrRow + 1;
607789
+ const sepRow1 = hdrRow + 1;
607790
+ buf += `\x1B[${sepRow1};1H${BOX_FG}├${"─".repeat(w - 2)}${BOX_FG}┤${RESET4}${PANEL_BG_SEQ}`;
607791
+ const subRow = hdrRow + 2;
607793
607792
  buf += `\x1B[${subRow};1H${PANEL_BG_SEQ}\x1B[2K`;
607794
607793
  buf += `${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
607795
607794
  buf += `\x1B[38;5;${TEXT_DIM}m${PANEL_BG_SEQ}`;
607796
607795
  const subAgents = this._agentViews.size > 1 ? Array.from(this._agentViews.values()).filter((v) => v.id !== "main").map(
607797
607796
  (v) => `${v.status === "running" ? "●" : v.status === "completed" ? "✓" : "○"} ${v.label}`
607798
607797
  ).join(" ") : "no sub-agents";
607799
- buf += subAgents.substring(0, w - 4);
607798
+ buf += ` ${subAgents.substring(0, w - 4)}`;
607800
607799
  buf += `\x1B[${subRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
607801
- const sepRow = subRow + 1;
607802
- buf += `\x1B[${sepRow};1H${PANEL_BG_SEQ}\x1B[2K`;
607803
- buf += `${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
607804
- buf += `\x1B[${sepRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
607805
- const scrollRow = sepRow + 1;
607806
- buf += `\x1B[${scrollRow};1H${PANEL_BG_SEQ}\x1B[2K`;
607807
- buf += `${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
607808
- buf += `\x1B[38;5;${TEXT_DIM}m${PANEL_BG_SEQ}`;
607809
- buf += `scroll: ${scrollPct}`.substring(0, w - 4);
607810
- buf += `\x1B[${scrollRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
607800
+ const scrollRow = subRow + 1;
607811
607801
  buf += `\x1B[${scrollRow};1H${BOX_FG}╰${"─".repeat(w - 2)}${BOX_FG}╯${RESET4}${PANEL_BG_SEQ}`;
607812
607802
  } else {
607813
607803
  const scrollRow = hdrRow + 1;
@@ -608829,7 +608819,9 @@ var init_status_bar = __esm({
608829
608819
  }
608830
608820
  if (!this._headerExpanded && wasExpanded) {
608831
608821
  const base3 = this.scrollRegionTop;
608832
- this.termWrite(`\x1B[${base3};1H\x1B[2K\x1B[${base3 + 1};1H\x1B[2K`);
608822
+ let buf = `\x1B[${base3};1H\x1B[2K\x1B[${base3 + 1};1H\x1B[2K`;
608823
+ buf += `\x1B[${base3};1H\x1BM\x1BM`;
608824
+ this.termWrite(buf);
608833
608825
  }
608834
608826
  return;
608835
608827
  }
@@ -609933,8 +609925,8 @@ ${CONTENT_BG_SEQ}`);
609933
609925
  const m2 = this.metrics;
609934
609926
  const termWidth = getTermWidth();
609935
609927
  const pastel2 = (code8, s2) => `${PANEL_BG_SEQ}\x1B[38;5;${code8}m${s2}\x1B[0m${PANEL_BG_SEQ}`;
609936
- const pipe3 = pastel2(60, " │ ");
609937
- const pipeW = 3;
609928
+ const pipe3 = `${PANEL_BG_SEQ}${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
609929
+ const pipeW = 1;
609938
609930
  const BTN_L = _isWindows ? "" : "🛁";
609939
609931
  const BTN_R = _isWindows ? "" : "🛂";
609940
609932
  const BTN_L_W = _isWindows ? 0 : 2;
@@ -610155,40 +610147,40 @@ ${CONTENT_BG_SEQ}`);
610155
610147
  if (rm4.cpuUtil >= 0) {
610156
610148
  const cpuColor = rm4.cpuUtil > 80 ? c3.red : rm4.cpuUtil > 50 ? c3.yellow : c3.green;
610157
610149
  const cpuCoresInfo = rm4.cpuCores > 0 ? ` (${_StatusBar.digitBar(rm4.cpuCores)}c` + (rm4.cpuModel ? " " + rm4.cpuModel.replace(/\s+/g, " ").slice(0, 30) : "") + ")" : "";
610158
- hwExpStr += `CPU ${cpuColor(_StatusBar.digitBar(rm4.cpuUtil) + "%")}${c3.dim(cpuCoresInfo)}`;
610159
- hwCompStr += `CPU ${cpuColor(_StatusBar.digitBar(rm4.cpuUtil) + "%")}`;
610150
+ hwExpStr += `CPU${cpuColor(_StatusBar.digitBar(rm4.cpuUtil) + "%")}${c3.dim(cpuCoresInfo)}`;
610151
+ hwCompStr += `CPU${cpuColor(_StatusBar.digitBar(rm4.cpuUtil) + "%")}`;
610160
610152
  hwExpW += 4 + `${rm4.cpuUtil}%`.length + cpuCoresInfo.length;
610161
610153
  hwCompW += 4 + `${rm4.cpuUtil}%`.length;
610162
610154
  }
610163
610155
  if (rm4.memUtil >= 0) {
610164
610156
  const memColor = rm4.memUtil > 80 ? c3.red : rm4.memUtil > 50 ? c3.yellow : c3.green;
610165
610157
  const memDetail = rm4.memTotalGB > 0 ? ` (${rm4.memUsedGB}/${rm4.memTotalGB}GB)` : "";
610166
- hwExpStr += ` RAM ${memColor(_StatusBar.digitBar(rm4.memUtil) + "%")}${c3.dim(memDetail)}`;
610167
- hwCompStr += ` RAM ${memColor(_StatusBar.digitBar(rm4.memUtil) + "%")}`;
610158
+ hwExpStr += ` RAM${memColor(_StatusBar.digitBar(rm4.memUtil) + "%")}${c3.dim(memDetail)}`;
610159
+ hwCompStr += ` RAM${memColor(_StatusBar.digitBar(rm4.memUtil) + "%")}`;
610168
610160
  hwExpW += 5 + `${rm4.memUtil}%`.length + memDetail.length;
610169
610161
  hwCompW += 5 + `${rm4.memUtil}%`.length;
610170
610162
  }
610171
610163
  if (rm4.diskUtil >= 0) {
610172
610164
  const diskColor = rm4.diskUtil > 90 ? c3.red : rm4.diskUtil > 75 ? c3.yellow : c3.green;
610173
610165
  const diskDetail = rm4.diskTotalGB > 0 ? ` (${rm4.diskFreeGB.toFixed(rm4.diskFreeGB < 10 ? 1 : 0)}GB free)` : "";
610174
- hwExpStr += ` DISK ${diskColor(_StatusBar.digitBar(rm4.diskUtil) + "%")}${c3.dim(diskDetail)}`;
610175
- hwCompStr += ` DISK ${diskColor(_StatusBar.digitBar(rm4.diskUtil) + "%")}`;
610166
+ hwExpStr += ` DISK${diskColor(_StatusBar.digitBar(rm4.diskUtil) + "%")}${c3.dim(diskDetail)}`;
610167
+ hwCompStr += ` DISK${diskColor(_StatusBar.digitBar(rm4.diskUtil) + "%")}`;
610176
610168
  hwExpW += 6 + `${rm4.diskUtil}%`.length + diskDetail.length;
610177
610169
  hwCompW += 6 + `${rm4.diskUtil}%`.length;
610178
610170
  }
610179
610171
  if (rm4.gpuUtil >= 0) {
610180
610172
  const gpuColor = rm4.gpuUtil > 80 ? c3.red : rm4.gpuUtil > 50 ? c3.yellow : c3.green;
610181
610173
  const gpuNameShort = rm4.gpuName ? ` (${rm4.gpuName.slice(0, 20)})` : "";
610182
- hwExpStr += ` GPU ${gpuColor(_StatusBar.digitBar(rm4.gpuUtil) + "%")}${c3.dim(gpuNameShort)}`;
610183
- hwCompStr += ` GPU ${gpuColor(_StatusBar.digitBar(rm4.gpuUtil) + "%")}`;
610174
+ hwExpStr += ` GPU${gpuColor(_StatusBar.digitBar(rm4.gpuUtil) + "%")}${c3.dim(gpuNameShort)}`;
610175
+ hwCompStr += ` GPU${gpuColor(_StatusBar.digitBar(rm4.gpuUtil) + "%")}`;
610184
610176
  hwExpW += 5 + `${rm4.gpuUtil}%`.length + gpuNameShort.length;
610185
610177
  hwCompW += 5 + `${rm4.gpuUtil}%`.length;
610186
610178
  }
610187
610179
  if (rm4.vramUtil >= 0) {
610188
610180
  const vramColor = rm4.vramUtil > 80 ? c3.red : rm4.vramUtil > 50 ? c3.yellow : c3.green;
610189
610181
  const vramDetail = rm4.vramTotalMB > 0 ? ` (${rm4.vramUsedMB}/${rm4.vramTotalMB}MB)` : "";
610190
- hwExpStr += ` VRAM ${vramColor(_StatusBar.digitBar(rm4.vramUtil) + "%")}${c3.dim(vramDetail)}`;
610191
- hwCompStr += ` VRAM ${vramColor(_StatusBar.digitBar(rm4.vramUtil) + "%")}`;
610182
+ hwExpStr += ` VRAM${vramColor(_StatusBar.digitBar(rm4.vramUtil) + "%")}${c3.dim(vramDetail)}`;
610183
+ hwCompStr += ` VRAM${vramColor(_StatusBar.digitBar(rm4.vramUtil) + "%")}`;
610192
610184
  hwExpW += 6 + `${rm4.vramUtil}%`.length + vramDetail.length;
610193
610185
  hwCompW += 6 + `${rm4.vramUtil}%`.length;
610194
610186
  }
@@ -610205,8 +610197,8 @@ ${CONTENT_BG_SEQ}`);
610205
610197
  0
610206
610198
  );
610207
610199
  const ageSummary = oldestAgeMs > 0 ? ` age=${formatPoolAge(oldestAgeMs)}` : "";
610208
- const poolText = ` OLLAMA ${poolColor(`${pool3.mode}:${poolDetail}`)}${c3.dim(pidSummary)}${c3.dim(ageSummary)}`;
610209
- const compactText3 = ` OLLAMA ${poolColor(pool3.mode === "constrained" ? "queue" : `${_StatusBar.digitBar(ready)}/${_StatusBar.digitBar(target)}`)}`;
610200
+ const poolText = ` OLLAMA${poolColor(`${pool3.mode}:${poolDetail}`)}${c3.dim(pidSummary)}${c3.dim(ageSummary)}`;
610201
+ const compactText3 = ` OLLAMA${poolColor(pool3.mode === "constrained" ? "queue" : `${_StatusBar.digitBar(ready)}/${_StatusBar.digitBar(target)}`)}`;
610210
610202
  hwExpStr += poolText;
610211
610203
  hwCompStr += compactText3;
610212
610204
  hwExpW += 8 + `${pool3.mode}:${poolDetail}`.length + pidSummary.length + ageSummary.length;
@@ -610308,7 +610300,7 @@ ${CONTENT_BG_SEQ}`);
610308
610300
  const sec = sections[idx];
610309
610301
  const content = isCompact[idx] ? sec.compact : sec.expanded;
610310
610302
  const color = sec.btnColor ?? 183;
610311
- result += ` ${PANEL_BG_SEQ}\x1B[38;5;${color}m${content}\x1B[0m `;
610303
+ result += `${PANEL_BG_SEQ}\x1B[38;5;${color}m${content}\x1B[0m`;
610312
610304
  }
610313
610305
  return result.replace(/\x1B\[0m/g, `\x1B[0m${PANEL_BG_SEQ}`);
610314
610306
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.299",
3
+ "version": "1.0.301",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.299",
9
+ "version": "1.0.301",
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.299",
3
+ "version": "1.0.301",
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",