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.
26 lines
1,017 B
Rust
26 lines
1,017 B
Rust
//! kei-atom-discovery — shared substrate-atom discovery primitives.
|
|
//!
|
|
//! Single authoritative implementation of:
|
|
//! - `AtomMeta` / `AtomKind` / `SideEffect` — locked frontmatter schema
|
|
//! - `parse_frontmatter` — YAML split with 64 KiB cap (billion-laughs guard)
|
|
//! - `discover_atoms` — walks `<root>/*/atoms/*.md`, symlink-safe
|
|
//! - `parse_wikilink` — strict `[[target]]` matcher
|
|
//! - `safe_join` — path-traversal-safe base+rel join
|
|
//!
|
|
//! Both `kei-sage` and `kei-runtime` consume this crate — no parallel
|
|
//! frontmatter structs, no parallel YAML parsers.
|
|
|
|
pub mod error;
|
|
pub mod frontmatter;
|
|
pub mod path_safety;
|
|
pub mod walk;
|
|
pub mod wikilink;
|
|
|
|
pub use error::Error;
|
|
pub use frontmatter::{
|
|
parse_frontmatter, AtomKind, AtomMeta, Frontmatter, Lineage, SideEffect, TaxonomyFacets,
|
|
MAX_FRONTMATTER_BYTES,
|
|
};
|
|
pub use path_safety::safe_join;
|
|
pub use walk::{discover_atoms, split_atom_id};
|
|
pub use wikilink::{classify_wikilink, is_atom_target, parse_wikilink, WikilinkTarget};
|