@qvac/core 1.0.0-rc.2 → 1.0.0-rc.3

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 (195) hide show
  1. package/CHANGELOG.md +158 -2
  2. package/dist-lib/index.d.ts +1 -0
  3. package/dist-lib/index.js +1 -0
  4. package/dist-lib/lib/api/chunk-delta.d.ts +7 -2
  5. package/dist-lib/lib/api/chunk-delta.js +89 -7
  6. package/dist-lib/lib/api/chunks.js +14 -8
  7. package/dist-lib/lib/api/config.d.ts +4 -1
  8. package/dist-lib/lib/api/config.js +45 -4
  9. package/dist-lib/lib/api/custom-models.js +3 -5
  10. package/dist-lib/lib/api/devices.js +3 -1
  11. package/dist-lib/lib/api/files.d.ts +1 -1
  12. package/dist-lib/lib/api/files.js +65 -8
  13. package/dist-lib/lib/api/instrument.js +12 -4
  14. package/dist-lib/lib/api/members.js +7 -13
  15. package/dist-lib/lib/api/mesh.d.ts +1 -3
  16. package/dist-lib/lib/api/mesh.js +2 -2
  17. package/dist-lib/lib/api/notifications.js +8 -4
  18. package/dist-lib/lib/api/projects.js +5 -1
  19. package/dist-lib/lib/api/rag.js +32 -19
  20. package/dist-lib/lib/api/served.js +2 -1
  21. package/dist-lib/lib/api/workspace.js +0 -1
  22. package/dist-lib/lib/assistant/harness.d.ts +8 -2
  23. package/dist-lib/lib/assistant/harness.js +17 -4
  24. package/dist-lib/lib/assistant/history.d.ts +1 -1
  25. package/dist-lib/lib/assistant/history.js +19 -13
  26. package/dist-lib/lib/assistant/message.d.ts +6 -1
  27. package/dist-lib/lib/assistant/message.js +22 -2
  28. package/dist-lib/lib/assistant/model-round.d.ts +5 -0
  29. package/dist-lib/lib/assistant/model-round.js +46 -18
  30. package/dist-lib/lib/assistant/pdf-budget.d.ts +10 -2
  31. package/dist-lib/lib/assistant/pdf-budget.js +10 -11
  32. package/dist-lib/lib/assistant/pdf-pages.d.ts +25 -0
  33. package/dist-lib/lib/assistant/pdf-pages.js +75 -0
  34. package/dist-lib/lib/assistant/round-host.js +5 -3
  35. package/dist-lib/lib/assistant-client.d.ts +2 -1
  36. package/dist-lib/lib/assistant-client.js +24 -6
  37. package/dist-lib/lib/assistant-tree.d.ts +2 -0
  38. package/dist-lib/lib/assistant-tree.js +8 -5
  39. package/dist-lib/lib/assistant.d.ts +20 -7
  40. package/dist-lib/lib/assistant.js +468 -240
  41. package/dist-lib/lib/client.js +10 -1
  42. package/dist-lib/lib/compaction.d.ts +3 -1
  43. package/dist-lib/lib/compaction.js +18 -4
  44. package/dist-lib/lib/constants.d.ts +3 -0
  45. package/dist-lib/lib/constants.js +3 -0
  46. package/dist-lib/lib/core/chat-activity.js +13 -16
  47. package/dist-lib/lib/core/chat-copy.js +1 -1
  48. package/dist-lib/lib/core/chat-fork.js +2 -1
  49. package/dist-lib/lib/core/chat-move.d.ts +4 -0
  50. package/dist-lib/lib/core/chat-move.js +42 -11
  51. package/dist-lib/lib/core/chat.d.ts +0 -1
  52. package/dist-lib/lib/core/chat.js +1 -1
  53. package/dist-lib/lib/core/chunk.d.ts +14 -3
  54. package/dist-lib/lib/core/chunk.js +112 -22
  55. package/dist-lib/lib/core/collections.d.ts +12 -1
  56. package/dist-lib/lib/core/collections.js +12 -1
  57. package/dist-lib/lib/core/config-value.d.ts +6 -0
  58. package/dist-lib/lib/core/config-value.js +14 -0
  59. package/dist-lib/lib/core/contract/activity.d.ts +3 -2
  60. package/dist-lib/lib/core/contract/activity.js +39 -21
  61. package/dist-lib/lib/core/contract/agent-join.js +15 -19
  62. package/dist-lib/lib/core/contract/agents.js +8 -7
  63. package/dist-lib/lib/core/contract/chat.d.ts +3 -0
  64. package/dist-lib/lib/core/contract/chat.js +12 -1
  65. package/dist-lib/lib/core/contract/chunks.js +16 -6
  66. package/dist-lib/lib/core/contract/devices.js +6 -4
  67. package/dist-lib/lib/core/contract/index.js +2 -1
  68. package/dist-lib/lib/core/contract/invites.js +12 -31
  69. package/dist-lib/lib/core/contract/joined-meshes.js +2 -1
  70. package/dist-lib/lib/core/contract/mesh-rules.js +4 -0
  71. package/dist-lib/lib/core/contract/model-requests.js +7 -6
  72. package/dist-lib/lib/core/contract/project-device-keys.js +15 -6
  73. package/dist-lib/lib/core/contract/project-host-keys.js +5 -4
  74. package/dist-lib/lib/core/contract/projects.js +12 -13
  75. package/dist-lib/lib/core/contract/public-seeds.js +5 -5
  76. package/dist-lib/lib/core/contract/roles.js +2 -1
  77. package/dist-lib/lib/core/contract/run-requests.d.ts +1 -1
  78. package/dist-lib/lib/core/contract/run-requests.js +19 -13
  79. package/dist-lib/lib/core/contract/shipped-rows.d.ts +2 -0
  80. package/dist-lib/lib/core/contract/shipped-rows.js +22 -0
  81. package/dist-lib/lib/core/contract/workspace.js +4 -10
  82. package/dist-lib/lib/core/contract/writers.js +20 -6
  83. package/dist-lib/lib/core/devices.d.ts +2 -1
  84. package/dist-lib/lib/core/devices.js +4 -2
  85. package/dist-lib/lib/core/document-attachment.d.ts +6 -3
  86. package/dist-lib/lib/core/document-attachment.js +10 -5
  87. package/dist-lib/lib/core/files/attachments.js +3 -3
  88. package/dist-lib/lib/core/files/index.d.ts +8 -5
  89. package/dist-lib/lib/core/files/index.js +109 -18
  90. package/dist-lib/lib/core/files/processing/index.d.ts +1 -1
  91. package/dist-lib/lib/core/files/processing/index.js +8 -2
  92. package/dist-lib/lib/core/files/processing/source.d.ts +1 -0
  93. package/dist-lib/lib/core/files/processing/source.js +3 -0
  94. package/dist-lib/lib/core/files/processing/state.d.ts +1 -0
  95. package/dist-lib/lib/core/files/processing/state.js +7 -0
  96. package/dist-lib/lib/core/files/rag/build.d.ts +1 -0
  97. package/dist-lib/lib/core/files/rag/build.js +14 -1
  98. package/dist-lib/lib/core/files/rag/index.d.ts +1 -1
  99. package/dist-lib/lib/core/files/rag/index.js +1 -1
  100. package/dist-lib/lib/core/files/rag/produce.js +1 -0
  101. package/dist-lib/lib/core/files/rag/retrieval/full-text.d.ts +2 -0
  102. package/dist-lib/lib/core/files/rag/retrieval/full-text.js +7 -1
  103. package/dist-lib/lib/core/first-event.d.ts +6 -0
  104. package/dist-lib/lib/core/first-event.js +13 -0
  105. package/dist-lib/lib/core/invite.d.ts +2 -2
  106. package/dist-lib/lib/core/invite.js +5 -4
  107. package/dist-lib/lib/core/local/index.d.ts +10 -1
  108. package/dist-lib/lib/core/local/index.js +105 -10
  109. package/dist-lib/lib/core/mesh.d.ts +15 -4
  110. package/dist-lib/lib/core/mesh.js +128 -57
  111. package/dist-lib/lib/core/migrations/chat-chunks.d.ts +4 -0
  112. package/dist-lib/lib/core/migrations/chat-chunks.js +47 -0
  113. package/dist-lib/lib/core/migrations/file-index.d.ts +1 -1
  114. package/dist-lib/lib/core/migrations/file-index.js +6 -2
  115. package/dist-lib/lib/core/migrations/index.d.ts +2 -1
  116. package/dist-lib/lib/core/migrations/index.js +66 -9
  117. package/dist-lib/lib/core/notification.js +96 -23
  118. package/dist-lib/lib/core/pdf/figure.d.ts +22 -0
  119. package/dist-lib/lib/core/pdf/figure.js +64 -0
  120. package/dist-lib/lib/core/pdf/rasterize.d.ts +10 -1
  121. package/dist-lib/lib/core/pdf/rasterize.js +72 -22
  122. package/dist-lib/lib/core/peer-duplex.js +57 -5
  123. package/dist-lib/lib/core/public-mesh.js +8 -2
  124. package/dist-lib/lib/core/run-requests.js +2 -3
  125. package/dist-lib/lib/core/senders.d.ts +7 -6
  126. package/dist-lib/lib/core/senders.js +23 -30
  127. package/dist-lib/lib/core/shared-agents.d.ts +1 -0
  128. package/dist-lib/lib/core/shared-agents.js +47 -19
  129. package/dist-lib/lib/core/sync/background.d.ts +3 -15
  130. package/dist-lib/lib/core/sync/background.js +25 -102
  131. package/dist-lib/lib/core/sync/devices.js +6 -3
  132. package/dist-lib/lib/core/sync/index.js +12 -2
  133. package/dist-lib/lib/core/sync-status.js +3 -3
  134. package/dist-lib/lib/core.d.ts +59 -10
  135. package/dist-lib/lib/core.js +706 -174
  136. package/dist-lib/lib/credential-pusher.d.ts +11 -7
  137. package/dist-lib/lib/credential-pusher.js +40 -8
  138. package/dist-lib/lib/device-tree.d.ts +18 -0
  139. package/dist-lib/lib/device-tree.js +32 -0
  140. package/dist-lib/lib/doctor/redact.js +1 -1
  141. package/dist-lib/lib/errors.d.ts +4 -0
  142. package/dist-lib/lib/errors.js +4 -0
  143. package/dist-lib/lib/fs-drive-bridge.d.ts +7 -0
  144. package/dist-lib/lib/fs-drive-bridge.js +308 -30
  145. package/dist-lib/lib/integrations/setup-routes.js +7 -5
  146. package/dist-lib/lib/knowledge-search.d.ts +1 -1
  147. package/dist-lib/lib/knowledge-search.js +5 -46
  148. package/dist-lib/lib/kv-cache-retention.d.ts +35 -0
  149. package/dist-lib/lib/kv-cache-retention.js +98 -0
  150. package/dist-lib/lib/latest-frame.d.ts +10 -0
  151. package/dist-lib/lib/latest-frame.js +48 -0
  152. package/dist-lib/lib/model-download.d.ts +6 -1
  153. package/dist-lib/lib/model-download.js +32 -17
  154. package/dist-lib/lib/oauth/resolve.js +13 -5
  155. package/dist-lib/lib/reconnecting-watch.js +19 -11
  156. package/dist-lib/lib/run-notices.d.ts +2 -0
  157. package/dist-lib/lib/run-notices.js +5 -0
  158. package/dist-lib/lib/run-replay.d.ts +13 -1
  159. package/dist-lib/lib/run-replay.js +58 -21
  160. package/dist-lib/schema/build.js +66 -57
  161. package/dist-lib/schema/content.js +2 -1
  162. package/dist-lib/schema/engine.js +37 -5
  163. package/dist-lib/schema/field-order.js +7 -1
  164. package/dist-lib/schema/indexes.d.ts +4 -0
  165. package/dist-lib/schema/indexes.js +18 -0
  166. package/dist-lib/schema/local.js +9 -2
  167. package/dist-lib/schema/qvac.js +112 -4
  168. package/dist-lib/spec/bind.js +3 -0
  169. package/dist-lib/spec/calls.js +1 -0
  170. package/dist-lib/spec/capabilities.d.ts +2 -0
  171. package/dist-lib/spec/hrpc/hrpc.json +13 -0
  172. package/dist-lib/spec/hrpc/index.js +15 -3
  173. package/dist-lib/spec/hrpc/messages.js +1475 -1392
  174. package/dist-lib/spec/hyperschema/index.js +1475 -1392
  175. package/dist-lib/spec/hyperschema/schema.json +86 -1
  176. package/dist-lib/spec/hyperschema/types.d.ts +21 -1
  177. package/dist-lib/spec/local/hyperdb/messages.js +110 -54
  178. package/dist-lib/spec/local/hyperschema/index.js +56 -28
  179. package/dist-lib/spec/local/hyperschema/schema.json +55 -20
  180. package/dist-lib/spec/local/hyperschema/types.d.ts +8 -1
  181. package/dist-lib/spec/mesh/hyperdb/db.json +255 -51
  182. package/dist-lib/spec/mesh/hyperdb/index.js +1063 -404
  183. package/dist-lib/spec/mesh/hyperdb/messages.js +1647 -1214
  184. package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +62 -56
  185. package/dist-lib/spec/mesh/hyperdispatch/index.js +156 -139
  186. package/dist-lib/spec/mesh/hyperdispatch/messages.js +787 -629
  187. package/dist-lib/spec/mesh/hyperschema/index.js +787 -629
  188. package/dist-lib/spec/mesh/hyperschema/schema.json +283 -174
  189. package/dist-lib/spec/mesh/hyperschema/types.d.ts +29 -1
  190. package/package.json +23 -17
  191. package/worker/assistant-sidecar.mjs +3 -0
  192. package/dist-lib/lib/core/files/processing/settle.d.ts +0 -13
  193. package/dist-lib/lib/core/files/processing/settle.js +0 -86
  194. package/dist-lib/lib/core/migrations/device-indexes.d.ts +0 -2
  195. package/dist-lib/lib/core/migrations/device-indexes.js +0 -7
