@mark1russell7/conventions 0.58.0 → 0.59.1

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.
@@ -1,4 +1,5 @@
1
1
  import { a as packageFolders, i as isWorkspaceFolder, o as parseWorkspaceGlobs, r as globToRegExp, s as relativePath, t as byCode } from "./workspace-B6xQXXcL.js";
2
+ import { checkedCalls, fileKey, gapLine, walkGaps } from "./permissions.js";
2
3
  import { OWNERS } from "./owners.js";
3
4
  import { createRequire } from "node:module";
4
5
  import { spawnSync } from "node:child_process";
@@ -6,9 +7,9 @@ import { appendFileSync, chmodSync, existsSync, mkdirSync, readFileSync, readdir
6
7
  import { basename, delimiter, dirname, extname, isAbsolute, join, posix, relative, resolve } from "node:path";
7
8
  import { LineCounter, isMap, isScalar, parseAllDocuments } from "yaml";
8
9
  import { errorMessage } from "@mark1russell7/text";
10
+ import { createHash } from "node:crypto";
9
11
  import { containsShape, functionsOf } from "@mark1russell7/code-shape";
10
12
  import { SECRET_SHAPES, findSecretShapes, findSecretShapesInValue, redactSecretShapes } from "@mark1russell7/text/redact";
11
- import { createHash } from "node:crypto";
12
13
  // src/config.ts
13
14
  /** The fields of the configuration of a rule that are not options. */
14
15
  const RULE_FIELDS = [
@@ -3469,6 +3470,416 @@ const releaseModeRule = {
3469
3470
  }];
3470
3471
  }
3471
3472
  };
3473
+ // src/rules/shared-docs.ts
3474
+ /**
3475
+ * The rule `shared-docs`: each shared block of a document agrees with its lock, and each linked block points to its
3476
+ * home at a pinned commit.
3477
+ */
3478
+ /** The time in milliseconds that the rule waits for one home. A home that does not answer in this time is a break. */
3479
+ const HOME_TIMEOUT_MS = 3e4;
3480
+ /** The script that `githubFetch` starts in a child process of Node, so that the rule stays synchronous. */
3481
+ const FETCH_SCRIPT = `
3482
+ const [timeout, ...urls] = process.argv.slice(1);
3483
+ Promise.all(urls.map(async (url) => {
3484
+ try {
3485
+ const response = await fetch(url, { signal: AbortSignal.timeout(Number(timeout)) });
3486
+ if (!response.ok) return [url, { error: "HTTP " + response.status }];
3487
+ return [url, { text: await response.text() }];
3488
+ } catch (error) {
3489
+ return [url, { error: String(error && error.message ? error.message : error) }];
3490
+ }
3491
+ })).then((entries) => process.stdout.write(JSON.stringify(Object.fromEntries(entries))));
3492
+ `;
3493
+ /** This function downloads each URL in one child process of Node. Each download stops after `HOME_TIMEOUT_MS`. */
3494
+ const githubFetch = (urls) => {
3495
+ const fail = (error) => new Map(urls.map((url) => [url, { error }]));
3496
+ if (urls.length === 0) return /* @__PURE__ */ new Map();
3497
+ const result = spawnSync(process.execPath, [
3498
+ "-e",
3499
+ FETCH_SCRIPT,
3500
+ String(HOME_TIMEOUT_MS),
3501
+ ...urls
3502
+ ], {
3503
+ encoding: "utf8",
3504
+ timeout: 4e4,
3505
+ maxBuffer: 67108864,
3506
+ windowsHide: true
3507
+ });
3508
+ if (result.error !== void 0 || result.status !== 0) return fail(result.error?.message ?? `the download ended with exit code ${String(result.status)}`);
3509
+ try {
3510
+ const answers = JSON.parse(result.stdout);
3511
+ return new Map(urls.map((url) => [url, answers[url] ?? { error: "no answer" }]));
3512
+ } catch {
3513
+ return fail("the download gave no JSON");
3514
+ }
3515
+ };
3516
+ /** This function gives the SHA-256 of the lines of a block: the lines with LF line ends, and a last LF. */
3517
+ const blockHash = (body) => createHash("sha256").update(`${body.join("\n")}\n`).digest("hex");
3518
+ /**
3519
+ * This function reads the blocks of one kind (`shared` or `linked`) of a text. A block is the text between
3520
+ * `<!-- <kind>:<id> -->` and `<!-- /<kind>:<id> -->`, each alone on its line.
3521
+ */
3522
+ function blocksOf(text, kind, problems) {
3523
+ const lines = text.replace(/\r\n/g, "\n").split("\n");
3524
+ const blocks = /* @__PURE__ */ new Map();
3525
+ const start = new RegExp(`^<!-- ${kind}:([a-z0-9-]+) -->$`);
3526
+ const end = new RegExp(`^<!-- /${kind}:([a-z0-9-]+) -->$`);
3527
+ const loose = new RegExp(`^\\s*<!-- /?${kind}:`);
3528
+ let open;
3529
+ let body = [];
3530
+ lines.forEach((line, index) => {
3531
+ const s = start.exec(line);
3532
+ const e = end.exec(line);
3533
+ if (s) {
3534
+ if (open !== void 0) problems.push({
3535
+ line: index + 1,
3536
+ message: `the ${kind} block "${s[1] ?? ""}" starts inside the block "${open.id}".`
3537
+ });
3538
+ open = {
3539
+ id: s[1] ?? "",
3540
+ line: index + 1
3541
+ };
3542
+ body = [];
3543
+ } else if (e) {
3544
+ if (open === void 0 || open.id !== e[1]) problems.push({
3545
+ line: index + 1,
3546
+ message: `the end of "${e[1] ?? ""}" does not close the open block "${open?.id ?? "(none)"}".`
3547
+ });
3548
+ else if (blocks.has(open.id)) problems.push({
3549
+ line: index + 1,
3550
+ message: `the ${kind} block "${open.id}" occurs two times.`
3551
+ });
3552
+ else blocks.set(open.id, {
3553
+ body,
3554
+ line: open.line
3555
+ });
3556
+ open = void 0;
3557
+ } else if (open !== void 0) body.push(line);
3558
+ else if (loose.test(line)) problems.push({
3559
+ line: index + 1,
3560
+ message: `a ${kind} marker must be alone on its line.`
3561
+ });
3562
+ });
3563
+ if (open !== void 0) problems.push({
3564
+ line: open.line,
3565
+ message: `the ${kind} block "${open.id}" has no end marker.`
3566
+ });
3567
+ return blocks;
3568
+ }
3569
+ const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
3570
+ const linkOf = (l) => `https://github.com/${l.repo}/blob/${l.commit}/${l.path}`;
3571
+ const rawOf = (l) => `https://raw.githubusercontent.com/${l.repo}/${l.commit}/${l.path}`;
3572
+ /** This function tells if the rule downloads the homes, from the option `remote` and the environment. */
3573
+ function downloads(remote, env) {
3574
+ if (remote === "always") return true;
3575
+ if (remote === "never") return false;
3576
+ return env["CI"] === "true";
3577
+ }
3578
+ /** This function makes the rule with the download function `fetchHomes`. The tests give a fake function. */
3579
+ function sharedDocsRule(fetchHomes = githubFetch) {
3580
+ return {
3581
+ id: "shared-docs",
3582
+ title: "Each shared block of a document agrees with its lock file, and each linked block has the link to its home at the pinned commit, with the hash of the home block.",
3583
+ reason: "Three repositories kept copies of the same blocks of docs/PROMOTION.md, each with its own copy of a check script. A change in one copy did not get to the others: on 2026-11-03 the block win-test of three repositories had a hash that the home in rigor did not have. A linked block keeps one copy, in its home, and pins the commit, so a change of the home is a deliberate update of the lock.",
3584
+ fix: "Make the block agree with the lock, or update the lock in each repository that keeps a copy. For a block with a home in another repository, remove the copy, write `<!-- linked:<id> -->` with the link https://github.com/<repo>/blob/<commit>/<path>, and give `{repo, path, commit, sha256}` in the field \"linked\" of the lock.",
3585
+ sources: [
3586
+ {
3587
+ repo: "layout-contract",
3588
+ rule: "check-shared",
3589
+ doc: "scripts/check-shared.mjs (#155, the linked form of a shared block)"
3590
+ },
3591
+ {
3592
+ repo: "packing",
3593
+ rule: "check-shared",
3594
+ doc: "scripts/check-shared.mjs (the same script)"
3595
+ },
3596
+ {
3597
+ repo: "highways",
3598
+ rule: "check-shared",
3599
+ doc: "scripts/check-shared.mjs (the same script)"
3600
+ }
3601
+ ],
3602
+ options: {
3603
+ locks: {
3604
+ type: "strings",
3605
+ default: [],
3606
+ description: "The lock files to check. With no value, the rule checks each tracked file with the name `shared.lock.json`."
3607
+ },
3608
+ remote: {
3609
+ type: "string",
3610
+ default: "ci",
3611
+ description: "When the rule downloads the home of each linked block and compares its hash: \"ci\" (only when the variable CI is \"true\"), \"always\" or \"never\"."
3612
+ }
3613
+ },
3614
+ check(context, options) {
3615
+ const named = options["locks"];
3616
+ let locks;
3617
+ if (named.length > 0) locks = named.map(cleanPath);
3618
+ else {
3619
+ const files = context.gitFiles();
3620
+ if (files === void 0) return { skipped: "the root is not in a git repository" };
3621
+ locks = files.filter((file) => file === "shared.lock.json" || file.endsWith("/shared.lock.json")).sort(byCode);
3622
+ }
3623
+ if (locks.length === 0) return { skipped: "the repository has no file shared.lock.json" };
3624
+ const breaks = [];
3625
+ const remote = [];
3626
+ for (const lockPath of locks) {
3627
+ if (!existsSync(join(context.root, lockPath))) {
3628
+ breaks.push({
3629
+ file: lockPath,
3630
+ message: `the option locks names ${lockPath}, and the file does not exist.`
3631
+ });
3632
+ continue;
3633
+ }
3634
+ let lockFile;
3635
+ try {
3636
+ lockFile = JSON.parse(readFileSync(join(context.root, lockPath), "utf8"));
3637
+ } catch (error) {
3638
+ breaks.push({
3639
+ file: lockPath,
3640
+ message: `${lockPath} is not JSON: ${error instanceof Error ? error.message : String(error)}`
3641
+ });
3642
+ continue;
3643
+ }
3644
+ if (!isRecord(lockFile)) {
3645
+ breaks.push({
3646
+ file: lockPath,
3647
+ message: `${lockPath} is not a JSON object.`
3648
+ });
3649
+ continue;
3650
+ }
3651
+ if (typeof lockFile["file"] !== "string") {
3652
+ breaks.push({
3653
+ file: lockPath,
3654
+ message: `${lockPath} has no field "file": the document of its blocks.`
3655
+ });
3656
+ continue;
3657
+ }
3658
+ if (!isRecord(lockFile["blocks"]) && !isRecord(lockFile["linked"])) {
3659
+ breaks.push({
3660
+ file: lockPath,
3661
+ message: `${lockPath} has no field "blocks" and no field "linked", so it locks nothing.`
3662
+ });
3663
+ continue;
3664
+ }
3665
+ const lock = isRecord(lockFile["blocks"]) ? lockFile["blocks"] : {};
3666
+ const links = isRecord(lockFile["linked"]) ? lockFile["linked"] : {};
3667
+ const doc = cleanPath(lockFile["file"]);
3668
+ if (!existsSync(join(context.root, doc))) {
3669
+ breaks.push({
3670
+ file: lockPath,
3671
+ message: `${lockPath} locks the blocks of ${doc}, and the file does not exist.`
3672
+ });
3673
+ continue;
3674
+ }
3675
+ const problems = [];
3676
+ const text = readFileSync(join(context.root, doc), "utf8");
3677
+ const shared = blocksOf(text, "shared", problems);
3678
+ const linked = blocksOf(text, "linked", problems);
3679
+ for (const p of problems) breaks.push({
3680
+ file: doc,
3681
+ ...p.line !== void 0 ? { line: p.line } : {},
3682
+ message: p.message
3683
+ });
3684
+ for (const [id, hash] of Object.entries(lock).sort(([a], [b]) => byCode(a, b))) {
3685
+ const block = shared.get(id);
3686
+ if (block === void 0) breaks.push({
3687
+ file: doc,
3688
+ message: `the shared block "${id}" of ${lockPath} is missing in ${doc}.`
3689
+ });
3690
+ else if (blockHash(block.body) !== hash) breaks.push({
3691
+ file: doc,
3692
+ line: block.line,
3693
+ message: `the shared block "${id}" differs from ${lockPath}: its hash is ${blockHash(block.body)}.`
3694
+ });
3695
+ }
3696
+ for (const [id, block] of shared) if (!(id in lock)) breaks.push({
3697
+ file: doc,
3698
+ line: block.line,
3699
+ message: `the shared block "${id}" is not in ${lockPath}.`
3700
+ });
3701
+ for (const [id, value] of Object.entries(links).sort(([a], [b]) => byCode(a, b))) {
3702
+ if (!isRecord(value)) {
3703
+ breaks.push({
3704
+ file: lockPath,
3705
+ message: `the linked block "${id}" of ${lockPath} is not an object {repo, path, commit, sha256}.`
3706
+ });
3707
+ continue;
3708
+ }
3709
+ const entry = {
3710
+ repo: String(value["repo"] ?? ""),
3711
+ path: String(value["path"] ?? ""),
3712
+ commit: String(value["commit"] ?? ""),
3713
+ sha256: String(value["sha256"] ?? "")
3714
+ };
3715
+ const before = breaks.length;
3716
+ if (!/^[\w.-]+\/[\w.-]+$/.test(entry.repo)) breaks.push({
3717
+ file: lockPath,
3718
+ message: `the linked block "${id}" needs a repository "<owner>/<name>", not "${entry.repo}".`
3719
+ });
3720
+ if (entry.path === "") breaks.push({
3721
+ file: lockPath,
3722
+ message: `the linked block "${id}" needs the path of its file in the home.`
3723
+ });
3724
+ if (!/^[0-9a-f]{40}$/.test(entry.commit)) breaks.push({
3725
+ file: lockPath,
3726
+ message: `the linked block "${id}" needs a full commit of 40 hex digits, not "${entry.commit}".`
3727
+ });
3728
+ if (!/^[0-9a-f]{64}$/.test(entry.sha256)) breaks.push({
3729
+ file: lockPath,
3730
+ message: `the linked block "${id}" needs a SHA-256 of 64 hex digits.`
3731
+ });
3732
+ const copy = shared.get(id);
3733
+ if (copy !== void 0) breaks.push({
3734
+ file: doc,
3735
+ line: copy.line,
3736
+ message: `the linked block "${id}" also has a copy in ${doc}. Remove the copy.`
3737
+ });
3738
+ const block = linked.get(id);
3739
+ if (block === void 0) breaks.push({
3740
+ file: doc,
3741
+ message: `the linked block "${id}" of ${lockPath} has no "<!-- linked:${id} -->" block in ${doc}.`
3742
+ });
3743
+ else if (!block.body.join("\n").includes(linkOf(entry))) breaks.push({
3744
+ file: doc,
3745
+ line: block.line,
3746
+ message: `the linked block "${id}" does not contain the link ${linkOf(entry)}.`
3747
+ });
3748
+ if (breaks.length === before) remote.push({
3749
+ lock: lockPath,
3750
+ id,
3751
+ entry
3752
+ });
3753
+ }
3754
+ for (const [id, block] of linked) if (!(id in links)) breaks.push({
3755
+ file: doc,
3756
+ line: block.line,
3757
+ message: `the linked block "${id}" is not in the field "linked" of ${lockPath}.`
3758
+ });
3759
+ }
3760
+ if (remote.length > 0 && downloads(String(options["remote"]), context.env)) {
3761
+ const answers = fetchHomes([...new Set(remote.map(({ entry }) => rawOf(entry)))]);
3762
+ for (const { lock, id, entry } of remote) {
3763
+ const url = rawOf(entry);
3764
+ const answer = answers.get(url) ?? { error: "no answer" };
3765
+ if ("error" in answer) {
3766
+ breaks.push({
3767
+ file: lock,
3768
+ message: `the home of the linked block "${id}" did not answer at ${url}: ${answer.error}.`
3769
+ });
3770
+ continue;
3771
+ }
3772
+ const home = blocksOf(answer.text, "shared", []).get(id);
3773
+ if (home === void 0) breaks.push({
3774
+ file: lock,
3775
+ message: `the home ${url} has no shared block "${id}".`
3776
+ });
3777
+ else if (blockHash(home.body) !== entry.sha256) breaks.push({
3778
+ file: lock,
3779
+ message: `the linked block "${id}" at ${url} has the hash ${blockHash(home.body)}, not the hash of ${lock}.`
3780
+ });
3781
+ }
3782
+ }
3783
+ return breaks;
3784
+ }
3785
+ };
3786
+ }
3787
+ const sharedDocs = sharedDocsRule();
3788
+ // src/rules/call-permissions.ts
3789
+ /**
3790
+ * The rule `call-permissions`: a job that calls a shared workflow of the template grants each permission that the
3791
+ * called jobs ask for. This includes the nested calls.
3792
+ *
3793
+ * GitHub refuses a called workflow that asks for more than its caller job grants. The run stops at its start
3794
+ * (`startup_failure`), and no job shows why. On 2026-11-26, the pins of a release workflow moved to a new template
3795
+ * commit. Its `reusable-release-version.yml` asked for `actions: write`, so each release run of that repository failed. The
3796
+ * release train checks each pin move with the same functions (`../permissions.ts`). This rule finds the gap in the checks
3797
+ * of the repository, also for a pin that a person or Renovate moves.
3798
+ */
3799
+ /** This function gives the line (from 1) of the `uses:` of a call, or undefined. */
3800
+ function usesLine(text, call) {
3801
+ const index = text.split(/\r?\n/).findIndex((line) => line.includes("uses:") && line.includes(`${call.path}@${call.sha}`));
3802
+ return index < 0 ? void 0 : index + 1;
3803
+ }
3804
+ /** This function makes the rule with the download function `fetchFiles`. The tests give a fake function. */
3805
+ function callPermissionsRule(fetchFiles = githubFetch) {
3806
+ return {
3807
+ id: "call-permissions",
3808
+ title: "Each job that calls a shared workflow of the template grants the permissions that the called jobs ask for.",
3809
+ reason: "GitHub refuses a called workflow that asks for more permissions than its caller job grants: the run stops at its start (startup_failure), and no job shows why. On 2026-11-26, a pin move to a template commit whose reusable-release-version.yml asked for actions: write stopped each release run of a repository.",
3810
+ fix: "Add each missing permission to the `permissions` of the caller job (or of the workflow, when the job has none). Or pin a template commit whose workflow asks for less.",
3811
+ sources: [{
3812
+ repo: "release-train",
3813
+ rule: "pins",
3814
+ doc: "release-train #248 (2026-11-26): the permission gate of a pin move"
3815
+ }, {
3816
+ repo: "private",
3817
+ rule: "conventions-call-permissions",
3818
+ doc: "a decision of 2026-11-29: each repository finds the gap in its own checks"
3819
+ }],
3820
+ options: {
3821
+ owner: {
3822
+ type: "string",
3823
+ default: "mark1russell7",
3824
+ description: "The owner of the template repository that the workflows call."
3825
+ },
3826
+ template: {
3827
+ type: "string",
3828
+ default: "template",
3829
+ description: "The name of the template repository."
3830
+ }
3831
+ },
3832
+ failsFrom: "2026-12-13",
3833
+ check(context, options) {
3834
+ const files = context.gitFiles();
3835
+ if (files === void 0) return { skipped: "the root is not in a git repository" };
3836
+ const owner = String(options["owner"]);
3837
+ const template = String(options["template"]);
3838
+ const callers = [];
3839
+ for (const file of files.filter((path) => WORKFLOW$1.test(path)).sort(byCode)) {
3840
+ let text;
3841
+ try {
3842
+ text = readFileSync(join(context.root, file), "utf8");
3843
+ } catch {
3844
+ continue;
3845
+ }
3846
+ const calls = checkedCalls(text, owner, template);
3847
+ if (calls.length > 0) callers.push({
3848
+ file,
3849
+ text,
3850
+ calls
3851
+ });
3852
+ }
3853
+ const all = callers.flatMap((caller) => caller.calls);
3854
+ if (all.length === 0) return [];
3855
+ const known = /* @__PURE__ */ new Map();
3856
+ for (;;) {
3857
+ const { needs } = walkGaps(all, owner, known, template);
3858
+ if (needs.length === 0) break;
3859
+ const urls = needs.map((need) => `https://raw.githubusercontent.com/${owner}/${template}/${need.sha}/${need.path}`);
3860
+ const answers = fetchFiles(urls);
3861
+ for (const [i, need] of needs.entries()) {
3862
+ const answer = answers.get(urls[i] ?? "") ?? { error: "no answer" };
3863
+ if ("text" in answer) known.set(fileKey(need), answer.text);
3864
+ else if (answer.error === "HTTP 404") known.set(fileKey(need), null);
3865
+ else return { skipped: `the rule cannot download ${need.path} of ${owner}/${template} at ${need.sha.slice(0, 7)}: ${answer.error}` };
3866
+ }
3867
+ }
3868
+ const breaks = [];
3869
+ for (const caller of callers) for (const gap of walkGaps(caller.calls, owner, known, template).gaps) {
3870
+ const call = caller.calls.find((each) => each.job === gap.job);
3871
+ const line = call === void 0 ? void 0 : usesLine(caller.text, call);
3872
+ breaks.push({
3873
+ file: caller.file,
3874
+ ...line === void 0 ? {} : { line },
3875
+ message: gapLine(caller.file, gap)
3876
+ });
3877
+ }
3878
+ return breaks;
3879
+ }
3880
+ };
3881
+ }
3882
+ const callPermissions = callPermissionsRule();
3472
3883
  // src/rules/setup-cue.ts
3473
3884
  /**
3474
3885
  * The rule `setup-cue`: no workflow or action downloads the cue CLI with its own command. The shared action `setup-cue`
@@ -4098,7 +4509,7 @@ const HOMES = [
4098
4509
  {
4099
4510
  area: "random",
4100
4511
  title: "Seeded random and generated inputs",
4101
- covers: "seeded random numbers, seeds from names, hashes for seeds, canonical JSON (RFC 8785) and content hashes (SHA-256), draws, input families with dimensions and ranges",
4512
+ covers: "seeded random numbers, seeds from names, hashes for seeds, canonical JSON (RFC 8785) and content hashes (SHA-256, also of raw bytes and incremental over a stream of chunks), draws, input families with dimensions and ranges",
4102
4513
  packages: ["@mark1russell7/rigor-generators"],
4103
4514
  repo: "mark1russell7/rigor",
4104
4515
  alsoIn: ["mark1russell7/algebra", "mark1russell7/math"],
@@ -4131,7 +4542,11 @@ const HOMES = [
4131
4542
  "sha-256",
4132
4543
  "rfc 8785",
4133
4544
  "jcs",
4134
- "stable stringify"
4545
+ "stable stringify",
4546
+ "incremental hash",
4547
+ "streaming hash",
4548
+ "hash of bytes",
4549
+ "blob id"
4135
4550
  ],
4136
4551
  signatures: [
4137
4552
  "mulberry32",
@@ -4149,7 +4564,10 @@ const HOMES = [
4149
4564
  "canonicalHash",
4150
4565
  "sha256Hex",
4151
4566
  "stableStringify",
4152
- "canonicalStringify"
4567
+ "canonicalStringify",
4568
+ "sha256Bytes",
4569
+ "sha256Stream",
4570
+ "incrementalSha256"
4153
4571
  ]
4154
4572
  },
4155
4573
  {
@@ -4425,10 +4843,9 @@ const HOMES = [
4425
4843
  area: "backups",
4426
4844
  title: "Content-addressed storage and backups",
4427
4845
  covers: "a content-addressed blob store (the id of a blob is the SHA-256 of its bytes) with store adapters (a local folder, the S3 API: Backblaze B2 first); snapshots of a folder or a stream as a manifest of blob ids, sizes and times; encryption of each blob and of the manifest with a key given as input (AES-256-GCM); replication of a store to a second store; retention rules as data (keep daily, weekly, monthly); restore; the verify check: each manifest entry has its bytes in each copy, with the right hash. The core names no app and no data kind",
4428
- packages: [],
4846
+ packages: ["@mark1russell7/backup"],
4429
4847
  repo: "mark1russell7/backup",
4430
- pending: ["@mark1russell7/backup"],
4431
- state: "planned",
4848
+ state: "published",
4432
4849
  words: [
4433
4850
  "backup",
4434
4851
  "backups",
@@ -4658,7 +5075,7 @@ const HOMES = [
4658
5075
  {
4659
5076
  area: "data-structures",
4660
5077
  title: "Collections and graphs of dependencies",
4661
- covers: "lists, deques, maps, trees and heaps; DAGs, cycles, topological order, strongly connected components, the minimum hitting set (the vertex cover of a hypergraph); the typed event emitter that evented collections use. @procedures/collections and @procedures/dag are the same code as procedures: new code goes to @mark1russell7/collections",
5078
+ covers: "lists, deques, maps, trees and heaps; DAGs, cycles, topological order, strongly connected components, the minimum hitting set (the vertex cover of a hypergraph); integer range sets (RangeSet: normalize, add, remove, the missing ranges, a chunk plan on a grid); the typed event emitter that evented collections use. @procedures/collections and @procedures/dag are the same code as procedures: new code goes to @mark1russell7/collections",
4662
5079
  packages: [
4663
5080
  "@mark1russell7/collections",
4664
5081
  "@procedures/collections",
@@ -4684,7 +5101,12 @@ const HOMES = [
4684
5101
  "emitter",
4685
5102
  "listener",
4686
5103
  "subscribe",
4687
- "unsubscribe"
5104
+ "unsubscribe",
5105
+ "range set",
5106
+ "interval set",
5107
+ "missing ranges",
5108
+ "chunk plan",
5109
+ "byte ranges"
4688
5110
  ],
4689
5111
  signatures: [
4690
5112
  "topoSort",
@@ -4692,7 +5114,10 @@ const HOMES = [
4692
5114
  "toposort",
4693
5115
  "topoOrder",
4694
5116
  "detectCycles?",
4695
- "findCycles?"
5117
+ "findCycles?",
5118
+ "missingRanges",
5119
+ "normalizeRanges",
5120
+ "chunkPlan"
4696
5121
  ]
4697
5122
  },
4698
5123
  {
@@ -5183,7 +5608,7 @@ const HOMES = [
5183
5608
  {
5184
5609
  area: "plain-text",
5185
5610
  title: "Plain text helpers",
5186
- covers: "escaping for HTML, attributes, regular expressions and Markdown, case conversion, padding and truncation, templates, English word forms (plurals, lists), the text of a thrown value (it never throws), the redaction of known secrets in a text (the raw form, the URL form and the Basic form), a printer of lines and tables to injected streams (entry /print: the output of a CLI for a person; a diagnostic goes to a log record of otel-ts), a BM25 search of a set of texts with no index server (entry /bm25). Escaping comes first",
5611
+ covers: "escaping for HTML, attributes, regular expressions and Markdown, case conversion, padding and truncation, templates, English word forms (plurals, lists), the text of a thrown value (it never throws), the redaction of known secrets in a text (the raw form, the URL form and the Basic form), a printer of lines and tables to injected streams (entry /print: the output of a CLI for a person; a diagnostic goes to a log record of otel-ts), a BM25 search of a set of texts with no index server (entry /bm25), a strict base64 and base64url codec (entry /base64, planned). Escaping comes first",
5187
5612
  packages: ["@mark1russell7/text"],
5188
5613
  repo: "mark1russell7/text",
5189
5614
  state: "published",
@@ -5213,7 +5638,10 @@ const HOMES = [
5213
5638
  "text search",
5214
5639
  "full-text search",
5215
5640
  "ranking",
5216
- "retrieval"
5641
+ "retrieval",
5642
+ "base64",
5643
+ "base64url",
5644
+ "codec"
5217
5645
  ],
5218
5646
  signatures: [
5219
5647
  "escapeHtml",
@@ -5227,7 +5655,13 @@ const HOMES = [
5227
5655
  "pluralize",
5228
5656
  "redactSecrets",
5229
5657
  "errorMessage",
5230
- "createPrinter"
5658
+ "createPrinter",
5659
+ "toBase64",
5660
+ "fromBase64",
5661
+ "encodeBase64",
5662
+ "decodeBase64",
5663
+ "base64Encode",
5664
+ "base64Decode"
5231
5665
  ]
5232
5666
  },
5233
5667
  {
@@ -5810,7 +6244,7 @@ function mapText(homes) {
5810
6244
  /** The names of the values that each home package exports, with the version that the names come from. */
