@mark1russell7/conventions 0.48.0 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -179,7 +179,7 @@ An unknown rule, an unknown option, or an exception or a changed option without
179
179
  | `--no-base` | Do not use a default base. |
180
180
  | `--json` | Write the result as JSON. |
181
181
  | `pre-push <remote> [<url>]` | Examine the new commits of a push with the private name list. The git hook `pre-push` starts it. |
182
- | `pre-push --base <ref> [--head <ref>]` | Examine the commits of `<base>..<head>` (the default head is `HEAD`) and the text of the pull request of the run, with the same rules. The shared CI starts it. |
182
+ | `pre-push --base <ref> [--head <ref>]` | Examine the commits of `<base>..<head>` (the default head is `HEAD`) and the text of the pull request of the run, with the same rules. The shared CI starts a bundle of this command before the install. |
183
183
  | `hook install` | Write the git hook `pre-push`. In CI, or outside a git repository, the command does nothing. |
184
184
 
185
185
  A run that `workflow_dispatch` starts has no pull request in its event file. A person can start the gates of a pull request in this way. For such a run, the shared CI finds the pull request of the branch, and gives two environment variables to the check:
@@ -308,7 +308,7 @@ The package also exports the functions of the tool:
308
308
  - `runChecks(options)` starts the rules and gives the result of each rule. `runFix(options)` writes the edits and gives the changed files and the last result. `runCli(args, io)` is the bin.
309
309
  - `replaceLine(text, line, lines)` gives the text with one line replaced, for the edits of a rule.
310
310
  - `formatResult(result)`, `summaryMarkdown(result)`, `annotations(result)` and `listRules(config)` give the output.
311
- - `parseConfig(value, rules)` and `readConfig(root)` read the field `conventions`.
311
+ - `parseConfig(value, rules)` and `readConfig(root)` read the field `conventions`. `parseRuleConfig(value, rule)` reads the entry of one rule, and not the other entries.
312
312
  - `OWNERS` is the list of the owners, with `ownerOf(login)`, `ownersOf(value)` and `sharedNames(repos)`. The subpath `@mark1russell7/conventions/owners` gives them and no other code.
313
313
  - `HOMES` is the map of homes. `findHomes(query)` finds the homes of words, and `mapMarkdown(homes)` and `mapText(homes)` write them. `readOverlay(file)` and `mergeHomes(base, extra)` add more homes.
314
314
  - `tagName(name, version, packageCount)` gives the git tag of a version. `releaseNotes(name, version, changelog)` gives the text of its GitHub release, with `changelogSection`, `npmUrl` and `MAX_NOTES`. The script `scripts/release/tags.ts` keeps the same rule, and a test compares the two.
@@ -323,4 +323,4 @@ The package also exports the functions of the tool:
323
323
  - `lineNameHits(list, line, place)` and `nameMatches(line, names)` give each name of a line, one hit for each name. A scan that counts the names uses them. The gate takes the first hit.
324
324
  - `privateNamesFiles(env, git)`, `privateNamesFile(env, git)`, `privatePatterns(env)` and `invalidPatternBreaks(patterns)` read the settings and the patterns. `privateNamesFiles` gives each path, and `privateNamesFile` gives one.
325
325
  - `mergePrivateNames(lists)` merges the lists in order. It throws a `PrivateNameListError` when two lists have the same id.
