migrate: own the io/console/stream/format modules and keep the official print alias target #2

Merged
cflmy merged 1 commits from migration/stdlib-io into main 2026-11-26 23:58:09 +08:00
Owner

范围

父仓工单 cflmy/marqdo#9 中 marqdo-std-io 的迁移交付:把 CLI 官方标准库相关模块与断言迁入本仓作为唯一源码权威;不改 CLI 核心、Host 或语言语义。

  • 冻结路径保持原样(std:format、std:io、std:io/console、std:io/stream);io.mq.md#写值 仍是官方 print/打印 的别名目标。
  • io/stream 的 stdout 逐字对齐原产品断言;console case 增加真实 resource.read 事件检查。
  • 不接管 stdlib.json 的 alias 元数据,由根 Bundle 生产者生成。

Bundle 与 stdlib.json 由根唯一生产者生成,本仓不维护第二份官方 manifest。

验证

  • 基线 Bundle /root/work/marqdo/cli/stdlib + 候选 CLI(issue #11 Phase A 合并 master,f8b82d4 构建)捕获期望并对照原产品断言。
  • staging Bundle(基线 Bundle 覆盖本仓 modules/ 后重算 digest)sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713。
  • MARQDO_BIN=<候选> MARQDO_STDLIB_DIR=<staging> scripts/test.sh 结果:
PASS console
PASS format
PASS io
PASS stream
4 cases passed

原断言对照

见 tests/cases/*.json,期望终值取自迁移前基线真实执行结果。

Refs cflmy/marqdo#9, cflmy/marqdo-std-io#1

迁移候选,待根组合验收;不声称已集成或已发布。

## 范围 父仓工单 cflmy/marqdo#9 中 `marqdo-std-io` 的迁移交付:把 CLI 官方标准库相关模块与断言迁入本仓作为唯一源码权威;不改 CLI 核心、Host 或语言语义。 - 冻结路径保持原样(`std:format`、`std:io`、`std:io/console`、`std:io/stream`);`io.mq.md#写值` 仍是官方 print/打印 的别名目标。 - `io`/`stream` 的 stdout 逐字对齐原产品断言;`console` case 增加真实 `resource.read` 事件检查。 - 不接管 `stdlib.json` 的 alias 元数据,由根 Bundle 生产者生成。 Bundle 与 `stdlib.json` 由根唯一生产者生成,本仓不维护第二份官方 manifest。 ## 验证 - 基线 Bundle `/root/work/marqdo/cli/stdlib` + 候选 CLI(issue #11 Phase A 合并 master,`f8b82d4` 构建)捕获期望并对照原产品断言。 - staging Bundle(基线 Bundle 覆盖本仓 `modules/` 后重算 digest)`sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713`。 - `MARQDO_BIN=<候选> MARQDO_STDLIB_DIR=<staging> scripts/test.sh` 结果: ``` PASS console PASS format PASS io PASS stream 4 cases passed ``` ## 原断言对照 见 `tests/cases/*.json`,期望终值取自迁移前基线真实执行结果。 Refs cflmy/marqdo#9, cflmy/marqdo-std-io#1 迁移候选,待根组合验收;不声称已集成或已发布。
cflmy added 1 commit 2026-11-26 23:30:28 +08:00
Move the official stdlib IO modules to their unique source authority and keep
the frozen public paths, including io.mq.md#写值 as the official print/打印 alias
target. Carry the pre-migration product assertions into component cases with
real resource-endpoint evidence for console.

Refs cflmy/marqdo#9, cflmy/marqdo-std-io#1
cflmy merged commit e18b0b1b40 into main 2026-11-26 23:58:09 +08:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cflmy/marqdo-std-io#2