@henryqw/pi-add-dir 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -6
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # `@henryqw/pi-add-dir`
2
2
 
3
- Add external directories to the current Pi session: inject context files, load skills, and search those trees.
3
+ Add external directories to the current Pi session. Pi can use their context files and skills, and search their files.
4
4
 
5
5
  ## Why
6
6
 
7
- - **Created for**: Extending Pi context and skill discovery beyond the current working directory.
8
- - **Advantage**: Inject files and load skills from external trees without copying them into the repo.
7
+ - **Created for**: Use context and skills outside the current working directory.
8
+ - **Advantage**: Use external trees without copying them into the repository.
9
9
 
10
10
  ## Install
11
11
 
@@ -23,10 +23,16 @@ pi install npm:@henryqw/pi-add-dir
23
23
  | `add_directory` | tool | Add a directory. |
24
24
  | `search_external_files` | tool | Glob-search added directories. |
25
25
 
26
- Added directories return root `AGENTS.md`, `CLAUDE.md`, `.pi/AGENTS.md`, and `.pi/CLAUDE.md`, and inject them into later prompts. Skills load from `.pi/skills`, `.agents/skills`, and `.claude/skills`. Their files also appear in the editor's `@` autocomplete with absolute paths. `/dir-add` reloads when it finds skills; `add_directory` reports when a reload is needed.
26
+ Added directories give Pi these resources:
27
27
 
28
- Search uses Node filesystem traversal, skips `.git` and `node_modules`, supports basename and relative-path globs, and caps results at 1,000 per call.
28
+ - Root `AGENTS.md`, `CLAUDE.md`, `.pi/AGENTS.md`, and `.pi/CLAUDE.md` files. Pi injects them into later prompts.
29
+ - Skills that Pi loads from `.pi/skills`, `.agents/skills`, and `.claude/skills`.
30
+ - Files in the editor's `@` autocomplete, with absolute paths.
31
+
32
+ `/dir-add` reloads when it finds skills. `add_directory` reports when a reload is needed.
33
+
34
+ Search supports basename and relative-path globs. It skips `.git` and `node_modules`. It uses Node filesystem traversal and returns at most 1,000 results per call.
29
35
 
30
36
  ## State
31
37
 
32
- Pi session entry `add-dir:state` stores added directories; package-managed, do not edit. Tree navigation restores the active branch's directories and reloads resources when that set changes.
38
+ Pi session entry `add-dir:state` stores added directories. It is package-managed; do not edit it. Tree navigation restores the active branch's directories and reloads resources when that set changes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-add-dir",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Add external directories to a Pi session with context, skills, and file search.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -15,9 +15,9 @@
15
15
  },
16
16
  "license": "MIT",
17
17
  "files": [
18
+ "LICENSE",
18
19
  "extensions",
19
- "README.md",
20
- "LICENSE"
20
+ "README.md"
21
21
  ],
22
22
  "scripts": {
23
23
  "test": "node --test test/*.test.ts",