@wahooks/channel 2.1.3 → 2.1.4

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 +14 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -749,6 +749,20 @@ async function main() {
749
749
  // Poll every 10s as fallback
750
750
  setInterval(() => processPendingQueue(), 10_000);
751
751
  console.error("[wahooks-channel] Ready — WhatsApp messages will appear in Claude Code");
752
+ // DEBUG: test delayed notification from within the channel
753
+ setTimeout(async () => {
754
+ console.error("[wahooks-channel] DEBUG: sending test notification from setTimeout");
755
+ try {
756
+ await mcp.notification({
757
+ method: "notifications/claude/channel",
758
+ params: { content: "DEBUG: Test notification from wahooks-channel setTimeout", meta: { from: "debug" } },
759
+ });
760
+ console.error("[wahooks-channel] DEBUG: notification sent OK");
761
+ }
762
+ catch (e) {
763
+ console.error("[wahooks-channel] DEBUG: notification FAILED:", e);
764
+ }
765
+ }, 10000);
752
766
  }
753
767
  main().catch((err) => {
754
768
  console.error("[wahooks-channel] Fatal:", err.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wahooks/channel",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "WhatsApp channel for Claude Code — chat with Claude via WhatsApp",
5
5
  "type": "module",
6
6
  "bin": {