更新AGENTS.md:明确服务端必须使用GB2312/GBK编码,客户端使用UTF-8编码

This commit is contained in:
Admin 2026-06-12 15:55:50 +08:00
parent a2de829df8
commit 9dc815d02d

View file

@ -1,8 +1,14 @@
# Project Rules # 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. - **服务端文件Mirserver/目录下):必须使用 GB2312/GBK 编码**
- Files under `client` use UTF-8 encoding. Read and write them as UTF-8. - 读取时必须按 GB2312/GBK 解析
- When changing mirrored server/client logic, keep each side in its own encoding and verify Chinese text after edits. - 写入时必须保持 GB2312/GBK 编码,绝不允许转换为 UTF-8
- Before processing server-side code, call MCP tool: mcp_996_new_server - 包括但不限于:.lua、.txt、.ini 等所有服务端文件
- Before processing client-side code, call MCP tool: mcp_996_client - **客户端文件client/目录下):必须使用 UTF-8 编码**
- 读取和写入都使用 UTF-8 编码
- 修改服务端/客户端逻辑时,严格保持各自的编码,编辑后必须验证中文文本正确显示
## MCP工具调用
- 处理服务端代码前,调用 MCP 工具mcp_996_new_server
- 处理客户端代码前,调用 MCP 工具mcp_996_client