@integrity-labs/agt-cli 0.28.472 → 0.28.473
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-VHWLFDME.js";
|
|
44
44
|
import {
|
|
45
45
|
AnchorSessionClient,
|
|
46
46
|
CHANNEL_REGISTRY,
|
|
@@ -4830,7 +4830,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4830
4830
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4831
4831
|
import chalk18 from "chalk";
|
|
4832
4832
|
import ora16 from "ora";
|
|
4833
|
-
var cliVersion = true ? "0.28.
|
|
4833
|
+
var cliVersion = true ? "0.28.473" : "dev";
|
|
4834
4834
|
async function fetchLatestVersion() {
|
|
4835
4835
|
const host2 = getHost();
|
|
4836
4836
|
if (!host2) return null;
|
|
@@ -6002,7 +6002,7 @@ function handleError(err) {
|
|
|
6002
6002
|
}
|
|
6003
6003
|
|
|
6004
6004
|
// src/bin/agt.ts
|
|
6005
|
-
var cliVersion2 = true ? "0.28.
|
|
6005
|
+
var cliVersion2 = true ? "0.28.473" : "dev";
|
|
6006
6006
|
var program = new Command();
|
|
6007
6007
|
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");
|
|
6008
6008
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -4932,7 +4932,7 @@ function exchangeFailureKind(err) {
|
|
|
4932
4932
|
}
|
|
4933
4933
|
|
|
4934
4934
|
// src/lib/api-client.ts
|
|
4935
|
-
var agtCliVersion = true ? "0.28.
|
|
4935
|
+
var agtCliVersion = true ? "0.28.473" : "dev";
|
|
4936
4936
|
var lastConfigHash = null;
|
|
4937
4937
|
function setConfigHash(hash) {
|
|
4938
4938
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -7661,4 +7661,4 @@ export {
|
|
|
7661
7661
|
managerInstallSystemUnitCommand,
|
|
7662
7662
|
managerUninstallSystemUnitCommand
|
|
7663
7663
|
};
|
|
7664
|
-
//# sourceMappingURL=chunk-
|
|
7664
|
+
//# sourceMappingURL=chunk-VHWLFDME.js.map
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
resolveEffectivePinRaw,
|
|
45
45
|
safeWriteJsonAtomic,
|
|
46
46
|
setConfigHash
|
|
47
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-VHWLFDME.js";
|
|
48
48
|
import {
|
|
49
49
|
getProjectDir as getProjectDir2,
|
|
50
50
|
getReadyTasks,
|
|
@@ -10038,7 +10038,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
10038
10038
|
var lastVersionCheckAt = 0;
|
|
10039
10039
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
10040
10040
|
var lastResponsivenessProbeAt = 0;
|
|
10041
|
-
var agtCliVersion = true ? "0.28.
|
|
10041
|
+
var agtCliVersion = true ? "0.28.473" : "dev";
|
|
10042
10042
|
function resolveBrewPath(execFileSync2) {
|
|
10043
10043
|
try {
|
|
10044
10044
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -10995,6 +10995,8 @@ function loadChannelHashCache2() {
|
|
|
10995
10995
|
function saveChannelHashCache2() {
|
|
10996
10996
|
saveChannelHashCache(agentState.knownChannelConfigHashes, channelHashCacheDir());
|
|
10997
10997
|
}
|
|
10998
|
+
var channelWriteFailureCounts = /* @__PURE__ */ new Map();
|
|
10999
|
+
var CHANNEL_WRITE_FAILURE_ESCALATE_EVERY = 90;
|
|
10998
11000
|
var persistedDeliveryBaseline = createDeliveryBaselineMaps();
|
|
10999
11001
|
function loadSenderPolicyBaseline2() {
|
|
11000
11002
|
loadSenderPolicyBaseline(persistedDeliveryBaseline, channelHashCacheDir(), log);
|
|
@@ -12660,9 +12662,24 @@ async function processAgent(agent, agentStates) {
|
|
|
12660
12662
|
agentAvatarUrl
|
|
12661
12663
|
}
|
|
12662
12664
|
);
|
|
12663
|
-
|
|
12664
|
-
|
|
12665
|
-
|
|
12665
|
+
const landed = frameworkAdapter.hasChannelCredentials?.(agent.code_name, channelId) ?? true;
|
|
12666
|
+
if (!landed) {
|
|
12667
|
+
channelConfigConverged = false;
|
|
12668
|
+
const attempts = (channelWriteFailureCounts.get(cacheKey) ?? 0) + 1;
|
|
12669
|
+
channelWriteFailureCounts.set(cacheKey, attempts);
|
|
12670
|
+
if (attempts === 1 || attempts % CHANNEL_WRITE_FAILURE_ESCALATE_EVERY === 0) {
|
|
12671
|
+
log(
|
|
12672
|
+
`ERROR: channel credentials for '${agent.code_name}/${channelId}' did NOT land on disk after a write that reported no error (reason=${reason}, attempt ${attempts}). The write was silently skipped \u2014 likely a missing credential field, or the guarded .mcp.json write was rejected by the secret lint / config validator (its reason is printed once per fingerprint on stderr). The channel will stay unusable until this is resolved; not re-logging every cycle.`
|
|
12673
|
+
);
|
|
12674
|
+
}
|
|
12675
|
+
} else {
|
|
12676
|
+
if (channelWriteFailureCounts.delete(cacheKey)) {
|
|
12677
|
+
log(`Channel credentials for '${agent.code_name}/${channelId}' landed on disk after ${reason} \u2014 recovered.`);
|
|
12678
|
+
}
|
|
12679
|
+
agentState.knownChannelConfigHashes.set(cacheKey, configHash);
|
|
12680
|
+
saveChannelHashCache2();
|
|
12681
|
+
log(`Channel credentials written for '${agent.code_name}/${channelId}' (reason=${reason}, hash=${configHash.slice(0, 8)}${prevHash ? `, prev=${prevHash.slice(0, 8)}` : ""})`);
|
|
12682
|
+
}
|
|
12666
12683
|
} catch (err) {
|
|
12667
12684
|
channelConfigConverged = false;
|
|
12668
12685
|
log(`Failed to write channel credentials for '${agent.code_name}/${channelId}': ${err.message}`);
|