@r_masseater/vite-plus-adopt 0.9.0 → 0.10.1

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/README.md CHANGED
@@ -1,20 +1,20 @@
1
1
  # vite-plus-adopt
2
2
 
3
- `vpa` は、Betterleaks・actionlint・zizmor・commitlint・textlint・markdownlint・Steiger・fallow とエージェントスキルの導入を Vite+ に取り込む CLI である。設定と依存の規則を `vite.config.ts` に書くと、そこから読んで動かす。
4
- 引数なしの `vpa` を 1 回実行すると、設定のある検査をすべて並行して動かし、結果をまとめて出す。
5
- TypeScript 7 だけで動く Feature-Sliced Design の Steiger プラグインと @arethetypeswrong/core も同梱する。
3
+ `vpa` is a CLI that brings Betterleaks, actionlint, zizmor, commitlint, textlint, markdownlint, Steiger, fallow and agent skill installation into Vite+. Write their settings and your dependency rules in `vite.config.ts`, and `vpa` reads them from there.
4
+ Running `vpa` once with no arguments runs every configured check in parallel and prints the results together.
5
+ It also bundles a Feature-Sliced Design plugin for Steiger and @arethetypeswrong/core, both running on TypeScript 7 alone.
6
6
 
7
- ## 公開先
7
+ ## Published to
8
8
 
