omnius 1.0.285 → 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 +19 -24
- 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
|
}
|
|
@@ -609492,18 +609483,22 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609492
609483
|
});
|
|
609493
609484
|
}
|
|
609494
609485
|
hangingIndentForVisibleLine(visible, width) {
|
|
609495
|
-
const capped = (n2) => " ".repeat(Math.max(0, Math.min(n2, width - 4)));
|
|
609496
609486
|
const patterns = [
|
|
609497
609487
|
/^(\s*(?:[│├└]\s*)?(?:[-*+○•]\s+))/,
|
|
609498
609488
|
/^(\s*(?:[│├└]\s*)?(?:\d+[.)]\s+))/,
|
|
609499
609489
|
/^(\s*(?:[│├└]\s*)?(?:>\s*))/,
|
|
609500
|
-
/^(\s*(?:[│├└]\s*)?(?:[A-Za-z][\w.-]{0,28}:\s+))
|
|
609490
|
+
/^(\s*(?:[│├└]\s*)?(?:[A-Za-z][\w.-]{0,28}:\s+))/,
|
|
609491
|
+
/^(\s*[│├└|]\s*)/
|
|
609501
609492
|
];
|
|
609502
609493
|
for (const pattern of patterns) {
|
|
609503
609494
|
const match = visible.match(pattern);
|
|
609504
|
-
if (match?.[1])
|
|
609495
|
+
if (match?.[1]) {
|
|
609496
|
+
const indent = match[1];
|
|
609497
|
+
return indent.slice(0, Math.min(indent.length, Math.max(0, width - 4)));
|
|
609498
|
+
}
|
|
609505
609499
|
}
|
|
609506
|
-
|
|
609500
|
+
const leading = visible.match(/^\s*/)?.[0] ?? "";
|
|
609501
|
+
return leading.slice(0, Math.min(leading.length, Math.max(0, width - 4)));
|
|
609507
609502
|
}
|
|
609508
609503
|
visibleWrapRanges(visible, width, continuationIndent) {
|
|
609509
609504
|
const ranges = [];
|
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