versions.readWorksfunctionno test imports itfunction readWorks(root: string): readonly WorkFile[]Every release.ts under root, as { path (from root, with /), text }, in path order.
The records of the works under a folder, found by walking it (commons 0026-works-versioning FR-032): every file named release.ts, with its path from the folder, for the rule plugin of holdHarness that judges what a folder can judge offline.
Host layer: it reads the file system. It skips node_modules, .git, .claude and _site, which hold no work's record. The command (../versions.ts) reads the tracked files of Git instead, so that an untracked file is no work; this walk is for a harness's check of a folder with no Git.
import { readWorks } from "./scan.ts";
readWorks(".").map((w) => w.path); // ["commons/core/release.ts", ...]versions.readWorksfunctionno test imports itfunction readWorks(root: string): readonly WorkFile[]Every release.ts under root, as { path (from root, with /), text }, in path order.
readWorksfunctionfunction readWorks(root: string): readonly WorkFile[]Every release.ts under root, as { path (from root, with /), text }, in path order.