@routerhub/agent-rules 1.0.16 → 1.0.20

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.
Files changed (2) hide show
  1. package/AGENTS.base.md +6 -0
  2. package/package.json +1 -1
package/AGENTS.base.md CHANGED
@@ -33,6 +33,10 @@
33
33
  - 时间相关处理统一使用 `dayjs`。
34
34
  - 数据回显优先使用对象展开运算符(`...`)。
35
35
 
36
+ ## 分支管理规范
37
+
38
+ - 所有新建分支名称必须使用中文(汉字)或纯中文拼音,禁止英文缩写、数字、拼音与英文混用。
39
+
36
40
  ## 代码风格与结构
37
41
 
38
42
  - 不允许写 `class`,统一使用函数式编程。
@@ -58,6 +62,8 @@
58
62
  - 编写自动化测试时,关键步骤之间需间隔 2 秒后再执行下一步,以保证操作过程可观察。
59
63
  - 自动化测试执行完毕后,自动打开 UI 界面,允许开发者进行手动验证。
60
64
 
65
+ - 如 UI 自动化测试端口被占用,需自动切换到未被占用的新端口,保证测试流程不中断。
66
+
61
67
  ## 优先级声明
62
68
 
63
69
  - 若规则之间有冲突,按以下优先级执行:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routerhub/agent-rules",
3
- "version": "1.0.16",
3
+ "version": "1.0.20",
4
4
  "description": "Shared Copilot agent rules and guidelines for RouterHub projects",
5
5
  "main": "AGENTS.base.md",
6
6
  "bin": {