原始内容
@kkskcs/pi-lego
Reusable modules for pi, packaged as independent npm extensions.
Frequently used patterns and utilities during pi sessions are extracted here so they can be shared, versioned, and installed independently.
Packages
| Package | Description |
|---|---|
| @kkskcs/pi-open | Open current directory in finder, terminal, or split pane |
| @kkskcs/pi-diff-inline | Render diffs inline in the conversation stream |
Debugging with Source
If you want to link a package locally for development/debugging:
# 1. Clone and build
git clone https://github.com/kkskcs/pi-lego.git
cd pi-lego
pnpm install
pnpm run build
# 2. Link the package you want to debug
cd packages/pi-open
pnpm link --global
# 3. In your pi project, link the package
pnpm link --global @kkskcs/pi-open
Changes in the source will be reflected after pnpm run build.