@integrity-labs/agt-cli 0.28.554 → 0.28.556
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-6WAJQWYD.js → chunk-AD26EE7A.js} +36 -1
- package/dist/chunk-AD26EE7A.js.map +1 -0
- package/dist/{chunk-D6GENZSV.js → chunk-NPUK7LOP.js} +39 -6
- package/dist/chunk-NPUK7LOP.js.map +1 -0
- package/dist/{claude-pair-runtime-EMHLLRWQ.js → claude-pair-runtime-ZEYM62XD.js} +2 -2
- package/dist/lib/manager-worker.js +10 -10
- package/dist/{persistent-session-AQYYRJFQ.js → persistent-session-JZBJIXLJ.js} +2 -2
- package/dist/{responsiveness-probe-PCMO3QQW.js → responsiveness-probe-GPH2SEAL.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-6WAJQWYD.js.map +0 -1
- package/dist/chunk-D6GENZSV.js.map +0 -1
- /package/dist/{claude-pair-runtime-EMHLLRWQ.js.map → claude-pair-runtime-ZEYM62XD.js.map} +0 -0
- /package/dist/{persistent-session-AQYYRJFQ.js.map → persistent-session-JZBJIXLJ.js.map} +0 -0
- /package/dist/{responsiveness-probe-PCMO3QQW.js.map → responsiveness-probe-GPH2SEAL.js.map} +0 -0
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
RESTART_BREAKER_OPERATOR_MAX,
|
|
11
11
|
RESTART_BREAKER_PROVISIONING_MAX,
|
|
12
12
|
RESTART_BREAKER_PROVISIONING_WINDOW_MS,
|
|
13
|
+
SCRATCH_RETENTION_DAYS,
|
|
13
14
|
bestConnectivityEvidence,
|
|
14
15
|
buildForwardHeaders,
|
|
15
16
|
buildIntegrationsSection,
|
|
@@ -42,7 +43,7 @@ import {
|
|
|
42
43
|
resolveConnectivityProbe,
|
|
43
44
|
worseConnectivityOutcome,
|
|
44
45
|
wrapScheduledTaskPrompt
|
|
45
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-AD26EE7A.js";
|
|
46
47
|
import {
|
|
47
48
|
parsePsRows
|
|
48
49
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -444,7 +445,7 @@ function mergeEnvIntegrationsContent(existing, args) {
|
|
|
444
445
|
}
|
|
445
446
|
|
|
446
447
|
// ../../packages/core/dist/provisioning/frameworks/claudecode/index.js
|
|
447
|
-
import { readFileSync as readFileSync3, writeFileSync as writeFileSync3, mkdirSync as mkdirSync2, existsSync as existsSync3, chmodSync as chmodSync3, readdirSync, rmSync, copyFileSync, lstatSync, realpathSync, symlinkSync, readlinkSync, renameSync as renameSync3 } from "fs";
|
|
448
|
+
import { readFileSync as readFileSync3, writeFileSync as writeFileSync3, mkdirSync as mkdirSync2, existsSync as existsSync3, chmodSync as chmodSync3, readdirSync, rmSync, statSync, copyFileSync, lstatSync, realpathSync, symlinkSync, readlinkSync, renameSync as renameSync3 } from "fs";
|
|
448
449
|
import { join as join2, relative, dirname as dirname2 } from "path";
|
|
449
450
|
import { homedir as homedir2 } from "os";
|
|
450
451
|
import { execFile } from "child_process";
|
|
@@ -1236,6 +1237,31 @@ function syncGitHubBrokerCredentialTooling(projectDir, enabled) {
|
|
|
1236
1237
|
function getProjectDir(codeName) {
|
|
1237
1238
|
return join2(getAgentDir(codeName), "project");
|
|
1238
1239
|
}
|
|
1240
|
+
function getScratchDir(codeName) {
|
|
1241
|
+
return join2(getAgentDir(codeName), "scratch");
|
|
1242
|
+
}
|
|
1243
|
+
function sweepScratchDir(codeName, now = Date.now()) {
|
|
1244
|
+
const scratchDir = getScratchDir(codeName);
|
|
1245
|
+
let removed = 0;
|
|
1246
|
+
let entries;
|
|
1247
|
+
try {
|
|
1248
|
+
entries = readdirSync(scratchDir);
|
|
1249
|
+
} catch {
|
|
1250
|
+
return 0;
|
|
1251
|
+
}
|
|
1252
|
+
const cutoff = now - SCRATCH_RETENTION_DAYS * 24 * 60 * 60 * 1e3;
|
|
1253
|
+
for (const entry of entries) {
|
|
1254
|
+
const full = join2(scratchDir, entry);
|
|
1255
|
+
try {
|
|
1256
|
+
if (statSync(full).mtimeMs >= cutoff)
|
|
1257
|
+
continue;
|
|
1258
|
+
rmSync(full, { recursive: true, force: true });
|
|
1259
|
+
removed += 1;
|
|
1260
|
+
} catch {
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
return removed;
|
|
1264
|
+
}
|
|
1239
1265
|
function syncMcpToProject(codeName) {
|
|
1240
1266
|
const agentDir = getAgentDir(codeName);
|
|
1241
1267
|
const projectDir = getProjectDir(codeName);
|
|
@@ -1347,6 +1373,13 @@ function resolveBrokerAgentId(codeName, fallback) {
|
|
|
1347
1373
|
function deployArtifactsToProject(codeName, provisionDir) {
|
|
1348
1374
|
const projectDir = getProjectDir(codeName);
|
|
1349
1375
|
mkdirSync2(projectDir, { recursive: true });
|
|
1376
|
+
try {
|
|
1377
|
+
mkdirSync2(getScratchDir(codeName), { recursive: true });
|
|
1378
|
+
sweepScratchDir(codeName);
|
|
1379
|
+
} catch (err) {
|
|
1380
|
+
process.stderr.write(`[scratch] [ensure-or-sweep-failed] agent=${codeName} error=${err.message}
|
|
1381
|
+
`);
|
|
1382
|
+
}
|
|
1350
1383
|
const artifactFiles = ["CLAUDE.md", "settings.json", ".mcp.json", "CHARTER.md", "TOOLS.md"];
|
|
1351
1384
|
const SKILLS_START = "<!-- AGT:SKILLS_INDEX_START -->";
|
|
1352
1385
|
const SKILLS_END = "<!-- AGT:SKILLS_INDEX_END -->";
|
|
@@ -5608,7 +5641,7 @@ function exchangeFailureKind(err) {
|
|
|
5608
5641
|
}
|
|
5609
5642
|
|
|
5610
5643
|
// src/lib/api-client.ts
|
|
5611
|
-
var agtCliVersion = true ? "0.28.
|
|
5644
|
+
var agtCliVersion = true ? "0.28.556" : "dev";
|
|
5612
5645
|
var lastConfigHash = null;
|
|
5613
5646
|
function setConfigHash(hash) {
|
|
5614
5647
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -5873,7 +5906,7 @@ function atomicWriteFileSync(path, data) {
|
|
|
5873
5906
|
}
|
|
5874
5907
|
|
|
5875
5908
|
// src/lib/feature-flags-host.ts
|
|
5876
|
-
import { existsSync as existsSync5, readFileSync as readFileSync5, statSync } from "fs";
|
|
5909
|
+
import { existsSync as existsSync5, readFileSync as readFileSync5, statSync as statSync2 } from "fs";
|
|
5877
5910
|
import { join as join4 } from "path";
|
|
5878
5911
|
function defaultFlagsCachePath(configDir) {
|
|
5879
5912
|
return join4(configDir, "flags-cache.json");
|
|
@@ -5907,7 +5940,7 @@ function flagsCacheAgeSeconds(cache, path, now = /* @__PURE__ */ new Date()) {
|
|
|
5907
5940
|
return Math.max(0, (now.getTime() - fromRecorded) / 1e3);
|
|
5908
5941
|
}
|
|
5909
5942
|
try {
|
|
5910
|
-
return Math.max(0, (now.getTime() -
|
|
5943
|
+
return Math.max(0, (now.getTime() - statSync2(path).mtimeMs) / 1e3);
|
|
5911
5944
|
} catch {
|
|
5912
5945
|
return null;
|
|
5913
5946
|
}
|
|
@@ -8920,4 +8953,4 @@ export {
|
|
|
8920
8953
|
managerInstallSystemUnitCommand,
|
|
8921
8954
|
managerUninstallSystemUnitCommand
|
|
8922
8955
|
};
|
|
8923
|
-
//# sourceMappingURL=chunk-
|
|
8956
|
+
//# sourceMappingURL=chunk-NPUK7LOP.js.map
|