Replace the hard-coded slash-command `match` in `hx-tui::submit` and the opaque `Setup.commands` closure with one listable registry.
- `hx_core::command`: `CmdSpec { name, summary, source: Builtin|Skill|Mcp|Ext, args: ArgKind }`, `ArgKind { None, Free, Enum(Vec<String>), Model, Provider, Path }`.
- Built-ins (`quit/exit, help, lsp, model, provider, compact, clear`) declared once in a static table.
- MCP prompts and `/mcp` register specs at startup; dispatch stays a single fn returning `CmdOut`.
- `/help` generated from the registry (drop hand-written `HELP`).
Done when: every command reachable today is listed by the registry; behaviour unchanged; test asserts list contents.
Context: #58
hermes
added this to the M8 milestone 2026-09-30 21:54:07 +00:00
hermes
added the coretui labels 2026-09-30 21:54:07 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Replace the hard-coded slash-command
matchinhx-tui::submitand the opaqueSetup.commandsclosure with one listable registry.hx_core::command:CmdSpec { name, summary, source: Builtin|Skill|Mcp|Ext, args: ArgKind },ArgKind { None, Free, Enum(Vec<String>), Model, Provider, Path }.quit/exit, help, lsp, model, provider, compact, clear) declared once in a static table./mcpregister specs at startup; dispatch stays a single fn returningCmdOut./helpgenerated from the registry (drop hand-writtenHELP).Done when: every command reachable today is listed by the registry; behaviour unchanged; test asserts list contents.
Context: #58