Skip to main content

Crate levi_core

Crate levi_core 

Source

Re-exports§

pub use entities::*;

Modules§

entities
hub
Hub-side machinery: unwrap incoming LogEntries into real entities so aggregate queries and the dashboard see Tasks/StatusChanges/etc. (spec §Sync, hub leg).
ids
Short task ids: display as lv- + a unique hex prefix (git-style), prefix matching on input.
materialize
Deterministic replay of the levi event log into materialized state.
merkle
Bucketed set-hashing for the hub sync leg (spec: “Merkle-style comparison is a later optimization” — this is it). Event ids are grouped by their 2-hex prefix (the same sharding as the events ref) and each bucket is summarized as the SHA-256 of its sorted ids. Equal hash ⇒ identical bucket ⇒ skip; differing buckets are enumerated id-by-id. Both the CLI and the hub compute this identically.
rank
Ranking for levi next (spec §Ranking).
resolve
Per-checkout status resolution (spec §Status resolution).

Functions§

link
Binaries that receive levi entities over the wire (the hub) must call this: without any referenced symbol from this crate, the linker drops its object files — including the inventory registrations for entities, commands, and sagas.