@qvac/core 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/CHANGELOG.md +114 -1
  2. package/README.md +5 -5
  3. package/dist-lib/index.d.ts +0 -1
  4. package/dist-lib/index.js +0 -1
  5. package/dist-lib/lib/api/agents.d.ts +7 -1
  6. package/dist-lib/lib/api/agents.js +2 -2
  7. package/dist-lib/lib/api/app-config.d.ts +2 -1
  8. package/dist-lib/lib/api/app-config.js +2 -2
  9. package/dist-lib/lib/api/attachments.js +3 -2
  10. package/dist-lib/lib/api/chat-move.d.ts +2 -1
  11. package/dist-lib/lib/api/chat-move.js +2 -2
  12. package/dist-lib/lib/api/chat.d.ts +3 -1
  13. package/dist-lib/lib/api/chat.js +5 -5
  14. package/dist-lib/lib/api/chunks.d.ts +2 -1
  15. package/dist-lib/lib/api/chunks.js +3 -3
  16. package/dist-lib/lib/api/config.d.ts +2 -1
  17. package/dist-lib/lib/api/config.js +2 -2
  18. package/dist-lib/lib/api/current-mesh.d.ts +1 -3
  19. package/dist-lib/lib/api/current-mesh.js +4 -10
  20. package/dist-lib/lib/api/custom-models.d.ts +7 -1
  21. package/dist-lib/lib/api/custom-models.js +10 -8
  22. package/dist-lib/lib/api/device-routes.d.ts +0 -2
  23. package/dist-lib/lib/api/device-routes.js +4 -5
  24. package/dist-lib/lib/api/devices.d.ts +3 -1
  25. package/dist-lib/lib/api/devices.js +9 -8
  26. package/dist-lib/lib/api/diagnostics.d.ts +2 -1
  27. package/dist-lib/lib/api/diagnostics.js +2 -2
  28. package/dist-lib/lib/api/index.d.ts +2 -0
  29. package/dist-lib/lib/api/index.js +39 -21
  30. package/dist-lib/lib/api/instrument.d.ts +2 -2
  31. package/dist-lib/lib/api/instrument.js +10 -11
  32. package/dist-lib/lib/api/knowledge.d.ts +3 -1
  33. package/dist-lib/lib/api/knowledge.js +9 -7
  34. package/dist-lib/lib/api/logs.js +3 -3
  35. package/dist-lib/lib/api/members.d.ts +6 -1
  36. package/dist-lib/lib/api/members.js +11 -10
  37. package/dist-lib/lib/api/mesh.d.ts +2 -2
  38. package/dist-lib/lib/api/mesh.js +6 -6
  39. package/dist-lib/lib/api/model-download.d.ts +2 -1
  40. package/dist-lib/lib/api/model-download.js +2 -2
  41. package/dist-lib/lib/api/network.d.ts +3 -2
  42. package/dist-lib/lib/api/network.js +4 -4
  43. package/dist-lib/lib/api/notifications.d.ts +3 -1
  44. package/dist-lib/lib/api/notifications.js +5 -4
  45. package/dist-lib/lib/api/rag.d.ts +0 -1
  46. package/dist-lib/lib/api/rag.js +3 -4
  47. package/dist-lib/lib/api/sync.d.ts +2 -1
  48. package/dist-lib/lib/api/sync.js +2 -2
  49. package/dist-lib/lib/api/tool-activity.d.ts +2 -1
  50. package/dist-lib/lib/api/tool-activity.js +4 -3
  51. package/dist-lib/lib/api/tool-configs.d.ts +2 -1
  52. package/dist-lib/lib/api/tool-configs.js +4 -3
  53. package/dist-lib/lib/api/upload-frames.d.ts +0 -1
  54. package/dist-lib/lib/api/upload-frames.js +0 -1
  55. package/dist-lib/lib/api/watchable.d.ts +3 -2
  56. package/dist-lib/lib/api/watchable.js +2 -3
  57. package/dist-lib/lib/assistant/fake-models.d.ts +2 -4
  58. package/dist-lib/lib/assistant/harness.js +8 -6
  59. package/dist-lib/lib/assistant-client.d.ts +2 -0
  60. package/dist-lib/lib/assistant-client.js +4 -3
  61. package/dist-lib/lib/assistant-tree.d.ts +3 -3
  62. package/dist-lib/lib/assistant.d.ts +2 -2
  63. package/dist-lib/lib/assistant.js +11 -11
  64. package/dist-lib/lib/client.d.ts +2 -2
  65. package/dist-lib/lib/core/agent.js +5 -4
  66. package/dist-lib/lib/core/archived-mesh.d.ts +2 -3
  67. package/dist-lib/lib/core/archived-mesh.js +3 -3
  68. package/dist-lib/lib/core/chat-activity.js +5 -3
  69. package/dist-lib/lib/core/chat-copy.d.ts +0 -1
  70. package/dist-lib/lib/core/chat-copy.js +2 -2
  71. package/dist-lib/lib/core/chat-fork.d.ts +0 -6
  72. package/dist-lib/lib/core/chat-fork.js +11 -17
  73. package/dist-lib/lib/core/chat-group.js +8 -7
  74. package/dist-lib/lib/core/chat-move.d.ts +4 -6
  75. package/dist-lib/lib/core/chat-move.js +14 -15
  76. package/dist-lib/lib/core/chat-order.d.ts +2 -1
  77. package/dist-lib/lib/core/chat-order.js +15 -2
  78. package/dist-lib/lib/core/chat.js +8 -7
  79. package/dist-lib/lib/core/chunk.js +13 -8
  80. package/dist-lib/lib/core/collections.d.ts +1 -0
  81. package/dist-lib/lib/core/collections.js +1 -0
  82. package/dist-lib/lib/core/contract/compute.d.ts +0 -4
  83. package/dist-lib/lib/core/contract/compute.js +2 -9
  84. package/dist-lib/lib/core/contract/types.d.ts +2 -2
  85. package/dist-lib/lib/core/departures.d.ts +2 -2
  86. package/dist-lib/lib/core/device-control.d.ts +0 -2
  87. package/dist-lib/lib/core/device-control.js +5 -6
  88. package/dist-lib/lib/core/files/attachments.js +5 -4
  89. package/dist-lib/lib/core/files/index.d.ts +2 -1
  90. package/dist-lib/lib/core/files/index.js +20 -8
  91. package/dist-lib/lib/core/files/processing/claims.js +3 -3
  92. package/dist-lib/lib/core/files/processing/document.d.ts +2 -0
  93. package/dist-lib/lib/core/files/processing/document.js +3 -0
  94. package/dist-lib/lib/core/files/processing/index.js +4 -2
  95. package/dist-lib/lib/core/files/processing/source.d.ts +3 -0
  96. package/dist-lib/lib/core/files/processing/source.js +5 -3
  97. package/dist-lib/lib/core/files/processing/state.js +1 -0
  98. package/dist-lib/lib/core/files/rag/index.d.ts +3 -0
  99. package/dist-lib/lib/core/files/rag/index.js +3 -1
  100. package/dist-lib/lib/core/files/rag/load.js +6 -3
  101. package/dist-lib/lib/core/files/rag/produce.js +3 -3
  102. package/dist-lib/lib/core/files/rag/retrieval/full-text.js +1 -1
  103. package/dist-lib/lib/core/files/rag/similarity.d.ts +2 -2
  104. package/dist-lib/lib/core/files/rag/similarity.js +2 -3
  105. package/dist-lib/lib/core/files/records/chunks.js +1 -1
  106. package/dist-lib/lib/core/files/records/knowledge.js +2 -1
  107. package/dist-lib/lib/core/files/records/purge.js +9 -5
  108. package/dist-lib/lib/core/files/records/reclaim.js +20 -48
  109. package/dist-lib/lib/core/files/records/sweep.d.ts +3 -0
  110. package/dist-lib/lib/core/files/records/sweep.js +9 -3
  111. package/dist-lib/lib/core/files/store/blob.d.ts +2 -0
  112. package/dist-lib/lib/core/files/store/blob.js +2 -2
  113. package/dist-lib/lib/core/files/store/index.d.ts +1 -0
  114. package/dist-lib/lib/core/files/store/index.js +2 -0
  115. package/dist-lib/lib/core/files/store/reference.js +4 -2
  116. package/dist-lib/lib/core/files/upload.d.ts +1 -1
  117. package/dist-lib/lib/core/files/upload.js +10 -9
  118. package/dist-lib/lib/core/handoff-channel.d.ts +6 -4
  119. package/dist-lib/lib/core/handoff-channel.js +8 -9
  120. package/dist-lib/lib/core/harness-loan.d.ts +0 -2
  121. package/dist-lib/lib/core/harness-loan.js +3 -4
  122. package/dist-lib/lib/core/hosted-agents.d.ts +2 -2
  123. package/dist-lib/lib/core/inference-calls-handoff.d.ts +2 -2
  124. package/dist-lib/lib/core/inference-calls-handoff.js +6 -5
  125. package/dist-lib/lib/core/inference-calls-receiver.d.ts +0 -2
  126. package/dist-lib/lib/core/inference-calls-receiver.js +5 -7
  127. package/dist-lib/lib/core/invite.js +9 -4
  128. package/dist-lib/lib/core/local/index.d.ts +4 -1
  129. package/dist-lib/lib/core/local/index.js +23 -2
  130. package/dist-lib/lib/core/membership.d.ts +2 -2
  131. package/dist-lib/lib/core/mesh.d.ts +13 -7
  132. package/dist-lib/lib/core/mesh.js +55 -47
  133. package/dist-lib/lib/core/migrations/file-index.js +2 -4
  134. package/dist-lib/lib/core/next-frame.js +2 -1
  135. package/dist-lib/lib/core/pdf/rasterize.d.ts +2 -1
  136. package/dist-lib/lib/core/pdf/rasterize.js +5 -5
  137. package/dist-lib/lib/core/peer-duplex.d.ts +3 -3
  138. package/dist-lib/lib/core/peer-duplex.js +4 -4
  139. package/dist-lib/lib/core/secret-handoff.d.ts +2 -2
  140. package/dist-lib/lib/core/secret-handoff.js +7 -4
  141. package/dist-lib/lib/core/send.js +3 -2
  142. package/dist-lib/lib/core/skill-overlay-handoff.d.ts +2 -2
  143. package/dist-lib/lib/core/skill-overlay-handoff.js +6 -5
  144. package/dist-lib/lib/core/skill-overlay-receiver.js +5 -5
  145. package/dist-lib/lib/core/skill-secrets.d.ts +0 -5
  146. package/dist-lib/lib/core/skill-secrets.js +5 -9
  147. package/dist-lib/lib/core/sync/changed.d.ts +20 -0
  148. package/dist-lib/lib/core/sync/changed.js +7 -0
  149. package/dist-lib/lib/core/sync/devices.js +1 -1
  150. package/dist-lib/lib/core/sync/files.d.ts +1 -0
  151. package/dist-lib/lib/core/sync/files.js +50 -72
  152. package/dist-lib/lib/core/sync/index.d.ts +1 -2
  153. package/dist-lib/lib/core/sync/index.js +40 -62
  154. package/dist-lib/lib/core/sync/view-updates.d.ts +33 -0
  155. package/dist-lib/lib/core/sync/view-updates.js +133 -0
  156. package/dist-lib/lib/core/system-info.d.ts +2 -2
  157. package/dist-lib/lib/core/system-info.js +10 -11
  158. package/dist-lib/lib/core/tool-configs.js +6 -6
  159. package/dist-lib/lib/core.d.ts +1 -7
  160. package/dist-lib/lib/core.js +147 -131
  161. package/dist-lib/lib/custom-model-pusher.d.ts +2 -4
  162. package/dist-lib/lib/custom-model-task.d.ts +2 -1
  163. package/dist-lib/lib/custom-model-task.js +2 -2
  164. package/dist-lib/lib/downloads-allowed-pusher.d.ts +2 -4
  165. package/dist-lib/lib/errors.d.ts +603 -0
  166. package/dist-lib/lib/errors.js +552 -0
  167. package/dist-lib/lib/log.d.ts +7 -6
  168. package/dist-lib/lib/log.js +10 -6
  169. package/dist-lib/lib/logger-type.d.ts +2 -5
  170. package/dist-lib/lib/model-download-status.d.ts +2 -2
  171. package/dist-lib/lib/model-download.d.ts +2 -2
  172. package/dist-lib/lib/model-download.js +3 -2
  173. package/dist-lib/lib/model-idle-pusher.d.ts +2 -4
  174. package/dist-lib/lib/model-memory-cap.d.ts +2 -4
  175. package/dist-lib/lib/oauth/browser-connect.js +3 -2
  176. package/dist-lib/lib/oauth/flow-core.js +3 -3
  177. package/dist-lib/lib/oauth/loopback.js +10 -9
  178. package/dist-lib/lib/oauth/providers.js +4 -2
  179. package/dist-lib/lib/oauth/register.js +3 -2
  180. package/dist-lib/lib/oauth/token-exchange-core.js +5 -4
  181. package/dist-lib/lib/run-transcript.d.ts +2 -2
  182. package/dist-lib/lib/task.js +2 -1
  183. package/dist-lib/schema/engine.js +6 -3
  184. package/dist-lib/schema/field-order.js +1 -3
  185. package/dist-lib/schema/local.js +11 -0
  186. package/dist-lib/spec/hrpc/messages.js +20 -9
  187. package/dist-lib/spec/hyperschema/index.js +20 -9
  188. package/dist-lib/spec/hyperschema/schema.json +15 -0
  189. package/dist-lib/spec/hyperschema/types.d.ts +3 -0
  190. package/dist-lib/spec/local/hyperdb/db.json +16 -1
  191. package/dist-lib/spec/local/hyperdb/index.js +71 -2
  192. package/dist-lib/spec/local/hyperdb/messages.js +300 -143
  193. package/dist-lib/spec/local/hyperschema/index.js +82 -2
  194. package/dist-lib/spec/local/hyperschema/schema.json +43 -1
  195. package/dist-lib/spec/local/hyperschema/types.d.ts +12 -1
  196. package/package.json +9 -2
  197. package/tui/README.md +2 -2
  198. package/tui/app.mjs +11 -5
  199. package/tui/boot.mjs +1 -1
  200. package/worker/assistant-sidecar.mjs +7 -0
  201. package/dist-lib/lib/log-levels.d.ts +0 -7
  202. package/dist-lib/lib/log-levels.js +0 -1
  203. package/dist-lib/lib/logger.d.ts +0 -5
  204. package/dist-lib/lib/logger.js +0 -18
