@mark1russell7/conventions 0.52.3 → 0.52.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -194,6 +194,8 @@ An unknown rule, an unknown option, or an exception or a changed option without
194
194
  | `pre-push <remote> [<url>]` | Examine the new commits of a push with the private name list. The git hook `pre-push` starts it. |
195
195
  | `pre-push --base <ref> [--head <ref>]` | Examine the commits of `<base>..<head>` (the default head is `HEAD`) and the text of the pull request of the run, with the same rules. The shared CI starts a bundle of this command before the install. |
196
196
  | `hook install` | Write the git hook `pre-push`. In CI, or outside a git repository, the command does nothing. |
197
+ | `move plan <owner/name=owner/name>...` | Show each place of the repository that names a moved repository by its old name, and the steps of the move that no file holds. `--known` adds the moves that the package knows. `--json` writes the plan as JSON. No file changes. |
198
+ | `move apply <owner/name=owner/name>...` | Write the new name in each place of the plan, and show the plan that stays. |
197
199
 
198
200
  A run that `workflow_dispatch` starts has no pull request in its event file. A person can start the gates of a pull request in this way. For such a run, the shared CI finds the pull request of the branch, and gives two environment variables to the check:
199
201
 
@@ -204,6 +206,20 @@ A run that `workflow_dispatch` starts has no pull request in its event file. A p
204
206
 
205
207
  With the two variables, the rules `release-files`, `unreleased-change`, `home-package`, `home-module`, `version-title` and `no-local-paths` examine the change of the pull request, as on a `pull_request` run.
206
208
 
209
+ ## A move of a repository
210
+
211
+ Before or after a repository moves to a new owner, `conventions move plan` shows the work of the move in one list:
212
+
213
+ ```sh
214
+ conventions move plan mark1russell7/vex=metrograph-labs/vex
215
+ conventions move apply mark1russell7/vex=metrograph-labs/vex
216
+ ```
217
+
218
+ The plan has two parts:
219
+
220
+ - **The places.** Each line of a file that names the old name. The kinds are the fields of `package.json`, the links of Markdown (not a change log), the keys of workflows and the Changesets config. The `uses:` lines of workflows and actions are places too. These are the places of the rules `moved-repo-names` and `moved-repo-calls`, so the plan and the gate agree. `move apply` writes each one.
221
+ - **The steps that no file holds.** A trusted publisher on npm for the new repository, when a `package.json` names the old name. The new GitHub Pages address, when a file names the old address. The `uses:` lines of the repositories that call this one, and the remote of each clone. Each step is data in `MOVE_STEPS`.
222
+
207
223
  ## The private name list and the hook `pre-push`
208
224
 
209
225
  A private name must not get into a public repository. The private names are in a private name list, outside of the public repositories. The git hook `pre-push` examines each push with that list, on the computer of the push.
