1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// Copyright 2026 Mark Alan Boykin
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: MPL-2.0
//! 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.
use PathBuf;
use crateNodeKey;
/// Browser-shell command — back / forward / reload / stop / zoom / close.
/// Targets a single browser surface (focused viewer, chrome projection).
/// Where a [`BrowserCommand`] should land — the focused-input
/// surface or the chrome projection (with an optional fallback node
/// when no chrome is active).
/// Spec for a user-supplied stylesheet that the runtime should apply
/// across viewers. The path is the source-of-truth identity; the
/// `source` is the loaded contents at the time of the intent (so the
/// intent is self-contained even if the file changes underneath).
/// 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.