@qvac/core 0.2.2 → 0.3.1

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 (176) hide show
  1. package/dist-lib/lib/api/agents.js +2 -3
  2. package/dist-lib/lib/api/chat.d.ts +3 -1
  3. package/dist-lib/lib/api/chat.js +9 -5
  4. package/dist-lib/lib/api/chunks.d.ts +1 -1
  5. package/dist-lib/lib/api/chunks.js +5 -15
  6. package/dist-lib/lib/api/current-mesh.d.ts +16 -1
  7. package/dist-lib/lib/api/current-mesh.js +18 -0
  8. package/dist-lib/lib/api/devices.js +6 -3
  9. package/dist-lib/lib/api/index.d.ts +2 -0
  10. package/dist-lib/lib/api/index.js +4 -2
  11. package/dist-lib/lib/api/inference-calls.d.ts +18 -0
  12. package/dist-lib/lib/api/inference-calls.js +15 -0
  13. package/dist-lib/lib/api/knowledge.js +11 -7
  14. package/dist-lib/lib/api/members.js +2 -3
  15. package/dist-lib/lib/api/rag.js +10 -2
  16. package/dist-lib/lib/api/sync.d.ts +1 -1
  17. package/dist-lib/lib/api/sync.js +2 -1
  18. package/dist-lib/lib/api/tool-activity.js +2 -2
  19. package/dist-lib/lib/api/tool-configs.js +2 -2
  20. package/dist-lib/lib/api/watchable.d.ts +6 -1
  21. package/dist-lib/lib/api/watchable.js +13 -2
  22. package/dist-lib/lib/assistant/harness.d.ts +1 -0
  23. package/dist-lib/lib/assistant/history.d.ts +1 -2
  24. package/dist-lib/lib/assistant/history.js +0 -6
  25. package/dist-lib/lib/assistant-tree.d.ts +2 -0
  26. package/dist-lib/lib/assistant-tree.js +11 -2
  27. package/dist-lib/lib/assistant.d.ts +17 -8
  28. package/dist-lib/lib/assistant.js +172 -125
  29. package/dist-lib/lib/core/chunk.d.ts +1 -0
  30. package/dist-lib/lib/core/chunk.js +32 -0
  31. package/dist-lib/lib/core/contract/devices.js +3 -2
  32. package/dist-lib/lib/core/files/rag/build.d.ts +1 -2
  33. package/dist-lib/lib/core/files/rag/build.js +1 -2
  34. package/dist-lib/lib/core/files/rag/extract/office-collabora.d.ts +1 -1
  35. package/dist-lib/lib/core/files/rag/index.d.ts +4 -24
  36. package/dist-lib/lib/core/files/rag/index.js +3 -17
  37. package/dist-lib/lib/core/files/rag/load.d.ts +1 -2
  38. package/dist-lib/lib/core/files/rag/load.js +1 -2
  39. package/dist-lib/lib/core/files/rag/produce.d.ts +1 -1
  40. package/dist-lib/lib/core/files/rag/produce.js +1 -3
  41. package/dist-lib/lib/core/files/rag/retrieval/full-text.d.ts +1 -1
  42. package/dist-lib/lib/core/files/rag/retrieval/full-text.js +1 -4
  43. package/dist-lib/lib/core/files/rag/similarity.d.ts +5 -0
  44. package/dist-lib/lib/core/files/rag/similarity.js +6 -0
  45. package/dist-lib/lib/core/files/upload.d.ts +1 -1
  46. package/dist-lib/lib/core/harness-loan.js +1 -1
  47. package/dist-lib/lib/core/inference-calls-handoff.d.ts +20 -0
  48. package/dist-lib/lib/core/inference-calls-handoff.js +37 -0
  49. package/dist-lib/lib/core/inference-calls-receiver.d.ts +14 -0
  50. package/dist-lib/lib/core/inference-calls-receiver.js +39 -0
  51. package/dist-lib/lib/core/local/index.js +6 -0
  52. package/dist-lib/lib/core/notification.js +5 -4
  53. package/dist-lib/lib/core.d.ts +9 -1
  54. package/dist-lib/lib/core.js +98 -16
  55. package/dist-lib/lib/fs-drive-bridge.js +1 -1
  56. package/dist-lib/lib/inference-calls.d.ts +40 -0
  57. package/dist-lib/lib/inference-calls.js +266 -0
  58. package/dist-lib/lib/mesh-scoped-engine.js +5 -0
  59. package/dist-lib/lib/model-download.d.ts +2 -0
  60. package/dist-lib/lib/model-download.js +20 -5
  61. package/dist-lib/lib/oauth/keys.js +1 -0
  62. package/dist-lib/lib/oauth/spotify.js +1 -0
  63. package/dist-lib/lib/oauth/verify.d.ts +8 -0
  64. package/dist-lib/lib/oauth/verify.js +58 -0
  65. package/dist-lib/lib/oauth.d.ts +1 -0
  66. package/dist-lib/lib/oauth.js +1 -0
  67. package/dist-lib/schema/content.js +5 -1
  68. package/dist-lib/schema/engine.js +42 -1
  69. package/dist-lib/schema/qvac.d.ts +3 -0
  70. package/dist-lib/schema/qvac.js +11 -2
  71. package/dist-lib/spec/bind.js +3 -0
  72. package/dist-lib/spec/calls.js +1 -0
  73. package/dist-lib/spec/capabilities.d.ts +2 -0
  74. package/dist-lib/spec/hrpc/hrpc.json +13 -0
  75. package/dist-lib/spec/hrpc/index.js +15 -3
  76. package/dist-lib/spec/hrpc/messages.js +172 -49
  77. package/dist-lib/spec/hyperschema/index.js +172 -49
  78. package/dist-lib/spec/hyperschema/schema.json +127 -1
  79. package/dist-lib/spec/hyperschema/types.d.ts +34 -1
  80. package/dist-lib/spec/local/hyperdb/messages.js +64 -128
  81. package/dist-lib/spec/local/hyperschema/index.js +32 -64
  82. package/dist-lib/spec/local/hyperschema/schema.json +16 -0
  83. package/dist-lib/spec/mesh/hyperdb/messages.js +176 -311
  84. package/dist-lib/spec/mesh/hyperdispatch/messages.js +132 -236
  85. package/dist-lib/spec/mesh/hyperschema/index.js +132 -236
  86. package/dist-lib/spec/mesh/hyperschema/schema.json +70 -1
  87. package/dist-lib/spec/mesh/hyperschema/types.d.ts +3 -1
  88. package/package.json +14 -17
  89. package/tui/app.mjs +327 -46
  90. package/tui/lib/knowledge-import.mjs +1 -1
  91. package/tui/lib/render.mjs +17 -1
  92. package/tui/lib/selection.mjs +16 -0
  93. package/tui/lib/usage.mjs +54 -0
  94. package/.claude/skills/asana/SKILL.md +0 -86
  95. package/.claude/skills/compaction/SKILL.md +0 -132
  96. package/.claude/skills/device-mesh-debug/SKILL.md +0 -328
  97. package/.claude/skills/gh-stack/SKILL.md +0 -181
  98. package/.claude/skills/gh-stack/references/commands.md +0 -177
  99. package/.claude/skills/gh-stack/references/stack-design.md +0 -97
  100. package/.claude/skills/gh-stack/references/troubleshooting.md +0 -159
  101. package/.claude/skills/js-house-style/SKILL.md +0 -670
  102. package/.claude/skills/pr-create/SKILL.md +0 -201
  103. package/.claude/skills/pr-review/SKILL.md +0 -424
  104. package/CLAUDE.md +0 -43
  105. package/dist-lib/lib/core/files/rag/artifact/codec.d.ts +0 -3
  106. package/dist-lib/lib/core/files/rag/artifact/codec.js +0 -172
  107. package/dist-lib/lib/core/files/rag/artifact/id.d.ts +0 -10
  108. package/dist-lib/lib/core/files/rag/artifact/id.js +0 -39
  109. package/dist-lib/lib/core/files/rag/artifact/types.d.ts +0 -24
  110. package/dist-lib/lib/core/files/rag/artifact/types.js +0 -41
  111. package/dist-lib/lib/core/files/rag/chunk/chunking.d.ts +0 -12
  112. package/dist-lib/lib/core/files/rag/chunk/chunking.js +0 -117
  113. package/dist-lib/lib/core/files/rag/chunk/metadata.d.ts +0 -30
  114. package/dist-lib/lib/core/files/rag/chunk/metadata.js +0 -89
  115. package/dist-lib/lib/core/files/rag/chunk/tokenizer.d.ts +0 -7
  116. package/dist-lib/lib/core/files/rag/chunk/tokenizer.js +0 -18
  117. package/dist-lib/lib/core/files/rag/extract/csv-text.d.ts +0 -1
  118. package/dist-lib/lib/core/files/rag/extract/csv-text.js +0 -117
  119. package/dist-lib/lib/core/files/rag/extract/document-types.d.ts +0 -22
  120. package/dist-lib/lib/core/files/rag/extract/document-types.js +0 -152
  121. package/dist-lib/lib/core/files/rag/extract/extract.d.ts +0 -17
  122. package/dist-lib/lib/core/files/rag/extract/extract.js +0 -81
  123. package/dist-lib/lib/core/files/rag/extract/html-table-text.d.ts +0 -1
  124. package/dist-lib/lib/core/files/rag/extract/html-table-text.js +0 -125
  125. package/dist-lib/lib/core/files/rag/extract/html-text.d.ts +0 -1
  126. package/dist-lib/lib/core/files/rag/extract/html-text.js +0 -132
  127. package/dist-lib/lib/core/files/rag/extract/pdf-platform.d.ts +0 -17
  128. package/dist-lib/lib/core/files/rag/extract/pdf-platform.js +0 -141
  129. package/dist-lib/lib/core/files/rag/extract/pdf-text.d.ts +0 -12
  130. package/dist-lib/lib/core/files/rag/extract/pdf-text.js +0 -43
  131. package/dist-lib/lib/core/files/rag/extract/rtf-text.d.ts +0 -1
  132. package/dist-lib/lib/core/files/rag/extract/rtf-text.js +0 -15
  133. package/dist-lib/lib/core/files/rag/extract/text-decoding.d.ts +0 -1
  134. package/dist-lib/lib/core/files/rag/extract/text-decoding.js +0 -91
  135. package/dist-lib/lib/core/files/rag/extract/types.d.ts +0 -36
  136. package/dist-lib/lib/core/files/rag/extract/types.js +0 -12
  137. package/dist-lib/lib/core/files/rag/extract/utf.d.ts +0 -2
  138. package/dist-lib/lib/core/files/rag/extract/utf.js +0 -18
  139. package/dist-lib/lib/core/files/rag/retrieval/citation-match.d.ts +0 -2
  140. package/dist-lib/lib/core/files/rag/retrieval/citation-match.js +0 -16
  141. package/dist-lib/lib/core/files/rag/retrieval/coverage.d.ts +0 -4
  142. package/dist-lib/lib/core/files/rag/retrieval/coverage.js +0 -48
  143. package/dist-lib/lib/core/files/rag/retrieval/diversity.d.ts +0 -10
  144. package/dist-lib/lib/core/files/rag/retrieval/diversity.js +0 -37
  145. package/dist-lib/lib/core/files/rag/retrieval/floor.d.ts +0 -5
  146. package/dist-lib/lib/core/files/rag/retrieval/floor.js +0 -21
  147. package/dist-lib/lib/core/files/rag/retrieval/format.d.ts +0 -6
  148. package/dist-lib/lib/core/files/rag/retrieval/format.js +0 -21
  149. package/dist-lib/lib/core/files/rag/retrieval/knowledge.d.ts +0 -2
  150. package/dist-lib/lib/core/files/rag/retrieval/knowledge.js +0 -54
  151. package/dist-lib/lib/core/files/rag/retrieval/notices.d.ts +0 -16
  152. package/dist-lib/lib/core/files/rag/retrieval/notices.js +0 -27
  153. package/dist-lib/lib/core/files/rag/retrieval/scoring.d.ts +0 -8
  154. package/dist-lib/lib/core/files/rag/retrieval/scoring.js +0 -82
  155. package/dist-lib/lib/core/files/rag/retrieval/search.d.ts +0 -3
  156. package/dist-lib/lib/core/files/rag/retrieval/search.js +0 -49
  157. package/dist-lib/lib/core/files/rag/retrieval/selection.d.ts +0 -11
  158. package/dist-lib/lib/core/files/rag/retrieval/selection.js +0 -93
  159. package/dist-lib/lib/core/files/rag/retrieval/source-tag-filter.d.ts +0 -6
  160. package/dist-lib/lib/core/files/rag/retrieval/source-tag-filter.js +0 -79
  161. package/dist-lib/lib/core/files/rag/retrieval/sources.d.ts +0 -13
  162. package/dist-lib/lib/core/files/rag/retrieval/sources.js +0 -20
  163. package/dist-lib/lib/core/files/rag/retrieval/target.d.ts +0 -13
  164. package/dist-lib/lib/core/files/rag/retrieval/target.js +0 -89
  165. package/dist-lib/lib/core/files/rag/retrieval/terms.d.ts +0 -8
  166. package/dist-lib/lib/core/files/rag/retrieval/terms.js +0 -70
  167. package/dist-lib/lib/core/files/rag/retrieval/types.d.ts +0 -29
  168. package/dist-lib/lib/core/files/rag/retrieval/types.js +0 -1
  169. package/dist-lib/lib/core/files/rag/retrieval/web-sources.d.ts +0 -8
  170. package/dist-lib/lib/core/files/rag/retrieval/web-sources.js +0 -41
  171. package/dist-lib/lib/core/files/rag/retrieval/whole-document-query.d.ts +0 -1
  172. package/dist-lib/lib/core/files/rag/retrieval/whole-document-query.js +0 -96
  173. package/dist-lib/lib/core/files/rag/vector/memory.d.ts +0 -15
  174. package/dist-lib/lib/core/files/rag/vector/memory.js +0 -135
  175. package/dist-lib/lib/core/files/rag/vector/types.d.ts +0 -28
  176. package/dist-lib/lib/core/files/rag/vector/types.js +0 -1
