Commit Graph
3 Commits
Author SHA1 Message Date
marqdo-knowledge 66f3e168c4 feat(compiler): end-to-end compile and check orchestration
- resolve scope, discover exact snapshot, project plain Markdown, run real
  Analysis for .mq.md entries, cross-check module source bytes, merge contexts
  and reject uncovered/invalid Marqdo documents
- collect referenced local assets and known-missing paths before linking so a
  missing file is distinguished from an unindexed/excluded one
- incremental plan by content-digest change set: unchanged documents reuse
  digest-guarded facts; any .mq.md/manifest/lock/core-identity change triggers
  the conservative full re-analysis; plain-only edits never invoke Analysis
- no-op compiles preserve the stored snapshot and generation; rebuilds
  increment the generation and atomically replace the artifact
- recheck every source digest immediately before publishing, never mixing
  snapshots, and refuse to publish graphs with blocking diagnostics
- check validates sources, references, Analysis coverage, database structure
  and currentness, writes nothing and exits 1 for definite broken links
- add end-to-end tests for plain-only compile without a core binary, mixed
  real-Analysis compile, incremental/rebuild/no-op, stale database and broken
  links
2026-11-26 01:21:29 +08:00
marqdo-knowledge 682717a610 feat(document): normalized AST and plain Markdown projection
- add the closed normalized AST shape shared by the plain projection and
  upstream Analysis, with required-attribute, UTF-8 span and depth validation
- parse plain .md with pinned comrak 1.0.0 fixed options (GFM tables,
  footnotes, task lists, strikethrough, autolink, dollar math, front matter)
- convert parser line/column positions to exact half-open byte spans and keep
  BOM/CRLF/CJK byte identity
- build heading units (complete section spans, parents, occurrence-indexed
  duplicate paths), fixed-rule anchors, raw link facts and searchable blocks
- parse front matter as bounded YAML to JSON with alias/depth/size rejection
  while preserving the raw literal; plain @exec text stays inert
- add shared DocumentFacts vocabulary with serde caching shape
2026-11-26 00:11:30 +08:00
marqdo-knowledge 430f950631 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
2026-11-25 22:24:51 +08:00