@routerhub/agent-rules 1.5.35 → 1.5.37

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
@@ -201,6 +201,7 @@ Closes #456
201
201
 
202
202
  - 依赖安装统一 `pnpm`,禁止 `npm install`/`yarn install`。
203
203
  - 写完代码先 `npm run format`,再 `npm run build`,构建通过才可发版。
204
+ - AI 改完代码后禁止自动执行任何格式化命令(包括但不限于 `npm run format`、`pnpm run format`、`prettier`、`eslint --fix` 等),避免产生仅含格式差异的文件变更,防止 PR 中混入大量与业务逻辑无关的格式化 diff;仅在用户明确要求格式化时才执行格式化操作。
204
205
 
205
206
  ## 测试
206
207
 
@@ -234,3 +235,8 @@ Closes #456
234
235
  - 部署方式因项目而异,具体部署规则请在项目 `AGENTS.private.md` 中按需定义。
235
236
  - `.env` 文件中仅允许配置端口号(如 `PORT`、`API_PORT` 等),其余所有配置项(API 地址、数据库连接、第三方服务地址等)必须直接写死到代码中。
236
237
  - 密钥、Token、密码、证书等敏感信息不得写入 `.env` 或代码中,必须统一配置到 Nacos 配置中心,应用启动时从 Nacos 拉取。
238
+ - 用户说「部署测试环境」时,必须按以下步骤执行:
239
+ 1. **test 分支检查**:如果当前项目的 `test` 分支不存在,从主分支(`main` 或 `master`)创建 `test` 分支并推送到远程。
240
+ 2. **合并当前分支到 test**:将当前功能分支合并到 `test` 分支。
241
+ 3. **部署 test 分支**:按当前项目自己的部署方式部署 `test` 分支(如 Cloud Run 部署、容器部署、npm publish 等)。
242
+ 4. **发新版本**:按当前项目自己的发版规则发布新版本(如 `./release.sh`、自动递增版本号等)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routerhub/agent-rules",
3
- "version": "1.5.35",
3
+ "version": "1.5.37",
4
4
  "description": "Shared Copilot agent rules and guidelines for RouterHub projects",
5
5
  "main": "AGENTS.base.md",
6
6
  "bin": {