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

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

范围

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

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

验证

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

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

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

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

Refs cflmy/marqdo#9, cflmy/marqdo-ext-regex#1
cflmy merged commit 6e7e633798 into main 2026-11-27 00:09:00 +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-regex#2