Files
marqdo-ext-archive/README.md
cflmy aba6b60934 migrate: own the gzip domain module as an explicit package
Move the pre-migration compress.mq.md content into this repository's package
entry. The module leaves the default Bundle and is consumed through the
explicit @compress package import; the baseline gzip/gunzip behaviour and the
original test terminal value are preserved, and the CLI host ops stay put.

Refs cflmy/marqdo#9, cflmy/marqdo-ext-archive#1
2026-11-27 00:08:16 +08:00

45 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# marqdo-ext-archive
本仓负责gzip 压缩/解压(显式 Package)。当前处于**标准库源码归位迁移**阶段:领域模块已迁入本仓作为显式 Package,等待父仓候选组合验收(父仓工单 [marqdo#9](https://git.cflmy.cn/cflmy/marqdo/issues/9),本仓工单 [#1](https://git.cflmy.cn/cflmy/marqdo-ext-archive/issues/1))。
## 现行形态:显式 Package,不进入默认 Bundle
- 入口:`index.mq.md`(`marqdo.yaml` 声明 package)。
- 消费者声明依赖并用公开 `@alias` 导入:
```yaml
# consumer/marqdo.yaml
dependencies:
compress:
git: https://git.cflmy.cn/cflmy/marqdo-ext-archive
rev: <精确提交>
```
```markdown
---
import:
compress: "@compress"
---
## @exec main
`return compress.<函数>(...)`
```
- 不再以 `std:compress` 提供,不保留隐藏 fallback;默认标准库 Bundle 不包含本模块。
- 测试:`scripts/test.sh` 只接受 `MARQDO_BIN` + `MARQDO_STDLIB_DIR`,用临时消费者工程经 `marqdo lock` 与 `@alias` 公开导入执行。
`index.mq.md`:原 `compress.mq.md` 的 gzip/gunzip 文档函数,公开为 Package 入口(消费者通过 `@compress` 导入)
## 边界
不进入默认 Bundle,不提供 `std:compress`;CLI 既有 `compress.gzip/gunzip` Host 请求与 flate2 依赖保留;不开发新的 ZIP/TAR 后端。保留 Text 与字节列表形状、8 MiB 限制、损坏输入与解压上限行为。
## 目录
- `index.mq.md`:Package 入口与唯一公开入口。
- `tests/`:迁入的领域测试源与期望。
- `scripts/`:独立验收入口。
[生态迁移台账](https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/MIGRATION.md) · [开发流程](https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/DEVELOPMENT.md)