@mark1russell7/conventions 0.49.2 → 0.49.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/build/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as runCli } from "./run-DHR-sa4C.js";
2
+ import { c as runCli } from "./run-DyUvPasP.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  // src/cli.ts
5
5
  try {
package/build/index.d.ts CHANGED
@@ -87,9 +87,17 @@ interface RuleContext {
87
87
  readonly today?: string;
88
88
  /** This function gives the files that git tracks, relative to the root, or undefined when the root is not in a git repository. */
89
89
  gitFiles(): readonly string[] | undefined;
90
- /** This function starts git in the root, and gives its output, or undefined when git fails. */
90
+ /** This function starts git in the root, and gives its output, or undefined when git fails. A context of createContext starts git one time for each list of arguments. */
91
91
  git(args: readonly string[]): string | undefined;
92
+ /**
93
+ * This function gives the text of the file of each `<commit>:<path>` (as `git show` does), or undefined for each one
94
+ * that git does not have. A context of createContext starts git one time for all of them (`git cat-file --batch`).
95
+ * A context with no such function reads each one with `git show`: use showFiles, which handles the two.
96
+ */
97
+ gitShow?(specs: readonly string[]): readonly (string | undefined)[];
92
98
  }
99
+ /** This function gives the text of the file of each `<commit>:<path>`, or undefined, in one start of git when the context can. */
100
+ export declare function showFiles(context: Pick<RuleContext, "git" | "gitShow">, specs: readonly string[]): readonly (string | undefined)[];
93
101
  /** The result of a rule: a list of breaks (empty when the rule passes), or the reason why the rule did not start. */
94
102
  type RuleOutcome = readonly Break[] | {
95
103
  readonly skipped: string;
@@ -152,6 +160,18 @@ export declare function matchesAny(path: string, globs: readonly string[]): bool
152
160
  export declare function parseJsonc(text: string): unknown;
153
161
  /** This function reads a JSON file with comments, or gives undefined when the file does not exist or is not JSON. */
154
162
  export declare function readJsonc(file: string): unknown;
163
+ /**
164
+ * This function gives the text of the blob of each `<commit>:<path>` in `root`, with one start of `git cat-file --batch`.
165
+ * It gives undefined for each name that git does not have or that is not a file. A name with a line break goes to
166
+ * `git show`.
167
+ */
168
+ export declare function runGitShow(root: string, specs: readonly string[]): (string | undefined)[];
169
+ /**
170
+ * This function reads the output of `git cat-file --batch` for `count` names. It gives the text of each blob, or
171
+ * undefined for a name that git does not have or that is not a blob. It gives fewer than `count` entries when the output
172
+ * ends early.
173
+ */
174
+ export declare function parseCatFileBatch(out: Uint8Array, count: number): (string | undefined)[];
155
175
  /** This function starts git in `root` with `args`, and gives its output, or undefined when git fails. */
156
176
  export declare function runGit(root: string, args: readonly string[]): string | undefined;
157
177
  /** This function gives `owner/name` from a git remote URL, or undefined for a URL that is not of GitHub. */
@@ -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/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/job-fails.ts","../src/rules/playwright-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/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/workflow.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/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;;WAEA;;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;;;;;;EAM/C,QAAQ,SAAS,aAAa,SAAS;;;qBAO5B;;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,OAAO,cAAc;;wBAOrB,mBAAmB;;qBActB,UAAW,aAAa;;;;;wBAMrB,aAAa,SAAS,KAAK,oDAAoD;;UC7O9E;;WAEN;;WAEA;;;;;WAKA;;WAEA;;WAEA,SAAS;;;UAIH;;WAEN;;WAEA,OAAO,SAAS,eAAe;;;wBAe1B,eAAe,MAAM,OAAO;;;;;;;;wBAW5B,gBAAgB,gBAAgB,MAAM,OAAO;;;;;;;wBAwD7C,YAAY,gBAAgB,gBAAgB,SAAS;;qBCrGxD;qBA4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ACN;WACA,KAAK,SAAS;WACd,SAAS;WACT,SAAS;;WAET;;;qBAIE;;wBAwEG,OAAO,yBAAyB,IAAI;;qBCjXvC;;UAGI;;WAEN;;;;;WAKA;;;;;WAKA;;;;;WAKA;;WAEA;WACA,KAAK,SAAS;;WAEd;;WAEA,MAAM;;WAEN,YAAY;;;;;;;;;;;;wBA0MP,QAAQ,SAAS,gBAAgB,IAAI,KAAK;;UA6GzC;;WAEN;WACA;WACA;WACA;;;;;;wBAOK,iBAAiB,0BAA0B;;;;;wBAuB3C,eAAe,MAAM,aAAa,IAAI,KAAK;;qBAS9C;;;;;;;;qBAgCA;;UAgBI;;WAEN;WACA,KAAK,SAAS;;WAEd,MAAM;;;;;;;wBAQD,YAAY,SAAS,aAAa,IAAI,KAAK;;qBCnd9C,cAAc,SAAS;WAA0B;WAA0B;;;;;;;;;qBCM3E;;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/job-fails.ts","../src/rules/playwright-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/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/workflow.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/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;;WAEA;;EAET;;EAEA,IAAI;;;;;;EAMJ,SAAS;;;wBAIK,UAAU,SAAS,KAAK,iCAAiC;;KAM7D,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;;;;EAM/C,QAAQ,SAAS,aAAa,SAAS;;;qBAO5B;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qBAMxC,WAAY,gBAAgB;;qBAG5B,YAAa;;wBAGV,WAAW,cAAc;;;;;;wBASzB,WAAW;;wBA2BX,UAAU;;;;;;wBAcV,WAAW,cAAc;;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A;WACA,MAAM,SAAS;;WAEf,iBAAiB;;WAEjB;;;wBAaK,WAAW,cAAc,iBAAgB,SAAiB;;wBAO1D,cAAc,cAAc,QAAQ,mBAAmB,UAAS,KAAK,0CAA+C;;wBAwCpH,UAAU,SAAS,eAAe;;UAkEjC;;WAEN;;WAEA;;WAEA,QAAQ;;;;;;;wBAWH,OAAO,SAAS,eAAe;;wBAyC/B,aAAa,QAAQ;;wBA4BrB,gBAAgB,QAAQ;;;;;;wBA2BxB,YAAY,QAAQ;;wBAapB,UAAU,QAAQ,+BAA+B,iBAAgB;;UAkBhE;WACN;WACA,KAAK,SAAS;WACd,SAAS;WACT,SAAS;;WAET;;;qBAIE;;wBAwEG,OAAO,yBAAyB,IAAI;;qBChYvC;;UAGI;;WAEN;;;;;WAKA;;;;;WAKA;;;;;WAKA;;WAEA;WACA,KAAK,SAAS;;WAEd;;WAEA,MAAM;;WAEN,YAAY;;;;;;;;;;;;wBA0MP,QAAQ,SAAS,gBAAgB,IAAI,KAAK;;UA6GzC;;WAEN;WACA;WACA;WACA;;;;;;wBAOK,iBAAiB,0BAA0B;;;;;wBAuB3C,eAAe,MAAM,aAAa,IAAI,KAAK;;qBAS9C;;;;;;;;qBAgCA;;UAgBI;;WAEN;WACA,KAAK,SAAS;;WAEd,MAAM;;;;;;;wBAQD,YAAY,SAAS,aAAa,IAAI,KAAK;;qBCnd9C,cAAc,SAAS;WAA0B;WAA0B;;;;;;;;;qBCM3E;;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 unreleasedChange, $n as cleanPath, $t as licenseFileOf, A as scriptsOf, An as callsSharedCi, At as privateNamesFiles, B as roadmapOfLine, Bn as convertGate, Bt as mergePrivateNames, C as setVersions, Cn as runCalls, Ct as HOME_PATTERNS, D as trustPolicy, Dn as SHARED_ACTIONS, Dt as invalidPatternBreaks, E as TRAIN_SCOPES, En as tsconfigTest, Et as PRIVATE_PATTERNS_VARIABLE, F as sourceMain, Fn as SECURITY_TIMEOUT_MINUTES, Ft as firstNameMatch, G as minorOf, Gn as parseWorkflow, Gt as REAL_COMPARE, H as requiredScripts, Hn as prPathFilters, Ht as parsePrivateNames, I as HOME_TIMEOUT_MS, In as securityCallers, It as isAllowedHit, J as reachOf, Jn as yamlFaults, Jt as coverageProvider, K as publishedMinor, Kn as readAction, Kt as hasImportMetaMain, L as blockHash, Ln as securityOneJob, Lt as isCommonUse, M as testsRequired, Mn as setupCue, Mt as privateTextBreaks, N as isSourcePath, Nn as SECURITY_SCAN_COMMIT, Nt as PRIVATE_NAME_LIST, O as typedScripts, On as SHARED_CI, Ot as noLocalPaths, P as pathsOf, Pn as SECURITY_SCAN_INPUTS, Pt as PrivateNameListError, Q as npmLookup, Qn as RULE_WARN_DAYS, Qt as licenseFile, R as githubFetch, Rn as withOneJob, Rt as lineNameHit, S as namedVersions, Sn as SERVICE_PACKAGE, St as DEFAULT_ALLOWED, T as IGNORE_AFTER, Tn as hasTests, Tt as PRIVATE_NAMES_FILE_VARIABLE, U as releaseFiles, Un as summaryName, Ut as pathNameHit, V as roadmapParses, Vn as gateTrigger, Vt as nameMatches, W as lockedVersions, Wn as gateAfterCancel, Wt as noBuildOutput, X as SHIPPED_FIELDS, Xn as cuePreset, Xt as LICENSE_TEXTS, Y as NPM_REGISTRY, Yn as STRICT_OPTIONS, Yt as apiReportScript, Z as UNSHIPPED_FILES, Zn as DEPENDENCY_FIELDS, Zt as authorOf, _ as runPrePushArgs, _n as mapText, _t as pagesCalls, a as listRules, an as modulesOf, ar as matchesAny, at as startsTests, b as GITHUB_YAML, bn as npmNames, bt as publishTextSafe, c as runCli, cn as messageOf, cr as replaceLine, ct as isGitSpecifier, d as HOOK_MARKER, dn as signaturesOf, dr as specifiersOf, dt as siteCheckInCi, en as mitText, er as codePackages, et as unreleasedChangeRule, f as NO_READ_LINE, fn as HOME_EXPORTS, fr as defaultOptions, ft as pagesAfterRelease, g as prePush, gn as mapMarkdown, gt as PAGES_WORKFLOWS, h as parsePrePushArgs, hn as findHomes, ht as pushMainOnly, i as formatResult, in as moduleUses, ir as lineOf, it as parseAdvisory, j as typedFiles, jn as sharedCi, jt as privatePatterns, k as configsOfScript, kn as SHARED_WORKFLOWS, kt as privateNamesFile, l as runFix, ln as repoOf, lr as repositoryOfRemote, lt as isPinned, m as installHook, mn as MAP_RULE, mr as parseRuleConfig, mt as scheduleMinute, n as annotations, nn as homeModule, nr as inFolder, nt as hiddenFailures, o as readConfig, on as declaredName, or as parseJsonc, ot as swallowsTests, p as PRE_PUSH_HOOK, pn as HOMES, pr as parseConfig, pt as runnerBudget, q as publishedMinorRule, qn as readWorkflow, qt as mainCheck, r as createContext, rn as moduleMessage, rr as keyLine, rt as jobFails, s as runChecks, sn as homePackage, sr as readJsonc, st as pipeFails, t as USAGE, tn as repositoryIsPublic, tr as hasFile, tt as playwrightInstall, u as summaryMarkdown, un as reposOf, ur as runGit, ut as pinnedGitDeps, v as RULES, vn as mergeHomes, vt as pagesSite, w as versionTitle, wn as serviceRunMain, wt as PRIVATE_NAMES_FILE_CONFIG, x as workflowParses, xn as readOverlay, xt as packNoBuildinfo, y as workspaceProtocol, yn as npmDrift, yt as exportsRequire, z as sharedDocsRule, zn as ACTIONS_COMMIT, zt as lineNameHits } from "./run-DHR-sa4C.js";
1
+ import { $ as unreleasedChange, $n as cleanPath, $t as licenseFileOf, A as scriptsOf, An as callsSharedCi, At as privateNamesFiles, B as roadmapOfLine, Bn as convertGate, Bt as mergePrivateNames, C as setVersions, Cn as runCalls, Ct as HOME_PATTERNS, D as trustPolicy, Dn as SHARED_ACTIONS, Dt as invalidPatternBreaks, E as TRAIN_SCOPES, En as tsconfigTest, Et as PRIVATE_PATTERNS_VARIABLE, F as sourceMain, Fn as SECURITY_TIMEOUT_MINUTES, Ft as firstNameMatch, G as minorOf, Gn as parseWorkflow, Gt as REAL_COMPARE, H as requiredScripts, Hn as prPathFilters, Ht as parsePrivateNames, I as HOME_TIMEOUT_MS, In as securityCallers, It as isAllowedHit, J as reachOf, Jn as yamlFaults, Jt as coverageProvider, K as publishedMinor, Kn as readAction, Kt as hasImportMetaMain, L as blockHash, Ln as securityOneJob, Lt as isCommonUse, M as testsRequired, Mn as setupCue, Mt as privateTextBreaks, N as isSourcePath, Nn as SECURITY_SCAN_COMMIT, Nt as PRIVATE_NAME_LIST, O as typedScripts, On as SHARED_CI, Ot as noLocalPaths, P as pathsOf, Pn as SECURITY_SCAN_INPUTS, Pt as PrivateNameListError, Q as npmLookup, Qn as RULE_WARN_DAYS, Qt as licenseFile, R as githubFetch, Rn as withOneJob, Rt as lineNameHit, S as namedVersions, Sn as SERVICE_PACKAGE, St as DEFAULT_ALLOWED, T as IGNORE_AFTER, Tn as hasTests, Tt as PRIVATE_NAMES_FILE_VARIABLE, U as releaseFiles, Un as summaryName, Ut as pathNameHit, V as roadmapParses, Vn as gateTrigger, Vt as nameMatches, W as lockedVersions, Wn as gateAfterCancel, Wt as noBuildOutput, X as SHIPPED_FIELDS, Xn as cuePreset, Xt as LICENSE_TEXTS, Y as NPM_REGISTRY, Yn as STRICT_OPTIONS, Yt as apiReportScript, Z as UNSHIPPED_FILES, Zn as DEPENDENCY_FIELDS, Zt as authorOf, _ as runPrePushArgs, _n as mapText, _r as parseRuleConfig, _t as pagesCalls, a as listRules, an as modulesOf, ar as matchesAny, at as startsTests, b as GITHUB_YAML, bn as npmNames, bt as publishTextSafe, c as runCli, cn as messageOf, cr as readJsonc, ct as isGitSpecifier, d as HOOK_MARKER, dn as signaturesOf, dr as runGit, dt as siteCheckInCi, en as mitText, er as codePackages, et as unreleasedChangeRule, f as NO_READ_LINE, fn as HOME_EXPORTS, fr as runGitShow, ft as pagesAfterRelease, g as prePush, gn as mapMarkdown, gr as parseConfig, gt as PAGES_WORKFLOWS, h as parsePrePushArgs, hn as findHomes, hr as defaultOptions, ht as pushMainOnly, i as formatResult, in as moduleUses, ir as lineOf, it as parseAdvisory, j as typedFiles, jn as sharedCi, jt as privatePatterns, k as configsOfScript, kn as SHARED_WORKFLOWS, kt as privateNamesFile, l as runFix, ln as repoOf, lr as replaceLine, lt as isPinned, m as installHook, mn as MAP_RULE, mr as specifiersOf, mt as scheduleMinute, n as annotations, nn as homeModule, nr as inFolder, nt as hiddenFailures, o as readConfig, on as declaredName, or as parseCatFileBatch, ot as swallowsTests, p as PRE_PUSH_HOOK, pn as HOMES, pr as showFiles, pt as runnerBudget, q as publishedMinorRule, qn as readWorkflow, qt as mainCheck, r as createContext, rn as moduleMessage, rr as keyLine, rt as jobFails, s as runChecks, sn as homePackage, sr as parseJsonc, st as pipeFails, t as USAGE, tn as repositoryIsPublic, tr as hasFile, tt as playwrightInstall, u as summaryMarkdown, un as reposOf, ur as repositoryOfRemote, ut as pinnedGitDeps, v as RULES, vn as mergeHomes, vt as pagesSite, w as versionTitle, wn as serviceRunMain, wt as PRIVATE_NAMES_FILE_CONFIG, x as workflowParses, xn as readOverlay, xt as packNoBuildinfo, y as workspaceProtocol, yn as npmDrift, yt as exportsRequire, z as sharedDocsRule, zn as ACTIONS_COMMIT, zt as lineNameHits } from "./run-DyUvPasP.js";
2
2
  import { OWNERS, ownerOf, ownersOf, sharedNames } from "./owners.js";
3
3
  import { a as packageFolders, i as isWorkspaceFolder, l as workspaceGlobs, n as globFolders, o as parseWorkspaceGlobs, r as globToRegExp } from "./workspace-_CIq-8ei.js";
4
4
  // src/release-text.ts
@@ -66,6 +66,6 @@ function releaseNotes(name, version, changelog) {
66
66
  if (section.length <= 1e5) return section;
67
67
  return `${section.slice(0, MAX_NOTES)}\n\n(The CHANGELOG.md of \`${name}\` has the full text.)`;
68
68
  }
69
- export { ACTIONS_COMMIT, 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, OWNERS, 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, hiddenFailures, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSourcePath, isWorkspaceFolder, jobFails, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, prPathFilters, prePush, privateNamesFile, privateNamesFiles, 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, runPrePushArgs, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, sharedNames, signaturesOf, siteCheckInCi, sourceMain, specifiersOf, startsTests, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
69
+ 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, OWNERS, 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, hiddenFailures, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSourcePath, isWorkspaceFolder, jobFails, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseCatFileBatch, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, prPathFilters, prePush, privateNamesFile, privateNamesFiles, 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, runGitShow, runPrePushArgs, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, sourceMain, specifiersOf, startsTests, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
70
70
 
71
71
  //# sourceMappingURL=index.js.map
@@ -125,6 +125,11 @@ function replaceLine(text, line, lines) {
125
125
  all.splice(line - 1, 1, ...lines);
126
126
  return all.join(eol);
127
127
  }
128
+ /** This function gives the text of the file of each `<commit>:<path>`, or undefined, in one start of git when the context can. */
129
+ function showFiles(context, specs) {
130
+ if (specs.length === 0) return [];
131
+ return context.gitShow !== void 0 ? context.gitShow(specs) : specs.map((spec) => context.git(["show", spec]));
132
+ }
128
133
  /** The days from the release of a new rule to its day `failsFrom`, at the least. In this time the owners fix the breaks. */
129
134
  const RULE_WARN_DAYS = 14;
130
135
  /** This function tells if the environment is a CI run: `CI` is `true` or `1`, or `GITHUB_ACTIONS` is `true`. */
@@ -199,6 +204,53 @@ function readJsonc(file) {
199
204
  return;
200
205
  }
201
206
  }
207
+ /**
208
+ * This function gives the text of the blob of each `<commit>:<path>` in `root`, with one start of `git cat-file --batch`.
209
+ * It gives undefined for each name that git does not have or that is not a file. A name with a line break goes to
210
+ * `git show`.
211
+ */
212
+ function runGitShow(root, specs) {
213
+ const batch = specs.filter((spec) => !/[\r\n]/.test(spec));
214
+ let texts = [];
215
+ if (batch.length > 0) {
216
+ const result = spawnSync("git", ["cat-file", "--batch"], {
217
+ cwd: root,
218
+ input: `${batch.join("\n")}\n`,
219
+ maxBuffer: 268435456,
220
+ windowsHide: true
221
+ });
222
+ texts = result.error || result.status !== 0 ? batch.map(() => void 0) : parseCatFileBatch(result.stdout, batch.length);
223
+ }
224
+ const indexOf = new Map(batch.map((spec, index) => [spec, index]));
225
+ return specs.map((spec) => {
226
+ const index = indexOf.get(spec);
227
+ return index !== void 0 && index < texts.length ? texts[index] : runGit(root, ["show", spec]);
228
+ });
229
+ }
230
+ /**
231
+ * This function reads the output of `git cat-file --batch` for `count` names. It gives the text of each blob, or
232
+ * undefined for a name that git does not have or that is not a blob. It gives fewer than `count` entries when the output
233
+ * ends early.
234
+ */
235
+ function parseCatFileBatch(out, count) {
236
+ const data = Buffer.from(out.buffer, out.byteOffset, out.byteLength);
237
+ const texts = [];
238
+ let at = 0;
239
+ while (texts.length < count) {
240
+ const end = data.indexOf(10, at);
241
+ if (end < 0) break;
242
+ const header = data.toString("utf8", at, end).split(" ");
243
+ at = end + 1;
244
+ const size = Number(header.at(-1));
245
+ if (header.length !== 3 || !/^[0-9a-f]+$/.test(header[0] ?? "") || !Number.isInteger(size)) {
246
+ texts.push(void 0);
247
+ continue;
248
+ }
249
+ texts.push(header[1] === "blob" ? data.toString("utf8", at, at + size) : void 0);
250
+ at += size + 1;
251
+ }
252
+ return texts;
253
+ }
202
254
  /** This function starts git in `root` with `args`, and gives its output, or undefined when git fails. */
203
255
  function runGit(root, args) {
204
256
  const result = spawnSync("git", [...args], {
@@ -18556,7 +18608,15 @@ function unreleasedChangeRule(lookup = npmLookup) {
18556
18608
  const fork = push ? range.ends[0] : context.git(["merge-base", ...range.ends])?.trim();
18557
18609
  const notes = [];
18558
18610
  if (fork === void 0) notes.push(`the checkout does not have the merge base of ${range.ends.join(" and ")}, so the rule cannot tell if the change sets a version`);
18559
- const manifestAt = (ref, pkg) => ref === "HEAD" ? pkg.manifest : parseManifest(context.git(["show", `${ref}:${pkg.file}`]));
18611
+ const refs = [.../* @__PURE__ */ new Set([
18612
+ range.ends[0],
18613
+ range.ends[1],
18614
+ ...fork === void 0 ? [] : [fork]
18615
+ ])].filter((ref) => ref !== "HEAD");
18616
+ const specs = published.flatMap((pkg) => refs.map((ref) => `${ref}:${pkg.file}`));
18617
+ const shown = showFiles(context, specs);
18618
+ const texts = new Map(specs.map((spec, index) => [spec, shown[index]]));
18619
+ const manifestAt = (ref, pkg) => ref === "HEAD" ? pkg.manifest : parseManifest(texts.has(`${ref}:${pkg.file}`) ? texts.get(`${ref}:${pkg.file}`) : context.git(["show", `${ref}:${pkg.file}`]));
18560
18620
  const versionOf = (manifest) => typeof manifest?.["version"] === "string" ? manifest["version"] : void 0;
18561
18621
  const candidates = [];
18562
18622
  for (const pkg of published) {
@@ -20466,9 +20526,8 @@ function namedVersions(title) {
20466
20526
  }
20467
20527
  return found;
20468
20528
  }
20469
- /** This function gives the version of a `package.json` at a commit, or undefined. */
20470
- function versionAt(context, commit, file) {
20471
- const text = context.git(["show", `${commit}:${file}`]);
20529
+ /** This function gives the version in the text of a `package.json`, or undefined. */
20530
+ function versionIn(text) {
20472
20531
  if (text === void 0) return void 0;
20473
20532
  try {
20474
20533
  const value = JSON.parse(text).version;
@@ -20490,13 +20549,29 @@ function setVersions(context, from, to) {
20490
20549
  "**/package.json"
20491
20550
  ]);
20492
20551
  if (out === void 0) return void 0;
20493
- const versions = [];
20494
- for (const file of out.split(/\r?\n/).filter((line) => line !== "")) {
20495
- const after = versionAt(context, to, file);
20496
- if (after !== void 0 && after !== versionAt(context, from, file) && !versions.includes(after)) versions.push(after);
20497
- }
20498
- return versions;
20552
+ return setVersionsOf(context, [{
20553
+ from,
20554
+ to,
20555
+ files: out.split(/\r?\n/).filter((line) => line !== "")
20556
+ }])[0];
20557
+ }
20558
+ /** This function gives the versions that each change sets, with one read of git for all the files of all the changes. */
20559
+ function setVersionsOf(context, changes) {
20560
+ const texts = showFiles(context, changes.flatMap((change) => change.files.flatMap((file) => [`${change.to}:${file}`, `${change.from}:${file}`])));
20561
+ let index = 0;
20562
+ return changes.map((change) => {
20563
+ const versions = [];
20564
+ for (let file = 0; file < change.files.length; file++) {
20565
+ const after = versionIn(texts[index]);
20566
+ const before = versionIn(texts[index + 1]);
20567
+ index += 2;
20568
+ if (after !== void 0 && after !== before && !versions.includes(after)) versions.push(after);
20569
+ }
20570
+ return versions;
20571
+ });
20499
20572
  }
20573
+ /** This function tells if a path is a `package.json` file. */
20574
+ const isManifest = (file) => file === "package.json" || file.endsWith("/package.json");
20500
20575
  /**
20501
20576
  * This function gives the versions that a merge of HEAD into `base` sets, with `fork` as the merge base. They are the
20502
20577
  * versions of each `package.json` that the change (from `fork` to HEAD) changes, less each version that `base` has
@@ -20514,11 +20589,17 @@ function mergeSetVersions(context, base, fork) {
20514
20589
  "**/package.json"
20515
20590
  ]);
20516
20591
  if (out === void 0) return void 0;
20592
+ const files = out.split(/\r?\n/).filter((line) => line !== "");
20593
+ const texts = showFiles(context, files.flatMap((file) => [
20594
+ `HEAD:${file}`,
20595
+ `${fork}:${file}`,
20596
+ `${base}:${file}`
20597
+ ]));
20517
20598
  const versions = [];
20518
- for (const file of out.split(/\r?\n/).filter((line) => line !== "")) {
20519
- const after = versionAt(context, "HEAD", file);
20599
+ for (let index = 0; index < files.length; index++) {
20600
+ const after = versionIn(texts[3 * index]);
20520
20601
  if (after === void 0 || versions.includes(after)) continue;
20521
- if (after !== versionAt(context, fork, file) && after !== versionAt(context, base, file)) versions.push(after);
20602
+ if (after !== versionIn(texts[3 * index + 1]) && after !== versionIn(texts[3 * index + 2])) versions.push(after);
20522
20603
  }
20523
20604
  return versions;
20524
20605
  }
@@ -20589,31 +20670,37 @@ const versionTitle = {
20589
20670
  const range = rangeOf(context, { push: true });
20590
20671
  if ("skipped" in range) return range;
20591
20672
  const out = context.git([
20592
- "rev-list",
20673
+ "log",
20593
20674
  "--first-parent",
20675
+ "--no-renames",
20676
+ "--name-only",
20677
+ "--format=%x1e%H%x00%P%x00%s",
20594
20678
  ...range.log
20595
20679
  ]);
20596
20680
  if (out === void 0) return { skipped: "git cannot give the commits of the change" };
20681
+ const titled = [];
20682
+ for (const record of out.split("").slice(1)) {
20683
+ const [head = "", ...names] = record.split(/\r?\n/);
20684
+ const [commit = "", parents = "", subject = ""] = head.split("\0");
20685
+ const title = subject.trim();
20686
+ if (namedVersions(title).length === 0 || parents.trim() === "") continue;
20687
+ const files = names.map((name) => name.trim()).filter(isManifest);
20688
+ titled.push({
20689
+ commit,
20690
+ title,
20691
+ change: {
20692
+ from: `${commit}^1`,
20693
+ to: commit,
20694
+ files
20695
+ }
20696
+ });
20697
+ }
20698
+ const sets = setVersionsOf(context, titled.map((entry) => entry.change));
20597
20699
  const breaks = [];
20598
- for (const commit of out.split(/\r?\n/).filter((line) => line !== "")) {
20599
- const title = context.git([
20600
- "log",
20601
- "-1",
20602
- "--format=%s",
20603
- commit
20604
- ])?.trim();
20605
- if (title === void 0 || namedVersions(title).length === 0) continue;
20606
- if (context.git([
20607
- "rev-parse",
20608
- "--verify",
20609
- "--quiet",
20610
- `${commit}^1^{commit}`
20611
- ]) === void 0) continue;
20612
- const set = setVersions(context, `${commit}^1`, commit);
20613
- if (set === void 0) continue;
20614
- const found = breakOf(title, set, "package.json", `The commit ${commit.slice(0, 7)}`);
20700
+ titled.forEach(({ commit, title }, index) => {
20701
+ const found = breakOf(title, sets[index] ?? [], "package.json", `The commit ${commit.slice(0, 7)}`);
20615
20702
  if (found !== void 0) breaks.push(found);
20616
- }
20703
+ });
20617
20704
  return breaks;
20618
20705
  }
20619
20706
  };
@@ -21299,6 +21386,8 @@ function createContext(root, config, options = {}) {
21299
21386
  const rootPackage = readPackage(root, root);
21300
21387
  const packages = packageFolders(root, config.packages ?? void 0).filter((dir) => resolve(dir) !== resolve(root)).map((dir) => readPackage(root, dir));
21301
21388
  let files = null;
21389
+ const outputs = /* @__PURE__ */ new Map();
21390
+ const shown = /* @__PURE__ */ new Map();
21302
21391
  return {
21303
21392
  root,
21304
21393
  rootPackage,
@@ -21317,7 +21406,17 @@ function createContext(root, config, options = {}) {
21317
21406
  }
21318
21407
  return files;
21319
21408
  },
21320
- git: (args) => runGit(root, args)
21409
+ git(args) {
21410
+ const key = args.join("\0");
21411
+ if (!outputs.has(key)) outputs.set(key, runGit(root, args));
21412
+ return outputs.get(key);
21413
+ },
21414
+ gitShow(specs) {
21415
+ const missing = [...new Set(specs.filter((spec) => !shown.has(spec)))];
21416
+ const texts = runGitShow(root, missing);
21417
+ missing.forEach((spec, index) => shown.set(spec, texts[index]));
21418
+ return specs.map((spec) => shown.get(spec));
21419
+ }
21321
21420
  };
21322
21421
  }
21323
21422
  /** This function starts each rule on the repository at `options.root`, and gives the result of each rule. */
@@ -21777,6 +21876,6 @@ function runHook(args, io) {
21777
21876
  git: (gitArgs) => runGit(io.cwd, gitArgs)
21778
21877
  }, io);
21779
21878
  }
