enable auto-discovery for pi extensions by removing explicit extension list

This commit is contained in:
2026-03-05 13:16:56 +00:00
parent 8db0e98f4b
commit 17563547d8
3 changed files with 19 additions and 12 deletions
+10
View File
@@ -49,3 +49,13 @@ sigil unlink ~/.config/wezterm/wezterm.lua
# Editing dotfiles
When editing dotfiles, it is preferred to add/edit the files in this project directly, instead of going to the source. this way we can then use sigil apply --prune, and everything will be synced, even when there are new files.
# pi extensions
Extensions live in `pi/files/agent/extensions/`.
**Discovery quirk:** If `package.json` has a `pi.extensions` field, pi **only** loads those listed extensions and skips auto-discovery of `*.ts` files. To enable auto-discovery (load all `.ts` files including symlinks), either:
- Remove the `extensions` field entirely: `"pi": {}`
- Or delete `package.json` if you don't need npm dependencies
Multi-file extensions (directories) need an `index.ts` entry point (or `package.json` with `pi.extensions` pointing to the entry file).