({ $ })
| 4 | */ |
| 5 | |
| 6 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected