@r_masseater/msch 0.115.4 → 0.117.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -6,9 +6,9 @@ import { C as keyName, D as stringsIn, E as propertyValue, S as childrenOf$4, T
6
6
  import { a as parent, i as join, n as isInside, t as baseName$1 } from "./path-DUttmo2s.mjs";
7
7
  import { _ as shadcnUiOf, a as workspaceConfigs, c as publicEntriesOf, d as splitFrontmatter, h as deployEntries, i as publishedWorkspaces, l as isIndexSkill, m as bundledEntries, o as entryNameOf, p as workspaceLinks, r as packedWorkspaces, s as isBinEntry, u as FRONTMATTER } from "./published-BITU3twH.mjs";
8
8
  import { i as USAGE_SPOOL, n as DECISION_TIMEOUT_MS, r as JAPANESE, t as DECISION_MODEL } from "./config-W6Uy7bV8.mjs";
9
- import { a as CI_TASKS, c as meteredCommand, f as isIgnored, h as patternOf$1, m as namedWorkspaces, n as builtTextRuleNames, o as MSCH_TASK_COMMANDS, r as secretsOf, s as MSCH_VERIFY_COMMANDS, t as TEXT_IGNORES, u as existsAt } from "./repository-text-DEyMe2S6.mjs";
9
+ import { a as CI_TASKS, c as meteredCommand, f as isIgnored, h as patternOf$1, m as namedWorkspaces, n as builtTextRuleNames, o as MSCH_TASK_COMMANDS, r as secretsOf, s as MSCH_VERIFY_COMMANDS, t as TEXT_IGNORES, u as existsAt } from "./repository-text-Cl6JiEYE.mjs";
10
10
  import { t as startedOnce } from "./started-once-muJbvD_I.mjs";
11
- import { g as decisionTestRules, n as MARKDOWN_RULES, p as lint$3, t as MARKDOWN_IGNORES, x as exempt } from "./define-lint-preset-BC6R-LkX.mjs";
11
+ import { g as decisionTestRules, n as MARKDOWN_RULES, p as lint$3, t as MARKDOWN_IGNORES, x as exempt } from "./define-lint-preset-un6ctQig.mjs";
12
12
  import { builtinModules, isBuiltin } from "node:module";
13
13
  import { VpToolsError, findCiDrift, runVpa } from "@r_masseater/vite-plus-adopt";
14
14
  import { Array as Array$1, Boolean as Boolean$1, Clock, Config, Console, Context, Effect, Equal, FileSystem, Function, HashMap, HashSet, Match, Metric, Number as Number$1, Option, Order, Path, Predicate, Record, Redacted, Result, Runtime, Schedule, Schema, SchemaTransformation, Stdio, Stream, String as String$1, pipe } from "effect";
@@ -45,7 +45,7 @@ import { Base64 } from "effect/encoding";
45
45
  import { CALLS_METRIC, mergeTallies, talliesIn, usageMetricsOf } from "@r_masseater/masseater-utils/usage-meter/report";
46
46
  // package.json
47
47
  var name = "@r_masseater/msch";
48
- var version = "0.115.4";
48
+ var version = "0.117.0";
49
49
  var homepage = "https://github.com/masseater/ecosystems/tree/main/libs/msch#readme";
50
50
  var repository = {
51
51
  "type": "git",
@@ -1091,12 +1091,12 @@ const scanText = Effect.fn("scanText")(function* scanText(listed, foundIn) {
1091
1091
  // src/features/check-overrides/model/git-subpath.ts
1092
1092
  const DEPENDENCY_FILE = /(?:^|\/)(?:package\.json|pnpm-workspace\.ya?ml)$/u;
1093
1093
  const GIT_SUBPATH = /(?<![^\s"':])[^\s"'#]+#(?:[^\s"'&]*&)*path:[^\s"']*/gu;
1094
- const RULE$78 = "git-subpath-dependency";
1094
+ const RULE$79 = "git-subpath-dependency";
1095
1095
  const WHOLE_MATCH$4 = 0;
1096
1096
  const problemAt$5 = ({ file }, source) => (found) => ({
1097
1097
  file,
1098
1098
  ...positionOf(source)(found.index ?? WHOLE_MATCH$4),
1099
- rule: RULE$78,
1099
+ rule: RULE$79,
1100
1100
  message: `Git subpath dependencies are banned. Publish the package to npm and depend on a released version instead of \`${String$1.trim(found[WHOLE_MATCH$4])}\`.`
1101
1101
  });
1102
1102
  const problemsIn$24 = (entry, source) => pipe(Array$1.fromIterable(String$1.matchAll(GIT_SUBPATH)(source)), Array$1.map(problemAt$5(entry, source)));
@@ -1107,13 +1107,13 @@ const checkGitSubpath = Effect.fn("checkGitSubpath")(function* checkGitSubpath(r
1107
1107
  return yield* scanText(pipe(listed, Array$1.filter(isDependencyFile)), problemsIn$24);
1108
1108
  });
1109
1109
  // src/features/check-overrides/model/restricted-rules.ts
1110
- const RULE$77 = "unnamed-restriction";
1110
+ const RULE$78 = "unnamed-restriction";
1111
1111
  const WHOLE_MATCH$3 = 0;
1112
1112
  const UNNAMED = new RegExp(`(?:[\\w@-]+/)?no-restricted-[a-z]+(?:-[a-z]+)*\\b`, "gu");
1113
1113
  const problemsIn$23 = (entry, source) => pipe(Array$1.fromIterable(String$1.matchAll(UNNAMED)(source)), Array$1.map((found) => ({
1114
1114
  file: entry.file,
1115
1115
  ...positionOf(source)(found.index ?? WHOLE_MATCH$3),
1116
- rule: RULE$77,
1116
+ rule: RULE$78,
1117
1117
  message: `${found[WHOLE_MATCH$3]} is not used in this repository, because its name does not say what an entry protects. Ban a package in dependencyRules.banned, and write any other restriction as a rule in msch-lint whose name states the intent.`
1118
1118
  })));
1119
1119
  /** @internal */
@@ -1122,13 +1122,13 @@ const checkRestrictedRules = Effect.fn("checkRestrictedRules")(function* checkRe
1122
1122
  return yield* scanText(pipe(listed, Array$1.filter(isScannedText)), problemsIn$23);
1123
1123
  });
1124
1124
  // src/features/check-overrides/model/type-exemptions.ts
1125
- const RULE$76 = "named-type-exemption";
1125
+ const RULE$77 = "named-type-exemption";
1126
1126
  const WHOLE_MATCH$2 = 0;
1127
1127
  const SPECIFIER = new RegExp(`["']?\\bfrom["']?\\s*:\\s*["'](?:file|lib|package)["']`, "gu");
1128
1128
  const problemsIn$22 = (entry, source) => pipe(Array$1.fromIterable(String$1.matchAll(SPECIFIER)(source)), Array$1.map((found) => ({
1129
1129
  file: entry.file,
1130
1130
  ...positionOf(source)(found.index ?? WHOLE_MATCH$2),
1131
- rule: RULE$76,
1131
+ rule: RULE$77,
1132
1132
  message: "exempts a type from a lint rule by its name. Such a list is written by hand for every dependency and only grows. msch-lint/readonly-parameters reads where each type is declared and exempts the types of packages and of the language by itself, so remove the entry. For another rule, add a rule to msch-lint that reads the declaration."
1133
1133
  })));
1134
1134
  /** @internal */
@@ -1144,7 +1144,7 @@ const INSTALL_REGISTRY = "https://npm.flatt.tech/";
1144
1144
  const withTrailingSlash = (url) => `${String$1.replace(TRAILING_SLASH$1, "")(url)}/`;
1145
1145
  const scopeOfName = (name) => pipe(Option.liftPredicate(name, String$1.startsWith("@")), Option.flatMap((scoped) => pipe(String$1.indexOf(SCOPE_SEPARATOR)(scoped), Option.map((end) => String$1.takeLeft(scoped, end + 1)))));
1146
1146
  // src/features/check-overrides/model/package-registry.ts
1147
- const RULE$75 = "package-registry";
1147
+ const RULE$76 = "package-registry";
1148
1148
  const WORKSPACE_FILE$6 = "pnpm-workspace.yaml";
1149
1149
  const NPMRC = /(?:^|\/)\.npmrc$/u;
1150
1150
  const WORKSPACE_REGISTRY = /^registry:/mu;
@@ -1158,7 +1158,7 @@ const offsetIn$1 = (found) => pipe(Option.fromNullishOr(found), Option.map(({ in
1158
1158
  const workspaceProblem = ({ file, source }, registry) => ({
1159
1159
  file,
1160
1160
  ...positionOf(source)(offsetIn$1(WORKSPACE_REGISTRY.exec(source))),
1161
- rule: RULE$75,
1161
+ rule: RULE$76,
1162
1162
  message: Option.match(registry, {
1163
1163
  onNone: () => `${REASON$3} Set \`registry: ${INSTALL_REGISTRY}\` in ${WORKSPACE_FILE$6}.`,
1164
1164
  onSome: (value) => `${REASON$3} \`registry\` is ${value}. Set it to ${INSTALL_REGISTRY}.`
@@ -1167,7 +1167,7 @@ const workspaceProblem = ({ file, source }, registry) => ({
1167
1167
  const npmrcProblems = (entry, source) => pipe(Array$1.fromIterable(String$1.matchAll(NPMRC_REGISTRY)(source)), Array$1.filter((found) => !Option.exists(groupOf("value")(found), isRequired)), Array$1.map((found) => ({
1168
1168
  file: entry.file,
1169
1169
  ...positionOf(source)(found.index ?? START$33),
1170
- rule: RULE$75,
1170
+ rule: RULE$76,
1171
1171
  message: `${REASON$3} This .npmrc overrides it with \`${String$1.trim(found[START$33])}\`. Remove the line.`
1172
1172
  })));
1173
1173
  const checkWorkspace = Effect.fn("checkWorkspace")(function* checkWorkspace(root) {
@@ -1245,7 +1245,7 @@ const SELF_HOMEPAGE = homepage;
1245
1245
  const SELF_DIRECTORY = repository.directory;
1246
1246
  const RENOVATE_PRESET = `github>${pipe(repository.url, String$1.replace(GIT_PREFIX, ""), String$1.replace(GIT_SUFFIX, ""), String$1.replace(GITHUB$6, ""))}//${SELF_DIRECTORY}/renovate`;
1247
1247
  // src/features/check-overrides/model/removed-peers.ts
1248
- const RULE$74 = "removed-peer";
1248
+ const RULE$75 = "removed-peer";
1249
1249
  const WORKSPACE_FILE$5 = "pnpm-workspace.yaml";
1250
1250
  const REMOVED = "-";
1251
1251
  const PARENT_SEPARATOR = ">";
@@ -1272,7 +1272,7 @@ const problemAt$4 = (file, { key, line, column }) => ({ peer, dependent }) => ({
1272
1272
  file,
1273
1273
  line,
1274
1274
  column,
1275
- rule: RULE$74,
1275
+ rule: RULE$75,
1276
1276
  message: `msch runs ${dependent}, which needs ${peer} as a peer, so removing ${peer} with the override ${key} breaks msch. Remove the override.`
1277
1277
  });
1278
1278
  const removalsIn = (overrides) => pipe(overrides, Record.filter(isRemoval));
@@ -3413,7 +3413,7 @@ const matcher = (patterns) => {
3413
3413
  String$1.startsWith(NEGATION$1);
3414
3414
  String$1.slice(1);
3415
3415
  // src/features/check-placement/model/colocated-git-patterns.ts
3416
- const RULE$73 = "colocated-git-patterns";
3416
+ const RULE$74 = "colocated-git-patterns";
3417
3417
  const PATTERN_FILES = [":(glob)**/.gitignore", ":(glob)**/.gitattributes"];
3418
3418
  const ROOT$3 = ".";
3419
3419
  const NEGATION = "!";
@@ -3460,7 +3460,7 @@ const entriesIn$2 = Effect.fn("entriesIn")(function* entriesIn(root, file) {
3460
3460
  const toEntry = entryOf$2(absolute, files.basename(file), files.dirname(file));
3461
3461
  return pipe(Option.getOrElse(text, () => ""), String$1.split("\n"), Array$1.map(toEntry), Array$1.getSomes);
3462
3462
  });
3463
- const patternProblem = (entry, message) => problemAtPosition(RULE$73)(entry.file, {
3463
+ const patternProblem = (entry, message) => problemAtPosition(RULE$74)(entry.file, {
3464
3464
  line: entry.line,
3465
3465
  column: FIRST$26
3466
3466
  }, message);
@@ -3523,7 +3523,7 @@ const checkColocatedGitPatterns = Effect.fn("checkColocatedGitPatterns")(functio
3523
3523
  return Array$1.getSomes([...misplacedFound, ...repeatedFound]);
3524
3524
  });
3525
3525
  // src/features/check-placement/model/colocated-tests.ts
3526
- const RULE$72 = "colocated-test";
3526
+ const RULE$73 = "colocated-test";
3527
3527
  const FIRST$25 = 1;
3528
3528
  const READ_CONCURRENCY$40 = 64;
3529
3529
  const ROOT_SUBPATH$2 = ".";
@@ -3546,7 +3546,7 @@ const problemFor$10 = (test, message) => ({
3546
3546
  file: test.file,
3547
3547
  line: FIRST$25,
3548
3548
  column: FIRST$25,
3549
- rule: RULE$72,
3549
+ rule: RULE$73,
3550
3550
  message: `${test.base} ${message}`
3551
3551
  });
3552
3552
  const groupsOf$1 = (source, pattern, group) => pipe(Array$1.fromIterable(String$1.matchAll(pattern)(source)), Array$1.map((match) => pipe(Option.fromUndefinedOr(match.groups), Option.flatMap((groups) => Option.fromUndefinedOr(groups[group])))), Array$1.getSomes);
@@ -3629,7 +3629,7 @@ const agentDocProblems = Effect.fn("agentDocProblems")(function* agentDocProblem
3629
3629
  // src/features/check-placement/model/agent-docs-length.ts
3630
3630
  const RECOMMENDED_LINES = 200;
3631
3631
  const FIRST$24 = 1;
3632
- const RULE$71 = "agent-docs-length";
3632
+ const RULE$72 = "agent-docs-length";
3633
3633
  const lineCount = (source) => pipe(String$1.trimEnd(source), String$1.split("\n")).length;
3634
3634
  const problemFor$9 = (file) => (lines) => {
3635
3635
  if (lines <= RECOMMENDED_LINES) return Option.none();
@@ -3637,19 +3637,19 @@ const problemFor$9 = (file) => (lines) => {
3637
3637
  file,
3638
3638
  line: 201,
3639
3639
  column: FIRST$24,
3640
- rule: RULE$71,
3640
+ rule: RULE$72,
3641
3641
  message: `has ${String(lines)} lines. Claude Code recommends under ${String(RECOMMENDED_LINES)} lines per file: longer files cost context and are followed less reliably. Cut what the code already tells, and move rules shared across repositories into skills.`
3642
3642
  });
3643
3643
  };
3644
3644
  /** @internal */
3645
3645
  const checkAgentDocsLength = (root) => agentDocProblems(root, (file) => (source) => problemFor$9(file)(lineCount(source)));
3646
3646
  // src/features/check-placement/model/claude-link.ts
3647
- const RULE$70 = "claude-md-link";
3647
+ const RULE$71 = "claude-md-link";
3648
3648
  const CLAUDE = "CLAUDE.md";
3649
3649
  const AGENTS = "AGENTS.md";
3650
3650
  const FIRST$23 = 1;
3651
3651
  const READ_CONCURRENCY$38 = 16;
3652
- const MESSAGE$14 = "CLAUDE.md must be a symbolic link to AGENTS.md";
3652
+ const MESSAGE$15 = "CLAUDE.md must be a symbolic link to AGENTS.md";
3653
3653
  /** @internal */
3654
3654
  const checkClaudeLinks = Effect.fn("checkClaudeLinks")(function* checkClaudeLinks(root) {
3655
3655
  const files = yield* RepositoryFiles;
@@ -3663,8 +3663,8 @@ const checkClaudeLinks = Effect.fn("checkClaudeLinks")(function* checkClaudeLink
3663
3663
  file: path,
3664
3664
  line: FIRST$23,
3665
3665
  column: FIRST$23,
3666
- rule: RULE$70,
3667
- message: MESSAGE$14
3666
+ rule: RULE$71,
3667
+ message: MESSAGE$15
3668
3668
  })));
3669
3669
  });
3670
3670
  const claude = pipe(listed, Array$1.filter((name) => files.basename(name) === CLAUDE));
@@ -3672,7 +3672,7 @@ const checkClaudeLinks = Effect.fn("checkClaudeLinks")(function* checkClaudeLink
3672
3672
  return Array$1.getSomes(found);
3673
3673
  });
3674
3674
  // src/features/check-placement/model/dangling-links.ts
3675
- const RULE$69 = "dangling-link";
3675
+ const RULE$70 = "dangling-link";
3676
3676
  const SEPARATOR$25 = "/";
3677
3677
  const FIRST$22 = 1;
3678
3678
  const READ_CONCURRENCY$37 = 16;
@@ -3688,7 +3688,7 @@ const checkDanglingLinks = Effect.fn("checkDanglingLinks")(function* checkDangli
3688
3688
  file,
3689
3689
  line: FIRST$22,
3690
3690
  column: FIRST$22,
3691
- rule: RULE$69,
3691
+ rule: RULE$70,
3692
3692
  message: `is a link to ${target}, where no file is tracked. A fresh checkout gets a link to nothing, and GitHub Actions fails to load the repository's actions. Track a file there, such as .gitkeep, or delete the link.`
3693
3693
  })));
3694
3694
  });
@@ -3746,7 +3746,7 @@ const readReadme = Effect.fn("readReadme")(function* readReadme({ root, director
3746
3746
  }));
3747
3747
  });
3748
3748
  // src/features/check-placement/model/deployed-readme.ts
3749
- const RULE$68 = "deployed-readme";
3749
+ const RULE$69 = "deployed-readme";
3750
3750
  const ROOT_DIRECTORY$4 = "";
3751
3751
  const READ_CONCURRENCY$36 = 16;
3752
3752
  const MISSING_MESSAGE$2 = "is missing. This workspace has an Alchemy stack that serves an address, so give it a README.md that says what it is and links its URL.";
@@ -3786,14 +3786,14 @@ const problemIn$7 = Effect.fn("problemIn")(function* problemIn(root, directory)
3786
3786
  const readme = yield* readReadme({
3787
3787
  root,
3788
3788
  directory,
3789
- rule: RULE$68,
3789
+ rule: RULE$69,
3790
3790
  missingMessage: MISSING_MESSAGE$2
3791
3791
  });
3792
3792
  return Result.match(readme, {
3793
3793
  onFailure: Option.some,
3794
3794
  onSuccess: ({ file, source }) => pipe(Option.liftPredicate(source, (text) => !URL_PATTERN.test(text)), Option.map(() => fileProblem$1({
3795
3795
  file,
3796
- rule: RULE$68,
3796
+ rule: RULE$69,
3797
3797
  message: NO_URL_MESSAGE
3798
3798
  })))
3799
3799
  });
@@ -3810,7 +3810,7 @@ const checkDeployedReadme = Effect.fn("checkDeployedReadme")(function* checkDepl
3810
3810
  return Array$1.getSomes(found);
3811
3811
  });
3812
3812
  // src/features/check-placement/model/nested-docs.ts
3813
- const RULE$67 = "nested-docs";
3813
+ const RULE$68 = "nested-docs";
3814
3814
  const CONFIG_FILE$9 = "vite.config.ts";
3815
3815
  const SEPARATOR$23 = "/";
3816
3816
  const READ_CONCURRENCY$35 = 64;
@@ -3823,7 +3823,7 @@ const RootConfig$1 = Schema.Struct({ msch: Schema.Struct({ workspaceAgentsMd: Sc
3823
3823
  const taggedError$13 = Schema.TaggedError;
3824
3824
  var RootConfigUnreadable = class extends taggedError$13()("RootConfigUnreadable", { file: Schema.String }) {};
3825
3825
  const isNested = (name) => String$1.includes(SEPARATOR$23)(name);
3826
- const problemFor$8 = problemInFile(RULE$67);
3826
+ const problemFor$8 = problemInFile(RULE$68);
3827
3827
  const AGENT_DOCS_MESSAGE = "belongs only at the repository root. Move what agents need into the root AGENTS.md and delete this file.";
3828
3828
  const WORKSPACE_AGENT_DOCS_MESSAGE = "belongs only at the repository root or as AGENTS.md directly in a workspace, the directory that holds its package.json. Move what agents need there and delete this file.";
3829
3829
  const MISSING_MESSAGE$1 = "has no AGENTS.md next to it. This repository sets msch.workspaceAgentsMd, so every workspace describes what it is for and the rules that apply only there in its own AGENTS.md.";
@@ -3880,15 +3880,15 @@ const checkNestedDocs = Effect.fn("checkNestedDocs")(function* checkNestedDocs(r
3880
3880
  return [...Array$1.getSomes(found), ...missing];
3881
3881
  });
3882
3882
  // src/features/check-placement/model/published-readme.ts
3883
- const RULE$66 = "published-readme";
3883
+ const RULE$67 = "published-readme";
3884
3884
  const READ_CONCURRENCY$34 = 16;
3885
- const MESSAGE$13 = "contains Japanese. This package is published to npm, so write its README in English.";
3885
+ const MESSAGE$14 = "contains Japanese. This package is published to npm, so write its README in English.";
3886
3886
  const MISSING_MESSAGE = "is missing. This package is published to npm, so give it an English README.md.";
3887
3887
  const problemIn$5 = Effect.fn("problemIn")(function* problemIn(root, { directory }) {
3888
3888
  const readme = yield* readReadme({
3889
3889
  root,
3890
3890
  directory,
3891
- rule: RULE$66,
3891
+ rule: RULE$67,
3892
3892
  missingMessage: MISSING_MESSAGE
3893
3893
  });
3894
3894
  return Result.match(readme, {
@@ -3899,8 +3899,8 @@ const problemIn$5 = Effect.fn("problemIn")(function* problemIn(root, { directory
3899
3899
  file,
3900
3900
  line,
3901
3901
  column,
3902
- rule: RULE$66,
3903
- message: MESSAGE$13
3902
+ rule: RULE$67,
3903
+ message: MESSAGE$14
3904
3904
  };
3905
3905
  }))
3906
3906
  });
@@ -3912,10 +3912,10 @@ const checkPublishedReadme = Effect.fn("checkPublishedReadme")(function* checkPu
3912
3912
  return Array$1.getSomes(found);
3913
3913
  });
3914
3914
  // src/features/check-placement/model/published-tests.ts
3915
- const RULE$65 = "published-tests";
3915
+ const RULE$66 = "published-tests";
3916
3916
  const FILE_START = 1;
3917
3917
  const TEST_FILE$3 = /\.test\.[cm]?[jt]sx?$/u;
3918
- const MESSAGE$12 = "belongs to a package published to npm that has no tests. Write tests for what the package offers before publishing it.";
3918
+ const MESSAGE$13 = "belongs to a package published to npm that has no tests. Write tests for what the package offers before publishing it.";
3919
3919
  const testedIn = (listed) => (prefix) => pipe(listed, Array$1.some((file) => String$1.startsWith(prefix)(file) && TEST_FILE$3.test(file)));
3920
3920
  const problemFor$7 = Effect.fn("problemFor")(function* problemFor(root, listed, { directory }) {
3921
3921
  const files = yield* RepositoryFiles;
@@ -3926,8 +3926,8 @@ const problemFor$7 = Effect.fn("problemFor")(function* problemFor(root, listed,
3926
3926
  file: files.join(absolute, PACKAGE_JSON_FILE),
3927
3927
  line: FILE_START,
3928
3928
  column: FILE_START,
3929
- rule: RULE$65,
3930
- message: MESSAGE$12
3929
+ rule: RULE$66,
3930
+ message: MESSAGE$13
3931
3931
  });
3932
3932
  });
3933
3933
  /** @internal */
@@ -3940,12 +3940,12 @@ const checkPublishedTests = Effect.fn("checkPublishedTests")(function* checkPubl
3940
3940
  return Array$1.getSomes(found);
3941
3941
  });
3942
3942
  // src/features/check-placement/model/root-docs.ts
3943
- const RULE$64 = "root-docs";
3943
+ const RULE$65 = "root-docs";
3944
3944
  const SEPARATOR$22 = "/";
3945
3945
  const FIRST$20 = 1;
3946
3946
  const MARKDOWN$6 = /\.(?:md|mdx|markdown)$/iu;
3947
3947
  const ALLOWED$1 = /^(?:README(?:\.[^/]+)?|AGENTS|CLAUDE|ARCHITECTURE|DESIGN|CHANGELOG|LICENSE|NOTICE)\.(?:md|mdx|markdown)$/iu;
3948
- const MESSAGE$11 = "is a hand-written document outside the places documents belong. Hand-written text goes only in the root README.md, AGENTS.md, CLAUDE.md, ARCHITECTURE.md and DESIGN.md, and under docs/. Move what is still true and not already told by the code into one of them, and delete this file.";
3948
+ const MESSAGE$12 = "is a hand-written document outside the places documents belong. Hand-written text goes only in the root README.md, AGENTS.md, CLAUDE.md, ARCHITECTURE.md and DESIGN.md, and under docs/. Move what is still true and not already told by the code into one of them, and delete this file.";
3949
3949
  const isStrayRootDoc = (name) => !String$1.includes(SEPARATOR$22)(name) && MARKDOWN$6.test(name) && !ALLOWED$1.test(name);
3950
3950
  /** @internal */
3951
3951
  const checkRootDocs = Effect.fn("checkRootDocs")(function* checkRootDocs(root) {
@@ -3955,12 +3955,12 @@ const checkRootDocs = Effect.fn("checkRootDocs")(function* checkRootDocs(root) {
3955
3955
  file: files.join(root, name),
3956
3956
  line: FIRST$20,
3957
3957
  column: FIRST$20,
3958
- rule: RULE$64,
3959
- message: `${name} ${MESSAGE$11}`
3958
+ rule: RULE$65,
3959
+ message: `${name} ${MESSAGE$12}`
3960
3960
  })));
3961
3961
  });
3962
3962
  // src/features/check-placement/model/root-readme.ts
3963
- const RULE$63 = "root-readme";
3963
+ const RULE$64 = "root-readme";
3964
3964
  const ROOT_DOC = /^(?:README(?:\.[^/]+)?|AGENTS\.md|CLAUDE\.md)$/iu;
3965
3965
  const READ_CONCURRENCY$33 = 16;
3966
3966
  const START$31 = 0;
@@ -4003,7 +4003,7 @@ const problemsIn$21 = (file, source, plugins) => (workspace) => {
4003
4003
  const message = messageFor$5(workspace.directory);
4004
4004
  const at = positionOf(source);
4005
4005
  const pattern = patternFor(plugins)(workspace);
4006
- return pipe(Array$1.fromIterable(String$1.matchAll(pattern)(source)), Array$1.map((found) => problemAtPosition(RULE$63)(file, at(found.index ?? START$31), message)));
4006
+ return pipe(Array$1.fromIterable(String$1.matchAll(pattern)(source)), Array$1.map((found) => problemAtPosition(RULE$64)(file, at(found.index ?? START$31), message)));
4007
4007
  };
4008
4008
  const problemsInReadme = Effect.fn("problemsInReadme")(function* problemsInReadme(file, workspaces, plugins) {
4009
4009
  const text = yield* (yield* RepositoryFiles).readFile(file);
@@ -4040,7 +4040,7 @@ const checkDocPlacement = Effect.fn("checkDocPlacement")(function* checkDocPlace
4040
4040
  return Array$1.flatten(found);
4041
4041
  });
4042
4042
  // src/features/check-placement/model/docs-mirror.ts
4043
- const RULE$62 = "docs-mirror";
4043
+ const RULE$63 = "docs-mirror";
4044
4044
  const DOC = /(?:^|\/)(?:README|AGENTS|ARCHITECTURE|CLAUDE|SKILL)\.md$/u;
4045
4045
  const MIRROR_LIMIT = 3;
4046
4046
  const READ_CONCURRENCY$32 = 16;
@@ -4065,7 +4065,7 @@ const problemFor$6 = (file, source, mentions) => pipe(Array$1.head(mentions), Op
4065
4065
  file,
4066
4066
  line,
4067
4067
  column,
4068
- rule: RULE$62,
4068
+ rule: RULE$63,
4069
4069
  message: `names ${String(mentions.length)} other workspaces (${describe(mentions)}). The workspace list and each package.json already declare them, so this copy goes stale. Point at the declaration instead of listing it.`
4070
4070
  };
4071
4071
  }), Option.toArray);
@@ -4097,10 +4097,10 @@ const checkDocsMirror = Effect.fn("checkDocsMirror")(function* checkDocsMirror(r
4097
4097
  return Array$1.flatten(found);
4098
4098
  });
4099
4099
  // src/features/check-placement/model/ignored-sources.ts
4100
- const RULE$61 = "ignored-sources";
4100
+ const RULE$62 = "ignored-sources";
4101
4101
  const SOURCES = [":(glob)**/src/**", ":(exclude,glob)**/node_modules/**"];
4102
4102
  const FIRST$19 = 1;
4103
- const MESSAGE$10 = "is under src/ but .gitignore ignores it, so verify passes here while the file never reaches the commit. Narrow the pattern in .gitignore.";
4103
+ const MESSAGE$11 = "is under src/ but .gitignore ignores it, so verify passes here while the file never reaches the commit. Narrow the pattern in .gitignore.";
4104
4104
  /** @internal */
4105
4105
  const checkIgnoredSources = Effect.fn("checkIgnoredSources")(function* checkIgnoredSources(root) {
4106
4106
  const files = yield* RepositoryFiles;
@@ -4109,8 +4109,8 @@ const checkIgnoredSources = Effect.fn("checkIgnoredSources")(function* checkIgno
4109
4109
  file: files.join(root, file),
4110
4110
  line: FIRST$19,
4111
4111
  column: FIRST$19,
4112
- rule: RULE$61,
4113
- message: MESSAGE$10
4112
+ rule: RULE$62,
4113
+ message: MESSAGE$11
4114
4114
  })));
4115
4115
  });
4116
4116
  // src/features/check-placement/model/public-entries.ts
@@ -12866,13 +12866,13 @@ const checkRustModules = Effect.fn("checkRustModules")(function* checkRustModule
12866
12866
  return [...sliceNameProblems(root, files.join, sources), ...Array$1.flatMap(Array$1.getSomes(read), problemsOf$4)];
12867
12867
  });
12868
12868
  // src/features/check-placement/model/shadcn-ui-alias.ts
12869
- const RULE$60 = "shadcn-ui-alias";
12869
+ const RULE$61 = "shadcn-ui-alias";
12870
12870
  const FIRST$18 = 1;
12871
12871
  const problemOf$12 = (directory, { file, alias }) => ({
12872
12872
  file,
12873
12873
  line: FIRST$18,
12874
12874
  column: FIRST$18,
12875
- rule: RULE$60,
12875
+ rule: RULE$61,
12876
12876
  message: `aliases.ui "${alias}" in ${directory}/components.json does not resolve to a directory through the imports of ${directory}/package.json. shadcn lint and msch then cannot tell which files are the design-system components. Point the alias at a "#/" import, such as "#/shared/ui", and map "#/*" to "./src/*".`
12877
12877
  });
12878
12878
  /** @internal */
@@ -13140,7 +13140,7 @@ const tsconfigMentions = Effect.fn("tsconfigMentions")(function* tsconfigMention
13140
13140
  ])));
