@sellable/mcp 0.1.538 → 0.1.540

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.
@@ -642,17 +642,21 @@ function getPlanLine(plan) {
642
642
  };
643
643
  }
644
644
  function packetCoherenceFailure(plan) {
645
- const fingerprint = fingerprintFromPlan(plan);
646
- if (!fingerprint.planRevision || !fingerprint.targetShapeRevision) {
647
- return "missing_fingerprint";
648
- }
649
645
  const action = firstAction(plan);
650
646
  const doneReason = doneReasonFromPlan(plan);
651
647
  if (doneReason && action && action.type !== "done") {
652
- return "terminal_with_action_queue";
648
+ const type = stringValue(action.type);
649
+ if (!(doneReason === "loaded_awaiting_scheduler" &&
650
+ type === "wait_for_scheduler")) {
651
+ return "terminal_with_action_queue";
652
+ }
653
653
  }
654
654
  if (!action)
655
655
  return null;
656
+ const fingerprint = fingerprintFromPlan(plan);
657
+ if (!fingerprint.planRevision || !fingerprint.targetShapeRevision) {
658
+ return "missing_fingerprint";
659
+ }
656
660
  const toolInput = actionToolInput(action);
657
661
  const type = stringValue(action.type);
658
662
  if (type === "prepare_messages" &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/mcp",
3
- "version": "0.1.538",
3
+ "version": "0.1.540",
4
4
  "type": "module",
5
5
  "description": "Sellable MCP server for Claude Code, Codex, and Hermes campaign workflows",
6
6
  "main": "dist/index.js",