feat(parse): use nested YAML import: maps instead of one-liner binds

Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target
entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the
old one-liner form, and migrate lib/ext/examples/tests/docs accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-10-23 19:33:58 +08:00
1 parent 8bbe017a5e
commit 687c168014
364 files changed
+1870 -1004

No files matched your search

+2 -1
View File
@@ -2,7 +2,8 @@
markup: occlusion
title: lib/foreign — foreign kernels v2
description: Structured execution, JSON calls, parallel fan-out, persistent kernels and an explicit state bridge
import foreign:lib/foreign.mq.md
import:
foreign: lib/foreign.mq.md
stdin: 21
---
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/fs — files
description: Read and write text under the sandbox
import fs:lib/fs.mq.md
import:
fs: lib/fs.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/json — JSON
description: Shared EN/ZH path; parse and stringify (code-as-docs pilot)
import json:lib/json.mq.md
import:
json: lib/json.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/math — numbers, formulas, plots
description: High-school math stdlib (English)
import math:lib/math.mq.md
import:
math: lib/math.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/net — HTTP(S)
description: Minimal HTTP(S) client and URL encode
import net:lib/net.mq.md
import:
net: lib/net.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/plugin — native ABI
description: Load optional shared libraries (.dll / .so / .dylib)
import plugin:lib/plugin.mq.md
import:
plugin: lib/plugin.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/subtask — concurrent tasks
description: Spawn file, function, or foreign code in parallel
import subtask:lib/subtask.mq.md
import:
subtask: lib/subtask.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/sys — process
description: Env, dotenv, cwd, args, exit, exec
import sys:lib/sys.mq.md
import:
sys: lib/sys.mq.md
---
# main
+2 -1
View File
@@ -2,7 +2,8 @@
markup: occlusion
title: lib/table — collections
description: put, append, and map helpers (code-as-docs pilot)
import table:lib/table.mq.md
import:
table: lib/table.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/text — strings
description: Trim, split, join (code-as-docs pilot)
import text:lib/text.mq.md
import:
text: lib/text.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/time — clock
description: Unix time, format, parse, sleep
import time:lib/time.mq.md
import:
time: lib/time.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/writeback — Jupyter-style writeback
description: Persist run output in the entry .mq.md file
import writeback:lib/writeback.mq.md
import:
writeback: lib/writeback.mq.md
---
# main
+2 -1
View File
@@ -2,7 +2,8 @@
markup: occlusion
title: lib/外联 — 外联内核 v2
description: 结构化执行、JSON 调用、并行扇出、持久内核与显式状态桥
导入 外联:lib/外联.mq.md
导入:
外联: lib/外联.mq.md
stdin: 21
---
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/子任务 — 并发子任务
description: 文件、函数或外联代码并行执行
导入 子任务:lib/子任务.mq.md
导入:
子任务: lib/子任务.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/插件 — 原生 ABI
description: 加载可选共享库(.dll / .so / .dylib)
导入 插件:lib/插件.mq.md
导入:
插件: lib/插件.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/数学 — 数值、公式、作图
description: 高中数学标准库(中文)
导入 数学:lib/数学.mq.md
导入:
数学: lib/数学.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/文件 — 文件系统
description: 沙箱内读写文本
导入 文件:lib/文件.mq.md
导入:
文件: lib/文件.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/文本 — 字符串
description: 去空白、拆分、拼接(代码即文档试点)
导入 文本:lib/文本.mq.md
导入:
文本: lib/文本.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/时间 — 时钟
description: Unix 时间、格式化、解析、睡眠
导入 时间:lib/时间.mq.md
导入:
时间: lib/时间.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/系统 — 进程
description: 环境变量、dotenv、工作目录、参数、退出、执行
导入 系统:lib/系统.mq.md
导入:
系统: lib/系统.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/网络 — HTTP
description: HTTP(S) 与地址编码
导入 网络:lib/网络.mq.md
导入:
网络: lib/网络.mq.md
---
# main
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: lib/自写回 — Jupyter 式写回
description: 把运行结果写回入口 .mq.md
导入 自写回:lib/自写回.mq.md
导入:
自写回: lib/自写回.mq.md
---
# main
+2 -1
View File
@@ -2,7 +2,8 @@
markup: occlusion
title: lib/表 — 列表与字典
description: 改 / 行数 / 取行(代码即文档试点)
导入 表:lib/表.mq.md
导入:
表: lib/表.mq.md
---
# main