@integrity-labs/agt-cli 0.28.209 → 0.28.211

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-Z46SCCQM.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-56STIRFQ.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-UUTPSE2V.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-J2EPW7J2.js.map
@@ -36,7 +36,7 @@ import {
36
36
  requireHost,
37
37
  safeWriteJsonAtomic,
38
38
  setConfigHash
39
- } from "../chunk-Z62QHIR3.js";
39
+ } from "../chunk-Y4IVPWJB.js";
40
40
  import {
41
41
  getProjectDir as getProjectDir2,
42
42
  getReadyTasks,
@@ -99,6 +99,7 @@ import {
99
99
  parseUsageBanner,
100
100
  peekCurrentSession,
101
101
  prepareForRespawn,
102
+ readDirectChatSessionState,
102
103
  readPaneLogTail,
103
104
  reloadEgressSidecar,
104
105
  resetRestartCount,
@@ -120,7 +121,7 @@ import {
120
121
  takeZombieDetection,
121
122
  transcriptActivityAgeSeconds,
122
123
  writeEgressAllowlist
123
- } from "../chunk-WFCCBTA6.js";
124
+ } from "../chunk-ZV4PUS7E.js";
124
125
  import {
125
126
  reapOrphanChannelMcps
126
127
  } from "../chunk-XWVM4KPK.js";
@@ -5962,9 +5963,11 @@ async function runAgentConnectivityProbes(agent, integrations, projectDir) {
5962
5963
  async function runAgentSessionToolBindProbes(agent, integrations, projectDir) {
5963
5964
  if (integrations.length === 0) return;
5964
5965
  const intervalSec = Number(process.env.AGT_CONNECTIVITY_PROBE_INTERVAL_SECONDS) || 3600;
5965
- const sessionStartedMs = getSessionState(agent.code_name)?.startedAt ?? null;
5966
+ const sessionLoadedServerKeys = new Set(
5967
+ readDirectChatSessionState(agent.agent_id)?.mcpServerKeys ?? []
5968
+ );
5966
5969
  const result = await gatherSessionToolBindProbe(agent, integrations, projectDir, {
5967
- sessionStartedMs,
5970
+ sessionLoadedServerKeys,
5968
5971
  intervalMs: intervalSec * 1e3
5969
5972
  });
5970
5973
  if (result && result.reports.length > 0) {
@@ -6159,7 +6162,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
6159
6162
  var lastVersionCheckAt = 0;
6160
6163
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
6161
6164
  var lastResponsivenessProbeAt = 0;
6162
- var agtCliVersion = true ? "0.28.209" : "dev";
6165
+ var agtCliVersion = true ? "0.28.211" : "dev";
6163
6166
  function resolveBrewPath(execFileSync2) {
6164
6167
  try {
6165
6168
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -7068,7 +7071,7 @@ async function pollCycle() {
7068
7071
  }
7069
7072
  try {
7070
7073
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
7071
- const { collectDiagnostics } = await import("../persistent-session-Z46SCCQM.js");
7074
+ const { collectDiagnostics } = await import("../persistent-session-56STIRFQ.js");
7072
7075
  const diagCodeNames = [...agentState.persistentSessionAgents];
7073
7076
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
7074
7077
  let tailscaleHostname;
@@ -7216,7 +7219,7 @@ async function pollCycle() {
7216
7219
  const {
7217
7220
  collectResponsivenessProbes,
7218
7221
  getResponsivenessIntervalMs
7219
- } = await import("../responsiveness-probe-4MUX7FBH.js");
7222
+ } = await import("../responsiveness-probe-S74AWIEF.js");
7220
7223
  const probeIntervalMs = getResponsivenessIntervalMs();
7221
7224
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
7222
7225
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -7248,7 +7251,7 @@ async function pollCycle() {
7248
7251
  collectResponsivenessProbes,
7249
7252
  livePendingInboundOldestAgeSeconds,
7250
7253
  parkPendingInbound
7251
- } = await import("../responsiveness-probe-4MUX7FBH.js");
7254
+ } = await import("../responsiveness-probe-S74AWIEF.js");
7252
7255
  const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
7253
7256
  const wedgeNow = /* @__PURE__ */ new Date();
7254
7257
  const liveAgents = agentState.persistentSessionAgents;
@@ -8516,6 +8519,12 @@ async function processAgent(agent, agentStates) {
8516
8519
  // substitutes at MCP-launch. No literal in .mcp.json.
8517
8520
  AGT_API_KEY: "${AGT_API_KEY}",
8518
8521
  AGT_AGENT_ID: agent.agent_id,
8522
+ // ENG-7262: the direct-chat MCP downloads inbound attachments into the
8523
+ // agent's code-name dir (~/.augmented/<code_name>/direct-chat-inbound/)
8524
+ // so the agent's isolation-hook-sandboxed file tools can read them.
8525
+ // Pass the code name explicitly (matches slack/telegram); the MCP also
8526
+ // falls back to dirname(AGT_TURN_INITIATOR_FILE) if this is ever unset.
8527
+ AGT_AGENT_CODE_NAME: agent.code_name,
8519
8528
  // ENG-6587 (D16): per-turn initiator marker path. The direct-chat MCP
8520
8529
  // (writer) and the broker MCPs (readers) share no other state-dir env,
8521
8530
  // so we inject the SAME absolute path buildMcpJson gives the brokers:
@@ -10275,7 +10284,7 @@ async function processClaudePairSessions(agents) {
10275
10284
  killPairSession,
10276
10285
  pairTmuxSession,
10277
10286
  finalizeClaudePairOnboarding
10278
- } = await import("../claude-pair-runtime-UUTPSE2V.js");
10287
+ } = await import("../claude-pair-runtime-J2EPW7J2.js");
10279
10288
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
10280
10289
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
10281
10290
  const killed = await killPairSession(pairTmuxSession(pairId));