mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
add opencode
This commit is contained in:
parent
b0e401e325
commit
5255f26d6b
9 changed files with 400 additions and 0 deletions
12
opencode/plugins/notification.ts
Normal file
12
opencode/plugins/notification.ts
Normal 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"`
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue