@coffeexdev/openclaw-sentinel 0.1.1 → 0.1.3
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 +8 -4
- package/openclaw.plugin.json +11 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -35,6 +35,10 @@ Formal JSON Schema for sentinel config/watchers is available at:
|
|
|
35
35
|
|
|
36
36
|
You can validate a watcher config document (for example `.sentinel.json`) against this schema in CI or local tooling.
|
|
37
37
|
|
|
38
|
+
## Documentation
|
|
39
|
+
|
|
40
|
+
- [Usage Guide](docs/USAGE.md)
|
|
41
|
+
|
|
38
42
|
## Install
|
|
39
43
|
|
|
40
44
|
```bash
|
|
@@ -65,8 +69,8 @@ sentinel.register({
|
|
|
65
69
|
{
|
|
66
70
|
"action": "create",
|
|
67
71
|
"watcher": {
|
|
68
|
-
"id": "sentinel-
|
|
69
|
-
"skillId": "skills.
|
|
72
|
+
"id": "sentinel-alert",
|
|
73
|
+
"skillId": "skills.general-monitor"
|
|
70
74
|
"enabled": true,
|
|
71
75
|
"strategy": "http-poll",
|
|
72
76
|
"endpoint": "https://api.github.com/events",
|
|
@@ -75,7 +79,7 @@ sentinel.register({
|
|
|
75
79
|
"conditions": [{ "path": "type", "op": "eq", "value": "PushEvent" }],
|
|
76
80
|
"fire": {
|
|
77
81
|
"webhookPath": "/internal/sentinel/fire",
|
|
78
|
-
"eventName": "
|
|
82
|
+
"eventName": "sentinel_push",
|
|
79
83
|
"payloadTemplate": {
|
|
80
84
|
"watcher": "${watcher.id}",
|
|
81
85
|
"event": "${event.name}",
|
|
@@ -104,7 +108,7 @@ Set `"fireOnce": true` to automatically disable a watcher after its first matche
|
|
|
104
108
|
|
|
105
109
|
## Example scenarios
|
|
106
110
|
|
|
107
|
-
###
|
|
111
|
+
### Feed monitoring example
|
|
108
112
|
|
|
109
113
|
Watch API changes and fire internal webhook events for orchestration.
|
|
110
114
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coffeexdev/openclaw-sentinel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Secure declarative gateway-native watcher plugin for OpenClaw",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openclaw",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"files": [
|
|
21
21
|
"dist",
|
|
22
22
|
"README.md",
|
|
23
|
-
"LICENSE"
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"openclaw.plugin.json"
|
|
24
25
|
],
|
|
25
26
|
"type": "module",
|
|
26
27
|
"main": "dist/index.js",
|