@aiiware/aii 0.17.13 → 0.17.15
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 +22 -0
- package/bin/aii +670 -650
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -539,6 +539,28 @@ Typing `/deploy staging` expands the file's body (with `$ARGUMENTS` → `staging
|
|
|
539
539
|
| `--show-cost` | Show cost estimates |
|
|
540
540
|
| `-v`, `--verbose` | Verbose output |
|
|
541
541
|
| `-d`, `--debug` | Debug-level output |
|
|
542
|
+
| `--output-format <fmt>` | `json` or `stream-json` (one-shot only) |
|
|
543
|
+
| `--tools` / `--exclude-tools <list>` | Allow / deny specific tools |
|
|
544
|
+
| `--max-turns <n>` | Cap ReAct iterations within a turn (0/unset = default 500) |
|
|
545
|
+
| `--max-budget-usd <amt>` | Cumulative between-turns cost cap (0 = no cap) |
|
|
546
|
+
| `--bare` | Result to stdout only; all chrome to stderr (one-shot) |
|
|
547
|
+
| `--append-system-prompt <text>` | Append additive instructions to the run |
|
|
548
|
+
| `--append-system-prompt-file <path>` | Append a workspace file of additive instructions |
|
|
549
|
+
|
|
550
|
+
### Headless / CI Automation
|
|
551
|
+
|
|
552
|
+
Aii is scriptable and safe to run unattended:
|
|
553
|
+
|
|
554
|
+
```bash
|
|
555
|
+
# Bounded, machine-readable, pipe-clean:
|
|
556
|
+
aii "review the staged diff for correctness bugs" \
|
|
557
|
+
--bare --max-turns 12 --max-budget-usd 1.00 --output-format json | jq -r '.result'
|
|
558
|
+
```
|
|
559
|
+
|
|
560
|
+
- **`--max-turns`** is the hard cost bound for a one-shot run — it caps the agent's ReAct iterations per turn (enforced server-side). **`--max-budget-usd`** is a cumulative *between-turns* cap: fully effective for interactive / `--auto` runs; on a single one-shot turn it adds an advisory `over_budget` flag to the JSON output (pair it with `--max-turns` to bound a one-shot's cost).
|
|
561
|
+
- **`--bare`** sends only the result to **stdout** and all status/chrome to **stderr**, so `RESULT=$(aii "…" --bare)` is clean. Compose with `--output-format json` for structured stdout.
|
|
562
|
+
- **`--append-system-prompt[-file]`** injects an additive, escaped instruction (a review rubric, house style) without editing committed config. The file form reads only inside the workspace and rejects symlinks.
|
|
563
|
+
- Ready-to-use **GitHub Actions** recipes live in [`examples/github-actions/`](examples/github-actions/): they use the `pull_request` trigger (never `pull_request_target` with a PR checkout), reference `AII_API_KEY` via `secrets.`, and consume Aii output as data (never `eval`).
|
|
542
564
|
|
|
543
565
|
---
|
|
544
566
|
|