@@ -51,6 +51,11 @@
51
51
  "name": "value",
52
52
  "type": "json",
53
53
  "version": 1
54
+ },
55
+ {
56
+ "name": "falsyValue",
57
+ "type": "string",
58
+ "version": 1
54
59
  }
55
60
  ]
56
61
  },
@@ -1852,6 +1857,36 @@
1852
1857
  }
1853
1858
  ]
1854
1859
  },
1860
+ {
1861
+ "name": "custom-model-report-entry",
1862
+ "namespace": "assistant",
1863
+ "compact": false,
1864
+ "flagsPosition": 2,
1865
+ "fields": [
1866
+ {
1867
+ "name": "name",
1868
+ "required": true,
1869
+ "type": "string",
1870
+ "version": 1
1871
+ },
1872
+ {
1873
+ "name": "label",
1874
+ "required": true,
1875
+ "type": "string",
1876
+ "version": 1
1877
+ },
1878
+ {
1879
+ "name": "taskType",
1880
+ "type": "string",
1881
+ "version": 1
1882
+ },
1883
+ {
1884
+ "name": "expectedSize",
1885
+ "type": "uint",
1886
+ "version": 1
1887
+ }
1888
+ ]
1889
+ },
1855
1890
  {
1856
1891
  "name": "device",
1857
1892
  "namespace": "assistant",
@@ -1953,6 +1988,12 @@
1953
1988
  "name": "memberId",
1954
1989
  "type": "fixed32",
1955
1990
  "version": 1
1991
+ },
1992
+ {
1993
+ "name": "customModels",
1994
+ "array": true,
1995
+ "type": "@assistant/custom-model-report-entry",
1996
+ "version": 1
1956
1997
  }
