@qvac/core 0.11.1 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +88 -1
- package/README.md +19 -16
- package/dist-lib/lib/api/chunks.js +4 -2
- package/dist-lib/lib/api/rag.js +7 -5
- package/dist-lib/lib/assistant/history.d.ts +1 -0
- package/dist-lib/lib/assistant/history.js +1 -17
- package/dist-lib/lib/assistant/message.d.ts +4 -1
- package/dist-lib/lib/assistant/pdf-budget.d.ts +10 -2
- package/dist-lib/lib/assistant/pdf-budget.js +10 -11
- package/dist-lib/lib/assistant/pdf-pages.d.ts +18 -0
- package/dist-lib/lib/assistant/pdf-pages.js +75 -0
- package/dist-lib/lib/assistant-tree.d.ts +2 -0
- package/dist-lib/lib/assistant-tree.js +4 -2
- package/dist-lib/lib/assistant.d.ts +10 -6
- package/dist-lib/lib/assistant.js +205 -140
- 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/chat-activity.js +12 -15
- package/dist-lib/lib/core/chunk.d.ts +9 -1
- package/dist-lib/lib/core/chunk.js +42 -8
- package/dist-lib/lib/core/document-attachment.d.ts +6 -3
- package/dist-lib/lib/core/document-attachment.js +10 -5
- 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 +3 -0
- 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/notification.js +16 -13
- package/dist-lib/lib/core/pdf/figure.d.ts +22 -0
- package/dist-lib/lib/core/pdf/figure.js +64 -0
- package/dist-lib/lib/core/pdf/rasterize.d.ts +10 -1
- package/dist-lib/lib/core/pdf/rasterize.js +72 -22
- package/dist-lib/lib/core.d.ts +6 -0
- package/dist-lib/lib/core.js +5 -0
- package/dist-lib/lib/credential-pusher.d.ts +11 -7
- package/dist-lib/lib/credential-pusher.js +40 -8
- 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/qvac.js +4 -2
- package/dist-lib/spec/hrpc/messages.js +4 -10
- package/dist-lib/spec/hyperschema/index.js +4 -10
- package/dist-lib/spec/hyperschema/schema.json +2 -1
- package/dist-lib/spec/hyperschema/types.d.ts +1 -1
- package/dist-lib/spec/mesh/hyperdb/messages.js +34 -14
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +18 -8
- package/dist-lib/spec/mesh/hyperschema/index.js +18 -8
- package/dist-lib/spec/mesh/hyperschema/schema.json +11 -1
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +3 -1
- package/package.json +6 -3
- 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
|
}
|
|
@@ -7238,7 +7248,8 @@ const encoding182 = {
|
|
|
7238
7248
|
((version >= 10 && m.capability) ? 524288 : 0) |
|
|
7239
7249
|
((version >= 10 && m.capabilityArgs) ? 1048576 : 0) |
|
|
7240
7250
|
((version >= 10 && m.enhance) ? 2097152 : 0) |
|
|
7241
|
-
((version >= 16 && m.sourceId) ? 4194304 : 0)
|
|
7251
|
+
((version >= 16 && m.sourceId) ? 4194304 : 0) |
|
|
7252
|
+
((version >= 18 && m.falsyResult) ? 8388608 : 0)
|
|
7242
7253
|
|
|
7243
7254
|
c.string.preencode(state, m.chatId)
|
|
7244
7255
|
c.uint.preencode(state, flags)
|
|
@@ -7270,6 +7281,7 @@ const encoding182 = {
|
|
|
7270
7281
|
if (version >= 10 && m.capabilityArgs) c.json.preencode(state, m.capabilityArgs)
|
|
7271
7282
|
if (version >= 10 && m.enhance) encoding141.preencode(state, m.enhance)
|
|
7272
7283
|
if (version >= 16 && m.sourceId) c.string.preencode(state, m.sourceId)
|
|
7284
|
+
if (version >= 18 && m.falsyResult) c.string.preencode(state, m.falsyResult)
|
|
7273
7285
|
},
|
|
7274
7286
|
encode(state, m) {
|
|
7275
7287
|
const flags =
|
|
@@ -7295,7 +7307,8 @@ const encoding182 = {
|
|
|
7295
7307
|
((version >= 10 && m.capability) ? 524288 : 0) |
|
|
7296
7308
|
((version >= 10 && m.capabilityArgs) ? 1048576 : 0) |
|
|
7297
7309
|
((version >= 10 && m.enhance) ? 2097152 : 0) |
|
|
7298
|
-
((version >= 16 && m.sourceId) ? 4194304 : 0)
|
|
7310
|
+
((version >= 16 && m.sourceId) ? 4194304 : 0) |
|
|
7311
|
+
((version >= 18 && m.falsyResult) ? 8388608 : 0)
|
|
7299
7312
|
|
|
7300
7313
|
c.string.encode(state, m.chatId)
|
|
7301
7314
|
c.uint.encode(state, flags)
|
|
@@ -7327,6 +7340,7 @@ const encoding182 = {
|
|
|
7327
7340
|
if (version >= 10 && m.capabilityArgs) c.json.encode(state, m.capabilityArgs)
|
|
7328
7341
|
if (version >= 10 && m.enhance) encoding141.encode(state, m.enhance)
|
|
7329
7342
|
if (version >= 16 && m.sourceId) c.string.encode(state, m.sourceId)
|
|
7343
|
+
if (version >= 18 && m.falsyResult) c.string.encode(state, m.falsyResult)
|
|
7330
7344
|
},
|
|
7331
7345
|
decode(state) {
|
|
7332
7346
|
const r1 = c.string.decode(state)
|
|
@@ -7362,7 +7376,8 @@ const encoding182 = {
|
|
|
7362
7376
|
capability: (version >= 10 && (flags & 524288) !== 0) ? c.string.decode(state) : null,
|
|
7363
7377
|
capabilityArgs: (version >= 10 && (flags & 1048576) !== 0) ? c.json.decode(state) : null,
|
|
7364
7378
|
enhance: (version >= 10 && (flags & 2097152) !== 0) ? encoding141.decode(state) : null,
|
|
7365
|
-
sourceId: (version >= 16 && (flags & 4194304) !== 0) ? c.string.decode(state) : null
|
|
7379
|
+
sourceId: (version >= 16 && (flags & 4194304) !== 0) ? c.string.decode(state) : null,
|
|
7380
|
+
falsyResult: (version >= 18 && (flags & 8388608) !== 0) ? c.string.decode(state) : null
|
|
7366
7381
|
}
|
|
7367
7382
|
}
|
|
7368
7383
|
}
|
|
@@ -9725,7 +9740,8 @@ const encoding238 = {
|
|
|
9725
9740
|
((version >= 10 && m.capability) ? 524288 : 0) |
|
|
9726
9741
|
((version >= 10 && m.capabilityArgs) ? 1048576 : 0) |
|
|
9727
9742
|
((version >= 10 && m.enhance) ? 2097152 : 0) |
|
|
9728
|
-
((version >= 16 && m.sourceId) ? 4194304 : 0)
|
|
9743
|
+
((version >= 16 && m.sourceId) ? 4194304 : 0) |
|
|
9744
|
+
((version >= 18 && m.falsyResult) ? 8388608 : 0)
|
|
9729
9745
|
|
|
9730
9746
|
c.string.preencode(state, m.id)
|
|
9731
9747
|
c.uint.preencode(state, flags)
|
|
@@ -9756,6 +9772,7 @@ const encoding238 = {
|
|
|
9756
9772
|
if (version >= 10 && m.capabilityArgs) c.json.preencode(state, m.capabilityArgs)
|
|
9757
9773
|
if (version >= 10 && m.enhance) encoding141.preencode(state, m.enhance)
|
|
9758
9774
|
if (version >= 16 && m.sourceId) c.string.preencode(state, m.sourceId)
|
|
9775
|
+
if (version >= 18 && m.falsyResult) c.string.preencode(state, m.falsyResult)
|
|
9759
9776
|
},
|
|
9760
9777
|
encode(state, m) {
|
|
9761
9778
|
const flags =
|
|
@@ -9781,7 +9798,8 @@ const encoding238 = {
|
|
|
9781
9798
|
((version >= 10 && m.capability) ? 524288 : 0) |
|
|
9782
9799
|
((version >= 10 && m.capabilityArgs) ? 1048576 : 0) |
|
|
9783
9800
|
((version >= 10 && m.enhance) ? 2097152 : 0) |
|
|
9784
|
-
((version >= 16 && m.sourceId) ? 4194304 : 0)
|
|
9801
|
+
((version >= 16 && m.sourceId) ? 4194304 : 0) |
|
|
9802
|
+
((version >= 18 && m.falsyResult) ? 8388608 : 0)
|
|
9785
9803
|
|
|
9786
9804
|
c.string.encode(state, m.id)
|
|
9787
9805
|
c.uint.encode(state, flags)
|
|
@@ -9812,6 +9830,7 @@ const encoding238 = {
|
|
|
9812
9830
|
if (version >= 10 && m.capabilityArgs) c.json.encode(state, m.capabilityArgs)
|
|
9813
9831
|
if (version >= 10 && m.enhance) encoding141.encode(state, m.enhance)
|
|
9814
9832
|
if (version >= 16 && m.sourceId) c.string.encode(state, m.sourceId)
|
|
9833
|
+
if (version >= 18 && m.falsyResult) c.string.encode(state, m.falsyResult)
|
|
9815
9834
|
},
|
|
9816
9835
|
decode(state) {
|
|
9817
9836
|
const r0 = c.string.decode(state)
|
|
@@ -9847,7 +9866,8 @@ const encoding238 = {
|
|
|
9847
9866
|
capability: (version >= 10 && (flags & 524288) !== 0) ? c.string.decode(state) : null,
|
|
9848
9867
|
capabilityArgs: (version >= 10 && (flags & 1048576) !== 0) ? c.json.decode(state) : null,
|
|
9849
9868
|
enhance: (version >= 10 && (flags & 2097152) !== 0) ? encoding141.decode(state) : null,
|
|
9850
|
-
sourceId: (version >= 16 && (flags & 4194304) !== 0) ? c.string.decode(state) : null
|
|
9869
|
+
sourceId: (version >= 16 && (flags & 4194304) !== 0) ? c.string.decode(state) : null,
|
|
9870
|
+
falsyResult: (version >= 18 && (flags & 8388608) !== 0) ? c.string.decode(state) : null
|
|
9851
9871
|
}
|
|
9852
9872
|
}
|
|
9853
9873
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
},
|
|
@@ -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 })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qvac/core",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
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",
|
|
@@ -172,7 +175,7 @@
|
|
|
172
175
|
"custom-models": "bare examples/custom-models.mjs",
|
|
173
176
|
"mesh-recover-account": "bare examples/mesh-recover-account.mjs",
|
|
174
177
|
"mesh-user-names": "bare examples/mesh-user-names.mjs",
|
|
175
|
-
"test": "npm run test:bare && npm run bench:rag:test",
|
|
178
|
+
"test": "npm run test:bare && npm run bench:rag:test && npm run bench:chat-speed:test",
|
|
176
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'",
|
|
177
180
|
"test:model": "QVAC_TEST_MODELS=1 npm run test:bare",
|
|
178
181
|
"format": "prettier . --write",
|
|
@@ -263,7 +266,7 @@
|
|
|
263
266
|
"bare-module": "~7.4.0",
|
|
264
267
|
"bare-os": "^3.9.1",
|
|
265
268
|
"bare-path": "^3.0.1",
|
|
266
|
-
"bare-pdfium": "^1.
|
|
269
|
+
"bare-pdfium": "^1.8.0",
|
|
267
270
|
"bare-pipe": "^4.2.2",
|
|
268
271
|
"bare-process": "^4.5.1",
|
|
269
272
|
"bare-rpc": "^1.3.7",
|