@integrity-labs/agt-cli 0.27.156 → 0.27.158
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/bin/agt.js +4 -4
- package/dist/{chunk-3X6V4SVW.js → chunk-5E5B4T7K.js} +28 -1
- package/dist/chunk-5E5B4T7K.js.map +1 -0
- package/dist/{chunk-25VLOVMK.js → chunk-ELEMDMTQ.js} +48 -11
- package/dist/chunk-ELEMDMTQ.js.map +1 -0
- package/dist/{chunk-FR2MNN2P.js → chunk-GJVY7WKU.js} +25 -5
- package/dist/{chunk-FR2MNN2P.js.map → chunk-GJVY7WKU.js.map} +1 -1
- package/dist/{claude-pair-runtime-UQFPB2BE.js → claude-pair-runtime-FTU6NTBF.js} +2 -2
- package/dist/lib/manager-worker.js +51 -13
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-AIM4U3AL.js → persistent-session-EWHFMQRC.js} +3 -3
- package/dist/{responsiveness-probe-6L2XS27G.js → responsiveness-probe-SWHB27QI.js} +48 -10
- package/dist/responsiveness-probe-SWHB27QI.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-25VLOVMK.js.map +0 -1
- package/dist/chunk-3X6V4SVW.js.map +0 -1
- package/dist/responsiveness-probe-6L2XS27G.js.map +0 -1
- /package/dist/{claude-pair-runtime-UQFPB2BE.js.map → claude-pair-runtime-FTU6NTBF.js.map} +0 -0
- /package/dist/{persistent-session-AIM4U3AL.js.map → persistent-session-EWHFMQRC.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeModelAlias,
|
|
3
3
|
isClaudeFastMode
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5E5B4T7K.js";
|
|
5
5
|
import {
|
|
6
6
|
reapOrphanChannelMcps
|
|
7
7
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import { spawn, execSync, execFileSync as execFileSync3 } from "child_process";
|
|
11
11
|
import { join as join2, dirname } from "path";
|
|
12
12
|
import { homedir as homedir2, platform, userInfo } from "os";
|
|
13
|
-
import { existsSync as existsSync3, readFileSync as readFileSync4, readdirSync, writeFileSync as writeFileSync3, appendFileSync, mkdirSync as mkdirSync2, chmodSync, copyFileSync, rmSync } from "fs";
|
|
13
|
+
import { existsSync as existsSync3, readFileSync as readFileSync4, readdirSync as readdirSync2, writeFileSync as writeFileSync3, appendFileSync, mkdirSync as mkdirSync2, chmodSync, copyFileSync, rmSync } from "fs";
|
|
14
14
|
import { fileURLToPath } from "url";
|
|
15
15
|
|
|
16
16
|
// src/lib/mcp-sanitize.ts
|
|
@@ -157,7 +157,7 @@ import { randomUUID as randomUUID2 } from "crypto";
|
|
|
157
157
|
|
|
158
158
|
// src/lib/daily-session.ts
|
|
159
159
|
import { randomUUID } from "crypto";
|
|
160
|
-
import { existsSync as existsSync2, mkdirSync, readFileSync as readFileSync3, renameSync, statSync, writeFileSync as writeFileSync2 } from "fs";
|
|
160
|
+
import { existsSync as existsSync2, mkdirSync, readFileSync as readFileSync3, readdirSync, renameSync, statSync, writeFileSync as writeFileSync2 } from "fs";
|
|
161
161
|
import { homedir } from "os";
|
|
162
162
|
import { join } from "path";
|
|
163
163
|
var HISTORY_DAYS = 7;
|
|
@@ -294,6 +294,25 @@ function transcriptActivityAgeSeconds(projectDir, sessionId, now = /* @__PURE__
|
|
|
294
294
|
return null;
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
+
function subagentActivityAgeSeconds(projectDir, sessionId, now = /* @__PURE__ */ new Date()) {
|
|
298
|
+
if (!sessionId) return null;
|
|
299
|
+
const dir = join(sessionTranscriptDir(projectDir), sessionId, "subagents");
|
|
300
|
+
try {
|
|
301
|
+
let freshestMtimeMs = null;
|
|
302
|
+
for (const name of readdirSync(dir)) {
|
|
303
|
+
if (!name.endsWith(".jsonl")) continue;
|
|
304
|
+
try {
|
|
305
|
+
const mtimeMs = statSync(join(dir, name)).mtimeMs;
|
|
306
|
+
if (freshestMtimeMs === null || mtimeMs > freshestMtimeMs) freshestMtimeMs = mtimeMs;
|
|
307
|
+
} catch {
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
if (freshestMtimeMs === null) return null;
|
|
311
|
+
return Math.max(0, Math.floor((now.getTime() - freshestMtimeMs) / 1e3));
|
|
312
|
+
} catch {
|
|
313
|
+
return null;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
297
316
|
function isAgentIdle(projectDir, sessionId, idleSeconds = 60, now = /* @__PURE__ */ new Date()) {
|
|
298
317
|
const path = sessionFilePath(projectDir, sessionId);
|
|
299
318
|
if (!existsSync2(path)) return true;
|
|
@@ -597,7 +616,7 @@ function syncClaudeCredsToRoot() {
|
|
|
597
616
|
}
|
|
598
617
|
let sourcePath = null;
|
|
599
618
|
try {
|
|
600
|
-
const entries =
|
|
619
|
+
const entries = readdirSync2("/home", { withFileTypes: true });
|
|
601
620
|
outer: for (const entry of entries) {
|
|
602
621
|
if (!entry.isDirectory()) continue;
|
|
603
622
|
for (const filename of [".credentials.json", "credentials.json"]) {
|
|
@@ -1588,6 +1607,7 @@ export {
|
|
|
1588
1607
|
buildAllowedTools,
|
|
1589
1608
|
sessionTranscriptDir,
|
|
1590
1609
|
transcriptActivityAgeSeconds,
|
|
1610
|
+
subagentActivityAgeSeconds,
|
|
1591
1611
|
isAgentIdle,
|
|
1592
1612
|
isStaleForToday,
|
|
1593
1613
|
peekCurrentSession,
|
|
@@ -1621,4 +1641,4 @@ export {
|
|
|
1621
1641
|
stopAllSessionsAndWait,
|
|
1622
1642
|
getProjectDir
|
|
1623
1643
|
};
|
|
1624
|
-
//# sourceMappingURL=chunk-
|
|
1644
|
+
//# sourceMappingURL=chunk-GJVY7WKU.js.map
|