@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.
- package/dist/index.js +14 -0
- 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);
|