@integrity-labs/agt-cli 0.28.212 → 0.28.214

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-56STIRFQ.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-ORUB5EN3.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-J2EPW7J2.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-I56B5ONN.js.map
@@ -36,7 +36,7 @@ import {
36
36
  requireHost,
37
37
  safeWriteJsonAtomic,
38
38
  setConfigHash
39
- } from "../chunk-PJCSU3OI.js";
39
+ } from "../chunk-F6UP2BTL.js";
40
40
  import {
41
41
  getProjectDir as getProjectDir2,
42
42
  getReadyTasks,
@@ -121,7 +121,7 @@ import {
121
121
  takeZombieDetection,
122
122
  transcriptActivityAgeSeconds,
123
123
  writeEgressAllowlist
124
- } from "../chunk-ZV4PUS7E.js";
124
+ } from "../chunk-HMYD3ZSI.js";
125
125
  import {
126
126
  reapOrphanChannelMcps
127
127
  } from "../chunk-XWVM4KPK.js";
@@ -6163,7 +6163,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
6163
6163
  var lastVersionCheckAt = 0;
6164
6164
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
6165
6165
  var lastResponsivenessProbeAt = 0;
6166
- var agtCliVersion = true ? "0.28.212" : "dev";
6166
+ var agtCliVersion = true ? "0.28.214" : "dev";
6167
6167
  function resolveBrewPath(execFileSync2) {
6168
6168
  try {
6169
6169
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -7072,7 +7072,7 @@ async function pollCycle() {
7072
7072
  }
7073
7073
  try {
7074
7074
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
7075
- const { collectDiagnostics } = await import("../persistent-session-56STIRFQ.js");
7075
+ const { collectDiagnostics } = await import("../persistent-session-ORUB5EN3.js");
7076
7076
  const diagCodeNames = [...agentState.persistentSessionAgents];
7077
7077
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
7078
7078
  let tailscaleHostname;
@@ -7220,7 +7220,7 @@ async function pollCycle() {
7220
7220
  const {
7221
7221
  collectResponsivenessProbes,
7222
7222
  getResponsivenessIntervalMs
7223
- } = await import("../responsiveness-probe-S74AWIEF.js");
7223
+ } = await import("../responsiveness-probe-GM66ELIO.js");
7224
7224
  const probeIntervalMs = getResponsivenessIntervalMs();
7225
7225
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
7226
7226
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -7252,7 +7252,7 @@ async function pollCycle() {
7252
7252
  collectResponsivenessProbes,
7253
7253
  livePendingInboundOldestAgeSeconds,
7254
7254
  parkPendingInbound
7255
- } = await import("../responsiveness-probe-S74AWIEF.js");
7255
+ } = await import("../responsiveness-probe-GM66ELIO.js");
7256
7256
  const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
7257
7257
  const wedgeNow = /* @__PURE__ */ new Date();
7258
7258
  const liveAgents = agentState.persistentSessionAgents;
@@ -10285,7 +10285,7 @@ async function processClaudePairSessions(agents) {
10285
10285
  killPairSession,
10286
10286
  pairTmuxSession,
10287
10287
  finalizeClaudePairOnboarding
10288
- } = await import("../claude-pair-runtime-J2EPW7J2.js");
10288
+ } = await import("../claude-pair-runtime-I56B5ONN.js");
10289
10289
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
10290
10290
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
10291
10291
  const killed = await killPairSession(pairTmuxSession(pairId));
@@ -14302,11 +14302,29 @@ function readLockHolder(path) {
14302
14302
 
14303
14303
  // src/direct-chat-channel.ts
14304
14304
  import { homedir as homedir2 } from "os";
14305
- import { dirname as dirname2, join as join4 } from "path";
14305
+ import { join as join5 } from "path";
14306
14306
  import { watch, mkdirSync as mkdirSync3, writeFileSync as writeFileSync3 } from "fs";
14307
14307
 
14308
14308
  // src/direct-chat-inbound-attachments.ts
14309
+ import { dirname as dirname2, join as join3 } from "path";
14309
14310
  var MAX_INBOUND_ATTACHMENT_BYTES = 10 * 1024 * 1024;
14311
+ var INBOUND_ATTACHMENTS_SUBDIR = "direct-chat-inbound";
14312
+ function resolveInboundAttachmentsDir(input) {
14313
+ const { codeName, turnInitiatorFile, agentId, homeDir } = input;
14314
+ const codeNameTrimmed = typeof codeName === "string" ? codeName.trim() : "";
14315
+ if (codeNameTrimmed) {
14316
+ return join3(homeDir, ".augmented", codeNameTrimmed, INBOUND_ATTACHMENTS_SUBDIR);
14317
+ }
14318
+ const initiator = typeof turnInitiatorFile === "string" ? turnInitiatorFile.trim() : "";
14319
+ if (initiator) {
14320
+ return join3(dirname2(initiator), INBOUND_ATTACHMENTS_SUBDIR);
14321
+ }
14322
+ const agentIdTrimmed = typeof agentId === "string" ? agentId.trim() : "";
14323
+ if (agentIdTrimmed) {
14324
+ return join3(homeDir, ".augmented", agentIdTrimmed, INBOUND_ATTACHMENTS_SUBDIR);
14325
+ }
14326
+ return null;
14327
+ }
14310
14328
  function isImageContentType(contentType) {
14311
14329
  return typeof contentType === "string" && contentType.toLowerCase().startsWith("image/");
14312
14330
  }
@@ -14403,9 +14421,9 @@ async function downloadInboundAttachments(attachments, dir, deps) {
14403
14421
  // src/flags-cache-read.ts
14404
14422
  import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
14405
14423
  import { homedir } from "os";
14406
- import { join as join3 } from "path";
14424
+ import { join as join4 } from "path";
14407
14425
  function defaultFlagsCachePath() {
14408
- return join3(homedir(), ".augmented", "flags-cache.json");
14426
+ return join4(homedir(), ".augmented", "flags-cache.json");
14409
14427
  }
14410
14428
  function envBoolean(raw) {
14411
14429
  if (raw === void 0) return void 0;
@@ -14510,15 +14528,13 @@ var DIRECT_CHAT_MAINTENANCE_COOLDOWN_MS = (() => {
14510
14528
  var AGT_HOST = process.env.AGT_HOST;
14511
14529
  var AGT_API_KEY = process.env.AGT_API_KEY;
14512
14530
  var AGT_AGENT_ID = process.env.AGT_AGENT_ID;
14513
- var DIRECT_CHAT_AGENT_DIR = AGT_AGENT_ID ? join4(homedir2(), ".augmented", AGT_AGENT_ID) : null;
14514
- var CODE_NAME_AGENT_DIR = (() => {
14515
- const codeName = process.env.AGT_AGENT_CODE_NAME;
14516
- if (codeName) return join4(homedir2(), ".augmented", codeName);
14517
- const initiatorFile = process.env.AGT_TURN_INITIATOR_FILE;
14518
- if (initiatorFile) return dirname2(initiatorFile);
14519
- return DIRECT_CHAT_AGENT_DIR;
14520
- })();
14521
- var INBOUND_ATTACHMENTS_DIR = CODE_NAME_AGENT_DIR ? join4(CODE_NAME_AGENT_DIR, "direct-chat-inbound") : null;
14531
+ var DIRECT_CHAT_AGENT_DIR = AGT_AGENT_ID ? join5(homedir2(), ".augmented", AGT_AGENT_ID) : null;
14532
+ var INBOUND_ATTACHMENTS_DIR = resolveInboundAttachmentsDir({
14533
+ codeName: process.env.AGT_AGENT_CODE_NAME,
14534
+ turnInitiatorFile: process.env.AGT_TURN_INITIATOR_FILE,
14535
+ agentId: AGT_AGENT_ID,
14536
+ homeDir: homedir2()
14537
+ });
14522
14538
  var inboundContextClient = createInboundContextClient({
14523
14539
  agtHost: AGT_HOST ?? null,
14524
14540
  agtApiKey: AGT_API_KEY ?? null,
@@ -14595,7 +14611,7 @@ var inboundAttachmentDeps = {
14595
14611
  },
14596
14612
  ensureDir: (dir) => mkdirSync3(dir, { recursive: true }),
14597
14613
  writeFile: (path, bytes) => writeFileSync3(path, bytes, { mode: 384 }),
14598
- joinPath: (...parts) => join4(...parts),
14614
+ joinPath: (...parts) => join5(...parts),
14599
14615
  warn: (msg) => process.stderr.write(`${msg}
14600
14616
  `)
14601
14617
  };
@@ -36,7 +36,7 @@ import {
36
36
  writeDirectChatSessionState,
37
37
  writeEgressAllowlist,
38
38
  writePersistentClaudeWrapper
39
- } from "./chunk-ZV4PUS7E.js";
39
+ } from "./chunk-HMYD3ZSI.js";
40
40
  import "./chunk-XWVM4KPK.js";
41
41
  export {
42
42
  EGRESS_BASELINE_DOMAINS,
@@ -77,4 +77,4 @@ export {
77
77
  writeEgressAllowlist,
78
78
  writePersistentClaudeWrapper
79
79
  };
80
- //# sourceMappingURL=persistent-session-56STIRFQ.js.map
80
+ //# sourceMappingURL=persistent-session-ORUB5EN3.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-ZV4PUS7E.js";
3
+ } from "./chunk-HMYD3ZSI.js";
4
4
  import "./chunk-XWVM4KPK.js";
5
5
 
6
6
  // src/lib/responsiveness-probe.ts
@@ -303,4 +303,4 @@ export {
303
303
  readAndResetChannelDeflections,
304
304
  readAndResetChannelLaneClassifications
305
305
  };
306
- //# sourceMappingURL=responsiveness-probe-S74AWIEF.js.map
306
+ //# sourceMappingURL=responsiveness-probe-GM66ELIO.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.212",
3
+ "version": "0.28.214",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {