omnius 1.0.286 → 1.0.287
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 +11 -20
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -607635,16 +607635,11 @@ var init_status_bar = __esm({
|
|
|
607635
607635
|
return [];
|
|
607636
607636
|
}
|
|
607637
607637
|
getHeaderChromeLayout(termWidth) {
|
|
607638
|
-
const hasMultiple = this._headerPanels.length > 1;
|
|
607639
|
-
const showPrev = hasMultiple && this._headerPanelIndex > 0;
|
|
607640
|
-
const showNext = hasMultiple && this._headerPanelIndex < this._headerPanels.length - 1;
|
|
607641
|
-
const leftPadWidth = showPrev ? 2 : 0;
|
|
607642
|
-
const rightPadWidth = showNext ? 2 : 0;
|
|
607643
607638
|
return {
|
|
607644
|
-
showPrev,
|
|
607645
|
-
showNext,
|
|
607646
|
-
contentStartCol: 2
|
|
607647
|
-
innerWidth: Math.max(1, termWidth - 2
|
|
607639
|
+
showPrev: false,
|
|
607640
|
+
showNext: false,
|
|
607641
|
+
contentStartCol: 2,
|
|
607642
|
+
innerWidth: Math.max(1, termWidth - 2)
|
|
607648
607643
|
};
|
|
607649
607644
|
}
|
|
607650
607645
|
hitTestCurrentHeaderAction(row, col, termWidth) {
|
|
@@ -607741,24 +607736,20 @@ var init_status_bar = __esm({
|
|
|
607741
607736
|
}
|
|
607742
607737
|
this._sysClickZones = clickZones;
|
|
607743
607738
|
}
|
|
607744
|
-
const leftArrow = chrome.showPrev ? `\x1B]8;;omnius-cmd:header-prev\x07\x1B[38;5;${TEXT_DIM}m➜\x1B]8;;\x07` : "";
|
|
607745
|
-
const rightArrow = chrome.showNext ? `\x1B]8;;omnius-cmd:header-next\x07\x1B[38;5;${TEXT_DIM}m➡\x1B]8;;\x07` : "";
|
|
607746
607739
|
const hdrRow = layout().headerContent;
|
|
607747
607740
|
let buf = "\x1B7";
|
|
607748
607741
|
buf += `\x1B[${hdrRow};1H${PANEL_BG_SEQ}\x1B[2K`;
|
|
607749
607742
|
buf += `${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
|
|
607750
|
-
if (chrome.showPrev) {
|
|
607751
|
-
buf += leftArrow;
|
|
607752
|
-
buf += ` `;
|
|
607753
|
-
}
|
|
607754
607743
|
buf += `\x1B[38;5;${TEXT_PRIMARY}m${PANEL_BG_SEQ}`;
|
|
607755
607744
|
buf += content;
|
|
607756
|
-
if (chrome.showNext) {
|
|
607757
|
-
buf += `\x1B[${hdrRow};${w - 2}H`;
|
|
607758
|
-
buf += rightArrow;
|
|
607759
|
-
buf += ` `;
|
|
607760
|
-
}
|
|
607761
607745
|
buf += `\x1B[${hdrRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
|
|
607746
|
+
const subRow = hdrRow + 1;
|
|
607747
|
+
buf += `\x1B[${subRow};1H${PANEL_BG_SEQ}\x1B[2K`;
|
|
607748
|
+
buf += `${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
|
|
607749
|
+
buf += `\x1B[38;5;${TEXT_DIM}m${PANEL_BG_SEQ}`;
|
|
607750
|
+
const subAgents = this._agentViews.size > 1 ? Array.from(this._agentViews.values()).filter((v) => v.id !== "main").map((v) => `${v.status === "running" ? "●" : v.status === "completed" ? "✓" : "○"} ${v.label}`).join(" ") : "no sub-agents";
|
|
607751
|
+
buf += subAgents.substring(0, w - 2);
|
|
607752
|
+
buf += `\x1B[${subRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
|
|
607762
607753
|
buf += "\x1B8";
|
|
607763
607754
|
this.termWrite(buf);
|
|
607764
607755
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.287",
|
|
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.287",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED