@qvac/core 1.0.0-rc.11 → 1.0.0-rc.13

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 (82) hide show
  1. package/CHANGELOG.md +66 -1
  2. package/dist-lib/lib/assistant/harness.d.ts +2 -2
  3. package/dist-lib/lib/assistant/history.js +30 -2
  4. package/dist-lib/lib/assistant.js +2 -1
  5. package/dist-lib/lib/core/archived-mesh.js +7 -3
  6. package/dist-lib/lib/core/chat-copy.d.ts +18 -3
  7. package/dist-lib/lib/core/chat-copy.js +73 -23
  8. package/dist-lib/lib/core/chat-group.js +14 -9
  9. package/dist-lib/lib/core/chat-move.d.ts +9 -0
  10. package/dist-lib/lib/core/chat-move.js +94 -3
  11. package/dist-lib/lib/core/chat.js +21 -8
  12. package/dist-lib/lib/core/collections.d.ts +1 -0
  13. package/dist-lib/lib/core/collections.js +1 -0
  14. package/dist-lib/lib/core/contract/activity.js +2 -2
  15. package/dist-lib/lib/core/contract/chat-group.d.ts +1 -0
  16. package/dist-lib/lib/core/contract/chat-group.js +21 -1
  17. package/dist-lib/lib/core/contract/chat.d.ts +9 -0
  18. package/dist-lib/lib/core/contract/chat.js +127 -5
  19. package/dist-lib/lib/core/contract/chunks.d.ts +1 -0
  20. package/dist-lib/lib/core/contract/chunks.js +37 -6
  21. package/dist-lib/lib/core/contract/features.d.ts +21 -0
  22. package/dist-lib/lib/core/contract/features.js +22 -0
  23. package/dist-lib/lib/core/contract/indexing.js +4 -2
  24. package/dist-lib/lib/core/contract/knowledge.js +5 -4
  25. package/dist-lib/lib/core/contract/members.js +2 -2
  26. package/dist-lib/lib/core/contract/projects.d.ts +5 -0
  27. package/dist-lib/lib/core/contract/projects.js +12 -4
  28. package/dist-lib/lib/core/contract/roles.js +30 -4
  29. package/dist-lib/lib/core/contract/run-requests.js +2 -2
  30. package/dist-lib/lib/core/contract/seed-defaults.js +2 -2
  31. package/dist-lib/lib/core/contract/tool-configs.js +3 -2
  32. package/dist-lib/lib/core/contract/workspace.d.ts +2 -0
  33. package/dist-lib/lib/core/contract/workspace.js +40 -7
  34. package/dist-lib/lib/core/contract/writers.js +2 -2
  35. package/dist-lib/lib/core/files/attachments.js +4 -1
  36. package/dist-lib/lib/core/files/index.d.ts +1 -0
  37. package/dist-lib/lib/core/files/index.js +19 -6
  38. package/dist-lib/lib/core/files/processing/index.js +4 -1
  39. package/dist-lib/lib/core/files/rag/build.js +23 -1
  40. package/dist-lib/lib/core/files/rag/load.d.ts +3 -0
  41. package/dist-lib/lib/core/files/rag/load.js +27 -6
  42. package/dist-lib/lib/core/local/index.d.ts +6 -2
  43. package/dist-lib/lib/core/local/index.js +12 -3
  44. package/dist-lib/lib/core/mesh.d.ts +6 -0
  45. package/dist-lib/lib/core/mesh.js +22 -12
  46. package/dist-lib/lib/core/migrations/workspace-from-0-21/index.d.ts +85 -0
  47. package/dist-lib/lib/core/migrations/workspace-from-0-21/index.js +690 -0
  48. package/dist-lib/lib/core/migrations/writer-links.d.ts +0 -1
  49. package/dist-lib/lib/core/migrations/writer-links.js +12 -10
  50. package/dist-lib/lib/core/project-keys.d.ts +6 -0
  51. package/dist-lib/lib/core/project-keys.js +11 -0
  52. package/dist-lib/lib/core/public-mesh.d.ts +2 -0
  53. package/dist-lib/lib/core/public-mesh.js +5 -0
  54. package/dist-lib/lib/core/sync/changed.d.ts +4 -2
  55. package/dist-lib/lib/core/sync/changed.js +1 -1
  56. package/dist-lib/lib/core/sync/index.js +27 -2
  57. package/dist-lib/lib/core/workspace-upgrade.d.ts +6 -0
  58. package/dist-lib/lib/core/workspace-upgrade.js +26 -16
  59. package/dist-lib/lib/core.d.ts +4 -32
  60. package/dist-lib/lib/core.js +143 -482
  61. package/dist-lib/lib/errors.d.ts +4 -0
  62. package/dist-lib/lib/errors.js +4 -0
  63. package/dist-lib/lib/run-transcript.d.ts +2 -1
  64. package/dist-lib/lib/run-transcript.js +11 -5
  65. package/dist-lib/schema/engine.js +2 -1
  66. package/dist-lib/schema/qvac.js +26 -1
  67. package/dist-lib/spec/hrpc/messages.js +17 -8
  68. package/dist-lib/spec/hyperschema/index.js +17 -8
  69. package/dist-lib/spec/hyperschema/schema.json +5 -0
  70. package/dist-lib/spec/hyperschema/types.d.ts +1 -0
  71. package/dist-lib/spec/mesh/hyperdb/db.json +15 -0
  72. package/dist-lib/spec/mesh/hyperdb/index.js +70 -1
  73. package/dist-lib/spec/mesh/hyperdb/messages.js +806 -438
  74. package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +18 -0
  75. package/dist-lib/spec/mesh/hyperdispatch/index.js +52 -1
  76. package/dist-lib/spec/mesh/hyperdispatch/messages.js +303 -3
  77. package/dist-lib/spec/mesh/hyperschema/index.js +303 -3
  78. package/dist-lib/spec/mesh/hyperschema/schema.json +146 -0
  79. package/dist-lib/spec/mesh/hyperschema/types.d.ts +39 -0
  80. package/package.json +10 -8
  81. package/tui/README.md +2 -1
  82. package/tui/boot.mjs +2 -0
@@ -143,6 +143,10 @@ declare const DEFINITIONS: {
143
143
  readonly code: 100132;
144
144
  readonly message: () => string;
145
145
  };
146
+ readonly MESH_CLOSED_BEFORE_WRITE: {
147
+ readonly code: 100133;
148
+ readonly message: () => string;
149
+ };
146
150
  readonly INVITE_INVALID: {
147
151
  readonly code: 100201;
148
152
  readonly message: () => string;
@@ -117,6 +117,10 @@ const DEFINITIONS = {
117
117
  code: 100132,
118
118
  message: () => 'This mesh is still syncing: the rows this read needs have not reached this device'
119
119
  },
120
+ MESH_CLOSED_BEFORE_WRITE: {
121
+ code: 100133,
122
+ message: () => 'The mesh closed before this write reached its log; nothing was written'
123
+ },
120
124
  INVITE_INVALID: { code: 100201, message: () => 'Invalid mesh invite' },
121
125
  MESH_JOIN_CANCELED: { code: 100202, message: () => 'Mesh join canceled' },
122
126
  JOIN_NOT_PERMITTED: {
@@ -23,7 +23,8 @@ export declare class RunTranscript {
23
23
  private readonly _parentId;
24
24
  private readonly _log;
25
25
  private readonly _writes;
26
- private readonly _ticker;
26
+ private _ticker;
27
+ private _closed;
27
28
  private readonly _announced;
28
29
  private _buffered;
29
30
  constructor(engine: ScopedCapabilities, opts: RunTranscriptOptions);
@@ -14,7 +14,8 @@ export class RunTranscript {
14
14
  _parentId;
15
15
  _log;
16
16
  _writes;
17
- _ticker;
17
+ _ticker = null;
18
+ _closed = false;
18
19
  _announced = new Set();
19
20
  _buffered = null;
20
21
  constructor(engine, opts) {
@@ -31,9 +32,6 @@ export class RunTranscript {
31
32
  slowMs: SLOW_WRITE_MS,
32
33
  onSlow: (info) => this._log?.warn('runs', 'write still pending', { runId, ...info })
33
34
  });
34
- this._ticker = setInterval(() => {
35
- this.flush().catch((err) => this._log?.error('assistant', 'content flush failed', err));
36
- }, FLUSH_INTERVAL_MS);
37
35
  }
38
36
  async text(type, text, round) {
39
37
  if (this._buffered && (this._buffered.type !== type || this._buffered.round !== round)) {
@@ -43,6 +41,11 @@ export class RunTranscript {
43
41
  this._buffered = { type, text: '', round };
44
42
  this._announce(type);
45
43
  }
44
+ if (!this._ticker && !this._closed) {
45
+ this._ticker = setInterval(() => {
46
+ this.flush().catch((err) => this._log?.error('assistant', 'content flush failed', err));
47
+ }, FLUSH_INTERVAL_MS);
48
+ }
46
49
  this._buffered.text += text;
47
50
  if (this._buffered.text.length >= COALESCE_CAP) {
48
51
  await this.flush();
@@ -117,7 +120,10 @@ export class RunTranscript {
117
120
  return this._writes.pending();
118
121
  }
119
122
  close() {
120
- clearInterval(this._ticker);
123
+ this._closed = true;
124
+ if (this._ticker) {
125
+ clearInterval(this._ticker);
126
+ }
121
127
  }
122
128
  _announce(type) {
123
129
  if (this._announced.has(type))
@@ -963,7 +963,8 @@ export function registerEngineTypes(ns) {
963
963
  { name: 'error', type: 'string' },
964
964
  { name: 'loaded', type: 'bool', required: true },
965
965
  { name: 'reason', type: '@assistant/indexing-failure' },
966
- { name: 'failedOn', type: 'string' }
966
+ { name: 'failedOn', type: 'string' },
967
+ { name: 'progress', type: '@assistant/file-progress' }
967
968
  ]
968
969
  });
969
970
  ns.register({
@@ -675,7 +675,8 @@ export function registerQvacTypes(ns) {
675
675
  { name: 'id', type: 'string', required: true },
676
676
  { name: 'icon', type: 'string' },
677
677
  { name: 'updatedAt', type: 'uint', required: true },
678
- { name: 'upgradeMemberIds', type: 'fixed32', array: true }
678
+ { name: 'upgradeMemberIds', type: 'fixed32', array: true },
679
+ { name: 'upgradeWriterKeys', type: 'fixed32', array: true }
679
680
  ]);
680
681
  versioned('put-workspace-operation', [
681
682
  { name: 'workspace', type: '@qvac/workspace', required: true }
@@ -830,6 +831,22 @@ export function registerQvacTypes(ns) {
830
831
  { name: 'memberId', type: 'fixed32', required: true },
831
832
  { name: 'sealedSeed', type: 'buffer', required: true }
832
833
  ]);
834
+ versioned('patch-chat-operation', [
835
+ { name: 'chat', type: '@qvac/chat', required: true },
836
+ { name: 'fields', type: 'string', array: true }
837
+ ]);
838
+ versioned('patch-chat-group-operation', [
839
+ { name: 'group', type: '@qvac/chat-group', required: true },
840
+ { name: 'fields', type: 'string', array: true }
841
+ ]);
842
+ versioned('moved-out-chat', [{ name: 'chatId', type: 'string', required: true }]);
843
+ versioned('remove-chat-copy-operation', [
844
+ { name: 'chatId', type: 'string', required: true },
845
+ { name: 'updatedAt', type: 'uint', required: true },
846
+ { name: 'chunkIds', type: 'string', array: true },
847
+ { name: 'knowledgeIds', type: 'string', array: true },
848
+ { name: 'toolActivityIds', type: 'string', array: true }
849
+ ]);
833
850
  }
834
851
  export function registerQvacCollections(dbns, helpersPath) {
835
852
  dbns.require(helpersPath);
@@ -1384,6 +1401,11 @@ export function registerQvacCollections(dbns, helpersPath) {
1384
1401
  map: 'linkedWritersByMostRecentMap'
1385
1402
  }
1386
1403
  });
1404
+ dbns.collections.register({
1405
+ name: 'moved-out-chats',
1406
+ schema: '@qvac/moved-out-chat',
1407
+ key: ['chatId']
1408
+ });
1387
1409
  }
1388
1410
  export function registerQvacDispatch(ds) {
1389
1411
  ds.register({ name: 'append-chunk', requestType: '@qvac/append-chunk-operation' });
@@ -1492,4 +1514,7 @@ export function registerQvacDispatch(ds) {
1492
1514
  ds.register({ name: 'put-skill-secret', requestType: '@qvac/skill-secret' });
1493
1515
  ds.register({ name: 'continue-run-here', requestType: '@qvac/take-run-request-operation' });
1494
1516
  ds.register({ name: 'reindex-writers', requestType: '@qvac/reindex-writers-operation' });
1517
+ ds.register({ name: 'patch-chat', requestType: '@qvac/patch-chat-operation' });
1518
+ ds.register({ name: 'patch-chat-group', requestType: '@qvac/patch-chat-group-operation' });
1519
+ ds.register({ name: 'remove-chat-copy', requestType: '@qvac/remove-chat-copy-operation' });
1495
1520
  }
@@ -6057,14 +6057,20 @@ const encoding150 = {
6057
6057
  preencode(state, m) {
6058
6058
  encoding150_0.preencode(state, m.knowledge)
6059
6059
  encoding146.preencode(state, m.status)
6060
- state.end++ // max flag is 8 so always one byte
6060
+ state.end++ // max flag is 16 so always one byte
6061
6061
 
6062
6062
  if (m.error) c.string.preencode(state, m.error)
6063
6063
  if (m.reason) encoding149.preencode(state, m.reason)
6064
6064
  if (m.failedOn) c.string.preencode(state, m.failedOn)
6065
+ if (m.progress) encoding150_6.preencode(state, m.progress)
6065
6066
  },
6066
6067
  encode(state, m) {
6067
- const flags = (m.error ? 1 : 0) | (m.loaded ? 2 : 0) | (m.reason ? 4 : 0) | (m.failedOn ? 8 : 0)
6068
+ const flags =
6069
+ (m.error ? 1 : 0) |
6070
+ (m.loaded ? 2 : 0) |
6071
+ (m.reason ? 4 : 0) |
6072
+ (m.failedOn ? 8 : 0) |
6073
+ (m.progress ? 16 : 0)
6068
6074
 
6069
6075
  encoding150_0.encode(state, m.knowledge)
6070
6076
  encoding146.encode(state, m.status)
@@ -6073,6 +6079,7 @@ const encoding150 = {
6073
6079
  if (m.error) c.string.encode(state, m.error)
6074
6080
  if (m.reason) encoding149.encode(state, m.reason)
6075
6081
  if (m.failedOn) c.string.encode(state, m.failedOn)
6082
+ if (m.progress) encoding150_6.encode(state, m.progress)
6076
6083
  },
6077
6084
  decode(state) {
6078
6085
  const r0 = encoding150_0.decode(state)
@@ -6085,7 +6092,8 @@ const encoding150 = {
6085
6092
  error: (flags & 1) !== 0 ? c.string.decode(state) : null,
6086
6093
  loaded: (flags & 2) !== 0,
6087
6094
  reason: (flags & 4) !== 0 ? encoding149.decode(state) : null,
6088
- failedOn: (flags & 8) !== 0 ? c.string.decode(state) : null
6095
+ failedOn: (flags & 8) !== 0 ? c.string.decode(state) : null,
6096
+ progress: (flags & 16) !== 0 ? encoding150_6.decode(state) : null
6089
6097
  }
6090
6098
  }
6091
6099
  }
@@ -9764,9 +9772,6 @@ const encoding259 = {
9764
9772
  }
9765
9773
  }
9766
9774
 
9767
- // @assistant/file-processor-status.progress
9768
- const encoding260_7 = c.frame(encoding259)
9769
-
9770
9775
  // @assistant/file-processor-status
9771
9776
  const encoding260 = {
9772
9777
  preencode(state, m) {
@@ -9835,8 +9840,6 @@ const encoding260 = {
9835
9840
  }
9836
9841
  }
9837
9842
 
9838
- // @assistant/file-status.uploadProgress
9839
- const encoding261_6 = encoding260_7
9840
9843
  // @assistant/file-status.processors
9841
9844
  const encoding261_7 = c.array(c.frame(encoding260))
9842
9845
 
@@ -12774,8 +12777,14 @@ const encoding367 = {
12774
12777
  }
12775
12778
  }
12776
12779
 
12780
+ // @assistant/knowledge-base-entry.progress, deferred due to recusive use
12781
+ const encoding150_6 = c.frame(encoding259)
12777
12782
  // @assistant/model-info-list.memory, deferred due to recusive use
12778
12783
  const encoding175_1 = c.frame(encoding322)
12784
+ // @assistant/file-processor-status.progress, deferred due to recusive use
12785
+ const encoding260_7 = encoding150_6
12786
+ // @assistant/file-status.uploadProgress, deferred due to recusive use
12787
+ const encoding261_6 = encoding150_6
12779
12788
 
12780
12789
  function setVersion(v) {
12781
12790
  version = v
@@ -6057,14 +6057,20 @@ const encoding150 = {
6057
6057
  preencode(state, m) {
6058
6058
  encoding150_0.preencode(state, m.knowledge)
6059
6059
  encoding146.preencode(state, m.status)
6060
- state.end++ // max flag is 8 so always one byte
6060
+ state.end++ // max flag is 16 so always one byte
6061
6061
 
6062
6062
  if (m.error) c.string.preencode(state, m.error)
6063
6063
  if (m.reason) encoding149.preencode(state, m.reason)
6064
6064
  if (m.failedOn) c.string.preencode(state, m.failedOn)
6065
+ if (m.progress) encoding150_6.preencode(state, m.progress)
6065
6066
  },
6066
6067
  encode(state, m) {
6067
- const flags = (m.error ? 1 : 0) | (m.loaded ? 2 : 0) | (m.reason ? 4 : 0) | (m.failedOn ? 8 : 0)
6068
+ const flags =
6069
+ (m.error ? 1 : 0) |
6070
+ (m.loaded ? 2 : 0) |
6071
+ (m.reason ? 4 : 0) |
6072
+ (m.failedOn ? 8 : 0) |
6073
+ (m.progress ? 16 : 0)
6068
6074
 
6069
6075
  encoding150_0.encode(state, m.knowledge)
6070
6076
  encoding146.encode(state, m.status)
@@ -6073,6 +6079,7 @@ const encoding150 = {
6073
6079
  if (m.error) c.string.encode(state, m.error)
6074
6080
  if (m.reason) encoding149.encode(state, m.reason)
6075
6081
  if (m.failedOn) c.string.encode(state, m.failedOn)
6082
+ if (m.progress) encoding150_6.encode(state, m.progress)
6076
6083
  },
6077
6084
  decode(state) {
6078
6085
  const r0 = encoding150_0.decode(state)
@@ -6085,7 +6092,8 @@ const encoding150 = {
6085
6092
  error: (flags & 1) !== 0 ? c.string.decode(state) : null,
6086
6093
  loaded: (flags & 2) !== 0,
6087
6094
  reason: (flags & 4) !== 0 ? encoding149.decode(state) : null,
6088
- failedOn: (flags & 8) !== 0 ? c.string.decode(state) : null
6095
+ failedOn: (flags & 8) !== 0 ? c.string.decode(state) : null,
6096
+ progress: (flags & 16) !== 0 ? encoding150_6.decode(state) : null
6089
6097
  }
6090
6098
  }
6091
6099
  }
@@ -9764,9 +9772,6 @@ const encoding259 = {
9764
9772
  }
9765
9773
  }
9766
9774
 
9767
- // @assistant/file-processor-status.progress
9768
- const encoding260_7 = c.frame(encoding259)
9769
-
9770
9775
  // @assistant/file-processor-status
9771
9776
  const encoding260 = {
9772
9777
  preencode(state, m) {
@@ -9835,8 +9840,6 @@ const encoding260 = {
9835
9840
  }
9836
9841
  }
9837
9842
 
9838
- // @assistant/file-status.uploadProgress
9839
- const encoding261_6 = encoding260_7
9840
9843
  // @assistant/file-status.processors
9841
9844
  const encoding261_7 = c.array(c.frame(encoding260))
9842
9845
 
@@ -12774,8 +12777,14 @@ const encoding367 = {
12774
12777
  }
12775
12778
  }
12776
12779
 
12780
+ // @assistant/knowledge-base-entry.progress, deferred due to recusive use
12781
+ const encoding150_6 = c.frame(encoding259)
12777
12782
  // @assistant/model-info-list.memory, deferred due to recusive use
12778
12783
  const encoding175_1 = c.frame(encoding322)
12784
+ // @assistant/file-processor-status.progress, deferred due to recusive use
12785
+ const encoding260_7 = encoding150_6
12786
+ // @assistant/file-status.uploadProgress, deferred due to recusive use
12787
+ const encoding261_6 = encoding150_6
12779
12788
 
12780
12789
  function setVersion(v) {
12781
12790
  version = v
@@ -4727,6 +4727,11 @@
4727
4727
  "name": "failedOn",
4728
4728
  "type": "string",
4729
4729
  "version": 1
4730
+ },
4731
+ {
4732
+ "name": "progress",
4733
+ "type": "@assistant/file-progress",
4734
+ "version": 1
4730
4735
  }
4731
4736
  ]
4732
4737
  },
@@ -964,6 +964,7 @@ export interface AssistantKnowledgeBaseEntry {
964
964
  loaded?: boolean
965
965
  reason?: AssistantIndexingFailure | null
966
966
  failedOn?: string | null
967
+ progress?: AssistantFileProgress | null
967
968
  }
968
969
 
969
970
  export interface AssistantKnowledgeBaseList {
@@ -1609,6 +1609,21 @@
1609
1609
  },
1610
1610
  "map": "linkedWritersByMostRecentMap"
1611
1611
  }
1612
+ },
1613
+ {
1614
+ "name": "moved-out-chats",
1615
+ "namespace": "qvac",
1616
+ "id": 91,
1617
+ "type": 1,
1618
+ "version": 12,
1619
+ "versionField": null,
1620
+ "indexes": [],
1621
+ "schema": "@qvac/moved-out-chat",
1622
+ "derived": false,
1623
+ "key": [
1624
+ "chatId"
1625
+ ],
1626
+ "trigger": null
1612
1627
  }
1613
1628
  ]
1614
1629
  }
