@sellable/mcp 0.1.106 → 0.1.107

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.
@@ -45,6 +45,9 @@ type WorkflowTableStats = {
45
45
  messagesCount?: number;
46
46
  needsApprovalCount?: number;
47
47
  processingCount?: number;
48
+ queuedCount?: number;
49
+ cancellableCount?: number;
50
+ readyEnrichCount?: number;
48
51
  failedCount?: number;
49
52
  passRate?: {
50
53
  completed: number;
@@ -658,10 +658,11 @@ export async function waitForRubricResults(input) {
658
658
  const pending = Math.max(effectiveTarget - completed, 0);
659
659
  const failedCount = stats.failedCount ?? 0;
660
660
  const processingCount = stats.processingCount ?? 0;
661
- const needsEnrichCount = stats.needsEnrichCount ?? 0;
661
+ const queuedCount = stats.queuedCount ?? 0;
662
+ const cancellableCount = stats.cancellableCount ?? 0;
662
663
  const minPassFloorMet = minPassedCount !== null && passed >= minPassedCount;
663
664
  const unresolvedRowsResolvedAsFailures = pending > 0 && completed + failedCount >= effectiveTarget;
664
- const noActiveProcessing = processingCount === 0 && needsEnrichCount === 0;
665
+ const noActiveProcessing = processingCount === 0 && queuedCount === 0 && cancellableCount === 0;
665
666
  if (completed >= effectiveTarget) {
666
667
  const percent = completed > 0 ? Math.round((passed / completed) * 100) : 0;
667
668
  const rowSnapshot = includeRows
@@ -685,10 +686,11 @@ export async function waitForRubricResults(input) {
685
686
  stats,
686
687
  };
687
688
  }
688
- if (minPassFloorMet &&
689
- unresolvedRowsResolvedAsFailures &&
690
- noActiveProcessing) {
689
+ if (minPassFloorMet && noActiveProcessing) {
691
690
  const percent = completed > 0 ? Math.round((passed / completed) * 100) : 0;
691
+ const reason = unresolvedRowsResolvedAsFailures
692
+ ? "min_passed_count_met_with_resolved_failures"
693
+ : "min_passed_count_met_no_active_processing";
692
694
  const rowSnapshot = includeRows
693
695
  ? await getTableRowsMinimal(tableId, {
694
696
  limit: effectiveTarget,
@@ -697,7 +699,7 @@ export async function waitForRubricResults(input) {
697
699
  return {
698
700
  ready: true,
699
701
  partial: true,
700
- reason: "min_passed_count_met_with_resolved_failures",
702
+ reason,
701
703
  attempts,
702
704
  elapsedMs: Date.now() - start,
703
705
  tableId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/mcp",
3
- "version": "0.1.106",
3
+ "version": "0.1.107",
4
4
  "type": "module",
5
5
  "description": "Sellable MCP server for Claude Code and Codex campaign workflows",
6
6
  "main": "dist/index.js",