@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.
Files changed (2) hide show
  1. package/README.md +12 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # `@henryqw/pi-add-dir`
2
2
 
3
- Pi extension for adding external directories to current session, based on [shelken's pi-add-dir](https://github.com/shelken/pi-extensions/tree/main/extensions/pi-add-dir). It injects `AGENTS.md` / `CLAUDE.md`, discovers skills, persists directory state in session history, and searches external files.
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 [path]` | Add directory; no path opens input. Supports `~`. |
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 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` in `add_directory` results and inject them into future prompts. Skills load from `.pi/skills`, `.agents/skills`, and `.claude/skills`, then register as `/skill:<name>` after reload. `/dir-add` reloads automatically when it finds skills; `add_directory` reports when `/reload` is needed.
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 native Node filesystem traversal, skips `.git` and `node_modules`, supports basename and relative-path globs, and caps results at 1,000 per call. No config file or runtime dependency.
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
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-add-dir",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Add external directories to a Pi session with context, skills, and file search.",
5
5
  "keywords": [
6
6
  "pi-package",