Fix public docs run errors and optional gate matrix binding.

Markdown list dashes were parsed as loops; quantum.gate name=H failed because plugin bind required matrix. Repair user-site pages and redeploy-ready sources.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-12 15:36:58 +08:00
1 parent db27f5c8d3
commit 209dc4fc5d
24 files changed
+137 -52

No files matched your search

+13 -6
View File
@@ -28,11 +28,18 @@ marqdo ext add web
marqdo ext add quantum
```
- ext/llm — OpenAI-compatible chat. Design: doc/design/ext-llm.md
- ext/agent — agent framework + native plugin. Design: doc/design/ext-agent.md
- ext/web — HTTP / SQLite site helpers + native plugin. Design: doc/design/ext-web.md
- ext/quantum — circuits, draw, noise, formula `matrix=` custom gates. Design: doc/design/ext-quantum.md
- Installer: marqdo ext list / add / remove — doc/design/ext-cli.md
- Native plugins: lib/plugin + include/marqdo_abi.h — doc/design/ext-abi.md
Packages (not Markdown list markers — those are loops in Marqdo):
ext/llm — OpenAI-compatible chat. Design: doc/design/ext-llm.md
ext/agent — agent framework + native plugin. Design: doc/design/ext-agent.md
ext/web — HTTP / SQLite site helpers + native plugin. Design: doc/design/ext-web.md
ext/quantum — circuits, draw, noise, formula matrix custom gates. Design: doc/design/ext-quantum.md
Installer: marqdo ext list / add / remove — doc/design/ext-cli.md
Native plugins: lib/plugin + include/marqdo_abi.h — doc/design/ext-abi.md
> print text=ext-ok
+13 -6
View File
@@ -28,11 +28,18 @@ marqdo ext add web
marqdo ext add quantum
```
- ext/llm(大模型)— OpenAI 兼容聊天。设计:doc/design/ext-llm.md
- ext/agent(智能体)— 智能体框架 + 原生插件。设计:doc/design/ext-agent.md
- ext/web(网页)— HTTP / SQLite 站点助手 + 原生插件。设计:doc/design/ext-web.md
- ext/quantum(量子)— 电路、绘图、噪声、公式 `矩阵=` 自定义门。设计:doc/design/ext-quantum.md
- 安装器:marqdo ext list / add / remove — doc/design/ext-cli.md
- 通用原生插件:lib/plugin + include/marqdo_abi.h — doc/design/ext-abi.md
扩展包(勿用 Markdown `-` 列表:在 Marqdo 里 `-` 是循环):
ext/llm(大模型)— OpenAI 兼容聊天。设计:doc/design/ext-llm.md
ext/agent(智能体)— 智能体框架 + 原生插件。设计:doc/design/ext-agent.md
ext/web(网页)— HTTP / SQLite 站点助手 + 原生插件。设计:doc/design/ext-web.md
ext/quantum(量子)— 电路、绘图、噪声、公式矩阵自定义门。设计:doc/design/ext-quantum.md
安装器:marqdo ext list / add / remove — doc/design/ext-cli.md
通用原生插件:lib/plugin + include/marqdo_abi.h — doc/design/ext-abi.md
> 打印 内容=扩展就绪
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="152" height="176" viewBox="0 0 152.0 176.0" role="img" aria-label="measurement probabilities"><line x1="36" y1="140" x2="136" y2="140" stroke="#1a1a1a" stroke-width="1.2"/><line x1="36" y1="20" x2="36" y2="140" stroke="#1a1a1a" stroke-width="1.2"/><text x="6" y="24" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#1a1a1a">1</text><text x="6" y="144" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#1a1a1a">0</text><rect x="40" y="79.99999999999999" width="36" height="60.000000000000014" fill="#4a6fa5" stroke="#1a1a1a" stroke-width="1"/><text x="58" y="156" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#1a1a1a">000</text><text x="58" y="75.99999999999999" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="9" fill="#555">0.50</text><rect x="88" y="79.99999999999999" width="36" height="60.000000000000014" fill="#4a6fa5" stroke="#1a1a1a" stroke-width="1"/><text x="106" y="156" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#1a1a1a">111</text><text x="106" y="75.99999999999999" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="9" fill="#555">0.50</text></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="196" height="192" viewBox="0 0 196.0 192.0" role="img" aria-label="gate matrix heatmap"><text x="8" y="18" font-family="ui-monospace,Menlo,monospace" font-size="12" fill="#1a1a1a">H matrix</text><text x="8" y="67.6" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#666">0</text><text x="72" y="22" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#666">0</text><rect x="36" y="28" width="72" height="72" fill="rgb(107,116,247)" stroke="#1a1a1a" stroke-width="0.8"/><text x="72" y="67.6" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="9" fill="#fff">0.707</text><rect x="108" y="28" width="72" height="72" fill="rgb(107,116,247)" stroke="#1a1a1a" stroke-width="0.8"/><text x="144" y="67.6" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="9" fill="#fff">0.707</text><text x="8" y="139.60000000000002" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#666">1</text><text x="144" y="22" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#666">1</text><rect x="36" y="100" width="72" height="72" fill="rgb(107,116,247)" stroke="#1a1a1a" stroke-width="0.8"/><text x="72" y="139.6" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="9" fill="#fff">0.707</text><rect x="108" y="100" width="72" height="72" fill="rgb(107,116,247)" stroke="#1a1a1a" stroke-width="0.8"/><text x="144" y="139.6" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="9" fill="#fff">-0.707</text></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="152" height="176" viewBox="0 0 152.0 176.0" role="img" aria-label="measurement probabilities"><line x1="36" y1="140" x2="136" y2="140" stroke="#1a1a1a" stroke-width="1.2"/><line x1="36" y1="20" x2="36" y2="140" stroke="#1a1a1a" stroke-width="1.2"/><text x="6" y="24" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#1a1a1a">1</text><text x="6" y="144" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#1a1a1a">0</text><rect x="40" y="79.99999999999999" width="36" height="60.000000000000014" fill="#4a6fa5" stroke="#1a1a1a" stroke-width="1"/><text x="58" y="156" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#1a1a1a">000</text><text x="58" y="75.99999999999999" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="9" fill="#555">0.50</text><rect x="88" y="79.99999999999999" width="36" height="60.000000000000014" fill="#4a6fa5" stroke="#1a1a1a" stroke-width="1"/><text x="106" y="156" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#1a1a1a">111</text><text x="106" y="75.99999999999999" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="9" fill="#555">0.50</text></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="196" height="192" viewBox="0 0 196.0 192.0" role="img" aria-label="gate matrix heatmap"><text x="8" y="18" font-family="ui-monospace,Menlo,monospace" font-size="12" fill="#1a1a1a">H matrix</text><text x="8" y="67.6" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#666">0</text><text x="72" y="22" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#666">0</text><rect x="36" y="28" width="72" height="72" fill="rgb(107,116,247)" stroke="#1a1a1a" stroke-width="0.8"/><text x="72" y="67.6" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="9" fill="#fff">0.707</text><rect x="108" y="28" width="72" height="72" fill="rgb(107,116,247)" stroke="#1a1a1a" stroke-width="0.8"/><text x="144" y="67.6" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="9" fill="#fff">0.707</text><text x="8" y="139.60000000000002" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#666">1</text><text x="144" y="22" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="10" fill="#666">1</text><rect x="36" y="100" width="72" height="72" fill="rgb(107,116,247)" stroke="#1a1a1a" stroke-width="0.8"/><text x="72" y="139.6" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="9" fill="#fff">0.707</text><rect x="108" y="100" width="72" height="72" fill="rgb(107,116,247)" stroke="#1a1a1a" stroke-width="0.8"/><text x="144" y="139.6" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="9" fill="#fff">-0.707</text></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB