@integrity-labs/agt-cli 0.28.153 → 0.28.155
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 +3 -3
- package/dist/{chunk-D3HM57G3.js → chunk-FOVOCPCL.js} +2 -2
- package/dist/lib/manager-worker.js +7 -23
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +51 -1
- package/dist/mcp/slack-channel.js +54 -2
- package/dist/mcp/teams-channel.js +54 -2
- package/dist/mcp/telegram-channel.js +57 -4
- package/package.json +1 -1
- /package/dist/{chunk-D3HM57G3.js.map → chunk-FOVOCPCL.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
success,
|
|
38
38
|
table,
|
|
39
39
|
warn
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-FOVOCPCL.js";
|
|
41
41
|
import {
|
|
42
42
|
CHANNEL_REGISTRY,
|
|
43
43
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4777
4777
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4778
4778
|
import chalk18 from "chalk";
|
|
4779
4779
|
import ora16 from "ora";
|
|
4780
|
-
var cliVersion = true ? "0.28.
|
|
4780
|
+
var cliVersion = true ? "0.28.155" : "dev";
|
|
4781
4781
|
async function fetchLatestVersion() {
|
|
4782
4782
|
const host2 = getHost();
|
|
4783
4783
|
if (!host2) return null;
|
|
@@ -5791,7 +5791,7 @@ function handleError(err) {
|
|
|
5791
5791
|
}
|
|
5792
5792
|
|
|
5793
5793
|
// src/bin/agt.ts
|
|
5794
|
-
var cliVersion2 = true ? "0.28.
|
|
5794
|
+
var cliVersion2 = true ? "0.28.155" : "dev";
|
|
5795
5795
|
var program = new Command();
|
|
5796
5796
|
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");
|
|
5797
5797
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -7850,7 +7850,7 @@ function requireHost() {
|
|
|
7850
7850
|
}
|
|
7851
7851
|
|
|
7852
7852
|
// src/lib/api-client.ts
|
|
7853
|
-
var agtCliVersion = true ? "0.28.
|
|
7853
|
+
var agtCliVersion = true ? "0.28.155" : "dev";
|
|
7854
7854
|
var lastConfigHash = null;
|
|
7855
7855
|
function setConfigHash(hash) {
|
|
7856
7856
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -9155,4 +9155,4 @@ export {
|
|
|
9155
9155
|
managerInstallSystemUnitCommand,
|
|
9156
9156
|
managerUninstallSystemUnitCommand
|
|
9157
9157
|
};
|
|
9158
|
-
//# sourceMappingURL=chunk-
|
|
9158
|
+
//# sourceMappingURL=chunk-FOVOCPCL.js.map
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
requireHost,
|
|
29
29
|
safeWriteJsonAtomic,
|
|
30
30
|
setConfigHash
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-FOVOCPCL.js";
|
|
32
32
|
import {
|
|
33
33
|
getProjectDir as getProjectDir2,
|
|
34
34
|
getReadyTasks,
|
|
@@ -1768,10 +1768,7 @@ function decideReaperActions(file, isAlive, looksLikeClaude = () => true) {
|
|
|
1768
1768
|
}
|
|
1769
1769
|
toKill.push(s);
|
|
1770
1770
|
}
|
|
1771
|
-
|
|
1772
|
-
(s) => s.kind === "kanban-work" && typeof s.kanban_card_id === "string" && s.kanban_card_id.length > 0
|
|
1773
|
-
);
|
|
1774
|
-
return { toKill, alreadyDead, pidReusedSkipped, toResetKanban };
|
|
1771
|
+
return { toKill, alreadyDead, pidReusedSkipped };
|
|
1775
1772
|
}
|
|
1776
1773
|
function formatDrainShutdownLine(opts) {
|
|
1777
1774
|
const killed = opts.killedPids && opts.killedPids.length > 0 ? ` killed_pids=${opts.killedPids.join(",")}` : "";
|
|
@@ -1779,7 +1776,7 @@ function formatDrainShutdownLine(opts) {
|
|
|
1779
1776
|
return `[drain] step=${opts.step} elapsed_ms=${opts.elapsedMs}${killed}${note}`;
|
|
1780
1777
|
}
|
|
1781
1778
|
function formatReaperBootLine(opts) {
|
|
1782
|
-
return `[drain] step=boot-reaper total=${opts.totalRecorded} killed=${opts.killed} already_dead=${opts.alreadyDead} pid_reused_skipped=${opts.pidReusedSkipped}
|
|
1779
|
+
return `[drain] step=boot-reaper total=${opts.totalRecorded} killed=${opts.killed} already_dead=${opts.alreadyDead} pid_reused_skipped=${opts.pidReusedSkipped}`;
|
|
1783
1780
|
}
|
|
1784
1781
|
|
|
1785
1782
|
// src/lib/direct-chat-delivery.ts
|
|
@@ -6874,7 +6871,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
6874
6871
|
var lastVersionCheckAt = 0;
|
|
6875
6872
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6876
6873
|
var lastResponsivenessProbeAt = 0;
|
|
6877
|
-
var agtCliVersion = true ? "0.28.
|
|
6874
|
+
var agtCliVersion = true ? "0.28.155" : "dev";
|
|
6878
6875
|
function resolveBrewPath(execFileSync4) {
|
|
6879
6876
|
try {
|
|
6880
6877
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -7507,7 +7504,7 @@ async function runEvalClaude(prompt, model) {
|
|
|
7507
7504
|
timeout: 12e4,
|
|
7508
7505
|
stdin: "ignore",
|
|
7509
7506
|
env: childEnv,
|
|
7510
|
-
onSpawn: (pid) => registerClaudeSpawn({ pid, started_at: Date.now(), kind: "
|
|
7507
|
+
onSpawn: (pid) => registerClaudeSpawn({ pid, started_at: Date.now(), kind: "conv-eval" }),
|
|
7511
7508
|
onExit: (pid) => unregisterClaudeSpawn(pid)
|
|
7512
7509
|
});
|
|
7513
7510
|
return stdout;
|
|
@@ -12373,27 +12370,14 @@ async function reapOrphanedClaudePids() {
|
|
|
12373
12370
|
}
|
|
12374
12371
|
for (const spawn of decision.pidReusedSkipped) {
|
|
12375
12372
|
log(
|
|
12376
|
-
`[drain] reaper skipped pid=${spawn.pid}
|
|
12373
|
+
`[drain] reaper skipped pid=${spawn.pid} \u2014 PID reuse suspected (identity probe rejected)`
|
|
12377
12374
|
);
|
|
12378
12375
|
}
|
|
12379
|
-
let kanbanReset = 0;
|
|
12380
|
-
for (const spawn of decision.toResetKanban) {
|
|
12381
|
-
try {
|
|
12382
|
-
await api.post("/host/kanban", {
|
|
12383
|
-
agent_id: spawn.agent_id,
|
|
12384
|
-
update: [{ id: spawn.kanban_card_id, status: "backlog" }]
|
|
12385
|
-
});
|
|
12386
|
-
kanbanReset += 1;
|
|
12387
|
-
} catch (err) {
|
|
12388
|
-
log(`[drain] reaper kanban-reset failed for card=${spawn.kanban_card_id} agent=${spawn.agent_code_name}: ${err.message}`);
|
|
12389
|
-
}
|
|
12390
|
-
}
|
|
12391
12376
|
log(formatReaperBootLine({
|
|
12392
12377
|
totalRecorded: file.spawns.length,
|
|
12393
12378
|
killed: decision.toKill.length,
|
|
12394
12379
|
alreadyDead: decision.alreadyDead.length,
|
|
12395
|
-
pidReusedSkipped: decision.pidReusedSkipped.length
|
|
12396
|
-
kanbanReset
|
|
12380
|
+
pidReusedSkipped: decision.pidReusedSkipped.length
|
|
12397
12381
|
}));
|
|
12398
12382
|
try {
|
|
12399
12383
|
writePidFile(path, { version: 1, spawns: [] });
|