omnius 1.0.294 → 1.0.296

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
@@ -609847,6 +609847,40 @@ ${CONTENT_BG_SEQ}`);
609847
609847
  if (n2 < 1e6) return `${Math.round(n2 / 1e3)}K`;
609848
609848
  return `${(n2 / 1e6).toFixed(1)}M`;
609849
609849
  }
609850
+ /** Map digit 0-9 to ornamental digits 0️⃣1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣ (Windows: plain ASCII) */
609851
+ static DIGIT_EMOJI = _isWindows ? ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"] : [
609852
+ "🯰",
609853
+ // 0
609854
+ "🯱",
609855
+ // 1
609856
+ "🯲",
609857
+ // 2
609858
+ "🯳",
609859
+ // 3
609860
+ "🯴",
609861
+ // 4
609862
+ "🯵",
609863
+ // 5
609864
+ "🯶",
609865
+ // 6
609866
+ "🯷",
609867
+ // 7
609868
+ "🯸",
609869
+ // 8
609870
+ "🯹"
609871
+ // 9
609872
+ ];
609873
+ /** Convert a number to a digit-bar string: 1234 → "🯱🯲🯳🯴" */
609874
+ static digitBar(n2) {
609875
+ if (n2 < 0) return this.DIGIT_EMOJI[0].repeat(4);
609876
+ const digits = String(n2).split("");
609877
+ return digits.map((d2) => this.DIGIT_EMOJI[parseInt(d2)] ?? d2).join("");
609878
+ }
609879
+ /** Render a digit bar with a given fg color, wrapped in panel bg */
609880
+ static digitBarAnsi(n2, fgCode) {
609881
+ const bar = this.digitBar(n2);
609882
+ return `${PANEL_BG_SEQ}\x1B[38;5;${fgCode}m${bar}\x1B[0m${PANEL_BG_SEQ}`;
609883
+ }
609850
609884
  static formatTokensPerSecond(n2) {
609851
609885
  if (!Number.isFinite(n2) || n2 <= 0) return "0";
609852
609886
  if (n2 < 100) return n2.toFixed(1);
@@ -609859,10 +609893,10 @@ ${CONTENT_BG_SEQ}`);
609859
609893
  const pastel2 = (code8, s2) => `${PANEL_BG_SEQ}\x1B[38;5;${code8}m${s2}\x1B[0m${PANEL_BG_SEQ}`;
609860
609894
  const pipe3 = pastel2(60, " │ ");
609861
609895
  const pipeW = 3;
609862
- const BTN_L = "";
609863
- const BTN_R = "";
609864
- const BTN_L_W = 1;
609865
- const BTN_R_W = 1;
609896
+ const BTN_L = _isWindows ? "" : "🛁";
609897
+ const BTN_R = _isWindows ? "" : "🛂";
609898
+ const BTN_L_W = _isWindows ? 0 : 2;
609899
+ const BTN_R_W = _isWindows ? 0 : 2;
609866
609900
  const sections = [];
609867
609901
  const compactOrder = [];
609868
609902
  let modelSectionIdx = -1;
@@ -609888,10 +609922,10 @@ ${CONTENT_BG_SEQ}`);
609888
609922
  const tpsStr = _StatusBar.formatTokensPerSecond(this._tokensPerSecond);
609889
609923
  const tpsExpanded = " " + pastel2(222, "t/s") + " " + c3.bold(tpsStr);
609890
609924
  const tpsW = 1 + 3 + 1 + tpsStr.length;
609891
- const tokExpanded = pastel2(117, "↑") + c3.bold(tokInRaw.toLocaleString()) + " " + pastel2(151, "↓") + c3.bold(tokOutVal.toLocaleString()) + " " + pastel2(222, "t/s") + " " + c3.bold(tpsStr);
609892
- const tokCompact = pastel2(117, "↑") + c3.bold(_StatusBar.compactNum(tokInRaw)) + " " + pastel2(151, "↓") + c3.bold(_StatusBar.compactNum(tokOutVal)) + " " + pastel2(222, "t/s") + " " + c3.bold(tpsStr);
609893
- const tokExpW = 1 + tokInRaw.toLocaleString().length + 1 + 1 + tokOutVal.toLocaleString().length + tpsW;
609894
- const tokCompW = 1 + _StatusBar.compactNum(tokInRaw).length + 1 + 1 + _StatusBar.compactNum(tokOutVal).length + tpsW;
609925
+ const tokExpanded = pastel2(117, "↑") + _StatusBar.digitBarAnsi(tokInRaw, 117) + " " + pastel2(151, "↓") + _StatusBar.digitBarAnsi(tokOutVal, 151) + " " + pastel2(222, "t/s") + " " + c3.bold(tpsStr);
609926
+ const tokCompact = pastel2(117, "↑") + _StatusBar.digitBarAnsi(tokInRaw, 117) + " " + pastel2(151, "↓") + _StatusBar.digitBarAnsi(tokOutVal, 151) + " " + pastel2(222, "t/s") + " " + c3.bold(tpsStr);
609927
+ const tokExpW = 1 + _StatusBar.digitBar(tokInRaw).length + 1 + 1 + _StatusBar.digitBar(tokOutVal).length + tpsW;
609928
+ const tokCompW = 1 + _StatusBar.digitBar(tokInRaw).length + 1 + 1 + _StatusBar.digitBar(tokOutVal).length + tpsW;
609895
609929
  sections.push({
609896
609930
  expanded: tokExpanded,
609897
609931
  compact: tokCompact,
@@ -609914,13 +609948,13 @@ ${CONTENT_BG_SEQ}`);
609914
609948
  Math.min(100, Math.round((1 - ctxUsed / ctxTotal) * 100))
