@sellable/mcp 0.1.536 → 0.1.538

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.
@@ -380,9 +380,16 @@ function firstAction(plan) {
380
380
  }
381
381
  function doneReasonFromPlan(plan) {
382
382
  const action = firstAction(plan);
383
+ const packet = recordValue(plan.packet) ?? {};
384
+ const status = stringValue(plan.status) ?? stringValue(packet.status);
383
385
  return (stringValue(action?.doneReason) ??
384
- stringValue(recordValue(plan.packet)?.doneReason) ??
385
- stringValue(plan.doneReason));
386
+ stringValue(packet.doneReason) ??
387
+ stringValue(plan.doneReason) ??
388
+ (status === "complete" ? "complete" : null) ??
389
+ (status === "awaiting_scheduler_after_ready_buffer"
390
+ ? "loaded_awaiting_scheduler"
391
+ : null) ??
392
+ (status === "blocked" ? "blocked" : null));
386
393
  }
387
394
  function selectedLaneAuthority(plan, action) {
388
395
  const senderId = actionSenderId(action);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/mcp",
3
- "version": "0.1.536",
3
+ "version": "0.1.538",
4
4
  "type": "module",
5
5
  "description": "Sellable MCP server for Claude Code, Codex, and Hermes campaign workflows",
6
6
  "main": "dist/index.js",