@50arms/platform-mcp 0.1.482 → 0.1.483
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 +18 -0
- package/dist/machine-toolkit.js +1 -1
- package/dist/urgent-records.js +1 -0
- package/package.json +1 -1
package/dist/listen.js
CHANGED
|
@@ -706,6 +706,21 @@ export function formatLeftoverProcessesLine(event) {
|
|
|
706
706
|
throw new Error(`malformed leftover-processes message: ${invalid}`);
|
|
707
707
|
return pacingRelayLine(event.text);
|
|
708
708
|
}
|
|
709
|
+
/** Why a queue notice cannot be read, or `null` when it can. */
|
|
710
|
+
export function invalidQueueNoticeReason(value) {
|
|
711
|
+
if (!isRecord(value))
|
|
712
|
+
return "the queue notice is not an object";
|
|
713
|
+
if (typeof value.text !== "string" || value.text.trim() === "")
|
|
714
|
+
return "text is empty";
|
|
715
|
+
return null;
|
|
716
|
+
}
|
|
717
|
+
/** The one readable line for a queue notice: the dashboard's text, on one line, cut like a pacing line. Throws, naming the fault, on a malformed message. */
|
|
718
|
+
export function formatQueueNoticeLine(event) {
|
|
719
|
+
const invalid = invalidQueueNoticeReason(event);
|
|
720
|
+
if (invalid !== null)
|
|
721
|
+
throw new Error(`malformed queue notice: ${invalid}`);
|
|
722
|
+
return pacingRelayLine(event.text);
|
|
723
|
+
}
|
|
709
724
|
/** Why an owed-comment message cannot be read, or `null` when it can. */
|
|
710
725
|
export function invalidOwedCommentReason(value) {
|
|
711
726
|
if (!isRecord(value))
|
|
@@ -1074,6 +1089,9 @@ export async function runListener(options, deps) {
|
|
|
1074
1089
|
// DX-7107 - processes this session started and left running: a reminder, non-urgent and session-scoped like an owed comment.
|
|
1075
1090
|
if (message.event === "leftover_processes")
|
|
1076
1091
|
return emitAdvisory(message, "leftover-processes message", invalidLeftoverProcessesReason, (p) => formatLeftoverProcessesLine(p), () => ({ source: "leftover_processes" }), "session");
|
|
1092
|
+
// DX-7786 (DEC-1352) - the dispatch queue's notice about a job no agent can take: a text record, non-urgent and session-scoped, with no `offer`.
|
|
1093
|
+
if (message.event === "queue_notice")
|
|
1094
|
+
return emitAdvisory(message, "queue notice", invalidQueueNoticeReason, (p) => formatQueueNoticeLine(p), () => ({ source: "queue_notice" }), "session");
|
|
1077
1095
|
// DX-7748 (DEC-1340): a queued job's frame names it as `job`, which the record carries as `offer` for the plugin to take.
|
|
1078
1096
|
if (message.event === "assignment")
|
|
1079
1097
|
return emitAdvisory(message, "assignment message", invalidQueuedAssignmentReason, (p) => formatAssignmentLine(p), () => ({ source: "assignment" }), "session", (p) => offerOfAssignment(p));
|
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.483",
|
|
616
616
|
readOwnManifest
|
|
617
617
|
);
|
|
618
618
|
function envelope(now) {
|
package/dist/urgent-records.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/platform-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.483",
|
|
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",
|