You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: document event filtering and rich message features
- Add event filtering configuration section with table of all 5 event types
- Document rich message content with priority chain explanation
- Update example configuration to include events block
- Add message format examples showing assistant text extraction
- Update usage section to reflect rich notification content
You can control which events trigger notifications by adding an `events` block to your `.everynotify.json`. All events are enabled (`true`) by default to ensure backward compatibility.
|`complete`| The main opencode session has finished its task and is now idle. |
129
+
|`subagent_complete`| A subagent has completed its specific assigned task. |
130
+
|`error`| A fatal error or crash occurred during the session. |
131
+
|`permission`| opencode is waiting for you to grant permission for a tool or file access. |
132
+
|`question`| The `question` tool was used to ask you for clarification. |
133
+
134
+
### Rich Message Content
135
+
136
+
EveryNotify provides rich context in its notifications by extracting the assistant's last response. Instead of generic "Task completed" messages, you receive the actual summary or answer provided by opencode.
137
+
138
+
**Notification Priority:**
139
+
140
+
1.**Errors**: The specific error message always takes top priority.
141
+
2.**Assistant Text**: The actual text from the assistant's final response.
142
+
3.**Fallback**: If no text is found, it defaults to a generic "Task completed" message.
143
+
144
+
**Message Format Example:**
145
+
146
+
```text
147
+
[complete] my-project
148
+
I've successfully implemented the authentication system with JWT tokens and refresh token rotation. The API endpoints are secured and tests are passing. (elapsed: 2m 18s)
149
+
```
150
+
111
151
## Usage
112
152
113
153
EveryNotify is a "fire-and-forget" plugin. Once you have [registered it with opencode](#using-with-opencode) and [configured](#configuration) at least one service with `"enabled": true`, it runs automatically. opencode loads the plugin at startup; EveryNotify then listens for events and sends notifications in the background with no further action needed.
114
154
115
-
When an event is triggered, EveryNotify builds a descriptive message (e.g., `[complete] my-project (elapsed: 12m 30s)`) and dispatches it to all services marked as `"enabled": true`.
155
+
When an event is triggered, EveryNotify builds a rich message containing the event type, project name, the actual assistant response, and the total elapsed time.
156
+
157
+
Example:
158
+
`[complete] my-project: I've finished the refactor. (elapsed: 12m 30s)`
159
+
160
+
Notifications are dispatched to all services marked as `"enabled": true`.
0 commit comments