From 73f695278743dcb3ac4cf66468ce32d226cbb242 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 9 Jul 2026 00:40:51 +0100 Subject: [PATCH] Add Aetheria Unity package smoke --- docs/eve-migration-roadmap.md | 10 +++- docs/parity-testing-harness.md | 13 +++++ scripts/run-aetheria-unity-package-smoke.ps1 | 55 ++++++++++++++++++++ 3 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 scripts/run-aetheria-unity-package-smoke.ps1 diff --git a/docs/eve-migration-roadmap.md b/docs/eve-migration-roadmap.md index 611ac80..4146e78 100644 --- a/docs/eve-migration-roadmap.md +++ b/docs/eve-migration-roadmap.md @@ -274,11 +274,17 @@ Exit criteria: ## Active Work Queue -1. Move EveUnity toward split readiness with runtime-owned UPM release, - Unity test, and capture lifecycle evidence. +1. Move EveUnity toward split readiness with runtime-owned UPM release and + Unity capture/test lifecycle evidence. Recently cut: +- Aetheria now has repeatable Unity package consumer-build evidence for the + Eve UI Toolkit runtime. `scripts/run-aetheria-unity-package-smoke.ps1` + verifies Aetheria's Unity `Packages/manifest.json` consumes Eve's surface and + UI Toolkit packages by file reference, checks the generated + `GameCult.Eve.UnityUIToolkit.csproj` includes all current runtime files, and + builds the package through Aetheria's Unity-generated project. - Unity UI Toolkit now has a first-party `norn.graph` plugin-host proof for `embed.norn`. `NornGraphUiToolkitPluginHost` owns the native embedded graph shell and graph command emission path, while Norn keeps graph layout and graph diff --git a/docs/parity-testing-harness.md b/docs/parity-testing-harness.md index 82c79f7..c9697ff 100644 --- a/docs/parity-testing-harness.md +++ b/docs/parity-testing-harness.md @@ -99,6 +99,19 @@ and `aetheria-world-command-replay` scenario. Generated copies remain under Eve's `artifacts/aetheria-conformance-consumer-smoke` so the provider worktree does not become dirty merely by proving the boundary. +Aetheria Unity package consumer smoke: + +```powershell +powershell -ExecutionPolicy Bypass -File .\scripts\run-aetheria-unity-package-smoke.ps1 +``` + +That script checks that Aetheria's Unity package manifest consumes Eve's surface +and UI Toolkit packages by file reference, verifies the generated +`GameCult.Eve.UnityUIToolkit.csproj` includes all current Unity runtime source +files, then builds the package through Aetheria's Unity-generated project. It is +consumer-build evidence, not a replacement for runtime-owned Unity capture or +release CI. + The smoke runner writes: - `artifacts/parity-smoke//parity-smoke.md` diff --git a/scripts/run-aetheria-unity-package-smoke.ps1 b/scripts/run-aetheria-unity-package-smoke.ps1 new file mode 100644 index 0000000..d0ea3fc --- /dev/null +++ b/scripts/run-aetheria-unity-package-smoke.ps1 @@ -0,0 +1,55 @@ +param( + [string] $AetheriaRoot = "E:\Projects\Aetheria" +) + +$ErrorActionPreference = "Stop" + +$eveRoot = Split-Path -Parent $PSScriptRoot +if (-not (Test-Path $AetheriaRoot)) { + throw "Aetheria repo not found: $AetheriaRoot" +} + +$manifestPath = Join-Path $AetheriaRoot "Packages\manifest.json" +$unityToolkitProject = Join-Path $AetheriaRoot "GameCult.Eve.UnityUIToolkit.csproj" +$surfaceProject = Join-Path $AetheriaRoot "GameCult.Eve.Surface.csproj" +if (-not (Test-Path $manifestPath)) { + throw "Aetheria Unity package manifest not found: $manifestPath" +} +if (-not (Test-Path $unityToolkitProject)) { + throw "Aetheria Unity Toolkit project not found: $unityToolkitProject" +} +if (-not (Test-Path $surfaceProject)) { + throw "Aetheria Eve Surface project not found: $surfaceProject" +} + +$manifest = Get-Content -Raw -LiteralPath $manifestPath +foreach ($dependency in @( + '"org.gamecult.eve.surface": "file:../../Eve/packages/org.gamecult.eve.surface"', + '"org.gamecult.eve.unity-uitoolkit": "file:../../Eve/packages/org.gamecult.eve.unity-uitoolkit"' +)) { + if (-not $manifest.Contains($dependency)) { + throw "Aetheria Packages\manifest.json missing Eve package dependency: $dependency" + } +} + +$project = Get-Content -Raw -LiteralPath $unityToolkitProject +$requiredCompileItems = @( + "Runtime\EveUiToolkitSurfaceOptions.cs", + "Runtime\EveUiToolkitSurfaceLowerer.cs", + "Runtime\IEveUiToolkitPluginHost.cs", + "Runtime\SaiVisualNovelUiToolkitPluginHost.cs", + "Runtime\NornGraphUiToolkitPluginHost.cs" +) +foreach ($compileItem in $requiredCompileItems) { + $expected = Join-Path $eveRoot "packages\org.gamecult.eve.unity-uitoolkit\$compileItem" + if (-not $project.Contains($expected)) { + throw "Aetheria GameCult.Eve.UnityUIToolkit.csproj missing compile item: $expected" + } +} + +Push-Location $AetheriaRoot +try { + dotnet build GameCult.Eve.UnityUIToolkit.csproj --no-restore --nologo -v:minimal +} finally { + Pop-Location +}