A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
docs,tools: neutralise all three CI variables in every batch Unity command
eyalgolandf08b3051c79
diff --git a/BUILDING.md b/BUILDING.mdindex cde7b9665..f7ab5dab8 100644--- a/BUILDING.md+++ b/BUILDING.md@@ -19,7 +19,7 @@ git clone https://github.com/eyalgolan/statecraft-israel.git && cd statecraft-istools/build_sim_for_unity.sh # the sim DLLs Unity loads (build output, not committed)export UNITY="/Applications/Unity/Hub/Editor/6000.3.25f1/Unity.app/Contents/MacOS/Unity" # macOS path# Windows: "C:\Program Files\Unity\Hub\Editor\6000.3.25f1\Editor\Unity.exe"; Linux: ~/Unity/Hub/Editor/6000.3.25f1/Editor/Unity-"$UNITY" -batchmode -CI false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression disabled -logFile "$PWD/unity-build-web.log"+"$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression disabled -logFile "$PWD/unity-build-web.log"python3 -m http.server 8000 --directory unity/Builds/Web-disabled # then open http://localhost:8000/```@@ -37,7 +37,7 @@ The game scene is `Assets/Map.unity`, and it opens automatically. If it doesn'tTroubleshooting:- `error CS0246: The type or namespace name 'PlayerPrefsBool' could not be found`: the Unity-MCP package (`com.ivanmurzak.unity.mcp`) was installed without its OpenUPM registry (`https://package.openupm.com`), so its dependency `extensions.unity.playerprefsex` is missing. Restore `Packages/manifest.json` and `Packages/packages-lock.json` from git (`git checkout -- unity/Packages`); they already carry the package and the registry.-- About 2,000 `error CS0234` (for example `'Json' does not exist in the namespace 'System.Text'`) from `com.ivanmurzak.unity.mcp` on a first open, and a batch run that then hangs: Unity ran with `CI=true` in its environment, so the plugin skipped its NuGet download but added its defines. Run `git checkout -- unity/ProjectSettings/ProjectSettings.asset`, then run Unity again with `-CI false` (every batch command in these docs has it).+- About 2,000 `error CS0234` (for example `'Json' does not exist in the namespace 'System.Text'`) from `com.ivanmurzak.unity.mcp` on a first open, and a batch run that then hangs: Unity ran with `CI=true`, `GITHUB_ACTIONS=true` or `TF_BUILD=true` in its environment, so the plugin skipped its NuGet download but added its defines. Run `git checkout -- unity/ProjectSettings/ProjectSettings.asset`, then run Unity again with `-CI false -GITHUB_ACTIONS false -TF_BUILD false` (every batch command in these docs has them).- Compile errors from a package that isn't in our `Packages/manifest.json`: remove that package from your local manifest or update it. Unity can't run while there is any compile error.- macOS says "Unity is damaged and can't be opened. Move to Trash": this can happen when the editor is launched outside Unity Hub after Hub installed modules (such as Mac Build Support) inside the app. Click **Cancel**, never Move to Trash. Open the project through Unity Hub. If Hub refuses too, reinstall that editor version (6000.3.25f1) through Unity Hub.@@ -47,7 +47,7 @@ Troubleshooting:- **Install:** nothing to do. The package (`com.ivanmurzak.unity.mcp` 0.93.3) and the OpenUPM registry it needs are already in `unity/Packages/manifest.json`. On the first open, the plugin downloads its NuGet DLLs from nuget.org into `Assets/Plugins/NuGet/` (git-ignored) and its local server, `gamedev-mcp-server`, from the plugin's GitHub releases into `Library/`. Then Unity compiles once more.- **Open** Window → AI Game Developer — MCP.-- **Connection: Custom, held by the project.** `UnityMcpGuard` keeps the plugin in Custom (local) mode in every editor, so Cloud is disabled: choosing it in the window snaps back to Custom. Never sign in: nothing in this project needs an ai-game.dev account. The plugin's own `UNITY_MCP_CONNECTION_MODE` variable would override this; the project doesn't support that. Your settings file, `unity/UserSettings/AI-Game-Developer-Config.json` (per user, git-ignored, holds your local token), may still say Cloud: the project's choice is applied in memory and never written there, so don't edit the file by hand.+- **Connection: Custom, held by the project.** `UnityMcpGuard` keeps the plugin in Custom (local) mode in every editor, so Cloud is disabled. If you pick Cloud in the window, the setting goes back to Custom when the plugin saves and nothing connects to the cloud, but the window can keep showing Cloud (with its sign-in section) and the local server stops: reopen the window and click Start. Never sign in: nothing in this project needs an ai-game.dev account. The plugin's own `UNITY_MCP_CONNECTION_MODE` variable would override this; the project doesn't support that. Your settings file, `unity/UserSettings/AI-Game-Developer-Config.json` (per user, git-ignored, holds your local token), may still say Cloud: the project's choice is applied in memory and never written there, so don't edit the file by hand.- **Server URL:** leave it as the window shows it, with the transport `http`. The port is derived from your project's path, so every clone and worktree gets its own server. A second editor finds an already-running server on its port and attaches to it, so two projects never share one as long as their ports differ.- **Authorization: token, held by the project.** The local server checks a Bearer token (your local token). Never choose "Account sign-in" (oauth): it makes the local server validate tokens online against ai-game.dev.- **The local server starts with the editor.** If you don't use an agent, turn off *Keep server running* in the window.@@ -55,7 +55,7 @@ Troubleshooting:- **The rules still apply:** no game rules in Unity (they live in the sim), tests first, sources for every fact in `content/`, and disclose the AI assistance in your pull request (see "Rules every change follows" and "AI-assisted contributions" in [CONTRIBUTING.md](CONTRIBUTING.md)).- **Security:** the local server lets the agent run editor actions, including editing files and executing code in the editor. It listens on loopback only and rejects browser pages from other sites, and the token keeps other local programs out. Keep it local: never expose the server's port (no port forwarding, tunnels or `0.0.0.0` binds), and stop the server when you're done.- **Not connecting?** Connect only works in an interactive editor: in batch mode (tests and builds) the plugin is held offline on purpose, and its windows don't open. Check that the server shows Running on the port in the Server URL, then click Connect. The first attempt can fail while the server is still starting; the plugin retries. If the editor is stopped without quitting, `gamedev-mcp-server` can stay behind on the port: stop it with the window's Stop button or by its PID.-- **Batch mode and builds:** `UnityMcpGuard` (`unity/Assets/Editor/UnityMcpGuard.cs`) keeps the plugin from connecting, starting its server or opening a window in batch mode (tests and builds), and drops its assemblies from every player build. The browser build's golden hashes don't change. Run batch Unity with `-CI false` (as every command in these docs does): with `CI=true` in the environment (any CI runner, and some agent shells), the plugin skips its NuGet download but still adds its defines, and a fresh clone fails to compile. The update popup is off for the team (`unity/ProjectSettings/AI-Game-Developer-UpdateSettings.asset`); version bumps come by pull request. On every Unity-MCP version bump, run the Unity EditMode tests in batch mode and paste the `UnityMcpGuardTests` result in the pull request.+- **Batch mode and builds:** `UnityMcpGuard` (`unity/Assets/Editor/UnityMcpGuard.cs`) keeps the plugin from connecting, starting its server or opening a window in batch mode (tests and builds), and drops its assemblies from every player build. The browser build's golden hashes don't change. Run batch Unity with `-CI false -GITHUB_ACTIONS false -TF_BUILD false` (as every command in these docs does): the plugin treats `CI`, `GITHUB_ACTIONS` or `TF_BUILD` set to `true` in the environment as CI (every CI runner sets at least one of them, and so do some agent shells), and then it skips its NuGet download but still adds its defines, and a fresh clone fails to compile. The update popup is off for the team (`unity/ProjectSettings/AI-Game-Developer-UpdateSettings.asset`); version bumps come by pull request. On every Unity-MCP version bump, run the Unity EditMode tests in batch mode and paste the `UnityMcpGuardTests` result in the pull request.- **Leave one change uncommitted:** the plugin adds `UNITY_MCP_READY;UNITY_MCP_DEPS_7` to the scripting defines in `unity/ProjectSettings/ProjectSettings.asset` once its DLLs are in place. Don't commit that change: on a fresh clone the defines would arrive before the DLLs, and the plugin wouldn't compile. A policy test refuses it. The post-build cleanup (`git checkout -- unity/Assets/Settings unity/ProjectSettings/ProjectSettings.asset`) drops the defines too; the plugin adds them back on the next open, at the cost of one extra compile.- **Per-user state the plugin keeps:** besides the settings file, it stores `Unity-MCP.MainWindow.Initialized` and `Unity_MCP_SelectedAiAgent` in this project's editor PlayerPrefs, and the server's PID and update-check state in EditorPrefs.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex f636b94ba..76a138da8 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -41,7 +41,7 @@ Follow [docs/dev-setup.md](docs/dev-setup.md). In short:- the repository policy checks:`uv run --with pytest==9.1.1 --with pyyaml==6.0.3 --with requests==2.32.5 pytest scripts/oss/tests -q` and `uv run scripts/oss/check_repo.py` (the command CI runs);- Unity EditMode tests, if you touched `unity/` (`-buildTarget OSXUniversal` keeps an earlier WebGL build from leaving the editor on the wrong platform):- `"$UNITY" -batchmode -CI false -projectPath unity -buildTarget OSXUniversal -runTests -testPlatform EditMode -testResults "$PWD/unity-editmode.xml" -logFile unity-tests.log`. There must be 0 `warning CS` in the log.+ `"$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -projectPath unity -buildTarget OSXUniversal -runTests -testPlatform EditMode -testResults "$PWD/unity-editmode.xml" -logFile unity-tests.log`. There must be 0 `warning CS` in the log.4. **Text the player sees** has no internal ids, gives dates as "15 May 1948", and shows money as "IL 1.2m" or "$1.2m". The tests enforce this.5. **Keep the pull request focused:** one change per PR, and no unrelated refactors.6. **Changelog.** If you change `sim/`, `content/` or `unity/` (tests excepted), add a line under `## [Unreleased]` in [CHANGELOG.md](CHANGELOG.md). CI's `Changelog` job checks it; the maintainer can add the `no-changelog` label to a change no player would notice.@@ -65,7 +65,7 @@ AI-assisted work is welcome. Say so in the pull request: which parts, and how yo- **Install:** nothing to do. The package (`com.ivanmurzak.unity.mcp` 0.93.3) and the OpenUPM registry it needs are already in `unity/Packages/manifest.json`. On the first open, the plugin downloads its NuGet DLLs from nuget.org into `Assets/Plugins/NuGet/` (git-ignored) and its local server, `gamedev-mcp-server`, from the plugin's GitHub releases into `Library/`. Then Unity compiles once more.- **Open** Window → AI Game Developer — MCP.-- **Connection: Custom, held by the project.** `UnityMcpGuard` keeps the plugin in Custom (local) mode in every editor, so Cloud is disabled: choosing it in the window snaps back to Custom. Never sign in: nothing in this project needs an ai-game.dev account. The plugin's own `UNITY_MCP_CONNECTION_MODE` variable would override this; the project doesn't support that. Your settings file, `unity/UserSettings/AI-Game-Developer-Config.json` (per user, git-ignored, holds your local token), may still say Cloud: the project's choice is applied in memory and never written there, so don't edit the file by hand.+- **Connection: Custom, held by the project.** `UnityMcpGuard` keeps the plugin in Custom (local) mode in every editor, so Cloud is disabled. If you pick Cloud in the window, the setting goes back to Custom when the plugin saves and nothing connects to the cloud, but the window can keep showing Cloud (with its sign-in section) and the local server stops: reopen the window and click Start. Never sign in: nothing in this project needs an ai-game.dev account. The plugin's own `UNITY_MCP_CONNECTION_MODE` variable would override this; the project doesn't support that. Your settings file, `unity/UserSettings/AI-Game-Developer-Config.json` (per user, git-ignored, holds your local token), may still say Cloud: the project's choice is applied in memory and never written there, so don't edit the file by hand.- **Server URL:** leave it as the window shows it, with the transport `http`. The port is derived from your project's path, so every clone and worktree gets its own server. A second editor finds an already-running server on its port and attaches to it, so two projects never share one as long as their ports differ.- **Authorization: token, held by the project.** The local server checks a Bearer token (your local token). Never choose "Account sign-in" (oauth): it makes the local server validate tokens online against ai-game.dev.- **The local server starts with the editor.** If you don't use an agent, turn off *Keep server running* in the window.@@ -73,7 +73,7 @@ AI-assisted work is welcome. Say so in the pull request: which parts, and how yo- **The rules still apply:** no game rules in Unity (they live in the sim), tests first, sources for every fact in `content/`, and disclose the AI assistance in your pull request (see "Rules every change follows" and "AI-assisted contributions" above).- **Security:** the local server lets the agent run editor actions, including editing files and executing code in the editor. It listens on loopback only and rejects browser pages from other sites, and the token keeps other local programs out. Keep it local: never expose the server's port (no port forwarding, tunnels or `0.0.0.0` binds), and stop the server when you're done.- **Not connecting?** Connect only works in an interactive editor: in batch mode (tests and builds) the plugin is held offline on purpose, and its windows don't open. Check that the server shows Running on the port in the Server URL, then click Connect. The first attempt can fail while the server is still starting; the plugin retries. If the editor is stopped without quitting, `gamedev-mcp-server` can stay behind on the port: stop it with the window's Stop button or by its PID.-- **Batch mode and builds:** `UnityMcpGuard` (`unity/Assets/Editor/UnityMcpGuard.cs`) keeps the plugin from connecting, starting its server or opening a window in batch mode (tests and builds), and drops its assemblies from every player build. The browser build's golden hashes don't change. Run batch Unity with `-CI false` (as every command in these docs does): with `CI=true` in the environment (any CI runner, and some agent shells), the plugin skips its NuGet download but still adds its defines, and a fresh clone fails to compile. The update popup is off for the team (`unity/ProjectSettings/AI-Game-Developer-UpdateSettings.asset`); version bumps come by pull request. On every Unity-MCP version bump, run the Unity EditMode tests in batch mode and paste the `UnityMcpGuardTests` result in the pull request.+- **Batch mode and builds:** `UnityMcpGuard` (`unity/Assets/Editor/UnityMcpGuard.cs`) keeps the plugin from connecting, starting its server or opening a window in batch mode (tests and builds), and drops its assemblies from every player build. The browser build's golden hashes don't change. Run batch Unity with `-CI false -GITHUB_ACTIONS false -TF_BUILD false` (as every command in these docs does): the plugin treats `CI`, `GITHUB_ACTIONS` or `TF_BUILD` set to `true` in the environment as CI (every CI runner sets at least one of them, and so do some agent shells), and then it skips its NuGet download but still adds its defines, and a fresh clone fails to compile. The update popup is off for the team (`unity/ProjectSettings/AI-Game-Developer-UpdateSettings.asset`); version bumps come by pull request. On every Unity-MCP version bump, run the Unity EditMode tests in batch mode and paste the `UnityMcpGuardTests` result in the pull request.- **Leave one change uncommitted:** the plugin adds `UNITY_MCP_READY;UNITY_MCP_DEPS_7` to the scripting defines in `unity/ProjectSettings/ProjectSettings.asset` once its DLLs are in place. Don't commit that change: on a fresh clone the defines would arrive before the DLLs, and the plugin wouldn't compile. A policy test refuses it. The post-build cleanup (`git checkout -- unity/Assets/Settings unity/ProjectSettings/ProjectSettings.asset`) drops the defines too; the plugin adds them back on the next open, at the cost of one extra compile.- **Per-user state the plugin keeps:** besides the settings file, it stores `Unity-MCP.MainWindow.Initialized` and `Unity_MCP_SelectedAiAgent` in this project's editor PlayerPrefs, and the server's PID and update-check state in EditorPrefs.@@ -87,7 +87,7 @@ AI-assisted work is welcome. Say so in the pull request: which parts, and how yoEvery pull request and every push to `main` runs `Sim (dotnet test)`, `Tools (pytest)`, `Repo policy`, and, on pull requests, `Changelog`. The jobs use no secrets, call no paid API, run no AI agent and push nothing.-**Unity EditMode tests are not in CI.** Running Unity in CI needs the maintainer's Unity account credentials stored as repository secrets. GitHub never gives secrets to pull requests from forks, so the job could not run on the pull requests that most need it, and those credentials would sit on machines that run outside code. So the Unity tests are a local gate: paste their result in your PR, and the maintainer re-runs them before merging any change under `unity/`. A future Unity job must run Unity with `-CI false` (runners set `CI=true`, and the Unity-MCP plugin would then skip its NuGet download and fail to compile), or commit the plugin's DLLs.+**Unity EditMode tests are not in CI.** Running Unity in CI needs the maintainer's Unity account credentials stored as repository secrets. GitHub never gives secrets to pull requests from forks, so the job could not run on the pull requests that most need it, and those credentials would sit on machines that run outside code. So the Unity tests are a local gate: paste their result in your PR, and the maintainer re-runs them before merging any change under `unity/`. A future Unity job must run Unity with `-CI false -GITHUB_ACTIONS false -TF_BUILD false` (runners set `CI=true`, and GitHub Actions and Azure Pipelines also set `GITHUB_ACTIONS=true` or `TF_BUILD=true`; the Unity-MCP plugin treats any of them as CI, then skips its NuGet download and fails to compile), or commit the plugin's DLLs.## Securitydiff --git a/README.he.md b/README.he.mdindex 3953dfe5c..1ab4c39ac 100644--- a/README.he.md+++ b/README.he.md@@ -55,7 +55,7 @@פתרון בעיות:- השגיאה <span dir="ltr">`error CS0246 'PlayerPrefsBool'`</span> פירושה שחבילת Unity-MCP (<span dir="ltr">`com.ivanmurzak.unity.mcp`</span>) הותקנה בלי מאגר OpenUPM שלה (<span dir="ltr">`https://package.openupm.com`</span>), ולכן חסרה התלות <span dir="ltr">`extensions.unity.playerprefsex`</span>. שחזרו מ־git את <span dir="ltr">`Packages/manifest.json`</span> ואת <span dir="ltr">`Packages/packages-lock.json`</span>; החבילה והמאגר כבר מוגדרים בהם.-- כ־2,000 שגיאות <span dir="ltr">`error CS0234`</span> מ־<span dir="ltr">`com.ivanmurzak.unity.mcp`</span> בפתיחה ראשונה, והרצת batch שנתקעת אחריהן: Unity רץ כשבסביבה מוגדר <span dir="ltr">`CI=true`</span>, ולכן התוסף דילג על הורדת ה־NuGet אבל הוסיף את ההגדרות שלו. הריצו <span dir="ltr">`git checkout -- unity/ProjectSettings/ProjectSettings.asset`</span> והפעילו את Unity שוב עם <span dir="ltr">`-CI false`</span>.+- כ־2,000 שגיאות <span dir="ltr">`error CS0234`</span> מ־<span dir="ltr">`com.ivanmurzak.unity.mcp`</span> בפתיחה ראשונה, והרצת batch שנתקעת אחריהן: Unity רץ כשבסביבה מוגדר <span dir="ltr">`CI=true`</span>, <span dir="ltr">`GITHUB_ACTIONS=true`</span> או <span dir="ltr">`TF_BUILD=true`</span>, ולכן התוסף דילג על הורדת ה־NuGet אבל הוסיף את ההגדרות שלו. הריצו <span dir="ltr">`git checkout -- unity/ProjectSettings/ProjectSettings.asset`</span> והפעילו את Unity שוב עם <span dir="ltr">`-CI false -GITHUB_ACTIONS false -TF_BUILD false`</span>.- שגיאות קומפילציה מחבילה שאינה ב־<span dir="ltr">`Packages/manifest.json`</span> שלנו: הסירו את החבילה מקובץ ה־manifest המקומי שלכם או עדכנו אותה. Unity אינו יכול לרוץ כל עוד יש שגיאת קומפילציה.- ב־macOS מופיעה ההודעה "Unity is damaged and can't be opened. Move to Trash": זה יכול לקרות כשמפעילים את העורך מחוץ ל־Unity Hub אחרי ש־Hub התקין מודולים (כמו Mac Build Support) בתוך האפליקציה. לחצו **Cancel**, ולעולם לא Move to Trash. פתחו את הפרויקט דרך Unity Hub. אם גם Hub מסרב, התקינו מחדש את גרסת העורך (6000.3.25f1) דרך Unity Hub.@@ -77,7 +77,7 @@- **התקנה:** אין מה להתקין. החבילה (<span dir="ltr">`com.ivanmurzak.unity.mcp`</span> בגרסה 0.93.3) ומאגר OpenUPM שהיא צריכה כבר נמצאים ב־<span dir="ltr">`unity/Packages/manifest.json`</span>. בפתיחה הראשונה התוסף מוריד את קובצי ה־DLL שלו מ־nuget.org ואת השרת המקומי שלו, <span dir="ltr">`gamedev-mcp-server`</span>, ו־Unity מקמפל פעם נוספת.- **פתיחה:** <span dir="ltr">Window → AI Game Developer — MCP</span>.-- **חיבור: Custom, נקבע בפרויקט.** <span dir="ltr">`UnityMcpGuard`</span> מחזיק את התוסף במצב Custom (מקומי) בכל עורך, ולכן Cloud מנוטרל: בחירה בו בחלון חוזרת ל־Custom. לעולם אל תתחברו לשום חשבון; הפרויקט לא צריך חשבון ai-game.dev. המשתנה <span dir="ltr">`UNITY_MCP_CONNECTION_MODE`</span> של התוסף היה עוקף את זה, והפרויקט לא תומך בכך. קובץ ההגדרות האישי, <span dir="ltr">`unity/UserSettings/AI-Game-Developer-Config.json`</span> (מחוץ ל־git, ויש בו גם הטוקן המקומי שלכם), עשוי עדיין להראות Cloud: בחירת הפרויקט מוחלת בזיכרון ולא נכתבת לקובץ, אז אל תערכו אותו ידנית.+- **חיבור: Custom, נקבע בפרויקט.** <span dir="ltr">`UnityMcpGuard`</span> מחזיק את התוסף במצב Custom (מקומי) בכל עורך, ולכן Cloud מנוטרל. אם בוחרים Cloud בחלון, ההגדרה חוזרת ל־Custom כשהתוסף שומר ושום דבר לא מתחבר לענן, אבל החלון עלול להמשיך להציג Cloud (עם אזור ההתחברות שלו) והשרת המקומי נעצר: פתחו את החלון מחדש ולחצו Start. לעולם אל תתחברו לשום חשבון; הפרויקט לא צריך חשבון ai-game.dev. המשתנה <span dir="ltr">`UNITY_MCP_CONNECTION_MODE`</span> של התוסף היה עוקף את זה, והפרויקט לא תומך בכך. קובץ ההגדרות האישי, <span dir="ltr">`unity/UserSettings/AI-Game-Developer-Config.json`</span> (מחוץ ל־git, ויש בו גם הטוקן המקומי שלכם), עשוי עדיין להראות Cloud: בחירת הפרויקט מוחלת בזיכרון ולא נכתבת לקובץ, אז אל תערכו אותו ידנית.- **כתובת השרת:** השאירו אותה כפי שהחלון מציג, עם תעבורה http. הפורט נגזר מנתיב הפרויקט, כך שלכל שכפול ו־worktree יש שרת משלו. עורך נוסף שמוצא שרת שכבר רץ על הפורט שלו מתחבר אליו, ולכן שני פרויקטים לא חולקים שרת כל עוד הפורטים שלהם שונים.- **הרשאה: token, נקבע בפרויקט.** השרת המקומי בודק טוקן Bearer (הטוקן המקומי שלכם). לעולם אל תבחרו "Account sign-in" (oauth): הוא גורם לשרת המקומי לאמת טוקנים ברשת מול ai-game.dev.- **השרת המקומי עולה עם העורך.** אם אינכם עובדים עם סוכן, כבו את *Keep server running* בחלון.@@ -85,7 +85,7 @@- **הכללים בתוקף:** כללי המשחק נשארים בסימולציה ולא ב־Unity, בדיקות קודם, מקור לכל עובדה, ומצהירים בבקשת המיזוג על הסיוע של בינה מלאכותית.- **אבטחה:** השרת המקומי מאפשר לסוכן להריץ פעולות בעורך, כולל עריכת קבצים והרצת קוד. הוא מאזין רק לכתובות המקומיות ודוחה דפי דפדפן מאתרים אחרים, והטוקן מונע מתוכנות מקומיות אחרות להשתמש בו. השאירו אותו מקומי ולעולם אל תחשפו את הפורט שלו החוצה.- **אין חיבור?** Connect עובד רק בעורך אינטראקטיבי: במצב batch (בדיקות ובנייה) התוסף מנותק בכוונה, והחלונות שלו לא נפתחים. ודאו שהשרת מסומן Running על הפורט שבכתובת השרת, ולחצו Connect. הניסיון הראשון יכול להיכשל בזמן שהשרת עולה; התוסף מנסה שוב. אם העורך נעצר בלי יציאה מסודרת, <span dir="ltr">`gamedev-mcp-server`</span> עלול להישאר על הפורט: עצרו אותו בכפתור Stop בחלון או לפי ה־PID שלו.-- **מצב batch ובנייה:** <span dir="ltr">`UnityMcpGuard`</span> (<span dir="ltr">`unity/Assets/Editor/UnityMcpGuard.cs`</span>) מונע מהתוסף להתחבר, להפעיל את השרת או לפתוח חלון במצב batch (בדיקות ובנייה), ומוציא את הרכיבים שלו מכל בניית נגן. ערכי הגיבוב (hash) של בדיקות ה־golden בגרסת הדפדפן לא משתנים. הריצו Unity במצב batch עם <span dir="ltr">`-CI false`</span> (כמו בכל הפקודות במסמכים): כשבסביבה מוגדר <span dir="ltr">`CI=true`</span> (בכל שרת CI ובחלק מסביבות הסוכנים), התוסף מדלג על הורדת ה־NuGet אבל עדיין מוסיף את ההגדרות שלו, ושכפול חדש לא מתקמפל. חלון העדכונים כבוי לכל הצוות (<span dir="ltr">`unity/ProjectSettings/AI-Game-Developer-UpdateSettings.asset`</span>); עדכוני גרסה מגיעים בבקשת מיזוג.+- **מצב batch ובנייה:** <span dir="ltr">`UnityMcpGuard`</span> (<span dir="ltr">`unity/Assets/Editor/UnityMcpGuard.cs`</span>) מונע מהתוסף להתחבר, להפעיל את השרת או לפתוח חלון במצב batch (בדיקות ובנייה), ומוציא את הרכיבים שלו מכל בניית נגן. ערכי הגיבוב (hash) של בדיקות ה־golden בגרסת הדפדפן לא משתנים. הריצו Unity במצב batch עם <span dir="ltr">`-CI false -GITHUB_ACTIONS false -TF_BUILD false`</span> (כמו בכל הפקודות במסמכים): התוסף מתייחס ל־<span dir="ltr">`CI`</span>, <span dir="ltr">`GITHUB_ACTIONS`</span> או <span dir="ltr">`TF_BUILD`</span> שערכם <span dir="ltr">`true`</span> כאל CI (כל שרת CI מגדיר לפחות אחד מהם, וכך גם חלק מסביבות הסוכנים), ואז הוא מדלג על הורדת ה־NuGet אבל עדיין מוסיף את ההגדרות שלו, ושכפול חדש לא מתקמפל. חלון העדכונים כבוי לכל הצוות (<span dir="ltr">`unity/ProjectSettings/AI-Game-Developer-UpdateSettings.asset`</span>); עדכוני גרסה מגיעים בבקשת מיזוג.- **שינוי שלא מוסיפים ל־git:** אחרי שקובצי ה־DLL במקומם, התוסף מוסיף את <span dir="ltr">`UNITY_MCP_READY;UNITY_MCP_DEPS_7`</span> להגדרות הסקריפטים ב־<span dir="ltr">`unity/ProjectSettings/ProjectSettings.asset`</span>. אל תוסיפו את השינוי הזה ל־commit: בשכפול חדש ההגדרות יגיעו לפני קובצי ה־DLL והתוסף לא יתקמפל. בדיקת מדיניות חוסמת אותו. הניקוי שאחרי בנייה (<span dir="ltr">`git checkout -- unity/Assets/Settings unity/ProjectSettings/ProjectSettings.asset`</span>) מוחק גם את ההגדרות; התוסף מחזיר אותן בפתיחה הבאה, במחיר קומפילציה נוספת אחת.- **מצב אישי שהתוסף שומר:** מלבד קובץ ההגדרות, הוא שומר את <span dir="ltr">`Unity-MCP.MainWindow.Initialized`</span> ואת <span dir="ltr">`Unity_MCP_SelectedAiAgent`</span> ב־PlayerPrefs של העורך בפרויקט הזה, ואת ה־PID של השרת ואת מצב בדיקת העדכונים ב־EditorPrefs.diff --git a/docs/RELEASING.md b/docs/RELEASING.mdindex 388663a17..38b4265a0 100644--- a/docs/RELEASING.md+++ b/docs/RELEASING.md@@ -16,7 +16,7 @@ GitHub Releases page (and, from M4, on itch.io). Steps 1–3 are a normal pull r5. **Build and package** on the owner's machine, from the merged `main`:```bash- "$UNITY" -batchmode -CI false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression brotli -shareable -logFile "$PWD/unity-build-web-br.log"+ "$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression brotli -shareable -logFile "$PWD/unity-build-web-br.log"git checkout -- unity/Assets/Settings unity/ProjectSettings/ProjectSettings.assetuv run tools/web_check.py unity/Builds/Web-brotli --query "golden&smoke=5" \--expect "GOLDEN OK 1950 71e9904d0ee48083db9bbba281f3f046136482ba83ee056e48d57b62e76a5b07" \diff --git a/docs/determinism.md b/docs/determinism.mdindex 858fbf482..91466d816 100644--- a/docs/determinism.md+++ b/docs/determinism.md@@ -61,9 +61,9 @@ IL2CPP player in Chrome (M3 Task 22). Re-checked at the M3 merge candidate (2026Re-check with:```-"$UNITY" -batchmode -CI false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression disabled -logFile unity-build-web.log+"$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression disabled -logFile unity-build-web.loguv run tools/web_check.py unity/Builds/Web-disabled --query golden --expect "GOLDEN OK 1950" --expect "GOLDEN OK 1952"-"$UNITY" -batchmode -CI false -quit -projectPath unity -buildTarget OSXUniversal -executeMethod Statecraft.Game.EditorTools.Build.Mac -logFile unity-build-mac.log+"$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget OSXUniversal -executeMethod Statecraft.Game.EditorTools.Build.Mac -logFile unity-build-mac.log"unity/Builds/Mac/Statecraft.app/Contents/MacOS/Statecraft Israel" -batchmode -nographics -golden -logFile "$PWD/unity-golden-mac.log"; echo exit=$?```diff --git a/docs/dev-setup.md b/docs/dev-setup.mdindex 8bc504b8e..12ea26a34 100644--- a/docs/dev-setup.md+++ b/docs/dev-setup.md@@ -13,9 +13,9 @@- Run `tools/build_sim_for_unity.sh` before opening `unity/`. The sim DLLs are build output and are git-ignored.## Builds and browser checks (M3)-- Web build: `"$UNITY" -batchmode -CI false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression disabled -logFile "$PWD/unity-build-web.log"`+- Web build: `"$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression disabled -logFile "$PWD/unity-build-web.log"`(`-compression` is `disabled`, `gzip` or `brotli`; output in `unity/Builds/Web-<compression>/`, about 2 minutes).-- macOS IL2CPP build: `"$UNITY" -batchmode -CI false -quit -projectPath unity -buildTarget OSXUniversal -executeMethod Statecraft.Game.EditorTools.Build.Mac -logFile "$PWD/unity-build-mac.log"`+- macOS IL2CPP build: `"$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget OSXUniversal -executeMethod Statecraft.Game.EditorTools.Build.Mac -logFile "$PWD/unity-build-mac.log"`(output `unity/Builds/Mac/Statecraft.app`).- Browser check: `uv run tools/web_check.py unity/Builds/Web-disabled --query "golden&smoke=5"` with the three full `--expect`values pinned in `docs/determinism.md` (both goldens and the smoke line).diff --git a/docs/m3-release.md b/docs/m3-release.mdindex 21104b78f..465d4ac0e 100644--- a/docs/m3-release.md+++ b/docs/m3-release.md@@ -5,7 +5,7 @@ start of M4, as a private Draft (owner ruling, 2026-10-10); their sections below## What ships- **Folder and zip:** `unity/Builds/Web-brotli/` uses Brotli compression with no decompression fallback. It is zipped as `unity/Builds/statecraft-m3-web.zip`, with `index.html` at the zip root. Both are build output and are not committed.-- **Built by:** `"$UNITY" -batchmode -CI false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression brotli -logFile "$PWD/unity-build-web-br.log"`, then `python3 tools/package_release.py` (it zips the folder, `index.html` at the root, and refuses until the sensitivity review below is done). Never zip by hand.+- **Built by:** `"$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression brotli -logFile "$PWD/unity-build-web-br.log"`, then `python3 tools/package_release.py` (it zips the folder, `index.html` at the root, and refuses until the sensitivity review below is done). Never zip by hand.- **After building:** drop the build's rewrites of the settings with`git checkout -- unity/Assets/Settings unity/ProjectSettings/ProjectSettings.asset` (as in `dev-setup.md`), so nobuild-cache change gets committed.diff --git a/scripts/oss/tests/test_readme.py b/scripts/oss/tests/test_readme.pyindex 53c4b6119..cbcb75c72 100644--- a/scripts/oss/tests/test_readme.py+++ b/scripts/oss/tests/test_readme.py@@ -188,8 +188,9 @@ def test_unity_mcp_section_is_in_contributing_and_building_with_the_same_facts()"derived from your project's path", "http", "token", "Bearer", "Account sign-in","Keep server running", "Configure", "Generate", "unity/.mcp.json","no game rules in Unity", "tests first", "sources", "AI assistance",- "editor actions", "never expose", "batch mode", "UnityMcpGuard", "player build", "-CI false",- "CI=true", "AI-Game-Developer-UpdateSettings.asset", "UnityMcpGuardTests",+ "editor actions", "never expose", "batch mode", "UnityMcpGuard", "player build", "-CI false -GITHUB_ACTIONS false -TF_BUILD false",+ "GITHUB_ACTIONS", "TF_BUILD", "AI-Game-Developer-UpdateSettings.asset", "UnityMcpGuardTests",+ "reopen the window and click Start","ProjectSettings.asset", "UNITY_MCP_READY", "nuget.org", "Not connecting?", "gamedev-mcp-server","PID", "Unity-MCP.MainWindow.Initialized", "Unity_MCP_SelectedAiAgent"):assert fact in text, (rel, fact)@@ -202,8 +203,9 @@ def test_hebrew_readme_carries_the_unity_mcp_facts():for fact in ("Unity-MCP", "0.93.3", "Window → AI Game Developer", "Custom", "Cloud", "UNITY_MCP_CONNECTION_MODE","UserSettings/AI-Game-Developer-Config.json", "http", "token", "Bearer", "Account sign-in","Keep server running", "Configure", "Generate", "unity/.mcp.json", "ProjectSettings.asset",- "UNITY_MCP_READY", "nuget.org", "gamedev-mcp-server", "PID", "batch", "UnityMcpGuard", "-CI false",- "CI=true", "AI-Game-Developer-UpdateSettings.asset", "git checkout -- unity/Assets/Settings",+ "UNITY_MCP_READY", "nuget.org", "gamedev-mcp-server", "PID", "batch", "UnityMcpGuard", "-CI false -GITHUB_ACTIONS false -TF_BUILD false",+ "GITHUB_ACTIONS", "TF_BUILD", "AI-Game-Developer-UpdateSettings.asset", "git checkout -- unity/Assets/Settings",+ "פתחו את החלון מחדש","Unity-MCP.MainWindow.Initialized", "Unity_MCP_SelectedAiAgent"):assert fact in he, factfor idea in ("כללי המשחק", "בדיקות", "מקור", "בינה מלאכותית", "פורט", "נתיב"):@@ -228,5 +230,5 @@ def test_playerprefsbool_error_points_at_the_openupm_registry():def test_ci_true_troubleshooting_is_in_building_and_hebrew():for rel in ("BUILDING.md", "README.he.md"):text = read(rel)- for fact in ("error CS0234", "CI=true", "-CI false", "git checkout -- unity/ProjectSettings/ProjectSettings.asset"):+ for fact in ("error CS0234", "CI=true", "GITHUB_ACTIONS=true", "-CI false -GITHUB_ACTIONS false -TF_BUILD false", "git checkout -- unity/ProjectSettings/ProjectSettings.asset"):assert fact in text, (rel, fact)diff --git a/scripts/oss/tests/test_unity_mcp.py b/scripts/oss/tests/test_unity_mcp.pyindex 0f47d7980..e249b8fac 100644--- a/scripts/oss/tests/test_unity_mcp.py+++ b/scripts/oss/tests/test_unity_mcp.py@@ -78,24 +78,37 @@ def test_update_popup_is_off_for_the_team():assert "UnityMcpUpdateProjectSettings" in text and "disableUpdateNotificationsForTeam: 1" in text+CI_OFF = "-CI false -GITHUB_ACTIONS false -TF_BUILD false"++def test_every_documented_batch_unity_command_turns_the_plugins_ci_mode_off():- # With CI=true in the environment the plugin's resolver skips its NuGet download but still adds its gate defines,- # so a fresh clone fails to compile (2026-10-10, fix round 1). "-CI false" wins over the environment.- files = [f for f in subprocess.run(["git", "-C", str(ROOT), "ls-files", "-z", "*.md", "tools/*.sh", "scripts/*.sh"],+ # The plugin treats CI, GITHUB_ACTIONS or TF_BUILD = true as CI: its resolver then skips its NuGet download but still+ # adds its gate defines, so a fresh clone fails to compile and the batch run hangs (fix rounds 1 and 2). The plugin+ # reads each key from the command line before the environment, so these three arguments win. Any line that starts+ # Unity in batch mode on the project, in any form, must carry them.+ files = [f for f in subprocess.run(["git", "-C", str(ROOT), "ls-files", "-z", "*.md", "tools/*.sh", "scripts/*.sh",+ "unity/Assets/Editor/*.cs"],capture_output=True, check=True, text=True).stdout.split("\0") if f]files = [f for f in files if not f.startswith(("docs/superpowers/", "reports/", "research_notes/", "spikes/"))]seen = 0for rel in files:for n, line in enumerate((ROOT / rel).read_text(encoding="utf-8").splitlines(), 1):- if '"$UNITY" -batchmode' in line:+ if "-batchmode" in line and "-projectPath" in line:seen += 1- assert "-CI false" in line, f"{rel}:{n}"- assert seen >= 8+ assert CI_OFF in line, f"{rel}:{n}"+ assert seen >= 17def test_ci_section_says_a_unity_job_must_turn_ci_mode_off():text = (ROOT / "CONTRIBUTING.md").read_text(encoding="utf-8").split("## What CI runs", 1)[1].split("\n## ", 1)[0]- assert "-CI false" in text+ assert CI_OFF in text and "GITHUB_ACTIONS" in text and "TF_BUILD" in text+++def test_docs_name_all_three_ci_variables():+ for rel in ("CONTRIBUTING.md", "BUILDING.md", "README.he.md"):+ text = (ROOT / rel).read_text(encoding="utf-8")+ for fact in ("GITHUB_ACTIONS", "TF_BUILD", CI_OFF):+ assert fact in text, (rel, fact)def test_upstream_feature_request_draft_is_kept_for_the_owner():diff --git a/tools/art_checkpoint.sh b/tools/art_checkpoint.shindex 7910aaf0b..fa55d6209 100755--- a/tools/art_checkpoint.sh+++ b/tools/art_checkpoint.sh@@ -24,7 +24,7 @@ if ! git diff --quiet -- "${guarded[@]}"; thenfitrap 'git checkout -- "${guarded[@]}"' EXITif [[ $build == 1 ]]; then- shared "$UNITY" -batchmode -CI false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression disabled -logFile "$root/unity-build-web-art.log"+ shared "$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression disabled -logFile "$root/unity-build-web-art.log"git checkout -- unity/Assets/Settings unity/ProjectSettings/ProjectSettings.assetif grep -n "Shader error" "$root/unity-build-web-art.log"; then echo "art_checkpoint: shader errors in the WebGL build" >&2; exit 1; fifi@@ -39,7 +39,7 @@ poses=$(grep -o 'new PromoPose("[A-Za-z0-9_]*"' unity/Assets/Scripts/Map/PromoPofor pose in $poses; do[[ -s "$out/$pose.png" ]] || { echo "art_checkpoint: $out/$pose.png is missing" >&2; exit 1; }done-shared "$UNITY" -batchmode -CI false -quit -projectPath unity -buildTarget OSXUniversal -executeMethod MapCapture.Promo -captureDir "$root/$out/editor" -logFile "$root/unity-capture-promo.log"+shared "$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget OSXUniversal -executeMethod MapCapture.Promo -captureDir "$root/$out/editor" -logFile "$root/unity-capture-promo.log"git checkout -- unity/ProjectSettings/QualitySettings.asset # SetQualityLevel may have written m_CurrentQuality (no unstaged edits: checked above)uv run tools/art_compare.py "$out" "$name" --log "$main_root/captures/visual/art-log.tsv"echo "ART CHECKPOINT $name: $(ls "$out"/*-compare*.png "$out"/editor/*-compare*.png | tr '\n' ' ')"diff --git a/unity/Assets/Editor/Build.cs b/unity/Assets/Editor/Build.csindex 3f6d660be..ef6e43a9b 100644--- a/unity/Assets/Editor/Build.cs+++ b/unity/Assets/Editor/Build.cs@@ -11,9 +11,9 @@ namespace Statecraft.Game.EditorTools{/// <summary>Headless player builds. Map.unity is the boot scene; ContentSync copies content/ into StreamingAssets/// first (IPreprocessBuildWithReport). Exits non-zero on failure.- /// Web: Unity -batchmode -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web+ /// Web: Unity -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web/// [-compression disabled|gzip|brotli] [-out Builds/Web-disabled]- /// Mac: Unity -batchmode -quit -projectPath unity -buildTarget OSXUniversal -executeMethod Statecraft.Game.EditorTools.Build.Mac+ /// Mac: Unity -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget OSXUniversal -executeMethod Statecraft.Game.EditorTools.Build.Mac/// [-out Builds/Mac/Statecraft.app] [-ffp-contract-off]</summary>public static class Build{diff --git a/unity/Assets/Editor/ContentSync.cs b/unity/Assets/Editor/ContentSync.csindex 915a8e8b5..361979a8e 100644--- a/unity/Assets/Editor/ContentSync.cs+++ b/unity/Assets/Editor/ContentSync.cs@@ -8,7 +8,7 @@ namespace Statecraft.Game.EditorTools{/// <summary>Copies the repository's content/ into Assets/StreamingAssets/content with a manifest.json before every/// player build (git-ignored output), so players read the same content the editor reads from the repo.- /// Run alone: Unity -batchmode -quit -projectPath unity -executeMethod Statecraft.Game.EditorTools.ContentSync.Sync</summary>+ /// Run alone: Unity -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -executeMethod Statecraft.Game.EditorTools.ContentSync.Sync</summary>public sealed class ContentSync : IPreprocessBuildWithReport{public static string Target => Path.Combine(UnityEngine.Application.dataPath, "StreamingAssets", "content");diff --git a/unity/Assets/Editor/MapCapture.cs b/unity/Assets/Editor/MapCapture.csindex 2cadb0678..a5a77ac13 100644--- a/unity/Assets/Editor/MapCapture.cs+++ b/unity/Assets/Editor/MapCapture.cs@@ -10,7 +10,7 @@ using UnityEngine;using UnityEngine.UIElements;/// <summary>Editor capture tools. Run headless (with graphics, not -nographics):-/// Unity -batchmode -quit -projectPath unity -executeMethod MapCapture.TopDown (or MapCapture.Flythrough).+/// Unity -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -executeMethod MapCapture.TopDown (or MapCapture.Flythrough)./// Captures go to captures/ at the repo root, which git ignores.</summary>public static class MapCapture{diff --git a/unity/Assets/Editor/MapMaterials.cs b/unity/Assets/Editor/MapMaterials.csindex d004d069b..0ba99b81a 100644--- a/unity/Assets/Editor/MapMaterials.cs+++ b/unity/Assets/Editor/MapMaterials.cs@@ -5,7 +5,7 @@ namespace Statecraft.Game.EditorTools{/// <summary>Creates the map's material assets (M0 correction 1: Shader.Find returns null in players, so materials are/// editor-made assets passed to MapBuilder.Build through serialized fields). Idempotent.- /// Run headless: Unity -batchmode -quit -projectPath unity -executeMethod Statecraft.Game.EditorTools.MapMaterials.Create</summary>+ /// Run headless: Unity -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -executeMethod Statecraft.Game.EditorTools.MapMaterials.Create</summary>public static class MapMaterials{public const string Folder = "Assets/Materials";diff --git a/unity/Assets/Editor/PortraitImport.cs b/unity/Assets/Editor/PortraitImport.csindex b60e8c904..fd749b757 100644--- a/unity/Assets/Editor/PortraitImport.cs+++ b/unity/Assets/Editor/PortraitImport.cs@@ -14,7 +14,7 @@ namespace Statecraft.Game.EditorTools/// originals stay in promo/ref/people), sets web-friendly import settings on every platform block, writes PORTRAITS.txt/// (id, licence, source) and rebuilds PortraitCatalog.asset. Every licence and file is checked before anything is/// written, and portraits of people who no longer have one are removed. Idempotent: a second run changes nothing.- /// Run headless: Unity -batchmode -quit -projectPath unity -executeMethod Statecraft.Game.EditorTools.PortraitImport.Run</summary>+ /// Run headless: Unity -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -executeMethod Statecraft.Game.EditorTools.PortraitImport.Run</summary>public static class PortraitImport{public const string Folder = "Assets/UI/Portraits";diff --git a/unity/Assets/Editor/ProjectSetup.cs b/unity/Assets/Editor/ProjectSetup.csindex 2b772de42..38577d2e0 100644--- a/unity/Assets/Editor/ProjectSetup.cs+++ b/unity/Assets/Editor/ProjectSetup.cs@@ -7,7 +7,7 @@ namespace Statecraft.Game.EditorTools/// <summary>Project settings (M0 API corrections and M3 web settings): IL2CPP for Standalone and WebGL, the/// Statecraft WebGL template (full-window canvas, autoSyncPersistentDataPath), compression off by default (the build/// script sets it per target), Map.unity as the only and first scene.- /// Run headless: Unity -batchmode -quit -projectPath unity -executeMethod Statecraft.Game.EditorTools.ProjectSetup.Apply</summary>+ /// Run headless: Unity -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -executeMethod Statecraft.Game.EditorTools.ProjectSetup.Apply</summary>public static class ProjectSetup{public const string BootScene = "Assets/Map.unity";diff --git a/unity/Assets/Editor/UiAssets.cs b/unity/Assets/Editor/UiAssets.csindex e5159191c..57eb8464f 100644--- a/unity/Assets/Editor/UiAssets.cs+++ b/unity/Assets/Editor/UiAssets.cs@@ -8,7 +8,7 @@ namespace Statecraft.Game.EditorTools/// <summary>Creates the UI Toolkit PanelSettings asset (tech notes 1.3): scale with screen size against 1920x1080,/// matching width and height equally, with the default runtime theme. An asset, not a runtime instance, so its theme/// and shader references are included in player builds (the M0 Shader.Find lesson). Idempotent.- /// Run headless: Unity -batchmode -quit -projectPath unity -executeMethod Statecraft.Game.EditorTools.UiAssets.Create</summary>+ /// Run headless: Unity -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -executeMethod Statecraft.Game.EditorTools.UiAssets.Create</summary>public static class UiAssets{public static void Create()