@chrisdudek/yg 5.5.0 → 5.5.1

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.js +5 -1
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -16465,6 +16465,7 @@ function appendVerdictEvent(yggRootPath, event) {
16465
16465
  }
16466
16466
 
16467
16467
  // src/core/fill.ts
16468
+ var MIN_DET_PAIRS_PER_WORKER = 8;
16468
16469
  function emitGroupedDiagnostics(items, kind, emitIssue) {
16469
16470
  if (items.length === 0) return;
16470
16471
  const byAspect = /* @__PURE__ */ new Map();
@@ -16710,7 +16711,10 @@ async function runFill(graph, opts) {
16710
16711
  if (diag.kind === "runtime") detRuntimeItems.push(diag.item);
16711
16712
  else malformedSuppressItems.push(diag.item);
16712
16713
  };
16713
- const detPoolSize = Math.min(detConcurrency, activeDetPairs.length);
16714
+ const detPoolSize = Math.min(
16715
+ detConcurrency,
16716
+ Math.floor(activeDetPairs.length / MIN_DET_PAIRS_PER_WORKER)
16717
+ );
16714
16718
  if (detPoolSize > 1) {
16715
16719
  const pool = new DetWorkerPool(graph, projectRoot, detPoolSize);
16716
16720
  const runViaPool = async (params) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrisdudek/yg",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "description": "Architecture rules your AI coding agent can't ignore. It gets the rules for a file before it edits, and every change is checked — by a free local script or an LLM reviewer — before it moves on. Works with Claude Code, Cursor, Copilot, Codex, Cline.",
5
5
  "type": "module",
6
6
  "bin": {