@r_masseater/msch 0.120.11 → 0.121.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.
Files changed (62) hide show
  1. package/dist/addon-tasks.d.mts +2 -3
  2. package/dist/addon-tasks.mjs +2 -2
  3. package/dist/baseline-rules.d.mts +1 -2
  4. package/dist/baseline-rules.mjs.map +1 -1
  5. package/dist/cargo-inputs.d.mts +1 -1
  6. package/dist/cargo-inputs.mjs +1 -1
  7. package/dist/cli.mjs +347 -387
  8. package/dist/cli.mjs.map +1 -1
  9. package/dist/{config-W6Uy7bV8.mjs → config-B3SYjao5.mjs} +1 -1
  10. package/dist/{config-W6Uy7bV8.mjs.map → config-B3SYjao5.mjs.map} +1 -1
  11. package/dist/config.d.mts +15 -7
  12. package/dist/config.mjs +11 -10
  13. package/dist/config.mjs.map +1 -1
  14. package/dist/decision-rules.d.mts +1 -1
  15. package/dist/decision-rules.mjs +1 -1
  16. package/dist/{define-lint-preset-Bh9gBpeZ.mjs → define-lint-preset-eBFx8MIW.mjs} +2 -2
  17. package/dist/{define-lint-preset-Bh9gBpeZ.mjs.map → define-lint-preset-eBFx8MIW.mjs.map} +1 -1
  18. package/dist/{dependencies-OrBsaeID.mjs → dependencies-Bjn3xWkq.mjs} +3 -3
  19. package/dist/{dependencies-OrBsaeID.mjs.map → dependencies-Bjn3xWkq.mjs.map} +1 -1
  20. package/dist/{derive-cargo-inputs-Btc2ojuD.mjs → derive-cargo-inputs-BLMqkRS3.mjs} +5 -5
  21. package/dist/{derive-cargo-inputs-Btc2ojuD.mjs.map → derive-cargo-inputs-BLMqkRS3.mjs.map} +1 -1
  22. package/dist/{ignored-directories-wh-dhKsl.mjs → ignored-directories-CaTFIbjo.mjs} +2 -2
  23. package/dist/{ignored-directories-wh-dhKsl.mjs.map → ignored-directories-CaTFIbjo.mjs.map} +1 -1
  24. package/dist/{index-DIMbx_hx.d.mts → index-B15MNLWU.d.mts} +4 -5
  25. package/dist/{index-tcHDX7ae.d.mts → index-BY9hL-AJ.d.mts} +2 -3
  26. package/dist/{index-LIff_AUC.d.mts → index-CJ-DPimM.d.mts} +6 -7
  27. package/dist/library.d.mts +1 -2
  28. package/dist/library.mjs +3 -3
  29. package/dist/library.mjs.map +1 -1
  30. package/dist/lint-rules.d.mts +1 -2
  31. package/dist/lint-rules.mjs +4 -4
  32. package/dist/lint-rules.mjs.map +1 -1
  33. package/dist/lint.d.mts +1 -1
  34. package/dist/lint.mjs +1 -1
  35. package/dist/{locked-closure-paths-Dtqs8uBU.mjs → locked-closure-paths-_N_97Dbp.mjs} +1 -1
  36. package/dist/{locked-closure-paths-Dtqs8uBU.mjs.map → locked-closure-paths-_N_97Dbp.mjs.map} +1 -1
  37. package/dist/{locked-inputs-DMSoGCa-.mjs → locked-inputs-CP2lVRLR.mjs} +2 -2
  38. package/dist/{locked-inputs-DMSoGCa-.mjs.map → locked-inputs-CP2lVRLR.mjs.map} +1 -1
  39. package/dist/locked-inputs.d.mts +1 -2
  40. package/dist/locked-inputs.mjs +1 -1
  41. package/dist/oxlint.d.mts +1 -2
  42. package/dist/oxlint.mjs +2 -2
  43. package/dist/{path-DUttmo2s.mjs → path-BhBnc3Sn.mjs} +1 -1
  44. package/dist/{path-DUttmo2s.mjs.map → path-BhBnc3Sn.mjs.map} +1 -1
  45. package/dist/{problem-D0e14vkQ.mjs → problem-Dk1svgmC.mjs} +4 -4
  46. package/dist/{problem-D0e14vkQ.mjs.map → problem-Dk1svgmC.mjs.map} +1 -1
  47. package/dist/{published-u44g9ha6.mjs → published-DkH6B-Gr.mjs} +3 -3
  48. package/dist/{published-u44g9ha6.mjs.map → published-DkH6B-Gr.mjs.map} +1 -1
  49. package/dist/{repository-files-C8B7lrka.mjs → repository-files-C_GzAnYp.mjs} +2 -2
  50. package/dist/{repository-files-C8B7lrka.mjs.map → repository-files-C_GzAnYp.mjs.map} +1 -1
  51. package/dist/{repository-text-fyVQrhAd.mjs → repository-text-UR3E4wjS.mjs} +19 -6
  52. package/dist/repository-text-UR3E4wjS.mjs.map +1 -0
  53. package/dist/{started-once-muJbvD_I.mjs → started-once-BN_hLlmU.mjs} +1 -1
  54. package/dist/{started-once-muJbvD_I.mjs.map → started-once-BN_hLlmU.mjs.map} +1 -1
  55. package/dist/{workspace-projects-wllEd2HL.mjs → workspace-projects-eapoa0az.mjs} +2 -2
  56. package/dist/{workspace-projects-wllEd2HL.mjs.map → workspace-projects-eapoa0az.mjs.map} +1 -1
  57. package/dist/workspace-settings.d.mts +1 -1
  58. package/dist/workspace-settings.mjs +6 -6
  59. package/package.json +14 -14
  60. package/skills/msch-checks/SKILL.md +0 -2
  61. package/skills/msch-repository-config/SKILL.md +4 -0
  62. package/dist/repository-text-fyVQrhAd.mjs.map +0 -1
package/dist/cli.mjs CHANGED
@@ -1,53 +1,53 @@
1
1
  #!/usr/bin/env node
2
- import { i as nodeRepositoryFiles, n as NODE_MODULES$2, o as TOOL_NAME$1, r as RepositoryFiles, s as groupOf, t as MSCH_CACHE } from "./repository-files-C8B7lrka.mjs";
3
- import { $ as isIdentifier, A as uniqueByReference, B as getTextOfJSDocComment, C as moduleSpecifierOf, D as resolvedSymbol, E as referencedSymbols, F as SymbolFlags, G as isCallExpression, H as isArrowFunction, I as SyntaxKind, J as isEnumDeclaration, K as isClassDeclaration, L as getJSDocTags, M as IndexKind, N as InternalSymbolName, O as symbolAt, P as SignatureKind, Q as isFunctionExpression, R as getLeadingCommentRanges, S as moduleSpecifierLiteralOf, St as isVariableStatement, T as propertyNamesOf, U as isBinaryExpression, V as isArrayLiteralExpression, W as isBlock, X as isExpressionStatement, Y as isExportDeclaration, Z as isFunctionDeclaration, _ as isGenericDeclaration, _t as isTypeLiteralNode, a as problemAtPosition, at as isNumericLiteral, b as isTypeDeclaration, bt as isVariableDeclaration, c as carriesTag, ct as isPropertyAccessExpression, d as contains, dt as isSatisfiesExpression, et as isImportDeclaration, f as declarationsOf, ft as isSignatureDeclaration, g as isExternalDeclaration, gt as isTypeAliasDeclaration, h as importedModulesOf, ht as isStringLiteral, i as problemAt$6, it as isNewExpression, j as API, k as symbolAtLocation, l as childrenOf$3, lt as isPropertyAssignment, m as descendantsOf, mt as isSpreadElement, nt as isModuleBlock, o as problemInFile, ot as isObjectLiteralExpression, p as declaresAType, pt as isSourceFile, q as isElementAccessExpression, r as formatProblem, rt as isModuleDeclaration, s as sortProblems, st as isParenthesizedExpression, t as ProblemList, tt as isInterfaceDeclaration, u as columnOf, ut as isReturnStatement, v as isInsideAny, vt as isTypeReferenceNode, w as packageOf$1, x as lineOf$5, xt as isVariableDeclarationList, y as isOutsideDeclaration, yt as isUnionTypeNode, z as getNameOfDeclaration } from "./problem-D0e14vkQ.mjs";
4
- import { i as workspaceDependencies$1, n as installedManifest, r as readManifest, t as dependencyEntries } from "./dependencies-OrBsaeID.mjs";
5
- import { C as childrenOf$4, D as propertyValue, E as nestedValues, O as stringsIn, S as KeySchema, T as literalOf, a as workspaceManifest, c as TASK_NAMES, d as definesTask, f as hasCargoTask, i as workspaceProjects, l as TEST_TASK_NAMES, n as unmatchedWorkspacePatterns, p as hasVerifyTask, r as workspaceDirectories, s as RUN_TASKS, t as publishedProjects, u as VERIFY_TASK, w as keyName, x as workspaceConfigOf } from "./workspace-projects-wllEd2HL.mjs";
6
- import { a as parent, i as join, n as isInside, t as baseName$1 } from "./path-DUttmo2s.mjs";
7
- import { a as workspaceConfigs, c as publicEntriesOf, d as FRONTMATTER, f as splitFrontmatter, g as deployEntries, h as bundledEntries$1, i as publishedWorkspaces, l as modDirectories, m as workspaceLinks, o as entryNameOf, r as packedWorkspaces, s as isBinEntry, u as isIndexSkill, v as shadcnUiOf } from "./published-u44g9ha6.mjs";
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-fyVQrhAd.mjs";
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-Bh9gBpeZ.mjs";
12
- import { builtinModules, isBuiltin } from "node:module";
13
- 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, Semaphore, Stdio, Stream, String as String$1, pipe } from "effect";
2
+ import { Array as Array$1, Boolean as Boolean$1, Clock, Config as Config$1, Console, Context, Effect, Equal, FileSystem, Function, HashMap, HashSet, Match, Metric, Number as Number$1, Option, Order, Path, Predicate as Predicate$1, Record, Redacted, Result, Runtime, Schedule, Schema, SchemaTransformation, Semaphore, Stdio, Stream, String as String$1, pipe } from "effect";
14
3
  import { Argument, Command, Flag } from "effect/cli";
15
- import { ChildProcess, ChildProcessSpawner } from "effect/process";
4
+ import { i as nodeRepositoryFiles, n as NODE_MODULES$2, o as TOOL_NAME$1, r as RepositoryFiles, s as groupOf, t as MSCH_CACHE } from "./repository-files-C_GzAnYp.mjs";
16
5
  import { hookFlags } from "@r_masseater/masseater-utils/hook-flags";
6
+ import { $ as isIdentifier, A as uniqueByReference, B as getTextOfJSDocComment, C as moduleSpecifierOf, D as resolvedSymbol, E as referencedSymbols, F as SymbolFlags, G as isCallExpression, H as isArrowFunction, I as SyntaxKind, J as isEnumDeclaration, K as isClassDeclaration, L as getJSDocTags, M as IndexKind, N as InternalSymbolName, O as symbolAt, P as SignatureKind, Q as isFunctionExpression, R as getLeadingCommentRanges, S as moduleSpecifierLiteralOf, St as isVariableStatement, T as propertyNamesOf, U as isBinaryExpression, V as isArrayLiteralExpression, W as isBlock, X as isExpressionStatement, Y as isExportDeclaration, Z as isFunctionDeclaration, _ as isGenericDeclaration, _t as isTypeLiteralNode, a as problemAtPosition, at as isNumericLiteral, b as isTypeDeclaration, bt as isVariableDeclaration, c as carriesTag, ct as isPropertyAccessExpression, d as contains, dt as isSatisfiesExpression, et as isImportDeclaration, f as declarationsOf, ft as isSignatureDeclaration, g as isExternalDeclaration, gt as isTypeAliasDeclaration, h as importedModulesOf, ht as isStringLiteral, i as problemAt$6, it as isNewExpression, j as API, k as symbolAtLocation, l as childrenOf$3, lt as isPropertyAssignment, m as descendantsOf, mt as isSpreadElement, nt as isModuleBlock, o as problemInFile, ot as isObjectLiteralExpression, p as declaresAType, pt as isSourceFile, q as isElementAccessExpression, r as formatProblem, rt as isModuleDeclaration, s as sortProblems, st as isParenthesizedExpression, t as ProblemList, tt as isInterfaceDeclaration, u as columnOf, ut as isReturnStatement, v as isInsideAny, vt as isTypeReferenceNode, w as packageOf$1, x as lineOf$5, xt as isVariableDeclarationList, y as isOutsideDeclaration, yt as isUnionTypeNode, z as getNameOfDeclaration } from "./problem-Dk1svgmC.mjs";
17
7
  import { lockedGraph, lockedPackageIds, parseDependencyPath, updateWorkspaceManifest } from "@r_masseater/masseater-utils/kestrion/pnpm";
18
- import { DEPENDENCY_SECTIONS, PACKAGE_JSON_FILE, ROOT_SUBPATH, RUNTIME_SECTIONS, binEntriesOf, exportEntriesOf, importSpecifierOf, namesIn, optionalPeerNames, runtimeDependencyNames, targetsIn, unscopedNameOf } from "@r_masseater/masseater-utils/kestrion";
19
- import { findPackageJson } from "@r_masseater/masseater-utils/kestrion/node";
8
+ import { ChildProcess, ChildProcessSpawner } from "effect/process";
9
+ import { DEPENDENCY_SECTIONS, PACKAGE_JSON_FILE, ROOT_SUBPATH as ROOT_SUBPATH$2, RUNTIME_SECTIONS, binEntriesOf, exportEntriesOf, importSpecifierOf, namesIn as namesIn$1, optionalPeerNames, runtimeDependencyNames, targetsIn, unscopedNameOf } from "@r_masseater/masseater-utils/kestrion";
10
+ import { i as workspaceDependencies$1, n as installedManifest, r as readManifest, t as dependencyEntries } from "./dependencies-Bjn3xWkq.mjs";
11
+ import { C as childrenOf$4, D as propertyValue, E as nestedValues, O as stringsIn, S as KeySchema, T as literalOf, a as workspaceManifest, c as TASK_NAMES, d as definesTask, f as hasCargoTask, i as workspaceProjects, l as TEST_TASK_NAMES, n as unmatchedWorkspacePatterns, p as hasVerifyTask, r as workspaceDirectories, s as RUN_TASKS, t as publishedProjects, u as VERIFY_TASK, w as keyName, x as workspaceConfigOf } from "./workspace-projects-eapoa0az.mjs";
12
+ import { a as parent, i as join, n as isInside, t as baseName$1 } from "./path-BhBnc3Sn.mjs";
20
13
  import { decodePackageJson, decodeVersionedPackageJson, readPackageJson, readRawPackageJson, readVersionedPackageJson, updatePackageJson, writePackageJson } from "@r_masseater/masseater-utils/kestrion/npm";
14
+ import { a as workspaceConfigs, c as publicEntriesOf, d as FRONTMATTER, f as splitFrontmatter, g as deployEntries, h as bundledEntries$1, i as publishedWorkspaces, l as modDirectories, m as workspaceLinks, o as entryNameOf, r as packedWorkspaces, s as isBinEntry, u as isIndexSkill, v as shadcnUiOf } from "./published-DkH6B-Gr.mjs";
21
15
  import { parse, resolveConfigFromFile } from "vite-plus";
22
- import { Parser, isPair, isScalar, parse as parse$1, parseDocument, visit } from "yaml";
16
+ import { i as USAGE_SPOOL, n as DECISION_TIMEOUT_MS, r as JAPANESE, t as DECISION_MODEL } from "./config-B3SYjao5.mjs";
17
+ import { _ as patternOf$1, a as CI_TASKS, c as MSCH_VERIFY_COMMANDS, f as existsAt, g as namedWorkspaces, m as isIgnored, n as builtTextRuleNames, r as secretsOf, s as MSCH_TASK_COMMANDS, t as TEXT_IGNORES, u as meteredCommand } from "./repository-text-UR3E4wjS.mjs";
23
18
  import { fileURLToPath } from "node:url";
24
19
  import treeSitter from "@vscode/tree-sitter-wasm";
20
+ import { t as startedOnce } from "./started-once-BN_hLlmU.mjs";
25
21
  import { getStaticTOMLValue, parseTOML } from "toml-eslint-parser";
26
22
  import { rolldown } from "rolldown";
27
23
  import { stripVTControlCharacters } from "node:util";
24
+ import { builtinModules, isBuiltin as isBuiltin$1 } from "node:module";
28
25
  import semver from "semver";
29
- import { judgeText } from "@r_masseater/oxlint-plugin-decision";
30
- import { NO_PATH, describeReference, diagnosticDetail, linksIn, lint, markdownPathspecs, referenceOf, y8Section } from "@r_masseater/y8";
26
+ import { g as decisionTestRules, n as MARKDOWN_RULES, p as lint$3, t as MARKDOWN_IGNORES, x as exempt } from "./define-lint-preset-eBFx8MIW.mjs";
27
+ import { NO_PATH, describeReference, diagnosticDetail, linksIn as linksIn$1, lint, markdownPathspecs, referenceOf as referenceOf$2, y8Section } from "@r_masseater/y8";
31
28
  import { lint as lint$1, wismPathspecs, wismSection } from "@r_masseater/wism";
29
+ import { Parser, isPair, isScalar, parse as parse$1, parseDocument, visit as visit$1 } from "yaml";
32
30
  import { VpToolsError, findCiDrift, runVpa } from "@r_masseater/vite-plus-adopt";
33
31
  import { fu4Section, lint as lint$2, workflowPathspecs } from "@r_masseater/fu4";
34
32
  import { isComment, isTag, isText } from "domhandler";
35
33
  import { DomUtils, parseDocument as parseDocument$1 } from "htmlparser2";
36
34
  import { DockerfileParser } from "dockerfile-ast";
37
35
  import { parse as parse$2 } from "sql-parser-cst";
36
+ import { findPackageJson } from "@r_masseater/masseater-utils/kestrion/node";
38
37
  import { findSkillFiles } from "@tanstack/intent";
39
38
  import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
40
39
  import { runMainWith } from "@r_masseater/masseater-utils/node-main";
41
40
  import { dual } from "effect/Function";
41
+ import { judgeText } from "@r_masseater/oxlint-plugin-decision";
42
42
  import { finished, mustSucceed, outputOf, succeeds, writeOutputs } from "@r_masseater/masseater-utils/github-workflow";
43
- import { arch, platform } from "node:os";
44
- import { Base64 } from "effect/encoding";
45
43
  import { CALLS_METRIC, mergeTallies, talliesIn, usageMetricsOf } from "@r_masseater/masseater-utils/usage-meter/report";
44
+ import { Base64 } from "effect/encoding";
45
+ import { arch, platform } from "node:os";
46
46
  import { Buffer } from "node:buffer";
47
47
  import { createZstdDecompress } from "node:zlib";
48
48
  // package.json
49
49
  var name = "@r_masseater/msch";
50
- var version = "0.120.11";
50
+ var version = "0.121.0";
51
51
  var homepage = "https://github.com/masseater/ecosystems/tree/main/libs/msch#readme";
52
52
  var repository = {
53
53
  "type": "git",
@@ -1065,7 +1065,7 @@ const checkOverrides = Effect.fn("checkOverrides")(function* checkOverrides(root
1065
1065
  const SCANNED_FILE = /(?:\.(?:[cm]?[jt]sx?|jsonc?|toml|ya?ml|sh|bash|zsh|fish|rs|cs|go|mk)|(?:^|\/)(?:(?:Dockerfile|Containerfile)[^/]*|Makefile|justfile|\.tool-versions|[^./][^./]*))$/u;
1066
1066
  const LOCKFILE$1 = /(?:^|\/)(?:[^/]*\.lock|[^/]*-lock\.(?:json|ya?ml))$/u;
1067
1067
  const TOOL_VERSIONS = /(?:^|\/)(?:\.?mise(?:\.[^/]+)?\.toml|\.tool-versions)$/u;
1068
- const READ_CONCURRENCY$42 = 64;
1068
+ const READ_CONCURRENCY$41 = 64;
1069
1069
  const isScannedText = ({ name }) => SCANNED_FILE.test(name) && !LOCKFILE$1.test(name);
1070
1070
  const isToolVersions = ({ name }) => TOOL_VERSIONS.test(name);
1071
1071
  /** @internal */
@@ -1088,18 +1088,18 @@ const scanText = Effect.fn("scanText")(function* scanText(listed, foundIn) {
1088
1088
  const found = yield* Effect.forEach(listed, (entry) => files.readFile(entry.file).pipe(Effect.map(Option.match({
1089
1089
  onNone: () => [],
1090
1090
  onSome: (source) => foundIn(entry, source)
1091
- }))), { concurrency: READ_CONCURRENCY$42 });
1091
+ }))), { concurrency: READ_CONCURRENCY$41 });
1092
1092
  return Array$1.flatten(found);
1093
1093
  });
1094
1094
  // src/features/check-overrides/model/git-subpath.ts
1095
1095
  const DEPENDENCY_FILE = /(?:^|\/)(?:package\.json|pnpm-workspace\.ya?ml)$/u;
1096
1096
  const GIT_SUBPATH = /(?<![^\s"':])[^\s"'#]+#(?:[^\s"'&]*&)*path:[^\s"']*/gu;
1097
- const RULE$81 = "git-subpath-dependency";
1097
+ const RULE$80 = "git-subpath-dependency";
1098
1098
  const WHOLE_MATCH$4 = 0;
1099
1099
  const problemAt$5 = ({ file }, source) => (found) => ({
1100
1100
  file,
1101
1101
  ...positionOf(source)(found.index ?? WHOLE_MATCH$4),
1102
- rule: RULE$81,
1102
+ rule: RULE$80,
1103
1103
  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])}\`.`
1104
1104
  });
1105
1105
  const problemsIn$24 = (entry, source) => pipe(Array$1.fromIterable(String$1.matchAll(GIT_SUBPATH)(source)), Array$1.map(problemAt$5(entry, source)));
@@ -1110,13 +1110,13 @@ const checkGitSubpath = Effect.fn("checkGitSubpath")(function* checkGitSubpath(r
1110
1110
  return yield* scanText(pipe(listed, Array$1.filter(isDependencyFile)), problemsIn$24);
1111
1111
  });
1112
1112
  // src/features/check-overrides/model/restricted-rules.ts
1113
- const RULE$80 = "unnamed-restriction";
1113
+ const RULE$79 = "unnamed-restriction";
1114
1114
  const WHOLE_MATCH$3 = 0;
1115
1115
  const UNNAMED = new RegExp(`(?:[\\w@-]+/)?no-restricted-[a-z]+(?:-[a-z]+)*\\b`, "gu");
1116
1116
  const problemsIn$23 = (entry, source) => pipe(Array$1.fromIterable(String$1.matchAll(UNNAMED)(source)), Array$1.map((found) => ({
1117
1117
  file: entry.file,
1118
1118
  ...positionOf(source)(found.index ?? WHOLE_MATCH$3),
1119
- rule: RULE$80,
1119
+ rule: RULE$79,
1120
1120
  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.`
1121
1121
  })));
1122
1122
  /** @internal */
@@ -1125,13 +1125,13 @@ const checkRestrictedRules = Effect.fn("checkRestrictedRules")(function* checkRe
1125
1125
  return yield* scanText(pipe(listed, Array$1.filter(isScannedText)), problemsIn$23);
1126
1126
  });
1127
1127
  // src/features/check-overrides/model/type-exemptions.ts
1128
- const RULE$79 = "named-type-exemption";
1128
+ const RULE$78 = "named-type-exemption";
1129
1129
  const WHOLE_MATCH$2 = 0;
1130
1130
  const SPECIFIER = new RegExp(`["']?\\bfrom["']?\\s*:\\s*["'](?:file|lib|package)["']`, "gu");
1131
1131
  const problemsIn$22 = (entry, source) => pipe(Array$1.fromIterable(String$1.matchAll(SPECIFIER)(source)), Array$1.map((found) => ({
1132
1132
  file: entry.file,
1133
1133
  ...positionOf(source)(found.index ?? WHOLE_MATCH$2),
1134
- rule: RULE$79,
1134
+ rule: RULE$78,
1135
1135
  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."
1136
1136
  })));
1137
1137
  /** @internal */
@@ -1147,7 +1147,7 @@ const INSTALL_REGISTRY = "https://npm.flatt.tech/";
1147
1147
  const withTrailingSlash = (url) => `${String$1.replace(TRAILING_SLASH$1, "")(url)}/`;
1148
1148
  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)))));
1149
1149
  // src/features/check-overrides/model/package-registry.ts
1150
- const RULE$78 = "package-registry";
1150
+ const RULE$77 = "package-registry";
1151
1151
  const WORKSPACE_FILE$6 = "pnpm-workspace.yaml";
1152
1152
  const NPMRC = /(?:^|\/)\.npmrc$/u;
1153
1153
  const WORKSPACE_REGISTRY = /^registry:/mu;
