@qvac/core 0.11.0 → 0.11.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 (104) hide show
  1. package/CHANGELOG.md +148 -1
  2. package/README.md +19 -16
  3. package/dist-lib/index.d.ts +1 -0
  4. package/dist-lib/index.js +1 -0
  5. package/dist-lib/lib/api/chunk-delta.d.ts +6 -2
  6. package/dist-lib/lib/api/chunk-delta.js +69 -7
  7. package/dist-lib/lib/api/chunks.js +10 -4
  8. package/dist-lib/lib/api/config.d.ts +4 -1
  9. package/dist-lib/lib/api/config.js +23 -4
  10. package/dist-lib/lib/api/devices.js +3 -1
  11. package/dist-lib/lib/api/rag.js +11 -7
  12. package/dist-lib/lib/assistant/harness.d.ts +3 -1
  13. package/dist-lib/lib/assistant/harness.js +10 -0
  14. package/dist-lib/lib/assistant/history.d.ts +1 -0
  15. package/dist-lib/lib/assistant/history.js +9 -3
  16. package/dist-lib/lib/assistant/message.js +2 -2
  17. package/dist-lib/lib/assistant-tree.d.ts +2 -0
  18. package/dist-lib/lib/assistant-tree.js +5 -3
  19. package/dist-lib/lib/assistant.d.ts +6 -1
  20. package/dist-lib/lib/assistant.js +77 -24
  21. package/dist-lib/lib/client.js +10 -1
  22. package/dist-lib/lib/compaction.d.ts +2 -1
  23. package/dist-lib/lib/compaction.js +14 -4
  24. package/dist-lib/lib/constants.d.ts +3 -0
  25. package/dist-lib/lib/constants.js +3 -0
  26. package/dist-lib/lib/core/archived-mesh.js +1 -0
  27. package/dist-lib/lib/core/chat-activity.js +12 -15
  28. package/dist-lib/lib/core/chunk.d.ts +14 -3
  29. package/dist-lib/lib/core/chunk.js +112 -22
  30. package/dist-lib/lib/core/collections.d.ts +1 -0
  31. package/dist-lib/lib/core/collections.js +1 -0
  32. package/dist-lib/lib/core/config-value.d.ts +6 -0
  33. package/dist-lib/lib/core/config-value.js +14 -0
  34. package/dist-lib/lib/core/contract/chat.d.ts +1 -0
  35. package/dist-lib/lib/core/contract/chat.js +8 -1
  36. package/dist-lib/lib/core/contract/chunks.js +20 -6
  37. package/dist-lib/lib/core/contract/compute.d.ts +1 -1
  38. package/dist-lib/lib/core/contract/compute.js +2 -1
  39. package/dist-lib/lib/core/contract/devices.js +3 -2
  40. package/dist-lib/lib/core/departures.js +1 -0
  41. package/dist-lib/lib/core/devices.d.ts +2 -1
  42. package/dist-lib/lib/core/devices.js +4 -2
  43. package/dist-lib/lib/core/files/attachments.js +3 -3
  44. package/dist-lib/lib/core/files/index.d.ts +1 -1
  45. package/dist-lib/lib/core/files/index.js +3 -2
  46. package/dist-lib/lib/core/files/processing/index.d.ts +1 -0
  47. package/dist-lib/lib/core/files/processing/index.js +8 -0
  48. package/dist-lib/lib/core/files/processing/settle.d.ts +1 -0
  49. package/dist-lib/lib/core/files/processing/settle.js +20 -13
  50. package/dist-lib/lib/core/files/rag/index.d.ts +1 -1
  51. package/dist-lib/lib/core/files/rag/index.js +1 -1
  52. package/dist-lib/lib/core/files/rag/retrieval/full-text.d.ts +1 -0
  53. package/dist-lib/lib/core/files/rag/retrieval/full-text.js +4 -1
  54. package/dist-lib/lib/core/hosted-agents.d.ts +3 -0
  55. package/dist-lib/lib/core/hosted-agents.js +19 -0
  56. package/dist-lib/lib/core/inference-calls-receiver.js +2 -2
  57. package/dist-lib/lib/core/known-sender.d.ts +3 -0
  58. package/dist-lib/lib/core/known-sender.js +26 -0
  59. package/dist-lib/lib/core/local/index.d.ts +2 -0
  60. package/dist-lib/lib/core/local/index.js +17 -10
  61. package/dist-lib/lib/core/mesh.d.ts +5 -1
  62. package/dist-lib/lib/core/mesh.js +6 -6
  63. package/dist-lib/lib/core/migrations/chat-chunks.d.ts +4 -0
  64. package/dist-lib/lib/core/migrations/chat-chunks.js +43 -0
  65. package/dist-lib/lib/core/notification.js +16 -13
  66. package/dist-lib/lib/core/skill-overlay-receiver.js +2 -2
  67. package/dist-lib/lib/core/skill-secrets.js +2 -2
  68. package/dist-lib/lib/core.d.ts +17 -1
  69. package/dist-lib/lib/core.js +55 -5
  70. package/dist-lib/lib/credential-pusher.d.ts +11 -7
  71. package/dist-lib/lib/credential-pusher.js +40 -8
  72. package/dist-lib/lib/device-tree.d.ts +18 -0
  73. package/dist-lib/lib/device-tree.js +32 -0
  74. package/dist-lib/lib/integrations/setup-routes.js +7 -5
  75. package/dist-lib/lib/kv-cache-retention.d.ts +34 -0
  76. package/dist-lib/lib/kv-cache-retention.js +98 -0
  77. package/dist-lib/schema/content.js +2 -1
  78. package/dist-lib/schema/engine.js +20 -3
  79. package/dist-lib/schema/field-order.js +8 -1
  80. package/dist-lib/schema/local.js +7 -3
  81. package/dist-lib/schema/qvac.js +23 -4
  82. package/dist-lib/spec/hrpc/messages.js +1240 -1194
  83. package/dist-lib/spec/hyperschema/index.js +1240 -1194
  84. package/dist-lib/spec/hyperschema/schema.json +49 -1
  85. package/dist-lib/spec/hyperschema/types.d.ts +12 -1
  86. package/dist-lib/spec/local/hyperdb/messages.js +70 -20
  87. package/dist-lib/spec/local/hyperschema/index.js +36 -11
  88. package/dist-lib/spec/local/hyperschema/schema.json +21 -1
  89. package/dist-lib/spec/local/hyperschema/types.d.ts +5 -1
  90. package/dist-lib/spec/mesh/hyperdb/db.json +17 -1
  91. package/dist-lib/spec/mesh/hyperdb/index.js +83 -2
  92. package/dist-lib/spec/mesh/hyperdb/messages.js +602 -264
  93. package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +7 -1
  94. package/dist-lib/spec/mesh/hyperdispatch/index.js +18 -1
  95. package/dist-lib/spec/mesh/hyperdispatch/messages.js +137 -14
  96. package/dist-lib/spec/mesh/hyperschema/index.js +137 -14
  97. package/dist-lib/spec/mesh/hyperschema/schema.json +79 -1
  98. package/dist-lib/spec/mesh/hyperschema/types.d.ts +21 -1
  99. package/package.json +13 -9
  100. package/tui/app.mjs +743 -266
  101. package/tui/boot.mjs +2 -2
  102. package/tui/lib/connect-sheet.mjs +350 -0
  103. package/tui/lib/setup.mjs +59 -25
  104. package/tui/lib/skill-connect.mjs +145 -0
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 10,
2
+ "version": 11,
3
3
  "offset": 0,
