@routerhub/agent-rules 1.4.2 → 1.4.3

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 +12 -3
  2. package/package.json +1 -1
package/AGENTS.base.md CHANGED
@@ -45,9 +45,18 @@
45
45
  - 若用户指令中没有上述关键词,默认只在本地或测试/开发环境中执行操作,不得擅自连接或操作生产服务器。
46
46
  - 执行生产环境操作前,必须再次向用户确认目标环境,确认无误后方可执行。
47
47
 
48
- ## 分支管理规范
49
-
50
- - 所有新建分支名称必须使用中文(汉字)或纯中文拼音,禁止英文缩写、数字、拼音与英文混用。
48
+ ## 分支管理规范(Git Flow)
49
+
50
+ - 所有新建分支必须遵循 Git Flow 命名规范,使用以下前缀:
51
+ - `feature/` - 新功能开发(如 `feature/user-authentication`)
52
+ - `refactor/` - 代码重构(如 `refactor/payment-module`)
53
+ - `bugfix/` - 缺陷修复(如 `bugfix/order-calculation`)
54
+ - `hotfix/` - 紧急生产修复(如 `hotfix/critical-security-issue`)
55
+ - `chore/` - 杂项维护(如 `chore/upgrade-dependencies`)
56
+ - `docs/` - 文档更新(如 `docs/api-reference`)
57
+ - `test/` - 测试相关(如 `test/add-unit-tests`)
58
+ - 分支名称使用英文,单词间用中划线(-)分隔,全小写,简洁明了。
59
+ - 禁止使用下划线、大写字母、中文或特殊字符。
51
60
  - 当用户要求提交本次修改时,git commit 提交信息必须使用中文描述,禁止使用英文。
52
61
 
53
62
  ## 代码风格与结构
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routerhub/agent-rules",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Shared Copilot agent rules and guidelines for RouterHub projects",
5
5
  "main": "AGENTS.base.md",
6
6
  "bin": {