@mark1russell7/conventions 0.42.5 → 0.43.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.
package/README.md CHANGED
@@ -31,6 +31,7 @@ Each break shows the file, the line, the rule and the fix. In GitHub Actions, th
31
31
  - `tests-required`: the option `passWithNoTests` in a config or a script, in a package with test files. A package with no tests needs a person, who removes its test script.
32
32
  - `typed-files`: a config file at the root of a package (`vitest.config.ts`). The fix adds `*.config.ts` and `rootDir: "."` to the `tsconfig.test.json` of the package, when that file has no comments.
33
33
  - `trust-policy`: the settings `trustPolicy`, `trustPolicyIgnoreAfter` and `trustPolicyExclude` of `pnpm-workspace.yaml`. The fix makes the file when the repository has none.
34
+ - `security-overrides`: the line of a shared override in `overrides` of `pnpm-workspace.yaml`, with a comment that names its advisories. The fix also removes a line whose parent is not in the lockfile. After the fix, start `pnpm install` and commit the lockfile.
34
35
  - `main-check`: a compare of `process.argv[1]` with the path of the script. The fix writes `import.meta.main` when each Node version of `engines.node` has it (`^22.18`, `>=24.2`). Else it writes a compare of the two real paths, and it adds the imports. It removes the imports that only the old compare used.
35
36
  - `gate-trigger`: a path filter on the pull request trigger of a gate. The fix removes the filter and adds a job `changes` with the same patterns. Each other job needs it and has an `if` on its match. A summary job `<Name> OK` with the action `gate-summary` needs each job. A job with its own `if`, and each job that needs such a job, can be skipped (`allow-skip`). Some workflows need a person, because the fix cannot convert them with certainty. Examples are a trigger in the flow form, an `if` of more than one line, and a job `changes` that already exists.
36
37
 
@@ -45,6 +46,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
45
46
  | `pinned-git-deps` | A dependency from git (`github:`, `git+https:`, `owner/repo`) names a full commit SHA. The rule also examines `overrides`, `resolutions` and `pnpm.overrides`. | coeval `pinned-deps`, `unpublished-dep-pinned`. headroom `non-npm-deps-pinned`, `pinned-github-specifier`. private `github-dep-full-sha`, `github-dep-pinned`. client `general-npm-version`. |
46
47
  | `workspace-protocol` | A dependency on a package of the workspace uses `workspace:`. The rule does not examine peer dependencies. | client `workspace-protocol`, `workspace-deps`. coeval `pinned-deps`. headroom `non-npm-deps-pinned`. crawler `mcp-workspace-dep`. |
47
48
  | `trust-policy` | A repository with a `pnpm-lock.yaml` sets `trustPolicy: no-downgrade` in `pnpm-workspace.yaml`: pnpm refuses a version with less trust evidence than an earlier version, for example one with no provenance after versions from a trusted publisher. `trustPolicyIgnoreAfter` is 10080 or more, so the check examines the versions of the last 7 days. A stolen-token version is new, and older versions can have less evidence for other reasons. `trustPolicyExclude` has the scopes of the release train, which checks the provenance of their versions itself. | private `trust-policy` (STRATEGY.md, 2026-11-01). |
49
+ | `security-overrides` | A lockfile with a bad path of a shared override has the override of pnpm in `pnpm-workspace.yaml`. The overrides are data (`SHARED_OVERRIDES`). Each one has a parent, a child, a range, the first fixed version of the child and its advisories. A bad path is a version of the child under the parent below the fixed version. The rule reads the lockfile, so an override with another range passes when the lockfile has a fixed version. An override ends when the lockfile has no version of its parent. Then the rule asks for its removal. The first override is `archiver-utils>glob` at `^14.0.3` (GHSA-3g3m-2fjr-6pw4 and GHSA-g3hv-75wg-m249). The rule fails from 2026-11-30. | netdiag #37 and systems #557 (2026-11-15): the same override, written by hand, with no end. A private repository has the bad path and no override. |
48
50
  | `source-main` | The `main` of each workspace package is `src/index.ts` (a package with only a `bin` has no `main`, and a private package with no entry is an app). A public package that has a source entry has the same field in `publishConfig`, and that field points at the build. | coeval `package-main-source`, `source-package-main`. crawler `pkg-source-main`, `source-package-main`, `publish-config-build`. private `new-package-main-index`, `source-package-main`. headroom `source-package-main`. |
49
51
  | `tsconfig-test` | Each package with a `tsconfig.json` has a `tsconfig.test.json`, and its `typecheck` script names it. | coeval, crawler, Vex `package-tsconfig-test` or `pkg-tsconfig-test`, and `tsconfig-test`. headroom `tsconfig-test`, `tsconfig-test-per-package`. |
50
52
  | `cue-preset` | The `tsconfig.json` of each package extends a preset of `@mark1russell7/cue`. No config of a package turns off a strict option that its preset turns on. `erasableSyntaxOnly` is one of these options, because `node` cannot strip the other syntax. | client `cue-config`, `no-manual-tsconfig`. private `cue-preset-strict`, `strict-preset`, `new-package-via-cli`. coeval, crawler, headroom, Vex `package-scaffold`. |
@@ -75,6 +77,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
75
77
  | `license-file` | Each public package has a license field, and a license file with the same license in its own folder. A public repository, or a repository with a public package, has a license file at its root. In a GitHub Actions run, the event file tells if the repository is public, and the option `license` (MIT by default) is the license of a root with no public package. npm packs only the license file of the folder of the package, and GitHub reads only the one of the root: on 2026-11-02 five public repositories showed no license on GitHub while npm said MIT. `conventions fix` writes the missing files. | private strategy (2026-11-02). |
76
78
  | `coverage-provider` | When a workflow calls the shared CI and the CI starts the action `coverage`, each package whose test script starts Vitest has `@vitest/coverage-v8`. The provider has the range of `vitest`. The package or the root can hold both. On `main` of a public repository, the action skips a package with no provider, so the artifact `coverage` has no report of it. On 2026-11-09, 15 of 43 public repositories had no provider. `conventions fix` adds it at the range of `vitest`. A caller with `coverage-on-main: false` does not break. The rule fails from 2026-11-25. | template `packages/cli` (`package add`), ireko `packages/ireko/package.json`, codeatlas `packages/*/package.json`. |
77
79
  | `pack-no-buildinfo` | npm does not pack the build info file of tsc. The rule finds the file of each tsconfig of a public package after its `extends` chain. When `incremental` and `composite` are off, tsc writes no file. When an entry of `files` takes the file and no `!<path>` removes it, the rule breaks. A package with no field `files` packs each file, so it breaks too. The file changes on each build, and the release stops when the files of an unchanged version differ from npm. On 2026-11-09 this made the main of splay-react red. `conventions fix` adds the negation after its entry. A changed list of packed files needs a PATCH version. The rule fails from 2026-11-25. | splay-react `package.json` (1.0.2), splay `package.json`, cue `npm/package/ts.cue` (2.1.3). |
80
+ | `publish-text-safe` | The text that npm puts in the publish document of a public package has no line in the shape of an attack. This text is each README file of the package folder, the field `description` and each entry of `keywords`. The shapes are in the list `ATTACK_SHAPES` of `src/rules/publish-text-safe.ts`, and the field `seen` of each shape gives the evidence of a refusal. On 2026-11-15 the registry refused each publish of `@mark1russell7/text` 0.0.7 for the shape `sql-boolean` (E403), and the error did not name the cause. The other three shapes follow the SQL rules of the OWASP Core Rule Set, and no refusal of them is on record. They are breaks too: a false break costs one reword, and a miss costs an E403 with no cause. A script tag is not a shape of the rule: the README of `@mark1russell7/site-pages` 0.5.4 has one, and its publish passed. The rule fails from its release day. | text `packages/text/README.md` (0.0.7, pull request 32), private strategy (2026-11-16). |
78
81
  | `exports-require` | Each entry of the published `exports` of a public package (`publishConfig.exports`, else `exports`) that resolves for `import` also resolves for `require`. The rule resolves each entry as Node does, with the conditions `import`, `node`, `default` and then `require`, `node`, `default`. An entry with only `types` and `import` stops `require()` with ERR_PACKAGE_PATH_NOT_EXPORTED, also on Node 22 and 24. `conventions fix` adds `"default"` with the target of `"import"` as the last member of the object. A target null for `require` is accepted. The rule warns until 2026-11-27. | rigor `package.json` (publishConfig.exports, rigor#196). packing, highways, layout-contract and vex give a `default` target in each published entry. |
79
82
  | `home-module` | A change does not add a value import of a module that only a home of the map imports, for example `node:sqlite` out of `@mark1russell7/sqlite`. The field `modules` of a home gives these modules. The rule finds `import` and `export` with `from`, a bare `import`, `import()`, `require()` and `getBuiltinModule()`. An `import type`, an `export type`, `typeof import()` and `import().Name` do not break. A copy of the code of a home drifts from the home: on 2026-11-15 codeatlas and client opened `node:sqlite` with their own pragmas and transactions. The rule examines only the lines that the change adds. A real exception goes in `ignore` with a reason. The rule fails from 2026-11-30. | private strategy (2026-11-15). |
80
83
  | `home-package` | A change does not add a function with a signature name of another home of the map (for example `median`, `mulberry32` or `writeFileAtomic`). A local copy drifts from the home and splits the fixes. On 2026-11-02 the repositories had 68 local statistics functions in 14 repositories. The rule examines only the lines that the change adds, so the copies that exist do not break. | private direction 18 (STRATEGY.md, 2026-11-02). |
package/build/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as runCli } from "./run-C0vL-9On.js";
2
+ import { c as runCli } from "./run-BWdt9YOd.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  // src/cli.ts
5
5
  try {
package/build/index.d.ts CHANGED
@@ -578,6 +578,7 @@ export declare function invalidPatternBreaks(patterns: readonly PrivatePattern[]
578
578
  export declare function privateTextBreaks(name: string, text: string, privates: PrivateSources, options?: TextBreakOptions): Break[];
579
579
  export declare const noLocalPaths: Rule;
580
580
  export declare const packNoBuildinfo: Rule;
581
+ export declare const publishTextSafe: Rule;
581
582
  export declare const exportsRequire: Rule;
582
583
  export declare const apiReportScript: Rule;
583
584
  export declare const pagesAfterRelease: Rule;
@@ -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-one-job.ts","../src/rules/setup-cue.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/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.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/pinned-git-deps.ts","../src/rules/pipe-fails.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/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/rules/shared-docs.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/run.ts","../src/pre-push.ts","../src/home-exports.ts","../src/workflow.ts","../src/release-text.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AK,gCAAqC;;wBAwB1G,UAAU,SAAS,eAAe;;UA4DjC;;WAEN;;WAEA;;WAEA,QAAQ;;;;;;;wBAWH,OAAO,SAAS,eAAe;;wBAyC/B,aAAa,QAAQ;;wBA0BrB,gBAAgB,QAAQ;;;;;wBAyBxB,YAAY,QAAQ;;wBAYpB,UAAU,QAAQ,+BAA+B,iBAAgB;;UAkBhE;WACN;WACA,KAAK,SAAS;WACd,SAAS;WACT,SAAS;;WAET;;;qBAIE;;wBAoEG,OAAO,yBAAyB,IAAI;;qBC5VvC;;UAGI;;WAEN;;;;;WAKA;;WAEA;WACA,KAAK,SAAS;;WAEd;;WAEA,MAAM;;WAEN,YAAY;;;;;;;wBAqMP,QAAQ,SAAS,gBAAgB,IAAI,KAAK;;qBA2E7C;;;;;;;;qBAgCA;;UAgBI;;WAEN;WACA,KAAK,SAAS;;WAEd,MAAM;;;;;;;wBAWD,YAAY,SAAS,aAAa,IAAI,KAAK;;qBCzX9C,cAAc,SAAS;WAA0B;WAA0B;;UC6EvE;WACN;WACA;WACA;;WAEA;WACA;;;UAIM;;WAEN;;WAEA;;WAEA;;;UAIM;WACN;WACA;WACA;WACA,gBAAgB;;;UAIV;;WAEN;;WAEA;;WAEA;;WAEA;WACA,iBAAiB;WACjB,eAAe;;;wBAgGV,aAAa,cAAc,eAAe;;;;;;;wBAmD1C,WAAW,cAAc,eAAe;;;;;;;;qBChQ3C;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
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-one-job.ts","../src/rules/setup-cue.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/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.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/pinned-git-deps.ts","../src/rules/pipe-fails.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/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/rules/shared-docs.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/run.ts","../src/pre-push.ts","../src/home-exports.ts","../src/workflow.ts","../src/release-text.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;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;EAET;;EAEA,IAAI;;;KAIM,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;qBAIpC;;wBAGG,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YAAY,SAAS,aAAa,IAAI,KAAK;;qBCzX9C,cAAc,SAAS;WAA0B;WAA0B;;UC6EvE;WACN;WACA;WACA;;WAEA;WACA;;;UAIM;;WAEN;;WAEA;;WAEA;;;UAIM;WACN;WACA;WACA;WACA,gBAAgB;;;UAIV;;WAEN;;WAEA;;WAEA;;WAEA;WACA,iBAAiB;WACjB,eAAe;;;wBAgGV,aAAa,cAAc,eAAe;;;;;;;wBAmD1C,WAAW,cAAc,eAAe;;;;;;;;qBChQ3C;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as unreleasedChangeRule, $n as specifiersOf, $t as messageOf, A as typedFiles, An as ACTIONS_COMMIT, At as lineNameHit, B as roadmapParses, Bn as DEPENDENCY_FIELDS, Bt as apiReportScript, C as versionTitle, Cn as setupCue, Ct as privatePatterns, D as typedScripts, Dn as securityCallers, Dt as firstNameMatch, E as trustPolicy, En as SECURITY_TIMEOUT_MINUTES, Et as PrivateNameListError, F as HOME_TIMEOUT_MS, Fn as gateAfterCancel, Ft as noBuildOutput, G as publishedMinor, Gn as inFolder, Gt as mitText, H as releaseFiles, Hn as cleanPath, Ht as authorOf, I as blockHash, In as readAction, It as REAL_COMPARE, J as NPM_REGISTRY, Jn as matchesAny, Jt as moduleMessage, K as publishedMinorRule, Kn as keyLine, Kt as repositoryIsPublic, L as githubFetch, Ln as readWorkflow, Lt as hasImportMetaMain, M as isSourcePath, Mn as gateTrigger, Mt as nameMatches, N as pathsOf, Nn as prPathFilters, Nt as parsePrivateNames, O as configsOfScript, On as securityOneJob, Ot as isAllowedHit, P as sourceMain, Pn as summaryName, Pt as pathNameHit, Q as unreleasedChange, Qn as runGit, Qt as homePackage, R as sharedDocsRule, Rn as STRICT_OPTIONS, Rt as mainCheck, S as setVersions, Sn as sharedCi, St as privateNamesFile, T as TRAIN_SCOPES, Tn as SECURITY_SCAN_INPUTS, Tt as PRIVATE_NAME_LIST, U as lockedVersions, Un as codePackages, Ut as licenseFile, V as requiredScripts, Vn as RULE_WARN_DAYS, Vt as LICENSE_TEXTS, W as minorOf, Wn as hasFile, Wt as licenseFileOf, X as UNSHIPPED_FILES, Xn as readJsonc, Xt as modulesOf, Y as SHIPPED_FIELDS, Yn as parseJsonc, Yt as moduleUses, Z as npmLookup, Zn as replaceLine, Zt as declaredName, _ as workspaceProtocol, _n as tsconfigTest, _t as PRIVATE_NAMES_FILE_CONFIG, a as listRules, an as MAP_RULE, at as pagesAfterRelease, b as yamlFaults, bn as SHARED_WORKFLOWS, bt as invalidPatternBreaks, c as runCli, cn as mapText, ct as scheduleMinute, d as HOOK_MARKER, dn as npmNames, dt as pagesCalls, en as repoOf, er as defaultOptions, et as pipeFails, f as NO_READ_LINE, fn as readOverlay, ft as pagesSite, g as RULES, gn as hasTests, gt as HOME_PATTERNS, h as prePush, hn as serviceRunMain, ht as DEFAULT_ALLOWED, i as formatResult, in as HOMES, it as siteCheckInCi, j as testsRequired, jn as convertGate, jt as lineNameHits, k as scriptsOf, kn as withOneJob, kt as isCommonUse, l as runFix, ln as mergeHomes, lt as pushMainOnly, m as installHook, mn as runCalls, mt as packNoBuildinfo, n as annotations, nn as signaturesOf, nt as isPinned, o as readConfig, on as findHomes, ot as repositoryOfRemote, p as PRE_PUSH_HOOK, pn as SERVICE_PACKAGE, pt as exportsRequire, q as reachOf, qn as lineOf, qt as homeModule, r as createContext, rn as HOME_EXPORTS, rt as pinnedGitDeps, s as runChecks, sn as mapMarkdown, st as runnerBudget, t as USAGE, tn as reposOf, tr as parseConfig, tt as isGitSpecifier, u as summaryMarkdown, un as npmDrift, ut as PAGES_WORKFLOWS, v as GITHUB_YAML, vn as SHARED_ACTIONS, vt as PRIVATE_NAMES_FILE_VARIABLE, w as IGNORE_AFTER, wn as SECURITY_SCAN_COMMIT, wt as privateTextBreaks, x as namedVersions, xn as callsSharedCi, xt as noLocalPaths, y as workflowParses, yn as SHARED_CI, yt as PRIVATE_PATTERNS_VARIABLE, z as roadmapOfLine, zn as cuePreset, zt as coverageProvider } from "./run-C0vL-9On.js";
1
+ import { $ as unreleasedChangeRule, $n as runGit, $t as homePackage, A as typedFiles, An as withOneJob, At as isCommonUse, B as roadmapParses, Bn as cuePreset, Bt as coverageProvider, C as versionTitle, Cn as sharedCi, Ct as privateNamesFile, D as typedScripts, Dn as SECURITY_TIMEOUT_MINUTES, Dt as PrivateNameListError, E as trustPolicy, En as SECURITY_SCAN_INPUTS, Et as PRIVATE_NAME_LIST, F as HOME_TIMEOUT_MS, Fn as summaryName, Ft as pathNameHit, G as publishedMinor, Gn as hasFile, Gt as licenseFileOf, H as releaseFiles, Hn as RULE_WARN_DAYS, Ht as LICENSE_TEXTS, I as blockHash, In as gateAfterCancel, It as noBuildOutput, J as NPM_REGISTRY, Jn as lineOf, Jt as homeModule, K as publishedMinorRule, Kn as inFolder, Kt as mitText, L as githubFetch, Ln as readAction, Lt as REAL_COMPARE, M as isSourcePath, Mn as convertGate, Mt as lineNameHits, N as pathsOf, Nn as gateTrigger, Nt as nameMatches, O as configsOfScript, On as securityCallers, Ot as firstNameMatch, P as sourceMain, Pn as prPathFilters, Pt as parsePrivateNames, Q as unreleasedChange, Qn as replaceLine, Qt as declaredName, R as sharedDocsRule, Rn as readWorkflow, Rt as hasImportMetaMain, S as setVersions, Sn as callsSharedCi, St as noLocalPaths, T as TRAIN_SCOPES, Tn as SECURITY_SCAN_COMMIT, Tt as privateTextBreaks, U as lockedVersions, Un as cleanPath, Ut as authorOf, V as requiredScripts, Vn as DEPENDENCY_FIELDS, Vt as apiReportScript, W as minorOf, Wn as codePackages, Wt as licenseFile, X as UNSHIPPED_FILES, Xn as parseJsonc, Xt as moduleUses, Y as SHIPPED_FIELDS, Yn as matchesAny, Yt as moduleMessage, Z as npmLookup, Zn as readJsonc, Zt as modulesOf, _ as workspaceProtocol, _n as hasTests, _t as HOME_PATTERNS, a as listRules, an as HOMES, at as pagesAfterRelease, b as yamlFaults, bn as SHARED_CI, bt as PRIVATE_PATTERNS_VARIABLE, c as runCli, cn as mapMarkdown, ct as scheduleMinute, d as HOOK_MARKER, dn as npmDrift, dt as pagesCalls, en as messageOf, er as specifiersOf, et as pipeFails, f as NO_READ_LINE, fn as npmNames, ft as pagesSite, g as RULES, gn as serviceRunMain, gt as DEFAULT_ALLOWED, h as prePush, hn as runCalls, ht as packNoBuildinfo, i as formatResult, in as HOME_EXPORTS, it as siteCheckInCi, j as testsRequired, jn as ACTIONS_COMMIT, jt as lineNameHit, k as scriptsOf, kn as securityOneJob, kt as isAllowedHit, l as runFix, ln as mapText, lt as pushMainOnly, m as installHook, mn as SERVICE_PACKAGE, mt as publishTextSafe, n as annotations, nn as reposOf, nr as parseConfig, nt as isPinned, o as readConfig, on as MAP_RULE, ot as repositoryOfRemote, p as PRE_PUSH_HOOK, pn as readOverlay, pt as exportsRequire, q as reachOf, qn as keyLine, qt as repositoryIsPublic, r as createContext, rn as signaturesOf, rt as pinnedGitDeps, s as runChecks, sn as findHomes, st as runnerBudget, t as USAGE, tn as repoOf, tr as defaultOptions, tt as isGitSpecifier, u as summaryMarkdown, un as mergeHomes, ut as PAGES_WORKFLOWS, v as GITHUB_YAML, vn as tsconfigTest, vt as PRIVATE_NAMES_FILE_CONFIG, w as IGNORE_AFTER, wn as setupCue, wt as privatePatterns, x as namedVersions, xn as SHARED_WORKFLOWS, xt as invalidPatternBreaks, y as workflowParses, yn as SHARED_ACTIONS, yt as PRIVATE_NAMES_FILE_VARIABLE, z as roadmapOfLine, zn as STRICT_OPTIONS, zt as mainCheck } from "./run-BWdt9YOd.js";
2
2
  import { i as packageFolders, n as globFolders, r as globToRegExp, s as workspaceGlobs } from "./workspace-Cx7p7bWn.js";
3
3
  // src/release-text.ts
4
4
  /**
@@ -65,6 +65,6 @@ function releaseNotes(name, version, changelog) {
65
65
  if (section.length <= 1e5) return section;
66
66
  return `${section.slice(0, MAX_NOTES)}\n\n(The CHANGELOG.md of \`${name}\` has the full text.)`;
67
67
  }
68
- export { ACTIONS_COMMIT, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MAX_NOTES, NO_READ_LINE, NPM_REGISTRY, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, RULE_WARN_DAYS, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, TRAIN_SCOPES, UNSHIPPED_FILES, USAGE, annotations, apiReportScript, authorOf, blockHash, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasTests, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSourcePath, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseConfig, parseJsonc, parsePrivateNames, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, prPathFilters, prePush, privateNamesFile, privatePatterns, privateTextBreaks, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, signaturesOf, siteCheckInCi, sourceMain, specifiersOf, summaryMarkdown, summaryName, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
68
+ export { ACTIONS_COMMIT, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MAX_NOTES, NO_READ_LINE, NPM_REGISTRY, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, RULE_WARN_DAYS, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, TRAIN_SCOPES, UNSHIPPED_FILES, USAGE, annotations, apiReportScript, authorOf, blockHash, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasTests, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSourcePath, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseConfig, parseJsonc, parsePrivateNames, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, prPathFilters, prePush, privateNamesFile, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, signaturesOf, siteCheckInCi, sourceMain, specifiersOf, summaryMarkdown, summaryName, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
69
69
 
70
70
  //# sourceMappingURL=index.js.map
@@ -13663,6 +13663,129 @@ const packNoBuildinfo = {
13663
13663
  return breaks;
13664
13664
  }
13665
13665
  };
13666
+ // src/rules/publish-text-safe.ts
13667
+ /**
13668
+ * The rule `publish-text-safe`: the text that npm puts in the publish document of a public package has no line in the
13669
+ * shape of an attack. This text is each README file of the package folder, the field `description` and the field
13670
+ * `keywords`. The registry screens the document. On 2026-11-15 it refused a document with the shape of a SQL probe
13671
+ * (E403), and the error did not name the cause.
13672
+ *
13673
+ * This rule does not wait `RULE_WARN_DAYS`: it fails from its release day. The wait gives the owners time to fix the
13674
+ * breaks of a new rule. On 2026-11-16 a first read of the local clones used the shapes of this file. It found 1 true
13675
+ * example, the README of text 0.0.7 (in 2 old clones), and 0 false hits. Thus the wait protects no repository. A wait
13676
+ * of 14 days lets a repeat of the text case pass with only a warning.
13677
+ *
13678
+ * At 11:32 UTC of the same day, one read of 446 README files and 664 manifests of the local clones found 0 hits. The
13679
+ * sessions add, pull and remove clones during a day, so each count is the count of one read.
13680
+ */
13681
+ /**
13682
+ * The shapes of the attacks. Only the shape `sql-boolean` has a refusal on record: it stopped each publish of
13683
+ * @mark1russell7/text 0.0.7. The other three shapes are patterns that follow the SQL rules of the OWASP Core Rule Set,
13684
+ * and no refusal of them is on record. They are breaks too. A false break names its line and costs one reword. A miss
13685
+ * costs an E403 that does not name its cause, and on 2026-11-15 this cost hours.
13686
+ *
13687
+ * A script tag is not here: @mark1russell7/site-pages 0.5.4 has one in its README, and its publish passed.
13688
+ */
13689
+ const ATTACK_SHAPES = Object.freeze([
13690
+ {
13691
+ id: "sql-boolean",
13692
+ what: "a SQL probe: AND or OR, a number, a comparison and a number",
13693
+ pattern: /\b(?:and|or)\s+\d+\s*(?:=|<>|!=)\s*\d+(?!\w)/i,
13694
+ seen: "E403, @mark1russell7/text 0.0.7, 2026-11-15"
13695
+ },
13696
+ {
13697
+ id: "sql-tautology",
13698
+ what: "a SQL tautology: a quote, AND or OR, and two equal values",
13699
+ pattern: /(['"])\s*(?:or|and)\s+(['"]?)(\w+)\2\s*=\s*\2\3(?!\w)/i,
13700
+ seen: null
13701
+ },
13702
+ {
13703
+ id: "sql-union",
13704
+ what: "a SQL UNION SELECT",
13705
+ pattern: /\bunion\s+(?:all\s+)?select\b/i,
13706
+ seen: null
13707
+ },
13708
+ {
13709
+ id: "sql-drop",
13710
+ what: "a SQL DROP after a semicolon",
13711
+ pattern: /;\s*drop\s+(?:table|database)\b/i,
13712
+ seen: null
13713
+ }
13714
+ ]);
13715
+ /** This function gives each line of `text` with the shape of an attack, one time for each shape, in the order of the lines. */
13716
+ function attackLines(text, shapes = ATTACK_SHAPES) {
13717
+ const found = [];
13718
+ text.split(/\r?\n/).forEach((line, index) => {
13719
+ for (const shape of shapes) {
13720
+ const match = shape.pattern.exec(line);
13721
+ if (match !== null) found.push({
13722
+ line: index + 1,
13723
+ shape,
13724
+ text: match[0]
13725
+ });
13726
+ }
13727
+ });
13728
+ return found;
13729
+ }
13730
+ /** The names of the README files that npm packs from the folder of a package, with each case and extension. */
13731
+ const README = /^readme(?:\.[\w-]+)?$/i;
13732
+ /** This function gives a matched text for a message, with no line end and at most 60 characters. */
13733
+ const shown = (text) => JSON.stringify(text.length > 60 ? `${text.slice(0, 57)}...` : text);
13734
+ /** This function gives the end of the message of an attack shape: the refusal on record, or the source of the shape. */
13735
+ const refusalOf = (shape) => shape.seen === null ? "The shape follows a SQL rule of the OWASP Core Rule Set, so the npm registry can refuse the publish (E403). No refusal of it is on record." : `The npm registry refused a publish with this shape (${shape.seen}).`;
13736
+ const publishTextSafe = {
13737
+ id: "publish-text-safe",
13738
+ title: "The text that npm puts in the publish document of a public package (each README, `description` and `keywords`) has no line in the shape of an attack.",
13739
+ reason: "The npm registry screens the publish document, and it refused a document with the shape of a SQL probe. On 2026-11-15 and 2026-11-16, each publish of @mark1russell7/text 0.0.7 failed with E403. An example in its README had AND, a number, an equal sign and a number. The error does not name the cause, so the release looked like a fault of the trust of the package. A new README example went out, and the same trust published 0.0.7.",
13740
+ fix: "Write the example with other words or values, for example `partsAt(\"A wide river\", [[2, 6]])`. A changed README of a released package needs a PATCH version.",
13741
+ sources: [{
13742
+ repo: "text",
13743
+ rule: "publish-text-safe",
13744
+ doc: "packages/text/README.md (0.0.7, pull request 32)"
13745
+ }, {
13746
+ repo: "private",
13747
+ rule: "publish-text-safe",
13748
+ doc: "docs/STRATEGY.md (2026-11-16, the publish document has no attack shape and no token)"
13749
+ }],
13750
+ options: {},
13751
+ failsFrom: "2026-11-16",
13752
+ check(context) {
13753
+ const breaks = [];
13754
+ for (const pkg of versionedPackages(context)) {
13755
+ const name = String(pkg.manifest["name"]);
13756
+ let names;
13757
+ try {
13758
+ names = readdirSync(pkg.dir).filter((file) => README.test(file)).sort();
13759
+ } catch {
13760
+ names = [];
13761
+ }
13762
+ for (const file of names) {
13763
+ let text;
13764
+ try {
13765
+ text = readFileSync(join(pkg.dir, file), "utf8");
13766
+ } catch {
13767
+ continue;
13768
+ }
13769
+ for (const hit of attackLines(text)) breaks.push({
13770
+ file: inFolder(pkg.folder, file),
13771
+ line: hit.line,
13772
+ message: `The README of ${name} has ${shown(hit.text)}, ${hit.shape.what} (${hit.shape.id}). ${refusalOf(hit.shape)}`
13773
+ });
13774
+ }
13775
+ const keywords = pkg.manifest["keywords"];
13776
+ const fields = [...typeof pkg.manifest["description"] === "string" ? [["description", pkg.manifest["description"]]] : [], ...Array.isArray(keywords) ? keywords.filter((word) => typeof word === "string").map((word) => ["keywords", word]) : []];
13777
+ for (const [field, value] of fields) for (const hit of attackLines(value)) {
13778
+ const line = lineOf(pkg.text, `"${field}"`);
13779
+ breaks.push({
13780
+ file: pkg.file,
13781
+ ...line === void 0 ? {} : { line },
13782
+ message: `The field "${field}" of ${name} has ${shown(hit.text)}, ${hit.shape.what} (${hit.shape.id}). ${refusalOf(hit.shape)}`
13783
+ });
13784
+ }
13785
+ }
13786
+ return breaks;
13787
+ }
13788
+ };
13666
13789
  // src/rules/exports-require.ts
13667
13790
  /**
13668
13791
  * The rule `exports-require`: each entry of the published `exports` that resolves for `import` also resolves for
@@ -15159,7 +15282,7 @@ function isPinned(spec, fullSha) {
15159
15282
  return path !== void 0 && path.split(/[/.]/).some((part) => sha.test(part));
15160
15283
  }
15161
15284
  /** This function gives the specifiers of the fields of overrides, also the field `overrides` of `pnpm`. */
15162
- function overridesOf(manifest) {
15285
+ function overridesOf$1(manifest) {
15163
15286
  const out = [];
15164
15287
  for (const field of OVERRIDE_FIELDS) for (const [name, spec] of specifiersOf(manifest, field)) out.push([
15165
15288
  field,
@@ -15231,7 +15354,7 @@ const pinnedGitDeps = {
15231
15354
  name,
15232
15355
  spec
15233
15356
  ]);
15234
- found.push(...overridesOf(info.manifest));
15357
+ found.push(...overridesOf$1(info.manifest));
15235
15358
  for (const [field, name, spec] of found) {
15236
15359
  if (!isGitSpecifier(spec) || isPinned(spec, fullSha)) continue;
15237
15360
  const line = keyLine(info.text, field, name);
@@ -17196,7 +17319,7 @@ const typedScripts = {
17196
17319
  * The rule `trust-policy`: a pnpm repository sets `trustPolicy: no-downgrade` in `pnpm-workspace.yaml`. It checks each
17197
17320
  * version for 7 days after its publish (`trustPolicyIgnoreAfter`). It excludes the scopes of the release train.
17198
17321
  */
17199
- const WORKSPACE = "pnpm-workspace.yaml";
17322
+ const WORKSPACE$1 = "pnpm-workspace.yaml";
17200
17323
  /** The scopes that the release train updates. The train checks the provenance of their versions itself. */
17201
17324
  const TRAIN_SCOPES = ["@mark1russell7/*", "@procedures/*"];
17202
17325
  /** 7 days, in minutes. */
@@ -17282,11 +17405,11 @@ const trustPolicy = {
17282
17405
  if (!hasFile(context.root, "pnpm-lock.yaml")) return { skipped: "the repository has no pnpm-lock.yaml" };
17283
17406
  const exclude = Array.isArray(options["exclude"]) ? options["exclude"] : TRAIN_SCOPES;
17284
17407
  const ignoreAfter = typeof options["ignoreAfter"] === "number" ? options["ignoreAfter"] : IGNORE_AFTER;
17285
- const exists = hasFile(context.root, WORKSPACE);
17286
- const text = exists ? readFileSync(join(context.root, WORKSPACE), "utf8") : "";
17408
+ const exists = hasFile(context.root, WORKSPACE$1);
17409
+ const text = exists ? readFileSync(join(context.root, WORKSPACE$1), "utf8") : "";
17287
17410
  const lines = text.split(/\r?\n/);
17288
17411
  const edit = (after) => after === text ? [] : [{
17289
- file: WORKSPACE,
17412
+ file: WORKSPACE$1,
17290
17413
  before: text,
17291
17414
  after
17292
17415
  }];
@@ -17294,9 +17417,9 @@ const trustPolicy = {
17294
17417
  const breaks = [];
17295
17418
  const policy = valueOf(lines, "trustPolicy");
17296
17419
  if (policy?.value !== "no-downgrade") breaks.push({
17297
- file: WORKSPACE,
17420
+ file: WORKSPACE$1,
17298
17421
  ...at(policy?.index),
17299
- message: policy === void 0 ? `${exists ? WORKSPACE : "The repository"} does not set trustPolicy.` : `trustPolicy is "${policy.value}", not "no-downgrade".`,
17422
+ message: policy === void 0 ? `${exists ? WORKSPACE$1 : "The repository"} does not set trustPolicy.` : `trustPolicy is "${policy.value}", not "no-downgrade".`,
17300
17423
  edits: edit(policy === void 0 ? insert(text, -1, [...POLICY_COMMENT, "trustPolicy: no-downgrade"]) : setValue(text, policy.index, "trustPolicy", "no-downgrade"))
17301
17424
  });
17302
17425
  const ignore = valueOf(lines, "trustPolicyIgnoreAfter");
@@ -17304,9 +17427,9 @@ const trustPolicy = {
17304
17427
  if (minutes === void 0 || !Number.isInteger(minutes) || minutes < ignoreAfter) {
17305
17428
  const after = ignore !== void 0 ? setValue(text, ignore.index, "trustPolicyIgnoreAfter", String(ignoreAfter)) : policy !== void 0 ? insert(text, policy.index, [...IGNORE_COMMENT, `trustPolicyIgnoreAfter: ${String(ignoreAfter)}`]) : text;
17306
17429
  breaks.push({
17307
- file: WORKSPACE,
17430
+ file: WORKSPACE$1,
17308
17431
  ...at(ignore?.index),
17309
- message: ignore === void 0 ? `${WORKSPACE} does not set trustPolicyIgnoreAfter, so pnpm also refuses old versions that have less evidence for other reasons.` : `trustPolicyIgnoreAfter is ${ignore.value}, not a whole number of at least ${String(ignoreAfter)} minutes.`,
17432
+ message: ignore === void 0 ? `${WORKSPACE$1} does not set trustPolicyIgnoreAfter, so pnpm also refuses old versions that have less evidence for other reasons.` : `trustPolicyIgnoreAfter is ${ignore.value}, not a whole number of at least ${String(ignoreAfter)} minutes.`,
17310
17433
  edits: edit(after)
17311
17434
  });
17312
17435
  }
@@ -17326,7 +17449,7 @@ const trustPolicy = {
17326
17449
  ...items
17327
17450
  ]);
17328
17451
  breaks.push({
17329
- file: WORKSPACE,
17452
+ file: WORKSPACE$1,
17330
17453
  ...at(start >= 0 ? start : void 0),
17331
17454
  message: `trustPolicyExclude does not have ${missing.join(", ")}.`,
17332
17455
  edits: edit(after)
@@ -17335,6 +17458,200 @@ const trustPolicy = {
17335
17458
  return breaks;
17336
17459
  }
17337
17460
  };
17461
+ // src/rules/security-overrides.ts
17462
+ /**
17463
+ * The rule `security-overrides`: a repository whose lockfile has a bad path of `SHARED_OVERRIDES` sets the override of
17464
+ * pnpm for it. When the lockfile has no version of the parent of an override, the override ends, and the rule removes it.
17465
+ */
17466
+ const WORKSPACE = "pnpm-workspace.yaml";
17467
+ const LOCKFILE = "pnpm-lock.yaml";
17468
+ /**
17469
+ * The shared overrides. The package glob 10 under archiver-utils 5 has GHSA-3g3m-2fjr-6pw4. Its minimatch 9 has
17470
+ * GHSA-g3hv-75wg-m249. The version glob 14.0.2 fixes glob. The version 14.0.3 is the first that asks for a fixed
17471
+ * minimatch (`^11.0.2`).
17472
+ */
17473
+ const SHARED_OVERRIDES = [{
17474
+ parent: "archiver-utils",
17475
+ child: "glob",
17476
+ range: "^14.0.3",
17477
+ fixed: "14.0.3",
17478
+ advisories: ["GHSA-3g3m-2fjr-6pw4", "GHSA-g3hv-75wg-m249"],
17479
+ end: "archiver 8 has no archiver-utils, so the override ends when testcontainers accepts archiver 8"
17480
+ }];
17481
+ /** This function gives the selector of an override: `parent>child`. */
17482
+ const selectorOf = (override) => `${override.parent}>${override.child}`;
17483
+ /** This function removes the quotes around a key or a value of YAML. */
17484
+ const unquoted = (text) => text.trim().replace(/^(['"])(.*)\1$/, "$2");
17485
+ /** This function gives the parts of a release version, or undefined for other text. It cuts the peer suffix `(...)`. */
17486
+ function partsOf(version) {
17487
+ const match = /^(\d+)\.(\d+)\.(\d+)(?:$|\()/.exec(version.trim());
17488
+ return match === null ? void 0 : [
17489
+ Number(match[1]),
17490
+ Number(match[2]),
17491
+ Number(match[3])
17492
+ ];
17493
+ }
17494
+ /** This function tells if the release version `version` is below the version `fixed`. It gives false for other text. */
17495
+ function isBelow(version, fixed) {
17496
+ const have = partsOf(version);
17497
+ const want = partsOf(fixed);
17498
+ if (have === void 0 || want === void 0) return false;
17499
+ for (let index = 0; index < 3; index++) if ((have[index] ?? 0) !== (want[index] ?? 0)) return (have[index] ?? 0) < (want[index] ?? 0);
17500
+ return false;
17501
+ }
17502
+ /**
17503
+ * This function reads the `snapshots` of each document of the text of a `pnpm-lock.yaml` file. It gives the count of
17504
+ * the snapshots of `parent`, and the version of `child` in the dependencies of each of them.
17505
+ */
17506
+ function childVersions(text, parent, child) {
17507
+ const versions = [];
17508
+ let parents = 0;
17509
+ let inside = false;
17510
+ let inParent = false;
17511
+ let inDependencies = false;
17512
+ for (const line of text.split(/\r?\n/)) {
17513
+ if (/^\S/.test(line)) {
17514
+ inside = line.trimEnd() === "snapshots:";
17515
+ inParent = false;
17516
+ continue;
17517
+ }
17518
+ if (!inside) continue;
17519
+ const entry = yamlEntry(line);
17520
+ if (entry === void 0) continue;
17521
+ const key = unquoted(entry.key);
17522
+ if (entry.indent === 2) {
17523
+ inParent = key.startsWith(`${parent}@`) && /^\d/.test(key.slice(parent.length + 1));
17524
+ inDependencies = false;
17525
+ if (inParent) parents++;
17526
+ } else if (entry.indent === 4) inDependencies = key === "dependencies" || key === "optionalDependencies";
17527
+ else if (entry.indent === 6 && inParent && inDependencies && key === child) versions.push(unquoted(entry.value));
17528
+ }
17529
+ return {
17530
+ parents,
17531
+ versions
17532
+ };
17533
+ }
17534
+ /** This function gives the block `overrides` of the lines of `pnpm-workspace.yaml`, or undefined when it has none. */
17535
+ function overridesOf(lines) {
17536
+ const key = lines.findIndex((line) => /^overrides:(\s|$)/.test(line));
17537
+ if (key < 0) return void 0;
17538
+ const rest = (lines[key] ?? "").slice(10).replace(/\s+#.*$/, "").trim();
17539
+ const entries = /* @__PURE__ */ new Map();
17540
+ let last = key;
17541
+ for (let index = key + 1; index < lines.length; index++) {
17542
+ const line = lines[index] ?? "";
17543
+ if (line.trim() === "" || line.trimStart().startsWith("#")) continue;
17544
+ if (/^\S/.test(line)) break;
17545
+ const entry = yamlEntry(line);
17546
+ if (entry !== void 0) entries.set(unquoted(entry.key), {
17547
+ index,
17548
+ value: unquoted(entry.value.replace(/\s+#.*$/, ""))
17549
+ });
17550
+ last = index;
17551
+ }
17552
+ return {
17553
+ key,
17554
+ last,
17555
+ inline: rest !== "",
17556
+ entries
17557
+ };
17558
+ }
17559
+ /** This function gives the comment and the line of an override, with the indent `indent`. */
17560
+ const overrideLines = (override, indent) => [`${indent}# ${override.advisories.join(" and ")}. The rule security-overrides of conventions removes this line at its end.`, `${indent}"${selectorOf(override)}": "${override.range}"`];
17561
+ /** This function tells if a line is the comment that `overrideLines` writes. */
17562
+ const isOwnComment = (line) => line.trimStart().startsWith("#") && line.includes("The rule security-overrides of conventions");
17563
+ const securityOverrides = {
17564
+ id: "security-overrides",
17565
+ title: "A lockfile with a bad path of a shared override has the override of pnpm, and an override with no parent in the lockfile goes.",
17566
+ reason: "An advisory deep in the tree, for example glob 10 under archiver-utils, waits for each package on its path to release. The override of pnpm closes it in one line. Each repository wrote that line by hand, and no line said when it ends. A data list keeps one range for each repository, and the lockfile tells when the override ends.",
17567
+ fix: "Add the override of `SHARED_OVERRIDES` to `overrides` in `pnpm-workspace.yaml`, then start `pnpm install` and commit the lockfile. Remove an override whose parent is not in the lockfile. `conventions fix` edits `pnpm-workspace.yaml`.",
17568
+ sources: [
17569
+ {
17570
+ repo: "netdiag",
17571
+ rule: "security-overrides",
17572
+ doc: "netdiag #37 (2026-11-15): the override archiver-utils>glob for GHSA-3g3m-2fjr-6pw4 and GHSA-g3hv-75wg-m249"
17573
+ },
17574
+ {
17575
+ repo: "systems",
17576
+ rule: "security-overrides",
17577
+ doc: "systems #557 (2026-11-15): the same override, written by hand"
17578
+ },
17579
+ {
17580
+ repo: "private",
17581
+ rule: "security-overrides",
17582
+ doc: "a private repository (2026-11-16): glob 10.5.0 under archiver-utils 5.0.2 in its lockfile, with no override"
17583
+ }
17584
+ ],
17585
+ options: {},
17586
+ failsFrom: "2026-11-30",
17587
+ check(context) {
17588
+ if (!hasFile(context.root, LOCKFILE)) return { skipped: "the repository has no pnpm-lock.yaml" };
17589
+ const lock = readFileSync(join(context.root, LOCKFILE), "utf8");
17590
+ const format = /^lockfileVersion:\s*['"]?(\d+)/m.exec(lock);
17591
+ if (format === null || Number(format[1]) < 9) return { skipped: "pnpm-lock.yaml is not a lockfile of version 9 or later" };
17592
+ const text = hasFile(context.root, WORKSPACE) ? readFileSync(join(context.root, WORKSPACE), "utf8") : "";
17593
+ const eol = text.includes("\r\n") ? "\r\n" : "\n";
17594
+ const lines = text.split(/\r?\n/);
17595
+ const block = overridesOf(lines);
17596
+ const breaks = [];
17597
+ for (const override of SHARED_OVERRIDES) {
17598
+ const selector = selectorOf(override);
17599
+ const found = childVersions(lock, override.parent, override.child);
17600
+ const bad = found.versions.filter((version) => isBelow(version, override.fixed));
17601
+ const own = block?.entries.get(selector);
17602
+ if (bad.length > 0 && own === void 0) {
17603
+ const message = `${LOCKFILE} has ${override.child} ${[...new Set(bad)].join(", ")} under ${override.parent} (${override.advisories.join(", ")}). Add the override "${selector}": "${override.range}" to ${WORKSPACE}, then start pnpm install.`;
17604
+ if (block?.inline === true) {
17605
+ breaks.push({
17606
+ file: WORKSPACE,
17607
+ line: block.key + 1,
17608
+ message: `${message} The key overrides has an inline value, so a person writes the line.`
17609
+ });
17610
+ continue;
17611
+ }
17612
+ const after = [...lines];
17613
+ if (block === void 0) {
17614
+ while (after.length > 0 && after[after.length - 1] === "") after.pop();
17615
+ after.push(...after.length > 0 ? [""] : [], "overrides:", ...overrideLines(override, " "), "");
17616
+ } else {
17617
+ const first = [...block.entries.values()][0];
17618
+ const indent = first === void 0 ? " " : (lines[first.index] ?? "").slice(0, (lines[first.index] ?? "").length - (lines[first.index] ?? "").trimStart().length);
17619
+ after.splice(block.last + 1, 0, ...overrideLines(override, indent));
17620
+ }
17621
+ breaks.push({
17622
+ file: WORKSPACE,
17623
+ ...block === void 0 ? {} : { line: block.key + 1 },
17624
+ message,
17625
+ edits: [{
17626
+ file: WORKSPACE,
17627
+ before: text,
17628
+ after: after.join(eol)
17629
+ }]
17630
+ });
17631
+ } else if (found.parents === 0 && own !== void 0 && block !== void 0) {
17632
+ const after = [...lines];
17633
+ let start = own.index;
17634
+ while (start > 0 && isOwnComment(after[start - 1] ?? "")) start--;
17635
+ after.splice(start, own.index - start + 1);
17636
+ if (block.entries.size === 1 && !block.inline) {
17637
+ after.splice(block.key, 1);
17638
+ if (block.key > 0 && after[block.key - 1] === "" && (after[block.key] ?? "") === "") after.splice(block.key, 1);
17639
+ }
17640
+ breaks.push({
17641
+ file: WORKSPACE,
17642
+ line: own.index + 1,
17643
+ message: `The override "${selector}" ends: ${LOCKFILE} has no ${override.parent}. Remove it (${override.end}).`,
17644
+ edits: [{
17645
+ file: WORKSPACE,
17646
+ before: text,
17647
+ after: after.join(eol)
17648
+ }]
17649
+ });
17650
+ }
17651
+ }
17652
+ return breaks;
17653
+ }
17654
+ };
17338
17655
  // src/rules/version-title.ts
17339
17656
  /**
17340
17657
  * The rule `version-title`: a merge whose title names a version sets that version in a `package.json`.
@@ -17641,6 +17958,7 @@ const RULES = [
17641
17958
  pinnedGitDeps,
17642
17959
  workspaceProtocol,
17643
17960
  trustPolicy,
17961
+ securityOverrides,
17644
17962
  sourceMain,
17645
17963
  serviceRunMain,
17646
17964
  tsconfigTest,
@@ -17674,6 +17992,7 @@ const RULES = [
17674
17992
  licenseFile,
17675
17993
  coverageProvider,
17676
17994
  packNoBuildinfo,
17995
+ publishTextSafe,
17677
17996
  exportsRequire,
17678
17997
  pagesSite,
17679
17998
  siteCheckInCi,
@@ -18575,6 +18894,6 @@ function runHook(args, io) {
18575
18894
  git: (gitArgs) => runGit(io.cwd, gitArgs)
18576
18895
  }, io);
18577
18896
  }
18578
- export { unreleasedChangeRule as $, specifiersOf as $n, messageOf as $t, typedFiles as A, ACTIONS_COMMIT as An, lineNameHit as At, roadmapParses as B, DEPENDENCY_FIELDS as Bn, apiReportScript as Bt, versionTitle as C, setupCue as Cn, privatePatterns as Ct, typedScripts as D, securityCallers as Dn, firstNameMatch as Dt, trustPolicy as E, SECURITY_TIMEOUT_MINUTES as En, PrivateNameListError as Et, HOME_TIMEOUT_MS as F, gateAfterCancel as Fn, noBuildOutput as Ft, publishedMinor as G, inFolder as Gn, mitText as Gt, releaseFiles as H, cleanPath as Hn, authorOf as Ht, blockHash as I, readAction as In, REAL_COMPARE as It, NPM_REGISTRY as J, matchesAny as Jn, moduleMessage as Jt, publishedMinorRule as K, keyLine as Kn, repositoryIsPublic as Kt, githubFetch as L, readWorkflow as Ln, hasImportMetaMain as Lt, isSourcePath as M, gateTrigger as Mn, nameMatches as Mt, pathsOf as N, prPathFilters as Nn, parsePrivateNames as Nt, configsOfScript as O, securityOneJob as On, isAllowedHit as Ot, sourceMain as P, summaryName as Pn, pathNameHit as Pt, unreleasedChange as Q, runGit as Qn, homePackage as Qt, sharedDocsRule as R, STRICT_OPTIONS as Rn, mainCheck as Rt, setVersions as S, sharedCi as Sn, privateNamesFile as St, TRAIN_SCOPES as T, SECURITY_SCAN_INPUTS as Tn, PRIVATE_NAME_LIST as Tt, lockedVersions as U, codePackages as Un, licenseFile as Ut, requiredScripts as V, RULE_WARN_DAYS as Vn, LICENSE_TEXTS as Vt, minorOf as W, hasFile as Wn, licenseFileOf as Wt, UNSHIPPED_FILES as X, readJsonc as Xn, modulesOf as Xt, SHIPPED_FIELDS as Y, parseJsonc as Yn, moduleUses as Yt, npmLookup as Z, replaceLine as Zn, declaredName as Zt, workspaceProtocol as _, tsconfigTest as _n, PRIVATE_NAMES_FILE_CONFIG as _t, listRules as a, MAP_RULE as an, pagesAfterRelease as at, yamlFaults as b, SHARED_WORKFLOWS as bn, invalidPatternBreaks as bt, runCli as c, mapText as cn, scheduleMinute as ct, HOOK_MARKER as d, npmNames as dn, pagesCalls as dt, repoOf as en, defaultOptions as er, pipeFails as et, NO_READ_LINE as f, readOverlay as fn, pagesSite as ft, RULES as g, hasTests as gn, HOME_PATTERNS as gt, prePush as h, serviceRunMain as hn, DEFAULT_ALLOWED as ht, formatResult as i, HOMES as in, siteCheckInCi as it, testsRequired as j, convertGate as jn, lineNameHits as jt, scriptsOf as k, withOneJob as kn, isCommonUse as kt, runFix as l, mergeHomes as ln, pushMainOnly as lt, installHook as m, runCalls as mn, packNoBuildinfo as mt, annotations as n, signaturesOf as nn, isPinned as nt, readConfig as o, findHomes as on, repositoryOfRemote as ot, PRE_PUSH_HOOK as p, SERVICE_PACKAGE as pn, exportsRequire as pt, reachOf as q, lineOf as qn, homeModule as qt, createContext as r, HOME_EXPORTS as rn, pinnedGitDeps as rt, runChecks as s, mapMarkdown as sn, runnerBudget as st, USAGE as t, reposOf as tn, parseConfig as tr, isGitSpecifier as tt, summaryMarkdown as u, npmDrift as un, PAGES_WORKFLOWS as ut, GITHUB_YAML as v, SHARED_ACTIONS as vn, PRIVATE_NAMES_FILE_VARIABLE as vt, IGNORE_AFTER as w, SECURITY_SCAN_COMMIT as wn, privateTextBreaks as wt, namedVersions as x, callsSharedCi as xn, noLocalPaths as xt, workflowParses as y, SHARED_CI as yn, PRIVATE_PATTERNS_VARIABLE as yt, roadmapOfLine as z, cuePreset as zn, coverageProvider as zt };
18897
+ export { unreleasedChangeRule as $, runGit as $n, homePackage as $t, typedFiles as A, withOneJob as An, isCommonUse as At, roadmapParses as B, cuePreset as Bn, coverageProvider as Bt, versionTitle as C, sharedCi as Cn, privateNamesFile as Ct, typedScripts as D, SECURITY_TIMEOUT_MINUTES as Dn, PrivateNameListError as Dt, trustPolicy as E, SECURITY_SCAN_INPUTS as En, PRIVATE_NAME_LIST as Et, HOME_TIMEOUT_MS as F, summaryName as Fn, pathNameHit as Ft, publishedMinor as G, hasFile as Gn, licenseFileOf as Gt, releaseFiles as H, RULE_WARN_DAYS as Hn, LICENSE_TEXTS as Ht, blockHash as I, gateAfterCancel as In, noBuildOutput as It, NPM_REGISTRY as J, lineOf as Jn, homeModule as Jt, publishedMinorRule as K, inFolder as Kn, mitText as Kt, githubFetch as L, readAction as Ln, REAL_COMPARE as Lt, isSourcePath as M, convertGate as Mn, lineNameHits as Mt, pathsOf as N, gateTrigger as Nn, nameMatches as Nt, configsOfScript as O, securityCallers as On, firstNameMatch as Ot, sourceMain as P, prPathFilters as Pn, parsePrivateNames as Pt, unreleasedChange as Q, replaceLine as Qn, declaredName as Qt, sharedDocsRule as R, readWorkflow as Rn, hasImportMetaMain as Rt, setVersions as S, callsSharedCi as Sn, noLocalPaths as St, TRAIN_SCOPES as T, SECURITY_SCAN_COMMIT as Tn, privateTextBreaks as Tt, lockedVersions as U, cleanPath as Un, authorOf as Ut, requiredScripts as V, DEPENDENCY_FIELDS as Vn, apiReportScript as Vt, minorOf as W, codePackages as Wn, licenseFile as Wt, UNSHIPPED_FILES as X, parseJsonc as Xn, moduleUses as Xt, SHIPPED_FIELDS as Y, matchesAny as Yn, moduleMessage as Yt, npmLookup as Z, readJsonc as Zn, modulesOf as Zt, workspaceProtocol as _, hasTests as _n, HOME_PATTERNS as _t, listRules as a, HOMES as an, pagesAfterRelease as at, yamlFaults as b, SHARED_CI as bn, PRIVATE_PATTERNS_VARIABLE as bt, runCli as c, mapMarkdown as cn, scheduleMinute as ct, HOOK_MARKER as d, npmDrift as dn, pagesCalls as dt, messageOf as en, specifiersOf as er, pipeFails as et, NO_READ_LINE as f, npmNames as fn, pagesSite as ft, RULES as g, serviceRunMain as gn, DEFAULT_ALLOWED as gt, prePush as h, runCalls as hn, packNoBuildinfo as ht, formatResult as i, HOME_EXPORTS as in, siteCheckInCi as it, testsRequired as j, ACTIONS_COMMIT as jn, lineNameHit as jt, scriptsOf as k, securityOneJob as kn, isAllowedHit as kt, runFix as l, mapText as ln, pushMainOnly as lt, installHook as m, SERVICE_PACKAGE as mn, publishTextSafe as mt, annotations as n, reposOf as nn, parseConfig as nr, isPinned as nt, readConfig as o, MAP_RULE as on, repositoryOfRemote as ot, PRE_PUSH_HOOK as p, readOverlay as pn, exportsRequire as pt, reachOf as q, keyLine as qn, repositoryIsPublic as qt, createContext as r, signaturesOf as rn, pinnedGitDeps as rt, runChecks as s, findHomes as sn, runnerBudget as st, USAGE as t, repoOf as tn, defaultOptions as tr, isGitSpecifier as tt, summaryMarkdown as u, mergeHomes as un, PAGES_WORKFLOWS as ut, GITHUB_YAML as v, tsconfigTest as vn, PRIVATE_NAMES_FILE_CONFIG as vt, IGNORE_AFTER as w, setupCue as wn, privatePatterns as wt, namedVersions as x, SHARED_WORKFLOWS as xn, invalidPatternBreaks as xt, workflowParses as y, SHARED_ACTIONS as yn, PRIVATE_NAMES_FILE_VARIABLE as yt, roadmapOfLine as z, STRICT_OPTIONS as zn, mainCheck as zt };
18579
18898
 
18580
- //# sourceMappingURL=run-C0vL-9On.js.map
18899
+ //# sourceMappingURL=run-BWdt9YOd.js.map