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

+3 -3
View File
@@ -1,9 +1,9 @@
---
title: agent inspect_workbook (offline)
description: Parse named writeback slots from a fixture workbook path.
> ext/ai/agent.mq.md
> lib/json.mq.md
> lib/fs.mq.md
import agent:ext/ai/agent.mq.md
import json:lib/json.mq.md
import fs:lib/fs.mq.md
---
# main
+5 -5
View File
@@ -1,11 +1,11 @@
---
title: OKF agent-kb alias lookup (offline)
description: Promote resource; patch Task aliases; variant goal hits same resource.
> ext/ai/agent.mq.md
> lib/fs.mq.md
> lib/json.mq.md
> lib/plugin.mq.md
> lib/sys.mq.md
import agent:ext/ai/agent.mq.md
import fs:lib/fs.mq.md
import json:lib/json.mq.md
import plugin:lib/plugin.mq.md
import sys:lib/sys.mq.md
---
# main
+5 -5
View File
@@ -1,11 +1,11 @@
---
title: OKF agent-kb near_match (offline)
description: Promote trip resource; near-dupe goals hit match=near; unrelated misses.
> ext/ai/agent.mq.md
> lib/fs.mq.md
> lib/json.mq.md
> lib/plugin.mq.md
> lib/sys.mq.md
import agent:ext/ai/agent.mq.md
import fs:lib/fs.mq.md
import json:lib/json.mq.md
import plugin:lib/plugin.mq.md
import sys:lib/sys.mq.md
---
# main
+6 -6
View File
@@ -1,12 +1,12 @@
---
title: OKF agent-kb promote + lookup + spawn (offline)
description: Promote a solidified workbook, lookup by goal, spawn without parent LLM.
> ext/ai/agent.mq.md
> lib/fs.mq.md
> lib/json.mq.md
> lib/subtask.mq.md
> lib/plugin.mq.md
> lib/sys.mq.md
import agent:ext/ai/agent.mq.md
import fs:lib/fs.mq.md
import json:lib/json.mq.md
import subtask:lib/subtask.mq.md
import plugin:lib/plugin.mq.md
import sys:lib/sys.mq.md
---
# main
+4 -4
View File
@@ -1,10 +1,10 @@
---
title: Parent CALL:lib whitelist (offline)
description: lib.fs.exists + ARGS; reject lib.net; catalog callable.
> ext/ai/agent.mq.md
> lib/json.mq.md
> lib/fs.mq.md
> lib/sys.mq.md
import agent:ext/ai/agent.mq.md
import json:lib/json.mq.md
import fs:lib/fs.mq.md
import sys:lib/sys.mq.md
---
# main
+4 -4
View File
@@ -1,10 +1,10 @@
---
title: agent plan confirm (offline)
description: Create workbook skeleton with confirm=True; no LLM spawn loop.
> ext/ai/llm.mq.md
> ext/ai/agent.mq.md
> lib/json.mq.md
> lib/fs.mq.md
import llm:ext/ai/llm.mq.md
import agent:ext/ai/agent.mq.md
import json:lib/json.mq.md
import fs:lib/fs.mq.md
---
# main
+3 -3
View File
@@ -1,9 +1,9 @@
---
title: agent plan decision + dual skeleton (offline)
description: extract_plan_decision/summary; dual skeleton contains research+writer; patch apply on fixture.
> ext/ai/agent.mq.md
> lib/json.mq.md
> lib/fs.mq.md
import agent:ext/ai/agent.mq.md
import json:lib/json.mq.md
import fs:lib/fs.mq.md
---
# main
+4 -4
View File
@@ -1,10 +1,10 @@
---
title: ext/agent plan live (DeepSeek)
description: Full plan loop — spawn workbook, inspect, secondary plan; simple pong goal.
> ext/ai/llm.mq.md
> ext/ai/agent.mq.md
> lib/json.mq.md
> lib/fs.mq.md
import llm:ext/ai/llm.mq.md
import agent:ext/ai/agent.mq.md
import json:lib/json.mq.md
import fs:lib/fs.mq.md
---
# main
+3 -3
View File
@@ -1,8 +1,8 @@
---
title: parent observation excerpt + deepen (offline)
> ext/ai/agent.mq.md
> lib/json.mq.md
> lib/fs.mq.md
import agent:ext/ai/agent.mq.md
import json:lib/json.mq.md
import fs:lib/fs.mq.md
---
# main
+4 -4
View File
@@ -1,10 +1,10 @@
---
title: agent plan stream helpers + confirm (offline)
description: plan_append_*/plan_finish_stream; confirm=True with stream attaches done event.
> ext/ai/llm.mq.md
> ext/ai/agent.mq.md
> lib/json.mq.md
> lib/fs.mq.md
import llm:ext/ai/llm.mq.md
import agent:ext/ai/agent.mq.md
import json:lib/json.mq.md
import fs:lib/fs.mq.md
---
# main
+5 -5
View File
@@ -1,11 +1,11 @@
---
title: ext/agent step (DeepSeek)
description: Real agent.step with tool via lib/subtask; default writeback to ok/error slots.
> lib/time.mq.md
> lib/writeback.mq.md
> lib/json.mq.md
> ext/ai/llm.mq.md
> ext/ai/agent.mq.md
import time:lib/time.mq.md
import writeback:lib/writeback.mq.md
import json:lib/json.mq.md
import llm:ext/ai/llm.mq.md
import agent:ext/ai/agent.mq.md
---
## 获取时间
+3 -3
View File
@@ -1,9 +1,9 @@
---
title: ext/agent framework smoke
description: Real llm handle from tests/ext/.env; context, extract_tool_name, run_tool via subtask.
> ext/ai/llm.mq.md
> lib/json.mq.md
> ext/ai/agent.mq.md
import llm:ext/ai/llm.mq.md
import json:lib/json.mq.md
import agent:ext/ai/agent.mq.md
---
## 获取时间
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: OKF soft_match protocol parse (offline)
description: REUSE/NEW + SLUG extractors; no network.
> ext/ai/agent.mq.md
> lib/json.mq.md
import agent:ext/ai/agent.mq.md
import json:lib/json.mq.md
---
# main
+2 -2
View File
@@ -1,7 +1,7 @@
---
title: fs text_patch / apply_patch_blocks (offline)
> lib/fs.mq.md
> lib/json.mq.md
import fs:lib/fs.mq.md
import json:lib/json.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: ext llm DeepSeek complete
description: OpenAI-compatible chat via DeepSeek. Credentials from tests/ext/.env.
> ext/ai/llm.mq.md
import llm:ext/ai/llm.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: llm constructor offline
description: Build llm handle from env + defaults; no network.
> ext/ai/llm.mq.md
import llm:ext/ai/llm.mq.md
---
# main
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: ext llm import
> ext/ai/llm.mq.md
import llm:ext/ai/llm.mq.md
---
# main
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: ext llm DeepSeek stream live
description: Live SSE complete with echo; credentials from tests/ext/.env.
> ext/ai/llm.mq.md
> lib/json.mq.md
import llm:ext/ai/llm.mq.md
import json:lib/json.mq.md
---
# main
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: llm stream_result offline
description: No network — SSE fixture via net.openai_sse_parse + llm.stream_result
> ext/ai/llm.mq.md
> lib/net.mq.md
import llm:ext/ai/llm.mq.md
import net:lib/net.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: quantum amplitude damping smoke
description: X then amplitude_damping p=1 returns all shots to |0>.
> ext/quantum/quantum.mq.md
import quantum:ext/quantum/quantum.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: quantum amplitude damping zh smoke
description: 泡利X 后 振幅阻尼 p=1 全部落回 |0⟩.
> ext/quantum/量子.mq.md
导入 量子:ext/quantum/量子.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: quantum author API smoke
description: barrier, measure, append, state, draw meters.
> ext/quantum/quantum.mq.md
import quantum:ext/quantum/quantum.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: quantum author API zh smoke
description: 屏障 / 测量 / 追加 / 态 / 绘图.
> ext/quantum/量子.mq.md
导入 量子:ext/quantum/量子.mq.md
---
# main
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: quantum bell smoke
description: H+CX Bell state probabilities ≈ 1/2 each.
> ext/quantum/quantum.mq.md
> lib/math.mq.md
import quantum:ext/quantum/quantum.mq.md
import math:lib/math.mq.md
---
# main
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: quantum custom gate from formula matrix
description: $$ H matrix $$ → gate matrix= → apply → probs match built-in H.
> ext/quantum/quantum.mq.md
> lib/math.mq.md
import quantum:ext/quantum/quantum.mq.md
import math:lib/math.mq.md
---
# main
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: quantum custom gate zh from formula
description: $$ 矩阵 $$ → 门 矩阵= → 施加.
> ext/quantum/量子.mq.md
> lib/math.mq.md
导入 量子:ext/quantum/量子.mq.md
import math:lib/math.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: quantum draw probs/bloch smoke
description: draw kind=probs and kind=bloch return matching kind tags.
> ext/quantum/quantum.mq.md
import quantum:ext/quantum/quantum.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: quantum gate matrix heatmap smoke
description: gate.draw kind=matrix writes SVG heatmap.
> ext/quantum/quantum.mq.md
import quantum:ext/quantum/quantum.mq.md
---
# main
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: quantum gate matches_matrix smoke
description: Named H matches an explicit 2x2 nested list.
> ext/quantum/quantum.mq.md
> lib/json.mq.md
import quantum:ext/quantum/quantum.mq.md
import json:lib/json.mq.md
---
# main
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: quantum gates + run smoke
description: Z sandwich, Ry(pi), seeded Bell run counts.
> ext/quantum/quantum.mq.md
> lib/math.mq.md
import quantum:ext/quantum/quantum.mq.md
import math:lib/math.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: quantum noise smoke
description: bitflip p=1 after I flips |0> to |1| for all shots.
> ext/quantum/quantum.mq.md
import quantum:ext/quantum/quantum.mq.md
---
# main
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: quantum noise zh smoke
description: 噪声 bitflip p=1 后 I 使全部射中 |1⟩.
> ext/quantum/量子.mq.md
导入 量子:ext/quantum/量子.mq.md
---
# main
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: quantum steps + draw smoke
description: steps= Bell table + draw SVG via record_plot.
> ext/quantum/quantum.mq.md
> lib/math.mq.md
import quantum:ext/quantum/quantum.mq.md
import math:lib/math.mq.md
---
# main
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: quantum zh API smoke
description: Chinese 量子.电路 泡利Z sandwich.
> ext/quantum/量子.mq.md
> lib/math.mq.md
导入 量子:ext/quantum/量子.mq.md
import math:lib/math.mq.md
---
# main
+3 -3
View File
@@ -1,9 +1,9 @@
---
title: web admin form-from-schema smoke
description: Schema-derived admin forms share validate/submit (offline).
> ext/web/web.mq.md
> web-fixtures/db/articles.mq.md as articles
> lib/json.mq.md
import web:ext/web/web.mq.md
import articles:web-fixtures/db/articles.mq.md
import json:lib/json.mq.md
---
# main
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: web form embed smoke
description: Offline page.compose_form embeds form in main HTML (no listen).
> ext/web/web.mq.md
> lib/json.mq.md
import web:ext/web/web.mq.md
import json:lib/json.mq.md
---
# main
+3 -3
View File
@@ -1,9 +1,9 @@
---
title: web form smoke
description: Offline form fields / validate / submit (no listen).
> ext/web/web.mq.md
> web-fixtures/db/articles.mq.md as articles
> lib/json.mq.md
import web:ext/web/web.mq.md
import articles:web-fixtures/db/articles.mq.md
import json:lib/json.mq.md
---
# main
+5 -5
View File
@@ -1,11 +1,11 @@
---
title: web part smoke
description: Routed pages stamp _route and emit {path}/_part/{id} slot sources.
> ext/web/web.mq.md
> web-fixtures/components/nav.mq.md
> web-fixtures/components/side.mq.md
> web-fixtures/components/foot.mq.md
> lib/json.mq.md
import web:ext/web/web.mq.md
import nav:web-fixtures/components/nav.mq.md
import side:web-fixtures/components/side.mq.md
import foot:web-fixtures/components/foot.mq.md
import json:lib/json.mq.md
---
# main
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: web route smoke
description: Offline app.route registration (no listen).
> ext/web/web.mq.md
> lib/json.mq.md
import web:ext/web/web.mq.md
import json:lib/json.mq.md
---
# main
+3 -3
View File
@@ -1,9 +1,9 @@
---
title: web db.select where smoke
description: Offline select with map and filter-table where (no listen).
> ext/web/web.mq.md
> web-fixtures/db/articles.mq.md as articles
> lib/json.mq.md
import web:ext/web/web.mq.md
import articles:web-fixtures/db/articles.mq.md
import json:lib/json.mq.md
---
# main
+8 -8
View File
@@ -1,14 +1,14 @@
---
title: web assemble smoke
description: Offline assemble + render markers (no listen).
> ext/web/web.mq.md
> web-fixtures/styles/shell.mq.md as shell
> web-fixtures/components/nav.mq.md as nav
> web-fixtures/components/side.mq.md as side
> web-fixtures/components/foot.mq.md as foot
> web-fixtures/db/articles.mq.md as articles
> lib/fs.mq.md
> lib/json.mq.md
import web:ext/web/web.mq.md
import shell:web-fixtures/styles/shell.mq.md
import nav:web-fixtures/components/nav.mq.md
import side:web-fixtures/components/side.mq.md
import foot:web-fixtures/components/foot.mq.md
import articles:web-fixtures/db/articles.mq.md
import fs:lib/fs.mq.md
import json:lib/json.mq.md
---
# main
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: web static smoke
description: Offline app.static registration (no listen).
> ext/web/web.mq.md
> lib/json.mq.md
import web:ext/web/web.mq.md
import json:lib/json.mq.md
---
# main
+6 -6
View File
@@ -1,12 +1,12 @@
---
title: web zh API smoke
description: Offline Chinese 网页.mq.md assemble (no listen).
> ext/web/网页.mq.md
> web-fixtures/components/nav.mq.md
> web-fixtures/components/side.mq.md
> web-fixtures/components/foot.mq.md
> web-fixtures/db/articles.mq.md as articles
> lib/json.mq.md
导入 网页:ext/web/网页.mq.md
import nav:web-fixtures/components/nav.mq.md
import side:web-fixtures/components/side.mq.md
import foot:web-fixtures/components/foot.mq.md
import articles:web-fixtures/db/articles.mq.md
import json:lib/json.mq.md
---
# main