Expand description
Portable intent vocabulary primitives — the pure-data subset of
the intent enum/struct family that’s free of crate::app::*,
crate::shell::desktop::workbench::*, and crate::services::*
coupling.
Slice 57 (“the wedge”). The full intent vocabulary in
app/intents.rs (1882 LOC, 1308 external usages) carries
workbench / services entanglement that requires multiple
pre-cleanups before promotion. This module ships the cleanly
portable primitives now so they can be referenced from registrar
crates and graph crates without going through the binary root.
Promotion roadmap (subsequent slices, when their pre-cleanups land):
- Slice 57b:
AppCommand(after workbench types portable) - Slice 57c:
GraphMutation+GraphIntent(after services types portable) - Slice 57d:
RuntimeEvent+ViewAction+NavigatorProjectionIntent
Until those land, the in-tree app/intents.rs re-exports the
types here so existing call sites resolve unchanged.
Structs§
- Runtime
User Stylesheet Spec - Spec for a user-supplied stylesheet that the runtime should apply
across viewers. The path is the source-of-truth identity; the
sourceis the loaded contents at the time of the intent (so the intent is self-contained even if the file changes underneath).
Enums§
- Browser
Command - Browser-shell command — back / forward / reload / stop / zoom / close. Targets a single browser surface (focused viewer, chrome projection).
- Browser
Command Target - Where a
BrowserCommandshould land — the focused-input surface or the chrome projection (with an optional fallback node when no chrome is active). - Edge
Command - Edge-mutation command vocabulary. The pair-shaped variants carry explicit endpoints so the receiver doesn’t need to inspect a selection set; the bare variants act on the current selection.