MCPcopy Index your code
hub / github.com/CloudAI-X/opencode-workflow / NotificationPlugin

Function NotificationPlugin

plugins/notifications.ts:6–18  ·  view source on GitHub ↗
({ $ })

Source from the content-addressed store, hash-verified

4 */
5
6export const NotificationPlugin = async ({ $ }) => {
7 return {
8 event: async ({ event }) => {
9 if (event.type === "session.idle") {
10 try {
11 await $`osascript -e 'display notification "Session completed!" with title "OpenCode"'`
12 } catch {
13 // Ignore notification errors
14 }
15 }
16 },
17 }
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected