feat: WEB-04 domain composition cases and production delivery trial

Add three composition cases driven by the same generic web Tool:
- examples/doc-site (documentation site),
- examples/research-workspace (existing section 8 workbench prototype),
- examples/quantum-editor (finite scenario/interaction design).

Add a real production delivery trial in examples/research-workbench-app
(Express + JSON persistence + static UI): validation, search, status
transitions, linked statistics, JSON errors, real file persistence; node:test
API acceptance and a Playwright browser E2E. The production app is not a runtime
dependency of the web Tool; prototype PASS is kept separate from production
PASS. docs/WEB-04-delivery.md records the design-source to implementation
mapping, intentional non-goals and task splits.

scripts/domain-acceptance.sh is the explicit domain entry: installs the built
Tool, runs check/preview/handoff for the three cases, then installs/tests the
production app incl. browser E2E, and removes the Tool. Evidence records the
real CLI/Design/Preview identities and local PASS results.

Pin the domain submodules to the merged Design (WEB-01/03) and Preview (WEB-02)
candidates; activation and root gitlink belong to WEB-05.

Refs cflmy/marqdo-ext-web#2, cflmy/marqdo#6
This commit was merged in pull request #4.
This commit is contained in:
cflmy committed 2026-11-27 09:02:27 +08:00
1 parent df4324f3e3
commit 7a2c9280c0
26 files changed
+1559 -3

No files matched your search

@@ -0,0 +1,21 @@
# 电路画布组件
## @knowledge 电路画布
### 场景
| 状态 | 内容 | 初始 |
| --- | --- | --- |
| empty | [空电路](../shared/states.mq.md#空电路) | true |
| selected | [已选门](../shared/states.mq.md#已选门) | false |
### 交互
| 当前 | 事件 | 下一状态 |
| --- | --- | --- |
| empty | 模拟放置 H 门 | selected |
| selected | 模拟清空 | empty |
### 验收
- 空电路提示放置第一个门;选择门时右侧检查器同步。
@@ -0,0 +1,11 @@
# 检查器组件
## @knowledge 检查器
### 内容
显示所选门的参数、目标比特与错误提示占位。
### 验收
- 无选择时显示空状态,不伪造成已保存。
@@ -0,0 +1,11 @@
# 门面板组件
## @knowledge 门面板
### 内容
按类别列出单比特门、双比特门与测量操作。
### 验收
- 点击门不会立即加入电路,需拖拽或选择目标比特。
+13
View File
@@ -0,0 +1,13 @@
# 量子电路编辑器设计
## @knowledge 编辑器
电路编辑器的三段式布局:门面板、电路画布、属性检查器。
### 组件
| 行 | 槽 | 组件 | 宽度 |
| --- | --- | --- | --- |
| 1 | palette | [门面板](components/palette.mq.md#门面板) | 220px |
| 1 | canvas | [电路画布](components/canvas.mq.md#电路画布) | 6fr |
| 1 | inspector | [检查器](components/inspector.mq.md#检查器) | 2fr |
@@ -0,0 +1,9 @@
# 状态
## @knowledge 空电路
画布为空,提示放置门。
## @knowledge 已选门
已选择一个 H 门,参数等待填写。