@integrity-labs/agt-cli 0.28.966 → 0.28.968

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 (25) hide show
  1. package/dist/bin/agt.js +5 -5
  2. package/dist/{chunk-STTM33M5.js → chunk-EOBOL6AF.js} +4 -4
  3. package/dist/chunk-EOBOL6AF.js.map +1 -0
  4. package/dist/{chunk-K2VDNAD2.js → chunk-NNLFFHCB.js} +2 -2
  5. package/dist/{chunk-V73S7OXI.js → chunk-R5G7EUJS.js} +20 -6
  6. package/dist/{chunk-V73S7OXI.js.map → chunk-R5G7EUJS.js.map} +1 -1
  7. package/dist/{claude-pair-runtime-ICRPR6QQ.js → claude-pair-runtime-MF7I4FNM.js} +2 -2
  8. package/dist/lib/manager-worker.js +16 -18
  9. package/dist/lib/manager-worker.js.map +1 -1
  10. package/dist/mcp/direct-chat-channel.js +1 -1
  11. package/dist/mcp/index.js +1 -1
  12. package/dist/mcp/origami.js +1 -1
  13. package/dist/mcp/slack-channel.js +3 -5
  14. package/dist/mcp/teams-channel.js +2 -4
  15. package/dist/mcp/telegram-channel.js +1 -1
  16. package/dist/{persistent-session-6C3XIT5F.js → persistent-session-G3YBVYJI.js} +3 -3
  17. package/dist/{responsiveness-probe-22RREUHV.js → responsiveness-probe-CUMOVJG2.js} +3 -3
  18. package/dist/{session-auth-dead-IOBL2YXT.js → session-auth-dead-XU6S3ZAU.js} +2 -2
  19. package/package.json +1 -1
  20. package/dist/chunk-STTM33M5.js.map +0 -1
  21. /package/dist/{chunk-K2VDNAD2.js.map → chunk-NNLFFHCB.js.map} +0 -0
  22. /package/dist/{claude-pair-runtime-ICRPR6QQ.js.map → claude-pair-runtime-MF7I4FNM.js.map} +0 -0
  23. /package/dist/{persistent-session-6C3XIT5F.js.map → persistent-session-G3YBVYJI.js.map} +0 -0
  24. /package/dist/{responsiveness-probe-22RREUHV.js.map → responsiveness-probe-CUMOVJG2.js.map} +0 -0
  25. /package/dist/{session-auth-dead-IOBL2YXT.js.map → session-auth-dead-XU6S3ZAU.js.map} +0 -0
@@ -236,7 +236,7 @@ async function spawnPairSession(session) {
236
236
  return { ok: true };
237
237
  } catch {
238
238
  }
239
- const { resolveClaudeBinary } = await import("./persistent-session-6C3XIT5F.js");
239
+ const { resolveClaudeBinary } = await import("./persistent-session-G3YBVYJI.js");
240
240
  const claudeBin = resolveClaudeBinary();
241
241
  const pairEnv = {
242
242
  ...process.env,
@@ -558,4 +558,4 @@ export {
558
558
  startClaudePair,
559
559
  submitClaudePairCode
560
560
  };
561
- //# sourceMappingURL=claude-pair-runtime-ICRPR6QQ.js.map
561
+ //# sourceMappingURL=claude-pair-runtime-MF7I4FNM.js.map
@@ -63,7 +63,7 @@ import {
63
63
  safeWriteJsonAtomic,
64
64
  setConfigHash,
65
65
  tripClass
66
- } from "../chunk-STTM33M5.js";
66
+ } from "../chunk-EOBOL6AF.js";
67
67
  import {
68
68
  getProjectDir as getProjectDir2,
69
69
  getReadyTasks,
@@ -140,7 +140,7 @@ import {
140
140
  takeZombieDetection,
141
141
  toOpencodeModel,
142
142
  writeEgressAllowlist
143
- } from "../chunk-K2VDNAD2.js";
143
+ } from "../chunk-NNLFFHCB.js";
144
144
  import {
145
145
  ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
146
146
  AnchorSessionClient,
@@ -238,7 +238,7 @@ import {
238
238
  subagentActivityAgeSeconds,
239
239
  sumTranscriptUsageInWindow,
240
240
  transcriptActivityAgeSeconds
241
- } from "../chunk-V73S7OXI.js";
241
+ } from "../chunk-R5G7EUJS.js";
242
242
  import "../chunk-DHWNVVX4.js";
