@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.
- package/dist/refill-run-loop.js +9 -5
- package/package.json +1 -1
package/dist/refill-run-loop.js
CHANGED
|
@@ -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
|
-
|
|
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" &&
|