@integrity-labs/agt-cli 0.28.958 → 0.28.960

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.
@@ -164,7 +164,7 @@ async function spawnPairSession(session) {
164
164
  return { ok: true };
165
165
  } catch {
166
166
  }
167
- const { resolveClaudeBinary } = await import("./persistent-session-XQFDFRFU.js");
167
+ const { resolveClaudeBinary } = await import("./persistent-session-OD7M7K5C.js");
168
168
  const claudeBin = resolveClaudeBinary();
169
169
  const pairEnv = {
170
170
  ...process.env,
@@ -475,4 +475,4 @@ export {
475
475
  startClaudePair,
476
476
  submitClaudePairCode
477
477
  };
478
- //# sourceMappingURL=claude-pair-runtime-AZXRCFUM.js.map
478
+ //# sourceMappingURL=claude-pair-runtime-5Q2WNQVB.js.map
@@ -63,7 +63,7 @@ import {
63
63
  safeWriteJsonAtomic,
64
64
  setConfigHash,
65
65
  tripClass
66
- } from "../chunk-I6WRHEZ4.js";
66
+ } from "../chunk-3ICRKL3Y.js";
67
67
  import {
68
68
  getProjectDir as getProjectDir2,
69
69
  getReadyTasks,
@@ -82,6 +82,7 @@ import {
82
82
  collectChannelSpawnSecrets,
83
83
  creditWatchdogGiveUpCount,
84
84
  creditWatchdogUnclaimedDialogCount,
85
+ effectiveIsolationMode,
85
86
  egressMode,
86
87
  execFilePromiseLong,
87
88
  failoverRestartNotice,
@@ -118,9 +119,11 @@ import {
118
119
  reloadEgressSidecar,
119
120
  resetRestartCount,
120
121
  resolveClaudeBinary,
122
+ resolveContainerMemory,
121
123
  restartEgressSidecar,
122
124
  rotatePaneLogForDayRollover,
123
125
  rotateSessionForWedge,
126
+ seedContainerMemory,
124
127
  sessionBlockedOnPrompt,
125
128
  sessionHealthyAndUnblocked,
126
129
  sha256,
@@ -131,12 +134,13 @@ import {
131
134
  stopAllSessionsAndWait,
132
135
  stopOpencodeSession,
133
136
  stopPersistentSession,
137
+ syncContainerMemory,
134
138
  takeWatchdogGiveUpCount,
135
139
  takeWatchdogUnclaimedDialogCount,
136
140
  takeZombieDetection,
137
141
  toOpencodeModel,
138
142
  writeEgressAllowlist
139
- } from "../chunk-F47LQPDM.js";
143
+ } from "../chunk-SQGW4VAW.js";
140
144
  import {
141
145
  ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
142
146
  AnchorSessionClient,
@@ -232,7 +236,7 @@ import {
232
236
  subagentActivityAgeSeconds,
233
237
  sumTranscriptUsageInWindow,
234
238
  transcriptActivityAgeSeconds
235
- } from "../chunk-CCQ3WAVH.js";
239
+ } from "../chunk-GSRUWWT6.js";
236
240
  import "../chunk-DHWNVVX4.js";
237
241
  import {
238
242
  reapOrphanChannelMcps
@@ -13258,7 +13262,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
13258
13262
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
13259
13263
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
13260
13264
  async function channelInboundActivityAgeSecondsFor(codeName) {
13261
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-MR7OQHCT.js");
13265
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-73TIJ6ZV.js");
13262
13266
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
13263
13267
  if (newest === null) return null;
13264
13268
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -13943,7 +13947,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
13943
13947
  var lastVersionCheckAt = 0;
13944
13948
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
13945
13949
  var lastResponsivenessProbeAt = 0;
13946
- var agtCliVersion = true ? "0.28.958" : "dev";
13950
+ var agtCliVersion = true ? "0.28.960" : "dev";
13947
13951
  function resolveBrewPath(execFileSync2) {
13948
13952
  try {
13949
13953
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -15545,7 +15549,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
15545
15549
  if (codeNames.length === 0) return;
15546
15550
  void (async () => {
15547
15551
  try {
15548
- const { collectDiagnostics } = await import("../persistent-session-XQFDFRFU.js");
15552
+ const { collectDiagnostics } = await import("../persistent-session-OD7M7K5C.js");
15549
15553
  await api.post("/host/heartbeat", {
15550
15554
  host_id: hostId,
15551
15555
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -15687,7 +15691,7 @@ async function pollCycleInner() {
15687
15691
  }
15688
15692
  try {
15689
15693
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
15690
- const { collectDiagnostics } = await import("../persistent-session-XQFDFRFU.js");
15694
+ const { collectDiagnostics } = await import("../persistent-session-OD7M7K5C.js");
15691
15695
  const diagCodeNames = [...agentState.persistentSessionAgents];
15692
15696
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
15693
15697
  let tailscaleHostname;
@@ -15863,7 +15867,7 @@ async function pollCycleInner() {
15863
15867
  collectPanelessActivityProbes,
15864
15868
  getResponsivenessIntervalMs,
15865
15869
  occupancyQualificationClassifications
15866
- } = await import("../responsiveness-probe-MR7OQHCT.js");
15870
+ } = await import("../responsiveness-probe-73TIJ6ZV.js");
15867
15871
  const probeIntervalMs = getResponsivenessIntervalMs();
15868
15872
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
15869
15873
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -15980,7 +15984,7 @@ async function pollCycleInner() {
15980
15984
  collectResponsivenessProbes,
15981
15985
  livePendingInboundOldestAgeSeconds,
15982
15986
  parkPendingInbound
15983
- } = await import("../responsiveness-probe-MR7OQHCT.js");
15987
+ } = await import("../responsiveness-probe-73TIJ6ZV.js");
15984
15988
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
15985
15989
  const wedgeNow = /* @__PURE__ */ new Date();
15986
15990
  const liveAgents = agentState.persistentSessionAgents;
@@ -16136,7 +16140,7 @@ async function pollCycleInner() {
16136
16140
  }
16137
16141
  try {
16138
16142
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
16139
- const { probeSessionAuth } = await import("../session-auth-dead-NMOCOHGG.js");
16143
+ const { probeSessionAuth } = await import("../session-auth-dead-FGWPJVFS.js");
16140
16144
  const observations = [];
16141
16145
  const pendingCacheCommits = [];
16142
16146
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -19940,6 +19944,7 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash20("sha256")
19940
19944
  modelPolicy
19941
19945
  );
19942
19946
  egressAllowlistBySession.set(codeName, egressAllowlist);
19947
+ const spawnAgentClass = refreshData.agent?.["agent_class"];
19943
19948
  let perAgentApiKey = null;
19944
19949
  try {
19945
19950
  perAgentApiKey = await resolvePerAgentApiKey({
@@ -19983,6 +19988,7 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash20("sha256")
19983
19988
  claudeAuthMode,
19984
19989
  anthropicApiKey,
19985
19990
  primaryModel: spawnPrimaryModel,
19991
+ agentClass: spawnAgentClass,
19986
19992
  // ENG-7152: when set, the launcher points Claude Code at OpenRouter's
19987
19993
  // native Anthropic endpoint for this agent (supersedes claudeAuthMode).
19988
19994
  openRouter: openRouterForAgent ? {
@@ -20046,6 +20052,9 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash20("sha256")
20046
20052
  claudeAuthTupleBySession.set(codeName, currentAuthTuple);
20047
20053
  recordSessionPolicyBaseline(codeName, currentPolicyModel, currentPolicyId);
20048
20054
  seedSessionLaunchBaselines(codeName, projectDir);
20055
+ if (effectiveIsolationMode(codeName) === "docker") {
20056
+ seedContainerMemory(codeName, resolveContainerMemory(spawnAgentClass));
20057
+ }
20049
20058
  return {
20050
20059
  decision: "spawn",
20051
20060
  spawnAttempted: true,
@@ -20082,6 +20091,13 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash20("sha256")
20082
20091
  }
20083
20092
  }
20084
20093
  }
20094
+ if (effectiveIsolationMode(codeName) === "docker") {
20095
+ syncContainerMemory(
20096
+ codeName,
20097
+ refreshData.agent?.["agent_class"],
20098
+ log
20099
+ );
20100
+ }
20085
20101
  if (!claudeAuthTupleBySession.has(codeName)) {
20086
20102
  claudeAuthTupleBySession.set(codeName, currentAuthTuple);
20087
20103
  recordSessionPolicyBaseline(codeName, currentPolicyModel, currentPolicyId);
@@ -20400,7 +20416,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
20400
20416
  try {
20401
20417
  const freshId = rotateSessionForWedge(codeName);
20402
20418
  consecutiveWedgeCycles.delete(codeName);
20403
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-MR7OQHCT.js");
20419
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-73TIJ6ZV.js");
20404
20420
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
20405
20421
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
20406
20422
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -20443,7 +20459,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
20443
20459
  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}`));
20444
20460
  void (async () => {
20445
20461
  try {
20446
- const { collectDiagnostics } = await import("../persistent-session-XQFDFRFU.js");
20462
+ const { collectDiagnostics } = await import("../persistent-session-OD7M7K5C.js");
20447
20463
  await api.post("/host/heartbeat", {
20448
20464
  host_id: hostId,
20449
20465
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -20494,7 +20510,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
20494
20510
  }
20495
20511
  try {
20496
20512
  const hostId = await getHostId();
20497
- const { collectDiagnostics } = await import("../persistent-session-XQFDFRFU.js");
20513
+ const { collectDiagnostics } = await import("../persistent-session-OD7M7K5C.js");
20498
20514
  await api.post("/host/heartbeat", {
20499
20515
  host_id: hostId,
20500
20516
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -21136,7 +21152,7 @@ async function processClaudePairSessions(agents) {
21136
21152
  killPairSession,
21137
21153
  pairTmuxSession,
21138
21154
  finalizeClaudePairOnboarding
21139
- } = await import("../claude-pair-runtime-AZXRCFUM.js");
21155
+ } = await import("../claude-pair-runtime-5Q2WNQVB.js");
21140
21156
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
21141
21157
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
21142
21158
  const killed = await killPairSession(pairTmuxSession(pairId));