13141
13141
  });
13142
13142
  // src/features/check-repository-layout/model/config-paths.ts
13143
- const RULE$59 = "config-path";
13143
+ const RULE$60 = "config-path";
13144
13144
  const WORKSPACE_FILE$4 = "pnpm-workspace.yaml";
13145
13145
  const CARGO_MANIFEST = /(?:^|\/)Cargo\.toml$/u;
13146
13146
  const TSCONFIG = /(?:^|\/)tsconfig(?:\.[\w-]+)?\.json$/u;
@@ -13159,7 +13159,7 @@ const byIndex = Order.mapInput(Order.Number, ({ index }) => index);
13159
13159
  const problemOf$11 = (file, source) => (mention) => ({
13160
13160
  file,
13161
13161
  ...positionOf(source)(mention.index),
13162
- rule: RULE$59,
13162
+ rule: RULE$60,
13163
13163
  message: `${mention.field} names ${mention.text}, which does not exist in this repository. Point it at a path that exists or remove the entry.`
13164
13164
  });
13165
13165
  const mentionsIn = Effect.fn("mentionsIn")(function* mentionsIn(file, source) {
@@ -13184,7 +13184,7 @@ const unmatchedPatterns = Effect.fn("unmatchedPatterns")(function* unmatchedPatt
13184
13184
  return pipe(patterns, Array$1.map((pattern) => ({
13185
13185
  file,
13186
13186
  ...positionOf(source.value)(indexOfText(source.value)(pattern)),
13187
- rule: RULE$59,
13187
+ rule: RULE$60,
13188
13188
  message: `packages lists ${pattern}, which matches no workspace package. Point it at directories that have a package.json or remove the entry.`
13189
13189
  })));
13190
13190
  });
@@ -13196,7 +13196,7 @@ const checkConfigPaths = Effect.fn("checkConfigPaths")(function* checkConfigPath
13196
13196
  return [...Array$1.flatten(found), ...patterns];
13197
13197
  });
