repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

build: normalize extension automation

4d1114070aa8042c43d3c4a28a5c0cc557eaa724

Oliver Krylow <o.krylow@isp-insoft.de> ·

SSH signature · not checked

Browse filesCompare with HEAD

Changed files (95)

CHANGELOG.md

Modified
139 139 - Fix Pulse TAB completion
140 140 - Fix Notes so `/tree` restores notes from the selected branch and `/new` asks whether to carry pending notes into the new session
141 141 - Disable all mise-managed tools on Android to avoid platform-specific tool failures
142 +- Speed up Mise workflows with direct task references and parallel CI check and lint stages
142 143 - Fix the uv extension on Windows by skipping incompatible shell shims while retaining command blocking
143 144 - Fix RTK rewriting so `find` commands keep exact path semantics unless RTK passes a path capability probe, and notify users when rewrites are disabled or the compatibility guard can be removed
144 145 - Replace the tmux-only terminal skill with a terminal harness for observable TUI testing through tmux or WezTerm

extensions/AGENTS.md

Modified
24 24 Add only deps actually imported by the extension.
25 25 Prefer `peerDependencies` for Pi packages (`@earendil-works/*`).
26 +Do not add package scripts; extension automation belongs in `mise.toml`.
26 27 Run `npm install` after any structural change.
28 29 ## Mandatory test harness
30 31 - Every extension must dev-depend on `@marcfargas/pi-test-harness`.
31 32 - Every extension must include a pi-test-harness test that loads `index.ts`
32 33 through the real Pi extension runtime.
33 -- Add `test:harness`:
34 - `npx vitest run ./__tests__/harness.test.ts`.
35 -- If no `test` script exists, add `test`:
36 - `npx vitest run ./__tests__/*.test.ts`.
34 +- Run extension tests through the extension-local Mise `test` task.
38 36 ## Independence

extensions/angel/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint angel extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test angel extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/angel"] },
17 +[tasks.check]
18 +description = "Check angel extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["angel"] },

extensions/angel/package.json

Modified
18 18 "@marcfargas/pi-test-harness": "^0.6.1",
19 19 "vitest": "^4.1.9"
21 - "scripts": {},
22 21 "private": true

extensions/btw/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint btw extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test btw extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/btw"] },
17 +[tasks.check]
18 +description = "Check btw extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["btw"] },

extensions/btw/package.json

Modified
17 17 "@marcfargas/pi-test-harness": "^0.6.1",
18 18 "vitest": "^4.1.9"
20 - "scripts": {},
21 20 "private": true

extensions/cmprss/mise.toml

Modified
1 +[tasks.lint]
2 +description = "Lint cmprss extension"
3 +depends = ["//:install"]
4 +run = '''
5 +biome ci --config-path ../.. .
6 +rumdl check --config ../../.rumdl.toml .
7 +taplo format --check --config ../../.taplo.toml mise.toml
8 +'''
10 +[tasks.test]
11 +description = "Test cmprss extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/cmprss"] },
17 +[tasks.check]
18 +description = "Check cmprss extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["cmprss"] },
1 24 [tasks.ab]
2 25 description = "Run persistent cmprss model A/B evaluation"
3 26 depends = ["//:install"]

extensions/cmprss/package.json

