@steadwing/openalerts 0.1.0

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.
@@ -0,0 +1,57 @@
1
+ {
2
+ "id": "openalerts",
3
+ "configSchema": {
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {
7
+ "apiKey": { "type": "string" },
8
+ "alertChannel": { "type": "string" },
9
+ "alertTo": { "type": "string" },
10
+ "alertAccountId": { "type": "string" },
11
+ "cooldownMinutes": { "type": "number", "minimum": 1, "maximum": 1440 },
12
+ "maxLogSizeKb": { "type": "number", "minimum": 64, "maximum": 10240 },
13
+ "maxLogAgeDays": { "type": "number", "minimum": 1, "maximum": 90 },
14
+ "quiet": { "type": "boolean" },
15
+ "rules": {
16
+ "type": "object",
17
+ "additionalProperties": {
18
+ "type": "object",
19
+ "properties": {
20
+ "enabled": { "type": "boolean" },
21
+ "threshold": { "type": "number" },
22
+ "cooldownMinutes": { "type": "number" }
23
+ },
24
+ "additionalProperties": false
25
+ }
26
+ }
27
+ }
28
+ },
29
+ "uiHints": {
30
+ "apiKey": {
31
+ "label": "OpenAlerts API Key",
32
+ "sensitive": true,
33
+ "help": "Optional. Get from app.openalerts.dev. Enables platform diagnosis & dashboard."
34
+ },
35
+ "alertChannel": {
36
+ "label": "Alert Channel",
37
+ "help": "telegram, discord, slack, etc. Auto-detected if blank."
38
+ },
39
+ "alertTo": {
40
+ "label": "Alert To",
41
+ "help": "Chat/user ID to send alerts to. Auto-detected from allowFrom if blank."
42
+ },
43
+ "alertAccountId": {
44
+ "label": "Account ID",
45
+ "help": "For multi-account setups. Default account used if blank.",
46
+ "advanced": true
47
+ },
48
+ "cooldownMinutes": {
49
+ "label": "Alert Cooldown",
50
+ "help": "Minimum minutes between repeated alerts of the same type. Default: 15."
51
+ },
52
+ "quiet": {
53
+ "label": "Quiet Mode",
54
+ "help": "Log alerts to file only — no messages sent to your channels."
55
+ }
56
+ }
57
+ }
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@steadwing/openalerts",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "OpenAlerts monitoring for OpenClaw — texts you when your bot is sick.",
6
+ "author": "Steadwing",
7
+ "license": "Apache-2.0",
8
+ "main": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js"
14
+ }
15
+ },
16
+ "files": ["dist", "openclaw.plugin.json"],
17
+ "scripts": {
18
+ "build": "tsc",
19
+ "prepublishOnly": "npm run build"
20
+ },
21
+ "dependencies": {
22
+ "@steadwing/openalerts-core": "0.1.0"
23
+ },
24
+ "peerDependencies": {
25
+ "openclaw": "*"
26
+ },
27
+ "openclaw": {
28
+ "extensions": ["./dist/index.js"]
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/steadwing/openalerts.git",
33
+ "directory": "packages/alert"
34
+ },
35
+ "homepage": "https://github.com/steadwing/openalerts#readme",
36
+ "bugs": "https://github.com/steadwing/openalerts/issues",
37
+ "keywords": ["openalerts", "openclaw", "monitoring", "alerting", "plugin"],
38
+ "engines": {
39
+ "node": ">=18"
40
+ }
41
+ }