@mark1russell7/conventions 0.52.5 → 0.52.7

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
@@ -56,7 +56,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
56
56
  | `required-scripts` | The root `package.json` has the script `typecheck`. It also has `lint:ste` when the repository uses `ste-lint`: a dependency on `@mark1russell7/ste-lint`, or a `ste.config.json` at the root. The shared CI skips a missing script, so a removed script turns its check off with no sign. | client, coeval, crawler, private, headroom, Vex `ste-prose`. systems `lint-ste-in-ci`. coeval, crawler, headroom, Vex `tsconfig-test`. |
57
57
  | `no-build-output` | Git keeps no file in a folder named `dist` or `build`, or in a `coverage` folder next to a `package.json`. | client `no-build-output`, `no-dist`, `no-dist-commit`. Only one repository of the audit tells this rule. The `.gitignore` of the template has it for each repository. |
58
58
  | `no-local-paths` | No tracked file has the home folder of a user: `C:\Users\<name>`, `/Users/<name>` or `/home/<name>`. A CI user (`runner`), a name of one character and a placeholder (`<you>`) are not a break. The commit messages of the change (a pull request, or `--base`) and the title and the body of the pull request do not have one either. The same is true for each pattern of the option `patterns` and of the environment variable `CONVENTIONS_PRIVATE_PATTERNS`. A break of a private pattern shows only the line of the pattern in the variable, not the text. A line of the variable that is not a valid regular expression is a break of its own. | client `I12`. systems `no-identifying-names`, `no-private-identifiers`, `no-private-names`. coeval `no-private-names`. |
59
- | `no-console` | No source file calls `console`. Each break names the kind of the call. Output for a person (the text, the tables and the status lines of a CLI) goes to `createPrinter` of `@mark1russell7/text/print`. A diagnostic of a library or a service (a warning, a debug line, a caught error) goes to a log record of the logger of `@mark1russell7/otel-ts`, with its trace context. A call in a CLI file is output, except `debug` and `trace`. A CLI file starts with `#!`, has `cli`, `main`, `bin` or `commands` in its path, or reads `process.argv`. Each other call is a diagnostic, except `console.table`. Tests, fixtures, scripts, benches and examples are not sources (the option `skip`). A break is a warning until the repository sets the option `fail`, when its count is 0. | a decision of 2026-11-25: a census found 1549 console calls in the sources of 36 repositories. |
59
+ | `no-console` | No source file calls `console`. Each break names the kind of the call. Output for a person (the text, the tables and the status lines of a CLI) goes to `createPrinter` of `@mark1russell7/text/print`. A diagnostic of a library or a service (a warning, a debug line, a caught error) goes to a log record of the logger of `@mark1russell7/otel-ts`, with its trace context. A call in a CLI file is output, except `debug` and `trace`. A CLI file starts with `#!`, has `cli`, `main`, `bin` or `commands` in its path, or reads `process.argv`. Each other call is a diagnostic, except `console.table`. Tests, fixtures, scripts, benches and examples are not sources (the option `skip`). The rule is a ratchet. The check fails when the count is not the option `baseline`. Thus a new call fails, and a fix lowers the baseline. From the day `failFrom` each call fails. The default day is 2027-01-20, the last day, and a repository can set only an earlier day. | a decision of 2026-11-25: a census found 1549 console calls in the sources of 36 repositories. |
60
60
  | `release-files` | A pull request changes `.github/workflows/release.yml` or `scripts/release/` only with a line `Release-Edit: <reason>` in a commit message or in the body of the pull request. The commits of the release bot (the sync of the template) need no reason. | coeval `no-release-edit`, `no-release-edits`. crawler `no-release-edit`, `no-release-edits`. headroom `no-release-edits`, `release-files-frozen`. |
61
61
  | `unreleased-change` | A change does not set a version that npm has: the release skips such a version. The rule compares the version of the head of the change with the version of its merge base, so a version that only the base branch changed does not count. A repository where each pull request sets its version sets the option `versionEachChange`. Then a change of the shipped files also raises the version, when npm has that version already. The files that ship are the files of the folder of the package, without the tests, the fixtures, the Markdown files and the configs (the option `unshipped`). When the package has the field `files`, an entry that git tracks ships its files. An entry that git does not track is build output. Then the inputs of the build ship: each file of `src/`, and each script, module and JSON file. The files of `main` and `bin` also ship. A change of `package.json` ships when a field of the option `fields` changes, for example `exports`, but not the dependencies. On a push to the default branch, a version that the push sets breaks only when npm had it before the push. The release of the same push can publish it. An error of the registry makes the rule show `skip`. A repository with `.changeset/config.json`, a private package and a version `0.0.0` or `0.0.0-<stage>` are not examined. | rigor #18 and #20 (2026-11-02): two pull requests set the same version, and the second change did not get to npm. crawler, coeval, template `release.yml`. |
62
62
  | `version-title` | A merge whose title names a version sets a version in a `package.json`. A title names a version in parentheses at its end, for example `(0.3.3)` before the `(#212)` of a squash, or after `Release` at its start. On a push to the default branch, the rule examines each commit of the first-parent line against its first parent. On a pull request, it reads the title of the event file and examines the merge commit against the base. On a dispatched run of a pull request, the file of `CONVENTIONS_PULL_REQUEST` gives the title. Then the rule examines the change from the merge base to the head. A version counts only when the base branch does not have it already. A title with no version passes. A title that names an other version than the version that the merge sets also passes, because the change gets a release. | template #212 (`5933b34`) and #215 (`e077054`), 2026-11-06: both set `site-pages` 0.3.3, so the squash of #215 changed no `package.json`, and no release started. Template #162 and #164 (2026-11-04) did the same with 0.2.5. crawler, coeval `release.yml`. |
@@ -147,7 +147,9 @@ An unknown rule, an unknown option, or an exception or a changed option without
147
147
  | `no-build-output.reports` | `["coverage"]` | The names of the folders of reports. Such a folder breaks the rule only next to a `package.json`. |
148
148
  | `no-local-paths.allow` | `[]` | More user names that are not a break. |
149
149
  | `no-local-paths.patterns` | `[]` | More regular expressions of text that no file has. The environment variable `CONVENTIONS_PRIVATE_PATTERNS` adds one on each line, so a private name stays out of `package.json`. The shared CI gives the variable from the secret of the same name. |
