Command editor
A small editor built to make command architecture visible. New file and Save current file are each defined once as an AppCommand, which supplies its shortcut, palette row, semantic action, and stable ID together.
Edit a file and Save becomes available on every surface at once; save it and they all disable together. The palette opener is itself a command bound to Ctrl+K, so the palette lists exactly what the editor’s CommandScope offers. The demo is deterministic and local.
Try it: edit the file, then save it with Ctrl+S or press Ctrl+K and choose Save current file. Choose New file from the palette to open an untitled file; the last-command line reports each invocation.