mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
docs(coding-agent): document how -e packages are cached and refreshed
This commit is contained in:
parent
bec60c54ba
commit
bec1e0f5a4
1 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,8 @@ Use `--extension` or `-e` to try a package for one invocation without adding it
|
|||
pi -e npm:@example/pi-tools
|
||||
```
|
||||
|
||||
Pi caches `-e` packages under `~/.pi/agent/tmp/extensions/` and checks them on every start and `/reload`. An npm package is reinstalled when the registry has a newer version that matches the specification. A version pinned to an exact number, such as `@1.2.3`, is not checked. A git package is fetched and reset to the remote branch or ref. A ref that is a commit hash already checked out is not fetched. If the check fails or offline mode is on, Pi loads the cached copy.
|
||||
|
||||
## Choose a source
|
||||
|
||||
| Source | Example | Behavior |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue