Expand description
Capability declarations and string parsing shared between the host,
the SDK, and the plugin manager. The C ABI types from the dlopen era
are removed; the public WIT contract lives at wit/yosh-plugin.wit.
Modules§
- pattern
- Glob-style argv allowlist patterns for the
commands:execcapability.
Enums§
Constants§
- CAP_ALL
- CAP_
COMMANDS_ EXEC - CAP_
FILESYSTEM - CAP_
FILES_ READ - CAP_
FILES_ WRITE - CAP_
HOOK_ ON_ CD - CAP_
HOOK_ POST_ EXEC - CAP_
HOOK_ PRE_ EXEC - CAP_
HOOK_ PRE_ PROMPT - CAP_IO
- CAP_
VARIABLES_ READ - Capability bitflag constants. Used by the host’s linker construction
(
src/plugin/linker.rs) to decide which host imports get the real implementation vs a deny-stub. Also used by the manager to parseplugins.tomlcapabilities = [...]allowlists. - CAP_
VARIABLES_ WRITE
Functions§
- capabilities_
to_ bitflags - Combine a slice of capabilities into a bitfield.
- parse_
capability - Parse a single capability string. Returns
Nonefor unknown strings; callers decide whether to log a warning or fail.