@misterhuydo/sentinel 1.4.45 → 1.4.47
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-03-25T10:
|
|
1
|
+
2026-03-25T10:49:00.064Z
|
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-25T11:04:20.432Z",
|
|
3
|
+
"checkpoint_at": "2026-03-25T11:04:20.433Z",
|
|
4
4
|
"active_files": [],
|
|
5
5
|
"notes": [],
|
|
6
6
|
"mtime_snapshot": {}
|
package/package.json
CHANGED
|
@@ -82,12 +82,12 @@ def apply_and_commit(
|
|
|
82
82
|
logger.error("git pull failed for %s:\n%s", repo.repo_name, r.stderr)
|
|
83
83
|
return "failed", ""
|
|
84
84
|
|
|
85
|
-
r = _git(["apply", "--check", str(patch_path)], cwd=local_path, env=env)
|
|
85
|
+
r = _git(["apply", "--check", "--ignore-whitespace", str(patch_path)], cwd=local_path, env=env)
|
|
86
86
|
if r.returncode != 0:
|
|
87
87
|
logger.error("Patch dry-run failed for %s:\n%s", event.fingerprint, r.stderr)
|
|
88
88
|
return "failed", ""
|
|
89
89
|
|
|
90
|
-
r = _git(["apply", str(patch_path)], cwd=local_path, env=env)
|
|
90
|
+
r = _git(["apply", "--ignore-whitespace", str(patch_path)], cwd=local_path, env=env)
|
|
91
91
|
if r.returncode != 0:
|
|
92
92
|
logger.error("git apply failed for %s:\n%s", event.fingerprint, r.stderr)
|
|
93
93
|
return "failed", ""
|
|
@@ -134,15 +134,23 @@ async def run_slack_bot(cfg_loader, store) -> None:
|
|
|
134
134
|
|
|
135
135
|
@app.event("message")
|
|
136
136
|
async def on_message(event, client):
|
|
137
|
+
if event.get("bot_id"):
|
|
138
|
+
# Passive bot watcher — bot messages from DB-registered bots
|
|
139
|
+
if event.get("channel") and store.is_watched_bot(event["bot_id"]):
|
|
140
|
+
await _handle_bot_message(event, client, cfg_loader, store)
|
|
141
|
+
return
|
|
142
|
+
|
|
137
143
|
# DMs from humans → Boss conversation
|
|
138
|
-
if event.get("channel_type") == "im"
|
|
144
|
+
if event.get("channel_type") == "im":
|
|
139
145
|
await _dispatch(event, client, cfg_loader, store)
|
|
140
146
|
return
|
|
141
147
|
|
|
142
|
-
#
|
|
143
|
-
|
|
144
|
-
if
|
|
145
|
-
|
|
148
|
+
# Thread replies in channels — route to Boss if the user has an active session
|
|
149
|
+
# (so the user can reply "yes" / "go ahead" without typing @Sentinel each time)
|
|
150
|
+
if event.get("thread_ts") and not event.get("subtype"):
|
|
151
|
+
user_id = event.get("user", "")
|
|
152
|
+
if user_id and user_id in _sessions:
|
|
153
|
+
await _dispatch(event, client, cfg_loader, store)
|
|
146
154
|
|
|
147
155
|
# ── Start ─────────────────────────────────────────────────────────────────
|
|
148
156
|
|