@integrity-labs/agt-cli 0.28.498 → 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-F6SYBDTF.js → chunk-ICNRQ4L5.js} +3 -3
- package/dist/{chunk-WRII2Q5W.js → chunk-XKBUTWON.js} +30 -2
- package/dist/chunk-XKBUTWON.js.map +1 -0
- package/dist/{claude-pair-runtime-W5QIX4BK.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/mcp/direct-chat-channel.js +5 -0
- package/dist/mcp/origami.js +5 -0
- package/dist/mcp/slack-channel.js +5 -0
- package/dist/mcp/telegram-channel.js +5 -0
- package/dist/{persistent-session-E3P3H777.js → persistent-session-HL3LNPAX.js} +4 -2
- package/dist/{responsiveness-probe-LIDRKFGT.js → responsiveness-probe-AZ44ONES.js} +3 -2
- package/dist/responsiveness-probe-AZ44ONES.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-WRII2Q5W.js.map +0 -1
- package/dist/responsiveness-probe-LIDRKFGT.js.map +0 -1
- /package/dist/{chunk-F6SYBDTF.js.map → chunk-ICNRQ4L5.js.map} +0 -0
- /package/dist/{claude-pair-runtime-W5QIX4BK.js.map → claude-pair-runtime-U5ES3GOY.js.map} +0 -0
- /package/dist/{persistent-session-E3P3H777.js.map → persistent-session-HL3LNPAX.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";
|
|
@@ -7250,6 +7250,11 @@ var AGENT_DIRECTED_KIND_SET = new Set(AGENT_DIRECTED_NOTICE_KINDS);
|
|
|
7250
7250
|
// ../../packages/core/dist/direct-chat/cursor-advance.js
|
|
7251
7251
|
var CURSOR_SHORTFALL_REASONS = [
|
|
7252
7252
|
"not_found",
|
|
7253
|
+
// ENG-8348: `/consume` only. The row belongs to this agent+session but was
|
|
7254
|
+
// never claimed, so the caller is acking work it cannot have done — the one
|
|
7255
|
+
// case that route's widened predicate deliberately refuses to advance. It has
|
|
7256
|
+
// to be nameable or the refusal is unmeasurable.
|
|
7257
|
+
"unclaimed",
|
|
7253
7258
|
"gave_up",
|
|
7254
7259
|
"already_delivered",
|
|
7255
7260
|
"error",
|
|
@@ -13626,6 +13631,28 @@ function setupPaneLog2(tmuxSession, codeName, log2) {
|
|
|
13626
13631
|
log2(`[persistent-session] pipe-pane setup failed for '${codeName}': ${err.message}`);
|
|
13627
13632
|
}
|
|
13628
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
|
+
}
|
|
13629
13656
|
function readPaneLogTail(codeName, lines = PANE_TAIL_LINES) {
|
|
13630
13657
|
const logPath = paneLogPath(codeName);
|
|
13631
13658
|
if (!existsSync6(logPath)) return null;
|
|
@@ -14683,6 +14710,7 @@ export {
|
|
|
14683
14710
|
buildDockerRunCommand,
|
|
14684
14711
|
writePersistentClaudeWrapper,
|
|
14685
14712
|
paneLogPath,
|
|
14713
|
+
rotatePaneLogForDayRollover,
|
|
14686
14714
|
readPaneLogTail,
|
|
14687
14715
|
prepareForRespawn,
|
|
14688
14716
|
rotateSessionForWedge,
|
|
@@ -14708,4 +14736,4 @@ export {
|
|
|
14708
14736
|
stopAllSessionsAndWait,
|
|
14709
14737
|
getProjectDir
|
|
14710
14738
|
};
|
|
14711
|
-
//# sourceMappingURL=chunk-
|
|
14739
|
+
//# sourceMappingURL=chunk-XKBUTWON.js.map
|