@sellable/mcp 0.1.502 → 0.1.504
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.
|
@@ -29,6 +29,11 @@ const MANUAL_ONLY_PACKET_ACTION_TYPES = new Set([
|
|
|
29
29
|
"continue_prospeo_source",
|
|
30
30
|
"manual_source_replenishment",
|
|
31
31
|
]);
|
|
32
|
+
const TERMINAL_NO_ACTION_BLOCKER_CODES = new Set([
|
|
33
|
+
"paid_inmail_below_threshold",
|
|
34
|
+
"paid_inmail_credit_missing",
|
|
35
|
+
"paid_inmail_credit_stale",
|
|
36
|
+
]);
|
|
32
37
|
const SOURCE_PLAN_STATES = new Set([
|
|
33
38
|
"not_needed",
|
|
34
39
|
"use_existing_rows",
|
|
@@ -628,14 +633,16 @@ function sanitizeRefillTargetPlanResult(result) {
|
|
|
628
633
|
const eligibleSenderLedger = sanitizeEligibleSenderLedger(target.eligibleSenderLedger, selectedBySender);
|
|
629
634
|
const senderRefillPlans = sanitizeStructuredSenderPlans(target.senderRefillPlans, selectedBySender);
|
|
630
635
|
const globalActionQueue = buildSanitizedGlobalActionQueue(senderRefillPlans);
|
|
631
|
-
const
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
636
|
+
const hasTerminalNoActionBlocker = globalActionQueue.length === 0 &&
|
|
637
|
+
blockers.some((blocker) => TERMINAL_NO_ACTION_BLOCKER_CODES.has(String(blocker.code)));
|
|
638
|
+
const status = remainingProjectedGap === 0
|
|
639
|
+
? "complete"
|
|
640
|
+
: grossTarget <= 0
|
|
641
|
+
? "blocked"
|
|
642
|
+
: remainingReadyOrProjectedGap === 0
|
|
643
|
+
? "awaiting_scheduler_after_ready_buffer"
|
|
644
|
+
: hasTerminalNoActionBlocker
|
|
645
|
+
? "blocked"
|
|
639
646
|
: "needs_refill";
|
|
640
647
|
return {
|
|
641
648
|
...result,
|