@mark1russell7/conventions 0.61.0 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/build/cli.js +1 -1
- package/build/index.d.ts +18 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/{run-51JRimSi.js → run-Buh6lcPi.js} +119 -7
- package/build/run-Buh6lcPi.js.map +1 -0
- package/package.json +3 -3
- package/build/run-51JRimSi.js.map +0 -1
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
|
|
|
57
57
|
| `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`. |
|
|
58
58
|
| `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. |
|
|
59
59
|
| `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`. |
|
|
60
|
-
| `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
|
+
| `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 `diagnostics(name)` of `@mark1russell7/otel-ts/log`, 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. |
|
|
61
61
|
| `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`. |
|
|
62
62
|
| `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`. |
|
|
63
63
|
| `changesets-config` | A repository with `.github/workflows/release.yml` and a package that goes to npm has `.changeset/config.json` and `@changesets/cli` in the root devDependencies. With a version number in each pull request, each release of main during the CI of a pull request takes the number, and the pull request must bump again: on 2026-11-27 alerts PR 634 took 5 CI runs (main took 0.5.7, 0.6.0, 0.6.1 and 0.6.2). With Changesets, a pull request states only the kind of its change, and the release computes the version at the merge (`scripts/release/mode.ts`). `conventions fix` writes a first config with each private package in `ignore`. The rule fails from 2026-12-14. | alerts PR 634, AL-232. |
|
|
@@ -70,6 +70,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
|
|
|
70
70
|
| `tests-required` | No test runner passes when it finds no test: no `passWithNoTests: true` in a config of vitest, vite, jest or Playwright, and no `--passWithNoTests` in `package.json`. With the option, a broken include pattern turns the test gate green with no test run. | private `fail-closed` (a decision of 2026-10-30). |
|
|
71
71
|
| `roadmap-parses` | Each call of the Pages workflow of the template (`reusable-pages.yml`) gives a `roadmap`, or `site-pages: false`. Without it, the Status page shows no item of the plan. Each roadmap that a workflow gives to the Status page (a `roadmap:` key) parses as `@mark1russell7/site-pages` reads it. The rule uses the parser of site-pages. Thus a pull request finds a bad row, and the Pages job on `main` does not stop on it. | private `fail-closed` (a decision of 2026-10-30). |
|
|
72
72
|
| `workflow-parses` | Each workflow of `.github/workflows` and each file `action.yml` of `.github/actions` parses as YAML, with the parser of the package `yaml`. GitHub refuses a workflow that does not parse, and starts no job. A workflow that starts only on a schedule, a dispatch or `workflow_run` does not start on its pull request. So the rule finds its fault before the merge. The break names the first fault of each file. | layout-contract `memory-probe.yml`, run 42172612147 (2026-11-06). |
|
|
73
|
+
| `pnpm-yaml-parses` | Each file `pnpm-lock.yaml` and `pnpm-workspace.yaml` parses as YAML, with no duplicate key. Git merges two branches that add the same package with no conflict, and the lockfile can then hold the block of the package two times. Then pnpm refuses that lockfile, and each install of CI fails. The break names the first fault of each file. The rule fails from 2026-12-16. | private, a merge of 2026-12-02 (`ERR_PNPM_BROKEN_LOCKFILE` in CI). |
|
|
73
74
|
| `runner-budget` | The repositories of each owner share the runners of its plan: 40 for the personal account, 60 for the organization (`OWNERS`). Each `strategy` with a `matrix` has a `max-parallel` of 3 or less. Each workflow has a concurrency group at the top or in each job. A job that calls a shared workflow of the option `grouped` gets its group from that workflow, and each job of that workflow has a group. The minute of each `cron` comes from a hash of the repository and the file (1 to 59), so the schedules of the repositories do not start together. The repository comes from `GITHUB_REPOSITORY` or from the remote `origin`. | private `runner-slots` (a decision of 2026-10-30). |
|
|
74
75
|
| `runner-peak` | The workflows of a repository hold at most its share of the runners in a busy minute. The peak of a job is the jobs of one run (a matrix, capped by its `max-parallel`, or a called workflow with its own jobs) times the runs that its concurrency group lets run at one time. A group of the commit or the run, or no group, gives the option `burst` of runs on `push` and on pull requests. A group of the branch gives one run on `push` and a burst of pull requests. A group with no expression gives one run. A job with an `if` that is false on an event does not count on it. The option `pushBurst` gives the burst of `push` (a burst of merges). A step of the action `give-way` holds each job after its job to its input `slots` on the events of its input `events`. The peak of a workflow is the sum of its classes of events (push, pull request, other). The repository adds the classes push and pull request of each workflow, and counts the class other one time: its largest peak. The option `runs` gives the measured runs at one time of a workflow and a class, from a model of its run records. The model is Little's law `L = λ·W`, with the law of the run minutes in place of one `W`. The measured runs replace the burst, and the group and the step `give-way` still cap them. A measured class other adds to the peak of the repository. A job that `needs` a different job does not run at the same time as it in one run. Thus the peak of a class is the antichain with the largest weight of the graph of the needs, for each layer of runs, from `maxWeightAntichain` of `@mark1russell7/collections`. The peak is exact for that graph. The functions `workflowPeaks`, `repositoryPeak` and `giveWaySlots` give the same numbers to other tools. | private `runner-slots` (a decision of 2026-10-30), and a wait of 15.9 minutes for a runner on 2026-11-24. |
|
|
75
76
|
| `main-runs-finish` | A workflow that starts on `push`, `workflow_call` or `workflow_run` does not cancel a run in progress. A called workflow gets the event of its caller. A run of `workflow_run` is a run of the default branch. A newer push cancels only the run of a pull request: `cancel-in-progress: ${{ github.event_name == 'pull_request' }}`. A run of `push` or `workflow_call` has the concurrency group of its commit: `${{ github.event_name == 'pull_request' && github.ref || github.sha }}`. GitHub gives a run of `workflow_run` the last commit of the default branch, so the rule does not examine its group: a newer run that takes the place of a waiting run tests the same commit or a newer one. In one group, GitHub cancels a run that waits when a newer run comes, whatever `cancel-in-progress` says. On 2026-11-03 four waiting CI runs of `main` in client were cancelled, so its version commit had no result and no release. On 2026-11-03 the next merge cancelled the CI run of a commit on `main`, so the main check of that commit had no result. A bench run on `main` was cancelled too, and its claim had no measurement. | private `main-runs-finish` (a decision of 2026-11-03). |
|
|
@@ -373,5 +374,5 @@ The package also exports the functions of the tool:
|
|
|
373
374
|
- `permissions` is `null` when the key is not there. Else it is a text (for example `read-all`) or a record (for example `{}`).
|
|
374
375
|
- A secret is `secrets.NAME` or `secrets['NAME']` in an expression, or in the value of a key `if`. The name `*` is the whole context, and `inherit` is `secrets: inherit`.
|
|
375
376
|
- The reader does not throw. A file that does not parse gives its `faults` and no job, because GitHub starts no job of it. Two documents and a version of YAML that is not 1.2 are faults too.
|
|
376
|
-
- `yamlFaults(text)` gives the faults of the parser alone. The
|
|
377
|
+
- `yamlFaults(text)` gives the faults of the parser alone. The rules `workflow-parses` and `pnpm-yaml-parses` use it.
|
|
377
378
|
- `prePush(options, io)` is the command `pre-push`. With the option `base`, it is the check of a change in CI. `parsePrePushArgs(args)` reads its arguments, and `runPrePushArgs(args, io)` starts it in the git root. The bundle `private-names.mjs` of the shared actions uses these two functions. `installHook(options, io)` is the command `hook install`. `PRE_PUSH_HOOK` is the text of the hook.
|
package/build/cli.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -580,6 +580,11 @@ export declare const noBuildOutput: Rule;
|
|
|
580
580
|
export declare const NOT_SOURCE: readonly string[];
|
|
581
581
|
/** The kind of a call of `console`. */
|
|
582
582
|
type ConsoleKind = "output" | "diagnostic";
|
|
583
|
+
/**
|
|
584
|
+
* This function tells if the rule reads a file of a repository. The file is a source of JavaScript or TypeScript, or a
|
|
585
|
+
* page or component that holds scripts. No glob of `skip` matches its path. The audit of the conventions check uses it too.
|
|
586
|
+
*/
|
|
587
|
+
export declare function isConsoleSource(path: string, skip?: readonly string[]): boolean;
|
|
583
588
|
/** This function tells if a source file is a CLI file: it starts with `#!`, its path names a CLI, or it reads `process.argv`. */
|
|
584
589
|
export declare function isCliFile(file: string, text: string): boolean;
|
|
585
590
|
/** This function gives the kind of a call of `console.<method>` in a file. */
|
|
@@ -818,6 +823,9 @@ export declare function isGitSpecifier(spec: string): boolean;
|
|
|
818
823
|
*/
|
|
819
824
|
export declare function isPinned(spec: string, fullSha: boolean): boolean;
|
|
820
825
|
export declare const pinnedGitDeps: Rule;
|
|
826
|
+
/** A YAML file that pnpm reads: a lockfile or a workspace file, in the root or in a folder. */
|
|
827
|
+
export declare const PNPM_YAML: RegExp;
|
|
828
|
+
export declare const pnpmYamlParses: Rule;
|
|
821
829
|
export declare const pipeFails: Rule;
|
|
822
830
|
/** This function tells if a line of a script starts tests or checks. A word in a quote or a comment starts no test. */
|
|
823
831
|
export declare function startsTests(line: string): boolean;
|
|
@@ -1036,6 +1044,11 @@ interface ParsedWorkflow {
|
|
|
1036
1044
|
readonly name: string;
|
|
1037
1045
|
/** The events of `on`, in the order of the file. */
|
|
1038
1046
|
readonly triggers: readonly string[];
|
|
1047
|
+
/**
|
|
1048
|
+
* The filters of each event that has one. The keys are `paths`, `paths-ignore`, `branches`, `branches-ignore`, `tags`
|
|
1049
|
+
* and `tags-ignore`, each with its patterns in the order of the file. An event with no filter is not a key.
|
|
1050
|
+
*/
|
|
1051
|
+
readonly filters: Readonly<Record<string, TriggerFilters>>;
|
|
1039
1052
|
readonly permissions: WorkflowPermissions;
|
|
1040
1053
|
/** The `concurrency` at the top of the file, or null when the file has none. */
|
|
1041
1054
|
readonly concurrency: ParsedConcurrency | null;
|
|
@@ -1051,6 +1064,10 @@ interface ParsedWorkflow {
|
|
|
1051
1064
|
*/
|
|
1052
1065
|
readonly faults: readonly YamlFault[];
|
|
1053
1066
|
}
|
|
1067
|
+
/** The filter keys of an event of `on`. Each key holds patterns of files, branches or tags. */
|
|
1068
|
+
export declare const FILTER_KEYS: readonly ["paths", "paths-ignore", "branches", "branches-ignore", "tags", "tags-ignore"];
|
|
1069
|
+
/** The filters of one event: the patterns of each filter key that the event has. */
|
|
1070
|
+
type TriggerFilters = Readonly<Partial<Record<(typeof FILTER_KEYS)[number], readonly string[]>>>;
|
|
1054
1071
|
/** The largest product of the lists of a matrix that the reader expands. GitHub refuses a matrix of more than 256 jobs. */
|
|
1055
1072
|
export declare const MATRIX_EXPAND_MAX: number;
|
|
1056
1073
|
/**
|
|
@@ -1404,5 +1421,5 @@ export declare function npmUrl(name: string, version: string): string;
|
|
|
1404
1421
|
* link to npm. The Releases page of `site-pages` reads each list item as a change.
|
|
1405
1422
|
*/
|
|
1406
1423
|
export declare function releaseNotes(name: string, version: string, changelog: string | undefined): string;
|
|
1407
|
-
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 HomeShape, 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 };
|
|
1424
|
+
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 HomeShape, 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 TriggerFilters, type Workflow, type WorkflowInput, type WorkflowJob, type WorkflowPeak, type WorkflowPermissions, type WorkflowStep, type YamlFault, globFolders, globToRegExp, isWorkspaceFolder, ownerOf, ownersOf, packageFolders, parseWorkspaceGlobs, repoKeyer, sharedNames, workspaceGlobs };
|
|
1408
1425
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -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/release-mode.ts","../src/rules/shared-docs.ts","../src/rules/call-permissions.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/home-shapes.ts","../src/rules/home-shape.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/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/io.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/run.ts","../src/release-text.ts"],"mappings":";;;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;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AgB,SAAS;;qBCrGxD;qBA4FA,WAAW;qBC5CX,iBAAiB;;UCzCb;WACN;WACA;WACA;;;wBAIK,cAAc,eAAe;;qBAoBhC;;wBAyBG,YAAY;;wBAaZ,cAAc,SAAS,wCAAwC,KAAK,sBAAsB;;UAczF;WACN;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;;;wBAIK,WAAW,GAAG;;;;;;;wBA2Bd,YAAY,cAAc,cAAc;EAAoC;;EAAmB;;qBA+GlG,aAAa;;qBCvOb;;;;;wBAYG,eAAe;;wBAqEf,iBAAiB,oBAAoB;qBAKxC,cAAc;;qBCzFd;;qBAGA;;qBAGA;;UAWI;WACN;WACA;;;wBAkBK,gBAAgB,eAAe;;;;;;;wBA+B/B,WAAW,cAAc;EAA0C;;EAAmB;;qBAqEzF,gBAAgB;;qBCxIhB;;wBAQG,oBAAoB;;wBAUpB,cAAc;;;;;;wBAWd,cAAc,cAAc,cAAc;EAAoC;;EAAmB;;qBAuCpG,gBAAgB;;wBClDb,kBAAkB;;wBAKlB,eAAe;;;;;;;
|
|
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/release-mode.ts","../src/rules/shared-docs.ts","../src/rules/call-permissions.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/home-shapes.ts","../src/rules/home-shape.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/pnpm-yaml-parses.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/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/io.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/run.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;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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;;;;wBActD,OAAO,mBAAmB;;qBCjM7B,cAAc,SAAS;WAA0B;WAA0B;;;UCiBvE;WACN;WACA;WACA;;;;;WAKA;WACA,iBAAiB;;WAEjB;;WAEA;;;;;WAKA;;;UAIM;WACN,gBAAgB;;WAEhB;;;UAIM;;WAEN;;WAEA;;WAEA;WACA,MAAM,SAAS;;WAEf,iBAAiB;;WAEjB;;;wBAaK,WAAW,cAAc,iBAAgB,SAAiB;;wBAO1D,cAAc,cAAc,QAAQ,mBAAmB,UAAS,KAAK,0CAA+C;;wBAwCpH,UAAU,SAAS,eAAe;;UAuEjC;;WAEN;;WAEA;;WAEA,QAAQ;;;;;;;wBAWH,OAAO,SAAS,eAAe;;wBAyC/B,aAAa,QAAQ;;wBA4BrB,gBAAgB,QAAQ;;;;;;wBA2BxB,YAAY,QAAQ;;wBAapB,UAAU,QAAQ,+BAA+B,iBAAgB;;qBAqBpE;;wBA8EG,OAAO,yBAAyB,IAAI;;;;;;;;qBCvZvC;;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 lockedVersions, $n as
|
|
1
|
+
import { $ as lockedVersions, $n as HOME_TIMEOUT_MS, $r as lineOf, $t as CONSOLE_LAST_DAY, A as scriptsOf, An as HOME_EXPORTS, Ar as ACTIONS_COMMIT, At as packNoBuildinfo, B as giveWaySlots, Bn as SERVICE_PACKAGE, Br as parseWorkflow, Bt as privatePatterns, C as setVersions, Cn as modulesOf, Cr as scheduleMinute, Ct as pagesAfterRelease, D as trustPolicy, Dn as repoOf, Dr as licenseFileOf, Dt as pagesSite, E as TRAIN_SCOPES, En as messageOf, Er as licenseFile, Et as pagesCalls, F as sourceMain, Fn as mapText, Fr as summaryJob, Ft as PRIVATE_PATTERNS_VARIABLE, G as workflowPeaks, Gn as SHARED_ACTIONS, Gr as cuePreset, Gt as isAllowedHit, H as repositoryPeak, Hn as serviceRunMain, Hr as readWorkflow, Ht as PRIVATE_NAME_LIST, I as TEMPLATE_CALLED, In as mergeHomes, Ir as summaryName, It as invalidPatternBreaks, J as mayRun, Jn as callsSharedCi, Jr as cleanPath, Jt as lineNameHits, K as evaluateExpression, Kn as SHARED_CI, Kr as DEPENDENCY_FIELDS, Kt as isCommonUse, L as UNKNOWN_MATRIX_JOBS, Ln as npmDrift, Lr as gateAfterCancel, Lt as noLocalPaths, M as testsRequired, Mn as MAP_RULE, Mr as gateTrigger, Mt as HOME_PATTERNS, N as isSourcePath, Nn as findHomes, Nr as prPathFilters, Nt as PRIVATE_NAMES_FILE_CONFIG, O as typedScripts, On as reposOf, Or as mitText, Ot as exportsRequire, P as pathsOf, Pn as mapMarkdown, Pr as skippableJobs, Pt as PRIVATE_NAMES_FILE_VARIABLE, Q as releaseFiles, Qn as callPermissionsRule, Qr as keyLine, Qt as pathNameHit, R as calledJobs, Rn as npmNames, Rr as FILTER_KEYS, Rt as privateNamesFile, S as namedVersions, Sn as moduleUses, Sr as runnerBudget, St as siteCheckInCi, T as IGNORE_AFTER, Tn as homePackage, Tr as authorOf, Tt as PAGES_WORKFLOWS, U as runnerPeak, Un as hasTests, Ur as yamlFaults, Ut as PrivateNameListError, V as matrixPeak, Vn as runCalls, Vr as readAction, Vt as privateTextBreaks, W as runsAtOnce, Wn as tsconfigTest, Wr as STRICT_OPTIONS, Wt as firstNameMatch, X as roadmapParses, Xn as setupCue, Xr as hasFile, Xt as nameMatches, Y as roadmapOfLine, Yn as sharedCi, Yr as codePackages, Yt as mergePrivateNames, Z as requiredScripts, Zn as callPermissions, Zr as inFolder, Zt as parsePrivateNames, _ as runPrePushArgs, _n as shapesOfSource, _r as SECURITY_SCAN_INPUTS, _t as PNPM_YAML, a as listRules, ai as repositoryOfRemote, an as isConsoleSource, ar as hasReleaseMode, at as SHIPPED_FIELDS, b as GITHUB_YAML, bn as homeModule, br as securityOneJob, bt as isPinned, c as runCli, ci as showFiles, cn as REAL_COMPARE, cr as isSecurityGate, ct as unreleasedChange, d as HOOK_MARKER, di as parseConfig, dn as coverageProvider, dr as SUMMARY_GATES, dt as hiddenFailures, ei as matchesAny, en as NOT_SOURCE, er as blockHash, et as minorOf, f as NO_READ_LINE, fi as parseRuleConfig, fn as apiReportScript, fr as addSummaryJob, ft as jobFails, g as prePush, gn as shapeMessage, gr as SECURITY_SCAN_COMMIT, gt as pipeFails, h as parsePrePushArgs, hn as homeShapesOf, hr as summaryJobRule, ht as swallowsTests, i as formatResult, ii as replaceLine, in as isCliFile, ir as callsReleaseBuild, it as NPM_REGISTRY, j as typedFiles, jn as HOMES, jr as convertGate, jt as DEFAULT_ALLOWED, k as configsOfScript, kn as signaturesOf, kr as repositoryIsPublic, kt as publishTextSafe, l as runFix, li as specifiersOf, ln as hasImportMetaMain, lr as securityGate, lt as unreleasedChangeRule, m as installHook, mn as homeShape, mr as startsOnPullRequest, mt as startsTests, n as annotations, ni as parseJsonc, nn as consoleGate, nr as sharedDocsRule, nt as publishedMinorRule, o as readConfig, oi as runGit, on as noConsole, or as releaseModeRule, ot as UNSHIPPED_FILES, p as PRE_PUSH_HOOK, pn as containedHome, pr as hasSummaryJob, pt as parseAdvisory, q as groupParts, qn as SHARED_WORKFLOWS, qr as RULE_WARN_DAYS, qt as lineNameHit, r as createContext, ri as readJsonc, rn as consoleKind, rr as addReleaseMode, rt as reachOf, s as runChecks, si as runGitShow, sn as noBuildOutput, sr as SECURITY_FILE, st as npmLookup, t as USAGE, ti as parseCatFileBatch, tn as consoleBreaks, tr as githubFetch, tt as publishedMinor, u as summaryMarkdown, ui as defaultOptions, un as mainCheck, ur as securityWorkflow, ut as playwrightInstall, v as RULES, vn as spansOf, vr as SECURITY_TIMEOUT_MINUTES, vt as pnpmYamlParses, w as versionTitle, wn as declaredName, wr as LICENSE_TEXTS, wt as pushMainOnly, x as workflowParses, xn as moduleMessage, xr as withOneJob, xt as pinnedGitDeps, y as workspaceProtocol, yn as HOME_SHAPES, yr as securityCallers, yt as isGitSpecifier, z as eventClass, zn as readOverlay, zr as MATRIX_EXPAND_MAX, zt as privateNamesFiles } from "./run-Buh6lcPi.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-B6xQXXcL.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, CONSOLE_LAST_DAY, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_SHAPES, 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, addReleaseMode, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, callPermissions, callPermissionsRule, calledJobs, callsReleaseBuild, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, consoleBreaks, consoleGate, consoleKind, containedHome, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, evaluateExpression, eventClass, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, giveWaySlots, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasReleaseMode, hasSummaryJob, hasTests, hiddenFailures, homeModule, homePackage, homeShape, homeShapesOf, 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, releaseModeRule, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, repositoryPeak, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, shapeMessage, shapesOfSource, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, spansOf, 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, FILTER_KEYS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_SHAPES, 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, PNPM_YAML, 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, addReleaseMode, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, callPermissions, callPermissionsRule, calledJobs, callsReleaseBuild, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, consoleBreaks, consoleGate, consoleKind, containedHome, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, evaluateExpression, eventClass, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, giveWaySlots, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasReleaseMode, hasSummaryJob, hasTests, hiddenFailures, homeModule, homePackage, homeShape, homeShapesOf, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCliFile, isCommonUse, isConsoleSource, 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, pnpmYamlParses, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseModeRule, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, repositoryPeak, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, shapeMessage, shapesOfSource, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, spansOf, 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
|
|
@@ -1661,6 +1661,26 @@ function permissionsOf(owner) {
|
|
|
1661
1661
|
if (!isObject$1(value)) return textOf(value);
|
|
1662
1662
|
return Object.fromEntries(Object.entries(value).map(([scope, level]) => [scope, textOf(level)]));
|
|
1663
1663
|
}
|
|
1664
|
+
/** The filter keys of an event of `on`. Each key holds patterns of files, branches or tags. */
|
|
1665
|
+
const FILTER_KEYS = [
|
|
1666
|
+
"paths",
|
|
1667
|
+
"paths-ignore",
|
|
1668
|
+
"branches",
|
|
1669
|
+
"branches-ignore",
|
|
1670
|
+
"tags",
|
|
1671
|
+
"tags-ignore"
|
|
1672
|
+
];
|
|
1673
|
+
/** This function gives the filters of each event of the key `on` that has a filter key. */
|
|
1674
|
+
function filtersOf$1(on) {
|
|
1675
|
+
if (!isObject$1(on)) return {};
|
|
1676
|
+
const found = {};
|
|
1677
|
+
for (const [event, value] of Object.entries(on)) {
|
|
1678
|
+
if (!isObject$1(value)) continue;
|
|
1679
|
+
const keys = FILTER_KEYS.filter((key) => Object.hasOwn(value, key));
|
|
1680
|
+
if (keys.length > 0) found[event] = Object.fromEntries(keys.map((key) => [key, listValues(value[key])]));
|
|
1681
|
+
}
|
|
1682
|
+
return found;
|
|
1683
|
+
}
|
|
1664
1684
|
/** This function gives the events of the key `on`: one event, a list of events, or a map with an event as each key. */
|
|
1665
1685
|
function triggersOf$1(on) {
|
|
1666
1686
|
if (isObject$1(on)) return Object.keys(on);
|
|
@@ -1848,6 +1868,7 @@ function parseWorkflow(file, text) {
|
|
|
1848
1868
|
file,
|
|
1849
1869
|
name: file,
|
|
1850
1870
|
triggers: [],
|
|
1871
|
+
filters: {},
|
|
1851
1872
|
permissions: null,
|
|
1852
1873
|
concurrency: null,
|
|
1853
1874
|
secrets: [],
|
|
@@ -1877,6 +1898,7 @@ function parseWorkflow(file, text) {
|
|
|
1877
1898
|
file,
|
|
1878
1899
|
name: optionalText(top["name"]) || file,
|
|
1879
1900
|
triggers: triggersOf$1(top["on"]),
|
|
1901
|
+
filters: filtersOf$1(top["on"]),
|
|
1880
1902
|
permissions: permissionsOf(top),
|
|
1881
1903
|
concurrency: concurrencyOf(top),
|
|
1882
1904
|
secrets: [...secrets],
|
|
@@ -5530,6 +5552,29 @@ const HOMES = [
|
|
|
5530
5552
|
],
|
|
5531
5553
|
note: "Each viewer maps its records to these marks. 3D geometry records go to layout-contract. Points on the Earth and great circles go to geo."
|
|
5532
5554
|
},
|
|
5555
|
+
{
|
|
5556
|
+
area: "boards",
|
|
5557
|
+
title: "Drawing boards",
|
|
5558
|
+
covers: "a board document as data (shapes, arrows, text, sticky notes, layers), its checks, versions and proposals (a set of changes against a version that a person keeps or drops one by one)",
|
|
5559
|
+
packages: ["@mark1russell7/board"],
|
|
5560
|
+
pending: ["@mark1russell7/board"],
|
|
5561
|
+
repo: "mark1russell7/board",
|
|
5562
|
+
state: "unpublished",
|
|
5563
|
+
words: [
|
|
5564
|
+
"board",
|
|
5565
|
+
"whiteboard",
|
|
5566
|
+
"drawing",
|
|
5567
|
+
"diagram",
|
|
5568
|
+
"sticky note",
|
|
5569
|
+
"shapes",
|
|
5570
|
+
"arrows",
|
|
5571
|
+
"canvas",
|
|
5572
|
+
"proposal",
|
|
5573
|
+
"brainstorm",
|
|
5574
|
+
"flowchart"
|
|
5575
|
+
],
|
|
5576
|
+
note: "The core names no topic. Geometry comes from layout-contract, arrow routes from highways, the render from visuals and splay, the store and sync from the sync engine of mark1russell7/client (client-store, not a second store). A site keeps only its page and procedures."
|
|
5577
|
+
},
|
|
5533
5578
|
{
|
|
5534
5579
|
area: "room-view",
|
|
5535
5580
|
title: "3D room viewer",
|
|
@@ -73520,7 +73565,7 @@ const noBuildOutput = {
|
|
|
73520
73565
|
* - Output for a person: the text, the tables and the status lines of a command-line tool. It goes to the printer of
|
|
73521
73566
|
* `@mark1russell7/text/print` (`createPrinter`), with the streams as parameters.
|
|
73522
73567
|
* - A diagnostic of a library or a service: a warning, a debug line, a caught error. It goes to a log record through the
|
|
73523
|
-
* logger of `@mark1russell7/otel-ts` (`
|
|
73568
|
+
* logger of `@mark1russell7/otel-ts/log` (`diagnostics(name)`), with its trace context, and not to a printer.
|
|
73524
73569
|
*
|
|
73525
73570
|
* A call in a CLI file is output, except `console.debug` and `console.trace`. A CLI file starts with `#!`, has the name
|
|
73526
73571
|
* `cli`, `main` or a folder `bin` or `commands` in its path, or reads `process.argv`. Each other call is a diagnostic,
|
|
@@ -73563,6 +73608,13 @@ const CALL = /\bconsole\s*\.\s*(?<method>[A-Za-z]+)\s*\(/g;
|
|
|
73563
73608
|
const COMMENT = /^\s*(?:\/\/|\/\*|\*)/;
|
|
73564
73609
|
/** The path of a CLI file: a folder `cli`, `bin` or `commands`, or a file `cli.*` or `main.*`. */
|
|
73565
73610
|
const CLI_PATH = /(?:^|\/)(?:cli|bin|commands?)(?:\/|\.)|(?:^|[/._-])(?:cli|main)\.[a-z]+$/;
|
|
73611
|
+
/**
|
|
73612
|
+
* This function tells if the rule reads a file of a repository. The file is a source of JavaScript or TypeScript, or a
|
|
73613
|
+
* page or component that holds scripts. No glob of `skip` matches its path. The audit of the conventions check uses it too.
|
|
73614
|
+
*/
|
|
73615
|
+
function isConsoleSource(path, skip = NOT_SOURCE) {
|
|
73616
|
+
return SOURCE.test(path) && !matchesAny(path, skip);
|
|
73617
|
+
}
|
|
73566
73618
|
/** This function tells if a source file is a CLI file: it starts with `#!`, its path names a CLI, or it reads `process.argv`. */
|
|
73567
73619
|
function isCliFile(file, text) {
|
|
73568
73620
|
return text.startsWith("#!") || CLI_PATH.test(file) || /\bprocess\.argv\b/.test(text);
|
|
@@ -73574,7 +73626,7 @@ function consoleKind(cli, method) {
|
|
|
73574
73626
|
}
|
|
73575
73627
|
/** This function gives the message of a break: the call, its kind and where it goes. */
|
|
73576
73628
|
function messageOf(file, method, kind) {
|
|
73577
|
-
return kind === "output" ? `${file} calls console.${method} for output to a person. Write it with createPrinter of @mark1russell7/text/print.` : `${file} calls console.${method} for a diagnostic. Emit a log record with
|
|
73629
|
+
return kind === "output" ? `${file} calls console.${method} for output to a person. Write it with createPrinter of @mark1russell7/text/print.` : `${file} calls console.${method} for a diagnostic. Emit a log record with diagnostics(name) of @mark1russell7/otel-ts/log, with its trace context.`;
|
|
73578
73630
|
}
|
|
73579
73631
|
/** This function gives a break for each call of `console` in the text of one source file. */
|
|
73580
73632
|
function consoleBreaks(file, text) {
|
|
@@ -73642,9 +73694,9 @@ function consoleGate(options, count, today) {
|
|
|
73642
73694
|
}
|
|
73643
73695
|
const noConsole = {
|
|
73644
73696
|
id: "no-console",
|
|
73645
|
-
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`.",
|
|
73697
|
+
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/log`.",
|
|
73646
73698
|
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.",
|
|
73647
|
-
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
|
|
73699
|
+
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 diagnostics(name) of @mark1russell7/otel-ts/log. After each fix, set the option baseline to the new count.",
|
|
73648
73700
|
sources: [{
|
|
73649
73701
|
repo: "private",
|
|
73650
73702
|
rule: "no-console",
|
|
@@ -73678,7 +73730,7 @@ const noConsole = {
|
|
|
73678
73730
|
if (files === void 0) return { skipped: "the root is not in a git repository" };
|
|
73679
73731
|
const skip = options["skip"];
|
|
73680
73732
|
const breaks = [];
|
|
73681
|
-
for (const file of files.filter((path) =>
|
|
73733
|
+
for (const file of files.filter((path) => isConsoleSource(path, skip)).sort(byCode)) {
|
|
73682
73734
|
let text;
|
|
73683
73735
|
try {
|
|
73684
73736
|
text = readFileSync(join(context.root, file), "utf8");
|
|
@@ -76217,6 +76269,65 @@ const pinnedGitDeps = {
|
|
|
76217
76269
|
return breaks;
|
|
76218
76270
|
}
|
|
76219
76271
|
};
|
|
76272
|
+
// src/rules/pnpm-yaml-parses.ts
|
|
76273
|
+
/**
|
|
76274
|
+
* The rule `pnpm-yaml-parses`: each file `pnpm-lock.yaml` and each file `pnpm-workspace.yaml` parses as YAML, with no
|
|
76275
|
+
* duplicate key.
|
|
76276
|
+
*/
|
|
76277
|
+
/** A YAML file that pnpm reads: a lockfile or a workspace file, in the root or in a folder. */
|
|
76278
|
+
const PNPM_YAML = /(?:^|\/)pnpm-(?:lock|workspace)\.yaml$/;
|
|
76279
|
+
const pnpmYamlParses = {
|
|
76280
|
+
id: "pnpm-yaml-parses",
|
|
76281
|
+
title: "Each file `pnpm-lock.yaml` and `pnpm-workspace.yaml` parses as YAML, with no duplicate key.",
|
|
76282
|
+
reason: "Git merges two branches that add the same package to the lockfile with no conflict, and the result can hold the block of the package two times. pnpm then refuses the lockfile (`ERR_PNPM_BROKEN_LOCKFILE`, duplicate mapping key), and each install of CI fails. On 2026-12-02 a merge of main gave a lockfile two blocks of one package, and the pre-push checks passed.",
|
|
76283
|
+
fix: "Remove the second copy of each duplicate key, in `packages:` and in `snapshots:`. Then check the file with `pnpm install --frozen-lockfile --lockfile-only --ignore-scripts`.",
|
|
76284
|
+
sources: [
|
|
76285
|
+
{
|
|
76286
|
+
repo: "private",
|
|
76287
|
+
rule: "pnpm-yaml-parses",
|
|
76288
|
+
doc: "a merge of 2026-12-02: two equal blocks of one package in packages and in snapshots, ERR_PNPM_BROKEN_LOCKFILE in CI"
|
|
76289
|
+
},
|
|
76290
|
+
{
|
|
76291
|
+
repo: "template",
|
|
76292
|
+
rule: "frozen-lockfile",
|
|
76293
|
+
doc: "reusable-ci.yml and ci.yml install with pnpm install --frozen-lockfile, so a lockfile that does not parse stops the install"
|
|
76294
|
+
},
|
|
76295
|
+
{
|
|
76296
|
+
repo: "client",
|
|
76297
|
+
rule: "frozen-lockfile",
|
|
76298
|
+
doc: "ci.yml starts its jobs with pnpm install --frozen-lockfile (3 times), and nightly.yml too"
|
|
76299
|
+
},
|
|
76300
|
+
{
|
|
76301
|
+
repo: "Vex",
|
|
76302
|
+
rule: "frozen-lockfile",
|
|
76303
|
+
doc: "ci.yml calls reusable-ci.yml of the template and starts its own jobs with pnpm install --frozen-lockfile"
|
|
76304
|
+
}
|
|
76305
|
+
],
|
|
76306
|
+
options: {},
|
|
76307
|
+
failsFrom: "2026-12-16",
|
|
76308
|
+
check(context) {
|
|
76309
|
+
const files = context.gitFiles();
|
|
76310
|
+
if (files === void 0) return { skipped: "the root is not in a git repository" };
|
|
76311
|
+
const breaks = [];
|
|
76312
|
+
for (const file of files.filter((path) => PNPM_YAML.test(path)).sort(byCode)) {
|
|
76313
|
+
let text;
|
|
76314
|
+
try {
|
|
76315
|
+
text = readFileSync(join(context.root, file), "utf8");
|
|
76316
|
+
} catch {
|
|
76317
|
+
continue;
|
|
76318
|
+
}
|
|
76319
|
+
const [first, ...more] = yamlFaults(text);
|
|
76320
|
+
if (first === void 0) continue;
|
|
76321
|
+
const others = more.length === 0 ? "" : ` The parser finds ${more.length} more ${more.length === 1 ? "fault" : "faults"} after it.`;
|
|
76322
|
+
breaks.push({
|
|
76323
|
+
file,
|
|
76324
|
+
line: first.line,
|
|
76325
|
+
message: `${file} does not parse as YAML, so pnpm refuses it: ${first.message}.${others}`
|
|
76326
|
+
});
|
|
76327
|
+
}
|
|
76328
|
+
return breaks;
|
|
76329
|
+
}
|
|
76330
|
+
};
|
|
76220
76331
|
// src/rules/pipe-fails.ts
|
|
76221
76332
|
/**
|
|
76222
76333
|
* The rule `pipe-fails`: a failure on the left of a pipe fails its step. With no `shell` key, GitHub starts a step with
|
|
@@ -79899,6 +80010,7 @@ const RULES = [
|
|
|
79899
80010
|
testsRequired,
|
|
79900
80011
|
roadmapParses,
|
|
79901
80012
|
workflowParses,
|
|
80013
|
+
pnpmYamlParses,
|
|
79902
80014
|
runnerBudget,
|
|
79903
80015
|
runnerPeak,
|
|
79904
80016
|
mainRunsFinish,
|
|
@@ -81134,6 +81246,6 @@ function runHook(args, io) {
|
|
|
81134
81246
|
git: (gitArgs) => runGit(io.cwd, gitArgs)
|
|
81135
81247
|
}, io);
|
|
81136
81248
|
}
|
|
81137
|
-
export { lockedVersions as $,
|
|
81249
|
+
export { lockedVersions as $, HOME_TIMEOUT_MS as $n, lineOf as $r, CONSOLE_LAST_DAY as $t, scriptsOf as A, HOME_EXPORTS as An, ACTIONS_COMMIT as Ar, packNoBuildinfo as At, giveWaySlots as B, SERVICE_PACKAGE as Bn, parseWorkflow as Br, privatePatterns as Bt, setVersions as C, modulesOf as Cn, scheduleMinute as Cr, pagesAfterRelease as Ct, trustPolicy as D, repoOf as Dn, licenseFileOf as Dr, pagesSite as Dt, TRAIN_SCOPES as E, messageOf$1 as En, licenseFile as Er, pagesCalls as Et, sourceMain as F, mapText as Fn, summaryJob as Fr, PRIVATE_PATTERNS_VARIABLE as Ft, workflowPeaks as G, SHARED_ACTIONS as Gn, cuePreset as Gr, isAllowedHit as Gt, repositoryPeak as H, serviceRunMain as Hn, readWorkflow as Hr, PRIVATE_NAME_LIST as Ht, TEMPLATE_CALLED as I, mergeHomes as In, summaryName as Ir, invalidPatternBreaks as It, mayRun as J, callsSharedCi as Jn, cleanPath as Jr, lineNameHits as Jt, evaluateExpression as K, SHARED_CI as Kn, DEPENDENCY_FIELDS as Kr, isCommonUse as Kt, UNKNOWN_MATRIX_JOBS as L, npmDrift as Ln, gateAfterCancel as Lr, noLocalPaths as Lt, testsRequired as M, MAP_RULE as Mn, gateTrigger as Mr, HOME_PATTERNS as Mt, isSourcePath as N, findHomes as Nn, prPathFilters as Nr, PRIVATE_NAMES_FILE_CONFIG as Nt, typedScripts as O, reposOf as On, mitText as Or, exportsRequire as Ot, pathsOf as P, mapMarkdown as Pn, skippableJobs as Pr, PRIVATE_NAMES_FILE_VARIABLE as Pt, releaseFiles as Q, callPermissionsRule as Qn, keyLine as Qr, pathNameHit as Qt, calledJobs as R, npmNames as Rn, FILTER_KEYS as Rr, privateNamesFile as Rt, namedVersions as S, moduleUses as Sn, runnerBudget as Sr, siteCheckInCi as St, IGNORE_AFTER as T, homePackage as Tn, authorOf as Tr, PAGES_WORKFLOWS as Tt, runnerPeak as U, hasTests as Un, yamlFaults as Ur, PrivateNameListError as Ut, matrixPeak as V, runCalls as Vn, readAction as Vr, privateTextBreaks as Vt, runsAtOnce as W, tsconfigTest as Wn, STRICT_OPTIONS as Wr, firstNameMatch as Wt, roadmapParses as X, setupCue as Xn, hasFile as Xr, nameMatches as Xt, roadmapOfLine as Y, sharedCi as Yn, codePackages as Yr, mergePrivateNames as Yt, requiredScripts as Z, callPermissions as Zn, inFolder as Zr, parsePrivateNames as Zt, runPrePushArgs as _, shapesOfSource as _n, SECURITY_SCAN_INPUTS as _r, PNPM_YAML as _t, listRules as a, repositoryOfRemote as ai, isConsoleSource as an, hasReleaseMode as ar, SHIPPED_FIELDS as at, GITHUB_YAML as b, homeModule as bn, securityOneJob as br, isPinned as bt, runCli as c, showFiles as ci, REAL_COMPARE as cn, isSecurityGate as cr, unreleasedChange as ct, HOOK_MARKER as d, parseConfig as di, coverageProvider as dn, SUMMARY_GATES as dr, hiddenFailures as dt, matchesAny as ei, NOT_SOURCE as en, blockHash as er, minorOf as et, NO_READ_LINE as f, parseRuleConfig as fi, apiReportScript as fn, addSummaryJob as fr, jobFails as ft, prePush as g, shapeMessage as gn, SECURITY_SCAN_COMMIT as gr, pipeFails as gt, parsePrePushArgs as h, homeShapesOf as hn, summaryJobRule as hr, swallowsTests as ht, formatResult as i, replaceLine as ii, isCliFile as in, callsReleaseBuild as ir, NPM_REGISTRY as it, typedFiles as j, HOMES as jn, convertGate as jr, DEFAULT_ALLOWED as jt, configsOfScript as k, signaturesOf as kn, repositoryIsPublic as kr, publishTextSafe as kt, runFix as l, specifiersOf as li, hasImportMetaMain as ln, securityGate as lr, unreleasedChangeRule as lt, installHook as m, homeShape as mn, startsOnPullRequest as mr, startsTests as mt, annotations as n, parseJsonc as ni, consoleGate as nn, sharedDocsRule as nr, publishedMinorRule as nt, readConfig as o, runGit as oi, noConsole as on, releaseModeRule as or, UNSHIPPED_FILES as ot, PRE_PUSH_HOOK as p, containedHome as pn, hasSummaryJob as pr, parseAdvisory as pt, groupParts as q, SHARED_WORKFLOWS as qn, RULE_WARN_DAYS as qr, lineNameHit as qt, createContext as r, readJsonc as ri, consoleKind as rn, addReleaseMode as rr, reachOf as rt, runChecks as s, runGitShow as si, noBuildOutput as sn, SECURITY_FILE as sr, npmLookup as st, USAGE as t, parseCatFileBatch as ti, consoleBreaks as tn, githubFetch as tr, publishedMinor as tt, summaryMarkdown as u, defaultOptions as ui, mainCheck as un, securityWorkflow as ur, playwrightInstall as ut, RULES as v, spansOf as vn, SECURITY_TIMEOUT_MINUTES as vr, pnpmYamlParses as vt, versionTitle as w, declaredName as wn, LICENSE_TEXTS as wr, pushMainOnly as wt, workflowParses as x, moduleMessage as xn, withOneJob as xr, pinnedGitDeps as xt, workspaceProtocol as y, HOME_SHAPES as yn, securityCallers as yr, isGitSpecifier as yt, eventClass as z, readOverlay as zn, MATRIX_EXPAND_MAX as zr, privateNamesFiles as zt };
|
|
81138
81250
|
|
|
81139
|
-
//# sourceMappingURL=run-
|
|
81251
|
+
//# sourceMappingURL=run-Buh6lcPi.js.map
|