@henryqw/pi-add-dir 0.1.1 → 0.1.2
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 +8 -8
- 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
|
|
|
@@ -14,12 +14,12 @@ pi install npm:@henryqw/pi-add-dir
|
|
|
14
14
|
| --- | --- |
|
|
15
15
|
| `/dir-add [path]` | Add directory; no path opens input. Supports `~`. |
|
|
16
16
|
| `/dir-ls` | List directories; select one to remove. |
|
|
17
|
-
| `add_directory` | Agent tool for adding directory. |
|
|
18
|
-
| `search_external_files` | Agent tool for glob-searching
|
|
17
|
+
| `add_directory` | Agent tool for adding a directory. |
|
|
18
|
+
| `search_external_files` | Agent tool for glob-searching 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` as `/skill:<name>`. `/dir-add` reloads when it finds skills; `add_directory` reports when `/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
|
```
|