docs(coding-agent): document pattern precedence (exclusions always win)

This commit is contained in:
Mario Zechner 2026-01-23 20:28:47 +01:00
parent 6d475e5035
commit 6beeafed17
2 changed files with 2 additions and 0 deletions

View file

@ -1025,6 +1025,7 @@ Use `-l` to install into project settings (`.pi/settings.json`).
- Paths are relative to package root
- Use `!pattern` to exclude (e.g., `"!deprecated/*"`)
- Glob patterns supported via minimatch (e.g., `"*.ts"`, `"**/*.json"`)
- **Pattern precedence:** Exclusions always win. If a path matches both an include and exclude pattern, it is excluded. Order in the array does not matter.
**Dependencies:** Extensions can have their own dependencies. Place a `package.json` next to the extension (or in a parent directory), run `npm install`, and imports are resolved via [jiti](https://github.com/unjs/jiti). See [examples/extensions/with-deps/](examples/extensions/with-deps/).

View file

@ -159,6 +159,7 @@ pi update # update all non-pinned packages
- Paths are relative to package root
- Use `!pattern` to exclude (e.g., `"themes": ["!funky.json"]`)
- Glob patterns supported via minimatch (e.g., `"extensions": ["**/*.ts", "!**/deprecated/*"]`)
- **Pattern precedence:** Exclusions always win. If a path matches both an include and exclude pattern, it is excluded. Order in the array does not matter.
**Discovery rules:**