@wahooks/channel 1.1.0 → 1.1.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/dist/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -205,7 +205,7 @@ mcp.setRequestHandler(ListToolsRequestSchema, async () => ({
205
205
  properties: {
206
206
  to: { type: "string", description: "Chat ID (from the channel tag 'from' attribute)" },
207
207
  message_id: { type: "string", description: "Message ID to react to (from the channel tag 'message_id' attribute)" },
208
- reaction: { type: "string", description: "Emoji reaction (e.g. 👍, ❤️, 😂, 👀)" },
208
+ reaction: { type: "string", description: "Emoji to react with (e.g. 👍, ❤️, 😂, 👀). Also accepts 'emoji' as an alias." },
209
209
  },
210
210
  required: ["to", "message_id", "reaction"],
211
211
  },
@@ -349,12 +349,13 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
349
349
  }
350
350
  case "wahooks_react": {
351
351
  const chatId = toChatId(args.to);
352
+ const reaction = args.reaction ?? args.emoji ?? "👍";
352
353
  await api("POST", `/connections/${connectionId}/react`, {
353
354
  chatId,
354
355
  messageId: args.message_id,
355
- reaction: args.reaction,
356
+ reaction,
356
357
  });
357
- return { content: [{ type: "text", text: `Reacted ${args.reaction} to message` }] };
358
+ return { content: [{ type: "text", text: `Reacted ${reaction} to message` }] };
358
359
  }
359
360
  case "wahooks_send_image":
360
361
  case "wahooks_send_document":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wahooks/channel",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "WhatsApp channel for Claude Code — chat with Claude via WhatsApp",
5
5
  "type": "module",
6
6
  "bin": {