@qvac/core 0.1.7 → 0.1.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.
- package/dist-lib/lib/core/mesh.js +2 -1
- package/dist-lib/schema/content.js +5 -1
- package/dist-lib/spec/hrpc/messages.js +22 -44
- package/dist-lib/spec/hyperschema/index.js +22 -44
- package/dist-lib/spec/hyperschema/schema.json +12 -0
- package/dist-lib/spec/local/hyperdb/messages.js +48 -96
- package/dist-lib/spec/local/hyperschema/index.js +24 -48
- package/dist-lib/spec/local/hyperschema/schema.json +12 -0
- package/dist-lib/spec/mesh/hyperdb/messages.js +141 -282
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +107 -214
- package/dist-lib/spec/mesh/hyperschema/index.js +107 -214
- package/dist-lib/spec/mesh/hyperschema/schema.json +55 -0
- package/package.json +12 -11
|
@@ -49,12 +49,11 @@ const encoding1 = {
|
|
|
49
49
|
if (m.value) c.json.encode(state, m.value)
|
|
50
50
|
},
|
|
51
51
|
decode(state) {
|
|
52
|
-
const v = c.uint.decode(state)
|
|
53
52
|
const r0 = c.string.decode(state)
|
|
54
53
|
const flags = c.uint.decode(state)
|
|
55
54
|
|
|
56
55
|
return {
|
|
57
|
-
version:
|
|
56
|
+
version: 0,
|
|
58
57
|
key: r0,
|
|
59
58
|
value: (flags & 1) !== 0 ? c.json.decode(state) : null
|
|
60
59
|
}
|
|
@@ -88,13 +87,12 @@ const encoding2 = {
|
|
|
88
87
|
}
|
|
89
88
|
},
|
|
90
89
|
decode(state) {
|
|
91
|
-
const start = state.start
|
|
92
90
|
const v = c.uint.decode(state)
|
|
93
|
-
state.start = start
|
|
94
91
|
switch (v) {
|
|
95
92
|
case 0:
|
|
96
93
|
case 1: {
|
|
97
94
|
const decoded = encoding1.decode(state)
|
|
95
|
+
decoded.version = v
|
|
98
96
|
return decoded
|
|
99
97
|
}
|
|
100
98
|
default:
|
|
@@ -122,12 +120,11 @@ const encoding3 = {
|
|
|
122
120
|
if (m.meshSeed) c.buffer.encode(state, m.meshSeed)
|
|
123
121
|
},
|
|
124
122
|
decode(state) {
|
|
125
|
-
const v = c.uint.decode(state)
|
|
126
123
|
const r0 = c.buffer.decode(state)
|
|
127
124
|
const flags = c.uint.decode(state)
|
|
128
125
|
|
|
129
126
|
return {
|
|
130
|
-
version:
|
|
127
|
+
version: 0,
|
|
131
128
|
deviceId: r0,
|
|
132
129
|
meshCreator: (flags & 1) !== 0,
|
|
133
130
|
meshKey: (flags & 2) !== 0 ? c.buffer.decode(state) : null,
|
|
@@ -163,13 +160,12 @@ const encoding4 = {
|
|
|
163
160
|
}
|
|
164
161
|
},
|
|
165
162
|
decode(state) {
|
|
166
|
-
const start = state.start
|
|
167
163
|
const v = c.uint.decode(state)
|
|
168
|
-
state.start = start
|
|
169
164
|
switch (v) {
|
|
170
165
|
case 0:
|
|
171
166
|
case 1: {
|
|
172
167
|
const decoded = encoding3.decode(state)
|
|
168
|
+
decoded.version = v
|
|
173
169
|
return decoded
|
|
174
170
|
}
|
|
175
171
|
default:
|
|
@@ -197,13 +193,12 @@ const encoding5 = {
|
|
|
197
193
|
if (m.writerSeed) c.string.encode(state, m.writerSeed)
|
|
198
194
|
},
|
|
199
195
|
decode(state) {
|
|
200
|
-
const v = c.uint.decode(state)
|
|
201
196
|
const r0 = c.buffer.decode(state)
|
|
202
197
|
const r1 = c.buffer.decode(state)
|
|
203
198
|
const flags = c.uint.decode(state)
|
|
204
199
|
|
|
205
200
|
return {
|
|
206
|
-
version:
|
|
201
|
+
version: 0,
|
|
207
202
|
key: r0,
|
|
208
203
|
seed: r1,
|
|
209
204
|
creator: (flags & 1) !== 0,
|
|
@@ -239,13 +234,12 @@ const encoding6 = {
|
|
|
239
234
|
}
|
|
240
235
|
},
|
|
241
236
|
decode(state) {
|
|
242
|
-
const start = state.start
|
|
243
237
|
const v = c.uint.decode(state)
|
|
244
|
-
state.start = start
|
|
245
238
|
switch (v) {
|
|
246
239
|
case 0:
|
|
247
240
|
case 1: {
|
|
248
241
|
const decoded = encoding5.decode(state)
|
|
242
|
+
decoded.version = v
|
|
249
243
|
return decoded
|
|
250
244
|
}
|
|
251
245
|
default:
|
|
@@ -277,7 +271,6 @@ const encoding7 = {
|
|
|
277
271
|
if (version >= 2 && m.platform) c.string.encode(state, m.platform)
|
|
278
272
|
},
|
|
279
273
|
decode(state) {
|
|
280
|
-
const v = c.uint.decode(state)
|
|
281
274
|
const r0 = c.buffer.decode(state)
|
|
282
275
|
const r1 = c.string.decode(state)
|
|
283
276
|
const r2 = encoding14.decode(state)
|
|
@@ -285,7 +278,7 @@ const encoding7 = {
|
|
|
285
278
|
const flags = state.start < state.end ? c.uint.decode(state) : 0
|
|
286
279
|
|
|
287
280
|
return {
|
|
288
|
-
version:
|
|
281
|
+
version: 0,
|
|
289
282
|
publicKey: r0,
|
|
290
283
|
name: r1,
|
|
291
284
|
capabilityProfile: r2,
|
|
@@ -322,13 +315,12 @@ const encoding8 = {
|
|
|
322
315
|
}
|
|
323
316
|
},
|
|
324
317
|
decode(state) {
|
|
325
|
-
const start = state.start
|
|
326
318
|
const v = c.uint.decode(state)
|
|
327
|
-
state.start = start
|
|
328
319
|
switch (v) {
|
|
329
320
|
case 0:
|
|
330
321
|
case 1: {
|
|
331
322
|
const decoded = encoding7.decode(state)
|
|
323
|
+
decoded.version = v
|
|
332
324
|
return decoded
|
|
333
325
|
}
|
|
334
326
|
default:
|
|
@@ -385,12 +377,11 @@ const encoding9 = {
|
|
|
385
377
|
if (m.pausedModels) encoding9_8.encode(state, m.pausedModels)
|
|
386
378
|
},
|
|
387
379
|
decode(state) {
|
|
388
|
-
const v = c.uint.decode(state)
|
|
389
380
|
const r0 = c.string.decode(state)
|
|
390
381
|
const flags = c.uint.decode(state)
|
|
391
382
|
|
|
392
383
|
return {
|
|
393
|
-
version:
|
|
384
|
+
version: 0,
|
|
394
385
|
id: r0,
|
|
395
386
|
activeAgentId: (flags & 1) !== 0 ? c.string.decode(state) : null,
|
|
396
387
|
activeChatId: (flags & 2) !== 0 ? c.string.decode(state) : null,
|
|
@@ -431,13 +422,12 @@ const encoding10 = {
|
|
|
431
422
|
}
|
|
432
423
|
},
|
|
433
424
|
decode(state) {
|
|
434
|
-
const start = state.start
|
|
435
425
|
const v = c.uint.decode(state)
|
|
436
|
-
state.start = start
|
|
437
426
|
switch (v) {
|
|
438
427
|
case 0:
|
|
439
428
|
case 1: {
|
|
440
429
|
const decoded = encoding9.decode(state)
|
|
430
|
+
decoded.version = v
|
|
441
431
|
return decoded
|
|
442
432
|
}
|
|
443
433
|
default:
|
|
@@ -525,13 +515,12 @@ const encoding12 = {
|
|
|
525
515
|
if (m.bytesPerSecond) c.uint.encode(state, m.bytesPerSecond)
|
|
526
516
|
},
|
|
527
517
|
decode(state) {
|
|
528
|
-
const v = c.uint.decode(state)
|
|
529
518
|
const r0 = c.string.decode(state)
|
|
530
519
|
const r1 = encoding11.decode(state)
|
|
531
520
|
const flags = c.uint.decode(state)
|
|
532
521
|
|
|
533
522
|
return {
|
|
534
|
-
version:
|
|
523
|
+
version: 0,
|
|
535
524
|
name: r0,
|
|
536
525
|
phase: r1,
|
|
537
526
|
percentage: (flags & 1) !== 0 ? c.uint.decode(state) : 0,
|
|
@@ -571,13 +560,12 @@ const encoding13 = {
|
|
|
571
560
|
}
|
|
572
561
|
},
|
|
573
562
|
decode(state) {
|
|
574
|
-
const start = state.start
|
|
575
563
|
const v = c.uint.decode(state)
|
|
576
|
-
state.start = start
|
|
577
564
|
switch (v) {
|
|
578
565
|
case 0:
|
|
579
566
|
case 1: {
|
|
580
567
|
const decoded = encoding12.decode(state)
|
|
568
|
+
decoded.version = v
|
|
581
569
|
return decoded
|
|
582
570
|
}
|
|
583
571
|
default:
|
|
@@ -665,13 +653,12 @@ const encoding15 = {
|
|
|
665
653
|
c.uint.encode(state, m.createdAt)
|
|
666
654
|
},
|
|
667
655
|
decode(state) {
|
|
668
|
-
const v = c.uint.decode(state)
|
|
669
656
|
const r0 = c.string.decode(state)
|
|
670
657
|
const r1 = c.string.decode(state)
|
|
671
658
|
const flags = c.uint.decode(state)
|
|
672
659
|
|
|
673
660
|
return {
|
|
674
|
-
version:
|
|
661
|
+
version: 0,
|
|
675
662
|
name: r0,
|
|
676
663
|
src: r1,
|
|
677
664
|
mmprojSrc: (version >= 2 && (flags & 1) !== 0) ? c.string.decode(state) : null,
|
|
@@ -711,13 +698,12 @@ const encoding16 = {
|
|
|
711
698
|
}
|
|
712
699
|
},
|
|
713
700
|
decode(state) {
|
|
714
|
-
const start = state.start
|
|
715
701
|
const v = c.uint.decode(state)
|
|
716
|
-
state.start = start
|
|
717
702
|
switch (v) {
|
|
718
703
|
case 0:
|
|
719
704
|
case 1: {
|
|
720
705
|
const decoded = encoding15.decode(state)
|
|
706
|
+
decoded.version = v
|
|
721
707
|
return decoded
|
|
722
708
|
}
|
|
723
709
|
default:
|
|
@@ -741,14 +727,13 @@ const encoding17 = {
|
|
|
741
727
|
c.uint.encode(state, m.createdAt)
|
|
742
728
|
},
|
|
743
729
|
decode(state) {
|
|
744
|
-
const v = c.uint.decode(state)
|
|
745
730
|
const r0 = c.string.decode(state)
|
|
746
731
|
const r1 = c.buffer.decode(state)
|
|
747
732
|
const r2 = c.buffer.decode(state)
|
|
748
733
|
const r3 = c.uint.decode(state)
|
|
749
734
|
|
|
750
735
|
return {
|
|
751
|
-
version:
|
|
736
|
+
version: 0,
|
|
752
737
|
id: r0,
|
|
753
738
|
publicKey: r1,
|
|
754
739
|
proof: r2,
|
|
@@ -784,13 +769,12 @@ const encoding18 = {
|
|
|
784
769
|
}
|
|
785
770
|
},
|
|
786
771
|
decode(state) {
|
|
787
|
-
const start = state.start
|
|
788
772
|
const v = c.uint.decode(state)
|
|
789
|
-
state.start = start
|
|
790
773
|
switch (v) {
|
|
791
774
|
case 0:
|
|
792
775
|
case 1: {
|
|
793
776
|
const decoded = encoding17.decode(state)
|
|
777
|
+
decoded.version = v
|
|
794
778
|
return decoded
|
|
795
779
|
}
|
|
796
780
|
default:
|
|
@@ -814,14 +798,13 @@ const encoding19 = {
|
|
|
814
798
|
c.uint.encode(state, m.attestedAt)
|
|
815
799
|
},
|
|
816
800
|
decode(state) {
|
|
817
|
-
const v = c.uint.decode(state)
|
|
818
801
|
const r0 = c.string.decode(state)
|
|
819
802
|
const r1 = c.fixed32.decode(state)
|
|
820
803
|
const r2 = c.buffer.decode(state)
|
|
821
804
|
const r3 = c.uint.decode(state)
|
|
822
805
|
|
|
823
806
|
return {
|
|
824
|
-
version:
|
|
807
|
+
version: 0,
|
|
825
808
|
id: r0,
|
|
826
809
|
memberId: r1,
|
|
827
810
|
proof: r2,
|
|
@@ -857,13 +840,12 @@ const encoding20 = {
|
|
|
857
840
|
}
|
|
858
841
|
},
|
|
859
842
|
decode(state) {
|
|
860
|
-
const start = state.start
|
|
861
843
|
const v = c.uint.decode(state)
|
|
862
|
-
state.start = start
|
|
863
844
|
switch (v) {
|
|
864
845
|
case 0:
|
|
865
846
|
case 1: {
|
|
866
847
|
const decoded = encoding19.decode(state)
|
|
848
|
+
decoded.version = v
|
|
867
849
|
return decoded
|
|
868
850
|
}
|
|
869
851
|
default:
|
|
@@ -883,12 +865,11 @@ const encoding21 = {
|
|
|
883
865
|
c.uint.encode(state, m.ackedThrough)
|
|
884
866
|
},
|
|
885
867
|
decode(state) {
|
|
886
|
-
const v = c.uint.decode(state)
|
|
887
868
|
const r0 = c.string.decode(state)
|
|
888
869
|
const r1 = c.uint.decode(state)
|
|
889
870
|
|
|
890
871
|
return {
|
|
891
|
-
version:
|
|
872
|
+
version: 0,
|
|
892
873
|
chatId: r0,
|
|
893
874
|
ackedThrough: r1
|
|
894
875
|
}
|
|
@@ -922,13 +903,12 @@ const encoding22 = {
|
|
|
922
903
|
}
|
|
923
904
|
},
|
|
924
905
|
decode(state) {
|
|
925
|
-
const start = state.start
|
|
926
906
|
const v = c.uint.decode(state)
|
|
927
|
-
state.start = start
|
|
928
907
|
switch (v) {
|
|
929
908
|
case 0:
|
|
930
909
|
case 1: {
|
|
931
910
|
const decoded = encoding21.decode(state)
|
|
911
|
+
decoded.version = v
|
|
932
912
|
return decoded
|
|
933
913
|
}
|
|
934
914
|
default:
|
|
@@ -962,13 +942,12 @@ const encoding23 = {
|
|
|
962
942
|
if (version >= 4 && m.completedAt) c.uint.encode(state, m.completedAt)
|
|
963
943
|
},
|
|
964
944
|
decode(state) {
|
|
965
|
-
const v = c.uint.decode(state)
|
|
966
945
|
const r0 = c.string.decode(state)
|
|
967
946
|
const r1 = c.string.decode(state)
|
|
968
947
|
const flags = c.uint.decode(state)
|
|
969
948
|
|
|
970
949
|
return {
|
|
971
|
-
version:
|
|
950
|
+
version: 0,
|
|
972
951
|
name: r0,
|
|
973
952
|
transferId: r1,
|
|
974
953
|
notificationId: (version >= 4 && (flags & 1) !== 0) ? c.string.decode(state) : null,
|
|
@@ -1006,13 +985,12 @@ const encoding24 = {
|
|
|
1006
985
|
}
|
|
1007
986
|
},
|
|
1008
987
|
decode(state) {
|
|
1009
|
-
const start = state.start
|
|
1010
988
|
const v = c.uint.decode(state)
|
|
1011
|
-
state.start = start
|
|
1012
989
|
switch (v) {
|
|
1013
990
|
case 0:
|
|
1014
991
|
case 1: {
|
|
1015
992
|
const decoded = encoding23.decode(state)
|
|
993
|
+
decoded.version = v
|
|
1016
994
|
return decoded
|
|
1017
995
|
}
|
|
1018
996
|
default:
|
|
@@ -1040,13 +1018,12 @@ const encoding25 = {
|
|
|
1040
1018
|
if (version >= 4 && m.writerSeed) c.string.encode(state, m.writerSeed)
|
|
1041
1019
|
},
|
|
1042
1020
|
decode(state) {
|
|
1043
|
-
const v = c.uint.decode(state)
|
|
1044
1021
|
const r0 = c.buffer.decode(state)
|
|
1045
1022
|
const r1 = c.buffer.decode(state)
|
|
1046
1023
|
const flags = c.uint.decode(state)
|
|
1047
1024
|
|
|
1048
1025
|
return {
|
|
1049
|
-
version:
|
|
1026
|
+
version: 0,
|
|
1050
1027
|
key: r0,
|
|
1051
1028
|
seed: r1,
|
|
1052
1029
|
creator: (version >= 4 && (flags & 1) !== 0),
|
|
@@ -1082,13 +1059,12 @@ const encoding26 = {
|
|
|
1082
1059
|
}
|
|
1083
1060
|
},
|
|
1084
1061
|
decode(state) {
|
|
1085
|
-
const start = state.start
|
|
1086
1062
|
const v = c.uint.decode(state)
|
|
1087
|
-
state.start = start
|
|
1088
1063
|
switch (v) {
|
|
1089
1064
|
case 0:
|
|
1090
1065
|
case 1: {
|
|
1091
1066
|
const decoded = encoding25.decode(state)
|
|
1067
|
+
decoded.version = v
|
|
1092
1068
|
return decoded
|
|
1093
1069
|
}
|
|
1094
1070
|
default:
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
{
|
|
48
48
|
"name": "config",
|
|
49
49
|
"namespace": "local",
|
|
50
|
+
"framed": false,
|
|
50
51
|
"versions": [
|
|
51
52
|
{
|
|
52
53
|
"type": "@local/config-v1",
|
|
@@ -87,6 +88,7 @@
|
|
|
87
88
|
{
|
|
88
89
|
"name": "mesh-session",
|
|
89
90
|
"namespace": "local",
|
|
91
|
+
"framed": false,
|
|
90
92
|
"versions": [
|
|
91
93
|
{
|
|
92
94
|
"type": "@local/mesh-session-v1",
|
|
@@ -128,6 +130,7 @@
|
|
|
128
130
|
{
|
|
129
131
|
"name": "mesh-history",
|
|
130
132
|
"namespace": "local",
|
|
133
|
+
"framed": false,
|
|
131
134
|
"versions": [
|
|
132
135
|
{
|
|
133
136
|
"type": "@local/mesh-history-v1",
|
|
@@ -176,6 +179,7 @@
|
|
|
176
179
|
{
|
|
177
180
|
"name": "device",
|
|
178
181
|
"namespace": "local",
|
|
182
|
+
"framed": false,
|
|
179
183
|
"versions": [
|
|
180
184
|
{
|
|
181
185
|
"type": "@local/device-v1",
|
|
@@ -242,6 +246,7 @@
|
|
|
242
246
|
{
|
|
243
247
|
"name": "app-config",
|
|
244
248
|
"namespace": "local",
|
|
249
|
+
"framed": false,
|
|
245
250
|
"versions": [
|
|
246
251
|
{
|
|
247
252
|
"type": "@local/app-config-v1",
|
|
@@ -328,6 +333,7 @@
|
|
|
328
333
|
{
|
|
329
334
|
"name": "model-download",
|
|
330
335
|
"namespace": "local",
|
|
336
|
+
"framed": false,
|
|
331
337
|
"versions": [
|
|
332
338
|
{
|
|
333
339
|
"type": "@local/model-download-v1",
|
|
@@ -418,6 +424,7 @@
|
|
|
418
424
|
{
|
|
419
425
|
"name": "custom-model",
|
|
420
426
|
"namespace": "local",
|
|
427
|
+
"framed": false,
|
|
421
428
|
"versions": [
|
|
422
429
|
{
|
|
423
430
|
"type": "@local/custom-model-v1",
|
|
@@ -461,6 +468,7 @@
|
|
|
461
468
|
{
|
|
462
469
|
"name": "identity",
|
|
463
470
|
"namespace": "local",
|
|
471
|
+
"framed": false,
|
|
464
472
|
"versions": [
|
|
465
473
|
{
|
|
466
474
|
"type": "@local/identity-v1",
|
|
@@ -504,6 +512,7 @@
|
|
|
504
512
|
{
|
|
505
513
|
"name": "membership",
|
|
506
514
|
"namespace": "local",
|
|
515
|
+
"framed": false,
|
|
507
516
|
"versions": [
|
|
508
517
|
{
|
|
509
518
|
"type": "@local/membership-v1",
|
|
@@ -535,6 +544,7 @@
|
|
|
535
544
|
{
|
|
536
545
|
"name": "chat-notify",
|
|
537
546
|
"namespace": "local",
|
|
547
|
+
"framed": false,
|
|
538
548
|
"versions": [
|
|
539
549
|
{
|
|
540
550
|
"type": "@local/chat-notify-v1",
|
|
@@ -586,6 +596,7 @@
|
|
|
586
596
|
{
|
|
587
597
|
"name": "model-notify",
|
|
588
598
|
"namespace": "local",
|
|
599
|
+
"framed": false,
|
|
589
600
|
"versions": [
|
|
590
601
|
{
|
|
591
602
|
"type": "@local/model-notify-v1",
|
|
@@ -627,6 +638,7 @@
|
|
|
627
638
|
{
|
|
628
639
|
"name": "mesh-departure",
|
|
629
640
|
"namespace": "local",
|
|
641
|
+
"framed": false,
|
|
630
642
|
"versions": [
|
|
631
643
|
{
|
|
632
644
|
"type": "@local/mesh-departure-v1",
|