609915
609949
  );
609916
609950
  const ctxColor = ctxPct > 50 ? c3.green : ctxPct > 20 ? c3.yellow : c3.red;
609917
- const ctxSizeStr = _StatusBar.compactNum(ctxTotal);
609951
+ const ctxSizeStr = _StatusBar.digitBar(ctxTotal);
609918
609952
  ctxSuffix = " " + ctxColor(`${ctxPct}%`) + c3.dim(` ${ctxSizeStr}`);
609919
609953
  ctxSuffixW = 1 + `${ctxPct}%`.length + 1 + ctxSizeStr.length;
609920
609954
  ctxCompSuffix = " " + ctxColor(`${ctxPct}%`);
609921
609955
  ctxCompSuffixW = 1 + `${ctxPct}%`.length;
609922
609956
  }
609923
- const promptSizeStr = m2.lastPromptTokens > 0 ? _StatusBar.compactNum(m2.lastPromptTokens) : "";
609957
+ const promptSizeStr = m2.lastPromptTokens > 0 ? _StatusBar.digitBar(m2.lastPromptTokens) : "";
609924
609958
  const promptSuffix = promptSizeStr ? c3.dim(` in ${promptSizeStr}`) : "";
609925
609959
  const promptSuffixW = promptSizeStr ? 4 + promptSizeStr.length : 0;
609926
609960
  const promptCompSuffix = promptSizeStr ? c3.dim(` ${promptSizeStr}`) : "";
@@ -610241,7 +610275,7 @@ ${CONTENT_BG_SEQ}`);
610241
610275
  const sec = sections[idx];
610242
610276
  const content = isCompact[idx] ? sec.compact : sec.expanded;
610243
610277
  const color = sec.btnColor ?? 183;
610244
- result += `${PANEL_BG_SEQ}\x1B[38;5;${color}m${BTN_L}\x1B[0m${content}${PANEL_BG_SEQ}\x1B[38;5;${color}m${BTN_R}\x1B[0m${PANEL_BG_SEQ}`;
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 `;
610245
610279
  }
610246
610280
  return result.replace(/\x1B\[0m/g, `\x1B[0m${PANEL_BG_SEQ}`);
610247
610281
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.294",
3
+ "version": "1.0.296",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.294",
9
+ "version": "1.0.296",
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.294",
3
+ "version": "1.0.296",
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",