omnius 1.0.289 → 1.0.291

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 CHANGED
@@ -607638,21 +607638,19 @@ var init_status_bar = __esm({
607638
607638
  }
607639
607639
  getHeaderChromeLayout(termWidth) {
607640
607640
  return {
607641
- showPrev: true,
607642
- showNext: false,
607641
+ showPrev: false,
607642
+ showNext: true,
607643
607643
  prevLabel: this._headerExpanded ? "▲" : "▼",
607644
607644
  // ▲ ▼
607645
- contentStartCol: 4,
607646
- // shift content right for arrow
607647
- innerWidth: Math.max(1, termWidth - 2)
607645
+ contentStartCol: 2,
607646
+ innerWidth: Math.max(1, termWidth - 4)
607648
607647
  };
607649
607648
  }
607650
607649
  hitTestCurrentHeaderAction(row, col, termWidth) {
607651
607650
  const hdrRow = layout().headerContent;
607652
607651
  if (row !== hdrRow) return null;
607653
607652
  const chrome = this.getHeaderChromeLayout(termWidth);
607654
- if (chrome.showPrev && col === 2) return "header-toggle";
607655
- if (chrome.showNext && col === termWidth - 1) return "header-next";
607653
+ if (chrome.showNext && col === termWidth - 2) return "header-toggle";
607656
607654
  const hit = this._headerCommandZones.find(
607657
607655
  (zone) => col >= zone.start && col <= zone.end
607658
607656
  );
@@ -607745,9 +607743,9 @@ var init_status_bar = __esm({
607745
607743
  let buf = "\x1B7";
607746
607744
  buf += `\x1B[${hdrRow};1H${PANEL_BG_SEQ}\x1B[2K`;
607747
607745
  buf += `${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
607748
- buf += `\x1B[${hdrRow};2H${TEXT_PRIMARY}${chromeLayout.prevLabel}${RESET4}${PANEL_BG_SEQ}`;
607749
607746
  buf += `\x1B[38;5;${TEXT_PRIMARY}m${PANEL_BG_SEQ}`;
607750
607747
  buf += content;
607748
+ buf += `\x1B[${hdrRow};${w - 2}H${chromeLayout.prevLabel}${RESET4}${PANEL_BG_SEQ}`;
607751
607749
  buf += `\x1B[${hdrRow};${w}H${BOX_FG}│${RESET4}${PANEL_BG_SEQ}`;
607752
607750
  const scrollPct = this._contentScrollOffset > 0 ? `${Math.round(this._contentScrollOffset / this._contentMaxLines * 100)}%` : "live";
607753
607751
  if (this._headerExpanded) {
@@ -608779,8 +608777,18 @@ var init_status_bar = __esm({
608779
608777
  return;
608780
608778
  }
608781
608779
  if (cmd === "header-toggle") {
608780
+ const wasExpanded = this._headerExpanded;
608782
608781
  this._headerExpanded = !this._headerExpanded;
608783
608782
  this.refreshHeaderAndFooter();
608783
+ this.scrollRegionTop += this._headerExpanded ? 2 : -2;
608784
+ if (this.active) {
608785
+ this.applyScrollRegion();
608786
+ this.renderFooterAndPositionInput();
608787
+ }
608788
+ if (!this._headerExpanded && wasExpanded) {
608789
+ const base3 = this.scrollRegionTop;
608790
+ this.termWrite(`\x1B[${base3};1H\x1B[2K\x1B[${base3 + 1};1H\x1B[2K`);
608791
+ }
608784
608792
  return;
608785
608793
  }
608786
608794
  setPressedButton(cmd);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.289",
3
+ "version": "1.0.291",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.289",
9
+ "version": "1.0.291",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.289",
3
+ "version": "1.0.291",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",