@mark1russell7/conventions 0.64.2 → 0.64.3

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.
@@ -1371,6 +1371,95 @@ function shellCode(line) {
1371
1371
  const comment = out.search(/(?:^|\s)#/);
1372
1372
  return comment >= 0 ? out.slice(0, comment) : out;
1373
1373
  }
1374
+ /** The characters that end a word and start an operator of the shell. */
1375
+ const SHELL_OPERATORS = ";&|()`";
1376
+ /**
1377
+ * This function gives the words and the operators of a line of a shell script, from the place `from` to the end of the
1378
+ * text. A quote that does not close goes to the end of the text. A `#` at the start of a word starts a comment. The
1379
+ * value `continues` tells that the line ends with a `\`, so the command continues on the next line.
1380
+ */
1381
+ function shellTokens(text, line, from = 0) {
1382
+ const tokens = [];
1383
+ let at = from;
1384
+ while (at < text.length) {
1385
+ const char = text.charAt(at);
1386
+ if (char === " " || char === " ") {
1387
+ at += 1;
1388
+ continue;
1389
+ }
1390
+ if (char === "#") break;
1391
+ if (char === "\\" && at === text.length - 1) return {
1392
+ tokens,
1393
+ continues: true
1394
+ };
1395
+ const two = text.slice(at, at + 2);
1396
+ if (two === "&&" || two === "||" || two === "$(") {
1397
+ tokens.push({
1398
+ text: two,
1399
+ operator: true,
1400
+ line,
1401
+ start: at,
1402
+ end: at + 2
1403
+ });
1404
+ at += 2;
1405
+ continue;
1406
+ }
1407
+ if (SHELL_OPERATORS.includes(char) && two !== "&>") {
1408
+ tokens.push({
1409
+ text: char,
1410
+ operator: true,
1411
+ line,
1412
+ start: at,
1413
+ end: at + 1
1414
+ });
1415
+ at += 1;
1416
+ continue;
1417
+ }
1418
+ const start = at;
1419
+ let word = "";
1420
+ while (at < text.length) {
1421
+ const next = text.charAt(at);
1422
+ if (next === " " || next === " " || next === "$" && text.charAt(at + 1) === "(") break;
1423
+ if (SHELL_OPERATORS.includes(next) && !(next === "&" && (at === start || /[<>]/.test(text.charAt(at - 1))))) break;
1424
+ if (next === "\\") {
1425
+ if (at === text.length - 1) return {
1426
+ tokens: [...tokens, {
1427
+ text: word,
1428
+ operator: false,
1429
+ line,
1430
+ start,
1431
+ end: at
1432
+ }],
1433
+ continues: true
1434
+ };
1435
+ word += text.charAt(at + 1);
1436
+ at += 2;
1437
+ } else if (next === "'" || next === "\"") {
1438
+ let close = at + 1;
1439
+ while (close < text.length && text.charAt(close) !== next) {
1440
+ if (next === "\"" && text.charAt(close) === "\\" && close + 1 < text.length) close += 1;
1441
+ word += text.charAt(close);
1442
+ close += 1;
1443
+ }
1444
+ at = Math.min(close + 1, text.length);
1445
+ } else {
1446
+ word += next;
1447
+ at += 1;
1448
+ }
1449
+ }
1450
+ tokens.push({
1451
+ text: word,
1452
+ operator: false,
1453
+ line,
1454
+ start,
1455
+ end: at
1456
+ });
1457
+ }
1458
+ return {
1459
+ tokens,
1460
+ continues: false
1461
+ };
1462
+ }
1374
1463
  /** This function removes a comment at the end of a value, and the quotes around it. */
1375
1464
  function valueOf$1(raw) {
1376
1465
  const comment = raw.search(/\s#/);
@@ -2137,6 +2226,103 @@ const mainRunsFinish = {
2137
2226
  return breaks;
2138
2227
  }
2139
2228
  };
2229
+ // src/rules/job-limit-floor.ts
2230
+ /**
2231
+ * The rule `job-limit-floor`: each job of a workflow has a time limit (`timeout-minutes`) of at least
2232
+ * {@link JOB_LIMIT_FLOOR_MINUTES} minutes. GitHub counts the limit from the start of the runner, not from the first step.
2233
+ * A runner that starts slowly uses up a short limit before a step runs, and GitHub then cancels the job with no step.
2234
+ */
2235
+ /**
2236
+ * The smallest time limit of a job, in minutes. The summary job and the job `changes` that the rules write get this
2237
+ * limit, so the rule and the generated jobs share one number.
2238
+ */
2239
+ const JOB_LIMIT_FLOOR_MINUTES = 10;
2240
+ /** The key `timeout-minutes` of a job with a whole number, and the text after the number (a comment). */
2241
+ const LIMIT_LINE = /^(\s*timeout-minutes:\s*)(\d+)(\s*(?:#.*)?)$/;
2242
+ /**
2243
+ * This function gives each job of a workflow with a time limit under `floor` minutes. The function does not read a limit
2244
+ * that an expression gives, and a step limit is not a job limit.
2245
+ */
2246
+ function shortJobLimits(file, text, floor = 10) {
2247
+ const lines = text.split(/\r?\n/);
2248
+ const found = [];
2249
+ for (const job of parseWorkflow(file, text).jobs) {
2250
+ const line = job.lines["timeout-minutes"];
2251
+ if (line === void 0) continue;
2252
+ const match = LIMIT_LINE.exec(lines[line - 1] ?? "");
2253
+ if (match === null) continue;
2254
+ const minutes = Number(match[2]);
2255
+ if (minutes < floor) found.push({
2256
+ job: job.id,
2257
+ line,
2258
+ minutes
2259
+ });
2260
+ }
2261
+ return found;
2262
+ }
2263
+ /** This function gives the text of a workflow with each job limit under `floor` raised to `floor`. */
2264
+ function raiseJobLimits(file, text, floor = 10) {
2265
+ let after = text;
2266
+ for (const short of shortJobLimits(file, text, floor)) {
2267
+ const old = after.split(/\r?\n/)[short.line - 1] ?? "";
2268
+ after = replaceLine(after, short.line, [old.replace(LIMIT_LINE, `$1${floor}$3`)]);
2269
+ }
2270
+ return after;
2271
+ }
2272
+ const jobLimitFloor = {
2273
+ id: "job-limit-floor",
2274
+ title: `Each job of a workflow has a time limit (timeout-minutes) of at least 10 minutes.`,
2275
+ reason: "GitHub counts the time limit of a job from the start of its runner. On 2026-12-04 runners took 2 to 3 minutes to start, and GitHub cancelled four jobs with a limit of 2 or 3 minutes before their first step. Each cancel stopped a release or a merge until a person started the job again.",
2276
+ fix: `Set timeout-minutes of the job to 10 or more. A short job still ends fast, because the limit is only an upper bound.`,
2277
+ sources: [
2278
+ {
2279
+ repo: "alerts",
2280
+ rule: "start-gate",
2281
+ doc: "runs 47228718413 and 47242618266 (2026-12-04): the jobs Start gate OK (2 minutes) and night-base (2 minutes) were cancelled with no step"
2282
+ },
2283
+ {
2284
+ repo: "rigor",
2285
+ rule: "release",
2286
+ doc: "run 47240263263 (2026-12-04): the job CI OK (2 minutes) of the release was cancelled with no step, so rigor-bench 0.3.28 waited"
2287
+ },
2288
+ {
2289
+ repo: "template",
2290
+ rule: "reusable-ci",
2291
+ doc: "the job release-window of reusable-ci.yml had a limit of 3 minutes. GitHub cancelled it with no step in rigor run 47243279369 (2026-12-04)"
2292
+ }
2293
+ ],
2294
+ options: {},
2295
+ failsFrom: "2026-12-18",
2296
+ check(context) {
2297
+ const files = context.gitFiles();
2298
+ if (files === void 0) return { skipped: "the root is not in a git repository" };
2299
+ const workflows = files.filter((path) => WORKFLOW$1.test(path)).sort(byCode);
2300
+ if (workflows.length === 0) return { skipped: "the repository has no workflow" };
2301
+ const breaks = [];
2302
+ for (const file of workflows) {
2303
+ let text;
2304
+ try {
2305
+ text = readFileSync(join(context.root, file), "utf8");
2306
+ } catch {
2307
+ continue;
2308
+ }
2309
+ const shorts = shortJobLimits(file, text);
2310
+ if (shorts.length === 0) continue;
2311
+ const after = raiseJobLimits(file, text);
2312
+ for (const short of shorts) breaks.push({
2313
+ file,
2314
+ line: short.line,
2315
+ message: `${file}: the job ${short.job} has a time limit of ${short.minutes} minutes. A slow runner start uses it up before the first step, and GitHub cancels the job.`,
2316
+ edits: [{
2317
+ file,
2318
+ before: text,
2319
+ after
2320
+ }]
2321
+ });
2322
+ }
2323
+ return breaks;
2324
+ }
2325
+ };
2140
2326
  // src/rules/gate-trigger.ts
2141
2327
  /**
2142
2328
  * The rule `gate-trigger`: a workflow that runs on pull requests starts on each pull request, with no path filter. The
@@ -2227,7 +2413,7 @@ function summaryJob(s) {
2227
2413
  `${job}if: ${NOT_CANCELLED}`,
2228
2414
  `${job}needs: [${s.needs.join(", ")}]`,
2229
2415
  `${job}runs-on: ubuntu-latest`,
2230
- `${job}timeout-minutes: 2`,
2416
+ `${job}timeout-minutes: 10`,
2231
2417
  ...s.grouped ? [] : [
2232
2418
  `${job}concurrency:`,
2233
2419
  `${job}${s.unit}group: \${{ github.workflow }}-${s.id}-${OWN_GROUP}`,
@@ -2364,7 +2550,7 @@ function convertGate(text, file, commit = ACTIONS_COMMIT) {
2364
2550
  const changes = [
2365
2551
  `${jobIndent}changes:`,
2366
2552
  `${job}runs-on: ubuntu-latest`,
2367
- `${job}timeout-minutes: 5`,
2553
+ `${job}timeout-minutes: 10`,
2368
2554
  ...group("changes"),
2369
2555
  `${job}permissions:`,
2370
2556
  `${job}${unit}contents: read`,
@@ -4106,6 +4292,266 @@ const setupPnpm = {
4106
4292
  return breaks;
4107
4293
  }
4108
4294
  };
4295
+ // src/rules/filtered-install.ts
4296
+ /**
4297
+ * The rule `filtered-install`: a filtered `pnpm install` of a workspace package also selects the workspace packages that
4298
+ * it uses. The filter `--filter <name>` installs only the dependencies of the package. The install links each workspace
4299
+ * package that the package uses, but it does not install the dependencies of the linked package. Then an import in the linked
4300
+ * package fails with `ERR_MODULE_NOT_FOUND`. The selector `<name>...` also installs each workspace package that the
4301
+ * package uses, with its dependencies.
4302
+ */
4303
+ /** A key at the start of a line of YAML, also after the `- ` of a list item. Group 1 is the name of the key. */
4304
+ const KEY$1 = /^\s*(?:-\s+)?["']?([A-Za-z_][\w.-]*)["']?:(?:\s+|$)/;
4305
+ /** The keys whose value is a text for a person or for GitHub, not a command of the shell. */
4306
+ const TEXT_KEYS = /* @__PURE__ */ new Set([
4307
+ "name",
4308
+ "description",
4309
+ "id",
4310
+ "if",
4311
+ "uses",
4312
+ "shell",
4313
+ "working-directory",
4314
+ "runs-on",
4315
+ "needs"
4316
+ ]);
4317
+ /** The words before a command that start the command or wait for it: `timeout 10m pnpm install`. */
4318
+ const LAUNCHERS = /* @__PURE__ */ new Set([
4319
+ "!",
4320
+ "{",
4321
+ "if",
4322
+ "then",
4323
+ "elif",
4324
+ "else",
4325
+ "while",
4326
+ "until",
4327
+ "do",
4328
+ "time",
4329
+ "command",
4330
+ "exec",
4331
+ "env",
4332
+ "sudo",
4333
+ "nice",
4334
+ "nohup",
4335
+ "timeout",
4336
+ "xvfb-run",
4337
+ "corepack",
4338
+ "npx"
4339
+ ]);
4340
+ /** A word after a launcher: an option, a time or a count, or a variable of the environment (`CI=1`). */
4341
+ const LAUNCHER_ARGUMENT = /^(?:-\S*|\d+(?:\.\d+)?[smhd]?|[A-Za-z_]\w*=.*)$/;
4342
+ /** The command `pnpm`, also with a folder or a version: `./node_modules/.bin/pnpm`, `pnpm@11`. */
4343
+ const PNPM = /^(?:\S*\/)?pnpm(?:@\S+)?$/;
4344
+ /** The options of pnpm that take the next word as their value. A word after them is not the command of pnpm. */
4345
+ const VALUE_OPTIONS = /* @__PURE__ */ new Set([
4346
+ "--filter",
4347
+ "-F",
4348
+ "--filter-prod",
4349
+ "--dir",
4350
+ "-C",
4351
+ "--reporter",
4352
+ "--loglevel",
4353
+ "--workspace-concurrency",
4354
+ "--test-pattern",
4355
+ "--changed-files-ignore-pattern",
4356
+ "--store-dir",
4357
+ "--virtual-store-dir",
4358
+ "--modules-dir",
4359
+ "--lockfile-dir"
4360
+ ]);
4361
+ /** The commands of pnpm that install the dependencies of a workspace. */
4362
+ const INSTALL_COMMANDS = /* @__PURE__ */ new Set(["install", "i"]);
4363
+ /** The option `--filter=` before the selector in one word. */
4364
+ const FILTER_EQUALS = "--filter=";
4365
+ /** This function gives the selectors of the command `words` when it is a `pnpm install` with filters. */
4366
+ function selectorsOf(words, editable) {
4367
+ let at = 0;
4368
+ while (at < words.length && !PNPM.test(words[at]?.text ?? "")) {
4369
+ const text = words[at]?.text ?? "";
4370
+ if (!LAUNCHERS.has(text) && !(at > 0 && LAUNCHER_ARGUMENT.test(text)) && !/^[A-Za-z_]\w*=/.test(text)) return [];
4371
+ at += 1;
4372
+ }
4373
+ const args = words.slice(at + 1);
4374
+ let command;
4375
+ const found = [];
4376
+ for (let index = 0; index < args.length; index++) {
4377
+ const word = args[index];
4378
+ if (word === void 0 || word.text === "--") break;
4379
+ if (word.text === "--filter" || word.text === "-F") {
4380
+ const value = args[index + 1];
4381
+ if (value !== void 0) found.push({
4382
+ line: value.line + 1,
4383
+ selector: value.text,
4384
+ start: value.start,
4385
+ end: value.end,
4386
+ editable
4387
+ });
4388
+ index += 1;
4389
+ } else if (word.text.startsWith(FILTER_EQUALS)) found.push({
4390
+ line: word.line + 1,
4391
+ selector: word.text.slice(9),
4392
+ start: word.start + 9,
4393
+ end: word.end,
4394
+ editable
4395
+ });
4396
+ else if (word.text.startsWith("-")) {
4397
+ if (command === void 0 && VALUE_OPTIONS.has(word.text)) index += 1;
4398
+ } else command ??= word.text;
4399
+ }
4400
+ return command !== void 0 && INSTALL_COMMANDS.has(command) ? found : [];
4401
+ }
4402
+ /** This function gives the selectors of each `pnpm install` with filters in the tokens of one command line. */
4403
+ function installsOf(tokens, editable) {
4404
+ const found = [];
4405
+ let words = [];
4406
+ for (const token of [...tokens, void 0]) {
4407
+ if (token !== void 0 && !token.operator) {
4408
+ words.push(token);
4409
+ continue;
4410
+ }
4411
+ found.push(...selectorsOf(words, editable));
4412
+ words = [];
4413
+ }
4414
+ return found;
4415
+ }
4416
+ /** This function gives the end of the block of text under the key at the line `index`. The indent of a key after `- ` is the place of the key. */
4417
+ function textEnd(lines, index) {
4418
+ const line = lines[index] ?? "";
4419
+ const indent = line.length - line.trimStart().replace(/^-\s+/, "").length;
4420
+ let end = index + 1;
4421
+ while (end < lines.length && ((lines[end] ?? "").trim() === "" || indentOf$1(lines[end] ?? "") > indent)) end += 1;
4422
+ return end;
4423
+ }
4424
+ /**
4425
+ * This function gives the selector of each filtered `pnpm install` of a workflow (also `pnpm i` and
4426
+ * `pnpm --filter <selector> install`). It reads the value of each key, the lines of a block of text, and the commands
4427
+ * after `&&`, `;`, `|` and in `( )`. It reads a command that continues after a `\`. It does not read comments, or the
4428
+ * value of a key for a person or for GitHub (`name`, `if`).
4429
+ */
4430
+ function filteredInstalls(text) {
4431
+ const lines = workflowLines(text);
4432
+ const found = [];
4433
+ let pending = [];
4434
+ let editable = true;
4435
+ for (let index = 0; index < lines.length; index++) {
4436
+ const line = lines[index] ?? "";
4437
+ let from = 0;
4438
+ let to = line.length;
4439
+ let quoted = false;
4440
+ if (pending.length === 0) {
4441
+ const key = KEY$1.exec(line);
4442
+ const value = key === null ? "" : line.slice(key[0].length).trimEnd();
4443
+ if (key !== null && TEXT_KEYS.has(key[1] ?? "")) {
4444
+ if (/^[|>]/.test(value)) index = textEnd(lines, index) - 1;
4445
+ continue;
4446
+ }
4447
+ if (key !== null) {
4448
+ from = key[0].length;
4449
+ const quote = value.charAt(0);
4450
+ if ((quote === "\"" || quote === "'") && value.length > 1 && value.endsWith(quote)) {
4451
+ from += 1;
4452
+ to = from + value.length - 2;
4453
+ quoted = true;
4454
+ }
4455
+ } else from = /^\s*-\s+/.exec(line)?.[0].length ?? 0;
4456
+ }
4457
+ const { tokens, continues } = shellTokens(line.slice(0, to), index, from);
4458
+ pending.push(...tokens);
4459
+ editable &&= !quoted;
4460
+ if (continues) continue;
4461
+ found.push(...installsOf(pending, editable));
4462
+ pending = [];
4463
+ editable = true;
4464
+ }
4465
+ found.push(...installsOf(pending, editable));
4466
+ return found;
4467
+ }
4468
+ /** This function gives the selector `<name>...` in the quotes of the old selector, or in double quotes. It gives undefined for a selector in another form. */
4469
+ function dependencySelector(raw, name) {
4470
+ if (raw === name) return `"${name}..."`;
4471
+ for (const quote of ["\"", "'"]) if (raw === `${quote}${name}${quote}`) return `${quote}${name}...${quote}`;
4472
+ }
4473
+ /** This function gives `text` with the selector `<name>...` in place of each selector of `installs` that a script can change. */
4474
+ function withDependencySelectors(text, installs) {
4475
+ const eol = text.includes("\r\n") ? "\r\n" : "\n";
4476
+ const lines = text.split(/\r?\n/);
4477
+ for (const install of [...installs].sort((a, b) => b.line - a.line || b.start - a.start)) {
4478
+ const line = lines[install.line - 1] ?? "";
4479
+ const next = install.editable ? dependencySelector(line.slice(install.start, install.end), install.selector) : void 0;
4480
+ if (next !== void 0) lines[install.line - 1] = line.slice(0, install.start) + next + line.slice(install.end);
4481
+ }
4482
+ return lines.join(eol);
4483
+ }
4484
+ /** This function gives the workspace packages that each package of the workspace uses (a `workspace:` specifier), by the name of the package. */
4485
+ function workspaceUses(packages) {
4486
+ const uses = /* @__PURE__ */ new Map();
4487
+ for (const pkg of packages) {
4488
+ const name = pkg.manifest["name"];
4489
+ if (typeof name !== "string" || uses.has(name)) continue;
4490
+ const used = DEPENDENCY_FIELDS.flatMap((field) => specifiersOf(pkg.manifest, field).filter(([, spec]) => spec.startsWith("workspace:")).map(([dependency]) => dependency));
4491
+ uses.set(name, [...new Set(used)].sort(byCode));
4492
+ }
4493
+ return uses;
4494
+ }
4495
+ const filteredInstall = {
4496
+ id: "filtered-install",
4497
+ title: "A filtered `pnpm install` of a package that uses workspace packages selects them too: `--filter \"<name>...\"`, not `--filter <name>`.",
4498
+ reason: "The filter `--filter <name>` installs only the dependencies of the package. The install links each workspace package that the package uses, but does not install their dependencies. On 2026-12-03 a CI job of metrograph-labs/canon failed with `ERR_MODULE_NOT_FOUND` for this reason.",
4499
+ fix: "Write the selector `\"<name>...\"`. It also installs each workspace package that the package uses, with its dependencies. `conventions fix` writes it.",
4500
+ sources: [
4501
+ {
4502
+ repo: "metrograph-labs/canon",
4503
+ rule: "ci",
4504
+ doc: "commit 14370f5 (2026-12-03): a job with a filter of one package failed with ERR_MODULE_NOT_FOUND in a linked workspace package. Two more workflows had the same filter."
4505
+ },
4506
+ {
4507
+ repo: "client",
4508
+ rule: "event-fan-out",
4509
+ doc: "commit 06088f9 (2026-11-04): each filtered install of the job selects \"@procedures/client...\", with the workspace packages that it uses"
4510
+ },
4511
+ {
4512
+ repo: "template",
4513
+ rule: "ci",
4514
+ doc: "commit b73368d (2026-11-16): the install of the rules selects \"@mark1russell7/conventions...\", and the release build selects \"<name>...\" for each package"
4515
+ }
4516
+ ],
4517
+ options: {},
4518
+ failsFrom: "2026-12-21",
4519
+ check(context) {
4520
+ const files = context.gitFiles();
4521
+ if (files === void 0) return { skipped: "the root is not in a git repository" };
4522
+ const uses = workspaceUses([context.rootPackage, ...context.packages]);
4523
+ const breaks = [];
4524
+ for (const file of files.filter((path) => WORKFLOW$1.test(path)).sort(byCode)) {
4525
+ let text;
4526
+ try {
4527
+ text = readFileSync(join(context.root, file), "utf8");
4528
+ } catch {
4529
+ continue;
4530
+ }
4531
+ const found = filteredInstalls(text).filter((install) => (uses.get(install.selector) ?? []).length > 0);
4532
+ if (found.length === 0) continue;
4533
+ const after = withDependencySelectors(text, found);
4534
+ const lines = text.split(/\r?\n/);
4535
+ for (const install of found) {
4536
+ const name = install.selector;
4537
+ const used = (uses.get(name) ?? []).join(", ");
4538
+ const raw = (lines[install.line - 1] ?? "").slice(install.start, install.end);
4539
+ const fixable = install.editable && dependencySelector(raw, name) !== void 0;
4540
+ breaks.push({
4541
+ file,
4542
+ line: install.line,
4543
+ message: `A pnpm install of ${file} has the filter ${name}, and ${name} uses the workspace packages ${used}. The install links them, but does not install their dependencies. Write "${name}...".`,
4544
+ ...fixable ? { edits: [{
4545
+ file,
4546
+ before: text,
4547
+ after
4548
+ }] } : {}
4549
+ });
4550
+ }
4551
+ }
4552
+ return breaks;
4553
+ }
4554
+ };
4109
4555
  // src/rules/shared-ci.ts
4110
4556
  /**
4111
4557
  * The rule `shared-ci`: a repository uses the shared workflows and actions of the template, and keeps no copy of them.
@@ -4151,6 +4597,7 @@ const SHARED_ACTIONS = [
4151
4597
  "security-scan",
4152
4598
  "select",
4153
4599
  "setup-cue",
4600
+ "setup-electron",
4154
4601
  "setup-playwright",
4155
4602
  "setup-pnpm",
4156
4603
  "site-check",
@@ -6103,7 +6550,7 @@ const HOMES = [
6103
6550
  {
6104
6551
  area: "repo-structure",
6105
6552
  title: "Repository structure, CI and conventions",
6106
- covers: "new repositories and packages, the CUE presets, shared CI workflows, the API report, import boundaries, the conventions check, the release and status pages, the browser check of a built site (site-pages check), the offline shell of a built site (entry /offline of site-pages: manifest, service worker, the offline check)",
6553
+ covers: "new repositories and packages, the CUE presets, shared CI workflows, the API report, import boundaries, the conventions check, the release and status pages, the browser check of a built site (site-pages check), the offline shell of a built site (entry /offline of site-pages: manifest, service worker, the offline check), the React kit of a docs site (entry /react of site-pages: the theme, the content registry, the sidebar, callouts, tabs, the page footer, react.css)",
6107
6554
  packages: [
6108
6555
  "@mark1russell7/conventions",
6109
6556
  "@mark1russell7/template-cli",
@@ -6129,7 +6576,15 @@ const HOMES = [
6129
6576
  "offline",
6130
6577
  "manifest",
6131
6578
  "pwa",
6132
- "service worker"
6579
+ "service worker",
6580
+ "docs site",
6581
+ "react kit",
6582
+ "content registry",
6583
+ "mdx",
6584
+ "sidebar",
6585
+ "callout",
6586
+ "table of contents",
6587
+ "theme toggle"
6133
6588
  ]
6134
6589
  },
6135
6590
  {
@@ -83043,6 +83498,7 @@ const RULES = [
83043
83498
  pushMainOnly,
83044
83499
  pipeFails,
83045
83500
  jobFails,
83501
+ jobLimitFloor,
83046
83502
  gateAfterCancel,
83047
83503
  gateTrigger,
83048
83504
  securityOneJob,
@@ -83053,6 +83509,7 @@ const RULES = [
83053
83509
  sharedCi,
83054
83510
  setupCue,
83055
83511
  setupPnpm,
83512
+ filteredInstall,
83056
83513
  playwrightInstall,
83057
83514
  movedRepoCalls,
83058
83515
  movedRepoNames,
@@ -84274,6 +84731,6 @@ function runHook(args, io) {
84274
84731
  git: (gitArgs) => runGit(io.cwd, gitArgs)
84275
84732
  }, io);
84276
84733
  }
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 };
84734
+ export { retiredFile as $, SHARED_WORKFLOWS as $n, yamlFaults as $r, lineNameHits as $t, scriptsOf as A, homePackage as An, runnerBudget as Ar, PAGES_WORKFLOWS as At, giveWaySlots as B, mapText as Bn, gateTrigger as Br, PRIVATE_PATTERNS_VARIABLE as Bt, setVersions as C, spansOf as Cn, summaryJobRule as Cr, dependencySpecifiers as Ct, trustPolicy as D, moduleUses as Dn, securityCallers as Dr, siteCheckInCi as Dt, TRAIN_SCOPES as E, moduleMessage as En, SECURITY_TIMEOUT_MINUTES as Er, pinnedGitDeps as Et, sourceMain as F, HOME_EXPORTS as Fn, licenseFileOf as Fr, packNoBuildinfo as Ft, workflowPeaks as G, readOverlay as Gn, JOB_LIMIT_FLOOR_MINUTES as Gr, privatePatterns as Gt, repositoryPeak as H, npmDrift as Hn, skippableJobs as Hr, noLocalPaths as Ht, TEMPLATE_CALLED as I, HOMES as In, mitText as Ir, DEFAULT_ALLOWED as It, mayRun as J, serviceRunMain as Jn, FILTER_KEYS as Jr, PrivateNameListError as Jt, evaluateExpression as K, SERVICE_PACKAGE as Kn, jobLimitFloor as Kr, privateTextBreaks as Kt, UNKNOWN_MATRIX_JOBS as L, MAP_RULE as Ln, repositoryIsPublic as Lr, HOME_PATTERNS as Lt, testsRequired as M, repoOf as Mn, LICENSE_TEXTS as Mr, pagesSite as Mt, isSourcePath as N, reposOf as Nn, authorOf as Nr, exportsRequire as Nt, typedScripts as O, modulesOf as On, securityOneJob as Or, pagesAfterRelease as Ot, pathsOf as P, signaturesOf as Pn, licenseFile as Pr, publishTextSafe as Pt, RETIRED_FILES as Q, SHARED_CI as Qn, readWorkflow as Qr, lineNameHit as Qt, calledJobs as R, findHomes as Rn, ACTIONS_COMMIT as Rr, PRIVATE_NAMES_FILE_CONFIG as Rt, namedVersions as S, parseRuleConfig as Si, shapesOfSource as Sn, startsOnPullRequest as Sr, gitPinOnNpm as St, IGNORE_AFTER as T, homeModule as Tn, SECURITY_SCAN_INPUTS as Tr, isPinned as Tt, runnerPeak as U, npmNames as Un, summaryJob as Ur, privateNamesFile as Ut, matrixPeak as V, mergeHomes as Vn, prPathFilters as Vr, invalidPatternBreaks as Vt, runsAtOnce as W, npmPackagesOf as Wn, summaryName as Wr, privateNamesFiles as Wt, roadmapParses as X, tsconfigTest as Xn, parseWorkflow as Xr, isAllowedHit as Xt, roadmapOfLine as Y, hasTests as Yn, MATRIX_EXPAND_MAX as Yr, firstNameMatch as Yt, retiredFiles as Z, SHARED_ACTIONS as Zn, readAction as Zr, isCommonUse as Zt, runPrePushArgs as _, runGitShow as _i, apiReportScript as _n, securityGate as _r, startsTests as _t, listRules as a, codePackages as ai, NOT_SOURCE as an, callPermissions as ar, publishedMinorRule as at, GITHUB_YAML as b, defaultOptions as bi, homeShapesOf as bn, addSummaryJob as br, PNPM_YAML as bt, runCli as c, keyLine as ci, consoleKind as cn, blockHash as cr, SHIPPED_FIELDS as ct, HOOK_MARKER as d, parseCatFileBatch as di, noConsole as dn, addReleaseMode as dr, unreleasedChange as dt, STRICT_OPTIONS as ei, mergePrivateNames as en, callsSharedCi as er, requiredScripts as et, NO_READ_LINE as f, parseJsonc as fi, noBuildOutput as fn, callsReleaseBuild as fr, unreleasedChangeRule as ft, prePush as g, runGit as gi, coverageProvider as gn, isSecurityGate as gr, parseAdvisory as gt, parsePrePushArgs as h, repositoryOfRemote as hi, mainCheck as hn, SECURITY_FILE as hr, jobFails as ht, formatResult as i, cleanPath as ii, CONSOLE_LAST_DAY as in, setupCue as ir, publishedMinor as it, typedFiles as j, messageOf$1 as jn, scheduleMinute as jr, pagesCalls as jt, configsOfScript as k, declaredName as kn, withOneJob as kr, pushMainOnly as kt, runFix as l, lineOf as li, isCliFile as ln, githubFetch as lr, UNSHIPPED_FILES as lt, installHook as m, replaceLine as mi, hasImportMetaMain as mn, releaseModeRule as mr, hiddenFailures as mt, annotations as n, DEPENDENCY_FIELDS as ni, parsePrivateNames as nn, filteredInstall as nr, lockedVersions as nt, readConfig as o, hasFile as oi, consoleBreaks as on, callPermissionsRule as or, reachOf as ot, PRE_PUSH_HOOK as p, readJsonc as pi, REAL_COMPARE as pn, hasReleaseMode as pr, playwrightInstall as pt, groupParts as q, runCalls as qn, gateAfterCancel as qr, PRIVATE_NAME_LIST as qt, createContext as r, RULE_WARN_DAYS as ri, pathNameHit as rn, setupPnpm as rr, minorOf as rt, runChecks as s, inFolder as si, consoleGate as sn, HOME_TIMEOUT_MS as sr, NPM_REGISTRY as st, USAGE as t, cuePreset as ti, nameMatches as tn, sharedCi as tr, releaseFiles as tt, summaryMarkdown as u, matchesAny as ui, isConsoleSource as un, sharedDocsRule as ur, npmLookup as ut, RULES as v, showFiles as vi, containedHome as vn, securityWorkflow as vr, swallowsTests as vt, versionTitle as w, HOME_SHAPES as wn, SECURITY_SCAN_COMMIT as wr, isGitSpecifier as wt, workflowParses as x, parseConfig as xi, shapeMessage as xn, hasSummaryJob as xr, pnpmYamlParses as xt, workspaceProtocol as y, specifiersOf as yi, homeShape as yn, SUMMARY_GATES as yr, pipeFails as yt, eventClass as z, mapMarkdown as zn, convertGate as zr, PRIVATE_NAMES_FILE_VARIABLE as zt };
84278
84735
 
84279
- //# sourceMappingURL=run-CG6GDnhx.js.map
84736
+ //# sourceMappingURL=run-gqm9mBei.js.map