@qvac/core 1.0.0-rc.12 → 1.0.0-rc.13
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 +19 -1
- package/dist-lib/lib/assistant.js +2 -1
- package/dist-lib/lib/core/archived-mesh.js +7 -3
- package/dist-lib/lib/core/chat-copy.d.ts +18 -3
- package/dist-lib/lib/core/chat-copy.js +73 -23
- package/dist-lib/lib/core/chat-group.js +14 -9
- package/dist-lib/lib/core/chat-move.d.ts +9 -0
- package/dist-lib/lib/core/chat-move.js +94 -3
- package/dist-lib/lib/core/chat.js +21 -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/activity.js +2 -2
- package/dist-lib/lib/core/contract/chat-group.d.ts +1 -0
- package/dist-lib/lib/core/contract/chat-group.js +21 -1
- package/dist-lib/lib/core/contract/chat.d.ts +9 -0
- package/dist-lib/lib/core/contract/chat.js +127 -5
- package/dist-lib/lib/core/contract/chunks.d.ts +1 -0
- package/dist-lib/lib/core/contract/chunks.js +37 -6
- package/dist-lib/lib/core/contract/features.d.ts +21 -0
- package/dist-lib/lib/core/contract/features.js +22 -0
- package/dist-lib/lib/core/contract/indexing.js +4 -2
- package/dist-lib/lib/core/contract/knowledge.js +5 -4
- package/dist-lib/lib/core/contract/members.js +2 -2
- package/dist-lib/lib/core/contract/projects.d.ts +5 -0
- package/dist-lib/lib/core/contract/projects.js +12 -4
- package/dist-lib/lib/core/contract/roles.js +30 -4
- package/dist-lib/lib/core/contract/run-requests.js +2 -2
- package/dist-lib/lib/core/contract/seed-defaults.js +2 -2
- package/dist-lib/lib/core/contract/tool-configs.js +3 -2
- package/dist-lib/lib/core/contract/workspace.d.ts +2 -0
- package/dist-lib/lib/core/contract/workspace.js +40 -7
- package/dist-lib/lib/core/contract/writers.js +2 -2
- package/dist-lib/lib/core/files/attachments.js +4 -1
- package/dist-lib/lib/core/local/index.d.ts +6 -2
- package/dist-lib/lib/core/local/index.js +12 -3
- package/dist-lib/lib/core/mesh.d.ts +5 -0
- package/dist-lib/lib/core/mesh.js +3 -0
- package/dist-lib/lib/core/migrations/workspace-from-0-21/index.d.ts +85 -0
- package/dist-lib/lib/core/migrations/workspace-from-0-21/index.js +690 -0
- package/dist-lib/lib/core/project-keys.d.ts +6 -0
- package/dist-lib/lib/core/project-keys.js +11 -0
- package/dist-lib/lib/core/public-mesh.d.ts +2 -0
- package/dist-lib/lib/core/public-mesh.js +5 -0
- package/dist-lib/lib/core/sync/changed.d.ts +4 -2
- package/dist-lib/lib/core/sync/changed.js +1 -1
- package/dist-lib/lib/core/sync/index.js +27 -2
- package/dist-lib/lib/core/workspace-upgrade.d.ts +6 -0
- package/dist-lib/lib/core/workspace-upgrade.js +26 -16
- package/dist-lib/lib/core.d.ts +4 -32
- package/dist-lib/lib/core.js +117 -469
- package/dist-lib/lib/run-transcript.d.ts +2 -1
- package/dist-lib/lib/run-transcript.js +11 -5
- package/dist-lib/schema/qvac.js +26 -1
- package/dist-lib/spec/mesh/hyperdb/db.json +15 -0
- package/dist-lib/spec/mesh/hyperdb/index.js +70 -1
- package/dist-lib/spec/mesh/hyperdb/messages.js +806 -438
- package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +18 -0
- package/dist-lib/spec/mesh/hyperdispatch/index.js +52 -1
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +303 -3
- package/dist-lib/spec/mesh/hyperschema/index.js +303 -3
- package/dist-lib/spec/mesh/hyperschema/schema.json +146 -0
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +39 -0
- package/package.json +6 -4
|
@@ -8311,20 +8311,25 @@ const encoding203 = {
|
|
|
8311
8311
|
|
|
8312
8312
|
// @qvac/workspace-v1.upgradeMemberIds
|
|
8313
8313
|
const encoding204_3 = encoding73_4
|
|
8314
|
+
// @qvac/workspace-v1.upgradeWriterKeys
|
|
8315
|
+
const encoding204_4 = encoding73_4
|
|
8314
8316
|
|
|
8315
8317
|
// @qvac/workspace-v1
|
|
8316
8318
|
const encoding204 = {
|
|
8317
8319
|
preencode(state, m) {
|
|
8318
8320
|
c.string.preencode(state, m.id)
|
|
8319
|
-
state.end++ // max flag is
|
|
8321
|
+
state.end++ // max flag is 4 so always one byte
|
|
8320
8322
|
|
|
8321
8323
|
if (version >= 19 && m.icon) c.string.preencode(state, m.icon)
|
|
8322
8324
|
c.uint.preencode(state, m.updatedAt)
|
|
8323
8325
|
if (version >= 19 && m.upgradeMemberIds) encoding204_3.preencode(state, m.upgradeMemberIds)
|
|
8326
|
+
if (version >= 19 && m.upgradeWriterKeys) encoding204_4.preencode(state, m.upgradeWriterKeys)
|
|
8324
8327
|
},
|
|
8325
8328
|
encode(state, m) {
|
|
8326
8329
|
const flags =
|
|
8327
|
-
((version >= 19 && m.icon) ? 1 : 0) |
|
|
8330
|
+
((version >= 19 && m.icon) ? 1 : 0) |
|
|
8331
|
+
((version >= 19 && m.upgradeMemberIds) ? 2 : 0) |
|
|
8332
|
+
((version >= 19 && m.upgradeWriterKeys) ? 4 : 0)
|
|
8328
8333
|
|
|
8329
8334
|
c.string.encode(state, m.id)
|
|
8330
8335
|
c.uint.encode(state, flags)
|
|
@@ -8332,6 +8337,7 @@ const encoding204 = {
|
|
|
8332
8337
|
if (version >= 19 && m.icon) c.string.encode(state, m.icon)
|
|
8333
8338
|
c.uint.encode(state, m.updatedAt)
|
|
8334
8339
|
if (version >= 19 && m.upgradeMemberIds) encoding204_3.encode(state, m.upgradeMemberIds)
|
|
8340
|
+
if (version >= 19 && m.upgradeWriterKeys) encoding204_4.encode(state, m.upgradeWriterKeys)
|
|
8335
8341
|
},
|
|
8336
8342
|
decode(state) {
|
|
8337
8343
|
const r0 = c.string.decode(state)
|
|
@@ -8342,7 +8348,8 @@ const encoding204 = {
|
|
|
8342
8348
|
id: r0,
|
|
8343
8349
|
icon: (version >= 19 && (flags & 1) !== 0) ? c.string.decode(state) : null,
|
|
8344
8350
|
updatedAt: c.uint.decode(state),
|
|
8345
|
-
upgradeMemberIds: (version >= 19 && (flags & 2) !== 0) ? encoding204_3.decode(state) : null
|
|
8351
|
+
upgradeMemberIds: (version >= 19 && (flags & 2) !== 0) ? encoding204_3.decode(state) : null,
|
|
8352
|
+
upgradeWriterKeys: (version >= 19 && (flags & 4) !== 0) ? encoding204_4.decode(state) : null
|
|
8346
8353
|
}
|
|
8347
8354
|
}
|
|
8348
8355
|
}
|
|
@@ -10430,6 +10437,283 @@ const encoding265 = {
|
|
|
10430
10437
|
}
|
|
10431
10438
|
}
|
|
10432
10439
|
|
|
10440
|
+
// @qvac/patch-chat-operation-v1.fields
|
|
10441
|
+
const encoding266_1 = encoding27_43
|
|
10442
|
+
|
|
10443
|
+
// @qvac/patch-chat-operation-v1
|
|
10444
|
+
const encoding266 = {
|
|
10445
|
+
preencode(state, m) {
|
|
10446
|
+
encoding46.preencode(state, m.chat)
|
|
10447
|
+
state.end++ // max flag is 1 so always one byte
|
|
10448
|
+
|
|
10449
|
+
if (version >= 19 && m.fields) encoding266_1.preencode(state, m.fields)
|
|
10450
|
+
},
|
|
10451
|
+
encode(state, m) {
|
|
10452
|
+
const flags = (version >= 19 && m.fields) ? 1 : 0
|
|
10453
|
+
|
|
10454
|
+
encoding46.encode(state, m.chat)
|
|
10455
|
+
c.uint.encode(state, flags)
|
|
10456
|
+
|
|
10457
|
+
if (version >= 19 && m.fields) encoding266_1.encode(state, m.fields)
|
|
10458
|
+
},
|
|
10459
|
+
decode(state) {
|
|
10460
|
+
const r0 = encoding46.decode(state)
|
|
10461
|
+
const flags = c.uint.decode(state)
|
|
10462
|
+
|
|
10463
|
+
return {
|
|
10464
|
+
version: 0,
|
|
10465
|
+
chat: r0,
|
|
10466
|
+
fields: (version >= 19 && (flags & 1) !== 0) ? encoding266_1.decode(state) : null
|
|
10467
|
+
}
|
|
10468
|
+
}
|
|
10469
|
+
}
|
|
10470
|
+
|
|
10471
|
+
// @qvac/patch-chat-operation
|
|
10472
|
+
const encoding267 = {
|
|
10473
|
+
preencode(state, m) {
|
|
10474
|
+
const v = m.version ?? 1
|
|
10475
|
+
c.uint.preencode(state, v)
|
|
10476
|
+
switch (v) {
|
|
10477
|
+
case 0:
|
|
10478
|
+
case 1:
|
|
10479
|
+
encoding266.preencode(state, m)
|
|
10480
|
+
break
|
|
10481
|
+
default:
|
|
10482
|
+
throw new Error('Unsupported version')
|
|
10483
|
+
}
|
|
10484
|
+
},
|
|
10485
|
+
encode(state, m) {
|
|
10486
|
+
const v = m.version ?? 1
|
|
10487
|
+
c.uint.encode(state, v)
|
|
10488
|
+
switch (v) {
|
|
10489
|
+
case 0:
|
|
10490
|
+
case 1:
|
|
10491
|
+
encoding266.encode(state, m)
|
|
10492
|
+
break
|
|
10493
|
+
default:
|
|
10494
|
+
throw new Error('Unsupported version')
|
|
10495
|
+
}
|
|
10496
|
+
},
|
|
10497
|
+
decode(state) {
|
|
10498
|
+
const v = c.uint.decode(state)
|
|
10499
|
+
switch (v) {
|
|
10500
|
+
case 0:
|
|
10501
|
+
case 1: {
|
|
10502
|
+
const decoded = encoding266.decode(state)
|
|
10503
|
+
decoded.version = v
|
|
10504
|
+
return decoded
|
|
10505
|
+
}
|
|
10506
|
+
default:
|
|
10507
|
+
throw new Error('Unsupported version')
|
|
10508
|
+
}
|
|
10509
|
+
}
|
|
10510
|
+
}
|
|
10511
|
+
|
|
10512
|
+
// @qvac/patch-chat-group-operation-v1.fields
|
|
10513
|
+
const encoding268_1 = encoding27_43
|
|
10514
|
+
|
|
10515
|
+
// @qvac/patch-chat-group-operation-v1
|
|
10516
|
+
const encoding268 = {
|
|
10517
|
+
preencode(state, m) {
|
|
10518
|
+
encoding128.preencode(state, m.group)
|
|
10519
|
+
state.end++ // max flag is 1 so always one byte
|
|
10520
|
+
|
|
10521
|
+
if (version >= 19 && m.fields) encoding268_1.preencode(state, m.fields)
|
|
10522
|
+
},
|
|
10523
|
+
encode(state, m) {
|
|
10524
|
+
const flags = (version >= 19 && m.fields) ? 1 : 0
|
|
10525
|
+
|
|
10526
|
+
encoding128.encode(state, m.group)
|
|
10527
|
+
c.uint.encode(state, flags)
|
|
10528
|
+
|
|
10529
|
+
if (version >= 19 && m.fields) encoding268_1.encode(state, m.fields)
|
|
10530
|
+
},
|
|
10531
|
+
decode(state) {
|
|
10532
|
+
const r0 = encoding128.decode(state)
|
|
10533
|
+
const flags = c.uint.decode(state)
|
|
10534
|
+
|
|
10535
|
+
return {
|
|
10536
|
+
version: 0,
|
|
10537
|
+
group: r0,
|
|
10538
|
+
fields: (version >= 19 && (flags & 1) !== 0) ? encoding268_1.decode(state) : null
|
|
10539
|
+
}
|
|
10540
|
+
}
|
|
10541
|
+
}
|
|
10542
|
+
|
|
10543
|
+
// @qvac/patch-chat-group-operation
|
|
10544
|
+
const encoding269 = {
|
|
10545
|
+
preencode(state, m) {
|
|
10546
|
+
const v = m.version ?? 1
|
|
10547
|
+
c.uint.preencode(state, v)
|
|
10548
|
+
switch (v) {
|
|
10549
|
+
case 0:
|
|
10550
|
+
case 1:
|
|
10551
|
+
encoding268.preencode(state, m)
|
|
10552
|
+
break
|
|
10553
|
+
default:
|
|
10554
|
+
throw new Error('Unsupported version')
|
|
10555
|
+
}
|
|
10556
|
+
},
|
|
10557
|
+
encode(state, m) {
|
|
10558
|
+
const v = m.version ?? 1
|
|
10559
|
+
c.uint.encode(state, v)
|
|
10560
|
+
switch (v) {
|
|
10561
|
+
case 0:
|
|
10562
|
+
case 1:
|
|
10563
|
+
encoding268.encode(state, m)
|
|
10564
|
+
break
|
|
10565
|
+
default:
|
|
10566
|
+
throw new Error('Unsupported version')
|
|
10567
|
+
}
|
|
10568
|
+
},
|
|
10569
|
+
decode(state) {
|
|
10570
|
+
const v = c.uint.decode(state)
|
|
10571
|
+
switch (v) {
|
|
10572
|
+
case 0:
|
|
10573
|
+
case 1: {
|
|
10574
|
+
const decoded = encoding268.decode(state)
|
|
10575
|
+
decoded.version = v
|
|
10576
|
+
return decoded
|
|
10577
|
+
}
|
|
10578
|
+
default:
|
|
10579
|
+
throw new Error('Unsupported version')
|
|
10580
|
+
}
|
|
10581
|
+
}
|
|
10582
|
+
}
|
|
10583
|
+
|
|
10584
|
+
// @qvac/moved-out-chat-v1
|
|
10585
|
+
const encoding270 = encoding180
|
|
10586
|
+
|
|
10587
|
+
// @qvac/moved-out-chat
|
|
10588
|
+
const encoding271 = {
|
|
10589
|
+
preencode(state, m) {
|
|
10590
|
+
const v = m.version ?? 1
|
|
10591
|
+
c.uint.preencode(state, v)
|
|
10592
|
+
switch (v) {
|
|
10593
|
+
case 0:
|
|
10594
|
+
case 1:
|
|
10595
|
+
encoding270.preencode(state, m)
|
|
10596
|
+
break
|
|
10597
|
+
default:
|
|
10598
|
+
throw new Error('Unsupported version')
|
|
10599
|
+
}
|
|
10600
|
+
},
|
|
10601
|
+
encode(state, m) {
|
|
10602
|
+
const v = m.version ?? 1
|
|
10603
|
+
c.uint.encode(state, v)
|
|
10604
|
+
switch (v) {
|
|
10605
|
+
case 0:
|
|
10606
|
+
case 1:
|
|
10607
|
+
encoding270.encode(state, m)
|
|
10608
|
+
break
|
|
10609
|
+
default:
|
|
10610
|
+
throw new Error('Unsupported version')
|
|
10611
|
+
}
|
|
10612
|
+
},
|
|
10613
|
+
decode(state) {
|
|
10614
|
+
const v = c.uint.decode(state)
|
|
10615
|
+
switch (v) {
|
|
10616
|
+
case 0:
|
|
10617
|
+
case 1: {
|
|
10618
|
+
const decoded = encoding270.decode(state)
|
|
10619
|
+
decoded.version = v
|
|
10620
|
+
return decoded
|
|
10621
|
+
}
|
|
10622
|
+
default:
|
|
10623
|
+
throw new Error('Unsupported version')
|
|
10624
|
+
}
|
|
10625
|
+
}
|
|
10626
|
+
}
|
|
10627
|
+
|
|
10628
|
+
// @qvac/remove-chat-copy-operation-v1.chunkIds
|
|
10629
|
+
const encoding272_2 = encoding27_43
|
|
10630
|
+
// @qvac/remove-chat-copy-operation-v1.knowledgeIds
|
|
10631
|
+
const encoding272_3 = encoding27_43
|
|
10632
|
+
// @qvac/remove-chat-copy-operation-v1.toolActivityIds
|
|
10633
|
+
const encoding272_4 = encoding27_43
|
|
10634
|
+
|
|
10635
|
+
// @qvac/remove-chat-copy-operation-v1
|
|
10636
|
+
const encoding272 = {
|
|
10637
|
+
preencode(state, m) {
|
|
10638
|
+
c.string.preencode(state, m.chatId)
|
|
10639
|
+
c.uint.preencode(state, m.updatedAt)
|
|
10640
|
+
state.end++ // max flag is 4 so always one byte
|
|
10641
|
+
|
|
10642
|
+
if (version >= 19 && m.chunkIds) encoding272_2.preencode(state, m.chunkIds)
|
|
10643
|
+
if (version >= 19 && m.knowledgeIds) encoding272_3.preencode(state, m.knowledgeIds)
|
|
10644
|
+
if (version >= 19 && m.toolActivityIds) encoding272_4.preencode(state, m.toolActivityIds)
|
|
10645
|
+
},
|
|
10646
|
+
encode(state, m) {
|
|
10647
|
+
const flags =
|
|
10648
|
+
((version >= 19 && m.chunkIds) ? 1 : 0) |
|
|
10649
|
+
((version >= 19 && m.knowledgeIds) ? 2 : 0) |
|
|
10650
|
+
((version >= 19 && m.toolActivityIds) ? 4 : 0)
|
|
10651
|
+
|
|
10652
|
+
c.string.encode(state, m.chatId)
|
|
10653
|
+
c.uint.encode(state, m.updatedAt)
|
|
10654
|
+
c.uint.encode(state, flags)
|
|
10655
|
+
|
|
10656
|
+
if (version >= 19 && m.chunkIds) encoding272_2.encode(state, m.chunkIds)
|
|
10657
|
+
if (version >= 19 && m.knowledgeIds) encoding272_3.encode(state, m.knowledgeIds)
|
|
10658
|
+
if (version >= 19 && m.toolActivityIds) encoding272_4.encode(state, m.toolActivityIds)
|
|
10659
|
+
},
|
|
10660
|
+
decode(state) {
|
|
10661
|
+
const r0 = c.string.decode(state)
|
|
10662
|
+
const r1 = c.uint.decode(state)
|
|
10663
|
+
const flags = c.uint.decode(state)
|
|
10664
|
+
|
|
10665
|
+
return {
|
|
10666
|
+
version: 0,
|
|
10667
|
+
chatId: r0,
|
|
10668
|
+
updatedAt: r1,
|
|
10669
|
+
chunkIds: (version >= 19 && (flags & 1) !== 0) ? encoding272_2.decode(state) : null,
|
|
10670
|
+
knowledgeIds: (version >= 19 && (flags & 2) !== 0) ? encoding272_3.decode(state) : null,
|
|
10671
|
+
toolActivityIds: (version >= 19 && (flags & 4) !== 0) ? encoding272_4.decode(state) : null
|
|
10672
|
+
}
|
|
10673
|
+
}
|
|
10674
|
+
}
|
|
10675
|
+
|
|
10676
|
+
// @qvac/remove-chat-copy-operation
|
|
10677
|
+
const encoding273 = {
|
|
10678
|
+
preencode(state, m) {
|
|
10679
|
+
const v = m.version ?? 1
|
|
10680
|
+
c.uint.preencode(state, v)
|
|
10681
|
+
switch (v) {
|
|
10682
|
+
case 0:
|
|
10683
|
+
case 1:
|
|
10684
|
+
encoding272.preencode(state, m)
|
|
10685
|
+
break
|
|
10686
|
+
default:
|
|
10687
|
+
throw new Error('Unsupported version')
|
|
10688
|
+
}
|
|
10689
|
+
},
|
|
10690
|
+
encode(state, m) {
|
|
10691
|
+
const v = m.version ?? 1
|
|
10692
|
+
c.uint.encode(state, v)
|
|
10693
|
+
switch (v) {
|
|
10694
|
+
case 0:
|
|
10695
|
+
case 1:
|
|
10696
|
+
encoding272.encode(state, m)
|
|
10697
|
+
break
|
|
10698
|
+
default:
|
|
10699
|
+
throw new Error('Unsupported version')
|
|
10700
|
+
}
|
|
10701
|
+
},
|
|
10702
|
+
decode(state) {
|
|
10703
|
+
const v = c.uint.decode(state)
|
|
10704
|
+
switch (v) {
|
|
10705
|
+
case 0:
|
|
10706
|
+
case 1: {
|
|
10707
|
+
const decoded = encoding272.decode(state)
|
|
10708
|
+
decoded.version = v
|
|
10709
|
+
return decoded
|
|
10710
|
+
}
|
|
10711
|
+
default:
|
|
10712
|
+
throw new Error('Unsupported version')
|
|
10713
|
+
}
|
|
10714
|
+
}
|
|
10715
|
+
}
|
|
10716
|
+
|
|
10433
10717
|
// @qvac/chat-v1.forkedFrom, deferred due to recusive use
|
|
10434
10718
|
const encoding45_12 = c.frame(encoding178)
|
|
10435
10719
|
// @qvac/chat-v1.suggestion, deferred due to recusive use
|
|
@@ -11036,6 +11320,22 @@ function getEncoding(name) {
|
|
|
11036
11320
|
return encoding264
|
|
11037
11321
|
case '@qvac/project-device-seal':
|
|
11038
11322
|
return encoding265
|
|
11323
|
+
case '@qvac/patch-chat-operation-v1':
|
|
11324
|
+
return encoding266
|
|
11325
|
+
case '@qvac/patch-chat-operation':
|
|
11326
|
+
return encoding267
|
|
11327
|
+
case '@qvac/patch-chat-group-operation-v1':
|
|
11328
|
+
return encoding268
|
|
11329
|
+
case '@qvac/patch-chat-group-operation':
|
|
11330
|
+
return encoding269
|
|
11331
|
+
case '@qvac/moved-out-chat-v1':
|
|
11332
|
+
return encoding270
|
|
11333
|
+
case '@qvac/moved-out-chat':
|
|
11334
|
+
return encoding271
|
|
11335
|
+
case '@qvac/remove-chat-copy-operation-v1':
|
|
11336
|
+
return encoding272
|
|
11337
|
+
case '@qvac/remove-chat-copy-operation':
|
|
11338
|
+
return encoding273
|
|
11039
11339
|
default:
|
|
11040
11340
|
throw new Error('Encoder not found ' + name)
|
|
11041
11341
|
}
|
|
@@ -5151,6 +5151,12 @@
|
|
|
5151
5151
|
"array": true,
|
|
5152
5152
|
"type": "fixed32",
|
|
5153
5153
|
"version": 19
|
|
5154
|
+
},
|
|
5155
|
+
{
|
|
5156
|
+
"name": "upgradeWriterKeys",
|
|
5157
|
+
"array": true,
|
|
5158
|
+
"type": "fixed32",
|
|
5159
|
+
"version": 19
|
|
5154
5160
|
}
|
|
5155
5161
|
]
|
|
5156
5162
|
},
|
|
@@ -6333,6 +6339,146 @@
|
|
|
6333
6339
|
"version": 1
|
|
6334
6340
|
}
|
|
6335
6341
|
]
|
|
6342
|
+
},
|
|
6343
|
+
{
|
|
6344
|
+
"name": "patch-chat-operation-v1",
|
|
6345
|
+
"namespace": "qvac",
|
|
6346
|
+
"compact": false,
|
|
6347
|
+
"flagsPosition": 1,
|
|
6348
|
+
"fields": [
|
|
6349
|
+
{
|
|
6350
|
+
"name": "chat",
|
|
6351
|
+
"required": true,
|
|
6352
|
+
"type": "@qvac/chat",
|
|
6353
|
+
"version": 19
|
|
6354
|
+
},
|
|
6355
|
+
{
|
|
6356
|
+
"name": "fields",
|
|
6357
|
+
"array": true,
|
|
6358
|
+
"type": "string",
|
|
6359
|
+
"version": 19
|
|
6360
|
+
}
|
|
6361
|
+
]
|
|
6362
|
+
},
|
|
6363
|
+
{
|
|
6364
|
+
"name": "patch-chat-operation",
|
|
6365
|
+
"namespace": "qvac",
|
|
6366
|
+
"framed": false,
|
|
6367
|
+
"versions": [
|
|
6368
|
+
{
|
|
6369
|
+
"type": "@qvac/patch-chat-operation-v1",
|
|
6370
|
+
"map": null,
|
|
6371
|
+
"version": 1
|
|
6372
|
+
}
|
|
6373
|
+
]
|
|
6374
|
+
},
|
|
6375
|
+
{
|
|
6376
|
+
"name": "patch-chat-group-operation-v1",
|
|
6377
|
+
"namespace": "qvac",
|
|
6378
|
+
"compact": false,
|
|
6379
|
+
"flagsPosition": 1,
|
|
6380
|
+
"fields": [
|
|
6381
|
+
{
|
|
6382
|
+
"name": "group",
|
|
6383
|
+
"required": true,
|
|
6384
|
+
"type": "@qvac/chat-group",
|
|
6385
|
+
"version": 19
|
|
6386
|
+
},
|
|
6387
|
+
{
|
|
6388
|
+
"name": "fields",
|
|
6389
|
+
"array": true,
|
|
6390
|
+
"type": "string",
|
|
6391
|
+
"version": 19
|
|
6392
|
+
}
|
|
6393
|
+
]
|
|
6394
|
+
},
|
|
6395
|
+
{
|
|
6396
|
+
"name": "patch-chat-group-operation",
|
|
6397
|
+
"namespace": "qvac",
|
|
6398
|
+
"framed": false,
|
|
6399
|
+
"versions": [
|
|
6400
|
+
{
|
|
6401
|
+
"type": "@qvac/patch-chat-group-operation-v1",
|
|
6402
|
+
"map": null,
|
|
6403
|
+
"version": 1
|
|
6404
|
+
}
|
|
6405
|
+
]
|
|
6406
|
+
},
|
|
6407
|
+
{
|
|
6408
|
+
"name": "moved-out-chat-v1",
|
|
6409
|
+
"namespace": "qvac",
|
|
6410
|
+
"compact": false,
|
|
6411
|
+
"flagsPosition": -1,
|
|
6412
|
+
"fields": [
|
|
6413
|
+
{
|
|
6414
|
+
"name": "chatId",
|
|
6415
|
+
"required": true,
|
|
6416
|
+
"type": "string",
|
|
6417
|
+
"version": 19
|
|
6418
|
+
}
|
|
6419
|
+
]
|
|
6420
|
+
},
|
|
6421
|
+
{
|
|
6422
|
+
"name": "moved-out-chat",
|
|
6423
|
+
"namespace": "qvac",
|
|
6424
|
+
"framed": false,
|
|
6425
|
+
"versions": [
|
|
6426
|
+
{
|
|
6427
|
+
"type": "@qvac/moved-out-chat-v1",
|
|
6428
|
+
"map": null,
|
|
6429
|
+
"version": 1
|
|
6430
|
+
}
|
|
6431
|
+
]
|
|
6432
|
+
},
|
|
6433
|
+
{
|
|
6434
|
+
"name": "remove-chat-copy-operation-v1",
|
|
6435
|
+
"namespace": "qvac",
|
|
6436
|
+
"compact": false,
|
|
6437
|
+
"flagsPosition": 2,
|
|
6438
|
+
"fields": [
|
|
6439
|
+
{
|
|
6440
|
+
"name": "chatId",
|
|
6441
|
+
"required": true,
|
|
6442
|
+
"type": "string",
|
|
6443
|
+
"version": 19
|
|
6444
|
+
},
|
|
6445
|
+
{
|
|
6446
|
+
"name": "updatedAt",
|
|
6447
|
+
"required": true,
|
|
6448
|
+
"type": "uint",
|
|
6449
|
+
"version": 19
|
|
6450
|
+
},
|
|
6451
|
+
{
|
|
6452
|
+
"name": "chunkIds",
|
|
6453
|
+
"array": true,
|
|
6454
|
+
"type": "string",
|
|
6455
|
+
"version": 19
|
|
6456
|
+
},
|
|
6457
|
+
{
|
|
6458
|
+
"name": "knowledgeIds",
|
|
6459
|
+
"array": true,
|
|
6460
|
+
"type": "string",
|
|
6461
|
+
"version": 19
|
|
6462
|
+
},
|
|
6463
|
+
{
|
|
6464
|
+
"name": "toolActivityIds",
|
|
6465
|
+
"array": true,
|
|
6466
|
+
"type": "string",
|
|
6467
|
+
"version": 19
|
|
6468
|
+
}
|
|
6469
|
+
]
|
|
6470
|
+
},
|
|
6471
|
+
{
|
|
6472
|
+
"name": "remove-chat-copy-operation",
|
|
6473
|
+
"namespace": "qvac",
|
|
6474
|
+
"framed": false,
|
|
6475
|
+
"versions": [
|
|
6476
|
+
{
|
|
6477
|
+
"type": "@qvac/remove-chat-copy-operation-v1",
|
|
6478
|
+
"map": null,
|
|
6479
|
+
"version": 1
|
|
6480
|
+
}
|
|
6481
|
+
]
|
|
6336
6482
|
}
|
|
6337
6483
|
]
|
|
6338
6484
|
}
|
|
@@ -1021,6 +1021,7 @@ export interface QvacWorkspaceV1 {
|
|
|
1021
1021
|
icon?: string | null
|
|
1022
1022
|
updatedAt: number
|
|
1023
1023
|
upgradeMemberIds?: Buffer[] | null
|
|
1024
|
+
upgradeWriterKeys?: Buffer[] | null
|
|
1024
1025
|
}
|
|
1025
1026
|
|
|
1026
1027
|
export type QvacWorkspace = (QvacWorkspaceV1 & { version?: number })
|
|
@@ -1272,6 +1273,36 @@ export interface QvacProjectDeviceSealV1 {
|
|
|
1272
1273
|
|
|
1273
1274
|
export type QvacProjectDeviceSeal = (QvacProjectDeviceSealV1 & { version?: number })
|
|
1274
1275
|
|
|
1276
|
+
export interface QvacPatchChatOperationV1 {
|
|
1277
|
+
chat: QvacChat
|
|
1278
|
+
fields?: string[] | null
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
export type QvacPatchChatOperation = (QvacPatchChatOperationV1 & { version?: number })
|
|
1282
|
+
|
|
1283
|
+
export interface QvacPatchChatGroupOperationV1 {
|
|
1284
|
+
group: QvacChatGroup
|
|
1285
|
+
fields?: string[] | null
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
export type QvacPatchChatGroupOperation = (QvacPatchChatGroupOperationV1 & { version?: number })
|
|
1289
|
+
|
|
1290
|
+
export interface QvacMovedOutChatV1 {
|
|
1291
|
+
chatId: string
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
export type QvacMovedOutChat = (QvacMovedOutChatV1 & { version?: number })
|
|
1295
|
+
|
|
1296
|
+
export interface QvacRemoveChatCopyOperationV1 {
|
|
1297
|
+
chatId: string
|
|
1298
|
+
updatedAt: number
|
|
1299
|
+
chunkIds?: string[] | null
|
|
1300
|
+
knowledgeIds?: string[] | null
|
|
1301
|
+
toolActivityIds?: string[] | null
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
export type QvacRemoveChatCopyOperation = (QvacRemoveChatCopyOperationV1 & { version?: number })
|
|
1305
|
+
|
|
1275
1306
|
export interface SchemaTypes {
|
|
1276
1307
|
"@qvac/chunk-type": QvacChunkType
|
|
1277
1308
|
"@qvac/run-state": QvacRunState
|
|
@@ -1539,4 +1570,12 @@ export interface SchemaTypes {
|
|
|
1539
1570
|
"@qvac/project-member-seal": QvacProjectMemberSeal
|
|
1540
1571
|
"@qvac/project-device-seal-v1": QvacProjectDeviceSealV1
|
|
1541
1572
|
"@qvac/project-device-seal": QvacProjectDeviceSeal
|
|
1573
|
+
"@qvac/patch-chat-operation-v1": QvacPatchChatOperationV1
|
|
1574
|
+
"@qvac/patch-chat-operation": QvacPatchChatOperation
|
|
1575
|
+
"@qvac/patch-chat-group-operation-v1": QvacPatchChatGroupOperationV1
|
|
1576
|
+
"@qvac/patch-chat-group-operation": QvacPatchChatGroupOperation
|
|
1577
|
+
"@qvac/moved-out-chat-v1": QvacMovedOutChatV1
|
|
1578
|
+
"@qvac/moved-out-chat": QvacMovedOutChat
|
|
1579
|
+
"@qvac/remove-chat-copy-operation-v1": QvacRemoveChatCopyOperationV1
|
|
1580
|
+
"@qvac/remove-chat-copy-operation": QvacRemoveChatCopyOperation
|
|
1542
1581
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qvac/core",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.13",
|
|
4
4
|
"upgrade": "pear://56h5xtm7xjjpkbj1ubbuffcjastpxri11n6wr6zy8ikzmyq7ctey",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Peer-to-peer AI across your devices",
|
|
@@ -188,6 +188,7 @@
|
|
|
188
188
|
"test:model-lane": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 brittle-jobs -j 1 --timeout 7200000 'test/model/*.ts'",
|
|
189
189
|
"test:scale": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 QVAC_SCALE_REPORT=${QVAC_SCALE_REPORT:-scale-report.txt} brittle-jobs -j 1 --timeout ${BRITTLE_TIMEOUT:-600000} --idle-timeout ${BRITTLE_IDLE_TIMEOUT:-300000} 'test/scale/*.ts'",
|
|
190
190
|
"test:e2e": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 bare test/e2e/index.ts",
|
|
191
|
+
"test:e2e:upgrade": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 bare test/e2e/upgrade.ts",
|
|
191
192
|
"format": "prettier . --write",
|
|
192
193
|
"lint": "prettier . --check && lunte && tsc --noEmit",
|
|
193
194
|
"build:bundle": "node scripts/build-bundle.mjs",
|
|
@@ -257,11 +258,11 @@
|
|
|
257
258
|
},
|
|
258
259
|
"dependencies": {
|
|
259
260
|
"@qvac/error": "^0.2.0",
|
|
260
|
-
"@qvac/harness": "1.0.0-rc.
|
|
261
|
+
"@qvac/harness": "1.0.0-rc.23",
|
|
261
262
|
"@qvac/logging": "^0.2.0",
|
|
262
|
-
"@qvac/skills": "^0.
|
|
263
|
+
"@qvac/skills": "^0.5.0",
|
|
263
264
|
"asenion": "^0.1.0",
|
|
264
|
-
"autobee": "^2.13.
|
|
265
|
+
"autobee": "^2.13.6",
|
|
265
266
|
"b4a": "^1.9.0",
|
|
266
267
|
"bare-abort-controller": "^1.1.2",
|
|
267
268
|
"bare-buffer": "^3.7.1",
|
|
@@ -320,6 +321,7 @@
|
|
|
320
321
|
"process-top": "^1.8.0",
|
|
321
322
|
"protomux": "^3.13.1",
|
|
322
323
|
"protomux-wakeup": "^2.9.0",
|
|
324
|
+
"qvac-charts": "^0.2.0",
|
|
323
325
|
"rache": "^1.0.1",
|
|
324
326
|
"rag-extract": "^0.2.2",
|
|
325
327
|
"ready-guard": "^1.0.0",
|