omnius 1.0.300 → 1.0.301
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 +21 -31
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -607473,10 +607473,7 @@ var init_status_bar = __esm({
|
|
|
607473
607473
|
return fg2;
|
|
607474
607474
|
};
|
|
607475
607475
|
const decorateMenuButton = (cmd, label) => {
|
|
607476
|
-
return
|
|
607477
|
-
cmd,
|
|
607478
|
-
`\x1B[38;5;${HEADER_ACCENT_GREEN}m🭁\x1B[0m${HEADER_BUTTON_FG}${HEADER_BUTTON_BG}${label}\x1B[0m${PANEL_BG_SEQ}\x1B[38;5;${HEADER_ACCENT_GREEN}m🭝\x1B[0m${PANEL_BG_SEQ}`
|
|
607479
|
-
);
|
|
607476
|
+
return `\x1B[38;5;${HEADER_ACCENT_GREEN}m🭁\x1B[0m${HEADER_BUTTON_FG}${HEADER_BUTTON_BG}${label}\x1B[0m${PANEL_BG_SEQ}\x1B[38;5;${HEADER_ACCENT_GREEN}m🭝\x1B[0m${PANEL_BG_SEQ}`;
|
|
607480
607477
|
};
|
|
607481
607478
|
const renderBtn = (cmd, label) => {
|
|
607482
607479
|
const fg2 = buttonFg(cmd);
|
|
@@ -607800,16 +607797,7 @@ var init_status_bar = __esm({
|
|
|
607800
607797
|
).join(" ") : "no sub-agents";
|
|
607801
607798
|
buf += ` ${subAgents.substring(0, w - 4)}`;
|
|
607802
607799
|
buf += `\x1B[${subRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
|
|
607803
|
-
const
|
|
607804
|
-
buf += `\x1B[${sepRow};1H${PANEL_BG_SEQ}\x1B[2K`;
|
|
607805
|
-
buf += `${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
|
|
607806
|
-
buf += `\x1B[${sepRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
|
|
607807
|
-
const scrollRow = sepRow + 1;
|
|
607808
|
-
buf += `\x1B[${scrollRow};1H${PANEL_BG_SEQ}\x1B[2K`;
|
|
607809
|
-
buf += `${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
|
|
607810
|
-
buf += `\x1B[38;5;${TEXT_DIM}m${PANEL_BG_SEQ}`;
|
|
607811
|
-
buf += `scroll: ${scrollPct}`.substring(0, w - 4);
|
|
607812
|
-
buf += `\x1B[${scrollRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
|
|
607800
|
+
const scrollRow = subRow + 1;
|
|
607813
607801
|
buf += `\x1B[${scrollRow};1H${BOX_FG}╰${"─".repeat(w - 2)}${BOX_FG}╯${RESET4}${PANEL_BG_SEQ}`;
|
|
607814
607802
|
} else {
|
|
607815
607803
|
const scrollRow = hdrRow + 1;
|
|
@@ -608824,14 +608812,16 @@ var init_status_bar = __esm({
|
|
|
608824
608812
|
const wasExpanded = this._headerExpanded;
|
|
608825
608813
|
this._headerExpanded = !this._headerExpanded;
|
|
608826
608814
|
this.refreshHeaderAndFooter();
|
|
608827
|
-
this.scrollRegionTop += this._headerExpanded ?
|
|
608815
|
+
this.scrollRegionTop += this._headerExpanded ? 2 : -2;
|
|
608828
608816
|
if (this.active) {
|
|
608829
608817
|
this.applyScrollRegion();
|
|
608830
608818
|
this.renderFooterAndPositionInput();
|
|
608831
608819
|
}
|
|
608832
608820
|
if (!this._headerExpanded && wasExpanded) {
|
|
608833
608821
|
const base3 = this.scrollRegionTop;
|
|
608834
|
-
|
|
608822
|
+
let buf = `\x1B[${base3};1H\x1B[2K\x1B[${base3 + 1};1H\x1B[2K`;
|
|
608823
|
+
buf += `\x1B[${base3};1H\x1BM\x1BM`;
|
|
608824
|
+
this.termWrite(buf);
|
|
608835
608825
|
}
|
|
608836
608826
|
return;
|
|
608837
608827
|
}
|
|
@@ -609935,8 +609925,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609935
609925
|
const m2 = this.metrics;
|
|
609936
609926
|
const termWidth = getTermWidth();
|
|
609937
609927
|
const pastel2 = (code8, s2) => `${PANEL_BG_SEQ}\x1B[38;5;${code8}m${s2}\x1B[0m${PANEL_BG_SEQ}`;
|
|
609938
|
-
const pipe3 =
|
|
609939
|
-
const pipeW =
|
|
609928
|
+
const pipe3 = `${PANEL_BG_SEQ}${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
|
|
609929
|
+
const pipeW = 1;
|
|
609940
609930
|
const BTN_L = _isWindows ? "" : "🛁";
|
|
609941
609931
|
const BTN_R = _isWindows ? "" : "🛂";
|
|
609942
609932
|
const BTN_L_W = _isWindows ? 0 : 2;
|
|
@@ -610157,40 +610147,40 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610157
610147
|
if (rm4.cpuUtil >= 0) {
|
|
610158
610148
|
const cpuColor = rm4.cpuUtil > 80 ? c3.red : rm4.cpuUtil > 50 ? c3.yellow : c3.green;
|
|
610159
610149
|
const cpuCoresInfo = rm4.cpuCores > 0 ? ` (${_StatusBar.digitBar(rm4.cpuCores)}c` + (rm4.cpuModel ? " " + rm4.cpuModel.replace(/\s+/g, " ").slice(0, 30) : "") + ")" : "";
|
|
610160
|
-
hwExpStr += `CPU
|
|
610161
|
-
hwCompStr += `CPU
|
|
610150
|
+
hwExpStr += `CPU${cpuColor(_StatusBar.digitBar(rm4.cpuUtil) + "%")}${c3.dim(cpuCoresInfo)}`;
|
|
610151
|
+
hwCompStr += `CPU${cpuColor(_StatusBar.digitBar(rm4.cpuUtil) + "%")}`;
|
|
610162
610152
|
hwExpW += 4 + `${rm4.cpuUtil}%`.length + cpuCoresInfo.length;
|
|
610163
610153
|
hwCompW += 4 + `${rm4.cpuUtil}%`.length;
|
|
610164
610154
|
}
|
|
610165
610155
|
if (rm4.memUtil >= 0) {
|
|
610166
610156
|
const memColor = rm4.memUtil > 80 ? c3.red : rm4.memUtil > 50 ? c3.yellow : c3.green;
|
|
610167
610157
|
const memDetail = rm4.memTotalGB > 0 ? ` (${rm4.memUsedGB}/${rm4.memTotalGB}GB)` : "";
|
|
610168
|
-
hwExpStr += ` RAM
|
|
610169
|
-
hwCompStr += ` RAM
|
|
610158
|
+
hwExpStr += ` RAM${memColor(_StatusBar.digitBar(rm4.memUtil) + "%")}${c3.dim(memDetail)}`;
|
|
610159
|
+
hwCompStr += ` RAM${memColor(_StatusBar.digitBar(rm4.memUtil) + "%")}`;
|
|
610170
610160
|
hwExpW += 5 + `${rm4.memUtil}%`.length + memDetail.length;
|
|
610171
610161
|
hwCompW += 5 + `${rm4.memUtil}%`.length;
|
|
610172
610162
|
}
|
|
610173
610163
|
if (rm4.diskUtil >= 0) {
|
|
610174
610164
|
const diskColor = rm4.diskUtil > 90 ? c3.red : rm4.diskUtil > 75 ? c3.yellow : c3.green;
|
|
610175
610165
|
const diskDetail = rm4.diskTotalGB > 0 ? ` (${rm4.diskFreeGB.toFixed(rm4.diskFreeGB < 10 ? 1 : 0)}GB free)` : "";
|
|
610176
|
-
hwExpStr += ` DISK
|
|
610177
|
-
hwCompStr += ` DISK
|
|
610166
|
+
hwExpStr += ` DISK${diskColor(_StatusBar.digitBar(rm4.diskUtil) + "%")}${c3.dim(diskDetail)}`;
|
|
610167
|
+
hwCompStr += ` DISK${diskColor(_StatusBar.digitBar(rm4.diskUtil) + "%")}`;
|
|
610178
610168
|
hwExpW += 6 + `${rm4.diskUtil}%`.length + diskDetail.length;
|
|
610179
610169
|
hwCompW += 6 + `${rm4.diskUtil}%`.length;
|
|
610180
610170
|
}
|
|
610181
610171
|
if (rm4.gpuUtil >= 0) {
|
|
610182
610172
|
const gpuColor = rm4.gpuUtil > 80 ? c3.red : rm4.gpuUtil > 50 ? c3.yellow : c3.green;
|
|
610183
610173
|
const gpuNameShort = rm4.gpuName ? ` (${rm4.gpuName.slice(0, 20)})` : "";
|
|
610184
|
-
hwExpStr += ` GPU
|
|
610185
|
-
hwCompStr += ` GPU
|
|
610174
|
+
hwExpStr += ` GPU${gpuColor(_StatusBar.digitBar(rm4.gpuUtil) + "%")}${c3.dim(gpuNameShort)}`;
|
|
610175
|
+
hwCompStr += ` GPU${gpuColor(_StatusBar.digitBar(rm4.gpuUtil) + "%")}`;
|
|
610186
610176
|
hwExpW += 5 + `${rm4.gpuUtil}%`.length + gpuNameShort.length;
|
|
610187
610177
|
hwCompW += 5 + `${rm4.gpuUtil}%`.length;
|
|
610188
610178
|
}
|
|
610189
610179
|
if (rm4.vramUtil >= 0) {
|
|
610190
610180
|
const vramColor = rm4.vramUtil > 80 ? c3.red : rm4.vramUtil > 50 ? c3.yellow : c3.green;
|
|
610191
610181
|
const vramDetail = rm4.vramTotalMB > 0 ? ` (${rm4.vramUsedMB}/${rm4.vramTotalMB}MB)` : "";
|
|
610192
|
-
hwExpStr += ` VRAM
|
|
610193
|
-
hwCompStr += ` VRAM
|
|
610182
|
+
hwExpStr += ` VRAM${vramColor(_StatusBar.digitBar(rm4.vramUtil) + "%")}${c3.dim(vramDetail)}`;
|
|
610183
|
+
hwCompStr += ` VRAM${vramColor(_StatusBar.digitBar(rm4.vramUtil) + "%")}`;
|
|
610194
610184
|
hwExpW += 6 + `${rm4.vramUtil}%`.length + vramDetail.length;
|
|
610195
610185
|
hwCompW += 6 + `${rm4.vramUtil}%`.length;
|
|
610196
610186
|
}
|
|
@@ -610207,8 +610197,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610207
610197
|
0
|
|
610208
610198
|
);
|
|
610209
610199
|
const ageSummary = oldestAgeMs > 0 ? ` age=${formatPoolAge(oldestAgeMs)}` : "";
|
|
610210
|
-
const poolText = ` OLLAMA
|
|
610211
|
-
const compactText3 = ` OLLAMA
|
|
610200
|
+
const poolText = ` OLLAMA${poolColor(`${pool3.mode}:${poolDetail}`)}${c3.dim(pidSummary)}${c3.dim(ageSummary)}`;
|
|
610201
|
+
const compactText3 = ` OLLAMA${poolColor(pool3.mode === "constrained" ? "queue" : `${_StatusBar.digitBar(ready)}/${_StatusBar.digitBar(target)}`)}`;
|
|
610212
610202
|
hwExpStr += poolText;
|
|
610213
610203
|
hwCompStr += compactText3;
|
|
610214
610204
|
hwExpW += 8 + `${pool3.mode}:${poolDetail}`.length + pidSummary.length + ageSummary.length;
|
|
@@ -610310,7 +610300,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
610310
610300
|
const sec = sections[idx];
|
|
610311
610301
|
const content = isCompact[idx] ? sec.compact : sec.expanded;
|
|
610312
610302
|
const color = sec.btnColor ?? 183;
|
|
610313
|
-
result +=
|
|
610303
|
+
result += `${PANEL_BG_SEQ}\x1B[38;5;${color}m${content}\x1B[0m`;
|
|
610314
610304
|
}
|
|
610315
610305
|
return result.replace(/\x1B\[0m/g, `\x1B[0m${PANEL_BG_SEQ}`);
|
|
610316
610306
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.301",
|
|
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.301",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED