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
/// Guest protocol capability identifiers.
///
/// Single source of truth — always use these constants in match arms,
/// construction, and capability negotiation rather than inline strings.
pub const CAP_NOTIFY: &str = "notify";
pub const CAP_XDG_OPEN: &str = "xdg_open";
pub const CAP_CLIPBOARD: &str = "clipboard";
pub const CAP_HOST_EXEC: &str = "host_exec";
/// Streaming host-exec output (`HostExecOutput` byte chunks instead of one
/// buffered `HostExecStdout`/`HostExecStderr` frame). Requested alongside
/// `host_exec`; old hosts leave it in the rejected list and the guest falls
/// back to buffered frames.
pub const CAP_HOST_EXEC_STREAM: &str = "host_exec_stream";
/// Host-exec with the child's stdio supplied by the guest: a
/// `HostExecV2` frame with three descriptors attached via `SCM_RIGHTS`,
/// plus `HostExecSignal` relay while the child runs. Old hosts leave it
/// in the rejected list and the guest falls back to plain `HostExec`.
pub const CAP_HOST_EXEC_FDS: &str = "host_exec_fds";
/// All known capabilities in negotiation order.
pub const ALL_CAPABILITIES: & = &;
/// Host terminal variables that describe the invoking terminal.
///
/// These are presentation metadata, not host capabilities: they carry no
/// socket paths or credentials. Podbox forwards them to interactive
/// container sessions and host-exec children. Terminal control sockets
/// (`KITTY_LISTEN_ON`, `WEZTERM_UNIX_SOCKET`) and multiplexer state (`TMUX`,
/// `STY`) deliberately stay out.
pub const TERMINAL_ENV_KEYS: & = &;
/// Whether a guest may pass `key` through to a host-exec child.
///
/// The child runs on the host, so only presentation metadata and locale
/// cross the boundary; `PATH`, `LD_PRELOAD` and host socket variables do
/// not. Old hosts apply the narrower historical set and drop the rest,
/// which is why extending this list needs no protocol bump.
/// Interceptor binaries and the capability each needs: `(binary, capability)`.
///
/// Single source of truth for shim installation and the core-interceptor
/// guard in the guest daemon. (`podmgr-*` names are legacy aliases handled
/// separately at the use sites.)
pub const INTERCEPTORS: & = &;