1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 11:24:55 +02:00

add opencode

This commit is contained in:
Henrik Hautakoski 2026-04-30 16:56:07 +02:00
parent b0e401e325
commit 5255f26d6b
9 changed files with 400 additions and 0 deletions

View file

@ -0,0 +1,12 @@
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"`
}
},
}
}