@integrity-labs/agt-cli 0.28.624 → 0.28.625

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-UCWXUJE6.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-VUVAFI4R.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-4JKKKO2Q.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-OU7EYHVL.js.map
@@ -54,7 +54,7 @@ import {
54
54
  safeWriteJsonAtomic,
55
55
  setConfigHash,
56
56
  tripClass
57
- } from "../chunk-4CJSB2EX.js";
57
+ } from "../chunk-WTNH3VCT.js";
58
58
  import {
59
59
  getProjectDir as getProjectDir2,
60
60
  getReadyTasks,
@@ -110,7 +110,7 @@ import {
110
110
  takeZombieDetection,
111
111
  toOpencodeModel,
112
112
  writeEgressAllowlist
113
- } from "../chunk-UIB2SMFE.js";
113
+ } from "../chunk-7QNQRV3A.js";
114
114
  import {
115
115
  ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
116
116
  AnchorSessionClient,
@@ -187,7 +187,7 @@ import {
187
187
  subagentActivityAgeSeconds,
188
188
  sumTranscriptUsageInWindow,
189
189
  transcriptActivityAgeSeconds
190
- } from "../chunk-EDH4GZIW.js";
190
+ } from "../chunk-XQ7BNYC4.js";
191
191
  import {
192
192
  reapOrphanChannelMcps
193
193
  } from "../chunk-XWVM4KPK.js";