150
- | `no-console.fail` | `false` | A break fails the check. Set it when the count of the repository is 0, so the count cannot grow again. |
150
+ | `no-console.fail` | `false` | Each call fails the check also before the day `failFrom`. |
151
+ | `no-console.failFrom` | `2027-01-20` | The day from which each call fails. A day after 2027-01-20 fails the check. |
152
+ | `no-console.baseline` | `-1` (no baseline) | The count of the calls in the sources. The check fails when the count is not the baseline. |
151
153
  | `no-console.skip` | the globs of tests, fixtures, scripts, benches and examples | The files that are not sources. |
152
154
  | `release-files.paths` | `[".github/workflows/release.yml", "scripts/release/**"]` | The globs of the files of the release flow. |
153
155
  | `release-files.trailer` | `Release-Edit` | The key of the line that gives the reason. |
package/build/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as runCli } from "./run-Bh2ogCYi.js";
2
+ import { c as runCli } from "./run-CXGcxTGk.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  // src/cli.ts
5
5
  try {
package/build/index.d.ts CHANGED
@@ -59,6 +59,12 @@ interface OptionSpec {
59
59
  }
60
60
  /** A field of `package.json`, as the rules read it. */
61
61
  type Manifest = Readonly<Record<string, unknown>>;
62
+ /** The state that the function `decide` of a rule reads: the breaks after the exceptions, and the day of the check. */
63
+ interface RuleState {
64
+ readonly breaks: readonly Break[];
65
+ /** The day of the check, `YYYY-MM-DD` (UTC). */
66
+ readonly today: string;
67
+ }
62
68
  /** A `package.json` file of the repository. */
63
69
  interface PackageInfo {
64
70
  /** The folder, relative to the root, with `/`. The root is `""`. */
@@ -137,6 +143,12 @@ interface Rule {
137
143
  * break fails the check after the day `failsFrom`.
138
144
  */
139
145
  warnOnly?(options: Options): string | undefined;
146
+ /**
147
+ * This function decides if the breaks of the rule fail the check. It gives the reason of a warning, or undefined when the
148
+ * breaks fail. With this function, the rule decides alone: the day `failsFrom` and `warnOnly` do not apply. A ratchet
149
+ * uses it, because it compares the count of the breaks with a baseline on the day of the check.
150
+ */
151
+ decide?(options: Options, state: RuleState): string | undefined;
140
152
  /**
141
153
  * This function gives the reason when the rule cannot read a part of its cases, for example a private source that CI
142
154
  * does not give. It gives undefined when the rule reads each part. The check then shows "no read" and the reason with
@@ -506,6 +518,22 @@ export declare function isCliFile(file: string, text: string): boolean;
506
518
  export declare function consoleKind(cli: boolean, method: string): ConsoleKind;
507
519
  /** This function gives a break for each call of `console` in the text of one source file. */
508
520
  export declare function consoleBreaks(file: string, text: string): Break[];
521
+ /** The last day of the warnings: from this day each call fails in each repository. A repository cannot set a later day. */
522
+ export declare const CONSOLE_LAST_DAY = "2027-01-20";
523
+ /** The decision of the rule for one repository. */
524
+ interface ConsoleGate {
525
+ /** True when the calls fail the check. */
526
+ readonly fails: boolean;
527
+ /** The reason, in words for the owner of the repository. */
528
+ readonly why: string;
529
+ /** True when the reason is a problem of the options or the baseline, so the check gives it as a break of `package.json`. */
530
+ readonly summary: boolean;
531
+ }
532
+ /**
533
+ * This function decides the rule for a repository: the options, the count of the calls in its sources and the day of the
534
+ * check. A baseline of -1 is no baseline.
535
+ */
536
+ export declare function consoleGate(options: Options, count: number, today: string): ConsoleGate;
509
537
  export declare const noConsole: Rule;
510
538
  /**
511
539
  * The private name list: a JSON file outside of the public repositories, with the names of private projects. The file
@@ -1294,5 +1322,5 @@ export declare function npmUrl(name: string, version: string): string;
1294
1322
  * link to npm. The Releases page of `site-pages` reads each list item as a change.
1295
1323
  */
1296
1324
  export declare function releaseNotes(name: string, version: string, changelog: string | undefined): string;
1297
- export { type Advisory, type AllowedHit, type AuditSource, type Break, type CheckOptions, type CheckResult, type CliIo, type ConsoleKind, type ConventionsConfig, type Edit, type EventClass, type ExpressionValue, type FixResult, type HiddenFailure, type Home, type HomeAnswer, type HomeFetch, type HomeModule, type HomeState, type HookOptions, type JobPeak, type KeyLines, 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 ParsedConcurrency, type ParsedJob, type ParsedStep, type ParsedWorkflow, type PathFilter, type PeakOptions, type PrePushArgs, type PrePushOptions, type PrivateNameList, type PrivatePattern, type PrivateSources, type RegistryAnswer, type RegistryLookup, type RepoRef, type Rule, type RuleConfig, type RuleContext, type RuleOutcome, type RuleResult, type RunPart, type SecurityCaller, type SummaryJob, type TextBreakOptions, type Workflow, type WorkflowInput, type WorkflowJob, type WorkflowPeak, type WorkflowPermissions, type WorkflowStep, type YamlFault, globFolders, globToRegExp, isWorkspaceFolder, ownerOf, ownersOf, packageFolders, parseWorkspaceGlobs, repoKeyer, sharedNames, workspaceGlobs };
1325
+ export { type Advisory, type AllowedHit, type AuditSource, type Break, type CheckOptions, type CheckResult, type CliIo, type ConsoleGate, type ConsoleKind, type ConventionsConfig, type Edit, type EventClass, type ExpressionValue, type FixResult, type HiddenFailure, type Home, type HomeAnswer, type HomeFetch, type HomeModule, type HomeState, type HookOptions, type JobPeak, type KeyLines, 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 ParsedConcurrency, type ParsedJob, type ParsedStep, type ParsedWorkflow, type PathFilter, type PeakOptions, type PrePushArgs, type PrePushOptions, type PrivateNameList, type PrivatePattern, type PrivateSources, type RegistryAnswer, type RegistryLookup, type RepoRef, type Rule, type RuleConfig, type RuleContext, type RuleOutcome, type RuleResult, type RuleState, type RunPart, type SecurityCaller, type SummaryJob, type TextBreakOptions, type Workflow, type WorkflowInput, type WorkflowJob, type WorkflowPeak, type WorkflowPermissions, type WorkflowStep, type YamlFault, globFolders, globToRegExp, isWorkspaceFolder, ownerOf, ownersOf, packageFolders, parseWorkspaceGlobs, repoKeyer, sharedNames, workspaceGlobs };
1298
1326
  //# 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-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-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/rules/no-console.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/workflow.ts","../src/rules/runner-peak.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/workflow-expression.ts","../src/home-exports.ts","../src/release-text.ts"],"mappings":";;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;WAEA;;EAET;;EAEA,IAAI;;;;;;EAMJ,SAAS;;;wBAIK,UAAU,SAAS,KAAK,iCAAiC;;KAM7D,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;;;;EAM/C,UAAU,SAAS;;;;;;EAMnB,QAAQ,SAAS,aAAa,SAAS;;;qBAO5B;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qBAMxC,WAAY,gBAAgB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eAAe;;wBAyC/B,aAAa,QAAQ;;wBA4BrB,gBAAgB,QAAQ;;;;;;wBA2BxB,YAAY,QAAQ;;wBAapB,UAAU,QAAQ,+BAA+B,iBAAgB;;UAkBhE;WACN;WACA,KAAK,SAAS;WACd,SAAS;WACT,SAAS;;WAET;;;qBAIE;;wBA8EG,OAAO,yBAAyB,IAAI;;qBC3YvC;;UAGI;;WAEN;;;;;WAKA;;;;;WAKA;;;;;WAKA;;WAEA;WACA,KAAK,SAAS;;WAEd;;WAEA,MAAM;;WAEN,YAAY;;;;;;;;;;;;wBA0MP,QAAQ,SAAS,gBAAgB,IAAI,KAAK;;UA6GzC;;WAEN;WACA;WACA;WACA;;;;;;wBAOK,iBAAiB,0BAA0B;;;;;wBAuB3C,eAAe,MAAM,aAAa,IAAI,KAAK;;qBAS9C;;;;;;;;qBAgCA;;UAgBI;;WAEN;WACA,KAAK,SAAS;;WAEd,MAAM;;;;;;;wBAQD,YAAY,SAAS,aAAa,IAAI,KAAK;;;;;;;;;;;;KCzc/C;;UAGK;WACN,OAAO,YAAY;WACnB;;WAEA;;;wBA8DK,mBAAmB,cAAc,gBAAgB;;;;;wBAoGjD,WAAW,eAAe,gBAAgB,YAAY;;;;;wBActD,OAAO,mBAAmB;;qBCjM7B,cAAc,SAAS;WAA0B;WAA0B;;;;;;;;;qBCM3E;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-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/rules/no-console.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/workflow.ts","../src/rules/runner-peak.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/workflow-expression.ts","../src/home-exports.ts","../src/release-text.ts"],"mappings":";;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;WACN,iBAAiB;;WAEjB;;;UAIM;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;WAEA;;EAET;;EAEA,IAAI;;;;;;EAMJ,SAAS;;;wBAIK,UAAU,SAAS,KAAK,iCAAiC;;KAM7D,uBAAuB;WAAq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;;qBCjM7B,cAAc,SAAS;WAA0B;WAA0B;;;;;;;;;qBCM3E;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as requiredScripts, $n as securityCallers, $t as NOT_SOURCE, A as scriptsOf, An as SERVICE_PACKAGE, Ar as inFolder, At as packNoBuildinfo, B as TEMPLATE_CALLED, Bn as setupCue, Br as runGitShow, Bt as privatePatterns, C as setVersions, Cn as findHomes, Cr as STRICT_OPTIONS, Ct as pagesAfterRelease, D as trustPolicy, Dn as npmDrift, Dr as cleanPath, Dt as pagesSite, E as TRAIN_SCOPES, En as mergeHomes, Er as RULE_WARN_DAYS, Et as pagesCalls, F as sourceMain, Fn as SHARED_ACTIONS, Fr as parseJsonc, Ft as PRIVATE_PATTERNS_VARIABLE, G as runnerPeak, Gn as SUMMARY_GATES, Gr as parseRuleConfig, Gt as isAllowedHit, H as calledJobs, Hn as isSecurityGate, Hr as specifiersOf, Ht as PRIVATE_NAME_LIST, I as HOME_TIMEOUT_MS, In as SHARED_CI, Ir as readJsonc, It as invalidPatternBreaks, J as evaluateExpression, Jn as startsOnPullRequest, Jt as lineNameHits, K as runsAtOnce, Kn as addSummaryJob, Kt as isCommonUse, L as blockHash, Ln as SHARED_WORKFLOWS, Lr as replaceLine, Lt as noLocalPaths, M as testsRequired, Mn as serviceRunMain, Mr as lineOf, Mt as HOME_PATTERNS, N as isSourcePath, Nn as hasTests, Nr as matchesAny, Nt as PRIVATE_NAMES_FILE_CONFIG, O as typedScripts, On as npmNames, Or as codePackages, Ot as exportsRequire, P as pathsOf, Pn as tsconfigTest, Pr as parseCatFileBatch, Pt as PRIVATE_NAMES_FILE_VARIABLE, Q as roadmapParses, Qn as SECURITY_TIMEOUT_MINUTES, Qt as pathNameHit, R as githubFetch, Rn as callsSharedCi, Rr as repositoryOfRemote, Rt as privateNamesFile, S as namedVersions, Sn as MAP_RULE, Sr as yamlFaults, St as siteCheckInCi, T as IGNORE_AFTER, Tn as mapText, Tr as DEPENDENCY_FIELDS, Tt as PAGES_WORKFLOWS, U as eventClass, Un as securityGate, Ur as defaultOptions, Ut as PrivateNameListError, V as UNKNOWN_MATRIX_JOBS, Vn as SECURITY_FILE, Vr as showFiles, Vt as privateTextBreaks, W as matrixPeak, Wn as securityWorkflow, Wr as parseConfig, Wt as firstNameMatch, X as mayRun, Xn as SECURITY_SCAN_COMMIT, Xt as nameMatches, Y as groupParts, Yn as summaryJobRule, Yt as mergePrivateNames, Z as roadmapOfLine, Zn as SECURITY_SCAN_INPUTS, Zt as parsePrivateNames, _ as runPrePushArgs, _n as repoOf, _r as gateAfterCancel, _t as swallowsTests, a as listRules, an as REAL_COMPARE, ar as authorOf, at as reachOf, b as GITHUB_YAML, bn as HOME_EXPORTS, br as readAction, bt as isPinned, c as runCli, cn as coverageProvider, cr as mitText, ct as UNSHIPPED_FILES, d as HOOK_MARKER, dn as moduleMessage, dr as convertGate, dt as unreleasedChangeRule, en as consoleBreaks, er as securityOneJob, et as releaseFiles, f as NO_READ_LINE, fn as moduleUses, fr as gateTrigger, ft as playwrightInstall, g as prePush, gn as messageOf, gr as summaryName, gt as startsTests, h as parsePrePushArgs, hn as homePackage, hr as summaryJob, ht as parseAdvisory, i as formatResult, in as noBuildOutput, ir as LICENSE_TEXTS, it as publishedMinorRule, j as typedFiles, jn as runCalls, jr as keyLine, jt as DEFAULT_ALLOWED, k as configsOfScript, kn as readOverlay, kr as hasFile, kt as publishTextSafe, l as runFix, ln as apiReportScript, lr as repositoryIsPublic, lt as npmLookup, m as installHook, mn as declaredName, mr as skippableJobs, mt as jobFails, n as annotations, nn as isCliFile, nr as runnerBudget, nt as minorOf, o as readConfig, on as hasImportMetaMain, or as licenseFile, ot as NPM_REGISTRY, p as PRE_PUSH_HOOK, pn as modulesOf, pr as prPathFilters, pt as hiddenFailures, q as workflowPeaks, qn as hasSummaryJob, qt as lineNameHit, r as createContext, rn as noConsole, rr as scheduleMinute, rt as publishedMinor, s as runChecks, sn as mainCheck, sr as licenseFileOf, st as SHIPPED_FIELDS, t as USAGE, tn as consoleKind, tr as withOneJob, tt as lockedVersions, u as summaryMarkdown, un as homeModule, ur as ACTIONS_COMMIT, ut as unreleasedChange, v as RULES, vn as reposOf, vr as MATRIX_EXPAND_MAX, vt as pipeFails, w as versionTitle, wn as mapMarkdown, wr as cuePreset, wt as pushMainOnly, x as workflowParses, xn as HOMES, xr as readWorkflow, xt as pinnedGitDeps, y as workspaceProtocol, yn as signaturesOf, yr as parseWorkflow, yt as isGitSpecifier, z as sharedDocsRule, zn as sharedCi, zr as runGit, zt as privateNamesFiles } from "./run-Bh2ogCYi.js";
1
+ import { $ as requiredScripts, $n as SECURITY_SCAN_INPUTS, $t as CONSOLE_LAST_DAY, A as scriptsOf, An as npmNames, Ar as codePackages, At as packNoBuildinfo, B as TEMPLATE_CALLED, Bn as callsSharedCi, Br as repositoryOfRemote, Bt as privatePatterns, C as setVersions, Cn as HOMES, Cr as readWorkflow, Ct as pagesAfterRelease, D as trustPolicy, Dn as mapText, Dr as DEPENDENCY_FIELDS, Dt as pagesSite, E as TRAIN_SCOPES, En as mapMarkdown, Er as cuePreset, Et as pagesCalls, F as sourceMain, Fn as hasTests, Fr as matchesAny, Ft as PRIVATE_PATTERNS_VARIABLE, G as runnerPeak, Gn as securityGate, Gr as defaultOptions, Gt as isAllowedHit, H as calledJobs, Hn as setupCue, Hr as runGitShow, Ht as PRIVATE_NAME_LIST, I as HOME_TIMEOUT_MS, In as tsconfigTest, Ir as parseCatFileBatch, It as invalidPatternBreaks, J as evaluateExpression, Jn as addSummaryJob, Jt as lineNameHits, K as runsAtOnce, Kn as securityWorkflow, Kr as parseConfig, Kt as isCommonUse, L as blockHash, Ln as SHARED_ACTIONS, Lr as parseJsonc, Lt as noLocalPaths, M as testsRequired, Mn as SERVICE_PACKAGE, Mr as inFolder, Mt as HOME_PATTERNS, N as isSourcePath, Nn as runCalls, Nr as keyLine, Nt as PRIVATE_NAMES_FILE_CONFIG, O as typedScripts, On as mergeHomes, Or as RULE_WARN_DAYS, Ot as exportsRequire, P as pathsOf, Pn as serviceRunMain, Pr as lineOf, Pt as PRIVATE_NAMES_FILE_VARIABLE, Q as roadmapParses, Qn as SECURITY_SCAN_COMMIT, Qt as pathNameHit, R as githubFetch, Rn as SHARED_CI, Rr as readJsonc, Rt as privateNamesFile, S as namedVersions, Sn as HOME_EXPORTS, Sr as readAction, St as siteCheckInCi, T as IGNORE_AFTER, Tn as findHomes, Tr as STRICT_OPTIONS, Tt as PAGES_WORKFLOWS, U as eventClass, Un as SECURITY_FILE, Ur as showFiles, Ut as PrivateNameListError, V as UNKNOWN_MATRIX_JOBS, Vn as sharedCi, Vr as runGit, Vt as privateTextBreaks, W as matrixPeak, Wn as isSecurityGate, Wr as specifiersOf, Wt as firstNameMatch, X as mayRun, Xn as startsOnPullRequest, Xt as nameMatches, Y as groupParts, Yn as hasSummaryJob, Yt as mergePrivateNames, Z as roadmapOfLine, Zn as summaryJobRule, Zt as parsePrivateNames, _ as runPrePushArgs, _n as homePackage, _r as summaryJob, _t as swallowsTests, a as listRules, an as noConsole, ar as scheduleMinute, at as reachOf, b as GITHUB_YAML, bn as reposOf, br as MATRIX_EXPAND_MAX, bt as isPinned, c as runCli, cn as hasImportMetaMain, cr as licenseFile, ct as UNSHIPPED_FILES, d as HOOK_MARKER, dn as apiReportScript, dr as repositoryIsPublic, dt as unreleasedChangeRule, en as NOT_SOURCE, er as SECURITY_TIMEOUT_MINUTES, et as releaseFiles, f as NO_READ_LINE, fn as homeModule, fr as ACTIONS_COMMIT, ft as playwrightInstall, g as prePush, gn as declaredName, gr as skippableJobs, gt as startsTests, h as parsePrePushArgs, hn as modulesOf, hr as prPathFilters, ht as parseAdvisory, i as formatResult, in as isCliFile, ir as runnerBudget, it as publishedMinorRule, j as typedFiles, jn as readOverlay, jr as hasFile, jt as DEFAULT_ALLOWED, k as configsOfScript, kn as npmDrift, kr as cleanPath, kt as publishTextSafe, l as runFix, ln as mainCheck, lr as licenseFileOf, lt as npmLookup, m as installHook, mn as moduleUses, mr as gateTrigger, mt as jobFails, n as annotations, nn as consoleGate, nr as securityOneJob, nt as minorOf, o as readConfig, on as noBuildOutput, or as LICENSE_TEXTS, ot as NPM_REGISTRY, p as PRE_PUSH_HOOK, pn as moduleMessage, pr as convertGate, pt as hiddenFailures, q as workflowPeaks, qn as SUMMARY_GATES, qr as parseRuleConfig, qt as lineNameHit, r as createContext, rn as consoleKind, rr as withOneJob, rt as publishedMinor, s as runChecks, sn as REAL_COMPARE, sr as authorOf, st as SHIPPED_FIELDS, t as USAGE, tn as consoleBreaks, tr as securityCallers, tt as lockedVersions, u as summaryMarkdown, un as coverageProvider, ur as mitText, ut as unreleasedChange, v as RULES, vn as messageOf, vr as summaryName, vt as pipeFails, w as versionTitle, wn as MAP_RULE, wr as yamlFaults, wt as pushMainOnly, x as workflowParses, xn as signaturesOf, xr as parseWorkflow, xt as pinnedGitDeps, y as workspaceProtocol, yn as repoOf, yr as gateAfterCancel, yt as isGitSpecifier, z as sharedDocsRule, zn as SHARED_WORKFLOWS, zr as replaceLine, zt as privateNamesFiles } from "./run-CXGcxTGk.js";
2
2
  import { OWNERS, ownerOf, ownersOf, repoKeyer, 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, MATRIX_EXPAND_MAX, MAX_NOTES, NOT_SOURCE, 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_FILE, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, SUMMARY_GATES, TEMPLATE_CALLED, TRAIN_SCOPES, UNKNOWN_MATRIX_JOBS, UNSHIPPED_FILES, USAGE, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, calledJobs, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, consoleBreaks, consoleKind, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, evaluateExpression, eventClass, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasSummaryJob, hasTests, hiddenFailures, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCliFile, isCommonUse, isGitSpecifier, isPinned, isSecurityGate, isSourcePath, isWorkspaceFolder, jobFails, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, matrixPeak, mayRun, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noConsole, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseCatFileBatch, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, specifiersOf, startsOnPullRequest, startsTests, summaryJob, summaryJobRule, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workflowPeaks, workspaceGlobs, workspaceProtocol, yamlFaults };
69
+ export { ACTIONS_COMMIT, CONSOLE_LAST_DAY, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MATRIX_EXPAND_MAX, MAX_NOTES, NOT_SOURCE, 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_FILE, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, SUMMARY_GATES, TEMPLATE_CALLED, TRAIN_SCOPES, UNKNOWN_MATRIX_JOBS, UNSHIPPED_FILES, USAGE, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, calledJobs, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, consoleBreaks, consoleGate, consoleKind, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, evaluateExpression, eventClass, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasSummaryJob, hasTests, hiddenFailures, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCliFile, isCommonUse, isGitSpecifier, isPinned, isSecurityGate, isSourcePath, isWorkspaceFolder, jobFails, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, matrixPeak, mayRun, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noConsole, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseCatFileBatch, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, specifiersOf, startsOnPullRequest, startsTests, summaryJob, summaryJobRule, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workflowPeaks, workspaceGlobs, workspaceProtocol, yamlFaults };
70
70
 
71
71
  //# sourceMappingURL=index.js.map
@@ -3351,6 +3351,7 @@ const SHARED_WORKFLOWS = [
3351
3351
  "reusable-release-build.yml",
3352
3352
  "reusable-release-tag.yml",
3353
3353
  "reusable-release-tree.yml",
3354
+ "reusable-release-version.yml",
3354
3355
  "reusable-security.yml"
3355
3356
  ];
3356
3357
  /** The shared actions of the template, by folder name under `.github/actions`, and the folder `bundles` of their bundles. */
@@ -18098,8 +18099,11 @@ const noBuildOutput = {
18098
18099
  *
18099
18100
  * A call in a CLI file is output, except `console.debug` and `console.trace`. A CLI file starts with `#!`, has the name
18100
18101
  * `cli`, `main` or a folder `bin` or `commands` in its path, or reads `process.argv`. Each other call is a diagnostic,
18101
- * except `console.table`, which is output. Until a repository sets the option `fail`, a break is a warning. A repository
18102
- * sets the option when its count is 0, so the count cannot grow again.
18102
+ * except `console.table`, which is output.
18103
+ *
18104
+ * The rule is a ratchet. A repository writes its count in the option `baseline`. The check fails when the count is not
18105
+ * the baseline: a new call fails, and a fix lowers the baseline. From the day `failFrom` each call fails. The default
18106
+ * day is `CONSOLE_LAST_DAY`, and a repository can set an earlier day, but not a later day.
18103
18107
  */
18104
18108
  /** The files that the rule reads: the sources of JavaScript and TypeScript, and the pages and components that hold scripts. */
18105
18109
  const SOURCE = /\.(?:[cm]?[jt]s|[jt]sx|svelte|vue|html)$/;
@@ -18164,11 +18168,58 @@ function consoleBreaks(file, text) {
18164
18168
  });
18165
18169
  return breaks;
18166
18170
  }
18171
+ /** The last day of the warnings: from this day each call fails in each repository. A repository cannot set a later day. */
18172
+ const CONSOLE_LAST_DAY = "2027-01-20";
18173
+ /** The file of the summary break of the ratchet: the options of the rule are in the root `package.json`. */
18174
+ const CONFIG_FILE$1 = "package.json";
18175
+ /**
18176
+ * This function decides the rule for a repository: the options, the count of the calls in its sources and the day of the
18177
+ * check. A baseline of -1 is no baseline.
18178
+ */
18179
+ function consoleGate(options, count, today) {
18180
+ const failFrom = String(options["failFrom"] ?? "2027-01-20");
18181
+ const baseline = Number(options["baseline"] ?? -1);
18182
+ if (failFrom > "2027-01-20") return {
18183
+ fails: true,
18184
+ summary: true,
18185
+ why: `The option failFrom of no-console is ${failFrom}, after the last day ${CONSOLE_LAST_DAY}. Set a day on or before it.`
18186
+ };
18187
+ if (baseline >= 0 && count > baseline) return {
18188
+ fails: true,
18189
+ summary: true,
18190
+ why: `The sources have ${String(count)} console calls, more than the baseline ${String(baseline)} of no-console. Remove the new calls.`
18191
+ };
18192
+ if (baseline >= 0 && count < baseline) return {
18193
+ fails: true,
18194
+ summary: true,
18195
+ why: `The sources have ${String(count)} console calls, fewer than the baseline ${String(baseline)} of no-console. Set the option baseline to ${String(count)}.`
18196
+ };
18197
+ if (count === 0) return {
18198
+ fails: false,
18199
+ summary: false,
18200
+ why: ""
18201
+ };
18202
+ if (options["fail"] === true) return {
18203
+ fails: true,
18204
+ summary: false,
18205
+ why: "The option fail of no-console is set."
18206
+ };
18207
+ if (today >= failFrom) return {
18208
+ fails: true,
18209
+ summary: false,
18210
+ why: `Each console call fails from ${failFrom}.`
18211
+ };
18212
+ return {
18213
+ fails: false,
18214
+ summary: false,
18215
+ why: `Each console call fails from ${failFrom}. ${baseline >= 0 ? `The count ${String(count)} is the baseline.` : `Set the option baseline to ${String(count)}, so the count cannot grow.`}`
18216
+ };
18217
+ }
18167
18218
  const noConsole = {
18168
18219
  id: "no-console",
18169
18220
  title: "No source file calls `console`: output for a person goes to the printer of `@mark1russell7/text/print`, and a diagnostic goes to a log record of `@mark1russell7/otel-ts`.",
18170
18221
  reason: "A console line has no trace id, no level that a collector reads and no redaction of secrets. A diagnostic then does not join the trace of its request, and the output of a CLI cannot go to a buffer in a test. A census of 2026-11-25 found 1549 console calls in the sources of 36 repositories.",
18171
- fix: "Write the output of a CLI with createPrinter({ out: process.stdout, err: process.stderr }) of @mark1russell7/text/print. Emit each diagnostic of a library or a service with the logger of @mark1russell7/otel-ts. When the count is 0, set the option fail: true.",
18222
+ fix: "Write the output of a CLI with createPrinter({ out: process.stdout, err: process.stderr }) of @mark1russell7/text/print. Emit each diagnostic of a library or a service with the logger of @mark1russell7/otel-ts. After each fix, set the option baseline to the new count.",
18172
18223
  sources: [{
18173
18224
  repo: "private",
18174
18225
  rule: "no-console",
@@ -18178,7 +18229,17 @@ const noConsole = {
18178
18229
  fail: {
18179
18230
  type: "boolean",
18180
18231
  default: false,
18181
- description: "A break fails the check. Until a repository sets it, a break is a warning. Set it when the count is 0."
18232
+ description: "Each call fails the check also before the day failFrom."
18233
+ },
18234
+ failFrom: {
18235
+ type: "string",
18236
+ default: CONSOLE_LAST_DAY,
18237
+ description: "The day from which each call fails. A repository can set an earlier day, but not a day after CONSOLE_LAST_DAY."
18238
+ },
18239
+ baseline: {
18240
+ type: "number",
18241
+ default: -1,
18242
+ description: "The count of the calls in the sources. The check fails when the count is not the baseline. -1 is no baseline."
18182
18243
  },
18183
18244
  skip: {
18184
18245
  type: "strings",
@@ -18201,10 +18262,16 @@ const noConsole = {
18201
18262
  }
18202
18263
  if (text.includes("console")) breaks.push(...consoleBreaks(file, text));
18203
18264
  }
18204
- return breaks;
18265
+ const gate = consoleGate(options, breaks.length, context.today ?? (/* @__PURE__ */ new Date()).toISOString().slice(0, 10));
18266
+ return gate.summary ? [{
18267
+ file: CONFIG_FILE$1,
18268
+ message: gate.why
18269
+ }, ...breaks] : breaks;
18205
18270
  },
18206
- warnOnly(options) {
18207
- return options["fail"] === true ? void 0 : "The rule fails in a repository that sets the option fail: true, when its count is 0.";
18271
+ decide(options, state) {
18272
+ const gate = consoleGate(options, state.breaks.filter((item) => item.file !== CONFIG_FILE$1).length, state.today);
18273
+ if (gate.fails) return void 0;
18274
+ return state.breaks.some((item) => item.file === CONFIG_FILE$1) ? void 0 : gate.why;
18208
18275
  }
18209
18276
  };
18210
18277
  // src/private-names.ts
@@ -22380,6 +22447,7 @@ const TEMPLATE_CALLED = [
22380
22447
  "reusable-release-build.yml=1",
22381
22448
  "reusable-release-tag.yml=1",
22382
22449
  "reusable-release-tree.yml=1",
22450
+ "reusable-release-version.yml=1",
22383
22451
  "reusable-security.yml=3"
22384
22452
  ];
22385
22453
  const runnerPeak = {
@@ -24919,8 +24987,12 @@ function runChecks(options) {
24919
24987
  message: `The entry \`${glob}\` of \`${field}\` matches no break of this rule. Remove it from the field \`conventions\`.`
24920
24988
  });
24921
24989
  }
24922
- const beforeDay = rule.failsFrom !== void 0 && today < rule.failsFrom;
24923
- const optIn = breaks.length > 0 ? rule.warnOnly?.(ruleConfig.options) : void 0;
24990
+ const decides = rule.decide !== void 0;
24991
+ const beforeDay = !decides && rule.failsFrom !== void 0 && today < rule.failsFrom;
24992
+ const optIn = breaks.length === 0 ? void 0 : decides ? rule.decide?.(ruleConfig.options, {
24993
+ breaks,
24994
+ today
24995
+ }) : rule.warnOnly?.(ruleConfig.options);
24924
24996
  const warns = breaks.length > 0 && (beforeDay || optIn !== void 0);
24925
24997
  const reason = warns ? [
24926
24998
  ruleConfig.reason,
@@ -25387,6 +25459,6 @@ function runHook(args, io) {
25387
25459
  git: (gitArgs) => runGit(io.cwd, gitArgs)
25388
25460
  }, io);
25389
25461
  }
25390
- export { requiredScripts as $, securityCallers as $n, NOT_SOURCE as $t, scriptsOf as A, SERVICE_PACKAGE as An, inFolder as Ar, packNoBuildinfo as At, TEMPLATE_CALLED as B, setupCue as Bn, runGitShow as Br, privatePatterns as Bt, setVersions as C, findHomes as Cn, STRICT_OPTIONS as Cr, pagesAfterRelease as Ct, trustPolicy as D, npmDrift as Dn, cleanPath as Dr, pagesSite as Dt, TRAIN_SCOPES as E, mergeHomes as En, RULE_WARN_DAYS as Er, pagesCalls as Et, sourceMain as F, SHARED_ACTIONS as Fn, parseJsonc as Fr, PRIVATE_PATTERNS_VARIABLE as Ft, runnerPeak as G, SUMMARY_GATES as Gn, parseRuleConfig as Gr, isAllowedHit as Gt, calledJobs as H, isSecurityGate as Hn, specifiersOf as Hr, PRIVATE_NAME_LIST as Ht, HOME_TIMEOUT_MS as I, SHARED_CI as In, readJsonc as Ir, invalidPatternBreaks as It, evaluateExpression as J, startsOnPullRequest as Jn, lineNameHits as Jt, runsAtOnce as K, addSummaryJob as Kn, isCommonUse as Kt, blockHash as L, SHARED_WORKFLOWS as Ln, replaceLine as Lr, noLocalPaths as Lt, testsRequired as M, serviceRunMain as Mn, lineOf as Mr, HOME_PATTERNS as Mt, isSourcePath as N, hasTests as Nn, matchesAny as Nr, PRIVATE_NAMES_FILE_CONFIG as Nt, typedScripts as O, npmNames as On, codePackages as Or, exportsRequire as Ot, pathsOf as P, tsconfigTest as Pn, parseCatFileBatch as Pr, PRIVATE_NAMES_FILE_VARIABLE as Pt, roadmapParses as Q, SECURITY_TIMEOUT_MINUTES as Qn, pathNameHit as Qt, githubFetch as R, callsSharedCi as Rn, repositoryOfRemote as Rr, privateNamesFile as Rt, namedVersions as S, MAP_RULE as Sn, yamlFaults as Sr, siteCheckInCi as St, IGNORE_AFTER as T, mapText as Tn, DEPENDENCY_FIELDS as Tr, PAGES_WORKFLOWS as Tt, eventClass as U, securityGate as Un, defaultOptions as Ur, PrivateNameListError as Ut, UNKNOWN_MATRIX_JOBS as V, SECURITY_FILE as Vn, showFiles as Vr, privateTextBreaks as Vt, matrixPeak as W, securityWorkflow as Wn, parseConfig as Wr, firstNameMatch as Wt, mayRun as X, SECURITY_SCAN_COMMIT as Xn, nameMatches as Xt, groupParts as Y, summaryJobRule as Yn, mergePrivateNames as Yt, roadmapOfLine as Z, SECURITY_SCAN_INPUTS as Zn, parsePrivateNames as Zt, runPrePushArgs as _, repoOf as _n, gateAfterCancel as _r, swallowsTests as _t, listRules as a, REAL_COMPARE as an, authorOf as ar, reachOf as at, GITHUB_YAML as b, HOME_EXPORTS as bn, readAction as br, isPinned as bt, runCli as c, coverageProvider as cn, mitText as cr, UNSHIPPED_FILES as ct, HOOK_MARKER as d, moduleMessage as dn, convertGate as dr, unreleasedChangeRule as dt, consoleBreaks as en, securityOneJob as er, releaseFiles as et, NO_READ_LINE as f, moduleUses as fn, gateTrigger as fr, playwrightInstall as ft, prePush as g, messageOf$1 as gn, summaryName as gr, startsTests as gt, parsePrePushArgs as h, homePackage as hn, summaryJob as hr, parseAdvisory as ht, formatResult as i, noBuildOutput as in, LICENSE_TEXTS as ir, publishedMinorRule as it, typedFiles as j, runCalls as jn, keyLine as jr, DEFAULT_ALLOWED as jt, configsOfScript as k, readOverlay as kn, hasFile as kr, publishTextSafe as kt, runFix as l, apiReportScript as ln, repositoryIsPublic as lr, npmLookup as lt, installHook as m, declaredName as mn, skippableJobs as mr, jobFails as mt, annotations as n, isCliFile as nn, runnerBudget as nr, minorOf as nt, readConfig as o, hasImportMetaMain as on, licenseFile as or, NPM_REGISTRY as ot, PRE_PUSH_HOOK as p, modulesOf as pn, prPathFilters as pr, hiddenFailures as pt, workflowPeaks as q, hasSummaryJob as qn, lineNameHit as qt, createContext as r, noConsole as rn, scheduleMinute as rr, publishedMinor as rt, runChecks as s, mainCheck as sn, licenseFileOf as sr, SHIPPED_FIELDS as st, USAGE as t, consoleKind as tn, withOneJob as tr, lockedVersions as tt, summaryMarkdown as u, homeModule as un, ACTIONS_COMMIT as ur, unreleasedChange as ut, RULES as v, reposOf as vn, MATRIX_EXPAND_MAX as vr, pipeFails as vt, versionTitle as w, mapMarkdown as wn, cuePreset as wr, pushMainOnly as wt, workflowParses as x, HOMES as xn, readWorkflow as xr, pinnedGitDeps as xt, workspaceProtocol as y, signaturesOf as yn, parseWorkflow as yr, isGitSpecifier as yt, sharedDocsRule as z, sharedCi as zn, runGit as zr, privateNamesFiles as zt };
25462
+ export { requiredScripts as $, SECURITY_SCAN_INPUTS as $n, CONSOLE_LAST_DAY as $t, scriptsOf as A, npmNames as An, codePackages as Ar, packNoBuildinfo as At, TEMPLATE_CALLED as B, callsSharedCi as Bn, repositoryOfRemote as Br, privatePatterns as Bt, setVersions as C, HOMES as Cn, readWorkflow as Cr, pagesAfterRelease as Ct, trustPolicy as D, mapText as Dn, DEPENDENCY_FIELDS as Dr, pagesSite as Dt, TRAIN_SCOPES as E, mapMarkdown as En, cuePreset as Er, pagesCalls as Et, sourceMain as F, hasTests as Fn, matchesAny as Fr, PRIVATE_PATTERNS_VARIABLE as Ft, runnerPeak as G, securityGate as Gn, defaultOptions as Gr, isAllowedHit as Gt, calledJobs as H, setupCue as Hn, runGitShow as Hr, PRIVATE_NAME_LIST as Ht, HOME_TIMEOUT_MS as I, tsconfigTest as In, parseCatFileBatch as Ir, invalidPatternBreaks as It, evaluateExpression as J, addSummaryJob as Jn, lineNameHits as Jt, runsAtOnce as K, securityWorkflow as Kn, parseConfig as Kr, isCommonUse as Kt, blockHash as L, SHARED_ACTIONS as Ln, parseJsonc as Lr, noLocalPaths as Lt, testsRequired as M, SERVICE_PACKAGE as Mn, inFolder as Mr, HOME_PATTERNS as Mt, isSourcePath as N, runCalls as Nn, keyLine as Nr, PRIVATE_NAMES_FILE_CONFIG as Nt, typedScripts as O, mergeHomes as On, RULE_WARN_DAYS as Or, exportsRequire as Ot, pathsOf as P, serviceRunMain as Pn, lineOf as Pr, PRIVATE_NAMES_FILE_VARIABLE as Pt, roadmapParses as Q, SECURITY_SCAN_COMMIT as Qn, pathNameHit as Qt, githubFetch as R, SHARED_CI as Rn, readJsonc as Rr, privateNamesFile as Rt, namedVersions as S, HOME_EXPORTS as Sn, readAction as Sr, siteCheckInCi as St, IGNORE_AFTER as T, findHomes as Tn, STRICT_OPTIONS as Tr, PAGES_WORKFLOWS as Tt, eventClass as U, SECURITY_FILE as Un, showFiles as Ur, PrivateNameListError as Ut, UNKNOWN_MATRIX_JOBS as V, sharedCi as Vn, runGit as Vr, privateTextBreaks as Vt, matrixPeak as W, isSecurityGate as Wn, specifiersOf as Wr, firstNameMatch as Wt, mayRun as X, startsOnPullRequest as Xn, nameMatches as Xt, groupParts as Y, hasSummaryJob as Yn, mergePrivateNames as Yt, roadmapOfLine as Z, summaryJobRule as Zn, parsePrivateNames as Zt, runPrePushArgs as _, homePackage as _n, summaryJob as _r, swallowsTests as _t, listRules as a, noConsole as an, scheduleMinute as ar, reachOf as at, GITHUB_YAML as b, reposOf as bn, MATRIX_EXPAND_MAX as br, isPinned as bt, runCli as c, hasImportMetaMain as cn, licenseFile as cr, UNSHIPPED_FILES as ct, HOOK_MARKER as d, apiReportScript as dn, repositoryIsPublic as dr, unreleasedChangeRule as dt, NOT_SOURCE as en, SECURITY_TIMEOUT_MINUTES as er, releaseFiles as et, NO_READ_LINE as f, homeModule as fn, ACTIONS_COMMIT as fr, playwrightInstall as ft, prePush as g, declaredName as gn, skippableJobs as gr, startsTests as gt, parsePrePushArgs as h, modulesOf as hn, prPathFilters as hr, parseAdvisory as ht, formatResult as i, isCliFile as in, runnerBudget as ir, publishedMinorRule as it, typedFiles as j, readOverlay as jn, hasFile as jr, DEFAULT_ALLOWED as jt, configsOfScript as k, npmDrift as kn, cleanPath as kr, publishTextSafe as kt, runFix as l, mainCheck as ln, licenseFileOf as lr, npmLookup as lt, installHook as m, moduleUses as mn, gateTrigger as mr, jobFails as mt, annotations as n, consoleGate as nn, securityOneJob as nr, minorOf as nt, readConfig as o, noBuildOutput as on, LICENSE_TEXTS as or, NPM_REGISTRY as ot, PRE_PUSH_HOOK as p, moduleMessage as pn, convertGate as pr, hiddenFailures as pt, workflowPeaks as q, SUMMARY_GATES as qn, parseRuleConfig as qr, lineNameHit as qt, createContext as r, consoleKind as rn, withOneJob as rr, publishedMinor as rt, runChecks as s, REAL_COMPARE as sn, authorOf as sr, SHIPPED_FIELDS as st, USAGE as t, consoleBreaks as tn, securityCallers as tr, lockedVersions as tt, summaryMarkdown as u, coverageProvider as un, mitText as ur, unreleasedChange as ut, RULES as v, messageOf$1 as vn, summaryName as vr, pipeFails as vt, versionTitle as w, MAP_RULE as wn, yamlFaults as wr, pushMainOnly as wt, workflowParses as x, signaturesOf as xn, parseWorkflow as xr, pinnedGitDeps as xt, workspaceProtocol as y, repoOf as yn, gateAfterCancel as yr, isGitSpecifier as yt, sharedDocsRule as z, SHARED_WORKFLOWS as zn, replaceLine as zr, privateNamesFiles as zt };
25391
25463
 
25392
- //# sourceMappingURL=run-Bh2ogCYi.js.map
25464
+ //# sourceMappingURL=run-CXGcxTGk.js.map