4
4
  "schema": [
5
5
  {
@@ -253,6 +253,12 @@
253
253
  "name": "@qvac/put-mesh-seed",
254
254
  "requestType": "@qvac/mesh-seed",
255
255
  "version": 10
256
+ },
257
+ {
258
+ "id": 42,
259
+ "name": "@qvac/reindex-chat-chunks",
260
+ "requestType": "@qvac/reindex-chat-chunks-operation",
261
+ "version": 11
256
262
  }
257
263
  ]
258
264
  }
@@ -50,8 +50,9 @@ class Router {
50
50
  this._handler39 = null
51
51
  this._handler40 = null
52
52
  this._handler41 = null
53
+ this._handler42 = null
53
54
 
54
- this._missing = 42
55
+ this._missing = 43
55
56
  }
56
57
 
57
58
  add (name, handler) {
@@ -182,6 +183,9 @@ class Router {
182
183
  case '@qvac/put-mesh-seed':
183
184
  this._handler41 = handler
184
185
  break
186
+ case '@qvac/reindex-chat-chunks':
187
+ this._handler42 = handler
188
+ break
185
189
  default:
186
190
  throw DispatchError.NONEXISTENT_ROUTE(name)
187
191
  }
@@ -231,6 +235,7 @@ class Router {
231
235
  assert(this._handler39 !== null, 'Missing handler for "@qvac/name-mesh"')
232
236
  assert(this._handler40 !== null, 'Missing handler for "@qvac/open-join"')
233
237
  assert(this._handler41 !== null, 'Missing handler for "@qvac/put-mesh-seed"')
238
+ assert(this._handler42 !== null, 'Missing handler for "@qvac/reindex-chat-chunks"')
234
239
  }
235
240
 
236
241
  async dispatch (message, context) {
@@ -327,6 +332,8 @@ class Router {
327
332
  return this._handler40(op.value, context)
328
333
  case 41:
329
334
  return this._handler41(op.value, context)
335
+ case 42:
336
+ return this._handler42(op.value, context)
330
337
  default:
331
338
  throw DispatchError.HANDLER_NOT_FOUND_BY_ID(op.id)
332
339
  }
@@ -612,6 +619,12 @@ const route41 = {
612
619
  enc: getEncoding('@qvac/mesh-seed')
613
620
  }
614
621
 
622
+ const route42 = {
623
+ name: '@qvac/reindex-chat-chunks',
624
+ id: 42,
625
+ enc: getEncoding('@qvac/reindex-chat-chunks-operation')
626
+ }
627
+
615
628
  function getRouteByName (name) {
616
629
  switch (name) {
617
630
  case '@qvac/append-chunk':
@@ -698,6 +711,8 @@ function getRouteByName (name) {
698
711
  return route40
699
712
  case '@qvac/put-mesh-seed':
700
713
  return route41
714
+ case '@qvac/reindex-chat-chunks':
715
+ return route42
701
716
  default:
702
717
  throw DispatchError.ROUTE_NOT_FOUND_BY_NAME(name)
703
718
  }
@@ -789,6 +804,8 @@ function getRouteById (id) {
789
804
  return route40
790
805
  case 41:
791
806
  return route41
807
+ case 42:
808
+ return route42
792
809
  default:
793
810
  throw DispatchError.HANDLER_NOT_FOUND_BY_ID(id)
794
811
  }
@@ -1,12 +1,12 @@
1
1
  // This file is autogenerated by the hyperschema compiler
2
- // Schema Version: 16
2
+ // Schema Version: 18
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 = 16
9
+ const VERSION = 18
10
10
 
11
11
  // eslint-disable-next-line no-unused-vars
12
12
  let version = VERSION
@@ -1047,7 +1047,8 @@ const encoding27 = {
1047
1047
  ((version >= 10 && m.capability) ? 524288 : 0) |
1048
1048
  ((version >= 10 && m.capabilityArgs) ? 1048576 : 0) |
1049
1049
  ((version >= 10 && m.enhance) ? 2097152 : 0) |
1050
- ((version >= 16 && m.sourceId) ? 4194304 : 0)
1050
+ ((version >= 16 && m.sourceId) ? 4194304 : 0) |
1051
+ ((version >= 18 && m.falsyResult) ? 8388608 : 0)
1051
1052
 
1052
1053
  c.string.preencode(state, m.id)
1053
1054
  c.string.preencode(state, m.chatId)
@@ -1080,6 +1081,7 @@ const encoding27 = {
1080
1081
  if (version >= 10 && m.capabilityArgs) c.json.preencode(state, m.capabilityArgs)
1081
1082
  if (version >= 10 && m.enhance) encoding141.preencode(state, m.enhance)
1082
1083
  if (version >= 16 && m.sourceId) c.string.preencode(state, m.sourceId)
1084
+ if (version >= 18 && m.falsyResult) c.string.preencode(state, m.falsyResult)
1083
1085
  },
1084
1086
  encode(state, m) {
1085
1087
  const flags =
@@ -1105,7 +1107,8 @@ const encoding27 = {
1105
1107
  ((version >= 10 && m.capability) ? 524288 : 0) |
1106
1108
  ((version >= 10 && m.capabilityArgs) ? 1048576 : 0) |
1107
1109
  ((version >= 10 && m.enhance) ? 2097152 : 0) |
1108
- ((version >= 16 && m.sourceId) ? 4194304 : 0)
1110
+ ((version >= 16 && m.sourceId) ? 4194304 : 0) |
1111
+ ((version >= 18 && m.falsyResult) ? 8388608 : 0)
1109
1112
 
1110
1113
  c.string.encode(state, m.id)
1111
1114
  c.string.encode(state, m.chatId)
@@ -1138,6 +1141,7 @@ const encoding27 = {
1138
1141
  if (version >= 10 && m.capabilityArgs) c.json.encode(state, m.capabilityArgs)
1139
1142
  if (version >= 10 && m.enhance) encoding141.encode(state, m.enhance)
1140
1143
  if (version >= 16 && m.sourceId) c.string.encode(state, m.sourceId)
1144
+ if (version >= 18 && m.falsyResult) c.string.encode(state, m.falsyResult)
1141
1145
  },
1142
1146
  decode(state) {
1143
1147
  const r0 = c.string.decode(state)
@@ -1174,7 +1178,8 @@ const encoding27 = {
1174
1178
  capability: (version >= 10 && (flags & 524288) !== 0) ? c.string.decode(state) : null,
1175
1179
  capabilityArgs: (version >= 10 && (flags & 1048576) !== 0) ? c.json.decode(state) : null,
1176
1180
  enhance: (version >= 10 && (flags & 2097152) !== 0) ? encoding141.decode(state) : null,
1177
- sourceId: (version >= 16 && (flags & 4194304) !== 0) ? c.string.decode(state) : null
1181
+ sourceId: (version >= 16 && (flags & 4194304) !== 0) ? c.string.decode(state) : null,
1182
+ falsyResult: (version >= 18 && (flags & 8388608) !== 0) ? c.string.decode(state) : null
1178
1183
  }
1179
1184
  }
1180
1185
  }
@@ -1318,7 +1323,8 @@ const encoding31 = {
1318
1323
  ((version >= 10 && m.capability) ? 262144 : 0) |
1319
1324
  ((version >= 10 && m.capabilityArgs) ? 524288 : 0) |
1320
1325
  ((version >= 10 && m.enhance) ? 1048576 : 0) |
1321
- ((version >= 16 && m.sourceId) ? 2097152 : 0)
1326
+ ((version >= 16 && m.sourceId) ? 2097152 : 0) |
1327
+ ((version >= 18 && m.falsyResult) ? 4194304 : 0)
1322
1328
 
1323
1329
  c.string.preencode(state, m.id)
1324
1330
  c.string.preencode(state, m.chatId)
@@ -1349,6 +1355,7 @@ const encoding31 = {
1349
1355
  if (version >= 10 && m.capabilityArgs) c.json.preencode(state, m.capabilityArgs)
1350
1356
  if (version >= 10 && m.enhance) encoding141.preencode(state, m.enhance)
1351
1357
  if (version >= 16 && m.sourceId) c.string.preencode(state, m.sourceId)
1358
+ if (version >= 18 && m.falsyResult) c.string.preencode(state, m.falsyResult)
1352
1359
  },
1353
1360
  encode(state, m) {
1354
1361
  const flags =
@@ -1373,7 +1380,8 @@ const encoding31 = {
1373
1380
  ((version >= 10 && m.capability) ? 262144 : 0) |
1374
1381
  ((version >= 10 && m.capabilityArgs) ? 524288 : 0) |
1375
1382
  ((version >= 10 && m.enhance) ? 1048576 : 0) |
1376
- ((version >= 16 && m.sourceId) ? 2097152 : 0)
1383
+ ((version >= 16 && m.sourceId) ? 2097152 : 0) |
1384
+ ((version >= 18 && m.falsyResult) ? 4194304 : 0)
1377
1385
 
1378
1386
  c.string.encode(state, m.id)
1379
1387
  c.string.encode(state, m.chatId)
@@ -1404,6 +1412,7 @@ const encoding31 = {
1404
1412
  if (version >= 10 && m.capabilityArgs) c.json.encode(state, m.capabilityArgs)
1405
1413
  if (version >= 10 && m.enhance) encoding141.encode(state, m.enhance)
1406
1414
  if (version >= 16 && m.sourceId) c.string.encode(state, m.sourceId)
1415
+ if (version >= 18 && m.falsyResult) c.string.encode(state, m.falsyResult)
1407
1416
  },
1408
1417
  decode(state) {
1409
1418
  const r0 = c.string.decode(state)
@@ -1438,7 +1447,8 @@ const encoding31 = {
1438
1447
  capability: (version >= 10 && (flags & 262144) !== 0) ? c.string.decode(state) : null,
1439
1448
  capabilityArgs: (version >= 10 && (flags & 524288) !== 0) ? c.json.decode(state) : null,
1440
1449
  enhance: (version >= 10 && (flags & 1048576) !== 0) ? encoding141.decode(state) : null,
1441
- sourceId: (version >= 16 && (flags & 2097152) !== 0) ? c.string.decode(state) : null
1450
+ sourceId: (version >= 16 && (flags & 2097152) !== 0) ? c.string.decode(state) : null,
1451
+ falsyResult: (version >= 18 && (flags & 4194304) !== 0) ? c.string.decode(state) : null
1442
1452
  }
1443
1453
  }
1444
1454
  }
@@ -2256,7 +2266,8 @@ const encoding47 = {
2256
2266
  ((version >= 4 && m.attestedAt) ? 65536 : 0) |
2257
2267
  ((version >= 7 && m.claimedMemberId) ? 131072 : 0) |
2258
2268
  ((version >= 7 && m.inviteToken) ? 262144 : 0) |
2259
- ((version >= 7 && m.deviceSignature) ? 524288 : 0)
2269
+ ((version >= 7 && m.deviceSignature) ? 524288 : 0) |
2270
+ ((version >= 17 && m.customModels) ? 1048576 : 0)
2260
2271
 
2261
2272
  c.fixed32.preencode(state, m.id)
2262
2273
  c.string.preencode(state, m.name)
@@ -2284,6 +2295,7 @@ const encoding47 = {
2284
2295
  if (version >= 7 && m.claimedMemberId) c.fixed32.preencode(state, m.claimedMemberId)
2285
2296
  if (version >= 7 && m.inviteToken) c.fixed32.preencode(state, m.inviteToken)
2286
2297
  if (version >= 7 && m.deviceSignature) c.buffer.preencode(state, m.deviceSignature)
2298
+ if (version >= 17 && m.customModels) encoding47_25.preencode(state, m.customModels)
2287
2299
  },
2288
2300
  encode(state, m) {
2289
2301
  const flags =
@@ -2306,7 +2318,8 @@ const encoding47 = {
2306
2318
  ((version >= 4 && m.attestedAt) ? 65536 : 0) |
2307
2319
  ((version >= 7 && m.claimedMemberId) ? 131072 : 0) |
2308
2320
  ((version >= 7 && m.inviteToken) ? 262144 : 0) |
2309
- ((version >= 7 && m.deviceSignature) ? 524288 : 0)
2321
+ ((version >= 7 && m.deviceSignature) ? 524288 : 0) |
2322
+ ((version >= 17 && m.customModels) ? 1048576 : 0)
2310
2323
 
2311
2324
  c.fixed32.encode(state, m.id)
2312
2325
  c.string.encode(state, m.name)
@@ -2334,6 +2347,7 @@ const encoding47 = {
2334
2347
  if (version >= 7 && m.claimedMemberId) c.fixed32.encode(state, m.claimedMemberId)
2335
2348
  if (version >= 7 && m.inviteToken) c.fixed32.encode(state, m.inviteToken)
2336
2349
  if (version >= 7 && m.deviceSignature) c.buffer.encode(state, m.deviceSignature)
2350
+ if (version >= 17 && m.customModels) encoding47_25.encode(state, m.customModels)
2337
2351
  },
2338
2352
  decode(state) {
2339
2353
  const r0 = c.fixed32.decode(state)
@@ -2369,7 +2383,8 @@ const encoding47 = {
2369
2383
  attestedAt: (version >= 4 && (flags & 65536) !== 0) ? c.uint.decode(state) : 0,
2370
2384
  claimedMemberId: (version >= 7 && (flags & 131072) !== 0) ? c.fixed32.decode(state) : null,
2371
2385
  inviteToken: (version >= 7 && (flags & 262144) !== 0) ? c.fixed32.decode(state) : null,
2372
- deviceSignature: (version >= 7 && (flags & 524288) !== 0) ? c.buffer.decode(state) : null
2386
+ deviceSignature: (version >= 7 && (flags & 524288) !== 0) ? c.buffer.decode(state) : null,
2387
+ customModels: (version >= 17 && (flags & 1048576) !== 0) ? encoding47_25.decode(state) : null
2373
2388
  }
2374
2389
  }
2375
2390
  }
@@ -2763,7 +2778,7 @@ const encoding59_5 = encoding43_6
2763
2778
  const encoding59 = {
2764
2779
  preencode(state, m) {
2765
2780
  c.fixed32.preencode(state, m.deviceId)
2766
- state.end++ // max flag is 32 so always one byte
2781
+ state.end++ // max flag is 64 so always one byte
2767
2782
 
2768
2783
  if (m.installedToolNames) encoding59_1.preencode(state, m.installedToolNames)
2769
2784
  if (m.installedSkillNames) encoding59_2.preencode(state, m.installedSkillNames)
@@ -2771,6 +2786,7 @@ const encoding59 = {
2771
2786
  if (m.cachedModelNames) encoding59_4.preencode(state, m.cachedModelNames)
2772
2787
  if (version >= 3 && m.readySkillNames) encoding59_5.preencode(state, m.readySkillNames)
2773
2788
  if (version >= 4 && m.toolCatalog) encoding59_6.preencode(state, m.toolCatalog)
2789
+ if (version >= 17 && m.customModels) encoding59_7.preencode(state, m.customModels)
2774
2790
  },
2775
2791
  encode(state, m) {
2776
2792
  const flags =
@@ -2779,7 +2795,8 @@ const encoding59 = {
2779
2795
  (m.installedModelNames ? 4 : 0) |
2780
2796
  (m.cachedModelNames ? 8 : 0) |
2781
2797
  ((version >= 3 && m.readySkillNames) ? 16 : 0) |
2782
- ((version >= 4 && m.toolCatalog) ? 32 : 0)
2798
+ ((version >= 4 && m.toolCatalog) ? 32 : 0) |
2799
+ ((version >= 17 && m.customModels) ? 64 : 0)
2783
2800
 
2784
2801
  c.fixed32.encode(state, m.deviceId)
2785
2802
  c.uint.encode(state, flags)
@@ -2790,6 +2807,7 @@ const encoding59 = {
2790
2807
  if (m.cachedModelNames) encoding59_4.encode(state, m.cachedModelNames)
2791
2808
  if (version >= 3 && m.readySkillNames) encoding59_5.encode(state, m.readySkillNames)
2792
2809
  if (version >= 4 && m.toolCatalog) encoding59_6.encode(state, m.toolCatalog)
2810
+ if (version >= 17 && m.customModels) encoding59_7.encode(state, m.customModels)
2793
2811
  },
2794
2812
  decode(state) {
2795
2813
  const r0 = c.fixed32.decode(state)
@@ -2803,7 +2821,8 @@ const encoding59 = {
2803
2821
  installedModelNames: (flags & 4) !== 0 ? encoding59_3.decode(state) : null,
2804
2822
  cachedModelNames: (flags & 8) !== 0 ? encoding59_4.decode(state) : null,
2805
2823
  readySkillNames: (version >= 3 && (flags & 16) !== 0) ? encoding59_5.decode(state) : null,
2806
- toolCatalog: (version >= 4 && (flags & 32) !== 0) ? encoding59_6.decode(state) : null
2824
+ toolCatalog: (version >= 4 && (flags & 32) !== 0) ? encoding59_6.decode(state) : null,
2825
+ customModels: (version >= 17 && (flags & 64) !== 0) ? encoding59_7.decode(state) : null
2807
2826
  }
2808
2827
  }
2809
2828
  }
@@ -7109,12 +7128,110 @@ const encoding178 = {
7109
7128
  }
7110
7129
  }
7111
7130
 
7131
+ // @qvac/custom-model-report-entry
7132
+ const encoding179 = {
7133
+ preencode(state, m) {
7134
+ c.string.preencode(state, m.name)
7135
+ c.string.preencode(state, m.label)
7136
+ state.end++ // max flag is 2 so always one byte
7137
+
7138
+ if (version >= 17 && m.taskType) c.string.preencode(state, m.taskType)
7139
+ if (version >= 17 && m.expectedSize) c.uint.preencode(state, m.expectedSize)
7140
+ },
7141
+ encode(state, m) {
7142
+ const flags =
7143
+ ((version >= 17 && m.taskType) ? 1 : 0) | ((version >= 17 && m.expectedSize) ? 2 : 0)
7144
+
7145
+ c.string.encode(state, m.name)
7146
+ c.string.encode(state, m.label)
7147
+ c.uint.encode(state, flags)
7148
+
7149
+ if (version >= 17 && m.taskType) c.string.encode(state, m.taskType)
7150
+ if (version >= 17 && m.expectedSize) c.uint.encode(state, m.expectedSize)
7151
+ },
7152
+ decode(state) {
7153
+ const r0 = c.string.decode(state)
7154
+ const r1 = c.string.decode(state)
7155
+ const flags = c.uint.decode(state)
7156
+
7157
+ return {
7158
+ name: r0,
7159
+ label: r1,
7160
+ taskType: (version >= 17 && (flags & 1) !== 0) ? c.string.decode(state) : null,
7161
+ expectedSize: (version >= 17 && (flags & 2) !== 0) ? c.uint.decode(state) : 0
7162
+ }
7163
+ }
7164
+ }
7165
+
7166
+ // @qvac/reindex-chat-chunks-operation-v1
7167
+ const encoding180 = {
7168
+ preencode(state, m) {
7169
+ c.string.preencode(state, m.chatId)
7170
+ },
7171
+ encode(state, m) {
7172
+ c.string.encode(state, m.chatId)
7173
+ },
7174
+ decode(state) {
7175
+ const r0 = c.string.decode(state)
7176
+
7177
+ return {
7178
+ version: 0,
7179
+ chatId: r0
7180
+ }
7181
+ }
7182
+ }
7183
+
7184
+ // @qvac/reindex-chat-chunks-operation
7185
+ const encoding181 = {
7186
+ preencode(state, m) {
7187
+ const v = m.version ?? 1
7188
+ c.uint.preencode(state, v)
7189
+ switch (v) {
7190
+ case 0:
7191
+ case 1:
7192
+ encoding180.preencode(state, m)
7193
+ break
7194
+ default:
7195
+ throw new Error('Unsupported version')
7196
+ }
7197
+ },
7198
+ encode(state, m) {
7199
+ const v = m.version ?? 1
7200
+ c.uint.encode(state, v)
7201
+ switch (v) {
7202
+ case 0:
7203
+ case 1:
7204
+ encoding180.encode(state, m)
7205
+ break
7206
+ default:
7207
+ throw new Error('Unsupported version')
7208
+ }
7209
+ },
7210
+ decode(state) {
7211
+ const v = c.uint.decode(state)
7212
+ switch (v) {
7213
+ case 0:
7214
+ case 1: {
7215
+ const decoded = encoding180.decode(state)
7216
+ decoded.version = v
7217
+ return decoded
7218
+ }
7219
+ default:
7220
+ throw new Error('Unsupported version')
7221
+ }
7222
+ }
7223
+ }
7224
+
7112
7225
  // @qvac/chat-v1.forkedFrom, deferred due to recusive use
7113
7226
  const encoding45_12 = c.frame(encoding178)
7114
7227
  // @qvac/device-v1.toolCatalog, deferred due to recusive use
7115
7228
  const encoding47_18 = c.array(c.frame(encoding112))
7229
+ // @qvac/device-v1.customModels, deferred due to recusive use
7230
+ const encoding47_25 = c.array(c.frame(encoding179))
7116
7231
  // @qvac/report-device-capabilities-operation-v1.toolCatalog, deferred due to recusive use
7117
7232
  const encoding59_6 = encoding47_18
7233
+ // @qvac/report-device-capabilities-operation-v1.customModels, deferred due to recusive use
7234
+ const encoding59_7 = encoding47_25
7118
7235
 
7119
7236
  function setVersion(v) {
7120
7237
  version = v
@@ -7531,6 +7648,12 @@ function getEncoding(name) {
7531
7648
  return encoding177
7532
7649
  case '@qvac/chat-fork-source':
7533
7650
  return encoding178
7651
+ case '@qvac/custom-model-report-entry':
7652
+ return encoding179
7653
+ case '@qvac/reindex-chat-chunks-operation-v1':
7654
+ return encoding180
7655
+ case '@qvac/reindex-chat-chunks-operation':
7656
+ return encoding181
7534
7657
  default:
7535
7658
  throw new Error('Encoder not found ' + name)
7536
7659
  }