@r_masseater/msch 0.134.1 → 0.141.2

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 (55) hide show
  1. package/dist/addon-tasks.mjs +1 -1
  2. package/dist/build-workspace-settings-Dv5SXt_j.mjs +648 -0
  3. package/dist/build-workspace-settings-Dv5SXt_j.mjs.map +1 -0
  4. package/dist/cargo-inputs.mjs +1 -1
  5. package/dist/cli.mjs +708 -750
  6. package/dist/cli.mjs.map +1 -1
  7. package/dist/config.d.mts +13 -37
  8. package/dist/config.mjs +335 -23
  9. package/dist/config.mjs.map +1 -1
  10. package/dist/decision-rules-CqgOVodl.mjs +43 -0
  11. package/dist/decision-rules-CqgOVodl.mjs.map +1 -0
  12. package/dist/decision-rules.d.mts +2 -1
  13. package/dist/decision-rules.mjs +1 -1
  14. package/dist/{dependencies-Bjn3xWkq.mjs → dependencies-DgltkhvK.mjs} +2 -2
  15. package/dist/{dependencies-Bjn3xWkq.mjs.map → dependencies-DgltkhvK.mjs.map} +1 -1
  16. package/dist/{derive-cargo-inputs-BLMqkRS3.mjs → derive-cargo-inputs-DbMOBcGP.mjs} +3 -3
  17. package/dist/{derive-cargo-inputs-BLMqkRS3.mjs.map → derive-cargo-inputs-DbMOBcGP.mjs.map} +1 -1
  18. package/dist/{ignored-directories-CaTFIbjo.mjs → ignored-directories-BGiOSvNx.mjs} +2 -2
  19. package/dist/{ignored-directories-CaTFIbjo.mjs.map → ignored-directories-BGiOSvNx.mjs.map} +1 -1
  20. package/dist/index-DOkaGaUe.d.mts +25 -0
  21. package/dist/library.mjs +2 -2
  22. package/dist/lint.d.mts +38 -2
  23. package/dist/lint.mjs +20 -1
  24. package/dist/lint.mjs.map +1 -0
  25. package/dist/oxlint.mjs +2 -2
  26. package/dist/{problem-Dk1svgmC.mjs → problem-CkDaLJxX.mjs} +2 -2
  27. package/dist/{problem-Dk1svgmC.mjs.map → problem-CkDaLJxX.mjs.map} +1 -1
  28. package/dist/{published-Cgl1qeYH.mjs → published-BrX24558.mjs} +269 -8
  29. package/dist/published-BrX24558.mjs.map +1 -0
  30. package/dist/{repository-files-C_GzAnYp.mjs → repository-files-CX48nfE5.mjs} +4 -5
  31. package/dist/repository-files-CX48nfE5.mjs.map +1 -0
  32. package/dist/{define-lint-preset-_bDnJMcY.mjs → repository-text-CpD8Z1kp.mjs} +355 -380
  33. package/dist/repository-text-CpD8Z1kp.mjs.map +1 -0
  34. package/dist/traced-rules.config-CnYNZrOa.mjs +8 -0
  35. package/dist/traced-rules.config-CnYNZrOa.mjs.map +1 -0
  36. package/dist/workspace-settings.mjs +2 -434
  37. package/dist/zenn-markdown.config-uksui7Go.mjs +77 -0
  38. package/dist/zenn-markdown.config-uksui7Go.mjs.map +1 -0
  39. package/package.json +13 -13
  40. package/skills/msch-checks/SKILL.md +5 -5
  41. package/skills/msch-publishing/SKILL.md +1 -1
  42. package/skills/msch-repository-config/SKILL.md +19 -18
  43. package/skills/msch-workspace-settings/SKILL.md +17 -9
  44. package/src/app/vite.d.ts +5 -8
  45. package/dist/define-lint-preset-_bDnJMcY.mjs.map +0 -1
  46. package/dist/index-_y7Igwy0.d.mts +0 -321
  47. package/dist/published-Cgl1qeYH.mjs.map +0 -1
  48. package/dist/repository-files-C_GzAnYp.mjs.map +0 -1
  49. package/dist/repository-text-BPhi-pct.mjs +0 -331
  50. package/dist/repository-text-BPhi-pct.mjs.map +0 -1
  51. package/dist/required-stack-BLSiAmpx.mjs +0 -188
  52. package/dist/required-stack-BLSiAmpx.mjs.map +0 -1
  53. package/dist/workspace-projects-Zg078aA1.mjs +0 -269
  54. package/dist/workspace-projects-Zg078aA1.mjs.map +0 -1
  55. package/dist/workspace-settings.mjs.map +0 -1
