@thehammer/danx-dashboard-mcp 0.1.275 → 0.1.276
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/listen.js +10 -0
- package/package.json +1 -1
package/dist/listen.js
CHANGED
|
@@ -181,6 +181,13 @@ export function invalidEventReason(value) {
|
|
|
181
181
|
}
|
|
182
182
|
case "blocked":
|
|
183
183
|
return isCappedText(d.reason) ? null : "detail.reason is not capped text";
|
|
184
|
+
// DX-4622: a reviewer asked for changes on the card's pull request (GitHub review webhook).
|
|
185
|
+
case "pull_request_changes_requested":
|
|
186
|
+
if (typeof d.reviewer !== "string")
|
|
187
|
+
return "detail.reviewer is not a string";
|
|
188
|
+
if (typeof d.review_url !== "string")
|
|
189
|
+
return "detail.review_url is not a string";
|
|
190
|
+
return isCappedText(d.excerpt) ? null : "detail.excerpt is not capped text";
|
|
184
191
|
default:
|
|
185
192
|
return null;
|
|
186
193
|
}
|
|
@@ -256,6 +263,9 @@ function describe(event) {
|
|
|
256
263
|
return `${who} blocked the card: ${quoted(d.reason)}`;
|
|
257
264
|
case "unblocked":
|
|
258
265
|
return `${who} unblocked the card`;
|
|
266
|
+
// DX-4622: the agent must act on the review, so the line names who, where, and what to do next.
|
|
267
|
+
case "pull_request_changes_requested":
|
|
268
|
+
return `${who}: ${d.reviewer} requested changes on the pull request (${d.review_url})${d.excerpt.text === "" ? "" : `: ${quoted(d.excerpt)}`}. Address the review, push, and reply on the pull request`;
|
|
259
269
|
default:
|
|
260
270
|
// A kind newer than this listener still produces a line: an event the
|
|
261
271
|
// agent is never told about is exactly the failure this reader prevents.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thehammer/danx-dashboard-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.276",
|
|
4
4
|
"description": "Stdio MCP server fronting danxbot's dashboard API for agents (operator sessions and dispatched workers alike): the generic danxbot_api/danxbot_api_list/danxbot_api_spec tools reach any route the caller's credential may call, plus dedicated agent-specific tools (plan_connect, request_permission, attach_file, and danxbot_slack_reply) (DX-3465, PLN-11 R-25).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|