Closes #245.
commands.toml+commands/*.js: read without running code, problems by file and key (Mac via ConfigSync, iOS via MobileModel/FolderPresenter; undownloaded iCloud modules reported and downloaded).UserCommand(user.<name>,whenvia KeyContext) →.external(.userCommand); DocumentSession runs it on CommandHost with API 1 (org.text/selection/heading/outline/file/settings/prompt/message/fail), validates{edits, selection, message, copy}(UTF-16), applies one undo step at the base revision.- Trust: Run Once / Always / Don't Run; Always hashes the file and its imports in TrustStore; any change asks again.
- Refused with decrypted entries; Cancel Running Task cancels (also added to the iOS Commands list).
- Registered in the palette (hidden where
whenfails), keymap.toml validation, iOS Commands and[key-bar]; Emacs import notes bindings to user defuns. - Manual chapter 18, configuration and keys pages; strings in de, es, fr, ja, pt-BR.
Tests: manifest problems, API answers, result validation, when, trust on change, end-to-end runs through the real CommandHost (upcase title, prompt, edit during run refused, timeout, cancel, decrypted refusal), one undo step in OrgEditor. swift test, both Xcode builds and the gates pass (1 MB open 94 ms at load 3). Checked on the Mac (trust prompt, palette) and the iPhone 17 simulator (Commands list, trust sheet, result, undo).