@@ -0,0 +1,77 @@
1
+ import { t as decision_rules_default } from "./decision-rules-CqgOVodl.mjs";
2
+ import { Array, Option, Record, String, Struct, pipe } from "effect";
3
+ import { presets } from "@effect/tsgo/oxlint-presets";
4
+ import htmlReact from "@html-eslint/eslint-plugin-react";
5
+ import eslintReact from "@r_masseater/oxlint-typed-rules/react";
6
+ import reactHooks from "eslint-plugin-react-hooks";
7
+ import markdown from "@textlint/textlint-plugin-markdown";
8
+ // src/features/define-lint-preset/config/lint.config.ts
9
+ const asErrors = (names) => Record.fromEntries(pipe(names, Array.map((name) => [name, "error"])));
10
+ const allRulesOf = ({ prefix, rules }) => asErrors(pipe(Record.keys(rules), Array.map((rule) => `${prefix}/${rule}`)));
11
+ const reactHooksRules = asErrors(pipe(Struct.keys(reactHooks.configs["recommended-latest"].rules), Array.map(String.replace("react-hooks/", "react-hooks-js/"))));
12
+ const eslintReactRuleNames = pipe(Record.keys(eslintReact.configs["strict-typescript"].rules ?? {}), Array.filter((name) => !(String.replace("@eslint-react/", "react-hooks-js/")(name) in reactHooksRules)));
13
+ const effectRuleNames = pipe(Record.values(presets), Array.flatMap((preset) => Struct.keys(preset.rules ?? {})));
14
+ const pluginRules = {
15
+ ...asErrors(Record.keys(htmlReact.configs.all.rules ?? {})),
16
+ ...reactHooksRules,
17
+ ...asErrors(eslintReactRuleNames),
18
+ ...asErrors(effectRuleNames)
19
+ };
20
+ const decisionPluginName = decision_rules_default.meta.name;
21
+ const decisionRules = allRulesOf({
22
+ prefix: decisionPluginName,
23
+ rules: decision_rules_default.rules
24
+ });
25
+ const decisionTestRules = pipe(decisionRules, Record.map(() => "off"));
26
+ const shadcnRestyleContracts = [{
27
+ pattern: "^Table(Head|Cell)$",
28
+ allow: ["text-alignment", "fvn-spacing"]
29
+ }, {
30
+ pattern: "^TableCaption$",
31
+ allow: [
32
+ "caption",
33
+ "text-alignment",
34
+ "mt-*",
35
+ "mb-*"
36
+ ]
37
+ }];
38
+ // src/features/define-lint-preset/config/zenn-markdown.config.ts
39
+ const CONTAINER_FENCE = ":::";
40
+ const LINE_BREAK = "\n";
41
+ const BLANK = " ";
42
+ const IMAGE_SIZE = /(?<=!\[[^\]]*\]\(\S+) =\d*x\d*(?=\))/gu;
43
+ const NEXT = 1;
44
+ const spaces = (text) => String.repeat(text.length)(BLANK);
45
+ const sizeIndices = (line) => pipe(Array.fromIterable(String.matchAll(IMAGE_SIZE)(line)), Array.flatMap((found) => pipe(Option.fromUndefinedOr(found.index), Option.map((start) => pipe(Array.head(found), Option.map((size) => Array.range(start, start + size.length - NEXT)), Option.getOrElse(() => []))), Option.getOrElse(() => []))));
46
+ const withoutImageSizes = (line) => {
47
+ const blankAt = sizeIndices(line);
48
+ return pipe(String.split("")(line), Array.map((character, index) => {
49
+ if (Array.contains(blankAt, index)) return BLANK;
50
+ return character;
51
+ }), Array.join(""));
52
+ };
53
+ const blankedLine = (line) => {
54
+ if (String.startsWith(CONTAINER_FENCE)(line)) return spaces(line);
55
+ return withoutImageSizes(line);
56
+ };
57
+ const blanked = (text) => pipe(text, String.split(LINE_BREAK), Array.map(blankedLine), Array.join(LINE_BREAK));
58
+ var ZennMarkdownProcessor = class {
59
+ markdown;
60
+ constructor(options) {
61
+ this.markdown = new markdown.Processor(options);
62
+ }
63
+ availableExtensions() {
64
+ return this.markdown.availableExtensions();
65
+ }
66
+ processor(extension) {
67
+ const { preProcess, postProcess } = this.markdown.processor(extension);
68
+ return {
69
+ preProcess: (text, filePath) => preProcess(blanked(text), filePath),
70
+ postProcess
71
+ };
72
+ }
73
+ };
74
+ const zennMarkdown = { Processor: ZennMarkdownProcessor };
75
+ export { decisionTestRules as a, decisionRules as i, allRulesOf as n, pluginRules as o, decisionPluginName as r, shadcnRestyleContracts as s, zennMarkdown as t };
76
+
77
+ //# sourceMappingURL=zenn-markdown.config-uksui7Go.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zenn-markdown.config-uksui7Go.mjs","names":["Rec","Arr","Str","effectPresets","decisionPlugin","Str","Arr"],"sources":["../src/features/define-lint-preset/config/lint.config.ts","../src/features/define-lint-preset/config/zenn-markdown.config.ts"],"sourcesContent":["import { presets as effectPresets } from \"@effect/tsgo/oxlint-presets\";\nimport htmlReact from \"@html-eslint/eslint-plugin-react\";\nimport eslintReact from \"@r_masseater/oxlint-typed-rules/react\";\nimport { Array as Arr, Record as Rec, String as Str, Struct, pipe } from \"effect\";\nimport reactHooks from \"eslint-plugin-react-hooks\";\n\nimport decisionPlugin from \"./decision-rules.ts\";\n\nconst asErrors = (names: readonly string[]): Readonly<Record<string, \"error\">> =>\n Rec.fromEntries(\n pipe(\n names,\n Arr.map((name) => [name, \"error\"] as const),\n ),\n );\n\nexport const allRulesOf = ({\n prefix,\n rules,\n}: Readonly<{ prefix: string; rules: Readonly<Record<string, unknown>> }>): Readonly<\n Record<string, \"error\">\n> =>\n asErrors(\n pipe(\n Rec.keys(rules),\n Arr.map((rule) => `${prefix}/${rule}`),\n ),\n );\n\nconst reactHooksRuleNames = pipe(\n Struct.keys(reactHooks.configs[\"recommended-latest\"].rules),\n Arr.map(Str.replace(\"react-hooks/\", \"react-hooks-js/\")),\n);\n\nconst reactHooksRules = asErrors(reactHooksRuleNames);\n\nconst eslintReactRuleNames = pipe(\n Rec.keys(eslintReact.configs[\"strict-typescript\"].rules ?? {}),\n Arr.filter(\n (name) => !(Str.replace(\"@eslint-react/\", \"react-hooks-js/\")(name) in reactHooksRules),\n ),\n);\n\nconst effectRuleNames = pipe(\n Rec.values(effectPresets),\n Arr.flatMap((preset) => Struct.keys(preset.rules ?? {})),\n);\n\nexport const pluginRules: Readonly<Record<string, \"error\">> = {\n ...asErrors(Rec.keys(htmlReact.configs.all.rules ?? {})),\n ...reactHooksRules,\n ...asErrors(eslintReactRuleNames),\n ...asErrors(effectRuleNames),\n};\n\nexport const decisionPluginName = decisionPlugin.meta.name;\n\nexport const decisionRules = allRulesOf({\n prefix: decisionPluginName,\n rules: decisionPlugin.rules,\n});\n\nexport const decisionTestRules = pipe(\n decisionRules,\n Rec.map(() => \"off\" as const),\n);\n\nexport const shadcnRestyleContracts = [\n { pattern: \"^Table(Head|Cell)$\", allow: [\"text-alignment\", \"fvn-spacing\"] },\n { pattern: \"^TableCaption$\", allow: [\"caption\", \"text-alignment\", \"mt-*\", \"mb-*\"] },\n];\n\nexport { webGuidanceRules } from \"./web-guidance.config.ts\";\n","import markdown from \"@textlint/textlint-plugin-markdown\";\nimport type { TextlintPluginOptions } from \"@textlint/types\";\nimport { Array as Arr, Option, String as Str, pipe } from \"effect\";\n\nconst CONTAINER_FENCE = \":::\";\nconst LINE_BREAK = \"\\n\";\nconst BLANK = \" \";\nconst IMAGE_SIZE = /(?<=!\\[[^\\]]*\\]\\(\\S+) =\\d*x\\d*(?=\\))/gu;\nconst NEXT = 1;\n\ntype MarkdownProcessor = InstanceType<typeof markdown.Processor>;\ntype Processing = ReturnType<MarkdownProcessor[\"processor\"]>;\n\nconst spaces = (text: string): string => Str.repeat(text.length)(BLANK);\n\nconst sizeIndices = (line: string): readonly number[] =>\n pipe(\n Arr.fromIterable(Str.matchAll(IMAGE_SIZE)(line)),\n Arr.flatMap((found) =>\n pipe(\n Option.fromUndefinedOr(found.index),\n Option.map((start) =>\n pipe(\n Arr.head(found),\n Option.map((size) => Arr.range(start, start + size.length - NEXT)),\n Option.getOrElse((): readonly number[] => []),\n ),\n ),\n Option.getOrElse((): readonly number[] => []),\n ),\n ),\n );\n\nconst withoutImageSizes = (line: string): string => {\n const blankAt = sizeIndices(line);\n return pipe(\n Str.split(\"\")(line),\n Arr.map((character, index) => {\n if (Arr.contains(blankAt, index)) {\n return BLANK;\n }\n return character;\n }),\n Arr.join(\"\"),\n );\n};\n\nconst blankedLine = (line: string): string => {\n if (Str.startsWith(CONTAINER_FENCE)(line)) {\n return spaces(line);\n }\n return withoutImageSizes(line);\n};\n\nconst blanked = (text: string): string =>\n pipe(text, Str.split(LINE_BREAK), Arr.map(blankedLine), Arr.join(LINE_BREAK));\n\nclass ZennMarkdownProcessor {\n private readonly markdown: MarkdownProcessor;\n\n public constructor(options?: TextlintPluginOptions) {\n this.markdown = new markdown.Processor(options);\n }\n\n public availableExtensions(): string[] {\n return this.markdown.availableExtensions();\n }\n\n public processor(extension: string): Processing {\n const { preProcess, postProcess } = this.markdown.processor(extension);\n return {\n preProcess: (text, filePath) => preProcess(blanked(text), filePath),\n postProcess,\n };\n }\n}\n\nexport const zennMarkdown = { Processor: ZennMarkdownProcessor };\n"],"mappings":";;;;;;;;AAQA,MAAM,YAAY,UAChBA,OAAI,YACF,KACE,OACAC,MAAI,KAAK,SAAS,CAAC,MAAM,OAAO,CAAU,CAC5C,CACF;AAEF,MAAa,cAAc,EACzB,QACA,YAIA,SACE,KACED,OAAI,KAAK,KAAK,GACdC,MAAI,KAAK,SAAS,GAAG,OAAO,GAAG,MAAM,CACvC,CACF;AAOF,MAAM,kBAAkB,SALI,KAC1B,OAAO,KAAK,WAAW,QAAQ,qBAAqB,CAAC,KAAK,GAC1DA,MAAI,IAAIC,OAAI,QAAQ,gBAAgB,iBAAiB,CAAC,CAGL,CAAC;AAEpD,MAAM,uBAAuB,KAC3BF,OAAI,KAAK,YAAY,QAAQ,oBAAoB,CAAC,SAAS,CAAC,CAAC,GAC7DC,MAAI,QACD,SAAS,EAAEC,OAAI,QAAQ,kBAAkB,iBAAiB,CAAC,CAAC,IAAI,KAAK,gBACxE,CACF;AAEA,MAAM,kBAAkB,KACtBF,OAAI,OAAOG,OAAa,GACxBF,MAAI,SAAS,WAAW,OAAO,KAAK,OAAO,SAAS,CAAC,CAAC,CAAC,CACzD;AAEA,MAAa,cAAiD;CAC5D,GAAG,SAASD,OAAI,KAAK,UAAU,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC;CACvD,GAAG;CACH,GAAG,SAAS,oBAAoB;CAChC,GAAG,SAAS,eAAe;AAC7B;AAEA,MAAa,qBAAqBI,uBAAe,KAAK;AAEtD,MAAa,gBAAgB,WAAW;CACtC,QAAQ;CACR,OAAOA,uBAAe;AACxB,CAAC;AAED,MAAa,oBAAoB,KAC/B,eACAJ,OAAI,UAAU,KAAc,CAC9B;AAEA,MAAa,yBAAyB,CACpC;CAAE,SAAS;CAAsB,OAAO,CAAC,kBAAkB,aAA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AS,oBAAoB;CAC3C;CAEO,UAAU,WAA+B;EAC9C,MAAM,EAAE,YAAY,gBAAgB,KAAK,SAAS,UAAU,SAAS;EACrE,OAAO;GACL,aAAa,MAAM,aAAa,WAAW,QAAQ,IAAI,GAAG,QAAQ;GAClE;EACF;CACF;AACF;AAEA,MAAa,eAAe,EAAE,WAAW,sBAAsB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r_masseater/msch",
3
- "version": "0.134.1",
3
+ "version": "0.141.2",
4
4
  "description": "A check policy for repositories: points every finite value set and object shape at its one owner, and ships the oxlint preset of plugins and rules.",
