@routerhub/agent-rules 1.5.10 → 1.5.11

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 +3 -1
  2. package/package.json +1 -1
package/AGENTS.base.md CHANGED
@@ -14,7 +14,8 @@
14
14
 
15
15
  ## 安全
16
16
 
17
- - 未明确授权不操作生产环境(指令需含"生产"/"线上"/"prod"/"production"),操作前二次确认。
17
+ - 用户明确要求上线/部署生产环境时,直接执行,无需二次确认。
18
+ - 执行过程中自行触及生产环境操作(非用户明确要求),必须先向用户二次确认后再执行。
18
19
 
19
20
  ## 需求文档
20
21
 
@@ -80,6 +81,7 @@
80
81
  - 用户明确要求由代理自行执行自动化测试时,允许使用无头浏览器进行测试与验证。
81
82
  - 写完业务后执行 `pnpm run test:e2e:ui`,告知开发者对应测试用例名称;通过后打开 UI 供手动验证。
82
83
  - 端口被占用时自动切换新端口。
84
+ - 自动化测试中,若 Mock 数据不影响业务逻辑验证,优先使用 Mock 数据代替真实接口调用,减少外部依赖和测试不稳定性。
83
85
 
84
86
  ## 错误日志
85
87
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routerhub/agent-rules",
3
- "version": "1.5.10",
3
+ "version": "1.5.11",
4
4
  "description": "Shared Copilot agent rules and guidelines for RouterHub projects",
5
5
  "main": "AGENTS.base.md",
6
6
  "bin": {