@integrity-labs/agt-cli 0.28.827 → 0.28.828
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.
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
decidePin,
|
|
15
15
|
defaultFlagsCachePath,
|
|
16
16
|
deriveMcpServerKey,
|
|
17
|
+
describeChannelWriteFailure,
|
|
17
18
|
describeStartupCompletion,
|
|
18
19
|
diffEnvIntegrations,
|
|
19
20
|
drainTranscriptFlushDeps,
|
|
@@ -59,7 +60,7 @@ import {
|
|
|
59
60
|
safeWriteJsonAtomic,
|
|
60
61
|
setConfigHash,
|
|
61
62
|
tripClass
|
|
62
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-FBJFYF3F.js";
|
|
63
64
|
import {
|
|
64
65
|
getProjectDir as getProjectDir2,
|
|
65
66
|
getReadyTasks,
|
|
@@ -13595,7 +13596,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13595
13596
|
var lastVersionCheckAt = 0;
|
|
13596
13597
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13597
13598
|
var lastResponsivenessProbeAt = 0;
|
|
13598
|
-
var agtCliVersion = true ? "0.28.
|
|
13599
|
+
var agtCliVersion = true ? "0.28.828" : "dev";
|
|
13599
13600
|
function resolveBrewPath(execFileSync2) {
|
|
13600
13601
|
try {
|
|
13601
13602
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -17073,7 +17074,7 @@ async function processAgent(agent, agentStates, managedToolkits) {
|
|
|
17073
17074
|
);
|
|
17074
17075
|
}
|
|
17075
17076
|
}
|
|
17076
|
-
frameworkAdapter.writeChannelCredentials(
|
|
17077
|
+
const writeOutcome = frameworkAdapter.writeChannelCredentials(
|
|
17077
17078
|
agent.code_name,
|
|
17078
17079
|
channelId,
|
|
17079
17080
|
entry.config,
|
|
@@ -17101,12 +17102,16 @@ async function processAgent(agent, agentStates, managedToolkits) {
|
|
|
17101
17102
|
const landed = frameworkAdapter.hasChannelCredentials?.(agent.code_name, channelId) ?? true;
|
|
17102
17103
|
if (!landed) {
|
|
17103
17104
|
channelConfigConverged = false;
|
|
17104
|
-
channelConfigFailureReason =
|
|
17105
|
+
channelConfigFailureReason = describeChannelWriteFailure(
|
|
17106
|
+
writeOutcome,
|
|
17107
|
+
channelId,
|
|
17108
|
+
reason
|
|
17109
|
+
);
|
|
17105
17110
|
const attempts = (channelWriteFailureCounts.get(cacheKey) ?? 0) + 1;
|
|
17106
17111
|
channelWriteFailureCounts.set(cacheKey, attempts);
|
|
17107
17112
|
if (attempts === 1 || attempts % CHANNEL_WRITE_FAILURE_ESCALATE_EVERY === 0) {
|
|
17108
17113
|
log(
|
|
17109
|
-
`ERROR: channel credentials for '${agent.code_name}/${channelId}' did NOT land on disk
|
|
17114
|
+
`ERROR: channel credentials for '${agent.code_name}/${channelId}' did NOT land on disk (attempt ${attempts}). ${channelConfigFailureReason} The channel will stay unusable until this is resolved; not re-logging every cycle.`
|
|
17110
17115
|
);
|
|
17111
17116
|
}
|
|
17112
17117
|
} else {
|