5
5
  "keywords": [
6
6
  "lint",
@@ -72,14 +72,14 @@
72
72
  "@pnpm/workspace.workspace-manifest-reader": "^1100.3.4",
73
73
  "@pnpm/workspace.workspace-manifest-writer": "^1100.2.13",
74
74
  "@r_masseater/cc-effect-hooks": ">=0.1.0",
75
- "@r_masseater/fu4": "^0.5.10",
76
- "@r_masseater/masseater-utils": ">=0.10.0",
77
- "@r_masseater/mdlct": ">=0.3.0",
78
- "@r_masseater/oxlint-plugin-decision": "^0.10.9",
79
- "@r_masseater/oxlint-typed-rules": "^0.7.3",
80
- "@r_masseater/textlint-rule-preset-ja": "^0.4.10",
81
- "@r_masseater/wism": "^0.5.10",
82
- "@r_masseater/y8": "^0.9.11",
75
+ "@r_masseater/fu4": "^0.6.4",
76
+ "@r_masseater/masseater-utils": ">=0.18.0",
77
+ "@r_masseater/mdlct": ">=0.6.0",
78
+ "@r_masseater/oxlint-plugin-decision": "^0.12.1",
79
+ "@r_masseater/oxlint-typed-rules": "^0.7.8",
80
+ "@r_masseater/textlint-rule-preset-ja": "^0.5.0",
81
+ "@r_masseater/wism": "^0.6.4",
82
+ "@r_masseater/y8": "^0.11.0",
83
83
  "@shadcn/lint": "^0.2.5",
84
84
  "@tanstack/intent": "^0.5.6",
85
85
  "@textlint-ja/textlint-rule-preset-ai-writing": "^1.7.2",
@@ -95,6 +95,7 @@
95
95
  "oxlint-plugin-eslint": "^1.96.0",
96
96
  "rolldown": "^1.3.4",
97
97
  "semver": "^7.8.6",
98
+ "sentence-splitter": "^5.1.0",
98
99
  "sql-parser-cst": "^0.46.1",
99
100
  "textlint-filter-rule-allowlist": "^4.0.0",
100
101
  "textlint-filter-rule-comments": "^1.3.0",
@@ -110,10 +111,9 @@
110
111
  "@effect/platform-node-shared": "4.2.0",
111
112
  "@effect/tsgo": "0.75.0",
112
113
  "@effect/vitest": "4.2.0",
113
- "@masseater.dev/lint-host": "0.0.0",
114
114
  "@masseater.dev/path-kit": "0.0.0",
115
- "@r_masseater/h56m": "0.4.11",
116
- "@r_masseater/vite-plus-adopt": "0.34.0",
115
+ "@r_masseater/h56m": "0.5.4",
116
+ "@r_masseater/vite-plus-adopt": "0.37.1",
117
117
  "@textlint/kernel": "16.1.4",
118
118
  "@types/node": "26.6.11",
119
119
  "@types/semver": "7.8.0",
@@ -132,7 +132,7 @@
132
132
  "@effect/platform-node-shared": "^4.1.0",
133
133
  "@effect/tsgo": ">=0.74.3",
134
134
  "@r_masseater/h56m": ">=0.3.0",
135
- "@r_masseater/vite-plus-adopt": ">=0.29.0",
135
+ "@r_masseater/vite-plus-adopt": ">=0.37.1",
136
136
  "effect": "^4.1.0",
137
137
  "tsrs": ">=7.1.0-beta.tsrs7",
138
138
  "vite": "*",
@@ -8,7 +8,7 @@ description: >
8
8
  metadata:
9
9
  type: core
10
10
  library: "@r_masseater/msch"
11
- library_version: 0.134.1
11
+ library_version: 0.141.2
12
12
  sources:
13
13
  - bin/msch.ts
14
14
  - src/app
@@ -38,13 +38,13 @@ The lint preset `@r_masseater/msch/lint` reports the rest through `vp lint`, inc
38
38
 
39
39
  Every overrides, patchedDependencies and packageExtensions entry in the root `pnpm-workspace.yaml` and every `[patch]` entry in the root `Cargo.toml` ends its line with `# exit: <condition>`. msch reports an entry without a condition it can check, and a deviation written anywhere else.
40
40
 
41
- Run `vp exec msch exits` at the repository root to look the conditions up on npm, crates.io and GitHub. It exits with 1 when a condition is met or could not be checked, and `--json` prints the results as JSON. The root `daily` task runs it and passes whatever it finds, because the daily audit reads the met conditions from the log and a failed `daily` stays a sign of a broken job.
41
+ Run `vp exec msch exits` at the repository root to look the conditions up on npm, crates.io and GitHub. It exits with 1 when a condition is met or could not be checked. The root `daily` task runs it and passes whatever it finds, because the daily audit reads the met conditions from the log and a failed `daily` stays a sign of a broken job.
42
42
 
43
43
  For a met condition, remove the entry and its patch file and run verify. If verify still needs the deviation, keep it and replace the condition with the next event that could end it.
44
44
 
45
45
  ## Judgment checks
46
46
 
47
- A rule that no code can decide, such as a README that copies what the code shows or two skills that state the same rule, is judged by a model. `vp exec msch judge <cache directory>` lists every pair of a rule and a file, skips the pairs whose verdict is cached, judges the rest and reports each violation as a finding. `--json` prints the findings as JSON. It exits with 1 when it finds a violation or cannot decide a pair.
47
+ A rule that no code can decide, such as a README that copies what the code shows or two skills that state the same rule, is judged by a model. `vp exec msch judge <cache directory>` lists every pair of a rule and a file, skips the pairs whose verdict is cached, judges the rest and reports each violation as a finding. It exits with 1 when it finds a violation or cannot decide a pair.
48
48
 
49
49
  Run it from a cloud session as a step of the daily audit, not in `verify`, a hook or CI, because a model does not answer the same way twice. The cache directory must live outside the repository, such as a folder of the project, so that nothing is committed and every repository shares one cache. The cache key holds the rule, the model, the prompt version, the target file and the context files, so a verdict changes only when one of them changes.
50
50
 
@@ -72,7 +72,7 @@ A workspace that reimplements something records what it follows in the `upstream
72
72
 
73
73
  `reviewed` is the last upstream version whose changes were decided on, written without a `v`. `verdict` is `adopted` when the workspace now follows that version, `skipped` when the changes were read and nothing was taken, and `changed` when the way the workspace follows the upstream changed. `reason` says why. msch reports a record it cannot read as `upstream-record`.
74
74
 
75
- Run `vp exec msch upstream` at the repository root to look up the releases after `reviewed`. It exits with 1 when an upstream released since or could not be checked, and `--json` prints the results as JSON. The root `daily` task runs it, with the same token handling as `msch refs`, and passes whatever it finds, as with `msch exits`, because the daily audit decides each release from the log. Prereleases count only when `reviewed` is one.
75
+ Run `vp exec msch upstream` at the repository root to look up the releases after `reviewed`. It exits with 1 when an upstream released since or could not be checked. The root `daily` task runs it, with the same token handling as `msch refs`, and passes whatever it finds, as with `msch exits`, because the daily audit decides each release from the log. Prereleases count only when `reviewed` is one.
76
76
 
77
77
  To clear a report, read the upstream changes, decide, and write the version you decided on, the verdict and the reason into the record.
78
78
 
@@ -80,7 +80,7 @@ To clear a report, read the upstream changes, decide, and write the version you
80
80
 
81
81
  A Markdown link whose destination is `github:<owner>/<repo>[/<path>][#<symbol>]` or `npm:<package>[@<version>]` points at a source. The version is an exact version or a dist-tag, not a range. The `docs/source-reference` rule of the y8 markdown check reports a destination in a form that cannot be looked up. A link to a path of a branch on github.com (`https://github.com/<owner>/<repo>/blob/<branch>/<path>`) is checked as the same kind of pointer, so a README can keep a link that readers can click.
82
82
 
83
- Run `vp exec msch refs` at the repository root to look each target up on GitHub and npm. It reports a repository that moved or was archived, a path or symbol that is gone, a package or version that is not published and a deprecated version, and exits with 1 when it finds one or cannot check one. `--json` prints the results as JSON. The root `daily` task runs it after the native addons of the repository are built, because it reads Markdown through y8, and fails when it fails, and a private repository needs a token to be readable. The daily task reads `GITHUB_APP_TOKEN`, which the credentials action writes to `GITHUB_ENV`, and falls back to `GH_TOKEN`, which a workflow sets to `github.token`. `github.token` reads only the repository the workflow runs in and public ones.
83
+ Run `vp exec msch refs` at the repository root to look each target up on GitHub and npm. It reports a repository that moved or was archived, a path or symbol that is gone, a package or version that is not published and a deprecated version, and exits with 1 when it finds one or cannot check one. The root `daily` task runs it after the native addons of the repository are built, because it reads Markdown through y8, and fails when it fails, and a private repository needs a token to be readable. The daily task reads `GITHUB_APP_TOKEN`, which the credentials action writes to `GITHUB_ENV`, and falls back to `GH_TOKEN`, which a workflow sets to `github.token`. `github.token` reads only the repository the workflow runs in and public ones.
84
84
 
85
85
  ## Versions of published packages
86
86
 
@@ -8,7 +8,7 @@ description: >
8
8
  metadata:
9
9
  type: core
10
10
  library: "@r_masseater/msch"
11
- library_version: 0.134.1
11
+ library_version: 0.141.2
12
12
  sources:
13
13
  - src/app/publish-command.ts
14
14
  - src/features/publish-workspace
@@ -2,13 +2,13 @@
2
2
  name: msch-repository-config
3
3
  description: >
4
4
  Use when creating or changing the root vite.config.ts of a repository that
5
- uses @r_masseater/msch: repositoryConfig, workspaceSettings, the lint preset
6
- and its rule sets, extra root tasks, h56m allowances and textlint words. Not
7
- for settings that apply to one workspace only.
5
+ uses @r_masseater/msch: repositoryConfig, the lint preset and its rule sets,
6
+ extra root tasks, h56m allowances and textlint words. Not for settings that
7
+ apply to one workspace only.
8
8
  metadata:
9
9
  type: core
10
10
  library: "@r_masseater/msch"
11
- library_version: 0.134.1
11
+ library_version: 0.141.2
12
12
  sources:
13
13
  - src/app/repository-config.ts
14
14
  - src/app/repository-tasks.ts
@@ -26,25 +26,24 @@ The root `vite.config.ts` builds the whole configuration with `repositoryConfig`
26
26
 
27
27
  ## Setup
28
28
 
29
- 1. Read the workspace settings, then spread `repositoryConfig` into `defineConfig`. Write `msch` beside it as a literal.
29
+ 1. Spread what `repositoryConfig` builds from the repository root into `defineConfig`. Write `msch` beside it as a literal.
30
30
 
31
31
  ```ts
32
32
  import { repositoryConfig } from "@r_masseater/msch/config";
33
- import { workspaceSettings } from "@r_masseater/msch/workspace-settings";
34
33
  import { defineConfig } from "vite-plus";
35
34
 
36
- const workspace = await workspaceSettings({ root: import.meta.dirname });
37
-
38
35
  export default defineConfig({
39
- ...repositoryConfig({
40
- workspace,
36
+ ...(await repositoryConfig({
37
+ root: import.meta.dirname,
41
38
  textlint: { properNouns: ["個人情報保護法"] },
42
39
  run: { tasks: { "db-check-all": "vp run -r db:check" } },
43
- }),
40
+ })),
44
41
  msch: { comments: { allow: [] } },
45
42
  });
46
43
  ```
47
44
 
45
+ It reads the workspaces from the root, and the Rust inputs of the cargo tasks when the root has a `Cargo.toml`.
46
+
48
47
  2. Add `@r_masseater/msch/vite` to `types` in `tsconfig.json`. `defineConfig` then types `msch` and the vite-plus-adopt sections.
49
48
 
50
49
  ## What repositoryConfig returns
@@ -53,11 +52,12 @@ It returns `lint`, `fmt`, `staged`, `test` and `run`.
53
52
  It also returns the vite-plus-adopt sections `commitlint`, `dependencyRules`, `fallow`, `h56m` and `textlint`.
54
53
  Its `gitHooks` section makes `vp install` write the git hooks to `.vite-hooks/`: `vp staged` and `msch --staged` before a commit, the commit message check, `msch --pre-push` and `verify` before a push, and `vp install` whenever the branch moves, so a checkout never runs on stale dependencies or skills.
55
54
  `msch --pre-push` merges new commits of the default branch and the pushed branch from `origin` and stops the push, so the next push checks the merged tree.
56
- The `gitHooks` option replaces the commands of the hooks it names, and `GIT_HOOKS` from `@r_masseater/msch/config` holds the defaults.
55
+ The `gitHooks` option replaces the commands of the hooks it names.
57
56
  The hooks are generated, so the repository does not commit them.
58
57
  The `wism` section declares the layout of workspaces, crates and skills.
59
58
 
60
59
  wism checks the layout and imports of every member workspace, Rust crate and skill.
60
+ The root tasks `y8`, `wism` and `fu4` run those tools on the `y8`, `wism` and `fu4` sections, and `verify` depends on them.
61
61
  A Claude Code plugin, a workspace with `.claude-plugin/plugin.json`, is not held to the FSD layout, because Claude Code fixes where its hooks, skills and commands go.
62
62
 
63
63
  A mod, a hooks module that `hooks/hooks.json` lists under `modules`, imports only its own files by relative path and `claude-code`, so it imports a package such as Effect from `vendor/<package>.js` beside it, as `import { Effect } from "./vendor/effect.js"`. msch's `mod-vendor` check bundles the names the mod imports out of the installed package, unminified and one file per module of the package, writes them into `vendor/` with a `<package>.d.ts` that re-exports the package's types, and fails until the result is committed. Claude Code reads at most 1 MiB in one file and 8 MiB in one mod, so the check fails above those as well.
@@ -76,7 +76,7 @@ It records passes under `node_modules/.cache/msch/changed`; delete that director
76
76
  `msch` checks the pnpm overrides again only when a file that pnpm resolves from changed since they last passed.
77
77
  It records that pass under `node_modules/.cache/msch/overrides`; delete that directory to check them again.
78
78
  The lint overrides already relax the rules for shadcn/ui components, public entries and deploy entries.
79
- They also apply `decisionTestRules` to `*.test.ts`.
79
+ They also apply the decision rules for tests to `*.test.ts`.
80
80
 
81
81
  ## Checks cannot be turned off
82
82
 
@@ -99,18 +99,19 @@ When a check reports something that is right, fix the code or text. When the che
99
99
 
100
100
  | Option | Holds |
101
101
  | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
102
- | `workspace` | The result of `workspaceSettings` |
102
+ | `root` | The repository root, `import.meta.dirname` of the root `vite.config.ts` |
103
103
  | `overrides` | Extra oxlint overrides that only add rules: each rule is `"error"`, `"deny"` or `["error", options]`, and options only for a rule the preset does not enable |
104
- | `commit` | `subjectScripts`, the Unicode scripts a commit subject must contain a character of, such as `["Hiragana", "Katakana", "Han"]`. Off when left out |
104
+ | `commit` | `subjectScripts`, the Unicode scripts a commit subject must contain a character of, `["Hiragana", "Katakana", "Han"]` when left out |
105
105
  | `textlint` | `properNouns`, names that may break the kanji run limit or end in `!` or `?`; `rules`, rules msch does not set; and `sources`, the files and plugins of non-Markdown text |
106
106
  | `fallow` | fallow settings of the whole repository, added to the msch preset: arrays are joined and objects merged. Settings of one workspace go in its `msch.fallow` |
107
107
  | `markdown` | `docs`, the y8 options that name the headings of AGENTS.md and skills |
108
- | `run` | `tasks`, extra root tasks as `{ name: command }`; and `remoteCache`, the URL of the remote task cache that every `vp run` reads |
109
- | `usage` | `endpoint`, and optionally `apiKeyEnv`. Turns on usage metering, described below |
108
+ | `run` | `tasks`, extra root tasks as `{ name: command }`; and `remoteCache`, the base URL of the remote task cache; msch appends the `name` of the root package.json |
109
+ | `usage` | `endpoint`. Turns on usage metering, described below |
110
+ | `tools` | Extra tools for vpa to install, added to `otelcol` and `weaver` that msch always installs |
110
111
 
111
112
  ### Usage metering
112
113
 
113
- With `usage`, the `check` and `msch` tasks run with `USAGE_METER_SPOOL` set. The libraries that wrap their rules or functions with `usageMeter` from `@r_masseater/masseater-utils/usage-meter`, and the plugins that wism, y8 and fu4 load, count each call in memory and write one file per process to `node_modules/.cache/usage-meter`. The `usage` task runs after them: `msch usage` merges the files and sends them once as an OTLP/HTTP JSON delta sum `code.usage.calls` to `<endpoint>/v1/metrics`, with the bearer token from the `apiKeyEnv` variable when both are set. Leave `apiKeyEnv` out for an endpoint that takes no key or when a proxy adds it. An unreachable endpoint or a 5xx keeps the files for the next run, a 401 or 403 drops them, and neither fails `verify`. Without `usage` nothing is wrapped and nothing is sent.
114
+ With `usage`, the `check` and `msch` tasks run with `USAGE_METER_SPOOL` set. The libraries that wrap their rules or functions with `usageMeter` from `@r_masseater/masseater-utils/usage-meter`, and the plugins that wism, y8 and fu4 load, count each call in memory and write one file per process to `node_modules/.cache/usage-meter`. The `usage` task runs after them: `msch usage` merges the files and sends them once as an OTLP/HTTP JSON delta sum `code.usage.calls` to `<endpoint>/v1/metrics` without a key, so a proxy adds it. An unreachable endpoint or a 5xx keeps the files for the next run, a 401 or 403 drops them, and neither fails `verify`. Without `usage` nothing is wrapped and nothing is sent.
114
115
 
115
116
  ## What msch reads from the repository
116
117
 
@@ -9,7 +9,9 @@ description: >
9
9
  metadata:
10
10
  type: core
11
11
  library: "@r_masseater/msch"
12
- library_version: 0.134.1
12
+ library_version: 0.141.2
13
+ requires:
14
+ - msch-repository-config
13
15
  sources:
14
16
  - src/app/vite.d.ts
15
17
  - src/features/build-workspace-settings
@@ -22,6 +24,10 @@ sources:
22
24
 
23
25
  Vite+ ignores the `lint` section of a workspace's `vite.config.ts`. A setting that applies to one workspace goes in the `msch` block of that workspace's `vite.config.ts`. The root reads it with `workspaceSettings` without running the file, so every value in the block is a literal.
24
26
 
27
+ ## 前提
28
+
29
+ - <skill:@r_masseater/msch#msch-repository-config>
30
+
25
31
  ## The msch block
26
32
 
27
33
  ```ts
@@ -45,14 +51,16 @@ export default defineConfig({
45
51
  });
46
52
  ```
47
53
 
48
- | Key | Holds |
49
- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
50
- | `lint.overrides` | Oxlint overrides that only add rules. A rule set to `"off"`, `"allow"` or `"warn"`, or any other key such as `ignorePatterns`, fails `workspaceSettings`, so every `vp` command fails until it is removed |
51
- | `devDependencies` | Each key states why the workspace needs the packages. `dependencies` lists them, `use: ["instrumentation"]` adds the packages that record telemetry |
52
- | `dependencies` | The same for packages the workspace ships at run time in `dependencies`, `peerDependencies` or `optionalDependencies`, for a banned package with no other way to do the job |
53
- | `fallow` | fallow settings that only this workspace needs: `entry`, `dynamicallyLoaded`, `ignorePatterns` and the `file` of `ignoreExports` relative to the workspace, and `ignoreDependencies`. `repositoryConfig` adds them to the root `fallow` section |
54
- | `publish.installSize` | The largest install size a published package may reach |
55
- | `publish.anyOwner` | `true` for a package that must work for any owner. msch then reports the repository owner's name inside it |
54
+ | Key | Holds |
55
+ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
56
+ | `lint.overrides` | Oxlint overrides that only add rules. A rule set to `"off"`, `"allow"` or `"warn"`, or any other key such as `ignorePatterns`, fails `workspaceSettings`, so every `vp` command fails until it is removed |
57
+ | `devDependencies` | Each key states why the workspace needs the packages. `dependencies` lists them, `use: ["instrumentation"]` adds the packages that record telemetry |
58
+ | `dependencies` | The same for packages the workspace ships at run time in `dependencies`, `peerDependencies` or `optionalDependencies`, for a banned package with no other way to do the job |
59
+ | `fallow` | fallow settings that only this workspace needs: `entry`, `dynamicallyLoaded`, `ignorePatterns` and the `file` of `ignoreExports` relative to the workspace, `ignoreDependencies`, and `allowImports`, the boundary zones this workspace may import from, which becomes a `boundaries` rule whose `from` is this workspace. `repositoryConfig` adds them to the root `fallow` section |
60
+ | `publish.installSize` | The largest install size a published package may reach |
61
+ | `publish.anyOwner` | `true` for a package that must work for any owner. msch then reports the repository owner's name inside it |
62
+
63
+ The root `vite.config.ts` may hold `msch.devDependencies` and `msch.dependencies` too. They allow packages in the root `package.json`, as the workspace `.`.
56
64
 
57
65
  ## Test and build tasks
58
66
 
package/src/app/vite.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { Fu4Config } from "@r_masseater/fu4";
2
- import type { H56mConfig } from "@r_masseater/h56m";
3
- import type { WismConfig } from "@r_masseater/wism";
4
- import type { Y8Config } from "@r_masseater/y8";
1
+ export type { Fu4Config } from "@r_masseater/fu4/vite";
2
+ export type { H56mConfig } from "@r_masseater/h56m/vite";
3
+ export type { WismConfig } from "@r_masseater/wism/vite";
4
+ export type { Y8Config } from "@r_masseater/y8/vite";
5
5
 
6
6
  export type { ToolSections } from "@r_masseater/vite-plus-adopt";
7
7
 
@@ -46,6 +46,7 @@ export interface WorkspaceFallowSettings {
46
46
  readonly file: string;
47
47
  readonly exports: readonly string[];
48
48
  }[];
49
+ readonly allowImports?: readonly string[];
49
50
  }
50
51
 
51
52
  export interface MschConfig {
@@ -62,9 +63,5 @@ export interface MschConfig {
62
63
  declare module "vite" {
63
64
  interface UserConfig {
64
65
  readonly msch?: MschConfig;
65
- readonly fu4?: Fu4Config;
66
- readonly h56m?: H56mConfig;
67
- readonly wism?: WismConfig;
68
- readonly y8?: Y8Config;
69
66
  }
70
67
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"define-lint-preset-_bDnJMcY.mjs","names":["Rec","Arr","Str","effectPresets","decisionPlugin","shadcn","Str","Arr","Arr","Str","Rec","Str","Arr","Arr","Rec"],"sources":["../src/shared/config/exempt.ts","../src/features/define-lint-preset/config/lint-overrides.config.ts","../src/features/define-lint-preset/config/decision-rules.ts","../src/features/define-lint-preset/config/web-guidance.config.ts","../src/features/define-lint-preset/config/lint.config.ts","../src/features/define-lint-preset/config/test-rules.config.ts","../src/features/define-lint-preset/config/preset.ts","../src/features/define-lint-preset/config/traced-rules.config.ts","../src/features/define-lint-preset/config/remotion-rules.config.ts","../src/features/define-lint-preset/config/video-rules.config.ts","../src/features/define-lint-preset/config/structure.config.ts","../src/features/define-lint-preset/config/kuromojin.config.ts","../src/features/define-lint-preset/config/textlint-presets.config.ts","../src/features/define-lint-preset/config/textlint-filters.config.ts","../src/features/define-lint-preset/config/zenn-markdown.config.ts","../src/features/define-lint-preset/config/markdown.config.ts","../src/features/define-lint-preset/config/fallow.config.ts"],"sourcesContent":["export const generated = [\n \"**/routeTree.gen.ts\",\n \"**/generated/**\",\n \"**/drizzle/**/snapshot.json\",\n \".claude/skills/**\",\n \".intent/**\",\n \"AGENTS.md\",\n \"CLAUDE.md\",\n \"**/CHANGELOG.md\",\n \".github/release-please/*manifest.json\",\n \"**/.release-please-manifest.json\",\n \"**/*.d.*.ts\",\n \"**/src-tauri/gen/**\",\n \"**/.claude-plugin/types/**\",\n];\n\nconst checkerInputs = [\"**/fixtures/**\"];\n\nconst vendored = [\"**/upstream/**\", \"**/hooks/vendor/**\"];\n\nexport const exempt = [...generated, ...checkerInputs, ...vendored];\n","export const resourceRules = {\n \"msch-lint/worker-logpush\": \"error\",\n \"msch-lint/worker-cpu-limit\": \"error\",\n \"msch-lint/attributed-model-call\": \"error\",\n \"msch-lint/gated-model-call\": \"error\",\n \"msch-lint/gated-model-request\": \"error\",\n \"msch-lint/workers-ai-through-runner\": \"error\",\n \"msch-lint/ai-gateway-logs\": \"error\",\n \"msch-lint/ai-gateway-spend-limit\": \"error\",\n \"msch-lint/ai-gateway-cache\": \"error\",\n} as const;\n\nexport const removalPolicyOverride: {\n files: string[];\n excludeFiles: string[];\n rules: Readonly<Record<string, \"error\">>;\n} = {\n files: [\"**/*.ts\"],\n excludeFiles: [\"**/*.test.ts\"],\n rules: { \"msch-lint/protected-storage\": \"error\" },\n};\n\nexport const alchemyOverride: {\n files: string[];\n rules: Readonly<Record<string, \"error\">>;\n} = {\n files: [\"**/alchemy.run.ts\"],\n rules: {\n \"msch-lint/stack-named-by-app\": \"error\",\n \"msch-lint/stack-checks-app-prefix\": \"error\",\n },\n};\n\nexport const commandsOverride: {\n files: string[];\n rules: Readonly<Record<string, \"error\">>;\n} = {\n files: [\"**/bin/**\"],\n rules: {\n \"msch-lint/wiring-only-commands\": \"error\",\n },\n};\n","import { createDecisionPlugin, defineDecisionRule } from \"@r_masseater/oxlint-plugin-decision\";\n\nexport default createDecisionPlugin({\n name: \"stack\",\n rules: [\n defineDecisionRule({\n id: \"exclusive-status\",\n target: \"file\",\n question:\n \"Does this code represent one piece of state with several boolean flags or optional fields whose combinations can contradict each other, instead of one exclusive status expressed as a discriminated union? Answer no when every state is a single exclusive status, or when the file holds no such state. A violation needs two or more booleans or optional fields that describe the same piece of state; a single boolean value, parameter, return value or field is not a violation, and a union of objects told apart by a status or kind field is already an exclusive status. A constant configuration object whose shape a library fixes, such as an OpenFeature flag definition, holds no state and is not a violation. Fields that each stand on their own, so that every combination of them is valid, such as the optional filters of a search, the options of a request or independent settings, describe separate things and are not a violation.\",\n message: \"状態は排他的なstatusを持つ判別共用体で表し、booleanフラグの組を使わない。\",\n cutoff: 0.8,\n }),\n defineDecisionRule({\n id: \"server-state-tanstack-query\",\n target: \"file\",\n question:\n \"Does this code, running in the browser, fetch, cache or synchronize server data with something other than TanStack Query or the Query and Command of Effect UI, such as fetch inside useEffect, SWR or a hand-written cache? Answer no when server data in the browser goes only through TanStack Query or Effect UI, when the file runs only on a server, in a Worker or in a command-line tool, when the file is part of plover, the framework that carries Effect UI queries between the Worker and the browser, or when the file handles no server data. Creating an API client such as a better-auth or Eden client, which fetches nothing until a query calls it, is not a violation.\",\n message: \"ブラウザのサーバー状態はTanStack QueryかEffect UIのQuery・Commandだけで扱う。\",\n cutoff: 0.8,\n }),\n defineDecisionRule({\n id: \"ui-state-effect-atom\",\n target: \"file\",\n question:\n \"Does this code hold client-side UI state with something other than effect-atom, such as useState, useReducer, React context used as a store, zustand, jotai or redux? Answer no when client-side UI state is held only by effect-atom, or when the file holds none. effect-atom is Atom from effect/reactivity, read and written through @effect/atom-react hooks such as useAtomValue and useAtomSet. Creating a TanStack Query QueryClient or configuring the router, which hold no UI state, is not a violation.\",\n message: \"UI状態はeffect-atomだけで扱う。\",\n cutoff: 0.8,\n }),\n ],\n});\n","import type { UserConfig } from \"vite-plus\";\n\ntype LintRules = NonNullable<NonNullable<UserConfig[\"lint\"]>[\"rules\"]>;\n\nexport const webGuidanceRules = {\n \"jsx-a11y/no-redundant-roles\": [\"error\", { ul: [\"list\"], ol: [\"list\"] }],\n \"jsx-a11y/no-noninteractive-tabindex\": [\"error\", { tags: [\"section\"], roles: [\"tabpanel\"] }],\n} satisfies LintRules;\n","import { presets as effectPresets } from \"@effect/tsgo/oxlint-presets\";\nimport htmlReact from \"@html-eslint/eslint-plugin-react\";\nimport eslintReact from \"@r_masseater/oxlint-typed-rules/react\";\nimport { Array as Arr, Record as Rec, String as Str, Struct, pipe } from \"effect\";\nimport reactHooks from \"eslint-plugin-react-hooks\";\n\nimport decisionPlugin from \"./decision-rules.ts\";\n\nconst asErrors = (names: readonly string[]): Readonly<Record<string, \"error\">> =>\n Rec.fromEntries(\n pipe(\n names,\n Arr.map((name) => [name, \"error\"] as const),\n ),\n );\n\nexport const allRulesOf = ({\n prefix,\n rules,\n}: Readonly<{ prefix: string; rules: Readonly<Record<string, unknown>> }>): Readonly<\n Record<string, \"error\">\n> =>\n asErrors(\n pipe(\n Rec.keys(rules),\n Arr.map((rule) => `${prefix}/${rule}`),\n ),\n );\n\nconst reactHooksRuleNames = pipe(\n Struct.keys(reactHooks.configs[\"recommended-latest\"].rules),\n Arr.map(Str.replace(\"react-hooks/\", \"react-hooks-js/\")),\n);\n\nconst reactHooksRules = asErrors(reactHooksRuleNames);\n\nconst eslintReactRuleNames = pipe(\n Rec.keys(eslintReact.configs[\"strict-typescript\"].rules ?? {}),\n Arr.filter(\n (name) => !(Str.replace(\"@eslint-react/\", \"react-hooks-js/\")(name) in reactHooksRules),\n ),\n);\n\nconst effectRuleNames = pipe(\n Rec.values(effectPresets),\n Arr.flatMap((preset) => Struct.keys(preset.rules ?? {})),\n);\n\nexport const pluginRules: Readonly<Record<string, \"error\">> = {\n ...asErrors(Rec.keys(htmlReact.configs.all.rules ?? {})),\n ...reactHooksRules,\n ...asErrors(eslintReactRuleNames),\n ...asErrors(effectRuleNames),\n};\n\nexport const decisionPluginName = decisionPlugin.meta.name;\n\nexport const decisionRules = allRulesOf({\n prefix: decisionPluginName,\n rules: decisionPlugin.rules,\n});\n\nexport const decisionTestRules = pipe(\n decisionRules,\n Rec.map(() => \"off\" as const),\n);\n\nexport const shadcnRestyleContracts = [\n { pattern: \"^Table(Head|Cell)$\", allow: [\"text-alignment\", \"fvn-spacing\"] },\n { pattern: \"^TableCaption$\", allow: [\"caption\", \"text-alignment\", \"mt-*\", \"mb-*\"] },\n];\n\nexport { webGuidanceRules } from \"./web-guidance.config.ts\";\n","import type { UserConfig } from \"vite-plus\";\n\ntype LintRules = NonNullable<NonNullable<UserConfig[\"lint\"]>[\"rules\"]>;\n\nexport const testRules = {\n \"vitest/expect-expect\": [\n \"error\",\n { assertFunctionNames: [\"expect\", \"expect*\", \"assert*\", \"waitFor*\", \"run\", \"*.run\"] },\n ],\n \"vitest/valid-expect\": [\"error\", { maxArgs: 2 }],\n \"vitest/valid-title\": [\"error\", { allowArguments: true }],\n \"vitest/prefer-called-times\": \"off\",\n \"vitest/prefer-import-in-mock\": \"off\",\n \"vitest/no-standalone-expect\": \"off\",\n \"vitest/no-conditional-in-test\": \"off\",\n \"vitest/require-test-timeout\": \"off\",\n \"vitest/prefer-expect-assertions\": \"off\",\n \"vitest/require-top-level-describe\": \"off\",\n \"vitest/no-importing-vitest-globals\": \"off\",\n \"vitest/require-hook\": \"off\",\n \"vitest/no-hooks\": \"off\",\n \"vitest/consistent-test-it\": \"off\",\n \"vitest/prefer-describe-function-title\": \"off\",\n \"vitest/prefer-lowercase-title\": \"off\",\n \"vitest/prefer-to-be-truthy\": \"off\",\n \"vitest/prefer-to-be-falsy\": \"off\",\n \"vitest/padding-around-after-all-blocks\": \"off\",\n \"vitest/padding-around-test-blocks\": \"off\",\n \"vitest/max-expects\": \"off\",\n} satisfies LintRules;\n\nexport const testHonestyRules = {\n \"msch-lint/no-test-doubles\": \"error\",\n \"msch-lint/no-flake-masking\": \"error\",\n} satisfies LintRules;\n","import { fileURLToPath } from \"node:url\";\n\nimport tanstackQuery from \"@r_masseater/oxlint-typed-rules/tanstack-query\";\nimport tanstackRouter from \"@r_masseater/oxlint-typed-rules/tanstack-router\";\nimport { plugin as shadcn } from \"@shadcn/lint\";\nimport baselineJs from \"eslint-plugin-baseline-js\";\nimport type { UserConfig } from \"vite-plus\";\n\nimport { DECISION_MODEL, DECISION_TIMEOUT_MS, generated } from \"#/shared/config/index.ts\";\n\nimport {\n alchemyOverride,\n commandsOverride,\n removalPolicyOverride,\n resourceRules,\n} from \"./lint-overrides.config.ts\";\nimport {\n allRulesOf,\n decisionPluginName,\n decisionRules,\n pluginRules,\n shadcnRestyleContracts,\n webGuidanceRules,\n} from \"./lint.config.ts\";\nimport { testHonestyRules, testRules } from \"./test-rules.config.ts\";\n\ntype LintConfig = NonNullable<UserConfig[\"lint\"]>;\n\nconst PACKAGE_STYLESHEETS_BUT_TAILWIND = \"^(?!tailwindcss(?:/|$))\";\n\nconst resolved = (specifier: string): string => fileURLToPath(import.meta.resolve(specifier));\n\nconst typedRules = \"@r_masseater/oxlint-typed-rules\";\n\nconst jsPlugins = [\n { name: \"vite-plus\", specifier: resolved(\"vite-plus/oxlint-plugin\") },\n { name: \"tanstack-query\", specifier: resolved(`${typedRules}/tanstack-query`) },\n { name: \"tanstack-router\", specifier: resolved(`${typedRules}/tanstack-router`) },\n { name: \"tanstack-start\", specifier: resolved(`${typedRules}/tanstack-start`) },\n { name: \"drizzle\", specifier: resolved(`${typedRules}/drizzle`) },\n { name: \"react-hooks-js\", specifier: resolved(\"eslint-plugin-react-hooks\") },\n { name: \"@eslint-react\", specifier: resolved(`${typedRules}/react`) },\n { name: \"@remotion\", specifier: resolved(`${typedRules}/remotion`) },\n { name: \"shadcn\", specifier: resolved(\"@shadcn/lint\") },\n { name: \"baseline-js\", specifier: resolved(\"@r_masseater/msch/baseline-rules\") },\n { name: \"@html-eslint/react\", specifier: resolved(\"@html-eslint/eslint-plugin-react\") },\n { name: \"eslint-js\", specifier: resolved(\"oxlint-plugin-eslint\") },\n { name: decisionPluginName, specifier: resolved(\"@r_masseater/msch/decision-rules\") },\n { name: \"msch-lint\", specifier: resolved(\"@r_masseater/msch/lint-rules\") },\n];\n\nconst rules = {\n \"vite-plus/prefer-vite-plus-imports\": \"error\",\n \"tanstack-start/no-async-client-component\": \"error\",\n \"tanstack-start/no-client-code-in-server-component\": \"error\",\n ...allRulesOf({ prefix: \"tanstack-query\", rules: tanstackQuery.rules }),\n ...allRulesOf({ prefix: \"tanstack-router\", rules: tanstackRouter.rules }),\n \"drizzle/enforce-delete-with-where\": [\"error\", { drizzleObjectName: [\"db\"] }],\n \"drizzle/enforce-update-with-where\": [\"error\", { drizzleObjectName: [\"db\"] }],\n ...allRulesOf({ prefix: \"shadcn\", rules: shadcn.rules }),\n \"shadcn/no-restyle\": [\"error\", { contracts: shadcnRestyleContracts }],\n ...allRulesOf({ prefix: \"baseline-js\", rules: baselineJs.rules }),\n ...baselineJs.configs.recommended().rules,\n \"baseline-js/use-baseline\": [\n \"error\",\n {\n available: \"widely\",\n ignoreFeatures: [\"top-level-await\"],\n includeWebApis: { preset: \"auto\" },\n includeJsBuiltins: { preset: \"auto\" },\n },\n ],\n ...pluginRules,\n \"eslint/capitalized-comments\": \"off\",\n \"eslint/sort-imports\": \"off\",\n \"eslint/sort-keys\": \"off\",\n \"import/no-named-export\": \"off\",\n \"import/prefer-default-export\": \"off\",\n \"import/group-exports\": \"off\",\n \"import/exports-last\": \"off\",\n \"import/no-namespace\": \"off\",\n ...testRules,\n ...webGuidanceRules,\n \"msch-lint/array-from-async\": \"error\",\n \"msch-lint/declared-arguments\": \"error\",\n \"msch-lint/ecosystem-readers\": \"error\",\n \"msch-lint/explicit-import-path\": \"error\",\n \"msch-lint/get-or-insert\": \"error\",\n \"msch-lint/mcp-tool-layer\": \"error\",\n \"msch-lint/namespace-as-value\": \"error\",\n \"msch-lint/main-through-node-main\": \"error\",\n \"msch-lint/inline-exports\": \"error\",\n \"msch-lint/ui-state-in-atoms\": \"error\",\n \"msch-lint/no-hand-written-sql\": \"error\",\n \"msch-lint/platform-node-by-module\": \"error\",\n \"msch-lint/readonly-parameters\": \"error\",\n \"msch-lint/separate-min-max\": \"error\",\n \"msch-lint/typed-calls-not-reflect\": \"error\",\n \"react/react-in-jsx-scope\": \"off\",\n \"eslint/no-undef\": \"off\",\n \"typescript/promise-function-async\": \"off\",\n \"react/forbid-component-props\": \"off\",\n \"oxc/no-rest-spread-properties\": \"off\",\n \"node/no-top-level-await\": \"off\",\n \"import/no-nodejs-modules\": \"off\",\n \"import/no-unassigned-import\": [\"error\", { allow: [\"**/*.css\", \"reflect-metadata\"] }],\n \"eslint/new-cap\": [\"error\", { capIsNew: false }],\n \"eslint/one-var\": [\"error\", \"never\"],\n \"unicorn/relative-url-style\": [\"error\", \"always\"],\n \"eslint/id-length\": [\"error\", { exceptions: [\"x\", \"y\"] }],\n \"jsdoc/check-tag-names\": [\"error\", { definedTags: [\"msch\", \"stability\"] }],\n \"jsdoc/require-param\": [\"error\", { exemptedBy: [\"inheritdoc\", \"internal\", \"msch\", \"stability\"] }],\n \"jsdoc/require-returns\": [\n \"error\",\n { exemptedBy: [\"inheritdoc\", \"internal\", \"msch\", \"stability\"] },\n ],\n ...resourceRules,\n \"effecttsgo/missing-pipeable-signature\": \"off\",\n \"typescript/prefer-readonly-parameter-types\": \"off\",\n \"eslint/no-duplicate-imports\": [\"error\", { allowSeparateTypeImports: true }],\n \"react/function-component-definition\": [\n \"error\",\n { namedComponents: \"arrow-function\", unnamedComponents: \"arrow-function\" },\n ],\n \"typescript/no-empty-interface\": [\"error\", { allowSingleExtends: true }],\n \"typescript/no-empty-object-type\": [\"error\", { allowInterfaces: \"with-single-extends\" }],\n \"react/jsx-filename-extension\": [\"error\", { extensions: [\".tsx\"] }],\n \"react/only-export-components\": [\"error\", { allowExportNames: [\"Route\"] }],\n} satisfies LintConfig[\"rules\"];\n\nconst actionScriptsOverride = {\n files: [\".github/**/*.ts\"],\n rules: {\n \"baseline-js/use-baseline\": \"off\",\n \"effecttsgo/async-function\": \"off\",\n \"effecttsgo/global-console\": \"off\",\n \"effecttsgo/global-fetch\": \"off\",\n \"effecttsgo/global-json\": \"off\",\n \"effecttsgo/node-builtin-import\": \"off\",\n \"effecttsgo/prefer-effect-array\": \"off\",\n \"effecttsgo/prefer-effect-record\": \"off\",\n \"effecttsgo/prefer-effect-string\": \"off\",\n \"effecttsgo/process-env\": \"off\",\n \"eslint/no-console\": \"off\",\n \"eslint/no-undefined\": \"off\",\n \"import/no-relative-parent-imports\": \"off\",\n \"node/no-process-env\": \"off\",\n \"node/no-sync\": \"off\",\n \"oxc/no-async-await\": \"off\",\n \"unicorn/no-process-exit\": \"off\",\n },\n} satisfies NonNullable<LintConfig[\"overrides\"]>[number];\n\nconst TESTS = [\"**/*.test.ts\", \"**/*.test.tsx\", \"**/*.test.support.ts\"];\n\nconst overrides = [\n { files: [\"**/*.{ts,tsx}\"], excludeFiles: TESTS, rules: decisionRules },\n removalPolicyOverride,\n actionScriptsOverride,\n alchemyOverride,\n {\n files: [\"**/*.config.ts\", \"**/alchemy.*.ts\", \"**/decision-rules.ts\"],\n rules: { \"import/no-default-export\": \"off\" },\n },\n commandsOverride,\n {\n files: [\"**/*.test.ts\", \"**/*.test.tsx\", \"**/*.test.support.ts\", \"**/vite.config.ts\"],\n rules: { \"msch-lint/declared-arguments\": \"off\", ...testHonestyRules },\n },\n {\n files: [\"**/vite.config.ts\"],\n rules: {\n \"eslint/max-lines\": \"off\",\n \"eslint/max-lines-per-function\": \"off\",\n \"baseline-js/use-baseline\": \"off\",\n },\n },\n] satisfies LintConfig[\"overrides\"];\n\nexport const lint = {\n ignorePatterns: generated,\n plugins: [\n \"eslint\",\n \"typescript\",\n \"unicorn\",\n \"oxc\",\n \"import\",\n \"react\",\n \"react-perf\",\n \"jsx-a11y\",\n \"jsdoc\",\n \"vitest\",\n \"promise\",\n \"node\",\n \"effecttsgo\",\n ],\n categories: {\n correctness: \"error\",\n suspicious: \"error\",\n pedantic: \"error\",\n perf: \"error\",\n style: \"error\",\n restriction: \"error\",\n nursery: \"error\",\n },\n jsPlugins,\n rules,\n overrides,\n settings: {\n shadcn: { themeImports: [PACKAGE_STYLESHEETS_BUT_TAILWIND] },\n [decisionPluginName]: {\n model: DECISION_MODEL,\n timeoutMs: DECISION_TIMEOUT_MS,\n ci: \"skip\",\n },\n },\n options: {\n typeAware: true,\n typeCheck: true,\n denyWarnings: true,\n reportUnusedDisableDirectives: \"error\",\n },\n} satisfies LintConfig;\n","export const tracedRules = {\n \"msch-lint/traced-elysia\": \"error\",\n \"msch-lint/traced-effect-run\": \"error\",\n} as const;\n","import remotion from \"@r_masseater/oxlint-typed-rules/remotion\";\n\nimport { allRulesOf } from \"./lint.config.ts\";\n\nexport const remotionRules = allRulesOf({ prefix: \"@remotion\", rules: remotion.rules });\n","import type { VideoIntro } from \"#/shared/config/index.ts\";\n\nexport interface VideoSayOptions {\n readonly terms?: Readonly<Record<string, string>>;\n readonly banned?: Readonly<Record<string, string>>;\n readonly maxEmphasis?: number;\n}\n\nexport interface VideoSeriesOptions {\n readonly values?: Readonly<Record<string, string>>;\n readonly voices?: readonly string[];\n readonly opener?: string;\n readonly closer?: string;\n readonly intro?: VideoIntro;\n readonly introValues?: Readonly<Record<string, string>>;\n readonly afterIntro?: Readonly<Record<string, string>>;\n}\n\nexport interface VideoRulesOptions {\n readonly say: VideoSayOptions;\n readonly series: Readonly<Record<string, VideoSeriesOptions>>;\n readonly banned?: Readonly<Record<string, string>>;\n}\n\nexport const videoRules = ({ say, series, banned = {} }: VideoRulesOptions) =>\n ({\n \"msch-lint/video-say\": [\"error\", say],\n \"msch-lint/video-readings\": \"error\",\n \"msch-lint/video-series\": [\"error\", { series, banned }],\n }) as const;\n","import type { WismConfig } from \"@r_masseater/wism\";\nimport { rustCrate, skill, structure, workspace } from \"@r_masseater/wism/presets\";\nimport { Array as Arr, Predicate, String as Str, pipe } from \"effect\";\n\nconst NEGATION = \"!\";\nconst isIgnore = Predicate.not(Str.startsWith(NEGATION));\n\nexport interface StructureOptions {\n readonly members: readonly string[];\n readonly ignorePatterns: readonly string[];\n}\n\nexport const structureOf = ({ members, ignorePatterns }: StructureOptions): WismConfig =>\n structure({\n kinds: [workspace({ paths: members }), rustCrate(), skill()],\n ignores: pipe(ignorePatterns, Arr.filter(isIgnore)),\n });\n","import { createRequire, registerHooks } from \"node:module\";\n\nexport const KUROMOJIN = \"kuromojin\";\nconst ON_Y8 = \"@r_masseater/y8/kuromojin\";\n\nexport const requireWithY8Kuromojin = (parentUrl: string): NodeJS.Require => {\n registerHooks({\n resolve: (specifier, context, nextResolve) => {\n if (specifier === KUROMOJIN) {\n return nextResolve(ON_Y8, { ...context, parentURL: import.meta.url });\n }\n return nextResolve(specifier, context);\n },\n });\n return createRequire(parentUrl);\n};\n","import presetJa from \"@r_masseater/textlint-rule-preset-ja\";\nimport type { ToolSections } from \"@r_masseater/vite-plus-adopt\";\nimport { Array as Arr, Option, Predicate, Record as Rec, String as Str, pipe } from \"effect\";\n\nimport { requireWithY8Kuromojin } from \"./kuromojin.config.ts\";\n\ntype Preset = NonNullable<NonNullable<ToolSections[\"textlint\"]>[\"presets\"]>[string];\ntype Rule = Preset[\"rules\"][string];\ntype Reporter = Extract<Rule, (...args: never) => unknown>;\ntype Fixable = Exclude<Rule, Reporter>;\n\nconst NO_HANDLERS = {};\nconst CONTEXT = 0;\nconst JAPANESE_LETTERS = /[\\p{Script=Hiragana}\\p{Script=Katakana}\\p{Script=Han}]/gv;\nconst LATIN_WORDS = /\\p{Script=Latin}+/gv;\nconst NONE = 0;\n\nconst countOf = (text: string, pattern: RegExp): number =>\n Arr.length(Str.match(text, pattern).pipe(Option.getOrElse(() => [])));\n\nconst writtenInJapanese = (text: string): boolean => {\n const letters = countOf(text, JAPANESE_LETTERS);\n return letters > NONE && letters >= countOf(text, LATIN_WORDS);\n};\n\nconst isPreset = (value: unknown): value is Preset =>\n Predicate.hasProperty(value, \"rules\") &&\n Predicate.isObject(value.rules) &&\n Predicate.hasProperty(value, \"rulesConfig\") &&\n Predicate.isObject(value.rulesConfig);\n\nconst presetIn = (value: unknown): Option.Option<Preset> => {\n if (isPreset(value)) {\n return Option.some(value);\n }\n if (Predicate.hasProperty(value, \"default\")) {\n return presetIn(value.default);\n }\n return Option.none();\n};\n\nconst required = requireWithY8Kuromojin(import.meta.url);\n\nconst presetOf = (specifier: string, loaded: unknown): Preset =>\n Option.getOrThrowWith(\n presetIn(loaded),\n () => new TypeError(`${specifier} does not export a textlint preset`),\n );\n\ntype Context = Parameters<Reporter>[typeof CONTEXT];\n\nconst reportingJapanese = (context: Context): Context => ({\n get id(): Context[\"id\"] {\n return context.id;\n },\n get Syntax(): Context[\"Syntax\"] {\n return context.Syntax;\n },\n get severity(): Context[\"severity\"] {\n return context.severity;\n },\n get RuleError(): Context[\"RuleError\"] {\n return context.RuleError;\n },\n get fixer(): Context[\"fixer\"] {\n return context.fixer;\n },\n get locator(): Context[\"locator\"] {\n return context.locator;\n },\n getFilePath: () => context.getFilePath(),\n getSource: (node, beforeCount, afterCount) => context.getSource(node, beforeCount, afterCount),\n getConfigBaseDir: () => context.getConfigBaseDir(),\n report: (node, error): void => {\n if (writtenInJapanese(context.getSource(node))) {\n context.report(node, error);\n }\n },\n});\n\nconst japaneseOnly =\n (reporter: Reporter): Reporter =>\n (context, options) => {\n if (writtenInJapanese(context.getSource())) {\n return reporter(reportingJapanese(context), options);\n }\n return NO_HANDLERS;\n };\n\nconst forJapanese = (rule: Reporter | Readonly<Fixable>): Rule => {\n if (Predicate.isFunction(rule)) {\n return japaneseOnly(rule);\n }\n return { linter: japaneseOnly(rule.linter), fixer: japaneseOnly(rule.fixer) };\n};\n\nconst japanesePreset = (specifier: string, loaded: unknown): Preset => {\n const { rules, rulesConfig } = presetOf(specifier, loaded);\n return { rules: pipe(rules, Rec.map(forJapanese)), rulesConfig };\n};\n\nexport const textlintPresets: NonNullable<NonNullable<ToolSections[\"textlint\"]>[\"presets\"]> = {\n \"@r_masseater/preset-ja\": japanesePreset(\"@r_masseater/textlint-rule-preset-ja\", presetJa),\n \"@textlint-ja/preset-ai-writing\": japanesePreset(\n \"@textlint-ja/textlint-rule-preset-ai-writing\",\n required(\"@textlint-ja/textlint-rule-preset-ai-writing\"),\n ),\n \"preset-ja-technical-writing\": japanesePreset(\n \"textlint-rule-preset-ja-technical-writing\",\n required(\"textlint-rule-preset-ja-technical-writing\"),\n ),\n};\n","import { createRequire } from \"node:module\";\n\nimport type { ToolSections } from \"@r_masseater/vite-plus-adopt\";\nimport { Option, Predicate, pipe } from \"effect\";\n\ntype Filter = NonNullable<NonNullable<ToolSections[\"textlint\"]>[\"filterModules\"]>[string];\n\nconst isFilter = (value: unknown): value is Filter => Predicate.isFunction(value);\n\nconst filterIn = (specifier: string, loaded: unknown): Filter =>\n pipe(\n Option.liftPredicate(loaded, isFilter),\n Option.getOrThrowWith(() => new TypeError(`${specifier} does not export a textlint filter`)),\n );\n\nconst defaultOf = (loaded: unknown): unknown =>\n pipe(\n Option.liftPredicate(loaded, Predicate.hasProperty(\"default\")),\n Option.map((module) => module.default),\n Option.getOrElse(() => loaded),\n );\n\nexport const textlintFilters: NonNullable<NonNullable<ToolSections[\"textlint\"]>[\"filterModules\"]> =\n {\n comments: filterIn(\n \"textlint-filter-rule-comments\",\n createRequire(import.meta.url)(\"textlint-filter-rule-comments\"),\n ),\n \"node-types\": filterIn(\n \"textlint-filter-rule-node-types\",\n createRequire(import.meta.url)(\"textlint-filter-rule-node-types\"),\n ),\n allowlist: filterIn(\n \"textlint-filter-rule-allowlist\",\n defaultOf(createRequire(import.meta.url)(\"textlint-filter-rule-allowlist\")),\n ),\n };\n","import markdown from \"@textlint/textlint-plugin-markdown\";\nimport type { TextlintPluginOptions } from \"@textlint/types\";\nimport { Array as Arr, Option, String as Str, pipe } from \"effect\";\n\nconst CONTAINER_FENCE = \":::\";\nconst LINE_BREAK = \"\\n\";\nconst BLANK = \" \";\nconst IMAGE_SIZE = /(?<=!\\[[^\\]]*\\]\\(\\S+) =\\d*x\\d*(?=\\))/gu;\nconst NEXT = 1;\n\ntype MarkdownProcessor = InstanceType<typeof markdown.Processor>;\ntype Processing = ReturnType<MarkdownProcessor[\"processor\"]>;\n\nconst spaces = (text: string): string => Str.repeat(text.length)(BLANK);\n\nconst sizeIndices = (line: string): readonly number[] =>\n pipe(\n Arr.fromIterable(Str.matchAll(IMAGE_SIZE)(line)),\n Arr.flatMap((found) =>\n pipe(\n Option.fromUndefinedOr(found.index),\n Option.map((start) =>\n pipe(\n Arr.head(found),\n Option.map((size) => Arr.range(start, start + size.length - NEXT)),\n Option.getOrElse((): readonly number[] => []),\n ),\n ),\n Option.getOrElse((): readonly number[] => []),\n ),\n ),\n );\n\nconst withoutImageSizes = (line: string): string => {\n const blankAt = sizeIndices(line);\n return pipe(\n Str.split(\"\")(line),\n Arr.map((character, index) => {\n if (Arr.contains(blankAt, index)) {\n return BLANK;\n }\n return character;\n }),\n Arr.join(\"\"),\n );\n};\n\nconst blankedLine = (line: string): string => {\n if (Str.startsWith(CONTAINER_FENCE)(line)) {\n return spaces(line);\n }\n return withoutImageSizes(line);\n};\n\nconst blanked = (text: string): string =>\n pipe(text, Str.split(LINE_BREAK), Arr.map(blankedLine), Arr.join(LINE_BREAK));\n\nclass ZennMarkdownProcessor {\n private readonly markdown: MarkdownProcessor;\n\n public constructor(options?: TextlintPluginOptions) {\n this.markdown = new markdown.Processor(options);\n }\n\n public availableExtensions(): string[] {\n return this.markdown.availableExtensions();\n }\n\n public processor(extension: string): Processing {\n const { preProcess, postProcess } = this.markdown.processor(extension);\n return {\n preProcess: (text, filePath) => preProcess(blanked(text), filePath),\n postProcess,\n };\n }\n}\n\nexport const zennMarkdown = { Processor: ZennMarkdownProcessor };\n","import type { Y8Config } from \"@r_masseater/y8\";\nimport { recommended } from \"@r_masseater/y8/presets\";\nimport type { RecommendedOptions } from \"@r_masseater/y8/presets\";\nimport { Option } from \"effect\";\n\nimport { exempt } from \"#/shared/config/index.ts\";\n\ntype SkillNames = NonNullable<NonNullable<RecommendedOptions[\"skills\"]>[\"skillNames\"]>;\n\nconst skillNamesOf = (indexSkill: Option.Option<string>): SkillNames =>\n Option.match(indexSkill, {\n onNone: (): SkillNames => ({}),\n onSome: (index): SkillNames => ({ index }),\n });\n\nconst docsOf = (indexSkill: Option.Option<string>): RecommendedOptions => {\n const skillNames = skillNamesOf(indexSkill);\n return {\n agents: {\n sections: [[\"Tech stack\"], [\"Commands\"], [\"Rules\"]],\n commands: [\"Commands\"],\n stack: [\"Tech stack\"],\n skillNames,\n },\n skills: { skillNames },\n };\n};\n\nexport const MARKDOWN_IGNORES = [\".agents/skills/**\", \"CHANGELOG.md\", \"**/CLAUDE.md\", ...exempt];\n\nexport const MARKDOWN_RULES = { \"agnix/XP-001\": \"off\" } as const;\n\nexport interface MarkdownOptions {\n readonly indexSkill: Option.Option<string>;\n readonly docs?: RecommendedOptions;\n}\n\nexport const markdownOf = ({ indexSkill, docs = {} }: MarkdownOptions): Y8Config => {\n const base = docsOf(indexSkill);\n return {\n extends: [\n recommended({\n ...base,\n ...docs,\n agents: { ...base.agents, ...docs.agents },\n skills: { ...base.skills, ...docs.skills },\n }),\n ],\n rules: MARKDOWN_RULES,\n reportUnusedDirectives: true,\n ignores: MARKDOWN_IGNORES,\n };\n};\n","import { Array as Arr, Predicate, Record as Rec } from \"effect\";\n\nexport type FallowConfig = Readonly<Record<string, unknown>>;\n\nconst PRESET: FallowConfig = {\n typeAware: { enabled: true, require: \"complete\" },\n ignoreExportsUsedInFile: true,\n failOnParseError: true,\n audit: { gate: \"all\" },\n security: {\n categories: {\n include: [\n \"angular-trusted-html\",\n \"cleartext-transport\",\n \"code-injection\",\n \"command-injection\",\n \"dangerous-html\",\n \"deprecated-cipher\",\n \"dom-document-write\",\n \"dynamic-module-load\",\n \"dynamic-regex\",\n \"electron-unsafe-webpreferences\",\n \"hardcoded-secret\",\n \"header-injection\",\n \"insecure-cookie\",\n \"insecure-randomness\",\n \"insecure-temp-file\",\n \"jquery-html\",\n \"jwt-alg-none\",\n \"jwt-verify-missing-algorithms\",\n \"llm-call-injection\",\n \"mass-assignment\",\n \"mysql-multiple-statements\",\n \"nextjs-open-redirect\",\n \"nosql-injection\",\n \"open-redirect\",\n \"path-traversal\",\n \"permissive-cors\",\n \"postmessage-wildcard-origin\",\n \"prototype-pollution\",\n \"redos-regex\",\n \"resource-amplification\",\n \"route-send-file\",\n \"secret-pii-log\",\n \"secret-to-network\",\n \"sql-injection\",\n \"ssrf\",\n \"ssti\",\n \"template-escape-bypass\",\n \"tls-validation-disabled\",\n \"unsafe-buffer-alloc\",\n \"unsafe-deserialization\",\n \"weak-crypto\",\n \"webview-injection\",\n \"world-writable-permission\",\n \"xpath-injection\",\n \"xxe\",\n \"zip-slip\",\n ],\n },\n },\n duplicates: { threshold: 1 },\n flags: {\n sdkPatterns: [\n { function: \"getBooleanValue\", nameArg: 0, provider: \"OpenFeature\" },\n { function: \"getStringValue\", nameArg: 0, provider: \"OpenFeature\" },\n { function: \"getNumberValue\", nameArg: 0, provider: \"OpenFeature\" },\n { function: \"getObjectValue\", nameArg: 0, provider: \"OpenFeature\" },\n { function: \"getBooleanDetails\", nameArg: 0, provider: \"OpenFeature\" },\n { function: \"getStringDetails\", nameArg: 0, provider: \"OpenFeature\" },\n { function: \"getNumberDetails\", nameArg: 0, provider: \"OpenFeature\" },\n { function: \"getObjectDetails\", nameArg: 0, provider: \"OpenFeature\" },\n { function: \"getBoolean\", nameArg: 0, provider: \"OpenFeature (Effect service)\" },\n ],\n },\n framework: [\n {\n name: \"vite-plus-adopt\",\n enablers: [\"@r_masseater/msch\"],\n toolingDependencies: [\n \"@commitlint/config-conventional\",\n \"@textlint-ja/textlint-rule-preset-ai-writing\",\n \"fallow\",\n \"textlint-rule-preset-ja-technical-writing\",\n ],\n },\n {\n name: \"oxlint-plugin-decision\",\n enablers: [\"@r_masseater/msch\"],\n entryPoints: [\"decision-rules.ts\"],\n },\n {\n name: \"skills\",\n enablers: [\"skills\"],\n configPatterns: [\"skills-lock.json\"],\n toolingDependencies: [\"skills\"],\n },\n {\n name: \"tanstack-intent\",\n enablers: [\"@tanstack/intent\"],\n configPatterns: [\".intent/hooks/*.mjs\"],\n toolingDependencies: [\"@tanstack/intent\"],\n },\n ],\n rules: {\n \"unused-files\": \"error\",\n \"unused-exports\": \"error\",\n \"unused-types\": \"error\",\n \"private-type-leaks\": \"error\",\n \"deprecated-exports-in-use\": \"error\",\n \"unused-dependencies\": \"error\",\n \"unused-dev-dependencies\": \"error\",\n \"unused-optional-dependencies\": \"error\",\n \"unused-enum-members\": \"error\",\n \"unused-class-members\": \"error\",\n \"unused-store-members\": \"error\",\n \"unprovided-injects\": \"error\",\n \"unrendered-components\": \"error\",\n \"unused-component-props\": \"error\",\n \"unused-component-emits\": \"error\",\n \"unused-component-inputs\": \"error\",\n \"unused-component-outputs\": \"error\",\n \"unused-svelte-events\": \"error\",\n \"unused-server-actions\": \"error\",\n \"unused-load-data-keys\": \"error\",\n \"prop-drilling\": \"error\",\n \"thin-wrapper\": \"error\",\n \"duplicate-prop-shape\": \"error\",\n \"css-token-drift\": \"error\",\n \"css-duplicate-block\": \"error\",\n \"css-selector-complexity\": \"error\",\n \"css-dead-surface\": \"error\",\n \"css-broken-reference\": \"error\",\n \"complexity-cyclomatic\": \"error\",\n \"complexity-cognitive\": \"error\",\n \"complexity-crap\": \"error\",\n \"unresolved-imports\": \"error\",\n \"unlisted-dependencies\": \"error\",\n \"duplicate-exports\": \"error\",\n \"type-only-dependencies\": \"error\",\n \"test-only-dependencies\": \"error\",\n \"dev-dependencies-in-production\": \"error\",\n \"circular-dependencies\": \"error\",\n \"re-export-cycle\": \"error\",\n \"boundary-violation\": \"error\",\n \"feature-flags\": \"error\",\n \"stale-suppressions\": \"error\",\n \"require-suppression-reason\": \"error\",\n \"unused-catalog-entries\": \"error\",\n \"empty-catalog-groups\": \"error\",\n \"unresolved-catalog-references\": \"error\",\n \"unused-dependency-overrides\": \"error\",\n \"misconfigured-dependency-overrides\": \"error\",\n \"security-client-server-leak\": \"error\",\n \"security-sink\": \"error\",\n \"policy-violation\": \"error\",\n \"invalid-client-export\": \"error\",\n \"mixed-client-server-barrel\": \"error\",\n \"misplaced-directive\": \"error\",\n \"route-collision\": \"error\",\n \"dynamic-segment-name-conflict\": \"error\",\n },\n};\n\nconst isRecord = (value: unknown): value is Readonly<Record<string, unknown>> =>\n Predicate.isReadonlyObject(value) && !Arr.isArray(value);\n\nconst mergeValue = (base: unknown, own: unknown): unknown => {\n if (Arr.isArray(base) && Arr.isArray(own)) {\n return [...base, ...own];\n }\n if (isRecord(base) && isRecord(own)) {\n return Rec.union(base, own, mergeValue);\n }\n return own;\n};\n\nexport const fallowOf = (owns: readonly FallowConfig[]): FallowConfig =>\n Arr.reduce(owns, PRESET, (merged, own) => Rec.union(merged, own, mergeValue));\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,MAAa,YAAY;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,gBAAgB,CAAC,gBAAgB;AAEvC,MAAM,WAAW,CAAC,kBAAkB,oBAAoB;AAExD,MAAa,SAAS;CAAC,GAAG;CAAW,GAAG;CAAe,GAAG;AAAQ;;ACpBlE,MAAa,gBAAgB;CAC3B,4BAA4B;CAC5B,8BAA8B;CAC9B,mCAAmC;CACnC,8BAA8B;CAC9B,iCAAiC;CACjC,uCAAuC;CACvC,6BAA6B;CAC7B,oCAAoC;CACpC,8BAA8B;AAChC;AAEA,MAAa,wBAIT;CACF,OAAO,CAAC,SAAS;CACjB,cAAc,CAAC,cAAc;CAC7B,OAAO,EAAE,+BAA+B,QAAQ;AAClD;AAEA,MAAa,kBAGT;CACF,OAAO,CAAC,mBAAmB;CAC3B,OAAO;EACL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