mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 13:12:26 +00:00
* refactor(cli): render help pages with REA's help owner REA now renders the root page, every command page, help after an unknown command, the mcp group page, the mcp doctor builtin page and the completions page before incur sees argv, with incur's precedence (update check, --update without help, --mcp and the LLM manifests first; then the integrations; then --version; then root and command pages). help.ts gains arguments, custom global options, the root-only flags and integrations, and a command-list page. The --format row on the root and command pages now lists csv and tsv (#10250), the approved difference; the mcp and mcp add pages keep the document formats they accept. Every other help byte is unchanged: 397 pages compared with incur's Help for all 196 registered commands. Fixes #10250 * test(cli): elide the root command list wherever the root page is printed The golden renderer chose root-page elision by case name, so help after an unknown command froze the whole command list. It now elides any stdout that opens with the root page's rea@<version> title. * refactor(cli): answer --version, --schema and the LLM manifests in REA (#11690) * refactor(cli): answer --version, --schema and the LLM manifests in REA src/cli/discovery.ts answers help, --version, --schema, --llms and --llms-full with incur's precedence, reading the arguments as the dispatcher receives them (after result output has adapted them, so token counts and buffering are unchanged). commandManifests.ts renders the Markdown index and full manifest, the structured manifests and the --schema document; commandSuggestion.ts ranks Did-you-mean candidates. Both are adapted from incur under its MIT licence. --schema --format md stays with incur: incur renders it without Markdown escaping, unlike REA's renderer, and that difference awaits a decision on #11654. Compared with incur's serve for every registered command and format, 3746 of 3945 discovery invocations are identical; the rest are the 196 Markdown schemas left to incur and the three root help pages with the approved csv/tsv row. * test(cli): pin which discovery document wins when several are asked for Goldens for --llms with --help, --llms with --version, --llms with --llms-full, --schema with --version and --schema with --help, recorded with incur's rendering on the base branch.
44 lines
2.4 KiB
Plaintext
44 lines
2.4 KiB
Plaintext
$ rea no-such-command --help
|
|
exit: 0
|
|
--- stdout
|
|
rea@<version> — Reverse engineer anything from your terminal or agent.
|
|
|
|
Usage: rea <command>
|
|
|
|
Commands:
|
|
address-to-file-offset Map one analysis address to a file offset; memory bytes may differ and ranges may not be contiguous
|
|
<registered command rows elided>
|
|
build-reconstruction-obligation-ledger Generate a deterministic Evidence-backed reconstruction obligation ledger page
|
|
<registered command rows elided>
|
|
decompile Read one part of an app as code. Supply at least one of the positional address or --procedure. Alternatively, use --file-offset alone. Equal positional and --procedure values are accepted; conflicts fail. With Ghidra, a space-qualified address such as ram:0x... avoids file-offset fallback; inspect-native-load-image reports the observed default space.
|
|
<registered command rows elided>
|
|
inspect-byte-entropy Inspect file-wide and block byte entropy without executing the file
|
|
<registered command rows elided>
|
|
setup Configure agent integrations and optional analysis providers
|
|
<registered command rows elided>
|
|
xrefs List bounded, untyped references to an analyzed address. For typed incoming references, use inspect-native-instruction at the target address where supported. Supply at least one of the positional address or --address. Equal values are accepted; conflicts fail.
|
|
|
|
Integrations:
|
|
completions Generate shell completion script
|
|
mcp Register as MCP server (add, doctor)
|
|
|
|
Custom Global Options:
|
|
--timings Write measured command timing to stderr.
|
|
|
|
Global Options:
|
|
--filter-output <keys> Filter output by key paths (e.g. foo,bar.baz,a[0,3])
|
|
--format <toon|json|yaml|md|jsonl|csv|tsv> Output format
|
|
--full-output Show full output envelope
|
|
--help Show help
|
|
--llms, --llms-full Print LLM-readable manifest
|
|
--mcp Start as MCP stdio server
|
|
--schema Show JSON Schema for command
|
|
--token-count Print token count of output (instead of output)
|
|
--token-limit <n> Limit output to n tokens
|
|
--token-offset <n> Skip first n tokens of output
|
|
--update Update to latest version
|
|
--version Show version
|
|
<end>
|
|
--- stderr
|
|
<end>
|