9
9
  - npm: [@r_masseater/vite-plus-adopt](https://www.npmjs.com/package/@r_masseater/vite-plus-adopt)
10
10
 
11
- ## 使い方
11
+ ## Usage
12
12
 
13
13
  ```sh
14
14
  vp add -D @r_masseater/vite-plus-adopt
15
15
  ```
16
16
 
17
- postinstall を許すため、`pnpm-workspace.yaml` の `allowBuilds` に足す。
17
+ Allow its postinstall by adding it to `allowBuilds` in `pnpm-workspace.yaml`.
18
18
 
19
19
  ```yaml
20
20
  allowBuilds:
@@ -29,13 +29,13 @@ import { defineConfig } from "vite-plus";
29
29
  export default defineConfig({
30
30
  commitlint: { extends: ["@commitlint/config-conventional"] },
31
31
  dependencyRules: {
32
- banned: { "テストは vite-plus/test から読む": ["vitest", "@vitest/*"] },
32
+ banned: { "Import tests from vite-plus/test": ["vitest", "@vitest/*"] },
33
33
  peerRanges: "intersect",
34
34
  },
35
35
  betterleaks: {
36
36
  extend: { useDefault: true },
37
37
  filter: 'matchesAny(finding.line, [`\\bCF_BEACON_TOKEN = "[0-9a-f]{32}"`])',
38
- ignoredSecrets: ["<秘密の SHA-256>"],
38
+ ignoredSecrets: ["<SHA-256 of the secret>"],
39
39
  },
40
40
  steiger: { paths: ["apps/*/src"], rules: [...fsd.configs.recommended] },
41
41
  textlint: {
@@ -48,11 +48,11 @@ export default defineConfig({
48
48
  });
49
49
  ```
50
50
 
51
- `import type {} from "@r_masseater/vite-plus-adopt"` で、`defineConfig` に上の 8 つのキーの型が付く。
52
- textlint は Git が追跡する Markdown を検査する。ほかのファイルも検査するときは、`textlint.sources` に対象の glob(`files`)とそのファイルに当てる設定を並べる。`presets` はそこでも使える。
53
- Steiger は `steiger.paths` に合うディレクトリのうち、直下に FSD のレイヤー(`app`・`pages`・`widgets`・`features`・`entities`・`shared` など)のフォルダを持つものだけを検査する。
51
+ `import type {} from "@r_masseater/vite-plus-adopt"` types the 8 keys above on `defineConfig`.
52
+ textlint checks the Markdown files Git tracks. To check other files too, list their globs (`files`) and the settings for them in `textlint.sources`. `presets` work there as well.
53
+ Steiger checks only the directories matching `steiger.paths` that directly contain FSD layer folders (`app`, `pages`, `widgets`, `features`, `entities`, `shared` and so on).
54
54
 
55
- Git のフックは次のように書く。
55
+ Write the Git hooks like this.
56
56
 
57
57
  ```sh
58
58
  # .vite-hooks/pre-commit
@@ -61,9 +61,9 @@ vpa --staged
61
61
  vpa --commit-msg "$1"
62
62
  ```
63
63
 
64
- ## エージェントスキル
64
+ ## Agent skills
65
65
 
66
- `skills` に GitHub のリポジトリとコミットを書くと、`vpa --prepare` がそのスキルを `.agents/skills/` に置く。スキルは `SKILL.md` の `name` で選び、`"all"` は `root` の下のすべてを選ぶ。
66
+ List GitHub repositories and commits in `skills`, and `vpa --prepare` puts their skills in `.agents/skills/`. Skills are picked by the `name` in `SKILL.md`, and `"all"` picks every skill under `root`.
67
67
 
68
68
  ```ts
69
69
  export default defineConfig({
@@ -79,21 +79,21 @@ export default defineConfig({
79
79
  });
80
80
  ```
81
81
 
82
- 取得したスキルは `~/.cache/vpa/skills/`(`XDG_CACHE_HOME`、Windows では `LOCALAPPDATA` の下)に読み取り専用で置く。`.agents/skills/` からはシンボリックリンク(Windows ではジャンクション)で指す。同じコミットはマシンのどのワークツリーでも取り直さない。非公開のリポジトリは `GITHUB_TOKEN` で取る。
82
+ Fetched skills are stored read-only in `~/.cache/vpa/skills/` (under `XDG_CACHE_HOME`, or `LOCALAPPDATA` on Windows), and `.agents/skills/` points to them with symbolic links (junctions on Windows). A commit is fetched once per machine and shared by every worktree. Private repositories are fetched with `GITHUB_TOKEN`.
83
83
 
84
- `./` で始まるキーは、このリポジトリのフォルダである。コミットは書かず、`SKILL.md` を持つ直下のフォルダをそのまま指す。
84
+ A key starting with `./` is a folder in this repository. It takes no commit and points directly to the folders under it that contain `SKILL.md`.
85
85
 
86
- `prepare` には `vpa --prepare` を書く。Renovate がコミットを更新できるように、`renovate.json` で次のプリセットを読む。
86
+ Put `vpa --prepare` in `prepare`. To let Renovate update the commits, extend this preset in `renovate.json`.
87
87
 
88
88
  ```json
89
89
  { "extends": ["github>masseater/masseater.dev//libs/vite-plus-adopt/renovate"] }
90
90
  ```
91
91
 
92
- ## Feature-Sliced Design のプラグイン
92
+ ## Feature-Sliced Design plugin
93
93
 
94
- `@r_masseater/vite-plus-adopt/fsd` は [@feature-sliced/steiger-plugin][fsd-plugin] 0.8.2 を同梱したもので、ルールと `configs.recommended` は元と同じである。
95
- steiger 本体も `@feature-sliced/steiger-plugin` に依存し、それが TypeScript 5 を引き込む。
96
- vpa は steiger の CLI を使わないので、`pnpm-workspace.yaml` の `overrides` で外せる。
94
+ `@r_masseater/vite-plus-adopt/fsd` bundles [@feature-sliced/steiger-plugin][fsd-plugin] 0.8.2, with the same rules and `configs.recommended` as the original.
95
+ steiger itself also depends on `@feature-sliced/steiger-plugin`, which pulls in TypeScript 5.
96
+ vpa does not use the steiger CLI, so you can drop it with `overrides` in `pnpm-workspace.yaml`.
97
97
 
98
98
  ```yaml
99
99
  overrides:
@@ -102,10 +102,10 @@ overrides:
102
102
 
103
103
  [fsd-plugin]: https://github.com/feature-sliced/steiger/tree/master/packages/steiger-plugin-fsd
104
104
 
105
- ## @arethetypeswrong/core の置き換え
105
+ ## Replacement for @arethetypeswrong/core
106
106
 
107
- `@r_masseater/vite-plus-adopt/attw` は [@arethetypeswrong/core][attw] 0.18.5 と同じ API を、TypeScript 7.1 だけで出す。
108
- `pack.attw.module` にこれを渡せば、`@arethetypeswrong/core` を入れずに同じ検査が動く。
107
+ `@r_masseater/vite-plus-adopt/attw` provides the same API as [@arethetypeswrong/core][attw] 0.18.5, on TypeScript 7.1 alone.
108
+ Pass it to `pack.attw.module`, and the same checks run without installing `@arethetypeswrong/core`.
109
109
 
110
110
  ```ts
111
111
  import * as attw from "@r_masseater/vite-plus-adopt/attw";
@@ -120,6 +120,6 @@ export default defineConfig({
120
120
 
121
121
  [attw]: https://github.com/arethetypeswrong/arethetypeswrong.github.io/tree/main/packages/core
122
122
 
123
- ## ライセンス
123
+ ## License
124
124
 
125
- MIT。`dist/fsd.mjs`・`dist/parsers`・`dist/attw.mjs` に同梱した元のパッケージのライセンスは `THIRD-PARTY-NOTICES` にある。
125
+ MIT. The licenses of the original packages bundled in `dist/fsd.mjs`, `dist/parsers` and `dist/attw.mjs` are in `THIRD-PARTY-NOTICES`.
@@ -1,5 +1,6 @@
1
1
  dist/fsd.mjs bundles @feature-sliced/steiger-plugin and @feature-sliced/filesystem,
2
2
  and dist/parsers holds the tree-sitter grammars that @feature-sliced/steiger-plugin ships.
3
+ dist/steiger-*.mjs bundles the linter API of steiger 0.10.0 and zod 4.6.7, which steiger uses.
3
4
  dist/attw.mjs bundles the dist of @arethetypeswrong/core 0.18.5 from upstream/attw-core/lib,
4
5
  with upstream/attw-core/lib.patch applied, and the module resolution, program construction
5
6
  and binding in src/attw follow TypeScript 5.6.1-rc.
@@ -277,3 +278,57 @@ If the Work includes a "NOTICE" text file as part of its distribution, then any
277
278
  9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
278
279
 
279
280
  END OF TERMS AND CONDITIONS
281
+
282
+ ================================================================================
283
+
284
+ steiger 0.10.0
285
+ Source: https://github.com/feature-sliced/steiger
286
+
287
+ MIT License
288
+
289
+ Copyright (c) 2026 [Feature-Sliced Design core team and contributors](https://github.com/feature-sliced)
290
+
291
+ Permission is hereby granted, free of charge, to any person obtaining a copy
292
+ of this software and associated documentation files (the "Software"), to deal
293
+ in the Software without restriction, including without limitation the rights
294
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
295
+ copies of the Software, and to permit persons to whom the Software is
296
+ furnished to do so, subject to the following conditions:
297
+
298
+ The above copyright notice and this permission notice shall be included in all
299
+ copies or substantial portions of the Software.
300
+
301
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
302
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
303
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
304
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
305
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
306
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
307
+ SOFTWARE.
308
+
309
+ ================================================================================
310
+
311
+ zod 4.6.7
312
+ Source: https://github.com/colinhacks/zod
313
+
314
+ MIT License
315
+
316
+ Copyright (c) 2025 Colin McDonnell
317
+
318
+ Permission is hereby granted, free of charge, to any person obtaining a copy
319
+ of this software and associated documentation files (the "Software"), to deal
320
+ in the Software without restriction, including without limitation the rights
321
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
322
+ copies of the Software, and to permit persons to whom the Software is
323
+ furnished to do so, subject to the following conditions:
324
+
325
+ The above copyright notice and this permission notice shall be included in all
326
+ copies or substantial portions of the Software.
327
+
328
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
329
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
330
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
331
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
332
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
333
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
334
+ SOFTWARE.
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { t as runCli } from "./run-cli-BiPFbX9J.mjs";
3
- import { t as runVpa } from "./vpa-WxGKHnY6.mjs";
3
+ import { t as runVpa } from "./vpa-DHB6y2A5.mjs";
4
4
  import { Effect, Path, Stdio } from "effect";
5
5
  // src/app/cli.ts
6
6
  runCli(Effect.gen(function* main() {
package/dist/fsd.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { s as SteigerConfig } from "./index-BBBvZ4td.mjs";
1
+ import { s as SteigerConfig } from "./index-DiN12XmL.mjs";
2
2
  export interface FsdPlugin {
3
3
  readonly plugin: SteigerConfig[number];
4
4
  readonly configs: {
package/dist/fsd.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { n as toJson } from "./json-QtVKpodH.mjs";
2
2
  import { Option, String, pipe } from "effect";
3
+ import { isBuiltin } from "module";
3
4
  import { basename, dirname, extname, join, relative, resolve, sep } from "path";
4
5
  import { basename as basename$1, join as join$1, parse, sep as sep$1 } from "node:path";
5
6
  import { serverFS } from "typescript/fs";
@@ -8,7 +9,6 @@ import { API } from "typescript/sync";
8
9
  import * as fs from "fs";
9
10
  import { existsSync, readFileSync, statSync } from "fs";
10
11
  import { parse as parse$1 } from "tsconfck";
11
- import { isBuiltin } from "module";
12
12
  import { Language, Parser, Query } from "web-tree-sitter";
13
13
  import pluralize from "pluralize";
14
14
  import { distance } from "fastest-levenshtein";
@@ -1,7 +1,7 @@
1
+ import { t as defineConfig } from "./steiger-BX9S5pik.mjs";
1
2
  import { Effect, Path, Schema } from "effect";
2
3
  import { TextlintRcConfig } from "@textlint/config-loader";
3
4
  import { TextlintKernelRule } from "@textlint/kernel";
4
- import { defineConfig } from "steiger";
5
5
  import { UserConfig } from "@commitlint/types";
6
6
  import { Configuration, Rule } from "markdownlint";
7
7
  declare const VpToolsError_base: Schema.Class<VpToolsError, Schema.TaggedStruct<"VpToolsError", {
@@ -103,4 +103,4 @@ declare module "vite" {
103
103
  interface UserConfig extends ToolSections {}
104
104
  }
105
105
  export { FallowConfig as a, SteigerSection as c, SkillsSection as d, VpToolsError as f, DependencyRules as i, TextlintConfig as l, BetterleaksRule as n, MarkdownlintConfig as o, CommitlintConfig as r, SteigerConfig as s, BetterleaksConfig as t, ToolSections as u };
106
- //# sourceMappingURL=index-BBBvZ4td.d.mts.map
106
+ //# sourceMappingURL=index-DiN12XmL.d.mts.map
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as FallowConfig, c as SteigerSection, d as SkillsSection, f as VpToolsError, i as DependencyRules, l as TextlintConfig, n as BetterleaksRule, o as MarkdownlintConfig, r as CommitlintConfig, s as SteigerConfig, t as BetterleaksConfig, u as ToolSections } from "./index-BBBvZ4td.mjs";
1
+ import { a as FallowConfig, c as SteigerSection, d as SkillsSection, f as VpToolsError, i as DependencyRules, l as TextlintConfig, n as BetterleaksRule, o as MarkdownlintConfig, r as CommitlintConfig, s as SteigerConfig, t as BetterleaksConfig, u as ToolSections } from "./index-DiN12XmL.mjs";
2
2
  import { Effect, FileSystem, Path, PlatformError, Schema, Stdio } from "effect";
3
3
  import { ChildProcessSpawner } from "effect/process";
4
4
  /** @internal */
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as loadViteConfig, t as runVpa } from "./vpa-WxGKHnY6.mjs";
1
+ import { n as loadViteConfig, t as runVpa } from "./vpa-DHB6y2A5.mjs";
2
2
  import { d as VpToolsError } from "./output-BdvTIQ-k.mjs";
3
3
  export { VpToolsError, loadViteConfig, runVpa };