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,4 +1,4 @@
---
---
title: 分支示例
---
+1 -1
View File
@@ -1,4 +1,4 @@
---
---
title: 集合(表格)示例
---
+2 -2
View File
@@ -1,7 +1,7 @@
---
title: import official lib (Chinese)
> lib/文本.mq.md
> lib/表.mq.md
导入 文本:lib/文本.mq.md
导入 表:lib/表.mq.md
---
# main
+2 -2
View File
@@ -1,6 +1,6 @@
---
---
title: 跨文件导入示例
> utils.mq.md
import utils:utils.mq.md
---
# main
+1 -1
View File
@@ -1,4 +1,4 @@
---
---
title: 工具函数
description: 供 frontmatter > 导入;返回用粗体;副作用用输出函数
---
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: inherit explicit parent constructor
> lib/json.mq.md
import json:lib/json.mq.md
---
# Parent
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: inherit parent method
> lib/json.mq.md
import json:lib/json.mq.md
---
# Greeter
+1 -1
View File
@@ -1,4 +1,4 @@
---
---
title: 循环示例
---
+1 -1
View File
@@ -1,4 +1,4 @@
---
---
title: Hello World
description: Recommended entry — nested fn; print builtin; bold return
---
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: three-segment library path
> helpers.mq.md
import helpers:helpers.mq.md
---
# main
+2 -2
View File
@@ -1,7 +1,7 @@
---
title: frontmatter use short name
> lib/text.mq.md
> use text.str_trim as trim_text
import text:lib/text.mq.md
import trim_text:text.str_trim
---
# main
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: object handle smoke
> lib/json.mq.md
import json:lib/json.mq.md
---
# counter