@integrity-labs/agt-cli 0.28.589 → 0.28.590
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
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-YXB2QIM5.js";
|
|
44
44
|
import {
|
|
45
45
|
AnchorSessionClient,
|
|
46
46
|
CHANNEL_REGISTRY,
|
|
@@ -4908,7 +4908,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4908
4908
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4909
4909
|
import chalk18 from "chalk";
|
|
4910
4910
|
import ora16 from "ora";
|
|
4911
|
-
var cliVersion = true ? "0.28.
|
|
4911
|
+
var cliVersion = true ? "0.28.590" : "dev";
|
|
4912
4912
|
async function fetchLatestVersion() {
|
|
4913
4913
|
const host2 = getHost();
|
|
4914
4914
|
if (!host2) return null;
|
|
@@ -6088,7 +6088,7 @@ function handleError(err) {
|
|
|
6088
6088
|
}
|
|
6089
6089
|
|
|
6090
6090
|
// src/bin/agt.ts
|
|
6091
|
-
var cliVersion2 = true ? "0.28.
|
|
6091
|
+
var cliVersion2 = true ? "0.28.590" : "dev";
|
|
6092
6092
|
var program = new Command();
|
|
6093
6093
|
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");
|
|
6094
6094
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -5971,7 +5971,7 @@ function exchangeFailureKind(err) {
|
|
|
5971
5971
|
}
|
|
5972
5972
|
|
|
5973
5973
|
// src/lib/api-client.ts
|
|
5974
|
-
var agtCliVersion = true ? "0.28.
|
|
5974
|
+
var agtCliVersion = true ? "0.28.590" : "dev";
|
|
5975
5975
|
var lastConfigHash = null;
|
|
5976
5976
|
function setConfigHash(hash) {
|
|
5977
5977
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -9353,4 +9353,4 @@ export {
|
|
|
9353
9353
|
managerInstallSystemUnitCommand,
|
|
9354
9354
|
managerUninstallSystemUnitCommand
|
|
9355
9355
|
};
|
|
9356
|
-
//# sourceMappingURL=chunk-
|
|
9356
|
+
//# sourceMappingURL=chunk-YXB2QIM5.js.map
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
safeWriteJsonAtomic,
|
|
54
54
|
setConfigHash,
|
|
55
55
|
tripClass
|
|
56
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-YXB2QIM5.js";
|
|
57
57
|
import {
|
|
58
58
|
getProjectDir as getProjectDir2,
|
|
59
59
|
getReadyTasks,
|
|
@@ -6527,6 +6527,17 @@ function closeScheduledRunsForCode(codeName, outcome, reason) {
|
|
|
6527
6527
|
void finishRun(runId, outcome, { outcomeMessage: reason });
|
|
6528
6528
|
}
|
|
6529
6529
|
}
|
|
6530
|
+
var sessionRunsByCode = /* @__PURE__ */ new Map();
|
|
6531
|
+
function trackSessionRun(codeName, runId) {
|
|
6532
|
+
if (!runId) return;
|
|
6533
|
+
sessionRunsByCode.set(codeName, runId);
|
|
6534
|
+
}
|
|
6535
|
+
function closeSessionRunForCode(codeName, outcome, reason) {
|
|
6536
|
+
const runId = sessionRunsByCode.get(codeName);
|
|
6537
|
+
if (!runId) return;
|
|
6538
|
+
sessionRunsByCode.delete(codeName);
|
|
6539
|
+
void finishRun(runId, outcome, { outcomeMessage: reason });
|
|
6540
|
+
}
|
|
6530
6541
|
|
|
6531
6542
|
// src/lib/manager/scheduler/kanban-route.ts
|
|
6532
6543
|
import { createHash as createHash12 } from "crypto";
|
|
@@ -10853,6 +10864,7 @@ function scheduleSessionRestart(codeName, delayMs, reason, breakerReason = "hot-
|
|
|
10853
10864
|
}
|
|
10854
10865
|
}
|
|
10855
10866
|
stopPersistentSession(codeName, log);
|
|
10867
|
+
closeSessionRunForCode(codeName, "completed", `session stopped (${breakerReason})`);
|
|
10856
10868
|
markRestartStopped(codeName, log);
|
|
10857
10869
|
{
|
|
10858
10870
|
const baselineAgentId = agentState.codeNameToAgentId.get(codeName);
|
|
@@ -11435,6 +11447,7 @@ function stopPersistentSessionAndForgetMcpBaseline(codeName, breakerReason, gate
|
|
|
11435
11447
|
const runMessage = runClose ? `session stopped (${runClose.message})` : `session stopped (${breakerReason ?? "deprovision"})`;
|
|
11436
11448
|
closeInjectedRunIfOpen(codeName, runOutcome, runMessage);
|
|
11437
11449
|
closeScheduledRunsForCode(codeName, runOutcome, runMessage);
|
|
11450
|
+
closeSessionRunForCode(codeName, runClose?.outcome ?? "completed", runMessage);
|
|
11438
11451
|
if (breakerReason) {
|
|
11439
11452
|
recordRestartForBreaker(codeName, breakerReason);
|
|
11440
11453
|
}
|
|
@@ -11629,7 +11642,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
11629
11642
|
var lastVersionCheckAt = 0;
|
|
11630
11643
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
11631
11644
|
var lastResponsivenessProbeAt = 0;
|
|
11632
|
-
var agtCliVersion = true ? "0.28.
|
|
11645
|
+
var agtCliVersion = true ? "0.28.590" : "dev";
|
|
11633
11646
|
function resolveBrewPath(execFileSync2) {
|
|
11634
11647
|
try {
|
|
11635
11648
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -16480,6 +16493,7 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash17("sha256")
|
|
|
16480
16493
|
source_type: "system",
|
|
16481
16494
|
metadata: { type: "persistent_session_boot" }
|
|
16482
16495
|
});
|
|
16496
|
+
trackSessionRun(codeName, sessionRunResult.run_id);
|
|
16483
16497
|
const spawnPrimaryModel = resolveModelChain(refreshData).primary ?? refreshData.agent?.["primary_model"] ?? null;
|
|
16484
16498
|
const egressAllowlist = deriveEgressAllowlist(
|
|
16485
16499
|
refreshData.tools?.raw_content
|
|
@@ -18055,6 +18069,9 @@ async function stopPolling(opts = {}) {
|
|
|
18055
18069
|
for (const codeName of [...scheduledRunsByCode.keys()]) {
|
|
18056
18070
|
closeScheduledRunsForCode(codeName, "cancelled", "manager shutdown");
|
|
18057
18071
|
}
|
|
18072
|
+
for (const codeName of [...sessionRunsByCode.keys()]) {
|
|
18073
|
+
closeSessionRunForCode(codeName, "completed", "manager shutdown");
|
|
18074
|
+
}
|
|
18058
18075
|
log("Killing tmux sessions...");
|
|
18059
18076
|
await killAllAgtTmuxSessions();
|
|
18060
18077
|
log("Stopping persistent sessions...");
|