feat: ship the unique offline marqdo web Tool (WEB-02 candidate)
Implement the first Preview candidate in its unique owner repository: - marqdo web check/preview/handoff with explicit ENTRY/--unit/--root/--out/ --theme; independent executable packaged with tool.json (command web, api_revision/analysis requirements). - Consume only the public marqdo-web-design crate at a fixed git revision (Cargo.lock pinned; no ../design path dependency, no Markdown re-parsing). - preview renders one offline index.html: strict hashed CSP (default-src 'none', no network), visible prototype banner and build summary, escaped Design ContentBlocks (raw HTML stays inert), finite-state scenario panels with hashed inline script and reset, no server/timer/eval business logic. - Publication refuses existing outputs and symlink targets, builds in a private sibling staging dir and renames atomically; 0/1/2 exit codes with stderr diagnostics. - scripts/ci.sh installs the Tool through the real CLI, runs all three commands on a fixture project, asserts the offline/safety facts, verifies the CLI binary digest is unchanged and removes the Tool. - Evidence records we do NOT yet claim real-browser/responsive acceptance, image assets, the full negative matrix, budgets/timeouts or WEB-05 cold install. Refs cflmy/marqdo-web-preview#1, cflmy/marqdo#6
This commit was merged in pull request #2.
This commit is contained in:
1 parent
8b3281bac0
commit
e739f4504a
12 files changed
+928
-26
No files matched your search
@@ -136,3 +136,11 @@ CSP、资产校验归本仓库;表头未识别、Link 精确绑定、`not_load
|
||||
Analysis 字段或 resolver 公共合同缺陷归 CLI;作者面语义冲突或新增通用能力由
|
||||
`marqdo-ext-web` 走 ADR 并配对 Design/Preview 候选。工单模板与状态流以 Web 领域规范
|
||||
§12.2 与领域开发指南为准。
|
||||
|
||||
## 实现进展(WEB-02 首个候选)
|
||||
|
||||
- 独立 executable + `tool.json`,注册唯一 `marqdo web` 命令;消费固定 git revision 的 `marqdo-web-design` 公开 API(`Cargo.lock` 锁定),不复制 Markdown/设计解析。
|
||||
- `web check|preview|handoff`:check 输出模型摘要;preview 生成离线单文件 HTML(CSP、原型标识、场景面板、模拟按钮、重置、构建摘要);handoff 原子写 Markdown 交付。
|
||||
- 输出目录/文件默认不覆盖;staging→rename 原子发布;拒绝符号链接目标;退出码 0/1/2 与 stderr 诊断。
|
||||
- `scripts/ci.sh` 用真实 CLI 安装/运行/卸载 `web` Tool 并验证 CLI 二进制不变。
|
||||
- 未完成:真实浏览器行为与 responsive 验收、图片/本地 raster 资产、完整安全负例矩阵、超时/预算边界、WEB-05 冷安装。证据见 [docs/evidence/WEB-02-preview-candidate.md](docs/evidence/WEB-02-preview-candidate.md)。
|
||||
Reference in new issue
Block a user