mirror of
https://github.com/pnx/dotfiles
synced 2026-10-17 13:46:46 +02:00
opencode: add OAC
This commit is contained in:
parent
a9fc1ca56e
commit
863c63a84b
216 changed files with 39215 additions and 37 deletions
|
|
@ -1,12 +0,0 @@
|
|||
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"`
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue