repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

build: replace mdslw with dprint

9a4cfb2cad1ed0f93e8a42841299b9b1d62eb8b9

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (7)

+100 / −165 text lines

Diff layout

TODO.md

Modified

+5 / −5 text lines

77- [ ] Port agent identity plugin from opencode?
88- [ ] Port model announcer plugin from opencode?
99- [ ] impement minimax extension:
10 access to minmax apis as tools (music, voice, etc)
10 access to minmax apis as tools (music, voice, etc)
1111- [ ] pi-wtf:
12 extension that scans session data for curse words and frustrations and show
13 graph over time.
14 check leaked claude code for killer regex.
12 extension that scans session data for curse words and frustrations and show
13 graph over time.
14 check leaked claude code for killer regex.
1515- [ ] pi-modes:
16 opencode like modes, but simpler and for me
16 opencode like modes, but simpler and for me
1818## TUI

dprint.json

Modified

+7 / −4 text lines

11{
22 "includes": ["**/*.md"],
33 "excludes": ["**/node_modules/**", ".demo/**"],
4 "plugins": ["https://plugins.dprint.dev/markdown-0.21.1.wasm"],
4 "plugins": [
5 "https://plugins.dprint.dev/markdown-0.21.1.wasm",
6 "https://plugins.dprint.dev/g-plane/pretty_yaml-v0.6.0.wasm"
7 ],
58 "markdown": {
6 "lineWidth": 80,
7 "textWrap": "maintain"
8 }
9 "textWrap": "always"
10 },
11 "yaml": {}
912}

extensions/TODO.md

Modified

+5 / −5 text lines

1313- [ ] Port agent identity plugin from opencode?
1414- [ ] Port model announcer plugin from opencode?
1515- [ ] impement minimax extension:
16 access to minmax apis as tools (music, voice, etc)
16 access to minmax apis as tools (music, voice, etc)
1717- [ ] pi-wtf:
18 extension that scans session data for curse words and frustrations and show
19 graph over time.
20 check leaked claude code for killer regex.
18 extension that scans session data for curse words and frustrations and show
19 graph over time.
20 check leaked claude code for killer regex.
2121- [ ] pi-modes:
22 opencode like modes, but simpler and for me
22 opencode like modes, but simpler and for me
2424## TUI

extensions/diff-review/FEATURE-PARITY.md

Modified

+2 / −2 text lines

4040- [x] `server.ts` serves HTML instead of static bundle (Phase 3)
4141- [x] `index.ts` removes `ensureBrowserBundle` (Phase 4)
4242- [x] Cleanup:
43 `bundle.ts`, `browser/`, old `scripts/` deleted (Phase 5)
43 `bundle.ts`, `browser/`, old `scripts/` deleted (Phase 5)
4444- [x] `scripts/dev-server.ts` starts fixture server for manual Chrome/Firefox
45 testing (Phase 6)
45 testing (Phase 6)
4646- [x] Full `vitest run` passes (15/15)
4747- [x] Manual smoke verified via `curl` + dev server
4848- [x] Line selection / inline finding form interactivity

mise.lock

Modified

+79 / −106 text lines