@@ -1,12 +1,12 @@
1
1
  // This file is autogenerated by the hyperschema compiler
2
- // Schema Version: 7
2
+ // Schema Version: 8
3
3
  /* eslint-disable camelcase */
4
4
  /* eslint-disable quotes */
5
5
  /* eslint-disable space-before-function-paren */
6
6
 
7
7
  import { c } from 'hyperschema/runtime'
8
8
 
9
- const VERSION = 7
9
+ const VERSION = 8
10
10
 
11
11
  // eslint-disable-next-line no-unused-vars
12
12
  let version = VERSION
@@ -326,12 +326,11 @@ const encoding6 = {
326
326
  if (m.progress) encoding6_5.encode(state, m.progress)
327
327
  },
328
328
  decode(state) {
329
- const v = c.uint.decode(state)
330
329
  const r0 = encoding1.decode(state)
331
330
  const flags = c.uint.decode(state)
332
331
 
333
332
  return {
334
- version: v,
333
+ version: 0,
335
334
  state: r0,
336
335
  model: (flags & 1) !== 0 ? c.string.decode(state) : null,
337
336
  percentage: (flags & 2) !== 0 ? c.uint.decode(state) : 0,
@@ -369,13 +368,12 @@ const encoding7 = {
369
368
  }
370
369
  },
371
370
  decode(state) {
372
- const start = state.start
373
371
  const v = c.uint.decode(state)
374
- state.start = start
375
372
  switch (v) {
376
373
  case 0:
377
374
  case 1: {
378
375
  const decoded = encoding6.decode(state)
376
+ decoded.version = v
379
377
  return decoded
380
378
  }
381
379
  default:
@@ -410,14 +408,13 @@ const encoding8 = {
410
408
  if (m.agentId) c.string.encode(state, m.agentId)
411
409
  },
412
410
  decode(state) {
413
- const v = c.uint.decode(state)
414
411
  const r0 = encoding2.decode(state)
415
412
  const r1 = c.string.decode(state)
416
413
  const r2 = c.json.decode(state)
417
414
  const flags = c.uint.decode(state)
418
415
 
419
416
  return {
420
- version: v,
417
+ version: 0,
421
418
  status: r0,
422
419
  name: r1,
423
420
  arguments: r2,
@@ -454,13 +451,12 @@ const encoding9 = {
454
451
  }
455
452
  },
456
453
  decode(state) {
457
- const start = state.start
458
454
  const v = c.uint.decode(state)
459
- state.start = start
460
455
  switch (v) {
461
456
  case 0:
462
457
  case 1: {
463
458
  const decoded = encoding8.decode(state)
459
+ decoded.version = v
464
460
  return decoded
465
461
  }
466
462
  default:
@@ -478,11 +474,10 @@ const encoding10 = {
478
474
  c.string.encode(state, m.text)
479
475
  },
480
476
  decode(state) {
481
- const v = c.uint.decode(state)
482
477
  const r0 = c.string.decode(state)
483
478
 
484
479
  return {
485
- version: v,
480
+ version: 0,
486
481
  text: r0
487
482
  }
488
483
  }
@@ -515,13 +510,12 @@ const encoding11 = {
515
510
  }
516
511
  },
517
512
  decode(state) {
518
- const start = state.start
519
513
  const v = c.uint.decode(state)
520
- state.start = start
521
514
  switch (v) {
522
515
  case 0:
523
516
  case 1: {
524
517
  const decoded = encoding10.decode(state)
518
+ decoded.version = v
525
519
  return decoded
526
520
  }
527
521
  default:
@@ -560,13 +554,12 @@ const encoding13 = {
560
554
  }
561
555
  },
562
556
  decode(state) {
563
- const start = state.start
564
557
  const v = c.uint.decode(state)
565
- state.start = start
566
558
  switch (v) {
567
559
  case 0:
568
560
  case 1: {
569
561
  const decoded = encoding12.decode(state)
562
+ decoded.version = v
570
563
  return decoded
571
564
  }
572
565
  default:
@@ -605,13 +598,12 @@ const encoding15 = {
605
598
  }
606
599
  },
607
600
  decode(state) {
608
- const start = state.start
609
601
  const v = c.uint.decode(state)
610
- state.start = start
611
602
  switch (v) {
612
603
  case 0:
613
604
  case 1: {
614
605
  const decoded = encoding14.decode(state)
606
+ decoded.version = v
615
607
  return decoded
616
608
  }
617
609
  default:
@@ -637,12 +629,11 @@ const encoding16 = {
637
629
  if (m.arguments) c.json.encode(state, m.arguments)
638
630
  },
639
631
  decode(state) {
640
- const v = c.uint.decode(state)
641
632
  const r0 = c.string.decode(state)
642
633
  const flags = c.uint.decode(state)
643
634
 
644
635
  return {
645
- version: v,
636
+ version: 0,
646
637
  name: r0,
647
638
  arguments: (flags & 1) !== 0 ? c.json.decode(state) : null
648
639
  }
@@ -676,13 +667,12 @@ const encoding17 = {
676
667
  }
677
668
  },
678
669
  decode(state) {
679
- const start = state.start
680
670
  const v = c.uint.decode(state)
681
- state.start = start
682
671
  switch (v) {
683
672
  case 0:
684
673
  case 1: {
685
674
  const decoded = encoding16.decode(state)
675
+ decoded.version = v
686
676
  return decoded
687
677
  }
688
678
  default:
@@ -708,12 +698,11 @@ const encoding18 = {
708
698
  if (m.result) c.json.encode(state, m.result)
709
699
  },
710
700
  decode(state) {
711
- const v = c.uint.decode(state)
712
701
  const r0 = c.string.decode(state)
713
702
  const flags = c.uint.decode(state)
714
703
 
715
704
  return {
716
- version: v,
705
+ version: 0,
717
706
  name: r0,
718
707
  result: (flags & 1) !== 0 ? c.json.decode(state) : null
719
708
  }
@@ -747,13 +736,12 @@ const encoding19 = {
747
736
  }
748
737
  },
749
738
  decode(state) {
750
- const start = state.start
751
739
  const v = c.uint.decode(state)
752
- state.start = start
753
740
  switch (v) {
754
741
  case 0:
755
742
  case 1: {
756
743
  const decoded = encoding18.decode(state)
744
+ decoded.version = v
757
745
  return decoded
758
746
  }
759
747
  default:
@@ -789,7 +777,6 @@ const encoding20 = {
789
777
  if (m.deletedAt) c.uint.encode(state, m.deletedAt)
790
778
  },
791
779
  decode(state) {
792
- const v = c.uint.decode(state)
793
780
  const r0 = c.string.decode(state)
794
781
  const r1 = c.string.decode(state)
795
782
  const r2 = c.string.decode(state)
@@ -799,7 +786,7 @@ const encoding20 = {
799
786
  const flags = c.uint.decode(state)
800
787
 
801
788
  return {
802
- version: v,
789
+ version: 0,
803
790
  id: r0,
804
791
  fileName: r1,
805
792
  mimeType: r2,
@@ -838,13 +825,12 @@ const encoding21 = {
838
825
  }
839
826
  },
840
827
  decode(state) {
841
- const start = state.start
842
828
  const v = c.uint.decode(state)
843
- state.start = start
844
829
  switch (v) {
845
830
  case 0:
846
831
  case 1: {
847
832
  const decoded = encoding20.decode(state)
833
+ decoded.version = v
848
834
  return decoded
849
835
  }
850
836
  default:
@@ -862,11 +848,10 @@ const encoding22 = {
862
848
  c.string.encode(state, m.agentId)
863
849
  },
864
850
  decode(state) {
865
- const v = c.uint.decode(state)
866
851
  const r0 = c.string.decode(state)
867
852
 
868
853
  return {
869
- version: v,
854
+ version: 0,
870
855
  agentId: r0
871
856
  }
872
857
  }
@@ -899,13 +884,12 @@ const encoding23 = {
899
884
  }
900
885
  },
901
886
  decode(state) {
902
- const start = state.start
903
887
  const v = c.uint.decode(state)
904
- state.start = start
905
888
  switch (v) {
906
889
  case 0:
907
890
  case 1: {
908
891
  const decoded = encoding22.decode(state)
892
+ decoded.version = v
909
893
  return decoded
910
894
  }
911
895
  default:
@@ -979,12 +963,11 @@ const encoding25 = {
979
963
  if (m.notice) c.string.encode(state, m.notice)
980
964
  },
981
965
  decode(state) {
982
- const v = c.uint.decode(state)
983
966
  const r0 = encoding25_0.decode(state)
984
967
  const flags = c.uint.decode(state)
985
968
 
986
969
  return {
987
- version: v,
970
+ version: 0,
988
971
  sources: r0,
989
972
  notice: (flags & 1) !== 0 ? c.string.decode(state) : null
990
973
  }
@@ -1018,13 +1001,12 @@ const encoding26 = {
1018
1001
  }
1019
1002
  },
1020
1003
  decode(state) {
1021
- const start = state.start
1022
1004
  const v = c.uint.decode(state)
1023
- state.start = start
1024
1005
  switch (v) {
1025
1006
  case 0:
1026
1007
  case 1: {
1027
1008
  const decoded = encoding25.decode(state)
1009
+ decoded.version = v
1028
1010
  return decoded
1029
1011
  }
1030
1012
  default:
@@ -1054,7 +1036,8 @@ const encoding27 = {
1054
1036
  ((version >= 5 && m.intent) ? 16384 : 0) |
1055
1037
  ((version >= 5 && m.display) ? 32768 : 0) |
1056
1038
  ((version >= 5 && m.rawCall) ? 65536 : 0) |
1057
- ((version >= 5 && m.compaction) ? 131072 : 0)
1039
+ ((version >= 5 && m.compaction) ? 131072 : 0) |
1040
+ ((version >= 8 && m.senderMemberId) ? 262144 : 0)
1058
1041
 
1059
1042
  c.string.preencode(state, m.id)
1060
1043
  c.string.preencode(state, m.chatId)
@@ -1082,6 +1065,7 @@ const encoding27 = {
1082
1065
  if (version >= 5 && m.display) c.json.preencode(state, m.display)
1083
1066
  if (version >= 5 && m.rawCall) c.string.preencode(state, m.rawCall)
1084
1067
  if (version >= 5 && m.compaction) encoding126.preencode(state, m.compaction)
1068
+ if (version >= 8 && m.senderMemberId) c.fixed32.preencode(state, m.senderMemberId)
1085
1069
  },
1086
1070
  encode(state, m) {
1087
1071
  const flags =
@@ -1102,7 +1086,8 @@ const encoding27 = {
1102
1086
  ((version >= 5 && m.intent) ? 16384 : 0) |
1103
1087
  ((version >= 5 && m.display) ? 32768 : 0) |
1104
1088
  ((version >= 5 && m.rawCall) ? 65536 : 0) |
1105
- ((version >= 5 && m.compaction) ? 131072 : 0)
1089
+ ((version >= 5 && m.compaction) ? 131072 : 0) |
1090
+ ((version >= 8 && m.senderMemberId) ? 262144 : 0)
1106
1091
 
1107
1092
  c.string.encode(state, m.id)
1108
1093
  c.string.encode(state, m.chatId)
@@ -1130,15 +1115,15 @@ const encoding27 = {
1130
1115
  if (version >= 5 && m.display) c.json.encode(state, m.display)
1131
1116
  if (version >= 5 && m.rawCall) c.string.encode(state, m.rawCall)
1132
1117
  if (version >= 5 && m.compaction) encoding126.encode(state, m.compaction)
1118
+ if (version >= 8 && m.senderMemberId) c.fixed32.encode(state, m.senderMemberId)
1133
1119
  },
1134
1120
  decode(state) {
1135
- const v = c.uint.decode(state)
1136
1121
  const r0 = c.string.decode(state)
1137
1122
  const r1 = c.string.decode(state)
1138
1123
  const flags = c.uint.decode(state)
1139
1124
 
1140
1125
  return {
1141
- version: v,
1126
+ version: 0,
1142
1127
  id: r0,
1143
1128
  chatId: r1,
1144
1129
  runId: (flags & 1) !== 0 ? c.string.decode(state) : null,
@@ -1162,7 +1147,8 @@ const encoding27 = {
1162
1147
  intent: (version >= 5 && (flags & 16384) !== 0) ? c.string.decode(state) : null,
1163
1148
  display: (version >= 5 && (flags & 32768) !== 0) ? c.json.decode(state) : null,
1164
1149
  rawCall: (version >= 5 && (flags & 65536) !== 0) ? c.string.decode(state) : null,
1165
- compaction: (version >= 5 && (flags & 131072) !== 0) ? encoding126.decode(state) : null
1150
+ compaction: (version >= 5 && (flags & 131072) !== 0) ? encoding126.decode(state) : null,
1151
+ senderMemberId: (version >= 8 && (flags & 262144) !== 0) ? c.fixed32.decode(state) : null
1166
1152
  }
1167
1153
  }
1168
1154
  }
@@ -1194,13 +1180,12 @@ const encoding28 = {
1194
1180
  }
1195
1181
  },
1196
1182
  decode(state) {
1197
- const start = state.start
1198
1183
  const v = c.uint.decode(state)
1199
- state.start = start
1200
1184
  switch (v) {
1201
1185
  case 0:
1202
1186
  case 1: {
1203
1187
  const decoded = encoding27.decode(state)
1188
+ decoded.version = v
1204
1189
  return decoded
1205
1190
  }
1206
1191
  default:
@@ -1228,13 +1213,12 @@ const encoding29 = {
1228
1213
  if (version >= 5 && m.lastActivityAt) c.uint.encode(state, m.lastActivityAt)
1229
1214
  },
1230
1215
  decode(state) {
1231
- const v = c.uint.decode(state)
1232
1216
  const r0 = c.string.decode(state)
1233
1217
  const r1 = c.uint.decode(state)
1234
1218
  const flags = state.start < state.end ? c.uint.decode(state) : 0
1235
1219
 
1236
1220
  return {
1237
- version: v,
1221
+ version: 0,
1238
1222
  chatId: r0,
1239
1223
  count: r1,
1240
1224
  lastActivityAt: (version >= 5 && (flags & 1) !== 0) ? c.uint.decode(state) : 0
@@ -1269,13 +1253,12 @@ const encoding30 = {
1269
1253
  }
1270
1254
  },
1271
1255
  decode(state) {
1272
- const start = state.start
1273
1256
  const v = c.uint.decode(state)
1274
- state.start = start
1275
1257
  switch (v) {
1276
1258
  case 0:
1277
1259
  case 1: {
1278
1260
  const decoded = encoding29.decode(state)
1261
+ decoded.version = v
1279
1262
  return decoded
1280
1263
  }
1281
1264
  default:
@@ -1304,7 +1287,8 @@ const encoding31 = {
1304
1287
  ((version >= 5 && m.intent) ? 8192 : 0) |
1305
1288
  ((version >= 5 && m.display) ? 16384 : 0) |
1306
1289
  ((version >= 5 && m.rawCall) ? 32768 : 0) |
1307
- ((version >= 5 && m.compaction) ? 65536 : 0)
1290
+ ((version >= 5 && m.compaction) ? 65536 : 0) |
1291
+ ((version >= 8 && m.senderMemberId) ? 131072 : 0)
1308
1292
 
1309
1293
  c.string.preencode(state, m.id)
1310
1294
  c.string.preencode(state, m.chatId)
@@ -1330,6 +1314,7 @@ const encoding31 = {
1330
1314
  if (version >= 5 && m.display) c.json.preencode(state, m.display)
1331
1315
  if (version >= 5 && m.rawCall) c.string.preencode(state, m.rawCall)
1332
1316
  if (version >= 5 && m.compaction) encoding126.preencode(state, m.compaction)
1317
+ if (version >= 8 && m.senderMemberId) c.fixed32.preencode(state, m.senderMemberId)
1333
1318
  },
1334
1319
  encode(state, m) {
1335
1320
  const flags =
@@ -1349,7 +1334,8 @@ const encoding31 = {
1349
1334
  ((version >= 5 && m.intent) ? 8192 : 0) |
1350
1335
  ((version >= 5 && m.display) ? 16384 : 0) |
1351
1336
  ((version >= 5 && m.rawCall) ? 32768 : 0) |
1352
- ((version >= 5 && m.compaction) ? 65536 : 0)
1337
+ ((version >= 5 && m.compaction) ? 65536 : 0) |
1338
+ ((version >= 8 && m.senderMemberId) ? 131072 : 0)
1353
1339
 
1354
1340
  c.string.encode(state, m.id)
1355
1341
  c.string.encode(state, m.chatId)
@@ -1375,15 +1361,15 @@ const encoding31 = {
1375
1361
  if (version >= 5 && m.display) c.json.encode(state, m.display)
1376
1362
  if (version >= 5 && m.rawCall) c.string.encode(state, m.rawCall)
1377
1363
  if (version >= 5 && m.compaction) encoding126.encode(state, m.compaction)
1364
+ if (version >= 8 && m.senderMemberId) c.fixed32.encode(state, m.senderMemberId)
1378
1365
  },
1379
1366
  decode(state) {
1380
- const v = c.uint.decode(state)
1381
1367
  const r0 = c.string.decode(state)
1382
1368
  const r1 = c.string.decode(state)
1383
1369
  const flags = c.uint.decode(state)
1384
1370
 
1385
1371
  return {
1386
- version: v,
1372
+ version: 0,
1387
1373
  id: r0,
1388
1374
  chatId: r1,
1389
1375
  runId: (flags & 1) !== 0 ? c.string.decode(state) : null,
@@ -1405,7 +1391,8 @@ const encoding31 = {
1405
1391
  intent: (version >= 5 && (flags & 8192) !== 0) ? c.string.decode(state) : null,
1406
1392
  display: (version >= 5 && (flags & 16384) !== 0) ? c.json.decode(state) : null,
1407
1393
  rawCall: (version >= 5 && (flags & 32768) !== 0) ? c.string.decode(state) : null,
1408
- compaction: (version >= 5 && (flags & 65536) !== 0) ? encoding126.decode(state) : null
1394
+ compaction: (version >= 5 && (flags & 65536) !== 0) ? encoding126.decode(state) : null,
1395
+ senderMemberId: (version >= 8 && (flags & 131072) !== 0) ? c.fixed32.decode(state) : null
1409
1396
  }
1410
1397
  }
1411
1398
  }
@@ -1437,13 +1424,12 @@ const encoding32 = {
1437
1424
  }
1438
1425
  },
1439
1426
  decode(state) {
1440
- const start = state.start
1441
1427
  const v = c.uint.decode(state)
1442
- state.start = start
1443
1428
  switch (v) {
1444
1429
  case 0:
1445
1430
  case 1: {
1446
1431
  const decoded = encoding31.decode(state)
1432
+ decoded.version = v
1447
1433
  return decoded
1448
1434
  }
1449
1435
  default:
@@ -1473,13 +1459,12 @@ const encoding33 = {
1473
1459
  if (m.attachment) encoding21.encode(state, m.attachment)
1474
1460
  },
1475
1461
  decode(state) {
1476
- const v = c.uint.decode(state)
1477
1462
  const r0 = c.string.decode(state)
1478
1463
  const r1 = c.uint.decode(state)
1479
1464
  const flags = c.uint.decode(state)
1480
1465
 
1481
1466
  return {
1482
- version: v,
1467
+ version: 0,
1483
1468
  id: r0,
1484
1469
  updatedAt: r1,
1485
1470
  runStatus: (flags & 1) !== 0 ? encoding7.decode(state) : null,
@@ -1515,13 +1500,12 @@ const encoding34 = {
1515
1500
  }
1516
1501
  },
1517
1502
  decode(state) {
1518
- const start = state.start
1519
1503
  const v = c.uint.decode(state)
1520
- state.start = start
1521
1504
  switch (v) {
1522
1505
  case 0:
1523
1506
  case 1: {
1524
1507
  const decoded = encoding33.decode(state)
1508
+ decoded.version = v
1525
1509
  return decoded
1526
1510
  }
1527
1511
  default:
@@ -1545,12 +1529,11 @@ const encoding35 = {
1545
1529
  c.uint.encode(state, m.resolvedAt)
1546
1530
  },
1547
1531
  decode(state) {
1548
- const v = c.uint.decode(state)
1549
1532
  const r0 = c.string.decode(state)
1550
1533
  const flags = c.uint.decode(state)
1551
1534
 
1552
1535
  return {
1553
- version: v,
1536
+ version: 0,
1554
1537
  id: r0,
1555
1538
  approved: (flags & 1) !== 0,
1556
1539
  resolvedAt: c.uint.decode(state)
@@ -1585,13 +1568,12 @@ const encoding36 = {
1585
1568
  }
1586
1569
  },
1587
1570
  decode(state) {
1588
- const start = state.start
1589
1571
  const v = c.uint.decode(state)
1590
- state.start = start
1591
1572
  switch (v) {
1592
1573
  case 0:
1593
1574
  case 1: {
1594
1575
  const decoded = encoding35.decode(state)
1576
+ decoded.version = v
1595
1577
  return decoded
1596
1578
  }
1597
1579
  default:
@@ -1992,7 +1974,6 @@ const encoding43 = {
1992
1974
  if (version >= 7 && m.lenderDeviceId) c.fixed32.encode(state, m.lenderDeviceId)
1993
1975
  },
1994
1976
  decode(state) {
1995
- const v = c.uint.decode(state)
1996
1977
  const r0 = c.string.decode(state)
1997
1978
  const r1 = c.string.decode(state)
1998
1979
  const r2 = c.string.decode(state)
@@ -2002,7 +1983,7 @@ const encoding43 = {
2002
1983
  const flags = c.uint.decode(state)
2003
1984
 
2004
1985
  return {
2005
- version: v,
1986
+ version: 0,
2006
1987
  id: r0,
2007
1988
  name: r1,
2008
1989
  bio: r2,
@@ -2060,13 +2041,12 @@ const encoding44 = {
2060
2041
  }
2061
2042
  },
2062
2043
  decode(state) {
2063
- const start = state.start
2064
2044
  const v = c.uint.decode(state)
2065
- state.start = start
2066
2045
  switch (v) {
2067
2046
  case 0:
2068
2047
  case 1: {
2069
2048
  const decoded = encoding43.decode(state)
2049
+ decoded.version = v
2070
2050
  return decoded
2071
2051
  }
2072
2052
  default:
@@ -2113,7 +2093,6 @@ const encoding45 = {
2113
2093
  if (version >= 6 && m.rankedAt) c.uint.encode(state, m.rankedAt)
2114
2094
  },
2115
2095
  decode(state) {
2116
- const v = c.uint.decode(state)
2117
2096
  const r0 = c.string.decode(state)
2118
2097
  const r1 = c.string.decode(state)
2119
2098
  const r2 = c.string.decode(state)
@@ -2121,7 +2100,7 @@ const encoding45 = {
2121
2100
  const flags = c.uint.decode(state)
2122
2101
 
2123
2102
  return {
2124
- version: v,
2103
+ version: 0,
2125
2104
  id: r0,
2126
2105
  agentId: r1,
2127
2106
  title: r2,
@@ -2164,13 +2143,12 @@ const encoding46 = {
2164
2143
  }
2165
2144
  },
2166
2145
  decode(state) {
2167
- const start = state.start
2168
2146
  const v = c.uint.decode(state)
2169
- state.start = start
2170
2147
  switch (v) {
2171
2148
  case 0:
2172
2149
  case 1: {
2173
2150
  const decoded = encoding45.decode(state)
2151
+ decoded.version = v
2174
2152
  return decoded
2175
2153
  }
2176
2154
  default:
@@ -2293,7 +2271,6 @@ const encoding47 = {
2293
2271
  if (version >= 7 && m.deviceSignature) c.buffer.encode(state, m.deviceSignature)
2294
2272
  },
2295
2273
  decode(state) {
2296
- const v = c.uint.decode(state)
2297
2274
  const r0 = c.fixed32.decode(state)
2298
2275
  const r1 = c.string.decode(state)
2299
2276
  const r2 = c.uint.decode(state)
@@ -2302,7 +2279,7 @@ const encoding47 = {
2302
2279
  const flags = c.uint.decode(state)
2303
2280
 
2304
2281
  return {
2305
- version: v,
2282
+ version: 0,
2306
2283
  id: r0,
2307
2284
  name: r1,
2308
2285
  joinedAt: r2,
@@ -2359,13 +2336,12 @@ const encoding48 = {
2359
2336
  }
2360
2337
  },
2361
2338
  decode(state) {
2362
- const start = state.start
2363
2339
  const v = c.uint.decode(state)
2364
- state.start = start
2365
2340
  switch (v) {
2366
2341
  case 0:
2367
2342
  case 1: {
2368
2343
  const decoded = encoding47.decode(state)
2344
+ decoded.version = v
2369
2345
  return decoded
2370
2346
  }
2371
2347
  default:
@@ -2393,12 +2369,11 @@ const encoding49 = {
2393
2369
  if (version >= 7 && m.deviceSignature) c.buffer.encode(state, m.deviceSignature)
2394
2370
  },
2395
2371
  decode(state) {
2396
- const v = c.uint.decode(state)
2397
2372
  const r0 = c.buffer.decode(state)
2398
2373
  const flags = c.uint.decode(state)
2399
2374
 
2400
2375
  return {
2401
- version: v,
2376
+ version: 0,
2402
2377
  writerKey: r0,
2403
2378
  device: (flags & 1) !== 0 ? encoding48.decode(state) : null,
2404
2379
  deviceSignature: (version >= 7 && (flags & 2) !== 0) ? c.buffer.decode(state) : null
@@ -2433,13 +2408,12 @@ const encoding50 = {
2433
2408
  }
2434
2409
  },
2435
2410
  decode(state) {
2436
- const start = state.start
2437
2411
  const v = c.uint.decode(state)
2438
- state.start = start
2439
2412
  switch (v) {
2440
2413
  case 0:
2441
2414
  case 1: {
2442
2415
  const decoded = encoding49.decode(state)
2416
+ decoded.version = v
2443
2417
  return decoded
2444
2418
  }
2445
2419
  default:
@@ -2467,12 +2441,11 @@ const encoding51 = {
2467
2441
  if (m.revokedAt) c.uint.encode(state, m.revokedAt)
2468
2442
  },
2469
2443
  decode(state) {
2470
- const v = c.uint.decode(state)
2471
2444
  const r0 = c.buffer.decode(state)
2472
2445
  const flags = c.uint.decode(state)
2473
2446
 
2474
2447
  return {
2475
- version: v,
2448
+ version: 0,
2476
2449
  writerKey: r0,
2477
2450
  deviceId: (flags & 1) !== 0 ? c.fixed32.decode(state) : null,
2478
2451
  revokedAt: (flags & 2) !== 0 ? c.uint.decode(state) : 0
@@ -2507,13 +2480,12 @@ const encoding52 = {
2507
2480
  }
2508
2481
  },
2509
2482
  decode(state) {
2510
- const start = state.start
2511
2483
  const v = c.uint.decode(state)
2512
- state.start = start
2513
2484
  switch (v) {
2514
2485
  case 0:
2515
2486
  case 1: {
2516
2487
  const decoded = encoding51.decode(state)
2488
+ decoded.version = v
2517
2489
  return decoded
2518
2490
  }
2519
2491
  default:
@@ -2552,12 +2524,11 @@ const encoding53 = {
2552
2524
  if (version >= 7 && m.deviceSignature) c.buffer.encode(state, m.deviceSignature)
2553
2525
  },
2554
2526
  decode(state) {
2555
- const v = c.uint.decode(state)
2556
2527
  const r0 = c.buffer.decode(state)
2557
2528
  const flags = c.uint.decode(state)
2558
2529
 
2559
2530
  return {
2560
- version: v,
2531
+ version: 0,
2561
2532
  signature: r0,
2562
2533
  device: (flags & 1) !== 0 ? encoding48.decode(state) : null,
2563
2534
  deviceId: (flags & 2) !== 0 ? c.fixed32.decode(state) : null,
@@ -2595,13 +2566,12 @@ const encoding54 = {
2595
2566
  }
2596
2567
  },
2597
2568
  decode(state) {
2598
- const start = state.start
2599
2569
  const v = c.uint.decode(state)
2600
- state.start = start
2601
2570
  switch (v) {
2602
2571
  case 0:
2603
2572
  case 1: {
2604
2573
  const decoded = encoding53.decode(state)
2574
+ decoded.version = v
2605
2575
  return decoded
2606
2576
  }
2607
2577
  default:
@@ -2619,11 +2589,10 @@ const encoding55 = {
2619
2589
  encoding48.encode(state, m.device)
2620
2590
  },
2621
2591
  decode(state) {
2622
- const v = c.uint.decode(state)
2623
2592
  const r0 = encoding48.decode(state)
2624
2593
 
2625
2594
  return {
2626
- version: v,
2595
+ version: 0,
2627
2596
  device: r0
2628
2597
  }
2629
2598
  }
@@ -2656,13 +2625,12 @@ const encoding56 = {
2656
2625
  }
2657
2626
  },
2658
2627
  decode(state) {
2659
- const start = state.start
2660
2628
  const v = c.uint.decode(state)
2661
- state.start = start
2662
2629
  switch (v) {
2663
2630
  case 0:
2664
2631
  case 1: {
2665
2632
  const decoded = encoding55.decode(state)
2633
+ decoded.version = v
2666
2634
  return decoded
2667
2635
  }
2668
2636
  default:
@@ -2701,13 +2669,12 @@ const encoding58 = {
2701
2669
  }
2702
2670
  },
2703
2671
  decode(state) {
2704
- const start = state.start
2705
2672
  const v = c.uint.decode(state)
2706
- state.start = start
2707
2673
  switch (v) {
2708
2674
  case 0:
2709
2675
  case 1: {
2710
2676
  const decoded = encoding57.decode(state)
2677
+ decoded.version = v
2711
2678
  return decoded
2712
2679
  }
2713
2680
  default:
@@ -2760,12 +2727,11 @@ const encoding59 = {
2760
2727
  if (version >= 4 && m.toolCatalog) encoding59_6.encode(state, m.toolCatalog)
2761
2728
  },
2762
2729
  decode(state) {
2763
- const v = c.uint.decode(state)
2764
2730
  const r0 = c.fixed32.decode(state)
2765
2731
  const flags = c.uint.decode(state)
2766
2732
 
2767
2733
  return {
2768
- version: v,
2734
+ version: 0,
2769
2735
  deviceId: r0,
2770
2736
  installedToolNames: (flags & 1) !== 0 ? encoding59_1.decode(state) : null,
2771
2737
  installedSkillNames: (flags & 2) !== 0 ? encoding59_2.decode(state) : null,
@@ -2804,13 +2770,12 @@ const encoding60 = {
2804
2770
  }
2805
2771
  },
2806
2772
  decode(state) {
2807
- const start = state.start
2808
2773
  const v = c.uint.decode(state)
2809
- state.start = start
2810
2774
  switch (v) {
2811
2775
  case 0:
2812
2776
  case 1: {
2813
2777
  const decoded = encoding59.decode(state)
2778
+ decoded.version = v
2814
2779
  return decoded
2815
2780
  }
2816
2781
  default:
@@ -2828,11 +2793,10 @@ const encoding61 = {
2828
2793
  encoding44.encode(state, m.agent)
2829
2794
  },
2830
2795
  decode(state) {
2831
- const v = c.uint.decode(state)
2832
2796
  const r0 = encoding44.decode(state)
2833
2797
 
2834
2798
  return {
2835
- version: v,
2799
+ version: 0,
2836
2800
  agent: r0
2837
2801
  }
2838
2802
  }
@@ -2865,13 +2829,12 @@ const encoding62 = {
2865
2829
  }
2866
2830
  },
2867
2831
  decode(state) {
2868
- const start = state.start
2869
2832
  const v = c.uint.decode(state)
2870
- state.start = start
2871
2833
  switch (v) {
2872
2834
  case 0:
2873
2835
  case 1: {
2874
2836
  const decoded = encoding61.decode(state)
2837
+ decoded.version = v
2875
2838
  return decoded
2876
2839
  }
2877
2840
  default:
@@ -2889,11 +2852,10 @@ const encoding63 = {
2889
2852
  encoding46.encode(state, m.chat)
2890
2853
  },
2891
2854
  decode(state) {
2892
- const v = c.uint.decode(state)
2893
2855
  const r0 = encoding46.decode(state)
2894
2856
 
2895
2857
  return {
2896
- version: v,
2858
+ version: 0,
2897
2859
  chat: r0
2898
2860
  }
2899
2861
  }
@@ -2926,13 +2888,12 @@ const encoding64 = {
2926
2888
  }
2927
2889
  },
2928
2890
  decode(state) {
2929
- const start = state.start
2930
2891
  const v = c.uint.decode(state)
2931
- state.start = start
2932
2892
  switch (v) {
2933
2893
  case 0:
2934
2894
  case 1: {
2935
2895
  const decoded = encoding63.decode(state)
2896
+ decoded.version = v
2936
2897
  return decoded
2937
2898
  }
2938
2899
  default:
@@ -3016,12 +2977,11 @@ const encoding66 = {
3016
2977
  if (version >= 7 && m.memberId) c.fixed32.encode(state, m.memberId)
3017
2978
  },
3018
2979
  decode(state) {
3019
- const v = c.uint.decode(state)
3020
2980
  const r0 = c.string.decode(state)
3021
2981
  const flags = c.uint.decode(state)
3022
2982
 
3023
2983
  return {
3024
- version: v,
2984
+ version: 0,
3025
2985
  id: r0,
3026
2986
  toolName: (flags & 1) !== 0 ? c.string.decode(state) : null,
3027
2987
  resourceKind: (flags & 2) !== 0 ? c.string.decode(state) : null,
@@ -3064,13 +3024,12 @@ const encoding67 = {
3064
3024
  }
3065
3025
  },
3066
3026
  decode(state) {
3067
- const start = state.start
3068
3027
  const v = c.uint.decode(state)
3069
- state.start = start
3070
3028
  switch (v) {
3071
3029
  case 0:
3072
3030
  case 1: {
3073
3031
  const decoded = encoding66.decode(state)
3032
+ decoded.version = v
3074
3033
  return decoded
3075
3034
  }
3076
3035
  default:
@@ -3088,11 +3047,10 @@ const encoding68 = {
3088
3047
  encoding67.encode(state, m.rule)
3089
3048
  },
3090
3049
  decode(state) {
3091
- const v = c.uint.decode(state)
3092
3050
  const r0 = encoding67.decode(state)
3093
3051
 
3094
3052
  return {
3095
- version: v,
3053
+ version: 0,
3096
3054
  rule: r0
3097
3055
  }
3098
3056
  }
@@ -3125,13 +3083,12 @@ const encoding69 = {
3125
3083
  }
3126
3084
  },
3127
3085
  decode(state) {
3128
- const start = state.start
3129
3086
  const v = c.uint.decode(state)
3130
- state.start = start
3131
3087
  switch (v) {
3132
3088
  case 0:
3133
3089
  case 1: {
3134
3090
  const decoded = encoding68.decode(state)
3091
+ decoded.version = v
3135
3092
  return decoded
3136
3093
  }
3137
3094
  default:
@@ -3149,11 +3106,10 @@ const encoding70 = {
3149
3106
  c.buffer.encode(state, m.key)
3150
3107
  },
3151
3108
  decode(state) {
3152
- const v = c.uint.decode(state)
3153
3109
  const r0 = c.buffer.decode(state)
3154
3110
 
3155
3111
  return {
3156
- version: v,
3112
+ version: 0,
3157
3113
  key: r0
3158
3114
  }
3159
3115
  }
@@ -3186,13 +3142,12 @@ const encoding71 = {
3186
3142
  }
3187
3143
  },
3188
3144
  decode(state) {
3189
- const start = state.start
3190
3145
  const v = c.uint.decode(state)
3191
- state.start = start
3192
3146
  switch (v) {
3193
3147
  case 0:
3194
3148
  case 1: {
3195
3149
  const decoded = encoding70.decode(state)
3150
+ decoded.version = v
3196
3151
  return decoded
3197
3152
  }
3198
3153
  default:
@@ -3263,13 +3218,12 @@ const encoding73 = {
3263
3218
  if (version >= 7 && m.inviteNonce) c.fixed32.encode(state, m.inviteNonce)
3264
3219
  },
3265
3220
  decode(state) {
3266
- const v = c.uint.decode(state)
3267
3221
  const r0 = c.fixed32.decode(state)
3268
3222
  const r1 = c.fixed32.decode(state)
3269
3223
  const flags = c.uint.decode(state)
3270
3224
 
3271
3225
  return {
3272
- version: v,
3226
+ version: 0,
3273
3227
  meshKey: r0,
3274
3228
  seed: r1,
3275
3229
  fastForward: (flags & 1) !== 0 ? encoding73_2.decode(state) : null,
@@ -3310,13 +3264,12 @@ const encoding74 = {
3310
3264
  }
3311
3265
  },
3312
3266
  decode(state) {
3313
- const start = state.start
3314
3267
  const v = c.uint.decode(state)
3315
- state.start = start
3316
3268
  switch (v) {
3317
3269
  case 0:
3318
3270
  case 1: {
3319
3271
  const decoded = encoding73.decode(state)
3272
+ decoded.version = v
3320
3273
  return decoded
3321
3274
  }
3322
3275
  default:
@@ -3347,13 +3300,12 @@ const encoding75 = {
3347
3300
  if (m.blindPeers) encoding75_2.encode(state, m.blindPeers)
3348
3301
  },
3349
3302
  decode(state) {
3350
- const v = c.uint.decode(state)
3351
3303
  const r0 = encoding44.decode(state)
3352
3304
  const r1 = encoding46.decode(state)
3353
3305
  const flags = c.uint.decode(state)
3354
3306
 
3355
3307
  return {
3356
- version: v,
3308
+ version: 0,
3357
3309
  agent: r0,
3358
3310
  chat: r1,
3359
3311
  blindPeers: (flags & 1) !== 0 ? encoding75_2.decode(state) : null
@@ -3388,13 +3340,12 @@ const encoding76 = {
3388
3340
  }
3389
3341
  },
3390
3342
  decode(state) {
3391
- const start = state.start
3392
3343
  const v = c.uint.decode(state)
3393
- state.start = start
3394
3344
  switch (v) {
3395
3345
  case 0:
3396
3346
  case 1: {
3397
3347
  const decoded = encoding75.decode(state)
3348
+ decoded.version = v
3398
3349
  return decoded
3399
3350
  }
3400
3351
  default:
@@ -3434,7 +3385,6 @@ const encoding77 = {
3434
3385
  if (m.deletedAt) c.uint.encode(state, m.deletedAt)
3435
3386
  },
3436
3387
  decode(state) {
3437
- const v = c.uint.decode(state)
3438
3388
  const r0 = c.string.decode(state)
3439
3389
  const r1 = c.string.decode(state)
3440
3390
  const r2 = c.string.decode(state)
@@ -3446,7 +3396,7 @@ const encoding77 = {
3446
3396
  const flags = c.uint.decode(state)
3447
3397
 
3448
3398
  return {
3449
- version: v,
3399
+ version: 0,
3450
3400
  id: r0,
3451
3401
  chatId: r1,
3452
3402
  fileName: r2,
@@ -3487,13 +3437,12 @@ const encoding78 = {
3487
3437
  }
3488
3438
  },
3489
3439
  decode(state) {
3490
- const start = state.start
3491
3440
  const v = c.uint.decode(state)
3492
- state.start = start
3493
3441
  switch (v) {
3494
3442
  case 0:
3495
3443
  case 1: {
3496
3444
  const decoded = encoding77.decode(state)
3445
+ decoded.version = v
3497
3446
  return decoded
3498
3447
  }
3499
3448
  default:
@@ -3511,11 +3460,10 @@ const encoding79 = {
3511
3460
  encoding78.encode(state, m.knowledge)
3512
3461
  },
3513
3462
  decode(state) {
3514
- const v = c.uint.decode(state)
3515
3463
  const r0 = encoding78.decode(state)
3516
3464
 
3517
3465
  return {
3518
- version: v,
3466
+ version: 0,
3519
3467
  knowledge: r0
3520
3468
  }
3521
3469
  }
@@ -3548,13 +3496,12 @@ const encoding80 = {
3548
3496
  }
3549
3497
  },
3550
3498
  decode(state) {
3551
- const start = state.start
3552
3499
  const v = c.uint.decode(state)
3553
- state.start = start
3554
3500
  switch (v) {
3555
3501
  case 0:
3556
3502
  case 1: {
3557
3503
  const decoded = encoding79.decode(state)
3504
+ decoded.version = v
3558
3505
  return decoded
3559
3506
  }
3560
3507
  default:
@@ -3574,12 +3521,11 @@ const encoding81 = {
3574
3521
  c.uint.encode(state, m.at)
3575
3522
  },
3576
3523
  decode(state) {
3577
- const v = c.uint.decode(state)
3578
3524
  const r0 = c.string.decode(state)
3579
3525
  const r1 = c.uint.decode(state)
3580
3526
 
3581
3527
  return {
3582
- version: v,
3528
+ version: 0,
3583
3529
  knowledgeId: r0,
3584
3530
  at: r1
3585
3531
  }
@@ -3613,13 +3559,12 @@ const encoding82 = {
3613
3559
  }
3614
3560
  },
3615
3561
  decode(state) {
3616
- const start = state.start
3617
3562
  const v = c.uint.decode(state)
3618
- state.start = start
3619
3563
  switch (v) {
3620
3564
  case 0:
3621
3565
  case 1: {
3622
3566
  const decoded = encoding81.decode(state)
3567
+ decoded.version = v
3623
3568
  return decoded
3624
3569
  }
3625
3570
  default:
@@ -3649,7 +3594,6 @@ const encoding83 = {
3649
3594
  c.uint.encode(state, m.createdAt)
3650
3595
  },
3651
3596
  decode(state) {
3652
- const v = c.uint.decode(state)
3653
3597
  const r0 = c.string.decode(state)
3654
3598
  const r1 = c.string.decode(state)
3655
3599
  const r2 = c.string.decode(state)
@@ -3659,7 +3603,7 @@ const encoding83 = {
3659
3603
  const r6 = c.uint.decode(state)
3660
3604
 
3661
3605
  return {
3662
- version: v,
3606
+ version: 0,
3663
3607
  id: r0,
3664
3608
  knowledgeId: r1,
3665
3609
  sourceHash: r2,
@@ -3698,13 +3642,12 @@ const encoding84 = {
3698
3642
  }
3699
3643
  },
3700
3644
  decode(state) {
3701
- const start = state.start
3702
3645
  const v = c.uint.decode(state)
3703
- state.start = start
3704
3646
  switch (v) {
3705
3647
  case 0:
3706
3648
  case 1: {
3707
3649
  const decoded = encoding83.decode(state)
3650
+ decoded.version = v
3708
3651
  return decoded
3709
3652
  }
3710
3653
  default:
@@ -3722,11 +3665,10 @@ const encoding85 = {
3722
3665
  encoding84.encode(state, m.artifact)
3723
3666
  },
3724
3667
  decode(state) {
3725
- const v = c.uint.decode(state)
3726
3668
  const r0 = encoding84.decode(state)
3727
3669
 
3728
3670
  return {
3729
- version: v,
3671
+ version: 0,
3730
3672
  artifact: r0
3731
3673
  }
3732
3674
  }
@@ -3759,13 +3701,12 @@ const encoding86 = {
3759
3701
  }
3760
3702
  },
3761
3703
  decode(state) {
3762
- const start = state.start
3763
3704
  const v = c.uint.decode(state)
3764
- state.start = start
3765
3705
  switch (v) {
3766
3706
  case 0:
3767
3707
  case 1: {
3768
3708
  const decoded = encoding85.decode(state)
3709
+ decoded.version = v
3769
3710
  return decoded
3770
3711
  }
3771
3712
  default:
@@ -3877,7 +3818,6 @@ const encoding89 = {
3877
3818
  if (m.error) c.string.encode(state, m.error)
3878
3819
  },
3879
3820
  decode(state) {
3880
- const v = c.uint.decode(state)
3881
3821
  const r0 = c.string.decode(state)
3882
3822
  const r1 = c.string.decode(state)
3883
3823
  const r2 = c.string.decode(state)
@@ -3889,7 +3829,7 @@ const encoding89 = {
3889
3829
  const flags = c.uint.decode(state)
3890
3830
 
3891
3831
  return {
3892
- version: v,
3832
+ version: 0,
3893
3833
  id: r0,
3894
3834
  knowledgeId: r1,
3895
3835
  chatId: r2,
@@ -3930,13 +3870,12 @@ const encoding90 = {
3930
3870
  }
3931
3871
  },
3932
3872
  decode(state) {
3933
- const start = state.start
3934
3873
  const v = c.uint.decode(state)
3935
- state.start = start
3936
3874
  switch (v) {
3937
3875
  case 0:
3938
3876
  case 1: {
3939
3877
  const decoded = encoding89.decode(state)
3878
+ decoded.version = v
3940
3879
  return decoded
3941
3880
  }
3942
3881
  default:
@@ -3960,14 +3899,13 @@ const encoding91 = {
3960
3899
  c.uint.encode(state, m.at)
3961
3900
  },
3962
3901
  decode(state) {
3963
- const v = c.uint.decode(state)
3964
3902
  const r0 = c.string.decode(state)
3965
3903
  const r1 = c.string.decode(state)
3966
3904
  const r2 = c.string.decode(state)
3967
3905
  const r3 = c.uint.decode(state)
3968
3906
 
3969
3907
  return {
3970
- version: v,
3908
+ version: 0,
3971
3909
  id: r0,
3972
3910
  knowledgeId: r1,
3973
3911
  claimId: r2,
@@ -4003,13 +3941,12 @@ const encoding92 = {
4003
3941
  }
4004
3942
  },
4005
3943
  decode(state) {
4006
- const start = state.start
4007
3944
  const v = c.uint.decode(state)
4008
- state.start = start
4009
3945
  switch (v) {
4010
3946
  case 0:
4011
3947
  case 1: {
4012
3948
  const decoded = encoding91.decode(state)
3949
+ decoded.version = v
4013
3950
  return decoded
4014
3951
  }
4015
3952
  default:
@@ -4039,14 +3976,13 @@ const encoding93 = {
4039
3976
  if (m.error) c.string.encode(state, m.error)
4040
3977
  },
4041
3978
  decode(state) {
4042
- const v = c.uint.decode(state)
4043
3979
  const r0 = c.string.decode(state)
4044
3980
  const r1 = c.string.decode(state)
4045
3981
  const r2 = encoding88.decode(state)
4046
3982
  const flags = c.uint.decode(state)
4047
3983
 
4048
3984
  return {
4049
- version: v,
3985
+ version: 0,
4050
3986
  id: r0,
4051
3987
  claimId: r1,
4052
3988
  status: r2,
@@ -4082,13 +4018,12 @@ const encoding94 = {
4082
4018
  }
4083
4019
  },
4084
4020
  decode(state) {
4085
- const start = state.start
4086
4021
  const v = c.uint.decode(state)
4087
- state.start = start
4088
4022
  switch (v) {
4089
4023
  case 0:
4090
4024
  case 1: {
4091
4025
  const decoded = encoding93.decode(state)
4026
+ decoded.version = v
4092
4027
  return decoded
4093
4028
  }
4094
4029
  default:
@@ -4118,14 +4053,13 @@ const encoding95 = {
4118
4053
  if (version >= 3 && m.platform) c.string.encode(state, m.platform)
4119
4054
  },
4120
4055
  decode(state) {
4121
- const v = c.uint.decode(state)
4122
4056
  const r0 = c.fixed32.decode(state)
4123
4057
  const r1 = encoding38.decode(state)
4124
4058
  const r2 = c.string.decode(state)
4125
4059
  const flags = state.start < state.end ? c.uint.decode(state) : 0
4126
4060
 
4127
4061
  return {
4128
- version: v,
4062
+ version: 0,
4129
4063
  deviceId: r0,
4130
4064
  capabilityProfile: r1,
4131
4065
  recommendedModelName: r2,
@@ -4161,13 +4095,12 @@ const encoding96 = {
4161
4095
  }
4162
4096
  },
4163
4097
  decode(state) {
4164
- const start = state.start
4165
4098
  const v = c.uint.decode(state)
4166
- state.start = start
4167
4099
  switch (v) {
4168
4100
  case 0:
4169
4101
  case 1: {
4170
4102
  const decoded = encoding95.decode(state)
4103
+ decoded.version = v
4171
4104
  return decoded
4172
4105
  }
4173
4106
  default:
@@ -4269,13 +4202,12 @@ const encoding99 = {
4269
4202
  encoding97.encode(state, m.appChannel)
4270
4203
  },
4271
4204
  decode(state) {
4272
- const v = c.uint.decode(state)
4273
4205
  const r0 = c.fixed32.decode(state)
4274
4206
  const r1 = c.string.decode(state)
4275
4207
  const flags = c.uint.decode(state)
4276
4208
 
4277
4209
  return {
4278
- version: v,
4210
+ version: 0,
4279
4211
  deviceId: r0,
4280
4212
  appVersion: r1,
4281
4213
  appBuild: (version >= 3 && (flags & 1) !== 0) ? c.string.decode(state) : null,
@@ -4311,13 +4243,12 @@ const encoding100 = {
4311
4243
  }
4312
4244
  },
4313
4245
  decode(state) {
4314
- const start = state.start
4315
4246
  const v = c.uint.decode(state)
4316
- state.start = start
4317
4247
  switch (v) {
4318
4248
  case 0:
4319
4249
  case 1: {
4320
4250
  const decoded = encoding99.decode(state)
4251
+ decoded.version = v
4321
4252
  return decoded
4322
4253
  }
4323
4254
  default:
@@ -4351,7 +4282,6 @@ const encoding101 = {
4351
4282
  if (version >= 3 && m.deletedAt) c.uint.encode(state, m.deletedAt)
4352
4283
  },
4353
4284
  decode(state) {
4354
- const v = c.uint.decode(state)
4355
4285
  const r0 = c.string.decode(state)
4356
4286
  const r1 = c.string.decode(state)
4357
4287
  const r2 = c.json.decode(state)
@@ -4360,7 +4290,7 @@ const encoding101 = {
4360
4290
  const flags = c.uint.decode(state)
4361
4291
 
4362
4292
  return {
4363
- version: v,
4293
+ version: 0,
4364
4294
  agentId: r0,
4365
4295
  toolName: r1,
4366
4296
  settings: r2,
@@ -4398,13 +4328,12 @@ const encoding102 = {
4398
4328
  }
4399
4329
  },
4400
4330
  decode(state) {
4401
- const start = state.start
4402
4331
  const v = c.uint.decode(state)
4403
- state.start = start
4404
4332
  switch (v) {
4405
4333
  case 0:
4406
4334
  case 1: {
4407
4335
  const decoded = encoding101.decode(state)
4336
+ decoded.version = v
4408
4337
  return decoded
4409
4338
  }
4410
4339
  default:
@@ -4422,11 +4351,10 @@ const encoding103 = {
4422
4351
  encoding102.encode(state, m.settings)
4423
4352
  },
4424
4353
  decode(state) {
4425
- const v = c.uint.decode(state)
4426
4354
  const r0 = encoding102.decode(state)
4427
4355
 
4428
4356
  return {
4429
- version: v,
4357
+ version: 0,
4430
4358
  settings: r0
4431
4359
  }
4432
4360
  }
@@ -4459,13 +4387,12 @@ const encoding104 = {
4459
4387
  }
4460
4388
  },
4461
4389
  decode(state) {
4462
- const start = state.start
4463
4390
  const v = c.uint.decode(state)
4464
- state.start = start
4465
4391
  switch (v) {
4466
4392
  case 0:
4467
4393
  case 1: {
4468
4394
  const decoded = encoding103.decode(state)
4395
+ decoded.version = v
4469
4396
  return decoded
4470
4397
  }
4471
4398
  default:
@@ -4570,14 +4497,13 @@ const encoding106 = {
4570
4497
  c.uint.encode(state, m.seq)
4571
4498
  },
4572
4499
  decode(state) {
4573
- const v = c.uint.decode(state)
4574
4500
  const r0 = c.string.decode(state)
4575
4501
  const r1 = c.string.decode(state)
4576
4502
  const r2 = c.fixed32.decode(state)
4577
4503
  const flags = c.uint.decode(state)
4578
4504
 
4579
4505
  return {
4580
- version: v,
4506
+ version: 0,
4581
4507
  id: r0,
4582
4508
  agentId: r1,
4583
4509
  originDeviceId: r2,
@@ -4621,13 +4547,12 @@ const encoding107 = {
4621
4547
  }
4622
4548
  },
4623
4549
  decode(state) {
4624
- const start = state.start
4625
4550
  const v = c.uint.decode(state)
4626
- state.start = start
4627
4551
  switch (v) {
4628
4552
  case 0:
4629
4553
  case 1: {
4630
4554
  const decoded = encoding106.decode(state)
4555
+ decoded.version = v
4631
4556
  return decoded
4632
4557
  }
4633
4558
  default:
@@ -4645,11 +4570,10 @@ const encoding108 = {
4645
4570
  encoding107.encode(state, m.activity)
4646
4571
  },
4647
4572
  decode(state) {
4648
- const v = c.uint.decode(state)
4649
4573
  const r0 = encoding107.decode(state)
4650
4574
 
4651
4575
  return {
4652
- version: v,
4576
+ version: 0,
4653
4577
  activity: r0
4654
4578
  }
4655
4579
  }
@@ -4682,13 +4606,12 @@ const encoding109 = {
4682
4606
  }
4683
4607
  },
4684
4608
  decode(state) {
4685
- const start = state.start
4686
4609
  const v = c.uint.decode(state)
4687
- state.start = start
4688
4610
  switch (v) {
4689
4611
  case 0:
4690
4612
  case 1: {
4691
4613
  const decoded = encoding108.decode(state)
4614
+ decoded.version = v
4692
4615
  return decoded
4693
4616
  }
4694
4617
  default:
@@ -4708,12 +4631,11 @@ const encoding110 = {
4708
4631
  c.uint.encode(state, m.count)
4709
4632
  },
4710
4633
  decode(state) {
4711
- const v = c.uint.decode(state)
4712
4634
  const r0 = c.string.decode(state)
4713
4635
  const r1 = c.uint.decode(state)
4714
4636
 
4715
4637
  return {
4716
- version: v,
4638
+ version: 0,
4717
4639
  agentId: r0,
4718
4640
  count: r1
4719
4641
  }
@@ -4747,13 +4669,12 @@ const encoding111 = {
4747
4669
  }
4748
4670
  },
4749
4671
  decode(state) {
4750
- const start = state.start
4751
4672
  const v = c.uint.decode(state)
4752
- state.start = start
4753
4673
  switch (v) {
4754
4674
  case 0:
4755
4675
  case 1: {
4756
4676
  const decoded = encoding110.decode(state)
4677
+ decoded.version = v
4757
4678
  return decoded
4758
4679
  }
4759
4680
  default:
@@ -4821,7 +4742,6 @@ const encoding113 = {
4821
4742
  c.uint.encode(state, flags)
4822
4743
  },
4823
4744
  decode(state) {
4824
- const v = c.uint.decode(state)
4825
4745
  const r0 = c.fixed32.decode(state)
4826
4746
  const r1 = c.uint.decode(state)
4827
4747
  const r2 = c.uint.decode(state)
@@ -4829,7 +4749,7 @@ const encoding113 = {
4829
4749
  const flags = state.start < state.end ? c.uint.decode(state) : 0
4830
4750
 
4831
4751
  return {
4832
- version: v,
4752
+ version: 0,
4833
4753
  writerKey: r0,
4834
4754
  length: r1,
4835
4755
  clock: r2,
@@ -4866,13 +4786,12 @@ const encoding114 = {
4866
4786
  }
4867
4787
  },
4868
4788
  decode(state) {
4869
- const start = state.start
4870
4789
  const v = c.uint.decode(state)
4871
- state.start = start
4872
4790
  switch (v) {
4873
4791
  case 0:
4874
4792
  case 1: {
4875
4793
  const decoded = encoding113.decode(state)
4794
+ decoded.version = v
4876
4795
  return decoded
4877
4796
  }
4878
4797
  default:
@@ -4892,12 +4811,11 @@ const encoding115 = {
4892
4811
  c.buffer.encode(state, m.signature)
4893
4812
  },
4894
4813
  decode(state) {
4895
- const v = c.uint.decode(state)
4896
4814
  const r0 = c.fixed32.decode(state)
4897
4815
  const r1 = c.buffer.decode(state)
4898
4816
 
4899
4817
  return {
4900
- version: v,
4818
+ version: 0,
4901
4819
  deviceId: r0,
4902
4820
  signature: r1
4903
4821
  }
@@ -4931,13 +4849,12 @@ const encoding116 = {
4931
4849
  }
4932
4850
  },
4933
4851
  decode(state) {
4934
- const start = state.start
4935
4852
  const v = c.uint.decode(state)
4936
- state.start = start
4937
4853
  switch (v) {
4938
4854
  case 0:
4939
4855
  case 1: {
4940
4856
  const decoded = encoding115.decode(state)
4857
+ decoded.version = v
4941
4858
  return decoded
4942
4859
  }
4943
4860
  default:
@@ -4961,14 +4878,13 @@ const encoding117 = {
4961
4878
  c.uint.encode(state, m.updatedAt)
4962
4879
  },
4963
4880
  decode(state) {
4964
- const v = c.uint.decode(state)
4965
4881
  const r0 = c.fixed32.decode(state)
4966
4882
  const r1 = c.string.decode(state)
4967
4883
  const r2 = c.uint.decode(state)
4968
4884
  const r3 = c.uint.decode(state)
4969
4885
 
4970
4886
  return {
4971
- version: v,
4887
+ version: 0,
4972
4888
  id: r0,
4973
4889
  name: r1,
4974
4890
  joinedAt: r2,
@@ -5004,13 +4920,12 @@ const encoding118 = {
5004
4920
  }
5005
4921
  },
5006
4922
  decode(state) {
5007
- const start = state.start
5008
4923
  const v = c.uint.decode(state)
5009
- state.start = start
5010
4924
  switch (v) {
5011
4925
  case 0:
5012
4926
  case 1: {
5013
4927
  const decoded = encoding117.decode(state)
4928
+ decoded.version = v
5014
4929
  return decoded
5015
4930
  }
5016
4931
  default:
@@ -5030,12 +4945,11 @@ const encoding119 = {
5030
4945
  c.buffer.encode(state, m.proof)
5031
4946
  },
5032
4947
  decode(state) {
5033
- const v = c.uint.decode(state)
5034
4948
  const r0 = encoding118.decode(state)
5035
4949
  const r1 = c.buffer.decode(state)
5036
4950
 
5037
4951
  return {
5038
- version: v,
4952
+ version: 0,
5039
4953
  member: r0,
5040
4954
  proof: r1
5041
4955
  }
@@ -5069,13 +4983,12 @@ const encoding120 = {
5069
4983
  }
5070
4984
  },
5071
4985
  decode(state) {
5072
- const start = state.start
5073
4986
  const v = c.uint.decode(state)
5074
- state.start = start
5075
4987
  switch (v) {
5076
4988
  case 0:
5077
4989
  case 1: {
5078
4990
  const decoded = encoding119.decode(state)
4991
+ decoded.version = v
5079
4992
  return decoded
5080
4993
  }
5081
4994
  default:
@@ -5093,11 +5006,10 @@ const encoding121 = {
5093
5006
  encoding118.encode(state, m.member)
5094
5007
  },
5095
5008
  decode(state) {
5096
- const v = c.uint.decode(state)
5097
5009
  const r0 = encoding118.decode(state)
5098
5010
 
5099
5011
  return {
5100
- version: v,
5012
+ version: 0,
5101
5013
  member: r0
5102
5014
  }
5103
5015
  }
@@ -5130,13 +5042,12 @@ const encoding122 = {
5130
5042
  }
5131
5043
  },
5132
5044
  decode(state) {
5133
- const start = state.start
5134
5045
  const v = c.uint.decode(state)
5135
- state.start = start
5136
5046
  switch (v) {
5137
5047
  case 0:
5138
5048
  case 1: {
5139
5049
  const decoded = encoding121.decode(state)
5050
+ decoded.version = v
5140
5051
  return decoded
5141
5052
  }
5142
5053
  default:
@@ -5160,14 +5071,13 @@ const encoding123 = {
5160
5071
  c.uint.encode(state, m.attestedAt)
5161
5072
  },
5162
5073
  decode(state) {
5163
- const v = c.uint.decode(state)
5164
5074
  const r0 = c.fixed32.decode(state)
5165
5075
  const r1 = c.fixed32.decode(state)
5166
5076
  const r2 = c.buffer.decode(state)
5167
5077
  const r3 = c.uint.decode(state)
5168
5078
 
5169
5079
  return {
5170
- version: v,
5080
+ version: 0,
5171
5081
  deviceId: r0,
5172
5082
  memberId: r1,
5173
5083
  proof: r2,
@@ -5203,13 +5113,12 @@ const encoding124 = {
5203
5113
  }
5204
5114
  },
5205
5115
  decode(state) {
5206
- const start = state.start
5207
5116
  const v = c.uint.decode(state)
5208
- state.start = start
5209
5117
  switch (v) {
5210
5118
  case 0:
5211
5119
  case 1: {
5212
5120
  const decoded = encoding123.decode(state)
5121
+ decoded.version = v
5213
5122
  return decoded
5214
5123
  }
5215
5124
  default:
@@ -5229,12 +5138,11 @@ const encoding125 = {
5229
5138
  c.string.encode(state, m.throughId)
5230
5139
  },
5231
5140
  decode(state) {
5232
- const v = c.uint.decode(state)
5233
5141
  const r0 = c.string.decode(state)
5234
5142
  const r1 = c.string.decode(state)
5235
5143
 
5236
5144
  return {
5237
- version: v,
5145
+ version: 0,
5238
5146
  summary: r0,
5239
5147
  throughId: r1
5240
5148
  }
@@ -5268,13 +5176,12 @@ const encoding126 = {
5268
5176
  }
5269
5177
  },
5270
5178
  decode(state) {
5271
- const start = state.start
5272
5179
  const v = c.uint.decode(state)
5273
- state.start = start
5274
5180
  switch (v) {
5275
5181
  case 0:
5276
5182
  case 1: {
5277
5183
  const decoded = encoding125.decode(state)
5184
+ decoded.version = v
5278
5185
  return decoded
5279
5186
  }
5280
5187
  default:
@@ -5308,7 +5215,6 @@ const encoding127 = {
5308
5215
  if (version >= 6 && m.rank) c.float64.encode(state, m.rank)
5309
5216
  },
5310
5217
  decode(state) {
5311
- const v = c.uint.decode(state)
5312
5218
  const r0 = c.string.decode(state)
5313
5219
  const r1 = c.string.decode(state)
5314
5220
  const r2 = c.uint.decode(state)
@@ -5316,7 +5222,7 @@ const encoding127 = {
5316
5222
  const flags = c.uint.decode(state)
5317
5223
 
5318
5224
  return {
5319
- version: v,
5225
+ version: 0,
5320
5226
  id: r0,
5321
5227
  name: r1,
5322
5228
  createdAt: r2,
@@ -5354,13 +5260,12 @@ const encoding128 = {
5354
5260
  }
5355
5261
  },
5356
5262
  decode(state) {
5357
- const start = state.start
5358
5263
  const v = c.uint.decode(state)
5359
- state.start = start
5360
5264
  switch (v) {
5361
5265
  case 0:
5362
5266
  case 1: {
5363
5267
  const decoded = encoding127.decode(state)
5268
+ decoded.version = v
5364
5269
  return decoded
5365
5270
  }
5366
5271
  default:
@@ -5378,11 +5283,10 @@ const encoding129 = {
5378
5283
  encoding128.encode(state, m.group)
5379
5284
  },
5380
5285
  decode(state) {
5381
- const v = c.uint.decode(state)
5382
5286
  const r0 = encoding128.decode(state)
5383
5287
 
5384
5288
  return {
5385
- version: v,
5289
+ version: 0,
5386
5290
  group: r0
5387
5291
  }
5388
5292
  }
@@ -5415,13 +5319,12 @@ const encoding130 = {
5415
5319
  }
5416
5320
  },
5417
5321
  decode(state) {
5418
- const start = state.start
5419
5322
  const v = c.uint.decode(state)
5420
- state.start = start
5421
5323
  switch (v) {
5422
5324
  case 0:
5423
5325
  case 1: {
5424
5326
  const decoded = encoding129.decode(state)
5327
+ decoded.version = v
5425
5328
  return decoded
5426
5329
  }
5427
5330
  default:
@@ -5447,12 +5350,11 @@ const encoding131 = {
5447
5350
  if (version >= 7 && m.revokedAt) c.uint.encode(state, m.revokedAt)
5448
5351
  },
5449
5352
  decode(state) {
5450
- const v = c.uint.decode(state)
5451
5353
  const r0 = c.fixed32.decode(state)
5452
5354
  const flags = c.uint.decode(state)
5453
5355
 
5454
5356
  return {
5455
- version: v,
5357
+ version: 0,
5456
5358
  memberId: r0,
5457
5359
  revokedAt: (version >= 7 && (flags & 1) !== 0) ? c.uint.decode(state) : 0
5458
5360
  }
@@ -5486,13 +5388,12 @@ const encoding132 = {
5486
5388
  }
5487
5389
  },
5488
5390
  decode(state) {
5489
- const start = state.start
5490
5391
  const v = c.uint.decode(state)
5491
- state.start = start
5492
5392
  switch (v) {
5493
5393
  case 0:
5494
5394
  case 1: {
5495
5395
  const decoded = encoding131.decode(state)
5396
+ decoded.version = v
5496
5397
  return decoded
5497
5398
  }
5498
5399
  default:
@@ -5531,13 +5432,12 @@ const encoding134 = {
5531
5432
  }
5532
5433
  },
5533
5434
  decode(state) {
5534
- const start = state.start
5535
5435
  const v = c.uint.decode(state)
5536
- state.start = start
5537
5436
  switch (v) {
5538
5437
  case 0:
5539
5438
  case 1: {
5540
5439
  const decoded = encoding133.decode(state)
5440
+ decoded.version = v
5541
5441
  return decoded
5542
5442
  }
5543
5443
  default:
@@ -5578,14 +5478,13 @@ const encoding135 = {
5578
5478
  if (version >= 7 && m.sharedAt) c.uint.encode(state, m.sharedAt)
5579
5479
  },
5580
5480
  decode(state) {
5581
- const v = c.uint.decode(state)
5582
5481
  const r0 = c.fixed32.decode(state)
5583
5482
  const r1 = c.fixed32.decode(state)
5584
5483
  const r2 = c.uint.decode(state)
5585
5484
  const flags = c.uint.decode(state)
5586
5485
 
5587
5486
  return {
5588
- version: v,
5487
+ version: 0,
5589
5488
  meshKey: r0,
5590
5489
  memberId: r1,
5591
5490
  joinedAt: r2,
@@ -5625,13 +5524,12 @@ const encoding136 = {
5625
5524
  }
5626
5525
  },
5627
5526
  decode(state) {
5628
- const start = state.start
5629
5527
  const v = c.uint.decode(state)
5630
- state.start = start
5631
5528
  switch (v) {
5632
5529
  case 0:
5633
5530
  case 1: {
5634
5531
  const decoded = encoding135.decode(state)
5532
+ decoded.version = v
5635
5533
  return decoded
5636
5534
  }
5637
5535
  default:
@@ -5649,11 +5547,10 @@ const encoding137 = {
5649
5547
  encoding136.encode(state, m.room)
5650
5548
  },
5651
5549
  decode(state) {
5652
- const v = c.uint.decode(state)
5653
5550
  const r0 = encoding136.decode(state)
5654
5551
 
5655
5552
  return {
5656
- version: v,
5553
+ version: 0,
5657
5554
  room: r0
5658
5555
  }
5659
5556
  }
@@ -5686,13 +5583,12 @@ const encoding138 = {
5686
5583
  }
5687
5584
  },
5688
5585
  decode(state) {
5689
- const start = state.start
5690
5586
  const v = c.uint.decode(state)
5691
- state.start = start
5692
5587
  switch (v) {
5693
5588
  case 0:
5694
5589
  case 1: {
5695
5590
  const decoded = encoding137.decode(state)
5591
+ decoded.version = v
5696
5592
  return decoded
5697
5593
  }
5698
5594
  default:
@@ -5722,7 +5618,8 @@ const encoding139 = {
5722
5618
  ((version >= 5 && m.intent) ? 16384 : 0) |
5723
5619
  ((version >= 5 && m.display) ? 32768 : 0) |
5724
5620
  ((version >= 5 && m.rawCall) ? 65536 : 0) |
5725
- ((version >= 5 && m.compaction) ? 131072 : 0)
5621
+ ((version >= 5 && m.compaction) ? 131072 : 0) |
5622
+ ((version >= 8 && m.senderMemberId) ? 262144 : 0)
5726
5623
 
5727
5624
  c.string.preencode(state, m.chatId)
5728
5625
  c.uint.preencode(state, flags)
@@ -5749,6 +5646,7 @@ const encoding139 = {
5749
5646
  if (version >= 5 && m.display) c.json.preencode(state, m.display)
5750
5647
  if (version >= 5 && m.rawCall) c.string.preencode(state, m.rawCall)
5751
5648
  if (version >= 5 && m.compaction) encoding126.preencode(state, m.compaction)
5649
+ if (version >= 8 && m.senderMemberId) c.fixed32.preencode(state, m.senderMemberId)
5752
5650
  },
5753
5651
  encode(state, m) {
5754
5652
  const flags =
@@ -5769,7 +5667,8 @@ const encoding139 = {
5769
5667
  ((version >= 5 && m.intent) ? 16384 : 0) |
5770
5668
  ((version >= 5 && m.display) ? 32768 : 0) |
5771
5669
  ((version >= 5 && m.rawCall) ? 65536 : 0) |
5772
- ((version >= 5 && m.compaction) ? 131072 : 0)
5670
+ ((version >= 5 && m.compaction) ? 131072 : 0) |
5671
+ ((version >= 8 && m.senderMemberId) ? 262144 : 0)
5773
5672
 
5774
5673
  c.string.encode(state, m.chatId)
5775
5674
  c.uint.encode(state, flags)
@@ -5796,14 +5695,14 @@ const encoding139 = {
5796
5695
  if (version >= 5 && m.display) c.json.encode(state, m.display)
5797
5696
  if (version >= 5 && m.rawCall) c.string.encode(state, m.rawCall)
5798
5697
  if (version >= 5 && m.compaction) encoding126.encode(state, m.compaction)
5698
+ if (version >= 8 && m.senderMemberId) c.fixed32.encode(state, m.senderMemberId)
5799
5699
  },
5800
5700
  decode(state) {
5801
- const v = c.uint.decode(state)
5802
5701
  const r1 = c.string.decode(state)
5803
5702
  const flags = c.uint.decode(state)
5804
5703
 
5805
5704
  return {
5806
- version: v,
5705
+ version: 0,
5807
5706
  id: null,
5808
5707
  chatId: r1,
5809
5708
  runId: (flags & 1) !== 0 ? c.string.decode(state) : null,
@@ -5827,7 +5726,8 @@ const encoding139 = {
5827
5726
  intent: (version >= 5 && (flags & 16384) !== 0) ? c.string.decode(state) : null,
5828
5727
  display: (version >= 5 && (flags & 32768) !== 0) ? c.json.decode(state) : null,
5829
5728
  rawCall: (version >= 5 && (flags & 65536) !== 0) ? c.string.decode(state) : null,
5830
- compaction: (version >= 5 && (flags & 131072) !== 0) ? encoding126.decode(state) : null
5729
+ compaction: (version >= 5 && (flags & 131072) !== 0) ? encoding126.decode(state) : null,
5730
+ senderMemberId: (version >= 8 && (flags & 262144) !== 0) ? c.fixed32.decode(state) : null
5831
5731
  }
5832
5732
  }
5833
5733
  }
@@ -5859,13 +5759,12 @@ const encoding140 = {
5859
5759
  }
5860
5760
  },
5861
5761
  decode(state) {
5862
- const start = state.start
5863
5762
  const v = c.uint.decode(state)
5864
- state.start = start
5865
5763
  switch (v) {
5866
5764
  case 0:
5867
5765
  case 1: {
5868
5766
  const decoded = encoding139.decode(state)
5767
+ decoded.version = v
5869
5768
  return decoded
5870
5769
  }
5871
5770
  default:
@@ -5891,12 +5790,11 @@ const encoding141 = {
5891
5790
  if (version >= 5 && m.lastActivityAt) c.uint.encode(state, m.lastActivityAt)
5892
5791
  },
5893
5792
  decode(state) {
5894
- const v = c.uint.decode(state)
5895
5793
  const r1 = c.uint.decode(state)
5896
5794
  const flags = state.start < state.end ? c.uint.decode(state) : 0
5897
5795
 
5898
5796
  return {
5899
- version: v,
5797
+ version: 0,
5900
5798
  chatId: null,
5901
5799
  count: r1,
5902
5800
  lastActivityAt: (version >= 5 && (flags & 1) !== 0) ? c.uint.decode(state) : 0
@@ -5931,13 +5829,12 @@ const encoding142 = {
5931
5829
  }
5932
5830
  },
5933
5831
  decode(state) {
5934
- const start = state.start
5935
5832
  const v = c.uint.decode(state)
5936
- state.start = start
5937
5833
  switch (v) {
5938
5834
  case 0:
5939
5835
  case 1: {
5940
5836
  const decoded = encoding141.decode(state)
5837
+ decoded.version = v
5941
5838
  return decoded
5942
5839
  }
5943
5840
  default:
@@ -6054,7 +5951,6 @@ const encoding143 = {
6054
5951
  if (version >= 7 && m.lenderDeviceId) c.fixed32.encode(state, m.lenderDeviceId)
6055
5952
  },
6056
5953
  decode(state) {
6057
- const v = c.uint.decode(state)
6058
5954
  const r1 = c.string.decode(state)
6059
5955
  const r2 = c.string.decode(state)
6060
5956
  const r3 = c.fixed32.decode(state)
@@ -6063,7 +5959,7 @@ const encoding143 = {
6063
5959
  const flags = c.uint.decode(state)
6064
5960
 
6065
5961
  return {
6066
- version: v,
5962
+ version: 0,
6067
5963
  id: null,
6068
5964
  name: r1,
6069
5965
  bio: r2,
@@ -6121,13 +6017,12 @@ const encoding144 = {
6121
6017
  }
6122
6018
  },
6123
6019
  decode(state) {
6124
- const start = state.start
6125
6020
  const v = c.uint.decode(state)
6126
- state.start = start
6127
6021
  switch (v) {
6128
6022
  case 0:
6129
6023
  case 1: {
6130
6024
  const decoded = encoding143.decode(state)
6025
+ decoded.version = v
6131
6026
  return decoded
6132
6027
  }
6133
6028
  default:
@@ -6176,11 +6071,10 @@ const encoding145 = {
6176
6071
  if (version >= 7 && m.memberId) c.fixed32.encode(state, m.memberId)
6177
6072
  },
6178
6073
  decode(state) {
6179
- const v = c.uint.decode(state)
6180
6074
  const flags = c.uint.decode(state)
6181
6075
 
6182
6076
  return {
6183
- version: v,
6077
+ version: 0,
6184
6078
  id: null,
6185
6079
  toolName: (flags & 1) !== 0 ? c.string.decode(state) : null,
6186
6080
  resourceKind: (flags & 2) !== 0 ? c.string.decode(state) : null,
@@ -6223,13 +6117,12 @@ const encoding146 = {
6223
6117
  }
6224
6118
  },
6225
6119
  decode(state) {
6226
- const start = state.start
6227
6120
  const v = c.uint.decode(state)
6228
- state.start = start
6229
6121
  switch (v) {
6230
6122
  case 0:
6231
6123
  case 1: {
6232
6124
  const decoded = encoding145.decode(state)
6125
+ decoded.version = v
6233
6126
  return decoded
6234
6127
  }
6235
6128
  default:
@@ -6274,14 +6167,13 @@ const encoding147 = {
6274
6167
  if (version >= 6 && m.rankedAt) c.uint.encode(state, m.rankedAt)
6275
6168
  },
6276
6169
  decode(state) {
6277
- const v = c.uint.decode(state)
6278
6170
  const r1 = c.string.decode(state)
6279
6171
  const r2 = c.string.decode(state)
6280
6172
  const r3 = c.uint.decode(state)
6281
6173
  const flags = c.uint.decode(state)
6282
6174
 
6283
6175
  return {
6284
- version: v,
6176
+ version: 0,
6285
6177
  id: null,
6286
6178
  agentId: r1,
6287
6179
  title: r2,
@@ -6324,13 +6216,12 @@ const encoding148 = {
6324
6216
  }
6325
6217
  },
6326
6218
  decode(state) {
6327
- const start = state.start
6328
6219
  const v = c.uint.decode(state)
6329
- state.start = start
6330
6220
  switch (v) {
6331
6221
  case 0:
6332
6222
  case 1: {
6333
6223
  const decoded = encoding147.decode(state)
6224
+ decoded.version = v
6334
6225
  return decoded
6335
6226
  }
6336
6227
  default:
@@ -6451,7 +6342,6 @@ const encoding149 = {
6451
6342
  if (version >= 7 && m.deviceSignature) c.buffer.encode(state, m.deviceSignature)
6452
6343
  },
6453
6344
  decode(state) {
6454
- const v = c.uint.decode(state)
6455
6345
  const r1 = c.string.decode(state)
6456
6346
  const r2 = c.uint.decode(state)
6457
6347
  const r3 = encoding38.decode(state)
@@ -6459,7 +6349,7 @@ const encoding149 = {
6459
6349
  const flags = c.uint.decode(state)
6460
6350
 
6461
6351
  return {
6462
- version: v,
6352
+ version: 0,
6463
6353
  id: null,
6464
6354
  name: r1,
6465
6355
  joinedAt: r2,
@@ -6516,13 +6406,12 @@ const encoding150 = {
6516
6406
  }
6517
6407
  },
6518
6408
  decode(state) {
6519
- const start = state.start
6520
6409
  const v = c.uint.decode(state)
6521
- state.start = start
6522
6410
  switch (v) {
6523
6411
  case 0:
6524
6412
  case 1: {
6525
6413
  const decoded = encoding149.decode(state)
6414
+ decoded.version = v
6526
6415
  return decoded
6527
6416
  }
6528
6417
  default:
@@ -6540,9 +6429,8 @@ const encoding151 = {
6540
6429
 
6541
6430
  },
6542
6431
  decode(state) {
6543
- const v = c.uint.decode(state)
6544
6432
  return {
6545
- version: v,
6433
+ version: 0,
6546
6434
  key: null
6547
6435
  }
6548
6436
  }
@@ -6575,13 +6463,12 @@ const encoding152 = {
6575
6463
  }
6576
6464
  },
6577
6465
  decode(state) {
6578
- const start = state.start
6579
6466
  const v = c.uint.decode(state)
6580
- state.start = start
6581
6467
  switch (v) {
6582
6468
  case 0:
6583
6469
  case 1: {
6584
6470
  const decoded = encoding151.decode(state)
6471
+ decoded.version = v
6585
6472
  return decoded
6586
6473
  }
6587
6474
  default:
@@ -6619,7 +6506,6 @@ const encoding153 = {
6619
6506
  if (m.deletedAt) c.uint.encode(state, m.deletedAt)
6620
6507
  },
6621
6508
  decode(state) {
6622
- const v = c.uint.decode(state)
6623
6509
  const r1 = c.string.decode(state)
6624
6510
  const r2 = c.string.decode(state)
6625
6511
  const r3 = c.string.decode(state)
@@ -6630,7 +6516,7 @@ const encoding153 = {
6630
6516
  const flags = c.uint.decode(state)
6631
6517
 
6632
6518
  return {
6633
- version: v,
6519
+ version: 0,
6634
6520
  id: null,
6635
6521
  chatId: r1,
6636
6522
  fileName: r2,
@@ -6671,13 +6557,12 @@ const encoding154 = {
6671
6557
  }
6672
6558
  },
6673
6559
  decode(state) {
6674
- const start = state.start
6675
6560
  const v = c.uint.decode(state)
6676
- state.start = start
6677
6561
  switch (v) {
6678
6562
  case 0:
6679
6563
  case 1: {
6680
6564
  const decoded = encoding153.decode(state)
6565
+ decoded.version = v
6681
6566
  return decoded
6682
6567
  }
6683
6568
  default:
@@ -6705,7 +6590,6 @@ const encoding155 = {
6705
6590
  c.uint.encode(state, m.createdAt)
6706
6591
  },
6707
6592
  decode(state) {
6708
- const v = c.uint.decode(state)
6709
6593
  const r1 = c.string.decode(state)
6710
6594
  const r2 = c.string.decode(state)
6711
6595
  const r3 = c.string.decode(state)
@@ -6714,7 +6598,7 @@ const encoding155 = {
6714
6598
  const r6 = c.uint.decode(state)
6715
6599
 
6716
6600
  return {
6717
- version: v,
6601
+ version: 0,
6718
6602
  id: null,
6719
6603
  knowledgeId: r1,
6720
6604
  sourceHash: r2,
@@ -6753,13 +6637,12 @@ const encoding156 = {
6753
6637
  }
6754
6638
  },
6755
6639
  decode(state) {
6756
- const start = state.start
6757
6640
  const v = c.uint.decode(state)
6758
- state.start = start
6759
6641
  switch (v) {
6760
6642
  case 0:
6761
6643
  case 1: {
6762
6644
  const decoded = encoding155.decode(state)
6645
+ decoded.version = v
6763
6646
  return decoded
6764
6647
  }
6765
6648
  default:
@@ -6797,7 +6680,6 @@ const encoding157 = {
6797
6680
  if (m.error) c.string.encode(state, m.error)
6798
6681
  },
6799
6682
  decode(state) {
6800
- const v = c.uint.decode(state)
6801
6683
  const r1 = c.string.decode(state)
6802
6684
  const r2 = c.string.decode(state)
6803
6685
  const r3 = encoding87.decode(state)
@@ -6808,7 +6690,7 @@ const encoding157 = {
6808
6690
  const flags = c.uint.decode(state)
6809
6691
 
6810
6692
  return {
6811
- version: v,
6693
+ version: 0,
6812
6694
  id: null,
6813
6695
  knowledgeId: r1,
6814
6696
  chatId: r2,
@@ -6849,13 +6731,12 @@ const encoding158 = {
6849
6731
  }
6850
6732
  },
6851
6733
  decode(state) {
6852
- const start = state.start
6853
6734
  const v = c.uint.decode(state)
6854
- state.start = start
6855
6735
  switch (v) {
6856
6736
  case 0:
6857
6737
  case 1: {
6858
6738
  const decoded = encoding157.decode(state)
6739
+ decoded.version = v
6859
6740
  return decoded
6860
6741
  }
6861
6742
  default:
@@ -6885,14 +6766,13 @@ const encoding159 = {
6885
6766
  if (version >= 3 && m.deletedAt) c.uint.encode(state, m.deletedAt)
6886
6767
  },
6887
6768
  decode(state) {
6888
- const v = c.uint.decode(state)
6889
6769
  const r2 = c.json.decode(state)
6890
6770
  const r3 = c.uint.decode(state)
6891
6771
  const r4 = c.uint.decode(state)
6892
6772
  const flags = c.uint.decode(state)
6893
6773
 
6894
6774
  return {
6895
- version: v,
6775
+ version: 0,
6896
6776
  agentId: null,
6897
6777
  toolName: null,
6898
6778
  settings: r2,
@@ -6930,13 +6810,12 @@ const encoding160 = {
6930
6810
  }
6931
6811
  },
6932
6812
  decode(state) {
6933
- const start = state.start
6934
6813
  const v = c.uint.decode(state)
6935
- state.start = start
6936
6814
  switch (v) {
6937
6815
  case 0:
6938
6816
  case 1: {
6939
6817
  const decoded = encoding159.decode(state)
6818
+ decoded.version = v
6940
6819
  return decoded
6941
6820
  }
6942
6821
  default:
@@ -6988,13 +6867,12 @@ const encoding161 = {
6988
6867
  c.uint.encode(state, m.seq)
6989
6868
  },
6990
6869
  decode(state) {
6991
- const v = c.uint.decode(state)
6992
6870
  const r1 = c.string.decode(state)
6993
6871
  const r2 = c.fixed32.decode(state)
6994
6872
  const flags = c.uint.decode(state)
6995
6873
 
6996
6874
  return {
6997
- version: v,
6875
+ version: 0,
6998
6876
  id: null,
6999
6877
  agentId: r1,
7000
6878
  originDeviceId: r2,
@@ -7038,13 +6916,12 @@ const encoding162 = {
7038
6916
  }
7039
6917
  },
7040
6918
  decode(state) {
7041
- const start = state.start
7042
6919
  const v = c.uint.decode(state)
7043
- state.start = start
7044
6920
  switch (v) {
7045
6921
  case 0:
7046
6922
  case 1: {
7047
6923
  const decoded = encoding161.decode(state)
6924
+ decoded.version = v
7048
6925
  return decoded
7049
6926
  }
7050
6927
  default:
@@ -7062,11 +6939,10 @@ const encoding163 = {
7062
6939
  c.uint.encode(state, m.count)
7063
6940
  },
7064
6941
  decode(state) {
7065
- const v = c.uint.decode(state)
7066
6942
  const r1 = c.uint.decode(state)
7067
6943
 
7068
6944
  return {
7069
- version: v,
6945
+ version: 0,
7070
6946
  agentId: null,
7071
6947
  count: r1
7072
6948
  }
@@ -7100,13 +6976,12 @@ const encoding164 = {
7100
6976
  }
7101
6977
  },
7102
6978
  decode(state) {
7103
- const start = state.start
7104
6979
  const v = c.uint.decode(state)
7105
- state.start = start
7106
6980
  switch (v) {
7107
6981
  case 0:
7108
6982
  case 1: {
7109
6983
  const decoded = encoding163.decode(state)
6984
+ decoded.version = v
7110
6985
  return decoded
7111
6986
  }
7112
6987
  default:
@@ -7132,14 +7007,13 @@ const encoding165 = {
7132
7007
  c.uint.encode(state, flags)
7133
7008
  },
7134
7009
  decode(state) {
7135
- const v = c.uint.decode(state)
7136
7010
  const r1 = c.uint.decode(state)
7137
7011
  const r2 = c.uint.decode(state)
7138
7012
  const r3 = c.fixed32.decode(state)
7139
7013
  const flags = state.start < state.end ? c.uint.decode(state) : 0
7140
7014
 
7141
7015
  return {
7142
- version: v,
7016
+ version: 0,
7143
7017
  writerKey: null,
7144
7018
  length: r1,
7145
7019
  clock: r2,
@@ -7176,13 +7050,12 @@ const encoding166 = {
7176
7050
  }
7177
7051
  },
7178
7052
  decode(state) {
7179
- const start = state.start
7180
7053
  const v = c.uint.decode(state)
7181
- state.start = start
7182
7054
  switch (v) {
7183
7055
  case 0:
7184
7056
  case 1: {
7185
7057
  const decoded = encoding165.decode(state)
7058
+ decoded.version = v
7186
7059
  return decoded
7187
7060
  }
7188
7061
  default:
@@ -7200,11 +7073,10 @@ const encoding167 = {
7200
7073
  c.buffer.encode(state, m.signature)
7201
7074
  },
7202
7075
  decode(state) {
7203
- const v = c.uint.decode(state)
7204
7076
  const r1 = c.buffer.decode(state)
7205
7077
 
7206
7078
  return {
7207
- version: v,
7079
+ version: 0,
7208
7080
  deviceId: null,
7209
7081
  signature: r1
7210
7082
  }
@@ -7238,13 +7110,12 @@ const encoding168 = {
7238
7110
  }
7239
7111
  },
7240
7112
  decode(state) {
7241
- const start = state.start
7242
7113
  const v = c.uint.decode(state)
7243
- state.start = start
7244
7114
  switch (v) {
7245
7115
  case 0:
7246
7116
  case 1: {
7247
7117
  const decoded = encoding167.decode(state)
7118
+ decoded.version = v
7248
7119
  return decoded
7249
7120
  }
7250
7121
  default:
@@ -7266,13 +7137,12 @@ const encoding169 = {
7266
7137
  c.uint.encode(state, m.updatedAt)
7267
7138
  },
7268
7139
  decode(state) {
7269
- const v = c.uint.decode(state)
7270
7140
  const r1 = c.string.decode(state)
7271
7141
  const r2 = c.uint.decode(state)
7272
7142
  const r3 = c.uint.decode(state)
7273
7143
 
7274
7144
  return {
7275
- version: v,
7145
+ version: 0,
7276
7146
  id: null,
7277
7147
  name: r1,
7278
7148
  joinedAt: r2,
@@ -7308,13 +7178,12 @@ const encoding170 = {
7308
7178
  }
7309
7179
  },
7310
7180
  decode(state) {
7311
- const start = state.start
7312
7181
  const v = c.uint.decode(state)
7313
- state.start = start
7314
7182
  switch (v) {
7315
7183
  case 0:
7316
7184
  case 1: {
7317
7185
  const decoded = encoding169.decode(state)
7186
+ decoded.version = v
7318
7187
  return decoded
7319
7188
  }
7320
7189
  default:
@@ -7346,14 +7215,13 @@ const encoding171 = {
7346
7215
  if (version >= 6 && m.rank) c.float64.encode(state, m.rank)
7347
7216
  },
7348
7217
  decode(state) {
7349
- const v = c.uint.decode(state)
7350
7218
  const r1 = c.string.decode(state)
7351
7219
  const r2 = c.uint.decode(state)
7352
7220
  const r3 = c.uint.decode(state)
7353
7221
  const flags = c.uint.decode(state)
7354
7222
 
7355
7223
  return {
7356
- version: v,
7224
+ version: 0,
7357
7225
  id: null,
7358
7226
  name: r1,
7359
7227
  createdAt: r2,
@@ -7391,13 +7259,12 @@ const encoding172 = {
7391
7259
  }
7392
7260
  },
7393
7261
  decode(state) {
7394
- const start = state.start
7395
7262
  const v = c.uint.decode(state)
7396
- state.start = start
7397
7263
  switch (v) {
7398
7264
  case 0:
7399
7265
  case 1: {
7400
7266
  const decoded = encoding171.decode(state)
7267
+ decoded.version = v
7401
7268
  return decoded
7402
7269
  }
7403
7270
  default:
@@ -7436,13 +7303,12 @@ const encoding173 = {
7436
7303
  if (version >= 7 && m.sharedAt) c.uint.encode(state, m.sharedAt)
7437
7304
  },
7438
7305
  decode(state) {
7439
- const v = c.uint.decode(state)
7440
7306
  const r1 = c.fixed32.decode(state)
7441
7307
  const r2 = c.uint.decode(state)
7442
7308
  const flags = c.uint.decode(state)
7443
7309
 
7444
7310
  return {
7445
- version: v,
7311
+ version: 0,
7446
7312
  meshKey: null,
7447
7313
  memberId: r1,
7448
7314
  joinedAt: r2,
@@ -7482,13 +7348,12 @@ const encoding174 = {
7482
7348
  }
7483
7349
  },
7484
7350
  decode(state) {
7485
- const start = state.start
7486
7351
  const v = c.uint.decode(state)
7487
- state.start = start
7488
7352
  switch (v) {
7489
7353
  case 0:
7490
7354
  case 1: {
7491
7355
  const decoded = encoding173.decode(state)
7356
+ decoded.version = v
7492
7357
  return decoded
7493
7358
  }
7494
7359
  default: