feat: 支持长篇小说分层架构(卷/弧/章三级结构)
This commit is contained in:
@@ -35,6 +35,34 @@ type ChapterSummary struct {
|
||||
KeyEvents []string `json:"key_events"`
|
||||
}
|
||||
|
||||
// ArcSummary 弧级摘要,弧结束时由 Editor 生成。
|
||||
type ArcSummary struct {
|
||||
Volume int `json:"volume"`
|
||||
Arc int `json:"arc"`
|
||||
Title string `json:"title"`
|
||||
Summary string `json:"summary"`
|
||||
KeyEvents []string `json:"key_events"`
|
||||
}
|
||||
|
||||
// VolumeSummary 卷级摘要,卷结束时生成。
|
||||
type VolumeSummary struct {
|
||||
Volume int `json:"volume"`
|
||||
Title string `json:"title"`
|
||||
Summary string `json:"summary"`
|
||||
KeyEvents []string `json:"key_events"`
|
||||
}
|
||||
|
||||
// CharacterSnapshot 角色状态快照,弧边界时记录。
|
||||
type CharacterSnapshot struct {
|
||||
Volume int `json:"volume"`
|
||||
Arc int `json:"arc"`
|
||||
Name string `json:"name"`
|
||||
Status string `json:"status"` // 存活/受伤/失踪...
|
||||
Power string `json:"power,omitempty"` // 能力变化
|
||||
Motivation string `json:"motivation"` // 当前动机
|
||||
Relations string `json:"relations,omitempty"` // 关键关系变化
|
||||
}
|
||||
|
||||
// CommitResult 是 commit_chapter 工具的结构化返回值。
|
||||
// 宿主程序和 Coordinator 读取此信号做控制决策。
|
||||
type CommitResult struct {
|
||||
@@ -47,4 +75,9 @@ type CommitResult struct {
|
||||
ReviewReason string `json:"review_reason,omitempty"`
|
||||
HookType string `json:"hook_type,omitempty"` // 钩子类型:crisis/mystery/desire/emotion/choice
|
||||
DominantStrand string `json:"dominant_strand,omitempty"` // 本章主导线:quest/fire/constellation
|
||||
// 长篇分层信号(仅 Layered 模式)
|
||||
ArcEnd bool `json:"arc_end,omitempty"`
|
||||
VolumeEnd bool `json:"volume_end,omitempty"`
|
||||
Volume int `json:"volume,omitempty"`
|
||||
Arc int `json:"arc,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user