M0 of cflmy/marqdo#9: the root ledger now records the verified baseline, the 151 public functions of the 20 pre-migration modules, the frozen Bundle-root paths, the test/assertion ownership and the decisions that replace the earlier path-plan (which would have changed public std: imports). Nine receiving-repo sub-issues are linked. One producer owns Bundle composition from the exact component gitlinks (scripts/build-stdlib.py + scripts/stdlib-bundle.json): it publishes only modules/**/*.mq.md of active stdlib components, rejects symlinks, submodules, case/NFC collisions, tests/ and unsafe paths, generates the current stdlib.json digest and requires an explicit version bump when content changes. scripts/acceptance-stdlib.py is the root composition gate with explicit --cli/--bundle inputs: it verifies the manifest independently, runs each active component entry, runs the cross-repository composition fixtures (official aliases, Table split, default-Bundle smoke), enforces fail-closed negatives and optionally proves deterministic packaging with the CLI packer. Contract tests build real temporary Git repositories and cover the gitlink identity path, determinism, all rejection cases and the explicit version bump. Refs cflmy/marqdo#9
29 lines
618 B
Markdown
29 lines
618 B
Markdown
---
|
|
import:
|
|
io: "std:io"
|
|
format: "std:format"
|
|
json: "std:data/json"
|
|
text_lib: "std:text"
|
|
utf8: "std:text/utf8"
|
|
path: "std:path"
|
|
datetime: "std:datetime"
|
|
---
|
|
|
|
# @exec bundle
|
|
|
|
## main
|
|
|
|
**内存 = memory.new(1, 4)**
|
|
|
|
**长度 = text_lib.utf8编码("é", 内存, 0)**
|
|
|
|
**解码 = utf8.解码(内存, 0, 长度)**
|
|
|
|
**对象 = json.解析("[1, 2]")**
|
|
|
|
**时间 = datetime.格式化(1795248000123)**
|
|
|
|
> **io.写值("default-bundle")**
|
|
|
|
`return [长度, 内存[0], 内存[1], 解码.value, format.显示(["ok", 3]), json.格式化(对象.value), path.连接(["a", "b", "c"]), 时间, format.字节长度("é")]`
|