@routerhub/agent-rules 1.0.25 → 1.0.27
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 +2 -1
- package/package.json +1 -1
package/AGENTS.base.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
- 所有面向用户的页面内容(如按钮、输入框、提示、字段名等)必须全部使用英文,适配外国用户。
|
|
4
4
|
- 代码注释、开发文档等统一使用中文,便于团队内部理解和维护。
|
|
5
|
+
|
|
5
6
|
# Copilot Agent Rules - Base
|
|
6
7
|
|
|
7
8
|
以下规则适用于所有使用此规则包的项目。各项目可通过 `AGENTS.private.md` 添加项目特定规则。
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
## 分支管理规范
|
|
41
42
|
|
|
42
43
|
- 所有新建分支名称必须使用中文(汉字)或纯中文拼音,禁止英文缩写、数字、拼音与英文混用。
|
|
44
|
+
- 当用户要求提交本次修改时,git commit 提交信息必须使用中文描述,禁止使用英文。
|
|
43
45
|
|
|
44
46
|
## 代码风格与结构
|
|
45
47
|
|
|
@@ -65,7 +67,6 @@
|
|
|
65
67
|
- UI 自动化测试必须请求真实的后端接口,不允许使用本地 mock 数据或截断真实请求。
|
|
66
68
|
- 写完业务后,必须自动打开 UI 自动化测试页面,执行 `pnpm run test:e2e:ui`,让开发者手动点击验证功能效果。
|
|
67
69
|
- 打开 UI 自动化测试后,应明确告知当前业务对应的具体测试用例名称或编号,让开发者清楚当前验证范围。
|
|
68
|
-
- 编写自动化测试时,关键步骤之间需间隔 2 秒后再执行下一步,以保证操作过程可观察。
|
|
69
70
|
- 自动化测试执行完毕后,自动打开 UI 界面,允许开发者进行手动验证。
|
|
70
71
|
|
|
71
72
|
- 如 UI 自动化测试端口被占用,需自动切换到未被占用的新端口,保证测试流程不中断。
|