@50arms/platform-mcp 0.1.452 → 0.1.453

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/index.js CHANGED
@@ -889,6 +889,7 @@ strictTool("session_connect",
889
889
  disconnect: z.boolean().optional().describe("true = leave `target` (the plan or card you hold); no `title`."),
890
890
  role: z
891
891
  .string()
892
+ // Keep in step with `ROLE_KEY_PATTERN` (`src/lib/auth-rules.ts`): this published package cannot import the service's source.
892
893
  .regex(/^[a-z0-9]+(-[a-z0-9]+)*$/)
893
894
  .optional()
894
895
  .describe(
package/dist/listen.js CHANGED
@@ -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 overwrites the same message; never answer with a separate comment`;
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`;
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";
@@ -250,7 +250,7 @@ function resolveToolkitVersion(stamped, readManifest) {
250
250
  return stamped ?? readManifest();
251
251
  }
252
252
  var readOwnManifest = () => JSON.parse(readFileSync2(new URL("../../package.json", import.meta.url), "utf8")).version;
253
- var TOOLKIT_VERSION = resolveToolkitVersion(false ? void 0 : "0.1.452", readOwnManifest);
253
+ var TOOLKIT_VERSION = resolveToolkitVersion(false ? void 0 : "0.1.453", readOwnManifest);
254
254
  function envelope(now) {
255
255
  return { contract_version: CONTRACT_VERSION, toolkit_version: TOOLKIT_VERSION, profile: PROFILE, measured_at: now.toISOString() };
256
256
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@50arms/platform-mcp",
3
- "version": "0.1.452",
3
+ "version": "0.1.453",
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",