@integrity-labs/agt-cli 0.28.1143 → 0.28.1145

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.
Files changed (25) hide show
  1. package/dist/bin/agt.js +13 -11
  2. package/dist/bin/agt.js.map +1 -1
  3. package/dist/{chunk-ZJFS74H5.js → chunk-EZYLIFK2.js} +24 -22
  4. package/dist/{chunk-ZJFS74H5.js.map → chunk-EZYLIFK2.js.map} +1 -1
  5. package/dist/{chunk-JM47BARM.js → chunk-FQD4EIUF.js} +2 -233
  6. package/dist/chunk-FQD4EIUF.js.map +1 -0
  7. package/dist/{chunk-F4NFTLDH.js → chunk-IEZQK73G.js} +17 -15
  8. package/dist/{chunk-F4NFTLDH.js.map → chunk-IEZQK73G.js.map} +1 -1
  9. package/dist/chunk-XAZ4C444.js +238 -0
  10. package/dist/chunk-XAZ4C444.js.map +1 -0
  11. package/dist/{claude-code-updater-NEJCTT7S.js → claude-code-updater-HTDCRIMM.js} +99 -4
  12. package/dist/claude-code-updater-HTDCRIMM.js.map +1 -0
  13. package/dist/{claude-pair-runtime-A3OWKP3K.js → claude-pair-runtime-VEDZCIJR.js} +2 -2
  14. package/dist/lib/manager-worker.js +43 -37
  15. package/dist/lib/manager-worker.js.map +1 -1
  16. package/dist/{persistent-session-VNJDG3VN.js → persistent-session-JKD36BCM.js} +4 -3
  17. package/dist/{responsiveness-probe-ABQGETFV.js → responsiveness-probe-GGBDYMEW.js} +4 -3
  18. package/dist/{responsiveness-probe-ABQGETFV.js.map → responsiveness-probe-GGBDYMEW.js.map} +1 -1
  19. package/dist/{session-auth-dead-DVE6OGRT.js → session-auth-dead-7AG56OKQ.js} +3 -2
  20. package/dist/{session-auth-dead-DVE6OGRT.js.map → session-auth-dead-7AG56OKQ.js.map} +1 -1
  21. package/package.json +1 -1
  22. package/dist/chunk-JM47BARM.js.map +0 -1
  23. package/dist/claude-code-updater-NEJCTT7S.js.map +0 -1
  24. /package/dist/{claude-pair-runtime-A3OWKP3K.js.map → claude-pair-runtime-VEDZCIJR.js.map} +0 -0
  25. /package/dist/{persistent-session-VNJDG3VN.js.map → persistent-session-JKD36BCM.js.map} +0 -0
