@50arms/platform-mcp 0.1.457 → 0.1.458
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 +3 -3
- package/dist/listen.js +3 -1
- package/dist/machine-toolkit.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -421,13 +421,13 @@ yours too) is a call to it. Find a route with \`50arms_api_list\`. Read its exac
|
|
|
421
421
|
|
|
422
422
|
RESOURCES. Most collections take GET (list) and POST (create); a single resource (\`<collection>/<id>\`) takes
|
|
423
423
|
GET, PATCH or PUT (send only the fields you change) and DELETE. A card is edited at
|
|
424
|
-
\`PATCH /api/issues/<id>/edit\`. A card get
|
|
424
|
+
\`PATCH /api/issues/<id>/edit\`. A card get or list answers the compact row, a list one page of 50 with
|
|
425
425
|
\`total\` (page with \`limit\` and \`offset\`). Name each other field or relation you need in the \`fields\` query
|
|
426
426
|
tree. \`GET /api/resources/<resource>/fields\` lists the names.
|
|
427
427
|
|
|
428
428
|
STALE HASH. A write to contested text sends back the \`content_hash\` or \`base_hash\` you read. A stale content write is
|
|
429
429
|
never refused: \`collided\` says what it met, so re-read. Only 409 \`merge_base_unknown\` is: reapply your
|
|
430
|
-
change to the text and hash it returns. Settings and sign-offs still refuse a stale hash: re-read
|
|
430
|
+
change to the text and hash it returns. Settings and sign-offs still refuse a stale hash: re-read and retry.
|
|
431
431
|
|
|
432
432
|
REFUSALS. A 4xx body is \`{error, ...}\`, and its other fields name the fix: \`offending_keys\`, \`failed_gate\`,
|
|
433
433
|
\`unresolved_items\`, \`did_you_mean\`.
|
|
@@ -435,7 +435,7 @@ REFUSALS. A 4xx body is \`{error, ...}\`, and its other fields name the fix: \`o
|
|
|
435
435
|
WRITING STANDARD, for every title, summary, description, comment, problem, solution and plan record you write. The
|
|
436
436
|
reader is new to the subject and will not read the code or docs: what you write is their documentation. Open with
|
|
437
437
|
plain background (what it is, why, what is wrong or changes) before evidence.
|
|
438
|
-
Define each term a newcomer would not know. Cite exact ids (\`PBLM-2757\`, not "problem 2757"), SHAs and paths. Be brief; never transcribe reasoning. A title or summary alone must let the reader decide.
|
|
438
|
+
Define each term a newcomer would not know. Cite exact ids (\`PBLM-2757\`, not "problem 2757"), SHAs and paths. Card ids render with their plan; never add it. Be brief; never transcribe reasoning. A title or summary alone must let the reader decide.
|
|
439
439
|
|
|
440
440
|
DESIGN. UI designs and style options go on the card they concern (\`mini_app_publish\`), never an Artifact or HTML page.
|
|
441
441
|
Options are design states, never a chat or text question; a person chooses.
|
package/dist/listen.js
CHANGED
|
@@ -311,7 +311,9 @@ function describe(event) {
|
|
|
311
311
|
const reply = !isPersonsComment(event) ? "" : `. ${onPlan ? planReplyInstruction(event.planId, d.comment_id) : replyInstruction(event.cardId, d.comment_id)}`;
|
|
312
312
|
if (problem === undefined)
|
|
313
313
|
return `${who} commented${onPlan ? " on the plan" : ""}: ${quoted(d.excerpt)}${reply}`;
|
|
314
|
-
|
|
314
|
+
// DX-7108 (operator correction, comment 21778): a person's comment that answers the problem is recorded as its answer by the session, quoting the comment.
|
|
315
|
+
const answerHint = !isPersonsComment(event) || onPlan ? "" : `. If the comment decides the problem, record it as the answer in the same turn: POST /api/issues/${event.cardId}/problems/${problem.id}/answer with the chosen solution_id or freeform and provenance {"source":"comment","source_ref":"${d.comment_id}","quote":"<their words>"}`;
|
|
316
|
+
return `${who} commented on problem ${quoted(problem.statement)}: ${quoted(d.excerpt)}${reply}${answerHint}`;
|
|
315
317
|
}
|
|
316
318
|
case "solution_answered": {
|
|
317
319
|
// DX-2735: every answer answers ONE problem on a card that may carry several,
|
package/dist/machine-toolkit.js
CHANGED
|
@@ -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.
|
|
446
|
+
var TOOLKIT_VERSION = resolveToolkitVersion(false ? void 0 : "0.1.458", 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.
|
|
3
|
+
"version": "0.1.458",
|
|
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",
|