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 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 parts = [uptimeStr];
642162
- if (ctxStr) parts.push(ctxStr);
642163
- parts.push(arrow);
642164
- const middle = parts.join(" ");
642165
- return (stageBlock + middle).replace(/\x1B\[0m/g, `\x1B[0m${PANEL_BG_SEQ}`);
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";
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.509",
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.509",
9
+ "version": "1.0.510",
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.509",
3
+ "version": "1.0.510",
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",