@r_masseater/msch 0.124.0 → 0.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +373 -262
- package/dist/cli.mjs.map +1 -1
- package/dist/config.d.mts +12 -0
- package/dist/config.mjs +1 -518
- package/dist/repository-config-8JN86BZA.mjs +834 -0
- package/dist/repository-config-8JN86BZA.mjs.map +1 -0
- package/package.json +2 -1
- package/skills/msch-repository-config/SKILL.md +11 -8
- package/dist/config.mjs.map +0 -1
- package/dist/repository-text-DfTSvaqo.mjs +0 -322
- package/dist/repository-text-DfTSvaqo.mjs.map +0 -1
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import { r as RepositoryFiles } from "./repository-files-C_GzAnYp.mjs";
|
|
2
|
-
import { c as TASK_NAMES, i as workspaceProjects } from "./workspace-projects-eapoa0az.mjs";
|
|
3
|
-
import { a as textlintFilters, i as zennMarkdown, o as textlintPresets, x as exempt } from "./define-lint-preset-D3jb88wH.mjs";
|
|
4
|
-
import { i as USAGE_SPOOL } from "./config-B3SYjao5.mjs";
|
|
5
|
-
import { Array, Effect, Option, Record, String as String$1, pipe } from "effect";
|
|
6
|
-
import { betterleaks } from "@r_masseater/h56m/presets";
|
|
7
|
-
// src/entities/workspace/model/workspace-names.ts
|
|
8
|
-
const ALTERNATIVE = "|";
|
|
9
|
-
const SCOPE = /^@[^/]+\//u;
|
|
10
|
-
const SPECIAL = /[$()*+.?[\\\]^{|}]/gu;
|
|
11
|
-
/** @internal */
|
|
12
|
-
const patternOf = (names) => {
|
|
13
|
-
const alternatives = pipe(names, Array.map(String$1.replaceAll(SPECIAL, String.raw`\$&`)));
|
|
14
|
-
return new RegExp(`(?<![\\p{L}\\p{N}_-])(?:${Array.join(alternatives, ALTERNATIVE)})(?![\\p{L}\\p{N}_-])`, "gu");
|
|
15
|
-
};
|
|
16
|
-
const namedIn = (basename) => ({ directory, packageName }) => {
|
|
17
|
-
const unscoped = pipe(packageName, Option.map(String$1.replace(SCOPE, "")));
|
|
18
|
-
return {
|
|
19
|
-
directory,
|
|
20
|
-
names: pipe([
|
|
21
|
-
Option.some(directory),
|
|
22
|
-
Option.some(basename(directory)),
|
|
23
|
-
packageName,
|
|
24
|
-
unscoped
|
|
25
|
-
], Array.getSomes, Array.dedupe),
|
|
26
|
-
packageName
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/** @internal */
|
|
30
|
-
const namedWorkspaces = Effect.fn("namedWorkspaces")(function* namedWorkspaces(root) {
|
|
31
|
-
const files = yield* RepositoryFiles;
|
|
32
|
-
const projects = yield* workspaceProjects(root);
|
|
33
|
-
return pipe(projects, Array.map(namedIn((directory) => files.basename(directory))));
|
|
34
|
-
});
|
|
35
|
-
// src/shared/lib/path-existence.ts
|
|
36
|
-
const WILDCARD = /[*?[]/u;
|
|
37
|
-
const SEPARATOR = "/";
|
|
38
|
-
const FIRST = 0;
|
|
39
|
-
/** @internal */
|
|
40
|
-
const existsAt = Effect.fn("existsAt")(function* existsAt(root, path) {
|
|
41
|
-
const files = yield* RepositoryFiles;
|
|
42
|
-
return yield* files.exists(files.join(root, path));
|
|
43
|
-
});
|
|
44
|
-
/** @internal */
|
|
45
|
-
const isDirectoryAt = Effect.fn("isDirectoryAt")(function* isDirectoryAt(root, path) {
|
|
46
|
-
const files = yield* RepositoryFiles;
|
|
47
|
-
const directory = yield* files.isDirectory(files.join(root, path));
|
|
48
|
-
return Option.getOrElse(directory, () => false);
|
|
49
|
-
});
|
|
50
|
-
/** @internal */
|
|
51
|
-
const staticPrefix = (path) => {
|
|
52
|
-
const prefix = Array.headNonEmpty(String$1.split(path, WILDCARD));
|
|
53
|
-
if (String$1.endsWith(SEPARATOR)(prefix)) return String$1.slice(FIRST, -1)(prefix);
|
|
54
|
-
return prefix;
|
|
55
|
-
};
|
|
56
|
-
/** @internal */
|
|
57
|
-
const isIgnored = Effect.fn("isIgnored")(function* isIgnored(root, path) {
|
|
58
|
-
const prefix = staticPrefix(path);
|
|
59
|
-
if (String$1.isEmpty(prefix)) return false;
|
|
60
|
-
const ignored = yield* (yield* RepositoryFiles).ignoredPaths(root, [prefix, `${prefix}${SEPARATOR}`]);
|
|
61
|
-
return Array.isReadonlyArrayNonEmpty(ignored);
|
|
62
|
-
});
|
|
63
|
-
// src/app/repository-tasks.ts
|
|
64
|
-
const NOT_INPUTS = [
|
|
65
|
-
"!node_modules/.pnpm-store",
|
|
66
|
-
"!node_modules/.pnpm-store/**",
|
|
67
|
-
"!node_modules/.tmp",
|
|
68
|
-
"!node_modules/.tmp/**",
|
|
69
|
-
"!target/**",
|
|
70
|
-
"!node_modules/.vitest-cache/**",
|
|
71
|
-
"!node_modules/.cache/**"
|
|
72
|
-
];
|
|
73
|
-
const UNTRACKED_ENV = [
|
|
74
|
-
"CLOUDFLARE_ACCOUNT_ID",
|
|
75
|
-
"CLOUDFLARE_AI_GATEWAY_ID",
|
|
76
|
-
"CLOUDFLARE_API_TOKEN",
|
|
77
|
-
"CLAUDECODE",
|
|
78
|
-
"CLAUDE_CODE_REMOTE",
|
|
79
|
-
"GITHUB_ACTIONS",
|
|
80
|
-
"HTTPS_PROXY",
|
|
81
|
-
"https_proxy",
|
|
82
|
-
"NO_PROXY",
|
|
83
|
-
"no_proxy",
|
|
84
|
-
"SSL_CERT_FILE",
|
|
85
|
-
"NODE_EXTRA_CA_CERTS"
|
|
86
|
-
];
|
|
87
|
-
const FALLOW = pipe([
|
|
88
|
-
"--skip dupes --fail-on-issues --quiet --format compact",
|
|
89
|
-
"dead-code --no-production --fail-on-issues --quiet --format compact",
|
|
90
|
-
"dead-code --no-production --quiet --format json | jq -n 'input | {prop_drilling_chains, thin_wrappers, duplicate_prop_shapes} | with_entries(select(.value | length > 0)) | if length > 0 then halt_error else empty end'",
|
|
91
|
-
"dupes --fail-on-issues --quiet --format compact",
|
|
92
|
-
"security --fail-on-issues --quiet"
|
|
93
|
-
], Array.map((args) => `FALLOW_TYPE_AWARE_BACKEND=tsrs fallow ${args}`));
|
|
94
|
-
const CHECK = `TSRS_LINT_RUN_EXTERNAL_CODE=1 msch changed --batch-sources ${String(1e3)} -- vp check --deny-warnings --continue-on-error --no-error-on-unmatched-pattern`;
|
|
95
|
-
const COMPAT = "msch changed -- msch publish compat-changed";
|
|
96
|
-
const AUDIT = Array.join([
|
|
97
|
-
"copy=\"$(mktemp -d)\"",
|
|
98
|
-
`trap 'rm -rf "$copy"' EXIT`,
|
|
99
|
-
`for file in ${Array.join([
|
|
100
|
-
"package.json",
|
|
101
|
-
"pnpm-workspace.yaml",
|
|
102
|
-
"pnpm-lock.yaml",
|
|
103
|
-
".npmrc"
|
|
104
|
-
], " ")}; do if [ -f "$file" ]; then cp "$file" "$copy/"; fi; done`,
|
|
105
|
-
"(cd \"$copy\" && vp pm audit --fix >/dev/null) || exit",
|
|
106
|
-
`added="$(diff pnpm-workspace.yaml "$copy/pnpm-workspace.yaml" | sed -n 's/^> \\(.*\\)$/\\1 # exit: unused/p')"`,
|
|
107
|
-
"if [ -z \"$added\" ]; then exit 0; fi",
|
|
108
|
-
`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`,
|
|
109
|
-
"exit 1"
|
|
110
|
-
], "; ");
|
|
111
|
-
const BROKER_TOKEN = `GH_TOKEN="\${GITHUB_APP_TOKEN:-$GH_TOKEN}"`;
|
|
112
|
-
const DAILY = `msch exits; ${BROKER_TOKEN} msch upstream; ${BROKER_TOKEN} msch callers; ${BROKER_TOKEN} msch refs; refs=$?; msch agents "\${RUNNER_TEMP:-\${TMPDIR:-/tmp}}/msch-agents" && exit "$refs"`;
|
|
113
|
-
const TEST = "msch changed -- vp test run --passWithNoTests";
|
|
114
|
-
const CARGO = "cargo fmt --all --check && cargo clippy --workspace --all-targets --locked -- -D warnings";
|
|
115
|
-
const cargoTasks = (cargo) => Option.match(cargo, {
|
|
116
|
-
onNone: () => ({}),
|
|
117
|
-
onSome: (inputs) => ({ cargo: {
|
|
118
|
-
command: CARGO,
|
|
119
|
-
cache: {
|
|
120
|
-
input: [...inputs],
|
|
121
|
-
output: [],
|
|
122
|
-
untrackedEnv: UNTRACKED_ENV
|
|
123
|
-
}
|
|
124
|
-
} })
|
|
125
|
-
});
|
|
126
|
-
const MSCH_VERIFY_COMMANDS = {
|
|
127
|
-
fallow: FALLOW,
|
|
128
|
-
check: CHECK,
|
|
129
|
-
msch: "msch",
|
|
130
|
-
audit: AUDIT,
|
|
131
|
-
published: "msch published",
|
|
132
|
-
compat: COMPAT
|
|
133
|
-
};
|
|
134
|
-
const MSCH_TASK_COMMANDS = {
|
|
135
|
-
...MSCH_VERIFY_COMMANDS,
|
|
136
|
-
test: TEST
|
|
137
|
-
};
|
|
138
|
-
const CI_TASKS = [TASK_NAMES.verify, TASK_NAMES.test];
|
|
139
|
-
const USAGE_TASK = "usage";
|
|
140
|
-
const METERED_TASKS = ["check", "msch"];
|
|
141
|
-
const meteredCommand = (command) => `USAGE_METER_SPOOL="$PWD/${USAGE_SPOOL}" ${command}`;
|
|
142
|
-
const usageCommandOf = ({ endpoint, apiKeyEnv }) => pipe(Option.fromUndefinedOr(apiKeyEnv), Option.match({
|
|
143
|
-
onNone: () => `msch usage --endpoint ${endpoint}`,
|
|
144
|
-
onSome: (name) => `msch usage --endpoint ${endpoint} --api-key-env ${name}`
|
|
145
|
-
}));
|
|
146
|
-
const commandOf = (usage) => (command) => Option.match(usage, {
|
|
147
|
-
onNone: () => command,
|
|
148
|
-
onSome: () => meteredCommand(command)
|
|
149
|
-
});
|
|
150
|
-
const usageTasks = (usage) => Option.match(usage, {
|
|
151
|
-
onNone: () => ({}),
|
|
152
|
-
onSome: (options) => ({ [USAGE_TASK]: {
|
|
153
|
-
command: usageCommandOf(options),
|
|
154
|
-
dependsOn: [...METERED_TASKS],
|
|
155
|
-
cache: false
|
|
156
|
-
} })
|
|
157
|
-
});
|
|
158
|
-
const tasksOf = ({ workspace, commands, usage, cargo }) => {
|
|
159
|
-
const inputs = [
|
|
160
|
-
{ auto: true },
|
|
161
|
-
...workspace.ignoredDirectories,
|
|
162
|
-
...NOT_INPUTS
|
|
163
|
-
];
|
|
164
|
-
const run = commandOf(usage);
|
|
165
|
-
const checks = {
|
|
166
|
-
...commands,
|
|
167
|
-
fallow: {
|
|
168
|
-
command: FALLOW,
|
|
169
|
-
cache: {
|
|
170
|
-
input: [
|
|
171
|
-
...inputs,
|
|
172
|
-
"!.fallow/**",
|
|
173
|
-
"!**/dist/**",
|
|
174
|
-
"!**/.fallow-verified"
|
|
175
|
-
],
|
|
176
|
-
output: []
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
check: {
|
|
180
|
-
command: run(CHECK),
|
|
181
|
-
cache: {
|
|
182
|
-
input: inputs,
|
|
183
|
-
untrackedEnv: UNTRACKED_ENV
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
msch: {
|
|
187
|
-
command: run(MSCH_VERIFY_COMMANDS.msch),
|
|
188
|
-
dependsOn: ["check", ...workspace.tasks.native],
|
|
189
|
-
cache: false
|
|
190
|
-
},
|
|
191
|
-
audit: {
|
|
192
|
-
command: AUDIT,
|
|
193
|
-
cache: false
|
|
194
|
-
},
|
|
195
|
-
published: {
|
|
196
|
-
command: MSCH_TASK_COMMANDS.published,
|
|
197
|
-
cache: false
|
|
198
|
-
},
|
|
199
|
-
compat: {
|
|
200
|
-
command: COMPAT,
|
|
201
|
-
dependsOn: ["msch", "fallow"],
|
|
202
|
-
cache: false
|
|
203
|
-
},
|
|
204
|
-
...cargoTasks(cargo),
|
|
205
|
-
...usageTasks(usage)
|
|
206
|
-
};
|
|
207
|
-
return {
|
|
208
|
-
...checks,
|
|
209
|
-
test: {
|
|
210
|
-
command: TEST,
|
|
211
|
-
dependsOn: ["check", ...workspace.tasks.native],
|
|
212
|
-
cache: { input: [...inputs, "!**/.cache/**"] }
|
|
213
|
-
},
|
|
214
|
-
daily: {
|
|
215
|
-
command: DAILY,
|
|
216
|
-
dependsOn: [...workspace.tasks.native],
|
|
217
|
-
cache: false
|
|
218
|
-
},
|
|
219
|
-
verify: {
|
|
220
|
-
command: [],
|
|
221
|
-
dependsOn: [...workspace.tasks.verify, ...Record.keys(checks)]
|
|
222
|
-
},
|
|
223
|
-
ci: {
|
|
224
|
-
command: [],
|
|
225
|
-
dependsOn: [...CI_TASKS, ...workspace.tasks.test]
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
};
|
|
229
|
-
const REINSTALL = "vp install";
|
|
230
|
-
const GIT_HOOKS = {
|
|
231
|
-
"pre-commit": ["vp staged", "vp exec msch --staged"],
|
|
232
|
-
"commit-msg": ["vp exec msch --commit-msg \"$1\""],
|
|
233
|
-
"pre-push": ["vp exec msch --pre-push", "vp run verify"],
|
|
234
|
-
"post-checkout": [`[ "$3" = 0 ] || ${REINSTALL}`],
|
|
235
|
-
"post-merge": [REINSTALL],
|
|
236
|
-
"post-rewrite": [REINSTALL]
|
|
237
|
-
};
|
|
238
|
-
const gitHooksOf = (hooks = {}) => ({
|
|
239
|
-
...GIT_HOOKS,
|
|
240
|
-
...hooks
|
|
241
|
-
});
|
|
242
|
-
// src/app/repository-text.ts
|
|
243
|
-
const TEXT_IGNORES = [
|
|
244
|
-
"AGENTS.md",
|
|
245
|
-
"CLAUDE.md",
|
|
246
|
-
".agents/skills/**",
|
|
247
|
-
"CHANGELOG.md",
|
|
248
|
-
...exempt
|
|
249
|
-
];
|
|
250
|
-
const ZENN_MARKDOWN = "zenn-markdown";
|
|
251
|
-
const QUOTATION = String.raw`/「(?:[^「」]|「[^「」]*」)*」|『(?:[^『』]|『[^『』]*』)*』/`;
|
|
252
|
-
const ELLIPSIS = "…";
|
|
253
|
-
const filtersOf = (properNouns) => ({
|
|
254
|
-
comments: true,
|
|
255
|
-
"node-types": { nodeTypes: ["BlockQuote"] },
|
|
256
|
-
allowlist: { allow: [QUOTATION, ...properNouns] }
|
|
257
|
-
});
|
|
258
|
-
const SENTENCE_LENGTH = 120;
|
|
259
|
-
const KANJI_RUN = 6;
|
|
260
|
-
const PUBLIC_LINES = [
|
|
261
|
-
String.raw`\bCF_BEACON_TOKEN = "[0-9a-f]{32}"`,
|
|
262
|
-
String.raw`\b\w*DISCORD_\w*ID = "[0-9]{17,20}"`,
|
|
263
|
-
String.raw`untrusted comment: minisign public key: [0-9A-F]{16}`
|
|
264
|
-
];
|
|
265
|
-
const EXEMPT_PATHS = [String.raw`(?:^|/)(?:fixtures|upstream|hooks/vendor)/`];
|
|
266
|
-
const builtRules = (style) => ({
|
|
267
|
-
"@textlint-ja/preset-ai-writing": true,
|
|
268
|
-
"@r_masseater/preset-ja": true,
|
|
269
|
-
"preset-ja-technical-writing": {
|
|
270
|
-
"sentence-length": { max: SENTENCE_LENGTH },
|
|
271
|
-
"ja-no-mixed-period": { allowPeriodMarks: [":"] },
|
|
272
|
-
"no-mix-dearu-desumasu": {
|
|
273
|
-
preferInBody: style,
|
|
274
|
-
preferInList: style
|
|
275
|
-
},
|
|
276
|
-
"max-kanji-continuous-len": { max: KANJI_RUN },
|
|
277
|
-
"ja-no-successive-word": { allow: [ELLIPSIS] }
|
|
278
|
-
}
|
|
279
|
-
});
|
|
280
|
-
const builtTextRuleNames = Record.keys(builtRules("である"));
|
|
281
|
-
const textlintOf = ({ properNouns = [], rules = {}, sources = [], articles }) => {
|
|
282
|
-
const textRules = {
|
|
283
|
-
...rules,
|
|
284
|
-
...builtRules("である")
|
|
285
|
-
};
|
|
286
|
-
const filters = filtersOf(properNouns);
|
|
287
|
-
const articleSources = Array.filter([{
|
|
288
|
-
files: [...articles],
|
|
289
|
-
plugins: { [ZENN_MARKDOWN]: true },
|
|
290
|
-
rules: {
|
|
291
|
-
...rules,
|
|
292
|
-
...builtRules("ですます")
|
|
293
|
-
},
|
|
294
|
-
filters
|
|
295
|
-
}], () => Array.isReadonlyArrayNonEmpty(articles));
|
|
296
|
-
return {
|
|
297
|
-
ignores: [...TEXT_IGNORES, ...articles],
|
|
298
|
-
presets: textlintPresets,
|
|
299
|
-
filterModules: textlintFilters,
|
|
300
|
-
pluginModules: { [ZENN_MARKDOWN]: zennMarkdown },
|
|
301
|
-
reportUnusedDirectives: true,
|
|
302
|
-
sources: pipe(sources, Array.map(({ files, plugins }) => ({
|
|
303
|
-
files: [...files],
|
|
304
|
-
plugins: { ...plugins },
|
|
305
|
-
rules: textRules,
|
|
306
|
-
filters
|
|
307
|
-
})), Array.appendAll(articleSources)),
|
|
308
|
-
filters,
|
|
309
|
-
rules: textRules
|
|
310
|
-
};
|
|
311
|
-
};
|
|
312
|
-
const anyOf = (subject) => (patterns) => {
|
|
313
|
-
if (Array.isReadonlyArrayEmpty(patterns)) return [];
|
|
314
|
-
return [`matchesAny(${subject}, [${pipe(patterns, Array.map((pattern) => `\`${pattern}\``), Array.join(", "))}])`];
|
|
315
|
-
};
|
|
316
|
-
const secretsOf = () => ({
|
|
317
|
-
extend: { path: betterleaks },
|
|
318
|
-
filter: pipe([...anyOf("finding.line")(PUBLIC_LINES), ...anyOf(`attributes["path"]`)(EXEMPT_PATHS)], Array.join(" || "))
|
|
319
|
-
});
|
|
320
|
-
export { patternOf as _, CI_TASKS as a, MSCH_VERIFY_COMMANDS as c, tasksOf as d, existsAt as f, namedWorkspaces as g, staticPrefix as h, textlintOf as i, gitHooksOf as l, isIgnored as m, builtTextRuleNames as n, GIT_HOOKS as o, isDirectoryAt as p, secretsOf as r, MSCH_TASK_COMMANDS as s, TEXT_IGNORES as t, meteredCommand as u };
|
|
321
|
-
|
|
322
|
-
//# sourceMappingURL=repository-text-DfTSvaqo.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"repository-text-DfTSvaqo.mjs","names":["Arr","Str","Arr","Str","Arr","Rec","Rec","Arr"],"sources":["../src/entities/workspace/model/workspace-names.ts","../src/shared/lib/path-existence.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 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\";\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 FALLOW_ARGS = [\n \"--skip dupes --fail-on-issues --quiet --format compact\",\n \"dead-code --no-production --fail-on-issues --quiet --format compact\",\n \"dead-code --no-production --quiet --format json | jq -n 'input | {prop_drilling_chains, thin_wrappers, duplicate_prop_shapes} | with_entries(select(.value | length > 0)) | if length > 0 then halt_error else empty end'\",\n \"dupes --fail-on-issues --quiet --format compact\",\n \"security --fail-on-issues --quiet\",\n];\n\nconst FALLOW = pipe(\n FALLOW_ARGS,\n Arr.map((args) => `FALLOW_TYPE_AWARE_BACKEND=tsrs fallow ${args}`),\n);\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 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 fallow: FALLOW,\n check: CHECK,\n msch: \"msch\",\n audit: AUDIT,\n published: \"msch published\",\n compat: COMPAT,\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 fallow: {\n command: FALLOW,\n cache: {\n input: [...inputs, \"!.fallow/**\", \"!**/dist/**\", \"!**/.fallow-verified\"],\n output: [],\n },\n },\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 published: { command: MSCH_TASK_COMMANDS.published, cache: false },\n compat: { command: COMPAT, dependsOn: [\"msch\", \"fallow\"], 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, Record as Rec, 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 ELLIPSIS = \"…\";\nconst filtersOf = (properNouns: readonly string[]): Readonly<Record<string, object | boolean>> => ({\n comments: true,\n \"node-types\": { nodeTypes: [\"BlockQuote\"] },\n allowlist: { allow: [QUOTATION, ...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 builtTextRuleNames: readonly string[] = Rec.keys(builtRules(\"である\"));\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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