@@ -11394,7 +11394,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
11394
11394
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
11395
11395
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
11396
11396
  async function channelInboundActivityAgeSecondsFor(codeName) {
11397
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-N7LUZL3X.js");
11397
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-Q4HYKKJJ.js");
11398
11398
  const newest = newestPendingInboundActivityMtimeMs(dirname9(paneLogPath(codeName)));
11399
11399
  if (newest === null) return null;
11400
11400
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -12033,7 +12033,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
12033
12033
  var lastVersionCheckAt = 0;
12034
12034
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
12035
12035
  var lastResponsivenessProbeAt = 0;
12036
- var agtCliVersion = true ? "0.28.624" : "dev";
12036
+ var agtCliVersion = true ? "0.28.625" : "dev";
12037
12037
  function resolveBrewPath(execFileSync3) {
12038
12038
  try {
12039
12039
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -13340,7 +13340,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
13340
13340
  if (codeNames.length === 0) return;
13341
13341
  void (async () => {
13342
13342
  try {
13343
- const { collectDiagnostics } = await import("../persistent-session-UCWXUJE6.js");
13343
+ const { collectDiagnostics } = await import("../persistent-session-VUVAFI4R.js");
13344
13344
  await api.post("/host/heartbeat", {
13345
13345
  host_id: hostId,
13346
13346
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
@@ -13456,7 +13456,7 @@ async function pollCycleInner() {
13456
13456
  }
13457
13457
  try {
13458
13458
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
13459
- const { collectDiagnostics } = await import("../persistent-session-UCWXUJE6.js");
13459
+ const { collectDiagnostics } = await import("../persistent-session-VUVAFI4R.js");
13460
13460
  const diagCodeNames = [...agentState.persistentSessionAgents];
13461
13461
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor) : void 0;
13462
13462
  let tailscaleHostname;
@@ -13579,7 +13579,7 @@ async function pollCycleInner() {
13579
13579
  collectPanelessActivityProbes,
13580
13580
  getResponsivenessIntervalMs,
13581
13581
  occupancyQualificationClassifications
13582
- } = await import("../responsiveness-probe-N7LUZL3X.js");
13582
+ } = await import("../responsiveness-probe-Q4HYKKJJ.js");
13583
13583
  const probeIntervalMs = getResponsivenessIntervalMs();
13584
13584
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
13585
13585
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -13685,7 +13685,7 @@ async function pollCycleInner() {
13685
13685
  collectResponsivenessProbes,
13686
13686
  livePendingInboundOldestAgeSeconds,
13687
13687
  parkPendingInbound
13688
- } = await import("../responsiveness-probe-N7LUZL3X.js");
13688
+ } = await import("../responsiveness-probe-Q4HYKKJJ.js");
13689
13689
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
13690
13690
  const wedgeNow = /* @__PURE__ */ new Date();
13691
13691
  const liveAgents = agentState.persistentSessionAgents;
@@ -13841,7 +13841,7 @@ async function pollCycleInner() {
13841
13841
  }
13842
13842
  try {
13843
13843
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
13844
- const { probeSessionAuth } = await import("../session-auth-dead-RLQK5ZQV.js");
13844
+ const { probeSessionAuth } = await import("../session-auth-dead-WKUINREY.js");
13845
13845
  const observations = [];
13846
13846
  const pendingCacheCommits = [];
13847
13847
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -17368,7 +17368,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
17368
17368
  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}`));
17369
17369
  void (async () => {
17370
17370
  try {
17371
- const { collectDiagnostics } = await import("../persistent-session-UCWXUJE6.js");
17371
+ const { collectDiagnostics } = await import("../persistent-session-VUVAFI4R.js");
17372
17372
  await api.post("/host/heartbeat", {
17373
17373
  host_id: hostId,
17374
17374
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
@@ -17419,7 +17419,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
17419
17419
  }
17420
17420
  try {
17421
17421
  const hostId = await getHostId();
17422
- const { collectDiagnostics } = await import("../persistent-session-UCWXUJE6.js");
17422
+ const { collectDiagnostics } = await import("../persistent-session-VUVAFI4R.js");
17423
17423
  await api.post("/host/heartbeat", {
17424
17424
  host_id: hostId,
17425
17425
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
@@ -18015,7 +18015,7 @@ async function processClaudePairSessions(agents) {
18015
18015
  killPairSession,
18016
18016
  pairTmuxSession,
18017
18017
  finalizeClaudePairOnboarding
18018
- } = await import("../claude-pair-runtime-4JKKKO2Q.js");
18018
+ } = await import("../claude-pair-runtime-OU7EYHVL.js");
18019
18019
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
18020
18020
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
18021
18021
  const killed = await killPairSession(pairTmuxSession(pairId));
@@ -33020,6 +33020,12 @@ var REMOTE_MCP_AUTH_ENV_KEYS = [
33020
33020
  REMOTE_MCP_PROXY_ENV.extraHeaders
33021
33021
  ];
33022
33022
 
33023
+ // ../core/dist/integrations/slack-socket-state.js
33024
+ var SLACK_SOCKET_STATE_FILENAME = "slack-socket-state.json";
33025
+ function serializeSlackSocketState(state) {
33026
+ return JSON.stringify(state);
33027
+ }
33028
+
33023
33029
  // ../core/dist/integrations/registry.js
33024
33030
  var INTEGRATION_REGISTRY = [
33025
33031
  {
@@ -46051,6 +46057,7 @@ function isSocketConnected() {
46051
46057
  }
46052
46058
  function scheduleReconnect(reason) {
46053
46059
  reconnectScheduler.schedule(reason);
46060
+ publishSocketState();
46054
46061
  }
46055
46062
  function armOpenWatchdog(ws) {
46056
46063
  clearOpenWatchdog?.();
@@ -46075,6 +46082,36 @@ function armOpenWatchdog(ws) {
46075
46082
  function socketDownForMs() {
46076
46083
  return reconnectScheduler.downForMs(isSocketConnected());
46077
46084
  }
46085
+ var SLACK_SOCKET_STATE_PATH = SLACK_AGENT_DIR ? join20(SLACK_AGENT_DIR, SLACK_SOCKET_STATE_FILENAME) : null;
46086
+ function publishSocketState() {
46087
+ if (!SLACK_SOCKET_STATE_PATH || !SLACK_AGENT_DIR) return;
46088
+ const tmp = `${SLACK_SOCKET_STATE_PATH}.${process.pid}.tmp`;
46089
+ try {
46090
+ mkdirSync9(SLACK_AGENT_DIR, { recursive: true, mode: 448 });
46091
+ writeFileSync14(
46092
+ tmp,
46093
+ serializeSlackSocketState({
46094
+ connected: isSocketConnected(),
46095
+ down_for_ms: socketDownForMs(),
46096
+ updated_at_ms: Date.now()
46097
+ }),
46098
+ { mode: 384 }
46099
+ );
46100
+ renameSync5(tmp, SLACK_SOCKET_STATE_PATH);
46101
+ } catch {
46102
+ try {
46103
+ unlinkSync7(tmp);
46104
+ } catch {
46105
+ }
46106
+ }
46107
+ }
46108
+ var SOCKET_STATE_PUBLISH_INTERVAL_MS = 3e4;
46109
+ function startSocketStatePublisher() {
46110
+ if (!SLACK_SOCKET_STATE_PATH) return;
46111
+ publishSocketState();
46112
+ const timer = setInterval(publishSocketState, SOCKET_STATE_PUBLISH_INTERVAL_MS);
46113
+ timer.unref?.();
46114
+ }
46078
46115
  var acquiredLockPath = null;
46079
46116
  var stopLockHeartbeat = null;
46080
46117
  async function seedMutedChannelsFromApi() {
@@ -46168,6 +46205,7 @@ async function connectSocketMode() {
46168
46205
  }
46169
46206
  clearOpenWatchdogFor(ws);
46170
46207
  reconnectScheduler.noteOpen();
46208
+ publishSocketState();
46171
46209
  process.stderr.write("slack-channel: Socket Mode connected\n");
46172
46210
  recordActivity("connect");
46173
46211
  void setBotStatus(":large_green_circle:", "Active");
@@ -46967,6 +47005,7 @@ function sweepOrphanedMentionEchoes() {
46967
47005
  }
46968
47006
  var mentionTwinSweepTimer = setInterval(sweepOrphanedMentionEchoes, MENTION_TWIN_WINDOW_MS);
46969
47007
  mentionTwinSweepTimer.unref?.();
47008
+ startSocketStatePublisher();
46970
47009
  connectSocketModeSafely();
46971
47010
  export {
46972
47011
  __resetSlackBusyAckNoticeThrottle,
@@ -43,8 +43,8 @@ import {
43
43
  writeDirectChatSessionState,
44
44
  writeEgressAllowlist,
45
45
  writePersistentClaudeWrapper
46
- } from "./chunk-UIB2SMFE.js";
47
- import "./chunk-EDH4GZIW.js";
46
+ } from "./chunk-7QNQRV3A.js";
47
+ import "./chunk-XQ7BNYC4.js";
48
48
  import "./chunk-XWVM4KPK.js";
49
49
  export {
50
50
  EGRESS_BASELINE_DOMAINS,
@@ -92,4 +92,4 @@ export {
92
92
  writeEgressAllowlist,
93
93
  writePersistentClaudeWrapper
94
94
  };
95
- //# sourceMappingURL=persistent-session-UCWXUJE6.js.map
95
+ //# sourceMappingURL=persistent-session-VUVAFI4R.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-UIB2SMFE.js";
4
- import "./chunk-EDH4GZIW.js";
3
+ } from "./chunk-7QNQRV3A.js";
4
+ import "./chunk-XQ7BNYC4.js";
5
5
  import "./chunk-XWVM4KPK.js";
6
6
 
7
7
  // src/lib/responsiveness-probe.ts
@@ -712,4 +712,4 @@ export {
712
712
  readAndResetSlackReplyBindingClassifications,
713
713
  readAndResetSlackReplyTargetClassifications
714
714
  };
715
- //# sourceMappingURL=responsiveness-probe-N7LUZL3X.js.map
715
+ //# sourceMappingURL=responsiveness-probe-Q4HYKKJJ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-EDH4GZIW.js";
3
+ } from "./chunk-XQ7BNYC4.js";
4
4
 
5
5
  // src/lib/session-auth-dead.ts
6
6
  import { closeSync, openSync, readSync, readdirSync, statSync } from "fs";
@@ -203,4 +203,4 @@ export {
203
203
  decideSessionAuthState,
204
204
  probeSessionAuth
205
205
  };
206
- //# sourceMappingURL=session-auth-dead-RLQK5ZQV.js.map
206
+ //# sourceMappingURL=session-auth-dead-WKUINREY.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.624",
3
+ "version": "0.28.625",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {