@mark1russell7/conventions 0.38.0 → 0.38.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -255,6 +255,8 @@ The package also exports the functions of the tool:
255
255
  - `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.
256
256
  - `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.
257
257
  - `RULES` and each rule, with the helpers `isGitSpecifier`, `isPinned`, `isSourcePath` and `parseJsonc`.
258
+ - `packageFolders(root, globs)`, `globFolders(root, glob)`, `globToRegExp(glob)` and `workspaceGlobs(root)` find the package folders of a repository.
259
+ - The subpath `@mark1russell7/conventions/workspace` gives these four functions and `reportFolders(root, globs)`, and no other code. `reportFolders` adds a public root that the globs leave out. `@mark1russell7/api-report` imports them from this subpath.
258
260
  - `privateTextBreaks(name, text, privates, options)` gives the breaks of one text. The rule `no-local-paths` and the command `pre-push` use it. `privates` has the list (`names`) and the patterns (`patterns`).
259
261
  - `parsePrivateNames(text)` parses and checks a private name list. It throws a `PrivateNameListError` with a reason that shows no value of the list.
260
262
  - `lineNameHit(list, line, place)`, `pathNameHit(list, path)`, `firstNameMatch(line, names)`, `isCommonUse(line, index, rule)` and `isAllowedHit(allow, repo, path, id)` find the names of the list. They have no input or output.
package/build/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as runCli } from "./run-CWh6SR2w.js";
2
+ import { c as runCli } from "./run-DJGaAV-C.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  // src/cli.ts
5
5
  try {
package/build/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { a as workspaceGlobs, n as globToRegExp, r as packageFolders, t as globFolders } from "./workspace-BMtl0EQf.js";
1
2
  /** A row of the invariants audit that a rule comes from: the repository, the id of the rule in that audit, and the document line. */
2
3
  interface AuditSource {
3
4
  readonly repo: string;
@@ -770,10 +771,12 @@ interface WorkflowJob {
770
771
  readonly needs: readonly string[];
771
772
  readonly steps: readonly WorkflowStep[];
772
773
  }
773
- /** A shared workflow of the repository. */
774
+ /** A shared workflow of the repository, or a composite action in the same form. */
774
775
  interface Workflow {
775
776
  /** The file name, for example `reusable-pages.yml`. */
776
777
  readonly file: string;
778
+ /** The value `action` marks a composite action of {@link readAction}. A workflow has no value here. */
779
+ readonly kind?: "action";
777
780
  /** The value of `name`. */
778
781
  readonly name: string;
779
782
  /** The first lines of the comment at the top of the file. */
@@ -783,6 +786,13 @@ interface Workflow {
783
786
  }
784
787
  /** This function reads a shared workflow file. The file name goes into the result. */
785
788
  export declare function readWorkflow(file: string, text: string): Workflow;
789
+ /**
790
+ * This function reads a composite action (`action.yml`) in the form of a workflow. The steps of `runs` are the steps of
791
+ * one job `steps`. An input of a composite action has no type, so an input with the default `true` or `false` gets the
792
+ * type `boolean`. The value of such an input is still a string for the runner. The description of the action is the
793
+ * summary. An action that is not composite gives no job.
794
+ */
795
+ export declare function readAction(file: string, text: string): Workflow;
786
796
  /**
787
797
  * The rule for the git tag and the text of a GitHub release of a package version.
788
798
  *
@@ -808,29 +818,5 @@ export declare function npmUrl(name: string, version: string): string;
808
818
  * link to npm. The Releases page of `site-pages` reads each list item as a change.
809
819
  */
810
820
  export declare function releaseNotes(name: string, version: string, changelog: string | undefined): string;
811
- /**
812
- * This function gives a regular expression for a glob of `/` paths. `*` matches a part of one path
813
- * segment, `?` matches one character, `**` matches zero or more segments, and `{a,b}` matches one of
814
- * its parts. The function escapes each other special character.
815
- */
816
- export declare function globToRegExp(glob: string): RegExp;
817
- /**
818
- * This function gives the folders under `root` that a glob names, as `/` paths relative to `root`,
819
- * in the order of the code units. It does not go into `node_modules` or a folder that starts with `.`.
820
- */
821
- export declare function globFolders(root: string, glob: string): string[];
822
- /**
823
- * This function gives the globs of the workspace at `root`: the `packages` list of
824
- * `pnpm-workspace.yaml`, then the `workspaces` field of `package.json`. The result is undefined when
825
- * the repository has no workspace.
826
- */
827
- export declare function workspaceGlobs(root: string): string[] | undefined;
828
- /**
829
- * This function gives the package folders of the repository at `root`: the folders of the globs
830
- * that have a `package.json` file. A glob that starts with `!` removes folders. Without globs, the
831
- * function reads the globs of the workspace, and a repository with no workspace is one package.
832
- * The result has absolute paths, in the order of the code units.
833
- */
834
- export declare function packageFolders(root: string, globs?: readonly string[] | undefined): string[];
835
- export type { AllowedHit, AuditSource, Break, CheckOptions, CheckResult, CliIo, ConventionsConfig, Edit, FixResult, Home, HomeAnswer, HomeFetch, HomeState, HookOptions, LinePlace, Manifest, Minor, NameHit, NameRule, OptionSpec, OptionValue, Options, PackageInfo, PagesCall, PathFilter, PrePushOptions, PrivateNameList, PrivatePattern, PrivateSources, RegistryAnswer, RegistryLookup, Rule, RuleConfig, RuleContext, RuleOutcome, RuleResult, SecurityCaller, TextBreakOptions, Workflow, WorkflowInput, WorkflowJob, WorkflowStep, YamlFault };
821
+ export { type AllowedHit, type AuditSource, type Break, type CheckOptions, type CheckResult, type CliIo, type ConventionsConfig, type Edit, type FixResult, type Home, type HomeAnswer, type HomeFetch, type HomeState, type HookOptions, type LinePlace, type Manifest, type Minor, type NameHit, type NameRule, type OptionSpec, type OptionValue, type Options, 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, packageFolders, workspaceGlobs };
836
822
  //# 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-package.ts","../src/rules/license-file.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.ts","../src/home-exports.ts","../src/workflow.ts","../src/release-text.ts","../src/workspace.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;;;UAGvC;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;EACT,MAAM,SAAS,aAAa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AY,cAAc;;;;;;wBA8B1B,eAAe;;;;;;;wBAwCf,eAAe,cAAc"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-one-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.ts","../src/home-exports.ts","../src/workflow.ts","../src/release-text.ts"],"mappings":";;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;EAET;;EAEA,IAAI;;;KAIM,uBAAuB;WAAqB;;;UAGvC;;W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;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
package/build/index.js CHANGED
@@ -1,4 +1,5 @@
1
- import { $ as unreleasedChangeRule, $t as mergeHomes, A as typedFiles, An as codePackages, At as nameMatches, B as roadmapParses, Bn as specifiersOf, Bt as licenseFileOf, C as versionTitle, Cn as summaryName, Ct as PRIVATE_NAME_LIST, D as typedScripts, Dn as cuePreset, Dt as isCommonUse, E as trustPolicy, En as STRICT_OPTIONS, Et as isAllowedHit, F as HOME_TIMEOUT_MS, Fn as matchesAny, Ft as hasImportMetaMain, G as publishedMinor, Gn as defaultOptions, Gt as messageOf, H as releaseFiles, Hn as globToRegExp, Ht as repositoryIsPublic, I as blockHash, In as parseJsonc, It as mainCheck, J as NPM_REGISTRY, Jt as HOMES, K as publishedMinorRule, Kn as parseConfig, Kt as repoOf, L as githubFetch, Ln as readJsonc, Lt as LICENSE_TEXTS, M as isSourcePath, Mn as inFolder, Mt as pathNameHit, N as pathsOf, Nn as keyLine, Nt as noBuildOutput, O as configsOfScript, On as DEPENDENCY_FIELDS, Ot as lineNameHit, P as sourceMain, Pn as lineOf, Pt as REAL_COMPARE, Q as unreleasedChange, Qt as mapText, R as sharedDocsRule, Rn as replaceLine, Rt as authorOf, S as setVersions, Sn as prPathFilters, St as privateTextBreaks, T as TRAIN_SCOPES, Tn as readWorkflow, Tt as firstNameMatch, U as lockedVersions, Un as packageFolders, Ut as declaredName, V as requiredScripts, Vn as globFolders, Vt as mitText, W as minorOf, Wn as workspaceGlobs, Wt as homePackage, X as UNSHIPPED_FILES, Xt as findHomes, Y as SHIPPED_FIELDS, Yt as MAP_RULE, Z as npmLookup, Zt as mapMarkdown, _ as workspaceProtocol, _n as securityOneJob, _t as PRIVATE_PATTERNS_VARIABLE, a as listRules, an as hasTests, at as repositoryOfRemote, b as yamlFaults, bn as convertGate, bt as privateNamesFile, c as runCli, cn as SHARED_CI, ct as pushMainOnly, d as HOOK_MARKER, dn as sharedCi, dt as pagesSite, en as readOverlay, et as pipeFails, f as NO_READ_LINE, fn as setupCue, ft as apiReportScript, g as RULES, gn as securityCallers, gt as PRIVATE_NAMES_FILE_VARIABLE, h as prePush, hn as SECURITY_TIMEOUT_MINUTES, ht as PRIVATE_NAMES_FILE_CONFIG, i as formatResult, in as serviceRunMain, it as pagesAfterRelease, j as testsRequired, jn as hasFile, jt as parsePrivateNames, k as scriptsOf, kn as cleanPath, kt as lineNameHits, l as runFix, ln as SHARED_WORKFLOWS, lt as PAGES_WORKFLOWS, m as installHook, mn as SECURITY_SCAN_INPUTS, mt as HOME_PATTERNS, n as annotations, nn as SERVICE_PACKAGE, nt as isPinned, o as readConfig, on as tsconfigTest, ot as runnerBudget, p as PRE_PUSH_HOOK, pn as SECURITY_SCAN_COMMIT, pt as DEFAULT_ALLOWED, q as reachOf, qt as signaturesOf, r as createContext, rn as runCalls, rt as pinnedGitDeps, s as runChecks, sn as SHARED_ACTIONS, st as scheduleMinute, t as USAGE, tn as HOME_EXPORTS, tt as isGitSpecifier, u as summaryMarkdown, un as callsSharedCi, ut as pagesCalls, v as GITHUB_YAML, vn as withOneJob, vt as invalidPatternBreaks, w as IGNORE_AFTER, wn as gateAfterCancel, wt as PrivateNameListError, x as namedVersions, xn as gateTrigger, xt as privatePatterns, y as workflowParses, yn as ACTIONS_COMMIT, yt as noLocalPaths, z as roadmapOfLine, zn as runGit, zt as licenseFile } from "./run-CWh6SR2w.js";
1
+ import { $ as unreleasedChangeRule, $t as mergeHomes, A as typedFiles, An as cleanPath, At as nameMatches, B as roadmapParses, Bn as runGit, Bt as licenseFileOf, C as versionTitle, Cn as summaryName, Ct as PRIVATE_NAME_LIST, D as typedScripts, Dn as STRICT_OPTIONS, Dt as isCommonUse, E as trustPolicy, En as readWorkflow, Et as isAllowedHit, F as HOME_TIMEOUT_MS, Fn as lineOf, Ft as hasImportMetaMain, G as publishedMinor, Gt as messageOf, H as releaseFiles, Hn as defaultOptions, Ht as repositoryIsPublic, I as blockHash, In as matchesAny, It as mainCheck, J as NPM_REGISTRY, Jt as HOMES, K as publishedMinorRule, Kt as repoOf, L as githubFetch, Ln as parseJsonc, Lt as LICENSE_TEXTS, M as isSourcePath, Mn as hasFile, Mt as pathNameHit, N as pathsOf, Nn as inFolder, Nt as noBuildOutput, O as configsOfScript, On as cuePreset, Ot as lineNameHit, P as sourceMain, Pn as keyLine, Pt as REAL_COMPARE, Q as unreleasedChange, Qt as mapText, R as sharedDocsRule, Rn as readJsonc, Rt as authorOf, S as setVersions, Sn as prPathFilters, St as privateTextBreaks, T as TRAIN_SCOPES, Tn as readAction, Tt as firstNameMatch, U as lockedVersions, Un as parseConfig, Ut as declaredName, V as requiredScripts, Vn as specifiersOf, Vt as mitText, W as minorOf, Wt as homePackage, X as UNSHIPPED_FILES, Xt as findHomes, Y as SHIPPED_FIELDS, Yt as MAP_RULE, Z as npmLookup, Zt as mapMarkdown, _ as workspaceProtocol, _n as securityOneJob, _t as PRIVATE_PATTERNS_VARIABLE, a as listRules, an as hasTests, at as repositoryOfRemote, b as yamlFaults, bn as convertGate, bt as privateNamesFile, c as runCli, cn as SHARED_CI, ct as pushMainOnly, d as HOOK_MARKER, dn as sharedCi, dt as pagesSite, en as readOverlay, et as pipeFails, f as NO_READ_LINE, fn as setupCue, ft as apiReportScript, g as RULES, gn as securityCallers, gt as PRIVATE_NAMES_FILE_VARIABLE, h as prePush, hn as SECURITY_TIMEOUT_MINUTES, ht as PRIVATE_NAMES_FILE_CONFIG, i as formatResult, in as serviceRunMain, it as pagesAfterRelease, j as testsRequired, jn as codePackages, jt as parsePrivateNames, k as scriptsOf, kn as DEPENDENCY_FIELDS, kt as lineNameHits, l as runFix, ln as SHARED_WORKFLOWS, lt as PAGES_WORKFLOWS, m as installHook, mn as SECURITY_SCAN_INPUTS, mt as HOME_PATTERNS, n as annotations, nn as SERVICE_PACKAGE, nt as isPinned, o as readConfig, on as tsconfigTest, ot as runnerBudget, p as PRE_PUSH_HOOK, pn as SECURITY_SCAN_COMMIT, pt as DEFAULT_ALLOWED, q as reachOf, qt as signaturesOf, r as createContext, rn as runCalls, rt as pinnedGitDeps, s as runChecks, sn as SHARED_ACTIONS, st as scheduleMinute, t as USAGE, tn as HOME_EXPORTS, tt as isGitSpecifier, u as summaryMarkdown, un as callsSharedCi, ut as pagesCalls, v as GITHUB_YAML, vn as withOneJob, vt as invalidPatternBreaks, w as IGNORE_AFTER, wn as gateAfterCancel, wt as PrivateNameListError, x as namedVersions, xn as gateTrigger, xt as privatePatterns, y as workflowParses, yn as ACTIONS_COMMIT, yt as noLocalPaths, z as roadmapOfLine, zn as replaceLine, zt as licenseFile } from "./run-DJGaAV-C.js";
2
+ import { i as packageFolders, n as globFolders, r as globToRegExp, s as workspaceGlobs } from "./workspace-Cx7p7bWn.js";
2
3
  // src/release-text.ts
3
4
  /**
4
5
  * The rule for the git tag and the text of a GitHub release of a package version.
@@ -64,6 +65,6 @@ function releaseNotes(name, version, changelog) {
64
65
  if (section.length <= 1e5) return section;
65
66
  return `${section.slice(0, MAX_NOTES)}\n\n(The CHANGELOG.md of \`${name}\` has the full text.)`;
66
67
  }
67
- 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, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, TRAIN_SCOPES, UNSHIPPED_FILES, USAGE, annotations, apiReportScript, authorOf, blockHash, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, createContext, cuePreset, declaredName, defaultOptions, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasTests, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSourcePath, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, messageOf, minorOf, mitText, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmLookup, npmUrl, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseConfig, parseJsonc, parsePrivateNames, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, prPathFilters, prePush, privateNamesFile, privatePatterns, privateTextBreaks, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, signaturesOf, sourceMain, specifiersOf, summaryMarkdown, summaryName, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
68
+ export { ACTIONS_COMMIT, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MAX_NOTES, NO_READ_LINE, NPM_REGISTRY, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, TRAIN_SCOPES, UNSHIPPED_FILES, USAGE, annotations, apiReportScript, authorOf, blockHash, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, createContext, cuePreset, declaredName, defaultOptions, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasTests, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSourcePath, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, messageOf, minorOf, mitText, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmLookup, npmUrl, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseConfig, parseJsonc, parsePrivateNames, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, prPathFilters, prePush, privateNamesFile, privatePatterns, privateTextBreaks, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, signaturesOf, sourceMain, specifiersOf, summaryMarkdown, summaryName, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
68
69
 
69
70
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/release-text.ts"],"sourcesContent":["/**\n * The rule for the git tag and the text of a GitHub release of a package version.\n *\n * The release workflow keeps the same rule in `scripts/release/tags.ts`. A pinned workflow starts that script, so it\n * does not import this package. A test of this package compares the two.\n */\n\n/** GitHub refuses a release text of more than 125000 characters. */\nexport const MAX_NOTES: number = 100_000;\n\n/** This function gives the tag of a version: `v<version>` when the repository has one published package. */\nexport function tagName(name: string, version: string, packageCount: number): string {\n return packageCount === 1 ? `v${version}` : `${name}@${version}`;\n}\n\nconst escape = (text: string): string => text.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n\n/**\n * This function gives the text of the section of a version in a changelog, or undefined.\n *\n * The heading of the section has the version, with an optional `v` or `<name>@` before it and optional brackets:\n * `## 1.2.0`, `## v1.2.0`, `## [1.2.0] - 2026-10-18`, `# pkg@1.2.0 (2026-10-18)`. The section stops at the next heading\n * of the same level or a higher level. A heading in fenced code does not count. An empty section gives undefined.\n */\nexport function changelogSection(markdown: string, version: string, name: string): string | undefined {\n const heading = new RegExp(`^(#{1,6})\\\\s+\\\\[?(?:v|${escape(name)}@)?${escape(version)}\\\\]?(?=$|[\\\\s(])`);\n const lines = markdown.split(/\\r?\\n/);\n let level = 0;\n let fence: string | null = null;\n const body: string[] = [];\n for (const line of lines) {\n const fenceMark = /^\\s*(`{3,}|~{3,})/.exec(line)?.[1];\n if (fenceMark !== undefined) {\n const mark = fenceMark[0] ?? \"\";\n if (fence === null) fence = mark;\n else if (mark === fence) fence = null;\n if (level > 0) body.push(line);\n continue;\n }\n if (fence === null) {\n const levelOf = /^(#{1,6})\\s/.exec(line)?.[1]?.length;\n if (level > 0 && levelOf !== undefined && levelOf <= level) break;\n if (level === 0) {\n const match = heading.exec(line);\n if (match) level = match[1]?.length ?? 0;\n continue;\n }\n }\n if (level > 0) body.push(line);\n }\n const text = body.join(\"\\n\").trim();\n return text === \"\" ? undefined : text;\n}\n\n/** This function gives the address of a version on npm. */\nexport function npmUrl(name: string, version: string): string {\n return `https://www.npmjs.com/package/${name}/v/${version}`;\n}\n\n/**\n * This function gives the text of the GitHub release of a version: its changelog section, or else one list item with a\n * link to npm. The Releases page of `site-pages` reads each list item as a change.\n */\nexport function releaseNotes(name: string, version: string, changelog: string | undefined): string {\n const fallback = `- Version ${version} of [\\`${name}\\`](${npmUrl(name, version)}) on npm.`;\n const section = changelog === undefined ? undefined : changelogSection(changelog, version, name);\n if (section === undefined) return fallback;\n if (section.length <= MAX_NOTES) return section;\n return `${section.slice(0, MAX_NOTES)}\\n\\n(The CHANGELOG.md of \\`${name}\\` has the full text.)`;\n}\n"],"mappings":";;;;;;;;;AAQA,MAAa,YAAoB;;AAGjC,SAAgB,QAAQ,MAAc,SAAiB,cAA8B;CACnF,OAAO,iBAAiB,IAAI,IAAI,YAAY,GAAG,KAAK,GAAG;AACzD;AAEA,MAAM,UAAU,SAAyB,KAAK,QAAQ,uBAAuB,MAAM;;;;;;;;AASnF,SAAgB,iBAAiB,UAAkB,SAAiB,MAAkC;CACpG,MAAM,UAAU,IAAI,OAAO,yBAAyB,OAAO,IAAI,EAAE,KAAK,OAAO,OAAO,EAAE,iBAAiB;CACvG,MAAM,QAAQ,SAAS,MAAM,OAAO;CACpC,IAAI,QAAQ;CACZ,IAAI,QAAuB;CAC3B,MAAM,OAAiB,CAAC;CACxB,KAAK,MAAM,QAAQ,OAAO;EACxB,MAAM,YAAY,oBAAoB,KAAK,IAAI,CAAC,GAAG;EACnD,IAAI,cAAc,KAAA,GAAW;GAC3B,MAAM,OAAO,UAAU,MAAM;GAC7B,IAAI,UAAU,MAAM,QAAQ;QACvB,IAAI,SAAS,OAAO,QAAQ;GACjC,IAAI,QAAQ,GAAG,KAAK,KAAK,IAAI;GAC7B;EACF;EACA,IAAI,UAAU,MAAM;GAClB,MAAM,UAAU,cAAc,KAAK,IAAI,CAAC,GAAG,EAAE,EAAE;GAC/C,IAAI,QAAQ,KAAK,YAAY,KAAA,KAAa,WAAW,OAAO;GAC5D,IAAI,UAAU,GAAG;IACf,MAAM,QAAQ,QAAQ,KAAK,IAAI;IAC/B,IAAI,OAAO,QAAQ,MAAM,EAAE,EAAE,UAAU;IACvC;GACF;EACF;EACA,IAAI,QAAQ,GAAG,KAAK,KAAK,IAAI;CAC/B;CACA,MAAM,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,KAAK;CAClC,OAAO,SAAS,KAAK,KAAA,IAAY;AACnC;;AAGA,SAAgB,OAAO,MAAc,SAAyB;CAC5D,OAAO,iCAAiC,KAAK,KAAK;AACpD;;;;;AAMA,SAAgB,aAAa,MAAc,SAAiB,WAAuC;CACjG,MAAM,WAAW,aAAa,QAAQ,SAAS,KAAK,MAAM,OAAO,MAAM,OAAO,EAAE;CAChF,MAAM,UAAU,cAAc,KAAA,IAAY,KAAA,IAAY,iBAAiB,WAAW,SAAS,IAAI;CAC/F,IAAI,YAAY,KAAA,GAAW,OAAO;CAClC,IAAI,QAAQ,UAAA,KAAqB,OAAO;CACxC,OAAO,GAAG,QAAQ,MAAM,GAAG,SAAS,EAAE,6BAA6B,KAAK;AAC1E"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/release-text.ts"],"sourcesContent":["/**\n * The rule for the git tag and the text of a GitHub release of a package version.\n *\n * The release workflow keeps the same rule in `scripts/release/tags.ts`. A pinned workflow starts that script, so it\n * does not import this package. A test of this package compares the two.\n */\n\n/** GitHub refuses a release text of more than 125000 characters. */\nexport const MAX_NOTES: number = 100_000;\n\n/** This function gives the tag of a version: `v<version>` when the repository has one published package. */\nexport function tagName(name: string, version: string, packageCount: number): string {\n return packageCount === 1 ? `v${version}` : `${name}@${version}`;\n}\n\nconst escape = (text: string): string => text.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n\n/**\n * This function gives the text of the section of a version in a changelog, or undefined.\n *\n * The heading of the section has the version, with an optional `v` or `<name>@` before it and optional brackets:\n * `## 1.2.0`, `## v1.2.0`, `## [1.2.0] - 2026-10-18`, `# pkg@1.2.0 (2026-10-18)`. The section stops at the next heading\n * of the same level or a higher level. A heading in fenced code does not count. An empty section gives undefined.\n */\nexport function changelogSection(markdown: string, version: string, name: string): string | undefined {\n const heading = new RegExp(`^(#{1,6})\\\\s+\\\\[?(?:v|${escape(name)}@)?${escape(version)}\\\\]?(?=$|[\\\\s(])`);\n const lines = markdown.split(/\\r?\\n/);\n let level = 0;\n let fence: string | null = null;\n const body: string[] = [];\n for (const line of lines) {\n const fenceMark = /^\\s*(`{3,}|~{3,})/.exec(line)?.[1];\n if (fenceMark !== undefined) {\n const mark = fenceMark[0] ?? \"\";\n if (fence === null) fence = mark;\n else if (mark === fence) fence = null;\n if (level > 0) body.push(line);\n continue;\n }\n if (fence === null) {\n const levelOf = /^(#{1,6})\\s/.exec(line)?.[1]?.length;\n if (level > 0 && levelOf !== undefined && levelOf <= level) break;\n if (level === 0) {\n const match = heading.exec(line);\n if (match) level = match[1]?.length ?? 0;\n continue;\n }\n }\n if (level > 0) body.push(line);\n }\n const text = body.join(\"\\n\").trim();\n return text === \"\" ? undefined : text;\n}\n\n/** This function gives the address of a version on npm. */\nexport function npmUrl(name: string, version: string): string {\n return `https://www.npmjs.com/package/${name}/v/${version}`;\n}\n\n/**\n * This function gives the text of the GitHub release of a version: its changelog section, or else one list item with a\n * link to npm. The Releases page of `site-pages` reads each list item as a change.\n */\nexport function releaseNotes(name: string, version: string, changelog: string | undefined): string {\n const fallback = `- Version ${version} of [\\`${name}\\`](${npmUrl(name, version)}) on npm.`;\n const section = changelog === undefined ? undefined : changelogSection(changelog, version, name);\n if (section === undefined) return fallback;\n if (section.length <= MAX_NOTES) return section;\n return `${section.slice(0, MAX_NOTES)}\\n\\n(The CHANGELOG.md of \\`${name}\\` has the full text.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AiB,WAAuC;CACjG,MAAM,WAAW,aAAa,QAAQ,SAAS,KAAK,MAAM,OAAO,MAAM,OAAO,EAAE;CAChF,MAAM,UAAU,cAAc,KAAA,IAAY,KAAA,IAAY,iBAAiB,WAAW,SAAS,IAAI;CAC/F,IAAI,YAAY,KAAA,GAAW,OAAO;CAClC,IAAI,QAAQ,UAAA,KAAqB,OAAO;CACxC,OAAO,GAAG,QAAQ,MAAM,GAAG,SAAS,EAAE,6BAA6B,KAAK;AAC1E"}
@@ -1,7 +1,8 @@
1
+ import { a as relativePath, i as packageFolders, r as globToRegExp, t as byCode } from "./workspace-Cx7p7bWn.js";
1
2
  import { createRequire } from "node:module";
2
3
  import { spawnSync } from "node:child_process";
3
4
  import { appendFileSync, chmodSync, existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
4
- import { basename, dirname, extname, join, posix, relative, resolve, sep } from "node:path";
5
+ import { basename, dirname, extname, join, posix, relative, resolve } from "node:path";
5
6
  import { createHash } from "node:crypto";
6
7
  import { parseAllDocuments } from "yaml";
7
8
  // src/config.ts
@@ -81,139 +82,6 @@ function parseConfig(value, rules) {
81
82
  rules: result
82
83
  };
83
84
  }
84
- // src/workspace.ts
85
- /**
86
- * The package folders of a repository: the folders that the globs of the workspace name, with a
87
- * `package.json` file. This file is a copy of `workspace.ts` of `@mark1russell7/api-report`, so that
88
- * each tool has no runtime dependency.
89
- */
90
- /** This function compares two strings by their code units, as the default sort does. */
91
- const byCode = (a, b) => a < b ? -1 : a > b ? 1 : 0;
92
- /** This function gives a path relative to `root`, with `/`. */
93
- const relativePath = (root, file) => relative(root, file).split(sep).join("/");
94
- /** The characters that have a meaning in a regular expression. */
95
- const SPECIAL = /* @__PURE__ */ new Set([..."\\^$.|+()[]{}*?/"]);
96
- /**
97
- * This function gives a regular expression for a glob of `/` paths. `*` matches a part of one path
98
- * segment, `?` matches one character, `**` matches zero or more segments, and `{a,b}` matches one of
99
- * its parts. The function escapes each other special character.
100
- */
101
- function globToRegExp(glob) {
102
- let source = "";
103
- let braces = 0;
104
- for (let index = 0; index < glob.length; index++) {
105
- const char = glob.charAt(index);
106
- if (char === "/" && glob.slice(index + 1) === "**") {
107
- source += "(?:/.*)?";
108
- break;
109
- }
110
- if (char === "*" && glob.charAt(index + 1) === "*") {
111
- const atStart = index === 0 || glob.charAt(index - 1) === "/";
112
- const after = glob.charAt(index + 2);
113
- if (atStart && after === "/") {
114
- source += "(?:[^/]+/)*";
115
- index += 2;
116
- } else if (atStart && after === "") {
117
- source += ".*";
118
- index += 1;
119
- } else {
120
- source += "[^/]*";
121
- index += 1;
122
- }
123
- } else if (char === "*") source += "[^/]*";
124
- else if (char === "?") source += "[^/]";
125
- else if (char === "{") {
126
- braces++;
127
- source += "(?:";
128
- } else if (char === "}" && braces > 0) {
129
- braces--;
130
- source += ")";
131
- } else if (char === "," && braces > 0) source += "|";
132
- else if (SPECIAL.has(char)) source += `\\${char}`;
133
- else source += char;
134
- }
135
- if (braces > 0) throw new Error(`A glob with a "{" that has no "}": ${glob}`);
136
- return new RegExp(`^${source}$`);
137
- }
138
- /** The characters that make a path segment a pattern. */
139
- const GLOB_CHARS = /[*?{]/;
140
- /** This function removes the `/` characters at the end of a path, with a loop in place of a regular expression. */
141
- function trimEndSlashes(path) {
142
- let end = path.length;
143
- while (end > 0 && path.charAt(end - 1) === "/") end -= 1;
144
- return path.slice(0, end);
145
- }
146
- /**
147
- * This function gives the folders under `root` that a glob names, as `/` paths relative to `root`,
148
- * in the order of the code units. It does not go into `node_modules` or a folder that starts with `.`.
149
- */
150
- function globFolders(root, glob) {
151
- const clean = trimEndSlashes(glob.startsWith("./") ? glob.slice(2) : glob);
152
- const segments = clean.split("/");
153
- const firstPattern = segments.findIndex((segment) => GLOB_CHARS.test(segment));
154
- if (firstPattern < 0) return existsSync(join(root, clean)) ? [clean] : [];
155
- const base = segments.slice(0, firstPattern).join("/");
156
- const depth = clean.includes("**") ? Number.POSITIVE_INFINITY : segments.length - firstPattern;
157
- const pattern = globToRegExp(clean);
158
- const start = join(root, base);
159
- if (!existsSync(start)) return [];
160
- const found = [];
161
- const walk = (folder, level) => {
162
- for (const entry of readdirSync(folder, { withFileTypes: true })) {
163
- if (!entry.isDirectory() || entry.name === "node_modules" || entry.name.startsWith(".")) continue;
164
- const path = join(folder, entry.name);
165
- if (pattern.test(relativePath(root, path))) found.push(relativePath(root, path));
166
- if (level < depth) walk(path, level + 1);
167
- }
168
- };
169
- if (base !== "" && pattern.test(base)) found.push(base);
170
- walk(start, 1);
171
- return found.sort(byCode);
172
- }
173
- /**
174
- * This function gives the globs of the workspace at `root`: the `packages` list of
175
- * `pnpm-workspace.yaml`, then the `workspaces` field of `package.json`. The result is undefined when
176
- * the repository has no workspace.
177
- */
178
- function workspaceGlobs(root) {
179
- const yaml = join(root, "pnpm-workspace.yaml");
180
- if (existsSync(yaml)) {
181
- const lines = readFileSync(yaml, "utf8").split(/\r?\n/);
182
- const start = lines.findIndex((line) => /^packages\s*:/.test(line));
183
- if (start >= 0) {
184
- const unquote = (text) => text.replace(/\s+#.*$/, "").trim().replace(/^["']|["']$/g, "");
185
- const inline = /^packages\s*:\s*\[(.*)\]/.exec(lines[start] ?? "");
186
- if (inline) return (inline[1] ?? "").split(",").map(unquote).filter(Boolean);
187
- const globs = [];
188
- for (const line of lines.slice(start + 1)) {
189
- if (/^\s*(#.*)?$/.test(line)) continue;
190
- const item = /^\s+-\s+(.+)$/.exec(line);
191
- if (!item) break;
192
- globs.push(unquote(item[1] ?? ""));
193
- }
194
- return globs;
195
- }
196
- }
197
- const manifestFile = join(root, "package.json");
198
- if (existsSync(manifestFile)) {
199
- const { workspaces } = JSON.parse(readFileSync(manifestFile, "utf8"));
200
- if (Array.isArray(workspaces)) return workspaces.filter((glob) => typeof glob === "string");
201
- if (typeof workspaces === "object" && workspaces !== null && "packages" in workspaces && Array.isArray(workspaces.packages)) return workspaces.packages.filter((glob) => typeof glob === "string");
202
- }
203
- }
204
- /**
205
- * This function gives the package folders of the repository at `root`: the folders of the globs
206
- * that have a `package.json` file. A glob that starts with `!` removes folders. Without globs, the
207
- * function reads the globs of the workspace, and a repository with no workspace is one package.
208
- * The result has absolute paths, in the order of the code units.
209
- */
210
- function packageFolders(root, globs = workspaceGlobs(root)) {
211
- if (globs === void 0) return existsSync(join(root, "package.json")) ? [root] : [];
212
- const included = /* @__PURE__ */ new Set();
213
- for (const glob of globs.filter((item) => !item.startsWith("!"))) for (const folder of globFolders(root, glob)) included.add(folder);
214
- for (const glob of globs.filter((item) => item.startsWith("!"))) for (const folder of globFolders(root, glob.slice(1))) included.delete(folder);
215
- return [...included].filter((folder) => existsSync(join(root, folder, "package.json"))).sort(byCode).map((folder) => join(root, folder));
216
- }
217
85
  // src/rule.ts
218
86
  /**
219
87
  * The shape of a rule, the facts that a rule reads (the context), and small helpers for the rules.
@@ -1500,19 +1368,7 @@ function readWorkflow(file, text) {
1500
1368
  if (jobsEntry) for (const [id, entry] of childrenOf(lines, jobsEntry.line)) {
1501
1369
  const keys = childrenOf(lines, entry.line);
1502
1370
  const stepsEntry = keys.get("steps");
1503
- const steps = [];
1504
- if (stepsEntry) {
1505
- const items = itemsOf(lines, stepsEntry.line);
1506
- const last = blockEnd(lines, stepsEntry.line);
1507
- items.forEach((start, n) => {
1508
- const step = entries(lines, start, items[n + 1] ?? last, indentOf$1(lines[start] ?? "") + 2);
1509
- steps.push({
1510
- label: stepLabel(step),
1511
- if: step.get("if")?.value ?? "",
1512
- uses: actionOf(step.get("uses")?.value ?? "")
1513
- });
1514
- });
1515
- }
1371
+ const steps = stepsEntry ? stepsOf(lines, stepsEntry.line) : [];
1516
1372
  const uses = keys.get("uses")?.value;
1517
1373
  if (steps.length === 0 && uses) steps.push({
1518
1374
  label: `calls ${actionOf(uses)}`,
@@ -1534,6 +1390,59 @@ function readWorkflow(file, text) {
1534
1390
  jobs
1535
1391
  };
1536
1392
  }
1393
+ /** This function gives the steps of the list under the line `index`. */
1394
+ function stepsOf(lines, index) {
1395
+ const items = itemsOf(lines, index);
1396
+ const last = blockEnd(lines, index);
1397
+ return items.map((start, n) => {
1398
+ const step = entries(lines, start, items[n + 1] ?? last, indentOf$1(lines[start] ?? "") + 2);
1399
+ return {
1400
+ label: stepLabel(step),
1401
+ if: step.get("if")?.value ?? "",
1402
+ uses: actionOf(step.get("uses")?.value ?? "")
1403
+ };
1404
+ });
1405
+ }
1406
+ /**
1407
+ * This function reads a composite action (`action.yml`) in the form of a workflow. The steps of `runs` are the steps of
1408
+ * one job `steps`. An input of a composite action has no type, so an input with the default `true` or `false` gets the
1409
+ * type `boolean`. The value of such an input is still a string for the runner. The description of the action is the
1410
+ * summary. An action that is not composite gives no job.
1411
+ */
1412
+ function readAction(file, text) {
1413
+ const lines = workflowLines(text);
1414
+ const top = entries(lines, 0, lines.length, 0);
1415
+ const inputs = [];
1416
+ const inputsEntry = top.get("inputs");
1417
+ if (inputsEntry) for (const [name, entry] of childrenOf(lines, inputsEntry.line)) {
1418
+ const keys = childrenOf(lines, entry.line);
1419
+ const value = keys.get("default")?.value ?? "";
1420
+ inputs.push({
1421
+ name,
1422
+ type: value === "true" || value === "false" ? "boolean" : "string",
1423
+ description: keys.get("description")?.value ?? "",
1424
+ default: value,
1425
+ required: keys.get("required")?.value === "true"
1426
+ });
1427
+ }
1428
+ const runs = top.get("runs");
1429
+ const keys = runs ? childrenOf(lines, runs.line) : /* @__PURE__ */ new Map();
1430
+ const stepsEntry = keys.get("using")?.value === "composite" ? keys.get("steps") : void 0;
1431
+ const jobs = stepsEntry ? [{
1432
+ id: "steps",
1433
+ if: "",
1434
+ needs: [],
1435
+ steps: stepsOf(lines, stepsEntry.line)
1436
+ }] : [];
1437
+ return {
1438
+ file,
1439
+ kind: "action",
1440
+ name: top.get("name")?.value ?? file,
1441
+ summary: top.get("description")?.value ?? "",
1442
+ inputs,
1443
+ jobs
1444
+ };
1445
+ }
1537
1446
  // src/rules/gate-after-cancel.ts
1538
1447
  /**
1539
1448
  * The rule `gate-after-cancel`: a summary job of a gate does not start after a cancel. A job with `if: always()` still
@@ -2304,6 +2213,7 @@ const SHARED_WORKFLOWS = [
2304
2213
  ];
2305
2214
  /** The shared actions of the template, by folder name under `.github/actions`. */
2306
2215
  const SHARED_ACTIONS = [
2216
+ "build-ref",
2307
2217
  "changes",
2308
2218
  "changeset-check",
2309
2219
  "coverage",
@@ -14465,6 +14375,6 @@ function runHook(args, io) {
14465
14375
  git: (gitArgs) => runGit(io.cwd, gitArgs)
14466
14376
  }, io);
14467
14377
  }
14468
- export { unreleasedChangeRule as $, mergeHomes as $t, typedFiles as A, codePackages as An, nameMatches as At, roadmapParses as B, specifiersOf as Bn, licenseFileOf as Bt, versionTitle as C, summaryName as Cn, PRIVATE_NAME_LIST as Ct, typedScripts as D, cuePreset as Dn, isCommonUse as Dt, trustPolicy as E, STRICT_OPTIONS as En, isAllowedHit as Et, HOME_TIMEOUT_MS as F, matchesAny as Fn, hasImportMetaMain as Ft, publishedMinor as G, defaultOptions as Gn, messageOf as Gt, releaseFiles as H, globToRegExp as Hn, repositoryIsPublic as Ht, blockHash as I, parseJsonc as In, mainCheck as It, NPM_REGISTRY as J, HOMES as Jt, publishedMinorRule as K, parseConfig as Kn, repoOf as Kt, githubFetch as L, readJsonc as Ln, LICENSE_TEXTS as Lt, isSourcePath as M, inFolder as Mn, pathNameHit as Mt, pathsOf as N, keyLine as Nn, noBuildOutput as Nt, configsOfScript as O, DEPENDENCY_FIELDS as On, lineNameHit as Ot, sourceMain as P, lineOf as Pn, REAL_COMPARE as Pt, unreleasedChange as Q, mapText as Qt, sharedDocsRule as R, replaceLine as Rn, authorOf as Rt, setVersions as S, prPathFilters as Sn, privateTextBreaks as St, TRAIN_SCOPES as T, readWorkflow as Tn, firstNameMatch as Tt, lockedVersions as U, packageFolders as Un, declaredName as Ut, requiredScripts as V, globFolders as Vn, mitText as Vt, minorOf as W, workspaceGlobs as Wn, homePackage as Wt, UNSHIPPED_FILES as X, findHomes as Xt, SHIPPED_FIELDS as Y, MAP_RULE as Yt, npmLookup as Z, mapMarkdown as Zt, workspaceProtocol as _, securityOneJob as _n, PRIVATE_PATTERNS_VARIABLE as _t, listRules as a, hasTests as an, repositoryOfRemote as at, yamlFaults as b, convertGate as bn, privateNamesFile as bt, runCli as c, SHARED_CI as cn, pushMainOnly as ct, HOOK_MARKER as d, sharedCi as dn, pagesSite as dt, readOverlay as en, pipeFails as et, NO_READ_LINE as f, setupCue as fn, apiReportScript as ft, RULES as g, securityCallers as gn, PRIVATE_NAMES_FILE_VARIABLE as gt, prePush as h, SECURITY_TIMEOUT_MINUTES as hn, PRIVATE_NAMES_FILE_CONFIG as ht, formatResult as i, serviceRunMain as in, pagesAfterRelease as it, testsRequired as j, hasFile as jn, parsePrivateNames as jt, scriptsOf as k, cleanPath as kn, lineNameHits as kt, runFix as l, SHARED_WORKFLOWS as ln, PAGES_WORKFLOWS as lt, installHook as m, SECURITY_SCAN_INPUTS as mn, HOME_PATTERNS as mt, annotations as n, SERVICE_PACKAGE as nn, isPinned as nt, readConfig as o, tsconfigTest as on, runnerBudget as ot, PRE_PUSH_HOOK as p, SECURITY_SCAN_COMMIT as pn, DEFAULT_ALLOWED as pt, reachOf as q, signaturesOf as qt, createContext as r, runCalls as rn, pinnedGitDeps as rt, runChecks as s, SHARED_ACTIONS as sn, scheduleMinute as st, USAGE as t, HOME_EXPORTS as tn, isGitSpecifier as tt, summaryMarkdown as u, callsSharedCi as un, pagesCalls as ut, GITHUB_YAML as v, withOneJob as vn, invalidPatternBreaks as vt, IGNORE_AFTER as w, gateAfterCancel as wn, PrivateNameListError as wt, namedVersions as x, gateTrigger as xn, privatePatterns as xt, workflowParses as y, ACTIONS_COMMIT as yn, noLocalPaths as yt, roadmapOfLine as z, runGit as zn, licenseFile as zt };
14378
+ export { unreleasedChangeRule as $, mergeHomes as $t, typedFiles as A, cleanPath as An, nameMatches as At, roadmapParses as B, runGit as Bn, licenseFileOf as Bt, versionTitle as C, summaryName as Cn, PRIVATE_NAME_LIST as Ct, typedScripts as D, STRICT_OPTIONS as Dn, isCommonUse as Dt, trustPolicy as E, readWorkflow as En, isAllowedHit as Et, HOME_TIMEOUT_MS as F, lineOf as Fn, hasImportMetaMain as Ft, publishedMinor as G, messageOf as Gt, releaseFiles as H, defaultOptions as Hn, repositoryIsPublic as Ht, blockHash as I, matchesAny as In, mainCheck as It, NPM_REGISTRY as J, HOMES as Jt, publishedMinorRule as K, repoOf as Kt, githubFetch as L, parseJsonc as Ln, LICENSE_TEXTS as Lt, isSourcePath as M, hasFile as Mn, pathNameHit as Mt, pathsOf as N, inFolder as Nn, noBuildOutput as Nt, configsOfScript as O, cuePreset as On, lineNameHit as Ot, sourceMain as P, keyLine as Pn, REAL_COMPARE as Pt, unreleasedChange as Q, mapText as Qt, sharedDocsRule as R, readJsonc as Rn, authorOf as Rt, setVersions as S, prPathFilters as Sn, privateTextBreaks as St, TRAIN_SCOPES as T, readAction as Tn, firstNameMatch as Tt, lockedVersions as U, parseConfig as Un, declaredName as Ut, requiredScripts as V, specifiersOf as Vn, mitText as Vt, minorOf as W, homePackage as Wt, UNSHIPPED_FILES as X, findHomes as Xt, SHIPPED_FIELDS as Y, MAP_RULE as Yt, npmLookup as Z, mapMarkdown as Zt, workspaceProtocol as _, securityOneJob as _n, PRIVATE_PATTERNS_VARIABLE as _t, listRules as a, hasTests as an, repositoryOfRemote as at, yamlFaults as b, convertGate as bn, privateNamesFile as bt, runCli as c, SHARED_CI as cn, pushMainOnly as ct, HOOK_MARKER as d, sharedCi as dn, pagesSite as dt, readOverlay as en, pipeFails as et, NO_READ_LINE as f, setupCue as fn, apiReportScript as ft, RULES as g, securityCallers as gn, PRIVATE_NAMES_FILE_VARIABLE as gt, prePush as h, SECURITY_TIMEOUT_MINUTES as hn, PRIVATE_NAMES_FILE_CONFIG as ht, formatResult as i, serviceRunMain as in, pagesAfterRelease as it, testsRequired as j, codePackages as jn, parsePrivateNames as jt, scriptsOf as k, DEPENDENCY_FIELDS as kn, lineNameHits as kt, runFix as l, SHARED_WORKFLOWS as ln, PAGES_WORKFLOWS as lt, installHook as m, SECURITY_SCAN_INPUTS as mn, HOME_PATTERNS as mt, annotations as n, SERVICE_PACKAGE as nn, isPinned as nt, readConfig as o, tsconfigTest as on, runnerBudget as ot, PRE_PUSH_HOOK as p, SECURITY_SCAN_COMMIT as pn, DEFAULT_ALLOWED as pt, reachOf as q, signaturesOf as qt, createContext as r, runCalls as rn, pinnedGitDeps as rt, runChecks as s, SHARED_ACTIONS as sn, scheduleMinute as st, USAGE as t, HOME_EXPORTS as tn, isGitSpecifier as tt, summaryMarkdown as u, callsSharedCi as un, pagesCalls as ut, GITHUB_YAML as v, withOneJob as vn, invalidPatternBreaks as vt, IGNORE_AFTER as w, gateAfterCancel as wn, PrivateNameListError as wt, namedVersions as x, gateTrigger as xn, privatePatterns as xt, workflowParses as y, ACTIONS_COMMIT as yn, noLocalPaths as yt, roadmapOfLine as z, replaceLine as zn, licenseFile as zt };
14469
14379
 
14470
- //# sourceMappingURL=run-CWh6SR2w.js.map
14380
+ //# sourceMappingURL=run-DJGaAV-C.js.map