13198
13198
  // src/features/check-repository-layout/model/crates.ts
13199
- const RULE$58 = "unverified-crate";
13199
+ const RULE$59 = "unverified-crate";
13200
13200
  const VERSION_RULE = "release-version";
13201
13201
  const APP_DIRECTORIES = ["", "src-tauri"];
13202
13202
  const CARGO_FILE$1 = "Cargo.toml";
@@ -13208,7 +13208,7 @@ const problemFor$5 = (crate, message) => ({
13208
13208
  file: crate.manifest,
13209
13209
  line: FIRST$16,
13210
13210
  column: FIRST$16,
13211
- rule: RULE$58,
13211
+ rule: RULE$59,
13212
13212
  message: `crate ${crate.name} ${message}, so vp run verify never checks it.`
13213
13213
  });
13214
13214
  const problemIn$3 = Effect.fn("problemIn")(function* problemIn(root, directories, crate) {
@@ -13244,7 +13244,7 @@ const checkCrates = Effect.fn("checkCrates")(function* checkCrates(root) {
13244
13244
  return Array$1.getSomes(Array$1.flatten(found));
13245
13245
  });
13246
13246
  // src/features/check-repository-layout/model/deploy-entry-patterns.ts
13247
- const RULE$57 = "deploy-entry-pattern";
13247
+ const RULE$58 = "deploy-entry-pattern";
13248
13248
  const FALLOW_KEYS = [
13249
13249
  "entry",
13250
13250
  "entryPoints",
@@ -13263,7 +13263,7 @@ const ROOT_WORKSPACE = ".";
13263
13263
  const WRAP_OFFSET$1 = 1;
13264
13264
  const NO_OFFSET = 0;
13265
13265
  const READ_CONCURRENCY$27 = 8;
13266
- const MESSAGE$9 = "selects deploy entries by their name or location. A deploy entry is the file that an Alchemy resource names in main, and its name and place change with the code. Use workspaceSettings().lint.deployEntries in lint settings; fallow reads main from the stack by itself.";
13266
+ const MESSAGE$10 = "selects deploy entries by their name or location. A deploy entry is the file that an Alchemy resource names in main, and its name and place change with the code. Use workspaceSettings().lint.deployEntries in lint settings; fallow reads main from the stack by itself.";
13267
13267
  const decodeKey$1 = Schema.decodeUnknownOption(KeySchema);
13268
13268
  const FALLOW = {
13269
13269
  keys: FALLOW_KEYS,
@@ -13315,8 +13315,8 @@ const problemsIn$18 = Effect.fn("problemsIn")(function* problemsIn(request) {
13315
13315
  return pipe(Array$1.getSomes(flagged), Array$1.map(({ text: pattern, start }) => ({
13316
13316
  file: path,
13317
13317
  ...positionOf(text.value)(start - kind.offset),
13318
- rule: RULE$57,
13319
- message: `${pattern} ${MESSAGE$9}`
13318
+ rule: RULE$58,
13319
+ message: `${pattern} ${MESSAGE$10}`
13320
13320
  })));
13321
13321
  });
13322
13322
  /** @internal */
@@ -13348,7 +13348,7 @@ const checkDeployEntryPatterns = Effect.fn("checkDeployEntryPatterns")(function*
13348
13348
  return Array$1.flatten(found);
13349
13349
  });
13350
13350
  // src/features/check-repository-layout/model/fallow-entries.ts
13351
- const RULE$56 = "listed-entry";
13351
+ const RULE$57 = "listed-entry";
13352
13352
  const ENTRY_KEYS = [
13353
13353
  "entry",
13354
13354
  "entryPoints",
@@ -13378,7 +13378,7 @@ const problemsIn$17 = Effect.fn("problemsIn")(function* problemsIn(root, file, d
13378
13378
  return pipe(entryPatternsIn(parsed.program), Array$1.filter(namesOneFile(directories)), Array$1.map(({ text: pattern, start }) => ({
13379
13379
  file: path,
13380
13380
  ...positionOf(text.value)(start),
13381
- rule: RULE$56,
13381
+ rule: RULE$57,
13382
13382
  message: `${pattern} names files one by one. Let fallow find the file through what declares it: package.json bin and exports, a tool's config file, or the main of the Alchemy resource that deploys it.`
13383
13383
  })));
13384
13384
  });
@@ -13390,7 +13390,7 @@ const checkFallowEntries = Effect.fn("checkFallowEntries")(function* checkFallow
13390
13390
  return Array$1.flatten(found);
13391
13391
  });
13392
13392
  // src/features/check-repository-layout/model/root-workspace-paths.ts
13393
- const RULE$55 = "root-workspace-path";
13393
+ const RULE$56 = "root-workspace-path";
13394
13394
  const CONFIG_FILE$7 = "vite.config.ts";
13395
13395
  const PATH_CHARACTER = /[\w.@/-]/u;
13396
13396
  const NAME_CHARACTER = /[\w.@-]/u;
@@ -13409,7 +13409,7 @@ const mentions = (directory) => (text) => {
13409
13409
  const problemsIn$16 = (file, source, directories) => (found) => pipe(directories, Array$1.filter((directory) => mentions(directory)(found.text)), Array$1.map((directory) => ({
13410
13410
  file,
13411
13411
  ...positionOf(source)(found.start),
13412
- rule: RULE$55,
13412
+ rule: RULE$56,
13413
13413
  message: `${directory} is a workspace. The root ${CONFIG_FILE$7} holds what applies to every workspace, so move what only ${directory} needs into ${directory}/${CONFIG_FILE$7}: msch.lint, msch.devDependencies or its verify task.`
13414
13414
  })));
13415
13415
  /** @internal */
@@ -13423,7 +13423,7 @@ const checkRootWorkspacePaths = Effect.fn("checkRootWorkspacePaths")(function* c
13423
13423
  return pipe(stringsIn(parsed.program), Array$1.flatMap(problemsIn$16(file, source.value, directories)));
13424
13424
  });
13425
13425
  // src/features/check-repository-layout/model/hidden-verify.ts
13426
- const RULE$54 = "hidden-verify";
13426
+ const RULE$55 = "hidden-verify";
13427
13427
  const CONFIG_FILE$6 = "vite.config.ts";
13428
13428
  const FIRST$14 = 1;
13429
13429
  const READ_CONCURRENCY$25 = 8;
@@ -13437,7 +13437,7 @@ const problemIn$2 = Effect.fn("problemIn")(function* problemIn(root, directory)
13437
13437
  file,
13438
13438
  line: FIRST$14,
13439
13439
  column: FIRST$14,
13440
- rule: RULE$54,
13440
+ rule: RULE$55,
13441
13441
  message: `${directory} gets its verify task from code outside ${CONFIG_FILE$6}. The root verify reads ${CONFIG_FILE$6} without running it, so it never runs this verify. Write run.tasks.verify in ${directory}/${CONFIG_FILE$6}.`
13442
13442
  }).pipe(Option.filter(() => verified));
13443
13443
  });
@@ -13448,7 +13448,7 @@ const checkHiddenVerify = Effect.fn("checkHiddenVerify")(function* checkHiddenVe
13448
13448
  return Array$1.getSomes(found);
13449
13449
  });
13450
13450
  // src/features/check-repository-layout/model/shared-uncached-tasks.ts
13451
- const RULE$53 = "shared-uncached-task";
13451
+ const RULE$54 = "shared-uncached-task";
13452
13452
  const READ_CONCURRENCY$24 = 8;
13453
13453
  const SHARED = 2;
13454
13454
  const OWN_PROGRAM = /^(?:node|vpx|bun|deno|tsx)$|\//u;
@@ -13491,7 +13491,7 @@ const problemsOf$3 = (definitions) => {
13491
13491
  return pipe(definitions, Array$1.map(({ file, position, name, command }) => ({
13492
13492
  file,
13493
13493
  ...position,
13494
- rule: RULE$53,
13494
+ rule: RULE$54,
13495
13495
  message: `The uncached task ${name} (${command}) is written the same way in ${Array$1.join(directories, ", ")}. Write it once in a shared helper and spread it into each run.tasks, so that a change to it reaches every workspace.`
13496
13496
  })));
13497
13497
  };
@@ -13502,7 +13502,7 @@ const checkSharedUncachedTasks = Effect.fn("checkSharedUncachedTasks")(function*
13502
13502
  return pipe(Array$1.flatten(found), Array$1.groupBy(({ name, definition }) => `${name}\u0000${definition}`), Record.values, Array$1.flatMap(problemsOf$3));
13503
13503
  });
13504
13504
  // src/features/check-repository-layout/model/tested-verify.ts
13505
- const RULE$52 = "tested-verify";
13505
+ const RULE$53 = "tested-verify";
13506
13506
  const READ_CONCURRENCY$23 = 8;
13507
13507
  const TESTS = new Set(TEST_TASK_NAMES);
13508
13508
  const RUNS_TESTS = /\b(?:vp|cargo) test\b/u;
@@ -13531,7 +13531,7 @@ const problemsIn$15 = Effect.fn("problemsIn")(function* problemsIn(root, directo
13531
13531
  return pipe(Option.toArray(config), Array$1.flatMap(({ file, source, program }) => pipe(testedEdges(runTasksIn(program)), Array$1.map(({ to, at }) => ({
13532
13532
  file,
13533
13533
  ...positionOf(source)(at.start),
13534
- rule: RULE$52,
13534
+ rule: RULE$53,
13535
13535
  message: `The verify task of ${directory} runs tests through ${to}. verify is what the pre-push hook runs, and tests run in CI through the root ci task, which runs the test and cargo-test tasks of every workspace. Move them into this workspace's test or cargo-test task, and take them out of verify.`
13536
13536
  })))));
13537
13537
  });
@@ -13542,7 +13542,7 @@ const checkTestedVerify = Effect.fn("checkTestedVerify")(function* checkTestedVe
13542
13542
  return Array$1.flatten(found);
13543
13543
  });
13544
13544
  // src/features/check-repository-layout/model/unlocked-tasks.ts
13545
- const RULE$51 = "unlocked-task";
13545
+ const RULE$52 = "unlocked-task";
13546
13546
  const READ_CONCURRENCY$22 = 8;
13547
13547
  const READS_DEPENDENCIES = /^vp (?:test|pack|build)\b/u;
13548
13548
  const decodeCommand = Schema.decodeUnknownOption(Schema.Union([Schema.String, Schema.NonEmptyArray(Schema.String)]));
@@ -13554,7 +13554,7 @@ const tracksLockfiles = (task) => pipe(propertyValue("cache")(task.value), Optio
13554
13554
  const problemsOf$2 = ({ file, source, tasks }) => pipe(tasks, Array$1.filter(tracksLockfiles), Array$1.flatMap((task) => pipe(commandOf(task), Option.map((command) => ({
13555
13555
  file,
13556
13556
  ...positionOf(source)(task.start),
13557
- rule: RULE$51,
13557
+ rule: RULE$52,
13558
13558
  message: `The task ${keyName(task.key)} runs ${command} with inputs written by hand. It then reruns after every lockfile change, and it does not rerun when a dependency of a dependency moves. Set cache to LOCKED from @r_masseater/msch/locked-inputs.`
13559
13559
  })), Option.toArray)));
13560
13560
  /** @internal */
@@ -13870,7 +13870,7 @@ const baseRevision = Effect.fn("baseRevision")(function* baseRevision(root) {
13870
13870
  return yield* files.mergeBase(root, base);
13871
13871
  });
13872
13872
  // src/features/check-migration-order/model/migration-order.ts
13873
- const RULE$50 = "migration-order";
13873
+ const RULE$51 = "migration-order";
13874
13874
  const SNAPSHOT = "snapshot.json";
13875
13875
  const MIGRATION = "migration.sql";
13876
13876
  const SNAPSHOTS = [`*/${SNAPSHOT}`];
@@ -13904,7 +13904,7 @@ const outOfOrder = (root, base, join) => (migrations) => pipe(latestOf(migration
13904
13904
  file: join(root, file),
13905
13905
  line: FIRST$13,
13906
13906
  column: FIRST$13,
13907
- rule: RULE$50,
13907
+ rule: RULE$51,
13908
13908
  message: `${folder} is new, but it sorts before ${latest.folder}, which ${base} already has. A database that has applied ${latest.folder} rejects an earlier migration, so delete ${folder} and generate it again after ${latest.folder}.`
13909
13909
  })))), Option.getOrElse(() => []));
13910
13910
  /** @internal */
@@ -13955,7 +13955,7 @@ const unresolvedFrom = (entries) => Effect.acquireUseRelease(Effect.tryPromise({
13955
13955
  catch: bundleErrorDetail
13956
13956
  }), (bundle) => Effect.promise(() => bundle.close())).pipe(Effect.map(({ output }) => unresolvedIn(pipe(output, Array$1.filter(isChunk$1)))));
13957
13957
  // src/features/check-plugin-dependencies/model/plugin-dependencies.ts
13958
- const RULE$49 = "plugin-dependencies";
13958
+ const RULE$50 = "plugin-dependencies";
13959
13959
  const PLUGIN_FILE$3 = ".claude-plugin/plugin.json";
13960
13960
  const LOCK_FILE = "bun.lock";
13961
13961
  const SOURCE_FILE$1 = /\.[cm]?[jt]sx?$/u;
@@ -13964,7 +13964,7 @@ const SUCCESS$6 = 0;
13964
13964
  const NOT_STARTED = -1;
13965
13965
  const DETAIL_LINES = 3;
13966
13966
  const PLUGIN_CONCURRENCY = 2;
13967
- const problemFor$4 = problemInFile(RULE$49);
13967
+ const problemFor$4 = problemInFile(RULE$50);
13968
13968
  const hasDependencies = Effect.fn("hasDependencies")(function* hasDependencies(directory) {
13969
13969
  const files = yield* RepositoryFiles;
13970
13970
  const text = yield* files.readFile(files.join(directory, PACKAGE_JSON_FILE));
@@ -14188,7 +14188,7 @@ const bundleScopeOf = ({ manifest, workspace }) => ({
14188
14188
  });
14189
14189
  const stackPackagesOf = ({ devDependencies }) => pipe(Option.fromUndefinedOr(devDependencies), Option.map(Record.filter((specifier) => specifier === STACK_CATALOG)), Option.map(Record.keys), Option.getOrElse(() => []));
14190
14190
  // src/features/check-tree-shaking/model/optional-peers.ts
14191
- const RULE$48 = "optional-peer";
14191
+ const RULE$49 = "optional-peer";
14192
14192
  const REQUIRED_RULE = "required-peer";
14193
14193
  const START$27 = 0;
14194
14194
  const SINGLE$1 = 1;
@@ -14205,7 +14205,7 @@ const positionIn = (located, key, name) => {
14205
14205
  const problemFor$3 = (located, name, importers) => ({
14206
14206
  file: located.file,
14207
14207
  ...positionIn(located, DEPENDENCIES_KEY, name),
14208
- rule: RULE$48,
14208
+ rule: RULE$49,
14209
14209
  message: `${name} is imported only from ${labelsOf$1(importers)}, so installing the other entries must not require it. Move it to peerDependencies, mark it optional in peerDependenciesMeta and keep it in devDependencies.`
14210
14210
  });
14211
14211
  const requiredPeerAdvice = (fromStack) => {
@@ -14241,7 +14241,7 @@ const requiredPeerProblems = ({ located, manifest, used }) => {
14241
14241
  }));
14242
14242
  };
14243
14243
  // src/features/check-tree-shaking/model/side-effects.ts
14244
- const RULE$47 = "side-effects";
14244
+ const RULE$48 = "side-effects";
14245
14245
  const BUNDLE_CONCURRENCY$2 = 4;
14246
14246
  const START$26 = 0;
14247
14247
  const FIRST$12 = 1;
@@ -14293,11 +14293,11 @@ const keyIndex$1 = (source) => pipe(String$1.indexOf(SIDE_EFFECTS_KEY)(source),
14293
14293
  const sideEffectProblems = ({ file, source, excesses }) => pipe(excesses, Array$1.sortBy(largest), Array$1.head, Option.map((worst) => ({
14294
14294
  file,
14295
14295
  ...positionOf(source)(keyIndex$1(source)),
14296
- rule: RULE$47,
14296
+ rule: RULE$48,
14297
14297
  message: messageOf$6(worst, excesses.length)
14298
14298
  })), Option.toArray);
14299
14299
  // src/features/check-tree-shaking/model/top-level-effects.ts
14300
- const RULE$46 = "top-level-effect";
14300
+ const RULE$47 = "top-level-effect";
14301
14301
  const CODE$1 = /\.[cm]?[jt]sx?$/u;
14302
14302
  const READ_CONCURRENCY$20 = 16;
14303
14303
  const IMPORT_MESSAGE = "imports a module only for its effect, but sideEffects in package.json does not list this file, so a bundler drops the import. Import what the module exports, or list the entry that exists for its effect in sideEffects.";
@@ -14313,7 +14313,7 @@ const messageOf$5 = (statement) => {
14313
14313
  const problemsIn$14 = (api) => (file) => (source) => {
14314
14314
  const retained = api.createSourceFile(file, source);
14315
14315
  const problems = pipe(retained.sourceFile.statements, Array$1.fromIterable, Array$1.filter(isEffect), Array$1.map((statement) => problemAt$6({
14316
- rule: RULE$46,
14316
+ rule: RULE$47,
14317
14317
  message: messageOf$5(statement)
14318
14318
  })(statement)));
14319
14319
  retained.dispose();
@@ -14482,7 +14482,7 @@ const checkTreeShaking = Effect.fn("checkTreeShaking")(function* checkTreeShakin
14482
14482
  return Array$1.flatten(found);
14483
14483
  });
14484
14484
  // src/features/check-typescript-generation/model/typescript-generation.ts
14485
- const RULE$45 = "legacy-typescript";
14485
+ const RULE$46 = "legacy-typescript";
14486
14486
  const LOCKFILE = "pnpm-lock.yaml";
14487
14487
  const COMPILER = "typescript";
14488
14488
  const CURRENT_MAJOR = 7;
@@ -14513,12 +14513,12 @@ const checkTypescriptGeneration = Effect.fn("checkTypescriptGeneration")(functio
14513
14513
  file,
14514
14514
  line: lineOf$4(source)(legacy.id),
14515
14515
  column: FIRST$11,
14516
- rule: RULE$45,
14516
+ rule: RULE$46,
14517
14517
  message: messageOf$4(legacy, dependentsOf$1(Option.getOrElse(nodes, () => []))(legacy.id))
14518
14518
  })));
