feat(cli): add unknown command registry support

This commit is contained in:
morluto
2026-07-14 06:03:07 +00:00
parent 998697155d
commit 9b0cb95786
7 changed files with 539 additions and 4 deletions
+13
View File
@@ -431,6 +431,19 @@ Run `npx -y rea-agents --help` for direct decompilation, bounded search and
other options. `analyze` and `inspect` share the same overview workflow;
`function`, `xrefs`, and `trace` return the same Evidence v2 envelopes as MCP.
CLI exit status is independent of output format, full output, filtering, and
token limits:
| Status | Meaning |
| ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `0` | The requested operation completed truthfully. Explicit unknown, bounded, or truncated evidence remains successful when the operation completed under its declared contract. |
| `1` | Argument validation, approval or policy, provider or analysis, integrity, cancellation or timeout, serialization, or output failed. Structured output retains the typed category and safe diagnostic details when available. |
Machine-readable failures remain on stdout in the requested format; incidental
diagnostics and progress use stderr. Signal termination retains the conventional
status supplied by the shell and runtime. Shell pipelines should enable
`pipefail` when the REA status must propagate through later commands.
Or install the `rea` command globally:
```bash