repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

AGENTS.md

Raw

Pi Extensions Workspace

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
Check mise run check Static extension checks
CI mise run ci Release gate (lint + test + check)
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
Publish mise run publish -- {name} Publish after release gate
Goal pexpect mise run goal-pexpect [--idea] Run goal pexpect test

Invariant

mise run ci must pass before pushing. No exceptions.

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.

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

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.

Markdown source
File outline
# Pi Extensions Workspace

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                            |
| Check        | `mise run check`                 | Static extension checks              |
| CI           | `mise run ci`                    | Release gate (lint + test + check)   |
| 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                     |
| Publish      | `mise run publish -- {name}`     | Publish after release gate           |
| Goal pexpect | `mise run goal-pexpect [--idea]` | Run goal pexpect test                |

### Invariant

`mise run ci` must pass before pushing.
No exceptions.

### 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.

## 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.