omnius 1.0.294 → 1.0.295

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;
@@ -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${PANEL_BG_SEQ}`;
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.295",
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.295",
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.295",
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",