@mark1russell7/conventions 0.64.4 → 0.64.5

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.
package/README.md CHANGED
@@ -60,6 +60,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
60
60
  | `no-build-output` | Git keeps no file in a folder named `dist` or `build`, or in a `coverage` folder next to a `package.json`. | client `no-build-output`, `no-dist`, `no-dist-commit`. Only one repository of the audit tells this rule. The `.gitignore` of the template has it for each repository. |
61
61
  | `no-local-paths` | No tracked file has the home folder of a user: `C:\Users\<name>`, `/Users/<name>` or `/home/<name>`. A CI user (`runner`), a name of one character and a placeholder (`<you>`) are not a break. The commit messages of the change (a pull request, or `--base`) and the title and the body of the pull request do not have one either. The same is true for each pattern of the option `patterns` and of the environment variable `CONVENTIONS_PRIVATE_PATTERNS`. A break of a private pattern shows only the line of the pattern in the variable, not the text. A line of the variable that is not a valid regular expression is a break of its own. | client `I12`. systems `no-identifying-names`, `no-private-identifiers`, `no-private-names`. coeval `no-private-names`. |
62
62
  | `no-console` | No source file calls `console`. Each break names the kind of the call. Output for a person (the text, the tables and the status lines of a CLI) goes to `createPrinter` of `@mark1russell7/text/print`. A diagnostic of a library or a service (a warning, a debug line, a caught error) goes to a log record of the logger of `diagnostics(name)` of `@mark1russell7/otel-ts/log`, with its trace context. A call in a CLI file is output, except `debug` and `trace`. A CLI file starts with `#!`, has `cli`, `main`, `bin` or `commands` in its path, or reads `process.argv`. Each other call is a diagnostic, except `console.table`. Tests, fixtures, scripts, benches and examples are not sources (the option `skip`). The rule is a ratchet. The check fails when the count is not the option `baseline`. Thus a new call fails, and a fix lowers the baseline. From the day `failFrom` each call fails. The default day is 2027-01-20, the last day, and a repository can set only an earlier day. | a decision of 2026-11-25: a census found 1549 console calls in the sources of 36 repositories. |
63
+ | `follow-hash` | A source that reads `location.hash` also follows each change of the hash, with `followHash` of `@mark1russell7/site-pages/chrome` or a listener of `hashchange` or `popstate`. A second link to the same page in the same tab changes only the hash, and the page does not load again. A page that reads the hash only at its load keeps the old view. A write of the hash is no read, and a line that carries the hash into `history.replaceState` or `pushState` is no read. Tests, fixtures, scripts, benches and examples are not sources (the option `skip`). A break is a warning until 2026-12-21. | a fault of a docs site on 2026-12-03: a second link in the same tab kept the old record. |
63
64
  | `release-files` | A pull request changes `.github/workflows/release.yml` or `scripts/release/` only with a line `Release-Edit: <reason>` in a commit message or in the body of the pull request. The commits of the release bot (the sync of the template) need no reason. | coeval `no-release-edit`, `no-release-edits`. crawler `no-release-edit`, `no-release-edits`. headroom `no-release-edits`, `release-files-frozen`. |
64
65
  | `unreleased-change` | A change does not set a version that npm has: the release skips such a version. The rule compares the version of the head of the change with the version of its merge base, so a version that only the base branch changed does not count. A repository where each pull request sets its version sets the option `versionEachChange`. Then a change of the shipped files also raises the version, when npm has that version already. The files that ship are the files of the folder of the package, without the tests, the fixtures, the Markdown files and the configs (the option `unshipped`). When the package has the field `files`, an entry that git tracks ships its files. An entry that git does not track is build output. Then the inputs of the build ship: each file of `src/`, and each script, module and JSON file. The files of `main` and `bin` also ship. A change of `package.json` ships when a field of the option `fields` changes, for example `exports`, but not the dependencies. On a push to the default branch, a version that the push sets breaks only when npm had it before the push. The release of the same push can publish it. An error of the registry makes the rule show `skip`. A repository with `.changeset/config.json`, a private package and a version `0.0.0` or `0.0.0-<stage>` are not examined. | rigor #18 and #20 (2026-11-02): two pull requests set the same version, and the second change did not get to npm. crawler, coeval, template `release.yml`. |
65
66
  | `changesets-config` | A repository with `.github/workflows/release.yml` and a package that goes to npm has `.changeset/config.json` and `@changesets/cli` in the root devDependencies. With a version number in each pull request, each release of main during the CI of a pull request takes the number, and the pull request must bump again: on 2026-11-27 alerts PR 634 took 5 CI runs (main took 0.5.7, 0.6.0, 0.6.1 and 0.6.2). With Changesets, a pull request states only the kind of its change, and the release computes the version at the merge (`scripts/release/mode.ts`). `conventions fix` writes a first config with each private package in `ignore`. The rule fails from 2026-12-14. | alerts PR 634, AL-232. |
@@ -165,6 +166,7 @@ An unknown rule, an unknown option, or an exception or a changed option without
165
166
  | `no-console.failFrom` | `2027-01-20` | The day from which each call fails. A day after 2027-01-20 fails the check. |
166
167
  | `no-console.baseline` | `-1` (no baseline) | The count of the calls in the sources. The check fails when the count is not the baseline. |
167
168
  | `no-console.skip` | the globs of tests, fixtures, scripts, benches and examples | The files that are not sources. |
169
+ | `follow-hash.skip` | the globs of `NOT_SOURCE` | The globs of the files that are not sources: tests, fixtures, scripts, benches and examples. |
168
170
  | `release-files.paths` | `[".github/workflows/release.yml", "scripts/release/**"]` | The globs of the files of the release flow. |
169
171
  | `release-files.trailer` | `Release-Edit` | The key of the line that gives the reason. |
170
172
  | `release-files.authors` | `["mark1russell7-release-train[bot]"]` | The authors of the release flow. Their commits need no reason. |
package/build/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { readFileSync } from "node:fs";
3
- import { c as runCli } from "./run-CeEPIgVg.js";
3
+ import { c as runCli } from "./run-DX5mvqwy.js";
4
4
  // src/cli.ts
