@integrity-labs/agt-cli 0.28.726 → 0.28.727
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
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
success,
|
|
42
42
|
table,
|
|
43
43
|
warn
|
|
44
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-65RGJKFR.js";
|
|
45
45
|
import {
|
|
46
46
|
getProjectDir,
|
|
47
47
|
isSessionResumeDisabled,
|
|
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5467
5467
|
import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
|
|
5468
5468
|
import chalk18 from "chalk";
|
|
5469
5469
|
import ora16 from "ora";
|
|
5470
|
-
var cliVersion = true ? "0.28.
|
|
5470
|
+
var cliVersion = true ? "0.28.727" : "dev";
|
|
5471
5471
|
async function fetchLatestVersion() {
|
|
5472
5472
|
const host2 = getHost();
|
|
5473
5473
|
if (!host2) return null;
|
|
@@ -6654,7 +6654,7 @@ function handleError(err) {
|
|
|
6654
6654
|
}
|
|
6655
6655
|
|
|
6656
6656
|
// src/bin/agt.ts
|
|
6657
|
-
var cliVersion2 = true ? "0.28.
|
|
6657
|
+
var cliVersion2 = true ? "0.28.727" : "dev";
|
|
6658
6658
|
var program = new Command();
|
|
6659
6659
|
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");
|
|
6660
6660
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -6428,7 +6428,7 @@ function exchangeFailureKind(err) {
|
|
|
6428
6428
|
}
|
|
6429
6429
|
|
|
6430
6430
|
// src/lib/api-client.ts
|
|
6431
|
-
var agtCliVersion = true ? "0.28.
|
|
6431
|
+
var agtCliVersion = true ? "0.28.727" : "dev";
|
|
6432
6432
|
var lastConfigHash = null;
|
|
6433
6433
|
function setConfigHash(hash) {
|
|
6434
6434
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -10474,4 +10474,4 @@ export {
|
|
|
10474
10474
|
managerInstallSystemUnitCommand,
|
|
10475
10475
|
managerUninstallSystemUnitCommand
|
|
10476
10476
|
};
|
|
10477
|
-
//# sourceMappingURL=chunk-
|
|
10477
|
+
//# sourceMappingURL=chunk-65RGJKFR.js.map
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
safeWriteJsonAtomic,
|
|
58
58
|
setConfigHash,
|
|
59
59
|
tripClass
|
|
60
|
-
} from "../chunk-
|
|
60
|
+
} from "../chunk-65RGJKFR.js";
|
|
61
61
|
import {
|
|
62
62
|
getProjectDir as getProjectDir2,
|
|
63
63
|
getReadyTasks,
|
|
@@ -5503,6 +5503,28 @@ async function resolveIntegrationSkillsFromManifest(args) {
|
|
|
5503
5503
|
return out;
|
|
5504
5504
|
}
|
|
5505
5505
|
|
|
5506
|
+
// src/lib/kanban-board-fetch.ts
|
|
5507
|
+
function createTickBoardFetcher(fetchBoard) {
|
|
5508
|
+
let resolved = null;
|
|
5509
|
+
let inflight = null;
|
|
5510
|
+
return () => {
|
|
5511
|
+
if (resolved) return Promise.resolve(resolved.value);
|
|
5512
|
+
if (inflight) return inflight;
|
|
5513
|
+
inflight = fetchBoard().then(
|
|
5514
|
+
(value) => {
|
|
5515
|
+
resolved = { value };
|
|
5516
|
+
inflight = null;
|
|
5517
|
+
return value;
|
|
5518
|
+
},
|
|
5519
|
+
(err) => {
|
|
5520
|
+
inflight = null;
|
|
5521
|
+
throw err;
|
|
5522
|
+
}
|
|
5523
|
+
);
|
|
5524
|
+
return inflight;
|
|
5525
|
+
};
|
|
5526
|
+
}
|
|
5527
|
+
|
|
5506
5528
|
// src/lib/channel-hash-cache.ts
|
|
5507
5529
|
import { existsSync as existsSync8, readFileSync as readFileSync19, writeFileSync as writeFileSync10 } from "fs";
|
|
5508
5530
|
import { join as join25 } from "path";
|
|
@@ -12914,7 +12936,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
12914
12936
|
var lastVersionCheckAt = 0;
|
|
12915
12937
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
12916
12938
|
var lastResponsivenessProbeAt = 0;
|
|
12917
|
-
var agtCliVersion = true ? "0.28.
|
|
12939
|
+
var agtCliVersion = true ? "0.28.727" : "dev";
|
|
12918
12940
|
function resolveBrewPath(execFileSync3) {
|
|
12919
12941
|
try {
|
|
12920
12942
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -17352,13 +17374,18 @@ async function processAgent(agent, agentStates, managedToolkits) {
|
|
|
17352
17374
|
}
|
|
17353
17375
|
}
|
|
17354
17376
|
}
|
|
17377
|
+
const fetchTickBoard = createTickBoardFetcher(async () => {
|
|
17378
|
+
const boardData = await api.post("/host/my-kanban", {
|
|
17379
|
+
agent_id: agent.agent_id
|
|
17380
|
+
});
|
|
17381
|
+
return (boardData.items ?? []).map(sanitizeBoardItem);
|
|
17382
|
+
});
|
|
17355
17383
|
let boardItems = [];
|
|
17356
17384
|
let boardItemsStale = false;
|
|
17357
17385
|
const hasBoardTemplates = tasks.some((t) => BOARD_INJECT_TEMPLATES.has(t.template_id));
|
|
17358
17386
|
if (hasBoardTemplates) {
|
|
17359
17387
|
try {
|
|
17360
|
-
|
|
17361
|
-
boardItems = (boardData.items ?? []).map(sanitizeBoardItem);
|
|
17388
|
+
boardItems = await fetchTickBoard();
|
|
17362
17389
|
kanbanBoardCache.set(agent.code_name, boardItems);
|
|
17363
17390
|
} catch {
|
|
17364
17391
|
boardItems = kanbanBoardCache.get(agent.code_name) ?? [];
|
|
@@ -17373,11 +17400,7 @@ async function processAgent(agent, agentStates, managedToolkits) {
|
|
|
17373
17400
|
let hybridBoardStale = boardItemsStale;
|
|
17374
17401
|
if (!hybridBoard) {
|
|
17375
17402
|
try {
|
|
17376
|
-
|
|
17377
|
-
"/host/my-kanban",
|
|
17378
|
-
{ agent_id: agent.agent_id }
|
|
17379
|
-
);
|
|
17380
|
-
hybridBoard = (boardData.items ?? []).map(sanitizeBoardItem);
|
|
17403
|
+
hybridBoard = await fetchTickBoard();
|
|
17381
17404
|
kanbanBoardCache.set(agent.code_name, hybridBoard);
|
|
17382
17405
|
} catch {
|
|
17383
17406
|
hybridBoard = kanbanBoardCache.get(agent.code_name) ?? [];
|
|
@@ -17785,8 +17808,7 @@ async function processAgent(agent, agentStates, managedToolkits) {
|
|
|
17785
17808
|
const agentId = agentState.codeNameToAgentId.get(agent.code_name);
|
|
17786
17809
|
if (agentId) {
|
|
17787
17810
|
try {
|
|
17788
|
-
const
|
|
17789
|
-
const freshBoard = (boardData.items ?? []).map(sanitizeBoardItem);
|
|
17811
|
+
const freshBoard = await fetchTickBoard();
|
|
17790
17812
|
const freshDoneIds = new Set(freshBoard.filter((b) => b.status === "done" || b.status === "failed").map((b) => b.id));
|
|
17791
17813
|
const previousDoneIds = notifyBoardCache.get(agent.code_name);
|
|
17792
17814
|
notifyBoardCache.set(agent.code_name, freshDoneIds);
|