@mark1russell7/conventions 0.27.0 → 0.28.0

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.
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-DRAlJPKd.js","names":["WORKFLOW","indentOf","valueOf","indentOf","WORKFLOW","indentOf","valueOf","WORKFLOW","DECLARATION","MAX_BYTES","indentOf","WORKFLOW","valueOf","indentOf","WORKFLOW","indentOf","WORKFLOW"],"sources":["../src/config.ts","../src/workspace.ts","../src/rule.ts","../../site-pages/src/data/versions.ts","../../site-pages/src/data/changelog.ts","../../site-pages/src/data/status.ts","../../site-pages/src/render/releases.ts","../../site-pages/src/render/status.ts","../src/rules/changelog-version.ts","../src/rules/cue-preset.ts","../src/workflow.ts","../src/rules/main-runs-finish.ts","../src/rules/gate-trigger.ts","../src/change.ts","../src/home-exports.ts","../src/map.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-local-paths.ts","../src/rules/pages-site.ts","../src/rules/pinned-git-deps.ts","../src/rules/push-main-only.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tsconfig-test.ts","../src/rules/tests-required.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/unreleased-change.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts"],"sourcesContent":["/**\n * The configuration of the check: the field `conventions` of the root `package.json`. Each exception\n * needs a reason: a rule that is off, files that a rule ignores, and a changed option. Thus each\n * exception is visible.\n */\nimport type { OptionValue, Options, Rule } from \"./rule.ts\";\n\n/** The configuration of one rule, after the check of its fields. */\nexport interface RuleConfig {\n /** The reason why the rule is off. The rule is on when this field is missing. */\n readonly off?: string;\n /** The globs of files that the rule does not report. */\n readonly ignore: readonly string[];\n /** The reason of `ignore` or of the changed options. */\n readonly reason?: string;\n /** The options of the rule, with the defaults. */\n readonly options: Options;\n}\n\n/** The configuration of the check. */\nexport interface ConventionsConfig {\n /** The globs of the package folders. The default is the globs of the workspace. */\n readonly packages?: readonly string[];\n /** The configuration of each rule, by its id. */\n readonly rules: Readonly<Record<string, RuleConfig>>;\n}\n\n/** The fields of the configuration of a rule that are not options. */\nconst RULE_FIELDS = [\"off\", \"ignore\", \"reason\"];\n\nconst isObject = (value: unknown): value is Record<string, unknown> => typeof value === \"object\" && value !== null && !Array.isArray(value);\n\nconst isStrings = (value: unknown): value is string[] => Array.isArray(value) && value.every((item) => typeof item === \"string\");\n\n/** This function gives the options of a rule with their defaults. */\nexport function defaultOptions(rule: Rule): Options {\n return Object.fromEntries(Object.entries(rule.options).map(([name, spec]) => [name, spec.default]));\n}\n\n/**\n * This function reads the field `conventions` of the root `package.json` (`value`), and gives the\n * configuration of each rule of `rules`.\n *\n * @throws Error when the field has a wrong shape, an unknown rule or option, or an exception or a changed option without a reason\n */\nexport function parseConfig(value: unknown, rules: readonly Rule[]): ConventionsConfig {\n const byId = new Map(rules.map((rule) => [rule.id, rule]));\n const result: Record<string, RuleConfig> = {};\n for (const rule of rules) result[rule.id] = { ignore: [], options: defaultOptions(rule) };\n if (value === undefined) return { rules: result };\n if (!isObject(value)) throw new Error(\"The field conventions of package.json must be an object.\");\n const unknown = Object.keys(value).filter((key) => key !== \"packages\" && key !== \"rules\" && key !== \"$comment\");\n if (unknown.length > 0) throw new Error(`conventions has unknown fields: ${unknown.join(\", \")}.`);\n const packages = value[\"packages\"];\n if (packages !== undefined && !isStrings(packages)) throw new Error(\"conventions.packages must be an array of globs.\");\n const rulesValue = value[\"rules\"] ?? {};\n if (!isObject(rulesValue)) throw new Error(\"conventions.rules must be an object, with a rule id for each key.\");\n for (const [id, entry] of Object.entries(rulesValue)) {\n const rule = byId.get(id);\n if (rule === undefined) throw new Error(`conventions.rules has an unknown rule: ${id}. The rules are: ${[...byId.keys()].join(\", \")}.`);\n const where = `conventions.rules[\"${id}\"]`;\n if (!isObject(entry)) throw new Error(`${where} must be an object, for example { \"off\": \"<reason>\" }.`);\n const off = entry[\"off\"];\n if (off !== undefined && (typeof off !== \"string\" || off.trim() === \"\")) throw new Error(`${where}.off must be the reason why the rule is off, as text.`);\n const ignore = entry[\"ignore\"] ?? [];\n if (!isStrings(ignore)) throw new Error(`${where}.ignore must be an array of globs.`);\n const reason = entry[\"reason\"];\n if (reason !== undefined && (typeof reason !== \"string\" || reason.trim() === \"\")) throw new Error(`${where}.reason must be text.`);\n if (ignore.length > 0 && reason === undefined) throw new Error(`${where}.ignore needs a reason: add \"reason\": \"<why these files are an exception>\".`);\n const options: Record<string, OptionValue> = { ...defaultOptions(rule) };\n const changed: string[] = [];\n for (const [name, option] of Object.entries(entry)) {\n if (RULE_FIELDS.includes(name)) continue;\n const spec = rule.options[name];\n if (spec === undefined) {\n const known = [...RULE_FIELDS, ...Object.keys(rule.options)].join(\", \");\n throw new Error(`${where} has an unknown field: ${name}. The fields are: ${known}.`);\n }\n const good = spec.type === \"strings\" ? isStrings(option) : typeof option === spec.type;\n if (!good) throw new Error(`${where}.${name} must be ${spec.type === \"strings\" ? \"an array of strings\" : `a ${spec.type}`}.`);\n options[name] = option as OptionValue;\n changed.push(name);\n }\n // A changed option can make a rule weaker, so it needs a reason, as `ignore` does\n if (changed.length > 0 && reason === undefined && off === undefined) {\n throw new Error(`${where} changes the option${changed.length > 1 ? \"s\" : \"\"} ${changed.join(\", \")}, and needs a reason: add \"reason\": \"<why this repository changes the default>\".`);\n }\n result[id] = {\n ...(off === undefined ? {} : { off }),\n ignore,\n ...(reason === undefined ? {} : { reason }),\n options,\n };\n }\n return { ...(packages === undefined ? {} : { packages }), rules: result };\n}\n","/**\n * The package folders of a repository: the folders that the globs of the workspace name, with a\n * `package.json` file. This file is a copy of `workspace.ts` of `@mark1russell7/api-report`, so that\n * each tool has no runtime dependency.\n */\nimport { existsSync, readdirSync, readFileSync } from \"node:fs\";\nimport { join, relative, sep } from \"node:path\";\n\n/** This function compares two strings by their code units, as the default sort does. */\nexport const byCode = (a: string, b: string): number => (a < b ? -1 : a > b ? 1 : 0);\n\n/** This function gives a path relative to `root`, with `/`. */\nexport const relativePath = (root: string, file: string): string => relative(root, file).split(sep).join(\"/\");\n\n/** The characters that have a meaning in a regular expression. */\nconst SPECIAL = new Set([...\"\\\\^$.|+()[]{}*?/\"]);\n\n/**\n * This function gives a regular expression for a glob of `/` paths. `*` matches a part of one path\n * segment, `?` matches one character, `**` matches zero or more segments, and `{a,b}` matches one of\n * its parts. The function escapes each other special character.\n */\nexport function globToRegExp(glob: string): RegExp {\n let source = \"\";\n let braces = 0;\n for (let index = 0; index < glob.length; index++) {\n const char = glob.charAt(index);\n if (char === \"/\" && glob.slice(index + 1) === \"**\") {\n // `a/**` matches `a` and each path under it\n source += \"(?:/.*)?\";\n break;\n }\n if (char === \"*\" && glob.charAt(index + 1) === \"*\") {\n const atStart = index === 0 || glob.charAt(index - 1) === \"/\";\n const after = glob.charAt(index + 2);\n if (atStart && after === \"/\") {\n // `**/` matches zero or more whole segments\n source += \"(?:[^/]+/)*\";\n index += 2;\n } else if (atStart && after === \"\") {\n source += \".*\";\n index += 1;\n } else {\n source += \"[^/]*\";\n index += 1;\n }\n } else if (char === \"*\") source += \"[^/]*\";\n else if (char === \"?\") source += \"[^/]\";\n else if (char === \"{\") {\n braces++;\n source += \"(?:\";\n } else if (char === \"}\" && braces > 0) {\n braces--;\n source += \")\";\n } else if (char === \",\" && braces > 0) source += \"|\";\n else if (SPECIAL.has(char)) source += `\\\\${char}`;\n else source += char;\n }\n if (braces > 0) throw new Error(`A glob with a \"{\" that has no \"}\": ${glob}`);\n return new RegExp(`^${source}$`);\n}\n\n/** The characters that make a path segment a pattern. */\nconst GLOB_CHARS = /[*?{]/;\n\n/** This function removes the `/` characters at the end of a path, with a loop in place of a regular expression. */\nfunction trimEndSlashes(path: string): string {\n let end = path.length;\n while (end > 0 && path.charAt(end - 1) === \"/\") end -= 1;\n return path.slice(0, end);\n}\n\n/**\n * This function gives the folders under `root` that a glob names, as `/` paths relative to `root`,\n * in the order of the code units. It does not go into `node_modules` or a folder that starts with `.`.\n */\nexport function globFolders(root: string, glob: string): string[] {\n const clean = trimEndSlashes(glob.startsWith(\"./\") ? glob.slice(2) : glob);\n const segments = clean.split(\"/\");\n const firstPattern = segments.findIndex((segment) => GLOB_CHARS.test(segment));\n if (firstPattern < 0) return existsSync(join(root, clean)) ? [clean] : [];\n const base = segments.slice(0, firstPattern).join(\"/\");\n const depth = clean.includes(\"**\") ? Number.POSITIVE_INFINITY : segments.length - firstPattern;\n const pattern = globToRegExp(clean);\n const start = join(root, base);\n if (!existsSync(start)) return [];\n const found: string[] = [];\n const walk = (folder: string, level: number): void => {\n for (const entry of readdirSync(folder, { withFileTypes: true })) {\n if (!entry.isDirectory() || entry.name === \"node_modules\" || entry.name.startsWith(\".\")) continue;\n const path = join(folder, entry.name);\n if (pattern.test(relativePath(root, path))) found.push(relativePath(root, path));\n if (level < depth) walk(path, level + 1);\n }\n };\n // `a/**` also names `a`\n if (base !== \"\" && pattern.test(base)) found.push(base);\n walk(start, 1);\n return found.sort(byCode);\n}\n\n/**\n * This function gives the globs of the workspace at `root`: the `packages` list of\n * `pnpm-workspace.yaml`, then the `workspaces` field of `package.json`. The result is undefined when\n * the repository has no workspace.\n */\nexport function workspaceGlobs(root: string): string[] | undefined {\n const yaml = join(root, \"pnpm-workspace.yaml\");\n if (existsSync(yaml)) {\n const lines = readFileSync(yaml, \"utf8\").split(/\\r?\\n/);\n const start = lines.findIndex((line) => /^packages\\s*:/.test(line));\n if (start >= 0) {\n const unquote = (text: string): string =>\n text\n .replace(/\\s+#.*$/, \"\")\n .trim()\n .replace(/^[\"']|[\"']$/g, \"\");\n const inline = /^packages\\s*:\\s*\\[(.*)\\]/.exec(lines[start] ?? \"\");\n if (inline) return (inline[1] ?? \"\").split(\",\").map(unquote).filter(Boolean);\n const globs: string[] = [];\n for (const line of lines.slice(start + 1)) {\n if (/^\\s*(#.*)?$/.test(line)) continue;\n const item = /^\\s+-\\s+(.+)$/.exec(line);\n if (!item) break;\n globs.push(unquote(item[1] ?? \"\"));\n }\n return globs;\n }\n }\n const manifestFile = join(root, \"package.json\");\n if (existsSync(manifestFile)) {\n const { workspaces } = JSON.parse(readFileSync(manifestFile, \"utf8\")) as { workspaces?: unknown };\n if (Array.isArray(workspaces)) return workspaces.filter((glob): glob is string => typeof glob === \"string\");\n if (typeof workspaces === \"object\" && workspaces !== null && \"packages\" in workspaces && Array.isArray(workspaces.packages)) {\n return workspaces.packages.filter((glob): glob is string => typeof glob === \"string\");\n }\n }\n return undefined;\n}\n\n/**\n * This function gives the package folders of the repository at `root`: the folders of the globs\n * that have a `package.json` file. A glob that starts with `!` removes folders. Without globs, the\n * function reads the globs of the workspace, and a repository with no workspace is one package.\n * The result has absolute paths, in the order of the code units.\n */\nexport function packageFolders(root: string, globs: readonly string[] | undefined = workspaceGlobs(root)): string[] {\n if (globs === undefined) return existsSync(join(root, \"package.json\")) ? [root] : [];\n const included = new Set<string>();\n // As in pnpm, a `!` glob removes its folders in each position of the list\n for (const glob of globs.filter((item) => !item.startsWith(\"!\"))) for (const folder of globFolders(root, glob)) included.add(folder);\n for (const glob of globs.filter((item) => item.startsWith(\"!\"))) for (const folder of globFolders(root, glob.slice(1))) included.delete(folder);\n return [...included]\n .filter((folder) => existsSync(join(root, folder, \"package.json\")))\n .sort(byCode)\n .map((folder) => join(root, folder));\n}\n","/**\n * The shape of a rule, the facts that a rule reads (the context), and small helpers for the rules.\n */\nimport { spawnSync } from \"node:child_process\";\nimport { existsSync, readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { globToRegExp } from \"./workspace.ts\";\n\n/** A row of the invariants audit that a rule comes from: the repository, the id of the rule in that audit, and the document line. */\nexport interface AuditSource {\n readonly repo: string;\n readonly rule: string;\n readonly doc: string;\n}\n\n/** A break of a rule: the file, the line when the rule knows it, and what is wrong. */\nexport interface Break {\n /** The file, relative to the root, with `/`. */\n readonly file: string;\n /** The line in the file, from 1. */\n readonly line?: number;\n readonly message: string;\n /** A fix for this break. The fix of the rule applies when this field is missing. */\n readonly fix?: string;\n /** The changes of files that fix this break, for `conventions fix`. A break with no edits needs a person. */\n readonly edits?: readonly Edit[];\n}\n\n/**\n * A change of one file that `conventions fix` writes. The file must still have the text `before`, else the edit does\n * not apply. An edit that an earlier edit made stale waits for the next check.\n */\nexport interface Edit {\n /** The file, relative to the root, with `/`. */\n readonly file: string;\n /** The whole text of the file before the change. An empty text makes a file that does not exist. */\n readonly before: string;\n /** The whole text of the file after the change. */\n readonly after: string;\n}\n\n/** This function gives `text` with the line `line` (from 1) replaced by `lines`, with the line ends of `text`. An empty `lines` removes the line. */\nexport function replaceLine(text: string, line: number, lines: readonly string[]): string {\n const eol = text.includes(\"\\r\\n\") ? \"\\r\\n\" : \"\\n\";\n const all = text.split(/\\r?\\n/);\n all.splice(line - 1, 1, ...lines);\n return all.join(eol);\n}\n\n/** A value of an option of a rule. */\nexport type OptionValue = string | number | boolean | readonly string[];\n\n/** The options of a rule, after the defaults. */\nexport type Options = Readonly<Record<string, OptionValue>>;\n\n/** The description of one option of a rule. */\nexport interface OptionSpec {\n readonly type: \"string\" | \"number\" | \"boolean\" | \"strings\";\n readonly default: OptionValue;\n readonly description: string;\n}\n\n/** A field of `package.json`, as the rules read it. */\nexport type Manifest = Readonly<Record<string, unknown>>;\n\n/** A `package.json` file of the repository. */\nexport interface PackageInfo {\n /** The folder, relative to the root, with `/`. The root is `\"\"`. */\n readonly folder: string;\n /** The absolute path of the folder. */\n readonly dir: string;\n /** The path of the `package.json` file, relative to the root, with `/`. */\n readonly file: string;\n /** The text of the `package.json` file. */\n readonly text: string;\n readonly manifest: Manifest;\n}\n\n/** The facts of the repository that a rule reads. */\nexport interface RuleContext {\n /** The absolute path of the root. */\n readonly root: string;\n /** The root `package.json`. */\n readonly rootPackage: PackageInfo;\n /** The packages of the workspace, without the root. A repository with no workspace has no packages here. */\n readonly packages: readonly PackageInfo[];\n /** The environment variables. */\n readonly env: Readonly<Record<string, string | undefined>>;\n /** The base commit that `--base` gives, if any. */\n readonly base?: string;\n /** This function gives the files that git tracks, relative to the root, or undefined when the root is not in a git repository. */\n gitFiles(): readonly string[] | undefined;\n /** This function starts git in the root, and gives its output, or undefined when git fails. */\n git(args: readonly string[]): string | undefined;\n}\n\n/** The result of a rule: a list of breaks (empty when the rule passes), or the reason why the rule did not start. */\nexport type RuleOutcome = readonly Break[] | { readonly skipped: string };\n\n/** One convention, as a machine check. */\nexport interface Rule {\n /** A short id in kebab case. The configuration names the rule with this id. */\n readonly id: string;\n /** The rule in one sentence. */\n readonly title: string;\n /** Why the rule exists. */\n readonly reason: string;\n /** How to correct a break. */\n readonly fix: string;\n /** The rows of the invariants audit that the rule comes from. */\n readonly sources: readonly AuditSource[];\n /** The options of the rule, with their defaults. */\n readonly options: Readonly<Record<string, OptionSpec>>;\n /**\n * The value `true` tells that the breaks of the rule depend on the change (the files that a pull request changes).\n * Then an entry of `ignore` that matches no break is not stale, because a later change can match it.\n */\n readonly changeScoped?: boolean;\n check(context: RuleContext, options: Options): RuleOutcome;\n}\n\n/** The fields of `package.json` that hold dependencies. */\nexport const DEPENDENCY_FIELDS = [\"dependencies\", \"devDependencies\", \"peerDependencies\", \"optionalDependencies\"] as const;\n\n/** This function gives each entry of a field of `package.json` that maps names to specifiers. */\nexport function specifiersOf(manifest: Manifest, field: string): [string, string][] {\n const value = manifest[field];\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return [];\n return Object.entries(value as Record<string, unknown>).filter((entry): entry is [string, string] => typeof entry[1] === \"string\");\n}\n\n/** This function gives the line (from 1) of the first line of `text` that contains `needle`, from the line `from`. */\nexport function lineOf(text: string, needle: string, from = 1): number | undefined {\n const lines = text.split(/\\r?\\n/);\n for (let index = Math.max(0, from - 1); index < lines.length; index++) if ((lines[index] ?? \"\").includes(needle)) return index + 1;\n return undefined;\n}\n\n/** This function gives the line of the key `\"name\":` in `package.json`, after the line of the field `field`. */\nexport function keyLine(text: string, field: string, name: string): number | undefined {\n const start = lineOf(text, `\"${field}\"`) ?? 1;\n return lineOf(text, `${JSON.stringify(name)}:`, start) ?? lineOf(text, JSON.stringify(name), start);\n}\n\n/** This function joins a folder and a file name as a path relative to the root. */\nexport const inFolder = (folder: string, file: string): string => (folder === \"\" ? file : `${folder}/${file}`);\n\n/** This function removes `./` at the start of a path. */\nexport const cleanPath = (path: string): string => path.replace(/^\\.\\//, \"\");\n\n/** This function tells if a path matches one of the globs. */\nexport function matchesAny(path: string, globs: readonly string[]): boolean {\n return globs.some((glob) => globToRegExp(cleanPath(glob)).test(path));\n}\n\n/**\n * This function reads a JSON file with comments and commas at the end of a list (a `tsconfig.json`).\n *\n * @throws SyntaxError when the text is not JSON after the comments are removed\n */\nexport function parseJsonc(text: string): unknown {\n let out = \"\";\n let inString = false;\n for (let index = 0; index < text.length; index++) {\n const char = text.charAt(index);\n const next = text.charAt(index + 1);\n if (inString) {\n out += char;\n if (char === \"\\\\\") {\n out += next;\n index++;\n } else if (char === '\"') inString = false;\n } else if (char === '\"') {\n inString = true;\n out += char;\n } else if (char === \"/\" && next === \"/\") {\n while (index < text.length && text.charAt(index) !== \"\\n\") index++;\n out += \"\\n\";\n } else if (char === \"/\" && next === \"*\") {\n const end = text.indexOf(\"*/\", index + 2);\n index = end < 0 ? text.length : end + 1;\n } else out += char;\n }\n return JSON.parse(out.replace(/,(\\s*[}\\]])/g, \"$1\"));\n}\n\n/** This function reads a JSON file with comments, or gives undefined when the file does not exist or is not JSON. */\nexport function readJsonc(file: string): unknown {\n if (!existsSync(file)) return undefined;\n try {\n return parseJsonc(readFileSync(file, \"utf8\"));\n } catch {\n return undefined;\n }\n}\n\n/** This function starts git in `root` with `args`, and gives its output, or undefined when git fails. */\nexport function runGit(root: string, args: readonly string[]): string | undefined {\n const result = spawnSync(\"git\", [...args], { cwd: root, encoding: \"utf8\", maxBuffer: 256 * 1024 * 1024, windowsHide: true });\n if (result.error || result.status !== 0) return undefined;\n return result.stdout;\n}\n\n/** This function tells if `file` exists in the folder `dir`. */\nexport const hasFile = (dir: string, file: string): boolean => existsSync(join(dir, file));\n\n/**\n * This function gives the packages that hold code: the packages of the workspace, or the root\n * package when the repository has no workspace packages (a repository of one package).\n */\nexport function codePackages(context: Pick<RuleContext, \"rootPackage\" | \"packages\">): readonly PackageInfo[] {\n return context.packages.length > 0 ? context.packages : [context.rootPackage];\n}\n","/**\n * Versions: the SemVer parser, the sort, the kind of a version and the version of a git tag.\n */\n\nimport type { ReleaseKind } from \"./types.ts\";\n\n/** The parts of a SemVer 2.0.0 version. */\nexport interface ParsedVersion {\n major: number;\n minor: number;\n patch: number;\n prerelease: string[];\n}\n\nconst SEMVER = /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$/;\n\n/** This function gives the parts of a version, or null when the text is not a SemVer version. */\nexport function parseVersion(version: string): ParsedVersion | null {\n const match = SEMVER.exec(version);\n if (!match) return null;\n return {\n major: Number(match[1]),\n minor: Number(match[2]),\n patch: Number(match[3]),\n prerelease: match[4] ? match[4].split(\".\") : [],\n };\n}\n\n/**\n * This function compares two versions by the SemVer precedence. It gives a negative number when `a`\n * is older, a positive number when `a` is newer, and 0 for the same version. A text that is not a\n * version comes before each version.\n */\nexport function compareVersions(a: string, b: string): number {\n const x = parseVersion(a);\n const y = parseVersion(b);\n if (!x || !y) return x ? 1 : y ? -1 : a.localeCompare(b);\n const core = x.major - y.major || x.minor - y.minor || x.patch - y.patch;\n if (core !== 0) return core;\n // A prerelease comes before its release: 1.0.0-rc.1 < 1.0.0\n if (x.prerelease.length === 0 || y.prerelease.length === 0) return y.prerelease.length - x.prerelease.length;\n for (let index = 0; index < Math.max(x.prerelease.length, y.prerelease.length); index++) {\n const p = x.prerelease[index];\n const q = y.prerelease[index];\n if (p === undefined) return -1;\n if (q === undefined) return 1;\n if (p === q) continue;\n const pNumber = /^\\d+$/.test(p);\n const qNumber = /^\\d+$/.test(q);\n if (pNumber && qNumber) return Number(p) - Number(q);\n if (pNumber !== qNumber) return pNumber ? -1 : 1;\n return p < q ? -1 : 1;\n }\n return 0;\n}\n\n/**\n * This function gives the kind of a version. The oldest version of the list is \"first\". The caller\n * tells if the version is the oldest.\n */\nexport function kindOf(version: string, oldest: boolean): ReleaseKind {\n if (oldest) return \"first\";\n const parsed = parseVersion(version);\n if (!parsed) return \"patch\";\n if (parsed.major > 0 && parsed.minor === 0 && parsed.patch === 0) return \"major\";\n return parsed.patch === 0 ? \"minor\" : \"patch\";\n}\n\n/** The version of a git tag, and the package that the tag names (null for a tag like `v1.2.3`). */\nexport interface TagVersion {\n version: string;\n package: string | null;\n}\n\n/**\n * This function reads the version of a git tag. It knows `1.2.3`, `v1.2.3` and the tags of Changesets:\n * `name@1.2.3` and `@scope/name@1.2.3`. It gives null for another tag.\n */\nexport function versionOfTag(tag: string): TagVersion | null {\n const match = /^(?:(.+)@)?v?(\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.+-]*)?)$/.exec(tag.trim());\n if (!match || match[2] === undefined || !parseVersion(match[2])) return null;\n return { version: match[2], package: match[1] ?? null };\n}\n","/**\n * The changelog parser. Changesets writes a section for each version in the `CHANGELOG.md` of each\n * package. The section has a `## 0.13.2` heading and a `###` heading for each kind of change. Each\n * change is one `- <short sha>: <text>` entry. The next lines of an entry have an indent.\n */\n\n/** One entry of a changelog section or of a release text. */\nexport interface ChangelogEntry {\n /** The short SHA of the commit, or null for an entry without a commit. */\n commit: string | null;\n /** The first sentence of the entry, with its code spans. */\n text: string;\n}\n\n/** The entries of one version of a changelog. */\nexport interface ChangelogSection {\n version: string;\n /** The text of the version heading, without the `##` marks. */\n heading: string;\n entries: ChangelogEntry[];\n}\n\n// \"## 1.2.3\", \"## v1.2.3\", \"## [1.2.3] - 2026-10-18\" or \"## 1.2.3-rc.1\"\nconst VERSION_HEADING = /^##\\s+\\[?v?(\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?)\\]?(?:\\s.*)?$/;\nconst COMMIT_ENTRY = /^([0-9a-f]{7,40}):\\s+([\\s\\S]*)$/;\n// The lines of Changesets for a new version of a dependency: no change of the package itself\nconst DEPENDENCY_ENTRY = /^(?:Updated dependencies\\b|@?[\\w.-]+(?:\\/[\\w.-]+)?@\\S+\\s*$)/;\n// The generated release notes of GitHub: \"Fix it by @ann in https://github.com/o/r/pull/12\". The\n// pattern starts with one whitespace character, not \"\\s+\": with \"\\s+\", each space of a long run is\n// a start, and the time grows with the square of the length. entryOf removes the rest of the run.\nconst GENERATED_NOTE = /\\sby\\s+@[\\w-]+(?:\\[bot\\])?\\s+in\\s+(https:\\/\\/github\\.com\\/[\\w.-]+\\/[\\w.-]+\\/pull\\/(\\d+))\\s*$/;\nconst FIRST_CONTRIBUTION = /\\bmade their first contribution\\b/;\n\n/**\n * This function gives the first sentence of a text. A full stop, a question mark or an exclamation\n * mark ends the sentence when a space and no lowercase letter follow it.\n *\n * @remarks A mark in a code span does not end the sentence. A text that ends with a colon (a list\n * follows) ends with a full stop.\n */\nexport function firstSentence(text: string): string {\n const clean = text.replace(/\\s+/g, \" \").trim();\n let code = false;\n for (let index = 0; index < clean.length; index++) {\n const char = clean[index];\n if (char === \"`\") {\n code = !code;\n continue;\n }\n if (code || (char !== \".\" && char !== \"?\" && char !== \"!\")) continue;\n const next = clean[index + 1];\n if (next === undefined) break;\n if (next === \" \" && !/^[a-z]/.test(clean.slice(index + 2))) return clean.slice(0, index + 1);\n }\n return clean.replace(/:$/, \".\");\n}\n\n/**\n * This function makes one entry from the lines of a list item. The text is the first paragraph: the\n * lines before an empty line or a nested list. It gives null for an entry that is not a change.\n */\nfunction entryOf(lines: readonly string[]): ChangelogEntry | null {\n const paragraph: string[] = [];\n for (const [index, line] of lines.entries()) {\n if (index > 0 && (line.trim() === \"\" || /^\\s+[-*+]\\s/.test(line))) break;\n paragraph.push(line.trim());\n }\n const text = paragraph.join(\" \");\n const commit = COMMIT_ENTRY.exec(text);\n let body = (commit ? commit[2] : text) ?? \"\";\n if (body.trim() === \"\" || DEPENDENCY_ENTRY.test(body.trim()) || FIRST_CONTRIBUTION.test(body)) return null;\n const note = GENERATED_NOTE.exec(body);\n if (note) body = `${body.slice(0, note.index).trimEnd()} ([#${note[2] ?? \"\"}](${note[1] ?? \"\"}))`;\n return { commit: commit?.[1] ?? null, text: firstSentence(body) };\n}\n\n/**\n * This function gives the entries of each version of a changelog, in the sequence of the file.\n *\n * @remarks An entry is a line that starts with \"- \" and the indented lines under it. An entry for a\n * new dependency version is not a change.\n */\nexport function parseChangelog(markdown: string): ChangelogSection[] {\n const sections: Array<{ version: string; heading: string; raw: string[][] }> = [];\n let section: { version: string; heading: string; raw: string[][] } | null = null;\n let entry: string[] | null = null;\n const close = (): void => {\n if (entry && section) section.raw.push(entry);\n entry = null;\n };\n for (const line of markdown.split(/\\r?\\n/)) {\n const heading = VERSION_HEADING.exec(line);\n if (heading?.[1] !== undefined) {\n close();\n section = { version: heading[1], heading: line.replace(/^##\\s+/, \"\").trim(), raw: [] };\n sections.push(section);\n continue;\n }\n if (section === null) continue;\n if (line.startsWith(\"- \")) {\n close();\n entry = [line.slice(2)];\n } else if (entry && (line.trim() === \"\" || /^\\s/.test(line))) {\n (entry as string[]).push(line);\n } else {\n // A heading (\"### Patch Changes\") or a paragraph of the section ends the entry\n close();\n if (/^#{1,2}\\s/.test(line)) section = null;\n }\n }\n close();\n return sections.map(({ version, heading, raw }) => ({\n version,\n heading,\n entries: raw.map(entryOf).filter((change): change is ChangelogEntry => change !== null),\n }));\n}\n\n/**\n * This function gives the changes of the text of a GitHub release: one change for each top-level\n * list item. Fenced code is not read.\n */\nexport function releaseBodyEntries(body: string): ChangelogEntry[] {\n const entries: ChangelogEntry[] = [];\n let entry: string[] | null = null;\n let fence: string | null = null;\n const close = (): void => {\n const change = entry ? entryOf(entry) : null;\n if (change) entries.push(change);\n entry = null;\n };\n for (const line of body.split(/\\r?\\n/)) {\n const fenceMark = /^\\s*(`{3,}|~{3,})/.exec(line)?.[1];\n if (fenceMark !== undefined) {\n close();\n if (fence === null) fence = fenceMark[0] ?? null;\n else if (fenceMark[0] === fence) fence = null;\n continue;\n }\n if (fence !== null) continue;\n // \"\\s+(\\S.*)?\" and not \"\\s+(.*)\": the two parts cannot share a space, so a failed match does not backtrack\n const item = /^[-*+]\\s+(\\S.*)?$/.exec(line);\n if (item) {\n close();\n entry = [item[1] ?? \"\"];\n } else if (entry && (line.trim() === \"\" || /^\\s/.test(line))) {\n (entry as string[]).push(line);\n } else {\n close();\n }\n }\n close();\n return entries;\n}\n\n/**\n * This function gives the anchor of a heading on GitHub: lowercase, no punctuation, and a hyphen\n * for each space. The anchor of \"0.13.2\" is \"0132\".\n */\nexport function headingAnchor(heading: string): string {\n return heading\n .toLowerCase()\n .trim()\n .replace(/[^\\p{L}\\p{N}\\s_-]/gu, \"\")\n .replace(/\\s/g, \"-\");\n}\n","/**\n * The status data: the open work of a roadmap file, and the open pull requests and issues of a\n * GitHub repository. The build reads both, so the page shows the state at the time of the build.\n *\n * @remarks The roadmap parser reads two forms. The first form is each Markdown table with an `ID`\n * column and a `Status` column. The second form is each heading \"### `id`: Title\" under a \"##\" heading\n * that gives the status. The parser is strict: a row whose cells do not match the header stops the\n * build with the file and the line.\n */\n\nimport { readFileSync } from \"node:fs\";\nimport { join, posix } from \"node:path\";\nimport { githubOpenWork } from \"./github.ts\";\nimport type { BoardItem, GitHubOpenWork, Link, StatusBoardData, StatusClass } from \"./types.ts\";\n\n/** The classes of a status, in the sequence of the board. The open work comes first. */\nexport const STATUS_CLASSES: readonly StatusClass[] = [\"waiting\", \"blocked\", \"progress\", \"open\", \"later\", \"done\"];\n\n/** The open classes, in the sequence of the board. */\nexport const OPEN_CLASSES: readonly StatusClass[] = [\"waiting\", \"blocked\", \"progress\", \"open\", \"later\"];\n\n/** An error in the roadmap file, with the file and the line. */\nexport class RoadmapParseError extends Error {}\n\n// The keywords of each class. In a status text, the first keyword wins: \"done, needs a release\" is\n// done, and \"blocked, waits for X\" is blocked. A negation (\"not started\") comes first, so that the\n// word after it does not count.\nconst STATUS_KEYWORDS: ReadonlyArray<[StatusClass, RegExp]> = [\n [\"open\", /\\bnot\\s+(?:yet\\s+)?(?:started|done|fixed|merged|shipped|released)\\b|\\bto[ -]?do\\b/],\n // A closed item that did not ship (\"never\", \"dropped\") is not open work either\n [\"done\", /\\b(?:done|shipped|merged|fixed|released|complete|completed|closed|never|dropped|cancell?ed|wontfix)\\b|\\bwon't do\\b/],\n [\"progress\", /\\bin[ -]progress\\b|\\b(?:active|ongoing|started|wip)\\b/],\n [\"waiting\", /\\b(?:waiting|waits|awaiting|needs)\\b/],\n [\"blocked\", /\\bblocked\\b/],\n [\"later\", /\\b(?:later|deferred|postponed|someday)\\b/],\n];\n\n/**\n * This function gives the class of a free-text status: done, progress, waiting, blocked, later or\n * open. The first keyword of the text decides. A text without a keyword (\"next\", \"open\") is open.\n */\nexport function statusClassOf(text: string | null | undefined): StatusClass {\n const lower = String(text ?? \"\").toLowerCase();\n let best: { index: number; value: StatusClass } = { index: Infinity, value: \"open\" };\n for (const [value, pattern] of STATUS_KEYWORDS) {\n const match = pattern.exec(lower);\n if (match && match.index < best.index) best = { index: match.index, value };\n }\n return best.value;\n}\n\n/** This function gives the cells of a table row. A \"|\" in a code span or after \"\\\" is text. */\nexport function splitRow(line: string): string[] {\n const cells: string[] = [];\n let cell = \"\";\n let code = false;\n const text = line.trim().replace(/^\\|/, \"\").replace(/\\|$/, \"\");\n for (let index = 0; index < text.length; index++) {\n const char = text[index];\n if (char === \"\\\\\" && text[index + 1] === \"|\") {\n cell += \"|\";\n index++;\n } else if (char === \"`\") {\n code = !code;\n cell += char;\n } else if (char === \"|\" && !code) {\n cells.push(cell.trim());\n cell = \"\";\n } else {\n cell += char;\n }\n }\n cells.push(cell.trim());\n return cells;\n}\n\n/** A whitespace character, as `\\s` of a regular expression and `String.prototype.trim` read it. */\nconst SPACE = /\\s/;\n/** A character that `.` of a regular expression does not match. */\nconst LINE_TERMINATOR = /[\\n\\r\\u2028\\u2029]/;\n/** The first whitespace character at or after `lastIndex`. */\nconst NEXT_SPACE = /\\s/g;\n\n/**\n * This function replaces each Markdown link `[label](target)` of a text with the result of\n * `replace`. The label ends at the first `]`, and the target ends at the first `)`. In `strict`\n * mode, the label and the target are not empty, and the target has no whitespace.\n *\n * @remarks The function reads the text one time. A regular expression for these links can\n * backtrack (CodeQL `js/polynomial-redos`). For a long text with many `[` characters, its time\n * grows with the square of the length.\n */\nfunction replaceLinks(text: string, strict: boolean, replace: (label: string, target: string) => string): string {\n let result = \"\";\n let copied = 0;\n // The first \"]\" after the current \"[\", the first \")\" after its \"](\", and the first whitespace\n // after its \"](\". The values only increase, so each search starts where the last one stopped.\n let close = -1;\n let end = -1;\n let space = -1;\n for (let open = text.indexOf(\"[\"); open !== -1; open = text.indexOf(\"[\", open + 1)) {\n if (close <= open) close = text.indexOf(\"]\", open + 1);\n if (close === -1) break;\n if (text[close + 1] !== \"(\" || (strict && close === open + 1)) continue;\n const start = close + 2;\n if (end < start) end = text.indexOf(\")\", start);\n if (end === -1) break;\n if (strict) {\n if (space !== Infinity && space < start) {\n NEXT_SPACE.lastIndex = start;\n space = NEXT_SPACE.exec(text)?.index ?? Infinity;\n }\n if (end === start || space < end) continue;\n }\n result += text.slice(copied, open) + replace(text.slice(open + 1, close), text.slice(start, end));\n copied = end + 1;\n open = end;\n }\n return result + text.slice(copied);\n}\n\n/**\n * This function gives the text of an ATX heading without its closing sequence: the whitespace,\n * then the `#` characters, then the whitespace at the end. It gives null when the rest has a line\n * terminator, as the regular expression `(.*?)\\s*#*\\s*$` does.\n */\nfunction closeHeading(text: string): string | null {\n let end = text.length;\n while (end > 0 && SPACE.test(text[end - 1] ?? \"\")) end--;\n while (end > 0 && text[end - 1] === \"#\") end--;\n while (end > 0 && SPACE.test(text[end - 1] ?? \"\")) end--;\n const rest = text.slice(0, end);\n return LINE_TERMINATOR.test(rest) ? null : rest;\n}\n\n/** The start of an ATX heading. The text after the whitespace goes to `closeHeading`. */\nconst HEADING = /^(#{1,6})\\s+(\\S[\\s\\S]*)?$/;\n\n/** This function gives the level and the text of an ATX heading line, or null for another line. */\nfunction headingOf(line: string): { level: number; text: string } | null {\n const match = HEADING.exec(line);\n const text = match ? closeHeading(match[2] ?? \"\") : null;\n return match && text !== null ? { level: match[1]?.length ?? 0, text } : null;\n}\n\n/** This function gives the plain text of inline Markdown: no code marks, no emphasis, the text of each link. */\nexport function plainText(markdown: string | null | undefined): string {\n return replaceLinks(String(markdown ?? \"\"), false, (label) => label)\n .replace(/[`*_]/g, \"\")\n .replace(/\\s+/g, \" \")\n .trim();\n}\n\n/** A cell with no value: empty, or a dash. */\nfunction isEmpty(cell: string | undefined): boolean {\n return cell === undefined || /^(?:[-–—]|n\\/a)?$/i.test(cell.trim());\n}\n\n/** A table of a Markdown file. */\nexport interface MarkdownTable {\n /** The nearest heading above the table, as plain text. */\n section: string;\n /** The line of the header. */\n line: number;\n /** The header names, in lowercase plain text. */\n header: string[];\n rows: Array<{ line: number; cells: string[] }>;\n}\n\n/**\n * This function gives the tables of a Markdown file. Each table has its header names in lowercase\n * plain text, the nearest heading above it, the line of its header and its rows. Fenced code is not read.\n */\nexport function markdownTables(markdown: string): MarkdownTable[] {\n const lines = String(markdown).split(/\\r?\\n/);\n const tables: MarkdownTable[] = [];\n let section = \"\";\n let fence: string | null = null;\n for (let index = 0; index < lines.length; index++) {\n const line = lines[index] ?? \"\";\n const fenceMark = /^\\s*(`{3,}|~{3,})/.exec(line)?.[1];\n if (fenceMark !== undefined) {\n if (fence === null) fence = fenceMark[0] ?? null;\n else if (fenceMark[0] === fence) fence = null;\n continue;\n }\n if (fence !== null) continue;\n const heading = headingOf(line);\n if (heading) {\n section = plainText(heading.text);\n continue;\n }\n if (!line.trim().startsWith(\"|\")) continue;\n const separator = lines[index + 1] ?? \"\";\n if (!/^\\s*(?:\\|\\s*)?:?-{3,}/.test(separator)) continue;\n const header = splitRow(line).map((name) => plainText(name).toLowerCase());\n const rows: MarkdownTable[\"rows\"] = [];\n let next = index + 2;\n for (; next < lines.length && (lines[next] ?? \"\").trim().startsWith(\"|\"); next++) {\n rows.push({ line: next + 1, cells: splitRow(lines[next] ?? \"\") });\n }\n tables.push({ section, line: index + 1, header, rows });\n index = next - 1;\n }\n return tables;\n}\n\n/** The options of the link functions. */\nexport interface LinkOptions {\n /** The path of the roadmap file in the repository. */\n file?: string;\n /** \"owner/name\" of the repository. */\n repository?: string;\n /** The branch or the commit of the relative links. The default is \"HEAD\". */\n ref?: string;\n}\n\n/** The columns whose cells hold the links of an item. */\nconst LINK_COLUMNS = [\"where\", \"commit\", \"commits\", \"link\", \"links\", \"pr\", \"prs\"];\n/** Words before a reference that do not name a repository. */\nconst NOT_REPOSITORIES = new Set(\n \"a an and also at by commit commits done fixed for from in into issue issues merged of on or plus pr prs run see the then to via with\".split(\" \"),\n);\n\n/** The URL of a link target of the roadmap file: an absolute URL stays, and a relative one goes to GitHub. */\nfunction linkUrl(target: string, { file = \"\", repository = \"\", ref = \"HEAD\" }: LinkOptions): string | null {\n if (/^[a-z][a-z0-9+.-]*:/i.test(target)) return target;\n if (!repository) return null;\n const [path = \"\", anchor = \"\"] = target.split(\"#\", 2);\n const resolved = path === \"\" ? file : posix.normalize(posix.join(posix.dirname(file), path));\n if (resolved.startsWith(\"..\")) return null;\n return `https://github.com/${repository}/blob/${ref}/${resolved}${anchor ? `#${anchor}` : \"\"}`;\n}\n\n/**\n * This function gives the word right before the whitespace that ends `text.slice(0, end)`, as the\n * regular expression `([A-Za-z][\\w.-]*)\\s+$` does. The word starts with a letter. The function\n * reads only the characters of the word and of the whitespace.\n */\nfunction wordBefore(text: string, end: number): string | undefined {\n let stop = end;\n while (stop > 0 && SPACE.test(text[stop - 1] ?? \"\")) stop--;\n if (stop === end) return undefined;\n let start = stop;\n while (start > 0 && /[\\w.-]/.test(text[start - 1] ?? \"\")) start--;\n while (start < stop && !/[A-Za-z]/.test(text[start] ?? \"\")) start++;\n return start < stop ? text.slice(start, stop) : undefined;\n}\n\n/**\n * This function gives the links of a cell: each Markdown link, then each bare reference in the rest\n * of the text. A reference is a pull request (\"PR #12\", \"#12\") or a commit hash in a code span.\n *\n * @remarks A repository name right before a reference (\"systems PR #16\") applies to it and to the\n * next references of the cell. Without a name, a reference belongs to `repository`.\n */\nexport function linksOf(cell: string | null | undefined, options: LinkOptions = {}): Link[] {\n const { repository = \"\" } = options;\n const links: Link[] = [];\n const seen = new Set<string>();\n const add = (label: string, url: string | null): void => {\n if (!url || seen.has(url)) return;\n seen.add(url);\n links.push({ label, url });\n };\n const rest = replaceLinks(String(cell ?? \"\"), true, (label, target) => {\n add(plainText(label), linkUrl(target, options));\n return \" \";\n });\n if (!repository) return links;\n const [owner, defaultRepo] = repository.split(\"/\");\n let current = defaultRepo;\n // After \"PR\", the next numbers of the cell are pull requests too: \"PRs #28, #29 and #30\"\n let pulls = false;\n const reference = /\\bPRs?\\s*#(\\d+)|(?<![\\w/&])#(\\d+)\\b|`([0-9a-f]{7,40})`/g;\n for (let match = reference.exec(rest); match; match = reference.exec(rest)) {\n const word = wordBefore(rest, match.index);\n if (word && !NOT_REPOSITORIES.has(word.toLowerCase())) current = word;\n const prefix = current === defaultRepo ? \"\" : `${current} `;\n if (match[1] !== undefined) pulls = true;\n const number = match[1] ?? match[2];\n if (number !== undefined) add(`${prefix}#${number}`, `https://github.com/${owner}/${current}/${pulls ? \"pull\" : \"issues\"}/${number}`);\n else if (match[3] !== undefined) add(`${prefix}${match[3].slice(0, 7)}`, `https://github.com/${owner}/${current}/commit/${match[3]}`);\n }\n return links;\n}\n\n/**\n * The heading of an item: \"### `id`: Title\". A dash can take the place of the colon. The title goes\n * to `closeHeading`.\n */\nconst ITEM_HEADING = /^###\\s+`([^`]+)`\\s*[:–—-]\\s*(\\S[\\s\\S]*)?$/;\n/** The other heading of an item: \"### S1 · Title\". The ID is one word before the middle dot. */\nconst ITEM_HEADING_DOT = /^###\\s+([A-Za-z0-9][\\w.-]*)\\s+·\\s+(\\S[\\s\\S]*)?$/;\n\n/** This function gives the ID and the title of an item heading, or null for another line. */\nfunction itemHeadingOf(line: string): { id: string; title: string } | null {\n for (const pattern of [ITEM_HEADING, ITEM_HEADING_DOT]) {\n const match = pattern.exec(line);\n const title = match ? closeHeading(match[2] ?? \"\") : null;\n if (match && title !== null) return { id: match[1] ?? \"\", title };\n }\n return null;\n}\n\n/**\n * A field of an item heading: \"- Area: Docs\", \"- **Area:** Docs\" or \"- **Area**: Docs\". The label\n * matches without case.\n */\nconst ITEM_FIELD = /^\\s*[-*]\\s+(\\*\\*|__)?([A-Za-z][A-Za-z ]*?)(?::\\1|\\1:)\\s*(\\S.*)?$/;\n/** The fields of an item heading that give the optional fields of an item. */\nconst ITEM_FIELDS: Readonly<Record<string, \"area\" | \"owner\" | \"needs\">> = {\n area: \"area\",\n owner: \"owner\",\n \"waits for\": \"needs\",\n needs: \"needs\",\n \"depends on\": \"needs\",\n};\n\n/**\n * This function gives the items of the second form of a roadmap: each heading \"### `id`: Title\" or\n * \"### id · Title\". The list item \"Status:\" gives the status. Without it, the \"##\" heading above\n * the item gives the status, for example \"Waiting on Mark\", \"Later\" or \"Shipped\". A heading without\n * a status is not an item.\n *\n * The list items \"Area:\", \"Owner:\" and \"Waits for:\" give the optional fields. The list item\n * \"Links:\" and the other list items give the links. Fenced code is not read.\n */\nfunction headingItems(markdown: string, options: LinkOptions & { file: string }): BoardItem[] {\n const lines = String(markdown).split(/\\r?\\n/);\n const items: BoardItem[] = [];\n let section = \"\";\n let current: BoardItem | undefined;\n let fence: string | null = null;\n for (let index = 0; index < lines.length; index++) {\n const line = lines[index] ?? \"\";\n const fenceMark = /^\\s*(`{3,}|~{3,})/.exec(line)?.[1];\n if (fenceMark !== undefined) {\n if (fence === null) fence = fenceMark[0] ?? null;\n else if (fenceMark[0] === fence) fence = null;\n continue;\n }\n if (fence !== null) continue;\n const heading = headingOf(line);\n if (heading) {\n const { level } = heading;\n if (level > 3) continue;\n current = undefined;\n if (level === 2) section = plainText(heading.text);\n if (level === 1) section = \"\";\n if (level !== 3) continue;\n const item = itemHeadingOf(line);\n const id = plainText(item?.id);\n if (!item || isEmpty(id)) continue;\n current = { id, title: item.title, status: section, statusClass: statusClassOf(section), section, line: index + 1, links: [] };\n items.push(current);\n continue;\n }\n if (!current) continue;\n const field = ITEM_FIELD.exec(line);\n const label = (field?.[2] ?? \"\").trim().toLowerCase();\n const value = (field?.[3] ?? \"\").trim();\n const key = field ? ITEM_FIELDS[label] : undefined;\n if (field && label === \"status\") {\n // The field of the item wins over the section\n if (!isEmpty(value)) {\n current.status = value;\n current.statusClass = statusClassOf(plainText(value));\n }\n } else if (field && key !== undefined) {\n if (!isEmpty(value)) current[key] = value;\n } else if (/^\\s*[-*]\\s+/.test(line)) {\n const seen = new Set(current.links.map((link) => link.url));\n for (const link of linksOf(line, options)) if (!seen.has(link.url)) current.links.push(link);\n }\n }\n // A heading without a section and without a \"Status:\" field has no status: it is not an item\n return items.filter((item) => item.status !== \"\");\n}\n\n/**\n * This function gives the items of a roadmap file in the order of the file. It reads two forms:\n *\n * - Each row of each table with an `ID` column and a `Status` column. The header names match without\n * case. The title comes from `Item`, else from `Title`. `Owner`, `Area` and `Needs` are optional.\n * `Where`, `Commit` and `Links` give the links.\n * - Each heading \"### `id`: Title\" or \"### id · Title\". The list item \"Status:\", else the \"##\"\n * heading above it, gives the status. The list items \"Area:\", \"Owner:\" and \"Waits for:\" give the\n * optional fields, and \"Links:\" and the other list items give the links.\n *\n * @throws RoadmapParseError when the cells of a row do not match the header\n */\nexport function roadmapItems(markdown: string, options: LinkOptions = {}): BoardItem[] {\n const { file = \"ROADMAP.md\" } = options;\n const items: BoardItem[] = [];\n for (const table of markdownTables(markdown)) {\n const column = (...names: string[]): number => names.map((name) => table.header.indexOf(name)).find((index) => index >= 0) ?? -1;\n const id = column(\"id\");\n const status = column(\"status\");\n if (id < 0 || status < 0) continue;\n const title = column(\"item\", \"title\");\n const owner = column(\"owner\");\n const area = column(\"area\");\n const needs = column(\"needs\");\n const linkColumns = LINK_COLUMNS.map((name) => table.header.indexOf(name)).filter((index) => index >= 0);\n for (const row of table.rows) {\n if (row.cells.length !== table.header.length) {\n throw new RoadmapParseError(`${file}:${row.line}: the row has ${row.cells.length} cells, and the header has ${table.header.length}`);\n }\n const idText = plainText(row.cells[id]);\n if (isEmpty(idText)) continue;\n const statusText = row.cells[status] ?? \"\";\n const item: BoardItem = {\n id: idText,\n title: title >= 0 ? (row.cells[title] ?? \"\") : \"\",\n status: statusText,\n statusClass: statusClassOf(plainText(statusText)),\n section: table.section,\n line: row.line,\n links: linkColumns.flatMap((index) => linksOf(row.cells[index], { ...options, file })),\n };\n const optional = (index: number): string | undefined => (index >= 0 && !isEmpty(row.cells[index]) ? row.cells[index] : undefined);\n const ownerText = optional(owner);\n const areaText = optional(area);\n const needsText = optional(needs);\n if (ownerText !== undefined) item.owner = ownerText;\n if (areaText !== undefined) item.area = areaText;\n if (needsText !== undefined) item.needs = needsText;\n items.push(item);\n }\n }\n const headings = headingItems(markdown, { ...options, file });\n return headings.length === 0 ? items : [...items, ...headings].sort((a, b) => a.line - b.line);\n}\n\n// ---------------------------------------------------------------------------\n// The board\n// ---------------------------------------------------------------------------\n\n/** The input of `buildStatusBoard`. */\nexport interface StatusBoardInput {\n items: BoardItem[];\n /** The result of `githubOpenWork`. */\n github: GitHubOpenWork;\n /** The roadmap file in the repository, or null without a roadmap. */\n roadmap: string | null;\n /** \"owner/name\" of the repository. */\n repository: string;\n commit?: string | null;\n generatedAt?: string;\n}\n\n/**\n * This function gives the items of a roadmap file, as the Status page reads them. It fails when the file has no item.\n *\n * @throws RoadmapParseError when the cells of a row do not match the header\n * @throws RoadmapParseError when the roadmap has no item: no table with an ID and a Status column, and no item heading\n */\nexport function parseRoadmap(markdown: string, options: LinkOptions = {}): BoardItem[] {\n const { file = \"ROADMAP.md\" } = options;\n const items = roadmapItems(markdown, options);\n if (items.length === 0) throw new RoadmapParseError(`${file}: no table with an ID column and a Status column, and no heading \"### \\`id\\`: Title\"`);\n return items;\n}\n\n/** This function puts the roadmap items and the GitHub part into the shape of `status.json`. */\nexport function buildStatusBoard(input: StatusBoardInput): StatusBoardData {\n const { items, github, roadmap, repository, commit = null, generatedAt = new Date().toISOString() } = input;\n return {\n generatedAt,\n commit,\n source: { roadmap, github: repository },\n items,\n pullRequests: github.available ? github.pullRequests : [],\n issues: github.available ? github.issues : [],\n github: github.available ? { available: true, totals: github.totals } : { available: false, reason: github.reason },\n };\n}\n\n/** The options of `readStatusBoard`. */\nexport interface ReadStatusBoardOptions {\n repoDir: string;\n /** The path of the roadmap file from `repoDir`, with `/`. Without it, the board has only the GitHub part. */\n roadmap?: string | null | undefined;\n owner: string;\n repo: string;\n token: string | undefined;\n /** The commit of the build. The relative links of the roadmap go to it. */\n commit?: string | null | undefined;\n fetch?: typeof fetch | undefined;\n generatedAt?: string | undefined;\n}\n\n/**\n * This function reads the board of a repository on disk: the roadmap file, and the open work on GitHub.\n *\n * @throws RoadmapParseError when the roadmap has an incorrect row, or no item: no table with an ID\n * and a Status column, and no item heading\n */\nexport async function readStatusBoard(options: ReadStatusBoardOptions): Promise<StatusBoardData> {\n const { repoDir, roadmap = null, owner, repo, token, commit = null } = options;\n const repository = `${owner}/${repo}`;\n let items: BoardItem[] = [];\n if (roadmap) {\n const markdown = readFileSync(join(repoDir, ...roadmap.split(\"/\")), \"utf8\");\n items = parseRoadmap(markdown, { file: roadmap, repository, ref: commit ?? \"HEAD\" });\n }\n const github = await githubOpenWork({ owner, repo, token, ...(options.fetch ? { fetch: options.fetch } : {}) });\n return buildStatusBoard({\n items,\n github,\n roadmap: roadmap || null,\n repository,\n commit,\n ...(options.generatedAt ? { generatedAt: options.generatedAt } : {}),\n });\n}\n","/**\n * The standalone releases page: a lead line, a timeline of the versions and the changes of the\n * selected version. The build renders the HTML, and one small inline module adds the interactions.\n */\n\nimport type { Release, ReleaseChange, ReleaseKind } from \"../data/types.ts\";\nimport { longDate, shortDate } from \"./dates.ts\";\nimport { escapeHtml, inlineMarkdown, link, listText, plural } from \"./html.ts\";\nimport { pageShell, type PageOptions } from \"./theme.ts\";\nimport { laneCenter, oldestFirst, releaseSummary, timelineLayout, type TimelineLayout } from \"./timeline.ts\";\n\n/** The changes and the package chips that the page shows before \"Show all\". */\nconst FIRST_CHANGES = 8;\nconst FIRST_CHIPS = 4;\n/** The y of the mark below the center line of its lane. The label is above the line. */\nconst MARK_Y = 9;\n/** The widths of the two timelines: the narrow one for a phone or a tablet, the wide one for a desktop. */\nconst NARROW_WIDTH = 640;\nconst WIDE_WIDTH = 920;\n\nconst KIND_INFO: Record<ReleaseKind, { label: string; word: string; pill: string; legend: string }> = {\n first: { label: \"First release\", word: \"first release\", pill: \"sp-pill sp-good\", legend: \"The first release\" },\n major: { label: \"MAJOR\", word: \"major\", pill: \"sp-pill sp-strong\", legend: \"MAJOR: a change that breaks the API\" },\n minor: { label: \"MINOR\", word: \"minor\", pill: \"sp-pill sp-accent\", legend: \"MINOR: new features (before 1.0.0, also a change of the API)\" },\n patch: { label: \"PATCH\", word: \"patch\", pill: \"sp-pill\", legend: \"PATCH: fixes and small additions\" },\n};\n\n/** This function gives \"Oct 18, 2026\" for an ISO date. */\nfunction dayWithYear(date: string): string {\n return `${shortDate(date)}, ${new Date(date).getUTCFullYear()}`;\n}\n\n/**\n * This function gives the lead line of the releases page, for example \"23 versions from Oct 12 to\n * Oct 18, 2026. 7 MINOR releases and 15 PATCH releases came after the first release.\"\n */\nexport function releasesLead(releases: readonly Release[]): string {\n const summary = releaseSummary(releases);\n if (!summary.first || !summary.last) return \"The repository has no release yet.\";\n const sameYear = new Date(summary.first).getUTCFullYear() === new Date(summary.last).getUTCFullYear();\n const from = sameYear ? shortDate(summary.first) : dayWithYear(summary.first);\n const range = shortDate(summary.first) === shortDate(summary.last) && sameYear ? `on ${dayWithYear(summary.last)}` : `from ${from} to ${dayWithYear(summary.last)}`;\n if (summary.versions === 1) return `1 version, the first release, ${range}.`;\n const kinds = [\n summary.major > 0 ? plural(summary.major, \"MAJOR release\") : \"\",\n summary.minor > 0 ? plural(summary.minor, \"MINOR release\") : \"\",\n summary.patch > 0 ? plural(summary.patch, \"PATCH release\") : \"\",\n ].filter(Boolean);\n return `${plural(summary.versions, \"version\")} ${range}. ${listText(kinds)} came after the first release.`;\n}\n\n/** The shape of a mark. The first release is a diamond, a MAJOR is a large dot, a MINOR is a dot and a PATCH is a ring. */\nfunction markShape(kind: ReleaseKind, y: number): string {\n if (kind === \"first\") return `<rect class=\"sp-dot\" x=\"-5.5\" y=\"${y - 5.5}\" width=\"11\" height=\"11\" transform=\"rotate(45 0 ${y})\"/>`;\n if (kind === \"major\") return `<circle class=\"sp-dot\" cy=\"${y}\" r=\"8\"/>`;\n if (kind === \"minor\") return `<circle class=\"sp-dot\" cy=\"${y}\" r=\"6.5\"/>`;\n return `<circle class=\"sp-ring\" cy=\"${y}\" r=\"4.5\"/>`;\n}\n\nfunction legend(releases: readonly Release[]): string {\n const kinds = ([\"major\", \"minor\", \"patch\", \"first\"] as const).filter((kind) => releases.some((release) => release.kind === kind));\n const items = kinds.map(\n (kind) =>\n `<li><svg width=\"18\" height=\"18\" viewBox=\"-9 -9 18 18\" aria-hidden=\"true\"><g class=\"sp-kind-${kind}\">${markShape(kind, 0)}</g></svg>${escapeHtml(KIND_INFO[kind].legend)}</li>`,\n );\n return `<ul class=\"sp-legend\">${items.join(\"\")}</ul>`;\n}\n\nconst fixed = (value: number): string => value.toFixed(1).replace(/\\.0$/, \"\");\n\nfunction timelineSvg(releases: readonly Release[], width: number, selected: string): string {\n const layout: TimelineLayout<Release> = timelineLayout(releases, { width });\n const { plotTop, plotBottom } = layout;\n const parts: string[] = [];\n for (const band of layout.bands) {\n const middle = (band.x0 + band.x1) / 2;\n const room = band.x1 - band.x0;\n const count = band.empty ? \"no release\" : plural(band.count, \"release\");\n parts.push(`<g${band.empty ? ' class=\"sp-empty-band\"' : \"\"}>`);\n if (band.empty) parts.push(`<rect class=\"sp-gap\" x=\"${fixed(band.x0)}\" y=\"${plotTop}\" width=\"${fixed(room)}\" height=\"${plotBottom - plotTop}\"/>`);\n parts.push(`<line class=\"sp-grid\" x1=\"${fixed(band.x0)}\" x2=\"${fixed(band.x0)}\" y1=\"${plotTop}\" y2=\"${plotBottom + 6}\"/>`);\n if (room >= band.label.length * 7 + 6) {\n parts.push(`<text class=\"sp-day\" x=\"${fixed(middle)}\" y=\"${plotBottom + 21}\" text-anchor=\"middle\">${escapeHtml(band.label)}</text>`);\n }\n if (room >= count.length * 6 + 6) {\n parts.push(`<text class=\"sp-day-count\" x=\"${fixed(middle)}\" y=\"${plotBottom + 38}\" text-anchor=\"middle\">${escapeHtml(count)}</text>`);\n }\n parts.push(\"</g>\");\n }\n const lastBand = layout.bands[layout.bands.length - 1];\n if (lastBand) parts.push(`<line class=\"sp-grid\" x1=\"${fixed(lastBand.x1)}\" x2=\"${fixed(lastBand.x1)}\" y1=\"${plotTop}\" y2=\"${plotBottom + 6}\"/>`);\n parts.push(`<line class=\"sp-axis\" x1=\"${fixed(layout.bands[0]?.x0 ?? 0)}\" x2=\"${fixed(lastBand?.x1 ?? width)}\" y1=\"${plotBottom}\" y2=\"${plotBottom}\"/>`);\n const axis = `<g aria-hidden=\"true\">${parts.join(\"\")}</g>`;\n\n const marks = layout.marks.map((mark) => {\n const { release } = mark;\n const on = release.version === selected;\n const label = `${release.version}, ${KIND_INFO[release.kind].word}, ${shortDate(release.date)}, ${plural(release.changes.length, \"change\")}`;\n return (\n `<g class=\"sp-mark sp-kind-${release.kind}${on ? \" sp-selected\" : \"\"}\" data-sp-mark data-version=\"${escapeHtml(release.version)}\"` +\n ` data-x=\"${fixed(mark.x)}\" data-half=\"${fixed(mark.half)}\" transform=\"translate(${fixed(mark.x)} ${fixed(laneCenter(layout, mark.lane))})\"` +\n ` role=\"button\" tabindex=\"${on ? 0 : -1}\" aria-pressed=\"${on}\" aria-label=\"${escapeHtml(label)}\">` +\n `<rect class=\"sp-hit\" x=\"${fixed(-mark.half - 4)}\" y=\"${fixed(-layout.laneHeight / 2 + 1)}\" width=\"${fixed(mark.half * 2 + 8)}\" height=\"${layout.laneHeight - 2}\" rx=\"4\"/>` +\n `<circle class=\"sp-halo\" cy=\"${MARK_Y}\" r=\"11\"/>${markShape(release.kind, MARK_Y)}` +\n `<text class=\"sp-label\" y=\"-3\" text-anchor=\"middle\">${escapeHtml(release.version)}</text></g>`\n );\n });\n const name = `The release timeline, ${plural(layout.marks.length, \"version\")}. The arrow keys move between the versions.`;\n return (\n `<svg class=\"sp-timeline\" width=\"${layout.width}\" height=\"${layout.height}\" viewBox=\"0 0 ${layout.width} ${layout.height}\" role=\"group\" aria-label=\"${escapeHtml(name)}\">` +\n `${axis}${marks.join(\"\")}</svg>`\n );\n}\n\n/** The common scope of all the package names (\"@procedures/\"), or \"\" when the names have no common scope. */\nfunction commonScope(releases: readonly Release[]): string {\n const names = new Set(releases.flatMap((release) => release.changes.flatMap((change) => change.packages)));\n const scopes = new Set([...names].map((name) => /^(@[^/]+\\/)/.exec(name)?.[1] ?? \"\"));\n const [scope] = scopes;\n return scopes.size === 1 && scope ? scope : \"\";\n}\n\n/** The counter for the IDs of the lists that a button opens. */\ninterface Ids {\n next: number;\n}\n\nfunction toggleButton(ids: string, more: string, less: string, hidden = \"\"): string {\n return (\n `<button type=\"button\" class=\"sp-ghost\" data-sp-js data-sp-toggle aria-controls=\"${ids}\" aria-expanded=\"false\"` +\n ` data-more=\"${escapeHtml(more)}\" data-less=\"${escapeHtml(less)}\"><span data-sp-label>${escapeHtml(more)}</span>${hidden}</button>`\n );\n}\n\nfunction chips(packages: readonly string[], scope: string, ids: Ids): string {\n if (packages.length === 0) return \"\";\n const id = `k${ids.next++}`;\n const items = packages.map((name, index) => {\n const short = scope && name.startsWith(scope) ? name.slice(scope.length) : name;\n const extra = index >= FIRST_CHIPS;\n return `<span class=\"sp-pill${extra ? \" sp-extra\" : \"\"}\" title=\"${escapeHtml(name)}\"${extra ? \" hidden\" : \"\"}>${escapeHtml(short)}</span>`;\n });\n const more = packages.length - FIRST_CHIPS;\n const button = more > 0 ? toggleButton(id, `+${more} more`, \"Fewer\", '<span class=\"sp-visually-hidden\"> packages</span>') : \"\";\n return `<span class=\"sp-chips\" id=\"${id}\">${items.join(\"\")}${button}</span>`;\n}\n\nfunction changeItem(change: ReleaseChange, index: number, repository: string, scope: string, ids: Ids): string {\n const extra = index >= FIRST_CHANGES;\n const commit = change.commit\n ? link(`https://github.com/${repository}/commit/${change.commit}`, `<code>${escapeHtml(change.commit)}</code>`, `class=\"sp-commit\" title=\"${escapeHtml(`Commit ${change.commit} on GitHub`)}\"`)\n : \"\";\n const meta = commit || change.packages.length > 0 ? `<div class=\"sp-change-meta\">${commit}${chips(change.packages, scope, ids)}</div>` : \"\";\n return `<li class=\"sp-change${extra ? \" sp-extra\" : \"\"}\"${extra ? \" hidden\" : \"\"}><p>${inlineMarkdown(change.text)}</p>${meta}</li>`;\n}\n\nfunction details(release: Release, index: number, selected: boolean, repository: string, scope: string, ids: Ids): string {\n const info = KIND_INFO[release.kind];\n const links = release.links.map((each) => link(each.url, escapeHtml(each.label))).join(\"\");\n const head =\n `<div class=\"sp-release-head\"><h2 id=\"h${index}\">${escapeHtml(release.version)}</h2><span class=\"${info.pill}\">${escapeHtml(info.label)}</span>` +\n `<time class=\"sp-small sp-muted\" datetime=\"${escapeHtml(release.date)}\">${escapeHtml(longDate(release.date))}</time>` +\n (links ? `<span class=\"sp-release-links sp-small\">${links}</span>` : \"\") +\n \"</div>\";\n let body: string;\n if (release.changes.length === 0) {\n body = '<p class=\"sp-small sp-muted\">The sources have no change entry for this version.</p>';\n } else {\n const packages = new Set(release.changes.flatMap((change) => change.packages)).size;\n const count = packages > 0\n ? `${plural(release.changes.length, \"change\")} in ${plural(packages, \"package\")}. The changes with the most packages come first.`\n : `${plural(release.changes.length, \"change\")}.`;\n const listId = `c${index}`;\n const items = release.changes.map((change, position) => changeItem(change, position, repository, scope, ids));\n const all = release.changes.length > FIRST_CHANGES ? toggleButton(listId, `Show all ${release.changes.length} changes`, \"Show fewer changes\") : \"\";\n body = `<p class=\"sp-small sp-muted\">${escapeHtml(count)}</p><ul class=\"sp-changes\" id=\"${listId}\">${items.join(\"\")}</ul>${all}`;\n }\n return (\n `<section class=\"sp-panel sp-release\" id=\"v${escapeHtml(release.version)}\" data-sp-release data-version=\"${escapeHtml(release.version)}\"` +\n ` aria-labelledby=\"h${index}\"${selected ? \"\" : \" hidden\"}>${head}${body}</section>`\n );\n}\n\n/**\n * The inline module of the releases page. It selects a version on a click, with the arrow keys,\n * Home, End, Enter and Space. It also opens the long lists and keeps the version in the URL.\n */\nexport const RELEASES_SCRIPT: string = String.raw`\nconst boxes = Array.from(document.querySelectorAll(\"[data-sp-timeline]\"));\nconst panels = new Map(Array.from(document.querySelectorAll(\"[data-sp-release]\"), (panel) => [panel.dataset.version, panel]));\nconst reduced = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\nlet selected = (document.querySelector(\"[data-sp-release]:not([hidden])\") || {}).dataset?.version;\nconst markIn = (box, version) => Array.from(box.querySelectorAll(\"[data-sp-mark]\")).find((mark) => mark.dataset.version === version);\nfunction reveal(box, version, smooth) {\n const mark = markIn(box, version);\n if (!mark || box.scrollWidth <= box.clientWidth) return;\n const x = Number(mark.dataset.x);\n const margin = Number(mark.dataset.half) + 16;\n if (x - margin >= box.scrollLeft && x + margin <= box.scrollLeft + box.clientWidth) return;\n box.scrollTo({ left: x - box.clientWidth / 2, behavior: smooth && !reduced ? \"smooth\" : \"auto\" });\n}\nfunction select(version, box) {\n const panel = panels.get(version);\n if (!panel) return;\n selected = version;\n for (const each of boxes) {\n for (const mark of each.querySelectorAll(\"[data-sp-mark]\")) {\n const on = mark.dataset.version === version;\n mark.classList.toggle(\"sp-selected\", on);\n mark.setAttribute(\"aria-pressed\", String(on));\n mark.setAttribute(\"tabindex\", on ? \"0\" : \"-1\");\n }\n }\n for (const [key, each] of panels) each.hidden = key !== version;\n if (box) {\n const mark = markIn(box, version);\n if (mark) mark.focus({ preventScroll: true });\n reveal(box, version, true);\n }\n try {\n history.replaceState(null, \"\", \"#\" + encodeURIComponent(panel.id));\n } catch {}\n}\nfor (const box of boxes) {\n box.addEventListener(\"click\", (event) => {\n const mark = event.target.closest(\"[data-sp-mark]\");\n if (mark) select(mark.dataset.version, box);\n });\n box.addEventListener(\"keydown\", (event) => {\n const mark = event.target.closest(\"[data-sp-mark]\");\n if (!mark || event.altKey || event.ctrlKey || event.metaKey) return;\n const marks = Array.from(box.querySelectorAll(\"[data-sp-mark]\"));\n const position = marks.indexOf(mark);\n const targets = { ArrowLeft: position - 1, ArrowRight: position + 1, Home: 0, End: marks.length - 1, Enter: position, \" \": position };\n if (!(event.key in targets)) return;\n event.preventDefault();\n const next = marks[Math.max(0, Math.min(marks.length - 1, targets[event.key]))];\n if (next) select(next.dataset.version, box);\n });\n}\ndocument.addEventListener(\"click\", (event) => {\n const button = event.target.closest(\"[data-sp-toggle]\");\n const list = button && document.getElementById(button.getAttribute(\"aria-controls\"));\n if (!list) return;\n const open = button.getAttribute(\"aria-expanded\") !== \"true\";\n for (const extra of list.querySelectorAll(\":scope > .sp-extra\")) extra.hidden = !open;\n button.setAttribute(\"aria-expanded\", String(open));\n const label = button.querySelector(\"[data-sp-label]\");\n if (label) label.textContent = open ? button.dataset.less : button.dataset.more;\n});\n// A malformed hash, for example \"#100%\", must not stop the module\nlet hashed = \"\";\ntry {\n hashed = decodeURIComponent(location.hash.slice(1));\n} catch {}\nfor (const [version, panel] of panels) if (panel.id === hashed) select(version, null);\nconst revealAll = () => { for (const box of boxes) reveal(box, selected, false); };\nrevealAll();\nwindow.addEventListener(\"resize\", revealAll);\n`;\n\n/** This function renders the complete releases page from the data of `releases.json`. */\nexport function renderReleasesPage(releases: readonly Release[], options: PageOptions): string {\n const newest = releases[0];\n const ordered = oldestFirst(releases);\n const scope = commonScope(releases);\n const ids: Ids = { next: 0 };\n const lead = `<p class=\"sp-lead\">${escapeHtml(releasesLead(releases))}</p>`;\n let content = \"\";\n if (newest) {\n content =\n `<div class=\"sp-panel\"><p class=\"sp-small sp-muted\">Each mark is one version, on a time axis in UTC. Select a mark to show its changes.</p>` +\n legend(releases) +\n `<div class=\"sp-timeline-box sp-timeline-narrow\" data-sp-timeline>${timelineSvg(ordered, NARROW_WIDTH, newest.version)}</div>` +\n `<div class=\"sp-timeline-box sp-timeline-wide\" data-sp-timeline>${timelineSvg(ordered, WIDE_WIDTH, newest.version)}</div></div>` +\n releases.map((release, index) => details(release, index, index === 0, options.repository, scope, ids)).join(\"\");\n }\n const source =\n '<p class=\"sp-small sp-muted\">Source: the <code>CHANGELOG.md</code> files, the git tags, the GitHub releases and npm, read when the site was built.</p>';\n return pageShell(\n {\n title: \"Releases\",\n description: releasesLead(releases),\n current: \"releases\",\n main: `<h1>Releases</h1>${lead}${content}${source}`,\n script: RELEASES_SCRIPT,\n },\n options,\n );\n}\n","/**\n * The standalone status page: the open work of the roadmap file, the open pull requests and the\n * open issues. The build renders the HTML, and one small inline module adds the filters.\n */\n\nimport { OPEN_CLASSES } from \"../data/status.ts\";\nimport type { BoardItem, CheckState, StatusBoardData, StatusClass } from \"../data/types.ts\";\nimport { longDate } from \"./dates.ts\";\nimport { escapeHtml, inlineMarkdown, link, listText, plural } from \"./html.ts\";\nimport { pageShell, type PageOptions } from \"./theme.ts\";\n\n/** The label, the icon and the meaning of each class. The page always shows a color with an icon and a label. */\nconst CLASS_INFO: Record<StatusClass, { label: string; icon: string; meaning: string }> = {\n waiting: { label: \"Waiting\", icon: \"◷\", meaning: \"It waits for a person or a decision\" },\n blocked: { label: \"Blocked\", icon: \"⊘\", meaning: \"Other work must finish first\" },\n progress: { label: \"In progress\", icon: \"◐\", meaning: \"Work started\" },\n open: { label: \"Open\", icon: \"○\", meaning: \"Nobody started it\" },\n later: { label: \"Later\", icon: \"◌\", meaning: \"It is for later\" },\n done: { label: \"Done\", icon: \"✓\", meaning: \"It is finished\" },\n};\n\nconst CHECK_LABEL: Record<CheckState, string> = {\n success: \"Checks pass\",\n failure: \"Checks fail\",\n pending: \"Checks run\",\n none: \"No checks\",\n};\n\n/**\n * This function gives the lead line of the status page, for example \"12 open roadmap items, 9 open\n * pull requests and 0 open issues, read at Oct 19, 2026, 14:05 UTC from abc1234.\"\n */\nexport function statusLead(data: StatusBoardData): string {\n const parts: string[] = [];\n if (data.source.roadmap) parts.push(plural(data.items.filter((item) => item.statusClass !== \"done\").length, \"open roadmap item\"));\n if (data.github.available) {\n parts.push(plural(data.github.totals?.pullRequests ?? data.pullRequests.length, \"open pull request\"));\n parts.push(plural(data.github.totals?.issues ?? data.issues.length, \"open issue\"));\n }\n const commit = data.commit ? data.commit.slice(0, 7) : null;\n const read = `read at ${longDate(data.generatedAt)}${commit ? ` from ${commit}` : \"\"}`;\n const line = parts.length > 0 ? `${listText(parts)}, ${read}.` : `Read at ${read.slice(\"read at \".length)}.`;\n return data.github.available ? line : `${line} The build could not read GitHub.`;\n}\n\n/** This function gives the part of a URL for a text: \"The server stack (R37)\" gives \"the-server-stack-r37\". */\nexport function slugOf(text: string): string {\n return (\n text\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, \"-\")\n // After the line above, no two hyphens are next to each other. \"-+$\" backtracks, and \"-$\" does not.\n .replace(/^-|-$/g, \"\") || \"other\"\n );\n}\n\n/** A section of the roadmap, with the count of its open items and of its done items. */\nexport interface BoardSection {\n slug: string;\n label: string;\n open: number;\n done: number;\n}\n\n/** This function gives the sections of the items, in the sequence of the file. */\nexport function sectionsOf(items: readonly BoardItem[]): BoardSection[] {\n const sections = new Map<string, BoardSection>();\n for (const item of items) {\n const slug = slugOf(item.section);\n const section = sections.get(slug) ?? { slug, label: item.section || \"Other\", open: 0, done: 0 };\n if (item.statusClass === \"done\") section.done++;\n else section.open++;\n sections.set(slug, section);\n }\n return [...sections.values()];\n}\n\n/** A group of items with one class. */\nexport interface ItemGroup {\n statusClass: StatusClass;\n items: BoardItem[];\n}\n\n/** This function gives the groups of the open items in the sequence of `OPEN_CLASSES`, without the empty groups. */\nexport function openGroups(items: readonly BoardItem[]): ItemGroup[] {\n return OPEN_CLASSES.map((statusClass) => ({ statusClass, items: items.filter((item) => item.statusClass === statusClass) })).filter(\n (group) => group.items.length > 0,\n );\n}\n\n/** This function counts the items of each class. */\nexport function classCounts(items: readonly BoardItem[]): Record<StatusClass, number> {\n const counts: Record<StatusClass, number> = { waiting: 0, blocked: 0, progress: 0, open: 0, later: 0, done: 0 };\n for (const item of items) counts[item.statusClass]++;\n return counts;\n}\n\nfunction roadmapUrl(data: StatusBoardData): string {\n return `https://github.com/${data.source.github}/blob/${data.commit ?? \"HEAD\"}/${data.source.roadmap ?? \"\"}`;\n}\n\nfunction meter(items: readonly BoardItem[]): string {\n const counts = classCounts(items);\n const order: StatusClass[] = [\"done\", ...OPEN_CLASSES];\n const present = order.filter((value) => counts[value] > 0);\n const total = Math.max(1, items.length);\n const summary = present.map((value) => `${counts[value]} ${CLASS_INFO[value].label.toLowerCase()}`).join(\", \");\n const parts = present.map((value) => `<span class=\"sp-c-${value}\" style=\"flex-grow:${(counts[value] / total).toFixed(4)}\"></span>`);\n const legend = present.map(\n (value) => `<li class=\"sp-c-${value}\"><span class=\"sp-swatch\"></span>${CLASS_INFO[value].label} <strong>${counts[value]}</strong></li>`,\n );\n return (\n `<div class=\"sp-meter\" role=\"img\" aria-label=\"${escapeHtml(`${plural(items.length, \"item\")} of the roadmap: ${summary}`)}\">${parts.join(\"\")}</div>` +\n `<ul class=\"sp-meter-legend\" aria-hidden=\"true\">${legend.join(\"\")}</ul>`\n );\n}\n\nfunction itemTable(items: readonly BoardItem[], data: StatusBoardData, columns: { owner: boolean; links: boolean }): string {\n const fileUrl = roadmapUrl(data);\n const none = '<span class=\"sp-muted\">—</span>';\n const rows = items.map((item) => {\n const meta = [escapeHtml(item.section), item.area ? inlineMarkdown(item.area) : \"\", item.needs ? `needs ${inlineMarkdown(item.needs)}` : \"\"]\n .filter(Boolean)\n .join(\" · \");\n const links = item.links.length > 0 ? `<span class=\"sp-links\">${item.links.map((each) => link(each.url, escapeHtml(each.label))).join(\"\")}</span>` : none;\n return (\n `<tr class=\"sp-c-${item.statusClass}\" data-section=\"${escapeHtml(slugOf(item.section))}\">` +\n `<th scope=\"row\">${link(`${fileUrl}?plain=1#L${item.line}`, escapeHtml(item.id), `title=\"${escapeHtml(`The row of ${item.id} in the roadmap file`)}\"`)}</th>` +\n `<td data-label=\"Item\" class=\"sp-item\"><span>${item.title ? inlineMarkdown(item.title) : '<span class=\"sp-muted\">No title</span>'}</span>` +\n `<span class=\"sp-item-meta sp-small sp-muted\">${meta}</span></td>` +\n // One element in each cell: on a phone, the cell is a grid of its label and its content\n (columns.owner ? `<td data-label=\"Owner\">${item.owner ? `<span>${inlineMarkdown(item.owner)}</span>` : none}</td>` : \"\") +\n `<td data-label=\"Status\"><span class=\"sp-status\"><span aria-hidden=\"true\">${CLASS_INFO[item.statusClass].icon}</span> ` +\n `${inlineMarkdown(item.status || CLASS_INFO[item.statusClass].label)}</span></td>` +\n (columns.links ? `<td data-label=\"Links\">${links}</td>` : \"\") +\n \"</tr>\"\n );\n });\n const head =\n '<thead><tr><th scope=\"col\">ID</th><th scope=\"col\">Item</th>' +\n (columns.owner ? '<th scope=\"col\">Owner</th>' : \"\") +\n '<th scope=\"col\">Status</th>' +\n (columns.links ? '<th scope=\"col\">Links</th>' : \"\") +\n \"</tr></thead>\";\n return `<div class=\"sp-table-box\"><table class=\"sp-table\">${head}<tbody>${rows.join(\"\")}</tbody></table></div>`;\n}\n\nfunction openWork(data: StatusBoardData): string {\n const items = data.items;\n const open = items.filter((item) => item.statusClass !== \"done\");\n const done = items.filter((item) => item.statusClass === \"done\");\n const counts = classCounts(items);\n const columns = { owner: items.some((item) => item.owner), links: items.some((item) => item.links.length > 0) };\n const file = (data.source.roadmap ?? \"\").split(\"/\").pop() ?? \"\";\n const classChips = OPEN_CLASSES.map(\n (value) =>\n `<button type=\"button\" class=\"sp-chip sp-c-${value}\" data-sp-class=\"${value}\" aria-pressed=\"false\" title=\"${escapeHtml(CLASS_INFO[value].meaning)}\">` +\n `<span aria-hidden=\"true\">${CLASS_INFO[value].icon}</span> ${CLASS_INFO[value].label} <span class=\"sp-count\">${counts[value]}</span></button>`,\n );\n const sectionChips = sectionsOf(items)\n .filter((section) => section.open > 0)\n .map(\n (section) =>\n `<button type=\"button\" class=\"sp-chip\" data-sp-section=\"${escapeHtml(section.slug)}\" aria-pressed=\"false\">` +\n `${escapeHtml(section.label)} <span class=\"sp-count\">${section.open}</span></button>`,\n );\n const filters =\n `<div class=\"sp-filters\" role=\"group\" aria-label=\"Filters of the open work\" data-sp-js>` +\n `<span role=\"group\" aria-label=\"Status of the items\">${classChips.join(\"\")}</span>` +\n (sectionChips.length > 1 ? `<span role=\"group\" aria-label=\"Section of the roadmap\">${sectionChips.join(\"\")}</span>` : \"\") +\n `<button type=\"button\" class=\"sp-ghost\" data-sp-clear hidden>Clear the filters</button></div>`;\n const label = plural(open.length, \"open item\");\n const groups = openGroups(items).map(\n (group) =>\n `<section class=\"sp-group sp-c-${group.statusClass}\" data-sp-group data-class=\"${group.statusClass}\" aria-labelledby=\"group-${group.statusClass}\">` +\n `<h3 id=\"group-${group.statusClass}\"><span aria-hidden=\"true\">${CLASS_INFO[group.statusClass].icon}</span> ${CLASS_INFO[group.statusClass].label} ` +\n `<span class=\"sp-group-count\" data-sp-group-count>${group.items.length}</span></h3>${itemTable(group.items, data, columns)}</section>`,\n );\n const list =\n open.length === 0\n ? '<p class=\"sp-callout\">The roadmap has no open item.</p>'\n : `<p class=\"sp-small sp-muted\" aria-live=\"polite\" data-sp-shown data-label=\"${escapeHtml(label)}\">${open.length} of ${escapeHtml(label)}</p>` +\n groups.join(\"\") +\n '<p class=\"sp-callout\" data-sp-empty hidden>No open item matches the filters.</p>';\n const doneText = done.length === 1 ? \"1 item is done.\" : `${done.length} items are done.`;\n const doneList =\n done.length === 0\n ? `<p class=\"sp-done sp-small\"><span aria-hidden=\"true\">✓</span> No item is done.</p>`\n : `<details class=\"sp-done sp-c-done\" data-sp-done><summary><span aria-hidden=\"true\">✓</span> ${doneText} ` +\n `<span data-sp-done-label>Show the done items</span></summary>` +\n `<section class=\"sp-group sp-c-done\" data-sp-group data-class=\"done\" aria-label=\"The done items\">${itemTable(done, data, columns)}` +\n '<p class=\"sp-callout\" data-sp-done-empty hidden>No done item matches the filters.</p></section></details>';\n return (\n `<section class=\"sp-section\" aria-labelledby=\"open-work\" data-sp-board><h2 id=\"open-work\">Open work</h2>` +\n `<p class=\"sp-small sp-muted\">Each row of a table of ${link(roadmapUrl(data), `<code>${escapeHtml(file)}</code>`)} with an ID and a status that is not done. ` +\n \"The build reads the file, so this list follows each commit.</p>\" +\n meter(items) +\n (open.length > 0 ? filters : \"\") +\n list +\n doneList +\n \"</section>\"\n );\n}\n\nfunction when(date: string): string {\n const text = escapeHtml(longDate(date));\n return `<time datetime=\"${escapeHtml(date)}\" title=\"${text}\" data-sp-rel>${text}</time>`;\n}\n\nfunction labels(names: readonly string[]): string {\n return names.length === 0 ? \"\" : `<span class=\"sp-labels\">${names.map((name) => `<span class=\"sp-pill\">${escapeHtml(name)}</span>`).join(\"\")}</span>`;\n}\n\nfunction githubMissing(data: StatusBoardData): string {\n const reason = data.github.reason ? ` (${escapeHtml(data.github.reason)})` : \"\";\n return `<p class=\"sp-callout\">The build could not read GitHub${reason}. Refer to ${link(`https://github.com/${data.source.github}`, escapeHtml(data.source.github))} on GitHub.</p>`;\n}\n\nfunction pullRequests(data: StatusBoardData): string {\n const total = data.github.totals?.pullRequests ?? data.pullRequests.length;\n let body: string;\n if (!data.github.available) body = githubMissing(data);\n else if (data.pullRequests.length === 0) {\n body = `<p class=\"sp-callout\">No pull request is open. Refer to ${link(`https://github.com/${data.source.github}/pulls?q=is%3Apr`, \"all the pull requests\")}.</p>`;\n } else {\n const count =\n total > data.pullRequests.length\n ? `The ${data.pullRequests.length} most recently updated of ${plural(total, \"open pull request\")}.`\n : `${plural(total, \"open pull request\")}, the most recently updated first.`;\n const cards = data.pullRequests.map(\n (pull) =>\n `<li class=\"sp-card\">${link(pull.url, `<span class=\"sp-number\">#${pull.number}</span> ${escapeHtml(pull.title)}`, 'class=\"sp-card-title\"')}` +\n `<span class=\"sp-card-meta\"><span class=\"sp-pill${pull.draft ? \"\" : \" sp-accent\"}\">${pull.draft ? \"Draft\" : \"Ready\"}</span>` +\n `<span class=\"sp-check sp-check-${pull.checks}\"><span class=\"sp-dot-state\" aria-hidden=\"true\"></span>${CHECK_LABEL[pull.checks]}</span>` +\n `<span>by ${escapeHtml(pull.author)}</span><code class=\"sp-branch\">${escapeHtml(pull.branch)}</code>` +\n `<span class=\"sp-muted\">updated ${when(pull.updatedAt)}</span>${labels(pull.labels)}</span></li>`,\n );\n body = `<p class=\"sp-small sp-muted\">${escapeHtml(count)}</p><ul class=\"sp-cards\">${cards.join(\"\")}</ul>`;\n }\n return `<section class=\"sp-section\" aria-labelledby=\"pull-requests\"><h2 id=\"pull-requests\">Pull requests</h2>${body}</section>`;\n}\n\nfunction issues(data: StatusBoardData): string {\n const total = data.github.totals?.issues ?? data.issues.length;\n let body: string;\n if (!data.github.available) body = githubMissing(data);\n else if (data.issues.length === 0) {\n body = `<p class=\"sp-callout\">No issue is open. To report a problem, ${link(`https://github.com/${data.source.github}/issues/new`, \"open an issue\")}.</p>`;\n } else {\n const count =\n total > data.issues.length\n ? `The ${data.issues.length} most recently updated of ${plural(total, \"open issue\")}.`\n : `${plural(total, \"open issue\")}, the most recently updated first.`;\n const cards = data.issues.map(\n (issue) =>\n `<li class=\"sp-card\">${link(issue.url, `<span class=\"sp-number\">#${issue.number}</span> ${escapeHtml(issue.title)}`, 'class=\"sp-card-title\"')}` +\n `<span class=\"sp-card-meta\"><span>by ${escapeHtml(issue.author)}</span>` +\n `<span class=\"sp-muted\">updated ${when(issue.updatedAt)}</span>${labels(issue.labels)}</span></li>`,\n );\n body = `<p class=\"sp-small sp-muted\">${escapeHtml(count)}</p><ul class=\"sp-cards\">${cards.join(\"\")}</ul>`;\n }\n return `<section class=\"sp-section\" aria-labelledby=\"issues\"><h2 id=\"issues\">Issues</h2>${body}</section>`;\n}\n\n/** The pure helpers of the inline module of the status page. A test reads them from this text. */\nexport const STATUS_SCRIPT_HELPERS: string = String.raw`\nfunction relativeTime(then, now) {\n const seconds = Math.round((now - then) / 1000);\n if (!Number.isFinite(seconds)) return \"at an unknown time\";\n if (seconds < 60) return \"just now\";\n const steps = [[60, \"minute\"], [3600, \"hour\"], [86400, \"day\"], [2592000, \"month\"], [31536000, \"year\"]];\n let unit = steps[0];\n for (const step of steps) if (seconds >= step[0]) unit = step;\n const count = Math.floor(seconds / unit[0]);\n return count + \" \" + unit[1] + (count === 1 ? \"\" : \"s\") + \" ago\";\n}\nfunction listOf(text) {\n return (text || \"\").split(\",\").filter((part) => part !== \"\");\n}\n`;\n\n/**\n * The inline module of the status page. It filters the open work by class and by section, keeps the\n * filters in the URL, and shows the age of each GitHub time.\n */\nexport const STATUS_SCRIPT: string =\n STATUS_SCRIPT_HELPERS +\n String.raw`\nconst now = Date.now();\nfor (const time of document.querySelectorAll(\"time[data-sp-rel]\")) {\n time.textContent = relativeTime(Date.parse(time.dateTime), now) + \" (\" + time.title + \")\";\n}\nconst board = document.querySelector(\"[data-sp-board]\");\nif (board) {\n const classChips = Array.from(board.querySelectorAll(\"[data-sp-class]\"));\n const sectionChips = Array.from(board.querySelectorAll(\"[data-sp-section]\"));\n const groups = Array.from(board.querySelectorAll(\"[data-sp-group]\"));\n const shown = board.querySelector(\"[data-sp-shown]\");\n const empty = board.querySelector(\"[data-sp-empty]\");\n const clear = board.querySelector(\"[data-sp-clear]\");\n const done = board.querySelector(\"[data-sp-done]\");\n const query = new URLSearchParams(location.search);\n const state = {\n classes: listOf(query.get(\"status\")).filter((value) => classChips.some((chip) => chip.dataset.spClass === value)),\n sections: listOf(query.get(\"section\")),\n };\n if (done && query.get(\"done\") === \"1\") done.open = true;\n const apply = (write) => {\n for (const chip of classChips) chip.setAttribute(\"aria-pressed\", String(state.classes.includes(chip.dataset.spClass)));\n for (const chip of sectionChips) chip.setAttribute(\"aria-pressed\", String(state.sections.includes(chip.dataset.spSection)));\n let count = 0;\n for (const group of groups) {\n const isDone = group.dataset.class === \"done\";\n const classOn = isDone || state.classes.length === 0 || state.classes.includes(group.dataset.class);\n let visible = 0;\n for (const row of group.querySelectorAll(\"tr[data-section]\")) {\n const on = classOn && (state.sections.length === 0 || state.sections.includes(row.dataset.section));\n row.hidden = !on;\n if (on) visible++;\n }\n if (isDone) {\n const none = group.querySelector(\"[data-sp-done-empty]\");\n if (none) none.hidden = visible > 0;\n } else {\n group.hidden = visible === 0;\n const badge = group.querySelector(\"[data-sp-group-count]\");\n if (badge) badge.textContent = String(visible);\n count += visible;\n }\n }\n if (shown) shown.textContent = count + \" of \" + shown.dataset.label;\n if (empty) empty.hidden = count > 0;\n if (clear) clear.hidden = state.classes.length === 0 && state.sections.length === 0;\n if (done) {\n const label = done.querySelector(\"[data-sp-done-label]\");\n if (label) label.textContent = done.open ? \"Hide the done items\" : \"Show the done items\";\n }\n if (!write) return;\n const next = new URLSearchParams(location.search);\n const put = (key, value) => (value ? next.set(key, value) : next.delete(key));\n put(\"status\", state.classes.join(\",\"));\n put(\"section\", state.sections.join(\",\"));\n put(\"done\", done && done.open ? \"1\" : \"\");\n const search = next.toString();\n try {\n history.replaceState(null, \"\", location.pathname + (search ? \"?\" + search : \"\") + location.hash);\n } catch {}\n };\n const toggle = (list, value) => (list.includes(value) ? list.filter((each) => each !== value) : list.concat(value));\n board.addEventListener(\"click\", (event) => {\n const chip = event.target.closest(\"button\");\n if (!chip) return;\n if (chip.dataset.spClass) state.classes = toggle(state.classes, chip.dataset.spClass);\n else if (chip.dataset.spSection) state.sections = toggle(state.sections, chip.dataset.spSection);\n else if (chip.hasAttribute(\"data-sp-clear\")) {\n state.classes = [];\n state.sections = [];\n } else return;\n apply(true);\n });\n if (done) done.addEventListener(\"toggle\", () => apply(true));\n apply(false);\n}\n`;\n\n/** This function renders the complete status page from the data of `status.json`. */\nexport function renderStatusPage(data: StatusBoardData, options: PageOptions): string {\n const lead = statusLead(data);\n const main =\n `<h1>Status</h1><p class=\"sp-lead\">${escapeHtml(lead)}</p>` +\n '<p class=\"sp-small sp-muted\">The build reads the roadmap file and GitHub again after each commit and on a schedule.</p>' +\n (data.source.roadmap ? openWork(data) : \"\") +\n pullRequests(data) +\n issues(data);\n return pageShell({ title: \"Status\", description: lead, current: \"status\", main, script: STATUS_SCRIPT }, options);\n}\n","/**\n * The rule `changelog-version`: the top release section of the changelog of a package is not above the version of\n * its `package.json`.\n */\nimport { existsSync, readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { compareVersions, parseChangelog } from \"@mark1russell7/site-pages\";\nimport { codePackages, type Break, type PackageInfo, type Rule, type RuleContext } from \"../rule.ts\";\n\n/** This function gives the version and the line (from 1) of the first version section of a changelog, or undefined. */\nfunction topSection(text: string): { readonly version: string; readonly line: number } | undefined {\n const top = parseChangelog(text)[0];\n if (top === undefined) return undefined;\n const index = text.split(/\\r?\\n/).findIndex((line) => /^##\\s/.test(line) && line.replace(/^##\\s+/, \"\").trim() === top.heading);\n return { version: top.version, line: index + 1 };\n}\n\n/** The packages with a release version: the root package and the code packages that are not private and have a name and a version. */\nfunction versioned(context: RuleContext): readonly PackageInfo[] {\n const all = [context.rootPackage, ...codePackages(context)];\n return all\n .filter((pkg, index) => all.findIndex((other) => other.file === pkg.file) === index)\n .filter((pkg) => pkg.manifest[\"private\"] !== true && typeof pkg.manifest[\"name\"] === \"string\" && typeof pkg.manifest[\"version\"] === \"string\");\n}\n\nexport const changelogVersion: Rule = {\n id: \"changelog-version\",\n title: \"The top release section of the changelog of a package is not above the version of its package.json. With the option `everyVersion`, it is the same version.\",\n reason:\n \"On 2026-11-03 a pull request added the section 0.5.0 with two breaking changes to a changelog, and left package.json at 0.4.1. The next change of a dependency range made the train plan a PATCH 0.4.2, so the breaking changes were about to ship under a PATCH number.\",\n fix: \"Set the version of package.json to the version of the top section in the same change, by the rules of Semantic Versioning. Or, if the release is not ready, name the section Unreleased.\",\n sources: [\n { repo: \"packing\", rule: \"changelog\", doc: \"packages/packing/CHANGELOG.md (#249 added 0.5.0, package.json stayed 0.4.1; #253 set 0.5.0)\" },\n { repo: \"release-train\", rule: \"cascade\", doc: \"the train plans a PATCH for a change of a dependency range\" },\n { repo: \"fleet\", rule: \"semver\", doc: \"the global CLAUDE.md, npm packages use Semantic Versioning\" },\n ],\n options: {\n file: { type: \"string\", default: \"CHANGELOG.md\", description: \"The name of the changelog in the folder of each package.\" },\n everyVersion: { type: \"boolean\", default: false, description: \"When true, the top section also names the version of package.json: each version has its section.\" },\n },\n check(context, options) {\n const name = String(options[\"file\"]);\n const breaks: Break[] = [];\n let found = 0;\n for (const pkg of versioned(context)) {\n const file = pkg.folder === \"\" ? name : `${pkg.folder}/${name}`;\n if (!existsSync(join(context.root, file))) continue;\n found += 1;\n const version = String(pkg.manifest[\"version\"]);\n const top = topSection(readFileSync(join(context.root, file), \"utf8\"));\n if (top === undefined) {\n if (options[\"everyVersion\"] === true) breaks.push({ file, message: `${file} has no section for a version, and ${pkg.file} is at ${version}.` });\n continue;\n }\n const order = compareVersions(top.version, version);\n if (order > 0) {\n breaks.push({ file, line: top.line, message: `${file} has the section ${top.version}, and ${pkg.file} is still at ${version}. Set the version to ${top.version} in this change. Else a change of a dependency range releases a PATCH of ${version} under the notes of ${top.version}.` });\n } else if (order < 0 && options[\"everyVersion\"] === true) {\n breaks.push({ file, line: top.line, message: `${pkg.file} is at ${version}, and the top section of ${file} is ${top.version}. Add the section ${version}.` });\n }\n }\n if (found === 0) return { skipped: `no package with a release version has a file ${name}` };\n return breaks;\n },\n};\n","/**\n * The rule `cue-preset`: the `tsconfig.json` of each package extends a preset of `@mark1russell7/cue`.\n * No config of a package turns off a strict option of its preset.\n */\nimport { readFileSync } from \"node:fs\";\nimport { createRequire } from \"node:module\";\nimport { dirname, join, resolve } from \"node:path\";\nimport { codePackages, hasFile, inFolder, lineOf, readJsonc, type Break, type Rule } from \"../rule.ts\";\n\n/** The compiler options that make the type check strict. A package does not turn them off. */\nexport const STRICT_OPTIONS = [\n \"strict\",\n \"noImplicitAny\",\n \"strictNullChecks\",\n \"strictFunctionTypes\",\n \"strictBindCallApply\",\n \"strictPropertyInitialization\",\n \"strictBuiltinIteratorReturn\",\n \"noImplicitThis\",\n \"useUnknownInCatchVariables\",\n \"alwaysStrict\",\n \"noUncheckedIndexedAccess\",\n \"exactOptionalPropertyTypes\",\n \"noImplicitOverride\",\n \"noImplicitReturns\",\n \"noFallthroughCasesInSwitch\",\n \"noPropertyAccessFromIndexSignature\",\n \"erasableSyntaxOnly\",\n] as const;\n\n/** The options that `strict` turns on when a config does not set them. */\nconst STRICT_FAMILY = new Set<string>([\n \"noImplicitAny\",\n \"strictNullChecks\",\n \"strictFunctionTypes\",\n \"strictBindCallApply\",\n \"strictPropertyInitialization\",\n \"strictBuiltinIteratorReturn\",\n \"noImplicitThis\",\n \"useUnknownInCatchVariables\",\n \"alwaysStrict\",\n]);\n\ntype Json = Readonly<Record<string, unknown>>;\n\nconst asObject = (value: unknown): Json => (typeof value === \"object\" && value !== null && !Array.isArray(value) ? (value as Json) : {});\n\n/** This function gives the `extends` list of a tsconfig. */\nconst extendsOf = (config: Json): string[] => {\n const value = config[\"extends\"];\n if (typeof value === \"string\") return [value];\n return Array.isArray(value) ? value.filter((item): item is string => typeof item === \"string\") : [];\n};\n\n/** The compiler options that a config gets from the configs that it extends. */\ninterface Inherited {\n readonly options: Json;\n /** False when the config extends a config that the rule cannot read. */\n readonly complete: boolean;\n}\n\n/**\n * This function gives the compiler options of the configs that `config` extends, with the options of\n * a later config over an earlier one.\n */\nfunction inheritedOptions(config: Json, dir: string, depth = 0): Inherited {\n if (depth > 10) return { options: {}, complete: false };\n let options: Json = {};\n let complete = true;\n for (const base of extendsOf(config)) {\n let file: string | undefined;\n if (base.startsWith(\".\")) file = resolve(dir, base.endsWith(\".json\") ? base : `${base}.json`);\n else {\n try {\n file = createRequire(join(dir, \"package.json\")).resolve(base);\n } catch {\n file = undefined;\n }\n }\n const parent = file === undefined ? undefined : readJsonc(file);\n if (parent === undefined || file === undefined) {\n complete = false;\n continue;\n }\n const above = inheritedOptions(asObject(parent), dirname(file), depth + 1);\n complete &&= above.complete;\n options = { ...options, ...above.options, ...asObject(asObject(parent)[\"compilerOptions\"]) };\n }\n return { options, complete };\n}\n\n/**\n * This function tells if a config that extends configs with the options `inherited` turns on the\n * option. When the rule cannot read each config, it gives true: the package turns off a strict option.\n */\nfunction inheritedOn(option: string, inherited: Inherited): boolean {\n if (!inherited.complete) return true;\n const value = inherited.options[option];\n if (typeof value === \"boolean\") return value;\n return STRICT_FAMILY.has(option) && inherited.options[\"strict\"] === true;\n}\n\nexport const cuePreset: Rule = {\n id: \"cue-preset\",\n title: \"The `tsconfig.json` of each package extends a preset of `@mark1russell7/cue`, and no config of a package turns off a strict option.\",\n reason:\n \"`pnpm package add` writes the configs from a preset, so each package checks its types with the same strict options. A config by hand or a strict option turned off lets the packages drift apart.\",\n fix: \"Make the package with `pnpm package add <name> --preset=<preset>`, or set `extends` to `@mark1russell7/cue/ts/config/<preset>.json`. Correct the code, not the strict option.\",\n sources: [\n { repo: \"client\", rule: \"cue-config\", doc: \"CLAUDE.md:64\" },\n { repo: \"client\", rule: \"no-manual-tsconfig\", doc: \"CLAUDE.md:64\" },\n { repo: \"Graph\", rule: \"cue-preset-strict\", doc: \"docs/architecture/ecosystem-and-structure.md:58\" },\n { repo: \"Graph\", rule: \"strict-preset\", doc: \"docs/architecture/ecosystem-and-structure.md:58\" },\n { repo: \"Graph\", rule: \"new-package-via-cli\", doc: \"CLAUDE.md:14\" },\n { repo: \"coeval\", rule: \"package-scaffold\", doc: \"CLAUDE.md:16\" },\n { repo: \"crawler\", rule: \"package-scaffold\", doc: \"CLAUDE.md:16\" },\n { repo: \"headroom\", rule: \"package-scaffold\", doc: \"CLAUDE.md:30\" },\n { repo: \"Vex\", rule: \"package-scaffold\", doc: \"CLAUDE.md:22\" },\n ],\n options: {\n prefix: { type: \"string\", default: \"@mark1russell7/cue/\", description: \"The start of the `extends` path of a preset.\" },\n extends: {\n type: \"boolean\",\n default: true,\n description: \"When false, the rule does not examine `extends`. It still reports each strict option that a config turns off. For a package that publishes its own presets.\",\n },\n },\n check(context, options) {\n const prefix = typeof options[\"prefix\"] === \"string\" ? options[\"prefix\"] : \"@mark1russell7/cue/\";\n const breaks: Break[] = [];\n for (const info of codePackages(context)) {\n if (!hasFile(info.dir, \"tsconfig.json\")) continue;\n for (const name of [\"tsconfig.json\", \"tsconfig.test.json\"]) {\n const path = join(info.dir, name);\n const file = inFolder(info.folder, name);\n const value = readJsonc(path);\n if (value === undefined) {\n if (hasFile(info.dir, name)) breaks.push({ file, message: `${name} is not JSON.`, fix: \"Correct the JSON.\" });\n continue;\n }\n const config = asObject(value);\n if (name === \"tsconfig.json\" && options[\"extends\"] !== false && !extendsOf(config).some((base) => base.startsWith(prefix))) {\n const line = lineOf(readFileSync(path, \"utf8\"), '\"extends\"');\n breaks.push({ file, ...(line === undefined ? {} : { line }), message: `tsconfig.json does not extend a preset of ${prefix.replace(/\\/$/, \"\")}.` });\n }\n const own = asObject(config[\"compilerOptions\"]);\n const inherited = inheritedOptions(config, info.dir);\n for (const option of STRICT_OPTIONS) {\n if (own[option] !== false || !inheritedOn(option, inherited)) continue;\n breaks.push({ file, message: `${name} turns off the strict option ${option}.`, fix: `Remove \"${option}\": false, and correct the code that it hides.` });\n }\n }\n }\n return breaks;\n },\n};\n","/**\n * A small reader of GitHub workflow files, by the indent of the lines. The rules that read workflows share it. It\n * knows the block form, the inline values of keys and the block scalars (`|` and `>`) that the workflows of the template\n * use. `readWorkflow` gives the parts of a shared workflow that the site of the template shows.\n */\n\n/** A workflow file. */\nexport const WORKFLOW: RegExp = /^\\.github\\/workflows\\/[^/]+\\.ya?ml$/;\n\nexport const indentOf = (line: string): number => line.length - line.trimStart().length;\n\n/** This function gives the lines of a workflow, with each line of a comment made empty. */\nexport const workflowLines = (text: string): string[] => text.split(/\\r?\\n/).map((line) => (line.trimStart().startsWith(\"#\") ? \"\" : line));\n\n/** This function removes a comment at the end of a value, and the quotes around it. */\nexport function valueOf(raw: string): string {\n // YAML starts a comment at a \"#\" after a space or a tab.\n const comment = raw.search(/\\s#/);\n let value = (comment >= 0 ? raw.slice(0, comment) : raw).trim();\n const quote = value.charAt(0);\n if (value.length >= 2 && (quote === '\"' || quote === \"'\") && value.endsWith(quote)) value = value.slice(1, -1).trim();\n return value;\n}\n\n/** This function gives the value of the key `key` on a line, or undefined when the line has another key. A quoted key (\"on\") counts too. */\nexport function keyValue(line: string, key: string): string | undefined {\n let text = line.trimStart();\n if (text.startsWith(\"- \")) text = text.slice(2).trimStart();\n for (const form of [key, `\"${key}\"`, `'${key}'`]) if (text.startsWith(`${form}:`)) return valueOf(text.slice(form.length + 1));\n return undefined;\n}\n\n/** This function gives the end of the block under the line `index`. The end is the next line with the same indent or a smaller one. */\nexport function blockEnd(lines: readonly string[], index: number): number {\n const indent = indentOf(lines[index] ?? \"\");\n let end = index + 1;\n while (end < lines.length) {\n const line = lines[end] ?? \"\";\n if (line.trim() !== \"\" && indentOf(line) <= indent) break;\n end += 1;\n }\n return end;\n}\n\n/** This function gives the indent of the first key of the block under the line `index`, or undefined for an empty block. */\nexport function childIndent(lines: readonly string[], index: number): number | undefined {\n const end = blockEnd(lines, index);\n for (let i = index + 1; i < end; i++) if ((lines[i] ?? \"\").trim() !== \"\") return indentOf(lines[i] ?? \"\");\n return undefined;\n}\n\n/** This function gives the indexes of the keys of the block under the line `index`: the lines at the indent of its first key. */\nexport function childKeys(lines: readonly string[], index: number): number[] {\n const indent = childIndent(lines, index);\n if (indent === undefined) return [];\n const keys: number[] = [];\n for (let i = index + 1; i < blockEnd(lines, index); i++) if ((lines[i] ?? \"\").trim() !== \"\" && indentOf(lines[i] ?? \"\") === indent) keys.push(i);\n return keys;\n}\n\n/** A change of the lines: at the index `at`, remove `remove` lines and put `insert` in their place. */\nexport interface Splice {\n readonly at: number;\n readonly remove: number;\n readonly insert: readonly string[];\n}\n\n/**\n * This function applies changes to the lines of `text`, and keeps its line ends. The changes go from the end to the\n * start, so each index stays correct. At one index, a splice that removes lines goes first, so it removes only the old\n * lines. Then the inserts go in, the later one first, so they keep their order.\n */\nexport function applySplices(text: string, splices: readonly Splice[]): string {\n const eol = text.includes(\"\\r\\n\") ? \"\\r\\n\" : \"\\n\";\n const out = text.split(/\\r?\\n/);\n for (const item of splices.map((value, order) => ({ ...value, order })).sort((a, b) => b.at - a.at || b.remove - a.remove || b.order - a.order)) out.splice(item.at, item.remove, ...item.insert);\n return out.join(eol);\n}\n\nexport interface WorkflowInput {\n readonly name: string;\n readonly type: string;\n readonly description: string;\n /** The default value, as YAML text. An empty text is no default. */\n readonly default: string;\n readonly required: boolean;\n}\n\n/** A step of a job. */\nexport interface WorkflowStep {\n /** The name of the step, or else its action, its id or its first command. */\n readonly label: string;\n /** The condition of the step (`if`), or an empty text. */\n readonly if: string;\n /** The action of the step (`uses`), with no pin, or an empty text. */\n readonly uses: string;\n}\n\n/** A job of a workflow. */\nexport interface WorkflowJob {\n readonly id: string;\n readonly if: string;\n readonly needs: readonly string[];\n readonly steps: readonly WorkflowStep[];\n}\n\n/** A shared workflow of the repository. */\nexport interface Workflow {\n /** The file name, for example `reusable-pages.yml`. */\n readonly file: string;\n /** The value of `name`. */\n readonly name: string;\n /** The first lines of the comment at the top of the file. */\n readonly summary: string;\n readonly inputs: readonly WorkflowInput[];\n readonly jobs: readonly WorkflowJob[];\n}\n\n\n/** A key of a block: its line and its value. A block scalar gives its text. A nested block gives an empty text. */\ninterface Entry {\n readonly line: number;\n readonly value: string;\n}\n\n/** This function gives the text of a block scalar (`|`, `|-`, `>`, `>-`) under the line `index`. */\nfunction scalar(lines: readonly string[], index: number, style: string): string {\n const body = lines.slice(index + 1, blockEnd(lines, index));\n const indent = Math.min(...body.filter((l) => l.trim() !== \"\").map(indentOf));\n const text = body.map((l) => l.slice(indent).trimEnd());\n return (style.startsWith(\">\") ? text.join(\" \").replace(/\\s+/g, \" \") : text.join(\"\\n\")).trim();\n}\n\n/** This function gives the keys of the lines `start` to `end` at the indent `indent`. A first line can start with `- `. */\nfunction entries(lines: readonly string[], start: number, end: number, indent: number): Map<string, Entry> {\n const map = new Map<string, Entry>();\n for (let i = start; i < end; i++) {\n const line = lines[i] ?? \"\";\n if (line.trim() === \"\") continue;\n let text = line;\n if (i === start && line.trimStart().startsWith(\"- \")) text = \" \".repeat(indentOf(line) + 2) + line.trimStart().slice(2);\n if (indentOf(text) !== indent) continue;\n const match = /^\\s*(\"[^\"]+\"|'[^']+'|[^\\s:][^:]*):(?:\\s(.*))?$/.exec(text);\n if (!match?.[1]) continue;\n const key = match[1].replace(/^[\"']|[\"']$/g, \"\");\n const raw = valueOf((match[2] ?? \"\").trim());\n map.set(key, { line: i, value: /^[|>][-+]?$/.test(raw) ? scalar(lines, i, raw) : raw });\n }\n return map;\n}\n\n/** This function gives the keys of the block under the line `index`. */\nfunction childrenOf(lines: readonly string[], index: number): Map<string, Entry> {\n const end = blockEnd(lines, index);\n const first = lines.slice(index + 1, end).find((l) => l.trim() !== \"\");\n return first === undefined ? new Map() : entries(lines, index + 1, end, indentOf(first));\n}\n\n/** This function gives the first line of each item of the list under the line `index`. */\nfunction itemsOf(lines: readonly string[], index: number): number[] {\n const end = blockEnd(lines, index);\n const items: number[] = [];\n let indent: number | undefined;\n for (let i = index + 1; i < end; i++) {\n const line = lines[i] ?? \"\";\n if (!line.trimStart().startsWith(\"- \") && line.trim() !== \"-\") continue;\n indent ??= indentOf(line);\n if (indentOf(line) === indent) items.push(i);\n }\n return items;\n}\n\n/** This function gives the values of a list: an inline list (`[a, b]`), one value, or a block list. */\nfunction listOf(lines: readonly string[], entry: Entry | undefined): string[] {\n if (entry === undefined) return [];\n const inline = entry.value.trim();\n if (inline.startsWith(\"[\")) return inline.slice(1, -1).split(\",\").map(valueOf).filter(Boolean);\n if (inline !== \"\") return [inline];\n return itemsOf(lines, entry.line).map((i) => valueOf((lines[i] ?? \"\").trimStart().slice(2)));\n}\n\n/** This function gives an action of a `uses` value with no pin: `actions/checkout@<sha> # v7` gives `actions/checkout`. */\nconst actionOf = (uses: string): string => uses.split(\"@\", 1)[0] ?? uses;\n\n/** This function gives the label of a step: its name, else its action, its id or its first command. */\nfunction stepLabel(step: Map<string, Entry>): string {\n const name = step.get(\"name\")?.value;\n if (name) return name;\n const uses = step.get(\"uses\")?.value;\n if (uses) return actionOf(uses);\n const run = step.get(\"run\")?.value.split(\"\\n\")[0];\n if (run) return run;\n return step.get(\"id\")?.value ?? \"step\";\n}\n\n/** This function gives the summary of a workflow: the first paragraph of the comment at the top of the file. */\nfunction summaryOf(lines: readonly string[]): string {\n const words: string[] = [];\n for (const line of lines) {\n if (!line.startsWith(\"#\")) break;\n const text = line.replace(/^#\\s?/, \"\").trim();\n if (text === \"\") {\n if (words.length > 0) break;\n continue;\n }\n words.push(text);\n }\n return words.join(\" \");\n}\n\n/** This function reads a shared workflow file. The file name goes into the result. */\nexport function readWorkflow(file: string, text: string): Workflow {\n const raw = text.split(/\\r?\\n/);\n const lines = raw.map((line) => (line.trimStart().startsWith(\"#\") ? \"\" : line));\n const top = entries(lines, 0, lines.length, 0);\n const on = top.get(\"on\");\n const call = on ? childrenOf(lines, on.line).get(\"workflow_call\") : undefined;\n const inputsEntry = call ? childrenOf(lines, call.line).get(\"inputs\") : undefined;\n const inputs: WorkflowInput[] = [];\n if (inputsEntry) {\n for (const [name, entry] of childrenOf(lines, inputsEntry.line)) {\n const keys = childrenOf(lines, entry.line);\n inputs.push({\n name,\n type: keys.get(\"type\")?.value ?? \"string\",\n description: keys.get(\"description\")?.value ?? \"\",\n default: keys.get(\"default\")?.value ?? \"\",\n required: keys.get(\"required\")?.value === \"true\",\n });\n }\n }\n const jobs: WorkflowJob[] = [];\n const jobsEntry = top.get(\"jobs\");\n if (jobsEntry) {\n for (const [id, entry] of childrenOf(lines, jobsEntry.line)) {\n const keys = childrenOf(lines, entry.line);\n const stepsEntry = keys.get(\"steps\");\n const steps: WorkflowStep[] = [];\n if (stepsEntry) {\n const items = itemsOf(lines, stepsEntry.line);\n const last = blockEnd(lines, stepsEntry.line);\n items.forEach((start, n) => {\n const step = entries(lines, start, items[n + 1] ?? last, indentOf(lines[start] ?? \"\") + 2);\n steps.push({ label: stepLabel(step), if: step.get(\"if\")?.value ?? \"\", uses: actionOf(step.get(\"uses\")?.value ?? \"\") });\n });\n }\n const uses = keys.get(\"uses\")?.value;\n if (steps.length === 0 && uses) steps.push({ label: `calls ${actionOf(uses)}`, if: \"\", uses: actionOf(uses) });\n jobs.push({ id, if: keys.get(\"if\")?.value ?? \"\", needs: listOf(lines, keys.get(\"needs\")), steps });\n }\n }\n return { file, name: top.get(\"name\")?.value ?? file, summary: summaryOf(raw), inputs, jobs };\n}\n","/**\n * The rule `main-runs-finish`: a workflow that starts on `push` or on `workflow_call` does not cancel a run in progress.\n * Only the run of a pull request is cancelled by a newer push. Each commit of main has its own concurrency group, because\n * GitHub keeps only the newest run that waits in a group.\n */\nimport { readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { byCode } from \"../workspace.ts\";\nimport { replaceLine, type Break, type Rule } from \"../rule.ts\";\nimport { WORKFLOW, childKeys, indentOf, keyValue, workflowLines } from \"../workflow.ts\";\n\n/** The value of `cancel-in-progress` that cancels only the run of a pull request. */\nexport const PULL_REQUEST_ONLY = \"${{ github.event_name == 'pull_request' }}\";\n\n/** The end of a concurrency group: a pull request has one group, and each other run has the group of its commit. */\nexport const OWN_GROUP = \"${{ github.event_name == 'pull_request' && github.ref || github.sha }}\";\n\n/** The end of a concurrency group that one run of main can share with the next run. */\nconst SHARED_GROUP = \"${{ github.ref }}\";\n\n/** This function tells if the workflow starts on the event: `on: <event>`, `on: [<event>, ...]` or a key `<event>` under `on`. */\nexport function startsOn(lines: readonly string[], event: string): boolean {\n const on = lines.findIndex((line) => indentOf(line) === 0 && keyValue(line, \"on\") !== undefined);\n if (on < 0) return false;\n const value = keyValue(lines[on] ?? \"\", \"on\") ?? \"\";\n if (value !== \"\") return new RegExp(`(^|[\\\\s[,])${event}([\\\\s\\\\],]|$)`).test(value);\n return childKeys(lines, on).some((index) => {\n const key = (lines[index] ?? \"\").trim().replace(/^- /, \"\");\n return key === event || key.startsWith(`${event}:`);\n });\n}\n\n/** This function tells if the workflow starts on `push`. */\nexport function startsOnPush(lines: readonly string[]): boolean {\n return startsOn(lines, \"push\");\n}\n\n/**\n * This function tells if a run of the workflow can be a run of main. A workflow that starts on `workflow_call` gets\n * the event of its caller, and a caller can start on `push`.\n */\nexport function runsOnMain(lines: readonly string[]): boolean {\n return startsOnPush(lines) || startsOn(lines, \"workflow_call\");\n}\n\nexport const mainRunsFinish: Rule = {\n id: \"main-runs-finish\",\n title: \"A workflow that starts on push or on workflow_call does not cancel a run in progress, and each commit of main has its own concurrency group. A newer push cancels only the run of a pull request.\",\n reason:\n \"On 2026-11-03 the next merge cancelled the CI run of a commit on main, so the main check of that commit had no result. A shared concurrency group also cancelled a bench run on main, and its claim had no measurement. The CI workflow of the template had `cancel-in-progress: true`, and each repository copied it. A called workflow gets the event of its caller, so a `true` in a workflow that starts on `workflow_call` cancels the run of main too (packing, time-gate.yml, 2026-11-03).\",\n fix: `Set \\`cancel-in-progress: ${PULL_REQUEST_ONLY}\\`, and end the concurrency group with \\`${OWN_GROUP}\\`. In one group, GitHub cancels a run that waits when a newer run comes, whatever \\`cancel-in-progress\\` says.`,\n sources: [\n { repo: \"fleet\", rule: \"main-runs-finish\", doc: \"docs/STRATEGY.md (2026-11-03, a run of main ends)\" },\n { repo: \"client\", rule: \"release\", doc: \"the release of 0.47.0 (2026-11-03): four waiting CI runs of main were cancelled, so the version commit had no result\" },\n { repo: \"algebra\", rule: \"main-check\", doc: \"the A2 and A5 results (2026-11-03): a cancelled main run, and a cancelled bench run\" },\n ],\n options: {},\n check(context) {\n const files = context.gitFiles();\n if (files === undefined) return { skipped: \"the root is not in a git repository\" };\n const workflows = files.filter((path) => WORKFLOW.test(path)).sort(byCode);\n const breaks: Break[] = [];\n let pushed = 0;\n for (const file of workflows) {\n let text: string;\n try {\n text = readFileSync(join(context.root, file), \"utf8\");\n } catch {\n continue;\n }\n const lines = workflowLines(text);\n if (!runsOnMain(lines)) continue;\n pushed += 1;\n lines.forEach((line, index) => {\n if (keyValue(line, \"group\")?.includes(SHARED_GROUP) === true) {\n const original = text.split(/\\r?\\n/)[index] ?? line;\n breaks.push({\n file,\n line: index + 1,\n message: `${file} starts on push or on workflow_call, and its concurrency group ends with the ref. Runs of main share the group, so a newer push cancels a run that waits, and that commit gets no result.`,\n edits: [{ file, before: text, after: replaceLine(text, index + 1, [original.replace(SHARED_GROUP, () => OWN_GROUP)]) }],\n });\n return;\n }\n if (keyValue(line, \"cancel-in-progress\") !== \"true\") return;\n const original = text.split(/\\r?\\n/)[index] ?? line;\n const after = replaceLine(text, index + 1, [original.replace(/cancel-in-progress:\\s*[\"']?true[\"']?/, () => `cancel-in-progress: ${PULL_REQUEST_ONLY}`)]);\n breaks.push({\n file,\n line: index + 1,\n message: `${file} starts on push or on workflow_call and has \\`cancel-in-progress: true\\`. A newer push cancels the run of main in progress, and that commit gets no result.`,\n edits: [{ file, before: text, after }],\n });\n });\n }\n if (pushed === 0) return { skipped: \"no workflow starts on push or on workflow_call\" };\n return breaks;\n },\n};\n","/**\n * The rule `gate-trigger`: a workflow that runs on pull requests starts on each pull request, with no path filter. The\n * ruleset needs the summary check \"<Name> OK\" of each gate. A workflow with `on.pull_request.paths` does not start\n * on each pull request, so its check is not always there, and the ruleset cannot ask for it.\n */\nimport { readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { byCode } from \"../workspace.ts\";\nimport type { Break, Rule } from \"../rule.ts\";\nimport { WORKFLOW, applySplices, blockEnd, childIndent, childKeys, indentOf, keyValue, valueOf, workflowLines, type Splice } from \"../workflow.ts\";\nimport { OWN_GROUP, PULL_REQUEST_ONLY } from \"./main-runs-finish.ts\";\n\nconst TRIGGERS = [\"pull_request\", \"pull_request_target\"] as const;\nconst FILTERS = [\"paths\", \"paths-ignore\"] as const;\n\n/** A path filter of a pull request trigger: the line (from 1), the trigger and the key. */\nexport interface PathFilter {\n readonly line: number;\n readonly trigger: string;\n readonly key: string;\n}\n\n/** This function gives the path filters of the pull request triggers of a workflow. */\nexport function prPathFilters(text: string): PathFilter[] {\n const lines = workflowLines(text);\n const on = lines.findIndex((line) => indentOf(line) === 0 && keyValue(line, \"on\") !== undefined);\n if (on < 0) return [];\n // `on: pull_request` and `on: [push, pull_request]` have no filter\n if ((keyValue(lines[on] ?? \"\", \"on\") ?? \"\") !== \"\") return [];\n const found: PathFilter[] = [];\n for (const at of childKeys(lines, on)) {\n for (const trigger of TRIGGERS) {\n const value = keyValue(lines[at] ?? \"\", trigger);\n if (value === undefined) continue;\n // The flow form: `pull_request: { paths: [...] }`\n for (const key of FILTERS) if (new RegExp(`(^|[{,\\\\s])${key}\\\\s*:`).test(value)) found.push({ line: at + 1, trigger, key });\n for (const child of childKeys(lines, at)) for (const key of FILTERS) if (keyValue(lines[child] ?? \"\", key) !== undefined) found.push({ line: child + 1, trigger, key });\n }\n }\n return found;\n}\n\n/** The commit of the template with the actions `changes` and `gate-summary`. Renovate updates the pins after the fix. */\nexport const ACTIONS_COMMIT: string = \"f05c6eeb35e33a040bdfdcd7d07a1d2c00640f8d\";\n\n/** This function gives the items of a list value: the flow form `[a, \"b\"]`, or the block form under the line `index`. */\nexport function listItems(lines: readonly string[], index: number, value: string): { items: string[]; end: number } | undefined {\n if (value.startsWith(\"[\") && value.endsWith(\"]\")) {\n const items = value.slice(1, -1).split(\",\").map((item) => valueOf(item)).filter((item) => item !== \"\");\n return { items, end: index + 1 };\n }\n if (value !== \"\") return undefined;\n const indent = indentOf(lines[index] ?? \"\");\n const items: string[] = [];\n let end = index + 1;\n for (let i = index + 1; i < lines.length; i++) {\n const line = lines[i] ?? \"\";\n if (line.trim() === \"\") continue;\n const deeper = indentOf(line) > indent || (indentOf(line) === indent && line.trimStart().startsWith(\"- \"));\n if (!deeper) break;\n if (!line.trimStart().startsWith(\"- \")) return undefined;\n items.push(valueOf(line.trimStart().slice(2)));\n end = i + 1;\n }\n return { items, end };\n}\n\n/** This function gives the name of the summary check of a workflow: its name with \"OK\", in the form that ruleset-ci-ok.ts reads. */\nexport function summaryName(workflowName: string): string {\n const words = workflowName.replace(/[^A-Za-z0-9]+/g, \" \").trim();\n const name = words === \"\" ? \"Gate\" : words.charAt(0).toUpperCase() + words.slice(1);\n return `${name} OK`;\n}\n\n/** This function puts an expression into the value of an `if`, as YAML that keeps it. */\nconst ifValue = (expression: string): string => {\n const value = `\\${{ ${expression} }}`;\n return value.includes(\": \") || value.includes(\" #\") ? `\"${value.replaceAll(\"\\\\\", \"\\\\\\\\\").replaceAll('\"', '\\\\\"')}\"` : value;\n};\n\n/**\n * This function converts a gate workflow with a path filter on its pull request trigger. The trigger loses the filter,\n * and a job `changes` gets the same patterns. Each other job needs it and runs only on a match. A summary job\n * `<Name> OK` with the action gate-summary needs each job. The function gives the new text, or the reason why a\n * person must convert the workflow.\n */\nexport function convertGate(text: string, file: string, commit: string = ACTIONS_COMMIT): { text: string } | { reason: string } {\n const lines = workflowLines(text);\n const top = (key: string): number => lines.findIndex((line) => indentOf(line) === 0 && keyValue(line, key) !== undefined);\n const on = top(\"on\");\n const jobsAt = top(\"jobs\");\n if (on < 0 || jobsAt < 0) return { reason: \"the workflow has no on block or no jobs block\" };\n const splices: Splice[] = [];\n const filters: Record<string, string[]> = {};\n for (const at of childKeys(lines, on)) {\n const trigger = TRIGGERS.find((name) => keyValue(lines[at] ?? \"\", name) !== undefined);\n if (trigger === undefined) continue;\n if ((keyValue(lines[at] ?? \"\", trigger) ?? \"\") !== \"\") return { reason: `on.${trigger} has the flow form` };\n let filtered = false;\n for (const child of childKeys(lines, at)) {\n const key = FILTERS.find((name) => keyValue(lines[child] ?? \"\", name) !== undefined);\n if (key === undefined) continue;\n const list = listItems(lines, child, keyValue(lines[child] ?? \"\", key) ?? \"\");\n if (list === undefined) return { reason: `on.${trigger}.${key} is not a list` };\n const before = filters[key];\n if (before !== undefined && before.join(\"\\n\") !== list.items.join(\"\\n\")) return { reason: `the triggers have different ${key}` };\n filters[key] = list.items;\n splices.push({ at: child, remove: list.end - child, insert: [] });\n filtered = true;\n }\n if (filtered) {\n const pad = \" \".repeat(indentOf(lines[at] ?? \"\"));\n splices.push({ at, remove: 0, insert: [`${pad}# Each pull request starts this workflow, so its summary check is always there. The job changes skips the`, `${pad}# work when the pull request changes no file of the gate (CI.md of the template, \"A gate with paths\").`] });\n }\n }\n if (Object.keys(filters).length === 0) return { reason: \"the workflow has no path filter on a pull request trigger\" };\n\n const jobs = childKeys(lines, jobsAt);\n const first = jobs[0];\n if (first === undefined) return { reason: \"the workflow has no job\" };\n const ids = jobs.map((at) => (lines[at] ?? \"\").trim().replace(/:$/, \"\"));\n const jobIndent = \" \".repeat(indentOf(lines[first] ?? \"\"));\n const unit = \" \".repeat((childIndent(lines, first) ?? indentOf(lines[first] ?? \"\") + 2) - jobIndent.length);\n const nameAt = top(\"name\");\n const name = summaryName(nameAt >= 0 ? (keyValue(lines[nameAt] ?? \"\", \"name\") ?? \"\") : (file.split(\"/\").pop() ?? \"\").replace(/\\.ya?ml$/, \"\"));\n const summaryId = name.toLowerCase().replaceAll(\" \", \"-\");\n for (const id of [\"changes\", summaryId]) if (ids.includes(id)) return { reason: `the workflow already has a job ${id}` };\n\n const needsOf = new Map<string, string[]>();\n const own = new Set<string>();\n for (const [index, at] of jobs.entries()) {\n const id = ids[index] ?? \"\";\n const keys = childKeys(lines, at);\n const pad = \" \".repeat(childIndent(lines, at) ?? indentOf(lines[at] ?? \"\") + unit.length);\n const needsAt = keys.find((key) => keyValue(lines[key] ?? \"\", \"needs\") !== undefined);\n const ifAt = keys.find((key) => keyValue(lines[key] ?? \"\", \"if\") !== undefined);\n if (needsAt === undefined) {\n needsOf.set(id, []);\n splices.push({ at: at + 1, remove: 0, insert: [`${pad}needs: changes`] });\n } else {\n const value = keyValue(lines[needsAt] ?? \"\", \"needs\") ?? \"\";\n const list = value === \"\" || value.startsWith(\"[\") ? listItems(lines, needsAt, value) : { items: [value], end: needsAt + 1 };\n if (list === undefined) return { reason: `the needs of the job ${id} is not a list` };\n needsOf.set(id, list.items);\n if (value === \"\") {\n const item = lines.findIndex((line, i) => i > needsAt && line.trim() !== \"\");\n splices.push({ at: item, remove: 0, insert: [`${\" \".repeat(indentOf(lines[item] ?? \"\"))}- changes`] });\n } else {\n splices.push({ at: needsAt, remove: 1, insert: [`${pad}needs: [${[\"changes\", ...list.items].join(\", \")}]`] });\n }\n }\n if (ifAt === undefined) {\n splices.push({ at: at + 1, remove: 0, insert: [`${pad}if: needs.changes.outputs.match == 'true'`] });\n } else {\n let old = keyValue(lines[ifAt] ?? \"\", \"if\") ?? \"\";\n if (/^[>|]/.test(old)) return { reason: `the if of the job ${id} has more than one line` };\n const whole = /^\\$\\{\\{(.*)\\}\\}$/.exec(old);\n if (whole !== null) old = (whole[1] ?? \"\").trim();\n if (old.includes(\"${{\")) return { reason: `the if of the job ${id} has a part in \\${{ }}` };\n own.add(id);\n splices.push({ at: ifAt, remove: 1, insert: [`${pad}if: ${ifValue(`needs.changes.outputs.match == 'true' && (${old})`)}`] });\n }\n }\n // A job with its own if can be skipped when the gate runs, and so can each job that needs such a job\n const skippable = new Set(own);\n for (let grew = true; grew; ) {\n grew = false;\n for (const [id, needs] of needsOf) {\n if (skippable.has(id) || !needs.some((need) => skippable.has(need))) continue;\n skippable.add(id);\n grew = true;\n }\n }\n\n const action = (step: string): string => `mark1russell7/template/.github/actions/${step}@${commit} # main`;\n const block = (indent: string, key: string, items: readonly string[]): string[] => [`${indent}${key}: |`, ...items.map((item) => `${indent}${unit}${item}`)];\n const job = jobIndent + unit;\n const step = job + unit;\n const grouped = top(\"concurrency\") >= 0;\n const group = (id: string): string[] => (grouped ? [] : [`${job}concurrency:`, `${job}${unit}group: \\${{ github.workflow }}-${id}-${OWN_GROUP}`, `${job}${unit}cancel-in-progress: ${PULL_REQUEST_ONLY}`]);\n const changes = [\n `${jobIndent}changes:`,\n `${job}runs-on: ubuntu-latest`,\n `${job}timeout-minutes: 5`,\n ...group(\"changes\"),\n `${job}permissions:`,\n `${job}${unit}contents: read`,\n `${job}${unit}pull-requests: read`,\n `${job}outputs:`,\n `${job}${unit}match: \\${{ steps.changes.outputs.match }}`,\n `${job}steps:`,\n `${step}- id: changes`,\n `${step} uses: ${action(\"changes\")}`,\n `${step} with:`,\n ...block(`${step} ${unit}`, \"paths\", filters[\"paths\"] ?? [\"**\"]),\n ...(filters[\"paths-ignore\"] === undefined ? [] : block(`${step} ${unit}`, \"paths-ignore\", filters[\"paths-ignore\"])),\n \"\",\n ];\n const allow = ids.filter((id) => skippable.has(id));\n const summary = [\n \"\",\n `${jobIndent}${summaryId}:`,\n `${job}name: ${name}`,\n `${job}if: always()`,\n `${job}needs: [${[\"changes\", ...ids].join(\", \")}]`,\n `${job}runs-on: ubuntu-latest`,\n `${job}timeout-minutes: 2`,\n ...group(summaryId),\n `${job}permissions: {}`,\n `${job}steps:`,\n `${step}- uses: ${action(\"gate-summary\")}`,\n `${step} with:`,\n `${step} ${unit}needs: \\${{ toJSON(needs) }}`,\n ...(allow.length === 0 ? [] : [`${step} ${unit}allow-skip: ${allow.join(\" \")}`]),\n ];\n let last = blockEnd(lines, jobsAt);\n while (last > jobsAt + 1 && (lines[last - 1] ?? \"\").trim() === \"\") last -= 1;\n splices.push({ at: first, remove: 0, insert: changes }, { at: last, remove: 0, insert: summary });\n\n return { text: applySplices(text, splices) };\n}\n\nexport const gateTrigger: Rule = {\n id: \"gate-trigger\",\n title: \"A workflow that runs on pull requests starts on each pull request: it has no on.pull_request.paths or paths-ignore.\",\n reason:\n 'The ruleset requires the summary check \"<Name> OK\" of each gate. A workflow with a path filter does not start on a pull request that changes no file of the filter, so its check is not there, and the ruleset cannot require it. Then a pull request can merge before such a gate ends. On 2026-11-02, 19 such workflows in 11 repositories fed no required check.',\n fix: 'Remove the paths from on.pull_request. Add a job \"changes\" with the action mark1russell7/template/.github/actions/changes and the same paths, and \"if: needs.changes.outputs.match == \\'true\\'\" on each gate job. Add a job \"<Name> OK\" with \"if: always()\", \"needs\" with each job, and the action gate-summary (CI.md, \"A gate with paths\"). Then start ruleset-ci-ok.ts again. A workflow that is not a gate can go in the option allow.',\n sources: [{ repo: \"fleet\", rule: \"gate-trigger\", doc: \"docs/STRATEGY.md (2026-11-02, a gate with paths feeds a required summary)\" }],\n options: {\n allow: { type: \"strings\", default: [], description: \"The file names of the workflows that can filter pull requests by path, because they are not a gate (for example a preview).\" },\n },\n check(context, options) {\n const files = context.gitFiles();\n if (files === undefined) return { skipped: \"the root is not in a git repository\" };\n const workflows = files.filter((path) => WORKFLOW.test(path)).sort(byCode);\n if (workflows.length === 0) return { skipped: \"the repository has no workflow\" };\n const allow = Array.isArray(options[\"allow\"]) ? (options[\"allow\"] as readonly string[]) : [];\n const breaks: Break[] = [];\n for (const file of workflows) {\n if (allow.includes(file.slice(file.lastIndexOf(\"/\") + 1))) continue;\n let text: string;\n try {\n text = readFileSync(join(context.root, file), \"utf8\");\n } catch {\n continue;\n }\n const filters = prPathFilters(text);\n const first = filters[0];\n if (first === undefined) continue;\n const keys = filters.map((filter) => `on.${filter.trigger}.${filter.key}`).join(\" and \");\n const converted = convertGate(text, file);\n breaks.push({\n file,\n line: first.line,\n message: `${file}: ${keys}, so the workflow does not start on each pull request, and the ruleset cannot ask for its summary check.`,\n ...(\"text\" in converted ? { edits: [{ file, before: text, after: converted.text }] } : { fix: `A person must convert it, because ${converted.reason}. ${gateTrigger.fix}` }),\n });\n }\n return breaks;\n },\n};\n","/**\n * The change that a check examines: the option `--base`, the merge commit of a pull request, or a push to the default\n * branch. The rule release-files reads its changed files, and the runner reads the files that it adds.\n */\nimport { existsSync, readFileSync } from \"node:fs\";\nimport type { RuleContext } from \"./rule.ts\";\n\n/** The range of commits of the change. */\nexport interface Range {\n /** The arguments of `git diff --name-only` that give the changed files. */\n readonly diff: readonly string[];\n /** The arguments of `git log` that give the commit messages. */\n readonly log: readonly string[];\n /** The two ends of the change. The checkout must have their merge base, or `log` does not give each commit of the change. */\n readonly ends: readonly [string, string];\n}\n\n/** The options of `rangeOf`. */\nexport interface RangeOptions {\n /**\n * When true, a push to the default branch also has a range: the commits of the push. The default is false, because\n * the body of a pull request and the files that it adds are not facts of a push.\n */\n readonly push?: boolean;\n}\n\n/** The facts of a push in the event file of GitHub Actions. */\ninterface PushEvent {\n readonly before?: unknown;\n readonly ref?: unknown;\n readonly repository?: { readonly default_branch?: unknown };\n}\n\n/** This function gives the range of the commits of a push to the default branch, from the event file of GitHub Actions. */\nfunction pushRange(context: RuleContext): Range | { readonly skipped: string } {\n const file = context.env[\"GITHUB_EVENT_PATH\"];\n let event: PushEvent | undefined;\n try {\n event = file === undefined || file === \"\" || !existsSync(file) ? undefined : (JSON.parse(readFileSync(file, \"utf8\")) as PushEvent);\n } catch {\n event = undefined;\n }\n if (event === undefined) return { skipped: \"the push has no event file (GITHUB_EVENT_PATH)\" };\n const branch = event.repository?.default_branch;\n if (typeof branch !== \"string\" || event.ref !== `refs/heads/${branch}`) return { skipped: \"the push is not to the default branch: the pull request of the branch has the change\" };\n const before = typeof event.before === \"string\" ? event.before : \"\";\n if (!/^[0-9a-f]{40,64}$/.test(before) || /^0+$/.test(before)) return { skipped: \"the push has no commit before it\" };\n if (context.git([\"rev-parse\", \"--verify\", \"--quiet\", `${before}^{commit}`]) === undefined) {\n return { skipped: `the checkout does not have ${before}, the commit before the push: fetch it, or set fetch-depth to 0` };\n }\n return { diff: [before, \"HEAD\"], log: [`${before}..HEAD`], ends: [before, \"HEAD\"] };\n}\n\n/**\n * This function gives the range of the change: the option `--base`, or the merge commit of a pull request. With the\n * option `push`, a push to the default branch gives the commits of the push: from the commit before the push to HEAD.\n */\nexport function rangeOf(context: RuleContext, options: RangeOptions = {}): Range | { readonly skipped: string } {\n if (context.base !== undefined) {\n if (context.git([\"rev-parse\", \"--verify\", \"--quiet\", `${context.base}^{commit}`]) === undefined) return { skipped: `git does not know the base ${context.base}` };\n return { diff: [`${context.base}...HEAD`], log: [`${context.base}..HEAD`], ends: [context.base, \"HEAD\"] };\n }\n const event = context.env[\"GITHUB_EVENT_NAME\"];\n if (event === \"push\" && options.push === true) return pushRange(context);\n if (event !== \"pull_request\" && event !== \"pull_request_target\") return { skipped: \"no base: the rule runs on a pull request, or with --base <ref>\" };\n // The checkout of a pull request is a merge commit: its first parent is the base, its second parent the head\n const parents = context.git([\"rev-list\", \"--parents\", \"-n\", \"1\", \"HEAD\"])?.trim().split(/\\s+/) ?? [];\n if (parents.length !== 3) return { skipped: \"HEAD is not the merge commit of the pull request\" };\n if (context.git([\"cat-file\", \"-e\", \"HEAD^1^{commit}\"]) === undefined) return { skipped: \"the checkout has no parent of HEAD: set fetch-depth to 2 or more\" };\n return { diff: [\"HEAD^1\", \"HEAD\"], log: [\"HEAD^1..HEAD\"], ends: [\"HEAD^1\", \"HEAD^2\"] };\n}\n\n/**\n * This function gives the files that the change adds, relative to the root, with `/`. A renamed file is not added.\n * With no change (no base and no pull request), it gives undefined.\n */\nexport function addedFiles(context: RuleContext): ReadonlySet<string> | undefined {\n const range = rangeOf(context);\n if (\"skipped\" in range) return undefined;\n const out = context.git([\"diff\", \"--name-only\", \"--find-renames\", \"--diff-filter=A\", ...range.diff]);\n if (out === undefined) return undefined;\n return new Set(out.split(/\\r?\\n/).filter((file) => file !== \"\"));\n}\n\n/**\n * This function gives the lines that the change adds, for each changed file: the numbers (from 1) of the new file.\n * A renamed file with no other change has no added lines. With no change (no base and no pull request), it gives undefined.\n */\nexport function addedLines(context: RuleContext): ReadonlyMap<string, ReadonlySet<number>> | undefined {\n const range = rangeOf(context);\n if (\"skipped\" in range) return undefined;\n const out = context.git([\"diff\", \"--unified=0\", \"--no-color\", \"--no-ext-diff\", \"--src-prefix=a/\", \"--dst-prefix=b/\", \"--find-renames\", \"--diff-filter=AMR\", ...range.diff]);\n if (out === undefined) return undefined;\n const lines = new Map<string, Set<number>>();\n let file: string | undefined;\n for (const line of out.split(/\\r?\\n/)) {\n if (line.startsWith(\"+++ \")) {\n file = line === \"+++ /dev/null\" ? undefined : line.slice(6);\n continue;\n }\n const hunk = /^@@ -\\d+(?:,\\d+)? \\+(\\d+)(?:,(\\d+))? @@/.exec(line);\n if (hunk === null || file === undefined) continue;\n const start = Number(hunk[1]);\n const count = hunk[2] === undefined ? 1 : Number(hunk[2]);\n let set = lines.get(file);\n if (set === undefined) lines.set(file, (set = new Set()));\n for (let index = 0; index < count; index++) set.add(start + index);\n }\n return lines;\n}\n","// Generated by scripts/homes/exports.ts from the latest version of each home package on npm. Do not edit by hand.\n/** The names of the values that each home package exports, with the version that the names come from. */\nexport const HOME_EXPORTS: Readonly<Record<string, { readonly version: string; readonly names: readonly string[] }>> = {\n \"@mark1russell7/algebra\": { version: \"0.8.0\", names: [\"FIRED\",\"ReplayOptions\",\"Replayable\",\"Transition\",\"algebraProblems\",\"arr\",\"detection\",\"errnoOf\",\"evaluate\",\"exprKnobs\",\"fromStates\",\"machineProblems\",\"machineSchema\",\"modelSource\",\"overValues\",\"parseExpr\",\"readsFired\",\"realizationKnobs\",\"realizationOf\",\"recovery\",\"replay\",\"stackedDetection\",\"timerOf\",\"timerUnder\",\"transitionOn\"] },\n \"@mark1russell7/api-report\": { version: \"0.2.1\", names: [\"DEFAULT_TOOL\",\"HEADER_LINES\",\"PUBLISH_CONFIG_FIELDS\",\"REPORT_FILE\",\"USAGE\",\"apiReport\",\"binsOf\",\"byCode\",\"declarationPathOf\",\"diffLines\",\"entriesOf\",\"formatResult\",\"globFolders\",\"globToRegExp\",\"packageFolders\",\"packageReport\",\"parseDeclarations\",\"patternMatch\",\"publishedManifest\",\"readConfig\",\"runCli\",\"runReports\",\"statementsOf\",\"summaryMarkdown\",\"targetOf\",\"unifiedDiff\",\"workspaceGlobs\"] },\n \"@mark1russell7/boundaries\": { version: \"0.2.0\", names: [\"BoundaryOptions\",\"Config\",\"DefaultOptionsInput\",\"Rule\",\"RuleOptions\",\"ScopeOptions\",\"WorkspacePackage\",\"boundaries\",\"boundaryRules\",\"declaredDependencies\",\"defaultOptions\",\"doNotFollowPaths\",\"entryPattern\",\"packageEntries\",\"parserOptions\",\"workspaceGlobs\",\"workspacePackages\",\"workspaceScopes\"] },\n \"@mark1russell7/coeval\": { version: \"0.17.0\", names: [\"ATTRIBUTE_RUNGS\",\"CAPS_TYPE\",\"CONSTRUCTS\",\"ENVELOPE_KEYS\",\"Failure\",\"Held\",\"JOURNAL\",\"MergeError\",\"PARTS\",\"PART_INFO\",\"ROOTS\",\"RUNGS\",\"STD_CAPS\",\"STD_DEFINITIONS\",\"STD_DOMAINS\",\"STD_EVALUATORS\",\"STD_EXT\",\"STD_MACHINE\",\"STD_RUNNERS\",\"STD_SYNTAX\",\"STD_WALKERS\",\"STD_WORLD\",\"THING\",\"WORLD_SYNTAX\",\"agree\",\"agreeRun\",\"agreeSchedule\",\"ask\",\"attributeTrace\",\"capKeys\",\"check\",\"checkLatent\",\"checkSteps\",\"checkWorld\",\"classify\",\"components\",\"conforms\",\"context\",\"cycles\",\"dataEdges\",\"decodeDomain\",\"decodeLog\",\"decodeValue\",\"derefStep\",\"describe\",\"docEquals\",\"durable\",\"edgesOf\",\"effectEdges\",\"effectsOf\",\"effectsOfVerb\",\"encodeLog\",\"encodeValue\",\"entriesAsJson\",\"equationType\",\"evaluate\",\"extendDomain\",\"factsOf\",\"fail\",\"failures\",\"field\",\"fits\",\"flatten\",\"formulaDefinitions\",\"formulaEvaluators\",\"formulaFacts\",\"formulaKinds\",\"formulaKnown\",\"formulaMachine\",\"fromJson\",\"generate\",\"heights\",\"intersectCaps\",\"isAlias\",\"isAllowedOrder\",\"isClosure\",\"isEnvelope\",\"isHostThing\",\"isKey\",\"isKind\",\"isNamespace\",\"isRecord\",\"isRef\",\"isStackOverflow\",\"isTypeRef\",\"join\",\"jsTruthy\",\"kindDocument\",\"kindNamed\",\"kindOf\",\"layers\",\"looksLikeKind\",\"lookupKind\",\"makeContext\",\"mapRefs\",\"member\",\"mergeMachines\",\"mergeWorlds\",\"narrow\",\"nearestWalker\",\"necessary\",\"nodeAt\",\"nodeLayers\",\"ok\",\"parse\",\"partCaps\",\"partsOf\",\"pathMatches\",\"permits\",\"placeOf\",\"placed\",\"planner\",\"prepare\",\"print\",\"random\",\"recorder\",\"ref\",\"reference\",\"referenceRun\",\"refsOf\",\"replayer\",\"resolve\",\"restrictMachine\",\"restrictWorld\",\"run\",\"sameResult\",\"sameValue\",\"schedule\",\"splitParts\",\"stored\",\"syntaxFormat\",\"tag\",\"thrown\",\"toJson\",\"typeCheck\",\"typeFromSamples\",\"typeFromSchema\",\"typeIssues\",\"typeName\",\"typePath\",\"typeText\",\"typed\",\"typesOf\",\"valueOfThing\",\"verifyReads\",\"walk\",\"worldThing\"] },\n \"@mark1russell7/conventions\": { version: \"0.13.0\", names: [\"ACTIONS_COMMIT\",\"DEFAULT_ALLOWED\",\"DEPENDENCY_FIELDS\",\"HOME_PATTERNS\",\"IGNORE_AFTER\",\"REAL_COMPARE\",\"RULES\",\"STRICT_OPTIONS\",\"TRAIN_SCOPES\",\"USAGE\",\"annotations\",\"cleanPath\",\"codePackages\",\"configsOfScript\",\"conventions\",\"convertGate\",\"createContext\",\"cuePreset\",\"defaultOptions\",\"formatResult\",\"gateTrigger\",\"globFolders\",\"globToRegExp\",\"hasFile\",\"hasImportMetaMain\",\"hasTests\",\"inFolder\",\"isGitSpecifier\",\"isPinned\",\"isSourcePath\",\"keyLine\",\"lineOf\",\"listRules\",\"mainCheck\",\"matchesAny\",\"noBuildOutput\",\"noLocalPaths\",\"packageFolders\",\"parseConfig\",\"parseJsonc\",\"pathsOf\",\"pinnedGitDeps\",\"prPathFilters\",\"readConfig\",\"readJsonc\",\"releaseFiles\",\"replaceLine\",\"repositoryOfRemote\",\"requiredScripts\",\"roadmapOfLine\",\"roadmapParses\",\"runChecks\",\"runCli\",\"runFix\",\"runGit\",\"runnerBudget\",\"scheduleMinute\",\"scriptsOf\",\"sourceMain\",\"specifiersOf\",\"summaryMarkdown\",\"summaryName\",\"testsRequired\",\"trustPolicy\",\"tsconfigTest\",\"typedFiles\",\"typedScripts\",\"workspaceGlobs\",\"workspaceProtocol\"] },\n \"@mark1russell7/cue\": { version: \"1.1.0\", names: [\"TsconfigPreset\",\"packageRoot\",\"presetFeatures\",\"readFeatures\",\"resolveFeatures\",\"tsconfigPresetPath\",\"tsconfigPresets\"] },\n \"@mark1russell7/highways\": { version: \"0.10.0\", names: [\"ADAM_DEFAULTS\",\"ADAM_SCHEMA\",\"AMBIGUITY_GUARD_DEFAULTS\",\"ANNEALING_DEFAULTS\",\"ANNEALING_SCHEMA\",\"ARC_SOURCES\",\"AREA_DEFAULTS\",\"AREA_WIDTHS\",\"ASSIGN_DEFAULTS\",\"ATTRACTION_DEFAULTS\",\"ATTRACTION_SCHEMA\",\"ActivationReport\",\"ActivationRow\",\"Ambiguity\",\"AmbiguityOptions\",\"Among\",\"AnyCompareOptions\",\"AnyCompareRow\",\"AnyOption\",\"AnyStepComparison\",\"AnyStrategy\",\"ArcSegment\",\"AssignOptions\",\"BACKTRACK_MIN\",\"BACKTRACK_SHARE\",\"BALANCE_DEFAULTS\",\"BALANCE_ENDS\",\"BIPARTITE\",\"BIPARTITE_LAYOUTS\",\"BOARD_PORTFOLIO_DEFAULTS\",\"BOARD_PORTFOLIO_SETTINGS\",\"BREAK\",\"BREAK_EVEN\",\"BREAK_EVEN_DEFAULTS\",\"BRONCHIAL_DEFAULTS\",\"BRONCHIAL_SPLITS\",\"BUILT_IN_STRATEGIES\",\"BenchOptions\",\"BenchRow\",\"BenchRun\",\"BendRoomRow\",\"BoardPortfolioOptions\",\"BoardPortfolioRun\",\"BooleanOption\",\"BootstrapMedian\",\"BoundaryWalk\",\"Box\",\"Boxed\",\"Bundle\",\"BundleStretch\",\"CANAL_DEFAULTS\",\"CANAL_SCHEMA\",\"CANDIDATE_SOURCES\",\"CAP_SWEEP\",\"CASES\",\"CHANNEL_REACH\",\"CLEARANCE_CAP\",\"COMPARE_ALL_STEPS\",\"COMPARE_STEPS\",\"CONFLUENT_DEFAULTS\",\"CONSENSUS_DEFAULTS\",\"CONSENSUS_LINKAGES\",\"CORRIDOR_DEFAULTS\",\"COVERAGE_FAMILIES\",\"CROSSBAR_DEFAULTS\",\"CUBU_DEFAULTS\",\"CURRICULUM_DEFAULTS\",\"CURRICULUM_ORDERS\",\"CURRICULUM_POOL\",\"CURVE_TYPES\",\"CUT_DEFAULTS\",\"CappedCell\",\"CaseBoard\",\"CaseSeedOptions\",\"CellGroups\",\"ClothoidStrategyOptions\",\"CompareOptions\",\"CompareRow\",\"CompareSpec\",\"CompareStep\",\"CornerGraph\",\"CornerGraphOptions\",\"CorpusClaims\",\"CorpusSpec\",\"CrossingAngles\",\"CubicSegment\",\"CurriculumOptions\",\"CurriculumOrder\",\"CurriculumRule\",\"CurveBenchOptions\",\"CurveBenchRow\",\"CurveCheck\",\"CurveFaults\",\"CurveInput\",\"CurveJoint\",\"CurveOptions\",\"CurveRun\",\"CurveRunOptions\",\"CurveSegment\",\"CurveType\",\"DEFAULT_RNG\",\"DENSE_GROUPS\",\"DENSITY_KERNELS\",\"DETAIL_DEFAULTS\",\"DIFFUSION_DEFAULTS\",\"DISTORTION_NEIGHBOURS\",\"DIVIDED_DEFAULTS\",\"DepthLevelOptions\",\"DetailOptions\",\"DetourSpread\",\"DrawnSegment\",\"EDGE_DISTANCES\",\"EDGE_PATH_DEFAULTS\",\"EXACT_CLASSES\",\"EXACT_EDGES_PER_NODE\",\"EXACT_V1\",\"EXACT_V1_BOUNDS\",\"EXACT_V1_BOUNDS_SIZES\",\"EXACT_V1_SEEDS\",\"EXACT_V1_SIZES\",\"Edge\",\"End\",\"EnumOption\",\"ExactClass\",\"ExactOptimaFile\",\"ExactOptimum\",\"FAN_OUT\",\"FDEB_DEFAULTS\",\"FIREFLY_DEFAULTS\",\"FIXTURES\",\"FIXTURE_LAYOUTS\",\"FIXTURE_LOCALITY\",\"FLOW_CLUSTER_DEFAULTS\",\"FLOW_FIELD_DEFAULTS\",\"FRAME_ROWS\",\"FRECHET_DEFAULTS\",\"FRONT_OBJECTIVES\",\"FireflyOptions\",\"FixPortsOptions\",\"FixtureKind\",\"FixtureSpec\",\"GAP_BASELINES\",\"GAP_BOOTSTRAP\",\"GAP_CAPS\",\"GAP_DEFAULTS\",\"GAP_RULES\",\"GAP_VIEWS\",\"GROUP_SCOPES\",\"GROUP_SPINES\",\"GROWTH_DEFAULTS\",\"GROWTH_SWEEP\",\"GUTTER_BEND_COST\",\"Gap\",\"GapLaneCount\",\"GapLaneOptions\",\"GapRule\",\"GapSummary\",\"GapView\",\"Graph\",\"GraphChange\",\"Grid\",\"GroupRule\",\"GroupRun\",\"Grouping\",\"HDBSCAN_DEFAULTS\",\"HIERARCHY_DEFAULTS\",\"HIERARCHY_GROUPS\",\"HIGHWAYS_ENGINE\",\"HIGHWAYS_FAMILIES\",\"HIGHWAY_BASES\",\"HIGHWAY_BASE_ROUTERS\",\"HOUGH_DEFAULTS\",\"HUB_ALLOCATIONS\",\"HUB_ARC_DEFAULTS\",\"HUB_CANDIDATES\",\"HUB_CHAIN\",\"HYSTERESIS_DEFAULTS\",\"HighwayBenchOptions\",\"HighwayBenchRow\",\"HighwayEdits\",\"HighwayIdKeep\",\"HighwayMeasureOptions\",\"HighwayMeasures\",\"HighwayStrategyOptions\",\"HighwaysBoard\",\"HighwaysFamily\",\"HubChainOptions\",\"INTERCHANGE_BASES\",\"INTERCHANGE_DEFAULTS\",\"InflectionOptions\",\"InnerEdge\",\"JogMeasures\",\"KDEEB_DEFAULTS\",\"KD_DEFAULTS\",\"KENDALL_EXACT\",\"KNEE_DEFAULTS\",\"KNEE_RULES\",\"LANES_DEFAULTS\",\"LANE_ORDERS\",\"LANE_STRETCH_DEFAULTS\",\"LANE_STRETCH_ORDERS\",\"LANE_TRACKS\",\"LEADER_DEFAULTS\",\"LEADER_TYPES\",\"LEVEL_HIGHWAY_DEFAULTS\",\"LINKAGES\",\"LINK_COMMUNITY_DEFAULTS\",\"LOCAL_MESH\",\"LaneBoard\",\"LaneFidelity\",\"LaneOrder\",\"LaneRun\",\"LaneStretch\",\"LaneStretchOptions\",\"LaneStretchOrder\",\"LaneTracks\",\"LayoutBox\",\"LayoutCell\",\"LayoutChange\",\"LayoutContainer\",\"LayoutCorpus\",\"LayoutEdge\",\"LayoutGenerator\",\"LayoutInput\",\"LayoutInputHead\",\"LayoutObstacle\",\"LayoutPort\",\"LayoutPrediction\",\"LayoutRecord\",\"LayoutSide\",\"LayoutSource\",\"LeaderOptions\",\"LeaderType\",\"Level\",\"LevelBoard\",\"LevelCut\",\"LevelFaults\",\"LevelInput\",\"LevelItem\",\"LevelLink\",\"LevelRatio\",\"LevelRoom\",\"LevelRoomOptions\",\"LevelRoomPreset\",\"LevelRoomRow\",\"LevelRow\",\"LineSegment\",\"LinkFaultOptions\",\"LinkFaults\",\"MANIFOLD_DEFAULTS\",\"MANIFOLD_SIDES\",\"MANY_GROUPS\",\"MEASURES\",\"MEASURE_BALANCE_REACH\",\"MEASURE_LANE_WIDTH\",\"MEET_DEFAULTS\",\"MEMBER_FORMS\",\"MESH_DEFAULTS\",\"MINGLE_DEFAULTS\",\"MIN_EFFECTS\",\"MLSEB_DEFAULTS\",\"MLS_FITS\",\"MODULE_RULES\",\"MOVE_NAMES\",\"ManyGroupsOptions\",\"MeasureCompare\",\"MeasureInfo\",\"MeasuredLink\",\"MemberForm\",\"MinEffect\",\"MinEffectRule\",\"MoveCounter\",\"MoveResponse\",\"MoveSegment\",\"NESTED_DEFAULTS\",\"NUDGE_DEFAULTS\",\"NUDGE_SCHEMA\",\"Node\",\"NumberOption\",\"OD_CELL_DEFAULTS\",\"OUTSIDE_SLACK\",\"Objective\",\"Obstacles\",\"OpenLanes\",\"OptionDeclaration\",\"OptionIssue\",\"OptionScale\",\"OptionSchema\",\"OptionSetting\",\"OrderFragility\",\"OrderFragilityOptions\",\"OverLimit\",\"PACKED_GRID\",\"PICK\",\"PIPELINE\",\"PLAN_CHANGERS\",\"PORTFOLIO_B1\",\"PORTFOLIO_BANDS\",\"PORTFOLIO_BASE_MEMBER\",\"PORTFOLIO_CAPS\",\"PORTFOLIO_FIT\",\"PORTFOLIO_HASHES\",\"PORTFOLIO_KS_API\",\"PORTFOLIO_RULES\",\"PORTFOLIO_SETS\",\"POWER_DEFAULTS\",\"PREFERENCE_DEFAULTS\",\"PREFERENCE_FEATURES\",\"PREFERENCE_PANEL\",\"PROPOSED_RULES\",\"P_HUB_DEFAULTS\",\"PackedGridOptions\",\"Paired\",\"Path\",\"PickOptions\",\"PipelineOptions\",\"Plug\",\"PlugInput\",\"PlugPair\",\"PlugSpacing\",\"Point\",\"Port\",\"PortfolioBand\",\"PortfolioCap\",\"PortfolioEntry\",\"PortfolioFacts\",\"PortfolioHashes\",\"PortfolioRoute\",\"PortfolioRouterOptions\",\"PortfolioRule\",\"PortfolioSetting\",\"PredictionCheck\",\"PredictionOp\",\"PreferenceFit\",\"PreferenceModel\",\"PreferenceOptions\",\"PreferencePair\",\"PullApartOptions\",\"QUICKBUNDLES_DEFAULTS\",\"Quality\",\"RECORD_EPS\",\"REPEL_DEFAULTS\",\"REPEL_SCHEMA\",\"REROUTE_DEFAULTS\",\"REROUTE_SCHEMA\",\"RESISTANCE_DEFAULTS\",\"RIDGE_DEFAULTS\",\"ROAD_CLASS_DEFAULTS\",\"ROOM_FAMILIES\",\"ROUTED_STEPS\",\"ROUTERS\",\"RadiusOptions\",\"RecordTrace\",\"RectScatteredParams\",\"Region\",\"RegionPoint\",\"Registry\",\"RepairCounts\",\"RepairOptions\",\"RepairReport\",\"Result\",\"Room\",\"RoomBenchRow\",\"RoomFamily\",\"RoomInput\",\"RoomLevel\",\"RoomLink\",\"RoomMethod\",\"RoomOptions\",\"RoomPreset\",\"RoomSetting\",\"Route\",\"RouteBalance\",\"RouteInput\",\"RouteStability\",\"RouteStabilityOptions\",\"RoutedStep\",\"Router\",\"RouterPreset\",\"RuleCount\",\"RunOrder\",\"RunProfile\",\"SAME_HIGHWAY\",\"SBEB_DEFAULTS\",\"SCALE_SPACE_DEFAULTS\",\"SCREEN_FAMILY_BY\",\"SCREEN_RULES\",\"SCREEN_SETS\",\"SCREEN_STEPS\",\"SCREEN_V1\",\"SCREEN_V2\",\"SCREEN_V2_HELD_OUT\",\"SCREEN_V3\",\"SCREEN_V3_HELD_OUT\",\"SCREEN_WRAPS\",\"SEARCH_DEFAULTS\",\"SEARCH_MOVES\",\"SEARCH_WORK_UNIT\",\"SECTION_DEFAULTS\",\"SELECT_DEFAULTS\",\"SIDE_NORMAL\",\"SKELETON_GROUPS\",\"SKELETON_TARGETS\",\"SLACK_SWEEP\",\"SLOT_DEFAULTS\",\"SLOT_KEYS\",\"SMALL_CLUSTERED\",\"SOFT_KEY_DEFAULTS\",\"SPACING_LIMIT\",\"SPARSE_LONG\",\"SPECTRAL_DEFAULTS\",\"SPIRAL_DEFAULTS\",\"SPREAD_DEFAULTS\",\"SPRINGS_DEFAULTS\",\"SPRINGS_SCHEMA\",\"STABLE_ID_DEFAULTS\",\"STEINER_DEFAULTS\",\"STEINER_GROUPS\",\"STEINER_METHODS\",\"STEINER_METRICS\",\"STEPS\",\"STRATEGIES\",\"STREET_DEFAULTS\",\"STREET_SOURCES\",\"STRETCH_DEFAULTS\",\"STRETCH_SWEEP\",\"STUB_DEFAULTS\",\"SUITE_COLUMNS\",\"SWARM_SEARCHES\",\"ScreenFamily\",\"ScreenOptions\",\"ScreenReport\",\"ScreenSet\",\"ScreenStep\",\"ScreenStrategySummary\",\"ScreenSummary\",\"ScreenWrap\",\"Section\",\"SectionOptions\",\"SectionsBenchRow\",\"SectionsSetting\",\"SectionsSettingOptions\",\"Segment\",\"SegmentGraph\",\"SegmentRef\",\"SharedRun\",\"Side\",\"SmoothStrategyOptions\",\"SoftGraph\",\"SoftGraphOptions\",\"SplitTree\",\"Spread\",\"SpreadOptions\",\"Stability\",\"Step\",\"StepComparison\",\"StepInput\",\"StepOutput\",\"StepTypes\",\"Strategy\",\"StrategyDefinition\",\"SuiteFront\",\"SuiteOptions\",\"SuiteReport\",\"SuiteRow\",\"SuiteSummary\",\"SwarmEntry\",\"SwarmRun\",\"SwarmSearch\",\"SwarmSetting\",\"SweepOptions\",\"TERRITORY_DEFAULTS\",\"TERRITORY_POINTS\",\"THIN_BARS\",\"TIGHT_DEFAULTS\",\"TIGHT_FIRSTS\",\"TIGHT_SCHEMA\",\"TIGHT_TIES\",\"TINY_UNIFORM\",\"TOLERANCE\",\"TRACING_DEFAULTS\",\"TRACING_QUANTILES\",\"TRACING_WEIGHTS\",\"TRACLUS_DEFAULTS\",\"TRAFFIC_RULES\",\"TWO_HUBS\",\"TensionOptions\",\"Terminal\",\"TotalTurn\",\"TracingEntry\",\"TracingOptions\",\"TracingQuantile\",\"TracingRun\",\"TracingWeights\",\"TrackBenchRow\",\"UNEVEN_SIZES\",\"VENATION_BACKBONES\",\"VENATION_DEFAULTS\",\"ValueOption\",\"VenationBackbone\",\"VenationOptions\",\"Violation\",\"WEISZFELD_DEFAULTS\",\"WIDTH_SCALES\",\"WSPD_DEFAULTS\",\"WallEnd\",\"WallLeader\",\"WallPlan\",\"WayFinder\",\"WayOptions\",\"WholeOutput\",\"WidthScale\",\"ZIPPER_DEFAULTS\",\"activationBase\",\"activationReport\",\"adamRouter\",\"adamRoutes\",\"adamStrategy\",\"adjustedRandIndex\",\"agreementOf\",\"allSections\",\"ambiguity\",\"ambiguityGate\",\"ambiguityPlan\",\"annealWays\",\"annealingRouter\",\"annealingStrategy\",\"arcCurve\",\"arcsin\",\"areaPlan\",\"aroundBox\",\"asRouter\",\"assignEnds\",\"assignWall\",\"attraction\",\"attractionRouter\",\"attractionStrategy\",\"backboneLinks\",\"backtrackOf\",\"balance\",\"balanceOf\",\"balancePlan\",\"basePlan\",\"benchBendRoom\",\"benchCurveStrategies\",\"benchCurves\",\"benchHighways\",\"benchLevelRoom\",\"benchOne\",\"benchRoom\",\"benchRun\",\"benchTracks\",\"bendCount\",\"bendingEnergy\",\"bicliqueGroups\",\"bigGroups\",\"boardGaps\",\"boardPortfolio\",\"boardUnit\",\"boardWins\",\"bootstrapMedian\",\"boundsFamilyName\",\"boxDisplacement\",\"boxExit\",\"boxField\",\"boxPush\",\"boxUnit\",\"boxesOverlap\",\"breakEvenGate\",\"breakEvenPlan\",\"bronchialPlan\",\"buildSections\",\"bundleStretch\",\"bundledShare\",\"byCollection\",\"byDataGroup\",\"canalHubs\",\"canalRouter\",\"canalStrategy\",\"canalWays\",\"candidateArcs\",\"candidatePlan\",\"candidateScore\",\"canonicalJson\",\"capSettings\",\"caseSeed\",\"cellSteps\",\"center\",\"chainClusters\",\"changeGraph\",\"changedDimensions\",\"channelOverflows\",\"channelWidth\",\"characteristicPoints\",\"checkFamilies\",\"checkLevels\",\"checkOptions\",\"checkParents\",\"checkPlan\",\"checkPort\",\"checkProperties\",\"checkSchema\",\"checkSections\",\"clampOptions\",\"clothoidCurve\",\"clusters1d\",\"coAssociation\",\"collapseLinks\",\"commonEdges\",\"compareAnyStep\",\"compareMeasure\",\"compareSpec\",\"compareStep\",\"compatibility\",\"compatibilityMatrix\",\"confluentPlan\",\"consensusGroups\",\"consensusLabels\",\"consensusPlan\",\"controlChain\",\"cornersRouter\",\"corpusManifest\",\"corridorPlan\",\"countCrossings\",\"countOverlaps\",\"createFamilyRegistry\",\"createRegistry\",\"crossbarPlan\",\"crossesItself\",\"crossingAngle\",\"crossingAngles\",\"cubicAt\",\"cubuPlan\",\"curriculum\",\"curvatureVariation\",\"curveDeviation\",\"curveFaults\",\"curveJoints\",\"curveOf\",\"curveRuns\",\"curveSpace\",\"curveStrategies\",\"curvesHash\",\"cutGroups\",\"cutShare\",\"declaresFamily\",\"defineStrategy\",\"denseGroupsBoard\",\"densityPlan\",\"densityRidges\",\"depthLevels\",\"detailLevels\",\"detailWidth\",\"detourSpread\",\"diamondAngle\",\"diffusionPlan\",\"dimensionAt\",\"dimensionUnit\",\"dist\",\"distanceDistortion\",\"distinctPoints\",\"divideHighway\",\"dividedPlan\",\"documentHash\",\"dominates\",\"drawnSegments\",\"edgeBlocks\",\"edgeEnds\",\"edgeLengths\",\"edgePathPlan\",\"edgePaths\",\"edgePlugs\",\"edgeResistance\",\"enumDimension\",\"exactBoard\",\"exactFamily\",\"exactGenerator\",\"exactSeed\",\"exactStretch\",\"exactStretches\",\"exercised\",\"facingEnds\",\"familyCell\",\"familyKind\",\"familyOf\",\"familySeed\",\"farLevel\",\"farLinks\",\"fdebLines\",\"fdebPlan\",\"fft\",\"findStrategy\",\"finderOf\",\"fireflies\",\"firstLines\",\"fitPreferences\",\"fixPorts\",\"fixedPortPoint\",\"fixtureGroupOptions\",\"fixtureParams\",\"fixtureRngSeed\",\"fixtureSpecOf\",\"flowClusterPlan\",\"flowClusters\",\"flowDistance\",\"flowFieldPlan\",\"fnv1a32\",\"follow\",\"formatActivation\",\"formatBendRoom\",\"formatCapped\",\"formatCurves\",\"formatFaults\",\"formatFronts\",\"formatGap\",\"formatHighways\",\"formatInput\",\"formatLevelRoom\",\"formatLevels\",\"formatMeasureTime\",\"formatPaired\",\"formatRoom\",\"formatRules\",\"formatScreen\",\"formatSections\",\"formatSummaries\",\"formatTable\",\"formatTracks\",\"frameRoutes\",\"frechet\",\"frechetBundles\",\"frechetPlan\",\"freeLines\",\"g1Defect\",\"g2Defect\",\"gapBaselines\",\"gapCap\",\"gapClosed\",\"gapLaneCounts\",\"gapLanes\",\"gapNames\",\"gapPlan\",\"gapValues\",\"gateStrategy\",\"getStrategy\",\"goesOutAndBack\",\"graphInput\",\"greedyBicliques\",\"greedyCrossbars\",\"groupEdges\",\"groupFill\",\"groupRun\",\"groupSettings\",\"groupStability\",\"groupStrategies\",\"groupedPlan\",\"growthPlan\",\"growthSettings\",\"guardBreaks\",\"gutterRoutes\",\"halfPower\",\"hasCusp\",\"hdbscanClusters\",\"hdbscanLabels\",\"hdbscanPlan\",\"hierarchyPlan\",\"highwayChurn\",\"highwayCurve\",\"highwayCurves\",\"highwayEdits\",\"highwayIdKeep\",\"highwayMoves\",\"highwayRouter\",\"highwayRouterStrategy\",\"highwayRouters\",\"highwayStrategies\",\"highwaysRegistry\",\"houghLines\",\"houghPeaks\",\"houghPlan\",\"hubArcPlan\",\"hubCandidates\",\"hubChainBoard\",\"hysteresisGate\",\"hysteresisPlan\",\"inflate\",\"inflectionCount\",\"inflectionCurve\",\"inflectionSector\",\"inkSaved\",\"innerPoints\",\"inputGraph\",\"inputId\",\"interchangeCandidates\",\"interchangePlan\",\"isRoutedStep\",\"itemOverlaps\",\"itemSizes\",\"jaccard\",\"jaccardIndex\",\"jogPeaks\",\"joinReports\",\"jsonSafe\",\"kMeans\",\"kdGroups\",\"kdeebLines\",\"kdeebPlan\",\"keepMembers\",\"keepRules\",\"kendallTau\",\"keyGroups\",\"keyedSections\",\"keysPlan\",\"kneeOf\",\"kneePlan\",\"labelGroups\",\"laneArea\",\"laneCrossings\",\"laneFidelity\",\"laneOrder\",\"laneRoutes\",\"laneSeparation\",\"laneSettings\",\"laneStretches\",\"lanesPlan\",\"lanesThrough\",\"leaderEnds\",\"leafGroups\",\"lengthBetween\",\"levelCut\",\"levelGrouping\",\"levelHighwayPlan\",\"levelMeasures\",\"levelPairs\",\"levelRatio\",\"levelRoom\",\"levelStrategies\",\"levelsOf\",\"lineDensity\",\"linePoint\",\"linkAgreement\",\"linkCommunities\",\"linkCommunityGroups\",\"linkCommunityPlan\",\"linkDensity\",\"listOptions\",\"listStrategies\",\"madeUpPairs\",\"makeFixture\",\"makeRoom\",\"manifestHash\",\"manifoldPlan\",\"manyGroupsBoard\",\"matchHighways\",\"maxStretch\",\"mdf\",\"meanLine\",\"measureBoard\",\"measureByKey\",\"measureByName\",\"measureHighways\",\"measureJogs\",\"measureLevel\",\"measureLevelFaults\",\"measureLinks\",\"measureName\",\"measureQuality\",\"measureRouteFaults\",\"measureStability\",\"meetMember\",\"meetPlan\",\"meetingPoints\",\"memberAt\",\"memberStrategy\",\"mergeAngle\",\"meshPlan\",\"meshWaypoints\",\"minEffectOf\",\"minHash\",\"mingleBundles\",\"minglePlan\",\"mixedSegments\",\"mixesCollections\",\"mlsPoint\",\"mlsebLines\",\"mlsebPlan\",\"modularity\",\"modulesOf\",\"moveResponse\",\"mulberry32\",\"namedObjectives\",\"nearestCentre\",\"nearestOnBoundary\",\"nearestOnLine\",\"nearestSide\",\"nearestSkeleton\",\"nestedGridBoard\",\"nestedGroups\",\"nestedPlan\",\"nestingFaults\",\"nestingViolations\",\"nextRow\",\"nodeAmbiguity\",\"nodeIndex\",\"nodeLinks\",\"nudgeRouter\",\"nudgeRoutes\",\"nudgeStrategy\",\"numberDimension\",\"numberOf\",\"occupiedArea\",\"odCellPlan\",\"odGroups\",\"offsetLine\",\"offsetPolyline\",\"oneSteiner\",\"openGaps\",\"openLanes\",\"optimaFile\",\"optimumKey\",\"optionDefaults\",\"orderChanges\",\"orderFragility\",\"orderLanes\",\"orderRows\",\"orderStability\",\"orderSuiteRows\",\"orthogonality\",\"outOfBoxes\",\"outerGraph\",\"outputGroups\",\"outputHash\",\"pHubPlan\",\"pMedian\",\"packedGridBoard\",\"pairCosts\",\"paramProblem\",\"paretoFront\",\"parseLines\",\"partWithin\",\"passSettings\",\"passesThrough\",\"pathPoints\",\"peakCurvature\",\"pickLevel\",\"pickMoves\",\"placePlug\",\"planMoves\",\"planOfResult\",\"plugSpacing\",\"plugStrategies\",\"plugsRouter\",\"pointAt\",\"pointBoxDistance\",\"pointDensity\",\"pointGroups\",\"pointOnSide\",\"pointSegmentDistance\",\"polylineLength\",\"portOffset\",\"portfolio\",\"portfolioB1Spec\",\"portfolioBand\",\"portfolioFacts\",\"portfolioKey\",\"portfolioMember\",\"portfolioMembers\",\"portfolioName\",\"portfolioRouter\",\"portfolioStrategy\",\"positionStability\",\"powerPlan\",\"preferences\",\"pullApart\",\"quadtreeGroups\",\"quantile\",\"quickBundles\",\"quickBundlesPlan\",\"randomInt\",\"rankShares\",\"rayToBox\",\"recordLines\",\"recordMoves\",\"rectScattered\",\"regionBounds\",\"register\",\"relaxRoutes\",\"repairResult\",\"repairStrategy\",\"repelRouter\",\"repelStrategy\",\"representative\",\"rerouteRouter\",\"rerouteStrategy\",\"rerouteWays\",\"resample\",\"resampleRoute\",\"resistanceClusters\",\"resistancePlan\",\"resolvePorts\",\"resultForm\",\"resultHash\",\"ridgeLines\",\"ridgePlan\",\"rng\",\"roadClassPlan\",\"roomDemand\",\"roomLinks\",\"roomOrderFaults\",\"roomStrategies\",\"roomValues\",\"round3\",\"roundCorners\",\"roundedCurve\",\"routeBalance\",\"routeCrossings\",\"routeInStableOrder\",\"routeMeasures\",\"routePortfolio\",\"routeSeparation\",\"routeStability\",\"routeSymmetry\",\"routerStrategies\",\"routersOf\",\"ruleCounts\",\"runBenchmark\",\"runKey\",\"runPipeline\",\"runProfile\",\"runSuite\",\"sameData\",\"sampleCurve\",\"samplesOf\",\"sbebLines\",\"sbebPlan\",\"scaleClusters\",\"scaleSpaceGroups\",\"scaleSpacePlan\",\"screen\",\"screenInputs\",\"screenSplit\",\"searchPlan\",\"searchRun\",\"searchScore\",\"sectionsRouter\",\"segmentBounds\",\"segmentBoxDistance\",\"segmentClusters\",\"segmentDistance\",\"segmentHitsBox\",\"segmentHitsRect\",\"segmentKey\",\"segmentsCross\",\"segmentsOf\",\"selectBest\",\"selectPlan\",\"setManifest\",\"settingAt\",\"sha256Hex\",\"shapeSkeleton\",\"sharedRouter\",\"sharedStretchStrategy\",\"sharedStretches\",\"sharedWaysAll\",\"sharedWaysPlan\",\"shuffleEdges\",\"sideAngle\",\"sideToward\",\"signTestPower\",\"silhouette\",\"simplify\",\"skeletonGroups\",\"skeletonPath\",\"slackSettings\",\"slotJoin\",\"slotPlan\",\"slotsOf\",\"smoothCurve\",\"snapPlan\",\"softDistance\",\"softKeyClusters\",\"softKeyPlan\",\"softStep\",\"spanningTree\",\"spectralClusters\",\"spectralLabels\",\"spectralPlan\",\"spinePart\",\"spiralJoin\",\"spiralPlan\",\"spiralTree\",\"splineCurve\",\"splitFrames\",\"splitPath\",\"splitPoint\",\"splitTargets\",\"spread\",\"spreadEnds\",\"spreadWith\",\"springsRouter\",\"springsStrategy\",\"stableIdGate\",\"stableIdPlan\",\"stableOrder\",\"stableOrderStrategy\",\"steinerPlan\",\"stepRouterStrategy\",\"stepRouters\",\"stepSeed\",\"straightCurve\",\"straightRouter\",\"strategyKey\",\"streetEdges\",\"streetPlan\",\"streetPoint\",\"streetRide\",\"stretchGate\",\"stretchLaneOrders\",\"stretchPlan\",\"stretchSettings\",\"stubPlan\",\"suiteFronts\",\"sumFaults\",\"summarize\",\"summarizeGap\",\"summarizeRows\",\"swarmScore\",\"sweepGrid\",\"sweepOf\",\"sweepRoom\",\"sweepSections\",\"sweepValues\",\"symmetricEigen\",\"territoryPlan\",\"tightRouter\",\"tightStrategy\",\"toSvgPath\",\"totalTurn\",\"tracePlan\",\"tracing\",\"tracingLoads\",\"tracingValue\",\"traclusPlan\",\"treeCost\",\"treeDepth\",\"trunksRouter\",\"turns\",\"turnsOf\",\"unwrappedName\",\"utf8\",\"venationLevels\",\"venationLinks\",\"waySlacks\",\"waypointWay\",\"weberPoint\",\"weiszfeldPlan\",\"wholeBoard\",\"wholeStrategies\",\"withBends\",\"withRepair\",\"withStableOrder\",\"wspdGroups\",\"wspdPlan\",\"zipLegs\",\"zipperPlan\"] },\n \"@mark1russell7/lag\": { version: \"0.2.4\", names: [\"ANONYMOUS_CALLBACK\",\"BrowserReportMonitor\",\"BusyTimeProbe\",\"CALLBACK_SOURCE_KINDS\",\"ClockDriftMonitor\",\"ClockReliabilityChecker\",\"ClsCalculator\",\"ComputePressureMonitor\",\"DriftLag\",\"EVENTS\",\"EVENT_CATALOG\",\"EVENT_TIME_ATTRIBUTE\",\"EventTimingMonitor\",\"FrameTimingMonitor\",\"GCSignalDetector\",\"HANG_JOURNAL_STALE_MS\",\"HANG_JOURNAL_WRITE_INTERVAL_MS\",\"HANG_REPORT_MARK_PREFIX\",\"HISTOGRAM_BOUNDARIES\",\"IdleAvailabilityMonitor\",\"InpCalculator\",\"LIVENESS_BUFFER_BYTES\",\"LONG_CALLBACK_THRESHOLD_MS\",\"LagLogger\",\"LagMonitor\",\"LagWorker\",\"LayoutShiftMonitor\",\"LifecycleStateMachine\",\"LivenessWatcher\",\"LongAnimationFrameMonitor\",\"LongCallbackMonitor\",\"MAX_EVENT_TIME_OFFSET_MS\",\"METRICS\",\"METRIC_CATALOG\",\"MacrotaskLag\",\"MemoryMonitor\",\"MonitorRegistry\",\"NAVIGATION_TYPES\",\"ObserverMonitor\",\"PEER_BEAT_INTERVAL_MS\",\"PEER_CHANNEL_NAME\",\"PEER_CLAIM_HOLD_MS\",\"PEER_GRACE_MS\",\"PEER_HANG_THRESHOLD_MS\",\"PageViewVitals\",\"PeerHangWatch\",\"RateLimiter\",\"ReliabilityTracker\",\"SHORT_INTERACTION_ESTIMATE_MS\",\"SPANS\",\"SPAN_CATALOG\",\"SchedulingFairnessMonitor\",\"SharedLivenessMonitor\",\"TimerThrottleDetector\",\"VITAL_THRESHOLDS\",\"ViewCollector\",\"WorkerClockSync\",\"WorkerLagMonitor\",\"activeSpanName\",\"beatingSetTimeout\",\"callbackSourceKind\",\"createAbsoluteClock\",\"createBrowserDeps\",\"createCounter\",\"createForwardingMeter\",\"createFrameViewport\",\"createHandle\",\"createHistogram\",\"createIndexedDbHangJournal\",\"createInstrumentedBrowserReports\",\"createInstrumentedClockDrift\",\"createInstrumentedClockReliability\",\"createInstrumentedComputePressure\",\"createInstrumentedDriftLag\",\"createInstrumentedEventTiming\",\"createInstrumentedFrameTiming\",\"createInstrumentedGCSignal\",\"createInstrumentedIdleAvailability\",\"createInstrumentedLayoutShift\",\"createInstrumentedLifecycle\",\"createInstrumentedLoaf\",\"createInstrumentedLongCallbacks\",\"createInstrumentedMacrotaskLag\",\"createInstrumentedMemory\",\"createInstrumentedPageViewContext\",\"createInstrumentedPageViewVitals\",\"createInstrumentedPeerHangWatch\",\"createInstrumentedSchedulingFairness\",\"createInstrumentedSharedLiveness\",\"createInstrumentedThrottleDetector\",\"createInstrumentedWorkerLag\",\"createLagWorker\",\"createLivenessBeacon\",\"createMeasurementConditions\",\"createMemoryHangJournal\",\"createMessageTaskQueue\",\"createMeterReceiver\",\"createNoopEventSink\",\"createNoopMeter\",\"createNoopSpanSink\",\"createOtelEventSink\",\"createOtelLoggerAdapter\",\"createOtelSpanSink\",\"createPageSource\",\"createPageViewSpans\",\"createRandomId\",\"createStorageHangReportMarks\",\"createTeeLogger\",\"createWorkerHandler\",\"defaultMemoryIntervalMs\",\"describeNode\",\"driftStepMs\",\"encodeOtlpLogs\",\"findAbandonedHangs\",\"formatEventLine\",\"highFrequencyLagIntervalMs\",\"interactionType\",\"isPeerMessage\",\"isSpanIdentity\",\"isVisibleState\",\"lagLoggingIntervalMs\",\"longLagDuration\",\"longLagThreshold\",\"macrotaskLagIntervalMs\",\"millisToUnixNanoString\",\"peerLockName\",\"placeEventTime\",\"pressureStateOrdinals\",\"rateVital\",\"setupAllMonitors\",\"setupLongCallbacks\",\"shortLagDuration\",\"shortLagThreshold\",\"stripUrlParameters\",\"summarizeTransitions\",\"validatedRecorder\",\"withEventContext\"] },\n \"@mark1russell7/lag-hud\": { version: \"0.1.0\", names: [\"createHudMeter\",\"fanOutMeter\",\"formatLagStat\",\"lagHudText\",\"mountLagHud\",\"quantile\"] },\n \"@mark1russell7/layout-contract\": { version: \"0.2.21\", names: [\"AdvanceFn\",\"BALANCE_MEASURE_SUFFIXES\",\"BALANCE_SIDE_DEPTH\",\"Balance\",\"BalanceMeasureSuffix\",\"CORPUS_DIMENSIONS\",\"CanvasTextContext\",\"CellsOptions\",\"ClaimBreak\",\"ComposeOptions\",\"ContainerTest\",\"CorpusDimension\",\"CorpusEntry\",\"CorpusFamily\",\"CorpusSplit\",\"CorpusStep\",\"CrossEngine\",\"DEFAULT_FAMILY_BY\",\"DEFAULT_RNG\",\"DEFAULT_SHAPES\",\"DEFAULT_TOLERANCE\",\"DeclaredClaim\",\"Declares\",\"DimensionValues\",\"Direction\",\"EDGES_STEP\",\"EDGE_DENSITY\",\"EDGE_STEP_VERSION\",\"EPS\",\"EdgeShape\",\"EdgeStepParams\",\"EnumerateOptions\",\"ExerciseEvidence\",\"FAMILY_ANY_KIND\",\"FamilyBy\",\"FamilyCell\",\"FamilyRegistry\",\"FamilyVerdict\",\"GenerateContext\",\"GenerateOptions\",\"GridOptions\",\"HashOptions\",\"INVALIDATED_FIELD\",\"Item\",\"JOINT_MEASURES\",\"JOINT_MOVED_MIN\",\"JointMeasureId\",\"LayoutBox\",\"LayoutCell\",\"LayoutContainer\",\"LayoutEdge\",\"LayoutGenerator\",\"LayoutInput\",\"LayoutRecord\",\"Margin\",\"MeasureSpec\",\"MeasurerOptions\",\"MeasurerStats\",\"Member\",\"MemberRule\",\"MemberStatus\",\"MemberTrace\",\"Obstacle\",\"OptionRef\",\"OptionSupports\",\"OutputGroup\",\"OwnerDimensionSpec\",\"PACK_HARD_RULES\",\"PackHard\",\"PackInput\",\"PackOutput\",\"PairGap\",\"ParamKind\",\"ParamValue\",\"ParamWhen\",\"PickSpec\",\"PlacedBox\",\"Placement\",\"Point\",\"Port\",\"Portfolio\",\"PortfolioKey\",\"PortfolioLevel\",\"PortfolioOptions\",\"PortfolioPick\",\"PortfolioTrace\",\"ProcrustesOptions\",\"RECORD_EPS\",\"RECORD_SCALE\",\"RECT_SCATTERED\",\"Rect\",\"Region\",\"RegistryCell\",\"RngFactory\",\"RuleLevel\",\"RunEnv\",\"RunFacts\",\"SHAPE_KINDS\",\"SHAPE_KIND_IDS\",\"SIDES\",\"SPLIT_SCHEMA\",\"STRATEGY_SPACE_SCHEMA\",\"SampleOptions\",\"SelectCandidate\",\"SelectLevel\",\"Selection\",\"ShapeBound\",\"ShapeCheck\",\"ShapeFilter\",\"ShapeGeometry\",\"ShapeKind\",\"ShapeKindSpec\",\"ShapeLevel\",\"ShapeSupport\",\"Side\",\"Sides\",\"SpaceConstraint\",\"SpaceParam\",\"SpaceSize\",\"SpaceSizeOptions\",\"SpaceStage\",\"SplitCorpus\",\"SplitFold\",\"Stage\",\"StageChoice\",\"StageOption\",\"StageTrace\",\"StrategyConfig\",\"StrategyInfo\",\"StrategySpace\",\"SupportedRange\",\"SupportedValues\",\"Supports\",\"TEXT_MEASURES\",\"TEXT_UNITS\",\"TextLayout\",\"TextLayoutOptions\",\"TextMeasureId\",\"TextMeasurer\",\"Tolerance\",\"VERDICT_DRAWS\",\"VERDICT_EXACT_CAP\",\"VERDICT_EXACT_MAX\",\"VERDICT_RUNS\",\"VERDICT_SEED\",\"Verdict\",\"VerdictBreadth\",\"VerdictInterval\",\"VerdictLabel\",\"VerdictOptions\",\"VerdictPermutation\",\"VerdictRecord\",\"VerdictResult\",\"VerdictScope\",\"VerdictSide\",\"VerdictSignTest\",\"applyPack\",\"balanceMeasureSpecs\",\"balanceMeasures\",\"balanceOf\",\"boundsOf\",\"boxArea\",\"canonicalConfig\",\"canonicalInput\",\"canonicalJson\",\"canvasAdvance\",\"checkConfig\",\"checkDeclared\",\"checkInput\",\"checkShapes\",\"checkSpace\",\"checkSplit\",\"compareMeasure\",\"composeFamily\",\"configId\",\"corpusHashOf\",\"countObstacleHits\",\"countOutside\",\"countOverlaps\",\"countPortsOffBorder\",\"createFamilyRegistry\",\"createMeasurer\",\"declaredClaimOf\",\"declaredCounts\",\"dimensionAt\",\"dimensionSupports\",\"dimensionUnit\",\"documentHash\",\"edgeStep\",\"enumerateSpace\",\"exercised\",\"familyKind\",\"familyOf\",\"fnv1a32\",\"fontKey\",\"graphemesOf\",\"grow\",\"isShapeKind\",\"itemShapeOf\",\"joinConfigs\",\"layoutText\",\"leaveOneSeedOut\",\"levelsOf\",\"marginSides\",\"minEffectOf\",\"mulberry32\",\"nearestGaps\",\"outputGroups\",\"outputHash\",\"overlapOf\",\"ownerDimension\",\"packHard\",\"paramActive\",\"paramLevels\",\"paramProblem\",\"paramValue\",\"perChange\",\"pickMoves\",\"placedRect\",\"portPoint\",\"portfolio\",\"procrustesOf\",\"productSpace\",\"randomInt\",\"rectInRegion\",\"regionArea\",\"regionHitsRect\",\"resolveDimensions\",\"ruleLevel\",\"selectBest\",\"sha256Hex\",\"shapeKindOf\",\"shapeKindProblem\",\"shapeKindsOf\",\"shapeLevel\",\"shapeSupportProblems\",\"shapesOf\",\"sharedDimension\",\"spaceShapeKinds\",\"spaceSize\",\"splitConfig\",\"splitFileName\",\"splitFolds\",\"stepRandom\",\"textMeasures\",\"toLayoutRecord\",\"toPackInput\",\"translate\",\"turnBox\",\"turnMargin\",\"turnPoint\",\"turnPort\",\"turnRegion\",\"turnSide\",\"verdict\"] },\n \"@mark1russell7/optional\": { version: \"1.0.0\", names: [\"None\",\"Optional\",\"Some\",\"flatMap\",\"fromNullable\",\"fromSentinel\",\"getOr\",\"isNone\",\"isSome\",\"map\",\"none\",\"some\",\"toSentinel\",\"unwrap\"] },\n \"@mark1russell7/otel-ts\": { version: \"0.2.0\", names: [\"ContextManagerOption\",\"DEFAULT_METRICS_EXPORT_INTERVAL_MS\",\"DEFAULT_OTLP_ENDPOINT\",\"DEFAULT_SERVICE_NAME\",\"DEFAULT_SERVICE_VERSION\",\"NodeTelemetry\",\"NodeTelemetryOptions\",\"OtelTsConfig\",\"StubCollector\",\"createInstanceId\",\"createTraceEcho\",\"getOrCreateSessionId\",\"init\",\"outgoingTraceparent\",\"runInRemoteTrace\",\"startNodeTelemetry\",\"startStubCollector\"] },\n \"@mark1russell7/packing\": { version: \"0.4.1\", names: [\"ANCHOR_GAIN_LIMIT\",\"ANCHOR_MEASURE_IDS\",\"ANCHOR_STEPS\",\"ANNEAL_STAGE\",\"ASPECT_FIT_FACTORS\",\"ASPECT_FIT_LEVELS\",\"ASPECT_FIT_STAGE\",\"BBOX_SHAPES\",\"BEASLEY_GCUT_COUNTS\",\"BEASLEY_GCUT_SIDES\",\"BERKEY_WANG_RULES\",\"BL_TRAP_WIDTH\",\"BL_TRAP_WIDTHS\",\"BOUND_KINDS\",\"BURKE_KENDALL_WHITWELL_RULES\",\"CLASS_COUNTS\",\"DEFAULT_STRATEGY\",\"DEFAULT_TOLERANCE\",\"EPS\",\"FORCE_MAX_BOXES\",\"FORCE_MAX_FIXED\",\"FORCE_STAGE\",\"GENETIC_STAGE\",\"GUILLOTINE_CHOICES\",\"GUILLOTINE_SPLITS\",\"HALF_WIDE_WIDTH\",\"HOLE_DEGREE_MAX_STEPS\",\"HOLE_DEGREE_STAGE\",\"HOPPER_TURTON_RULES\",\"LADDER_RUNGS\",\"LADDER_SIDE\",\"LADDER_WIDTH\",\"LEVEL_COUNTS\",\"MARTELLO_VIGO_BIN\",\"MARTELLO_VIGO_TYPES\",\"MAXRECTS_BANDS\",\"MAXRECTS_RULES\",\"MEASURE_SPECS\",\"OVERLAP_MIN_STAGE\",\"PACK_SPACE_LEFT_OUT\",\"PACK_SPACE_OPTIONS\",\"PORTFOLIO_FRAME_MS\",\"PORTFOLIO_LEVELS\",\"PORTFOLIO_SETS\",\"PORTFOLIO_STAGE\",\"RECORD_EPS\",\"RELAX_MAX_CONSTRAINTS\",\"RELAX_STAGE\",\"RESTARTS_STAGE\",\"RESTART_PERTURBS\",\"RUIN_KINDS\",\"RUIN_RECREATE_STAGE\",\"Rect\",\"SELECT_MAX_DEPTH\",\"SELECT_MEMBERS\",\"SELECT_STAGE\",\"SELECT_TABLE\",\"SHELF_FITS\",\"SKYLINE_RULES\",\"SORT_ORDERS\",\"SPREAD_THRESHOLDS\",\"TABU_STAGE\",\"THIN_INPUTS\",\"UnsupportedCell\",\"UnsupportedShape\",\"Vector\",\"WALL_LOCKS_MAX\",\"WALL_LOCK_WALLS\",\"WORK_BUDGET\",\"WORK_SPENT\",\"WORK_STOPPED\",\"WORST_COUNTS\",\"WORST_WIDTH\",\"anchorGenerators\",\"anchorStability\",\"anchorStep\",\"annealStrategy\",\"aspectError\",\"aspectFit\",\"aspectFitStrategy\",\"assertSupported\",\"balanceContainerOf\",\"bboxStrategy\",\"beasleyGcut\",\"beasleyGcutFamily\",\"beasleyGcutRange\",\"berkeyWang\",\"berkeyWangFamily\",\"binCountBound\",\"blTrap\",\"blTrapFamily\",\"boundGap\",\"boundMeasures\",\"boundShare\",\"burkeKendallWhitwell\",\"burkeKendallWhitwellFamily\",\"burkeKendallWhitwellOf\",\"canonicalJson\",\"cards\",\"cardsFamily\",\"cellKey\",\"cellOf\",\"checkHard\",\"checkInput\",\"checkSelectTable\",\"circleOverlaps\",\"classGenerators\",\"compareRects\",\"composites\",\"consecutiveSquares\",\"consecutiveSquaresFamily\",\"corpus\",\"corpusFamilies\",\"countCell\",\"createContext\",\"dashboard\",\"dashboardFamily\",\"defaultLayoutOf\",\"edgeCases\",\"edgeCasesFamily\",\"fnv1a32\",\"forceStrategy\",\"freeSpace\",\"fromRects\",\"gallery\",\"galleryFamily\",\"gapToOpt\",\"generator\",\"generators\",\"geneticStrategy\",\"guillotine\",\"halfWide\",\"halfWideFamily\",\"hardBreaks\",\"hashInput\",\"holeDegree\",\"hopperTurton\",\"hopperTurtonFamily\",\"hopperTurtonOf\",\"isAnchor\",\"isDeterministic\",\"ladder\",\"ladderFamily\",\"ladderRung\",\"logSweep\",\"lowestWindow\",\"marginOf\",\"martelloVigo\",\"martelloVigoFamily\",\"maxrects\",\"measure\",\"measureChange\",\"measureSeed\",\"medianRatio\",\"mmvBound\",\"moveAnchor\",\"mulberry32\",\"objectiveBound\",\"objectiveResult\",\"outputHash\",\"overlapMinStrategy\",\"pack\",\"packConfig\",\"packDefault\",\"packFree\",\"packGuillotine\",\"packMaxRects\",\"packPortfolio\",\"packRows\",\"packShelf\",\"packSkyline\",\"packSpace\",\"packWith\",\"packWork\",\"packingMetrics\",\"pairedRatio\",\"perfectCut\",\"perfectCutFamily\",\"perfectCutOf\",\"portPoint\",\"portfolioCell\",\"portfolioDefaultMembers\",\"portfolioMembers\",\"portfolioSetOf\",\"portfolioStrategy\",\"push\",\"pushCascade\",\"quantile\",\"rectFeatures\",\"rectGrid\",\"rectGridFamily\",\"rectGridV2\",\"rectGridV2Family\",\"rectScattered\",\"relaxStrategy\",\"restartsStrategy\",\"round3\",\"roundMeasures\",\"rows\",\"ruinRecreateStrategy\",\"selectFeatures\",\"selectLeaf\",\"selectStrategy\",\"shapeStrategies\",\"shelf\",\"skyline\",\"skylineGap\",\"skylineGapFamily\",\"spreadBand\",\"spreadOf\",\"stabilityUnitOf\",\"strategies\",\"strategy\",\"stripGenerators\",\"supportsCell\",\"tabuStrategy\",\"tailShare\",\"tallRow\",\"tallRowFamily\",\"toPackInput\",\"toRects\",\"turnItem\",\"turnPoint\",\"turnPort\",\"turnRegion\",\"unsupportedOf\",\"wallLocks\",\"wallLocksFamily\",\"wordCloud\",\"wordCloudFamily\",\"worstGenerators\"] },\n \"@mark1russell7/quantity\": { version: \"0.2.0\", names: [\"ATOMS\",\"BASES\",\"KINDS\",\"KIND_NAMES\",\"KindOrDerived\",\"QuantityOptions\",\"SPELLINGS\",\"STATISTICS\",\"UnitError\",\"add\",\"atomBySymbol\",\"canonicalUnit\",\"compare\",\"convert\",\"convertExact\",\"convertible\",\"extentSchema\",\"format\",\"formatDuration\",\"formatUnit\",\"isCanonicalUnit\",\"isQuantity\",\"isQuantitySchema\",\"isUnbounded\",\"kindOf\",\"kindOfQuantity\",\"lookupAtom\",\"max\",\"mean\",\"min\",\"parseUnit\",\"quantity\",\"quantitySchema\",\"rationals\",\"round\",\"sameVector\",\"scale\",\"statisticSchema\",\"sub\",\"sum\",\"toNanoseconds\",\"tryParseUnit\",\"unbounded\",\"unitSchema\",\"unknownSchema\",\"valueIn\",\"whyNotConvertible\"] },\n \"@mark1russell7/render-dsl\": { version: \"0.3.0\", names: [\"NO_VALUE\",\"app\",\"chain\",\"checkExpr\",\"evaluate\",\"evaluateIn\",\"formatExpr\",\"isExpr\",\"isExprPart\",\"isLiteral\",\"issuesOf\",\"lit\",\"literalOf\",\"machineOf\",\"objectResolver\",\"opOf\",\"parseExpr\",\"partsOf\",\"plannerOf\",\"record\",\"ref\",\"renderWorld\",\"resolverThing\"] },\n \"@mark1russell7/render-node\": { version: \"0.3.0\", names: [\"MAX_CYCLE_ROUNDS\",\"addNode\",\"batch\",\"defaultDeref\",\"defaultFlow\",\"defaultOps\",\"defaultSplash\",\"defaultTargets\",\"expandNode\",\"fillMany\",\"forkStore\",\"getNode\",\"isPlainObject\",\"nodeStore\",\"readTargets\",\"readValue\",\"readsOf\",\"removeNode\",\"resolveAll\",\"setExpr\",\"setSlot\",\"setValue\",\"storeResolver\",\"toposort\",\"valueEquals\"] },\n \"@mark1russell7/rigor-generators\": { version: \"0.1.0\", names: [\"deriveSeed\",\"fnv1a32\",\"mulberry32\",\"random\",\"randomOf\",\"seedOf\",\"seedsFrom\"] },\n \"@mark1russell7/rigor-statistics\": { version: \"0.1.0\", names: [\"KENDALL_EXACT\",\"Z95\",\"bootstrap\",\"bootstrapClusters\",\"bootstrapMedian\",\"brier\",\"calibration\",\"compareRatios\",\"holm\",\"kendallTau\",\"mean\",\"median\",\"noiseFloor\",\"pairedPermutation\",\"quantile\",\"quantileSorted\",\"ranks\",\"sd\",\"signTest\",\"signTestPower\",\"sorted\",\"spearman\",\"summarize\",\"wilson\"] },\n \"@mark1russell7/service\": { version: \"0.6.3\", names: [\"AMQP_HEADER\",\"BOUND_RULES\",\"Backoff\",\"Behavior\",\"CLOSE_BOUND_RULE\",\"Cancel\",\"Clock\",\"DECLARATION_RULE\",\"DEFAULT_RESTART\",\"DRAIN_RULES\",\"DRAIN_RULE_IDS\",\"DURATION_FRACTIONS\",\"DelayBand\",\"EPISODES_KEPT\",\"EXIT_MACHINE\",\"EXIT_SIGNALS\",\"FORMAT\",\"GATE_MACHINE\",\"GRPC_CLIENT_MACHINE\",\"GRPC_CLIENT_STARTING_KNOBS\",\"GRPC_CLIENT_STARTING_POLL\",\"GRPC_CLIENT_STARTING_WITHOUT_CALLS\",\"GRPC_CODES\",\"GRPC_OPERATIONS\",\"GRPC_STATES\",\"HEALTH_CHECK\",\"HELLO\",\"HTTP2_PREFACE\",\"HTTP_CLIENT_MACHINE\",\"HTTP_CLIENT_STARTING_KNOBS\",\"HTTP_CLIENT_STARTING_POLL\",\"HTTP_OPERATIONS\",\"Heartbeat\",\"HeartbeatOptions\",\"Jitter\",\"LATCH_MACHINE\",\"LAW_STATISTIC\",\"LIMITER_RULES\",\"LIMITER_SCRIPT\",\"LOG_LEVELS\",\"MACHINES\",\"MANIFESTATIONS\",\"MONGO_CLIENT_MACHINE\",\"MONGO_STARTING_KNOBS\",\"MONGO_STARTING_POLL\",\"NAME_RULE\",\"O04\",\"O09\",\"O10\",\"O16\",\"OPTIONS_STAR\",\"PG_CLIENT_MACHINE\",\"PG_STARTING_KNOBS\",\"PG_STARTING_POLL\",\"PLATFORM_MARKS\",\"POLLER_MACHINE\",\"PROBE_KINDS\",\"PROCESS_TRIGGERS\",\"PROGRESS_RULE\",\"PlatformClockOptions\",\"QuietServer\",\"RABBIT_CLIENT_MACHINE\",\"RABBIT_STARTING_KNOBS\",\"RABBIT_STARTING_POLL\",\"REDIS_CLIENT_MACHINE\",\"REDIS_OPERATIONS\",\"SERVICE_RULES\",\"SESSION_CHECK_CLOSE\",\"SLIDING_WINDOW_MACHINE\",\"STAGES\",\"STARTING_POLL\",\"START_MARGIN_MS\",\"STOPS\",\"STOP_RULE\",\"ScriptedCheck\",\"TOKEN_BUCKET_MACHINE\",\"TestLogger\",\"UNCAUGHT_ORIGINS\",\"UNIT_BOUND_RULE\",\"WATCHDOG_MACHINE\",\"WINDOW_MACHINE\",\"WS_CLIENT_MACHINE\",\"WS_CLIENT_STARTING_KNOBS\",\"WS_CLIENT_STARTING_MISSES\",\"WS_CLIENT_STARTING_POLL\",\"WS_OPERATIONS\",\"acquireInstanceLock\",\"adaptGrpc\",\"adaptWs\",\"agentOptions\",\"amqpDial\",\"asDebounce\",\"asWindow\",\"atLeast\",\"backoffBand\",\"backoffDelay\",\"backoffProblems\",\"capKnob\",\"codeName\",\"commandName\",\"compress\",\"compression\",\"compressionOf\",\"consoleLogger\",\"contractCases\",\"cooperativeAbortAt\",\"daemon\",\"decide\",\"deliveryCount\",\"detachedLifecycle\",\"detectionTime\",\"discoveryOf\",\"drainMachine\",\"embeddedProcess\",\"endRecord\",\"ephemeral\",\"evaluate\",\"failSpan\",\"failureOutcome\",\"fakeClock\",\"fakeHost\",\"fakeProcess\",\"firstDetector\",\"freeAt\",\"groupProblems\",\"grpcClient\",\"grpcDial\",\"grpcMeetings\",\"grpcOperations\",\"grpcOptions\",\"grpcOutcome\",\"grpcTarget\",\"handle\",\"healthRequest\",\"healthStatus\",\"heartbeat\",\"heartbeatDetection\",\"helloCommandDial\",\"helloJudge\",\"httpClient\",\"httpClientMeetings\",\"httpDial\",\"httpTransport\",\"idleSpan\",\"inequalities\",\"inspectInstanceLock\",\"installService\",\"ioredis\",\"isExitCode\",\"isExitSignal\",\"isMessageShape\",\"joinPath\",\"keyedLimiter\",\"kubernetes\",\"limitRule\",\"limitedResponse\",\"limiterMachine\",\"limiterProblems\",\"limiterStateOf\",\"lint\",\"lintStop\",\"localDev\",\"lockText\",\"logEvents\",\"longestRetryAfter\",\"matchesMessage\",\"mayReissue\",\"meetings\",\"memoryStore\",\"mongoClient\",\"mongoMeetings\",\"mongoOptions\",\"ndjson\",\"nodeAgent\",\"nodeAmqp\",\"nodeGrpc\",\"nodeHostPorts\",\"nodeMongo\",\"nodePostgres\",\"nodeProcess\",\"nodeWs\",\"optionsRequest\",\"outcomeResponse\",\"parseDiscovery\",\"parseEnvFile\",\"parseLockOwner\",\"pathOf\",\"pgClient\",\"pgMeetings\",\"platformClock\",\"poolOptions\",\"probeHandler\",\"probeOnce\",\"probeProblems\",\"probeResponse\",\"probeServer\",\"processPortOf\",\"queueDrain\",\"quietServer\",\"rabbitClient\",\"rabbitMeetings\",\"rabbitOptions\",\"readDiscovery\",\"readyWait\",\"realClock\",\"recoverSpan\",\"redact\",\"redeliverOnce\",\"redisClient\",\"redisLimiterStore\",\"removeDiscovery\",\"renderSystemdTimer\",\"renderSystemdUnit\",\"renderTaskXml\",\"replay\",\"retrier\",\"retryAfterSeconds\",\"retryBackoff\",\"retryProblems\",\"retrySchedule\",\"rotatingLog\",\"sameProcess\",\"scriptedCheck\",\"seeded\",\"service\",\"serviceBindings\",\"servicePaths\",\"serviceProblems\",\"serviceStatus\",\"sessionCheck\",\"sessionCheckDetection\",\"sessionCheckProblems\",\"settingsJudge\",\"specProblems\",\"sse\",\"sslRequestDial\",\"stageRank\",\"startJudge\",\"startOrder\",\"startService\",\"statusJudge\",\"statusLineJudge\",\"stopService\",\"stopTree\",\"superviseGroup\",\"symbolsOf\",\"systemdArg\",\"tcpDial\",\"testLogger\",\"transportConformance\",\"uninstallService\",\"unwatched\",\"upgradeJudge\",\"upgradeRequest\",\"utf16le\",\"verdictOf\",\"watchdog\",\"windowsArg\",\"workerLoop\",\"writeDiscovery\",\"writeOutcome\",\"wsClient\",\"wsDial\",\"wsMeetings\",\"wsOptions\",\"wsUrl\"] },\n \"@mark1russell7/site-pages\": { version: \"0.1.6\", names: [\"BASE_CSS\",\"DEFAULT_CHANGELOGS\",\"GITHUB_API\",\"GITHUB_GRAPHQL\",\"HELP\",\"NPM_REGISTRY\",\"OPEN_CLASSES\",\"RELEASES_SCRIPT\",\"ReleaseDataError\",\"RoadmapParseError\",\"STATUS_CLASSES\",\"STATUS_SCRIPT\",\"UsageError\",\"build\",\"buildStatusBoard\",\"checkStateOf\",\"classCounts\",\"compareVersions\",\"dayRange\",\"escapeHtml\",\"firstSentence\",\"gitTagDates\",\"githubOpenWork\",\"githubReleases\",\"globFiles\",\"headCommit\",\"headingAnchor\",\"headingDate\",\"inlineMarkdown\",\"isShallow\",\"kindOf\",\"laneCenter\",\"linksOf\",\"longDate\",\"markdownTables\",\"mergeReleases\",\"npmPublishTimes\",\"oldestFirst\",\"openGroups\",\"originRepository\",\"pageShell\",\"parseBuildArgs\",\"parseChangelog\",\"parseRoadmap\",\"parseVersion\",\"plainText\",\"readChangelogs\",\"readReleases\",\"readStatusBoard\",\"releaseBodyEntries\",\"releaseSummary\",\"releasesLead\",\"renderReleasesPage\",\"renderStatusPage\",\"roadmapItems\",\"runCli\",\"safeUrl\",\"sectionsOf\",\"shortDate\",\"slugOf\",\"splitRow\",\"statusClassOf\",\"statusLead\",\"timelineLayout\",\"utcDay\",\"versionOfTag\"] },\n \"@mark1russell7/splay\": { version: \"0.2.0\", names: [\"DataType\",\"Position\",\"RenderContext\",\"Size\",\"TYPE_SYMBOL\",\"ViewerFactory\",\"arrayPath\",\"createRegistry\",\"dispatch\",\"gridLayout\",\"inferType\",\"isDynamic\",\"listLayout\",\"objectPath\",\"pathDepth\",\"resolve\",\"splitLayout\"] },\n \"@mark1russell7/ste-lint\": { version: \"0.1.1\", names: [\"CONFIG_FILE_NAME\",\"ConfigError\",\"DEFAULT_IGNORE\",\"DEFAULT_INCLUDE\",\"DEFAULT_LIMITS\",\"DEFAULT_WORD_LIST\",\"DICTIONARY_ENV\",\"DICTIONARY_FORMAT\",\"Dictionary\",\"DictionaryError\",\"Linter\",\"RULES\",\"RULE_IDS\",\"USAGE\",\"buildLexicon\",\"fileKind\",\"findConfigFile\",\"findFiles\",\"formatJson\",\"formatText\",\"getRule\",\"globToRegExp\",\"isRuleId\",\"lintText\",\"loadConfig\",\"loadDictionary\",\"mergeWordList\",\"parseArgs\",\"parseDictionary\",\"resolveConfig\",\"runCli\",\"summarize\",\"validateConfig\"] },\n \"@mark1russell7/template-cli\": { version: \"0.1.4\", names: [\"template\"] },\n \"@mark1russell7/vex\": { version: \"0.17.2\", names: [\"Addr\",\"AllowsOther\",\"AnyDomain\",\"Arg\",\"ArgInput\",\"ArgValue\",\"ArrayKey\",\"Axis\",\"AxisBody\",\"AxisOpts\",\"CELL_KIND\",\"CallArgs\",\"CallReturn\",\"CallableFns\",\"CellFormulas\",\"CellRef\",\"ChainBase\",\"ChainContext\",\"ChainOf\",\"CompileFn\",\"CompileOptions\",\"DeclaredType\",\"Dependency\",\"Domain\",\"DomainFor\",\"DomainMembers\",\"DomainSpec\",\"DomainValue\",\"ErrorCode\",\"ErrorDetails\",\"ErrorKind\",\"EvalOptions\",\"Expr\",\"ExprOf\",\"ExprTag\",\"ExtContext\",\"ExtHandler\",\"FixedMove\",\"FnCalls\",\"FnDef\",\"FnOp\",\"FnParamKind\",\"FnTable\",\"FreeFn\",\"GridKey\",\"ItemNames\",\"KernelPlan\",\"KernelRunOptions\",\"KeysOfType\",\"KindValue\",\"LIST_OPS\",\"Law\",\"LiftedOp\",\"ListBody\",\"ListChain\",\"ListItem\",\"ListOp\",\"ListOptions\",\"ListOpts\",\"LoopNext\",\"LoopStep\",\"LoopVar\",\"LoopVars\",\"MAX_DOCUMENT_DEPTH\",\"MAX_ITERATIONS\",\"MAX_NESTING\",\"Merge\",\"MethodKeys\",\"Monoid\",\"Move\",\"Names\",\"NoFns\",\"OpNames\",\"OpParams\",\"OpReturn\",\"OpSpec\",\"OpTable\",\"OpsProxy\",\"Optional\",\"OtherMembers\",\"ParamChains\",\"ParamKind\",\"Position\",\"PrimitiveKind\",\"Program\",\"Read\",\"ReduceOpts\",\"ResolvedOp\",\"Result\",\"ReturnKind\",\"Root\",\"RunOptions\",\"SPECIAL_FORMS\",\"Sheet\",\"SheetOptions\",\"SheetRoot\",\"SheetRow\",\"SheetRun\",\"SheetTable\",\"Space\",\"SpaceKind\",\"SpecialForm\",\"TERM_KINDS\",\"Trace\",\"TraceEvent\",\"TraceSink\",\"Traversal\",\"TraversalItem\",\"VEX_WORLD\",\"ValueOf\",\"ValueOfDomain\",\"VexEntry\",\"VexError\",\"VexList\",\"VexOptions\",\"addrExprs\",\"app\",\"applyMove\",\"axes\",\"axisExprs\",\"axisTargets\",\"call\",\"cell\",\"chainResult\",\"children\",\"codeOf\",\"compile\",\"defineDomain\",\"deps\",\"describeType\",\"domainOf\",\"each\",\"evaluate\",\"explain\",\"ext\",\"fail\",\"findMethod\",\"fixAddr\",\"fn\",\"fold\",\"formatError\",\"formatTrace\",\"fromDocument\",\"getOr\",\"index\",\"isAxis\",\"isDepthError\",\"isDocument\",\"isExpr\",\"isFieldName\",\"isFixedAddr\",\"isListOp\",\"isMove\",\"isNone\",\"isOpName\",\"isSome\",\"isStackOverflow\",\"isVexList\",\"iterate\",\"kernelPlan\",\"key\",\"labelOf\",\"let_\",\"liftsAt\",\"listOf\",\"lit\",\"mapResult\",\"matchesKind\",\"monoids\",\"moveExpr\",\"nestingOf\",\"none\",\"offset\",\"ok\",\"origin\",\"other\",\"parent\",\"parse\",\"previewValue\",\"rec\",\"ref\",\"resolveAddr\",\"resolveOp\",\"safeIs\",\"serialize\",\"shapeError\",\"sizeOf\",\"some\",\"space\",\"toDocument\",\"toKernelError\",\"toOptional\",\"toPath\",\"toVexError\",\"toVexResult\",\"traversal\",\"v\",\"vex\",\"vexChecker\",\"vexDefinitions\",\"vexError\",\"vexList\",\"vexMachine\",\"vexSelf\"] },\n \"@mark1russell7/vex-compiler\": { version: \"0.17.2\", names: [\"FALLBACK\",\"createRuntime\",\"emitModule\",\"emitSheetModule\",\"generate\",\"load\",\"tiered\"] },\n \"@mark1russell7/vex-domains\": { version: \"0.17.2\", names: [\"Angle\",\"AngleDomain\",\"AngleOps\",\"BoolDomain\",\"BoolOps\",\"Color\",\"ColorDomain\",\"ColorOps\",\"DateDomain\",\"DateOps\",\"Fn\",\"FnDomain\",\"FnOps\",\"JsonDomain\",\"JsonFieldSchema\",\"JsonItemKind\",\"JsonKind\",\"JsonLeaf\",\"JsonOps\",\"JsonValue\",\"LiftedNDVectorDomain\",\"LiftedNDVectorOps\",\"LocalDate\",\"MAX_DAYS\",\"Maybe\",\"MaybeDomain\",\"MaybeOps\",\"NDVector\",\"NDVectorDomain\",\"NDVectorOps\",\"NumDomain\",\"NumOps\",\"NumRecord\",\"NumRecordDomain\",\"NumRecordOps\",\"SCHEMA_DOMAINS\",\"SCHEMA_PROGRAM\",\"TextDomain\",\"TextOps\",\"Vec2\",\"Vec2Domain\",\"Vec2Ops\",\"XY\",\"XYDomain\",\"XYOps\",\"schemaOf\"] },\n \"@procedures/client\": { version: \"0.46.0\", names: [\"BatchExecutor\",\"BodyError\",\"CIRCUIT_BREAKER_MACHINE\",\"CONSOLE_LOGGER\",\"CONTRACT_COLLECTION\",\"CONTRACT_PATHS\",\"CONTRACT_PRINCIPAL\",\"CONTRACT_TOKEN\",\"CircuitBreakerError\",\"Client\",\"ClientError\",\"CollectionTopicCollisionError\",\"DEADLINE_METADATA_KEY\",\"DEFAULT_FIND_LIMIT\",\"DEFAULT_KEPT_METADATA\",\"DEFAULT_QUERY_OPERATORS\",\"DEFAULT_QUERY_POLICY\",\"DELIVERY_METADATA_KEY\",\"DefaultEventBus\",\"ERROR_CODES\",\"ERROR_REGISTRY\",\"EVENTS_SUBSCRIBE_PATH\",\"ErrorCategory\",\"ErrorSeverity\",\"EventBus\",\"EventPublisher\",\"HIDDEN_ERROR_MESSAGE\",\"HandlerNotFoundError\",\"HttpServerTransport\",\"HttpTransport\",\"IDEMPOTENCY_KEY_METADATA\",\"INFERRED_EFFECTS_METADATA_KEY\",\"IdempotencyCache\",\"InvocationError\",\"LITERAL_KEY\",\"LOCAL_CREDENTIALS\",\"LOCAL_MARKER\",\"LocalTransport\",\"LogStorage\",\"MANIFEST_FORMAT\",\"MAX_DATA_DEPTH\",\"MAX_EXPECTED_VERSION_LENGTH\",\"MAX_IDEMPOTENCY_KEY_LENGTH\",\"MAX_SUBSCRIPTION_TOPICS\",\"MAX_TOPIC_LENGTH\",\"MockTransport\",\"NARROWING_HEADER\",\"NARROWING_METADATA_KEY\",\"NO_ELICITATION_REASON\",\"PARTITION_PATTERN\",\"PRECONDITION_NOT_SUPPORTED\",\"PROCEDURE_JSON_KEY\",\"PROCEDURE_NAME_KEY\",\"PROCEDURE_REGISTRY\",\"PROCEDURE_SYMBOL\",\"PROCEDURE_WHEN_KEY\",\"PROGRAM_WORLD\",\"PROTOCOL_HEADER\",\"PROTOCOL_VERSION\",\"PURE_EFFECTS\",\"PortTransport\",\"ProcedureBuilder\",\"ProcedureRefBuilder\",\"ProcedureRegistry\",\"ProcedureServer\",\"QUERY_OPERATORS\",\"RAW_INPUT_TAG\",\"REGISTRY_READ_EFFECTS\",\"RUNS_REFS_TAG\",\"RateLimitError\",\"RegistryError\",\"RouteResolver\",\"STANDARD_RESOURCES\",\"STREAM_GAP_METADATA_KEY\",\"STREAM_ITEM_METADATA_KEY\",\"STREAM_METADATA_KEY\",\"Semaphore\",\"Server\",\"ServerError\",\"StorageFieldOperators\",\"StoragePatch\",\"StoragePatchOperations\",\"StorageQueryOperator\",\"StorageQueryOptions\",\"StorageQueryPolicy\",\"StorageSelector\",\"StorageSort\",\"StorageSortDirection\",\"SubscriptionError\",\"TIMEOUT_METADATA_KEY\",\"TIMER_DEFAULTS\",\"TRACEPARENT_METADATA_KEY\",\"UNLIMITED_CAPABILITY\",\"VERSION_CONFLICTS_METADATA_KEY\",\"ValidationError\",\"VersionConflictError\",\"WEBSOCKET_CONNECTION_MACHINE\",\"WHEN_IMMEDIATE\",\"WHEN_NEVER\",\"WHEN_PARENT\",\"WebSocketServerTransport\",\"WebSocketState\",\"WebSocketTransport\",\"absorbTimeout\",\"addNarrowing\",\"admitsRow\",\"admittedStorage\",\"allCoreModules\",\"allCoreProcedures\",\"allProcedure\",\"andProcedure\",\"anyProcedure\",\"anySchema\",\"applyPatch\",\"asVersionConflictError\",\"assertValidPath\",\"bearerOf\",\"bodyPathAddressing\",\"buildResponse\",\"bundle\",\"callMatches\",\"callerOf\",\"capabilityRefusal\",\"chainProcedure\",\"checkBrowserRequest\",\"checkEffects\",\"clearRuntimeProcedures\",\"clientCaller\",\"clientModule\",\"collectionChangeTopic\",\"collectionTopicPartition\",\"collectionTopicReads\",\"collectionTopicRule\",\"collectionTopicTarget\",\"compareStorageValues\",\"compileSelector\",\"compose\",\"conditionalProcedure\",\"constantProcedure\",\"contractDescription\",\"cookiesOf\",\"coreModule\",\"coreProcedures\",\"createAndRegister\",\"createApiKeyAuthMiddleware\",\"createAuthMiddleware\",\"createBatchExecutor\",\"createBearerAuthMiddleware\",\"createCacheMiddleware\",\"createChannelPrefix\",\"createCircuitBreakerMiddleware\",\"createCollectionProcedures\",\"createCombinedTimeoutMiddleware\",\"createElicit\",\"createError\",\"createErrorFromException\",\"createErrorFromHTTPStatus\",\"createEventBus\",\"createOverallTimeoutMiddleware\",\"createPaginationMiddleware\",\"createPerServiceRateLimiter\",\"createProcedure\",\"createProcedureServer\",\"createRateLimitMiddleware\",\"createRefScope\",\"createRegistry\",\"createRetryMiddleware\",\"createRoute\",\"createRouteResolver\",\"createSimpleTracingMiddleware\",\"createTimeoutMiddleware\",\"createTracingMiddleware\",\"createTypedCaller\",\"createTypedEventBus\",\"createZodMiddleware\",\"credentialedCors\",\"credentialsOf\",\"deadlineOf\",\"debounceChannel\",\"declaredCalls\",\"decodeSegment\",\"defaultServerUrlStrategy\",\"defaultUrlPattern\",\"defineModule\",\"definePackage\",\"defineProcedure\",\"defineProcedureProcedure\",\"defineStub\",\"deleteProcedureProcedure\",\"deliveryOf\",\"describeIssues\",\"describeProcedureEntry\",\"describeRegistry\",\"describeTransportContract\",\"desugarControlValue\",\"desugarInput\",\"desugarProgram\",\"documentAt\",\"effectsIn\",\"effectsOf\",\"effectsValue\",\"elicitConfirmation\",\"elicitInput\",\"elicitWithPolicy\",\"encodeSegment\",\"examinesNestedCall\",\"executeRef\",\"executeWithConcurrency\",\"explainInvocation\",\"exposeError\",\"exposePatterns\",\"exposedProcedures\",\"extractTemplate\",\"extractTracingInfo\",\"faceRules\",\"filterChannel\",\"flattenRoute\",\"formatError\",\"formatTraceparent\",\"forwardChannel\",\"fromEnvelopeProgram\",\"fromJson\",\"getAllRuntimeProcedures\",\"getErrorMetadata\",\"getGlobalEventBus\",\"getMissingPaths\",\"getProcedureProcedure\",\"getRefName\",\"getRefWhen\",\"getRuntimeProcedure\",\"hasAmbientCredentials\",\"hasCallPolicy\",\"hasRuntimeProcedure\",\"hashOf\",\"hiddenReach\",\"hintImagesOf\",\"hostNameOf\",\"hostPolicy\",\"hostProcedures\",\"hours\",\"httpStatusOf\",\"hydrateInput\",\"idempotencyKeyOf\",\"idempotentIn\",\"identityProcedure\",\"inferredEffectsOf\",\"invalidateCache\",\"invokePath\",\"invokeProcedure\",\"isAnyProcedureRef\",\"isAsyncIterable\",\"isBatchRoute\",\"isCallOptions\",\"isControlFlowPath\",\"isDataDriven\",\"isDestructive\",\"isDuration\",\"isEnvelopeProgram\",\"isExpectedVersion\",\"isKnownError\",\"isKnownErrorCode\",\"isLiteral\",\"isLocalCredentials\",\"isLoopbackAddress\",\"isLoopbackHost\",\"isNotSentError\",\"isOpenWorld\",\"isPatchOperations\",\"isPlainObject\",\"isProcedureRef\",\"isProcedureRefJson\",\"isProtocolErrorCode\",\"isReadOnly\",\"isRepeatable\",\"isRuntimeDefined\",\"isStandardSchema\",\"isUnboundedStream\",\"isValidRoute\",\"isW3cIds\",\"jsonSchemaOf\",\"keyToMethod\",\"keyToPath\",\"ladder\",\"lastResortError\",\"listProceduresProcedure\",\"lookupOutputRef\",\"manifestProcedure\",\"mapChannel\",\"mapProcedure\",\"markDataDriven\",\"matchPath\",\"matchesSelector\",\"mcpCaller\",\"mergeChannels\",\"mergeContext\",\"mergePatch\",\"mergeRoutes\",\"metaProcedures\",\"methodName\",\"methodToKey\",\"methodToPath\",\"metricsInterceptor\",\"minutes\",\"mockBuilder\",\"moduleClosure\",\"ms\",\"nameKey\",\"nameOfKey\",\"namesOfScope\",\"namespace\",\"narrowCapability\",\"narrowDeadline\",\"narrowWithin\",\"narrowingOf\",\"nestedCallRefusal\",\"newIdempotencyKey\",\"newSpanId\",\"newTraceId\",\"noneProcedure\",\"normalizeCallOptions\",\"normalizeRef\",\"notProcedure\",\"observeHydration\",\"operatorAnswer\",\"optionalMs\",\"orProcedure\",\"originOf\",\"outputItems\",\"outputSchema\",\"outputValue\",\"paginateAll\",\"parallelProcedure\",\"parseProcedureJson\",\"parseTraceparent\",\"patchProblems\",\"pathToKey\",\"pathToMethod\",\"postOnlyStrategy\",\"preconditionNotSupported\",\"prepareRootCall\",\"proc\",\"procedureHandler\",\"procedureServerOptions\",\"programMachine\",\"protocolVersionOf\",\"queryEntries\",\"queryOptionsProblems\",\"rawInputRule\",\"readJsonBody\",\"realClock\",\"reduceProcedure\",\"registerClientProcedures\",\"registerModule\",\"registerModules\",\"registerProcedures\",\"remoteEvents\",\"replayTransitions\",\"requestCredentials\",\"resetGlobalEventBus\",\"resilience\",\"resolveOutputRef\",\"restfulHttpMethodStrategy\",\"restoreDeadline\",\"retryableOf\",\"rpcServerUrlStrategy\",\"runControl\",\"runDocument\",\"runOperand\",\"runProgram\",\"runtimeProgramOf\",\"scopeOf\",\"scopeOfNames\",\"seconds\",\"segmentsToTopic\",\"selectorProblems\",\"shouldExecuteRef\",\"streamOutput\",\"stringifyProcedureJson\",\"subscribeRemote\",\"surfaceRule\",\"takesRawInput\",\"throttleChannel\",\"throwProcedure\",\"timeoutInterceptor\",\"toEnvelopeProgram\",\"toJson\",\"toMs\",\"tokenMatches\",\"toolHintOverrideOf\",\"toolHintOverrideRefusal\",\"toolHints\",\"toolHintsOf\",\"topicMatcher\",\"topicToSegments\",\"traceProcedure\",\"tracingInterceptor\",\"tryCatchProcedure\",\"typed\",\"typedAnySchema\",\"untrustedFieldsOf\",\"untrustedText\",\"untrustedTextsOf\",\"upgradeHandler\",\"urlAddressing\",\"validateCalls\",\"validateProcedure\",\"validateSchema\",\"validateSchemaAsync\",\"versionConflict\",\"versionConflicts\",\"versionConflictsOf\",\"withEffects\",\"withEventBusSignal\",\"withHintImages\",\"withScope\",\"withoutSecretHeaders\",\"wrapWithAsyncMiddlewares\",\"wrapWithSyncMiddlewares\",\"writeLog\",\"writeNdjsonStream\",\"writeRemainingTime\",\"zodAdapter\"] },\n \"@procedures/collections\": { version: \"0.46.0\", names: [\"ArrayConvertible\",\"ArrayDeque\",\"ArrayDequeOptions\",\"ArrayList\",\"ArrayListOptions\",\"Async\",\"AsyncEmitter\",\"AsyncOption\",\"AsyncQueue\",\"AsyncQueueOptions\",\"AsyncResult\",\"Asyncify\",\"BiMap\",\"Bounded\",\"BoundedCollection\",\"Channel\",\"CircularList\",\"Clearable\",\"Cloneable\",\"Collection\",\"CollectionBuilder\",\"CollectionEvents\",\"Collector\",\"CompactionPolicy\",\"Compare\",\"ComparisonProvider\",\"ConflictResolutionPolicy\",\"ContractViolation\",\"DEFAULT_CONFLICT_POLICY\",\"DEFAULT_EVICTION_POLICY\",\"DEFAULT_FIND_LIMIT\",\"DEFAULT_GROWTH_POLICY\",\"DEFAULT_OVERFLOW_POLICY\",\"DEFAULT_QUERY_OPERATORS\",\"DEFAULT_QUERY_POLICY\",\"DEFAULT_RETRY_POLICY\",\"DEFAULT_UNDERFLOW_POLICY\",\"DEFAULT_VALIDATION_POLICY\",\"DELETED_FIELD\",\"DequeEvents\",\"Disposable\",\"ElementOf\",\"ElementType\",\"Emitter\",\"Emptiable\",\"Entry\",\"Eq\",\"EqualityProvider\",\"Err\",\"EventBatcher\",\"EventMap\",\"Evented\",\"EvictionCandidate\",\"EvictionMetadata\",\"EvictionPolicy\",\"EvictionSelector\",\"Freezable\",\"GrowthPolicy\",\"Hash\",\"HashMap\",\"HashMapOptions\",\"HashProvider\",\"HashSet\",\"HashSetOptions\",\"InMemoryStorage\",\"IsReadonly\",\"KEY_DIGITS\",\"LAYER_FIELD\",\"LRUCache\",\"LRUOptions\",\"LinkedHashMap\",\"LinkedHashMapOptions\",\"LinkedList\",\"LinkedListOptions\",\"List\",\"ListEvents\",\"Listener\",\"MAX_EXPECTED_VERSION_LENGTH\",\"MapEvents\",\"MapLike\",\"MergeFunction\",\"Middleware\",\"MultiMap\",\"MutableCollectionBase\",\"NavigableMap\",\"NavigableSet\",\"None\",\"Ok\",\"OverflowContext\",\"OverflowHandler\",\"OverflowPolicy\",\"PRECONDITION_NOT_SUPPORTED\",\"PriorityQueue\",\"PriorityQueueOptions\",\"QUERY_OPERATORS\",\"QueueEvents\",\"RandomAccess\",\"Readonly\",\"ReadonlyCollection\",\"ReadonlyCollectionBase\",\"ReadonlyList\",\"ReadonlyMapLike\",\"ReadonlyOptions\",\"ReadonlySet\",\"RetryContext\",\"RetryPolicy\",\"RetryPredicate\",\"SafeCollection\",\"SafeDequeOperations\",\"SafeListOperations\",\"SafeMapOperations\",\"SafeQueueOperations\",\"SelectCase\",\"Set\",\"Sized\",\"Some\",\"SortedMap\",\"SortedSet\",\"Stack\",\"StorageListeners\",\"SummaryStatistics\",\"TTLCache\",\"TTLOptions\",\"TreeMap\",\"TreeMapOptions\",\"TreeSet\",\"TreeSetOptions\",\"UNSET\",\"UnderflowContext\",\"UnderflowHandler\",\"UnderflowPolicy\",\"UndoConflictError\",\"UndoLog\",\"Unsubscribe\",\"VERSION_CONFLICTS_METADATA_KEY\",\"ValidationContext\",\"ValidationHandler\",\"ValidationPolicy\",\"Vector\",\"VersionConflictError\",\"WeakMapLike\",\"WithCapability\",\"ambient\",\"applyPatch\",\"arrayContains\",\"arrayDeque\",\"arrayIterator\",\"arrayList\",\"arrayRemove\",\"arrayRemoveAll\",\"asSettled\",\"asVersionConflictError\",\"asyncQueue\",\"average\",\"averagingNumber\",\"blockMethods\",\"booleanCompare\",\"bounded\",\"boundedDeque\",\"boundedList\",\"boundedMap\",\"boundedQueue\",\"buffered\",\"buildList\",\"buildMap\",\"bundle\",\"channel\",\"checkBounds\",\"checkInsertBounds\",\"checkRangeBounds\",\"chunk\",\"clamp\",\"collect\",\"collectToArray\",\"collectToList\",\"collectToMap\",\"collectToSet\",\"collectionStorageContract\",\"combineHashes\",\"compareKeys\",\"compareStorageValues\",\"comparing\",\"comparingKey\",\"compileSelector\",\"compose\",\"concat\",\"contractVersionOf\",\"copyAsPatch\",\"count\",\"counting\",\"createEmitter\",\"dateCompare\",\"deepEq\",\"deepEqual\",\"defaultCompare\",\"defaultEq\",\"defaultHash\",\"delegate\",\"describeCollectionStorageContract\",\"distinct\",\"distinctConsecutive\",\"dropIndex\",\"emptyList\",\"emptyMap\",\"emptyQueue\",\"enhanceMethod\",\"enumerate\",\"eqBy\",\"evented\",\"eventedDeque\",\"eventedList\",\"eventedMap\",\"eventedQueue\",\"every\",\"fanIn\",\"fanOut\",\"filter\",\"filtering\",\"find\",\"findIndex\",\"findLastIndex\",\"fingerprintOf\",\"first\",\"flatMap\",\"flatMapOption\",\"flatMapResult\",\"flatMapping\",\"flatten\",\"forwardEvent\",\"fromNullable\",\"getOrElse\",\"getOrElseResult\",\"groupBy\",\"groupingBy\",\"groupingByWith\",\"hasCapability\",\"hashBy\",\"hashMap\",\"hashNumber\",\"hashSet\",\"hashString\",\"immutableListOf\",\"immutableMapOf\",\"interceptMethods\",\"inversePatch\",\"isErr\",\"isExpectedVersion\",\"isNone\",\"isOk\",\"isPatchOperations\",\"isSome\",\"isUnset\",\"isValidKey\",\"iterToMap\",\"joining\",\"keyBetween\",\"keysBetween\",\"keysForDrop\",\"last\",\"linkedHashMap\",\"linkedList\",\"listOf\",\"lruCache\",\"lruMap\",\"map\",\"mapAsyncOption\",\"mapAsyncResult\",\"mapError\",\"mapOf\",\"mapOption\",\"mapResult\",\"mapping\",\"matchesSelector\",\"max\",\"maxBy\",\"merge\",\"mergeCopies\",\"mergePatch\",\"min\",\"minBy\",\"mutableListOf\",\"mutableMapOf\",\"nCopies\",\"none\",\"normalizeStorageResult\",\"nullsFirst\",\"nullsLast\",\"numberCompare\",\"onWhen\",\"optionToResult\",\"partition\",\"partitioningBy\",\"patchProblems\",\"pipe\",\"pipeline\",\"preconditionNotSupported\",\"priorityQueue\",\"queryEntries\",\"queryOptionsProblems\",\"queueOf\",\"range\",\"rangeTo\",\"readWriteLock\",\"readonly\",\"readonlyCollection\",\"readonlyList\",\"readonlyMap\",\"readonlyQueue\",\"reduce\",\"reducing\",\"reducingWith\",\"reentrantSynchronized\",\"reportListenerError\",\"requireNonEmpty\",\"requireNonNull\",\"resolveStacks\",\"resultToOption\",\"reverse\",\"reverseArrayIterator\",\"reversed\",\"safe\",\"safeDeque\",\"safeList\",\"safeMap\",\"safeQueue\",\"scan\",\"select\",\"selectorProblems\",\"sequence\",\"sequenceResults\",\"shallowEq\",\"singletonList\",\"singletonMap\",\"skip\",\"skipWhile\",\"some\",\"sort\",\"stackOf\",\"stringCompare\",\"stringCompareIgnoreCase\",\"stringHashCode\",\"sum\",\"summarizingNumber\",\"summingNumber\",\"synchronized\",\"synchronizedCollection\",\"synchronizedList\",\"synchronizedMap\",\"synchronizedSet\",\"take\",\"takeWhile\",\"tap\",\"teeing\",\"thenComparing\",\"ticker\",\"timeout\",\"toArray\",\"toList\",\"toMap\",\"toNullable\",\"toSet\",\"treeMap\",\"treeSet\",\"tryCatch\",\"tryCatchAsync\",\"ttlCache\",\"ttlCollection\",\"ttlMap\",\"unbuffered\",\"unmodifiableCollection\",\"unmodifiableList\",\"unmodifiableMap\",\"unwrap\",\"unwrapResult\",\"versionConflict\",\"versionConflicts\",\"versionConflictsOf\",\"window\",\"workerPool\",\"zip\"] },\n \"@procedures/compiler\": { version: \"0.46.0\", names: [\"CallExplanationOutput\",\"CapabilityInput\",\"CapabilityInputSchema\",\"CompiledProgram\",\"EffectsOutput\",\"MAX_REF_DEPTH\",\"NO_EFFECTS\",\"OPENRPC_VERSION\",\"ParallelResult\",\"ProgramCheckInput\",\"ProgramCheckInputSchema\",\"ProgramCheckOutput\",\"ProgramCheckOutputSchema\",\"ProgramCompileInput\",\"ProgramCompileInputSchema\",\"ProgramCompileOutput\",\"ProgramCompileOutputSchema\",\"ProgramContext\",\"ProgramDiagramInput\",\"ProgramDiagramInputSchema\",\"ProgramDiagramOutput\",\"ProgramDiagramOutputSchema\",\"ProgramExplainInput\",\"ProgramExplainInputSchema\",\"ProgramExplainOutput\",\"ProgramExplainOutputSchema\",\"RuntimeFrame\",\"SdkInput\",\"SdkOpenrpcInput\",\"SdkOpenrpcInputSchema\",\"SdkOpenrpcOutput\",\"SdkOpenrpcOutputSchema\",\"SdkTypescriptInput\",\"SdkTypescriptInputSchema\",\"SdkTypescriptOutput\",\"SdkTypescriptOutputSchema\",\"UNKNOWN_EFFECTS\",\"bindScopes\",\"call\",\"callRaw\",\"checkCalls\",\"checkProgram\",\"checkShape\",\"childPointer\",\"childrenOf\",\"compileClosure\",\"compileProgram\",\"compilerModule\",\"coreProcedureOf\",\"deferred\",\"diagramProgram\",\"emitText\",\"entryTakesRawInput\",\"execWithInput\",\"explainProgram\",\"fail\",\"findDefinitions\",\"foldProgram\",\"get\",\"hasErrors\",\"inferEffects\",\"isCallLike\",\"isControl\",\"items\",\"manifestFacts\",\"merge\",\"mermaidText\",\"message\",\"nameDiagnostics\",\"normalize\",\"object\",\"parallel\",\"printIR\",\"programCheckInterceptor\",\"programModule\",\"registerCompilerProcedures\",\"registryFacts\",\"resolveScopes\",\"schemaToType\",\"scope\",\"shapeOf\",\"sortDiagnostics\",\"toCapability\",\"toEffects\",\"toMermaid\",\"toOpenRpc\",\"toTypeScriptSdk\",\"truthy\",\"unknownName\",\"walk\",\"withDefinitions\"] },\n \"@procedures/dag\": { version: \"0.46.0\", names: [\"DagTraverseInputSchema\",\"DagTraverseOutputSchema\",\"buildLeveledDAG\",\"buildNodeMap\",\"callsGit\",\"createNode\",\"createProcessor\",\"dagModule\",\"dagTraverse\",\"executeDAG\",\"executeDAGSequential\",\"filterDAGFromRoot\",\"getAncestors\",\"getDescendants\",\"getTopologicalOrder\",\"keyedLock\",\"packageNodes\",\"registerDagProcedures\",\"repositoryRoot\",\"visualizeDAG\"] },\n \"@procedures/env\": { version: \"0.46.0\", names: [\"DEFAULT_ENV_SETTINGS\",\"DEFAULT_SECRET_PATTERNS\",\"EnvCheckInput\",\"EnvCheckOutput\",\"EnvGetInput\",\"EnvGetOutput\",\"EnvListEntry\",\"EnvListInput\",\"EnvListOutput\",\"EnvModuleOptions\",\"EnvSource\",\"createEnvModule\",\"envCheck\",\"envGet\",\"envList\",\"envModule\",\"isDefaultSecret\",\"registerEnvProcedures\",\"secretMatcher\"] },\n \"@procedures/fs\": { version: \"0.46.0\", names: [\"ConfinedFs\",\"FsModuleOptions\",\"KeyedLock\",\"NDJSON_LINE_TOO_LONG\",\"OUTSIDE_ROOT\",\"ResolvedRoot\",\"confineFsProcedures\",\"confineToRoot\",\"copy\",\"createFsModule\",\"editFile\",\"exists\",\"fsHash\",\"fsModule\",\"fsTemp\",\"fsWatch\",\"fsWriteJson\",\"glob\",\"healNdjsonTail\",\"healNdjsonTailSync\",\"inRoot\",\"isInside\",\"isOutsideRoot\",\"mkdir\",\"move\",\"outsideRoot\",\"read\",\"readJson\",\"readdir\",\"realPathIsInside\",\"realPathOf\",\"registerFsProcedures\",\"resolveRoot\",\"rm\",\"rootDecisionOf\",\"rootRulesOf\",\"stat\",\"withLock\",\"write\",\"writeFileAtomic\",\"writeFileAtomicSync\"] },\n \"@procedures/gh\": { version: \"0.46.0\", names: [\"GhApiFieldValue\",\"GhApiInput\",\"GhApiMethod\",\"GhApiOutput\",\"GhCommonInput\",\"GhCreatedOutput\",\"GhIssueCommentInput\",\"GhIssueCommentOutput\",\"GhIssueCreateInput\",\"GhIssueCreateOutput\",\"GhIssueListInput\",\"GhIssueListOutput\",\"GhIssueViewInput\",\"GhIssueViewOutput\",\"GhItemOutput\",\"GhListOutput\",\"GhPrChecksInput\",\"GhPrChecksOutput\",\"GhPrCreateInput\",\"GhPrCreateOutput\",\"GhPrListInput\",\"GhPrListOutput\",\"GhPrViewInput\",\"GhPrViewOutput\",\"GhReleaseListInput\",\"GhReleaseListOutput\",\"GhReleaseViewInput\",\"GhReleaseViewOutput\",\"GhRunDownloadInput\",\"GhRunDownloadOutput\",\"GhRunListInput\",\"GhRunListOutput\",\"GhRunRerunInput\",\"GhRunRerunOutput\",\"GhRunViewInput\",\"GhRunViewOutput\",\"GhWorkflowRunInput\",\"GhWorkflowRunOutput\",\"ghModule\",\"registerGhProcedures\"] },\n \"@procedures/git\": { version: \"0.46.0\", names: [\"GitError\",\"classifyStatus\",\"git\",\"gitAdd\",\"gitBlame\",\"gitBranch\",\"gitBranchAdd\",\"gitBranchDelete\",\"gitBranchList\",\"gitCheckout\",\"gitClone\",\"gitCommit\",\"gitDiff\",\"gitFetch\",\"gitInit\",\"gitLog\",\"gitMerge\",\"gitMergeAbort\",\"gitModule\",\"gitPull\",\"gitPush\",\"gitRebase\",\"gitRebaseAbort\",\"gitRebaseContinue\",\"gitRemote\",\"gitRemoteSet\",\"gitReset\",\"gitRestore\",\"gitRevParse\",\"gitShow\",\"gitStashApply\",\"gitStashDrop\",\"gitStashExport\",\"gitStashImport\",\"gitStashList\",\"gitStashPop\",\"gitStashPush\",\"gitStatus\",\"gitTagAdd\",\"gitTagDelete\",\"gitTagList\",\"gitWorktreeAdd\",\"gitWorktreeList\",\"gitWorktreeRemove\",\"parseNumstat\",\"parsePorcelainV1\",\"registerGitProcedures\"] },\n \"@procedures/http\": { version: \"0.46.0\", names: [\"DEFAULT_HOST_POLICY\",\"DEFAULT_ITEM_BYTES\",\"DEFAULT_MAX_BYTES\",\"DEFAULT_SETTINGS\",\"DEFAULT_TIMEOUT_MS\",\"HOST_NOT_ALLOWED\",\"HttpError\",\"HttpJsonInput\",\"HttpJsonOutput\",\"HttpMethod\",\"HttpModuleOptions\",\"HttpNdjsonInput\",\"HttpNdjsonOutput\",\"HttpRequestInput\",\"HttpRequestOutput\",\"HttpSseInput\",\"HttpSseOutput\",\"HttpStreamInput\",\"HttpTarget\",\"JsonValue\",\"checkHost\",\"createHostFetch\",\"createHostPolicy\",\"createHttpModule\",\"httpJson\",\"httpModule\",\"httpNdjson\",\"httpRequest\",\"httpSettings\",\"httpSse\",\"isHostNotAllowed\",\"isPublicAddress\",\"ndjsonLines\",\"parseAddress\",\"registerHttpProcedures\",\"specialClass\",\"sseEvents\",\"systemResolver\"] },\n \"@procedures/json\": { version: \"0.46.0\", names: [\"CsvParseInput\",\"CsvParseOutput\",\"CsvStringifyInput\",\"CsvStringifyOutput\",\"JsonDiffInput\",\"JsonDiffOutput\",\"JsonError\",\"JsonMergeInput\",\"JsonMergeOutput\",\"JsonPatchInput\",\"JsonPatchOutput\",\"JsonQueryInput\",\"JsonQueryOutput\",\"JsonValidateInput\",\"JsonValidateOutput\",\"NOT_EXAMINED\",\"PROTOTYPE_KEYS\",\"YamlParseInput\",\"YamlParseOutput\",\"YamlStringifyInput\",\"YamlStringifyOutput\",\"applyPatch\",\"arrayIndex\",\"assertJson\",\"cloneJson\",\"csvParse\",\"csvStringify\",\"diffJson\",\"escapeToken\",\"formatPointer\",\"jsonDiff\",\"jsonEqual\",\"jsonMerge\",\"jsonModule\",\"jsonPatch\",\"jsonQuery\",\"jsonValidate\",\"lookup\",\"mergePatch\",\"parseCsv\",\"parsePath\",\"parsePointer\",\"parseYaml\",\"queryPath\",\"registerJsonProcedures\",\"stringifyCsv\",\"stringifyYaml\",\"validateJson\",\"yamlParse\",\"yamlStringify\"] },\n \"@procedures/mcp-server\": { version: \"0.46.0\", names: [\"DEFAULT_ELICIT_TIMEOUT_MS\",\"DEFAULT_SERVE_BUNDLE\",\"DEFAULT_UNTRUSTED_TAG\",\"MCP_HTTP_LIMITS\",\"MCP_TASK_LIMITS\",\"McpServerTransport\",\"McpTaskStore\",\"assertLoopbackBind\",\"createMcpHost\",\"createSseTransport\",\"createStdioTransport\",\"createUntrustedEnvelopes\",\"decodePath\",\"defaultUntrustedNotice\",\"encodePath\",\"exposeRule\",\"guardMcpRequest\",\"importBundles\",\"mcpExposeRule\",\"mcpFace\",\"mcpListToolsProcedure\",\"mcpModule\",\"mcpServeProcedure\",\"mcpTaskShareKey\",\"mergeSurfaces\",\"prepareServe\",\"procedureToMcpTool\",\"proceduresToMcpTools\",\"redirectConsoleToStderr\",\"registerMcpProcedures\",\"resolveBundleRegister\",\"taskSupportOf\"] },\n \"@procedures/npm\": { version: \"0.46.0\", names: [\"NpmCommandOutput\",\"NpmCommandOutputSchema\",\"NpmDeprecateInput\",\"NpmDeprecateInputSchema\",\"NpmDeprecateOutput\",\"NpmDeprecateOutputSchema\",\"NpmDistTagsAddInput\",\"NpmDistTagsAddInputSchema\",\"NpmDistTagsAddOutput\",\"NpmDistTagsAddOutputSchema\",\"NpmDistTagsListInput\",\"NpmDistTagsListInputSchema\",\"NpmDistTagsListOutput\",\"NpmDistTagsListOutputSchema\",\"NpmDistTagsRemoveInput\",\"NpmDistTagsRemoveInputSchema\",\"NpmDistTagsRemoveOutput\",\"NpmDistTagsRemoveOutputSchema\",\"NpmJsonOutput\",\"NpmJsonOutputSchema\",\"NpmPackInput\",\"NpmPackInputSchema\",\"NpmPackOutput\",\"NpmPackOutputSchema\",\"NpmViewInput\",\"NpmViewInputSchema\",\"NpmViewOutput\",\"NpmViewOutputSchema\",\"NpmWhoamiInput\",\"NpmWhoamiInputSchema\",\"NpmWhoamiOutput\",\"NpmWhoamiOutputSchema\",\"npmDeprecate\",\"npmDistTagsAdd\",\"npmDistTagsList\",\"npmDistTagsRemove\",\"npmModule\",\"npmPack\",\"npmView\",\"npmWhoami\",\"parseDistTags\",\"registerNpmProcedures\",\"resolveNpm\"] },\n \"@procedures/peer\": { version: \"0.46.0\", names: [\"HOST_PROBE_PREFIX\",\"LOCAL_LISTENER_KNOBS\",\"LockfileData\",\"LockfileHandle\",\"PEER_PROFILE\",\"callOperations\",\"checkServer\",\"connect\",\"createPeer\",\"createProcedureHost\",\"disconnect\",\"discoveryAnnounceProcedure\",\"exposeRule\",\"faceHandler\",\"findServer\",\"generateJson\",\"generateJsonString\",\"generateTypeScript\",\"getActivePeerIds\",\"getConnection\",\"getConnectionIds\",\"getMarkDir\",\"getPeer\",\"getProcedureInfos\",\"getServersDir\",\"httpFace\",\"httpTracker\",\"localFace\",\"lockfileHandle\",\"manifestGenerateProcedure\",\"operationOfCall\",\"peerHostOptions\",\"procedures\",\"readAllLockfiles\",\"readLockfileForPort\",\"registerServerProcedures\",\"removeLockfileForPort\",\"serverCallProcedure\",\"serverConnectProcedure\",\"serverConnectionsProcedure\",\"serverCreateProcedure\",\"serverDisconnectProcedure\",\"serverModule\",\"watchProcedures\",\"writeLockfile\",\"wsFace\"] },\n \"@procedures/shell\": { version: \"0.46.0\", names: [\"CliToolError\",\"DEFAULT_MAX_OUTPUT_BYTES\",\"FLAG_NAME\",\"FOLLOW_BUFFER_BYTES\",\"FakeShell\",\"FakeShellInput\",\"FakeShellOptions\",\"FakeShellResult\",\"FakeShellResults\",\"ProcessRegistry\",\"ShellExecInputSchema\",\"ShellRunInputSchema\",\"ShellStreamInputSchema\",\"ShellWhichInputSchema\",\"buildArgv\",\"cliArg\",\"cliToolJsonOutputSchema\",\"cliToolOutputFields\",\"cliToolOutputSchema\",\"defineCliTool\",\"execPathProgram\",\"fakeShell\",\"findInPath\",\"killTree\",\"nodeScript\",\"parseJsonDocument\",\"parseJsonOutput\",\"processes\",\"registerShellProcedures\",\"runCommand\",\"shellExec\",\"shellModule\",\"shellRun\",\"shellStream\",\"shellWhich\",\"streamCommand\"] },\n \"async-browser-context\": { version: \"0.2.4\", names: [\"AsyncContext\",\"AsyncContextManager\",\"AsyncContextPluginOptions\",\"AsyncLocalStorage\",\"AsyncSnapshot\",\"AsyncVariable\",\"DEFAULT_RUNTIME\",\"METADATA_KEY\",\"ModuleFilter\",\"OverloadYield\",\"PresetOptions\",\"Snapshot\",\"Variable\",\"addCallbackHook\",\"asyncContext\",\"asyncGenerator\",\"bindGenerator\",\"coroutine\"] },\n \"ireko\": { version: \"0.1.2\", names: [\"AnyStrategy\",\"ArrangeInput\",\"Arrangement\",\"AuditInput\",\"BUILTIN_STRATEGY_NAMES\",\"Band\",\"ChildEdge\",\"Context2D\",\"Direction\",\"EdgeSpec\",\"Example\",\"Fit\",\"FlowNodeSpec\",\"GroupNode\",\"IrekoEdge\",\"IrekoEdgeData\",\"IrekoError\",\"IrekoNode\",\"IrekoNodeData\",\"Issue\",\"IssueCode\",\"KEYWORDS\",\"LABEL_SCALE\",\"Layout\",\"LayoutFlowOptions\",\"LayoutInput\",\"LayoutOptions\",\"LayoutRef\",\"LayoutSvg\",\"LayoutSvgProps\",\"LayoutView\",\"LayoutViewProps\",\"LayoutWithOptions\",\"MeasuredChild\",\"Mode\",\"NodeSpec\",\"PlacedEdge\",\"PlacedNode\",\"PolylineEdge\",\"RendererKind\",\"Screen\",\"Severity\",\"Shape\",\"Strategy\",\"SvgOptions\",\"ToXYFlowOptions\",\"TraceEvent\",\"TreeEdges\",\"avoid\",\"borderPoint\",\"builder\",\"builtinRouters\",\"builtinStrategies\",\"canvasSurface\",\"centerOf\",\"clipRoots\",\"contains\",\"createEngine\",\"createViewport\",\"darkTheme\",\"defaultLimits\",\"defaultsOf\",\"defineRouter\",\"defineStrategy\",\"domSurface\",\"drawFrame\",\"easeInOut\",\"edgeTypes\",\"estimateWidth\",\"examples\",\"fitText\",\"frameOf\",\"grid\",\"gridStrategy\",\"haloOf\",\"inflate\",\"interpolate\",\"isContainer\",\"labelAt\",\"layers\",\"layersStrategy\",\"layout\",\"layoutFlow\",\"lightTheme\",\"morph\",\"mount\",\"mountCanvas\",\"mountDom\",\"mountSvg\",\"node\",\"nodeTypes\",\"orthogonal\",\"overlaps\",\"paintOrder\",\"parse\",\"pathOf\",\"pickIn\",\"print\",\"radial\",\"radialStrategy\",\"rectAt\",\"resample\",\"straight\",\"svgSurface\",\"themeOf\",\"toSVG\",\"toXYFlow\",\"translate\",\"tree\",\"treeStrategy\",\"union\",\"unionAll\",\"useLayout\",\"widthOfCanvas\"] },\n \"page-lifecycle-tracker\": { version: \"0.1.0\", names: [\"PageLifecycle\",\"createPageLifecycle\",\"eventTime\",\"getPageLifecycle\",\"isVisibleState\",\"resetSharedPageLifecycle\",\"summarizeTransitions\"] },\n \"polite-crawler\": { version: \"0.2.4\", names: [\"ALLOW_ALL\",\"AiInput\",\"BOT_PAGE\",\"CAPTURE_SCHEMA\",\"CHUNK_LIMITS\",\"CRAWL_LIMITS\",\"CaptureLog\",\"Classified\",\"Clock\",\"Crawler\",\"DAEMON_DEFAULTS\",\"DAEMON_STATE_SCHEMA\",\"DAYS\",\"DEADLINE_NOTE\",\"DEFAULT_POLICY\",\"DEFAULT_SECRET_PARAMS\",\"DEFAULT_TOKEN\",\"DIFF_LIMITS\",\"DISALLOW_ALL\",\"DISCOVER_LIMITS\",\"Day\",\"DocIndex\",\"DomNode\",\"EgressRefused\",\"Extractors\",\"FAST_RANK_SHARE\",\"FIELD_KINDS\",\"FileBlobStore\",\"HELD_BACK\",\"HTML_ROBOTS\",\"HYBRID_DEFAULTS\",\"HostCounts\",\"HostResult\",\"HostScheduler\",\"HostStateStore\",\"HostStop\",\"HostStopped\",\"Hours\",\"HoursComparison\",\"Interval\",\"KEY_DIRECTORY_PATH\",\"KEY_DIRECTORY_TYPE\",\"MAX_STOP_MS\",\"MemoryHostStateStore\",\"NO_EMBEDDER\",\"NO_OLLAMA\",\"NO_PLAYWRIGHT\",\"NO_SIGNALS\",\"NO_TRANSFORMERS\",\"OLLAMA_MODELS\",\"Outcome\",\"PRODUCT_LIMITS\",\"Paced\",\"PageExtract\",\"PageLink\",\"PolicyOptions\",\"PolitenessPolicy\",\"RECIPE_LIMITS\",\"RESERVED_RECIPES\",\"ROBOTS_MAX_BYTES\",\"RenderRefused\",\"Rest\",\"RestInput\",\"Robots\",\"RobotsDecision\",\"RobotsGroup\",\"RobotsRule\",\"RobotsSignal\",\"SITEMAP_LIMITS\",\"STOPS_HOST\",\"SchedulerOptions\",\"Signals\",\"SqliteHostStateStore\",\"TRANSFORMERS_MODELS\",\"VALIDATOR_MEMO\",\"VECTORS_SCHEMA\",\"VENUE_LIMITS\",\"VERSION\",\"ValidatorAnswer\",\"ValidatorLimits\",\"ValidatorMemo\",\"ValidatorReport\",\"ValidatorVerdict\",\"VectorStore\",\"WATCH_LIMITS\",\"WATCH_SCHEMA\",\"WatchStore\",\"Week\",\"archiveExtractor\",\"archivedDocId\",\"backoffMs\",\"bodyEncoding\",\"browserMissing\",\"canonicalUrl\",\"catchUpIndex\",\"changeCommand\",\"checkFields\",\"checkPolicy\",\"chunkText\",\"chunkTokensOf\",\"classify\",\"compareHours\",\"crawlSite\",\"createHybridSearch\",\"createRuntime\",\"createWebBotAuthSigner\",\"daemonStateFile\",\"dayRange\",\"decide\",\"decodeBody\",\"defaultUserAgent\",\"defineRecipe\",\"describeWeek\",\"diffDocument\",\"diffTexts\",\"disagreements\",\"discoverSite\",\"durationMs\",\"egressLookup\",\"equalJitterMs\",\"estimateTokens\",\"exportWacz\",\"exportWarc\",\"extractDocument\",\"extractPage\",\"feedDate\",\"fetchAndIndex\",\"fetchPage\",\"findDocuments\",\"formatDiff\",\"fromCompact\",\"fromSchemaOrg\",\"fromText\",\"fuseRanks\",\"heldBackMeta\",\"isClientError\",\"isHeldBack\",\"isHtmlRobots\",\"isLoopback\",\"isMailbox\",\"isPdf\",\"isProductToken\",\"isoTime\",\"keyDirectory\",\"locate\",\"locationMatches\",\"makeRecord\",\"matchesPattern\",\"metaSignals\",\"namesVenue\",\"nextValidatorMemo\",\"normalizePath\",\"ollamaEmbedder\",\"openCrawler\",\"parseHttpDate\",\"parseRetryAfter\",\"parseRobots\",\"pickProduct\",\"pickVariant\",\"playwrightRenderer\",\"policyFor\",\"productOf\",\"productToken\",\"rankHoursLinks\",\"readAmount\",\"readDaemonState\",\"readDocument\",\"readJson\",\"readJsonLd\",\"readPdf\",\"readProduct\",\"readRange\",\"readSignals\",\"readSitemap\",\"readVenue\",\"realClock\",\"recordOverride\",\"registerRecipe\",\"reindex\",\"restAfter\",\"robotsFromResponse\",\"robotsFromStatus\",\"runRecipe\",\"runWatch\",\"scheduleWatches\",\"signalsFor\",\"startDaemon\",\"toHoursWeek\",\"transformersEmbedder\",\"typesOf\",\"unitVector\",\"unreachableRobots\",\"validatorsToSend\",\"venueReadingsOf\",\"verifyQuote\",\"verifySignature\",\"versionAtTime\",\"visibleText\"] },\n \"polite-crawler-mcp\": { version: \"0.2.4\", names: [\"INSTRUCTIONS\",\"MCP_HTTP_DEFAULTS\",\"McpTaskStore\",\"SERVER_NAME\",\"VERSION\",\"checkToken\",\"crawlContent\",\"crawlHostOptions\",\"crawlTools\",\"createMcpServer\",\"makeToken\",\"mcpHttpHost\",\"sameToken\",\"serveMcpHttp\",\"startMcpHttpServer\",\"startMcpServer\"] },\n};\n","// The map of homes: for each area of code, the one package where that code lives.\nimport { readFileSync } from \"node:fs\";\n\n/** The state of a home: on npm, in a repository but not on npm, only on a roadmap, or with no package. */\nexport type HomeState = \"published\" | \"unpublished\" | \"planned\" | \"none\";\n\n/** One area of code and its home. */\nexport interface Home {\n /** The id of the area, in kebab case. */\n readonly area: string;\n /** The area in a few plain words. */\n readonly title: string;\n /** The code that belongs in the home. */\n readonly covers: string;\n /** The packages of the home. A planned home has no package yet. */\n readonly packages: readonly string[];\n /** The repository of the home, as owner/name. */\n readonly repo: string;\n /** The state of the home. */\n readonly state: HomeState;\n /** More words that find the area in a search. */\n readonly words: readonly string[];\n /**\n * The names of the functions that only the home has: each is a regular expression of a whole name, for example `median(Of)?`.\n * The rule home-package of conventions breaks on a new function with such a name in another repository. Names that many\n * areas use (for example `parse` or `record`) are not signatures: they give false breaks.\n */\n readonly signatures?: readonly string[];\n /** A note: the code that goes to another home, or a known split. */\n readonly note?: string;\n}\n\n/** The rule of the map. Each session and each review applies it. */\nexport const MAP_RULE =\n \"Before you write a helper, find its home in this map. If the home does not have the function, add it to the home, in a pull request of the home repository. Do not make a local copy, a new package or a new repository for an area that has a home: that needs the strategist. A home that is not on npm is used with workspace:* or a github: specifier pinned to a commit. If no area fits, ask the strategist for a home before you write the code.\";\n\n/** The public homes. Each package of the fleet that other code can use has one area. */\nexport const HOMES: readonly Home[] = [\n {\n area: \"statistics\",\n title: \"Statistics\",\n covers: \"quantiles, medians, means, SD, bootstrap intervals, sign and permutation tests, Holm, Wilson, Brier, calibration, correlation, noise floors\",\n packages: [\"@mark1russell7/rigor-statistics\"],\n repo: \"mark1russell7/rigor\",\n state: \"published\",\n words: [\"stats\", \"quantile\", \"median\", \"mean\", \"percentile\", \"bootstrap\", \"interval\", \"confidence\", \"p-value\", \"brier\", \"wilson\", \"holm\", \"spearman\", \"kendall\", \"noise\", \"stddev\", \"variance\", \"resample\", \"resampling\", \"bonferroni\", \"regression\", \"histogram\", \"pvalue\", \"significance\", \"welch\", \"ttest\", \"mann\", \"whitney\", \"pearson\", \"correlation\"],\n signatures: [\"quantiles?\", \"percentiles?\", \"median(Of)?\", \"std[Dd]ev\", \"standardDeviation\", \"variance\", \"bootstrap(?:Median|Mean|Interval|Ci|CI|Quantile|Percentile|Ratio|Diff|Difference|Samples?|Resamples?)?\", \"wilson[A-Za-z0-9]*\", \"holm[A-Za-z0-9]*\", \"brier[A-Za-z0-9]*\", \"spearman[A-Za-z0-9]*\", \"kendall[A-Za-z0-9]*\", \"signTest\", \"pairedPermutation\", \"permutationTest\", \"noiseFloor\", \"iqr\"],\n },\n {\n area: \"random\",\n title: \"Seeded random and generated inputs\",\n covers: \"seeded random numbers, seeds from names, hashes for seeds, draws, input families with dimensions and ranges\",\n packages: [\"@mark1russell7/rigor-generators\"],\n repo: \"mark1russell7/rigor\",\n state: \"published\",\n words: [\"seed\", \"prng\", \"mulberry32\", \"fnv\", \"hash\", \"shuffle\", \"sample\", \"fixture\", \"generator\", \"random\", \"rng\", \"seeded\", \"xorshift\", \"splitmix\", \"latin\", \"hypercube\", \"saltelli\", \"sobol\", \"halton\", \"sampler\"],\n signatures: [\"mulberry32\", \"splitmix[A-Za-z0-9]*\", \"xorshift[A-Za-z0-9]*\", \"sfc32\", \"xoshiro[A-Za-z0-9]*\", \"fnv1a[A-Za-z0-9]*\", \"deriveSeed\", \"seededRandom\", \"seededRng\", \"makeRng\", \"createRng\"],\n },\n {\n area: \"bench\",\n title: \"Benchmarks and speed gates\",\n covers: \"the bench harness: a fresh process per case, the order turned each round, A/A pairs, the CPU model, paired-time records, speed gates, determinism gates\",\n packages: [],\n repo: \"mark1russell7/rigor\",\n state: \"planned\",\n words: [\"benchmark\", \"harness\", \"timing\", \"perf\", \"gate\", \"paired-time\", \"a/a\", \"warm-up\", \"bench\", \"measure\", \"timer\", \"stopwatch\", \"profile\", \"elapsed\", \"hrtime\", \"determinism\", \"deterministic\", \"baseline\", \"ratchet\", \"threshold\"],\n note: \"Five repositories have their own harness today (vex, packing, highways, layout-stack, typeset). Do not grow a local harness: the shared one replaces them.\",\n },\n {\n area: \"test-generation\",\n title: \"Test helpers and test generation\",\n covers: \"property tests on fast-check, pairwise and covering arrays, metamorphic relations, chaos and load schedules, shared test fixtures\",\n packages: [],\n repo: \"mark1russell7/rigor\",\n state: \"planned\",\n words: [\"test\", \"testing\", \"property\", \"fast-check\", \"arbitrary\", \"pairwise\", \"metamorphic\", \"chaos\", \"load\", \"fake\", \"fastcheck\", \"covering\", \"combinatorial\", \"fault\", \"injection\", \"soak\", \"stress\", \"throughput\", \"shrink\"],\n note: \"@mark1russell7/vex-testkit is only for Vex domains. A fake shell for tests is in @procedures/shell.\",\n },\n {\n area: \"exact-math\",\n title: \"Expressions and exact arithmetic\",\n covers: \"expression documents, exact rationals, floats with error bounds, intervals, robust geometric predicates (orientation, in-circle)\",\n packages: [\"@mark1russell7/expression\", \"@mark1russell7/rational\"],\n repo: \"mark1russell7/algebra\",\n state: \"unpublished\",\n words: [\"math\", \"arithmetic\", \"rational\", \"bigint\", \"interval\", \"error bound\", \"predicate\", \"orientation\", \"symbolic\", \"exact\"],\n signatures: [\"orient2d\", \"orientation\", \"inCircle\", \"incircle\"],\n note: \"Statistics go to rigor-statistics, and geometry records go to layout-contract. There is no math package.\",\n },\n {\n area: \"units\",\n title: \"Amounts with units\",\n covers: \"amounts in typed units, exact conversion factors between units\",\n packages: [\"@mark1russell7/quantity\"],\n repo: \"mark1russell7/systems\",\n state: \"published\",\n words: [\"unit\", \"quantity\", \"duration\", \"bytes\", \"conversion\"],\n },\n {\n area: \"state-machines\",\n title: \"State machines and timers\",\n covers: \"state machines as data, closed forms of their timers, failure detection, recovery and trace replay\",\n packages: [\"@mark1russell7/algebra\"],\n repo: \"mark1russell7/systems\",\n state: \"published\",\n words: [\"state machine\", \"timer\", \"timeout\", \"heartbeat\", \"failover\", \"detection\"],\n note: \"The npm name @mark1russell7/algebra is this package of systems, not the algebra repository.\",\n },\n {\n area: \"service\",\n title: \"Services and servers\",\n covers: \"a service declared as data, its lifecycle and checks, jittered loops, clocks, backoff and retries (service); the HTTP, WebSocket and MCP host of procedures (peer)\",\n packages: [\"@mark1russell7/service\", \"@procedures/peer\"],\n repo: \"mark1russell7/systems\",\n state: \"published\",\n words: [\"server\", \"http server\", \"lifecycle\", \"shutdown\", \"health\", \"loop\", \"clock\", \"backoff\", \"retry\", \"jitter\", \"websocket\"],\n signatures: [\"exponentialBackoff\", \"backoffDelay\", \"withRetry\", \"retryWithBackoff\", \"withJitter\"],\n note: \"A server package is made with the template preset service. @procedures/peer is in mark1russell7/client.\",\n },\n {\n area: \"procedures\",\n title: \"Typed calls and MCP tools\",\n covers: \"procedures as data: one typed call model in process, over HTTP, WebSocket, CLI and MCP, with streaming and middleware\",\n packages: [\"@procedures/client\", \"@procedures/mcp-server\", \"@procedures/compiler\"],\n repo: \"mark1russell7/client\",\n state: \"published\",\n words: [\"rpc\", \"procedure\", \"mcp\", \"tool\", \"middleware\", \"api client\"],\n },\n {\n area: \"system-io\",\n title: \"Files, commands, git, GitHub and npm\",\n covers: \"atomic file and JSON writes, globs, safe commands with argv and no shell, git, the GitHub CLI and API, npm registry lookups, HTTP requests, JSON, YAML and CSV, environment variables\",\n packages: [\"@procedures/fs\", \"@procedures/shell\", \"@procedures/git\", \"@procedures/gh\", \"@procedures/npm\", \"@procedures/http\", \"@procedures/json\", \"@procedures/env\"],\n repo: \"mark1russell7/client\",\n state: \"published\",\n words: [\"file\", \"atomic\", \"write\", \"spawn\", \"exec\", \"shell\", \"command\", \"github\", \"registry\", \"fetch\", \"yaml\", \"csv\", \"env\"],\n signatures: [\"atomicWrite[A-Za-z0-9]*\", \"writeFileAtomic\", \"writeJsonAtomic\", \"writeAtomic\"],\n },\n {\n area: \"cli\",\n title: \"Command-line arguments\",\n covers: \"argument parsing and the help text of command-line tools, from a schema\",\n packages: [],\n repo: \"mark1russell7/client\",\n state: \"planned\",\n words: [\"argv\", \"arguments\", \"flags\", \"options\", \"parser\", \"help text\", \"command line\"],\n signatures: [\"parseArgs\", \"parseArgv\"],\n note: \"Nine hand-written parsers exist (10-25). Until the library is ready, use @procedures/cli-run or keep the parser small.\",\n },\n {\n area: \"data-structures\",\n title: \"Collections and graphs of dependencies\",\n covers: \"lists, deques, maps, trees and heaps; DAGs, cycles, topological order\",\n packages: [\"@procedures/collections\", \"@procedures/dag\"],\n repo: \"mark1russell7/client\",\n state: \"published\",\n words: [\"list\", \"queue\", \"deque\", \"heap\", \"tree map\", \"graph\", \"dag\", \"topological\", \"cycle\"],\n signatures: [\"topoSort\", \"topologicalSort\", \"toposort\", \"topoOrder\", \"detectCycles?\", \"findCycles?\"],\n },\n {\n area: \"optional\",\n title: \"Optional values\",\n covers: \"a value that is present or absent, with the functor and monad laws\",\n packages: [\"@mark1russell7/optional\"],\n repo: \"mark1russell7/optional\",\n state: \"published\",\n words: [\"option\", \"maybe\", \"some\", \"none\", \"monad\", \"functor\"],\n note: \"@mark1russell7/render-optional is a second copy. It moves to @mark1russell7/optional.\",\n },\n {\n area: \"geometry\",\n title: \"Geometry and layout records\",\n covers: \"points, boxes, segments, tolerances, the input and record formats of the layout engines, converters\",\n packages: [\"@mark1russell7/layout-contract\"],\n repo: \"mark1russell7/layout-contract\",\n state: \"published\",\n words: [\"point\", \"rect\", \"box\", \"segment\", \"polygon\", \"tolerance\", \"overlap\", \"intersection\", \"bounds\"],\n signatures: [\"segmentsIntersect\", \"segmentsCross\", \"segmentIntersection\", \"segmentsIntersection\", \"boxesOverlap\", \"rectsOverlap\", \"rectsIntersect\", \"pointInPolygon\", \"distanceToSegment\", \"pointSegmentDistance\"],\n note: \"Exact predicates go to algebra. @mark1russell7/vex-domains has 2D vectors for Vex formulas only.\",\n },\n {\n area: \"packing\",\n title: \"Rectangle packing\",\n covers: \"shelf, guillotine, skyline and max-rects strategies, push cascades, measures of a placement\",\n packages: [\"@mark1russell7/packing\"],\n repo: \"mark1russell7/packing\",\n state: \"published\",\n words: [\"pack\", \"bin packing\", \"placement\", \"rectangles\", \"fill\"],\n },\n {\n area: \"edge-routing\",\n title: \"Edge routing\",\n covers: \"edge routers for node-link diagrams: trunks, bundles, plugs and zoom levels\",\n packages: [\"@mark1russell7/highways\"],\n repo: \"mark1russell7/highways\",\n state: \"published\",\n words: [\"edge\", \"route\", \"bundle\", \"path\", \"orthogonal\", \"spline\"],\n },\n {\n area: \"graph-layout\",\n title: \"Graph and tree layout\",\n covers: \"a layout for each container of a graph or tree, with boxes and routed edges for any renderer\",\n packages: [\"ireko\"],\n repo: \"mark1russell7/ireko\",\n state: \"published\",\n words: [\"layout\", \"tree layout\", \"radial\", \"force\", \"hierarchy\", \"container\"],\n },\n {\n area: \"text\",\n title: \"Text measurement and line breaking\",\n covers: \"Unicode segmentation, text widths from font tables, line breaking, incremental relayout after edits\",\n packages: [],\n repo: \"mark1russell7/typeset\",\n state: \"planned\",\n words: [\"string\", \"unicode\", \"grapheme\", \"font\", \"width\", \"measure text\", \"line break\", \"wrap\", \"hyphen\"],\n signatures: [\"graphemes\", \"segmentGraphemes\", \"wrapText\", \"breakLines\", \"measureText\", \"textWidth\", \"stringWidth\"],\n note: \"Plain string helpers (case, padding, templates) have no home yet: ask the strategist.\",\n },\n {\n area: \"language-kernel\",\n title: \"Declarative languages\",\n covers: \"documents in envelopes, evaluators found by a ladder, parsers, incremental schedulers\",\n packages: [\"@mark1russell7/coeval\"],\n repo: \"mark1russell7/coeval\",\n state: \"published\",\n words: [\"parser\", \"evaluator\", \"dsl\", \"language\", \"ast\", \"scheduler\", \"incremental\"],\n },\n {\n area: \"formulas\",\n title: \"Formulas over records\",\n covers: \"typed spreadsheet formulas evaluated at each record, tree node or grid cell; domains for vectors, colors, angles and numbers\",\n packages: [\"@mark1russell7/vex\", \"@mark1russell7/vex-domains\", \"@mark1russell7/vex-compiler\"],\n repo: \"mark1russell7/vex\",\n state: \"published\",\n words: [\"formula\", \"spreadsheet\", \"roll-up\", \"aggregate\", \"per record\", \"grid\"],\n },\n {\n area: \"reactive-ui\",\n title: \"Reactive expressions and rendering by type\",\n covers: \"the reactive node store and expressions of render, its viewer; splay renders any data with a viewer for each type\",\n packages: [\"@mark1russell7/render-dsl\", \"@mark1russell7/render-node\", \"@mark1russell7/splay\"],\n repo: \"mark1russell7/render\",\n state: \"published\",\n words: [\"reactive\", \"signal\", \"subscription\", \"viewer\", \"render\", \"react\"],\n note: \"@mark1russell7/splay is in mark1russell7/splay.\",\n },\n {\n area: \"browser-monitoring\",\n title: \"Browser monitoring and context\",\n covers: \"main-thread lag, long tasks, Web Vitals, the page lifecycle, OpenTelemetry for the frontend, async context in browsers\",\n packages: [\"@mark1russell7/lag\", \"@mark1russell7/lag-hud\", \"page-lifecycle-tracker\", \"@mark1russell7/otel-ts\", \"async-browser-context\"],\n repo: \"mark1russell7/lag\",\n state: \"published\",\n words: [\"telemetry\", \"web vitals\", \"inp\", \"long task\", \"visibility\", \"opentelemetry\", \"async context\"],\n },\n {\n area: \"repo-structure\",\n title: \"Repository structure, CI and conventions\",\n covers: \"new repositories and packages, the CUE presets, shared CI workflows, the API report, import boundaries, the conventions check, the release and status pages\",\n packages: [\"@mark1russell7/conventions\", \"@mark1russell7/template-cli\", \"@mark1russell7/cue\", \"@mark1russell7/api-report\", \"@mark1russell7/boundaries\", \"@mark1russell7/site-pages\"],\n repo: \"mark1russell7/template\",\n state: \"published\",\n words: [\"template\", \"ci\", \"workflow\", \"tsconfig\", \"package.json\", \"lint\", \"site\", \"pages\"],\n },\n {\n area: \"prose\",\n title: \"Prose rules\",\n covers: \"the ASD-STE100 writing rules for Markdown and doc comments\",\n packages: [\"@mark1russell7/ste-lint\"],\n repo: \"mark1russell7/ste-lint\",\n state: \"published\",\n words: [\"docs\", \"readme\", \"writing\", \"ste\"],\n },\n {\n area: \"machine-resources\",\n title: \"Memory and jobs on one computer\",\n covers: \"leases of memory and processors for jobs, queues of heavy jobs, alerts\",\n packages: [],\n repo: \"mark1russell7/headroom\",\n state: \"unpublished\",\n words: [\"memory\", \"lease\", \"job\", \"queue\", \"load\"],\n },\n {\n area: \"releases\",\n title: \"Release order of the packages\",\n covers: \"the npm release and update plan in dependency order, provenance checks\",\n packages: [],\n repo: \"mark1russell7/release-train\",\n state: \"unpublished\",\n words: [\"release\", \"version\", \"semver\", \"provenance\", \"update\"],\n },\n {\n area: \"duplication\",\n title: \"The duplication atlas\",\n covers: \"function shapes, clone classes, shared names and packages by purpose over all public repositories\",\n packages: [],\n repo: \"mark1russell7/codeatlas\",\n state: \"unpublished\",\n words: [\"duplicate\", \"clone\", \"copy\"],\n },\n {\n area: \"web-crawling\",\n title: \"Web crawling\",\n covers: \"polite fetches with robots.txt and one request per site, a store of fetched pages\",\n packages: [\"polite-crawler\", \"polite-crawler-mcp\"],\n repo: \"mark1russell7/crawler\",\n state: \"published\",\n words: [\"crawl\", \"scrape\", \"robots\", \"fetch page\"],\n },\n];\n\n/** A file of more homes, for example the private repositories, in the shape `{ \"homes\": Home[] }`. */\nexport function readOverlay(file: string): readonly Home[] {\n const data = JSON.parse(readFileSync(file, \"utf8\")) as { homes?: unknown };\n if (!Array.isArray(data.homes)) throw new Error(`${file}: the field \"homes\" must be an array`);\n for (const home of data.homes as Home[]) {\n if (typeof home.area !== \"string\" || typeof home.title !== \"string\" || typeof home.repo !== \"string\") throw new Error(`${file}: each home needs area, title and repo`);\n }\n return data.homes as Home[];\n}\n\n/** This function merges the homes. A home of `extra` with the area of a home of `base` takes its place. */\nexport function mergeHomes(base: readonly Home[], extra: readonly Home[]): readonly Home[] {\n const areas = new Set(extra.map((home) => home.area));\n return [...base.filter((home) => !areas.has(home.area)), ...extra];\n}\n\n/** This function gives the homes that match each word of `query`, best match first. */\nexport function findHomes(query: string, homes: readonly Home[] = HOMES): readonly Home[] {\n const terms = query.toLowerCase().split(/\\s+/).filter((term) => term.length > 0);\n if (terms.length === 0) return homes;\n const score = (home: Home): number => {\n const strong = [home.area, home.title, ...home.packages, ...home.words].join(\" \").toLowerCase();\n const weak = `${home.covers} ${home.note ?? \"\"}`.toLowerCase();\n return terms.reduce((sum, term) => sum + (strong.includes(term) ? 2 : weak.includes(term) ? 1 : 0), 0);\n };\n return homes\n .map((home, index) => ({ home, index, score: score(home) }))\n .filter((row) => row.score > 0)\n .sort((a, b) => b.score - a.score || a.index - b.index)\n .map((row) => row.home);\n}\n\nconst STATE_TEXT: Record<HomeState, string> = { published: \"\", unpublished: \" (not on npm)\", planned: \" (planned)\", none: \" (no home)\" };\n\n/** This function writes the map as a Markdown table, with the rule first. */\nexport function mapMarkdown(homes: readonly Home[] = HOMES): string {\n const cell = (text: string): string => text.replaceAll(\"|\", \"\\\\|\");\n const rows = homes.map((home) => {\n const where = home.packages.length > 0 ? home.packages.map((name) => `\\`${name}\\``).join(\", \") : `\\`${home.repo}\\``;\n const covers = home.note === undefined ? home.covers : `${home.covers}. ${home.note}`;\n return `| ${cell(home.title)} | ${where}${STATE_TEXT[home.state]} | ${cell(covers)} |`;\n });\n return [MAP_RULE, \"\", \"| Area | Home | Covers |\", \"| --- | --- | --- |\", ...rows, \"\"].join(\"\\n\");\n}\n\n/** This function writes the homes as plain text for a terminal. */\nexport function mapText(homes: readonly Home[]): string {\n if (homes.length === 0) return \"No area matches. Ask the strategist for a home before you write the code.\\n\";\n return homes\n .map((home) => {\n const where = home.packages.length > 0 ? home.packages.join(\", \") : home.repo;\n const lines = [`${home.title} (${home.area}): ${where}${STATE_TEXT[home.state]}`, ` covers: ${home.covers}`, ` repo: ${home.repo}`];\n if (home.note !== undefined) lines.push(` note: ${home.note}`);\n return lines.join(\"\\n\");\n })\n .join(\"\\n\\n\")\n .concat(\"\\n\");\n}\n","/**\n * The rule `home-package`: a change does not add a function that belongs in the home of another area (the map of homes).\n */\nimport { readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { addedLines } from \"../change.ts\";\nimport { HOME_EXPORTS } from \"../home-exports.ts\";\nimport { HOMES, type Home } from \"../map.ts\";\nimport type { Break, Rule, RuleContext } from \"../rule.ts\";\nimport { byCode } from \"../workspace.ts\";\n\n/** The files of code that the rule reads. A declaration file has no functions of its own. */\nconst CODE_FILE = /\\.(?:[cm]?[jt]s|[jt]sx)$/;\nconst SKIPPED = /(?:^|\\/)(?:node_modules|build|dist|vendor)\\/|\\.d\\.[cm]?ts$/;\n\n/** A declaration of a function: `function name`, or `const name = (` / `= function` / `= <T>(`, with `export` and `async`. */\nconst DECLARATION = /^\\s*(?:export\\s+)?(?:default\\s+)?(?:async\\s+)?function\\s*(?:\\*\\s*)?([A-Za-z_$][\\w$]*)|^\\s*(?:export\\s+)?(?:const|let)\\s+([A-Za-z_$][\\w$]*)\\s*(?::[^=]+)?=\\s*(?:async\\s*)?(?:\\(|function\\b|<[A-Za-z])/;\n\n/** One signature of a home, as a regular expression of a whole name. */\ninterface Signature {\n readonly home: Home;\n readonly pattern: RegExp;\n}\n\n/** This function gives the signatures of the homes that a repository can use: on npm, or in a repository with a pin. */\nexport function signaturesOf(homes: readonly Home[]): Signature[] {\n return homes.filter((home) => home.state === \"published\" || home.state === \"unpublished\").flatMap((home) => (home.signatures ?? []).map((source) => ({ home, pattern: new RegExp(`^(?:${source})$`) })));\n}\n\n/** This function gives the name of the function that a line declares, or undefined. */\nexport function declaredName(line: string): string | undefined {\n const match = DECLARATION.exec(line);\n return match?.[1] ?? match?.[2];\n}\n\n/** This function gives the repository of the root as owner/name, in lower case: the remote origin, or GITHUB_REPOSITORY. */\nexport function repoOf(context: RuleContext): string | undefined {\n const url = context.git([\"remote\", \"get-url\", \"origin\"])?.trim();\n const match = url === undefined ? null : /github\\.com[:/]([^/]+\\/[^/]+?)(?:\\.git)?\\/?$/.exec(url);\n if (match?.[1] !== undefined) return match[1].toLowerCase();\n const env = context.env[\"GITHUB_REPOSITORY\"];\n return env === undefined || env === \"\" ? undefined : env.toLowerCase();\n}\n\n/** This function gives the message of a break: the home, and if the home already exports the name. */\nexport function messageOf(file: string, name: string, home: Home): string {\n const exporter = home.packages.find((pkg) => HOME_EXPORTS[pkg]?.names.includes(name) === true);\n const where = home.packages.length === 0 ? home.repo : home.packages.map((pkg) => `\\`${pkg}\\``).join(\", \");\n const use = home.state === \"unpublished\" ? ` (not on npm: use a github: specifier pinned to a commit of ${home.repo})` : \"\";\n return exporter === undefined\n ? `${file} adds \\`${name}\\`, a function of the area ${home.title} (${home.area}). Its home is ${where}${use}, which does not export \\`${name}\\` yet: add it to the home in a pull request of ${home.repo}, then import it.`\n : `${file} adds \\`${name}\\`, a function of the area ${home.title} (${home.area}). Import \\`${name}\\` from \\`${exporter}\\`${use} in place of a local copy.`;\n}\n\nexport const homePackage: Rule = {\n id: \"home-package\",\n title: \"A change does not add a function that belongs in the home of another area: a name that a home of the map of homes gives as its signature.\",\n reason:\n \"Each area of code has one home package (conventions map). A local copy of a helper of another area drifts from the home and splits the fixes: on 2026-11-02 the fleet had 68 local statistics functions (median, quantile, bootstrap and more) in 14 repositories, while @mark1russell7/rigor-statistics was on npm. The check examines only the lines that a change adds, so the copies that exist do not break, and the count can only go down.\",\n fix: \"Import the function from its home. If the home does not have it, add it to the home in a pull request of the home repository, then import it. A function that only has the name of a signature and does another thing gets a new name.\",\n sources: [{ repo: \"fleet\", rule: \"direction-18\", doc: \"docs/STRATEGY.md (2026-11-02, one map of homes, checked when the code is written)\" }],\n options: {\n scope: {\n type: \"string\",\n default: \"change\",\n description: \"`change`: only the lines that the change adds (a pull request, or `--base`). `all`: each line of each tracked file, for a sweep of the copies that exist.\",\n },\n },\n check(context, options) {\n const scope = options[\"scope\"];\n if (scope !== \"change\" && scope !== \"all\") throw new Error(`The option scope is \"change\" or \"all\", not ${JSON.stringify(scope)}.`);\n const repo = repoOf(context);\n const signatures = signaturesOf(HOMES).filter((signature) => signature.home.repo.toLowerCase() !== repo);\n if (signatures.length === 0) return [];\n let files: readonly string[];\n let added: ReadonlyMap<string, ReadonlySet<number>> | undefined;\n if (scope === \"change\") {\n added = addedLines(context);\n if (added === undefined) return { skipped: \"no change: the rule examines the lines that a pull request or --base adds (option scope: all examines each line)\" };\n files = [...added.keys()];\n } else {\n const tracked = context.gitFiles();\n if (tracked === undefined) return { skipped: \"the root is not in a git repository\" };\n files = tracked;\n }\n const breaks: Break[] = [];\n for (const file of files.filter((path) => CODE_FILE.test(path) && !SKIPPED.test(path)).sort(byCode)) {\n let text: string;\n try {\n text = readFileSync(join(context.root, file), \"utf8\");\n } catch {\n continue;\n }\n const lines = added?.get(file);\n text.split(/\\r?\\n/).forEach((line, index) => {\n if (lines !== undefined && !lines.has(index + 1)) return;\n const name = declaredName(line);\n if (name === undefined) return;\n const signature = signatures.find((item) => item.pattern.test(name));\n if (signature !== undefined) breaks.push({ file, line: index + 1, message: messageOf(file, name, signature.home) });\n });\n }\n return breaks;\n },\n};\n","/**\n * The rule `license-file`. Each public package has a license field and, in its own folder, a license file with the\n * same license. A repository with a public package has a license file at its root.\n */\nimport { existsSync, readdirSync, readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { codePackages, inFolder, lineOf, type Break, type PackageInfo, type Rule, type RuleContext } from \"../rule.ts\";\n\n/** The names of a license file, without case. */\nconst LICENSE_NAME = /^licen[cs]e(?:\\.(?:md|txt))?$/i;\n\n/** For each license that the rule knows, a pattern of its text. The text of another license is not checked. */\nexport const LICENSE_TEXTS: Readonly<Record<string, RegExp>> = {\n MIT: /\\bMIT License\\b|Permission is hereby granted, free of charge/,\n ISC: /\\bISC License\\b|Permission to use, copy, modify, and\\/or distribute/,\n \"Apache-2.0\": /Apache License,?\\s+Version 2\\.0/,\n \"BSD-3-Clause\": /Redistribution and use in source and binary forms[\\s\\S]*Neither the name/,\n};\n\n/** This function gives the name of the license file in a folder, or undefined. */\nexport function licenseFileOf(dir: string): string | undefined {\n if (!existsSync(dir)) return undefined;\n return readdirSync(dir, { withFileTypes: true }).find((entry) => entry.isFile() && LICENSE_NAME.test(entry.name))?.name;\n}\n\n/** This function gives the name of the author of a manifest: the string before `<` or `(`, or the field `name`. */\nexport function authorOf(author: unknown): string | undefined {\n // A search for one character, not a pattern with a repetition: the time is linear in the length of the field\n const before = (text: string): string => {\n const at = text.search(/[<(]/);\n return at === -1 ? text : text.slice(0, at);\n };\n const name = typeof author === \"string\" ? before(author) : typeof author === \"object\" && author !== null && typeof (author as { name?: unknown }).name === \"string\" ? (author as { name: string }).name : undefined;\n return name === undefined || name.trim() === \"\" ? undefined : name.trim();\n}\n\n/** This function gives the text of the MIT license. */\nexport function mitText(year: number, holder: string): string {\n return `MIT License\n\nCopyright (c) ${year} ${holder}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n`;\n}\n\nconst isPublic = (pkg: PackageInfo): boolean => pkg.manifest[\"private\"] !== true;\n\n/**\n * This function tells if the repository is public, from the event file of a GitHub Actions run. Outside a run, or with no\n * field `repository.private` in the event, it gives undefined.\n */\nexport function repositoryIsPublic(context: RuleContext): boolean | undefined {\n const file = context.env[\"GITHUB_EVENT_PATH\"];\n if (file === undefined || file === \"\" || !existsSync(file)) return undefined;\n try {\n const event = JSON.parse(readFileSync(file, \"utf8\")) as { repository?: { private?: unknown } };\n return typeof event.repository?.private === \"boolean\" ? !event.repository.private : undefined;\n } catch {\n return undefined;\n }\n}\n\nexport const licenseFile: Rule = {\n id: \"license-file\",\n title: \"Each public package has a license field and, in its own folder, a license file with the same license. A public repository, or a repository with a public package, has a license file at its root.\",\n reason:\n \"npm packs the license file of the folder of the package only, and GitHub reads the license file of the root only. On 2026-11-02 five public repositories (packing, rigor, layout-contract, typeset, template) had no license file at the root, so GitHub showed them as without a license while their packages on npm said MIT.\",\n fix: \"Add a license field to package.json (the option `license`, MIT by default, is the license of the root of a public repository with no public package). `conventions fix` writes each missing license file: a copy of a license file of the repository with the same license, or else the MIT text with the author of the manifest. Correct a license file whose text is not the license of the field.\",\n sources: [\"vex\", \"coeval\", \"client\", \"highways\"].map((repo) => ({ repo, rule: \"license-file\", doc: \"LICENSE (MIT, at the root, with license MIT in each package.json)\" })),\n options: {\n license: { type: \"string\", default: \"MIT\", description: \"The license of the root of a public repository with no public package.\" },\n },\n check(context, options) {\n const all = [context.rootPackage, ...codePackages(context)];\n const unique = all.filter((pkg, index) => all.findIndex((other) => other.file === pkg.file) === index);\n const published = unique.filter(isPublic);\n // A public repository needs a license file at its root, also with no public package (typeset, 11-02)\n const publicRepo = repositoryIsPublic(context) === true;\n if (published.length === 0 && !publicRepo) return [];\n const breaks: Break[] = [];\n // The license files that exist, by license, as the source of a copy\n const texts = new Map<string, string>();\n const licenseOf = (pkg: PackageInfo): string | undefined => (typeof pkg.manifest[\"license\"] === \"string\" ? (pkg.manifest[\"license\"] as string) : undefined);\n for (const pkg of unique) {\n const name = licenseFileOf(pkg.dir);\n if (name === undefined) continue;\n const text = readFileSync(join(pkg.dir, name), \"utf8\");\n // The license of a file is the license whose text it has, or else the license field of its package\n const license = Object.keys(LICENSE_TEXTS).find((id) => LICENSE_TEXTS[id]?.test(text) === true) ?? licenseOf(pkg);\n if (license !== undefined && !texts.has(license)) texts.set(license, text);\n }\n const missing = (folder: string, license: string, author: unknown, why: string): void => {\n const file = inFolder(folder, \"LICENSE\");\n const holder = authorOf(author) ?? authorOf(context.rootPackage.manifest[\"author\"]);\n const text = texts.get(license) ?? (license === \"MIT\" && holder !== undefined ? mitText(new Date().getFullYear(), holder) : undefined);\n breaks.push({ file, message: `${folder === \"\" ? \"The root\" : folder} has no license file: ${why}`, ...(text === undefined ? {} : { edits: [{ file, before: \"\", after: text }] }) });\n };\n for (const pkg of published) {\n const license = licenseOf(pkg);\n const name = String(pkg.manifest[\"name\"] ?? pkg.folder);\n if (license === undefined) {\n breaks.push({ file: pkg.file, message: `The public package ${name} has no license field.` });\n continue;\n }\n const found = licenseFileOf(pkg.dir);\n if (found === undefined) {\n missing(pkg.folder, license, pkg.manifest[\"author\"], `npm packs only the license file of the folder of ${name} (${license}).`);\n continue;\n }\n const text = readFileSync(join(pkg.dir, found), \"utf8\");\n if (LICENSE_TEXTS[license]?.test(text) === false) {\n const line = lineOf(pkg.text, '\"license\"');\n breaks.push({ file: inFolder(pkg.folder, found), message: `${inFolder(pkg.folder, found)} is not the text of ${license}, the license field of ${name}${line === undefined ? \"\" : ` (${pkg.file}:${line})`}.` });\n }\n }\n if (!published.includes(context.rootPackage) && licenseFileOf(context.root) === undefined) {\n const license = published.map(licenseOf).find((item) => item !== undefined) ?? (publicRepo ? String(options[\"license\"]) : undefined);\n if (license !== undefined) missing(\"\", license, published[0]?.manifest[\"author\"], \"GitHub reads only the license file of the root.\");\n }\n return breaks;\n },\n};\n","/**\n * The rule `main-check`: a script does not find out that it is the main module by a compare of `process.argv[1]` with\n * its own path. Through a link (a junction, a symbolic link, `~/git` to `D:/git`), the two paths differ. Then the\n * script does nothing, and it ends with exit code 0.\n */\nimport { readFileSync, statSync } from \"node:fs\";\nimport { extname, join } from \"node:path\";\nimport { codePackages, type Break, type Rule } from \"../rule.ts\";\n\n/** The extensions of the files that the rule reads. */\nconst SCRIPT = new Set([\".ts\", \".mts\", \".cts\", \".js\", \".mjs\"]);\n\n/** The largest file that the rule reads, in bytes. */\nconst MAX_BYTES = 1024 * 1024;\n\n/** The compare of two real paths. It is true through a link too, and it works on each Node version. */\nexport const REAL_COMPARE = \"process.argv[1] !== undefined && realpathSync(process.argv[1]) === realpathSync(fileURLToPath(import.meta.url))\";\n\n/** The imports that the compare of two real paths uses. */\nconst REAL_IMPORTS: readonly (readonly [string, string])[] = [\n [\"realpathSync\", \"node:fs\"],\n [\"fileURLToPath\", \"node:url\"],\n];\n\n/** The names of the imports that only a path compare uses. The fix removes the ones that become unused. */\nconst PATH_NAMES = [\"fileURLToPath\", \"pathToFileURL\", \"resolve\", \"realpathSync\"] as const;\n\n/** This function tells if a text compares `process.argv[1]` with the path of the module, without a real path of each side. */\nexport function isPathCompare(text: string): boolean {\n if (!text.includes(\"process.argv[1]\") || !/import\\.meta\\.(url|filename|dirname)\\b/.test(text)) return false;\n // A text with no compare only uses the two values, for example a record of them in a test\n if (!/[!=]=|\\.(?:endsWith|startsWith|includes)\\(/.test(text)) return false;\n // Two real paths are equal through a link too\n return (text.match(/realpathSync\\s*\\(/g) ?? []).length < 2;\n}\n\n/** The lowest version of a range of `engines.node` (for example `>=22.19` or `^24.2.0`). It is undefined when the range has no single lower bound. */\nexport function lowestNode(range: unknown): readonly [number, number] | undefined {\n if (typeof range !== \"string\" || range.includes(\"||\")) return undefined;\n // One \\s* only: two of them around the optional operator are slow on a long run of spaces\n const found = /^(?:>=|\\^|~)?\\s*v?(\\d+)(?:\\.(\\d+))?/.exec(range.trim());\n return found ? [Number(found[1]), Number(found[2] ?? 0)] : undefined;\n}\n\n/** This function tells if each Node version of the range has `import.meta.main`: 22.18 and later in 22, and 24.2 and later. Node 23 does not have it. */\nexport function hasImportMetaMain(range: unknown): boolean {\n const lowest = lowestNode(range);\n if (lowest === undefined) return false;\n const [major, minor] = lowest;\n // `^22.18` stays in 22. `>=22.18` lets Node 23 in, which does not have import.meta.main\n if (major === 22) return minor >= 18 && typeof range === \"string\" && /^[\\^~]/.test(range.trim());\n return major > 24 || (major === 24 && minor >= 2);\n}\n\n/** This function gives the line with `condition` in place of the condition of its `if (...)`. It gives undefined when no `if` has only the main check. */\nexport function fixLine(line: string, condition: string): string | undefined {\n const start = line.indexOf(\"if (\");\n if (start < 0) return undefined;\n let depth = 0;\n let end = -1;\n for (let index = start + 3; index < line.length; index++) {\n if (line[index] === \"(\") depth++;\n if (line[index] === \")\" && --depth === 0) {\n end = index;\n break;\n }\n }\n if (end < 0) return undefined;\n const old = line.slice(start + 4, end);\n // Each part of the condition is about argv[1], else the condition has more than the main check\n if (!old.split(\"&&\").every((part) => part.includes(\"process.argv[1]\")) || !isPathCompare(old)) return undefined;\n return `${line.slice(0, start)}if (${condition})${line.slice(end + 1)}`;\n}\n\n/** The import line of `module` with named imports, as `[index, prefix, names, suffix]`. */\nfunction namedImport(lines: readonly string[], module: string): [number, string, string[], string] | undefined {\n const pattern = new RegExp(`^(\\\\s*import\\\\s*\\\\{)([^}]*)(\\\\}\\\\s*from\\\\s*[\"']${module}[\"'];?\\\\s*)$`);\n for (let index = 0; index < lines.length; index++) {\n const found = pattern.exec(lines[index] ?? \"\");\n if (found) return [index, found[1] ?? \"\", (found[2] ?? \"\").split(\",\").map((part) => part.trim()).filter((part) => part !== \"\"), found[3] ?? \"\"];\n }\n return undefined;\n}\n\nconst importLine = (prefix: string, names: readonly string[], suffix: string): string => `${prefix.trimEnd()} ${names.join(\", \")} ${suffix.trimStart()}`;\n\n/** The local name of an import part, for example `type A`, `A as B` or `A`. */\nconst imported = (part: string): string => part.replace(/^type\\s+/, \"\").split(/\\s+as\\s+/)[0] ?? \"\";\n\n/** This function adds the imports in `needs` that the text does not have. Then it removes the named imports of PATH_NAMES that the text does not use. */\nexport function fixImports(text: string, needs: readonly (readonly [string, string])[]): string {\n const eol = text.includes(\"\\r\\n\") ? \"\\r\\n\" : \"\\n\";\n let lines = text.split(/\\r?\\n/);\n const isImport = (line: string): boolean => /^\\s*import\\b/.test(line);\n for (const [name, module] of needs) {\n const has = lines.some((line) => isImport(line) && new RegExp(`\\\\b${name}\\\\b`).test(line));\n if (has) continue;\n const found = namedImport(lines, module) ?? namedImport(lines, module.replace(/^node:/, \"\"));\n if (found) {\n lines = lines.map((line, index) => (index === found[0] ? importLine(found[1], [...found[2], name], found[3]) : line));\n continue;\n }\n // A new import after the last import line, or at the top (after a shebang)\n let last = -1;\n lines.forEach((line, index) => {\n if (isImport(line) && /from\\s*[\"'][^\"']+[\"'];?\\s*$/.test(line)) last = index;\n });\n const at = last >= 0 ? last + 1 : lines[0]?.startsWith(\"#!\") ? 1 : 0;\n // The quote and the semicolon of the other imports of the file\n const style = lines.find((line) => isImport(line) && /from\\s*[\"']/.test(line)) ?? \"\";\n const quote = /from\\s*'/.test(style) ? \"'\" : '\"';\n const semi = style === \"\" || /;\\s*$/.test(style) ? \";\" : \"\";\n lines = [...lines.slice(0, at), `import { ${name} } from ${quote}${module}${quote}${semi}`, ...lines.slice(at)];\n }\n for (const name of PATH_NAMES) {\n if (lines.some((line) => !isImport(line) && new RegExp(`\\\\b${name}\\\\b`).test(line))) continue;\n for (const module of [\"node:url\", \"node:path\", \"node:fs\", \"url\", \"path\", \"fs\"]) {\n const found = namedImport(lines, module);\n if (!found || !found[2].some((part) => imported(part) === name)) continue;\n const kept = found[2].filter((part) => imported(part) !== name);\n lines = kept.length === 0 ? lines.filter((_, index) => index !== found[0]) : lines.map((line, index) => (index === found[0] ? importLine(found[1], kept, found[3]) : line));\n }\n }\n return lines.join(eol);\n}\n\nexport const mainCheck: Rule = {\n id: \"main-check\",\n title: \"A script finds out that it is the main module with `import.meta.main`, or with a real path of each side, not by a compare of `process.argv[1]` with its path.\",\n reason:\n \"Through a link, `process.argv[1]` has the path of the link, and the module has the real path. The compare is false, so the script does nothing and ends with exit code 0: a check that looks done but did not start.\",\n fix: \"Write `if (import.meta.main)` when `engines.node` allows only versions that have it (`^22.18`, `>=24.2`). Else compare `realpathSync(process.argv[1])` with `realpathSync(fileURLToPath(import.meta.url))`. `conventions fix` writes the one that fits.\",\n sources: [{ repo: \"fleet\", rule: \"main-check\", doc: \"docs/STRATEGY.md (2026-11-02, the main check through a link)\" }],\n options: {},\n check(context) {\n const files = context.gitFiles();\n if (files === undefined) return { skipped: \"the root is not in a git repository\" };\n // The package of a file is the deepest package folder that holds it\n const packages = [...codePackages(context), context.rootPackage].sort((a, b) => b.folder.length - a.folder.length);\n const breaks: Break[] = [];\n for (const file of files) {\n if (!SCRIPT.has(extname(file).toLowerCase()) || /(^|\\/)(node_modules|dist)\\//.test(file)) continue;\n const path = join(context.root, file);\n let text: string;\n try {\n if (statSync(path).size > MAX_BYTES) continue;\n text = readFileSync(path, \"utf8\");\n } catch {\n continue;\n }\n if (!text.includes(\"process.argv[1]\")) continue;\n const owner = packages.find((p) => p.folder === \"\" || file.startsWith(`${p.folder}/`));\n const engines = (owner?.manifest as { engines?: { node?: unknown } } | undefined)?.engines?.node;\n const main = hasImportMetaMain(engines);\n const lines = text.split(/\\r?\\n/);\n for (let index = 0; index < lines.length; index++) {\n const line = lines[index] ?? \"\";\n const next = lines[index + 1] ?? \"\";\n // A compare on two lines: process.argv[1] on this line, and the path of the module on the next line\n const hit = isPathCompare(line) || (line.includes(\"process.argv[1]\") && !/import\\.meta/.test(line) && !isPathCompare(next) && isPathCompare(`${line} ${next}`));\n if (!hit) continue;\n const fixed = fixLine(line, main ? \"import.meta.main\" : REAL_COMPARE);\n const eol = text.includes(\"\\r\\n\") ? \"\\r\\n\" : \"\\n\";\n const after = fixed === undefined ? undefined : fixImports([...lines.slice(0, index), fixed, ...lines.slice(index + 1)].join(eol), main ? [] : REAL_IMPORTS);\n breaks.push({\n file,\n line: index + 1,\n message: \"The script compares process.argv[1] with its own path, which is false through a link.\",\n ...(after === undefined ? { fix: \"Change the condition by hand: it has more than the main check, or it is on more than one line.\" } : { edits: [{ file, before: text, after }] }),\n });\n }\n }\n return breaks;\n },\n};\n","/**\n * The rule `no-build-output`: git does not keep build output.\n */\nimport { byCode } from \"../workspace.ts\";\nimport type { Break, Rule } from \"../rule.ts\";\n\nexport const noBuildOutput: Rule = {\n id: \"no-build-output\",\n title: \"Git keeps no build output: no tracked file is in a folder named `dist` or `build`.\",\n reason:\n \"The release workflow builds each package from the source. Build output in git goes stale, makes noise in each diff, and a user can get old code from a git install.\",\n fix: \"Remove the folder from git with `git rm -r --cached <folder>`, and keep its name in `.gitignore`.\",\n sources: [\n { repo: \"client\", rule: \"no-build-output\", doc: \"CLAUDE.md:48\" },\n { repo: \"client\", rule: \"no-dist\", doc: \"CLAUDE.md:48\" },\n { repo: \"client\", rule: \"no-dist-commit\", doc: \"CLAUDE.md:48\" },\n ],\n options: {\n folders: { type: \"strings\", default: [\"dist\", \"build\"], description: \"The names of the folders of build output.\" },\n },\n check(context, options) {\n const files = context.gitFiles();\n if (files === undefined) return { skipped: \"the root is not in a git repository\" };\n const names = new Set(Array.isArray(options[\"folders\"]) ? options[\"folders\"] : [\"dist\", \"build\"]);\n const counts = new Map<string, number>();\n for (const file of files) {\n const segments = file.split(\"/\");\n const index = segments.slice(0, -1).findIndex((segment) => names.has(segment));\n if (index < 0) continue;\n const folder = segments.slice(0, index + 1).join(\"/\");\n counts.set(folder, (counts.get(folder) ?? 0) + 1);\n }\n return [...counts.keys()].sort(byCode).map(\n (folder): Break => ({\n file: `${folder}/`,\n message: `Git keeps ${counts.get(folder) ?? 0} file(s) in ${folder}/.`,\n fix: `Start \\`git rm -r --cached ${folder}\\`, and keep ${folder.split(\"/\").pop() ?? folder}/ in .gitignore.`,\n }),\n );\n },\n};\n","/**\n * The rule `no-local-paths`: no tracked file names the home folder of a user of a computer.\n */\nimport { readFileSync, statSync } from \"node:fs\";\nimport { extname, join } from \"node:path\";\nimport type { Break, Rule } from \"../rule.ts\";\n\n/** The extensions of files that are not text. The rule does not read them. */\nconst BINARY = new Set(\n \".png .jpg .jpeg .gif .webp .avif .ico .bmp .tiff .pdf .zip .gz .tgz .bz2 .xz .7z .tar .woff .woff2 .ttf .otf .eot .mp3 .mp4 .webm .mov .wav .ogg .wasm .node .exe .dll .so .dylib .bin .db .sqlite .duckdb\".split(\n \" \",\n ),\n);\n\n/** The largest file that the rule reads, in bytes. */\nconst MAX_BYTES = 2 * 1024 * 1024;\n\n/** The names in a home path that do not identify a person: CI users, container users and placeholders. */\nexport const DEFAULT_ALLOWED: readonly string[] = [\"runner\", \"runneradmin\", \"user\", \"username\", \"you\", \"me\", \"name\", \"yourname\", \"your-name\", \"example\", \"node\", \"ubuntu\", \"vscode\", \"codespace\", \"public\", \"default\", \"shared\", \"all users\"];\n\n/** The forms of a home folder: Windows, macOS and Linux. The group `user` is the name of the user. */\nexport const HOME_PATTERNS: readonly RegExp[] = [\n // A Windows path does not depend on case, so `c:/users/<name>` is the same folder\n /\\b[A-Za-z]:(?:\\\\{1,2}|\\/)[Uu][Ss][Ee][Rr][Ss](?:\\\\{1,2}|\\/)(?<user>[^\\\\/\\s\"'`<>|:*?%$(){}[\\],;]+)/g,\n /(?<![\\w.~-])\\/Users\\/(?<user>[^/\\s\"'`<>|:*?%$(){}[\\],;]+)/g,\n /(?<![\\w.~-])\\/home\\/(?<user>[^/\\s\"'`<>|:*?%$(){}[\\],;]+)/g,\n];\n\nexport const noLocalPaths: Rule = {\n id: \"no-local-paths\",\n title: \"No tracked file has the home folder of a user (`C:\\\\Users\\\\<name>`, `/Users/<name>`, `/home/<name>`).\",\n reason: \"A public file must not name a computer, a user or a path of a computer. A local path also works only on one computer.\",\n fix: \"Use a path relative to the repository, `~`, an environment variable, or a placeholder such as `<you>`.\",\n sources: [\n { repo: \"client\", rule: \"I12\", doc: \"packages/documentation/ARCHITECTURE.md:201\" },\n { repo: \"systems\", rule: \"no-identifying-names\", doc: \"CLAUDE.md:12\" },\n { repo: \"systems\", rule: \"no-private-identifiers\", doc: \"CLAUDE.md:12\" },\n { repo: \"systems\", rule: \"no-private-names\", doc: \"CLAUDE.md:12\" },\n { repo: \"coeval\", rule: \"no-private-names\", doc: \"CLAUDE.md:22\" },\n ],\n options: {\n allow: { type: \"strings\", default: [], description: \"More user names that do not identify a person.\" },\n patterns: {\n type: \"strings\",\n default: [],\n description: \"More regular expressions of text that no file has. The environment variable CONVENTIONS_PRIVATE_PATTERNS adds one on each line, so a private name stays out of package.json.\",\n },\n },\n check(context, options) {\n const files = context.gitFiles();\n if (files === undefined) return { skipped: \"the root is not in a git repository\" };\n const allowed = new Set([...DEFAULT_ALLOWED, ...(Array.isArray(options[\"allow\"]) ? options[\"allow\"] : [])].map((name) => name.toLowerCase()));\n // A repository keeps private names out of its public files with the environment variable, for example from a secret of CI\n const fromEnv = (context.env[\"CONVENTIONS_PRIVATE_PATTERNS\"] ?? \"\")\n .split(\"\\n\")\n .map((line) => line.trim())\n .filter((line) => line !== \"\");\n const sources = [...(Array.isArray(options[\"patterns\"]) ? options[\"patterns\"] : []), ...fromEnv];\n const extra = sources.map((source) => new RegExp(source, \"g\"));\n const rootFile = context.rootPackage.file;\n const breaks: Break[] = [];\n for (const file of files) {\n if (BINARY.has(extname(file).toLowerCase())) continue;\n const path = join(context.root, file);\n let text: string;\n try {\n if (statSync(path).size > MAX_BYTES) continue;\n text = readFileSync(path, \"utf8\");\n } catch {\n // A file of the index that is not in the working tree\n continue;\n }\n if (text.includes(\"\\0\")) continue;\n const lines = text.split(/\\r?\\n/);\n for (let index = 0; index < lines.length; index++) {\n const line = lines[index] ?? \"\";\n // The reason of an exception in the root package.json tells why a text is no home folder, so it can quote one. A private pattern still counts there\n const isReason = file === rootFile && /^\\s*\"(?:reason|off)\"\\s*:/.test(line);\n for (const pattern of isReason ? [] : HOME_PATTERNS) {\n for (const match of line.matchAll(pattern)) {\n const user = match.groups?.[\"user\"] ?? \"\";\n // A name of one character is a placeholder of a test, not a person\n if (user.length < 2 || allowed.has(user.toLowerCase())) continue;\n breaks.push({ file, line: index + 1, message: `The text \"${match[0]}\" is the home folder of a user.` });\n }\n }\n for (const pattern of extra) {\n // The option patterns of the root package.json names the pattern itself\n if (file === rootFile && line.trim().replace(/,$/, \"\") === JSON.stringify(pattern.source)) continue;\n for (const match of line.matchAll(pattern)) breaks.push({ file, line: index + 1, message: `The text \"${match[0]}\" matches the pattern ${pattern.source}.`, fix: \"Remove the text.\" });\n }\n }\n }\n return breaks;\n },\n};\n","/**\n * The rule `pages-site`: a public repository has a site. A workflow uses the Pages workflow of the template, and the\n * call deploys.\n */\nimport { readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { byCode } from \"../workspace.ts\";\nimport type { Rule } from \"../rule.ts\";\nimport { WORKFLOW, blockEnd, indentOf, keyValue, workflowLines } from \"../workflow.ts\";\nimport { repositoryIsPublic } from \"./license-file.ts\";\n\n/** The Pages workflow of the template, as a call from another repository and as a call from the template itself. */\nexport const PAGES_WORKFLOWS: readonly string[] = [\"mark1russell7/template/.github/workflows/reusable-pages.yml\", \"./.github/workflows/reusable-pages.yml\"];\n\n/** A call of the Pages workflow: its line (from 1), and false when its job sets `deploy: false`. */\nexport interface PagesCall {\n readonly line: number;\n readonly deploys: boolean;\n}\n\n/** This function gives each call of a workflow of `workflows` in the text of a workflow file. The ref after `@` can be any ref. */\nexport function pagesCalls(text: string, workflows: readonly string[] = PAGES_WORKFLOWS): PagesCall[] {\n const lines = workflowLines(text);\n const names = new Set(workflows.map((name) => name.toLowerCase()));\n const calls: PagesCall[] = [];\n lines.forEach((line, index) => {\n const uses = keyValue(line, \"uses\");\n if (uses === undefined || !names.has((uses.split(\"@\")[0] ?? \"\").toLowerCase())) return;\n // The job of the call is the nearest line above it with a smaller indent\n let job = index - 1;\n while (job >= 0 && ((lines[job] ?? \"\").trim() === \"\" || indentOf(lines[job] ?? \"\") >= indentOf(line))) job -= 1;\n const body = job < 0 ? [line] : lines.slice(job, blockEnd(lines, job));\n calls.push({ line: index + 1, deploys: !body.some((text) => keyValue(text, \"deploy\") === \"false\") });\n });\n return calls;\n}\n\nexport const pagesSite: Rule = {\n id: \"pages-site\",\n title: \"A public repository has a workflow that calls the Pages workflow of the template (`reusable-pages.yml`, any ref), and the call deploys.\",\n reason:\n \"Each public project has a site with its Releases page and its Status page, so a reader sees the versions and the open work. On 2026-11-02 eight public repositories had no site: typeset, algebra, headroom, release-train, optional, ste-lint, lag-hud and template.\",\n fix: 'Add `.github/workflows/pages.yml` with a job `uses: mark1russell7/template/.github/workflows/reusable-pages.yml@<commit> # main` and the permissions of CI.md (\"Pages\"). Give `build`, `out` and `roadmap: docs/ROADMAP.md`. After the build, the job starts `site-pages build`, which adds the Releases page and the Status page. Then set the Pages source to \"GitHub Actions\": `gh api -X POST repos/<owner>/<repo>/pages -f build_type=workflow`.',\n sources: [\"vex\", \"crawler\", \"coeval\"].map((repo) => ({ repo, rule: \"pages-site\", doc: \".github/workflows/pages.yml (a call of reusable-pages.yml of the template)\" })),\n options: {\n workflows: { type: \"strings\", default: PAGES_WORKFLOWS, description: \"The workflows that deploy a site, without the ref after `@`.\" },\n },\n check(context, options) {\n const visible = repositoryIsPublic(context);\n if (visible === undefined) return { skipped: \"outside a GitHub Actions run, the rule cannot tell if the repository is public\" };\n if (!visible) return [];\n const files = context.gitFiles();\n if (files === undefined) return { skipped: \"the root is not in a git repository\" };\n const calls = files\n .filter((path) => WORKFLOW.test(path))\n .sort(byCode)\n .flatMap((file) => pagesCalls(readFileSync(join(context.root, file), \"utf8\"), options[\"workflows\"] as readonly string[]).map((call) => ({ file, ...call })));\n if (calls.some((call) => call.deploys)) return [];\n // A call with `deploy: false` builds a test site only, for example in actions-test.yml of the template\n const tests = calls.length === 0 ? \"\" : ` The calls in ${[...new Set(calls.map((call) => call.file))].join(\", \")} have deploy: false.`;\n return [{ file: \".github/workflows/pages.yml\", message: `The repository is public, and no workflow deploys its site with the Pages workflow of the template.${tests}` }];\n },\n};\n","/**\n * The rule `pinned-git-deps`: a dependency from git names a full commit.\n */\nimport { DEPENDENCY_FIELDS, keyLine, specifiersOf, type Break, type Manifest, type Rule } from \"../rule.ts\";\n\n/** The fields of the root `package.json` that replace the specifiers of dependencies. */\nconst OVERRIDE_FIELDS = [\"overrides\", \"resolutions\"] as const;\n\n/** This function tells if a specifier gets the package from git, not from a registry or the workspace. */\nexport function isGitSpecifier(spec: string): boolean {\n const value = spec.trim();\n if (/^(github|gitlab|bitbucket|gist):/i.test(value)) return true;\n if (/^git(\\+[a-z]+)?:/i.test(value) || /^git@/i.test(value)) return true;\n if (/^https?:\\/\\/(www\\.)?(github\\.com|gitlab\\.com|bitbucket\\.org|codeload\\.github\\.com)\\//i.test(value)) return true;\n // npm and pnpm read `owner/repo` and `owner/repo#ref` as a GitHub repository\n return /^[\\w-][\\w.-]*\\/[\\w.-]+(#.*)?$/.test(value) && !value.startsWith(\"@\");\n}\n\n/**\n * This function tells if a git specifier names a commit. A specifier names a commit when its ref\n * (after `#`) is a commit SHA, or when a tarball URL has the SHA in its path.\n */\nexport function isPinned(spec: string, fullSha: boolean): boolean {\n const sha = fullSha ? /^[0-9a-f]{40}$/i : /^[0-9a-f]{7,40}$/i;\n const hash = spec.indexOf(\"#\");\n if (hash >= 0) {\n // pnpm also knows `#commit=<sha>`, and `&` joins the parts of a ref\n const parts = spec.slice(hash + 1).split(\"&\");\n return parts.some((part) => sha.test(part.replace(/^commit=/, \"\")));\n }\n const path = /^https?:\\/\\/[^/]+\\/(.*)$/i.exec(spec.trim())?.[1];\n return path !== undefined && path.split(/[/.]/).some((part) => sha.test(part));\n}\n\n/** This function gives the specifiers of the fields of overrides, also the field `overrides` of `pnpm`. */\nfunction overridesOf(manifest: Manifest): [string, string, string][] {\n const out: [string, string, string][] = [];\n for (const field of OVERRIDE_FIELDS) for (const [name, spec] of specifiersOf(manifest, field)) out.push([field, name, spec]);\n const pnpm = manifest[\"pnpm\"];\n if (typeof pnpm === \"object\" && pnpm !== null) for (const [name, spec] of specifiersOf(pnpm as Manifest, \"overrides\")) out.push([\"pnpm\", name, spec]);\n return out;\n}\n\nexport const pinnedGitDeps: Rule = {\n id: \"pinned-git-deps\",\n title: \"A dependency from git (github:, git+https: or owner/repo) names a full commit SHA.\",\n reason:\n \"A git ref without a commit moves with the branch. Then an install today and an install tomorrow get different code, and the lockfile hides the change.\",\n fix: 'Use the npm version, `workspace:*` for a package of this repository, or `github:owner/repo#<full commit SHA>`.',\n sources: [\n { repo: \"coeval\", rule: \"pinned-deps\", doc: \"CLAUDE.md:41\" },\n { repo: \"coeval\", rule: \"unpublished-dep-pinned\", doc: \"CLAUDE.md:41\" },\n { repo: \"headroom\", rule: \"non-npm-deps-pinned\", doc: \"CLAUDE.md:38\" },\n { repo: \"headroom\", rule: \"pinned-github-specifier\", doc: \"CLAUDE.md:38\" },\n { repo: \"Graph\", rule: \"github-dep-full-sha\", doc: \"docs/decisions.md:1384\" },\n { repo: \"Graph\", rule: \"github-dep-pinned\", doc: \"docs/decisions.md:1384\" },\n { repo: \"client\", rule: \"general-npm-version\", doc: \"CLAUDE.md:54\" },\n ],\n options: {\n fullSha: { type: \"boolean\", default: true, description: \"When false, a short SHA of 7 or more characters is also a commit.\" },\n },\n check(context, options) {\n const fullSha = options[\"fullSha\"] !== false;\n const breaks: Break[] = [];\n for (const info of [context.rootPackage, ...context.packages]) {\n const found: [string, string, string][] = [];\n for (const field of DEPENDENCY_FIELDS) for (const [name, spec] of specifiersOf(info.manifest, field)) found.push([field, name, spec]);\n found.push(...overridesOf(info.manifest));\n for (const [field, name, spec] of found) {\n if (!isGitSpecifier(spec) || isPinned(spec, fullSha)) continue;\n const line = keyLine(info.text, field, name);\n breaks.push({\n file: info.file,\n ...(line === undefined ? {} : { line }),\n message: `${field} \"${name}\" is \"${spec}\": a git dependency without a ${fullSha ? \"full \" : \"\"}commit SHA.`,\n });\n }\n }\n return breaks;\n },\n};\n","/**\n * The rule `push-main-only`: a workflow that starts on `push` and on `pull_request` limits `push` to the default branch.\n * It also has `workflow_dispatch`. Then a commit of a branch with an open pull request starts one run, not two. A person\n * can still start a run on a branch with no pull request.\n */\nimport { readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { byCode } from \"../workspace.ts\";\nimport type { Break, Rule, RuleContext } from \"../rule.ts\";\nimport { WORKFLOW, applySplices, blockEnd, childIndent, childKeys, indentOf, keyValue, valueOf, workflowLines, type Splice } from \"../workflow.ts\";\nimport { listItems } from \"./gate-trigger.ts\";\n\n/** The file of the release flow. A person changes it, with the rule `release-files`, so the fix does not write it. */\nconst RELEASE_FILE = \"release.yml\";\n\n/** The patterns that match each branch. */\nconst EACH_BRANCH: ReadonlySet<string> = new Set([\"*\", \"**\"]);\n\n/** A key of a block, in the quoted forms too. */\nconst KEY = /^\\s*(?:\"([^\"]*)\"|'([^']*)'|([^\\s:]+))\\s*:(\\s.*)?$/;\n\n/** A value with no filters: `{}`, `~` or `null`. */\nconst NO_FILTERS = /^(\\{\\s*\\}|~|null)$/;\n\n/** A text that shows that a workflow reads the tag of a run. */\nconst READS_TAGS = /refs\\/tags|ref_type/i;\n\n/** A workflow of the repository that a job calls. */\nconst LOCAL_CALL = /uses:\\s*[\"']?\\.\\/(\\.github\\/workflows\\/[^\\s\"'@]+)/g;\n\n/** A text that names a branch: `refs/heads/<branch>`, or `ref_name == '<branch>'`. */\nconst NAMED_BRANCH = /refs\\/heads\\/([\\w./-]+)|ref_name\\s*[!=]=\\s*[\"']([^\"']+)[\"']/gi;\n\n/** A trigger of a workflow: its name, the index of its line, and the text after its key. */\ninterface Trigger {\n readonly name: string;\n readonly at: number;\n readonly value: string;\n}\n\n/** The triggers of a workflow, with the form of `on`: a key on each line, a block list, `on: [a, b]`, or `on: { a: ... }`. */\ninterface Triggers {\n readonly form: \"keys\" | \"items\" | \"flow\" | \"map\";\n readonly on: number;\n /** The index after the last line of a flow value. */\n readonly end: number;\n readonly list: readonly Trigger[];\n}\n\n/** A filter of a trigger: its key, its lines and its values. The values are undefined when the rule cannot read them. */\ninterface Filter {\n readonly key: string;\n readonly at: number;\n readonly end: number;\n readonly items: readonly string[] | undefined;\n}\n\n/** The branches that the rule accepts, and the text of the workflows that a workflow calls. */\ninterface Facts {\n readonly branch: string;\n readonly more: readonly string[];\n readonly called: (text: string) => string;\n}\n\n/** A break of a workflow. */\ninterface Finding {\n readonly lines: readonly string[];\n readonly triggers: Triggers;\n readonly push: Trigger;\n readonly filters: readonly Filter[];\n /** The value `true` tells that `push` starts on more branches than the rule accepts. */\n readonly wide: boolean;\n /** The value `true` tells that the workflow has no `workflow_dispatch`. */\n readonly noDispatch: boolean;\n}\n\n/** This function tells if the brackets of a flow value are closed. */\nfunction closed(text: string): boolean {\n let depth = 0;\n let quote = \"\";\n for (const char of text) {\n if (quote !== \"\") {\n if (char === quote) quote = \"\";\n } else if (char === '\"' || char === \"'\") quote = char;\n else if (char === \"[\" || char === \"{\") depth += 1;\n else if (char === \"]\" || char === \"}\") depth -= 1;\n }\n return depth <= 0;\n}\n\n/** This function gives the whole text of a flow value that starts on the line `index`, and the index after its last line. */\nfunction flowValue(lines: readonly string[], index: number, value: string): { text: string; end: number } {\n let text = value;\n let end = index + 1;\n while (!closed(text) && end < lines.length) {\n text += ` ${valueOf(lines[end] ?? \"\")}`;\n end += 1;\n }\n return { text, end };\n}\n\n/** This function splits the text in the outer brackets of a flow value, at each comma of the first level. */\nfunction flowParts(text: string): string[] {\n const parts: string[] = [];\n let depth = 0;\n let quote = \"\";\n let part = \"\";\n for (const char of text.slice(1, -1)) {\n if (quote !== \"\") {\n if (char === quote) quote = \"\";\n } else if (char === '\"' || char === \"'\") quote = char;\n else if (char === \"[\" || char === \"{\") depth += 1;\n else if (char === \"]\" || char === \"}\") depth -= 1;\n else if (char === \",\" && depth === 0) {\n parts.push(part);\n part = \"\";\n continue;\n }\n part += char;\n }\n parts.push(part);\n return parts.map((item) => item.trim()).filter((item) => item !== \"\");\n}\n\n/** This function gives the key and the value of an entry of a flow map. */\nfunction flowEntry(part: string): { key: string; value: string } {\n const colon = part.search(/:(\\s|$)/);\n return colon < 0 ? { key: valueOf(part), value: \"\" } : { key: valueOf(part.slice(0, colon)), value: valueOf(part.slice(colon + 1)) };\n}\n\n/** This function gives the key and the value of a line of a block. */\nfunction keyOf(line: string): { key: string; value: string } | undefined {\n const found = KEY.exec(line);\n if (found === null) return undefined;\n return { key: found[1] ?? found[2] ?? found[3] ?? \"\", value: valueOf(found[4] ?? \"\") };\n}\n\nconst isItem = (line: string): boolean => line.trimStart().startsWith(\"- \");\n\n/** This function reads the triggers of a workflow, in each form of `on`. */\nfunction readTriggers(lines: readonly string[]): Triggers | undefined {\n const on = lines.findIndex((line) => indentOf(line) === 0 && keyValue(line, \"on\") !== undefined);\n if (on < 0) return undefined;\n const value = keyValue(lines[on] ?? \"\", \"on\") ?? \"\";\n if (value === \"\") {\n const next = lines.findIndex((line, index) => index > on && line.trim() !== \"\");\n const first = lines[next] ?? \"\";\n if (next >= 0 && isItem(first)) {\n const list: Trigger[] = [];\n for (let index = next; index < lines.length; index++) {\n const line = lines[index] ?? \"\";\n if (line.trim() === \"\") continue;\n if (!isItem(line) || indentOf(line) !== indentOf(first)) break;\n list.push({ name: valueOf(line.trimStart().slice(2)), at: index, value: \"\" });\n }\n return { form: \"items\", on, end: on + 1, list };\n }\n const list = childKeys(lines, on).flatMap((at) => {\n const entry = keyOf(lines[at] ?? \"\");\n return entry === undefined ? [] : [{ name: entry.key, at, value: entry.value }];\n });\n return { form: \"keys\", on, end: on + 1, list };\n }\n const flow = flowValue(lines, on, value);\n if (value.startsWith(\"[\")) return { form: \"flow\", on, end: flow.end, list: flowParts(flow.text).map((part) => ({ name: valueOf(part), at: on, value: \"\" })) };\n if (value.startsWith(\"{\")) {\n const list = flowParts(flow.text).map((part) => {\n const entry = flowEntry(part);\n return { name: entry.key, at: on, value: entry.value };\n });\n return { form: \"map\", on, end: flow.end, list };\n }\n return { form: \"flow\", on, end: on + 1, list: [{ name: value, at: on, value: \"\" }] };\n}\n\n/** This function gives the filters of a trigger, in the block form and in the flow form. */\nfunction filtersOf(lines: readonly string[], trigger: Trigger): Filter[] {\n if (trigger.value.startsWith(\"{\")) {\n const flow = flowValue(lines, trigger.at, trigger.value);\n return flowParts(flow.text).map((part) => {\n const entry = flowEntry(part);\n const items = entry.value.startsWith(\"[\") ? flowParts(entry.value).map(valueOf) : [entry.value];\n return { key: entry.key, at: trigger.at, end: flow.end, items };\n });\n }\n if (trigger.value !== \"\") return [];\n return childKeys(lines, trigger.at).flatMap((at) => {\n const entry = keyOf(lines[at] ?? \"\");\n if (entry === undefined) return [];\n const list = listItems(lines, at, entry.value);\n if (list !== undefined) return [{ key: entry.key, at, end: list.end, items: list.items }];\n return [{ key: entry.key, at, end: at + 1, items: /^[[{]/.test(entry.value) ? undefined : [entry.value] }];\n });\n}\n\n/** This function gives the break of a workflow, or undefined when the rule leaves the workflow alone. */\nfunction findBreak(text: string, facts: Facts): Finding | undefined {\n const lines = workflowLines(text);\n const triggers = readTriggers(lines);\n if (triggers === undefined) return undefined;\n const push = triggers.list.find((trigger) => trigger.name === \"push\");\n const pull = triggers.list.find((trigger) => trigger.name === \"pull_request\");\n if (push === undefined || pull === undefined) return undefined;\n // A pull request trigger that does not start on a new commit does not run the commit two times\n const types = filtersOf(lines, pull).find((filter) => filter.key === \"types\");\n if (types?.items !== undefined && !types.items.includes(\"synchronize\")) return undefined;\n const filters = filtersOf(lines, push);\n const has = (key: string): Filter | undefined => filters.find((filter) => filter.key === key);\n const branches = has(\"branches\");\n // With only a tag filter, GitHub starts the workflow on tags and on no branch\n if (branches === undefined && has(\"branches-ignore\") === undefined && (has(\"tags\") ?? has(\"tags-ignore\")) !== undefined) return undefined;\n const allowed = [facts.branch, ...facts.more];\n const items = branches?.items;\n const wide = items === undefined || items.length === 0 || !items.every((item) => allowed.includes(item));\n const noDispatch = !triggers.list.some((trigger) => trigger.name === \"workflow_dispatch\");\n if (!wide && !noDispatch) return undefined;\n return { lines, triggers, push, filters, wide, noDispatch };\n}\n\n/** This function gives the reason why a person must change the workflow, or undefined when the fix can write it. */\nfunction refusal(file: string, text: string, finding: Finding, facts: Facts): string | undefined {\n if (file.slice(file.lastIndexOf(\"/\") + 1) === RELEASE_FILE) return `${RELEASE_FILE} belongs to the release flow`;\n const { triggers, filters, wide } = finding;\n if (triggers.form === \"map\") return \"on has the flow form of a map\";\n if (triggers.end > triggers.on + 1) return \"on is a flow value of more than one line\";\n if (!wide) return undefined;\n if (filters.some((filter) => filter.key === \"branches-ignore\")) return \"on.push has branches-ignore, and only a person can tell which ignored branches stay\";\n const allowed = [facts.branch, ...facts.more];\n const branches = filters.find((filter) => filter.key === \"branches\");\n if (branches !== undefined) {\n if (branches.items === undefined) return \"the rule cannot read on.push.branches\";\n if (branches.at === finding.push.at) return \"on.push.branches is in the flow form of a map\";\n const named = branches.items.filter((item) => !EACH_BRANCH.has(item) && !allowed.includes(item));\n if (named.length > 0 || branches.items.length === 0) return `on.push.branches names ${named.join(\", \") || \"no branch\"}. Remove them, or add them to the option branches of the rule`;\n }\n const others = [...`${workflowLines(text).join(\"\\n\")}\\n${facts.called(text)}`.matchAll(NAMED_BRANCH)].map((match) => match[1] ?? match[2] ?? \"\").filter((name) => !allowed.includes(name));\n if (others.length > 0) return `the workflow reads the branch ${[...new Set(others)].join(\", \")}, so a limit on push can stop a job`;\n return undefined;\n}\n\n/** This function gives a comment at the end of a line, with its space, or an empty text. */\nconst commentOf = (line: string): string => /\\s+#.*$/.exec(line)?.[0] ?? \"\";\n\n/** This function writes the fix of a break: the new filter of `push`, and `workflow_dispatch`. Each other line stays. */\nfunction convert(text: string, file: string, finding: Finding, facts: Facts): string {\n const { lines, triggers, push, filters, wide, noDispatch } = finding;\n const original = text.split(/\\r?\\n/);\n const branches = filters.find((filter) => filter.key === \"branches\");\n // A push with no branch filter also starts on tags. A workflow that reads the tag keeps that start\n const tags = wide && branches === undefined && READS_TAGS.test(`${workflowLines(text).join(\"\\n\")}\\n${facts.called(text)}`);\n const limit = `branches: [${facts.branch}]`;\n const limits = (pad: string): string[] => (wide ? [`${pad}${limit}`, ...(tags ? [`${pad}tags: [\"**\"]`] : [])] : []);\n const name = file.slice(file.lastIndexOf(\"/\") + 1);\n const dispatch = (pad: string): string[] => (noDispatch ? [`${pad}# A person starts a run on a branch with no pull request: gh workflow run ${name} --ref <branch>`, `${pad}workflow_dispatch:`] : []);\n const splices: Splice[] = [];\n\n if (triggers.form === \"flow\") {\n const line = original[triggers.on] ?? \"\";\n const body = triggers.list.flatMap((trigger) => [` ${trigger.name}:`, ...(trigger === push ? limits(\" \") : [])]);\n splices.push({ at: triggers.on, remove: 1, insert: [`${line.slice(0, line.indexOf(\":\") + 1)}${commentOf(line)}`, ...body, ...dispatch(\" \")] });\n } else if (triggers.form === \"items\") {\n const pad = \" \".repeat(Math.max(indentOf(lines[triggers.list[0]?.at ?? 0] ?? \"\"), 2));\n for (const trigger of triggers.list) {\n splices.push({ at: trigger.at, remove: 1, insert: [`${pad}${trigger.name}:${commentOf(original[trigger.at] ?? \"\")}`, ...(trigger === push ? limits(`${pad} `) : [])] });\n }\n splices.push({ at: (triggers.list.at(-1)?.at ?? triggers.on) + 1, remove: 0, insert: dispatch(pad) });\n } else {\n const line = original[push.at] ?? \"\";\n const pad = indentOf(lines[push.at] ?? \"\");\n const inner = \" \".repeat(childIndent(lines, push.at) ?? pad + Math.max(pad - indentOf(lines[triggers.on] ?? \"\"), 2));\n if (wide && branches !== undefined) {\n splices.push({ at: branches.at, remove: branches.end - branches.at, insert: [`${\" \".repeat(indentOf(lines[branches.at] ?? \"\"))}${limit}${commentOf(original[branches.at] ?? \"\")}`] });\n } else if (wide && push.value !== \"\" && !NO_FILTERS.test(push.value)) {\n const added = [limit, ...(tags ? ['tags: [\"**\"]'] : [])].join(\", \");\n splices.push({ at: push.at, remove: 1, insert: [line.replace(/\\{\\s*/, () => `{ ${added}, `)] });\n } else if (wide) {\n splices.push({ at: push.at, remove: 1, insert: [line.replace(/:\\s+(\\{\\s*\\}|~|null)/, \":\"), ...limits(inner)] });\n }\n const last = triggers.list.at(-1)?.at ?? triggers.on;\n let end = blockEnd(lines, last);\n while (end > last + 1 && (lines[end - 1] ?? \"\").trim() === \"\") end -= 1;\n splices.push({ at: end, remove: 0, insert: dispatch(\" \".repeat(pad)) });\n }\n return applySplices(text, splices);\n}\n\n/** This function gives the default branch: the event file of GitHub Actions, the `HEAD` of the remote, or else `main`. */\nfunction defaultBranch(context: RuleContext): string {\n const file = context.env[\"GITHUB_EVENT_PATH\"];\n if (file !== undefined && file !== \"\") {\n try {\n const branch = (JSON.parse(readFileSync(file, \"utf8\")) as { repository?: { default_branch?: unknown } }).repository?.default_branch;\n if (typeof branch === \"string\" && branch !== \"\") return branch;\n } catch {\n // A missing or a wrong event file gives the next source\n }\n }\n const head = context.git([\"symbolic-ref\", \"--quiet\", \"--short\", \"refs/remotes/origin/HEAD\"])?.trim();\n return head === undefined || head === \"\" ? \"main\" : head.replace(/^origin\\//, \"\");\n}\n\nexport const pushMainOnly: Rule = {\n id: \"push-main-only\",\n title: \"A workflow that starts on push and on pull_request limits push to the default branch with branches, and has workflow_dispatch.\",\n reason:\n \"A commit on a branch with an open pull request starts such a workflow two times: one run for push and one run for pull_request. On 2026-11-04 the CI queue held about 263 jobs, and a rough estimate puts about 65 of them in such second runs. The run for pull_request gives the required checks, so the run for push adds nothing. With workflow_dispatch, a person can still start a run on a branch with no pull request.\",\n fix: 'Add `branches: [<default branch>]` under `on.push`, and add `workflow_dispatch:` under `on` (CI.md, \"One run for each commit\"). A push with only a tag filter, or a pull request trigger with no `synchronize`, is not a break. For a long-lived branch, add the branch to the option branches.',\n sources: [\n { repo: \"template\", rule: \"push-main-only\", doc: \".github/workflows/security.yml (push has branches: [main], and the file has workflow_dispatch)\" },\n { repo: \"crawler\", rule: \"push-main-only\", doc: \".github/workflows/ci.yml (push has branches: [main], and the file has workflow_dispatch)\" },\n { repo: \"systems\", rule: \"push-main-only\", doc: \".github/workflows/process.yml (push has branches: [main], and the file has workflow_dispatch)\" },\n ],\n options: {\n branches: { type: \"strings\", default: [], description: \"More branches that `on.push.branches` can name, for example a long-lived release branch.\" },\n },\n check(context, options) {\n const files = context.gitFiles();\n if (files === undefined) return { skipped: \"the root is not in a git repository\" };\n const workflows = files.filter((path) => WORKFLOW.test(path)).sort(byCode);\n if (workflows.length === 0) return { skipped: \"the repository has no workflow\" };\n const read = (file: string): string => {\n try {\n return readFileSync(join(context.root, file), \"utf8\");\n } catch {\n return \"\";\n }\n };\n const facts: Facts = {\n branch: defaultBranch(context),\n more: Array.isArray(options[\"branches\"]) ? (options[\"branches\"] as readonly string[]) : [],\n called: (text) => [...text.matchAll(LOCAL_CALL)].map((match) => workflowLines(read(match[1] ?? \"\")).join(\"\\n\")).join(\"\\n\"),\n };\n const breaks: Break[] = [];\n for (const file of workflows) {\n const text = read(file);\n const finding = findBreak(text, facts);\n if (finding === undefined) continue;\n const parts = [\n ...(finding.wide ? [`push starts on more branches than ${[facts.branch, ...facts.more].join(\", \")}, so a commit of a pull request starts it two times`] : []),\n ...(finding.noDispatch ? [\"it has no workflow_dispatch, so a person cannot start a run on a branch\"] : []),\n ];\n const reason = refusal(file, text, finding, facts);\n const after = reason === undefined ? convert(text, file, finding, facts) : undefined;\n breaks.push({\n file,\n line: finding.push.at + 1,\n message: `${file} starts on push and on pull_request: ${parts.join(\", and \")}.`,\n ...(after !== undefined && findBreak(after, facts) === undefined ? { edits: [{ file, before: text, after }] } : { fix: `A person must change it, because ${reason ?? \"the fix does not end the break\"}. ${pushMainOnly.fix}` }),\n });\n }\n return breaks;\n },\n};\n","/**\n * The rule `release-files`: a pull request changes a file of the release flow only with a reason\n * that everyone can see.\n */\nimport { existsSync, readFileSync } from \"node:fs\";\nimport { rangeOf } from \"../change.ts\";\nimport { matchesAny, type Break, type Rule, type RuleContext } from \"../rule.ts\";\n\n/** The facts of the pull request in the event file of GitHub Actions. */\ninterface PullRequest {\n /** The body, or an empty string. */\n readonly body: string;\n /** The number of commits, if the event file gives it. */\n readonly commits?: number;\n}\n\n/** This function gives the pull request of the event file of GitHub Actions. With no event file, the body is empty. */\nfunction pullRequestOf(context: RuleContext): PullRequest {\n const file = context.env[\"GITHUB_EVENT_PATH\"];\n if (file === undefined || file === \"\" || !existsSync(file)) return { body: \"\" };\n try {\n const event = JSON.parse(readFileSync(file, \"utf8\")) as { pull_request?: { body?: unknown; commits?: unknown } };\n const body = typeof event.pull_request?.body === \"string\" ? event.pull_request.body : \"\";\n const commits = event.pull_request?.commits;\n return typeof commits === \"number\" ? { body, commits } : { body };\n } catch {\n return { body: \"\" };\n }\n}\n\n/** This function escapes the special characters of a regular expression. */\nconst escape = (text: string): string => text.replace(/[\\\\^$.|?*+()[\\]{}]/g, \"\\\\$&\");\n\nexport const releaseFiles: Rule = {\n id: \"release-files\",\n title: \"A pull request changes `.github/workflows/release.yml` or `scripts/release/` only with a `Release-Edit: <reason>` line.\",\n reason:\n \"The release flow publishes to npm with trusted publishing. A change of its files by a session that does not own the release can stop or break each release.\",\n fix: \"Revert the change of the release files. When the owner asked for the change, add the line `Release-Edit: <reason>` to the last commit message or to the body of the pull request. A re-run of a job reads the body of the event that started the run, so after a change of the body, push a commit.\",\n sources: [\n { repo: \"coeval\", rule: \"no-release-edit\", doc: \"CLAUDE.md:40\" },\n { repo: \"coeval\", rule: \"no-release-edits\", doc: \"CLAUDE.md:40\" },\n { repo: \"crawler\", rule: \"no-release-edit\", doc: \"CLAUDE.md:80\" },\n { repo: \"crawler\", rule: \"no-release-edits\", doc: \"CLAUDE.md:80\" },\n { repo: \"headroom\", rule: \"no-release-edits\", doc: \"CLAUDE.md:37\" },\n { repo: \"headroom\", rule: \"release-files-frozen\", doc: \"CLAUDE.md:37\" },\n ],\n options: {\n paths: { type: \"strings\", default: [\".github/workflows/release.yml\", \"scripts/release/**\"], description: \"The globs of the files that the release flow owns.\" },\n trailer: { type: \"string\", default: \"Release-Edit\", description: \"The key of the line that gives the reason of a change.\" },\n authors: {\n type: \"strings\",\n default: [\"mark1russell7-release-train[bot]\"],\n description: \"The authors of the release flow. A change of the release files in commits of only these authors (the sync of the template) needs no reason.\",\n },\n },\n check(context, options) {\n const range = rangeOf(context);\n if (\"skipped\" in range) return range;\n const globs = Array.isArray(options[\"paths\"]) ? options[\"paths\"] : [];\n const changed = (context.git([\"diff\", \"--name-only\", ...range.diff]) ?? \"\")\n .split(/\\r?\\n/)\n .filter((file) => file !== \"\" && matchesAny(file, globs));\n if (changed.length === 0) return [];\n const trailer = typeof options[\"trailer\"] === \"string\" ? options[\"trailer\"] : \"Release-Edit\";\n const line = new RegExp(`^${escape(trailer)}:[ \\\\t]*\\\\S`, \"im\");\n const pullRequest = pullRequestOf(context);\n if (line.test(pullRequest.body)) return [];\n // A shallow checkout can end inside the change: a commit at its end looks like a first commit, so it seems to change\n // each file, and the commits under it are not there. Then the authors and the messages are not those of the change.\n // A pull request of one commit is complete at depth 2, because its commit is the whole change.\n const single = pullRequest.commits === 1 && context.git([\"rev-parse\", \"--verify\", \"--quiet\", `${range.ends[1]}^2`]) === undefined;\n if (!single && context.git([\"merge-base\", ...range.ends]) === undefined) {\n throw new Error(\n `The checkout does not have the merge base of ${range.ends.join(\" and \")}, so the rule cannot read each commit of the change. Use fetch-depth 0, or the CI of the template, which deepens the checkout of a pull request to its merge base.`,\n );\n }\n const messages = context.git([\"log\", \"--no-merges\", \"--format=%B\", ...range.log]) ?? \"\";\n if (line.test(messages)) return [];\n const authors = new Set(Array.isArray(options[\"authors\"]) ? options[\"authors\"] : []);\n const changers = (context.git([\"log\", \"--no-merges\", \"--format=%an\", ...range.log, \"--\", ...changed]) ?? \"\").split(/\\r?\\n/).filter((name) => name !== \"\");\n if (changers.length > 0 && changers.every((name) => authors.has(name))) return [];\n return changed.map((file): Break => ({ file, message: `The change edits ${file}, a file of the release flow, with no \"${trailer}: <reason>\" line.` }));\n },\n};\n","/**\n * The rule `required-scripts`: the root `package.json` keeps the scripts that the shared CI starts.\n */\nimport { DEPENDENCY_FIELDS, hasFile, lineOf, specifiersOf, type Break, type RuleContext, type Rule } from \"../rule.ts\";\n\n/** The package of the STE linter. */\nconst STE_LINT = \"@mark1russell7/ste-lint\";\n\n/** The configuration file of the STE linter. */\nconst STE_CONFIG = \"ste.config.json\";\n\n/** The examples of the scripts that the fix shows. */\nconst EXAMPLES: Readonly<Record<string, string>> = { \"lint:ste\": \"ste-lint\", typecheck: \"pnpm -r run typecheck\" };\n\n/**\n * This function tells if the repository uses the STE prose standard: the root `package.json` has a\n * dependency on `@mark1russell7/ste-lint`, or the root has a `ste.config.json`.\n */\nexport function usesSteLint(context: RuleContext): boolean {\n const manifest = context.rootPackage.manifest;\n if (DEPENDENCY_FIELDS.some((field) => specifiersOf(manifest, field).some(([name]) => name === STE_LINT))) return true;\n return hasFile(context.root, STE_CONFIG);\n}\n\nexport const requiredScripts: Rule = {\n id: \"required-scripts\",\n title: \"The root `package.json` has the script `typecheck`, and also `lint:ste` when the repository uses `ste-lint`.\",\n reason:\n \"The shared CI starts each script of its list that `package.json` has, and it skips the others. Thus a removed script turns its check off, and nothing shows it.\",\n fix: 'Add the script, for example `\"lint:ste\": \"ste-lint\"` or `\"typecheck\": \"pnpm -r run typecheck\"`.',\n sources: [\n { repo: \"client\", rule: \"ste-prose\", doc: \"CLAUDE.md:5\" },\n { repo: \"coeval\", rule: \"ste-prose\", doc: \"CLAUDE.md:5\" },\n { repo: \"crawler\", rule: \"ste-prose\", doc: \"CLAUDE.md:5\" },\n { repo: \"Graph\", rule: \"ste-prose\", doc: \"CLAUDE.md:5\" },\n { repo: \"headroom\", rule: \"ste-prose\", doc: \"CLAUDE.md:19\" },\n { repo: \"systems\", rule: \"lint-ste-in-ci\", doc: \"CLAUDE.md:24\" },\n { repo: \"Vex\", rule: \"ste-prose\", doc: \"CLAUDE.md:5\" },\n { repo: \"coeval\", rule: \"tsconfig-test\", doc: \"CLAUDE.md:18\" },\n { repo: \"crawler\", rule: \"tsconfig-test\", doc: \"CLAUDE.md:18\" },\n { repo: \"headroom\", rule: \"tsconfig-test\", doc: \"CLAUDE.md:32\" },\n { repo: \"Vex\", rule: \"tsconfig-test\", doc: \"CLAUDE.md:23\" },\n ],\n options: {\n scripts: { type: \"strings\", default: [\"typecheck\"], description: \"The scripts that the root `package.json` has.\" },\n steScripts: {\n type: \"strings\",\n default: [\"lint:ste\"],\n description: \"The scripts that the root `package.json` has when the repository uses `ste-lint` (a dependency on `@mark1russell7/ste-lint`, or a `ste.config.json` at the root).\",\n },\n },\n check(context, options) {\n const always = Array.isArray(options[\"scripts\"]) ? options[\"scripts\"] : [\"typecheck\"];\n const ste = Array.isArray(options[\"steScripts\"]) ? options[\"steScripts\"] : [\"lint:ste\"];\n const wanted = [...new Set([...always, ...(usesSteLint(context) ? ste : [])])];\n const value = context.rootPackage.manifest[\"scripts\"];\n const scripts = typeof value === \"object\" && value !== null ? (value as Record<string, unknown>) : {};\n const line = lineOf(context.rootPackage.text, '\"scripts\"');\n return wanted\n .filter((name) => typeof scripts[name] !== \"string\" || scripts[name] === \"\")\n .map((name): Break => {\n const example = EXAMPLES[name];\n const why = ste.includes(name) && !always.includes(name) ? \" The repository uses ste-lint.\" : \"\";\n return {\n file: context.rootPackage.file,\n ...(line === undefined ? {} : { line }),\n message: `The root package.json has no script \"${name}\".${why}`,\n fix: example === undefined ? `Add the script \"${name}\".` : `Add the script, for example \"${name}\": \"${example}\".`,\n };\n });\n },\n};\n","/**\n * The rule `roadmap-parses`: each roadmap that a workflow gives to the Status page parses, on the pull request.\n */\nimport { existsSync, readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { parseRoadmap, RoadmapParseError } from \"@mark1russell7/site-pages\";\nimport { byCode } from \"../workspace.ts\";\nimport { cleanPath, type Break, type Rule } from \"../rule.ts\";\n\n/** A workflow file. */\nconst WORKFLOW = /^\\.github\\/workflows\\/[^/]+\\.ya?ml$/;\n\n/** A roadmap that a workflow names: the value of a `roadmap:` key, with its file and line. */\ninterface NamedRoadmap {\n readonly roadmap: string;\n readonly file: string;\n readonly line: number;\n}\n\n/** This function tells if a line calls the Pages workflow of the template (`uses: ...reusable-pages.yml`). */\nfunction callsPages(line: string): boolean {\n let text = line.trimStart();\n if (text.startsWith(\"- \")) text = text.slice(2).trimStart();\n if (!text.startsWith(\"uses:\")) return false;\n const value = text.slice(\"uses:\".length).trim();\n return /(?:^|\\/)reusable-pages\\.ya?ml(?:@|$|\\s)/.test(value);\n}\n\nconst indentOf = (line: string): number => line.length - line.trimStart().length;\n\n/** This function tells if a line is `site-pages: false`: the site has no Status page. */\nfunction noStatusPage(line: string): boolean {\n const text = line.trimStart();\n if (!text.startsWith(\"site-pages:\")) return false;\n let value = text.slice(\"site-pages:\".length);\n const comment = value.indexOf(\" #\");\n if (comment >= 0) value = value.slice(0, comment);\n return [\"false\", '\"false\"', \"'false'\"].includes(value.trim());\n}\n\n/**\n * This function gives the line numbers of each call of the Pages workflow that gives no `roadmap` key. The key is in the\n * job of the call: the lines around it with the same indent or more. A job with `site-pages: false` has no Status page.\n */\nfunction callsWithoutRoadmap(lines: readonly string[]): number[] {\n const found: number[] = [];\n lines.forEach((line, index) => {\n if (!callsPages(line)) return;\n const indent = indentOf(line);\n const inJob = (text: string): boolean => text.trim() === \"\" || indentOf(text) >= indent;\n let first = index;\n while (first > 0 && inJob(lines[first - 1] ?? \"\")) first -= 1;\n let last = index;\n while (last < lines.length - 1 && inJob(lines[last + 1] ?? \"\")) last += 1;\n const job = lines.slice(first, last + 1);\n if (!job.some((text) => text.trimStart().startsWith(\"roadmap:\") || noStatusPage(text))) found.push(index + 1);\n });\n return found;\n}\n\n/** This function gives the value of a `roadmap: <file>` line, or undefined for another line, an empty value or an expression. */\nexport function roadmapOfLine(line: string): string | undefined {\n const text = line.trimStart();\n if (!text.startsWith(\"roadmap:\")) return undefined;\n let value = text.slice(\"roadmap:\".length);\n const comment = value.indexOf(\" #\");\n if (comment >= 0) value = value.slice(0, comment);\n value = value.trim();\n const quote = value.charAt(0);\n if (value.length >= 2 && (quote === '\"' || quote === \"'\") && value.endsWith(quote)) value = value.slice(1, -1).trim();\n if (value === \"\" || value.includes(\"${{\")) return undefined;\n return cleanPath(value);\n}\n\nexport const roadmapParses: Rule = {\n id: \"roadmap-parses\",\n title: \"Each call of the Pages workflow gives a roadmap, and each roadmap that a workflow gives to the Status page (the input `roadmap`) parses as site-pages reads it.\",\n reason:\n \"Only the Pages job on main reads the roadmap. A pull request with a bad table row passes each check, and then the build of the site stops and the site stays stale. On 2026-10-30, one repository had 3 red Pages runs in a row because of one row with 2 cells under a header with 4. A site with no roadmap is the same fault with no error: its Status page shows no item of the plan, and each check is green. On 2026-10-30, 2 repositories had a site with no roadmap.\",\n fix: 'Give the roadmap file to the Pages workflow (`roadmap: docs/ROADMAP.md`). Correct the row or the heading that the message names. Each table row has one cell for each column of its header, and the file has a table with an ID column and a Status column, or a heading \"### `id`: Title\".',\n sources: [{ repo: \"fleet\", rule: \"fail-closed\", doc: \"docs/STRATEGY.md (2026-10-30, gates and probes fail closed)\" }],\n options: {\n roadmaps: { type: \"strings\", default: [], description: \"More roadmap files to check: a roadmap that no workflow names with a `roadmap:` key.\" },\n },\n check(context, options) {\n const files = context.gitFiles();\n if (files === undefined) return { skipped: \"the root is not in a git repository\" };\n const named: NamedRoadmap[] = [];\n const breaks: Break[] = [];\n for (const file of files.filter((path) => WORKFLOW.test(path)).sort(byCode)) {\n const lines = readFileSync(join(context.root, file), \"utf8\").split(/\\r?\\n/);\n lines.forEach((line, index) => {\n const roadmap = roadmapOfLine(line);\n if (roadmap !== undefined) named.push({ roadmap, file, line: index + 1 });\n });\n // A site with no roadmap has a Status page with only the open pull requests and issues: the plan is not on it.\n for (const line of callsWithoutRoadmap(lines)) {\n breaks.push({ file, line, message: `${file} builds the site with the Pages workflow and gives no roadmap, so the Status page shows no roadmap item.` });\n }\n }\n for (const roadmap of options[\"roadmaps\"] as readonly string[]) named.push({ roadmap: cleanPath(roadmap), file: \"the option roadmaps\", line: 0 });\n if (named.length === 0 && breaks.length === 0) return { skipped: \"no workflow builds a site with the Pages workflow, and no workflow names a roadmap\" };\n const seen = new Set<string>();\n for (const { roadmap, file, line } of named) {\n if (seen.has(roadmap)) continue;\n seen.add(roadmap);\n if (!existsSync(join(context.root, roadmap))) {\n breaks.push({ file: line > 0 ? file : roadmap, ...(line > 0 ? { line } : {}), message: `${file} names the roadmap ${roadmap}, and the file does not exist.` });\n continue;\n }\n try {\n parseRoadmap(readFileSync(join(context.root, roadmap), \"utf8\"), { file: roadmap });\n } catch (error) {\n if (!(error instanceof RoadmapParseError)) throw error;\n // The message starts with \"<file>:<line>: \" or \"<file>: \". The break has the file and the line in their own fields.\n const at = /^[^:]+:(\\d+): /.exec(error.message);\n const rest = at ? error.message.slice(at[0].length) : error.message.slice(error.message.indexOf(\": \") + 2);\n breaks.push({ file: roadmap, ...(at ? { line: Number(at[1]) } : {}), message: `${roadmap}: ${rest}` });\n }\n }\n return breaks;\n },\n};\n","/**\n * The rule `runner-budget`: the workflows share the runners of the account. Each matrix has a `max-parallel`, each\n * workflow has a concurrency group, and each schedule starts at the minute of its repository and file.\n */\nimport { readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { byCode } from \"../workspace.ts\";\nimport { replaceLine, type Break, type Edit, type Rule } from \"../rule.ts\";\nimport { WORKFLOW, blockEnd, childIndent, indentOf, keyValue, workflowLines } from \"../workflow.ts\";\n\n/**\n * This function gives the minute (1 to 59) of the schedules of a workflow: the FNV-1a hash of the repository and the\n * file. Two repositories with the same workflow thus start at different minutes, and no schedule starts at minute 0,\n * where GitHub has the most load.\n */\nexport function scheduleMinute(repository: string, file: string): number {\n let hash = 0x811c9dc5;\n for (const char of `${repository.toLowerCase()}/${file}`) {\n hash ^= char.codePointAt(0) ?? 0;\n hash = Math.imul(hash, 0x01000193) >>> 0;\n }\n return (hash % 59) + 1;\n}\n\n/** This function gives `owner/name` from a git remote URL, or undefined for a URL that is not of GitHub. */\nexport function repositoryOfRemote(url: string): string | undefined {\n const text = url.trim();\n for (const prefix of [\"git@github.com:\", \"ssh://git@github.com/\", \"https://github.com/\", \"http://github.com/\", \"git+https://github.com/\"]) {\n if (!text.startsWith(prefix)) continue;\n let rest = text.slice(prefix.length);\n if (rest.endsWith(\"/\")) rest = rest.slice(0, -1);\n if (rest.endsWith(\".git\")) rest = rest.slice(0, -4);\n const parts = rest.split(\"/\");\n return parts.length === 2 && parts.every((part) => part !== \"\") ? rest : undefined;\n }\n return undefined;\n}\n\n/** This function tells if a workflow is a shared workflow (`on: workflow_call`). Its caller gives the concurrency group. */\nfunction isShared(lines: readonly string[]): boolean {\n return lines.some((line) => {\n const text = line.trimStart();\n return text.startsWith(\"workflow_call:\") || text === \"workflow_call\" || text === \"- workflow_call\" || (text.startsWith(\"on:\") && text.includes(\"workflow_call\"));\n });\n}\n\n/** A job of a workflow: its name, its line (from 1), its keys with their values, and its concurrency group. */\ninterface Job {\n readonly name: string;\n readonly line: number;\n readonly grouped: boolean;\n /** The file name of the shared workflow that the job calls (`uses: .../.github/workflows/<name>`), if any. */\n readonly calls?: string;\n}\n\n/** This function gives the jobs of a workflow. */\nfunction jobsOf(lines: readonly string[]): Job[] {\n const jobs = lines.findIndex((line) => indentOf(line) === 0 && line.startsWith(\"jobs:\"));\n if (jobs < 0) return [];\n const jobIndent = childIndent(lines, jobs);\n const end = blockEnd(lines, jobs);\n const found: Job[] = [];\n for (let i = jobs + 1; i < end; i++) {\n const line = lines[i] ?? \"\";\n if (line.trim() === \"\" || indentOf(line) !== jobIndent) continue;\n const keyIndent = childIndent(lines, i);\n const keys = lines.slice(i + 1, blockEnd(lines, i)).filter((text) => indentOf(text) === keyIndent);\n const uses = keys.map((text) => keyValue(text, \"uses\")).find((value) => value !== undefined);\n const marker = \".github/workflows/\";\n const at = uses === undefined ? -1 : uses.indexOf(marker);\n const calls = uses === undefined || at < 0 ? undefined : (uses.slice(at + marker.length).split(\"@\")[0] ?? \"\");\n found.push({ name: line.trim().replace(/:$/, \"\"), line: i + 1, grouped: keys.some((text) => keyValue(text, \"concurrency\") !== undefined), ...(calls === undefined ? {} : { calls }) });\n }\n return found;\n}\n\nconst hasTopGroup = (lines: readonly string[]): boolean => lines.some((line) => indentOf(line) === 0 && line.startsWith(\"concurrency:\"));\n\n/**\n * This function gives the edit that adds a concurrency group at the top of a workflow, before `jobs:`. A new run of a pull\n * request stops the old run. A run of another event has the group of its commit, so that no release or scheduled run stops.\n */\nfunction groupEdits(file: string, text: string, lines: readonly string[]): Edit[] {\n const jobs = lines.findIndex((line) => indentOf(line) === 0 && line.startsWith(\"jobs:\"));\n if (jobs < 0) return [];\n const pad = \" \".repeat(childIndent(lines, jobs) ?? 2);\n const original = text.split(/\\r?\\n/)[jobs] ?? \"jobs:\";\n const group = [\"concurrency:\", pad + \"group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }}\", pad + \"cancel-in-progress: ${{ github.event_name == 'pull_request' }}\", \"\", original];\n return [{ file, before: text, after: replaceLine(text, jobs + 1, group) }];\n}\n\n/**\n * This function gives the breaks of the concurrency groups. A workflow with no group at the top needs one in each job.\n * A job that calls a shared workflow of `grouped` gets its group from the jobs of that workflow. A shared workflow gets\n * its group from its caller, but a shared workflow of `grouped` has a group in each job.\n */\nfunction concurrencyBreaks(file: string, text: string, lines: readonly string[], grouped: readonly string[]): Break[] {\n const name = file.slice(file.lastIndexOf(\"/\") + 1);\n const jobs = jobsOf(lines);\n if (isShared(lines)) {\n if (!grouped.includes(name)) return [];\n return jobs.filter((job) => !job.grouped).map((job) => ({ file, line: job.line, message: `${file}: the job ${job.name} has no concurrency group, and its callers rely on it (the option grouped).` }));\n }\n if (hasTopGroup(lines)) return [];\n const missing = jobs.filter((job) => !job.grouped && !(job.calls !== undefined && grouped.includes(job.calls)));\n const edits = missing.length === 0 ? [] : groupEdits(file, text, lines);\n return missing.map((job) => ({ file, line: job.line, message: `${file}: the job ${job.name} has no concurrency group, and the workflow has none.`, edits }));\n}\n\n/** This function gives the breaks of the matrices: each `strategy` with a `matrix` has a `max-parallel` of `limit` or less. */\nfunction matrixBreaks(file: string, text: string, lines: readonly string[], limit: number): Break[] {\n const breaks: Break[] = [];\n const originals = text.split(/\\r?\\n/);\n lines.forEach((line, index) => {\n if (keyValue(line, \"strategy\") === undefined) return;\n const keyIndent = childIndent(lines, index);\n if (keyIndent === undefined) return;\n const keys: number[] = [];\n for (let i = index + 1; i < blockEnd(lines, index); i++) if ((lines[i] ?? \"\").trim() !== \"\" && indentOf(lines[i] ?? \"\") === keyIndent) keys.push(i);\n if (!keys.some((i) => keyValue(lines[i] ?? \"\", \"matrix\") !== undefined)) return;\n const at = keys.find((i) => keyValue(lines[i] ?? \"\", \"max-parallel\") !== undefined);\n const raw = at === undefined ? undefined : keyValue(lines[at] ?? \"\", \"max-parallel\");\n const value = raw === undefined ? Number.NaN : Number(raw);\n const wanted = `${\" \".repeat(keyIndent)}max-parallel: ${String(limit)}`;\n if (at === undefined || raw === undefined) {\n const after = replaceLine(text, index + 1, [originals[index] ?? line, wanted]);\n breaks.push({ file, line: index + 1, message: `${file}: a matrix has no max-parallel.`, edits: [{ file, before: text, after }] });\n } else if (!Number.isInteger(value) || value < 1 || value > limit) {\n const after = replaceLine(text, at + 1, [wanted]);\n breaks.push({ file, line: index + 1, message: `${file}: a matrix has max-parallel ${raw}, and the most is ${String(limit)}.`, edits: [{ file, before: text, after }] });\n }\n });\n return breaks;\n}\n\n/**\n * This function gives the minute field of a schedule that starts `perHour` times in each hour, at equal steps. One start is at\n * `minute`: `\"18\"` for 1, `\"18,48\"` for 2. The list is in the order of the numbers.\n */\nexport function minuteField(minute: number, perHour: number): string {\n const step = 60 / perHour;\n return Array.from({ length: perHour }, (_, k) => (minute + k * step) % 60)\n .sort((a, b) => a - b)\n .join(\",\");\n}\n\n/** This function gives the number of starts in each hour of a minute field (`\"*\\/30\"` or `\"5,35\"` give 2), or 1 when it cannot tell. */\nfunction startsPerHour(field: string): number {\n const step = /^\\*\\/(\\d+)$/.exec(field);\n const count = step ? 60 / Number(step[1]) : field.split(\",\").length;\n // Only a number of starts that divides the hour gives equal steps.\n return Number.isInteger(count) && count >= 1 && 60 % count === 0 ? count : 1;\n}\n\n/**\n * This function gives the breaks of the schedules: the minute of each `cron` is the minute of the repository and the file. A\n * schedule that starts more than once in each hour starts at equal steps from that minute (`18,48` for each 30 minutes).\n */\nfunction cronBreaks(file: string, text: string, lines: readonly string[], minute: number): Break[] {\n const breaks: Break[] = [];\n const originals = text.split(/\\r?\\n/);\n lines.forEach((line, index) => {\n const value = keyValue(line, \"cron\");\n if (value === undefined) return;\n const fields = value.split(\" \").filter((field) => field !== \"\");\n const wanted = minuteField(minute, startsPerHour(fields[0] ?? \"\"));\n if (fields[0] === wanted) return;\n const expected = [wanted, ...fields.slice(1)].join(\" \");\n const original = originals[index] ?? line;\n const edits: Edit[] = original.includes(value) ? [{ file, before: text, after: replaceLine(text, index + 1, [original.replace(value, () => expected)]) }] : [];\n breaks.push({ file, line: index + 1, message: `${file}: the schedule \"${value}\" starts at minute ${fields[0] ?? \"?\"}, and the minute of this repository and file is ${String(minute)}.`, fix: `cron: \"${expected}\"`, edits });\n });\n return breaks;\n}\n\nexport const runnerBudget: Rule = {\n id: \"runner-budget\",\n title: \"Each matrix has a max-parallel of 3 or less, each workflow has a concurrency group, and each schedule starts at the minute that the repository and the file give.\",\n reason:\n \"All repositories of the account share 40 runners, and heavy work keeps at most 28 of them. On 2026-10-30, a matrix with no max-parallel and the sync pull requests of about 20 repositories filled 39 of the 40 runners, with 88 jobs in the queue. Each repository copied the weekly scan at `23 5 * * 1`, so all scans started at the same minute. A workflow with no concurrency group starts a new run on each push, and the old runs keep their runners.\",\n fix: \"Add `max-parallel: 3` (or less) under `strategy`. Add a concurrency group at the top of the workflow (`concurrency: { group: <name>-${{ github.event_name == 'pull_request' && github.ref || github.sha }}, cancel-in-progress: ${{ github.event_name == 'pull_request' }} }`), or in each job. Change the minute of each `cron` to the minute that the message gives; the hour and the days stay.\",\n sources: [{ repo: \"fleet\", rule: \"runner-slots\", doc: \"docs/STRATEGY.md (2026-10-30, the runner slots: a cap of 40, heavy work at most 28)\" }],\n options: {\n maxParallel: { type: \"number\", default: 3, description: \"The largest max-parallel of a matrix.\" },\n minute: { type: \"boolean\", default: true, description: \"When false, the rule does not examine the minute of the schedules.\" },\n grouped: {\n type: \"strings\",\n default: [\"reusable-ai-review.yml\", \"reusable-codex-review.yml\"],\n description: \"The shared workflows that give a concurrency group in each of their jobs. A job that calls one needs no group of its own.\",\n },\n },\n check(context, options) {\n const files = context.gitFiles();\n if (files === undefined) return { skipped: \"the root is not in a git repository\" };\n const workflows = files.filter((path) => WORKFLOW.test(path)).sort(byCode);\n if (workflows.length === 0) return { skipped: \"the repository has no workflow\" };\n const remote = context.git([\"remote\", \"get-url\", \"origin\"]);\n const repository = context.env[\"GITHUB_REPOSITORY\"] ?? (remote === undefined ? undefined : repositoryOfRemote(remote));\n const limit = Number(options[\"maxParallel\"]);\n const grouped = Array.isArray(options[\"grouped\"]) ? (options[\"grouped\"] as readonly string[]) : [];\n const breaks: Break[] = [];\n for (const file of workflows) {\n let text: string;\n try {\n text = readFileSync(join(context.root, file), \"utf8\");\n } catch {\n continue;\n }\n const lines = workflowLines(text);\n breaks.push(...matrixBreaks(file, text, lines, limit), ...concurrencyBreaks(file, text, lines, grouped));\n if (options[\"minute\"] !== false) {\n const schedules = lines.some((line) => keyValue(line, \"cron\") !== undefined);\n if (schedules && repository === undefined) breaks.push({ file, message: `${file} has a schedule, and the rule cannot find the repository (GITHUB_REPOSITORY, or a GitHub URL of the remote origin).` });\n else if (repository !== undefined) breaks.push(...cronBreaks(file, text, lines, scheduleMinute(repository, file)));\n }\n }\n return breaks;\n },\n};\n","/**\n * The rule `shared-docs`: each shared block of a document agrees with its lock, and each linked block points to its\n * home at a pinned commit.\n */\nimport { spawnSync } from \"node:child_process\";\nimport { createHash } from \"node:crypto\";\nimport { existsSync, readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { byCode } from \"../workspace.ts\";\nimport { cleanPath, type Break, type Rule } from \"../rule.ts\";\n\n/** The answer for one URL: the text of the file, or the reason why there is no text. */\nexport type HomeAnswer = { readonly text: string } | { readonly error: string };\n\n/** A function that downloads each URL, and gives the answer for each URL. */\nexport type HomeFetch = (urls: readonly string[]) => ReadonlyMap<string, HomeAnswer>;\n\n/** The time in milliseconds that the rule waits for one home. A home that does not answer in this time is a break. */\nexport const HOME_TIMEOUT_MS = 30_000;\n\n/** The script that `githubFetch` starts in a child process of Node, so that the rule stays synchronous. */\nconst FETCH_SCRIPT = `\nconst [timeout, ...urls] = process.argv.slice(1);\nPromise.all(urls.map(async (url) => {\n try {\n const response = await fetch(url, { signal: AbortSignal.timeout(Number(timeout)) });\n if (!response.ok) return [url, { error: \"HTTP \" + response.status }];\n return [url, { text: await response.text() }];\n } catch (error) {\n return [url, { error: String(error && error.message ? error.message : error) }];\n }\n})).then((entries) => process.stdout.write(JSON.stringify(Object.fromEntries(entries))));\n`;\n\n/** This function downloads each URL in one child process of Node. Each download stops after `HOME_TIMEOUT_MS`. */\nexport const githubFetch: HomeFetch = (urls) => {\n const fail = (error: string): ReadonlyMap<string, HomeAnswer> => new Map(urls.map((url) => [url, { error }]));\n if (urls.length === 0) return new Map();\n const result = spawnSync(process.execPath, [\"-e\", FETCH_SCRIPT, String(HOME_TIMEOUT_MS), ...urls], { encoding: \"utf8\", timeout: HOME_TIMEOUT_MS + 10_000, maxBuffer: 64 * 1024 * 1024, windowsHide: true });\n if (result.error !== undefined || result.status !== 0) return fail(result.error?.message ?? `the download ended with exit code ${String(result.status)}`);\n try {\n const answers = JSON.parse(result.stdout) as Record<string, HomeAnswer>;\n return new Map(urls.map((url) => [url, answers[url] ?? { error: \"no answer\" }]));\n } catch {\n return fail(\"the download gave no JSON\");\n }\n};\n\n/** This function gives the SHA-256 of the lines of a block: the lines with LF line ends, and a last LF. */\nexport const blockHash = (body: readonly string[]): string => createHash(\"sha256\").update(`${body.join(\"\\n\")}\\n`).digest(\"hex\");\n\n/** A block of a document: its lines without the two marker lines, and the line of its start marker (from 1). */\ninterface Block {\n readonly body: readonly string[];\n readonly line: number;\n}\n\n/** A problem in the markers of a document, with its line when the rule knows it. */\ninterface MarkerProblem {\n readonly line?: number;\n readonly message: string;\n}\n\n/**\n * This function reads the blocks of one kind (`shared` or `linked`) of a text. A block is the text between\n * `<!-- <kind>:<id> -->` and `<!-- /<kind>:<id> -->`, each alone on its line.\n */\nexport function blocksOf(text: string, kind: \"shared\" | \"linked\", problems: MarkerProblem[]): Map<string, Block> {\n const lines = text.replace(/\\r\\n/g, \"\\n\").split(\"\\n\");\n const blocks = new Map<string, Block>();\n const start = new RegExp(`^<!-- ${kind}:([a-z0-9-]+) -->$`);\n const end = new RegExp(`^<!-- /${kind}:([a-z0-9-]+) -->$`);\n const loose = new RegExp(`^\\\\s*<!-- /?${kind}:`);\n let open: { id: string; line: number } | undefined;\n let body: string[] = [];\n lines.forEach((line, index) => {\n const s = start.exec(line);\n const e = end.exec(line);\n if (s) {\n if (open !== undefined) problems.push({ line: index + 1, message: `the ${kind} block \"${s[1] ?? \"\"}\" starts inside the block \"${open.id}\".` });\n open = { id: s[1] ?? \"\", line: index + 1 };\n body = [];\n } else if (e) {\n if (open === undefined || open.id !== e[1]) problems.push({ line: index + 1, message: `the end of \"${e[1] ?? \"\"}\" does not close the open block \"${open?.id ?? \"(none)\"}\".` });\n else if (blocks.has(open.id)) problems.push({ line: index + 1, message: `the ${kind} block \"${open.id}\" occurs two times.` });\n else blocks.set(open.id, { body, line: open.line });\n open = undefined;\n } else if (open !== undefined) {\n body.push(line);\n } else if (loose.test(line)) {\n problems.push({ line: index + 1, message: `a ${kind} marker must be alone on its line.` });\n }\n });\n if (open !== undefined) problems.push({ line: open.line, message: `the ${kind} block \"${open.id}\" has no end marker.` });\n return blocks;\n}\n\n/** A linked block in a lock: the home repository, the path of the file in it, the pinned commit and the SHA-256 of the block. */\ninterface LinkedEntry {\n readonly repo: string;\n readonly path: string;\n readonly commit: string;\n readonly sha256: string;\n}\n\nconst isRecord = (value: unknown): value is Record<string, unknown> => typeof value === \"object\" && value !== null && !Array.isArray(value);\nconst linkOf = (l: LinkedEntry): string => `https://github.com/${l.repo}/blob/${l.commit}/${l.path}`;\nconst rawOf = (l: LinkedEntry): string => `https://raw.githubusercontent.com/${l.repo}/${l.commit}/${l.path}`;\n\n/** This function tells if the rule downloads the homes, from the option `remote` and the environment. */\nfunction downloads(remote: string, env: Readonly<Record<string, string | undefined>>): boolean {\n if (remote === \"always\") return true;\n if (remote === \"never\") return false;\n return env[\"CI\"] === \"true\";\n}\n\n/** This function makes the rule with the download function `fetchHomes`. The tests give a fake function. */\nexport function sharedDocsRule(fetchHomes: HomeFetch = githubFetch): Rule {\n return {\n id: \"shared-docs\",\n title: \"Each shared block of a document agrees with its lock file, and each linked block has the link to its home at the pinned commit, with the hash of the home block.\",\n reason:\n \"Three repositories kept copies of the same blocks of docs/PROMOTION.md, each with its own copy of a check script. A change in one copy did not get to the others: on 2026-11-03 the block win-test of three repositories had a hash that the home in rigor did not have. A linked block keeps one copy, in its home, and pins the commit, so a change of the home is a deliberate update of the lock.\",\n fix: 'Make the block agree with the lock, or update the lock in each repository that keeps a copy. For a block with a home in another repository, remove the copy, write `<!-- linked:<id> -->` with the link https://github.com/<repo>/blob/<commit>/<path>, and give `{repo, path, commit, sha256}` in the field \"linked\" of the lock.',\n sources: [\n { repo: \"layout-contract\", rule: \"check-shared\", doc: \"scripts/check-shared.mjs (#155, the linked form of a shared block)\" },\n { repo: \"packing\", rule: \"check-shared\", doc: \"scripts/check-shared.mjs (the same script)\" },\n { repo: \"highways\", rule: \"check-shared\", doc: \"scripts/check-shared.mjs (the same script)\" },\n ],\n options: {\n locks: { type: \"strings\", default: [], description: \"The lock files to check. With no value, the rule checks each tracked file with the name `shared.lock.json`.\" },\n remote: { type: \"string\", default: \"ci\", description: 'When the rule downloads the home of each linked block and compares its hash: \"ci\" (only when the variable CI is \"true\"), \"always\" or \"never\".' },\n },\n check(context, options) {\n const named = options[\"locks\"] as readonly string[];\n let locks: readonly string[];\n if (named.length > 0) {\n locks = named.map(cleanPath);\n } else {\n const files = context.gitFiles();\n if (files === undefined) return { skipped: \"the root is not in a git repository\" };\n locks = files.filter((file) => file === \"shared.lock.json\" || file.endsWith(\"/shared.lock.json\")).sort(byCode);\n }\n if (locks.length === 0) return { skipped: \"the repository has no file shared.lock.json\" };\n const breaks: Break[] = [];\n const remote: { lock: string; id: string; entry: LinkedEntry }[] = [];\n for (const lockPath of locks) {\n if (!existsSync(join(context.root, lockPath))) {\n breaks.push({ file: lockPath, message: `the option locks names ${lockPath}, and the file does not exist.` });\n continue;\n }\n let lockFile: unknown;\n try {\n lockFile = JSON.parse(readFileSync(join(context.root, lockPath), \"utf8\"));\n } catch (error) {\n breaks.push({ file: lockPath, message: `${lockPath} is not JSON: ${error instanceof Error ? error.message : String(error)}` });\n continue;\n }\n if (!isRecord(lockFile)) {\n breaks.push({ file: lockPath, message: `${lockPath} is not a JSON object.` });\n continue;\n }\n if (typeof lockFile[\"file\"] !== \"string\") {\n breaks.push({ file: lockPath, message: `${lockPath} has no field \"file\": the document of its blocks.` });\n continue;\n }\n if (!isRecord(lockFile[\"blocks\"]) && !isRecord(lockFile[\"linked\"])) {\n breaks.push({ file: lockPath, message: `${lockPath} has no field \"blocks\" and no field \"linked\", so it locks nothing.` });\n continue;\n }\n const lock = isRecord(lockFile[\"blocks\"]) ? lockFile[\"blocks\"] : {};\n const links = isRecord(lockFile[\"linked\"]) ? lockFile[\"linked\"] : {};\n const doc = cleanPath(lockFile[\"file\"]);\n if (!existsSync(join(context.root, doc))) {\n breaks.push({ file: lockPath, message: `${lockPath} locks the blocks of ${doc}, and the file does not exist.` });\n continue;\n }\n const problems: MarkerProblem[] = [];\n const text = readFileSync(join(context.root, doc), \"utf8\");\n const shared = blocksOf(text, \"shared\", problems);\n const linked = blocksOf(text, \"linked\", problems);\n for (const p of problems) breaks.push({ file: doc, ...(p.line !== undefined ? { line: p.line } : {}), message: p.message });\n\n for (const [id, hash] of Object.entries(lock).sort(([a], [b]) => byCode(a, b))) {\n const block = shared.get(id);\n if (block === undefined) breaks.push({ file: doc, message: `the shared block \"${id}\" of ${lockPath} is missing in ${doc}.` });\n else if (blockHash(block.body) !== hash) breaks.push({ file: doc, line: block.line, message: `the shared block \"${id}\" differs from ${lockPath}: its hash is ${blockHash(block.body)}.` });\n }\n for (const [id, block] of shared) if (!(id in lock)) breaks.push({ file: doc, line: block.line, message: `the shared block \"${id}\" is not in ${lockPath}.` });\n\n for (const [id, value] of Object.entries(links).sort(([a], [b]) => byCode(a, b))) {\n if (!isRecord(value)) {\n breaks.push({ file: lockPath, message: `the linked block \"${id}\" of ${lockPath} is not an object {repo, path, commit, sha256}.` });\n continue;\n }\n const entry: LinkedEntry = { repo: String(value[\"repo\"] ?? \"\"), path: String(value[\"path\"] ?? \"\"), commit: String(value[\"commit\"] ?? \"\"), sha256: String(value[\"sha256\"] ?? \"\") };\n const before = breaks.length;\n if (!/^[\\w.-]+\\/[\\w.-]+$/.test(entry.repo)) breaks.push({ file: lockPath, message: `the linked block \"${id}\" needs a repository \"<owner>/<name>\", not \"${entry.repo}\".` });\n if (entry.path === \"\") breaks.push({ file: lockPath, message: `the linked block \"${id}\" needs the path of its file in the home.` });\n if (!/^[0-9a-f]{40}$/.test(entry.commit)) breaks.push({ file: lockPath, message: `the linked block \"${id}\" needs a full commit of 40 hex digits, not \"${entry.commit}\".` });\n if (!/^[0-9a-f]{64}$/.test(entry.sha256)) breaks.push({ file: lockPath, message: `the linked block \"${id}\" needs a SHA-256 of 64 hex digits.` });\n const copy = shared.get(id);\n if (copy !== undefined) breaks.push({ file: doc, line: copy.line, message: `the linked block \"${id}\" also has a copy in ${doc}. Remove the copy.` });\n const block = linked.get(id);\n if (block === undefined) breaks.push({ file: doc, message: `the linked block \"${id}\" of ${lockPath} has no \"<!-- linked:${id} -->\" block in ${doc}.` });\n else if (!block.body.join(\"\\n\").includes(linkOf(entry))) breaks.push({ file: doc, line: block.line, message: `the linked block \"${id}\" does not contain the link ${linkOf(entry)}.` });\n if (breaks.length === before) remote.push({ lock: lockPath, id, entry });\n }\n for (const [id, block] of linked) if (!(id in links)) breaks.push({ file: doc, line: block.line, message: `the linked block \"${id}\" is not in the field \"linked\" of ${lockPath}.` });\n }\n\n if (remote.length > 0 && downloads(String(options[\"remote\"]), context.env)) {\n const answers = fetchHomes([...new Set(remote.map(({ entry }) => rawOf(entry)))]);\n for (const { lock, id, entry } of remote) {\n const url = rawOf(entry);\n const answer = answers.get(url) ?? { error: \"no answer\" };\n // A gate fails closed: a home that does not answer is a break, not a skip.\n if (\"error\" in answer) {\n breaks.push({ file: lock, message: `the home of the linked block \"${id}\" did not answer at ${url}: ${answer.error}.` });\n continue;\n }\n const problems: MarkerProblem[] = [];\n const home = blocksOf(answer.text, \"shared\", problems).get(id);\n if (home === undefined) breaks.push({ file: lock, message: `the home ${url} has no shared block \"${id}\".` });\n else if (blockHash(home.body) !== entry.sha256) breaks.push({ file: lock, message: `the linked block \"${id}\" at ${url} has the hash ${blockHash(home.body)}, not the hash of ${lock}.` });\n }\n }\n return breaks;\n },\n };\n}\n\nexport const sharedDocs: Rule = sharedDocsRule();\n","/**\n * The rule `source-main`: a workspace package is a source package, and a public package moves its\n * entries to the build when it is published.\n */\nimport { cleanPath, codePackages, lineOf, type Break, type Manifest, type Rule } from \"../rule.ts\";\n\n/** The fields of `package.json` that name the entries of a package. */\nconst ENTRY_FIELDS = [\"main\", \"module\", \"types\", \"typings\", \"exports\", \"bin\"] as const;\n\n/** This function gives each path in the value of an entry field (a string, or the strings in an object). */\nexport function pathsOf(value: unknown): string[] {\n if (typeof value === \"string\") return [value];\n if (Array.isArray(value)) return value.flatMap(pathsOf);\n if (typeof value === \"object\" && value !== null) return Object.values(value).flatMap(pathsOf);\n return [];\n}\n\n/** This function tells if a path is a source file: a file in `src/`, or a TypeScript file that is not a declaration file. */\nexport function isSourcePath(path: string): boolean {\n const clean = cleanPath(path);\n return clean.startsWith(\"src/\") || (/\\.(c|m)?tsx?$/.test(clean) && !/\\.d\\.(c|m)?ts$/.test(clean));\n}\n\nexport const sourceMain: Rule = {\n id: \"source-main\",\n title: \"Each workspace package is a source package (`main` is `src/index.ts`), and a public package moves its entries to the build in `publishConfig`.\",\n reason:\n \"Other packages of the workspace import the source, so a change is visible at once with no build. A public package that publishes its source entries gives TypeScript files to npm users.\",\n fix: 'Set `\"main\": \"./src/index.ts\"`. In a public package, add `publishConfig` with main, types, exports and bin that point at the build, as `pnpm package add` does.',\n sources: [\n { repo: \"coeval\", rule: \"package-main-source\", doc: \"CLAUDE.md:17\" },\n { repo: \"coeval\", rule: \"source-package-main\", doc: \"CLAUDE.md:17\" },\n { repo: \"crawler\", rule: \"pkg-source-main\", doc: \"CLAUDE.md:17\" },\n { repo: \"crawler\", rule: \"source-package-main\", doc: \"CLAUDE.md:17\" },\n { repo: \"crawler\", rule: \"publish-config-build\", doc: \"CLAUDE.md:41\" },\n { repo: \"Graph\", rule: \"new-package-main-index\", doc: \"CLAUDE.md:15\" },\n { repo: \"Graph\", rule: \"source-package-main\", doc: \"CLAUDE.md:15\" },\n { repo: \"headroom\", rule: \"source-package-main\", doc: \"CLAUDE.md:31\" },\n ],\n options: {\n main: { type: \"string\", default: \"src/index.ts\", description: \"The path of `main` in each package.\" },\n publishConfig: { type: \"boolean\", default: true, description: \"When false, the rule does not examine `publishConfig`.\" },\n },\n check(context, options) {\n const main = cleanPath(typeof options[\"main\"] === \"string\" ? options[\"main\"] : \"src/index.ts\");\n const breaks: Break[] = [];\n for (const info of codePackages(context)) {\n // The root of a repository of one package has no workspace that imports its source, so only its publishConfig counts\n const single = info.folder === \"\";\n const manifest = info.manifest;\n const at = (field: string): { line?: number } => {\n const line = lineOf(info.text, `\"${field}\"`);\n return line === undefined ? {} : { line };\n };\n const value = manifest[\"main\"];\n if (single) {\n // The root of a repository of one package can point main at its build\n } else if (typeof value === \"string\") {\n if (cleanPath(value) !== main) breaks.push({ file: info.file, ...at(\"main\"), message: `\"main\" is \"${value}\", not \"./${main}\".` });\n } else if (ENTRY_FIELDS.some((field) => manifest[field] !== undefined) || manifest[\"private\"] !== true) {\n // A package with only a bin (a CLI) has no entry to import, and a private package with no entry is an app (a site)\n if (manifest[\"bin\"] === undefined) breaks.push({ file: info.file, ...at(\"name\"), message: `The package has no \"main\". A source package has \"main\": \"./${main}\".` });\n }\n if (options[\"publishConfig\"] === false || manifest[\"private\"] === true) continue;\n const published = (typeof manifest[\"publishConfig\"] === \"object\" && manifest[\"publishConfig\"] !== null ? manifest[\"publishConfig\"] : {}) as Manifest;\n for (const field of ENTRY_FIELDS) {\n const source = pathsOf(manifest[field]).filter(isSourcePath);\n if (source.length === 0) continue;\n if (published[field] === undefined) {\n breaks.push({\n file: info.file,\n ...at(field),\n message: `\"${field}\" points at the source (${source[0] ?? \"\"}), and publishConfig has no \"${field}\": npm users get the source.`,\n fix: `Add publishConfig.${field} that points at the build.`,\n });\n continue;\n }\n const still = pathsOf(published[field]).filter(isSourcePath);\n if (still.length > 0) {\n breaks.push({ file: info.file, ...at(\"publishConfig\"), message: `publishConfig.${field} points at the source (${still[0] ?? \"\"}).`, fix: `Point publishConfig.${field} at the build.` });\n }\n }\n }\n return breaks;\n },\n};\n","/**\n * The rule `tsconfig-test`: each TypeScript package has a `tsconfig.test.json`, and its typecheck\n * examines it.\n */\nimport { codePackages, hasFile, inFolder, lineOf, type Break, type Rule } from \"../rule.ts\";\n\n/** The ends of the name of a test file: `.test.` or `.spec.`, then an extension of JavaScript or TypeScript. */\nconst TEST_ENDS = [\"test\", \"spec\"].flatMap((kind) => [\"\", \"c\", \"m\"].flatMap((module) => [\"j\", \"t\"].flatMap((lang) => [\"\", \"x\"].map((jsx) => `.${kind}.${module}${lang}s${jsx}`))));\n\n/**\n * This function tells if a path is a test file: `*.test.*` or `*.spec.*` of JavaScript or TypeScript, or a file in a\n * folder `__tests__`. It uses string operations, with no regular expression, so a long path takes linear time.\n */\nexport function isTestFile(path: string): boolean {\n const segments = path.split(\"/\");\n const name = segments[segments.length - 1] ?? \"\";\n if (name !== \"\" && segments.slice(0, -1).includes(\"__tests__\")) return true;\n return TEST_ENDS.some((end) => name.length > end.length && name.endsWith(end));\n}\n\n/** This function tells if git tracks a test file in the package folder `folder` (`\"\"` is the root). */\nexport function hasTests(files: readonly string[], folder: string): boolean {\n const prefix = folder === \"\" ? \"\" : `${folder}/`;\n return files.some((path) => path.startsWith(prefix) && isTestFile(path.slice(prefix.length)));\n}\n\nexport const tsconfigTest: Rule = {\n id: \"tsconfig-test\",\n title: \"Each package with a `tsconfig.json` and test files has a `tsconfig.test.json`, and its `typecheck` script examines it.\",\n reason: \"The build config leaves out the tests. Without a second config, `pnpm typecheck` does not examine the tests, and a type error in a test hides until the test runs.\",\n fix: \"Add `tsconfig.test.json` (extends `./tsconfig.json`, includes the tests, `noEmit`), and set the script `typecheck` to `tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json`. Keep `--noEmit` on the first call when the build config emits, so that a typecheck writes no build output.\",\n sources: [\n { repo: \"coeval\", rule: \"package-tsconfig-test\", doc: \"CLAUDE.md:18\" },\n { repo: \"coeval\", rule: \"tsconfig-test\", doc: \"CLAUDE.md:18\" },\n { repo: \"crawler\", rule: \"pkg-tsconfig-test\", doc: \"CLAUDE.md:18\" },\n { repo: \"crawler\", rule: \"tsconfig-test\", doc: \"CLAUDE.md:18\" },\n { repo: \"headroom\", rule: \"tsconfig-test\", doc: \"CLAUDE.md:32\" },\n { repo: \"headroom\", rule: \"tsconfig-test-per-package\", doc: \"CLAUDE.md:32\" },\n { repo: \"Vex\", rule: \"package-tsconfig-test\", doc: \"CLAUDE.md:23\" },\n { repo: \"Vex\", rule: \"tsconfig-test\", doc: \"CLAUDE.md:23\" },\n ],\n options: {\n file: { type: \"string\", default: \"tsconfig.test.json\", description: \"The name of the config of the tests.\" },\n },\n check(context, options) {\n const file = typeof options[\"file\"] === \"string\" ? options[\"file\"] : \"tsconfig.test.json\";\n const tracked = context.gitFiles();\n const breaks: Break[] = [];\n for (const info of codePackages(context)) {\n if (!hasFile(info.dir, \"tsconfig.json\")) continue;\n // A package with no test file has no test to examine. Outside git the rule cannot tell, so it examines the package\n if (tracked !== undefined && !hasTests(tracked, info.folder)) continue;\n if (!hasFile(info.dir, file)) {\n breaks.push({ file: inFolder(info.folder, file), message: `The package has a tsconfig.json and no ${file}.` });\n continue;\n }\n const scripts = info.manifest[\"scripts\"];\n const typecheck = typeof scripts === \"object\" && scripts !== null ? (scripts as Record<string, unknown>)[\"typecheck\"] : undefined;\n if (typeof typecheck === \"string\" && !typecheck.includes(file)) {\n const line = lineOf(info.text, '\"typecheck\"');\n breaks.push({\n file: info.file,\n ...(line === undefined ? {} : { line }),\n message: `The script typecheck (\"${typecheck}\") does not examine ${file}.`,\n fix: `Add \\`tsc -p ${file}\\` to the script typecheck.`,\n });\n }\n }\n return breaks;\n },\n};\n","/**\n * The rule `tests-required`: no test runner passes when it finds no test (`passWithNoTests`).\n */\nimport { readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { byCode } from \"../workspace.ts\";\nimport { replaceLine, type Break, type Edit, type Rule, type RuleContext } from \"../rule.ts\";\nimport { hasTests } from \"./tsconfig-test.ts\";\n\n/** The files that set the options of a test runner: its configs, and package.json for the scripts. */\nconst RUNNER_FILE = /(?:^|\\/)(?:(?:vitest|vite|jest|playwright)(?:\\.[\\w-]+)*\\.config\\.[cm]?[jt]s|vitest\\.workspace\\.[cm]?[jt]s|package\\.json)$/;\n/** The option in a config (`passWithNoTests: true`) or on a command line (`--passWithNoTests`, `--pass-with-no-tests`). */\nconst PASS_WITH_NO_TESTS = /passWithNoTests\\s*:\\s*true|--passWithNoTests(?!=false)|--pass-with-no-tests(?!=false)/;\n\n/** A line that holds only the option in a config. `conventions fix` removes such a line. */\nconst OPTION_LINE = /^\\s*passWithNoTests\\s*:\\s*true\\s*,?\\s*$/;\n/** The option in a line of a config with more keys. The first form has the comma after it, and the second form has the comma before it. */\nconst OPTION_IN_LINE = [/\\bpassWithNoTests\\s*:\\s*true\\s*,\\s*/, /,?\\s*\\bpassWithNoTests\\s*:\\s*true\\b/] as const;\n/** The option on a command line, with the space before it. */\nconst FLAG = / --(?:passWithNoTests|pass-with-no-tests)(?:=true)?(?=\\s|\"|$)/g;\n\n/** This function gives the folder of the package that holds `file`: the longest folder of a package that starts its path. */\nfunction packageOf(context: RuleContext, file: string): string {\n let best = \"\";\n for (const info of context.packages) if (info.folder !== \"\" && file.startsWith(`${info.folder}/`) && info.folder.length > best.length) best = info.folder;\n return best;\n}\n\n/**\n * This function gives the edit that removes the option from one line, or no edit. The edit exists only when the package has\n * test files: then the test step still finds tests. A package with no tests needs a person, who removes its test script.\n */\nfunction removeOption(context: RuleContext, files: readonly string[], file: string, text: string, index: number): Edit[] {\n if (!hasTests(files, packageOf(context, file))) return [];\n const line = text.split(/\\r?\\n/)[index] ?? \"\";\n if (OPTION_LINE.test(line)) return [{ file, before: text, after: replaceLine(text, index + 1, []) }];\n const form = OPTION_IN_LINE.find((pattern) => pattern.test(line));\n const without = file.endsWith(\"package.json\") ? line.replace(FLAG, \"\") : form === undefined ? line : line.replace(form, \"\");\n return without === line ? [] : [{ file, before: text, after: replaceLine(text, index + 1, [without]) }];\n}\n\nexport const testsRequired: Rule = {\n id: \"tests-required\",\n title: \"No test runner passes when it finds no test: no `passWithNoTests: true` in a config, and no `--passWithNoTests` in a script.\",\n reason:\n \"With the option, a test step that finds 0 tests passes. A broken include pattern, a moved folder or a renamed file then turns the gate green with no test run. In the fleet audit of 2026-10-30, vex had the option in all 9 vitest configs and client in 2 packages that have tests.\",\n fix: \"Remove the option. A package with no tests has no test script, so the shared CI skips it. A package whose tests a later change adds keeps no test script until then.\",\n sources: [{ repo: \"fleet\", rule: \"fail-closed\", doc: \"docs/STRATEGY.md (2026-10-30, gates and probes fail closed)\" }],\n options: {},\n check(context) {\n const files = context.gitFiles();\n if (files === undefined) return { skipped: \"the root is not in a git repository\" };\n const breaks: Break[] = [];\n for (const file of files.filter((path) => RUNNER_FILE.test(path)).sort(byCode)) {\n let text: string;\n try {\n text = readFileSync(join(context.root, file), \"utf8\");\n } catch {\n continue;\n }\n const lines = text.split(/\\r?\\n/);\n const index = lines.findIndex((line) => PASS_WITH_NO_TESTS.test(line));\n if (index >= 0) breaks.push({ file, line: index + 1, message: `${file} lets the tests pass when they find no test (passWithNoTests).`, edits: removeOption(context, files, file, text, index) });\n }\n return breaks;\n },\n};\n","/**\n * The rule `typed-files`: each TypeScript file that git keeps is in a tsconfig that a `typecheck`\n * script examines.\n */\nimport { spawnSync } from \"node:child_process\";\nimport { existsSync, readFileSync, statSync } from \"node:fs\";\nimport { createRequire } from \"node:module\";\nimport { basename, dirname, join, relative, resolve } from \"node:path\";\nimport { byCode } from \"../workspace.ts\";\nimport {\n codePackages,\n inFolder,\n lineOf,\n readJsonc,\n type Break,\n type Edit,\n type PackageInfo,\n type Rule,\n} from \"../rule.ts\";\n\n/** A TypeScript source: `.ts`, `.tsx`, `.mts` or `.cts`, and not a declaration file. */\nconst TYPESCRIPT = /\\.(?:[cm]?ts|tsx)$/;\nconst DECLARATION = /\\.d\\.(?:[cm]?ts|tsx)$/;\n\n/** The compilers that read `-p <config>` (or `tsconfig.json` without it). */\nconst COMPILERS = new Set([\"tsc\", \"tsgo\", \"vue-tsc\"]);\n\n/** This function gives the commands of a script: its parts between `&&`, `||`, `;`, `|` and parentheses, each as words. */\nfunction commandsOf(script: string): string[][] {\n return script\n .split(/&&|\\|\\||[;|()]/)\n .map((part) =>\n part\n .trim()\n .split(/\\s+/)\n .filter((word) => word !== \"\"),\n )\n .filter((words) => words.length > 0);\n}\n\n/** The last part of a path of a command (`node_modules/.bin/tsc` gives `tsc`). */\nconst commandName = (word: string): string =>\n word.slice(word.lastIndexOf(\"/\") + 1);\n\n/** This function gives the configs that one `tsc` command examines, from the words after the command. */\nfunction compilerConfigs(words: readonly string[]): string[] {\n const configs: string[] = [];\n let named = false;\n for (let index = 0; index < words.length; index++) {\n const word = words[index] as string;\n if (word === \"-p\" || word === \"--project\") {\n const next = words[index + 1];\n if (next !== undefined) configs.push(next);\n named = true;\n index++;\n } else if (word.startsWith(\"-p=\") || word.startsWith(\"--project=\")) {\n configs.push(word.slice(word.indexOf(\"=\") + 1));\n named = true;\n } else if (word === \"-b\" || word === \"--build\") {\n named = true;\n let more = 0;\n while (\n words[index + 1] !== undefined &&\n !(words[index + 1] as string).startsWith(\"-\")\n ) {\n configs.push(words[index + 1] as string);\n index++;\n more++;\n }\n if (more === 0) configs.push(\"tsconfig.json\");\n }\n }\n if (!named) configs.push(\"tsconfig.json\");\n return configs;\n}\n\n/** This function gives the configs that one `typecheck` script examines, relative to the folder of the package. */\nexport function configsOfScript(script: string): string[] {\n const configs: string[] = [];\n for (const words of commandsOf(script)) {\n const at = words.findIndex(\n (word) =>\n COMPILERS.has(commandName(word)) ||\n commandName(word) === \"svelte-check\",\n );\n if (at < 0) continue;\n const rest = words.slice(at + 1);\n if (commandName(words[at] as string) !== \"svelte-check\") {\n configs.push(...compilerConfigs(rest));\n continue;\n }\n for (let index = 0; index < rest.length; index++) {\n const word = rest[index] as string;\n if (word === \"--tsconfig\" && rest[index + 1] !== undefined)\n configs.push(rest[index + 1] as string);\n else if (word.startsWith(\"--tsconfig=\"))\n configs.push(word.slice(\"--tsconfig=\".length));\n }\n }\n return configs.map((config) => config.replace(/^[\"']|[\"']$/g, \"\"));\n}\n\n/** The package managers whose `run <script>` (or `<script>`) starts another script of the same package. */\nconst MANAGERS = new Set([\"pnpm\", \"npm\", \"yarn\", \"bun\"]);\n/** The options that start the script in other packages: the rule reads those packages on their own. */\nconst OTHER_PACKAGES =\n /^(?:-r|--recursive|-F|--filter(?:=.*)?|--workspaces?|-w|-ws)$/;\n\n/**\n * This function gives the text of the script `name` and of each script of the same package that it\n * starts (`pnpm run typecheck:scripts`), once each.\n */\nexport function scriptsOf(\n scripts: Readonly<Record<string, unknown>>,\n name: string,\n seen: Set<string> = new Set(),\n): string[] {\n const text = scripts[name];\n if (typeof text !== \"string\" || seen.has(name)) return [];\n seen.add(name);\n const texts = [text];\n for (const part of text.split(/&&|\\|\\||[;|]/)) {\n const words = part.trim().split(/\\s+/);\n if (\n !MANAGERS.has(words[0] ?? \"\") ||\n words.some((word) => OTHER_PACKAGES.test(word))\n )\n continue;\n const rest = words.slice(1).filter((word) => !word.startsWith(\"-\"));\n const next =\n rest[0] === \"run\" || rest[0] === \"run-script\" ? rest[1] : rest[0];\n if (next !== undefined) texts.push(...scriptsOf(scripts, next, seen));\n }\n return texts;\n}\n\n/** This function gives the path of `bin/tsc` of `typescript` of the repository, or of this package, or `undefined`. */\nfunction findTsc(root: string): string | undefined {\n for (const from of [join(root, \"package.json\"), import.meta.url]) {\n try {\n const tsc = join(\n dirname(createRequire(from).resolve(\"typescript/package.json\")),\n \"bin\",\n \"tsc\",\n );\n if (existsSync(tsc)) return tsc;\n } catch {\n // Try the next place\n }\n }\n return undefined;\n}\n\n/** This function gives the files of the program of one config (`tsc --listFilesOnly`), or the error of tsc. */\nfunction listFiles(\n tsc: string,\n config: string,\n): { readonly files: readonly string[] } | { readonly error: string } {\n const result = spawnSync(\n process.execPath,\n [tsc, \"-p\", config, \"--listFilesOnly\"],\n { encoding: \"utf8\", maxBuffer: 64 * 1024 * 1024 },\n );\n const lines = (result.stdout ?? \"\")\n .split(/\\r?\\n/)\n .filter((line) => line.trim() !== \"\");\n if (result.status !== 0)\n return {\n error:\n (result.stderr || result.stdout || `exit ${String(result.status)}`)\n .trim()\n .split(/\\r?\\n/)[0] ?? \"\",\n };\n return { files: lines.map((line) => line.trim()) };\n}\n\n/** This function gives the paths of the `references` of a config, as absolute paths. */\nfunction referencesOf(config: string): string[] {\n const json = readJsonc(config);\n const references =\n typeof json === \"object\" && json !== null\n ? (json as { references?: unknown }).references\n : undefined;\n if (!Array.isArray(references)) return [];\n return references.flatMap((item: unknown) =>\n typeof item === \"object\" &&\n item !== null &&\n typeof (item as { path?: unknown }).path === \"string\"\n ? [resolve(dirname(config), (item as { path: string }).path)]\n : [],\n );\n}\n\n/** A config file of a tool (`vitest.config.ts`), with its extension. */\nconst CONFIG_FILE = /\\.config(\\.[cm]?ts)$/;\n\n/** A `rootDir` that is the folder of the tsconfig, so that the config files at the root are in it. */\nconst ROOT_DIRS = new Set([\".\", \"./\", \"${configDir}\", \"${configDir}/\"]);\n\n/** The value of an option that a tsconfig gets from a config that it extends, and the file of that config. */\ninterface Inherited {\n readonly value: unknown;\n readonly file: string;\n}\n\n/**\n * This function gives the value of the compiler option `name` that a tsconfig gets from the configs it extends. It gives\n * `null` when no config of the chain sets it. It gives `undefined` when it cannot read a config of the chain, for example\n * a package that is not installed.\n */\nfunction inheritedOption(\n tsconfig: string,\n name: string,\n seen: ReadonlySet<string> = new Set(),\n): Inherited | null | undefined {\n const json = readJsonc(tsconfig) as { extends?: unknown } | undefined;\n if (json === undefined || seen.has(tsconfig)) return undefined;\n const specs = Array.isArray(json.extends)\n ? json.extends\n : json.extends === undefined\n ? []\n : [json.extends];\n let found: Inherited | null = null;\n // A later config of the list wins, as in tsc\n for (const spec of specs) {\n if (typeof spec !== \"string\") return undefined;\n let file: string;\n try {\n file =\n spec.startsWith(\".\") || spec.startsWith(\"/\")\n ? resolve(dirname(tsconfig), spec)\n : createRequire(tsconfig).resolve(spec);\n } catch {\n return undefined;\n }\n if (!existsSync(file) && existsSync(`${file}.json`)) file = `${file}.json`;\n const parent = readJsonc(file) as\n { compilerOptions?: Record<string, unknown> } | undefined;\n if (parent === undefined) return undefined;\n const own = parent.compilerOptions?.[name];\n const value =\n own === undefined\n ? inheritedOption(file, name, new Set([...seen, tsconfig]))\n : { value: own, file };\n if (value === undefined) return undefined;\n if (value !== null) found = value;\n }\n return found;\n}\n\n/**\n * This function tells if a tsconfig gets a `rootDir` other than its folder from a config that it extends. It also says\n * yes when it cannot read that config. A `${configDir}` is the folder of the tsconfig, the other paths are relative to\n * the config that sets them.\n */\nfunction inheritsSubfolder(tsconfig: string): boolean {\n const inherited = inheritedOption(tsconfig, \"rootDir\");\n if (inherited === null) return false;\n if (inherited === undefined || typeof inherited.value !== \"string\")\n return true;\n const own = inherited.value;\n const rootDir = own.startsWith(\"${configDir}\")\n ? resolve(dirname(tsconfig), `.${own.slice(\"${configDir}\".length)}`)\n : resolve(dirname(inherited.file), own);\n return rootDir !== resolve(dirname(tsconfig));\n}\n\n/**\n * This function gives the edit that adds the config files at the root of a package to its `tsconfig.test.json`. It adds\n * the include `*.config.ts`. When the `rootDir` is a subfolder, it sets `rootDir: \".\"`. It also does this when the file\n * gets the `rootDir` from a config that it extends, or when it cannot read that config. A `rootDir` of the folder does\n * no harm to a test config that does not emit. The edit changes only these values and keeps the format of the file. It\n * gives no edit for a tsconfig with comments, so that no comment goes. It also gives no edit when the changed text does\n * not parse as the intended config.\n */\nfunction configEdit(root: string, tsconfig: string, extension: string): Edit[] {\n const text = readFileSync(tsconfig, \"utf8\");\n let json: { include?: unknown; compilerOptions?: Record<string, unknown> };\n try {\n json = JSON.parse(text) as typeof json;\n } catch {\n return [];\n }\n const globs = json.include;\n if (!Array.isArray(globs)) return [];\n const prefix =\n globs.length > 0 &&\n globs.every(\n (glob) => typeof glob === \"string\" && glob.startsWith(\"${configDir}/\"),\n )\n ? \"${configDir}/\"\n : \"\";\n const glob = `${prefix}*.config${extension}`;\n const eol = text.includes(\"\\r\\n\") ? \"\\r\\n\" : \"\\n\";\n let after = text;\n if (!globs.includes(glob)) {\n after = after.replace(\n /(\"include\"\\s*:\\s*\\[)([^\\]]*)\\]/,\n (_all, start: string, items: string) => {\n const kept = items.replace(/\\s+$/, \"\");\n const end = items.slice(kept.length);\n if (kept.trim() === \"\") return `${start}${JSON.stringify(glob)}]`;\n const indent = kept.includes(\"\\n\")\n ? (/\\n([ \\t]*)[^\\n]*$/.exec(kept)?.[1] ?? \"\")\n : undefined;\n return `${start}${kept},${indent === undefined ? \" \" : `${eol}${indent}`}${JSON.stringify(glob)}${end}]`;\n },\n );\n }\n const options = json.compilerOptions;\n const rootDir = options?.[\"rootDir\"];\n const moveRoot = typeof rootDir === \"string\" && !ROOT_DIRS.has(rootDir);\n if (moveRoot)\n after = after.replace(/(\"rootDir\"\\s*:\\s*)\"(?:[^\"\\\\]|\\\\.)*\"/, '$1\".\"');\n // The options that the file gets from a config that it extends can break the check of the config files: a rootDir\n // of a subfolder (`src`) leaves them out, and isolatedDeclarations refuses their `export default`. A test config does\n // not emit, so the fix sets both, also when it cannot read the config that the file extends.\n const added: Record<string, unknown> = {};\n if (after !== text) {\n if (rootDir === undefined && inheritsSubfolder(tsconfig))\n added[\"rootDir\"] = \".\";\n const isolated =\n options?.[\"isolatedDeclarations\"] === undefined\n ? inheritedOption(tsconfig, \"isolatedDeclarations\")\n : null;\n if (\n isolated === undefined ||\n (isolated !== null && isolated.value !== false)\n )\n added[\"isolatedDeclarations\"] = false;\n }\n const entries = Object.entries(added).map(\n ([key, value]) => `${JSON.stringify(key)}: ${JSON.stringify(value)}`,\n );\n if (entries.length > 0 && options !== undefined) {\n after =\n Object.keys(options).length === 0\n ? after.replace(\n /(\"compilerOptions\"\\s*:\\s*\\{)\\s*\\}/,\n `$1 ${entries.join(\", \")} }`,\n )\n : after.replace(\n /(\"compilerOptions\"\\s*:\\s*\\{)(\\s*)/,\n (_all, start: string, space: string) =>\n `${start}${space}${entries.join(`,${space}`)},${space}`,\n );\n } else if (entries.length > 0) {\n after = after.replace(\n /^(\\s*\\{)(\\s*)/,\n (_all, start: string, space: string) =>\n `${start}${space}\"compilerOptions\": { ${entries.join(\", \")} },${space}`,\n );\n }\n const include = globs.includes(glob) ? globs : [...globs, glob];\n const intended =\n entries.length > 0\n ? options === undefined\n ? { compilerOptions: added, ...json, include }\n : {\n ...json,\n compilerOptions: {\n ...added,\n ...(moveRoot ? { ...options, rootDir: \".\" } : options),\n },\n include,\n }\n : {\n ...json,\n ...(moveRoot\n ? { compilerOptions: { ...options, rootDir: \".\" } }\n : {}),\n include,\n };\n let parsed: unknown;\n try {\n parsed = JSON.parse(after);\n } catch {\n return [];\n }\n if (JSON.stringify(parsed) !== JSON.stringify(intended)) return [];\n return after === text\n ? []\n : [{ file: fromRoot(root, tsconfig), before: text, after }];\n}\n\n/** The path of `file` relative to `root`, with `/`. */\nconst fromRoot = (root: string, file: string): string =>\n relative(root, file).split(\"\\\\\").join(\"/\");\n\nexport const typedFiles: Rule = {\n id: \"typed-files\",\n title:\n \"Each TypeScript file that git keeps is in a tsconfig that a `typecheck` script examines: the tests, the e2e specs, the scripts, the benches and the configs too.\",\n reason:\n \"A file that no tsconfig of a typecheck holds has no type check. Its type errors hide until it runs, and a broken test or script can pass a gate. A test runner such as vitest strips the types, so it does not examine them. In the fleet audit of 2026-10-30, every repository had such files (in one, 90 of 612 files, its e2e specs among them), and the new checks found real defects.\",\n fix: 'Add the file to the `include` of a tsconfig that the `typecheck` script names (for example `tsconfig.test.json`, with `*.config.ts`, `scripts/**`, `bench/**` and `e2e/**`). A config file at the root of a package needs `rootDir: \".\"` there. For the files at the root of the repository, add a `tsconfig.repo.json` and name it in the root `typecheck`. A file that cannot be in a typecheck (it imports a module that only a tool makes) goes in `ignore` with its reason.',\n sources: [\n {\n repo: \"fleet\",\n rule: \"fail-closed\",\n doc: \"docs/STRATEGY.md (2026-10-30, gates and probes fail closed)\",\n },\n ],\n options: {\n configs: {\n type: \"strings\",\n default: [],\n description:\n \"More tsconfig files, relative to the root, that CI examines with another command (for example a script that the typecheck starts).\",\n },\n },\n check(context, options) {\n const tracked = context.gitFiles();\n if (tracked === undefined)\n return { skipped: \"the root is not in a git repository\" };\n const files = tracked\n .filter((file) => TYPESCRIPT.test(file) && !DECLARATION.test(file))\n .sort(byCode);\n if (files.length === 0) return [];\n const tsc = findTsc(context.root);\n if (tsc === undefined)\n return [\n {\n file: \"package.json\",\n message:\n \"The rule cannot find typescript, so it cannot read the tsconfig files.\",\n fix: \"Add typescript to the devDependencies of the root package.\",\n },\n ];\n const breaks: Break[] = [];\n // The configs that a typecheck examines, as absolute paths\n const queue: string[] = [];\n // The tsconfig.test.json of each package folder that its typecheck names, for the edits\n const testConfigs = new Map<string, string>();\n const packages: PackageInfo[] = [\n context.rootPackage,\n ...codePackages(context).filter((info) => info !== context.rootPackage),\n ];\n for (const info of packages) {\n const scripts = info.manifest[\"scripts\"];\n const table =\n typeof scripts === \"object\" && scripts !== null\n ? (scripts as Record<string, unknown>)\n : {};\n const typecheck = table[\"typecheck\"];\n if (typeof typecheck !== \"string\") continue;\n for (const config of scriptsOf(table, \"typecheck\").flatMap(\n configsOfScript,\n )) {\n const path = resolve(info.dir, config);\n if (!existsSync(path)) {\n const line = lineOf(info.text, '\"typecheck\"');\n breaks.push({\n file: info.file,\n ...(line === undefined ? {} : { line }),\n message: `The script typecheck names ${inFolder(info.folder, config)}, and that file does not exist.`,\n });\n continue;\n }\n queue.push(path);\n if (\n basename(path) === \"tsconfig.test.json\" &&\n resolve(dirname(path)) === resolve(info.dir)\n )\n testConfigs.set(info.folder, path);\n }\n }\n const extra = Array.isArray(options[\"configs\"]) ? options[\"configs\"] : [];\n for (const config of extra) {\n const path = resolve(context.root, config);\n if (!existsSync(path))\n breaks.push({\n file: \"package.json\",\n message: `The option configs names ${config}, and that file does not exist.`,\n });\n else queue.push(path);\n }\n // Read each config and its references, once\n const covered = new Set<string>();\n const seen = new Set<string>();\n while (queue.length > 0) {\n let path = queue.shift() as string;\n if (existsSync(path) && statSync(path).isDirectory())\n path = join(path, \"tsconfig.json\");\n if (seen.has(path)) continue;\n seen.add(path);\n queue.push(...referencesOf(path));\n const listed = listFiles(tsc, path);\n if (\"error\" in listed) {\n breaks.push({\n file: fromRoot(context.root, path),\n message: `tsc cannot list the files of ${fromRoot(context.root, path)}: ${listed.error}`,\n });\n continue;\n }\n for (const name of listed.files)\n covered.add(fromRoot(context.root, resolve(name)));\n }\n if (seen.size === 0) {\n breaks.push({\n file: \"package.json\",\n message:\n \"No typecheck script names a tsconfig, so no TypeScript file has a type check.\",\n fix: \"Add a script typecheck (`tsc -p tsconfig.json`) to each package.\",\n });\n }\n for (const file of files) {\n if (covered.has(file)) continue;\n const folder = file.includes(\"/\")\n ? file.slice(0, file.lastIndexOf(\"/\"))\n : \"\";\n const extension = CONFIG_FILE.exec(file)?.[1];\n const tsconfig = testConfigs.get(folder);\n const edits =\n extension === undefined || tsconfig === undefined\n ? []\n : configEdit(context.root, tsconfig, extension);\n breaks.push({\n file,\n message: `${file} is in no tsconfig that a typecheck script examines.`,\n edits,\n });\n }\n return breaks;\n },\n};\n","/**\n * The rule `typed-scripts`: git keeps no JavaScript source and no shell script with logic. Each\n * script is TypeScript, which Node starts directly (type stripping), with types and tests like the code.\n */\nimport { readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { byCode } from \"../workspace.ts\";\nimport type { Break, Rule } from \"../rule.ts\";\n\n/** The interpreters of a `#!` line that make a file without an extension a script of a kind. */\nconst SHEBANG = /^#!\\s*(?:\\S*\\/)?(?:env\\s+(?:-\\S+\\s+)*)?(node|bash|sh|zsh|dash|ksh|pwsh)\\b/;\n\n/** This function gives the extension of a file with its dot, in lower case, or `\"\"`. */\nfunction extensionOf(file: string): string {\n const name = file.slice(file.lastIndexOf(\"/\") + 1);\n const dot = name.lastIndexOf(\".\");\n return dot <= 0 ? \"\" : name.slice(dot).toLowerCase();\n}\n\n/** This function gives the lines of a shell script that do work: not empty, not a comment, not the `#!` line. */\nexport function codeLines(text: string): number {\n return text.split(/\\r?\\n/).filter((line) => {\n const trimmed = line.trim();\n return trimmed !== \"\" && !trimmed.startsWith(\"#\");\n }).length;\n}\n\n/** This function reads the first line of a file, or `\"\"` when the file cannot be read. */\nfunction firstLine(path: string): string {\n try {\n const text = readFileSync(path, \"utf8\");\n const end = text.indexOf(\"\\n\");\n return end < 0 ? text : text.slice(0, end);\n } catch {\n return \"\";\n }\n}\n\nexport const typedScripts: Rule = {\n id: \"typed-scripts\",\n title: \"Git keeps no JavaScript source (`.js`, `.mjs`, `.cjs`, `.jsx`) and no shell script of more than one line of code: each script is TypeScript.\",\n reason:\n \"A script has bugs like the code, and types and tests find them. Node 22.18 and later runs a `.ts` file directly, so a script in JavaScript or in a shell language has no cost to save and no check. A shell file stays only as a launcher of one line.\",\n fix: \"Rename the file to `.ts`, add the types, and check it with `tsc --noEmit` and a test. Move the logic of a shell script into a `.ts` file, and keep the shell file as one line that starts it, or remove it. A file that must stay (generated output, vendored code, a configuration that a tool reads only as JavaScript) goes in `ignore` with its reason.\",\n sources: [{ repo: \"fleet\", rule: \"typed-everything\", doc: \"docs/STRATEGY.md:78\" }],\n options: {\n javascript: { type: \"strings\", default: [\".js\", \".mjs\", \".cjs\", \".jsx\"], description: \"The extensions of JavaScript source.\" },\n shell: { type: \"strings\", default: [\".sh\", \".bash\", \".zsh\", \".ps1\"], description: \"The extensions of shell scripts.\" },\n shellLines: { type: \"number\", default: 1, description: \"The most lines of code that a shell script can have: a launcher.\" },\n },\n check(context, options) {\n const files = context.gitFiles();\n if (files === undefined) return { skipped: \"the root is not in a git repository\" };\n const javascript = new Set(Array.isArray(options[\"javascript\"]) ? options[\"javascript\"] : []);\n const shell = new Set(Array.isArray(options[\"shell\"]) ? options[\"shell\"] : []);\n const limit = typeof options[\"shellLines\"] === \"number\" ? options[\"shellLines\"] : 1;\n const breaks: Break[] = [];\n for (const file of [...files].sort(byCode)) {\n let extension = extensionOf(file);\n if (extension === \"\") {\n const interpreter = SHEBANG.exec(firstLine(join(context.root, file)))?.[1];\n if (interpreter === undefined) continue;\n extension = interpreter === \"node\" ? \".js\" : \".sh\";\n if (!javascript.has(extension) && !shell.has(extension)) continue;\n }\n if (javascript.has(extension)) {\n breaks.push({ file, message: `${file} is JavaScript.`, fix: `Rename ${file} to .ts, add the types, and check it with tsc and a test.` });\n } else if (shell.has(extension)) {\n let lines = 0;\n try {\n lines = codeLines(readFileSync(join(context.root, file), \"utf8\"));\n } catch {\n continue;\n }\n if (lines > limit) {\n breaks.push({\n file,\n message: `${file} is a shell script with ${lines} lines of code (the most is ${limit}).`,\n fix: `Move the logic of ${file} into a .ts file, and keep ${file} as a launcher of ${limit} line(s), or remove it.`,\n });\n }\n }\n }\n return breaks;\n },\n};\n","/**\n * The rule `trust-policy`: a pnpm repository sets `trustPolicy: no-downgrade` in `pnpm-workspace.yaml`. It checks each\n * version for 7 days after its publish (`trustPolicyIgnoreAfter`). It excludes the scopes of the release train.\n */\nimport { readFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { hasFile, type Break, type Edit, type Rule } from \"../rule.ts\";\n\nconst WORKSPACE = \"pnpm-workspace.yaml\";\n\n/** The scopes that the release train updates. The train checks the provenance of their versions itself. */\nexport const TRAIN_SCOPES = [\"@mark1russell7/*\", \"@procedures/*\"] as const;\n\n/** 7 days, in minutes. */\nexport const IGNORE_AFTER = 10_080;\n\nconst POLICY_COMMENT = [\n \"# An install fails when a new version has less trust evidence than an earlier version of the same package: for\",\n \"# example, a version with no provenance after versions from a trusted publisher. Such a version can be a stolen token.\",\n];\nconst IGNORE_COMMENT = [\n \"# The check examines the versions of the last 7 days. A stolen-token version is new, and the registry removes it in\",\n \"# hours. Older versions can have less evidence for other reasons: for example undici-types 6.21.0 under @types/node.\",\n];\nconst EXCLUDE_COMMENT = [\n \"# The release train updates our own scopes, and it checks the provenance of each version. pnpm cannot use them: it\",\n \"# ranks the first versions, which were staged by hand, above the versions from release.yml (pnpm/pnpm#16689).\",\n];\n\n/** A top-level key of the file: its line index, and its value without a comment or quotes. */\nfunction valueOf(lines: readonly string[], key: string): { index: number; value: string } | undefined {\n const index = lines.findIndex((line) => line.startsWith(`${key}:`));\n if (index < 0) return undefined;\n const value = (lines[index] ?? \"\").slice(key.length + 1).replace(/\\s+#.*$/, \"\").trim();\n return { index, value: value.replace(/^[\"']|[\"']$/g, \"\") };\n}\n\n/** This function gives the items of the block list under the line `start`, the index of its last item, and its indent. */\nfunction blockList(lines: readonly string[], start: number): { items: string[]; last: number; indent: string } {\n const items: string[] = [];\n let last = start;\n let indent = \" \";\n for (let index = start + 1; index < lines.length; index++) {\n const line = lines[index] ?? \"\";\n const text = line.trim();\n if (text === \"\" || text.startsWith(\"#\")) continue;\n if (!text.startsWith(\"- \") || line === line.trimStart()) break;\n indent = line.slice(0, line.length - line.trimStart().length);\n items.push(text.slice(2).replace(/\\s+#.*$/, \"\").trim().replace(/^[\"']|[\"']$/g, \"\"));\n last = index;\n }\n return { items, last, indent };\n}\n\n/** This function gives the text with the lines `added` after the line `after` (-1: at the end), with the line ends of the text. */\nfunction insert(text: string, after: number, added: readonly string[]): string {\n const eol = text.includes(\"\\r\\n\") ? \"\\r\\n\" : \"\\n\";\n const lines = text.split(/\\r?\\n/);\n if (after >= 0) {\n lines.splice(after + 1, 0, ...added);\n return lines.join(eol);\n }\n // At the end: one empty line before the block, and one line end after it\n while (lines.length > 0 && lines[lines.length - 1] === \"\") lines.pop();\n return [...lines, ...(lines.length > 0 ? [\"\"] : []), ...added, \"\"].join(eol);\n}\n\n/** This function gives the text with the value of the top-level key on the line `index` replaced. */\nfunction setValue(text: string, index: number, key: string, value: string): string {\n const eol = text.includes(\"\\r\\n\") ? \"\\r\\n\" : \"\\n\";\n const lines = text.split(/\\r?\\n/);\n lines[index] = `${key}: ${value}`;\n return lines.join(eol);\n}\n\nexport const trustPolicy: Rule = {\n id: \"trust-policy\",\n title: \"A pnpm repository sets `trustPolicy: no-downgrade` for the versions of the last 7 days, and excludes the scopes of the release train.\",\n reason:\n \"A stolen npm token can publish a version with no provenance, and the next install takes it. With `no-downgrade`, pnpm refuses a version with less trust evidence than an earlier version. The release age of pnpm keeps out the versions of the last day; this check covers the next days. The release train updates our own scopes at once and checks their provenance itself.\",\n fix: \"Add `trustPolicy: no-downgrade`, `trustPolicyIgnoreAfter: 10080` and a `trustPolicyExclude` with the scopes of the option `exclude` to `pnpm-workspace.yaml`. `conventions fix` writes them.\",\n sources: [{ repo: \"fleet\", rule: \"trust-policy\", doc: \"docs/STRATEGY.md (2026-11-01, release age and trust policy)\" }],\n options: {\n exclude: {\n type: \"strings\",\n default: [...TRAIN_SCOPES],\n description: \"The patterns that `trustPolicyExclude` must have: the scopes whose versions the release train checks.\",\n },\n ignoreAfter: {\n type: \"number\",\n default: IGNORE_AFTER,\n description: \"The smallest `trustPolicyIgnoreAfter`, in minutes. A larger value checks more versions.\",\n },\n },\n check(context, options) {\n if (!hasFile(context.root, \"pnpm-lock.yaml\")) return { skipped: \"the repository has no pnpm-lock.yaml\" };\n const exclude = Array.isArray(options[\"exclude\"]) ? (options[\"exclude\"] as readonly string[]) : TRAIN_SCOPES;\n const ignoreAfter = typeof options[\"ignoreAfter\"] === \"number\" ? options[\"ignoreAfter\"] : IGNORE_AFTER;\n const exists = hasFile(context.root, WORKSPACE);\n const text = exists ? readFileSync(join(context.root, WORKSPACE), \"utf8\") : \"\";\n const lines = text.split(/\\r?\\n/);\n const edit = (after: string): Edit[] => (after === text ? [] : [{ file: WORKSPACE, before: text, after }]);\n const at = (index: number | undefined) => (index === undefined ? {} : { line: index + 1 });\n const breaks: Break[] = [];\n\n const policy = valueOf(lines, \"trustPolicy\");\n if (policy?.value !== \"no-downgrade\") {\n breaks.push({\n file: WORKSPACE,\n ...at(policy?.index),\n message: policy === undefined ? `${exists ? WORKSPACE : \"The repository\"} does not set trustPolicy.` : `trustPolicy is \"${policy.value}\", not \"no-downgrade\".`,\n edits: edit(policy === undefined ? insert(text, -1, [...POLICY_COMMENT, \"trustPolicy: no-downgrade\"]) : setValue(text, policy.index, \"trustPolicy\", \"no-downgrade\")),\n });\n }\n\n const ignore = valueOf(lines, \"trustPolicyIgnoreAfter\");\n const minutes = ignore === undefined ? undefined : Number(ignore.value);\n if (minutes === undefined || !Number.isInteger(minutes) || minutes < ignoreAfter) {\n const after = ignore !== undefined ? setValue(text, ignore.index, \"trustPolicyIgnoreAfter\", String(ignoreAfter)) : policy !== undefined ? insert(text, policy.index, [...IGNORE_COMMENT, `trustPolicyIgnoreAfter: ${String(ignoreAfter)}`]) : text;\n breaks.push({\n file: WORKSPACE,\n ...at(ignore?.index),\n message:\n ignore === undefined\n ? `${WORKSPACE} does not set trustPolicyIgnoreAfter, so pnpm also refuses old versions that have less evidence for other reasons.`\n : `trustPolicyIgnoreAfter is ${ignore.value}, not a whole number of at least ${String(ignoreAfter)} minutes.`,\n // With no trustPolicy line, the edit waits for the next check, which places it under that line\n edits: edit(after),\n });\n }\n\n const start = lines.findIndex((line) => line.startsWith(\"trustPolicyExclude:\"));\n const inline = start >= 0 && (valueOf(lines, \"trustPolicyExclude\")?.value ?? \"\") !== \"\";\n const list = start >= 0 && !inline ? blockList(lines, start) : { items: [], last: start, indent: \" \" };\n const missing = exclude.filter((pattern) => !list.items.includes(pattern));\n if (missing.length > 0) {\n const items = missing.map((pattern) => `${list.indent}- ${JSON.stringify(pattern)}`);\n // The fix does not rewrite a list in the flow style ([a, b]): a person adds the patterns\n const after = inline ? text : start >= 0 ? insert(text, list.last, items) : policy === undefined ? text : insert(text, -1, [...EXCLUDE_COMMENT, \"trustPolicyExclude:\", ...items]);\n breaks.push({\n file: WORKSPACE,\n ...at(start >= 0 ? start : undefined),\n message: `trustPolicyExclude does not have ${missing.join(\", \")}.`,\n edits: edit(after),\n });\n }\n return breaks;\n },\n};\n","/**\n * The rule `unreleased-change`: a change does not set a version that npm has. With the option `versionEachChange`, a\n * change of the files that a published package ships also raises its version. Else the release skips the change.\n */\nimport { spawnSync } from \"node:child_process\";\nimport { existsSync, readFileSync } from \"node:fs\";\nimport { rangeOf } from \"../change.ts\";\nimport { cleanPath, codePackages, hasFile, lineOf, matchesAny, type Break, type Manifest, type PackageInfo, type Rule, type RuleContext } from \"../rule.ts\";\n\n/**\n * The answer of the registry for one package, or an error. The answer has each version that npm has or had (none for a\n * new package) and the time of each publish (ISO 8601).\n */\nexport type RegistryAnswer = { readonly versions: readonly string[]; readonly times?: Readonly<Record<string, string>> } | { readonly error: string };\n\n/** This function gives the answer of the registry at the URL `registry` for each package name of `names`. */\nexport type RegistryLookup = (names: readonly string[], registry: string) => ReadonlyMap<string, RegistryAnswer>;\n\n/** The registry of npm. */\nexport const NPM_REGISTRY = \"https://registry.npmjs.org\";\n\n/** The globs of the files of a package, relative to its folder, that do not ship: tests, fixtures, docs and configs. */\nexport const UNSHIPPED_FILES: readonly string[] = [\n \"**/*.md\",\n \"**/*.{test,spec}.*\",\n \"**/{test,tests,__tests__,fixtures,__fixtures__,__snapshots__,bench,benches,benchmarks,e2e}/**\",\n \"**/*.{bench,e2e}.*\",\n \"**/.*/**\",\n \"**/tsconfig*.json\",\n \"**/*.config.*\",\n \"docs/**\",\n \"examples/**\",\n \"scripts/**\",\n \"site/**\",\n \"LICENSE*\",\n \"pnpm-lock.yaml\",\n \"pnpm-workspace.yaml\",\n];\n\n/** The fields of `package.json` that change what the package gives to a user. A change of the dependencies is not here. */\nexport const SHIPPED_FIELDS: readonly string[] = [\"main\", \"module\", \"types\", \"typings\", \"exports\", \"imports\", \"bin\", \"files\", \"type\", \"publishConfig\", \"sideEffects\", \"browser\"];\n\n/** The script that `npmLookup` starts in a child process of Node, so that the rule stays synchronous. */\nconst LOOKUP_SCRIPT = `\nconst [registry, ...names] = process.argv.slice(1);\nlet base = registry;\nwhile (base.endsWith(\"/\")) base = base.slice(0, -1);\nPromise.all(names.map(async (name) => {\n try {\n const response = await fetch(base + \"/\" + name.replace(\"/\", \"%2f\"), { headers: { accept: \"application/json\" }, signal: AbortSignal.timeout(20000) });\n if (response.status === 404) return [name, { versions: [] }];\n if (!response.ok) return [name, { error: \"HTTP \" + response.status }];\n const data = await response.json();\n const times = Object.fromEntries(Object.entries(data.time ?? {}).filter(([key]) => key !== \"created\" && key !== \"modified\"));\n return [name, { versions: [...new Set([...Object.keys(data.versions ?? {}), ...Object.keys(times)])], times }];\n } catch (error) {\n return [name, { error: String(error && error.message ? error.message : error) }];\n }\n})).then((entries) => process.stdout.write(JSON.stringify(Object.fromEntries(entries))));\n`;\n\n/**\n * This function asks the registry for the versions of each package, in one child process of Node. A version that npm\n * removed stays in the answer, because npm does not accept it again.\n */\nexport const npmLookup: RegistryLookup = (names, registry) => {\n const fail = (error: string): ReadonlyMap<string, RegistryAnswer> => new Map(names.map((name) => [name, { error }]));\n if (names.length === 0) return new Map();\n const result = spawnSync(process.execPath, [\"-e\", LOOKUP_SCRIPT, registry, ...names], { encoding: \"utf8\", timeout: 60_000, windowsHide: true });\n if (result.error !== undefined || result.status !== 0) return fail(result.error?.message ?? `the lookup ended with exit code ${String(result.status)}`);\n try {\n const answers = JSON.parse(result.stdout) as Record<string, RegistryAnswer>;\n return new Map(names.map((name) => [name, answers[name] ?? { error: \"no answer\" }]));\n } catch {\n return fail(\"the lookup gave no JSON\");\n }\n};\n\n/** This function gives the strings of a field of `package.json` that is a list of strings. */\nconst stringsOf = (manifest: Manifest, field: string): readonly string[] => {\n const value = manifest[field];\n return Array.isArray(value) ? value.filter((item): item is string => typeof item === \"string\") : [];\n};\n\n/** This function tells if a path relative to the root is in the folder `folder`. The root is `\"\"`. */\nconst inside = (folder: string, path: string): boolean => folder === \"\" || path.startsWith(`${folder}/`);\n\n/** This function gives the globs of an entry of the field `files`: the entry, and each path under it. */\nconst entryGlobs = (entry: string): readonly string[] => {\n let glob = cleanPath(entry);\n while (glob.endsWith(\"/\")) glob = glob.slice(0, -1);\n return [glob, `${glob}/**`];\n};\n\n/** This function reads the manifest of the text of a `package.json` file, or gives undefined. */\nfunction parseManifest(text: string | undefined): Manifest | undefined {\n if (text === undefined) return undefined;\n try {\n const parsed: unknown = JSON.parse(text);\n return typeof parsed === \"object\" && parsed !== null && !Array.isArray(parsed) ? (parsed as Manifest) : undefined;\n } catch {\n return undefined;\n }\n}\n\n/** This function tells if a version is a placeholder before the first release: `0.0.0` or `0.0.0-<stage>`. */\nconst isPlaceholder = (version: string): boolean => /^0\\.0\\.0(?:[-+].*)?$/.test(version);\n\n/** The published packages of the repository: the root package and the code packages that are not private and have a name and a version. */\nfunction publishedOf(context: RuleContext): readonly PackageInfo[] {\n const all = [context.rootPackage, ...codePackages(context)];\n return all\n .filter((pkg, index) => all.findIndex((other) => other.file === pkg.file) === index)\n .filter((pkg) => pkg.manifest[\"private\"] !== true && typeof pkg.manifest[\"name\"] === \"string\" && typeof pkg.manifest[\"version\"] === \"string\");\n}\n\n/** A published package of the change: its versions, and the shipped files that the change changes. */\ninterface Candidate {\n readonly pkg: PackageInfo;\n readonly name: string;\n /** The version at HEAD. */\n readonly version: string;\n /** The version that the commits of the change set, from the merge base to the head of the change, or undefined. */\n readonly sets: string | undefined;\n /** The version at the start of the range: the base branch, or the commit before the push. */\n readonly start: string | undefined;\n /** The shipped files that the change changes, relative to the folder. Only the option `versionEachChange` reads them. */\n readonly files: readonly string[];\n}\n\n/** This function gives the time of the push in milliseconds, from the field `repository.pushed_at` of the event file. */\nfunction pushedAt(context: RuleContext): number | undefined {\n const file = context.env[\"GITHUB_EVENT_PATH\"];\n if (file === undefined || file === \"\" || !existsSync(file)) return undefined;\n try {\n const event = JSON.parse(readFileSync(file, \"utf8\")) as { repository?: { pushed_at?: unknown } };\n const value = event.repository?.pushed_at;\n if (typeof value === \"number\") return value * 1000;\n return typeof value === \"string\" && !Number.isNaN(Date.parse(value)) ? Date.parse(value) : undefined;\n } catch {\n return undefined;\n }\n}\n\n/** This function gives the shipped files of `pkg` in the list `changed`, relative to the folder of the package. */\nfunction shippedFiles(pkg: PackageInfo, changed: readonly string[], before: Manifest | undefined, context: RuleContext, unshipped: readonly string[], fields: readonly string[]): string[] {\n const folders = context.packages.map((other) => other.folder).filter((folder) => folder !== \"\");\n // The root package does not have the files of the packages of the workspace\n const own = (path: string): boolean => inside(pkg.folder, path) && (pkg.folder !== \"\" || !folders.some((folder) => inside(folder, path)));\n const relative = (path: string): string => (pkg.folder === \"\" ? path : path.slice(pkg.folder.length + 1));\n // An entry of `files` that git does not track is build output, which comes from each source file\n const entries = stringsOf(pkg.manifest, \"files\");\n const positive = entries.filter((entry) => !entry.startsWith(\"!\"));\n const negative = entries.filter((entry) => entry.startsWith(\"!\")).flatMap((entry) => entryGlobs(entry.slice(1)));\n const ownTracked = (context.gitFiles() ?? []).filter(own).map(relative);\n const whitelist = positive.length > 0 && positive.every((entry) => ownTracked.some((path) => matchesAny(path, entryGlobs(entry))));\n const ships = (path: string): boolean =>\n path !== \"package.json\" && !matchesAny(path, unshipped) && (!whitelist || (positive.some((entry) => matchesAny(path, entryGlobs(entry))) && !matchesAny(path, negative)));\n const files = changed.filter(own).map(relative).filter(ships);\n if (changed.includes(pkg.file) && before !== undefined && fields.some((field) => JSON.stringify(before[field]) !== JSON.stringify(pkg.manifest[field]))) files.push(\"package.json\");\n return files;\n}\n\n/** This function makes the rule with the registry lookup `lookup`. The tests give a fake lookup. */\nexport function unreleasedChangeRule(lookup: RegistryLookup = npmLookup): Rule {\n return {\n id: \"unreleased-change\",\n changeScoped: true,\n title: \"A change does not set a version that npm has. With `versionEachChange`, a change of the shipped files also raises the version.\",\n reason:\n \"The release workflow publishes each version that npm does not have, and it skips the others. When two pull requests set the same version, the second merge changes the code but no version, and nothing fails (rigor #18 and #20, 2026-11-02).\",\n fix: \"Raise the version of the package in a pull request to a version that npm does not have, with the SemVer rules (RELEASING.md). Then the release workflow publishes the change.\",\n sources: [\n { repo: \"rigor\", rule: \"unreleased-change\", doc: \"pull requests #18 and #20 (2026-11-02): two pull requests set the same version\" },\n ...[\"crawler\", \"coeval\", \"template\"].map((repo) => ({ repo, rule: \"unreleased-change\", doc: \".github/workflows/release.yml (it starts on a change of a version, and it skips each version that npm has)\" })),\n ],\n options: {\n versionEachChange: {\n type: \"boolean\",\n default: false,\n description:\n \"True when each pull request sets its version: a change of the shipped files with a version that npm has breaks, also on a push. False when a separate pull request raises the version.\",\n },\n unshipped: {\n type: \"strings\",\n default: UNSHIPPED_FILES,\n description: \"With `versionEachChange`: the globs of the files of a package, relative to its folder, that do not ship.\",\n },\n fields: {\n type: \"strings\",\n default: SHIPPED_FIELDS,\n description: \"With `versionEachChange`: the fields of `package.json` whose change ships. The dependencies are not in the default list.\",\n },\n registry: { type: \"string\", default: NPM_REGISTRY, description: \"The URL of the registry that has the versions.\" },\n },\n check(context, options) {\n if (hasFile(context.root, \".changeset/config.json\")) return { skipped: \"the repository uses Changesets: the changesets raise the versions, and the changeset check examines them\" };\n const published = publishedOf(context).filter((pkg) => !isPlaceholder(String(pkg.manifest[\"version\"])));\n if (published.length === 0) return { skipped: \"the repository has no published package with a release version\" };\n const range = rangeOf(context, { push: true });\n if (\"skipped\" in range) return range;\n const strict = options[\"versionEachChange\"] === true;\n const push = context.base === undefined && context.env[\"GITHUB_EVENT_NAME\"] === \"push\";\n const out = strict ? context.git([\"diff\", \"--name-only\", \"--no-renames\", ...range.diff]) : \"\";\n if (out === undefined) return { skipped: \"git cannot give the changed files of the change\" };\n const changed = out.split(/\\r?\\n/).filter((file) => file !== \"\");\n const unshipped = Array.isArray(options[\"unshipped\"]) ? (options[\"unshipped\"] as readonly string[]) : UNSHIPPED_FILES;\n const fields = Array.isArray(options[\"fields\"]) ? (options[\"fields\"] as readonly string[]) : SHIPPED_FIELDS;\n const registry = typeof options[\"registry\"] === \"string\" ? options[\"registry\"] : NPM_REGISTRY;\n // The commits of the change itself go from the merge base to the head of the change. A push starts at the commit\n // before it. The version of the merge commit is not the version of the change: the base branch can change it too.\n const fork = push ? range.ends[0] : context.git([\"merge-base\", ...range.ends])?.trim();\n const notes: string[] = [];\n if (fork === undefined) notes.push(`the checkout does not have the merge base of ${range.ends.join(\" and \")}, so the rule cannot tell if the change sets a version`);\n const manifestAt = (ref: string, pkg: PackageInfo): Manifest | undefined => (ref === \"HEAD\" ? pkg.manifest : parseManifest(context.git([\"show\", `${ref}:${pkg.file}`])));\n const versionOf = (manifest: Manifest | undefined): string | undefined => (typeof manifest?.[\"version\"] === \"string\" ? manifest[\"version\"] : undefined);\n\n const candidates: Candidate[] = [];\n for (const pkg of published) {\n const atStart = manifestAt(range.ends[0], pkg);\n const set = versionOf(manifestAt(range.ends[1], pkg));\n const before = fork === undefined ? undefined : versionOf(fork === range.ends[0] ? atStart : manifestAt(fork, pkg));\n const sets = fork !== undefined && set !== undefined && !isPlaceholder(set) && set !== before ? set : undefined;\n const files = strict ? shippedFiles(pkg, changed, atStart, context, unshipped, fields) : [];\n if (sets === undefined && files.length === 0) continue;\n candidates.push({ pkg, name: String(pkg.manifest[\"name\"]), version: String(pkg.manifest[\"version\"]), sets, start: versionOf(atStart), files });\n }\n if (candidates.length === 0) return notes.length > 0 ? { skipped: notes.join(\"; \") } : [];\n\n const answers = lookup(\n candidates.map((candidate) => candidate.name),\n registry,\n );\n const pushTime = push ? pushedAt(context) : undefined;\n const breaks: Break[] = [];\n for (const candidate of candidates) {\n const answer = answers.get(candidate.name) ?? { error: \"no answer\" };\n if (\"error\" in answer) {\n notes.push(`the registry did not answer for ${candidate.name}: ${answer.error}`);\n continue;\n }\n const line = lineOf(candidate.pkg.text, '\"version\"');\n const at = { file: candidate.pkg.file, ...(line === undefined ? {} : { line }) };\n if (candidate.sets !== undefined) {\n const sets = candidate.sets;\n if (!answer.versions.includes(sets)) continue;\n // On a push, the release of the same push can publish the version that the push sets. Only a version that npm\n // had before the push is a break.\n if (push) {\n const time = Date.parse(answer.times?.[sets] ?? \"\");\n if (pushTime === undefined || Number.isNaN(time)) {\n notes.push(`the rule cannot tell if npm had ${candidate.name}@${sets} before the push`);\n continue;\n }\n if (time >= pushTime) continue;\n }\n breaks.push({ ...at, message: `${candidate.name}: the change sets the version ${sets}, but ${sets} is on npm already. Raise the version (SemVer) in a pull request.` });\n } else if (strict && candidate.files.length > 0 && candidate.start === candidate.version && answer.versions.includes(candidate.version)) {\n const shown = candidate.files.slice(0, 3).map((file) => (candidate.pkg.folder === \"\" ? file : `${candidate.pkg.folder}/${file}`));\n const more = candidate.files.length > shown.length ? ` and ${String(candidate.files.length - shown.length)} more` : \"\";\n breaks.push({\n ...at,\n message: `${candidate.name}: the change is not released, because ${candidate.version} is on npm already. Raise the version (SemVer) in a pull request. The change ships ${shown.join(\", \")}${more}.`,\n });\n }\n }\n if (breaks.length === 0 && notes.length > 0) return { skipped: notes.join(\"; \") };\n return breaks;\n },\n };\n}\n\nexport const unreleasedChange: Rule = unreleasedChangeRule();\n","/**\n * The rule `workspace-protocol`: a package uses another package of the workspace through `workspace:`.\n */\nimport { keyLine, specifiersOf, type Break, type Rule } from \"../rule.ts\";\n\n/** The fields that the rule examines. A peer dependency often keeps a range for its users, so the rule does not examine it. */\nconst FIELDS = [\"dependencies\", \"devDependencies\", \"optionalDependencies\"] as const;\n\nexport const workspaceProtocol: Rule = {\n id: \"workspace-protocol\",\n title: \"A dependency on a package of this workspace uses the `workspace:` protocol.\",\n reason:\n \"A version range or a git ref of a package of the same repository gets an old copy from the registry or from git, not the source next to it. Then a change and its test do not meet.\",\n fix: 'Use `\"workspace:*\"`. pnpm writes the real version when it publishes the package.',\n sources: [\n { repo: \"client\", rule: \"workspace-protocol\", doc: \"CLAUDE.md:52\" },\n { repo: \"client\", rule: \"workspace-deps\", doc: \"CLAUDE.md:52\" },\n { repo: \"coeval\", rule: \"pinned-deps\", doc: \"CLAUDE.md:41\" },\n { repo: \"headroom\", rule: \"non-npm-deps-pinned\", doc: \"CLAUDE.md:38\" },\n { repo: \"crawler\", rule: \"mcp-workspace-dep\", doc: \"CLAUDE.md:55\" },\n ],\n options: {\n prefix: { type: \"string\", default: \"workspace:\", description: 'The start of each specifier, for example \"workspace:*\" to refuse \"workspace:^\".' },\n },\n check(context, options) {\n const prefix = typeof options[\"prefix\"] === \"string\" ? options[\"prefix\"] : \"workspace:\";\n const names = new Set(context.packages.map((info) => info.manifest[\"name\"]).filter((name): name is string => typeof name === \"string\"));\n const breaks: Break[] = [];\n for (const info of [context.rootPackage, ...context.packages]) {\n for (const field of FIELDS) {\n for (const [name, spec] of specifiersOf(info.manifest, field)) {\n if (!names.has(name) || name === info.manifest[\"name\"] || spec.startsWith(prefix)) continue;\n const line = keyLine(info.text, field, name);\n breaks.push({\n file: info.file,\n ...(line === undefined ? {} : { line }),\n message: `${field} \"${name}\" is \"${spec}\", but \"${name}\" is a package of this workspace.`,\n fix: `Use \"${prefix === \"workspace:\" ? \"workspace:*\" : prefix}\".`,\n });\n }\n }\n }\n return breaks;\n },\n};\n","/**\n * The list of the rules, in the order of the output.\n */\nimport type { Rule } from \"../rule.ts\";\nimport { changelogVersion } from \"./changelog-version.ts\";\nimport { cuePreset } from \"./cue-preset.ts\";\nimport { gateTrigger } from \"./gate-trigger.ts\";\nimport { homePackage } from \"./home-package.ts\";\nimport { licenseFile } from \"./license-file.ts\";\nimport { mainCheck } from \"./main-check.ts\";\nimport { mainRunsFinish } from \"./main-runs-finish.ts\";\nimport { noBuildOutput } from \"./no-build-output.ts\";\nimport { noLocalPaths } from \"./no-local-paths.ts\";\nimport { pagesSite } from \"./pages-site.ts\";\nimport { pinnedGitDeps } from \"./pinned-git-deps.ts\";\nimport { pushMainOnly } from \"./push-main-only.ts\";\nimport { releaseFiles } from \"./release-files.ts\";\nimport { requiredScripts } from \"./required-scripts.ts\";\nimport { roadmapParses } from \"./roadmap-parses.ts\";\nimport { runnerBudget } from \"./runner-budget.ts\";\nimport { sharedDocs } from \"./shared-docs.ts\";\nimport { sourceMain } from \"./source-main.ts\";\nimport { testsRequired } from \"./tests-required.ts\";\nimport { tsconfigTest } from \"./tsconfig-test.ts\";\nimport { typedFiles } from \"./typed-files.ts\";\nimport { typedScripts } from \"./typed-scripts.ts\";\nimport { trustPolicy } from \"./trust-policy.ts\";\nimport { unreleasedChange } from \"./unreleased-change.ts\";\nimport { workspaceProtocol } from \"./workspace-protocol.ts\";\n\n/** Each rule of the check. */\nexport const RULES: readonly Rule[] = [\n pinnedGitDeps,\n workspaceProtocol,\n trustPolicy,\n sourceMain,\n tsconfigTest,\n cuePreset,\n requiredScripts,\n noBuildOutput,\n noLocalPaths,\n releaseFiles,\n unreleasedChange,\n changelogVersion,\n typedScripts,\n typedFiles,\n mainCheck,\n testsRequired,\n roadmapParses,\n runnerBudget,\n mainRunsFinish,\n pushMainOnly,\n gateTrigger,\n homePackage,\n licenseFile,\n pagesSite,\n sharedDocs,\n];\n\nexport { changelogVersion, cuePreset, gateTrigger, homePackage, licenseFile, mainCheck, mainRunsFinish, noBuildOutput, noLocalPaths, pagesSite, pinnedGitDeps, pushMainOnly, releaseFiles, requiredScripts, roadmapParses, runnerBudget, sharedDocs, sourceMain, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, workspaceProtocol };\n","/**\n * The commands `check`, `fix` and `--list` of the bin `conventions`, as functions. `runChecks` starts the\n * rules, `runFix` writes the edits of the breaks, and `runCli` reads the arguments and writes the result.\n */\nimport { appendFileSync, existsSync, mkdirSync, readFileSync, writeFileSync } from \"node:fs\";\nimport { dirname, join, resolve } from \"node:path\";\nimport { addedFiles } from \"./change.ts\";\nimport { findHomes, HOMES, mapMarkdown, mapText, mergeHomes, readOverlay, type Home } from \"./map.ts\";\nimport { parseConfig, type ConventionsConfig } from \"./config.ts\";\nimport { matchesAny, runGit, type Break, type Manifest, type PackageInfo, type Rule, type RuleContext } from \"./rule.ts\";\nimport { RULES } from \"./rules/index.ts\";\nimport { packageFolders, relativePath } from \"./workspace.ts\";\n\n/** The result of one rule. */\nexport interface RuleResult {\n readonly id: string;\n readonly title: string;\n readonly fix: string;\n /** `pass`: no break. `break`: one or more breaks. `off`: the configuration turns the rule off. `skipped`: the rule did not start. `error`: the rule threw. */\n readonly status: \"pass\" | \"break\" | \"off\" | \"skipped\" | \"error\";\n readonly breaks: readonly Break[];\n /** The number of breaks in the files of `ignore`. */\n readonly ignored: number;\n /** The reason of `off`, of `ignore`, of `skipped`, or the message of `error`. */\n readonly note?: string;\n}\n\n/** The result of `runChecks`. */\nexport interface CheckResult {\n readonly rules: readonly RuleResult[];\n /** True when a rule has a break or an error. */\n readonly failed: boolean;\n}\n\n/** The options of `runChecks`. */\nexport interface CheckOptions {\n /** The root of the repository. */\n readonly root: string;\n /** Only these rules. The default is each rule. */\n readonly only?: readonly string[];\n /** The base commit of the change, for the rules that examine a change. */\n readonly base?: string;\n readonly env?: Readonly<Record<string, string | undefined>>;\n /** The rules. The default is `RULES`. */\n readonly rules?: readonly Rule[];\n}\n\n/** This function reads a `package.json` file. */\nfunction readPackage(root: string, dir: string): PackageInfo {\n const path = join(dir, \"package.json\");\n const text = readFileSync(path, \"utf8\");\n const parsed: unknown = JSON.parse(text);\n const manifest = (typeof parsed === \"object\" && parsed !== null ? parsed : {}) as Manifest;\n return { folder: relativePath(root, dir), dir, file: relativePath(root, path), text, manifest };\n}\n\n/** This function reads the configuration of the root `package.json` at `root`. */\nexport function readConfig(root: string, rules: readonly Rule[] = RULES): ConventionsConfig {\n const file = join(root, \"package.json\");\n if (!existsSync(file)) throw new Error(`No package.json in ${root}.`);\n return parseConfig((JSON.parse(readFileSync(file, \"utf8\")) as Manifest)[\"conventions\"], rules);\n}\n\n/** This function gives the facts of the repository at `root` that the rules read. */\nexport function createContext(root: string, config: ConventionsConfig, options: Pick<CheckOptions, \"base\" | \"env\"> = {}): RuleContext {\n const rootPackage = readPackage(root, root);\n const packages = packageFolders(root, config.packages ?? undefined)\n .filter((dir) => resolve(dir) !== resolve(root))\n .map((dir) => readPackage(root, dir));\n let files: readonly string[] | undefined | null = null;\n return {\n root,\n rootPackage,\n packages,\n env: options.env ?? {},\n ...(options.base === undefined ? {} : { base: options.base }),\n gitFiles() {\n if (files === null) {\n const out = runGit(root, [\"ls-files\", \"-z\", \"--cached\"]);\n files = out === undefined ? undefined : out.split(\"\\0\").filter((file) => file !== \"\");\n }\n return files;\n },\n git: (args) => runGit(root, args),\n };\n}\n\n/** This function starts each rule on the repository at `options.root`, and gives the result of each rule. */\nexport function runChecks(options: CheckOptions): CheckResult {\n const root = resolve(options.root);\n const rules = options.rules ?? RULES;\n const unknown = (options.only ?? []).filter((id) => !rules.some((rule) => rule.id === id));\n if (unknown.length > 0) throw new Error(`Unknown rule: ${unknown.join(\", \")}. The rules are: ${rules.map((rule) => rule.id).join(\", \")}.`);\n const config = readConfig(root, rules);\n const context = createContext(root, config, options);\n const results: RuleResult[] = [];\n for (const rule of rules) {\n if (options.only !== undefined && options.only.length > 0 && !options.only.includes(rule.id)) continue;\n const ruleConfig = config.rules[rule.id] ?? { ignore: [], options: {} };\n const base = { id: rule.id, title: rule.title, fix: rule.fix };\n if (ruleConfig.off !== undefined) {\n results.push({ ...base, status: \"off\", breaks: [], ignored: 0, note: ruleConfig.off });\n continue;\n }\n let outcome: ReturnType<Rule[\"check\"]>;\n try {\n outcome = rule.check(context, ruleConfig.options);\n } catch (error) {\n results.push({ ...base, status: \"error\", breaks: [], ignored: 0, note: error instanceof Error ? error.message : String(error) });\n continue;\n }\n if (\"skipped\" in outcome) {\n results.push({ ...base, status: \"skipped\", breaks: [], ignored: 0, note: outcome.skipped });\n continue;\n }\n // `ignore` keeps the exceptions that exist. A file that the change adds is not one of them, so `ignore` does not\n // cover it: the glob scripts/*.mjs let new JavaScript files in with no check (client, 11-02).\n const added = ruleConfig.ignore.length > 0 ? addedFiles(context) : undefined;\n const breaks: Break[] = [];\n for (const item of outcome) {\n if (!matchesAny(item.file, ruleConfig.ignore)) breaks.push(item);\n else if (added?.has(item.file) === true) breaks.push({ ...item, message: `${item.message} The change adds this file, so \\`ignore\\` does not cover it.` });\n }\n const ignored = outcome.length - breaks.length;\n // An entry of `ignore` that matches no break is stale. A converted file stays on the list, and a new file with\n // the same name later passes with no check (fleet, 11-03).\n if (rule.changeScoped !== true) {\n for (const glob of ruleConfig.ignore) {\n if (outcome.some((item) => matchesAny(item.file, [glob]))) continue;\n breaks.push({ file: \"package.json\", message: `The entry \\`${glob}\\` of \\`ignore\\` matches no break of this rule. Remove it from the field \\`conventions\\`.` });\n }\n }\n const note = ruleConfig.reason === undefined ? {} : { note: ruleConfig.reason };\n results.push({ ...base, status: breaks.length > 0 ? \"break\" : \"pass\", breaks, ignored, ...note });\n }\n return { rules: results, failed: results.some((result) => result.status === \"break\" || result.status === \"error\") };\n}\n\n/** The result of `runFix`. */\nexport interface FixResult {\n /** The files that the edits changed, relative to the root, with `/`, in the order of the first change. */\n readonly changed: readonly string[];\n /** The number of checks. */\n readonly passes: number;\n /** The result of the last check, after the edits. */\n readonly result: CheckResult;\n}\n\n/** The most checks of `runFix`. Each check writes at most one edit of each file. */\nconst MAX_PASSES = 20;\n\n/**\n * This function writes the edits of the breaks, and checks again, until no edit applies. In each pass it writes the first\n * edit of each file whose `before` is the current text of the file. The other edits of that file wait for the next check,\n * which gives them again from the new text. Thus a fix does not write over a change that it did not see.\n */\nexport function runFix(options: CheckOptions): FixResult {\n const root = resolve(options.root);\n const changed: string[] = [];\n let result = runChecks(options);\n let passes = 1;\n while (passes < MAX_PASSES) {\n const written = new Set<string>();\n for (const rule of result.rules) {\n for (const edit of rule.breaks.flatMap((item) => item.edits ?? [])) {\n if (written.has(edit.file)) continue;\n const path = join(root, edit.file);\n // A file that does not exist has the text \"\": an edit with an empty `before` makes the file\n if ((existsSync(path) ? readFileSync(path, \"utf8\") : \"\") !== edit.before) continue;\n mkdirSync(dirname(path), { recursive: true });\n writeFileSync(path, edit.after);\n written.add(edit.file);\n if (!changed.includes(edit.file)) changed.push(edit.file);\n }\n }\n if (written.size === 0) break;\n result = runChecks(options);\n passes += 1;\n }\n return { changed, passes, result };\n}\n\n/** This function gives a result for JSON: each break without the texts of its edits, and with `fixable`. */\nfunction withoutEdits(result: CheckResult): object {\n return {\n ...result,\n rules: result.rules.map((rule) => ({ ...rule, breaks: rule.breaks.map(({ edits, ...item }) => ({ ...item, fixable: (edits ?? []).length > 0 })) })),\n };\n}\n\n/** The most breaks of one rule in the text output. The JSON output has each break. */\nconst MAX_SHOWN = 50;\n\n/** This function gives the place of a break as `file:line`. */\nconst placeOf = (item: Break): string => (item.line === undefined ? item.file : `${item.file}:${item.line}`);\n\n/** This function gives the text of a result for a terminal or a CI log. */\nexport function formatResult(result: CheckResult): string {\n const count = (status: RuleResult[\"status\"]): number => result.rules.filter((rule) => rule.status === status).length;\n const breaks = result.rules.reduce((sum, rule) => sum + rule.breaks.length, 0);\n const out: string[] = [\n `conventions: ${result.rules.length} rules: ${count(\"pass\")} pass, ${count(\"break\")} with ${breaks} break(s), ${count(\"off\")} off, ${count(\"skipped\")} skipped, ${count(\"error\")} error(s).`,\n \"\",\n ];\n const label: Record<RuleResult[\"status\"], string> = { pass: \"pass \", break: \"BREAK\", off: \"off \", skipped: \"skip \", error: \"ERROR\" };\n for (const rule of result.rules) {\n const extra = rule.ignored > 0 ? ` (${rule.ignored} ignored: ${rule.note ?? \"\"})` : rule.note !== undefined && rule.status !== \"pass\" ? ` (${rule.note})` : \"\";\n out.push(`${label[rule.status]} ${rule.id}${rule.breaks.length > 0 ? `: ${rule.breaks.length} break(s)` : \"\"}${extra}`);\n for (const item of rule.breaks.slice(0, MAX_SHOWN)) {\n out.push(` ${placeOf(item)} ${item.message}${(item.edits ?? []).length > 0 ? \" (conventions fix writes the fix)\" : \"\"}`);\n if (item.fix !== undefined) out.push(` fix: ${item.fix}`);\n }\n if (rule.breaks.length > MAX_SHOWN) out.push(` ... ${rule.breaks.length - MAX_SHOWN} more. Start \\`conventions check --json\\` for each break.`);\n if (rule.breaks.length > 0) out.push(` rule: ${rule.title}`, ` fix: ${rule.fix}`);\n }\n if (result.failed) out.push(\"\", \"To turn a rule off or to keep an exception, add a reason in the field conventions of package.json (`conventions --list`).\");\n return `${out.join(\"\\n\")}\\n`;\n}\n\n/** This function escapes the text of a cell of a Markdown table: first each backslash, then each `|`. */\nconst cell = (text: string): string => text.replace(/\\\\/g, \"\\\\\\\\\").replace(/\\|/g, \"\\\\|\").replace(/\\r?\\n/g, \" \");\n\n/** This function gives the result as Markdown for the summary of a GitHub Actions run. */\nexport function summaryMarkdown(result: CheckResult): string {\n const out = [\"### Conventions\", \"\", \"| Rule | Result | Note |\", \"|---|---|---|\"];\n for (const rule of result.rules) {\n const shown = rule.status === \"break\" ? `${rule.breaks.length} break(s)` : rule.status;\n const note = rule.ignored > 0 ? `${rule.ignored} ignored: ${rule.note ?? \"\"}` : (rule.note ?? \"\");\n out.push(`| \\`${rule.id}\\` | ${shown} | ${cell(note)} |`);\n }\n const broken = result.rules.filter((rule) => rule.breaks.length > 0);\n for (const rule of broken) {\n out.push(\"\", `<details open><summary><code>${rule.id}</code>: ${rule.breaks.length} break(s)</summary>`, \"\", `${rule.title} Fix: ${rule.fix}`, \"\");\n for (const item of rule.breaks.slice(0, MAX_SHOWN)) out.push(`- \\`${placeOf(item)}\\`: ${item.message}${item.fix === undefined ? \"\" : ` Fix: ${item.fix}`}`);\n if (rule.breaks.length > MAX_SHOWN) out.push(`- ... ${rule.breaks.length - MAX_SHOWN} more`);\n out.push(\"\", \"</details>\");\n }\n return `${out.join(\"\\n\")}\\n`;\n}\n\n/** This function escapes a value of a workflow command of GitHub Actions. */\nconst escapeData = (text: string): string => text.replace(/%/g, \"%25\").replace(/\\r/g, \"%0D\").replace(/\\n/g, \"%0A\");\nconst escapeProperty = (text: string): string => escapeData(text).replace(/:/g, \"%3A\").replace(/,/g, \"%2C\");\n\n/** This function gives an `::error` workflow command for each break, so that GitHub shows each break on its line in the pull request. */\nexport function annotations(result: CheckResult): string {\n const out: string[] = [];\n for (const rule of result.rules) {\n for (const item of rule.breaks) {\n const line = item.line === undefined ? \"\" : `,line=${item.line}`;\n out.push(`::error file=${escapeProperty(item.file)}${line},title=${escapeProperty(`conventions ${rule.id}`)}::${escapeData(`${item.message} Fix: ${item.fix ?? rule.fix}`)}`);\n }\n }\n return out.length === 0 ? \"\" : `${out.join(\"\\n\")}\\n`;\n}\n\n/** This function gives the text of `--list`: each rule, its reason, its fix, its options, its state and its audit sources. */\nexport function listRules(config: ConventionsConfig | undefined, rules: readonly Rule[] = RULES): string {\n const out: string[] = [];\n for (const rule of rules) {\n const ruleConfig = config?.rules[rule.id];\n const state = ruleConfig?.off !== undefined ? `off: ${ruleConfig.off}` : \"on\";\n out.push(`${rule.id} (${state})`, ` ${rule.title}`, ` why: ${rule.reason}`, ` fix: ${rule.fix}`);\n for (const [name, spec] of Object.entries(rule.options)) {\n const value = ruleConfig?.options[name] ?? spec.default;\n out.push(` option ${name} = ${JSON.stringify(value)}: ${spec.description}`);\n }\n if (ruleConfig !== undefined && ruleConfig.ignore.length > 0) out.push(` ignore ${ruleConfig.ignore.join(\", \")}: ${ruleConfig.reason ?? \"\"}`);\n else if (ruleConfig?.reason !== undefined) out.push(` reason: ${ruleConfig.reason}`);\n out.push(` from: ${rule.sources.map((source) => `${source.repo} ${source.rule} (${source.doc})`).join(\"; \")}`, \"\");\n }\n return `${out.join(\"\\n\")}`;\n}\n\n/** The input and output of `runCli`. */\nexport interface CliIo {\n readonly cwd: string;\n readonly env: Readonly<Record<string, string | undefined>>;\n readonly stdout: (text: string) => void;\n readonly stderr: (text: string) => void;\n}\n\n/** The help text of the bin. */\nexport const USAGE: string = `Usage: conventions check [options]\n conventions fix [options]\n conventions --list\n conventions map [words] [--markdown | --json] [--overlay <file>]\n\n check Start each rule. Exit code 1 when a rule has a break.\n fix Write the fixes of the breaks that have one, and check again. Exit code 1 when a break stays.\n --list Show each rule: why, fix, options, state and the audit rows that it comes from.\n map Show the home package of each area of code, or of the areas that match the words.\n --markdown writes the table with the rule, and --overlay adds the homes of a JSON file.\n\n --root <folder> The root of the repository. The default is the current folder.\n --rule <id> Only this rule. Use it again for more rules.\n --base <ref> The base commit of the change, for the rule release-files. On a pull request, the rule finds it.\n --json Write the result as JSON.\n -h, --help Show this text.\n\nThe field \"conventions\" of the root package.json turns a rule off with a reason, keeps an exception\nwith a reason, and sets the options of a rule with a reason:\n\n \"conventions\": { \"rules\": { \"no-build-output\": { \"off\": \"<reason>\" },\n \"cue-preset\": { \"ignore\": [\"packages/web/**\"], \"reason\": \"<reason>\" },\n \"workspace-protocol\": { \"prefix\": \"workspace:*\", \"reason\": \"<reason>\" } } }\n`;\n\n/** An error of the arguments: exit code 2 and the help text. */\nclass UsageError extends Error {}\n\n/** This function starts the bin with the arguments `args`, and gives its exit code. */\nexport function runCli(args: readonly string[], io: CliIo): number {\n if (args[0] === \"map\") return runMap(args.slice(1), io);\n let check = false;\n let fix = false;\n let list = false;\n let json = false;\n let root = io.cwd;\n let base: string | undefined;\n const only: string[] = [];\n try {\n for (let index = 0; index < args.length; index++) {\n const arg = args[index] ?? \"\";\n const value = (): string => {\n const next = args[++index];\n if (next === undefined || next.startsWith(\"-\")) throw new UsageError(`The option ${arg} needs a value.`);\n return next;\n };\n if (arg === \"check\") check = true;\n else if (arg === \"fix\") fix = true;\n else if (arg === \"--list\" || arg === \"list\") list = true;\n else if (arg === \"--json\") json = true;\n else if (arg === \"--root\") root = resolve(io.cwd, value());\n else if (arg === \"--rule\") only.push(value());\n else if (arg === \"--base\") base = value();\n else if (arg === \"--help\" || arg === \"-h\") {\n io.stdout(USAGE);\n return 0;\n } else throw new UsageError(`An unknown argument: ${arg}`);\n }\n if (!check && !fix && !list) throw new UsageError(\"Give the command check or fix, or --list.\");\n } catch (error) {\n if (!(error instanceof UsageError)) throw error;\n io.stderr(`conventions: ${error.message}\\n\\n${USAGE}`);\n return 2;\n }\n if (list) {\n let config: ConventionsConfig | undefined;\n try {\n config = existsSync(join(root, \"package.json\")) ? readConfig(root) : undefined;\n } catch (error) {\n io.stderr(`conventions: ${error instanceof Error ? error.message : String(error)}\\n`);\n return 1;\n }\n io.stdout(listRules(config));\n return 0;\n }\n let result: CheckResult;\n let fixed: FixResult | undefined;\n try {\n const options = { root, only, env: io.env, ...(base === undefined ? {} : { base }) };\n if (fix) {\n fixed = runFix(options);\n result = fixed.result;\n } else result = runChecks(options);\n } catch (error) {\n io.stderr(`conventions: ${error instanceof Error ? error.message : String(error)}\\n`);\n return 1;\n }\n if (fixed !== undefined && !json) {\n const files = fixed.changed.map((file) => ` ${file}\\n`).join(\"\");\n io.stdout(fixed.changed.length === 0 ? \"conventions fix: no break has a fix that applies.\\n\" : `conventions fix: changed ${fixed.changed.length} file(s) in ${fixed.passes} check(s):\\n${files}\\n`);\n }\n const shown = fixed === undefined ? withoutEdits(result) : { changed: fixed.changed, passes: fixed.passes, ...withoutEdits(result) };\n if (json) io.stdout(`${JSON.stringify(shown, null, 2)}\\n`);\n else {\n if (io.env[\"GITHUB_ACTIONS\"] === \"true\") io.stdout(annotations(result));\n io.stdout(formatResult(result));\n }\n const summary = io.env[\"GITHUB_STEP_SUMMARY\"];\n if (summary) appendFileSync(summary, summaryMarkdown(result));\n return result.failed ? 1 : 0;\n}\n\n/** The command `map`: the home of each area, or of the areas that match the words. */\nfunction runMap(args: readonly string[], io: CliIo): number {\n let format: \"text\" | \"markdown\" | \"json\" = \"text\";\n let homes: readonly Home[] = HOMES;\n const words: string[] = [];\n for (let index = 0; index < args.length; index++) {\n const arg = args[index] ?? \"\";\n if (arg === \"--markdown\") format = \"markdown\";\n else if (arg === \"--json\") format = \"json\";\n else if (arg === \"--overlay\") {\n const file = args[++index];\n if (file === undefined) {\n io.stderr(`conventions: The option --overlay needs a value.\\n\\n${USAGE}`);\n return 2;\n }\n try {\n homes = mergeHomes(homes, readOverlay(resolve(io.cwd, file)));\n } catch (error) {\n io.stderr(`conventions: ${error instanceof Error ? error.message : String(error)}\\n`);\n return 1;\n }\n } else if (arg.startsWith(\"-\")) {\n io.stderr(`conventions: An unknown argument: ${arg}\\n\\n${USAGE}`);\n return 2;\n } else words.push(arg);\n }\n const found = findHomes(words.join(\" \"), homes);\n if (format === \"json\") io.stdout(`${JSON.stringify(found, null, 2)}\\n`);\n else if (format === \"markdown\") io.stdout(mapMarkdown(found));\n else io.stdout(mapText(found));\n return 0;\n}\n"],"mappings":";;;;;;;AA4BA,MAAM,cAAc;CAAC;CAAO;CAAU;AAAQ;AAE9C,MAAM,YAAY,UAAqD,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK;AAE1I,MAAM,aAAa,UAAsC,MAAM,QAAQ,KAAK,KAAK,MAAM,OAAO,SAAS,OAAO,SAAS,QAAQ;;AAG/H,SAAgB,eAAe,MAAqB;CAClD,OAAO,OAAO,YAAY,OAAO,QAAQ,KAAK,OAAO,CAAC,CAAC,KAAK,CAAC,MAAM,UAAU,CAAC,MAAM,KAAK,OAAO,CAAC,CAAC;AACpG;;;;;;;AAQA,SAAgB,YAAY,OAAgB,OAA2C;CACrF,MAAM,OAAO,IAAI,IAAI,MAAM,KAAK,SAAS,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC;CACzD,MAAM,SAAqC,CAAC;CAC5C,KAAK,MAAM,QAAQ,OAAO,OAAO,KAAK,MAAM;EAAE,QAAQ,CAAC;EAAG,SAAS,eAAe,IAAI;CAAE;CACxF,IAAI,UAAU,KAAA,GAAW,OAAO,EAAE,OAAO,OAAO;CAChD,IAAI,CAAC,SAAS,KAAK,GAAG,MAAM,IAAI,MAAM,0DAA0D;CAChG,MAAM,UAAU,OAAO,KAAK,KAAK,CAAC,CAAC,QAAQ,QAAQ,QAAQ,cAAc,QAAQ,WAAW,QAAQ,UAAU;CAC9G,IAAI,QAAQ,SAAS,GAAG,MAAM,IAAI,MAAM,mCAAmC,QAAQ,KAAK,IAAI,EAAE,EAAE;CAChG,MAAM,WAAW,MAAM;CACvB,IAAI,aAAa,KAAA,KAAa,CAAC,UAAU,QAAQ,GAAG,MAAM,IAAI,MAAM,iDAAiD;CACrH,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