feat(studio): deliver asset authoring and automation workflows
Add shared human/task asset batches with reviewed atomic publication, explicit reference rebinds, ownership inspection and qualified glyph/scene budgets. Expose the same authoring and capacity results through Assets and MCP. Deliver isolated guest test targets, retained visual evidence and immutable runtime lifecycle/control observations. Preserve provider qualification and installed authoring examples alongside the completed discussion lessons. Close AGD-106 coordination and the delivered discussion workflows through housekeeping, updating lesson references and preserving qualification limits. Sound remains outside the asset delivery wave. Validation: 579 module tests and 31 additional desktop, process and installed checks passed; native glyph/scene 16/17 boundaries qualified. Discussion validation passed after housekeeping.
This commit is contained in:
+8
-5
@@ -57,13 +57,16 @@ class AnimationInstalledRuntimeTest {
|
||||
byte[] definition=Files.readAllBytes(f.bankRoot.resolve(AnimationDocument.FILE_NAME));
|
||||
Path corpus=Path.of(System.getProperty("pbs.registryConformanceDirectory"));Files.createDirectories(corpus);
|
||||
for(boolean optimized:new boolean[]{false,true}){
|
||||
p.studio.core.shipper.CompilerBuildGateway compiler=(project,sink)->{
|
||||
var context=p.studio.compiler.models.BuilderPipelineContext.fromConfig(new p.studio.compiler.messages.BuilderPipelineConfig(false,project.rootPath().toString()));context.glyphBankLayoutSource=f.layouts;
|
||||
p.studio.core.shipper.CompilerBuildGateway compiler=new p.studio.core.shipper.CompilerBuildGateway(){
|
||||
public CompilerBuildOutput compile(p.studio.api.project.ProjectReference project,java.util.function.Consumer<String> sink){return compile(project,p.studio.api.automation.BuildSelection.productionBuild(),project.rootPath().resolve("build"),sink);}
|
||||
public CompilerBuildOutput compile(p.studio.api.project.ProjectReference project,p.studio.api.automation.BuildSelection selection,Path output,java.util.function.Consumer<String> sink){
|
||||
var admitted=new p.studio.app.compiler.CompilerBuildGatewayAdapter(f.layouts).compile(project,selection,output,sink);
|
||||
var context=p.studio.compiler.models.BuilderPipelineContext.fromConfig(new p.studio.compiler.messages.BuilderPipelineConfig(false,project.rootPath().toString(),"core-v1",p.studio.compiler.utilities.SourceProviderFactory.filesystem(),selection.targetId(),output));context.glyphBankLayoutSource=f.layouts;
|
||||
p.studio.compiler.workspaces.BuilderPipelineService.INSTANCE.build(context,p.studio.utilities.logs.LogAggregator.with(sink));
|
||||
if(!optimized)try{Files.write(context.bytecodeArtifactPath,new p.studio.compiler.backend.bytecode.BytecodeEmitter().emit(context.irvm.coherentEmissionPlan()).serialize());}catch(java.io.IOException error){throw new java.io.UncheckedIOException(error);}
|
||||
return new p.studio.core.shipper.CompilerBuildGateway.CompilerBuildOutput(context.bytecodeArtifactPath,context.irBackend.getReservedMetadata().requiredCapabilities().asList());
|
||||
};
|
||||
var build=new StudioShipperService(compiler,f.packer.workspaceService(),f.mapper,new ExecutorOperationExecutor(workers)).prepare(f.project,ignored->{}).completion().toCompletableFuture().get(30,TimeUnit.SECONDS);
|
||||
return new p.studio.core.shipper.CompilerBuildGateway.CompilerBuildOutput(context.bytecodeArtifactPath,context.irBackend.getReservedMetadata().requiredCapabilities().asList(),admitted.issues(),admitted.context());
|
||||
}};
|
||||
var build=new StudioShipperService(compiler,f.packer.workspaceService(),f.mapper,new ExecutorOperationExecutor(workers)).withAssetPreflight(new p.studio.app.assets.AssetBudgetInspection(f.mapper,f.packer.workspaceService(),ignored->new ProjectLocalStudioSetup(System.getProperty("studio.test.runtimeInstall"),null))).prepare(f.project,ignored->{}).completion().toCompletableFuture().get(30,TimeUnit.SECONDS);
|
||||
assertTrue(build.success(),build.diagnostics().toString());
|
||||
String prefix="pbs-animation-composer"+(optimized?"-optimized":"");
|
||||
Files.copy(root.resolve("build/program.pbx"),corpus.resolve(prefix+".pbx"),StandardCopyOption.REPLACE_EXISTING);
|
||||
|
||||
Reference in New Issue
Block a user