@routerhub/agent-rules 1.5.37 → 1.5.38
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/README.md +15 -1
- package/README.zh-CN.md +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,4 +18,18 @@ pnpm i -D @routerhub/agent-rules
|
|
|
18
18
|
|
|
19
19
|
写完 `AGENTS.private.md` 后,工具会自动生成项目可用的 `AGENTS.md` 和 `.github/copilot-instructions.md`。
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
## 更新
|
|
22
|
+
|
|
23
|
+
当 `@routerhub/agent-rules` 有新版本时,锁文件不会自动追最新,需要手动更新:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pnpm update @routerhub/agent-rules --latest
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
更新后 `postinstall` 脚本会自动运行,重新同步规则文件。
|
|
30
|
+
|
|
31
|
+
> 直接 `pnpm i` 会按 `pnpm-lock.yaml` 中的锁定版本安装,必须加 `--latest` 才能拿到最新版本。
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
注意:pnpm i 的时候会启动一个watch函数自动帮你合并AGENTS.privite.md中的内容到AGENTS.md,所以建议给项目配置一键启动脚本来,一键启动脚本里加上先pnpm i然后再启动每个项目
|
package/README.zh-CN.md
CHANGED
|
@@ -73,6 +73,18 @@ pnpm exec agent-rules sync
|
|
|
73
73
|
3. 根据项目情况编辑 `AGENTS.private.md`
|
|
74
74
|
4. 使用 `pnpm exec agent-rules sync` 或 `agent-rules watch` 生成最终的 `AGENTS.md`
|
|
75
75
|
|
|
76
|
+
## 更新
|
|
77
|
+
|
|
78
|
+
当 `@routerhub/agent-rules` 有新版本时,锁文件不会自动追最新,需要手动更新:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
pnpm update @routerhub/agent-rules --latest
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
更新后 `postinstall` 脚本会自动运行,重新同步规则文件。
|
|
85
|
+
|
|
86
|
+
> 直接 `pnpm i` 会按 `pnpm-lock.yaml` 中的锁定版本安装,必须加 `--latest` 才能拿到最新版本。
|
|
87
|
+
|
|
76
88
|
## 注意事项
|
|
77
89
|
|
|
78
90
|
- 私有规则应只写项目特有的限制、接口地址、组件路径和业务规范
|