@henryqw/pi-add-dir 2.1.0 → 2.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.
Files changed (2) hide show
  1. package/README.md +9 -7
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Give the current Pi session context, skills, and searchable files from directories outside the workspace. Reuse those resources in place without copying or linking their directories.
4
4
 
5
- ![Pi using added external directories by name](./example.png)
5
+ ![Pi using added external directories by name](https://raw.githubusercontent.com/HenryQW/pi-harness/main/extensions/pi-add-dir/example.png)
6
6
 
7
7
  ## Install
8
8
 
@@ -12,17 +12,19 @@ pi install npm:@henryqw/pi-add-dir
12
12
 
13
13
  ## Use
14
14
 
15
- Run `/dir-add`, enter a directory, then run `/dir-ls`. Pi lists the directory and exposes its supported resources.
15
+ Run `/dir-add`, enter a directory, then run `/dir-ls` to confirm it was added. Pi lists the directory and exposes its supported resources.
16
+
17
+ Use slash commands from the Pi prompt as a human; Pi agents use the tools.
16
18
 
17
19
  | Surface | Type | Purpose |
18
20
  | --- | --- | --- |
19
- | `/dir-add [path]` | command | Add to the current session; no path opens input. Supports `~`. |
20
- | `/dir-add --project [path]` | command | Persist for the current Git repository and all its linked worktrees. |
21
- | `/dir-add --global [path]` | command | Persist for every Pi workspace for this user. |
21
+ | `/dir-add [path]` | command | Add to this session by default; pass `--project` or `--global` before the path to persist for this Git repository's linked worktrees or every workspace. Omit the path to enter it when prompted; supports `~`. |
22
22
  | `/dir-ls` | command | List directories with their scope; select one to remove from that scope. |
23
23
  | `/dir-reload` | command | Reload external directory resources. |
24
- | `add_directory` | tool | Add a directory. |
25
- | `search_external_files` | tool | Glob-search added directories. |
24
+ | `add_directory(path)` | tool | Add a directory to this session and return its context and instructions. |
25
+ | `search_external_files(pattern, maxResults?)` | tool | Glob-search added directories; returns up to 50 results by default, configurable to 1,000. |
26
+ | `@` file autocomplete | ui | Find files in added directories and insert their absolute paths. |
27
+ | External directory widget | ui | Show added directories and point to `/dir-ls` for management. |
26
28
 
27
29
  Added directories give Pi these resources:
28
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-add-dir",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Add external directories to a Pi session with context, skills, and file search.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -25,8 +25,8 @@
25
25
  "pack:check": "npm pack --dry-run"
26
26
  },
27
27
  "peerDependencies": {
28
- "@earendil-works/pi-coding-agent": "^0.86.0",
29
- "@earendil-works/pi-tui": "^0.86.0",
28
+ "@earendil-works/pi-coding-agent": ">=0.86.0 <0.88.0",
29
+ "@earendil-works/pi-tui": ">=0.86.0 <0.88.0",
30
30
  "typebox": "^1.3.15"
31
31
  },
32
32
  "repository": {
@@ -50,7 +50,7 @@
50
50
  "@henryqw/pi-config-store": "^2.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@earendil-works/pi-coding-agent": "0.86.0",
54
- "@earendil-works/pi-tui": "0.86.0"
53
+ "@earendil-works/pi-coding-agent": "0.87.0",
54
+ "@earendil-works/pi-tui": "0.87.0"
55
55
  }
56
56
  }