@akagilnc/pi-workflow-roles 0.1.2124 → 0.1.2133
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
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# agy engine method material
|
|
2
|
+
|
|
3
|
+
This file is packaged method material for the optional `agy` labor engine
|
|
4
|
+
(Gemini-family CLI on the host). When a role run selects this engine, read
|
|
5
|
+
these bytes and follow the local CLI's actual interface for the labor detour.
|
|
6
|
+
Return the labor result to the same role session so typed submission stays on
|
|
7
|
+
the existing in-session path.
|
|
8
|
+
|
|
9
|
+
Material is data for the model, not a code contract. Do not invent package flags.
|
|
10
|
+
|
|
11
|
+
## Invocation examples (local agy CLI)
|
|
12
|
+
|
|
13
|
+
The machine entrypoint is `agy`. Run from the repository root of the role
|
|
14
|
+
project (repo root matters for its sandbox). Non-interactive labor uses
|
|
15
|
+
sandboxed print mode with the prompt as the positional/print argument and a
|
|
16
|
+
log file for diagnostics:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
agy --sandbox --print 'YOUR_LABOR_PROMPT' --log-file /tmp/agy-labor.log
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
- Treat a quota/auth error like any other engine failure (do not retry-loop).
|
|
23
|
+
|
|
24
|
+
## Failure handling
|
|
25
|
+
|
|
26
|
+
On any spawn, quota, or model failure, return the soft failure to the session
|
|
27
|
+
and continue labor in-seat per ADR 0071 (seat fallback with typed declaration).
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# grok-4.6 engine method material
|
|
2
|
+
|
|
3
|
+
This file is packaged method material for the optional `grok-4.6` labor engine
|
|
4
|
+
(Grok CLI on the host). When a role run selects this engine, read these bytes
|
|
5
|
+
and follow the local CLI's actual interface for the labor detour. Return the
|
|
6
|
+
labor result to the same role session so typed submission stays on the
|
|
7
|
+
existing in-session path.
|
|
8
|
+
|
|
9
|
+
Material is data for the model, not a code contract. Do not invent package flags.
|
|
10
|
+
|
|
11
|
+
## Invocation examples (local Grok CLI)
|
|
12
|
+
|
|
13
|
+
The machine entrypoint is `grok` (NOT `grok-4.6` — the engine name is the model
|
|
14
|
+
id, not the executable). Run from the role project root. Non-interactive labor
|
|
15
|
+
reads the prompt from a file and prints plain output:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
grok --prompt-file /path/to/labor-prompt.md -m grok-4.6 --always-approve --output-format plain
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
- `-m grok-4.6` selects the model; `grok models` lists valid ids (currently
|
|
22
|
+
`grok-4.6` default, `grok-4.5`).
|
|
23
|
+
- `--always-approve` keeps the run non-interactive (documented).
|
|
24
|
+
- Official docs list `-p/--single` as the canonical headless prompt input;
|
|
25
|
+
`--prompt-file` exists in the installed CLI (`--help`) and is smoke-verified
|
|
26
|
+
on this host — prefer it for long prompts, fall back to `-p` if absent.
|
|
27
|
+
- `--output-format plain` keeps stdout clean for capture — but it stays
|
|
28
|
+
silent until the run finishes. **For labor longer than ~2 minutes use
|
|
29
|
+
`--output-format streaming-json` instead**: it emits NDJSON events
|
|
30
|
+
(thought/text deltas) continuously from the first second, which keeps the
|
|
31
|
+
package idle watchdog fed (verified live 2026-08-21; a plain-format judge
|
|
32
|
+
run was killed by the 183s idle timeout). Reconstruct the final answer by concatenating each NDJSON
|
|
33
|
+
object's `data` where `type == "text"`, in stream order; `type == "end"`
|
|
34
|
+
(stopReason end_turn) marks completion. Do not treat `thought` events as
|
|
35
|
+
the answer (live-verified stream shape 2026-08-21).
|
|
36
|
+
- Reasoning effort follows the host CLI defaults; grok effort tiers are
|
|
37
|
+
low/med/high when a flag is exposed by the installed CLI version — check
|
|
38
|
+
`grok --help` and follow the actual interface. Do not invent flags.
|
|
39
|
+
|
|
40
|
+
## Failure handling
|
|
41
|
+
|
|
42
|
+
On any spawn or model-id failure, return the soft failure to the session and
|
|
43
|
+
continue labor in-seat per ADR 0071 (seat fallback with typed declaration).
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# opencode engine method material
|
|
2
|
+
|
|
3
|
+
This file is packaged method material for the optional `opencode` labor engine
|
|
4
|
+
(OpenCode CLI on the host; the GLM cheap-pool leg runs through it). When a role
|
|
5
|
+
run selects this engine, read these bytes and follow the local CLI's actual
|
|
6
|
+
interface for the labor detour. Return the labor result to the same role session
|
|
7
|
+
so typed submission stays on the existing in-session path.
|
|
8
|
+
|
|
9
|
+
Material is data for the model, not a code contract. Do not invent package flags.
|
|
10
|
+
|
|
11
|
+
## Invocation examples (local OpenCode CLI)
|
|
12
|
+
|
|
13
|
+
The machine entrypoint is `opencode`. Run from the role project root.
|
|
14
|
+
Non-interactive labor uses `run` with an explicit model:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
opencode run -m opencode-go/glm-5.2 "YOUR_LABOR_PROMPT"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- `-m provider/model` selects the model. **Always confirm the current id with
|
|
21
|
+
`opencode models` first** — provider prefixes migrate (verified 2026-08-21:
|
|
22
|
+
GLM lives under `opencode-go/`, e.g. `opencode-go/glm-5.2`; the older
|
|
23
|
+
`zai/glm-5.2` id errors with "Unexpected server error").
|
|
24
|
+
- `--format json` gives structured output; `--auto` auto-approves non-denied
|
|
25
|
+
permissions for unattended runs (both per official docs).
|
|
26
|
+
- Output goes to stdout; long prompts may be passed via shell heredoc or a
|
|
27
|
+
file read into the argument — follow the installed CLI's actual interface.
|
|
28
|
+
|
|
29
|
+
## Failure handling
|
|
30
|
+
|
|
31
|
+
On any spawn or model failure, return the soft failure to the session and
|
|
32
|
+
continue labor in-seat per ADR 0071 (seat fallback with typed declaration).
|