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

31 lines
1.1 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-quest 独立模块 package 占位说明
日期:`2026-04-20`
## 1. package 职责
`module-quest` 是任务运行时模块 package后续负责
1. `quest_record` 等任务状态模型
2. 任务进度、任务日志、任务信号处理规则
3. 与 story、runtime、progression 的任务联动
4.`apps/api-server` 的任务兼容接口对接
5.`apps/spacetime-module` 的任务表、reducer、view 聚合对接
## 2. 当前阶段说明
当前提交仅完成目录占位,不提前进入任务草案、进度投影与兼容接口实现。
后续与本 package 直接相关的任务包括:
1. 设计 `quest_record`
2. 设计 `apply_quest_signal`
3. 对齐任务进度、日志与兼容输出结构
4. 接入 runtime 与 story 的任务联动
## 3. 边界约束
1. `module-quest` 负责任务状态真相与任务规则,生成型任务草案与外部 AI 编排不直接塞进模块内部。
2. 任务状态最终回写到 `apps/spacetime-module` 聚合的状态模型中,前端兼容接口由 `apps/api-server` 暴露。
3. 任务不能再次散落到 story service、runtime service 或前端临时状态里分别维护。