A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
build(unity): add Unity-MCP 0.93.3 from OpenUPM
eyalgolanec4f74771ff5
diff --git a/.gitignore b/.gitignoreindex 6799051fe..e22a6f255 100644--- a/.gitignore+++ b/.gitignore@@ -20,6 +20,11 @@ spikes/m0/unity/*.csprojspikes/m0/unity/*.slnxspikes/m0/unity/.vscode/spikes/m0/unity/Assets/Plugins.meta+# Unity-MCP: NuGet DLLs its resolver downloads on first open, and its per-user files (local token, logs)+unity/Assets/Plugins/NuGet/+unity/Assets/Plugins/NuGet.meta+unity/Assets/packages-merged-link/+unity/Assets/packages-merged-link.metaunity/Library/unity/Temp/unity/Logs/diff --git a/scripts/oss/tests/test_unity_mcp.py b/scripts/oss/tests/test_unity_mcp.pynew file mode 100644index 000000000..99b4529ac--- /dev/null+++ b/scripts/oss/tests/test_unity_mcp.py@@ -0,0 +1,50 @@+"""Unity-MCP (com.ivanmurzak.unity.mcp) is the project's standard AI-agent bridge for the Unity editor. These tests pin+how it is installed, so a fresh clone resolves it with no manual steps (a missing OpenUPM scope gave contributors+`error CS0246 'PlayerPrefsBool'`)."""+import json+from pathlib import Path++ROOT = Path(__file__).resolve().parents[3]+PKG, VERSION = "com.ivanmurzak.unity.mcp", "0.93.3"+OPENUPM = "https://package.openupm.com"+++def manifest() -> dict:+ return json.loads((ROOT / "unity/Packages/manifest.json").read_text(encoding="utf-8"))+++def lock() -> dict:+ return json.loads((ROOT / "unity/Packages/packages-lock.json").read_text(encoding="utf-8"))["dependencies"]+++def test_manifest_pins_the_plugin_version():+ assert manifest()["dependencies"][PKG] == VERSION+++def test_openupm_registry_scopes_cover_every_openupm_package_in_the_lock():+ regs = [r for r in manifest().get("scopedRegistries", []) if r["url"] == OPENUPM]+ assert len(regs) == 1+ scopes = regs[0]["scopes"]+ assert "com.ivanmurzak" in scopes and "extensions.unity" in scopes+ from_openupm = [name for name, d in lock().items() if d.get("url") == OPENUPM]+ assert PKG in from_openupm and "extensions.unity.playerprefsex" in from_openupm+ for name in from_openupm:+ assert any(name == s or name.startswith(s + ".") for s in scopes), name+++def test_lock_resolves_the_pinned_plugin_from_openupm():+ entry = lock()[PKG]+ assert entry["version"] == VERSION and entry["source"] == "registry" and entry["url"] == OPENUPM+++def test_project_settings_do_not_commit_the_plugin_gate_defines():+ # The plugin's resolver downloads its NuGet DLLs, then adds UNITY_MCP_READY and UNITY_MCP_DEPS_<n> on each+ # machine. Committed, the defines reach a fresh clone before the DLLs do, and the plugin fails to compile+ # (error CS0234 'System.Text.Json', ...), which stops batch mode. Leave that local change uncommitted.+ text = (ROOT / "unity/ProjectSettings/ProjectSettings.asset").read_text(encoding="utf-8")+ assert "UNITY_MCP_" not in text+++def test_downloaded_nuget_dlls_are_ignored():+ ignore = (ROOT / ".gitignore").read_text(encoding="utf-8").splitlines()+ assert "unity/Assets/Plugins/NuGet/" in ignore and "unity/Assets/Plugins/NuGet.meta" in ignorediff --git a/unity/Packages/manifest.json b/unity/Packages/manifest.jsonindex fbf84ebd1..f5c8145a1 100644--- a/unity/Packages/manifest.json+++ b/unity/Packages/manifest.json@@ -1,5 +1,6 @@{"dependencies": {+ "com.ivanmurzak.unity.mcp": "0.93.3","com.unity.ide.rider": "3.0.40","com.unity.ide.visualstudio": "2.0.26","com.unity.inputsystem": "1.20.0",@@ -39,5 +40,15 @@"com.unity.modules.vr": "1.0.0","com.unity.modules.wind": "1.0.0","com.unity.modules.xr": "1.0.0"- }+ },+ "scopedRegistries": [+ {+ "name": "package.openupm.com",+ "url": "https://package.openupm.com",+ "scopes": [+ "com.ivanmurzak",+ "extensions.unity"+ ]+ }+ ]}diff --git a/unity/Packages/packages-lock.json b/unity/Packages/packages-lock.jsonindex 970beb42c..2812ddf14 100644--- a/unity/Packages/packages-lock.json+++ b/unity/Packages/packages-lock.json@@ -1,5 +1,16 @@{"dependencies": {+ "com.ivanmurzak.unity.mcp": {+ "version": "0.93.3",+ "depth": 0,+ "source": "registry",+ "dependencies": {+ "com.unity.test-framework": "1.1.33",+ "com.unity.modules.uielements": "1.0.0",+ "extensions.unity.playerprefsex": "2.1.5"+ },+ "url": "https://package.openupm.com"+ },"com.unity.burst": {"version": "1.8.30","depth": 2,@@ -147,6 +158,13 @@"com.unity.modules.imgui": "1.0.0"}},+ "extensions.unity.playerprefsex": {+ "version": "2.1.5",+ "depth": 1,+ "source": "registry",+ "dependencies": {},+ "url": "https://package.openupm.com"+ },"com.unity.modules.accessibility": {"version": "1.0.0","depth": 0,