@@ -1,12 +1,12 @@
1
1
  // This file is autogenerated by the hyperschema compiler
2
- // Schema Version: 10
2
+ // Schema Version: 11
3
3
  /* eslint-disable camelcase */
4
4
  /* eslint-disable quotes */
5
5
  /* eslint-disable space-before-function-paren */
6
6
 
7
7
  import { c } from 'hyperschema/runtime'
8
8
 
9
- const VERSION = 10
9
+ const VERSION = 11
10
10
 
11
11
  // eslint-disable-next-line no-unused-vars
12
12
  let version = VERSION
@@ -1716,6 +1716,82 @@ const encoding40 = {
1716
1716
  }
1717
1717
  }
1718
1718
 
1719
+ // @local/mesh-update-v1
1720
+ const encoding41 = {
1721
+ preencode(state, m) {
1722
+ c.fixed32.preencode(state, m.meshKey)
1723
+ state.end++ // max flag is 4 so always one byte
1724
+
1725
+ if (version >= 11 && m.fromKey) c.fixed32.preencode(state, m.fromKey)
1726
+ if (version >= 11 && m.fromLength) c.uint.preencode(state, m.fromLength)
1727
+ },
1728
+ encode(state, m) {
1729
+ const flags =
1730
+ ((version >= 11 && m.fromKey) ? 1 : 0) |
1731
+ ((version >= 11 && m.fromLength) ? 2 : 0) |
1732
+ ((version >= 11 && m.incremental) ? 4 : 0)
1733
+
1734
+ c.fixed32.encode(state, m.meshKey)
1735
+ c.uint.encode(state, flags)
1736
+
1737
+ if (version >= 11 && m.fromKey) c.fixed32.encode(state, m.fromKey)
1738
+ if (version >= 11 && m.fromLength) c.uint.encode(state, m.fromLength)
1739
+ },
1740
+ decode(state) {
1741
+ const r0 = c.fixed32.decode(state)
1742
+ const flags = c.uint.decode(state)
1743
+
1744
+ return {
1745
+ version: 0,
1746
+ meshKey: r0,
1747
+ fromKey: (version >= 11 && (flags & 1) !== 0) ? c.fixed32.decode(state) : null,
1748
+ fromLength: (version >= 11 && (flags & 2) !== 0) ? c.uint.decode(state) : 0,
1749
+ incremental: (version >= 11 && (flags & 4) !== 0)
1750
+ }
1751
+ }
1752
+ }
1753
+
1754
+ // @local/mesh-update
1755
+ const encoding42 = {
1756
+ preencode(state, m) {
1757
+ const v = m.version ?? 1
1758
+ c.uint.preencode(state, v)
1759
+ switch (v) {
1760
+ case 0:
1761
+ case 1:
1762
+ encoding41.preencode(state, m)
1763
+ break
1764
+ default:
1765
+ throw new Error('Unsupported version')
1766
+ }
1767
+ },
1768
+ encode(state, m) {
1769
+ const v = m.version ?? 1
1770
+ c.uint.encode(state, v)
1771
+ switch (v) {
1772
+ case 0:
1773
+ case 1:
1774
+ encoding41.encode(state, m)
1775
+ break
1776
+ default:
1777
+ throw new Error('Unsupported version')
1778
+ }
1779
+ },
1780
+ decode(state) {
1781
+ const v = c.uint.decode(state)
1782
+ switch (v) {
1783
+ case 0:
1784
+ case 1: {
1785
+ const decoded = encoding41.decode(state)
1786
+ decoded.version = v
1787
+ return decoded
1788
+ }
1789
+ default:
1790
+ throw new Error('Unsupported version')
1791
+ }
1792
+ }
1793
+ }
1794
+
1719
1795
  function setVersion(v) {
1720
1796
  version = v
1721
1797
  }
