@integrity-labs/agt-cli 0.28.1154 → 0.28.1155

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 +6 -6
  2. package/dist/{chunk-E5BVBODT.js → chunk-CXEP3UC7.js} +2 -2
  3. package/dist/{chunk-PQ6K7IGT.js → chunk-D55RMQTG.js} +6 -4
  4. package/dist/chunk-D55RMQTG.js.map +1 -0
  5. package/dist/{chunk-OGEAF6HE.js → chunk-N2ZAN2JP.js} +3 -3
  6. package/dist/{chunk-PIK27GUV.js → chunk-TXJXC7TV.js} +5 -5
  7. package/dist/{chunk-PG343LR6.js → chunk-VSC7DI3S.js} +2 -2
  8. package/dist/{claude-code-updater-BQ7OJMUH.js → claude-code-updater-RBKT47SQ.js} +3 -3
  9. package/dist/{claude-pair-runtime-OKT66D2H.js → claude-pair-runtime-2WJPTE2V.js} +3 -3
  10. package/dist/lib/manager-worker.js +21 -20
  11. package/dist/lib/manager-worker.js.map +1 -1
  12. package/dist/{persistent-session-JRNQ3OMQ.js → persistent-session-JD2OMZ6L.js} +4 -4
  13. package/dist/{responsiveness-probe-KQSVBU2O.js → responsiveness-probe-ZQ24WG5P.js} +4 -4
  14. package/dist/{session-auth-dead-MSTRS7FK.js → session-auth-dead-AR7G7XZZ.js} +3 -3
  15. package/package.json +1 -1
  16. package/dist/chunk-PQ6K7IGT.js.map +0 -1
  17. /package/dist/{chunk-E5BVBODT.js.map → chunk-CXEP3UC7.js.map} +0 -0
  18. /package/dist/{chunk-OGEAF6HE.js.map → chunk-N2ZAN2JP.js.map} +0 -0
  19. /package/dist/{chunk-PIK27GUV.js.map → chunk-TXJXC7TV.js.map} +0 -0
  20. /package/dist/{chunk-PG343LR6.js.map → chunk-VSC7DI3S.js.map} +0 -0
  21. /package/dist/{claude-code-updater-BQ7OJMUH.js.map → claude-code-updater-RBKT47SQ.js.map} +0 -0
  22. /package/dist/{claude-pair-runtime-OKT66D2H.js.map → claude-pair-runtime-2WJPTE2V.js.map} +0 -0
  23. /package/dist/{persistent-session-JRNQ3OMQ.js.map → persistent-session-JD2OMZ6L.js.map} +0 -0
  24. /package/dist/{responsiveness-probe-KQSVBU2O.js.map → responsiveness-probe-ZQ24WG5P.js.map} +0 -0
  25. /package/dist/{session-auth-dead-MSTRS7FK.js.map → session-auth-dead-AR7G7XZZ.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-E5BVBODT.js";
7
+ } from "./chunk-CXEP3UC7.js";
8
8
  import {
9
9
  classifyUnanswerablePane,
10
10
  findUsageLimitResetHint,
@@ -53,7 +53,7 @@ import {
53
53
  remoteMcpConnectionEnvInfix,
54
54
  remoteMcpConnectionLabel,
55
55
  remoteMcpConnectionScopedEnvVar
56
- } from "./chunk-PQ6K7IGT.js";
56
+ } from "./chunk-D55RMQTG.js";
57
57
  import {
58
58
  __require
59
59
  } from "./chunk-DGUM43GV.js";
@@ -6116,4 +6116,4 @@ export {
6116
6116
  stopAllSessionsAndWait,
6117
6117
  getProjectDir
6118
6118
  };
6119
- //# sourceMappingURL=chunk-OGEAF6HE.js.map
6119
+ //# sourceMappingURL=chunk-N2ZAN2JP.js.map
@@ -16,11 +16,11 @@ import {
16
16
  parseEnvFileEntries,
17
17
  parseEnvIntegrations,
18
18
  shellQuote
19
- } from "./chunk-OGEAF6HE.js";
19
+ } from "./chunk-N2ZAN2JP.js";
20
20
  import {
21
21
  readDailySessionPin,
22
22
  sessionTranscriptDir
23
- } from "./chunk-E5BVBODT.js";
23
+ } from "./chunk-CXEP3UC7.js";
24
24
  import {
25
25
  classifyUnanswerablePane,
26
26
  isConsumerTermsDialogVisible,
@@ -95,7 +95,7 @@ import {
95
95
  scanConfigForLiteralSecrets,
96
96
  worseConnectivityOutcome,
97
97
  wrapScheduledTaskPrompt
98
- } from "./chunk-PQ6K7IGT.js";
98
+ } from "./chunk-D55RMQTG.js";
99
99
 
