-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalert.schema.json
More file actions
146 lines (146 loc) · 4.34 KB
/
Copy pathalert.schema.json
File metadata and controls
146 lines (146 loc) · 4.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://opencode.ai/alert.schema.json",
"title": "opencode-alert Configuration",
"description": "Configuration schema for the opencode-alert OpenCode plugin",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Global toggle for the plugin"
},
"notifyOnIdle": {
"type": "boolean",
"default": true,
"description": "Whether to send notifications for idle (completion) events"
},
"delayMs": {
"type": "object",
"description": "Delay in milliseconds before sending notifications per event type. 0 means no delay. Useful when notifications arrive before the TUI finishes rendering results.",
"properties": {
"idle": { "type": "number", "minimum": 0 },
"error": { "type": "number", "minimum": 0 },
"permission": { "type": "number", "minimum": 0 },
"question": { "type": "number", "minimum": 0 },
"cancel": { "type": "number", "minimum": 0 },
"subagent": { "type": "number", "minimum": 0 }
},
"additionalProperties": false,
"default": {
"idle": 1500,
"error": 500,
"permission": 800,
"question": 800,
"cancel": 0,
"subagent": 1000
}
},
"suppressWhenFocused": {
"type": "boolean",
"default": true,
"description": "Suppress notifications when the terminal window is focused"
},
"notifyChildSessions": {
"type": "boolean",
"default": true,
"description": "Send notifications for subagent (child session) completion events"
},
"soundCommand": {
"type": "string",
"default": null,
"description": "Custom shell command for sound playback. Use {sound} placeholder for the resolved sound file path"
},
"desktop": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Enable desktop notifications"
},
"events": {
"type": "array",
"items": {
"type": "string",
"enum": [
"idle",
"error",
"permission",
"question",
"cancel",
"subagent"
]
},
"default": ["idle", "error", "permission", "question"],
"description": "Which event types trigger desktop notifications"
}
},
"additionalProperties": false
},
"sound": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Enable sound notifications"
},
"events": {
"type": "object",
"properties": {
"idle": { "type": "string" },
"error": { "type": "string" },
"permission": { "type": "string" },
"question": { "type": "string" },
"cancel": { "type": "string" },
"subagent": { "type": "string" }
},
"additionalProperties": false,
"description": "Sound file per event type"
},
"default": {
"type": "string",
"default": "ding.wav",
"description": "Default sound file name"
},
"customDir": {
"type": "string",
"default": "",
"description": "Directory for custom sound files"
}
},
"additionalProperties": false
},
"filter": {
"type": "object",
"properties": {
"quietHours": {
"type": "object",
"properties": {
"enabled": { "type": "boolean", "default": false },
"start": {
"type": "string",
"pattern": "^[0-9]{2}:[0-9]{2}$",
"default": "22:00"
},
"end": {
"type": "string",
"pattern": "^[0-9]{2}:[0-9]{2}$",
"default": "08:00"
}
},
"additionalProperties": false
},
"minInterval": {
"type": "number",
"default": 5,
"minimum": 0,
"description": "Minimum seconds between same-type notifications"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}