@@ -5616,6 +5616,73 @@ const index90 = {
5616
5616
  }
5617
5617
  collection29.indexes.push(index90)
5618
5618
 
5619
+ // '@qvac/moved-out-chats' collection key
5620
+ const collection91_key = new IndexEncoder([
5621
+ IndexEncoder.STRING
5622
+ ], { prefix: 91 })
5623
+
5624
+ function collection91_indexify (record) {
5625
+ const a = record.chatId
5626
+ return a === undefined ? [] : [a]
5627
+ }
5628
+
5629
+ // '@qvac/moved-out-chats' value encoding
5630
+ const collection91_enc = getEncoding('@qvac/moved-out-chat/hyperdb#91')
5631
+
5632
+ // '@qvac/moved-out-chats' reconstruction function
5633
+ function collection91_reconstruct (schemaVersion, keyBuf, valueBuf) {
5634
+ const key = collection91_key.decode(keyBuf)
5635
+ setVersion(schemaVersion)
5636
+ const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
5637
+ const type = c.uint.decode(state)
5638
+ if (type !== 0) throw new Error('Unknown collection type: ' + type)
5639
+ collection91.decodedVersion = c.uint.decode(state)
5640
+ const record = collection91_enc.decode(state)
5641
+ record.chatId = key[0]
5642
+ return record
5643
+ }
5644
+ // '@qvac/moved-out-chats' key reconstruction function
5645
+ function collection91_reconstruct_key (keyBuf) {
5646
+ const key = collection91_key.decode(keyBuf)
5647
+ return {
5648
+ chatId: key[0]
5649
+ }
5650
+ }
5651
+
5652
+ // '@qvac/moved-out-chats'
5653
+ const collection91 = {
5654
+ name: '@qvac/moved-out-chats',
5655
+ id: 91,
5656
+ version: 12,
5657
+ encodeKey (record) {
5658
+ const key = [record.chatId]
5659
+ return collection91_key.encode(key)
5660
+ },
5661
+ encodeKeyRange ({ gt, lt, gte, lte } = {}) {
5662
+ return collection91_key.encodeRange({
5663
+ gt: gt ? collection91_indexify(gt) : null,
5664
+ lt: lt ? collection91_indexify(lt) : null,
5665
+ gte: gte ? collection91_indexify(gte) : null,
5666
+ lte: lte ? collection91_indexify(lte) : null
5667
+ })
5668
+ },
5669
+ encodeValue (schemaVersion, collectionVersion, record) {
5670
+ setVersion(schemaVersion)
5671
+ const state = { start: 0, end: 2, buffer: null }
5672
+ collection91_enc.preencode(state, record)
5673
+ state.buffer = b4a.allocUnsafe(state.end)
5674
+ state.buffer[state.start++] = 0
5675
+ state.buffer[state.start++] = collectionVersion
5676
+ collection91_enc.encode(state, record)
5677
+ return state.buffer
5678
+ },
5679
+ trigger: null,
5680
+ reconstruct: collection91_reconstruct,
5681
+ reconstructKey: collection91_reconstruct_key,
5682
+ indexes: [],
5683
+ decodedVersion: 0
5684
+ }
5685
+
5619
5686
  const collections = [
5620
5687
  collection0,
5621
5688
  collection1,
@@ -5665,7 +5732,8 @@ const collections = [
5665
5732
  collection71,
5666
5733
  collection83,
5667
5734
  collection85,
5668
- collection87
5735
+ collection87,
5736
+ collection91
5669
5737
  ]
5670
5738
 
5671
5739
  const indexes = [
@@ -5766,6 +5834,7 @@ function resolveCollection (name) {
5766
5834
  case '@qvac/project-host-seals': return collection83
5767
5835
  case '@qvac/project-member-seals': return collection85
5768
5836
  case '@qvac/project-device-seals': return collection87
5837
+ case '@qvac/moved-out-chats': return collection91
5769
5838
  default: return null
5770
5839
  }
5771
5840
  }