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
// bnto-shell — Shell command execution for native targets.
//
// Provides the `shell-run` processor: a generic NodeProcessor that
// executes external CLI tools via ProcessContext::run_command(). This
// enables connector-as-recipe architecture — recipes can wrap any CLI
// tool (ffmpeg, yt-dlp, imagemagick) without needing a dedicated Rust
// processor for each one.
//
// Native-only: registered behind `#[cfg(feature = "native")]` in
// bnto-engine. Browser (WASM) gets NoopContext which blocks execution.
pub use ShellRun;
/// The node type the shell processor registers under. Trust, consent and
/// dry-run match nodes against this, so a recipe can't run a command
/// without the consent check seeing it.
pub const NODE_TYPE: &str = "shell-run";