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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (509) hide show
  1. package/CHANGELOG.md +852 -1
  2. package/README.md +40 -81
  3. package/dist-lib/index.d.ts +0 -1
  4. package/dist-lib/index.js +0 -1
  5. package/dist-lib/lib/api/agent-folders.d.ts +22 -0
  6. package/dist-lib/lib/api/agent-folders.js +115 -0
  7. package/dist-lib/lib/api/agents.d.ts +19 -2
  8. package/dist-lib/lib/api/agents.js +121 -24
  9. package/dist-lib/lib/api/app-config.d.ts +4 -1
  10. package/dist-lib/lib/api/app-config.js +17 -6
  11. package/dist-lib/lib/api/attachments.js +3 -2
  12. package/dist-lib/lib/api/chat-move.d.ts +4 -0
  13. package/dist-lib/lib/api/chat-move.js +7 -0
  14. package/dist-lib/lib/api/chat.d.ts +13 -2
  15. package/dist-lib/lib/api/chat.js +114 -9
  16. package/dist-lib/lib/api/chunk-delta.d.ts +7 -0
  17. package/dist-lib/lib/api/chunk-delta.js +33 -0
  18. package/dist-lib/lib/api/chunks.d.ts +17 -2
  19. package/dist-lib/lib/api/chunks.js +64 -13
  20. package/dist-lib/lib/api/config.d.ts +2 -1
  21. package/dist-lib/lib/api/config.js +3 -2
  22. package/dist-lib/lib/api/current-mesh.d.ts +13 -5
  23. package/dist-lib/lib/api/current-mesh.js +15 -11
  24. package/dist-lib/lib/api/custom-models.d.ts +7 -1
  25. package/dist-lib/lib/api/custom-models.js +10 -8
  26. package/dist-lib/lib/api/device-routes.d.ts +9 -0
  27. package/dist-lib/lib/api/device-routes.js +123 -0
  28. package/dist-lib/lib/api/devices.d.ts +3 -2
  29. package/dist-lib/lib/api/devices.js +20 -10
  30. package/dist-lib/lib/api/diagnostics.d.ts +2 -1
  31. package/dist-lib/lib/api/diagnostics.js +2 -2
  32. package/dist-lib/lib/api/execution.d.ts +12 -1
  33. package/dist-lib/lib/api/execution.js +44 -14
  34. package/dist-lib/lib/api/host-run-log.d.ts +2 -41
  35. package/dist-lib/lib/api/host-run-log.js +35 -83
  36. package/dist-lib/lib/api/index.d.ts +28 -6
  37. package/dist-lib/lib/api/index.js +101 -33
  38. package/dist-lib/lib/api/instrument.d.ts +2 -2
  39. package/dist-lib/lib/api/instrument.js +12 -44
  40. package/dist-lib/lib/api/knowledge.d.ts +4 -1
  41. package/dist-lib/lib/api/knowledge.js +25 -7
  42. package/dist-lib/lib/api/local-files.d.ts +5 -1
  43. package/dist-lib/lib/api/local-files.js +9 -5
  44. package/dist-lib/lib/api/logs.js +3 -3
  45. package/dist-lib/lib/api/members.d.ts +10 -1
  46. package/dist-lib/lib/api/members.js +64 -17
  47. package/dist-lib/lib/api/mesh.d.ts +12 -2
  48. package/dist-lib/lib/api/mesh.js +10 -6
  49. package/dist-lib/lib/api/model-download.d.ts +2 -1
  50. package/dist-lib/lib/api/model-download.js +2 -2
  51. package/dist-lib/lib/api/network.d.ts +10 -2
  52. package/dist-lib/lib/api/network.js +8 -2
  53. package/dist-lib/lib/api/notifications.d.ts +3 -1
  54. package/dist-lib/lib/api/notifications.js +6 -5
  55. package/dist-lib/lib/api/projects.d.ts +20 -0
  56. package/dist-lib/lib/api/projects.js +165 -0
  57. package/dist-lib/lib/api/rag.d.ts +0 -1
  58. package/dist-lib/lib/api/rag.js +47 -23
  59. package/dist-lib/lib/api/served.d.ts +17 -0
  60. package/dist-lib/lib/api/served.js +47 -0
  61. package/dist-lib/lib/api/sync.d.ts +2 -1
  62. package/dist-lib/lib/api/sync.js +2 -2
  63. package/dist-lib/lib/api/tool-activity.d.ts +2 -1
  64. package/dist-lib/lib/api/tool-activity.js +4 -3
  65. package/dist-lib/lib/api/tool-configs.d.ts +2 -1
  66. package/dist-lib/lib/api/tool-configs.js +6 -9
  67. package/dist-lib/lib/api/upload-frames.d.ts +0 -1
  68. package/dist-lib/lib/api/upload-frames.js +0 -1
  69. package/dist-lib/lib/api/watchable.d.ts +3 -2
  70. package/dist-lib/lib/api/watchable.js +2 -3
  71. package/dist-lib/lib/api/workspace.d.ts +5 -0
  72. package/dist-lib/lib/api/workspace.js +48 -0
  73. package/dist-lib/lib/assistant/fake-models.d.ts +20 -0
  74. package/dist-lib/lib/assistant/fake-models.js +112 -0
  75. package/dist-lib/lib/assistant/harness.d.ts +29 -29
  76. package/dist-lib/lib/assistant/harness.js +34 -6
  77. package/dist-lib/lib/assistant/history.d.ts +30 -17
  78. package/dist-lib/lib/assistant/history.js +168 -82
  79. package/dist-lib/lib/assistant/host-run-log.d.ts +6 -1
  80. package/dist-lib/lib/assistant/host-run-log.js +24 -36
  81. package/dist-lib/lib/assistant/message.d.ts +21 -0
  82. package/dist-lib/lib/assistant/message.js +43 -0
  83. package/dist-lib/lib/assistant/model-round.d.ts +95 -0
  84. package/dist-lib/lib/assistant/model-round.js +591 -0
  85. package/dist-lib/lib/assistant/pdf-budget.d.ts +3 -0
  86. package/dist-lib/lib/assistant/pdf-budget.js +13 -0
  87. package/dist-lib/lib/assistant/round-host.d.ts +42 -0
  88. package/dist-lib/lib/assistant/round-host.js +239 -0
  89. package/dist-lib/lib/assistant/skill-encode.d.ts +2 -1
  90. package/dist-lib/lib/assistant/skill-encode.js +2 -1
  91. package/dist-lib/lib/assistant/video-budget.d.ts +13 -0
  92. package/dist-lib/lib/assistant/video-budget.js +29 -0
  93. package/dist-lib/lib/assistant-client.d.ts +2 -0
  94. package/dist-lib/lib/assistant-client.js +4 -3
  95. package/dist-lib/lib/assistant-tree.d.ts +8 -3
  96. package/dist-lib/lib/assistant-tree.js +58 -18
  97. package/dist-lib/lib/assistant.d.ts +76 -20
  98. package/dist-lib/lib/assistant.js +1659 -1070
  99. package/dist-lib/lib/audio-format.js +1 -1
  100. package/dist-lib/lib/chat-suggestion.d.ts +3 -0
  101. package/dist-lib/lib/chat-suggestion.js +47 -0
  102. package/dist-lib/lib/client.d.ts +2 -2
  103. package/dist-lib/lib/constants.d.ts +7 -0
  104. package/dist-lib/lib/constants.js +7 -0
  105. package/dist-lib/lib/core/agent-copies.d.ts +9 -0
  106. package/dist-lib/lib/core/agent-copies.js +40 -0
  107. package/dist-lib/lib/core/agent-hosting.d.ts +25 -0
  108. package/dist-lib/lib/core/agent-hosting.js +71 -0
  109. package/dist-lib/lib/core/agent.d.ts +9 -1
  110. package/dist-lib/lib/core/agent.js +45 -19
  111. package/dist-lib/lib/core/archived-mesh.d.ts +11 -6
  112. package/dist-lib/lib/core/archived-mesh.js +77 -58
  113. package/dist-lib/lib/core/async-iterable.js +1 -1
  114. package/dist-lib/lib/core/blind-peers.d.ts +1 -0
  115. package/dist-lib/lib/core/blind-peers.js +1 -0
  116. package/dist-lib/lib/core/chat-activity.d.ts +1 -1
  117. package/dist-lib/lib/core/chat-activity.js +36 -22
  118. package/dist-lib/lib/core/chat-copy.d.ts +42 -0
  119. package/dist-lib/lib/core/chat-copy.js +395 -0
  120. package/dist-lib/lib/core/chat-fork.d.ts +16 -0
  121. package/dist-lib/lib/core/chat-fork.js +245 -0
  122. package/dist-lib/lib/core/chat-group.js +8 -7
  123. package/dist-lib/lib/core/chat-move.d.ts +71 -0
  124. package/dist-lib/lib/core/chat-move.js +567 -0
  125. package/dist-lib/lib/core/chat-order.d.ts +2 -1
  126. package/dist-lib/lib/core/chat-order.js +19 -4
  127. package/dist-lib/lib/core/chat-project.d.ts +2 -0
  128. package/dist-lib/lib/core/chat-project.js +15 -0
  129. package/dist-lib/lib/core/chat-read.d.ts +4 -0
  130. package/dist-lib/lib/core/chat-read.js +49 -0
  131. package/dist-lib/lib/core/chat-search.js +14 -12
  132. package/dist-lib/lib/core/chat.d.ts +34 -4
  133. package/dist-lib/lib/core/chat.js +122 -39
  134. package/dist-lib/lib/core/chunk.d.ts +21 -4
  135. package/dist-lib/lib/core/chunk.js +138 -23
  136. package/dist-lib/lib/core/collections.d.ts +28 -0
  137. package/dist-lib/lib/core/collections.js +28 -0
  138. package/dist-lib/lib/core/contract/agent-join.d.ts +10 -0
  139. package/dist-lib/lib/core/contract/agent-join.js +108 -0
  140. package/dist-lib/lib/core/contract/agents.d.ts +5 -0
  141. package/dist-lib/lib/core/contract/agents.js +141 -3
  142. package/dist-lib/lib/core/contract/chat.d.ts +1 -0
  143. package/dist-lib/lib/core/contract/chat.js +42 -3
  144. package/dist-lib/lib/core/contract/chunks.d.ts +7 -0
  145. package/dist-lib/lib/core/contract/chunks.js +112 -35
  146. package/dist-lib/lib/core/contract/index.d.ts +2 -3
  147. package/dist-lib/lib/core/contract/index.js +35 -11
  148. package/dist-lib/lib/core/contract/indexing.d.ts +1 -0
  149. package/dist-lib/lib/core/contract/indexing.js +51 -7
  150. package/dist-lib/lib/core/contract/invites.d.ts +3 -14
  151. package/dist-lib/lib/core/contract/invites.js +18 -9
  152. package/dist-lib/lib/core/contract/joined-meshes.js +2 -1
  153. package/dist-lib/lib/core/contract/knowledge.d.ts +1 -0
  154. package/dist-lib/lib/core/contract/knowledge.js +57 -6
  155. package/dist-lib/lib/core/contract/members.d.ts +3 -1
  156. package/dist-lib/lib/core/contract/members.js +34 -4
  157. package/dist-lib/lib/core/contract/mesh-kind.d.ts +3 -3
  158. package/dist-lib/lib/core/contract/mesh-kind.js +20 -16
  159. package/dist-lib/lib/core/contract/mesh-name.d.ts +3 -0
  160. package/dist-lib/lib/core/contract/mesh-name.js +31 -0
  161. package/dist-lib/lib/core/contract/mesh-rules.d.ts +8 -0
  162. package/dist-lib/lib/core/contract/mesh-rules.js +31 -0
  163. package/dist-lib/lib/core/contract/mesh-seeds.d.ts +2 -0
  164. package/dist-lib/lib/core/contract/mesh-seeds.js +26 -0
  165. package/dist-lib/lib/core/contract/model-requests.d.ts +26 -0
  166. package/dist-lib/lib/core/contract/model-requests.js +279 -0
  167. package/dist-lib/lib/core/contract/oldest-version.d.ts +9 -0
  168. package/dist-lib/lib/core/contract/oldest-version.js +20 -0
  169. package/dist-lib/lib/core/contract/open-join.d.ts +2 -0
  170. package/dist-lib/lib/core/contract/open-join.js +77 -0
  171. package/dist-lib/lib/core/contract/project-device-keys.d.ts +7 -0
  172. package/dist-lib/lib/core/contract/project-device-keys.js +29 -0
  173. package/dist-lib/lib/core/contract/project-host-keys.d.ts +7 -0
  174. package/dist-lib/lib/core/contract/project-host-keys.js +40 -0
  175. package/dist-lib/lib/core/contract/project-order.d.ts +2 -0
  176. package/dist-lib/lib/core/contract/project-order.js +25 -0
  177. package/dist-lib/lib/core/contract/projects.d.ts +21 -0
  178. package/dist-lib/lib/core/contract/projects.js +328 -0
  179. package/dist-lib/lib/core/contract/public-mesh.d.ts +3 -0
  180. package/dist-lib/lib/core/contract/public-mesh.js +31 -0
  181. package/dist-lib/lib/core/contract/public-seeds.d.ts +9 -0
  182. package/dist-lib/lib/core/contract/public-seeds.js +43 -0
  183. package/dist-lib/lib/core/contract/roles.d.ts +10 -0
  184. package/dist-lib/lib/core/contract/roles.js +120 -0
  185. package/dist-lib/lib/core/contract/run-requests.d.ts +10 -0
  186. package/dist-lib/lib/core/contract/run-requests.js +75 -0
  187. package/dist-lib/lib/core/contract/seed-defaults.d.ts +3 -1
  188. package/dist-lib/lib/core/contract/seed-defaults.js +17 -4
  189. package/dist-lib/lib/core/contract/skill-secrets.d.ts +3 -0
  190. package/dist-lib/lib/core/contract/skill-secrets.js +32 -0
  191. package/dist-lib/lib/core/contract/tool-activity.js +12 -1
  192. package/dist-lib/lib/core/contract/tool-configs.js +2 -1
  193. package/dist-lib/lib/core/contract/types.d.ts +2 -2
  194. package/dist-lib/lib/core/contract/workspace.d.ts +31 -0
  195. package/dist-lib/lib/core/contract/workspace.js +317 -0
  196. package/dist-lib/lib/core/contract/writers.js +82 -12
  197. package/dist-lib/lib/core/departures.d.ts +16 -5
  198. package/dist-lib/lib/core/departures.js +79 -6
  199. package/dist-lib/lib/core/device-control.d.ts +21 -0
  200. package/dist-lib/lib/core/device-control.js +91 -0
  201. package/dist-lib/lib/core/device-seal.d.ts +4 -0
  202. package/dist-lib/lib/core/device-seal.js +22 -0
  203. package/dist-lib/lib/core/devices.js +1 -1
  204. package/dist-lib/lib/core/document-attachment.d.ts +7 -0
  205. package/dist-lib/lib/core/document-attachment.js +9 -0
  206. package/dist-lib/lib/core/files/attachments.js +5 -4
  207. package/dist-lib/lib/core/files/index.d.ts +21 -11
  208. package/dist-lib/lib/core/files/index.js +114 -28
  209. package/dist-lib/lib/core/files/knowledge.d.ts +10 -1
  210. package/dist-lib/lib/core/files/knowledge.js +77 -5
  211. package/dist-lib/lib/core/files/preview/index.js +6 -2
  212. package/dist-lib/lib/core/files/processing/claims.d.ts +7 -0
  213. package/dist-lib/lib/core/files/processing/claims.js +33 -7
  214. package/dist-lib/lib/core/files/processing/document.d.ts +8 -0
  215. package/dist-lib/lib/core/files/processing/document.js +26 -2
  216. package/dist-lib/lib/core/files/processing/index.d.ts +7 -2
  217. package/dist-lib/lib/core/files/processing/index.js +91 -71
  218. package/dist-lib/lib/core/files/processing/protocol.d.ts +7 -1
  219. package/dist-lib/lib/core/files/processing/protocol.js +14 -3
  220. package/dist-lib/lib/core/files/processing/source.d.ts +3 -0
  221. package/dist-lib/lib/core/files/processing/source.js +9 -4
  222. package/dist-lib/lib/core/files/processing/state.d.ts +4 -1
  223. package/dist-lib/lib/core/files/processing/state.js +2 -1
  224. package/dist-lib/lib/core/files/rag/build.d.ts +4 -1
  225. package/dist-lib/lib/core/files/rag/build.js +18 -7
  226. package/dist-lib/lib/core/files/rag/failure.d.ts +20 -0
  227. package/dist-lib/lib/core/files/rag/failure.js +57 -0
  228. package/dist-lib/lib/core/files/rag/index.d.ts +12 -1
  229. package/dist-lib/lib/core/files/rag/index.js +29 -7
  230. package/dist-lib/lib/core/files/rag/joined-index.d.ts +6 -0
  231. package/dist-lib/lib/core/files/rag/joined-index.js +35 -0
  232. package/dist-lib/lib/core/files/rag/limits.d.ts +1 -0
  233. package/dist-lib/lib/core/files/rag/limits.js +1 -0
  234. package/dist-lib/lib/core/files/rag/load.js +6 -3
  235. package/dist-lib/lib/core/files/rag/policy.d.ts +10 -1
  236. package/dist-lib/lib/core/files/rag/policy.js +23 -2
  237. package/dist-lib/lib/core/files/rag/produce.d.ts +1 -1
  238. package/dist-lib/lib/core/files/rag/produce.js +30 -18
  239. package/dist-lib/lib/core/files/rag/retrieval/full-text.js +1 -1
  240. package/dist-lib/lib/core/files/rag/similarity.d.ts +2 -2
  241. package/dist-lib/lib/core/files/rag/similarity.js +2 -3
  242. package/dist-lib/lib/core/files/records/chunks.js +22 -1
  243. package/dist-lib/lib/core/files/records/index.d.ts +1 -1
  244. package/dist-lib/lib/core/files/records/index.js +1 -1
  245. package/dist-lib/lib/core/files/records/knowledge.d.ts +11 -1
  246. package/dist-lib/lib/core/files/records/knowledge.js +40 -3
  247. package/dist-lib/lib/core/files/records/purge.js +13 -8
  248. package/dist-lib/lib/core/files/records/reclaim.js +20 -48
  249. package/dist-lib/lib/core/files/records/routing.d.ts +1 -1
  250. package/dist-lib/lib/core/files/records/routing.js +6 -2
  251. package/dist-lib/lib/core/files/records/source.js +3 -5
  252. package/dist-lib/lib/core/files/records/sweep.d.ts +3 -0
  253. package/dist-lib/lib/core/files/records/sweep.js +9 -3
  254. package/dist-lib/lib/core/files/store/blob.d.ts +2 -0
  255. package/dist-lib/lib/core/files/store/blob.js +2 -2
  256. package/dist-lib/lib/core/files/store/index.d.ts +3 -1
  257. package/dist-lib/lib/core/files/store/index.js +4 -1
  258. package/dist-lib/lib/core/files/store/reference.d.ts +3 -0
  259. package/dist-lib/lib/core/files/store/reference.js +12 -2
  260. package/dist-lib/lib/core/files/store/sweep.js +3 -1
  261. package/dist-lib/lib/core/files/upload.d.ts +5 -1
  262. package/dist-lib/lib/core/files/upload.js +53 -14
  263. package/dist-lib/lib/core/fs-drives.d.ts +6 -3
  264. package/dist-lib/lib/core/fs-drives.js +30 -18
  265. package/dist-lib/lib/core/id.d.ts +1 -0
  266. package/dist-lib/lib/core/id.js +3 -0
  267. package/dist-lib/lib/core/identity.d.ts +3 -1
  268. package/dist-lib/lib/core/identity.js +25 -4
  269. package/dist-lib/lib/core/invite.d.ts +4 -0
  270. package/dist-lib/lib/core/invite.js +19 -6
  271. package/dist-lib/lib/core/local/files.d.ts +2 -1
  272. package/dist-lib/lib/core/local/files.js +5 -7
  273. package/dist-lib/lib/core/local/index.d.ts +76 -6
  274. package/dist-lib/lib/core/local/index.js +209 -19
  275. package/dist-lib/lib/core/local/run-logs.d.ts +38 -0
  276. package/dist-lib/lib/core/local/run-logs.js +132 -0
  277. package/dist-lib/lib/core/member-key.d.ts +7 -0
  278. package/dist-lib/lib/core/member-key.js +24 -0
  279. package/dist-lib/lib/core/membership.d.ts +3 -14
  280. package/dist-lib/lib/core/membership.js +3 -96
  281. package/dist-lib/lib/core/mesh.d.ts +94 -28
  282. package/dist-lib/lib/core/mesh.js +527 -144
  283. package/dist-lib/lib/core/migrations/agent-tools-scope.d.ts +2 -0
  284. package/dist-lib/lib/core/migrations/agent-tools-scope.js +24 -0
  285. package/dist-lib/lib/core/migrations/file-index.js +2 -4
  286. package/dist-lib/lib/core/migrations/index.js +6 -2
  287. package/dist-lib/lib/core/model-requests.d.ts +13 -0
  288. package/dist-lib/lib/core/model-requests.js +65 -0
  289. package/dist-lib/lib/core/next-frame.js +2 -1
  290. package/dist-lib/lib/core/notification.js +4 -2
  291. package/dist-lib/lib/core/pdf/rasterize.d.ts +2 -2
  292. package/dist-lib/lib/core/pdf/rasterize.js +5 -6
  293. package/dist-lib/lib/core/peer-duplex.d.ts +34 -0
  294. package/dist-lib/lib/core/{harness-loan.js → peer-duplex.js} +47 -40
  295. package/dist-lib/lib/core/project-keys.d.ts +13 -0
  296. package/dist-lib/lib/core/project-keys.js +56 -0
  297. package/dist-lib/lib/core/prompt-history.js +4 -4
  298. package/dist-lib/lib/core/protocol-pairing.d.ts +11 -0
  299. package/dist-lib/lib/core/protocol-pairing.js +22 -0
  300. package/dist-lib/lib/core/public-mesh.d.ts +26 -0
  301. package/dist-lib/lib/core/public-mesh.js +88 -0
  302. package/dist-lib/lib/core/purge.d.ts +3 -0
  303. package/dist-lib/lib/core/purge.js +7 -0
  304. package/dist-lib/lib/core/run-driver.d.ts +17 -0
  305. package/dist-lib/lib/core/run-driver.js +20 -0
  306. package/dist-lib/lib/core/run-requests.d.ts +11 -0
  307. package/dist-lib/lib/core/run-requests.js +59 -0
  308. package/dist-lib/lib/core/send.d.ts +2 -0
  309. package/dist-lib/lib/core/send.js +17 -4
  310. package/dist-lib/lib/core/senders.d.ts +18 -0
  311. package/dist-lib/lib/core/senders.js +52 -0
  312. package/dist-lib/lib/core/shared-agents.d.ts +39 -0
  313. package/dist-lib/lib/core/shared-agents.js +255 -0
  314. package/dist-lib/lib/core/skill-secrets.d.ts +10 -16
  315. package/dist-lib/lib/core/skill-secrets.js +90 -72
  316. package/dist-lib/lib/core/sync/background.d.ts +47 -0
  317. package/dist-lib/lib/core/sync/background.js +162 -0
  318. package/dist-lib/lib/core/sync/changed.d.ts +20 -0
  319. package/dist-lib/lib/core/sync/changed.js +7 -0
  320. package/dist-lib/lib/core/sync/devices.js +1 -1
  321. package/dist-lib/lib/core/sync/files.d.ts +1 -0
  322. package/dist-lib/lib/core/sync/files.js +50 -72
  323. package/dist-lib/lib/core/sync/index.d.ts +1 -1
  324. package/dist-lib/lib/core/sync/index.js +154 -81
  325. package/dist-lib/lib/core/sync/view-updates.d.ts +33 -0
  326. package/dist-lib/lib/core/sync/view-updates.js +133 -0
  327. package/dist-lib/lib/core/system-info.d.ts +2 -2
  328. package/dist-lib/lib/core/system-info.js +10 -11
  329. package/dist-lib/lib/core/tool-configs.d.ts +5 -3
  330. package/dist-lib/lib/core/tool-configs.js +11 -11
  331. package/dist-lib/lib/core/transcript-visibility.d.ts +5 -5
  332. package/dist-lib/lib/core/transcript-visibility.js +27 -31
  333. package/dist-lib/lib/core/upgrade-agents.d.ts +11 -0
  334. package/dist-lib/lib/core/upgrade-agents.js +78 -0
  335. package/dist-lib/lib/core/video/attachment.d.ts +1 -0
  336. package/dist-lib/lib/core/video/attachment.js +7 -0
  337. package/dist-lib/lib/core/video/digest.d.ts +16 -0
  338. package/dist-lib/lib/core/video/digest.js +57 -0
  339. package/dist-lib/lib/core/video/frames.d.ts +32 -0
  340. package/dist-lib/lib/core/video/frames.js +224 -0
  341. package/dist-lib/lib/core/workspace-upgrade.d.ts +22 -0
  342. package/dist-lib/lib/core/workspace-upgrade.js +50 -0
  343. package/dist-lib/lib/core.d.ts +249 -79
  344. package/dist-lib/lib/core.js +3369 -1460
  345. package/dist-lib/lib/credential-pusher.d.ts +6 -0
  346. package/dist-lib/lib/credential-pusher.js +77 -60
  347. package/dist-lib/lib/custom-model-pusher.d.ts +2 -4
  348. package/dist-lib/lib/custom-model-task.d.ts +2 -1
  349. package/dist-lib/lib/custom-model-task.js +2 -2
  350. package/dist-lib/lib/diagnostics.d.ts +7 -0
  351. package/dist-lib/lib/diagnostics.js +22 -0
  352. package/dist-lib/lib/doctor/checks.d.ts +15 -0
  353. package/dist-lib/lib/doctor/checks.js +272 -0
  354. package/dist-lib/lib/doctor/redact.d.ts +4 -0
  355. package/dist-lib/lib/doctor/redact.js +31 -0
  356. package/dist-lib/lib/doctor/render.d.ts +8 -0
  357. package/dist-lib/lib/doctor/render.js +83 -0
  358. package/dist-lib/lib/doctor/tree.d.ts +5 -0
  359. package/dist-lib/lib/doctor/tree.js +167 -0
  360. package/dist-lib/lib/downloads-allowed-pusher.d.ts +8 -0
  361. package/dist-lib/lib/downloads-allowed-pusher.js +37 -0
  362. package/dist-lib/lib/errors.d.ts +790 -0
  363. package/dist-lib/lib/errors.js +724 -0
  364. package/dist-lib/lib/fs-drive-bridge.d.ts +1 -1
  365. package/dist-lib/lib/fs-drive-bridge.js +4 -1
  366. package/dist-lib/lib/guards.d.ts +1 -0
  367. package/dist-lib/lib/guards.js +4 -0
  368. package/dist-lib/lib/inference-calls.d.ts +1 -2
  369. package/dist-lib/lib/inference-calls.js +2 -10
  370. package/dist-lib/lib/knowledge-search.js +13 -18
  371. package/dist-lib/lib/kv-cache-reclaim.d.ts +2 -1
  372. package/dist-lib/lib/kv-cache-reclaim.js +30 -0
  373. package/dist-lib/lib/log.d.ts +7 -6
  374. package/dist-lib/lib/log.js +14 -7
  375. package/dist-lib/lib/logger-type.d.ts +2 -5
  376. package/dist-lib/lib/mesh-scoped-engine.js +42 -2
  377. package/dist-lib/lib/model-download-status.d.ts +3 -3
  378. package/dist-lib/lib/model-download.d.ts +11 -12
  379. package/dist-lib/lib/model-download.js +63 -22
  380. package/dist-lib/lib/model-idle-pusher.d.ts +2 -4
  381. package/dist-lib/lib/model-memory-cap.d.ts +27 -0
  382. package/dist-lib/lib/model-memory-cap.js +69 -0
  383. package/dist-lib/lib/models-watch.d.ts +1 -1
  384. package/dist-lib/lib/models-watch.js +4 -4
  385. package/dist-lib/lib/oauth/browser-connect.js +3 -2
  386. package/dist-lib/lib/oauth/flow-core.js +5 -3
  387. package/dist-lib/lib/oauth/flow.js +1 -1
  388. package/dist-lib/lib/oauth/loopback.d.ts +1 -0
  389. package/dist-lib/lib/oauth/loopback.js +57 -12
  390. package/dist-lib/lib/oauth/providers.js +4 -2
  391. package/dist-lib/lib/oauth/redirect-types.d.ts +1 -0
  392. package/dist-lib/lib/oauth/register.js +35 -19
  393. package/dist-lib/lib/oauth/request.d.ts +10 -0
  394. package/dist-lib/lib/oauth/request.js +22 -0
  395. package/dist-lib/lib/oauth/token-exchange-core.js +31 -33
  396. package/dist-lib/lib/oauth/types.d.ts +3 -0
  397. package/dist-lib/lib/oauth.d.ts +2 -1
  398. package/dist-lib/lib/oauth.js +1 -0
  399. package/dist-lib/lib/persistent-dir.d.ts +1 -0
  400. package/dist-lib/lib/persistent-dir.js +9 -0
  401. package/dist-lib/lib/probe-rounds.d.ts +3 -0
  402. package/dist-lib/lib/probe-rounds.js +5 -0
  403. package/dist-lib/lib/run-input.d.ts +14 -0
  404. package/dist-lib/lib/run-input.js +33 -0
  405. package/dist-lib/lib/run-notices.d.ts +3 -0
  406. package/dist-lib/lib/run-notices.js +8 -2
  407. package/dist-lib/lib/run-replay.d.ts +32 -0
  408. package/dist-lib/lib/run-replay.js +121 -0
  409. package/dist-lib/lib/run-transcript.d.ts +11 -12
  410. package/dist-lib/lib/run-transcript.js +16 -18
  411. package/dist-lib/lib/suspend-lifecycle.js +15 -5
  412. package/dist-lib/lib/task.js +6 -4
  413. package/dist-lib/lib/test-env.d.ts +1 -0
  414. package/dist-lib/lib/test-env.js +4 -0
  415. package/dist-lib/schema/build.js +3 -1
  416. package/dist-lib/schema/config.d.ts +1 -1
  417. package/dist-lib/schema/config.js +1 -1
  418. package/dist-lib/schema/content.d.ts +5 -1
  419. package/dist-lib/schema/content.js +58 -11
  420. package/dist-lib/schema/engine.d.ts +1 -0
  421. package/dist-lib/schema/engine.js +709 -116
  422. package/dist-lib/schema/field-order.js +2 -1
  423. package/dist-lib/schema/indexes.d.ts +3 -0
  424. package/dist-lib/schema/indexes.js +30 -3
  425. package/dist-lib/schema/local.js +72 -4
  426. package/dist-lib/schema/qvac.d.ts +4 -1
  427. package/dist-lib/schema/qvac.js +364 -12
  428. package/dist-lib/spec/bind.js +209 -48
  429. package/dist-lib/spec/calls.js +45 -5
  430. package/dist-lib/spec/capabilities.d.ts +98 -18
  431. package/dist-lib/spec/config/hyperconf/index.js +1 -1
  432. package/dist-lib/spec/hrpc/hrpc.json +726 -206
  433. package/dist-lib/spec/hrpc/index.js +832 -345
  434. package/dist-lib/spec/hrpc/messages.js +6906 -4832
  435. package/dist-lib/spec/hyperschema/index.js +6906 -4832
  436. package/dist-lib/spec/hyperschema/schema.json +4744 -3139
  437. package/dist-lib/spec/hyperschema/types.d.ts +461 -61
  438. package/dist-lib/spec/local/hyperdb/db.json +95 -1
  439. package/dist-lib/spec/local/hyperdb/index.js +459 -2
  440. package/dist-lib/spec/local/hyperdb/messages.js +1506 -484
  441. package/dist-lib/spec/local/hyperschema/index.js +542 -13
  442. package/dist-lib/spec/local/hyperschema/schema.json +319 -1
  443. package/dist-lib/spec/local/hyperschema/types.d.ts +78 -2
  444. package/dist-lib/spec/mesh/hyperdb/db.json +371 -5
  445. package/dist-lib/spec/mesh/hyperdb/index.js +1564 -5
  446. package/dist-lib/spec/mesh/hyperdb/messages.js +6023 -1246
  447. package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +187 -1
  448. package/dist-lib/spec/mesh/hyperdispatch/index.js +528 -1
  449. package/dist-lib/spec/mesh/hyperdispatch/messages.js +3449 -217
  450. package/dist-lib/spec/mesh/hyperschema/index.js +3449 -217
  451. package/dist-lib/spec/mesh/hyperschema/schema.json +1865 -19
  452. package/dist-lib/spec/mesh/hyperschema/types.d.ts +470 -6
  453. package/package.json +50 -35
  454. package/worker/assistant-sidecar.mjs +15 -2
  455. package/worker/stow-entry.mjs +2 -0
  456. package/dist-lib/lib/core/contract/compute.d.ts +0 -11
  457. package/dist-lib/lib/core/contract/compute.js +0 -48
  458. package/dist-lib/lib/core/device-invites.d.ts +0 -11
  459. package/dist-lib/lib/core/device-invites.js +0 -63
  460. package/dist-lib/lib/core/grant-expiry.d.ts +0 -11
  461. package/dist-lib/lib/core/grant-expiry.js +0 -66
  462. package/dist-lib/lib/core/handoff-channel.d.ts +0 -47
  463. package/dist-lib/lib/core/handoff-channel.js +0 -123
  464. package/dist-lib/lib/core/harness-loan.d.ts +0 -29
  465. package/dist-lib/lib/core/host-run-log-store.d.ts +0 -114
  466. package/dist-lib/lib/core/host-run-log-store.js +0 -976
  467. package/dist-lib/lib/core/hosted-agents.d.ts +0 -38
  468. package/dist-lib/lib/core/hosted-agents.js +0 -140
  469. package/dist-lib/lib/core/inference-calls-handoff.d.ts +0 -20
  470. package/dist-lib/lib/core/inference-calls-handoff.js +0 -37
  471. package/dist-lib/lib/core/inference-calls-receiver.d.ts +0 -14
  472. package/dist-lib/lib/core/inference-calls-receiver.js +0 -42
  473. package/dist-lib/lib/core/mesh-seed-handoff.d.ts +0 -25
  474. package/dist-lib/lib/core/mesh-seed-handoff.js +0 -52
  475. package/dist-lib/lib/core/secret-handoff.d.ts +0 -17
  476. package/dist-lib/lib/core/secret-handoff.js +0 -29
  477. package/dist-lib/lib/core/skill-overlay-handoff.d.ts +0 -25
  478. package/dist-lib/lib/core/skill-overlay-handoff.js +0 -50
  479. package/dist-lib/lib/core/skill-overlay-receiver.d.ts +0 -8
  480. package/dist-lib/lib/core/skill-overlay-receiver.js +0 -23
  481. package/dist-lib/lib/image-cache-dir.d.ts +0 -1
  482. package/dist-lib/lib/image-cache-dir.js +0 -5
  483. package/dist-lib/lib/log-levels.d.ts +0 -7
  484. package/dist-lib/lib/log-levels.js +0 -1
  485. package/dist-lib/lib/logger.d.ts +0 -5
  486. package/dist-lib/lib/logger.js +0 -18
  487. package/dist-lib/lib/oauth/loopback.stub.d.ts +0 -3
  488. package/dist-lib/lib/oauth/loopback.stub.js +0 -6
  489. package/tui/README.md +0 -142
  490. package/tui/app.mjs +0 -6939
  491. package/tui/boot.mjs +0 -111
  492. package/tui/index.mjs +0 -53
  493. package/tui/lib/boot-timing.mjs +0 -41
  494. package/tui/lib/busy-words.mjs +0 -116
  495. package/tui/lib/export.mjs +0 -194
  496. package/tui/lib/knowledge-command.mjs +0 -190
  497. package/tui/lib/knowledge-import.mjs +0 -171
  498. package/tui/lib/render.mjs +0 -196
  499. package/tui/lib/save-file.mjs +0 -88
  500. package/tui/lib/select.mjs +0 -81
  501. package/tui/lib/selection.mjs +0 -18
  502. package/tui/lib/setup.mjs +0 -101
  503. package/tui/lib/sidebar.mjs +0 -63
  504. package/tui/lib/splash-art.mjs +0 -107
  505. package/tui/lib/splash.mjs +0 -18
  506. package/tui/lib/upload-frames.mjs +0 -9
  507. package/tui/lib/usage.mjs +0 -59
  508. package/tui/lib/wrap.mjs +0 -143
  509. package/tui/main.mjs +0 -264
