@integrity-labs/agt-cli 0.28.393 → 0.28.394
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-PTQWY46F.js";
|
|
44
44
|
import {
|
|
45
45
|
AnchorSessionClient,
|
|
46
46
|
CHANNEL_REGISTRY,
|
|
@@ -4829,7 +4829,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4829
4829
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4830
4830
|
import chalk18 from "chalk";
|
|
4831
4831
|
import ora16 from "ora";
|
|
4832
|
-
var cliVersion = true ? "0.28.
|
|
4832
|
+
var cliVersion = true ? "0.28.394" : "dev";
|
|
4833
4833
|
async function fetchLatestVersion() {
|
|
4834
4834
|
const host2 = getHost();
|
|
4835
4835
|
if (!host2) return null;
|
|
@@ -6001,7 +6001,7 @@ function handleError(err) {
|
|
|
6001
6001
|
}
|
|
6002
6002
|
|
|
6003
6003
|
// src/bin/agt.ts
|
|
6004
|
-
var cliVersion2 = true ? "0.28.
|
|
6004
|
+
var cliVersion2 = true ? "0.28.394" : "dev";
|
|
6005
6005
|
var program = new Command();
|
|
6006
6006
|
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");
|
|
6007
6007
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -6196,7 +6196,7 @@ function requireHost() {
|
|
|
6196
6196
|
}
|
|
6197
6197
|
|
|
6198
6198
|
// src/lib/api-client.ts
|
|
6199
|
-
var agtCliVersion = true ? "0.28.
|
|
6199
|
+
var agtCliVersion = true ? "0.28.394" : "dev";
|
|
6200
6200
|
var lastConfigHash = null;
|
|
6201
6201
|
function setConfigHash(hash) {
|
|
6202
6202
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8650,4 +8650,4 @@ export {
|
|
|
8650
8650
|
managerInstallSystemUnitCommand,
|
|
8651
8651
|
managerUninstallSystemUnitCommand
|
|
8652
8652
|
};
|
|
8653
|
-
//# sourceMappingURL=chunk-
|
|
8653
|
+
//# sourceMappingURL=chunk-PTQWY46F.js.map
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
resolveEffectivePinRaw,
|
|
44
44
|
safeWriteJsonAtomic,
|
|
45
45
|
setConfigHash
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-PTQWY46F.js";
|
|
47
47
|
import {
|
|
48
48
|
getProjectDir as getProjectDir2,
|
|
49
49
|
getReadyTasks,
|
|
@@ -9248,7 +9248,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
9248
9248
|
var lastVersionCheckAt = 0;
|
|
9249
9249
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
9250
9250
|
var lastResponsivenessProbeAt = 0;
|
|
9251
|
-
var agtCliVersion = true ? "0.28.
|
|
9251
|
+
var agtCliVersion = true ? "0.28.394" : "dev";
|
|
9252
9252
|
function resolveBrewPath(execFileSync2) {
|
|
9253
9253
|
try {
|
|
9254
9254
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -10923,6 +10923,28 @@ async function pollCycle() {
|
|
|
10923
10923
|
(err) => log(`[restart] clear failed for agent_id=${clear.agentId}: ${err.message}`)
|
|
10924
10924
|
);
|
|
10925
10925
|
}
|
|
10926
|
+
for (const agent of agents) {
|
|
10927
|
+
const clears = agent.channel_clears ?? [];
|
|
10928
|
+
if (clears.length === 0) continue;
|
|
10929
|
+
for (const clear of clears) {
|
|
10930
|
+
const removed = channelQuarantineStore().clearQuarantine(
|
|
10931
|
+
agent.code_name,
|
|
10932
|
+
clear.channel_id
|
|
10933
|
+
);
|
|
10934
|
+
log(
|
|
10935
|
+
`[channel-reenable] ${removed ? "cleared" : "no marker for"} '${clear.channel_id}' on '${agent.code_name}' (operator re-enable)`
|
|
10936
|
+
);
|
|
10937
|
+
void api.post("/host/channel-clear-ack", {
|
|
10938
|
+
agent_id: agent.agent_id,
|
|
10939
|
+
channel_id: clear.channel_id,
|
|
10940
|
+
requested_at: clear.requested_at
|
|
10941
|
+
}).catch(
|
|
10942
|
+
(err) => log(
|
|
10943
|
+
`[channel-reenable] ack failed for agent_id=${agent.agent_id} channel=${clear.channel_id}: ${err.message}`
|
|
10944
|
+
)
|
|
10945
|
+
);
|
|
10946
|
+
}
|
|
10947
|
+
}
|
|
10926
10948
|
const frameworksThisCycle = new Set(agents.map((a) => a.framework).filter(Boolean));
|
|
10927
10949
|
for (const fw of frameworksThisCycle) {
|
|
10928
10950
|
await ensureFrameworkBinary(fw);
|