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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (509) hide show
  1. package/CHANGELOG.md +852 -1
  2. package/README.md +40 -81
  3. package/dist-lib/index.d.ts +0 -1
  4. package/dist-lib/index.js +0 -1
  5. package/dist-lib/lib/api/agent-folders.d.ts +22 -0
  6. package/dist-lib/lib/api/agent-folders.js +115 -0
  7. package/dist-lib/lib/api/agents.d.ts +19 -2
  8. package/dist-lib/lib/api/agents.js +121 -24
  9. package/dist-lib/lib/api/app-config.d.ts +4 -1
  10. package/dist-lib/lib/api/app-config.js +17 -6
  11. package/dist-lib/lib/api/attachments.js +3 -2
  12. package/dist-lib/lib/api/chat-move.d.ts +4 -0
  13. package/dist-lib/lib/api/chat-move.js +7 -0
  14. package/dist-lib/lib/api/chat.d.ts +13 -2
  15. package/dist-lib/lib/api/chat.js +114 -9
  16. package/dist-lib/lib/api/chunk-delta.d.ts +7 -0
  17. package/dist-lib/lib/api/chunk-delta.js +33 -0
  18. package/dist-lib/lib/api/chunks.d.ts +17 -2
  19. package/dist-lib/lib/api/chunks.js +64 -13
  20. package/dist-lib/lib/api/config.d.ts +2 -1
  21. package/dist-lib/lib/api/config.js +3 -2
  22. package/dist-lib/lib/api/current-mesh.d.ts +13 -5
  23. package/dist-lib/lib/api/current-mesh.js +15 -11
  24. package/dist-lib/lib/api/custom-models.d.ts +7 -1
  25. package/dist-lib/lib/api/custom-models.js +10 -8
  26. package/dist-lib/lib/api/device-routes.d.ts +9 -0
  27. package/dist-lib/lib/api/device-routes.js +123 -0
  28. package/dist-lib/lib/api/devices.d.ts +3 -2
  29. package/dist-lib/lib/api/devices.js +20 -10
  30. package/dist-lib/lib/api/diagnostics.d.ts +2 -1
  31. package/dist-lib/lib/api/diagnostics.js +2 -2
  32. package/dist-lib/lib/api/execution.d.ts +12 -1
  33. package/dist-lib/lib/api/execution.js +44 -14
  34. package/dist-lib/lib/api/host-run-log.d.ts +2 -41
  35. package/dist-lib/lib/api/host-run-log.js +35 -83
  36. package/dist-lib/lib/api/index.d.ts +28 -6
  37. package/dist-lib/lib/api/index.js +101 -33
  38. package/dist-lib/lib/api/instrument.d.ts +2 -2
  39. package/dist-lib/lib/api/instrument.js +12 -44
  40. package/dist-lib/lib/api/knowledge.d.ts +4 -1
  41. package/dist-lib/lib/api/knowledge.js +25 -7
  42. package/dist-lib/lib/api/local-files.d.ts +5 -1
  43. package/dist-lib/lib/api/local-files.js +9 -5
  44. package/dist-lib/lib/api/logs.js +3 -3
  45. package/dist-lib/lib/api/members.d.ts +10 -1
  46. package/dist-lib/lib/api/members.js +64 -17
  47. package/dist-lib/lib/api/mesh.d.ts +12 -2
  48. package/dist-lib/lib/api/mesh.js +10 -6
  49. package/dist-lib/lib/api/model-download.d.ts +2 -1
  50. package/dist-lib/lib/api/model-download.js +2 -2
  51. package/dist-lib/lib/api/network.d.ts +10 -2
  52. package/dist-lib/lib/api/network.js +8 -2
  53. package/dist-lib/lib/api/notifications.d.ts +3 -1
  54. package/dist-lib/lib/api/notifications.js +6 -5
  55. package/dist-lib/lib/api/projects.d.ts +20 -0
  56. package/dist-lib/lib/api/projects.js +165 -0
  57. package/dist-lib/lib/api/rag.d.ts +0 -1
  58. package/dist-lib/lib/api/rag.js +47 -23
  59. package/dist-lib/lib/api/served.d.ts +17 -0
  60. package/dist-lib/lib/api/served.js +47 -0
  61. package/dist-lib/lib/api/sync.d.ts +2 -1
  62. package/dist-lib/lib/api/sync.js +2 -2
  63. package/dist-lib/lib/api/tool-activity.d.ts +2 -1
  64. package/dist-lib/lib/api/tool-activity.js +4 -3
  65. package/dist-lib/lib/api/tool-configs.d.ts +2 -1
  66. package/dist-lib/lib/api/tool-configs.js +6 -9
  67. package/dist-lib/lib/api/upload-frames.d.ts +0 -1
  68. package/dist-lib/lib/api/upload-frames.js +0 -1
  69. package/dist-lib/lib/api/watchable.d.ts +3 -2
  70. package/dist-lib/lib/api/watchable.js +2 -3
  71. package/dist-lib/lib/api/workspace.d.ts +5 -0
  72. package/dist-lib/lib/api/workspace.js +48 -0
  73. package/dist-lib/lib/assistant/fake-models.d.ts +20 -0
  74. package/dist-lib/lib/assistant/fake-models.js +112 -0
  75. package/dist-lib/lib/assistant/harness.d.ts +29 -29
  76. package/dist-lib/lib/assistant/harness.js +34 -6
  77. package/dist-lib/lib/assistant/history.d.ts +30 -17
  78. package/dist-lib/lib/assistant/history.js +168 -82
  79. package/dist-lib/lib/assistant/host-run-log.d.ts +6 -1
  80. package/dist-lib/lib/assistant/host-run-log.js +24 -36
  81. package/dist-lib/lib/assistant/message.d.ts +21 -0
  82. package/dist-lib/lib/assistant/message.js +43 -0
  83. package/dist-lib/lib/assistant/model-round.d.ts +95 -0
  84. package/dist-lib/lib/assistant/model-round.js +591 -0
  85. package/dist-lib/lib/assistant/pdf-budget.d.ts +3 -0
  86. package/dist-lib/lib/assistant/pdf-budget.js +13 -0
  87. package/dist-lib/lib/assistant/round-host.d.ts +42 -0
  88. package/dist-lib/lib/assistant/round-host.js +239 -0
  89. package/dist-lib/lib/assistant/skill-encode.d.ts +2 -1
  90. package/dist-lib/lib/assistant/skill-encode.js +2 -1
  91. package/dist-lib/lib/assistant/video-budget.d.ts +13 -0
  92. package/dist-lib/lib/assistant/video-budget.js +29 -0
  93. package/dist-lib/lib/assistant-client.d.ts +2 -0
  94. package/dist-lib/lib/assistant-client.js +4 -3
  95. package/dist-lib/lib/assistant-tree.d.ts +8 -3
  96. package/dist-lib/lib/assistant-tree.js +58 -18
  97. package/dist-lib/lib/assistant.d.ts +76 -20
  98. package/dist-lib/lib/assistant.js +1659 -1070
  99. package/dist-lib/lib/audio-format.js +1 -1
  100. package/dist-lib/lib/chat-suggestion.d.ts +3 -0
  101. package/dist-lib/lib/chat-suggestion.js +47 -0
  102. package/dist-lib/lib/client.d.ts +2 -2
  103. package/dist-lib/lib/constants.d.ts +7 -0
  104. package/dist-lib/lib/constants.js +7 -0
  105. package/dist-lib/lib/core/agent-copies.d.ts +9 -0
  106. package/dist-lib/lib/core/agent-copies.js +40 -0
  107. package/dist-lib/lib/core/agent-hosting.d.ts +25 -0
  108. package/dist-lib/lib/core/agent-hosting.js +71 -0
  109. package/dist-lib/lib/core/agent.d.ts +9 -1
  110. package/dist-lib/lib/core/agent.js +45 -19
  111. package/dist-lib/lib/core/archived-mesh.d.ts +11 -6
  112. package/dist-lib/lib/core/archived-mesh.js +77 -58
  113. package/dist-lib/lib/core/async-iterable.js +1 -1
  114. package/dist-lib/lib/core/blind-peers.d.ts +1 -0
  115. package/dist-lib/lib/core/blind-peers.js +1 -0
  116. package/dist-lib/lib/core/chat-activity.d.ts +1 -1
  117. package/dist-lib/lib/core/chat-activity.js +36 -22
  118. package/dist-lib/lib/core/chat-copy.d.ts +42 -0
  119. package/dist-lib/lib/core/chat-copy.js +395 -0
  120. package/dist-lib/lib/core/chat-fork.d.ts +16 -0
  121. package/dist-lib/lib/core/chat-fork.js +245 -0
  122. package/dist-lib/lib/core/chat-group.js +8 -7
  123. package/dist-lib/lib/core/chat-move.d.ts +71 -0
  124. package/dist-lib/lib/core/chat-move.js +567 -0
  125. package/dist-lib/lib/core/chat-order.d.ts +2 -1
  126. package/dist-lib/lib/core/chat-order.js +19 -4
  127. package/dist-lib/lib/core/chat-project.d.ts +2 -0
  128. package/dist-lib/lib/core/chat-project.js +15 -0
  129. package/dist-lib/lib/core/chat-read.d.ts +4 -0
  130. package/dist-lib/lib/core/chat-read.js +49 -0
  131. package/dist-lib/lib/core/chat-search.js +14 -12
  132. package/dist-lib/lib/core/chat.d.ts +34 -4
  133. package/dist-lib/lib/core/chat.js +122 -39
  134. package/dist-lib/lib/core/chunk.d.ts +21 -4
  135. package/dist-lib/lib/core/chunk.js +138 -23
  136. package/dist-lib/lib/core/collections.d.ts +28 -0
  137. package/dist-lib/lib/core/collections.js +28 -0
  138. package/dist-lib/lib/core/contract/agent-join.d.ts +10 -0
  139. package/dist-lib/lib/core/contract/agent-join.js +108 -0
  140. package/dist-lib/lib/core/contract/agents.d.ts +5 -0
  141. package/dist-lib/lib/core/contract/agents.js +141 -3
  142. package/dist-lib/lib/core/contract/chat.d.ts +1 -0
  143. package/dist-lib/lib/core/contract/chat.js +42 -3
  144. package/dist-lib/lib/core/contract/chunks.d.ts +7 -0
  145. package/dist-lib/lib/core/contract/chunks.js +112 -35
  146. package/dist-lib/lib/core/contract/index.d.ts +2 -3
  147. package/dist-lib/lib/core/contract/index.js +35 -11
  148. package/dist-lib/lib/core/contract/indexing.d.ts +1 -0
  149. package/dist-lib/lib/core/contract/indexing.js +51 -7
  150. package/dist-lib/lib/core/contract/invites.d.ts +3 -14
  151. package/dist-lib/lib/core/contract/invites.js +18 -9
  152. package/dist-lib/lib/core/contract/joined-meshes.js +2 -1
  153. package/dist-lib/lib/core/contract/knowledge.d.ts +1 -0
  154. package/dist-lib/lib/core/contract/knowledge.js +57 -6
  155. package/dist-lib/lib/core/contract/members.d.ts +3 -1
  156. package/dist-lib/lib/core/contract/members.js +34 -4
  157. package/dist-lib/lib/core/contract/mesh-kind.d.ts +3 -3
  158. package/dist-lib/lib/core/contract/mesh-kind.js +20 -16
  159. package/dist-lib/lib/core/contract/mesh-name.d.ts +3 -0
  160. package/dist-lib/lib/core/contract/mesh-name.js +31 -0
  161. package/dist-lib/lib/core/contract/mesh-rules.d.ts +8 -0
  162. package/dist-lib/lib/core/contract/mesh-rules.js +31 -0
  163. package/dist-lib/lib/core/contract/mesh-seeds.d.ts +2 -0
  164. package/dist-lib/lib/core/contract/mesh-seeds.js +26 -0
  165. package/dist-lib/lib/core/contract/model-requests.d.ts +26 -0
  166. package/dist-lib/lib/core/contract/model-requests.js +279 -0
  167. package/dist-lib/lib/core/contract/oldest-version.d.ts +9 -0
  168. package/dist-lib/lib/core/contract/oldest-version.js +20 -0
  169. package/dist-lib/lib/core/contract/open-join.d.ts +2 -0
  170. package/dist-lib/lib/core/contract/open-join.js +77 -0
  171. package/dist-lib/lib/core/contract/project-device-keys.d.ts +7 -0
  172. package/dist-lib/lib/core/contract/project-device-keys.js +29 -0
  173. package/dist-lib/lib/core/contract/project-host-keys.d.ts +7 -0
  174. package/dist-lib/lib/core/contract/project-host-keys.js +40 -0
  175. package/dist-lib/lib/core/contract/project-order.d.ts +2 -0
  176. package/dist-lib/lib/core/contract/project-order.js +25 -0
  177. package/dist-lib/lib/core/contract/projects.d.ts +21 -0
  178. package/dist-lib/lib/core/contract/projects.js +328 -0
  179. package/dist-lib/lib/core/contract/public-mesh.d.ts +3 -0
  180. package/dist-lib/lib/core/contract/public-mesh.js +31 -0
  181. package/dist-lib/lib/core/contract/public-seeds.d.ts +9 -0
  182. package/dist-lib/lib/core/contract/public-seeds.js +43 -0
  183. package/dist-lib/lib/core/contract/roles.d.ts +10 -0
  184. package/dist-lib/lib/core/contract/roles.js +120 -0
  185. package/dist-lib/lib/core/contract/run-requests.d.ts +10 -0
  186. package/dist-lib/lib/core/contract/run-requests.js +75 -0
  187. package/dist-lib/lib/core/contract/seed-defaults.d.ts +3 -1
  188. package/dist-lib/lib/core/contract/seed-defaults.js +17 -4
  189. package/dist-lib/lib/core/contract/skill-secrets.d.ts +3 -0
  190. package/dist-lib/lib/core/contract/skill-secrets.js +32 -0
  191. package/dist-lib/lib/core/contract/tool-activity.js +12 -1
  192. package/dist-lib/lib/core/contract/tool-configs.js +2 -1
  193. package/dist-lib/lib/core/contract/types.d.ts +2 -2
  194. package/dist-lib/lib/core/contract/workspace.d.ts +31 -0
  195. package/dist-lib/lib/core/contract/workspace.js +317 -0
  196. package/dist-lib/lib/core/contract/writers.js +82 -12
  197. package/dist-lib/lib/core/departures.d.ts +16 -5
  198. package/dist-lib/lib/core/departures.js +79 -6
  199. package/dist-lib/lib/core/device-control.d.ts +21 -0
  200. package/dist-lib/lib/core/device-control.js +91 -0
  201. package/dist-lib/lib/core/device-seal.d.ts +4 -0
  202. package/dist-lib/lib/core/device-seal.js +22 -0
  203. package/dist-lib/lib/core/devices.js +1 -1
  204. package/dist-lib/lib/core/document-attachment.d.ts +7 -0
  205. package/dist-lib/lib/core/document-attachment.js +9 -0
  206. package/dist-lib/lib/core/files/attachments.js +5 -4
  207. package/dist-lib/lib/core/files/index.d.ts +21 -11
  208. package/dist-lib/lib/core/files/index.js +114 -28
  209. package/dist-lib/lib/core/files/knowledge.d.ts +10 -1
  210. package/dist-lib/lib/core/files/knowledge.js +77 -5
  211. package/dist-lib/lib/core/files/preview/index.js +6 -2
  212. package/dist-lib/lib/core/files/processing/claims.d.ts +7 -0
  213. package/dist-lib/lib/core/files/processing/claims.js +33 -7
  214. package/dist-lib/lib/core/files/processing/document.d.ts +8 -0
  215. package/dist-lib/lib/core/files/processing/document.js +26 -2
  216. package/dist-lib/lib/core/files/processing/index.d.ts +7 -2
  217. package/dist-lib/lib/core/files/processing/index.js +91 -71
  218. package/dist-lib/lib/core/files/processing/protocol.d.ts +7 -1
  219. package/dist-lib/lib/core/files/processing/protocol.js +14 -3
  220. package/dist-lib/lib/core/files/processing/source.d.ts +3 -0
  221. package/dist-lib/lib/core/files/processing/source.js +9 -4
  222. package/dist-lib/lib/core/files/processing/state.d.ts +4 -1
  223. package/dist-lib/lib/core/files/processing/state.js +2 -1
  224. package/dist-lib/lib/core/files/rag/build.d.ts +4 -1
  225. package/dist-lib/lib/core/files/rag/build.js +18 -7
  226. package/dist-lib/lib/core/files/rag/failure.d.ts +20 -0
  227. package/dist-lib/lib/core/files/rag/failure.js +57 -0
  228. package/dist-lib/lib/core/files/rag/index.d.ts +12 -1
  229. package/dist-lib/lib/core/files/rag/index.js +29 -7
  230. package/dist-lib/lib/core/files/rag/joined-index.d.ts +6 -0
  231. package/dist-lib/lib/core/files/rag/joined-index.js +35 -0
  232. package/dist-lib/lib/core/files/rag/limits.d.ts +1 -0
  233. package/dist-lib/lib/core/files/rag/limits.js +1 -0
  234. package/dist-lib/lib/core/files/rag/load.js +6 -3
  235. package/dist-lib/lib/core/files/rag/policy.d.ts +10 -1
  236. package/dist-lib/lib/core/files/rag/policy.js +23 -2
  237. package/dist-lib/lib/core/files/rag/produce.d.ts +1 -1
  238. package/dist-lib/lib/core/files/rag/produce.js +30 -18
  239. package/dist-lib/lib/core/files/rag/retrieval/full-text.js +1 -1
  240. package/dist-lib/lib/core/files/rag/similarity.d.ts +2 -2
  241. package/dist-lib/lib/core/files/rag/similarity.js +2 -3
  242. package/dist-lib/lib/core/files/records/chunks.js +22 -1
  243. package/dist-lib/lib/core/files/records/index.d.ts +1 -1
  244. package/dist-lib/lib/core/files/records/index.js +1 -1
  245. package/dist-lib/lib/core/files/records/knowledge.d.ts +11 -1
  246. package/dist-lib/lib/core/files/records/knowledge.js +40 -3
  247. package/dist-lib/lib/core/files/records/purge.js +13 -8
  248. package/dist-lib/lib/core/files/records/reclaim.js +20 -48
  249. package/dist-lib/lib/core/files/records/routing.d.ts +1 -1
  250. package/dist-lib/lib/core/files/records/routing.js +6 -2
  251. package/dist-lib/lib/core/files/records/source.js +3 -5
  252. package/dist-lib/lib/core/files/records/sweep.d.ts +3 -0
  253. package/dist-lib/lib/core/files/records/sweep.js +9 -3
  254. package/dist-lib/lib/core/files/store/blob.d.ts +2 -0
  255. package/dist-lib/lib/core/files/store/blob.js +2 -2
  256. package/dist-lib/lib/core/files/store/index.d.ts +3 -1
  257. package/dist-lib/lib/core/files/store/index.js +4 -1
  258. package/dist-lib/lib/core/files/store/reference.d.ts +3 -0
  259. package/dist-lib/lib/core/files/store/reference.js +12 -2
  260. package/dist-lib/lib/core/files/store/sweep.js +3 -1
  261. package/dist-lib/lib/core/files/upload.d.ts +5 -1
  262. package/dist-lib/lib/core/files/upload.js +53 -14
  263. package/dist-lib/lib/core/fs-drives.d.ts +6 -3
  264. package/dist-lib/lib/core/fs-drives.js +30 -18
  265. package/dist-lib/lib/core/id.d.ts +1 -0
  266. package/dist-lib/lib/core/id.js +3 -0
  267. package/dist-lib/lib/core/identity.d.ts +3 -1
  268. package/dist-lib/lib/core/identity.js +25 -4
  269. package/dist-lib/lib/core/invite.d.ts +4 -0
  270. package/dist-lib/lib/core/invite.js +19 -6
  271. package/dist-lib/lib/core/local/files.d.ts +2 -1
  272. package/dist-lib/lib/core/local/files.js +5 -7
  273. package/dist-lib/lib/core/local/index.d.ts +76 -6
  274. package/dist-lib/lib/core/local/index.js +209 -19
  275. package/dist-lib/lib/core/local/run-logs.d.ts +38 -0
  276. package/dist-lib/lib/core/local/run-logs.js +132 -0
  277. package/dist-lib/lib/core/member-key.d.ts +7 -0
  278. package/dist-lib/lib/core/member-key.js +24 -0
  279. package/dist-lib/lib/core/membership.d.ts +3 -14
  280. package/dist-lib/lib/core/membership.js +3 -96
  281. package/dist-lib/lib/core/mesh.d.ts +94 -28
  282. package/dist-lib/lib/core/mesh.js +527 -144
  283. package/dist-lib/lib/core/migrations/agent-tools-scope.d.ts +2 -0
  284. package/dist-lib/lib/core/migrations/agent-tools-scope.js +24 -0
  285. package/dist-lib/lib/core/migrations/file-index.js +2 -4
  286. package/dist-lib/lib/core/migrations/index.js +6 -2
  287. package/dist-lib/lib/core/model-requests.d.ts +13 -0
  288. package/dist-lib/lib/core/model-requests.js +65 -0
  289. package/dist-lib/lib/core/next-frame.js +2 -1
  290. package/dist-lib/lib/core/notification.js +4 -2
  291. package/dist-lib/lib/core/pdf/rasterize.d.ts +2 -2
  292. package/dist-lib/lib/core/pdf/rasterize.js +5 -6
  293. package/dist-lib/lib/core/peer-duplex.d.ts +34 -0
  294. package/dist-lib/lib/core/{harness-loan.js → peer-duplex.js} +47 -40
  295. package/dist-lib/lib/core/project-keys.d.ts +13 -0
  296. package/dist-lib/lib/core/project-keys.js +56 -0
  297. package/dist-lib/lib/core/prompt-history.js +4 -4
  298. package/dist-lib/lib/core/protocol-pairing.d.ts +11 -0
  299. package/dist-lib/lib/core/protocol-pairing.js +22 -0
  300. package/dist-lib/lib/core/public-mesh.d.ts +26 -0
  301. package/dist-lib/lib/core/public-mesh.js +88 -0
  302. package/dist-lib/lib/core/purge.d.ts +3 -0
  303. package/dist-lib/lib/core/purge.js +7 -0
  304. package/dist-lib/lib/core/run-driver.d.ts +17 -0
  305. package/dist-lib/lib/core/run-driver.js +20 -0
  306. package/dist-lib/lib/core/run-requests.d.ts +11 -0
  307. package/dist-lib/lib/core/run-requests.js +59 -0
  308. package/dist-lib/lib/core/send.d.ts +2 -0
  309. package/dist-lib/lib/core/send.js +17 -4
  310. package/dist-lib/lib/core/senders.d.ts +18 -0
  311. package/dist-lib/lib/core/senders.js +52 -0
  312. package/dist-lib/lib/core/shared-agents.d.ts +39 -0
  313. package/dist-lib/lib/core/shared-agents.js +255 -0
  314. package/dist-lib/lib/core/skill-secrets.d.ts +10 -16
  315. package/dist-lib/lib/core/skill-secrets.js +90 -72
  316. package/dist-lib/lib/core/sync/background.d.ts +47 -0
  317. package/dist-lib/lib/core/sync/background.js +162 -0
  318. package/dist-lib/lib/core/sync/changed.d.ts +20 -0
  319. package/dist-lib/lib/core/sync/changed.js +7 -0
  320. package/dist-lib/lib/core/sync/devices.js +1 -1
  321. package/dist-lib/lib/core/sync/files.d.ts +1 -0
  322. package/dist-lib/lib/core/sync/files.js +50 -72
  323. package/dist-lib/lib/core/sync/index.d.ts +1 -1
  324. package/dist-lib/lib/core/sync/index.js +154 -81
  325. package/dist-lib/lib/core/sync/view-updates.d.ts +33 -0
  326. package/dist-lib/lib/core/sync/view-updates.js +133 -0
  327. package/dist-lib/lib/core/system-info.d.ts +2 -2
  328. package/dist-lib/lib/core/system-info.js +10 -11
  329. package/dist-lib/lib/core/tool-configs.d.ts +5 -3
  330. package/dist-lib/lib/core/tool-configs.js +11 -11
  331. package/dist-lib/lib/core/transcript-visibility.d.ts +5 -5
  332. package/dist-lib/lib/core/transcript-visibility.js +27 -31
  333. package/dist-lib/lib/core/upgrade-agents.d.ts +11 -0
  334. package/dist-lib/lib/core/upgrade-agents.js +78 -0
  335. package/dist-lib/lib/core/video/attachment.d.ts +1 -0
  336. package/dist-lib/lib/core/video/attachment.js +7 -0
  337. package/dist-lib/lib/core/video/digest.d.ts +16 -0
  338. package/dist-lib/lib/core/video/digest.js +57 -0
  339. package/dist-lib/lib/core/video/frames.d.ts +32 -0
  340. package/dist-lib/lib/core/video/frames.js +224 -0
  341. package/dist-lib/lib/core/workspace-upgrade.d.ts +22 -0
  342. package/dist-lib/lib/core/workspace-upgrade.js +50 -0
  343. package/dist-lib/lib/core.d.ts +249 -79
  344. package/dist-lib/lib/core.js +3369 -1460
  345. package/dist-lib/lib/credential-pusher.d.ts +6 -0
  346. package/dist-lib/lib/credential-pusher.js +77 -60
  347. package/dist-lib/lib/custom-model-pusher.d.ts +2 -4
  348. package/dist-lib/lib/custom-model-task.d.ts +2 -1
  349. package/dist-lib/lib/custom-model-task.js +2 -2
  350. package/dist-lib/lib/diagnostics.d.ts +7 -0
  351. package/dist-lib/lib/diagnostics.js +22 -0
  352. package/dist-lib/lib/doctor/checks.d.ts +15 -0
  353. package/dist-lib/lib/doctor/checks.js +272 -0
  354. package/dist-lib/lib/doctor/redact.d.ts +4 -0
  355. package/dist-lib/lib/doctor/redact.js +31 -0
  356. package/dist-lib/lib/doctor/render.d.ts +8 -0
  357. package/dist-lib/lib/doctor/render.js +83 -0
  358. package/dist-lib/lib/doctor/tree.d.ts +5 -0
  359. package/dist-lib/lib/doctor/tree.js +167 -0
  360. package/dist-lib/lib/downloads-allowed-pusher.d.ts +8 -0
  361. package/dist-lib/lib/downloads-allowed-pusher.js +37 -0
  362. package/dist-lib/lib/errors.d.ts +790 -0
  363. package/dist-lib/lib/errors.js +724 -0
  364. package/dist-lib/lib/fs-drive-bridge.d.ts +1 -1
  365. package/dist-lib/lib/fs-drive-bridge.js +4 -1
  366. package/dist-lib/lib/guards.d.ts +1 -0
  367. package/dist-lib/lib/guards.js +4 -0
  368. package/dist-lib/lib/inference-calls.d.ts +1 -2
  369. package/dist-lib/lib/inference-calls.js +2 -10
  370. package/dist-lib/lib/knowledge-search.js +13 -18
  371. package/dist-lib/lib/kv-cache-reclaim.d.ts +2 -1
  372. package/dist-lib/lib/kv-cache-reclaim.js +30 -0
  373. package/dist-lib/lib/log.d.ts +7 -6
  374. package/dist-lib/lib/log.js +14 -7
  375. package/dist-lib/lib/logger-type.d.ts +2 -5
  376. package/dist-lib/lib/mesh-scoped-engine.js +42 -2
  377. package/dist-lib/lib/model-download-status.d.ts +3 -3
  378. package/dist-lib/lib/model-download.d.ts +11 -12
  379. package/dist-lib/lib/model-download.js +63 -22
  380. package/dist-lib/lib/model-idle-pusher.d.ts +2 -4
  381. package/dist-lib/lib/model-memory-cap.d.ts +27 -0
  382. package/dist-lib/lib/model-memory-cap.js +69 -0
  383. package/dist-lib/lib/models-watch.d.ts +1 -1
  384. package/dist-lib/lib/models-watch.js +4 -4
  385. package/dist-lib/lib/oauth/browser-connect.js +3 -2
  386. package/dist-lib/lib/oauth/flow-core.js +5 -3
  387. package/dist-lib/lib/oauth/flow.js +1 -1
  388. package/dist-lib/lib/oauth/loopback.d.ts +1 -0
  389. package/dist-lib/lib/oauth/loopback.js +57 -12
  390. package/dist-lib/lib/oauth/providers.js +4 -2
  391. package/dist-lib/lib/oauth/redirect-types.d.ts +1 -0
  392. package/dist-lib/lib/oauth/register.js +35 -19
  393. package/dist-lib/lib/oauth/request.d.ts +10 -0
  394. package/dist-lib/lib/oauth/request.js +22 -0
  395. package/dist-lib/lib/oauth/token-exchange-core.js +31 -33
  396. package/dist-lib/lib/oauth/types.d.ts +3 -0
  397. package/dist-lib/lib/oauth.d.ts +2 -1
  398. package/dist-lib/lib/oauth.js +1 -0
  399. package/dist-lib/lib/persistent-dir.d.ts +1 -0
  400. package/dist-lib/lib/persistent-dir.js +9 -0
  401. package/dist-lib/lib/probe-rounds.d.ts +3 -0
  402. package/dist-lib/lib/probe-rounds.js +5 -0
  403. package/dist-lib/lib/run-input.d.ts +14 -0
  404. package/dist-lib/lib/run-input.js +33 -0
  405. package/dist-lib/lib/run-notices.d.ts +3 -0
  406. package/dist-lib/lib/run-notices.js +8 -2
  407. package/dist-lib/lib/run-replay.d.ts +32 -0
  408. package/dist-lib/lib/run-replay.js +121 -0
  409. package/dist-lib/lib/run-transcript.d.ts +11 -12
  410. package/dist-lib/lib/run-transcript.js +16 -18
  411. package/dist-lib/lib/suspend-lifecycle.js +15 -5
  412. package/dist-lib/lib/task.js +6 -4
  413. package/dist-lib/lib/test-env.d.ts +1 -0
  414. package/dist-lib/lib/test-env.js +4 -0
  415. package/dist-lib/schema/build.js +3 -1
  416. package/dist-lib/schema/config.d.ts +1 -1
  417. package/dist-lib/schema/config.js +1 -1
  418. package/dist-lib/schema/content.d.ts +5 -1
  419. package/dist-lib/schema/content.js +58 -11
  420. package/dist-lib/schema/engine.d.ts +1 -0
  421. package/dist-lib/schema/engine.js +709 -116
  422. package/dist-lib/schema/field-order.js +2 -1
  423. package/dist-lib/schema/indexes.d.ts +3 -0
  424. package/dist-lib/schema/indexes.js +30 -3
  425. package/dist-lib/schema/local.js +72 -4
  426. package/dist-lib/schema/qvac.d.ts +4 -1
  427. package/dist-lib/schema/qvac.js +364 -12
  428. package/dist-lib/spec/bind.js +209 -48
  429. package/dist-lib/spec/calls.js +45 -5
  430. package/dist-lib/spec/capabilities.d.ts +98 -18
  431. package/dist-lib/spec/config/hyperconf/index.js +1 -1
  432. package/dist-lib/spec/hrpc/hrpc.json +726 -206
  433. package/dist-lib/spec/hrpc/index.js +832 -345
  434. package/dist-lib/spec/hrpc/messages.js +6906 -4832
  435. package/dist-lib/spec/hyperschema/index.js +6906 -4832
  436. package/dist-lib/spec/hyperschema/schema.json +4744 -3139
  437. package/dist-lib/spec/hyperschema/types.d.ts +461 -61
  438. package/dist-lib/spec/local/hyperdb/db.json +95 -1
  439. package/dist-lib/spec/local/hyperdb/index.js +459 -2
  440. package/dist-lib/spec/local/hyperdb/messages.js +1506 -484
  441. package/dist-lib/spec/local/hyperschema/index.js +542 -13
  442. package/dist-lib/spec/local/hyperschema/schema.json +319 -1
  443. package/dist-lib/spec/local/hyperschema/types.d.ts +78 -2
  444. package/dist-lib/spec/mesh/hyperdb/db.json +371 -5
  445. package/dist-lib/spec/mesh/hyperdb/index.js +1564 -5
  446. package/dist-lib/spec/mesh/hyperdb/messages.js +6023 -1246
  447. package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +187 -1
  448. package/dist-lib/spec/mesh/hyperdispatch/index.js +528 -1
  449. package/dist-lib/spec/mesh/hyperdispatch/messages.js +3449 -217
  450. package/dist-lib/spec/mesh/hyperschema/index.js +3449 -217
  451. package/dist-lib/spec/mesh/hyperschema/schema.json +1865 -19
  452. package/dist-lib/spec/mesh/hyperschema/types.d.ts +470 -6
  453. package/package.json +50 -35
  454. package/worker/assistant-sidecar.mjs +15 -2
  455. package/worker/stow-entry.mjs +2 -0
  456. package/dist-lib/lib/core/contract/compute.d.ts +0 -11
  457. package/dist-lib/lib/core/contract/compute.js +0 -48
  458. package/dist-lib/lib/core/device-invites.d.ts +0 -11
  459. package/dist-lib/lib/core/device-invites.js +0 -63
  460. package/dist-lib/lib/core/grant-expiry.d.ts +0 -11
  461. package/dist-lib/lib/core/grant-expiry.js +0 -66
  462. package/dist-lib/lib/core/handoff-channel.d.ts +0 -47
  463. package/dist-lib/lib/core/handoff-channel.js +0 -123
  464. package/dist-lib/lib/core/harness-loan.d.ts +0 -29
  465. package/dist-lib/lib/core/host-run-log-store.d.ts +0 -114
  466. package/dist-lib/lib/core/host-run-log-store.js +0 -976
  467. package/dist-lib/lib/core/hosted-agents.d.ts +0 -38
  468. package/dist-lib/lib/core/hosted-agents.js +0 -140
  469. package/dist-lib/lib/core/inference-calls-handoff.d.ts +0 -20
  470. package/dist-lib/lib/core/inference-calls-handoff.js +0 -37
  471. package/dist-lib/lib/core/inference-calls-receiver.d.ts +0 -14
  472. package/dist-lib/lib/core/inference-calls-receiver.js +0 -42
  473. package/dist-lib/lib/core/mesh-seed-handoff.d.ts +0 -25
  474. package/dist-lib/lib/core/mesh-seed-handoff.js +0 -52
  475. package/dist-lib/lib/core/secret-handoff.d.ts +0 -17
  476. package/dist-lib/lib/core/secret-handoff.js +0 -29
  477. package/dist-lib/lib/core/skill-overlay-handoff.d.ts +0 -25
  478. package/dist-lib/lib/core/skill-overlay-handoff.js +0 -50
  479. package/dist-lib/lib/core/skill-overlay-receiver.d.ts +0 -8
  480. package/dist-lib/lib/core/skill-overlay-receiver.js +0 -23
  481. package/dist-lib/lib/image-cache-dir.d.ts +0 -1
  482. package/dist-lib/lib/image-cache-dir.js +0 -5
  483. package/dist-lib/lib/log-levels.d.ts +0 -7
  484. package/dist-lib/lib/log-levels.js +0 -1
  485. package/dist-lib/lib/logger.d.ts +0 -5
  486. package/dist-lib/lib/logger.js +0 -18
  487. package/dist-lib/lib/oauth/loopback.stub.d.ts +0 -3
  488. package/dist-lib/lib/oauth/loopback.stub.js +0 -6
  489. package/tui/README.md +0 -142
  490. package/tui/app.mjs +0 -6939
  491. package/tui/boot.mjs +0 -111
  492. package/tui/index.mjs +0 -53
  493. package/tui/lib/boot-timing.mjs +0 -41
  494. package/tui/lib/busy-words.mjs +0 -116
  495. package/tui/lib/export.mjs +0 -194
  496. package/tui/lib/knowledge-command.mjs +0 -190
  497. package/tui/lib/knowledge-import.mjs +0 -171
  498. package/tui/lib/render.mjs +0 -196
  499. package/tui/lib/save-file.mjs +0 -88
  500. package/tui/lib/select.mjs +0 -81
  501. package/tui/lib/selection.mjs +0 -18
  502. package/tui/lib/setup.mjs +0 -101
  503. package/tui/lib/sidebar.mjs +0 -63
  504. package/tui/lib/splash-art.mjs +0 -107
  505. package/tui/lib/splash.mjs +0 -18
  506. package/tui/lib/upload-frames.mjs +0 -9
  507. package/tui/lib/usage.mjs +0 -59
  508. package/tui/lib/wrap.mjs +0 -143
  509. package/tui/main.mjs +0 -264