326
- - `prePush(options, io)` is the command `pre-push`. With the option `base`, it is the check of a change in CI. `installHook(options, io)` is the command `hook install`. `PRE_PUSH_HOOK` is the text of the hook.
326
+ - `prePush(options, io)` is the command `pre-push`. With the option `base`, it is the check of a change in CI. `parsePrePushArgs(args)` reads its arguments, and `runPrePushArgs(args, io)` starts it in the git root. The bundle `private-names.mjs` of the shared actions uses these two functions. `installHook(options, io)` is the command `hook install`. `PRE_PUSH_HOOK` is the text of the hook.
package/build/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as runCli } from "./run-BonUEmhi.js";
2
+ import { c as runCli } from "./run-BY_nuN_V.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  // src/cli.ts
5
5
  try {
package/build/index.d.ts CHANGED
@@ -154,6 +154,8 @@ export declare function parseJsonc(text: string): unknown;
154
154
  export declare function readJsonc(file: string): unknown;
155
155
  /** This function starts git in `root` with `args`, and gives its output, or undefined when git fails. */
156
156
  export declare function runGit(root: string, args: readonly string[]): string | undefined;
157
+ /** This function gives `owner/name` from a git remote URL, or undefined for a URL that is not of GitHub. */
158
+ export declare function repositoryOfRemote(url: string): string | undefined;
157
159
  /** This function tells if `file` exists in the folder `dir`. */
158
160
  export declare const hasFile: (dir: string, file: string) => boolean;
159
161
  /**
@@ -186,6 +188,14 @@ interface ConventionsConfig {
186
188
  }
187
189
  /** This function gives the options of a rule with their defaults. */
188
190
  export declare function defaultOptions(rule: Rule): Options;
191
+ /**
192
+ * This function reads the configuration of one rule from the field `conventions` of the root `package.json` (`value`).
193
+ * It does not examine the other rules, so it needs no list of the rules. The command `pre-push` uses it: an error in the
194
+ * entry of another rule does not change the settings of `no-local-paths`.
195
+ *
196
+ * @throws Error when the field `conventions`, its field `rules` or the entry of the rule has a wrong shape
197
+ */
198
+ export declare function parseRuleConfig(value: unknown, rule: Rule): RuleConfig;
189
199
  /**
190
200
  * This function reads the field `conventions` of the root `package.json` (`value`), and gives the
191
201
  * configuration of each rule of `rules`.
@@ -720,8 +730,6 @@ export declare const roadmapParses: Rule;
720
730
  * where GitHub has the most load.
721
731
  */
722
732
  export declare function scheduleMinute(repository: string, file: string): number;
723
- /** This function gives `owner/name` from a git remote URL, or undefined for a URL that is not of GitHub. */
724
- export declare function repositoryOfRemote(url: string): string | undefined;
725
733
  export declare const runnerBudget: Rule;
726
734
  /** The answer for one URL: the text of the file, or the reason why there is no text. */
727
735
  type HomeAnswer = {
@@ -910,6 +918,24 @@ interface PrePushOptions {
910
918
  * not that the push stops.
911
919
  */
912
920
  export declare function prePush(options: PrePushOptions, io: Pick<CliIo, "stderr">): number;
921
+ /** The arguments of the command `pre-push`. */
922
+ interface PrePushArgs {
923
+ /** The name of the remote. A check in CI (`base`) uses `origin`. */
924
+ readonly remote: string;
925
+ readonly url?: string;
926
+ readonly base?: string;
927
+ readonly head?: string;
928
+ }
929
+ /**
930
+ * This function reads the arguments of the command `pre-push`. The git hook gives the name of the remote and its URL.
931
+ * A check in CI gives `--base <ref>` and, as an option, `--head <ref>`. The function gives undefined for other arguments.
932
+ */
933
+ export declare function parsePrePushArgs(args: readonly string[]): PrePushArgs | undefined;
934
+ /**
935
+ * This function starts the command `pre-push` in the root of the git working tree of `io.cwd`. The bin and the bundle
936
+ * `private-names.mjs` of the shared actions use it. Only the git hook reads `io.stdin`.
937
+ */
938
+ export declare function runPrePushArgs(args: PrePushArgs, io: Pick<CliIo, "cwd" | "env" | "stderr" | "stdin">): number;
913
939
  /** The marker line of the hook that `conventions hook install` writes. The command rewrites only a hook with this line. */
914
940
  export declare const HOOK_MARKER = "# conventions hook: pre-push";
915
941
  /**
@@ -1010,5 +1036,5 @@ export declare function npmUrl(name: string, version: string): string;
1010
1036
  * link to npm. The Releases page of `site-pages` reads each list item as a change.
1011
1037
  */
1012
1038
  export declare function releaseNotes(name: string, version: string, changelog: string | undefined): string;
1013
- export { type Advisory, type AllowedHit, type AuditSource, type Break, type CheckOptions, type CheckResult, type CliIo, type ConventionsConfig, type Edit, type FixResult, type HiddenFailure, type Home, type HomeAnswer, type HomeFetch, type HomeModule, type HomeState, type HookOptions, type LinePlace, type Manifest, type Minor, type ModuleUse, type NameHit, type NameRule, type NpmDrift, type NpmDriftKind, type NpmPresence, OWNERS, type OptionSpec, type OptionValue, type Options, type Owner, type PackageInfo, type PagesCall, type PathFilter, type PrePushOptions, type PrivateNameList, type PrivatePattern, type PrivateSources, type RegistryAnswer, type RegistryLookup, type Rule, type RuleConfig, type RuleContext, type RuleOutcome, type RuleResult, type SecurityCaller, type TextBreakOptions, type Workflow, type WorkflowInput, type WorkflowJob, type WorkflowStep, type YamlFault, globFolders, globToRegExp, isWorkspaceFolder, ownerOf, ownersOf, packageFolders, parseWorkspaceGlobs, sharedNames, workspaceGlobs };
1039
+ export { type Advisory, type AllowedHit, type AuditSource, type Break, type CheckOptions, type CheckResult, type CliIo, type ConventionsConfig, type Edit, type FixResult, type HiddenFailure, type Home, type HomeAnswer, type HomeFetch, type HomeModule, type HomeState, type HookOptions, type LinePlace, type Manifest, type Minor, type ModuleUse, type NameHit, type NameRule, type NpmDrift, type NpmDriftKind, type NpmPresence, OWNERS, type OptionSpec, type OptionValue, type Options, type Owner, type PackageInfo, type PagesCall, type PathFilter, type PrePushArgs, type PrePushOptions, type PrivateNameList, type PrivatePattern, type PrivateSources, type RegistryAnswer, type RegistryLookup, type Rule, type RuleConfig, type RuleContext, type RuleOutcome, type RuleResult, type SecurityCaller, type TextBreakOptions, type Workflow, type WorkflowInput, type WorkflowJob, type WorkflowStep, type YamlFault, globFolders, globToRegExp, isWorkspaceFolder, ownerOf, ownersOf, packageFolders, parseWorkspaceGlobs, sharedNames, workspaceGlobs };
1014
1040
  //# sourceMappingURL=index.d.ts.map
@@ -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/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-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WAAW,cAAc,eAAe;;;;;;;;qBC1T3C;;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/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,Y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,WAAW,cAAc,eAAe;;;;;;;;qBC1T3C;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as unreleasedChangeRule, $n as hasFile, $t as licenseFileOf, A as typedFiles, An as callsSharedCi, At as privateNamesFiles, B as roadmapParses, Bn as convertGate, Bt as mergePrivateNames, C as versionTitle, Cn as runCalls, Ct as HOME_PATTERNS, D as typedScripts, Dn as SHARED_ACTIONS, Dt as invalidPatternBreaks, E as trustPolicy, En as tsconfigTest, Et as PRIVATE_PATTERNS_VARIABLE, F as HOME_TIMEOUT_MS, Fn as SECURITY_TIMEOUT_MINUTES, Ft as firstNameMatch, G as publishedMinor, Gn as readAction, Gt as REAL_COMPARE, H as releaseFiles, Hn as prPathFilters, Ht as parsePrivateNames, I as blockHash, In as securityCallers, It as isAllowedHit, J as NPM_REGISTRY, Jn as cuePreset, Jt as coverageProvider, K as publishedMinorRule, Kn as readWorkflow, Kt as hasImportMetaMain, L as githubFetch, Ln as securityOneJob, Lt as isCommonUse, M as isSourcePath, Mn as setupCue, Mt as privateTextBreaks, N as pathsOf, Nn as SECURITY_SCAN_COMMIT, Nt as PRIVATE_NAME_LIST, O as configsOfScript, On as SHARED_CI, Ot as noLocalPaths, P as sourceMain, Pn as SECURITY_SCAN_INPUTS, Pt as PrivateNameListError, Q as unreleasedChange, Qn as codePackages, Qt as licenseFile, R as sharedDocsRule, Rn as withOneJob, Rt as lineNameHit, S as setVersions, Sn as SERVICE_PACKAGE, St as DEFAULT_ALLOWED, T as TRAIN_SCOPES, Tn as hasTests, Tt as PRIVATE_NAMES_FILE_VARIABLE, U as lockedVersions, Un as summaryName, Ut as pathNameHit, V as requiredScripts, Vn as gateTrigger, Vt as nameMatches, W as minorOf, Wn as gateAfterCancel, Wt as noBuildOutput, X as UNSHIPPED_FILES, Xn as RULE_WARN_DAYS, Xt as LICENSE_TEXTS, Y as SHIPPED_FIELDS, Yn as DEPENDENCY_FIELDS, Yt as apiReportScript, Z as npmLookup, Zn as cleanPath, Zt as authorOf, _ as workspaceProtocol, _n as mapText, _t as pagesCalls, a as listRules, an as modulesOf, ar as readJsonc, at as swallowsTests, b as yamlFaults, bn as npmNames, bt as publishTextSafe, c as runCli, cn as messageOf, cr as specifiersOf, ct as isPinned, d as HOOK_MARKER, dn as signaturesOf, dt as pagesAfterRelease, en as mitText, er as inFolder, et as playwrightInstall, f as NO_READ_LINE, fn as HOME_EXPORTS, ft as repositoryOfRemote, g as RULES, gn as mapMarkdown, gt as PAGES_WORKFLOWS, h as prePush, hn as findHomes, ht as pushMainOnly, i as formatResult, in as moduleUses, ir as parseJsonc, it as startsTests, j as testsRequired, jn as sharedCi, jt as privatePatterns, k as scriptsOf, kn as SHARED_WORKFLOWS, kt as privateNamesFile, l as runFix, ln as repoOf, lr as defaultOptions, lt as pinnedGitDeps, m as installHook, mn as MAP_RULE, mt as scheduleMinute, n as annotations, nn as homeModule, nr as lineOf, nt as jobFails, o as readConfig, on as declaredName, or as replaceLine, ot as pipeFails, p as PRE_PUSH_HOOK, pn as HOMES, pt as runnerBudget, q as reachOf, qn as STRICT_OPTIONS, qt as mainCheck, r as createContext, rn as moduleMessage, rr as matchesAny, rt as parseAdvisory, s as runChecks, sn as homePackage, sr as runGit, st as isGitSpecifier, t as USAGE, tn as repositoryIsPublic, tr as keyLine, tt as hiddenFailures, u as summaryMarkdown, un as reposOf, ur as parseConfig, ut as siteCheckInCi, v as GITHUB_YAML, vn as mergeHomes, vt as pagesSite, w as IGNORE_AFTER, wn as serviceRunMain, wt as PRIVATE_NAMES_FILE_CONFIG, x as namedVersions, xn as readOverlay, xt as packNoBuildinfo, y as workflowParses, yn as npmDrift, yt as exportsRequire, z as roadmapOfLine, zn as ACTIONS_COMMIT, zt as lineNameHits } from "./run-BonUEmhi.js";
1
+ import { $ as npmLookup, $n as codePackages, $t as licenseFile, A as configsOfScript, An as SHARED_WORKFLOWS, At as privateNamesFile, B as sharedDocsRule, Bn as ACTIONS_COMMIT, Bt as lineNameHits, C as namedVersions, Cn as SERVICE_PACKAGE, Ct as DEFAULT_ALLOWED, D as TRAIN_SCOPES, Dn as tsconfigTest, Dt as PRIVATE_PATTERNS_VARIABLE, E as IGNORE_AFTER, En as hasTests, Et as PRIVATE_NAMES_FILE_VARIABLE, F as pathsOf, Fn as SECURITY_SCAN_INPUTS, Ft as PrivateNameListError, G as lockedVersions, Gn as gateAfterCancel, Gt as noBuildOutput, H as roadmapParses, Hn as gateTrigger, Ht as nameMatches, I as sourceMain, In as SECURITY_TIMEOUT_MINUTES, It as firstNameMatch, J as publishedMinorRule, Jn as STRICT_OPTIONS, Jt as mainCheck, K as minorOf, Kn as readAction, Kt as REAL_COMPARE, L as HOME_TIMEOUT_MS, Ln as securityCallers, Lt as isAllowedHit, M as typedFiles, Mn as sharedCi, Mt as privatePatterns, N as testsRequired, Nn as setupCue, Nt as privateTextBreaks, O as trustPolicy, On as SHARED_ACTIONS, Ot as invalidPatternBreaks, P as isSourcePath, Pn as SECURITY_SCAN_COMMIT, Pt as PRIVATE_NAME_LIST, Q as UNSHIPPED_FILES, Qn as cleanPath, Qt as authorOf, R as blockHash, Rn as securityOneJob, Rt as isCommonUse, S as yamlFaults, Sn as readOverlay, St as packNoBuildinfo, T as versionTitle, Tn as serviceRunMain, Tt as PRIVATE_NAMES_FILE_CONFIG, U as requiredScripts, Un as prPathFilters, Ut as parsePrivateNames, V as roadmapOfLine, Vn as convertGate, Vt as mergePrivateNames, W as releaseFiles, Wn as summaryName, Wt as pathNameHit, X as NPM_REGISTRY, Xn as DEPENDENCY_FIELDS, Xt as apiReportScript, Y as reachOf, Yn as cuePreset, Yt as coverageProvider, Z as SHIPPED_FIELDS, Zn as RULE_WARN_DAYS, Zt as LICENSE_TEXTS, _ as runPrePushArgs, _n as mapMarkdown, _t as PAGES_WORKFLOWS, a as listRules, an as moduleUses, ar as parseJsonc, at as parseAdvisory, b as GITHUB_YAML, bn as npmDrift, bt as exportsRequire, c as runCli, cn as homePackage, cr as repositoryOfRemote, ct as pipeFails, d as HOOK_MARKER, dn as reposOf, dr as defaultOptions, dt as pinnedGitDeps, en as licenseFileOf, er as hasFile, et as unreleasedChange, f as NO_READ_LINE, fn as signaturesOf, fr as parseConfig, ft as siteCheckInCi, g as prePush, gn as findHomes, gt as pushMainOnly, h as parsePrePushArgs, hn as MAP_RULE, ht as scheduleMinute, i as formatResult, in as moduleMessage, ir as matchesAny, it as jobFails, j as scriptsOf, jn as callsSharedCi, jt as privateNamesFiles, k as typedScripts, kn as SHARED_CI, kt as noLocalPaths, l as runFix, ln as messageOf, lr as runGit, lt as isGitSpecifier, m as installHook, mn as HOMES, mt as runnerBudget, n as annotations, nn as repositoryIsPublic, nr as keyLine, nt as playwrightInstall, o as readConfig, on as modulesOf, or as readJsonc, ot as startsTests, p as PRE_PUSH_HOOK, pn as HOME_EXPORTS, pr as parseRuleConfig, pt as pagesAfterRelease, q as publishedMinor, qn as readWorkflow, qt as hasImportMetaMain, r as createContext, rn as homeModule, rr as lineOf, rt as hiddenFailures, s as runChecks, sn as declaredName, sr as replaceLine, st as swallowsTests, t as USAGE, tn as mitText, tr as inFolder, tt as unreleasedChangeRule, u as summaryMarkdown, un as repoOf, ur as specifiersOf, ut as isPinned, v as RULES, vn as mapText, vt as pagesCalls, w as setVersions, wn as runCalls, wt as HOME_PATTERNS, x as workflowParses, xn as npmNames, xt as publishTextSafe, y as workspaceProtocol, yn as mergeHomes, yt as pagesSite, z as githubFetch, zn as withOneJob, zt as lineNameHit } from "./run-BY_nuN_V.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, parsePrivateNames, 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, 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, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, 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 };
70
70
 
71
71
  //# sourceMappingURL=index.js.map
@@ -22,6 +22,63 @@ function defaultOptions(rule) {
22
22
  return Object.fromEntries(Object.entries(rule.options).map(([name, spec]) => [name, spec.default]));
23
23
  }
24
24
  /**
25
+ * This function reads the configuration of one rule from the field `conventions` of the root `package.json` (`value`).
26
+ * It does not examine the other rules, so it needs no list of the rules. The command `pre-push` uses it: an error in the
27
+ * entry of another rule does not change the settings of `no-local-paths`.
28
+ *
29
+ * @throws Error when the field `conventions`, its field `rules` or the entry of the rule has a wrong shape
30
+ */
31
+ function parseRuleConfig(value, rule) {
32
+ if (value === void 0) return {
33
+ ignore: [],
34
+ options: defaultOptions(rule)
35
+ };
36
+ if (!isObject$1(value)) throw new Error("The field conventions of package.json must be an object.");
37
+ const rulesValue = value["rules"] ?? {};
38
+ if (!isObject$1(rulesValue)) throw new Error("conventions.rules must be an object, with a rule id for each key.");
39
+ const entry = rulesValue[rule.id];
40
+ return entry === void 0 ? {
41
+ ignore: [],
42
+ options: defaultOptions(rule)
43
+ } : parseRuleEntry(rule, entry);
44
+ }
45
+ /** This function examines the entry of one rule in `conventions.rules`, and gives its configuration. */
46
+ function parseRuleEntry(rule, entry) {
47
+ const where = `conventions.rules["${rule.id}"]`;
48
+ if (!isObject$1(entry)) throw new Error(`${where} must be an object, for example { "off": "<reason>" }.`);
49
+ const off = entry["off"];
50
+ if (off !== void 0 && (typeof off !== "string" || off.trim() === "")) throw new Error(`${where}.off must be the reason why the rule is off, as text.`);
51
+ const ignore = entry["ignore"] ?? [];
52
+ if (!isStrings(ignore)) throw new Error(`${where}.ignore must be an array of globs.`);
53
+ const reason = entry["reason"];
54
+ if (reason !== void 0 && (typeof reason !== "string" || reason.trim() === "")) throw new Error(`${where}.reason must be text.`);
55
+ if (ignore.length > 0 && reason === void 0) throw new Error(`${where}.ignore needs a reason: add "reason": "<why these files are an exception>".`);
56
+ const generated = entry["generated"] ?? [];
57
+ if (!isStrings(generated)) throw new Error(`${where}.generated must be an array of globs.`);
58
+ if (generated.length > 0 && reason === void 0) throw new Error(`${where}.generated needs a reason: add "reason": "<which build makes these files>".`);
59
+ const options = { ...defaultOptions(rule) };
60
+ const changed = [];
61
+ for (const [name, option] of Object.entries(entry)) {
62
+ if (RULE_FIELDS.includes(name)) continue;
63
+ const spec = rule.options[name];
64
+ if (spec === void 0) {
65
+ const known = [...RULE_FIELDS, ...Object.keys(rule.options)].join(", ");
66
+ throw new Error(`${where} has an unknown field: ${name}. The fields are: ${known}.`);
67
+ }
68
+ if (!(spec.type === "strings" ? isStrings(option) : typeof option === spec.type)) throw new Error(`${where}.${name} must be ${spec.type === "strings" ? "an array of strings" : `a ${spec.type}`}.`);
69
+ options[name] = option;
70
+ changed.push(name);
71
+ }
72
+ if (changed.length > 0 && reason === void 0 && off === void 0) throw new Error(`${where} changes the option${changed.length > 1 ? "s" : ""} ${changed.join(", ")}, and needs a reason: add "reason": "<why this repository changes the default>".`);
73
+ return {
74
+ ...off === void 0 ? {} : { off },
75
+ ignore,
76
+ ...generated.length === 0 ? {} : { generated },
77
+ ...reason === void 0 ? {} : { reason },
78
+ options
79
+ };
80
+ }
81
+ /**
25
82
  * This function reads the field `conventions` of the root `package.json` (`value`), and gives the
26
83
  * configuration of each rule of `rules`.
27
84
  *
@@ -45,39 +102,7 @@ function parseConfig(value, rules) {
45
102
  for (const [id, entry] of Object.entries(rulesValue)) {
46
103
  const rule = byId.get(id);
47
104
  if (rule === void 0) throw new Error(`conventions.rules has an unknown rule: ${id}. The rules are: ${[...byId.keys()].join(", ")}.`);
48
- const where = `conventions.rules["${id}"]`;
49
- if (!isObject$1(entry)) throw new Error(`${where} must be an object, for example { "off": "<reason>" }.`);
50
- const off = entry["off"];
51
- if (off !== void 0 && (typeof off !== "string" || off.trim() === "")) throw new Error(`${where}.off must be the reason why the rule is off, as text.`);
52
- const ignore = entry["ignore"] ?? [];
53
- if (!isStrings(ignore)) throw new Error(`${where}.ignore must be an array of globs.`);
54
- const reason = entry["reason"];
55
- if (reason !== void 0 && (typeof reason !== "string" || reason.trim() === "")) throw new Error(`${where}.reason must be text.`);
56
- if (ignore.length > 0 && reason === void 0) throw new Error(`${where}.ignore needs a reason: add "reason": "<why these files are an exception>".`);
57
- const generated = entry["generated"] ?? [];
58
- if (!isStrings(generated)) throw new Error(`${where}.generated must be an array of globs.`);
59
- if (generated.length > 0 && reason === void 0) throw new Error(`${where}.generated needs a reason: add "reason": "<which build makes these files>".`);
60
- const options = { ...defaultOptions(rule) };
61
- const changed = [];
62
- for (const [name, option] of Object.entries(entry)) {
63
- if (RULE_FIELDS.includes(name)) continue;
64
- const spec = rule.options[name];
65
- if (spec === void 0) {
66
- const known = [...RULE_FIELDS, ...Object.keys(rule.options)].join(", ");
67
- throw new Error(`${where} has an unknown field: ${name}. The fields are: ${known}.`);
68
- }
69
- if (!(spec.type === "strings" ? isStrings(option) : typeof option === spec.type)) throw new Error(`${where}.${name} must be ${spec.type === "strings" ? "an array of strings" : `a ${spec.type}`}.`);
70
- options[name] = option;
71
- changed.push(name);
72
- }
73
- if (changed.length > 0 && reason === void 0 && off === void 0) throw new Error(`${where} changes the option${changed.length > 1 ? "s" : ""} ${changed.join(", ")}, and needs a reason: add "reason": "<why this repository changes the default>".`);
74
- result[id] = {
75
- ...off === void 0 ? {} : { off },
76
- ignore,
77
- ...generated.length === 0 ? {} : { generated },
78
- ...reason === void 0 ? {} : { reason },
79
- options
80
- };
105
+ result[id] = parseRuleEntry(rule, entry);
81
106
  }
82
107
  return {
83
108
  ...packages === void 0 ? {} : { packages },
@@ -180,6 +205,24 @@ function runGit(root, args) {
180
205
  if (result.error || result.status !== 0) return void 0;
181
206
  return result.stdout;
182
207
  }
208
+ /** This function gives `owner/name` from a git remote URL, or undefined for a URL that is not of GitHub. */
209
+ function repositoryOfRemote(url) {
210
+ const text = url.trim();
211
+ for (const prefix of [
212
+ "git@github.com:",
213
+ "ssh://git@github.com/",
214
+ "https://github.com/",
215
+ "http://github.com/",
216
+ "git+https://github.com/"
217
+ ]) {
218
+ if (!text.startsWith(prefix)) continue;
219
+ let rest = text.slice(prefix.length);
220
+ if (rest.endsWith("/")) rest = rest.slice(0, -1);
221
+ if (rest.endsWith(".git")) rest = rest.slice(0, -4);
222
+ const parts = rest.split("/");
223
+ return parts.length === 2 && parts.every((part) => part !== "") ? rest : void 0;
224
+ }
225
+ }
183
226
  /** This function tells if `file` exists in the folder `dir`. */
184
227
  const hasFile = (dir, file) => existsSync(join(dir, file));
185
228
  /**
@@ -15543,24 +15586,6 @@ function scheduleMinute(repository, file) {
15543
15586
  }
15544
15587
  return hash % 59 + 1;
15545
15588
  }
15546
- /** This function gives `owner/name` from a git remote URL, or undefined for a URL that is not of GitHub. */
15547
- function repositoryOfRemote(url) {
15548
- const text = url.trim();
15549
- for (const prefix of [
15550
- "git@github.com:",
15551
- "ssh://git@github.com/",
15552
- "https://github.com/",
15553
- "http://github.com/",
15554
- "git+https://github.com/"
15555
- ]) {
15556
- if (!text.startsWith(prefix)) continue;
15557
- let rest = text.slice(prefix.length);
15558
- if (rest.endsWith("/")) rest = rest.slice(0, -1);
15559
- if (rest.endsWith(".git")) rest = rest.slice(0, -4);
15560
- const parts = rest.split("/");
15561
- return parts.length === 2 && parts.every((part) => part !== "") ? rest : void 0;
15562
- }
15563
- }
15564
15589
  /** This function tells if a workflow is a shared workflow (`on: workflow_call`). Its caller gives the concurrency group. */
15565
15590
  function isShared(lines) {
15566
15591
  return lines.some((line) => {
@@ -19406,16 +19431,12 @@ const ZERO = /^0+$/;
19406
19431
  const SHA = /^[0-9a-f]{40,64}$/;
19407
19432
  /**
19408
19433
  * This function reads the settings of the rule `no-local-paths` in the root `package.json`: the state, the permitted names
19409
- * and the globs of `ignore` and `generated`. They apply only to the home folders. A private pattern always counts.
19434
+ * and the globs of `ignore` and `generated`. They apply only to the home folders. A private pattern always counts. The
19435
+ * function reads only the entry of `no-local-paths`, so the bundle `private-names.mjs` does not hold the other rules.
19410
19436
  */
19411
19437
  function homeSettings(root, readFile) {
19412
19438
  try {
19413
- const config = parseConfig(JSON.parse(readFile(join(root, "package.json")))["conventions"], RULES).rules["no-local-paths"];
19414
- if (config === void 0) return {
19415
- on: true,
19416
- allow: [],
19417
- ignore: []
19418
- };
19439
+ const config = parseRuleConfig(JSON.parse(readFile(join(root, "package.json")))["conventions"], noLocalPaths);
19419
19440
  const allow = config.options["allow"];
19420
19441
  return {
19421
19442
  on: config.off === void 0,
@@ -19758,6 +19779,54 @@ function prePush(options, io) {
19758
19779
  io.stderr(`${out.join("\n")}\n`);
19759
19780
  return 1;
19760
19781
  }
19782
+ /**
19783
+ * This function reads the arguments of the command `pre-push`. The git hook gives the name of the remote and its URL.
19784
+ * A check in CI gives `--base <ref>` and, as an option, `--head <ref>`. The function gives undefined for other arguments.
19785
+ */
19786
+ function parsePrePushArgs(args) {
19787
+ const positional = [];
19788
+ const range = {};
19789
+ for (let index = 0; index < args.length; index++) {
19790
+ const arg = args[index] ?? "";
19791
+ if (arg === "--base" || arg === "--head") {
19792
+ const value = args[++index];
19793
+ if (value === void 0 || value === "" || value.startsWith("-")) return void 0;
19794
+ range[arg === "--base" ? "base" : "head"] = value;
19795
+ } else if (arg.startsWith("-")) return void 0;
19796
+ else positional.push(arg);
19797
+ }
19798
+ const { base, head } = range;
19799
+ if (base !== void 0) return positional.length > 0 ? void 0 : {
19800
+ remote: "origin",
19801
+ base,
19802
+ ...head === void 0 ? {} : { head }
19803
+ };
19804
+ const [remote, url] = positional;
19805
+ if (remote === void 0 || head !== void 0 || positional.length > 2) return void 0;
19806
+ return {
19807
+ remote,
19808
+ ...url === void 0 ? {} : { url }
19809
+ };
19810
+ }
19811
+ /**
19812
+ * This function starts the command `pre-push` in the root of the git working tree of `io.cwd`. The bin and the bundle
19813
+ * `private-names.mjs` of the shared actions use it. Only the git hook reads `io.stdin`.
19814
+ */
19815
+ function runPrePushArgs(args, io) {
19816
+ const top = runGit(io.cwd, ["rev-parse", "--show-toplevel"])?.trim() ?? "";
19817
+ const root = top === "" ? io.cwd : top;
19818
+ const { remote, url, base, head } = args;
19819
+ return prePush({
19820
+ remote,
19821
+ ...url === void 0 ? {} : { url },
19822
+ ...base === void 0 ? {} : { base },
19823
+ ...head === void 0 ? {} : { head },
19824
+ input: base === void 0 ? io.stdin ?? "" : "",
19825
+ env: io.env,
19826
+ root,
19827
+ git: (gitArgs) => runGit(root, gitArgs)
19828
+ }, io);
19829
+ }
19761
19830
  /** The marker line of the hook that `conventions hook install` writes. The command rewrites only a hook with this line. */
19762
19831
  const HOOK_MARKER = "# conventions hook: pre-push";
19763
19832
  /** The first version of the package with the command `conventions pre-push`. */
@@ -20324,40 +20393,12 @@ function runMap(args, io) {
20324
20393
  * the check of a change in CI. Then the remote is `origin`.
20325
20394
  */
20326
20395
  function runPrePush(args, io) {
20327
- const positional = [];
20328
- const range = {};
20329
- let usage = false;
20330
- for (let index = 0; index < args.length; index++) {
20331
- const arg = args[index] ?? "";
20332
- if (arg === "--base" || arg === "--head") {
20333
- const value = args[++index];
20334
- if (value === void 0 || value === "" || value.startsWith("-")) usage = true;
20335
- else range[arg === "--base" ? "base" : "head"] = value;
20336
- } else if (arg.startsWith("-")) usage = true;
20337
- else positional.push(arg);
20338
- }
20339
- const { base, head } = range;
20340
- const remote = base === void 0 ? positional[0] : "origin";
20341
- if (usage || remote === void 0 || (base === void 0 ? head !== void 0 || positional.length > 2 : positional.length > 0)) {
20396
+ const parsed = parsePrePushArgs(args);
20397
+ if (parsed === void 0) {
20342
20398
  io.stderr(`conventions: The command pre-push takes the name of the remote and, after it, its URL. In CI, it takes --base <ref> and, as an option, --head <ref>.\n\n${USAGE}`);
20343
20399
  return 2;
20344
20400
  }
20345
- const top = runGit(io.cwd, ["rev-parse", "--show-toplevel"])?.trim() ?? "";
20346
- const root = top === "" ? io.cwd : top;
20347
- const url = base === void 0 ? positional[1] : void 0;
20348
- const change = base === void 0 ? {} : {
20349
- base,
20350
- ...head === void 0 ? {} : { head }
20351
- };
20352
- return prePush({
20353
- remote,
20354
- ...url === void 0 ? {} : { url },
20355
- ...change,
20356
- input: base === void 0 ? io.stdin ?? "" : "",
20357
- env: io.env,
20358
- root,
20359
- git: (gitArgs) => runGit(root, gitArgs)
20360
- }, io);
20401
+ return runPrePushArgs(parsed, io);
20361
20402
  }
20362
20403
  /** The command `hook install`: it writes the git hook pre-push. */
20363
20404
  function runHook(args, io) {
@@ -20371,6 +20412,6 @@ function runHook(args, io) {
20371
20412
  git: (gitArgs) => runGit(io.cwd, gitArgs)
20372
20413
  }, io);
20373
20414
  }
20374
- export { unreleasedChangeRule as $, hasFile as $n, licenseFileOf as $t, typedFiles as A, callsSharedCi as An, privateNamesFiles as At, roadmapParses as B, convertGate as Bn, mergePrivateNames as Bt, versionTitle as C, runCalls as Cn, HOME_PATTERNS as Ct, typedScripts as D, SHARED_ACTIONS as Dn, invalidPatternBreaks as Dt, trustPolicy as E, tsconfigTest as En, PRIVATE_PATTERNS_VARIABLE as Et, HOME_TIMEOUT_MS as F, SECURITY_TIMEOUT_MINUTES as Fn, firstNameMatch as Ft, publishedMinor as G, readAction as Gn, REAL_COMPARE as Gt, releaseFiles as H, prPathFilters as Hn, parsePrivateNames as Ht, blockHash as I, securityCallers as In, isAllowedHit as It, NPM_REGISTRY as J, cuePreset as Jn, coverageProvider as Jt, publishedMinorRule as K, readWorkflow as Kn, hasImportMetaMain as Kt, githubFetch as L, securityOneJob as Ln, isCommonUse as Lt, isSourcePath as M, setupCue as Mn, privateTextBreaks as Mt, pathsOf as N, SECURITY_SCAN_COMMIT as Nn, PRIVATE_NAME_LIST as Nt, configsOfScript as O, SHARED_CI as On, noLocalPaths as Ot, sourceMain as P, SECURITY_SCAN_INPUTS as Pn, PrivateNameListError as Pt, unreleasedChange as Q, codePackages as Qn, licenseFile as Qt, sharedDocsRule as R, withOneJob as Rn, lineNameHit as Rt, setVersions as S, SERVICE_PACKAGE as Sn, DEFAULT_ALLOWED as St, TRAIN_SCOPES as T, hasTests as Tn, PRIVATE_NAMES_FILE_VARIABLE as Tt, lockedVersions as U, summaryName as Un, pathNameHit as Ut, requiredScripts as V, gateTrigger as Vn, nameMatches as Vt, minorOf as W, gateAfterCancel as Wn, noBuildOutput as Wt, UNSHIPPED_FILES as X, RULE_WARN_DAYS as Xn, LICENSE_TEXTS as Xt, SHIPPED_FIELDS as Y, DEPENDENCY_FIELDS as Yn, apiReportScript as Yt, npmLookup as Z, cleanPath as Zn, authorOf as Zt, workspaceProtocol as _, mapText as _n, pagesCalls as _t, listRules as a, modulesOf as an, readJsonc as ar, swallowsTests as at, yamlFaults as b, npmNames as bn, publishTextSafe as bt, runCli as c, messageOf as cn, specifiersOf as cr, isPinned as ct, HOOK_MARKER as d, signaturesOf as dn, pagesAfterRelease as dt, mitText as en, inFolder as er, playwrightInstall as et, NO_READ_LINE as f, HOME_EXPORTS as fn, repositoryOfRemote as ft, RULES as g, mapMarkdown as gn, PAGES_WORKFLOWS as gt, prePush as h, findHomes as hn, pushMainOnly as ht, formatResult as i, moduleUses as in, parseJsonc as ir, startsTests as it, testsRequired as j, sharedCi as jn, privatePatterns as jt, scriptsOf as k, SHARED_WORKFLOWS as kn, privateNamesFile as kt, runFix as l, repoOf as ln, defaultOptions as lr, pinnedGitDeps as lt, installHook as m, MAP_RULE as mn, scheduleMinute as mt, annotations as n, homeModule as nn, lineOf as nr, jobFails as nt, readConfig as o, declaredName as on, replaceLine as or, pipeFails as ot, PRE_PUSH_HOOK as p, HOMES as pn, runnerBudget as pt, reachOf as q, STRICT_OPTIONS as qn, mainCheck as qt, createContext as r, moduleMessage as rn, matchesAny as rr, parseAdvisory as rt, runChecks as s, homePackage as sn, runGit as sr, isGitSpecifier as st, USAGE as t, repositoryIsPublic as tn, keyLine as tr, hiddenFailures as tt, summaryMarkdown as u, reposOf as un, parseConfig as ur, siteCheckInCi as ut, GITHUB_YAML as v, mergeHomes as vn, pagesSite as vt, IGNORE_AFTER as w, serviceRunMain as wn, PRIVATE_NAMES_FILE_CONFIG as wt, namedVersions as x, readOverlay as xn, packNoBuildinfo as xt, workflowParses as y, npmDrift as yn, exportsRequire as yt, roadmapOfLine as z, ACTIONS_COMMIT as zn, lineNameHits as zt };
20415
+ export { npmLookup as $, codePackages as $n, licenseFile as $t, configsOfScript as A, SHARED_WORKFLOWS as An, privateNamesFile as At, sharedDocsRule as B, ACTIONS_COMMIT as Bn, lineNameHits as Bt, namedVersions as C, SERVICE_PACKAGE as Cn, DEFAULT_ALLOWED as Ct, TRAIN_SCOPES as D, tsconfigTest as Dn, PRIVATE_PATTERNS_VARIABLE as Dt, IGNORE_AFTER as E, hasTests as En, PRIVATE_NAMES_FILE_VARIABLE as Et, pathsOf as F, SECURITY_SCAN_INPUTS as Fn, PrivateNameListError as Ft, lockedVersions as G, gateAfterCancel as Gn, noBuildOutput as Gt, roadmapParses as H, gateTrigger as Hn, nameMatches as Ht, sourceMain as I, SECURITY_TIMEOUT_MINUTES as In, firstNameMatch as It, publishedMinorRule as J, STRICT_OPTIONS as Jn, mainCheck as Jt, minorOf as K, readAction as Kn, REAL_COMPARE as Kt, HOME_TIMEOUT_MS as L, securityCallers as Ln, isAllowedHit as Lt, typedFiles as M, sharedCi as Mn, privatePatterns as Mt, testsRequired as N, setupCue as Nn, privateTextBreaks as Nt, trustPolicy as O, SHARED_ACTIONS as On, invalidPatternBreaks as Ot, isSourcePath as P, SECURITY_SCAN_COMMIT as Pn, PRIVATE_NAME_LIST as Pt, UNSHIPPED_FILES as Q, cleanPath as Qn, authorOf as Qt, blockHash as R, securityOneJob as Rn, isCommonUse as Rt, yamlFaults as S, readOverlay as Sn, packNoBuildinfo as St, versionTitle as T, serviceRunMain as Tn, PRIVATE_NAMES_FILE_CONFIG as Tt, requiredScripts as U, prPathFilters as Un, parsePrivateNames as Ut, roadmapOfLine as V, convertGate as Vn, mergePrivateNames as Vt, releaseFiles as W, summaryName as Wn, pathNameHit as Wt, NPM_REGISTRY as X, DEPENDENCY_FIELDS as Xn, apiReportScript as Xt, reachOf as Y, cuePreset as Yn, coverageProvider as Yt, SHIPPED_FIELDS as Z, RULE_WARN_DAYS as Zn, LICENSE_TEXTS as Zt, runPrePushArgs as _, mapMarkdown as _n, PAGES_WORKFLOWS as _t, listRules as a, moduleUses as an, parseJsonc as ar, parseAdvisory as at, GITHUB_YAML as b, npmDrift as bn, exportsRequire as bt, runCli as c, homePackage as cn, repositoryOfRemote as cr, pipeFails as ct, HOOK_MARKER as d, reposOf as dn, defaultOptions as dr, pinnedGitDeps as dt, licenseFileOf as en, hasFile as er, unreleasedChange as et, NO_READ_LINE as f, signaturesOf as fn, parseConfig as fr, siteCheckInCi as ft, prePush as g, findHomes as gn, pushMainOnly as gt, parsePrePushArgs as h, MAP_RULE as hn, scheduleMinute as ht, formatResult as i, moduleMessage as in, matchesAny as ir, jobFails as it, scriptsOf as j, callsSharedCi as jn, privateNamesFiles as jt, typedScripts as k, SHARED_CI as kn, noLocalPaths as kt, runFix as l, messageOf as ln, runGit as lr, isGitSpecifier as lt, installHook as m, HOMES as mn, runnerBudget as mt, annotations as n, repositoryIsPublic as nn, keyLine as nr, playwrightInstall as nt, readConfig as o, modulesOf as on, readJsonc as or, startsTests as ot, PRE_PUSH_HOOK as p, HOME_EXPORTS as pn, parseRuleConfig as pr, pagesAfterRelease as pt, publishedMinor as q, readWorkflow as qn, hasImportMetaMain as qt, createContext as r, homeModule as rn, lineOf as rr, hiddenFailures as rt, runChecks as s, declaredName as sn, replaceLine as sr, swallowsTests as st, USAGE as t, mitText as tn, inFolder as tr, unreleasedChangeRule as tt, summaryMarkdown as u, repoOf as un, specifiersOf as ur, isPinned as ut, RULES as v, mapText as vn, pagesCalls as vt, setVersions as w, runCalls as wn, HOME_PATTERNS as wt, workflowParses as x, npmNames as xn, publishTextSafe as xt, workspaceProtocol as y, mergeHomes as yn, pagesSite as yt, githubFetch as z, withOneJob as zn, lineNameHit as zt };
20375
20416
 
20376
- //# sourceMappingURL=run-BonUEmhi.js.map
20417
+ //# sourceMappingURL=run-BY_nuN_V.js.map