mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
12 lines
361 B
TypeScript
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"`
|
|
}
|
|
},
|
|
}
|
|
}
|