@voiceclaw/voiceclaw-plugin 1.2.1 → 1.2.2

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.
@@ -289,8 +289,20 @@ export const voiceClawPlugin = {
289
289
  ctx: inboundCtx,
290
290
  cfg: pluginConfig,
291
291
  dispatcherOptions: {
292
- deliver: async (_outPayload) => {
293
- void _outPayload;
292
+ deliver: async (payload) => {
293
+ const replyText = typeof payload === 'string'
294
+ ? payload
295
+ : payload?.text ?? '';
296
+ if (!replyText)
297
+ return;
298
+ logger.info(`VoiceClaw: Delivering reply (${replyText.length} chars): ${replyText.slice(0, 50)}...`);
299
+ client.send({
300
+ type: 'agent_reply',
301
+ id: crypto.randomUUID(),
302
+ replyTo: msg.id,
303
+ text: replyText,
304
+ ts: new Date().toISOString(),
305
+ });
294
306
  },
295
307
  onError: (err) => {
296
308
  logger.error(`VoiceClaw: Reply dispatch error: ${String(err)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voiceclaw/voiceclaw-plugin",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "OpenClaw channel plugin for VoiceClaw — relay messages between your AI agent and the VoiceClaw iOS/macOS app via Siri",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",