opencode-interrupt-plugin 0.4.43 → 0.4.44
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.
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -203,10 +203,11 @@ const TTS_COMMANDS = [
|
|
|
203
203
|
{ name: 'ptt', description: 'Toggle walkie-talkie recording (start/stop + transcribe)', template: 'Toggles PTT recording.' },
|
|
204
204
|
];
|
|
205
205
|
export const InterruptPlugin = (userConfig = {}) => {
|
|
206
|
-
return async ({ client }) => {
|
|
207
|
-
const
|
|
206
|
+
return async ({ client }, pluginOptions) => {
|
|
207
|
+
const cfg = { ...userConfig, ...pluginOptions };
|
|
208
|
+
const licenseResult = await checkLicense(cfg.licenseKey);
|
|
208
209
|
isLicensed = licenseResult.allowed;
|
|
209
|
-
const config = resolveConfig(
|
|
210
|
+
const config = resolveConfig(cfg, licenseResult.allowed);
|
|
210
211
|
if (config.debug) {
|
|
211
212
|
console.log(`[interrupt] Plugin loaded (${isLicensed ? 'licensed' : 'free'} mode)`);
|
|
212
213
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-interrupt-plugin",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.44",
|
|
4
4
|
"description": "Streaming TTS + voice interruption for OpenCode. Speaks responses as they arrive and detects when you talk over it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|