@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 status = blockers.some((blocker) => ["sender_disconnected", "sender_sales_nav_disconnected"].includes(String(blocker.code)))
632
- ? "blocked"
633
- : remainingProjectedGap === 0
634
- ? "complete"
635
- : grossTarget <= 0
636
- ? "blocked"
637
- : remainingReadyOrProjectedGap === 0
638
- ? "awaiting_scheduler_after_ready_buffer"
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/mcp",
3
- "version": "0.1.502",
3
+ "version": "0.1.504",
4
4
  "type": "module",
5
5
  "description": "Sellable MCP server for Claude Code and Codex campaign workflows",
6
6
  "main": "dist/index.js",