5
5
  try {
6
6
  const args = process.argv.slice(2);
package/build/index.d.ts CHANGED
@@ -615,6 +615,13 @@ interface ConsoleGate {
615
615
  */
616
616
  export declare function consoleGate(options: Options, count: number, today: string): ConsoleGate;
617
617
  export declare const noConsole: Rule;
618
+ /**
619
+ * This function gives the break of one source file. The break is the first line that reads `location.hash`, when the file
620
+ * does not follow the changes of the hash. A file that follows the changes gives no break. A file that only writes the
621
+ * hash, or only carries it into `history.replaceState`, gives no break too.
622
+ */
623
+ export declare function hashReadBreaks(file: string, text: string): Break[];
624
+ export declare const followHashRule: Rule;
618
625
  /**
619
626
  * The private name list: a JSON file outside of the public repositories, with the names of private projects. The file
620
627
  * `schema/private-names.schema.json` tells its form. This module parses the list and finds its names in a line or in a
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/release-mode.ts","../src/rules/shared-docs.ts","../src/rules/call-permissions.ts","../src/rules/setup-cue.ts","../src/rules/setup-pnpm.ts","../src/rules/filtered-install.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/home-shapes.ts","../src/rules/home-shape.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-console.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/git-pin-on-npm.ts","../src/rules/pinned-git-deps.ts","../src/rules/pnpm-yaml-parses.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/job-limit-floor.ts","../src/rules/playwright-install.ts","../src/rules/pnpm-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/retired-files.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/workflow.ts","../src/rules/runner-peak.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/io.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/run.ts","../src/release-text.ts","../src/retired.ts"],"mappings":";;;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;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AyC/B,aAAa,QAAQ;;wBA4BrB,gBAAgB,QAAQ;;;;;;wBA2BxB,YAAY,QAAQ;;wBAapB,UAAU,QAAQ,+BAA+B,iBAAgB;;qBAqBpE;;wBA8EG,OAAO,yBAAyB,IAAI;;;;;;;;qBCvZvC;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB;;;;;;UCzD3C;;WAEN;;WAEA;;WAEA;;;qBAQE,wBAAwB;;wBAQrB,YAAY,eAAe"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/release-mode.ts","../src/rules/shared-docs.ts","../src/rules/call-permissions.ts","../src/rules/setup-cue.ts","../src/rules/setup-pnpm.ts","../src/rules/filtered-install.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/home-shapes.ts","../src/rules/home-shape.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-console.ts","../src/rules/follow-hash.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/git-pin-on-npm.ts","../src/rules/pinned-git-deps.ts","../src/rules/pnpm-yaml-parses.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/job-limit-floor.ts","../src/rules/playwright-install.ts","../src/rules/pnpm-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/retired-files.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/workflow.ts","../src/rules/runner-peak.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/io.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/run.ts","../src/release-text.ts","../src/retired.ts"],"mappings":";;;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;WACN,iBAAiB;;WAEjB;;;UAIM;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;WAEA;;EAET;;EAEA,IAAI;;;;;;EAMJ,SAAS;;;wBAIK,UAAU,SAAS,KAAK,iCAAiC;;KAM7D,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;;;;EAM/C,UAAU,SAAS;;;;;;EAMnB,QAAQ,SAAS,SAAS,OAAO;;;;;;EAMjC,QAAQ,SAAS,aAAa,SAAS;;;qBAO5B;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QA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AO,YAAY;WACnB;;WAEA;;;wBA8DK,mBAAmB,cAAc,gBAAgB;;;;;wBAoGjD,WAAW,eAAe,gBAAgB,YAAY;;;;;wBActD,OAAO,mBAAmB;;qBCjM7B,cAAc,SAAS;WAA0B;WAA0B;;;UCiBvE;WACN;WACA;WACA;;;;;WAKA;WACA,iBAAiB;;WAEjB;;WAEA;;;;;WAKA;;;UAIM;WACN,gBAAgB;;WAEhB;;;UAIM;;WAEN;;WAEA;;WAEA;WACA,MAAM,SAAS;;WAEf,iBAAiB;;WAEjB;;;wBAaK,WAAW,cAAc,iBAAgB,SAAiB;;wBAO1D,cAAc,cAAc,QAAQ,mBAAmB,UAAS,KAAK,0CAA+C;;wBAwCpH,UAAU,SAAS,eAAe;;UAuEjC;;WAEN;;WAEA;;WAEA,QAAQ;;;;;;;wBAWH,OAAO,SAAS,eAAe;;wBAyC/B,aAAa,QAAQ;;wBA4BrB,gBAAgB,QAAQ;;;;;;wBA2BxB,YAAY,QAAQ;;wBAapB,UAAU,QAAQ,+BAA+B,iBAAgB;;qBAqBpE;;wBA8EG,OAAO,yBAAyB,IAAI;;;;;;;;qBCvZvC;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB;;;;;;UCzD3C;;WAEN;;WAEA;;WAEA;;;qBAQE,wBAAwB;;wBAQrB,YAAY,eAAe"}
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as retiredFile, $n as SHARED_CI, $r as readWorkflow, $t as lineNameHit, A as scriptsOf, An as declaredName, Ar as withOneJob, At as pushMainOnly, B as giveWaySlots, Bn as mapMarkdown, Br as convertGate, Bt as PRIVATE_NAMES_FILE_VARIABLE, C as setVersions, Ci as parseRuleConfig, Cn as shapesOfSource, Cr as startsOnPullRequest, Ct as gitPinOnNpm, D as trustPolicy, Dn as moduleMessage, Dr as SECURITY_TIMEOUT_MINUTES, Dt as pinnedGitDeps, E as TRAIN_SCOPES, En as homeModule, Er as SECURITY_SCAN_INPUTS, Et as isPinned, F as sourceMain, Fn as signaturesOf, Fr as licenseFile, Ft as publishTextSafe, G as workflowPeaks, Gn as npmPackagesOf, Gr as summaryName, Gt as privateNamesFiles, H as repositoryPeak, Hn as mergeHomes, Hr as prPathFilters, Ht as invalidPatternBreaks, I as TEMPLATE_CALLED, In as HOME_EXPORTS, Ir as licenseFileOf, It as packNoBuildinfo, J as mayRun, Jn as runCalls, Jr as gateAfterCancel, Jt as PRIVATE_NAME_LIST, K as evaluateExpression, Kn as readOverlay, Kr as JOB_LIMIT_FLOOR_MINUTES, Kt as privatePatterns, L as UNKNOWN_MATRIX_JOBS, Ln as HOMES, Lr as mitText, Lt as DEFAULT_ALLOWED, M as testsRequired, Mn as messageOf, Mr as scheduleMinute, Mt as pagesCalls, N as isSourcePath, Nn as repoOf, Nr as LICENSE_TEXTS, Nt as pagesSite, O as typedScripts, On as moduleUses, Or as securityCallers, Ot as siteCheckInCi, P as pathsOf, Pn as reposOf, Pr as authorOf, Pt as exportsRequire, Q as RETIRED_FILES, Qn as SHARED_ACTIONS, Qr as readAction, Qt as isCommonUse, R as calledJobs, Rn as MAP_RULE, Rr as repositoryIsPublic, Rt as HOME_PATTERNS, S as namedVersions, Si as parseConfig, Sn as shapeMessage, Sr as hasSummaryJob, St as pnpmYamlParses, T as IGNORE_AFTER, Tn as HOME_SHAPES, Tr as SECURITY_SCAN_COMMIT, Tt as isGitSpecifier, U as runnerPeak, Un as npmDrift, Ur as skippableJobs, Ut as noLocalPaths, V as matrixPeak, Vn as mapText, Vr as gateTrigger, Vt as PRIVATE_PATTERNS_VARIABLE, W as runsAtOnce, Wn as npmNames, Wr as summaryJob, Wt as privateNamesFile, X as roadmapParses, Xn as hasTests, Xr as MATRIX_EXPAND_MAX, Xt as firstNameMatch, Y as roadmapOfLine, Yn as serviceRunMain, Yr as FILTER_KEYS, Yt as PrivateNameListError, Z as retiredFiles, Zn as tsconfigTest, Zr as parseWorkflow, Zt as isAllowedHit, _ as runPrePushArgs, _i as runGit, _n as coverageProvider, _r as isSecurityGate, _t as parseAdvisory, a as listRules, ai as cleanPath, an as CONSOLE_LAST_DAY, ar as setupCue, at as publishedMinorRule, b as GITHUB_YAML, bi as specifiersOf, bn as homeShape, br as SUMMARY_GATES, bt as pipeFails, c as runCli, ci as inFolder, cn as consoleGate, cr as HOME_TIMEOUT_MS, ct as SHIPPED_FIELDS, d as HOOK_MARKER, di as matchesAny, dn as isConsoleSource, dr as sharedDocsRule, dt as unreleasedChange, ei as yamlFaults, en as lineNameHits, er as SHARED_WORKFLOWS, et as requiredScripts, f as NO_READ_LINE, fi as parseCatFileBatch, fn as noConsole, fr as addReleaseMode, ft as unreleasedChangeRule, g as prePush, gi as repositoryOfRemote, gn as mainCheck, gr as SECURITY_FILE, gt as jobFails, h as parsePrePushArgs, hi as replaceLine, hn as hasImportMetaMain, hr as releaseModeRule, ht as hiddenFailures, i as formatResult, ii as RULE_WARN_DAYS, in as pathNameHit, ir as setupPnpm, it as publishedMinor, j as typedFiles, jn as homePackage, jr as runnerBudget, jt as PAGES_WORKFLOWS, k as configsOfScript, kn as modulesOf, kr as securityOneJob, kt as pagesAfterRelease, l as runFix, li as keyLine, ln as consoleKind, lr as blockHash, lt as UNSHIPPED_FILES, m as installHook, mi as readJsonc, mn as REAL_COMPARE, mr as hasReleaseMode, mt as playwrightInstall, n as annotations, ni as cuePreset, nn as nameMatches, nr as sharedCi, nt as lockedVersions, o as readConfig, oi as codePackages, on as NOT_SOURCE, or as callPermissions, ot as reachOf, p as PRE_PUSH_HOOK, pi as parseJsonc, pn as noBuildOutput, pr as callsReleaseBuild, pt as pnpmInstall, q as groupParts, qn as SERVICE_PACKAGE, qr as jobLimitFloor, qt as privateTextBreaks, r as createContext, ri as DEPENDENCY_FIELDS, rn as parsePrivateNames, rr as filteredInstall, rt as minorOf, s as runChecks, si as hasFile, sn as consoleBreaks, sr as callPermissionsRule, st as NPM_REGISTRY, t as USAGE, ti as STRICT_OPTIONS, tn as mergePrivateNames, tr as callsSharedCi, tt as releaseFiles, u as summaryMarkdown, ui as lineOf, un as isCliFile, ur as githubFetch, ut as npmLookup, v as RULES, vi as runGitShow, vn as apiReportScript, vr as securityGate, vt as startsTests, w as versionTitle, wn as spansOf, wr as summaryJobRule, wt as dependencySpecifiers, x as workflowParses, xi as defaultOptions, xn as homeShapesOf, xr as addSummaryJob, xt as PNPM_YAML, y as workspaceProtocol, yi as showFiles, yn as containedHome, yr as securityWorkflow, yt as swallowsTests, z as eventClass, zn as findHomes, zr as ACTIONS_COMMIT, zt as PRIVATE_NAMES_FILE_CONFIG } from "./run-CeEPIgVg.js";
1
+ import { $ as retiredFile, $n as tsconfigTest, $r as parseWorkflow, $t as lineNameHit, A as scriptsOf, An as moduleUses, Ar as securityCallers, At as pushMainOnly, B as giveWaySlots, Bn as MAP_RULE, Br as repositoryIsPublic, Bt as PRIVATE_NAMES_FILE_VARIABLE, C as setVersions, Ci as defaultOptions, Cn as homeShapesOf, Cr as addSummaryJob, Ct as gitPinOnNpm, D as trustPolicy, Dn as HOME_SHAPES, Dr as SECURITY_SCAN_COMMIT, Dt as pinnedGitDeps, E as TRAIN_SCOPES, En as spansOf, Er as summaryJobRule, Et as isPinned, F as sourceMain, Fn as repoOf, Fr as LICENSE_TEXTS, Ft as publishTextSafe, G as workflowPeaks, Gn as npmDrift, Gr as skippableJobs, Gt as privateNamesFiles, H as repositoryPeak, Hn as mapMarkdown, Hr as convertGate, Ht as invalidPatternBreaks, I as TEMPLATE_CALLED, In as reposOf, Ir as authorOf, It as packNoBuildinfo, J as mayRun, Jn as readOverlay, Jr as JOB_LIMIT_FLOOR_MINUTES, Jt as PRIVATE_NAME_LIST, K as evaluateExpression, Kn as npmNames, Kr as summaryJob, Kt as privatePatterns, L as UNKNOWN_MATRIX_JOBS, Ln as signaturesOf, Lr as licenseFile, Lt as DEFAULT_ALLOWED, M as testsRequired, Mn as declaredName, Mr as withOneJob, Mt as pagesCalls, N as isSourcePath, Nn as homePackage, Nr as runnerBudget, Nt as pagesSite, O as typedScripts, On as homeModule, Or as SECURITY_SCAN_INPUTS, Ot as siteCheckInCi, P as pathsOf, Pn as messageOf, Pr as scheduleMinute, Pt as exportsRequire, Q as RETIRED_FILES, Qn as hasTests, Qr as MATRIX_EXPAND_MAX, Qt as isCommonUse, R as calledJobs, Rn as HOME_EXPORTS, Rr as licenseFileOf, Rt as HOME_PATTERNS, S as namedVersions, Si as specifiersOf, Sn as homeShape, Sr as SUMMARY_GATES, St as pnpmYamlParses, T as IGNORE_AFTER, Ti as parseRuleConfig, Tn as shapesOfSource, Tr as startsOnPullRequest, Tt as isGitSpecifier, U as runnerPeak, Un as mapText, Ur as gateTrigger, Ut as noLocalPaths, V as matrixPeak, Vn as findHomes, Vr as ACTIONS_COMMIT, Vt as PRIVATE_PATTERNS_VARIABLE, W as runsAtOnce, Wn as mergeHomes, Wr as prPathFilters, Wt as privateNamesFile, X as roadmapParses, Xn as runCalls, Xr as gateAfterCancel, Xt as firstNameMatch, Y as roadmapOfLine, Yn as SERVICE_PACKAGE, Yr as jobLimitFloor, Yt as PrivateNameListError, Z as retiredFiles, Zn as serviceRunMain, Zr as FILTER_KEYS, Zt as isAllowedHit, _ as runPrePushArgs, _i as replaceLine, _n as hasImportMetaMain, _r as releaseModeRule, _t as parseAdvisory, a as listRules, ai as DEPENDENCY_FIELDS, an as followHashRule, ar as filteredInstall, at as publishedMinorRule, b as GITHUB_YAML, bi as runGitShow, bn as apiReportScript, br as securityGate, bt as pipeFails, c as runCli, ci as codePackages, cn as NOT_SOURCE, cr as callPermissions, ct as SHIPPED_FIELDS, d as HOOK_MARKER, di as keyLine, dn as consoleKind, dr as blockHash, dt as unreleasedChange, ei as readAction, en as lineNameHits, er as SHARED_ACTIONS, et as requiredScripts, f as NO_READ_LINE, fi as lineOf, fn as isCliFile, fr as githubFetch, ft as unreleasedChangeRule, g as prePush, gi as readJsonc, gn as REAL_COMPARE, gr as hasReleaseMode, gt as jobFails, h as parsePrePushArgs, hi as parseJsonc, hn as noBuildOutput, hr as callsReleaseBuild, ht as hiddenFailures, i as formatResult, ii as cuePreset, in as pathNameHit, ir as sharedCi, it as publishedMinor, j as typedFiles, jn as modulesOf, jr as securityOneJob, jt as PAGES_WORKFLOWS, k as configsOfScript, kn as moduleMessage, kr as SECURITY_TIMEOUT_MINUTES, kt as pagesAfterRelease, l as runFix, li as hasFile, ln as consoleBreaks, lr as callPermissionsRule, lt as UNSHIPPED_FILES, m as installHook, mi as parseCatFileBatch, mn as noConsole, mr as addReleaseMode, mt as playwrightInstall, n as annotations, ni as yamlFaults, nn as nameMatches, nr as SHARED_WORKFLOWS, nt as lockedVersions, o as readConfig, oi as RULE_WARN_DAYS, on as hashReadBreaks, or as setupPnpm, ot as reachOf, p as PRE_PUSH_HOOK, pi as matchesAny, pn as isConsoleSource, pr as sharedDocsRule, pt as pnpmInstall, q as groupParts, qn as npmPackagesOf, qr as summaryName, qt as privateTextBreaks, r as createContext, ri as STRICT_OPTIONS, rn as parsePrivateNames, rr as callsSharedCi, rt as minorOf, s as runChecks, si as cleanPath, sn as CONSOLE_LAST_DAY, sr as setupCue, st as NPM_REGISTRY, t as USAGE, ti as readWorkflow, tn as mergePrivateNames, tr as SHARED_CI, tt as releaseFiles, u as summaryMarkdown, ui as inFolder, un as consoleGate, ur as HOME_TIMEOUT_MS, ut as npmLookup, v as RULES, vi as repositoryOfRemote, vn as mainCheck, vr as SECURITY_FILE, vt as startsTests, w as versionTitle, wi as parseConfig, wn as shapeMessage, wr as hasSummaryJob, wt as dependencySpecifiers, x as workflowParses, xi as showFiles, xn as containedHome, xr as securityWorkflow, xt as PNPM_YAML, y as workspaceProtocol, yi as runGit, yn as coverageProvider, yr as isSecurityGate, yt as swallowsTests, z as eventClass, zn as HOMES, zr as mitText, zt as PRIVATE_NAMES_FILE_CONFIG } from "./run-DX5mvqwy.js";
2
2
  import { OWNERS, ownerOf, ownersOf, repoKeyer, sharedNames } from "./owners.js";
3
3
  import { a as packageFolders, i as isWorkspaceFolder, l as workspaceGlobs, n as globFolders, o as parseWorkspaceGlobs, r as globToRegExp } from "./workspace-B6xQXXcL.js";
4
4
  // src/release-text.ts
@@ -66,6 +66,6 @@ function releaseNotes(name, version, changelog) {
66
66
  if (section.length <= 1e5) return section;
67
67
  return `${section.slice(0, MAX_NOTES)}\n\n(The CHANGELOG.md of \`${name}\` has the full text.)`;
68
68
  }
69
- export { ACTIONS_COMMIT, CONSOLE_LAST_DAY, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, FILTER_KEYS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_SHAPES, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, JOB_LIMIT_FLOOR_MINUTES, LICENSE_TEXTS, MAP_RULE, MATRIX_EXPAND_MAX, MAX_NOTES, NOT_SOURCE, NO_READ_LINE, NPM_REGISTRY, OWNERS, PAGES_WORKFLOWS, PNPM_YAML, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RETIRED_FILES, RULES, RULE_WARN_DAYS, SECURITY_FILE, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, SUMMARY_GATES, TEMPLATE_CALLED, TRAIN_SCOPES, UNKNOWN_MATRIX_JOBS, UNSHIPPED_FILES, USAGE, addReleaseMode, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, callPermissions, callPermissionsRule, calledJobs, callsReleaseBuild, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, consoleBreaks, consoleGate, consoleKind, containedHome, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, dependencySpecifiers, evaluateExpression, eventClass, exportsRequire, filteredInstall, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, gitPinOnNpm, githubFetch, giveWaySlots, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasReleaseMode, hasSummaryJob, hasTests, hiddenFailures, homeModule, homePackage, homeShape, homeShapesOf, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCliFile, isCommonUse, isConsoleSource, isGitSpecifier, isPinned, isSecurityGate, isSourcePath, isWorkspaceFolder, jobFails, jobLimitFloor, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, matrixPeak, mayRun, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noConsole, noLocalPaths, npmDrift, npmLookup, npmNames, npmPackagesOf, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseCatFileBatch, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, pnpmInstall, pnpmYamlParses, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseModeRule, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, repositoryPeak, requiredScripts, retiredFile, retiredFiles, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, setupPnpm, shapeMessage, shapesOfSource, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, spansOf, specifiersOf, startsOnPullRequest, startsTests, summaryJob, summaryJobRule, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workflowPeaks, workspaceGlobs, workspaceProtocol, yamlFaults };
69
+ export { ACTIONS_COMMIT, CONSOLE_LAST_DAY, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, FILTER_KEYS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_SHAPES, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, JOB_LIMIT_FLOOR_MINUTES, LICENSE_TEXTS, MAP_RULE, MATRIX_EXPAND_MAX, MAX_NOTES, NOT_SOURCE, NO_READ_LINE, NPM_REGISTRY, OWNERS, PAGES_WORKFLOWS, PNPM_YAML, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RETIRED_FILES, RULES, RULE_WARN_DAYS, SECURITY_FILE, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, SUMMARY_GATES, TEMPLATE_CALLED, TRAIN_SCOPES, UNKNOWN_MATRIX_JOBS, UNSHIPPED_FILES, USAGE, addReleaseMode, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, callPermissions, callPermissionsRule, calledJobs, callsReleaseBuild, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, consoleBreaks, consoleGate, consoleKind, containedHome, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, dependencySpecifiers, evaluateExpression, eventClass, exportsRequire, filteredInstall, findHomes, firstNameMatch, followHashRule, formatResult, gateAfterCancel, gateTrigger, gitPinOnNpm, githubFetch, giveWaySlots, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasReleaseMode, hasSummaryJob, hasTests, hashReadBreaks, hiddenFailures, homeModule, homePackage, homeShape, homeShapesOf, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCliFile, isCommonUse, isConsoleSource, isGitSpecifier, isPinned, isSecurityGate, isSourcePath, isWorkspaceFolder, jobFails, jobLimitFloor, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, matrixPeak, mayRun, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noConsole, noLocalPaths, npmDrift, npmLookup, npmNames, npmPackagesOf, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseCatFileBatch, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, pnpmInstall, pnpmYamlParses, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseModeRule, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, repositoryPeak, requiredScripts, retiredFile, retiredFiles, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, setupPnpm, shapeMessage, shapesOfSource, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, spansOf, specifiersOf, startsOnPullRequest, startsTests, summaryJob, summaryJobRule, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workflowPeaks, workspaceGlobs, workspaceProtocol, yamlFaults };
70
70
 
71
71
  //# sourceMappingURL=index.js.map
@@ -5,8 +5,9 @@ import { createRequire } from "node:module";
5
5
  import { spawnSync } from "node:child_process";
6
6
  import { appendFileSync, chmodSync, existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
7
7
  import { basename, delimiter, dirname, extname, isAbsolute, join, posix, relative, resolve } from "node:path";
8
- import { LineCounter, isMap, isScalar, isSeq, parseAllDocuments } from "yaml";
9
8
  import { errorMessage } from "@mark1russell7/text";
9
+ import "@mark1russell7/text/references";
10
+ import { LineCounter, isMap, isScalar, isSeq, parseAllDocuments } from "yaml";
10
11
  import { createHash } from "node:crypto";
11
12
  import { containsShape, functionsOf } from "@mark1russell7/code-shape";
12
13
  import { SECRET_SHAPES, findSecretShapes, findSecretShapesInValue, redactSecretShapes } from "@mark1russell7/text/redact";
@@ -911,12 +912,17 @@ document.addEventListener("click", (event) => {
911
912
  const label = button.querySelector("[data-sp-label]");
912
913
  if (label) label.textContent = open ? button.dataset.less : button.dataset.more;
913
914
  });
914
- // A malformed hash, for example "#100%", must not stop the module
915
- let hashed = "";
916
- try {
917
- hashed = decodeURIComponent(location.hash.slice(1));
918
- } catch {}
919
- for (const [version, panel] of panels) if (panel.id === hashed) select(version, null);
915
+ // A malformed hash, for example "#100%", must not stop the module. A second link in the same tab changes only the hash,
916
+ // so the page follows each change of the hash, not only the hash at its load.
917
+ const followHash = () => {
918
+ let hashed = "";
919
+ try {
920
+ hashed = decodeURIComponent(location.hash.slice(1));
921
+ } catch {}
922
+ for (const [version, panel] of panels) if (panel.id === hashed) select(version, null);
923
+ };
924
+ followHash();
925
+ window.addEventListener("hashchange", followHash);
920
926
  const revealAll = () => { for (const box of boxes) reveal(box, selected, false); };
921
927
  revealAll();
922
928
  window.addEventListener("resize", revealAll);
@@ -1037,6 +1043,34 @@ function cronLines(workflow) {
1037
1043
  }];
1038
1044
  });
1039
1045
  }
1046
+ // ../site-pages/src/site/snapshot.ts
1047
+ /**
1048
+ * The source of `replaceTokenColors`, as JavaScript text. The prerender starts this text in the browser, and Node.js
1049
+ * makes the same function from it. A bundler does not change a text, so the two use the same code. The code needs
1050
+ * nothing from outside its body.
1051
+ */
1052
+ const REPLACE_TOKEN_COLORS_SOURCE = String.raw`function replaceTokenColors(text, tokens, keepCustomProperties) {
1053
+ const names = new Map(tokens);
1054
+ const swap = (match, digits, red, green, blue) => {
1055
+ let color;
1056
+ if (digits === undefined) {
1057
+ color = "#" + [red, green, blue].map((value) => Number(value).toString(16).padStart(2, "0")).join("");
1058
+ } else {
1059
+ color = "#" + (digits.length === 3 ? digits.replace(/./g, "$&$&") : digits).toLowerCase();
1060
+ }
1061
+ const name = names.get(color);
1062
+ return name === undefined ? match : "var(" + name + ")";
1063
+ };
1064
+ if (!keepCustomProperties) {
1065
+ return text.replace(/(?<![\w#(-])#([0-9a-f]{6}|[0-9a-f]{3})(?![\w-])|\brgba?\(\s*(\d{1,3})[\s,]+(\d{1,3})[\s,]+(\d{1,3})\s*(?:[,/]\s*1(?:\.0*)?\s*)?\)/gi, swap);
1066
+ }
1067
+ // A custom property keeps its value: it holds a fixed color for one theme, for example a color of the code.
1068
+ return text.replace(
1069
+ /((?:^|[;{\s])--[\w-]+\s*:[^;{}]*)|(?<![\w#(-])#([0-9a-f]{6}|[0-9a-f]{3})(?![\w-])|\brgba?\(\s*(\d{1,3})[\s,]+(\d{1,3})[\s,]+(\d{1,3})\s*(?:[,/]\s*1(?:\.0*)?\s*)?\)/gi,
1070
+ (match, custom, digits, red, green, blue) => (custom === undefined ? swap(match, digits, red, green, blue) : match),
1071
+ );
1072
+ }`;
1073
+ new Function(`return (${REPLACE_TOKEN_COLORS_SOURCE});`)();
1040
1074
  // src/rules/changelog-version.ts
1041
1075
  /**
1042
1076
  * The rule `changelog-version`: the top release section of the changelog of a package is not above the version of
@@ -6653,7 +6687,7 @@ const HOMES = [
6653
6687
  {
6654
6688
  area: "repo-structure",
6655
6689
  title: "Repository structure, CI and conventions",
6656
- covers: "new repositories and packages, the CUE presets, shared CI workflows, the API report, import boundaries, the conventions check, the release and status pages, the browser check of a built site (site-pages check), the offline shell of a built site (entry /offline of site-pages: manifest, service worker, the offline check), the React kit of a docs site (entry /react of site-pages: the theme, the content registry, the sidebar, callouts, tabs, the page footer, react.css)",
6690
+ covers: "new repositories and packages, the CUE presets, shared CI workflows, the API report, import boundaries, the conventions check, the release and status pages, the browser check of a built site (site-pages check), the offline shell of a built site (entry /offline of site-pages: manifest, service worker, the offline check), the React kit of a docs site (entry /react of site-pages: the theme, the content registry, the sidebar, callouts, tabs, the page footer, react.css), the build tools of a docs site (the root entry of site-pages: static routes, prerender in a browser, head tags, JSON-LD, Open Graph images, the sitemap, robots.txt, font preload)",
6657
6691
  packages: [
6658
6692
  "@mark1russell7/conventions",
6659
6693
  "@mark1russell7/template-cli",
@@ -6687,7 +6721,16 @@ const HOMES = [
6687
6721
  "sidebar",
6688
6722
  "callout",
6689
6723
  "table of contents",
6690
- "theme toggle"
6724
+ "theme toggle",
6725
+ "prerender",
6726
+ "sitemap",
6727
+ "robots.txt",
6728
+ "open graph",
6729
+ "head tags",
6730
+ "json-ld",
6731
+ "font preload",
6732
+ "static routes",
6733
+ "base path"
6691
6734
  ]
6692
6735
  },
6693
6736
  {
@@ -77056,7 +77099,7 @@ const NOT_SOURCE = [
77056
77099
  /** A call of a method of `console`. The group `method` is the name of the method. */
77057
77100
  const CALL = /\bconsole\s*\.\s*(?<method>[A-Za-z]+)\s*\(/g;
77058
77101
  /** A line that is a comment: it starts with `//`, `/*` or `*`. */
77059
- const COMMENT = /^\s*(?:\/\/|\/\*|\*)/;
77102
+ const COMMENT$1 = /^\s*(?:\/\/|\/\*|\*)/;
77060
77103
  /** The path of a CLI file: a folder `cli`, `bin` or `commands`, or a file `cli.*` or `main.*`. */
77061
77104
  const CLI_PATH = /(?:^|\/)(?:cli|bin|commands?)(?:\/|\.)|(?:^|[/._-])(?:cli|main)\.[a-z]+$/;
77062
77105
  /**
@@ -77084,7 +77127,7 @@ function consoleBreaks(file, text) {
77084
77127
  const cli = isCliFile(file, text);
77085
77128
  const breaks = [];
77086
77129
  text.split(/\r?\n/).forEach((line, index) => {
77087
- if (COMMENT.test(line)) return;
77130
+ if (COMMENT$1.test(line)) return;
77088
77131
  for (const match of line.matchAll(CALL)) {
77089
77132
  const method = match.groups?.["method"] ?? "";
77090
77133
  breaks.push({
@@ -77202,6 +77245,76 @@ const noConsole = {
77202
77245
  return state.breaks.some((item) => item.file === CONFIG_FILE$1) ? void 0 : gate.why;
77203
77246
  }
77204
77247
  };
77248
+ // src/rules/follow-hash.ts
77249
+ /**
77250
+ * The rule `follow-hash`: a source that reads the hash of the address also follows each change of the hash. A second link
77251
+ * to the same page in the same tab changes only the hash, and the page does not load again. A page that reads the hash
77252
+ * only at its load thus keeps the old view. The function `followHash` of `@mark1russell7/site-pages/chrome` reads the
77253
+ * hash at its start and at each `hashchange` event.
77254
+ */
77255
+ /** A read of the hash of the address: `location.hash` that is not the left side of an assignment. */
77256
+ const READ = /\blocation\s*\.\s*hash\b(?!\s*=(?!=))/;
77257
+ /** A line that only carries the hash into a new address of the same page: a call of `replaceState` or `pushState`. */
77258
+ const CARRY = /\b(?:replaceState|pushState)\s*\(/;
77259
+ /** A line that is a comment: it starts with `//`, `/*` or `*`. */
77260
+ const COMMENT = /^\s*(?:\/\/|\/\*|\*)/;
77261
+ /** A text that follows the changes of the hash: a listener of `hashchange` or `popstate` (also `onhashchange`), or a call of `followHash`. */
77262
+ const FOLLOWS = /hashchange|popstate|\bfollowHash\s*\(/;
77263
+ /**
77264
+ * This function gives the break of one source file. The break is the first line that reads `location.hash`, when the file
77265
+ * does not follow the changes of the hash. A file that follows the changes gives no break. A file that only writes the
77266
+ * hash, or only carries it into `history.replaceState`, gives no break too.
77267
+ */
77268
+ function hashReadBreaks(file, text) {
77269
+ if (!text.includes("hash") || FOLLOWS.test(text)) return [];
77270
+ const lines = text.split(/\r?\n/);
77271
+ for (const [index, line] of lines.entries()) {
77272
+ if (COMMENT.test(line) || CARRY.test(line) || !READ.test(line)) continue;
77273
+ return [{
77274
+ file,
77275
+ line: index + 1,
77276
+ message: `${file} reads location.hash only once. A second link to the page in the same tab changes the hash, and the view stays the same.`
77277
+ }];
77278
+ }
77279
+ return [];
77280
+ }
77281
+ const followHashRule = {
77282
+ id: "follow-hash",
77283
+ title: "A source that reads `location.hash` also follows each change of the hash: with `followHash` of `@mark1russell7/site-pages/chrome`, or a listener of `hashchange`.",
77284
+ reason: "A second link to the same page in the same tab changes only the hash, and the browser does not load the page again. A page that reads the hash only at its load keeps the old view. On 2026-12-03, a docs site kept the panel of the first record after a link to a second record.",
77285
+ fix: "Read the hash with followHash(listener) of @mark1russell7/site-pages/chrome. It gives the hash at its start and at each change. A file that reads the hash for a different reason goes in `ignore` with its reason.",
77286
+ sources: [{
77287
+ repo: "private",
77288
+ rule: "bug-leaves-class-probe",
77289
+ doc: "a decision of direction: each fault leaves a probe of its class. The case is a docs site on 2026-12-03."
77290
+ }, {
77291
+ repo: "mark1russell7/template",
77292
+ rule: "site-pages releases page",
77293
+ doc: "the inline module of the releases page read the hash only at its load, until the fix of 2026-12-04"
77294
+ }],
77295
+ options: { skip: {
77296
+ type: "strings",
77297
+ default: NOT_SOURCE,
77298
+ description: "The globs of the files that are not sources: tests, fixtures, scripts, benches and examples."
77299
+ } },
77300
+ failsFrom: "2026-12-21",
77301
+ check(context, options) {
77302
+ const files = context.gitFiles();
77303
+ if (files === void 0) return { skipped: "the root is not in a git repository" };
77304
+ const skip = options["skip"];
77305
+ const breaks = [];
77306
+ for (const file of files.filter((path) => isConsoleSource(path, skip)).sort(byCode)) {
77307
+ let text;
77308
+ try {
77309
+ text = readFileSync(join(context.root, file), "utf8");
77310
+ } catch {
77311
+ continue;
77312
+ }
77313
+ breaks.push(...hashReadBreaks(file, text));
77314
+ }
77315
+ return breaks;
77316
+ }
77317
+ };
77205
77318
  // src/private-names.ts
77206
77319
  /**
77207
77320
  * The private name list: a JSON file outside of the public repositories, with the names of private projects. The file
@@ -83675,6 +83788,7 @@ const RULES = [
83675
83788
  noBuildOutput,
83676
83789
  noLocalPaths,
83677
83790
  noConsole,
83791
+ followHashRule,
83678
83792
  apiReportScript,
83679
83793
  releaseFiles,
83680
83794
  unreleasedChange,
@@ -84929,6 +85043,6 @@ function runHook(args, io) {
84929
85043
  git: (gitArgs) => runGit(io.cwd, gitArgs)
84930
85044
  }, io);
84931
85045
  }
84932
- export { retiredFile as $, SHARED_CI as $n, readWorkflow as $r, lineNameHit as $t, scriptsOf as A, declaredName as An, withOneJob as Ar, pushMainOnly as At, giveWaySlots as B, mapMarkdown as Bn, convertGate as Br, PRIVATE_NAMES_FILE_VARIABLE as Bt, setVersions as C, parseRuleConfig as Ci, shapesOfSource as Cn, startsOnPullRequest as Cr, gitPinOnNpm as Ct, trustPolicy as D, moduleMessage as Dn, SECURITY_TIMEOUT_MINUTES as Dr, pinnedGitDeps as Dt, TRAIN_SCOPES as E, homeModule as En, SECURITY_SCAN_INPUTS as Er, isPinned as Et, sourceMain as F, signaturesOf as Fn, licenseFile as Fr, publishTextSafe as Ft, workflowPeaks as G, npmPackagesOf as Gn, summaryName as Gr, privateNamesFiles as Gt, repositoryPeak as H, mergeHomes as Hn, prPathFilters as Hr, invalidPatternBreaks as Ht, TEMPLATE_CALLED as I, HOME_EXPORTS as In, licenseFileOf as Ir, packNoBuildinfo as It, mayRun as J, runCalls as Jn, gateAfterCancel as Jr, PRIVATE_NAME_LIST as Jt, evaluateExpression as K, readOverlay as Kn, JOB_LIMIT_FLOOR_MINUTES as Kr, privatePatterns as Kt, UNKNOWN_MATRIX_JOBS as L, HOMES as Ln, mitText as Lr, DEFAULT_ALLOWED as Lt, testsRequired as M, messageOf$1 as Mn, scheduleMinute as Mr, pagesCalls as Mt, isSourcePath as N, repoOf as Nn, LICENSE_TEXTS as Nr, pagesSite as Nt, typedScripts as O, moduleUses as On, securityCallers as Or, siteCheckInCi as Ot, pathsOf as P, reposOf as Pn, authorOf as Pr, exportsRequire as Pt, RETIRED_FILES as Q, SHARED_ACTIONS as Qn, readAction as Qr, isCommonUse as Qt, calledJobs as R, MAP_RULE as Rn, repositoryIsPublic as Rr, HOME_PATTERNS as Rt, namedVersions as S, parseConfig as Si, shapeMessage as Sn, hasSummaryJob as Sr, pnpmYamlParses as St, IGNORE_AFTER as T, HOME_SHAPES as Tn, SECURITY_SCAN_COMMIT as Tr, isGitSpecifier as Tt, runnerPeak as U, npmDrift as Un, skippableJobs as Ur, noLocalPaths as Ut, matrixPeak as V, mapText as Vn, gateTrigger as Vr, PRIVATE_PATTERNS_VARIABLE as Vt, runsAtOnce as W, npmNames as Wn, summaryJob as Wr, privateNamesFile as Wt, roadmapParses as X, hasTests as Xn, MATRIX_EXPAND_MAX as Xr, firstNameMatch as Xt, roadmapOfLine as Y, serviceRunMain as Yn, FILTER_KEYS as Yr, PrivateNameListError as Yt, retiredFiles as Z, tsconfigTest as Zn, parseWorkflow as Zr, isAllowedHit as Zt, runPrePushArgs as _, runGit as _i, coverageProvider as _n, isSecurityGate as _r, parseAdvisory as _t, listRules as a, cleanPath as ai, CONSOLE_LAST_DAY as an, setupCue as ar, publishedMinorRule as at, GITHUB_YAML as b, specifiersOf as bi, homeShape as bn, SUMMARY_GATES as br, pipeFails as bt, runCli as c, inFolder as ci, consoleGate as cn, HOME_TIMEOUT_MS as cr, SHIPPED_FIELDS as ct, HOOK_MARKER as d, matchesAny as di, isConsoleSource as dn, sharedDocsRule as dr, unreleasedChange as dt, yamlFaults as ei, lineNameHits as en, SHARED_WORKFLOWS as er, requiredScripts as et, NO_READ_LINE as f, parseCatFileBatch as fi, noConsole as fn, addReleaseMode as fr, unreleasedChangeRule as ft, prePush as g, repositoryOfRemote as gi, mainCheck as gn, SECURITY_FILE as gr, jobFails as gt, parsePrePushArgs as h, replaceLine as hi, hasImportMetaMain as hn, releaseModeRule as hr, hiddenFailures as ht, formatResult as i, RULE_WARN_DAYS as ii, pathNameHit as in, setupPnpm as ir, publishedMinor as it, typedFiles as j, homePackage as jn, runnerBudget as jr, PAGES_WORKFLOWS as jt, configsOfScript as k, modulesOf as kn, securityOneJob as kr, pagesAfterRelease as kt, runFix as l, keyLine as li, consoleKind as ln, blockHash as lr, UNSHIPPED_FILES as lt, installHook as m, readJsonc as mi, REAL_COMPARE as mn, hasReleaseMode as mr, playwrightInstall as mt, annotations as n, cuePreset as ni, nameMatches as nn, sharedCi as nr, lockedVersions as nt, readConfig as o, codePackages as oi, NOT_SOURCE as on, callPermissions as or, reachOf as ot, PRE_PUSH_HOOK as p, parseJsonc as pi, noBuildOutput as pn, callsReleaseBuild as pr, pnpmInstall as pt, groupParts as q, SERVICE_PACKAGE as qn, jobLimitFloor as qr, privateTextBreaks as qt, createContext as r, DEPENDENCY_FIELDS as ri, parsePrivateNames as rn, filteredInstall as rr, minorOf as rt, runChecks as s, hasFile as si, consoleBreaks as sn, callPermissionsRule as sr, NPM_REGISTRY as st, USAGE as t, STRICT_OPTIONS as ti, mergePrivateNames as tn, callsSharedCi as tr, releaseFiles as tt, summaryMarkdown as u, lineOf as ui, isCliFile as un, githubFetch as ur, npmLookup as ut, RULES as v, runGitShow as vi, apiReportScript as vn, securityGate as vr, startsTests as vt, versionTitle as w, spansOf as wn, summaryJobRule as wr, dependencySpecifiers as wt, workflowParses as x, defaultOptions as xi, homeShapesOf as xn, addSummaryJob as xr, PNPM_YAML as xt, workspaceProtocol as y, showFiles as yi, containedHome as yn, securityWorkflow as yr, swallowsTests as yt, eventClass as z, findHomes as zn, ACTIONS_COMMIT as zr, PRIVATE_NAMES_FILE_CONFIG as zt };
85046
+ export { retiredFile as $, tsconfigTest as $n, parseWorkflow as $r, lineNameHit as $t, scriptsOf as A, moduleUses as An, securityCallers as Ar, pushMainOnly as At, giveWaySlots as B, MAP_RULE as Bn, repositoryIsPublic as Br, PRIVATE_NAMES_FILE_VARIABLE as Bt, setVersions as C, defaultOptions as Ci, homeShapesOf as Cn, addSummaryJob as Cr, gitPinOnNpm as Ct, trustPolicy as D, HOME_SHAPES as Dn, SECURITY_SCAN_COMMIT as Dr, pinnedGitDeps as Dt, TRAIN_SCOPES as E, spansOf as En, summaryJobRule as Er, isPinned as Et, sourceMain as F, repoOf as Fn, LICENSE_TEXTS as Fr, publishTextSafe as Ft, workflowPeaks as G, npmDrift as Gn, skippableJobs as Gr, privateNamesFiles as Gt, repositoryPeak as H, mapMarkdown as Hn, convertGate as Hr, invalidPatternBreaks as Ht, TEMPLATE_CALLED as I, reposOf as In, authorOf as Ir, packNoBuildinfo as It, mayRun as J, readOverlay as Jn, JOB_LIMIT_FLOOR_MINUTES as Jr, PRIVATE_NAME_LIST as Jt, evaluateExpression as K, npmNames as Kn, summaryJob as Kr, privatePatterns as Kt, UNKNOWN_MATRIX_JOBS as L, signaturesOf as Ln, licenseFile as Lr, DEFAULT_ALLOWED as Lt, testsRequired as M, declaredName as Mn, withOneJob as Mr, pagesCalls as Mt, isSourcePath as N, homePackage as Nn, runnerBudget as Nr, pagesSite as Nt, typedScripts as O, homeModule as On, SECURITY_SCAN_INPUTS as Or, siteCheckInCi as Ot, pathsOf as P, messageOf$1 as Pn, scheduleMinute as Pr, exportsRequire as Pt, RETIRED_FILES as Q, hasTests as Qn, MATRIX_EXPAND_MAX as Qr, isCommonUse as Qt, calledJobs as R, HOME_EXPORTS as Rn, licenseFileOf as Rr, HOME_PATTERNS as Rt, namedVersions as S, specifiersOf as Si, homeShape as Sn, SUMMARY_GATES as Sr, pnpmYamlParses as St, IGNORE_AFTER as T, parseRuleConfig as Ti, shapesOfSource as Tn, startsOnPullRequest as Tr, isGitSpecifier as Tt, runnerPeak as U, mapText as Un, gateTrigger as Ur, noLocalPaths as Ut, matrixPeak as V, findHomes as Vn, ACTIONS_COMMIT as Vr, PRIVATE_PATTERNS_VARIABLE as Vt, runsAtOnce as W, mergeHomes as Wn, prPathFilters as Wr, privateNamesFile as Wt, roadmapParses as X, runCalls as Xn, gateAfterCancel as Xr, firstNameMatch as Xt, roadmapOfLine as Y, SERVICE_PACKAGE as Yn, jobLimitFloor as Yr, PrivateNameListError as Yt, retiredFiles as Z, serviceRunMain as Zn, FILTER_KEYS as Zr, isAllowedHit as Zt, runPrePushArgs as _, replaceLine as _i, hasImportMetaMain as _n, releaseModeRule as _r, parseAdvisory as _t, listRules as a, DEPENDENCY_FIELDS as ai, followHashRule as an, filteredInstall as ar, publishedMinorRule as at, GITHUB_YAML as b, runGitShow as bi, apiReportScript as bn, securityGate as br, pipeFails as bt, runCli as c, codePackages as ci, NOT_SOURCE as cn, callPermissions as cr, SHIPPED_FIELDS as ct, HOOK_MARKER as d, keyLine as di, consoleKind as dn, blockHash as dr, unreleasedChange as dt, readAction as ei, lineNameHits as en, SHARED_ACTIONS as er, requiredScripts as et, NO_READ_LINE as f, lineOf as fi, isCliFile as fn, githubFetch as fr, unreleasedChangeRule as ft, prePush as g, readJsonc as gi, REAL_COMPARE as gn, hasReleaseMode as gr, jobFails as gt, parsePrePushArgs as h, parseJsonc as hi, noBuildOutput as hn, callsReleaseBuild as hr, hiddenFailures as ht, formatResult as i, cuePreset as ii, pathNameHit as in, sharedCi as ir, publishedMinor as it, typedFiles as j, modulesOf as jn, securityOneJob as jr, PAGES_WORKFLOWS as jt, configsOfScript as k, moduleMessage as kn, SECURITY_TIMEOUT_MINUTES as kr, pagesAfterRelease as kt, runFix as l, hasFile as li, consoleBreaks as ln, callPermissionsRule as lr, UNSHIPPED_FILES as lt, installHook as m, parseCatFileBatch as mi, noConsole as mn, addReleaseMode as mr, playwrightInstall as mt, annotations as n, yamlFaults as ni, nameMatches as nn, SHARED_WORKFLOWS as nr, lockedVersions as nt, readConfig as o, RULE_WARN_DAYS as oi, hashReadBreaks as on, setupPnpm as or, reachOf as ot, PRE_PUSH_HOOK as p, matchesAny as pi, isConsoleSource as pn, sharedDocsRule as pr, pnpmInstall as pt, groupParts as q, npmPackagesOf as qn, summaryName as qr, privateTextBreaks as qt, createContext as r, STRICT_OPTIONS as ri, parsePrivateNames as rn, callsSharedCi as rr, minorOf as rt, runChecks as s, cleanPath as si, CONSOLE_LAST_DAY as sn, setupCue as sr, NPM_REGISTRY as st, USAGE as t, readWorkflow as ti, mergePrivateNames as tn, SHARED_CI as tr, releaseFiles as tt, summaryMarkdown as u, inFolder as ui, consoleGate as un, HOME_TIMEOUT_MS as ur, npmLookup as ut, RULES as v, repositoryOfRemote as vi, mainCheck as vn, SECURITY_FILE as vr, startsTests as vt, versionTitle as w, parseConfig as wi, shapeMessage as wn, hasSummaryJob as wr, dependencySpecifiers as wt, workflowParses as x, showFiles as xi, containedHome as xn, securityWorkflow as xr, PNPM_YAML as xt, workspaceProtocol as y, runGit as yi, coverageProvider as yn, isSecurityGate as yr, swallowsTests as yt, eventClass as z, HOMES as zn, mitText as zr, PRIVATE_NAMES_FILE_CONFIG as zt };
84933
85047
 
84934
- //# sourceMappingURL=run-CeEPIgVg.js.map
85048
+ //# sourceMappingURL=run-DX5mvqwy.js.map