81 s.legacy_default_ =
true;
87 bool empty()
const {
return bits_ == 0; }
96 return legacy_default_;
104 for (
const auto capability : {
119 for (
const auto&
n : names) {
130 return std::uint32_t{1} <<
static_cast<std::uint8_t
>(
c);
132 static constexpr std::uint32_t kAllBits =
133 (std::uint32_t{1} << 7) - 1;
135 std::uint32_t bits_ = 0;
136 bool legacy_default_ =
false;
bool empty() const
Definition reload_capabilities.hpp:87
static CapabilitySet all()
Definition reload_capabilities.hpp:78
static bool parse(const std::vector< std::string > &names, CapabilitySet &out)
Parse a declared-capability name list (from the signed manifest).
Definition reload_capabilities.hpp:117
std::optional< ReloadCapability > first_effectful() const noexcept
Return the first granted effectful capability in stable declaration order.
Definition reload_capabilities.hpp:103
void grant(ReloadCapability c)
Definition reload_capabilities.hpp:85
bool has(ReloadCapability c) const
Definition reload_capabilities.hpp:86
bool is_legacy_default() const noexcept
True only for a set produced by all(): the unenforced grant every trusted/local realm still receives ...
Definition reload_capabilities.hpp:95
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
bool capability_from_name(std::string_view s, ReloadCapability &out)
Parse a wire name; returns false on an unknown token (caller fails closed — an unrecognized capabilit...
Definition reload_capabilities.hpp:60
@ s
Definition input_events.hpp:41
@ c
Definition input_events.hpp:39
@ n
Definition input_events.hpp:40
std::string_view capability_name(ReloadCapability c)
Stable wire name for a capability (used in the SIGNED pack manifest + config).
Definition reload_capabilities.hpp:45
ReloadCapability
A capability gates one effectful bridge-API group.
Definition reload_capabilities.hpp:31
@ RuntimeImport
evaluate a runtime-imported JS bundle (dynamic code load)
Definition reload_capabilities.hpp:38
@ Clipboard
read/write the system clipboard
Definition reload_capabilities.hpp:34
@ Ai
AI-CLI bridge.
Definition reload_capabilities.hpp:37
@ Storage
persistent key/value + preset temp files
Definition reload_capabilities.hpp:36
@ Exec
shell exec/execAsync — ALSO compiled out unless the PULP_DEV_BRIDGE_EXEC CMake option is ON (release/...
Definition reload_capabilities.hpp:32
@ Filesystem
read arbitrary file paths (asset file loads, native dialogs)
Definition reload_capabilities.hpp:35
@ Network
outbound network (reserved; used by remote-UX-push, not the bridge today)
Definition reload_capabilities.hpp:39