@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.
- package/dist/refill-run-loop.js +9 -2
- package/package.json +1 -1
package/dist/refill-run-loop.js
CHANGED
|
@@ -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(
|
|
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);
|