@gloablehive/ipad-wechat-plugin 1.0.20 → 1.0.21

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
@@ -17,17 +17,13 @@ export default defineChannelPluginEntry({
17
17
  plugin: ipadWeChatPlugin,
18
18
  registerFull(api) {
19
19
  console.log("[iPad WeChat] registerFull called, registering webhook route");
20
- // Register webhook endpoint for receiving messages
21
- // Using plugin auth - gateway allows requests through and lets plugin handle auth
20
+ // Register webhook endpoint - use a unique path that won't conflict
22
21
  api.registerHttpRoute({
23
- path: "/api/channels/ipad-wechat",
22
+ path: "/ipad-wechat-msg",
24
23
  auth: "plugin",
25
- match: "prefix",
26
24
  handler: async (req, res) => {
27
25
  console.log("[iPad WeChat] Handler called, url:", req.url);
28
- // Get config from request
29
26
  const cfg = req.cfg;
30
- // Wait for cache manager to be ready
31
27
  const ready = getCacheManagerReady();
32
28
  if (ready) {
33
29
  await ready;
package/index.ts CHANGED
@@ -21,19 +21,14 @@ export default defineChannelPluginEntry({
21
21
  registerFull(api) {
22
22
  console.log("[iPad WeChat] registerFull called, registering webhook route");
23
23
 
24
- // Register webhook endpoint for receiving messages
25
- // Using plugin auth - gateway allows requests through and lets plugin handle auth
24
+ // Register webhook endpoint - use a unique path that won't conflict
26
25
  api.registerHttpRoute({
27
- path: "/api/channels/ipad-wechat",
26
+ path: "/ipad-wechat-msg",
28
27
  auth: "plugin",
29
- match: "prefix",
30
28
  handler: async (req, res) => {
31
29
  console.log("[iPad WeChat] Handler called, url:", (req as any).url);
32
30
 
33
- // Get config from request
34
31
  const cfg = (req as any).cfg;
35
-
36
- // Wait for cache manager to be ready
37
32
  const ready = getCacheManagerReady();
38
33
  if (ready) {
39
34
  await ready;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gloablehive/ipad-wechat-plugin",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
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",