mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 08:03:39 +00:00
docs(coding-agent): document pattern precedence (exclusions always win)
This commit is contained in:
parent
6d475e5035
commit
6beeafed17
2 changed files with 2 additions and 0 deletions
|
|
@ -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/).
|
||||
|
||||
|
|
|
|||
|
|
@ -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:**
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue