This file contains instructions for AI agents working on this project.
notificator.js- Main plugin implementationnotificator.jsonc- Plugin configuration filenotificator-sounds/- Directory containing sound filespackage.json- Node.js package configurationREADME.md- User documentation
- This is a simple OpenCode plugin that uses the
@opencode-ai/pluginpackage - The plugin exports
NotificationPluginwhich is the entry point - It uses the
$function to execute shell commands for platform-specific notifications - All plugin files copied to OpenCode are prefixed with "notificator"
To test the plugin:
- Ensure OpenCode is installed
- Copy
notificator.js,notificator.jsonc, andnotificator-sounds/to your OpenCode plugins directory - Trigger a generation or permission request in OpenCode
- Verify desktop notifications and sounds appear
- Use ES modules (export syntax)
- Keep the plugin simple and focused
- Support all three major platforms: macOS, Linux, and Windows