From 62b718fa1e43cd1a3bac7f0d4c9a9a683505baa2 Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Fri, 19 Jun 2026 10:28:17 +0800 Subject: [PATCH] =?UTF-8?q?AGENTS.md:=20=E6=8F=90=E4=BA=A4=E5=89=8D?= =?UTF-8?q?=E5=BF=85=E9=A1=BB=E7=BC=96=E8=AF=91=E5=92=8C=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=20DLL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 440f0c0..2f43bce 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -118,6 +118,23 @@ This applies to: Physics constants (9.81f, 3.6f, π) and documented model parameters (Phase 2 cutoff = 30s) are NOT arbitrary defaults — they are legitimate parts of the physical model. +## 9. Git Commit Must Include DLL + +**Every commit must bundle the compiled CounterDrone.Core.dll.** Never leave DLL changes as a separate follow-up commit. The full commit flow: + +```bash +# 1. Run full test suite (builds Core.dll) +pwsh -Command "dotnet test test/unit/CounterDrone.Core.Tests/" + +# 2. Copy DLL to Unity plugin directories +cp src/CounterDrone.Core/bin/Debug/netstandard2.1/CounterDrone.Core.dll src/Unity/Assets/Plugins/CounterDrone.Core/ +cp src/CounterDrone.Core/bin/Debug/netstandard2.1/CounterDrone.Core.dll unity_plugins/ + +# 3. Commit everything at once +git add -A +git commit -m "..." +``` + --- **These guidelines are working if:** fewer unnecessary changes in diffs, fewer rewrites due to overcomplication, and clarifying questions come before implementation rather than after mistakes.