@paigy/harness 0.3.49 → 0.3.52
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 +23 -5
- package/dist/cli.js +854 -153
- package/dist/main.js +811 -183
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -185,14 +185,32 @@ own `~/.paigy` slot:
|
|
|
185
185
|
paigy-harness hatch "Voice bug hunter"
|
|
186
186
|
```
|
|
187
187
|
|
|
188
|
-
To start a HELPER session, use `launch`, not hatch
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
To start a HELPER session, use `launch`, not hatch. It does not run the session itself: it asks this
|
|
189
|
+
computer's host to (`POST /api/sessions`, the door the phone launches through) and returns as soon as
|
|
190
|
+
the launch is accepted, printing the session id, its name and its brief's Goal. The host mints the
|
|
191
|
+
helper's identity bound to its own session, places the brief as its first Goal (under `--under GOAL`
|
|
192
|
+
when given) and runs it like a phone launch, so it shows on the Agents screen, ends from there and
|
|
193
|
+
outlives the shell that asked. The host must be running (`paigy-harness host`, or the service); if it
|
|
194
|
+
is not, `launch` says so and the session waits until it is.
|
|
191
195
|
|
|
192
196
|
```sh
|
|
193
|
-
paigy-harness launch "Deploy check" --under <goalId> --harness claude "get CI green and merge"
|
|
197
|
+
paigy-harness launch "Deploy check" --under <goalId> --harness claude --cwd ~/projects/paigy "get CI green and merge"
|
|
194
198
|
```
|
|
195
199
|
|
|
200
|
+
Who may launch (owner, 2026-11-13):
|
|
201
|
+
|
|
202
|
+
- **An agent** (a shell whose process speaks as an agent identity) launches only what the person
|
|
203
|
+
approved: it passes `--approval QUESTION_ID`, the question it asked them about this session, once
|
|
204
|
+
answered. Without it, `launch` refuses before sending anything.
|
|
205
|
+
- **You, at your own computer**, with only its own credential: `launch` asks
|
|
206
|
+
`Start <name> on <harness> in <folder>? [y/N]` and needs a terminal to ask in. That prompt is a
|
|
207
|
+
client-side guard; what bounds the computer's credential is the server's rule that it launches on
|
|
208
|
+
that computer only. With no terminal and no agent identity it refuses, and the app's New session is
|
|
209
|
+
the way.
|
|
210
|
+
|
|
211
|
+
`--cwd` (default: here) must be a folder the host granted, or a repo it advertises inside one; a
|
|
212
|
+
refusal lists what each computer offers.
|
|
213
|
+
|
|
196
214
|
Hatched agents appear on the phone's Agents screen like any pairing — renameable,
|
|
197
215
|
re-voiceable, revocable.
|
|
198
216
|
|
|
@@ -239,7 +257,7 @@ allow-list, a Stop button, and the log.
|
|
|
239
257
|
|
|
240
258
|
Headless flags: `--harness claude|codex|agy|grok`, `--mode bypass|ask`, `--cwd DIR`,
|
|
241
259
|
`--grace SECONDS`, `--doctor`; subcommands `host [--grant DIR]…`,
|
|
242
|
-
`hatch NAME` and `launch NAME [--under GOAL] BRIEF
|
|
260
|
+
`hatch NAME` and `launch NAME [--under GOAL] [--approval QUESTION] BRIEF…` (the host runs it). In ask mode the CLI is TERMINAL-FIRST: a blocked action or open
|
|
243
261
|
question prints in the terminal and waits `--grace` (default 90s); a person at the
|
|
244
262
|
keyboard answers in place, an unattended terminal escalates to your phone (0 = phone
|
|
245
263
|
immediately; non-TTY runs always go straight to the phone).
|