@integrity-labs/agt-cli 0.27.134 → 0.27.136

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-AH4WU2GE.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-5N5NFU27.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-YIHRE2VR.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-A5IITZ6J.js.map
@@ -17,7 +17,7 @@ import {
17
17
  provisionStopHook,
18
18
  requireHost,
19
19
  safeWriteJsonAtomic
20
- } from "../chunk-4Y7APKV7.js";
20
+ } from "../chunk-4B6KOQQL.js";
21
21
  import {
22
22
  getProjectDir as getProjectDir2,
23
23
  getReadyTasks,
@@ -56,7 +56,7 @@ import {
56
56
  stopPersistentSession,
57
57
  takeWatchdogGiveUpCount,
58
58
  takeZombieDetection
59
- } from "../chunk-2MXDQBEH.js";
59
+ } from "../chunk-75QM5THV.js";
60
60
  import {
61
61
  KANBAN_CHECK_COMMAND,
62
62
  SUPPRESS_SENTINEL,
@@ -83,7 +83,7 @@ import {
83
83
  resolveDmTarget,
84
84
  worseConnectivityOutcome,
85
85
  wrapScheduledTaskPrompt
86
- } from "../chunk-4I2QOVP5.js";
86
+ } from "../chunk-HDWKI7W3.js";
87
87
  import {
88
88
  parsePsRows,
89
89
  reapOrphanChannelMcps
@@ -3536,8 +3536,9 @@ async function processOne(flag, opts) {
3536
3536
  await sendError(flag, opts, `\`/restart\` is only supported for Claude Code agents (this agent runs on \`${framework}\`).`);
3537
3537
  return;
3538
3538
  }
3539
- opts.log(`[restart-handler] Restarting tmux session for '${flag.codeName}' (source: ${flag.source})`);
3540
- opts.stopSession(flag.codeName);
3539
+ const reasonSuffix = flag.source === "agent" && flag.reason ? ` reason="${flag.reason}"` : "";
3540
+ opts.log(`[restart-handler] Restarting tmux session for '${flag.codeName}' (source: ${flag.source})${reasonSuffix}`);
3541
+ opts.stopSession(flag.codeName, flag);
3541
3542
  await sendAck(flag, opts, `\u{1F504} Restart initiated for \`${flag.codeName}\` \u2014 the replacement session is being created.`);
3542
3543
  }
3543
3544
  async function sendAck(flag, opts, text) {
@@ -4690,7 +4691,7 @@ var cachedMaintenanceWindow = null;
4690
4691
  var lastVersionCheckAt = 0;
4691
4692
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
4692
4693
  var lastResponsivenessProbeAt = 0;
4693
- var agtCliVersion = true ? "0.27.134" : "dev";
4694
+ var agtCliVersion = true ? "0.27.136" : "dev";
4694
4695
  function resolveBrewPath(execFileSync4) {
4695
4696
  try {
4696
4697
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -5825,8 +5826,9 @@ async function pollCycle() {
5825
5826
  await processRestartFlags({
5826
5827
  log,
5827
5828
  resolveFramework: (codeName) => agentFrameworkCache.get(codeName) ?? null,
5828
- stopSession: (codeName) => {
5829
- stopPersistentSessionAndForgetMcpBaseline(codeName, "channel-restart-flag");
5829
+ stopSession: (codeName, flag) => {
5830
+ const breakerReason = flag.source === "agent" ? "agent-requested" : "channel-restart-flag";
5831
+ stopPersistentSessionAndForgetMcpBaseline(codeName, breakerReason);
5830
5832
  agentState.persistentSessionAgents.delete(codeName);
5831
5833
  claudeAuthTupleBySession.delete(codeName);
5832
5834
  },
@@ -5887,7 +5889,7 @@ async function pollCycle() {
5887
5889
  }
5888
5890
  try {
5889
5891
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
5890
- const { collectDiagnostics } = await import("../persistent-session-AH4WU2GE.js");
5892
+ const { collectDiagnostics } = await import("../persistent-session-5N5NFU27.js");
5891
5893
  const diagCodeNames = [...agentState.persistentSessionAgents];
5892
5894
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
5893
5895
  let tailscaleHostname;
@@ -5974,12 +5976,12 @@ async function pollCycle() {
5974
5976
  const {
5975
5977
  collectResponsivenessProbes,
5976
5978
  getResponsivenessIntervalMs
5977
- } = await import("../responsiveness-probe-WDXDQ5EZ.js");
5979
+ } = await import("../responsiveness-probe-6L6WKHK5.js");
5978
5980
  const probeIntervalMs = getResponsivenessIntervalMs();
5979
5981
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
5980
5982
  const probeCodeNames = [...agentState.persistentSessionAgents];
5981
5983
  if (probeCodeNames.length > 0) {
5982
- const { takeAcpxExecFailureCount, creditAcpxExecFailureCount } = await import("../persistent-session-AH4WU2GE.js");
5984
+ const { takeAcpxExecFailureCount, creditAcpxExecFailureCount } = await import("../persistent-session-5N5NFU27.js");
5983
5985
  const drainedGiveUps = /* @__PURE__ */ new Map();
5984
5986
  const drainedAcpxFailures = /* @__PURE__ */ new Map();
5985
5987
  const probes = collectResponsivenessProbes(probeCodeNames).map((p) => {
@@ -6013,7 +6015,7 @@ async function pollCycle() {
6013
6015
  collectResponsivenessProbes,
6014
6016
  livePendingInboundOldestAgeSeconds,
6015
6017
  deadLetterPendingInbound
6016
- } = await import("../responsiveness-probe-WDXDQ5EZ.js");
6018
+ } = await import("../responsiveness-probe-6L6WKHK5.js");
6017
6019
  const wedgeNow = /* @__PURE__ */ new Date();
6018
6020
  const liveAgents = agentState.persistentSessionAgents;
6019
6021
  for (const tracked of consecutiveWedgeCycles.keys()) {
@@ -10519,7 +10521,7 @@ async function processClaudePairSessions(agents) {
10519
10521
  killPairSession,
10520
10522
  pairTmuxSession,
10521
10523
  finalizeClaudePairOnboarding
10522
- } = await import("../claude-pair-runtime-YIHRE2VR.js");
10524
+ } = await import("../claude-pair-runtime-A5IITZ6J.js");
10523
10525
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
10524
10526
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
10525
10527
  const killed = await killPairSession(pairTmuxSession(pairId));