Files
Genarrative/server-rs/crates/module-runtime/README.md

31 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# module-runtime 独立模块 package 占位说明
日期:`2026-04-20`
## 1. package 职责
`module-runtime` 是运行时状态基座模块 package后续负责
1. `runtime_snapshot``runtime_setting` 等主状态模型
2. profile dashboard、browse history、save archive 相关读写模型
3. 运行时状态归一化与兼容聚合快照策略
4.`apps/api-server` 的 runtime facade 对接
5.`apps/spacetime-module` 的运行时表与 view 聚合对接
## 2. 当前阶段说明
当前提交仅完成目录占位不提前进入表结构、projection 与接口实现。
后续与本 package 直接相关的任务包括:
1. 设计 `runtime_snapshot``runtime_setting`
2. 设计 `profile_dashboard_state``profile_wallet_ledger`
3. 设计 `profile_played_world``profile_save_archive``user_browse_history`
4. 落地存档、设置、资料页兼容接口
## 3. 边界约束
1. `module-runtime` 负责运行时状态真相与模块级 facade 编排,不把主状态继续留在旧式大 JSON repository 中。
2. 兼容快照可以作为聚合产物保留,但不能再次成为唯一真相。
3. 前端兼容接口由 `apps/api-server` 暴露,状态表与 view 最终由 `apps/spacetime-module` 聚合。