1# @generated - this file is auto-generated by `mise lock` https://mise.jdx.dev/dev-tools/mise-lock.html
1# @generated - this file is auto-generated by `mise lock` https://mise.en.dev/dev-tools/mise-lock.html
33[[tools."aqua:nushell/nushell"]]
44version = "0.112.2"
99url = "https://github.com/nushell/nushell/releases/download/0.112.2/nu-0.112.2-aarch64-unknown-linux-gnu.tar.gz"
1111[tools."aqua:nushell/nushell"."platforms.linux-arm64-musl"]
12checksum = "sha256:c25a713f4c10bd886162c62c278db6cf8a657754be53d33379af70fbadab07b8"
13url = "https://github.com/nushell/nushell/releases/download/0.112.2/nu-0.112.2-aarch64-unknown-linux-gnu.tar.gz"
12checksum = "sha256:ab32bb605cd11a7d9cfd45c3cb19f6141a724e204b20531802bacd9eb659879b"
13url = "https://github.com/nushell/nushell/releases/download/0.112.2/nu-0.112.2-aarch64-unknown-linux-musl.tar.gz"
1515[tools."aqua:nushell/nushell"."platforms.linux-x64"]
1616checksum = "sha256:d9c0ba0938beed6148c8a354c45612c0979d7a787794b8dd13e866ca3b571375"
5555[tools.biome."platforms.linux-arm64"]
5656checksum = "sha256:7eb8d592da36b990a43f00545469c29b149e665ff0eb1fcd45e37f0d6153e2ae"
5757url = "https://github.com/biomejs/biome/releases/download/%40biomejs/biome%402.4.15/biome-linux-arm64"
58provenance = "github-attestations"
5960[tools.biome."platforms.linux-arm64-musl"]
60checksum = "sha256:7eb8d592da36b990a43f00545469c29b149e665ff0eb1fcd45e37f0d6153e2ae"
61url = "https://github.com/biomejs/biome/releases/download/%40biomejs/biome%402.4.15/biome-linux-arm64"
61checksum = "sha256:9dfd5ab51e493864777fc77447d8416cc19d70d644d900048e703aad95afe9d2"
62url = "https://github.com/biomejs/biome/releases/download/%40biomejs/biome%402.4.15/biome-linux-arm64-musl"
63provenance = "github-attestations"
6365[tools.biome."platforms.linux-x64"]
6466checksum = "sha256:8dafe2739eafd03230ea1bd3be1a8aa036cf3dc1ab385987f4c2c72c7c2f3500"
6567url = "https://github.com/biomejs/biome/releases/download/%40biomejs/biome%402.4.15/biome-linux-x64"
68provenance = "github-attestations"
6770[tools.biome."platforms.linux-x64-baseline"]
6871checksum = "sha256:8dafe2739eafd03230ea1bd3be1a8aa036cf3dc1ab385987f4c2c72c7c2f3500"
6972url = "https://github.com/biomejs/biome/releases/download/%40biomejs/biome%402.4.15/biome-linux-x64"
73provenance = "github-attestations"
7175[tools.biome."platforms.linux-x64-musl"]
72checksum = "sha256:8dafe2739eafd03230ea1bd3be1a8aa036cf3dc1ab385987f4c2c72c7c2f3500"
73url = "https://github.com/biomejs/biome/releases/download/%40biomejs/biome%402.4.15/biome-linux-x64"
76checksum = "sha256:60b19c9c7e611e1b18268b3d9baf9ec903f6ca184c3a8e81845f68fd3b621f49"
77url = "https://github.com/biomejs/biome/releases/download/%40biomejs/biome%402.4.15/biome-linux-x64-musl"
78provenance = "github-attestations"
7580[tools.biome."platforms.linux-x64-musl-baseline"]
76checksum = "sha256:8dafe2739eafd03230ea1bd3be1a8aa036cf3dc1ab385987f4c2c72c7c2f3500"
77url = "https://github.com/biomejs/biome/releases/download/%40biomejs/biome%402.4.15/biome-linux-x64"
81checksum = "sha256:60b19c9c7e611e1b18268b3d9baf9ec903f6ca184c3a8e81845f68fd3b621f49"
82url = "https://github.com/biomejs/biome/releases/download/%40biomejs/biome%402.4.15/biome-linux-x64-musl"
83provenance = "github-attestations"
7985[tools.biome."platforms.macos-arm64"]
8086checksum = "sha256:b2c65601b3b0fcd0606c4152f20e3774aadf0b73ba791b8dbcff7e6f1a4fa17a"
8187url = "https://github.com/biomejs/biome/releases/download/%40biomejs/biome%402.4.15/biome-darwin-arm64"
88provenance = "github-attestations"
8390[tools.biome."platforms.macos-x64"]
8491checksum = "sha256:fab8a39dc54a38f820b2952f7f80e7e8993483b7501a4f19d1cbf4361128a07d"
8592url = "https://github.com/biomejs/biome/releases/download/%40biomejs/biome%402.4.15/biome-darwin-x64"
93provenance = "github-attestations"
8795[tools.biome."platforms.macos-x64-baseline"]
8896checksum = "sha256:fab8a39dc54a38f820b2952f7f80e7e8993483b7501a4f19d1cbf4361128a07d"
8997url = "https://github.com/biomejs/biome/releases/download/%40biomejs/biome%402.4.15/biome-darwin-x64"
98provenance = "github-attestations"
91100[tools.biome."platforms.windows-x64"]
92101checksum = "sha256:a77a61537dfc6f923b5b1fc912bc2e0ed46a83c3303ca973695d7f4f8351c71e"
93102url = "https://github.com/biomejs/biome/releases/download/%40biomejs/biome%402.4.15/biome-win32-x64.exe"
103provenance = "github-attestations"
95105[tools.biome."platforms.windows-x64-baseline"]
96106checksum = "sha256:a77a61537dfc6f923b5b1fc912bc2e0ed46a83c3303ca973695d7f4f8351c71e"
97107url = "https://github.com/biomejs/biome/releases/download/%40biomejs/biome%402.4.15/biome-win32-x64.exe"
99[[tools.bun]]
100version = "1.3.14"
101backend = "core:bun"
103[tools.bun."platforms.linux-arm64"]
104checksum = "sha256:a27ffb63a8310375836e0d6f668ae17fa8d8d18b88c37c821c65331973a19a3b"
105url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-aarch64.zip"
107[tools.bun."platforms.linux-arm64-musl"]
108checksum = "sha256:b98e0ad3625c5c00d1d5b5ff55605c7adddbfae151861e68ade57b2d3b8703bb"
109url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-aarch64-musl.zip"
111[tools.bun."platforms.linux-x64"]
112checksum = "sha256:951ee2aee855f08595aeec6225226a298d3fea83a3dcd6465c09cbccdf7e848f"
113url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-x64.zip"
115[tools.bun."platforms.linux-x64-baseline"]
116checksum = "sha256:a063908ae08b7852ca10939bbdc6ceed3ddabce8fb9402dce83d65d73b36e6c7"
117url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-x64-baseline.zip"
119[tools.bun."platforms.linux-x64-musl"]
120checksum = "sha256:14bd9aedeebf1dba67e8def9531c89bc989ecfdf1de42e5bfcaf1b8cd9294719"
121url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-x64-musl.zip"
123[tools.bun."platforms.linux-x64-musl-baseline"]
124checksum = "sha256:56a7d6806cf155536c0178f0ea5fbd098e684fa509ebdb4fc0a7e19fb65382dc"
125url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-x64-musl-baseline.zip"
127[tools.bun."platforms.macos-arm64"]
128checksum = "sha256:d8b96221828ad6f97ac7ac0ab7e95872341af763001e8803e8267652c2652620"
129url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-darwin-aarch64.zip"
131[tools.bun."platforms.macos-x64"]
132checksum = "sha256:4183df3374623e5bab315c547cfa0974533cd457d86b73b639f7a87974cd6633"
133url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-darwin-x64.zip"
135[tools.bun."platforms.macos-x64-baseline"]
136checksum = "sha256:3e35ad6f53971a9834bf9e6786e2adf72b5f1921cc9a9c5fde073d2972944076"
137url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-darwin-x64-baseline.zip"
139[tools.bun."platforms.windows-x64"]
140checksum = "sha256:0a0620930b6675d7ba440e81f4e0e00d3cfbe096c4b140d3fff02205e9e18922"
141url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-windows-x64.zip"
143[tools.bun."platforms.windows-x64-baseline"]
144checksum = "sha256:538f9c846355d9e847b2671bc00c47da4229a0befb24df3282b739770f3b475f"
145url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-windows-x64-baseline.zip"
108provenance = "github-attestations"
147110[[tools.dprint]]
148111version = "0.54.0"
192155checksum = "sha256:3fd881acaf7fd4fbc5d07c3030ce79b965a4cb7128fe0eb1ebe725188ccd2715"
193156url = "https://github.com/dprint/dprint/releases/download/0.54.0/dprint-x86_64-pc-windows-msvc.zip"
195[[tools."github:razziel89/mdslw"]]
196version = "0.17.1"
197backend = "github:razziel89/mdslw"
199[tools."github:razziel89/mdslw"."platforms.linux-x64"]
200checksum = "sha256:ed442f0785b9e33b145bb45b0a5efcce58be8372c0f4ad55eb5d2ad7849cd61a"
201url = "https://github.com/razziel89/mdslw/releases/download/0.17.1/mdslw_x86_64-unknown-linux-musl"
202url_api = "https://api.github.com/repos/razziel89/mdslw/releases/assets/386835069"
204[tools."github:razziel89/mdslw"."platforms.linux-x64-baseline"]
205checksum = "sha256:ed442f0785b9e33b145bb45b0a5efcce58be8372c0f4ad55eb5d2ad7849cd61a"
206url = "https://github.com/razziel89/mdslw/releases/download/0.17.1/mdslw_x86_64-unknown-linux-musl"
207url_api = "https://api.github.com/repos/razziel89/mdslw/releases/assets/386835069"
209[tools."github:razziel89/mdslw"."platforms.linux-x64-musl"]
210checksum = "sha256:ed442f0785b9e33b145bb45b0a5efcce58be8372c0f4ad55eb5d2ad7849cd61a"
211url = "https://github.com/razziel89/mdslw/releases/download/0.17.1/mdslw_x86_64-unknown-linux-musl"
212url_api = "https://api.github.com/repos/razziel89/mdslw/releases/assets/386835069"
214[tools."github:razziel89/mdslw"."platforms.linux-x64-musl-baseline"]
215checksum = "sha256:ed442f0785b9e33b145bb45b0a5efcce58be8372c0f4ad55eb5d2ad7849cd61a"
216url = "https://github.com/razziel89/mdslw/releases/download/0.17.1/mdslw_x86_64-unknown-linux-musl"
217url_api = "https://api.github.com/repos/razziel89/mdslw/releases/assets/386835069"
219[tools."github:razziel89/mdslw"."platforms.macos-arm64"]
220checksum = "sha256:ede4c20df00cf483b2735d4e18064e1c9449d27fe7273d5a4e8c1c165bcbbc00"
221url = "https://github.com/razziel89/mdslw/releases/download/0.17.1/mdslw_aarch64-apple-darwin"
222url_api = "https://api.github.com/repos/razziel89/mdslw/releases/assets/386835072"
224[tools."github:razziel89/mdslw"."platforms.macos-x64"]
225checksum = "sha256:3ac01e5d680662ed0990531d2b77b1aab58d8cb5bf687db208cc3bc3d8114b8d"
226url = "https://github.com/razziel89/mdslw/releases/download/0.17.1/mdslw_x86_64-apple-darwin"
227url_api = "https://api.github.com/repos/razziel89/mdslw/releases/assets/386835080"
229[tools."github:razziel89/mdslw"."platforms.macos-x64-baseline"]
230checksum = "sha256:3ac01e5d680662ed0990531d2b77b1aab58d8cb5bf687db208cc3bc3d8114b8d"
231url = "https://github.com/razziel89/mdslw/releases/download/0.17.1/mdslw_x86_64-apple-darwin"
232url_api = "https://api.github.com/repos/razziel89/mdslw/releases/assets/386835080"
234[tools."github:razziel89/mdslw"."platforms.windows-x64"]
235checksum = "sha256:89ec2ec45d9c75ce6851834571c2eec2dfeec66577f3ba688113af62704836e6"
236url = "https://github.com/razziel89/mdslw/releases/download/0.17.1/mdslw_x86_64-pc-windows-gnu.exe"
237url_api = "https://api.github.com/repos/razziel89/mdslw/releases/assets/386835071"
239[tools."github:razziel89/mdslw"."platforms.windows-x64-baseline"]
240checksum = "sha256:89ec2ec45d9c75ce6851834571c2eec2dfeec66577f3ba688113af62704836e6"
241url = "https://github.com/razziel89/mdslw/releases/download/0.17.1/mdslw_x86_64-pc-windows-gnu.exe"
242url_api = "https://api.github.com/repos/razziel89/mdslw/releases/assets/386835071"
244158[[tools.markdownlint-cli2]]
245159version = "0.22.1"
246160backend = "npm:markdownlint-cli2"
162[[tools.node]]
163version = "22.22.3"
164backend = "core:node"
166[tools.node."platforms.linux-arm64"]
167checksum = "sha256:cc8bc82b2dd0b595c3b95a4c3c9c8c350907cff011afbdee3d1379e812e1e3e3"
168url = "https://nodejs.org/dist/v22.22.3/node-v22.22.3-linux-arm64.tar.gz"
170[tools.node."platforms.linux-arm64-musl"]
171checksum = "sha256:09c87acbafae65e18fcc0eb188376c1254cab74dc769118f4b60479c5fa326cf"
172url = "https://unofficial-builds.nodejs.org/download/release/v22.22.3/node-v22.22.3-linux-arm64-musl.tar.gz"
174[tools.node."platforms.linux-x64"]
175checksum = "sha256:c7a10d6816da8eaaa7534dd73c71c6e2b2c391dbbf845e364902d156615dd1b8"
176url = "https://nodejs.org/dist/v22.22.3/node-v22.22.3-linux-x64.tar.gz"
178[tools.node."platforms.linux-x64-baseline"]
179checksum = "sha256:c7a10d6816da8eaaa7534dd73c71c6e2b2c391dbbf845e364902d156615dd1b8"
180url = "https://nodejs.org/dist/v22.22.3/node-v22.22.3-linux-x64.tar.gz"
182[tools.node."platforms.linux-x64-musl"]
183checksum = "sha256:d227692583d6ae17c44028fd8f17cb1b3672167a6baa035818240cbb9db6ea4a"
184url = "https://unofficial-builds.nodejs.org/download/release/v22.22.3/node-v22.22.3-linux-x64-musl.tar.gz"
186[tools.node."platforms.linux-x64-musl-baseline"]
187checksum = "sha256:d227692583d6ae17c44028fd8f17cb1b3672167a6baa035818240cbb9db6ea4a"
188url = "https://unofficial-builds.nodejs.org/download/release/v22.22.3/node-v22.22.3-linux-x64-musl.tar.gz"
190[tools.node."platforms.macos-arm64"]
191checksum = "sha256:0da7ff74ef8611328c8212f17943368713a2ad953fb7d89a8c8a0eae87c23207"
192url = "https://nodejs.org/dist/v22.22.3/node-v22.22.3-darwin-arm64.tar.gz"
194[tools.node."platforms.macos-x64"]
195checksum = "sha256:45830ba752fa0d892c6dcd640946669801293cac820a33591ded40ac075198ec"
196url = "https://nodejs.org/dist/v22.22.3/node-v22.22.3-darwin-x64.tar.gz"
198[tools.node."platforms.macos-x64-baseline"]
199checksum = "sha256:45830ba752fa0d892c6dcd640946669801293cac820a33591ded40ac075198ec"
200url = "https://nodejs.org/dist/v22.22.3/node-v22.22.3-darwin-x64.tar.gz"
202[tools.node."platforms.windows-x64"]
203checksum = "sha256:6c8d54f635feff4df76c2ca80f45332eb2ff57d25226edce36592e51a177ee33"
204url = "https://nodejs.org/dist/v22.22.3/node-v22.22.3-win-x64.zip"
206[tools.node."platforms.windows-x64-baseline"]
207checksum = "sha256:6c8d54f635feff4df76c2ca80f45332eb2ff57d25226edce36592e51a177ee33"
208url = "https://nodejs.org/dist/v22.22.3/node-v22.22.3-win-x64.zip"
248210[[tools.ruff]]
249211version = "0.15.14"
250212backend = "aqua:astral-sh/ruff"
252214[tools.ruff."platforms.linux-arm64"]
253215checksum = "sha256:1693dfc1f402a81b32ff4fee5f8b494857a1a857a2b8d63cad88d9d39c201297"
254216url = "https://github.com/astral-sh/ruff/releases/download/0.15.14/ruff-aarch64-unknown-linux-musl.tar.gz"
217provenance = "github-attestations"
256219[tools.ruff."platforms.linux-arm64-musl"]
257220checksum = "sha256:1693dfc1f402a81b32ff4fee5f8b494857a1a857a2b8d63cad88d9d39c201297"
258221url = "https://github.com/astral-sh/ruff/releases/download/0.15.14/ruff-aarch64-unknown-linux-musl.tar.gz"
222provenance = "github-attestations"
260224[tools.ruff."platforms.linux-x64"]
261225checksum = "sha256:e380c9cf14764b7134434c49d445d13c6e3db732cfd18d72c4bc2316a6dbb82e"
262226url = "https://github.com/astral-sh/ruff/releases/download/0.15.14/ruff-x86_64-unknown-linux-musl.tar.gz"
227provenance = "github-attestations"
264229[tools.ruff."platforms.linux-x64-baseline"]
265230checksum = "sha256:e380c9cf14764b7134434c49d445d13c6e3db732cfd18d72c4bc2316a6dbb82e"
266231url = "https://github.com/astral-sh/ruff/releases/download/0.15.14/ruff-x86_64-unknown-linux-musl.tar.gz"
232provenance = "github-attestations"
268234[tools.ruff."platforms.linux-x64-musl"]
269235checksum = "sha256:e380c9cf14764b7134434c49d445d13c6e3db732cfd18d72c4bc2316a6dbb82e"
270236url = "https://github.com/astral-sh/ruff/releases/download/0.15.14/ruff-x86_64-unknown-linux-musl.tar.gz"
237provenance = "github-attestations"
272239[tools.ruff."platforms.linux-x64-musl-baseline"]
273240checksum = "sha256:e380c9cf14764b7134434c49d445d13c6e3db732cfd18d72c4bc2316a6dbb82e"
274241url = "https://github.com/astral-sh/ruff/releases/download/0.15.14/ruff-x86_64-unknown-linux-musl.tar.gz"
242provenance = "github-attestations"
276244[tools.ruff."platforms.macos-arm64"]
277245checksum = "sha256:953243859467ed3f4f2bc6c11e241cd42a11ed42605b33d971dc2b174772da7d"
278246url = "https://github.com/astral-sh/ruff/releases/download/0.15.14/ruff-aarch64-apple-darwin.tar.gz"
247provenance = "github-attestations"
280249[tools.ruff."platforms.macos-x64"]
281250checksum = "sha256:537f569780fc71f63238f1f43dc04285b24fddbc6eea7219a9a18f408bdd869d"
282251url = "https://github.com/astral-sh/ruff/releases/download/0.15.14/ruff-x86_64-apple-darwin.tar.gz"
252provenance = "github-attestations"
284254[tools.ruff."platforms.macos-x64-baseline"]
285255checksum = "sha256:537f569780fc71f63238f1f43dc04285b24fddbc6eea7219a9a18f408bdd869d"
286256url = "https://github.com/astral-sh/ruff/releases/download/0.15.14/ruff-x86_64-apple-darwin.tar.gz"
257provenance = "github-attestations"
288259[tools.ruff."platforms.windows-x64"]
289260checksum = "sha256:c589a77b0e112c374e9a5e0c42a7fb18d8725c5322ae261e343f66d1c87f0a5e"
290261url = "https://github.com/astral-sh/ruff/releases/download/0.15.14/ruff-x86_64-pc-windows-msvc.zip"
262provenance = "github-attestations"
292264[tools.ruff."platforms.windows-x64-baseline"]
293265checksum = "sha256:c589a77b0e112c374e9a5e0c42a7fb18d8725c5322ae261e343f66d1c87f0a5e"
294266url = "https://github.com/astral-sh/ruff/releases/download/0.15.14/ruff-x86_64-pc-windows-msvc.zip"
267provenance = "github-attestations"
296269[[tools.yamlfmt]]
297270version = "0.21.0"

