@routerhub/agent-rules 1.0.15 → 1.0.18

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 +9 -0
  2. package/package.json +1 -1
package/AGENTS.base.md CHANGED
@@ -33,11 +33,20 @@
33
33
  - 时间相关处理统一使用 `dayjs`。
34
34
  - 数据回显优先使用对象展开运算符(`...`)。
35
35
 
36
+
37
+ ## 分支管理规范
38
+
39
+ - 所有新建分支名称必须使用中文(汉字)或纯中文拼音,禁止英文缩写、数字、拼音与英文混用。
40
+
36
41
  ## 代码风格与结构
37
42
 
38
43
  - 不允许写 `class`,统一使用函数式编程。
39
44
  - 不要写 `try/catch`。
40
45
  - 代码注释统一使用中文编写。
46
+
47
+ ## 测试用例规范
48
+
49
+ - 所有测试用例必须包含中文断言或校验内容,确保覆盖中文场景。
41
50
  - 当同一个组件被复用时,传入 `fromType`(值为当前页面名)用于区分来源;组件内部差异逻辑基于 `fromType` 分支。
42
51
 
43
52
  ## 组件复用规则
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routerhub/agent-rules",
3
- "version": "1.0.15",
3
+ "version": "1.0.18",
4
4
  "description": "Shared Copilot agent rules and guidelines for RouterHub projects",
5
5
  "main": "AGENTS.base.md",
6
6
  "bin": {