@integrity-labs/agt-cli 0.28.827 → 0.28.829

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-VOQ25S2E.js";
63
+ } from "../chunk-E75YCJTE.js";
63
64
  import {
64
65
  getProjectDir as getProjectDir2,
65
66
  getReadyTasks,
@@ -12927,7 +12928,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
12927
12928
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
12928
12929
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
12929
12930
  async function channelInboundActivityAgeSecondsFor(codeName) {
12930
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-TIEZW3XP.js");
12931
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-5B2WA5G3.js");
12931
12932
  const newest = newestPendingInboundActivityMtimeMs(dirname10(paneLogPath(codeName)));
12932
12933
  if (newest === null) return null;
12933
12934
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -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.827" : "dev";
13599
+ var agtCliVersion = true ? "0.28.829" : "dev";
13599
13600
  function resolveBrewPath(execFileSync2) {
13600
13601
  try {
13601
13602
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -15496,7 +15497,7 @@ async function pollCycleInner() {
15496
15497
  collectPanelessActivityProbes,
15497
15498
  getResponsivenessIntervalMs,
15498
15499
  occupancyQualificationClassifications
15499
- } = await import("../responsiveness-probe-TIEZW3XP.js");
15500
+ } = await import("../responsiveness-probe-5B2WA5G3.js");
15500
15501
  const probeIntervalMs = getResponsivenessIntervalMs();
15501
15502
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
15502
15503
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -15613,7 +15614,7 @@ async function pollCycleInner() {
15613
15614
  collectResponsivenessProbes,
15614
15615
  livePendingInboundOldestAgeSeconds,
15615
15616
  parkPendingInbound
15616
- } = await import("../responsiveness-probe-TIEZW3XP.js");
15617
+ } = await import("../responsiveness-probe-5B2WA5G3.js");
15617
15618
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
15618
15619
  const wedgeNow = /* @__PURE__ */ new Date();
15619
15620
  const liveAgents = agentState.persistentSessionAgents;
@@ -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 = `credentials for ${channelId} reported a clean write but did not land on disk (reason=${reason}) \u2014 likely a missing credential field, or the guarded .mcp.json write was rejected by the secret lint / config validator`;
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 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.`
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 {