@@ -76,7 +76,7 @@ import {
76
76
  setConfigHash,
77
77
  shellGuard,
78
78
  tripClass
79
- } from "../chunk-F4NFTLDH.js";
79
+ } from "../chunk-IEZQK73G.js";
80
80
  import {
81
81
  getProjectDir as getProjectDir2,
82
82
  getReadyTasks,
@@ -163,7 +163,27 @@ import {
163
163
  webFetchBaselineValue,
164
164
  webFetchRestartNeeded,
165
165
  writeEgressAllowlist
166
- } from "../chunk-ZJFS74H5.js";
166
+ } from "../chunk-EZYLIFK2.js";
167
+ import {
168
+ isAgentIdle,
169
+ isStaleForToday,
170
+ minutesSinceLocalMidnight,
171
+ peekCurrentSession,
172
+ sessionTranscriptDir,
173
+ subagentActivityAgeSeconds,
174
+ transcriptActivityAgeSeconds
175
+ } from "../chunk-XAZ4C444.js";
176
+ import {
177
+ classifyUnanswerablePane,
178
+ focusedConfirmDialogBlock,
179
+ isParkedOnToolPermissionPrompt,
180
+ paneRemedy,
181
+ sendDialogKeys,
182
+ simpleTextHash
183
+ } from "../chunk-B6UYVEMD.js";
184
+ import {
185
+ reapOrphanChannelMcps
186
+ } from "../chunk-XWVM4KPK.js";
167
187
  import {
168
188
  ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
169
189
  AnchorSessionClient,
@@ -227,7 +247,6 @@ import {
227
247
  getFramework,
228
248
  getIntegration,
229
249
  identifierMemoryName,
230
- isAgentIdle,
231
250
  isAgentTimezoneOverrideExpired,
232
251
  isBareAck,
233
252
  isBucketInBracket,
@@ -243,12 +262,10 @@ import {
243
262
  isResolveError,
244
263
  isRespawnExemptEnvVar,
245
264
  isSelfCompletion,
246
- isStaleForToday,
247
265
  isSystemInjectedContent,
248
266
  isUnsetTimezone,
249
267
  isVacuousDeliverReason,
250
268
  laneTagFragment,
251
- minutesSinceLocalMidnight,
252
269
  normaliseSlackPeerAgentMode,
253
270
  normaliseSlackPeerGroupIds,
254
271
  pairToolCallBrackets,
@@ -257,7 +274,6 @@ import {
257
274
  parseTranscriptUsage,
258
275
  parseUsageBanner,
259
276
  parseUsageReport,
260
- peekCurrentSession,
261
277
  pickNewerClassification,
262
278
  redactPaneFrame,
263
279
  remoteMcpServerKey,
@@ -269,23 +285,9 @@ import {
269
285
  scrubPreservingIdentifiers,
270
286
  senderPolicyIsEnforcedOn,
271
287
  serializeAccountEnforcementMarker,
272
- sessionTranscriptDir,
273
288
  stabiliseResetInstant,
274
- subagentActivityAgeSeconds,
275
- sumTranscriptUsageInWindow,
276
- transcriptActivityAgeSeconds
277
- } from "../chunk-JM47BARM.js";
278
- import {
279
- classifyUnanswerablePane,
280
- focusedConfirmDialogBlock,
281
- isParkedOnToolPermissionPrompt,
282
- paneRemedy,
283
- sendDialogKeys,
284
- simpleTextHash
285
- } from "../chunk-B6UYVEMD.js";
286
- import {
287
- reapOrphanChannelMcps
288
- } from "../chunk-XWVM4KPK.js";
289
+ sumTranscriptUsageInWindow
290
+ } from "../chunk-FQD4EIUF.js";
289
291
  import {
290
292
  CLAUDE_CONFIG_DIR_ENV,
291
293
  claudeConfigDirFor,
@@ -14728,7 +14730,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
14728
14730
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
14729
14731
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
14730
14732
  async function channelInboundActivityAgeSecondsFor(codeName) {
14731
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-ABQGETFV.js");
14733
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-GGBDYMEW.js");
14732
14734
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
14733
14735
  if (newest === null) return null;
14734
14736
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -15486,7 +15488,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
15486
15488
  var lastVersionCheckAt = 0;
15487
15489
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
15488
15490
  var lastResponsivenessProbeAt = 0;
15489
- var agtCliVersion = true ? "0.28.1143" : "dev";
15491
+ var agtCliVersion = true ? "0.28.1145" : "dev";
15490
15492
  function resolveBrewPath(execFileSync3) {
15491
15493
  try {
15492
15494
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -17206,7 +17208,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
17206
17208
  if (codeNames.length === 0) return;
17207
17209
  void (async () => {
17208
17210
  try {
17209
- const { collectDiagnostics } = await import("../persistent-session-VNJDG3VN.js");
17211
+ const { collectDiagnostics } = await import("../persistent-session-JKD36BCM.js");
17210
17212
  await api.post("/host/heartbeat", {
17211
17213
  host_id: hostId,
17212
17214
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -17348,7 +17350,7 @@ async function pollCycleInner() {
17348
17350
  }
17349
17351
  try {
17350
17352
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
17351
- const { collectDiagnostics } = await import("../persistent-session-VNJDG3VN.js");
17353
+ const { collectDiagnostics } = await import("../persistent-session-JKD36BCM.js");
17352
17354
  const diagCodeNames = [...agentState.persistentSessionAgents];
17353
17355
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor) : void 0;
17354
17356
  let tailscaleHostname;
@@ -17548,8 +17550,12 @@ async function pollCycleInner() {
17548
17550
  setConfigHash(hbResp?.config_hash ?? null);
17549
17551
  try {
17550
17552
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
17551
- if (desiredClaudeCodeVersion && decideMaintenanceWindowGate({ window: cachedMaintenanceWindow, now: /* @__PURE__ */ new Date() }) === "proceed") {
17552
- const { maybeUpdateClaudeCode } = await import("../claude-code-updater-NEJCTT7S.js");
17553
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-HTDCRIMM.js");
17554
+ if (desiredClaudeCodeVersion && shouldRunClaudeCodeUpdater({
17555
+ desiredVersion: desiredClaudeCodeVersion,
17556
+ installedVersion: cachedFrameworkVersion,
17557
+ windowGate: decideMaintenanceWindowGate({ window: cachedMaintenanceWindow, now: /* @__PURE__ */ new Date() })
17558
+ })) {
17553
17559
  await maybeUpdateClaudeCode({
17554
17560
  desiredVersion: desiredClaudeCodeVersion,
17555
17561
  currentVersion: cachedFrameworkVersion,
@@ -17569,7 +17575,7 @@ async function pollCycleInner() {
17569
17575
  collectPanelessActivityProbes,
17570
17576
  getResponsivenessIntervalMs,
17571
17577
  occupancyQualificationClassifications
17572
- } = await import("../responsiveness-probe-ABQGETFV.js");
17578
+ } = await import("../responsiveness-probe-GGBDYMEW.js");
17573
17579
  const probeIntervalMs = getResponsivenessIntervalMs();
17574
17580
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
17575
17581
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -17686,7 +17692,7 @@ async function pollCycleInner() {
17686
17692
  collectResponsivenessProbes,
17687
17693
  livePendingInboundOldestAgeSeconds,
17688
17694
  parkPendingInbound
17689
- } = await import("../responsiveness-probe-ABQGETFV.js");
17695
+ } = await import("../responsiveness-probe-GGBDYMEW.js");
17690
17696
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
17691
17697
  const wedgeNow = /* @__PURE__ */ new Date();
17692
17698
  const liveAgents = agentState.persistentSessionAgents;
@@ -17972,7 +17978,7 @@ async function pollCycleInner() {
17972
17978
  }
17973
17979
  }
17974
17980
  );
17975
- const { parkPendingInbound } = await import("../responsiveness-probe-ABQGETFV.js");
17981
+ const { parkPendingInbound } = await import("../responsiveness-probe-GGBDYMEW.js");
17976
17982
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
17977
17983
  paneFatalStreak.delete(codeName);
17978
17984
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -18003,7 +18009,7 @@ async function pollCycleInner() {
18003
18009
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
18004
18010
  bindSourceEscalations
18005
18011
  } = await import("../transcript-mount-health-OHE6IVJV.js");
18006
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-VNJDG3VN.js");
18012
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-JKD36BCM.js");
18007
18013
  const mountConfig = resolveTranscriptMountConfig();
18008
18014
  const liveAgents = agentState.persistentSessionAgents;
18009
18015
  for (const tracked of [
@@ -18168,7 +18174,7 @@ async function pollCycleInner() {
18168
18174
  }
18169
18175
  try {
18170
18176
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
18171
- const { probeSessionAuth } = await import("../session-auth-dead-DVE6OGRT.js");
18177
+ const { probeSessionAuth } = await import("../session-auth-dead-7AG56OKQ.js");
18172
18178
  const observations = [];
18173
18179
  const pendingCacheCommits = [];
18174
18180
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -22766,7 +22772,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
22766
22772
  try {
22767
22773
  const freshId = rotateSessionForWedge(codeName);
22768
22774
  consecutiveWedgeCycles.delete(codeName);
22769
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-ABQGETFV.js");
22775
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-GGBDYMEW.js");
22770
22776
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
22771
22777
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
22772
22778
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -22809,7 +22815,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
22809
22815
  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}`));
22810
22816
  void (async () => {
22811
22817
  try {
22812
- const { collectDiagnostics } = await import("../persistent-session-VNJDG3VN.js");
22818
+ const { collectDiagnostics } = await import("../persistent-session-JKD36BCM.js");
22813
22819
  await api.post("/host/heartbeat", {
22814
22820
  host_id: hostId,
22815
22821
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -22860,7 +22866,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
22860
22866
  }
22861
22867
  try {
22862
22868
  const hostId = await getHostId();
22863
- const { collectDiagnostics } = await import("../persistent-session-VNJDG3VN.js");
22869
+ const { collectDiagnostics } = await import("../persistent-session-JKD36BCM.js");
22864
22870
  await api.post("/host/heartbeat", {
22865
22871
  host_id: hostId,
22866
22872
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -23533,7 +23539,7 @@ async function processClaudePairSessions(agents) {
23533
23539
  // cannot take it for itself — by the time it runs, the write it is looking
23534
23540
  // for may already have happened.
23535
23541
  snapshotPairConfig
23536
- } = await import("../claude-pair-runtime-A3OWKP3K.js");
23542
+ } = await import("../claude-pair-runtime-VEDZCIJR.js");
23537
23543
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
23538
23544
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
23539
23545
  const killed = await killPairSession(pairTmuxSession(pairId));