1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 19:30:01 +02:00
dotfiles/opencode/plugins/notification.ts
2026-04-30 17:15:42 +02:00

12 lines
361 B
TypeScript

import { Plugin } from "@opencode-ai/plugin"
export const NotificationPlugin : Plugin = async ({ project, client, $, directory, worktree }) => {
return {
event: async ({ event }) => {
// Send notification on session completion
if (event.type === "session.idle") {
await $`notify-send "Opencode" "Agent finished"`
}
},
}
}