omp packages

@balaenis/pi-format0.3.0

pi format support

GitHub Actions Published 11 days ago Apache-2.0 ~397 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

@balaenis/pi-format

Format files from Pi using project-local formatters. Provides an LLM-callable format tool, a /format slash command, and automatic formatting after successful built-in write/edit tool calls.

Features

  • Explicit formatting via the format tool or /format command
  • Automatic formatting after Pi's built-in write and edit tools succeed
  • Built-in detection for Biome, Oxfmt, Prettier, Ruff, gofmt, rustfmt, shfmt, and clang-format
  • User-defined formatters and per-project overrides via JSONC config

Local development

The package is not published to a registry yet. Build it and load it with -e:

mise run build --package packages/pi-format
pi -e ./packages/pi-format/dist/index.js

Documentation

  • Tutorial: Format files from Pi - load the extension, format a file, observe format-on-write
  • How-to guides - toggle format-on-write, add custom formatters, override or disable built-ins
  • Reference - config fields, built-in recipes, /format syntax
  • Explanation - how auto-format hooks into write/edit, detection rules, best-effort semantics

Development

mise run test --package packages/pi-format
mise run typecheck --package packages/pi-format
mise run build --package packages/pi-format
hk check

License

See LICENSE.