@r_masseater/msch 0.133.1 → 0.133.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.
- package/dist/cli.mjs +3 -3
- package/dist/config.mjs +2 -2
- package/dist/decision-rules.mjs +1 -1
- package/dist/{define-lint-preset-W1CiDp0P.mjs → define-lint-preset-_bDnJMcY.mjs} +4 -4
- package/dist/define-lint-preset-_bDnJMcY.mjs.map +1 -0
- package/dist/lint.mjs +1 -1
- package/dist/{repository-text-BpdKZYbU.mjs → repository-text-BPhi-pct.mjs} +2 -2
- package/dist/{repository-text-BpdKZYbU.mjs.map → repository-text-BPhi-pct.mjs.map} +1 -1
- package/package.json +1 -1
- package/skills/msch-checks/SKILL.md +1 -1
- package/skills/msch-publishing/SKILL.md +1 -1
- package/skills/msch-repository-config/SKILL.md +1 -1
- package/skills/msch-workspace-settings/SKILL.md +1 -1
- package/dist/define-lint-preset-W1CiDp0P.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { decodePackageJson, decodeVersionedPackageJson, readPackageJson, readRaw
|
|
|
14
14
|
import { a as workspaceConfigs, c as publicEntriesOf, d as FRONTMATTER, f as splitFrontmatter, g as deployEntries, h as bundledEntries$1, i as publishedWorkspaces, l as modDirectories, m as workspaceLinks, o as entryNameOf, r as packedWorkspaces, s as isBinEntry, u as INDEX_SKILL, v as shadcnUiOf } from "./published-Cgl1qeYH.mjs";
|
|
15
15
|
import { parse, resolveConfigFromFile } from "vite-plus";
|
|
16
16
|
import { i as USAGE_SPOOL, n as DECISION_TIMEOUT_MS, r as JAPANESE, t as DECISION_MODEL } from "./config-B3SYjao5.mjs";
|
|
17
|
-
import { c as forgetBuilt, d as existsAt, g as patternOf$1, h as namedWorkspaces, i as GIT_HOOKS, l as lastBuilt, p as isIgnored, s as MDLCT_BIN, t as BUILT_ALLOWANCES } from "./repository-text-
|
|
17
|
+
import { c as forgetBuilt, d as existsAt, g as patternOf$1, h as namedWorkspaces, i as GIT_HOOKS, l as lastBuilt, p as isIgnored, s as MDLCT_BIN, t as BUILT_ALLOWANCES } from "./repository-text-BPhi-pct.mjs";
|
|
18
18
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
19
19
|
import treeSitter from "@vscode/tree-sitter-wasm";
|
|
20
20
|
import { t as startedOnce } from "./started-once-BN_hLlmU.mjs";
|
|
@@ -23,7 +23,7 @@ import { rolldown } from "rolldown";
|
|
|
23
23
|
import { stripVTControlCharacters } from "node:util";
|
|
24
24
|
import { builtinModules, isBuiltin as isBuiltin$1 } from "node:module";
|
|
25
25
|
import semver from "semver";
|
|
26
|
-
import { b as exempt, f as lint$3, h as decisionTestRules } from "./define-lint-preset-
|
|
26
|
+
import { b as exempt, f as lint$3, h as decisionTestRules } from "./define-lint-preset-_bDnJMcY.mjs";
|
|
27
27
|
import { NO_PATH, describeReference, diagnosticDetail, linksIn as linksIn$1, lint, markdownPathspecs, referenceOf as referenceOf$2, y8Section } from "@r_masseater/y8";
|
|
28
28
|
import { lint as lint$1, wismPathspecs, wismSection } from "@r_masseater/wism";
|
|
29
29
|
import { Parser, isMap, isNode, isPair, isScalar, isSeq, parse as parse$1, parseDocument, visit as visit$1 } from "yaml";
|
|
@@ -50,7 +50,7 @@ import { Buffer } from "node:buffer";
|
|
|
50
50
|
import { createZstdDecompress } from "node:zlib";
|
|
51
51
|
// package.json
|
|
52
52
|
var name = "@r_masseater/msch";
|
|
53
|
-
var version = "0.133.
|
|
53
|
+
var version = "0.133.2";
|
|
54
54
|
var homepage = "https://github.com/masseater/ecosystems/tree/main/libs/msch#readme";
|
|
55
55
|
var repository = {
|
|
56
56
|
"type": "git",
|
package/dist/config.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Array, Effect, Layer, ManagedRuntime, Option, Record, String, pipe } from "effect";
|
|
2
|
-
import { b as exempt, c as structureOf, d as tracedRules, f as lint$1, h as decisionTestRules, i as markdownOf, t as fallowOf } from "./define-lint-preset-
|
|
2
|
+
import { b as exempt, c as structureOf, d as tracedRules, f as lint$1, h as decisionTestRules, i as markdownOf, t as fallowOf } from "./define-lint-preset-_bDnJMcY.mjs";
|
|
3
3
|
import { recommended } from "@r_masseater/fu4/presets";
|
|
4
4
|
import { definePlugin, defineRule } from "@r_masseater/fu4";
|
|
5
5
|
import { NOOP, actionOf, keysOf, pairsOf, runOf, valueAt, workflowRule } from "@r_masseater/fu4/rules";
|
|
6
6
|
import { a as nodeServicesLayer, i as nodeRepositoryFiles, r as RepositoryFiles, s as groupOf } from "./repository-files-C_GzAnYp.mjs";
|
|
7
|
-
import { a as gitHooksOf, d as existsAt, f as isDirectoryAt, g as patternOf, h as namedWorkspaces, i as GIT_HOOKS, m as staticPrefix, n as secretsOf, o as tasksOf, p as isIgnored, r as textlintOf, u as recordBuilt } from "./repository-text-
|
|
7
|
+
import { a as gitHooksOf, d as existsAt, f as isDirectoryAt, g as patternOf, h as namedWorkspaces, i as GIT_HOOKS, m as staticPrefix, n as secretsOf, o as tasksOf, p as isIgnored, r as textlintOf, u as recordBuilt } from "./repository-text-BPhi-pct.mjs";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
9
|
import { RuleConfigSeverity } from "@commitlint/types";
|
|
10
10
|
import { RUNTIME_SECTIONS } from "@r_masseater/masseater-utils/kestrion";
|
package/dist/decision-rules.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { g as default } from "./define-lint-preset-
|
|
1
|
+
export { g as default } from "./define-lint-preset-_bDnJMcY.mjs";
|
|
@@ -74,15 +74,15 @@ var decision_rules_default = createDecisionPlugin({
|
|
|
74
74
|
defineDecisionRule({
|
|
75
75
|
id: "exclusive-status",
|
|
76
76
|
target: "file",
|
|
77
|
-
question: "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.",
|
|
77
|
+
question: "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.",
|
|
78
78
|
message: "状態は排他的なstatusを持つ判別共用体で表し、booleanフラグの組を使わない。",
|
|
79
79
|
cutoff: .8
|
|
80
80
|
}),
|
|
81
81
|
defineDecisionRule({
|
|
82
82
|
id: "server-state-tanstack-query",
|
|
83
83
|
target: "file",
|
|
84
|
-
question: "Does this code fetch, cache or synchronize server data
|
|
85
|
-
message: "
|
|
84
|
+
question: "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.",
|
|
85
|
+
message: "ブラウザのサーバー状態はTanStack QueryかEffect UIのQuery・Commandだけで扱う。",
|
|
86
86
|
cutoff: .8
|
|
87
87
|
}),
|
|
88
88
|
defineDecisionRule({
|
|
@@ -834,4 +834,4 @@ const mergeValue = (base, own) => {
|
|
|
834
834
|
const fallowOf = (owns) => Array.reduce(owns, PRESET, (merged, own) => Record.union(merged, own, mergeValue));
|
|
835
835
|
export { alchemyOverride as _, zennMarkdown as a, exempt as b, structureOf as c, tracedRules as d, lint as f, decision_rules_default as g, decisionTestRules as h, markdownOf as i, videoRules as l, decisionRules as m, MARKDOWN_IGNORES as n, textlintFilters as o, allRulesOf as p, MARKDOWN_RULES as r, textlintPresets as s, fallowOf as t, remotionRules as u, commandsOverride as v, removalPolicyOverride as y };
|
|
836
836
|
|
|
837
|
-
//# sourceMappingURL=define-lint-preset-
|
|
837
|
+
//# sourceMappingURL=define-lint-preset-_bDnJMcY.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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,gCAAgC;EAChC,qCAAqC;CACvC;AACF;AAEA,MAAa,mBAGT;CACF,OAAO,CAAC,WAAW;CACnB,OAAO,EACL,kCAAkC,QACpC;AACF;;ACvCA,IAAA,yBAAe,qBAAqB;CAClC,MAAM;CACN,OAAO;EACL,mBAAmB;GACjB,IAAI;GACJ,QAAQ;GACR,UACE;GACF,SAAS;GACT,QAAQ;EACV,CAAC;EACD,mBAAmB;GACjB,IAAI;GACJ,QAAQ;GACR,UACE;GACF,SAAS;GACT,QAAQ;EACV,CAAC;EACD,mBAAmB;GACjB,IAAI;GACJ,QAAQ;GACR,UACE;GACF,SAAS;GACT,QAAQ;EACV,CAAC;CACH;AACF,CAA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,UAAU,iBAAiB,KAAK,KAAK,CAACC,MAAI,QAAQ,KAAK;AAEzD,MAAM,cAAc,MAAe,QAA0B;CAC3D,IAAIA,MAAI,QAAQ,IAAI,KAAKA,MAAI,QAAQ,GAAG,GACtC,OAAO,CAAC,GAAG,MAAM,GAAG,GAAG;CAEzB,IAAI,SAAS,IAAI,KAAK,SAAS,GAAG,GAChC,OAAOC,OAAI,MAAM,MAAM,KAAK,UAAU;CAExC,OAAO;AACT;AAEA,MAAa,YAAY,SACvBD,MAAI,OAAO,MAAM,SAAS,QAAQ,QAAQC,OAAI,MAAM,QAAQ,KAAK,UAAU,CAAC"}
|
package/dist/lint.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as MARKDOWN_IGNORES, r as MARKDOWN_RULES, _ as alchemyOverride, p as allRulesOf, v as commandsOverride, g as decisionPlugin, m as decisionRules, h as decisionTestRules, b as exempt, t as fallowOf, f as lint, i as markdownOf, u as remotionRules, y as removalPolicyOverride, c as structureOf, o as textlintFilters, s as textlintPresets, d as tracedRules, l as videoRules, a as zennMarkdown } from "./define-lint-preset-
|
|
1
|
+
export { n as MARKDOWN_IGNORES, r as MARKDOWN_RULES, _ as alchemyOverride, p as allRulesOf, v as commandsOverride, g as decisionPlugin, m as decisionRules, h as decisionTestRules, b as exempt, t as fallowOf, f as lint, i as markdownOf, u as remotionRules, y as removalPolicyOverride, c as structureOf, o as textlintFilters, s as textlintPresets, d as tracedRules, l as videoRules, a as zennMarkdown } from "./define-lint-preset-_bDnJMcY.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as RepositoryFiles } from "./repository-files-C_GzAnYp.mjs";
|
|
2
2
|
import { c as TASK_NAMES, i as workspaceProjects } from "./workspace-projects-Zg078aA1.mjs";
|
|
3
|
-
import { a as zennMarkdown, b as exempt, o as textlintFilters, s as textlintPresets } from "./define-lint-preset-
|
|
3
|
+
import { a as zennMarkdown, b as exempt, o as textlintFilters, s as textlintPresets } from "./define-lint-preset-_bDnJMcY.mjs";
|
|
4
4
|
import { i as USAGE_SPOOL } from "./config-B3SYjao5.mjs";
|
|
5
5
|
import { Array, Effect, Option, Record, String as String$1, pipe } from "effect";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
@@ -328,4 +328,4 @@ const secretsOf = () => ({
|
|
|
328
328
|
});
|
|
329
329
|
export { gitHooksOf as a, forgetBuilt as c, existsAt as d, isDirectoryAt as f, patternOf as g, namedWorkspaces as h, GIT_HOOKS as i, lastBuilt as l, staticPrefix as m, secretsOf as n, tasksOf as o, isIgnored as p, textlintOf as r, MDLCT_BIN as s, BUILT_ALLOWANCES as t, recordBuilt as u };
|
|
330
330
|
|
|
331
|
-
//# sourceMappingURL=repository-text-
|
|
331
|
+
//# sourceMappingURL=repository-text-BPhi-pct.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository-text-BpdKZYbU.mjs","names":["Arr","Str","Arr","Str","Arr","Arr","Rec","Arr"],"sources":["../src/entities/workspace/model/workspace-names.ts","../src/shared/lib/path-existence.ts","../src/app/built-config.ts","../src/shared/lib/mdlct.ts","../src/app/repository-tasks.ts","../src/app/repository-text.ts"],"sourcesContent":["import { Array as Arr, Effect, Option, String as Str, pipe } from \"effect\";\n\nimport { RepositoryFiles } from \"#/shared/lib/repository-files.ts\";\n\nimport { workspaceProjects } from \"./workspace-projects.ts\";\nimport type { WorkspaceProject } from \"./workspace-projects.ts\";\n\nconst ALTERNATIVE = \"|\";\nconst SCOPE = /^@[^/]+\\//u;\nconst SPECIAL = /[$()*+.?[\\\\\\]^{|}]/gu;\n\nexport interface NamedWorkspace {\n readonly directory: string;\n readonly names: readonly string[];\n readonly packageName: Option.Option<string>;\n}\n\n/** @internal */\nexport const patternOf = (names: readonly string[]): RegExp => {\n const alternatives = pipe(names, Arr.map(Str.replaceAll(SPECIAL, String.raw`\\$&`)));\n return new RegExp(\n `(?<![\\\\p{L}\\\\p{N}_-])(?:${Arr.join(alternatives, ALTERNATIVE)})(?![\\\\p{L}\\\\p{N}_-])`,\n \"gu\",\n );\n};\n\nconst namedIn =\n (basename: (directory: string) => string) =>\n ({ directory, packageName }: WorkspaceProject): NamedWorkspace => {\n const unscoped = pipe(packageName, Option.map(Str.replace(SCOPE, \"\")));\n const names = pipe(\n [Option.some(directory), Option.some(basename(directory)), packageName, unscoped],\n Arr.getSomes,\n Arr.dedupe,\n );\n return { directory, names, packageName };\n };\n\n/** @internal */\nexport const namedWorkspaces = Effect.fn(\"namedWorkspaces\")(function* namedWorkspaces(\n root: string,\n) {\n const files = yield* RepositoryFiles;\n const projects = yield* workspaceProjects(root);\n return pipe(projects, Arr.map(namedIn((directory) => files.basename(directory))));\n});\n","import { Array as Arr, Effect, Option, String as Str } from \"effect\";\n\nimport { RepositoryFiles } from \"#/shared/lib/repository-files.ts\";\n\nconst WILDCARD = /[*?[]/u;\nconst SEPARATOR = \"/\";\nconst FIRST = 0;\n\n/** @internal */\nexport const existsAt = Effect.fn(\"existsAt\")(function* existsAt(root: string, path: string) {\n const files = yield* RepositoryFiles;\n return yield* files.exists(files.join(root, path));\n});\n\n/** @internal */\nexport const isDirectoryAt = Effect.fn(\"isDirectoryAt\")(function* isDirectoryAt(\n root: string,\n path: string,\n) {\n const files = yield* RepositoryFiles;\n const directory = yield* files.isDirectory(files.join(root, path));\n return Option.getOrElse(directory, () => false);\n});\n\n/** @internal */\nexport const staticPrefix = (path: string): string => {\n const prefix = Arr.headNonEmpty(Str.split(path, WILDCARD));\n if (Str.endsWith(SEPARATOR)(prefix)) {\n return Str.slice(FIRST, -SEPARATOR.length)(prefix);\n }\n return prefix;\n};\n\n/** @internal */\nexport const isIgnored = Effect.fn(\"isIgnored\")(function* isIgnored(root: string, path: string) {\n const prefix = staticPrefix(path);\n if (Str.isEmpty(prefix)) {\n return false;\n }\n const files = yield* RepositoryFiles;\n const ignored = yield* files.ignoredPaths(root, [prefix, `${prefix}${SEPARATOR}`]);\n return Arr.isReadonlyArrayNonEmpty(ignored);\n});\n","import { Array as Arr, Option, pipe } from \"effect\";\n\nimport type { FinalConfig } from \"./config-sections.ts\";\n\ndeclare global {\n var mschBuiltConfig: readonly FinalConfig[] | undefined;\n}\n\n/** @internal */\nexport const recordBuilt = <Config extends FinalConfig>(config: Config): Config => {\n globalThis.mschBuiltConfig = [config];\n return config;\n};\n\n/** @internal */\nexport const forgetBuilt = (): void => {\n globalThis.mschBuiltConfig = [];\n};\n\n/** @internal */\nexport const lastBuilt = (): Option.Option<FinalConfig> =>\n pipe(Option.fromUndefinedOr(globalThis.mschBuiltConfig), Option.flatMap(Arr.head));\n","import { fileURLToPath } from \"node:url\";\n\nimport manifest from \"@r_masseater/mdlct/package.json\" with { type: \"json\" };\n\n/** @internal */\nexport const MDLCT_BIN = fileURLToPath(\n new URL(manifest.bin.mdlct, import.meta.resolve(\"@r_masseater/mdlct/package.json\")),\n);\n","import type { GitHooksSection } from \"@r_masseater/vite-plus-adopt\";\nimport { Array as Arr, Option, Record as Rec, pipe } from \"effect\";\nimport type { UserConfig } from \"vite-plus\";\n\nimport { TASK_NAMES } from \"#/entities/workspace/index.ts\";\nimport type { WorkspaceSettings } from \"#/features/build-workspace-settings/index.ts\";\nimport type { CargoInput } from \"#/features/derive-cargo-inputs/index.ts\";\nimport { USAGE_SPOOL } from \"#/shared/config/index.ts\";\nimport { MDLCT_BIN } from \"#/shared/lib/mdlct.ts\";\n\nexport type { GitHooksSection } from \"@r_masseater/vite-plus-adopt\";\n\ntype Tasks = NonNullable<NonNullable<UserConfig[\"run\"]>[\"tasks\"]>;\n\nexport interface UsageOptions {\n readonly endpoint: string;\n readonly apiKeyEnv?: string;\n}\n\nexport interface TaskOptions {\n readonly workspace: WorkspaceSettings;\n readonly commands: Readonly<Record<string, string>>;\n readonly usage: Option.Option<UsageOptions>;\n readonly cargo: Option.Option<CargoInputs>;\n}\n\nexport type CargoInputs = readonly CargoInput[];\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 MSCH = \"FALLOW_TYPE_AWARE_BACKEND=tsrs msch\";\n\nconst CHECK_BATCH_SOURCES = 1000;\n\nconst CHECK = `TSRS_LINT_RUN_EXTERNAL_CODE=1 msch changed --batch-sources ${String(CHECK_BATCH_SOURCES)} -- vp check --deny-warnings --continue-on-error --no-error-on-unmatched-pattern`;\n\nconst COMPAT = \"msch changed -- msch publish compat-changed\";\n\nconst SKILLS = `node ${MDLCT_BIN} check`;\n\nconst AUDIT_FILES = [\"package.json\", \"pnpm-workspace.yaml\", \"pnpm-lock.yaml\", \".npmrc\"];\n\nconst AUDIT = Arr.join(\n [\n 'copy=\"$(mktemp -d)\"',\n `trap 'rm -rf \"$copy\"' EXIT`,\n `for file in ${Arr.join(AUDIT_FILES, \" \")}; do if [ -f \"$file\" ]; then cp \"$file\" \"$copy/\"; fi; done`,\n '(cd \"$copy\" && vp pm audit --fix >/dev/null) || exit',\n `added=\"$(diff pnpm-workspace.yaml \"$copy/pnpm-workspace.yaml\" | sed -n 's/^> \\\\(.*\\\\)$/\\\\1 # exit: unused/p')\"`,\n 'if [ -z \"$added\" ]; then exit 0; fi',\n `printf '%s\\\\n' \"vp pm audit --fix found vulnerable versions. First update them within their ranges with vp update -r --no-save <package>... -- --depth Infinity. For each one still reported by vp pm audit, add its line to overrides in pnpm-workspace.yaml and run vp install:\" \"$added\" >&2`,\n \"exit 1\",\n ],\n \"; \",\n);\n\nconst BROKER_TOKEN = `GH_TOKEN=\"\\${GITHUB_APP_TOKEN:-$GH_TOKEN}\"`;\nconst AGENT_STATE = `\"\\${RUNNER_TEMP:-\\${TMPDIR:-/tmp}}/msch-agents\"`;\n\nconst DAILY = `msch exits; ${BROKER_TOKEN} msch upstream; ${BROKER_TOKEN} msch callers; ${BROKER_TOKEN} msch refs; refs=$?; msch agents ${AGENT_STATE} && exit \"$refs\"`;\n\nconst TEST = \"msch changed -- vp test run --passWithNoTests\";\n\nconst CARGO =\n \"cargo fmt --all --check && cargo clippy --workspace --all-targets --locked -- -D warnings\";\n\nconst cargoTasks = (cargo: Option.Option<CargoInputs>): Tasks =>\n Option.match(cargo, {\n onNone: (): Tasks => ({}),\n onSome: (inputs): Tasks => ({\n cargo: {\n command: CARGO,\n cache: { input: [...inputs], output: [], untrackedEnv: UNTRACKED_ENV },\n },\n }),\n });\n\nexport const MSCH_VERIFY_COMMANDS = {\n check: CHECK,\n msch: MSCH,\n audit: AUDIT,\n published: \"msch published\",\n compat: COMPAT,\n skills: SKILLS,\n} as const;\n\nexport const MSCH_TASK_COMMANDS = { ...MSCH_VERIFY_COMMANDS, test: TEST } as const;\n\nexport const CI_TASKS = [TASK_NAMES.verify, TASK_NAMES.test] as const;\n\nconst USAGE_TASK = \"usage\";\n\nconst METERED_TASKS = [\"check\", \"msch\"] as const;\n\nexport const meteredCommand = (command: string): string =>\n `USAGE_METER_SPOOL=\"$PWD/${USAGE_SPOOL}\" ${command}`;\n\nconst usageCommandOf = ({ endpoint, apiKeyEnv }: UsageOptions): string =>\n pipe(\n Option.fromUndefinedOr(apiKeyEnv),\n Option.match({\n onNone: () => `msch usage --endpoint ${endpoint}`,\n onSome: (name) => `msch usage --endpoint ${endpoint} --api-key-env ${name}`,\n }),\n );\n\nconst commandOf =\n (usage: Option.Option<UsageOptions>) =>\n (command: string): string =>\n Option.match(usage, { onNone: () => command, onSome: () => meteredCommand(command) });\n\nconst usageTasks = (usage: Option.Option<UsageOptions>): Tasks =>\n Option.match(usage, {\n onNone: (): Tasks => ({}),\n onSome: (options): Tasks => ({\n [USAGE_TASK]: {\n command: usageCommandOf(options),\n dependsOn: [...METERED_TASKS],\n cache: false,\n },\n }),\n });\n\nexport const tasksOf = ({\n workspace,\n commands,\n usage,\n cargo,\n}: TaskOptions): NonNullable<NonNullable<UserConfig[\"run\"]>[\"tasks\"]> => {\n const inputs = [{ auto: true }, ...workspace.ignoredDirectories, ...NOT_INPUTS];\n const run = commandOf(usage);\n const checks: Tasks = {\n ...commands,\n check: {\n command: run(CHECK),\n cache: { input: inputs, untrackedEnv: UNTRACKED_ENV },\n },\n msch: {\n command: run(MSCH_VERIFY_COMMANDS.msch),\n dependsOn: [\"check\", ...workspace.tasks.native],\n cache: false,\n },\n audit: { command: AUDIT, cache: false },\n skills: { command: SKILLS, cache: { input: inputs, output: [] } },\n published: { command: MSCH_TASK_COMMANDS.published, cache: false },\n compat: { command: COMPAT, dependsOn: [\"msch\"], cache: false },\n ...cargoTasks(cargo),\n ...usageTasks(usage),\n };\n return {\n ...checks,\n test: {\n command: TEST,\n dependsOn: [\"check\", ...workspace.tasks.native],\n cache: { input: [...inputs, \"!**/.cache/**\"] },\n },\n daily: { command: DAILY, dependsOn: [...workspace.tasks.native], cache: false },\n verify: { command: [], dependsOn: [...workspace.tasks.verify, ...Rec.keys(checks)] },\n ci: { command: [], dependsOn: [...CI_TASKS, ...workspace.tasks.test] },\n };\n};\n\nconst REINSTALL = \"vp install\";\n\nexport const GIT_HOOKS = {\n \"pre-commit\": [\"vp staged\", \"vp exec msch --staged\"],\n \"commit-msg\": ['vp exec msch --commit-msg \"$1\"'],\n \"pre-push\": [\"vp exec msch --pre-push\", \"vp run verify\"],\n \"post-checkout\": [`[ \"$3\" = 0 ] || ${REINSTALL}`],\n \"post-merge\": [REINSTALL],\n \"post-rewrite\": [REINSTALL],\n} as const satisfies GitHooksSection;\n\nexport const gitHooksOf = (hooks: GitHooksSection = {}): GitHooksSection => ({\n ...GIT_HOOKS,\n ...hooks,\n});\n","import type { H56mConfig } from \"@r_masseater/h56m\";\nimport { betterleaks } from \"@r_masseater/h56m/presets\";\nimport type { ToolSections } from \"@r_masseater/vite-plus-adopt\";\nimport { Array as Arr, pipe } from \"effect\";\n\nimport {\n textlintFilters,\n textlintPresets,\n zennMarkdown,\n} from \"#/features/define-lint-preset/index.ts\";\nimport { exempt } from \"#/shared/config/index.ts\";\n\ntype Source = NonNullable<NonNullable<ToolSections[\"textlint\"]>[\"sources\"]>[number];\n\nexport interface TextSource {\n readonly files: readonly string[];\n readonly plugins: Readonly<Record<string, boolean | object>>;\n}\n\nexport interface TextOptions {\n readonly properNouns?: readonly string[];\n readonly rules?: Readonly<Record<string, object>>;\n readonly sources?: readonly TextSource[];\n}\n\nexport interface BuiltTextOptions extends TextOptions {\n readonly articles: readonly string[];\n}\n\nexport const TEXT_IGNORES = [\n \"AGENTS.md\",\n \"CLAUDE.md\",\n \".agents/skills/**\",\n \"CHANGELOG.md\",\n ...exempt,\n];\nconst ZENN_MARKDOWN = \"zenn-markdown\";\nconst QUOTATION = String.raw`/「(?:[^「」]|「[^「」]*」)*」|『(?:[^『』]|『[^『』]*』)*』/`;\nconst SPEAKER = String.raw`/^:::[\\w-]+\\n[\\s\\S]*?\\n:::$/m`;\nconst ELLIPSIS = \"…\";\n\n/** @internal */\nexport const BUILT_ALLOWANCES: readonly string[] = [QUOTATION, SPEAKER];\nconst filtersOf = (properNouns: readonly string[]): Readonly<Record<string, object | boolean>> => ({\n comments: true,\n \"node-types\": { nodeTypes: [\"BlockQuote\"] },\n allowlist: { allow: [...BUILT_ALLOWANCES, ...properNouns] },\n});\nconst SENTENCE_LENGTH = 120;\nconst KANJI_RUN = 6;\nconst PUBLIC_LINES = [\n String.raw`\\bCF_BEACON_TOKEN = \"[0-9a-f]{32}\"`,\n String.raw`\\b\\w*DISCORD_\\w*ID = \"[0-9]{17,20}\"`,\n String.raw`untrusted comment: minisign public key: [0-9A-F]{16}`,\n];\nconst EXEMPT_PATHS = [String.raw`(?:^|/)(?:fixtures|upstream|hooks/vendor)/`];\n\ntype Style = \"である\" | \"ですます\";\n\nconst builtRules = (style: Style): Readonly<Record<string, boolean | object>> => ({\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: style, preferInList: style },\n \"max-kanji-continuous-len\": { max: KANJI_RUN },\n \"ja-no-successive-word\": { allow: [ELLIPSIS] },\n },\n});\n\nexport const textlintOf = ({\n properNouns = [],\n rules = {},\n sources = [],\n articles,\n}: BuiltTextOptions): NonNullable<ToolSections[\"textlint\"]> => {\n const textRules = { ...rules, ...builtRules(\"である\") };\n const filters = filtersOf(properNouns);\n const articleSources = Arr.filter(\n [\n {\n files: [...articles],\n plugins: { [ZENN_MARKDOWN]: true },\n rules: { ...rules, ...builtRules(\"ですます\") },\n filters,\n } satisfies Source,\n ],\n () => Arr.isReadonlyArrayNonEmpty(articles),\n );\n return {\n ignores: [...TEXT_IGNORES, ...articles],\n presets: textlintPresets,\n filterModules: textlintFilters,\n pluginModules: { [ZENN_MARKDOWN]: zennMarkdown },\n reportUnusedDirectives: true,\n sources: pipe(\n sources,\n Arr.map(({ files, plugins }): Source => ({\n files: [...files],\n plugins: { ...plugins },\n rules: textRules,\n filters,\n })),\n Arr.appendAll(articleSources),\n ),\n filters,\n rules: textRules,\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 secretsOf = (): H56mConfig => ({\n extend: { path: betterleaks },\n filter: pipe(\n [...anyOf(\"finding.line\")(PUBLIC_LINES), ...anyOf(`attributes[\"path\"]`)(EXEMPT_PATHS)],\n Arr.join(\" || \"),\n ),\n});\n"],"mappings":";;;;;;;;;AAOA,MAAM,cAAc;AACpB,MAAM,QAAQ;AACd,MAAM,UAAU;;AAShB,MAAa,aAAa,UAAqC;CAC7D,MAAM,eAAe,KAAK,OAAOA,MAAI,IAAIC,SAAI,WAAW,SAAS,OAAO,GAAG,KAAK,CAAC,CAAC;CAClF,OAAO,IAAI,OACT,2BAA2BD,MAAI,KAAK,cAAc,WAAW,EAAE,wBAC/D,IACF;AACF;AAEA,MAAM,WACH,cACA,EAAE,WAAW,kBAAoD;CAChE,MAAM,WAAW,KAAK,aAAa,OAAO,IAAIC,SAAI,QAAQ,OAAO,EAAE,CAAC,CAAC;CAMrE,OAAO;EAAE;EAAW,OALN,KACZ;GAAC,OAAO,KAAK,SAAS;GAAG,OAAO,KAAK,SAAS,SAAS,CAAC;GAAG;GAAa;EAAQ,GAChFD,MAAI,UACJA,MAAI,MAEkB;EAAG;CAAY;AACzC;;AAGF,MAAa,kBAAkB,OAAO,GAAG,iBAAiB,CAAC,CAAC,UAAU,gBACpE,MACA;CACA,MAAM,QAAQ,OAAO;CACrB,MAAM,WAAW,OAAO,kBAAkB,IAAI;CAC9C,OAAO,KAAK,UAAUA,MAAI,IAAI,SAAS,cAAc,MAAM,SAAS,SAAS,CAAC,CAAC,CAAC;AAClF,CAAC;;ACzCD,MAAM,WAAW;AACjB,MAAM,YAAY;AAClB,MAAM,QAAQ;;AAGd,MAAa,WAAW,OAAO,GAAG,UAAU,CAAC,CAAC,UAAU,SAAS,MAAc,MAAc;CAC3F,MAAM,QAAQ,OAAO;CACrB,OAAO,OAAO,MAAM,OAAO,MAAM,KAAK,MAAM,IAAI,CAAC;AACnD,CAAC;;AAGD,MAAa,gBAAgB,OAAO,GAAG,eAAe,CAAC,CAAC,UAAU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G,gBAAgB,KAAK;EACjC,OAAO;GAAE,GAAG;GAAO,GAAG,WAAW,MAAM;EAAE;EACzC;CACF,CACF,SACMA,MAAI,wBAAwB,QAAQ,CAC5C;CACA,OAAO;EACL,SAAS,CAAC,GAAG,cAAc,GAAG,QAAQ;EACtC,SAAS;EACT,eAAe;EACf,eAAe,GAAG,gBAAgB,aAAa;EAC/C,wBAAwB;EACxB,SAAS,KACP,SACAA,MAAI,KAAK,EAAE,OAAO,eAAuB;GACvC,OAAO,CAAC,GAAG,KAAK;GAChB,SAAS,EAAE,GAAG,QAAQ;GACtB,OAAO;GACP;EACF,EAAE,GACFA,MAAI,UAAU,cAAc,CAC9B;EACA;EACA,OAAO;CACT;AACF;AAEA,MAAM,SACH,aACA,aAAmD;CAClD,IAAIA,MAAI,qBAAqB,QAAQ,GACnC,OAAO,CAAC;CAOV,OAAO,CAAC,cAAc,QAAQ,KALf,KACb,UACAA,MAAI,KAAK,YAAY,KAAK,QAAQ,GAAG,GACrCA,MAAI,KAAK,IAAI,CAEyB,EAAE,GAAG;AAC/C;AAEF,MAAa,mBAA+B;CAC1C,QAAQ,EAAE,MAAM,YAAY;CAC5B,QAAQ,KACN,CAAC,GAAG,MAAM,cAAc,CAAC,CAAC,YAAY,GAAG,GAAG,MAAM,oBAAoB,CAAC,CAAC,YAAY,CAAC,GACrFA,MAAI,KAAK,MAAM,CACjB;AACF"}
|
|
1
|
+
{"version":3,"file":"repository-text-BPhi-pct.mjs","names":["Arr","Str","Arr","Str","Arr","Arr","Rec","Arr"],"sources":["../src/entities/workspace/model/workspace-names.ts","../src/shared/lib/path-existence.ts","../src/app/built-config.ts","../src/shared/lib/mdlct.ts","../src/app/repository-tasks.ts","../src/app/repository-text.ts"],"sourcesContent":["import { Array as Arr, Effect, Option, String as Str, pipe } from \"effect\";\n\nimport { RepositoryFiles } from \"#/shared/lib/repository-files.ts\";\n\nimport { workspaceProjects } from \"./workspace-projects.ts\";\nimport type { WorkspaceProject } from \"./workspace-projects.ts\";\n\nconst ALTERNATIVE = \"|\";\nconst SCOPE = /^@[^/]+\\//u;\nconst SPECIAL = /[$()*+.?[\\\\\\]^{|}]/gu;\n\nexport interface NamedWorkspace {\n readonly directory: string;\n readonly names: readonly string[];\n readonly packageName: Option.Option<string>;\n}\n\n/** @internal */\nexport const patternOf = (names: readonly string[]): RegExp => {\n const alternatives = pipe(names, Arr.map(Str.replaceAll(SPECIAL, String.raw`\\$&`)));\n return new RegExp(\n `(?<![\\\\p{L}\\\\p{N}_-])(?:${Arr.join(alternatives, ALTERNATIVE)})(?![\\\\p{L}\\\\p{N}_-])`,\n \"gu\",\n );\n};\n\nconst namedIn =\n (basename: (directory: string) => string) =>\n ({ directory, packageName }: WorkspaceProject): NamedWorkspace => {\n const unscoped = pipe(packageName, Option.map(Str.replace(SCOPE, \"\")));\n const names = pipe(\n [Option.some(directory), Option.some(basename(directory)), packageName, unscoped],\n Arr.getSomes,\n Arr.dedupe,\n );\n return { directory, names, packageName };\n };\n\n/** @internal */\nexport const namedWorkspaces = Effect.fn(\"namedWorkspaces\")(function* namedWorkspaces(\n root: string,\n) {\n const files = yield* RepositoryFiles;\n const projects = yield* workspaceProjects(root);\n return pipe(projects, Arr.map(namedIn((directory) => files.basename(directory))));\n});\n","import { Array as Arr, Effect, Option, String as Str } from \"effect\";\n\nimport { RepositoryFiles } from \"#/shared/lib/repository-files.ts\";\n\nconst WILDCARD = /[*?[]/u;\nconst SEPARATOR = \"/\";\nconst FIRST = 0;\n\n/** @internal */\nexport const existsAt = Effect.fn(\"existsAt\")(function* existsAt(root: string, path: string) {\n const files = yield* RepositoryFiles;\n return yield* files.exists(files.join(root, path));\n});\n\n/** @internal */\nexport const isDirectoryAt = Effect.fn(\"isDirectoryAt\")(function* isDirectoryAt(\n root: string,\n path: string,\n) {\n const files = yield* RepositoryFiles;\n const directory = yield* files.isDirectory(files.join(root, path));\n return Option.getOrElse(directory, () => false);\n});\n\n/** @internal */\nexport const staticPrefix = (path: string): string => {\n const prefix = Arr.headNonEmpty(Str.split(path, WILDCARD));\n if (Str.endsWith(SEPARATOR)(prefix)) {\n return Str.slice(FIRST, -SEPARATOR.length)(prefix);\n }\n return prefix;\n};\n\n/** @internal */\nexport const isIgnored = Effect.fn(\"isIgnored\")(function* isIgnored(root: string, path: string) {\n const prefix = staticPrefix(path);\n if (Str.isEmpty(prefix)) {\n return false;\n }\n const files = yield* RepositoryFiles;\n const ignored = yield* files.ignoredPaths(root, [prefix, `${prefix}${SEPARATOR}`]);\n return Arr.isReadonlyArrayNonEmpty(ignored);\n});\n","import { Array as Arr, Option, pipe } from \"effect\";\n\nimport type { FinalConfig } from \"./config-sections.ts\";\n\ndeclare global {\n var mschBuiltConfig: readonly FinalConfig[] | undefined;\n}\n\n/** @internal */\nexport const recordBuilt = <Config extends FinalConfig>(config: Config): Config => {\n globalThis.mschBuiltConfig = [config];\n return config;\n};\n\n/** @internal */\nexport const forgetBuilt = (): void => {\n globalThis.mschBuiltConfig = [];\n};\n\n/** @internal */\nexport const lastBuilt = (): Option.Option<FinalConfig> =>\n pipe(Option.fromUndefinedOr(globalThis.mschBuiltConfig), Option.flatMap(Arr.head));\n","import { fileURLToPath } from \"node:url\";\n\nimport manifest from \"@r_masseater/mdlct/package.json\" with { type: \"json\" };\n\n/** @internal */\nexport const MDLCT_BIN = fileURLToPath(\n new URL(manifest.bin.mdlct, import.meta.resolve(\"@r_masseater/mdlct/package.json\")),\n);\n","import type { GitHooksSection } from \"@r_masseater/vite-plus-adopt\";\nimport { Array as Arr, Option, Record as Rec, pipe } from \"effect\";\nimport type { UserConfig } from \"vite-plus\";\n\nimport { TASK_NAMES } from \"#/entities/workspace/index.ts\";\nimport type { WorkspaceSettings } from \"#/features/build-workspace-settings/index.ts\";\nimport type { CargoInput } from \"#/features/derive-cargo-inputs/index.ts\";\nimport { USAGE_SPOOL } from \"#/shared/config/index.ts\";\nimport { MDLCT_BIN } from \"#/shared/lib/mdlct.ts\";\n\nexport type { GitHooksSection } from \"@r_masseater/vite-plus-adopt\";\n\ntype Tasks = NonNullable<NonNullable<UserConfig[\"run\"]>[\"tasks\"]>;\n\nexport interface UsageOptions {\n readonly endpoint: string;\n readonly apiKeyEnv?: string;\n}\n\nexport interface TaskOptions {\n readonly workspace: WorkspaceSettings;\n readonly commands: Readonly<Record<string, string>>;\n readonly usage: Option.Option<UsageOptions>;\n readonly cargo: Option.Option<CargoInputs>;\n}\n\nexport type CargoInputs = readonly CargoInput[];\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 MSCH = \"FALLOW_TYPE_AWARE_BACKEND=tsrs msch\";\n\nconst CHECK_BATCH_SOURCES = 1000;\n\nconst CHECK = `TSRS_LINT_RUN_EXTERNAL_CODE=1 msch changed --batch-sources ${String(CHECK_BATCH_SOURCES)} -- vp check --deny-warnings --continue-on-error --no-error-on-unmatched-pattern`;\n\nconst COMPAT = \"msch changed -- msch publish compat-changed\";\n\nconst SKILLS = `node ${MDLCT_BIN} check`;\n\nconst AUDIT_FILES = [\"package.json\", \"pnpm-workspace.yaml\", \"pnpm-lock.yaml\", \".npmrc\"];\n\nconst AUDIT = Arr.join(\n [\n 'copy=\"$(mktemp -d)\"',\n `trap 'rm -rf \"$copy\"' EXIT`,\n `for file in ${Arr.join(AUDIT_FILES, \" \")}; do if [ -f \"$file\" ]; then cp \"$file\" \"$copy/\"; fi; done`,\n '(cd \"$copy\" && vp pm audit --fix >/dev/null) || exit',\n `added=\"$(diff pnpm-workspace.yaml \"$copy/pnpm-workspace.yaml\" | sed -n 's/^> \\\\(.*\\\\)$/\\\\1 # exit: unused/p')\"`,\n 'if [ -z \"$added\" ]; then exit 0; fi',\n `printf '%s\\\\n' \"vp pm audit --fix found vulnerable versions. First update them within their ranges with vp update -r --no-save <package>... -- --depth Infinity. For each one still reported by vp pm audit, add its line to overrides in pnpm-workspace.yaml and run vp install:\" \"$added\" >&2`,\n \"exit 1\",\n ],\n \"; \",\n);\n\nconst BROKER_TOKEN = `GH_TOKEN=\"\\${GITHUB_APP_TOKEN:-$GH_TOKEN}\"`;\nconst AGENT_STATE = `\"\\${RUNNER_TEMP:-\\${TMPDIR:-/tmp}}/msch-agents\"`;\n\nconst DAILY = `msch exits; ${BROKER_TOKEN} msch upstream; ${BROKER_TOKEN} msch callers; ${BROKER_TOKEN} msch refs; refs=$?; msch agents ${AGENT_STATE} && exit \"$refs\"`;\n\nconst TEST = \"msch changed -- vp test run --passWithNoTests\";\n\nconst CARGO =\n \"cargo fmt --all --check && cargo clippy --workspace --all-targets --locked -- -D warnings\";\n\nconst cargoTasks = (cargo: Option.Option<CargoInputs>): Tasks =>\n Option.match(cargo, {\n onNone: (): Tasks => ({}),\n onSome: (inputs): Tasks => ({\n cargo: {\n command: CARGO,\n cache: { input: [...inputs], output: [], untrackedEnv: UNTRACKED_ENV },\n },\n }),\n });\n\nexport const MSCH_VERIFY_COMMANDS = {\n check: CHECK,\n msch: MSCH,\n audit: AUDIT,\n published: \"msch published\",\n compat: COMPAT,\n skills: SKILLS,\n} as const;\n\nexport const MSCH_TASK_COMMANDS = { ...MSCH_VERIFY_COMMANDS, test: TEST } as const;\n\nexport const CI_TASKS = [TASK_NAMES.verify, TASK_NAMES.test] as const;\n\nconst USAGE_TASK = \"usage\";\n\nconst METERED_TASKS = [\"check\", \"msch\"] as const;\n\nexport const meteredCommand = (command: string): string =>\n `USAGE_METER_SPOOL=\"$PWD/${USAGE_SPOOL}\" ${command}`;\n\nconst usageCommandOf = ({ endpoint, apiKeyEnv }: UsageOptions): string =>\n pipe(\n Option.fromUndefinedOr(apiKeyEnv),\n Option.match({\n onNone: () => `msch usage --endpoint ${endpoint}`,\n onSome: (name) => `msch usage --endpoint ${endpoint} --api-key-env ${name}`,\n }),\n );\n\nconst commandOf =\n (usage: Option.Option<UsageOptions>) =>\n (command: string): string =>\n Option.match(usage, { onNone: () => command, onSome: () => meteredCommand(command) });\n\nconst usageTasks = (usage: Option.Option<UsageOptions>): Tasks =>\n Option.match(usage, {\n onNone: (): Tasks => ({}),\n onSome: (options): Tasks => ({\n [USAGE_TASK]: {\n command: usageCommandOf(options),\n dependsOn: [...METERED_TASKS],\n cache: false,\n },\n }),\n });\n\nexport const tasksOf = ({\n workspace,\n commands,\n usage,\n cargo,\n}: TaskOptions): NonNullable<NonNullable<UserConfig[\"run\"]>[\"tasks\"]> => {\n const inputs = [{ auto: true }, ...workspace.ignoredDirectories, ...NOT_INPUTS];\n const run = commandOf(usage);\n const checks: Tasks = {\n ...commands,\n check: {\n command: run(CHECK),\n cache: { input: inputs, untrackedEnv: UNTRACKED_ENV },\n },\n msch: {\n command: run(MSCH_VERIFY_COMMANDS.msch),\n dependsOn: [\"check\", ...workspace.tasks.native],\n cache: false,\n },\n audit: { command: AUDIT, cache: false },\n skills: { command: SKILLS, cache: { input: inputs, output: [] } },\n published: { command: MSCH_TASK_COMMANDS.published, cache: false },\n compat: { command: COMPAT, dependsOn: [\"msch\"], cache: false },\n ...cargoTasks(cargo),\n ...usageTasks(usage),\n };\n return {\n ...checks,\n test: {\n command: TEST,\n dependsOn: [\"check\", ...workspace.tasks.native],\n cache: { input: [...inputs, \"!**/.cache/**\"] },\n },\n daily: { command: DAILY, dependsOn: [...workspace.tasks.native], cache: false },\n verify: { command: [], dependsOn: [...workspace.tasks.verify, ...Rec.keys(checks)] },\n ci: { command: [], dependsOn: [...CI_TASKS, ...workspace.tasks.test] },\n };\n};\n\nconst REINSTALL = \"vp install\";\n\nexport const GIT_HOOKS = {\n \"pre-commit\": [\"vp staged\", \"vp exec msch --staged\"],\n \"commit-msg\": ['vp exec msch --commit-msg \"$1\"'],\n \"pre-push\": [\"vp exec msch --pre-push\", \"vp run verify\"],\n \"post-checkout\": [`[ \"$3\" = 0 ] || ${REINSTALL}`],\n \"post-merge\": [REINSTALL],\n \"post-rewrite\": [REINSTALL],\n} as const satisfies GitHooksSection;\n\nexport const gitHooksOf = (hooks: GitHooksSection = {}): GitHooksSection => ({\n ...GIT_HOOKS,\n ...hooks,\n});\n","import type { H56mConfig } from \"@r_masseater/h56m\";\nimport { betterleaks } from \"@r_masseater/h56m/presets\";\nimport type { ToolSections } from \"@r_masseater/vite-plus-adopt\";\nimport { Array as Arr, pipe } from \"effect\";\n\nimport {\n textlintFilters,\n textlintPresets,\n zennMarkdown,\n} from \"#/features/define-lint-preset/index.ts\";\nimport { exempt } from \"#/shared/config/index.ts\";\n\ntype Source = NonNullable<NonNullable<ToolSections[\"textlint\"]>[\"sources\"]>[number];\n\nexport interface TextSource {\n readonly files: readonly string[];\n readonly plugins: Readonly<Record<string, boolean | object>>;\n}\n\nexport interface TextOptions {\n readonly properNouns?: readonly string[];\n readonly rules?: Readonly<Record<string, object>>;\n readonly sources?: readonly TextSource[];\n}\n\nexport interface BuiltTextOptions extends TextOptions {\n readonly articles: readonly string[];\n}\n\nexport const TEXT_IGNORES = [\n \"AGENTS.md\",\n \"CLAUDE.md\",\n \".agents/skills/**\",\n \"CHANGELOG.md\",\n ...exempt,\n];\nconst ZENN_MARKDOWN = \"zenn-markdown\";\nconst QUOTATION = String.raw`/「(?:[^「」]|「[^「」]*」)*」|『(?:[^『』]|『[^『』]*』)*』/`;\nconst SPEAKER = String.raw`/^:::[\\w-]+\\n[\\s\\S]*?\\n:::$/m`;\nconst ELLIPSIS = \"…\";\n\n/** @internal */\nexport const BUILT_ALLOWANCES: readonly string[] = [QUOTATION, SPEAKER];\nconst filtersOf = (properNouns: readonly string[]): Readonly<Record<string, object | boolean>> => ({\n comments: true,\n \"node-types\": { nodeTypes: [\"BlockQuote\"] },\n allowlist: { allow: [...BUILT_ALLOWANCES, ...properNouns] },\n});\nconst SENTENCE_LENGTH = 120;\nconst KANJI_RUN = 6;\nconst PUBLIC_LINES = [\n String.raw`\\bCF_BEACON_TOKEN = \"[0-9a-f]{32}\"`,\n String.raw`\\b\\w*DISCORD_\\w*ID = \"[0-9]{17,20}\"`,\n String.raw`untrusted comment: minisign public key: [0-9A-F]{16}`,\n];\nconst EXEMPT_PATHS = [String.raw`(?:^|/)(?:fixtures|upstream|hooks/vendor)/`];\n\ntype Style = \"である\" | \"ですます\";\n\nconst builtRules = (style: Style): Readonly<Record<string, boolean | object>> => ({\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: style, preferInList: style },\n \"max-kanji-continuous-len\": { max: KANJI_RUN },\n \"ja-no-successive-word\": { allow: [ELLIPSIS] },\n },\n});\n\nexport const textlintOf = ({\n properNouns = [],\n rules = {},\n sources = [],\n articles,\n}: BuiltTextOptions): NonNullable<ToolSections[\"textlint\"]> => {\n const textRules = { ...rules, ...builtRules(\"である\") };\n const filters = filtersOf(properNouns);\n const articleSources = Arr.filter(\n [\n {\n files: [...articles],\n plugins: { [ZENN_MARKDOWN]: true },\n rules: { ...rules, ...builtRules(\"ですます\") },\n filters,\n } satisfies Source,\n ],\n () => Arr.isReadonlyArrayNonEmpty(articles),\n );\n return {\n ignores: [...TEXT_IGNORES, ...articles],\n presets: textlintPresets,\n filterModules: textlintFilters,\n pluginModules: { [ZENN_MARKDOWN]: zennMarkdown },\n reportUnusedDirectives: true,\n sources: pipe(\n sources,\n Arr.map(({ files, plugins }): Source => ({\n files: [...files],\n plugins: { ...plugins },\n rules: textRules,\n filters,\n })),\n Arr.appendAll(articleSources),\n ),\n filters,\n rules: textRules,\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 secretsOf = (): H56mConfig => ({\n extend: { path: betterleaks },\n filter: pipe(\n [...anyOf(\"finding.line\")(PUBLIC_LINES), ...anyOf(`attributes[\"path\"]`)(EXEMPT_PATHS)],\n Arr.join(\" || \"),\n ),\n});\n"],"mappings":";;;;;;;;;AAOA,MAAM,cAAc;AACpB,MAAM,QAAQ;AACd,MAAM,UAAU;;AAShB,MAAa,aAAa,UAAqC;CAC7D,MAAM,eAAe,KAAK,OAAOA,MAAI,IAAIC,SAAI,WAAW,SAAS,OAAO,GAAG,KAAK,CAAC,CAAC;CAClF,OAAO,IAAI,OACT,2BAA2BD,MAAI,KAAK,cAAc,WAAW,EAAE,wBAC/D,IACF;AACF;AAEA,MAAM,WACH,cACA,EAAE,WAAW,kBAAoD;CAChE,MAAM,WAAW,KAAK,aAAa,OAAO,IAAIC,SAAI,QAAQ,OAAO,EAAE,CAAC,CAAC;CAMrE,OAAO;EAAE;EAAW,OALN,KACZ;GAAC,OAAO,KAAK,SAAS;GAAG,OAAO,KAAK,SAAS,SAAS,CAAC;GAAG;GAAa;EAAQ,GAChFD,MAAI,UACJA,MAAI,MAEkB;EAAG;CAAY;AACzC;;AAGF,MAAa,kBAAkB,OAAO,GAAG,iBAAiB,CAAC,CAAC,UAAU,gBACpE,MACA;CACA,MAAM,QAAQ,OAAO;CACrB,MAAM,WAAW,OAAO,kBAAkB,IAAI;CAC9C,OAAO,KAAK,UAAUA,MAAI,IAAI,SAAS,cAAc,M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 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@r_masseater/msch",
|
|
3
|
-
"version": "0.133.
|
|
3
|
+
"version": "0.133.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",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"define-lint-preset-W1CiDp0P.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.\",\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 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":";;;;;;;;;;;;;;;;;;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