Unify frontmatter imports as import bind:target and drop > imports.

`import json:lib/json.mq.md` binds file libraries; `import fmt:time.format`
binds member short names (replaces `> use`). Legacy `> path.mq.md` / `> use`
now hard-error with a hint. Migrates repo docs, skills, ext, lib, public, examples,
man-test and tests; adds a negative gold and updates view/catalog rendering.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-13 10:03:21 +08:00
1 parent 56b9bfa5a3
commit ecc92f473a
163 files changed
+577 -593

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/foreign — external languages
description: Run local interpreters from Marqdo (English)
> lib/foreign.mq.md
import foreign:lib/foreign.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/fs — files
description: Read and write text under the sandbox
> lib/fs.mq.md
import fs:lib/fs.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/json — JSON
description: Shared EN/ZH path; parse and stringify
> lib/json.mq.md
import json:lib/json.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/math — numbers, formulas, plots
description: High-school math stdlib (English)
> lib/math.mq.md
import math:lib/math.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/net — HTTP(S)
description: Minimal HTTP(S) client and URL encode
> lib/net.mq.md
import net:lib/net.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/plugin — native ABI
description: Load optional shared libraries (.dll / .so / .dylib)
> lib/plugin.mq.md
import plugin:lib/plugin.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/subtask — concurrent tasks
description: Spawn file, function, or foreign code in parallel
> lib/subtask.mq.md
import subtask:lib/subtask.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/sys — process
description: Env, dotenv, cwd, args, exit, exec
> lib/sys.mq.md
import sys:lib/sys.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/table — collections
description: put, append, and map helpers
> lib/table.mq.md
import table:lib/table.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/text — strings
description: Trim, split, join wrappers
> lib/text.mq.md
import text:lib/text.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/time — clock
description: Unix time, format, parse, sleep
> lib/time.mq.md
import time:lib/time.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/writeback — Jupyter-style writeback
description: Persist run output in the entry .mq.md file
> lib/writeback.mq.md
import writeback:lib/writeback.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/外联 — 外部语言
description: 从 Marqdo 调用本机解释器(中文)
> lib/外联.mq.md
导入 外联:lib/外联.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/子任务 — 并发子任务
description: 文件、函数或外联代码并行执行
> lib/子任务.mq.md
导入 子任务:lib/子任务.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/插件 — 原生 ABI
description: 加载可选共享库(.dll / .so / .dylib)
> lib/插件.mq.md
导入 插件:lib/插件.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/数学 — 数值、公式、作图
description: 高中数学标准库(中文)
> lib/数学.mq.md
导入 数学:lib/数学.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/文件 — 文件系统
description: 沙箱内读写文本
> lib/文件.mq.md
导入 文件:lib/文件.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/文本 — 字符串
description: 去空白、拆分、拼接
> lib/文本.mq.md
导入 文本:lib/文本.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/时间 — 时钟
description: Unix 时间、格式化、解析、睡眠
> lib/时间.mq.md
导入 时间:lib/时间.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/系统 — 进程
description: 环境变量、dotenv、工作目录、参数、退出、执行
> lib/系统.mq.md
导入 系统:lib/系统.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/网络 — HTTP
description: HTTP(S) 与地址编码
> lib/网络.mq.md
导入 网络:lib/网络.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/自写回 — Jupyter 式写回
description: 把运行结果写回入口 .mq.md
> lib/自写回.mq.md
导入 自写回:lib/自写回.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: lib/表 — 列表
description: 行数与取行
> lib/表.mq.md
导入 表:lib/表.mq.md
---
# main