14519
14519
  });
14520
14520
  // src/features/check-worker-bundles/model/worker-bundles.ts
14521
- const RULE$44 = "worker-bundle";
14521
+ const RULE$45 = "worker-bundle";
14522
14522
  const BUNDLE_CONCURRENCY = 4;
14523
14523
  const PLATFORM_MODULES = [/^cloudflare:/u, /^node:/u];
14524
14524
  const CONDITIONS = [
@@ -14529,7 +14529,7 @@ const CONDITIONS = [
14529
14529
  "module",
14530
14530
  "default"
14531
14531
  ];
14532
- const problemFor$2 = problemInFile(RULE$44);
14532
+ const problemFor$2 = problemInFile(RULE$45);
14533
14533
  const problemOf$10 = (file, detail) => problemFor$2(file, `does not bundle as a Worker, so the deploy would fail. ${detail}`);
14534
14534
  const bundleProblem = (file) => Effect.gen(function* bundle() {
14535
14535
  const built = yield* Effect.tryPromise({
@@ -14722,7 +14722,7 @@ const weakeningsOf = (expected) => (config) => [
14722
14722
  ...secretWeakenings(config.h56m, expected.secrets)
14723
14723
  ];
14724
14724
  // src/app/disabled-rules.ts
14725
- const RULE$43 = "disabled-rule";
14725
+ const RULE$44 = "disabled-rule";
14726
14726
  const CONFIG_FILE$5 = "vite.config.ts";
14727
14727
  const START$24 = 0;
14728
14728
  const SIDE_CONFIG = /(?:^|\/)(?:\.oxlintrc(?:\.jsonc?)?|oxlint\.config\.[cm]?[jt]s|\.oxlintignore|\.eslintrc(?:\.\w+)?|eslint\.config\.[cm]?[jt]s|\.eslintignore|\.textlintrc(?:\.\w+)?|\.textlintignore|\.markdownlint(?:-cli2)?(?:\.\w+)?|\.markdownlintignore|\.prettierignore|\.oxfmtrc(?:\.jsonc?)?|knip\.jsonc?)$/u;
@@ -14736,7 +14736,7 @@ const sideConfigs = Effect.fn("sideConfigs")(function* sideConfigs(root) {
14736
14736
  const files = yield* RepositoryFiles;
14737
14737
  const listed = yield* files.listedFiles(root);
14738
14738
  const isExempt = matcher(exempt);
14739
- return pipe(listed, Array$1.filter((name) => SIDE_CONFIG.test(name) && !isExempt(name)), Array$1.map((name) => problemAtIndex(RULE$43)(files.join(root, name), "")(START$24, SIDE_CONFIG_MESSAGE)));
14739
+ return pipe(listed, Array$1.filter((name) => SIDE_CONFIG.test(name) && !isExempt(name)), Array$1.map((name) => problemAtIndex(RULE$44)(files.join(root, name), "")(START$24, SIDE_CONFIG_MESSAGE)));
14740
14740
  });
14741
14741
  const configWeakenings = Effect.fn("configWeakenings")(function* configWeakenings(root, source) {
14742
14742
  const file = (yield* RepositoryFiles).join(root, CONFIG_FILE$5);
@@ -14748,7 +14748,7 @@ const configWeakenings = Effect.fn("configWeakenings")(function* configWeakening
14748
14748
  })
14749
14749
  });
14750
14750
  const expected = yield* expectationsIn(root);
14751
- const at = problemAtIndex(RULE$43)(file, source);
14751
+ const at = problemAtIndex(RULE$44)(file, source);
14752
14752
  return pipe(weakeningsOf(expected)(config), Array$1.map(({ anchor, message }) => at(Option.getOrElse(String$1.indexOf(anchor)(source), () => START$24), message)));
14753
14753
  });
14754
14754
  /** @internal */
@@ -14756,7 +14756,7 @@ const checkDisabledRules = Effect.fn("checkDisabledRules")(function* checkDisabl
14756
14756
  const files = yield* RepositoryFiles;
14757
14757
  const text = yield* files.readFile(files.join(root, CONFIG_FILE$5));
14758
14758
  if (Option.isNone(text)) return [];
14759
- return [...yield* configWeakenings(root, text.value).pipe(Effect.catchTag("DisabledRulesConfigUnreadable", ({ file, reason }) => Effect.succeed([problemAtIndex(RULE$43)(file, "")(START$24, `msch could not load this file: ${reason}`)]))), ...yield* sideConfigs(root)];
14759
+ return [...yield* configWeakenings(root, text.value).pipe(Effect.catchTag("DisabledRulesConfigUnreadable", ({ file, reason }) => Effect.succeed([problemAtIndex(RULE$44)(file, "")(START$24, `msch could not load this file: ${reason}`)]))), ...yield* sideConfigs(root)];
14760
14760
  });
14761
14761
  // src/app/build-checks.ts
14762
14762
  /** @internal */
@@ -14852,7 +14852,7 @@ const fileFactsIn = (checker) => (sourceFiles, excluded) => pipe(sourceFiles, Ar
14852
14852
  imports: importedFilesOf(checker)(sourceFile)
14853
14853
  })), Array$1.filter((facts) => Array$1.isReadonlyArrayNonEmpty(facts.values) || Array$1.isReadonlyArrayNonEmpty(facts.imports)));
14854
14854
  // src/features/check-value-owners/model/name-lists.ts
14855
- const RULE$42 = "hand-written-names";
14855
+ const RULE$43 = "hand-written-names";
14856
14856
  const TEST_FILE$1 = /\.test(?:\.[\w-]+)?\.[cm]?tsx?$/u;
14857
14857
  const nameListOf = (site) => {
14858
14858
  if (TEST_FILE$1.test(site.file) || site.values.length < 2) return Option.none();
@@ -14867,7 +14867,7 @@ const listedProblem = ({ file, line, column, names, reason }) => ({
14867
14867
  file,
14868
14868
  line,
14869
14869
  column,
14870
- rule: RULE$42,
14870
+ rule: RULE$43,
14871
14871
  message: `The names ${formatValues(names)} are listed by hand, but ${reason}`
14872
14872
  });
14873
14873
  const problemOf$9 = ({ list, reason }) => listedProblem({
@@ -15658,7 +15658,7 @@ const checkRepository = Effect.fn("checkRepository")(function* checkRepository(r
15658
15658
  return sortProblems([...ownerScan.problems, ...repositoryProblems(repository)(analyses)]);
15659
15659
  }, Effect.scoped);
15660
15660
  // src/features/source-code/find-namespace-destructuring/model/namespace-destructuring.ts
15661
- const RULE$41 = "namespace-destructuring";
15661
+ const RULE$42 = "namespace-destructuring";
15662
15662
  const LOCAL = /^[.#/]/u;
15663
15663
  const messageOf$3 = (name) => `Destructuring ${name}, which comes from a package, makes the bundler keep everything ${name} exports. Write ${name}.<member> where it is used.`;
15664
15664
  const isPackage = (specifier) => isStringLiteral(specifier) && !LOCAL.test(specifier.text);
@@ -15674,7 +15674,7 @@ const destructuredName = (declaration) => {
15674
15674
  return pipe(Option.fromUndefinedOr(declaration.initializer), Option.filter(isIdentifier), Option.map((initializer) => initializer.text));
15675
15675
  };
15676
15676
  const problemOf$8 = (names) => (declaration) => pipe(destructuredName(declaration), Option.filter((name) => names.includes(name)), Option.map((name) => problemAt$6({
15677
- rule: RULE$41,
15677
+ rule: RULE$42,
15678
15678
  message: messageOf$3(name)
15679
15679
  })), Option.map((report) => report(declaration)));
15680
15680
  const namespaceDestructuringIn = () => (sourceFile) => {
@@ -15682,7 +15682,7 @@ const namespaceDestructuringIn = () => (sourceFile) => {
15682
15682
  return pipe(descendantsOf(sourceFile), Array$1.filter(isVariableDeclaration), Array$1.map(problemOf$8(names)), Array$1.getSomes);
15683
15683
  };
15684
15684
  // src/features/source-code/find-pass-through-wrappers/model/pass-through-wrappers.ts
15685
- const RULE$40 = "pass-through-wrapper";
15685
+ const RULE$41 = "pass-through-wrapper";
15686
15686
  const SINGLE_STATEMENT = 1;
15687
15687
  const SINGLE_DECLARATION = 1;
15688
15688
  const THIS_PARAMETER = "this";
@@ -15779,7 +15779,7 @@ const isPassThrough = (checker) => (candidate) => (forward) => {
15779
15779
  const problemOf$7 = (checker) => (candidate) => {
15780
15780
  if (changesTheCall(candidate.wrapper)) return Option.none();
15781
15781
  return pipe(returnedExpression(candidate.wrapper), Option.flatMap(forwardOf), Option.filter(isPassThrough(checker)(candidate)), Option.map((forward) => problemAt$6({
15782
- rule: RULE$40,
15782
+ rule: RULE$41,
15783
15783
  message: messageOf$2(forward.callee.getText())
15784
15784
  })(candidate.name)));
15785
15785
  };
@@ -15802,7 +15802,7 @@ const repositoryOrigin = Effect.fn("repositoryOrigin")(function* repositoryOrigi
15802
15802
  /** @internal */
15803
15803
  const slugOf = ({ owner, name }) => `${owner}/${name}`;
15804
15804
  // src/features/check-agent-settings/model/known-plugins.ts
15805
- const RULE$39 = "known-plugins";
15805
+ const RULE$40 = "known-plugins";
15806
15806
  const SETTINGS_FILE$2 = ".claude/settings.json";
15807
15807
  const MARKETPLACE_FILE$2 = ".claude-plugin/marketplace.json";
15808
15808
  const GITHUB$5 = "github";
@@ -15823,7 +15823,7 @@ const MarketplaceSchema = Schema.Struct({
15823
15823
  plugins: Schema.Array(Schema.Struct({ name: Schema.String }))
15824
15824
  });
15825
15825
  const decodeMarketplace = Schema.decodeUnknownOption(Schema.fromJsonString(MarketplaceSchema));
15826
- const problem$5 = problemInFile(RULE$39);
15826
+ const problem$5 = problemInFile(RULE$40);
15827
15827
  const knownFrom = (repository, marketplace, settings) => pipe(Option.fromUndefinedOr(settings.extraKnownMarketplaces), Option.flatMap(Record.get(marketplace.name)), Option.exists(({ source }) => source.source === GITHUB$5 && source.repo === repository));
15828
15828
  const pluginEnabled = (settings) => (plugin) => pipe(Option.fromUndefinedOr(settings.enabledPlugins), Option.flatMap(Record.get(plugin)), Option.getOrElse(() => false));
15829
15829
  const pluginProblems = (marketplace, file, settings) => {
@@ -15848,7 +15848,7 @@ const checkKnownPlugins = Effect.fn("checkKnownPlugins")(function* checkKnownPlu
15848
15848
  }));
15849
15849
  });
15850
15850
  // src/features/check-agent-settings/model/missing-hooks.ts
15851
- const RULE$38 = "missing-hook";
15851
+ const RULE$39 = "missing-hook";
15852
15852
  const SETTINGS_FILE$1 = /^\.claude\/settings\.json$/u;
15853
15853
  const PLUGIN_HOOKS_FILE = /(?:^|\/)hooks\/hooks\.json$/u;
15854
15854
  const PROJECT_PATH = /(?<optional>--env-file-if-exists=)?\$\{?CLAUDE_PROJECT_DIR\}?(?:\\")?\/(?<path>[\w.@/-]+)/gu;
@@ -15873,7 +15873,7 @@ const problemsIn$13 = Effect.fn("problemsIn")(function* problemsIn({ root, file,
15873
15873
  return pipe(missing, Array$1.map(({ path, index }) => ({
15874
15874
  file,
15875
15875
  ...positionOf(source)(index),
15876
- rule: RULE$38,
15876
+ rule: RULE$39,
15877
15877
  message: `runs ${path}, which does not exist. The hook fails every time it fires. Point it at a file that exists or remove the hook.`
15878
15878
  })));
15879
15879
  });
@@ -15926,7 +15926,7 @@ const listedTasks = Effect.fn("listedTasks")(function* listedTasks(root) {
15926
15926
  }, Effect.scoped, Effect.orElseSucceed(() => Option.none()));
15927
15927
  const GivenTaskGraph = Context.Reference("msch/GivenTaskGraph", { defaultValue: () => Option.none() });
15928
15928
  // src/features/check-documented-commands/model/commands.ts
15929
- const RULE$37 = "documented-commands";
15929
+ const RULE$38 = "documented-commands";
15930
15930
  const DOCUMENTS = ["*AGENTS.md", "*CLAUDE.md"];
15931
15931
  const DOCUMENT_NAMES = /* @__PURE__ */ new Set(["AGENTS.md", "CLAUDE.md"]);
15932
15932
  const COMMAND = /`vp run (?<args>[^`]+)`/gu;
@@ -16004,7 +16004,7 @@ const isMissing = (graph, file) => ({ task, scope }) => !pipe(packagesOf(graph,
16004
16004
  const problemsIn$12 = (graph, absolute, { file, text }) => pipe(Array$1.fromIterable(String$1.matchAll(COMMAND)(text)), Array$1.flatMap((match) => pipe(Option.fromNullishOr(match.groups), Option.flatMap(Record.get(ARGS)), Option.flatMap(parsed), Option.filter(isMissing(graph, file)), Option.map(({ task, scope }) => ({
16005
16005
  file: absolute(file),
16006
16006
  ...positionOf(text)(match.index ?? START$22),
16007
- rule: RULE$37,
16007
+ rule: RULE$38,
16008
16008
  message: `${match[START$22]} runs task ${task}, but ${whereOf(scope, file)} has no such task. Fix the command or the task`
16009
16009
  })), Option.toArray)));
16010
16010
  const isDocument = (file) => pipe(String$1.split(file, SEPARATOR$12), Array$1.last, Option.exists((name) => DOCUMENT_NAMES.has(name)));
@@ -16029,14 +16029,14 @@ const checkDocumentedCommands = Effect.fn("checkDocumentedCommands")(function* c
16029
16029
  file: absolute(Array$1.headNonEmpty(commanded).file),
16030
16030
  line: ONE$2,
16031
16031
  column: ONE$2,
16032
- rule: RULE$37,
16032
+ rule: RULE$38,
16033
16033
  message: "msch could not list the tasks with `vp run --json`"
16034
16034
  }],
16035
16035
  onSome: (found) => pipe(commanded, Array$1.flatMap((document) => problemsIn$12(found, absolute, document)))
16036
16036
  });
16037
16037
  });
16038
16038
  // src/features/check-legacy-web/model/legacy-web.ts
16039
- const RULE$36 = "legacy-web";
16039
+ const RULE$37 = "legacy-web";
16040
16040
  const FIRST_COLUMN$7 = 1;
16041
16041
  const SCANNER = fileURLToPath(new URL("./skills/modern-web-guidance/modern-web.mjs", import.meta.resolve("modern-web-guidance/package.json")));
16042
16042
  const Finding = Schema.Struct({
@@ -16075,7 +16075,7 @@ const checkLegacyWeb = Effect.fn("checkLegacyWeb")(function* checkLegacyWeb(root
16075
16075
  file: files.join(root, file),
16076
16076
  line,
16077
16077
  column: FIRST_COLUMN$7,
16078
- rule: RULE$36,
16078
+ rule: RULE$37,
16079
16079
  message: `${ruleId}: ${message} Read the guide with \`modern-web-guidance retrieve ${guideId}\` and apply it.`
16080
16080
  });
16081
16081
  return pipe(scan.guides, Array$1.flatMap(({ guideId, rules }) => pipe(rules, Array$1.flatMap(({ ruleId, findings }) => pipe(findings, Array$1.map(problemOf(guideId, ruleId)))))));
@@ -16146,8 +16146,8 @@ const SHELL_SHEBANG = /^#!\S*(?:\/|\s)(?:env\s+)?(?:-\S+\s+)*(?:ba|z|k|da)?sh\b|
16146
16146
  const EXTENSION$1 = /\.[^./]+$/u;
16147
16147
  const SETTINGS_FILE = ".claude/settings.json";
16148
16148
  const READ_CONCURRENCY$18 = 64;
16149
- const RULE$35 = "shell-script";
16150
- const MESSAGE$8 = "is a shell script. Do the work in TypeScript as a Vite+ task in vite.config.ts, a test, or the tool's own hook, and delete this file. Only the SessionStart hook in .claude/settings.json, which installs the toolchain before TypeScript can run, stays a shell script.";
16149
+ const RULE$36 = "shell-script";
16150
+ const MESSAGE$9 = "is a shell script. Do the work in TypeScript as a Vite+ task in vite.config.ts, a test, or the tool's own hook, and delete this file. Only the SessionStart hook in .claude/settings.json, which installs the toolchain before TypeScript can run, stays a shell script.";
16151
16151
  const HookSchema = Schema.Struct({
16152
16152
  command: Schema.optional(Schema.String),
16153
16153
  args: Schema.String.pipe(Schema.Array, Schema.optional)
@@ -16179,7 +16179,7 @@ const checkShellScripts = Effect.fn("checkShellScripts")(function* checkShellScr
16179
16179
  };
16180
16180
  const candidates = pipe(names, Array$1.filter((name) => !isSessionStartHook(name)));
16181
16181
  const shell = yield* Effect.filter(candidates, isShell, { concurrency: READ_CONCURRENCY$18 });
16182
- return pipe(shell, Array$1.map((name) => problemInFile(RULE$35)(files.join(root, name), MESSAGE$8)));
16182
+ return pipe(shell, Array$1.map((name) => problemInFile(RULE$36)(files.join(root, name), MESSAGE$9)));
16183
16183
  });
16184
16184
  // src/features/check-structure/model/structure.ts
16185
16185
  const checkStructure = checkSection({
@@ -16417,7 +16417,7 @@ const commandSources = Effect.fn("commandSources")(function* commandSources(root
16417
16417
  return Array$1.flatten(found);
16418
16418
  });
16419
16419
  // src/features/check-vite-plus/model/package-scripts.ts
16420
- const RULE$34 = "package-script";
16420
+ const RULE$35 = "package-script";
16421
16421
  const LIFECYCLE = [
16422
16422
  "preinstall",
16423
16423
  "install",
@@ -16440,26 +16440,26 @@ const LIFECYCLE = [
16440
16440
  const problemOf$6 = ({ file, position, name }) => ({
16441
16441
  file,
16442
16442
  ...position,
16443
- rule: RULE$34,
16443
+ rule: RULE$35,
16444
16444
  message: `The script ${name} is not a lifecycle script. package.json scripts hold only the scripts the package manager runs by itself, such as prepare and prepack. Write ${name} as a task in run.tasks of this package's vite.config.ts, where its shape is type-checked.`
16445
16445
  });
16446
16446
  const packageScriptProblems = (sources) => pipe(sources, Array$1.filter(({ kind, name }) => kind === "script" && !Array$1.contains(LIFECYCLE, name)), Array$1.map(problemOf$6));
16447
16447
  // src/features/check-vite-plus/model/vite-plus-block.ts
16448
- const RULE$33 = "vite-plus-block";
16448
+ const RULE$34 = "vite-plus-block";
16449
16449
  const MARKER$1 = Array$1.join([
16450
16450
  "<!--",
16451
16451
  "VITE PLUS START",
16452
16452
  "-->"
16453
16453
  ], "");
16454
- const MESSAGE$7 = "holds the Vite+ block that `vp create --agent` and `vp migrate --agent` write, and every `vp config` rewrites it. Delete the block with its markers. The vite-plus skill reads the same guidance from node_modules/vite-plus/AGENTS.md.";
16454
+ const MESSAGE$8 = "holds the Vite+ block that `vp create --agent` and `vp migrate --agent` write, and every `vp config` rewrites it. Delete the block with its markers. The vite-plus skill reads the same guidance from node_modules/vite-plus/AGENTS.md.";
16455
16455
  const problemIn = (file) => (source) => {
16456
16456
  const index = String$1.indexOf(MARKER$1)(source);
16457
16457
  if (Option.isNone(index)) return Option.none();
16458
16458
  return Option.some({
16459
16459
  file,
16460
16460
  ...positionOf(source)(index.value),
16461
- rule: RULE$33,
16462
- message: MESSAGE$7
16461
+ rule: RULE$34,
16462
+ message: MESSAGE$8
16463
16463
  });
16464
16464
  };
16465
16465
  /** @internal */
@@ -16491,10 +16491,10 @@ const checkCiDrift = Effect.fn("checkCiDrift")(function* checkCiDrift(root) {
16491
16491
  return pipe(drifts, Array$1.map(problemOf$5));
16492
16492
  });
16493
16493
  // src/features/check-workflows/model/release-please.ts
16494
- const RULE$32 = "release-please";
16494
+ const RULE$33 = "release-please";
16495
16495
  const RELEASE_PLEASE_FILE = /(?:^|\/)(?:release-please-config|\.release-please-manifest)\.json$/u;
16496
16496
  const FIRST$8 = 1;
16497
- const MESSAGE$6 = "releases with release-please. Releases are manual: bump the version in a PR, then run the publish workflow, which runs `msch publish` for the workspace.";
16497
+ const MESSAGE$7 = "releases with release-please. Releases are manual: bump the version in a PR, then run the publish workflow, which runs `msch publish` for the workspace.";
16498
16498
  /** @internal */
16499
16499
  const checkReleasePlease = Effect.fn("checkReleasePlease")(function* checkReleasePlease(root) {
16500
16500
  const files = yield* RepositoryFiles;
@@ -16503,8 +16503,8 @@ const checkReleasePlease = Effect.fn("checkReleasePlease")(function* checkReleas
16503
16503
  file: files.join(root, name),
16504
16504
  line: FIRST$8,
16505
16505
  column: FIRST$8,
16506
- rule: RULE$32,
16507
- message: MESSAGE$6
16506
+ rule: RULE$33,
16507
+ message: MESSAGE$7
16508
16508
  })));
16509
16509
  });
16510
16510
  // src/features/check-workflows/model/workflow-lint.ts
@@ -16791,7 +16791,7 @@ const scannedFiles = Effect.fn("scannedFiles")(function* scannedFiles(root) {
16791
16791
  })), Array$1.filter(({ file }) => !HashSet.has(skipped, file)));
16792
16792
  });
16793
16793
  // src/features/ban-comments/model/comments.ts
16794
- const RULE$31 = "comment";
16794
+ const RULE$32 = "comment";
16795
16795
  const SUPPRESSION_RULE = "suppression";
16796
16796
  const UNUSED_RULE = "unused-comment-allowance";
16797
16797
  const CONFIG_FILE$3 = "vite.config.ts";
@@ -16801,7 +16801,7 @@ const SHEBANG = "#!";
16801
16801
  const PIN = /@(?:[0-9a-f]{40}|sha256:[0-9a-f]{64})\s*$/u;
16802
16802
  const VERSION = /^\s?v?\d[\w.+-]*$/u;
