@integrity-labs/agt-cli 0.28.822 → 0.28.823

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.
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
100
100
  return { ok: true };
101
101
  } catch {
102
102
  }
103
- const { resolveClaudeBinary } = await import("./persistent-session-MC3GPRAN.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-XBCAIURL.js");
104
104
  const claudeBin = resolveClaudeBinary();
105
105
  const pairEnv = {
106
106
  ...process.env,
@@ -373,4 +373,4 @@ export {
373
373
  startClaudePair,
374
374
  submitClaudePairCode
375
375
  };
376
- //# sourceMappingURL=claude-pair-runtime-CMLVI5AF.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-CYO2Z5MK.js.map
@@ -24,6 +24,7 @@ import {
24
24
  extractCommandNotFound,
25
25
  findMcpServersUsingVars,
26
26
  flushAgentTranscriptsOnDrain,
27
+ forceNextExchange,
27
28
  gatherSessionToolBindProbe,
28
29
  getApiKey,
29
30
  getCachedClaudeAuthMode,
@@ -58,7 +59,7 @@ import {
58
59
  safeWriteJsonAtomic,
59
60
  setConfigHash,
60
61
  tripClass
61
- } from "../chunk-IVR3UH5Z.js";
62
+ } from "../chunk-5PFBPGBO.js";
62
63
  import {
63
64
  getProjectDir as getProjectDir2,
64
65
  getReadyTasks,
@@ -123,7 +124,7 @@ import {
123
124
  takeZombieDetection,
124
125
  toOpencodeModel,
125
126
  writeEgressAllowlist
126
- } from "../chunk-KHCJT45W.js";
127
+ } from "../chunk-2MB3SP6H.js";
127
128
  import {
128
129
  ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
129
130
  AnchorSessionClient,
@@ -215,7 +216,7 @@ import {
215
216
  subagentActivityAgeSeconds,
216
217
  sumTranscriptUsageInWindow,
217
218
  transcriptActivityAgeSeconds
218
- } from "../chunk-5RMHCQ3H.js";
219
+ } from "../chunk-3QZUOZUZ.js";
219
220
  import {
220
221
  reapOrphanChannelMcps
221
222
  } from "../chunk-XWVM4KPK.js";
@@ -12918,7 +12919,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
12918
12919
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
12919
12920
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
12920
12921
  async function channelInboundActivityAgeSecondsFor(codeName) {
12921
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-ZJI5CCXE.js");
12922
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-R6RPL2OK.js");
12922
12923
  const newest = newestPendingInboundActivityMtimeMs(dirname10(paneLogPath(codeName)));
12923
12924
  if (newest === null) return null;
12924
12925
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -13586,7 +13587,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
13586
13587
  var lastVersionCheckAt = 0;
13587
13588
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
13588
13589
  var lastResponsivenessProbeAt = 0;
13589
- var agtCliVersion = true ? "0.28.822" : "dev";
13590
+ var agtCliVersion = true ? "0.28.823" : "dev";
13590
13591
  function resolveBrewPath(execFileSync2) {
13591
13592
  try {
13592
13593
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -15105,6 +15106,7 @@ ${SKILLS_INDEX_END}`;
15105
15106
  }
15106
15107
  }
15107
15108
  var DESIRED_STATE_FETCH_TTL_MS = 6e4;
15109
+ var AUTH_EXCHANGE_MAX_AGE_MS = DESIRED_STATE_FETCH_TTL_MS;
15108
15110
  var refreshFetchGate = createFetchGate(DESIRED_STATE_FETCH_TTL_MS);
15109
15111
  var lastRefreshPayload = /* @__PURE__ */ new Map();
15110
15112
  var memoriesFetchGate = createFetchGate(DESIRED_STATE_FETCH_TTL_MS);
@@ -15133,6 +15135,7 @@ function forceRefreshFetch() {
15133
15135
  defaultSchedulesFetchGate.forceAll();
15134
15136
  integrationsFetchGate.forceAll();
15135
15137
  quarantinedFetchGate.forceAll();
15138
+ forceNextExchange();
15136
15139
  }
15137
15140
  var consecutivePollFailures = 0;
15138
15141
  function reorderRestartedFirst(agents, restartedIds) {
@@ -15151,7 +15154,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
15151
15154
  if (codeNames.length === 0) return;
15152
15155
  void (async () => {
15153
15156
  try {
15154
- const { collectDiagnostics } = await import("../persistent-session-MC3GPRAN.js");
15157
+ const { collectDiagnostics } = await import("../persistent-session-XBCAIURL.js");
15155
15158
  await api.post("/host/heartbeat", {
15156
15159
  host_id: hostId,
15157
15160
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -15292,7 +15295,7 @@ async function pollCycleInner() {
15292
15295
  }
15293
15296
  try {
15294
15297
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
15295
- const { collectDiagnostics } = await import("../persistent-session-MC3GPRAN.js");
15298
+ const { collectDiagnostics } = await import("../persistent-session-XBCAIURL.js");
15296
15299
  const diagCodeNames = [...agentState.persistentSessionAgents];
15297
15300
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
15298
15301
  let tailscaleHostname;
@@ -15461,7 +15464,7 @@ async function pollCycleInner() {
15461
15464
  collectPanelessActivityProbes,
15462
15465
  getResponsivenessIntervalMs,
15463
15466
  occupancyQualificationClassifications
15464
- } = await import("../responsiveness-probe-ZJI5CCXE.js");
15467
+ } = await import("../responsiveness-probe-R6RPL2OK.js");
15465
15468
  const probeIntervalMs = getResponsivenessIntervalMs();
15466
15469
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
15467
15470
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -15578,7 +15581,7 @@ async function pollCycleInner() {
15578
15581
  collectResponsivenessProbes,
15579
15582
  livePendingInboundOldestAgeSeconds,
15580
15583
  parkPendingInbound
15581
- } = await import("../responsiveness-probe-ZJI5CCXE.js");
15584
+ } = await import("../responsiveness-probe-R6RPL2OK.js");
15582
15585
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
15583
15586
  const wedgeNow = /* @__PURE__ */ new Date();
15584
15587
  const liveAgents = agentState.persistentSessionAgents;
@@ -15734,7 +15737,7 @@ async function pollCycleInner() {
15734
15737
  }
15735
15738
  try {
15736
15739
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
15737
- const { probeSessionAuth } = await import("../session-auth-dead-J74JLVBX.js");
15740
+ const { probeSessionAuth } = await import("../session-auth-dead-EMKNS23O.js");
15738
15741
  const observations = [];
15739
15742
  const pendingCacheCommits = [];
15740
15743
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -19187,7 +19190,9 @@ async function ensurePersistentSession(agent, tasks, boardItems, refreshData) {
19187
19190
  sessionHealthyAfter: isSessionHealthy(codeName)
19188
19191
  };
19189
19192
  }
19190
- const exchange = await exchangeApiKey(apiKey, false, { forceRefresh: true });
19193
+ const exchange = await exchangeApiKey(apiKey, false, {
19194
+ maxAgeMs: AUTH_EXCHANGE_MAX_AGE_MS
19195
+ });
19191
19196
  claudeAuthMode = exchange.claudeAuthMode;
19192
19197
  anthropicApiKey = exchange.anthropicApiKey;
19193
19198
  anthropicApiKeyFingerprint = exchange.anthropicApiKeyFingerprint;
@@ -19934,7 +19939,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
19934
19939
  void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
19935
19940
  void (async () => {
19936
19941
  try {
19937
- const { collectDiagnostics } = await import("../persistent-session-MC3GPRAN.js");
19942
+ const { collectDiagnostics } = await import("../persistent-session-XBCAIURL.js");
19938
19943
  await api.post("/host/heartbeat", {
19939
19944
  host_id: hostId,
19940
19945
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -19980,7 +19985,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
19980
19985
  }
19981
19986
  try {
19982
19987
  const hostId = await getHostId();
19983
- const { collectDiagnostics } = await import("../persistent-session-MC3GPRAN.js");
19988
+ const { collectDiagnostics } = await import("../persistent-session-XBCAIURL.js");
19984
19989
  await api.post("/host/heartbeat", {
19985
19990
  host_id: hostId,
19986
19991
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -20616,7 +20621,7 @@ async function processClaudePairSessions(agents) {
20616
20621
  killPairSession,
20617
20622
  pairTmuxSession,
20618
20623
  finalizeClaudePairOnboarding
20619
- } = await import("../claude-pair-runtime-CMLVI5AF.js");
20624
+ } = await import("../claude-pair-runtime-CYO2Z5MK.js");
20620
20625
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
20621
20626
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
20622
20627
  const killed = await killPairSession(pairTmuxSession(pairId));