21780
- export { unreleasedChange as $, cleanPath as $n, licenseFileOf as $t, scriptsOf as A, callsSharedCi as An, privateNamesFiles as At, roadmapOfLine as B, convertGate as Bn, mergePrivateNames as Bt, setVersions as C, runCalls as Cn, HOME_PATTERNS as Ct, trustPolicy as D, SHARED_ACTIONS as Dn, invalidPatternBreaks as Dt, TRAIN_SCOPES as E, tsconfigTest as En, PRIVATE_PATTERNS_VARIABLE as Et, sourceMain as F, SECURITY_TIMEOUT_MINUTES as Fn, firstNameMatch as Ft, minorOf as G, parseWorkflow as Gn, REAL_COMPARE as Gt, requiredScripts as H, prPathFilters as Hn, parsePrivateNames as Ht, HOME_TIMEOUT_MS as I, securityCallers as In, isAllowedHit as It, reachOf as J, yamlFaults as Jn, coverageProvider as Jt, publishedMinor as K, readAction as Kn, hasImportMetaMain as Kt, blockHash as L, securityOneJob as Ln, isCommonUse as Lt, testsRequired as M, setupCue as Mn, privateTextBreaks as Mt, isSourcePath as N, SECURITY_SCAN_COMMIT as Nn, PRIVATE_NAME_LIST as Nt, typedScripts as O, SHARED_CI as On, noLocalPaths as Ot, pathsOf as P, SECURITY_SCAN_INPUTS as Pn, PrivateNameListError as Pt, npmLookup as Q, RULE_WARN_DAYS as Qn, licenseFile as Qt, githubFetch as R, withOneJob as Rn, lineNameHit as Rt, namedVersions as S, SERVICE_PACKAGE as Sn, DEFAULT_ALLOWED as St, IGNORE_AFTER as T, hasTests as Tn, PRIVATE_NAMES_FILE_VARIABLE as Tt, releaseFiles as U, summaryName as Un, pathNameHit as Ut, roadmapParses as V, gateTrigger as Vn, nameMatches as Vt, lockedVersions as W, gateAfterCancel as Wn, noBuildOutput as Wt, SHIPPED_FIELDS as X, cuePreset as Xn, LICENSE_TEXTS as Xt, NPM_REGISTRY as Y, STRICT_OPTIONS as Yn, apiReportScript as Yt, UNSHIPPED_FILES as Z, DEPENDENCY_FIELDS as Zn, authorOf as Zt, runPrePushArgs as _, mapText as _n, pagesCalls as _t, listRules as a, modulesOf as an, matchesAny as ar, startsTests as at, GITHUB_YAML as b, npmNames as bn, publishTextSafe as bt, runCli as c, messageOf as cn, replaceLine as cr, isGitSpecifier as ct, HOOK_MARKER as d, signaturesOf as dn, specifiersOf as dr, siteCheckInCi as dt, mitText as en, codePackages as er, unreleasedChangeRule as et, NO_READ_LINE as f, HOME_EXPORTS as fn, defaultOptions as fr, pagesAfterRelease as ft, prePush as g, mapMarkdown as gn, PAGES_WORKFLOWS as gt, parsePrePushArgs as h, findHomes as hn, pushMainOnly as ht, formatResult as i, moduleUses as in, lineOf as ir, parseAdvisory as it, typedFiles as j, sharedCi as jn, privatePatterns as jt, configsOfScript as k, SHARED_WORKFLOWS as kn, privateNamesFile as kt, runFix as l, repoOf as ln, repositoryOfRemote as lr, isPinned as lt, installHook as m, MAP_RULE as mn, parseRuleConfig as mr, scheduleMinute as mt, annotations as n, homeModule as nn, inFolder as nr, hiddenFailures as nt, readConfig as o, declaredName as on, parseJsonc as or, swallowsTests as ot, PRE_PUSH_HOOK as p, HOMES as pn, parseConfig as pr, runnerBudget as pt, publishedMinorRule as q, readWorkflow as qn, mainCheck as qt, createContext as r, moduleMessage as rn, keyLine as rr, jobFails as rt, runChecks as s, homePackage as sn, readJsonc as sr, pipeFails as st, USAGE as t, repositoryIsPublic as tn, hasFile as tr, playwrightInstall as tt, summaryMarkdown as u, reposOf as un, runGit as ur, pinnedGitDeps as ut, RULES as v, mergeHomes as vn, pagesSite as vt, versionTitle as w, serviceRunMain as wn, PRIVATE_NAMES_FILE_CONFIG as wt, workflowParses as x, readOverlay as xn, packNoBuildinfo as xt, workspaceProtocol as y, npmDrift as yn, exportsRequire as yt, sharedDocsRule as z, ACTIONS_COMMIT as zn, lineNameHits as zt };
21879
+ export { unreleasedChange as $, cleanPath as $n, licenseFileOf as $t, scriptsOf as A, callsSharedCi as An, privateNamesFiles as At, roadmapOfLine as B, convertGate as Bn, mergePrivateNames as Bt, setVersions as C, runCalls as Cn, HOME_PATTERNS as Ct, trustPolicy as D, SHARED_ACTIONS as Dn, invalidPatternBreaks as Dt, TRAIN_SCOPES as E, tsconfigTest as En, PRIVATE_PATTERNS_VARIABLE as Et, sourceMain as F, SECURITY_TIMEOUT_MINUTES as Fn, firstNameMatch as Ft, minorOf as G, parseWorkflow as Gn, REAL_COMPARE as Gt, requiredScripts as H, prPathFilters as Hn, parsePrivateNames as Ht, HOME_TIMEOUT_MS as I, securityCallers as In, isAllowedHit as It, reachOf as J, yamlFaults as Jn, coverageProvider as Jt, publishedMinor as K, readAction as Kn, hasImportMetaMain as Kt, blockHash as L, securityOneJob as Ln, isCommonUse as Lt, testsRequired as M, setupCue as Mn, privateTextBreaks as Mt, isSourcePath as N, SECURITY_SCAN_COMMIT as Nn, PRIVATE_NAME_LIST as Nt, typedScripts as O, SHARED_CI as On, noLocalPaths as Ot, pathsOf as P, SECURITY_SCAN_INPUTS as Pn, PrivateNameListError as Pt, npmLookup as Q, RULE_WARN_DAYS as Qn, licenseFile as Qt, githubFetch as R, withOneJob as Rn, lineNameHit as Rt, namedVersions as S, SERVICE_PACKAGE as Sn, DEFAULT_ALLOWED as St, IGNORE_AFTER as T, hasTests as Tn, PRIVATE_NAMES_FILE_VARIABLE as Tt, releaseFiles as U, summaryName as Un, pathNameHit as Ut, roadmapParses as V, gateTrigger as Vn, nameMatches as Vt, lockedVersions as W, gateAfterCancel as Wn, noBuildOutput as Wt, SHIPPED_FIELDS as X, cuePreset as Xn, LICENSE_TEXTS as Xt, NPM_REGISTRY as Y, STRICT_OPTIONS as Yn, apiReportScript as Yt, UNSHIPPED_FILES as Z, DEPENDENCY_FIELDS as Zn, authorOf as Zt, runPrePushArgs as _, mapText as _n, parseRuleConfig as _r, pagesCalls as _t, listRules as a, modulesOf as an, matchesAny as ar, startsTests as at, GITHUB_YAML as b, npmNames as bn, publishTextSafe as bt, runCli as c, messageOf as cn, readJsonc as cr, isGitSpecifier as ct, HOOK_MARKER as d, signaturesOf as dn, runGit as dr, siteCheckInCi as dt, mitText as en, codePackages as er, unreleasedChangeRule as et, NO_READ_LINE as f, HOME_EXPORTS as fn, runGitShow as fr, pagesAfterRelease as ft, prePush as g, mapMarkdown as gn, parseConfig as gr, PAGES_WORKFLOWS as gt, parsePrePushArgs as h, findHomes as hn, defaultOptions as hr, pushMainOnly as ht, formatResult as i, moduleUses as in, lineOf as ir, parseAdvisory as it, typedFiles as j, sharedCi as jn, privatePatterns as jt, configsOfScript as k, SHARED_WORKFLOWS as kn, privateNamesFile as kt, runFix as l, repoOf as ln, replaceLine as lr, isPinned as lt, installHook as m, MAP_RULE as mn, specifiersOf as mr, scheduleMinute as mt, annotations as n, homeModule as nn, inFolder as nr, hiddenFailures as nt, readConfig as o, declaredName as on, parseCatFileBatch as or, swallowsTests as ot, PRE_PUSH_HOOK as p, HOMES as pn, showFiles as pr, runnerBudget as pt, publishedMinorRule as q, readWorkflow as qn, mainCheck as qt, createContext as r, moduleMessage as rn, keyLine as rr, jobFails as rt, runChecks as s, homePackage as sn, parseJsonc as sr, pipeFails as st, USAGE as t, repositoryIsPublic as tn, hasFile as tr, playwrightInstall as tt, summaryMarkdown as u, reposOf as un, repositoryOfRemote as ur, pinnedGitDeps as ut, RULES as v, mergeHomes as vn, pagesSite as vt, versionTitle as w, serviceRunMain as wn, PRIVATE_NAMES_FILE_CONFIG as wt, workflowParses as x, readOverlay as xn, packNoBuildinfo as xt, workspaceProtocol as y, npmDrift as yn, exportsRequire as yt, sharedDocsRule as z, ACTIONS_COMMIT as zn, lineNameHits as zt };
21781
21880
 
21782
- //# sourceMappingURL=run-DHR-sa4C.js.map
21881
+ //# sourceMappingURL=run-DyUvPasP.js.map