@@ -1161,7 +1161,7 @@ const offsetIn$1 = (found) => pipe(Option.fromNullishOr(found), Option.map(({ in
1161
1161
  const workspaceProblem = ({ file, source }, registry) => ({
1162
1162
  file,
1163
1163
  ...positionOf(source)(offsetIn$1(WORKSPACE_REGISTRY.exec(source))),
1164
- rule: RULE$78,
1164
+ rule: RULE$77,
1165
1165
  message: Option.match(registry, {
1166
1166
  onNone: () => `${REASON$4} Set \`registry: ${INSTALL_REGISTRY}\` in ${WORKSPACE_FILE$6}.`,
1167
1167
  onSome: (value) => `${REASON$4} \`registry\` is ${value}. Set it to ${INSTALL_REGISTRY}.`
@@ -1170,7 +1170,7 @@ const workspaceProblem = ({ file, source }, registry) => ({
1170
1170
  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) => ({
1171
1171
  file: entry.file,
1172
1172
  ...positionOf(source)(found.index ?? START$34),
1173
- rule: RULE$78,
1173
+ rule: RULE$77,
1174
1174
  message: `${REASON$4} This .npmrc overrides it with \`${String$1.trim(found[START$34])}\`. Remove the line.`
1175
1175
  })));
1176
1176
  const checkWorkspace = Effect.fn("checkWorkspace")(function* checkWorkspace(root) {
@@ -1224,7 +1224,7 @@ const SECTIONS$1 = [
1224
1224
  const manifestSpecifiers = (source) => pipe(decodePackageJson(source), Option.map((manifest) => pipe(SECTIONS$1, Array$1.flatMap((section) => specifiedIn(manifest[section])))), Option.getOrElse(() => []));
1225
1225
  // src/entities/package/model/published-manifest.ts
1226
1226
  const EXCLUDED$9 = [":(exclude,attr:linguist-vendored)", ":(exclude,attr:linguist-generated)"];
1227
- const isPublished$1 = (manifest) => manifest.private !== true && Predicate.isNotUndefined(manifest.publishConfig);
1227
+ const isPublished$1 = (manifest) => manifest.private !== true && Predicate$1.isNotUndefined(manifest.publishConfig);
1228
1228
  const publishedManifestOf = (source) => pipe(source, Option.flatMap(decodePackageJson), Option.filter(isPublished$1));
1229
1229
  /** @internal */
1230
1230
  const scanPublishedManifests = Effect.fn("scanPublishedManifests")(function* scanPublishedManifests(root, problemsIn) {
@@ -1248,7 +1248,7 @@ const SELF_HOMEPAGE = homepage;
1248
1248
  const SELF_DIRECTORY = repository.directory;
1249
1249
  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`;
1250
1250
  // src/features/check-overrides/model/removed-peers.ts
1251
- const RULE$77 = "removed-peer";
1251
+ const RULE$76 = "removed-peer";
1252
1252
  const WORKSPACE_FILE$5 = "pnpm-workspace.yaml";
1253
1253
  const REMOVED = "-";
1254
1254
  const PARENT_SEPARATOR = ">";
@@ -1258,7 +1258,7 @@ const packageNameOf$1 = (selector) => pipe(String$1.indexOf(VERSION_SEPARATOR)(S
1258
1258
  onNone: () => selector,
1259
1259
  onSome: (index) => String$1.takeLeft(selector, index + SCOPED_START)
1260
1260
  }));
1261
- const removalOf$1 = (key) => Array$1.matchRight(String$1.split(key, PARENT_SEPARATOR), {
1261
+ const removalOf = (key) => Array$1.matchRight(String$1.split(key, PARENT_SEPARATOR), {
1262
1262
  onEmpty: () => Option.none(),
1263
1263
  onNonEmpty: (parents, target) => Option.some({
1264
1264
  key,
@@ -1275,12 +1275,12 @@ const problemAt$4 = (file, { key, line, column }) => ({ peer, dependent }) => ({
1275
1275
  file,
1276
1276
  line,
1277
1277
  column,
1278
- rule: RULE$77,
1278
+ rule: RULE$76,
1279
1279
  message: `msch runs ${dependent}, which needs ${peer} as a peer, so removing ${peer} with the override ${key} breaks msch. Remove the override.`
1280
1280
  });
1281
1281
  const removalsIn = (overrides) => pipe(overrides, Record.filter(isRemoval));
1282
1282
  const firstRemovedPeer = (peers) => (removal) => pipe(peers, Array$1.findFirst(removesPeer(removal)));
1283
- const removedPeerProblems = (peers) => ({ file, source, overrides }) => pipe(overrideKeysOf(source)(removalsIn(overrides)), Array$1.flatMap((located) => pipe(removalOf$1(located.key), Option.flatMap(firstRemovedPeer(peers)), Option.map(problemAt$4(file, located)), Option.toArray)));
1283
+ const removedPeerProblems = (peers) => ({ file, source, overrides }) => pipe(overrideKeysOf(source)(removalsIn(overrides)), Array$1.flatMap((located) => pipe(removalOf(located.key), Option.flatMap(firstRemovedPeer(peers)), Option.map(problemAt$4(file, located)), Option.toArray)));
1284
1284
  const requiredPeersOf$1 = (dependent, manifest) => pipe(Record.keys(manifest.peerDependencies ?? {}), Array$1.difference(optionalPeerNames(manifest)), Array$1.map((peer) => ({
1285
1285
  peer,
1286
1286
  dependent
@@ -2160,13 +2160,13 @@ const lengths = (items) => {
2160
2160
  return [min, max];
2161
2161
  };
2162
2162
  const itemLengths = (it) => {
2163
- if (it.t === "star") return [0, Infinity];
2163
+ if (it.t === "star") return [0, 1e400];
2164
2164
  if (it.t !== "ext") return [1, 1];
2165
- if (it.type === "!") return [0, Infinity];
2165
+ if (it.type === "!") return [0, 1e400];
2166
2166
  const alts = it.alts.map(lengths);
2167
2167
  const min = Math.min(...alts.map((a) => a[0]));
2168
2168
  const max = Math.max(...alts.map((a) => a[1]));
2169
- const loop = max === 0 ? 0 : Infinity;
2169
+ const loop = max === 0 ? 0 : 1e400;
2170
2170
  return it.type === "@" ? [min, max] : it.type === "?" ? [0, max] : it.type === "*" ? [0, loop] : [min, loop];
2171
2171
  };
2172
2172
  const hasAffix = (lits, chars, start) => {
@@ -2192,7 +2192,7 @@ var Matcher = class {
2192
2192
  #linear;
2193
2193
  #wild = false;
2194
2194
  #min = 0;
2195
- #max = Infinity;
2195
+ #max = 1e400;
2196
2196
  #prefix = [];
2197
2197
  #suffix = [];
2198
2198
  #prefixStr;
@@ -3416,7 +3416,7 @@ const matcher = (patterns) => {
3416
3416
  String$1.startsWith(NEGATION$1);
3417
3417
  String$1.slice(1);
3418
3418
  // src/features/check-placement/model/colocated-git-patterns.ts
3419
- const RULE$76 = "colocated-git-patterns";
3419
+ const RULE$75 = "colocated-git-patterns";
3420
3420
  const PATTERN_FILES = [":(glob)**/.gitignore", ":(glob)**/.gitattributes"];
3421
3421
  const ROOT$3 = ".";
3422
3422
  const NEGATION = "!";
@@ -3427,7 +3427,7 @@ const LEADING_SLASHES = /^\/+/u;
3427
3427
  const TRAILING_SLASHES = /\/+$/u;
3428
3428
  const SPACES = /\s+/u;
3429
3429
  const FIRST$26 = 1;
3430
- const READ_CONCURRENCY$41 = 16;
3430
+ const READ_CONCURRENCY$40 = 16;
3431
3431
  const withoutPrefix = (prefix, text) => {
3432
3432
  if (String$1.startsWith(prefix)(text)) return String$1.slice(prefix.length)(text);
3433
3433
  return text;
@@ -3463,7 +3463,7 @@ const entriesIn$2 = Effect.fn("entriesIn")(function* entriesIn(root, file) {
3463
3463
  const toEntry = entryOf$2(absolute, files.basename(file), files.dirname(file));
3464
3464
  return pipe(Option.getOrElse(text, () => ""), String$1.split("\n"), Array$1.map(toEntry), Array$1.getSomes);
3465
3465
  });
3466
- const patternProblem = (entry, message) => problemAtPosition(RULE$76)(entry.file, {
3466
+ const patternProblem = (entry, message) => problemAtPosition(RULE$75)(entry.file, {
3467
3467
  line: entry.line,
3468
3468
  column: FIRST$26
3469
3469
  }, message);
@@ -3518,18 +3518,18 @@ const repeated = (entries) => (entry) => {
3518
3518
  /** @internal */
3519
3519
  const checkColocatedGitPatterns = Effect.fn("checkColocatedGitPatterns")(function* checkColocatedGitPatterns(root) {
3520
3520
  const patternFiles = yield* (yield* RepositoryFiles).matchingFiles(root, PATTERN_FILES);
3521
- const read = yield* Effect.forEach(patternFiles, (file) => entriesIn$2(root, file), { concurrency: READ_CONCURRENCY$41 });
3521
+ const read = yield* Effect.forEach(patternFiles, (file) => entriesIn$2(root, file), { concurrency: READ_CONCURRENCY$40 });
3522
3522
  const entries = Array$1.flatten(read);
3523
3523
  const workspaces = yield* workspaceDirectories(root);
3524
- const misplacedFound = yield* Effect.forEach(entries, (entry) => misplaced(root, workspaces, entry), { concurrency: READ_CONCURRENCY$41 });
3524
+ const misplacedFound = yield* Effect.forEach(entries, (entry) => misplaced(root, workspaces, entry), { concurrency: READ_CONCURRENCY$40 });
3525
3525
  const repeatedFound = pipe(entries, Array$1.map(repeated(entries)));
3526
3526
  return Array$1.getSomes([...misplacedFound, ...repeatedFound]);
3527
3527
  });
3528
3528
  // src/features/check-placement/model/colocated-tests.ts
3529
- const RULE$75 = "colocated-test";
3529
+ const RULE$74 = "colocated-test";
3530
3530
  const FIRST$25 = 1;
3531
- const READ_CONCURRENCY$40 = 64;
3532
- const ROOT_SUBPATH$2 = ".";
3531
+ const READ_CONCURRENCY$39 = 64;
3532
+ const ROOT_SUBPATH$1 = ".";
3533
3533
  const NAME_GROUP$2 = "name";
3534
3534
  const SPECIFIER_GROUP = "specifier";
3535
3535
  const SCRIPT$1 = /\.[cm]?[jt]sx?$/u;
@@ -3549,7 +3549,7 @@ const problemFor$11 = (test, message) => ({
3549
3549
  file: test.file,
3550
3550
  line: FIRST$25,
3551
3551
  column: FIRST$25,
3552
- rule: RULE$75,
3552
+ rule: RULE$74,
3553
3553
  message: `${test.base} ${message}`
3554
3554
  });
3555
3555
  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);
@@ -3562,7 +3562,7 @@ const specifiersBeside = ({ join, dirname, directory }) => (manifest) => pipe(Op
3562
3562
  manifest,
3563
3563
  join,
3564
3564
  packEntries: []
3565
- }), Array$1.filter(({ source }) => dirname(source) === directory), Array$1.map(({ label }) => String$1.replace(ROOT_SUBPATH$2, name)(label)))), Option.getOrElse(() => []));
3565
+ }), Array$1.filter(({ source }) => dirname(source) === directory), Array$1.map(({ label }) => String$1.replace(ROOT_SUBPATH$1, name)(label)))), Option.getOrElse(() => []));
3566
3566
  const ownSpecifiers = Effect.fn("ownSpecifiers")(function* ownSpecifiers(context, test) {
3567
3567
  const files = yield* RepositoryFiles;
3568
3568
  const owner = ownerOf$5(context.packages, test.name);
@@ -3612,12 +3612,12 @@ const checkColocatedTests = Effect.fn("checkColocatedTests")(function* checkColo
3612
3612
  directory: files.dirname(file)
3613
3613
  };
3614
3614
  }));
3615
- const found = yield* Effect.forEach(tests, (test) => problemIn$8(context, test), { concurrency: READ_CONCURRENCY$40 });
3615
+ const found = yield* Effect.forEach(tests, (test) => problemIn$8(context, test), { concurrency: READ_CONCURRENCY$39 });
3616
3616
  return Array$1.getSomes(found);
3617
3617
  });
3618
3618
  // src/shared/lib/agent-docs.ts
3619
3619
  const AGENT_DOC$1 = /(?:^|\/)(?:AGENTS|CLAUDE)\.md$/u;
3620
- const READ_CONCURRENCY$39 = 16;
3620
+ const READ_CONCURRENCY$38 = 16;
3621
3621
  const agentDocProblems = Effect.fn("agentDocProblems")(function* agentDocProblems(root, problemIn) {
3622
3622
  const files = yield* RepositoryFiles;
3623
3623
  const listed = yield* files.listedFiles(root);
@@ -3626,13 +3626,13 @@ const agentDocProblems = Effect.fn("agentDocProblems")(function* agentDocProblem
3626
3626
  const file = files.join(root, name);
3627
3627
  const problemOf = Option.flatMap(problemIn(file));
3628
3628
  return files.readFile(file).pipe(Effect.map(problemOf));
3629
- }, { concurrency: READ_CONCURRENCY$39 });
3629
+ }, { concurrency: READ_CONCURRENCY$38 });
3630
3630
  return Array$1.getSomes(found);
3631
3631
  });
3632
3632
  // src/features/check-placement/model/agent-docs-length.ts
3633
3633
  const RECOMMENDED_LINES = 200;
3634
3634
  const FIRST$24 = 1;
3635
- const RULE$74 = "agent-docs-length";
3635
+ const RULE$73 = "agent-docs-length";
3636
3636
  const lineCount = (source) => pipe(String$1.trimEnd(source), String$1.split("\n")).length;
3637
3637
  const problemFor$10 = (file) => (lines) => {
3638
3638
  if (lines <= RECOMMENDED_LINES) return Option.none();
@@ -3640,18 +3640,18 @@ const problemFor$10 = (file) => (lines) => {
3640
3640
  file,
3641
3641
  line: 201,
3642
3642
  column: FIRST$24,
3643
- rule: RULE$74,
3643
+ rule: RULE$73,
3644
3644
  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.`
3645
3645
  });
3646
3646
  };
3647
3647
  /** @internal */
3648
3648
  const checkAgentDocsLength = (root) => agentDocProblems(root, (file) => (source) => problemFor$10(file)(lineCount(source)));
3649
3649
  // src/features/check-placement/model/claude-link.ts
3650
- const RULE$73 = "claude-md-link";
3650
+ const RULE$72 = "claude-md-link";
3651
3651
  const CLAUDE = "CLAUDE.md";
3652
3652
  const AGENTS = "AGENTS.md";
3653
3653
  const FIRST$23 = 1;
3654
- const READ_CONCURRENCY$38 = 16;
3654
+ const READ_CONCURRENCY$37 = 16;
3655
3655
  const MESSAGE$15 = "CLAUDE.md must be a symbolic link to AGENTS.md";
3656
3656
  /** @internal */
3657
3657
  const checkClaudeLinks = Effect.fn("checkClaudeLinks")(function* checkClaudeLinks(root) {
@@ -3666,19 +3666,19 @@ const checkClaudeLinks = Effect.fn("checkClaudeLinks")(function* checkClaudeLink
3666
3666
  file: path,
3667
3667
  line: FIRST$23,
3668
3668
  column: FIRST$23,
3669
- rule: RULE$73,
3669
+ rule: RULE$72,
3670
3670
  message: MESSAGE$15
3671
3671
  })));
3672
3672
  });
3673
3673
  const claude = pipe(listed, Array$1.filter((name) => files.basename(name) === CLAUDE));
3674
- const found = yield* Effect.forEach(claude, problemOf, { concurrency: READ_CONCURRENCY$38 });
3674
+ const found = yield* Effect.forEach(claude, problemOf, { concurrency: READ_CONCURRENCY$37 });
3675
3675
  return Array$1.getSomes(found);
3676
3676
  });
3677
3677
  // src/features/check-placement/model/dangling-links.ts
3678
- const RULE$72 = "dangling-link";
3678
+ const RULE$71 = "dangling-link";
3679
3679
  const SEPARATOR$26 = "/";
3680
3680
  const FIRST$22 = 1;
3681
- const READ_CONCURRENCY$37 = 16;
3681
+ const READ_CONCURRENCY$36 = 16;
3682
3682
  const holds = (target) => (name) => name === target || String$1.startsWith(`${target}${SEPARATOR$26}`)(name);
3683
3683
  /** @internal */
3684
3684
  const checkDanglingLinks = Effect.fn("checkDanglingLinks")(function* checkDanglingLinks(root) {
@@ -3691,11 +3691,11 @@ const checkDanglingLinks = Effect.fn("checkDanglingLinks")(function* checkDangli
3691
3691
  file,
3692
3692
  line: FIRST$22,
3693
3693
  column: FIRST$22,
3694
- rule: RULE$72,
3694
+ rule: RULE$71,
3695
3695
  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.`
3696
3696
  })));
3697
3697
  });
3698
- const found = yield* Effect.forEach(links, problemOf, { concurrency: READ_CONCURRENCY$37 });
3698
+ const found = yield* Effect.forEach(links, problemOf, { concurrency: READ_CONCURRENCY$36 });
3699
3699
  return Array$1.getSomes(found);
3700
3700
  });
3701
3701
  // src/features/check-placement/model/member-sources.ts
@@ -3749,9 +3749,9 @@ const readReadme = Effect.fn("readReadme")(function* readReadme({ root, director
3749
3749
  }));
3750
3750
  });
3751
3751
  // src/features/check-placement/model/deployed-readme.ts
3752
- const RULE$71 = "deployed-readme";
3752
+ const RULE$70 = "deployed-readme";
3753
3753
  const ROOT_DIRECTORY$4 = "";
3754
- const READ_CONCURRENCY$36 = 16;
3754
+ const READ_CONCURRENCY$35 = 16;
3755
3755
  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.";
3756
3756
  const NO_URL_MESSAGE = "has no https:// URL. This workspace has an Alchemy stack that serves an address, so link the URL it is served at.";
3757
3757
  const ADDRESS_KEYS = [
@@ -3765,7 +3765,7 @@ const STACK_FILE = /(?:^|\/)alchemy\.(?![^/]*\.test\.)[^/]+\.[cm]?ts$/u;
3765
3765
  const ALCHEMY_IMPORT = /from\s+["'](?:alchemy|@alchemy\.run)(?:\/[^"']*)?["']/u;
3766
3766
  const URL_PATTERN = /https:\/\/[^\s)>\]]+/u;
3767
3767
  const decodeKey$2 = Schema.decodeUnknownOption(KeySchema);
3768
- const propertyNamed = (names) => (node) => Predicate.isReadonlyObject(node) && node["type"] === "Property" && pipe(decodeKey$2(node["key"]), Option.exists((key) => Array$1.contains(names, keyName(key))));
3768
+ const propertyNamed = (names) => (node) => Predicate$1.isReadonlyObject(node) && node["type"] === "Property" && pipe(decodeKey$2(node["key"]), Option.exists((key) => Array$1.contains(names, keyName(key))));
3769
3769
  const isAddressProperty = propertyNamed(ADDRESS_KEYS);
3770
3770
  const isUrlProperty = propertyNamed([URL_KEY]);
3771
3771
  const ReturnedObject = Schema.Struct({
@@ -3789,14 +3789,14 @@ const problemIn$7 = Effect.fn("problemIn")(function* problemIn(root, directory)
3789
3789
  const readme = yield* readReadme({
3790
3790
  root,
3791
3791
  directory,
3792
- rule: RULE$71,
3792
+ rule: RULE$70,
3793
3793
  missingMessage: MISSING_MESSAGE$2
3794
3794
  });
3795
3795
  return Result.match(readme, {
3796
3796
  onFailure: Option.some,
3797
3797
  onSuccess: ({ file, source }) => pipe(Option.liftPredicate(source, (text) => !URL_PATTERN.test(text)), Option.map(() => fileProblem$1({
3798
3798
  file,
3799
- rule: RULE$71,
3799
+ rule: RULE$70,
3800
3800
  message: NO_URL_MESSAGE
3801
3801
  })))
3802
3802
  });
@@ -3807,16 +3807,16 @@ const checkDeployedReadme = Effect.fn("checkDeployedReadme")(function* checkDepl
3807
3807
  const listed = yield* files.listedFiles(root);
3808
3808
  const directories = yield* workspaceDirectories(root);
3809
3809
  const candidates = pipe(listed, Array$1.filter((file) => STACK_FILE.test(file)));
3810
- const deploying = yield* Effect.filter(candidates, (file) => deploysTo(root, file), { concurrency: READ_CONCURRENCY$36 });
3810
+ const deploying = yield* Effect.filter(candidates, (file) => deploysTo(root, file), { concurrency: READ_CONCURRENCY$35 });
3811
3811
  const owners = pipe(deploying, Array$1.map((file) => pipe(owningWorkspace(directories)(files.dirname(file)), Option.getOrElse(() => ROOT_DIRECTORY$4))), Array$1.dedupe);
3812
- const found = yield* Effect.forEach(owners, (directory) => problemIn$7(root, directory), { concurrency: READ_CONCURRENCY$36 });
3812
+ const found = yield* Effect.forEach(owners, (directory) => problemIn$7(root, directory), { concurrency: READ_CONCURRENCY$35 });
3813
3813
  return Array$1.getSomes(found);
3814
3814
  });
3815
3815
  // src/features/check-placement/model/nested-docs.ts
3816
- const RULE$70 = "nested-docs";
3816
+ const RULE$69 = "nested-docs";
3817
3817
  const CONFIG_FILE$9 = "vite.config.ts";
3818
3818
  const SEPARATOR$24 = "/";
3819
- const READ_CONCURRENCY$35 = 64;
3819
+ const READ_CONCURRENCY$34 = 64;
3820
3820
  const AGENT_DOCS$1 = /^(?:AGENTS|CLAUDE)(?:\.[^/]+)?\.md$/iu;
3821
3821
  const WORKSPACE_AGENT_DOC = "AGENTS.md";
3822
3822
  const README = /^README(?:\.[^/]+)?$/iu;
@@ -3826,7 +3826,7 @@ const RootConfig$1 = Schema.Struct({ msch: Schema.Struct({ workspaceAgentsMd: Sc
3826
3826
  const taggedError$13 = Schema.TaggedError;
3827
3827
  var RootConfigUnreadable = class extends taggedError$13()("RootConfigUnreadable", { file: Schema.String }) {};
3828
3828
  const isNested = (name) => String$1.includes(SEPARATOR$24)(name);
3829
- const problemFor$9 = problemInFile(RULE$70);
3829
+ const problemFor$9 = problemInFile(RULE$69);
3830
3830
  const AGENT_DOCS_MESSAGE = "belongs only at the repository root. Move what agents need into the root AGENTS.md and delete this file.";
3831
3831
  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.";
3832
3832
  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.";
@@ -3873,7 +3873,7 @@ const checkNestedDocs = Effect.fn("checkNestedDocs")(function* checkNestedDocs(r
3873
3873
  workspaces: pipe(directories, Array$1.map((directory) => files.join(root, directory)), HashSet.fromIterable),
3874
3874
  workspaceAgentDocs
3875
3875
  };
3876
- const found = yield* Effect.forEach(nested, (name) => problemIn$6(root, allowed, name), { concurrency: READ_CONCURRENCY$35 });
3876
+ const found = yield* Effect.forEach(nested, (name) => problemIn$6(root, allowed, name), { concurrency: READ_CONCURRENCY$34 });
3877
3877
  const missing = missingProblems({
3878
3878
  required: workspaceAgentDocs,
3879
3879
  directories: pipe(directories, Array$1.map((directory) => files.join(root, directory))),
@@ -3883,15 +3883,15 @@ const checkNestedDocs = Effect.fn("checkNestedDocs")(function* checkNestedDocs(r
3883
3883
  return [...Array$1.getSomes(found), ...missing];
3884
3884
  });
3885
3885
  // src/features/check-placement/model/published-readme.ts
3886
- const RULE$69 = "published-readme";
3887
- const READ_CONCURRENCY$34 = 16;
3886
+ const RULE$68 = "published-readme";
3887
+ const READ_CONCURRENCY$33 = 16;
3888
3888
  const MESSAGE$14 = "contains Japanese. This package is published to npm, so write its README in English.";
3889
3889
  const MISSING_MESSAGE = "is missing. This package is published to npm, so give it an English README.md.";
3890
3890
  const problemIn$5 = Effect.fn("problemIn")(function* problemIn(root, { directory }) {
3891
3891
  const readme = yield* readReadme({
3892
3892
  root,
3893
3893
  directory,
3894
- rule: RULE$69,
3894
+ rule: RULE$68,
3895
3895
  missingMessage: MISSING_MESSAGE
3896
3896
  });
3897
3897
  return Result.match(readme, {
@@ -3902,7 +3902,7 @@ const problemIn$5 = Effect.fn("problemIn")(function* problemIn(root, { directory
3902
3902
  file,
3903
3903
  line,
3904
3904
  column,
3905
- rule: RULE$69,
3905
+ rule: RULE$68,
3906
3906
  message: MESSAGE$14
3907
3907
  };
3908
3908
  }))
@@ -3911,11 +3911,11 @@ const problemIn$5 = Effect.fn("problemIn")(function* problemIn(root, { directory
3911
3911
  /** @internal */
3912
3912
  const checkPublishedReadme = Effect.fn("checkPublishedReadme")(function* checkPublishedReadme(root) {
3913
3913
  const projects = yield* publishedProjects(root);
3914
- const found = yield* Effect.forEach(projects, (project) => problemIn$5(root, project), { concurrency: READ_CONCURRENCY$34 });
3914
+ const found = yield* Effect.forEach(projects, (project) => problemIn$5(root, project), { concurrency: READ_CONCURRENCY$33 });
3915
3915
  return Array$1.getSomes(found);
3916
3916
  });
3917
3917
  // src/features/check-placement/model/published-tests.ts
3918
- const RULE$68 = "published-tests";
3918
+ const RULE$67 = "published-tests";
3919
3919
  const FILE_START = 1;
3920
3920
  const TEST_FILE$3 = /\.test\.[cm]?[jt]sx?$/u;
3921
3921
  const MESSAGE$13 = "belongs to a package published to npm that has no tests. Write tests for what the package offers before publishing it.";
@@ -3929,7 +3929,7 @@ const problemFor$8 = Effect.fn("problemFor")(function* problemFor(root, listed,
3929
3929
  file: files.join(absolute, PACKAGE_JSON_FILE),
3930
3930
  line: FILE_START,
3931
3931
  column: FILE_START,
3932
- rule: RULE$68,
3932
+ rule: RULE$67,
3933
3933
  message: MESSAGE$13
3934
3934
  });
3935
3935
  });
@@ -3943,7 +3943,7 @@ const checkPublishedTests = Effect.fn("checkPublishedTests")(function* checkPubl
3943
3943
  return Array$1.getSomes(found);
3944
3944
  });
3945
3945
  // src/features/check-placement/model/root-docs.ts
3946
- const RULE$67 = "root-docs";
3946
+ const RULE$66 = "root-docs";
3947
3947
  const SEPARATOR$23 = "/";
3948
3948
  const FIRST$20 = 1;
3949
3949
  const MARKDOWN$6 = /\.(?:md|mdx|markdown)$/iu;
@@ -3958,14 +3958,14 @@ const checkRootDocs = Effect.fn("checkRootDocs")(function* checkRootDocs(root) {
3958
3958
  file: files.join(root, name),
3959
3959
  line: FIRST$20,
3960
3960
  column: FIRST$20,
3961
- rule: RULE$67,
3961
+ rule: RULE$66,
3962
3962
  message: `${name} ${MESSAGE$12}`
3963
3963
  })));
3964
3964
  });
3965
3965
  // src/features/check-placement/model/root-readme.ts
3966
- const RULE$66 = "root-readme";
3966
+ const RULE$65 = "root-readme";
3967
3967
  const ROOT_DOC = /^(?:README(?:\.[^/]+)?|AGENTS\.md|CLAUDE\.md)$/iu;
3968
- const READ_CONCURRENCY$33 = 16;
3968
+ const READ_CONCURRENCY$32 = 16;
3969
3969
  const START$32 = 0;
3970
3970
  const MARKETPLACE = ".claude-plugin/marketplace.json";
3971
3971
  const RELATIVE$4 = /^\.\//u;
@@ -3981,11 +3981,11 @@ const NO_PLUGINS = {
3981
3981
  const isCheckPolicy = ({ packageName }) => Option.contains(packageName, SELF_NAME);
3982
3982
  const messageFor$5 = (directory) => `names the workspace ${directory}. The root README, AGENTS.md and CLAUDE.md describe the repository as a whole. Write what belongs to the workspace in ${directory}/README.md, or for agents in ${directory}/AGENTS.md.`;
3983
3983
  const pluginsOf = (plugins) => {
3984
- const directories = pipe(plugins, Array$1.map(({ source }) => source), Array$1.filter(Predicate.isString), Array$1.map(String$1.replace(RELATIVE$4, "")));
3984
+ const directories = pipe(plugins, Array$1.map(({ source }) => source), Array$1.filter(Predicate$1.isString), Array$1.map(String$1.replace(RELATIVE$4, "")));
3985
3985
  const segments = pipe(directories, Array$1.map(baseName$1));
3986
3986
  return {
3987
3987
  directories,
3988
- names: pipe(plugins, Array$1.map(({ name }) => name), Array$1.filter(Predicate.isString), Array$1.appendAll(segments), Array$1.dedupe)
3988
+ names: pipe(plugins, Array$1.map(({ name }) => name), Array$1.filter(Predicate$1.isString), Array$1.appendAll(segments), Array$1.dedupe)
3989
3989
  };
3990
3990
  };
3991
3991
  const marketplacePlugins = Effect.fn("marketplacePlugins")(function* marketplacePlugins(root) {
@@ -3995,7 +3995,7 @@ const marketplacePlugins = Effect.fn("marketplacePlugins")(function* marketplace
3995
3995
  });
3996
3996
  const isPluginName = (plugins) => (name) => Array$1.contains(plugins.names, name);
3997
3997
  const ownNames = (plugins, names) => {
3998
- const ownName = Predicate.not(isPluginName(plugins));
3998
+ const ownName = Predicate$1.not(isPluginName(plugins));
3999
3999
  return pipe(names, Array$1.filter(ownName));
4000
4000
  };
4001
4001
  const patternFor = (plugins) => ({ directory, names }) => patternOf$1(Option.match(Array$1.findFirst(plugins.directories, (plugin) => plugin === directory), {
@@ -4006,7 +4006,7 @@ const problemsIn$21 = (file, source, plugins) => (workspace) => {
4006
4006
  const message = messageFor$5(workspace.directory);
4007
4007
  const at = positionOf(source);
4008
4008
  const pattern = patternFor(plugins)(workspace);
4009
- return pipe(Array$1.fromIterable(String$1.matchAll(pattern)(source)), Array$1.map((found) => problemAtPosition(RULE$66)(file, at(found.index ?? START$32), message)));
4009
+ return pipe(Array$1.fromIterable(String$1.matchAll(pattern)(source)), Array$1.map((found) => problemAtPosition(RULE$65)(file, at(found.index ?? START$32), message)));
4010
4010
  };
4011
4011
  const problemsInReadme = Effect.fn("problemsInReadme")(function* problemsInReadme(file, workspaces, plugins) {
4012
4012
  const text = yield* (yield* RepositoryFiles).readFile(file);
@@ -4023,7 +4023,7 @@ const checkRootReadme = Effect.fn("checkRootReadme")(function* checkRootReadme(r
4023
4023
  const named = yield* namedWorkspaces(root);
4024
4024
  const workspaces = pipe(named, Array$1.filter((workspace) => !isCheckPolicy(workspace)));
4025
4025
  const plugins = yield* marketplacePlugins(root);
4026
- const found = yield* Effect.forEach(readmes, (name) => problemsInReadme(files.join(root, name), workspaces, plugins), { concurrency: READ_CONCURRENCY$33 });
4026
+ const found = yield* Effect.forEach(readmes, (name) => problemsInReadme(files.join(root, name), workspaces, plugins), { concurrency: READ_CONCURRENCY$32 });
4027
4027
  return Array$1.flatten(found);
4028
4028
  });
4029
4029
  // src/features/check-placement/model/doc-placement.ts
@@ -4043,10 +4043,10 @@ const checkDocPlacement = Effect.fn("checkDocPlacement")(function* checkDocPlace
4043
4043
  return Array$1.flatten(found);
4044
4044
  });
4045
4045
  // src/features/check-placement/model/docs-mirror.ts
4046
- const RULE$65 = "docs-mirror";
4046
+ const RULE$64 = "docs-mirror";
4047
4047
  const DOC = /(?:^|\/)(?:README|AGENTS|ARCHITECTURE|CLAUDE|SKILL)\.md$/u;
4048
4048
  const MIRROR_LIMIT = 3;
4049
- const READ_CONCURRENCY$32 = 16;
4049
+ const READ_CONCURRENCY$31 = 16;
4050
4050
  const SPECIAL = /[$()*+.?[\\\]^{|}]/gu;
4051
4051
  const BEFORE = String.raw`(?<![\w@/.-])`;
4052
4052
  const AFTER = String.raw`(?![\w@.-])`;
@@ -4068,7 +4068,7 @@ const problemFor$7 = (file, source, mentions) => pipe(Array$1.head(mentions), Op
4068
4068
  file,
4069
4069
  line,
4070
4070
  column,
4071
- rule: RULE$65,
4071
+ rule: RULE$64,
4072
4072
  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.`
4073
4073
  };
4074
4074
  }), Option.toArray);
@@ -4083,7 +4083,7 @@ const workspacesOf$1 = Effect.fn("workspacesOf")(function* workspacesOf(root) {
4083
4083
  return yield* Effect.forEach(directories, (directory) => readManifest(files.join(root, directory)).pipe(Effect.map((manifest) => ({
4084
4084
  directory,
4085
4085
  names: [directory, ...pipe(manifest, Option.flatMap(({ name }) => Option.fromUndefinedOr(name)), Option.toArray)]
4086
- }))), { concurrency: READ_CONCURRENCY$32 });
4086
+ }))), { concurrency: READ_CONCURRENCY$31 });
4087
4087
  });
