@agent-wechat/agent-wechat 1.5.0 → 2.0.0-beta.0
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/README.md +1 -1
- package/dist/index.js +1767 -539
- package/openclaw.plugin.json +206 -6
- package/package.json +101 -5
package/openclaw.plugin.json
CHANGED
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"calls": {
|
|
158
158
|
"type": "object",
|
|
159
159
|
"additionalProperties": false,
|
|
160
|
-
"description": "Independent voice and video permissions.
|
|
160
|
+
"description": "Independent voice and video permissions. Voice includes direct calls and separately configured conferences; both default off.",
|
|
161
161
|
"properties": {
|
|
162
162
|
"voice": {
|
|
163
163
|
"type": "object",
|
|
@@ -166,7 +166,42 @@
|
|
|
166
166
|
"enabled": {
|
|
167
167
|
"type": "boolean",
|
|
168
168
|
"default": false,
|
|
169
|
-
"description": "Enable
|
|
169
|
+
"description": "Enable voice calling. Conferences also require an exact configured group. Disabled voice calls are ignored without answering or declining."
|
|
170
|
+
},
|
|
171
|
+
"mode": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"enum": [
|
|
174
|
+
"bidi",
|
|
175
|
+
"agent"
|
|
176
|
+
],
|
|
177
|
+
"default": "bidi",
|
|
178
|
+
"description": "bidi uses a realtime voice model (including Live); agent transcribes speech, runs the configured OpenClaw agent and speaks through OpenClaw TTS. Applies to direct calls and conferences."
|
|
179
|
+
},
|
|
180
|
+
"transcription": {
|
|
181
|
+
"type": "object",
|
|
182
|
+
"additionalProperties": false,
|
|
183
|
+
"properties": {
|
|
184
|
+
"provider": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"minLength": 1,
|
|
187
|
+
"maxLength": 200,
|
|
188
|
+
"default": "openai",
|
|
189
|
+
"description": "Registered realtime transcription provider for agent mode."
|
|
190
|
+
},
|
|
191
|
+
"model": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"minLength": 1,
|
|
194
|
+
"maxLength": 200
|
|
195
|
+
},
|
|
196
|
+
"language": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"minLength": 1,
|
|
199
|
+
"maxLength": 200
|
|
200
|
+
},
|
|
201
|
+
"apiKey": {
|
|
202
|
+
"description": "Optional OpenClaw SecretRef or API-key string for the transcription provider. Omitted uses provider configuration."
|
|
203
|
+
}
|
|
204
|
+
}
|
|
170
205
|
},
|
|
171
206
|
"inboundPolicy": {
|
|
172
207
|
"type": "string",
|
|
@@ -209,6 +244,67 @@
|
|
|
209
244
|
"maxLength": 200
|
|
210
245
|
}
|
|
211
246
|
},
|
|
247
|
+
"conferences": {
|
|
248
|
+
"type": "object",
|
|
249
|
+
"additionalProperties": false,
|
|
250
|
+
"properties": {
|
|
251
|
+
"groups": {
|
|
252
|
+
"type": "object",
|
|
253
|
+
"maxProperties": 128,
|
|
254
|
+
"propertyNames": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"pattern": "^.+@chatroom$",
|
|
257
|
+
"maxLength": 200
|
|
258
|
+
},
|
|
259
|
+
"additionalProperties": {
|
|
260
|
+
"type": "object",
|
|
261
|
+
"additionalProperties": false,
|
|
262
|
+
"properties": {
|
|
263
|
+
"autoJoin": {
|
|
264
|
+
"type": "boolean",
|
|
265
|
+
"default": false,
|
|
266
|
+
"description": "Join current authenticated invitations for this exact group after voice preflight. No configured groups means no conference automation."
|
|
267
|
+
},
|
|
268
|
+
"autoJoinAllowFrom": {
|
|
269
|
+
"type": "array",
|
|
270
|
+
"maxItems": 128,
|
|
271
|
+
"items": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"minLength": 1,
|
|
274
|
+
"maxLength": 200
|
|
275
|
+
},
|
|
276
|
+
"description": "Optional exact conference inviter IDs. When present, only invitations from these contacts can auto-join; an empty list disables auto-join. The configured group is still required."
|
|
277
|
+
},
|
|
278
|
+
"toolPolicy": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"enum": [
|
|
281
|
+
"none",
|
|
282
|
+
"safe-read-only",
|
|
283
|
+
"owner"
|
|
284
|
+
],
|
|
285
|
+
"default": "safe-read-only",
|
|
286
|
+
"description": "Conference consultation authority. Owner requires voice.toolPolicy=owner and an exact agent-wechat:GROUP_ID grant in commands.ownerAllowFrom. It trusts the whole group without attributing speech to a person; otherwise consultation stays read-only."
|
|
287
|
+
},
|
|
288
|
+
"ownerInviterToolPolicy": {
|
|
289
|
+
"type": "string",
|
|
290
|
+
"enum": [
|
|
291
|
+
"none",
|
|
292
|
+
"safe-read-only",
|
|
293
|
+
"owner"
|
|
294
|
+
],
|
|
295
|
+
"description": "Optional policy for calls whose authenticated inviter exactly matches an agent-wechat:CONTACT_ID owner grant. Otherwise toolPolicy applies. Owner also requires voice.toolPolicy=owner and an exact group owner grant. Applies to the whole call, including later participants; permissions can decrease but cannot increase during a call."
|
|
296
|
+
},
|
|
297
|
+
"sessionKey": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"pattern": "^agent:[a-z0-9][a-z0-9_-]{0,63}:[^:\\s][^\\s]*$",
|
|
300
|
+
"maxLength": 1024,
|
|
301
|
+
"description": "Optional consultation parent session of this voice agent for this group. Default sessions are isolated by account, group and authority."
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
},
|
|
212
308
|
"agentId": {
|
|
213
309
|
"type": "string",
|
|
214
310
|
"minLength": 1,
|
|
@@ -248,7 +344,7 @@
|
|
|
248
344
|
"enabled": {
|
|
249
345
|
"type": "boolean",
|
|
250
346
|
"default": false,
|
|
251
|
-
"description": "
|
|
347
|
+
"description": "Use OpenClaw's shared voice context to send bounded IDENTITY.md, USER.md and SOUL.md excerpts for direct calls and conferences. Configured agent identity is used independently; normal agent/TTS turns already receive host context."
|
|
252
348
|
}
|
|
253
349
|
}
|
|
254
350
|
},
|
|
@@ -573,7 +669,7 @@
|
|
|
573
669
|
"calls": {
|
|
574
670
|
"type": "object",
|
|
575
671
|
"additionalProperties": false,
|
|
576
|
-
"description": "Independent voice and video permissions.
|
|
672
|
+
"description": "Independent voice and video permissions. Voice includes direct calls and separately configured conferences; both default off.",
|
|
577
673
|
"properties": {
|
|
578
674
|
"voice": {
|
|
579
675
|
"type": "object",
|
|
@@ -582,7 +678,42 @@
|
|
|
582
678
|
"enabled": {
|
|
583
679
|
"type": "boolean",
|
|
584
680
|
"default": false,
|
|
585
|
-
"description": "Enable
|
|
681
|
+
"description": "Enable voice calling. Conferences also require an exact configured group. Disabled voice calls are ignored without answering or declining."
|
|
682
|
+
},
|
|
683
|
+
"mode": {
|
|
684
|
+
"type": "string",
|
|
685
|
+
"enum": [
|
|
686
|
+
"bidi",
|
|
687
|
+
"agent"
|
|
688
|
+
],
|
|
689
|
+
"default": "bidi",
|
|
690
|
+
"description": "bidi uses a realtime voice model (including Live); agent transcribes speech, runs the configured OpenClaw agent and speaks through OpenClaw TTS. Applies to direct calls and conferences."
|
|
691
|
+
},
|
|
692
|
+
"transcription": {
|
|
693
|
+
"type": "object",
|
|
694
|
+
"additionalProperties": false,
|
|
695
|
+
"properties": {
|
|
696
|
+
"provider": {
|
|
697
|
+
"type": "string",
|
|
698
|
+
"minLength": 1,
|
|
699
|
+
"maxLength": 200,
|
|
700
|
+
"default": "openai",
|
|
701
|
+
"description": "Registered realtime transcription provider for agent mode."
|
|
702
|
+
},
|
|
703
|
+
"model": {
|
|
704
|
+
"type": "string",
|
|
705
|
+
"minLength": 1,
|
|
706
|
+
"maxLength": 200
|
|
707
|
+
},
|
|
708
|
+
"language": {
|
|
709
|
+
"type": "string",
|
|
710
|
+
"minLength": 1,
|
|
711
|
+
"maxLength": 200
|
|
712
|
+
},
|
|
713
|
+
"apiKey": {
|
|
714
|
+
"description": "Optional OpenClaw SecretRef or API-key string for the transcription provider. Omitted uses provider configuration."
|
|
715
|
+
}
|
|
716
|
+
}
|
|
586
717
|
},
|
|
587
718
|
"inboundPolicy": {
|
|
588
719
|
"type": "string",
|
|
@@ -625,6 +756,67 @@
|
|
|
625
756
|
"maxLength": 200
|
|
626
757
|
}
|
|
627
758
|
},
|
|
759
|
+
"conferences": {
|
|
760
|
+
"type": "object",
|
|
761
|
+
"additionalProperties": false,
|
|
762
|
+
"properties": {
|
|
763
|
+
"groups": {
|
|
764
|
+
"type": "object",
|
|
765
|
+
"maxProperties": 128,
|
|
766
|
+
"propertyNames": {
|
|
767
|
+
"type": "string",
|
|
768
|
+
"pattern": "^.+@chatroom$",
|
|
769
|
+
"maxLength": 200
|
|
770
|
+
},
|
|
771
|
+
"additionalProperties": {
|
|
772
|
+
"type": "object",
|
|
773
|
+
"additionalProperties": false,
|
|
774
|
+
"properties": {
|
|
775
|
+
"autoJoin": {
|
|
776
|
+
"type": "boolean",
|
|
777
|
+
"default": false,
|
|
778
|
+
"description": "Join current authenticated invitations for this exact group after voice preflight. No configured groups means no conference automation."
|
|
779
|
+
},
|
|
780
|
+
"autoJoinAllowFrom": {
|
|
781
|
+
"type": "array",
|
|
782
|
+
"maxItems": 128,
|
|
783
|
+
"items": {
|
|
784
|
+
"type": "string",
|
|
785
|
+
"minLength": 1,
|
|
786
|
+
"maxLength": 200
|
|
787
|
+
},
|
|
788
|
+
"description": "Optional exact conference inviter IDs. When present, only invitations from these contacts can auto-join; an empty list disables auto-join. The configured group is still required."
|
|
789
|
+
},
|
|
790
|
+
"toolPolicy": {
|
|
791
|
+
"type": "string",
|
|
792
|
+
"enum": [
|
|
793
|
+
"none",
|
|
794
|
+
"safe-read-only",
|
|
795
|
+
"owner"
|
|
796
|
+
],
|
|
797
|
+
"default": "safe-read-only",
|
|
798
|
+
"description": "Conference consultation authority. Owner requires voice.toolPolicy=owner and an exact agent-wechat:GROUP_ID grant in commands.ownerAllowFrom. It trusts the whole group without attributing speech to a person; otherwise consultation stays read-only."
|
|
799
|
+
},
|
|
800
|
+
"ownerInviterToolPolicy": {
|
|
801
|
+
"type": "string",
|
|
802
|
+
"enum": [
|
|
803
|
+
"none",
|
|
804
|
+
"safe-read-only",
|
|
805
|
+
"owner"
|
|
806
|
+
],
|
|
807
|
+
"description": "Optional policy for calls whose authenticated inviter exactly matches an agent-wechat:CONTACT_ID owner grant. Otherwise toolPolicy applies. Owner also requires voice.toolPolicy=owner and an exact group owner grant. Applies to the whole call, including later participants; permissions can decrease but cannot increase during a call."
|
|
808
|
+
},
|
|
809
|
+
"sessionKey": {
|
|
810
|
+
"type": "string",
|
|
811
|
+
"pattern": "^agent:[a-z0-9][a-z0-9_-]{0,63}:[^:\\s][^\\s]*$",
|
|
812
|
+
"maxLength": 1024,
|
|
813
|
+
"description": "Optional consultation parent session of this voice agent for this group. Default sessions are isolated by account, group and authority."
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
},
|
|
628
820
|
"agentId": {
|
|
629
821
|
"type": "string",
|
|
630
822
|
"minLength": 1,
|
|
@@ -664,7 +856,7 @@
|
|
|
664
856
|
"enabled": {
|
|
665
857
|
"type": "boolean",
|
|
666
858
|
"default": false,
|
|
667
|
-
"description": "
|
|
859
|
+
"description": "Use OpenClaw's shared voice context to send bounded IDENTITY.md, USER.md and SOUL.md excerpts for direct calls and conferences. Configured agent identity is used independently; normal agent/TTS turns already receive host context."
|
|
668
860
|
}
|
|
669
861
|
}
|
|
670
862
|
},
|
|
@@ -822,6 +1014,11 @@
|
|
|
822
1014
|
"path": "calls.voice.realtime.providers.openai.apiKey",
|
|
823
1015
|
"expected": "string",
|
|
824
1016
|
"ownerKind": "capability"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"path": "calls.voice.transcription.apiKey",
|
|
1020
|
+
"expected": "string",
|
|
1021
|
+
"ownerKind": "capability"
|
|
825
1022
|
}
|
|
826
1023
|
]
|
|
827
1024
|
}
|
|
@@ -832,6 +1029,9 @@
|
|
|
832
1029
|
},
|
|
833
1030
|
"calls.voice.realtime.providers.openai.apiKey": {
|
|
834
1031
|
"sensitive": true
|
|
1032
|
+
},
|
|
1033
|
+
"calls.voice.transcription.apiKey": {
|
|
1034
|
+
"sensitive": true
|
|
835
1035
|
}
|
|
836
1036
|
}
|
|
837
1037
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-wechat/agent-wechat",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"esbuild": "^0.25.0",
|
|
14
14
|
"openclaw": "2026.10.9",
|
|
15
15
|
"typescript": "^5.4.5",
|
|
16
|
-
"@agent-wechat/shared": "
|
|
16
|
+
"@agent-wechat/shared": "2.0.0-beta.0"
|
|
17
17
|
},
|
|
18
18
|
"openclaw": {
|
|
19
19
|
"extensions": [
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"calls": {
|
|
210
210
|
"type": "object",
|
|
211
211
|
"additionalProperties": false,
|
|
212
|
-
"description": "Independent voice and video permissions.
|
|
212
|
+
"description": "Independent voice and video permissions. Voice includes direct calls and separately configured conferences; both default off.",
|
|
213
213
|
"properties": {
|
|
214
214
|
"voice": {
|
|
215
215
|
"type": "object",
|
|
@@ -218,7 +218,42 @@
|
|
|
218
218
|
"enabled": {
|
|
219
219
|
"type": "boolean",
|
|
220
220
|
"default": false,
|
|
221
|
-
"description": "Enable
|
|
221
|
+
"description": "Enable voice calling. Conferences also require an exact configured group. Disabled voice calls are ignored without answering or declining."
|
|
222
|
+
},
|
|
223
|
+
"mode": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"enum": [
|
|
226
|
+
"bidi",
|
|
227
|
+
"agent"
|
|
228
|
+
],
|
|
229
|
+
"default": "bidi",
|
|
230
|
+
"description": "bidi uses a realtime voice model (including Live); agent transcribes speech, runs the configured OpenClaw agent and speaks through OpenClaw TTS. Applies to direct calls and conferences."
|
|
231
|
+
},
|
|
232
|
+
"transcription": {
|
|
233
|
+
"type": "object",
|
|
234
|
+
"additionalProperties": false,
|
|
235
|
+
"properties": {
|
|
236
|
+
"provider": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"minLength": 1,
|
|
239
|
+
"maxLength": 200,
|
|
240
|
+
"default": "openai",
|
|
241
|
+
"description": "Registered realtime transcription provider for agent mode."
|
|
242
|
+
},
|
|
243
|
+
"model": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"minLength": 1,
|
|
246
|
+
"maxLength": 200
|
|
247
|
+
},
|
|
248
|
+
"language": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"minLength": 1,
|
|
251
|
+
"maxLength": 200
|
|
252
|
+
},
|
|
253
|
+
"apiKey": {
|
|
254
|
+
"description": "Optional OpenClaw SecretRef or API-key string for the transcription provider. Omitted uses provider configuration."
|
|
255
|
+
}
|
|
256
|
+
}
|
|
222
257
|
},
|
|
223
258
|
"inboundPolicy": {
|
|
224
259
|
"type": "string",
|
|
@@ -261,6 +296,67 @@
|
|
|
261
296
|
"maxLength": 200
|
|
262
297
|
}
|
|
263
298
|
},
|
|
299
|
+
"conferences": {
|
|
300
|
+
"type": "object",
|
|
301
|
+
"additionalProperties": false,
|
|
302
|
+
"properties": {
|
|
303
|
+
"groups": {
|
|
304
|
+
"type": "object",
|
|
305
|
+
"maxProperties": 128,
|
|
306
|
+
"propertyNames": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"pattern": "^.+@chatroom$",
|
|
309
|
+
"maxLength": 200
|
|
310
|
+
},
|
|
311
|
+
"additionalProperties": {
|
|
312
|
+
"type": "object",
|
|
313
|
+
"additionalProperties": false,
|
|
314
|
+
"properties": {
|
|
315
|
+
"autoJoin": {
|
|
316
|
+
"type": "boolean",
|
|
317
|
+
"default": false,
|
|
318
|
+
"description": "Join current authenticated invitations for this exact group after voice preflight. No configured groups means no conference automation."
|
|
319
|
+
},
|
|
320
|
+
"autoJoinAllowFrom": {
|
|
321
|
+
"type": "array",
|
|
322
|
+
"maxItems": 128,
|
|
323
|
+
"items": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"minLength": 1,
|
|
326
|
+
"maxLength": 200
|
|
327
|
+
},
|
|
328
|
+
"description": "Optional exact conference inviter IDs. When present, only invitations from these contacts can auto-join; an empty list disables auto-join. The configured group is still required."
|
|
329
|
+
},
|
|
330
|
+
"toolPolicy": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"enum": [
|
|
333
|
+
"none",
|
|
334
|
+
"safe-read-only",
|
|
335
|
+
"owner"
|
|
336
|
+
],
|
|
337
|
+
"default": "safe-read-only",
|
|
338
|
+
"description": "Conference consultation authority. Owner requires voice.toolPolicy=owner and an exact agent-wechat:GROUP_ID grant in commands.ownerAllowFrom. It trusts the whole group without attributing speech to a person; otherwise consultation stays read-only."
|
|
339
|
+
},
|
|
340
|
+
"ownerInviterToolPolicy": {
|
|
341
|
+
"type": "string",
|
|
342
|
+
"enum": [
|
|
343
|
+
"none",
|
|
344
|
+
"safe-read-only",
|
|
345
|
+
"owner"
|
|
346
|
+
],
|
|
347
|
+
"description": "Optional policy for calls whose authenticated inviter exactly matches an agent-wechat:CONTACT_ID owner grant. Otherwise toolPolicy applies. Owner also requires voice.toolPolicy=owner and an exact group owner grant. Applies to the whole call, including later participants; permissions can decrease but cannot increase during a call."
|
|
348
|
+
},
|
|
349
|
+
"sessionKey": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"pattern": "^agent:[a-z0-9][a-z0-9_-]{0,63}:[^:\\s][^\\s]*$",
|
|
352
|
+
"maxLength": 1024,
|
|
353
|
+
"description": "Optional consultation parent session of this voice agent for this group. Default sessions are isolated by account, group and authority."
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
},
|
|
264
360
|
"agentId": {
|
|
265
361
|
"type": "string",
|
|
266
362
|
"minLength": 1,
|
|
@@ -300,7 +396,7 @@
|
|
|
300
396
|
"enabled": {
|
|
301
397
|
"type": "boolean",
|
|
302
398
|
"default": false,
|
|
303
|
-
"description": "
|
|
399
|
+
"description": "Use OpenClaw's shared voice context to send bounded IDENTITY.md, USER.md and SOUL.md excerpts for direct calls and conferences. Configured agent identity is used independently; normal agent/TTS turns already receive host context."
|
|
304
400
|
}
|
|
305
401
|
}
|
|
306
402
|
},
|