@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
|
@@ -8578,11 +8578,6 @@
|
|
|
8578
8578
|
"name": "displayName",
|
|
8579
8579
|
"type": "string",
|
|
8580
8580
|
"version": 1
|
|
8581
|
-
},
|
|
8582
|
-
{
|
|
8583
|
-
"name": "ownWorkspace",
|
|
8584
|
-
"type": "string",
|
|
8585
|
-
"version": 1
|
|
8586
8581
|
}
|
|
8587
8582
|
]
|
|
8588
8583
|
},
|
|
@@ -8858,11 +8853,31 @@
|
|
|
8858
8853
|
}
|
|
8859
8854
|
]
|
|
8860
8855
|
},
|
|
8856
|
+
{
|
|
8857
|
+
"name": "migrate-archived-mesh-request",
|
|
8858
|
+
"namespace": "assistant",
|
|
8859
|
+
"compact": false,
|
|
8860
|
+
"flagsPosition": -1,
|
|
8861
|
+
"fields": [
|
|
8862
|
+
{
|
|
8863
|
+
"name": "meshId",
|
|
8864
|
+
"required": true,
|
|
8865
|
+
"type": "string",
|
|
8866
|
+
"version": 1
|
|
8867
|
+
},
|
|
8868
|
+
{
|
|
8869
|
+
"name": "workspaceId",
|
|
8870
|
+
"required": true,
|
|
8871
|
+
"type": "string",
|
|
8872
|
+
"version": 1
|
|
8873
|
+
}
|
|
8874
|
+
]
|
|
8875
|
+
},
|
|
8861
8876
|
{
|
|
8862
8877
|
"name": "archived-mesh-migration",
|
|
8863
8878
|
"namespace": "assistant",
|
|
8864
8879
|
"compact": false,
|
|
8865
|
-
"flagsPosition":
|
|
8880
|
+
"flagsPosition": 2,
|
|
8866
8881
|
"fields": [
|
|
8867
8882
|
{
|
|
8868
8883
|
"name": "meshId",
|
|
@@ -8870,6 +8885,12 @@
|
|
|
8870
8885
|
"type": "string",
|
|
8871
8886
|
"version": 1
|
|
8872
8887
|
},
|
|
8888
|
+
{
|
|
8889
|
+
"name": "workspaceId",
|
|
8890
|
+
"required": true,
|
|
8891
|
+
"type": "string",
|
|
8892
|
+
"version": 1
|
|
8893
|
+
},
|
|
8873
8894
|
{
|
|
8874
8895
|
"name": "migrated",
|
|
8875
8896
|
"required": false,
|
|
@@ -9485,6 +9506,21 @@
|
|
|
9485
9506
|
"required": false,
|
|
9486
9507
|
"type": "bool",
|
|
9487
9508
|
"version": 1
|
|
9509
|
+
},
|
|
9510
|
+
{
|
|
9511
|
+
"name": "totalBytes",
|
|
9512
|
+
"type": "uint",
|
|
9513
|
+
"version": 1
|
|
9514
|
+
},
|
|
9515
|
+
{
|
|
9516
|
+
"name": "source",
|
|
9517
|
+
"type": "string",
|
|
9518
|
+
"version": 1
|
|
9519
|
+
},
|
|
9520
|
+
{
|
|
9521
|
+
"name": "gpuClass",
|
|
9522
|
+
"type": "string",
|
|
9523
|
+
"version": 1
|
|
9488
9524
|
}
|
|
9489
9525
|
]
|
|
9490
9526
|
},
|
|
@@ -10254,6 +10290,178 @@
|
|
|
10254
10290
|
"version": 1
|
|
10255
10291
|
}
|
|
10256
10292
|
]
|
|
10293
|
+
},
|
|
10294
|
+
{
|
|
10295
|
+
"name": "skill-oauth-operation",
|
|
10296
|
+
"namespace": "assistant",
|
|
10297
|
+
"offset": 1,
|
|
10298
|
+
"enum": [
|
|
10299
|
+
{
|
|
10300
|
+
"key": "target",
|
|
10301
|
+
"version": 1
|
|
10302
|
+
},
|
|
10303
|
+
{
|
|
10304
|
+
"key": "config",
|
|
10305
|
+
"version": 1
|
|
10306
|
+
},
|
|
10307
|
+
{
|
|
10308
|
+
"key": "connect",
|
|
10309
|
+
"version": 1
|
|
10310
|
+
},
|
|
10311
|
+
{
|
|
10312
|
+
"key": "callback",
|
|
10313
|
+
"version": 1
|
|
10314
|
+
},
|
|
10315
|
+
{
|
|
10316
|
+
"key": "cancel",
|
|
10317
|
+
"version": 1
|
|
10318
|
+
},
|
|
10319
|
+
{
|
|
10320
|
+
"key": "disconnect",
|
|
10321
|
+
"version": 1
|
|
10322
|
+
}
|
|
10323
|
+
],
|
|
10324
|
+
"strings": true
|
|
10325
|
+
},
|
|
10326
|
+
{
|
|
10327
|
+
"name": "skill-oauth-phase",
|
|
10328
|
+
"namespace": "assistant",
|
|
10329
|
+
"offset": 1,
|
|
10330
|
+
"enum": [
|
|
10331
|
+
{
|
|
10332
|
+
"key": "unavailable",
|
|
10333
|
+
"version": 1
|
|
10334
|
+
},
|
|
10335
|
+
{
|
|
10336
|
+
"key": "local",
|
|
10337
|
+
"version": 1
|
|
10338
|
+
},
|
|
10339
|
+
{
|
|
10340
|
+
"key": "ready",
|
|
10341
|
+
"version": 1
|
|
10342
|
+
},
|
|
10343
|
+
{
|
|
10344
|
+
"key": "authorize",
|
|
10345
|
+
"version": 1
|
|
10346
|
+
},
|
|
10347
|
+
{
|
|
10348
|
+
"key": "connected",
|
|
10349
|
+
"version": 1
|
|
10350
|
+
},
|
|
10351
|
+
{
|
|
10352
|
+
"key": "needs-config",
|
|
10353
|
+
"version": 1
|
|
10354
|
+
},
|
|
10355
|
+
{
|
|
10356
|
+
"key": "refused",
|
|
10357
|
+
"version": 1
|
|
10358
|
+
},
|
|
10359
|
+
{
|
|
10360
|
+
"key": "error",
|
|
10361
|
+
"version": 1
|
|
10362
|
+
}
|
|
10363
|
+
],
|
|
10364
|
+
"strings": true
|
|
10365
|
+
},
|
|
10366
|
+
{
|
|
10367
|
+
"name": "skill-oauth-request",
|
|
10368
|
+
"namespace": "assistant",
|
|
10369
|
+
"compact": false,
|
|
10370
|
+
"flagsPosition": 3,
|
|
10371
|
+
"fields": [
|
|
10372
|
+
{
|
|
10373
|
+
"name": "operation",
|
|
10374
|
+
"required": true,
|
|
10375
|
+
"type": "@assistant/skill-oauth-operation",
|
|
10376
|
+
"version": 1
|
|
10377
|
+
},
|
|
10378
|
+
{
|
|
10379
|
+
"name": "agentId",
|
|
10380
|
+
"required": true,
|
|
10381
|
+
"type": "string",
|
|
10382
|
+
"version": 1
|
|
10383
|
+
},
|
|
10384
|
+
{
|
|
10385
|
+
"name": "credentialKey",
|
|
10386
|
+
"required": true,
|
|
10387
|
+
"type": "string",
|
|
10388
|
+
"version": 1
|
|
10389
|
+
},
|
|
10390
|
+
{
|
|
10391
|
+
"name": "deviceId",
|
|
10392
|
+
"type": "fixed32",
|
|
10393
|
+
"version": 1
|
|
10394
|
+
},
|
|
10395
|
+
{
|
|
10396
|
+
"name": "attemptId",
|
|
10397
|
+
"type": "string",
|
|
10398
|
+
"version": 1
|
|
10399
|
+
},
|
|
10400
|
+
{
|
|
10401
|
+
"name": "clientId",
|
|
10402
|
+
"type": "string",
|
|
10403
|
+
"version": 1
|
|
10404
|
+
},
|
|
10405
|
+
{
|
|
10406
|
+
"name": "clientSecret",
|
|
10407
|
+
"type": "string",
|
|
10408
|
+
"version": 1
|
|
10409
|
+
},
|
|
10410
|
+
{
|
|
10411
|
+
"name": "address",
|
|
10412
|
+
"type": "string",
|
|
10413
|
+
"version": 1
|
|
10414
|
+
},
|
|
10415
|
+
{
|
|
10416
|
+
"name": "meshId",
|
|
10417
|
+
"type": "string",
|
|
10418
|
+
"version": 1
|
|
10419
|
+
}
|
|
10420
|
+
]
|
|
10421
|
+
},
|
|
10422
|
+
{
|
|
10423
|
+
"name": "skill-oauth-response",
|
|
10424
|
+
"namespace": "assistant",
|
|
10425
|
+
"compact": false,
|
|
10426
|
+
"flagsPosition": 1,
|
|
10427
|
+
"fields": [
|
|
10428
|
+
{
|
|
10429
|
+
"name": "phase",
|
|
10430
|
+
"required": true,
|
|
10431
|
+
"type": "@assistant/skill-oauth-phase",
|
|
10432
|
+
"version": 1
|
|
10433
|
+
},
|
|
10434
|
+
{
|
|
10435
|
+
"name": "deviceId",
|
|
10436
|
+
"type": "fixed32",
|
|
10437
|
+
"version": 1
|
|
10438
|
+
},
|
|
10439
|
+
{
|
|
10440
|
+
"name": "url",
|
|
10441
|
+
"type": "string",
|
|
10442
|
+
"version": 1
|
|
10443
|
+
},
|
|
10444
|
+
{
|
|
10445
|
+
"name": "clientId",
|
|
10446
|
+
"type": "bool",
|
|
10447
|
+
"version": 1
|
|
10448
|
+
},
|
|
10449
|
+
{
|
|
10450
|
+
"name": "clientSecret",
|
|
10451
|
+
"type": "bool",
|
|
10452
|
+
"version": 1
|
|
10453
|
+
},
|
|
10454
|
+
{
|
|
10455
|
+
"name": "savedClientId",
|
|
10456
|
+
"type": "string",
|
|
10457
|
+
"version": 1
|
|
10458
|
+
},
|
|
10459
|
+
{
|
|
10460
|
+
"name": "error",
|
|
10461
|
+
"type": "string",
|
|
10462
|
+
"version": 1
|
|
10463
|
+
}
|
|
10464
|
+
]
|
|
10257
10465
|
}
|
|
10258
10466
|
]
|
|
10259
10467
|
}
|
|
@@ -1803,7 +1803,6 @@ export interface AssistantAccount {
|
|
|
1803
1803
|
meshId?: string | null
|
|
1804
1804
|
writable?: boolean
|
|
1805
1805
|
displayName?: string | null
|
|
1806
|
-
ownWorkspace?: string | null
|
|
1807
1806
|
}
|
|
1808
1807
|
|
|
1809
1808
|
export interface AssistantMeshTarget {
|
|
@@ -1875,8 +1874,14 @@ export interface AssistantArchivedMeshContents {
|
|
|
1875
1874
|
knowledge: number
|
|
1876
1875
|
}
|
|
1877
1876
|
|
|
1877
|
+
export interface AssistantMigrateArchivedMeshRequest {
|
|
1878
|
+
meshId: string
|
|
1879
|
+
workspaceId: string
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1878
1882
|
export interface AssistantArchivedMeshMigration {
|
|
1879
1883
|
meshId: string
|
|
1884
|
+
workspaceId: string
|
|
1880
1885
|
migrated?: boolean
|
|
1881
1886
|
migratedAt: number
|
|
1882
1887
|
chats: number
|
|
@@ -2025,6 +2030,9 @@ export interface AssistantModelMemory {
|
|
|
2025
2030
|
capBytes: number
|
|
2026
2031
|
usedBytes: number
|
|
2027
2032
|
overCap?: boolean
|
|
2033
|
+
totalBytes?: number
|
|
2034
|
+
source?: string | null
|
|
2035
|
+
gpuClass?: string | null
|
|
2028
2036
|
}
|
|
2029
2037
|
|
|
2030
2038
|
export interface AssistantDeviceScope {
|
|
@@ -2210,6 +2218,32 @@ export interface AssistantQuarantinedSkillKeys {
|
|
|
2210
2218
|
keys: string[]
|
|
2211
2219
|
}
|
|
2212
2220
|
|
|
2221
|
+
export type AssistantSkillOauthOperation = "target" | "config" | "connect" | "callback" | "cancel" | "disconnect"
|
|
2222
|
+
|
|
2223
|
+
export type AssistantSkillOauthPhase = "unavailable" | "local" | "ready" | "authorize" | "connected" | "needs-config" | "refused" | "error"
|
|
2224
|
+
|
|
2225
|
+
export interface AssistantSkillOauthRequest {
|
|
2226
|
+
operation: AssistantSkillOauthOperation
|
|
2227
|
+
agentId: string
|
|
2228
|
+
credentialKey: string
|
|
2229
|
+
deviceId?: Buffer | null
|
|
2230
|
+
attemptId?: string | null
|
|
2231
|
+
clientId?: string | null
|
|
2232
|
+
clientSecret?: string | null
|
|
2233
|
+
address?: string | null
|
|
2234
|
+
meshId?: string | null
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
export interface AssistantSkillOauthResponse {
|
|
2238
|
+
phase: AssistantSkillOauthPhase
|
|
2239
|
+
deviceId?: Buffer | null
|
|
2240
|
+
url?: string | null
|
|
2241
|
+
clientId?: boolean
|
|
2242
|
+
clientSecret?: boolean
|
|
2243
|
+
savedClientId?: string | null
|
|
2244
|
+
error?: string | null
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2213
2247
|
export interface SchemaTypes {
|
|
2214
2248
|
"@assistant/empty": AssistantEmpty
|
|
2215
2249
|
"@assistant/ok-response": AssistantOkResponse
|
|
@@ -2505,6 +2539,7 @@ export interface SchemaTypes {
|
|
|
2505
2539
|
"@assistant/update-member-request": AssistantUpdateMemberRequest
|
|
2506
2540
|
"@assistant/remove-member-request": AssistantRemoveMemberRequest
|
|
2507
2541
|
"@assistant/archived-mesh-contents": AssistantArchivedMeshContents
|
|
2542
|
+
"@assistant/migrate-archived-mesh-request": AssistantMigrateArchivedMeshRequest
|
|
2508
2543
|
"@assistant/archived-mesh-migration": AssistantArchivedMeshMigration
|
|
2509
2544
|
"@assistant/archived-mesh": AssistantArchivedMesh
|
|
2510
2545
|
"@assistant/archived-mesh-list": AssistantArchivedMeshList
|
|
@@ -2568,4 +2603,8 @@ export interface SchemaTypes {
|
|
|
2568
2603
|
"@assistant/host-run-log-release-request": AssistantHostRunLogReleaseRequest
|
|
2569
2604
|
"@assistant/files-ready-request": AssistantFilesReadyRequest
|
|
2570
2605
|
"@assistant/quarantined-skill-keys": AssistantQuarantinedSkillKeys
|
|
2606
|
+
"@assistant/skill-oauth-operation": AssistantSkillOauthOperation
|
|
2607
|
+
"@assistant/skill-oauth-phase": AssistantSkillOauthPhase
|
|
2608
|
+
"@assistant/skill-oauth-request": AssistantSkillOauthRequest
|
|
2609
|
+
"@assistant/skill-oauth-response": AssistantSkillOauthResponse
|
|
2571
2610
|
}
|
|
@@ -1230,7 +1230,8 @@ const encoding29 = {
|
|
|
1230
1230
|
((version >= 13 && m.workspaceKey) ? 512 : 0) |
|
|
1231
1231
|
((version >= 13 && m.joinedAt) ? 1024 : 0) |
|
|
1232
1232
|
((version >= 13 && m.kicked) ? 2048 : 0) |
|
|
1233
|
-
((version >= 13 && m.retiredUnder) ? 4096 : 0)
|
|
1233
|
+
((version >= 13 && m.retiredUnder) ? 4096 : 0) |
|
|
1234
|
+
((version >= 13 && m.initial) ? 8192 : 0)
|
|
1234
1235
|
|
|
1235
1236
|
c.fixed32.preencode(state, m.key)
|
|
1236
1237
|
c.fixed32.preencode(state, m.seed)
|
|
@@ -1260,7 +1261,8 @@ const encoding29 = {
|
|
|
1260
1261
|
((version >= 13 && m.workspaceKey) ? 512 : 0) |
|
|
1261
1262
|
((version >= 13 && m.joinedAt) ? 1024 : 0) |
|
|
1262
1263
|
((version >= 13 && m.kicked) ? 2048 : 0) |
|
|
1263
|
-
((version >= 13 && m.retiredUnder) ? 4096 : 0)
|
|
1264
|
+
((version >= 13 && m.retiredUnder) ? 4096 : 0) |
|
|
1265
|
+
((version >= 13 && m.initial) ? 8192 : 0)
|
|
1264
1266
|
|
|
1265
1267
|
c.fixed32.encode(state, m.key)
|
|
1266
1268
|
c.fixed32.encode(state, m.seed)
|
|
@@ -1297,7 +1299,8 @@ const encoding29 = {
|
|
|
1297
1299
|
workspaceKey: (version >= 13 && (flags & 512) !== 0) ? c.fixed32.decode(state) : null,
|
|
1298
1300
|
joinedAt: (version >= 13 && (flags & 1024) !== 0) ? c.uint.decode(state) : 0,
|
|
1299
1301
|
kicked: (version >= 13 && (flags & 2048) !== 0),
|
|
1300
|
-
retiredUnder: (version >= 13 && (flags & 4096) !== 0) ? c.fixed32.decode(state) : null
|
|
1302
|
+
retiredUnder: (version >= 13 && (flags & 4096) !== 0) ? c.fixed32.decode(state) : null,
|
|
1303
|
+
initial: (version >= 13 && (flags & 8192) !== 0)
|
|
1301
1304
|
}
|
|
1302
1305
|
}
|
|
1303
1306
|
}
|
|
@@ -1676,18 +1679,20 @@ const encoding39 = {
|
|
|
1676
1679
|
c.string.preencode(state, m.targetChatId)
|
|
1677
1680
|
c.string.preencode(state, m.agentId)
|
|
1678
1681
|
c.uint.preencode(state, m.carried)
|
|
1679
|
-
state.end++ // max flag is
|
|
1682
|
+
state.end++ // max flag is 8 so always one byte
|
|
1680
1683
|
|
|
1681
1684
|
if (version >= 9 && m.restartRunId) c.string.preencode(state, m.restartRunId)
|
|
1682
1685
|
c.uint.preencode(state, m.startedAt)
|
|
1683
1686
|
if (version >= 9 && m.completedAt) c.uint.preencode(state, m.completedAt)
|
|
1684
1687
|
if (version >= 9 && m.failure) c.string.preencode(state, m.failure)
|
|
1688
|
+
if (version >= 13 && m.targetMeshId) c.string.preencode(state, m.targetMeshId)
|
|
1685
1689
|
},
|
|
1686
1690
|
encode(state, m) {
|
|
1687
1691
|
const flags =
|
|
1688
1692
|
((version >= 9 && m.restartRunId) ? 1 : 0) |
|
|
1689
1693
|
((version >= 9 && m.completedAt) ? 2 : 0) |
|
|
1690
|
-
((version >= 9 && m.failure) ? 4 : 0)
|
|
1694
|
+
((version >= 9 && m.failure) ? 4 : 0) |
|
|
1695
|
+
((version >= 13 && m.targetMeshId) ? 8 : 0)
|
|
1691
1696
|
|
|
1692
1697
|
c.fixed32.encode(state, m.meshKey)
|
|
1693
1698
|
c.string.encode(state, m.chatId)
|
|
@@ -1701,6 +1706,7 @@ const encoding39 = {
|
|
|
1701
1706
|
c.uint.encode(state, m.startedAt)
|
|
1702
1707
|
if (version >= 9 && m.completedAt) c.uint.encode(state, m.completedAt)
|
|
1703
1708
|
if (version >= 9 && m.failure) c.string.encode(state, m.failure)
|
|
1709
|
+
if (version >= 13 && m.targetMeshId) c.string.encode(state, m.targetMeshId)
|
|
1704
1710
|
},
|
|
1705
1711
|
decode(state) {
|
|
1706
1712
|
const r0 = c.fixed32.decode(state)
|
|
@@ -1722,7 +1728,8 @@ const encoding39 = {
|
|
|
1722
1728
|
restartRunId: (version >= 9 && (flags & 1) !== 0) ? c.string.decode(state) : null,
|
|
1723
1729
|
startedAt: c.uint.decode(state),
|
|
1724
1730
|
completedAt: (version >= 9 && (flags & 2) !== 0) ? c.uint.decode(state) : 0,
|
|
1725
|
-
failure: (version >= 9 && (flags & 4) !== 0) ? c.string.decode(state) : null
|
|
1731
|
+
failure: (version >= 9 && (flags & 4) !== 0) ? c.string.decode(state) : null,
|
|
1732
|
+
targetMeshId: (version >= 13 && (flags & 8) !== 0) ? c.string.decode(state) : null
|
|
1726
1733
|
}
|
|
1727
1734
|
}
|
|
1728
1735
|
}
|
|
@@ -3196,7 +3203,8 @@ const encoding77 = {
|
|
|
3196
3203
|
((version >= 13 && m.workspaceKey) ? 512 : 0) |
|
|
3197
3204
|
((version >= 13 && m.joinedAt) ? 1024 : 0) |
|
|
3198
3205
|
((version >= 13 && m.kicked) ? 2048 : 0) |
|
|
3199
|
-
((version >= 13 && m.retiredUnder) ? 4096 : 0)
|
|
3206
|
+
((version >= 13 && m.retiredUnder) ? 4096 : 0) |
|
|
3207
|
+
((version >= 13 && m.initial) ? 8192 : 0)
|
|
3200
3208
|
|
|
3201
3209
|
c.fixed32.preencode(state, m.seed)
|
|
3202
3210
|
c.uint.preencode(state, flags)
|
|
@@ -3225,7 +3233,8 @@ const encoding77 = {
|
|
|
3225
3233
|
((version >= 13 && m.workspaceKey) ? 512 : 0) |
|
|
3226
3234
|
((version >= 13 && m.joinedAt) ? 1024 : 0) |
|
|
3227
3235
|
((version >= 13 && m.kicked) ? 2048 : 0) |
|
|
3228
|
-
((version >= 13 && m.retiredUnder) ? 4096 : 0)
|
|
3236
|
+
((version >= 13 && m.retiredUnder) ? 4096 : 0) |
|
|
3237
|
+
((version >= 13 && m.initial) ? 8192 : 0)
|
|
3229
3238
|
|
|
3230
3239
|
c.fixed32.encode(state, m.seed)
|
|
3231
3240
|
c.uint.encode(state, flags)
|
|
@@ -3260,7 +3269,8 @@ const encoding77 = {
|
|
|
3260
3269
|
workspaceKey: (version >= 13 && (flags & 512) !== 0) ? c.fixed32.decode(state) : null,
|
|
3261
3270
|
joinedAt: (version >= 13 && (flags & 1024) !== 0) ? c.uint.decode(state) : 0,
|
|
3262
3271
|
kicked: (version >= 13 && (flags & 2048) !== 0),
|
|
3263
|
-
retiredUnder: (version >= 13 && (flags & 4096) !== 0) ? c.fixed32.decode(state) : null
|
|
3272
|
+
retiredUnder: (version >= 13 && (flags & 4096) !== 0) ? c.fixed32.decode(state) : null,
|
|
3273
|
+
initial: (version >= 13 && (flags & 8192) !== 0)
|
|
3264
3274
|
}
|
|
3265
3275
|
}
|
|
3266
3276
|
}
|
|
@@ -3616,18 +3626,20 @@ const encoding87 = {
|
|
|
3616
3626
|
c.string.preencode(state, m.targetChatId)
|
|
3617
3627
|
c.string.preencode(state, m.agentId)
|
|
3618
3628
|
c.uint.preencode(state, m.carried)
|
|
3619
|
-
state.end++ // max flag is
|
|
3629
|
+
state.end++ // max flag is 8 so always one byte
|
|
3620
3630
|
|
|
3621
3631
|
if (version >= 9 && m.restartRunId) c.string.preencode(state, m.restartRunId)
|
|
3622
3632
|
c.uint.preencode(state, m.startedAt)
|
|
3623
3633
|
if (version >= 9 && m.completedAt) c.uint.preencode(state, m.completedAt)
|
|
3624
3634
|
if (version >= 9 && m.failure) c.string.preencode(state, m.failure)
|
|
3635
|
+
if (version >= 13 && m.targetMeshId) c.string.preencode(state, m.targetMeshId)
|
|
3625
3636
|
},
|
|
3626
3637
|
encode(state, m) {
|
|
3627
3638
|
const flags =
|
|
3628
3639
|
((version >= 9 && m.restartRunId) ? 1 : 0) |
|
|
3629
3640
|
((version >= 9 && m.completedAt) ? 2 : 0) |
|
|
3630
|
-
((version >= 9 && m.failure) ? 4 : 0)
|
|
3641
|
+
((version >= 9 && m.failure) ? 4 : 0) |
|
|
3642
|
+
((version >= 13 && m.targetMeshId) ? 8 : 0)
|
|
3631
3643
|
|
|
3632
3644
|
c.fixed32.encode(state, m.targetMeshKey)
|
|
3633
3645
|
c.string.encode(state, m.targetChatId)
|
|
@@ -3639,6 +3651,7 @@ const encoding87 = {
|
|
|
3639
3651
|
c.uint.encode(state, m.startedAt)
|
|
3640
3652
|
if (version >= 9 && m.completedAt) c.uint.encode(state, m.completedAt)
|
|
3641
3653
|
if (version >= 9 && m.failure) c.string.encode(state, m.failure)
|
|
3654
|
+
if (version >= 13 && m.targetMeshId) c.string.encode(state, m.targetMeshId)
|
|
3642
3655
|
},
|
|
3643
3656
|
decode(state) {
|
|
3644
3657
|
const r2 = c.fixed32.decode(state)
|
|
@@ -3658,7 +3671,8 @@ const encoding87 = {
|
|
|
3658
3671
|
restartRunId: (version >= 9 && (flags & 1) !== 0) ? c.string.decode(state) : null,
|
|
3659
3672
|
startedAt: c.uint.decode(state),
|
|
3660
3673
|
completedAt: (version >= 9 && (flags & 2) !== 0) ? c.uint.decode(state) : 0,
|
|
3661
|
-
failure: (version >= 9 && (flags & 4) !== 0) ? c.string.decode(state) : null
|
|
3674
|
+
failure: (version >= 9 && (flags & 4) !== 0) ? c.string.decode(state) : null,
|
|
3675
|
+
targetMeshId: (version >= 13 && (flags & 8) !== 0) ? c.string.decode(state) : null
|
|
3662
3676
|
}
|
|
3663
3677
|
}
|
|
3664
3678
|
}
|
|
@@ -1230,7 +1230,8 @@ const encoding29 = {
|
|
|
1230
1230
|
((version >= 13 && m.workspaceKey) ? 512 : 0) |
|
|
1231
1231
|
((version >= 13 && m.joinedAt) ? 1024 : 0) |
|
|
1232
1232
|
((version >= 13 && m.kicked) ? 2048 : 0) |
|
|
1233
|
-
((version >= 13 && m.retiredUnder) ? 4096 : 0)
|
|
1233
|
+
((version >= 13 && m.retiredUnder) ? 4096 : 0) |
|
|
1234
|
+
((version >= 13 && m.initial) ? 8192 : 0)
|
|
1234
1235
|
|
|
1235
1236
|
c.fixed32.preencode(state, m.key)
|
|
1236
1237
|
c.fixed32.preencode(state, m.seed)
|
|
@@ -1260,7 +1261,8 @@ const encoding29 = {
|
|
|
1260
1261
|
((version >= 13 && m.workspaceKey) ? 512 : 0) |
|
|
1261
1262
|
((version >= 13 && m.joinedAt) ? 1024 : 0) |
|
|
1262
1263
|
((version >= 13 && m.kicked) ? 2048 : 0) |
|
|
1263
|
-
((version >= 13 && m.retiredUnder) ? 4096 : 0)
|
|
1264
|
+
((version >= 13 && m.retiredUnder) ? 4096 : 0) |
|
|
1265
|
+
((version >= 13 && m.initial) ? 8192 : 0)
|
|
1264
1266
|
|
|
1265
1267
|
c.fixed32.encode(state, m.key)
|
|
1266
1268
|
c.fixed32.encode(state, m.seed)
|
|
@@ -1297,7 +1299,8 @@ const encoding29 = {
|
|
|
1297
1299
|
workspaceKey: (version >= 13 && (flags & 512) !== 0) ? c.fixed32.decode(state) : null,
|
|
1298
1300
|
joinedAt: (version >= 13 && (flags & 1024) !== 0) ? c.uint.decode(state) : 0,
|
|
1299
1301
|
kicked: (version >= 13 && (flags & 2048) !== 0),
|
|
1300
|
-
retiredUnder: (version >= 13 && (flags & 4096) !== 0) ? c.fixed32.decode(state) : null
|
|
1302
|
+
retiredUnder: (version >= 13 && (flags & 4096) !== 0) ? c.fixed32.decode(state) : null,
|
|
1303
|
+
initial: (version >= 13 && (flags & 8192) !== 0)
|
|
1301
1304
|
}
|
|
1302
1305
|
}
|
|
1303
1306
|
}
|
|
@@ -1676,18 +1679,20 @@ const encoding39 = {
|
|
|
1676
1679
|
c.string.preencode(state, m.targetChatId)
|
|
1677
1680
|
c.string.preencode(state, m.agentId)
|
|
1678
1681
|
c.uint.preencode(state, m.carried)
|
|
1679
|
-
state.end++ // max flag is
|
|
1682
|
+
state.end++ // max flag is 8 so always one byte
|
|
1680
1683
|
|
|
1681
1684
|
if (version >= 9 && m.restartRunId) c.string.preencode(state, m.restartRunId)
|
|
1682
1685
|
c.uint.preencode(state, m.startedAt)
|
|
1683
1686
|
if (version >= 9 && m.completedAt) c.uint.preencode(state, m.completedAt)
|
|
1684
1687
|
if (version >= 9 && m.failure) c.string.preencode(state, m.failure)
|
|
1688
|
+
if (version >= 13 && m.targetMeshId) c.string.preencode(state, m.targetMeshId)
|
|
1685
1689
|
},
|
|
1686
1690
|
encode(state, m) {
|
|
1687
1691
|
const flags =
|
|
1688
1692
|
((version >= 9 && m.restartRunId) ? 1 : 0) |
|
|
1689
1693
|
((version >= 9 && m.completedAt) ? 2 : 0) |
|
|
1690
|
-
((version >= 9 && m.failure) ? 4 : 0)
|
|
1694
|
+
((version >= 9 && m.failure) ? 4 : 0) |
|
|
1695
|
+
((version >= 13 && m.targetMeshId) ? 8 : 0)
|
|
1691
1696
|
|
|
1692
1697
|
c.fixed32.encode(state, m.meshKey)
|
|
1693
1698
|
c.string.encode(state, m.chatId)
|
|
@@ -1701,6 +1706,7 @@ const encoding39 = {
|
|
|
1701
1706
|
c.uint.encode(state, m.startedAt)
|
|
1702
1707
|
if (version >= 9 && m.completedAt) c.uint.encode(state, m.completedAt)
|
|
1703
1708
|
if (version >= 9 && m.failure) c.string.encode(state, m.failure)
|
|
1709
|
+
if (version >= 13 && m.targetMeshId) c.string.encode(state, m.targetMeshId)
|
|
1704
1710
|
},
|
|
1705
1711
|
decode(state) {
|
|
1706
1712
|
const r0 = c.fixed32.decode(state)
|
|
@@ -1722,7 +1728,8 @@ const encoding39 = {
|
|
|
1722
1728
|
restartRunId: (version >= 9 && (flags & 1) !== 0) ? c.string.decode(state) : null,
|
|
1723
1729
|
startedAt: c.uint.decode(state),
|
|
1724
1730
|
completedAt: (version >= 9 && (flags & 2) !== 0) ? c.uint.decode(state) : 0,
|
|
1725
|
-
failure: (version >= 9 && (flags & 4) !== 0) ? c.string.decode(state) : null
|
|
1731
|
+
failure: (version >= 9 && (flags & 4) !== 0) ? c.string.decode(state) : null,
|
|
1732
|
+
targetMeshId: (version >= 13 && (flags & 8) !== 0) ? c.string.decode(state) : null
|
|
1726
1733
|
}
|
|
1727
1734
|
}
|
|
1728
1735
|
}
|
|
@@ -825,6 +825,11 @@
|
|
|
825
825
|
"name": "retiredUnder",
|
|
826
826
|
"type": "fixed32",
|
|
827
827
|
"version": 13
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"name": "initial",
|
|
831
|
+
"type": "bool",
|
|
832
|
+
"version": 13
|
|
828
833
|
}
|
|
829
834
|
]
|
|
830
835
|
},
|
|
@@ -1114,6 +1119,11 @@
|
|
|
1114
1119
|
"name": "failure",
|
|
1115
1120
|
"type": "string",
|
|
1116
1121
|
"version": 9
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"name": "targetMeshId",
|
|
1125
|
+
"type": "string",
|
|
1126
|
+
"version": 13
|
|
1117
1127
|
}
|
|
1118
1128
|
]
|
|
1119
1129
|
},
|
|
@@ -163,6 +163,7 @@ export interface LocalMeshMembershipV1 {
|
|
|
163
163
|
joinedAt?: number
|
|
164
164
|
kicked?: boolean
|
|
165
165
|
retiredUnder?: Buffer | null
|
|
166
|
+
initial?: boolean
|
|
166
167
|
}
|
|
167
168
|
|
|
168
169
|
export type LocalMeshMembership = (LocalMeshMembershipV1 & { version?: number })
|
|
@@ -221,6 +222,7 @@ export interface LocalChatMoveV1 {
|
|
|
221
222
|
startedAt: number
|
|
222
223
|
completedAt?: number
|
|
223
224
|
failure?: string | null
|
|
225
|
+
targetMeshId?: string | null
|
|
224
226
|
}
|
|
225
227
|
|
|
226
228
|
export type LocalChatMove = (LocalChatMoveV1 & { version?: number })
|