package/CHANGELOG.md CHANGED
@@ -13,6 +13,839 @@ release.
13
13
 
14
14
  ## [Unreleased]
15
15
 
16
+ ### Added
17
+
18
+ - `@qvac/core/sidecar-entry` names the script a host spawns as Core's sidecar, so a host
19
+ resolves it by name instead of a path into the package. `test/basic/entry-weight.ts` holds
20
+ every named entry to a ceiling on the files importing it loads, so an app that imports a
21
+ constant never parses the engine.
22
+
23
+ - After a completed run, on a host that asks for it, the assistant suggests the user's likely next message
24
+ and stores it on the chat, so a client can offer it to accept with one key:
25
+
26
+ ```js
27
+ const chat = await engine.getChat({ meshId, chatId })
28
+ if (chat.suggestion?.runId === latestRunId) offer(chat.suggestion.text)
29
+ ```
30
+
31
+ It is one short tool-less call after the title, cancelled by the chat's next
32
+ run, and off until the model host sets the device config key
33
+ `assistant.suggestPrompts` to `on`.
34
+ ([chat.md](docs/api/chat.md#setchatsuggestion))
35
+
36
+ - A message sent while the chat's run is still going steers it: the model host
37
+ hands it to that run, which takes it at its next tool call and answers it there,
38
+ instead of queueing a separate run behind it. Its own run then ends at once:
39
+
40
+ ```js
41
+ // { state: 'completed', reason: 'steered', metrics: { steeredInto: runId } }
42
+ ```
43
+
44
+ A run that never takes it leaves the message its own run, as before, and a
45
+ harness without steering ignores the offer.
46
+ ([execution.md](docs/api/execution.md#sendmessage))
47
+
48
+ - `worker/assistant-sidecar.mjs` takes `autoDownloadModels` from the host and
49
+ passes it to `Core`. Unset keeps today's behaviour; `false` starts a host
50
+ without fetching the default models. A sidecar that fails to start also writes
51
+ the reason to stderr, since the host may not be listening yet.
52
+
53
+ ### Changed
54
+
55
+ - Core depends on `@qvac/harness` 1.0.0-rc.8 from npm instead of a git commit, so a consumer installs
56
+ the published harness with its named entries.
57
+
58
+ - The baked version floor is `>=0.21.0`: one build per mesh, since v0.21 changes
59
+ what apply admits. Each mesh now holds a rules row, `@qvac/mesh-rules`, first
60
+ in a new mesh's genesis and appended once when this build first holds an
61
+ existing mesh writable, and apply holds new rules to ops after it only. A
62
+ 0.7.x replica that applies the row halts into its update prompt.
63
+
64
+ **Operator step:** publish `>=0.21.0` with `qvac-app → scripts/ota-config.mjs`
65
+ on each lane (dev, staging, prod) only once app 0.21 is live on that lane, and
66
+ never before: a floor above the installed release withholds every device on
67
+ the lane. Until it is published, an old replica that fast-forwards past the row
68
+ applies later ops under the old rules.
69
+
70
+ - A rules row raised above the rules this build knows halts apply into its
71
+ update prompt with the code `MESH_RULES_FROM_A_NEWER_BUILD`, instead of being
72
+ applied.
73
+
74
+ ### Removed
75
+
76
+ - The `duck` terminal UI and its bin; the terminal app lives in its own repo.
77
+
78
+ ### Fixed
79
+
80
+ - A resume whose announce reached no DHT node retries that topic within
81
+ seconds, instead of leaving the device unfindable for ten minutes.
82
+
83
+ ## [0.11.0] - 2026-10-23
84
+
85
+ ### Added
86
+
87
+ - `OAuthFlowDeps.onStage` reports `awaiting-callback` and `exchanging-code`, so a
88
+ host can log where a connect flow stopped. (#550)
89
+ - `deliverOAuthCallback(address)` in `@qvac/core/oauth` settles a waiting
90
+ sign-in from a callback address the user pastes, for a browser that cannot
91
+ reach the loopback. (#551)
92
+
93
+ ### Changed
94
+
95
+ - The OAuth loopback done page tells the user to return to QV.AC to finish
96
+ connecting. (#550)
97
+ - The PDF page-image cap scales with the run's context window, between 2 and
98
+ 32 pages, instead of a fixed 10. (#526)
99
+
100
+ ### Fixed
101
+
102
+ - An OAuth connect whose provider stops answering now fails after 30 s instead
103
+ of waiting forever: the code exchange after the browser hands back the code
104
+ with `OAUTH_TOKEN_EXCHANGE_TIMEOUT`, and dynamic client registration, before
105
+ the browser opens, with `OAUTH_REGISTRATION_TIMEOUT`.
106
+ `OAuthFlowDeps.requestTimeoutMs` sets the limit per request. (#555)
107
+ - A PDF cut at the page-image cap tells the model the last page shown. (#525)
108
+ - Each user turn renders the same bytes on every request, so the chat's KV
109
+ cache is reused. (#528)
110
+ - Two devices that take turns to leave the account and pair back can both still
111
+ `meshInvite`. Before, the fourth pairing left a device refused with
112
+ `DEVICE_INVITE_CHAIN_TOO_LONG`. (#513)
113
+ - `joinMesh` no longer hangs when a device pairs back right after it unpaired,
114
+ while the removal its leave left behind is still being delivered. (#513)
115
+
116
+ ## [0.10.4] - 2026-10-22
117
+
118
+ ### Added
119
+
120
+ - A video attachment reaches the chat's model as up to 32 frames, sized to the
121
+ context window, with their times and a transcript of its audio track. The
122
+ first run stores them as an attachment chunk carrying `sourceId`, the video's
123
+ attachment id, which later turns and other devices read instead of the video;
124
+ an app should not render a chunk with `sourceId`. `uploadAttachment` takes
125
+ `sourceId` on its first frame. Core now depends on `bare-ffmpeg`. See
126
+ [attachments](docs/api/attachments.md) and [chunks](docs/api/chunks.md).
127
+ (#496)
128
+ - A `ctxSize`, `kvCacheK` or `kvCacheV` change reloads the agent's model on its
129
+ host 2.5 seconds after the last edit, if it is loaded, instead of on the
130
+ agent's next message. (#495)
131
+
132
+ ### Changed
133
+
134
+ - `fileStatusWatch` reads only the chat's attachments, not every message in the
135
+ chat, on each refresh. (#518)
136
+
137
+ ### Fixed
138
+
139
+ - A device that unpairs itself hands the agents it hosted to its member's
140
+ earliest-paired live device, in the account and every shared mesh, instead of
141
+ leaving them orphaned. A leave from an earlier release is handed over on the
142
+ next boot. (#514)
143
+ - On a harness in its own process, an image sent to a model without a projector
144
+ is no longer dropped silently: the run asks the harness about the chat's
145
+ model, and the turn says the image is not visible to it. (#494)
146
+ - A token saved for an agent reaches `skills` and `skillCatalog` readiness as
147
+ soon as it is written, instead of after the ten-minute credential refresh.
148
+ (#523)
149
+ - `duck` reopens the meshes it had saved when it starts. (#519)
150
+
151
+ ## [0.10.3] - 2026-10-21
152
+
153
+ ### Added
154
+
155
+ - `listAgentFolders`, `addAgentFolder` and `removeAgentFolder` share a folder on
156
+ this device with an agent, read only or read and write, so its file tools have
157
+ somewhere to work. They keep the `fs.<agentId>.roots` and
158
+ `fs.<agentId>.writable` config keys the assistant already reads, so a grant
159
+ written before keeps working. See
160
+ [agent folders](docs/api/agent-folders.md). (#445)
161
+
162
+ ### Changed
163
+
164
+ - The runs a `deleteAgent` with `keepChats` cancels carry
165
+ `reason: 'agent-deleted'`, so an app can tell them from a run its user took
166
+ back and keep the message they answered. (#486)
167
+ - `deleteAgent` forgets the folders shared with the agent on this device. (#445)
168
+
169
+ ### Fixed
170
+
171
+ - A borrowed run (`lenderDeviceId`) no longer acts on the lender's machine. The
172
+ lender serves it with no shared folders, with the `files` and `exec` toolsets
173
+ off, as none of its own agents, and with its KV caches kept apart; a borrowed
174
+ run gets no image or attachment. (#477)
175
+ - A device-invite `joinMesh` no longer lists a mesh it is leaving as closed, so
176
+ the app no longer reopens it and reports `MESH_NOT_FOUND` after pairing.
177
+ (#489)
178
+
179
+ ## [0.10.2] - 2026-10-20
180
+
181
+ ### Added
182
+
183
+ - `deleteAgent` takes `keepChats`, so an app can take an agent off a space
184
+ without deleting the conversations it answered there. They stay readable, and
185
+ `setChatAgent` hands each to another agent. The agent's open runs in them are
186
+ canceled. (`AssistantDeleteAgentRequest`) (#469)
187
+
188
+ ### Changed
189
+
190
+ - `sendMessage` and `runAgent` refuse an agent that is deleted with
191
+ `AGENT_NOT_FOUND` instead of writing a run no device would claim. (#469)
192
+
193
+ ### Fixed
194
+
195
+ - A device that pairs onto another account no longer lists its old workspace
196
+ beside the new one. An `openMesh` sent during the pair waits for it and is
197
+ refused with `MESH_NOT_FOUND` for a workspace the pair left. (#482)
198
+ - A device that pairs onto another account no longer renames that account's user
199
+ to the name it had before; it takes the account's name. (#475)
200
+ - An edited or reverted skill reaches chats that had already loaded it. A
201
+ skill write or delete clears the hosting device's KV caches and run replay
202
+ records, so each chat's next turn reloads the skill from disk; that turn
203
+ prefills cold (QVAC-26561). (#473)
204
+ - `duck`: `/models add` keeps a vision model's projector, so its images are no
205
+ longer dropped. (#480)
206
+ - `duck`: `/models use <name>` refuses a name that is neither an added model's
207
+ label or id nor an exact catalog or registry name, instead of setting it and
208
+ letting the harness load whatever file the registry search hit first, which
209
+ could be a vision projector. A path or URL is still set as given. (#481)
210
+
211
+ ## [0.10.1] - 2026-10-19
212
+
213
+ ### Added
214
+
215
+ - `QvacAssistant` takes `runIdleTimeoutMs`, how long a run's harness may send
216
+ nothing before the run fails. It defaults to 15 minutes. (#468)
217
+
218
+ ### Changed
219
+
220
+ - `@qvac/harness` is now `^0.8.11` and `@qvac/skills` `^0.1.16`. (#468)
221
+
222
+ ### Fixed
223
+
224
+ - A run whose harness goes silent fails with "the agent stopped responding"
225
+ instead of showing busy forever. A run parked on an approval does not count
226
+ as silent. (#468)
227
+
228
+ ## [0.10.0] - 2026-10-16
229
+
230
+ ### Added
231
+
232
+ - Core's refusals carry a registered `@qvac/error` code, so a caller matches
233
+ them with `isCoreError` from `@qvac/core/errors` instead of their message,
234
+ which is unchanged. Every route family has its codes (`CHAT_*`, `MESH_*`,
235
+ `INVITE_*`, `MEMBER_*`, `DEVICE_*`, `AGENT_*`, `UPLOAD_*`, `MODEL_*`, `OAUTH_*`
236
+ and the rest, exported from `@qvac/core/errors`), and a refusal from a hosting device reaches the caller with
237
+ its code. An older host sends none, so its refusal arrives as its message
238
+ alone. Each module's codes are in its file under
239
+ [`docs/api/`](docs/api/README.md). (#382, #383, #384, #385, #386, #387, #388)
240
+ - `Logger` from `@qvac/core/log` implements `@qvac/logging`'s
241
+ `LoggerInterface`, has `getLevel()`, and takes `logLevel: 'off'`. `Client`,
242
+ `QvacAssistant`, the assistant children and the model pushers take any
243
+ `LoggerInterface`, so a `QvacLogger` can be passed. (#389)
244
+ - `duck` indexes office attachments with the harness extractor. (#457)
245
+
246
+ ### Changed
247
+
248
+ - **Breaking:** each `Core` writes only to the logger it is given, and one
249
+ created without a `logger` writes nothing, where it used to fall back to the
250
+ process-wide logger. Pass the logger to `Core`, `Client` and `QvacAssistant`.
251
+ (#389)
252
+ - `logSimilarityScores` from `@qvac/core/rag/similarity` writes only to the
253
+ logger passed as its third argument. (#389)
254
+
255
+ ```js
256
+ logSimilarityScores(candidates, kept) // 0.9
257
+ logSimilarityScores(candidates, kept, logger) // 0.10
258
+ ```
259
+
260
+ - **Breaking:** a compute mesh's dropped write is named
261
+ `COMPUTE_ROUTE_DROPPED`, where it was `ComputeRouteDropped`, and has no
262
+ `route` field. Match it by code. (#382)
263
+
264
+ ```js
265
+ err.name === 'ComputeRouteDropped' // 0.9
266
+ isCoreError(err, 'COMPUTE_ROUTE_DROPPED') // 0.10
267
+ ```
268
+
269
+ ### Removed
270
+
271
+ - **Breaking:** `setLogger` and the `globalThis.logger` it set. (#389)
272
+
273
+ ```js
274
+ setLogger(logger) // 0.9, then new Core(options)
275
+ new Core({ ...options, logger }) // 0.10
276
+ ```
277
+
278
+ - **Breaking:** `LEVELS` from `@qvac/core/log`. Use `LEVEL_PRIORITIES` from
279
+ `@qvac/logging/constants`, which ranks the other way round: `error` is 0.
280
+ (#389)
281
+
282
+ ```js
283
+ LEVELS[level] >= LEVELS.warn // 0.9
284
+ LEVEL_PRIORITIES[level] <= LEVEL_PRIORITIES.warn // 0.10
285
+ ```
286
+
287
+ ### Fixed
288
+
289
+ - An office file the agent host cannot decode reads `failed` with
290
+ `extractor unavailable on this device` in `fileStatusWatch`, and `ragSearch`
291
+ lists it in `failedFiles`, instead of staying pending forever and holding up
292
+ the run waiting on it. (#456)
293
+ - `updateMember` or `removeMember` called right after a join no longer fails
294
+ with `this device is in no member of its account`; it waits for the join to
295
+ land. (#391)
296
+ - A device that fast-forwards back onto a mesh lands without reading the view
297
+ in the update hook, as a joiner does. It used to scan every device, chat and
298
+ purged chat first. Chats deleted while it was away are found by the chat
299
+ order rebuild, purges by the device's own file index, and its own kick by
300
+ its own device row. (#465)
301
+ - A fast-forward no longer downloads every version of the view, and the
302
+ move-to sweep reads attachments only in the chats this device holds files
303
+ for, and knowledge rows whole, not every chat and attachment in the mesh. (#465)
304
+ - A linear update reads at most one old row per change. A revoked device or a
305
+ re-homed chat no longer scans every agent or a chat's whole history to find
306
+ its files, and the membership tally runs after the update instead of inside
307
+ it. (#465)
308
+ - A joiner no longer walks every chunk of the mesh it joined to backfill its
309
+ file index, and the backfill, the orphan sweep at every open and the purged
310
+ file reclaim read attachments chat by chat off an index instead of every
311
+ message. (#465)
312
+ - The view update hook only queues the update. A background pass syncs what
313
+ the device derives from the view, and folds updates that land while it runs
314
+ into one diff, so a streamed reply or a catch-up no longer walks once per
315
+ append, and the drain never waits on a peer for a block a side effect reads. (#465)
316
+ - The oldest view head a device has not synced is kept in the device-local
317
+ `@local/mesh-updates`, so a pass a close or crash cuts short resumes on the
318
+ next open instead of losing what it would have raised. (#465)
319
+
320
+ ## [0.9.0] - 2026-10-15
321
+
322
+ ### Changed
323
+
324
+ - **Breaking:** `meshInvite` mints a member invite as `qvac://workspace/…` and
325
+ a device invite as `qvac://device/…`, instead of `qvac://mesh/…`
326
+ (QVAC-26926). `joinMesh`, `previewMeshInvite` and `decodeMeshInvite` read all
327
+ three, so a link shared before still works, but a release before this one
328
+ refuses the new links with `Invalid mesh invite`: both sides of a join need
329
+ this version. An app that matches the prefix itself has to accept all three
330
+ before it takes this release, as tetherto/qvac-app#2535 does. (#394)
331
+
332
+ ```js
333
+ const { invite } = await engine.meshInvite({ meshId, member: true })
334
+ // 0.8: qvac://mesh/… 0.9: qvac://workspace/…
335
+ const { invite: pairing } = await engine.meshInvite({})
336
+ // 0.8: qvac://mesh/… 0.9: qvac://device/…
337
+ ```
338
+
339
+ ## [0.8.0] - 2026-10-15
340
+
341
+ ### Added
342
+
343
+ - `skillCatalog` entries carry `displayName`, the user-facing name and `@`
344
+ handle a skill's manifest declares, so an app can show Documents and
345
+ Spreadsheets for the `word` and `excel` skills without renaming them. (#392)
346
+
347
+ ```js
348
+ const { skills } = await engine.skillCatalog({ agentId: agent.id })
349
+ const handle = skills.map((skill) => skill.displayName ?? skill.name)
350
+ ```
351
+
352
+ - `meshStatusWatch` frames carry `blindPeersConnected` and `blindPeersTotal`,
353
+ the device's blind peers holding a connection of those it dials; a blind
354
+ peer connecting or dropping makes a frame. (#403)
355
+ - Every mesh lifecycle line carries where the mesh stood: `opening` names the
356
+ head it boots from (`null` is a replay from genesis), `autobee opened`,
357
+ `landed on the view`, `joined` and `closing` carry the local, system and
358
+ view lengths, the flushes, autobee's counters and the time since the open;
359
+ Core logs `mesh opened` with why (`route`, `follow`, `readmit`) and how long,
360
+ `followed the joined meshes` with its tally, and names the mesh it announces.
361
+ `diagnostics` returns the same counters under `stats.mesh.stats`. The two
362
+ seed lines (`seeded default agent`, `seeded first chat`) are debug: a rebuilt
363
+ view re-applies the genesis seed, and they read as a second seeding. (#403)
364
+
365
+ ### Changed
366
+
367
+ - Joining a mesh reports joined as soon as the fast-forward lands, instead of
368
+ after a read of the whole view over the network. On a mesh with a long
369
+ history that read took tens of seconds, whatever the invite's head. The
370
+ member tally, mesh name, chat order and file index fill in moments after the
371
+ landing; a chat list in that window waits for the rebuild. (#400)
372
+ - The mesh logs `landed on the view` and `joined` with their timings, applies
373
+ and undos, and `device admitted` is a debug line: a catch-up re-applies every
374
+ claim on each re-linearisation. (#400)
375
+ - The meshes an account names open once the account's own join has settled,
376
+ instead of the moment the account lands, so they no longer compete with the
377
+ account's catch-up for the same peers. (#407)
378
+
379
+ ### Fixed
380
+
381
+ - A mesh the account names on a sibling's behalf, opened with no head of its
382
+ own, fast-forwards onto the first head a sibling device offers, instead of
383
+ replaying from genesis until that device's row happened to land. The head's
384
+ own view carries the device's signed claim to the writer, and the account
385
+ says whose device that is. (#408)
386
+ - One blind-peering client per device, shared by every mesh and core. Each mesh
387
+ (and the config, recovery, departure and drive cores) built its own client,
388
+ all dialling under the device's one key, and a blind peer keeps one connection
389
+ per key: every connect by one mesh dropped another's, endlessly. A mesh's
390
+ invite still names the blind peers it is mirrored on; what is shared is the
391
+ connection to each. (#405)
392
+ - A device no longer dials every device in its account mesh directly on each
393
+ membership change; peers are found on the mesh topic. (#405)
394
+ - A device coming back after a long absence fast-forwards onto the new head
395
+ without diffing the whole view across cores: it reads the landed snapshot,
396
+ and the attachments deleted while it was away refresh on the sweep. On a mesh
397
+ with ~20k rows that jump took 110–150 s; it now takes a few seconds. (#399,
398
+ #402)
399
+
400
+ ## [0.7.6] - 2026-10-14
401
+
402
+ ### Added
403
+
404
+ - `duck`: `/tools` (and Menu ▸ Agent ▸ Tools) is back as the toolset switches, each
405
+ listing the tools it gates, read from the device the agent runs on. `/permissions`
406
+ keeps only the approval mode. (#380)
407
+
408
+ ### Fixed
409
+
410
+ - `duck`: copying (ctrl+y, or a drag selection) works with no clipboard command, in
411
+ a container or over ssh. It asks the terminal to set the clipboard with OSC 52,
412
+ which the terminal has to allow, and `xsel` is tried after `wl-copy` and
413
+ `xclip`. (#395)
414
+
415
+ ## [0.7.5] - 2026-10-13
416
+
417
+ ### Fixed
418
+
419
+ - A reply cut off by a phone lock now restarts on unlock instead of ending as
420
+ failed (QVAC-24690). Between `presuspend` and `suspend` iOS refuses GPU work,
421
+ so the harness ends the turn with an error event or an abort of its own.
422
+ While the assistant is in the background that ending now replays the run
423
+ under the same `runId`, for chat and capability runs alike, and a run that
424
+ arrives in that window waits. A `resume` from `presuspend` starts both again.
425
+ A thrown error still fails the run, and a context overflow reported during
426
+ that window folds after the resume instead. (#368)
427
+
428
+ ## [0.7.4] - 2026-10-13
429
+
430
+ ### Added
431
+
432
+ - A mesh write still pending after five seconds, or a mesh's first drain
433
+ still pending after fifteen, logs a warning once: the ops a write carries,
434
+ the drain's counters, and every core the views read through that this device
435
+ holds only in part, with how many peers could serve it, and which blind peers
436
+ it has reached. Writes queued behind
437
+ the same stall do not repeat it, and it logs again when the stall settles or
438
+ the write fails. A drain parked on data no connected peer holds used to say
439
+ nothing, so a hung send, stop, delete or leave left no trace in an exported
440
+ log.
441
+ - Leaving a mesh logs when it starts, so an exported log shows the attempt even
442
+ when the leave never finishes. (#352)
443
+
444
+ - Model routes reach another device of this account (QVAC-25101). `listModels`,
445
+ `modelsWatch`, `loadModel`, `unloadModel`, `deleteModel`, `retryModelDownload`,
446
+ `clearModelDownload`, `modelUsers`, the custom-model routes and the model
447
+ watches take an optional `deviceId`, and Core runs the call on that device over
448
+ the `qvac/device-control` peer channel, so fit, memory, disk and the download
449
+ queue are that device's. Only a live device of this account's own member is
450
+ served, and a custom model added from another device must come from a link.
451
+ While the device is away a call rejects with `the device is not reachable`;
452
+ `meshStatusWatch`'s `peerDeviceIds` says when it is connected again. (#280)
453
+
454
+ ```js
455
+ await engine.loadModel({ name: 'Qwen3.5-9B-Q4_K_M', deviceId: desktop.id })
456
+ ```
457
+
458
+ - A phone changes a paired desktop's own model settings and pauses its
459
+ downloads. `configGet`, `configSet` and `configWatch` take an optional
460
+ `deviceId` and reach `model.idleUnloadMinutes` and `model.memoryCapPercent` on
461
+ that device; any other key is refused there, since the same store holds
462
+ integration tokens. `setModelPaused` takes `deviceId` too, so a download on the
463
+ desktop pauses there rather than on the phone, until the desktop restarts. (#359)
464
+
465
+ ```js
466
+ import { MODEL_MEMORY_CAP_KEY } from '@qvac/core/constants'
467
+
468
+ await engine.configSet({ key: MODEL_MEMORY_CAP_KEY, value: 60, deviceId: desktop.id })
469
+ await engine.setModelPaused({ name: 'Qwen3.5-9B-Q4_K_M', paused: true, deviceId: desktop.id })
470
+ ```
471
+
472
+ - `duck`: `/device use <n|name>` points every `/models` command at another
473
+ device of this account, and `/device list` shows each one, whether it is
474
+ connected and how many models it has downloaded. `/models idle`,
475
+ `/models cap` and `/models settings` set and show a device's idle limit and
476
+ memory cap, and `/models pause` / `/models resume` hold a download. (#360)
477
+
478
+ ### Changed
479
+
480
+ - `loadModel`, `unloadModel`, `deleteModel`, `modelUsers`,
481
+ `clearModelDownload`, `retryModelDownload` and `removeCustomModel` had a
482
+ request of `name` alone; its new optional `deviceId` adds a flags byte, so
483
+ this Core cannot decode those calls from a `Client` of an earlier release
484
+ (`Out of bounds`). Upgrade the `Client` with the Core.
485
+ - `configGet`, `configWatch` and `configSet` gain the same flags byte with
486
+ their optional `deviceId`, so this Core cannot decode them from a `Client` of
487
+ an earlier release either. (#280, #359)
488
+ - `duck --join <invite>` now takes only a member invite, and the new `duck --device-join <invite>` takes only a device invite; each refuses the other's and names the right flag. `/join` previews say whether the current mesh is retired, and `/invite` says how the invitee joins. `/meshes` tags the account mesh as `home (your account)` and its footer says how to name a mesh. (#377)
489
+
490
+ ### Fixed
491
+
492
+ - Suspending no longer logs every watch it closes as `watch failed` with a
493
+ bare `Stream was destroyed`. The assistant ended those streams itself, so
494
+ none of them failed.
495
+ - A log line that carries an error in its details, such as
496
+ `{ op, err }`, prints the error's stack instead of `{}`. A destroyed stream's
497
+ error records the code that destroyed it, so the log now says why it ended.
498
+ - A device lending its compute no longer crashes when the borrower drops a call
499
+ while the lender is still accepting it. Before, the dropped stream's error
500
+ went unhandled and took the lender's whole process down. (#355)
501
+ - `updateAgent` and `deleteAgent` stamp their write after the row it replaces,
502
+ so an edit or a delete made on a device whose clock runs behind the last
503
+ writer's is applied instead of dropped as stale. A dropped delete had still
504
+ deleted the agent's chats. (#358)
505
+ - `duck` started with a device invite no longer fails with
506
+ `This device cannot reach its account to check`. It asked for its own invite
507
+ while the join was still under way; it now waits for the join to finish.
508
+
509
+ ## [0.7.3] - 2026-10-13
510
+
511
+ ### Changed
512
+
513
+ - `MAX_AUDIO_ATTACHMENT_BYTES` (`@qvac/core/audio-format`) rises from 25 MiB to 100 MiB, matching `MAX_ATTACHMENT_BYTES`, so a client no longer refuses audio the mesh accepts. (#375)
514
+
515
+ ## [0.7.2] - 2026-10-13
516
+
517
+ ### Added
518
+
519
+ - `duck --join <invite>` (`-j`) joins a mesh invite at boot, so a `--headless` peer, which has no prompt to `/join` from, can get onto an existing mesh. A device invite pairs it into your account; a member invite adds a shared mesh to its own. (#371)
520
+
521
+ ```sh
522
+ duck --headless --storage ~/duck-data --join qvac://mesh/…
523
+ ```
524
+
525
+ - `/rename device <name>` names this device and `/rename member <name>` names you in every mesh at once, so a roster of `duck-<pid>` devices can be told apart. (#372)
526
+
527
+ ## [0.7.1] - 2026-10-12
528
+
529
+ ### Added
530
+
531
+ - `forkChat` copies a chat into a new one, through a turn or just before it, in
532
+ the same mesh or another (QVAC-26722). The source stays as it was, the fork
533
+ lands on top of its list with ids of its own, and `AssistantChat` names where
534
+ it came from in `forkedFrom`. Its files are its own copies, so removing one
535
+ in either chat leaves the other's, and into another mesh it needs one of that
536
+ mesh's agents. (#346)
537
+
538
+ ```js
539
+ const fork = await engine.forkChat({ meshId, chatId, runId: reply.runId })
540
+ ```
541
+
542
+ - `setBlindPeering` and `blindPeeringWatch` turn every blind peering on this
543
+ device off or back on, kept across restarts, for reproducing sync with no
544
+ mirror in the middle. `diagnostics` reports it as `stats.mesh.blindPeering`,
545
+ and a `recoveryPublish` made while it is off does not mark the account
546
+ recoverable. (#334)
547
+
548
+ ```js
549
+ await engine.setBlindPeering({ enabled: false })
550
+ ```
551
+
552
+ ### Changed
553
+
554
+ - `@qvac/harness` is `^0.8.7` and `@qvac/skills` 0.1.14, which bring the
555
+ `browser` skill. Every run now hands the harness its chat as `session`, with
556
+ or without a cache key, so a skill whose manifest declares
557
+ `${session}` in its `env` keeps one resource per chat, such as the browser
558
+ the `browser` skill drives. (#369)
559
+ - `createAgent` and `updateAgent` ignore `toolsScope` and `enabledTools` and
560
+ always store `toolsScope: 'all'`, leaving `disabledToolsets` as the only
561
+ per-agent gate on tools. Each mesh rewrites its stored `selected` agents to
562
+ `all` once on open, so an agent saved with an empty list runs with its tools
563
+ again. (#363)
564
+
565
+ ### Fixed
566
+
567
+ - The harness is handed the turn as typed, so a skill mention or a search ask
568
+ is read from what the user wrote, not from attached documents, knowledge or
569
+ sender lines wrapped around it (QVAC-24963). Before,
570
+ `@pdf Summarize these docs` with a PDF attached could load
571
+ `image-generation`, and a document saying "search the web" went out as the
572
+ search query. (#347)
573
+ - The model downloader picks the text-to-speech model for the profile the
574
+ hardware probe found, the same one speaking asks for (QVAC-25679). Before, a
575
+ new device could plan its downloads while its row still held the host's seed
576
+ profile and keep that for the session, so a "mid" or higher device fetched
577
+ `Supertonic3-Q4_0` while read aloud waited for `Supertonic3-FP16` and stayed
578
+ disabled until a restart. If the probe fails, it plans for "low", the voice
579
+ the harness then speaks with. (#367)
580
+ - A device dials the other devices of its account by key as well as finding
581
+ them on the mesh topic, and dials them again on resume. Before, a topic
582
+ refresh that missed after a suspend or a network change left a phone without
583
+ its Mac for ten minutes or more, so a chat with an agent the Mac hosted sat
584
+ on "waiting to reconnect" though both were online. (#327)
585
+ - `removeDevice` on a device of our own member moves the agents it hosted to
586
+ the device that removed it, in that mesh and, for a removal from the account,
587
+ in every shared mesh of ours it is revoked in, so a run waiting on the removed
588
+ device runs there; a removal made on an earlier build is caught up on the
589
+ next boot. Before, the agents stayed orphaned and the chat waited forever.
590
+ (#327)
591
+
592
+ ## [0.7.0] - 2026-10-09
593
+
594
+ ### Added
595
+
596
+ - Model downloads can wait to be asked for, so a phone on cellular does not
597
+ fetch gigabytes on its own. Pass `autoDownloadModels: false` to the Core
598
+ constructor so it holds from the first boot, or toggle it later. A run that
599
+ needs a missing model then waits as `awaiting-download` instead of fetching it,
600
+ and so do image, music, transcription, speech and embedding loads in the
601
+ harness (#332, #333):
602
+
603
+ ```js
604
+ await engine.setAutoDownloadModels({ enabled: false })
605
+ for await (const { downloads } of engine.modelDownloadsWatch({})) {
606
+ const held = (downloads ?? []).find((row) => row.phase === 'held')
607
+ if (held) {
608
+ await engine.retryModelDownload({ name: held.name })
609
+ break
610
+ }
611
+ }
612
+ ```
613
+
614
+ - The OAuth loopback serves callbacks under Bare too, so a mobile worklet can
615
+ complete sign-in on the same `127.0.0.1` redirect desktop registers. (#329)
616
+ - `openOAuthLoopback` takes an optional `returnTo`: the callback redirects the
617
+ browser there instead of showing the done page. (#329)
618
+ - Several models stay loaded when memory allows (QVAC-25735). On desktop the
619
+ assistant pushes `model.memoryCapPercent` to the harness: loaded models may
620
+ fill that share of the memory usable for models, 85% by default, so two chat
621
+ models that fit stay loaded and switching chats between them loads neither
622
+ again. A load that would not fit unloads idle models one at a time, other
623
+ kinds before chat models and the least recently used first. It applies with
624
+ no restart; the minimum keeps one chat model loaded, and a mobile device
625
+ always does. `listModels` and `modelsWatch` carry the device's `memory`
626
+ (`usableBytes`, `capPercent`, `capBytes`, `usedBytes`, and `overCap` when a
627
+ model larger than the cap loaded anyway) and each loaded row its
628
+ `memoryBytes`, so a Models screen shows used against the cap. Needs the
629
+ `@qvac/harness` release with `setModelMemoryCap` and `memoryUsage`; an older
630
+ one keeps one chat model loaded and lists no `memory`. (#343)
631
+
632
+ ```js
633
+ import { MODEL_MEMORY_CAP_KEY } from '@qvac/core/constants'
634
+
635
+ await engine.configSet({ key: MODEL_MEMORY_CAP_KEY, value: 70 })
636
+ const { memory } = await engine.listModels({ cachedOnly: true })
637
+ ```
638
+
639
+ - A device pairs and follows its member with no other device online. A device
640
+ invite carries a keypair attested into the inviter's member, so the joiner
641
+ links itself, and the account holds every shared mesh's seed (the new
642
+ `@qvac/put-mesh-seed` route), so a new device opens them all from a blind
643
+ peer alone. A device invite minted by 0.6.6 still admits a device but no
644
+ longer links it into the member. `meshInvite` refuses a device invite from a
645
+ device whose proof chain is too long to extend, naming another device or the
646
+ phrase instead. (#342)
647
+ - `diagnostics` carries `backendUse`: per tool, the backends its recent runs
648
+ on this device reported, newest last. A run that asked for the gpu and ran
649
+ on the cpu is the fallback to look for. (#22)
650
+
651
+ ```js
652
+ const { stats } = await engine.diagnostics({})
653
+ stats.backendUse.generate_music.at(-1)
654
+ // { requestedGpu: true, device: 'cpu', backend: 'cpu' }
655
+ ```
656
+
657
+ - `duck`: `/doctor` checks this device (hardware, engine, model backends, mesh,
658
+ network) and `/doctor debug` shows the raw diagnostics frame behind it.
659
+ `ctrl+y` copies either as plain text, with the mesh seed and any invite
660
+ redacted and keys truncated. (#22)
661
+
662
+ ### Changed
663
+
664
+ - An invite is a password again, as it was before 0.5.0. A member invite mints
665
+ no grant and a device invite no expiring token: either link is the mesh
666
+ seed, reusable for good, and the joining device admits itself with the new
667
+ `@qvac/open-join` route; `joinMesh` and `recoverAccount` return once the
668
+ join is recorded, appending it in the background, with the account reporting
669
+ `joining` until the mesh reaches it. A device invite pairs with the inviting
670
+ device offline, and `recoverAccount` needs no other device online. A removed
671
+ device comes back the next time it joins. Every route that shipped keeps its
672
+ 0.6.6 meaning, and a 0.6.6 or 0.6.7 replica halts on the new one, so this
673
+ raises the floor to `>=0.19.1`. (#342)
674
+
675
+ ```js
676
+ const { invite } = await engine.meshInvite({ member: true })
677
+ await engine.joinMesh({ invite }) // any number of times, by anyone holding it
678
+ ```
679
+
680
+ - `joinMesh` and `recoverAccount` fail with "This device has no device
681
+ details: pass `device` when creating Core" on a Core created without
682
+ `device` and with none stored, and a `meshSeed` boot reports it as its
683
+ status error: a mesh admits only a device it can list and remove. (#342)
684
+
685
+ - A mesh still `joining` refuses a write into it at once with "This mesh is
686
+ still joining: it accepts writes once it is joined", since nothing written
687
+ there reaches disk until a peer serves the mesh. Reads keep working; retry
688
+ the write once the mesh lists `joined`. (#342)
689
+
690
+ - `listMeshes` and `meshesWatch` rows no longer set `reason` or
691
+ `awaitingFrom`: no other device admits a joining one any more. Read
692
+ `state: 'joining'` alone. (#342)
693
+
694
+ ### Deprecated
695
+
696
+ - `meshEntry.reason` and `meshEntry.awaitingFrom`, which are never set. (#342)
697
+
698
+ ### Removed
699
+
700
+ - The `grantWritableMs`, `grantVisibleMs` and `accountWritableMs` Core options.
701
+ Nothing on a join, a mint or a logout waits for a mesh to go writable any
702
+ more: a departure the mesh cannot take yet is revoked by the departures
703
+ outbox once it can, and a mesh minted before the account can write is
704
+ registered there once it can. (#342)
705
+
706
+ ### Fixed
707
+
708
+ - A chat's KV cache no longer grows by duplicated history: each run is replayed
709
+ to the model exactly as it was sent. (#338)
710
+ - A chat handed to another agent on the same device, by `setChatAgent` or a
711
+ `sendMessage` naming another `agentId`, no longer leaves the old agent's KV
712
+ cache file on disk until the chat is deleted. (#330)
713
+ - Reopening the account mesh after its local database died clears "the local
714
+ database died" error once the reopened mesh is healthy. (#340)
715
+ - `duck`: `/agent new` gives the new agent a real model in a mesh with no agent
716
+ yet, and `/agent use` hands the open chat to the agent it selects. (#348, #331)
717
+
718
+ ## [0.6.7] - 2026-10-06
719
+
720
+ ### Added
721
+
722
+ - A `quack` model for testing mesh, sync and chat flows without inference. An
723
+ agent on it replies with `quack` repeated 1 to 500 times, counted from a hash
724
+ of the last user turn, so the same prompt always gets the same reply. Every
725
+ other model still runs on the real harness. The device-local
726
+ `debug.fakeModels` key (`FAKE_MODELS_KEY` in `@qvac/core/constants`, beside the `QUACK_MODEL` name) turns it
727
+ on and off live, which is what an app's Debug toggle writes. `assistantChild`
728
+ and `assistantTree` take `fakeModels: true` to force it on, which is what duck
729
+ does with its `--fake-models` flag or `QVAC_FAKE_MODELS=1`.
730
+
731
+ ```js
732
+ await engine.configSet({ key: FAKE_MODELS_KEY, value: true })
733
+ ```
734
+
735
+ ```sh
736
+ QVAC_MODEL=quack duck --temp --fake-models
737
+ ```
738
+
739
+ - `Core` accepts `store`, `swarm` and `wakeup`, so a host that is already a
740
+ peer-to-peer application passes the ones it runs rather than having Core
741
+ stand up a second of each. Core never closes, destroys or suspends what it
742
+ was passed, takes the device identity from a passed swarm's keypair, and
743
+ leaves replication and wakeup on a passed swarm to the host. `swarm`
744
+ requires `store` and `wakeup`. The host suspends Core before its store, and
745
+ resumes its store before resuming or closing Core. `storagePath` is
746
+ unchanged and still holds the device-local database. See
747
+ [the decision record](docs/decisions/2026-09-28-a-host-passes-core-its-corestore-and-swarm.md).
748
+
749
+ ```js
750
+ const core = new Core(transport, {
751
+ storagePath,
752
+ store: host.rootCorestore.namespace('qvac'),
753
+ swarm: host.swarm,
754
+ wakeup: host.wakeup
755
+ })
756
+ ```
757
+
758
+ (#303)
759
+
760
+ ### Changed
761
+
762
+ - `@qvac/skills` is pinned at 0.1.11. 0.1.12 grants the `pptx`, `docx`, `xlsx`
763
+ and `transcribe_music` tools, which `@qvac/harness` does not register yet, so
764
+ a range would let a fresh install read presentations, word and excel as
765
+ unsupported. (#321)
766
+
767
+ ### Fixed
768
+
769
+ - The assistant reports readiness for an agent newly hosted in the account as
770
+ soon as it lands there, as it already did in a shared mesh, so a credential
771
+ handed off to an agent created from another device no longer waits on it.
772
+ (#320)
773
+
774
+ ## [0.6.6] - 2026-10-05
775
+
776
+ ### Changed
777
+
778
+ - The consensus floor, `VENDORED_MIN_SUPPORTED_VERSION`, is back to `>=0.19.0`.
779
+ The app ships the #308 apply change in 0.19, so that release is the floor; at
780
+ `>=0.20.0` a 0.19 build would withhold itself from its own meshes. (#317)
781
+
782
+ ## [0.6.5] - 2026-10-01
783
+
784
+ ### Added
785
+
786
+ - `setMeshName` names a mesh for every member in it. `setMeshLabel` only
787
+ names it for the member who set it, so someone who joined a shared mesh read
788
+ it unnamed. `listMeshes` and `meshesWatch` rows carry the shared name as
789
+ `name`, and `meshesWatch` emits when another member renames the mesh. A build
790
+ older than this one halts on the new `name-mesh` op, so every member's devices
791
+ need this release before a mesh is named.
792
+
793
+ ```js
794
+ await engine.setMeshName({ meshId, name: 'Design team' })
795
+ const { meshes } = await engine.listMeshes({})
796
+ meshes.find((mesh) => mesh.meshId === meshId).name // 'Design team', on every member
797
+ ```
798
+
799
+ (#310)
800
+
801
+ - `moveChatToMesh` moves a chat to another mesh with its files and its running
802
+ turn: the copy lands at once under `targetChatId`, the turn is retried there,
803
+ and the source is purged once every file has arrived. `chatMoveWatch` reports
804
+ the move, and `setChatAgent` hands a chat to another agent of its mesh. Until
805
+ its bytes arrive, a moved attachment's `blobId` is `PENDING_BLOB_REFERENCE`,
806
+ which `downloadAttachment` rejects with `blob unavailable`. (#312)
807
+ - `chunksDeltaWatch` streams an open chat as changes: a `reset` with the whole
808
+ selection first, then only the rows appended, edited or reordered, and the ids
809
+ of rows that left. A transcript that re-rendered the whole chat on every
810
+ streamed chunk pays for one row per chunk instead; `chunksWatch` is
811
+ unchanged. (#314)
812
+
813
+ ### Changed
814
+
815
+ - The consensus floor, `VENDORED_MIN_SUPPORTED_VERSION`, is `>=0.20.0`. How a
816
+ re-paired device's removal is weighed changed in apply, so a device on an
817
+ older build would read a shared mesh differently. Ship the 0.20 app before
818
+ publishing this floor to the lane cores. (#308)
819
+ - `@qvac/harness` is `^0.7.2`. `web_fetch` attaches a plain-text file it
820
+ fetched to the chat beside returning its text, and devices on the `mid`
821
+ profile and up speak with `Supertonic3-FP16` at 16 steps instead of
822
+ `Supertonic3-Q8_0` at 5, so a host that prefetches the infra models downloads
823
+ the FP16 model once. (#311)
824
+
825
+ ### Fixed
826
+
827
+ - A device unpaired and paired back gets every project back, however its
828
+ removal synced, and one that left a shared mesh on its own comes back as soon
829
+ as it asks; only another member's removal still needs a grant. A re-paired
830
+ device still live on its old writer is moved onto its new one instead of
831
+ staying a reader, and a late leave no longer turns a kick into a leave. A
832
+ consensus change, covered by the `>=0.20.0` floor. (#308)
833
+ - A member re-invited to a mesh it left brings every device back, not only the
834
+ one that redeemed the invite. A device asking its siblings to admit it asks
835
+ again, about once a second for up to a minute, while they are mid-join,
836
+ instead of waiting as a reader until the next restart. (#307)
837
+ - `leaveMesh` on the account is no longer refused while this device holds
838
+ another mesh: it departs each of them as this device alone, then leaves the
839
+ account. Unpairing a device that held a project did nothing. (#306)
840
+ - `chatActivityWatch` no longer fails on every tick after a fast-forward leaves
841
+ its cached view head undiffable. It rebuilds from the current view instead;
842
+ before, the error repeated until restart. (#301)
843
+ - `modelCatalogWatch` bumps only when the custom-model set changed. It bumped on
844
+ every device-local write, several times a second while a reply streamed. (#300)
845
+ - A typed harness can ask `fetchAttachment` for the newest audio. (#309)
846
+ - PDF extraction works on Android again: `bare-pdfium` 1.5.5 links its C++
847
+ runtime into the addon, which 1.5.4's prebuilds left undefined. (#305)
848
+
16
849
  ## [0.6.4] - 2026-09-30
17
850
 
18
851
  ### Removed
@@ -1159,7 +1992,25 @@ Published under the `release-0.1` dist-tag.
1159
1992
  await assistant.ready()
1160
1993
  ```
1161
1994
 
1162
- [Unreleased]: https://github.com/tetherto/qvac-core/compare/v0.6.4...HEAD
1995
+ [Unreleased]: https://github.com/tetherto/qvac-core/compare/v0.11.0...HEAD
1996
+ [0.11.0]: https://github.com/tetherto/qvac-core/compare/v0.10.4...v0.11.0
1997
+ [0.10.4]: https://github.com/tetherto/qvac-core/compare/v0.10.3...v0.10.4
1998
+ [0.10.3]: https://github.com/tetherto/qvac-core/compare/v0.10.2...v0.10.3
1999
+ [0.10.2]: https://github.com/tetherto/qvac-core/compare/v0.10.1...v0.10.2
2000
+ [0.10.1]: https://github.com/tetherto/qvac-core/compare/v0.10.0...v0.10.1
2001
+ [0.10.0]: https://github.com/tetherto/qvac-core/compare/v0.9.0...v0.10.0
2002
+ [0.9.0]: https://github.com/tetherto/qvac-core/compare/v0.8.0...v0.9.0
2003
+ [0.8.0]: https://github.com/tetherto/qvac-core/compare/v0.7.6...v0.8.0
2004
+ [0.7.6]: https://github.com/tetherto/qvac-core/compare/v0.7.5...v0.7.6
2005
+ [0.7.5]: https://github.com/tetherto/qvac-core/compare/v0.7.4...v0.7.5
2006
+ [0.7.4]: https://github.com/tetherto/qvac-core/compare/v0.7.3...v0.7.4
2007
+ [0.7.3]: https://github.com/tetherto/qvac-core/compare/v0.7.2...v0.7.3
2008
+ [0.7.2]: https://github.com/tetherto/qvac-core/compare/v0.7.1...v0.7.2
2009
+ [0.7.1]: https://github.com/tetherto/qvac-core/compare/v0.7.0...v0.7.1
2010
+ [0.7.0]: https://github.com/tetherto/qvac-core/compare/v0.6.7...v0.7.0
2011
+ [0.6.7]: https://github.com/tetherto/qvac-core/compare/v0.6.6...v0.6.7
2012
+ [0.6.6]: https://github.com/tetherto/qvac-core/compare/v0.6.5...v0.6.6
2013
+ [0.6.5]: https://github.com/tetherto/qvac-core/compare/v0.6.4...v0.6.5
1163
2014
  [0.6.4]: https://github.com/tetherto/qvac-core/compare/v0.6.3...v0.6.4
1164
2015
  [0.6.3]: https://github.com/tetherto/qvac-core/compare/v0.6.2...v0.6.3
1165
2016
  [0.6.2]: https://github.com/tetherto/qvac-core/compare/v0.6.1...v0.6.2