@@ -1827,6 +1903,10 @@ function getEncoding(name) {
1827
1903
  return encoding39
1828
1904
  case '@local/chat-move':
1829
1905
  return encoding40
1906
+ case '@local/mesh-update-v1':
1907
+ return encoding41
1908
+ case '@local/mesh-update':
1909
+ return encoding42
1830
1910
  default:
1831
1911
  throw new Error('Encoder not found ' + name)
1832
1912
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 10,
2
+ "version": 11,
3
3
  "schema": [
4
4
  {
5
5
  "name": "qvac-state",
@@ -1078,6 +1078,48 @@
1078
1078
  "version": 1
1079
1079
  }
1080
1080
  ]
1081
+ },
1082
+ {
1083
+ "name": "mesh-update-v1",
1084
+ "namespace": "local",
1085
+ "compact": false,
1086
+ "flagsPosition": 1,
1087
+ "fields": [
1088
+ {
1089
+ "name": "meshKey",
1090
+ "required": true,
1091
+ "type": "fixed32",
1092
+ "version": 11
1093
+ },
1094
+ {
1095
+ "name": "fromKey",
1096
+ "type": "fixed32",
1097
+ "version": 11
1098
+ },
1099
+ {
1100
+ "name": "fromLength",
1101
+ "type": "uint",
1102
+ "version": 11
1103
+ },
1104
+ {
1105
+ "name": "incremental",
1106
+ "required": false,
1107
+ "type": "bool",
1108
+ "version": 11
1109
+ }
1110
+ ]
1111
+ },
1112
+ {
1113
+ "name": "mesh-update",
1114
+ "namespace": "local",
1115
+ "framed": false,
1116
+ "versions": [
1117
+ {
1118
+ "type": "@local/mesh-update-v1",
1119
+ "map": null,
1120
+ "version": 1
1121
+ }
1122
+ ]
1081
1123
  }
1082
1124
  ]
1083
1125
  }
@@ -1,5 +1,5 @@
1
1
  // This file is autogenerated by hyperschema-ts
2
- // Schema version: 10
2
+ // Schema version: 11
3
3
  // Do not edit manually.
4
4
 
5
5
  export type LocalQvacState = 1 | 2 | 3 | 4
@@ -215,6 +215,15 @@ export interface LocalChatMoveV1 {
215
215
 
216
216
  export type LocalChatMove = (LocalChatMoveV1 & { version?: number })
217
217
 
218
+ export interface LocalMeshUpdateV1 {
219
+ meshKey: Buffer
220
+ fromKey?: Buffer | null
221
+ fromLength?: number
222
+ incremental?: boolean
223
+ }
224
+
225
+ export type LocalMeshUpdate = (LocalMeshUpdateV1 & { version?: number })
226
+
218
227
  export interface SchemaTypes {
219
228
  "@local/qvac-state": LocalQvacState
220
229
  "@local/config-v1": LocalConfigV1
@@ -257,4 +266,6 @@ export interface SchemaTypes {
257
266
  "@local/file": LocalFile
258
267
  "@local/chat-move-v1": LocalChatMoveV1
259
268
  "@local/chat-move": LocalChatMove
269
+ "@local/mesh-update-v1": LocalMeshUpdateV1
270
+ "@local/mesh-update": LocalMeshUpdate
260
271
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qvac/core",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "description": "Peer-to-peer AI across your devices",
6
6
  "engines": {
@@ -23,6 +23,10 @@
23
23
  "types": "./dist-lib/lib/constants.d.ts",
24
24
  "default": "./dist-lib/lib/constants.js"
25
25
  },
26
+ "./errors": {
27
+ "types": "./dist-lib/lib/errors.d.ts",
28
+ "default": "./dist-lib/lib/errors.js"
29
+ },
26
30
  "./credentials/obsidian": {
27
31
  "types": "./dist-lib/lib/obsidian-key.d.ts",
28
32
  "default": "./dist-lib/lib/obsidian-key.js"
@@ -151,6 +155,7 @@
151
155
  "model-users": "bare examples/model-users.mjs",
152
156
  "models-by-task": "bare examples/models-by-task.mjs",
153
157
  "models-watch": "bare examples/models-watch.mjs",
158
+ "error-codes": "bare examples/error-codes.mjs",
154
159
  "model-downloads-held": "bare examples/model-downloads-held.mjs",
155
160
  "blind-peering": "bare examples/blind-peering.mjs",
156
161
  "chunks-delta-watch": "bare examples/chunks-delta-watch.mjs",
@@ -234,8 +239,10 @@
234
239
  }
235
240
  },
236
241
  "dependencies": {
242
+ "@qvac/error": "^0.2.0",
237
243
  "@qvac/harness": "^0.8.7",
238
- "@qvac/skills": "0.1.14",
244
+ "@qvac/logging": "^0.2.0",
245
+ "@qvac/skills": "0.1.15",
239
246
  "asenion": "^0.1.0",
240
247
  "autobee": "^2.11.8",
241
248
  "b4a": "^1.9.0",
package/tui/README.md CHANGED
@@ -45,7 +45,7 @@ Bare's native TTY; the TUI will not run under node.
45
45
  duck [--storage <dir>] [--temp] [--headless] [--join <invite>] [--device-join <invite>] [--fake-models]
46
46
  ```
47
47
 
48
- Flags may appear in any order. Inside the app, `/join qvac://mesh/…` moves a
48
+ Flags may appear in any order. Inside the app, `/join qvac://device/…` moves a
49
49
  running instance to another mesh.
50
50
 
51
51
  - `--storage <dir>` — a self-contained root (its own corestore and SDK home
@@ -82,7 +82,7 @@ those too.
82
82
  The TUI copies its mesh invite to the clipboard on ctrl+y. With no clipboard
83
83
  command (a container, ssh) it asks your terminal to set the clipboard with
84
84
  OSC 52, which the terminal has to allow. A running TUI moves
85
- mesh with `/join qvac://mesh/…`. See [../docs/tui-commands.md](../docs/tui-commands.md)
85
+ mesh with `/join qvac://device/…`. See [../docs/tui-commands.md](../docs/tui-commands.md)
86
86
  for the full command set.
87
87
 
88
88
  ## Environment
package/tui/app.mjs CHANGED
@@ -2469,7 +2469,7 @@ export class ChatApp {
2469
2469
  'Advanced',
2470
2470
  ' /cred <key> <value> — set a credential by hand for this agent (e.g. /cred github_access_token ghp_…); /skills, enter on the skill, fills this in for you',
2471
2471
  ' /scope skills all|selected — switch scope',
2472
- ' /join <qvac://mesh/…> — preview who you would join as (ctrl+y copies this mesh’s invite) · /join yes — confirm it (a device invite retires this device’s mesh, a member invite adds one beside it) · /join cancel — abort a join in progress',
2472
+ ' /join <qvac://device/… or qvac://workspace/…> — preview who you would join as (ctrl+y copies this mesh’s invite) · /join yes — confirm it (a device invite retires this device’s mesh, a member invite adds one beside it) · /join cancel — abort a join in progress',
2473
2473
  ' /leave — leave the active mesh; the device lands on another mesh it can write to, or mints a fresh account',
2474
2474
  ' /invite - show this mesh device invite · /invite member - open your shared mesh and invite someone into it (your account is never shared)',
2475
2475
  ' /mesh new - open another shared mesh · /mesh new compute - lend this device · /mesh label <n|id> <name> - name a mesh, privately to you',
@@ -2831,7 +2831,7 @@ export class ChatApp {
2831
2831
  const custom = await this._customModelFor(asked)
2832
2832
  const unrunnable = customModelTaskRefusal(custom?.taskType)
2833
2833
  if (unrunnable) {
2834
- return `${asked} was not set — ${unrunnable}`
2834
+ return `${asked} was not set \u2014 ${unrunnable.message}`
2835
2835
  }
2836
2836
 
2837
2837
  const name = custom?.name ?? asked
@@ -3571,7 +3571,7 @@ export class ChatApp {
3571
3571
  if (cmd === 'join') {
3572
3572
  const arg = rawArgs.trim()
3573
3573
  if (!arg) {
3574
- return notice('usage: /join <qvac://mesh/…> · /join cancel')
3574
+ return notice('usage: /join <qvac://device/… or qvac://workspace/…> · /join cancel')
3575
3575
  }
3576
3576
 
3577
3577
  if (rest[0] === 'cancel') {
@@ -3585,7 +3585,9 @@ export class ChatApp {
3585
3585
  if (rest[0] === 'yes') {
3586
3586
  const pending = this._pendingJoinInvite
3587
3587
  if (!pending) {
3588
- return notice('usage: /join <qvac://mesh/…> to preview an invite first')
3588
+ return notice(
3589
+ 'usage: /join <qvac://device/… or qvac://workspace/…> to preview an invite first'
3590
+ )
3589
3591
  }
3590
3592
 
3591
3593
  this._pendingJoinInvite = null
@@ -5164,7 +5166,11 @@ export class ChatApp {
5164
5166
  entries: [
5165
5167
  { label: 'Meshes', hint: 'the meshes this device belongs to', command: '/meshes' },
5166
5168
  { label: 'Switch mesh…', hint: '/mesh use <n|id>', prefill: '/mesh use ' },
5167
- { label: 'Join mesh…', hint: '/join <qvac://mesh/…>', prefill: '/join ' },
5169
+ {
5170
+ label: 'Join mesh…',
5171
+ hint: '/join <qvac://device/… or qvac://workspace/…>',
5172
+ prefill: '/join '
5173
+ },
5168
5174
  { label: 'Leave mesh', hint: 'leave the active mesh', command: '/leave' },
5169
5175
  { label: 'Cancel join', hint: 'abort a join in progress', command: '/join cancel' }
5170
5176
  ]
package/tui/boot.mjs CHANGED
@@ -54,7 +54,7 @@ function bootInvite({ join, deviceJoin }) {
54
54
 
55
55
  const invite = decodeMeshInvite(raw)
56
56
  if (!invite) {
57
- throw new Error('not a mesh invite: expected qvac://mesh/…')
57
+ throw new Error('not a mesh invite: expected qvac://device/… or qvac://workspace/…')
58
58
  }
59
59
 
60
60
  if (join && !invite.memberInvite) {
@@ -6,6 +6,7 @@ import { Core, assistantChild, clientSessions } from '../dist-lib/index.js'
6
6
  import { DEFAULT_RAG_MODEL } from '../dist-lib/lib/core/files/rag/models.js'
7
7
  import { Logger, toLoggerOptions } from '../dist-lib/lib/log.js'
8
8
  import { releaseChannel, resolveStorage } from '@qvac/harness/storage'
9
+ import { closeOfficeWorker, extractOfficeText } from '@qvac/harness/office'
9
10
  import {
10
11
  DEFAULT_IMAGE_MODEL_CHOICE,
11
12
  DEFAULT_MUSIC_MODEL_CHOICE,
@@ -88,7 +89,12 @@ export default stowEntry((ipc) => {
88
89
  .catch((err) => logger.warn('assistant-sidecar', 'session reset failed', err?.message))
89
90
  })
90
91
 
92
+ sup.add('office', {
93
+ start: () => ({ close: closeOfficeWorker })
94
+ })
95
+
91
96
  sup.add('core', {
97
+ deps: ['office'],
92
98
  start: () => core,
93
99
  presuspend: (handle) => handle.presuspend(),
94
100
  suspend: (handle) => handle.suspend(),
@@ -99,6 +105,7 @@ export default stowEntry((ipc) => {
99
105
  sup.add(
100
106
  'assistant',
101
107
  assistantChild({
108
+ extractors: { office: extractOfficeText },
102
109
  // knowledge indexing volunteers this device; rebuilt against each harness incarnation
103
110
  embedder: (harness) => ({
104
111
  model: DEFAULT_RAG_MODEL,
@@ -1,7 +0,0 @@
1
- export declare const LEVELS: {
2
- debug: number;
3
- info: number;
4
- warn: number;
5
- error: number;
6
- };
7
- export type LogLevel = keyof typeof LEVELS;
@@ -1 +0,0 @@
1
- export const LEVELS = { debug: 0, info: 1, warn: 2, error: 3 };
@@ -1,5 +0,0 @@
1
- import type { Logger } from './logger-type.ts';
2
- declare global {
3
- var logger: Logger;
4
- }
5
- export declare function setLogger(next: Logger | null): void;
@@ -1,18 +0,0 @@
1
- const silent = {
2
- debug() { },
3
- info() { },
4
- warn() { },
5
- error() { },
6
- mute() { },
7
- unmute() { },
8
- subscribe() { },
9
- unsubscribe() { },
10
- backfill() {
11
- return [];
12
- },
13
- appendClient() { }
14
- };
15
- globalThis.logger ??= silent;
16
- export function setLogger(next) {
17
- globalThis.logger = next ?? silent;
18
- }