@integrity-labs/agt-cli 0.28.567 → 0.28.568
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-VGMO43EI.js";
|
|
44
44
|
import {
|
|
45
45
|
AnchorSessionClient,
|
|
46
46
|
CHANNEL_REGISTRY,
|
|
@@ -4834,7 +4834,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4834
4834
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4835
4835
|
import chalk18 from "chalk";
|
|
4836
4836
|
import ora16 from "ora";
|
|
4837
|
-
var cliVersion = true ? "0.28.
|
|
4837
|
+
var cliVersion = true ? "0.28.568" : "dev";
|
|
4838
4838
|
async function fetchLatestVersion() {
|
|
4839
4839
|
const host2 = getHost();
|
|
4840
4840
|
if (!host2) return null;
|
|
@@ -6009,7 +6009,7 @@ function handleError(err) {
|
|
|
6009
6009
|
}
|
|
6010
6010
|
|
|
6011
6011
|
// src/bin/agt.ts
|
|
6012
|
-
var cliVersion2 = true ? "0.28.
|
|
6012
|
+
var cliVersion2 = true ? "0.28.568" : "dev";
|
|
6013
6013
|
var program = new Command();
|
|
6014
6014
|
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");
|
|
6015
6015
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -5646,7 +5646,7 @@ function exchangeFailureKind(err) {
|
|
|
5646
5646
|
}
|
|
5647
5647
|
|
|
5648
5648
|
// src/lib/api-client.ts
|
|
5649
|
-
var agtCliVersion = true ? "0.28.
|
|
5649
|
+
var agtCliVersion = true ? "0.28.568" : "dev";
|
|
5650
5650
|
var lastConfigHash = null;
|
|
5651
5651
|
function setConfigHash(hash) {
|
|
5652
5652
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -9011,4 +9011,4 @@ export {
|
|
|
9011
9011
|
managerInstallSystemUnitCommand,
|
|
9012
9012
|
managerUninstallSystemUnitCommand
|
|
9013
9013
|
};
|
|
9014
|
-
//# sourceMappingURL=chunk-
|
|
9014
|
+
//# sourceMappingURL=chunk-VGMO43EI.js.map
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
safeWriteJsonAtomic,
|
|
54
54
|
setConfigHash,
|
|
55
55
|
tripClass
|
|
56
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-VGMO43EI.js";
|
|
57
57
|
import {
|
|
58
58
|
getProjectDir as getProjectDir2,
|
|
59
59
|
getReadyTasks,
|
|
@@ -11390,7 +11390,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
11390
11390
|
var lastVersionCheckAt = 0;
|
|
11391
11391
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
11392
11392
|
var lastResponsivenessProbeAt = 0;
|
|
11393
|
-
var agtCliVersion = true ? "0.28.
|
|
11393
|
+
var agtCliVersion = true ? "0.28.568" : "dev";
|
|
11394
11394
|
function resolveBrewPath(execFileSync2) {
|
|
11395
11395
|
try {
|
|
11396
11396
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -15649,7 +15649,7 @@ async function processAgent(agent, agentStates) {
|
|
|
15649
15649
|
if (newlyDone.length > 0) {
|
|
15650
15650
|
const displayName = agentState.agentDisplayNames.get(agent.code_name) ?? agent.code_name;
|
|
15651
15651
|
for (const item of newlyDone) {
|
|
15652
|
-
log(`Newly done:
|
|
15652
|
+
log(`Newly done: item_id=${item.id} notify_channel=${item.notify_channel ?? "none"} notify_to=${item.notify_to ?? "none"}`);
|
|
15653
15653
|
if (item.notify_channel && item.notify_to) {
|
|
15654
15654
|
const message = await buildDoneCardNotification(agentId, agent.code_name, displayName, item);
|
|
15655
15655
|
sendTaskNotification(agent.code_name, item.notify_channel, item.notify_to, message).catch((err) => {
|
|
@@ -15715,11 +15715,11 @@ async function processAgent(agent, agentStates) {
|
|
|
15715
15715
|
const stuckKey = `${agent.code_name}:${item.id}`;
|
|
15716
15716
|
if (!stuckKanbanLogged.has(stuckKey)) {
|
|
15717
15717
|
log(
|
|
15718
|
-
`[persistent-session-stuck-kanban] agent=${agent.code_name} item_id=${item.id}
|
|
15718
|
+
`[persistent-session-stuck-kanban] agent=${agent.code_name} item_id=${item.id} status=in_progress age_minutes=${age} threshold_minutes=${Math.round(STALE_TASK_THRESHOLD_MS / 6e4)}`
|
|
15719
15719
|
);
|
|
15720
15720
|
stuckKanbanLogged.add(stuckKey);
|
|
15721
15721
|
}
|
|
15722
|
-
log(`Stale task:
|
|
15722
|
+
log(`Stale task: item_id=${item.id} in_progress for ${age}m \u2014 reaping for '${agent.code_name}'`);
|
|
15723
15723
|
alertedStaleItems.add(`${agent.code_name}:${item.id}`);
|
|
15724
15724
|
let reapAction = null;
|
|
15725
15725
|
try {
|
|
@@ -15730,13 +15730,14 @@ async function processAgent(agent, agentStates) {
|
|
|
15730
15730
|
});
|
|
15731
15731
|
reapAction = reapResult.action ?? null;
|
|
15732
15732
|
log(
|
|
15733
|
-
`Reap result for
|
|
15733
|
+
`Reap result for item_id=${item.id}: updated=${reapResult.updated} action=${reapResult.action ?? reapResult.reason ?? "none"}`
|
|
15734
15734
|
);
|
|
15735
15735
|
if (reapAction === "dead_letter" && ((reapResult.updated ?? 0) > 0 || reapResult.ok === true)) {
|
|
15736
15736
|
freshDoneIds.add(item.id);
|
|
15737
15737
|
}
|
|
15738
15738
|
} catch (err) {
|
|
15739
|
-
|
|
15739
|
+
const errId = createHash17("sha256").update(err instanceof Error ? err.message : String(err)).digest("hex").slice(0, 12);
|
|
15740
|
+
log(`Reap API error for item_id=${item.id} error_id=${errId}`);
|
|
15740
15741
|
}
|
|
15741
15742
|
if (reapAction === "dead_letter") {
|
|
15742
15743
|
const message = `\u26A0\uFE0F Task Stalled \u2014 ${displayName}
|