@pi-unipi/command-enchantment

Enhanced TUI autocomplete for /unipi:* commands — colored, sorted, and grouped by package

Packages

Package details

extension

Install @pi-unipi/command-enchantment from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@pi-unipi/command-enchantment
Package
@pi-unipi/command-enchantment
Version
2.0.13
Published
Jun 1, 2026
Downloads
2,195/mo · 160/wk
Author
neuron-mr-white
License
MIT
Types
extension
Size
58.1 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [],
  "skills": [],
  "prompts": [],
  "themes": []
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@pi-unipi/command-enchantment

Enhanced autocomplete for Unipi commands. It wraps Pi's base autocomplete provider and makes /unipi:* suggestions easier to scan with package grouping, stable sorting, short descriptions, and package colors.

Commands

Command Enchantment has no user commands. It improves the editor autocomplete experience automatically when the package is installed.

What It Does

  • Groups /unipi:* commands by package so workflow, memory, web, footer, and other commands are visually distinct.
  • Shows full command values like unipi:brainstorm while replacing Pi source tags with concise package tags like [workflow].
  • Sorts matches in predictable tiers: exact Unipi matches first, then other Unipi matches, then system commands.
  • Preserves dynamic argument completions from command providers, including workflow document and worktree suggestions.
  • Ships an audit test that checks registered Unipi commands are represented in the autocomplete registry and have descriptions.

Development Checks

Run the registry audit before releases:

npm --workspace packages/autocomplete test -- src/__tests__/command-registry.audit.test.ts

Run all autocomplete tests:

npm --workspace packages/autocomplete test

Configuration

Autocomplete enhancement is enabled by default. The package stores its toggle in the Unipi config and can be disabled by setting autocompleteEnhanced to false.

License

MIT