mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-26 02:37:01 -06:00
A misspelled parameter key got a did-you-mean suggestion, but a misspelled command id only got "unknown command `select.al`", through the CLI, MCP and the control channel alike. Session::execute now names the nearest command id, using the same matching as parameter keys (ignoring case), and action.batch does the same for an unknown step. An id with no near match keeps the plain error. The matching skips candidates whose length differs by more than the allowed number of edits, so a very long unknown command id or parameter key is answered at once instead of being measured against every command id or accepted key. The new message has a row in every catalog, and docs/mcp.md's Parameter keys section shows it.