@agent-wechat/agent-wechat 0.16.0 → 1.0.0-beta.2

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.
Files changed (4) hide show
  1. package/README.md +43 -170
  2. package/dist/index.js +1764 -7107
  3. package/openclaw.plugin.json +229 -16
  4. package/package.json +109 -18
@@ -9,12 +9,118 @@
9
9
  "configSchema": {
10
10
  "type": "object",
11
11
  "additionalProperties": false,
12
- "properties": {}
12
+ "properties": {
13
+ "backend": {
14
+ "type": "string",
15
+ "enum": [
16
+ "native"
17
+ ]
18
+ },
19
+ "native": {
20
+ "type": "object",
21
+ "additionalProperties": false,
22
+ "required": [
23
+ "mode",
24
+ "accountId",
25
+ "token",
26
+ "consumerStateDir"
27
+ ],
28
+ "properties": {
29
+ "mode": {
30
+ "type": "string",
31
+ "enum": [
32
+ "managed",
33
+ "external"
34
+ ]
35
+ },
36
+ "accountId": {
37
+ "type": "string",
38
+ "minLength": 1
39
+ },
40
+ "endpoint": {
41
+ "type": "string"
42
+ },
43
+ "executable": {
44
+ "type": "string"
45
+ },
46
+ "serverConfig": {
47
+ "type": "string"
48
+ },
49
+ "dataDir": {
50
+ "type": "string"
51
+ },
52
+ "listen": {
53
+ "type": "string"
54
+ },
55
+ "token": {
56
+ "anyOf": [
57
+ {
58
+ "type": "string",
59
+ "minLength": 1
60
+ },
61
+ {
62
+ "type": "object",
63
+ "additionalProperties": false,
64
+ "required": [
65
+ "source",
66
+ "provider",
67
+ "id"
68
+ ],
69
+ "properties": {
70
+ "source": {
71
+ "type": "string",
72
+ "enum": [
73
+ "env",
74
+ "file",
75
+ "exec",
76
+ "store"
77
+ ]
78
+ },
79
+ "provider": {
80
+ "type": "string",
81
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
82
+ },
83
+ "id": {
84
+ "type": "string",
85
+ "minLength": 1
86
+ }
87
+ }
88
+ }
89
+ ]
90
+ },
91
+ "consumerStateDir": {
92
+ "type": "string"
93
+ },
94
+ "readPolicy": {
95
+ "type": "string",
96
+ "enum": [
97
+ "never",
98
+ "on_model_dispatch"
99
+ ]
100
+ },
101
+ "gatewayFacade": {
102
+ "type": "object",
103
+ "additionalProperties": false,
104
+ "required": [
105
+ "enabled"
106
+ ],
107
+ "properties": {
108
+ "enabled": {
109
+ "type": "boolean"
110
+ },
111
+ "prefix": {
112
+ "type": "string"
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
13
119
  },
14
120
  "channelConfigs": {
15
121
  "agent-wechat": {
16
122
  "label": "WeChat",
17
- "description": "WeChat messaging via agent-wechat container.",
123
+ "description": "WeChat messaging through the standalone native daemon.",
18
124
  "schema": {
19
125
  "type": "object",
20
126
  "additionalProperties": false,
@@ -22,12 +128,6 @@
22
128
  "enabled": {
23
129
  "type": "boolean"
24
130
  },
25
- "serverUrl": {
26
- "type": "string"
27
- },
28
- "token": {
29
- "type": "string"
30
- },
31
131
  "dmPolicy": {
32
132
  "type": "string",
33
133
  "enum": [
@@ -84,21 +184,134 @@
84
184
  }
85
185
  }
86
186
  },
87
- "pollIntervalMs": {
88
- "type": "integer",
89
- "minimum": 100
90
- },
91
- "authPollIntervalMs": {
92
- "type": "integer",
93
- "minimum": 1000
94
- },
95
187
  "mediaMaxMb": {
96
188
  "type": "integer",
97
189
  "minimum": 1,
98
190
  "maximum": 1024
191
+ },
192
+ "backend": {
193
+ "type": "string",
194
+ "enum": [
195
+ "native"
196
+ ]
197
+ },
198
+ "native": {
199
+ "type": "object",
200
+ "additionalProperties": false,
201
+ "required": [
202
+ "mode",
203
+ "accountId",
204
+ "token",
205
+ "consumerStateDir"
206
+ ],
207
+ "properties": {
208
+ "mode": {
209
+ "type": "string",
210
+ "enum": [
211
+ "managed",
212
+ "external"
213
+ ]
214
+ },
215
+ "accountId": {
216
+ "type": "string",
217
+ "minLength": 1
218
+ },
219
+ "endpoint": {
220
+ "type": "string"
221
+ },
222
+ "executable": {
223
+ "type": "string"
224
+ },
225
+ "serverConfig": {
226
+ "type": "string"
227
+ },
228
+ "dataDir": {
229
+ "type": "string"
230
+ },
231
+ "listen": {
232
+ "type": "string"
233
+ },
234
+ "token": {
235
+ "anyOf": [
236
+ {
237
+ "type": "string",
238
+ "minLength": 1
239
+ },
240
+ {
241
+ "type": "object",
242
+ "additionalProperties": false,
243
+ "required": [
244
+ "source",
245
+ "provider",
246
+ "id"
247
+ ],
248
+ "properties": {
249
+ "source": {
250
+ "type": "string",
251
+ "enum": [
252
+ "env",
253
+ "file",
254
+ "exec",
255
+ "store"
256
+ ]
257
+ },
258
+ "provider": {
259
+ "type": "string",
260
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
261
+ },
262
+ "id": {
263
+ "type": "string",
264
+ "minLength": 1
265
+ }
266
+ }
267
+ }
268
+ ]
269
+ },
270
+ "consumerStateDir": {
271
+ "type": "string"
272
+ },
273
+ "readPolicy": {
274
+ "type": "string",
275
+ "enum": [
276
+ "never",
277
+ "on_model_dispatch"
278
+ ]
279
+ },
280
+ "gatewayFacade": {
281
+ "type": "object",
282
+ "additionalProperties": false,
283
+ "required": [
284
+ "enabled"
285
+ ],
286
+ "properties": {
287
+ "enabled": {
288
+ "type": "boolean"
289
+ },
290
+ "prefix": {
291
+ "type": "string"
292
+ }
293
+ }
294
+ }
295
+ }
99
296
  }
100
297
  }
101
298
  }
102
299
  }
300
+ },
301
+ "configContracts": {
302
+ "secretInputs": {
303
+ "paths": [
304
+ {
305
+ "path": "native.token",
306
+ "expected": "string",
307
+ "ownerKind": "capability"
308
+ }
309
+ ]
310
+ }
311
+ },
312
+ "uiHints": {
313
+ "native.token": {
314
+ "sensitive": true
315
+ }
103
316
  }
104
317
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-wechat/agent-wechat",
3
- "version": "0.16.0",
3
+ "version": "1.0.0-beta.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -9,9 +9,9 @@
9
9
  "devDependencies": {
10
10
  "@types/node": "^22",
11
11
  "esbuild": "^0.25.0",
12
- "openclaw": "^2026.10.2",
12
+ "openclaw": "2026.10.2",
13
13
  "typescript": "^5.4.5",
14
- "@agent-wechat/shared": "0.3.1"
14
+ "@agent-wechat/shared": "1.0.0-beta.0"
15
15
  },
16
16
  "openclaw": {
17
17
  "extensions": [
@@ -29,7 +29,7 @@
29
29
  "channelConfigs": {
30
30
  "agent-wechat": {
31
31
  "label": "WeChat",
32
- "description": "WeChat messaging via agent-wechat container.",
32
+ "description": "WeChat messaging through the standalone native daemon.",
33
33
  "schema": {
34
34
  "type": "object",
35
35
  "additionalProperties": false,
@@ -37,12 +37,6 @@
37
37
  "enabled": {
38
38
  "type": "boolean"
39
39
  },
40
- "serverUrl": {
41
- "type": "string"
42
- },
43
- "token": {
44
- "type": "string"
45
- },
46
40
  "dmPolicy": {
47
41
  "type": "string",
48
42
  "enum": [
@@ -99,18 +93,115 @@
99
93
  }
100
94
  }
101
95
  },
102
- "pollIntervalMs": {
103
- "type": "integer",
104
- "minimum": 100
105
- },
106
- "authPollIntervalMs": {
107
- "type": "integer",
108
- "minimum": 1000
109
- },
110
96
  "mediaMaxMb": {
111
97
  "type": "integer",
112
98
  "minimum": 1,
113
99
  "maximum": 1024
100
+ },
101
+ "backend": {
102
+ "type": "string",
103
+ "enum": [
104
+ "native"
105
+ ]
106
+ },
107
+ "native": {
108
+ "type": "object",
109
+ "additionalProperties": false,
110
+ "required": [
111
+ "mode",
112
+ "accountId",
113
+ "token",
114
+ "consumerStateDir"
115
+ ],
116
+ "properties": {
117
+ "mode": {
118
+ "type": "string",
119
+ "enum": [
120
+ "managed",
121
+ "external"
122
+ ]
123
+ },
124
+ "accountId": {
125
+ "type": "string",
126
+ "minLength": 1
127
+ },
128
+ "endpoint": {
129
+ "type": "string"
130
+ },
131
+ "executable": {
132
+ "type": "string"
133
+ },
134
+ "serverConfig": {
135
+ "type": "string"
136
+ },
137
+ "dataDir": {
138
+ "type": "string"
139
+ },
140
+ "listen": {
141
+ "type": "string"
142
+ },
143
+ "token": {
144
+ "anyOf": [
145
+ {
146
+ "type": "string",
147
+ "minLength": 1
148
+ },
149
+ {
150
+ "type": "object",
151
+ "additionalProperties": false,
152
+ "required": [
153
+ "source",
154
+ "provider",
155
+ "id"
156
+ ],
157
+ "properties": {
158
+ "source": {
159
+ "type": "string",
160
+ "enum": [
161
+ "env",
162
+ "file",
163
+ "exec",
164
+ "store"
165
+ ]
166
+ },
167
+ "provider": {
168
+ "type": "string",
169
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
170
+ },
171
+ "id": {
172
+ "type": "string",
173
+ "minLength": 1
174
+ }
175
+ }
176
+ }
177
+ ]
178
+ },
179
+ "consumerStateDir": {
180
+ "type": "string"
181
+ },
182
+ "readPolicy": {
183
+ "type": "string",
184
+ "enum": [
185
+ "never",
186
+ "on_model_dispatch"
187
+ ]
188
+ },
189
+ "gatewayFacade": {
190
+ "type": "object",
191
+ "additionalProperties": false,
192
+ "required": [
193
+ "enabled"
194
+ ],
195
+ "properties": {
196
+ "enabled": {
197
+ "type": "boolean"
198
+ },
199
+ "prefix": {
200
+ "type": "string"
201
+ }
202
+ }
203
+ }
204
+ }
114
205
  }
115
206
  }
116
207
  }