@openclaw/signal 0.0.0 → 2026.6.11-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 (49) hide show
  1. package/README.md +12 -2
  2. package/dist/accounts-hOCHbEhX.js +40 -0
  3. package/dist/api.js +16 -0
  4. package/dist/approval-handler.runtime-CeJI1wow.js +158 -0
  5. package/dist/approval-resolver-BR0MioAA.js +15 -0
  6. package/dist/channel-LmY2UpOt.js +619 -0
  7. package/dist/channel-config-api.js +2 -0
  8. package/dist/channel-entry.js +18 -0
  9. package/dist/channel-plugin-api.js +2 -0
  10. package/dist/channel.runtime-B0-YpkC4.js +65 -0
  11. package/dist/config-api-KS-qhQvD.js +2 -0
  12. package/dist/config-schema-BiojLEsX.js +27 -0
  13. package/dist/contract-api.js +3 -0
  14. package/dist/identity-B6O4k8xg.js +130 -0
  15. package/dist/index.js +18 -0
  16. package/dist/install-signal-cli-CXgTF3de.js +243 -0
  17. package/dist/message-actions-Bue0g2Kc.js +548 -0
  18. package/dist/monitor-CUhIKHJo.js +1404 -0
  19. package/dist/probe-BQ_Izoya.js +48 -0
  20. package/dist/reaction-runtime-api-C_PQ45D9.js +1074 -0
  21. package/dist/reaction-runtime-api.js +2 -0
  22. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  23. package/dist/runtime-api.js +18 -0
  24. package/dist/secret-contract-api.js +5 -0
  25. package/dist/send-CBlFUkY_.js +599 -0
  26. package/dist/send.runtime-CfaZd8X4.js +2 -0
  27. package/dist/setup-entry.js +11 -0
  28. package/node_modules/ws/LICENSE +20 -0
  29. package/node_modules/ws/README.md +548 -0
  30. package/node_modules/ws/browser.js +8 -0
  31. package/node_modules/ws/index.js +22 -0
  32. package/node_modules/ws/lib/buffer-util.js +131 -0
  33. package/node_modules/ws/lib/constants.js +19 -0
  34. package/node_modules/ws/lib/event-target.js +292 -0
  35. package/node_modules/ws/lib/extension.js +203 -0
  36. package/node_modules/ws/lib/limiter.js +55 -0
  37. package/node_modules/ws/lib/permessage-deflate.js +528 -0
  38. package/node_modules/ws/lib/receiver.js +760 -0
  39. package/node_modules/ws/lib/sender.js +607 -0
  40. package/node_modules/ws/lib/stream.js +161 -0
  41. package/node_modules/ws/lib/subprotocol.js +62 -0
  42. package/node_modules/ws/lib/validation.js +152 -0
  43. package/node_modules/ws/lib/websocket-server.js +562 -0
  44. package/node_modules/ws/lib/websocket.js +1407 -0
  45. package/node_modules/ws/package.json +70 -0
  46. package/node_modules/ws/wrapper.mjs +21 -0
  47. package/npm-shrinkwrap.json +36 -0
  48. package/openclaw.plugin.json +771 -0
  49. package/package.json +77 -7
