mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 05:02:40 +00:00
refactor(cli)!: dispatch commands through REA-owned execution
Run ordinary CLI commands through REA's registry, argv parser and result owner. Remove Incur, the second admission parse, SDK error middleware, output capture and redundant command traversal. Preserve explicit redaction, publication receipts, incremental output, terminal notice eligibility and drain ownership. Migrate fixtures to real registrations and retain the derived-source notices. Validation includes unchanged public parity goldens, public and lifecycle regressions, repaired fixture consumers, real TTY base comparisons, exports beyond the engine string limit, four schema catalogs and final static/docs checks. Native provider and optional validator coverage limits are in the PR. Fixes #11654. Fixes #10583. Refs #11682, #11476 and #10511. BREAKING CHANGE: Markdown argument diagnostics use REA's literal escaping, table widths and token counts. Flag-shaped unknown MCP subcommands honor the selected format. Completion --schema/--version routes use the canonical REA-owned hook rather than the retired SDK generator. Refresh affected literal snapshots and regenerate completion hooks with rea completions <shell>. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
This commit is contained in:
1 parent
552d1c7108
commit
62014b566d
104 files changed
+1484
-2512
No files matched your search
@@ -24,7 +24,7 @@ const isRegistrationId = (id: string): id is CliCommandRegistrationId =>
|
||||
* complete CLI must answer, as it does for shell completion, which has no
|
||||
* global arguments. A standalone version or retired per-command MCP query
|
||||
* needs no registrar. Help, schemas, `--llms`, completions, other
|
||||
* Incur builtins, unknown names ("did you mean"), and a missing or unusable
|
||||
* CLI builtins, unknown names ("did you mean"), and a missing or unusable
|
||||
* recording all describe or search every command.
|
||||
*/
|
||||
export const selectCliRegistrations = (
|
||||
|
||||
Reference in new issue
Block a user