opencode-smart-voice-notify 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -5
  2. package/package.json +5 -2
package/index.js CHANGED
@@ -19,8 +19,10 @@ import { createTTS, getTTSConfig } from './util/tts.js';
19
19
  * - Follow-up reminders with exponential backoff
20
20
  * - Monitor wake and volume boost
21
21
  * - Cross-platform support (Windows, macOS, Linux)
22
+ *
23
+ * @type {import("@opencode-ai/plugin").Plugin}
22
24
  */
23
- export const SmartVoiceNotifyPlugin = async ({ $, client }) => {
25
+ export default async function SmartVoiceNotifyPlugin({ project, client, $, directory, worktree }) {
24
26
  const config = getTTSConfig();
25
27
  const tts = createTTS({ $, client });
26
28
 
@@ -425,7 +427,4 @@ export const SmartVoiceNotifyPlugin = async ({ $, client }) => {
425
427
  }
426
428
  },
427
429
  };
428
- };
429
-
430
- // Default export for compatibility
431
- export default SmartVoiceNotifyPlugin;
430
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-smart-voice-notify",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Smart voice notification plugin for OpenCode with multiple TTS engines (ElevenLabs, Edge TTS, Windows SAPI) and intelligent reminder system",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -39,5 +39,8 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@elevenlabs/elevenlabs-js": "^2.28.0"
42
+ },
43
+ "peerDependencies": {
44
+ "@opencode-ai/plugin": "^1.0.0"
42
45
  }
43
- }
46
+ }