@mark1russell7/conventions 0.64.0 → 0.64.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/build/cli.js +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/{run-C3z8KiCK.js → run-CG6GDnhx.js} +106 -5
- package/build/run-CG6GDnhx.js.map +1 -0
- package/package.json +1 -1
- package/build/run-C3z8KiCK.js.map +0 -1
package/README.md
CHANGED
|
@@ -84,6 +84,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
|
|
|
84
84
|
| `service-run-main` | In a server package, only the entry `src/main.ts` starts the service with `run()`. A server package has a dependency on `@mark1russell7/service` and a file `src/main.ts`, as the preset `service` writes it. A source file that imports the service package and starts `run()` is a break. A file that imports only the tool entries (`/channel`, `/clock`, `/heartbeat`, `/backoff`, `/limiter`, `/rules`) is not read: their values have their own `run`, as the pool of `/channel`. `run()` owns the process, so a module that starts it cannot be imported by a test. |
|
|
85
85
|
| `shared-ci` | The workflow `ci.yml` calls the shared workflow `reusable-ci.yml` of the template, and no workflow or action of the repository has the name of a shared one of the template. A `ci.yml` with its own steps, or a local copy, does not get the fixes and the new checks of the template. The template itself is not examined (option `home`). On 2026-11-07, 3 of 19 repositories of the account ran CI steps of their own. |
|
|
86
86
|
| `setup-cue` | No workflow or action installs the cue CLI with its own command (a download of a release asset of `cue-lang/cue`, or `go install`). A caller of `reusable-ci.yml` gives the input `cue-version`. Another job uses the action `setup-cue` of the template. The action installs the CLI from a cache, or with retries and a sha256 check. On 2026-11-08, a 504 of GitHub failed each bare `curl` of the CLI. |
|
|
87
|
+
| `setup-pnpm` | No workflow or action installs pnpm with its own step (`pnpm/action-setup`, or a global `npm install` of `pnpm`). A job step uses the action `setup-pnpm` of the template. The action reads the version from the field `packageManager`, starts pnpm, and tries again after a failure. On 2026-12-02 a stalled fetch of pnpm failed a memory probe, and a pnpm that did not start failed a CI run. The rule fails from 2026-12-21. | layout-contract run 46775736537, wirelab run 46857465050 (2026-12-02), packing run 47021948708 (2026-12-03). |
|
|
87
88
|
| `playwright-install` | No workflow, action or site config installs the Playwright browsers with its own command (`playwright install` or `install-deps`). A job step uses the action `setup-playwright` of the template. The build of `reusable-pages.yml` gives the key `playwright-browsers`. The action has a cache, a time limit and one more try. On 2026-11-11 the package mirror did not resolve, and each bare install of client and lag stopped in apt. The rule fails from 2026-12-01. | client run 43034026417, lag #113 and #115, template #315 (2026-11-11). |
|
|
88
89
|
| `moved-repo-calls` | No `uses:` of a workflow or composite action names a repository by its old owner after the repository moved. GitHub does not follow the redirect of a moved repository for `uses:`, so each run fails before it starts ("workflow file issue"). The package knows the moves (`src/moves.ts`), and the option `moves` adds more (`owner/name=owner/name`). `conventions fix` writes the new owner. The rule fails from 2026-12-09. | ireko #133 (2026-11-24). |
|
|
89
90
|
| `moved-repo-names` | No package field, Markdown link, workflow key or config value names a repository by its old owner after the repository moved. Some old names break at once: npm provenance compares the field `repository` of `package.json` with the repository of the run, and a GitHub Pages address of the old owner gives 404. The kinds of place are data (`src/places.ts`): the fields and git dependencies of each `package.json`, the links of each Markdown file except a change log, the addresses and the key `repository` of each workflow, and the key `repo` of the config of Changesets. The rule `moved-repo-calls` holds `uses:`. The option `moves` adds more moves. `conventions fix` writes the new owner. The rule fails from 2026-12-10. | private `repo-move-tool` (a decision of 2026-11-25). |
|
package/build/cli.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -373,6 +373,7 @@ export declare function sharedDocsRule(fetchHomes?: HomeFetch): Rule;
|
|
|
373
373
|
export declare function callPermissionsRule(fetchFiles?: HomeFetch): Rule;
|
|
374
374
|
export declare const callPermissions: Rule;
|
|
375
375
|
export declare const setupCue: Rule;
|
|
376
|
+
export declare const setupPnpm: Rule;
|
|
376
377
|
/** The shared workflows of the template, by file name. */
|
|
377
378
|
export declare const SHARED_WORKFLOWS: readonly string[];
|
|
378
379
|
/** The shared actions of the template, by folder name under `.github/actions`, and the folder `bundles` of their bundles. */
|
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/git-pin-on-npm.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/retired-files.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","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1B,eAAe,MAAM,OAAO;;;;;;;;wBAW5B,gBAAgB,gBAAgB,MAAM,OAAO;;;;;;;wBAwD7C,YAAY,gBAAgB,gBAAgB,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;;;;;;;wBAqJf,eAAe;EAAiB;EAAc;;qBAuBjD,iBAAiB;;KCrMlB;WAAwB;;WAA4B;;;KAGpD,aAAa,4BAA4B,oBAAoB;;qBAG5D;;qBAiBA,aAAa;;qBAcb,YAAa;;wBAoEV,eAAe,aAAY,YAA0B;;wBCrFrD,oBAAoB,aAAY,YAA0B;qBA8D7D,iBAAiB;qBCrDjB,UAAU;;
|
|
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/setup-pnpm.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/git-pin-on-npm.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/retired-files.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","../src/retired.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;;;UA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BAQrB,aAAa,cAAc,iBAAiB;;;;;;UCzD3C;;WAEN;;WAEA;;WAEA;;;qBAQE,wBAAwB;;wBAQrB,YAAY,eAAe"}
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as retiredFile, $n as SHARED_WORKFLOWS, $r as
|
|
1
|
+
import { $ as retiredFile, $n as SHARED_WORKFLOWS, $r as DEPENDENCY_FIELDS, $t as lineNameHits, A as scriptsOf, An as homePackage, Ar as scheduleMinute, At as PAGES_WORKFLOWS, B as giveWaySlots, Bn as mapText, Br as prPathFilters, Bt as PRIVATE_PATTERNS_VARIABLE, C as setVersions, Cn as spansOf, Cr as SECURITY_SCAN_COMMIT, Ct as dependencySpecifiers, D as trustPolicy, Dn as moduleUses, Dr as securityOneJob, Dt as siteCheckInCi, E as TRAIN_SCOPES, En as moduleMessage, Er as securityCallers, Et as pinnedGitDeps, F as sourceMain, Fn as HOME_EXPORTS, Fr as mitText, Ft as packNoBuildinfo, G as workflowPeaks, Gn as readOverlay, Gr as FILTER_KEYS, Gt as privatePatterns, H as repositoryPeak, Hn as npmDrift, Hr as summaryJob, Ht as noLocalPaths, I as TEMPLATE_CALLED, In as HOMES, Ir as repositoryIsPublic, It as DEFAULT_ALLOWED, J as mayRun, Jn as serviceRunMain, Jr as readAction, Jt as PrivateNameListError, K as evaluateExpression, Kn as SERVICE_PACKAGE, Kr as MATRIX_EXPAND_MAX, Kt as privateTextBreaks, L as UNKNOWN_MATRIX_JOBS, Ln as MAP_RULE, Lr as ACTIONS_COMMIT, Lt as HOME_PATTERNS, M as testsRequired, Mn as repoOf, Mr as authorOf, Mt as pagesSite, N as isSourcePath, Nn as reposOf, Nr as licenseFile, Nt as exportsRequire, O as typedScripts, On as modulesOf, Or as withOneJob, Ot as pagesAfterRelease, P as pathsOf, Pn as signaturesOf, Pr as licenseFileOf, Pt as publishTextSafe, Q as RETIRED_FILES, Qn as SHARED_CI, Qr as cuePreset, Qt as lineNameHit, R as calledJobs, Rn as findHomes, Rr as convertGate, Rt as PRIVATE_NAMES_FILE_CONFIG, S as namedVersions, Sn as shapesOfSource, Sr as summaryJobRule, St as gitPinOnNpm, T as IGNORE_AFTER, Tn as homeModule, Tr as SECURITY_TIMEOUT_MINUTES, Tt as isPinned, U as runnerPeak, Un as npmNames, Ur as summaryName, Ut as privateNamesFile, V as matrixPeak, Vn as mergeHomes, Vr as skippableJobs, Vt as invalidPatternBreaks, W as runsAtOnce, Wn as npmPackagesOf, Wr as gateAfterCancel, Wt as privateNamesFiles, X as roadmapParses, Xn as tsconfigTest, Xr as yamlFaults, Xt as isAllowedHit, Y as roadmapOfLine, Yn as hasTests, Yr as readWorkflow, Yt as firstNameMatch, Z as retiredFiles, Zn as SHARED_ACTIONS, Zr as STRICT_OPTIONS, Zt as isCommonUse, _ as runPrePushArgs, _i as defaultOptions, _n as apiReportScript, _r as securityWorkflow, _t as startsTests, a as listRules, ai as keyLine, an as NOT_SOURCE, ar as callPermissionsRule, at as publishedMinorRule, b as GITHUB_YAML, bn as homeShapesOf, br as hasSummaryJob, bt as PNPM_YAML, c as runCli, ci as parseCatFileBatch, cn as consoleKind, cr as githubFetch, ct as SHIPPED_FIELDS, d as HOOK_MARKER, di as replaceLine, dn as noConsole, dr as callsReleaseBuild, dt as unreleasedChange, ei as RULE_WARN_DAYS, en as mergePrivateNames, er as callsSharedCi, et as requiredScripts, f as NO_READ_LINE, fi as repositoryOfRemote, fn as noBuildOutput, fr as hasReleaseMode, ft as unreleasedChangeRule, g as prePush, gi as specifiersOf, gn as coverageProvider, gr as securityGate, gt as parseAdvisory, h as parsePrePushArgs, hi as showFiles, hn as mainCheck, hr as isSecurityGate, ht as jobFails, i as formatResult, ii as inFolder, in as CONSOLE_LAST_DAY, ir as callPermissions, it as publishedMinor, j as typedFiles, jn as messageOf, jr as LICENSE_TEXTS, jt as pagesCalls, k as configsOfScript, kn as declaredName, kr as runnerBudget, kt as pushMainOnly, l as runFix, li as parseJsonc, ln as isCliFile, lr as sharedDocsRule, lt as UNSHIPPED_FILES, m as installHook, mi as runGitShow, mn as hasImportMetaMain, mr as SECURITY_FILE, mt as hiddenFailures, n as annotations, ni as codePackages, nn as parsePrivateNames, nr as setupPnpm, nt as lockedVersions, o as readConfig, oi as lineOf, on as consoleBreaks, or as HOME_TIMEOUT_MS, ot as reachOf, p as PRE_PUSH_HOOK, pi as runGit, pn as REAL_COMPARE, pr as releaseModeRule, pt as playwrightInstall, q as groupParts, qn as runCalls, qr as parseWorkflow, qt as PRIVATE_NAME_LIST, r as createContext, ri as hasFile, rn as pathNameHit, rr as setupCue, rt as minorOf, s as runChecks, si as matchesAny, sn as consoleGate, sr as blockHash, st as NPM_REGISTRY, t as USAGE, ti as cleanPath, tn as nameMatches, tr as sharedCi, tt as releaseFiles, u as summaryMarkdown, ui as readJsonc, un as isConsoleSource, ur as addReleaseMode, ut as npmLookup, v as RULES, vi as parseConfig, vn as containedHome, vr as SUMMARY_GATES, vt as swallowsTests, w as versionTitle, wn as HOME_SHAPES, wr as SECURITY_SCAN_INPUTS, wt as isGitSpecifier, x as workflowParses, xn as shapeMessage, xr as startsOnPullRequest, xt as pnpmYamlParses, y as workspaceProtocol, yi as parseRuleConfig, yn as homeShape, yr as addSummaryJob, yt as pipeFails, z as eventClass, zn as mapMarkdown, zr as gateTrigger, zt as PRIVATE_NAMES_FILE_VARIABLE } from "./run-CG6GDnhx.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, 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, RETIRED_FILES, 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, dependencySpecifiers, evaluateExpression, eventClass, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, gitPinOnNpm, 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, npmPackagesOf, 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, retiredFile, retiredFiles, 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, RETIRED_FILES, 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, dependencySpecifiers, evaluateExpression, eventClass, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, gitPinOnNpm, 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, npmPackagesOf, 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, retiredFile, retiredFiles, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, setupPnpm, 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
|
|
@@ -3941,9 +3941,9 @@ const callPermissions = callPermissionsRule();
|
|
|
3941
3941
|
* GitHub fails at times with a 504, and a bare `curl` then fails the job.
|
|
3942
3942
|
*/
|
|
3943
3943
|
/** The files of a composite action. */
|
|
3944
|
-
const ACTION$
|
|
3944
|
+
const ACTION$6 = /^\.github\/actions\/.+\/action\.ya?ml$/;
|
|
3945
3945
|
/** The action of the template itself. It is the one place with the download. */
|
|
3946
|
-
const SHARED_ACTION$
|
|
3946
|
+
const SHARED_ACTION$2 = ".github/actions/setup-cue/action.yml";
|
|
3947
3947
|
/** A hand-written install of the cue CLI: a download of a release asset, or a build with `go install`. */
|
|
3948
3948
|
const DOWNLOAD = /github\.com\/cue-lang\/cue\/releases\/download\/(v[0-9][^/\s"']*)\/|cuelang\.org\/go\/cmd\/cue@(v?[0-9][^\s"']*|latest)/;
|
|
3949
3949
|
/** This function gives each line of a file that installs the cue CLI with its own command. It does not read a comment line. */
|
|
@@ -3988,7 +3988,7 @@ const setupCue = {
|
|
|
3988
3988
|
const files = context.gitFiles();
|
|
3989
3989
|
if (files === void 0) return { skipped: "the root is not in a git repository" };
|
|
3990
3990
|
const breaks = [];
|
|
3991
|
-
for (const file of files.filter((path) => (WORKFLOW$1.test(path) || ACTION$
|
|
3991
|
+
for (const file of files.filter((path) => (WORKFLOW$1.test(path) || ACTION$6.test(path)) && path !== SHARED_ACTION$2).sort(byCode)) {
|
|
3992
3992
|
let text;
|
|
3993
3993
|
try {
|
|
3994
3994
|
text = readFileSync(join(context.root, file), "utf8");
|
|
@@ -4007,6 +4007,105 @@ const setupCue = {
|
|
|
4007
4007
|
return breaks;
|
|
4008
4008
|
}
|
|
4009
4009
|
};
|
|
4010
|
+
// src/rules/setup-pnpm.ts
|
|
4011
|
+
/**
|
|
4012
|
+
* The rule `setup-pnpm`: no workflow or action installs pnpm with its own step. The shared action `setup-pnpm` of the
|
|
4013
|
+
* template installs pnpm, starts it, and tries one more time when the install or the start fails. A bare
|
|
4014
|
+
* `pnpm/action-setup` step fails the job when its fetch of pnpm stalls or when the pnpm that it installed does not start.
|
|
4015
|
+
*/
|
|
4016
|
+
/** The files of a composite action. */
|
|
4017
|
+
const ACTION$5 = /^\.github\/actions\/.+\/action\.ya?ml$/;
|
|
4018
|
+
/** The action of the template itself. It is the one place with the step `pnpm/action-setup`. */
|
|
4019
|
+
const SHARED_ACTION$1 = ".github/actions/setup-pnpm/action.yml";
|
|
4020
|
+
/** A step that uses the action `pnpm/action-setup`, with its ref and the version in the comment after it. */
|
|
4021
|
+
const ACTION_SETUP = /^\s*(?:-\s+)?uses:\s*["']?pnpm\/action-setup@([^\s"'#]+)["']?\s*(?:#\s*(\S+))?/;
|
|
4022
|
+
/** The npm command of a global install, up to a comment or the end of the command. */
|
|
4023
|
+
const NPM_INSTALL = /\bnpm\s+(?:install|i|add)\s+([^#;&|\n]*)/;
|
|
4024
|
+
/** This function gives the global install of pnpm in the arguments of an npm command, or undefined when it is not one. */
|
|
4025
|
+
function npmGlobalPnpm(args) {
|
|
4026
|
+
const words = args.split(/\s+/).map((word) => word.replace(/^["']|["']$/g, "")).filter((word) => word !== "");
|
|
4027
|
+
if (!words.some((word) => word === "-g" || word === "--global" || word === "--location=global")) return void 0;
|
|
4028
|
+
const pnpm = words.find((word) => /^pnpm(?:@\S*)?$/.test(word));
|
|
4029
|
+
if (pnpm === void 0) return void 0;
|
|
4030
|
+
const version = pnpm.slice(5);
|
|
4031
|
+
return { version: version === "" || version === "latest" ? void 0 : version };
|
|
4032
|
+
}
|
|
4033
|
+
/** This function gives each line of a file that installs pnpm with its own step. It does not read a comment line. */
|
|
4034
|
+
function pnpmInstalls(text) {
|
|
4035
|
+
const found = [];
|
|
4036
|
+
text.split(/\r?\n/).forEach((line, index) => {
|
|
4037
|
+
if (line.trimStart().startsWith("#")) return;
|
|
4038
|
+
const step = ACTION_SETUP.exec(line);
|
|
4039
|
+
if (step !== null) {
|
|
4040
|
+
found.push({
|
|
4041
|
+
line: index + 1,
|
|
4042
|
+
command: "pnpm/action-setup",
|
|
4043
|
+
version: step[2] ?? step[1]
|
|
4044
|
+
});
|
|
4045
|
+
return;
|
|
4046
|
+
}
|
|
4047
|
+
const npm = NPM_INSTALL.exec(line);
|
|
4048
|
+
const global = npm === null ? void 0 : npmGlobalPnpm(npm[1] ?? "");
|
|
4049
|
+
if (global !== void 0) found.push({
|
|
4050
|
+
line: index + 1,
|
|
4051
|
+
command: "npm install --global",
|
|
4052
|
+
version: global.version
|
|
4053
|
+
});
|
|
4054
|
+
});
|
|
4055
|
+
return found;
|
|
4056
|
+
}
|
|
4057
|
+
const setupPnpm = {
|
|
4058
|
+
id: "setup-pnpm",
|
|
4059
|
+
title: "pnpm comes from the shared action `setup-pnpm`, not from a step `pnpm/action-setup` or a global npm install in a workflow.",
|
|
4060
|
+
reason: "A fetch of pnpm stalls at times, and the pnpm that an install gives does not always start. On 2026-12-02 a stalled fetch (EIDLETIMEOUT) failed the memory probe of layout-contract, and a pnpm that did not start failed the CI of wirelab. On 2026-12-03 one failed install made the weekly site run of packing red, and its 323 other jobs passed.",
|
|
4061
|
+
fix: "Use the step `uses: mark1russell7/template/.github/actions/setup-pnpm@<commit>` in place of `pnpm/action-setup`. The action reads the version from the field `packageManager` of `package.json`: move a `with: version` to that field. The input `package_json_file` becomes `package-json-file`. In place of `run_install`, add the step `run: pnpm install --frozen-lockfile`.",
|
|
4062
|
+
sources: [
|
|
4063
|
+
{
|
|
4064
|
+
repo: "layout-contract",
|
|
4065
|
+
rule: "memory-probe",
|
|
4066
|
+
doc: "run 46775736537 (2026-12-02): the pnpm self-install stalled with EIDLETIMEOUT from the npm registry"
|
|
4067
|
+
},
|
|
4068
|
+
{
|
|
4069
|
+
repo: "wirelab",
|
|
4070
|
+
rule: "ci",
|
|
4071
|
+
doc: "run 46857465050 (2026-12-02): the install passed after 3 minutes, but its pnpm did not start, and setup-node failed"
|
|
4072
|
+
},
|
|
4073
|
+
{
|
|
4074
|
+
repo: "packing",
|
|
4075
|
+
rule: "site-rerun",
|
|
4076
|
+
doc: "run 47021948708 (2026-12-03): one failed pnpm install in the screen job made the weekly site run red"
|
|
4077
|
+
},
|
|
4078
|
+
{
|
|
4079
|
+
repo: "template",
|
|
4080
|
+
rule: "setup-pnpm",
|
|
4081
|
+
doc: "the shared action setup-pnpm: a start check, and one more try from an empty folder"
|
|
4082
|
+
}
|
|
4083
|
+
],
|
|
4084
|
+
options: {},
|
|
4085
|
+
failsFrom: "2026-12-21",
|
|
4086
|
+
check(context) {
|
|
4087
|
+
const files = context.gitFiles();
|
|
4088
|
+
if (files === void 0) return { skipped: "the root is not in a git repository" };
|
|
4089
|
+
const breaks = [];
|
|
4090
|
+
for (const file of files.filter((path) => (WORKFLOW$1.test(path) || ACTION$5.test(path)) && path !== SHARED_ACTION$1).sort(byCode)) {
|
|
4091
|
+
let text;
|
|
4092
|
+
try {
|
|
4093
|
+
text = readFileSync(join(context.root, file), "utf8");
|
|
4094
|
+
} catch {
|
|
4095
|
+
continue;
|
|
4096
|
+
}
|
|
4097
|
+
for (const install of pnpmInstalls(text)) {
|
|
4098
|
+
const version = install.version === void 0 ? "" : ` ${install.version}`;
|
|
4099
|
+
breaks.push({
|
|
4100
|
+
file,
|
|
4101
|
+
line: install.line,
|
|
4102
|
+
message: `${file} installs pnpm with ${install.command}${version}, with no start check and no second try. Use the action setup-pnpm of the template.`
|
|
4103
|
+
});
|
|
4104
|
+
}
|
|
4105
|
+
}
|
|
4106
|
+
return breaks;
|
|
4107
|
+
}
|
|
4108
|
+
};
|
|
4010
4109
|
// src/rules/shared-ci.ts
|
|
4011
4110
|
/**
|
|
4012
4111
|
* The rule `shared-ci`: a repository uses the shared workflows and actions of the template, and keeps no copy of them.
|
|
@@ -4046,6 +4145,7 @@ const SHARED_ACTIONS = [
|
|
|
4046
4145
|
"merge-parents",
|
|
4047
4146
|
"npm-publish",
|
|
4048
4147
|
"pages-build",
|
|
4148
|
+
"pass-stamp",
|
|
4049
4149
|
"pull-of-run",
|
|
4050
4150
|
"release-check",
|
|
4051
4151
|
"security-scan",
|
|
@@ -82952,6 +83052,7 @@ const RULES = [
|
|
|
82952
83052
|
callPermissions,
|
|
82953
83053
|
sharedCi,
|
|
82954
83054
|
setupCue,
|
|
83055
|
+
setupPnpm,
|
|
82955
83056
|
playwrightInstall,
|
|
82956
83057
|
movedRepoCalls,
|
|
82957
83058
|
movedRepoNames,
|
|
@@ -84173,6 +84274,6 @@ function runHook(args, io) {
|
|
|
84173
84274
|
git: (gitArgs) => runGit(io.cwd, gitArgs)
|
|
84174
84275
|
}, io);
|
|
84175
84276
|
}
|
|
84176
|
-
export { retiredFile as $, SHARED_WORKFLOWS as $n,
|
|
84277
|
+
export { retiredFile as $, SHARED_WORKFLOWS as $n, DEPENDENCY_FIELDS as $r, lineNameHits as $t, scriptsOf as A, homePackage as An, scheduleMinute as Ar, PAGES_WORKFLOWS as At, giveWaySlots as B, mapText as Bn, prPathFilters as Br, PRIVATE_PATTERNS_VARIABLE as Bt, setVersions as C, spansOf as Cn, SECURITY_SCAN_COMMIT as Cr, dependencySpecifiers as Ct, trustPolicy as D, moduleUses as Dn, securityOneJob as Dr, siteCheckInCi as Dt, TRAIN_SCOPES as E, moduleMessage as En, securityCallers as Er, pinnedGitDeps as Et, sourceMain as F, HOME_EXPORTS as Fn, mitText as Fr, packNoBuildinfo as Ft, workflowPeaks as G, readOverlay as Gn, FILTER_KEYS as Gr, privatePatterns as Gt, repositoryPeak as H, npmDrift as Hn, summaryJob as Hr, noLocalPaths as Ht, TEMPLATE_CALLED as I, HOMES as In, repositoryIsPublic as Ir, DEFAULT_ALLOWED as It, mayRun as J, serviceRunMain as Jn, readAction as Jr, PrivateNameListError as Jt, evaluateExpression as K, SERVICE_PACKAGE as Kn, MATRIX_EXPAND_MAX as Kr, privateTextBreaks as Kt, UNKNOWN_MATRIX_JOBS as L, MAP_RULE as Ln, ACTIONS_COMMIT as Lr, HOME_PATTERNS as Lt, testsRequired as M, repoOf as Mn, authorOf as Mr, pagesSite as Mt, isSourcePath as N, reposOf as Nn, licenseFile as Nr, exportsRequire as Nt, typedScripts as O, modulesOf as On, withOneJob as Or, pagesAfterRelease as Ot, pathsOf as P, signaturesOf as Pn, licenseFileOf as Pr, publishTextSafe as Pt, RETIRED_FILES as Q, SHARED_CI as Qn, cuePreset as Qr, lineNameHit as Qt, calledJobs as R, findHomes as Rn, convertGate as Rr, PRIVATE_NAMES_FILE_CONFIG as Rt, namedVersions as S, shapesOfSource as Sn, summaryJobRule as Sr, gitPinOnNpm as St, IGNORE_AFTER as T, homeModule as Tn, SECURITY_TIMEOUT_MINUTES as Tr, isPinned as Tt, runnerPeak as U, npmNames as Un, summaryName as Ur, privateNamesFile as Ut, matrixPeak as V, mergeHomes as Vn, skippableJobs as Vr, invalidPatternBreaks as Vt, runsAtOnce as W, npmPackagesOf as Wn, gateAfterCancel as Wr, privateNamesFiles as Wt, roadmapParses as X, tsconfigTest as Xn, yamlFaults as Xr, isAllowedHit as Xt, roadmapOfLine as Y, hasTests as Yn, readWorkflow as Yr, firstNameMatch as Yt, retiredFiles as Z, SHARED_ACTIONS as Zn, STRICT_OPTIONS as Zr, isCommonUse as Zt, runPrePushArgs as _, defaultOptions as _i, apiReportScript as _n, securityWorkflow as _r, startsTests as _t, listRules as a, keyLine as ai, NOT_SOURCE as an, callPermissionsRule as ar, publishedMinorRule as at, GITHUB_YAML as b, homeShapesOf as bn, hasSummaryJob as br, PNPM_YAML as bt, runCli as c, parseCatFileBatch as ci, consoleKind as cn, githubFetch as cr, SHIPPED_FIELDS as ct, HOOK_MARKER as d, replaceLine as di, noConsole as dn, callsReleaseBuild as dr, unreleasedChange as dt, RULE_WARN_DAYS as ei, mergePrivateNames as en, callsSharedCi as er, requiredScripts as et, NO_READ_LINE as f, repositoryOfRemote as fi, noBuildOutput as fn, hasReleaseMode as fr, unreleasedChangeRule as ft, prePush as g, specifiersOf as gi, coverageProvider as gn, securityGate as gr, parseAdvisory as gt, parsePrePushArgs as h, showFiles as hi, mainCheck as hn, isSecurityGate as hr, jobFails as ht, formatResult as i, inFolder as ii, CONSOLE_LAST_DAY as in, callPermissions as ir, publishedMinor as it, typedFiles as j, messageOf$1 as jn, LICENSE_TEXTS as jr, pagesCalls as jt, configsOfScript as k, declaredName as kn, runnerBudget as kr, pushMainOnly as kt, runFix as l, parseJsonc as li, isCliFile as ln, sharedDocsRule as lr, UNSHIPPED_FILES as lt, installHook as m, runGitShow as mi, hasImportMetaMain as mn, SECURITY_FILE as mr, hiddenFailures as mt, annotations as n, codePackages as ni, parsePrivateNames as nn, setupPnpm as nr, lockedVersions as nt, readConfig as o, lineOf as oi, consoleBreaks as on, HOME_TIMEOUT_MS as or, reachOf as ot, PRE_PUSH_HOOK as p, runGit as pi, REAL_COMPARE as pn, releaseModeRule as pr, playwrightInstall as pt, groupParts as q, runCalls as qn, parseWorkflow as qr, PRIVATE_NAME_LIST as qt, createContext as r, hasFile as ri, pathNameHit as rn, setupCue as rr, minorOf as rt, runChecks as s, matchesAny as si, consoleGate as sn, blockHash as sr, NPM_REGISTRY as st, USAGE as t, cleanPath as ti, nameMatches as tn, sharedCi as tr, releaseFiles as tt, summaryMarkdown as u, readJsonc as ui, isConsoleSource as un, addReleaseMode as ur, npmLookup as ut, RULES as v, parseConfig as vi, containedHome as vn, SUMMARY_GATES as vr, swallowsTests as vt, versionTitle as w, HOME_SHAPES as wn, SECURITY_SCAN_INPUTS as wr, isGitSpecifier as wt, workflowParses as x, shapeMessage as xn, startsOnPullRequest as xr, pnpmYamlParses as xt, workspaceProtocol as y, parseRuleConfig as yi, homeShape as yn, addSummaryJob as yr, pipeFails as yt, eventClass as z, mapMarkdown as zn, gateTrigger as zr, PRIVATE_NAMES_FILE_VARIABLE as zt };
|
|
84177
84278
|
|
|
84178
|
-
//# sourceMappingURL=run-
|
|
84279
|
+
//# sourceMappingURL=run-CG6GDnhx.js.map
|