@integrity-labs/agt-cli 0.28.646 → 0.28.648

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 (23) hide show
  1. package/dist/bin/agt.js +5 -5
  2. package/dist/{chunk-NVIFY3WZ.js → chunk-7JQQG62Z.js} +4 -4
  3. package/dist/{chunk-PJSEFPIS.js → chunk-UTNGCJLO.js} +2 -2
  4. package/dist/{chunk-3ZK66WZZ.js → chunk-WP6LYCRS.js} +13 -1
  5. package/dist/{chunk-3ZK66WZZ.js.map → chunk-WP6LYCRS.js.map} +1 -1
  6. package/dist/{claude-pair-runtime-56Z3MRYQ.js → claude-pair-runtime-XTTGSEFA.js} +2 -2
  7. package/dist/lib/manager-worker.js +16 -13
  8. package/dist/lib/manager-worker.js.map +1 -1
  9. package/dist/mcp/direct-chat-channel.js +73 -5
  10. package/dist/mcp/index.js +12 -0
  11. package/dist/mcp/origami.js +12 -0
  12. package/dist/mcp/slack-channel.js +12 -0
  13. package/dist/mcp/telegram-channel.js +12 -0
  14. package/dist/{persistent-session-KMPIHBCE.js → persistent-session-TE6CKC5R.js} +3 -3
  15. package/dist/{responsiveness-probe-24SNN4ZH.js → responsiveness-probe-BQNVH63L.js} +3 -3
  16. package/dist/{session-auth-dead-EB2WYA52.js → session-auth-dead-SZXCIJ4S.js} +2 -2
  17. package/package.json +1 -1
  18. /package/dist/{chunk-NVIFY3WZ.js.map → chunk-7JQQG62Z.js.map} +0 -0
  19. /package/dist/{chunk-PJSEFPIS.js.map → chunk-UTNGCJLO.js.map} +0 -0
  20. /package/dist/{claude-pair-runtime-56Z3MRYQ.js.map → claude-pair-runtime-XTTGSEFA.js.map} +0 -0
  21. /package/dist/{persistent-session-KMPIHBCE.js.map → persistent-session-TE6CKC5R.js.map} +0 -0
  22. /package/dist/{responsiveness-probe-24SNN4ZH.js.map → responsiveness-probe-BQNVH63L.js.map} +0 -0
  23. /package/dist/{session-auth-dead-EB2WYA52.js.map → session-auth-dead-SZXCIJ4S.js.map} +0 -0
@@ -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-KMPIHBCE.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-TE6CKC5R.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-56Z3MRYQ.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-XTTGSEFA.js.map
@@ -55,7 +55,7 @@ import {
55
55
  safeWriteJsonAtomic,
56
56
  setConfigHash,
57
57
  tripClass
58
- } from "../chunk-NVIFY3WZ.js";
58
+ } from "../chunk-7JQQG62Z.js";
59
59
  import {
60
60
  getProjectDir as getProjectDir2,
61
61
  getReadyTasks,
@@ -111,7 +111,7 @@ import {
111
111
  takeZombieDetection,
112
112
  toOpencodeModel,
113
113
  writeEgressAllowlist
114
- } from "../chunk-PJSEFPIS.js";
114
+ } from "../chunk-UTNGCJLO.js";
115
115
  import {
116
116
  ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
117
117
  AnchorSessionClient,
@@ -192,7 +192,7 @@ import {
192
192
  subagentActivityAgeSeconds,
193
193
  sumTranscriptUsageInWindow,
194
194
  transcriptActivityAgeSeconds
195
- } from "../chunk-3ZK66WZZ.js";
195
+ } from "../chunk-WP6LYCRS.js";
196
196
  import {
197
197
  reapOrphanChannelMcps
198
198
  } from "../chunk-XWVM4KPK.js";