5811
6245
  const HOME_EXPORTS = {
5812
6246
  "@mark1russell7/alerts": {
5813
- version: "0.8.1",
6247
+ version: "0.8.2",
5814
6248
  names: [
5815
6249
  "AGE_LINE_AFTER",
5816
6250
  "ASSESSED_LEVELS",
@@ -5848,6 +6282,13 @@ const HOME_EXPORTS = {
5848
6282
  "CHAIN_MACHINE",
5849
6283
  "CHANNEL_KIND",
5850
6284
  "CHANNEL_SUBJECT",
6285
+ "CHECK_IN_EVENTS",
6286
+ "CHECK_IN_ID",
6287
+ "CHECK_IN_LEAST",
6288
+ "CHECK_IN_MACHINE",
6289
+ "CHECK_IN_MOST",
6290
+ "CHECK_IN_SYSTEM",
6291
+ "CHECK_IN_WORDS",
5851
6292
  "CLOCK_KIND",
5852
6293
  "CLOCK_STEP_ABOVE",
5853
6294
  "CLOCK_STEP_WINDOW",
@@ -5894,6 +6335,21 @@ const HOME_EXPORTS = {
5894
6335
  "ChannelRun",
5895
6336
  "ChannelRunStep",
5896
6337
  "ChannelSnapshot",
6338
+ "CheckInAnchorInput",
6339
+ "CheckInConfig",
6340
+ "CheckInConsent",
6341
+ "CheckInContactConfig",
6342
+ "CheckInContactKind",
6343
+ "CheckInContactSend",
6344
+ "CheckInContext",
6345
+ "CheckInCycle",
6346
+ "CheckInDuress",
6347
+ "CheckInInput",
6348
+ "CheckInLadder",
6349
+ "CheckInPlan",
6350
+ "CheckInRecord",
6351
+ "CheckInSchedule",
6352
+ "CheckInState",
5897
6353
  "CheckOutcome",
5898
6354
  "CitedNeed",
5899
6355
  "ClockStep",
@@ -5930,6 +6386,8 @@ const HOME_EXPORTS = {
5930
6386
  "DEFAULT_ASSESS_POLICY",
5931
6387
  "DEFAULT_BASELINE",
5932
6388
  "DEFAULT_CHANNEL_DOWN",
6389
+ "DEFAULT_CHECK_IN_LADDER",
6390
+ "DEFAULT_CHECK_IN_SCHEDULE",
5933
6391
  "DEFAULT_COVERAGE_POLICY",
5934
6392
  "DEFAULT_ENTRY_MAX",
5935
6393
  "DEFAULT_FAIL_AFTER",
@@ -5972,6 +6430,7 @@ const HOME_EXPORTS = {
5972
6430
  "DigestSend",
5973
6431
  "DimensionCount",
5974
6432
  "DimensionId",
6433
+ "DownSpan",
5975
6434
  "DriftCheck",
5976
6435
  "DriftCommandConfig",
5977
6436
  "DriftCommandKind",
@@ -6280,6 +6739,7 @@ const HOME_EXPORTS = {
6280
6739
  "ReportIdInput",
6281
6740
  "ResolvedOptIn",
6282
6741
  "ResponseType",
6742
+ "RiskSpan",
6283
6743
  "Route",
6284
6744
  "RouteInput",
6285
6745
  "RouteLoad",
@@ -6423,6 +6883,7 @@ const HOME_EXPORTS = {
6423
6883
  "addressValueSchema",
6424
6884
  "admits",
6425
6885
  "advanceHealth",
6886
+ "agreedAt",
6426
6887
  "alertAreaSchema",
6427
6888
  "alertConfigSchema",
6428
6889
  "allRetirements",
@@ -6482,6 +6943,17 @@ const HOME_EXPORTS = {
6482
6943
  "channelQuotaSchema",
6483
6944
  "channelRunSchema",
6484
6945
  "channelRuns",
6946
+ "checkInAnchor",
6947
+ "checkInConfigSchema",
6948
+ "checkInConsentSchema",
6949
+ "checkInContactConfigSchema",
6950
+ "checkInDrillGaps",
6951
+ "checkInDuressSchema",
6952
+ "checkInInterval",
6953
+ "checkInLadderSchema",
6954
+ "checkInPlan",
6955
+ "checkInProblems",
6956
+ "checkInScheduleSchema",
6485
6957
  "checkWith",
6486
6958
  "classOf",
6487
6959
  "committedPriors",
@@ -6491,8 +6963,11 @@ const HOME_EXPORTS = {
6491
6963
  "configHash",
6492
6964
  "configPartSchema",
6493
6965
  "configuredExpectations",
6966
+ "consentProblems",
6494
6967
  "contactChannels",
6495
6968
  "contactConfigSchema",
6969
+ "contactMessage",
6970
+ "contactPerson",
6496
6971
  "contextSource",
6497
6972
  "copyBillingConfigSchema",
6498
6973
  "copyDarkAt",
@@ -6672,6 +7147,7 @@ const HOME_EXPORTS = {
6672
7147
  "loadConfig",
6673
7148
  "localPlaces",
6674
7149
  "locateOutcomeSchema",
7150
+ "longestPrefixOf",
6675
7151
  "lowerLevel",
6676
7152
  "mapPayload",
6677
7153
  "mapProblemSchema",
@@ -6788,6 +7264,8 @@ const HOME_EXPORTS = {
6788
7264
  "relevancePathSchema",
6789
7265
  "relevancePolicySchema",
6790
7266
  "relevanceSchema",
7267
+ "reminderMessage",
7268
+ "reminderPolicy",
6791
7269
  "reportId",
6792
7270
  "reportIdSchema",
6793
7271
  "reportPasses",
@@ -6801,6 +7279,7 @@ const HOME_EXPORTS = {
6801
7279
  "route",
6802
7280
  "ruleSteps",
6803
7281
  "runOpens",
7282
+ "scheduleProblems",
6804
7283
  "schemaOf",
6805
7284
  "scopeOf",
6806
7285
  "scoreFactorSchema",
@@ -7014,7 +7493,7 @@ const HOME_EXPORTS = {
7014
7493
  ]
7015
7494
  },
7016
7495
  "@mark1russell7/api-report": {
7017
- version: "0.5.26",
7496
+ version: "0.5.27",
7018
7497
  names: [
7019
7498
  "DEFAULT_TOOL",
7020
7499
  "HEADER_LINES",
@@ -7052,6 +7531,50 @@ const HOME_EXPORTS = {
7052
7531
  "workspaceGlobs"
7053
7532
  ]
7054
7533
  },
7534
+ "@mark1russell7/backup": {
7535
+ version: "0.1.0",
7536
+ names: [
7537
+ "BLOB_ID",
7538
+ "BLOB_PREFIX",
7539
+ "BackupError",
7540
+ "DEFAULT_CHUNK_BYTES",
7541
+ "FOLDER_TEMP",
7542
+ "MANIFEST_FORMAT",
7543
+ "REF_PREFIX",
7544
+ "SEAL_MAGIC",
7545
+ "SEAL_NONCE_BYTES",
7546
+ "SEAL_SECRET_BYTES",
7547
+ "SEAL_TAG_BYTES",
7548
+ "SNAPSHOT_PREFIX",
7549
+ "assertBlobId",
7550
+ "assertStoreKey",
7551
+ "blobIdOf",
7552
+ "blobStore",
7553
+ "chunkIds",
7554
+ "fixedChunks",
7555
+ "folderBytes",
7556
+ "isBlobId",
7557
+ "isEntryPath",
7558
+ "isSourceLabel",
7559
+ "isStoreKey",
7560
+ "listSnapshots",
7561
+ "manifestBytes",
7562
+ "memoryBytes",
7563
+ "parseListAnswer",
7564
+ "parseManifest",
7565
+ "plainCodec",
7566
+ "putChunks",
7567
+ "readChunks",
7568
+ "readManifest",
7569
+ "replicate",
7570
+ "restoreFiles",
7571
+ "s3Bytes",
7572
+ "sealCodec",
7573
+ "snapshotFolder",
7574
+ "snapshotName",
7575
+ "verifyManifest"
7576
+ ]
7577
+ },
7055
7578
  "@mark1russell7/boundaries": {
7056
7579
  version: "0.3.3",
7057
7580
  names: [
@@ -7077,7 +7600,7 @@ const HOME_EXPORTS = {
7077
7600
  ]
7078
7601
  },
7079
7602
  "@mark1russell7/cartography": {
7080
- version: "0.1.10",
7603
+ version: "0.2.1",
7081
7604
  names: [
7082
7605
  "ATLAS_OVERLAP_MM",
7083
7606
  "EDGE_TEXT_MM",
@@ -7898,7 +8421,7 @@ const HOME_EXPORTS = {
7898
8421
  ]
7899
8422
  },
7900
8423
  "@mark1russell7/conventions": {
7901
- version: "0.57.3",
8424
+ version: "0.58.0",
7902
8425
  names: [
7903
8426
  "ACTIONS_COMMIT",
7904
8427
  "CONSOLE_LAST_DAY",
@@ -7948,12 +8471,14 @@ const HOME_EXPORTS = {
7948
8471
  "UNKNOWN_MATRIX_JOBS",
7949
8472
  "UNSHIPPED_FILES",
7950
8473
  "USAGE",
8474
+ "addReleaseMode",
7951
8475
  "addSummaryJob",
7952
8476
  "annotations",
7953
8477
  "apiReportScript",
7954
8478
  "authorOf",
7955
8479
  "blockHash",
7956
8480
  "calledJobs",
8481
+ "callsReleaseBuild",
7957
8482
  "callsSharedCi",
7958
8483
  "changelogSection",
7959
8484
  "cleanPath",
@@ -7984,6 +8509,7 @@ const HOME_EXPORTS = {
7984
8509
  "groupParts",
7985
8510
  "hasFile",
7986
8511
  "hasImportMetaMain",
8512
+ "hasReleaseMode",
7987
8513
  "hasSummaryJob",
7988
8514
  "hasTests",
7989
8515
  "hiddenFailures",
@@ -8072,6 +8598,7 @@ const HOME_EXPORTS = {
8072
8598
  "readOverlay",
8073
8599
  "readWorkflow",
8074
8600
  "releaseFiles",
8601
+ "releaseModeRule",
8075
8602
  "releaseNotes",
8076
8603
  "replaceLine",
8077
8604
  "repoKeyer",
@@ -8167,7 +8694,7 @@ const HOME_EXPORTS = {
8167
8694
  ]
8168
8695
  },
8169
8696
  "@mark1russell7/desktop": {
8170
- version: "0.1.6",
8697
+ version: "0.1.7",
8171
8698
  names: [
8172
8699
  "CONTENT_SECURITY_POLICY",
8173
8700
  "NET_ERRORS",
@@ -8265,7 +8792,7 @@ const HOME_EXPORTS = {
8265
8792
  ]
8266
8793
  },
8267
8794
  "@mark1russell7/files": {
8268
- version: "0.0.8",
8795
+ version: "0.0.9",
8269
8796
  names: [
8270
8797
  "ARCHIVE_ERROR_KINDS",
8271
8798
  "ArchiveEntry",
@@ -8273,9 +8800,16 @@ const HOME_EXPORTS = {
8273
8800
  "ArchiveErrorKind",
8274
8801
  "ArchiveLimits",
8275
8802
  "ArchiveResult",
8803
+ "ArchiveStreamError",
8276
8804
  "DEFAULT_ARCHIVE_LIMITS",
8805
+ "DEFAULT_ZIP_STREAM_LIMITS",
8277
8806
  "GlobOptions",
8278
8807
  "SKIPPED_FOLDERS",
8808
+ "ZipEntryInfo",
8809
+ "ZipListResult",
8810
+ "ZipMissingEntry",
8811
+ "ZipStreamLimits",
8812
+ "ZipStreamResult",
8279
8813
  "ZipWriteEntry",
8280
8814
  "crc32",
8281
8815
  "expandHome",
@@ -8288,17 +8822,19 @@ const HOME_EXPORTS = {
8288
8822
  "globToRegExp",
8289
8823
  "isGlob",
8290
8824
  "isInside",
8825
+ "listZipEntries",
8291
8826
  "matchesGlob",
8292
8827
  "readZipEntries",
8293
8828
  "resolvePath",
8294
8829
  "samePath",
8830
+ "streamZipEntry",
8295
8831
  "toPosix",
8296
8832
  "walk",
8297
8833
  "writeZipEntries"
8298
8834
  ]
8299
8835
  },
8300
8836
  "@mark1russell7/geo": {
8301
- version: "0.5.23",
8837
+ version: "0.5.25",
8302
8838
  names: [
8303
8839
  "ADMIN1",
8304
8840
  "ADMIN1_SOURCES",
@@ -8308,6 +8844,7 @@ const HOME_EXPORTS = {
8308
8844
  "DEFAULT_GEOHASH_PRECISION",
8309
8845
  "DEFAULT_MAX_BUFFER_CELLS",
8310
8846
  "DEFAULT_MAX_GEOHASH_CELLS",
8847
+ "DEFAULT_REFRACTION",
8311
8848
  "DRIVE",
8312
8849
  "DbfField",
8313
8850
  "DbfHeader",
@@ -8399,6 +8936,7 @@ const HOME_EXPORTS = {
8399
8936
  "lambertConformalConic",
8400
8937
  "latLon",
8401
8938
  "lengthNearLines",
8939
+ "lineOfSight",
8402
8940
  "lineReference",
8403
8941
  "locatePoint",
8404
8942
  "nearestNode",
@@ -8439,11 +8977,12 @@ const HOME_EXPORTS = {
8439
8977
  "toUnitVector",
8440
8978
  "transverseMercator",
8441
8979
  "usState",
8980
+ "viewshed",
8442
8981
  "wayAccess"
8443
8982
  ]
8444
8983
  },
8445
8984
  "@mark1russell7/guidebook": {
8446
- version: "0.9.0",
8985
+ version: "0.11.1",
8447
8986
  names: [
8448
8987
  "DAY_MS",
8449
8988
  "FINDING_CODES",
@@ -8469,7 +9008,7 @@ const HOME_EXPORTS = {
8469
9008
  ]
8470
9009
  },
8471
9010
  "@mark1russell7/guidebook-library": {
8472
- version: "0.7.1",
9011
+ version: "0.10.1",
8473
9012
  names: [
8474
9013
  "ANSWER_INSTRUCTION",
8475
9014
  "BANDWIDTH_LAW",
@@ -8482,6 +9021,7 @@ const HOME_EXPORTS = {
8482
9021
  "MODEL_FORMATS",
8483
9022
  "NO_ANSWER",
8484
9023
  "RELEASE_CODES",
9024
+ "ROOFLINE_LAW",
8485
9025
  "answerPrompt",
8486
9026
  "bytesOf",
8487
9027
  "checkAnswer",
@@ -11161,7 +11701,7 @@ const HOME_EXPORTS = {
11161
11701
  ]
11162
11702
  },
11163
11703
  "@mark1russell7/market": {
11164
- version: "0.12.0",
11704
+ version: "0.12.1",
11165
11705
  names: [
11166
11706
  "AVAILABILITIES",
11167
11707
  "BOARD_FORMAT",
@@ -11279,7 +11819,7 @@ const HOME_EXPORTS = {
11279
11819
  ]
11280
11820
  },
11281
11821
  "@mark1russell7/market-sources": {
11282
- version: "0.6.9",
11822
+ version: "0.6.11",
11283
11823
  names: [
11284
11824
  "AZURE_API_VERSION",
11285
11825
  "AZURE_FILTER_FIELDS",
@@ -11355,6 +11895,9 @@ const HOME_EXPORTS = {
11355
11895
  "PLAN_PAGE_LIMIT",
11356
11896
  "PLAN_PRICING_SPEC",
11357
11897
  "PLAN_PROVIDERS",
11898
+ "REGION_ALIASES",
11899
+ "REGION_POINTS_SOURCES",
11900
+ "REGION_POINT_TABLE",
11358
11901
  "SECRET_MARK",
11359
11902
  "SOURCE_TERMS",
11360
11903
  "VULTR_PLANS",
@@ -11378,9 +11921,11 @@ const HOME_EXPORTS = {
11378
11921
  "createKrogerClient",
11379
11922
  "createKrogerLocationClient",
11380
11923
  "createPlanClient",
11924
+ "divisionsOf",
11381
11925
  "ebayCondition",
11382
11926
  "isAzurePricesUrl",
11383
11927
  "krogerGtin",
11928
+ "linodePlace",
11384
11929
  "parseAzureRegionsPage",
11385
11930
  "parseAzureRetailPricePages",
11386
11931
  "parseAzureRetailPrices",
@@ -11393,16 +11938,21 @@ const HOME_EXPORTS = {
11393
11938
  "parseDigiKeyProductDetails",
11394
11939
  "parseEbayItem",
11395
11940
  "parseEbaySearch",
11941
+ "parseGeoNamesCities",
11396
11942
  "parseKrogerLocation",
11397
11943
  "parseKrogerLocations",
11398
11944
  "parseKrogerProduct",
11399
11945
  "parseKrogerProducts",
11400
11946
  "parsePlanLists",
11401
11947
  "parsePlanProvider",
11948
+ "placeKey",
11949
+ "placeRegions",
11402
11950
  "planListUrl",
11403
11951
  "planNextPage",
11404
11952
  "planProviderSchema",
11405
- "redact"
11953
+ "redact",
11954
+ "regionPoint",
11955
+ "regionPointsDataText"
11406
11956
  ]
11407
11957
  },
11408
11958
  "@mark1russell7/netdiag": {
@@ -12495,7 +13045,7 @@ const HOME_EXPORTS = {
12495
13045
  ]
12496
13046
  },
12497
13047
  "@mark1russell7/rigor-bench": {
12498
- version: "0.3.16",
13048
+ version: "0.3.22",
12499
13049
  names: [
12500
13050
  "ArmsFixtures",
12501
13051
  "BANDWIDTH_FORMAT",
@@ -12511,6 +13061,10 @@ const HOME_EXPORTS = {
12511
13061
  "CEILING_ONLY",
12512
13062
  "CHILD_SOURCES",
12513
13063
  "CODE_STAMP_READ_WORDS",
13064
+ "COMPUTE_FORMAT",
13065
+ "COMPUTE_LANE_SOURCE",
13066
+ "COMPUTE_SIMD_LANE_SOURCE",
13067
+ "COMPUTE_SIMD_WASM",
12514
13068
  "CaseArm",
12515
13069
  "CaseOrder",
12516
13070
  "CaseProgress",
@@ -12525,6 +13079,9 @@ const HOME_EXPORTS = {
12525
13079
  "CodeStampEngines",
12526
13080
  "CodeStampOptions",
12527
13081
  "CodeStampParts",
13082
+ "ComputeLevel",
13083
+ "ComputeOptions",
13084
+ "ComputeRecord",
12528
13085
  "DEFAULT_OVERRUNS",
12529
13086
  "DEFAULT_POLL_MS",
12530
13087
  "EngineClosure",
@@ -12617,6 +13174,7 @@ const HOME_EXPORTS = {
12617
13174
  "childRecords",
12618
13175
  "childTimes",
12619
13176
  "codeStamp",
13177
+ "computeLevel",
12620
13178
  "configStamp",
12621
13179
  "containerArgv",
12622
13180
  "containerStart",
@@ -12654,11 +13212,13 @@ const HOME_EXPORTS = {
12654
13212
  "jointClaim",
12655
13213
  "ladderVerdict",
12656
13214
  "laneOver",
13215
+ "laneRounds",
12657
13216
  "limitChanges",
12658
13217
  "limitOnModel",
12659
13218
  "limitVerdict",
12660
13219
  "lockClosure",
12661
13220
  "measureBandwidth",
13221
+ "measureCompute",
12662
13222
  "memoryPeak",
12663
13223
  "mergeCaseModules",
12664
13224
  "messageQueue",
@@ -12693,6 +13253,7 @@ const HOME_EXPORTS = {
12693
13253
  "repoCommit",
12694
13254
  "resultRows",
12695
13255
  "resultVerdict",
13256
+ "roundRates",
12696
13257
  "roundSlope",
12697
13258
  "runCost",
12698
13259
  "runLimit",
@@ -12829,7 +13390,7 @@ const HOME_EXPORTS = {
12829
13390
  ]
12830
13391
  },
12831
13392
  "@mark1russell7/rigor-mutation": {
12832
- version: "0.2.20",
13393
+ version: "0.2.24",
12833
13394
  names: [
12834
13395
  "DRY_RUN_TIMEOUT_MINUTES",
12835
13396
  "HELP",
@@ -12909,7 +13470,7 @@ const HOME_EXPORTS = {
12909
13470
  ]
12910
13471
  },
12911
13472
  "@mark1russell7/rigor-statistics": {
12912
- version: "0.2.34",
13473
+ version: "0.2.36",
12913
13474
  names: [
12914
13475
  "BRADLEY_TERRY_DENSE_LIMIT",
12915
13476
  "DISPERSION_MAX_PARTITIONS",
@@ -12983,6 +13544,7 @@ const HOME_EXPORTS = {
12983
13544
  "fitGammaRates",
12984
13545
  "fitRatings",
12985
13546
  "fitResponse",
13547
+ "fitRoofline",
12986
13548
  "fitSeparable",
12987
13549
  "fitTwoLevelGammaRates",
12988
13550
  "fixedAnswerValue",
@@ -13034,6 +13596,7 @@ const HOME_EXPORTS = {
13034
13596
  "pooledRate",
13035
13597
  "pooledRateUpper",
13036
13598
  "predictResponse",
13599
+ "predictionInterval",
13037
13600
  "proportionMean",
13038
13601
  "quantile",
13039
13602
  "quantileInterval",
@@ -13048,6 +13611,7 @@ const HOME_EXPORTS = {
13048
13611
  "reliabilityTest",
13049
13612
  "responseCells",
13050
13613
  "ridgeSolve",
13614
+ "rooflineAt",
13051
13615
  "runningMean",
13052
13616
  "runningOf",
13053
13617
  "runningSd",
@@ -13996,7 +14560,7 @@ const HOME_EXPORTS = {
13996
14560
  ]
13997
14561
  },
13998
14562
  "@mark1russell7/site-pages": {
13999
- version: "0.8.8",
14563
+ version: "0.8.10",
14000
14564
  names: [
14001
14565
  "AttributeValue",
14002
14566
  "BASE_CSS",
@@ -14279,7 +14843,7 @@ const HOME_EXPORTS = {
14279
14843
  ]
14280
14844
  },
14281
14845
  "@mark1russell7/stack-endurance": {
14282
- version: "0.8.16",
14846
+ version: "0.8.19",
14283
14847
  names: [
14284
14848
  "BandValues",
14285
14849
  "BestOptions",
@@ -14301,6 +14865,7 @@ const HOME_EXPORTS = {
14301
14865
  "EnduranceParse",
14302
14866
  "Gift",
14303
14867
  "Harvest",
14868
+ "HarvestLot",
14304
14869
  "INDEPENDENT_MAX_WORK",
14305
14870
  "INDEPENDENT_TOLERANCE",
14306
14871
  "IsoDate",
@@ -14315,6 +14880,7 @@ const HOME_EXPORTS = {
14315
14880
  "SEASON_HORIZON_DAYS",
14316
14881
  "SHARES",
14317
14882
  "Season",
14883
+ "SeasonSupply",
14318
14884
  "Share",
14319
14885
  "Shortfall",
14320
14886
  "ShortfallDays",
@@ -14350,6 +14916,7 @@ const HOME_EXPORTS = {
14350
14916
  "longestStop",
14351
14917
  "minimalStops",
14352
14918
  "parseEndurance",
14919
+ "seasonSupply",
14353
14920
  "sowDays",
14354
14921
  "stopCurves",
14355
14922
  "storeAmounts",
@@ -15149,7 +15716,7 @@ const HOME_EXPORTS = {
15149
15716
  ]
15150
15717
  },
15151
15718
  "@mark1russell7/ste-lint": {
15152
- version: "0.8.0",
15719
+ version: "0.9.0",
15153
15720
  names: [
15154
15721
  "CONFIG_FILE_NAME",
15155
15722
  "ConfigError",
@@ -15424,7 +15991,7 @@ const HOME_EXPORTS = {
15424
15991
  names: ["template"]
15425
15992
  },
15426
15993
  "@mark1russell7/text": {
15427
- version: "0.0.25",
15994
+ version: "0.0.28",
15428
15995
  names: [
15429
15996
  "BM25_FORMAT",
15430
15997
  "Bm25Index",
@@ -15432,12 +15999,16 @@ const HOME_EXPORTS = {
15432
15999
  "Bm25Score",
15433
16000
  "CONTEXT_SHAPES",
15434
16001
  "ColumnAlign",
16002
+ "DEFAULT_MAX_LINE_LENGTH",
15435
16003
  "DocumentScore",
16004
+ "ENGLISH_STOP_WORDS",
16005
+ "ERROR_CHAIN_DEPTH",
15436
16006
  "HTML_SKIP",
15437
16007
  "HtmlElement",
15438
16008
  "HtmlScan",
15439
16009
  "HtmlScanOptions",
15440
16010
  "IdfForm",
16011
+ "LineOptions",
15441
16012
  "ListOptions",
15442
16013
  "PadOptions",
15443
16014
  "PassageSpan",
@@ -15466,6 +16037,7 @@ const HOME_EXPORTS = {
15466
16037
  "countOf",
15467
16038
  "createPrinter",
15468
16039
  "decodeReferences",
16040
+ "errorChain",
15469
16041
  "errorMessage",
15470
16042
  "escapeAttribute",
15471
16043
  "escapeHtml",
@@ -15491,11 +16063,13 @@ const HOME_EXPORTS = {
15491
16063
  "rankerOf",
15492
16064
  "redactSecretShapes",
15493
16065
  "redactSecrets",
16066
+ "sStem",
15494
16067
  "scanHtml",
15495
16068
  "searchKey",
15496
16069
  "searchWords",
15497
16070
  "termVector",
15498
16071
  "textLength",
16072
+ "textLines",
15499
16073
  "truncate",
15500
16074
  "wordSearch"
15501
16075
  ]
@@ -15909,7 +16483,7 @@ const HOME_EXPORTS = {
15909
16483
  ]
15910
16484
  },
15911
16485
  "@mark1russell7/visuals": {
15912
- version: "0.5.1",
16486
+ version: "0.5.2",
15913
16487
  names: [
15914
16488
  "ARROW_SPREAD",
15915
16489
  "BAR_HEIGHT",
@@ -15934,6 +16508,10 @@ const HOME_EXPORTS = {
15934
16508
  "LABEL_EDGE",
15935
16509
  "LABEL_GAP",
15936
16510
  "LABEL_SIDES",
16511
+ "LEADER_GAP",
16512
+ "LEADER_REACH",
16513
+ "LEADER_SIDES",
16514
+ "LEADER_TRIES",
15937
16515
  "LEVELS",
15938
16516
  "LEVEL_SHAPES",
15939
16517
  "LIGHT_PICTURE_THEME",
@@ -16018,6 +16596,8 @@ const HOME_EXPORTS = {
16018
16596
  "keyAction",
16019
16597
  "labelBox",
16020
16598
  "labelPlaces",
16599
+ "leaderLine",
16600
+ "leaderPlaces",
16021
16601
  "levelRank",
16022
16602
  "levelShape",
16023
16603
  "loadImage",
@@ -16032,6 +16612,7 @@ const HOME_EXPORTS = {
16032
16612
  "pinchView",
16033
16613
  "placeBetween",
16034
16614
  "placeLabels",
16615
+ "placeLeader",
16035
16616
  "plainLooks",
16036
16617
  "pointRadius",
16037
16618
  "pointerCancel",
@@ -16089,7 +16670,7 @@ const HOME_EXPORTS = {
16089
16670
  ]
16090
16671
  },
16091
16672
  "@procedures/browser": {
16092
- version: "0.68.17",
16673
+ version: "0.68.18",
16093
16674
  names: [
16094
16675
  "BOOKMARK_FILES",
16095
16676
  "BROWSER_ENV",
@@ -16148,7 +16729,7 @@ const HOME_EXPORTS = {
16148
16729
  ]
16149
16730
  },
16150
16731
  "@procedures/client": {
16151
- version: "0.68.17",
16732
+ version: "0.68.18",
16152
16733
  names: [
16153
16734
  "BatchExecutor",
16154
16735
  "BodyError",
@@ -16616,7 +17197,7 @@ const HOME_EXPORTS = {
16616
17197
  ]
16617
17198
  },
16618
17199
  "@procedures/collections": {
16619
- version: "0.68.17",
17200
+ version: "0.68.18",
16620
17201
  names: [
16621
17202
  "ArrayDeque",
16622
17203
  "ArrayList",
@@ -16830,7 +17411,7 @@ const HOME_EXPORTS = {
16830
17411
  ]
16831
17412
  },
16832
17413
  "@procedures/compiler": {
16833
- version: "0.68.17",
17414
+ version: "0.68.18",
16834
17415
  names: [
16835
17416
  "API_OPERATION_FORMAT",
16836
17417
  "ApiAuth",
@@ -16959,7 +17540,7 @@ const HOME_EXPORTS = {
16959
17540
  ]
16960
17541
  },
16961
17542
  "@procedures/dag": {
16962
- version: "0.68.17",
17543
+ version: "0.68.18",
16963
17544
  names: [
16964
17545
  "DagTraverseInputSchema",
16965
17546
  "DagTraverseOutputSchema",
@@ -16987,7 +17568,7 @@ const HOME_EXPORTS = {
16987
17568
  ]
16988
17569
  },
16989
17570
  "@procedures/env": {
16990
- version: "0.68.17",
17571
+ version: "0.68.18",
16991
17572
  names: [
16992
17573
  "DEFAULT_ENV_SETTINGS",
16993
17574
  "DEFAULT_SECRET_PATTERNS",
@@ -17011,7 +17592,7 @@ const HOME_EXPORTS = {
17011
17592
  ]
17012
17593
  },
17013
17594
  "@procedures/fs": {
17014
- version: "0.68.17",
17595
+ version: "0.68.18",
17015
17596
  names: [
17016
17597
  "ConfinedFs",
17017
17598
  "FsModuleOptions",
@@ -17060,7 +17641,7 @@ const HOME_EXPORTS = {
17060
17641
  ]
17061
17642
  },
17062
17643
  "@procedures/gh": {
17063
- version: "0.68.17",
17644
+ version: "0.68.18",
17064
17645
  names: [
17065
17646
  "BILLING_PERMISSIONS",
17066
17647
  "BillingAccount",
@@ -17143,7 +17724,7 @@ const HOME_EXPORTS = {
17143
17724
  ]
17144
17725
  },
17145
17726
  "@procedures/git": {
17146
- version: "0.68.17",
17727
+ version: "0.68.18",
17147
17728
  names: [
17148
17729
  "GitError",
17149
17730
  "classifyStatus",
@@ -17200,7 +17781,7 @@ const HOME_EXPORTS = {
17200
17781
  ]
17201
17782
  },
17202
17783
  "@procedures/http": {
17203
- version: "0.68.17",
17784
+ version: "0.68.18",
17204
17785
  names: [
17205
17786
  "DEFAULT_HOST_POLICY",
17206
17787
  "DEFAULT_ITEM_BYTES",
@@ -17251,7 +17832,7 @@ const HOME_EXPORTS = {
17251
17832
  ]
17252
17833
  },
17253
17834
  "@procedures/json": {
17254
- version: "0.68.17",
17835
+ version: "0.68.18",
17255
17836
  names: [
17256
17837
  "CsvParseInput",
17257
17838
  "CsvParseOutput",
@@ -17309,7 +17890,7 @@ const HOME_EXPORTS = {
17309
17890
  ]
17310
17891
  },
17311
17892
  "@procedures/llm": {
17312
- version: "0.68.17",
17893
+ version: "0.68.18",
17313
17894
  names: [
17314
17895
  "ANTHROPIC_VERSION",
17315
17896
  "DEFAULT_API_KEY_ENV",
@@ -17356,13 +17937,14 @@ const HOME_EXPORTS = {
17356
17937
  "llmStream",
17357
17938
  "llmStructured",
17358
17939
  "parseAnswer",
17940
+ "parseLlamaBench",
17359
17941
  "registerLlmProcedures",
17360
17942
  "retryAfterMs",
17361
17943
  "toolNameOf"
17362
17944
  ]
17363
17945
  },
17364
17946
  "@procedures/mcp-server": {
17365
- version: "0.68.17",
17947
+ version: "0.68.18",
17366
17948
  names: [
17367
17949
  "DEFAULT_ELICIT_TIMEOUT_MS",
17368
17950
  "DEFAULT_SERVE_BUNDLE",
@@ -17403,7 +17985,7 @@ const HOME_EXPORTS = {
17403
17985
  ]
17404
17986
  },
17405
17987
  "@procedures/notify": {
17406
- version: "0.68.17",
17988
+ version: "0.68.18",
17407
17989
  names: [
17408
17990
  "FetchPost",
17409
17991
  "NOTIFY_TOKEN_ENV",
@@ -17598,7 +18180,7 @@ const HOME_EXPORTS = {
17598
18180
  ]
17599
18181
  },
17600
18182
  "@procedures/npm": {
17601
- version: "0.68.17",
18183
+ version: "0.68.18",
17602
18184
  names: [
17603
18185
  "ACCEPT_ABBREVIATED",
17604
18186
  "DOWNLOADS_BULK_LIMIT",
@@ -17678,7 +18260,7 @@ const HOME_EXPORTS = {
17678
18260
  ]
17679
18261
  },
17680
18262
  "@procedures/peer": {
17681
- version: "0.68.17",
18263
+ version: "0.68.18",
17682
18264
  names: [
17683
18265
  "DEFAULT_STATIC_HEADERS",
17684
18266
  "HOST_PROBE_PREFIX",
@@ -17732,7 +18314,7 @@ const HOME_EXPORTS = {
17732
18314
  ]
17733
18315
  },
17734
18316
  "@procedures/shell": {
17735
- version: "0.68.17",
18317
+ version: "0.68.18",
17736
18318
  names: [
17737
18319
  "CliToolError",
17738
18320
  "DEFAULT_MAX_LINE_LENGTH",
@@ -17944,15 +18526,17 @@ const HOME_EXPORTS = {
17944
18526
  ]
17945
18527
  },
17946
18528
  "polite-crawler": {
17947
- version: "0.7.14",
18529
+ version: "0.8.1",
17948
18530
  names: [
17949
18531
  "ALLOW_ALL",
18532
+ "API_MAX_BYTES",
17950
18533
  "API_TIMEOUT_MS",
17951
18534
  "AiInput",
17952
18535
  "Answer",
17953
18536
  "ApiError",
17954
18537
  "ApiScheduler",
17955
18538
  "BOT_PAGE",
18539
+ "BodyLimitError",
17956
18540
  "CAPTURE_SCHEMA",
17957
18541
  "CHUNK_LIMITS",
17958
18542
  "CRAWL_LIMITS",
@@ -18224,7 +18808,7 @@ const HOME_EXPORTS = {
18224
18808
  ]
18225
18809
  },
18226
18810
  "polite-crawler-mcp": {
18227
- version: "0.7.14",
18811
+ version: "0.8.1",
18228
18812
  names: [
18229
18813
  "INSTRUCTIONS",
18230
18814
  "MCP_HTTP_DEFAULTS",
@@ -18500,7 +19084,7 @@ const homeModule = {
18500
19084
  /** The shape tokens of the bodies of the exported functions of each home package, with the version that the functions come from. A function that the root entry does not export gives its entry in `from`. */
18501
19085
  const HOME_SHAPES = {
18502
19086
  "@mark1russell7/alerts": {
18503
- version: "0.8.1",
19087
+ version: "0.8.2",
18504
19088
  functions: [
18505
19089
  {
18506
19090
  name: "acknowledgmentOf",
@@ -18612,6 +19196,51 @@ const HOME_SHAPES = {
18612
19196
  ")"
18613
19197
  ]
18614
19198
  },
19199
+ {
19200
+ name: "agreedAt",
19201
+ tokens: [
19202
+ "const",
19203
+ "$id",
19204
+ "=",
19205
+ "$id",
19206
+ ".",
19207
+ "$id",
19208
+ "if",
19209
+ "(",
19210
+ "$id",
19211
+ "===",
19212
+ "void",
19213
+ "$num",
19214
+ "||",
19215
+ "$id",
19216
+ "(",
19217
+ "$id",
19218
+ ")",
19219
+ ".",
19220
+ "$id",
19221
+ ">",
19222
+ "$num",
19223
+ ")",
19224
+ "return",
19225
+ "$bool",
19226
+ "const",
19227
+ "$id",
19228
+ "=",
19229
+ "$id",
19230
+ "(",
19231
+ "$id",
19232
+ ")",
19233
+ "return",
19234
+ "$id",
19235
+ "!==",
19236
+ "void",
19237
+ "$num",
19238
+ "&&",
19239
+ "$id",
19240
+ "<=",
19241
+ "$id"
19242
+ ]
19243
+ },
18615
19244
  {
18616
19245
  name: "allRetirements",
18617
19246
  tokens: [
@@ -21475,6 +22104,39 @@ const HOME_SHAPES = {
21475
22104
  "$id"
21476
22105
  ]
21477
22106
  },
22107
+ {
22108
+ name: "reminderPolicy",
22109
+ tokens: [
22110
+ "$id",
22111
+ "(",
22112
+ "$id",
22113
+ ",",
22114
+ "$id",
22115
+ ",",
22116
+ "{",
22117
+ "$id",
22118
+ ":",
22119
+ "$str",
22120
+ ",",
22121
+ "$id",
22122
+ ":",
22123
+ "[",
22124
+ "{",
22125
+ "$id",
22126
+ ":",
22127
+ "$id",
22128
+ ",",
22129
+ "$id",
22130
+ ":",
22131
+ "$id",
22132
+ ".",
22133
+ "$id",
22134
+ "}",
22135
+ "]",
22136
+ "}",
22137
+ ")"
22138
+ ]
22139
+ },
21478
22140
  {
21479
22141
  name: "reportId",
21480
22142
  tokens: [
@@ -23070,7 +23732,7 @@ const HOME_SHAPES = {
23070
23732
  ]
23071
23733
  },
23072
23734
  "@mark1russell7/api-report": {
23073
- version: "0.5.26",
23735
+ version: "0.5.27",
23074
23736
  functions: [{
23075
23737
  name: "packageModel",
23076
23738
  tokens: [
@@ -23153,6 +23815,176 @@ const HOME_SHAPES = {
23153
23815
  ]
23154
23816
  }]
23155
23817
  },
23818
+ "@mark1russell7/backup": {
23819
+ version: "0.1.0",
23820
+ functions: [
23821
+ {
23822
+ name: "assertStoreKey",
23823
+ tokens: [
23824
+ "if",
23825
+ "(",
23826
+ "!",
23827
+ "$id",
23828
+ "(",
23829
+ "$id",
23830
+ ")",
23831
+ ")",
23832
+ "throw",
23833
+ "new",
23834
+ "$id",
23835
+ "(",
23836
+ "$str",
23837
+ ",",
23838
+ "`",
23839
+ "${",
23840
+ "$id",
23841
+ ".",
23842
+ "$id",
23843
+ "(",
23844
+ "$id",
23845
+ ")",
23846
+ "}",
23847
+ "`",
23848
+ ")"
23849
+ ]
23850
+ },
23851
+ {
23852
+ name: "chunkIds",
23853
+ tokens: [
23854
+ "const",
23855
+ "$id",
23856
+ "=",
23857
+ "new",
23858
+ "$id",
23859
+ "(",
23860
+ ")",
23861
+ "for",
23862
+ "(",
23863
+ "const",
23864
+ "$id",
23865
+ "of",
23866
+ "$id",
23867
+ ")",
23868
+ "for",
23869
+ "(",
23870
+ "const",
23871
+ "$id",
23872
+ "of",
23873
+ "$id",
23874
+ ".",
23875
+ "$id",
23876
+ ")",
23877
+ "for",
23878
+ "(",
23879
+ "const",
23880
+ "$id",
23881
+ "of",
23882
+ "$id",
23883
+ ".",
23884
+ "$id",
23885
+ ")",
23886
+ "$id",
23887
+ ".",
23888
+ "$id",
23889
+ "(",
23890
+ "$id",
23891
+ ".",
23892
+ "$id",
23893
+ ")",
23894
+ "return",
23895
+ "$id"
23896
+ ]
23897
+ },
23898
+ {
23899
+ name: "isStoreKey",
23900
+ tokens: [
23901
+ "if",
23902
+ "(",
23903
+ "typeof",
23904
+ "$id",
23905
+ "!==",
23906
+ "$str",
23907
+ "||",
23908
+ "$id",
23909
+ ".",
23910
+ "$id",
23911
+ "===",
23912
+ "$num",
23913
+ "||",
23914
+ "$id",
23915
+ ".",
23916
+ "$id",
23917
+ ">",
23918
+ "$num",
23919
+ ")",
23920
+ "return",
23921
+ "$bool",
23922
+ "return",
23923
+ "$id",
23924
+ ".",
23925
+ "$id",
23926
+ "(",
23927
+ "$str",
23928
+ ")",
23929
+ ".",
23930
+ "$id",
23931
+ "(",
23932
+ "(",
23933
+ "$id",
23934
+ ")",
23935
+ "=>",
23936
+ "$id",
23937
+ ".",
23938
+ "$id",
23939
+ "(",
23940
+ "$id",
23941
+ ")",
23942
+ "&&",
23943
+ "$id",
23944
+ "!==",
23945
+ "$str",
23946
+ "&&",
23947
+ "$id",
23948
+ "!==",
23949
+ "$str",
23950
+ ")"
23951
+ ]
23952
+ },
23953
+ {
23954
+ name: "parseManifest",
23955
+ tokens: [
23956
+ "const",
23957
+ "$id",
23958
+ "=",
23959
+ "$id",
23960
+ "(",
23961
+ "$id",
23962
+ ")",
23963
+ "if",
23964
+ "(",
23965
+ "$id",
23966
+ "!==",
23967
+ "void",
23968
+ "$num",
23969
+ ")",
23970
+ "throw",
23971
+ "new",
23972
+ "$id",
23973
+ "(",
23974
+ "$str",
23975
+ ",",
23976
+ "`",
23977
+ "${",
23978
+ "$id",
23979
+ "}",
23980
+ "`",
23981
+ ")",
23982
+ "return",
23983
+ "$id"
23984
+ ]
23985
+ }
23986
+ ]
23987
+ },
23156
23988
  "@mark1russell7/boundaries": {
23157
23989
  version: "0.3.3",
23158
23990
  functions: [{
@@ -23261,7 +24093,7 @@ const HOME_SHAPES = {
23261
24093
  }]
23262
24094
  },
23263
24095
  "@mark1russell7/cartography": {
23264
- version: "0.1.10",
24096
+ version: "0.2.1",
23265
24097
  functions: [
23266
24098
  {
23267
24099
  name: "atlasPages",
@@ -28246,7 +29078,7 @@ const HOME_SHAPES = {
28246
29078
  ]
28247
29079
  },
28248
29080
  "@mark1russell7/conventions": {
28249
- version: "0.57.3",
29081
+ version: "0.58.0",
28250
29082
  functions: [
28251
29083
  {
28252
29084
  name: "blockHash",
@@ -29882,7 +30714,7 @@ const HOME_SHAPES = {
29882
30714
  ]
29883
30715
  },
29884
30716
  "@mark1russell7/desktop": {
29885
- version: "0.1.6",
30717
+ version: "0.1.7",
29886
30718
  functions: [
29887
30719
  {
29888
30720
  name: "allowsNavigation",
@@ -30634,59 +31466,8 @@ const HOME_SHAPES = {
30634
31466
  ]
30635
31467
  },
30636
31468
  "@mark1russell7/files": {
30637
- version: "0.0.8",
31469
+ version: "0.0.9",
30638
31470
  functions: [
30639
- {
30640
- name: "crc32",
30641
- from: "@mark1russell7/files/archive",
30642
- tokens: [
30643
- "let",
30644
- "$id",
30645
- "=",
30646
- "$num",
30647
- "for",
30648
- "(",
30649
- "let",
30650
- "$id",
30651
- "=",
30652
- "$num",
30653
- "$id",
30654
- "<",
30655
- "$id",
30656
- ".",
30657
- "$id",
30658
- "$id",
30659
- "++",
30660
- ")",
30661
- "$id",
30662
- "=",
30663
- "$id",
30664
- "[",
30665
- "(",
30666
- "$id",
30667
- "^",
30668
- "$id",
30669
- "[",
30670
- "$id",
30671
- "]",
30672
- ")",
30673
- "&",
30674
- "$num",
30675
- "]",
30676
- "^",
30677
- "$id",
30678
- ">>>",
30679
- "$num",
30680
- "return",
30681
- "(",
30682
- "$id",
30683
- "^",
30684
- "$num",
30685
- ")",
30686
- ">>>",
30687
- "$num"
30688
- ]
30689
- },
30690
31471
  {
30691
31472
  name: "expandHome",
30692
31473
  tokens: [
@@ -30864,7 +31645,7 @@ const HOME_SHAPES = {
30864
31645
  ]
30865
31646
  },
30866
31647
  "@mark1russell7/geo": {
30867
- version: "0.5.23",
31648
+ version: "0.5.25",
30868
31649
  functions: [
30869
31650
  {
30870
31651
  name: "admin1OfIso3166",
@@ -31153,6 +31934,37 @@ const HOME_SHAPES = {
31153
31934
  "}"
31154
31935
  ]
31155
31936
  },
31937
+ {
31938
+ name: "lineOfSight",
31939
+ tokens: [
31940
+ "$id",
31941
+ "(",
31942
+ "$id",
31943
+ ",",
31944
+ "$str",
31945
+ ")",
31946
+ "$id",
31947
+ "(",
31948
+ "$id",
31949
+ ",",
31950
+ "$str",
31951
+ ")",
31952
+ "return",
31953
+ "$id",
31954
+ "(",
31955
+ "$id",
31956
+ "(",
31957
+ "$id",
31958
+ ",",
31959
+ "$id",
31960
+ ")",
31961
+ ",",
31962
+ "$id",
31963
+ ",",
31964
+ "$id",
31965
+ ")"
31966
+ ]
31967
+ },
31156
31968
  {
31157
31969
  name: "locatePoint",
31158
31970
  tokens: [
@@ -31451,7 +32263,7 @@ const HOME_SHAPES = {
31451
32263
  ]
31452
32264
  },
31453
32265
  "@mark1russell7/guidebook": {
31454
- version: "0.9.0",
32266
+ version: "0.11.1",
31455
32267
  functions: [
31456
32268
  {
31457
32269
  name: "gate",
@@ -31529,7 +32341,7 @@ const HOME_SHAPES = {
31529
32341
  ]
31530
32342
  },
31531
32343
  "@mark1russell7/guidebook-library": {
31532
- version: "0.7.1",
32344
+ version: "0.10.1",
31533
32345
  functions: [{
31534
32346
  name: "fitAgrees",
31535
32347
  tokens: [
@@ -31544,7 +32356,16 @@ const HOME_SHAPES = {
31544
32356
  ".",
31545
32357
  "$id",
31546
32358
  ",",
32359
+ "{",
32360
+ "...",
32361
+ "$id",
32362
+ ",",
32363
+ "$id",
32364
+ ":",
31547
32365
  "$id",
32366
+ ".",
32367
+ "$id",
32368
+ "}",
31548
32369
  ")",
31549
32370
  "return",
31550
32371
  "$id",
@@ -42593,7 +43414,7 @@ const HOME_SHAPES = {
42593
43414
  ]
42594
43415
  },
42595
43416
  "@mark1russell7/market": {
42596
- version: "0.12.0",
43417
+ version: "0.12.1",
42597
43418
  functions: [
42598
43419
  {
42599
43420
  name: "boardObservations",
@@ -42878,7 +43699,7 @@ const HOME_SHAPES = {
42878
43699
  ]
42879
43700
  },
42880
43701
  "@mark1russell7/market-sources": {
42881
- version: "0.6.9",
43702
+ version: "0.6.11",
42882
43703
  functions: [
42883
43704
  {
42884
43705
  name: "azureNextPage",
@@ -43012,6 +43833,39 @@ const HOME_SHAPES = {
43012
43833
  "$str"
43013
43834
  ]
43014
43835
  },
43836
+ {
43837
+ name: "placeKey",
43838
+ tokens: [
43839
+ "$id",
43840
+ ".",
43841
+ "$id",
43842
+ "(",
43843
+ "$str",
43844
+ ")",
43845
+ ".",
43846
+ "$id",
43847
+ "(",
43848
+ "$re",
43849
+ ",",
43850
+ "$str",
43851
+ ")",
43852
+ ".",
43853
+ "$id",
43854
+ "(",
43855
+ ")",
43856
+ ".",
43857
+ "$id",
43858
+ "(",
43859
+ "$re",
43860
+ ",",
43861
+ "$str",
43862
+ ")",
43863
+ ".",
43864
+ "$id",
43865
+ "(",
43866
+ ")"
43867
+ ]
43868
+ },
43015
43869
  {
43016
43870
  name: "redact",
43017
43871
  tokens: [
@@ -43052,6 +43906,49 @@ const HOME_SHAPES = {
43052
43906
  ":",
43053
43907
  "$id"
43054
43908
  ]
43909
+ },
43910
+ {
43911
+ name: "regionPoint",
43912
+ tokens: [
43913
+ "const",
43914
+ "$id",
43915
+ "=",
43916
+ "$id",
43917
+ "[",
43918
+ "`",
43919
+ "${",
43920
+ "$id",
43921
+ "}",
43922
+ "${",
43923
+ "$id",
43924
+ "}",
43925
+ "`",
43926
+ "]",
43927
+ "return",
43928
+ "$id",
43929
+ "===",
43930
+ "void",
43931
+ "$num",
43932
+ "?",
43933
+ "void",
43934
+ "$num",
43935
+ ":",
43936
+ "{",
43937
+ "$id",
43938
+ ":",
43939
+ "$id",
43940
+ "[",
43941
+ "$num",
43942
+ "]",
43943
+ ",",
43944
+ "$id",
43945
+ ":",
43946
+ "$id",
43947
+ "[",
43948
+ "$num",
43949
+ "]",
43950
+ "}"
43951
+ ]
43055
43952
  }
43056
43953
  ]
43057
43954
  },
@@ -47759,7 +48656,7 @@ const HOME_SHAPES = {
47759
48656
  ]
47760
48657
  },
47761
48658
  "@mark1russell7/rigor-bench": {
47762
- version: "0.3.16",
48659
+ version: "0.3.22",
47763
48660
  functions: [
47764
48661
  {
47765
48662
  name: "aaSpread",
@@ -48812,7 +49709,7 @@ const HOME_SHAPES = {
48812
49709
  ]
48813
49710
  },
48814
49711
  "@mark1russell7/rigor-mutation": {
48815
- version: "0.2.20",
49712
+ version: "0.2.24",
48816
49713
  functions: [
48817
49714
  {
48818
49715
  name: "dryRunOf",
@@ -49025,7 +49922,7 @@ const HOME_SHAPES = {
49025
49922
  }]
49026
49923
  },
49027
49924
  "@mark1russell7/rigor-statistics": {
49028
- version: "0.2.34",
49925
+ version: "0.2.36",
49029
49926
  functions: [
49030
49927
  {
49031
49928
  name: "bayesRisk",
@@ -49764,6 +50661,27 @@ const HOME_SHAPES = {
49764
50661
  ")"
49765
50662
  ]
49766
50663
  },
50664
+ {
50665
+ name: "rooflineAt",
50666
+ tokens: [
50667
+ "$id",
50668
+ ".",
50669
+ "$id",
50670
+ "(",
50671
+ "$id",
50672
+ ".",
50673
+ "$id",
50674
+ "*",
50675
+ "$id",
50676
+ ",",
50677
+ "$id",
50678
+ ".",
50679
+ "$id",
50680
+ "*",
50681
+ "$id",
50682
+ ")"
50683
+ ]
50684
+ },
49767
50685
  {
49768
50686
  name: "runningMean",
49769
50687
  tokens: [
@@ -52647,7 +53565,7 @@ const HOME_SHAPES = {
52647
53565
  ]
52648
53566
  },
52649
53567
  "@mark1russell7/site-pages": {
52650
- version: "0.8.8",
53568
+ version: "0.8.10",
52651
53569
  functions: [
52652
53570
  {
52653
53571
  name: "axisChoices",
@@ -54153,7 +55071,7 @@ const HOME_SHAPES = {
54153
55071
  ]
54154
55072
  },
54155
55073
  "@mark1russell7/stack-endurance": {
54156
- version: "0.8.16",
55074
+ version: "0.8.19",
54157
55075
  functions: [
54158
55076
  {
54159
55077
  name: "drawDemand",
@@ -55945,7 +56863,7 @@ const HOME_SHAPES = {
55945
56863
  ]
55946
56864
  },
55947
56865
  "@mark1russell7/ste-lint": {
55948
- version: "0.8.0",
56866
+ version: "0.9.0",
55949
56867
  functions: [{
55950
56868
  name: "extractCode",
55951
56869
  tokens: [
@@ -56661,7 +57579,7 @@ const HOME_SHAPES = {
56661
57579
  functions: []
56662
57580
  },
56663
57581
  "@mark1russell7/text": {
56664
- version: "0.0.25",
57582
+ version: "0.0.28",
56665
57583
  functions: [
56666
57584
  {
56667
57585
  name: "countOf",
@@ -58782,7 +59700,7 @@ const HOME_SHAPES = {
58782
59700
  }]
58783
59701
  },
58784
59702
  "@mark1russell7/visuals": {
58785
- version: "0.5.1",
59703
+ version: "0.5.2",
58786
59704
  functions: [
58787
59705
  {
58788
59706
  name: "aimAll",
@@ -60239,7 +61157,7 @@ const HOME_SHAPES = {
60239
61157
  ]
60240
61158
  },
60241
61159
  "@procedures/browser": {
60242
- version: "0.68.17",
61160
+ version: "0.68.18",
60243
61161
  functions: [
60244
61162
  {
60245
61163
  name: "pdfArgs",
@@ -60424,7 +61342,7 @@ const HOME_SHAPES = {
60424
61342
  ]
60425
61343
  },
60426
61344
  "@procedures/client": {
60427
- version: "0.68.17",
61345
+ version: "0.68.18",
60428
61346
  functions: [
60429
61347
  {
60430
61348
  name: "absorbTimeout",
@@ -64283,7 +65201,7 @@ const HOME_SHAPES = {
64283
65201
  ]
64284
65202
  },
64285
65203
  "@procedures/collections": {
64286
- version: "0.68.17",
65204
+ version: "0.68.18",
64287
65205
  functions: [
64288
65206
  {
64289
65207
  name: "contractVersionOf",
@@ -64468,7 +65386,7 @@ const HOME_SHAPES = {
64468
65386
  ]
64469
65387
  },
64470
65388
  "@procedures/compiler": {
64471
- version: "0.68.17",
65389
+ version: "0.68.18",
64472
65390
  functions: [
64473
65391
  {
64474
65392
  name: "bindScopes",
@@ -65149,7 +66067,7 @@ const HOME_SHAPES = {
65149
66067
  ]
65150
66068
  },
65151
66069
  "@procedures/dag": {
65152
- version: "0.68.17",
66070
+ version: "0.68.18",
65153
66071
  functions: [{
65154
66072
  name: "repositoryRoot",
65155
66073
  tokens: [
@@ -65204,11 +66122,11 @@ const HOME_SHAPES = {
65204
66122
  }]
65205
66123
  },
65206
66124
  "@procedures/env": {
65207
- version: "0.68.17",
66125
+ version: "0.68.18",
65208
66126
  functions: []
65209
66127
  },
65210
66128
  "@procedures/fs": {
65211
- version: "0.68.17",
66129
+ version: "0.68.18",
65212
66130
  functions: [
65213
66131
  {
65214
66132
  name: "exists",
@@ -65561,7 +66479,7 @@ const HOME_SHAPES = {
65561
66479
  ]
65562
66480
  },
65563
66481
  "@procedures/gh": {
65564
- version: "0.68.17",
66482
+ version: "0.68.18",
65565
66483
  functions: [
65566
66484
  {
65567
66485
  name: "netAmountByProduct",
@@ -65689,7 +66607,7 @@ const HOME_SHAPES = {
65689
66607
  ]
65690
66608
  },
65691
66609
  "@procedures/git": {
65692
- version: "0.68.17",
66610
+ version: "0.68.18",
65693
66611
  functions: [
65694
66612
  {
65695
66613
  name: "gitMergeAbort",
@@ -65868,7 +66786,7 @@ const HOME_SHAPES = {
65868
66786
  ]
65869
66787
  },
65870
66788
  "@procedures/http": {
65871
- version: "0.68.17",
66789
+ version: "0.68.18",
65872
66790
  functions: [
65873
66791
  {
65874
66792
  name: "createHostPolicy",
@@ -66131,7 +67049,7 @@ const HOME_SHAPES = {
66131
67049
  ]
66132
67050
  },
66133
67051
  "@procedures/json": {
66134
- version: "0.68.17",
67052
+ version: "0.68.18",
66135
67053
  functions: [
66136
67054
  {
66137
67055
  name: "csvParse",
@@ -66468,11 +67386,11 @@ const HOME_SHAPES = {
66468
67386
  ]
66469
67387
  },
66470
67388
  "@procedures/llm": {
66471
- version: "0.68.17",
67389
+ version: "0.68.18",
66472
67390
  functions: []
66473
67391
  },
66474
67392
  "@procedures/mcp-server": {
66475
- version: "0.68.17",
67393
+ version: "0.68.18",
66476
67394
  functions: [
66477
67395
  {
66478
67396
  name: "assertLoopbackBind",
@@ -66690,7 +67608,7 @@ const HOME_SHAPES = {
66690
67608
  ]
66691
67609
  },
66692
67610
  "@procedures/notify": {
66693
- version: "0.68.17",
67611
+ version: "0.68.18",
66694
67612
  functions: [
66695
67613
  {
66696
67614
  name: "callPushover",
@@ -67406,7 +68324,7 @@ const HOME_SHAPES = {
67406
68324
  ]
67407
68325
  },
67408
68326
  "@procedures/npm": {
67409
- version: "0.68.17",
68327
+ version: "0.68.18",
67410
68328
  functions: [
67411
68329
  {
67412
68330
  name: "depsDevDependentsRequest",
@@ -67808,7 +68726,7 @@ const HOME_SHAPES = {
67808
68726
  ]
67809
68727
  },
67810
68728
  "@procedures/peer": {
67811
- version: "0.68.17",
68729
+ version: "0.68.18",
67812
68730
  functions: [
67813
68731
  {
67814
68732
  name: "callOperations",
@@ -68108,7 +69026,7 @@ const HOME_SHAPES = {
68108
69026
  ]
68109
69027
  },
68110
69028
  "@procedures/shell": {
68111
- version: "0.68.17",
69029
+ version: "0.68.18",
68112
69030
  functions: [
68113
69031
  {
68114
69032
  name: "cliArg",
@@ -68740,7 +69658,7 @@ const HOME_SHAPES = {
68740
69658
  ]
68741
69659
  },
68742
69660
  "polite-crawler": {
68743
- version: "0.7.14",
69661
+ version: "0.8.1",
68744
69662
  functions: [
68745
69663
  {
68746
69664
  name: "backoffMs",
@@ -69633,7 +70551,7 @@ const HOME_SHAPES = {
69633
70551
  ]
69634
70552
  },
69635
70553
  "polite-crawler-mcp": {
69636
- version: "0.7.14",
70554
+ version: "0.8.1",
69637
70555
  functions: [{
69638
70556
  name: "checkToken",
69639
70557
  tokens: [
@@ -75507,321 +76425,6 @@ function replaceQuoted(text, from, to) {
75507
76425
  const eol = text.includes("\r\n") ? "\r\n" : "\n";
75508
76426
  return text.split(/\r?\n/).map((line) => line.trimStart().startsWith("#") ? line : line.split(`'${from}'`).join(`'${to}'`).split(`"${from}"`).join(`"${to}"`)).join(eol);
75509
76427
  }
75510
- // src/rules/shared-docs.ts
75511
- /**
75512
- * The rule `shared-docs`: each shared block of a document agrees with its lock, and each linked block points to its
75513
- * home at a pinned commit.
75514
- */
75515
- /** The time in milliseconds that the rule waits for one home. A home that does not answer in this time is a break. */
75516
- const HOME_TIMEOUT_MS = 3e4;
75517
- /** The script that `githubFetch` starts in a child process of Node, so that the rule stays synchronous. */
75518
- const FETCH_SCRIPT = `
75519
- const [timeout, ...urls] = process.argv.slice(1);
75520
- Promise.all(urls.map(async (url) => {
75521
- try {
75522
- const response = await fetch(url, { signal: AbortSignal.timeout(Number(timeout)) });
75523
- if (!response.ok) return [url, { error: "HTTP " + response.status }];
75524
- return [url, { text: await response.text() }];
75525
- } catch (error) {
75526
- return [url, { error: String(error && error.message ? error.message : error) }];
75527
- }
75528
- })).then((entries) => process.stdout.write(JSON.stringify(Object.fromEntries(entries))));
75529
- `;
75530
- /** This function downloads each URL in one child process of Node. Each download stops after `HOME_TIMEOUT_MS`. */
75531
- const githubFetch = (urls) => {
75532
- const fail = (error) => new Map(urls.map((url) => [url, { error }]));
75533
- if (urls.length === 0) return /* @__PURE__ */ new Map();
75534
- const result = spawnSync(process.execPath, [
75535
- "-e",
75536
- FETCH_SCRIPT,
75537
- String(HOME_TIMEOUT_MS),
75538
- ...urls
75539
- ], {
75540
- encoding: "utf8",
75541
- timeout: 4e4,
75542
- maxBuffer: 67108864,
75543
- windowsHide: true
75544
- });
75545
- if (result.error !== void 0 || result.status !== 0) return fail(result.error?.message ?? `the download ended with exit code ${String(result.status)}`);
75546
- try {
75547
- const answers = JSON.parse(result.stdout);
75548
- return new Map(urls.map((url) => [url, answers[url] ?? { error: "no answer" }]));
75549
- } catch {
75550
- return fail("the download gave no JSON");
75551
- }
75552
- };
75553
- /** This function gives the SHA-256 of the lines of a block: the lines with LF line ends, and a last LF. */
75554
- const blockHash = (body) => createHash("sha256").update(`${body.join("\n")}\n`).digest("hex");
75555
- /**
75556
- * This function reads the blocks of one kind (`shared` or `linked`) of a text. A block is the text between
75557
- * `<!-- <kind>:<id> -->` and `<!-- /<kind>:<id> -->`, each alone on its line.
75558
- */
75559
- function blocksOf(text, kind, problems) {
75560
- const lines = text.replace(/\r\n/g, "\n").split("\n");
75561
- const blocks = /* @__PURE__ */ new Map();
75562
- const start = new RegExp(`^<!-- ${kind}:([a-z0-9-]+) -->$`);
75563
- const end = new RegExp(`^<!-- /${kind}:([a-z0-9-]+) -->$`);
75564
- const loose = new RegExp(`^\\s*<!-- /?${kind}:`);
75565
- let open;
75566
- let body = [];
75567
- lines.forEach((line, index) => {
75568
- const s = start.exec(line);
75569
- const e = end.exec(line);
75570
- if (s) {
75571
- if (open !== void 0) problems.push({
75572
- line: index + 1,
75573
- message: `the ${kind} block "${s[1] ?? ""}" starts inside the block "${open.id}".`
75574
- });
75575
- open = {
75576
- id: s[1] ?? "",
75577
- line: index + 1
75578
- };
75579
- body = [];
75580
- } else if (e) {
75581
- if (open === void 0 || open.id !== e[1]) problems.push({
75582
- line: index + 1,
75583
- message: `the end of "${e[1] ?? ""}" does not close the open block "${open?.id ?? "(none)"}".`
75584
- });
75585
- else if (blocks.has(open.id)) problems.push({
75586
- line: index + 1,
75587
- message: `the ${kind} block "${open.id}" occurs two times.`
75588
- });
75589
- else blocks.set(open.id, {
75590
- body,
75591
- line: open.line
75592
- });
75593
- open = void 0;
75594
- } else if (open !== void 0) body.push(line);
75595
- else if (loose.test(line)) problems.push({
75596
- line: index + 1,
75597
- message: `a ${kind} marker must be alone on its line.`
75598
- });
75599
- });
75600
- if (open !== void 0) problems.push({
75601
- line: open.line,
75602
- message: `the ${kind} block "${open.id}" has no end marker.`
75603
- });
75604
- return blocks;
75605
- }
75606
- const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
75607
- const linkOf = (l) => `https://github.com/${l.repo}/blob/${l.commit}/${l.path}`;
75608
- const rawOf = (l) => `https://raw.githubusercontent.com/${l.repo}/${l.commit}/${l.path}`;
75609
- /** This function tells if the rule downloads the homes, from the option `remote` and the environment. */
75610
- function downloads(remote, env) {
75611
- if (remote === "always") return true;
75612
- if (remote === "never") return false;
75613
- return env["CI"] === "true";
75614
- }
75615
- /** This function makes the rule with the download function `fetchHomes`. The tests give a fake function. */
75616
- function sharedDocsRule(fetchHomes = githubFetch) {
75617
- return {
75618
- id: "shared-docs",
75619
- title: "Each shared block of a document agrees with its lock file, and each linked block has the link to its home at the pinned commit, with the hash of the home block.",
75620
- reason: "Three repositories kept copies of the same blocks of docs/PROMOTION.md, each with its own copy of a check script. A change in one copy did not get to the others: on 2026-11-03 the block win-test of three repositories had a hash that the home in rigor did not have. A linked block keeps one copy, in its home, and pins the commit, so a change of the home is a deliberate update of the lock.",
75621
- fix: "Make the block agree with the lock, or update the lock in each repository that keeps a copy. For a block with a home in another repository, remove the copy, write `<!-- linked:<id> -->` with the link https://github.com/<repo>/blob/<commit>/<path>, and give `{repo, path, commit, sha256}` in the field \"linked\" of the lock.",
75622
- sources: [
75623
- {
75624
- repo: "layout-contract",
75625
- rule: "check-shared",
75626
- doc: "scripts/check-shared.mjs (#155, the linked form of a shared block)"
75627
- },
75628
- {
75629
- repo: "packing",
75630
- rule: "check-shared",
75631
- doc: "scripts/check-shared.mjs (the same script)"
75632
- },
75633
- {
75634
- repo: "highways",
75635
- rule: "check-shared",
75636
- doc: "scripts/check-shared.mjs (the same script)"
75637
- }
75638
- ],
75639
- options: {
75640
- locks: {
75641
- type: "strings",
75642
- default: [],
75643
- description: "The lock files to check. With no value, the rule checks each tracked file with the name `shared.lock.json`."
75644
- },
75645
- remote: {
75646
- type: "string",
75647
- default: "ci",
75648
- description: "When the rule downloads the home of each linked block and compares its hash: \"ci\" (only when the variable CI is \"true\"), \"always\" or \"never\"."
75649
- }
75650
- },
75651
- check(context, options) {
75652
- const named = options["locks"];
75653
- let locks;
75654
- if (named.length > 0) locks = named.map(cleanPath);
75655
- else {
75656
- const files = context.gitFiles();
75657
- if (files === void 0) return { skipped: "the root is not in a git repository" };
75658
- locks = files.filter((file) => file === "shared.lock.json" || file.endsWith("/shared.lock.json")).sort(byCode);
75659
- }
75660
- if (locks.length === 0) return { skipped: "the repository has no file shared.lock.json" };
75661
- const breaks = [];
75662
- const remote = [];
75663
- for (const lockPath of locks) {
75664
- if (!existsSync(join(context.root, lockPath))) {
75665
- breaks.push({
75666
- file: lockPath,
75667
- message: `the option locks names ${lockPath}, and the file does not exist.`
75668
- });
75669
- continue;
75670
- }
75671
- let lockFile;
75672
- try {
75673
- lockFile = JSON.parse(readFileSync(join(context.root, lockPath), "utf8"));
75674
- } catch (error) {
75675
- breaks.push({
75676
- file: lockPath,
75677
- message: `${lockPath} is not JSON: ${error instanceof Error ? error.message : String(error)}`
75678
- });
75679
- continue;
75680
- }
75681
- if (!isRecord(lockFile)) {
75682
- breaks.push({
75683
- file: lockPath,
75684
- message: `${lockPath} is not a JSON object.`
75685
- });
75686
- continue;
75687
- }
75688
- if (typeof lockFile["file"] !== "string") {
75689
- breaks.push({
75690
- file: lockPath,
75691
- message: `${lockPath} has no field "file": the document of its blocks.`
75692
- });
75693
- continue;
75694
- }
75695
- if (!isRecord(lockFile["blocks"]) && !isRecord(lockFile["linked"])) {
75696
- breaks.push({
75697
- file: lockPath,
75698
- message: `${lockPath} has no field "blocks" and no field "linked", so it locks nothing.`
75699
- });
75700
- continue;
75701
- }
75702
- const lock = isRecord(lockFile["blocks"]) ? lockFile["blocks"] : {};
75703
- const links = isRecord(lockFile["linked"]) ? lockFile["linked"] : {};
75704
- const doc = cleanPath(lockFile["file"]);
75705
- if (!existsSync(join(context.root, doc))) {
75706
- breaks.push({
75707
- file: lockPath,
75708
- message: `${lockPath} locks the blocks of ${doc}, and the file does not exist.`
75709
- });
75710
- continue;
75711
- }
75712
- const problems = [];
75713
- const text = readFileSync(join(context.root, doc), "utf8");
75714
- const shared = blocksOf(text, "shared", problems);
75715
- const linked = blocksOf(text, "linked", problems);
75716
- for (const p of problems) breaks.push({
75717
- file: doc,
75718
- ...p.line !== void 0 ? { line: p.line } : {},
75719
- message: p.message
75720
- });
75721
- for (const [id, hash] of Object.entries(lock).sort(([a], [b]) => byCode(a, b))) {
75722
- const block = shared.get(id);
75723
- if (block === void 0) breaks.push({
75724
- file: doc,
75725
- message: `the shared block "${id}" of ${lockPath} is missing in ${doc}.`
75726
- });
75727
- else if (blockHash(block.body) !== hash) breaks.push({
75728
- file: doc,
75729
- line: block.line,
75730
- message: `the shared block "${id}" differs from ${lockPath}: its hash is ${blockHash(block.body)}.`
75731
- });
75732
- }
75733
- for (const [id, block] of shared) if (!(id in lock)) breaks.push({
75734
- file: doc,
75735
- line: block.line,
75736
- message: `the shared block "${id}" is not in ${lockPath}.`
75737
- });
75738
- for (const [id, value] of Object.entries(links).sort(([a], [b]) => byCode(a, b))) {
75739
- if (!isRecord(value)) {
75740
- breaks.push({
75741
- file: lockPath,
75742
- message: `the linked block "${id}" of ${lockPath} is not an object {repo, path, commit, sha256}.`
75743
- });
75744
- continue;
75745
- }
75746
- const entry = {
75747
- repo: String(value["repo"] ?? ""),
75748
- path: String(value["path"] ?? ""),
75749
- commit: String(value["commit"] ?? ""),
75750
- sha256: String(value["sha256"] ?? "")
75751
- };
75752
- const before = breaks.length;
75753
- if (!/^[\w.-]+\/[\w.-]+$/.test(entry.repo)) breaks.push({
75754
- file: lockPath,
75755
- message: `the linked block "${id}" needs a repository "<owner>/<name>", not "${entry.repo}".`
75756
- });
75757
- if (entry.path === "") breaks.push({
75758
- file: lockPath,
75759
- message: `the linked block "${id}" needs the path of its file in the home.`
75760
- });
75761
- if (!/^[0-9a-f]{40}$/.test(entry.commit)) breaks.push({
75762
- file: lockPath,
75763
- message: `the linked block "${id}" needs a full commit of 40 hex digits, not "${entry.commit}".`
75764
- });
75765
- if (!/^[0-9a-f]{64}$/.test(entry.sha256)) breaks.push({
75766
- file: lockPath,
75767
- message: `the linked block "${id}" needs a SHA-256 of 64 hex digits.`
75768
- });
75769
- const copy = shared.get(id);
75770
- if (copy !== void 0) breaks.push({
75771
- file: doc,
75772
- line: copy.line,
75773
- message: `the linked block "${id}" also has a copy in ${doc}. Remove the copy.`
75774
- });
75775
- const block = linked.get(id);
75776
- if (block === void 0) breaks.push({
75777
- file: doc,
75778
- message: `the linked block "${id}" of ${lockPath} has no "<!-- linked:${id} -->" block in ${doc}.`
75779
- });
75780
- else if (!block.body.join("\n").includes(linkOf(entry))) breaks.push({
75781
- file: doc,
75782
- line: block.line,
75783
- message: `the linked block "${id}" does not contain the link ${linkOf(entry)}.`
75784
- });
75785
- if (breaks.length === before) remote.push({
75786
- lock: lockPath,
75787
- id,
75788
- entry
75789
- });
75790
- }
75791
- for (const [id, block] of linked) if (!(id in links)) breaks.push({
75792
- file: doc,
75793
- line: block.line,
75794
- message: `the linked block "${id}" is not in the field "linked" of ${lockPath}.`
75795
- });
75796
- }
75797
- if (remote.length > 0 && downloads(String(options["remote"]), context.env)) {
75798
- const answers = fetchHomes([...new Set(remote.map(({ entry }) => rawOf(entry)))]);
75799
- for (const { lock, id, entry } of remote) {
75800
- const url = rawOf(entry);
75801
- const answer = answers.get(url) ?? { error: "no answer" };
75802
- if ("error" in answer) {
75803
- breaks.push({
75804
- file: lock,
75805
- message: `the home of the linked block "${id}" did not answer at ${url}: ${answer.error}.`
75806
- });
75807
- continue;
75808
- }
75809
- const home = blocksOf(answer.text, "shared", []).get(id);
75810
- if (home === void 0) breaks.push({
75811
- file: lock,
75812
- message: `the home ${url} has no shared block "${id}".`
75813
- });
75814
- else if (blockHash(home.body) !== entry.sha256) breaks.push({
75815
- file: lock,
75816
- message: `the linked block "${id}" at ${url} has the hash ${blockHash(home.body)}, not the hash of ${lock}.`
75817
- });
75818
- }
75819
- }
75820
- return breaks;
75821
- }
75822
- };
75823
- }
75824
- const sharedDocs = sharedDocsRule();
75825
76428
  // src/rules/source-main.ts
75826
76429
  /**
75827
76430
  * The rule `source-main`: a workspace package is a source package, and a public package moves its
@@ -76919,16 +77522,17 @@ const changesetsConfig = {
76919
77522
  if (!hasFile(context.root, ".github/workflows/release.yml")) return { skipped: `the repository has no ${RELEASE_WORKFLOW}` };
76920
77523
  if (publishedPackages(context).length === 0) return { skipped: "the repository publishes no package to npm" };
76921
77524
  const breaks = [];
77525
+ const cli = hasCli(context.rootPackage);
76922
77526
  if (!hasFile(context.root, ".changeset/config.json")) breaks.push({
76923
77527
  file: CHANGESET_CONFIG,
76924
77528
  message: `The repository publishes from ${RELEASE_WORKFLOW}, and it has no ${CHANGESET_CONFIG}. Each pull request then sets a version number, and each release of main during its CI takes that number.`,
76925
- edits: [{
77529
+ ...cli ? { edits: [{
76926
77530
  file: CHANGESET_CONFIG,
76927
77531
  before: "",
76928
77532
  after: defaultConfig(context)
76929
- }]
77533
+ }] } : { fix: `Add ${CHANGESET_CLI} first (\`pnpm add -Dw ${CHANGESET_CLI}\`), then run \`conventions fix --rule changesets-config\`. The fix does not write the config before the CLI is in the install.` }
76930
77534
  });
76931
- if (!hasCli(context.rootPackage)) {
77535
+ if (!cli) {
76932
77536
  const line = lineOf(context.rootPackage.text, "\"devDependencies\"");
76933
77537
  breaks.push({
76934
77538
  file: context.rootPackage.file,
@@ -77296,6 +77900,7 @@ const RULES = [
77296
77900
  securityGate,
77297
77901
  summaryJobRule,
77298
77902
  releaseModeRule,
77903
+ callPermissions,
77299
77904
  sharedCi,
77300
77905
  setupCue,
77301
77906
  playwrightInstall,
@@ -78518,6 +79123,6 @@ function runHook(args, io) {
78518
79123
  git: (gitArgs) => runGit(io.cwd, gitArgs)
78519
79124
  }, io);
78520
79125
  }
78521
- export { requiredScripts as $, releaseModeRule as $n, runGitShow as $r, CONSOLE_LAST_DAY as $t, scriptsOf as A, HOMES as An, gateAfterCancel as Ar, packNoBuildinfo as At, TEMPLATE_CALLED as B, runCalls as Bn, cleanPath as Br, privatePatterns as Bt, setVersions as C, declaredName as Cn, ACTIONS_COMMIT as Cr, pagesAfterRelease as Ct, trustPolicy as D, reposOf as Dn, skippableJobs as Dr, pagesSite as Dt, TRAIN_SCOPES as E, repoOf as En, prPathFilters as Er, pagesCalls as Et, sourceMain as F, mergeHomes as Fn, yamlFaults as Fr, PRIVATE_PATTERNS_VARIABLE as Ft, runnerPeak as G, SHARED_CI as Gn, lineOf as Gr, isAllowedHit as Gt, calledJobs as H, hasTests as Hn, hasFile as Hr, PRIVATE_NAME_LIST as Ht, HOME_TIMEOUT_MS as I, npmDrift as In, STRICT_OPTIONS as Ir, invalidPatternBreaks as It, evaluateExpression as J, sharedCi as Jn, parseJsonc as Jr, lineNameHits as Jt, runsAtOnce as K, SHARED_WORKFLOWS as Kn, matchesAny as Kr, isCommonUse as Kt, blockHash as L, npmNames as Ln, cuePreset as Lr, noLocalPaths as Lt, testsRequired as M, findHomes as Mn, parseWorkflow as Mr, HOME_PATTERNS as Mt, isSourcePath as N, mapMarkdown as Nn, readAction as Nr, PRIVATE_NAMES_FILE_CONFIG as Nt, typedScripts as O, signaturesOf as On, summaryJob as Or, exportsRequire as Ot, pathsOf as P, mapText as Pn, readWorkflow as Pr, PRIVATE_NAMES_FILE_VARIABLE as Pt, roadmapParses as Q, hasReleaseMode as Qn, runGit as Qr, pathNameHit as Qt, githubFetch as R, readOverlay as Rn, DEPENDENCY_FIELDS as Rr, privateNamesFile as Rt, namedVersions as S, modulesOf as Sn, repositoryIsPublic as Sr, siteCheckInCi as St, IGNORE_AFTER as T, messageOf$1 as Tn, gateTrigger as Tr, PAGES_WORKFLOWS as Tt, eventClass as U, tsconfigTest as Un, inFolder as Ur, PrivateNameListError as Ut, UNKNOWN_MATRIX_JOBS as V, serviceRunMain as Vn, codePackages as Vr, privateTextBreaks as Vt, matrixPeak as W, SHARED_ACTIONS as Wn, keyLine as Wr, firstNameMatch as Wt, mayRun as X, addReleaseMode as Xn, replaceLine as Xr, nameMatches as Xt, groupParts as Y, setupCue as Yn, readJsonc as Yr, mergePrivateNames as Yt, roadmapOfLine as Z, callsReleaseBuild as Zn, repositoryOfRemote as Zr, parsePrivateNames as Zt, runPrePushArgs as _, spansOf as _n, LICENSE_TEXTS as _r, swallowsTests as _t, listRules as a, noConsole as an, addSummaryJob as ar, reachOf as at, GITHUB_YAML as b, moduleMessage as bn, licenseFileOf as br, isPinned as bt, runCli as c, hasImportMetaMain as cn, summaryJobRule as cr, UNSHIPPED_FILES as ct, HOOK_MARKER as d, apiReportScript as dn, SECURITY_TIMEOUT_MINUTES as dr, unreleasedChangeRule as dt, showFiles as ei, NOT_SOURCE as en, SECURITY_FILE as er, releaseFiles as et, NO_READ_LINE as f, containedHome as fn, securityCallers as fr, playwrightInstall as ft, prePush as g, shapesOfSource as gn, scheduleMinute as gr, startsTests as gt, parsePrePushArgs as h, shapeMessage as hn, runnerBudget as hr, parseAdvisory as ht, formatResult as i, parseRuleConfig as ii, isCliFile as in, SUMMARY_GATES as ir, publishedMinorRule as it, typedFiles as j, MAP_RULE as jn, MATRIX_EXPAND_MAX as jr, DEFAULT_ALLOWED as jt, configsOfScript as k, HOME_EXPORTS as kn, summaryName as kr, publishTextSafe as kt, runFix as l, mainCheck as ln, SECURITY_SCAN_COMMIT as lr, npmLookup as lt, installHook as m, homeShapesOf as mn, withOneJob as mr, jobFails as mt, annotations as n, defaultOptions as ni, consoleGate as nn, securityGate as nr, minorOf as nt, readConfig as o, noBuildOutput as on, hasSummaryJob as or, NPM_REGISTRY as ot, PRE_PUSH_HOOK as p, homeShape as pn, securityOneJob as pr, hiddenFailures as pt, workflowPeaks as q, callsSharedCi as qn, parseCatFileBatch as qr, lineNameHit as qt, createContext as r, parseConfig as ri, consoleKind as rn, securityWorkflow as rr, publishedMinor as rt, runChecks as s, REAL_COMPARE as sn, startsOnPullRequest as sr, SHIPPED_FIELDS as st, USAGE as t, specifiersOf as ti, consoleBreaks as tn, isSecurityGate as tr, lockedVersions as tt, summaryMarkdown as u, coverageProvider as un, SECURITY_SCAN_INPUTS as ur, unreleasedChange as ut, RULES as v, HOME_SHAPES as vn, authorOf as vr, pipeFails as vt, versionTitle as w, homePackage as wn, convertGate as wr, pushMainOnly as wt, workflowParses as x, moduleUses as xn, mitText as xr, pinnedGitDeps as xt, workspaceProtocol as y, homeModule as yn, licenseFile as yr, isGitSpecifier as yt, sharedDocsRule as z, SERVICE_PACKAGE as zn, RULE_WARN_DAYS as zr, privateNamesFiles as zt };
79126
+ export { publishedMinor as $, callsReleaseBuild as $n, repositoryOfRemote as $r, consoleKind as $t, scriptsOf as A, mapText as An, summaryJob as Ar, PRIVATE_NAMES_FILE_VARIABLE as At, matrixPeak as B, SHARED_ACTIONS as Bn, DEPENDENCY_FIELDS as Br, firstNameMatch as Bt, setVersions as C, reposOf as Cn, mitText as Cr, pagesSite as Ct, trustPolicy as D, MAP_RULE as Dn, gateTrigger as Dr, DEFAULT_ALLOWED as Dt, TRAIN_SCOPES as E, HOMES as En, convertGate as Er, packNoBuildinfo as Et, sourceMain as F, SERVICE_PACKAGE as Fn, readAction as Fr, privateNamesFiles as Ft, groupParts as G, setupCue as Gn, inFolder as Gr, mergePrivateNames as Gt, runsAtOnce as H, SHARED_WORKFLOWS as Hn, cleanPath as Hr, isCommonUse as Ht, TEMPLATE_CALLED as I, runCalls as In, readWorkflow as Ir, privatePatterns as It, roadmapParses as J, HOME_TIMEOUT_MS as Jn, matchesAny as Jr, pathNameHit as Jt, mayRun as K, callPermissions as Kn, keyLine as Kr, nameMatches as Kt, UNKNOWN_MATRIX_JOBS as L, serviceRunMain as Ln, yamlFaults as Lr, privateTextBreaks as Lt, testsRequired as M, npmDrift as Mn, gateAfterCancel as Mr, invalidPatternBreaks as Mt, isSourcePath as N, npmNames as Nn, MATRIX_EXPAND_MAX as Nr, noLocalPaths as Nt, typedScripts as O, findHomes as On, prPathFilters as Or, HOME_PATTERNS as Ot, pathsOf as P, readOverlay as Pn, parseWorkflow as Pr, privateNamesFile as Pt, minorOf as Q, addReleaseMode as Qn, replaceLine as Qr, consoleGate as Qt, calledJobs as R, hasTests as Rn, STRICT_OPTIONS as Rr, PRIVATE_NAME_LIST as Rt, namedVersions as S, repoOf as Sn, licenseFileOf as Sr, pagesCalls as St, IGNORE_AFTER as T, HOME_EXPORTS as Tn, ACTIONS_COMMIT as Tr, publishTextSafe as Tt, workflowPeaks as U, callsSharedCi as Un, codePackages as Ur, lineNameHit as Ut, runnerPeak as V, SHARED_CI as Vn, RULE_WARN_DAYS as Vr, isAllowedHit as Vt, evaluateExpression as W, sharedCi as Wn, hasFile as Wr, lineNameHits as Wt, releaseFiles as X, githubFetch as Xn, parseJsonc as Xr, NOT_SOURCE as Xt, requiredScripts as Y, blockHash as Yn, parseCatFileBatch as Yr, CONSOLE_LAST_DAY as Yt, lockedVersions as Z, sharedDocsRule as Zn, readJsonc as Zr, consoleBreaks as Zt, runPrePushArgs as _, moduleUses as _n, runnerBudget as _r, pinnedGitDeps as _t, listRules as a, parseConfig as ai, mainCheck as an, securityWorkflow as ar, npmLookup as at, GITHUB_YAML as b, homePackage as bn, authorOf as br, pushMainOnly as bt, runCli as c, containedHome as cn, hasSummaryJob as cr, playwrightInstall as ct, HOOK_MARKER as d, shapeMessage as dn, SECURITY_SCAN_COMMIT as dr, parseAdvisory as dt, runGit as ei, isCliFile as en, hasReleaseMode as er, publishedMinorRule as et, NO_READ_LINE as f, shapesOfSource as fn, SECURITY_SCAN_INPUTS as fr, startsTests as ft, prePush as g, moduleMessage as gn, withOneJob as gr, isPinned as gt, parsePrePushArgs as h, homeModule as hn, securityOneJob as hr, isGitSpecifier as ht, formatResult as i, defaultOptions as ii, hasImportMetaMain as in, securityGate as ir, UNSHIPPED_FILES as it, typedFiles as j, mergeHomes as jn, summaryName as jr, PRIVATE_PATTERNS_VARIABLE as jt, configsOfScript as k, mapMarkdown as kn, skippableJobs as kr, PRIVATE_NAMES_FILE_CONFIG as kt, runFix as l, homeShape as ln, startsOnPullRequest as lr, hiddenFailures as lt, installHook as m, HOME_SHAPES as mn, securityCallers as mr, pipeFails as mt, annotations as n, showFiles as ni, noBuildOutput as nn, SECURITY_FILE as nr, NPM_REGISTRY as nt, readConfig as o, parseRuleConfig as oi, coverageProvider as on, SUMMARY_GATES as or, unreleasedChange as ot, PRE_PUSH_HOOK as p, spansOf as pn, SECURITY_TIMEOUT_MINUTES as pr, swallowsTests as pt, roadmapOfLine as q, callPermissionsRule as qn, lineOf as qr, parsePrivateNames as qt, createContext as r, specifiersOf as ri, REAL_COMPARE as rn, isSecurityGate as rr, SHIPPED_FIELDS as rt, runChecks as s, apiReportScript as sn, addSummaryJob as sr, unreleasedChangeRule as st, USAGE as t, runGitShow as ti, noConsole as tn, releaseModeRule as tr, reachOf as tt, summaryMarkdown as u, homeShapesOf as un, summaryJobRule as ur, jobFails as ut, RULES as v, modulesOf as vn, scheduleMinute as vr, siteCheckInCi as vt, versionTitle as w, signaturesOf as wn, repositoryIsPublic as wr, exportsRequire as wt, workflowParses as x, messageOf$1 as xn, licenseFile as xr, PAGES_WORKFLOWS as xt, workspaceProtocol as y, declaredName as yn, LICENSE_TEXTS as yr, pagesAfterRelease as yt, eventClass as z, tsconfigTest as zn, cuePreset as zr, PrivateNameListError as zt };
78522
79127
 
78523
- //# sourceMappingURL=run-4e6UIfOv.js.map
79128
+ //# sourceMappingURL=run-B9ocr1v_.js.map