KeiSeiKit-1.0/_primitives/_rust/kei-artifact/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

26 lines
950 B
Rust

//! kei-artifact — typed artifact handoff store.
//!
//! Constructor Pattern: one concern per file.
//! - `schema` — SQL DDL + schema registry table.
//! - `store` — `Store` cube (Connection wrapper).
//! - `hash` — sha256 artifact id helper.
//! - `schemas` — built-in schema registration (spec/plan/patch/review/research).
//! - `validate` — minimal JSON Schema (strict subset of draft 2020-12).
//! - `artifact` — CRUD on `artifacts` table (emit / get / list / chain).
//! - `export` — v0.16 schema-registry export for the assembler.
//!
//! Storage path (CLI default): `~/.claude/artifacts/artifacts.sqlite` or
//! `$KEI_ARTIFACT_DB`.
pub mod artifact;
pub mod export;
pub mod hash;
pub mod schema;
pub mod schemas;
pub mod store;
pub mod validate;
pub use artifact::{Artifact, ArtifactFilter};
pub use hash::artifact_id;
pub use store::Store;
pub use validate::{validate_content, warn_unsupported_keywords};