@50arms/platform-mcp 0.1.477 → 0.1.479

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 CHANGED
@@ -189,6 +189,12 @@ export function invalidEventReason(value) {
189
189
  // DX-5435: the line tells the agent which comment to signal on, so a person's comment must name it.
190
190
  if (isPersonsComment(value) && typeof d.comment_id !== "number")
191
191
  return "detail.comment_id is not a number";
192
+ // DX-7616 — `evidence` is OPTIONAL too (only present when the comment is about an Evidence record); a present-and-malformed one is not valid.
193
+ if (d.evidence !== undefined &&
194
+ !(isRecord(d.evidence) &&
195
+ typeof d.evidence.ref === "string" &&
196
+ isCappedText(d.evidence.question)))
197
+ return "detail.evidence is not {ref, question}";
192
198
  // DX-2906 — `problem` is OPTIONAL (only present when the comment named
193
199
  // one); absent is valid, but a present-and-malformed one is not.
194
200
  if (d.problem === undefined)
@@ -356,8 +362,12 @@ function describe(event) {
356
362
  const reply = !isPersonsComment(event)
357
363
  ? ""
358
364
  : `. ${onPlan ? planReplyInstruction(event.planId, d.comment_id) : replyInstruction(event.cardId, d.comment_id)}`;
365
+ // DX-7616: a comment about an Evidence record names it, as a comment on a problem names the problem.
366
+ const evidence = d.evidence;
359
367
  if (problem === undefined)
360
- return `${who} commented${onPlan ? " on the plan" : ""}: ${quoted(d.excerpt)}${reply}`;
368
+ return evidence === undefined
369
+ ? `${who} commented${onPlan ? " on the plan" : ""}: ${quoted(d.excerpt)}${reply}`
370
+ : `${who} commented${onPlan ? " on the plan" : ""} on Evidence record ${evidence.ref} ${quoted(evidence.question)}: ${quoted(d.excerpt)}${reply}`;
361
371
  // DX-7108 (operator correction, comment 21778): a person's comment that answers the problem is recorded as its answer by the session, quoting the comment.
362
372
  const answerHint = !isPersonsComment(event) || onPlan
363
373
  ? ""
@@ -612,7 +612,7 @@ var readOwnManifest = () => JSON.parse(
612
612
  readFileSync(new URL("../../package.json", import.meta.url), "utf8")
613
613
  ).version;
614
614
  var TOOLKIT_VERSION = resolveToolkitVersion(
615
- false ? void 0 : "0.1.477",
615
+ false ? void 0 : "0.1.479",
616
616
  readOwnManifest
617
617
  );
618
618
  function envelope(now) {
@@ -27,6 +27,7 @@ export const GET_ROUTE_BOARD_SCOPE = [
27
27
  ["/api/feedback/mine", "refuse"],
28
28
  ["/api/issues", "named"],
29
29
  ["/api/issues/:id/decision-records", "refuse"],
30
+ ["/api/issues/:id/evidence-records", "refuse"],
30
31
  ["/api/issues/:id/problems", "refuse"],
31
32
  ["/api/issues/:id/usage-runs", "refuse"],
32
33
  ["/api/issues/:id/usage-series", "refuse"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@50arms/platform-mcp",
3
- "version": "0.1.477",
3
+ "version": "0.1.479",
4
4
  "description": "Stdio MCP server fronting the 50 Arms dashboard API for agents (operator sessions and dispatched workers alike): the generic 50arms_api/50arms_api_list/50arms_api_spec tools reach any route the caller's credential may call, plus dedicated agent-specific tools (session_connect, request_permission, attach_file, and 50arms_slack_reply) (DX-3465, PLN-11 R-25).",
5
5
  "license": "MIT",
6
6
  "type": "module",