Replace text diagram with Mermaid flowchart in README

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-24 23:43:14 +00:00
parent aec161533f
commit 596372b78d

View File

@@ -21,15 +21,13 @@ programmatic/LLM consumption.
## Architecture ## Architecture
``` ```mermaid
tokenize(text) generic S-expression tokenizer flowchart TD
parse_sexp(text) builds { tag, items[] } tree A["tokenize(text)"] --> B["parse_sexp(text)\n{ tag, items[] } tree"]
B --> C["run_query(ext, query, root, args)\nfile-type + query dispatch"]
C --> D["plain data object"]
run_query(ext, query, root, args) file-type + query dispatch → plain data object D --> E["render_human(ext, query, data)\nformatted tables for terminal"]
D --> F["render_json(data)\nJSON.stringify for LLM / scripts"]
├── render_human(ext, query, data) formatted tables for terminal
└── render_json(data) JSON.stringify for LLM / scripts
``` ```
Query functions are pure data transformers — no I/O, no format awareness. Query functions are pure data transformers — no I/O, no format awareness.