1957
1998
  ]
1958
1999
  },
@@ -2085,6 +2126,12 @@
2085
2126
  "required": true,
2086
2127
  "type": "string",
2087
2128
  "version": 1
2129
+ },
2130
+ {
2131
+ "name": "customModels",
2132
+ "array": true,
2133
+ "type": "@assistant/custom-model-report-entry",
2134
+ "version": 1
2088
2135
  }
2089
2136
  ]
2090
2137
  },
@@ -2606,7 +2653,7 @@
2606
2653
  "name": "chunk-content-tool-result-v1",
2607
2654
  "namespace": "assistant",
2608
2655
  "compact": false,
2609
- "flagsPosition": 1,
2656
+ "flagsPosition": -1,
2610
2657
  "fields": [
2611
2658
  {
2612
2659
  "name": "name",
@@ -2616,6 +2663,7 @@
2616
2663
  },
2617
2664
  {
2618
2665
  "name": "result",
2666
+ "required": true,
2619
2667
  "type": "json",
2620
2668
  "version": 1
2621
2669
  }
@@ -4227,6 +4275,11 @@
4227
4275
  "required": true,
4228
4276
  "type": "string",
4229
4277
  "version": 1
4278
+ },
4279
+ {
4280
+ "name": "immediate",
4281
+ "type": "bool",
4282
+ "version": 1
4230
4283
  }
4231
4284
  ]
4232
4285
  },
@@ -4340,6 +4393,11 @@
4340
4393
  "name": "projectFilesNotReady",
4341
4394
  "type": "uint",
4342
4395
  "version": 1
4396
+ },
4397
+ {
4398
+ "name": "chatFilesIndexingHere",
4399
+ "type": "uint",
4400
+ "version": 1
4343
4401
  }
4344
4402
  ]
4345
4403
  },
@@ -10129,6 +10187,33 @@
10129
10187
  "version": 1
10130
10188
  }
10131
10189
  ]
10190
+ },
10191
+ {
10192
+ "name": "files-ready-request",
10193
+ "namespace": "assistant",
10194
+ "compact": false,
10195
+ "flagsPosition": -1,
10196
+ "fields": [
10197
+ {
10198
+ "name": "meshId",
10199
+ "required": true,
10200
+ "type": "string",
10201
+ "version": 1
10202
+ },
10203
+ {
10204
+ "name": "chatId",
10205
+ "required": true,
10206
+ "type": "string",
10207
+ "version": 1
10208
+ },
10209
+ {
10210
+ "name": "fileIds",
10211
+ "required": true,
10212
+ "array": true,
10213
+ "type": "string",
10214
+ "version": 1
10215
+ }
10216
+ ]
10132
10217
  }
10133
10218
  ]
10134
10219
  }
