@50arms/platform-mcp 0.1.460 → 0.1.461

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
@@ -272,10 +272,10 @@ function isPersonsComment(event) {
272
272
  return event.origin === "operator" && event.release !== true;
273
273
  }
274
274
  /**
275
- * DX-5799: what the agent does with a person's comment. The person's comment shows the agent that received it, and the reply is ONE message the agent writes
276
- * twice: first a short acknowledgement of its own (`phase: "ack"`, so the person sees the comment was received), then its full answer (`phase: "reply"`) written
277
- * over the same message, so the answer never arrives as a separate comment. The text is written here, with the line the agent reads, so every session that
278
- * updates this package follows it without a plugin change.
275
+ * DX-5799: what the agent does with a person's comment. The person's comment shows the agent that received it, and the answer is a comment of its own under it
276
+ * (DX-7100, DEC-742) that the agent writes twice: first a short acknowledgement of its own (`phase: "ack"`, so the person sees the comment was received), then its
277
+ * full answer (`phase: "reply"`) written over that acknowledgement. A further answer is a new one of its own, never written over the first. The text is written here,
278
+ * with the line the agent reads, so every session that updates this package follows it without a plugin change.
279
279
  */
280
280
  export function replyInstruction(cardId, commentId) {
281
281
  return replyInstructionAt(`/api/issues/${cardId}/comments/${commentId}/reply`);
@@ -289,7 +289,7 @@ function subjectRef(event) {
289
289
  return typeof event.planId === "number" ? event.planRef : event.cardId;
290
290
  }
291
291
  function replyInstructionAt(path) {
292
- return `Answer it through its reply message: first call 50arms_api POST ${path} with {"phase":"ack","body":"<one short sentence of your own acknowledging it>"} so the person sees it was received, then do the work and call POST ${path} again with {"phase":"reply","body":"<your full answer>"}, which replaces your acknowledgement in the same message. A comment you already answered (its follow-up arrived after your answer) takes only another {"phase":"reply","body":"<your answer to the follow-up>"}, which is added as the next message; never send "ack" after an answer, and never answer with a separate comment`;
292
+ return `Answer it through its reply route: first call 50arms_api POST ${path} with {"phase":"ack","body":"<one short sentence of your own acknowledging it>"} so the person sees it was received, then do the work and call POST ${path} again with {"phase":"reply","body":"<your full answer>"}, which replaces your acknowledgement. Another event for a comment you already answered (a follow-up the person added to it before your answer) takes only another {"phase":"reply","body":"<your answer to the follow-up>"}, which is a new answer of its own under the comment, never written over the one you gave; never send "ack" after an answer, and never answer through the plain comment route`;
293
293
  }
294
294
  /** DX-6064: what a session does with a person's answer (or changed answer), so a decision never lives only in its conversation. */
295
295
  export const UPDATE_RECORDS_NOW = "Update every plan record and card this answer changes, this turn";
@@ -443,7 +443,7 @@ function resolveToolkitVersion(stamped, readManifest) {
443
443
  return stamped ?? readManifest();
444
444
  }
445
445
  var readOwnManifest = () => JSON.parse(readFileSync2(new URL("../../package.json", import.meta.url), "utf8")).version;
446
- var TOOLKIT_VERSION = resolveToolkitVersion(false ? void 0 : "0.1.460", readOwnManifest);
446
+ var TOOLKIT_VERSION = resolveToolkitVersion(false ? void 0 : "0.1.461", readOwnManifest);
447
447
  function envelope(now) {
448
448
  return { contract_version: CONTRACT_VERSION, toolkit_version: TOOLKIT_VERSION, profile: PROFILE, measured_at: now.toISOString() };
449
449
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@50arms/platform-mcp",
3
- "version": "0.1.460",
3
+ "version": "0.1.461",
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",