INNER CODE UNIT · TypeScript

loadVendoDir

runvendo/vendo · packages/vendo/src/actions/sync/index.ts:242

async function loadVendoDir(out: string, warnings: string[]): Promise<VendoDirState> {
  const previous = await readPrevious(path.join(out, "tools.json"), warnings);
  const overrides = await readOverrides(path.join(out, "overrides.json"));
  const judgments = await readJudgments(path.join(out, "judgments.json"));
  return { previousTools: previous?.tools ?? [], overrides, judgments };
}

/**
 * Standing judgments this extraction stranded — the grades a host still has on
 * disk and no longer gets.
 *
 * `applyJudgment` holds a judgment INERT when its recorded binding no longer
 * matches the tool's, so a handler that moved never inherits a grade meant for
 * whatever used to answer there. Correct, and silent: the tool quietly falls
 * back to `ungraded`, which the guard withholds exactly like `destructive`, so
 * every call asks. #1056 was 22 of 22 stranded that way — Maple moved its
 * `/maple` prefix out of the OpenAPI paths into the spec's `servers` url, and
 * nothing said so. `vendo doctor` counted the ungraded tools but cannot fail,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…