@r_masseater/msch 0.31.0 → 0.34.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 (34) hide show
  1. package/README.md +18 -49
  2. package/dist/{cli-contract-kyLbx4PX.mjs → cli-contract-mzluqQvf.mjs} +2 -2
  3. package/dist/{cli-contract-kyLbx4PX.mjs.map → cli-contract-mzluqQvf.mjs.map} +1 -1
  4. package/dist/cli.mjs +11531 -2476
  5. package/dist/cli.mjs.map +1 -1
  6. package/dist/config.d.mts +28 -0
  7. package/dist/config.mjs +192 -0
  8. package/dist/config.mjs.map +1 -0
  9. package/dist/decision-rules.d.mts +1 -1
  10. package/dist/decision-rules.mjs +1 -1
  11. package/dist/{lint-preset-CSUe9lcG.mjs → define-lint-preset-X-_KpO1E.mjs} +50 -20
  12. package/dist/define-lint-preset-X-_KpO1E.mjs.map +1 -0
  13. package/dist/{index-y3tq-lW5.d.mts → index-BOXkKig9.d.mts} +2 -1
  14. package/dist/index-C02uoL59.d.mts +41 -0
  15. package/dist/lint-rules.mjs +96 -8
  16. package/dist/lint-rules.mjs.map +1 -1
  17. package/dist/lint.d.mts +1 -1
  18. package/dist/lint.mjs +1 -1
  19. package/dist/oxlint.mjs +2 -2
  20. package/dist/oxlint.mjs.map +1 -1
  21. package/dist/{workspace-DuBjvDMC.mjs → package-DU5r3bvx.mjs} +388 -359
  22. package/dist/package-DU5r3bvx.mjs.map +1 -0
  23. package/dist/{repository-files-B11FFAIk.mjs → repository-files-R0NW0NE9.mjs} +33 -2
  24. package/dist/repository-files-R0NW0NE9.mjs.map +1 -0
  25. package/dist/workspace-settings.d.mts +2 -38
  26. package/dist/workspace-settings.mjs +71 -57
  27. package/dist/workspace-settings.mjs.map +1 -1
  28. package/package.json +23 -5
  29. package/skills/msch-checks/SKILL.md +31 -5
  30. package/skills/repository-config/SKILL.md +88 -0
  31. package/skills/workspace-settings/SKILL.md +62 -0
  32. package/dist/lint-preset-CSUe9lcG.mjs.map +0 -1
  33. package/dist/repository-files-B11FFAIk.mjs.map +0 -1
  34. package/dist/workspace-DuBjvDMC.mjs.map +0 -1
