M0.6: command registry, guard, theme tokens, app.about and app.quit
Command trait with static spec, enabled check and run; Registry rejects duplicate ids; Engine::execute runs every command inside the guard, which turns panics into EngineError::Internal and keeps the engine usable. Effects (Quit) are applied by the host. Theme tokens for Lutra Dark and Lutra Light render as --lt-* CSS variables and a webview init script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
50bcc95006
commit
b382f9fae7
12 changed files with 758 additions and 1 deletions
10
crates/engine/src/state.rs
Normal file
10
crates/engine/src/state.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//! Workspace state that commands read and change.
|
||||
|
||||
/// Everything the engine knows about the running session.
|
||||
///
|
||||
/// Empty in milestone M0; M1 adds the open project, buffers and settings.
|
||||
#[derive(Debug, Default)]
|
||||
pub struct State {
|
||||
/// Number of commands that ran to completion, successful or not.
|
||||
pub commands_run: u64,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue