opencode-interrupt-plugin 0.4.22 → 0.4.26

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.d.ts CHANGED
@@ -2,10 +2,9 @@ import type { Plugin } from '@opencode-ai/plugin';
2
2
  import type { TuiPlugin } from '@opencode-ai/plugin/tui';
3
3
  import { type PluginConfig } from './config.js';
4
4
  export declare const InterruptPlugin: (userConfig?: PluginConfig) => Plugin;
5
- declare const _default: Plugin;
6
- export default _default;
7
- export { InterruptPlugin as Interrupt };
8
- export declare const tui: {
5
+ export declare const tui: TuiPlugin;
6
+ declare const _default: {
9
7
  id: string;
10
8
  tui: TuiPlugin;
11
9
  };
10
+ export default _default;
package/dist/index.js CHANGED
@@ -393,9 +393,7 @@ function extractText(parts) {
393
393
  return '';
394
394
  }
395
395
  }
396
- export default InterruptPlugin();
397
- export { InterruptPlugin as Interrupt };
398
- const tuiFn = async (api, _options, _meta) => {
396
+ export const tui = async (api, _options, _meta) => {
399
397
  console.log("[interrupt] TUI plugin initializing");
400
398
  try {
401
399
  api.keymap.registerLayer({
@@ -446,4 +444,4 @@ const tuiFn = async (api, _options, _meta) => {
446
444
  pttActive = false;
447
445
  });
448
446
  };
449
- export const tui = { id: "interrupt.walkie-talkie", tui: tuiFn };
447
+ export default { id: "interrupt.walkie-talkie", tui };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-interrupt-plugin",
3
- "version": "0.4.22",
3
+ "version": "0.4.26",
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",