@@ -0,0 +1,28 @@
1
+ import { s as WorkspaceSettings } from "./index-C02uoL59.mjs";
2
+ import { ToolSections } from "@r_masseater/vite-plus-adopt";
3
+ import { UserConfig } from "vite-plus";
4
+ import { OxlintOverride } from "vite-plus/lint";
5
+ interface TextOptions {
6
+ readonly ignores?: readonly string[];
7
+ readonly kanji?: readonly string[];
8
+ readonly technicalWriting?: Readonly<Record<string, boolean | object>>;
9
+ readonly rules?: Readonly<Record<string, boolean | object>>;
10
+ readonly filters?: Readonly<Record<string, boolean | object>>;
11
+ readonly sources?: NonNullable<NonNullable<ToolSections["textlint"]>["sources"]>;
12
+ }
13
+ interface SecretOptions {
14
+ readonly lines?: readonly string[];
15
+ readonly paths?: readonly string[];
16
+ }
17
+ export interface RepositoryOptions {
18
+ readonly workspace: WorkspaceSettings;
19
+ readonly overrides?: readonly OxlintOverride[];
20
+ readonly secrets?: SecretOptions;
21
+ readonly textlint?: TextOptions;
22
+ readonly run?: {
23
+ readonly tasks?: Readonly<Record<string, string>>;
24
+ };
25
+ }
26
+ export declare const repositoryConfig: (options: RepositoryOptions) => UserConfig;
27
+ export {};
28
+ //# sourceMappingURL=config.d.mts.map
@@ -0,0 +1,192 @@
1
+ import { d as decisionTestRules, f as generated, n as steigerRules, o as requiredStack, s as lint, t as textlintPresets } from "./define-lint-preset-X-_KpO1E.mjs";
2
+ import { Array, Record, pipe } from "effect";
3
+ import { fileURLToPath } from "node:url";
4
+ // src/app/repository-tasks.ts
5
+ const NOT_INPUTS = [
6
+ "!node_modules/.pnpm-store",
7
+ "!node_modules/.pnpm-store/**",
8
+ "!node_modules/.tmp",
9
+ "!node_modules/.tmp/**",
10
+ "!target/**",
11
+ "!node_modules/.vitest-cache/**",
12
+ "!node_modules/.cache/**"
13
+ ];
14
+ const UNTRACKED_ENV = [
15
+ "CLOUDFLARE_ACCOUNT_ID",
16
+ "CLOUDFLARE_AI_GATEWAY_ID",
17
+ "CLOUDFLARE_API_TOKEN",
18
+ "CLAUDECODE",
19
+ "CLAUDE_CODE_REMOTE",
20
+ "GITHUB_ACTIONS",
21
+ "HTTPS_PROXY",
22
+ "https_proxy",
23
+ "NO_PROXY",
24
+ "no_proxy",
25
+ "SSL_CERT_FILE",
26
+ "NODE_EXTRA_CA_CERTS"
27
+ ];
28
+ const FALLOW = [
29
+ "fallow --skip dupes --fail-on-issues --quiet --format compact",
30
+ "fallow dead-code --no-production --fail-on-issues --quiet --format compact",
31
+ "fallow dead-code --no-production --quiet --format json | jq -n 'input | {prop_drilling_chains, thin_wrappers, duplicate_prop_shapes} | with_entries(select(.value | length > 0)) | if length > 0 then halt_error else empty end'",
32
+ "fallow dupes --fail-on-issues --quiet --format compact",
33
+ "fallow security --fail-on-issues --quiet"
34
+ ];
35
+ const AUDIT = "before=\"$(cksum pnpm-workspace.yaml)\"; vp pm audit --fix || exit; if [ \"$before\" != \"$(cksum pnpm-workspace.yaml)\" ]; then echo \"vp pm audit --fix rewrote pnpm-workspace.yaml. Run vp install and commit the diff.\" >&2; exit 1; fi";
36
+ const tasksOf = ({ workspace, commands }) => {
37
+ const inputs = [
38
+ { auto: true },
39
+ ...workspace.ignoredDirectories,
40
+ ...NOT_INPUTS
41
+ ];
42
+ const checks = {
43
+ fallow: {
44
+ command: FALLOW,
45
+ cache: {
46
+ input: [
47
+ ...inputs,
48
+ "!.fallow/**",
49
+ "!**/dist/**",
50
+ "!**/.fallow-verified"
51
+ ],
52
+ output: []
53
+ }
54
+ },
55
+ check: {
56
+ command: "GOMEMLIMIT=4GiB vp check --deny-warnings",
57
+ cache: {
58
+ input: inputs,
59
+ untrackedEnv: UNTRACKED_ENV
60
+ }
61
+ },
62
+ test: {
63
+ command: "vp test run",
64
+ dependsOn: ["check"],
65
+ cache: { input: [...inputs, "!**/.cache/**"] }
66
+ },
67
+ msch: {
68
+ command: "msch",
69
+ dependsOn: ["check"],
70
+ cache: false
71
+ },
72
+ audit: {
73
+ command: AUDIT,
74
+ cache: false
75
+ },
76
+ ...commands
77
+ };
78
+ return {
79
+ ...checks,
80
+ verify: {
81
+ command: [],
82
+ dependsOn: [...workspace.tasks.verify, ...Record.keys(checks)]
83
+ }
84
+ };
85
+ };
86
+ // src/app/repository-text.ts
87
+ const TEXT_IGNORES = [
88
+ "AGENTS.md",
89
+ ".agents/skills/**",
90
+ "CHANGELOG.md"
91
+ ];
92
+ const SENTENCE_LENGTH = 120;
93
+ const KANJI_RUN = 6;
94
+ const PUBLIC_LINES = [String.raw`\bCF_BEACON_TOKEN = "[0-9a-f]{32}"`];
95
+ const textlintOf = ({ ignores = [], kanji = [], technicalWriting = {}, rules = {}, filters = {}, sources = [] }) => ({
96
+ ignores: [...TEXT_IGNORES, ...ignores],
97
+ presets: textlintPresets,
98
+ sources,
99
+ filters: { ...filters },
100
+ rules: {
101
+ "@textlint-ja/preset-ai-writing": true,
102
+ "@r_masseater/preset-ja": true,
103
+ "preset-ja-technical-writing": {
104
+ "sentence-length": { max: SENTENCE_LENGTH },
105
+ "ja-no-mixed-period": { allowPeriodMarks: [":"] },
106
+ "no-mix-dearu-desumasu": {
107
+ preferInBody: "である",
108
+ preferInList: "である"
109
+ },
110
+ "max-kanji-continuous-len": {
111
+ max: KANJI_RUN,
112
+ allow: [...kanji]
113
+ },
114
+ ...technicalWriting
115
+ },
116
+ ...rules
117
+ }
118
+ });
119
+ const anyOf = (subject) => (patterns) => {
120
+ if (Array.isReadonlyArrayEmpty(patterns)) return [];
121
+ return [`matchesAny(${subject}, [${pipe(patterns, Array.map((pattern) => `\`${pattern}\``), Array.join(", "))}])`];
122
+ };
123
+ const betterleaksOf = ({ lines = [], paths = [] }) => ({
124
+ extend: { useDefault: true },
125
+ filter: pipe([...anyOf("finding.line")([...PUBLIC_LINES, ...lines]), ...anyOf(`attributes["path"]`)(paths)], Array.join(" || "))
126
+ });
127
+ // src/app/repository-config.ts
128
+ const COMMIT_CONVENTION = fileURLToPath(import.meta.resolve("@commitlint/config-conventional"));
129
+ const lintOf = ({ workspace, overrides = [] }) => ({
130
+ ...lint,
131
+ ignorePatterns: [...generated, ...workspace.lint.ignorePatterns],
132
+ overrides: [
133
+ ...lint.overrides,
134
+ {
135
+ files: [...workspace.lint.shadcnUi],
136
+ rules: { "react/jsx-props-no-spreading": "off" }
137
+ },
138
+ {
139
+ files: [...workspace.lint.publicEntries, ...workspace.lint.deployEntries],
140
+ rules: { "import/no-default-export": "off" }
141
+ },
142
+ ...overrides,
143
+ ...workspace.lint.overrides,
144
+ {
145
+ files: ["**/*.test.ts"],
146
+ rules: decisionTestRules
147
+ }
148
+ ]
149
+ });
150
+ const repositoryConfig = (options) => {
151
+ const { workspace, secrets = {}, textlint = {}, run = {} } = options;
152
+ return {
153
+ commitlint: { extends: [COMMIT_CONVENTION] },
154
+ dependencyRules: {
155
+ allowed: pipe(workspace.devDependencies, Record.map(({ workspaces, dependencies }) => ({
156
+ workspaces,
157
+ dependencies,
158
+ fields: ["devDependencies"]
159
+ }))),
160
+ banned: requiredStack,
161
+ peerRanges: "intersect"
162
+ },
163
+ betterleaks: betterleaksOf(secrets),
164
+ steiger: {
165
+ paths: workspace.sourceDirectories,
166
+ rules: steigerRules
167
+ },
168
+ textlint: textlintOf(textlint),
169
+ test: {
170
+ projects: [...workspace.testProjects],
171
+ passWithNoTests: true
172
+ },
173
+ staged: { "*": "vp fmt --no-error-on-unmatched-pattern" },
174
+ fmt: {
175
+ ignorePatterns: [...generated, ...workspace.lint.ignorePatterns],
176
+ sortImports: true,
177
+ sortTailwindcss: true,
178
+ sortPackageJson: true
179
+ },
180
+ lint: lintOf(options),
181
+ run: {
182
+ cache: true,
183
+ tasks: tasksOf({
184
+ workspace,
185
+ commands: run.tasks ?? {}
186
+ })
187
+ }
188
+ };
189
+ };
190
+ export { repositoryConfig };
191
+
192
+ //# sourceMappingURL=config.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.mjs","names":["Rec","Arr","preset","Rec"],"sources":["../src/app/repository-tasks.ts","../src/app/repository-text.ts","../src/app/repository-config.ts"],"sourcesContent":["import { Record as Rec } from \"effect\";\nimport type { UserConfig } from \"vite-plus\";\n\nimport type { WorkspaceSettings } from \"#/features/build-workspace-settings/index.ts\";\n\ntype Tasks = NonNullable<NonNullable<UserConfig[\"run\"]>[\"tasks\"]>;\n\nexport interface TaskOptions {\n readonly workspace: WorkspaceSettings;\n readonly commands: Readonly<Record<string, string>>;\n}\n\nconst NOT_INPUTS = [\n \"!node_modules/.pnpm-store\",\n \"!node_modules/.pnpm-store/**\",\n \"!node_modules/.tmp\",\n \"!node_modules/.tmp/**\",\n \"!target/**\",\n \"!node_modules/.vitest-cache/**\",\n \"!node_modules/.cache/**\",\n];\n\nconst UNTRACKED_ENV = [\n \"CLOUDFLARE_ACCOUNT_ID\",\n \"CLOUDFLARE_AI_GATEWAY_ID\",\n \"CLOUDFLARE_API_TOKEN\",\n \"CLAUDECODE\",\n \"CLAUDE_CODE_REMOTE\",\n \"GITHUB_ACTIONS\",\n \"HTTPS_PROXY\",\n \"https_proxy\",\n \"NO_PROXY\",\n \"no_proxy\",\n \"SSL_CERT_FILE\",\n \"NODE_EXTRA_CA_CERTS\",\n];\n\nconst FALLOW = [\n \"fallow --skip dupes --fail-on-issues --quiet --format compact\",\n \"fallow dead-code --no-production --fail-on-issues --quiet --format compact\",\n \"fallow dead-code --no-production --quiet --format json | jq -n 'input | {prop_drilling_chains, thin_wrappers, duplicate_prop_shapes} | with_entries(select(.value | length > 0)) | if length > 0 then halt_error else empty end'\",\n \"fallow dupes --fail-on-issues --quiet --format compact\",\n \"fallow security --fail-on-issues --quiet\",\n];\n\nconst AUDIT =\n 'before=\"$(cksum pnpm-workspace.yaml)\"; vp pm audit --fix || exit; if [ \"$before\" != \"$(cksum pnpm-workspace.yaml)\" ]; then echo \"vp pm audit --fix rewrote pnpm-workspace.yaml. Run vp install and commit the diff.\" >&2; exit 1; fi';\n\nexport const tasksOf = ({\n workspace,\n commands,\n}: TaskOptions): NonNullable<NonNullable<UserConfig[\"run\"]>[\"tasks\"]> => {\n const inputs = [{ auto: true }, ...workspace.ignoredDirectories, ...NOT_INPUTS];\n const checks: Tasks = {\n fallow: {\n command: FALLOW,\n cache: {\n input: [...inputs, \"!.fallow/**\", \"!**/dist/**\", \"!**/.fallow-verified\"],\n output: [],\n },\n },\n check: {\n command: \"GOMEMLIMIT=4GiB vp check --deny-warnings\",\n cache: { input: inputs, untrackedEnv: UNTRACKED_ENV },\n },\n test: {\n command: \"vp test run\",\n dependsOn: [\"check\"],\n cache: { input: [...inputs, \"!**/.cache/**\"] },\n },\n msch: { command: \"msch\", dependsOn: [\"check\"], cache: false },\n audit: { command: AUDIT, cache: false },\n ...commands,\n };\n return {\n ...checks,\n verify: { command: [], dependsOn: [...workspace.tasks.verify, ...Rec.keys(checks)] },\n };\n};\n","import type { ToolSections } from \"@r_masseater/vite-plus-adopt\";\nimport { Array as Arr, pipe } from \"effect\";\n\nimport { textlintPresets } from \"#/features/define-lint-preset/index.ts\";\n\nexport interface TextOptions {\n readonly ignores?: readonly string[];\n readonly kanji?: readonly string[];\n readonly technicalWriting?: Readonly<Record<string, boolean | object>>;\n readonly rules?: Readonly<Record<string, boolean | object>>;\n readonly filters?: Readonly<Record<string, boolean | object>>;\n readonly sources?: NonNullable<NonNullable<ToolSections[\"textlint\"]>[\"sources\"]>;\n}\n\nexport interface SecretOptions {\n readonly lines?: readonly string[];\n readonly paths?: readonly string[];\n}\n\nconst TEXT_IGNORES = [\"AGENTS.md\", \".agents/skills/**\", \"CHANGELOG.md\"];\nconst SENTENCE_LENGTH = 120;\nconst KANJI_RUN = 6;\nconst PUBLIC_LINES = [String.raw`\\bCF_BEACON_TOKEN = \"[0-9a-f]{32}\"`];\n\nexport const textlintOf = ({\n ignores = [],\n kanji = [],\n technicalWriting = {},\n rules = {},\n filters = {},\n sources = [],\n}: TextOptions): NonNullable<ToolSections[\"textlint\"]> => ({\n ignores: [...TEXT_IGNORES, ...ignores],\n presets: textlintPresets,\n sources,\n filters: { ...filters },\n rules: {\n \"@textlint-ja/preset-ai-writing\": true,\n \"@r_masseater/preset-ja\": true,\n \"preset-ja-technical-writing\": {\n \"sentence-length\": { max: SENTENCE_LENGTH },\n \"ja-no-mixed-period\": { allowPeriodMarks: [\":\"] },\n \"no-mix-dearu-desumasu\": { preferInBody: \"である\", preferInList: \"である\" },\n \"max-kanji-continuous-len\": { max: KANJI_RUN, allow: [...kanji] },\n ...technicalWriting,\n },\n ...rules,\n },\n});\n\nconst anyOf =\n (subject: string) =>\n (patterns: readonly string[]): readonly string[] => {\n if (Arr.isReadonlyArrayEmpty(patterns)) {\n return [];\n }\n const listed = pipe(\n patterns,\n Arr.map((pattern) => `\\`${pattern}\\``),\n Arr.join(\", \"),\n );\n return [`matchesAny(${subject}, [${listed}])`];\n };\n\nexport const betterleaksOf = ({\n lines = [],\n paths = [],\n}: SecretOptions): NonNullable<ToolSections[\"betterleaks\"]> => ({\n extend: { useDefault: true },\n filter: pipe(\n [...anyOf(\"finding.line\")([...PUBLIC_LINES, ...lines]), ...anyOf(`attributes[\"path\"]`)(paths)],\n Arr.join(\" || \"),\n ),\n});\n","import { fileURLToPath } from \"node:url\";\n\nimport { Record as Rec, pipe } from \"effect\";\nimport type { UserConfig } from \"vite-plus\";\nimport type { OxlintOverride } from \"vite-plus/lint\";\n\nimport type { WorkspaceSettings } from \"#/features/build-workspace-settings/index.ts\";\nimport {\n decisionTestRules,\n generated,\n lint as preset,\n requiredStack,\n steigerRules,\n} from \"#/features/define-lint-preset/index.ts\";\n\nimport { tasksOf } from \"./repository-tasks.ts\";\nimport { betterleaksOf, textlintOf } from \"./repository-text.ts\";\nimport type { SecretOptions, TextOptions } from \"./repository-text.ts\";\n\nexport interface RepositoryOptions {\n readonly workspace: WorkspaceSettings;\n readonly overrides?: readonly OxlintOverride[];\n readonly secrets?: SecretOptions;\n readonly textlint?: TextOptions;\n readonly run?: { readonly tasks?: Readonly<Record<string, string>> };\n}\n\nconst COMMIT_CONVENTION = fileURLToPath(import.meta.resolve(\"@commitlint/config-conventional\"));\n\nconst lintOf = ({\n workspace,\n overrides = [],\n}: RepositoryOptions): NonNullable<UserConfig[\"lint\"]> => ({\n ...preset,\n ignorePatterns: [...generated, ...workspace.lint.ignorePatterns],\n overrides: [\n ...preset.overrides,\n {\n files: [...workspace.lint.shadcnUi],\n rules: { \"react/jsx-props-no-spreading\": \"off\" },\n },\n {\n files: [...workspace.lint.publicEntries, ...workspace.lint.deployEntries],\n rules: { \"import/no-default-export\": \"off\" },\n },\n ...overrides,\n ...workspace.lint.overrides,\n { files: [\"**/*.test.ts\"], rules: decisionTestRules },\n ],\n});\n\nexport const repositoryConfig = (options: RepositoryOptions): UserConfig => {\n const { workspace, secrets = {}, textlint = {}, run = {} } = options;\n return {\n commitlint: { extends: [COMMIT_CONVENTION] },\n dependencyRules: {\n allowed: pipe(\n workspace.devDependencies,\n Rec.map(({ workspaces, dependencies }) => ({\n workspaces,\n dependencies,\n fields: [\"devDependencies\"] as const,\n })),\n ),\n banned: requiredStack,\n peerRanges: \"intersect\",\n },\n betterleaks: betterleaksOf(secrets),\n steiger: { paths: workspace.sourceDirectories, rules: steigerRules },\n textlint: textlintOf(textlint),\n test: { projects: [...workspace.testProjects], passWithNoTests: true },\n staged: { \"*\": \"vp fmt --no-error-on-unmatched-pattern\" },\n fmt: {\n ignorePatterns: [...generated, ...workspace.lint.ignorePatterns],\n sortImports: true,\n sortTailwindcss: true,\n sortPackageJson: true,\n },\n lint: lintOf(options),\n run: { cache: true, tasks: tasksOf({ workspace, commands: run.tasks ?? {} }) },\n };\n};\n"],"mappings":";;;;AAYA,MAAM,aAAa;CACjB;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,gBAAgB;CACpB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,SAAS;CACb;CACA;CACA;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D,OAAO;EACL,YAAY,EAAE,SAAS,CAAC,iBAAiB,EAAE;EAC3C,iBAAiB;GACf,SAAS,KACP,UAAU,iBACVC,OAAI,KAAK,EAAE,YAAY,oBAAoB;IACzC;IACA;IACA,QAAQ,CAAC,iBAAiB;GAC5B,EAAE,CACJ;GACA,QAAQ;GACR,YAAY;EACd;EACA,aAAa,cAAc,OAAO;EAClC,SAAS;GAAE,OAAO,UAAU;GAAmB,OAAO;EAAa;EACnE,UAAU,WAAW,QAAQ;EAC7B,MAAM;GAAE,UAAU,CAAC,GAAG,UAAU,YAAY;GAAG,iBAAiB;EAAK;EACrE,QAAQ,EAAE,KAAK,yCAAyC;EACxD,KAAK;GACH,gBAAgB,CAAC,GAAG,WAAW,GAAG,UAAU,KAAK,cAAc;GAC/D,aAAa;GACb,iBAAiB;GACjB,iBAAiB;EACnB;EACA,MAAM,OAAO,OAAO;EACpB,KAAK;GAAE,OAAO;GAAM,OAAO,QAAQ;IAAE;IAAW,UAAU,IAAI,SAAS,CAAC;GAAE,CAAC;EAAE;CAC/E;AACF"}
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./index-y3tq-lW5.mjs";
1
+ import { t as _default } from "./index-BOXkKig9.mjs";
2
2
  export { _default as default };