@@ -11607,7 +11607,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
11607
11607
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
11608
11608
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
11609
11609
  async function channelInboundActivityAgeSecondsFor(codeName) {
11610
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-24SNN4ZH.js");
11610
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-BQNVH63L.js");
11611
11611
  const newest = newestPendingInboundActivityMtimeMs(dirname10(paneLogPath(codeName)));
11612
11612
  if (newest === null) return null;
11613
11613
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -12250,7 +12250,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
12250
12250
  var lastVersionCheckAt = 0;
12251
12251
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
12252
12252
  var lastResponsivenessProbeAt = 0;
12253
- var agtCliVersion = true ? "0.28.646" : "dev";
12253
+ var agtCliVersion = true ? "0.28.648" : "dev";
12254
12254
  function resolveBrewPath(execFileSync3) {
12255
12255
  try {
12256
12256
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -12763,6 +12763,7 @@ var selfUpdatePinInvalidLogged = false;
12763
12763
  var restartAfterUpgrade = false;
12764
12764
  var pendingUpgradeVersion = null;
12765
12765
  var selfUpdateInFlight = false;
12766
+ var upgradeRestartInitiated = false;
12766
12767
  var cachedUpdateRequestedAt = null;
12767
12768
  var forcedUpdateDeferStreak = 0;
12768
12769
  var forcedUpdateRelaxAnnounced = false;
@@ -13557,7 +13558,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
13557
13558
  if (codeNames.length === 0) return;
13558
13559
  void (async () => {
13559
13560
  try {
13560
- const { collectDiagnostics } = await import("../persistent-session-KMPIHBCE.js");
13561
+ const { collectDiagnostics } = await import("../persistent-session-TE6CKC5R.js");
13561
13562
  await api.post("/host/heartbeat", {
13562
13563
  host_id: hostId,
13563
13564
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
@@ -13673,7 +13674,7 @@ async function pollCycleInner() {
13673
13674
  }
13674
13675
  try {
13675
13676
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
13676
- const { collectDiagnostics } = await import("../persistent-session-KMPIHBCE.js");
13677
+ const { collectDiagnostics } = await import("../persistent-session-TE6CKC5R.js");
13677
13678
  const diagCodeNames = [...agentState.persistentSessionAgents];
13678
13679
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor) : void 0;
13679
13680
  let tailscaleHostname;
@@ -13796,7 +13797,7 @@ async function pollCycleInner() {
13796
13797
  collectPanelessActivityProbes,
13797
13798
  getResponsivenessIntervalMs,
13798
13799
  occupancyQualificationClassifications
13799
- } = await import("../responsiveness-probe-24SNN4ZH.js");
13800
+ } = await import("../responsiveness-probe-BQNVH63L.js");
13800
13801
  const probeIntervalMs = getResponsivenessIntervalMs();
13801
13802
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
13802
13803
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -13906,7 +13907,7 @@ async function pollCycleInner() {
13906
13907
  collectResponsivenessProbes,
13907
13908
  livePendingInboundOldestAgeSeconds,
13908
13909
  parkPendingInbound
13909
- } = await import("../responsiveness-probe-24SNN4ZH.js");
13910
+ } = await import("../responsiveness-probe-BQNVH63L.js");
13910
13911
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
13911
13912
  const wedgeNow = /* @__PURE__ */ new Date();
13912
13913
  const liveAgents = agentState.persistentSessionAgents;
@@ -14062,7 +14063,7 @@ async function pollCycleInner() {
14062
14063
  }
14063
14064
  try {
14064
14065
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
14065
- const { probeSessionAuth } = await import("../session-auth-dead-EB2WYA52.js");
14066
+ const { probeSessionAuth } = await import("../session-auth-dead-SZXCIJ4S.js");
14066
14067
  const observations = [];
14067
14068
  const pendingCacheCommits = [];
14068
14069
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -17695,7 +17696,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
17695
17696
  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}`));
17696
17697
  void (async () => {
17697
17698
  try {
17698
- const { collectDiagnostics } = await import("../persistent-session-KMPIHBCE.js");
17699
+ const { collectDiagnostics } = await import("../persistent-session-TE6CKC5R.js");
17699
17700
  await api.post("/host/heartbeat", {
17700
17701
  host_id: hostId,
17701
17702
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
@@ -17746,7 +17747,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
17746
17747
  }
17747
17748
  try {
17748
17749
  const hostId = await getHostId();
17749
- const { collectDiagnostics } = await import("../persistent-session-KMPIHBCE.js");
17750
+ const { collectDiagnostics } = await import("../persistent-session-TE6CKC5R.js");
17750
17751
  await api.post("/host/heartbeat", {
17751
17752
  host_id: hostId,
17752
17753
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
@@ -18343,7 +18344,7 @@ async function processClaudePairSessions(agents) {
18343
18344
  killPairSession,
18344
18345
  pairTmuxSession,
18345
18346
  finalizeClaudePairOnboarding
18346
- } = await import("../claude-pair-runtime-56Z3MRYQ.js");
18347
+ } = await import("../claude-pair-runtime-XTTGSEFA.js");
18347
18348
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
18348
18349
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
18349
18350
  const killed = await killPairSession(pairTmuxSession(pairId));
@@ -18874,6 +18875,8 @@ async function reportSelfUpdateRestarts() {
18874
18875
  function scheduleNext() {
18875
18876
  if (!running || !config) return;
18876
18877
  const restartNow = () => {
18878
+ if (upgradeRestartInitiated) return;
18879
+ upgradeRestartInitiated = true;
18877
18880
  log(`[self-update] Restarting manager to load upgraded binary (${pendingUpgradeVersion ?? "unknown version"})`);
18878
18881
  void reportSelfUpdateRestarts().catch((err) => log(`[self-update] restart-event audit failed: ${err.message}`)).finally(() => {
18879
18882
  void stopPolling({ forcedExitCode: SUPERVISOR_RESTART_EXIT_CODE }).then(() => {