From 9dc815d02de93d88ec9ddc38b74f23bd5b41b107 Mon Sep 17 00:00:00 2001 From: Admin Date: Fri, 12 Jun 2026 15:55:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0AGENTS.md=EF=BC=9A=E6=98=8E?= =?UTF-8?q?=E7=A1=AE=E6=9C=8D=E5=8A=A1=E7=AB=AF=E5=BF=85=E9=A1=BB=E4=BD=BF?= =?UTF-8?q?=E7=94=A8GB2312/GBK=E7=BC=96=E7=A0=81=EF=BC=8C=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=AB=AF=E4=BD=BF=E7=94=A8UTF-8=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 1749e194..21d10526 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,8 +1,14 @@ # Project Rules -- This project is split into `Mirserver` (server) and `client` (client). -- Files under `Mirserver` use GB2312/GBK encoding. Read and write them with the server encoding preserved; do not silently convert them to UTF-8. -- Files under `client` use UTF-8 encoding. Read and write them as UTF-8. -- When changing mirrored server/client logic, keep each side in its own encoding and verify Chinese text after edits. -- Before processing server-side code, call MCP tool: mcp_996_new_server -- Before processing client-side code, call MCP tool: mcp_996_client +## 编码规范(强制执行) +- **服务端文件(Mirserver/目录下):必须使用 GB2312/GBK 编码** + - 读取时必须按 GB2312/GBK 解析 + - 写入时必须保持 GB2312/GBK 编码,绝不允许转换为 UTF-8 + - 包括但不限于:.lua、.txt、.ini 等所有服务端文件 +- **客户端文件(client/目录下):必须使用 UTF-8 编码** + - 读取和写入都使用 UTF-8 编码 +- 修改服务端/客户端逻辑时,严格保持各自的编码,编辑后必须验证中文文本正确显示 + +## MCP工具调用 +- 处理服务端代码前,调用 MCP 工具:mcp_996_new_server +- 处理客户端代码前,调用 MCP 工具:mcp_996_client