@integrity-labs/agt-cli 0.28.624 → 0.28.626

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.
@@ -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.626",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {