From 5a525683a663998be2469d487ca0ab63d78e2c10 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 7 Aug 2026 16:34:29 +0000 Subject: [PATCH] =?UTF-8?q?docs(runner):=20README=20=C2=A7Features=20?= =?UTF-8?q?=E7=9A=84=20Hot=20Reload=20=E6=8C=89=E4=B8=A4=E4=B8=AA=20loader?= =?UTF-8?q?=20=E5=88=86=E8=B7=AF=E9=99=90=E5=AE=9A=20(#3620)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit §Features 第 8 行的 `- **Hot Reload** - Automatic reload on schema changes` 是一句 无条件宣称,与 PR #3621(#3604)刚在同文件 §Development Workflow 第 3 步落地的分路 限定相矛盾 —— 同一页两个声音。 按第 3 步的口径改写这一个 bullet,措辞与之逐字对齐: - `src/app-data/` 一侧只写代码可证的部分 —— JSON 经 `import.meta.glob` (`src/lib/MetadataLoader.ts:26-28`)进入 Vite 的 module graph,dev server 无需 重启即可读到改动; - `?api=` 一侧的否定无条件成立 —— `NetworkLoader` 在运行时 `fetch`(同文件 :89/:101),后端完全在 Vite 视野之外,不存在任何 watch/reload 机制。 标题也从 "Hot Reload" 改掉:该词本身就是「更新会自己出现在屏幕上」这个断言, 而这正是 PR #3621 因无法脱离实跑从代码确认而明确拒绝写下的那一条。留着它,正文 的限定与加粗标题仍然打架。 列表顺序与其余四条 bullet 未动。 Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01GTRjn8xBqp75dk7kFupVRt --- packages/runner/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/runner/README.md b/packages/runner/README.md index d627e12754..0fa8f48c4f 100644 --- a/packages/runner/README.md +++ b/packages/runner/README.md @@ -5,7 +5,9 @@ Universal Object UI Application Runner - A standalone development server and run ## Features - **Schema Development** - Test and debug Object UI schemas in isolation -- **Hot Reload** - Automatic reload on schema changes +- **No-Restart Edits** - Under `src/app-data/` the dev server picks metadata changes up + without a restart, because that JSON is part of Vite's module graph; behind `?api=` it + cannot, because Vite never sees your backend ([Metadata Loading](#metadata-loading)) - **Plugin Support** - Pre-configured with popular plugins (Kanban, Charts, etc.) - **Development Ready** - Built-in Vite development server - **Production Build** - Optimized build for deployment