@routerhub/agent-rules 1.0.7 → 1.0.9

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 CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  - 不能随意修改核心业务文件和 API 相关代码。
12
12
  - 不要编写或修改 `README.md`(由项目维护)。
13
- - 先用`typings.d.ts` 中的类型定义,如果没有再自定义 TypeScript类型
13
+ - 先用`typings.d.ts` 中的类型定义,另外用的时候要确认下typings.d.ts中有这个类型定义,如果没有再自定义 TypeScript类型
14
14
 
15
15
  ## 样式与 UI 约束
16
16
 
@@ -21,7 +21,6 @@
21
21
 
22
22
  ## 命名与类型约束
23
23
 
24
- - 参数名、变量名应与 `typings.d.ts` 中字段命名保持一致。
25
24
  - 命名使用小驼峰或大驼峰,不使用下划线命名。
26
25
  - 变量或值命名时,至少使用两个单词。
27
26
  - TS 中不允许使用 `as`,不允许使用 `any`。
@@ -50,6 +49,7 @@
50
49
  ## 自动化测试规则
51
50
 
52
51
  - 自动化测试默认必须使用真实接口数据,禁止使用 mock/route.fulfill/本地伪造返回;仅在明确同意的情况下才允许使用模拟数据。
52
+ - UI 自动化测试必须请求真实的后端接口,不允许使用本地 mock 数据或截断真实请求。
53
53
  - 编写自动化测试时,关键步骤之间需间隔 2 秒后再执行下一步,以保证操作过程可观察。
54
54
  - 自动化测试执行完毕后,自动打开 UI 界面,允许开发者进行手动验证。
55
55
 
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  在你的项目里安装:
11
11
 
12
12
  ```bash
13
- pnpm add -D concurrently https://github.com/routerhub/agentRules.git#v1.0.6
13
+ pnpm add -D concurrently @routerhub/agent-rules
14
14
  ```
15
15
 
16
16
  ## 使用
@@ -29,9 +29,3 @@ pnpm add -D concurrently https://github.com/routerhub/agentRules.git#v1.0.6
29
29
  - 监听 `AGENTS.private.md` 变更
30
30
  - 变更后自动重新同步 `AGENTS.md`
31
31
 
32
-
33
- ## 如何打tag
34
- ```
35
- git tag v1.0.6
36
- git push --tags
37
- ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routerhub/agent-rules",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Shared Copilot agent rules and guidelines for RouterHub projects",
5
5
  "main": "AGENTS.base.md",
6
6
  "bin": {