16803
16803
  const DELIMITERS = /^(?:\/\/|\/\*|<!--|<#|#|--)|(?:\*\/|-->|#>)$/gu;
16804
- const MESSAGE$5 = "Comments are not written in this repository. Say it with names and types in the code, put the reason in the commit message, and delete the comment.";
16804
+ const MESSAGE$6 = "Comments are not written in this repository. Say it with names and types in the code, put the reason in the commit message, and delete the comment.";
16805
16805
  const Patterns = Schema.Array(Schema.String);
16806
16806
  const CommentSettings = Schema.Struct({ allow: Patterns });
16807
16807
  const MschSettings = Schema.Struct({ comments: Schema.optional(CommentSettings) });
@@ -16823,7 +16823,7 @@ const NOTHING = {
16823
16823
  used: []
16824
16824
  };
16825
16825
  const unusedMessage = (entry) => `allows the comment pattern \`${entry}\`, but no comment in the repository matches it. Delete the entry and add it back when a comment needs it.`;
16826
- const problemOf$4 = (file, source) => (comment) => Match.value(isSuppression(comment)).pipe(Match.when(true, () => problemAtIndex(SUPPRESSION_RULE)(file, source)(comment.index, SUPPRESSION_MESSAGE)), Match.orElse(() => problemAtIndex(RULE$31)(file, source)(comment.index, MESSAGE$5)));
16826
+ const problemOf$4 = (file, source) => (comment) => Match.value(isSuppression(comment)).pipe(Match.when(true, () => problemAtIndex(SUPPRESSION_RULE)(file, source)(comment.index, SUPPRESSION_MESSAGE)), Match.orElse(() => problemAtIndex(RULE$32)(file, source)(comment.index, MESSAGE$6)));
16827
16827
  const settingsOf = ({ msch }) => ({ allow: pipe(Option.fromUndefinedOr(msch), Option.flatMap(({ comments }) => Option.fromUndefinedOr(comments)), Option.match({
16828
16828
  onNone: () => NO_SETTINGS.allow,
16829
16829
  onSome: ({ allow }) => allow
@@ -16860,7 +16860,7 @@ const scanFile = ({ directives, allowances, comments }) => ({ name, file }, sour
16860
16860
  problems: pipe(found, Array$1.filter(kept), Array$1.map(toProblem)),
16861
16861
  used: usedAllowances(allowances, found)
16862
16862
  })), Effect.catchTag("CommentsUnreadable", ({ message }) => Effect.succeed({
16863
- problems: [problemAtIndex(RULE$31)(file, source)(START$18, `msch could not read the comments in this file: ${message}`)],
16863
+ problems: [problemAtIndex(RULE$32)(file, source)(START$18, `msch could not read the comments in this file: ${message}`)],
16864
16864
  used: []
16865
16865
  })))
16866
16866
  });
@@ -16973,7 +16973,7 @@ const PYTHON = {
16973
16973
  /** @internal */
16974
16974
  const checkPython = (root) => checkBannedTool(root, PYTHON);
16975
16975
  // src/features/check-catalog-entries/model/uncataloged-dependencies.ts
16976
- const RULE$30 = "uncataloged-dependency";
16976
+ const RULE$31 = "uncataloged-dependency";
16977
16977
  const OWNED_ELSEWHERE = [
16978
16978
  "catalog:",
16979
16979
  "workspace:",
@@ -16982,13 +16982,13 @@ const OWNED_ELSEWHERE = [
16982
16982
  ];
16983
16983
  const ROOT_DIRECTORY$2 = ".";
16984
16984
  const PLUGIN_MANIFEST$1 = ".claude-plugin/plugin.json";
16985
- const MESSAGE$4 = "is a version written in this package.json. Add it to the catalog in pnpm-workspace.yaml and write `catalog:` here, so that one entry owns the version and every package that uses the dependency moves together.";
16985
+ const MESSAGE$5 = "is a version written in this package.json. Add it to the catalog in pnpm-workspace.yaml and write `catalog:` here, so that one entry owns the version and every package that uses the dependency moves together.";
16986
16986
  const isOwnedElsewhere = ({ specifier }) => pipe(OWNED_ELSEWHERE, Array$1.some((protocol) => String$1.startsWith(protocol)(specifier)));
16987
16987
  const problemsIn$11 = (entry, source) => pipe(manifestSpecifiers(source), Array$1.filter((found) => !isOwnedElsewhere(found)), Array$1.map((found) => ({
16988
16988
  file: entry.file,
16989
16989
  ...positionOf(source)(offsetIn(source)(manifestPattern(found))),
16990
- rule: RULE$30,
16991
- message: `\`${found.name}\` \`${found.specifier}\` ${MESSAGE$4}`
16990
+ rule: RULE$31,
16991
+ message: `\`${found.name}\` \`${found.specifier}\` ${MESSAGE$5}`
16992
16992
  })));
16993
16993
  /** @internal */
16994
16994
  const uncatalogedDependencies = Effect.fn("uncatalogedDependencies")(function* uncatalogedDependencies(root) {
@@ -17008,7 +17008,7 @@ const uncatalogedDependencies = Effect.fn("uncatalogedDependencies")(function* u
17008
17008
  const WORKSPACE_FILE$3 = "pnpm-workspace.yaml";
17009
17009
  const FIRST_LINE$5 = 1;
17010
17010
  const FIRST_COLUMN$5 = 1;
17011
- const RULE$29 = "prune-setting-off";
17011
+ const RULE$30 = "prune-setting-off";
17012
17012
  const PRUNE_SETTINGS = [["catalogPrune", "removes catalog entries no package refers to, so the catalog holds only versions in use."], ["minimumReleaseAgeExcludePrune", "removes `minimumReleaseAgeExclude` entries the lockfile no longer resolves, which only exempted that one version while it was new."]];
17013
17013
  const decodeTrue = Schema.decodeUnknownOption(Schema.Literal(true));
17014
17014
  const lineOf$3 = (source) => (setting) => pipe(String$1.split(source, "\n"), Array$1.findFirstIndex(String$1.startsWith(`${setting}:`)), Option.match({
@@ -17022,7 +17022,7 @@ const pruneProblems = Effect.fn("pruneProblems")(function* pruneProblems(file, s
17022
17022
  file,
17023
17023
  line: at(setting),
17024
17024
  column: FIRST_COLUMN$5,
17025
- rule: RULE$29,
17025
+ rule: RULE$30,
17026
17026
  message: `Set \`${setting}: true\`. It ${effect}`
17027
17027
  })));
17028
17028
  });
@@ -17116,13 +17116,13 @@ const checkSkillEntry = Effect.fn("checkSkillEntry")(function* checkSkillEntry(r
17116
17116
  ];
17117
17117
  });
17118
17118
  // src/features/check-skills/model/published-skills.ts
17119
- const RULE$28 = "published-skills";
17119
+ const RULE$29 = "published-skills";
17120
17120
  const KEYWORD = "tanstack-intent";
17121
17121
  const SKILLS = "skills";
17122
17122
  const SKILL_FILE$3 = "SKILL.md";
17123
17123
  const SUCCEEDED = 0;
17124
17124
  const INTENT_CLI = fileURLToPath(new URL("./cli.mjs", import.meta.resolve("@tanstack/intent")));
17125
- const problemAt$2 = problemInFile(RULE$28);
17125
+ const problemAt$2 = problemInFile(RULE$29);
17126
17126
  const skillDirectoriesIn = (files, directory) => pipe(findSkillFiles(files.join(directory, SKILLS)), Array$1.filter((file) => files.basename(file) === SKILL_FILE$3), Array$1.map((file) => files.relative(directory, files.dirname(file))));
17127
17127
  const isShipped = (listed) => (skill) => Array$1.contains(listed, SKILLS) || Array$1.contains(listed, skill);
17128
17128
  const packagingMessages = ({ keywords, files }, skills) => {
@@ -17159,7 +17159,7 @@ const checkPublishedSkills = Effect.fn("checkPublishedSkills")(function* checkPu
17159
17159
  return Array$1.flatten(problems);
17160
17160
  });
17161
17161
  // src/features/check-skills/model/skill-files.ts
17162
- const RULE$27 = "skill-file";
17162
+ const RULE$28 = "skill-file";
17163
17163
  const SKILL_FILE$2 = /(?:^|\/)SKILL\.md$/u;
17164
17164
  const INSTALLED = /(?:^|\/)\.(?:agents|claude|codex)\/skills\//u;
17165
17165
  const FIXTURE$1 = /(?:^|\/)fixtures\//u;
@@ -17216,7 +17216,7 @@ const frontmatterProblems = (skill, folder) => pipe(frontmatterOf(skill.source),
17216
17216
  ]), Option.getOrElse(() => []), Array$1.map(({ index, message }) => ({
17217
17217
  file: skill.file,
17218
17218
  ...positionOf(skill.source)(index),
17219
- rule: RULE$27,
17219
+ rule: RULE$28,
17220
17220
  message
17221
17221
  })));
17222
17222
  const linkOf = (found) => pipe(groupOf("target")(found), Option.filter((target) => !EXTERNAL.test(target)), Option.map((target) => String$1.replace(FRAGMENT, "")(target)), Option.filter(String$1.isNonEmpty), Option.map((target) => ({
@@ -17243,7 +17243,7 @@ const linkProblems = Effect.fn("linkProblems")(function* linkProblems(file) {
17243
17243
  return pipe(missing, Array$1.map(({ target, index }) => ({
17244
17244
  file,
17245
17245
  ...positionOf(source)(index),
17246
- rule: RULE$27,
17246
+ rule: RULE$28,
17247
17247
  message: `links to ${target}, which does not exist. Fix the path or remove the link.`
17248
17248
  })));
17249
17249
  });
@@ -17259,7 +17259,7 @@ const problemsIn$9 = Effect.fn("problemsIn")(function* problemsIn(root, listed,
17259
17259
  file: files.join(root, entry),
17260
17260
  line: FIRST$7,
17261
17261
  column: FIRST$7,
17262
- rule: RULE$27,
17262
+ rule: RULE$28,
17263
17263
  message: "is a license file inside a skill. Skills here carry neither a license field nor a LICENSE file. Delete it."
17264
17264
  })));
17265
17265
  return [
@@ -17337,7 +17337,7 @@ const cargoEntries = (text) => {
17337
17337
  };
17338
17338
  const toolchainEntries = (text) => singleEntry("channel", fieldOf("channel")(parseToml(text)["toolchain"]));
17339
17339
  // src/features/check-version-downgrades/model/version-downgrade.ts
17340
- const RULE$26 = "version-downgrade";
17340
+ const RULE$27 = "version-downgrade";
17341
17341
  const READ_CONCURRENCY$14 = 16;
17342
17342
  const READERS = [
17343
17343
  [/(?:^|\/)package\.json$/u, manifestEntries],
@@ -17362,7 +17362,7 @@ const downgradesIn = ({ file, text, before, after }) => {
17362
17362
  file,
17363
17363
  line: lineOf$2(text, entry),
17364
17364
  column: FIRST_LINE$4,
17365
- rule: RULE$26,
17365
+ rule: RULE$27,
17366
17366
  message: message$1(old, entry)
17367
17367
  })), Option.toArray)));
17368
17368
  };
@@ -17445,7 +17445,7 @@ const manifestTexts = Effect.fn("manifestTexts")(function* manifestTexts(root) {
17445
17445
  return Array$1.getSomes(read);
17446
17446
  });
17447
17447
  // src/features/check-version-downgrades/model/package-versions.ts
17448
- const RULE$25 = "unbumped-package";
17448
+ const RULE$26 = "unbumped-package";
17449
17449
  const UNSHIPPED = /(?:\.test\.[\w.]+$|(?:^|\/)(?:fixtures|__tests__|tests?)\/|(?:^|\/)(?:AGENTS|CLAUDE|CHANGELOG)\.md$)/u;
17450
17450
  const UNVERSIONED$5 = "0.0.0";
17451
17451
  const FIRST_LINE$3 = 1;
@@ -17520,7 +17520,7 @@ const checkPackageVersions = Effect.fn("checkPackageVersions")(function* checkPa
17520
17520
  file: files.join(root, pack.file),
17521
17521
  line: versionLine(pack.text),
17522
17522
  column: FIRST_COLUMN$4,
17523
- rule: RULE$25,
17523
+ rule: RULE$26,
17524
17524
  message: message(pack, part, lowest)
17525
17525
  })), Option.toArray);
17526
17526
  }), { concurrency: READ_CONCURRENCY$11 });
