open-agents-ai 0.187.293 → 0.187.294
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 +17 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -285611,7 +285611,7 @@ var init_status_bar = __esm({
|
|
|
285611
285611
|
return `\x1B]8;;${cmdPrefix}\x07\x1B[38;5;${fg2}m${label}\x1B]8;;\x07`;
|
|
285612
285612
|
};
|
|
285613
285613
|
const verBase = ` OA v${this._version}`;
|
|
285614
|
-
const verArrow = this._updateLatest ? "
|
|
285614
|
+
const verArrow = this._updateLatest ? " ↑" : "";
|
|
285615
285615
|
const verText = verBase + verArrow;
|
|
285616
285616
|
const menuBtns = [
|
|
285617
285617
|
{ cmd: "help", label: " help ", w: 6 },
|
|
@@ -331753,26 +331753,37 @@ ${opts.systemPromptAddition}` : `Working directory: ${repoRoot}`;
|
|
|
331753
331753
|
if (statusBar?.isActive) statusBar.endContentWrite();
|
|
331754
331754
|
};
|
|
331755
331755
|
if (!isResumed) writeMsg();
|
|
331756
|
+
} else {
|
|
331757
|
+
try {
|
|
331758
|
+
statusBar.setUpdateAvailable(null);
|
|
331759
|
+
} catch {
|
|
331760
|
+
}
|
|
331756
331761
|
}
|
|
331757
331762
|
}).catch(() => {
|
|
331758
331763
|
});
|
|
331759
|
-
const AUTO_UPDATE_INTERVAL_MS =
|
|
331764
|
+
const AUTO_UPDATE_INTERVAL_MS = 5 * 60 * 1e3;
|
|
331760
331765
|
const autoUpdateTimer = setInterval(() => {
|
|
331761
|
-
if (updateNotified) return;
|
|
331762
331766
|
const updateMode = savedSettings.updateMode ?? "auto";
|
|
331763
331767
|
if (updateMode === "manual") return;
|
|
331764
331768
|
checkForUpdate(version4).then((updateInfo) => {
|
|
331765
|
-
if (updateInfo
|
|
331766
|
-
updateNotified = true;
|
|
331769
|
+
if (updateInfo) {
|
|
331767
331770
|
try {
|
|
331768
331771
|
statusBar.setUpdateAvailable(updateInfo.latestVersion);
|
|
331769
331772
|
} catch {
|
|
331770
331773
|
}
|
|
331771
|
-
|
|
331774
|
+
banner.setUpdateAvailable(updateInfo.latestVersion);
|
|
331775
|
+
if (statusBar?.isActive && !statusBar.isStreaming && !updateNotified) {
|
|
331776
|
+
updateNotified = true;
|
|
331772
331777
|
statusBar.beginContentWrite();
|
|
331773
331778
|
renderInfo2(`Update available: v${version4} → v${updateInfo.latestVersion}. Run /update to install.`);
|
|
331774
331779
|
statusBar.endContentWrite();
|
|
331775
331780
|
}
|
|
331781
|
+
} else {
|
|
331782
|
+
try {
|
|
331783
|
+
statusBar.setUpdateAvailable(null);
|
|
331784
|
+
} catch {
|
|
331785
|
+
}
|
|
331786
|
+
banner.setUpdateAvailable(null);
|
|
331776
331787
|
}
|
|
331777
331788
|
}).catch(() => {
|
|
331778
331789
|
});
|
package/package.json
CHANGED