@integrity-labs/agt-cli 0.27.141 → 0.27.143

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.
@@ -14211,6 +14211,10 @@ function decideSlackEngagement(input) {
14211
14211
  function decideSlackAckReaction(input) {
14212
14212
  return Boolean(input.channel && input.ts);
14213
14213
  }
14214
+ function isRestartSenderAllowed(allowedUsers, userId) {
14215
+ if (allowedUsers.size === 0) return true;
14216
+ return userId != null && allowedUsers.has(userId);
14217
+ }
14214
14218
  function extractAugmentedSlackLabel(evt) {
14215
14219
  if (evt.metadata?.event_type !== "augmented_agent_message") return null;
14216
14220
  return {
@@ -19081,7 +19085,7 @@ async function connectSocketMode() {
19081
19085
  return;
19082
19086
  }
19083
19087
  if (isRestartCommand) {
19084
- const senderAllowed = ALLOWED_USERS.size === 0 || evt.user != null && ALLOWED_USERS.has(evt.user);
19088
+ const senderAllowed = isRestartSenderAllowed(ALLOWED_USERS, evt.user);
19085
19089
  if (!senderAllowed) {
19086
19090
  await denyUnauthorizedRestart({
19087
19091
  channel: evt.channel ?? "",
@@ -19102,7 +19106,6 @@ async function connectSocketMode() {
19102
19106
  });
19103
19107
  return;
19104
19108
  }
19105
- if (ALLOWED_USERS.size > 0 && evt.user && !ALLOWED_USERS.has(evt.user)) return;
19106
19109
  if (evt.bot_id) {
19107
19110
  const peerMsg = {
19108
19111
  text: evt.text,
@@ -25,8 +25,8 @@ import {
25
25
  takeAcpxExecFailureCount,
26
26
  takeZombieDetection,
27
27
  writePersistentClaudeWrapper
28
- } from "./chunk-IDDSO7Q5.js";
29
- import "./chunk-WCXA7EEP.js";
28
+ } from "./chunk-BQCBWYT3.js";
29
+ import "./chunk-ZXIGQDOP.js";
30
30
  import "./chunk-354FAVQR.js";
31
31
  import "./chunk-XWVM4KPK.js";
32
32
  export {
@@ -57,4 +57,4 @@ export {
57
57
  takeZombieDetection,
58
58
  writePersistentClaudeWrapper
59
59
  };
60
- //# sourceMappingURL=persistent-session-SOCMTNFC.js.map
60
+ //# sourceMappingURL=persistent-session-255IRT6T.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-IDDSO7Q5.js";
4
- import "./chunk-WCXA7EEP.js";
3
+ } from "./chunk-BQCBWYT3.js";
4
+ import "./chunk-ZXIGQDOP.js";
5
5
  import "./chunk-354FAVQR.js";
6
6
  import "./chunk-XWVM4KPK.js";
7
7
 
@@ -155,4 +155,4 @@ export {
155
155
  livePendingInboundOldestAgeSeconds,
156
156
  oldestLivePendingInboundMtimeMs
157
157
  };
158
- //# sourceMappingURL=responsiveness-probe-USWGCI4C.js.map
158
+ //# sourceMappingURL=responsiveness-probe-Q35EEOHM.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.27.141",
3
+ "version": "0.27.143",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {