feat(PR-02): DocumentModel, Analysis v2 projection, single renderer and Live browsing
- document.rs: comrak marqdo.md.v1 parse -> DocBlock/Inline with exact UTF-8 spans - semantic.rs: typed Analysis v2 validation (schema/profile/root_id/source_digest, units/functions/statements/resources/imports/references/calls/diagnostics, per-span UTF-8 checks with explicit view.source_span_invalid warnings) - presentation.rs: one PresentationModel/Outline with source status matrix - render.rs: one ReaderRenderer; sanitized GFM, statement anchors, heading mode badges (display-only prefix strip), source pane, docs/Live|Static link policy, CSP meta, no inline scripts, no raw HTML execution - server.rs: loopback-only Live reader with Host/DNS-rebinding checks, strict percent decoding, project path boundary, security headers, read-only APIs - app.rs: AppContext degradation (core missing -> prose-only, check error -> diagnostics + revoked semantics, protocol mismatch -> hard error) - assets: single reader.css/reader.js + embedded SHA-256 AssetBundle, copied legacy logo/blossom/feather with provenance - examples + frozen-CLI Analysis goldens + rendering/HTTP/asset/no-coupling tests - ADR-0003 heading prefix/anchor identity; docs updated
This commit is contained in:
1 parent
8ba20a5c67
commit
80ce564f09
47 files changed
+26127
-203
No files matched your search
+3
-3
@@ -25,9 +25,9 @@ Beta 版 CLI 必须使用 prerelease 范围(`>=3.0.0-beta.1,<4.0.0`);`>=3.
|
||||
|
||||
| 能力 | 状态 |
|
||||
|---|---|
|
||||
| 原始 Markdown 只读浏览(GFM 表/列表/引用/代码围栏/数学文本) | 计划 PR-02 |
|
||||
| Analysis v2 静态语义(函数/Unit/诊断/引用/资源) | 计划 PR-02 |
|
||||
| 文档态 / 源码态切换 | 计划 PR-02 |
|
||||
| 原始 Markdown 只读浏览(GFM 表/列表/引用/代码围栏/数学文本) | **已实现**(PR-02) |
|
||||
| Analysis v2 静态语义(函数/Unit/诊断/引用/资源) | **已实现**(PR-02) |
|
||||
| 文档态 / 源码态切换 | **已实现**(PR-02) |
|
||||
| 暖纸 Reader 视觉(单一 CSS/JS) | 计划 PR-03 |
|
||||
| 用户显式触发运行 + Trace v2 事件可视化 | 计划 PR-04 |
|
||||
| Live 本机安全 API | 计划 PR-05 |
|
||||
|
||||
Reference in new issue
Block a user