@integrity-labs/agt-cli 0.28.1113 → 0.28.1115

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-OBZB6MUE.js → chunk-I332Y7ZA.js} +2 -2
  3. package/dist/chunk-I332Y7ZA.js.map +1 -0
  4. package/dist/{chunk-TXNVB3DN.js → chunk-MKAOLKYE.js} +194 -22
  5. package/dist/{chunk-TXNVB3DN.js.map → chunk-MKAOLKYE.js.map} +1 -1
  6. package/dist/{chunk-JX7ZXCNZ.js → chunk-YTCFFKTS.js} +2 -2
  7. package/dist/chunk-YTCFFKTS.js.map +1 -0
  8. package/dist/{claude-pair-runtime-GL67TYXC.js → claude-pair-runtime-LC2KGTRK.js} +2 -2
  9. package/dist/lib/manager-worker.js +17 -16
  10. package/dist/lib/manager-worker.js.map +1 -1
  11. package/dist/mcp/direct-chat-channel.js +527 -104
  12. package/dist/mcp/index.js +33 -3
  13. package/dist/mcp/slack-channel.js +37 -7
  14. package/dist/mcp/teams-channel.js +34 -4
  15. package/dist/mcp/telegram-channel.js +35 -5
  16. package/dist/{persistent-session-6KIQF4O7.js → persistent-session-DMGOR6L5.js} +3 -3
  17. package/dist/{responsiveness-probe-GGJNITME.js → responsiveness-probe-JYYAJNID.js} +3 -3
  18. package/dist/{session-auth-dead-LMCPZJ4K.js → session-auth-dead-75QVSVYA.js} +2 -2
  19. package/package.json +1 -1
  20. package/dist/chunk-JX7ZXCNZ.js.map +0 -1
  21. package/dist/chunk-OBZB6MUE.js.map +0 -1
  22. /package/dist/{claude-pair-runtime-GL67TYXC.js.map → claude-pair-runtime-LC2KGTRK.js.map} +0 -0
  23. /package/dist/{persistent-session-6KIQF4O7.js.map → persistent-session-DMGOR6L5.js.map} +0 -0
  24. /package/dist/{responsiveness-probe-GGJNITME.js.map → responsiveness-probe-JYYAJNID.js.map} +0 -0
  25. /package/dist/{session-auth-dead-LMCPZJ4K.js.map → session-auth-dead-75QVSVYA.js.map} +0 -0
@@ -266,7 +266,7 @@ async function spawnPairSession(session) {
266
266
  return { ok: true };
267
267
  } catch {
268
268
  }
269
- const { resolveClaudeBinary } = await import("./persistent-session-6KIQF4O7.js");
269
+ const { resolveClaudeBinary } = await import("./persistent-session-DMGOR6L5.js");
270
270
  const claudeBin = resolveClaudeBinary();
271
271
  const pairEnv = {
272
272
  ...process.env,
@@ -734,4 +734,4 @@ export {
734
734
  startClaudePair,
735
735
  submitClaudePairCode
736
736
  };
737
- //# sourceMappingURL=claude-pair-runtime-GL67TYXC.js.map
737
+ //# sourceMappingURL=claude-pair-runtime-LC2KGTRK.js.map
@@ -68,7 +68,7 @@ import {
68
68
  safeWriteJsonAtomic,
69
69
  setConfigHash,
70
70
  tripClass
71
- } from "../chunk-TXNVB3DN.js";
71
+ } from "../chunk-MKAOLKYE.js";
72
72
  import {
73
73
  getProjectDir as getProjectDir2,
74
74
  getReadyTasks,
@@ -155,7 +155,7 @@ import {
155
155
  webFetchBaselineValue,
156
156
  webFetchRestartNeeded,
157
157
  writeEgressAllowlist
158
- } from "../chunk-JX7ZXCNZ.js";
158
+ } from "../chunk-YTCFFKTS.js";
159
159
  import {
160
160
  ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
161
161
  AnchorSessionClient,
@@ -265,7 +265,7 @@ import {
265
265
  subagentActivityAgeSeconds,
266
266
  sumTranscriptUsageInWindow,
267
267
  transcriptActivityAgeSeconds
268
- } from "../chunk-OBZB6MUE.js";
268
+ } from "../chunk-I332Y7ZA.js";
269
269
  import {
270
270
  classifyUnanswerablePane,
271
271
  paneRemedy
@@ -14143,7 +14143,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
14143
14143
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
14144
14144
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
14145
14145
  async function channelInboundActivityAgeSecondsFor(codeName) {
14146
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-GGJNITME.js");
14146
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-JYYAJNID.js");
14147
14147
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
14148
14148
  if (newest === null) return null;
14149
14149
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -14901,7 +14901,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
14901
14901
  var lastVersionCheckAt = 0;
14902
14902
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
14903
14903
  var lastResponsivenessProbeAt = 0;
14904
- var agtCliVersion = true ? "0.28.1113" : "dev";
14904
+ var agtCliVersion = true ? "0.28.1115" : "dev";
14905
14905
  function resolveBrewPath(execFileSync3) {
14906
14906
  try {
14907
14907
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -16518,7 +16518,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
16518
16518
  if (codeNames.length === 0) return;
16519
16519
  void (async () => {
16520
16520
  try {
16521
- const { collectDiagnostics } = await import("../persistent-session-6KIQF4O7.js");
16521
+ const { collectDiagnostics } = await import("../persistent-session-DMGOR6L5.js");
16522
16522
  await api.post("/host/heartbeat", {
16523
16523
  host_id: hostId,
16524
16524
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -16660,7 +16660,7 @@ async function pollCycleInner() {
16660
16660
  }
16661
16661
  try {
16662
16662
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
16663
- const { collectDiagnostics } = await import("../persistent-session-6KIQF4O7.js");
16663
+ const { collectDiagnostics } = await import("../persistent-session-DMGOR6L5.js");
16664
16664
  const diagCodeNames = [...agentState.persistentSessionAgents];
16665
16665
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor) : void 0;
16666
16666
  let tailscaleHostname;
@@ -16868,7 +16868,7 @@ async function pollCycleInner() {
16868
16868
  collectPanelessActivityProbes,
16869
16869
  getResponsivenessIntervalMs,
16870
16870
  occupancyQualificationClassifications
16871
- } = await import("../responsiveness-probe-GGJNITME.js");
16871
+ } = await import("../responsiveness-probe-JYYAJNID.js");
16872
16872
  const probeIntervalMs = getResponsivenessIntervalMs();
16873
16873
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
16874
16874
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -16985,7 +16985,7 @@ async function pollCycleInner() {
16985
16985
  collectResponsivenessProbes,
16986
16986
  livePendingInboundOldestAgeSeconds,
16987
16987
  parkPendingInbound
16988
- } = await import("../responsiveness-probe-GGJNITME.js");
16988
+ } = await import("../responsiveness-probe-JYYAJNID.js");
16989
16989
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
16990
16990
  const wedgeNow = /* @__PURE__ */ new Date();
16991
16991
  const liveAgents = agentState.persistentSessionAgents;
@@ -17271,7 +17271,7 @@ async function pollCycleInner() {
17271
17271
  }
17272
17272
  }
17273
17273
  );
17274
- const { parkPendingInbound } = await import("../responsiveness-probe-GGJNITME.js");
17274
+ const { parkPendingInbound } = await import("../responsiveness-probe-JYYAJNID.js");
17275
17275
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
17276
17276
  paneFatalStreak.delete(codeName);
17277
17277
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -17302,7 +17302,7 @@ async function pollCycleInner() {
17302
17302
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
17303
17303
  bindSourceEscalations
17304
17304
  } = await import("../transcript-mount-health-OHE6IVJV.js");
17305
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-6KIQF4O7.js");
17305
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-DMGOR6L5.js");
17306
17306
  const mountConfig = resolveTranscriptMountConfig();
17307
17307
  const liveAgents = agentState.persistentSessionAgents;
17308
17308
  for (const tracked of [
@@ -17467,7 +17467,7 @@ async function pollCycleInner() {
17467
17467
  }
17468
17468
  try {
17469
17469
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
17470
- const { probeSessionAuth } = await import("../session-auth-dead-LMCPZJ4K.js");
17470
+ const { probeSessionAuth } = await import("../session-auth-dead-75QVSVYA.js");
17471
17471
  const observations = [];
17472
17472
  const pendingCacheCommits = [];
17473
17473
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -17537,6 +17537,7 @@ async function pollCycleInner() {
17537
17537
  }
17538
17538
  const data = await api.post("/host/agents", { host_id: hostId });
17539
17539
  const agents = data.agents ?? [];
17540
+ hostFlagStore().setMirrorAgentIds(agents.map((a) => a.agent_id));
17540
17541
  if (agents.length > 0) {
17541
17542
  if (consecutiveEmptyAgentPolls > 0) {
17542
17543
  log(
@@ -22054,7 +22055,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
22054
22055
  try {
22055
22056
  const freshId = rotateSessionForWedge(codeName);
22056
22057
  consecutiveWedgeCycles.delete(codeName);
22057
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-GGJNITME.js");
22058
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-JYYAJNID.js");
22058
22059
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
22059
22060
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
22060
22061
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -22097,7 +22098,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
22097
22098
  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}`));
22098
22099
  void (async () => {
22099
22100
  try {
22100
- const { collectDiagnostics } = await import("../persistent-session-6KIQF4O7.js");
22101
+ const { collectDiagnostics } = await import("../persistent-session-DMGOR6L5.js");
22101
22102
  await api.post("/host/heartbeat", {
22102
22103
  host_id: hostId,
22103
22104
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -22148,7 +22149,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
22148
22149
  }
22149
22150
  try {
22150
22151
  const hostId = await getHostId();
22151
- const { collectDiagnostics } = await import("../persistent-session-6KIQF4O7.js");
22152
+ const { collectDiagnostics } = await import("../persistent-session-DMGOR6L5.js");
22152
22153
  await api.post("/host/heartbeat", {
22153
22154
  host_id: hostId,
22154
22155
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -22821,7 +22822,7 @@ async function processClaudePairSessions(agents) {
22821
22822
  // cannot take it for itself — by the time it runs, the write it is looking
22822
22823
  // for may already have happened.
22823
22824
  snapshotPairConfig
22824
- } = await import("../claude-pair-runtime-GL67TYXC.js");
22825
+ } = await import("../claude-pair-runtime-LC2KGTRK.js");
22825
22826
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
22826
22827
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
22827
22828
  const killed = await killPairSession(pairTmuxSession(pairId));