mise.toml

Modified

+2 / −4 text lines

66markdownlint-cli2 = "0.22.1"
77yamlfmt = "0.21.0"
88"aqua:nushell/nushell" = "0.112.2"
9"github:razziel89/mdslw" = { version = "0.17.1", bin = "mdslw" }
1110[tasks.default]
1211description = "List tasks"
1716run = [
1817 "npm run fmt",
1918 "dprint fmt",
20 "python3 scripts/mdslw.py",
2321[tasks.lint]
2422description = "Verify formatting and lint"
2523run = [
2624 "npm run lint",
27 "python3 scripts/mdslw.py --mode check",
25 "dprint check",
2826 "python3 scripts/check_skills.py",
3937[tasks.ci]
4038description = "Release gate"
41run = "npm run ci"
39run = ["mise run lint", "mise run test", "mise run check"]
4341[tasks.list]
4442description = "List extensions"

scripts/mdslw.py

Deleted
deleted file mode 100644

+0 / −39 text lines

1#!/usr/bin/env python3
2"""Run mdslw on repo Markdown with repo-local ignores."""
3
4from __future__ import annotations
5
6import argparse
7import subprocess
8from pathlib import Path
9
10ROOT = Path(__file__).resolve().parents[1]
11SKIP_DIRS = {".git", ".jj", ".demo", "node_modules", "__pycache__"}
12SKIP_FILES: set[Path] = set()
15def markdown_files() -> list[str]:
16 result: list[str] = []
17 for path in sorted(ROOT.rglob("*.md")):
18 rel = path.relative_to(ROOT)
19 if rel in SKIP_FILES or any(part in SKIP_DIRS for part in rel.parts):
20 continue
21 if path.is_symlink():
22 continue
23 result.append(str(rel))
24 return result
27def main() -> int:
28 parser = argparse.ArgumentParser()
29 parser.add_argument("--mode", choices=["format", "check", "both"], default="format")
30 args = parser.parse_args()
32 files = markdown_files()
33 if not files:
34 return 0
35 return subprocess.run(["mdslw", "--mode", args.mode, *files], cwd=ROOT, check=False).returncode
38if __name__ == "__main__":
39 raise SystemExit(main())