feat: add phase 3 readonly models

This commit is contained in:
Yoilun
2026-05-25 18:21:02 +08:00
parent 37e3d77110
commit d573bde194
18 changed files with 964 additions and 12 deletions

40
internal/runtime/model.go Normal file
View File

@@ -0,0 +1,40 @@
package runtime
type Snapshot struct {
Threads []Thread `json:"threads"`
SpawnEdges []SpawnEdge `json:"spawnEdges"`
Goals []Goal `json:"goals"`
Source SourceEvidence `json:"source"`
}
type Thread struct {
ID string `json:"id"`
Role string `json:"role"`
Status string `json:"status"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
Source SourceEvidence `json:"source"`
}
type SpawnEdge struct {
FromThreadID string `json:"fromThreadId"`
ToThreadID string `json:"toThreadId"`
Reason string `json:"reason"`
CreatedAt string `json:"createdAt"`
Source SourceEvidence `json:"source"`
}
type Goal struct {
ThreadID string `json:"threadId"`
Goal string `json:"goal"`
Status string `json:"status"`
UpdatedAt string `json:"updatedAt"`
Source SourceEvidence `json:"source"`
}
type SourceEvidence struct {
Kind string `json:"kind"`
Path string `json:"path,omitempty"`
Confidence string `json:"confidence"`
Message string `json:"message,omitempty"`
}