open-agents-ai 0.93.1 → 0.94.0

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.
Files changed (2) hide show
  1. package/dist/index.js +28 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -38983,6 +38983,8 @@ var init_status_bar = __esm({
38983
38983
  _currentFooterHeight = 5;
38984
38984
  /** Timestamp when streaming started (for token rate calculation) */
38985
38985
  _streamStartTime = 0;
38986
+ /** Current package version (shown in metrics row, rightmost) */
38987
+ _version = "";
38986
38988
  /**
38987
38989
  * Provide a callback that returns readline's current input state.
38988
38990
  * StatusBar uses this to render typed text and position the cursor
@@ -39084,6 +39086,12 @@ var init_status_bar = __esm({
39084
39086
  setContextWindowSize(size) {
39085
39087
  this.metrics.contextWindowSize = size;
39086
39088
  }
39089
+ /** Set the current package version for display in the metrics row */
39090
+ setVersion(version) {
39091
+ this._version = version;
39092
+ if (this.active)
39093
+ this.renderFooterPreserveCursor();
39094
+ }
39087
39095
  /** Human expert speed ratio tracker */
39088
39096
  _speedTracker = new HumanSpeedTracker();
39089
39097
  /** Record a tool call for speed ratio tracking */
@@ -39530,6 +39538,12 @@ var init_status_bar = __esm({
39530
39538
  const recW = 1 + 4 + (this._countdown > 0 ? 1 + `${this._countdown}s`.length : 0);
39531
39539
  sections.push({ expanded: recStr, compact: recStr, expandedW: recW, compactW: recW, empty: false });
39532
39540
  }
39541
+ if (this._version) {
39542
+ const vExpanded = pastel2(245, "v" + this._version);
39543
+ const vCompact = pastel2(245, "v" + this._version);
39544
+ const vW = 1 + this._version.length;
39545
+ sections.push({ expanded: vExpanded, compact: vCompact, expandedW: vW, compactW: vW, empty: false });
39546
+ }
39533
39547
  const activeIndices = sections.map((s, i) => !s.empty ? i : -1).filter((i) => i >= 0);
39534
39548
  const isCompact = new Array(sections.length).fill(false);
39535
39549
  const calcTotalWidth = () => {
@@ -40648,6 +40662,7 @@ async function startInteractive(config, repoPath) {
40648
40662
  });
40649
40663
  }
40650
40664
  const statusBar = new StatusBar();
40665
+ statusBar.setVersion(version);
40651
40666
  if (process.stdout.isTTY) {
40652
40667
  const scrollTop = carouselLines > 0 ? carouselLines + 1 : 1;
40653
40668
  statusBar.activate(scrollTop);
@@ -40738,6 +40753,19 @@ async function startInteractive(config, repoPath) {
40738
40753
  }).catch(() => {
40739
40754
  });
40740
40755
  }
40756
+ const AUTO_UPDATE_INTERVAL_MS = 30 * 60 * 1e3;
40757
+ const autoUpdateTimer = setInterval(() => {
40758
+ const updateMode = savedSettings.updateMode ?? "auto";
40759
+ if (updateMode === "manual")
40760
+ return;
40761
+ checkForUpdate(version).then((updateInfo) => {
40762
+ if (updateInfo) {
40763
+ performSilentUpdate();
40764
+ }
40765
+ }).catch(() => {
40766
+ });
40767
+ }, AUTO_UPDATE_INTERVAL_MS);
40768
+ autoUpdateTimer.unref();
40741
40769
  const voiceEngine = new VoiceEngine();
40742
40770
  let voiceSession = null;
40743
40771
  let exposeGateway = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.93.1",
3
+ "version": "0.94.0",
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",