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.
23 lines
780 B
Rust
23 lines
780 B
Rust
//! kei-token-tracker — per-LLM-call token + cost observability store.
|
|
//!
|
|
//! Records [`TokenEvent`] rows after each LLM turn (cortex chat handlers,
|
|
//! agent loops, etc). Phase D sleep-report aggregates by model + day for
|
|
//! nightly markdown output.
|
|
//!
|
|
//! Constructor Pattern: file ≤200 LOC, function ≤30 LOC. Each cube is a
|
|
//! single responsibility — `event` (data shape), `schema` (DDL), `store`
|
|
//! (CRUD), `aggregate` (rollup), `sleep_report` (markdown), `cli` (clap
|
|
//! dispatch). The bin (`src/bin/kei-token-tracker.rs`) is a thin shim.
|
|
|
|
pub mod aggregate;
|
|
pub mod cli;
|
|
pub mod error;
|
|
pub mod event;
|
|
pub mod schema;
|
|
pub mod sleep_report;
|
|
pub mod store;
|
|
|
|
pub use aggregate::ModelAggregate;
|
|
pub use error::Error;
|
|
pub use event::TokenEvent;
|
|
pub use store::Store;
|