100
100
  // ../../packages/core/dist/provisioning/mcp-config-guards.js
101
101
  import { chmodSync, existsSync, readFileSync, renameSync, writeFileSync, unlinkSync } from "fs";
@@ -8078,7 +8078,7 @@ function exchangeFailureKind(err) {
8078
8078
  }
8079
8079
 
8080
8080
  // src/lib/api-client.ts
8081
- var agtCliVersion = true ? "0.28.1154" : "dev";
8081
+ var agtCliVersion = true ? "0.28.1155" : "dev";
8082
8082
  var lastConfigHash = null;
8083
8083
  function setConfigHash(hash) {
8084
8084
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -13235,4 +13235,4 @@ export {
13235
13235
  managerInstallSystemUnitCommand,
13236
13236
  managerUninstallSystemUnitCommand
13237
13237
  };
13238
- //# sourceMappingURL=chunk-PIK27GUV.js.map
13238
+ //# sourceMappingURL=chunk-TXJXC7TV.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-EL5MWGGH.js";
8
8
  import {
9
9
  FORCED_UPDATE_HARD_DEADLINE_MS
10
- } from "./chunk-PQ6K7IGT.js";
10
+ } from "./chunk-D55RMQTG.js";
11
11
 
12
12
  // src/lib/claude-code-updater.ts
13
13
  import { execFile, execFileSync as execFileSync2 } from "child_process";
@@ -715,4 +715,4 @@ export {
715
715
  probeClaudeInstalls,
716
716
  maybeUpdateClaudeCode
717
717
  };
718
- //# sourceMappingURL=chunk-PG343LR6.js.map
718
+ //# sourceMappingURL=chunk-VSC7DI3S.js.map
@@ -12,10 +12,10 @@ import {
12
12
  probeClaudeInstalls,
13
13
  readsAsNativeInstall,
14
14
  shouldRunClaudeCodeUpdater
15
- } from "./chunk-PG343LR6.js";
15
+ } from "./chunk-VSC7DI3S.js";
16
16
  import "./chunk-XWVM4KPK.js";
17
17
  import "./chunk-EL5MWGGH.js";
18
- import "./chunk-PQ6K7IGT.js";
18
+ import "./chunk-D55RMQTG.js";
19
19
  import "./chunk-DGUM43GV.js";
20
20
  export {
21
21
  CLAUDE_CODE_SECURITY_FLOOR,
@@ -32,4 +32,4 @@ export {
32
32
  readsAsNativeInstall,
33
33
  shouldRunClaudeCodeUpdater
34
34
  };
35
- //# sourceMappingURL=claude-code-updater-BQ7OJMUH.js.map
35
+ //# sourceMappingURL=claude-code-updater-RBKT47SQ.js.map
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  redactPaneFrame,
17
17
  sanitizeTerminalFrame
18
- } from "./chunk-PQ6K7IGT.js";
18
+ } from "./chunk-D55RMQTG.js";
19
19
  import "./chunk-DGUM43GV.js";
20
20
 
21
21
  // src/lib/claude-pair-runtime.ts
@@ -295,7 +295,7 @@ async function spawnPairSession(session) {
295
295
  return { ok: true };
296
296
  } catch {
297
297
  }
298
- const { resolveClaudeBinary } = await import("./persistent-session-JRNQ3OMQ.js");
298
+ const { resolveClaudeBinary } = await import("./persistent-session-JD2OMZ6L.js");
299
299
  const claudeBin = resolveClaudeBinary();
