@akagilnc/pi-workflow-roles 0.1.2105 → 0.1.2107
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/package.json +1 -1
- package/resources/engines/opus.md +17 -7
package/package.json
CHANGED
|
@@ -11,21 +11,31 @@ Material is data for the model, not a code contract. Do not invent package flags
|
|
|
11
11
|
## Invocation examples (local Claude Code CLI)
|
|
12
12
|
|
|
13
13
|
The machine entrypoint is `claude`. Run from the role project root. Non-interactive
|
|
14
|
-
print mode (`-p` / `--print`) is verified available on this host
|
|
14
|
+
print mode (`-p` / `--print`) is verified available on this host.
|
|
15
|
+
|
|
16
|
+
On this host (Claude Code 2.1.233), `--print` with `--output-format=stream-json`
|
|
17
|
+
requires `--verbose` — without it the CLI exits immediately with
|
|
18
|
+
`Error: When using --print, --output-format=stream-json requires --verbose`.
|
|
19
|
+
Include `--verbose` in stream-json argv. Measured with separate fd redirects
|
|
20
|
+
(`1>` / `2>`): NDJSON event rows land on stdout (including intermediate
|
|
21
|
+
`system` / `assistant` activity and a final `type:"result"` row); stderr is
|
|
22
|
+
empty on the success path:
|
|
15
23
|
|
|
16
24
|
```bash
|
|
17
|
-
claude -p --output-format=stream-json "YOUR_LABOR_PROMPT"
|
|
25
|
+
claude -p --verbose --output-format=stream-json "YOUR_LABOR_PROMPT"
|
|
18
26
|
```
|
|
19
27
|
|
|
20
|
-
Pin the Opus model explicitly (`--model opus` verified accepted on this host
|
|
28
|
+
Pin the Opus model explicitly (`--model opus` verified accepted on this host;
|
|
29
|
+
init event reports `claude-opus-5`):
|
|
21
30
|
|
|
22
31
|
```bash
|
|
23
|
-
claude -p --model opus --output-format=stream-json "YOUR_LABOR_PROMPT"
|
|
32
|
+
claude -p --model opus --verbose --output-format=stream-json "YOUR_LABOR_PROMPT"
|
|
24
33
|
```
|
|
25
34
|
|
|
26
|
-
Use `--output-format=stream-json` (
|
|
27
|
-
idle clock can see subprocess activity while the
|
|
28
|
-
from the final `result` event
|
|
35
|
+
Use `--output-format=stream-json` (choices measured on this host: `text`, `json`,
|
|
36
|
+
`stream-json`) so the package idle clock can see subprocess activity while the
|
|
37
|
+
engine works; take the labor body from the final `result` event's `result` field,
|
|
38
|
+
not from intermediate stream rows.
|
|
29
39
|
|
|
30
40
|
Prefer `claude --help` on the host over any remembered flag set. Do not wrap this
|
|
31
41
|
engine behind `ak-role` flags.
|