@qvac/core 1.0.0-rc.5 → 1.0.0-rc.7
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 +43 -2
- package/README.md +55 -4
- package/dist-lib/lib/api/agents.d.ts +2 -1
- package/dist-lib/lib/api/agents.js +10 -3
- package/dist-lib/lib/api/app-config.d.ts +3 -0
- package/dist-lib/lib/api/app-config.js +20 -0
- package/dist-lib/lib/api/approval-rules.js +8 -5
- package/dist-lib/lib/api/chat.d.ts +1 -2
- package/dist-lib/lib/api/chat.js +4 -18
- package/dist-lib/lib/api/device-routes.d.ts +1 -1
- package/dist-lib/lib/api/device-routes.js +3 -1
- package/dist-lib/lib/api/index.d.ts +0 -1
- package/dist-lib/lib/api/index.js +3 -3
- package/dist-lib/lib/api/mesh.d.ts +1 -1
- package/dist-lib/lib/api/mesh.js +1 -1
- package/dist-lib/lib/api/projects.js +3 -4
- package/dist-lib/lib/api/served.d.ts +2 -2
- package/dist-lib/lib/api/served.js +24 -1
- package/dist-lib/lib/api/sync.js +12 -2
- package/dist-lib/lib/assistant/harness.d.ts +3 -0
- package/dist-lib/lib/assistant/history.js +14 -2
- package/dist-lib/lib/assistant/message.d.ts +1 -0
- package/dist-lib/lib/assistant/model-round.d.ts +3 -0
- package/dist-lib/lib/assistant/model-round.js +16 -2
- package/dist-lib/lib/assistant/round-host.d.ts +2 -0
- package/dist-lib/lib/assistant/round-host.js +8 -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 +11 -2
- package/dist-lib/lib/assistant.js +124 -20
- package/dist-lib/lib/client.js +4 -1
- package/dist-lib/lib/core/agent-copies.js +2 -1
- package/dist-lib/lib/core/agent-hosting.js +9 -4
- package/dist-lib/lib/core/agent.js +2 -1
- package/dist-lib/lib/core/archived-mesh.d.ts +1 -0
- package/dist-lib/lib/core/archived-mesh.js +11 -14
- package/dist-lib/lib/core/chat-copy.d.ts +1 -1
- package/dist-lib/lib/core/chat-copy.js +14 -4
- package/dist-lib/lib/core/chat-move.d.ts +3 -1
- package/dist-lib/lib/core/chat-move.js +5 -2
- package/dist-lib/lib/core/chat.d.ts +0 -1
- package/dist-lib/lib/core/chat.js +0 -3
- package/dist-lib/lib/core/collections.d.ts +7 -7
- package/dist-lib/lib/core/collections.js +7 -7
- package/dist-lib/lib/core/contract/joined-meshes.js +2 -1
- package/dist-lib/lib/core/contract/project-device-keys.d.ts +4 -2
- package/dist-lib/lib/core/contract/project-device-keys.js +12 -12
- package/dist-lib/lib/core/contract/project-host-keys.d.ts +5 -3
- package/dist-lib/lib/core/contract/project-host-keys.js +22 -11
- package/dist-lib/lib/core/contract/projects.d.ts +4 -2
- package/dist-lib/lib/core/contract/projects.js +29 -17
- package/dist-lib/lib/core/deleted-agent-runs.d.ts +1 -0
- package/dist-lib/lib/core/deleted-agent-runs.js +22 -11
- package/dist-lib/lib/core/helpers/index.d.ts +1 -1
- package/dist-lib/lib/core/helpers/index.js +2 -2
- package/dist-lib/lib/core/local/index.d.ts +2 -1
- package/dist-lib/lib/core/local/index.js +3 -2
- package/dist-lib/lib/core/mesh.d.ts +1 -0
- package/dist-lib/lib/core/mesh.js +4 -4
- package/dist-lib/lib/core/project-keys.d.ts +5 -2
- package/dist-lib/lib/core/project-keys.js +15 -6
- package/dist-lib/lib/core/public-mesh.d.ts +6 -8
- package/dist-lib/lib/core/public-mesh.js +19 -29
- package/dist-lib/lib/core/sync/index.js +6 -6
- package/dist-lib/lib/core.d.ts +17 -8
- package/dist-lib/lib/core.js +317 -224
- package/dist-lib/lib/errors.d.ts +4 -12
- package/dist-lib/lib/errors.js +4 -12
- package/dist-lib/lib/kv-cache-ledger.d.ts +22 -0
- package/dist-lib/lib/kv-cache-ledger.js +72 -0
- package/dist-lib/lib/kv-cache-retention.d.ts +1 -0
- package/dist-lib/lib/kv-cache-retention.js +5 -2
- package/dist-lib/lib/model-memory-cap.d.ts +3 -0
- package/dist-lib/lib/model-memory-cap.js +15 -6
- package/dist-lib/lib/run-replay.d.ts +3 -2
- package/dist-lib/lib/run-replay.js +16 -5
- package/dist-lib/lib/run-transcript.js +1 -1
- package/dist-lib/schema/engine.js +64 -4
- package/dist-lib/schema/local.js +4 -2
- package/dist-lib/schema/qvac.js +64 -2
- package/dist-lib/spec/bind.js +3 -0
- package/dist-lib/spec/calls.js +1 -0
- package/dist-lib/spec/capabilities.d.ts +4 -2
- package/dist-lib/spec/hrpc/hrpc.json +14 -1
- package/dist-lib/spec/hrpc/index.js +16 -4
- package/dist-lib/spec/hrpc/messages.js +508 -235
- package/dist-lib/spec/hyperschema/index.js +508 -235
- package/dist-lib/spec/hyperschema/schema.json +214 -6
- package/dist-lib/spec/hyperschema/types.d.ts +40 -1
- package/dist-lib/spec/local/hyperdb/messages.js +26 -12
- package/dist-lib/spec/local/hyperschema/index.js +13 -6
- package/dist-lib/spec/local/hyperschema/schema.json +10 -0
- package/dist-lib/spec/local/hyperschema/types.d.ts +2 -0
- package/dist-lib/spec/mesh/hyperdb/db.json +110 -0
- package/dist-lib/spec/mesh/hyperdb/index.js +498 -2
- package/dist-lib/spec/mesh/hyperdb/messages.js +895 -416
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +259 -6
- package/dist-lib/spec/mesh/hyperschema/index.js +259 -6
- package/dist-lib/spec/mesh/hyperschema/schema.json +160 -0
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +38 -0
- package/package.json +27 -11
- package/tui/README.md +190 -0
- package/tui/app.mjs +8282 -0
- package/tui/boot.mjs +159 -0
- package/tui/index.mjs +89 -0
- package/tui/lib/boot-timing.mjs +41 -0
- package/tui/lib/busy-words.mjs +116 -0
- package/tui/lib/connect-sheet.mjs +350 -0
- package/tui/lib/device-target.mjs +64 -0
- package/tui/lib/export.mjs +194 -0
- package/tui/lib/folders-command.mjs +84 -0
- package/tui/lib/fork-command.mjs +43 -0
- package/tui/lib/knowledge-command.mjs +190 -0
- package/tui/lib/knowledge-import.mjs +153 -0
- package/tui/lib/local-path.mjs +21 -0
- package/tui/lib/move-command.mjs +17 -0
- package/tui/lib/render.mjs +225 -0
- package/tui/lib/save-file.mjs +88 -0
- package/tui/lib/select.mjs +81 -0
- package/tui/lib/selection.mjs +18 -0
- package/tui/lib/setup.mjs +135 -0
- package/tui/lib/sidebar.mjs +63 -0
- package/tui/lib/skill-connect.mjs +145 -0
- package/tui/lib/splash-art.mjs +107 -0
- package/tui/lib/splash.mjs +18 -0
- package/tui/lib/upload-frames.mjs +9 -0
- package/tui/lib/usage.mjs +59 -0
- package/tui/lib/wrap.mjs +143 -0
- package/tui/main.mjs +279 -0
- package/tui/plugins.mjs +158 -0
- package/worker/assistant-sidecar.mjs +1 -0
|
@@ -1477,6 +1477,116 @@
|
|
|
1477
1477
|
},
|
|
1478
1478
|
"map": "terminalRunStatusesMap"
|
|
1479
1479
|
}
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
"name": "project-host-seals",
|
|
1483
|
+
"namespace": "qvac",
|
|
1484
|
+
"id": 83,
|
|
1485
|
+
"type": 1,
|
|
1486
|
+
"version": 12,
|
|
1487
|
+
"versionField": null,
|
|
1488
|
+
"indexes": [
|
|
1489
|
+
"@qvac/project-host-seals-by-device"
|
|
1490
|
+
],
|
|
1491
|
+
"schema": "@qvac/project-host-seal",
|
|
1492
|
+
"derived": false,
|
|
1493
|
+
"key": [
|
|
1494
|
+
"projectId",
|
|
1495
|
+
"deviceId",
|
|
1496
|
+
"sealedBy"
|
|
1497
|
+
],
|
|
1498
|
+
"trigger": null
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"name": "project-host-seals-by-device",
|
|
1502
|
+
"namespace": "qvac",
|
|
1503
|
+
"id": 84,
|
|
1504
|
+
"type": 2,
|
|
1505
|
+
"version": 12,
|
|
1506
|
+
"collection": "@qvac/project-host-seals",
|
|
1507
|
+
"unique": false,
|
|
1508
|
+
"deprecated": false,
|
|
1509
|
+
"key": [
|
|
1510
|
+
"deviceId"
|
|
1511
|
+
]
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
"name": "project-member-seals",
|
|
1515
|
+
"namespace": "qvac",
|
|
1516
|
+
"id": 85,
|
|
1517
|
+
"type": 1,
|
|
1518
|
+
"version": 12,
|
|
1519
|
+
"versionField": null,
|
|
1520
|
+
"indexes": [
|
|
1521
|
+
"@qvac/project-member-seals-by-member"
|
|
1522
|
+
],
|
|
1523
|
+
"schema": "@qvac/project-member-seal",
|
|
1524
|
+
"derived": false,
|
|
1525
|
+
"key": [
|
|
1526
|
+
"projectId",
|
|
1527
|
+
"memberId",
|
|
1528
|
+
"sealedBy"
|
|
1529
|
+
],
|
|
1530
|
+
"trigger": null
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
"name": "project-member-seals-by-member",
|
|
1534
|
+
"namespace": "qvac",
|
|
1535
|
+
"id": 86,
|
|
1536
|
+
"type": 2,
|
|
1537
|
+
"version": 12,
|
|
1538
|
+
"collection": "@qvac/project-member-seals",
|
|
1539
|
+
"unique": false,
|
|
1540
|
+
"deprecated": false,
|
|
1541
|
+
"key": [
|
|
1542
|
+
"memberId"
|
|
1543
|
+
]
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
"name": "project-device-seals",
|
|
1547
|
+
"namespace": "qvac",
|
|
1548
|
+
"id": 87,
|
|
1549
|
+
"type": 1,
|
|
1550
|
+
"version": 12,
|
|
1551
|
+
"versionField": null,
|
|
1552
|
+
"indexes": [
|
|
1553
|
+
"@qvac/project-device-seals-by-device",
|
|
1554
|
+
"@qvac/project-device-seals-by-member"
|
|
1555
|
+
],
|
|
1556
|
+
"schema": "@qvac/project-device-seal",
|
|
1557
|
+
"derived": false,
|
|
1558
|
+
"key": [
|
|
1559
|
+
"projectId",
|
|
1560
|
+
"deviceId",
|
|
1561
|
+
"sealedBy"
|
|
1562
|
+
],
|
|
1563
|
+
"trigger": null
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
"name": "project-device-seals-by-device",
|
|
1567
|
+
"namespace": "qvac",
|
|
1568
|
+
"id": 88,
|
|
1569
|
+
"type": 2,
|
|
1570
|
+
"version": 12,
|
|
1571
|
+
"collection": "@qvac/project-device-seals",
|
|
1572
|
+
"unique": false,
|
|
1573
|
+
"deprecated": false,
|
|
1574
|
+
"key": [
|
|
1575
|
+
"deviceId"
|
|
1576
|
+
]
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
"name": "project-device-seals-by-member",
|
|
1580
|
+
"namespace": "qvac",
|
|
1581
|
+
"id": 89,
|
|
1582
|
+
"type": 2,
|
|
1583
|
+
"version": 12,
|
|
1584
|
+
"collection": "@qvac/project-device-seals",
|
|
1585
|
+
"unique": false,
|
|
1586
|
+
"deprecated": false,
|
|
1587
|
+
"key": [
|
|
1588
|
+
"memberId"
|
|
1589
|
+
]
|
|
1480
1590
|
}
|
|
1481
1591
|
]
|
|
1482
1592
|
}
|
|
@@ -5088,6 +5088,488 @@ const index82 = {
|
|
|
5088
5088
|
}
|
|
5089
5089
|
collection0.indexes.push(index82)
|
|
5090
5090
|
|
|
5091
|
+
// '@qvac/project-host-seals' collection key
|
|
5092
|
+
const collection83_key = new IndexEncoder([
|
|
5093
|
+
IndexEncoder.BUFFER,
|
|
5094
|
+
IndexEncoder.BUFFER,
|
|
5095
|
+
IndexEncoder.BUFFER
|
|
5096
|
+
], { prefix: 83 })
|
|
5097
|
+
|
|
5098
|
+
function collection83_indexify (record) {
|
|
5099
|
+
const arr = []
|
|
5100
|
+
|
|
5101
|
+
const a0 = record.projectId
|
|
5102
|
+
if (a0 === undefined) return arr
|
|
5103
|
+
arr.push(a0)
|
|
5104
|
+
|
|
5105
|
+
const a1 = record.deviceId
|
|
5106
|
+
if (a1 === undefined) return arr
|
|
5107
|
+
arr.push(a1)
|
|
5108
|
+
|
|
5109
|
+
const a2 = record.sealedBy
|
|
5110
|
+
if (a2 === undefined) return arr
|
|
5111
|
+
arr.push(a2)
|
|
5112
|
+
|
|
5113
|
+
return arr
|
|
5114
|
+
}
|
|
5115
|
+
|
|
5116
|
+
// '@qvac/project-host-seals' value encoding
|
|
5117
|
+
const collection83_enc = getEncoding('@qvac/project-host-seal/hyperdb#83')
|
|
5118
|
+
|
|
5119
|
+
// '@qvac/project-host-seals' reconstruction function
|
|
5120
|
+
function collection83_reconstruct (schemaVersion, keyBuf, valueBuf) {
|
|
5121
|
+
const key = collection83_key.decode(keyBuf)
|
|
5122
|
+
setVersion(schemaVersion)
|
|
5123
|
+
const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
|
|
5124
|
+
const type = c.uint.decode(state)
|
|
5125
|
+
if (type !== 0) throw new Error('Unknown collection type: ' + type)
|
|
5126
|
+
collection83.decodedVersion = c.uint.decode(state)
|
|
5127
|
+
const record = collection83_enc.decode(state)
|
|
5128
|
+
record.projectId = key[0]
|
|
5129
|
+
record.deviceId = key[1]
|
|
5130
|
+
record.sealedBy = key[2]
|
|
5131
|
+
return record
|
|
5132
|
+
}
|
|
5133
|
+
// '@qvac/project-host-seals' key reconstruction function
|
|
5134
|
+
function collection83_reconstruct_key (keyBuf) {
|
|
5135
|
+
const key = collection83_key.decode(keyBuf)
|
|
5136
|
+
return {
|
|
5137
|
+
projectId: key[0],
|
|
5138
|
+
deviceId: key[1],
|
|
5139
|
+
sealedBy: key[2]
|
|
5140
|
+
}
|
|
5141
|
+
}
|
|
5142
|
+
|
|
5143
|
+
// '@qvac/project-host-seals'
|
|
5144
|
+
const collection83 = {
|
|
5145
|
+
name: '@qvac/project-host-seals',
|
|
5146
|
+
id: 83,
|
|
5147
|
+
version: 12,
|
|
5148
|
+
encodeKey (record) {
|
|
5149
|
+
const key = [record.projectId, record.deviceId, record.sealedBy]
|
|
5150
|
+
return collection83_key.encode(key)
|
|
5151
|
+
},
|
|
5152
|
+
encodeKeyRange ({ gt, lt, gte, lte } = {}) {
|
|
5153
|
+
return collection83_key.encodeRange({
|
|
5154
|
+
gt: gt ? collection83_indexify(gt) : null,
|
|
5155
|
+
lt: lt ? collection83_indexify(lt) : null,
|
|
5156
|
+
gte: gte ? collection83_indexify(gte) : null,
|
|
5157
|
+
lte: lte ? collection83_indexify(lte) : null
|
|
5158
|
+
})
|
|
5159
|
+
},
|
|
5160
|
+
encodeValue (schemaVersion, collectionVersion, record) {
|
|
5161
|
+
setVersion(schemaVersion)
|
|
5162
|
+
const state = { start: 0, end: 2, buffer: null }
|
|
5163
|
+
collection83_enc.preencode(state, record)
|
|
5164
|
+
state.buffer = b4a.allocUnsafe(state.end)
|
|
5165
|
+
state.buffer[state.start++] = 0
|
|
5166
|
+
state.buffer[state.start++] = collectionVersion
|
|
5167
|
+
collection83_enc.encode(state, record)
|
|
5168
|
+
return state.buffer
|
|
5169
|
+
},
|
|
5170
|
+
trigger: null,
|
|
5171
|
+
reconstruct: collection83_reconstruct,
|
|
5172
|
+
reconstructKey: collection83_reconstruct_key,
|
|
5173
|
+
indexes: [],
|
|
5174
|
+
decodedVersion: 0
|
|
5175
|
+
}
|
|
5176
|
+
|
|
5177
|
+
// '@qvac/project-host-seals-by-device' collection key
|
|
5178
|
+
const index84_key = new IndexEncoder([
|
|
5179
|
+
IndexEncoder.BUFFER,
|
|
5180
|
+
IndexEncoder.BUFFER,
|
|
5181
|
+
IndexEncoder.BUFFER,
|
|
5182
|
+
IndexEncoder.BUFFER
|
|
5183
|
+
], { prefix: 84 })
|
|
5184
|
+
|
|
5185
|
+
function index84_indexify (record) {
|
|
5186
|
+
const arr = []
|
|
5187
|
+
|
|
5188
|
+
const a0 = record.deviceId
|
|
5189
|
+
if (a0 === undefined) return arr
|
|
5190
|
+
arr.push(a0)
|
|
5191
|
+
|
|
5192
|
+
const a1 = record.projectId
|
|
5193
|
+
if (a1 === undefined) return arr
|
|
5194
|
+
arr.push(a1)
|
|
5195
|
+
|
|
5196
|
+
const a2 = record.deviceId
|
|
5197
|
+
if (a2 === undefined) return arr
|
|
5198
|
+
arr.push(a2)
|
|
5199
|
+
|
|
5200
|
+
const a3 = record.sealedBy
|
|
5201
|
+
if (a3 === undefined) return arr
|
|
5202
|
+
arr.push(a3)
|
|
5203
|
+
|
|
5204
|
+
return arr
|
|
5205
|
+
}
|
|
5206
|
+
|
|
5207
|
+
// '@qvac/project-host-seals-by-device'
|
|
5208
|
+
const index84 = {
|
|
5209
|
+
name: '@qvac/project-host-seals-by-device',
|
|
5210
|
+
version: 12,
|
|
5211
|
+
id: 84,
|
|
5212
|
+
encodeKey (record) {
|
|
5213
|
+
return index84_key.encode(index84_indexify(record))
|
|
5214
|
+
},
|
|
5215
|
+
encodeKeyRange ({ gt, lt, gte, lte } = {}) {
|
|
5216
|
+
return index84_key.encodeRange({
|
|
5217
|
+
gt: gt ? index84_indexify(gt) : null,
|
|
5218
|
+
lt: lt ? index84_indexify(lt) : null,
|
|
5219
|
+
gte: gte ? index84_indexify(gte) : null,
|
|
5220
|
+
lte: lte ? index84_indexify(lte) : null
|
|
5221
|
+
})
|
|
5222
|
+
},
|
|
5223
|
+
encodeValue: (record) => index84.collection.encodeKey(record),
|
|
5224
|
+
encodeIndexKeys (record, context) {
|
|
5225
|
+
return [index84_key.encode([record.deviceId, record.projectId, record.deviceId, record.sealedBy])]
|
|
5226
|
+
},
|
|
5227
|
+
reconstruct: (keyBuf, valueBuf) => valueBuf,
|
|
5228
|
+
offset: collection83.indexes.length,
|
|
5229
|
+
collection: collection83
|
|
5230
|
+
}
|
|
5231
|
+
collection83.indexes.push(index84)
|
|
5232
|
+
|
|
5233
|
+
// '@qvac/project-member-seals' collection key
|
|
5234
|
+
const collection85_key = new IndexEncoder([
|
|
5235
|
+
IndexEncoder.BUFFER,
|
|
5236
|
+
IndexEncoder.BUFFER,
|
|
5237
|
+
IndexEncoder.BUFFER
|
|
5238
|
+
], { prefix: 85 })
|
|
5239
|
+
|
|
5240
|
+
function collection85_indexify (record) {
|
|
5241
|
+
const arr = []
|
|
5242
|
+
|
|
5243
|
+
const a0 = record.projectId
|
|
5244
|
+
if (a0 === undefined) return arr
|
|
5245
|
+
arr.push(a0)
|
|
5246
|
+
|
|
5247
|
+
const a1 = record.memberId
|
|
5248
|
+
if (a1 === undefined) return arr
|
|
5249
|
+
arr.push(a1)
|
|
5250
|
+
|
|
5251
|
+
const a2 = record.sealedBy
|
|
5252
|
+
if (a2 === undefined) return arr
|
|
5253
|
+
arr.push(a2)
|
|
5254
|
+
|
|
5255
|
+
return arr
|
|
5256
|
+
}
|
|
5257
|
+
|
|
5258
|
+
// '@qvac/project-member-seals' value encoding
|
|
5259
|
+
const collection85_enc = getEncoding('@qvac/project-member-seal/hyperdb#85')
|
|
5260
|
+
|
|
5261
|
+
// '@qvac/project-member-seals' reconstruction function
|
|
5262
|
+
function collection85_reconstruct (schemaVersion, keyBuf, valueBuf) {
|
|
5263
|
+
const key = collection85_key.decode(keyBuf)
|
|
5264
|
+
setVersion(schemaVersion)
|
|
5265
|
+
const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
|
|
5266
|
+
const type = c.uint.decode(state)
|
|
5267
|
+
if (type !== 0) throw new Error('Unknown collection type: ' + type)
|
|
5268
|
+
collection85.decodedVersion = c.uint.decode(state)
|
|
5269
|
+
const record = collection85_enc.decode(state)
|
|
5270
|
+
record.projectId = key[0]
|
|
5271
|
+
record.memberId = key[1]
|
|
5272
|
+
record.sealedBy = key[2]
|
|
5273
|
+
return record
|
|
5274
|
+
}
|
|
5275
|
+
// '@qvac/project-member-seals' key reconstruction function
|
|
5276
|
+
function collection85_reconstruct_key (keyBuf) {
|
|
5277
|
+
const key = collection85_key.decode(keyBuf)
|
|
5278
|
+
return {
|
|
5279
|
+
projectId: key[0],
|
|
5280
|
+
memberId: key[1],
|
|
5281
|
+
sealedBy: key[2]
|
|
5282
|
+
}
|
|
5283
|
+
}
|
|
5284
|
+
|
|
5285
|
+
// '@qvac/project-member-seals'
|
|
5286
|
+
const collection85 = {
|
|
5287
|
+
name: '@qvac/project-member-seals',
|
|
5288
|
+
id: 85,
|
|
5289
|
+
version: 12,
|
|
5290
|
+
encodeKey (record) {
|
|
5291
|
+
const key = [record.projectId, record.memberId, record.sealedBy]
|
|
5292
|
+
return collection85_key.encode(key)
|
|
5293
|
+
},
|
|
5294
|
+
encodeKeyRange ({ gt, lt, gte, lte } = {}) {
|
|
5295
|
+
return collection85_key.encodeRange({
|
|
5296
|
+
gt: gt ? collection85_indexify(gt) : null,
|
|
5297
|
+
lt: lt ? collection85_indexify(lt) : null,
|
|
5298
|
+
gte: gte ? collection85_indexify(gte) : null,
|
|
5299
|
+
lte: lte ? collection85_indexify(lte) : null
|
|
5300
|
+
})
|
|
5301
|
+
},
|
|
5302
|
+
encodeValue (schemaVersion, collectionVersion, record) {
|
|
5303
|
+
setVersion(schemaVersion)
|
|
5304
|
+
const state = { start: 0, end: 2, buffer: null }
|
|
5305
|
+
collection85_enc.preencode(state, record)
|
|
5306
|
+
state.buffer = b4a.allocUnsafe(state.end)
|
|
5307
|
+
state.buffer[state.start++] = 0
|
|
5308
|
+
state.buffer[state.start++] = collectionVersion
|
|
5309
|
+
collection85_enc.encode(state, record)
|
|
5310
|
+
return state.buffer
|
|
5311
|
+
},
|
|
5312
|
+
trigger: null,
|
|
5313
|
+
reconstruct: collection85_reconstruct,
|
|
5314
|
+
reconstructKey: collection85_reconstruct_key,
|
|
5315
|
+
indexes: [],
|
|
5316
|
+
decodedVersion: 0
|
|
5317
|
+
}
|
|
5318
|
+
|
|
5319
|
+
// '@qvac/project-member-seals-by-member' collection key
|
|
5320
|
+
const index86_key = new IndexEncoder([
|
|
5321
|
+
IndexEncoder.BUFFER,
|
|
5322
|
+
IndexEncoder.BUFFER,
|
|
5323
|
+
IndexEncoder.BUFFER,
|
|
5324
|
+
IndexEncoder.BUFFER
|
|
5325
|
+
], { prefix: 86 })
|
|
5326
|
+
|
|
5327
|
+
function index86_indexify (record) {
|
|
5328
|
+
const arr = []
|
|
5329
|
+
|
|
5330
|
+
const a0 = record.memberId
|
|
5331
|
+
if (a0 === undefined) return arr
|
|
5332
|
+
arr.push(a0)
|
|
5333
|
+
|
|
5334
|
+
const a1 = record.projectId
|
|
5335
|
+
if (a1 === undefined) return arr
|
|
5336
|
+
arr.push(a1)
|
|
5337
|
+
|
|
5338
|
+
const a2 = record.memberId
|
|
5339
|
+
if (a2 === undefined) return arr
|
|
5340
|
+
arr.push(a2)
|
|
5341
|
+
|
|
5342
|
+
const a3 = record.sealedBy
|
|
5343
|
+
if (a3 === undefined) return arr
|
|
5344
|
+
arr.push(a3)
|
|
5345
|
+
|
|
5346
|
+
return arr
|
|
5347
|
+
}
|
|
5348
|
+
|
|
5349
|
+
// '@qvac/project-member-seals-by-member'
|
|
5350
|
+
const index86 = {
|
|
5351
|
+
name: '@qvac/project-member-seals-by-member',
|
|
5352
|
+
version: 12,
|
|
5353
|
+
id: 86,
|
|
5354
|
+
encodeKey (record) {
|
|
5355
|
+
return index86_key.encode(index86_indexify(record))
|
|
5356
|
+
},
|
|
5357
|
+
encodeKeyRange ({ gt, lt, gte, lte } = {}) {
|
|
5358
|
+
return index86_key.encodeRange({
|
|
5359
|
+
gt: gt ? index86_indexify(gt) : null,
|
|
5360
|
+
lt: lt ? index86_indexify(lt) : null,
|
|
5361
|
+
gte: gte ? index86_indexify(gte) : null,
|
|
5362
|
+
lte: lte ? index86_indexify(lte) : null
|
|
5363
|
+
})
|
|
5364
|
+
},
|
|
5365
|
+
encodeValue: (record) => index86.collection.encodeKey(record),
|
|
5366
|
+
encodeIndexKeys (record, context) {
|
|
5367
|
+
return [index86_key.encode([record.memberId, record.projectId, record.memberId, record.sealedBy])]
|
|
5368
|
+
},
|
|
5369
|
+
reconstruct: (keyBuf, valueBuf) => valueBuf,
|
|
5370
|
+
offset: collection85.indexes.length,
|
|
5371
|
+
collection: collection85
|
|
5372
|
+
}
|
|
5373
|
+
collection85.indexes.push(index86)
|
|
5374
|
+
|
|
5375
|
+
// '@qvac/project-device-seals' collection key
|
|
5376
|
+
const collection87_key = new IndexEncoder([
|
|
5377
|
+
IndexEncoder.BUFFER,
|
|
5378
|
+
IndexEncoder.BUFFER,
|
|
5379
|
+
IndexEncoder.BUFFER
|
|
5380
|
+
], { prefix: 87 })
|
|
5381
|
+
|
|
5382
|
+
function collection87_indexify (record) {
|
|
5383
|
+
const arr = []
|
|
5384
|
+
|
|
5385
|
+
const a0 = record.projectId
|
|
5386
|
+
if (a0 === undefined) return arr
|
|
5387
|
+
arr.push(a0)
|
|
5388
|
+
|
|
5389
|
+
const a1 = record.deviceId
|
|
5390
|
+
if (a1 === undefined) return arr
|
|
5391
|
+
arr.push(a1)
|
|
5392
|
+
|
|
5393
|
+
const a2 = record.sealedBy
|
|
5394
|
+
if (a2 === undefined) return arr
|
|
5395
|
+
arr.push(a2)
|
|
5396
|
+
|
|
5397
|
+
return arr
|
|
5398
|
+
}
|
|
5399
|
+
|
|
5400
|
+
// '@qvac/project-device-seals' value encoding
|
|
5401
|
+
const collection87_enc = getEncoding('@qvac/project-device-seal/hyperdb#87')
|
|
5402
|
+
|
|
5403
|
+
// '@qvac/project-device-seals' reconstruction function
|
|
5404
|
+
function collection87_reconstruct (schemaVersion, keyBuf, valueBuf) {
|
|
5405
|
+
const key = collection87_key.decode(keyBuf)
|
|
5406
|
+
setVersion(schemaVersion)
|
|
5407
|
+
const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
|
|
5408
|
+
const type = c.uint.decode(state)
|
|
5409
|
+
if (type !== 0) throw new Error('Unknown collection type: ' + type)
|
|
5410
|
+
collection87.decodedVersion = c.uint.decode(state)
|
|
5411
|
+
const record = collection87_enc.decode(state)
|
|
5412
|
+
record.projectId = key[0]
|
|
5413
|
+
record.deviceId = key[1]
|
|
5414
|
+
record.sealedBy = key[2]
|
|
5415
|
+
return record
|
|
5416
|
+
}
|
|
5417
|
+
// '@qvac/project-device-seals' key reconstruction function
|
|
5418
|
+
function collection87_reconstruct_key (keyBuf) {
|
|
5419
|
+
const key = collection87_key.decode(keyBuf)
|
|
5420
|
+
return {
|
|
5421
|
+
projectId: key[0],
|
|
5422
|
+
deviceId: key[1],
|
|
5423
|
+
sealedBy: key[2]
|
|
5424
|
+
}
|
|
5425
|
+
}
|
|
5426
|
+
|
|
5427
|
+
// '@qvac/project-device-seals'
|
|
5428
|
+
const collection87 = {
|
|
5429
|
+
name: '@qvac/project-device-seals',
|
|
5430
|
+
id: 87,
|
|
5431
|
+
version: 12,
|
|
5432
|
+
encodeKey (record) {
|
|
5433
|
+
const key = [record.projectId, record.deviceId, record.sealedBy]
|
|
5434
|
+
return collection87_key.encode(key)
|
|
5435
|
+
},
|
|
5436
|
+
encodeKeyRange ({ gt, lt, gte, lte } = {}) {
|
|
5437
|
+
return collection87_key.encodeRange({
|
|
5438
|
+
gt: gt ? collection87_indexify(gt) : null,
|
|
5439
|
+
lt: lt ? collection87_indexify(lt) : null,
|
|
5440
|
+
gte: gte ? collection87_indexify(gte) : null,
|
|
5441
|
+
lte: lte ? collection87_indexify(lte) : null
|
|
5442
|
+
})
|
|
5443
|
+
},
|
|
5444
|
+
encodeValue (schemaVersion, collectionVersion, record) {
|
|
5445
|
+
setVersion(schemaVersion)
|
|
5446
|
+
const state = { start: 0, end: 2, buffer: null }
|
|
5447
|
+
collection87_enc.preencode(state, record)
|
|
5448
|
+
state.buffer = b4a.allocUnsafe(state.end)
|
|
5449
|
+
state.buffer[state.start++] = 0
|
|
5450
|
+
state.buffer[state.start++] = collectionVersion
|
|
5451
|
+
collection87_enc.encode(state, record)
|
|
5452
|
+
return state.buffer
|
|
5453
|
+
},
|
|
5454
|
+
trigger: null,
|
|
5455
|
+
reconstruct: collection87_reconstruct,
|
|
5456
|
+
reconstructKey: collection87_reconstruct_key,
|
|
5457
|
+
indexes: [],
|
|
5458
|
+
decodedVersion: 0
|
|
5459
|
+
}
|
|
5460
|
+
|
|
5461
|
+
// '@qvac/project-device-seals-by-device' collection key
|
|
5462
|
+
const index88_key = new IndexEncoder([
|
|
5463
|
+
IndexEncoder.BUFFER,
|
|
5464
|
+
IndexEncoder.BUFFER,
|
|
5465
|
+
IndexEncoder.BUFFER,
|
|
5466
|
+
IndexEncoder.BUFFER
|
|
5467
|
+
], { prefix: 88 })
|
|
5468
|
+
|
|
5469
|
+
function index88_indexify (record) {
|
|
5470
|
+
const arr = []
|
|
5471
|
+
|
|
5472
|
+
const a0 = record.deviceId
|
|
5473
|
+
if (a0 === undefined) return arr
|
|
5474
|
+
arr.push(a0)
|
|
5475
|
+
|
|
5476
|
+
const a1 = record.projectId
|
|
5477
|
+
if (a1 === undefined) return arr
|
|
5478
|
+
arr.push(a1)
|
|
5479
|
+
|
|
5480
|
+
const a2 = record.deviceId
|
|
5481
|
+
if (a2 === undefined) return arr
|
|
5482
|
+
arr.push(a2)
|
|
5483
|
+
|
|
5484
|
+
const a3 = record.sealedBy
|
|
5485
|
+
if (a3 === undefined) return arr
|
|
5486
|
+
arr.push(a3)
|
|
5487
|
+
|
|
5488
|
+
return arr
|
|
5489
|
+
}
|
|
5490
|
+
|
|
5491
|
+
// '@qvac/project-device-seals-by-device'
|
|
5492
|
+
const index88 = {
|
|
5493
|
+
name: '@qvac/project-device-seals-by-device',
|
|
5494
|
+
version: 12,
|
|
5495
|
+
id: 88,
|
|
5496
|
+
encodeKey (record) {
|
|
5497
|
+
return index88_key.encode(index88_indexify(record))
|
|
5498
|
+
},
|
|
5499
|
+
encodeKeyRange ({ gt, lt, gte, lte } = {}) {
|
|
5500
|
+
return index88_key.encodeRange({
|
|
5501
|
+
gt: gt ? index88_indexify(gt) : null,
|
|
5502
|
+
lt: lt ? index88_indexify(lt) : null,
|
|
5503
|
+
gte: gte ? index88_indexify(gte) : null,
|
|
5504
|
+
lte: lte ? index88_indexify(lte) : null
|
|
5505
|
+
})
|
|
5506
|
+
},
|
|
5507
|
+
encodeValue: (record) => index88.collection.encodeKey(record),
|
|
5508
|
+
encodeIndexKeys (record, context) {
|
|
5509
|
+
return [index88_key.encode([record.deviceId, record.projectId, record.deviceId, record.sealedBy])]
|
|
5510
|
+
},
|
|
5511
|
+
reconstruct: (keyBuf, valueBuf) => valueBuf,
|
|
5512
|
+
offset: collection87.indexes.length,
|
|
5513
|
+
collection: collection87
|
|
5514
|
+
}
|
|
5515
|
+
collection87.indexes.push(index88)
|
|
5516
|
+
|
|
5517
|
+
// '@qvac/project-device-seals-by-member' collection key
|
|
5518
|
+
const index89_key = new IndexEncoder([
|
|
5519
|
+
IndexEncoder.BUFFER,
|
|
5520
|
+
IndexEncoder.BUFFER,
|
|
5521
|
+
IndexEncoder.BUFFER,
|
|
5522
|
+
IndexEncoder.BUFFER
|
|
5523
|
+
], { prefix: 89 })
|
|
5524
|
+
|
|
5525
|
+
function index89_indexify (record) {
|
|
5526
|
+
const arr = []
|
|
5527
|
+
|
|
5528
|
+
const a0 = record.memberId
|
|
5529
|
+
if (a0 === undefined) return arr
|
|
5530
|
+
arr.push(a0)
|
|
5531
|
+
|
|
5532
|
+
const a1 = record.projectId
|
|
5533
|
+
if (a1 === undefined) return arr
|
|
5534
|
+
arr.push(a1)
|
|
5535
|
+
|
|
5536
|
+
const a2 = record.deviceId
|
|
5537
|
+
if (a2 === undefined) return arr
|
|
5538
|
+
arr.push(a2)
|
|
5539
|
+
|
|
5540
|
+
const a3 = record.sealedBy
|
|
5541
|
+
if (a3 === undefined) return arr
|
|
5542
|
+
arr.push(a3)
|
|
5543
|
+
|
|
5544
|
+
return arr
|
|
5545
|
+
}
|
|
5546
|
+
|
|
5547
|
+
// '@qvac/project-device-seals-by-member'
|
|
5548
|
+
const index89 = {
|
|
5549
|
+
name: '@qvac/project-device-seals-by-member',
|
|
5550
|
+
version: 12,
|
|
5551
|
+
id: 89,
|
|
5552
|
+
encodeKey (record) {
|
|
5553
|
+
return index89_key.encode(index89_indexify(record))
|
|
5554
|
+
},
|
|
5555
|
+
encodeKeyRange ({ gt, lt, gte, lte } = {}) {
|
|
5556
|
+
return index89_key.encodeRange({
|
|
5557
|
+
gt: gt ? index89_indexify(gt) : null,
|
|
5558
|
+
lt: lt ? index89_indexify(lt) : null,
|
|
5559
|
+
gte: gte ? index89_indexify(gte) : null,
|
|
5560
|
+
lte: lte ? index89_indexify(lte) : null
|
|
5561
|
+
})
|
|
5562
|
+
},
|
|
5563
|
+
encodeValue: (record) => index89.collection.encodeKey(record),
|
|
5564
|
+
encodeIndexKeys (record, context) {
|
|
5565
|
+
return [index89_key.encode([record.memberId, record.projectId, record.deviceId, record.sealedBy])]
|
|
5566
|
+
},
|
|
5567
|
+
reconstruct: (keyBuf, valueBuf) => valueBuf,
|
|
5568
|
+
offset: collection87.indexes.length,
|
|
5569
|
+
collection: collection87
|
|
5570
|
+
}
|
|
5571
|
+
collection87.indexes.push(index89)
|
|
5572
|
+
|
|
5091
5573
|
const collections = [
|
|
5092
5574
|
collection0,
|
|
5093
5575
|
collection1,
|
|
@@ -5134,7 +5616,10 @@ const collections = [
|
|
|
5134
5616
|
collection68,
|
|
5135
5617
|
collection69,
|
|
5136
5618
|
collection70,
|
|
5137
|
-
collection71
|
|
5619
|
+
collection71,
|
|
5620
|
+
collection83,
|
|
5621
|
+
collection85,
|
|
5622
|
+
collection87
|
|
5138
5623
|
]
|
|
5139
5624
|
|
|
5140
5625
|
const indexes = [
|
|
@@ -5174,7 +5659,11 @@ const indexes = [
|
|
|
5174
5659
|
index79,
|
|
5175
5660
|
index80,
|
|
5176
5661
|
index81,
|
|
5177
|
-
index82
|
|
5662
|
+
index82,
|
|
5663
|
+
index84,
|
|
5664
|
+
index86,
|
|
5665
|
+
index88,
|
|
5666
|
+
index89
|
|
5178
5667
|
]
|
|
5179
5668
|
|
|
5180
5669
|
export default { versions, collections, indexes, resolveCollection, resolveIndex }
|
|
@@ -5227,6 +5716,9 @@ function resolveCollection (name) {
|
|
|
5227
5716
|
case '@qvac/project-host-keys': return collection69
|
|
5228
5717
|
case '@qvac/project-device-keys': return collection70
|
|
5229
5718
|
case '@qvac/skill-secrets': return collection71
|
|
5719
|
+
case '@qvac/project-host-seals': return collection83
|
|
5720
|
+
case '@qvac/project-member-seals': return collection85
|
|
5721
|
+
case '@qvac/project-device-seals': return collection87
|
|
5230
5722
|
default: return null
|
|
5231
5723
|
}
|
|
5232
5724
|
}
|
|
@@ -5270,6 +5762,10 @@ function resolveIndex (name) {
|
|
|
5270
5762
|
case '@qvac/agent-users-by-user': return index80
|
|
5271
5763
|
case '@qvac/project-keys-by-member': return index81
|
|
5272
5764
|
case '@qvac/terminal-run-statuses': return index82
|
|
5765
|
+
case '@qvac/project-host-seals-by-device': return index84
|
|
5766
|
+
case '@qvac/project-member-seals-by-member': return index86
|
|
5767
|
+
case '@qvac/project-device-seals-by-device': return index88
|
|
5768
|
+
case '@qvac/project-device-seals-by-member': return index89
|
|
5273
5769
|
default: return null
|
|
5274
5770
|
}
|
|
5275
5771
|
}
|