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