@qvac/core 1.0.0-rc.2 → 1.0.0-rc.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 +158 -2
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.js +1 -0
- package/dist-lib/lib/api/chunk-delta.d.ts +7 -2
- package/dist-lib/lib/api/chunk-delta.js +89 -7
- package/dist-lib/lib/api/chunks.js +14 -8
- package/dist-lib/lib/api/config.d.ts +4 -1
- package/dist-lib/lib/api/config.js +45 -4
- package/dist-lib/lib/api/custom-models.js +3 -5
- package/dist-lib/lib/api/devices.js +3 -1
- package/dist-lib/lib/api/files.d.ts +1 -1
- package/dist-lib/lib/api/files.js +65 -8
- package/dist-lib/lib/api/instrument.js +12 -4
- package/dist-lib/lib/api/members.js +7 -13
- package/dist-lib/lib/api/mesh.d.ts +1 -3
- package/dist-lib/lib/api/mesh.js +2 -2
- package/dist-lib/lib/api/notifications.js +8 -4
- package/dist-lib/lib/api/projects.js +5 -1
- package/dist-lib/lib/api/rag.js +32 -19
- package/dist-lib/lib/api/served.js +2 -1
- package/dist-lib/lib/api/workspace.js +0 -1
- package/dist-lib/lib/assistant/harness.d.ts +8 -2
- package/dist-lib/lib/assistant/harness.js +17 -4
- package/dist-lib/lib/assistant/history.d.ts +1 -1
- package/dist-lib/lib/assistant/history.js +19 -13
- package/dist-lib/lib/assistant/message.d.ts +6 -1
- package/dist-lib/lib/assistant/message.js +22 -2
- package/dist-lib/lib/assistant/model-round.d.ts +5 -0
- package/dist-lib/lib/assistant/model-round.js +46 -18
- 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 +25 -0
- package/dist-lib/lib/assistant/pdf-pages.js +75 -0
- package/dist-lib/lib/assistant/round-host.js +5 -3
- package/dist-lib/lib/assistant-client.d.ts +2 -1
- package/dist-lib/lib/assistant-client.js +24 -6
- package/dist-lib/lib/assistant-tree.d.ts +2 -0
- package/dist-lib/lib/assistant-tree.js +8 -5
- package/dist-lib/lib/assistant.d.ts +20 -7
- package/dist-lib/lib/assistant.js +468 -240
- package/dist-lib/lib/client.js +10 -1
- package/dist-lib/lib/compaction.d.ts +3 -1
- package/dist-lib/lib/compaction.js +18 -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 +13 -16
- package/dist-lib/lib/core/chat-copy.js +1 -1
- package/dist-lib/lib/core/chat-fork.js +2 -1
- package/dist-lib/lib/core/chat-move.d.ts +4 -0
- package/dist-lib/lib/core/chat-move.js +42 -11
- package/dist-lib/lib/core/chat.d.ts +0 -1
- package/dist-lib/lib/core/chat.js +1 -1
- 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 +12 -1
- package/dist-lib/lib/core/collections.js +12 -1
- 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/activity.d.ts +3 -2
- package/dist-lib/lib/core/contract/activity.js +39 -21
- package/dist-lib/lib/core/contract/agent-join.js +15 -19
- package/dist-lib/lib/core/contract/agents.js +8 -7
- package/dist-lib/lib/core/contract/chat.d.ts +3 -0
- package/dist-lib/lib/core/contract/chat.js +12 -1
- package/dist-lib/lib/core/contract/chunks.js +16 -6
- package/dist-lib/lib/core/contract/devices.js +6 -4
- package/dist-lib/lib/core/contract/index.js +2 -1
- package/dist-lib/lib/core/contract/invites.js +12 -31
- package/dist-lib/lib/core/contract/joined-meshes.js +2 -1
- package/dist-lib/lib/core/contract/mesh-rules.js +4 -0
- package/dist-lib/lib/core/contract/model-requests.js +7 -6
- package/dist-lib/lib/core/contract/project-device-keys.js +15 -6
- package/dist-lib/lib/core/contract/project-host-keys.js +5 -4
- package/dist-lib/lib/core/contract/projects.js +12 -13
- package/dist-lib/lib/core/contract/public-seeds.js +5 -5
- package/dist-lib/lib/core/contract/roles.js +2 -1
- package/dist-lib/lib/core/contract/run-requests.d.ts +1 -1
- package/dist-lib/lib/core/contract/run-requests.js +19 -13
- package/dist-lib/lib/core/contract/shipped-rows.d.ts +2 -0
- package/dist-lib/lib/core/contract/shipped-rows.js +22 -0
- package/dist-lib/lib/core/contract/workspace.js +4 -10
- package/dist-lib/lib/core/contract/writers.js +20 -6
- package/dist-lib/lib/core/devices.d.ts +2 -1
- package/dist-lib/lib/core/devices.js +4 -2
- 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 +8 -5
- package/dist-lib/lib/core/files/index.js +109 -18
- package/dist-lib/lib/core/files/processing/index.d.ts +1 -1
- package/dist-lib/lib/core/files/processing/index.js +8 -2
- package/dist-lib/lib/core/files/processing/source.d.ts +1 -0
- package/dist-lib/lib/core/files/processing/source.js +3 -0
- package/dist-lib/lib/core/files/processing/state.d.ts +1 -0
- package/dist-lib/lib/core/files/processing/state.js +7 -0
- package/dist-lib/lib/core/files/rag/build.d.ts +1 -0
- package/dist-lib/lib/core/files/rag/build.js +14 -1
- 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/produce.js +1 -0
- package/dist-lib/lib/core/files/rag/retrieval/full-text.d.ts +2 -0
- package/dist-lib/lib/core/files/rag/retrieval/full-text.js +7 -1
- package/dist-lib/lib/core/first-event.d.ts +6 -0
- package/dist-lib/lib/core/first-event.js +13 -0
- package/dist-lib/lib/core/invite.d.ts +2 -2
- package/dist-lib/lib/core/invite.js +5 -4
- package/dist-lib/lib/core/local/index.d.ts +10 -1
- package/dist-lib/lib/core/local/index.js +105 -10
- package/dist-lib/lib/core/mesh.d.ts +15 -4
- package/dist-lib/lib/core/mesh.js +128 -57
- package/dist-lib/lib/core/migrations/chat-chunks.d.ts +4 -0
- package/dist-lib/lib/core/migrations/chat-chunks.js +47 -0
- package/dist-lib/lib/core/migrations/file-index.d.ts +1 -1
- package/dist-lib/lib/core/migrations/file-index.js +6 -2
- package/dist-lib/lib/core/migrations/index.d.ts +2 -1
- package/dist-lib/lib/core/migrations/index.js +66 -9
- package/dist-lib/lib/core/notification.js +96 -23
- 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/peer-duplex.js +57 -5
- package/dist-lib/lib/core/public-mesh.js +8 -2
- package/dist-lib/lib/core/run-requests.js +2 -3
- package/dist-lib/lib/core/senders.d.ts +7 -6
- package/dist-lib/lib/core/senders.js +23 -30
- package/dist-lib/lib/core/shared-agents.d.ts +1 -0
- package/dist-lib/lib/core/shared-agents.js +47 -19
- package/dist-lib/lib/core/sync/background.d.ts +3 -15
- package/dist-lib/lib/core/sync/background.js +25 -102
- package/dist-lib/lib/core/sync/devices.js +6 -3
- package/dist-lib/lib/core/sync/index.js +12 -2
- package/dist-lib/lib/core/sync-status.js +3 -3
- package/dist-lib/lib/core.d.ts +59 -10
- package/dist-lib/lib/core.js +706 -174
- 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/doctor/redact.js +1 -1
- package/dist-lib/lib/errors.d.ts +4 -0
- package/dist-lib/lib/errors.js +4 -0
- package/dist-lib/lib/fs-drive-bridge.d.ts +7 -0
- package/dist-lib/lib/fs-drive-bridge.js +308 -30
- package/dist-lib/lib/integrations/setup-routes.js +7 -5
- package/dist-lib/lib/knowledge-search.d.ts +1 -1
- package/dist-lib/lib/knowledge-search.js +5 -46
- package/dist-lib/lib/kv-cache-retention.d.ts +35 -0
- package/dist-lib/lib/kv-cache-retention.js +98 -0
- package/dist-lib/lib/latest-frame.d.ts +10 -0
- package/dist-lib/lib/latest-frame.js +48 -0
- package/dist-lib/lib/model-download.d.ts +6 -1
- package/dist-lib/lib/model-download.js +32 -17
- package/dist-lib/lib/oauth/resolve.js +13 -5
- package/dist-lib/lib/reconnecting-watch.js +19 -11
- package/dist-lib/lib/run-notices.d.ts +2 -0
- package/dist-lib/lib/run-notices.js +5 -0
- package/dist-lib/lib/run-replay.d.ts +13 -1
- package/dist-lib/lib/run-replay.js +58 -21
- package/dist-lib/schema/build.js +66 -57
- package/dist-lib/schema/content.js +2 -1
- package/dist-lib/schema/engine.js +37 -5
- package/dist-lib/schema/field-order.js +7 -1
- package/dist-lib/schema/indexes.d.ts +4 -0
- package/dist-lib/schema/indexes.js +18 -0
- package/dist-lib/schema/local.js +9 -2
- package/dist-lib/schema/qvac.js +112 -4
- package/dist-lib/spec/bind.js +3 -0
- package/dist-lib/spec/calls.js +1 -0
- package/dist-lib/spec/capabilities.d.ts +2 -0
- package/dist-lib/spec/hrpc/hrpc.json +13 -0
- package/dist-lib/spec/hrpc/index.js +15 -3
- package/dist-lib/spec/hrpc/messages.js +1475 -1392
- package/dist-lib/spec/hyperschema/index.js +1475 -1392
- package/dist-lib/spec/hyperschema/schema.json +86 -1
- package/dist-lib/spec/hyperschema/types.d.ts +21 -1
- package/dist-lib/spec/local/hyperdb/messages.js +110 -54
- package/dist-lib/spec/local/hyperschema/index.js +56 -28
- package/dist-lib/spec/local/hyperschema/schema.json +55 -20
- package/dist-lib/spec/local/hyperschema/types.d.ts +8 -1
- package/dist-lib/spec/mesh/hyperdb/db.json +255 -51
- package/dist-lib/spec/mesh/hyperdb/index.js +1063 -404
- package/dist-lib/spec/mesh/hyperdb/messages.js +1647 -1214
- package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +62 -56
- package/dist-lib/spec/mesh/hyperdispatch/index.js +156 -139
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +787 -629
- package/dist-lib/spec/mesh/hyperschema/index.js +787 -629
- package/dist-lib/spec/mesh/hyperschema/schema.json +283 -174
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +29 -1
- package/package.json +23 -17
- package/worker/assistant-sidecar.mjs +3 -0
- package/dist-lib/lib/core/files/processing/settle.d.ts +0 -13
- package/dist-lib/lib/core/files/processing/settle.js +0 -86
- package/dist-lib/lib/core/migrations/device-indexes.d.ts +0 -2
- package/dist-lib/lib/core/migrations/device-indexes.js +0 -7
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// This file is autogenerated by the hyperschema compiler
|
|
2
|
-
// Schema Version:
|
|
2
|
+
// Schema Version: 13
|
|
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 = 13
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line no-unused-vars
|
|
12
12
|
let version = VERSION
|
|
@@ -36,17 +36,19 @@ const encoding0 = {
|
|
|
36
36
|
const encoding1 = {
|
|
37
37
|
preencode(state, m) {
|
|
38
38
|
c.string.preencode(state, m.key)
|
|
39
|
-
state.end++ // max flag is
|
|
39
|
+
state.end++ // max flag is 2 so always one byte
|
|
40
40
|
|
|
41
41
|
if (m.value) c.json.preencode(state, m.value)
|
|
42
|
+
if (version >= 12 && m.falsyValue) c.string.preencode(state, m.falsyValue)
|
|
42
43
|
},
|
|
43
44
|
encode(state, m) {
|
|
44
|
-
const flags = m.value ? 1 : 0
|
|
45
|
+
const flags = (m.value ? 1 : 0) | ((version >= 12 && m.falsyValue) ? 2 : 0)
|
|
45
46
|
|
|
46
47
|
c.string.encode(state, m.key)
|
|
47
48
|
c.uint.encode(state, flags)
|
|
48
49
|
|
|
49
50
|
if (m.value) c.json.encode(state, m.value)
|
|
51
|
+
if (version >= 12 && m.falsyValue) c.string.encode(state, m.falsyValue)
|
|
50
52
|
},
|
|
51
53
|
decode(state) {
|
|
52
54
|
const r0 = c.string.decode(state)
|
|
@@ -55,7 +57,8 @@ const encoding1 = {
|
|
|
55
57
|
return {
|
|
56
58
|
version: 0,
|
|
57
59
|
key: r0,
|
|
58
|
-
value: (flags & 1) !== 0 ? c.json.decode(state) : null
|
|
60
|
+
value: (flags & 1) !== 0 ? c.json.decode(state) : null,
|
|
61
|
+
falsyValue: (version >= 12 && (flags & 2) !== 0) ? c.string.decode(state) : null
|
|
59
62
|
}
|
|
60
63
|
}
|
|
61
64
|
}
|
|
@@ -1061,23 +1064,24 @@ const encoding25 = {
|
|
|
1061
1064
|
preencode(state, m) {
|
|
1062
1065
|
c.buffer.preencode(state, m.key)
|
|
1063
1066
|
c.buffer.preencode(state, m.seed)
|
|
1064
|
-
state.end++ // max flag is
|
|
1067
|
+
state.end++ // max flag is 8 so always one byte
|
|
1065
1068
|
|
|
1066
1069
|
if (version >= 4 && m.writerSeed) c.string.preencode(state, m.writerSeed)
|
|
1067
|
-
if (version >=
|
|
1070
|
+
if (version >= 13 && m.role) c.string.preencode(state, m.role)
|
|
1068
1071
|
},
|
|
1069
1072
|
encode(state, m) {
|
|
1070
1073
|
const flags =
|
|
1071
1074
|
((version >= 4 && m.creator) ? 1 : 0) |
|
|
1072
1075
|
((version >= 4 && m.writerSeed) ? 2 : 0) |
|
|
1073
|
-
((version >= 12 && m.
|
|
1076
|
+
((version >= 12 && m.compute) ? 4 : 0) |
|
|
1077
|
+
((version >= 13 && m.role) ? 8 : 0)
|
|
1074
1078
|
|
|
1075
1079
|
c.buffer.encode(state, m.key)
|
|
1076
1080
|
c.buffer.encode(state, m.seed)
|
|
1077
1081
|
c.uint.encode(state, flags)
|
|
1078
1082
|
|
|
1079
1083
|
if (version >= 4 && m.writerSeed) c.string.encode(state, m.writerSeed)
|
|
1080
|
-
if (version >=
|
|
1084
|
+
if (version >= 13 && m.role) c.string.encode(state, m.role)
|
|
1081
1085
|
},
|
|
1082
1086
|
decode(state) {
|
|
1083
1087
|
const r0 = c.buffer.decode(state)
|
|
@@ -1090,7 +1094,8 @@ const encoding25 = {
|
|
|
1090
1094
|
seed: r1,
|
|
1091
1095
|
creator: (version >= 4 && (flags & 1) !== 0),
|
|
1092
1096
|
writerSeed: (version >= 4 && (flags & 2) !== 0) ? c.string.decode(state) : null,
|
|
1093
|
-
|
|
1097
|
+
compute: (version >= 12 && (flags & 4) !== 0),
|
|
1098
|
+
role: (version >= 13 && (flags & 8) !== 0) ? c.string.decode(state) : null
|
|
1094
1099
|
}
|
|
1095
1100
|
}
|
|
1096
1101
|
}
|
|
@@ -1219,8 +1224,13 @@ const encoding29 = {
|
|
|
1219
1224
|
((version >= 5 && m.migratedAt) ? 8 : 0) |
|
|
1220
1225
|
((version >= 5 && m.compute) ? 16 : 0) |
|
|
1221
1226
|
((version >= 7 && m.awaitingAdmission) ? 32 : 0) |
|
|
1222
|
-
((version >= 12 && m.
|
|
1223
|
-
((version >= 12 && m.
|
|
1227
|
+
((version >= 12 && m.bootKey) ? 64 : 0) |
|
|
1228
|
+
((version >= 12 && m.bootLength) ? 128 : 0) |
|
|
1229
|
+
((version >= 13 && m.role) ? 256 : 0) |
|
|
1230
|
+
((version >= 13 && m.workspaceKey) ? 512 : 0) |
|
|
1231
|
+
((version >= 13 && m.joinedAt) ? 1024 : 0) |
|
|
1232
|
+
((version >= 13 && m.kicked) ? 2048 : 0) |
|
|
1233
|
+
((version >= 13 && m.retiredUnder) ? 4096 : 0)
|
|
1224
1234
|
|
|
1225
1235
|
c.fixed32.preencode(state, m.key)
|
|
1226
1236
|
c.fixed32.preencode(state, m.seed)
|
|
@@ -1229,8 +1239,12 @@ const encoding29 = {
|
|
|
1229
1239
|
if (version >= 5 && m.writerSeed) c.string.preencode(state, m.writerSeed)
|
|
1230
1240
|
if (version >= 5 && m.leftAt) c.uint.preencode(state, m.leftAt)
|
|
1231
1241
|
if (version >= 5 && m.migratedAt) c.uint.preencode(state, m.migratedAt)
|
|
1232
|
-
if (version >= 12 && m.
|
|
1233
|
-
if (version >= 12 && m.
|
|
1242
|
+
if (version >= 12 && m.bootKey) c.fixed32.preencode(state, m.bootKey)
|
|
1243
|
+
if (version >= 12 && m.bootLength) c.uint.preencode(state, m.bootLength)
|
|
1244
|
+
if (version >= 13 && m.role) c.string.preencode(state, m.role)
|
|
1245
|
+
if (version >= 13 && m.workspaceKey) c.fixed32.preencode(state, m.workspaceKey)
|
|
1246
|
+
if (version >= 13 && m.joinedAt) c.uint.preencode(state, m.joinedAt)
|
|
1247
|
+
if (version >= 13 && m.retiredUnder) c.fixed32.preencode(state, m.retiredUnder)
|
|
1234
1248
|
},
|
|
1235
1249
|
encode(state, m) {
|
|
1236
1250
|
const flags =
|
|
@@ -1240,8 +1254,13 @@ const encoding29 = {
|
|
|
1240
1254
|
((version >= 5 && m.migratedAt) ? 8 : 0) |
|
|
1241
1255
|
((version >= 5 && m.compute) ? 16 : 0) |
|
|
1242
1256
|
((version >= 7 && m.awaitingAdmission) ? 32 : 0) |
|
|
1243
|
-
((version >= 12 && m.
|
|
1244
|
-
((version >= 12 && m.
|
|
1257
|
+
((version >= 12 && m.bootKey) ? 64 : 0) |
|
|
1258
|
+
((version >= 12 && m.bootLength) ? 128 : 0) |
|
|
1259
|
+
((version >= 13 && m.role) ? 256 : 0) |
|
|
1260
|
+
((version >= 13 && m.workspaceKey) ? 512 : 0) |
|
|
1261
|
+
((version >= 13 && m.joinedAt) ? 1024 : 0) |
|
|
1262
|
+
((version >= 13 && m.kicked) ? 2048 : 0) |
|
|
1263
|
+
((version >= 13 && m.retiredUnder) ? 4096 : 0)
|
|
1245
1264
|
|
|
1246
1265
|
c.fixed32.encode(state, m.key)
|
|
1247
1266
|
c.fixed32.encode(state, m.seed)
|
|
@@ -1250,8 +1269,12 @@ const encoding29 = {
|
|
|
1250
1269
|
if (version >= 5 && m.writerSeed) c.string.encode(state, m.writerSeed)
|
|
1251
1270
|
if (version >= 5 && m.leftAt) c.uint.encode(state, m.leftAt)
|
|
1252
1271
|
if (version >= 5 && m.migratedAt) c.uint.encode(state, m.migratedAt)
|
|
1253
|
-
if (version >= 12 && m.
|
|
1254
|
-
if (version >= 12 && m.
|
|
1272
|
+
if (version >= 12 && m.bootKey) c.fixed32.encode(state, m.bootKey)
|
|
1273
|
+
if (version >= 12 && m.bootLength) c.uint.encode(state, m.bootLength)
|
|
1274
|
+
if (version >= 13 && m.role) c.string.encode(state, m.role)
|
|
1275
|
+
if (version >= 13 && m.workspaceKey) c.fixed32.encode(state, m.workspaceKey)
|
|
1276
|
+
if (version >= 13 && m.joinedAt) c.uint.encode(state, m.joinedAt)
|
|
1277
|
+
if (version >= 13 && m.retiredUnder) c.fixed32.encode(state, m.retiredUnder)
|
|
1255
1278
|
},
|
|
1256
1279
|
decode(state) {
|
|
1257
1280
|
const r0 = c.fixed32.decode(state)
|
|
@@ -1268,8 +1291,13 @@ const encoding29 = {
|
|
|
1268
1291
|
migratedAt: (version >= 5 && (flags & 8) !== 0) ? c.uint.decode(state) : 0,
|
|
1269
1292
|
compute: (version >= 5 && (flags & 16) !== 0),
|
|
1270
1293
|
awaitingAdmission: (version >= 7 && (flags & 32) !== 0),
|
|
1271
|
-
|
|
1272
|
-
|
|
1294
|
+
bootKey: (version >= 12 && (flags & 64) !== 0) ? c.fixed32.decode(state) : null,
|
|
1295
|
+
bootLength: (version >= 12 && (flags & 128) !== 0) ? c.uint.decode(state) : 0,
|
|
1296
|
+
role: (version >= 13 && (flags & 256) !== 0) ? c.string.decode(state) : null,
|
|
1297
|
+
workspaceKey: (version >= 13 && (flags & 512) !== 0) ? c.fixed32.decode(state) : null,
|
|
1298
|
+
joinedAt: (version >= 13 && (flags & 1024) !== 0) ? c.uint.decode(state) : 0,
|
|
1299
|
+
kicked: (version >= 13 && (flags & 2048) !== 0),
|
|
1300
|
+
retiredUnder: (version >= 13 && (flags & 4096) !== 0) ? c.fixed32.decode(state) : null
|
|
1273
1301
|
}
|
|
1274
1302
|
}
|
|
1275
1303
|
}
|
|
@@ -1825,15 +1853,15 @@ const encoding43 = {
|
|
|
1825
1853
|
c.fixed32.preencode(state, m.key)
|
|
1826
1854
|
state.end++ // max flag is 1 so always one byte
|
|
1827
1855
|
|
|
1828
|
-
if (version >=
|
|
1856
|
+
if (version >= 13 && m.cores) encoding43_1.preencode(state, m.cores)
|
|
1829
1857
|
},
|
|
1830
1858
|
encode(state, m) {
|
|
1831
|
-
const flags = (version >=
|
|
1859
|
+
const flags = (version >= 13 && m.cores) ? 1 : 0
|
|
1832
1860
|
|
|
1833
1861
|
c.fixed32.encode(state, m.key)
|
|
1834
1862
|
c.uint.encode(state, flags)
|
|
1835
1863
|
|
|
1836
|
-
if (version >=
|
|
1864
|
+
if (version >= 13 && m.cores) encoding43_1.encode(state, m.cores)
|
|
1837
1865
|
},
|
|
1838
1866
|
decode(state) {
|
|
1839
1867
|
const r0 = c.fixed32.decode(state)
|
|
@@ -1842,7 +1870,7 @@ const encoding43 = {
|
|
|
1842
1870
|
return {
|
|
1843
1871
|
version: 0,
|
|
1844
1872
|
key: r0,
|
|
1845
|
-
cores: (version >=
|
|
1873
|
+
cores: (version >= 13 && (flags & 1) !== 0) ? encoding43_1.decode(state) : null
|
|
1846
1874
|
}
|
|
1847
1875
|
}
|
|
1848
1876
|
}
|
|
@@ -1962,20 +1990,20 @@ const encoding47 = {
|
|
|
1962
1990
|
c.string.preencode(state, m.runId)
|
|
1963
1991
|
state.end++ // max flag is 1 so always one byte
|
|
1964
1992
|
|
|
1965
|
-
if (version >=
|
|
1993
|
+
if (version >= 13 && m.generation) c.string.preencode(state, m.generation)
|
|
1966
1994
|
c.uint.preencode(state, m.nextSeq)
|
|
1967
1995
|
c.uint.preencode(state, m.length)
|
|
1968
1996
|
c.fixed32.preencode(state, m.digestKey)
|
|
1969
1997
|
c.uint.preencode(state, m.updatedAt)
|
|
1970
1998
|
},
|
|
1971
1999
|
encode(state, m) {
|
|
1972
|
-
const flags = (version >=
|
|
2000
|
+
const flags = (version >= 13 && m.generation) ? 1 : 0
|
|
1973
2001
|
|
|
1974
2002
|
c.fixed32.encode(state, m.meshKey)
|
|
1975
2003
|
c.string.encode(state, m.runId)
|
|
1976
2004
|
c.uint.encode(state, flags)
|
|
1977
2005
|
|
|
1978
|
-
if (version >=
|
|
2006
|
+
if (version >= 13 && m.generation) c.string.encode(state, m.generation)
|
|
1979
2007
|
c.uint.encode(state, m.nextSeq)
|
|
1980
2008
|
c.uint.encode(state, m.length)
|
|
1981
2009
|
c.fixed32.encode(state, m.digestKey)
|
|
@@ -1990,7 +2018,7 @@ const encoding47 = {
|
|
|
1990
2018
|
version: 0,
|
|
1991
2019
|
meshKey: r0,
|
|
1992
2020
|
runId: r1,
|
|
1993
|
-
generation: (version >=
|
|
2021
|
+
generation: (version >= 13 && (flags & 1) !== 0) ? c.string.decode(state) : null,
|
|
1994
2022
|
nextSeq: c.uint.decode(state),
|
|
1995
2023
|
length: c.uint.decode(state),
|
|
1996
2024
|
digestKey: c.fixed32.decode(state),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version":
|
|
2
|
+
"version": 13,
|
|
3
3
|
"schema": [
|
|
4
4
|
{
|
|
5
5
|
"name": "qvac-state",
|
|
@@ -41,6 +41,11 @@
|
|
|
41
41
|
"name": "value",
|
|
42
42
|
"type": "json",
|
|
43
43
|
"version": 1
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "falsyValue",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"version": 12
|
|
44
49
|
}
|
|
45
50
|
]
|
|
46
51
|
},
|
|
@@ -678,10 +683,15 @@
|
|
|
678
683
|
"type": "string",
|
|
679
684
|
"version": 4
|
|
680
685
|
},
|
|
686
|
+
{
|
|
687
|
+
"name": "compute",
|
|
688
|
+
"type": "bool",
|
|
689
|
+
"version": 12
|
|
690
|
+
},
|
|
681
691
|
{
|
|
682
692
|
"name": "role",
|
|
683
693
|
"type": "string",
|
|
684
|
-
"version":
|
|
694
|
+
"version": 13
|
|
685
695
|
}
|
|
686
696
|
]
|
|
687
697
|
},
|
|
@@ -781,15 +791,40 @@
|
|
|
781
791
|
"type": "bool",
|
|
782
792
|
"version": 7
|
|
783
793
|
},
|
|
794
|
+
{
|
|
795
|
+
"name": "bootKey",
|
|
796
|
+
"type": "fixed32",
|
|
797
|
+
"version": 12
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"name": "bootLength",
|
|
801
|
+
"type": "uint",
|
|
802
|
+
"version": 12
|
|
803
|
+
},
|
|
784
804
|
{
|
|
785
805
|
"name": "role",
|
|
786
806
|
"type": "string",
|
|
787
|
-
"version":
|
|
807
|
+
"version": 13
|
|
788
808
|
},
|
|
789
809
|
{
|
|
790
810
|
"name": "workspaceKey",
|
|
791
811
|
"type": "fixed32",
|
|
792
|
-
"version":
|
|
812
|
+
"version": 13
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"name": "joinedAt",
|
|
816
|
+
"type": "uint",
|
|
817
|
+
"version": 13
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"name": "kicked",
|
|
821
|
+
"type": "bool",
|
|
822
|
+
"version": 13
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
"name": "retiredUnder",
|
|
826
|
+
"type": "fixed32",
|
|
827
|
+
"version": 13
|
|
793
828
|
}
|
|
794
829
|
]
|
|
795
830
|
},
|
|
@@ -1146,13 +1181,13 @@
|
|
|
1146
1181
|
"name": "key",
|
|
1147
1182
|
"required": true,
|
|
1148
1183
|
"type": "fixed32",
|
|
1149
|
-
"version":
|
|
1184
|
+
"version": 13
|
|
1150
1185
|
},
|
|
1151
1186
|
{
|
|
1152
1187
|
"name": "cores",
|
|
1153
1188
|
"array": true,
|
|
1154
1189
|
"type": "fixed32",
|
|
1155
|
-
"version":
|
|
1190
|
+
"version": 13
|
|
1156
1191
|
}
|
|
1157
1192
|
]
|
|
1158
1193
|
},
|
|
@@ -1178,19 +1213,19 @@
|
|
|
1178
1213
|
"name": "meshKey",
|
|
1179
1214
|
"required": true,
|
|
1180
1215
|
"type": "fixed32",
|
|
1181
|
-
"version":
|
|
1216
|
+
"version": 13
|
|
1182
1217
|
},
|
|
1183
1218
|
{
|
|
1184
1219
|
"name": "name",
|
|
1185
1220
|
"required": true,
|
|
1186
1221
|
"type": "string",
|
|
1187
|
-
"version":
|
|
1222
|
+
"version": 13
|
|
1188
1223
|
},
|
|
1189
1224
|
{
|
|
1190
1225
|
"name": "namedAt",
|
|
1191
1226
|
"required": true,
|
|
1192
1227
|
"type": "uint",
|
|
1193
|
-
"version":
|
|
1228
|
+
"version": 13
|
|
1194
1229
|
}
|
|
1195
1230
|
]
|
|
1196
1231
|
},
|
|
@@ -1216,42 +1251,42 @@
|
|
|
1216
1251
|
"name": "meshKey",
|
|
1217
1252
|
"required": true,
|
|
1218
1253
|
"type": "fixed32",
|
|
1219
|
-
"version":
|
|
1254
|
+
"version": 13
|
|
1220
1255
|
},
|
|
1221
1256
|
{
|
|
1222
1257
|
"name": "runId",
|
|
1223
1258
|
"required": true,
|
|
1224
1259
|
"type": "string",
|
|
1225
|
-
"version":
|
|
1260
|
+
"version": 13
|
|
1226
1261
|
},
|
|
1227
1262
|
{
|
|
1228
1263
|
"name": "generation",
|
|
1229
1264
|
"type": "string",
|
|
1230
|
-
"version":
|
|
1265
|
+
"version": 13
|
|
1231
1266
|
},
|
|
1232
1267
|
{
|
|
1233
1268
|
"name": "nextSeq",
|
|
1234
1269
|
"required": true,
|
|
1235
1270
|
"type": "uint",
|
|
1236
|
-
"version":
|
|
1271
|
+
"version": 13
|
|
1237
1272
|
},
|
|
1238
1273
|
{
|
|
1239
1274
|
"name": "length",
|
|
1240
1275
|
"required": true,
|
|
1241
1276
|
"type": "uint",
|
|
1242
|
-
"version":
|
|
1277
|
+
"version": 13
|
|
1243
1278
|
},
|
|
1244
1279
|
{
|
|
1245
1280
|
"name": "digestKey",
|
|
1246
1281
|
"required": true,
|
|
1247
1282
|
"type": "fixed32",
|
|
1248
|
-
"version":
|
|
1283
|
+
"version": 13
|
|
1249
1284
|
},
|
|
1250
1285
|
{
|
|
1251
1286
|
"name": "updatedAt",
|
|
1252
1287
|
"required": true,
|
|
1253
1288
|
"type": "uint",
|
|
1254
|
-
"version":
|
|
1289
|
+
"version": 13
|
|
1255
1290
|
}
|
|
1256
1291
|
]
|
|
1257
1292
|
},
|
|
@@ -1277,25 +1312,25 @@
|
|
|
1277
1312
|
"name": "meshKey",
|
|
1278
1313
|
"required": true,
|
|
1279
1314
|
"type": "fixed32",
|
|
1280
|
-
"version":
|
|
1315
|
+
"version": 13
|
|
1281
1316
|
},
|
|
1282
1317
|
{
|
|
1283
1318
|
"name": "runId",
|
|
1284
1319
|
"required": true,
|
|
1285
1320
|
"type": "string",
|
|
1286
|
-
"version":
|
|
1321
|
+
"version": 13
|
|
1287
1322
|
},
|
|
1288
1323
|
{
|
|
1289
1324
|
"name": "seq",
|
|
1290
1325
|
"required": true,
|
|
1291
1326
|
"type": "uint",
|
|
1292
|
-
"version":
|
|
1327
|
+
"version": 13
|
|
1293
1328
|
},
|
|
1294
1329
|
{
|
|
1295
1330
|
"name": "step",
|
|
1296
1331
|
"required": true,
|
|
1297
1332
|
"type": "json",
|
|
1298
|
-
"version":
|
|
1333
|
+
"version": 13
|
|
1299
1334
|
}
|
|
1300
1335
|
]
|
|
1301
1336
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is autogenerated by hyperschema-ts
|
|
2
|
-
// Schema version:
|
|
2
|
+
// Schema version: 13
|
|
3
3
|
// Do not edit manually.
|
|
4
4
|
|
|
5
5
|
export type LocalQvacState = 1 | 2 | 3 | 4
|
|
@@ -7,6 +7,7 @@ export type LocalQvacState = 1 | 2 | 3 | 4
|
|
|
7
7
|
export interface LocalConfigV1 {
|
|
8
8
|
key: string
|
|
9
9
|
value?: unknown | null
|
|
10
|
+
falsyValue?: string | null
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export type LocalConfig = (LocalConfigV1 & { version?: number })
|
|
@@ -132,6 +133,7 @@ export interface LocalMeshDepartureV1 {
|
|
|
132
133
|
seed: Buffer
|
|
133
134
|
creator?: boolean
|
|
134
135
|
writerSeed?: string | null
|
|
136
|
+
compute?: boolean
|
|
135
137
|
role?: string | null
|
|
136
138
|
}
|
|
137
139
|
|
|
@@ -154,8 +156,13 @@ export interface LocalMeshMembershipV1 {
|
|
|
154
156
|
migratedAt?: number
|
|
155
157
|
compute?: boolean
|
|
156
158
|
awaitingAdmission?: boolean
|
|
159
|
+
bootKey?: Buffer | null
|
|
160
|
+
bootLength?: number
|
|
157
161
|
role?: string | null
|
|
158
162
|
workspaceKey?: Buffer | null
|
|
163
|
+
joinedAt?: number
|
|
164
|
+
kicked?: boolean
|
|
165
|
+
retiredUnder?: Buffer | null
|
|
159
166
|
}
|
|
160
167
|
|
|
161
168
|
export type LocalMeshMembership = (LocalMeshMembershipV1 & { version?: number })
|