diff --git a/.config/opencode/plugin/terminal-bell.ts b/.config/opencode/plugin/terminal-bell.ts new file mode 100644 index 0000000..0d48e9a --- /dev/null +++ b/.config/opencode/plugin/terminal-bell.ts @@ -0,0 +1,12 @@ +import type { 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 $`osascript -e 'display notification "Session completed!" with title "opencode"'` + } + }, + } +}