@sellable/mcp 0.1.471 → 0.1.472
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.
|
@@ -188,13 +188,15 @@ function sanitizeRefillTargetPlanResult(result) {
|
|
|
188
188
|
const remainingProjectedGap = senderPlans.reduce((sum, plan) => sum + numberValue(plan.remainingProjectedGap), 0);
|
|
189
189
|
const remainingReadyOrProjectedGap = senderPlans.reduce((sum, plan) => sum + numberValue(plan.remainingReadyOrProjectedGap), 0);
|
|
190
190
|
const blockers = sanitizeBlockers(result.blockers, selectedKeys);
|
|
191
|
-
const status = blockers.some((blocker) => ["sender_disconnected", "sender_sales_nav_disconnected"].includes(String(blocker.code)))
|
|
191
|
+
const status = blockers.some((blocker) => ["sender_disconnected", "sender_sales_nav_disconnected"].includes(String(blocker.code)))
|
|
192
192
|
? "blocked"
|
|
193
193
|
: remainingProjectedGap === 0
|
|
194
194
|
? "complete"
|
|
195
|
-
:
|
|
196
|
-
? "
|
|
197
|
-
:
|
|
195
|
+
: grossTarget <= 0
|
|
196
|
+
? "blocked"
|
|
197
|
+
: remainingReadyOrProjectedGap === 0
|
|
198
|
+
? "awaiting_scheduler_after_ready_buffer"
|
|
199
|
+
: "needs_refill";
|
|
198
200
|
return {
|
|
199
201
|
...result,
|
|
200
202
|
status,
|