pub struct EnvSpec {
pub language: String,
pub name: Option<String>,
pub compatibility: Option<String>,
pub resolved_packages: Option<Vec<String>>,
}Expand description
Minimal input for building an isolated runtime environment (venv / node_modules).
Built from SkillMetadata by the caller so that the sandbox crate does not
depend on skill parsing.
Fields§
§language: StringResolved language: “python”, “node”, or “bash”
name: Option<String>Skill name (for cache key / logging)
compatibility: Option<String>Raw compatibility string (for bash+agent-browser detection, etc.)
resolved_packages: Option<Vec<String>>Resolved package list (from .skilllite.lock or parsed compatibility)
Implementations§
Source§impl EnvSpec
impl EnvSpec
Sourcepub fn from_metadata(skill_dir: &Path, meta: &SkillMetadata) -> Self
pub fn from_metadata(skill_dir: &Path, meta: &SkillMetadata) -> Self
Build an env spec from skill metadata. Uses metadata::detect_language.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnvSpec
impl RefUnwindSafe for EnvSpec
impl Send for EnvSpec
impl Sync for EnvSpec
impl Unpin for EnvSpec
impl UnsafeUnpin for EnvSpec
impl UnwindSafe for EnvSpec
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
Mutably borrows from an owned value. Read more