Expand description
Harness bundle formats (RFC-110 D9).
A bundle format is a harness’s own layout for a set of capabilities installed as one unit, such as a Claude Code plugin. An adapter crate declares the format; this module holds what every format shares: the contract a reader implements, the pack a reader produces, and the writer that turns that pack into an ordinary standalone source pack on disk. After an import, nothing in Tuff depends on where a pack came from.
Structs§
- Bundle
File - One file of a bundle, by its path relative to the bundle’s root.
- Bundle
Member Output - One member’s place in a written bundle.
- Bundle
Output - What a bundle writer produced for a pack.
- Imported
Member - One capability read from a bundle.
- Imported
Pack - A bundle read as a pack.
- Local
Bundle - A bundle whose files are in a local folder.
- Remote
Bundle - A bundle a listing places in another git repository.
Enums§
- Bundle
Location - Where a bundle’s files are: in the folder that was read, or in another repository that a listing (such as a marketplace) points to.
Traits§
- Bundle
Reader - What an adapter crate implements to read its harness’s bundle format.
- Bundle
Writer - What an adapter crate implements to write its harness’s bundle format.
Functions§
- bundle_
path - Read a path a bundle manifest declares, such as
./skills/review, as a clean path inside the bundle..is the bundle’s root. - read_
tree - Every regular file under
relativeinroot, with paths relative toroot. Symbolic links are never followed; each one is returned in the second list so the caller can report it..gitfolders are skipped. - write_
source_ pack - Write an imported pack as a standalone source pack in
output, which must be missing or empty:tuff-pack.toml,capabilities/<id>/for each member, andextra/for everything else. The folder is assembled in a temporary directory besideoutputand renamed into place.