@misterhuydo/sentinel 1.4.95 → 1.4.96
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/.cairn/.hint-lock +1 -1
- package/.cairn/session.json +2 -2
- package/package.json +1 -1
- package/python/sentinel/slack_bot.py +3 -1
package/.cairn/.hint-lock
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-03-
|
|
1
|
+
2026-03-30T05:36:03.379Z
|
package/.cairn/session.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"message": "Auto-checkpoint at 2026-03-
|
|
3
|
-
"checkpoint_at": "2026-03-
|
|
2
|
+
"message": "Auto-checkpoint at 2026-03-30T05:40:35.480Z",
|
|
3
|
+
"checkpoint_at": "2026-03-30T05:40:35.481Z",
|
|
4
4
|
"active_files": [],
|
|
5
5
|
"notes": [],
|
|
6
6
|
"mtime_snapshot": {}
|
package/package.json
CHANGED
|
@@ -354,8 +354,10 @@ async def _dispatch(event: dict, client, cfg_loader, store) -> None:
|
|
|
354
354
|
text = "hello"
|
|
355
355
|
|
|
356
356
|
# Allowlist check — if SLACK_ALLOWED_USERS is configured, silently ignore everyone else
|
|
357
|
+
# Admins (SLACK_ADMIN_USERS) are always allowed regardless of SLACK_ALLOWED_USERS
|
|
357
358
|
allowed = cfg_loader.sentinel.slack_allowed_users
|
|
358
|
-
|
|
359
|
+
admin_users = cfg_loader.sentinel.slack_admin_users or []
|
|
360
|
+
if allowed and user_id not in allowed and user_id not in admin_users:
|
|
359
361
|
logger.warning("Boss: ignoring message from unauthorised user %s", user_id)
|
|
360
362
|
return
|
|
361
363
|
|