omnius 1.0.602 → 1.0.603

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
@@ -709817,6 +709817,12 @@ var init_status_bar = __esm({
709817
709817
  _toolCallBreakdown = [];
709818
709818
  _compactionCount = 0;
709819
709819
  _sessionStartAt = 0;
709820
+ /** Whether the uptime timer is currently paused (task complete) */
709821
+ _timerPaused = false;
709822
+ /** Timestamp when timer was paused */
709823
+ _pausedAt = 0;
709824
+ /** Total accumulated paused time in milliseconds */
709825
+ _accumulatedPausedMs = 0;
709820
709826
  _gpuName = "";
709821
709827
  _vramTotal = 0;
709822
709828
  _vramUsed = 0;
@@ -711178,6 +711184,31 @@ var init_status_bar = __esm({
711178
711184
  recordSpeedTaskEnd() {
711179
711185
  this._speedTracker.taskEnd();
711180
711186
  }
711187
+ /** Pause the uptime timer (called when task completes) */
711188
+ pauseUptimeTimer() {
711189
+ if (!this._timerPaused && this._sessionStartAt > 0) {
711190
+ this._timerPaused = true;
711191
+ this._pausedAt = Date.now();
711192
+ if (this.active) this.renderFooterPreserveCursor();
711193
+ }
711194
+ }
711195
+ /** Resume the uptime timer (called when next query begins) */
711196
+ resumeUptimeTimer() {
711197
+ if (this._timerPaused) {
711198
+ const now2 = Date.now();
711199
+ this._accumulatedPausedMs += now2 - this._pausedAt;
711200
+ this._timerPaused = false;
711201
+ this._pausedAt = 0;
711202
+ if (this.active) this.renderFooterPreserveCursor();
711203
+ }
711204
+ }
711205
+ /** Reset the uptime timer completely (for new session) */
711206
+ resetUptimeTimer() {
711207
+ this._sessionStartAt = 0;
711208
+ this._timerPaused = false;
711209
+ this._pausedAt = 0;
711210
+ this._accumulatedPausedMs = 0;
711211
+ }
711181
711212
  /** SNR (Signal-to-Noise Ratio) from context quality evaluation */
711182
711213
  _snr = null;
711183
711214
  /** Update the SNR gauge with a new evaluation result */
@@ -713784,7 +713815,10 @@ ${CONTENT_BG_SEQ}`);
713784
713815
  const m2 = this.metrics;
713785
713816
  const termWidth = getTermWidth();
713786
713817
  const uptime2 = this.formatUptime();
713787
- const uptimeStr = `\x1B[38;5;183m◖ ${uptime2}\x1B[0m`;
713818
+ const isPaused = this._timerPaused;
713819
+ const circleChar = isPaused ? "●" : "◖";
713820
+ const circleColor = isPaused ? 120 : 183;
713821
+ const uptimeStr = `\x1B[38;5;${circleColor}m${circleChar} ${uptime2}\x1B[0m`;
713788
713822
  const ctxUsed = m2.estimatedContextTokens;
713789
713823
  const ctxTotal = this.reportedContextTotal(
713790
713824
  m2.contextWindowSize,
@@ -713881,7 +713915,12 @@ ${CONTENT_BG_SEQ}`);
713881
713915
  }
713882
713916
  formatUptime() {
713883
713917
  if (this._sessionStartAt <= 0) return "0s";
713884
- const ms = Date.now() - this._sessionStartAt;
713918
+ let ms;
713919
+ if (this._timerPaused) {
713920
+ ms = this._pausedAt - this._sessionStartAt - this._accumulatedPausedMs;
713921
+ } else {
713922
+ ms = Date.now() - this._sessionStartAt - this._accumulatedPausedMs;
713923
+ }
713885
713924
  const totalSec = Math.floor(ms / 1e3);
713886
713925
  const h = Math.floor(totalSec / 3600);
713887
713926
  const m2 = Math.floor(totalSec % 3600 / 60);
@@ -827919,6 +827958,7 @@ ${taskInput}`;
827919
827958
  }
827920
827959
  try {
827921
827960
  statusBar.setProcessing(true);
827961
+ statusBar.resumeUptimeTimer();
827922
827962
  statusBar.recordSpeedTaskStart();
827923
827963
  const task = startTask(
827924
827964
  taskInput,
@@ -828001,6 +828041,7 @@ ${taskInput}`;
828001
828041
  } finally {
828002
828042
  statusBar.setProcessing(false);
828003
828043
  statusBar.recordSpeedTaskEnd();
828044
+ statusBar.pauseUptimeTimer();
828004
828045
  try {
828005
828046
  const memSnippets = gatherMemorySnippets(repoRoot);
828006
828047
  if (memSnippets.length > 0 && lastSubmittedPrompt) {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.602",
3
+ "version": "1.0.603",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.602",
9
+ "version": "1.0.603",
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.602",
3
+ "version": "1.0.603",
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/library.js",