@henryqw/pi-herdr 0.4.4 → 0.4.5

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 +4 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,14 +1,9 @@
1
1
  # `@henryqw/pi-herdr`
2
2
 
3
- Call the Herdr CLI from Node through one thin client while keeping orchestration in the owning extension.
3
+ Call the Herdr CLI from Node through one thin client. Extension authors share process handling without copying Herdr's command catalog, while each extension keeps its orchestration.
4
4
 
5
5
  This package is an extension-author library. Pi users normally install a Herdr companion extension instead.
6
6
 
7
- ## Why
8
-
9
- - **Created for**: Extension authors building Herdr-aware Pi features.
10
- - **Advantage**: Share process handling without copying Herdr's command catalog into a second API.
11
-
12
7
  ## Install
13
8
 
14
9
  ```bash
@@ -17,7 +12,7 @@ npm install @henryqw/pi-herdr
17
12
 
18
13
  Install the Herdr CLI and make `herdr` available on the calling process's `PATH`.
19
14
 
20
- For ready-to-use Pi workflows, see [`@henryqw/pi-herdr-clone`](https://pi.henry.wang/extensions/pi-herdr-clone).
15
+ For a ready-to-use Pi workflow, see [`@henryqw/pi-herdr-clone`](https://pi.henry.wang/extensions/pi-herdr-clone).
21
16
 
22
17
  ## Use
23
18
 
@@ -28,6 +23,8 @@ const herdr = createHerdrClient(pi.exec.bind(pi));
28
23
  const response = await herdr.json(["agent", "list"], { cwd: ctx.cwd });
29
24
  ```
30
25
 
26
+ ## API
27
+
31
28
  | API | Result |
32
29
  | --- | --- |
33
30
  | `exec` | Validates string argv and returns the raw process result. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-herdr",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Shared client for interacting with Herdr from Node.js tools and Pi packages.",
5
5
  "keywords": [
6
6
  "pi-package",