KeiSeiKit-1.0/_primitives/_rust/kei-fork/src/lib.rs
Parfii-bot a4e667de10 KeiSeiKit-public — clean state
Single-commit clean baseline after security scrub of niche-tells,
project codenames, internal jargon, and contributor-email leaks.

Contents:
- 100 Rust crates (_primitives/_rust/)
- 37 agent manifests (_manifests/) + generated specs (_generated/)
- 67 user-invocable skills (skills/)
- 33 hooks (hooks/)
- Composition blocks (_blocks/)
- Documentation (docs/, README.md)
- TS adapter packages (_ts_packages/)
- Assembler (_assembler/)
- Roles (_roles/)
- Templates (_templates/)
- Forgejo CI (.forgejo/)

Author: Denis Parfionovich <info@greendragon.info>

License: see LICENSE.
2026-05-01 12:09:03 +08:00

30 lines
1,001 B
Rust

//! kei-fork — managed git-worktree + ledger lifecycle for agent spawns.
//!
//! Public API: `create`, `collect`, `list`, `gc`, `rescue`. Each op is
//! backed by one module under `src/`, keeping every file ≤200 LOC and
//! every function ≤30 LOC (Constructor Pattern). Shell-out helpers for
//! `git` live in `git.rs`; TOML round-trip for `.KEI_FORK_META.toml`
//! lives in `meta.rs`; the `ForkHandle` value type and the
//! `ForkStatus` enum live in `handle.rs`.
//!
//! Ledger integration is optional at runtime: if env
//! `KEI_FORK_SKIP_LEDGER=1` is set, create/collect/gc skip the
//! `kei-ledger` subprocess call. Tests rely on this for hermeticity.
pub mod collect;
pub mod create;
pub mod error;
pub mod gc;
pub mod git;
pub mod handle;
pub mod list;
pub mod meta;
pub mod rescue;
pub use collect::{collect, CollectReport};
pub use create::create;
pub use error::Error;
pub use gc::{gc, GcReport};
pub use handle::{ForkHandle, ForkStatus};
pub use list::list;
pub use rescue::rescue;