omnius 1.0.293 → 1.0.294
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 +38 -14
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -609859,6 +609859,10 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609859
609859
|
const pastel2 = (code8, s2) => `${PANEL_BG_SEQ}\x1B[38;5;${code8}m${s2}\x1B[0m${PANEL_BG_SEQ}`;
|
|
609860
609860
|
const pipe3 = pastel2(60, " │ ");
|
|
609861
609861
|
const pipeW = 3;
|
|
609862
|
+
const BTN_L = "〈";
|
|
609863
|
+
const BTN_R = "〉";
|
|
609864
|
+
const BTN_L_W = 1;
|
|
609865
|
+
const BTN_R_W = 1;
|
|
609862
609866
|
const sections = [];
|
|
609863
609867
|
const compactOrder = [];
|
|
609864
609868
|
let modelSectionIdx = -1;
|
|
@@ -609870,7 +609874,9 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609870
609874
|
compact: cohereExpanded,
|
|
609871
609875
|
expandedW: 2,
|
|
609872
609876
|
compactW: 2,
|
|
609873
|
-
empty: false
|
|
609877
|
+
empty: false,
|
|
609878
|
+
btnColor: 214
|
|
609879
|
+
// amber — cohere
|
|
609874
609880
|
});
|
|
609875
609881
|
}
|
|
609876
609882
|
const tokInRaw = m2.promptTokens > 0 ? m2.promptTokens : Math.max(m2.estimatedContextTokens, 0);
|
|
@@ -609891,7 +609897,9 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609891
609897
|
compact: tokCompact,
|
|
609892
609898
|
expandedW: tokExpW,
|
|
609893
609899
|
compactW: tokCompW,
|
|
609894
|
-
empty: false
|
|
609900
|
+
empty: false,
|
|
609901
|
+
btnColor: 117
|
|
609902
|
+
// green — token I/O
|
|
609895
609903
|
});
|
|
609896
609904
|
{
|
|
609897
609905
|
const ctxUsed = m2.estimatedContextTokens;
|
|
@@ -609942,7 +609950,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609942
609950
|
compact: modelCompact,
|
|
609943
609951
|
expandedW: Math.max(0, expW),
|
|
609944
609952
|
compactW: Math.max(0, compW),
|
|
609945
|
-
empty: false
|
|
609953
|
+
empty: false,
|
|
609954
|
+
btnColor: 183
|
|
609946
609955
|
});
|
|
609947
609956
|
}
|
|
609948
609957
|
} else if (capParts.length > 0) {
|
|
@@ -609953,7 +609962,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609953
609962
|
compact: capsOnly,
|
|
609954
609963
|
expandedW: capsOnlyW,
|
|
609955
609964
|
compactW: capsOnlyW,
|
|
609956
|
-
empty: false
|
|
609965
|
+
empty: false,
|
|
609966
|
+
btnColor: 183
|
|
609957
609967
|
});
|
|
609958
609968
|
} else if (ctxTotal > 0) {
|
|
609959
609969
|
sections.push({
|
|
@@ -609961,7 +609971,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609961
609971
|
compact: ctxCompSuffix.trimStart(),
|
|
609962
609972
|
expandedW: ctxSuffixW - 1,
|
|
609963
609973
|
compactW: ctxCompSuffixW - 1,
|
|
609964
|
-
empty: false
|
|
609974
|
+
empty: false,
|
|
609975
|
+
btnColor: 183
|
|
609965
609976
|
});
|
|
609966
609977
|
}
|
|
609967
609978
|
}
|
|
@@ -609974,7 +609985,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609974
609985
|
compact: `\x1B[38;5;45m${compact3}\x1B[0m`,
|
|
609975
609986
|
expandedW: 2 + 3 + suffix.length,
|
|
609976
609987
|
compactW: 2 + suffix.length,
|
|
609977
|
-
empty: false
|
|
609988
|
+
empty: false,
|
|
609989
|
+
btnColor: 45
|
|
609978
609990
|
});
|
|
609979
609991
|
}
|
|
609980
609992
|
if (this._snr) {
|
|
@@ -609990,7 +610002,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609990
610002
|
compact: snrCompact,
|
|
609991
610003
|
expandedW: expW,
|
|
609992
610004
|
compactW: `${snrPct}%`.length,
|
|
609993
|
-
empty: false
|
|
610005
|
+
empty: false,
|
|
610006
|
+
btnColor: 183
|
|
609994
610007
|
});
|
|
609995
610008
|
}
|
|
609996
610009
|
if (this._emotion) {
|
|
@@ -610001,7 +610014,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610001
610014
|
compact: emotionCompact,
|
|
610002
610015
|
expandedW: 2 + 1 + this._emotion.label.length,
|
|
610003
610016
|
compactW: 2,
|
|
610004
|
-
empty: false
|
|
610017
|
+
empty: false,
|
|
610018
|
+
btnColor: 183
|
|
610005
610019
|
});
|
|
610006
610020
|
}
|
|
610007
610021
|
if (this._speedTracker.hasData) {
|
|
@@ -610015,7 +610029,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610015
610029
|
compact: speedExpanded,
|
|
610016
610030
|
expandedW: 4 + ratioStr.length,
|
|
610017
610031
|
compactW: 4 + ratioStr.length,
|
|
610018
|
-
empty: false
|
|
610032
|
+
empty: false,
|
|
610033
|
+
btnColor: 218
|
|
610019
610034
|
});
|
|
610020
610035
|
}
|
|
610021
610036
|
}
|
|
@@ -610028,7 +610043,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610028
610043
|
compact: costCompact,
|
|
610029
610044
|
expandedW: 5 + costStr.length,
|
|
610030
610045
|
compactW: costStr.length,
|
|
610031
|
-
empty: false
|
|
610046
|
+
empty: false,
|
|
610047
|
+
btnColor: 222
|
|
610032
610048
|
});
|
|
610033
610049
|
}
|
|
610034
610050
|
if (this._expose) {
|
|
@@ -610055,7 +610071,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610055
610071
|
compact: exposeCompact,
|
|
610056
610072
|
expandedW: 2 + expFullStr.length,
|
|
610057
610073
|
compactW: 2 + expCompStr.length,
|
|
610058
|
-
empty: false
|
|
610074
|
+
empty: false,
|
|
610075
|
+
btnColor: 214
|
|
610059
610076
|
});
|
|
610060
610077
|
}
|
|
610061
610078
|
{
|
|
@@ -610148,7 +610165,9 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610148
610165
|
compact: sysCompact,
|
|
610149
610166
|
expandedW: srcW + 1 + hwExpW + netW,
|
|
610150
610167
|
compactW: srcW + 1 + hwCompW + netW,
|
|
610151
|
-
empty: false
|
|
610168
|
+
empty: false,
|
|
610169
|
+
btnColor: 120
|
|
610170
|
+
// green — system metrics
|
|
610152
610171
|
});
|
|
610153
610172
|
}
|
|
610154
610173
|
if (this._recording) {
|
|
@@ -610161,7 +610180,9 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610161
610180
|
compact: recStr,
|
|
610162
610181
|
expandedW: recW,
|
|
610163
610182
|
compactW: recW,
|
|
610164
|
-
empty: false
|
|
610183
|
+
empty: false,
|
|
610184
|
+
btnColor: 210
|
|
610185
|
+
// red — recording
|
|
610165
610186
|
});
|
|
610166
610187
|
}
|
|
610167
610188
|
const activeIndices = sections.map((s2, i2) => !s2.empty ? i2 : -1).filter((i2) => i2 >= 0);
|
|
@@ -610217,7 +610238,10 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610217
610238
|
if (isHidden[idx]) continue;
|
|
610218
610239
|
if (!first2) result += pipe3;
|
|
610219
610240
|
first2 = false;
|
|
610220
|
-
|
|
610241
|
+
const sec = sections[idx];
|
|
610242
|
+
const content = isCompact[idx] ? sec.compact : sec.expanded;
|
|
610243
|
+
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}`;
|
|
610221
610245
|
}
|
|
610222
610246
|
return result.replace(/\x1B\[0m/g, `\x1B[0m${PANEL_BG_SEQ}`);
|
|
610223
610247
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.294",
|
|
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.294",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED