agentflow-core 0.6.3 → 0.7.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.
- package/dist/{chunk-R5SNE2HB.js → chunk-5PRHVYYD.js} +17 -6
- package/dist/cli.cjs +17 -6
- package/dist/cli.js +1 -1
- package/dist/index.cjs +17 -6
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -964,7 +964,7 @@ function flushLines(lines) {
|
|
|
964
964
|
var prevFileCount = 0;
|
|
965
965
|
var newExecCount = 0;
|
|
966
966
|
var sessionStart = Date.now();
|
|
967
|
-
var
|
|
967
|
+
var liveRunning = false;
|
|
968
968
|
var cachedAuditConfig = null;
|
|
969
969
|
var cachedAuditResult = null;
|
|
970
970
|
var lastAuditTime = 0;
|
|
@@ -1160,10 +1160,6 @@ function render(config) {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
const termWidth = process.stdout.columns || 120;
|
|
1162
1162
|
const detailWidth = Math.max(20, termWidth - 60);
|
|
1163
|
-
if (firstRender) {
|
|
1164
|
-
process.stdout.write("\x1B[2J");
|
|
1165
|
-
firstRender = false;
|
|
1166
|
-
}
|
|
1167
1163
|
const L = [];
|
|
1168
1164
|
writeLine(L, `${C.bold}${C.cyan}\u2554${"\u2550".repeat(70)}\u2557${C.reset}`);
|
|
1169
1165
|
writeLine(
|
|
@@ -1358,6 +1354,9 @@ function startLive(argv) {
|
|
|
1358
1354
|
console.warn(`Skipping non-existent: ${invalid.join(", ")}`);
|
|
1359
1355
|
}
|
|
1360
1356
|
config.dirs = valid;
|
|
1357
|
+
process.stdout.write("\x1B[?1049h");
|
|
1358
|
+
process.stdout.write("\x1B[?25l");
|
|
1359
|
+
liveRunning = true;
|
|
1361
1360
|
render(config);
|
|
1362
1361
|
let debounce = null;
|
|
1363
1362
|
for (const dir of config.dirs) {
|
|
@@ -1370,8 +1369,20 @@ function startLive(argv) {
|
|
|
1370
1369
|
}
|
|
1371
1370
|
}
|
|
1372
1371
|
setInterval(() => render(config), config.refreshMs);
|
|
1372
|
+
const cleanup = () => {
|
|
1373
|
+
if (liveRunning) {
|
|
1374
|
+
liveRunning = false;
|
|
1375
|
+
process.stdout.write("\x1B[?25h");
|
|
1376
|
+
process.stdout.write("\x1B[?1049l");
|
|
1377
|
+
}
|
|
1378
|
+
};
|
|
1373
1379
|
process.on("SIGINT", () => {
|
|
1374
|
-
|
|
1380
|
+
cleanup();
|
|
1381
|
+
console.log(C.dim + "Monitor stopped." + C.reset);
|
|
1382
|
+
process.exit(0);
|
|
1383
|
+
});
|
|
1384
|
+
process.on("SIGTERM", () => {
|
|
1385
|
+
cleanup();
|
|
1375
1386
|
process.exit(0);
|
|
1376
1387
|
});
|
|
1377
1388
|
}
|
package/dist/cli.cjs
CHANGED
|
@@ -1001,7 +1001,7 @@ function flushLines(lines) {
|
|
|
1001
1001
|
var prevFileCount = 0;
|
|
1002
1002
|
var newExecCount = 0;
|
|
1003
1003
|
var sessionStart = Date.now();
|
|
1004
|
-
var
|
|
1004
|
+
var liveRunning = false;
|
|
1005
1005
|
var cachedAuditConfig = null;
|
|
1006
1006
|
var cachedAuditResult = null;
|
|
1007
1007
|
var lastAuditTime = 0;
|
|
@@ -1197,10 +1197,6 @@ function render(config) {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
const termWidth = process.stdout.columns || 120;
|
|
1199
1199
|
const detailWidth = Math.max(20, termWidth - 60);
|
|
1200
|
-
if (firstRender) {
|
|
1201
|
-
process.stdout.write("\x1B[2J");
|
|
1202
|
-
firstRender = false;
|
|
1203
|
-
}
|
|
1204
1200
|
const L = [];
|
|
1205
1201
|
writeLine(L, `${C.bold}${C.cyan}\u2554${"\u2550".repeat(70)}\u2557${C.reset}`);
|
|
1206
1202
|
writeLine(
|
|
@@ -1395,6 +1391,9 @@ function startLive(argv) {
|
|
|
1395
1391
|
console.warn(`Skipping non-existent: ${invalid.join(", ")}`);
|
|
1396
1392
|
}
|
|
1397
1393
|
config.dirs = valid;
|
|
1394
|
+
process.stdout.write("\x1B[?1049h");
|
|
1395
|
+
process.stdout.write("\x1B[?25l");
|
|
1396
|
+
liveRunning = true;
|
|
1398
1397
|
render(config);
|
|
1399
1398
|
let debounce = null;
|
|
1400
1399
|
for (const dir of config.dirs) {
|
|
@@ -1407,8 +1406,20 @@ function startLive(argv) {
|
|
|
1407
1406
|
}
|
|
1408
1407
|
}
|
|
1409
1408
|
setInterval(() => render(config), config.refreshMs);
|
|
1409
|
+
const cleanup = () => {
|
|
1410
|
+
if (liveRunning) {
|
|
1411
|
+
liveRunning = false;
|
|
1412
|
+
process.stdout.write("\x1B[?25h");
|
|
1413
|
+
process.stdout.write("\x1B[?1049l");
|
|
1414
|
+
}
|
|
1415
|
+
};
|
|
1410
1416
|
process.on("SIGINT", () => {
|
|
1411
|
-
|
|
1417
|
+
cleanup();
|
|
1418
|
+
console.log(C.dim + "Monitor stopped." + C.reset);
|
|
1419
|
+
process.exit(0);
|
|
1420
|
+
});
|
|
1421
|
+
process.on("SIGTERM", () => {
|
|
1422
|
+
cleanup();
|
|
1412
1423
|
process.exit(0);
|
|
1413
1424
|
});
|
|
1414
1425
|
}
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1450,7 +1450,7 @@ function flushLines(lines) {
|
|
|
1450
1450
|
var prevFileCount = 0;
|
|
1451
1451
|
var newExecCount = 0;
|
|
1452
1452
|
var sessionStart = Date.now();
|
|
1453
|
-
var
|
|
1453
|
+
var liveRunning = false;
|
|
1454
1454
|
var cachedAuditConfig = null;
|
|
1455
1455
|
var cachedAuditResult = null;
|
|
1456
1456
|
var lastAuditTime = 0;
|
|
@@ -1646,10 +1646,6 @@ function render(config) {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
const termWidth = process.stdout.columns || 120;
|
|
1648
1648
|
const detailWidth = Math.max(20, termWidth - 60);
|
|
1649
|
-
if (firstRender) {
|
|
1650
|
-
process.stdout.write("\x1B[2J");
|
|
1651
|
-
firstRender = false;
|
|
1652
|
-
}
|
|
1653
1649
|
const L = [];
|
|
1654
1650
|
writeLine(L, `${C.bold}${C.cyan}\u2554${"\u2550".repeat(70)}\u2557${C.reset}`);
|
|
1655
1651
|
writeLine(
|
|
@@ -1844,6 +1840,9 @@ function startLive(argv) {
|
|
|
1844
1840
|
console.warn(`Skipping non-existent: ${invalid.join(", ")}`);
|
|
1845
1841
|
}
|
|
1846
1842
|
config.dirs = valid;
|
|
1843
|
+
process.stdout.write("\x1B[?1049h");
|
|
1844
|
+
process.stdout.write("\x1B[?25l");
|
|
1845
|
+
liveRunning = true;
|
|
1847
1846
|
render(config);
|
|
1848
1847
|
let debounce = null;
|
|
1849
1848
|
for (const dir of config.dirs) {
|
|
@@ -1856,8 +1855,20 @@ function startLive(argv) {
|
|
|
1856
1855
|
}
|
|
1857
1856
|
}
|
|
1858
1857
|
setInterval(() => render(config), config.refreshMs);
|
|
1858
|
+
const cleanup = () => {
|
|
1859
|
+
if (liveRunning) {
|
|
1860
|
+
liveRunning = false;
|
|
1861
|
+
process.stdout.write("\x1B[?25h");
|
|
1862
|
+
process.stdout.write("\x1B[?1049l");
|
|
1863
|
+
}
|
|
1864
|
+
};
|
|
1859
1865
|
process.on("SIGINT", () => {
|
|
1860
|
-
|
|
1866
|
+
cleanup();
|
|
1867
|
+
console.log(C.dim + "Monitor stopped." + C.reset);
|
|
1868
|
+
process.exit(0);
|
|
1869
|
+
});
|
|
1870
|
+
process.on("SIGTERM", () => {
|
|
1871
|
+
cleanup();
|
|
1861
1872
|
process.exit(0);
|
|
1862
1873
|
});
|
|
1863
1874
|
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED