API Reference
The full Rust API documentation is generated by cargo doc and hosted alongside these docs.
Key public types
For a v1.0 GUI / library consumer, the most important types to know about:
SyncReport— return shape of the fullsync()pipeline (reconcile → discover → consolidate → distribute → cleanup → save). Primary data source for any “what happened this sync” surface.reconcile::ReconcileReport— outcome of one reconcile pass (Match / Drift / Vanished / Missing classifications plus edit-in-library user decisions).marketplace::MarketplaceAdapter— pluggable trait for managed-skill install/update/availability. Two production implementations ship (ClaudeMarketplaceAdapter,GitAdapter); third-party adapters can implement the trait directly (sealing is tracked as a v1.0 follow-up in #518).CleanupResult— bucket-by-bucket cleanup outcomes (removed-from-config / missing-from-disk / now-in-exclude-list). Accessors are read-only; the renderer owns the user-facing surface.status::StatusReport+status::DirectoryStatus—tome status --jsonshape. Since v0.12.0,DirectoryStatus.roleis the typedDirectoryRoleenum (with the human-readable description in a separaterole_descriptionfield).doctor::DoctorReport—tome doctor --jsonshape, includingIssueCategory(Library / Directory / Config / Foreign-symlink) groupings.
The architecture narrative — how these types fit together, why the library is canonical, how reconcile interacts with the manifest and lockfile — lives in Architecture.
Newtypes
Domain-specific wrappers with validation at construction:
SkillName— validated skill identifierconfig::DirectoryName— validated directory entry namevalidation::ContentHash— SHA-256 of a skill directory, normalized to lowercase hexpaths::TomePaths— bundle oftome_home/library_dir/config_dirto prevent parameter-order bugs