Migrate scene planning to native continuation and whole-source fallback

This commit is contained in:
2026-11-22 00:34:33 +00:00
parent 4f82d01534
commit 52a1c96327
13 changed files with 721 additions and 599 deletions

View File

@@ -0,0 +1,21 @@
package scenes
import (
"encoding/json"
"testing"
)
func TestResponseStructAcceptsIntegerBoundaries(t *testing.T) {
raw := []byte(`{"scenes":[{"start_unit_id":1,"end_unit_id":3}]}`)
var response chunkResponse
if err := json.Unmarshal(raw, &response); err != nil {
t.Fatalf("Unmarshal() error = %v, want nil", err)
}
if got := response.Scenes[0].StartUnitID.String(); got != "1" {
t.Fatalf("StartUnitID = %q, want 1", got)
}
if got := response.Scenes[0].EndUnitID.String(); got != "3" {
t.Fatalf("EndUnitID = %q, want 3", got)
}
}