@qvac/core 1.0.0-rc.1 → 1.0.0-rc.3

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