open-agents-ai 0.185.10 → 0.185.11
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 +89 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51537,8 +51537,8 @@ async function handleUpdate(subcommand, ctx) {
|
|
|
51537
51537
|
}
|
|
51538
51538
|
const { spawn: spawnChild } = await import("node:child_process");
|
|
51539
51539
|
const child = spawnChild("sh", [scriptPath2], {
|
|
51540
|
-
stdio: "
|
|
51541
|
-
//
|
|
51540
|
+
stdio: "inherit",
|
|
51541
|
+
// inherit terminal (needed for oa's TUI)
|
|
51542
51542
|
detached: true,
|
|
51543
51543
|
// new process group
|
|
51544
51544
|
env: { ...process.env, __OA_RESUMED: resumeFlag }
|
|
@@ -53282,7 +53282,37 @@ function createDefaultBanner(version = "0.120.0") {
|
|
|
53282
53282
|
const rows = 3;
|
|
53283
53283
|
const yellow = 178;
|
|
53284
53284
|
const bgDark = 234;
|
|
53285
|
-
const particles = [
|
|
53285
|
+
const particles = [
|
|
53286
|
+
" ",
|
|
53287
|
+
// 0: empty
|
|
53288
|
+
"\u2801",
|
|
53289
|
+
"\u2802",
|
|
53290
|
+
// 1-2: sparse braille
|
|
53291
|
+
"\u2596",
|
|
53292
|
+
"\u2597",
|
|
53293
|
+
// 3-4: ▖▗ single quadrants
|
|
53294
|
+
"\u2598",
|
|
53295
|
+
"\u259D",
|
|
53296
|
+
// 5-6: ▘▝ upper quadrants
|
|
53297
|
+
"\u259E",
|
|
53298
|
+
"\u259A",
|
|
53299
|
+
// 7-8: ▞▚ diagonals
|
|
53300
|
+
"\xB7",
|
|
53301
|
+
"\u2591",
|
|
53302
|
+
// 9-10: · ░ (dot + light shade)
|
|
53303
|
+
"\u2599",
|
|
53304
|
+
"\u259B",
|
|
53305
|
+
// 11-12: ▙▛ three-quarter fills
|
|
53306
|
+
"\u2592",
|
|
53307
|
+
// 13: ▒ medium shade
|
|
53308
|
+
"\u259C",
|
|
53309
|
+
"\u259F",
|
|
53310
|
+
// 14-15: ▜▟ three-quarter fills
|
|
53311
|
+
"\u2593",
|
|
53312
|
+
// 16: ▓ dark shade
|
|
53313
|
+
"\u2588"
|
|
53314
|
+
// 17: █ full block
|
|
53315
|
+
];
|
|
53286
53316
|
const hash = (r, c3, frame) => {
|
|
53287
53317
|
const x = r * 7 + c3 * 13 + frame * 3 + 37;
|
|
53288
53318
|
return (x * x * 31 + x * 17 + 59) % 97 / 97;
|
|
@@ -53711,9 +53741,22 @@ var init_banner = __esm({
|
|
|
53711
53741
|
}
|
|
53712
53742
|
}
|
|
53713
53743
|
if (this._focused) {
|
|
53714
|
-
const
|
|
53744
|
+
const FOCUS = [
|
|
53745
|
+
"\u2596",
|
|
53746
|
+
"\u259A",
|
|
53747
|
+
"\u2599",
|
|
53748
|
+
"\u259B",
|
|
53749
|
+
"\u2588",
|
|
53750
|
+
// ▖▚▙▛█ (build up)
|
|
53751
|
+
"\u259C",
|
|
53752
|
+
"\u259F",
|
|
53753
|
+
"\u259E",
|
|
53754
|
+
"\u2597",
|
|
53755
|
+
"\xB7"
|
|
53756
|
+
// ▜▟▞▗· (fade down)
|
|
53757
|
+
];
|
|
53715
53758
|
for (let r = 0; r < this.rows; r++) {
|
|
53716
|
-
const ch =
|
|
53759
|
+
const ch = FOCUS[(this.frameTick + r * 3) % FOCUS.length];
|
|
53717
53760
|
buf += `\x1B[${r + 1};1H\x1B[38;5;178m\x1B[48;5;234m${ch}\x1B[0m`;
|
|
53718
53761
|
}
|
|
53719
53762
|
}
|
|
@@ -60996,19 +61039,47 @@ var init_status_bar = __esm({
|
|
|
60996
61039
|
*/
|
|
60997
61040
|
_getFocusQuadrant() {
|
|
60998
61041
|
this._focusFrame++;
|
|
60999
|
-
const
|
|
61000
|
-
|
|
61001
|
-
|
|
61002
|
-
|
|
61003
|
-
|
|
61004
|
-
|
|
61005
|
-
|
|
61006
|
-
|
|
61007
|
-
|
|
61008
|
-
|
|
61009
|
-
|
|
61010
|
-
|
|
61011
|
-
|
|
61042
|
+
const DENSITY2 = [
|
|
61043
|
+
" ",
|
|
61044
|
+
// 0: empty
|
|
61045
|
+
"\xB7",
|
|
61046
|
+
// 1: · middle dot
|
|
61047
|
+
"\u2596",
|
|
61048
|
+
// 2: ▖ single quadrant
|
|
61049
|
+
"\u259E",
|
|
61050
|
+
// 3: ▞ diagonal (2 quadrants)
|
|
61051
|
+
"\u259A",
|
|
61052
|
+
// 4: ▚ other diagonal
|
|
61053
|
+
"\u2599",
|
|
61054
|
+
// 5: ▙ three quadrants
|
|
61055
|
+
"\u259B",
|
|
61056
|
+
// 6: ▛ three quadrants
|
|
61057
|
+
"\u259C",
|
|
61058
|
+
// 7: ▜ three quadrants
|
|
61059
|
+
"\u259F",
|
|
61060
|
+
// 8: ▟ three quadrants
|
|
61061
|
+
"\u2593",
|
|
61062
|
+
// 9: ▓ dark shade
|
|
61063
|
+
"\u2588"
|
|
61064
|
+
// 10: █ full block
|
|
61065
|
+
];
|
|
61066
|
+
if (this._focusFrame < 4)
|
|
61067
|
+
return DENSITY2[10];
|
|
61068
|
+
const m = this._unifiedMetrics ?? getInstantSnapshot();
|
|
61069
|
+
const cpu = m.hardware.cpuUtil;
|
|
61070
|
+
const gpu = m.hardware.gpuUtil;
|
|
61071
|
+
const mem = m.hardware.memUtil;
|
|
61072
|
+
const netRx = m.network.rxBytesPerSec;
|
|
61073
|
+
const netTx = m.network.txBytesPerSec;
|
|
61074
|
+
const gpuNorm = gpu >= 0 ? gpu / 100 : 0;
|
|
61075
|
+
const intensity = Math.min(1, cpu / 100 * 0.3 + gpuNorm * 0.3 + mem / 100 * 0.2 + Math.min(1, (netRx + netTx) / 5e7) * 0.2);
|
|
61076
|
+
const baseDensity = Math.floor(intensity * 6);
|
|
61077
|
+
const range = 4;
|
|
61078
|
+
const phase = this._focusFrame * 0.15 + cpu / 50 * Math.sin(this._focusFrame * 0.05);
|
|
61079
|
+
const wave = Math.sin(phase) * 0.5 + 0.5;
|
|
61080
|
+
const idx = Math.round(baseDensity + wave * range);
|
|
61081
|
+
const clampedIdx = Math.max(0, Math.min(DENSITY2.length - 1, idx));
|
|
61082
|
+
return DENSITY2[clampedIdx];
|
|
61012
61083
|
}
|
|
61013
61084
|
/** Set the provider for slash command names (used for inline suggestions) */
|
|
61014
61085
|
setCommandListProvider(provider) {
|
package/package.json
CHANGED