Files
marqdo-std-data/README.md
T
cflmy 848af7a357 migrate: own JSON/CSV and Table serialization; drop the value algorithms
Move JSON, CSV and the Table serialization half of the frozen module to their
unique source authority. Value operations now live only in std-collections;
there is no second implementation or legacy forwarder. Baseline JSON/CSV and
Table GFM expectations are carried into component cases.

Refs cflmy/marqdo#9, cflmy/marqdo-std-data#1
2026-11-26 23:32:22 +08:00

38 lines
1.9 KiB
Markdown
Raw 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-std-data
本仓负责 JSON、CSV 与 GFM 数据交换。当前处于**标准库源码归位迁移**阶段:JSON/CSV 与 Table 序列化源码、断言已迁入本仓,等待父仓候选组合验收(父仓工单 [marqdo#9](https://git.cflmy.cn/cflmy/marqdo/issues/9),本仓工单 [#1](https://git.cflmy.cn/cflmy/marqdo-std-data/issues/1))。
## 唯一公开入口(Bundle 根相对路径)
| 发布路径 | 公开导入 | 职责 |
| --- | --- | --- |
| `data/json.mq.md` | `std:data/json` | 递归 JSON 解析/格式化(128 层上限、多值) |
| `data/csv.mq.md` | `std:data/csv` | 引号单行/多行 CSV 解析与格式化 |
| `data/table.mq.md` | `std:data/table` | Table 序列化:`连接片段`、`连接行`、`转义单元格`、`转GFM` |
**职责切分(本迁移内冻结)**:Table 值操作归 `std:collections/table`,本仓只保留序列化;不复制集合算法,不保留旧入口兼容转发。跨模块组合断言由根 Bundle 组合测试承担。
`modules/` 保存 Bundle 根相对路径;Bundle 与 `stdlib.json` 由父仓唯一生产者生成,本仓不维护第二份官方 manifest。
## 目录
- `modules/`:对外发布的模块源码。
- `tests/`:迁入的自测源与 `tests/cases/` 期望。
- `scripts/`:独立验收入口。
## 独立验收
```sh
MARQDO_BIN=/path/to/verified/marqdo \
MARQDO_STDLIB_DIR=/path/to/installed/bundle \
scripts/test.sh
```
期望值取自迁移前基线 Bundle 的真实执行(JSON/CSV 分项断言、Table GFM 输出);修改期望值等于声明公开行为变化,必须单独评审。
## 边界
不实现语言内核、Host 权限、集合算法或数据库接口;GFM 序列化只复用自身转义/连接函数。
[生态迁移台账](https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/MIGRATION.md) · [开发流程](https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/DEVELOPMENT.md)