300
300
  const pairEnv = {
301
301
  ...process.env,
@@ -802,4 +802,4 @@ export {
802
802
  startClaudePair,
803
803
  submitClaudePairCode
804
804
  };
805
- //# sourceMappingURL=claude-pair-runtime-OKT66D2H.js.map
805
+ //# sourceMappingURL=claude-pair-runtime-2WJPTE2V.js.map
@@ -77,7 +77,7 @@ import {
77
77
  setConfigHash,
78
78
  shellGuard,
79
79
  tripClass
80
- } from "../chunk-PIK27GUV.js";
80
+ } from "../chunk-TXJXC7TV.js";
81
81
  import {
82
82
  CLAUDE_CODE_SECURITY_FLOOR,
83
83
  SELF_UPDATE_TIMEOUTS,
@@ -90,7 +90,7 @@ import {
90
90
  runSafeCleanup,
91
91
  tightestDiskStat,
92
92
  withPackageCacheLock
93
- } from "../chunk-PG343LR6.js";
93
+ } from "../chunk-VSC7DI3S.js";
94
94
  import {
95
95
  getProjectDir as getProjectDir2,
96
96
  getReadyTasks,
@@ -177,7 +177,7 @@ import {
177
177
  webFetchBaselineValue,
178
178
  webFetchRestartNeeded,
179
179
  writeEgressAllowlist
180
- } from "../chunk-OGEAF6HE.js";
180
+ } from "../chunk-N2ZAN2JP.js";
181
181
  import {
182
182
  isAgentIdle,
183
183
  isStaleForToday,
@@ -186,7 +186,7 @@ import {
186
186
  sessionTranscriptDir,
187
187
  subagentActivityAgeSeconds,
188
188
  transcriptActivityAgeSeconds
189
- } from "../chunk-E5BVBODT.js";
189
+ } from "../chunk-CXEP3UC7.js";
190
190
  import {
191
191
  classifyUnanswerablePane,
192
192
  focusedConfirmDialogBlock,
@@ -228,6 +228,7 @@ import {
228
228
  INTEGRATIONS_SECTION_START,
229
229
  KANBAN_CHECK_COMMAND,
230
230
  KANBAN_NUDGE_ACTIONABLE_STATUSES,
231
+ MANAGER_LIVENESS_HEARTBEAT_INTERVAL_MS,
231
232
  MAX_AVATAR_ENV_URL_BYTES,
232
233
  NO_FAILING_TURN_RUN,
233
234
  SCHEDULED_TURN_MARKER_FILENAME,
@@ -309,7 +310,7 @@ import {
309
310
  serializeAccountEnforcementMarker,
310
311
  stabiliseResetInstant,
311
312
  sumTranscriptUsageInWindow
312
- } from "../chunk-PQ6K7IGT.js";
313
+ } from "../chunk-D55RMQTG.js";
313
314
  import "../chunk-DGUM43GV.js";
314
315
 
315
316
  // src/lib/manager-worker.ts
@@ -14109,7 +14110,7 @@ var running = false;
14109
14110
  var pollTimer = null;
14110
14111
  var livenessTimer = null;
14111
14112
  var livenessInFlight = false;
14112
- var LIVENESS_HEARTBEAT_INTERVAL_MS = 3e4;
14113
+ var LIVENESS_HEARTBEAT_INTERVAL_MS = MANAGER_LIVENESS_HEARTBEAT_INTERVAL_MS;
14113
14114
  var PANE_TAIL_PREVIEW_LINES = 5;
14114
14115
  function extractCharterTelegramPeers(rawContent, gateContext) {
14115
14116
  if (!rawContent || rawContent.length === 0) return [];
@@ -15013,7 +15014,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15013
15014
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15014
15015
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15015
15016
  async function channelInboundActivityAgeSecondsFor(codeName) {
15016
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-KQSVBU2O.js");
15017
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-ZQ24WG5P.js");
15017
15018
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15018
15019
  if (newest === null) return null;
15019
15020
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -15805,7 +15806,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
15805
15806
  var lastVersionCheckAt = 0;
15806
15807
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
15807
15808
  var lastResponsivenessProbeAt = 0;
15808
- var agtCliVersion = true ? "0.28.1154" : "dev";
15809
+ var agtCliVersion = true ? "0.28.1155" : "dev";
15809
15810
  function resolveBrewPath(execFileSync3) {
15810
15811
  try {
15811
15812
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -17602,7 +17603,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
17602
17603
  if (codeNames.length === 0) return;
17603
17604
  void (async () => {
17604
17605
  try {
17605
- const { collectDiagnostics } = await import("../persistent-session-JRNQ3OMQ.js");
17606
+ const { collectDiagnostics } = await import("../persistent-session-JD2OMZ6L.js");
17606
17607
  await api.post("/host/heartbeat", {
17607
17608
  host_id: hostId,
17608
17609
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -17745,7 +17746,7 @@ async function pollCycleInner() {
17745
17746
  }
17746
17747
  try {
17747
17748
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
17748
- const { collectDiagnostics } = await import("../persistent-session-JRNQ3OMQ.js");
17749
+ const { collectDiagnostics } = await import("../persistent-session-JD2OMZ6L.js");
17749
17750
  const diagCodeNames = [...agentState.persistentSessionAgents];
17750
17751
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor) : void 0;
17751
17752
  let tailscaleHostname;
@@ -17945,7 +17946,7 @@ async function pollCycleInner() {
17945
17946
  setConfigHash(hbResp?.config_hash ?? null);
17946
17947
  try {
17947
17948
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
17948
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-BQ7OJMUH.js");
17949
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-RBKT47SQ.js");
17949
17950
  claudeUpdaterInFlight = true;
17950
17951
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
17951
17952
  log(
@@ -17977,7 +17978,7 @@ async function pollCycleInner() {
17977
17978
  collectPanelessActivityProbes,
17978
17979
  getResponsivenessIntervalMs,
17979
17980
  occupancyQualificationClassifications
17980
- } = await import("../responsiveness-probe-KQSVBU2O.js");
17981
+ } = await import("../responsiveness-probe-ZQ24WG5P.js");
17981
17982
  const probeIntervalMs = getResponsivenessIntervalMs();
17982
17983
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
17983
17984
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -18094,7 +18095,7 @@ async function pollCycleInner() {
18094
18095
  collectResponsivenessProbes,
18095
18096
  livePendingInboundOldestAgeSeconds,
18096
18097
  parkPendingInbound
18097
- } = await import("../responsiveness-probe-KQSVBU2O.js");
18098
+ } = await import("../responsiveness-probe-ZQ24WG5P.js");
18098
18099
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
18099
18100
  const wedgeNow = /* @__PURE__ */ new Date();
18100
18101
  const liveAgents = agentState.persistentSessionAgents;
@@ -18380,7 +18381,7 @@ async function pollCycleInner() {
18380
18381
  }
18381
18382
  }
18382
18383
  );
18383
- const { parkPendingInbound } = await import("../responsiveness-probe-KQSVBU2O.js");
18384
+ const { parkPendingInbound } = await import("../responsiveness-probe-ZQ24WG5P.js");
18384
18385
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
18385
18386
  paneFatalStreak.delete(codeName);
18386
18387
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -18411,7 +18412,7 @@ async function pollCycleInner() {
18411
18412
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
18412
18413
  bindSourceEscalations
18413
18414
  } = await import("../transcript-mount-health-OHE6IVJV.js");
18414
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-JRNQ3OMQ.js");
18415
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-JD2OMZ6L.js");
18415
18416
  const mountConfig = resolveTranscriptMountConfig();
18416
18417
  const liveAgents = agentState.persistentSessionAgents;
18417
18418
  for (const tracked of [
@@ -18576,7 +18577,7 @@ async function pollCycleInner() {
18576
18577
  }
18577
18578
  try {
18578
18579
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
18579
- const { probeSessionAuth } = await import("../session-auth-dead-MSTRS7FK.js");
18580
+ const { probeSessionAuth } = await import("../session-auth-dead-AR7G7XZZ.js");
18580
18581
  const observations = [];
18581
18582
  const pendingCacheCommits = [];
18582
18583
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -23231,7 +23232,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
23231
23232
  try {
23232
23233
  const freshId = rotateSessionForWedge(codeName);
23233
23234
  consecutiveWedgeCycles.delete(codeName);
23234
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-KQSVBU2O.js");
23235
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-ZQ24WG5P.js");
23235
23236
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
23236
23237
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
23237
23238
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -23274,7 +23275,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
23274
23275
  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}`));
23275
23276
  void (async () => {
23276
23277
  try {
23277
- const { collectDiagnostics } = await import("../persistent-session-JRNQ3OMQ.js");
23278
+ const { collectDiagnostics } = await import("../persistent-session-JD2OMZ6L.js");
23278
23279
  await api.post("/host/heartbeat", {
23279
23280
  host_id: hostId,
23280
23281
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -23325,7 +23326,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
23325
23326
  }
23326
23327
  try {
23327
23328
  const hostId = await getHostId();
23328
- const { collectDiagnostics } = await import("../persistent-session-JRNQ3OMQ.js");
23329
+ const { collectDiagnostics } = await import("../persistent-session-JD2OMZ6L.js");
23329
23330
  await api.post("/host/heartbeat", {
23330
23331
  host_id: hostId,
23331
23332
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -24018,7 +24019,7 @@ async function processClaudePairSessions(agents) {
24018
24019
  snapshotPairConfig,
24019
24020
  // ENG-11659: result -> report body + the manager.log line that records it.
24020
24021
  planPairStartReport
24021
- } = await import("../claude-pair-runtime-OKT66D2H.js");
24022
+ } = await import("../claude-pair-runtime-2WJPTE2V.js");
24022
24023
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
24023
24024
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
24024
24025
  const killed = await killPairSession(pairTmuxSession(pairId));