omnius 1.0.296 → 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 +16 -18
- 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";
|
|
@@ -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,
|
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