@qvac/core 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +148 -1
- package/README.md +19 -16
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.js +1 -0
- package/dist-lib/lib/api/chunk-delta.d.ts +6 -2
- package/dist-lib/lib/api/chunk-delta.js +69 -7
- package/dist-lib/lib/api/chunks.js +10 -4
- package/dist-lib/lib/api/config.d.ts +4 -1
- package/dist-lib/lib/api/config.js +23 -4
- package/dist-lib/lib/api/devices.js +3 -1
- package/dist-lib/lib/api/rag.js +11 -7
- package/dist-lib/lib/assistant/harness.d.ts +3 -1
- package/dist-lib/lib/assistant/harness.js +10 -0
- package/dist-lib/lib/assistant/history.d.ts +1 -0
- package/dist-lib/lib/assistant/history.js +9 -3
- package/dist-lib/lib/assistant/message.js +2 -2
- package/dist-lib/lib/assistant-tree.d.ts +2 -0
- package/dist-lib/lib/assistant-tree.js +5 -3
- package/dist-lib/lib/assistant.d.ts +6 -1
- package/dist-lib/lib/assistant.js +77 -24
- package/dist-lib/lib/client.js +10 -1
- package/dist-lib/lib/compaction.d.ts +2 -1
- package/dist-lib/lib/compaction.js +14 -4
- package/dist-lib/lib/constants.d.ts +3 -0
- package/dist-lib/lib/constants.js +3 -0
- package/dist-lib/lib/core/archived-mesh.js +1 -0
- package/dist-lib/lib/core/chat-activity.js +12 -15
- package/dist-lib/lib/core/chunk.d.ts +14 -3
- package/dist-lib/lib/core/chunk.js +112 -22
- package/dist-lib/lib/core/collections.d.ts +1 -0
- package/dist-lib/lib/core/collections.js +1 -0
- package/dist-lib/lib/core/config-value.d.ts +6 -0
- package/dist-lib/lib/core/config-value.js +14 -0
- package/dist-lib/lib/core/contract/chat.d.ts +1 -0
- package/dist-lib/lib/core/contract/chat.js +8 -1
- package/dist-lib/lib/core/contract/chunks.js +20 -6
- package/dist-lib/lib/core/contract/compute.d.ts +1 -1
- package/dist-lib/lib/core/contract/compute.js +2 -1
- package/dist-lib/lib/core/contract/devices.js +3 -2
- package/dist-lib/lib/core/departures.js +1 -0
- package/dist-lib/lib/core/devices.d.ts +2 -1
- package/dist-lib/lib/core/devices.js +4 -2
- package/dist-lib/lib/core/files/attachments.js +3 -3
- package/dist-lib/lib/core/files/index.d.ts +1 -1
- package/dist-lib/lib/core/files/index.js +3 -2
- package/dist-lib/lib/core/files/processing/index.d.ts +1 -0
- package/dist-lib/lib/core/files/processing/index.js +8 -0
- package/dist-lib/lib/core/files/processing/settle.d.ts +1 -0
- package/dist-lib/lib/core/files/processing/settle.js +20 -13
- package/dist-lib/lib/core/files/rag/index.d.ts +1 -1
- package/dist-lib/lib/core/files/rag/index.js +1 -1
- package/dist-lib/lib/core/files/rag/retrieval/full-text.d.ts +1 -0
- package/dist-lib/lib/core/files/rag/retrieval/full-text.js +4 -1
- package/dist-lib/lib/core/hosted-agents.d.ts +3 -0
- package/dist-lib/lib/core/hosted-agents.js +19 -0
- package/dist-lib/lib/core/inference-calls-receiver.js +2 -2
- package/dist-lib/lib/core/known-sender.d.ts +3 -0
- package/dist-lib/lib/core/known-sender.js +26 -0
- package/dist-lib/lib/core/local/index.d.ts +2 -0
- package/dist-lib/lib/core/local/index.js +17 -10
- package/dist-lib/lib/core/mesh.d.ts +5 -1
- package/dist-lib/lib/core/mesh.js +6 -6
- package/dist-lib/lib/core/migrations/chat-chunks.d.ts +4 -0
- package/dist-lib/lib/core/migrations/chat-chunks.js +43 -0
- package/dist-lib/lib/core/notification.js +16 -13
- package/dist-lib/lib/core/skill-overlay-receiver.js +2 -2
- package/dist-lib/lib/core/skill-secrets.js +2 -2
- package/dist-lib/lib/core.d.ts +17 -1
- package/dist-lib/lib/core.js +55 -5
- package/dist-lib/lib/credential-pusher.d.ts +11 -7
- package/dist-lib/lib/credential-pusher.js +40 -8
- package/dist-lib/lib/device-tree.d.ts +18 -0
- package/dist-lib/lib/device-tree.js +32 -0
- package/dist-lib/lib/integrations/setup-routes.js +7 -5
- package/dist-lib/lib/kv-cache-retention.d.ts +34 -0
- package/dist-lib/lib/kv-cache-retention.js +98 -0
- package/dist-lib/schema/content.js +2 -1
- package/dist-lib/schema/engine.js +20 -3
- package/dist-lib/schema/field-order.js +8 -1
- package/dist-lib/schema/local.js +7 -3
- package/dist-lib/schema/qvac.js +23 -4
- package/dist-lib/spec/hrpc/messages.js +1240 -1194
- package/dist-lib/spec/hyperschema/index.js +1240 -1194
- package/dist-lib/spec/hyperschema/schema.json +49 -1
- package/dist-lib/spec/hyperschema/types.d.ts +12 -1
- package/dist-lib/spec/local/hyperdb/messages.js +70 -20
- package/dist-lib/spec/local/hyperschema/index.js +36 -11
- package/dist-lib/spec/local/hyperschema/schema.json +21 -1
- package/dist-lib/spec/local/hyperschema/types.d.ts +5 -1
- package/dist-lib/spec/mesh/hyperdb/db.json +17 -1
- package/dist-lib/spec/mesh/hyperdb/index.js +83 -2
- package/dist-lib/spec/mesh/hyperdb/messages.js +602 -264
- package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +7 -1
- package/dist-lib/spec/mesh/hyperdispatch/index.js +18 -1
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +137 -14
- package/dist-lib/spec/mesh/hyperschema/index.js +137 -14
- package/dist-lib/spec/mesh/hyperschema/schema.json +79 -1
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +21 -1
- package/package.json +13 -9
- package/tui/app.mjs +743 -266
- package/tui/boot.mjs +2 -2
- package/tui/lib/connect-sheet.mjs +350 -0
- package/tui/lib/setup.mjs +59 -25
- package/tui/lib/skill-connect.mjs +145 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// This file is autogenerated by the hyperschema compiler
|
|
2
|
-
// Schema Version:
|
|
2
|
+
// Schema Version: 18
|
|
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 = 18
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line no-unused-vars
|
|
12
12
|
let version = VERSION
|
|
@@ -1047,7 +1047,8 @@ const encoding27 = {
|
|
|
1047
1047
|
((version >= 10 && m.capability) ? 524288 : 0) |
|
|
1048
1048
|
((version >= 10 && m.capabilityArgs) ? 1048576 : 0) |
|
|
1049
1049
|
((version >= 10 && m.enhance) ? 2097152 : 0) |
|
|
1050
|
-
((version >= 16 && m.sourceId) ? 4194304 : 0)
|
|
1050
|
+
((version >= 16 && m.sourceId) ? 4194304 : 0) |
|
|
1051
|
+
((version >= 18 && m.falsyResult) ? 8388608 : 0)
|
|
1051
1052
|
|
|
1052
1053
|
c.string.preencode(state, m.id)
|
|
1053
1054
|
c.string.preencode(state, m.chatId)
|
|
@@ -1080,6 +1081,7 @@ const encoding27 = {
|
|
|
1080
1081
|
if (version >= 10 && m.capabilityArgs) c.json.preencode(state, m.capabilityArgs)
|
|
1081
1082
|
if (version >= 10 && m.enhance) encoding141.preencode(state, m.enhance)
|
|
1082
1083
|
if (version >= 16 && m.sourceId) c.string.preencode(state, m.sourceId)
|
|
1084
|
+
if (version >= 18 && m.falsyResult) c.string.preencode(state, m.falsyResult)
|
|
1083
1085
|
},
|
|
1084
1086
|
encode(state, m) {
|
|
1085
1087
|
const flags =
|
|
@@ -1105,7 +1107,8 @@ const encoding27 = {
|
|
|
1105
1107
|
((version >= 10 && m.capability) ? 524288 : 0) |
|
|
1106
1108
|
((version >= 10 && m.capabilityArgs) ? 1048576 : 0) |
|
|
1107
1109
|
((version >= 10 && m.enhance) ? 2097152 : 0) |
|
|
1108
|
-
((version >= 16 && m.sourceId) ? 4194304 : 0)
|
|
1110
|
+
((version >= 16 && m.sourceId) ? 4194304 : 0) |
|
|
1111
|
+
((version >= 18 && m.falsyResult) ? 8388608 : 0)
|
|
1109
1112
|
|
|
1110
1113
|
c.string.encode(state, m.id)
|
|
1111
1114
|
c.string.encode(state, m.chatId)
|
|
@@ -1138,6 +1141,7 @@ const encoding27 = {
|
|
|
1138
1141
|
if (version >= 10 && m.capabilityArgs) c.json.encode(state, m.capabilityArgs)
|
|
1139
1142
|
if (version >= 10 && m.enhance) encoding141.encode(state, m.enhance)
|
|
1140
1143
|
if (version >= 16 && m.sourceId) c.string.encode(state, m.sourceId)
|
|
1144
|
+
if (version >= 18 && m.falsyResult) c.string.encode(state, m.falsyResult)
|
|
1141
1145
|
},
|
|
1142
1146
|
decode(state) {
|
|
1143
1147
|
const r0 = c.string.decode(state)
|
|
@@ -1174,7 +1178,8 @@ const encoding27 = {
|
|
|
1174
1178
|
capability: (version >= 10 && (flags & 524288) !== 0) ? c.string.decode(state) : null,
|
|
1175
1179
|
capabilityArgs: (version >= 10 && (flags & 1048576) !== 0) ? c.json.decode(state) : null,
|
|
1176
1180
|
enhance: (version >= 10 && (flags & 2097152) !== 0) ? encoding141.decode(state) : null,
|
|
1177
|
-
sourceId: (version >= 16 && (flags & 4194304) !== 0) ? c.string.decode(state) : null
|
|
1181
|
+
sourceId: (version >= 16 && (flags & 4194304) !== 0) ? c.string.decode(state) : null,
|
|
1182
|
+
falsyResult: (version >= 18 && (flags & 8388608) !== 0) ? c.string.decode(state) : null
|
|
1178
1183
|
}
|
|
1179
1184
|
}
|
|
1180
1185
|
}
|
|
@@ -1318,7 +1323,8 @@ const encoding31 = {
|
|
|
1318
1323
|
((version >= 10 && m.capability) ? 262144 : 0) |
|
|
1319
1324
|
((version >= 10 && m.capabilityArgs) ? 524288 : 0) |
|
|
1320
1325
|
((version >= 10 && m.enhance) ? 1048576 : 0) |
|
|
1321
|
-
((version >= 16 && m.sourceId) ? 2097152 : 0)
|
|
1326
|
+
((version >= 16 && m.sourceId) ? 2097152 : 0) |
|
|
1327
|
+
((version >= 18 && m.falsyResult) ? 4194304 : 0)
|
|
1322
1328
|
|
|
1323
1329
|
c.string.preencode(state, m.id)
|
|
1324
1330
|
c.string.preencode(state, m.chatId)
|
|
@@ -1349,6 +1355,7 @@ const encoding31 = {
|
|
|
1349
1355
|
if (version >= 10 && m.capabilityArgs) c.json.preencode(state, m.capabilityArgs)
|
|
1350
1356
|
if (version >= 10 && m.enhance) encoding141.preencode(state, m.enhance)
|
|
1351
1357
|
if (version >= 16 && m.sourceId) c.string.preencode(state, m.sourceId)
|
|
1358
|
+
if (version >= 18 && m.falsyResult) c.string.preencode(state, m.falsyResult)
|
|
1352
1359
|
},
|
|
1353
1360
|
encode(state, m) {
|
|
1354
1361
|
const flags =
|
|
@@ -1373,7 +1380,8 @@ const encoding31 = {
|
|
|
1373
1380
|
((version >= 10 && m.capability) ? 262144 : 0) |
|
|
1374
1381
|
((version >= 10 && m.capabilityArgs) ? 524288 : 0) |
|
|
1375
1382
|
((version >= 10 && m.enhance) ? 1048576 : 0) |
|
|
1376
|
-
((version >= 16 && m.sourceId) ? 2097152 : 0)
|
|
1383
|
+
((version >= 16 && m.sourceId) ? 2097152 : 0) |
|
|
1384
|
+
((version >= 18 && m.falsyResult) ? 4194304 : 0)
|
|
1377
1385
|
|
|
1378
1386
|
c.string.encode(state, m.id)
|
|
1379
1387
|
c.string.encode(state, m.chatId)
|
|
@@ -1404,6 +1412,7 @@ const encoding31 = {
|
|
|
1404
1412
|
if (version >= 10 && m.capabilityArgs) c.json.encode(state, m.capabilityArgs)
|
|
1405
1413
|
if (version >= 10 && m.enhance) encoding141.encode(state, m.enhance)
|
|
1406
1414
|
if (version >= 16 && m.sourceId) c.string.encode(state, m.sourceId)
|
|
1415
|
+
if (version >= 18 && m.falsyResult) c.string.encode(state, m.falsyResult)
|
|
1407
1416
|
},
|
|
1408
1417
|
decode(state) {
|
|
1409
1418
|
const r0 = c.string.decode(state)
|
|
@@ -1438,7 +1447,8 @@ const encoding31 = {
|
|
|
1438
1447
|
capability: (version >= 10 && (flags & 262144) !== 0) ? c.string.decode(state) : null,
|
|
1439
1448
|
capabilityArgs: (version >= 10 && (flags & 524288) !== 0) ? c.json.decode(state) : null,
|
|
1440
1449
|
enhance: (version >= 10 && (flags & 1048576) !== 0) ? encoding141.decode(state) : null,
|
|
1441
|
-
sourceId: (version >= 16 && (flags & 2097152) !== 0) ? c.string.decode(state) : null
|
|
1450
|
+
sourceId: (version >= 16 && (flags & 2097152) !== 0) ? c.string.decode(state) : null,
|
|
1451
|
+
falsyResult: (version >= 18 && (flags & 4194304) !== 0) ? c.string.decode(state) : null
|
|
1442
1452
|
}
|
|
1443
1453
|
}
|
|
1444
1454
|
}
|
|
@@ -2256,7 +2266,8 @@ const encoding47 = {
|
|
|
2256
2266
|
((version >= 4 && m.attestedAt) ? 65536 : 0) |
|
|
2257
2267
|
((version >= 7 && m.claimedMemberId) ? 131072 : 0) |
|
|
2258
2268
|
((version >= 7 && m.inviteToken) ? 262144 : 0) |
|
|
2259
|
-
((version >= 7 && m.deviceSignature) ? 524288 : 0)
|
|
2269
|
+
((version >= 7 && m.deviceSignature) ? 524288 : 0) |
|
|
2270
|
+
((version >= 17 && m.customModels) ? 1048576 : 0)
|
|
2260
2271
|
|
|
2261
2272
|
c.fixed32.preencode(state, m.id)
|
|
2262
2273
|
c.string.preencode(state, m.name)
|
|
@@ -2284,6 +2295,7 @@ const encoding47 = {
|
|
|
2284
2295
|
if (version >= 7 && m.claimedMemberId) c.fixed32.preencode(state, m.claimedMemberId)
|
|
2285
2296
|
if (version >= 7 && m.inviteToken) c.fixed32.preencode(state, m.inviteToken)
|
|
2286
2297
|
if (version >= 7 && m.deviceSignature) c.buffer.preencode(state, m.deviceSignature)
|
|
2298
|
+
if (version >= 17 && m.customModels) encoding47_25.preencode(state, m.customModels)
|
|
2287
2299
|
},
|
|
2288
2300
|
encode(state, m) {
|
|
2289
2301
|
const flags =
|
|
@@ -2306,7 +2318,8 @@ const encoding47 = {
|
|
|
2306
2318
|
((version >= 4 && m.attestedAt) ? 65536 : 0) |
|
|
2307
2319
|
((version >= 7 && m.claimedMemberId) ? 131072 : 0) |
|
|
2308
2320
|
((version >= 7 && m.inviteToken) ? 262144 : 0) |
|
|
2309
|
-
((version >= 7 && m.deviceSignature) ? 524288 : 0)
|
|
2321
|
+
((version >= 7 && m.deviceSignature) ? 524288 : 0) |
|
|
2322
|
+
((version >= 17 && m.customModels) ? 1048576 : 0)
|
|
2310
2323
|
|
|
2311
2324
|
c.fixed32.encode(state, m.id)
|
|
2312
2325
|
c.string.encode(state, m.name)
|
|
@@ -2334,6 +2347,7 @@ const encoding47 = {
|
|
|
2334
2347
|
if (version >= 7 && m.claimedMemberId) c.fixed32.encode(state, m.claimedMemberId)
|
|
2335
2348
|
if (version >= 7 && m.inviteToken) c.fixed32.encode(state, m.inviteToken)
|
|
2336
2349
|
if (version >= 7 && m.deviceSignature) c.buffer.encode(state, m.deviceSignature)
|
|
2350
|
+
if (version >= 17 && m.customModels) encoding47_25.encode(state, m.customModels)
|
|
2337
2351
|
},
|
|
2338
2352
|
decode(state) {
|
|
2339
2353
|
const r0 = c.fixed32.decode(state)
|
|
@@ -2369,7 +2383,8 @@ const encoding47 = {
|
|
|
2369
2383
|
attestedAt: (version >= 4 && (flags & 65536) !== 0) ? c.uint.decode(state) : 0,
|
|
2370
2384
|
claimedMemberId: (version >= 7 && (flags & 131072) !== 0) ? c.fixed32.decode(state) : null,
|
|
2371
2385
|
inviteToken: (version >= 7 && (flags & 262144) !== 0) ? c.fixed32.decode(state) : null,
|
|
2372
|
-
deviceSignature: (version >= 7 && (flags & 524288) !== 0) ? c.buffer.decode(state) : null
|
|
2386
|
+
deviceSignature: (version >= 7 && (flags & 524288) !== 0) ? c.buffer.decode(state) : null,
|
|
2387
|
+
customModels: (version >= 17 && (flags & 1048576) !== 0) ? encoding47_25.decode(state) : null
|
|
2373
2388
|
}
|
|
2374
2389
|
}
|
|
2375
2390
|
}
|
|
@@ -2763,7 +2778,7 @@ const encoding59_5 = encoding43_6
|
|
|
2763
2778
|
const encoding59 = {
|
|
2764
2779
|
preencode(state, m) {
|
|
2765
2780
|
c.fixed32.preencode(state, m.deviceId)
|
|
2766
|
-
state.end++ // max flag is
|
|
2781
|
+
state.end++ // max flag is 64 so always one byte
|
|
2767
2782
|
|
|
2768
2783
|
if (m.installedToolNames) encoding59_1.preencode(state, m.installedToolNames)
|
|
2769
2784
|
if (m.installedSkillNames) encoding59_2.preencode(state, m.installedSkillNames)
|
|
@@ -2771,6 +2786,7 @@ const encoding59 = {
|
|
|
2771
2786
|
if (m.cachedModelNames) encoding59_4.preencode(state, m.cachedModelNames)
|
|
2772
2787
|
if (version >= 3 && m.readySkillNames) encoding59_5.preencode(state, m.readySkillNames)
|
|
2773
2788
|
if (version >= 4 && m.toolCatalog) encoding59_6.preencode(state, m.toolCatalog)
|
|
2789
|
+
if (version >= 17 && m.customModels) encoding59_7.preencode(state, m.customModels)
|
|
2774
2790
|
},
|
|
2775
2791
|
encode(state, m) {
|
|
2776
2792
|
const flags =
|
|
@@ -2779,7 +2795,8 @@ const encoding59 = {
|
|
|
2779
2795
|
(m.installedModelNames ? 4 : 0) |
|
|
2780
2796
|
(m.cachedModelNames ? 8 : 0) |
|
|
2781
2797
|
((version >= 3 && m.readySkillNames) ? 16 : 0) |
|
|
2782
|
-
((version >= 4 && m.toolCatalog) ? 32 : 0)
|
|
2798
|
+
((version >= 4 && m.toolCatalog) ? 32 : 0) |
|
|
2799
|
+
((version >= 17 && m.customModels) ? 64 : 0)
|
|
2783
2800
|
|
|
2784
2801
|
c.fixed32.encode(state, m.deviceId)
|
|
2785
2802
|
c.uint.encode(state, flags)
|
|
@@ -2790,6 +2807,7 @@ const encoding59 = {
|
|
|
2790
2807
|
if (m.cachedModelNames) encoding59_4.encode(state, m.cachedModelNames)
|
|
2791
2808
|
if (version >= 3 && m.readySkillNames) encoding59_5.encode(state, m.readySkillNames)
|
|
2792
2809
|
if (version >= 4 && m.toolCatalog) encoding59_6.encode(state, m.toolCatalog)
|
|
2810
|
+
if (version >= 17 && m.customModels) encoding59_7.encode(state, m.customModels)
|
|
2793
2811
|
},
|
|
2794
2812
|
decode(state) {
|
|
2795
2813
|
const r0 = c.fixed32.decode(state)
|
|
@@ -2803,7 +2821,8 @@ const encoding59 = {
|
|
|
2803
2821
|
installedModelNames: (flags & 4) !== 0 ? encoding59_3.decode(state) : null,
|
|
2804
2822
|
cachedModelNames: (flags & 8) !== 0 ? encoding59_4.decode(state) : null,
|
|
2805
2823
|
readySkillNames: (version >= 3 && (flags & 16) !== 0) ? encoding59_5.decode(state) : null,
|
|
2806
|
-
toolCatalog: (version >= 4 && (flags & 32) !== 0) ? encoding59_6.decode(state) : null
|
|
2824
|
+
toolCatalog: (version >= 4 && (flags & 32) !== 0) ? encoding59_6.decode(state) : null,
|
|
2825
|
+
customModels: (version >= 17 && (flags & 64) !== 0) ? encoding59_7.decode(state) : null
|
|
2807
2826
|
}
|
|
2808
2827
|
}
|
|
2809
2828
|
}
|
|
@@ -7109,12 +7128,110 @@ const encoding178 = {
|
|
|
7109
7128
|
}
|
|
7110
7129
|
}
|
|
7111
7130
|
|
|
7131
|
+
// @qvac/custom-model-report-entry
|
|
7132
|
+
const encoding179 = {
|
|
7133
|
+
preencode(state, m) {
|
|
7134
|
+
c.string.preencode(state, m.name)
|
|
7135
|
+
c.string.preencode(state, m.label)
|
|
7136
|
+
state.end++ // max flag is 2 so always one byte
|
|
7137
|
+
|
|
7138
|
+
if (version >= 17 && m.taskType) c.string.preencode(state, m.taskType)
|
|
7139
|
+
if (version >= 17 && m.expectedSize) c.uint.preencode(state, m.expectedSize)
|
|
7140
|
+
},
|
|
7141
|
+
encode(state, m) {
|
|
7142
|
+
const flags =
|
|
7143
|
+
((version >= 17 && m.taskType) ? 1 : 0) | ((version >= 17 && m.expectedSize) ? 2 : 0)
|
|
7144
|
+
|
|
7145
|
+
c.string.encode(state, m.name)
|
|
7146
|
+
c.string.encode(state, m.label)
|
|
7147
|
+
c.uint.encode(state, flags)
|
|
7148
|
+
|
|
7149
|
+
if (version >= 17 && m.taskType) c.string.encode(state, m.taskType)
|
|
7150
|
+
if (version >= 17 && m.expectedSize) c.uint.encode(state, m.expectedSize)
|
|
7151
|
+
},
|
|
7152
|
+
decode(state) {
|
|
7153
|
+
const r0 = c.string.decode(state)
|
|
7154
|
+
const r1 = c.string.decode(state)
|
|
7155
|
+
const flags = c.uint.decode(state)
|
|
7156
|
+
|
|
7157
|
+
return {
|
|
7158
|
+
name: r0,
|
|
7159
|
+
label: r1,
|
|
7160
|
+
taskType: (version >= 17 && (flags & 1) !== 0) ? c.string.decode(state) : null,
|
|
7161
|
+
expectedSize: (version >= 17 && (flags & 2) !== 0) ? c.uint.decode(state) : 0
|
|
7162
|
+
}
|
|
7163
|
+
}
|
|
7164
|
+
}
|
|
7165
|
+
|
|
7166
|
+
// @qvac/reindex-chat-chunks-operation-v1
|
|
7167
|
+
const encoding180 = {
|
|
7168
|
+
preencode(state, m) {
|
|
7169
|
+
c.string.preencode(state, m.chatId)
|
|
7170
|
+
},
|
|
7171
|
+
encode(state, m) {
|
|
7172
|
+
c.string.encode(state, m.chatId)
|
|
7173
|
+
},
|
|
7174
|
+
decode(state) {
|
|
7175
|
+
const r0 = c.string.decode(state)
|
|
7176
|
+
|
|
7177
|
+
return {
|
|
7178
|
+
version: 0,
|
|
7179
|
+
chatId: r0
|
|
7180
|
+
}
|
|
7181
|
+
}
|
|
7182
|
+
}
|
|
7183
|
+
|
|
7184
|
+
// @qvac/reindex-chat-chunks-operation
|
|
7185
|
+
const encoding181 = {
|
|
7186
|
+
preencode(state, m) {
|
|
7187
|
+
const v = m.version ?? 1
|
|
7188
|
+
c.uint.preencode(state, v)
|
|
7189
|
+
switch (v) {
|
|
7190
|
+
case 0:
|
|
7191
|
+
case 1:
|
|
7192
|
+
encoding180.preencode(state, m)
|
|
7193
|
+
break
|
|
7194
|
+
default:
|
|
7195
|
+
throw new Error('Unsupported version')
|
|
7196
|
+
}
|
|
7197
|
+
},
|
|
7198
|
+
encode(state, m) {
|
|
7199
|
+
const v = m.version ?? 1
|
|
7200
|
+
c.uint.encode(state, v)
|
|
7201
|
+
switch (v) {
|
|
7202
|
+
case 0:
|
|
7203
|
+
case 1:
|
|
7204
|
+
encoding180.encode(state, m)
|
|
7205
|
+
break
|
|
7206
|
+
default:
|
|
7207
|
+
throw new Error('Unsupported version')
|
|
7208
|
+
}
|
|
7209
|
+
},
|
|
7210
|
+
decode(state) {
|
|
7211
|
+
const v = c.uint.decode(state)
|
|
7212
|
+
switch (v) {
|
|
7213
|
+
case 0:
|
|
7214
|
+
case 1: {
|
|
7215
|
+
const decoded = encoding180.decode(state)
|
|
7216
|
+
decoded.version = v
|
|
7217
|
+
return decoded
|
|
7218
|
+
}
|
|
7219
|
+
default:
|
|
7220
|
+
throw new Error('Unsupported version')
|
|
7221
|
+
}
|
|
7222
|
+
}
|
|
7223
|
+
}
|
|
7224
|
+
|
|
7112
7225
|
// @qvac/chat-v1.forkedFrom, deferred due to recusive use
|
|
7113
7226
|
const encoding45_12 = c.frame(encoding178)
|
|
7114
7227
|
// @qvac/device-v1.toolCatalog, deferred due to recusive use
|
|
7115
7228
|
const encoding47_18 = c.array(c.frame(encoding112))
|
|
7229
|
+
// @qvac/device-v1.customModels, deferred due to recusive use
|
|
7230
|
+
const encoding47_25 = c.array(c.frame(encoding179))
|
|
7116
7231
|
// @qvac/report-device-capabilities-operation-v1.toolCatalog, deferred due to recusive use
|
|
7117
7232
|
const encoding59_6 = encoding47_18
|
|
7233
|
+
// @qvac/report-device-capabilities-operation-v1.customModels, deferred due to recusive use
|
|
7234
|
+
const encoding59_7 = encoding47_25
|
|
7118
7235
|
|
|
7119
7236
|
function setVersion(v) {
|
|
7120
7237
|
version = v
|
|
@@ -7531,6 +7648,12 @@ function getEncoding(name) {
|
|
|
7531
7648
|
return encoding177
|
|
7532
7649
|
case '@qvac/chat-fork-source':
|
|
7533
7650
|
return encoding178
|
|
7651
|
+
case '@qvac/custom-model-report-entry':
|
|
7652
|
+
return encoding179
|
|
7653
|
+
case '@qvac/reindex-chat-chunks-operation-v1':
|
|
7654
|
+
return encoding180
|
|
7655
|
+
case '@qvac/reindex-chat-chunks-operation':
|
|
7656
|
+
return encoding181
|
|
7534
7657
|
default:
|
|
7535
7658
|
throw new Error('Encoder not found ' + name)
|
|
7536
7659
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version":
|
|
2
|
+
"version": 18,
|
|
3
3
|
"schema": [
|
|
4
4
|
{
|
|
5
5
|
"name": "chunk-type",
|
|
@@ -748,6 +748,11 @@
|
|
|
748
748
|
"name": "sourceId",
|
|
749
749
|
"type": "string",
|
|
750
750
|
"version": 16
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"name": "falsyResult",
|
|
754
|
+
"type": "string",
|
|
755
|
+
"version": 18
|
|
751
756
|
}
|
|
752
757
|
]
|
|
753
758
|
},
|
|
@@ -945,6 +950,11 @@
|
|
|
945
950
|
"name": "sourceId",
|
|
946
951
|
"type": "string",
|
|
947
952
|
"version": 16
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"name": "falsyResult",
|
|
956
|
+
"type": "string",
|
|
957
|
+
"version": 18
|
|
948
958
|
}
|
|
949
959
|
]
|
|
950
960
|
},
|
|
@@ -1584,6 +1594,12 @@
|
|
|
1584
1594
|
"name": "deviceSignature",
|
|
1585
1595
|
"type": "buffer",
|
|
1586
1596
|
"version": 7
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
"name": "customModels",
|
|
1600
|
+
"array": true,
|
|
1601
|
+
"type": "@qvac/custom-model-report-entry",
|
|
1602
|
+
"version": 17
|
|
1587
1603
|
}
|
|
1588
1604
|
]
|
|
1589
1605
|
},
|
|
@@ -1821,6 +1837,12 @@
|
|
|
1821
1837
|
"array": true,
|
|
1822
1838
|
"type": "@qvac/tool-report-entry",
|
|
1823
1839
|
"version": 4
|
|
1840
|
+
},
|
|
1841
|
+
{
|
|
1842
|
+
"name": "customModels",
|
|
1843
|
+
"array": true,
|
|
1844
|
+
"type": "@qvac/custom-model-report-entry",
|
|
1845
|
+
"version": 17
|
|
1824
1846
|
}
|
|
1825
1847
|
]
|
|
1826
1848
|
},
|
|
@@ -4293,6 +4315,62 @@
|
|
|
4293
4315
|
"version": 15
|
|
4294
4316
|
}
|
|
4295
4317
|
]
|
|
4318
|
+
},
|
|
4319
|
+
{
|
|
4320
|
+
"name": "custom-model-report-entry",
|
|
4321
|
+
"namespace": "qvac",
|
|
4322
|
+
"compact": false,
|
|
4323
|
+
"flagsPosition": 2,
|
|
4324
|
+
"fields": [
|
|
4325
|
+
{
|
|
4326
|
+
"name": "name",
|
|
4327
|
+
"required": true,
|
|
4328
|
+
"type": "string",
|
|
4329
|
+
"version": 17
|
|
4330
|
+
},
|
|
4331
|
+
{
|
|
4332
|
+
"name": "label",
|
|
4333
|
+
"required": true,
|
|
4334
|
+
"type": "string",
|
|
4335
|
+
"version": 17
|
|
4336
|
+
},
|
|
4337
|
+
{
|
|
4338
|
+
"name": "taskType",
|
|
4339
|
+
"type": "string",
|
|
4340
|
+
"version": 17
|
|
4341
|
+
},
|
|
4342
|
+
{
|
|
4343
|
+
"name": "expectedSize",
|
|
4344
|
+
"type": "uint",
|
|
4345
|
+
"version": 17
|
|
4346
|
+
}
|
|
4347
|
+
]
|
|
4348
|
+
},
|
|
4349
|
+
{
|
|
4350
|
+
"name": "reindex-chat-chunks-operation-v1",
|
|
4351
|
+
"namespace": "qvac",
|
|
4352
|
+
"compact": false,
|
|
4353
|
+
"flagsPosition": -1,
|
|
4354
|
+
"fields": [
|
|
4355
|
+
{
|
|
4356
|
+
"name": "chatId",
|
|
4357
|
+
"required": true,
|
|
4358
|
+
"type": "string",
|
|
4359
|
+
"version": 17
|
|
4360
|
+
}
|
|
4361
|
+
]
|
|
4362
|
+
},
|
|
4363
|
+
{
|
|
4364
|
+
"name": "reindex-chat-chunks-operation",
|
|
4365
|
+
"namespace": "qvac",
|
|
4366
|
+
"framed": false,
|
|
4367
|
+
"versions": [
|
|
4368
|
+
{
|
|
4369
|
+
"type": "@qvac/reindex-chat-chunks-operation-v1",
|
|
4370
|
+
"map": null,
|
|
4371
|
+
"version": 1
|
|
4372
|
+
}
|
|
4373
|
+
]
|
|
4296
4374
|
}
|
|
4297
4375
|
]
|
|
4298
4376
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is autogenerated by hyperschema-ts
|
|
2
|
-
// Schema version:
|
|
2
|
+
// Schema version: 18
|
|
3
3
|
// Do not edit manually.
|
|
4
4
|
|
|
5
5
|
export type QvacChunkType = "user-message" | "content" | "thinking" | "tool-call" | "tool-result" | "attachment" | "approval-request" | "run-status" | "run-request" | "sources" | "compaction"
|
|
@@ -141,6 +141,7 @@ export interface QvacChunkV1 {
|
|
|
141
141
|
capabilityArgs?: unknown | null
|
|
142
142
|
enhance?: QvacEnhanceMode | null
|
|
143
143
|
sourceId?: string | null
|
|
144
|
+
falsyResult?: string | null
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
export type QvacChunk = (QvacChunkV1 & { version?: number })
|
|
@@ -181,6 +182,7 @@ export interface QvacAppendChunkOperationV1 {
|
|
|
181
182
|
capabilityArgs?: unknown | null
|
|
182
183
|
enhance?: QvacEnhanceMode | null
|
|
183
184
|
sourceId?: string | null
|
|
185
|
+
falsyResult?: string | null
|
|
184
186
|
}
|
|
185
187
|
|
|
186
188
|
export type QvacAppendChunkOperation = (QvacAppendChunkOperationV1 & { version?: number })
|
|
@@ -289,6 +291,7 @@ export interface QvacDeviceV1 {
|
|
|
289
291
|
claimedMemberId?: Buffer | null
|
|
290
292
|
inviteToken?: Buffer | null
|
|
291
293
|
deviceSignature?: Buffer | null
|
|
294
|
+
customModels?: QvacCustomModelReportEntry[] | null
|
|
292
295
|
}
|
|
293
296
|
|
|
294
297
|
export type QvacDevice = (QvacDeviceV1 & { version?: number })
|
|
@@ -340,6 +343,7 @@ export interface QvacReportDeviceCapabilitiesOperationV1 {
|
|
|
340
343
|
cachedModelNames?: string[] | null
|
|
341
344
|
readySkillNames?: string[] | null
|
|
342
345
|
toolCatalog?: QvacToolReportEntry[] | null
|
|
346
|
+
customModels?: QvacCustomModelReportEntry[] | null
|
|
343
347
|
}
|
|
344
348
|
|
|
345
349
|
export type QvacReportDeviceCapabilitiesOperation = (QvacReportDeviceCapabilitiesOperationV1 & { version?: number })
|
|
@@ -853,6 +857,19 @@ export interface QvacChatForkSource {
|
|
|
853
857
|
runId?: string | null
|
|
854
858
|
}
|
|
855
859
|
|
|
860
|
+
export interface QvacCustomModelReportEntry {
|
|
861
|
+
name: string
|
|
862
|
+
label: string
|
|
863
|
+
taskType?: string | null
|
|
864
|
+
expectedSize?: number
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
export interface QvacReindexChatChunksOperationV1 {
|
|
868
|
+
chatId: string
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
export type QvacReindexChatChunksOperation = (QvacReindexChatChunksOperationV1 & { version?: number })
|
|
872
|
+
|
|
856
873
|
export interface SchemaTypes {
|
|
857
874
|
"@qvac/chunk-type": QvacChunkType
|
|
858
875
|
"@qvac/run-state": QvacRunState
|
|
@@ -1033,4 +1050,7 @@ export interface SchemaTypes {
|
|
|
1033
1050
|
"@qvac/mesh-seed-v1": QvacMeshSeedV1
|
|
1034
1051
|
"@qvac/mesh-seed": QvacMeshSeed
|
|
1035
1052
|
"@qvac/chat-fork-source": QvacChatForkSource
|
|
1053
|
+
"@qvac/custom-model-report-entry": QvacCustomModelReportEntry
|
|
1054
|
+
"@qvac/reindex-chat-chunks-operation-v1": QvacReindexChatChunksOperationV1
|
|
1055
|
+
"@qvac/reindex-chat-chunks-operation": QvacReindexChatChunksOperation
|
|
1036
1056
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qvac/core",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Peer-to-peer AI across your devices",
|
|
6
6
|
"engines": {
|
|
@@ -139,6 +139,9 @@
|
|
|
139
139
|
"scripts": {
|
|
140
140
|
"build:splash": "node tui/build-splash.mjs",
|
|
141
141
|
"build:schema": "bare schema/build.ts",
|
|
142
|
+
"bench:chat-speed": "QVAC_TEST_MODELS=1 QVAC_TEST=1 QVAC_NO_SKILL_BIN_PROBE=1 bare bench/chat-speed/bench.ts",
|
|
143
|
+
"bench:chat-speed:report": "node --experimental-strip-types bench/chat-speed/report.ts",
|
|
144
|
+
"bench:chat-speed:test": "node --experimental-strip-types bench/chat-speed/test/metrics.ts && node --experimental-strip-types bench/chat-speed/test/report.ts",
|
|
142
145
|
"bench:rag": "node --experimental-strip-types bench/rag/cli.ts",
|
|
143
146
|
"bench:rag:database": "node --experimental-strip-types bench/rag/database/cli.ts",
|
|
144
147
|
"bench:rag:pilot": "node --experimental-strip-types bench/rag/pilot.ts",
|
|
@@ -163,6 +166,7 @@
|
|
|
163
166
|
"mesh-pair-and-migrate": "bare examples/mesh-pair-and-migrate.mjs",
|
|
164
167
|
"mesh-scoped-catalog": "bare examples/mesh-scoped-catalog.mjs",
|
|
165
168
|
"mesh-peer": "bare examples/mesh-peer.mjs",
|
|
169
|
+
"device-tree": "bare examples/device-tree.mjs",
|
|
166
170
|
"mesh-member-admin": "bare examples/mesh-member-admin.mjs",
|
|
167
171
|
"mesh-lab": "bare examples/mesh-lab.mjs",
|
|
168
172
|
"chat-read-marker": "bare examples/chat-read-marker.mjs",
|
|
@@ -171,8 +175,8 @@
|
|
|
171
175
|
"custom-models": "bare examples/custom-models.mjs",
|
|
172
176
|
"mesh-recover-account": "bare examples/mesh-recover-account.mjs",
|
|
173
177
|
"mesh-user-names": "bare examples/mesh-user-names.mjs",
|
|
174
|
-
"test": "npm run test:bare && npm run bench:rag:test",
|
|
175
|
-
"test:bare": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 brittle-jobs -j 2 --
|
|
178
|
+
"test": "npm run test:bare && npm run bench:rag:test && npm run bench:chat-speed:test",
|
|
179
|
+
"test:bare": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 brittle-jobs -j 2 --timeout 180000 'test/*.ts' 'test/{api,app,basic,host,rag}/**/*.ts' 'test/tui/**/!(helpers).ts'",
|
|
176
180
|
"test:model": "QVAC_TEST_MODELS=1 npm run test:bare",
|
|
177
181
|
"format": "prettier . --write",
|
|
178
182
|
"lint": "prettier . --check && lunte && tsc --noEmit",
|
|
@@ -241,7 +245,7 @@
|
|
|
241
245
|
},
|
|
242
246
|
"dependencies": {
|
|
243
247
|
"@qvac/error": "^0.2.0",
|
|
244
|
-
"@qvac/harness": "^0.8.
|
|
248
|
+
"@qvac/harness": "^0.8.14",
|
|
245
249
|
"@qvac/logging": "^0.2.0",
|
|
246
250
|
"@qvac/skills": "^0.1.18",
|
|
247
251
|
"asenion": "^0.1.0",
|
|
@@ -283,10 +287,10 @@
|
|
|
283
287
|
"hrpc": "^4.3.0",
|
|
284
288
|
"hyperblobs": "^2.12.1",
|
|
285
289
|
"hyperconf": "^1.0.3",
|
|
286
|
-
"hypercore-blob-server": "^1.
|
|
290
|
+
"hypercore-blob-server": "^1.15.1",
|
|
287
291
|
"hypercore-crypto": "^3.7.0",
|
|
288
292
|
"hypercore-id-encoding": "^1.3.0",
|
|
289
|
-
"hypercore-storage": "^3.
|
|
293
|
+
"hypercore-storage": "^3.4.0",
|
|
290
294
|
"hyperdb": "^6.9.0",
|
|
291
295
|
"hyperdispatch": "^1.6.0",
|
|
292
296
|
"hyperdrive": "^13.3.3",
|
|
@@ -299,7 +303,7 @@
|
|
|
299
303
|
"protomux": "^3.11.0",
|
|
300
304
|
"protomux-wakeup": "^2.9.0",
|
|
301
305
|
"rache": "^1.0.0",
|
|
302
|
-
"rag-extract": "^0.
|
|
306
|
+
"rag-extract": "^0.2.1",
|
|
303
307
|
"ready-guard": "^1.0.0",
|
|
304
308
|
"ready-resource": "^1.2.0",
|
|
305
309
|
"rocksdb-native": "^3.17.4",
|
|
@@ -312,6 +316,7 @@
|
|
|
312
316
|
"zod": "^4.3.6"
|
|
313
317
|
},
|
|
314
318
|
"devDependencies": {
|
|
319
|
+
"@qvac/core-previous": "npm:@qvac/core@0.10.3",
|
|
315
320
|
"@types/node": "^26.4.0",
|
|
316
321
|
"bare-bundle": "^1.10.0",
|
|
317
322
|
"bare-module-lexer": "^1.6.3",
|
|
@@ -344,7 +349,6 @@
|
|
|
344
349
|
},
|
|
345
350
|
"homepage": "https://github.com/tetherto/qvac-core",
|
|
346
351
|
"patchedDependencies": {
|
|
347
|
-
"hypercore-blob-server@1.15.0": "patches/hypercore-blob-server@1.15.0.patch",
|
|
348
352
|
"pyodide@314.0.2": "patches/pyodide@314.0.2.patch",
|
|
349
353
|
"localwatch@1.4.3": "patches/localwatch@1.4.3.patch",
|
|
350
354
|
"bare-stow@0.1.5": "patches/bare-stow@0.1.5.patch",
|
|
@@ -362,7 +366,7 @@
|
|
|
362
366
|
"lodash": "4.18.1",
|
|
363
367
|
"hyperschema": "1.26.2",
|
|
364
368
|
"hyperdb": "^6.9.0",
|
|
365
|
-
"hypercore": "^11.
|
|
369
|
+
"hypercore": "^11.39.0",
|
|
366
370
|
"hyperbee2": "^2.18.0",
|
|
367
371
|
"tar": "^7.5.22",
|
|
368
372
|
"bare-tls": "^3.1.13"
|