Commit Graph
4 Commits
Author SHA1 Message Date
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 f2f3b38eca feat(discovery): deterministic source snapshot with explicit boundaries
- resolve explicit dir/file roots, reject symlink roots and unsafe --exclude
  globs; keep the database at <root>/.marqdo/knowledge.sqlite
- walk without following symlinks, skip .git/.marqdo/target/node_modules and
  hidden entries, sort by byte-wise root-relative path
- read exact UTF-8 bytes with per-file/total/document budgets and digest
  based source-change detection before publishing
- record marqdo.yaml/marqdo.lock and referenced local assets as inputs;
  asset digests are bounded and never full-text indexed
- add validate_relative_path/resolve_link_path/safe_join primitives with
  traversal, drive/UNC, NUL and escape tests
2026-11-25 22:29:42 +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
cflmy fbca63b972 init 2026-11-25 09:11:56 +08:00