@@ -0,0 +1,771 @@
1
+ {
2
+ "id": "signal",
3
+ "icon": "https://cdn.simpleicons.org/signal",
4
+ "activation": {
5
+ "onStartup": false
6
+ },
7
+ "channels": [
8
+ "signal"
9
+ ],
10
+ "configSchema": {
11
+ "type": "object",
12
+ "additionalProperties": false,
13
+ "properties": {}
14
+ },
15
+ "channelConfigs": {
16
+ "signal": {
17
+ "schema": {
18
+ "$schema": "http://json-schema.org/draft-07/schema#",
19
+ "type": "object",
20
+ "properties": {
21
+ "name": {
22
+ "type": "string"
23
+ },
24
+ "capabilities": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "string"
28
+ }
29
+ },
30
+ "markdown": {
31
+ "type": "object",
32
+ "properties": {
33
+ "tables": {
34
+ "type": "string",
35
+ "enum": [
36
+ "off",
37
+ "bullets",
38
+ "code",
39
+ "block"
40
+ ]
41
+ }
42
+ },
43
+ "additionalProperties": false
44
+ },
45
+ "enabled": {
46
+ "type": "boolean"
47
+ },
48
+ "configWrites": {
49
+ "type": "boolean"
50
+ },
51
+ "account": {
52
+ "type": "string"
53
+ },
54
+ "accountUuid": {
55
+ "type": "string"
56
+ },
57
+ "configPath": {
58
+ "type": "string"
59
+ },
60
+ "httpUrl": {
61
+ "type": "string"
62
+ },
63
+ "httpHost": {
64
+ "type": "string"
65
+ },
66
+ "httpPort": {
67
+ "type": "integer",
68
+ "exclusiveMinimum": 0,
69
+ "maximum": 9007199254740991
70
+ },
71
+ "cliPath": {
72
+ "type": "string"
73
+ },
74
+ "autoStart": {
75
+ "type": "boolean"
76
+ },
77
+ "startupTimeoutMs": {
78
+ "type": "integer",
79
+ "minimum": 1000,
80
+ "maximum": 120000
81
+ },
82
+ "receiveMode": {
83
+ "anyOf": [
84
+ {
85
+ "type": "string",
86
+ "const": "on-start"
87
+ },
88
+ {
89
+ "type": "string",
90
+ "const": "manual"
91
+ }
92
+ ]
93
+ },
94
+ "ignoreAttachments": {
95
+ "type": "boolean"
96
+ },
97
+ "ignoreStories": {
98
+ "type": "boolean"
99
+ },
100
+ "sendReadReceipts": {
101
+ "type": "boolean"
102
+ },
103
+ "dmPolicy": {
104
+ "default": "pairing",
105
+ "type": "string",
106
+ "enum": [
107
+ "pairing",
108
+ "allowlist",
109
+ "open",
110
+ "disabled"
111
+ ]
112
+ },
113
+ "allowFrom": {
114
+ "type": "array",
115
+ "items": {
116
+ "anyOf": [
117
+ {
118
+ "type": "string"
119
+ },
120
+ {
121
+ "type": "number"
122
+ }
123
+ ]
124
+ }
125
+ },
126
+ "defaultTo": {
127
+ "type": "string"
128
+ },
129
+ "groupAllowFrom": {
130
+ "type": "array",
131
+ "items": {
132
+ "anyOf": [
133
+ {
134
+ "type": "string"
135
+ },
136
+ {
137
+ "type": "number"
138
+ }
139
+ ]
140
+ }
141
+ },
142
+ "groupPolicy": {
143
+ "default": "allowlist",
144
+ "type": "string",
145
+ "enum": [
146
+ "open",
147
+ "disabled",
148
+ "allowlist"
149
+ ]
150
+ },
151
+ "contextVisibility": {
152
+ "type": "string",
153
+ "enum": [
154
+ "all",
155
+ "allowlist",
156
+ "allowlist_quote"
157
+ ]
158
+ },
159
+ "groups": {
160
+ "type": "object",
161
+ "propertyNames": {
162
+ "type": "string"
163
+ },
164
+ "additionalProperties": {
165
+ "type": "object",
166
+ "properties": {
167
+ "requireMention": {
168
+ "type": "boolean"
169
+ },
170
+ "ingest": {
171
+ "type": "boolean"
172
+ },
173
+ "tools": {
174
+ "type": "object",
175
+ "properties": {
176
+ "allow": {
177
+ "type": "array",
178
+ "items": {
179
+ "type": "string"
180
+ }
181
+ },
182
+ "alsoAllow": {
183
+ "type": "array",
184
+ "items": {
185
+ "type": "string"
186
+ }
187
+ },
188
+ "deny": {
189
+ "type": "array",
190
+ "items": {
191
+ "type": "string"
192
+ }
193
+ }
194
+ },
195
+ "additionalProperties": false
196
+ },
197
+ "toolsBySender": {
198
+ "type": "object",
199
+ "propertyNames": {
200
+ "type": "string"
201
+ },
202
+ "additionalProperties": {
203
+ "type": "object",
204
+ "properties": {
205
+ "allow": {
206
+ "type": "array",
207
+ "items": {
208
+ "type": "string"
209
+ }
210
+ },
211
+ "alsoAllow": {
212
+ "type": "array",
213
+ "items": {
214
+ "type": "string"
215
+ }
216
+ },
217
+ "deny": {
218
+ "type": "array",
219
+ "items": {
220
+ "type": "string"
221
+ }
222
+ }
223
+ },
224
+ "additionalProperties": false
225
+ }
226
+ }
227
+ },
228
+ "additionalProperties": false
229
+ }
230
+ },
231
+ "historyLimit": {
232
+ "type": "integer",
233
+ "minimum": 0,
234
+ "maximum": 9007199254740991
235
+ },
236
+ "dmHistoryLimit": {
237
+ "type": "integer",
238
+ "minimum": 0,
239
+ "maximum": 9007199254740991
240
+ },
241
+ "dms": {
242
+ "type": "object",
243
+ "propertyNames": {
244
+ "type": "string"
245
+ },
246
+ "additionalProperties": {
247
+ "type": "object",
248
+ "properties": {
249
+ "historyLimit": {
250
+ "type": "integer",
251
+ "minimum": 0,
252
+ "maximum": 9007199254740991
253
+ }
254
+ },
255
+ "additionalProperties": false
256
+ }
257
+ },
258
+ "textChunkLimit": {
259
+ "type": "integer",
260
+ "exclusiveMinimum": 0,
261
+ "maximum": 9007199254740991
262
+ },
263
+ "chunkMode": {
264
+ "type": "string",
265
+ "enum": [
266
+ "length",
267
+ "newline"
268
+ ]
269
+ },
270
+ "blockStreaming": {
271
+ "type": "boolean"
272
+ },
273
+ "blockStreamingCoalesce": {
274
+ "type": "object",
275
+ "properties": {
276
+ "minChars": {
277
+ "type": "integer",
278
+ "exclusiveMinimum": 0,
279
+ "maximum": 9007199254740991
280
+ },
281
+ "maxChars": {
282
+ "type": "integer",
283
+ "exclusiveMinimum": 0,
284
+ "maximum": 9007199254740991
285
+ },
286
+ "idleMs": {
287
+ "type": "integer",
288
+ "minimum": 0,
289
+ "maximum": 9007199254740991
290
+ }
291
+ },
292
+ "additionalProperties": false
293
+ },
294
+ "mediaMaxMb": {
295
+ "type": "integer",
296
+ "exclusiveMinimum": 0,
297
+ "maximum": 9007199254740991
298
+ },
299
+ "reactionNotifications": {
300
+ "type": "string",
301
+ "enum": [
302
+ "off",
303
+ "own",
304
+ "all",
305
+ "allowlist"
306
+ ]
307
+ },
308
+ "reactionAllowlist": {
309
+ "type": "array",
310
+ "items": {
311
+ "anyOf": [
312
+ {
313
+ "type": "string"
314
+ },
315
+ {
316
+ "type": "number"
317
+ }
318
+ ]
319
+ }
320
+ },
321
+ "actions": {
322
+ "type": "object",
323
+ "properties": {
324
+ "reactions": {
325
+ "type": "boolean"
326
+ }
327
+ },
328
+ "additionalProperties": false
329
+ },
330
+ "reactionLevel": {
331
+ "type": "string",
332
+ "enum": [
333
+ "off",
334
+ "ack",
335
+ "minimal",
336
+ "extensive"
337
+ ]
338
+ },
339
+ "heartbeat": {
340
+ "type": "object",
341
+ "properties": {
342
+ "showOk": {
343
+ "type": "boolean"
344
+ },
345
+ "showAlerts": {
346
+ "type": "boolean"
347
+ },
348
+ "useIndicator": {
349
+ "type": "boolean"
350
+ }
351
+ },
352
+ "additionalProperties": false
353
+ },
354
+ "healthMonitor": {
355
+ "type": "object",
356
+ "properties": {
357
+ "enabled": {
358
+ "type": "boolean"
359
+ }
360
+ },
361
+ "additionalProperties": false
362
+ },
363
+ "responsePrefix": {
364
+ "type": "string"
365
+ },
366
+ "apiMode": {
367
+ "type": "string",
368
+ "enum": [
369
+ "auto",
370
+ "native",
371
+ "container"
372
+ ]
373
+ },
374
+ "accounts": {
375
+ "type": "object",
376
+ "propertyNames": {
377
+ "type": "string"
378
+ },
379
+ "additionalProperties": {
380
+ "type": "object",
381
+ "properties": {
382
+ "name": {
383
+ "type": "string"
384
+ },
385
+ "capabilities": {
386
+ "type": "array",
387
+ "items": {
388
+ "type": "string"
389
+ }
390
+ },
391
+ "markdown": {
392
+ "type": "object",
393
+ "properties": {
394
+ "tables": {
395
+ "type": "string",
396
+ "enum": [
397
+ "off",
398
+ "bullets",
399
+ "code",
400
+ "block"
401
+ ]
402
+ }
403
+ },
404
+ "additionalProperties": false
405
+ },
406
+ "enabled": {
407
+ "type": "boolean"
408
+ },
409
+ "configWrites": {
410
+ "type": "boolean"
411
+ },
412
+ "account": {
413
+ "type": "string"
414
+ },
415
+ "accountUuid": {
416
+ "type": "string"
417
+ },
418
+ "configPath": {
419
+ "type": "string"
420
+ },
421
+ "httpUrl": {
422
+ "type": "string"
423
+ },
424
+ "httpHost": {
425
+ "type": "string"
426
+ },
427
+ "httpPort": {
428
+ "type": "integer",
429
+ "exclusiveMinimum": 0,
430
+ "maximum": 9007199254740991
431
+ },
432
+ "cliPath": {
433
+ "type": "string"
434
+ },
435
+ "autoStart": {
436
+ "type": "boolean"
437
+ },
438
+ "startupTimeoutMs": {
439
+ "type": "integer",
440
+ "minimum": 1000,
441
+ "maximum": 120000
442
+ },
443
+ "receiveMode": {
444
+ "anyOf": [
445
+ {
446
+ "type": "string",
447
+ "const": "on-start"
448
+ },
449
+ {
450
+ "type": "string",
451
+ "const": "manual"
452
+ }
453
+ ]
454
+ },
455
+ "ignoreAttachments": {
456
+ "type": "boolean"
457
+ },
458
+ "ignoreStories": {
459
+ "type": "boolean"
460
+ },
461
+ "sendReadReceipts": {
462
+ "type": "boolean"
463
+ },
464
+ "dmPolicy": {
465
+ "default": "pairing",
466
+ "type": "string",
467
+ "enum": [
468
+ "pairing",
469
+ "allowlist",
470
+ "open",
471
+ "disabled"
472
+ ]
473
+ },
474
+ "allowFrom": {
475
+ "type": "array",
476
+ "items": {
477
+ "anyOf": [
478
+ {
479
+ "type": "string"
480
+ },
481
+ {
482
+ "type": "number"
483
+ }
484
+ ]
485
+ }
486
+ },
487
+ "defaultTo": {
488
+ "type": "string"
489
+ },
490
+ "groupAllowFrom": {
491
+ "type": "array",
492
+ "items": {
493
+ "anyOf": [
494
+ {
495
+ "type": "string"
496
+ },
497
+ {
498
+ "type": "number"
499
+ }
500
+ ]
501
+ }
502
+ },
503
+ "groupPolicy": {
504
+ "default": "allowlist",
505
+ "type": "string",
506
+ "enum": [
507
+ "open",
508
+ "disabled",
509
+ "allowlist"
510
+ ]
511
+ },
512
+ "contextVisibility": {
513
+ "type": "string",
514
+ "enum": [
515
+ "all",
516
+ "allowlist",
517
+ "allowlist_quote"
518
+ ]
519
+ },
520
+ "groups": {
521
+ "type": "object",
522
+ "propertyNames": {
523
+ "type": "string"
524
+ },
525
+ "additionalProperties": {
526
+ "type": "object",
527
+ "properties": {
528
+ "requireMention": {
529
+ "type": "boolean"
530
+ },
531
+ "ingest": {
532
+ "type": "boolean"
533
+ },
534
+ "tools": {
535
+ "type": "object",
536
+ "properties": {
537
+ "allow": {
538
+ "type": "array",
539
+ "items": {
540
+ "type": "string"
541
+ }
542
+ },
543
+ "alsoAllow": {
544
+ "type": "array",
545
+ "items": {
546
+ "type": "string"
547
+ }
548
+ },
549
+ "deny": {
550
+ "type": "array",
551
+ "items": {
552
+ "type": "string"
553
+ }
554
+ }
555
+ },
556
+ "additionalProperties": false
557
+ },
558
+ "toolsBySender": {
559
+ "type": "object",
560
+ "propertyNames": {
561
+ "type": "string"
562
+ },
563
+ "additionalProperties": {
564
+ "type": "object",
565
+ "properties": {
566
+ "allow": {
567
+ "type": "array",
568
+ "items": {
569
+ "type": "string"
570
+ }
571
+ },
572
+ "alsoAllow": {
573
+ "type": "array",
574
+ "items": {
575
+ "type": "string"
576
+ }
577
+ },
578
+ "deny": {
579
+ "type": "array",
580
+ "items": {
581
+ "type": "string"
582
+ }
583
+ }
584
+ },
585
+ "additionalProperties": false
586
+ }
587
+ }
588
+ },
589
+ "additionalProperties": false
590
+ }
591
+ },
592
+ "historyLimit": {
593
+ "type": "integer",
594
+ "minimum": 0,
595
+ "maximum": 9007199254740991
596
+ },
597
+ "dmHistoryLimit": {
598
+ "type": "integer",
599
+ "minimum": 0,
600
+ "maximum": 9007199254740991
601
+ },
602
+ "dms": {
603
+ "type": "object",
604
+ "propertyNames": {
605
+ "type": "string"
606
+ },
607
+ "additionalProperties": {
608
+ "type": "object",
609
+ "properties": {
610
+ "historyLimit": {
611
+ "type": "integer",
612
+ "minimum": 0,
613
+ "maximum": 9007199254740991
614
+ }
615
+ },
616
+ "additionalProperties": false
617
+ }
618
+ },
619
+ "textChunkLimit": {
620
+ "type": "integer",
621
+ "exclusiveMinimum": 0,
622
+ "maximum": 9007199254740991
623
+ },
624
+ "chunkMode": {
625
+ "type": "string",
626
+ "enum": [
627
+ "length",
628
+ "newline"
629
+ ]
630
+ },
631
+ "blockStreaming": {
632
+ "type": "boolean"
633
+ },
634
+ "blockStreamingCoalesce": {
635
+ "type": "object",
636
+ "properties": {
637
+ "minChars": {
638
+ "type": "integer",
639
+ "exclusiveMinimum": 0,
640
+ "maximum": 9007199254740991
641
+ },
642
+ "maxChars": {
643
+ "type": "integer",
644
+ "exclusiveMinimum": 0,
645
+ "maximum": 9007199254740991
646
+ },
647
+ "idleMs": {
648
+ "type": "integer",
649
+ "minimum": 0,
650
+ "maximum": 9007199254740991
651
+ }
652
+ },
653
+ "additionalProperties": false
654
+ },
655
+ "mediaMaxMb": {
656
+ "type": "integer",
657
+ "exclusiveMinimum": 0,
658
+ "maximum": 9007199254740991
659
+ },
660
+ "reactionNotifications": {
661
+ "type": "string",
662
+ "enum": [
663
+ "off",
664
+ "own",
665
+ "all",
666
+ "allowlist"
667
+ ]
668
+ },
669
+ "reactionAllowlist": {
670
+ "type": "array",
671
+ "items": {
672
+ "anyOf": [
673
+ {
674
+ "type": "string"
675
+ },
676
+ {
677
+ "type": "number"
678
+ }
679
+ ]
680
+ }
681
+ },
682
+ "actions": {
683
+ "type": "object",
684
+ "properties": {
685
+ "reactions": {
686
+ "type": "boolean"
687
+ }
688
+ },
689
+ "additionalProperties": false
690
+ },
691
+ "reactionLevel": {
692
+ "type": "string",
693
+ "enum": [
694
+ "off",
695
+ "ack",
696
+ "minimal",
697
+ "extensive"
698
+ ]
699
+ },
700
+ "heartbeat": {
701
+ "type": "object",
702
+ "properties": {
703
+ "showOk": {
704
+ "type": "boolean"
705
+ },
706
+ "showAlerts": {
707
+ "type": "boolean"
708
+ },
709
+ "useIndicator": {
710
+ "type": "boolean"
711
+ }
712
+ },
713
+ "additionalProperties": false
714
+ },
715
+ "healthMonitor": {
716
+ "type": "object",
717
+ "properties": {
718
+ "enabled": {
719
+ "type": "boolean"
720
+ }
721
+ },
722
+ "additionalProperties": false
723
+ },
724
+ "responsePrefix": {
725
+ "type": "string"
726
+ }
727
+ },
728
+ "required": [
729
+ "dmPolicy",
730
+ "groupPolicy"
731
+ ],
732
+ "additionalProperties": false
733
+ }
734
+ },
735
+ "defaultAccount": {
736
+ "type": "string"
737
+ }
738
+ },
739
+ "required": [
740
+ "dmPolicy",
741
+ "groupPolicy"
742
+ ],
743
+ "additionalProperties": false
744
+ },
745
+ "label": "Signal",
746
+ "description": "signal-cli linked device; more setup (David Reagans: \"Hop on Discord.\").",
747
+ "uiHints": {
748
+ "": {
749
+ "label": "Signal",
750
+ "help": "Signal channel provider configuration including account identity and DM policy behavior. Keep account mapping explicit so routing remains stable across multi-device setups."
751
+ },
752
+ "dmPolicy": {
753
+ "label": "Signal DM Policy",
754
+ "help": "Direct message access control (\"pairing\" recommended). \"open\" requires channels.signal.allowFrom=[\"*\"]."
755
+ },
756
+ "configWrites": {
757
+ "label": "Signal Config Writes",
758
+ "help": "Allow Signal to write config in response to channel events/commands (default: true)."
759
+ },
760
+ "account": {
761
+ "label": "Signal Account",
762
+ "help": "Signal account identifier (phone/number handle) used to bind this channel config to a specific Signal identity. Keep this aligned with your linked device/session state."
763
+ },
764
+ "configPath": {
765
+ "label": "Signal CLI Config Path",
766
+ "help": "Optional directory passed to signal-cli via --config when the service needs a non-default signal-cli data path."
767
+ }
768
+ }
769
+ }
770
+ }
771
+ }