omnius 1.0.295 → 1.0.297
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 +23 -25
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -607454,7 +607454,17 @@ var init_status_bar = __esm({
|
|
|
607454
607454
|
};
|
|
607455
607455
|
const renderBtn = (cmd, label) => {
|
|
607456
607456
|
const fg2 = buttonFg(cmd);
|
|
607457
|
-
|
|
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";
|
|
@@ -609922,10 +609932,10 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609922
609932
|
const tpsStr = _StatusBar.formatTokensPerSecond(this._tokensPerSecond);
|
|
609923
609933
|
const tpsExpanded = " " + pastel2(222, "t/s") + " " + c3.bold(tpsStr);
|
|
609924
609934
|
const tpsW = 1 + 3 + 1 + tpsStr.length;
|
|
609925
|
-
const tokExpanded = pastel2(117, "↑") +
|
|
609926
|
-
const tokCompact = pastel2(117, "↑") +
|
|
609927
|
-
const tokExpW = 1 +
|
|
609928
|
-
const tokCompW = 1 + _StatusBar.
|
|
609935
|
+
const tokExpanded = pastel2(117, "↑") + _StatusBar.digitBarAnsi(tokInRaw, 117) + " " + pastel2(151, "↓") + _StatusBar.digitBarAnsi(tokOutVal, 151) + " " + pastel2(222, "t/s") + " " + c3.bold(tpsStr);
|
|
609936
|
+
const tokCompact = pastel2(117, "↑") + _StatusBar.digitBarAnsi(tokInRaw, 117) + " " + pastel2(151, "↓") + _StatusBar.digitBarAnsi(tokOutVal, 151) + " " + pastel2(222, "t/s") + " " + c3.bold(tpsStr);
|
|
609937
|
+
const tokExpW = 1 + _StatusBar.digitBar(tokInRaw).length + 1 + 1 + _StatusBar.digitBar(tokOutVal).length + tpsW;
|
|
609938
|
+
const tokCompW = 1 + _StatusBar.digitBar(tokInRaw).length + 1 + 1 + _StatusBar.digitBar(tokOutVal).length + tpsW;
|
|
609929
609939
|
sections.push({
|
|
609930
609940
|
expanded: tokExpanded,
|
|
609931
609941
|
compact: tokCompact,
|
|
@@ -609948,13 +609958,13 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609948
609958
|
Math.min(100, Math.round((1 - ctxUsed / ctxTotal) * 100))
|
|
609949
609959
|
);
|
|
609950
609960
|
const ctxColor = ctxPct > 50 ? c3.green : ctxPct > 20 ? c3.yellow : c3.red;
|
|
609951
|
-
const ctxSizeStr = _StatusBar.
|
|
609961
|
+
const ctxSizeStr = _StatusBar.digitBar(ctxTotal);
|
|
609952
609962
|
ctxSuffix = " " + ctxColor(`${ctxPct}%`) + c3.dim(` ${ctxSizeStr}`);
|
|
609953
609963
|
ctxSuffixW = 1 + `${ctxPct}%`.length + 1 + ctxSizeStr.length;
|
|
609954
609964
|
ctxCompSuffix = " " + ctxColor(`${ctxPct}%`);
|
|
609955
609965
|
ctxCompSuffixW = 1 + `${ctxPct}%`.length;
|
|
609956
609966
|
}
|
|
609957
|
-
const promptSizeStr = m2.lastPromptTokens > 0 ? _StatusBar.
|
|
609967
|
+
const promptSizeStr = m2.lastPromptTokens > 0 ? _StatusBar.digitBar(m2.lastPromptTokens) : "";
|
|
609958
609968
|
const promptSuffix = promptSizeStr ? c3.dim(` in ${promptSizeStr}`) : "";
|
|
609959
609969
|
const promptSuffixW = promptSizeStr ? 4 + promptSizeStr.length : 0;
|
|
609960
609970
|
const promptCompSuffix = promptSizeStr ? c3.dim(` ${promptSizeStr}`) : "";
|
|
@@ -610028,8 +610038,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610028
610038
|
const snrColor = snrPct >= 70 ? c3.green : snrPct >= 40 ? c3.yellow : c3.red;
|
|
610029
610039
|
const dPrimeStr = this._snr.dPrime.toFixed(1);
|
|
610030
610040
|
const capStr = this._snr.capacityWarning ? c3.red(" !CAP") : "";
|
|
610031
|
-
const snrExpanded = pastel2(183, "SNR ") + snrColor(
|
|
610032
|
-
const snrCompact = snrColor(
|
|
610041
|
+
const snrExpanded = pastel2(183, "SNR ") + snrColor(_StatusBar.digitBarAnsi(snrPct, 183)) + c3.dim(` d'${dPrimeStr}`) + capStr;
|
|
610042
|
+
const snrCompact = snrColor(_StatusBar.digitBarAnsi(snrPct, 183));
|
|
610033
610043
|
const expW = 4 + `${snrPct}%`.length + 3 + dPrimeStr.length + (this._snr.capacityWarning ? 5 : 0);
|
|
610034
610044
|
sections.push({
|
|
610035
610045
|
expanded: snrExpanded,
|
|
@@ -610040,24 +610050,12 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610040
610050
|
btnColor: 183
|
|
610041
610051
|
});
|
|
610042
610052
|
}
|
|
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
610053
|
if (this._speedTracker.hasData) {
|
|
610056
610054
|
const ratio = this._speedTracker.getSpeedRatio();
|
|
610057
610055
|
if (ratio > 0) {
|
|
610058
610056
|
const ratioStr = ratio >= 10 ? `${Math.round(ratio)}x` : `${ratio.toFixed(1)}x`;
|
|
610059
610057
|
const ratioColor = ratio >= 2 ? c3.green : ratio >= 1 ? c3.yellow : c3.red;
|
|
610060
|
-
const speedExpanded = pastel2(218, "Exp ") + ratioColor(
|
|
610058
|
+
const speedExpanded = pastel2(218, "Exp ") + ratioColor(_StatusBar.digitBarAnsi(Math.round(ratio * 10), 218));
|
|
610061
610059
|
sections.push({
|
|
610062
610060
|
expanded: speedExpanded,
|
|
610063
610061
|
compact: speedExpanded,
|
|
@@ -610070,8 +610068,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610070
610068
|
}
|
|
610071
610069
|
if (m2.hasPricing && m2.estimatedCost !== void 0) {
|
|
610072
610070
|
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 ") +
|
|
610074
|
-
const costCompact =
|
|
610071
|
+
const costExpanded = pastel2(222, "Cost ") + _StatusBar.digitBarAnsi(Math.round(m2.estimatedCost * 1e4), 222);
|
|
610072
|
+
const costCompact = _StatusBar.digitBarAnsi(Math.round(m2.estimatedCost * 1e4), 222);
|
|
610075
610073
|
sections.push({
|
|
610076
610074
|
expanded: costExpanded,
|
|
610077
610075
|
compact: costCompact,
|
|
@@ -610275,7 +610273,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610275
610273
|
const sec = sections[idx];
|
|
610276
610274
|
const content = isCompact[idx] ? sec.compact : sec.expanded;
|
|
610277
610275
|
const color = sec.btnColor ?? 183;
|
|
610278
|
-
result +=
|
|
610276
|
+
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 `;
|
|
610279
610277
|
}
|
|
610280
610278
|
return result.replace(/\x1B\[0m/g, `\x1B[0m${PANEL_BG_SEQ}`);
|
|
610281
610279
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.297",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.297",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED