@mark1russell7/conventions 0.41.1 → 0.41.3

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
@@ -75,6 +75,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
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
76
  | `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
77
  | `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). |
78
+ | `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. |
78
79
  | `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). |
79
80
  | `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`. |
80
81
  | `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-aNVZ1j7b.js";
2
+ import { c as runCli } from "./run-CcIkf7nW.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  // src/cli.ts
5
5
  try {
package/build/index.d.ts CHANGED
@@ -501,6 +501,7 @@ export declare function invalidPatternBreaks(patterns: readonly PrivatePattern[]
501
501
  export declare function privateTextBreaks(name: string, text: string, privates: PrivateSources, options?: TextBreakOptions): Break[];
502
502
  export declare const noLocalPaths: Rule;
503
503
  export declare const packNoBuildinfo: Rule;
504
+ export declare const exportsRequire: Rule;
504
505
  export declare const apiReportScript: Rule;
505
506
  export declare const pagesAfterRelease: Rule;
506
507
  /** 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/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/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;;;;;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;;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/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/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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A;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, $t as findHomes, A as typedFiles, An as STRICT_OPTIONS, At as nameMatches, B as roadmapParses, Bn as matchesAny, Bt as authorOf, C as versionTitle, Cn as convertGate, Ct as PRIVATE_NAME_LIST, D as typedScripts, Dn as gateAfterCancel, Dt as isCommonUse, E as trustPolicy, En as summaryName, Et as isAllowedHit, F as HOME_TIMEOUT_MS, Fn as codePackages, Ft as hasImportMetaMain, G as publishedMinor, Gn as specifiersOf, Gt as declaredName, H as releaseFiles, Hn as readJsonc, Ht as licenseFileOf, I as blockHash, In as hasFile, It as mainCheck, J as NPM_REGISTRY, Jt as repoOf, K as publishedMinorRule, Kn as defaultOptions, Kt as homePackage, L as githubFetch, Ln as inFolder, Lt as coverageProvider, M as isSourcePath, Mn as DEPENDENCY_FIELDS, Mt as pathNameHit, N as pathsOf, Nn as RULE_WARN_DAYS, Nt as noBuildOutput, O as configsOfScript, On as readAction, Ot as lineNameHit, P as sourceMain, Pn as cleanPath, Pt as REAL_COMPARE, Q as unreleasedChange, Qt as MAP_RULE, R as sharedDocsRule, Rn as keyLine, Rt as apiReportScript, S as setVersions, Sn as ACTIONS_COMMIT, St as privateTextBreaks, T as TRAIN_SCOPES, Tn as prPathFilters, Tt as firstNameMatch, U as lockedVersions, Un as replaceLine, Ut as mitText, V as requiredScripts, Vn as parseJsonc, Vt as licenseFile, W as minorOf, Wn as runGit, Wt as repositoryIsPublic, X as UNSHIPPED_FILES, Xt as signaturesOf, Y as SHIPPED_FIELDS, Yt as reposOf, Z as npmLookup, Zt as HOMES, _ as workspaceProtocol, _n as SECURITY_SCAN_INPUTS, _t as PRIVATE_PATTERNS_VARIABLE, a as listRules, an as SERVICE_PACKAGE, at as repositoryOfRemote, b as yamlFaults, bn as securityOneJob, bt as privateNamesFile, c as runCli, cn as hasTests, ct as pushMainOnly, d as HOOK_MARKER, dn as SHARED_CI, dt as pagesSite, en as mapMarkdown, et as pipeFails, f as NO_READ_LINE, fn as SHARED_WORKFLOWS, ft as packNoBuildinfo, g as RULES, gn as SECURITY_SCAN_COMMIT, gt as PRIVATE_NAMES_FILE_VARIABLE, h as prePush, hn as setupCue, ht as PRIVATE_NAMES_FILE_CONFIG, i as formatResult, in as HOME_EXPORTS, it as pagesAfterRelease, j as testsRequired, jn as cuePreset, jt as parsePrivateNames, k as scriptsOf, kn as readWorkflow, kt as lineNameHits, l as runFix, ln as tsconfigTest, lt as PAGES_WORKFLOWS, m as installHook, mn as sharedCi, mt as HOME_PATTERNS, n as annotations, nn as mergeHomes, nt as isPinned, o as readConfig, on as runCalls, ot as runnerBudget, p as PRE_PUSH_HOOK, pn as callsSharedCi, pt as DEFAULT_ALLOWED, q as reachOf, qn as parseConfig, qt as messageOf, r as createContext, rn as readOverlay, rt as pinnedGitDeps, s as runChecks, sn as serviceRunMain, st as scheduleMinute, t as USAGE, tn as mapText, tt as isGitSpecifier, u as summaryMarkdown, un as SHARED_ACTIONS, ut as pagesCalls, v as GITHUB_YAML, vn as SECURITY_TIMEOUT_MINUTES, vt as invalidPatternBreaks, w as IGNORE_AFTER, wn as gateTrigger, wt as PrivateNameListError, x as namedVersions, xn as withOneJob, xt as privatePatterns, y as workflowParses, yn as securityCallers, yt as noLocalPaths, z as roadmapOfLine, zn as lineOf, zt as LICENSE_TEXTS } from "./run-aNVZ1j7b.js";
1
+ import { $ as unreleasedChangeRule, $t as MAP_RULE, A as typedFiles, An as readWorkflow, At as lineNameHits, B as roadmapParses, Bn as lineOf, Bt as LICENSE_TEXTS, C as versionTitle, Cn as ACTIONS_COMMIT, Ct as privateTextBreaks, D as typedScripts, Dn as summaryName, Dt as isAllowedHit, E as trustPolicy, En as prPathFilters, Et as firstNameMatch, F as HOME_TIMEOUT_MS, Fn as cleanPath, Ft as REAL_COMPARE, G as publishedMinor, Gn as runGit, Gt as repositoryIsPublic, H as releaseFiles, Hn as parseJsonc, Ht as licenseFile, I as blockHash, In as codePackages, It as hasImportMetaMain, J as NPM_REGISTRY, Jn as parseConfig, Jt as messageOf, K as publishedMinorRule, Kn as specifiersOf, Kt as declaredName, L as githubFetch, Ln as hasFile, Lt as mainCheck, M as isSourcePath, Mn as cuePreset, Mt as parsePrivateNames, N as pathsOf, Nn as DEPENDENCY_FIELDS, Nt as pathNameHit, O as configsOfScript, On as gateAfterCancel, Ot as isCommonUse, P as sourceMain, Pn as RULE_WARN_DAYS, Pt as noBuildOutput, Q as unreleasedChange, Qt as HOMES, R as sharedDocsRule, Rn as inFolder, Rt as coverageProvider, S as setVersions, Sn as withOneJob, St as privatePatterns, T as TRAIN_SCOPES, Tn as gateTrigger, Tt as PrivateNameListError, U as lockedVersions, Un as readJsonc, Ut as licenseFileOf, V as requiredScripts, Vn as matchesAny, Vt as authorOf, W as minorOf, Wn as replaceLine, Wt as mitText, X as UNSHIPPED_FILES, Xt as reposOf, Y as SHIPPED_FIELDS, Yt as repoOf, Z as npmLookup, Zt as signaturesOf, _ as workspaceProtocol, _n as SECURITY_SCAN_COMMIT, _t as PRIVATE_NAMES_FILE_VARIABLE, a as listRules, an as HOME_EXPORTS, at as repositoryOfRemote, b as yamlFaults, bn as securityCallers, bt as noLocalPaths, c as runCli, cn as serviceRunMain, ct as pushMainOnly, d as HOOK_MARKER, dn as SHARED_ACTIONS, dt as pagesSite, en as findHomes, et as pipeFails, f as NO_READ_LINE, fn as SHARED_CI, ft as exportsRequire, g as RULES, gn as setupCue, gt as PRIVATE_NAMES_FILE_CONFIG, h as prePush, hn as sharedCi, ht as HOME_PATTERNS, i as formatResult, in as readOverlay, it as pagesAfterRelease, j as testsRequired, jn as STRICT_OPTIONS, jt as nameMatches, k as scriptsOf, kn as readAction, kt as lineNameHit, l as runFix, ln as hasTests, lt as PAGES_WORKFLOWS, m as installHook, mn as callsSharedCi, mt as DEFAULT_ALLOWED, n as annotations, nn as mapText, nt as isPinned, o as readConfig, on as SERVICE_PACKAGE, ot as runnerBudget, p as PRE_PUSH_HOOK, pn as SHARED_WORKFLOWS, pt as packNoBuildinfo, q as reachOf, qn as defaultOptions, qt as homePackage, r as createContext, rn as mergeHomes, rt as pinnedGitDeps, s as runChecks, sn as runCalls, st as scheduleMinute, t as USAGE, tn as mapMarkdown, tt as isGitSpecifier, u as summaryMarkdown, un as tsconfigTest, ut as pagesCalls, v as GITHUB_YAML, vn as SECURITY_SCAN_INPUTS, vt as PRIVATE_PATTERNS_VARIABLE, w as IGNORE_AFTER, wn as convertGate, wt as PRIVATE_NAME_LIST, x as namedVersions, xn as securityOneJob, xt as privateNamesFile, y as workflowParses, yn as SECURITY_TIMEOUT_MINUTES, yt as invalidPatternBreaks, z as roadmapOfLine, zn as keyLine, zt as apiReportScript } from "./run-CcIkf7nW.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, 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, reposOf, 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, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, exportsRequire, 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, reposOf, 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
@@ -8400,7 +8400,7 @@ const HOMES = [
8400
8400
  "exporter",
8401
8401
  "testkit"
8402
8402
  ],
8403
- 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."
8403
+ 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. Seeded fault plans (delay, cut, reset, split frame, reorder, duplicate, stall) are data in @mark1russell7/rigor-chaos, next to its load schedules. The proxy that applies a plan to TCP, WebSocket and HTTP streams and records each fault is @mark1russell7/rigor-proxy (planned, in mark1russell7/rigor)."
8404
8404
  },
8405
8405
  {
8406
8406
  area: "exact-math",
@@ -8548,7 +8548,7 @@ const HOMES = [
8548
8548
  {
8549
8549
  area: "system-io",
8550
8550
  title: "Files, commands, git, GitHub and npm",
8551
- covers: "atomic file and JSON writes, globs, safe commands with argv and no shell, git, the GitHub CLI and API, npm registry lookups, HTTP requests, JSON, YAML and CSV, environment variables",
8551
+ covers: "atomic file and JSON writes, globs, safe commands with argv and no shell, git, the GitHub CLI and API, npm registry lookups and the use measures of a package (weekly downloads, dependents from deps.dev, jsDelivr hits, each a pure request builder and extractor with the fetch as a parameter), HTTP requests, JSON, YAML and CSV, environment variables",
8552
8552
  packages: [
8553
8553
  "@procedures/fs",
8554
8554
  "@procedures/shell",
@@ -8587,15 +8587,18 @@ const HOMES = [
8587
8587
  {
8588
8588
  area: "headless-browser",
8589
8589
  title: "Headless browser runs",
8590
- covers: "finding the browser of the system, a headless run with argv, a temporary profile, a time limit and a signal, and its output: PDF files, screenshots in PNG or JPEG, page text",
8590
+ covers: "finding the browser of the system and its profiles, reading the bookmark files of a profile, a headless run with argv, a temporary profile, a time limit and a signal, and its output: PDF files, screenshots in PNG or JPEG, page text",
8591
8591
  packages: ["@procedures/browser"],
8592
8592
  repo: "mark1russell7/client",
8593
- state: "unpublished",
8593
+ state: "published",
8594
8594
  words: [
8595
8595
  "browser",
8596
8596
  "chromium",
8597
8597
  "chrome",
8598
8598
  "headless",
8599
+ "bookmark",
8600
+ "bookmarks",
8601
+ "chrome profile",
8599
8602
  "screenshot",
8600
8603
  "pdf",
8601
8604
  "print",
@@ -8605,7 +8608,27 @@ const HOMES = [
8605
8608
  "playwright"
8606
8609
  ],
8607
8610
  signatures: ["findBrowser", "renderScreenshot"],
8608
- note: "@procedures/browser is in mark1russell7/client, and @procedures/pdf depends on it. Its first npm version is 0.54.1. Before that publish, use it only with workspace:* inside client: client does not keep its built files in git, so a github: specifier does not work."
8611
+ note: "@procedures/browser is in mark1russell7/client, and @procedures/pdf depends on it."
8612
+ },
8613
+ {
8614
+ area: "desktop",
8615
+ title: "Desktop apps on Electron",
8616
+ covers: "the safe defaults of the main process: the content security policy, window options with sandbox and context isolation, navigation and window-open rules, permission denial, the app:// protocol that serves a folder, Chromium net error codes, typed IPC checks",
8617
+ packages: [],
8618
+ repo: "mark1russell7/desktop",
8619
+ alsoIn: ["mark1russell7/template", "mark1russell7/pairrank"],
8620
+ state: "planned",
8621
+ words: [
8622
+ "electron",
8623
+ "desktop",
8624
+ "csp",
8625
+ "content security policy",
8626
+ "ipc",
8627
+ "preload",
8628
+ "browserwindow",
8629
+ "app protocol"
8630
+ ],
8631
+ note: "The electron preset of template-cli generates these functions in each app today. After the first npm publish of the home, the preset imports the package."
8609
8632
  },
8610
8633
  {
8611
8634
  area: "cli",
@@ -8939,11 +8962,13 @@ const HOMES = [
8939
8962
  area: "plain-text",
8940
8963
  title: "Plain text helpers",
8941
8964
  covers: "escaping for HTML, attributes, regular expressions and Markdown, case conversion, padding and truncation, templates, English word forms (plurals, lists). Escaping comes first",
8942
- packages: [],
8965
+ packages: ["@mark1russell7/text"],
8943
8966
  repo: "mark1russell7/text",
8944
- state: "planned",
8967
+ state: "published",
8945
8968
  words: [
8946
8969
  "escape",
8970
+ "word search",
8971
+ "count",
8947
8972
  "html escape",
8948
8973
  "case",
8949
8974
  "camel case",
@@ -9108,6 +9133,32 @@ const HOMES = [
9108
9133
  "load"
9109
9134
  ]
9110
9135
  },
9136
+ {
9137
+ area: "local-database",
9138
+ title: "Databases on one computer",
9139
+ covers: "SQLite through node:sqlite: WAL, synchronous and busy-timeout settings, migrations by user_version, BEGIN IMMEDIATE transactions, typed append-only event logs, recovery of a broken or stuck file, the filter of the experimental warning",
9140
+ packages: [],
9141
+ repo: "mark1russell7/sqlite",
9142
+ alsoIn: [
9143
+ "mark1russell7/headroom",
9144
+ "mark1russell7/crawler",
9145
+ "mark1russell7/pairrank"
9146
+ ],
9147
+ state: "planned",
9148
+ words: [
9149
+ "sqlite",
9150
+ "database",
9151
+ "event log",
9152
+ "migration",
9153
+ "wal",
9154
+ "user_version",
9155
+ "append-only",
9156
+ "transaction",
9157
+ "node:sqlite"
9158
+ ],
9159
+ signatures: ["openEventLog"],
9160
+ note: "headroom (packages/core/src/store.ts), polite-crawler (docs.ts, hoststate.ts, vectors.ts and watch.ts in packages/polite-crawler/src) and pairrank (packages/store/src/log.ts) have their own WAL and migration code. They move to the home after its first npm publish. Do not grow a local copy."
9161
+ },
9111
9162
  {
9112
9163
  area: "releases",
9113
9164
  title: "Release order of the packages",
@@ -9126,14 +9177,16 @@ const HOMES = [
9126
9177
  {
9127
9178
  area: "duplication",
9128
9179
  title: "The duplication atlas",
9129
- covers: "function shapes, clone classes, shared names and packages by purpose over all public repositories",
9180
+ covers: "function shapes, clone classes, shared names and packages by purpose over all public repositories, and the static analysis of code for bugs, also in the repositories of others",
9130
9181
  packages: [],
9131
9182
  repo: "mark1russell7/codeatlas",
9132
9183
  state: "unpublished",
9133
9184
  words: [
9134
9185
  "duplicate",
9135
9186
  "clone",
9136
- "copy"
9187
+ "copy",
9188
+ "static analysis",
9189
+ "analyzer"
9137
9190
  ]
9138
9191
  },
9139
9192
  {
@@ -10786,6 +10839,195 @@ const packNoBuildinfo = {
10786
10839
  return breaks;
10787
10840
  }
10788
10841
  };
10842
+ // src/rules/exports-require.ts
10843
+ /**
10844
+ * The rule `exports-require`: each entry of the published `exports` that resolves for `import` also resolves for
10845
+ * `require`. A conditional entry with `import` has a `default` (or a `require`).
10846
+ */
10847
+ /** The conditions of an ES module import in Node. Node also adds `default`. */
10848
+ const IMPORT_CONDITIONS = /* @__PURE__ */ new Set([
10849
+ "import",
10850
+ "node",
10851
+ "default"
10852
+ ]);
10853
+ /** The conditions of a CommonJS `require()` in Node. Node also adds `default`. */
10854
+ const REQUIRE_CONDITIONS = /* @__PURE__ */ new Set([
10855
+ "require",
10856
+ "node",
10857
+ "default"
10858
+ ]);
10859
+ /**
10860
+ * This function resolves a value of `exports` for a set of conditions, as PACKAGE_TARGET_RESOLVE of Node does. A
10861
+ * string is a target. A null is a target null. An array gives its first item that resolves, else null when an item is
10862
+ * null. An object examines its keys in their order. A key `default` or a key in `conditions` gives the resolution of
10863
+ * its value. When no condition of that value matches, the object examines its next key.
10864
+ */
10865
+ function resolveExport(value, conditions, path = []) {
10866
+ if (typeof value === "string") return {
10867
+ target: value,
10868
+ path
10869
+ };
10870
+ if (value === null) return null;
10871
+ if (Array.isArray(value)) {
10872
+ if (value.length === 0) return null;
10873
+ let excluded = false;
10874
+ for (const [index, item] of value.entries()) {
10875
+ const resolved = resolveExport(item, conditions, [...path, index]);
10876
+ if (resolved === null) excluded = true;
10877
+ else if (resolved !== void 0) return resolved;
10878
+ }
10879
+ return excluded ? null : void 0;
10880
+ }
10881
+ if (typeof value === "object") for (const [key, item] of Object.entries(value)) {
10882
+ if (key !== "default" && !conditions.has(key)) continue;
10883
+ const resolved = resolveExport(item, conditions, [...path, key]);
10884
+ if (resolved !== void 0) return resolved;
10885
+ }
10886
+ }
10887
+ /**
10888
+ * This function gives the entries of a value of `exports`, by subpath. A string, an array or an object of conditions
10889
+ * is the entry of the subpath `.`. It gives an empty list when the object mixes subpaths and conditions: Node refuses
10890
+ * that value.
10891
+ */
10892
+ function exportEntries(exports) {
10893
+ if (typeof exports !== "object" || exports === null || Array.isArray(exports)) return exports === void 0 ? [] : [[".", exports]];
10894
+ const keys = Object.keys(exports);
10895
+ const subpaths = keys.filter((key) => key.startsWith("."));
10896
+ if (subpaths.length === keys.length) return Object.entries(exports);
10897
+ return subpaths.length === 0 ? [[".", exports]] : [];
10898
+ }
10899
+ /** This function gives the value at a path in a value of JSON, or undefined. */
10900
+ function valueAt(value, path) {
10901
+ let at = value;
10902
+ for (const key of path) {
10903
+ if (typeof at !== "object" || at === null) return void 0;
10904
+ at = at[key];
10905
+ }
10906
+ return at;
10907
+ }
10908
+ /** This function gives the index after the end of the object that contains the index `from` (after its `}`), or -1. */
10909
+ function objectEnd(text, from) {
10910
+ let depth = 0;
10911
+ for (let at = from; at < text.length; at++) {
10912
+ const char = text.charAt(at);
10913
+ if (char === "\"") {
10914
+ at++;
10915
+ while (at < text.length && text.charAt(at) !== "\"") at += text.charAt(at) === "\\" ? 2 : 1;
10916
+ } else if (char === "{" || char === "[") depth++;
10917
+ else if (char === "}" || char === "]") {
10918
+ if (depth === 0) return char === "}" ? at + 1 : -1;
10919
+ depth--;
10920
+ }
10921
+ }
10922
+ return -1;
10923
+ }
10924
+ /**
10925
+ * This function gives the text of `package.json` with the member `"default": target` at the end of the object at
10926
+ * `objectPath`, in the format of the file. The object holds the member `"import": target`. The function gives undefined
10927
+ * when it cannot find the object, or when the changed text does not parse as the manifest with the new member.
10928
+ */
10929
+ function withDefault(pkg, objectPath, target) {
10930
+ const expected = structuredClone(pkg.manifest);
10931
+ const object = valueAt(expected, objectPath);
10932
+ if (typeof object !== "object" || object === null || Array.isArray(object) || "default" in object) return void 0;
10933
+ object["default"] = target;
10934
+ const wanted = JSON.stringify(expected);
10935
+ const eol = pkg.text.includes("\r\n") ? "\r\n" : "\n";
10936
+ const member = new RegExp(`"import"\\s*:\\s*${JSON.stringify(target).replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`, "g");
10937
+ for (const match of pkg.text.matchAll(member)) {
10938
+ const start = match.index ?? 0;
10939
+ const end = objectEnd(pkg.text, start + match[0].length);
10940
+ if (end < 0) continue;
10941
+ const close = end - 1;
10942
+ let last = close - 1;
10943
+ while (last > start && /\s/.test(pkg.text.charAt(last))) last--;
10944
+ const multiline = pkg.text.slice(last + 1, close).includes("\n");
10945
+ const indent = /^[ \t]*/.exec(pkg.text.slice(pkg.text.lastIndexOf("\n", start) + 1))?.[0] ?? "";
10946
+ const separator = multiline ? `,${eol}${indent}` : ", ";
10947
+ const after = `${pkg.text.slice(0, last + 1)}${separator}"default": ${JSON.stringify(target)}${pkg.text.slice(last + 1)}`;
10948
+ try {
10949
+ if (JSON.stringify(JSON.parse(after)) === wanted) return after;
10950
+ } catch {}
10951
+ }
10952
+ }
10953
+ /** This function gives the published `exports` of a manifest: `publishConfig.exports` when it exists, else `exports`. */
10954
+ function publishedExports(manifest) {
10955
+ const published = manifest["publishConfig"];
10956
+ if (typeof published === "object" && published !== null && published["exports"] !== void 0) return {
10957
+ field: "publishConfig.exports",
10958
+ value: published["exports"]
10959
+ };
10960
+ return {
10961
+ field: "exports",
10962
+ value: manifest["exports"]
10963
+ };
10964
+ }
10965
+ const exportsRequire = {
10966
+ id: "exports-require",
10967
+ title: "Each entry of the published `exports` that resolves for `import` also resolves for `require`: a conditional entry with `import` has a `default`.",
10968
+ reason: "Node resolves `exports` by conditions. A CommonJS loader asks for `require`, `node` and `default`. An entry with only `types` and `import` has no target for these conditions, so `require()` of the package stops with ERR_PACKAGE_PATH_NOT_EXPORTED. This occurs also on Node 22 and 24, which can load an ES module with `require()`. On 2026-11-12 the config loader of Playwright, which is CommonJS, could not load six rigor packages for this reason (rigor#196).",
10969
+ fix: "Add `\"default\"` with the target of `\"import\"` as the last member of the entry, for example `{ \"types\": \"./build/index.d.ts\", \"import\": \"./build/index.js\", \"default\": \"./build/index.js\" }`. `conventions fix` writes it. A target null for `require` keeps a package from CommonJS on purpose, and the rule accepts it. A module with a top-level `await` cannot load with `require()`: give it a `require` target with a CommonJS build.",
10970
+ sources: [
10971
+ {
10972
+ repo: "rigor",
10973
+ rule: "exports-require",
10974
+ doc: "packages/*/package.json (publishConfig.exports, rigor#196)"
10975
+ },
10976
+ {
10977
+ repo: "packing",
10978
+ rule: "exports-default",
10979
+ doc: "packages/packing/package.json (publishConfig.exports)"
10980
+ },
10981
+ {
10982
+ repo: "highways",
10983
+ rule: "exports-default",
10984
+ doc: "packages/core/package.json (publishConfig.exports)"
10985
+ },
10986
+ {
10987
+ repo: "layout-contract",
10988
+ rule: "exports-default",
10989
+ doc: "packages/layout-contract/package.json (publishConfig.exports)"
10990
+ },
10991
+ {
10992
+ repo: "vex",
10993
+ rule: "exports-default",
10994
+ doc: "packages/core/package.json (publishConfig.exports)"
10995
+ }
10996
+ ],
10997
+ options: {},
10998
+ failsFrom: "2026-11-27",
10999
+ check(context) {
11000
+ const breaks = [];
11001
+ for (const pkg of rootAndCodePackages(context)) {
11002
+ if (pkg.manifest["private"] === true) continue;
11003
+ const name = String(pkg.manifest["name"] ?? pkg.folder);
11004
+ const { field, value } = publishedExports(pkg.manifest);
11005
+ const base = field === "exports" ? ["exports"] : ["publishConfig", "exports"];
11006
+ const fieldLine = field === "exports" ? lineOf(pkg.text, "\"exports\"") : keyLine(pkg.text, "publishConfig", "exports");
11007
+ const subpaths = typeof value === "object" && value !== null && !Array.isArray(value) && Object.keys(value).every((key) => key.startsWith("."));
11008
+ for (const [subpath, entry] of exportEntries(value)) {
11009
+ const imported = resolveExport(entry, IMPORT_CONDITIONS);
11010
+ if (imported === void 0 || imported === null) continue;
11011
+ if (resolveExport(entry, REQUIRE_CONDITIONS) !== void 0) continue;
11012
+ const found = [...subpaths ? [...base, subpath] : base, ...imported.path];
11013
+ const parent = found.slice(0, -1);
11014
+ const after = found[found.length - 1] === "import" ? withDefault(pkg, parent, imported.target) : void 0;
11015
+ const line = (subpaths ? keyLine(pkg.text, field === "exports" ? "exports" : "publishConfig", subpath) : void 0) ?? fieldLine;
11016
+ breaks.push({
11017
+ file: pkg.file,
11018
+ ...line === void 0 ? {} : { line },
11019
+ message: `The entry "${subpath}" of ${field} of ${name} resolves for import (${imported.target}) and not for require: require() of it stops with ERR_PACKAGE_PATH_NOT_EXPORTED.`,
11020
+ ...after === void 0 ? { fix: `Give the entry "${subpath}" of ${field} a target for require: "default": ${JSON.stringify(imported.target)} as the last member of the object that holds "import", or "require": ${JSON.stringify(imported.target)} before its "default".` } : { edits: [{
11021
+ file: pkg.file,
11022
+ before: pkg.text,
11023
+ after
11024
+ }] }
11025
+ });
11026
+ }
11027
+ }
11028
+ return breaks;
11029
+ }
11030
+ };
10789
11031
  // src/rules/pages-site.ts
10790
11032
  /**
10791
11033
  * The rule `pages-site`: a public repository has a site. A workflow uses the Pages workflow of the template, and the
@@ -14190,6 +14432,7 @@ const RULES = [
14190
14432
  licenseFile,
14191
14433
  coverageProvider,
14192
14434
  packNoBuildinfo,
14435
+ exportsRequire,
14193
14436
  pagesSite,
14194
14437
  pagesAfterRelease,
14195
14438
  sharedDocs
@@ -15076,6 +15319,6 @@ function runHook(args, io) {
15076
15319
  git: (gitArgs) => runGit(io.cwd, gitArgs)
15077
15320
  }, io);
15078
15321
  }
15079
- export { unreleasedChangeRule as $, findHomes as $t, typedFiles as A, STRICT_OPTIONS as An, nameMatches as At, roadmapParses as B, matchesAny as Bn, authorOf as Bt, versionTitle as C, convertGate as Cn, PRIVATE_NAME_LIST as Ct, typedScripts as D, gateAfterCancel as Dn, isCommonUse as Dt, trustPolicy as E, summaryName as En, isAllowedHit as Et, HOME_TIMEOUT_MS as F, codePackages as Fn, hasImportMetaMain as Ft, publishedMinor as G, specifiersOf as Gn, declaredName as Gt, releaseFiles as H, readJsonc as Hn, licenseFileOf as Ht, blockHash as I, hasFile as In, mainCheck as It, NPM_REGISTRY as J, repoOf as Jt, publishedMinorRule as K, defaultOptions as Kn, homePackage as Kt, githubFetch as L, inFolder as Ln, coverageProvider as Lt, isSourcePath as M, DEPENDENCY_FIELDS as Mn, pathNameHit as Mt, pathsOf as N, RULE_WARN_DAYS as Nn, noBuildOutput as Nt, configsOfScript as O, readAction as On, lineNameHit as Ot, sourceMain as P, cleanPath as Pn, REAL_COMPARE as Pt, unreleasedChange as Q, MAP_RULE as Qt, sharedDocsRule as R, keyLine as Rn, apiReportScript as Rt, setVersions as S, ACTIONS_COMMIT as Sn, privateTextBreaks as St, TRAIN_SCOPES as T, prPathFilters as Tn, firstNameMatch as Tt, lockedVersions as U, replaceLine as Un, mitText as Ut, requiredScripts as V, parseJsonc as Vn, licenseFile as Vt, minorOf as W, runGit as Wn, repositoryIsPublic as Wt, UNSHIPPED_FILES as X, signaturesOf as Xt, SHIPPED_FIELDS as Y, reposOf as Yt, npmLookup as Z, HOMES as Zt, workspaceProtocol as _, SECURITY_SCAN_INPUTS as _n, PRIVATE_PATTERNS_VARIABLE as _t, listRules as a, SERVICE_PACKAGE as an, repositoryOfRemote as at, yamlFaults as b, securityOneJob as bn, privateNamesFile as bt, runCli as c, hasTests as cn, pushMainOnly as ct, HOOK_MARKER as d, SHARED_CI as dn, pagesSite as dt, mapMarkdown as en, pipeFails as et, NO_READ_LINE as f, SHARED_WORKFLOWS as fn, packNoBuildinfo as ft, RULES as g, SECURITY_SCAN_COMMIT as gn, PRIVATE_NAMES_FILE_VARIABLE as gt, prePush as h, setupCue as hn, PRIVATE_NAMES_FILE_CONFIG as ht, formatResult as i, HOME_EXPORTS as in, pagesAfterRelease as it, testsRequired as j, cuePreset as jn, parsePrivateNames as jt, scriptsOf as k, readWorkflow as kn, lineNameHits as kt, runFix as l, tsconfigTest as ln, PAGES_WORKFLOWS as lt, installHook as m, sharedCi as mn, HOME_PATTERNS as mt, annotations as n, mergeHomes as nn, isPinned as nt, readConfig as o, runCalls as on, runnerBudget as ot, PRE_PUSH_HOOK as p, callsSharedCi as pn, DEFAULT_ALLOWED as pt, reachOf as q, parseConfig as qn, messageOf as qt, createContext as r, readOverlay as rn, pinnedGitDeps as rt, runChecks as s, serviceRunMain as sn, scheduleMinute as st, USAGE as t, mapText as tn, isGitSpecifier as tt, summaryMarkdown as u, SHARED_ACTIONS as un, pagesCalls as ut, GITHUB_YAML as v, SECURITY_TIMEOUT_MINUTES as vn, invalidPatternBreaks as vt, IGNORE_AFTER as w, gateTrigger as wn, PrivateNameListError as wt, namedVersions as x, withOneJob as xn, privatePatterns as xt, workflowParses as y, securityCallers as yn, noLocalPaths as yt, roadmapOfLine as z, lineOf as zn, LICENSE_TEXTS as zt };
15322
+ export { unreleasedChangeRule as $, MAP_RULE as $t, typedFiles as A, readWorkflow as An, lineNameHits as At, roadmapParses as B, lineOf as Bn, LICENSE_TEXTS as Bt, versionTitle as C, ACTIONS_COMMIT as Cn, privateTextBreaks as Ct, typedScripts as D, summaryName as Dn, isAllowedHit as Dt, trustPolicy as E, prPathFilters as En, firstNameMatch as Et, HOME_TIMEOUT_MS as F, cleanPath as Fn, REAL_COMPARE as Ft, publishedMinor as G, runGit as Gn, repositoryIsPublic as Gt, releaseFiles as H, parseJsonc as Hn, licenseFile as Ht, blockHash as I, codePackages as In, hasImportMetaMain as It, NPM_REGISTRY as J, parseConfig as Jn, messageOf as Jt, publishedMinorRule as K, specifiersOf as Kn, declaredName as Kt, githubFetch as L, hasFile as Ln, mainCheck as Lt, isSourcePath as M, cuePreset as Mn, parsePrivateNames as Mt, pathsOf as N, DEPENDENCY_FIELDS as Nn, pathNameHit as Nt, configsOfScript as O, gateAfterCancel as On, isCommonUse as Ot, sourceMain as P, RULE_WARN_DAYS as Pn, noBuildOutput as Pt, unreleasedChange as Q, HOMES as Qt, sharedDocsRule as R, inFolder as Rn, coverageProvider as Rt, setVersions as S, withOneJob as Sn, privatePatterns as St, TRAIN_SCOPES as T, gateTrigger as Tn, PrivateNameListError as Tt, lockedVersions as U, readJsonc as Un, licenseFileOf as Ut, requiredScripts as V, matchesAny as Vn, authorOf as Vt, minorOf as W, replaceLine as Wn, mitText as Wt, UNSHIPPED_FILES as X, reposOf as Xt, SHIPPED_FIELDS as Y, repoOf as Yt, npmLookup as Z, signaturesOf as Zt, workspaceProtocol as _, SECURITY_SCAN_COMMIT as _n, PRIVATE_NAMES_FILE_VARIABLE as _t, listRules as a, HOME_EXPORTS as an, repositoryOfRemote as at, yamlFaults as b, securityCallers as bn, noLocalPaths as bt, runCli as c, serviceRunMain as cn, pushMainOnly as ct, HOOK_MARKER as d, SHARED_ACTIONS as dn, pagesSite as dt, findHomes as en, pipeFails as et, NO_READ_LINE as f, SHARED_CI as fn, exportsRequire as ft, RULES as g, setupCue as gn, PRIVATE_NAMES_FILE_CONFIG as gt, prePush as h, sharedCi as hn, HOME_PATTERNS as ht, formatResult as i, readOverlay as in, pagesAfterRelease as it, testsRequired as j, STRICT_OPTIONS as jn, nameMatches as jt, scriptsOf as k, readAction as kn, lineNameHit as kt, runFix as l, hasTests as ln, PAGES_WORKFLOWS as lt, installHook as m, callsSharedCi as mn, DEFAULT_ALLOWED as mt, annotations as n, mapText as nn, isPinned as nt, readConfig as o, SERVICE_PACKAGE as on, runnerBudget as ot, PRE_PUSH_HOOK as p, SHARED_WORKFLOWS as pn, packNoBuildinfo as pt, reachOf as q, defaultOptions as qn, homePackage as qt, createContext as r, mergeHomes as rn, pinnedGitDeps as rt, runChecks as s, runCalls as sn, scheduleMinute as st, USAGE as t, mapMarkdown as tn, isGitSpecifier as tt, summaryMarkdown as u, tsconfigTest as un, pagesCalls as ut, GITHUB_YAML as v, SECURITY_SCAN_INPUTS as vn, PRIVATE_PATTERNS_VARIABLE as vt, IGNORE_AFTER as w, convertGate as wn, PRIVATE_NAME_LIST as wt, namedVersions as x, securityOneJob as xn, privateNamesFile as xt, workflowParses as y, SECURITY_TIMEOUT_MINUTES as yn, invalidPatternBreaks as yt, roadmapOfLine as z, keyLine as zn, apiReportScript as zt };
15080
15323
 
15081
- //# sourceMappingURL=run-aNVZ1j7b.js.map
15324
+ //# sourceMappingURL=run-CcIkf7nW.js.map