sentinel-mcp 0.5.3 → 0.5.4
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/index.js +9 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -194,6 +194,15 @@ const wsClient = new WsClient({
|
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
196
|
const isRenotify = notification.meta.renotify === "true";
|
|
197
|
+
// Notify the user that an event was received and is being dispatched
|
|
198
|
+
const eventLabel = payload.type === "pr_merged"
|
|
199
|
+
? `PR #${payload.pr_number} merged`
|
|
200
|
+
: payload.type === "issue_closed"
|
|
201
|
+
? `Issue #${issueNumber} closed`
|
|
202
|
+
: payload.type === "issue_comment"
|
|
203
|
+
? `New comment on #${issueNumber}`
|
|
204
|
+
: `New issue #${issueNumber}`;
|
|
205
|
+
pushNotification(`[Sentinel notification — no action needed, do not respond] ${eventLabel} in ${payload.repo}. Session dispatched automatically.`, { type: "event_received", repo: payload.repo, issue: String(issueNumber), eventType: payload.type });
|
|
197
206
|
sessionManager.dispatch({
|
|
198
207
|
id,
|
|
199
208
|
usageId: usageId ?? null,
|