From d2b91c46d4f647f508545d36c120b016128980bb Mon Sep 17 00:00:00 2001 From: Patedam Date: Tue, 20 Jan 2026 22:14:54 -0500 Subject: [PATCH] Misc changes Update gitignore + adding some agent skills and tweaking workflows. Also updated some scipts --- .agent/rules/coding-guidelines.md | 3 ++- .agent/skills/cpp_game_engine_programmer/SKILL.md | 2 ++ .agent/workflows/build.md | 7 ++++--- .agent/workflows/recompile_shaders.md | 3 ++- .gitignore | 4 ++++ misc/agent_build.bat | 3 +++ misc/launch.bat | 8 +------- 7 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 misc/agent_build.bat diff --git a/.agent/rules/coding-guidelines.md b/.agent/rules/coding-guidelines.md index d0d33dd..01eaaa7 100644 --- a/.agent/rules/coding-guidelines.md +++ b/.agent/rules/coding-guidelines.md @@ -10,4 +10,5 @@ Types are CamelCase Functions are CamelCase. Add Assert to make sure all assumptions are good. Parameters of functions for example should be verified with Assert. Code should be self commented using proper variable names, types and functions. No need to add comments most of the time, unless the algorithm is very complex and hard to read. -When creating a new system framework, make a unit test. To make the unit test we should not modify the framework code for special unit test case. \ No newline at end of file +When creating a new system framework, make a unit test. To make the unit test we should not modify the framework code for special unit test case. +Always put braces for if,else,for,while etc. \ No newline at end of file diff --git a/.agent/skills/cpp_game_engine_programmer/SKILL.md b/.agent/skills/cpp_game_engine_programmer/SKILL.md index df176be..24c6c04 100644 --- a/.agent/skills/cpp_game_engine_programmer/SKILL.md +++ b/.agent/skills/cpp_game_engine_programmer/SKILL.md @@ -1,6 +1,8 @@ --- name: C++ Game Engine Programmer description: An expert C++ systems programmer specialized in game engine architecture, memory management, and D3D12 graphics. +trusted_commands: + - "*agent_build.bat *" --- # C++ Game Engine Programmer Skill diff --git a/.agent/workflows/build.md b/.agent/workflows/build.md index ee5fc71..7547aac 100644 --- a/.agent/workflows/build.md +++ b/.agent/workflows/build.md @@ -3,14 +3,15 @@ description: Build the Juliet project using FastBuild --- // turbo-all +// @auto-approve: true This workflow sets up the Juliet build environment and runs `fbuild`. 1. To build a specific configuration (e.g., msvc-Debug): -`cmd /c "misc\shell.bat & fbuild msvc-Debug"` +`misc\agent_build.bat clang-Debug"` 2. To build the default clang: -`cmd /c "misc\shell.bat & fbuild clang"` +`misc\agent_build.bat clang"` 3. To see all available targets: -`cmd /c "misc\shell.bat & fbuild -showtargets"` \ No newline at end of file +`misc\agent_build.bat -showtargets"` \ No newline at end of file diff --git a/.agent/workflows/recompile_shaders.md b/.agent/workflows/recompile_shaders.md index eafc359..8c868fa 100644 --- a/.agent/workflows/recompile_shaders.md +++ b/.agent/workflows/recompile_shaders.md @@ -1,9 +1,10 @@ --- description: Recompile shaders for the Juliet project --- + // turbo-all This workflow recompiles all shaders using the `recompile_shaders.bat` script. 1. Recompile all shaders: -`cmd /c "misc\shell.bat & misc\recompile_shaders.bat"` +`misc\recompile_shaders.bat"` \ No newline at end of file diff --git a/.gitignore b/.gitignore index ce506bd..6c6d631 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,10 @@ .vs/ [Ii]ntermediate/ +# Logs +build_*.txt +launch_*.txt + # Prerequisites *.d diff --git a/misc/agent_build.bat b/misc/agent_build.bat new file mode 100644 index 0000000..a304978 --- /dev/null +++ b/misc/agent_build.bat @@ -0,0 +1,3 @@ +@echo off +call misc\shell.bat +fbuild %* -cache \ No newline at end of file diff --git a/misc/launch.bat b/misc/launch.bat index bfcc702..5448589 100644 --- a/misc/launch.bat +++ b/misc/launch.bat @@ -55,14 +55,8 @@ echo Config: %CONFIG% :: --- 4. Execution --- if exist "%APP_DIR%\%APP_EXE%" ( pushd "%APP_DIR%" - start "" "%APP_EXE%" + "%APP_EXE%" %* popd - - if "%AUTOCLOSE%"=="1" ( - echo [AUTOCLOSE] Waiting 5 seconds... - timeout /t 5 /nobreak >nul - taskkill /IM "%APP_EXE%" /F >nul 2>&1 - ) ) else ( echo [ERROR] Executable not found at: %APP_DIR%\%APP_EXE% echo Please build first: fbuild JulietApp-%PLATFORM%-%CONFIG%