@50arms/platform-mcp 0.1.513 → 0.1.515
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 +3 -6
- package/dist/machine-toolkit.js +1 -1
- package/package.json +1 -1
package/dist/listen.js
CHANGED
|
@@ -143,13 +143,10 @@ export function invalidEventReason(value) {
|
|
|
143
143
|
const p = value.policy;
|
|
144
144
|
if (!isRecord(p) ||
|
|
145
145
|
(p.kind !== "behavior_policy" && p.kind !== "behavior_policy_group") ||
|
|
146
|
-
typeof p.id !== "number" ||
|
|
147
|
-
!Number.isSafeInteger(p.id) ||
|
|
148
|
-
p.id < 1 ||
|
|
149
146
|
typeof p.ref !== "string" ||
|
|
150
147
|
p.ref === "" ||
|
|
151
148
|
typeof p.teamId !== "number")
|
|
152
|
-
return "policy is not null or {kind,
|
|
149
|
+
return "policy is not null or {kind, ref, teamId}";
|
|
153
150
|
if (value.cardId !== null || value.planId !== null)
|
|
154
151
|
return "cardId and planId are not null on a policy event";
|
|
155
152
|
}
|
|
@@ -362,9 +359,9 @@ export function policyReplyInstruction(policy, commentId) {
|
|
|
362
359
|
const base = policy.kind === "behavior_policy"
|
|
363
360
|
? "/api/behavior-policies"
|
|
364
361
|
: "/api/behavior-policy-groups";
|
|
365
|
-
return replyInstructionAt(`${base}/${policy.
|
|
362
|
+
return replyInstructionAt(`${base}/${policy.ref}/comments/${commentId}/reply`);
|
|
366
363
|
}
|
|
367
|
-
/** DX-6211: the event's subject as the line names it: the card's id, or the plan's reference (`PLAN-72`, sent by the dashboard as `planRef`) for a plan event, or (DX-7658) the policy's or group's (`BP-3`, `BPG-3`). Only called on an event `invalidEventReason` accepted. */
|
|
364
|
+
/** DX-6211: the event's subject as the line names it: the card's id, or the plan's reference (`PLAN-72`, sent by the dashboard as `planRef`) for a plan event, or (DX-7658) the policy's or group's (`BP-3`, `BPC-3`, `BPG-3`, `BPGC-3`). Only called on an event `invalidEventReason` accepted. */
|
|
368
365
|
function subjectRef(event) {
|
|
369
366
|
if (event.policy !== undefined && event.policy !== null)
|
|
370
367
|
return event.policy.ref;
|
package/dist/machine-toolkit.js
CHANGED
|
@@ -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.
|
|
615
|
+
false ? void 0 : "0.1.515",
|
|
616
616
|
readOwnManifest
|
|
617
617
|
);
|
|
618
618
|
function envelope(now) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/platform-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.515",
|
|
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",
|