omnius 1.0.293 → 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,6 +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;
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;
609862
609900
  const sections = [];
609863
609901
  const compactOrder = [];
609864
609902
  let modelSectionIdx = -1;
@@ -609870,7 +609908,9 @@ ${CONTENT_BG_SEQ}`);
609870
609908
  compact: cohereExpanded,
609871
609909
  expandedW: 2,
609872
609910
  compactW: 2,
609873
- empty: false
609911
+ empty: false,
609912
+ btnColor: 214
609913
+ // amber — cohere
609874
609914
  });
609875
609915
  }
609876
609916
  const tokInRaw = m2.promptTokens > 0 ? m2.promptTokens : Math.max(m2.estimatedContextTokens, 0);
@@ -609891,7 +609931,9 @@ ${CONTENT_BG_SEQ}`);
609891
609931
  compact: tokCompact,
609892
609932
  expandedW: tokExpW,
609893
609933
  compactW: tokCompW,
609894
- empty: false
609934
+ empty: false,
609935
+ btnColor: 117
609936
+ // green — token I/O
609895
609937
  });
609896
609938
  {
609897
609939
  const ctxUsed = m2.estimatedContextTokens;
@@ -609942,7 +609984,8 @@ ${CONTENT_BG_SEQ}`);
609942
609984
  compact: modelCompact,
609943
609985
  expandedW: Math.max(0, expW),
609944
609986
  compactW: Math.max(0, compW),
609945
- empty: false
609987
+ empty: false,
609988
+ btnColor: 183
609946
609989
  });
609947
609990
  }
609948
609991
  } else if (capParts.length > 0) {
@@ -609953,7 +609996,8 @@ ${CONTENT_BG_SEQ}`);
609953
609996
  compact: capsOnly,
609954
609997
  expandedW: capsOnlyW,
609955
609998
  compactW: capsOnlyW,
609956
- empty: false
609999
+ empty: false,
610000
+ btnColor: 183
609957
610001
  });
609958
610002
  } else if (ctxTotal > 0) {
609959
610003
  sections.push({
@@ -609961,7 +610005,8 @@ ${CONTENT_BG_SEQ}`);
609961
610005
  compact: ctxCompSuffix.trimStart(),
609962
610006
  expandedW: ctxSuffixW - 1,
609963
610007
  compactW: ctxCompSuffixW - 1,
609964
- empty: false
610008
+ empty: false,
610009
+ btnColor: 183
609965
610010
  });
609966
610011
  }
609967
610012
  }
@@ -609974,7 +610019,8 @@ ${CONTENT_BG_SEQ}`);
609974
610019
  compact: `\x1B[38;5;45m${compact3}\x1B[0m`,
609975
610020
  expandedW: 2 + 3 + suffix.length,
609976
610021
  compactW: 2 + suffix.length,
609977
- empty: false
610022
+ empty: false,
610023
+ btnColor: 45
609978
610024
  });
609979
610025
  }
609980
610026
  if (this._snr) {
@@ -609990,7 +610036,8 @@ ${CONTENT_BG_SEQ}`);
609990
610036
  compact: snrCompact,
609991
610037
  expandedW: expW,
609992
610038
  compactW: `${snrPct}%`.length,
609993
- empty: false
610039
+ empty: false,
610040
+ btnColor: 183
609994
610041
  });
609995
610042
  }
609996
610043
  if (this._emotion) {
@@ -610001,7 +610048,8 @@ ${CONTENT_BG_SEQ}`);
610001
610048
  compact: emotionCompact,
610002
610049
  expandedW: 2 + 1 + this._emotion.label.length,
610003
610050
  compactW: 2,
610004
- empty: false
610051
+ empty: false,
610052
+ btnColor: 183
610005
610053
  });
610006
610054
  }
610007
610055
  if (this._speedTracker.hasData) {
@@ -610015,7 +610063,8 @@ ${CONTENT_BG_SEQ}`);
610015
610063
  compact: speedExpanded,
610016
610064
  expandedW: 4 + ratioStr.length,
610017
610065
  compactW: 4 + ratioStr.length,
610018
- empty: false
610066
+ empty: false,
610067
+ btnColor: 218
610019
610068
  });
610020
610069
  }
610021
610070
  }
@@ -610028,7 +610077,8 @@ ${CONTENT_BG_SEQ}`);
610028
610077
  compact: costCompact,
610029
610078
  expandedW: 5 + costStr.length,
610030
610079
  compactW: costStr.length,
610031
- empty: false
610080
+ empty: false,
610081
+ btnColor: 222
610032
610082
  });
610033
610083
  }
610034
610084
  if (this._expose) {
@@ -610055,7 +610105,8 @@ ${CONTENT_BG_SEQ}`);
610055
610105
  compact: exposeCompact,
610056
610106
  expandedW: 2 + expFullStr.length,
610057
610107
  compactW: 2 + expCompStr.length,
610058
- empty: false
610108
+ empty: false,
610109
+ btnColor: 214
610059
610110
  });
610060
610111
  }
610061
610112
  {
@@ -610148,7 +610199,9 @@ ${CONTENT_BG_SEQ}`);
610148
610199
  compact: sysCompact,
610149
610200
  expandedW: srcW + 1 + hwExpW + netW,
610150
610201
  compactW: srcW + 1 + hwCompW + netW,
610151
- empty: false
610202
+ empty: false,
610203
+ btnColor: 120
610204
+ // green — system metrics
610152
610205
  });
610153
610206
  }
610154
610207
  if (this._recording) {
@@ -610161,7 +610214,9 @@ ${CONTENT_BG_SEQ}`);
610161
610214
  compact: recStr,
610162
610215
  expandedW: recW,
610163
610216
  compactW: recW,
610164
- empty: false
610217
+ empty: false,
610218
+ btnColor: 210
610219
+ // red — recording
610165
610220
  });
610166
610221
  }
610167
610222
  const activeIndices = sections.map((s2, i2) => !s2.empty ? i2 : -1).filter((i2) => i2 >= 0);
@@ -610217,7 +610272,10 @@ ${CONTENT_BG_SEQ}`);
610217
610272
  if (isHidden[idx]) continue;
610218
610273
  if (!first2) result += pipe3;
610219
610274
  first2 = false;
610220
- result += isCompact[idx] ? sections[idx].compact : sections[idx].expanded;
610275
+ const sec = sections[idx];
610276
+ const content = isCompact[idx] ? sec.compact : sec.expanded;
610277
+ 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${PANEL_BG_SEQ}`;
610221
610279
  }
610222
610280
  return result.replace(/\x1B\[0m/g, `\x1B[0m${PANEL_BG_SEQ}`);
610223
610281
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.293",
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.293",
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.293",
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",