fix: recover run runtime state and logs

This commit is contained in:
npc0-hue
2026-08-07 12:01:26 +08:00
parent 3818fa0344
commit b789925ae5
23 changed files with 297 additions and 78 deletions
+18
View File
@@ -48,6 +48,24 @@ type LogStreamCursorResult struct {
LatestSeq uint64
}
// RunLogStreamProgress is a signed Run-only request for sequence recovery.
// It deliberately exposes no log body or host-local information.
type RunLogStreamProgress struct {
RunEndpointID string
SessionToken string
ServerInstanceID string
LogStreamID string
}
type RunLogStreamProgressResult struct {
Accepted bool
RunEndpointID string
ServerInstanceID string
LogStreamID string
LatestSeq uint64
ServerTime time.Time
}
type LogStreamEvent struct {
ServerInstanceID string
Stream LogStream