@@ -17529,7 +17529,7 @@ const checkPackageVersions = Effect.fn("checkPackageVersions")(function* checkPa
17529
17529
  // src/features/find-unneeded-files/model/applied-packages.ts
17530
17530
  const SCOPE$1 = Option.getOrElse(scopeOfName(SELF_NAME), () => SELF_NAME);
17531
17531
  const PLUGIN_KEYWORDS = ["oxlint-plugin", "textlint-rule"];
17532
- const RULE$24 = "applied-package";
17532
+ const RULE$25 = "applied-package";
17533
17533
  const WORKSPACE_FILE$2 = "pnpm-workspace.yaml";
17534
17534
  const NOT_FOUND$3 = -1;
17535
17535
  const SEPARATOR$9 = "/";
@@ -17565,7 +17565,7 @@ const appliedByMsch = Effect.fn("appliedByMsch")(function* appliedByMsch() {
17565
17565
  const problemAt$1 = (file, source) => (index, name) => ({
17566
17566
  file,
17567
17567
  ...positionOf(source)(index),
17568
- rule: RULE$24,
17568
+ rule: RULE$25,
17569
17569
  message: `msch applies ${name}. Remove this use and let msch apply it.`
17570
17570
  });
17571
17571
  const specifierPattern = ({ name }) => new RegExp(`["'\`]${escaped$1(name)}(?=["'\`/])`, "gu");
@@ -17620,7 +17620,7 @@ const checkAppliedPackages = Effect.fn("checkAppliedPackages")(function* checkAp
17620
17620
  return yield* appliedPackageProblems(root, applied);
17621
17621
  });
17622
17622
  // src/features/find-unneeded-files/model/replaced-tools.ts
17623
- const RULE$23 = "replaced-tool";
17623
+ const RULE$24 = "replaced-tool";
17624
17624
  const FIRST$6 = 1;
17625
17625
  const TASKS = "Vite+ tasks in run.tasks of vite.config.ts, run with `vp run`";
17626
17626
  const HOOKS = "the hooks in .vite-hooks/ that `vp config` installs";
@@ -17701,7 +17701,7 @@ const problemFor$1 = ({ name, file }) => pipe(REPLACED, Array$1.findFirst(({ pat
17701
17701
  file,
17702
17702
  line: FIRST$6,
17703
17703
  column: FIRST$6,
17704
- rule: RULE$23,
17704
+ rule: RULE$24,
17705
17705
  message: `belongs to ${tool}, which this repository replaced with ${replacement}. Move what is still needed there and delete this file.`
17706
17706
  })));
17707
17707
  /** @internal */
@@ -17840,7 +17840,7 @@ const checkUnneededFiles = Effect.fn("checkUnneededFiles")(function* checkUnneed
17840
17840
  return yield* unneededIn(root, cargoEnabled(workspace.value));
17841
17841
  });
17842
17842
  // src/features/check-markdown-directives/model/directives.ts
17843
- const RULE$22 = "markdown-directive";
17843
+ const RULE$23 = "markdown-directive";
17844
17844
  const START$13 = 0;
17845
17845
  const SECOND = 1;
17846
17846
  const ODD = 1;
@@ -17855,7 +17855,7 @@ const SKIPPED_FILES = ["CHANGELOG.md", "CLAUDE.md"];
17855
17855
  const DISABLE = /<!--\s*(?:y8|markdownlint|textlint)-(?:disable|enable|capture|restore|configure-file)(?:-next-line|-line|-file)?(?:\s[\s\S]*?)?-->/giu;
17856
17856
  const FENCE$1 = /^\s{0,3}(?:`{3,}|~{3,})/u;
17857
17857
  const BACKTICK = /`/gu;
17858
- const MESSAGE$3 = "This comment turns a Markdown or text check off. Checks are not turned off in a repository that uses msch: fix what the check reports, or, when the check itself is wrong, fix the check in msch.";
17858
+ const MESSAGE$4 = "This comment turns a Markdown or text check off. Checks are not turned off in a repository that uses msch: fix what the check reports, or, when the check itself is wrong, fix the check in msch.";
17859
17859
  const fenceStep = (inside, line) => Match.value(FENCE$1.test(line)).pipe(Match.when(true, () => [!inside, true]), Match.orElse(() => [inside, inside]));
17860
17860
  const insideCodeSpan = (before) => Array$1.fromIterable(String$1.matchAll(BACKTICK)(before)).length % PAIR === ODD;
17861
17861
  const problemsIn$7 = (file, source) => {
@@ -17865,7 +17865,7 @@ const problemsIn$7 = (file, source) => {
17865
17865
  const { line, column } = positionOf(source)(index);
17866
17866
  return pipe(Array$1.get(fenced, line - SECOND), Option.getOrElse(() => false)) || pipe(Array$1.get(lines, line - SECOND), Option.map(String$1.slice(START$13, column - SECOND)), Option.exists(insideCodeSpan));
17867
17867
  };
17868
- return pipe(Array$1.fromIterable(String$1.matchAll(DISABLE)(source)), Array$1.filter((match) => !isCode(match.index ?? START$13)), Array$1.map((match) => problemAtIndex(RULE$22)(file, source)(match.index ?? START$13, MESSAGE$3)));
17868
+ return pipe(Array$1.fromIterable(String$1.matchAll(DISABLE)(source)), Array$1.filter((match) => !isCode(match.index ?? START$13)), Array$1.map((match) => problemAtIndex(RULE$23)(file, source)(match.index ?? START$13, MESSAGE$4)));
17869
17869
  };
17870
17870
  const isChecked$1 = (name) => String$1.endsWith(MARKDOWN$4)(name) && !pipe(SKIPPED_DIRECTORIES, Array$1.some((directory) => String$1.includes(directory)(`/${name}`))) && !pipe(SKIPPED_FILES, Array$1.some((skipped) => name === skipped || String$1.endsWith(`/${skipped}`)(name)));
17871
17871
  /** @internal */
@@ -17877,10 +17877,16 @@ const checkMarkdownDirectives = Effect.fn("checkMarkdownDirectives")(function* c
17877
17877
  file: files.join(root, name)
17878
17878
  }))), ({ file }, source) => problemsIn$7(file, source));
17879
17879
  });
17880
+ // src/shared/lib/branch-trailer.ts
17881
+ /** @internal */
17882
+ const branchCarries = Effect.fn("branchCarries")(function* branchCarries(root, base, trailer) {
17883
+ const messages = yield* (yield* RepositoryFiles).commitMessages(root, base);
17884
+ return pipe(messages, Array$1.some((commit) => trailer.test(commit)));
17885
+ });
17880
17886
  // src/features/check-owner-markers/model/owner-markers.ts
17881
- const RULE$21 = "owner-decision-removed";
17887
+ const RULE$22 = "owner-decision-removed";
17882
17888
  const MARKER = /\(owner, \d{4}-\d{2}-\d{2}\)/gu;
17883
- const TRAILER = /^Owner-Decision-(?:Moved|Revoked):[ \t]*\S/mu;
17889
+ const TRAILER$1 = /^Owner-Decision-(?:Moved|Revoked):[ \t]*\S/mu;
17884
17890
  const READ_CONCURRENCY$10 = 16;
17885
17891
  const HEAD = "HEAD";
17886
17892
  const markersOf = (text) => pipe(String$1.matchAll(MARKER)(text), Array$1.fromIterable, Array$1.flatMap((hit) => Option.toArray(Array$1.head(hit))));
@@ -17908,20 +17914,16 @@ const removalsSince = Effect.fn("removalsSince")(function* removalsSince(root, b
17908
17914
  }), { concurrency: READ_CONCURRENCY$10 });
17909
17915
  return Array$1.flatten(found);
17910
17916
  });
17911
- const hasTrailer = Effect.fn("hasTrailer")(function* hasTrailer(root, base) {
17912
- const messages = yield* (yield* RepositoryFiles).commitMessages(root, base);
17913
- return pipe(messages, Array$1.some((commit) => TRAILER.test(commit)));
17914
- });
17915
17917
  /** @internal */
17916
17918
  const checkOwnerMarkers = Effect.fn("checkOwnerMarkers")(function* checkOwnerMarkers(root) {
17917
17919
  const base = yield* baseRevision(root);
17918
17920
  if (Option.isNone(base)) return [];
17919
17921
  const removals = yield* removalsSince(root, base.value);
17920
- if (!Array$1.isReadonlyArrayNonEmpty(removals) || (yield* hasTrailer(root, base.value))) return [];
17921
- return pipe(removals, Array$1.map((removal) => problemInFile(RULE$21)(removal.file, messageOf$1(removal))));
17922
+ if (!Array$1.isReadonlyArrayNonEmpty(removals) || (yield* branchCarries(root, base.value, TRAILER$1))) return [];
17923
+ return pipe(removals, Array$1.map((removal) => problemInFile(RULE$22)(removal.file, messageOf$1(removal))));
17922
17924
  });
17923
17925
  // src/features/check-owner-names/model/owner-names.ts
17924
- const RULE$20 = "owner-name";
17926
+ const RULE$21 = "owner-name";
17925
17927
  const TEXT_FILE$1 = /\.(?:[cm]?[jt]sx?|jsonc?|md|ya?ml|toml)$/u;
17926
17928
  const REGEX_SPECIAL = /[.*+?^${}()|[\]\\/]/gu;
17927
17929
  const SEPARATOR$7 = "/";
@@ -17963,7 +17965,7 @@ const manifestProblems$3 = ({ owner, file, manifest }) => pipe(ownerOffsets({
17963
17965
  }), Array$1.head, Option.toArray, Array$1.map(() => ({
17964
17966
  file,
17965
17967
  ...positionOf("")(START$12),
17966
- rule: RULE$20,
17968
+ rule: RULE$21,
17967
17969
  message: `Its description or keywords ${messageFor$4(owner)}`
17968
17970
  })));
17969
17971
  const workspaceProblems = Effect.fn("workspaceProblems")(function* workspaceProblems(root, owner, directory) {
@@ -17984,7 +17986,7 @@ const workspaceProblems = Effect.fn("workspaceProblems")(function* workspaceProb
17984
17986
  }), Array$1.map((offset) => ({
17985
17987
  file,
17986
17988
  ...positionOf(source)(offset),
17987
- rule: RULE$20,
17989
+ rule: RULE$21,
17988
17990
  message: messageFor$4(owner)
17989
17991
  }))));
17990
17992
  return [...manifestProblems$3({
@@ -18010,6 +18012,21 @@ const checkOwnerNames = Effect.fn("checkOwnerNames")(function* checkOwnerNames(r
18010
18012
  const found = yield* Effect.forEach(directories, (directory) => workspaceProblems(root, origin.value.owner, directory), { concurrency: 1 });
18011
18013
  return Array$1.flatten(found);
18012
18014
  });
18015
+ // src/features/check-owner-principles/model/owner-principles.ts
18016
+ const RULE$20 = "owner-principle-changed";
18017
+ const PRINCIPLE_FILE = /(?:^|\/)(?:skills\/principle-[^/]+\/|plugins\/[^/]+-principles\/|PRINCIPLE\.md$)/u;
18018
+ const TRAILER = /^Owner-Said:[ \t]*\S/mu;
18019
+ const MESSAGE$3 = "changes a principle. Only the owner changes a principle: change it in a session the owner opened with /do-principle, and add the trailer \"Owner-Said: <the owner's words>\" to a commit of the branch. When you only found a fact at odds with the principle, record it as a lesson instead.";
18020
+ /** @internal */
18021
+ const checkOwnerPrinciples = Effect.fn("checkOwnerPrinciples")(function* checkOwnerPrinciples(root) {
18022
+ const files = yield* RepositoryFiles;
18023
+ const base = yield* baseRevision(root);
18024
+ if (Option.isNone(base)) return [];
18025
+ const all = yield* files.changedFiles(root, base.value);
18026
+ const changed = pipe(all, Array$1.filter((name) => PRINCIPLE_FILE.test(name)));
18027
+ if (!Array$1.isReadonlyArrayNonEmpty(changed) || (yield* branchCarries(root, base.value, TRAILER))) return [];
18028
+ return pipe(changed, Array$1.map((name) => problemInFile(RULE$20)(files.join(root, name), MESSAGE$3)));
18029
+ });
18013
18030
  // src/features/find-invisible-characters/model/hidden-unicode.ts
18014
18031
  const HIDDEN = /[\u00AD\u180E\u200B\u200C\u200E\u200F\u202A-\u202E\u2060-\u2064\u2066-\u2069\uFEFF]|(?<![\p{Extended_Pictographic}\p{Emoji_Modifier}\uFE0F])\u200D|\u200D(?!\p{Extended_Pictographic})|[\u{E0000}-\u{E007F}]/gu;
18015
18032
  const NUL = "\0";
@@ -18052,7 +18069,8 @@ const checkDocuments = Effect.fn("checkDocuments")(function* checkDocuments(root
18052
18069
  checkHiddenUnicode(root),
18053
18070
  checkMarkdownDirectives(root),
18054
18071
  checkOwnerMarkers(root),
18055
- checkOwnerNames(root)
18072
+ checkOwnerNames(root),
18073
+ checkOwnerPrinciples(root)
18056
18074
  ], { concurrency: "unbounded" });
18057
18075
  return Array$1.flatten(found);
18058
18076
  });