torii-lib — domain library for the torii (Gitorii) ecosystem.
Everything the CLI, the TUI and the IDE share lives here: VCS operations over the object database, platform clients (GitHub / GitLab / Gitea / Sourcehut / Radicle / Bitbucket / Azure), multi-repo workspaces, mirrors, config, auth and versioning helpers.
API tiers
- Domain API — the documented surface. Returns plain data
(
RepoStatus,PullRequest,Pipeline, …) and never exposesgit2types. This is the contract the IDE builds on, and the boundary where the futureVcsEnginetrait (torii-vcs) plugs in. - Porcelain helpers — a handful of
git2-typed functions (commit_inner,resolve_signature,signature_letter) still consumed by the TUI in the twingitoriicrate. Internal contract, slated for migration behind the domain API.