diff --git a/crates/cli/tests/stdlib_product.rs b/crates/cli/tests/stdlib_product.rs index 7a0457f..f52ffe9 100644 --- a/crates/cli/tests/stdlib_product.rs +++ b/crates/cli/tests/stdlib_product.rs @@ -88,6 +88,7 @@ fn every_public_stdlib_module_has_a_product_test() { names, vec![ "console.mq.md", + "demo.mq.md", "format.mq.md", "http.mq.md", "io.mq.md", diff --git a/docs/STATUS.md b/docs/STATUS.md index b4994e2..a7b59bc 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -224,7 +224,7 @@ This is still a **local VM lane**, not a self-hosted GitHub Actions security URL status/index links and SHA-pinned evidence; `crates/cli/tests/architecture_boundaries.rs` pins the workspace graph, `marqdo-runtime -> marqdo-host`, the bundled stdlib digest and the stdio/file/TCP endpoints; `crates/cli/tests/stdlib_product.rs` - runs every public stdlib module (`console/format/http/io/stream/table/text/utf8`) + runs every public stdlib module (`console/demo/format/http/io/stream/table/text/utf8`) through `std:` imports over `stdlib/tests/*.mq.md`. `tools/pack-stdlib.py` now sorts `.mq.md` by the same relative path key as the CLI. Source baseline `04eae87`; later docs-only commits keep the code byte-identical. Evidence: diff --git a/docs/evidence/2026-11-21-docs-and-test-migration.md b/docs/evidence/2026-11-21-docs-and-test-migration.md index ad7c62d..2d72c22 100644 --- a/docs/evidence/2026-11-21-docs-and-test-migration.md +++ b/docs/evidence/2026-11-21-docs-and-test-migration.md @@ -62,6 +62,7 @@ the verified bundle: | Test | Public module | |---|---| | `console.mq.md` | `std:io/console` | +| `demo.mq.md` | `std:demo` | | `format.mq.md` | `std:format` | | `http.mq.md` | `std:net/http` | | `io.mq.md` | `std:io` | diff --git a/stdlib/README.md b/stdlib/README.md index 25a3fda..19990cc 100644 --- a/stdlib/README.md +++ b/stdlib/README.md @@ -14,7 +14,7 @@ module; a mismatch is a hard error. - `data/table.mq.md` — value-returning table select/filter/sort/append/set/join/group/GFM - `net/http.mq.md` — HTTP/1.1 response parsing (headers/chunked) and request builder - `tests/` — product self-tests for every public module - (`console`, `format`, `http`, `io`, `stream`, `table`, `text`, `utf8`) + (`console`, `demo`, `format`, `http`, `io`, `stream`, `table`, `text`, `utf8`) The digest is a SHA-256 over sorted `*.mq.md` relative paths, a NUL, file bytes, and a NUL. It excludes `stdlib.json` and non-`.mq.md` files. After any diff --git a/stdlib/stdlib.json b/stdlib/stdlib.json index a4550a5..cd8af1e 100644 --- a/stdlib/stdlib.json +++ b/stdlib/stdlib.json @@ -1,5 +1,5 @@ { "name": "marqdo-stdlib", "version": "0.1.0", - "digest": "sha256:86edd79cb84057dba847cc66136a6d6a647d44ea889fff537bd8d162707a3285" + "digest": "sha256:91f1f76daf694efac0c4d8c937d2b2f61d07efd8c105ce407e55690e0a3ad2f5" } diff --git a/stdlib/tests/demo.mq.md b/stdlib/tests/demo.mq.md new file mode 100644 index 0000000..3508655 --- /dev/null +++ b/stdlib/tests/demo.mq.md @@ -0,0 +1,8 @@ +--- +import: + demo: "std:demo" +--- + +## main + +*demo.演示函数()*