@qvac/core 1.0.0-rc.7 → 1.0.0

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 (237) hide show
  1. package/CHANGELOG.md +241 -3
  2. package/README.md +1 -0
  3. package/dist-lib/lib/api/attachments.d.ts +1 -1
  4. package/dist-lib/lib/api/attachments.js +11 -0
  5. package/dist-lib/lib/api/chunks.d.ts +4 -2
  6. package/dist-lib/lib/api/chunks.js +6 -3
  7. package/dist-lib/lib/api/device-routes.d.ts +6 -1
  8. package/dist-lib/lib/api/device-routes.js +20 -1
  9. package/dist-lib/lib/api/devices.js +6 -18
  10. package/dist-lib/lib/api/execution.d.ts +6 -2
  11. package/dist-lib/lib/api/execution.js +29 -3
  12. package/dist-lib/lib/api/host-run-log.d.ts +7 -1
  13. package/dist-lib/lib/api/host-run-log.js +3 -1
  14. package/dist-lib/lib/api/index.d.ts +3 -1
  15. package/dist-lib/lib/api/index.js +17 -6
  16. package/dist-lib/lib/api/members.js +13 -29
  17. package/dist-lib/lib/api/mesh.d.ts +2 -1
  18. package/dist-lib/lib/api/projects.d.ts +1 -1
  19. package/dist-lib/lib/api/projects.js +9 -5
  20. package/dist-lib/lib/api/rag-label.d.ts +4 -0
  21. package/dist-lib/lib/api/rag-label.js +21 -0
  22. package/dist-lib/lib/api/rag-lexical.d.ts +22 -0
  23. package/dist-lib/lib/api/rag-lexical.js +1058 -0
  24. package/dist-lib/lib/api/rag-manifest.d.ts +13 -0
  25. package/dist-lib/lib/api/rag-manifest.js +46 -0
  26. package/dist-lib/lib/api/rag-outline.d.ts +36 -0
  27. package/dist-lib/lib/api/rag-outline.js +426 -0
  28. package/dist-lib/lib/api/rag-plugin.d.ts +20 -0
  29. package/dist-lib/lib/api/rag-plugin.js +70 -0
  30. package/dist-lib/lib/api/rag-synthesis.d.ts +7 -0
  31. package/dist-lib/lib/api/rag-synthesis.js +102 -0
  32. package/dist-lib/lib/api/rag-targets.d.ts +23 -0
  33. package/dist-lib/lib/api/rag-targets.js +215 -0
  34. package/dist-lib/lib/api/rag-window.d.ts +5 -0
  35. package/dist-lib/lib/api/rag-window.js +46 -0
  36. package/dist-lib/lib/api/rag.d.ts +3 -2
  37. package/dist-lib/lib/api/rag.js +421 -184
  38. package/dist-lib/lib/api/served.js +8 -14
  39. package/dist-lib/lib/api/workspace.d.ts +8 -1
  40. package/dist-lib/lib/api/workspace.js +27 -13
  41. package/dist-lib/lib/assistant/harness.d.ts +9 -1
  42. package/dist-lib/lib/assistant/history.d.ts +11 -2
  43. package/dist-lib/lib/assistant/history.js +74 -4
  44. package/dist-lib/lib/assistant/media-round.d.ts +61 -0
  45. package/dist-lib/lib/assistant/media-round.js +111 -0
  46. package/dist-lib/lib/assistant/message.d.ts +7 -0
  47. package/dist-lib/lib/assistant/model-round.d.ts +19 -1
  48. package/dist-lib/lib/assistant/model-round.js +163 -28
  49. package/dist-lib/lib/assistant/pdf-pages.d.ts +16 -1
  50. package/dist-lib/lib/assistant/pdf-pages.js +67 -3
  51. package/dist-lib/lib/assistant/round-host.d.ts +22 -0
  52. package/dist-lib/lib/assistant/round-host.js +142 -8
  53. package/dist-lib/lib/assistant/upload.d.ts +12 -0
  54. package/dist-lib/lib/assistant/upload.js +36 -0
  55. package/dist-lib/lib/assistant-client.d.ts +1 -0
  56. package/dist-lib/lib/assistant-client.js +40 -19
  57. package/dist-lib/lib/assistant-tree.d.ts +2 -0
  58. package/dist-lib/lib/assistant-tree.js +48 -1
  59. package/dist-lib/lib/assistant.d.ts +18 -1
  60. package/dist-lib/lib/assistant.js +484 -95
  61. package/dist-lib/lib/client.d.ts +1 -0
  62. package/dist-lib/lib/client.js +4 -1
  63. package/dist-lib/lib/compaction.js +2 -2
  64. package/dist-lib/lib/core/agent.js +12 -45
  65. package/dist-lib/lib/core/approval-rules.js +1 -8
  66. package/dist-lib/lib/core/archived-mesh.d.ts +2 -1
  67. package/dist-lib/lib/core/archived-mesh.js +12 -8
  68. package/dist-lib/lib/core/chat-copy.d.ts +18 -3
  69. package/dist-lib/lib/core/chat-copy.js +74 -25
  70. package/dist-lib/lib/core/chat-fork.js +15 -6
  71. package/dist-lib/lib/core/chat-group.js +16 -24
  72. package/dist-lib/lib/core/chat-move.d.ts +9 -0
  73. package/dist-lib/lib/core/chat-move.js +94 -3
  74. package/dist-lib/lib/core/chat-order.js +12 -18
  75. package/dist-lib/lib/core/chat.js +38 -31
  76. package/dist-lib/lib/core/chunk.d.ts +2 -2
  77. package/dist-lib/lib/core/chunk.js +18 -25
  78. package/dist-lib/lib/core/collections.d.ts +2 -0
  79. package/dist-lib/lib/core/collections.js +2 -0
  80. package/dist-lib/lib/core/contract/activity.d.ts +4 -0
  81. package/dist-lib/lib/core/contract/activity.js +34 -4
  82. package/dist-lib/lib/core/contract/chat-group.d.ts +1 -0
  83. package/dist-lib/lib/core/contract/chat-group.js +21 -1
  84. package/dist-lib/lib/core/contract/chat.d.ts +9 -0
  85. package/dist-lib/lib/core/contract/chat.js +127 -5
  86. package/dist-lib/lib/core/contract/chunks.d.ts +1 -0
  87. package/dist-lib/lib/core/contract/chunks.js +37 -6
  88. package/dist-lib/lib/core/contract/features.d.ts +21 -0
  89. package/dist-lib/lib/core/contract/features.js +22 -0
  90. package/dist-lib/lib/core/contract/index.js +2 -0
  91. package/dist-lib/lib/core/contract/indexing.js +4 -2
  92. package/dist-lib/lib/core/contract/knowledge.js +5 -4
  93. package/dist-lib/lib/core/contract/members.js +16 -10
  94. package/dist-lib/lib/core/contract/mesh-kind.d.ts +1 -0
  95. package/dist-lib/lib/core/contract/mesh-kind.js +3 -1
  96. package/dist-lib/lib/core/contract/projects.d.ts +5 -0
  97. package/dist-lib/lib/core/contract/projects.js +13 -5
  98. package/dist-lib/lib/core/contract/roles.js +32 -4
  99. package/dist-lib/lib/core/contract/run-requests.d.ts +1 -0
  100. package/dist-lib/lib/core/contract/run-requests.js +35 -2
  101. package/dist-lib/lib/core/contract/seed-defaults.js +2 -2
  102. package/dist-lib/lib/core/contract/tool-configs.js +3 -2
  103. package/dist-lib/lib/core/contract/workspace.d.ts +2 -0
  104. package/dist-lib/lib/core/contract/workspace.js +40 -7
  105. package/dist-lib/lib/core/contract/writers.js +2 -2
  106. package/dist-lib/lib/core/departures.d.ts +3 -1
  107. package/dist-lib/lib/core/departures.js +3 -0
  108. package/dist-lib/lib/core/devices.js +1 -8
  109. package/dist-lib/lib/core/files/attachments.d.ts +2 -0
  110. package/dist-lib/lib/core/files/attachments.js +19 -1
  111. package/dist-lib/lib/core/files/index.d.ts +20 -4
  112. package/dist-lib/lib/core/files/index.js +132 -21
  113. package/dist-lib/lib/core/files/processing/document.d.ts +4 -0
  114. package/dist-lib/lib/core/files/processing/document.js +7 -0
  115. package/dist-lib/lib/core/files/processing/index.d.ts +13 -0
  116. package/dist-lib/lib/core/files/processing/index.js +144 -12
  117. package/dist-lib/lib/core/files/processing/protocol.js +13 -34
  118. package/dist-lib/lib/core/files/processing/state.d.ts +2 -0
  119. package/dist-lib/lib/core/files/rag/build.d.ts +19 -2
  120. package/dist-lib/lib/core/files/rag/build.js +123 -19
  121. package/dist-lib/lib/core/files/rag/failure.js +2 -1
  122. package/dist-lib/lib/core/files/rag/index.d.ts +11 -3
  123. package/dist-lib/lib/core/files/rag/index.js +13 -1
  124. package/dist-lib/lib/core/files/rag/load.d.ts +6 -3
  125. package/dist-lib/lib/core/files/rag/load.js +27 -6
  126. package/dist-lib/lib/core/files/rag/plugin-index.d.ts +32 -0
  127. package/dist-lib/lib/core/files/rag/plugin-index.js +127 -0
  128. package/dist-lib/lib/core/files/rag/produce.d.ts +5 -3
  129. package/dist-lib/lib/core/files/rag/produce.js +104 -16
  130. package/dist-lib/lib/core/files/rag/retrieval/full-text.d.ts +3 -1
  131. package/dist-lib/lib/core/files/rag/retrieval/full-text.js +62 -13
  132. package/dist-lib/lib/core/files/rag/text-cache.d.ts +28 -0
  133. package/dist-lib/lib/core/files/rag/text-cache.js +141 -0
  134. package/dist-lib/lib/core/files/records/knowledge.d.ts +1 -3
  135. package/dist-lib/lib/core/files/records/knowledge.js +7 -40
  136. package/dist-lib/lib/core/files/records/reclaim.js +5 -10
  137. package/dist-lib/lib/core/files/upload.js +68 -41
  138. package/dist-lib/lib/core/fs-drives.js +14 -26
  139. package/dist-lib/lib/core/invite.d.ts +1 -0
  140. package/dist-lib/lib/core/invite.js +4 -2
  141. package/dist-lib/lib/core/local/files.d.ts +1 -1
  142. package/dist-lib/lib/core/local/files.js +5 -5
  143. package/dist-lib/lib/core/local/index.d.ts +13 -6
  144. package/dist-lib/lib/core/local/index.js +103 -69
  145. package/dist-lib/lib/core/local/run-logs.d.ts +1 -1
  146. package/dist-lib/lib/core/local/run-logs.js +5 -5
  147. package/dist-lib/lib/core/mesh-processor.d.ts +19 -0
  148. package/dist-lib/lib/core/mesh-processor.js +87 -0
  149. package/dist-lib/lib/core/mesh.d.ts +48 -5
  150. package/dist-lib/lib/core/mesh.js +318 -129
  151. package/dist-lib/lib/core/migrations/agent-catalog.js +2 -8
  152. package/dist-lib/lib/core/migrations/agent-tools-scope.js +5 -11
  153. package/dist-lib/lib/core/migrations/workspace-from-0-21/index.d.ts +88 -0
  154. package/dist-lib/lib/core/migrations/workspace-from-0-21/index.js +731 -0
  155. package/dist-lib/lib/core/migrations/writer-links.d.ts +2 -0
  156. package/dist-lib/lib/core/migrations/writer-links.js +32 -0
  157. package/dist-lib/lib/core/project-keys.d.ts +6 -0
  158. package/dist-lib/lib/core/project-keys.js +11 -0
  159. package/dist-lib/lib/core/public-mesh.d.ts +3 -0
  160. package/dist-lib/lib/core/public-mesh.js +10 -8
  161. package/dist-lib/lib/core/run-requests.d.ts +3 -0
  162. package/dist-lib/lib/core/run-requests.js +21 -1
  163. package/dist-lib/lib/core/skill-availability.d.ts +33 -0
  164. package/dist-lib/lib/core/skill-availability.js +67 -0
  165. package/dist-lib/lib/core/sync/background.d.ts +0 -1
  166. package/dist-lib/lib/core/sync/background.js +2 -1
  167. package/dist-lib/lib/core/sync/changed.d.ts +4 -2
  168. package/dist-lib/lib/core/sync/changed.js +1 -1
  169. package/dist-lib/lib/core/sync/index.js +52 -10
  170. package/dist-lib/lib/core/sync/view-updates.d.ts +18 -12
  171. package/dist-lib/lib/core/sync/view-updates.js +82 -91
  172. package/dist-lib/lib/core/sync-status.js +97 -41
  173. package/dist-lib/lib/core/tool-activity.js +6 -12
  174. package/dist-lib/lib/core/tool-configs.js +17 -29
  175. package/dist-lib/lib/core/upgrade-summary.d.ts +19 -0
  176. package/dist-lib/lib/core/upgrade-summary.js +67 -0
  177. package/dist-lib/lib/core/view-read.d.ts +4 -0
  178. package/dist-lib/lib/core/view-read.js +23 -0
  179. package/dist-lib/lib/core/workspace-upgrade.d.ts +7 -0
  180. package/dist-lib/lib/core/workspace-upgrade.js +27 -16
  181. package/dist-lib/lib/core.d.ts +45 -42
  182. package/dist-lib/lib/core.js +675 -640
  183. package/dist-lib/lib/errors.d.ts +24 -0
  184. package/dist-lib/lib/errors.js +24 -0
  185. package/dist-lib/lib/llm-model-names.d.ts +1 -1
  186. package/dist-lib/lib/llm-model-names.js +1 -1
  187. package/dist-lib/lib/mesh-scoped-engine.js +4 -0
  188. package/dist-lib/lib/model-context.js +1 -2
  189. package/dist-lib/lib/model-download.d.ts +6 -1
  190. package/dist-lib/lib/model-download.js +16 -3
  191. package/dist-lib/lib/oauth/resolve.js +29 -8
  192. package/dist-lib/lib/oauth/token-exchange-core.js +11 -0
  193. package/dist-lib/lib/probe-rounds.d.ts +7 -2
  194. package/dist-lib/lib/probe-rounds.js +6 -1
  195. package/dist-lib/lib/run-transcript.d.ts +4 -1
  196. package/dist-lib/lib/run-transcript.js +15 -6
  197. package/dist-lib/schema/engine.js +83 -6
  198. package/dist-lib/schema/indexes.d.ts +3 -0
  199. package/dist-lib/schema/indexes.js +5 -0
  200. package/dist-lib/schema/local.js +11 -2
  201. package/dist-lib/schema/qvac.js +49 -5
  202. package/dist-lib/spec/bind.js +34 -0
  203. package/dist-lib/spec/calls.js +5 -0
  204. package/dist-lib/spec/capabilities.d.ts +17 -0
  205. package/dist-lib/spec/hrpc/hrpc.json +65 -0
  206. package/dist-lib/spec/hrpc/index.js +68 -5
  207. package/dist-lib/spec/hrpc/messages.js +260 -23
  208. package/dist-lib/spec/hyperschema/index.js +260 -23
  209. package/dist-lib/spec/hyperschema/schema.json +181 -0
  210. package/dist-lib/spec/hyperschema/types.d.ts +48 -0
  211. package/dist-lib/spec/local/hyperdb/messages.js +270 -224
  212. package/dist-lib/spec/local/hyperschema/index.js +73 -38
  213. package/dist-lib/spec/local/hyperschema/schema.json +31 -0
  214. package/dist-lib/spec/local/hyperschema/types.d.ts +8 -0
  215. package/dist-lib/spec/mesh/hyperdb/db.json +39 -2
  216. package/dist-lib/spec/mesh/hyperdb/index.js +120 -3
  217. package/dist-lib/spec/mesh/hyperdb/messages.js +1328 -838
  218. package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +30 -0
  219. package/dist-lib/spec/mesh/hyperdispatch/index.js +86 -1
  220. package/dist-lib/spec/mesh/hyperdispatch/messages.js +682 -287
  221. package/dist-lib/spec/mesh/hyperschema/index.js +682 -287
  222. package/dist-lib/spec/mesh/hyperschema/schema.json +201 -0
  223. package/dist-lib/spec/mesh/hyperschema/types.d.ts +52 -0
  224. package/package.json +82 -71
  225. package/tui/README.md +52 -0
  226. package/tui/app.mjs +69 -12
  227. package/tui/boot.mjs +27 -6
  228. package/tui/cli.mjs +93 -0
  229. package/tui/index.mjs +2 -87
  230. package/tui/lib/attachment-files.mjs +82 -0
  231. package/tui/lib/reopen-meshes.mjs +15 -0
  232. package/tui/lib/updater.mjs +86 -0
  233. package/tui/main.mjs +29 -57
  234. package/worker/assistant-sidecar.mjs +10 -3
  235. package/worker/stow-entry.mjs +3 -52
  236. package/dist-lib/lib/core/chat-project.d.ts +0 -2
  237. package/dist-lib/lib/core/chat-project.js +0 -15
