Files
marqdo-extension-conformance/pure-lib/README.md
T
2026-11-21 23:08:00 +08:00

21 lines
895 B
Markdown

# demo-pure-lib — external `.mq.md` package
A standalone Marqdo package with three modules and cross-module calls:
```
index.mq.md ──import──> arithmetic.mq.md ──import──> base.mq.md
└───────import──> labels.mq.md
```
Exports (H2 `@exec` functions in the package root module, callable by the
consumer through its dependency alias):
* `加倍(x: Int) -> Int` — calls `arith.加倍`, which calls `base.add`.
* `标签(数: Int) -> Text` — calls `labels.标签`, which branches on `数 > 0`.
No resource access, no plugin, no foreign kernel: this is the "pure library"
leg of the conformance suite. `tests/test_positive.py` commits **this directory**
into a temporary Git repository, pins the full commit SHA in a generated
consumer manifest, and then exercises `marqdo lock`, `sync`, `check`, `run`,
offline cache reuse and project relocation.