package/build/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as runCli } from "./run-Ck7ahUNV.js";
2
+ import { c as runCli } from "./run-DfHH0aZb.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  // src/cli.ts
5
5
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/playwright-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/workflow.ts","../src/rules/runner-peak.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/release-text.ts"],"mappings":";;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;WAEA;;EAET;;EAEA,IAAI;;;;;;EAMJ,SAAS;;;wBAIK,UAAU,SAAS,KAAK,iCAAiC;;KAM7D,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;;;;EAM/C,QAAQ,SAAS,aAAa,SAAS;;;qBAO5B;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qBAMxC,WAAY,gBAAgB;;qBAG5B,YAAa;;wBAGV,WAAW,cAAc;;;;;;wBASzB,WAAW;;wBA2BX,UAAU;;;;;;wBAcV,WAAW,cAAc;;;;;;wBAmBzB,kBAAkB,KAAK,YAAY;;wBAsBnC,OAAO,cAAc;;wBAOrB,mBAAmB;;qBActB,UAAW,aAAa;;;;;wBAMrB,aAAa,SAAS,KAAK,oDAAoD;;UCtS9E;;WAEN;;WAEA;;;;;WAKA;;WAEA;;WAEA,SAAS;;;UA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AEN;WACA;WACA;WACA;;;;;;wBAOK,iBAAiB,0BAA0B;;;;;wBAuB3C,eAAe,MAAM,aAAa,IAAI,KAAK;;qBAS9C;;;;;;;;qBAgCA;;UAgBI;;WAEN;WACA,KAAK,SAAS;;WAEd,MAAM;;;;;;;wBAQD,YAAY,SAAS,aAAa,IAAI,KAAK;;;;;;;;;;;;KCzc/C;;UAGK;WACN,OAAO,YAAY;WACnB;;WAEA;;;wBA8DK,mBAAmB,cAAc,gBAAgB;;;;;wBAoGjD,WAAW,eAAe,gBAAgB,YAAY;;;;;wBActD,OAAO,mBAAmB;;qBCjM7B,cAAc,SAAS;WAA0B;WAA0B;;;;;;;;;qBCM3E;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/playwright-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/workflow.ts","../src/rules/runner-peak.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/release-text.ts"],"mappings":";;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;WAEA;;EAET;;EAEA,IAAI;;;;;;EAMJ,SAAS;;;wBAIK,UAAU,SAAS,KAAK,iCAAiC;;KAM7D,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;;;;EAM/C,QAAQ,SAAS,aAAa,SAAS;;;qBAO5B;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qBAMxC,WAAY,gBAAgB;;qBAG5B,YAAa;;wBAGV,WAAW,cAAc;;;;;;wBASzB,WAAW;;wBA2BX,UAAU;;;;;;wBAcV,WAAW,cAAc;;;;;;wBAmBzB,kBAAkB,KAAK,YAAY;;wBAsBnC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AKA;;;;;WAKA;;;;;WAKA;;WAEA;WACA,KAAK,SAAS;;WAEd;;WAEA,MAAM;;WAEN,YAAY;;;;;;;;;;;;wBA0MP,QAAQ,SAAS,gBAAgB,IAAI,KAAK;;UA6GzC;;WAEN;WACA;WACA;WACA;;;;;;wBAOK,iBAAiB,0BAA0B;;;;;wBAuB3C,eAAe,MAAM,aAAa,IAAI,KAAK;;qBAS9C;;;;;;;;qBAgCA;;UAgBI;;WAEN;WACA,KAAK,SAAS;;WAEd,MAAM;;;;;;;wBAQD,YAAY,SAAS,aAAa,IAAI,KAAK;;;;;;;;;;;;KCzc/C;;UAGK;WACN,OAAO,YAAY;WACnB;;WAEA;;;wBA8DK,mBAAmB,cAAc,gBAAgB;;;;;wBAoGjD,WAAW,eAAe,gBAAgB,YAAY;;;;;wBActD,OAAO,mBAAmB;;qBCjM7B,cAAc,SAAS;WAA0B;WAA0B;;;;;;;;;qBCM3E;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as requiredScripts, $n as LICENSE_TEXTS, $t as noBuildOutput, A as scriptsOf, An as SHARED_ACTIONS, Ar as parseJsonc, At as packNoBuildinfo, B as TEMPLATE_CALLED, Bn as SUMMARY_GATES, Br as parseRuleConfig, Bt as privatePatterns, C as setVersions, Cn as npmNames, Cr as codePackages, Ct as pagesAfterRelease, D as trustPolicy, Dn as serviceRunMain, Dr as lineOf, Dt as pagesSite, E as TRAIN_SCOPES, En as runCalls, Er as keyLine, Et as pagesCalls, F as sourceMain, Fn as setupCue, Fr as runGitShow, Ft as PRIVATE_PATTERNS_VARIABLE, G as runnerPeak, Gn as SECURITY_SCAN_COMMIT, Gt as isAllowedHit, H as calledJobs, Hn as hasSummaryJob, Ht as PRIVATE_NAME_LIST, I as HOME_TIMEOUT_MS, In as SECURITY_FILE, Ir as showFiles, It as invalidPatternBreaks, J as evaluateExpression, Jn as securityCallers, Jt as lineNameHits, K as runsAtOnce, Kn as SECURITY_SCAN_INPUTS, Kt as isCommonUse, L as blockHash, Ln as isSecurityGate, Lr as specifiersOf, Lt as noLocalPaths, M as testsRequired, Mn as SHARED_WORKFLOWS, Mr as replaceLine, Mt as HOME_PATTERNS, N as isSourcePath, Nn as callsSharedCi, Nr as repositoryOfRemote, Nt as PRIVATE_NAMES_FILE_CONFIG, O as typedScripts, On as hasTests, Or as matchesAny, Ot as exportsRequire, P as pathsOf, Pn as sharedCi, Pr as runGit, Pt as PRIVATE_NAMES_FILE_VARIABLE, Q as roadmapParses, Qn as scheduleMinute, Qt as pathNameHit, R as githubFetch, Rn as securityGate, Rr as defaultOptions, Rt as privateNamesFile, S as namedVersions, Sn as npmDrift, Sr as cleanPath, St as siteCheckInCi, T as IGNORE_AFTER, Tn as SERVICE_PACKAGE, Tr as inFolder, Tt as PAGES_WORKFLOWS, U as eventClass, Un as startsOnPullRequest, Ut as PrivateNameListError, V as UNKNOWN_MATRIX_JOBS, Vn as addSummaryJob, Vt as privateTextBreaks, W as matrixPeak, Wn as summaryJobRule, Wt as firstNameMatch, X as mayRun, Xn as withOneJob, Xt as nameMatches, Y as groupParts, Yn as securityOneJob, Yt as mergePrivateNames, Z as roadmapOfLine, Zn as runnerBudget, Zt as parsePrivateNames, _ as runPrePushArgs, _n as MAP_RULE, _r as yamlFaults, _t as swallowsTests, a as listRules, an as homeModule, ar as ACTIONS_COMMIT, at as reachOf, b as GITHUB_YAML, bn as mapText, br as DEPENDENCY_FIELDS, bt as isPinned, c as runCli, cn as modulesOf, cr as prPathFilters, ct as UNSHIPPED_FILES, d as HOOK_MARKER, dn as messageOf, dr as summaryName, dt as unreleasedChangeRule, en as REAL_COMPARE, er as authorOf, et as releaseFiles, f as NO_READ_LINE, fn as repoOf, fr as gateAfterCancel, ft as playwrightInstall, g as prePush, gn as HOMES, gr as readWorkflow, gt as startsTests, h as parsePrePushArgs, hn as HOME_EXPORTS, hr as readAction, ht as parseAdvisory, i as formatResult, in as apiReportScript, ir as repositoryIsPublic, it as publishedMinorRule, j as typedFiles, jn as SHARED_CI, jr as readJsonc, jt as DEFAULT_ALLOWED, k as configsOfScript, kn as tsconfigTest, kr as parseCatFileBatch, kt as publishTextSafe, l as runFix, ln as declaredName, lr as skippableJobs, lt as npmLookup, m as installHook, mn as signaturesOf, mr as parseWorkflow, mt as jobFails, n as annotations, nn as mainCheck, nr as licenseFileOf, nt as minorOf, o as readConfig, on as moduleMessage, or as convertGate, ot as NPM_REGISTRY, p as PRE_PUSH_HOOK, pn as reposOf, pr as MATRIX_EXPAND_MAX, pt as hiddenFailures, q as workflowPeaks, qn as SECURITY_TIMEOUT_MINUTES, qt as lineNameHit, r as createContext, rn as coverageProvider, rr as mitText, rt as publishedMinor, s as runChecks, sn as moduleUses, sr as gateTrigger, st as SHIPPED_FIELDS, t as USAGE, tn as hasImportMetaMain, tr as licenseFile, tt as lockedVersions, u as summaryMarkdown, un as homePackage, ur as summaryJob, ut as unreleasedChange, v as RULES, vn as findHomes, vr as STRICT_OPTIONS, vt as pipeFails, w as versionTitle, wn as readOverlay, wr as hasFile, wt as pushMainOnly, x as workflowParses, xn as mergeHomes, xr as RULE_WARN_DAYS, xt as pinnedGitDeps, y as workspaceProtocol, yn as mapMarkdown, yr as cuePreset, yt as isGitSpecifier, z as sharedDocsRule, zn as securityWorkflow, zr as parseConfig, zt as privateNamesFiles } from "./run-Ck7ahUNV.js";
1
+ import { $ as requiredScripts, $n as LICENSE_TEXTS, $t as noBuildOutput, A as scriptsOf, An as SHARED_ACTIONS, Ar as parseJsonc, At as packNoBuildinfo, B as TEMPLATE_CALLED, Bn as SUMMARY_GATES, Br as parseRuleConfig, Bt as privatePatterns, C as setVersions, Cn as npmNames, Cr as codePackages, Ct as pagesAfterRelease, D as trustPolicy, Dn as serviceRunMain, Dr as lineOf, Dt as pagesSite, E as TRAIN_SCOPES, En as runCalls, Er as keyLine, Et as pagesCalls, F as sourceMain, Fn as setupCue, Fr as runGitShow, Ft as PRIVATE_PATTERNS_VARIABLE, G as runnerPeak, Gn as SECURITY_SCAN_COMMIT, Gt as isAllowedHit, H as calledJobs, Hn as hasSummaryJob, Ht as PRIVATE_NAME_LIST, I as HOME_TIMEOUT_MS, In as SECURITY_FILE, Ir as showFiles, It as invalidPatternBreaks, J as evaluateExpression, Jn as securityCallers, Jt as lineNameHits, K as runsAtOnce, Kn as SECURITY_SCAN_INPUTS, Kt as isCommonUse, L as blockHash, Ln as isSecurityGate, Lr as specifiersOf, Lt as noLocalPaths, M as testsRequired, Mn as SHARED_WORKFLOWS, Mr as replaceLine, Mt as HOME_PATTERNS, N as isSourcePath, Nn as callsSharedCi, Nr as repositoryOfRemote, Nt as PRIVATE_NAMES_FILE_CONFIG, O as typedScripts, On as hasTests, Or as matchesAny, Ot as exportsRequire, P as pathsOf, Pn as sharedCi, Pr as runGit, Pt as PRIVATE_NAMES_FILE_VARIABLE, Q as roadmapParses, Qn as scheduleMinute, Qt as pathNameHit, R as githubFetch, Rn as securityGate, Rr as defaultOptions, Rt as privateNamesFile, S as namedVersions, Sn as npmDrift, Sr as cleanPath, St as siteCheckInCi, T as IGNORE_AFTER, Tn as SERVICE_PACKAGE, Tr as inFolder, Tt as PAGES_WORKFLOWS, U as eventClass, Un as startsOnPullRequest, Ut as PrivateNameListError, V as UNKNOWN_MATRIX_JOBS, Vn as addSummaryJob, Vt as privateTextBreaks, W as matrixPeak, Wn as summaryJobRule, Wt as firstNameMatch, X as mayRun, Xn as withOneJob, Xt as nameMatches, Y as groupParts, Yn as securityOneJob, Yt as mergePrivateNames, Z as roadmapOfLine, Zn as runnerBudget, Zt as parsePrivateNames, _ as runPrePushArgs, _n as MAP_RULE, _r as yamlFaults, _t as swallowsTests, a as listRules, an as homeModule, ar as ACTIONS_COMMIT, at as reachOf, b as GITHUB_YAML, bn as mapText, br as DEPENDENCY_FIELDS, bt as isPinned, c as runCli, cn as modulesOf, cr as prPathFilters, ct as UNSHIPPED_FILES, d as HOOK_MARKER, dn as messageOf, dr as summaryName, dt as unreleasedChangeRule, en as REAL_COMPARE, er as authorOf, et as releaseFiles, f as NO_READ_LINE, fn as repoOf, fr as gateAfterCancel, ft as playwrightInstall, g as prePush, gn as HOMES, gr as readWorkflow, gt as startsTests, h as parsePrePushArgs, hn as HOME_EXPORTS, hr as readAction, ht as parseAdvisory, i as formatResult, in as apiReportScript, ir as repositoryIsPublic, it as publishedMinorRule, j as typedFiles, jn as SHARED_CI, jr as readJsonc, jt as DEFAULT_ALLOWED, k as configsOfScript, kn as tsconfigTest, kr as parseCatFileBatch, kt as publishTextSafe, l as runFix, ln as declaredName, lr as skippableJobs, lt as npmLookup, m as installHook, mn as signaturesOf, mr as parseWorkflow, mt as jobFails, n as annotations, nn as mainCheck, nr as licenseFileOf, nt as minorOf, o as readConfig, on as moduleMessage, or as convertGate, ot as NPM_REGISTRY, p as PRE_PUSH_HOOK, pn as reposOf, pr as MATRIX_EXPAND_MAX, pt as hiddenFailures, q as workflowPeaks, qn as SECURITY_TIMEOUT_MINUTES, qt as lineNameHit, r as createContext, rn as coverageProvider, rr as mitText, rt as publishedMinor, s as runChecks, sn as moduleUses, sr as gateTrigger, st as SHIPPED_FIELDS, t as USAGE, tn as hasImportMetaMain, tr as licenseFile, tt as lockedVersions, u as summaryMarkdown, un as homePackage, ur as summaryJob, ut as unreleasedChange, v as RULES, vn as findHomes, vr as STRICT_OPTIONS, vt as pipeFails, w as versionTitle, wn as readOverlay, wr as hasFile, wt as pushMainOnly, x as workflowParses, xn as mergeHomes, xr as RULE_WARN_DAYS, xt as pinnedGitDeps, y as workspaceProtocol, yn as mapMarkdown, yr as cuePreset, yt as isGitSpecifier, z as sharedDocsRule, zn as securityWorkflow, zr as parseConfig, zt as privateNamesFiles } from "./run-DfHH0aZb.js";
2
2
  import { OWNERS, ownerOf, ownersOf, repoKeyer, sharedNames } from "./owners.js";
