@gloablehive/ipad-wechat-plugin 1.0.6 → 1.0.8

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.
@@ -134,7 +134,16 @@ export const ipadWeChatPlugin = createChatChannelPlugin({
134
134
  topLevelReplyToMode: "reply",
135
135
  },
136
136
  outbound: {
137
+ deliveryMode: "direct",
137
138
  channel: "ipad-wechat",
139
+ // Resolve target - for WeChat, just pass through the ID
140
+ resolveTarget: (params) => {
141
+ const target = params.to?.trim();
142
+ if (!target) {
143
+ return { ok: false, error: new Error("No target specified") };
144
+ }
145
+ return { ok: true, to: target };
146
+ },
138
147
  attachedResults: {
139
148
  sendText: async (params) => {
140
149
  // Get config from params.cfg
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gloablehive/ipad-wechat-plugin",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
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",
package/src/channel.ts CHANGED
@@ -175,7 +175,16 @@ export const ipadWeChatPlugin = createChatChannelPlugin<IPadWeChatResolvedAccoun
175
175
  },
176
176
 
177
177
  outbound: {
178
+ deliveryMode: "direct",
178
179
  channel: "ipad-wechat",
180
+ // Resolve target - for WeChat, just pass through the ID
181
+ resolveTarget: (params: any) => {
182
+ const target = params.to?.trim();
183
+ if (!target) {
184
+ return { ok: false, error: new Error("No target specified") };
185
+ }
186
+ return { ok: true, to: target };
187
+ },
179
188
  attachedResults: {
180
189
  sendText: async (params: any) => {
181
190
  // Get config from params.cfg