4088
4088
  /** @internal */
4089
4089
  const checkDocsMirror = Effect.fn("checkDocsMirror")(function* checkDocsMirror(root) {
@@ -4096,11 +4096,11 @@ const checkDocsMirror = Effect.fn("checkDocsMirror")(function* checkDocsMirror(r
4096
4096
  onNone: () => [],
4097
4097
  onSome: (text) => problemIn$4(workspaces)(doc, file, text)
4098
4098
  })));
4099
- }, { concurrency: READ_CONCURRENCY$32 });
4099
+ }, { concurrency: READ_CONCURRENCY$31 });
4100
4100
  return Array$1.flatten(found);
4101
4101
  });
4102
4102
  // src/features/check-placement/model/ignored-sources.ts
4103
- const RULE$64 = "ignored-sources";
4103
+ const RULE$63 = "ignored-sources";
4104
4104
  const SOURCES = [":(glob)**/src/**", ":(exclude,glob)**/node_modules/**"];
4105
4105
  const FIRST$19 = 1;
4106
4106
  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.";
@@ -4112,7 +4112,7 @@ const checkIgnoredSources = Effect.fn("checkIgnoredSources")(function* checkIgno
4112
4112
  file: files.join(root, file),
4113
4113
  line: FIRST$19,
4114
4114
  column: FIRST$19,
4115
- rule: RULE$64,
4115
+ rule: RULE$63,
4116
4116
  message: MESSAGE$11
4117
4117
  })));
4118
4118
  });
@@ -12789,7 +12789,7 @@ const LAYER_ITEMS = [
12789
12789
  "attribute_item",
12790
12790
  "inner_attribute_item"
12791
12791
  ];
12792
- const READ_CONCURRENCY$31 = 64;
12792
+ const READ_CONCURRENCY$30 = 64;
12793
12793
  const EXCLUDED$6 = [":(exclude,attr:linguist-vendored)", ":(exclude,attr:linguist-generated)"];
12794
12794
  const NONE$4 = [];
12795
12795
  const ROOT_MESSAGE = "defines code in the crate root. Keep lib.rs and main.rs to mod declarations of layers, use, pub use and fn main, and put the code in a layer.";
@@ -12865,17 +12865,17 @@ const checkRustModules = Effect.fn("checkRustModules")(function* checkRustModule
12865
12865
  if (!Array$1.isReadonlyArrayNonEmpty(sources)) return NONE$4;
12866
12866
  const language = yield* loadLanguage(GRAMMAR$1).pipe(Effect.orDie);
12867
12867
  const parse = parsedWith(language);
12868
- const read = yield* Effect.forEach(pipe(sources, Array$1.filter(isRead)), (source) => files.readFile(source.file).pipe(Effect.map(Option.flatMap((text) => parse(source, text)))), { concurrency: READ_CONCURRENCY$31 });
12868
+ const read = yield* Effect.forEach(pipe(sources, Array$1.filter(isRead)), (source) => files.readFile(source.file).pipe(Effect.map(Option.flatMap((text) => parse(source, text)))), { concurrency: READ_CONCURRENCY$30 });
12869
12869
  return [...sliceNameProblems(root, files.join, sources), ...Array$1.flatMap(Array$1.getSomes(read), problemsOf$4)];
12870
12870
  });
12871
12871
  // src/features/check-placement/model/shadcn-ui-alias.ts
12872
- const RULE$63 = "shadcn-ui-alias";
12872
+ const RULE$62 = "shadcn-ui-alias";
12873
12873
  const FIRST$18 = 1;
12874
12874
  const problemOf$12 = (directory, { file, alias }) => ({
12875
12875
  file,
12876
12876
  line: FIRST$18,
12877
12877
  column: FIRST$18,
12878
- rule: RULE$63,
12878
+ rule: RULE$62,
12879
12879
  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/*".`
12880
12880
  });
12881
12881
  /** @internal */
@@ -12896,8 +12896,8 @@ const SOURCE_TARGET = "./src/*";
12896
12896
  const SOURCE_PREFIX = /^\.\/src(?:\/|$)/u;
12897
12897
  const ALIAS_MESSAGE = `points into src/ under its own name. Import source through "${SOURCE_ALIAS}": "${SOURCE_TARGET}" only, so an import names the layer and slice it uses instead of a folder alias.`;
12898
12898
  const targetsOf = (target) => {
12899
- if (Predicate.isString(target)) return [target];
12900
- if (Predicate.isObject(target)) return pipe(Record.values(target), Array$1.flatMap(targetsOf));
12899
+ if (Predicate$1.isString(target)) return [target];
12900
+ if (Predicate$1.isObject(target)) return pipe(Record.values(target), Array$1.flatMap(targetsOf));
12901
12901
  return [];
12902
12902
  };
12903
12903
  const intoSource = ([key, target]) => !(key === SOURCE_ALIAS && pipe(targetsOf(target), Array$1.every((path) => path === SOURCE_TARGET))) && pipe(targetsOf(target), Array$1.some((path) => SOURCE_PREFIX.test(path)));
@@ -12905,7 +12905,7 @@ const aliasProblems = Effect.fn("aliasProblems")(function* aliasProblems(root, w
12905
12905
  const files = yield* RepositoryFiles;
12906
12906
  const manifest = files.join(root, workspace, PACKAGE_JSON_FILE);
12907
12907
  const text = yield* files.readFile(manifest);
12908
- return pipe(text, Option.flatMap(decodePackageJson), Option.flatMap(({ imports }) => Option.liftPredicate(imports, Predicate.isObject)), Option.map((imports) => Record.toEntries(imports)), Option.getOrElse(() => Array$1.empty()), Array$1.filter(intoSource), Array$1.map(([key]) => problemInFile(ALIAS_RULE)(manifest, `"${key}" ${ALIAS_MESSAGE}`)));
12908
+ return pipe(text, Option.flatMap(decodePackageJson), Option.flatMap(({ imports }) => Option.liftPredicate(imports, Predicate$1.isObject)), Option.map((imports) => Record.toEntries(imports)), Option.getOrElse(() => Array$1.empty()), Array$1.filter(intoSource), Array$1.map(([key]) => problemInFile(ALIAS_RULE)(manifest, `"${key}" ${ALIAS_MESSAGE}`)));
12909
12909
  });
12910
12910
  /** @internal */
12911
12911
  const checkSourceAliases = Effect.fn("checkSourceAliases")(function* checkSourceAliases(root) {
@@ -12939,7 +12939,7 @@ const SCRIPTS_DIRECTORY = "scripts";
12939
12939
  const WORKFLOW_DIRECTORY = ".github/";
12940
12940
  const SEPARATOR$20 = "/";
12941
12941
  const CURRENT = "./";
12942
- const READ_CONCURRENCY$30 = 8;
12942
+ const READ_CONCURRENCY$29 = 8;
12943
12943
  const FIRST$17 = 1;
12944
12944
  const RUN_FILE = /(?:^|[\s;&|(])(?:node|vpx|tsx|bun|deno)\s+(?:-\S+\s+)*(?<file>[^\s;&|)]+\.[cm]?[jt]s)\b/gu;
12945
12945
  const COMMAND$1 = /^bin\/[^/]+\.[cm]?ts$/u;
@@ -12981,7 +12981,7 @@ const workflowText = Effect.fn("workflowText")(function* workflowText(root) {
12981
12981
  const files = yield* RepositoryFiles;
12982
12982
  const listed = yield* files.listedFiles(root);
12983
12983
  const workflows = pipe(listed, Array$1.filter(String$1.startsWith(WORKFLOW_DIRECTORY)));
12984
- const texts = yield* Effect.forEach(workflows, (file) => files.readFile(files.join(root, file)), { concurrency: READ_CONCURRENCY$30 });
12984
+ const texts = yield* Effect.forEach(workflows, (file) => files.readFile(files.join(root, file)), { concurrency: READ_CONCURRENCY$29 });
12985
12985
  return pipe(Array$1.getSomes(texts), Array$1.join("\n"));
12986
12986
  });
12987
12987
  const workspacePath = (directory, path) => pipe([directory, path], Array$1.filter(String$1.isNonEmpty), Array$1.join(SEPARATOR$20));
@@ -13044,9 +13044,9 @@ const codeInBinProblems = Effect.fn("codeInBinProblems")(function* codeInBinProb
13044
13044
  const checkCommandEntries = Effect.fn("checkCommandEntries")(function* checkCommandEntries(root) {
13045
13045
  const all = ["", ...yield* workspaceDirectories(root)];
13046
13046
  const workflows = yield* workflowText(root);
13047
- const found = yield* Effect.forEach(all, (directory) => problemsIn$20(root, directory, workflows), { concurrency: READ_CONCURRENCY$30 });
13048
- const scripts = yield* Effect.forEach(all, (directory) => scriptsProblem(root, directory), { concurrency: READ_CONCURRENCY$30 });
13049
- const code = yield* Effect.forEach(all, (directory) => codeInBinProblems(root, directory), { concurrency: READ_CONCURRENCY$30 });
13047
+ const found = yield* Effect.forEach(all, (directory) => problemsIn$20(root, directory, workflows), { concurrency: READ_CONCURRENCY$29 });
13048
+ const scripts = yield* Effect.forEach(all, (directory) => scriptsProblem(root, directory), { concurrency: READ_CONCURRENCY$29 });
13049
+ const code = yield* Effect.forEach(all, (directory) => codeInBinProblems(root, directory), { concurrency: READ_CONCURRENCY$29 });
13050
13050
  return [
13051
13051
  ...Array$1.flatten(found),
13052
13052
  ...Array$1.getSomes(scripts),
@@ -13111,7 +13111,7 @@ const WILDCARD$3 = /[*?[{]/u;
13111
13111
  const SEPARATOR$19 = "/";
13112
13112
  const RELATIVE$3 = ".";
13113
13113
  const JSON_EXTENSION = ".json";
13114
- const isObject = (node) => Predicate.isReadonlyObject(node) && node["type"] === "ObjectExpression";
13114
+ const isObject = (node) => Predicate$1.isReadonlyObject(node) && node["type"] === "ObjectExpression";
13115
13115
  const firstObject = (node) => {
13116
13116
  if (isObject(node)) return Option.some(node);
13117
13117
  return pipe(childrenOf$4(node), Array$1.findFirst(firstObject));
@@ -13143,26 +13143,26 @@ const tsconfigMentions = Effect.fn("tsconfigMentions")(function* tsconfigMention
13143
13143
  ])));
13144
13144
  });
13145
13145
  // src/features/check-repository-layout/model/config-paths.ts
13146
- const RULE$62 = "config-path";
13146
+ const RULE$61 = "config-path";
13147
13147
  const WORKSPACE_FILE$4 = "pnpm-workspace.yaml";
13148
13148
  const CARGO_MANIFEST = /(?:^|\/)Cargo\.toml$/u;
13149
13149
  const TSCONFIG = /(?:^|\/)tsconfig(?:\.[\w-]+)?\.json$/u;
13150
13150
  const OUTSIDE = "..";
13151
- const READ_CONCURRENCY$29 = 8;
13151
+ const READ_CONCURRENCY$28 = 8;
13152
13152
  const isMissing$1 = Effect.fn("isMissing")(function* isMissing(root, file, mention) {
13153
13153
  const files = yield* RepositoryFiles;
13154
13154
  const relatives = pipe(mention.candidates, Array$1.map((candidate) => files.relative(root, files.resolve(files.dirname(file), candidate))), Array$1.filter((relative) => !String$1.startsWith(OUTSIDE)(relative)));
13155
13155
  if (!Array$1.isReadonlyArrayNonEmpty(relatives)) return false;
13156
- const present = yield* Effect.forEach(relatives, (relative) => existsAt(root, relative), { concurrency: READ_CONCURRENCY$29 });
13156
+ const present = yield* Effect.forEach(relatives, (relative) => existsAt(root, relative), { concurrency: READ_CONCURRENCY$28 });
13157
13157
  if (pipe(present, Array$1.some(Boolean))) return false;
13158
- const ignored = yield* Effect.forEach(relatives, (relative) => isIgnored(root, relative), { concurrency: READ_CONCURRENCY$29 });
13158
+ const ignored = yield* Effect.forEach(relatives, (relative) => isIgnored(root, relative), { concurrency: READ_CONCURRENCY$28 });
13159
13159
  return !pipe(ignored, Array$1.some(Boolean));
13160
13160
  });
13161
13161
  const byIndex = Order.mapInput(Order.Number, ({ index }) => index);
13162
13162
  const problemOf$11 = (file, source) => (mention) => ({
13163
13163
  file,
13164
13164
  ...positionOf(source)(mention.index),
13165
- rule: RULE$62,
13165
+ rule: RULE$61,
13166
13166
  message: `${mention.field} names ${mention.text}, which does not exist in this repository. Point it at a path that exists or remove the entry.`
13167
13167
  });
13168
13168
  const mentionsIn = Effect.fn("mentionsIn")(function* mentionsIn(file, source) {
@@ -13175,7 +13175,7 @@ const problemsIn$19 = Effect.fn("problemsIn")(function* problemsIn(root, name) {
13175
13175
  const source = yield* files.readFile(file);
13176
13176
  if (Option.isNone(source)) return [];
13177
13177
  const mentions = yield* mentionsIn(file, source.value);
13178
- const missing = yield* Effect.filter(mentions, (mention) => isMissing$1(root, file, mention), { concurrency: READ_CONCURRENCY$29 });
13178
+ const missing = yield* Effect.filter(mentions, (mention) => isMissing$1(root, file, mention), { concurrency: READ_CONCURRENCY$28 });
13179
13179
  return pipe(Array$1.sort(missing, byIndex), Array$1.map(problemOf$11(file, source.value)));
13180
13180
  });
13181
13181
  const unmatchedPatterns = Effect.fn("unmatchedPatterns")(function* unmatchedPatterns(root) {
@@ -13187,7 +13187,7 @@ const unmatchedPatterns = Effect.fn("unmatchedPatterns")(function* unmatchedPatt
13187
13187
  return pipe(patterns, Array$1.map((pattern) => ({
13188
13188
  file,
13189
13189
  ...positionOf(source.value)(indexOfText(source.value)(pattern)),
13190
- rule: RULE$62,
13190
+ rule: RULE$61,
13191
13191
  message: `packages lists ${pattern}, which matches no workspace package. Point it at directories that have a package.json or remove the entry.`
13192
13192
  })));
13193
13193
  });
@@ -13195,23 +13195,23 @@ const unmatchedPatterns = Effect.fn("unmatchedPatterns")(function* unmatchedPatt
13195
13195
  const checkConfigPaths = Effect.fn("checkConfigPaths")(function* checkConfigPaths(root) {
13196
13196
  const owned = yield* (yield* RepositoryFiles).ownedFiles(root);
13197
13197
  const configs = pipe(owned, Array$1.filter((name) => CARGO_MANIFEST.test(name) || TSCONFIG.test(name)));
13198
- const [found, patterns] = yield* Effect.all([Effect.forEach(configs, (name) => problemsIn$19(root, name), { concurrency: READ_CONCURRENCY$29 }), unmatchedPatterns(root)], { concurrency: "unbounded" });
13198
+ const [found, patterns] = yield* Effect.all([Effect.forEach(configs, (name) => problemsIn$19(root, name), { concurrency: READ_CONCURRENCY$28 }), unmatchedPatterns(root)], { concurrency: "unbounded" });
13199
13199
  return [...Array$1.flatten(found), ...patterns];
13200
13200
  });
13201
13201
  // src/features/check-repository-layout/model/crates.ts
13202
- const RULE$61 = "unverified-crate";
13202
+ const RULE$60 = "unverified-crate";
13203
13203
  const VERSION_RULE = "release-version";
13204
13204
  const APP_DIRECTORIES = ["", "src-tauri"];
13205
13205
  const CARGO_FILE$1 = "Cargo.toml";
13206
13206
  const CONFIG_FILE$8 = "vite.config.ts";
13207
13207
  const SEPARATOR$18 = "/";
13208
13208
  const FIRST$16 = 1;
13209
- const READ_CONCURRENCY$28 = 8;
13209
+ const READ_CONCURRENCY$27 = 8;
13210
13210
  const problemFor$6 = (crate, message) => ({
13211
13211
  file: crate.manifest,
13212
13212
  line: FIRST$16,
13213
13213
  column: FIRST$16,
13214
- rule: RULE$61,
13214
+ rule: RULE$60,
13215
13215
  message: `crate ${crate.name} ${message}, so vp run verify never checks it.`
13216
13216
  });
13217
13217
  const problemIn$3 = Effect.fn("problemIn")(function* problemIn(root, directories, crate) {
@@ -13246,11 +13246,11 @@ const checkCrates = Effect.fn("checkCrates")(function* checkCrates(root) {
13246
13246
  const crates = yield* cratesIn(root);
13247
13247
  const notAtRoot = yield* Effect.cached(lintedPerWorkspace(files.join(root, CONFIG_FILE$8)));
13248
13248
  const unverified = (crate) => problemIn$3(root, directories, crate).pipe(Effect.when(notAtRoot), Effect.map(Option.flatten));
13249
- const found = yield* Effect.forEach(crates, (crate) => Effect.all([unverified(crate), versionProblemIn(root, directories, crate)], { concurrency: "unbounded" }), { concurrency: READ_CONCURRENCY$28 });
13249
+ const found = yield* Effect.forEach(crates, (crate) => Effect.all([unverified(crate), versionProblemIn(root, directories, crate)], { concurrency: "unbounded" }), { concurrency: READ_CONCURRENCY$27 });
13250
13250
  return Array$1.getSomes(Array$1.flatten(found));
13251
13251
  });
13252
13252
  // src/features/check-repository-layout/model/deploy-entry-patterns.ts
13253
- const RULE$60 = "deploy-entry-pattern";
13253
+ const RULE$59 = "deploy-entry-pattern";
13254
13254
  const FALLOW_KEYS = [
13255
13255
  "entry",
13256
13256
  "entryPoints",
@@ -13268,7 +13268,7 @@ const NEGATED = "!";
13268
13268
  const ROOT_WORKSPACE = ".";
13269
13269
  const WRAP_OFFSET$1 = 1;
13270
13270
  const NO_OFFSET = 0;
13271
- const READ_CONCURRENCY$27 = 8;
13271
+ const READ_CONCURRENCY$26 = 8;
13272
13272
  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.";
13273
13273
  const decodeKey$1 = Schema.decodeUnknownOption(KeySchema);
13274
13274
  const FALLOW = {
@@ -13285,7 +13285,7 @@ const VITE$1 = {
13285
13285
  };
13286
13286
  const isPatternProperty = (keys) => (node) => node["type"] === "Property" && pipe(decodeKey$1(node["key"]), Option.exists((key) => Array$1.contains(keys, keyName(key))));
13287
13287
  const patternsIn = (keys) => (node) => {
13288
- if (Predicate.isReadonlyObject(node) && isPatternProperty(keys)(node)) return stringsIn(node["value"]);
13288
+ if (Predicate$1.isReadonlyObject(node) && isPatternProperty(keys)(node)) return stringsIn(node["value"]);
13289
13289
  return pipe(childrenOf$4(node), Array$1.flatMap(patternsIn(keys)));
13290
13290
  };
13291
13291
  const choicesOf = ([literal = "", options]) => pipe(Option.fromUndefinedOr(options), Option.map(String$1.split(OPTION_SEPARATOR)), Option.getOrElse(() => [""]), Array$1.map((option) => `${literal}${option}`));
@@ -13321,7 +13321,7 @@ const problemsIn$18 = Effect.fn("problemsIn")(function* problemsIn(request) {
13321
13321
  return pipe(Array$1.getSomes(flagged), Array$1.map(({ text: pattern, start }) => ({
13322
13322
  file: path,
13323
13323
  ...positionOf(text.value)(start - kind.offset),
13324
- rule: RULE$60,
13324
+ rule: RULE$59,
13325
13325
  message: `${pattern} ${MESSAGE$10}`
13326
13326
  })));
13327
13327
  });
@@ -13350,11 +13350,11 @@ const checkDeployEntryPatterns = Effect.fn("checkDeployEntryPatterns")(function*
13350
13350
  kind,
13351
13351
  workspaces,
13352
13352
  entries
13353
- }), { concurrency: READ_CONCURRENCY$27 });
13353
+ }), { concurrency: READ_CONCURRENCY$26 });
13354
13354
  return Array$1.flatten(found);
13355
13355
  });
13356
13356
  // src/features/check-repository-layout/model/fallow-entries.ts
13357
- const RULE$59 = "listed-entry";
13357
+ const RULE$58 = "listed-entry";
13358
13358
  const ENTRY_KEYS = [
13359
13359
  "entry",
13360
13360
  "entryPoints",
@@ -13364,11 +13364,11 @@ const FALLOW_CONFIG = /(?:^|\/)(?:\.fallowrc\.jsonc?|fallow-plugin-[^/]+\.jsonc?
13364
13364
  const WILDCARD$2 = /[*?{[]/u;
13365
13365
  const SEPARATOR$17 = "/";
13366
13366
  const WRAP_OFFSET = 1;
13367
- const READ_CONCURRENCY$26 = 8;
13367
+ const READ_CONCURRENCY$25 = 8;
13368
13368
  const decodeKey = Schema.decodeUnknownOption(KeySchema);
13369
13369
  const isEntryProperty = (node) => node["type"] === "Property" && pipe(decodeKey(node["key"]), Option.exists((key) => Array$1.contains(ENTRY_KEYS, keyName(key))));
13370
13370
  const entryPatternsIn = (node) => {
13371
- if (Predicate.isReadonlyObject(node) && isEntryProperty(node)) return pipe(stringsIn(node["value"]), Array$1.map(({ text, start }) => ({
13371
+ if (Predicate$1.isReadonlyObject(node) && isEntryProperty(node)) return pipe(stringsIn(node["value"]), Array$1.map(({ text, start }) => ({
13372
13372
  text,
13373
13373
  start: start - WRAP_OFFSET
13374
13374
  })));
@@ -13384,7 +13384,7 @@ const problemsIn$17 = Effect.fn("problemsIn")(function* problemsIn(root, file, d
13384
13384
  return pipe(entryPatternsIn(parsed.program), Array$1.filter(namesOneFile(directories)), Array$1.map(({ text: pattern, start }) => ({
13385
13385
  file: path,
13386
13386
  ...positionOf(text.value)(start),
13387
- rule: RULE$59,
13387
+ rule: RULE$58,
13388
13388
  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.`
13389
13389
  })));
13390
13390
  });
@@ -13392,11 +13392,11 @@ const problemsIn$17 = Effect.fn("problemsIn")(function* problemsIn(root, file, d
13392
13392
  const checkFallowEntries = Effect.fn("checkFallowEntries")(function* checkFallowEntries(root) {
13393
13393
  const listed = yield* (yield* RepositoryFiles).listedFiles(root);
13394
13394
  const directories = yield* workspaceDirectories(root);
13395
- const found = yield* Effect.forEach(pipe(listed, Array$1.filter((file) => FALLOW_CONFIG.test(file))), (file) => problemsIn$17(root, file, directories), { concurrency: READ_CONCURRENCY$26 });
13395
+ const found = yield* Effect.forEach(pipe(listed, Array$1.filter((file) => FALLOW_CONFIG.test(file))), (file) => problemsIn$17(root, file, directories), { concurrency: READ_CONCURRENCY$25 });
13396
13396
  return Array$1.flatten(found);
13397
13397
  });
13398
13398
  // src/features/check-repository-layout/model/root-workspace-paths.ts
13399
- const RULE$58 = "root-workspace-path";
13399
+ const RULE$57 = "root-workspace-path";
13400
13400
  const CONFIG_FILE$7 = "vite.config.ts";
13401
13401
  const PATH_CHARACTER = /[\w.@/-]/u;
13402
13402
  const NAME_CHARACTER = /[\w.@-]/u;
@@ -13415,7 +13415,7 @@ const mentions = (directory) => (text) => {
13415
13415
  const problemsIn$16 = (file, source, directories) => (found) => pipe(directories, Array$1.filter((directory) => mentions(directory)(found.text)), Array$1.map((directory) => ({
13416
13416
  file,
13417
13417
  ...positionOf(source)(found.start),
13418
- rule: RULE$58,
13418
+ rule: RULE$57,
13419
13419
  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.`
13420
13420
  })));
13421
13421
  /** @internal */
@@ -13429,10 +13429,10 @@ const checkRootWorkspacePaths = Effect.fn("checkRootWorkspacePaths")(function* c
13429
13429
  return pipe(stringsIn(parsed.program), Array$1.flatMap(problemsIn$16(file, source.value, directories)));
13430
13430
  });
13431
13431
  // src/features/check-repository-layout/model/hidden-verify.ts
13432
- const RULE$57 = "hidden-verify";
13432
+ const RULE$56 = "hidden-verify";
13433
13433
  const CONFIG_FILE$6 = "vite.config.ts";
13434
13434
  const FIRST$14 = 1;
13435
- const READ_CONCURRENCY$25 = 8;
13435
+ const READ_CONCURRENCY$24 = 8;
13436
13436
  const problemIn$2 = Effect.fn("problemIn")(function* problemIn(root, directory) {
13437
13437
  const config = yield* workspaceConfigOf(root, directory);
13438
13438
  if (Option.isNone(config)) return Option.none();
@@ -13443,19 +13443,19 @@ const problemIn$2 = Effect.fn("problemIn")(function* problemIn(root, directory)
13443
13443
  file,
13444
13444
  line: FIRST$14,
13445
13445
  column: FIRST$14,
13446
- rule: RULE$57,
13446
+ rule: RULE$56,
13447
13447
  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}.`
13448
13448
  }).pipe(Option.filter(() => verified));
13449
13449
  });
13450
13450
  /** @internal */
13451
13451
  const checkHiddenVerify = Effect.fn("checkHiddenVerify")(function* checkHiddenVerify(root) {
13452
13452
  const directories = yield* workspaceDirectories(root);
13453
- const found = yield* Effect.forEach(directories, (directory) => problemIn$2(root, directory), { concurrency: READ_CONCURRENCY$25 });
13453
+ const found = yield* Effect.forEach(directories, (directory) => problemIn$2(root, directory), { concurrency: READ_CONCURRENCY$24 });
13454
13454
  return Array$1.getSomes(found);
13455
13455
  });
13456
13456
  // src/features/check-repository-layout/model/shared-uncached-tasks.ts
13457
- const RULE$56 = "shared-uncached-task";
13458
- const READ_CONCURRENCY$24 = 8;
13457
+ const RULE$55 = "shared-uncached-task";
13458
+ const READ_CONCURRENCY$23 = 8;
13459
13459
  const SHARED = 2;
13460
13460
  const OWN_PROGRAM = /^(?:node|vpx|bun|deno|tsx)$|\//u;
13461
13461
  const UncachedTask = Schema.Struct({
@@ -13497,19 +13497,19 @@ const problemsOf$3 = (definitions) => {
13497
13497
  return pipe(definitions, Array$1.map(({ file, position, name, command }) => ({
13498
13498
  file,
13499
13499
  ...position,
13500
- rule: RULE$56,
13500
+ rule: RULE$55,
13501
13501
  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.`
13502
13502
  })));
13503
13503
  };
13504
13504
  /** @internal */
13505
13505
  const checkSharedUncachedTasks = Effect.fn("checkSharedUncachedTasks")(function* checkSharedUncachedTasks(root) {
13506
13506
  const directories = yield* workspaceDirectories(root);
13507
- const found = yield* Effect.forEach(directories, (directory) => definitionsIn(root, directory), { concurrency: READ_CONCURRENCY$24 });
13507
+ const found = yield* Effect.forEach(directories, (directory) => definitionsIn(root, directory), { concurrency: READ_CONCURRENCY$23 });
13508
13508
  return pipe(Array$1.flatten(found), Array$1.groupBy(({ name, definition }) => `${name}\u0000${definition}`), Record.values, Array$1.flatMap(problemsOf$3));
13509
13509
  });
13510
13510
  // src/features/check-repository-layout/model/tested-verify.ts
13511
- const RULE$55 = "tested-verify";
13512
- const READ_CONCURRENCY$23 = 8;
13511
+ const RULE$54 = "tested-verify";
13512
+ const READ_CONCURRENCY$22 = 8;
13513
13513
  const TESTS = new Set(TEST_TASK_NAMES);
13514
13514
  const RUNS_TESTS = /\b(?:vp|cargo) test\b/u;
13515
13515
  const edgesOf = (task) => pipe(Option.toArray(propertyValue("dependsOn")(task.value)), Array$1.flatMap(stringsIn), Array$1.map((at) => ({
@@ -13537,19 +13537,19 @@ const problemsIn$15 = Effect.fn("problemsIn")(function* problemsIn(root, directo
13537
13537
  return pipe(Option.toArray(config), Array$1.flatMap(({ file, source, program }) => pipe(testedEdges(runTasksIn(program)), Array$1.map(({ to, at }) => ({
13538
13538
  file,
13539
13539
  ...positionOf(source)(at.start),
13540
- rule: RULE$55,
13540
+ rule: RULE$54,
13541
13541
  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.`
13542
13542
  })))));
13543
13543
  });
13544
13544
  /** @internal */
13545
13545
  const checkTestedVerify = Effect.fn("checkTestedVerify")(function* checkTestedVerify(root) {
13546
13546
  const directories = yield* workspaceDirectories(root);
13547
- const found = yield* Effect.forEach(directories, (directory) => problemsIn$15(root, directory), { concurrency: READ_CONCURRENCY$23 });
13547
+ const found = yield* Effect.forEach(directories, (directory) => problemsIn$15(root, directory), { concurrency: READ_CONCURRENCY$22 });
13548
13548
  return Array$1.flatten(found);
13549
13549
  });
13550
13550
  // src/features/check-repository-layout/model/unlocked-tasks.ts
13551
- const RULE$54 = "unlocked-task";
13552
- const READ_CONCURRENCY$22 = 8;
13551
+ const RULE$53 = "unlocked-task";
13552
+ const READ_CONCURRENCY$21 = 8;
13553
13553
  const READS_DEPENDENCIES = /^vp (?:test|pack|build)\b/u;
13554
13554
  const decodeCommand = Schema.decodeUnknownOption(Schema.Union([Schema.String, Schema.NonEmptyArray(Schema.String)]));
13555
13555
  const commandOf = (task) => pipe(propertyValue("command")(task.value), Option.getOrElse(() => task.value), literalOf, Option.flatMap(decodeCommand), Option.flatMap((command) => Array$1.findFirst(Array$1.ensure(command), (line) => READS_DEPENDENCIES.test(line))));
@@ -13560,13 +13560,13 @@ const tracksLockfiles = (task) => pipe(propertyValue("cache")(task.value), Optio
13560
13560
  const problemsOf$2 = ({ file, source, tasks }) => pipe(tasks, Array$1.filter(tracksLockfiles), Array$1.flatMap((task) => pipe(commandOf(task), Option.map((command) => ({
13561
13561
  file,
13562
13562
  ...positionOf(source)(task.start),
13563
- rule: RULE$54,
13563
+ rule: RULE$53,
13564
13564
  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.`
13565
13565
  })), Option.toArray)));
13566
13566
  /** @internal */
13567
13567
  const checkUnlockedTasks = Effect.fn("checkUnlockedTasks")(function* checkUnlockedTasks(root) {
13568
13568
  const directories = yield* workspaceDirectories(root);
13569
- const found = yield* Effect.forEach(directories, (directory) => runTasksOf(root, directory), { concurrency: READ_CONCURRENCY$22 });
13569
+ const found = yield* Effect.forEach(directories, (directory) => runTasksOf(root, directory), { concurrency: READ_CONCURRENCY$21 });
13570
13570
  return pipe(Array$1.getSomes(found), Array$1.flatMap(problemsOf$2));
13571
13571
  });
13572
13572
  // src/features/check-repository-layout/model/task-checks.ts
@@ -13646,7 +13646,7 @@ const localFile = Effect.fn("localFile")(function* localFile({ directory, import
13646
13646
  if (Option.isNone(target)) return Option.none();
13647
13647
  return yield* existingSource(files.resolve(directory, target.value));
13648
13648
  });
13649
- const referenceOf$2 = (graph, from, specifier) => {
13649
+ const referenceOf$1 = (graph, from, specifier) => {
13650
13650
  if (RELATIVE$2.test(specifier) || String$1.startsWith(SUBPATH_IMPORT$1)(specifier)) return localFile(graph, from, specifier).pipe(Effect.map(Option.map(Result.succeed)));
13651
13651
  const name = packageNameOf(specifier);
13652
13652
  return Effect.succeedSome(Result.fail(name));
@@ -13657,7 +13657,7 @@ const referencesIn$1 = Effect.fn("referencesIn")(function* referencesIn(graph, f
13657
13657
  onNone: () => [],
13658
13658
  onSome: (source) => specifiersIn(graph.api, file, source)
13659
13659
  });
13660
- const references = yield* Effect.forEach(specifiers, (specifier) => referenceOf$2(graph, file, specifier), { concurrency: 1 });
13660
+ const references = yield* Effect.forEach(specifiers, (specifier) => referenceOf$1(graph, file, specifier), { concurrency: 1 });
13661
13661
  const found = Array$1.getSomes(references);
13662
13662
  return {
13663
13663
  packages: Array$1.getFailures(found),
@@ -13695,7 +13695,7 @@ const packagesByEntry = Effect.fn("packagesByEntry")(function* packagesByEntry(a
13695
13695
  });
13696
13696
  // src/features/measure-install-size/model/installed-closure.ts
13697
13697
  const EMPTY$4 = 0;
13698
- const installedNames = (manifest) => [...namesIn(manifest, ["dependencies", "optionalDependencies"]), ...pipe(namesIn(manifest, ["peerDependencies"]), Array$1.difference(optionalPeerNames(manifest)))];
13698
+ const installedNames = (manifest) => [...namesIn$1(manifest, ["dependencies", "optionalDependencies"]), ...pipe(namesIn$1(manifest, ["peerDependencies"]), Array$1.difference(optionalPeerNames(manifest)))];
13699
13699
  const childrenOf$2 = Effect.fn("childrenOf")(function* childrenOf(directory) {
13700
13700
  const files = yield* RepositoryFiles;
13701
13701
  const text = yield* files.readFile(files.join(directory, PACKAGE_JSON_FILE));
@@ -13842,7 +13842,7 @@ const problemsOf$1 = Effect.fn("problemsOf")(function* problemsOf(workspace, fil
13842
13842
  join: (target) => files.join(workspace.directory, target),
13843
13843
  packEntries: workspace.packEntries
13844
13844
  });
13845
- const provided = HashSet.fromIterable(namesIn(manifest.value, ["peerDependencies"]));
13845
+ const provided = HashSet.fromIterable(namesIn$1(manifest.value, ["peerDependencies"]));
13846
13846
  const sized = yield* sizeProblems$1({
13847
13847
  workspace,
13848
13848
  entries,
@@ -13868,7 +13868,7 @@ const checkPublishedPackages = Effect.fn("checkPublishedPackages")(function* che
13868
13868
  // src/shared/lib/base-revision.ts
13869
13869
  const DEFAULT_BASE = "origin/main";
13870
13870
  /** @internal */
13871
- const baseName = Config.option(Config.String("VPA_BASE")).pipe(Effect.orDie, Effect.map(Option.getOrElse(() => DEFAULT_BASE)));
13871
+ const baseName = Config$1.option(Config$1.String("VPA_BASE")).pipe(Effect.orDie, Effect.map(Option.getOrElse(() => DEFAULT_BASE)));
13872
13872
  /** @internal */
13873
13873
  const baseRevision = Effect.fn("baseRevision")(function* baseRevision(root) {
13874
13874
  const files = yield* RepositoryFiles;
@@ -13876,12 +13876,12 @@ const baseRevision = Effect.fn("baseRevision")(function* baseRevision(root) {
13876
13876
  return yield* files.mergeBase(root, base);
13877
13877
  });
13878
13878
  // src/features/check-migration-order/model/migration-order.ts
13879
- const RULE$53 = "migration-order";
13879
+ const RULE$52 = "migration-order";
13880
13880
  const SNAPSHOT = "snapshot.json";
13881
13881
  const MIGRATION = "migration.sql";
13882
13882
  const SNAPSHOTS = [`*/${SNAPSHOT}`];
13883
13883
  const FIRST$13 = 1;
13884
- const READ_CONCURRENCY$21 = 16;
13884
+ const READ_CONCURRENCY$20 = 16;
13885
13885
  const isSnapshot = (basename) => (file) => basename(file) === SNAPSHOT;
13886
13886
  const migrationAt = Effect.fn("migrationAt")(function* migrationAt(root, base, file) {
13887
13887
  const files = yield* RepositoryFiles;
@@ -13910,7 +13910,7 @@ const outOfOrder = (root, base, join) => (migrations) => pipe(latestOf(migration
13910
13910
  file: join(root, file),
13911
13911
  line: FIRST$13,
13912
13912
  column: FIRST$13,
13913
- rule: RULE$53,
13913
+ rule: RULE$52,
13914
13914
  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}.`
13915
13915
  })))), Option.getOrElse(() => []));
13916
13916
  /** @internal */
@@ -13921,7 +13921,7 @@ const checkMigrationOrder = Effect.fn("checkMigrationOrder")(function* checkMigr
13921
13921
  if (Option.isNone(found)) return [];
13922
13922
  const [listed, changed] = yield* Effect.all([files.matchingFiles(root, SNAPSHOTS), files.changedFiles(root, base)], { concurrency: "unbounded" });
13923
13923
  const snapshots = pipe([...listed, ...changed], Array$1.filter(isSnapshot(files.basename)), Array$1.dedupe);
13924
- const migrations = yield* Effect.forEach(snapshots, (file) => migrationAt(root, base, file), { concurrency: READ_CONCURRENCY$21 });
13924
+ const migrations = yield* Effect.forEach(snapshots, (file) => migrationAt(root, base, file), { concurrency: READ_CONCURRENCY$20 });
13925
13925
  return pipe(Array$1.getSomes(migrations), Array$1.groupBy(({ directory }) => directory), Record.values, Array$1.flatMap(outOfOrder(root, base, files.join)));
13926
13926
  });
13927
13927
  // src/shared/lib/bundle-error.ts
@@ -13929,7 +13929,7 @@ const ERROR_LINE = /\[[A-Z_]+\]/u;
13929
13929
  const SHOWN_ERRORS = 3;
13930
13930
  const HEADER = "Build failed";
13931
13931
  const NO_DETAIL = "Run the bundle to see the error.";
13932
- const linesOf$1 = (error) => pipe(Option.liftPredicate(error, Predicate.isError), Option.map(({ message }) => message), Option.getOrElse(() => String(error)), stripVTControlCharacters, String$1.split("\n"), Array$1.map(String$1.trim), Array$1.filter(String$1.isNonEmpty));
13932
+ const linesOf$1 = (error) => pipe(Option.liftPredicate(error, Predicate$1.isError), Option.map(({ message }) => message), Option.getOrElse(() => String(error)), stripVTControlCharacters, String$1.split("\n"), Array$1.map(String$1.trim), Array$1.filter(String$1.isNonEmpty));
13933
13933
  const bundleErrorDetail = (error) => {
13934
13934
  const lines = linesOf$1(error);
13935
13935
  return pipe(lines, Array$1.filter((line) => ERROR_LINE.test(line)), Array$1.take(SHOWN_ERRORS), Array$1.match({
@@ -13944,7 +13944,7 @@ const ALIAS$1 = /\s+as\s+\S+$/u;
13944
13944
  const VENDOR_FILE = /^(?<name>[\w.-]+)\.js$/u;
13945
13945
  const SEPARATOR$15 = "/";
13946
13946
  const valueNames = (list) => pipe(String$1.split(list, ","), Array$1.map(String$1.trim), Array$1.filter((name) => String$1.isNonEmpty(name) && !TYPE_PREFIX.test(name)), Array$1.map(String$1.replace(ALIAS$1, "")));
13947
- const declarationOf = (match) => pipe(Option.fromNullishOr(match.groups), Option.filter((groups) => !Predicate.isString(groups["kind"])), Option.flatMap((groups) => Option.all({
13947
+ const declarationOf = (match) => pipe(Option.fromNullishOr(match.groups), Option.filter((groups) => !Predicate$1.isString(groups["kind"])), Option.flatMap((groups) => Option.all({
13948
13948
  specifier: Option.fromNullishOr(groups["specifier"]),
13949
13949
  list: Option.fromNullishOr(groups["names"])
13950
13950
  })), Option.map(({ specifier, list }) => ({
@@ -14013,7 +14013,7 @@ const vendorFiles = Effect.fn("vendorFiles")(function* vendorFiles(request) {
14013
14013
  return pipe(output.output, Array$1.filter(isChunk$2), Array$1.map((chunk) => [chunk.fileName, chunk.code]), Record.fromEntries, Record.set(`${request.name}.d.ts`, `export * from "${request.name}";\n`));
14014
14014
  });
14015
14015
  // src/features/check-mod-vendor/model/mod-vendor.ts
14016
- const RULE$52 = "mod-vendor";
14016
+ const RULE$51 = "mod-vendor";
14017
14017
  const VENDOR = "vendor";
14018
14018
  const SOURCE_FILE$2 = /\.[cm]?[jt]sx?$/u;
14019
14019
  const RELATIVE$1 = /^\.\.?\//u;
@@ -14021,7 +14021,7 @@ const FILE_LIMIT = 1048576;
14021
14021
  const TOTAL_LIMIT = 8388608;
14022
14022
  const CONCURRENCY$5 = 4;
14023
14023
  const EMPTY$3 = "";
14024
- const problemFor$5 = problemInFile(RULE$52);
14024
+ const problemFor$5 = problemInFile(RULE$51);
14025
14025
  const isModSource = (directory) => (file) => String$1.startsWith(directory)(file) && !String$1.startsWith(`${directory}${VENDOR}/`)(file) && SOURCE_FILE$2.test(file);
14026
14026
  const sourcesOf$2 = (plugin, directory, join) => pipe(plugin.files, Array$1.filter(isModSource(directory)), Array$1.map((file) => join(plugin.directory, file)));
14027
14027
  const modsOf = Effect.fn("modsOf")(function* modsOf(root, plugin) {
@@ -14108,7 +14108,7 @@ const NOT_A_PACKAGE = /^(?:\.|\/|[A-Za-z]:[\\/])/u;
14108
14108
  /** @internal */
14109
14109
  const unresolvedIn = (chunks) => {
14110
14110
  const emitted = pipe(chunks, Array$1.map(({ fileName }) => fileName));
14111
- return pipe(chunks, Array$1.flatMap((chunk) => chunk.imports), Array$1.filter((specifier) => !NOT_A_PACKAGE.test(specifier) && !isBuiltin(specifier) && !Array$1.contains(emitted, specifier)), Array$1.map(packageNameOf), Array$1.dedupe, Array$1.sortBy(Order.String));
14111
+ return pipe(chunks, Array$1.flatMap((chunk) => chunk.imports), Array$1.filter((specifier) => !NOT_A_PACKAGE.test(specifier) && !isBuiltin$1(specifier) && !Array$1.contains(emitted, specifier)), Array$1.map(packageNameOf), Array$1.dedupe, Array$1.sortBy(Order.String));
14112
14112
  };
14113
14113
  const isChunk$1 = (item) => item.type === "chunk";
14114
14114
  const optionsFor$1 = (entries) => ({
@@ -14116,7 +14116,7 @@ const optionsFor$1 = (entries) => ({
14116
14116
  platform: "node",
14117
14117
  logLevel: "silent",
14118
14118
  treeshake: false,
14119
- external: (specifier) => isBuiltin(specifier)
14119
+ external: (specifier) => isBuiltin$1(specifier)
14120
14120
  });
14121
14121
  /** @internal */
14122
14122
  const unresolvedFrom = (entries) => Effect.acquireUseRelease(Effect.tryPromise({
@@ -14127,7 +14127,7 @@ const unresolvedFrom = (entries) => Effect.acquireUseRelease(Effect.tryPromise({
14127
14127
  catch: bundleErrorDetail
14128
14128
  }), (bundle) => Effect.promise(() => bundle.close())).pipe(Effect.map(({ output }) => unresolvedIn(pipe(output, Array$1.filter(isChunk$1)))));
14129
14129
  // src/features/check-plugin-dependencies/model/plugin-dependencies.ts
14130
- const RULE$51 = "plugin-dependencies";
14130
+ const RULE$50 = "plugin-dependencies";
14131
14131
  const PLUGIN_FILE$3 = ".claude-plugin/plugin.json";
14132
14132
  const LOCK_FILE = "bun.lock";
14133
14133
  const SOURCE_FILE$1 = /\.[cm]?[jt]sx?$/u;
@@ -14136,7 +14136,7 @@ const SUCCESS$6 = 0;
14136
14136
  const NOT_STARTED = -1;
14137
14137
  const DETAIL_LINES = 3;
14138
14138
  const PLUGIN_CONCURRENCY = 2;
14139
- const problemFor$4 = problemInFile(RULE$51);
14139
+ const problemFor$4 = problemInFile(RULE$50);
14140
14140
  const hasDependencies = Effect.fn("hasDependencies")(function* hasDependencies(directory) {
14141
14141
  const files = yield* RepositoryFiles;
14142
14142
  const text = yield* files.readFile(files.join(directory, PACKAGE_JSON_FILE));
@@ -14245,13 +14245,13 @@ const taggedError$11 = Schema.TaggedError;
14245
14245
  var BundleFailed = class extends taggedError$11()("BundleFailed", { detail: Schema.String }) {};
14246
14246
  const failed = (error) => BundleFailed.make({ detail: bundleErrorDetail(error) });
14247
14247
  const isBare = (specifier) => !String$1.startsWith(RELATIVE_PREFIX)(specifier) && !String$1.startsWith(SUBPATH_IMPORT)(specifier) && !ABSOLUTE.test(specifier) && !String$1.startsWith(VIRTUAL_PREFIX)(specifier);
14248
- const isBuiltin$1 = (specifier) => String$1.startsWith(NODE_PROTOCOL)(specifier) || builtins.has(packageNameOf(specifier));
14248
+ const isBuiltin = (specifier) => String$1.startsWith(NODE_PROTOCOL)(specifier) || builtins.has(packageNameOf(specifier));
14249
14249
  const matchesPattern = (name) => (pattern) => {
14250
- if (Predicate.isString(pattern)) return pattern === name;
14250
+ if (Predicate$1.isString(pattern)) return pattern === name;
14251
14251
  return pattern.test(name);
14252
14252
  };
14253
14253
  const isBundledBy = (bundled, name) => pipe(bundled, Array$1.some(matchesPattern(name)));
14254
- const isExternal = ({ declared, bundled }) => (specifier, importer) => Predicate.isNotUndefined(importer) && isBare(specifier) && (isBuiltin$1(specifier) || Array$1.contains(declared, packageNameOf(specifier)) && !isBundledBy(bundled, packageNameOf(specifier)));
14254
+ const isExternal = ({ declared, bundled }) => (specifier, importer) => Predicate$1.isNotUndefined(importer) && isBare(specifier) && (isBuiltin(specifier) || Array$1.contains(declared, packageNameOf(specifier)) && !isBundledBy(bundled, packageNameOf(specifier)));
14255
14255
  const consumerSource = ({ entry, member }) => Option.match(member, {
14256
14256
  onNone: () => `export * from ${quote(entry)};\n`,
14257
14257
  onSome: (name) => `import * as ${NAMESPACE} from ${quote(entry)};\nglobalThis.used = ${NAMESPACE}[${quote(name)}];\n`
@@ -14286,7 +14286,7 @@ const optionsFor = (scope, input, effectful) => {
14286
14286
  };
14287
14287
  };
14288
14288
  const isChunk = (item) => item.type === "chunk";
14289
- const packagesIn = (specifiers) => pipe(specifiers, Array$1.filter((specifier) => isBare(specifier) && !isBuiltin$1(specifier)), Array$1.map(packageNameOf), Array$1.dedupe, Array$1.sortBy(Order.String));
14289
+ const packagesIn = (specifiers) => pipe(specifiers, Array$1.filter((specifier) => isBare(specifier) && !isBuiltin(specifier)), Array$1.map(packageNameOf), Array$1.dedupe, Array$1.sortBy(Order.String));
14290
14290
  const importsOf$2 = (byFile) => (file) => Option.match(Record.get(byFile, file), {
14291
14291
  onNone: () => [],
14292
14292
  onSome: (chunk) => chunk.imports
@@ -14365,7 +14365,7 @@ const bundleScopeOf = ({ manifest, workspace }) => ({
14365
14365
  });
14366
14366
  const stackPackagesOf = ({ devDependencies }) => pipe(Option.fromUndefinedOr(devDependencies), Option.map(Record.filter((specifier) => specifier === STACK_CATALOG)), Option.map(Record.keys), Option.getOrElse(() => []));
14367
14367
  // src/features/check-tree-shaking/model/optional-peers.ts
14368
- const RULE$50 = "optional-peer";
14368
+ const RULE$49 = "optional-peer";
14369
14369
  const REQUIRED_RULE = "required-peer";
14370
14370
  const START$28 = 0;
14371
14371
  const SINGLE$3 = 1;
@@ -14382,7 +14382,7 @@ const positionIn = (located, key, name) => {
14382
14382
  const problemFor$3 = (located, name, importers) => ({
14383
14383
  file: located.file,
14384
14384
  ...positionIn(located, DEPENDENCIES_KEY, name),
14385
- rule: RULE$50,
14385
+ rule: RULE$49,
14386
14386
  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.`
14387
14387
  });
14388
14388
  const requiredPeerAdvice = (fromStack) => {
@@ -14418,7 +14418,7 @@ const requiredPeerProblems = ({ located, manifest, used }) => {
14418
14418
  }));
14419
14419
  };
14420
14420
  // src/features/check-tree-shaking/model/side-effects.ts
14421
- const RULE$49 = "side-effects";
14421
+ const RULE$48 = "side-effects";
14422
14422
  const BUNDLE_CONCURRENCY$2 = 4;
14423
14423
  const START$27 = 0;
14424
14424
  const FIRST$12 = 1;
@@ -14464,34 +14464,34 @@ const othersOf = (total) => {
14464
14464
  if (total <= FIRST$12) return "";
14465
14465
  return ` The same happens for ${String(total - FIRST$12)} other exports.`;
14466
14466
  };
14467
- const messageOf$6 = (worst, total) => `importing \`${worst.member}\` from \`${worst.label}\` also bundles ${String(worst.modules)} modules${importsOf$1(worst.packages)}, which it does not use.${othersOf(total)} Declare "sideEffects": false in package.json so that a bundler drops what nothing imports, and keep a module that must run for its effect out of the package.`;
14467
+ const messageOf$5 = (worst, total) => `importing \`${worst.member}\` from \`${worst.label}\` also bundles ${String(worst.modules)} modules${importsOf$1(worst.packages)}, which it does not use.${othersOf(total)} Declare "sideEffects": false in package.json so that a bundler drops what nothing imports, and keep a module that must run for its effect out of the package.`;
14468
14468
  const largest = Order.mapInput(Order.flip(Order.Number), (excess) => excess.modules);
14469
14469
  const keyIndex$1 = (source) => pipe(String$1.indexOf(SIDE_EFFECTS_KEY)(source), Option.orElse(() => String$1.indexOf(EXPORTS_KEY)(source)), Option.getOrElse(() => START$27));
14470
14470
  const sideEffectProblems = ({ file, source, excesses }) => pipe(excesses, Array$1.sortBy(largest), Array$1.head, Option.map((worst) => ({
14471
14471
  file,
14472
14472
  ...positionOf(source)(keyIndex$1(source)),
14473
- rule: RULE$49,
14474
- message: messageOf$6(worst, excesses.length)
14473
+ rule: RULE$48,
14474
+ message: messageOf$5(worst, excesses.length)
14475
14475
  })), Option.toArray);
14476
14476
  // src/features/check-tree-shaking/model/top-level-effects.ts
14477
- const RULE$48 = "top-level-effect";
14477
+ const RULE$47 = "top-level-effect";
14478
14478
  const CODE$1 = /\.[cm]?[jt]sx?$/u;
14479
- const READ_CONCURRENCY$20 = 16;
14479
+ const READ_CONCURRENCY$19 = 16;
14480
14480
  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.";
14481
14481
  const STATEMENT_MESSAGE = "runs a statement at the top level for its effect, but sideEffects in package.json does not list this file, so a bundler drops the module when nothing it exports is used. Move the statement into a function that the caller runs, or list the entry that exists for its effect in sideEffects.";
14482
14482
  const isEffect = (statement) => {
14483
14483
  if (isExpressionStatement(statement)) return !isStringLiteral(statement.expression);
14484
- return isImportDeclaration(statement) && Predicate.isUndefined(statement.importClause);
14484
+ return isImportDeclaration(statement) && Predicate$1.isUndefined(statement.importClause);
14485
14485
  };
14486
- const messageOf$5 = (statement) => {
14486
+ const messageOf$4 = (statement) => {
14487
14487
  if (isImportDeclaration(statement)) return IMPORT_MESSAGE;
14488
14488
  return STATEMENT_MESSAGE;
14489
14489
  };
14490
14490
  const problemsIn$14 = (api) => (file) => (source) => {
14491
14491
  const retained = api.createSourceFile(file, source);
14492
14492
  const problems = pipe(retained.sourceFile.statements, Array$1.fromIterable, Array$1.filter(isEffect), Array$1.map((statement) => problemAt$6({
14493
- rule: RULE$48,
14494
- message: messageOf$5(statement)
14493
+ rule: RULE$47,
14494
+ message: messageOf$4(statement)
14495
14495
  })(statement)));
14496
14496
  retained.dispose();
14497
14497
  return problems;
@@ -14503,7 +14503,7 @@ const topLevelEffects = Effect.fn("topLevelEffects")(function* topLevelEffects(r
14503
14503
  const names = yield* files.ownedFiles(root);
14504
14504
  const owned = new Set(pipe(names, Array$1.map((name) => files.join(root, name))));
14505
14505
  const sources = pipe(modules, Array$1.filter((file) => owned.has(file) && CODE$1.test(file)));
14506
- const found = yield* Effect.forEach(sources, (file) => files.readFile(file).pipe(Effect.map((text) => pipe(text, Option.map(problemsIn$14(compiler.api)(file)), Option.getOrElse(() => [])))), { concurrency: READ_CONCURRENCY$20 });
14506
+ const found = yield* Effect.forEach(sources, (file) => files.readFile(file).pipe(Effect.map((text) => pipe(text, Option.map(problemsIn$14(compiler.api)(file)), Option.getOrElse(() => [])))), { concurrency: READ_CONCURRENCY$19 });
14507
14507
  return Array$1.flatten(found);
14508
14508
  }, Effect.scoped);
14509
14509
  const BUNDLED_RULE = "bundled-side-effects";
@@ -14518,7 +14518,7 @@ const packageDirectoryOf = (manifests, files) => (module) => {
14518
14518
  const undeclaredAt = Effect.fn("undeclaredAt")(function* undeclaredAt(directory) {
14519
14519
  const files = yield* RepositoryFiles;
14520
14520
  const text = yield* files.readFile(files.join(directory, PACKAGE_JSON_FILE));
14521
- return pipe(text, Option.flatMap(decodePackageJson), Option.filter(({ sideEffects }) => Predicate.isUndefined(sideEffects) || sideEffects === true), Option.map(({ name }) => ({
14521
+ return pipe(text, Option.flatMap(decodePackageJson), Option.filter(({ sideEffects }) => Predicate$1.isUndefined(sideEffects) || sideEffects === true), Option.map(({ name }) => ({
14522
14522
  directory,
14523
14523
  name: name ?? directory
14524
14524
  })));
@@ -14533,7 +14533,7 @@ const bundledSideEffectProblems = Effect.fn("bundledSideEffectProblems")(functio
14533
14533
  const manifests = new Set(pipe(owned, Array$1.filter((file) => files.basename(file) === PACKAGE_JSON_FILE)));
14534
14534
  const ownedSet = new Set(owned);
14535
14535
  const directories = pipe(used, Array$1.flatMap(({ modules }) => modules), Array$1.filter((module) => ownedSet.has(module)), Array$1.flatMap((module) => Option.toArray(packageDirectoryOf(manifests, files)(module))), Array$1.dedupe, Array$1.filter((found) => found !== directory), Array$1.sortBy(Order.String));
14536
- const undeclared = yield* Effect.forEach(directories, undeclaredAt, { concurrency: READ_CONCURRENCY$20 });
14536
+ const undeclared = yield* Effect.forEach(directories, undeclaredAt, { concurrency: READ_CONCURRENCY$19 });
14537
14537
  const at = problemAtIndex(BUNDLED_RULE)(located.file, located.source);
14538
14538
  const index = nameIndex$1(located.source);
14539
14539
  return pipe(Array$1.getSomes(undeclared), Array$1.map((found) => at(index, undeclaredMessage(files, root)(found))));
@@ -14659,7 +14659,7 @@ const checkTreeShaking = Effect.fn("checkTreeShaking")(function* checkTreeShakin
14659
14659
  return Array$1.flatten(found);
14660
14660
  });
14661
14661
  // src/features/check-typescript-generation/model/typescript-generation.ts
14662
- const RULE$47 = "legacy-typescript";
14662
+ const RULE$46 = "legacy-typescript";
14663
14663
  const LOCKFILE = "pnpm-lock.yaml";
14664
14664
  const COMPILER = "typescript";
14665
14665
  const CURRENT_MAJOR = 7;
@@ -14678,7 +14678,7 @@ const lineOf$4 = (source) => (id) => pipe(String$1.split(source, "\n"), Array$1.
14678
14678
  onNone: () => FIRST$11,
14679
14679
  onSome: (index) => index + FIRST$11
14680
14680
  }));
14681
- const messageOf$4 = (legacy, dependents) => `\`${legacy.id}\` is installed, pulled in by ${Array$1.join(dependents, ", ")}. Only TypeScript ${String(CURRENT_MAJOR)} or newer is used: remove the dependency that needs the old compiler, move it to the TypeScript ${String(CURRENT_MAJOR)} API, or bundle or port it. Do not install an old compiler beside TypeScript ${String(CURRENT_MAJOR)}.`;
14681
+ const messageOf$3 = (legacy, dependents) => `\`${legacy.id}\` is installed, pulled in by ${Array$1.join(dependents, ", ")}. Only TypeScript ${String(CURRENT_MAJOR)} or newer is used: remove the dependency that needs the old compiler, move it to the TypeScript ${String(CURRENT_MAJOR)} API, or bundle or port it. Do not install an old compiler beside TypeScript ${String(CURRENT_MAJOR)}.`;
14682
14682
  /** @internal */
14683
14683
  const checkTypescriptGeneration = Effect.fn("checkTypescriptGeneration")(function* checkTypescriptGeneration(root) {
14684
14684
  const files = yield* RepositoryFiles;
@@ -14690,12 +14690,12 @@ const checkTypescriptGeneration = Effect.fn("checkTypescriptGeneration")(functio
14690
14690
  file,
14691
14691
  line: lineOf$4(source)(legacy.id),
14692
14692
  column: FIRST$11,
14693
- rule: RULE$47,
14694
- message: messageOf$4(legacy, dependentsOf$1(Option.getOrElse(nodes, () => []))(legacy.id))
14693
+ rule: RULE$46,
14694
+ message: messageOf$3(legacy, dependentsOf$1(Option.getOrElse(nodes, () => []))(legacy.id))
14695
14695
  })));
14696
14696
  });
14697
14697
  // src/features/check-worker-bundles/model/worker-bundles.ts
14698
- const RULE$46 = "worker-bundle";
14698
+ const RULE$45 = "worker-bundle";
14699
14699
  const BUNDLE_CONCURRENCY = 4;
14700
14700
  const PLATFORM_MODULES = [/^cloudflare:/u, /^node:/u];
14701
14701
  const CONDITIONS = [
@@ -14706,7 +14706,7 @@ const CONDITIONS = [
14706
14706
  "module",
14707
14707
  "default"
14708
14708
  ];
14709
- const problemFor$2 = problemInFile(RULE$46);
14709
+ const problemFor$2 = problemInFile(RULE$45);
14710
14710
  const problemOf$10 = (file, detail) => problemFor$2(file, `does not bundle as a Worker, so the deploy would fail. ${detail}`);
14711
14711
  const bundleProblem = (file) => Effect.gen(function* bundle() {
14712
14712
  const built = yield* Effect.tryPromise({
@@ -14793,7 +14793,7 @@ const MSCH_RELAXATIONS = [
14793
14793
  decisionTestRules
14794
14794
  ];
14795
14795
  const isList = (value) => Array$1.isArray(value);
14796
- const isSection = (value) => Predicate.isObject(value) && !Array$1.isArray(value);
14796
+ const isSection = (value) => Predicate$1.isObject(value) && !Array$1.isArray(value);
14797
14797
  const sectionOf = (value) => pipe(Option.some(value), Option.filter(isSection), Option.getOrElse(() => ({})));
14798
14798
  const listOf$2 = (value) => pipe(Option.some(value), Option.filter(isList), Option.getOrElse(() => []));
14799
14799
  const severityOf = (value) => pipe(listOf$2(value), Array$1.head, Option.getOrElse(() => value));
@@ -14873,7 +14873,7 @@ const taskWeakenings = (run, expected) => {
14873
14873
  return [
14874
14874
  ...pipe(Record.toEntries(expected.tasks), Array$1.filter(([name, command]) => {
14875
14875
  const actual = sectionOf(tasks[name])["command"];
14876
- return !Equal.equals(actual, command) && !(Predicate.isString(command) && Equal.equals(actual, meteredCommand(command)));
14876
+ return !Equal.equals(actual, command) && !(Predicate$1.isString(command) && Equal.equals(actual, meteredCommand(command)));
14877
14877
  }), Array$1.map(([name]) => ({
14878
14878
  anchor: "run",
14879
14879
  message: `The ${name} task does not run what msch builds for it. Leave msch's tasks as repositoryConfig builds them; add other work under another task name.`
@@ -14899,7 +14899,7 @@ const weakeningsOf = (expected) => (config) => [
14899
14899
  ...secretWeakenings(config.h56m, expected.secrets)
14900
14900
  ];
14901
14901
  // src/app/disabled-rules.ts
14902
- const RULE$45 = "disabled-rule";
14902
+ const RULE$44 = "disabled-rule";
14903
14903
  const CONFIG_FILE$5 = "vite.config.ts";
14904
14904
  const START$25 = 0;
14905
14905
  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;
@@ -14913,7 +14913,7 @@ const sideConfigs = Effect.fn("sideConfigs")(function* sideConfigs(root) {
14913
14913
  const files = yield* RepositoryFiles;
14914
14914
  const listed = yield* files.listedFiles(root);
14915
14915
  const isExempt = matcher(exempt);
14916
- return pipe(listed, Array$1.filter((name) => SIDE_CONFIG.test(name) && !isExempt(name)), Array$1.map((name) => problemAtIndex(RULE$45)(files.join(root, name), "")(START$25, SIDE_CONFIG_MESSAGE)));
14916
+ 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$25, SIDE_CONFIG_MESSAGE)));
14917
14917
  });
14918
14918
  const configWeakenings = Effect.fn("configWeakenings")(function* configWeakenings(root, source) {
14919
14919
  const file = (yield* RepositoryFiles).join(root, CONFIG_FILE$5);
@@ -14925,7 +14925,7 @@ const configWeakenings = Effect.fn("configWeakenings")(function* configWeakening
14925
14925
  })
14926
14926
  });
14927
14927
  const expected = yield* expectationsIn(root);
14928
- const at = problemAtIndex(RULE$45)(file, source);
14928
+ const at = problemAtIndex(RULE$44)(file, source);
14929
14929
  return pipe(weakeningsOf(expected)(config), Array$1.map(({ anchor, message }) => at(Option.getOrElse(String$1.indexOf(anchor)(source), () => START$25), message)));
14930
14930
  });
14931
14931
  /** @internal */
@@ -14933,7 +14933,7 @@ const checkDisabledRules = Effect.fn("checkDisabledRules")(function* checkDisabl
14933
14933
  const files = yield* RepositoryFiles;
14934
14934
  const text = yield* files.readFile(files.join(root, CONFIG_FILE$5));
14935
14935
  if (Option.isNone(text)) return [];
14936
- return [...yield* configWeakenings(root, text.value).pipe(Effect.catchTag("DisabledRulesConfigUnreadable", ({ file, reason }) => Effect.succeed([problemAtIndex(RULE$45)(file, "")(START$25, `msch could not load this file: ${reason}`)]))), ...yield* sideConfigs(root)];
14936
+ return [...yield* configWeakenings(root, text.value).pipe(Effect.catchTag("DisabledRulesConfigUnreadable", ({ file, reason }) => Effect.succeed([problemAtIndex(RULE$44)(file, "")(START$25, `msch could not load this file: ${reason}`)]))), ...yield* sideConfigs(root)];
14937
14937
  });
14938
14938
  // src/app/build-checks.ts
14939
14939
  /** @internal */
@@ -15030,11 +15030,11 @@ const fileFactsIn = (checker) => (sourceFiles, excluded) => pipe(sourceFiles, Ar
15030
15030
  imports: importedFilesOf(checker)(sourceFile)
15031
15031
  })), Array$1.filter((facts) => Array$1.isReadonlyArrayNonEmpty(facts.values) || Array$1.isReadonlyArrayNonEmpty(facts.imports)));
15032
15032
  // src/features/check-value-owners/model/name-lists.ts
15033
- const RULE$44 = "hand-written-names";
15033
+ const RULE$43 = "hand-written-names";
15034
15034
  const TEST_FILE$1 = /\.test(?:\.[\w-]+)?\.[cm]?tsx?$/u;
15035
15035
  const nameListOf = (site) => {
15036
15036
  if (TEST_FILE$1.test(site.file) || site.values.length < 2) return Option.none();
15037
- const names = pipe(site.values, Array$1.filter(Predicate.isString));
15037
+ const names = pipe(site.values, Array$1.filter(Predicate$1.isString));
15038
15038
  return Option.liftPredicate({
15039
15039
  site,
15040
15040
  names
@@ -15045,7 +15045,7 @@ const listedProblem = ({ file, line, column, names, reason }) => ({
15045
15045
  file,
15046
15046
  line,
15047
15047
  column,
15048
- rule: RULE$44,
15048
+ rule: RULE$43,
15049
15049
  message: `The names ${formatValues(names)} are listed by hand, but ${reason}`
15050
15050
  });
15051
15051
  const problemOf$9 = ({ list, reason }) => listedProblem({
@@ -15066,9 +15066,9 @@ const outsideTypeIn = (project) => {
15066
15066
  const isGlobalType = (name) => pipe(Option.fromNullishOr(project.checker.resolveName(name, SymbolFlags.Type)), Option.map(declarationsOf), Option.exists((declarations) => declaresAType(declarations) && !carriesTag(name)(declarations) && pipe(declarations, Array$1.every(isOutside))));
15067
15067
  return (name) => known.getOrInsertComputed(name, () => IDENTIFIER.test(name) && !HashSet.has(values, name) && (HashSet.has(exported, name) || isGlobalType(name)));
15068
15068
  };
15069
- const namesIn$1 = (list) => pipe(list.elements, Array$1.filter(isStringLiteral), Array$1.map((element) => element.text));
15069
+ const namesIn = (list) => pipe(list.elements, Array$1.filter(isStringLiteral), Array$1.map((element) => element.text));
15070
15070
  const problemIn$1 = (isOutsideType) => (list) => {
15071
- const names = namesIn$1(list);
15071
+ const names = namesIn(list);
15072
15072
  const outside = pipe(names, Array$1.filter(isOutsideType));
15073
15073
  if (outside.length < Math.max(2, names.length / HALF)) return Option.none();
15074
15074
  return Option.some(listedProblem({
@@ -15836,9 +15836,9 @@ const checkRepository = Effect.fn("checkRepository")(function* checkRepository(r
15836
15836
  return sortProblems([...ownerScan.problems, ...repositoryProblems(repository)(analyses)]);
15837
15837
  }, Effect.scoped);
15838
15838
  // src/features/source-code/find-namespace-destructuring/model/namespace-destructuring.ts
15839
- const RULE$43 = "namespace-destructuring";
15839
+ const RULE$42 = "namespace-destructuring";
15840
15840
  const LOCAL = /^[.#/]/u;
15841
- 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.`;
15841
+ const messageOf$2 = (name) => `Destructuring ${name}, which comes from a package, makes the bundler keep everything ${name} exports. Write ${name}.<member> where it is used.`;
15842
15842
  const isPackage = (specifier) => isStringLiteral(specifier) && !LOCAL.test(specifier.text);
15843
15843
  const importedNames = (sourceFile) => {
15844
15844
  const bindings = pipe(sourceFile.statements, Array$1.filter(isImportDeclaration), Array$1.filter((declaration) => isPackage(declaration.moduleSpecifier)), Array$1.map((declaration) => Option.fromUndefinedOr(declaration.importClause)), Array$1.getSomes, Array$1.filter((clause) => clause.phaseModifier !== SyntaxKind.TypeKeyword), Array$1.map((clause) => Option.fromUndefinedOr(clause.namedBindings)), Array$1.getSomes);
@@ -15852,20 +15852,20 @@ const destructuredName = (declaration) => {
15852
15852
  return pipe(Option.fromUndefinedOr(declaration.initializer), Option.filter(isIdentifier), Option.map((initializer) => initializer.text));
15853
15853
  };
15854
15854
  const problemOf$8 = (names) => (declaration) => pipe(destructuredName(declaration), Option.filter((name) => names.includes(name)), Option.map((name) => problemAt$6({
15855
- rule: RULE$43,
15856
- message: messageOf$3(name)
15855
+ rule: RULE$42,
15856
+ message: messageOf$2(name)
15857
15857
  })), Option.map((report) => report(declaration)));
15858
15858
  const namespaceDestructuringIn = () => (sourceFile) => {
15859
15859
  const names = importedNames(sourceFile);
15860
15860
  return pipe(descendantsOf(sourceFile), Array$1.filter(isVariableDeclaration), Array$1.map(problemOf$8(names)), Array$1.getSomes);
15861
15861
  };
15862
15862
  // src/features/source-code/find-pass-through-wrappers/model/pass-through-wrappers.ts
15863
- const RULE$42 = "pass-through-wrapper";
15863
+ const RULE$41 = "pass-through-wrapper";
15864
15864
  const SINGLE_STATEMENT = 1;
15865
15865
  const SINGLE_DECLARATION = 1;
15866
15866
  const THIS_PARAMETER = "this";
15867
15867
  const NO_ARGUMENTS = [];
15868
- const messageOf$2 = (callee) => `This function only passes its parameters to ${callee} unchanged. Call ${callee} directly and delete this function.`;
15868
+ const messageOf$1 = (callee) => `This function only passes its parameters to ${callee} unchanged. Call ${callee} directly and delete this function.`;
15869
15869
  const unwrapped = (expression) => {
15870
15870
  if (isParenthesizedExpression(expression)) return unwrapped(expression.expression);
15871
15871
  return expression;
@@ -15883,10 +15883,10 @@ const candidateOf = (node) => {
15883
15883
  wrapper
15884
15884
  })));
15885
15885
  };
15886
- const changesTheCall = (wrapper) => Predicate.isNotUndefined(wrapper.asteriskToken) || Option.exists(Option.fromUndefinedOr(wrapper.type), (type) => type.kind === SyntaxKind.TypePredicate) || pipe(wrapper.modifiers ?? [], Array$1.some((modifier) => modifier.kind === SyntaxKind.AsyncKeyword));
15886
+ const changesTheCall = (wrapper) => Predicate$1.isNotUndefined(wrapper.asteriskToken) || Option.exists(Option.fromUndefinedOr(wrapper.type), (type) => type.kind === SyntaxKind.TypePredicate) || pipe(wrapper.modifiers ?? [], Array$1.some((modifier) => modifier.kind === SyntaxKind.AsyncKeyword));
15887
15887
  const returnedExpression = (wrapper) => {
15888
15888
  const { body } = wrapper;
15889
- if (Predicate.isUndefined(body)) return Option.none();
15889
+ if (Predicate$1.isUndefined(body)) return Option.none();
15890
15890
  if (!isBlock(body)) return Option.some(body);
15891
15891
  if (body.statements.length !== SINGLE_STATEMENT) return Option.none();
15892
15892
  return pipe(Array$1.head(body.statements), Option.filter((statement) => isReturnStatement(statement)), Option.flatMap((statement) => Option.fromUndefinedOr(statement.expression)));
@@ -15896,8 +15896,8 @@ const callForward = (call) => ({
15896
15896
  callee: call.expression,
15897
15897
  kind: SignatureKind.Call,
15898
15898
  arguments: call.arguments,
15899
- typed: Predicate.isNotUndefined(call.typeArguments),
15900
- optional: Predicate.isNotUndefined(call.questionDotToken)
15899
+ typed: Predicate$1.isNotUndefined(call.typeArguments),
15900
+ optional: Predicate$1.isNotUndefined(call.questionDotToken)
15901
15901
  });
15902
15902
  const forwardOf = (expression) => {
15903
15903
  const inner = unwrapped(expression);
@@ -15907,22 +15907,22 @@ const forwardOf = (expression) => {
15907
15907
  callee: inner.expression,
15908
15908
  kind: SignatureKind.Construct,
15909
15909
  arguments: inner.arguments ?? NO_ARGUMENTS,
15910
- typed: Predicate.isNotUndefined(inner.typeArguments),
15910
+ typed: Predicate$1.isNotUndefined(inner.typeArguments),
15911
15911
  optional: false
15912
15912
  });
15913
15913
  return Option.none();
15914
15914
  };
15915
15915
  const rootOf = (callee) => {
15916
15916
  if (isIdentifier(callee)) return Option.some(callee);
15917
- if (isPropertyAccessExpression(callee) && Predicate.isUndefined(callee.questionDotToken) && isIdentifier(callee.name)) return rootOf(callee.expression);
15917
+ if (isPropertyAccessExpression(callee) && Predicate$1.isUndefined(callee.questionDotToken) && isIdentifier(callee.name)) return rootOf(callee.expression);
15918
15918
  return Option.none();
15919
15919
  };
15920
15920
  const parameterName = (parameter) => {
15921
15921
  const { name } = parameter;
15922
- if (!isIdentifier(name) || Predicate.isNotUndefined(parameter.initializer) || name.text === THIS_PARAMETER) return Option.none();
15922
+ if (!isIdentifier(name) || Predicate$1.isNotUndefined(parameter.initializer) || name.text === THIS_PARAMETER) return Option.none();
15923
15923
  return Option.some(name.text);
15924
15924
  };
15925
- const isRest = (parameter) => Predicate.isNotUndefined(parameter.dotDotDotToken);
15925
+ const isRest = (parameter) => Predicate$1.isNotUndefined(parameter.dotDotDotToken);
15926
15926
  const forwardsParameter = ([parameter, name, argument]) => {
15927
15927
  if (!isRest(parameter)) return isIdentifier(argument) && argument.text === name;
15928
15928
  return isSpreadElement(argument) && isIdentifier(argument.expression) && argument.expression.text === name;
@@ -15957,8 +15957,8 @@ const isPassThrough = (checker) => (candidate) => (forward) => {
15957
15957
  const problemOf$7 = (checker) => (candidate) => {
15958
15958
  if (changesTheCall(candidate.wrapper)) return Option.none();
15959
15959
  return pipe(returnedExpression(candidate.wrapper), Option.flatMap(forwardOf), Option.filter(isPassThrough(checker)(candidate)), Option.map((forward) => problemAt$6({
15960
- rule: RULE$42,
15961
- message: messageOf$2(forward.callee.getText())
15960
+ rule: RULE$41,
15961
+ message: messageOf$1(forward.callee.getText())
15962
15962
  })(candidate.name)));
15963
15963
  };
15964
15964
  const passThroughWrappersIn = (checker) => (sourceFile) => pipe(descendantsOf(sourceFile), Array$1.map(candidateOf), Array$1.getSomes, Array$1.map(problemOf$7(checker)), Array$1.getSomes);
@@ -15980,7 +15980,7 @@ const repositoryOrigin = Effect.fn("repositoryOrigin")(function* repositoryOrigi
15980
15980
  /** @internal */
15981
15981
  const slugOf = ({ owner, name }) => `${owner}/${name}`;
15982
15982
  // src/features/check-agent-settings/model/known-plugins.ts
15983
- const RULE$41 = "known-plugins";
15983
+ const RULE$40 = "known-plugins";
15984
15984
  const SETTINGS_FILE$3 = ".claude/settings.json";
15985
15985
  const MARKETPLACE_FILE$2 = ".claude-plugin/marketplace.json";
15986
15986
  const GITHUB$5 = "github";
@@ -16001,7 +16001,7 @@ const MarketplaceSchema = Schema.Struct({
16001
16001
  plugins: Schema.Array(Schema.Struct({ name: Schema.String }))
16002
16002
  });
16003
16003
  const decodeMarketplace = Schema.decodeUnknownOption(Schema.fromJsonString(MarketplaceSchema));
16004
- const problem$5 = problemInFile(RULE$41);
16004
+ const problem$5 = problemInFile(RULE$40);
16005
16005
  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));
16006
16006
  const pluginEnabled = (settings) => (plugin) => pipe(Option.fromUndefinedOr(settings.enabledPlugins), Option.flatMap(Record.get(plugin)), Option.getOrElse(() => false));
16007
16007
  const pluginProblems = (marketplace, file, settings) => {
@@ -16026,19 +16026,19 @@ const checkKnownPlugins = Effect.fn("checkKnownPlugins")(function* checkKnownPlu
16026
16026
  }));
16027
16027
  });
16028
16028
  // src/features/check-agent-settings/model/missing-hooks.ts
16029
- const RULE$40 = "missing-hook";
16029
+ const RULE$39 = "missing-hook";
16030
16030
  const SETTINGS_FILE$2 = /^\.claude\/settings\.json$/u;
16031
16031
  const PLUGIN_HOOKS_FILE = /(?:^|\/)hooks\/hooks\.json$/u;
16032
16032
  const PROJECT_PATH = /(?<optional>--env-file-if-exists=)?\$\{?CLAUDE_PROJECT_DIR\}?(?:\\")?\/(?<path>[\w.@/-]+)/gu;
16033
16033
  const PLUGIN_PATH = /(?<optional>--env-file-if-exists=)?\$\{?CLAUDE_PLUGIN_ROOT\}?(?:\\")?\/(?<path>[\w.@/-]+)/gu;
16034
16034
  const PLUGIN_ROOT = "..";
16035
- const READ_CONCURRENCY$19 = 16;
16035
+ const READ_CONCURRENCY$18 = 16;
16036
16036
  const START$24 = 0;
16037
- const referenceOf$1 = (found) => pipe(groupOf("path")(found), Option.filter(() => Option.isNone(groupOf("optional")(found))), Option.map((path) => ({
16037
+ const referenceOf = (found) => pipe(groupOf("path")(found), Option.filter(() => Option.isNone(groupOf("optional")(found))), Option.map((path) => ({
16038
16038
  path,
16039
16039
  index: found.index ?? START$24
16040
16040
  })), Option.toArray);
16041
- const referencesIn = (pattern, source) => pipe(Array$1.fromIterable(String$1.matchAll(pattern)(source)), Array$1.flatMap(referenceOf$1));
16041
+ const referencesIn = (pattern, source) => pipe(Array$1.fromIterable(String$1.matchAll(pattern)(source)), Array$1.flatMap(referenceOf));
16042
16042
  const problemsIn$13 = Effect.fn("problemsIn")(function* problemsIn({ root, file, base, pattern }) {
16043
16043
  const files = yield* RepositoryFiles;
16044
16044
  const text = yield* files.readFile(file);
@@ -16051,7 +16051,7 @@ const problemsIn$13 = Effect.fn("problemsIn")(function* problemsIn({ root, file,
16051
16051
  return pipe(missing, Array$1.map(({ path, index }) => ({
16052
16052
  file,
16053
16053
  ...positionOf(source)(index),
16054
- rule: RULE$40,
16054
+ rule: RULE$39,
16055
16055
  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.`
16056
16056
  })));
16057
16057
  });
@@ -16075,11 +16075,11 @@ const checkMissingHooks = Effect.fn("checkMissingHooks")(function* checkMissingH
16075
16075
  }];
16076
16076
  return [];
16077
16077
  }));
16078
- const found = yield* Effect.forEach(hookFiles, problemsIn$13, { concurrency: READ_CONCURRENCY$19 });
16078
+ const found = yield* Effect.forEach(hookFiles, problemsIn$13, { concurrency: READ_CONCURRENCY$18 });
16079
16079
  return Array$1.flatten(found);
16080
16080
  });
16081
16081
  // src/features/check-agent-settings/model/project-extensions.ts
16082
- const RULE$39 = "project-claude-extensions";
16082
+ const RULE$38 = "project-claude-extensions";
16083
16083
  const SETTINGS_FILE$1 = ".claude/settings.json";
16084
16084
  const SETUP_EVENT = "SessionStart";
16085
16085
  const EXTENSION_DIRECTORIES = [
@@ -16095,8 +16095,8 @@ const decodeSettings$1 = Schema.decodeUnknownOption(Schema.fromJsonString(Settin
16095
16095
  const hookProblems = (file, source) => pipe(decodeSettings$1(source), Option.flatMap(({ hooks }) => Option.fromUndefinedOr(hooks)), Option.map(Record.keys), Option.getOrElse(() => []), Array$1.filter((event) => event !== SETUP_EVENT), Array$1.map((event) => {
16096
16096
  const message = `runs a ${event} hook from the project settings. ${REASON$3}`;
16097
16097
  return pipe(source, String$1.indexOf(`"${event}"`), Option.match({
16098
- onNone: () => problemInFile(RULE$39)(file, message),
16099
- onSome: (index) => problemAtIndex(RULE$39)(file, source)(index, message)
16098
+ onNone: () => problemInFile(RULE$38)(file, message),
16099
+ onSome: (index) => problemAtIndex(RULE$38)(file, source)(index, message)
16100
16100
  }));
16101
16101
  }));
16102
16102
  const checkProjectExtensions = Effect.fn("checkProjectExtensions")(function* checkProjectExtensions(root) {
@@ -16104,7 +16104,7 @@ const checkProjectExtensions = Effect.fn("checkProjectExtensions")(function* che
16104
16104
  const settingsFile = files.join(root, SETTINGS_FILE$1);
16105
16105
  const settings = yield* files.readFile(settingsFile);
16106
16106
  const tracked = yield* files.trackedFiles(root, EXTENSION_DIRECTORIES);
16107
- const extensionProblems = pipe(tracked, Array$1.filter((name) => pipe(EXTENSION_DIRECTORIES, Array$1.some((directory) => String$1.startsWith(directory)(name)))), Array$1.map((name) => problemInFile(RULE$39)(files.join(root, name), `is a Claude Code extension in .claude. ${REASON$3}`)));
16107
+ const extensionProblems = pipe(tracked, Array$1.filter((name) => pipe(EXTENSION_DIRECTORIES, Array$1.some((directory) => String$1.startsWith(directory)(name)))), Array$1.map((name) => problemInFile(RULE$38)(files.join(root, name), `is a Claude Code extension in .claude. ${REASON$3}`)));
16108
16108
  return [...Option.match(settings, {
16109
16109
  onNone: () => [],
16110
16110
  onSome: (source) => hookProblems(settingsFile, source)
@@ -16136,7 +16136,7 @@ const listedTasks = Effect.fn("listedTasks")(function* listedTasks(root) {
16136
16136
  }, Effect.scoped, Effect.orElseSucceed(() => Option.none()));
16137
16137
  const GivenTaskGraph = Context.Reference("msch/GivenTaskGraph", { defaultValue: () => Option.none() });
16138
16138
  // src/features/check-documented-commands/model/commands.ts
16139
- const RULE$38 = "documented-commands";
16139
+ const RULE$37 = "documented-commands";
16140
16140
  const DOCUMENTS = ["*AGENTS.md", "*CLAUDE.md"];
16141
16141
  const DOCUMENT_NAMES = /* @__PURE__ */ new Set(["AGENTS.md", "CLAUDE.md"]);
16142
16142
  const COMMAND = /`vp run (?<args>[^`]+)`/gu;
@@ -16214,7 +16214,7 @@ const isMissing = (graph, file) => ({ task, scope }) => !pipe(packagesOf(graph,
16214
16214
  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 }) => ({
16215
16215
  file: absolute(file),
16216
16216
  ...positionOf(text)(match.index ?? START$23),
16217
- rule: RULE$38,
16217
+ rule: RULE$37,
16218
16218
  message: `${match[START$23]} runs task ${task}, but ${whereOf(scope, file)} has no such task. Fix the command or the task`
16219
16219
  })), Option.toArray)));
16220
16220
  const isDocument = (file) => pipe(String$1.split(file, SEPARATOR$12), Array$1.last, Option.exists((name) => DOCUMENT_NAMES.has(name)));
@@ -16239,14 +16239,14 @@ const checkDocumentedCommands = Effect.fn("checkDocumentedCommands")(function* c
16239
16239
  file: absolute(Array$1.headNonEmpty(commanded).file),
16240
16240
  line: ONE$2,
16241
16241
  column: ONE$2,
16242
- rule: RULE$38,
16242
+ rule: RULE$37,
16243
16243
  message: "msch could not list the tasks with `vp run --json`"
16244
16244
  }],
16245
16245
  onSome: (found) => pipe(commanded, Array$1.flatMap((document) => problemsIn$12(found, absolute, document)))
16246
16246
  });
16247
16247
  });
16248
16248
  // src/features/check-legacy-web/model/legacy-web.ts
16249
- const RULE$37 = "legacy-web";
16249
+ const RULE$36 = "legacy-web";
16250
16250
  const FIRST_COLUMN$7 = 1;
16251
16251
  const SCANNER = fileURLToPath(new URL("./skills/modern-web-guidance/modern-web.mjs", import.meta.resolve("modern-web-guidance/package.json")));
16252
16252
  const Finding = Schema.Struct({
@@ -16285,7 +16285,7 @@ const checkLegacyWeb = Effect.fn("checkLegacyWeb")(function* checkLegacyWeb(root
16285
16285
  file: files.join(root, file),
16286
16286
  line,
16287
16287
  column: FIRST_COLUMN$7,
16288
- rule: RULE$37,
16288
+ rule: RULE$36,
16289
16289
  message: `${ruleId}: ${message} Read the guide with \`modern-web-guidance retrieve ${guideId}\` and apply it.`
16290
16290
  });
16291
16291
  return pipe(scan.guides, Array$1.flatMap(({ guideId, rules }) => pipe(rules, Array$1.flatMap(({ ruleId, findings }) => pipe(findings, Array$1.map(problemOf(guideId, ruleId)))))));
@@ -16355,8 +16355,8 @@ const SHELL_FILE = /\.(?:sh|bash|zsh|ksh|fish|command)$/u;
16355
16355
  const SHELL_SHEBANG = /^#!\S*(?:\/|\s)(?:env\s+)?(?:-\S+\s+)*(?:ba|z|k|da)?sh\b|^#!\S*fish\b/u;
16356
16356
  const EXTENSION$1 = /\.[^./]+$/u;
16357
16357
  const SETTINGS_FILE = ".claude/settings.json";
16358
- const READ_CONCURRENCY$18 = 64;
16359
- const RULE$36 = "shell-script";
16358
+ const READ_CONCURRENCY$17 = 64;
16359
+ const RULE$35 = "shell-script";
16360
16360
  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.";
16361
16361
  const HookSchema = Schema.Struct({
16362
16362
  command: Schema.optional(Schema.String),
@@ -16388,8 +16388,8 @@ const checkShellScripts = Effect.fn("checkShellScripts")(function* checkShellScr
16388
16388
  return files.readFile(file).pipe(Effect.map(Option.exists((source) => SHELL_SHEBANG.test(source))));
16389
16389
  };
16390
16390
  const candidates = pipe(names, Array$1.filter((name) => !isSessionStartHook(name)));
16391
- const shell = yield* Effect.filter(candidates, isShell, { concurrency: READ_CONCURRENCY$18 });
16392
- return pipe(shell, Array$1.map((name) => problemInFile(RULE$36)(files.join(root, name), MESSAGE$9)));
16391
+ const shell = yield* Effect.filter(candidates, isShell, { concurrency: READ_CONCURRENCY$17 });
16392
+ return pipe(shell, Array$1.map((name) => problemInFile(RULE$35)(files.join(root, name), MESSAGE$9)));
16393
16393
  });
16394
16394
  // src/features/check-structure/model/structure.ts
16395
16395
  const checkStructure = checkSection({
@@ -16469,7 +16469,7 @@ const START$22 = 0;
16469
16469
  const startOf$1 = (range) => pipe(Option.fromNullishOr(range), Option.map(([start]) => start), Option.getOrElse(() => START$22));
16470
16470
  const runScriptsOf = (source) => {
16471
16471
  const found = [];
16472
- visit(parseDocument(source), { Pair: (_key, pair) => {
16472
+ visit$1(parseDocument(source), { Pair: (_key, pair) => {
16473
16473
  if (isPair(pair) && isScalar(pair.key) && pair.key.value === RUN_KEY && isScalar(pair.value) && typeof pair.value.value === "string") found.push({
16474
16474
  text: pair.value.value,
16475
16475
  start: startOf$1(pair.value.range)
@@ -16522,7 +16522,7 @@ const AGENT_DOCS = [
16522
16522
  ":(glob)**/CLAUDE.md",
16523
16523
  ...EXCLUDED$5
16524
16524
  ];
16525
- const READ_CONCURRENCY$17 = 16;
16525
+ const READ_CONCURRENCY$16 = 16;
16526
16526
  const START$21 = 0;
16527
16527
  const FIRST$9 = 1;
16528
16528
  const LINE = "\n";
@@ -16560,9 +16560,9 @@ const hookSources = (file, name) => (source) => pipe(String$1.split(source, LINE
16560
16560
  text
16561
16561
  })));
16562
16562
  const commandIn = (node) => {
16563
- if (!Predicate.isReadonlyObject(node)) return Option.none();
16563
+ if (!Predicate$1.isReadonlyObject(node)) return Option.none();
16564
16564
  const record = node;
16565
- return pipe(Option.fromUndefinedOr(record[COMMAND_KEY]), Option.filter(Predicate.isString), Option.map((command) => pipe(decodeArguments(record[ARGUMENTS_KEY]), Option.getOrElse(() => []), Array$1.prepend(command), Array$1.join(" "))));
16565
+ return pipe(Option.fromUndefinedOr(record[COMMAND_KEY]), Option.filter(Predicate$1.isString), Option.map((command) => pipe(decodeArguments(record[ARGUMENTS_KEY]), Option.getOrElse(() => []), Array$1.prepend(command), Array$1.join(" "))));
16566
16566
  };
16567
16567
  const commandsIn = (node) => [...Option.toArray(commandIn(node)), ...pipe(childrenOf$4(node), Array$1.flatMap(commandsIn))];
16568
16568
  const agentSources = (file) => (source) => pipe(decodeJson$1(source), Option.map(commandsIn), Option.getOrElse(() => []), Array$1.map((text) => {
@@ -16591,7 +16591,7 @@ const taskSources = Effect.fn("taskSources")(function* taskSources(root, directo
16591
16591
  return pipe(tasks, Array$1.flatMap((task) => Option.toArray(taskSource(file, source)(task))));
16592
16592
  });
16593
16593
  const workspaceTasks = Effect.fn("workspaceTasks")(function* workspaceTasks(root, directories) {
16594
- const found = yield* Effect.forEach(directories, (directory) => taskSources(root, directory), { concurrency: READ_CONCURRENCY$17 });
16594
+ const found = yield* Effect.forEach(directories, (directory) => taskSources(root, directory), { concurrency: READ_CONCURRENCY$16 });
16595
16595
  return Array$1.flatten(found);
16596
16596
  });
16597
16597
  const readSources = Effect.fn("readSources")(function* readSources(root, names, sourcesOf) {
@@ -16603,7 +16603,7 @@ const readSources = Effect.fn("readSources")(function* readSources(root, names,
16603
16603
  onSome: sourcesOf(file, name)
16604
16604
  });
16605
16605
  return files.readFile(file).pipe(Effect.map(sourcesIn));
16606
- }, { concurrency: READ_CONCURRENCY$17 });
16606
+ }, { concurrency: READ_CONCURRENCY$16 });
16607
16607
  return Array$1.flatten(found);
16608
16608
  });
16609
16609
  /** @internal */
@@ -16627,7 +16627,7 @@ const commandSources = Effect.fn("commandSources")(function* commandSources(root
16627
16627
  return Array$1.flatten(found);
16628
16628
  });
16629
16629
  // src/features/check-vite-plus/model/package-scripts.ts
16630
- const RULE$35 = "package-script";
16630
+ const RULE$34 = "package-script";
16631
16631
  const LIFECYCLE = [
16632
16632
  "preinstall",
16633
16633
  "install",
@@ -16650,25 +16650,25 @@ const LIFECYCLE = [
16650
16650
  const problemOf$6 = ({ file, position, name }) => ({
16651
16651
  file,
16652
16652
  ...position,
16653
- rule: RULE$35,
16653
+ rule: RULE$34,
16654
16654
  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.`
16655
16655
  });
16656
16656
  const packageScriptProblems = (sources) => pipe(sources, Array$1.filter(({ kind, name }) => kind === "script" && !Array$1.contains(LIFECYCLE, name)), Array$1.map(problemOf$6));
16657
16657
  // src/features/check-vite-plus/model/vite-plus-block.ts
16658
- const RULE$34 = "vite-plus-block";
16659
- const MARKER$1 = Array$1.join([
16658
+ const RULE$33 = "vite-plus-block";
16659
+ const MARKER = Array$1.join([
16660
16660
  "<!--",
16661
16661
  "VITE PLUS START",
16662
16662
  "-->"
16663
16663
  ], "");
16664
16664
  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.";
16665
16665
  const problemIn = (file) => (source) => {
16666
- const index = String$1.indexOf(MARKER$1)(source);
16666
+ const index = String$1.indexOf(MARKER)(source);
16667
16667
  if (Option.isNone(index)) return Option.none();
16668
16668
  return Option.some({
16669
16669
  file,
16670
16670
  ...positionOf(source)(index.value),
16671
- rule: RULE$34,
16671
+ rule: RULE$33,
16672
16672
  message: MESSAGE$8
16673
16673
  });
16674
16674
  };
@@ -16701,7 +16701,7 @@ const checkCiDrift = Effect.fn("checkCiDrift")(function* checkCiDrift(root) {
16701
16701
  return pipe(drifts, Array$1.map(problemOf$5));
16702
16702
  });
16703
16703
  // src/features/check-workflows/model/release-please.ts
16704
- const RULE$33 = "release-please";
16704
+ const RULE$32 = "release-please";
16705
16705
  const RELEASE_PLEASE_FILE = /(?:^|\/)(?:release-please-config|\.release-please-manifest)\.json$/u;
16706
16706
  const FIRST$8 = 1;
16707
16707
  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.";
@@ -16713,7 +16713,7 @@ const checkReleasePlease = Effect.fn("checkReleasePlease")(function* checkReleas
16713
16713
  file: files.join(root, name),
16714
16714
  line: FIRST$8,
16715
16715
  column: FIRST$8,
16716
- rule: RULE$33,
16716
+ rule: RULE$32,
16717
16717
  message: MESSAGE$7
16718
16718
  })));
16719
16719
  });
@@ -16888,7 +16888,7 @@ const loadGrammars = Effect.fn("loadGrammars")(function* loadGrammars() {
16888
16888
  const commentNodesIn = (language, source) => pipe(readTree({
16889
16889
  language,
16890
16890
  source,
16891
- read: (root) => pipe(root.descendantsOfType(COMMENT_NODES), Array$1.filter(Predicate.isNotNullish), Array$1.map((node) => ({
16891
+ read: (root) => pipe(root.descendantsOfType(COMMENT_NODES), Array$1.filter(Predicate$1.isNotNullish), Array$1.map((node) => ({
16892
16892
  index: node.startIndex,
16893
16893
  text: node.text
16894
16894
  })))
@@ -17002,11 +17002,11 @@ const scannedFiles = Effect.fn("scannedFiles")(function* scannedFiles(root) {
17002
17002
  })), Array$1.filter(({ file }) => !HashSet.has(skipped, file)));
17003
17003
  });
17004
17004
  // src/features/ban-comments/model/comments.ts
17005
- const RULE$32 = "comment";
17005
+ const RULE$31 = "comment";
17006
17006
  const SUPPRESSION_RULE = "suppression";
17007
17007
  const UNUSED_RULE = "unused-comment-allowance";
17008
17008
  const CONFIG_FILE$3 = "vite.config.ts";
17009
- const READ_CONCURRENCY$16 = 64;
17009
+ const READ_CONCURRENCY$15 = 64;
17010
17010
  const START$19 = 0;
17011
17011
  const SHEBANG = "#!";
17012
17012
  const PIN = /@(?:[0-9a-f]{40}|sha256:[0-9a-f]{64})\s*$/u;
@@ -17034,7 +17034,7 @@ const NOTHING = {
17034
17034
  used: []
17035
17035
  };
17036
17036
  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.`;
17037
- 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)));
17037
+ 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$6)));
17038
17038
  const settingsOf = ({ msch }) => ({ allow: pipe(Option.fromUndefinedOr(msch), Option.flatMap(({ comments }) => Option.fromUndefinedOr(comments)), Option.match({
17039
17039
  onNone: () => NO_SETTINGS.allow,
17040
17040
  onSome: ({ allow }) => allow
@@ -17063,7 +17063,7 @@ const unusedAllowances = Effect.fn("unusedAllowances")(function* unusedAllowance
17063
17063
  return pipe(settings.allow, Array$1.filter((_entry, index) => !HashSet.has(used, index)), Array$1.map((entry) => problemAtIndex(UNUSED_RULE)(file, source)(entryOffset(source, entry), unusedMessage(entry))));
17064
17064
  });
17065
17065
  const scanFile = ({ directives, allowances, comments }) => ({ name, file }, source) => {
17066
- const kept = Predicate.not(isAllowed(source, directives));
17066
+ const kept = Predicate$1.not(isAllowed(source, directives));
17067
17067
  const toProblem = problemOf$4(file, source);
17068
17068
  return Option.match(readerOf(name)(source), {
17069
17069
  onNone: () => Effect.succeed(NOTHING),
@@ -17071,7 +17071,7 @@ const scanFile = ({ directives, allowances, comments }) => ({ name, file }, sour
17071
17071
  problems: pipe(found, Array$1.filter(kept), Array$1.map(toProblem)),
17072
17072
  used: usedAllowances(allowances, found)
17073
17073
  })), Effect.catchTag("CommentsUnreadable", ({ message }) => Effect.succeed({
17074
- problems: [problemAtIndex(RULE$32)(file, source)(START$19, `msch could not read the comments in this file: ${message}`)],
17074
+ problems: [problemAtIndex(RULE$31)(file, source)(START$19, `msch could not read the comments in this file: ${message}`)],
17075
17075
  used: []
17076
17076
  })))
17077
17077
  });
@@ -17090,7 +17090,7 @@ const checkComments = Effect.fn("checkComments")(function* checkComments(root) {
17090
17090
  const found = yield* Effect.forEach(scanned, (entry) => files.readFile(entry.file).pipe(Effect.flatMap(Option.match({
17091
17091
  onNone: () => Effect.succeed(NOTHING),
17092
17092
  onSome: (source) => scan(entry, source)
17093
- }))), { concurrency: READ_CONCURRENCY$16 });
17093
+ }))), { concurrency: READ_CONCURRENCY$15 });
17094
17094
  const used = HashSet.fromIterable(pipe(found, Array$1.flatMap(({ used: indexes }) => indexes)));
17095
17095
  const unused = yield* unusedAllowances(root, settings, used);
17096
17096
  return [...pipe(found, Array$1.flatMap(({ problems }) => problems)), ...unused];
@@ -17184,7 +17184,7 @@ const PYTHON = {
17184
17184
  /** @internal */
17185
17185
  const checkPython = (root) => checkBannedTool(root, PYTHON);
17186
17186
  // src/features/check-catalog-entries/model/uncataloged-dependencies.ts
17187
- const RULE$31 = "uncataloged-dependency";
17187
+ const RULE$30 = "uncataloged-dependency";
17188
17188
  const OWNED_ELSEWHERE = [
17189
17189
  "catalog:",
17190
17190
  "workspace:",
@@ -17198,7 +17198,7 @@ const isOwnedElsewhere = ({ specifier }) => pipe(OWNED_ELSEWHERE, Array$1.some((
17198
17198
  const problemsIn$11 = (entry, source) => pipe(manifestSpecifiers(source), Array$1.filter((found) => !isOwnedElsewhere(found)), Array$1.map((found) => ({
17199
17199
  file: entry.file,
17200
17200
  ...positionOf(source)(offsetIn(source)(manifestPattern(found))),
17201
- rule: RULE$31,
17201
+ rule: RULE$30,
17202
17202
  message: `\`${found.name}\` \`${found.specifier}\` ${MESSAGE$5}`
17203
17203
  })));
17204
17204
  /** @internal */
@@ -17219,7 +17219,7 @@ const uncatalogedDependencies = Effect.fn("uncatalogedDependencies")(function* u
17219
17219
  const WORKSPACE_FILE$3 = "pnpm-workspace.yaml";
17220
17220
  const FIRST_LINE$5 = 1;
17221
17221
  const FIRST_COLUMN$5 = 1;
17222
- const RULE$30 = "prune-setting-off";
17222
+ const RULE$29 = "prune-setting-off";
17223
17223
  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."]];
17224
17224
  const decodeTrue = Schema.decodeUnknownOption(Schema.Literal(true));
17225
17225
  const lineOf$3 = (source) => (setting) => pipe(String$1.split(source, "\n"), Array$1.findFirstIndex(String$1.startsWith(`${setting}:`)), Option.match({
@@ -17233,7 +17233,7 @@ const pruneProblems = Effect.fn("pruneProblems")(function* pruneProblems(file, s
17233
17233
  file,
17234
17234
  line: at(setting),
17235
17235
  column: FIRST_COLUMN$5,
17236
- rule: RULE$30,
17236
+ rule: RULE$29,
17237
17237
  message: `Set \`${setting}: true\`. It ${effect}`
17238
17238
  })));
17239
17239
  });
@@ -17327,13 +17327,13 @@ const checkSkillEntry = Effect.fn("checkSkillEntry")(function* checkSkillEntry(r
17327
17327
  ];
17328
17328
  });
17329
17329
  // src/features/check-skills/model/published-skills.ts
17330
- const RULE$29 = "published-skills";
17330
+ const RULE$28 = "published-skills";
17331
17331
  const KEYWORD = "tanstack-intent";
17332
17332
  const SKILLS = "skills";
17333
17333
  const SKILL_FILE$3 = "SKILL.md";
17334
17334
  const SUCCEEDED = 0;
17335
17335
  const INTENT_CLI = fileURLToPath(new URL("./cli.mjs", import.meta.resolve("@tanstack/intent")));
17336
- const problemAt$2 = problemInFile(RULE$29);
17336
+ const problemAt$2 = problemInFile(RULE$28);
17337
17337
  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))));
17338
17338
  const isShipped = (listed) => (skill) => Array$1.contains(listed, SKILLS) || Array$1.contains(listed, skill);
17339
17339
  const packagingMessages = ({ keywords, files }, skills) => {
@@ -17370,7 +17370,7 @@ const checkPublishedSkills = Effect.fn("checkPublishedSkills")(function* checkPu
17370
17370
  return Array$1.flatten(problems);
17371
17371
  });
17372
17372
  // src/features/check-skills/model/skill-files.ts
17373
- const RULE$28 = "skill-file";
17373
+ const RULE$27 = "skill-file";
17374
17374
  const SKILL_FILE$2 = /(?:^|\/)SKILL\.md$/u;
17375
17375
  const INSTALLED = /(?:^|\/)\.(?:agents|claude|codex)\/skills\//u;
17376
17376
  const FIXTURE$1 = /(?:^|\/)fixtures\//u;
@@ -17389,7 +17389,7 @@ const BLANK = /\s+/u;
17389
17389
  const SEPARATOR$10 = "/";
17390
17390
  const START$17 = 0;
17391
17391
  const FIRST$7 = 1;
17392
- const READ_CONCURRENCY$15 = 16;
17392
+ const READ_CONCURRENCY$14 = 16;
17393
17393
  const Metadata = Schema.Struct({ "derived-from": Schema.optional(Schema.String) });
17394
17394
  const Frontmatter = Schema.Struct({
17395
17395
  name: Schema.optional(Schema.String),
@@ -17427,7 +17427,7 @@ const frontmatterProblems = (skill, folder) => pipe(frontmatterOf(skill.source),
17427
17427
  ]), Option.getOrElse(() => []), Array$1.map(({ index, message }) => ({
17428
17428
  file: skill.file,
17429
17429
  ...positionOf(skill.source)(index),
17430
- rule: RULE$28,
17430
+ rule: RULE$27,
17431
17431
  message
17432
17432
  })));
17433
17433
  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) => ({
@@ -17439,7 +17439,7 @@ const rangeOf$2 = (found) => {
17439
17439
  return [start, start + found[START$17].length];
17440
17440
  };
17441
17441
  const isOutside = (ranges) => ({ index }) => !pipe(ranges, Array$1.some(([start, end]) => index >= start && index < end));
17442
- const linksIn$1 = (source) => {
17442
+ const linksIn = (source) => {
17443
17443
  const code = pipe(Array$1.fromIterable(String$1.matchAll(CODE)(source)), Array$1.map(rangeOf$2));
17444
17444
  return pipe(Array$1.fromIterable(String$1.matchAll(LINK)(source)), Array$1.flatMap(linkOf), Array$1.filter(isOutside(code)));
17445
17445
  };
@@ -17450,11 +17450,11 @@ const linkProblems = Effect.fn("linkProblems")(function* linkProblems(file) {
17450
17450
  const source = text.value;
17451
17451
  const directory = files.dirname(file);
17452
17452
  const isMissing = ({ target }) => files.exists(files.join(directory, target)).pipe(Effect.map((exists) => !exists));
17453
- const missing = yield* Effect.filter(linksIn$1(source), isMissing);
17453
+ const missing = yield* Effect.filter(linksIn(source), isMissing);
17454
17454
  return pipe(missing, Array$1.map(({ target, index }) => ({
17455
17455
  file,
17456
17456
  ...positionOf(source)(index),
17457
- rule: RULE$28,
17457
+ rule: RULE$27,
17458
17458
  message: `links to ${target}, which does not exist. Fix the path or remove the link.`
17459
17459
  })));
17460
17460
  });
@@ -17465,12 +17465,12 @@ const problemsIn$9 = Effect.fn("problemsIn")(function* problemsIn(root, listed,
17465
17465
  const inside = pipe(listed, Array$1.filter(String$1.startsWith(`${directory}${SEPARATOR$10}`)));
17466
17466
  const text = yield* files.readFile(file);
17467
17467
  const documents = pipe(inside, Array$1.filter(String$1.endsWith(MARKDOWN$5)), Array$1.map((entry) => files.join(root, entry)));
17468
- const links = yield* Effect.forEach(documents, linkProblems, { concurrency: READ_CONCURRENCY$15 });
17468
+ const links = yield* Effect.forEach(documents, linkProblems, { concurrency: READ_CONCURRENCY$14 });
17469
17469
  const licenses = pipe(inside, Array$1.filter((entry) => files.dirname(entry) === directory), Array$1.filter((entry) => LICENSE_FILE.test(files.basename(entry))), Array$1.map((entry) => ({
17470
17470
  file: files.join(root, entry),
17471
17471
  line: FIRST$7,
17472
17472
  column: FIRST$7,
17473
- rule: RULE$28,
17473
+ rule: RULE$27,
17474
17474
  message: "is a license file inside a skill. Skills here carry neither a license field nor a LICENSE file. Delete it."
17475
17475
  })));
17476
17476
  return [
@@ -17487,7 +17487,7 @@ const problemsIn$9 = Effect.fn("problemsIn")(function* problemsIn(root, listed,
17487
17487
  const checkSkillFiles = Effect.fn("checkSkillFiles")(function* checkSkillFiles(root) {
17488
17488
  const listed = yield* (yield* RepositoryFiles).listedFiles(root);
17489
17489
  const skills = pipe(listed, Array$1.filter((name) => SKILL_FILE$2.test(name) && !INSTALLED.test(name) && !FIXTURE$1.test(name)));
17490
- const found = yield* Effect.forEach(skills, (name) => problemsIn$9(root, listed, name), { concurrency: READ_CONCURRENCY$15 });
17490
+ const found = yield* Effect.forEach(skills, (name) => problemsIn$9(root, listed, name), { concurrency: READ_CONCURRENCY$14 });
17491
17491
  return Array$1.flatten(found);
17492
17492
  });
17493
17493
  // src/features/check-version-downgrades/model/version-entries.ts
@@ -17548,8 +17548,8 @@ const cargoEntries = (text) => {
17548
17548
  };
17549
17549
  const toolchainEntries = (text) => singleEntry("channel", fieldOf("channel")(parseToml(text)["toolchain"]));
17550
17550
  // src/features/check-version-downgrades/model/version-downgrade.ts
17551
- const RULE$27 = "version-downgrade";
17552
- const READ_CONCURRENCY$14 = 16;
17551
+ const RULE$26 = "version-downgrade";
17552
+ const READ_CONCURRENCY$13 = 16;
17553
17553
  const READERS = [
17554
17554
  [/(?:^|\/)package\.json$/u, manifestEntries],
17555
17555
  [/^pnpm-workspace\.yaml$/u, workspaceEntries],
@@ -17573,7 +17573,7 @@ const downgradesIn = ({ file, text, before, after }) => {
17573
17573
  file,
17574
17574
  line: lineOf$2(text, entry),
17575
17575
  column: FIRST_LINE$4,
17576
- rule: RULE$27,
17576
+ rule: RULE$26,
17577
17577
  message: message$1(old, entry)
17578
17578
  })), Option.toArray)));
17579
17579
  };
@@ -17593,7 +17593,7 @@ const checkDowngrades = Effect.fn("checkDowngrades")(function* checkDowngrades(r
17593
17593
  before: read(before),
17594
17594
  after: read(after)
17595
17595
  })), Option.getOrElse(() => []));
17596
- }), { concurrency: READ_CONCURRENCY$14 });
17596
+ }), { concurrency: READ_CONCURRENCY$13 });
17597
17597
  return Array$1.flatten(found);
17598
17598
  });
17599
17599
  // src/features/check-version-downgrades/model/renovate-settings.ts
@@ -17604,7 +17604,7 @@ const AUTOMERGE_RULE = "renovate-platform-automerge";
17604
17604
  const CAP_RULE = "renovate-version-cap";
17605
17605
  const PRESET_RULE = "renovate-msch-preset";
17606
17606
  const START$16 = 0;
17607
- const READ_CONCURRENCY$13 = 16;
17607
+ const READ_CONCURRENCY$12 = 16;
17608
17608
  const AUTOMERGE_MESSAGE = "sets `platformAutomerge: false`. Keep the platform's automerge on so passing updates merge without waiting for the next Renovate run.";
17609
17609
  const CAP_MESSAGE = "caps a dependency below a version with `allowedVersions`. A cap holds the dependency on an old version, which is a downgrade that never ends: fix what breaks on the new version instead.";
17610
17610
  const PRESET_MESSAGE = `does not extend \`${RENOVATE_PRESET}\`, so Renovate writes ranges that the \`version-range\` check rejects. Add it to \`extends\`.`;
@@ -17638,12 +17638,12 @@ const checkRenovateSettings = Effect.fn("checkRenovateSettings")(function* check
17638
17638
  onNone: () => [],
17639
17639
  onSome: (source) => problemsIn$8(file, source)
17640
17640
  })));
17641
- }, { concurrency: READ_CONCURRENCY$13 });
17641
+ }, { concurrency: READ_CONCURRENCY$12 });
17642
17642
  return Array$1.flatten(found);
17643
17643
  });
17644
17644
  // src/shared/lib/manifest-texts.ts
17645
17645
  const MANIFEST$2 = /(?:^|\/)package\.json$/u;
17646
- const READ_CONCURRENCY$12 = 16;
17646
+ const READ_CONCURRENCY$11 = 16;
17647
17647
  /** @internal */
17648
17648
  const manifestTexts = Effect.fn("manifestTexts")(function* manifestTexts(root) {
17649
17649
  const files = yield* RepositoryFiles;
@@ -17652,16 +17652,16 @@ const manifestTexts = Effect.fn("manifestTexts")(function* manifestTexts(root) {
17652
17652
  const read = yield* Effect.forEach(names, (file) => Effect.map(files.readFile(files.join(root, file)), Option.map((text) => ({
17653
17653
  file,
17654
17654
  text
17655
- }))), { concurrency: READ_CONCURRENCY$12 });
17655
+ }))), { concurrency: READ_CONCURRENCY$11 });
17656
17656
  return Array$1.getSomes(read);
17657
17657
  });
17658
17658
  // src/features/check-version-downgrades/model/package-versions.ts
17659
- const RULE$26 = "unbumped-package";
17659
+ const RULE$25 = "unbumped-package";
17660
17660
  const UNSHIPPED = /(?:\.test\.[\w.]+$|(?:^|\/)(?:fixtures|__tests__|tests?)\/|(?:^|\/)(?:AGENTS|CLAUDE|CHANGELOG)\.md$)/u;
17661
17661
  const UNVERSIONED$5 = "0.0.0";
17662
17662
  const FIRST_LINE$3 = 1;
17663
17663
  const FIRST_COLUMN$4 = 1;
17664
- const READ_CONCURRENCY$11 = 16;
17664
+ const READ_CONCURRENCY$10 = 16;
17665
17665
  const LAST_SEGMENT$1 = /[^/]*$/u;
17666
17666
  const directoryOf$1 = (file) => String$1.replace(LAST_SEGMENT$1, "")(file);
17667
17667
  const packageAt$1 = (file, text) => pipe(decodeVersionedPackageJson(text), Option.filter(({ private: hidden, version }) => hidden !== true && version !== UNVERSIONED$5), Option.map((manifest) => ({
@@ -17670,23 +17670,23 @@ const packageAt$1 = (file, text) => pipe(decodeVersionedPackageJson(text), Optio
17670
17670
  name: manifest.name,
17671
17671
  version: manifest.version,
17672
17672
  text,
17673
- depends: namesIn(manifest, DEPENDENCY_SECTIONS)
17673
+ depends: namesIn$1(manifest, DEPENDENCY_SECTIONS)
17674
17674
  })));
17675
17675
  const hiddenAt = (file, text) => pipe(decodePackageJson(text), Option.filter((manifest) => manifest.private === true), Option.flatMap((manifest) => Option.map(Option.fromUndefinedOr(manifest.name), (name) => [name, {
17676
17676
  directory: directoryOf$1(file),
17677
- depends: namesIn(manifest, DEPENDENCY_SECTIONS)
17677
+ depends: namesIn$1(manifest, DEPENDENCY_SECTIONS)
17678
17678
  }])));
17679
- const visit$1 = (hidden, seen, name) => {
17679
+ const visit = (hidden, seen, name) => {
17680
17680
  if (seen.has(name)) return seen;
17681
17681
  return Option.match(Option.fromUndefinedOr(hidden.get(name)), {
17682
17682
  onNone: () => seen,
17683
17683
  onSome: (found) => {
17684
17684
  const added = /* @__PURE__ */ new Set([...seen, name]);
17685
- return Array$1.reduce(found.depends, added, (next, dependency) => visit$1(hidden, next, dependency));
17685
+ return Array$1.reduce(found.depends, added, (next, dependency) => visit(hidden, next, dependency));
17686
17686
  }
17687
17687
  });
17688
17688
  };
17689
- const bundledBy = (hidden, depends) => [...Array$1.reduce(depends, /* @__PURE__ */ new Set(), (seen, name) => visit$1(hidden, seen, name))];
17689
+ const bundledBy = (hidden, depends) => [...Array$1.reduce(depends, /* @__PURE__ */ new Set(), (seen, name) => visit(hidden, seen, name))];
17690
17690
  const hiddenPackagesIn = (manifests) => new Map(pipe(manifests, Array$1.flatMap(({ file, text }) => Option.toArray(hiddenAt(file, text)))));
17691
17691
  const versionAt$1 = (name, text) => pipe(text, Option.flatMap(decodeVersionedPackageJson), Option.filter((manifest) => manifest.name === name), Option.map(({ version }) => version), Option.filter((version) => semver.valid(version) !== null));
17692
17692
  const versionLine = (text) => pipe(String$1.split(text, "\n"), Array$1.findFirstIndex((line) => String$1.includes("\"version\"")(line)), Option.match({
@@ -17731,16 +17731,16 @@ const checkPackageVersions = Effect.fn("checkPackageVersions")(function* checkPa
17731
17731
  file: files.join(root, pack.file),
17732
17732
  line: versionLine(pack.text),
17733
17733
  column: FIRST_COLUMN$4,
17734
- rule: RULE$26,
17734
+ rule: RULE$25,
17735
17735
  message: message(pack, part, lowest)
17736
17736
  })), Option.toArray);
17737
- }), { concurrency: READ_CONCURRENCY$11 });
17737
+ }), { concurrency: READ_CONCURRENCY$10 });
17738
17738
  return Array$1.flatten(found);
17739
17739
  });
17740
17740
  // src/features/find-unneeded-files/model/applied-packages.ts
17741
17741
  const SCOPE$1 = Option.getOrElse(scopeOfName(SELF_NAME), () => SELF_NAME);
17742
17742
  const PLUGIN_KEYWORDS = ["oxlint-plugin", "textlint-rule"];
17743
- const RULE$25 = "applied-package";
17743
+ const RULE$24 = "applied-package";
17744
17744
  const WORKSPACE_FILE$2 = "pnpm-workspace.yaml";
17745
17745
  const NOT_FOUND$4 = -1;
17746
17746
  const SEPARATOR$9 = "/";
@@ -17748,7 +17748,7 @@ const SEPARATOR$9 = "/";
17748
17748
  const isApplied = ({ bins, keywords }) => Array$1.isReadonlyArrayNonEmpty(bins) || pipe(keywords, Array$1.some((keyword) => Array$1.contains(PLUGIN_KEYWORDS, keyword)));
17749
17749
  const BY_LENGTH = Order.mapInput(Order.Number, (text) => text.length);
17750
17750
  const escaped$1 = (text) => String$1.replaceAll(/[.*+?^${}()|[\]\\]/gu, String.raw`\$&`)(text);
17751
- const declaredNames = (manifest) => namesIn(manifest, [
17751
+ const declaredNames = (manifest) => namesIn$1(manifest, [
17752
17752
  "dependencies",
17753
17753
  "devDependencies",
17754
17754
  "peerDependencies"
@@ -17776,7 +17776,7 @@ const appliedByMsch = Effect.fn("appliedByMsch")(function* appliedByMsch() {
17776
17776
  const problemAt$1 = (file, source) => (index, name) => ({
17777
17777
  file,
17778
17778
  ...positionOf(source)(index),
17779
- rule: RULE$25,
17779
+ rule: RULE$24,
17780
17780
  message: `msch applies ${name}. Remove this use and let msch apply it.`
17781
17781
  });
17782
17782
  const specifierPattern = ({ name }) => new RegExp(`["'\`]${escaped$1(name)}(?=["'\`/])`, "gu");
@@ -17831,7 +17831,7 @@ const checkAppliedPackages = Effect.fn("checkAppliedPackages")(function* checkAp
17831
17831
  return yield* appliedPackageProblems(root, applied);
17832
17832
  });
17833
17833
  // src/features/find-unneeded-files/model/replaced-tools.ts
17834
- const RULE$24 = "replaced-tool";
17834
+ const RULE$23 = "replaced-tool";
17835
17835
  const FIRST$6 = 1;
17836
17836
  const TASKS = "Vite+ tasks in run.tasks of vite.config.ts, run with `vp run`";
17837
17837
  const HOOKS = "the hooks in .vite-hooks/ that `vp config` installs";
@@ -17912,7 +17912,7 @@ const problemFor$1 = ({ name, file }) => pipe(REPLACED, Array$1.findFirst(({ pat
17912
17912
  file,
17913
17913
  line: FIRST$6,
17914
17914
  column: FIRST$6,
17915
- rule: RULE$24,
17915
+ rule: RULE$23,
17916
17916
  message: `belongs to ${tool}, which this repository replaced with ${replacement}. Move what is still needed there and delete this file.`
17917
17917
  })));
17918
17918
  /** @internal */
@@ -18051,7 +18051,7 @@ const checkUnneededFiles = Effect.fn("checkUnneededFiles")(function* checkUnneed
18051
18051
  return yield* unneededIn(root, cargoEnabled(workspace.value));
18052
18052
  });
18053
18053
  // src/features/check-markdown-directives/model/directives.ts
18054
- const RULE$23 = "markdown-directive";
18054
+ const RULE$22 = "markdown-directive";
18055
18055
  const START$14 = 0;
18056
18056
  const SECOND = 1;
18057
18057
  const ODD = 1;
@@ -18076,7 +18076,7 @@ const problemsIn$7 = (file, source) => {
18076
18076
  const { line, column } = positionOf(source)(index);
18077
18077
  return pipe(Array$1.get(fenced, line - SECOND), Option.getOrElse(() => false)) || pipe(Array$1.get(lines, line - SECOND), Option.map(String$1.slice(START$14, column - SECOND)), Option.exists(insideCodeSpan));
18078
18078
  };
18079
- return pipe(Array$1.fromIterable(String$1.matchAll(DISABLE)(source)), Array$1.filter((match) => !isCode(match.index ?? START$14)), Array$1.map((match) => problemAtIndex(RULE$23)(file, source)(match.index ?? START$14, MESSAGE$4)));
18079
+ return pipe(Array$1.fromIterable(String$1.matchAll(DISABLE)(source)), Array$1.filter((match) => !isCode(match.index ?? START$14)), Array$1.map((match) => problemAtIndex(RULE$22)(file, source)(match.index ?? START$14, MESSAGE$4)));
18080
18080
  };
18081
18081
  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)));
18082
18082
  /** @internal */
@@ -18088,51 +18088,6 @@ const checkMarkdownDirectives = Effect.fn("checkMarkdownDirectives")(function* c
18088
18088
  file: files.join(root, name)
18089
18089
  }))), ({ file }, source) => problemsIn$7(file, source));
18090
18090
  });
18091
- // src/shared/lib/branch-trailer.ts
18092
- /** @internal */
18093
- const branchCarries = Effect.fn("branchCarries")(function* branchCarries(root, base, trailer) {
18094
- const messages = yield* (yield* RepositoryFiles).commitMessages(root, base);
18095
- return pipe(messages, Array$1.some((commit) => trailer.test(commit)));
18096
- });
18097
- // src/features/check-owner-markers/model/owner-markers.ts
18098
- const RULE$22 = "owner-decision-removed";
18099
- const MARKER = /\(owner, \d{4}-\d{2}-\d{2}\)/gu;
18100
- const TRAILER$1 = /^Owner-Decision-(?:Moved|Revoked):[ \t]*\S/mu;
18101
- const READ_CONCURRENCY$10 = 16;
18102
- const HEAD$1 = "HEAD";
18103
- const markersOf = (text) => pipe(String$1.matchAll(MARKER)(text), Array$1.fromIterable, Array$1.flatMap((hit) => Option.toArray(Array$1.head(hit))));
18104
- const countOf = (markers) => (marker) => pipe(markers, Array$1.filter((candidate) => candidate === marker)).length;
18105
- const lostMarkers = (before, after) => pipe(Array$1.dedupe(before), Array$1.flatMap((marker) => pipe(before, Array$1.filter((candidate) => candidate === marker), Array$1.take(countOf(before)(marker) - countOf(after)(marker)))));
18106
- const removalOf = (file, lost) => pipe(Option.liftPredicate(lost, Array$1.isReadonlyArrayNonEmpty), Option.map((markers) => ({
18107
- file,
18108
- markers
18109
- })), Option.toArray);
18110
- const messageOf$1 = ({ markers }) => `removes ${Array$1.join(markers, " ")}. Only the owner changes or removes an owner decision. When it moves to a stronger home, add the trailer "Owner-Decision-Moved: <new place>" to a commit of the branch. When the owner revoked it, add "Owner-Decision-Revoked: <the owner's words>".`;
18111
- const removalsSince = Effect.fn("removalsSince")(function* removalsSince(root, base) {
18112
- const files = yield* RepositoryFiles;
18113
- const changed = yield* files.changedFiles(root, base);
18114
- const found = yield* Effect.forEach(changed, (name) => Effect.gen(function* compare() {
18115
- const before = yield* files.readAtRevision(root, base, name);
18116
- const after = yield* files.readAtRevision(root, HEAD$1, name);
18117
- const lost = lostMarkers(Option.match(before, {
18118
- onNone: () => [],
18119
- onSome: markersOf
18120
- }), Option.match(after, {
18121
- onNone: () => [],
18122
- onSome: markersOf
18123
- }));
18124
- return removalOf(files.join(root, name), lost);
18125
- }), { concurrency: READ_CONCURRENCY$10 });
18126
- return Array$1.flatten(found);
18127
- });
18128
- /** @internal */
18129
- const checkOwnerMarkers = Effect.fn("checkOwnerMarkers")(function* checkOwnerMarkers(root) {
18130
- const base = yield* baseRevision(root);
18131
- if (Option.isNone(base)) return [];
18132
- const removals = yield* removalsSince(root, base.value);
18133
- if (!Array$1.isReadonlyArrayNonEmpty(removals) || (yield* branchCarries(root, base.value, TRAILER$1))) return [];
18134
- return pipe(removals, Array$1.map((removal) => problemInFile(RULE$22)(removal.file, messageOf$1(removal))));
18135
- });
18136
18091
  // src/features/check-owner-names/model/owner-names.ts
18137
18092
  const RULE$21 = "owner-name";
18138
18093
  const TEXT_FILE$1 = /\.(?:[cm]?[jt]sx?|jsonc?|md|ya?ml|toml)$/u;
@@ -18167,7 +18122,7 @@ const ownerOffsets = ({ owner, scopes, source }) => {
18167
18122
  const isAllowed = (start) => pipe(allowed, Array$1.some((span) => span.start <= start && start < span.end));
18168
18123
  return pipe(spansOf(named, source), Array$1.filter(({ start }) => !isAllowed(start)), Array$1.map(({ start }) => start));
18169
18124
  };
18170
- const scopesOf = (manifest) => pipe([...Option.toArray(Option.fromUndefinedOr(manifest.name)), ...namesIn(manifest, DECLARED)], Array$1.flatMap((name) => Option.toArray(scopeOfName(name))), Array$1.dedupe);
18125
+ const scopesOf = (manifest) => pipe([...Option.toArray(Option.fromUndefinedOr(manifest.name)), ...namesIn$1(manifest, DECLARED)], Array$1.flatMap((name) => Option.toArray(scopeOfName(name))), Array$1.dedupe);
18171
18126
  const describedText = (manifest) => pipe([manifest.description ?? "", ...manifest.keywords ?? []], Array$1.join("\n"));
18172
18127
  const manifestProblems$3 = ({ owner, file, manifest }) => pipe(ownerOffsets({
18173
18128
  owner,
@@ -18223,6 +18178,12 @@ const checkOwnerNames = Effect.fn("checkOwnerNames")(function* checkOwnerNames(r
18223
18178
  const found = yield* Effect.forEach(directories, (directory) => workspaceProblems(root, origin.value.owner, directory), { concurrency: 1 });
18224
18179
  return Array$1.flatten(found);
18225
18180
  });
18181
+ // src/shared/lib/branch-trailer.ts
18182
+ /** @internal */
18183
+ const branchCarries = Effect.fn("branchCarries")(function* branchCarries(root, base, trailer) {
18184
+ const messages = yield* (yield* RepositoryFiles).commitMessages(root, base);
18185
+ return pipe(messages, Array$1.some((commit) => trailer.test(commit)));
18186
+ });
18226
18187
  // src/features/check-owner-principles/model/owner-principles.ts
18227
18188
  const RULE$20 = "owner-principle-changed";
18228
18189
  const PRINCIPLE_FILE = /(?:^|\/)(?:skills\/principle-[^/]+\/|PRINCIPLE\.md$)/u;
@@ -18279,7 +18240,6 @@ const checkDocuments = Effect.fn("checkDocuments")(function* checkDocuments(root
18279
18240
  const found = yield* Effect.all([
18280
18241
  checkHiddenUnicode(root),
18281
18242
  checkMarkdownDirectives(root),
18282
- checkOwnerMarkers(root),
18283
18243
  checkOwnerNames(root),
18284
18244
  checkOwnerPrinciples(root)
18285
18245
  ], { concurrency: "unbounded" });
@@ -18297,8 +18257,8 @@ const Plugin = Schema.Struct({
18297
18257
  });
18298
18258
  const Plugins = Schema.Array(Plugin);
18299
18259
  const CompilerOptions = Schema.Struct({ plugins: Schema.optional(Plugins) });
18300
- const Config$1 = Schema.Struct({ compilerOptions: Schema.optional(CompilerOptions) });
18301
- const decodeConfig = Schema.decodeUnknownOption(Schema.fromJsonString(Config$1));
18260
+ const Config = Schema.Struct({ compilerOptions: Schema.optional(CompilerOptions) });
18261
+ const decodeConfig = Schema.decodeUnknownOption(Schema.fromJsonString(Config));
18302
18262
  const MESSAGE$2 = `The \`${PLUGIN}\` plugin reports the Effect diagnostics during the type check, and the \`effecttsgo\` lint rules that msch enables report the same ones again. Set \`"diagnostics": false\` on the plugin so that each finding is reported once, by the lint rules, with the severity msch sets.`;
18303
18263
  const reportsDiagnostics = (plugin) => plugin.name === PLUGIN && plugin.diagnostics !== false;
18304
18264
  const problemsIn$5 = (entry, source) => pipe(decodeConfig(source), Option.flatMap(({ compilerOptions }) => Option.fromUndefinedOr(compilerOptions)), Option.flatMap(({ plugins }) => Option.fromUndefinedOr(plugins)), Option.filter(Array$1.some(reportsDiagnostics)), Option.map(() => ({
@@ -18601,7 +18561,7 @@ const rangeProblem = (entry, source) => (range) => problemAt({
18601
18561
  source,
18602
18562
  index: offsetOf(source, ENGINES_KEY)
18603
18563
  }, `${SUPPORTED} engines.node is "${range}", which admits an older one. Set it to ">=${String(MINIMUM)}".`);
18604
- const isPublished = (manifest) => manifest.private !== true && Predicate.isNotUndefined(manifest.publishConfig);
18564
+ const isPublished = (manifest) => manifest.private !== true && Predicate$1.isNotUndefined(manifest.publishConfig);
18605
18565
  const rangeOf$1 = (manifest) => pipe(Option.fromUndefinedOr(manifest.engines), Option.flatMap(({ node }) => Option.fromUndefinedOr(node)));
18606
18566
  const manifestProblems$1 = (entry, source) => {
18607
18567
  const manifest = decodePackageJson(source);
@@ -18807,7 +18767,7 @@ const decodePlugin = Schema.decodeUnknownOption(PluginManifest);
18807
18767
  const encodeMarketplace = Schema.encodeEffect(Marketplace);
18808
18768
  const marketplaceName = (packageName) => pipe(String$1.toLowerCase(packageName), String$1.replace(/^@/u, ""), String$1.replaceAll(/[^a-z0-9]+/gu, "-"), String$1.replaceAll(/^-+|-+$/gu, ""));
18809
18769
  const ownerOf = (author) => {
18810
- if (Predicate.isString(author)) return { name: author };
18770
+ if (Predicate$1.isString(author)) return { name: author };
18811
18771
  return author;
18812
18772
  };
18813
18773
  const sourceOf = (project) => pipe(project.packageName, Option.filter(() => project.published), Option.match({
@@ -19375,7 +19335,7 @@ const publicLookup = (url) => jsonLookup({
19375
19335
  token: Option.none()
19376
19336
  });
19377
19337
  /** @internal */
19378
- const githubToken = Config.option(Config.String("GH_TOKEN").pipe(Config.orElse(() => Config.String("GITHUB_TOKEN")))).pipe(Effect.orElseSucceed(() => Option.none()));
19338
+ const githubToken = Config$1.option(Config$1.String("GH_TOKEN").pipe(Config$1.orElse(() => Config$1.String("GITHUB_TOKEN")))).pipe(Effect.orElseSucceed(() => Option.none()));
19379
19339
  // src/shared/lib/package-routes.ts
19380
19340
  /** @internal */
19381
19341
  const packageRoutes = Effect.fn("packageRoutes")(function* packageRoutes(root) {
@@ -19833,7 +19793,7 @@ const textsUnder = Effect.fn("textsUnder")(function* textsUnder(directory, label
19833
19793
  const EXPORT_RULE = "uncalled-export";
19834
19794
  const SEPARATOR$4 = "/";
19835
19795
  const NAME_GROUP$1 = "name";
19836
- const ROOT_SUBPATH$1 = ".";
19796
+ const ROOT_SUBPATH = ".";
19837
19797
  const MANIFEST_SUBPATH = "./package.json";
19838
19798
  const WILDCARD = "*";
19839
19799
  const SPECIFIER_ENDS = [
@@ -19849,8 +19809,8 @@ const JSX_IMPORT_SOURCE = "jsxImportSource";
19849
19809
  const RELATIVE = /^\.\//u;
19850
19810
  const DOCUMENT = /\.mdx?$/u;
19851
19811
  const EXPORT_MESSAGE = "is exported, and nothing imports it. Every name that code outside a package can use exists only while something uses it, and fallow never reports what an entry exports as unused. Delete the subpath, or import it from the code that needs it.";
19852
- const entriesOf = ({ name, exports }) => pipe(Option.fromUndefinedOr(name), Option.filter(() => Predicate.isNotUndefined(exports)), Option.map((own) => pipe(exportEntriesOf(exports), Array$1.filter(([subpath]) => subpath !== MANIFEST_SUBPATH && !String$1.includes(WILDCARD)(subpath)), Array$1.map(([subpath, held]) => ({
19853
- specifier: String$1.replace(ROOT_SUBPATH$1, own)(subpath),
19812
+ const entriesOf = ({ name, exports }) => pipe(Option.fromUndefinedOr(name), Option.filter(() => Predicate$1.isNotUndefined(exports)), Option.map((own) => pipe(exportEntriesOf(exports), Array$1.filter(([subpath]) => subpath !== MANIFEST_SUBPATH && !String$1.includes(WILDCARD)(subpath)), Array$1.map(([subpath, held]) => ({
19813
+ specifier: String$1.replace(ROOT_SUBPATH, own)(subpath),
19854
19814
  targets: pipe(targetsIn(held), Array$1.map(String$1.replace(RELATIVE, "")))
19855
19815
  })))), Option.getOrElse(() => []));
19856
19816
  const names = (specifier) => ({ text }) => pipe(SPECIFIER_ENDS, Array$1.some((end) => String$1.includes(`${specifier}${end}`)(text)));
@@ -20015,8 +19975,8 @@ const memberOf$1 = Effect.fn("memberOf")(function* memberOf(request) {
20015
19975
  return pipe(read, Option.map((manifest) => ({
20016
19976
  directory,
20017
19977
  name: Option.fromUndefinedOr(manifest.name),
20018
- library: Predicate.isNotUndefined(manifest.exports) || Predicate.isNotUndefined(manifest.main) || Array$1.contains(crateLibraries, directory),
20019
- entry: manifest.private !== true || Predicate.isNotUndefined(manifest.bin) || pipe(deployed, Array$1.some(isInside(directory)))
19978
+ library: Predicate$1.isNotUndefined(manifest.exports) || Predicate$1.isNotUndefined(manifest.main) || Array$1.contains(crateLibraries, directory),
19979
+ entry: manifest.private !== true || Predicate$1.isNotUndefined(manifest.bin) || pipe(deployed, Array$1.some(isInside(directory)))
20020
19980
  })));
20021
19981
  });
20022
19982
  const linksTo = (members, from) => (name) => pipe(members, Array$1.filter((member) => Option.contains(member.name, name)), Array$1.map(({ directory }) => ({
@@ -20477,7 +20437,7 @@ const readDocument = (root) => (name) => Effect.gen(function* reading() {
20477
20437
  text: found
20478
20438
  })));
20479
20439
  });
20480
- const descriptionOf = (fields) => pipe(Option.fromUndefinedOr(fields["description"]), Option.filter(Predicate.isString), Option.getOrElse(() => ""));
20440
+ const descriptionOf = (fields) => pipe(Option.fromUndefinedOr(fields["description"]), Option.filter(Predicate$1.isString), Option.getOrElse(() => ""));
20481
20441
  const summaryOf = ({ name, text }) => pipe(splitFrontmatter(text), Option.match({
20482
20442
  onNone: () => ({
20483
20443
  name,
@@ -21215,9 +21175,9 @@ const singleTarget = (target) => {
21215
21175
  };
21216
21176
  /** @internal */
21217
21177
  const foldExports = (cases) => (exports) => {
21218
- if (Predicate.isString(exports)) return cases.string(exports);
21178
+ if (Predicate$1.isString(exports)) return cases.string(exports);
21219
21179
  if (Array$1.isArray(exports)) return cases.array(exports);
21220
- if (Predicate.isReadonlyObject(exports)) return cases.object(exports);
21180
+ if (Predicate$1.isReadonlyObject(exports)) return cases.object(exports);
21221
21181
  return cases.other();
21222
21182
  };
21223
21183
  /** @internal */
@@ -21302,14 +21262,14 @@ const compatCasesOf = (manifest) => pipe(nodeFloorOf(manifest), Option.match({
21302
21262
  const loadsAModule = (target) => pipe(exportTargetsOf(target), Array$1.some((file) => pipe(MODULE_EXTENSIONS, Array$1.some((extension) => String$1.endsWith(extension)(file)))));
21303
21263
  const exportedSubpaths = (exports) => pipe(exportEntriesOf(exports), Array$1.filter(([, target]) => loadsAModule(target)), Array$1.map(([subpath]) => subpath));
21304
21264
  const subpathsOf = foldExports({
21305
- string: () => [ROOT_SUBPATH],
21306
- array: () => [ROOT_SUBPATH],
21265
+ string: () => [ROOT_SUBPATH$2],
21266
+ array: () => [ROOT_SUBPATH$2],
21307
21267
  object: exportedSubpaths,
21308
21268
  other: () => []
21309
21269
  });
21310
21270
  const binFilesOf = (bin) => {
21311
- if (Predicate.isUndefined(bin)) return [];
21312
- if (Predicate.isString(bin)) return [bin];
21271
+ if (Predicate$1.isUndefined(bin)) return [];
21272
+ if (Predicate$1.isString(bin)) return [bin];
21313
21273
  return Record.values(bin);
21314
21274
  };
21315
21275
  /** @internal */
@@ -21649,7 +21609,7 @@ const nativeTarballs = Effect.fn("compat.native")(function* nativeTarballs(direc
21649
21609
  // src/features/publish-workspace/model/compat-workspace.ts
21650
21610
  const closureOf = (known, names, seen) => {
21651
21611
  const [name, ...rest] = names;
21652
- if (Predicate.isUndefined(name)) return seen;
21612
+ if (Predicate$1.isUndefined(name)) return seen;
21653
21613
  const found = Record.get(known, name);
21654
21614
  const reached = pipe(seen, Array$1.some((item) => item.manifest.name === name));
21655
21615
  if (Option.isNone(found) || reached) return closureOf(known, rest, seen);
@@ -22083,9 +22043,9 @@ const dependentsOf = (known) => (names) => {
22083
22043
  if (Array$1.isReadonlyArrayEmpty(added)) return names;
22084
22044
  return dependentsOf(known)([...names, ...added]);
22085
22045
  };
22086
- const tokenOf = Config.option(Config.String("GITHUB_APP_TOKEN"));
22046
+ const tokenOf = Config$1.option(Config$1.String("GITHUB_APP_TOKEN"));
22087
22047
  const selfOf = Effect.fn("consumers.self")(function* selfOf() {
22088
- const given = yield* Config.option(Config.String("GITHUB_REPOSITORY"));
22048
+ const given = yield* Config$1.option(Config$1.String("GITHUB_REPOSITORY"));
22089
22049
  if (Option.isSome(given)) return given.value;
22090
22050
  const url = yield* outputOf({
22091
22051
  command: "git",
@@ -22116,7 +22076,7 @@ const namesAffected = Effect.fn("consumers.affected")(function* namesAffected(di
22116
22076
  return dependentsOf(known)(own);
22117
22077
  });
22118
22078
  const unlisted = Effect.fn("consumers.unlisted")(function* unlisted() {
22119
- if (yield* Config.Boolean("GITHUB_ACTIONS").pipe(Config.withDefault(false))) return yield* IncompatiblePackage.make({ message: "The consumers of the new build could not be listed, so none of them was checked" });
22079
+ if (yield* Config$1.Boolean("GITHUB_ACTIONS").pipe(Config$1.withDefault(false))) return yield* IncompatiblePackage.make({ message: "The consumers of the new build could not be listed, so none of them was checked" });
22120
22080
  return yield* Console.log("consumers skipped: no GitHub access to list them");
22121
22081
  });
22122
22082
  const failing = Effect.fn("consumers.failing")(function* failing(found, build, token) {
@@ -22230,8 +22190,8 @@ const Dependency = Schema.Struct({
22230
22190
  digest: Digest
22231
22191
  });
22232
22192
  const BuildDefinition = Schema.Struct({ resolvedDependencies: Schema.Array(Dependency) });
22233
- const Predicate$1 = Schema.Struct({ buildDefinition: BuildDefinition });
22234
- const Statement = Schema.fromJsonString(Schema.Struct({ predicate: Predicate$1 }));
22193
+ const Predicate = Schema.Struct({ buildDefinition: BuildDefinition });
22194
+ const Statement = Schema.fromJsonString(Schema.Struct({ predicate: Predicate }));
22235
22195
  const Envelope = Schema.Struct({ payload: Schema.String });
22236
22196
  const Bundle = Schema.Struct({ dsseEnvelope: Envelope });
22237
22197
  const Attestation = Schema.Struct({
@@ -22244,7 +22204,7 @@ const commitOf = (repository) => (payload) => pipe(Base64.decodeString(payload),
22244
22204
  /** @internal */
22245
22205
  const provenanceCommit = Effect.fn("publish.provenanceCommit")(function* provenanceCommit({ name, version }) {
22246
22206
  const client = yield* HttpClient.HttpClient;
22247
- const repository = yield* Config.String("GITHUB_REPOSITORY");
22207
+ const repository = yield* Config$1.String("GITHUB_REPOSITORY");
22248
22208
  const url = `${ATTESTATIONS}${String$1.replace("/", "%2f")(name)}@${version}`;
22249
22209
  const found = yield* HttpClient.filterStatusOk(client).get(url).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Attestations)), Effect.map(({ attestations }) => Array$1.findFirst(attestations, ({ predicateType }) => SLSA.test(predicateType))), Effect.orElseSucceed(() => Option.none()));
22250
22210
  if (Option.isNone(found)) return Option.none();
@@ -22256,19 +22216,19 @@ const LOOKUP_CONCURRENCY$2 = 4;
22256
22216
  const Versions = Schema.String.pipe(Schema.Array, Schema.fromJsonString);
22257
22217
  /** @internal */
22258
22218
  const tagged = Effect.fn("publish.tagged")(function* tagged(tag) {
22259
- const repository = yield* Config.String("GITHUB_REPOSITORY");
22219
+ const repository = yield* Config$1.String("GITHUB_REPOSITORY");
22260
22220
  return yield* succeeds({
22261
22221
  command: "gh",
22262
22222
  args: ["api", `repos/${repository}/git/ref/tags/${tag}`]
22263
22223
  });
22264
22224
  });
22265
- const tokenEnv = Config.option(Config.String("GITHUB_APP_TOKEN")).pipe(Effect.map(Option.match({
22225
+ const tokenEnv = Config$1.option(Config$1.String("GITHUB_APP_TOKEN")).pipe(Effect.map(Option.match({
22266
22226
  onNone: () => ({}),
22267
22227
  onSome: (value) => ({ GH_TOKEN: value })
22268
22228
  })));
22269
22229
  /** @internal */
22270
22230
  const createTag = Effect.fn("publish.createTag")(function* createTag({ tag, sha }) {
22271
- const repository = yield* Config.String("GITHUB_REPOSITORY");
22231
+ const repository = yield* Config$1.String("GITHUB_REPOSITORY");
22272
22232
  const env = yield* tokenEnv;
22273
22233
  yield* Effect.logInfo(`tagging ${tag} at ${sha}`);
22274
22234
  yield* mustSucceed({
@@ -22400,7 +22360,7 @@ const allTagged = Effect.fn("publish.allTagged")(function* allTagged(directory,
22400
22360
  const workspaceOf = (directory) => Path.Path.pipe(Effect.map((path) => String$1.replace(TRAILING_SLASH, "")(path.normalize(directory))));
22401
22361
  /** @internal */
22402
22362
  const released = Effect.fn("publish.released")(function* released(tag) {
22403
- const repository = yield* Config.String("GITHUB_REPOSITORY");
22363
+ const repository = yield* Config$1.String("GITHUB_REPOSITORY");
22404
22364
  return yield* succeeds({
22405
22365
  command: "gh",
22406
22366
  args: [
@@ -22419,7 +22379,7 @@ const releasedWithAssets = Effect.fn("publish.releasedWithAssets")(function* rel
22419
22379
  "view",
22420
22380
  tag,
22421
22381
  "--repo",
22422
- yield* Config.String("GITHUB_REPOSITORY")
22382
+ yield* Config$1.String("GITHUB_REPOSITORY")
22423
22383
  ];
22424
22384
  if (!(yield* released(tag))) return false;
22425
22385
  return (yield* outputOf({
@@ -22507,7 +22467,7 @@ const pending = Effect.fn("publish.pending")(function* pending(graph, directory)
22507
22467
  });
22508
22468
  /** @internal */
22509
22469
  const dispatchPending = Effect.fn("publish.dispatchPending")(function* dispatchPending(ref) {
22510
- const repository = yield* Config.String("GITHUB_REPOSITORY");
22470
+ const repository = yield* Config$1.String("GITHUB_REPOSITORY");
22511
22471
  const graph = yield* graphTasks;
22512
22472
  const directories = yield* Effect.filter(workspacesOf(graph), (directory) => pending(graph, directory), { concurrency: PLAN_CONCURRENCY });
22513
22473
  yield* Effect.forEach(directories, (directory) => Effect.logInfo(`publishing ${directory}`).pipe(Effect.andThen(mustSucceed({
@@ -22563,7 +22523,7 @@ const selected = (workspaces, directories) => {
22563
22523
  const selectedWorkspaces = dual(ARITY, selected);
22564
22524
  /** @internal */
22565
22525
  const checkChangedCompat = Effect.fn("publish.compatChanged")(function* checkChangedCompat(directories) {
22566
- if (yield* Config.Boolean("GITHUB_ACTIONS").pipe(Config.withDefault(false))) return yield* Console.log(`compat skipped: ${LOCAL_ONLY}`);
22526
+ if (yield* Config$1.Boolean("GITHUB_ACTIONS").pipe(Config$1.withDefault(false))) return yield* Console.log(`compat skipped: ${LOCAL_ONLY}`);
22567
22527
  const graph = yield* graphTasks;
22568
22528
  const chosen = selectedWorkspaces(workspacesOf(graph), directories);
22569
22529
  const checked = yield* Effect.filter(chosen, isChecked, { concurrency: 1 });
@@ -22615,7 +22575,7 @@ const publishNative = Effect.fn("publish.publishNative")(function* publishNative
22615
22575
  });
22616
22576
  const addOptionalDependencies = (directory, names, version) => updatePackageJson(directory, { optionalDependencies: pipe(names, Array$1.map((name) => [name, version]), Record.fromEntries) }).pipe(Effect.withSpan("publish.optionalDependencies"));
22617
22577
  const publishNatives = Effect.fn("publish.publishNatives")(function* publishNatives(directory, manifest) {
22618
- if (Predicate.isUndefined(manifest.native)) return;
22578
+ if (Predicate$1.isUndefined(manifest.native)) return;
22619
22579
  const { binary, targets } = manifest.native;
22620
22580
  const written = yield* Effect.forEach(targets, (target) => writeNative(directory, {
22621
22581
  name: manifest.name,
@@ -22649,7 +22609,7 @@ const publishToNpm = Effect.fn("publish.npm")(function* publishToNpm(directory)
22649
22609
  // src/features/publish-workspace/model/release.ts
22650
22610
  const ASSETS = "release-assets";
22651
22611
  const revisionOf = Effect.fn("publish.revision")(function* revisionOf(manifest) {
22652
- const head = yield* Config.String("GITHUB_SHA");
22612
+ const head = yield* Config$1.String("GITHUB_SHA");
22653
22613
  if (!goesToNpm(manifest)) return head;
22654
22614
  const published = yield* provenanceCommit(manifest);
22655
22615
  return Option.getOrElse(published, () => head);
@@ -22687,7 +22647,7 @@ const createRelease = Effect.fn("publish.createRelease")(function* createRelease
22687
22647
  ...manifest
22688
22648
  });
22689
22649
  const notes = notesOf(directory);
22690
- const repository = yield* Config.String("GITHUB_REPOSITORY");
22650
+ const repository = yield* Config$1.String("GITHUB_REPOSITORY");
22691
22651
  if (yield* succeeds({
22692
22652
  command: "gh",
22693
22653
  args: [
@@ -22720,7 +22680,7 @@ const uploadAssets = Effect.fn("publish.uploadAssets")(function* uploadAssets({
22720
22680
  });
22721
22681
  const files = yield* assetsIn(directory);
22722
22682
  if (Array$1.isReadonlyArrayEmpty(files) || (yield* releasedWithAssets(tag))) return;
22723
- const repository = yield* Config.String("GITHUB_REPOSITORY");
22683
+ const repository = yield* Config$1.String("GITHUB_REPOSITORY");
22724
22684
  yield* createRelease({
22725
22685
  directory,
22726
22686
  manifest
@@ -22776,7 +22736,7 @@ const taggedError = Schema.TaggedError;
22776
22736
  var RepositoriesUnlisted = class extends taggedError()("RepositoriesUnlisted", { message: Schema.String }) {};
22777
22737
  /** @internal */
22778
22738
  const ownRepository = Effect.fn("ownRepository")(function* ownRepository() {
22779
- const given = yield* Config.option(Config.String("GITHUB_REPOSITORY"));
22739
+ const given = yield* Config$1.option(Config$1.String("GITHUB_REPOSITORY"));
22780
22740
  if (Option.isSome(given)) return given;
22781
22741
  const remote = yield* finished({
22782
22742
  command: REMOTE,
@@ -22989,7 +22949,7 @@ const resolveReference = (reference) => Match.value(reference).pipe(Match.discri
22989
22949
  }));
22990
22950
  // src/features/check-references/model/unresolved-references.ts
22991
22951
  const LOOKUP_CONCURRENCY$1 = 4;
22992
- const occurrencesIn = (links) => pipe(links, Array$1.flatMap(({ path, line, destination }) => pipe(referenceOf(destination), Option.map((reference) => ({
22952
+ const occurrencesIn = (links) => pipe(links, Array$1.flatMap(({ path, line, destination }) => pipe(referenceOf$2(destination), Option.map((reference) => ({
22993
22953
  file: path,
22994
22954
  line,
22995
22955
  reference
@@ -23014,7 +22974,7 @@ const unresolvedOf = (outcomes) => ({ file, line, reference }) => {
23014
22974
  const unresolvedReferences = Effect.fn("unresolvedReferences")(function* unresolvedReferences(root) {
23015
22975
  const files = yield* RepositoryFiles;
23016
22976
  const texts = yield* markdownTexts(root);
23017
- const links = yield* linksIn(pipe(texts, Array$1.map(({ file, source }) => ({
22977
+ const links = yield* linksIn$1(pipe(texts, Array$1.map(({ file, source }) => ({
23018
22978
  path: files.relative(root, file),
23019
22979
  text: source
23020
22980
  }))));
@@ -23121,7 +23081,7 @@ const answered = (target, files, status) => {
23121
23081
  const sentOrKept = Effect.fn("sentOrKept")(function* sentOrKept(target, files, tallies) {
23122
23082
  const key = yield* Option.match(target.apiKeyEnv, {
23123
23083
  onNone: () => Effect.succeed(Option.none()),
23124
- onSome: (name) => Config.option(Config.Redacted(name)).pipe(Effect.orElseSucceed(() => Option.none()))
23084
+ onSome: (name) => Config$1.option(Config$1.Redacted(name)).pipe(Effect.orElseSucceed(() => Option.none()))
23125
23085
  });
23126
23086
  const body = yield* bodyOf(tallies);
23127
23087
  const sent = yield* posted({