@integrity-labs/agt-cli 0.27.140 → 0.27.142
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.
- package/dist/bin/agt.js +3 -3
- package/dist/{chunk-5UTHUT4E.js → chunk-OI33LV54.js} +132 -1
- package/dist/chunk-OI33LV54.js.map +1 -0
- package/dist/lib/manager-worker.js +8 -2
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/slack-channel.js +5 -2
- package/package.json +1 -1
- package/dist/chunk-5UTHUT4E.js.map +0 -1
|
@@ -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
|
|
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,
|