Skip to main content

Module bundle

Module bundle 

Source
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§

BundleFile
One file of a bundle, by its path relative to the bundle’s root.
BundleMemberOutput
One member’s place in a written bundle.
BundleOutput
What a bundle writer produced for a pack.
ImportedMember
One capability read from a bundle.
ImportedPack
A bundle read as a pack.
LocalBundle
A bundle whose files are in a local folder.
RemoteBundle
A bundle a listing places in another git repository.

Enums§

BundleLocation
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§

BundleReader
What an adapter crate implements to read its harness’s bundle format.
BundleWriter
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 relative in root, with paths relative to root. Symbolic links are never followed; each one is returned in the second list so the caller can report it. .git folders 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, and extra/ for everything else. The folder is assembled in a temporary directory beside output and renamed into place.