@zhin.js/process-monitor 1.1.6 → 1.1.7
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 +12 -10
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -16,17 +16,19 @@ pnpm add @zhin.js/process-monitor
|
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
```yaml
|
|
19
|
+
configVersion: 2
|
|
19
20
|
plugins:
|
|
20
|
-
process-monitor:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
process-monitor: "@zhin.js/process-monitor"
|
|
22
|
+
process-monitor:
|
|
23
|
+
package: "@zhin.js/process-monitor"
|
|
24
|
+
config:
|
|
25
|
+
enabled: true
|
|
26
|
+
notifyOnStart: true
|
|
27
|
+
notifyOnRestart: true
|
|
28
|
+
notifyOnCrash: true
|
|
29
|
+
notifyChannels:
|
|
30
|
+
- type: webhook
|
|
31
|
+
target: "${PROCESS_MONITOR_WEBHOOK_URL}"
|
|
30
32
|
```
|
|
31
33
|
|
|
32
34
|
`notifyChannels` 当前只接受 `webhook`。Webhook 使用 `POST application/json`,正文包含:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/process-monitor",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "进程监控与重启通知插件 (Plugin Runtime)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"directory": "plugins/features/process-monitor"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@zhin.js/
|
|
41
|
-
"@zhin.js/
|
|
40
|
+
"@zhin.js/tool": "1.1.7",
|
|
41
|
+
"@zhin.js/skill": "1.1.7"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^26.1.2",
|
|
45
45
|
"typescript": "^6.0.3",
|
|
46
46
|
"vitest": "^4.1.10",
|
|
47
|
-
"zhin.js": "1.1.
|
|
47
|
+
"zhin.js": "1.1.11"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=22.19.0"
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"plugins": []
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@zhin.js/command": "^1.1.
|
|
80
|
-
"zhin.js": "^1.1.
|
|
79
|
+
"@zhin.js/command": "^1.1.8",
|
|
80
|
+
"zhin.js": "^1.1.11"
|
|
81
81
|
},
|
|
82
82
|
"peerDependenciesMeta": {
|
|
83
83
|
"@zhin.js/command": {
|