@mark1russell7/conventions 0.40.0 → 0.40.2

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
@@ -73,6 +73,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
73
73
  | `setup-cue` | No workflow or action installs the cue CLI with its own command (a download of a release asset of `cue-lang/cue`, or `go install`). A caller of `reusable-ci.yml` gives the input `cue-version`. Another job uses the action `setup-cue` of the template. The action installs the CLI from a cache, or with retries and a sha256 check. On 2026-11-08, a 504 of GitHub failed each bare `curl` of the CLI. |
74
74
  | `gate-trigger` | No workflow has `paths` or `paths-ignore` on `on.pull_request` or `on.pull_request_target`. The ruleset needs the summary check `<Name> OK` of each gate, and a workflow with a path filter does not start on each pull request. Then its check is not there, the ruleset cannot ask for it, and a pull request can merge before the gate ends. A gate uses the actions `changes` and `gate-summary` of the template (`CI.md`, "A gate with paths"). | private `gate-trigger` (STRATEGY.md, 2026-11-02). |
75
75
  | `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
+ | `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). |
76
77
  | `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). |
77
78
  | `pages-site` | A public repository has a workflow that calls the Pages workflow of the template (`mark1russell7/template/.github/workflows/reusable-pages.yml`, any ref), and the call deploys. A call with `deploy: false` makes a test site only. In a GitHub Actions run, the event file tells if the repository is public. Outside a run, the rule shows `skip`. On 2026-11-02 eight public repositories had no site with a Releases page and a Status page. | vex, crawler, client, coeval `pages.yml`. |
78
79
  | `pages-after-release` | A repository with a public package and a release workflow starts its Pages workflow after a release and on each day. `conventions fix` writes the triggers. A workflow with its own deploy steps needs a person. |
package/build/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as runCli } from "./run-D9LKCI3y.js";
2
+ import { c as runCli } from "./run-DOzDuNOI.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  // src/cli.ts
5
5
  try {
package/build/index.d.ts CHANGED
@@ -488,6 +488,7 @@ export declare function invalidPatternBreaks(patterns: readonly PrivatePattern[]
488
488
  */
489
489
  export declare function privateTextBreaks(name: string, text: string, privates: PrivateSources, options?: TextBreakOptions): Break[];
490
490
  export declare const noLocalPaths: Rule;
491
+ export declare const packNoBuildinfo: Rule;
491
492
  export declare const apiReportScript: Rule;
492
493
  export declare const pagesAfterRelease: Rule;
493
494
  /** The Pages workflow of the template, as a call from another repository and as a call from the template itself. */
@@ -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-package.ts","../src/rules/license-file.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.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,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qBAMxC,WAAY,gBAAgB;;qBAG5B,YAAa;;wBAGV,WAAW,cAAc;;;;;;wBASzB,WAAW;;wBA2BX,UAAU;;wBAUV,OA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cAAc,QAAQ,mBAAmB,UAAS,KAAK,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;;wBAsDG,OAAO,yBAAyB,IAAI;;qBC9UvC;;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-package.ts","../src/rules/license-file.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/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.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,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qB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, An as RULE_WARN_DAYS, At as nameMatches, B as roadmapParses, Bn as replaceLine, Bt as licenseFileOf, C as versionTitle, Cn as summaryName, Ct as PRIVATE_NAME_LIST, D as typedScripts, Dn as STRICT_OPTIONS, Dt as isCommonUse, E as trustPolicy, En as readWorkflow, Et as isAllowedHit, F as HOME_TIMEOUT_MS, Fn as keyLine, Ft as hasImportMetaMain, G as publishedMinor, Gt as messageOf, H as releaseFiles, Hn as specifiersOf, Ht as repositoryIsPublic, I as blockHash, In as lineOf, It as mainCheck, J as NPM_REGISTRY, Jt as HOMES, K as publishedMinorRule, Kt as repoOf, L as githubFetch, Ln as matchesAny, Lt as LICENSE_TEXTS, M as isSourcePath, Mn as codePackages, Mt as pathNameHit, N as pathsOf, Nn as hasFile, Nt as noBuildOutput, O as configsOfScript, On as cuePreset, Ot as lineNameHit, P as sourceMain, Pn as inFolder, Pt as REAL_COMPARE, Q as unreleasedChange, Qt as mapText, R as sharedDocsRule, Rn as parseJsonc, Rt as authorOf, S as setVersions, Sn as prPathFilters, St as privateTextBreaks, T as TRAIN_SCOPES, Tn as readAction, Tt as firstNameMatch, U as lockedVersions, Un as defaultOptions, Ut as declaredName, V as requiredScripts, Vn as runGit, Vt as mitText, W as minorOf, Wn as parseConfig, Wt as homePackage, X as UNSHIPPED_FILES, Xt as findHomes, Y as SHIPPED_FIELDS, Yt as MAP_RULE, Z as npmLookup, Zt as mapMarkdown, _ as workspaceProtocol, _n as securityOneJob, _t as PRIVATE_PATTERNS_VARIABLE, a as listRules, an as hasTests, at as repositoryOfRemote, b as yamlFaults, bn as convertGate, bt as privateNamesFile, c as runCli, cn as SHARED_CI, ct as pushMainOnly, d as HOOK_MARKER, dn as sharedCi, dt as pagesSite, en as readOverlay, et as pipeFails, f as NO_READ_LINE, fn as setupCue, ft as apiReportScript, g as RULES, gn as securityCallers, gt as PRIVATE_NAMES_FILE_VARIABLE, h as prePush, hn as SECURITY_TIMEOUT_MINUTES, ht as PRIVATE_NAMES_FILE_CONFIG, i as formatResult, in as serviceRunMain, it as pagesAfterRelease, j as testsRequired, jn as cleanPath, jt as parsePrivateNames, k as scriptsOf, kn as DEPENDENCY_FIELDS, kt as lineNameHits, l as runFix, ln as SHARED_WORKFLOWS, lt as PAGES_WORKFLOWS, m as installHook, mn as SECURITY_SCAN_INPUTS, mt as HOME_PATTERNS, n as annotations, nn as SERVICE_PACKAGE, nt as isPinned, o as readConfig, on as tsconfigTest, ot as runnerBudget, p as PRE_PUSH_HOOK, pn as SECURITY_SCAN_COMMIT, pt as DEFAULT_ALLOWED, q as reachOf, qt as signaturesOf, r as createContext, rn as runCalls, rt as pinnedGitDeps, s as runChecks, sn as SHARED_ACTIONS, st as scheduleMinute, t as USAGE, tn as HOME_EXPORTS, tt as isGitSpecifier, u as summaryMarkdown, un as callsSharedCi, ut as pagesCalls, v as GITHUB_YAML, vn as withOneJob, vt as invalidPatternBreaks, w as IGNORE_AFTER, wn as gateAfterCancel, wt as PrivateNameListError, x as namedVersions, xn as gateTrigger, xt as privatePatterns, y as workflowParses, yn as ACTIONS_COMMIT, yt as noLocalPaths, z as roadmapOfLine, zn as readJsonc, zt as licenseFile } from "./run-D9LKCI3y.js";
1
+ import { $ as unreleasedChangeRule, $t as mapText, A as typedFiles, An as DEPENDENCY_FIELDS, At as lineNameHits, B as roadmapParses, Bn as readJsonc, Bt as licenseFile, C as versionTitle, Cn as prPathFilters, Ct as privateTextBreaks, D as typedScripts, Dn as readWorkflow, Dt as isAllowedHit, E as trustPolicy, En as readAction, Et as firstNameMatch, F as HOME_TIMEOUT_MS, Fn as inFolder, Ft as REAL_COMPARE, G as publishedMinor, Gn as parseConfig, Gt as homePackage, H as releaseFiles, Hn as runGit, Ht as mitText, I as blockHash, In as keyLine, It as hasImportMetaMain, J as NPM_REGISTRY, Jt as signaturesOf, K as publishedMinorRule, Kt as messageOf, L as githubFetch, Ln as lineOf, Lt as mainCheck, M as isSourcePath, Mn as cleanPath, Mt as parsePrivateNames, N as pathsOf, Nn as codePackages, Nt as pathNameHit, O as configsOfScript, On as STRICT_OPTIONS, Ot as isCommonUse, P as sourceMain, Pn as hasFile, Pt as noBuildOutput, Q as unreleasedChange, Qt as mapMarkdown, R as sharedDocsRule, Rn as matchesAny, Rt as LICENSE_TEXTS, S as setVersions, Sn as gateTrigger, St as privatePatterns, T as TRAIN_SCOPES, Tn as gateAfterCancel, Tt as PrivateNameListError, U as lockedVersions, Un as specifiersOf, Ut as repositoryIsPublic, V as requiredScripts, Vn as replaceLine, Vt as licenseFileOf, W as minorOf, Wn as defaultOptions, Wt as declaredName, X as UNSHIPPED_FILES, Xt as MAP_RULE, Y as SHIPPED_FIELDS, Yt as HOMES, Z as npmLookup, Zt as findHomes, _ as workspaceProtocol, _n as securityCallers, _t as PRIVATE_NAMES_FILE_VARIABLE, a as listRules, an as serviceRunMain, at as repositoryOfRemote, b as yamlFaults, bn as ACTIONS_COMMIT, bt as noLocalPaths, c as runCli, cn as SHARED_ACTIONS, ct as pushMainOnly, d as HOOK_MARKER, dn as callsSharedCi, dt as pagesSite, en as mergeHomes, et as pipeFails, f as NO_READ_LINE, fn as sharedCi, ft as apiReportScript, g as RULES, gn as SECURITY_TIMEOUT_MINUTES, gt as PRIVATE_NAMES_FILE_CONFIG, h as prePush, hn as SECURITY_SCAN_INPUTS, ht as HOME_PATTERNS, i as formatResult, in as runCalls, it as pagesAfterRelease, j as testsRequired, jn as RULE_WARN_DAYS, jt as nameMatches, k as scriptsOf, kn as cuePreset, kt as lineNameHit, l as runFix, ln as SHARED_CI, lt as PAGES_WORKFLOWS, m as installHook, mn as SECURITY_SCAN_COMMIT, mt as DEFAULT_ALLOWED, n as annotations, nn as HOME_EXPORTS, nt as isPinned, o as readConfig, on as hasTests, ot as runnerBudget, p as PRE_PUSH_HOOK, pn as setupCue, pt as packNoBuildinfo, q as reachOf, qt as repoOf, r as createContext, rn as SERVICE_PACKAGE, rt as pinnedGitDeps, s as runChecks, sn as tsconfigTest, st as scheduleMinute, t as USAGE, tn as readOverlay, tt as isGitSpecifier, u as summaryMarkdown, un as SHARED_WORKFLOWS, ut as pagesCalls, v as GITHUB_YAML, vn as securityOneJob, vt as PRIVATE_PATTERNS_VARIABLE, w as IGNORE_AFTER, wn as summaryName, wt as PRIVATE_NAME_LIST, x as namedVersions, xn as convertGate, xt as privateNamesFile, y as workflowParses, yn as withOneJob, yt as invalidPatternBreaks, z as roadmapOfLine, zn as parseJsonc, zt as authorOf } from "./run-DOzDuNOI.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, createContext, cuePreset, declaredName, defaultOptions, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasTests, 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, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmLookup, npmUrl, 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, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, signaturesOf, 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, createContext, cuePreset, declaredName, defaultOptions, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasTests, 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, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmLookup, 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, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, signaturesOf, 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
@@ -2,7 +2,7 @@ import { a as relativePath, i as packageFolders, r as globToRegExp, t as byCode
2
2
  import { createRequire } from "node:module";
3
3
  import { spawnSync } from "node:child_process";
4
4
  import { appendFileSync, chmodSync, existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
5
- import { basename, dirname, extname, join, posix, relative, resolve } from "node:path";
5
+ import { basename, dirname, extname, isAbsolute, join, posix, relative, resolve } from "node:path";
6
6
  import { createHash } from "node:crypto";
7
7
  import { parseAllDocuments } from "yaml";
8
8
  // src/config.ts
@@ -8342,7 +8342,7 @@ const HOMES = [
8342
8342
  {
8343
8343
  area: "test-generation",
8344
8344
  title: "Test helpers and test generation",
8345
- covers: "property tests on fast-check, pairwise and covering arrays, metamorphic relations, chaos and load schedules, shared test fixtures",
8345
+ covers: "property tests on fast-check, pairwise and covering arrays, metamorphic relations, chaos and load schedules, shared test fixtures, the capture of the OpenTelemetry SDK and the propagation gate for tests",
8346
8346
  packages: [],
8347
8347
  repo: "mark1russell7/rigor",
8348
8348
  state: "planned",
@@ -8365,9 +8365,13 @@ const HOMES = [
8365
8365
  "soak",
8366
8366
  "stress",
8367
8367
  "throughput",
8368
- "shrink"
8368
+ "shrink",
8369
+ "capture",
8370
+ "in-memory",
8371
+ "exporter",
8372
+ "testkit"
8369
8373
  ],
8370
- note: "@mark1russell7/vex-testkit is only for Vex domains. A fake shell for tests is in @procedures/shell."
8374
+ note: "@mark1russell7/vex-testkit is only for Vex domains. A fake shell for tests is in @procedures/shell. The capture of the OpenTelemetry SDK for tests (captureTelemetry) and the propagation gate are in @mark1russell7/rigor-testkit, entries /otel and /propagation."
8371
8375
  },
8372
8376
  {
8373
8377
  area: "exact-math",
@@ -10056,6 +10060,226 @@ const noLocalPaths = {
10056
10060
  return breaks;
10057
10061
  }
10058
10062
  };
10063
+ // src/tsconfig.ts
10064
+ /**
10065
+ * The compiler options of a tsconfig after its `extends` chain, as the rules read them.
10066
+ */
10067
+ /**
10068
+ * This function gives the value of the compiler option `name` that a tsconfig gets from the configs it extends. It gives
10069
+ * `null` when no config of the chain sets it. It gives `undefined` when it cannot read a config of the chain, for example
10070
+ * a package that is not installed.
10071
+ */
10072
+ function inheritedOption(tsconfig, name, seen = /* @__PURE__ */ new Set()) {
10073
+ const json = readJsonc(tsconfig);
10074
+ if (json === void 0 || seen.has(tsconfig)) return void 0;
10075
+ const specs = Array.isArray(json.extends) ? json.extends : json.extends === void 0 ? [] : [json.extends];
10076
+ let found = null;
10077
+ for (const spec of specs) {
10078
+ if (typeof spec !== "string") return void 0;
10079
+ let file;
10080
+ try {
10081
+ file = spec.startsWith(".") || spec.startsWith("/") ? resolve(dirname(tsconfig), spec) : createRequire(tsconfig).resolve(spec);
10082
+ } catch {
10083
+ return;
10084
+ }
10085
+ if (!existsSync(file) && existsSync(`${file}.json`)) file = `${file}.json`;
10086
+ const parent = readJsonc(file);
10087
+ if (parent === void 0) return void 0;
10088
+ const own = parent.compilerOptions?.[name];
10089
+ const value = own === void 0 ? inheritedOption(file, name, /* @__PURE__ */ new Set([...seen, tsconfig])) : {
10090
+ value: own,
10091
+ file
10092
+ };
10093
+ if (value === void 0) return void 0;
10094
+ if (value !== null) found = value;
10095
+ }
10096
+ return found;
10097
+ }
10098
+ /**
10099
+ * This function gives the value of the compiler option `name` of a tsconfig. It is its own value, or else the value from
10100
+ * the configs it extends. It gives `null` when no config sets it, and `undefined` when it cannot read a config.
10101
+ */
10102
+ function compilerOption(tsconfig, name) {
10103
+ const json = readJsonc(tsconfig);
10104
+ if (json === void 0) return void 0;
10105
+ const own = json.compilerOptions?.[name];
10106
+ return own === void 0 ? inheritedOption(tsconfig, name) : {
10107
+ value: own,
10108
+ file: tsconfig
10109
+ };
10110
+ }
10111
+ /**
10112
+ * This function gives the absolute path of a path option. A `${configDir}` is the folder of the tsconfig `tsconfig`. Each
10113
+ * other relative path is relative to the config that sets it.
10114
+ */
10115
+ function optionPath(tsconfig, option) {
10116
+ const value = option.value;
10117
+ return value.startsWith("${configDir}") ? resolve(dirname(tsconfig), `.${value.slice(12)}`) : resolve(dirname(option.file), value);
10118
+ }
10119
+ /**
10120
+ * This function gives the absolute path of the build info file that tsc writes for a tsconfig, by the rules of tsc. It
10121
+ * gives `null` when tsc writes no build info file: `incremental` and `composite` are both off. It gives `undefined` when
10122
+ * it cannot read a config of the chain.
10123
+ */
10124
+ function buildInfoFile(tsconfig) {
10125
+ const read = (name) => compilerOption(tsconfig, name);
10126
+ const incremental = read("incremental");
10127
+ const composite = read("composite");
10128
+ if (incremental === void 0 || composite === void 0) return void 0;
10129
+ if (incremental?.value !== true && composite?.value !== true) return null;
10130
+ const paths = {};
10131
+ for (const name of [
10132
+ "tsBuildInfoFile",
10133
+ "outFile",
10134
+ "outDir",
10135
+ "rootDir"
10136
+ ]) {
10137
+ const option = read(name);
10138
+ if (option === void 0) return void 0;
10139
+ paths[name] = option !== null && typeof option.value === "string" ? optionPath(tsconfig, {
10140
+ file: option.file,
10141
+ value: option.value
10142
+ }) : null;
10143
+ }
10144
+ if (paths["tsBuildInfoFile"]) return paths["tsBuildInfoFile"];
10145
+ const withoutExtension = (path) => path.replace(/\.[^./\\]*$/, "");
10146
+ if (paths["outFile"]) return `${withoutExtension(paths["outFile"])}.tsbuildinfo`;
10147
+ const config = withoutExtension(resolve(tsconfig));
10148
+ const outDir = paths["outDir"];
10149
+ const rootDir = paths["rootDir"];
10150
+ return `${outDir ? rootDir ? resolve(outDir, relative(rootDir, config)) : join(outDir, basename(config)) : config}.tsbuildinfo`;
10151
+ }
10152
+ // src/rules/pack-no-buildinfo.ts
10153
+ /**
10154
+ * The rule `pack-no-buildinfo`: npm does not pack the build info file of tsc. A public package that writes it in a
10155
+ * folder of its field `files` has the negation `!<path>` there.
10156
+ */
10157
+ /** The names of the tsconfig files of a package folder. */
10158
+ const TSCONFIG = /^tsconfig(?:\.[\w-]+)?\.json$/;
10159
+ /** This function tells if an entry of the field `files` (without `!`) takes the path: the path, a folder of it, or a glob. */
10160
+ function entryTakes(entry, path) {
10161
+ let clean = cleanPath(entry);
10162
+ while (clean.endsWith("/")) clean = clean.slice(0, -1);
10163
+ if (clean === "") return false;
10164
+ return path === clean || path.startsWith(`${clean}/`) || globToRegExp(clean).test(path);
10165
+ }
10166
+ /**
10167
+ * This function tells if npm packs `path` (relative to the package, with `/`) by the field `files`. A negation `!<glob>`
10168
+ * removes a path in each place of the list (npm 11 packs `["!a/b", "a"]` as `["a", "!a/b"]`). It gives the index of
10169
+ * the first entry that takes the path, or -1 when npm does not pack it.
10170
+ */
10171
+ function packedBy(files, path) {
10172
+ if (files.filter((entry) => typeof entry === "string").some((entry) => entry.startsWith("!") && entryTakes(entry.slice(1), path))) return -1;
10173
+ return files.findIndex((entry) => typeof entry === "string" && !entry.startsWith("!") && entryTakes(entry, path));
10174
+ }
10175
+ /**
10176
+ * This function gives the text of `package.json` with the entry `negation` after the entry `index` of the field
10177
+ * `files`, in the format of the file. It gives undefined when it cannot find the field, or when the changed text does
10178
+ * not parse as the manifest with the new entry.
10179
+ */
10180
+ function withNegation(pkg, index, negation) {
10181
+ const files = pkg.manifest["files"];
10182
+ if (!Array.isArray(files)) return void 0;
10183
+ const expected = JSON.stringify({
10184
+ ...pkg.manifest,
10185
+ files: [
10186
+ ...files.slice(0, index + 1),
10187
+ negation,
10188
+ ...files.slice(index + 1)
10189
+ ]
10190
+ });
10191
+ const eol = pkg.text.includes("\r\n") ? "\r\n" : "\n";
10192
+ for (const field of pkg.text.matchAll(/"files"\s*:\s*\[/g)) {
10193
+ const open = (field.index ?? 0) + field[0].length;
10194
+ let at = open;
10195
+ let end = -1;
10196
+ for (let item = 0; item <= index; item++) {
10197
+ const match = /^[\s,]*("(?:[^"\\]|\\.)*")/.exec(pkg.text.slice(at));
10198
+ if (match === null) break;
10199
+ at += match[0].length;
10200
+ if (item === index) end = at;
10201
+ }
10202
+ if (end < 0) continue;
10203
+ const multiline = (/^\s*/.exec(pkg.text.slice(open))?.[0] ?? "").includes("\n");
10204
+ const indent = /^[ \t]*/.exec(pkg.text.slice(pkg.text.lastIndexOf("\n", end - 1) + 1))?.[0] ?? "";
10205
+ const separator = multiline ? `,${eol}${indent}` : ", ";
10206
+ const after = `${pkg.text.slice(0, end)}${separator}${JSON.stringify(negation)}${pkg.text.slice(end)}`;
10207
+ try {
10208
+ if (JSON.stringify(JSON.parse(after)) === expected) return after;
10209
+ } catch {}
10210
+ }
10211
+ }
10212
+ const packNoBuildinfo = {
10213
+ id: "pack-no-buildinfo",
10214
+ title: "npm does not pack the build info file of tsc: a public package that writes it in a folder of `files` has the negation `!<path>` there.",
10215
+ reason: "The build info file changes on each build, also after a bump of a dev dependency. The release stops when the packed files of an unchanged version differ from npm. On 2026-11-09 the main of splay-react went red, because only `dist/.tsbuildinfo` differed. The cue lib preset writes this file in `dist`, and `files` packs `dist`.",
10216
+ fix: "Add the negation of the path after its folder in `files`, for example `\"files\": [\"dist\", \"!dist/.tsbuildinfo\"]`. `conventions fix` writes it. Keep the file in `dist`: a `tsc -b` after a clean of `dist` must build again. A package with no field `files` packs each file of its folder: give it the field. A changed list of packed files needs a PATCH version.",
10217
+ sources: [
10218
+ {
10219
+ repo: "splay-react",
10220
+ rule: "pack-no-buildinfo",
10221
+ doc: "package.json (files, 1.0.2)"
10222
+ },
10223
+ {
10224
+ repo: "splay",
10225
+ rule: "pack-no-buildinfo",
10226
+ doc: "package.json (files)"
10227
+ },
10228
+ {
10229
+ repo: "cue",
10230
+ rule: "pack-no-buildinfo",
10231
+ doc: "npm/package/ts.cue (files, 2.1.3)"
10232
+ }
10233
+ ],
10234
+ options: {},
10235
+ failsFrom: "2026-11-25",
10236
+ check(context) {
10237
+ const breaks = [];
10238
+ const unread = [];
10239
+ const all = [context.rootPackage, ...codePackages(context)];
10240
+ for (const pkg of all.filter((item, index) => all.findIndex((other) => other.file === item.file) === index)) {
10241
+ if (pkg.manifest["private"] === true) continue;
10242
+ const name = String(pkg.manifest["name"] ?? pkg.folder);
10243
+ const seen = /* @__PURE__ */ new Set();
10244
+ for (const config of readdirSync(pkg.dir).filter((file) => TSCONFIG.test(file)).sort()) {
10245
+ const found = buildInfoFile(join(pkg.dir, config));
10246
+ if (found === void 0) {
10247
+ unread.push(`${pkg.folder === "" ? "" : `${pkg.folder}/`}${config}`);
10248
+ continue;
10249
+ }
10250
+ if (found === null) continue;
10251
+ const path = relative(pkg.dir, found).replace(/\\/g, "/");
10252
+ if (path === "" || path.startsWith("../") || isAbsolute(path) || path.split("/").includes("node_modules") || seen.has(path)) continue;
10253
+ seen.add(path);
10254
+ const files = pkg.manifest["files"];
10255
+ const line = lineOf(pkg.text, "\"files\"");
10256
+ if (!Array.isArray(files)) {
10257
+ breaks.push({
10258
+ file: pkg.file,
10259
+ message: `${name} has no field "files", so npm packs ${path}, the build info file of ${config}.`,
10260
+ fix: `Give ${name} the field "files" with the folders that it publishes, and "!${path}".`
10261
+ });
10262
+ continue;
10263
+ }
10264
+ const index = packedBy(files, path);
10265
+ if (index < 0) continue;
10266
+ const after = withNegation(pkg, index, `!${path}`);
10267
+ breaks.push({
10268
+ file: pkg.file,
10269
+ ...line === void 0 ? {} : { line },
10270
+ message: `npm packs ${path}, the build info file of ${config}, by the entry "${String(files[index])}" of "files" of ${name}.`,
10271
+ ...after === void 0 ? { fix: `Add "!${path}" after "${String(files[index])}" in "files".` } : { edits: [{
10272
+ file: pkg.file,
10273
+ before: pkg.text,
10274
+ after
10275
+ }] }
10276
+ });
10277
+ }
10278
+ }
10279
+ if (breaks.length === 0 && unread.length > 0) return { skipped: `The rule cannot read the extends chain of ${unread.join(", ")}. Install the dependencies.` };
10280
+ return breaks;
10281
+ }
10282
+ };
10059
10283
  // src/rules/api-report-script.ts
10060
10284
  /**
10061
10285
  * The rule `api-report-script`: a repository with a public package has the root script that checks its API reports.
@@ -12811,37 +13035,6 @@ const ROOT_DIRS = /* @__PURE__ */ new Set([
12811
13035
  "${configDir}/"
12812
13036
  ]);
12813
13037
  /**
12814
- * This function gives the value of the compiler option `name` that a tsconfig gets from the configs it extends. It gives
12815
- * `null` when no config of the chain sets it. It gives `undefined` when it cannot read a config of the chain, for example
12816
- * a package that is not installed.
12817
- */
12818
- function inheritedOption(tsconfig, name, seen = /* @__PURE__ */ new Set()) {
12819
- const json = readJsonc(tsconfig);
12820
- if (json === void 0 || seen.has(tsconfig)) return void 0;
12821
- const specs = Array.isArray(json.extends) ? json.extends : json.extends === void 0 ? [] : [json.extends];
12822
- let found = null;
12823
- for (const spec of specs) {
12824
- if (typeof spec !== "string") return void 0;
12825
- let file;
12826
- try {
12827
- file = spec.startsWith(".") || spec.startsWith("/") ? resolve(dirname(tsconfig), spec) : createRequire(tsconfig).resolve(spec);
12828
- } catch {
12829
- return;
12830
- }
12831
- if (!existsSync(file) && existsSync(`${file}.json`)) file = `${file}.json`;
12832
- const parent = readJsonc(file);
12833
- if (parent === void 0) return void 0;
12834
- const own = parent.compilerOptions?.[name];
12835
- const value = own === void 0 ? inheritedOption(file, name, /* @__PURE__ */ new Set([...seen, tsconfig])) : {
12836
- value: own,
12837
- file
12838
- };
12839
- if (value === void 0) return void 0;
12840
- if (value !== null) found = value;
12841
- }
12842
- return found;
12843
- }
12844
- /**
12845
13038
  * This function tells if a tsconfig gets a `rootDir` other than its folder from a config that it extends. It also says
12846
13039
  * yes when it cannot read that config. A `${configDir}` is the folder of the tsconfig, the other paths are relative to
12847
13040
  * the config that sets them.
@@ -12850,8 +13043,10 @@ function inheritsSubfolder(tsconfig) {
12850
13043
  const inherited = inheritedOption(tsconfig, "rootDir");
12851
13044
  if (inherited === null) return false;
12852
13045
  if (inherited === void 0 || typeof inherited.value !== "string") return true;
12853
- const own = inherited.value;
12854
- return (own.startsWith("${configDir}") ? resolve(dirname(tsconfig), `.${own.slice(12)}`) : resolve(dirname(inherited.file), own)) !== resolve(dirname(tsconfig));
13046
+ return optionPath(tsconfig, {
13047
+ file: inherited.file,
13048
+ value: inherited.value
13049
+ }) !== resolve(dirname(tsconfig));
12855
13050
  }
12856
13051
  /**
12857
13052
  * This function gives the edit that adds the config files at the root of a package to its `tsconfig.test.json`. It adds
@@ -13586,6 +13781,7 @@ const RULES = [
13586
13781
  setupCue,
13587
13782
  homePackage,
13588
13783
  licenseFile,
13784
+ packNoBuildinfo,
13589
13785
  pagesSite,
13590
13786
  pagesAfterRelease,
13591
13787
  sharedDocs
@@ -14472,6 +14668,6 @@ function runHook(args, io) {
14472
14668
  git: (gitArgs) => runGit(io.cwd, gitArgs)
14473
14669
  }, io);
14474
14670
  }
14475
- export { unreleasedChangeRule as $, mergeHomes as $t, typedFiles as A, RULE_WARN_DAYS as An, nameMatches as At, roadmapParses as B, replaceLine as Bn, licenseFileOf as Bt, versionTitle as C, summaryName as Cn, PRIVATE_NAME_LIST as Ct, typedScripts as D, STRICT_OPTIONS as Dn, isCommonUse as Dt, trustPolicy as E, readWorkflow as En, isAllowedHit as Et, HOME_TIMEOUT_MS as F, keyLine as Fn, hasImportMetaMain as Ft, publishedMinor as G, messageOf as Gt, releaseFiles as H, specifiersOf as Hn, repositoryIsPublic as Ht, blockHash as I, lineOf as In, mainCheck as It, NPM_REGISTRY as J, HOMES as Jt, publishedMinorRule as K, repoOf as Kt, githubFetch as L, matchesAny as Ln, LICENSE_TEXTS as Lt, isSourcePath as M, codePackages as Mn, pathNameHit as Mt, pathsOf as N, hasFile as Nn, noBuildOutput as Nt, configsOfScript as O, cuePreset as On, lineNameHit as Ot, sourceMain as P, inFolder as Pn, REAL_COMPARE as Pt, unreleasedChange as Q, mapText as Qt, sharedDocsRule as R, parseJsonc as Rn, authorOf as Rt, setVersions as S, prPathFilters as Sn, privateTextBreaks as St, TRAIN_SCOPES as T, readAction as Tn, firstNameMatch as Tt, lockedVersions as U, defaultOptions as Un, declaredName as Ut, requiredScripts as V, runGit as Vn, mitText as Vt, minorOf as W, parseConfig as Wn, homePackage as Wt, UNSHIPPED_FILES as X, findHomes as Xt, SHIPPED_FIELDS as Y, MAP_RULE as Yt, npmLookup as Z, mapMarkdown as Zt, workspaceProtocol as _, securityOneJob as _n, PRIVATE_PATTERNS_VARIABLE as _t, listRules as a, hasTests as an, repositoryOfRemote as at, yamlFaults as b, convertGate as bn, privateNamesFile as bt, runCli as c, SHARED_CI as cn, pushMainOnly as ct, HOOK_MARKER as d, sharedCi as dn, pagesSite as dt, readOverlay as en, pipeFails as et, NO_READ_LINE as f, setupCue as fn, apiReportScript as ft, RULES as g, securityCallers as gn, PRIVATE_NAMES_FILE_VARIABLE as gt, prePush as h, SECURITY_TIMEOUT_MINUTES as hn, PRIVATE_NAMES_FILE_CONFIG as ht, formatResult as i, serviceRunMain as in, pagesAfterRelease as it, testsRequired as j, cleanPath as jn, parsePrivateNames as jt, scriptsOf as k, DEPENDENCY_FIELDS as kn, lineNameHits as kt, runFix as l, SHARED_WORKFLOWS as ln, PAGES_WORKFLOWS as lt, installHook as m, SECURITY_SCAN_INPUTS as mn, HOME_PATTERNS as mt, annotations as n, SERVICE_PACKAGE as nn, isPinned as nt, readConfig as o, tsconfigTest as on, runnerBudget as ot, PRE_PUSH_HOOK as p, SECURITY_SCAN_COMMIT as pn, DEFAULT_ALLOWED as pt, reachOf as q, signaturesOf as qt, createContext as r, runCalls as rn, pinnedGitDeps as rt, runChecks as s, SHARED_ACTIONS as sn, scheduleMinute as st, USAGE as t, HOME_EXPORTS as tn, isGitSpecifier as tt, summaryMarkdown as u, callsSharedCi as un, pagesCalls as ut, GITHUB_YAML as v, withOneJob as vn, invalidPatternBreaks as vt, IGNORE_AFTER as w, gateAfterCancel as wn, PrivateNameListError as wt, namedVersions as x, gateTrigger as xn, privatePatterns as xt, workflowParses as y, ACTIONS_COMMIT as yn, noLocalPaths as yt, roadmapOfLine as z, readJsonc as zn, licenseFile as zt };
14671
+ export { unreleasedChangeRule as $, mapText as $t, typedFiles as A, DEPENDENCY_FIELDS as An, lineNameHits as At, roadmapParses as B, readJsonc as Bn, licenseFile as Bt, versionTitle as C, prPathFilters as Cn, privateTextBreaks as Ct, typedScripts as D, readWorkflow as Dn, isAllowedHit as Dt, trustPolicy as E, readAction as En, firstNameMatch as Et, HOME_TIMEOUT_MS as F, inFolder as Fn, REAL_COMPARE as Ft, publishedMinor as G, parseConfig as Gn, homePackage as Gt, releaseFiles as H, runGit as Hn, mitText as Ht, blockHash as I, keyLine as In, hasImportMetaMain as It, NPM_REGISTRY as J, signaturesOf as Jt, publishedMinorRule as K, messageOf as Kt, githubFetch as L, lineOf as Ln, mainCheck as Lt, isSourcePath as M, cleanPath as Mn, parsePrivateNames as Mt, pathsOf as N, codePackages as Nn, pathNameHit as Nt, configsOfScript as O, STRICT_OPTIONS as On, isCommonUse as Ot, sourceMain as P, hasFile as Pn, noBuildOutput as Pt, unreleasedChange as Q, mapMarkdown as Qt, sharedDocsRule as R, matchesAny as Rn, LICENSE_TEXTS as Rt, setVersions as S, gateTrigger as Sn, privatePatterns as St, TRAIN_SCOPES as T, gateAfterCancel as Tn, PrivateNameListError as Tt, lockedVersions as U, specifiersOf as Un, repositoryIsPublic as Ut, requiredScripts as V, replaceLine as Vn, licenseFileOf as Vt, minorOf as W, defaultOptions as Wn, declaredName as Wt, UNSHIPPED_FILES as X, MAP_RULE as Xt, SHIPPED_FIELDS as Y, HOMES as Yt, npmLookup as Z, findHomes as Zt, workspaceProtocol as _, securityCallers as _n, PRIVATE_NAMES_FILE_VARIABLE as _t, listRules as a, serviceRunMain as an, repositoryOfRemote as at, yamlFaults as b, ACTIONS_COMMIT as bn, noLocalPaths as bt, runCli as c, SHARED_ACTIONS as cn, pushMainOnly as ct, HOOK_MARKER as d, callsSharedCi as dn, pagesSite as dt, mergeHomes as en, pipeFails as et, NO_READ_LINE as f, sharedCi as fn, apiReportScript as ft, RULES as g, SECURITY_TIMEOUT_MINUTES as gn, PRIVATE_NAMES_FILE_CONFIG as gt, prePush as h, SECURITY_SCAN_INPUTS as hn, HOME_PATTERNS as ht, formatResult as i, runCalls as in, pagesAfterRelease as it, testsRequired as j, RULE_WARN_DAYS as jn, nameMatches as jt, scriptsOf as k, cuePreset as kn, lineNameHit as kt, runFix as l, SHARED_CI as ln, PAGES_WORKFLOWS as lt, installHook as m, SECURITY_SCAN_COMMIT as mn, DEFAULT_ALLOWED as mt, annotations as n, HOME_EXPORTS as nn, isPinned as nt, readConfig as o, hasTests as on, runnerBudget as ot, PRE_PUSH_HOOK as p, setupCue as pn, packNoBuildinfo as pt, reachOf as q, repoOf as qt, createContext as r, SERVICE_PACKAGE as rn, pinnedGitDeps as rt, runChecks as s, tsconfigTest as sn, scheduleMinute as st, USAGE as t, readOverlay as tn, isGitSpecifier as tt, summaryMarkdown as u, SHARED_WORKFLOWS as un, pagesCalls as ut, GITHUB_YAML as v, securityOneJob as vn, PRIVATE_PATTERNS_VARIABLE as vt, IGNORE_AFTER as w, summaryName as wn, PRIVATE_NAME_LIST as wt, namedVersions as x, convertGate as xn, privateNamesFile as xt, workflowParses as y, withOneJob as yn, invalidPatternBreaks as yt, roadmapOfLine as z, parseJsonc as zn, authorOf as zt };
14476
14672
 
14477
- //# sourceMappingURL=run-D9LKCI3y.js.map
14673
+ //# sourceMappingURL=run-DOzDuNOI.js.map