Add a single bridge that runs the public View export --embed command, checks
the manifest, producer and package digests, caches the package by source,
View, CLI, theme and anchor identity, and serves it to a sandboxed same-origin
frame. Expose workspace and knowledge reading in the workbench and keep
execution, approval and evidence in the existing MQDH/CLI flow.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
目标
实现 #9:复用 Marqdo View 的公开只读阅读与主题入口,覆盖任务文稿与私人知识命中两处;不复制 View CSS/Markdown 解析,不执行文稿。
上游合同
View PR
marqdo-view#18候选(tools/viewb1f92548,二进制 SHA-256ab353d09…)提供marqdo view export <doc> --out <dir> --embed --theme light|dark --anchor <id> --expect-source-sha256 <hex>。MQDH 消费marqdo.view-exportmanifest、requires、producers.view.binary_sha256、pages[0].source_sha256、entry.href/heading_ids与包文件摘要。变更
src/reader/单一桥接层:固定 argv 调用 View;缓存键含源码/View/CLI/主题/锚点;校验 manifest、生产者摘要、源摘要、锚点与全部包文件摘要;失败返回结构化 reader 错误。/reader/status、/reader/open、/reader/source、/reader/package/<id>/<path>;只服务 manifest 列出的文件,HTML CSP 禁脚本/外部资源,iframe 仅allow-same-origin。docs/mqdh/READER.md,更新 ARCHITECTURE/STATUS/README 与evidence/2026-11-29-reader.md。KnowledgeManager.sourcePath只读解析知识源。验证
pnpm run typecheck5/5。.mq.md、知识.md均生成并校验包;锚点成功/失败;缓存命中;源文本切换。未验证:正式 View Release 尚未包含
--embed;企业代理/离线安装、Windows/macOS、完整 screen-reader/像素主题走查。