@henryqw/pi-add-dir 0.1.1 → 0.1.3
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.
- package/README.md +12 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `@henryqw/pi-add-dir`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Add external directories to the current Pi session: inject context files, load skills, and search those trees.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -10,16 +10,16 @@ pi install npm:@henryqw/pi-add-dir
|
|
|
10
10
|
|
|
11
11
|
## Use
|
|
12
12
|
|
|
13
|
-
| Surface | Purpose |
|
|
14
|
-
| --- | --- |
|
|
15
|
-
| `/dir-add
|
|
16
|
-
| `/dir-ls` | List directories; select one to remove. |
|
|
17
|
-
| `add_directory` |
|
|
18
|
-
| `search_external_files` |
|
|
13
|
+
| Surface | Type | Purpose |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| `/dir-add` | command | Add directory; no path opens input. Supports `~`. |
|
|
16
|
+
| `/dir-ls` | command | List directories; select one to remove. |
|
|
17
|
+
| `add_directory` | tool | Add a directory. |
|
|
18
|
+
| `search_external_files` | tool | Glob-search added directories. |
|
|
19
19
|
|
|
20
|
-
Added directories return root `AGENTS.md`, `CLAUDE.md`, `.pi/AGENTS.md`, and `.pi/CLAUDE.md
|
|
20
|
+
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`. `/dir-add` reloads when it finds skills; `add_directory` reports when a reload is needed.
|
|
21
21
|
|
|
22
|
-
Search uses
|
|
22
|
+
Search uses Node filesystem traversal, skips `.git` and `node_modules`, supports basename and relative-path globs, and caps results at 1,000 per call.
|
|
23
23
|
|
|
24
24
|
## Remove
|
|
25
25
|
|
|
@@ -30,7 +30,7 @@ pi remove npm:@henryqw/pi-add-dir
|
|
|
30
30
|
## Development
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
npm test
|
|
34
|
-
npm run typecheck
|
|
35
|
-
npm run pack:check
|
|
33
|
+
npm test --workspace @henryqw/pi-add-dir
|
|
34
|
+
npm run typecheck --workspace @henryqw/pi-add-dir
|
|
35
|
+
npm run pack:check --workspace @henryqw/pi-add-dir
|
|
36
36
|
```
|