@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.
- package/CHANGELOG.md +112 -1
- package/README.md +4 -4
- package/dist-lib/index.d.ts +0 -1
- package/dist-lib/index.js +0 -1
- package/dist-lib/lib/api/agents.d.ts +7 -1
- package/dist-lib/lib/api/agents.js +2 -2
- package/dist-lib/lib/api/app-config.d.ts +2 -1
- package/dist-lib/lib/api/app-config.js +2 -2
- package/dist-lib/lib/api/attachments.js +3 -2
- package/dist-lib/lib/api/chat-move.d.ts +2 -1
- package/dist-lib/lib/api/chat-move.js +2 -2
- package/dist-lib/lib/api/chat.d.ts +3 -1
- package/dist-lib/lib/api/chat.js +5 -5
- package/dist-lib/lib/api/chunks.d.ts +2 -1
- package/dist-lib/lib/api/chunks.js +3 -3
- package/dist-lib/lib/api/config.d.ts +2 -1
- package/dist-lib/lib/api/config.js +2 -2
- package/dist-lib/lib/api/current-mesh.d.ts +1 -3
- package/dist-lib/lib/api/current-mesh.js +4 -10
- package/dist-lib/lib/api/custom-models.d.ts +7 -1
- package/dist-lib/lib/api/custom-models.js +10 -8
- package/dist-lib/lib/api/device-routes.d.ts +0 -2
- package/dist-lib/lib/api/device-routes.js +4 -5
- package/dist-lib/lib/api/devices.d.ts +3 -1
- package/dist-lib/lib/api/devices.js +9 -8
- package/dist-lib/lib/api/diagnostics.d.ts +2 -1
- package/dist-lib/lib/api/diagnostics.js +2 -2
- package/dist-lib/lib/api/index.d.ts +2 -0
- package/dist-lib/lib/api/index.js +39 -21
- package/dist-lib/lib/api/instrument.d.ts +2 -2
- package/dist-lib/lib/api/instrument.js +10 -11
- package/dist-lib/lib/api/knowledge.d.ts +3 -1
- package/dist-lib/lib/api/knowledge.js +9 -7
- package/dist-lib/lib/api/logs.js +3 -3
- package/dist-lib/lib/api/members.d.ts +6 -1
- package/dist-lib/lib/api/members.js +11 -10
- package/dist-lib/lib/api/mesh.d.ts +2 -2
- package/dist-lib/lib/api/mesh.js +6 -6
- package/dist-lib/lib/api/model-download.d.ts +2 -1
- package/dist-lib/lib/api/model-download.js +2 -2
- package/dist-lib/lib/api/network.d.ts +3 -2
- package/dist-lib/lib/api/network.js +4 -4
- package/dist-lib/lib/api/notifications.d.ts +3 -1
- package/dist-lib/lib/api/notifications.js +5 -4
- package/dist-lib/lib/api/rag.d.ts +0 -1
- package/dist-lib/lib/api/rag.js +3 -4
- package/dist-lib/lib/api/sync.d.ts +2 -1
- package/dist-lib/lib/api/sync.js +2 -2
- package/dist-lib/lib/api/tool-activity.d.ts +2 -1
- package/dist-lib/lib/api/tool-activity.js +4 -3
- package/dist-lib/lib/api/tool-configs.d.ts +2 -1
- package/dist-lib/lib/api/tool-configs.js +4 -3
- package/dist-lib/lib/api/upload-frames.d.ts +0 -1
- package/dist-lib/lib/api/upload-frames.js +0 -1
- package/dist-lib/lib/api/watchable.d.ts +3 -2
- package/dist-lib/lib/api/watchable.js +2 -3
- package/dist-lib/lib/assistant/fake-models.d.ts +2 -4
- package/dist-lib/lib/assistant/harness.js +8 -6
- package/dist-lib/lib/assistant-client.d.ts +2 -0
- package/dist-lib/lib/assistant-client.js +4 -3
- package/dist-lib/lib/assistant-tree.d.ts +3 -3
- package/dist-lib/lib/assistant.d.ts +5 -3
- package/dist-lib/lib/assistant.js +50 -13
- package/dist-lib/lib/client.d.ts +2 -2
- package/dist-lib/lib/core/agent.js +5 -4
- package/dist-lib/lib/core/archived-mesh.d.ts +2 -3
- package/dist-lib/lib/core/archived-mesh.js +3 -3
- package/dist-lib/lib/core/chat-activity.js +5 -3
- package/dist-lib/lib/core/chat-copy.d.ts +0 -1
- package/dist-lib/lib/core/chat-copy.js +2 -2
- package/dist-lib/lib/core/chat-fork.d.ts +0 -6
- package/dist-lib/lib/core/chat-fork.js +11 -17
- package/dist-lib/lib/core/chat-group.js +8 -7
- package/dist-lib/lib/core/chat-move.d.ts +4 -6
- package/dist-lib/lib/core/chat-move.js +14 -15
- package/dist-lib/lib/core/chat-order.d.ts +2 -1
- package/dist-lib/lib/core/chat-order.js +15 -2
- package/dist-lib/lib/core/chat.js +8 -7
- package/dist-lib/lib/core/chunk.js +13 -8
- package/dist-lib/lib/core/collections.d.ts +1 -0
- package/dist-lib/lib/core/collections.js +1 -0
- package/dist-lib/lib/core/contract/compute.d.ts +0 -4
- package/dist-lib/lib/core/contract/compute.js +2 -9
- package/dist-lib/lib/core/contract/types.d.ts +2 -2
- package/dist-lib/lib/core/departures.d.ts +2 -2
- package/dist-lib/lib/core/device-control.d.ts +0 -2
- package/dist-lib/lib/core/device-control.js +5 -6
- package/dist-lib/lib/core/files/attachments.js +5 -4
- package/dist-lib/lib/core/files/index.d.ts +2 -1
- package/dist-lib/lib/core/files/index.js +20 -8
- package/dist-lib/lib/core/files/processing/claims.js +3 -3
- package/dist-lib/lib/core/files/processing/document.d.ts +2 -0
- package/dist-lib/lib/core/files/processing/document.js +3 -0
- package/dist-lib/lib/core/files/processing/index.js +4 -2
- package/dist-lib/lib/core/files/processing/source.d.ts +3 -0
- package/dist-lib/lib/core/files/processing/source.js +5 -3
- package/dist-lib/lib/core/files/processing/state.js +1 -0
- package/dist-lib/lib/core/files/rag/index.d.ts +3 -0
- package/dist-lib/lib/core/files/rag/index.js +3 -1
- package/dist-lib/lib/core/files/rag/load.js +6 -3
- package/dist-lib/lib/core/files/rag/produce.js +3 -3
- package/dist-lib/lib/core/files/rag/retrieval/full-text.js +1 -1
- package/dist-lib/lib/core/files/rag/similarity.d.ts +2 -2
- package/dist-lib/lib/core/files/rag/similarity.js +2 -3
- package/dist-lib/lib/core/files/records/chunks.js +1 -1
- package/dist-lib/lib/core/files/records/knowledge.js +2 -1
- package/dist-lib/lib/core/files/records/purge.js +9 -5
- package/dist-lib/lib/core/files/records/reclaim.js +20 -48
- package/dist-lib/lib/core/files/records/sweep.d.ts +3 -0
- package/dist-lib/lib/core/files/records/sweep.js +9 -3
- package/dist-lib/lib/core/files/store/blob.d.ts +2 -0
- package/dist-lib/lib/core/files/store/blob.js +2 -2
- package/dist-lib/lib/core/files/store/index.d.ts +1 -0
- package/dist-lib/lib/core/files/store/index.js +2 -0
- package/dist-lib/lib/core/files/store/reference.js +4 -2
- package/dist-lib/lib/core/files/upload.d.ts +1 -1
- package/dist-lib/lib/core/files/upload.js +10 -9
- package/dist-lib/lib/core/handoff-channel.d.ts +6 -4
- package/dist-lib/lib/core/handoff-channel.js +8 -9
- package/dist-lib/lib/core/harness-loan.d.ts +0 -2
- package/dist-lib/lib/core/harness-loan.js +3 -4
- package/dist-lib/lib/core/hosted-agents.d.ts +2 -2
- package/dist-lib/lib/core/inference-calls-handoff.d.ts +2 -2
- package/dist-lib/lib/core/inference-calls-handoff.js +6 -5
- package/dist-lib/lib/core/inference-calls-receiver.d.ts +0 -2
- package/dist-lib/lib/core/inference-calls-receiver.js +5 -7
- package/dist-lib/lib/core/local/index.d.ts +4 -1
- package/dist-lib/lib/core/local/index.js +23 -2
- package/dist-lib/lib/core/membership.d.ts +2 -2
- package/dist-lib/lib/core/mesh.d.ts +13 -7
- package/dist-lib/lib/core/mesh.js +55 -47
- package/dist-lib/lib/core/migrations/file-index.js +2 -4
- package/dist-lib/lib/core/next-frame.js +2 -1
- package/dist-lib/lib/core/pdf/rasterize.d.ts +2 -1
- package/dist-lib/lib/core/pdf/rasterize.js +5 -5
- package/dist-lib/lib/core/peer-duplex.d.ts +3 -3
- package/dist-lib/lib/core/peer-duplex.js +4 -4
- package/dist-lib/lib/core/secret-handoff.d.ts +2 -2
- package/dist-lib/lib/core/secret-handoff.js +7 -4
- package/dist-lib/lib/core/send.js +3 -2
- package/dist-lib/lib/core/skill-overlay-handoff.d.ts +2 -2
- package/dist-lib/lib/core/skill-overlay-handoff.js +6 -5
- package/dist-lib/lib/core/skill-overlay-receiver.js +5 -5
- package/dist-lib/lib/core/skill-secrets.d.ts +0 -5
- package/dist-lib/lib/core/skill-secrets.js +5 -9
- package/dist-lib/lib/core/sync/changed.d.ts +20 -0
- package/dist-lib/lib/core/sync/changed.js +7 -0
- package/dist-lib/lib/core/sync/devices.js +1 -1
- package/dist-lib/lib/core/sync/files.d.ts +1 -0
- package/dist-lib/lib/core/sync/files.js +50 -72
- package/dist-lib/lib/core/sync/index.d.ts +1 -2
- package/dist-lib/lib/core/sync/index.js +40 -62
- package/dist-lib/lib/core/sync/view-updates.d.ts +33 -0
- package/dist-lib/lib/core/sync/view-updates.js +133 -0
- package/dist-lib/lib/core/system-info.d.ts +2 -2
- package/dist-lib/lib/core/system-info.js +10 -11
- package/dist-lib/lib/core/tool-configs.js +6 -6
- package/dist-lib/lib/core.d.ts +1 -7
- package/dist-lib/lib/core.js +147 -131
- package/dist-lib/lib/custom-model-pusher.d.ts +2 -4
- package/dist-lib/lib/custom-model-task.d.ts +2 -1
- package/dist-lib/lib/custom-model-task.js +2 -2
- package/dist-lib/lib/downloads-allowed-pusher.d.ts +2 -4
- package/dist-lib/lib/errors.d.ts +603 -0
- package/dist-lib/lib/errors.js +552 -0
- package/dist-lib/lib/log.d.ts +7 -6
- package/dist-lib/lib/log.js +10 -6
- package/dist-lib/lib/logger-type.d.ts +2 -5
- package/dist-lib/lib/model-download-status.d.ts +2 -2
- package/dist-lib/lib/model-download.d.ts +2 -2
- package/dist-lib/lib/model-download.js +3 -2
- package/dist-lib/lib/model-idle-pusher.d.ts +2 -4
- package/dist-lib/lib/model-memory-cap.d.ts +2 -4
- package/dist-lib/lib/oauth/browser-connect.js +3 -2
- package/dist-lib/lib/oauth/flow-core.js +3 -3
- package/dist-lib/lib/oauth/loopback.js +10 -9
- package/dist-lib/lib/oauth/providers.js +4 -2
- package/dist-lib/lib/oauth/register.js +3 -2
- package/dist-lib/lib/oauth/token-exchange-core.js +5 -4
- package/dist-lib/lib/run-notices.d.ts +2 -0
- package/dist-lib/lib/run-notices.js +7 -2
- package/dist-lib/lib/run-transcript.d.ts +2 -2
- package/dist-lib/lib/task.js +2 -1
- package/dist-lib/schema/engine.js +6 -3
- package/dist-lib/schema/field-order.js +1 -3
- package/dist-lib/schema/local.js +11 -0
- package/dist-lib/spec/hrpc/messages.js +20 -9
- package/dist-lib/spec/hyperschema/index.js +20 -9
- package/dist-lib/spec/hyperschema/schema.json +15 -0
- package/dist-lib/spec/hyperschema/types.d.ts +3 -0
- package/dist-lib/spec/local/hyperdb/db.json +16 -1
- package/dist-lib/spec/local/hyperdb/index.js +71 -2
- package/dist-lib/spec/local/hyperdb/messages.js +300 -143
- package/dist-lib/spec/local/hyperschema/index.js +82 -2
- package/dist-lib/spec/local/hyperschema/schema.json +43 -1
- package/dist-lib/spec/local/hyperschema/types.d.ts +12 -1
- package/package.json +10 -3
- package/tui/app.mjs +1 -1
- package/worker/assistant-sidecar.mjs +7 -0
- package/dist-lib/lib/log-levels.d.ts +0 -7
- package/dist-lib/lib/log-levels.js +0 -1
- package/dist-lib/lib/logger.d.ts +0 -5
- 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:
|
|
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 =
|
|
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":
|
|
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:
|
|
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.
|
|
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/
|
|
238
|
-
"@qvac/
|
|
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
|
|
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 +0,0 @@
|
|
|
1
|
-
export const LEVELS = { debug: 0, info: 1, warn: 2, error: 3 };
|
package/dist-lib/lib/logger.d.ts
DELETED
package/dist-lib/lib/logger.js
DELETED
|
@@ -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
|
-
}
|