@gloablehive/ipad-wechat-plugin 1.0.16 → 1.0.18

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 CHANGED
@@ -19,17 +19,11 @@ export default defineChannelPluginEntry({
19
19
  // Register webhook endpoint for receiving messages
20
20
  // Using /api/channels/ prefix like other plugins
21
21
  api.registerHttpRoute({
22
- path: "/api/channels/ipad-wechat",
23
- auth: "plugin",
24
- match: "prefix",
22
+ path: "/api/channels/ipad-wechat/webhook",
23
+ auth: "gateway",
25
24
  handler: async (req, res) => {
26
- // Check if it's a webhook request
27
- const path = req.url || "";
28
- if (!path.includes("/webhook")) {
29
- // Not a webhook request, let it pass through
30
- return false;
31
- }
32
25
  try {
26
+ console.log("[iPad WeChat] Webhook handler called, url:", req.url);
33
27
  // Get config from request
34
28
  const cfg = req.cfg;
35
29
  // Wait for cache manager to be ready
package/index.ts CHANGED
@@ -22,18 +22,12 @@ export default defineChannelPluginEntry({
22
22
  // Register webhook endpoint for receiving messages
23
23
  // Using /api/channels/ prefix like other plugins
24
24
  api.registerHttpRoute({
25
- path: "/api/channels/ipad-wechat",
26
- auth: "plugin",
27
- match: "prefix",
25
+ path: "/api/channels/ipad-wechat/webhook",
26
+ auth: "gateway",
28
27
  handler: async (req, res) => {
29
- // Check if it's a webhook request
30
- const path = (req as any).url || "";
31
- if (!path.includes("/webhook")) {
32
- // Not a webhook request, let it pass through
33
- return false;
34
- }
35
-
36
28
  try {
29
+ console.log("[iPad WeChat] Webhook handler called, url:", (req as any).url);
30
+
37
31
  // Get config from request
38
32
  const cfg = (req as any).cfg;
39
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gloablehive/ipad-wechat-plugin",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "type": "module",
5
5
  "description": "OpenClaw channel plugin for iPad WeChat protocol - enables sending/receiving WeChat messages through iPad protocol",
6
6
  "main": "index.ts",