feat(M4): Documentation & Final Integration
This commit is contained in:
@@ -96,9 +96,9 @@ The prompt is forwarded with each client’s native argument shape:
|
|||||||
|
|
||||||
| Client | Arguments passed |
|
| Client | Arguments passed |
|
||||||
|---|---|
|
|---|---|
|
||||||
| `codex` | `exec "<prompt>"` |
|
| `codex` | `exec --yolo "<prompt>"` |
|
||||||
| `claude` | `-p "<prompt>"` |
|
| `claude` | `-p "<prompt>" --dangerously-skip-permissions` |
|
||||||
| `opencode` | `"<prompt>"` |
|
| `opencode` | `run --dangerously-skip-permissions "<prompt>"` |
|
||||||
|
|
||||||
### `dispatch`
|
### `dispatch`
|
||||||
|
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ The dispatcher is **async-first**: `run` and `dispatch` start a detached backgro
|
|||||||
| **Async** (default) | Starts a detached process, returns a `jobId` immediately, and stores output on disk. | Fire-and-forget tasks, long-running jobs, parallel dispatches, or when you need to poll/check results later. |
|
| **Async** (default) | Starts a detached process, returns a `jobId` immediately, and stores output on disk. | Fire-and-forget tasks, long-running jobs, parallel dispatches, or when you need to poll/check results later. |
|
||||||
| **Sync** (`--sync`) | Blocks until the client subprocess exits, then returns `stdout`, `stderr`, and `exitCode` directly. | Short, interactive tasks where you need the result in the same turn. |
|
| **Sync** (`--sync`) | Blocks until the client subprocess exits, then returns `stdout`, `stderr`, and `exitCode` directly. | Short, interactive tasks where you need the result in the same turn. |
|
||||||
|
|
||||||
Use `--timeout <ms>` to control how long a job may run before it is terminated (default: 10 minutes for async, 5 minutes for sync). Use `--debug` to emit diagnostic metadata to stderr.
|
Use `--timeout <ms>` to control how long a job may run before it is terminated (default: 10 minutes / 600,000 ms for both async and sync). Use `--debug` to emit diagnostic metadata to stderr.
|
||||||
|
|
||||||
## Flags
|
## Flags
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user