@@ -1 +1 @@
1
- export { p as default } from "./lint-preset-CSUe9lcG.mjs";
1
+ export { p as default } from "./define-lint-preset-X-_KpO1E.mjs";
@@ -1,5 +1,6 @@
1
1
  import { t as COMMENT_DIRECTIVES } from "./comment-directives-WcDqvLwJ.mjs";
2
- import { Array, Record, String, Struct, pipe } from "effect";
2
+ import { createRequire } from "node:module";
3
+ import { Array, Option, Predicate, Record, String, Struct, pipe } from "effect";
3
4
  import { fileURLToPath } from "node:url";
4
5
  import tanstackQuery from "@r_masseater/oxlint-typed-rules/tanstack-query";
5
6
  import tanstackRouter from "@r_masseater/oxlint-typed-rules/tanstack-router";
@@ -13,7 +14,7 @@ import { createDecisionPlugin, defineDecisionRule } from "@r_masseater/oxlint-pl
13
14
  import remotion from "@r_masseater/oxlint-typed-rules/remotion";
14
15
  import fsd from "@r_masseater/vite-plus-adopt/fsd";
15
16
  import presetJa from "@r_masseater/textlint-rule-preset-ja";
16
- // src/features/lint-preset/config/lint-overrides.config.ts
17
+ // src/features/define-lint-preset/config/lint-overrides.config.ts
17
18
  const LOGPUSH = "Property[key.name=\"logpush\"]:not([value.value=false])";
18
19
  const LOGPUSH_MESSAGE = "Worker には logpush: true を付ける。付けないと、その Worker のログが Logpush に流れない";
19
20
  const CPU_LIMIT = "Property[key.name=\"limits\"]:has(Property[key.name=\"cpuMs\"])";
@@ -56,6 +57,14 @@ const cloudflareResourceSyntax = [
56
57
  selector: "CallExpression[callee.object.name=\"AI\"][callee.property.name=\"Gateway\"] > ObjectExpression.arguments:not(:has(Property[key.name=\"collectLogs\"][value.value=true]))",
57
58
  message: "AI Gateway には collectLogs: true を付ける。付けないと、モデルの呼び出しが後から引けない"
58
59
  },
