@kenkaiiii/gg-boss 4.3.151 → 4.3.152
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/cli.js
CHANGED
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
use_app_default,
|
|
44
44
|
use_input_default,
|
|
45
45
|
use_stdout_default
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-SFFLLX2R.js";
|
|
47
47
|
import "./chunk-QT366Y52.js";
|
|
48
48
|
import {
|
|
49
49
|
source_default
|
|
@@ -336,7 +336,7 @@ init_esm_shims();
|
|
|
336
336
|
// package.json
|
|
337
337
|
var package_default = {
|
|
338
338
|
name: "@kenkaiiii/gg-boss",
|
|
339
|
-
version: "4.3.
|
|
339
|
+
version: "4.3.152",
|
|
340
340
|
type: "module",
|
|
341
341
|
description: "Orchestrator agent that drives multiple ggcoder sessions across projects from a single chat",
|
|
342
342
|
license: "MIT",
|
|
@@ -2239,6 +2239,15 @@ function renderBossApp(opts) {
|
|
|
2239
2239
|
exitOnCtrlC: false
|
|
2240
2240
|
});
|
|
2241
2241
|
ref.instance = instance;
|
|
2242
|
+
let resizeTimer = null;
|
|
2243
|
+
const onTerminalResize = () => {
|
|
2244
|
+
if (resizeTimer) clearTimeout(resizeTimer);
|
|
2245
|
+
resizeTimer = setTimeout(() => {
|
|
2246
|
+
resizeTimer = null;
|
|
2247
|
+
resetUI();
|
|
2248
|
+
}, 250);
|
|
2249
|
+
};
|
|
2250
|
+
process.stdout.on("resize", onTerminalResize);
|
|
2242
2251
|
return {
|
|
2243
2252
|
// Follow ref.instance through restarts: when /clear nukes the current
|
|
2244
2253
|
// instance and creates a new one, this promise re-binds to whichever
|
|
@@ -2248,15 +2257,25 @@ function renderBossApp(opts) {
|
|
|
2248
2257
|
waitUntilExit: async () => {
|
|
2249
2258
|
while (true) {
|
|
2250
2259
|
const current = ref.instance;
|
|
2251
|
-
if (!current)
|
|
2260
|
+
if (!current) {
|
|
2261
|
+
process.stdout.off("resize", onTerminalResize);
|
|
2262
|
+
if (resizeTimer) clearTimeout(resizeTimer);
|
|
2263
|
+
return;
|
|
2264
|
+
}
|
|
2252
2265
|
await current.waitUntilExit();
|
|
2253
2266
|
if (ref.instance === current) {
|
|
2254
2267
|
ref.instance = null;
|
|
2268
|
+
process.stdout.off("resize", onTerminalResize);
|
|
2269
|
+
if (resizeTimer) clearTimeout(resizeTimer);
|
|
2255
2270
|
return;
|
|
2256
2271
|
}
|
|
2257
2272
|
}
|
|
2258
2273
|
},
|
|
2259
|
-
unmount: () =>
|
|
2274
|
+
unmount: () => {
|
|
2275
|
+
process.stdout.off("resize", onTerminalResize);
|
|
2276
|
+
if (resizeTimer) clearTimeout(resizeTimer);
|
|
2277
|
+
ref.instance?.unmount();
|
|
2278
|
+
}
|
|
2260
2279
|
};
|
|
2261
2280
|
}
|
|
2262
2281
|
|