Modified
3 3 "name": "@bugabinga/pi-ext-cmprss",
4 4 "type": "module",
5 5 "main": "index.ts",
6 - "scripts": {},
7 6 "devDependencies": {
8 7 "@marcfargas/pi-test-harness": "^0.6.1",
9 8 "vitest": "^4.1.9"

extensions/context-size/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint context-size extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test context-size extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/context-size"] },
17 +[tasks.check]
18 +description = "Check context-size extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["context-size"] },

extensions/context-size/package.json

Modified
15 15 "@marcfargas/pi-test-harness": "^0.6.1",
16 16 "vitest": "^4.1.9"
18 - "scripts": {},
19 18 "private": true

extensions/continuity/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint continuity extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test continuity extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/continuity"] },
17 +[tasks.check]
18 +description = "Check continuity extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["continuity"] },

extensions/continuity/package.json

Modified
10 10 "@marcfargas/pi-test-harness": "^0.6.1",
11 11 "vitest": "^4.1.9"
13 - "scripts": {
14 - "test:harness": "vitest run ./__tests__/harness.test.ts",
15 - "test": "vitest run ./__tests__/*.test.ts"
16 - },
17 13 "license": "MIT",
18 14 "description": "Continue Pi tasks after context compaction.",
19 15 "keywords": [

extensions/cost/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint cost extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test cost extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/cost"] },
17 +[tasks.check]
18 +description = "Check cost extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["cost"] },

extensions/cost/package.json

Modified
15 15 "@marcfargas/pi-test-harness": "^0.6.1",
16 16 "vitest": "^4.1.9"
18 - "scripts": {},
19 18 "private": true

extensions/cwd/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint cwd extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test cwd extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/cwd"] },
17 +[tasks.check]
18 +description = "Check cwd extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["cwd"] },

extensions/cwd/package.json

Modified
15 15 "@marcfargas/pi-test-harness": "^0.6.1",
16 16 "vitest": "^4.1.9"
18 - "scripts": {},
19 18 "private": true

extensions/decay/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint decay extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test decay extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/decay"] },
17 +[tasks.check]
18 +description = "Check decay extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["decay"] },

extensions/decay/package.json

Modified
18 18 "@marcfargas/pi-test-harness": "^0.6.1",
19 19 "vitest": "^4.1.9"
21 - "scripts": {},
22 21 "private": true

extensions/devil/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint devil extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test devil extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/devil"] },
17 +[tasks.check]
18 +description = "Check devil extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["devil"] },

extensions/devil/package.json

Modified
3 3 "name": "@bugabinga/pi-ext-devil",
4 4 "type": "module",
5 5 "main": "index.ts",
6 - "scripts": {},
7 6 "peerDependencies": {
8 7 "@earendil-works/pi-ai": "*",
9 8 "@earendil-works/pi-agent-core": "*",

extensions/diff-review/mise.toml

Modified
1 +[tasks.lint]
2 +description = "Lint diff-review extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test diff-review extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/diff-review"] },
17 +[tasks.check]
18 +description = "Check diff-review extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["diff-review"] },
1 24 [tasks.e2e]
2 25 description = "Run diff-review browser E2E tests"
3 26 depends = ["//:install"]
4 27 run = "npm exec -- playwright test --config playwright.config.ts"
29 +[tasks.dev]
30 +description = "Run diff-review development server"
31 +depends = ["//:install"]
32 +run = "node --no-warnings --experimental-strip-types scripts/dev-server.ts"

extensions/diff-review/package.json

Modified
3 3 "name": "@bugabinga/pi-ext-diff-review",
4 4 "type": "module",
5 5 "main": "index.ts",
6 - "scripts": {
7 - "dev:smoke": "tsx scripts/dev-server.ts"
8 - },
9 6 "dependencies": {
10 7 "@pierre/diffs": "^1.2.11",
11 8 "@pierre/trees": "^1.0.0-beta.4"

extensions/fast/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint fast extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test fast extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/fast"] },
17 +[tasks.check]
18 +description = "Check fast extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["fast"] },

extensions/fast/package.json

Modified
16 16 "@marcfargas/pi-test-harness": "^0.6.1",
17 17 "vitest": "^4.1.9"
19 - "scripts": {},
20 19 "private": true

extensions/footer/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint footer extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test footer extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/footer"] },
17 +[tasks.check]
18 +description = "Check footer extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["footer"] },

extensions/footer/package.json

Modified
16 16 "@marcfargas/pi-test-harness": "^0.6.1",
17 17 "vitest": "^4.1.9"
19 - "scripts": {},
20 19 "private": true

extensions/git-safe/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint git-safe extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test git-safe extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/git-safe"] },
17 +[tasks.check]
18 +description = "Check git-safe extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["git-safe"] },

extensions/git-safe/package.json

Modified
17 17 "@marcfargas/pi-test-harness": "^0.6.1",
18 18 "vitest": "^4.1.9"
20 - "scripts": {},
21 20 "private": true

extensions/goal/mise.toml

Modified
1 +[tasks.lint]
2 +description = "Lint goal extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test goal extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/goal"] },
17 +[tasks.check]
18 +description = "Check goal extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["goal"] },
1 24 [tasks.bench]
2 25 description = "Benchmark goal state replay"
3 26 depends = ["//:install"]

extensions/goldfish/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint goldfish extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test goldfish extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/goldfish"] },
17 +[tasks.check]
18 +description = "Check goldfish extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["goldfish"] },

extensions/goldfish/package.json