@@ -16,6 +16,7 @@ export interface AssistantConfigKey {
16
16
 
17
17
  export interface AssistantConfigValue {
18
18
  value?: unknown | null
19
+ falsyValue?: string | null
19
20
  }
20
21
 
21
22
  export interface AssistantConfigSetRequest {
@@ -385,6 +386,13 @@ export interface AssistantToolReportEntry {
385
386
  writeRootsRequired?: boolean
386
387
  }
387
388
 
389
+ export interface AssistantCustomModelReportEntry {
390
+ name: string
391
+ label: string
392
+ taskType?: string | null
393
+ expectedSize?: number
394
+ }
395
+
388
396
  export interface AssistantDevice {
389
397
  id: Buffer
390
398
  name: string
@@ -403,6 +411,7 @@ export interface AssistantDevice {
403
411
  readySkillNames?: string[] | null
404
412
  toolCatalog?: AssistantToolReportEntry[] | null
405
413
  memberId?: Buffer | null
414
+ customModels?: AssistantCustomModelReportEntry[] | null
406
415
  }
407
416
 
408
417
  export interface AssistantDeviceList {
@@ -434,6 +443,7 @@ export interface AssistantSaveDeviceCapabilitiesRequest {
434
443
  readySkillNames?: string[] | null
435
444
  toolCatalog?: AssistantToolReportEntry[] | null
436
445
  meshId: string
446
+ customModels?: AssistantCustomModelReportEntry[] | null
437
447
  }
438
448
 
439
449
  export interface AssistantDeviceId {
@@ -527,7 +537,7 @@ export type AssistantChunkContentToolCall = (AssistantChunkContentToolCallV1 & {
527
537
 
528
538
  export interface AssistantChunkContentToolResultV1 {
529
539
  name: string
530
- result?: unknown | null
540
+ result: unknown
531
541
  }
532
542
 
533
543
  export type AssistantChunkContentToolResult = (AssistantChunkContentToolResultV1 & { version?: number })
@@ -863,6 +873,7 @@ export interface AssistantRagSearchRequest {
863
873
  mode?: AssistantRagSearchMode | null
864
874
  attachmentIds?: string[] | null
865
875
  meshId: string
876
+ immediate?: boolean
866
877
  }
867
878
 
868
879
  export interface AssistantVectorHit {
@@ -886,6 +897,7 @@ export interface AssistantRagSearchResponse {
886
897
  pendingFiles?: string[] | null
887
898
  chatFilesNotReady?: number
888
899
  projectFilesNotReady?: number
900
+ chatFilesIndexingHere?: number
889
901
  }
890
902
 
891
903
  export interface AssistantUploadKnowledgeRequest {
@@ -2182,6 +2194,12 @@ export interface AssistantHostRunLogReleaseRequest {
2182
2194
  generation: string
2183
2195
  }
2184
2196
 
2197
+ export interface AssistantFilesReadyRequest {
2198
+ meshId: string
2199
+ chatId: string
2200
+ fileIds: string[]
2201
+ }
2202
+
2185
2203
  export interface SchemaTypes {
2186
2204
  "@assistant/empty": AssistantEmpty
2187
2205
  "@assistant/ok-response": AssistantOkResponse
@@ -2243,6 +2261,7 @@ export interface SchemaTypes {
2243
2261
  "@assistant/move-chat-request": AssistantMoveChatRequest
2244
2262
  "@assistant/move-chat-group-request": AssistantMoveChatGroupRequest
2245
2263
  "@assistant/tool-report-entry": AssistantToolReportEntry
2264
+ "@assistant/custom-model-report-entry": AssistantCustomModelReportEntry
2246
2265
  "@assistant/device": AssistantDevice
2247
2266
  "@assistant/device-list": AssistantDeviceList
2248
2267
  "@assistant/member": AssistantMember
@@ -2536,4 +2555,5 @@ export interface SchemaTypes {
2536
2555
  "@assistant/host-run-log-begin-response": AssistantHostRunLogBeginResponse
2537
2556
  "@assistant/host-run-log-append-request": AssistantHostRunLogAppendRequest
2538
2557
  "@assistant/host-run-log-release-request": AssistantHostRunLogReleaseRequest
2558
+ "@assistant/files-ready-request": AssistantFilesReadyRequest
2539
2559
  }
@@ -1,12 +1,12 @@
1
1
  // This file is autogenerated by the hyperschema compiler
2
- // Schema Version: 12
2
+ // Schema Version: 13
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 = 12
9
+ const VERSION = 13
10
10
 
11
11
  // eslint-disable-next-line no-unused-vars
12
12
  let version = VERSION
@@ -36,17 +36,19 @@ const encoding0 = {
36
36
  const encoding1 = {
37
37
  preencode(state, m) {
38
38
  c.string.preencode(state, m.key)
39
- state.end++ // max flag is 1 so always one byte
39
+ state.end++ // max flag is 2 so always one byte
40
40
 
41
41
  if (m.value) c.json.preencode(state, m.value)
42
+ if (version >= 12 && m.falsyValue) c.string.preencode(state, m.falsyValue)
42
43
  },
43
44
  encode(state, m) {
44
- const flags = m.value ? 1 : 0
45
+ const flags = (m.value ? 1 : 0) | ((version >= 12 && m.falsyValue) ? 2 : 0)
45
46
 
46
47
  c.string.encode(state, m.key)
47
48
  c.uint.encode(state, flags)
48
49
 
49
50
  if (m.value) c.json.encode(state, m.value)
51
+ if (version >= 12 && m.falsyValue) c.string.encode(state, m.falsyValue)
50
52
  },
51
53
  decode(state) {
52
54
  const r0 = c.string.decode(state)
@@ -55,7 +57,8 @@ const encoding1 = {
55
57
  return {
56
58
  version: 0,
57
59
  key: r0,
58
- value: (flags & 1) !== 0 ? c.json.decode(state) : null
60
+ value: (flags & 1) !== 0 ? c.json.decode(state) : null,
61
+ falsyValue: (version >= 12 && (flags & 2) !== 0) ? c.string.decode(state) : null
59
62
  }
60
63
  }
61
64
  }
@@ -1061,23 +1064,24 @@ const encoding25 = {
1061
1064
  preencode(state, m) {
1062
1065
  c.buffer.preencode(state, m.key)
1063
1066
  c.buffer.preencode(state, m.seed)
1064
- state.end++ // max flag is 4 so always one byte
1067
+ state.end++ // max flag is 8 so always one byte
1065
1068
 
1066
1069
  if (version >= 4 && m.writerSeed) c.string.preencode(state, m.writerSeed)
1067
- if (version >= 12 && m.role) c.string.preencode(state, m.role)
1070
+ if (version >= 13 && m.role) c.string.preencode(state, m.role)
1068
1071
  },
1069
1072
  encode(state, m) {
1070
1073
  const flags =
1071
1074
  ((version >= 4 && m.creator) ? 1 : 0) |
1072
1075
  ((version >= 4 && m.writerSeed) ? 2 : 0) |
1073
- ((version >= 12 && m.role) ? 4 : 0)
1076
+ ((version >= 12 && m.compute) ? 4 : 0) |
1077
+ ((version >= 13 && m.role) ? 8 : 0)
1074
1078
 
1075
1079
  c.buffer.encode(state, m.key)
1076
1080
  c.buffer.encode(state, m.seed)
1077
1081
  c.uint.encode(state, flags)
1078
1082
 
1079
1083
  if (version >= 4 && m.writerSeed) c.string.encode(state, m.writerSeed)
1080
- if (version >= 12 && m.role) c.string.encode(state, m.role)
1084
+ if (version >= 13 && m.role) c.string.encode(state, m.role)
1081
1085
  },
1082
1086
  decode(state) {
1083
1087
  const r0 = c.buffer.decode(state)
@@ -1090,7 +1094,8 @@ const encoding25 = {
1090
1094
  seed: r1,
1091
1095
  creator: (version >= 4 && (flags & 1) !== 0),
1092
1096
  writerSeed: (version >= 4 && (flags & 2) !== 0) ? c.string.decode(state) : null,
1093
- role: (version >= 12 && (flags & 4) !== 0) ? c.string.decode(state) : null
1097
+ compute: (version >= 12 && (flags & 4) !== 0),
1098
+ role: (version >= 13 && (flags & 8) !== 0) ? c.string.decode(state) : null
1094
1099
  }
1095
1100
  }
1096
1101
  }
@@ -1219,8 +1224,13 @@ const encoding29 = {
1219
1224
  ((version >= 5 && m.migratedAt) ? 8 : 0) |
1220
1225
  ((version >= 5 && m.compute) ? 16 : 0) |
1221
1226
  ((version >= 7 && m.awaitingAdmission) ? 32 : 0) |
1222
- ((version >= 12 && m.role) ? 64 : 0) |
1223
- ((version >= 12 && m.workspaceKey) ? 128 : 0)
1227
+ ((version >= 12 && m.bootKey) ? 64 : 0) |
1228
+ ((version >= 12 && m.bootLength) ? 128 : 0) |
1229
+ ((version >= 13 && m.role) ? 256 : 0) |
1230
+ ((version >= 13 && m.workspaceKey) ? 512 : 0) |
1231
+ ((version >= 13 && m.joinedAt) ? 1024 : 0) |
1232
+ ((version >= 13 && m.kicked) ? 2048 : 0) |
1233
+ ((version >= 13 && m.retiredUnder) ? 4096 : 0)
1224
1234
 
1225
1235
  c.fixed32.preencode(state, m.key)
1226
1236
  c.fixed32.preencode(state, m.seed)
@@ -1229,8 +1239,12 @@ const encoding29 = {
1229
1239
  if (version >= 5 && m.writerSeed) c.string.preencode(state, m.writerSeed)
1230
1240
  if (version >= 5 && m.leftAt) c.uint.preencode(state, m.leftAt)
1231
1241
  if (version >= 5 && m.migratedAt) c.uint.preencode(state, m.migratedAt)
1232
- if (version >= 12 && m.role) c.string.preencode(state, m.role)
1233
- if (version >= 12 && m.workspaceKey) c.fixed32.preencode(state, m.workspaceKey)
1242
+ if (version >= 12 && m.bootKey) c.fixed32.preencode(state, m.bootKey)
1243
+ if (version >= 12 && m.bootLength) c.uint.preencode(state, m.bootLength)
1244
+ if (version >= 13 && m.role) c.string.preencode(state, m.role)
1245
+ if (version >= 13 && m.workspaceKey) c.fixed32.preencode(state, m.workspaceKey)
1246
+ if (version >= 13 && m.joinedAt) c.uint.preencode(state, m.joinedAt)
1247
+ if (version >= 13 && m.retiredUnder) c.fixed32.preencode(state, m.retiredUnder)
1234
1248
  },
1235
1249
  encode(state, m) {
1236
1250
  const flags =
@@ -1240,8 +1254,13 @@ const encoding29 = {
1240
1254
  ((version >= 5 && m.migratedAt) ? 8 : 0) |
1241
1255
  ((version >= 5 && m.compute) ? 16 : 0) |
1242
1256
  ((version >= 7 && m.awaitingAdmission) ? 32 : 0) |
1243
- ((version >= 12 && m.role) ? 64 : 0) |
1244
- ((version >= 12 && m.workspaceKey) ? 128 : 0)
1257
+ ((version >= 12 && m.bootKey) ? 64 : 0) |
1258
+ ((version >= 12 && m.bootLength) ? 128 : 0) |
1259
+ ((version >= 13 && m.role) ? 256 : 0) |
1260
+ ((version >= 13 && m.workspaceKey) ? 512 : 0) |
1261
+ ((version >= 13 && m.joinedAt) ? 1024 : 0) |
1262
+ ((version >= 13 && m.kicked) ? 2048 : 0) |
1263
+ ((version >= 13 && m.retiredUnder) ? 4096 : 0)
1245
1264
 
1246
1265
  c.fixed32.encode(state, m.key)
1247
1266
  c.fixed32.encode(state, m.seed)
@@ -1250,8 +1269,12 @@ const encoding29 = {
1250
1269
  if (version >= 5 && m.writerSeed) c.string.encode(state, m.writerSeed)
1251
1270
  if (version >= 5 && m.leftAt) c.uint.encode(state, m.leftAt)
1252
1271
  if (version >= 5 && m.migratedAt) c.uint.encode(state, m.migratedAt)
1253
- if (version >= 12 && m.role) c.string.encode(state, m.role)
1254
- if (version >= 12 && m.workspaceKey) c.fixed32.encode(state, m.workspaceKey)
1272
+ if (version >= 12 && m.bootKey) c.fixed32.encode(state, m.bootKey)
1273
+ if (version >= 12 && m.bootLength) c.uint.encode(state, m.bootLength)
1274
+ if (version >= 13 && m.role) c.string.encode(state, m.role)
1275
+ if (version >= 13 && m.workspaceKey) c.fixed32.encode(state, m.workspaceKey)
1276
+ if (version >= 13 && m.joinedAt) c.uint.encode(state, m.joinedAt)
1277
+ if (version >= 13 && m.retiredUnder) c.fixed32.encode(state, m.retiredUnder)
1255
1278
  },
1256
1279
  decode(state) {
1257
1280
  const r0 = c.fixed32.decode(state)
@@ -1268,8 +1291,13 @@ const encoding29 = {
1268
1291
  migratedAt: (version >= 5 && (flags & 8) !== 0) ? c.uint.decode(state) : 0,
1269
1292
  compute: (version >= 5 && (flags & 16) !== 0),
1270
1293
  awaitingAdmission: (version >= 7 && (flags & 32) !== 0),
1271
- role: (version >= 12 && (flags & 64) !== 0) ? c.string.decode(state) : null,
1272
- workspaceKey: (version >= 12 && (flags & 128) !== 0) ? c.fixed32.decode(state) : null
1294
+ bootKey: (version >= 12 && (flags & 64) !== 0) ? c.fixed32.decode(state) : null,
1295
+ bootLength: (version >= 12 && (flags & 128) !== 0) ? c.uint.decode(state) : 0,
1296
+ role: (version >= 13 && (flags & 256) !== 0) ? c.string.decode(state) : null,
1297
+ workspaceKey: (version >= 13 && (flags & 512) !== 0) ? c.fixed32.decode(state) : null,
1298
+ joinedAt: (version >= 13 && (flags & 1024) !== 0) ? c.uint.decode(state) : 0,
1299
+ kicked: (version >= 13 && (flags & 2048) !== 0),
1300
+ retiredUnder: (version >= 13 && (flags & 4096) !== 0) ? c.fixed32.decode(state) : null
1273
1301
  }
1274
1302
  }
1275
1303
  }
@@ -1825,15 +1853,15 @@ const encoding43 = {
1825
1853
  c.fixed32.preencode(state, m.key)
1826
1854
  state.end++ // max flag is 1 so always one byte
1827
1855
 
1828
- if (version >= 12 && m.cores) encoding43_1.preencode(state, m.cores)
1856
+ if (version >= 13 && m.cores) encoding43_1.preencode(state, m.cores)
1829
1857
  },
1830
1858
  encode(state, m) {
1831
- const flags = (version >= 12 && m.cores) ? 1 : 0
1859
+ const flags = (version >= 13 && m.cores) ? 1 : 0
1832
1860
 
1833
1861
  c.fixed32.encode(state, m.key)
1834
1862
  c.uint.encode(state, flags)
1835
1863
 
1836
- if (version >= 12 && m.cores) encoding43_1.encode(state, m.cores)
1864
+ if (version >= 13 && m.cores) encoding43_1.encode(state, m.cores)
1837
1865
  },
1838
1866
  decode(state) {
1839
1867
  const r0 = c.fixed32.decode(state)
@@ -1842,7 +1870,7 @@ const encoding43 = {
1842
1870
  return {
1843
1871
  version: 0,
1844
1872
  key: r0,
1845
- cores: (version >= 12 && (flags & 1) !== 0) ? encoding43_1.decode(state) : null
1873
+ cores: (version >= 13 && (flags & 1) !== 0) ? encoding43_1.decode(state) : null
1846
1874
  }
1847
1875
  }
1848
1876
  }
@@ -1962,20 +1990,20 @@ const encoding47 = {
1962
1990
  c.string.preencode(state, m.runId)
1963
1991
  state.end++ // max flag is 1 so always one byte
1964
1992
 
1965
- if (version >= 12 && m.generation) c.string.preencode(state, m.generation)
1993
+ if (version >= 13 && m.generation) c.string.preencode(state, m.generation)
1966
1994
  c.uint.preencode(state, m.nextSeq)
1967
1995
  c.uint.preencode(state, m.length)
1968
1996
  c.fixed32.preencode(state, m.digestKey)
1969
1997
  c.uint.preencode(state, m.updatedAt)
1970
1998
  },
1971
1999
  encode(state, m) {
1972
- const flags = (version >= 12 && m.generation) ? 1 : 0
2000
+ const flags = (version >= 13 && m.generation) ? 1 : 0
1973
2001
 
1974
2002
  c.fixed32.encode(state, m.meshKey)
1975
2003
  c.string.encode(state, m.runId)
1976
2004
  c.uint.encode(state, flags)
1977
2005
 
1978
- if (version >= 12 && m.generation) c.string.encode(state, m.generation)
2006
+ if (version >= 13 && m.generation) c.string.encode(state, m.generation)
1979
2007
  c.uint.encode(state, m.nextSeq)
1980
2008
  c.uint.encode(state, m.length)
1981
2009
  c.fixed32.encode(state, m.digestKey)
@@ -1990,7 +2018,7 @@ const encoding47 = {
1990
2018
  version: 0,
1991
2019
  meshKey: r0,
1992
2020
  runId: r1,
1993
- generation: (version >= 12 && (flags & 1) !== 0) ? c.string.decode(state) : null,
2021
+ generation: (version >= 13 && (flags & 1) !== 0) ? c.string.decode(state) : null,
1994
2022
  nextSeq: c.uint.decode(state),
1995
2023
  length: c.uint.decode(state),
1996
2024
  digestKey: c.fixed32.decode(state),
@@ -2114,16 +2142,18 @@ const encoding50 = {
2114
2142
  // @local/config-v1/hyperdb#0
2115
2143
  const encoding51 = {
2116
2144
  preencode(state, m) {
2117
- state.end++ // max flag is 1 so always one byte
2145
+ state.end++ // max flag is 2 so always one byte
2118
2146
 
2119
2147
  if (m.value) c.json.preencode(state, m.value)
2148
+ if (version >= 12 && m.falsyValue) c.string.preencode(state, m.falsyValue)
2120
2149
  },
2121
2150
  encode(state, m) {
2122
- const flags = m.value ? 1 : 0
2151
+ const flags = (m.value ? 1 : 0) | ((version >= 12 && m.falsyValue) ? 2 : 0)
2123
2152
 
2124
2153
  c.uint.encode(state, flags)
2125
2154
 
2126
2155
  if (m.value) c.json.encode(state, m.value)
2156
+ if (version >= 12 && m.falsyValue) c.string.encode(state, m.falsyValue)
2127
2157
  },
2128
2158
  decode(state) {
2129
2159
  const flags = c.uint.decode(state)
@@ -2131,7 +2161,8 @@ const encoding51 = {
2131
2161
  return {
2132
2162
  version: 0,
2133
2163
  key: null,
2134
- value: (flags & 1) !== 0 ? c.json.decode(state) : null
2164
+ value: (flags & 1) !== 0 ? c.json.decode(state) : null,
2165
+ falsyValue: (version >= 12 && (flags & 2) !== 0) ? c.string.decode(state) : null
2135
2166
  }
2136
2167
  }
2137
2168
  }
@@ -3004,22 +3035,23 @@ const encoding72 = {
3004
3035
  const encoding73 = {
3005
3036
  preencode(state, m) {
3006
3037
  c.buffer.preencode(state, m.seed)
3007
- state.end++ // max flag is 4 so always one byte
3038
+ state.end++ // max flag is 8 so always one byte
3008
3039
 
3009
3040
  if (version >= 4 && m.writerSeed) c.string.preencode(state, m.writerSeed)
3010
- if (version >= 12 && m.role) c.string.preencode(state, m.role)
3041
+ if (version >= 13 && m.role) c.string.preencode(state, m.role)
3011
3042
  },
3012
3043
  encode(state, m) {
3013
3044
  const flags =
3014
3045
  ((version >= 4 && m.creator) ? 1 : 0) |
3015
3046
  ((version >= 4 && m.writerSeed) ? 2 : 0) |
3016
- ((version >= 12 && m.role) ? 4 : 0)
3047
+ ((version >= 12 && m.compute) ? 4 : 0) |
3048
+ ((version >= 13 && m.role) ? 8 : 0)
3017
3049
 
3018
3050
  c.buffer.encode(state, m.seed)
3019
3051
  c.uint.encode(state, flags)
3020
3052
 
3021
3053
  if (version >= 4 && m.writerSeed) c.string.encode(state, m.writerSeed)
3022
- if (version >= 12 && m.role) c.string.encode(state, m.role)
3054
+ if (version >= 13 && m.role) c.string.encode(state, m.role)
3023
3055
  },
3024
3056
  decode(state) {
3025
3057
  const r1 = c.buffer.decode(state)
@@ -3031,7 +3063,8 @@ const encoding73 = {
3031
3063
  seed: r1,
3032
3064
  creator: (version >= 4 && (flags & 1) !== 0),
3033
3065
  writerSeed: (version >= 4 && (flags & 2) !== 0) ? c.string.decode(state) : null,
3034
- role: (version >= 12 && (flags & 4) !== 0) ? c.string.decode(state) : null
3066
+ compute: (version >= 12 && (flags & 4) !== 0),
3067
+ role: (version >= 13 && (flags & 8) !== 0) ? c.string.decode(state) : null
3035
3068
  }
3036
3069
  }
3037
3070
  }
@@ -3157,8 +3190,13 @@ const encoding77 = {
3157
3190
  ((version >= 5 && m.migratedAt) ? 8 : 0) |
3158
3191
  ((version >= 5 && m.compute) ? 16 : 0) |
3159
3192
  ((version >= 7 && m.awaitingAdmission) ? 32 : 0) |
3160
- ((version >= 12 && m.role) ? 64 : 0) |
3161
- ((version >= 12 && m.workspaceKey) ? 128 : 0)
3193
+ ((version >= 12 && m.bootKey) ? 64 : 0) |
3194
+ ((version >= 12 && m.bootLength) ? 128 : 0) |
3195
+ ((version >= 13 && m.role) ? 256 : 0) |
3196
+ ((version >= 13 && m.workspaceKey) ? 512 : 0) |
3197
+ ((version >= 13 && m.joinedAt) ? 1024 : 0) |
3198
+ ((version >= 13 && m.kicked) ? 2048 : 0) |
3199
+ ((version >= 13 && m.retiredUnder) ? 4096 : 0)
3162
3200
 
3163
3201
  c.fixed32.preencode(state, m.seed)
3164
3202
  c.uint.preencode(state, flags)
@@ -3166,8 +3204,12 @@ const encoding77 = {
3166
3204
  if (version >= 5 && m.writerSeed) c.string.preencode(state, m.writerSeed)
3167
3205
  if (version >= 5 && m.leftAt) c.uint.preencode(state, m.leftAt)
3168
3206
  if (version >= 5 && m.migratedAt) c.uint.preencode(state, m.migratedAt)
3169
- if (version >= 12 && m.role) c.string.preencode(state, m.role)
3170
- if (version >= 12 && m.workspaceKey) c.fixed32.preencode(state, m.workspaceKey)
3207
+ if (version >= 12 && m.bootKey) c.fixed32.preencode(state, m.bootKey)
3208
+ if (version >= 12 && m.bootLength) c.uint.preencode(state, m.bootLength)
3209
+ if (version >= 13 && m.role) c.string.preencode(state, m.role)
3210
+ if (version >= 13 && m.workspaceKey) c.fixed32.preencode(state, m.workspaceKey)
3211
+ if (version >= 13 && m.joinedAt) c.uint.preencode(state, m.joinedAt)
3212
+ if (version >= 13 && m.retiredUnder) c.fixed32.preencode(state, m.retiredUnder)
3171
3213
  },
3172
3214
  encode(state, m) {
3173
3215
  const flags =
@@ -3177,8 +3219,13 @@ const encoding77 = {
3177
3219
  ((version >= 5 && m.migratedAt) ? 8 : 0) |
3178
3220
  ((version >= 5 && m.compute) ? 16 : 0) |
3179
3221
  ((version >= 7 && m.awaitingAdmission) ? 32 : 0) |
3180
- ((version >= 12 && m.role) ? 64 : 0) |
3181
- ((version >= 12 && m.workspaceKey) ? 128 : 0)
3222
+ ((version >= 12 && m.bootKey) ? 64 : 0) |
3223
+ ((version >= 12 && m.bootLength) ? 128 : 0) |
3224
+ ((version >= 13 && m.role) ? 256 : 0) |
3225
+ ((version >= 13 && m.workspaceKey) ? 512 : 0) |
3226
+ ((version >= 13 && m.joinedAt) ? 1024 : 0) |
3227
+ ((version >= 13 && m.kicked) ? 2048 : 0) |
3228
+ ((version >= 13 && m.retiredUnder) ? 4096 : 0)
3182
3229
 
3183
3230
  c.fixed32.encode(state, m.seed)
3184
3231
  c.uint.encode(state, flags)
@@ -3186,8 +3233,12 @@ const encoding77 = {
3186
3233
  if (version >= 5 && m.writerSeed) c.string.encode(state, m.writerSeed)
3187
3234
  if (version >= 5 && m.leftAt) c.uint.encode(state, m.leftAt)
3188
3235
  if (version >= 5 && m.migratedAt) c.uint.encode(state, m.migratedAt)
3189
- if (version >= 12 && m.role) c.string.encode(state, m.role)
3190
- if (version >= 12 && m.workspaceKey) c.fixed32.encode(state, m.workspaceKey)
3236
+ if (version >= 12 && m.bootKey) c.fixed32.encode(state, m.bootKey)
3237
+ if (version >= 12 && m.bootLength) c.uint.encode(state, m.bootLength)
3238
+ if (version >= 13 && m.role) c.string.encode(state, m.role)
3239
+ if (version >= 13 && m.workspaceKey) c.fixed32.encode(state, m.workspaceKey)
3240
+ if (version >= 13 && m.joinedAt) c.uint.encode(state, m.joinedAt)
3241
+ if (version >= 13 && m.retiredUnder) c.fixed32.encode(state, m.retiredUnder)
3191
3242
  },
3192
3243
  decode(state) {
3193
3244
  const r1 = c.fixed32.decode(state)
@@ -3203,8 +3254,13 @@ const encoding77 = {
3203
3254
  migratedAt: (version >= 5 && (flags & 8) !== 0) ? c.uint.decode(state) : 0,
3204
3255
  compute: (version >= 5 && (flags & 16) !== 0),
3205
3256
  awaitingAdmission: (version >= 7 && (flags & 32) !== 0),
3206
- role: (version >= 12 && (flags & 64) !== 0) ? c.string.decode(state) : null,
3207
- workspaceKey: (version >= 12 && (flags & 128) !== 0) ? c.fixed32.decode(state) : null
3257
+ bootKey: (version >= 12 && (flags & 64) !== 0) ? c.fixed32.decode(state) : null,
3258
+ bootLength: (version >= 12 && (flags & 128) !== 0) ? c.uint.decode(state) : 0,
3259
+ role: (version >= 13 && (flags & 256) !== 0) ? c.string.decode(state) : null,
3260
+ workspaceKey: (version >= 13 && (flags & 512) !== 0) ? c.fixed32.decode(state) : null,
3261
+ joinedAt: (version >= 13 && (flags & 1024) !== 0) ? c.uint.decode(state) : 0,
3262
+ kicked: (version >= 13 && (flags & 2048) !== 0),
3263
+ retiredUnder: (version >= 13 && (flags & 4096) !== 0) ? c.fixed32.decode(state) : null
3208
3264
  }
3209
3265
  }
3210
3266
  }
@@ -3729,14 +3785,14 @@ const encoding91 = {
3729
3785
  preencode(state, m) {
3730
3786
  state.end++ // max flag is 1 so always one byte
3731
3787
 
3732
- if (version >= 12 && m.cores) encoding91_1.preencode(state, m.cores)
3788
+ if (version >= 13 && m.cores) encoding91_1.preencode(state, m.cores)
3733
3789
  },
3734
3790
  encode(state, m) {
3735
- const flags = (version >= 12 && m.cores) ? 1 : 0
3791
+ const flags = (version >= 13 && m.cores) ? 1 : 0
3736
3792
 
3737
3793
  c.uint.encode(state, flags)
3738
3794
 
3739
- if (version >= 12 && m.cores) encoding91_1.encode(state, m.cores)
3795
+ if (version >= 13 && m.cores) encoding91_1.encode(state, m.cores)
3740
3796
  },
3741
3797
  decode(state) {
3742
3798
  const flags = c.uint.decode(state)
@@ -3744,7 +3800,7 @@ const encoding91 = {
3744
3800
  return {
3745
3801
  version: 0,
3746
3802
  key: null,
3747
- cores: (version >= 12 && (flags & 1) !== 0) ? encoding91_1.decode(state) : null
3803
+ cores: (version >= 13 && (flags & 1) !== 0) ? encoding91_1.decode(state) : null
3748
3804
  }
3749
3805
  }
3750
3806
  }
@@ -3859,18 +3915,18 @@ const encoding95 = {
3859
3915
  preencode(state, m) {
3860
3916
  state.end++ // max flag is 1 so always one byte
3861
3917
 
3862
- if (version >= 12 && m.generation) c.string.preencode(state, m.generation)
3918
+ if (version >= 13 && m.generation) c.string.preencode(state, m.generation)
3863
3919
  c.uint.preencode(state, m.nextSeq)
3864
3920
  c.uint.preencode(state, m.length)
3865
3921
  c.fixed32.preencode(state, m.digestKey)
3866
3922
  c.uint.preencode(state, m.updatedAt)
3867
3923
  },
3868
3924
  encode(state, m) {
3869
- const flags = (version >= 12 && m.generation) ? 1 : 0
3925
+ const flags = (version >= 13 && m.generation) ? 1 : 0
3870
3926
 
3871
3927
  c.uint.encode(state, flags)
3872
3928
 
3873
- if (version >= 12 && m.generation) c.string.encode(state, m.generation)
3929
+ if (version >= 13 && m.generation) c.string.encode(state, m.generation)
3874
3930
  c.uint.encode(state, m.nextSeq)
3875
3931
  c.uint.encode(state, m.length)
3876
3932
  c.fixed32.encode(state, m.digestKey)
@@ -3883,7 +3939,7 @@ const encoding95 = {
3883
3939
  version: 0,
3884
3940
  meshKey: null,
3885
3941
  runId: null,
3886
- generation: (version >= 12 && (flags & 1) !== 0) ? c.string.decode(state) : null,
3942
+ generation: (version >= 13 && (flags & 1) !== 0) ? c.string.decode(state) : null,
3887
3943
  nextSeq: c.uint.decode(state),
3888
3944
  length: c.uint.decode(state),
3889
3945
  digestKey: c.fixed32.decode(state),