export const MidwayNotifications = async ({ $ }) => ({
event: async ({ event }) => {
if (event.type === "session.idle") {
await $`midway send-text -m "OpenCode finished"`;
}
if (event.type === "permission.asked") {
await $`midway send-text -m "OpenCode needs approval"`;
}
},
});