feat(pbs): add sprite animation and shared Studio authoring

Implement DEC-0084 with factory-only Sprite/Animator structs, complete result
lowering, validated animation sidecars, generated PBS factories and JavaFX/MCP
authoring through shared services.

Qualify native dev/release with ordinary and optimized producers, zero-allocation
playback, private-cycle reclamation, canonical Composer pixels, installed JARs
and JavaFX lifecycle. Preserve the runtime checkout and existing host ABI.
This commit is contained in:
2026-11-05 15:16:07 +00:00
parent 1d8b8c2101
commit bf31184d4d
151 changed files with 4823 additions and 98 deletions
@@ -65,6 +65,18 @@ class ExternalSourceRegistryTest {
assertThrows(IllegalStateException.class, () -> registry.read(next, uri));
}
@Test void generatedOriginMetadataSerializesWithoutFilesystemInternals() {
var base=source("fn generated() {}");
var generated=new FrontendSourceDocument(base.path(),base.text(),"generated",base.name(),"pbs",true,base.context(),
java.util.List.of(new FrontendSourceDocument.OriginSpan(0,10,Path.of("/project/assets/bank/animations.studio.json"),"/animators/0/id","12345678-1234-1234-1234-123456789abc")),"generator-revision");
try(var registry=new ExternalSourceRegistry()){
String consumer=registry.connect(null,false);String uri=registry.register(consumer,generated);
String json=new com.google.gson.Gson().toJson(registry.read(consumer,uri));
assertTrue(json.contains("file:///project/assets/bank/animations.studio.json"));
assertTrue(json.contains("/animators/0/id"));
}
}
@Test void cancelledOrUnopenedNavigationDoesNotRetainASnapshot() {
try (var registry = new ExternalSourceRegistry()) {
final String consumer = registry.connect(null, true);