@@ -4278,6 +4278,9 @@ const encoding111 = {
4278
4278
  }
4279
4279
  }
4280
4280
 
4281
+ // @assistant/chunk-v1.unavailableSkills
4282
+ const encoding112_46 = encoding14_6
4283
+
4281
4284
  // @assistant/chunk-v1
4282
4285
  const encoding112 = {
4283
4286
  preencode(state, m) {
@@ -4320,7 +4323,9 @@ const encoding112 = {
4320
4323
  (m.agentSwitch ? 34359738368 : 0) +
4321
4324
  (m.runnerDeviceId ? 68719476736 : 0) +
4322
4325
  (m.runTakenBy ? 137438953472 : 0) +
4323
- (m.runTakenAt ? 274877906944 : 0)
4326
+ (m.runTakenAt ? 274877906944 : 0) +
4327
+ (m.runMovedFrom ? 549755813888 : 0) +
4328
+ (m.unavailableSkills ? 1099511627776 : 0)
4324
4329
 
4325
4330
  c.string.preencode(state, m.id)
4326
4331
  c.string.preencode(state, m.chatId)
@@ -4366,6 +4371,8 @@ const encoding112 = {
4366
4371
  if (m.runnerDeviceId) c.fixed32.preencode(state, m.runnerDeviceId)
4367
4372
  if (m.runTakenBy) c.fixed32.preencode(state, m.runTakenBy)
4368
4373
  if (m.runTakenAt) c.uint.preencode(state, m.runTakenAt)
4374
+ if (m.runMovedFrom) c.fixed32.preencode(state, m.runMovedFrom)
4375
+ if (m.unavailableSkills) encoding112_46.preencode(state, m.unavailableSkills)
4369
4376
  },
4370
4377
  encode(state, m) {
4371
4378
  const flags =
@@ -4407,7 +4414,9 @@ const encoding112 = {
4407
4414
  (m.agentSwitch ? 34359738368 : 0) +
4408
4415
  (m.runnerDeviceId ? 68719476736 : 0) +
4409
4416
  (m.runTakenBy ? 137438953472 : 0) +
4410
- (m.runTakenAt ? 274877906944 : 0)
4417
+ (m.runTakenAt ? 274877906944 : 0) +
4418
+ (m.runMovedFrom ? 549755813888 : 0) +
4419
+ (m.unavailableSkills ? 1099511627776 : 0)
4411
4420
 
4412
4421
  c.string.encode(state, m.id)
4413
4422
  c.string.encode(state, m.chatId)
@@ -4453,6 +4462,8 @@ const encoding112 = {
4453
4462
  if (m.runnerDeviceId) c.fixed32.encode(state, m.runnerDeviceId)
4454
4463
  if (m.runTakenBy) c.fixed32.encode(state, m.runTakenBy)
4455
4464
  if (m.runTakenAt) c.uint.encode(state, m.runTakenAt)
4465
+ if (m.runMovedFrom) c.fixed32.encode(state, m.runMovedFrom)
4466
+ if (m.unavailableSkills) encoding112_46.encode(state, m.unavailableSkills)
4456
4467
  },
4457
4468
  decode(state) {
4458
4469
  const r0 = c.string.decode(state)
@@ -4505,7 +4516,9 @@ const encoding112 = {
4505
4516
  agentSwitch: Math.floor(flags / 34359738368) % 2 === 1 ? encoding110.decode(state) : null,
4506
4517
  runnerDeviceId: Math.floor(flags / 68719476736) % 2 === 1 ? c.fixed32.decode(state) : null,
4507
4518
  runTakenBy: Math.floor(flags / 137438953472) % 2 === 1 ? c.fixed32.decode(state) : null,
4508
- runTakenAt: Math.floor(flags / 274877906944) % 2 === 1 ? c.uint.decode(state) : 0
4519
+ runTakenAt: Math.floor(flags / 274877906944) % 2 === 1 ? c.uint.decode(state) : 0,
4520
+ runMovedFrom: Math.floor(flags / 549755813888) % 2 === 1 ? c.fixed32.decode(state) : null,
4521
+ unavailableSkills: Math.floor(flags / 1099511627776) % 2 === 1 ? encoding112_46.decode(state) : null
4509
4522
  }
4510
4523
  }
4511
4524
  }
@@ -4577,6 +4590,9 @@ const encoding114 = {
4577
4590
  }
4578
4591
  }
4579
4592
 
4593
+ // @assistant/append-chunk-request.unavailableSkills
4594
+ const encoding115_31 = encoding14_6
4595
+
4580
4596
  // @assistant/append-chunk-request
4581
4597
  const encoding115 = {
4582
4598
  preencode(state, m) {
@@ -4607,7 +4623,8 @@ const encoding115 = {
4607
4623
  (m.callId ? 8388608 : 0) |
4608
4624
  (m.resumed ? 16777216 : 0) |
4609
4625
  (m.roundReset ? 33554432 : 0) |
4610
- (m.agentSwitch ? 67108864 : 0)
4626
+ (m.agentSwitch ? 67108864 : 0) |
4627
+ (m.unavailableSkills ? 134217728 : 0)
4611
4628
 
4612
4629
  c.string.preencode(state, m.chatId)
4613
4630
  c.uint.preencode(state, flags)
@@ -4641,6 +4658,7 @@ const encoding115 = {
4641
4658
  if (m.callId) c.string.preencode(state, m.callId)
4642
4659
  if (m.roundReset) encoding108.preencode(state, m.roundReset)
4643
4660
  if (m.agentSwitch) encoding110.preencode(state, m.agentSwitch)
4661
+ if (m.unavailableSkills) encoding115_31.preencode(state, m.unavailableSkills)
4644
4662
  },
4645
4663
  encode(state, m) {
4646
4664
  const flags =
@@ -4670,7 +4688,8 @@ const encoding115 = {
4670
4688
  (m.callId ? 8388608 : 0) |
4671
4689
  (m.resumed ? 16777216 : 0) |
4672
4690
  (m.roundReset ? 33554432 : 0) |
4673
- (m.agentSwitch ? 67108864 : 0)
4691
+ (m.agentSwitch ? 67108864 : 0) |
4692
+ (m.unavailableSkills ? 134217728 : 0)
4674
4693
 
4675
4694
  c.string.encode(state, m.chatId)
4676
4695
  c.uint.encode(state, flags)
@@ -4704,6 +4723,7 @@ const encoding115 = {
4704
4723
  if (m.callId) c.string.encode(state, m.callId)
4705
4724
  if (m.roundReset) encoding108.encode(state, m.roundReset)
4706
4725
  if (m.agentSwitch) encoding110.encode(state, m.agentSwitch)
4726
+ if (m.unavailableSkills) encoding115_31.encode(state, m.unavailableSkills)
4707
4727
  },
4708
4728
  decode(state) {
4709
4729
  const r0 = c.string.decode(state)
@@ -4740,7 +4760,8 @@ const encoding115 = {
4740
4760
  callId: (flags & 8388608) !== 0 ? c.string.decode(state) : null,
4741
4761
  resumed: (flags & 16777216) !== 0,
4742
4762
  roundReset: (flags & 33554432) !== 0 ? encoding108.decode(state) : null,
4743
- agentSwitch: (flags & 67108864) !== 0 ? encoding110.decode(state) : null
4763
+ agentSwitch: (flags & 67108864) !== 0 ? encoding110.decode(state) : null,
4764
+ unavailableSkills: (flags & 134217728) !== 0 ? encoding115_31.decode(state) : null
4744
4765
  }
4745
4766
  }
4746
4767
  }
@@ -5219,7 +5240,8 @@ const encoding127 = {
5219
5240
  (m.fileId ? 128 : 0) |
5220
5241
  (m.totalBytes ? 256 : 0) |
5221
5242
  (m.meshId ? 512 : 0) |
5222
- (m.sourceId ? 1024 : 0)
5243
+ (m.sourceId ? 1024 : 0) |
5244
+ (m.blobId ? 2048 : 0)
5223
5245
 
5224
5246
  c.uint.preencode(state, flags)
5225
5247
 
@@ -5233,6 +5255,7 @@ const encoding127 = {
5233
5255
  if (m.totalBytes) c.uint.preencode(state, m.totalBytes)
5234
5256
  if (m.meshId) c.string.preencode(state, m.meshId)
5235
5257
  if (m.sourceId) c.string.preencode(state, m.sourceId)
5258
+ if (m.blobId) c.string.preencode(state, m.blobId)
5236
5259
  },
5237
5260
  encode(state, m) {
5238
5261
  const flags =
@@ -5246,7 +5269,8 @@ const encoding127 = {
5246
5269
  (m.fileId ? 128 : 0) |
5247
5270
  (m.totalBytes ? 256 : 0) |
5248
5271
  (m.meshId ? 512 : 0) |
5249
- (m.sourceId ? 1024 : 0)
5272
+ (m.sourceId ? 1024 : 0) |
5273
+ (m.blobId ? 2048 : 0)
5250
5274
 
5251
5275
  c.uint.encode(state, flags)
5252
5276
 
@@ -5260,6 +5284,7 @@ const encoding127 = {
5260
5284
  if (m.totalBytes) c.uint.encode(state, m.totalBytes)
5261
5285
  if (m.meshId) c.string.encode(state, m.meshId)
5262
5286
  if (m.sourceId) c.string.encode(state, m.sourceId)
5287
+ if (m.blobId) c.string.encode(state, m.blobId)
5263
5288
  },
5264
5289
  decode(state) {
5265
5290
  const flags = c.uint.decode(state)
@@ -5275,7 +5300,8 @@ const encoding127 = {
5275
5300
  fileId: (flags & 128) !== 0 ? c.string.decode(state) : null,
5276
5301
  totalBytes: (flags & 256) !== 0 ? c.uint.decode(state) : 0,
5277
5302
  meshId: (flags & 512) !== 0 ? c.string.decode(state) : null,
5278
- sourceId: (flags & 1024) !== 0 ? c.string.decode(state) : null
5303
+ sourceId: (flags & 1024) !== 0 ? c.string.decode(state) : null,
5304
+ blobId: (flags & 2048) !== 0 ? c.string.decode(state) : null
5279
5305
  }
5280
5306
  }
5281
5307
  }
@@ -5582,16 +5608,22 @@ const encoding139 = {
5582
5608
  preencode(state, m) {
5583
5609
  c.string.preencode(state, m.chatId)
5584
5610
  c.string.preencode(state, m.query)
5585
- state.end++ // max flag is 8 so always one byte
5611
+ state.end++ // max flag is 32 so always one byte
5586
5612
 
5587
5613
  if (m.limit) c.uint.preencode(state, m.limit)
5588
5614
  if (m.mode) encoding138.preencode(state, m.mode)
5589
5615
  if (m.attachmentIds) encoding139_4.preencode(state, m.attachmentIds)
5590
5616
  c.string.preencode(state, m.meshId)
5617
+ if (m.previousQuery) c.string.preencode(state, m.previousQuery)
5591
5618
  },
5592
5619
  encode(state, m) {
5593
5620
  const flags =
5594
- (m.limit ? 1 : 0) | (m.mode ? 2 : 0) | (m.attachmentIds ? 4 : 0) | (m.immediate ? 8 : 0)
5621
+ (m.limit ? 1 : 0) |
5622
+ (m.mode ? 2 : 0) |
5623
+ (m.attachmentIds ? 4 : 0) |
5624
+ (m.immediate ? 8 : 0) |
5625
+ (m.previousQuery ? 16 : 0) |
5626
+ (m.excerptsOnly ? 32 : 0)
5595
5627
 
5596
5628
  c.string.encode(state, m.chatId)
5597
5629
  c.string.encode(state, m.query)
@@ -5601,6 +5633,7 @@ const encoding139 = {
5601
5633
  if (m.mode) encoding138.encode(state, m.mode)
5602
5634
  if (m.attachmentIds) encoding139_4.encode(state, m.attachmentIds)
5603
5635
  c.string.encode(state, m.meshId)
5636
+ if (m.previousQuery) c.string.encode(state, m.previousQuery)
5604
5637
  },
5605
5638
  decode(state) {
5606
5639
  const r0 = c.string.decode(state)
@@ -5614,7 +5647,9 @@ const encoding139 = {
5614
5647
  mode: (flags & 2) !== 0 ? encoding138.decode(state) : null,
5615
5648
  attachmentIds: (flags & 4) !== 0 ? encoding139_4.decode(state) : null,
5616
5649
  meshId: c.string.decode(state),
5617
- immediate: (flags & 8) !== 0
5650
+ immediate: (flags & 8) !== 0,
5651
+ previousQuery: (flags & 16) !== 0 ? c.string.decode(state) : null,
5652
+ excerptsOnly: (flags & 32) !== 0
5618
5653
  }
5619
5654
  }
5620
5655
  }
@@ -5656,6 +5691,10 @@ const encoding141_7 = c.array(c.frame(encoding140))
5656
5691
  const encoding141_9 = encoding14_6
5657
5692
  // @assistant/rag-search-response.pendingFiles
5658
5693
  const encoding141_10 = encoding14_6
5694
+ // @assistant/rag-search-response.uncoveredItems
5695
+ const encoding141_14 = encoding14_6
5696
+ // @assistant/rag-search-response.outline
5697
+ const encoding141_15 = encoding14_6
5659
5698
 
5660
5699
  // @assistant/rag-search-response
5661
5700
  const encoding141 = {
@@ -5673,7 +5712,9 @@ const encoding141 = {
5673
5712
  (m.pendingFiles ? 512 : 0) |
5674
5713
  (m.chatFilesNotReady ? 1024 : 0) |
5675
5714
  (m.projectFilesNotReady ? 2048 : 0) |
5676
- (m.chatFilesIndexingHere ? 4096 : 0)
5715
+ (m.chatFilesIndexingHere ? 4096 : 0) |
5716
+ (m.uncoveredItems ? 8192 : 0) |
5717
+ (m.outline ? 16384 : 0)
5677
5718
 
5678
5719
  c.uint.preencode(state, flags)
5679
5720
  c.uint.preencode(state, m.searchedCount)
@@ -5687,6 +5728,8 @@ const encoding141 = {
5687
5728
  if (m.chatFilesNotReady) c.uint.preencode(state, m.chatFilesNotReady)
5688
5729
  if (m.projectFilesNotReady) c.uint.preencode(state, m.projectFilesNotReady)
5689
5730
  if (m.chatFilesIndexingHere) c.uint.preencode(state, m.chatFilesIndexingHere)
5731
+ if (m.uncoveredItems) encoding141_14.preencode(state, m.uncoveredItems)
5732
+ if (m.outline) encoding141_15.preencode(state, m.outline)
5690
5733
  },
5691
5734
  encode(state, m) {
5692
5735
  const flags =
@@ -5702,7 +5745,9 @@ const encoding141 = {
5702
5745
  (m.pendingFiles ? 512 : 0) |
5703
5746
  (m.chatFilesNotReady ? 1024 : 0) |
5704
5747
  (m.projectFilesNotReady ? 2048 : 0) |
5705
- (m.chatFilesIndexingHere ? 4096 : 0)
5748
+ (m.chatFilesIndexingHere ? 4096 : 0) |
5749
+ (m.uncoveredItems ? 8192 : 0) |
5750
+ (m.outline ? 16384 : 0)
5706
5751
 
5707
5752
  c.uint.encode(state, flags)
5708
5753
  c.uint.encode(state, m.searchedCount)
@@ -5716,6 +5761,8 @@ const encoding141 = {
5716
5761
  if (m.chatFilesNotReady) c.uint.encode(state, m.chatFilesNotReady)
5717
5762
  if (m.projectFilesNotReady) c.uint.encode(state, m.projectFilesNotReady)
5718
5763
  if (m.chatFilesIndexingHere) c.uint.encode(state, m.chatFilesIndexingHere)
5764
+ if (m.uncoveredItems) encoding141_14.encode(state, m.uncoveredItems)
5765
+ if (m.outline) encoding141_15.encode(state, m.outline)
5719
5766
  },
5720
5767
  decode(state) {
5721
5768
  const flags = c.uint.decode(state)
@@ -5734,7 +5781,9 @@ const encoding141 = {
5734
5781
  pendingFiles: (flags & 512) !== 0 ? encoding141_10.decode(state) : null,
5735
5782
  chatFilesNotReady: (flags & 1024) !== 0 ? c.uint.decode(state) : 0,
5736
5783
  projectFilesNotReady: (flags & 2048) !== 0 ? c.uint.decode(state) : 0,
5737
- chatFilesIndexingHere: (flags & 4096) !== 0 ? c.uint.decode(state) : 0
5784
+ chatFilesIndexingHere: (flags & 4096) !== 0 ? c.uint.decode(state) : 0,
5785
+ uncoveredItems: (flags & 8192) !== 0 ? encoding141_14.decode(state) : null,
5786
+ outline: (flags & 16384) !== 0 ? encoding141_15.decode(state) : null
5738
5787
  }
5739
5788
  }
5740
5789
  }
@@ -6031,14 +6080,20 @@ const encoding150 = {
6031
6080
  preencode(state, m) {
6032
6081
  encoding150_0.preencode(state, m.knowledge)
6033
6082
  encoding146.preencode(state, m.status)
6034
- state.end++ // max flag is 8 so always one byte
6083
+ state.end++ // max flag is 16 so always one byte
6035
6084
 
6036
6085
  if (m.error) c.string.preencode(state, m.error)
6037
6086
  if (m.reason) encoding149.preencode(state, m.reason)
6038
6087
  if (m.failedOn) c.string.preencode(state, m.failedOn)
6088
+ if (m.progress) encoding150_6.preencode(state, m.progress)
6039
6089
  },
6040
6090
  encode(state, m) {
6041
- const flags = (m.error ? 1 : 0) | (m.loaded ? 2 : 0) | (m.reason ? 4 : 0) | (m.failedOn ? 8 : 0)
6091
+ const flags =
6092
+ (m.error ? 1 : 0) |
6093
+ (m.loaded ? 2 : 0) |
6094
+ (m.reason ? 4 : 0) |
6095
+ (m.failedOn ? 8 : 0) |
6096
+ (m.progress ? 16 : 0)
6042
6097
 
6043
6098
  encoding150_0.encode(state, m.knowledge)
6044
6099
  encoding146.encode(state, m.status)
@@ -6047,6 +6102,7 @@ const encoding150 = {
6047
6102
  if (m.error) c.string.encode(state, m.error)
6048
6103
  if (m.reason) encoding149.encode(state, m.reason)
6049
6104
  if (m.failedOn) c.string.encode(state, m.failedOn)
6105
+ if (m.progress) encoding150_6.encode(state, m.progress)
6050
6106
  },
6051
6107
  decode(state) {
6052
6108
  const r0 = encoding150_0.decode(state)
@@ -6059,7 +6115,8 @@ const encoding150 = {
6059
6115
  error: (flags & 1) !== 0 ? c.string.decode(state) : null,
6060
6116
  loaded: (flags & 2) !== 0,
6061
6117
  reason: (flags & 4) !== 0 ? encoding149.decode(state) : null,
6062
- failedOn: (flags & 8) !== 0 ? c.string.decode(state) : null
6118
+ failedOn: (flags & 8) !== 0 ? c.string.decode(state) : null,
6119
+ progress: (flags & 16) !== 0 ? encoding150_6.decode(state) : null
6063
6120
  }
6064
6121
  }
6065
6122
  }
@@ -9738,9 +9795,6 @@ const encoding259 = {
9738
9795
  }
9739
9796
  }
9740
9797
 
9741
- // @assistant/file-processor-status.progress
9742
- const encoding260_7 = c.frame(encoding259)
9743
-
9744
9798
  // @assistant/file-processor-status
9745
9799
  const encoding260 = {
9746
9800
  preencode(state, m) {
@@ -9809,8 +9863,6 @@ const encoding260 = {
9809
9863
  }
9810
9864
  }
9811
9865
 
9812
- // @assistant/file-status.uploadProgress
9813
- const encoding261_6 = encoding260_7
9814
9866
  // @assistant/file-status.processors
9815
9867
  const encoding261_7 = c.array(c.frame(encoding260))
9816
9868
 
@@ -12581,8 +12633,181 @@ const encoding361 = {
12581
12633
  }
12582
12634
  }
12583
12635
 
12636
+ // @assistant/skill-availability
12637
+ const encoding362 = {
12638
+ preencode(state, m) {
12639
+ c.string.preencode(state, m.name)
12640
+ state.end++ // max flag is 2 so always one byte
12641
+
12642
+ if (m.reason) c.string.preencode(state, m.reason)
12643
+ },
12644
+ encode(state, m) {
12645
+ const flags = (m.available ? 1 : 0) | (m.reason ? 2 : 0)
12646
+
12647
+ c.string.encode(state, m.name)
12648
+ c.uint.encode(state, flags)
12649
+
12650
+ if (m.reason) c.string.encode(state, m.reason)
12651
+ },
12652
+ decode(state) {
12653
+ const r0 = c.string.decode(state)
12654
+ const flags = c.uint.decode(state)
12655
+
12656
+ return {
12657
+ name: r0,
12658
+ available: (flags & 1) !== 0,
12659
+ reason: (flags & 2) !== 0 ? c.string.decode(state) : null
12660
+ }
12661
+ }
12662
+ }
12663
+
12664
+ // @assistant/chat-skill-availability.skills
12665
+ const encoding363_0 = c.array(c.frame(encoding362))
12666
+
12667
+ // @assistant/chat-skill-availability
12668
+ const encoding363 = {
12669
+ preencode(state, m) {
12670
+ state.end++ // max flag is 1 so always one byte
12671
+
12672
+ if (m.skills) encoding363_0.preencode(state, m.skills)
12673
+ },
12674
+ encode(state, m) {
12675
+ const flags = m.skills ? 1 : 0
12676
+
12677
+ c.uint.encode(state, flags)
12678
+
12679
+ if (m.skills) encoding363_0.encode(state, m.skills)
12680
+ },
12681
+ decode(state) {
12682
+ const flags = c.uint.decode(state)
12683
+
12684
+ return {
12685
+ skills: (flags & 1) !== 0 ? encoding363_0.decode(state) : null
12686
+ }
12687
+ }
12688
+ }
12689
+
12690
+ // @assistant/upgraded-workspace
12691
+ const encoding364 = {
12692
+ preencode(state, m) {
12693
+ c.string.preencode(state, m.meshId)
12694
+ state.end++ // max flag is 4 so always one byte
12695
+
12696
+ if (m.ungroupedProjectId) c.string.preencode(state, m.ungroupedProjectId)
12697
+ },
12698
+ encode(state, m) {
12699
+ const flags = (m.pending ? 1 : 0) | (m.hasGroups ? 2 : 0) | (m.ungroupedProjectId ? 4 : 0)
12700
+
12701
+ c.string.encode(state, m.meshId)
12702
+ c.uint.encode(state, flags)
12703
+
12704
+ if (m.ungroupedProjectId) c.string.encode(state, m.ungroupedProjectId)
12705
+ },
12706
+ decode(state) {
12707
+ const r0 = c.string.decode(state)
12708
+ const flags = c.uint.decode(state)
12709
+
12710
+ return {
12711
+ meshId: r0,
12712
+ pending: (flags & 1) !== 0,
12713
+ hasGroups: (flags & 2) !== 0,
12714
+ ungroupedProjectId: (flags & 4) !== 0 ? c.string.decode(state) : null
12715
+ }
12716
+ }
12717
+ }
12718
+
12719
+ // @assistant/workspace-upgrade-summary.workspaces
12720
+ const encoding365_0 = c.array(c.frame(encoding364))
12721
+
12722
+ // @assistant/workspace-upgrade-summary
12723
+ const encoding365 = {
12724
+ preencode(state, m) {
12725
+ state.end++ // max flag is 4 so always one byte
12726
+
12727
+ if (m.workspaces) encoding365_0.preencode(state, m.workspaces)
12728
+ if (m.privateChatsWorkspaceId) c.string.preencode(state, m.privateChatsWorkspaceId)
12729
+ },
12730
+ encode(state, m) {
12731
+ const flags =
12732
+ (m.workspaces ? 1 : 0) | (m.privateChatsWorkspaceId ? 2 : 0) | (m.privateChatsPending ? 4 : 0)
12733
+
12734
+ c.uint.encode(state, flags)
12735
+
12736
+ if (m.workspaces) encoding365_0.encode(state, m.workspaces)
12737
+ if (m.privateChatsWorkspaceId) c.string.encode(state, m.privateChatsWorkspaceId)
12738
+ },
12739
+ decode(state) {
12740
+ const flags = c.uint.decode(state)
12741
+
12742
+ return {
12743
+ workspaces: (flags & 1) !== 0 ? encoding365_0.decode(state) : null,
12744
+ privateChatsWorkspaceId: (flags & 2) !== 0 ? c.string.decode(state) : null,
12745
+ privateChatsPending: (flags & 4) !== 0
12746
+ }
12747
+ }
12748
+ }
12749
+
12750
+ // @assistant/put-blob-request
12751
+ const encoding366 = {
12752
+ preencode(state, m) {
12753
+ state.end++ // max flag is 2 so always one byte
12754
+
12755
+ if (m.meshId) c.string.preencode(state, m.meshId)
12756
+ if (m.data) c.buffer.preencode(state, m.data)
12757
+ },
12758
+ encode(state, m) {
12759
+ const flags = (m.meshId ? 1 : 0) | (m.data ? 2 : 0)
12760
+
12761
+ c.uint.encode(state, flags)
12762
+
12763
+ if (m.meshId) c.string.encode(state, m.meshId)
12764
+ if (m.data) c.buffer.encode(state, m.data)
12765
+ },
12766
+ decode(state) {
12767
+ const flags = c.uint.decode(state)
12768
+
12769
+ return {
12770
+ meshId: (flags & 1) !== 0 ? c.string.decode(state) : null,
12771
+ data: (flags & 2) !== 0 ? c.buffer.decode(state) : null
12772
+ }
12773
+ }
12774
+ }
12775
+
12776
+ // @assistant/put-blob-response
12777
+ const encoding367 = {
12778
+ preencode(state, m) {
12779
+ c.uint.preencode(state, m.bytesWritten)
12780
+ state.end++ // max flag is 1 so always one byte
12781
+
12782
+ if (m.blobId) c.string.preencode(state, m.blobId)
12783
+ },
12784
+ encode(state, m) {
12785
+ const flags = m.blobId ? 1 : 0
12786
+
12787
+ c.uint.encode(state, m.bytesWritten)
12788
+ c.uint.encode(state, flags)
12789
+
12790
+ if (m.blobId) c.string.encode(state, m.blobId)
12791
+ },
12792
+ decode(state) {
12793
+ const r0 = c.uint.decode(state)
12794
+ const flags = c.uint.decode(state)
12795
+
12796
+ return {
12797
+ bytesWritten: r0,
12798
+ blobId: (flags & 1) !== 0 ? c.string.decode(state) : null
12799
+ }
12800
+ }
12801
+ }
12802
+
12803
+ // @assistant/knowledge-base-entry.progress, deferred due to recusive use
12804
+ const encoding150_6 = c.frame(encoding259)
12584
12805
  // @assistant/model-info-list.memory, deferred due to recusive use
12585
12806
  const encoding175_1 = c.frame(encoding322)
12807
+ // @assistant/file-processor-status.progress, deferred due to recusive use
12808
+ const encoding260_7 = encoding150_6
12809
+ // @assistant/file-status.uploadProgress, deferred due to recusive use
12810
+ const encoding261_6 = encoding150_6
12586
12811
 
12587
12812
  function setVersion(v) {
12588
12813
  version = v
@@ -13417,6 +13642,18 @@ function getEncoding(name) {
13417
13642
  return encoding360
13418
13643
  case '@assistant/skill-oauth-response':
13419
13644
  return encoding361
13645
+ case '@assistant/skill-availability':
13646
+ return encoding362
13647
+ case '@assistant/chat-skill-availability':
13648
+ return encoding363
13649
+ case '@assistant/upgraded-workspace':
13650
+ return encoding364
13651
+ case '@assistant/workspace-upgrade-summary':
13652
+ return encoding365
13653
+ case '@assistant/put-blob-request':
13654
+ return encoding366
13655
+ case '@assistant/put-blob-response':
13656
+ return encoding367
13420
13657
  default:
13421
13658
  throw new Error('Encoder not found ' + name)
13422
13659
  }