@integrity-labs/agt-cli 0.28.499 → 0.28.500
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-Q5O2VAQA.js → chunk-ICNRQ4L5.js} +3 -3
- package/dist/{chunk-5XHO4HKA.js → chunk-XKBUTWON.js} +25 -2
- package/dist/chunk-XKBUTWON.js.map +1 -0
- package/dist/{claude-pair-runtime-TA2D5FPK.js → claude-pair-runtime-U5ES3GOY.js} +2 -2
- package/dist/lib/manager-worker.js +14 -10
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-NZMYK2WQ.js → persistent-session-HL3LNPAX.js} +4 -2
- package/dist/{responsiveness-probe-RFANLJWP.js → responsiveness-probe-AZ44ONES.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-5XHO4HKA.js.map +0 -1
- /package/dist/{chunk-Q5O2VAQA.js.map → chunk-ICNRQ4L5.js.map} +0 -0
- /package/dist/{claude-pair-runtime-TA2D5FPK.js.map → claude-pair-runtime-U5ES3GOY.js.map} +0 -0
- /package/dist/{persistent-session-NZMYK2WQ.js.map → persistent-session-HL3LNPAX.js.map} +0 -0
- /package/dist/{responsiveness-probe-RFANLJWP.js.map → responsiveness-probe-AZ44ONES.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-ICNRQ4L5.js";
|
|
44
44
|
import {
|
|
45
45
|
AnchorSessionClient,
|
|
46
46
|
CHANNEL_REGISTRY,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
requiredMcpWildcard,
|
|
72
72
|
resolveChannels,
|
|
73
73
|
serializeManifestForSlackCli
|
|
74
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-XKBUTWON.js";
|
|
75
75
|
import "../chunk-XWVM4KPK.js";
|
|
76
76
|
|
|
77
77
|
// src/bin/agt.ts
|
|
@@ -4830,7 +4830,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4830
4830
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4831
4831
|
import chalk18 from "chalk";
|
|
4832
4832
|
import ora16 from "ora";
|
|
4833
|
-
var cliVersion = true ? "0.28.
|
|
4833
|
+
var cliVersion = true ? "0.28.500" : "dev";
|
|
4834
4834
|
async function fetchLatestVersion() {
|
|
4835
4835
|
const host2 = getHost();
|
|
4836
4836
|
if (!host2) return null;
|
|
@@ -6002,7 +6002,7 @@ function handleError(err) {
|
|
|
6002
6002
|
}
|
|
6003
6003
|
|
|
6004
6004
|
// src/bin/agt.ts
|
|
6005
|
-
var cliVersion2 = true ? "0.28.
|
|
6005
|
+
var cliVersion2 = true ? "0.28.500" : "dev";
|
|
6006
6006
|
var program = new Command();
|
|
6007
6007
|
program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
|
|
6008
6008
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
resolveConnectivityProbe,
|
|
39
39
|
worseConnectivityOutcome,
|
|
40
40
|
wrapScheduledTaskPrompt
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-XKBUTWON.js";
|
|
42
42
|
import {
|
|
43
43
|
parsePsRows
|
|
44
44
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -5057,7 +5057,7 @@ function exchangeFailureKind(err) {
|
|
|
5057
5057
|
}
|
|
5058
5058
|
|
|
5059
5059
|
// src/lib/api-client.ts
|
|
5060
|
-
var agtCliVersion = true ? "0.28.
|
|
5060
|
+
var agtCliVersion = true ? "0.28.500" : "dev";
|
|
5061
5061
|
var lastConfigHash = null;
|
|
5062
5062
|
function setConfigHash(hash) {
|
|
5063
5063
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -7871,4 +7871,4 @@ export {
|
|
|
7871
7871
|
managerInstallSystemUnitCommand,
|
|
7872
7872
|
managerUninstallSystemUnitCommand
|
|
7873
7873
|
};
|
|
7874
|
-
//# sourceMappingURL=chunk-
|
|
7874
|
+
//# sourceMappingURL=chunk-ICNRQ4L5.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import { spawn as spawn2, execSync as execSync2, execFileSync as execFileSync3 } from "child_process";
|
|
7
7
|
import { join as join5, dirname as dirname3 } from "path";
|
|
8
8
|
import { homedir as homedir5, platform, userInfo as userInfo2 } from "os";
|
|
9
|
-
import { existsSync as existsSync6, readFileSync as readFileSync7, readdirSync as readdirSync3, writeFileSync as writeFileSync5, appendFileSync as appendFileSync2, mkdirSync as mkdirSync5, chmodSync as chmodSync3, copyFileSync, rmSync as rmSync3, lstatSync, realpathSync } from "fs";
|
|
9
|
+
import { existsSync as existsSync6, readFileSync as readFileSync7, readdirSync as readdirSync3, writeFileSync as writeFileSync5, appendFileSync as appendFileSync2, mkdirSync as mkdirSync5, chmodSync as chmodSync3, copyFileSync, rmSync as rmSync3, lstatSync, realpathSync, renameSync as renameSync2, statSync as statSync2 } from "fs";
|
|
10
10
|
|
|
11
11
|
// src/lib/mcp-sanitize.ts
|
|
12
12
|
import { readFileSync, writeFileSync } from "fs";
|
|
@@ -13631,6 +13631,28 @@ function setupPaneLog2(tmuxSession, codeName, log2) {
|
|
|
13631
13631
|
log2(`[persistent-session] pipe-pane setup failed for '${codeName}': ${err.message}`);
|
|
13632
13632
|
}
|
|
13633
13633
|
}
|
|
13634
|
+
function rotatePaneLogForDayRollover(codeName, log2, agentTimezone, now = /* @__PURE__ */ new Date()) {
|
|
13635
|
+
const logPath = paneLogPath(codeName);
|
|
13636
|
+
try {
|
|
13637
|
+
if (!existsSync6(logPath)) return null;
|
|
13638
|
+
if (statSync2(logPath).size === 0) return null;
|
|
13639
|
+
const stamp = todayLocalIso(now, agentTimezone ?? void 0).replace(/-/g, "");
|
|
13640
|
+
const dir = dirname3(logPath);
|
|
13641
|
+
let target = join5(dir, `pane.log-${stamp}`);
|
|
13642
|
+
if (existsSync6(target)) {
|
|
13643
|
+
const hhmmss = now.toISOString().slice(11, 19).replace(/:/g, "");
|
|
13644
|
+
target = join5(dir, `pane.log-${stamp}-${hhmmss}`);
|
|
13645
|
+
}
|
|
13646
|
+
renameSync2(logPath, target);
|
|
13647
|
+
writeFileSync5(logPath, "", "utf-8");
|
|
13648
|
+
const rotated = target.slice(dir.length + 1);
|
|
13649
|
+
log2(`[persistent-session] Rotated pane.log for '${codeName}' \u2192 ${rotated} (day-rollover)`);
|
|
13650
|
+
return rotated;
|
|
13651
|
+
} catch (err) {
|
|
13652
|
+
log2(`[persistent-session] pane.log rotation failed for '${codeName}': ${err.message}`);
|
|
13653
|
+
return null;
|
|
13654
|
+
}
|
|
13655
|
+
}
|
|
13634
13656
|
function readPaneLogTail(codeName, lines = PANE_TAIL_LINES) {
|
|
13635
13657
|
const logPath = paneLogPath(codeName);
|
|
13636
13658
|
if (!existsSync6(logPath)) return null;
|
|
@@ -14688,6 +14710,7 @@ export {
|
|
|
14688
14710
|
buildDockerRunCommand,
|
|
14689
14711
|
writePersistentClaudeWrapper,
|
|
14690
14712
|
paneLogPath,
|
|
14713
|
+
rotatePaneLogForDayRollover,
|
|
14691
14714
|
readPaneLogTail,
|
|
14692
14715
|
prepareForRespawn,
|
|
14693
14716
|
rotateSessionForWedge,
|
|
@@ -14713,4 +14736,4 @@ export {
|
|
|
14713
14736
|
stopAllSessionsAndWait,
|
|
14714
14737
|
getProjectDir
|
|
14715
14738
|
};
|
|
14716
|
-
//# sourceMappingURL=chunk-
|
|
14739
|
+
//# sourceMappingURL=chunk-XKBUTWON.js.map
|