opencode-interrupt-plugin 0.4.27 → 0.4.29

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/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -147,7 +147,7 @@ const TTS_COMMANDS = [
147
147
  { name: 'tts-on', description: 'Enable streaming TTS', template: 'TTS enabled.' },
148
148
  { name: 'tts-off', description: 'Disable streaming TTS', template: 'TTS disabled.' },
149
149
  { name: 'tts-speak', description: 'Speak text immediately', template: '$ARGUMENTS' },
150
- { name: 'interrupt-ptt', description: 'Toggle walkie-talkie recording (start/stop + transcribe)', template: 'Toggles PTT recording.' },
150
+ { name: 'ptt', description: 'Toggle walkie-talkie recording (start/stop + transcribe)', template: 'Toggles PTT recording.' },
151
151
  ];
152
152
  export const InterruptPlugin = (userConfig = {}) => {
153
153
  return async ({ client }) => {
@@ -320,9 +320,9 @@ export const InterruptPlugin = (userConfig = {}) => {
320
320
  }
321
321
  },
322
322
  'command.execute.before': async (cmdInput) => {
323
- if (!cmdInput.command.startsWith('tts-') && cmdInput.command !== 'interrupt-ptt')
323
+ if (!cmdInput.command.startsWith('tts-') && cmdInput.command !== 'ptt')
324
324
  return;
325
- if (cmdInput.command === 'interrupt-ptt') {
325
+ if (cmdInput.command === 'ptt') {
326
326
  const sessionID = cmdInput.sessionID;
327
327
  if (pttActive) {
328
328
  pttActive = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-interrupt-plugin",
3
- "version": "0.4.27",
3
+ "version": "0.4.29",
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",