60
+ {
61
+ selector: "CallExpression[callee.object.name=\"AI\"][callee.property.name=\"Gateway\"] > ObjectExpression.arguments:not(:has(Property[key.name=\"spendLimits\"] > ObjectExpression > Property[key.name=\"enabled\"][value.value=true]))",
62
+ message: "AI Gateway には spendLimits を enabled: true で付け、日ごとの費用の上限を掛ける。付けないと、従量課金のモデルの呼び出しが上限なく請求される"
63
+ },
64
+ {
65
+ selector: "CallExpression[callee.object.name=\"AI\"][callee.property.name=\"Gateway\"] > ObjectExpression.arguments:not(:has(Property[key.name=\"cacheTtl\"]))",
66
+ message: "AI Gateway には cacheTtl を付け、同じ問いの答えをキャッシュする。付けないと、同じ問いにも毎回課金される"
67
+ },
59
68
  {
60
69
  selector: "MemberExpression[object.name=\"Rum\"][property.name=\"Site\"]",
61
70
  message: "Rum.Site は使わない。CI のトークンに Account Settings Write が要る。Cloudflare API でホストごとに一度サイトを作り、トークンを CF_BEACON_TOKEN に置く"
@@ -68,7 +77,11 @@ const removalPolicySyntax = {
68
77
  const removalPolicyOverride = {
69
78
  files: ["**/*.ts"],
70
79
  excludeFiles: ["**/*.test.ts"],
71
- rules: { "eslint-js/no-restricted-syntax": ["error", removalPolicySyntax] }
80
+ rules: { "eslint-js/no-restricted-syntax": [
81
+ "error",
82
+ ...cloudflareResourceSyntax,
83
+ removalPolicySyntax
84
+ ] }
72
85
  };
73
86
  const alchemyOverride = {
74
87
  files: ["**/alchemy.run.ts"],
@@ -98,7 +111,7 @@ const commandsOverride = {
98
111
  "effecttsgo/node-builtin-import": "off"
99
112
  }
100
113
  };
101
- // src/features/lint-preset/config/decision-rules.ts
114
+ // src/features/define-lint-preset/config/decision-rules.ts
102
115
  var decision_rules_default = createDecisionPlugin({
103
116
  name: "stack",
104
117
  rules: [
@@ -125,7 +138,7 @@ var decision_rules_default = createDecisionPlugin({
125
138
  })
126
139
  ]
127
140
  });
128
- // src/features/lint-preset/config/lint.config.ts
141
+ // src/features/define-lint-preset/config/lint.config.ts
129
142
  const generated = [
130
143
  "**/routeTree.gen.ts",
131
144
  "**/generated/**",
@@ -133,11 +146,10 @@ const generated = [
133
146
  ".claude/skills/**",
134
147
  ".intent/**",
135
148
  "AGENTS.md",
136
- "skills-lock.json",
137
149
  "**/CHANGELOG.md",
138
150
  ".github/release-please/*manifest.json",
139
151
  "**/.release-please-manifest.json",
140
- "**/*.d.rpp.ts",
152
+ "**/*.d.*.ts",
141
153
  "**/src-tauri/gen/**"
142
154
  ];
143
155
  const asErrors = (names) => Record.fromEntries(pipe(names, Array.map((name) => [name, "error"])));
@@ -169,7 +181,7 @@ const shadcnRestyleContracts = [{
169
181
  "mb-*"
170
182
  ]
171
183
  }];
172
- // src/features/lint-preset/config/readonly-binary.config.ts
184
+ // src/features/define-lint-preset/config/readonly-binary.config.ts
173
185
  const BINARY_DATA = [
174
186
  "ArrayBuffer",
175
187
  "DataView",
@@ -185,7 +197,7 @@ const BINARY_DATA = [
185
197
  "Uint16Array",
186
198
  "Uint32Array"
187
199
  ];
188
- // src/features/lint-preset/config/readonly-browser.config.ts
200
+ // src/features/define-lint-preset/config/readonly-browser.config.ts
189
201
  const WEBGPU_HANDLES = [
190
202
  "GPUDevice",
191
203
  "GPUCanvasContext",
@@ -215,7 +227,7 @@ const BROWSER_HANDLES = [
215
227
  "AudioBufferSourceNode",
216
228
  ...WEBGPU_HANDLES
217
229
  ];
218
- // src/features/lint-preset/config/readonly-lint-tools.config.ts
230
+ // src/features/define-lint-preset/config/readonly-lint-tools.config.ts
219
231
  const lintToolReadonlyAllow = [
220
232
  {
221
233
  from: "package",
@@ -283,7 +295,7 @@ const lintToolReadonlyAllow = [
283
295
  {
284
296
  from: "package",
285
297
  package: "@r_masseater/vite-plus-adopt",
286
- name: ["CheckPackageOptions"]
298
+ name: ["CheckPackageOptions", "TextlintSource"]
287
299
  },
288
300
  {
289
301
  from: "file",
@@ -307,7 +319,7 @@ const lintToolReadonlyAllow = [
307
319
  ]
308
320
  }
309
321
  ];
310
- // src/features/lint-preset/config/readonly-types.config.ts
322
+ // src/features/define-lint-preset/config/readonly-types.config.ts
311
323
  const readonlyParameterAllow = [
312
324
  {
313
325
  from: "lib",
@@ -754,7 +766,7 @@ const readonlyParameterAllow = [
754
766
  ]
755
767
  }
756
768
  ];
757
- // src/features/lint-preset/config/preset.ts
769
+ // src/features/define-lint-preset/config/preset.ts
758
770
  const resolved = (specifier) => fileURLToPath(import.meta.resolve(specifier));
759
771
  const DECISION_TIMEOUT_MS = 5e4;
760
772
  const typedRules = "@r_masseater/oxlint-typed-rules";
@@ -883,6 +895,7 @@ const lint = {
883
895
  "import/prefer-default-export": "off",
884
896
  "import/group-exports": "off",
885
897
  "import/exports-last": "off",
898
+ "msch-lint/ecosystem-readers": "error",
886
899
  "msch-lint/inline-exports": "error",
887
900
  "msch-lint/ui-state-in-atoms": "error",
888
901
  "msch-lint/no-hand-written-sql": "error",
@@ -956,7 +969,7 @@ const lint = {
956
969
  reportUnusedDisableDirectives: "error"
957
970
  }
958
971
  };
959
- // src/features/lint-preset/config/required-stack.config.ts
972
+ // src/features/define-lint-preset/config/required-stack.config.ts
960
973
  const UI_STATE = "UI 状態は effect-atom だけで扱う";
961
974
  const INSTRUMENTATION = "計装は Effect のトレーシングだけで扱う";
962
975
  const INFRASTRUCTURE = "インフラは Alchemy の IaC と Cloudflare だけで扱い、wrangler は使わない";
@@ -1079,6 +1092,7 @@ const requiredStack = {
1079
1092
  "tarts",
1080
1093
  "it-tar"
1081
1094
  ],
1095
+ "エージェントスキルは vite.config.ts の skills に書き、msch --prepare で入れる": ["skills"],
1082
1096
  "フィーチャーフラグは OpenFeature だけで扱う": [
1083
1097
  "launchdarkly-*",
1084
1098
  "@launchdarkly/*",
@@ -1140,25 +1154,41 @@ const requiredStack = {
1140
1154
  "cdktf"
1141
1155
  ]
1142
1156
  };
1143
- // src/features/lint-preset/config/traced-rules.config.ts
1157
+ // src/features/define-lint-preset/config/traced-rules.config.ts
1144
1158
  const tracedRules = {
1145
1159
  "msch-lint/traced-elysia": "error",
1146
1160
  "msch-lint/traced-effect-run": "error"
1147
1161
  };
1148
- // src/features/lint-preset/config/remotion-rules.config.ts
1162
+ // src/features/define-lint-preset/config/remotion-rules.config.ts
1149
1163
  const remotionRules = allRulesOf({
1150
1164
  prefix: "@remotion",
1151
1165
  rules: remotion.rules
1152
1166
  });
1153
- // src/features/lint-preset/config/fsd-rules.ts
1167
+ // src/features/define-lint-preset/config/fsd-rules.ts
1154
1168
  const steigerRules = [...fsd.configs.recommended, { rules: {
1169
+ "fsd/excessive-slicing": "off",
1155
1170
  "fsd/insignificant-slice": "off",
1156
1171
  "fsd/no-cross-imports": "error",
1157
1172
  "fsd/no-higher-level-imports": "error",
1158
1173
  "fsd/no-wildcard-exports": "error"
1159
1174
  } }];
1160
- // src/features/lint-preset/config/textlint-presets.config.ts
1161
- const textlintPresets = { "@r_masseater/preset-ja": presetJa };
1175
+ // src/features/define-lint-preset/config/textlint-presets.config.ts
1176
+ const isPreset = (value) => Predicate.hasProperty(value, "rules") && Predicate.isObject(value.rules) && Predicate.hasProperty(value, "rulesConfig") && Predicate.isObject(value.rulesConfig);
1177
+ const presetIn = (value) => {
1178
+ if (isPreset(value)) return Option.some(value);
1179
+ if (Predicate.hasProperty(value, "default")) return presetIn(value.default);
1180
+ return Option.none();
1181
+ };
1182
+ const required = createRequire(import.meta.url);
1183
+ const loadPreset = (specifier) => {
1184
+ const loaded = required(specifier);
1185
+ return Option.getOrThrowWith(presetIn(loaded), () => /* @__PURE__ */ new TypeError(`${specifier} does not export a textlint preset`));
1186
+ };
1187
+ const textlintPresets = {
1188
+ "@r_masseater/preset-ja": presetJa,
1189
+ "@textlint-ja/preset-ai-writing": loadPreset("@textlint-ja/textlint-rule-preset-ai-writing"),
1190
+ "preset-ja-technical-writing": loadPreset("textlint-rule-preset-ja-technical-writing")
1191
+ };
1162
1192
  export { removalPolicyOverride as _, INSTRUMENTATION as a, readonlyParameterAllow as c, decisionTestRules as d, generated as f, commandsOverride as g, cloudflareResourceSyntax as h, tracedRules as i, allRulesOf as l, alchemyOverride as m, steigerRules as n, requiredStack as o, decision_rules_default as p, remotionRules as r, lint as s, textlintPresets as t, decisionRules as u, removalPolicySyntax as v };
1163
1193
 
1164
- //# sourceMappingURL=lint-preset-CSUe9lcG.mjs.map
1194
+ //# sourceMappingURL=define-lint-preset-X-_KpO1E.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define-lint-preset-X-_KpO1E.mjs","names":["Rec","Arr","Str","effectPresets","decisionPlugin","shadcn"],"sources":["../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/lint.config.ts","../src/features/define-lint-preset/config/readonly-binary.config.ts","../src/features/define-lint-preset/config/readonly-browser.config.ts","../src/features/define-lint-preset/config/readonly-lint-tools.config.ts","../src/features/define-lint-preset/config/readonly-types.config.ts","../src/features/define-lint-preset/config/preset.ts","../src/features/define-lint-preset/config/required-stack.config.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/fsd-rules.ts","../src/features/define-lint-preset/config/textlint-presets.config.ts"],"sourcesContent":["const LOGPUSH = 'Property[key.name=\"logpush\"]:not([value.value=false])';\nconst LOGPUSH_MESSAGE =\n \"Worker には logpush: true を付ける。付けないと、その Worker のログが Logpush に流れない\";\n\nconst CPU_LIMIT = 'Property[key.name=\"limits\"]:has(Property[key.name=\"cpuMs\"])';\nconst CPU_LIMIT_MESSAGE =\n \"コードを動かす Worker には limits.cpuMs を付け、本番の CPU 時間の最大値をわずかに上回る値にする。付けないと、1 回の暴走が上限の CPU 時間まで請求される\";\n\nconst UNATTRIBUTED_MODEL_CALL =\n \"モデルの呼び出しは AI Gateway を通し、呼び出し元を metadata に載せる。載せないと、費用やエラーを後から呼び出し元で引けない\";\n\nexport const cloudflareResourceSyntax: readonly Readonly<{ selector: string; message: string }>[] =\n [\n {\n selector: `CallExpression[callee.object.name=\"Workers\"][callee.property.name=\"Worker\"] > ObjectExpression.arguments:not(:has(${LOGPUSH}))`,\n message: LOGPUSH_MESSAGE,\n },\n {\n selector: `CallExpression[callee.object.name=\"Website\"] > ObjectExpression.arguments:not(:has(${LOGPUSH}))`,\n message: LOGPUSH_MESSAGE,\n },\n {\n selector: `CallExpression[callee.object.name=/^(Workers|Website)$/] > ObjectExpression.arguments:has(Property[key.name=\"main\"]):not(:has(${CPU_LIMIT}))`,\n message: CPU_LIMIT_MESSAGE,\n },\n {\n selector: `CallExpression[callee.object.name=\"Website\"]:not([callee.property.name=\"StaticSite\"]) > ObjectExpression.arguments:not(:has(${CPU_LIMIT}))`,\n message: CPU_LIMIT_MESSAGE,\n },\n {\n selector:\n 'CallExpression[callee.property.name=\"run\"][callee.object.property.name=\"AI\"][arguments.length<3]',\n message: UNATTRIBUTED_MODEL_CALL,\n },\n {\n selector:\n 'CallExpression[callee.name=\"runWorkersAi\"] > ObjectExpression > Property[key.name=\"call\"] > ArrowFunctionExpression[params.length=0]',\n message: UNATTRIBUTED_MODEL_CALL,\n },\n {\n selector:\n 'CallExpression[callee.name=\"createAI\"] > ObjectExpression.arguments:not(:has(Property[key.name=\"metadata\"]))',\n message: UNATTRIBUTED_MODEL_CALL,\n },\n {\n selector:\n 'ObjectExpression:has(Property[key.value=\"cf-aig-gateway-id\"]):not(:has(Property[key.value=\"cf-aig-metadata\"]))',\n message: UNATTRIBUTED_MODEL_CALL,\n },\n {\n selector:\n 'CallExpression[callee.object.name=\"AI\"][callee.property.name=\"Gateway\"] > ObjectExpression.arguments:not(:has(Property[key.name=\"collectLogs\"][value.value=true]))',\n message:\n \"AI Gateway には collectLogs: true を付ける。付けないと、モデルの呼び出しが後から引けない\",\n },\n {\n selector:\n 'CallExpression[callee.object.name=\"AI\"][callee.property.name=\"Gateway\"] > ObjectExpression.arguments:not(:has(Property[key.name=\"spendLimits\"] > ObjectExpression > Property[key.name=\"enabled\"][value.value=true]))',\n message:\n \"AI Gateway には spendLimits を enabled: true で付け、日ごとの費用の上限を掛ける。付けないと、従量課金のモデルの呼び出しが上限なく請求される\",\n },\n {\n selector:\n 'CallExpression[callee.object.name=\"AI\"][callee.property.name=\"Gateway\"] > ObjectExpression.arguments:not(:has(Property[key.name=\"cacheTtl\"]))',\n message:\n \"AI Gateway には cacheTtl を付け、同じ問いの答えをキャッシュする。付けないと、同じ問いにも毎回課金される\",\n },\n {\n selector: 'MemberExpression[object.name=\"Rum\"][property.name=\"Site\"]',\n message:\n \"Rum.Site は使わない。CI のトークンに Account Settings Write が要る。Cloudflare API でホストごとに一度サイトを作り、トークンを CF_BEACON_TOKEN に置く\",\n },\n ];\nexport const removalPolicySyntax: Readonly<{ selector: string; message: string }> = {\n selector:\n 'CallExpression[callee.object.name=/^(D1|R2)$/][callee.property.name=/^(Database|Bucket)$/]:not(CallExpression[callee.property.name=\"pipe\"][arguments.0.callee.object.name=\"RemovalPolicy\"] > MemberExpression.callee > CallExpression.object)',\n message:\n \"D1 と R2 は作り直すと中身が消えるので、alchemy の RemovalPolicy.protect() を .pipe で付けて置き換えと削除を止める\",\n};\n\nexport const removalPolicyOverride: {\n files: string[];\n excludeFiles: string[];\n rules: Readonly<Record<string, [\"error\", ...unknown[]]>>;\n} = {\n files: [\"**/*.ts\"],\n excludeFiles: [\"**/*.test.ts\"],\n rules: {\n \"eslint-js/no-restricted-syntax\": [\"error\", ...cloudflareResourceSyntax, removalPolicySyntax],\n },\n};\n\nexport const alchemyOverride: {\n files: string[];\n rules: Readonly<Record<string, [\"error\", ...unknown[]]>>;\n} = {\n files: [\"**/alchemy.run.ts\"],\n rules: {\n \"eslint-js/no-restricted-syntax\": [\n \"error\",\n ...cloudflareResourceSyntax,\n removalPolicySyntax,\n {\n selector: 'CallExpression[callee.name=\"Stack\"]:not([arguments.0.name=\"APP_NAME\"])',\n message: \"スタック名には app-name.ts の APP_NAME を渡す\",\n },\n {\n selector:\n 'Program:not(:has(YieldExpression[delegate=true] > Identifier.argument[name=\"requireAppPrefix\"]))',\n message:\n \"スタックの最後で app-name.ts の requireAppPrefix を yield* して、リソース名の prefix を検査する\",\n },\n {\n selector:\n 'CallExpression[callee.name=\"Stack\"] > .arguments:nth-child(3):not(:has(FunctionExpression > BlockStatement > ExpressionStatement:nth-last-child(2) > YieldExpression[delegate=true] > Identifier.argument[name=\"requireAppPrefix\"]))',\n message:\n \"スタックの最後で app-name.ts の requireAppPrefix を yield* して、リソース名の prefix を検査する\",\n },\n ],\n },\n};\n\nexport const commandsOverride: {\n files: string[];\n rules: Readonly<Record<string, \"off\">>;\n} = {\n files: [\"bin/**\"],\n rules: {\n \"node/no-process-env\": \"off\",\n \"node/no-sync\": \"off\",\n \"effecttsgo/node-builtin-import\": \"off\",\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.\",\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 fetch, cache or synchronize server data on the client with something other than TanStack Query, such as fetch inside useEffect, SWR or a hand-written cache? Answer no when server data on the client goes only through TanStack Query, or when the file handles none. 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だけで扱う。\",\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 { 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\nexport const generated = [\n \"**/routeTree.gen.ts\",\n \"**/generated/**\",\n \"**/drizzle/**/snapshot.json\",\n \".claude/skills/**\",\n \".intent/**\",\n \"AGENTS.md\",\n \"**/CHANGELOG.md\",\n \".github/release-please/*manifest.json\",\n \"**/.release-please-manifest.json\",\n \"**/*.d.*.ts\",\n \"**/src-tauri/gen/**\",\n];\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 { COMMENT_DIRECTIVES } from \"#/shared/lib/comment-directives.ts\";\n","export const BINARY_DATA: readonly string[] = [\n \"ArrayBuffer\",\n \"DataView\",\n \"BigInt64Array\",\n \"BigUint64Array\",\n \"Float32Array\",\n \"Float64Array\",\n \"Int8Array\",\n \"Int16Array\",\n \"Int32Array\",\n \"Uint8Array\",\n \"Uint8ClampedArray\",\n \"Uint16Array\",\n \"Uint32Array\",\n];\n","export const WEBGPU_HANDLES: readonly string[] = [\n \"GPUDevice\",\n \"GPUCanvasContext\",\n \"GPUTexture\",\n \"GPUBuffer\",\n \"GPUBindGroup\",\n \"GPUBindGroupLayout\",\n \"GPUPipelineLayout\",\n \"GPURenderPipeline\",\n \"GPUSampler\",\n];\n\nexport const BROWSER_HANDLES: readonly string[] = [\n \"HTMLCanvasElement\",\n \"HTMLImageElement\",\n \"HTMLAnchorElement\",\n \"CanvasRenderingContext2D\",\n \"PointerEvent\",\n \"WheelEvent\",\n \"KeyboardEvent\",\n \"MouseEvent\",\n \"AbortSignal\",\n \"ImageBitmap\",\n \"AudioContext\",\n \"OfflineAudioContext\",\n \"AnalyserNode\",\n \"AudioBuffer\",\n \"AudioBufferSourceNode\",\n ...WEBGPU_HANDLES,\n];\n","export const lintToolReadonlyAllow = [\n {\n from: \"package\" as const,\n package: \"@oxlint/plugins\",\n name: [\n \"Context\",\n \"ExportNamedDeclaration\",\n \"ExportSpecifier\",\n \"Statement\",\n \"Fixer\",\n \"ImportDeclaration\",\n \"ImportDeclarationSpecifier\",\n \"Location\",\n \"MemberExpression\",\n \"Node\",\n \"Range\",\n \"Rule\",\n \"RuleMeta\",\n \"SourceCode\",\n \"VisitorWithHooks\",\n ],\n },\n {\n from: \"package\" as const,\n package: \"oxlint\",\n name: [\n \"DummyRule\",\n \"DummyRuleMap\",\n \"InvalidTestCase\",\n \"OxlintOverride\",\n \"Rule\",\n \"TestCases\",\n \"ValidTestCase\",\n ],\n },\n { from: \"package\" as const, package: \"@commitlint/types\", name: [\"QualifiedConfig\"] },\n {\n from: \"package\" as const,\n package: \"@textlint/config-loader\",\n name: [\"TextlintLoadPackagesFromRawConfigResult\"],\n },\n { from: \"package\" as const, package: \"markdownlint\", name: [\"LintError\"] },\n {\n from: \"package\" as const,\n package: \"steiger\",\n name: [\"ConfigObject\", \"GlobalIgnore\", \"Plugin\"],\n },\n {\n from: \"file\" as const,\n path: \"upstream/attw-core/lib/checkPackage.d.ts\",\n name: [\"CheckPackageOptions\"],\n },\n {\n from: \"package\" as const,\n package: \"@r_masseater/vite-plus-adopt\",\n name: [\"CheckPackageOptions\", \"TextlintSource\"],\n },\n {\n from: \"file\" as const,\n path: \"src/shared/config/types.ts\",\n name: [\"CommitlintConfig\", \"MarkdownlintConfig\", \"TextlintConfig\", \"ToolSections\"],\n },\n {\n from: \"file\" as const,\n name: [\n \"BoundSymbol\",\n \"CompatSymbol\",\n \"CompatType\",\n \"FileBinding\",\n \"SymbolTable\",\n \"TypedContext\",\n ],\n },\n];\n","import { BINARY_DATA } from \"./readonly-binary.config.ts\";\nimport { BROWSER_HANDLES, WEBGPU_HANDLES } from \"./readonly-browser.config.ts\";\nimport { lintToolReadonlyAllow } from \"./readonly-lint-tools.config.ts\";\n\nexport const readonlyParameterAllow = [\n {\n from: \"lib\" as const,\n name: [\n \"HTMLElement\",\n \"HTMLDivElement\",\n \"Worker\",\n \"ReadableStream\",\n \"Request\",\n \"Response\",\n ...BINARY_DATA,\n \"RegExp\",\n \"RegExpExecArray\",\n \"RegExpMatchArray\",\n \"Date\",\n \"SpeechRecognitionResult\",\n \"CryptoKey\",\n ...BROWSER_HANDLES,\n ],\n },\n { from: \"package\" as const, package: \"@webgpu/types\", name: [...WEBGPU_HANDLES] },\n { from: \"package\" as const, package: \"@vscode/tree-sitter-wasm\", name: \"Language\" },\n { from: \"package\" as const, package: \"domhandler\", name: [\"AnyNode\", \"Text\", \"Element\"] },\n {\n from: \"package\" as const,\n package: \"@cloudflare/workers-types\",\n name: [\n \"AnalyticsEngineDataset\",\n \"Container\",\n \"DurableObjectState\",\n \"DurableObjectStorage\",\n \"CryptoKey\",\n \"KVNamespace\",\n \"R2Bucket\",\n \"SecretsStoreSecret\",\n \"TailEvent\",\n \"Onset\",\n \"Log\",\n \"Exception\",\n \"Attribute\",\n \"SpanUpdateInfo\",\n \"FetchResponseInfo\",\n \"Span\",\n ],\n },\n { from: \"package\" as const, package: \"@alchemy.run/cloudflare\", name: [\"Store\", \"WorkerProps\"] },\n {\n from: \"package\" as const,\n package: \"@bufbuild/protobuf\",\n name: [\"DescMessage\", \"JsonObject\", \"JsonValue\", \"Message\"],\n },\n { from: \"package\" as const, package: \"lighthouse\", name: [\"FlowResult\", \"Step\", \"UserFlow\"] },\n { from: \"package\" as const, package: \"vitest\", name: \"TestProject\" },\n {\n from: \"package\" as const,\n package: \"puppeteer-core\",\n name: [\"Browser\", \"ElementHandle\", \"Page\"],\n },\n { from: \"package\" as const, package: \"miniflare\", name: \"Miniflare\" },\n { from: \"package\" as const, package: \"elysia\", name: \"ElysiaConfig\" },\n { from: \"package\" as const, package: \"@types/node\", name: [\"Request\", \"Response\"] },\n { from: \"package\" as const, package: \"@better-auth/drizzle-adapter\", name: \"DB\" },\n {\n from: \"package\" as const,\n package: \"drizzle-orm\",\n name: [\"DrizzleSqliteDODatabase\", \"SQL\"],\n },\n { from: \"package\" as const, package: \"@tanstack/query-core\", name: \"QueryClient\" },\n {\n from: \"package\" as const,\n package: \"@codemirror/view\",\n name: [\"Decoration\", \"EditorView\", \"GutterMarker\", \"ViewUpdate\", \"WidgetType\"],\n },\n {\n from: \"package\" as const,\n package: \"@codemirror/state\",\n name: [\"ChangeDesc\", \"EditorState\", \"Extension\", \"StateEffect\", \"Text\", \"Transaction\"],\n },\n { from: \"package\" as const, package: \"@codemirror/lint\", name: \"Diagnostic\" },\n { from: \"package\" as const, package: \"comlink\", name: \"Remote\" },\n {\n from: \"package\" as const,\n package: \"typescript\",\n name: [\n \"API\",\n \"ArrayLiteralExpression\",\n \"ArrowFunction\",\n \"BinaryExpression\",\n \"BindingElement\",\n \"CallExpression\",\n \"Checker\",\n \"ClassDeclaration\",\n \"CompilerHost\",\n \"CompilerOptions\",\n \"CompletionEntry\",\n \"ConfigFileResponse\",\n \"Declaration\",\n \"DeclarationBase\",\n \"DiagnosticResponse\",\n \"ElementAccessExpression\",\n \"EnumDeclaration\",\n \"ExportAssignment\",\n \"ExportDeclaration\",\n \"ExportSpecifier\",\n \"Expression\",\n \"ExpressionBase\",\n \"FunctionDeclaration\",\n \"FunctionExpression\",\n \"Identifier\",\n \"InterfaceDeclaration\",\n \"JSDocCallbackTag\",\n \"JSDocTagBase\",\n \"JSDocTypedefTag\",\n \"ModuleDeclaration\",\n \"Node\",\n \"NodeHandle\",\n \"NumericLiteral\",\n \"ParameterDeclaration\",\n \"ParseConfigFileHost\",\n \"ParsedCommandLine\",\n \"Program\",\n \"Project\",\n \"PropertyAccessExpression\",\n \"PropertyDeclaration\",\n \"PropertySignature\",\n \"Signature\",\n \"SignatureDeclaration\",\n \"Snapshot\",\n \"SourceFile\",\n \"StringLiteral\",\n \"Symbol\",\n \"Type\",\n \"TypeAliasDeclaration\",\n \"TypeChecker\",\n \"TypeFlags\",\n \"TypeNode\",\n \"TypeNodeBase\",\n \"UnionTypeNode\",\n \"VariableDeclaration\",\n \"VariableDeclarationList\",\n \"WasmTransport\",\n ],\n },\n { from: \"package\" as const, package: \"@codemirror/autocomplete\", name: \"CompletionContext\" },\n ...lintToolReadonlyAllow,\n {\n from: \"package\" as const,\n package: \"react\",\n name: [\n \"ReactNode\",\n \"ButtonHTMLAttributes\",\n \"ChangeEvent\",\n \"ClassAttributes\",\n \"FocusEvent\",\n \"KeyboardEvent\",\n \"SubmitEvent\",\n ],\n },\n { from: \"package\" as const, package: \"clsx\", name: \"ClassValue\" },\n {\n from: \"package\" as const,\n package: \"@anthropic-ai/claude-agent-sdk\",\n name: [\"SDKMessage\", \"SDKResultMessage\"],\n },\n {\n from: \"package\" as const,\n package: \"@types/dom-speech-recognition\",\n name: [\"SpeechRecognition\", \"SpeechRecognitionEvent\", \"SpeechRecognitionResult\"],\n },\n { from: \"package\" as const, package: \"@modelcontextprotocol/server\", name: \"McpServer\" },\n {\n from: \"package\" as const,\n package: \"@modelcontextprotocol/client\",\n name: [\"CallToolResult\", \"Client\", \"ContentBlock\"],\n },\n { from: \"package\" as const, package: \"discord.js\", name: [\"Client\", \"Guild\"] },\n {\n from: \"package\" as const,\n package: \"@discordjs/voice\",\n name: [\"AudioPlayer\", \"VoiceConnection\"],\n },\n { from: \"package\" as const, package: \"mdast\", name: [\"Root\", \"RootContent\", \"Yaml\"] },\n { from: \"package\" as const, package: \"@types/mdast\", name: [\"Code\", \"Nodes\"] },\n { from: \"package\" as const, package: \"@types/hast\", name: [\"Element\", \"RootContent\"] },\n { from: \"package\" as const, package: \"ical.js\", name: \"Component\" },\n {\n from: \"package\" as const,\n package: \"@jupyterlab/nbformat\",\n name: [\n \"ICell\",\n \"IDisplayData\",\n \"IExecuteResult\",\n \"INotebookContent\",\n \"IOutput\",\n \"MultilineString\",\n ],\n },\n { from: \"package\" as const, package: \"unpdf\", name: \"PDFDocumentProxy\" },\n { from: \"package\" as const, package: \"@kenjiuno/msgreader\", name: \"FieldsData\" },\n {\n from: \"package\" as const,\n package: \"parse5\",\n name: [\n \"Document\",\n \"DocumentFragment\",\n \"DocumentType\",\n \"Element\",\n \"Template\",\n \"CommentNode\",\n \"TextNode\",\n ],\n },\n { from: \"package\" as const, package: \"postal-mime\", name: [\"Address\", \"Email\"] },\n { from: \"package\" as const, package: \"fflate\", name: [\"Unzipped\"] },\n {\n from: \"package\" as const,\n package: \"@openrouter/sdk\",\n name: [\"DecisionsChoiceAnswer\", \"DecisionsNoulAnswer\", \"DecisionsScoreAnswer\", \"Unknown\"],\n },\n { from: \"package\" as const, package: \"recharts\", name: \"TooltipPayloadEntry\" },\n { from: \"package\" as const, package: \"vfile\", name: \"VFile\" },\n { from: \"package\" as const, package: \"modern-tar\", name: \"ParsedTarEntry\" },\n { from: \"package\" as const, package: \"@zip.js/zip.js\", name: [\"Entry\", \"FileEntry\"] },\n {\n from: \"package\" as const,\n package: \"three\",\n name: [\n \"LoadingManager\",\n \"Object3D\",\n \"WebGLRenderer\",\n \"PerspectiveCamera\",\n \"Scene\",\n \"Sphere\",\n \"BufferAttribute\",\n \"Material\",\n \"Mesh\",\n ],\n },\n {\n from: \"package\" as const,\n package: \"@huggingface/transformers\",\n name: [\"RawImage\", \"PretrainedConfig\", \"PreTrainedModel\", \"Processor\"],\n },\n {\n from: \"package\" as const,\n package: \"effect\",\n name: [\n \"Atom\",\n \"Cause\",\n \"Context\",\n \"DateTime\",\n \"Deferred\",\n \"Duration\",\n \"Effect\",\n \"Exit\",\n \"Fiber\",\n \"HashMap\",\n \"HashSet\",\n \"HttpClient\",\n \"HttpClientRequest\",\n \"HttpClientResponse\",\n \"HttpServerRequest\",\n \"HttpServerResponse\",\n \"Json\",\n \"JsonArray\",\n \"JsonObject\",\n \"Layer\",\n \"Logger\",\n \"NativeSpan\",\n \"Option\",\n \"Redacted\",\n \"Ref\",\n \"Stream\",\n \"Utc\",\n \"Writable\",\n ],\n },\n];\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 {\n alchemyOverride,\n cloudflareResourceSyntax,\n removalPolicyOverride,\n commandsOverride,\n} from \"./lint-overrides.config.ts\";\nimport {\n COMMENT_DIRECTIVES,\n allRulesOf,\n decisionPluginName,\n generated,\n pluginRules,\n shadcnRestyleContracts,\n} from \"./lint.config.ts\";\nimport { readonlyParameterAllow } from \"./readonly-types.config.ts\";\n\ntype LintConfig = NonNullable<UserConfig[\"lint\"]>;\n\nconst resolved = (specifier: string): string => fileURLToPath(import.meta.resolve(specifier));\n\nconst DECISION_TIMEOUT_MS = 50_000;\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: \"no-comments\", specifier: resolved(\"eslint-plugin-no-comments\") },\n { name: \"baseline-js\", specifier: resolved(\"eslint-plugin-baseline-js\") },\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 \"no-comments/disallowComments\": [\"error\", { allow: COMMENT_DIRECTIVES }],\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 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 \"msch-lint/ecosystem-readers\": \"error\",\n \"msch-lint/inline-exports\": \"error\",\n \"msch-lint/ui-state-in-atoms\": \"error\",\n \"msch-lint/no-hand-written-sql\": \"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 \"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\"] }],\n \"jsdoc/require-param\": [\"error\", { exemptedBy: [\"inheritdoc\", \"internal\", \"msch\"] }],\n \"jsdoc/require-returns\": [\"error\", { exemptedBy: [\"inheritdoc\", \"internal\", \"msch\"] }],\n \"eslint-js/no-restricted-syntax\": [\"error\", ...cloudflareResourceSyntax],\n \"typescript/prefer-readonly-parameter-types\": [\n \"error\",\n { ignoreInferredTypes: true, allow: readonlyParameterAllow },\n ],\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 overrides = [\n removalPolicyOverride,\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: [\"**/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 \"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 [decisionPluginName]: {\n model: \"cloudflare/@cf/cloudflare/clef-flash\",\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","const UI_STATE = \"UI 状態は effect-atom だけで扱う\";\n\nexport const INSTRUMENTATION = \"計装は Effect のトレーシングだけで扱う\";\nconst INFRASTRUCTURE = \"インフラは Alchemy の IaC と Cloudflare だけで扱い、wrangler は使わない\";\n\nexport const requiredStack: Readonly<Record<string, readonly string[]>> = {\n [UI_STATE]: [\n \"zustand\",\n \"jotai\",\n \"valtio\",\n \"recoil\",\n \"mobx\",\n \"mobx-*\",\n \"redux\",\n \"@reduxjs/*\",\n \"react-redux\",\n \"xstate\",\n \"@xstate/*\",\n \"nanostores\",\n \"@nanostores/*\",\n \"@preact/signals*\",\n ],\n \"サーバー状態は TanStack Query と Eden だけで扱う\": [\n \"swr\",\n \"react-query\",\n \"@apollo/*\",\n \"urql\",\n \"@urql/*\",\n \"axios\",\n \"ky\",\n \"ofetch\",\n \"got\",\n \"node-fetch\",\n \"graphql-request\",\n \"@trpc/*\",\n ],\n \"ルーティングとサーバーは TanStack Start と Elysia だけで扱う\": [\n \"react-router\",\n \"react-router-dom\",\n \"next\",\n \"@remix-run/*\",\n \"wouter\",\n \"express\",\n \"hono\",\n \"fastify\",\n \"koa\",\n \"@nestjs/*\",\n ],\n \"データベースは Drizzle だけで扱い、スキーマはマイグレーションで生成する\": [\n \"prisma\",\n \"@prisma/*\",\n \"typeorm\",\n \"sequelize\",\n \"kysely\",\n \"knex\",\n \"@mikro-orm/*\",\n \"better-sqlite3\",\n \"pg\",\n \"mysql2\",\n ],\n \"認証は better-auth だけで扱う\": [\n \"next-auth\",\n \"@auth/*\",\n \"lucia\",\n \"passport\",\n \"passport-*\",\n \"@clerk/*\",\n \"firebase/auth\",\n \"@supabase/*\",\n ],\n \"UI は shadcn/ui と Tailwind CSS だけで組む\": [\n \"@mui/*\",\n \"antd\",\n \"@chakra-ui/*\",\n \"@mantine/*\",\n \"styled-components\",\n \"@emotion/*\",\n \"bootstrap\",\n \"react-bootstrap\",\n ],\n \"検証、日時、ログ、関数型ユーティリティは Effect だけで扱う\": [\n \"zod\",\n \"yup\",\n \"joi\",\n \"valibot\",\n \"arktype\",\n \"io-ts\",\n \"superstruct\",\n \"moment\",\n \"dayjs\",\n \"date-fns\",\n \"luxon\",\n \"winston\",\n \"pino\",\n \"bunyan\",\n \"loglevel\",\n \"lodash\",\n \"lodash-es\",\n \"ramda\",\n \"rxjs\",\n \"fp-ts\",\n \"neverthrow\",\n \"ts-results\",\n \"purify-ts\",\n ],\n \"CSV は effect/encoding の Csv だけで読み書きする\": [\n \"papaparse\",\n \"csv-parse\",\n \"csv-parser\",\n \"csv-stringify\",\n \"fast-csv\",\n \"@fast-csv/*\",\n \"d3-dsv\",\n ],\n \"tar は effect/encoding の Tar だけで読み書きする\": [\n \"modern-tar\",\n \"nanotar\",\n \"tar\",\n \"tar-stream\",\n \"tar-fs\",\n \"tar-js\",\n \"tarts\",\n \"it-tar\",\n ],\n \"エージェントスキルは vite.config.ts の skills に書き、msch --prepare で入れる\": [\"skills\"],\n \"フィーチャーフラグは OpenFeature だけで扱う\": [\n \"launchdarkly-*\",\n \"@launchdarkly/*\",\n \"@growthbook/*\",\n \"unleash-client\",\n \"flagsmith\",\n \"@vercel/flags\",\n ],\n \"テストは Vitest と Playwright だけで扱う\": [\n \"jest\",\n \"jest-*\",\n \"@jest/*\",\n \"ts-jest\",\n \"mocha\",\n \"jasmine\",\n \"jasmine-core\",\n \"ava\",\n \"cypress\",\n \"tap\",\n \"uvu\",\n ],\n \"決済は Stripe だけで扱う\": [\n \"@paypal/*\",\n \"paypal-rest-sdk\",\n \"braintree\",\n \"@paddle/*\",\n \"@lemonsqueezy/*\",\n \"square\",\n ],\n \"整形は Vite+ の vp fmt だけで扱う\": [\n \"prettier\",\n \"prettier-plugin-*\",\n \"@prettier/*\",\n \"@biomejs/*\",\n \"dprint\",\n ],\n \"lint は Vite+ の vp lint だけで扱い、ESLint のプラグインは oxlint の JS プラグインとして読む\": [\n \"eslint\",\n \"@eslint/*\",\n \"eslint-config-*\",\n \"tslint\",\n \"standard\",\n \"xo\",\n ],\n [INSTRUMENTATION]: [\"@opentelemetry/*\", \"dd-trace\", \"newrelic\"],\n [INFRASTRUCTURE]: [\n \"wrangler\",\n \"miniflare\",\n \"@cloudflare/vite-plugin\",\n \"@vercel/*\",\n \"@netlify/*\",\n \"aws-cdk\",\n \"aws-cdk-lib\",\n \"@pulumi/*\",\n \"cdktf\",\n ],\n};\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 { SteigerConfig } from \"@r_masseater/vite-plus-adopt\";\nimport fsd from \"@r_masseater/vite-plus-adopt/fsd\";\n\nexport const steigerRules: SteigerConfig = [\n ...fsd.configs.recommended,\n {\n rules: {\n \"fsd/excessive-slicing\": \"off\",\n \"fsd/insignificant-slice\": \"off\",\n \"fsd/no-cross-imports\": \"error\",\n \"fsd/no-higher-level-imports\": \"error\",\n \"fsd/no-wildcard-exports\": \"error\",\n },\n },\n];\n","import { createRequire } from \"node:module\";\n\nimport presetJa from \"@r_masseater/textlint-rule-preset-ja\";\nimport type { ToolSections } from \"@r_masseater/vite-plus-adopt\";\nimport { Option, Predicate } from \"effect\";\n\ntype Preset = NonNullable<NonNullable<ToolSections[\"textlint\"]>[\"presets\"]>[string];\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 = createRequire(import.meta.url);\n\nconst loadPreset = (specifier: string): Preset => {\n const loaded: unknown = required(specifier);\n return Option.getOrThrowWith(\n presetIn(loaded),\n () => new TypeError(`${specifier} does not export a textlint preset`),\n );\n};\n\nexport const textlintPresets: NonNullable<NonNullable<ToolSections[\"textlint\"]>[\"presets\"]> = {\n \"@r_masseater/preset-ja\": presetJa,\n \"@textlint-ja/preset-ai-writing\": loadPreset(\"@textlint-ja/textlint-rule-preset-ai-writing\"),\n \"preset-ja-technical-writing\": loadPreset(\"textlint-rule-preset-ja-technical-writing\"),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,MAAM,UAAU;AAChB,MAAM,kBACJ;AAEF,MAAM,YAAY;AAClB,MAAM,oBACJ;AAEF,MAAM,0BACJ;AAEF,MAAa,2BACX;CACE;EACE,UAAU,qHAAqH,QAAQ;EACvI,SAAS;CACX;CACA;EACE,UAAU,sFAAsF,QAAQ;EACxG,SAAS;CACX;CACA;EACE,UAAU,iIAAiI,UAAU;EACrJ,SAAS;CACX;CACA;EACE,UAAU,+HAA+H,UAAU;EACnJ,SAAS;CACX;CACA;EACE,UACE;EACF,SAAS;CACX;CACA;EACE,UACE;EACF,SAAS;CACX;CACA;EACE,UACE;EACF,SAAS;CACX;CACA;EACE,UACE;EACF,SAAS;CACX;CACA;EACE,UACE;EACF,SACE;CACJ;CACA;EACE,UACE;EACF,SACE;CACJ;CACA;EACE,UACE;EACF,SACE;CACJ;CACA;EACE,UAAU;EACV,SACE;CACJ;AACF;AACF,MAAa,sBAAuE;CAClF,UACE;CACF,SACE;AACJ;AAEA,MAAa,wBAIT;CACF,OAAO,CAAC,SAAS;CACjB,cAAc,CAAC,cAAc;CAC7B,OAAO,EACL,kCAAkC;EAAC;EAAS,GAAG;EAA0B;CAAmB,EAC9F;AACF;AAEA,MAAa,kBAGT;CACF,OAAO,CAAC,mBAAmB;CAC3B,OAAO,EACL,kCAAkC;EAChC;EACA,GAAG;EACH;EACA;GACE,UAAU;GACV,SAAS;EACX;EACA;GACE,UACE;GACF,SACE;EACJ;EACA;GACE,UACE;GACF,SACE;EACJ;CACF,EACF;AACF;AAEA,MAAa,mBAGT;CACF,OAAO,CAAC,QAAQ;CAChB,OAAO;EACL,uBAAuB;EACvB,gBAAgB;EAChB,kCAAkC;CACpC;AACF;;AClIA,IAAA,yBAAe,qBAAqB;CAClC,MAAM;CACN,OAAO;EACL,mBAAmB;GACjB,IAAI;GACJ,QAAQ;GAC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e;AACxB,CAAC;AAED,MAAa,oBAAoB,KAC/B,eACAJ,OAAI,UAAU,KAAc,CAC9B;AAEA,MAAa,yBAAyB,CACpC;CAAE,SAAS;CAAsB,OAAO,CAAC,kBAAkB,aAAa;AAAE,GAC1E;CAAE,SAAS;CAAkB,OAAO;EAAC;EAAW;EAAkB;EAAQ;CAAM;AAAE,CACpF;;ACpFA,MAAa,cAAiC;CAC5C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;ACdA,MAAa,iBAAoC;CAC/C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAa,kBAAqC;CAChD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,GAAG;AACL;;AC7BA,MAAa,wBAAwB;CACnC;EACE,MAAM;EACN,SAAS;EACT,MAAM;GACJ;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;CACF;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM;GACJ;GACA;GACA;GACA;GACA;GACA;GACA;EACF;CACF;CACA;EAAE,MAAM;EAAoB,SAAS;EAAqB,MAAM,CAAC,iBAAiB;CAAE;CACpF;EACE,MAAM;EACN,SAAS;EACT,MAAM,CAAC,yCAAyC;CAClD;CACA;EAAE,MAAM;EAAoB,SAAS;EAAgB,MAAM,CAAC,WAAW;CAAE;CACzE;EACE,MAAM;EACN,SAAS;EACT,MAAM;GAAC;GAAgB;GAAgB;EAAQ;CACjD;CACA;EACE,MAAM;EACN,MAAM;EACN,MAAM,CAAC,qBAAqB;CAC9B;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CAAC,uBAAuB,gBAAgB;CAChD;CACA;EACE,MAAM;EACN,MAAM;EACN,MAAM;GAAC;GAAoB;GAAsB;GAAkB;EAAc;CACnF;CACA;EACE,MAAM;EACN,MAAM;GACJ;GACA;GACA;GACA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A;EACA;EACA;EACA;EACA;EACA;CACF;CACA,uCAAuC;EACrC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,qCAAqC;EACnC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,yCAAyC;EACvC;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,yCAAyC;EACvC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,8DAA8D,CAAC,QAAQ;CACvE,gCAAgC;EAC9B;EACA;EACA;EACA;EACA;EACA;CACF;CACA,kCAAkC;EAChC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,oBAAoB;EAClB;EACA;EACA;EACA;EACA;EACA;CACF;CACA,4BAA4B;EAC1B;EACA;EACA;EACA;EACA;CACF;CACA,sEAAsE;EACpE;EACA;EACA;EACA;EACA;EACA;CACF;EACC,kBAAkB;EAAC;EAAoB;EAAY;CAAU;EAC7D,iBAAiB;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF;;ACrLA,MAAa,cAAc;CACzB,2BAA2B;CAC3B,+BAA+B;AACjC;;ACCA,MAAa,gBAAgB,WAAW;CAAE,QAAQ;CAAa,OAAO,SAAS;AAAM,CAAC;;ACDtF,MAAa,eAA8B,CACzC,GAAG,IAAI,QAAQ,aACf,EACE,OAAO;CACL,yBAAyB;CACzB,2BAA2B;CAC3B,wBAAwB;CACxB,+BAA+B;CAC/B,2BAA2B;AAC7B,EACF,CACF;;ACNA,MAAM,YAAY,UAChB,UAAU,YAAY,OAAO,OAAO,KACpC,UAAU,SAAS,MAAM,KAAK,KAC9B,UAAU,YAAY,OAAO,aAAa,KAC1C,UAAU,SAAS,MAAM,WAAW;AAEtC,MAAM,YAAY,UAA0C;CAC1D,IAAI,SAAS,KAAK,GAChB,OAAO,OAAO,KAAK,KAAK;CAE1B,IAAI,UAAU,YAAY,OAAO,SAAS,GACxC,OAAO,SAAS,MAAM,OAAO;CAE/B,OAAO,OAAO,KAAK;AACrB;AAEA,MAAM,WAAW,cAAc,YAAY,GAAG;AAE9C,MAAM,cAAc,cAA8B;CAChD,MAAM,SAAkB,SAAS,SAAS;CAC1C,OAAO,OAAO,eACZ,SAAS,MAAM,yBACT,IAAI,UAAU,GAAG,UAAU,mCAAmC,CACtE;AACF;AAEA,MAAa,kBAAiF;CAC5F,0BAA0B;CAC1B,kCAAkC,WAAW,8CAA8C;CAC3F,+BAA+B,WAAW,2CAA2C;AACvF"}
@@ -58,6 +58,7 @@ declare const lint: {
58
58
  "import/prefer-default-export": "off";
59
59
  "import/group-exports": "off";
60
60
  "import/exports-last": "off";
61
+ "msch-lint/ecosystem-readers": "error";
61
62
  "msch-lint/inline-exports": "error";
62
63
  "msch-lint/ui-state-in-atoms": "error";
63
64
  "msch-lint/no-hand-written-sql": "error";
@@ -213,4 +214,4 @@ declare const readonlyParameterAllow: ({
213
214
  })[];
214
215
  declare const _default: import("@r_masseater/oxlint-plugin-decision").DecisionPlugin;
215
216
  export { decisionTestRules as _, remotionRules as a, requiredStack as c, commandsOverride as d, removalPolicyOverride as f, decisionRules as g, allRulesOf as h, steigerRules as i, alchemyOverride as l, lint as m, readonlyParameterAllow as n, tracedRules as o, removalPolicySyntax as p, textlintPresets as r, INSTRUMENTATION as s, _default as t, cloudflareResourceSyntax as u, generated as v };
216
- //# sourceMappingURL=index-y3tq-lW5.d.mts.map
217
+ //# sourceMappingURL=index-BOXkKig9.d.mts.map