open-agents-ai 0.184.59 → 0.184.60
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 +33 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50680,9 +50680,10 @@ async function handleUpdate(subcommand, ctx) {
|
|
|
50680
50680
|
const charIdx2 = noise2 < density2 ? Math.min(particles.length - 1, Math.floor(density2 * particles.length)) : 0;
|
|
50681
50681
|
buf += `\x1B[${boxTop + r};${boxLeft + boxW - 1}H${particles[charIdx2]}`;
|
|
50682
50682
|
}
|
|
50683
|
-
const label = "INSTALLING";
|
|
50683
|
+
const label = statusLine === "__DONE__" ? "INSTALLED" : "INSTALLING";
|
|
50684
|
+
const labelColor = statusLine === "__DONE__" ? 82 : yellow;
|
|
50684
50685
|
const labelCol = centerCol - Math.floor(label.length / 2);
|
|
50685
|
-
buf += `\x1B[${centerRow - 1};${labelCol}H\x1B[1;38;5;${
|
|
50686
|
+
buf += `\x1B[${centerRow - 1};${labelCol}H\x1B[1;38;5;${labelColor}m${label}`;
|
|
50686
50687
|
const vLabel = `v${version}`;
|
|
50687
50688
|
const vCol = centerCol - Math.floor(vLabel.length / 2);
|
|
50688
50689
|
buf += `\x1B[${centerRow};${vCol}H\x1B[0;38;5;245m\x1B[48;5;${bgDark}m${vLabel}`;
|
|
@@ -50707,8 +50708,26 @@ async function handleUpdate(subcommand, ctx) {
|
|
|
50707
50708
|
},
|
|
50708
50709
|
stop(finalText) {
|
|
50709
50710
|
clearInterval(timer);
|
|
50710
|
-
status =
|
|
50711
|
+
status = "__DONE__";
|
|
50711
50712
|
renderInstallFrame(version, frame, status);
|
|
50713
|
+
setTimeout(() => {
|
|
50714
|
+
status = finalText;
|
|
50715
|
+
renderInstallFrame(version, frame + 1, finalText);
|
|
50716
|
+
}, 300);
|
|
50717
|
+
},
|
|
50718
|
+
/** Clear the overlay content area entirely — return to normal scroll area */
|
|
50719
|
+
dismiss() {
|
|
50720
|
+
clearInterval(timer);
|
|
50721
|
+
const cols = process.stdout.columns ?? 80;
|
|
50722
|
+
const rows = process.stdout.rows ?? 24;
|
|
50723
|
+
const contentTop = 4;
|
|
50724
|
+
const contentBottom = rows - 3;
|
|
50725
|
+
let buf = "\x1B7";
|
|
50726
|
+
for (let r = contentTop; r <= contentBottom; r++) {
|
|
50727
|
+
buf += `\x1B[${r};1H\x1B[48;5;234m\x1B[2K`;
|
|
50728
|
+
}
|
|
50729
|
+
buf += "\x1B8";
|
|
50730
|
+
process.stdout.write(buf);
|
|
50712
50731
|
}
|
|
50713
50732
|
};
|
|
50714
50733
|
}
|
|
@@ -50870,7 +50889,8 @@ async function handleUpdate(subcommand, ctx) {
|
|
|
50870
50889
|
}
|
|
50871
50890
|
if (!installOk) {
|
|
50872
50891
|
installOverlay.stop("Install failed");
|
|
50873
|
-
await new Promise((r) => setTimeout(r,
|
|
50892
|
+
await new Promise((r) => setTimeout(r, 2e3));
|
|
50893
|
+
installOverlay.dismiss();
|
|
50874
50894
|
renderWarning(`Try manually: ${sudoPrefix}npm i -g open-agents-ai`);
|
|
50875
50895
|
return;
|
|
50876
50896
|
}
|
|
@@ -50901,7 +50921,8 @@ async function handleUpdate(subcommand, ctx) {
|
|
|
50901
50921
|
}
|
|
50902
50922
|
if (!primaryUpdated && !depsUpdated && !doRebuild && !doPython && !doCloudflared) {
|
|
50903
50923
|
installOverlay.stop("No changes needed");
|
|
50904
|
-
await new Promise((r) => setTimeout(r,
|
|
50924
|
+
await new Promise((r) => setTimeout(r, 2e3));
|
|
50925
|
+
installOverlay.dismiss();
|
|
50905
50926
|
return;
|
|
50906
50927
|
}
|
|
50907
50928
|
if (doRebuild) {
|
|
@@ -50973,17 +50994,18 @@ async function handleUpdate(subcommand, ctx) {
|
|
|
50973
50994
|
ensureTranscribeCliBackground();
|
|
50974
50995
|
}
|
|
50975
50996
|
if (!primaryUpdated) {
|
|
50976
|
-
installOverlay.stop("Done");
|
|
50977
|
-
await new Promise((r) => setTimeout(r,
|
|
50997
|
+
installOverlay.stop("Done \u2014 no restart needed");
|
|
50998
|
+
await new Promise((r) => setTimeout(r, 2e3));
|
|
50999
|
+
installOverlay.dismiss();
|
|
50978
51000
|
return;
|
|
50979
51001
|
}
|
|
50980
|
-
installOverlay.setStatus("Reloading...");
|
|
50981
|
-
await new Promise((r) => setTimeout(r, 400));
|
|
50982
51002
|
ctx.contextSave?.();
|
|
50983
51003
|
const hadActiveTask = ctx.savePendingTaskState?.() ?? false;
|
|
50984
51004
|
const resumeFlag = hadActiveTask ? "1" : "update-only";
|
|
50985
|
-
installOverlay.stop("
|
|
50986
|
-
await new Promise((r) => setTimeout(r,
|
|
51005
|
+
installOverlay.stop("Restarting with new version...");
|
|
51006
|
+
await new Promise((r) => setTimeout(r, 1500));
|
|
51007
|
+
installOverlay.dismiss();
|
|
51008
|
+
await new Promise((r) => setTimeout(r, 200));
|
|
50987
51009
|
const { execPath, argv } = process;
|
|
50988
51010
|
try {
|
|
50989
51011
|
const { execFileSync } = await import("node:child_process");
|
package/package.json
CHANGED