pub struct ExtensionManifest {
pub protocol_version: u32,
pub runtime: ExtensionRuntime,
pub command: String,
pub setup: Option<String>,
pub prebuilt: HashMap<String, PrebuiltAsset>,
pub args: Vec<String>,
pub permissions: Vec<String>,
pub hooks: Vec<HookSubscription>,
pub config: Vec<ExtensionConfigEntry>,
pub theme_tokens: BTreeMap<String, String>,
pub deferred: Option<DeferredDeclarations>,
}Expand description
Extension declaration inside a plugin manifest.
Deserialization goes through [RawExtensionManifest] so legacy
manifest aliases (extension.tools + activation: "deferred", the
pre-native shape shipped by early deferred plugins such as
axel-memory-manager 0.1) are folded into the native deferred block
BEFORE any classification or validation can observe them. Unknown
activation values fail closed instead of silently loading eager.
Fields§
§protocol_version: u32Extension protocol version. Defaults to v1 for pre-versioned manifests.
runtime: ExtensionRuntimeRuntime type (only “process” in phase 1).
command: StringCommand to start the extension process.
setup: Option<String>Optional path to a post-install setup script (relative to plugin
root). When present, the marketplace install flow runs this
script after the plugin source is in place — used by source-shipped
extensions (e.g. Rust binaries) that need to compile a binary
before Self::command resolves. Same security model as
provides.sidecar.setup (path must stay inside the plugin dir;
see crate::skills::post_install for the runner).
prebuilt: HashMap<String, PrebuiltAsset>Optional per-host-triple prebuilt asset map. When the installer
can’t find Self::command on disk after the source clone, it
looks up the current host’s triple (e.g. linux-x86_64,
darwin-arm64, windows-x86_64 — see
crate::skills::post_install::host_triple) in this map and,
if a matching PrebuiltAsset exists, downloads and extracts
it into the plugin dir as a fast path that skips
Self::setup. Empty by default.
args: Vec<String>Arguments to pass to the command.
permissions: Vec<String>Permissions requested by the extension.
hooks: Vec<HookSubscription>Hooks the extension wants to subscribe to.
config: Vec<ExtensionConfigEntry>Non-secret config declarations resolved by Synaps and passed to initialize.
theme_tokens: BTreeMap<String, String>OPTIONAL (additive, protocol v1-compatible per docs/STABILITY.md §1):
theme tokens this extension declares, merged by the TUI into the
active theme under the ext.<plugin-id>.<token> namespace at load.
Keys are token names (no dots/slashes/spaces); values are hex colors
(#rgb or #rrggbb). A user theme-TOML key ext.<plugin-id>.<token>
always overrides the manifest value. Absent => empty map => behavior
identical to pre-P19.2 manifests.
deferred: Option<DeferredDeclarations>OPTIONAL (additive, protocol v1-compatible): passive deferred
lifecycle declarations (Task 20, spec 7.5). Absent => legacy eager
lifecycle, byte-for-byte compatible. Present declarations are
trusted local manifest expectations validated BEFORE any spawn and
matched EXACTLY against runtime initialize declarations.
Implementations§
Trait Implementations§
Source§impl Clone for ExtensionManifest
impl Clone for ExtensionManifest
Source§fn clone(&self) -> ExtensionManifest
fn clone(&self) -> ExtensionManifest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExtensionManifest
impl Debug for ExtensionManifest
Source§impl<'de> Deserialize<'de> for ExtensionManifest
impl<'de> Deserialize<'de> for ExtensionManifest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExtensionManifest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExtensionManifest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ExtensionManifest
impl Serialize for ExtensionManifest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl TryFrom<RawExtensionManifest> for ExtensionManifest
impl TryFrom<RawExtensionManifest> for ExtensionManifest
Auto Trait Implementations§
impl Freeze for ExtensionManifest
impl RefUnwindSafe for ExtensionManifest
impl Send for ExtensionManifest
impl Sync for ExtensionManifest
impl Unpin for ExtensionManifest
impl UnsafeUnpin for ExtensionManifest
impl UnwindSafe for ExtensionManifest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more