@qvac/core 0.9.0 → 0.10.1

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 (203) hide show
  1. package/CHANGELOG.md +112 -1
  2. package/README.md +4 -4
  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 +5 -3
  63. package/dist-lib/lib/assistant.js +50 -13
  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/local/index.d.ts +4 -1
  128. package/dist-lib/lib/core/local/index.js +23 -2
  129. package/dist-lib/lib/core/membership.d.ts +2 -2
  130. package/dist-lib/lib/core/mesh.d.ts +13 -7
  131. package/dist-lib/lib/core/mesh.js +55 -47
  132. package/dist-lib/lib/core/migrations/file-index.js +2 -4
  133. package/dist-lib/lib/core/next-frame.js +2 -1
  134. package/dist-lib/lib/core/pdf/rasterize.d.ts +2 -1
  135. package/dist-lib/lib/core/pdf/rasterize.js +5 -5
  136. package/dist-lib/lib/core/peer-duplex.d.ts +3 -3
  137. package/dist-lib/lib/core/peer-duplex.js +4 -4
  138. package/dist-lib/lib/core/secret-handoff.d.ts +2 -2
  139. package/dist-lib/lib/core/secret-handoff.js +7 -4
  140. package/dist-lib/lib/core/send.js +3 -2
  141. package/dist-lib/lib/core/skill-overlay-handoff.d.ts +2 -2
  142. package/dist-lib/lib/core/skill-overlay-handoff.js +6 -5
  143. package/dist-lib/lib/core/skill-overlay-receiver.js +5 -5
  144. package/dist-lib/lib/core/skill-secrets.d.ts +0 -5
  145. package/dist-lib/lib/core/skill-secrets.js +5 -9
  146. package/dist-lib/lib/core/sync/changed.d.ts +20 -0
  147. package/dist-lib/lib/core/sync/changed.js +7 -0
  148. package/dist-lib/lib/core/sync/devices.js +1 -1
  149. package/dist-lib/lib/core/sync/files.d.ts +1 -0
  150. package/dist-lib/lib/core/sync/files.js +50 -72
  151. package/dist-lib/lib/core/sync/index.d.ts +1 -2
  152. package/dist-lib/lib/core/sync/index.js +40 -62
  153. package/dist-lib/lib/core/sync/view-updates.d.ts +33 -0
  154. package/dist-lib/lib/core/sync/view-updates.js +133 -0
  155. package/dist-lib/lib/core/system-info.d.ts +2 -2
  156. package/dist-lib/lib/core/system-info.js +10 -11
  157. package/dist-lib/lib/core/tool-configs.js +6 -6
  158. package/dist-lib/lib/core.d.ts +1 -7
  159. package/dist-lib/lib/core.js +147 -131
  160. package/dist-lib/lib/custom-model-pusher.d.ts +2 -4
  161. package/dist-lib/lib/custom-model-task.d.ts +2 -1
  162. package/dist-lib/lib/custom-model-task.js +2 -2
  163. package/dist-lib/lib/downloads-allowed-pusher.d.ts +2 -4
  164. package/dist-lib/lib/errors.d.ts +603 -0
  165. package/dist-lib/lib/errors.js +552 -0
  166. package/dist-lib/lib/log.d.ts +7 -6
  167. package/dist-lib/lib/log.js +10 -6
  168. package/dist-lib/lib/logger-type.d.ts +2 -5
  169. package/dist-lib/lib/model-download-status.d.ts +2 -2
  170. package/dist-lib/lib/model-download.d.ts +2 -2
  171. package/dist-lib/lib/model-download.js +3 -2
  172. package/dist-lib/lib/model-idle-pusher.d.ts +2 -4
  173. package/dist-lib/lib/model-memory-cap.d.ts +2 -4
  174. package/dist-lib/lib/oauth/browser-connect.js +3 -2
  175. package/dist-lib/lib/oauth/flow-core.js +3 -3
  176. package/dist-lib/lib/oauth/loopback.js +10 -9
  177. package/dist-lib/lib/oauth/providers.js +4 -2
  178. package/dist-lib/lib/oauth/register.js +3 -2
  179. package/dist-lib/lib/oauth/token-exchange-core.js +5 -4
  180. package/dist-lib/lib/run-notices.d.ts +2 -0
  181. package/dist-lib/lib/run-notices.js +7 -2
  182. package/dist-lib/lib/run-transcript.d.ts +2 -2
  183. package/dist-lib/lib/task.js +2 -1
  184. package/dist-lib/schema/engine.js +6 -3
  185. package/dist-lib/schema/field-order.js +1 -3
  186. package/dist-lib/schema/local.js +11 -0
  187. package/dist-lib/spec/hrpc/messages.js +20 -9
  188. package/dist-lib/spec/hyperschema/index.js +20 -9
  189. package/dist-lib/spec/hyperschema/schema.json +15 -0
  190. package/dist-lib/spec/hyperschema/types.d.ts +3 -0
  191. package/dist-lib/spec/local/hyperdb/db.json +16 -1
  192. package/dist-lib/spec/local/hyperdb/index.js +71 -2
  193. package/dist-lib/spec/local/hyperdb/messages.js +300 -143
  194. package/dist-lib/spec/local/hyperschema/index.js +82 -2
  195. package/dist-lib/spec/local/hyperschema/schema.json +43 -1
  196. package/dist-lib/spec/local/hyperschema/types.d.ts +12 -1
  197. package/package.json +10 -3
  198. package/tui/app.mjs +1 -1
  199. package/worker/assistant-sidecar.mjs +7 -0
  200. package/dist-lib/lib/log-levels.d.ts +0 -7
  201. package/dist-lib/lib/log-levels.js +0 -1
  202. package/dist-lib/lib/logger.d.ts +0 -5
  203. 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.9.0",
3
+ "version": "0.10.1",
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": {
237
- "@qvac/harness": "^0.8.7",
238
- "@qvac/skills": "0.1.14",
242
+ "@qvac/error": "^0.2.0",
243
+ "@qvac/harness": "^0.8.11",
244
+ "@qvac/logging": "^0.2.0",
245
+ "@qvac/skills": "^0.1.16",
239
246
  "asenion": "^0.1.0",
240
247
  "autobee": "^2.11.8",
241
248
  "b4a": "^1.9.0",
package/tui/app.mjs CHANGED
@@ -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
@@ -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
- }