Modified
3 3 "name": "@bugabinga/pi-ext-goldfish",
4 4 "type": "module",
5 5 "main": "index.ts",
6 - "scripts": {},
7 6 "devDependencies": {
8 7 "@marcfargas/pi-test-harness": "^0.6.1",
9 8 "vitest": "^4.1.8"

extensions/good-job/mise.toml

Modified
11 11 description = "Verify good-job formatting and lint"
12 12 depends = ["//:install"]
13 13 run = [
14 - "biome ci .",
15 - "rumdl check README.md",
16 - "taplo format --check mise.toml",
14 + "biome ci --config-path ../.. .",
15 + "rumdl check --config ../../.rumdl.toml .",
16 + "taplo format --check --config ../../.taplo.toml mise.toml",
19 +[tasks.test]
20 +description = "Test good-job"
21 +depends = ["//:install"]
22 +run = [
23 + { task = "//:test", args = ["extensions/good-job"] },
26 +[tasks.check]
27 +description = "Check good-job"
28 +depends = ["//:install"]
29 +run = [
30 + { task = "//:build", args = ["good-job"] },
19 33 [tasks.bench]
20 34 description = "Benchmark loading persisted good-job records"
21 35 depends = ["//:install"]
22 -run = "npm run bench"
36 +run = "node --no-warnings --experimental-strip-types --experimental-loader ../../scripts/ts-js-loader.mjs __benches__/storage.bench.ts"

extensions/good-job/package.json

Modified
17 17 "devDependencies": {
18 18 "@marcfargas/pi-test-harness": "^0.6.1",
19 19 "vitest": "^4.1.9"
20 - },
21 - "scripts": {
22 - "bench": "node --no-warnings --experimental-strip-types --experimental-loader ../../scripts/ts-js-loader.mjs __benches__/storage.bench.ts",
23 - "test": "vitest run --root ../.. ../../extensions/good-job",
24 - "test:harness": "vitest run --root ../.. ../../extensions/good-job/__tests__/harness.test.ts"

extensions/intellij/mise.toml

Modified
10 10 [tasks.test]
11 11 description = "Run IntelliJ tests"
12 12 depends = ["//:install"]
13 -run = "npm test"
13 +run = [
14 + { task = "//:test", args = ["extensions/intellij"] },
15 17 [tasks.check]
16 18 description = "Typecheck and statically check IntelliJ"

extensions/intellij/package.json

Modified
2 2 "name": "@bugabinga/pi-ext-intellij",
3 - "version": "0.0.0",
4 3 "private": true,
5 4 "type": "module",
6 5 "main": "index.ts",
21 20 "devDependencies": {
22 21 "@marcfargas/pi-test-harness": "^0.6.1",
23 22 "vitest": "^4.1.9"
24 - },
25 - "scripts": {
26 - "test": "vitest run --root ../.. ../../extensions/intellij",
27 - "test:harness": "vitest run --root ../.. ../../extensions/intellij/__tests__/harness.test.ts"

extensions/iq/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint iq extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test iq extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/iq"] },
17 +[tasks.check]
18 +description = "Check iq extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["iq"] },

extensions/iq/package.json

Modified
18 18 "@marcfargas/pi-test-harness": "^0.6.1",
19 19 "vitest": "^4.1.9"
21 - "scripts": {
22 - "test": "npx vitest run ./__tests__/*.test.ts",
23 - "test:harness": "npx vitest run ./__tests__/harness.test.ts"
24 - },
25 21 "private": true

extensions/klaus/mise.toml

Modified
2 2 [tasks.e2e]
3 3 description = "Run Klaus fake-auth process E2E"
4 4 depends = ["//:install"]
5 5 run = "npx vitest run --config vitest.e2e.config.ts"
7 +[tasks.lint]
8 +description = "Lint Klaus extension"
9 +depends = ["//:install"]
10 +run = [
11 + "biome ci --config-path ../.. .",
12 + "rumdl check --config ../../.rumdl.toml .",
13 + "taplo format --check --config ../../.taplo.toml mise.toml",
16 +[tasks.test]
17 +description = "Test Klaus extension"
18 +depends = ["//:install"]
19 +run = [
20 + { task = "//:test", args = ["extensions/klaus"] },
23 +[tasks.check]
24 +description = "Check Klaus extension"
25 +depends = ["//:install"]
26 +run = [
27 + { task = "//:build", args = ["klaus"] },

extensions/klaus/package.json

Modified
21 21 "@marcfargas/pi-test-harness": "^0.6.1",
22 22 "vitest": "^4.1.9"
24 - "scripts": {
25 - "test": "npx vitest run ./__tests__/*.test.ts",
26 - "test:harness": "npx vitest run ./__tests__/harness.test.ts"
27 - },
28 24 "private": true

extensions/leaks/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint leaks extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test leaks extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/leaks"] },
17 +[tasks.check]
18 +description = "Check leaks extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["leaks"] },

extensions/leaks/package.json

Modified
4 4 "name": "@bugabinga/pi-ext-leaks",
5 5 "description": "Provider-bound secret redaction for Pi.",
6 6 "type": "module",
7 7 "main": "index.ts",
8 - "scripts": {
9 - "test:coverage": "cd ../.. && vitest run extensions/leaks/__tests__ --coverage --config extensions/leaks/vitest.coverage.config.ts",
10 - "test:real": "cd ../.. && LEAKS_REAL=1 vitest run extensions/leaks/__tests__/real/*.test.ts --test-timeout 120000"
11 - },
12 8 "keywords": [
13 9 "pi",
14 10 "extension",
17 13 "license": "MIT",
18 14 "peerDependencies": {
19 - "@earendil-works/pi-ai": "*",
20 15 "@earendil-works/pi-coding-agent": "*",
21 16 "typebox": "*"

extensions/llmiterate/mise.toml

Modified
5 5 "node --import tsx __bench__/bench.ts",
6 6 "npm exec -- vitest bench __benches__/gitignore.bench.ts --run --project fast --reporter=default",
9 +[tasks.lint]
10 +description = "Lint llmiterate extension"
11 +depends = ["//:install"]
12 +run = [
13 + "biome ci --config-path ../.. .",
14 + "rumdl check --config ../../.rumdl.toml .",
15 + "taplo format --check --config ../../.taplo.toml mise.toml",
18 +[tasks.test]
19 +description = "Test llmiterate extension"
20 +depends = ["//:install"]
21 +run = [
22 + { task = "//:test", args = ["extensions/llmiterate"] },
25 +[tasks.check]
26 +description = "Check llmiterate extension"
27 +depends = ["//:install"]
28 +run = [
29 + { task = "//:build", args = ["llmiterate"] },

extensions/llmiterate/package.json

Modified
3 3 "name": "@bugabinga/pi-ext-llmiterate",
4 4 "type": "module",
5 5 "main": "index.ts",
6 - "scripts": {},
7 - "dependencies": {},
8 6 "peerDependencies": {
9 - "@earendil-works/pi-coding-agent": "*",
10 - "@earendil-works/pi-tui": "*"
7 + "@earendil-works/pi-coding-agent": "*"
12 9 "license": "MIT",
13 10 "description": "LLM iteration watcher for Pi.",

extensions/masks/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint masks extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test masks extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/masks"] },
17 +[tasks.check]
18 +description = "Check masks extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["masks"] },

extensions/masks/package.json

Modified
16 16 "@marcfargas/pi-test-harness": "^0.6.1",
17 17 "vitest": "^4.1.9"
19 - "scripts": {},
20 19 "private": true

extensions/model-info/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint model-info"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test model-info"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/model-info"] },
17 +[tasks.check]
18 +description = "Check model-info"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["model-info"] },

extensions/model-info/package.json

Modified
15 15 "@marcfargas/pi-test-harness": "^0.6.1",
16 16 "vitest": "^4.1.9"
18 - "scripts": {},
19 18 "private": true

extensions/neko/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint neko extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test neko extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/neko"] },
17 +[tasks.check]
18 +description = "Check neko extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["neko"] },

extensions/neko/package.json

Modified
3 3 "name": "@bugabinga/pi-ext-neko",
4 4 "type": "module",
5 5 "main": "index.ts",
6 - "scripts": {},
7 6 "peerDependencies": {
8 7 "@earendil-works/pi-coding-agent": "*",
9 8 "@earendil-works/pi-tui": "*"

extensions/notes/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint notes extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test notes extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/notes"] },
17 +[tasks.check]
18 +description = "Check notes extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["notes"] },

extensions/notes/package.json

Modified
3 3 "name": "@bugabinga/pi-ext-notes",
4 4 "type": "module",
5 5 "main": "index.ts",
6 - "scripts": {},
7 6 "peerDependencies": {
8 7 "@earendil-works/pi-coding-agent": "*",
9 8 "@earendil-works/pi-tui": "*"

extensions/nu-bang/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint nu-bang extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test nu-bang extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/nu-bang"] },
17 +[tasks.check]
18 +description = "Check nu-bang extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["nu-bang"] },

extensions/nu-bang/package.json

Modified
3 3 "name": "@bugabinga/pi-ext-nu-bang",
4 4 "type": "module",
5 5 "main": "index.ts",
6 - "scripts": {},
7 6 "peerDependencies": {
8 7 "@earendil-works/pi-coding-agent": "*",
9 8 "@earendil-works/pi-tui": "*"

extensions/os-notifier/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint os-notifier extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test os-notifier extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/os-notifier"] },
17 +[tasks.check]
18 +description = "Check os-notifier extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["os-notifier"] },

extensions/os-notifier/package.json

Modified
15 15 "@marcfargas/pi-test-harness": "^0.6.1",
16 16 "vitest": "^4.1.9"
18 - "scripts": {},
19 18 "private": true

extensions/prompt-autopsy/mise.toml

Modified
2 2 [tasks.bench]
3 3 description = "Benchmark system prompt grouping"
4 4 depends = ["//:install"]
5 5 run = "node --no-warnings --experimental-strip-types __bench__/bench.ts"
7 +[tasks.lint]
8 +description = "Lint prompt-autopsy extension"
9 +depends = ["//:install"]
10 +run = [
11 + "biome ci --config-path ../.. .",
12 + "rumdl check --config ../../.rumdl.toml .",
13 + "taplo format --check --config ../../.taplo.toml mise.toml",
16 +[tasks.test]
17 +description = "Test prompt-autopsy extension"
18 +depends = ["//:install"]
19 +run = [
20 + { task = "//:test", args = ["extensions/prompt-autopsy"] },
23 +[tasks.check]
24 +description = "Check prompt-autopsy extension"
25 +depends = ["//:install"]
26 +run = [
27 + { task = "//:build", args = ["prompt-autopsy"] },

extensions/prompt-autopsy/package.json

Modified
16 16 "@marcfargas/pi-test-harness": "^0.6.1",
17 17 "vitest": "^4.1.9"
19 - "scripts": {},
20 19 "private": true

extensions/pulse/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint the pulse extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test the pulse extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/pulse"] },
17 +[tasks.check]
18 +description = "Check the pulse extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["pulse"] },

extensions/pulse/package.json

Modified
12 12 "pi",
13 13 "pi-extension"
15 - "scripts": {},
16 15 "devDependencies": {
17 16 "@marcfargas/pi-test-harness": "^0.6.1",
18 17 "vitest": "^4.1.9"

extensions/quota/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint quota extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test quota extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/quota"] },
17 +[tasks.check]
18 +description = "Check quota extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["quota"] },

extensions/quota/package.json

Modified
15 15 "@marcfargas/pi-test-harness": "^0.6.1",
16 16 "vitest": "^4.1.9"
18 - "scripts": {},
19 18 "private": true

extensions/rtk/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint rtk extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test rtk extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/rtk"] },
17 +[tasks.check]
18 +description = "Check rtk extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["rtk"] },

extensions/rtk/package.json

Modified
3 3 "name": "@bugabinga/pi-ext-rtk",
4 4 "type": "module",
5 5 "main": "index.ts",
6 - "scripts": {},
7 6 "peerDependencies": {
8 7 "@earendil-works/pi-coding-agent": "*"

extensions/runtime/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint runtime extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test runtime extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/runtime"] },
17 +[tasks.check]
18 +description = "Check runtime extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["runtime"] },

extensions/runtime/package.json

Modified
15 15 "@marcfargas/pi-test-harness": "^0.6.1",
16 16 "vitest": "^4.1.9"
18 - "scripts": {},
19 18 "private": true

extensions/session-rename/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint session-rename extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test session-rename extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/session-rename"] },
17 +[tasks.check]
18 +description = "Check session-rename extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["session-rename"] },

extensions/session-rename/package.json

Modified
16 16 "@marcfargas/pi-test-harness": "^0.6.1",
17 17 "vitest": "^4.1.9"
19 - "scripts": {},
20 19 "private": true

extensions/split-fork/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint split-fork extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test split-fork extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/split-fork"] },
17 +[tasks.check]
18 +description = "Check split-fork extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["split-fork"] },

extensions/split-fork/package.json

Modified
15 15 "devDependencies": {
16 16 "@marcfargas/pi-test-harness": "^0.6.1",
17 17 "vitest": "^4.1.9"
18 - },
19 - "scripts": {}
18 + }

extensions/terse/mise.toml

Modified
2 2 [tasks.bench]
3 3 description = "Benchmark terse prompt injection"
4 4 depends = ["//:install"]
5 5 run = "node --no-warnings --experimental-strip-types __bench__/bench.ts"
7 +[tasks.lint]
8 +description = "Lint terse extension"
9 +depends = ["//:install"]
10 +run = [
11 + "biome ci --config-path ../.. .",
12 + "rumdl check --config ../../.rumdl.toml .",
13 + "taplo format --check --config ../../.taplo.toml mise.toml",
16 +[tasks.test]
17 +description = "Test terse extension"
18 +depends = ["//:install"]
19 +run = [
20 + { task = "//:test", args = ["extensions/terse"] },
23 +[tasks.check]
24 +description = "Check terse extension"
25 +depends = ["//:install"]
26 +run = [
27 + { task = "//:build", args = ["terse"] },

extensions/terse/package.json

Modified
15 15 "@marcfargas/pi-test-harness": "^0.6.1",
16 16 "vitest": "^4.1.9"
18 - "scripts": {},
19 18 "private": true

extensions/the-system/mise.toml

Modified
6 6 [tasks.lint]
7 7 description = "Verify the-system formatting and lint"
8 8 depends = ["//:install"]
9 -run = "npm exec -- biome ci ."
9 +run = [
10 + "biome ci --config-path ../.. .",
11 + "rumdl check --config ../../.rumdl.toml .",
12 + "taplo format --check --config ../../.taplo.toml mise.toml",
15 +[tasks.test]
16 +description = "Test the-system"
17 +depends = ["//:install"]
18 +run = [
19 + { task = "//:test", args = ["extensions/the-system"] },
22 +[tasks.check]
23 +description = "Check the-system"
24 +depends = ["//:install"]
25 +run = [
26 + { task = "//:build", args = ["the-system"] },
11 29 [tasks.e2e]
12 30 description = "Run mockup browser E2E tests"

extensions/the-system/package.json

Modified
14 14 "dependencies": {
15 15 "@dagrejs/dagre": "^3.1.1",
16 - "github-slugger": "^2.0.0",
17 16 "mermaid": "^11.16.0",
18 17 "minisearch": "^7.2.0",
19 18 "rehype-autolink-headings": "^7.1.0",
44 43 "@playwright/test": "^1.61.0",
45 44 "vitest": "^4.1.9"
47 - "scripts": {
48 - "test": "npm --prefix ../.. run test -- extensions/the-system"
49 - },
50 46 "pi": {
51 47 "extensions": [
52 48 "index.ts"

extensions/tldr/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint tldr extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test tldr extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/tldr"] },
17 +[tasks.check]
18 +description = "Check tldr extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["tldr"] },

extensions/tldr/package.json

Modified
5 5 "name": "@bugabinga/pi-ext-tldr",
6 6 "type": "module",
7 7 "main": "index.ts",
8 8 "peerDependencies": {
9 9 "@earendil-works/pi-ai": "*",
10 - "@earendil-works/pi-coding-agent": "*",
11 - "@earendil-works/pi-tui": "*"
10 + "@earendil-works/pi-coding-agent": "*"
13 12 "license": "MIT",
14 13 "description": "Live TLDR widget for Pi.",
17 16 "@marcfargas/pi-test-harness": "^0.6.1",
18 17 "vitest": "^4.1.9"
20 - "scripts": {},
21 19 "private": true

extensions/tps/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint tps extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test tps extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/tps"] },
17 +[tasks.check]
18 +description = "Check tps extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["tps"] },

extensions/tps/package.json

Modified
15 15 "@marcfargas/pi-test-harness": "^0.6.1",
16 16 "vitest": "^4.1.9"
18 - "scripts": {},
19 18 "private": true

extensions/tune/mise.toml

Modified
2 2 [tasks.e2e]
3 3 description = "Run tune dashboard browser E2E tests"
4 4 depends = ["//:install"]
5 5 run = "npm exec -- playwright test --config playwright.config.ts"
7 +[tasks.lint]
8 +description = "Lint tune extension"
9 +depends = ["//:install"]
10 +run = [
11 + "biome ci --config-path ../.. .",
12 + "rumdl check --config ../../.rumdl.toml .",
13 + "taplo format --check --config ../../.taplo.toml mise.toml",
16 +[tasks.test]
17 +description = "Test tune extension"
18 +depends = ["//:install"]
19 +run = [
20 + { task = "//:test", args = ["extensions/tune"] },
23 +[tasks.check]
24 +description = "Check tune extension"
25 +depends = ["//:install"]
26 +run = [
27 + { task = "//:build", args = ["tune"] },

extensions/tune/package.json

Modified
19 19 "@playwright/test": "^1.61.0",
20 20 "vitest": "^4.1.9"
22 - "scripts": {
23 - "test:harness": "vitest run ./__tests__/harness.test.ts",
24 - "test": "vitest run ./__tests__/*.test.ts"
25 - },
26 22 "private": true

extensions/ultra/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint ultra extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test ultra extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/ultra"] },
17 +[tasks.check]
18 +description = "Check ultra extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["ultra"] },

extensions/ultra/package.json

Modified
13 13 "@marcfargas/pi-test-harness": "^0.6.1",
14 14 "vitest": "^4.1.8"
16 - "scripts": {
17 - "test": "npx vitest run ./__tests__/*.test.ts",
18 - "test:harness": "npx vitest run ./__tests__/harness.test.ts"
19 - },
20 16 "license": "MIT",
21 17 "description": "Workflow engine for Pi.",
22 18 "keywords": [

extensions/usage/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint usage extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test usage extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/usage"] },
17 +[tasks.check]
18 +description = "Check usage extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["usage"] },

extensions/usage/package.json

Modified
16 16 "@marcfargas/pi-test-harness": "^0.6.1",
17 17 "vitest": "^4.1.9"
19 - "scripts": {},
20 19 "private": true

extensions/uv/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint uv extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test uv extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/uv"] },
17 +[tasks.check]
18 +description = "Check uv extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["uv"] },

extensions/uv/package.json

Modified
15 15 "devDependencies": {
16 16 "@marcfargas/pi-test-harness": "^0.6.1",
17 17 "vitest": "^4.1.9"
18 - },
19 - "scripts": {}
18 + }

extensions/vcs-status/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint vcs-status extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test vcs-status extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/vcs-status"] },
17 +[tasks.check]
18 +description = "Check vcs-status extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["vcs-status"] },

extensions/vcs-status/package.json

Modified
15 15 "@marcfargas/pi-test-harness": "^0.6.1",
16 16 "vitest": "^4.1.9"
18 - "scripts": {},
19 18 "private": true

extensions/verboten/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint verboten extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.test]
11 +description = "Test verboten extension"
12 +depends = ["//:install"]
13 +run = [
14 + { task = "//:test", args = ["extensions/verboten"] },
17 +[tasks.check]
18 +description = "Check verboten extension"
19 +depends = ["//:install"]
20 +run = [
21 + { task = "//:build", args = ["verboten"] },

extensions/verboten/package.json

Modified
17 17 "pi-extension"
19 19 "devDependencies": {
20 - "@fast-check/vitest": "^0.4.1",
21 20 "@marcfargas/pi-test-harness": "^0.6.1",
22 21 "fast-check": "^4.9.0",
23 22 "vitest": "^4.1.9"
25 - "scripts": {},
26 24 "private": true

extensions/web/mise.toml

Modified
2 2 [tasks.bench]
3 3 description = "Benchmark web processing hot paths"
4 4 depends = ["//:install"]
5 5 run = "node --no-warnings --experimental-strip-types --experimental-loader ../../scripts/ts-js-loader.mjs __bench__/bench.ts"
7 +[tasks.lint]
8 +description = "Lint web extension"
9 +depends = ["//:install"]
10 +run = [
11 + "biome ci --config-path ../.. .",
12 + "rumdl check --config ../../.rumdl.toml .",
13 + "taplo format --check --config ../../.taplo.toml mise.toml",
16 +[tasks.test]
17 +description = "Test web extension"
18 +depends = ["//:install"]
19 +run = [
20 + { task = "//:test", args = ["extensions/web"] },
23 +[tasks.check]
24 +description = "Check web extension"
25 +depends = ["//:install"]
26 +run = [
27 + { task = "//:build", args = ["web"] },

extensions/web/package.json

Modified
3 3 "name": "@bugabinga/pi-ext-web",
4 4 "type": "module",
5 5 "main": "index.ts",
6 - "scripts": {},
7 6 "peerDependencies": {
8 7 "@earendil-works/pi-coding-agent": "*",
9 8 "@earendil-works/pi-tui": "*",

mise.toml

Modified
78 78 usage = '''
79 79 arg "[extensions]" var=#true
81 -run = '''
82 -npm run typecheck
83 -node scripts/extensions.mjs check{% for extension in usage.extensions %} "{{ extension }}"{% endfor %}
84 -'''
81 +run = [
82 + "npm run typecheck",
83 + '''node scripts/extensions.mjs check{% for extension in usage.extensions %} "{{ extension }}"{% endfor %}''',
86 86 [tasks.check]
87 87 description = "Typecheck and run static extension checks"
96 96 [tasks.ci]
97 97 description = "Release gate"
98 98 run = [
99 - "mise run check",
100 - "mise run lint",
101 - "mise run test",
102 - "mise run fuzz",
103 - "mise run e2e",
99 + { tasks = ["check", "lint"] },
100 + { task = "test" },
101 + { task = "fuzz" },
102 + { task = "e2e" },
106 105 [tasks.list]
181 180 [tasks.pre-commit]
182 181 description = "Pre-commit hook: fmt + lint + test"
183 -run = ["mise run fmt", "mise run lint", "mise run test"]
182 +run = [{ task = "fmt" }, { task = "lint" }, { task = "test" }]
185 184 [tasks.pre-push]
186 185 description = "Pre-push hook: full CI"
187 -run = "mise run ci"
186 +run = [{ task = "ci" }]

package-lock.json

Modified
235 235 "extensions/intellij": {
236 236 "name": "@bugabinga/pi-ext-intellij",
237 - "version": "0.0.0",
238 237 "license": "MIT",
239 238 "dependencies": {
240 239 "@modelcontextprotocol/sdk": "1.29.0"
336 335 "vitest": "^4.1.9"
338 337 "peerDependencies": {
339 - "@earendil-works/pi-ai": "*",
340 338 "@earendil-works/pi-coding-agent": "*",
341 339 "typebox": "*"
349 347 "vitest": "^4.1.9"
351 349 "peerDependencies": {
352 - "@earendil-works/pi-coding-agent": "*",
353 - "@earendil-works/pi-tui": "*"
350 + "@earendil-works/pi-coding-agent": "*"
356 353 "extensions/masks": {
519 516 "license": "MIT",
520 517 "dependencies": {
521 518 "@dagrejs/dagre": "^3.1.1",
522 - "github-slugger": "^2.0.0",
523 519 "mermaid": "^11.16.0",
524 520 "minisearch": "^7.2.0",
525 521 "rehype-autolink-headings": "^7.1.0",
561 557 "peerDependencies": {
562 558 "@earendil-works/pi-ai": "*",
563 - "@earendil-works/pi-coding-agent": "*",
564 - "@earendil-works/pi-tui": "*"
559 + "@earendil-works/pi-coding-agent": "*"
567 562 "extensions/tps": {
642 637 "name": "@bugabinga/pi-ext-verboten",
643 638 "license": "MIT",
644 639 "devDependencies": {
645 - "@fast-check/vitest": "^0.4.1",
646 640 "@marcfargas/pi-test-harness": "^0.6.1",
647 641 "fast-check": "^4.9.0",
648 642 "vitest": "^4.1.9"

scripts/extensions.mjs

Modified
353 353 err(errors, ext, "package.json type must be 'module'");
354 354 if (pkg.main !== "index.ts")
355 355 err(errors, ext, "package.json main must be 'index.ts'");
356 + if (pkg.scripts !== undefined)
357 + err(
358 + errors,
359 + ext,
360 + "package scripts are prohibited; use extension-local Mise tasks",
361 + );
356 362 if (!existsSync(join(ext, "index.ts"))) err(errors, ext, "missing index.ts");
357 363 if (pkg.license !== "MIT") err(errors, ext, "package license must be MIT");
358 364 if (!existsSync(join(ext, "README.md")))
997 1003 throw new Error(`unknown command: ${cmd}`);
1000 -if (import.meta.url === `file://${process.argv[1]}`)
1006 +if (import.meta.url === pathToFileURL(resolve(process.argv[1])).href)
1002 1008 .then((code) => process.exit(code))
1003 1009 .catch((e) => {

scripts/test_extensions_static_check.mjs

Modified
1 1 #!/usr/bin/env node
2 2 import assert from "node:assert/strict";
3 +import { spawnSync } from "node:child_process";
3 4 import {
4 5 mkdirSync,
5 6 mkdtempSync,
54 +withTemp((root) => {
55 + const ext = writeExtension(root, "package-script", {
56 + scripts: { test: "vitest run" },
57 + });
58 + assert(
59 + staticCheck(ext, { root }).includes(
60 + "package-script: package scripts are prohibited; use extension-local Mise tasks",
61 + ),
62 + );
63 +});
53 65 withTemp((root) => {
54 66 const ext = writeExtension(
55 67 root,
176 188 extensions: ["extensions/*/index.ts"],
191 +const cliFailure = spawnSync(
192 + process.execPath,
193 + ["scripts/extensions.mjs", "check", "__missing_extension__"],
194 + { cwd: ROOT, encoding: "utf8" },
196 +assert.equal(cliFailure.status, 1);
197 +assert.match(cliFailure.stderr, /unknown extension/);
179 199 assert.deepEqual(
180 200 JSON.parse(
181 201 readFileSync(join(ROOT, "extensions/the-system/package.json"), "utf8"),