Expand description
submilli:fs — agent-facing filesystem library.
Pure Rust host functions registered directly under the package name. Each
gated op runs check_security before touching the disk; the set of gated
capabilities is cataloged in crate::stdlib::capabilities — keep it in
sync when adding or removing a gate (see AGENTS.md).
Stat / Peek / DirEntry / Info are host-built backing structs the
guest holds opaquely and reads through the registered getters. FileWriter
and the lines / bytes / list iterators wrap handles payloads in
externrefs; the iterators are closable (for…of releases the OS handle
on every loop exit) and GC reclaim is the backstop.
Re-exports§
pub use declaration::package_declaration;
Modules§
- declaration
- The
submilli:fspackage declaration — the LLM-facing type surface (functions,Stat/Peek/DirEntry/Info/MountInfo/FileWriter). - handles
- Externref payloads for
submilli:fsopen resources.