@50arms/platform-mcp 0.1.578 → 0.1.579

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
@@ -512,6 +512,9 @@ const FILED_NOT_READIED_LABEL = "Filed, not readied";
512
512
  /** DX-7127 - the label the review-runnable ids sit under, and what to do about them: the gate is no build and no person's answer, so a dependency never holds it. */
513
513
  const REVIEWABLE_LABEL = "Review runnable now";
514
514
  const REVIEWABLE_INSTRUCTION = "start each card's named gate review (its next PRE gate): a depends_on never holds a review";
515
+ /** DX-8404 - the label the landing-released ids sit under, and the instruction: the label and instruction come before the ids, so a cut never takes them. */
516
+ const LANDING_RELEASED_LABEL = "Landing-released, build now";
517
+ const LANDING_RELEASED_INSTRUCTION = "a depends_on partner registered for landing, in a batch or pushed is never a wait: start each card's builder now, its worktree starts from the landing queue and the partner's branch (make add-worktree); never end a turn idle";
515
518
  function isNudgeCardRef(value) {
516
519
  return (isRecord(value) &&
517
520
  typeof value.id === "string" &&
@@ -521,6 +524,15 @@ function isReviewableNudgeCardRefArray(value) {
521
524
  return (Array.isArray(value) &&
522
525
  value.every((c) => isNudgeCardRef(c) && typeof c.gate === "string"));
523
526
  }
527
+ function isLandingReleasedNudgeCardRefArray(value) {
528
+ return (Array.isArray(value) &&
529
+ value.every((c) => {
530
+ const bases = c.bases;
531
+ return (isNudgeCardRef(c) &&
532
+ Array.isArray(bases) &&
533
+ bases.every((b) => typeof b === "string"));
534
+ }));
535
+ }
524
536
  function isBackgroundCommandArray(value) {
525
537
  return (Array.isArray(value) &&
526
538
  value.every((c) => isRecord(c) &&
@@ -553,6 +565,10 @@ export function invalidNudgeReason(value) {
553
565
  return "unreadied is not a {id,title}[] array";
554
566
  if (!isReviewableNudgeCardRefArray(value.reviewable))
555
567
  return "reviewable is not a {id,title,gate}[] array";
568
+ // DX-8404: read when present, never refused when absent (see `NudgeEvent.landingReleased`).
569
+ if (value.landingReleased !== undefined &&
570
+ !isLandingReleasedNudgeCardRefArray(value.landingReleased))
571
+ return "landingReleased is not a {id,title,bases}[] array";
556
572
  if (!isBackgroundCommandArray(value.commands))
557
573
  return "commands is not a {id,description,runningMinutes}[] array";
558
574
  if (value.freeSlots !== null &&
@@ -568,6 +584,11 @@ function cardList(cards) {
568
584
  function reviewableCardList(cards) {
569
585
  return cards.map((c) => `${c.id} "${c.title}" [${c.gate}]`).join(", ");
570
586
  }
587
+ function landingReleasedCardList(cards) {
588
+ return cards
589
+ .map((c) => `${c.id} "${c.title}" [from ${c.bases.join(", ")}]`)
590
+ .join(", ");
591
+ }
571
592
  /** DX-7127 - what the free slot count says about starting the reviews: how many may start at once, or that none may yet, or that nothing caps them. */
572
593
  function freeSlotsSentence(freeSlots) {
573
594
  if (freeSlots === null)
@@ -627,6 +648,8 @@ export function formatNudgeLine(event) {
627
648
  // DX-7127 - the label and instruction come before the ids, like the filed part, so a cut never takes the instruction.
628
649
  if (event.reviewable.length > 0)
629
650
  parts.push(`${REVIEWABLE_LABEL} (${REVIEWABLE_INSTRUCTION}; ${freeSlotsSentence(event.freeSlots)}): ${reviewableCardList(event.reviewable)}`);
651
+ if (event.landingReleased !== undefined && event.landingReleased.length > 0)
652
+ parts.push(`${LANDING_RELEASED_LABEL} (${LANDING_RELEASED_INSTRUCTION}): ${landingReleasedCardList(event.landingReleased)}`);
630
653
  // DX-6707 (DEC-818) - named apart from the cards: the check is the session's own command, not a card it must work.
631
654
  if (event.commands.length > 0)
632
655
  parts.push(`${BACKGROUND_COMMAND_LABEL} (${BACKGROUND_COMMAND_INSTRUCTION}): ${backgroundCommandList(event.commands)}`);
@@ -630,7 +630,7 @@ var readOwnManifest = () => JSON.parse(
630
630
  readFileSync(new URL("../../package.json", import.meta.url), "utf8")
631
631
  ).version;
632
632
  var TOOLKIT_VERSION = resolveToolkitVersion(
633
- false ? void 0 : "0.1.578",
633
+ false ? void 0 : "0.1.579",
634
634
  readOwnManifest
635
635
  );
636
636
  function envelope(now) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@50arms/platform-mcp",
3
- "version": "0.1.578",
3
+ "version": "0.1.579",
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",