3
3
  import { a as packageFolders, i as isWorkspaceFolder, l as workspaceGlobs, n as globFolders, o as parseWorkspaceGlobs, r as globToRegExp } from "./workspace-_CIq-8ei.js";
4
4
  // src/release-text.ts
@@ -3265,7 +3265,7 @@ const securityGate = {
3265
3265
  * GitHub fails at times with a 504, and a bare `curl` then fails the job.
3266
3266
  */
3267
3267
  /** The files of a composite action. */
3268
- const ACTION$4 = /^\.github\/actions\/.+\/action\.ya?ml$/;
3268
+ const ACTION$5 = /^\.github\/actions\/.+\/action\.ya?ml$/;
3269
3269
  /** The action of the template itself. It is the one place with the download. */
3270
3270
  const SHARED_ACTION$1 = ".github/actions/setup-cue/action.yml";
3271
3271
  /** A hand-written install of the cue CLI: a download of a release asset, or a build with `go install`. */
@@ -3312,7 +3312,7 @@ const setupCue = {
3312
3312
  const files = context.gitFiles();
3313
3313
  if (files === void 0) return { skipped: "the root is not in a git repository" };
3314
3314
  const breaks = [];
3315
- for (const file of files.filter((path) => (WORKFLOW$1.test(path) || ACTION$4.test(path)) && path !== SHARED_ACTION$1).sort(byCode)) {
3315
+ for (const file of files.filter((path) => (WORKFLOW$1.test(path) || ACTION$5.test(path)) && path !== SHARED_ACTION$1).sort(byCode)) {
3316
3316
  let text;
3317
3317
  try {
3318
3318
  text = readFileSync(join(context.root, file), "utf8");
@@ -3380,7 +3380,7 @@ const SHARED_ACTIONS = [
3380
3380
  /** The `uses` value of a job that calls the shared CI, with no pin. */
3381
3381
  const SHARED_CI = "mark1russell7/template/.github/workflows/reusable-ci.yml";
3382
3382
  /** The action folder of a path: `.github/actions/<name>/action.yml` gives `<name>`. */
3383
- const ACTION$3 = /^\.github\/actions\/([^/]+)\//;
3383
+ const ACTION$4 = /^\.github\/actions\/([^/]+)\//;
3384
3384
  /** The file name of a path. */
3385
3385
  const baseName = (path) => path.slice(path.lastIndexOf("/") + 1);
3386
3386
  /** This function tells if a job of a workflow text uses the shared CI of the template. */
@@ -3444,7 +3444,7 @@ const sharedCi = {
3444
3444
  });
3445
3445
  const actions = /* @__PURE__ */ new Set();
3446
3446
  for (const file of files) {
3447
- const folder = ACTION$3.exec(file)?.[1];
3447
+ const folder = ACTION$4.exec(file)?.[1];
3448
3448
  if (folder !== void 0 && SHARED_ACTIONS.includes(folder) && !actions.has(folder)) {
3449
3449
  actions.add(folder);
3450
3450
  breaks.push({
@@ -17716,7 +17716,7 @@ function movedTo(repo, moves) {
17716
17716
  * Each run of the workflow then fails before it starts ("workflow file issue"), and no job shows why.
17717
17717
  */
17718
17718
  /** The files of a composite action. */
17719
- const ACTION$2 = /^\.github\/actions\/.+\/action\.ya?ml$/;
17719
+ const ACTION$3 = /^\.github\/actions\/.+\/action\.ya?ml$/;
17720
17720
  /** The value of `uses:` that names another repository: `owner/name`, then a path or nothing, then `@` and the ref. */
17721
17721
  const REMOTE = /^([\w.-]+)\/([\w.-]+)(\/[^@\s]*)?@\S+$/;
17722
17722
  /** This function gives each `uses:` of a workflow or an action that names another repository. A local path (`./`) and a Docker image (`docker://`) are not calls of a repository. */
@@ -17772,7 +17772,7 @@ const movedRepoCalls = {
17772
17772
  if (bad !== void 0) return { skipped: `the option moves has "${bad.text}", which is not in the form owner/name=owner/name` };
17773
17773
  const moves = [...MOVES, ...extra.map((each) => each.move)];
17774
17774
  const breaks = [];
17775
- for (const file of files.filter((path) => WORKFLOW$1.test(path) || ACTION$2.test(path)).sort(byCode)) {
17775
+ for (const file of files.filter((path) => WORKFLOW$1.test(path) || ACTION$3.test(path)).sort(byCode)) {
17776
17776
  let text;
17777
17777
  try {
17778
17778
  text = readFileSync(join(context.root, file), "utf8");
@@ -17875,7 +17875,7 @@ const MANIFEST = /(^|\/)package\.json$/;
17875
17875
  const MARKDOWN = /\.mdx?$/i;
17876
17876
  const CHANGELOG = /(^|\/)CHANGELOG\.md$/i;
17877
17877
  /** A file of a composite action. */
17878
- const ACTION$1 = /^\.github\/actions\/.+\/action\.ya?ml$/;
17878
+ const ACTION$2 = /^\.github\/actions\/.+\/action\.ya?ml$/;
17879
17879
  /** The kinds of place of the core, in the order of a report. */
17880
17880
  const PLACE_KINDS = [
17881
17881
  {
@@ -17893,7 +17893,7 @@ const PLACE_KINDS = [
17893
17893
  {
17894
17894
  id: "workflow-names",
17895
17895
  title: "The addresses and each key repository of a workflow or a composite action, except uses: (the rule moved-repo-calls).",
17896
- reads: (file) => WORKFLOW$1.test(file) || ACTION$1.test(file),
17896
+ reads: (file) => WORKFLOW$1.test(file) || ACTION$2.test(file),
17897
17897
  find: (text) => {
17898
17898
  const skip = (line) => line.trimStart().startsWith("#") || keyValue(line, "uses") !== void 0;
17899
17899
  const keys = [];
@@ -20971,7 +20971,7 @@ const jobFails = {
20971
20971
  * more try. A bare `playwright install --with-deps` waits for the package mirror with no limit.
20972
20972
  */
20973
20973
  /** The files of a composite action. */
20974
- const ACTION = /^\.github\/actions\/.+\/action\.ya?ml$/;
20974
+ const ACTION$1 = /^\.github\/actions\/.+\/action\.ya?ml$/;
20975
20975
  /** The folder of the action of the template itself. It is the one place with the install. */
20976
20976
  const SHARED_ACTION = ".github/actions/setup-playwright/";
20977
20977
  /**
@@ -21048,7 +21048,7 @@ const playwrightInstall = {
21048
21048
  return;
21049
21049
  }
21050
21050
  };
21051
- for (const file of files.filter((path) => (WORKFLOW$1.test(path) || ACTION.test(path)) && !path.startsWith(SHARED_ACTION)).sort(byCode)) {
21051
+ for (const file of files.filter((path) => (WORKFLOW$1.test(path) || ACTION$1.test(path)) && !path.startsWith(SHARED_ACTION)).sort(byCode)) {
21052
21052
  const text = read(file);
21053
21053
  if (text === void 0) continue;
21054
21054
  for (const install of playwrightInstalls(text)) breaks.push({
@@ -24548,6 +24548,114 @@ function installHook(options, io) {
24548
24548
  io.stdout(`conventions hook install: ${before === void 0 ? "wrote" : "updated"} ${shown}.\n`);
24549
24549
  return 0;
24550
24550
  }
24551
+ // src/move-plan.ts
24552
+ /**
24553
+ * The plan of a move of a repository to another owner. It has each place of a repository that names the old name, and each
24554
+ * step that no file holds. The rules `moved-repo-names` and `moved-repo-calls` read the same places, so the plan and the gate
24555
+ * agree. A step is data: its id, what to do, and the function that tells if the places of the plan need it.
24556
+ *
24557
+ * This file reads no file and starts no program. The command `conventions move plan` gives it the files of git.
24558
+ */
24559
+ /** The files of a composite action. */
24560
+ const ACTION = /^\.github\/actions\/.+\/action\.ya?ml$/;
24561
+ /** The steps of a move that no file holds, in the order of the work. */
24562
+ const MOVE_STEPS = [
24563
+ {
24564
+ id: "npm-trust",
24565
+ title: "For each package that this repository publishes, add a trusted publisher on npm for the new repository, before the next release: npm provenance compares the field repository with the repository of the run.",
24566
+ needed: (places) => places.some((place) => place.kind === "package-fields" && place.file.endsWith("package.json"))
24567
+ },
24568
+ {
24569
+ id: "pages-address",
24570
+ title: "The GitHub Pages address changes to the new owner. Make sure that each link from outside the repository (a profile, a package page, another site) uses the new address: the old address gives 404.",
24571
+ needed: (places) => places.some((place) => place.form === "pages")
24572
+ },
24573
+ {
24574
+ id: "workflow-calls",
24575
+ title: "Each repository that calls a workflow or an action of the moved repository needs the new name in its uses: line: GitHub does not follow the move for uses:. Run this plan in each such repository.",
24576
+ needed: () => true
24577
+ },
24578
+ {
24579
+ id: "clone-remotes",
24580
+ title: "In each clone, write the new address of the remote: git remote set-url origin https://github.com/<new owner>/<name>.git.",
24581
+ needed: () => true
24582
+ }
24583
+ ];
24584
+ /** This function gives the plan of the moves over the files of a repository, in the order of the files and the lines. */
24585
+ function movePlan(files, moves) {
24586
+ const places = [];
24587
+ for (const file of files) {
24588
+ if (PLACE_KINDS.some((kind) => kind.reads(file.path))) for (const place of stalePlaces(file.path, file.text, moves)) places.push(toPlace(place));
24589
+ if (WORKFLOW$1.test(file.path) || ACTION.test(file.path)) for (const call of remoteCalls(file.text)) {
24590
+ const to = movedTo(call.repo, moves);
24591
+ if (to !== void 0) places.push({
24592
+ file: file.path,
24593
+ line: call.line,
24594
+ kind: "workflow-calls",
24595
+ text: call.repo,
24596
+ replacement: to,
24597
+ form: "repo"
24598
+ });
24599
+ }
24600
+ }
24601
+ places.sort((a, b) => a.file < b.file ? -1 : a.file > b.file ? 1 : a.line - b.line);
24602
+ return {
24603
+ moves,
24604
+ places,
24605
+ steps: MOVE_STEPS.filter((step) => step.needed(places))
24606
+ };
24607
+ }
24608
+ function toPlace(place) {
24609
+ return {
24610
+ file: place.file,
24611
+ line: place.line,
24612
+ kind: place.kind,
24613
+ text: place.text,
24614
+ replacement: place.replacement,
24615
+ form: place.form
24616
+ };
24617
+ }
24618
+ /**
24619
+ * This function gives each file that the moves change, with its new text. It writes each place of a kind of `places.ts`.
24620
+ * It also writes each `uses:` line that names a moved repository. A file with no place is not in the result.
24621
+ */
24622
+ function applyMoves(files, moves) {
24623
+ const changed = [];
24624
+ for (const file of files) {
24625
+ let text = file.text;
24626
+ if (PLACE_KINDS.some((kind) => kind.reads(file.path))) text = replacePlaces(text, stalePlaces(file.path, text, moves));
24627
+ if (WORKFLOW$1.test(file.path) || ACTION.test(file.path)) {
24628
+ const calls = remoteCalls(text);
24629
+ if (calls.length > 0) {
24630
+ const eol = text.includes("\r\n") ? "\r\n" : "\n";
24631
+ const lines = text.split(/\r?\n/);
24632
+ for (const call of calls) {
24633
+ const to = movedTo(call.repo, moves);
24634
+ const line = lines[call.line - 1];
24635
+ if (to !== void 0 && line !== void 0) lines[call.line - 1] = movedLine(line, call.repo, to);
24636
+ }
24637
+ text = lines.join(eol);
24638
+ }
24639
+ }
24640
+ if (text !== file.text) changed.push({
24641
+ path: file.path,
24642
+ text
24643
+ });
24644
+ }
24645
+ return changed;
24646
+ }
24647
+ /** This function gives the plan as text: one line for each place, then the steps. */
24648
+ function movePlanText(plan) {
24649
+ const lines = [`The plan of ${plan.moves.map((move) => `${move.from} to ${move.to}`).join(", ")}:`];
24650
+ if (plan.places.length === 0) lines.push("", "No file names an old name.");
24651
+ else {
24652
+ lines.push("", `${plan.places.length} places. \`conventions move apply\` with the same moves writes each one:`);
24653
+ for (const place of plan.places) lines.push(` ${place.file}:${place.line} ${place.kind} ${place.text} -> ${place.replacement}`);
24654
+ }
24655
+ lines.push("", "The steps that no file holds:");
24656
+ plan.steps.forEach((step, index) => lines.push(` ${index + 1}. ${step.title}`));
24657
+ return `${lines.join("\n")}\n`;
24658
+ }
24551
24659
  // src/run.ts
24552
24660
  /**
24553
24661
  * The commands `check`, `fix` and `--list` of the bin `conventions`, as functions. `runChecks` starts the
@@ -24855,6 +24963,7 @@ const USAGE = `Usage: conventions check [options]
24855
24963
  conventions pre-push <remote> [<url>]
24856
24964
  conventions pre-push --base <ref> [--head <ref>]
24857
24965
  conventions hook install
24966
+ conventions move plan|apply <owner/name=owner/name>... [--known] [--root <folder>] [--json]
24858
24967
 
24859
24968
  check Start each rule. Exit code 1 when a rule has a break.
24860
24969
  fix Write the fixes of the breaks that have one, and check again. Exit code 1 when a break stays.
@@ -24871,6 +24980,11 @@ const USAGE = `Usage: conventions check [options]
24871
24980
  request of the run. It reads no standard input.
24872
24981
  hook install Write the hook pre-push into the hooks folder of git. It keeps a hook that it did not write.
24873
24982
  In CI, or outside a git repository, it does nothing.
24983
+ move plan Show each place of the repository that names a moved repository by its old name (package
24984
+ fields, Markdown links, workflow keys and uses: lines, config values), and the steps of the
24985
+ move that no file holds (npm trust, the Pages address, the callers, the remotes). --known adds
24986
+ the moves that the package knows.
24987
+ move apply Write the new name in each place of the plan, and show the plan that stays.
24874
24988
 
24875
24989
  --root <folder> The root of the repository. The default is the current folder.
24876
24990
  --rule <id> Only this rule. Use it again for more rules.
@@ -24931,6 +25045,7 @@ function runCli(args, io) {
24931
25045
  if (args[0] === "map") return runMap(args.slice(1), io);
24932
25046
  if (args[0] === "pre-push") return runPrePush(args.slice(1), io);
24933
25047
  if (args[0] === "hook") return runHook(args.slice(1), io);
25048
+ if (args[0] === "move") return runMove(args.slice(1), io);
24934
25049
  let check = false;
24935
25050
  let fix = false;
24936
25051
  let list = false;
@@ -25014,6 +25129,77 @@ function runCli(args, io) {
25014
25129
  return result.failed ? 1 : 0;
25015
25130
  }
25016
25131
  /** The command `map`: the home of each area, or of the areas that match the words. */
25132
+ /** This function starts `conventions move plan` or `conventions move apply`. */
25133
+ function runMove(args, io) {
25134
+ const [action, ...rest] = args;
25135
+ const moves = [];
25136
+ let root = io.cwd;
25137
+ let json = false;
25138
+ let known = false;
25139
+ const usage = (message) => {
25140
+ io.stderr(`conventions: ${message}
25141
+
25142
+ ${USAGE}`);
25143
+ return 2;
25144
+ };
25145
+ if (action !== "plan" && action !== "apply") return usage("Give the command move plan or move apply.");
25146
+ for (let index = 0; index < rest.length; index++) {
25147
+ const arg = rest[index] ?? "";
25148
+ if (arg === "--json") json = true;
25149
+ else if (arg === "--known") known = true;
25150
+ else if (arg === "--root") {
25151
+ const next = rest[++index];
25152
+ if (next === void 0 || next.startsWith("-")) return usage("The option --root needs a value.");
25153
+ root = resolve(io.cwd, next);
25154
+ } else if (arg.startsWith("-")) return usage(`An unknown argument: ${arg}`);
25155
+ else {
25156
+ const move = parseMove(arg);
25157
+ if (move === void 0) return usage(`The move "${arg}" is not in the form owner/name=owner/name.`);
25158
+ moves.push(move);
25159
+ }
25160
+ }
25161
+ if (known) moves.push(...MOVES);
25162
+ if (moves.length === 0) return usage("Give one move or more, or --known.");
25163
+ const listed = runGit(root, [
25164
+ "ls-files",
25165
+ "-z",
25166
+ "--cached"
25167
+ ]);
25168
+ if (listed === void 0) {
25169
+ io.stderr(`conventions: ${root} is not in a git repository.
25170
+ `);
25171
+ return 1;
25172
+ }
25173
+ const read = () => listed.split("\0").filter((path) => path !== "").flatMap((path) => {
25174
+ try {
25175
+ return [{
25176
+ path,
25177
+ text: readFileSync(join(root, path), "utf8")
25178
+ }];
25179
+ } catch {
25180
+ return [];
25181
+ }
25182
+ });
25183
+ if (action === "apply") {
25184
+ const changed = applyMoves(read(), moves);
25185
+ for (const file of changed) writeFileSync(join(root, file.path), file.text);
25186
+ if (!json) io.stdout(`Wrote ${changed.length} files.
25187
+
25188
+ `);
25189
+ }
25190
+ const plan = movePlan(read(), moves);
25191
+ if (json) io.stdout(`${JSON.stringify({
25192
+ moves: plan.moves,
25193
+ places: plan.places,
25194
+ steps: plan.steps.map(({ id, title }) => ({
25195
+ id,
25196
+ title
25197
+ }))
25198
+ }, null, 2)}
25199
+ `);
25200
+ else io.stdout(movePlanText(plan));
25201
+ return 0;
25202
+ }
25017
25203
  function runMap(args, io) {
25018
25204
  let format = "text";
25019
25205
  let homes = HOMES;
@@ -25071,4 +25257,4 @@ function runHook(args, io) {
25071
25257
  }
25072
25258
  export { requiredScripts as $, LICENSE_TEXTS as $n, noBuildOutput as $t, scriptsOf as A, SHARED_ACTIONS as An, parseJsonc as Ar, packNoBuildinfo as At, TEMPLATE_CALLED as B, SUMMARY_GATES as Bn, parseRuleConfig as Br, privatePatterns as Bt, setVersions as C, npmNames as Cn, codePackages as Cr, pagesAfterRelease as Ct, trustPolicy as D, serviceRunMain as Dn, lineOf as Dr, pagesSite as Dt, TRAIN_SCOPES as E, runCalls as En, keyLine as Er, pagesCalls as Et, sourceMain as F, setupCue as Fn, runGitShow as Fr, PRIVATE_PATTERNS_VARIABLE as Ft, runnerPeak as G, SECURITY_SCAN_COMMIT as Gn, isAllowedHit as Gt, calledJobs as H, hasSummaryJob as Hn, PRIVATE_NAME_LIST as Ht, HOME_TIMEOUT_MS as I, SECURITY_FILE as In, showFiles as Ir, invalidPatternBreaks as It, evaluateExpression as J, securityCallers as Jn, lineNameHits as Jt, runsAtOnce as K, SECURITY_SCAN_INPUTS as Kn, isCommonUse as Kt, blockHash as L, isSecurityGate as Ln, specifiersOf as Lr, noLocalPaths as Lt, testsRequired as M, SHARED_WORKFLOWS as Mn, replaceLine as Mr, HOME_PATTERNS as Mt, isSourcePath as N, callsSharedCi as Nn, repositoryOfRemote as Nr, PRIVATE_NAMES_FILE_CONFIG as Nt, typedScripts as O, hasTests as On, matchesAny as Or, exportsRequire as Ot, pathsOf as P, sharedCi as Pn, runGit as Pr, PRIVATE_NAMES_FILE_VARIABLE as Pt, roadmapParses as Q, scheduleMinute as Qn, pathNameHit as Qt, githubFetch as R, securityGate as Rn, defaultOptions as Rr, privateNamesFile as Rt, namedVersions as S, npmDrift as Sn, cleanPath as Sr, siteCheckInCi as St, IGNORE_AFTER as T, SERVICE_PACKAGE as Tn, inFolder as Tr, PAGES_WORKFLOWS as Tt, eventClass as U, startsOnPullRequest as Un, PrivateNameListError as Ut, UNKNOWN_MATRIX_JOBS as V, addSummaryJob as Vn, privateTextBreaks as Vt, matrixPeak as W, summaryJobRule as Wn, firstNameMatch as Wt, mayRun as X, withOneJob as Xn, nameMatches as Xt, groupParts as Y, securityOneJob as Yn, mergePrivateNames as Yt, roadmapOfLine as Z, runnerBudget as Zn, parsePrivateNames as Zt, runPrePushArgs as _, MAP_RULE as _n, yamlFaults as _r, swallowsTests as _t, listRules as a, homeModule as an, ACTIONS_COMMIT as ar, reachOf as at, GITHUB_YAML as b, mapText as bn, DEPENDENCY_FIELDS as br, isPinned as bt, runCli as c, modulesOf as cn, prPathFilters as cr, UNSHIPPED_FILES as ct, HOOK_MARKER as d, messageOf as dn, summaryName as dr, unreleasedChangeRule as dt, REAL_COMPARE as en, authorOf as er, releaseFiles as et, NO_READ_LINE as f, repoOf as fn, gateAfterCancel as fr, playwrightInstall as ft, prePush as g, HOMES as gn, readWorkflow as gr, startsTests as gt, parsePrePushArgs as h, HOME_EXPORTS as hn, readAction as hr, parseAdvisory as ht, formatResult as i, apiReportScript as in, repositoryIsPublic as ir, publishedMinorRule as it, typedFiles as j, SHARED_CI as jn, readJsonc as jr, DEFAULT_ALLOWED as jt, configsOfScript as k, tsconfigTest as kn, parseCatFileBatch as kr, publishTextSafe as kt, runFix as l, declaredName as ln, skippableJobs as lr, npmLookup as lt, installHook as m, signaturesOf as mn, parseWorkflow as mr, jobFails as mt, annotations as n, mainCheck as nn, licenseFileOf as nr, minorOf as nt, readConfig as o, moduleMessage as on, convertGate as or, NPM_REGISTRY as ot, PRE_PUSH_HOOK as p, reposOf as pn, MATRIX_EXPAND_MAX as pr, hiddenFailures as pt, workflowPeaks as q, SECURITY_TIMEOUT_MINUTES as qn, lineNameHit as qt, createContext as r, coverageProvider as rn, mitText as rr, publishedMinor as rt, runChecks as s, moduleUses as sn, gateTrigger as sr, SHIPPED_FIELDS as st, USAGE as t, hasImportMetaMain as tn, licenseFile as tr, lockedVersions as tt, summaryMarkdown as u, homePackage as un, summaryJob as ur, unreleasedChange as ut, RULES as v, findHomes as vn, STRICT_OPTIONS as vr, pipeFails as vt, versionTitle as w, readOverlay as wn, hasFile as wr, pushMainOnly as wt, workflowParses as x, mergeHomes as xn, RULE_WARN_DAYS as xr, pinnedGitDeps as xt, workspaceProtocol as y, mapMarkdown as yn, cuePreset as yr, isGitSpecifier as yt, sharedDocsRule as z, securityWorkflow as zn, parseConfig as zr, privateNamesFiles as zt };
25073
25259
 
25074
- //# sourceMappingURL=run-Ck7ahUNV.js.map
25260
+ //# sourceMappingURL=run-DfHH0aZb.js.map