Update native operations, consumer migration, and version checks
This commit is contained in:
@@ -93,6 +93,9 @@ func TestMaintainedCompleteInvocationPublishesRegistryBackedEntityOccurrences(t
|
||||
code := RunWithOptions([]string{
|
||||
"run", "dnd-session", "--config", configPath,
|
||||
"--input-file", repositoryPath("examples", "dnd-complete", "transcript.json"),
|
||||
"--reference", "party=" + repositoryPath("examples", "dnd-complete", "party.txt"),
|
||||
"--reference", "glossary=" + repositoryPath("examples", "dnd-complete", "glossary.txt"),
|
||||
"--reference", "spell_catalog=" + repositoryPath("examples", "dnd-complete", "spell-catalog.json"),
|
||||
"--cache", "bypass", "--output-dir", outputRoot,
|
||||
"--llm-session-id", "enemy-event-session", "--format", "json",
|
||||
}, &stdout, &stderr, options)
|
||||
@@ -109,6 +112,17 @@ func TestMaintainedCompleteInvocationPublishesRegistryBackedEntityOccurrences(t
|
||||
}
|
||||
if files := readTree(t, runRoot); len(files) != report.ArtifactCount {
|
||||
t.Fatalf("published files=%v, report=%#v", files, report)
|
||||
} else {
|
||||
for _, relative := range []string{
|
||||
"lanes/item-registry.json", "lanes/npc-registry.json", "lanes/location-registry.json",
|
||||
"lanes/scene-descriptions.json", "lanes/item-occurrences.json", "lanes/spells.json",
|
||||
"lanes/combat-turns.json", "lanes/npc-occurrences.json", "lanes/location-occurrences.json",
|
||||
"lanes/enemy-events.json", "chunk-map.json", "evidence-context.json",
|
||||
} {
|
||||
if !json.Valid(files[filepath.FromSlash(relative)]) {
|
||||
t.Fatalf("missing or invalid domain artifact %q", relative)
|
||||
}
|
||||
}
|
||||
}
|
||||
value := readProductionJSON[dnd.EnemyEventList](t, filepath.Join(runRoot, "lanes/enemy-events.json"))
|
||||
if len(value.Events) != 1 || value.Events[0].Name != "Kesh" || value.Events[0].Kind != dnd.EnemyEventKindFled || len(value.Events[0].SourceRefs) != 1 || value.Events[0].SourceRefs[0].SourceID != "session-ravenfall" || value.Events[0].SourceRefs[0].StartUnitID != 10 {
|
||||
|
||||
Reference in New Issue
Block a user