243
243
  import {
244
244
  reapOrphanChannelMcps
@@ -9810,9 +9810,7 @@ function decideModeForward(evt, policy) {
9810
9810
  if (policy.mode === "all")
9811
9811
  return { forward: true };
9812
9812
  if (policy.mode === "manager_only") {
9813
- if (policy.principalSlackUserId && evt.user === policy.principalSlackUserId) {
9814
- return { forward: true };
9815
- }
9813
+ return policy.principalSlackUserId && evt.user === policy.principalSlackUserId ? { forward: true } : { forward: false, reason: "sender_policy" };
9816
9814
  }
9817
9815
  if (policy.mode === "team_only") {
9818
9816
  if (policy.teamPrincipalSlackUserIds && policy.teamPrincipalSlackUserIds.length > 0 && typeof evt.user === "string" && policy.teamPrincipalSlackUserIds.includes(evt.user)) {
@@ -9827,7 +9825,7 @@ function decideModeForward(evt, policy) {
9827
9825
  return { forward: false, reason: "sender_policy" };
9828
9826
  }
9829
9827
  }
9830
- if (policy.mode === "team_agents_only" || policy.mode === "manager_only" || policy.mode === "team_only") {
9828
+ if (policy.mode === "team_agents_only" || policy.mode === "team_only") {
9831
9829
  if (!policy.teamId || label.teamId !== policy.teamId) {
9832
9830
  return { forward: false, reason: "sender_policy" };
9833
9831
  }
@@ -13184,7 +13182,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
13184
13182
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
13185
13183
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
13186
13184
  async function channelInboundActivityAgeSecondsFor(codeName) {
13187
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-22RREUHV.js");
13185
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-CUMOVJG2.js");
13188
13186
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
13189
13187
  if (newest === null) return null;
13190
13188
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -13869,7 +13867,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
13869
13867
  var lastVersionCheckAt = 0;
13870
13868
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
13871
13869
  var lastResponsivenessProbeAt = 0;
13872
- var agtCliVersion = true ? "0.28.966" : "dev";
13870
+ var agtCliVersion = true ? "0.28.968" : "dev";
13873
13871
  function resolveBrewPath(execFileSync2) {
13874
13872
  try {
13875
13873
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -15471,7 +15469,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
15471
15469
  if (codeNames.length === 0) return;
15472
15470
  void (async () => {
15473
15471
  try {
15474
- const { collectDiagnostics } = await import("../persistent-session-6C3XIT5F.js");
15472
+ const { collectDiagnostics } = await import("../persistent-session-G3YBVYJI.js");
15475
15473
  await api.post("/host/heartbeat", {
15476
15474
  host_id: hostId,
15477
15475
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -15613,7 +15611,7 @@ async function pollCycleInner() {
15613
15611
  }
15614
15612
  try {
15615
15613
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
15616
- const { collectDiagnostics } = await import("../persistent-session-6C3XIT5F.js");
15614
+ const { collectDiagnostics } = await import("../persistent-session-G3YBVYJI.js");
15617
15615
  const diagCodeNames = [...agentState.persistentSessionAgents];
15618
15616
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
15619
15617
  let tailscaleHostname;
@@ -15789,7 +15787,7 @@ async function pollCycleInner() {
15789
15787
  collectPanelessActivityProbes,
15790
15788
  getResponsivenessIntervalMs,
15791
15789
  occupancyQualificationClassifications
15792
- } = await import("../responsiveness-probe-22RREUHV.js");
15790
+ } = await import("../responsiveness-probe-CUMOVJG2.js");
15793
15791
  const probeIntervalMs = getResponsivenessIntervalMs();
15794
15792
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
15795
15793
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -15906,7 +15904,7 @@ async function pollCycleInner() {
15906
15904
  collectResponsivenessProbes,
15907
15905
  livePendingInboundOldestAgeSeconds,
15908
15906
  parkPendingInbound
15909
- } = await import("../responsiveness-probe-22RREUHV.js");
15907
+ } = await import("../responsiveness-probe-CUMOVJG2.js");
15910
15908
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
15911
15909
  const wedgeNow = /* @__PURE__ */ new Date();
15912
15910
  const liveAgents = agentState.persistentSessionAgents;
@@ -16062,7 +16060,7 @@ async function pollCycleInner() {
16062
16060
  }
16063
16061
  try {
16064
16062
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
16065
- const { probeSessionAuth } = await import("../session-auth-dead-IOBL2YXT.js");
16063
+ const { probeSessionAuth } = await import("../session-auth-dead-XU6S3ZAU.js");
16066
16064
  const observations = [];
16067
16065
  const pendingCacheCommits = [];
16068
16066
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -20338,7 +20336,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
20338
20336
  try {
20339
20337
  const freshId = rotateSessionForWedge(codeName);
20340
20338
  consecutiveWedgeCycles.delete(codeName);
20341
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-22RREUHV.js");
20339
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-CUMOVJG2.js");
20342
20340
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
20343
20341
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
20344
20342
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -20381,7 +20379,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
20381
20379
  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}`));
20382
20380
  void (async () => {
20383
20381
  try {
20384
- const { collectDiagnostics } = await import("../persistent-session-6C3XIT5F.js");
20382
+ const { collectDiagnostics } = await import("../persistent-session-G3YBVYJI.js");
20385
20383
  await api.post("/host/heartbeat", {
20386
20384
  host_id: hostId,
20387
20385
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -20432,7 +20430,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
20432
20430
  }
20433
20431
  try {
20434
20432
  const hostId = await getHostId();
20435
- const { collectDiagnostics } = await import("../persistent-session-6C3XIT5F.js");
20433
+ const { collectDiagnostics } = await import("../persistent-session-G3YBVYJI.js");
20436
20434
  await api.post("/host/heartbeat", {
20437
20435
  host_id: hostId,
20438
20436
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
@@ -21074,7 +21072,7 @@ async function processClaudePairSessions(agents) {
21074
21072
  killPairSession,
21075
21073
  pairTmuxSession,
21076
21074
  finalizeClaudePairOnboarding
21077
- } = await import("../claude-pair-runtime-ICRPR6QQ.js");
21075
+ } = await import("../claude-pair-runtime-MF7I4FNM.js");
21078
21076
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
21079
21077
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
21080
21078
  const killed = await killPairSession(pairTmuxSession(pairId));