@@ -4,7 +4,7 @@
4
4
  import { IndexEncoder, c, b4a } from 'hyperdb/runtime'
5
5
  import { version, getEncoding, setVersion } from './messages.js'
6
6
 
7
- const versions = { schema: version, db: 8 }
7
+ const versions = { schema: version, db: 11 }
8
8
 
9
9
  import * as helpers0 from '../../../schema/indexes.js'
10
10
 
@@ -45,7 +45,7 @@ function collection0_reconstruct_key (keyBuf) {
45
45
  const collection0 = {
46
46
  name: '@qvac/chunks',
47
47
  id: 0,
48
- version: 2,
48
+ version: 11,
49
49
  encodeKey (record) {
50
50
  const key = [record.id]
51
51
  return collection0_key.encode(key)
@@ -514,7 +514,7 @@ function collection7_reconstruct_key (keyBuf) {
514
514
  const collection7 = {
515
515
  name: '@qvac/knowledge',
516
516
  id: 7,
517
- version: 1,
517
+ version: 11,
518
518
  encodeKey (record) {
519
519
  const key = [record.id]
520
520
  return collection7_key.encode(key)
@@ -2938,6 +2938,1521 @@ const collection48 = {
2938
2938
  decodedVersion: 0
2939
2939
  }
2940
2940
 
2941
+ // '@qvac/mesh-names' collection key
2942
+ const collection49_key = new IndexEncoder([
2943
+ IndexEncoder.STRING
2944
+ ], { prefix: 49 })
2945
+
2946
+ function collection49_indexify (record) {
2947
+ const a = record.id
2948
+ return a === undefined ? [] : [a]
2949
+ }
2950
+
2951
+ // '@qvac/mesh-names' value encoding
2952
+ const collection49_enc = getEncoding('@qvac/mesh-name/hyperdb#49')
2953
+
2954
+ // '@qvac/mesh-names' reconstruction function
2955
+ function collection49_reconstruct (schemaVersion, keyBuf, valueBuf) {
2956
+ const key = collection49_key.decode(keyBuf)
2957
+ setVersion(schemaVersion)
2958
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
2959
+ const type = c.uint.decode(state)
2960
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
2961
+ collection49.decodedVersion = c.uint.decode(state)
2962
+ const record = collection49_enc.decode(state)
2963
+ record.id = key[0]
2964
+ return record
2965
+ }
2966
+ // '@qvac/mesh-names' key reconstruction function
2967
+ function collection49_reconstruct_key (keyBuf) {
2968
+ const key = collection49_key.decode(keyBuf)
2969
+ return {
2970
+ id: key[0]
2971
+ }
2972
+ }
2973
+
2974
+ // '@qvac/mesh-names'
2975
+ const collection49 = {
2976
+ name: '@qvac/mesh-names',
2977
+ id: 49,
2978
+ version: 9,
2979
+ encodeKey (record) {
2980
+ const key = [record.id]
2981
+ return collection49_key.encode(key)
2982
+ },
2983
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
2984
+ return collection49_key.encodeRange({
2985
+ gt: gt ? collection49_indexify(gt) : null,
2986
+ lt: lt ? collection49_indexify(lt) : null,
2987
+ gte: gte ? collection49_indexify(gte) : null,
2988
+ lte: lte ? collection49_indexify(lte) : null
2989
+ })
2990
+ },
2991
+ encodeValue (schemaVersion, collectionVersion, record) {
2992
+ setVersion(schemaVersion)
2993
+ const state = { start: 0, end: 2, buffer: null }
2994
+ collection49_enc.preencode(state, record)
2995
+ state.buffer = b4a.allocUnsafe(state.end)
2996
+ state.buffer[state.start++] = 0
2997
+ state.buffer[state.start++] = collectionVersion
2998
+ collection49_enc.encode(state, record)
2999
+ return state.buffer
3000
+ },
3001
+ trigger: null,
3002
+ reconstruct: collection49_reconstruct,
3003
+ reconstructKey: collection49_reconstruct_key,
3004
+ indexes: [],
3005
+ decodedVersion: 0
3006
+ }
3007
+
3008
+ // '@qvac/mesh-seeds' collection key
3009
+ const collection50_key = new IndexEncoder([
3010
+ IndexEncoder.BUFFER
3011
+ ], { prefix: 50 })
3012
+
3013
+ function collection50_indexify (record) {
3014
+ const a = record.meshKey
3015
+ return a === undefined ? [] : [a]
3016
+ }
3017
+
3018
+ // '@qvac/mesh-seeds' value encoding
3019
+ const collection50_enc = getEncoding('@qvac/mesh-seed/hyperdb#50')
3020
+
3021
+ // '@qvac/mesh-seeds' reconstruction function
3022
+ function collection50_reconstruct (schemaVersion, keyBuf, valueBuf) {
3023
+ const key = collection50_key.decode(keyBuf)
3024
+ setVersion(schemaVersion)
3025
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
3026
+ const type = c.uint.decode(state)
3027
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
3028
+ collection50.decodedVersion = c.uint.decode(state)
3029
+ const record = collection50_enc.decode(state)
3030
+ record.meshKey = key[0]
3031
+ return record
3032
+ }
3033
+ // '@qvac/mesh-seeds' key reconstruction function
3034
+ function collection50_reconstruct_key (keyBuf) {
3035
+ const key = collection50_key.decode(keyBuf)
3036
+ return {
3037
+ meshKey: key[0]
3038
+ }
3039
+ }
3040
+
3041
+ // '@qvac/mesh-seeds'
3042
+ const collection50 = {
3043
+ name: '@qvac/mesh-seeds',
3044
+ id: 50,
3045
+ version: 10,
3046
+ encodeKey (record) {
3047
+ const key = [record.meshKey]
3048
+ return collection50_key.encode(key)
3049
+ },
3050
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3051
+ return collection50_key.encodeRange({
3052
+ gt: gt ? collection50_indexify(gt) : null,
3053
+ lt: lt ? collection50_indexify(lt) : null,
3054
+ gte: gte ? collection50_indexify(gte) : null,
3055
+ lte: lte ? collection50_indexify(lte) : null
3056
+ })
3057
+ },
3058
+ encodeValue (schemaVersion, collectionVersion, record) {
3059
+ setVersion(schemaVersion)
3060
+ const state = { start: 0, end: 2, buffer: null }
3061
+ collection50_enc.preencode(state, record)
3062
+ state.buffer = b4a.allocUnsafe(state.end)
3063
+ state.buffer[state.start++] = 0
3064
+ state.buffer[state.start++] = collectionVersion
3065
+ collection50_enc.encode(state, record)
3066
+ return state.buffer
3067
+ },
3068
+ trigger: null,
3069
+ reconstruct: collection50_reconstruct,
3070
+ reconstructKey: collection50_reconstruct_key,
3071
+ indexes: [],
3072
+ decodedVersion: 0
3073
+ }
3074
+
3075
+ // '@qvac/mesh-rules' collection key
3076
+ const collection51_key = new IndexEncoder([
3077
+ IndexEncoder.STRING
3078
+ ], { prefix: 51 })
3079
+
3080
+ function collection51_indexify (record) {
3081
+ const a = record.id
3082
+ return a === undefined ? [] : [a]
3083
+ }
3084
+
3085
+ // '@qvac/mesh-rules' value encoding
3086
+ const collection51_enc = getEncoding('@qvac/mesh-rules/hyperdb#51')
3087
+
3088
+ // '@qvac/mesh-rules' reconstruction function
3089
+ function collection51_reconstruct (schemaVersion, keyBuf, valueBuf) {
3090
+ const key = collection51_key.decode(keyBuf)
3091
+ setVersion(schemaVersion)
3092
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
3093
+ const type = c.uint.decode(state)
3094
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
3095
+ collection51.decodedVersion = c.uint.decode(state)
3096
+ const record = collection51_enc.decode(state)
3097
+ record.id = key[0]
3098
+ return record
3099
+ }
3100
+ // '@qvac/mesh-rules' key reconstruction function
3101
+ function collection51_reconstruct_key (keyBuf) {
3102
+ const key = collection51_key.decode(keyBuf)
3103
+ return {
3104
+ id: key[0]
3105
+ }
3106
+ }
3107
+
3108
+ // '@qvac/mesh-rules'
3109
+ const collection51 = {
3110
+ name: '@qvac/mesh-rules',
3111
+ id: 51,
3112
+ version: 11,
3113
+ encodeKey (record) {
3114
+ const key = [record.id]
3115
+ return collection51_key.encode(key)
3116
+ },
3117
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3118
+ return collection51_key.encodeRange({
3119
+ gt: gt ? collection51_indexify(gt) : null,
3120
+ lt: lt ? collection51_indexify(lt) : null,
3121
+ gte: gte ? collection51_indexify(gte) : null,
3122
+ lte: lte ? collection51_indexify(lte) : null
3123
+ })
3124
+ },
3125
+ encodeValue (schemaVersion, collectionVersion, record) {
3126
+ setVersion(schemaVersion)
3127
+ const state = { start: 0, end: 2, buffer: null }
3128
+ collection51_enc.preencode(state, record)
3129
+ state.buffer = b4a.allocUnsafe(state.end)
3130
+ state.buffer[state.start++] = 0
3131
+ state.buffer[state.start++] = collectionVersion
3132
+ collection51_enc.encode(state, record)
3133
+ return state.buffer
3134
+ },
3135
+ trigger: null,
3136
+ reconstruct: collection51_reconstruct,
3137
+ reconstructKey: collection51_reconstruct_key,
3138
+ indexes: [],
3139
+ decodedVersion: 0
3140
+ }
3141
+
3142
+ // '@qvac/public-meshes' collection key
3143
+ const collection52_key = new IndexEncoder([
3144
+ IndexEncoder.STRING
3145
+ ], { prefix: 52 })
3146
+
3147
+ function collection52_indexify (record) {
3148
+ const a = record.id
3149
+ return a === undefined ? [] : [a]
3150
+ }
3151
+
3152
+ // '@qvac/public-meshes' value encoding
3153
+ const collection52_enc = getEncoding('@qvac/public-mesh/hyperdb#52')
3154
+
3155
+ // '@qvac/public-meshes' reconstruction function
3156
+ function collection52_reconstruct (schemaVersion, keyBuf, valueBuf) {
3157
+ const key = collection52_key.decode(keyBuf)
3158
+ setVersion(schemaVersion)
3159
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
3160
+ const type = c.uint.decode(state)
3161
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
3162
+ collection52.decodedVersion = c.uint.decode(state)
3163
+ const record = collection52_enc.decode(state)
3164
+ record.id = key[0]
3165
+ return record
3166
+ }
3167
+ // '@qvac/public-meshes' key reconstruction function
3168
+ function collection52_reconstruct_key (keyBuf) {
3169
+ const key = collection52_key.decode(keyBuf)
3170
+ return {
3171
+ id: key[0]
3172
+ }
3173
+ }
3174
+
3175
+ // '@qvac/public-meshes'
3176
+ const collection52 = {
3177
+ name: '@qvac/public-meshes',
3178
+ id: 52,
3179
+ version: 11,
3180
+ encodeKey (record) {
3181
+ const key = [record.id]
3182
+ return collection52_key.encode(key)
3183
+ },
3184
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3185
+ return collection52_key.encodeRange({
3186
+ gt: gt ? collection52_indexify(gt) : null,
3187
+ lt: lt ? collection52_indexify(lt) : null,
3188
+ gte: gte ? collection52_indexify(gte) : null,
3189
+ lte: lte ? collection52_indexify(lte) : null
3190
+ })
3191
+ },
3192
+ encodeValue (schemaVersion, collectionVersion, record) {
3193
+ setVersion(schemaVersion)
3194
+ const state = { start: 0, end: 2, buffer: null }
3195
+ collection52_enc.preencode(state, record)
3196
+ state.buffer = b4a.allocUnsafe(state.end)
3197
+ state.buffer[state.start++] = 0
3198
+ state.buffer[state.start++] = collectionVersion
3199
+ collection52_enc.encode(state, record)
3200
+ return state.buffer
3201
+ },
3202
+ trigger: null,
3203
+ reconstruct: collection52_reconstruct,
3204
+ reconstructKey: collection52_reconstruct_key,
3205
+ indexes: [],
3206
+ decodedVersion: 0
3207
+ }
3208
+
3209
+ // '@qvac/workspace' collection key
3210
+ const collection53_key = new IndexEncoder([
3211
+ IndexEncoder.STRING
3212
+ ], { prefix: 53 })
3213
+
3214
+ function collection53_indexify (record) {
3215
+ const a = record.id
3216
+ return a === undefined ? [] : [a]
3217
+ }
3218
+
3219
+ // '@qvac/workspace' value encoding
3220
+ const collection53_enc = getEncoding('@qvac/workspace/hyperdb#53')
3221
+
3222
+ // '@qvac/workspace' reconstruction function
3223
+ function collection53_reconstruct (schemaVersion, keyBuf, valueBuf) {
3224
+ const key = collection53_key.decode(keyBuf)
3225
+ setVersion(schemaVersion)
3226
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
3227
+ const type = c.uint.decode(state)
3228
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
3229
+ collection53.decodedVersion = c.uint.decode(state)
3230
+ const record = collection53_enc.decode(state)
3231
+ record.id = key[0]
3232
+ return record
3233
+ }
3234
+ // '@qvac/workspace' key reconstruction function
3235
+ function collection53_reconstruct_key (keyBuf) {
3236
+ const key = collection53_key.decode(keyBuf)
3237
+ return {
3238
+ id: key[0]
3239
+ }
3240
+ }
3241
+
3242
+ // '@qvac/workspace'
3243
+ const collection53 = {
3244
+ name: '@qvac/workspace',
3245
+ id: 53,
3246
+ version: 11,
3247
+ encodeKey (record) {
3248
+ const key = [record.id]
3249
+ return collection53_key.encode(key)
3250
+ },
3251
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3252
+ return collection53_key.encodeRange({
3253
+ gt: gt ? collection53_indexify(gt) : null,
3254
+ lt: lt ? collection53_indexify(lt) : null,
3255
+ gte: gte ? collection53_indexify(gte) : null,
3256
+ lte: lte ? collection53_indexify(lte) : null
3257
+ })
3258
+ },
3259
+ encodeValue (schemaVersion, collectionVersion, record) {
3260
+ setVersion(schemaVersion)
3261
+ const state = { start: 0, end: 2, buffer: null }
3262
+ collection53_enc.preencode(state, record)
3263
+ state.buffer = b4a.allocUnsafe(state.end)
3264
+ state.buffer[state.start++] = 0
3265
+ state.buffer[state.start++] = collectionVersion
3266
+ collection53_enc.encode(state, record)
3267
+ return state.buffer
3268
+ },
3269
+ trigger: null,
3270
+ reconstruct: collection53_reconstruct,
3271
+ reconstructKey: collection53_reconstruct_key,
3272
+ indexes: [],
3273
+ decodedVersion: 0
3274
+ }
3275
+
3276
+ // '@qvac/member-roles' collection key
3277
+ const collection54_key = new IndexEncoder([
3278
+ IndexEncoder.BUFFER
3279
+ ], { prefix: 54 })
3280
+
3281
+ function collection54_indexify (record) {
3282
+ const a = record.memberId
3283
+ return a === undefined ? [] : [a]
3284
+ }
3285
+
3286
+ // '@qvac/member-roles' value encoding
3287
+ const collection54_enc = getEncoding('@qvac/member-role/hyperdb#54')
3288
+
3289
+ // '@qvac/member-roles' reconstruction function
3290
+ function collection54_reconstruct (schemaVersion, keyBuf, valueBuf) {
3291
+ const key = collection54_key.decode(keyBuf)
3292
+ setVersion(schemaVersion)
3293
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
3294
+ const type = c.uint.decode(state)
3295
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
3296
+ collection54.decodedVersion = c.uint.decode(state)
3297
+ const record = collection54_enc.decode(state)
3298
+ record.memberId = key[0]
3299
+ return record
3300
+ }
3301
+ // '@qvac/member-roles' key reconstruction function
3302
+ function collection54_reconstruct_key (keyBuf) {
3303
+ const key = collection54_key.decode(keyBuf)
3304
+ return {
3305
+ memberId: key[0]
3306
+ }
3307
+ }
3308
+
3309
+ // '@qvac/member-roles'
3310
+ const collection54 = {
3311
+ name: '@qvac/member-roles',
3312
+ id: 54,
3313
+ version: 11,
3314
+ encodeKey (record) {
3315
+ const key = [record.memberId]
3316
+ return collection54_key.encode(key)
3317
+ },
3318
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3319
+ return collection54_key.encodeRange({
3320
+ gt: gt ? collection54_indexify(gt) : null,
3321
+ lt: lt ? collection54_indexify(lt) : null,
3322
+ gte: gte ? collection54_indexify(gte) : null,
3323
+ lte: lte ? collection54_indexify(lte) : null
3324
+ })
3325
+ },
3326
+ encodeValue (schemaVersion, collectionVersion, record) {
3327
+ setVersion(schemaVersion)
3328
+ const state = { start: 0, end: 2, buffer: null }
3329
+ collection54_enc.preencode(state, record)
3330
+ state.buffer = b4a.allocUnsafe(state.end)
3331
+ state.buffer[state.start++] = 0
3332
+ state.buffer[state.start++] = collectionVersion
3333
+ collection54_enc.encode(state, record)
3334
+ return state.buffer
3335
+ },
3336
+ trigger: null,
3337
+ reconstruct: collection54_reconstruct,
3338
+ reconstructKey: collection54_reconstruct_key,
3339
+ indexes: [],
3340
+ decodedVersion: 0
3341
+ }
3342
+
3343
+ // '@qvac/public-seeds' collection key
3344
+ const collection55_key = new IndexEncoder([
3345
+ IndexEncoder.BUFFER,
3346
+ IndexEncoder.BUFFER
3347
+ ], { prefix: 55 })
3348
+
3349
+ function collection55_indexify (record) {
3350
+ const arr = []
3351
+
3352
+ const a0 = record.memberId
3353
+ if (a0 === undefined) return arr
3354
+ arr.push(a0)
3355
+
3356
+ const a1 = record.deviceId
3357
+ if (a1 === undefined) return arr
3358
+ arr.push(a1)
3359
+
3360
+ return arr
3361
+ }
3362
+
3363
+ // '@qvac/public-seeds' value encoding
3364
+ const collection55_enc = getEncoding('@qvac/public-seed/hyperdb#55')
3365
+
3366
+ // '@qvac/public-seeds' reconstruction function
3367
+ function collection55_reconstruct (schemaVersion, keyBuf, valueBuf) {
3368
+ const key = collection55_key.decode(keyBuf)
3369
+ setVersion(schemaVersion)
3370
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
3371
+ const type = c.uint.decode(state)
3372
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
3373
+ collection55.decodedVersion = c.uint.decode(state)
3374
+ const record = collection55_enc.decode(state)
3375
+ record.memberId = key[0]
3376
+ record.deviceId = key[1]
3377
+ return record
3378
+ }
3379
+ // '@qvac/public-seeds' key reconstruction function
3380
+ function collection55_reconstruct_key (keyBuf) {
3381
+ const key = collection55_key.decode(keyBuf)
3382
+ return {
3383
+ memberId: key[0],
3384
+ deviceId: key[1]
3385
+ }
3386
+ }
3387
+
3388
+ // '@qvac/public-seeds'
3389
+ const collection55 = {
3390
+ name: '@qvac/public-seeds',
3391
+ id: 55,
3392
+ version: 11,
3393
+ encodeKey (record) {
3394
+ const key = [record.memberId, record.deviceId]
3395
+ return collection55_key.encode(key)
3396
+ },
3397
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3398
+ return collection55_key.encodeRange({
3399
+ gt: gt ? collection55_indexify(gt) : null,
3400
+ lt: lt ? collection55_indexify(lt) : null,
3401
+ gte: gte ? collection55_indexify(gte) : null,
3402
+ lte: lte ? collection55_indexify(lte) : null
3403
+ })
3404
+ },
3405
+ encodeValue (schemaVersion, collectionVersion, record) {
3406
+ setVersion(schemaVersion)
3407
+ const state = { start: 0, end: 2, buffer: null }
3408
+ collection55_enc.preencode(state, record)
3409
+ state.buffer = b4a.allocUnsafe(state.end)
3410
+ state.buffer[state.start++] = 0
3411
+ state.buffer[state.start++] = collectionVersion
3412
+ collection55_enc.encode(state, record)
3413
+ return state.buffer
3414
+ },
3415
+ trigger: null,
3416
+ reconstruct: collection55_reconstruct,
3417
+ reconstructKey: collection55_reconstruct_key,
3418
+ indexes: [],
3419
+ decodedVersion: 0
3420
+ }
3421
+
3422
+ // '@qvac/projects' collection key
3423
+ const collection56_key = new IndexEncoder([
3424
+ IndexEncoder.BUFFER
3425
+ ], { prefix: 56 })
3426
+
3427
+ function collection56_indexify (record) {
3428
+ const a = record.id
3429
+ return a === undefined ? [] : [a]
3430
+ }
3431
+
3432
+ // '@qvac/projects' value encoding
3433
+ const collection56_enc = getEncoding('@qvac/project/hyperdb#56')
3434
+
3435
+ // '@qvac/projects' reconstruction function
3436
+ function collection56_reconstruct (schemaVersion, keyBuf, valueBuf) {
3437
+ const key = collection56_key.decode(keyBuf)
3438
+ setVersion(schemaVersion)
3439
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
3440
+ const type = c.uint.decode(state)
3441
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
3442
+ collection56.decodedVersion = c.uint.decode(state)
3443
+ const record = collection56_enc.decode(state)
3444
+ record.id = key[0]
3445
+ return record
3446
+ }
3447
+ // '@qvac/projects' key reconstruction function
3448
+ function collection56_reconstruct_key (keyBuf) {
3449
+ const key = collection56_key.decode(keyBuf)
3450
+ return {
3451
+ id: key[0]
3452
+ }
3453
+ }
3454
+
3455
+ // '@qvac/projects'
3456
+ const collection56 = {
3457
+ name: '@qvac/projects',
3458
+ id: 56,
3459
+ version: 11,
3460
+ encodeKey (record) {
3461
+ const key = [record.id]
3462
+ return collection56_key.encode(key)
3463
+ },
3464
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3465
+ return collection56_key.encodeRange({
3466
+ gt: gt ? collection56_indexify(gt) : null,
3467
+ lt: lt ? collection56_indexify(lt) : null,
3468
+ gte: gte ? collection56_indexify(gte) : null,
3469
+ lte: lte ? collection56_indexify(lte) : null
3470
+ })
3471
+ },
3472
+ encodeValue (schemaVersion, collectionVersion, record) {
3473
+ setVersion(schemaVersion)
3474
+ const state = { start: 0, end: 2, buffer: null }
3475
+ collection56_enc.preencode(state, record)
3476
+ state.buffer = b4a.allocUnsafe(state.end)
3477
+ state.buffer[state.start++] = 0
3478
+ state.buffer[state.start++] = collectionVersion
3479
+ collection56_enc.encode(state, record)
3480
+ return state.buffer
3481
+ },
3482
+ trigger: null,
3483
+ reconstruct: collection56_reconstruct,
3484
+ reconstructKey: collection56_reconstruct_key,
3485
+ indexes: [],
3486
+ decodedVersion: 0
3487
+ }
3488
+
3489
+ // '@qvac/project-members' collection key
3490
+ const collection57_key = new IndexEncoder([
3491
+ IndexEncoder.BUFFER
3492
+ ], { prefix: 57 })
3493
+
3494
+ function collection57_indexify (record) {
3495
+ const a = record.memberId
3496
+ return a === undefined ? [] : [a]
3497
+ }
3498
+
3499
+ // '@qvac/project-members' value encoding
3500
+ const collection57_enc = getEncoding('@qvac/project-member/hyperdb#57')
3501
+
3502
+ // '@qvac/project-members' reconstruction function
3503
+ function collection57_reconstruct (schemaVersion, keyBuf, valueBuf) {
3504
+ const key = collection57_key.decode(keyBuf)
3505
+ setVersion(schemaVersion)
3506
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
3507
+ const type = c.uint.decode(state)
3508
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
3509
+ collection57.decodedVersion = c.uint.decode(state)
3510
+ const record = collection57_enc.decode(state)
3511
+ record.memberId = key[0]
3512
+ return record
3513
+ }
3514
+ // '@qvac/project-members' key reconstruction function
3515
+ function collection57_reconstruct_key (keyBuf) {
3516
+ const key = collection57_key.decode(keyBuf)
3517
+ return {
3518
+ memberId: key[0]
3519
+ }
3520
+ }
3521
+
3522
+ // '@qvac/project-members'
3523
+ const collection57 = {
3524
+ name: '@qvac/project-members',
3525
+ id: 57,
3526
+ version: 11,
3527
+ encodeKey (record) {
3528
+ const key = [record.memberId]
3529
+ return collection57_key.encode(key)
3530
+ },
3531
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3532
+ return collection57_key.encodeRange({
3533
+ gt: gt ? collection57_indexify(gt) : null,
3534
+ lt: lt ? collection57_indexify(lt) : null,
3535
+ gte: gte ? collection57_indexify(gte) : null,
3536
+ lte: lte ? collection57_indexify(lte) : null
3537
+ })
3538
+ },
3539
+ encodeValue (schemaVersion, collectionVersion, record) {
3540
+ setVersion(schemaVersion)
3541
+ const state = { start: 0, end: 2, buffer: null }
3542
+ collection57_enc.preencode(state, record)
3543
+ state.buffer = b4a.allocUnsafe(state.end)
3544
+ state.buffer[state.start++] = 0
3545
+ state.buffer[state.start++] = collectionVersion
3546
+ collection57_enc.encode(state, record)
3547
+ return state.buffer
3548
+ },
3549
+ trigger: null,
3550
+ reconstruct: collection57_reconstruct,
3551
+ reconstructKey: collection57_reconstruct_key,
3552
+ indexes: [],
3553
+ decodedVersion: 0
3554
+ }
3555
+
3556
+ // '@qvac/active-knowledge-base' collection key
3557
+ const index58_key = new IndexEncoder([
3558
+ IndexEncoder.UINT,
3559
+ IndexEncoder.STRING
3560
+ ], { prefix: 58 })
3561
+
3562
+ // '@qvac/active-knowledge-base' has the following schema defined key map
3563
+ const index58_map = helpers0.activeKnowledgeBaseMap
3564
+
3565
+ function index58_indexify (record) {
3566
+ const a = record.createdAt
3567
+ return a === undefined ? [] : [a]
3568
+ }
3569
+
3570
+ // '@qvac/active-knowledge-base'
3571
+ const index58 = {
3572
+ name: '@qvac/active-knowledge-base',
3573
+ version: 11,
3574
+ id: 58,
3575
+ encodeKey (record) {
3576
+ return index58_key.encode(index58_indexify(record))
3577
+ },
3578
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3579
+ return index58_key.encodeRange({
3580
+ gt: gt ? index58_indexify(gt) : null,
3581
+ lt: lt ? index58_indexify(lt) : null,
3582
+ gte: gte ? index58_indexify(gte) : null,
3583
+ lte: lte ? index58_indexify(lte) : null
3584
+ })
3585
+ },
3586
+ encodeValue: (record) => index58.collection.encodeKey(record),
3587
+ encodeIndexKeys (record, context) {
3588
+ const mapped = index58_map(record, context)
3589
+ const keys = new Array(mapped.length)
3590
+ for (let i = 0; i < mapped.length; i++) {
3591
+ const mappedRecord = mapped[i]
3592
+ keys[i] = index58_key.encode([mappedRecord.createdAt, record.id])
3593
+ }
3594
+ return keys
3595
+ },
3596
+ reconstruct: (keyBuf, valueBuf) => valueBuf,
3597
+ offset: collection7.indexes.length,
3598
+ collection: collection7
3599
+ }
3600
+ collection7.indexes.push(index58)
3601
+
3602
+ // '@qvac/project-order' collection key
3603
+ const collection59_key = new IndexEncoder([
3604
+ IndexEncoder.BUFFER
3605
+ ], { prefix: 59 })
3606
+
3607
+ function collection59_indexify (record) {
3608
+ const a = record.workspaceKey
3609
+ return a === undefined ? [] : [a]
3610
+ }
3611
+
3612
+ // '@qvac/project-order' value encoding
3613
+ const collection59_enc = getEncoding('@qvac/project-order/hyperdb#59')
3614
+
3615
+ // '@qvac/project-order' reconstruction function
3616
+ function collection59_reconstruct (schemaVersion, keyBuf, valueBuf) {
3617
+ const key = collection59_key.decode(keyBuf)
3618
+ setVersion(schemaVersion)
3619
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
3620
+ const type = c.uint.decode(state)
3621
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
3622
+ collection59.decodedVersion = c.uint.decode(state)
3623
+ const record = collection59_enc.decode(state)
3624
+ record.workspaceKey = key[0]
3625
+ return record
3626
+ }
3627
+ // '@qvac/project-order' key reconstruction function
3628
+ function collection59_reconstruct_key (keyBuf) {
3629
+ const key = collection59_key.decode(keyBuf)
3630
+ return {
3631
+ workspaceKey: key[0]
3632
+ }
3633
+ }
3634
+
3635
+ // '@qvac/project-order'
3636
+ const collection59 = {
3637
+ name: '@qvac/project-order',
3638
+ id: 59,
3639
+ version: 11,
3640
+ encodeKey (record) {
3641
+ const key = [record.workspaceKey]
3642
+ return collection59_key.encode(key)
3643
+ },
3644
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3645
+ return collection59_key.encodeRange({
3646
+ gt: gt ? collection59_indexify(gt) : null,
3647
+ lt: lt ? collection59_indexify(lt) : null,
3648
+ gte: gte ? collection59_indexify(gte) : null,
3649
+ lte: lte ? collection59_indexify(lte) : null
3650
+ })
3651
+ },
3652
+ encodeValue (schemaVersion, collectionVersion, record) {
3653
+ setVersion(schemaVersion)
3654
+ const state = { start: 0, end: 2, buffer: null }
3655
+ collection59_enc.preencode(state, record)
3656
+ state.buffer = b4a.allocUnsafe(state.end)
3657
+ state.buffer[state.start++] = 0
3658
+ state.buffer[state.start++] = collectionVersion
3659
+ collection59_enc.encode(state, record)
3660
+ return state.buffer
3661
+ },
3662
+ trigger: null,
3663
+ reconstruct: collection59_reconstruct,
3664
+ reconstructKey: collection59_reconstruct_key,
3665
+ indexes: [],
3666
+ decodedVersion: 0
3667
+ }
3668
+
3669
+ // '@qvac/run-request-by-run' collection key
3670
+ const index60_key = new IndexEncoder([
3671
+ IndexEncoder.STRING,
3672
+ IndexEncoder.STRING,
3673
+ IndexEncoder.STRING
3674
+ ], { prefix: 60 })
3675
+
3676
+ // '@qvac/run-request-by-run' has the following schema defined key map
3677
+ const index60_map = helpers0.runRequestByRunMap
3678
+
3679
+ function index60_indexify (record) {
3680
+ const arr = []
3681
+
3682
+ const a0 = record.chatId
3683
+ if (a0 === undefined) return arr
3684
+ arr.push(a0)
3685
+
3686
+ const a1 = record.runId
3687
+ if (a1 === undefined) return arr
3688
+ arr.push(a1)
3689
+
3690
+ return arr
3691
+ }
3692
+
3693
+ // '@qvac/run-request-by-run'
3694
+ const index60 = {
3695
+ name: '@qvac/run-request-by-run',
3696
+ version: 11,
3697
+ id: 60,
3698
+ encodeKey (record) {
3699
+ return index60_key.encode(index60_indexify(record))
3700
+ },
3701
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3702
+ return index60_key.encodeRange({
3703
+ gt: gt ? index60_indexify(gt) : null,
3704
+ lt: lt ? index60_indexify(lt) : null,
3705
+ gte: gte ? index60_indexify(gte) : null,
3706
+ lte: lte ? index60_indexify(lte) : null
3707
+ })
3708
+ },
3709
+ encodeValue: (record) => index60.collection.encodeKey(record),
3710
+ encodeIndexKeys (record, context) {
3711
+ const mapped = index60_map(record, context)
3712
+ const keys = new Array(mapped.length)
3713
+ for (let i = 0; i < mapped.length; i++) {
3714
+ const mappedRecord = mapped[i]
3715
+ keys[i] = index60_key.encode([mappedRecord.chatId, mappedRecord.runId, record.id])
3716
+ }
3717
+ return keys
3718
+ },
3719
+ reconstruct: (keyBuf, valueBuf) => valueBuf,
3720
+ offset: collection0.indexes.length,
3721
+ collection: collection0
3722
+ }
3723
+ collection0.indexes.push(index60)
3724
+
3725
+ // '@qvac/chat-reads' collection key
3726
+ const collection61_key = new IndexEncoder([
3727
+ IndexEncoder.STRING,
3728
+ IndexEncoder.BUFFER
3729
+ ], { prefix: 61 })
3730
+
3731
+ function collection61_indexify (record) {
3732
+ const arr = []
3733
+
3734
+ const a0 = record.chatId
3735
+ if (a0 === undefined) return arr
3736
+ arr.push(a0)
3737
+
3738
+ const a1 = record.memberId
3739
+ if (a1 === undefined) return arr
3740
+ arr.push(a1)
3741
+
3742
+ return arr
3743
+ }
3744
+
3745
+ // '@qvac/chat-reads' value encoding
3746
+ const collection61_enc = getEncoding('@qvac/chat-read/hyperdb#61')
3747
+
3748
+ // '@qvac/chat-reads' reconstruction function
3749
+ function collection61_reconstruct (schemaVersion, keyBuf, valueBuf) {
3750
+ const key = collection61_key.decode(keyBuf)
3751
+ setVersion(schemaVersion)
3752
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
3753
+ const type = c.uint.decode(state)
3754
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
3755
+ collection61.decodedVersion = c.uint.decode(state)
3756
+ const record = collection61_enc.decode(state)
3757
+ record.chatId = key[0]
3758
+ record.memberId = key[1]
3759
+ return record
3760
+ }
3761
+ // '@qvac/chat-reads' key reconstruction function
3762
+ function collection61_reconstruct_key (keyBuf) {
3763
+ const key = collection61_key.decode(keyBuf)
3764
+ return {
3765
+ chatId: key[0],
3766
+ memberId: key[1]
3767
+ }
3768
+ }
3769
+
3770
+ // '@qvac/chat-reads'
3771
+ const collection61 = {
3772
+ name: '@qvac/chat-reads',
3773
+ id: 61,
3774
+ version: 11,
3775
+ encodeKey (record) {
3776
+ const key = [record.chatId, record.memberId]
3777
+ return collection61_key.encode(key)
3778
+ },
3779
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3780
+ return collection61_key.encodeRange({
3781
+ gt: gt ? collection61_indexify(gt) : null,
3782
+ lt: lt ? collection61_indexify(lt) : null,
3783
+ gte: gte ? collection61_indexify(gte) : null,
3784
+ lte: lte ? collection61_indexify(lte) : null
3785
+ })
3786
+ },
3787
+ encodeValue (schemaVersion, collectionVersion, record) {
3788
+ setVersion(schemaVersion)
3789
+ const state = { start: 0, end: 2, buffer: null }
3790
+ collection61_enc.preencode(state, record)
3791
+ state.buffer = b4a.allocUnsafe(state.end)
3792
+ state.buffer[state.start++] = 0
3793
+ state.buffer[state.start++] = collectionVersion
3794
+ collection61_enc.encode(state, record)
3795
+ return state.buffer
3796
+ },
3797
+ trigger: null,
3798
+ reconstruct: collection61_reconstruct,
3799
+ reconstructKey: collection61_reconstruct_key,
3800
+ indexes: [],
3801
+ decodedVersion: 0
3802
+ }
3803
+
3804
+ // '@qvac/knowledge-caps' collection key
3805
+ const collection62_key = new IndexEncoder([
3806
+ IndexEncoder.STRING
3807
+ ], { prefix: 62 })
3808
+
3809
+ function collection62_indexify (record) {
3810
+ const a = record.id
3811
+ return a === undefined ? [] : [a]
3812
+ }
3813
+
3814
+ // '@qvac/knowledge-caps' value encoding
3815
+ const collection62_enc = getEncoding('@qvac/knowledge-cap/hyperdb#62')
3816
+
3817
+ // '@qvac/knowledge-caps' reconstruction function
3818
+ function collection62_reconstruct (schemaVersion, keyBuf, valueBuf) {
3819
+ const key = collection62_key.decode(keyBuf)
3820
+ setVersion(schemaVersion)
3821
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
3822
+ const type = c.uint.decode(state)
3823
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
3824
+ collection62.decodedVersion = c.uint.decode(state)
3825
+ const record = collection62_enc.decode(state)
3826
+ record.id = key[0]
3827
+ return record
3828
+ }
3829
+ // '@qvac/knowledge-caps' key reconstruction function
3830
+ function collection62_reconstruct_key (keyBuf) {
3831
+ const key = collection62_key.decode(keyBuf)
3832
+ return {
3833
+ id: key[0]
3834
+ }
3835
+ }
3836
+
3837
+ // '@qvac/knowledge-caps'
3838
+ const collection62 = {
3839
+ name: '@qvac/knowledge-caps',
3840
+ id: 62,
3841
+ version: 11,
3842
+ encodeKey (record) {
3843
+ const key = [record.id]
3844
+ return collection62_key.encode(key)
3845
+ },
3846
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3847
+ return collection62_key.encodeRange({
3848
+ gt: gt ? collection62_indexify(gt) : null,
3849
+ lt: lt ? collection62_indexify(lt) : null,
3850
+ gte: gte ? collection62_indexify(gte) : null,
3851
+ lte: lte ? collection62_indexify(lte) : null
3852
+ })
3853
+ },
3854
+ encodeValue (schemaVersion, collectionVersion, record) {
3855
+ setVersion(schemaVersion)
3856
+ const state = { start: 0, end: 2, buffer: null }
3857
+ collection62_enc.preencode(state, record)
3858
+ state.buffer = b4a.allocUnsafe(state.end)
3859
+ state.buffer[state.start++] = 0
3860
+ state.buffer[state.start++] = collectionVersion
3861
+ collection62_enc.encode(state, record)
3862
+ return state.buffer
3863
+ },
3864
+ trigger: null,
3865
+ reconstruct: collection62_reconstruct,
3866
+ reconstructKey: collection62_reconstruct_key,
3867
+ indexes: [],
3868
+ decodedVersion: 0
3869
+ }
3870
+
3871
+ // '@qvac/live-model-requests' collection key
3872
+ const index63_key = new IndexEncoder([
3873
+ IndexEncoder.STRING,
3874
+ IndexEncoder.UINT,
3875
+ IndexEncoder.STRING
3876
+ ], { prefix: 63 })
3877
+
3878
+ // '@qvac/live-model-requests' has the following schema defined key map
3879
+ const index63_map = helpers0.liveModelRequestsMap
3880
+
3881
+ function index63_indexify (record) {
3882
+ const arr = []
3883
+
3884
+ const a0 = record.chatId
3885
+ if (a0 === undefined) return arr
3886
+ arr.push(a0)
3887
+
3888
+ const a1 = record.seq
3889
+ if (a1 === undefined) return arr
3890
+ arr.push(a1)
3891
+
3892
+ return arr
3893
+ }
3894
+
3895
+ // '@qvac/live-model-requests'
3896
+ const index63 = {
3897
+ name: '@qvac/live-model-requests',
3898
+ version: 11,
3899
+ id: 63,
3900
+ encodeKey (record) {
3901
+ return index63_key.encode(index63_indexify(record))
3902
+ },
3903
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3904
+ return index63_key.encodeRange({
3905
+ gt: gt ? index63_indexify(gt) : null,
3906
+ lt: lt ? index63_indexify(lt) : null,
3907
+ gte: gte ? index63_indexify(gte) : null,
3908
+ lte: lte ? index63_indexify(lte) : null
3909
+ })
3910
+ },
3911
+ encodeValue: (record) => index63.collection.encodeKey(record),
3912
+ encodeIndexKeys (record, context) {
3913
+ const mapped = index63_map(record, context)
3914
+ const keys = new Array(mapped.length)
3915
+ for (let i = 0; i < mapped.length; i++) {
3916
+ const mappedRecord = mapped[i]
3917
+ keys[i] = index63_key.encode([mappedRecord.chatId, mappedRecord.seq, record.id])
3918
+ }
3919
+ return keys
3920
+ },
3921
+ reconstruct: (keyBuf, valueBuf) => valueBuf,
3922
+ offset: collection0.indexes.length,
3923
+ collection: collection0
3924
+ }
3925
+ collection0.indexes.push(index63)
3926
+
3927
+ // '@qvac/agent-hosts' collection key
3928
+ const collection64_key = new IndexEncoder([
3929
+ IndexEncoder.BUFFER,
3930
+ IndexEncoder.STRING
3931
+ ], { prefix: 64 })
3932
+
3933
+ function collection64_indexify (record) {
3934
+ const arr = []
3935
+
3936
+ const a0 = record.writerKey
3937
+ if (a0 === undefined) return arr
3938
+ arr.push(a0)
3939
+
3940
+ const a1 = record.agentId
3941
+ if (a1 === undefined) return arr
3942
+ arr.push(a1)
3943
+
3944
+ return arr
3945
+ }
3946
+
3947
+ // '@qvac/agent-hosts' value encoding
3948
+ const collection64_enc = getEncoding('@qvac/agent-host/hyperdb#64')
3949
+
3950
+ // '@qvac/agent-hosts' reconstruction function
3951
+ function collection64_reconstruct (schemaVersion, keyBuf, valueBuf) {
3952
+ const key = collection64_key.decode(keyBuf)
3953
+ setVersion(schemaVersion)
3954
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
3955
+ const type = c.uint.decode(state)
3956
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
3957
+ collection64.decodedVersion = c.uint.decode(state)
3958
+ const record = collection64_enc.decode(state)
3959
+ record.writerKey = key[0]
3960
+ record.agentId = key[1]
3961
+ return record
3962
+ }
3963
+ // '@qvac/agent-hosts' key reconstruction function
3964
+ function collection64_reconstruct_key (keyBuf) {
3965
+ const key = collection64_key.decode(keyBuf)
3966
+ return {
3967
+ writerKey: key[0],
3968
+ agentId: key[1]
3969
+ }
3970
+ }
3971
+
3972
+ // '@qvac/agent-hosts'
3973
+ const collection64 = {
3974
+ name: '@qvac/agent-hosts',
3975
+ id: 64,
3976
+ version: 11,
3977
+ encodeKey (record) {
3978
+ const key = [record.writerKey, record.agentId]
3979
+ return collection64_key.encode(key)
3980
+ },
3981
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
3982
+ return collection64_key.encodeRange({
3983
+ gt: gt ? collection64_indexify(gt) : null,
3984
+ lt: lt ? collection64_indexify(lt) : null,
3985
+ gte: gte ? collection64_indexify(gte) : null,
3986
+ lte: lte ? collection64_indexify(lte) : null
3987
+ })
3988
+ },
3989
+ encodeValue (schemaVersion, collectionVersion, record) {
3990
+ setVersion(schemaVersion)
3991
+ const state = { start: 0, end: 2, buffer: null }
3992
+ collection64_enc.preencode(state, record)
3993
+ state.buffer = b4a.allocUnsafe(state.end)
3994
+ state.buffer[state.start++] = 0
3995
+ state.buffer[state.start++] = collectionVersion
3996
+ collection64_enc.encode(state, record)
3997
+ return state.buffer
3998
+ },
3999
+ trigger: null,
4000
+ reconstruct: collection64_reconstruct,
4001
+ reconstructKey: collection64_reconstruct_key,
4002
+ indexes: [],
4003
+ decodedVersion: 0
4004
+ }
4005
+
4006
+ // '@qvac/agent-users' collection key
4007
+ const collection65_key = new IndexEncoder([
4008
+ IndexEncoder.STRING,
4009
+ IndexEncoder.BUFFER
4010
+ ], { prefix: 65 })
4011
+
4012
+ function collection65_indexify (record) {
4013
+ const arr = []
4014
+
4015
+ const a0 = record.agentId
4016
+ if (a0 === undefined) return arr
4017
+ arr.push(a0)
4018
+
4019
+ const a1 = record.userId
4020
+ if (a1 === undefined) return arr
4021
+ arr.push(a1)
4022
+
4023
+ return arr
4024
+ }
4025
+
4026
+ // '@qvac/agent-users' value encoding
4027
+ const collection65_enc = getEncoding('@qvac/agent-user/hyperdb#65')
4028
+
4029
+ // '@qvac/agent-users' reconstruction function
4030
+ function collection65_reconstruct (schemaVersion, keyBuf, valueBuf) {
4031
+ const key = collection65_key.decode(keyBuf)
4032
+ setVersion(schemaVersion)
4033
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
4034
+ const type = c.uint.decode(state)
4035
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
4036
+ collection65.decodedVersion = c.uint.decode(state)
4037
+ const record = collection65_enc.decode(state)
4038
+ record.agentId = key[0]
4039
+ record.userId = key[1]
4040
+ return record
4041
+ }
4042
+ // '@qvac/agent-users' key reconstruction function
4043
+ function collection65_reconstruct_key (keyBuf) {
4044
+ const key = collection65_key.decode(keyBuf)
4045
+ return {
4046
+ agentId: key[0],
4047
+ userId: key[1]
4048
+ }
4049
+ }
4050
+
4051
+ // '@qvac/agent-users'
4052
+ const collection65 = {
4053
+ name: '@qvac/agent-users',
4054
+ id: 65,
4055
+ version: 11,
4056
+ encodeKey (record) {
4057
+ const key = [record.agentId, record.userId]
4058
+ return collection65_key.encode(key)
4059
+ },
4060
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
4061
+ return collection65_key.encodeRange({
4062
+ gt: gt ? collection65_indexify(gt) : null,
4063
+ lt: lt ? collection65_indexify(lt) : null,
4064
+ gte: gte ? collection65_indexify(gte) : null,
4065
+ lte: lte ? collection65_indexify(lte) : null
4066
+ })
4067
+ },
4068
+ encodeValue (schemaVersion, collectionVersion, record) {
4069
+ setVersion(schemaVersion)
4070
+ const state = { start: 0, end: 2, buffer: null }
4071
+ collection65_enc.preencode(state, record)
4072
+ state.buffer = b4a.allocUnsafe(state.end)
4073
+ state.buffer[state.start++] = 0
4074
+ state.buffer[state.start++] = collectionVersion
4075
+ collection65_enc.encode(state, record)
4076
+ return state.buffer
4077
+ },
4078
+ trigger: null,
4079
+ reconstruct: collection65_reconstruct,
4080
+ reconstructKey: collection65_reconstruct_key,
4081
+ indexes: [],
4082
+ decodedVersion: 0
4083
+ }
4084
+
4085
+ // '@qvac/member-keys' collection key
4086
+ const collection66_key = new IndexEncoder([
4087
+ IndexEncoder.BUFFER
4088
+ ], { prefix: 66 })
4089
+
4090
+ function collection66_indexify (record) {
4091
+ const a = record.memberId
4092
+ return a === undefined ? [] : [a]
4093
+ }
4094
+
4095
+ // '@qvac/member-keys' value encoding
4096
+ const collection66_enc = getEncoding('@qvac/member-key/hyperdb#66')
4097
+
4098
+ // '@qvac/member-keys' reconstruction function
4099
+ function collection66_reconstruct (schemaVersion, keyBuf, valueBuf) {
4100
+ const key = collection66_key.decode(keyBuf)
4101
+ setVersion(schemaVersion)
4102
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
4103
+ const type = c.uint.decode(state)
4104
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
4105
+ collection66.decodedVersion = c.uint.decode(state)
4106
+ const record = collection66_enc.decode(state)
4107
+ record.memberId = key[0]
4108
+ return record
4109
+ }
4110
+ // '@qvac/member-keys' key reconstruction function
4111
+ function collection66_reconstruct_key (keyBuf) {
4112
+ const key = collection66_key.decode(keyBuf)
4113
+ return {
4114
+ memberId: key[0]
4115
+ }
4116
+ }
4117
+
4118
+ // '@qvac/member-keys'
4119
+ const collection66 = {
4120
+ name: '@qvac/member-keys',
4121
+ id: 66,
4122
+ version: 11,
4123
+ encodeKey (record) {
4124
+ const key = [record.memberId]
4125
+ return collection66_key.encode(key)
4126
+ },
4127
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
4128
+ return collection66_key.encodeRange({
4129
+ gt: gt ? collection66_indexify(gt) : null,
4130
+ lt: lt ? collection66_indexify(lt) : null,
4131
+ gte: gte ? collection66_indexify(gte) : null,
4132
+ lte: lte ? collection66_indexify(lte) : null
4133
+ })
4134
+ },
4135
+ encodeValue (schemaVersion, collectionVersion, record) {
4136
+ setVersion(schemaVersion)
4137
+ const state = { start: 0, end: 2, buffer: null }
4138
+ collection66_enc.preencode(state, record)
4139
+ state.buffer = b4a.allocUnsafe(state.end)
4140
+ state.buffer[state.start++] = 0
4141
+ state.buffer[state.start++] = collectionVersion
4142
+ collection66_enc.encode(state, record)
4143
+ return state.buffer
4144
+ },
4145
+ trigger: null,
4146
+ reconstruct: collection66_reconstruct,
4147
+ reconstructKey: collection66_reconstruct_key,
4148
+ indexes: [],
4149
+ decodedVersion: 0
4150
+ }
4151
+
4152
+ // '@qvac/project-keys' collection key
4153
+ const collection67_key = new IndexEncoder([
4154
+ IndexEncoder.BUFFER,
4155
+ IndexEncoder.BUFFER
4156
+ ], { prefix: 67 })
4157
+
4158
+ function collection67_indexify (record) {
4159
+ const arr = []
4160
+
4161
+ const a0 = record.projectId
4162
+ if (a0 === undefined) return arr
4163
+ arr.push(a0)
4164
+
4165
+ const a1 = record.memberId
4166
+ if (a1 === undefined) return arr
4167
+ arr.push(a1)
4168
+
4169
+ return arr
4170
+ }
4171
+
4172
+ // '@qvac/project-keys' value encoding
4173
+ const collection67_enc = getEncoding('@qvac/project-key/hyperdb#67')
4174
+
4175
+ // '@qvac/project-keys' reconstruction function
4176
+ function collection67_reconstruct (schemaVersion, keyBuf, valueBuf) {
4177
+ const key = collection67_key.decode(keyBuf)
4178
+ setVersion(schemaVersion)
4179
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
4180
+ const type = c.uint.decode(state)
4181
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
4182
+ collection67.decodedVersion = c.uint.decode(state)
4183
+ const record = collection67_enc.decode(state)
4184
+ record.projectId = key[0]
4185
+ record.memberId = key[1]
4186
+ return record
4187
+ }
4188
+ // '@qvac/project-keys' key reconstruction function
4189
+ function collection67_reconstruct_key (keyBuf) {
4190
+ const key = collection67_key.decode(keyBuf)
4191
+ return {
4192
+ projectId: key[0],
4193
+ memberId: key[1]
4194
+ }
4195
+ }
4196
+
4197
+ // '@qvac/project-keys'
4198
+ const collection67 = {
4199
+ name: '@qvac/project-keys',
4200
+ id: 67,
4201
+ version: 11,
4202
+ encodeKey (record) {
4203
+ const key = [record.projectId, record.memberId]
4204
+ return collection67_key.encode(key)
4205
+ },
4206
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
4207
+ return collection67_key.encodeRange({
4208
+ gt: gt ? collection67_indexify(gt) : null,
4209
+ lt: lt ? collection67_indexify(lt) : null,
4210
+ gte: gte ? collection67_indexify(gte) : null,
4211
+ lte: lte ? collection67_indexify(lte) : null
4212
+ })
4213
+ },
4214
+ encodeValue (schemaVersion, collectionVersion, record) {
4215
+ setVersion(schemaVersion)
4216
+ const state = { start: 0, end: 2, buffer: null }
4217
+ collection67_enc.preencode(state, record)
4218
+ state.buffer = b4a.allocUnsafe(state.end)
4219
+ state.buffer[state.start++] = 0
4220
+ state.buffer[state.start++] = collectionVersion
4221
+ collection67_enc.encode(state, record)
4222
+ return state.buffer
4223
+ },
4224
+ trigger: null,
4225
+ reconstruct: collection67_reconstruct,
4226
+ reconstructKey: collection67_reconstruct_key,
4227
+ indexes: [],
4228
+ decodedVersion: 0
4229
+ }
4230
+
4231
+ // '@qvac/project-host-keys' collection key
4232
+ const collection68_key = new IndexEncoder([
4233
+ IndexEncoder.BUFFER,
4234
+ IndexEncoder.BUFFER
4235
+ ], { prefix: 68 })
4236
+
4237
+ function collection68_indexify (record) {
4238
+ const arr = []
4239
+
4240
+ const a0 = record.projectId
4241
+ if (a0 === undefined) return arr
4242
+ arr.push(a0)
4243
+
4244
+ const a1 = record.deviceId
4245
+ if (a1 === undefined) return arr
4246
+ arr.push(a1)
4247
+
4248
+ return arr
4249
+ }
4250
+
4251
+ // '@qvac/project-host-keys' value encoding
4252
+ const collection68_enc = getEncoding('@qvac/project-host-key/hyperdb#68')
4253
+
4254
+ // '@qvac/project-host-keys' reconstruction function
4255
+ function collection68_reconstruct (schemaVersion, keyBuf, valueBuf) {
4256
+ const key = collection68_key.decode(keyBuf)
4257
+ setVersion(schemaVersion)
4258
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
4259
+ const type = c.uint.decode(state)
4260
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
4261
+ collection68.decodedVersion = c.uint.decode(state)
4262
+ const record = collection68_enc.decode(state)
4263
+ record.projectId = key[0]
4264
+ record.deviceId = key[1]
4265
+ return record
4266
+ }
4267
+ // '@qvac/project-host-keys' key reconstruction function
4268
+ function collection68_reconstruct_key (keyBuf) {
4269
+ const key = collection68_key.decode(keyBuf)
4270
+ return {
4271
+ projectId: key[0],
4272
+ deviceId: key[1]
4273
+ }
4274
+ }
4275
+
4276
+ // '@qvac/project-host-keys'
4277
+ const collection68 = {
4278
+ name: '@qvac/project-host-keys',
4279
+ id: 68,
4280
+ version: 11,
4281
+ encodeKey (record) {
4282
+ const key = [record.projectId, record.deviceId]
4283
+ return collection68_key.encode(key)
4284
+ },
4285
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
4286
+ return collection68_key.encodeRange({
4287
+ gt: gt ? collection68_indexify(gt) : null,
4288
+ lt: lt ? collection68_indexify(lt) : null,
4289
+ gte: gte ? collection68_indexify(gte) : null,
4290
+ lte: lte ? collection68_indexify(lte) : null
4291
+ })
4292
+ },
4293
+ encodeValue (schemaVersion, collectionVersion, record) {
4294
+ setVersion(schemaVersion)
4295
+ const state = { start: 0, end: 2, buffer: null }
4296
+ collection68_enc.preencode(state, record)
4297
+ state.buffer = b4a.allocUnsafe(state.end)
4298
+ state.buffer[state.start++] = 0
4299
+ state.buffer[state.start++] = collectionVersion
4300
+ collection68_enc.encode(state, record)
4301
+ return state.buffer
4302
+ },
4303
+ trigger: null,
4304
+ reconstruct: collection68_reconstruct,
4305
+ reconstructKey: collection68_reconstruct_key,
4306
+ indexes: [],
4307
+ decodedVersion: 0
4308
+ }
4309
+
4310
+ // '@qvac/project-device-keys' collection key
4311
+ const collection69_key = new IndexEncoder([
4312
+ IndexEncoder.BUFFER,
4313
+ IndexEncoder.BUFFER
4314
+ ], { prefix: 69 })
4315
+
4316
+ function collection69_indexify (record) {
4317
+ const arr = []
4318
+
4319
+ const a0 = record.projectId
4320
+ if (a0 === undefined) return arr
4321
+ arr.push(a0)
4322
+
4323
+ const a1 = record.deviceId
4324
+ if (a1 === undefined) return arr
4325
+ arr.push(a1)
4326
+
4327
+ return arr
4328
+ }
4329
+
4330
+ // '@qvac/project-device-keys' value encoding
4331
+ const collection69_enc = getEncoding('@qvac/project-device-key/hyperdb#69')
4332
+
4333
+ // '@qvac/project-device-keys' reconstruction function
4334
+ function collection69_reconstruct (schemaVersion, keyBuf, valueBuf) {
4335
+ const key = collection69_key.decode(keyBuf)
4336
+ setVersion(schemaVersion)
4337
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
4338
+ const type = c.uint.decode(state)
4339
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
4340
+ collection69.decodedVersion = c.uint.decode(state)
4341
+ const record = collection69_enc.decode(state)
4342
+ record.projectId = key[0]
4343
+ record.deviceId = key[1]
4344
+ return record
4345
+ }
4346
+ // '@qvac/project-device-keys' key reconstruction function
4347
+ function collection69_reconstruct_key (keyBuf) {
4348
+ const key = collection69_key.decode(keyBuf)
4349
+ return {
4350
+ projectId: key[0],
4351
+ deviceId: key[1]
4352
+ }
4353
+ }
4354
+
4355
+ // '@qvac/project-device-keys'
4356
+ const collection69 = {
4357
+ name: '@qvac/project-device-keys',
4358
+ id: 69,
4359
+ version: 11,
4360
+ encodeKey (record) {
4361
+ const key = [record.projectId, record.deviceId]
4362
+ return collection69_key.encode(key)
4363
+ },
4364
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
4365
+ return collection69_key.encodeRange({
4366
+ gt: gt ? collection69_indexify(gt) : null,
4367
+ lt: lt ? collection69_indexify(lt) : null,
4368
+ gte: gte ? collection69_indexify(gte) : null,
4369
+ lte: lte ? collection69_indexify(lte) : null
4370
+ })
4371
+ },
4372
+ encodeValue (schemaVersion, collectionVersion, record) {
4373
+ setVersion(schemaVersion)
4374
+ const state = { start: 0, end: 2, buffer: null }
4375
+ collection69_enc.preencode(state, record)
4376
+ state.buffer = b4a.allocUnsafe(state.end)
4377
+ state.buffer[state.start++] = 0
4378
+ state.buffer[state.start++] = collectionVersion
4379
+ collection69_enc.encode(state, record)
4380
+ return state.buffer
4381
+ },
4382
+ trigger: null,
4383
+ reconstruct: collection69_reconstruct,
4384
+ reconstructKey: collection69_reconstruct_key,
4385
+ indexes: [],
4386
+ decodedVersion: 0
4387
+ }
4388
+
4389
+ // '@qvac/skill-secrets' collection key
4390
+ const collection70_key = new IndexEncoder([
4391
+ IndexEncoder.STRING
4392
+ ], { prefix: 70 })
4393
+
4394
+ function collection70_indexify (record) {
4395
+ const a = record.key
4396
+ return a === undefined ? [] : [a]
4397
+ }
4398
+
4399
+ // '@qvac/skill-secrets' value encoding
4400
+ const collection70_enc = getEncoding('@qvac/skill-secret/hyperdb#70')
4401
+
4402
+ // '@qvac/skill-secrets' reconstruction function
4403
+ function collection70_reconstruct (schemaVersion, keyBuf, valueBuf) {
4404
+ const key = collection70_key.decode(keyBuf)
4405
+ setVersion(schemaVersion)
4406
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
4407
+ const type = c.uint.decode(state)
4408
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
4409
+ collection70.decodedVersion = c.uint.decode(state)
4410
+ const record = collection70_enc.decode(state)
4411
+ record.key = key[0]
4412
+ return record
4413
+ }
4414
+ // '@qvac/skill-secrets' key reconstruction function
4415
+ function collection70_reconstruct_key (keyBuf) {
4416
+ const key = collection70_key.decode(keyBuf)
4417
+ return {
4418
+ key: key[0]
4419
+ }
4420
+ }
4421
+
4422
+ // '@qvac/skill-secrets'
4423
+ const collection70 = {
4424
+ name: '@qvac/skill-secrets',
4425
+ id: 70,
4426
+ version: 11,
4427
+ encodeKey (record) {
4428
+ const key = [record.key]
4429
+ return collection70_key.encode(key)
4430
+ },
4431
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
4432
+ return collection70_key.encodeRange({
4433
+ gt: gt ? collection70_indexify(gt) : null,
4434
+ lt: lt ? collection70_indexify(lt) : null,
4435
+ gte: gte ? collection70_indexify(gte) : null,
4436
+ lte: lte ? collection70_indexify(lte) : null
4437
+ })
4438
+ },
4439
+ encodeValue (schemaVersion, collectionVersion, record) {
4440
+ setVersion(schemaVersion)
4441
+ const state = { start: 0, end: 2, buffer: null }
4442
+ collection70_enc.preencode(state, record)
4443
+ state.buffer = b4a.allocUnsafe(state.end)
4444
+ state.buffer[state.start++] = 0
4445
+ state.buffer[state.start++] = collectionVersion
4446
+ collection70_enc.encode(state, record)
4447
+ return state.buffer
4448
+ },
4449
+ trigger: null,
4450
+ reconstruct: collection70_reconstruct,
4451
+ reconstructKey: collection70_reconstruct_key,
4452
+ indexes: [],
4453
+ decodedVersion: 0
4454
+ }
4455
+
2941
4456
  const collections = [
2942
4457
  collection0,
2943
4458
  collection1,
@@ -2964,7 +4479,26 @@ const collections = [
2964
4479
  collection45,
2965
4480
  collection46,
2966
4481
  collection47,
2967
- collection48
4482
+ collection48,
4483
+ collection49,
4484
+ collection50,
4485
+ collection51,
4486
+ collection52,
4487
+ collection53,
4488
+ collection54,
4489
+ collection55,
4490
+ collection56,
4491
+ collection57,
4492
+ collection59,
4493
+ collection61,
4494
+ collection62,
4495
+ collection64,
4496
+ collection65,
4497
+ collection66,
4498
+ collection67,
4499
+ collection68,
4500
+ collection69,
4501
+ collection70
2968
4502
  ]
2969
4503
 
2970
4504
  const indexes = [
@@ -2990,7 +4524,10 @@ const indexes = [
2990
4524
  index36,
2991
4525
  index38,
2992
4526
  index39,
2993
- index43
4527
+ index43,
4528
+ index58,
4529
+ index60,
4530
+ index63
2994
4531
  ]
2995
4532
 
2996
4533
  export default { versions, collections, indexes, resolveCollection, resolveIndex }
@@ -3023,6 +4560,25 @@ function resolveCollection (name) {
3023
4560
  case '@qvac/member-removals': return collection46
3024
4561
  case '@qvac/mesh-founders': return collection47
3025
4562
  case '@qvac/purged-chats': return collection48
4563
+ case '@qvac/mesh-names': return collection49
4564
+ case '@qvac/mesh-seeds': return collection50
4565
+ case '@qvac/mesh-rules': return collection51
4566
+ case '@qvac/public-meshes': return collection52
4567
+ case '@qvac/workspace': return collection53
4568
+ case '@qvac/member-roles': return collection54
4569
+ case '@qvac/public-seeds': return collection55
4570
+ case '@qvac/projects': return collection56
4571
+ case '@qvac/project-members': return collection57
4572
+ case '@qvac/project-order': return collection59
4573
+ case '@qvac/chat-reads': return collection61
4574
+ case '@qvac/knowledge-caps': return collection62
4575
+ case '@qvac/agent-hosts': return collection64
4576
+ case '@qvac/agent-users': return collection65
4577
+ case '@qvac/member-keys': return collection66
4578
+ case '@qvac/project-keys': return collection67
4579
+ case '@qvac/project-host-keys': return collection68
4580
+ case '@qvac/project-device-keys': return collection69
4581
+ case '@qvac/skill-secrets': return collection70
3026
4582
  default: return null
3027
4583
  }
3028
4584
  }
@@ -3052,6 +4608,9 @@ function resolveIndex (name) {
3052
4608
  case '@qvac/agents-by-provider': return index38
3053
4609
  case '@qvac/default-agents': return index39
3054
4610
  case '@qvac/live-devices-by-writer-key': return index43
4611
+ case '@qvac/active-knowledge-base': return index58
4612
+ case '@qvac/run-request-by-run': return index60
4613
+ case '@qvac/live-model-requests': return index63
3055
4614
  default: return null
3056
4615
  }
3057
4616
  }