@routerhub/agent-rules 1.5.11 → 1.5.12
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 +6 -1
- package/README.md +21 -17
- package/package.json +1 -1
package/AGENTS.base.md
CHANGED
package/README.md
CHANGED
|
@@ -12,22 +12,26 @@
|
|
|
12
12
|
在你的项目里安装:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
pnpm add -D
|
|
15
|
+
pnpm add -D @routerhub/agent-rules
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
安装完成后会自动:
|
|
19
|
+
|
|
20
|
+
1. 生成 `AGENTS.md` 和 `.github/copilot-instructions.md`
|
|
21
|
+
2. 在后台启动 watch 进程,持续监听 `AGENTS.private.md` 变更并自动同步
|
|
22
|
+
|
|
23
|
+
无需手动执行任何命令,修改 `AGENTS.private.md` 即可自动生效。
|
|
24
|
+
|
|
25
|
+
> **注意:** 后台 watch 进程在重启电脑后会停止。如需每次启动开发时自动恢复监听,可在 `package.json` 中配合 `concurrently` 使用:
|
|
26
|
+
>
|
|
27
|
+
> ```bash
|
|
28
|
+
> pnpm add -D concurrently
|
|
29
|
+
> ```
|
|
30
|
+
>
|
|
31
|
+
> ```json
|
|
32
|
+
> {
|
|
33
|
+
> "scripts": {
|
|
34
|
+
> "dev": "concurrently \"next dev\" \"agent-rules watch\""
|
|
35
|
+
> }
|
|
36
|
+
> }
|
|
37
|
+
> ```
|