docs: align runtime architecture guidance

This commit is contained in:
lix-2026
2026-05-26 07:29:15 +08:00
parent e1681331a3
commit 0a15595066
14 changed files with 134 additions and 35 deletions
@@ -16,7 +16,7 @@
本 checklist 不重新打开已经完成的 raw string 外置化任务。`layout.rs` / `tree.rs` 的原始巨型 JS raw string 问题已经解决;本轮聚焦剩余的文档页 host adapter、sidebar-tree JS 巨文件、tree-shell JS 巨文件和 Tiptap island runtime 巨型 Rust 文件。
## 2. 当前基线
## 2. 创建时基线
代码基线以 2026-05-26 本地检查为准:
@@ -36,13 +36,24 @@ rust/spikes/leptos-tiptap-spike/src/lib.rs 7,951 行
- `mnote-web/browser/` 已有 12 个 JS runtime 文件,CodeGraph 已按 JavaScript 索引。
- `leptos-tiptap-spike/src/editor_runtime/` 已拆出 `mindmap_node_view.rs``bridge_events.rs``bridge_dispatch.rs``slash_actions.rs``table_commands.rs``table_toolbar_view.rs` 等模块。
仍未达标:
创建本 checklist 时仍未达标:
- `web_shell.rs``render_editor_island_adapter_script()` 仍是大型 inline module script。
- `sidebar-tree-runtime.js` 已可索引,但单文件仍超过一万行,职责过多。
- `tree-shell-runtime.js` 已可索引,但仍混合 page tree、file tree、picker、DOM patch、DND、icon/render 等职责。
- `leptos-tiptap-spike/src/lib.rs` 仍接近八千行,CSS、mount、runtime bridge、slash UI、block menu、resource identity、command handler 仍混在一起。
归档后真实状态(2026-05-26):
```text
rust/crates/mnote-web/src/routes/web_shell.rs 2,578 行
rust/crates/mnote-web/browser/sidebar-tree-runtime.js 2,770 行
rust/crates/mnote-web/browser/tree-shell-runtime.js 2,482 行
rust/spikes/leptos-tiptap-spike/src/lib.rs 3,632 行
```
上述未达标项已由 Batch A-E 解决;剩余 Page AI owner 细化已转入 `design/07-ai/process/7-38-page-ai-sidebar-runtime-owner-split-v1.md`local folder/resource 编排细化已转入 `design/03-rust-web/process/3-23-sidebar-local-folder-resource-runtime-followup-v1.md`
## 3. 范围边界
本轮做模块拆分,不做语义重写。
@@ -76,7 +87,7 @@ rust/spikes/leptos-tiptap-spike/src/lib.rs 7,951 行
优先级:最高。
原因:这是当前仍留在 Rust raw string 里的最大前端 runtime,直接影响最初的 CodeGraph 问题。
原因:这是创建本 batch 时仍留在 Rust raw string 里的最大前端 runtime,直接影响最初的 CodeGraph 问题。
目标文件: