Monorepo for Pi extensions.
Extensions live in extensions/*.
Build System
mise is the singular interface.
mise.toml is the source of truth.
Tasks
Task
Command
Description
List
mise run list
List extensions
Format
mise run fmt
Format repo
Lint
mise run lint
Verify formatting and lint
Test
mise run test
Run tests
Bench
mise run bench
Run extension benchmarks sequentially
E2E
mise run e2e
Run extension E2E in Chromium and Firefox
Check
mise run check
Typecheck and static extension checks
CI
mise run ci
Release gate (check + lint + test + e2e)
Changelog
mise run changelog -- {name}
Generate changelog for extension
README
mise run readme -- {name}
Generate/update README for extension
Demo
mise run demo -- {name}
Record demo GIFs
Release plan
mise run release-plan -- {name}
Preview release artifacts
Prepare
mise run release-prepare -- {name}
Generate release artifacts
Publish
mise run publish -- {name}
Publish prepared release artifacts
Extension-specific tasks live in extension-local mise.toml files.
Run one from the root with mise //extensions/<name>:<task>.
Use mise tasks --all to list root and extension-local tasks.
CI hosting
Luci at ci.bugabinga.net auto-discovers .ci/*.kdl from the public Soft Serve repository.
The repository CI job must delegate to CI=true mise run ci; do not duplicate checks in Luci config.
Invariant
mise run ci must pass before pushing.
No exceptions.
Use mise run ... for listed repo tasks.
Do not bypass mise when a task exists.
Escalation
If the build system itself (mise.toml, scripts, or tooling) blocks progress,
escalate to a human.
Do not work around mise or add ad-hoc scripts.
Tool Widget Rendering
Tool widgets must match Pi built-ins: compact by default, expanded details on app.tools.expand (ctrl+o by default).
Collapsed renderResult output may show status, counts, paths, IDs, and tiny bounded summaries only.
Full content, previews, snippets, verbose logs, structured bodies, and per-result lists require expanded === true.
Expansion hints must use keyHint("app.tools.expand", "to expand"); do not use legacy expandTools.
Cross-platform Requirements
All extensions must work on Windows, macOS, and Linux.
Do not add OS-scoped extensions.
Do not rely on shell-specific helpers such as which, bash, sed, grep, or /tmp when Node APIs can do the job.
If an extension uses platform tools, check their availability when the extension loads.
Notify missing required tools with warning severity.
Notify missing optional tools with info severity.
Tests for platform-tool behavior must exercise the real extension/tool path with controlled fake binaries on PATH, not only mocked helpers.
Markdown Style
Use one sentence per line for prose.
Keep existing semantic line breaks unless rewording the sentence.
Let dprint handle Markdown/YAML structure; do not manually reflow paragraphs for
visual width only.
Git Hooks
pre-commit — runs fmt + lint + test
pre-push — runs full ci
Managed via mise generate git-pre-commit.
To reinstall after clone:
mise generate git-pre-commit --write && mise generate git-pre-commit --hook pre-push --task pre-push --write.
Troubleshooting
If mise run tasks fail with command-not-found errors, run mise doctor.
Common causes:
mise not activated, shims missing, tool binary name mismatch.
# Pi Extensions WorkspaceMonorepo for Pi extensions.
Extensions live in `extensions/*`.
## Build System`mise` is the singular interface.
`mise.toml` is the source of truth.
### Tasks| Task | Command | Description |
| ------------ | ------------------------------------ | ----------------------------------------- |
| List | `mise run list` | List extensions |
| Format | `mise run fmt` | Format repo |
| Lint | `mise run lint` | Verify formatting and lint |
| Test | `mise run test` | Run tests |
| Bench | `mise run bench` | Run extension benchmarks sequentially |
| E2E | `mise run e2e` | Run extension E2E in Chromium and Firefox |
| Check | `mise run check` | Typecheck and static extension checks |
| CI | `mise run ci` | Release gate (check + lint + test + e2e) |
| Changelog | `mise run changelog -- {name}` | Generate changelog for extension |
| README | `mise run readme -- {name}` | Generate/update README for extension |
| Demo | `mise run demo -- {name}` | Record demo GIFs |
| Release plan | `mise run release-plan -- {name}` | Preview release artifacts |
| Prepare | `mise run release-prepare -- {name}` | Generate release artifacts |
| Publish | `mise run publish -- {name}` | Publish prepared release artifacts |
Extension-specific tasks live in extension-local `mise.toml` files.
Run one from the root with `mise //extensions/<name>:<task>`.
Use `mise tasks --all` to list root and extension-local tasks.
### CI hostingLuci at `ci.bugabinga.net` auto-discovers `.ci/*.kdl` from the public Soft Serve repository.
The repository CI job must delegate to `CI=true mise run ci`; do not duplicate checks in Luci config.
### Invariant`mise run ci` must pass before pushing.
No exceptions.
Use `mise run ...` for listed repo tasks.
Do not bypass mise when a task exists.
### EscalationIf the build system itself (`mise.toml`, scripts, or tooling) blocks progress,
escalate to a human.
Do not work around `mise` or add ad-hoc scripts.
## Tool Widget RenderingTool widgets must match Pi built-ins: compact by default, expanded details on `app.tools.expand` (`ctrl+o` by default).
Collapsed `renderResult` output may show status, counts, paths, IDs, and tiny bounded summaries only.
Full content, previews, snippets, verbose logs, structured bodies, and per-result lists require `expanded === true`.
Expansion hints must use `keyHint("app.tools.expand", "to expand")`; do not use legacy `expandTools`.
## Cross-platform RequirementsAll extensions must work on Windows, macOS, and Linux.
Do not add OS-scoped extensions.
Do not rely on shell-specific helpers such as `which`, `bash`, `sed`, `grep`, or `/tmp` when Node APIs can do the job.
If an extension uses platform tools, check their availability when the extension loads.
Notify missing required tools with warning severity.
Notify missing optional tools with info severity.
Tests for platform-tool behavior must exercise the real extension/tool path with controlled fake binaries on `PATH`, not only mocked helpers.
## Markdown StyleUse one sentence per line for prose.
Keep existing semantic line breaks unless rewording the sentence.
Let `dprint` handle Markdown/YAML structure; do not manually reflow paragraphs for
visual width only.
## Git Hooks- `pre-commit` — runs `fmt` + `lint` + `test`
- `pre-push` — runs full `ci`
Managed via `mise generate git-pre-commit`.
To reinstall after clone:
`mise generate git-pre-commit --write && mise generate git-pre-commit --hook
pre-push --task pre-push --write`.
## TroubleshootingIf `mise run` tasks fail with command-not-found errors, run `mise doctor`.
Common causes:
mise not activated, shims missing, tool binary name mismatch.