chore: bootstrap marqdo-knowledge crate, CLI surface and architecture docs

- pin Rust 2021 / MSRV 1.89 and exact dependency versions
- add typed model vocabulary (UTF-8 spans, canonical JSON-array node keys,
  node/edge/state enums, digest helpers) with unit tests
- add deterministic diagnostics and unified error/exit semantics (0/1/2)
- add the three-command clap surface with strict argument validation
- record the single-derived-artifact decision, architecture overview and
  current public contract; STATUS lists real evidence only
This commit is contained in:
marqdo-knowledge committed 2026-11-25 22:24:51 +08:00
1 parent fbca63b972
commit 430f950631
19 files changed
+2945

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
//! `marqdo-knowledge` public library surface.
//!
//! The binary is a thin wrapper: [`run`] parses argv, dispatches the internal
//! layers and returns the process exit code. Library consumers (tests,
//! independent protocol consumers) use this crate's public modules; no module
//! exposes a second query or Analysis contract.
pub mod cli;
pub mod compiler;
pub mod diagnostic;
pub mod error;
pub mod model;
pub mod query;
/// Run the command line. Returns the process exit code (0/1/2).
pub fn run() -> i32 {
cli::run()
}