@qvac/core 0.6.0 → 0.6.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 (82) hide show
  1. package/CHANGELOG.md +112 -2
  2. package/dist-lib/lib/api/chat.d.ts +1 -1
  3. package/dist-lib/lib/api/chat.js +2 -1
  4. package/dist-lib/lib/api/index.d.ts +3 -1
  5. package/dist-lib/lib/api/index.js +2 -0
  6. package/dist-lib/lib/api/watchable.d.ts +1 -0
  7. package/dist-lib/lib/api/watchable.js +1 -1
  8. package/dist-lib/lib/assistant/harness.d.ts +2 -0
  9. package/dist-lib/lib/assistant/harness.js +13 -9
  10. package/dist-lib/lib/assistant-tree.js +4 -0
  11. package/dist-lib/lib/assistant.d.ts +5 -1
  12. package/dist-lib/lib/assistant.js +66 -20
  13. package/dist-lib/lib/client.js +2 -1
  14. package/dist-lib/lib/collabora/entry.js +13 -19
  15. package/dist-lib/lib/collabora/worker.js +77 -18
  16. package/dist-lib/lib/core/chat.d.ts +1 -0
  17. package/dist-lib/lib/core/chat.js +26 -4
  18. package/dist-lib/lib/core/collections.d.ts +1 -0
  19. package/dist-lib/lib/core/collections.js +1 -0
  20. package/dist-lib/lib/core/contract/chat.d.ts +2 -0
  21. package/dist-lib/lib/core/contract/chat.js +77 -4
  22. package/dist-lib/lib/core/contract/chunks.js +5 -0
  23. package/dist-lib/lib/core/contract/compute.d.ts +1 -1
  24. package/dist-lib/lib/core/contract/compute.js +2 -1
  25. package/dist-lib/lib/core/contract/tool-activity.js +5 -0
  26. package/dist-lib/lib/core/files/index.d.ts +2 -0
  27. package/dist-lib/lib/core/files/index.js +7 -1
  28. package/dist-lib/lib/core/files/local-index.d.ts +4 -1
  29. package/dist-lib/lib/core/files/processing/index.d.ts +3 -0
  30. package/dist-lib/lib/core/files/processing/index.js +9 -0
  31. package/dist-lib/lib/core/files/processing/state.d.ts +1 -0
  32. package/dist-lib/lib/core/files/processing/state.js +5 -0
  33. package/dist-lib/lib/core/files/rag/index.d.ts +2 -0
  34. package/dist-lib/lib/core/files/rag/index.js +6 -0
  35. package/dist-lib/lib/core/files/records/index.d.ts +1 -0
  36. package/dist-lib/lib/core/files/records/index.js +1 -0
  37. package/dist-lib/lib/core/files/records/purge.d.ts +4 -0
  38. package/dist-lib/lib/core/files/records/purge.js +108 -0
  39. package/dist-lib/lib/core/files/records/reclaim.js +5 -3
  40. package/dist-lib/lib/core/files/store/blob.d.ts +1 -0
  41. package/dist-lib/lib/core/files/store/blob.js +29 -0
  42. package/dist-lib/lib/core/files/store/index.d.ts +1 -0
  43. package/dist-lib/lib/core/files/store/index.js +6 -1
  44. package/dist-lib/lib/core/local/files.d.ts +2 -0
  45. package/dist-lib/lib/core/local/files.js +31 -0
  46. package/dist-lib/lib/core/sync/index.js +14 -1
  47. package/dist-lib/lib/core.d.ts +12 -2
  48. package/dist-lib/lib/core.js +79 -16
  49. package/dist-lib/lib/credential-pusher.d.ts +8 -3
  50. package/dist-lib/lib/credential-pusher.js +4 -1
  51. package/dist-lib/lib/mesh-scoped-engine.js +3 -0
  52. package/dist-lib/lib/model-download.d.ts +11 -7
  53. package/dist-lib/lib/model-download.js +22 -21
  54. package/dist-lib/lib/models-watch.d.ts +6 -0
  55. package/dist-lib/lib/models-watch.js +45 -0
  56. package/dist-lib/schema/engine.d.ts +1 -0
  57. package/dist-lib/schema/engine.js +57 -3
  58. package/dist-lib/schema/field-order.js +3 -1
  59. package/dist-lib/schema/qvac.js +12 -1
  60. package/dist-lib/spec/bind.js +14 -0
  61. package/dist-lib/spec/calls.js +3 -0
  62. package/dist-lib/spec/capabilities.d.ts +6 -0
  63. package/dist-lib/spec/hrpc/hrpc.json +39 -0
  64. package/dist-lib/spec/hrpc/index.js +41 -4
  65. package/dist-lib/spec/hrpc/messages.js +788 -583
  66. package/dist-lib/spec/hyperschema/index.js +788 -583
  67. package/dist-lib/spec/hyperschema/schema.json +149 -0
  68. package/dist-lib/spec/hyperschema/types.d.ts +29 -0
  69. package/dist-lib/spec/mesh/hyperdb/db.json +16 -1
  70. package/dist-lib/spec/mesh/hyperdb/index.js +71 -2
  71. package/dist-lib/spec/mesh/hyperdb/messages.js +434 -227
  72. package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +7 -1
  73. package/dist-lib/spec/mesh/hyperdispatch/index.js +18 -1
  74. package/dist-lib/spec/mesh/hyperdispatch/messages.js +134 -5
  75. package/dist-lib/spec/mesh/hyperschema/index.js +134 -5
  76. package/dist-lib/spec/mesh/hyperschema/schema.json +70 -1
  77. package/dist-lib/spec/mesh/hyperschema/types.d.ts +20 -1
  78. package/package.json +23 -10
  79. package/tui/app.mjs +3 -2
  80. package/tui/boot.mjs +1 -3
  81. package/dist-lib/lib/model-clamp.d.ts +0 -6
  82. package/dist-lib/lib/model-clamp.js +0 -23
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 7,
2
+ "version": 8,
3
3
  "offset": 0,
4
4
  "schema": [
5
5
  {
@@ -229,6 +229,12 @@
229
229
  "name": "@qvac/recover-device",
230
230
  "requestType": "@qvac/recovery-claim",
231
231
  "version": 7
232
+ },
233
+ {
234
+ "id": 38,
235
+ "name": "@qvac/purge-chat",
236
+ "requestType": "@qvac/purge-chat-operation",
237
+ "version": 8
232
238
  }
233
239
  ]
234
240
  }
@@ -46,8 +46,9 @@ class Router {
46
46
  this._handler35 = null
47
47
  this._handler36 = null
48
48
  this._handler37 = null
49
+ this._handler38 = null
49
50
 
50
- this._missing = 38
51
+ this._missing = 39
51
52
  }
52
53
 
53
54
  add (name, handler) {
@@ -166,6 +167,9 @@ class Router {
166
167
  case '@qvac/recover-device':
167
168
  this._handler37 = handler
168
169
  break
170
+ case '@qvac/purge-chat':
171
+ this._handler38 = handler
172
+ break
169
173
  default:
170
174
  throw DispatchError.NONEXISTENT_ROUTE(name)
171
175
  }
@@ -211,6 +215,7 @@ class Router {
211
215
  assert(this._handler35 !== null, 'Missing handler for "@qvac/vouched-join"')
212
216
  assert(this._handler36 !== null, 'Missing handler for "@qvac/reindex-devices"')
213
217
  assert(this._handler37 !== null, 'Missing handler for "@qvac/recover-device"')
218
+ assert(this._handler38 !== null, 'Missing handler for "@qvac/purge-chat"')
214
219
  }
215
220
 
216
221
  async dispatch (message, context) {
@@ -299,6 +304,8 @@ class Router {
299
304
  return this._handler36(op.value, context)
300
305
  case 37:
301
306
  return this._handler37(op.value, context)
307
+ case 38:
308
+ return this._handler38(op.value, context)
302
309
  default:
303
310
  throw DispatchError.HANDLER_NOT_FOUND_BY_ID(op.id)
304
311
  }
@@ -560,6 +567,12 @@ const route37 = {
560
567
  enc: getEncoding('@qvac/recovery-claim')
561
568
  }
562
569
 
570
+ const route38 = {
571
+ name: '@qvac/purge-chat',
572
+ id: 38,
573
+ enc: getEncoding('@qvac/purge-chat-operation')
574
+ }
575
+
563
576
  function getRouteByName (name) {
564
577
  switch (name) {
565
578
  case '@qvac/append-chunk':
@@ -638,6 +651,8 @@ function getRouteByName (name) {
638
651
  return route36
639
652
  case '@qvac/recover-device':
640
653
  return route37
654
+ case '@qvac/purge-chat':
655
+ return route38
641
656
  default:
642
657
  throw DispatchError.ROUTE_NOT_FOUND_BY_NAME(name)
643
658
  }
@@ -721,6 +736,8 @@ function getRouteById (id) {
721
736
  return route36
722
737
  case 37:
723
738
  return route37
739
+ case 38:
740
+ return route38
724
741
  default:
725
742
  throw DispatchError.HANDLER_NOT_FOUND_BY_ID(id)
726
743
  }
@@ -1,12 +1,12 @@
1
1
  // This file is autogenerated by the hyperschema compiler
2
- // Schema Version: 10
2
+ // Schema Version: 12
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 = 10
9
+ const VERSION = 12
10
10
 
11
11
  // eslint-disable-next-line no-unused-vars
12
12
  let version = VERSION
@@ -2088,17 +2088,28 @@ const encoding44 = {
2088
2088
  // @qvac/chat-v1
2089
2089
  const encoding45 = {
2090
2090
  preencode(state, m) {
2091
+ const flags =
2092
+ (m.deletedAt ? 1 : 0) |
2093
+ (m.ragEnabled ? 2 : 0) |
2094
+ (m.webSearchEnabled ? 4 : 0) |
2095
+ (m.updatedAt ? 8 : 0) |
2096
+ ((version >= 5 && m.groupId) ? 16 : 0) |
2097
+ ((version >= 6 && m.rank) ? 32 : 0) |
2098
+ ((version >= 6 && m.rankedAt) ? 64 : 0) |
2099
+ ((version >= 12 && m.readThrough) ? 128 : 0)
2100
+
2091
2101
  c.string.preencode(state, m.id)
2092
2102
  c.string.preencode(state, m.agentId)
2093
2103
  c.string.preencode(state, m.title)
2094
2104
  c.uint.preencode(state, m.createdAt)
2095
- state.end++ // max flag is 64 so always one byte
2105
+ c.uint.preencode(state, flags)
2096
2106
 
2097
2107
  if (m.deletedAt) c.uint.preencode(state, m.deletedAt)
2098
2108
  if (m.updatedAt) c.uint.preencode(state, m.updatedAt)
2099
2109
  if (version >= 5 && m.groupId) c.string.preencode(state, m.groupId)
2100
2110
  if (version >= 6 && m.rank) c.float64.preencode(state, m.rank)
2101
2111
  if (version >= 6 && m.rankedAt) c.uint.preencode(state, m.rankedAt)
2112
+ if (version >= 12 && m.readThrough) c.uint.preencode(state, m.readThrough)
2102
2113
  },
2103
2114
  encode(state, m) {
2104
2115
  const flags =
@@ -2108,7 +2119,8 @@ const encoding45 = {
2108
2119
  (m.updatedAt ? 8 : 0) |
2109
2120
  ((version >= 5 && m.groupId) ? 16 : 0) |
2110
2121
  ((version >= 6 && m.rank) ? 32 : 0) |
2111
- ((version >= 6 && m.rankedAt) ? 64 : 0)
2122
+ ((version >= 6 && m.rankedAt) ? 64 : 0) |
2123
+ ((version >= 12 && m.readThrough) ? 128 : 0)
2112
2124
 
2113
2125
  c.string.encode(state, m.id)
2114
2126
  c.string.encode(state, m.agentId)
@@ -2121,6 +2133,7 @@ const encoding45 = {
2121
2133
  if (version >= 5 && m.groupId) c.string.encode(state, m.groupId)
2122
2134
  if (version >= 6 && m.rank) c.float64.encode(state, m.rank)
2123
2135
  if (version >= 6 && m.rankedAt) c.uint.encode(state, m.rankedAt)
2136
+ if (version >= 12 && m.readThrough) c.uint.encode(state, m.readThrough)
2124
2137
  },
2125
2138
  decode(state) {
2126
2139
  const r0 = c.string.decode(state)
@@ -2141,7 +2154,8 @@ const encoding45 = {
2141
2154
  updatedAt: (flags & 8) !== 0 ? c.uint.decode(state) : 0,
2142
2155
  groupId: (version >= 5 && (flags & 16) !== 0) ? c.string.decode(state) : null,
2143
2156
  rank: (version >= 6 && (flags & 32) !== 0) ? c.float64.decode(state) : 0,
2144
- rankedAt: (version >= 6 && (flags & 64) !== 0) ? c.uint.decode(state) : 0
2157
+ rankedAt: (version >= 6 && (flags & 64) !== 0) ? c.uint.decode(state) : 0,
2158
+ readThrough: (version >= 12 && (flags & 128) !== 0) ? c.uint.decode(state) : 0
2145
2159
  }
2146
2160
  }
2147
2161
  }
@@ -6637,6 +6651,113 @@ const encoding165 = {
6637
6651
  }
6638
6652
  }
6639
6653
 
6654
+ // @qvac/purged-chat-v1
6655
+ const encoding166 = {
6656
+ preencode(state, m) {
6657
+ c.string.preencode(state, m.chatId)
6658
+ c.uint.preencode(state, m.at)
6659
+ },
6660
+ encode(state, m) {
6661
+ c.string.encode(state, m.chatId)
6662
+ c.uint.encode(state, m.at)
6663
+ },
6664
+ decode(state) {
6665
+ const r0 = c.string.decode(state)
6666
+ const r1 = c.uint.decode(state)
6667
+
6668
+ return {
6669
+ version: 0,
6670
+ chatId: r0,
6671
+ at: r1
6672
+ }
6673
+ }
6674
+ }
6675
+
6676
+ // @qvac/purged-chat
6677
+ const encoding167 = {
6678
+ preencode(state, m) {
6679
+ const v = m.version ?? 1
6680
+ c.uint.preencode(state, v)
6681
+ switch (v) {
6682
+ case 0:
6683
+ case 1:
6684
+ encoding166.preencode(state, m)
6685
+ break
6686
+ default:
6687
+ throw new Error('Unsupported version')
6688
+ }
6689
+ },
6690
+ encode(state, m) {
6691
+ const v = m.version ?? 1
6692
+ c.uint.encode(state, v)
6693
+ switch (v) {
6694
+ case 0:
6695
+ case 1:
6696
+ encoding166.encode(state, m)
6697
+ break
6698
+ default:
6699
+ throw new Error('Unsupported version')
6700
+ }
6701
+ },
6702
+ decode(state) {
6703
+ const v = c.uint.decode(state)
6704
+ switch (v) {
6705
+ case 0:
6706
+ case 1: {
6707
+ const decoded = encoding166.decode(state)
6708
+ decoded.version = v
6709
+ return decoded
6710
+ }
6711
+ default:
6712
+ throw new Error('Unsupported version')
6713
+ }
6714
+ }
6715
+ }
6716
+
6717
+ // @qvac/purge-chat-operation-v1
6718
+ const encoding168 = encoding166
6719
+
6720
+ // @qvac/purge-chat-operation
6721
+ const encoding169 = {
6722
+ preencode(state, m) {
6723
+ const v = m.version ?? 1
6724
+ c.uint.preencode(state, v)
6725
+ switch (v) {
6726
+ case 0:
6727
+ case 1:
6728
+ encoding168.preencode(state, m)
6729
+ break
6730
+ default:
6731
+ throw new Error('Unsupported version')
6732
+ }
6733
+ },
6734
+ encode(state, m) {
6735
+ const v = m.version ?? 1
6736
+ c.uint.encode(state, v)
6737
+ switch (v) {
6738
+ case 0:
6739
+ case 1:
6740
+ encoding168.encode(state, m)
6741
+ break
6742
+ default:
6743
+ throw new Error('Unsupported version')
6744
+ }
6745
+ },
6746
+ decode(state) {
6747
+ const v = c.uint.decode(state)
6748
+ switch (v) {
6749
+ case 0:
6750
+ case 1: {
6751
+ const decoded = encoding168.decode(state)
6752
+ decoded.version = v
6753
+ return decoded
6754
+ }
6755
+ default:
6756
+ throw new Error('Unsupported version')
6757
+ }
6758
+ }
6759
+ }
6760
+
6640
6761
  // @qvac/device-v1.toolCatalog, deferred due to recusive use
6641
6762
  const encoding47_18 = c.array(c.frame(encoding112))
6642
6763
  // @qvac/report-device-capabilities-operation-v1.toolCatalog, deferred due to recusive use
@@ -7031,6 +7152,14 @@ function getEncoding(name) {
7031
7152
  return encoding164
7032
7153
  case '@qvac/mesh-founder':
7033
7154
  return encoding165
7155
+ case '@qvac/purged-chat-v1':
7156
+ return encoding166
7157
+ case '@qvac/purged-chat':
7158
+ return encoding167
7159
+ case '@qvac/purge-chat-operation-v1':
7160
+ return encoding168
7161
+ case '@qvac/purge-chat-operation':
7162
+ return encoding169
7034
7163
  default:
7035
7164
  throw new Error('Encoder not found ' + name)
7036
7165
  }
@@ -1,12 +1,12 @@
1
1
  // This file is autogenerated by the hyperschema compiler
2
- // Schema Version: 10
2
+ // Schema Version: 12
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 = 10
9
+ const VERSION = 12
10
10
 
11
11
  // eslint-disable-next-line no-unused-vars
12
12
  let version = VERSION
@@ -2088,17 +2088,28 @@ const encoding44 = {
2088
2088
  // @qvac/chat-v1
2089
2089
  const encoding45 = {
2090
2090
  preencode(state, m) {
2091
+ const flags =
2092
+ (m.deletedAt ? 1 : 0) |
2093
+ (m.ragEnabled ? 2 : 0) |
2094
+ (m.webSearchEnabled ? 4 : 0) |
2095
+ (m.updatedAt ? 8 : 0) |
2096
+ ((version >= 5 && m.groupId) ? 16 : 0) |
2097
+ ((version >= 6 && m.rank) ? 32 : 0) |
2098
+ ((version >= 6 && m.rankedAt) ? 64 : 0) |
2099
+ ((version >= 12 && m.readThrough) ? 128 : 0)
2100
+
2091
2101
  c.string.preencode(state, m.id)
2092
2102
  c.string.preencode(state, m.agentId)
2093
2103
  c.string.preencode(state, m.title)
2094
2104
  c.uint.preencode(state, m.createdAt)
2095
- state.end++ // max flag is 64 so always one byte
2105
+ c.uint.preencode(state, flags)
2096
2106
 
2097
2107
  if (m.deletedAt) c.uint.preencode(state, m.deletedAt)
2098
2108
  if (m.updatedAt) c.uint.preencode(state, m.updatedAt)
2099
2109
  if (version >= 5 && m.groupId) c.string.preencode(state, m.groupId)
2100
2110
  if (version >= 6 && m.rank) c.float64.preencode(state, m.rank)
2101
2111
  if (version >= 6 && m.rankedAt) c.uint.preencode(state, m.rankedAt)
2112
+ if (version >= 12 && m.readThrough) c.uint.preencode(state, m.readThrough)
2102
2113
  },
2103
2114
  encode(state, m) {
2104
2115
  const flags =
@@ -2108,7 +2119,8 @@ const encoding45 = {
2108
2119
  (m.updatedAt ? 8 : 0) |
2109
2120
  ((version >= 5 && m.groupId) ? 16 : 0) |
2110
2121
  ((version >= 6 && m.rank) ? 32 : 0) |
2111
- ((version >= 6 && m.rankedAt) ? 64 : 0)
2122
+ ((version >= 6 && m.rankedAt) ? 64 : 0) |
2123
+ ((version >= 12 && m.readThrough) ? 128 : 0)
2112
2124
 
2113
2125
  c.string.encode(state, m.id)
2114
2126
  c.string.encode(state, m.agentId)
@@ -2121,6 +2133,7 @@ const encoding45 = {
2121
2133
  if (version >= 5 && m.groupId) c.string.encode(state, m.groupId)
2122
2134
  if (version >= 6 && m.rank) c.float64.encode(state, m.rank)
2123
2135
  if (version >= 6 && m.rankedAt) c.uint.encode(state, m.rankedAt)
2136
+ if (version >= 12 && m.readThrough) c.uint.encode(state, m.readThrough)
2124
2137
  },
2125
2138
  decode(state) {
2126
2139
  const r0 = c.string.decode(state)
@@ -2141,7 +2154,8 @@ const encoding45 = {
2141
2154
  updatedAt: (flags & 8) !== 0 ? c.uint.decode(state) : 0,
2142
2155
  groupId: (version >= 5 && (flags & 16) !== 0) ? c.string.decode(state) : null,
2143
2156
  rank: (version >= 6 && (flags & 32) !== 0) ? c.float64.decode(state) : 0,
2144
- rankedAt: (version >= 6 && (flags & 64) !== 0) ? c.uint.decode(state) : 0
2157
+ rankedAt: (version >= 6 && (flags & 64) !== 0) ? c.uint.decode(state) : 0,
2158
+ readThrough: (version >= 12 && (flags & 128) !== 0) ? c.uint.decode(state) : 0
2145
2159
  }
2146
2160
  }
2147
2161
  }
@@ -6637,6 +6651,113 @@ const encoding165 = {
6637
6651
  }
6638
6652
  }
6639
6653
 
6654
+ // @qvac/purged-chat-v1
6655
+ const encoding166 = {
6656
+ preencode(state, m) {
6657
+ c.string.preencode(state, m.chatId)
6658
+ c.uint.preencode(state, m.at)
6659
+ },
6660
+ encode(state, m) {
6661
+ c.string.encode(state, m.chatId)
6662
+ c.uint.encode(state, m.at)
6663
+ },
6664
+ decode(state) {
6665
+ const r0 = c.string.decode(state)
6666
+ const r1 = c.uint.decode(state)
6667
+
6668
+ return {
6669
+ version: 0,
6670
+ chatId: r0,
6671
+ at: r1
6672
+ }
6673
+ }
6674
+ }
6675
+
6676
+ // @qvac/purged-chat
6677
+ const encoding167 = {
6678
+ preencode(state, m) {
6679
+ const v = m.version ?? 1
6680
+ c.uint.preencode(state, v)
6681
+ switch (v) {
6682
+ case 0:
6683
+ case 1:
6684
+ encoding166.preencode(state, m)
6685
+ break
6686
+ default:
6687
+ throw new Error('Unsupported version')
6688
+ }
6689
+ },
6690
+ encode(state, m) {
6691
+ const v = m.version ?? 1
6692
+ c.uint.encode(state, v)
6693
+ switch (v) {
6694
+ case 0:
6695
+ case 1:
6696
+ encoding166.encode(state, m)
6697
+ break
6698
+ default:
6699
+ throw new Error('Unsupported version')
6700
+ }
6701
+ },
6702
+ decode(state) {
6703
+ const v = c.uint.decode(state)
6704
+ switch (v) {
6705
+ case 0:
6706
+ case 1: {
6707
+ const decoded = encoding166.decode(state)
6708
+ decoded.version = v
6709
+ return decoded
6710
+ }
6711
+ default:
6712
+ throw new Error('Unsupported version')
6713
+ }
6714
+ }
6715
+ }
6716
+
6717
+ // @qvac/purge-chat-operation-v1
6718
+ const encoding168 = encoding166
6719
+
6720
+ // @qvac/purge-chat-operation
6721
+ const encoding169 = {
6722
+ preencode(state, m) {
6723
+ const v = m.version ?? 1
6724
+ c.uint.preencode(state, v)
6725
+ switch (v) {
6726
+ case 0:
6727
+ case 1:
6728
+ encoding168.preencode(state, m)
6729
+ break
6730
+ default:
6731
+ throw new Error('Unsupported version')
6732
+ }
6733
+ },
6734
+ encode(state, m) {
6735
+ const v = m.version ?? 1
6736
+ c.uint.encode(state, v)
6737
+ switch (v) {
6738
+ case 0:
6739
+ case 1:
6740
+ encoding168.encode(state, m)
6741
+ break
6742
+ default:
6743
+ throw new Error('Unsupported version')
6744
+ }
6745
+ },
6746
+ decode(state) {
6747
+ const v = c.uint.decode(state)
6748
+ switch (v) {
6749
+ case 0:
6750
+ case 1: {
6751
+ const decoded = encoding168.decode(state)
6752
+ decoded.version = v
6753
+ return decoded
6754
+ }
6755
+ default:
6756
+ throw new Error('Unsupported version')
6757
+ }
6758
+ }
6759
+ }
6760
+
6640
6761
  // @qvac/device-v1.toolCatalog, deferred due to recusive use
6641
6762
  const encoding47_18 = c.array(c.frame(encoding112))
6642
6763
  // @qvac/report-device-capabilities-operation-v1.toolCatalog, deferred due to recusive use
@@ -7031,6 +7152,14 @@ function getEncoding(name) {
7031
7152
  return encoding164
7032
7153
  case '@qvac/mesh-founder':
7033
7154
  return encoding165
7155
+ case '@qvac/purged-chat-v1':
7156
+ return encoding166
7157
+ case '@qvac/purged-chat':
7158
+ return encoding167
7159
+ case '@qvac/purge-chat-operation-v1':
7160
+ return encoding168
7161
+ case '@qvac/purge-chat-operation':
7162
+ return encoding169
7034
7163
  default:
7035
7164
  throw new Error('Encoder not found ' + name)
7036
7165
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 10,
2
+ "version": 12,
3
3
  "schema": [
4
4
  {
5
5
  "name": "chunk-type",
@@ -1404,6 +1404,11 @@
1404
1404
  "name": "rankedAt",
1405
1405
  "type": "uint",
1406
1406
  "version": 6
1407
+ },
1408
+ {
1409
+ "name": "readThrough",
1410
+ "type": "uint",
1411
+ "version": 12
1407
1412
  }
1408
1413
  ]
1409
1414
  },
@@ -4012,6 +4017,70 @@
4012
4017
  "version": 1
4013
4018
  }
4014
4019
  ]
4020
+ },
4021
+ {
4022
+ "name": "purged-chat-v1",
4023
+ "namespace": "qvac",
4024
+ "compact": false,
4025
+ "flagsPosition": -1,
4026
+ "fields": [
4027
+ {
4028
+ "name": "chatId",
4029
+ "required": true,
4030
+ "type": "string",
4031
+ "version": 11
4032
+ },
4033
+ {
4034
+ "name": "at",
4035
+ "required": true,
4036
+ "type": "uint",
4037
+ "version": 11
4038
+ }
4039
+ ]
4040
+ },
4041
+ {
4042
+ "name": "purged-chat",
4043
+ "namespace": "qvac",
4044
+ "framed": false,
4045
+ "versions": [
4046
+ {
4047
+ "type": "@qvac/purged-chat-v1",
4048
+ "map": null,
4049
+ "version": 1
4050
+ }
4051
+ ]
4052
+ },
4053
+ {
4054
+ "name": "purge-chat-operation-v1",
4055
+ "namespace": "qvac",
4056
+ "compact": false,
4057
+ "flagsPosition": -1,
4058
+ "fields": [
4059
+ {
4060
+ "name": "chatId",
4061
+ "required": true,
4062
+ "type": "string",
4063
+ "version": 11
4064
+ },
4065
+ {
4066
+ "name": "at",
4067
+ "required": true,
4068
+ "type": "uint",
4069
+ "version": 11
4070
+ }
4071
+ ]
4072
+ },
4073
+ {
4074
+ "name": "purge-chat-operation",
4075
+ "namespace": "qvac",
4076
+ "framed": false,
4077
+ "versions": [
4078
+ {
4079
+ "type": "@qvac/purge-chat-operation-v1",
4080
+ "map": null,
4081
+ "version": 1
4082
+ }
4083
+ ]
4015
4084
  }
4016
4085
  ]
4017
4086
  }
@@ -1,5 +1,5 @@
1
1
  // This file is autogenerated by hyperschema-ts
2
- // Schema version: 10
2
+ // Schema version: 12
3
3
  // Do not edit manually.
4
4
 
5
5
  export type QvacChunkType = "user-message" | "content" | "thinking" | "tool-call" | "tool-result" | "attachment" | "approval-request" | "run-status" | "run-request" | "sources" | "compaction"
@@ -255,6 +255,7 @@ export interface QvacChatV1 {
255
255
  groupId?: string | null
256
256
  rank?: number
257
257
  rankedAt?: number
258
+ readThrough?: number
258
259
  }
259
260
 
260
261
  export type QvacChat = (QvacChatV1 & { version?: number })
@@ -793,6 +794,20 @@ export interface QvacMeshFounderV1 {
793
794
 
794
795
  export type QvacMeshFounder = (QvacMeshFounderV1 & { version?: number })
795
796
 
797
+ export interface QvacPurgedChatV1 {
798
+ chatId: string
799
+ at: number
800
+ }
801
+
802
+ export type QvacPurgedChat = (QvacPurgedChatV1 & { version?: number })
803
+
804
+ export interface QvacPurgeChatOperationV1 {
805
+ chatId: string
806
+ at: number
807
+ }
808
+
809
+ export type QvacPurgeChatOperation = (QvacPurgeChatOperationV1 & { version?: number })
810
+
796
811
  export interface SchemaTypes {
797
812
  "@qvac/chunk-type": QvacChunkType
798
813
  "@qvac/run-state": QvacRunState
@@ -960,4 +975,8 @@ export interface SchemaTypes {
960
975
  "@qvac/recovery-claim": QvacRecoveryClaim
961
976
  "@qvac/mesh-founder-v1": QvacMeshFounderV1
962
977
  "@qvac/mesh-founder": QvacMeshFounder
978
+ "@qvac/purged-chat-v1": QvacPurgedChatV1
979
+ "@qvac/purged-chat": QvacPurgedChat
980
+ "@qvac/purge-chat-operation-v1": QvacPurgeChatOperationV1
981
+ "@qvac/purge-chat-operation": QvacPurgeChatOperation
963
982
  }