@mrrlin-dev/mcp 0.4.206 → 0.4.207

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.
Files changed (2) hide show
  1. package/dist/bin.cjs +15 -4
  2. package/package.json +1 -1
package/dist/bin.cjs CHANGED
@@ -89690,9 +89690,20 @@ async function runDraftSpec(ctx, input, deps) {
89690
89690
  if (isTaskTerminalStatus(task.status)) return skipped("task_terminal");
89691
89691
  if (task.specWikiPageId) return skipped("spec_already_linked", { pageId: task.specWikiPageId });
89692
89692
  if ((task.blockedBy ?? []).length > 0) {
89693
- let blockers;
89693
+ let hasActiveBlocker;
89694
89694
  try {
89695
- blockers = await client.listTasks(projectSlug);
89695
+ const flag = process.env.MRRLIN_MCP_DRAFT_BLOCKER_STATUS_V1?.trim().toLowerCase();
89696
+ if (flag === "1") {
89697
+ const ids = blockerTaskIdsSchema.parse([...new Set(task.blockedBy)]);
89698
+ hasActiveBlocker = await client.getTaskBlockerStatusV1(projectSlug, ids, { signal: ctx.signal });
89699
+ if (typeof hasActiveBlocker !== "boolean") throw new Error("Invalid blocker status result");
89700
+ } else {
89701
+ if (flag && flag !== "0" && flag !== "false") {
89702
+ throw new Error("Invalid MRRLIN_MCP_DRAFT_BLOCKER_STATUS_V1");
89703
+ }
89704
+ const blockers = await client.listTasks(projectSlug);
89705
+ hasActiveBlocker = getActiveBlockedByIds(task.blockedBy, blockers).length > 0;
89706
+ }
89696
89707
  } catch (error51) {
89697
89708
  return {
89698
89709
  kind: "retry",
@@ -89700,7 +89711,7 @@ async function runDraftSpec(ctx, input, deps) {
89700
89711
  error: `blocker check failed for ${taskId}: ${errMessage3(error51)}`
89701
89712
  };
89702
89713
  }
89703
- if (getActiveBlockedByIds(task.blockedBy, blockers).length > 0) return skipped("blocked_by_active");
89714
+ if (hasActiveBlocker) return skipped("blocked_by_active");
89704
89715
  }
89705
89716
  const autoDeploy = task.autoDeploy ?? "off";
89706
89717
  let topology = null;
@@ -99403,7 +99414,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
99403
99414
  }
99404
99415
 
99405
99416
  // src/_generated/version.ts
99406
- var PKG_VERSION = "0.4.206";
99417
+ var PKG_VERSION = "0.4.207";
99407
99418
 
99408
99419
  // src/bridge-allowed-origins.ts
99409
99420
  var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrrlin-dev/mcp",
3
- "version": "0.4.206",
3
+ "version": "0.4.207",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mrrlin-mcp": "dist/bin.cjs"