@50arms/platform-mcp 0.1.484 → 0.1.485

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
@@ -523,8 +523,25 @@ export function invalidNudgeReason(value) {
523
523
  Number.isInteger(value.freeSlots) &&
524
524
  value.freeSlots >= 0))
525
525
  return "freeSlots is not a count or null";
526
+ if (value.job !== null && !isNudgeJobRef(value.job))
527
+ return "job is not a {queueItemId,batchId,repo,branch} object or null";
526
528
  return null;
527
529
  }
530
+ /** DX-7843: whether `value` is a fix job a nudge names: positive queue item and batch ids, and the repo and branch as text. */
531
+ function isNudgeJobRef(value) {
532
+ return (isRecord(value) &&
533
+ isPositiveId(value.queueItemId) &&
534
+ isPositiveId(value.batchId) &&
535
+ typeof value.repo === "string" &&
536
+ value.repo !== "" &&
537
+ typeof value.branch === "string" &&
538
+ value.branch !== "");
539
+ }
540
+ /** DX-7843 - what a nudge says to the holder of a fix job: which job, and the moves that carry it on or give it up. */
541
+ function fixJobPart(job) {
542
+ const id = job.queueItemId;
543
+ return `Your fix job ${id} (red landing batch ${job.batchId}, ${job.repo} → ${job.branch}) is still yours and every landing waits for it: continue it now. Read where it stands with GET /api/dispatch-queue/${id}/fix, fix every failure forward on its fix branch in its worktree, check with \`make lock-rerun ITEM=${id}\`, then report with \`make lock-done ITEM=${id}\`. If you cannot work it, leave it with DELETE /api/dispatch-queue/${id}/take`;
544
+ }
528
545
  function cardList(cards) {
529
546
  return cards.map((c) => `${c.id} "${c.title}"`).join(", ");
530
547
  }
@@ -587,6 +604,9 @@ export function formatNudgeLine(event) {
587
604
  const parts = [];
588
605
  if (event.unreadied.length > 0)
589
606
  parts.push(`${FILED_NOT_READIED_LABEL} (${FILED_NOT_READIED_INSTRUCTION}): ${cardList(event.unreadied)}`);
607
+ // DX-7843 (AC 6, DEC-1248) - the holder of a fix job is told to continue it, and never that it lost it: the job stays its own while it is connected. The instruction leads, so a cut never takes it.
608
+ if (event.job !== null)
609
+ parts.push(fixJobPart(event.job));
590
610
  // DX-7127 - the label and instruction come before the ids, like the filed part, so a cut never takes the instruction.
591
611
  if (event.reviewable.length > 0)
592
612
  parts.push(`${REVIEWABLE_LABEL} (${REVIEWABLE_INSTRUCTION}; ${freeSlotsSentence(event.freeSlots)}): ${reviewableCardList(event.reviewable)}`);
@@ -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.484",
615
+ false ? void 0 : "0.1.485",
616
616
  readOwnManifest
617
617
  );
618
618
  function envelope(now) {
@@ -4,6 +4,8 @@ export const GET_ROUTE_BOARD_SCOPE = [
4
4
  ["/api/agent-session-analytics", "refuse"],
5
5
  ["/api/agents/:agentId/halt-history", "refuse"],
6
6
  ["/api/audit-events", "refuse"],
7
+ ["/api/behavior-events", "refuse"],
8
+ ["/api/behavior-policies", "refuse"],
7
9
  ["/api/boards", "refuse"],
8
10
  ["/api/boards/:boardId", "refuse"],
9
11
  ["/api/boards/:boardId/context-cost", "refuse"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@50arms/platform-mcp",
3
- "version": "0.1.484",
3
+ "version": "0.1.485",
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",