omnius 1.0.509 → 1.0.510
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 +13 -5
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -642136,6 +642136,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
642136
642136
|
buildMetricsLine() {
|
|
642137
642137
|
const stageBlock = this.buildStageBlock();
|
|
642138
642138
|
const m2 = this.metrics;
|
|
642139
|
+
const termWidth = getTermWidth();
|
|
642139
642140
|
const uptime2 = this.formatUptime();
|
|
642140
642141
|
const uptimeStr = `\x1B[38;5;183m◖ ${uptime2}\x1B[0m`;
|
|
642141
642142
|
const ctxUsed = m2.estimatedContextTokens;
|
|
@@ -642158,11 +642159,18 @@ ${CONTENT_BG_SEQ}`);
|
|
|
642158
642159
|
ctxStr = `${bar} \x1B[38;5;${pctColor}m${pct2}%\x1B[0m`;
|
|
642159
642160
|
}
|
|
642160
642161
|
const arrow = this._debugPanelOpen ? `\x1B[38;5;183m▼\x1B[0m` : `\x1B[38;5;240m▶\x1B[0m`;
|
|
642161
|
-
const
|
|
642162
|
-
if (ctxStr)
|
|
642163
|
-
|
|
642164
|
-
const
|
|
642165
|
-
|
|
642162
|
+
const rightParts = [uptimeStr];
|
|
642163
|
+
if (ctxStr) rightParts.push(ctxStr);
|
|
642164
|
+
rightParts.push(arrow);
|
|
642165
|
+
const rightSide = rightParts.join(" ");
|
|
642166
|
+
const stageW = stripAnsi(stageBlock).length;
|
|
642167
|
+
const rightW = stripAnsi(rightSide).length;
|
|
642168
|
+
const padNeeded = termWidth - stageW - rightW - 1;
|
|
642169
|
+
const gap = padNeeded > 0 ? " ".repeat(padNeeded) : " ";
|
|
642170
|
+
return (stageBlock + gap + rightSide).replace(
|
|
642171
|
+
/\x1B\[0m/g,
|
|
642172
|
+
`\x1B[0m${PANEL_BG_SEQ}`
|
|
642173
|
+
);
|
|
642166
642174
|
}
|
|
642167
642175
|
formatUptime() {
|
|
642168
642176
|
if (this._sessionStartAt <= 0) return "0s";
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.510",
|
|
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.510",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED