migrate: publish the HTTP domain module as an explicit package #2

Merged
cflmy merged 1 commits from migration/ext-http into main 2026-11-27 00:08:58 +08:00
Owner

范围

父仓工单 cflmy/marqdo#9 中 marqdo-ext-http 的迁移:把原 CLI 默认标准库中的领域模块迁入本仓,按现行 显式 Package 布局公开,退出默认 Bundle。

  • index.mq.md:唯一公开入口(Package entry),函数体来自迁移前源码;相对 import 改为公开 std:text/utf8。
  • tests/:原领域测试源,导入从 std:net/http 改为公开 @http;期望终值取迁移前基线真实执行结果。
  • scripts/test.sh + 临时消费者工程:marqdo lock 后经 @alias 公开导入执行,只接受显式 MARQDO_BIN/MARQDO_STDLIB_DIR。
  • 不提供 std: 旧路径,不保留 fallback,不新增 Host 请求。

验证

  • 基线(迁移前)终值已捕获并写入 tests/cases/http.json。
  • 独立 runner(候选 CLI + 基线 Bundle):
PASS http
1 cases passed
  • 迁移后语义应与基线一致;本 PR 为迁移候选,待根组合验收。

Refs cflmy/marqdo#9, cflmy/marqdo-ext-http#1

迁移候选,不声称已集成。

## 范围 父仓工单 cflmy/marqdo#9 中 `marqdo-ext-http` 的迁移:把原 CLI 默认标准库中的领域模块迁入本仓,按现行 **显式 Package** 布局公开,退出默认 Bundle。 - `index.mq.md`:唯一公开入口(Package entry),函数体来自迁移前源码;相对 import 改为公开 `std:text/utf8`。 - `tests/`:原领域测试源,导入从 `std:net/http` 改为公开 `@http`;期望终值取迁移前基线真实执行结果。 - `scripts/test.sh` + 临时消费者工程:`marqdo lock` 后经 `@alias` 公开导入执行,只接受显式 `MARQDO_BIN`/`MARQDO_STDLIB_DIR`。 - 不提供 `std:` 旧路径,不保留 fallback,不新增 Host 请求。 ## 验证 - 基线(迁移前)终值已捕获并写入 `tests/cases/http.json`。 - 独立 runner(候选 CLI + 基线 Bundle): ``` PASS http 1 cases passed ``` - 迁移后语义应与基线一致;本 PR 为迁移候选,待根组合验收。 Refs cflmy/marqdo#9, cflmy/marqdo-ext-http#1 迁移候选,不声称已集成。
cflmy added 1 commit 2026-11-27 00:07:54 +08:00
Move the pre-migration net/http.mq.md content into this repository's package
entry, replacing the bundle-relative utf8 import with the public std:text/utf8
dependency. The module leaves the default Bundle and is consumed through the
explicit @http package import; the original domain test and its baseline
terminal value are carried over unchanged.

Refs cflmy/marqdo#9, cflmy/marqdo-ext-http#1
cflmy merged commit 368b33d241 into main 2026-11-27 00:08:58 +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-ext-http#2