@routerhub/agent-rules 1.0.24 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.base.md +6 -0
- package/package.json +1 -1
package/AGENTS.base.md
CHANGED
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
## 分支管理规范
|
|
41
41
|
|
|
42
42
|
- 所有新建分支名称必须使用中文(汉字)或纯中文拼音,禁止英文缩写、数字、拼音与英文混用。
|
|
43
|
+
- 当用户要求提交本次修改时,git commit 提交信息必须使用中文描述,禁止使用英文。
|
|
43
44
|
|
|
44
45
|
## 代码风格与结构
|
|
45
46
|
|
|
@@ -70,6 +71,11 @@
|
|
|
70
71
|
|
|
71
72
|
- 如 UI 自动化测试端口被占用,需自动切换到未被占用的新端口,保证测试流程不中断。
|
|
72
73
|
|
|
74
|
+
## 错误处理与日志
|
|
75
|
+
|
|
76
|
+
- 统一使用 `console.error` 记录错误日志,禁止使用 `console.log` 输出错误信息。
|
|
77
|
+
- 错误信息必须包含上下文(如函数名、模块名),便于快速定位问题。
|
|
78
|
+
|
|
73
79
|
## 优先级声明
|
|
74
80
|
|
|
75
81
|
- 若规则之间有冲突,按以下优先级执行:
|