@qvac/core 0.6.7 → 0.7.1

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.
Files changed (146) hide show
  1. package/CHANGELOG.md +211 -1
  2. package/README.md +2 -0
  3. package/dist-lib/lib/api/app-config.d.ts +3 -1
  4. package/dist-lib/lib/api/app-config.js +15 -4
  5. package/dist-lib/lib/api/chat.d.ts +1 -1
  6. package/dist-lib/lib/api/chat.js +9 -0
  7. package/dist-lib/lib/api/index.d.ts +2 -1
  8. package/dist-lib/lib/api/index.js +2 -1
  9. package/dist-lib/lib/api/network.d.ts +8 -1
  10. package/dist-lib/lib/api/network.js +6 -0
  11. package/dist-lib/lib/assistant/fake-models.d.ts +22 -0
  12. package/dist-lib/lib/assistant/fake-models.js +112 -0
  13. package/dist-lib/lib/assistant/harness.d.ts +12 -0
  14. package/dist-lib/lib/assistant/harness.js +26 -0
  15. package/dist-lib/lib/assistant/history.d.ts +5 -1
  16. package/dist-lib/lib/assistant/history.js +14 -2
  17. package/dist-lib/lib/assistant-tree.d.ts +4 -0
  18. package/dist-lib/lib/assistant-tree.js +45 -7
  19. package/dist-lib/lib/assistant.d.ts +15 -2
  20. package/dist-lib/lib/assistant.js +181 -42
  21. package/dist-lib/lib/constants.d.ts +6 -0
  22. package/dist-lib/lib/constants.js +6 -0
  23. package/dist-lib/lib/core/agent.d.ts +2 -0
  24. package/dist-lib/lib/core/agent.js +16 -5
  25. package/dist-lib/lib/core/blind-peers.d.ts +4 -0
  26. package/dist-lib/lib/core/blind-peers.js +1 -0
  27. package/dist-lib/lib/core/chat-activity.d.ts +1 -1
  28. package/dist-lib/lib/core/chat-activity.js +3 -0
  29. package/dist-lib/lib/core/chat-copy.d.ts +4 -0
  30. package/dist-lib/lib/core/chat-copy.js +1 -1
  31. package/dist-lib/lib/core/chat-fork.d.ts +21 -0
  32. package/dist-lib/lib/core/chat-fork.js +245 -0
  33. package/dist-lib/lib/core/chat-move.js +1 -4
  34. package/dist-lib/lib/core/chat.d.ts +1 -0
  35. package/dist-lib/lib/core/chat.js +1 -1
  36. package/dist-lib/lib/core/collections.d.ts +1 -0
  37. package/dist-lib/lib/core/collections.js +1 -0
  38. package/dist-lib/lib/core/contract/compute.d.ts +1 -1
  39. package/dist-lib/lib/core/contract/compute.js +2 -1
  40. package/dist-lib/lib/core/contract/index.js +6 -1
  41. package/dist-lib/lib/core/contract/invites.d.ts +1 -11
  42. package/dist-lib/lib/core/contract/invites.js +3 -3
  43. package/dist-lib/lib/core/contract/mesh-seeds.d.ts +2 -0
  44. package/dist-lib/lib/core/contract/mesh-seeds.js +26 -0
  45. package/dist-lib/lib/core/contract/open-join.d.ts +2 -0
  46. package/dist-lib/lib/core/contract/open-join.js +57 -0
  47. package/dist-lib/lib/core/departures.d.ts +8 -1
  48. package/dist-lib/lib/core/departures.js +59 -2
  49. package/dist-lib/lib/core/fs-drives.d.ts +8 -1
  50. package/dist-lib/lib/core/fs-drives.js +47 -15
  51. package/dist-lib/lib/core/harness-loan.d.ts +4 -20
  52. package/dist-lib/lib/core/harness-loan.js +7 -184
  53. package/dist-lib/lib/core/id.d.ts +1 -0
  54. package/dist-lib/lib/core/id.js +3 -0
  55. package/dist-lib/lib/core/identity.d.ts +1 -1
  56. package/dist-lib/lib/core/identity.js +6 -4
  57. package/dist-lib/lib/core/invite.d.ts +2 -0
  58. package/dist-lib/lib/core/invite.js +6 -2
  59. package/dist-lib/lib/core/membership.d.ts +1 -12
  60. package/dist-lib/lib/core/membership.js +1 -94
  61. package/dist-lib/lib/core/mesh.d.ts +11 -15
  62. package/dist-lib/lib/core/mesh.js +52 -88
  63. package/dist-lib/lib/core/migrations/agent-tools-scope.d.ts +2 -0
  64. package/dist-lib/lib/core/migrations/agent-tools-scope.js +24 -0
  65. package/dist-lib/lib/core/migrations/index.js +3 -1
  66. package/dist-lib/lib/core/peer-duplex.d.ts +32 -0
  67. package/dist-lib/lib/core/peer-duplex.js +207 -0
  68. package/dist-lib/lib/core/sync/index.js +2 -16
  69. package/dist-lib/lib/core.d.ts +47 -50
  70. package/dist-lib/lib/core.js +524 -878
  71. package/dist-lib/lib/diagnostics.d.ts +7 -0
  72. package/dist-lib/lib/diagnostics.js +22 -0
  73. package/dist-lib/lib/doctor/checks.d.ts +15 -0
  74. package/dist-lib/lib/doctor/checks.js +272 -0
  75. package/dist-lib/lib/doctor/redact.d.ts +4 -0
  76. package/dist-lib/lib/doctor/redact.js +31 -0
  77. package/dist-lib/lib/doctor/render.d.ts +8 -0
  78. package/dist-lib/lib/doctor/render.js +83 -0
  79. package/dist-lib/lib/doctor/tree.d.ts +5 -0
  80. package/dist-lib/lib/doctor/tree.js +167 -0
  81. package/dist-lib/lib/downloads-allowed-pusher.d.ts +10 -0
  82. package/dist-lib/lib/downloads-allowed-pusher.js +37 -0
  83. package/dist-lib/lib/guards.d.ts +1 -0
  84. package/dist-lib/lib/guards.js +4 -0
  85. package/dist-lib/lib/inference-calls.js +1 -5
  86. package/dist-lib/lib/kv-cache-reclaim.d.ts +2 -1
  87. package/dist-lib/lib/kv-cache-reclaim.js +24 -0
  88. package/dist-lib/lib/mesh-scoped-engine.js +4 -0
  89. package/dist-lib/lib/model-download-status.d.ts +1 -1
  90. package/dist-lib/lib/model-download.d.ts +9 -10
  91. package/dist-lib/lib/model-download.js +49 -16
  92. package/dist-lib/lib/model-memory-cap.d.ts +29 -0
  93. package/dist-lib/lib/model-memory-cap.js +69 -0
  94. package/dist-lib/lib/models-watch.d.ts +1 -1
  95. package/dist-lib/lib/models-watch.js +4 -4
  96. package/dist-lib/lib/oauth/flow.js +1 -1
  97. package/dist-lib/lib/oauth/loopback.js +16 -2
  98. package/dist-lib/lib/oauth/redirect-types.d.ts +1 -0
  99. package/dist-lib/lib/run-replay.d.ts +26 -0
  100. package/dist-lib/lib/run-replay.js +107 -0
  101. package/dist-lib/schema/config.d.ts +1 -1
  102. package/dist-lib/schema/config.js +1 -1
  103. package/dist-lib/schema/content.js +9 -1
  104. package/dist-lib/schema/engine.js +75 -6
  105. package/dist-lib/schema/field-order.js +1 -1
  106. package/dist-lib/schema/local.js +3 -2
  107. package/dist-lib/schema/qvac.js +28 -2
  108. package/dist-lib/spec/bind.js +17 -0
  109. package/dist-lib/spec/calls.js +4 -0
  110. package/dist-lib/spec/capabilities.d.ts +8 -0
  111. package/dist-lib/spec/config/hyperconf/index.js +1 -1
  112. package/dist-lib/spec/hrpc/hrpc.json +52 -0
  113. package/dist-lib/spec/hrpc/index.js +53 -4
  114. package/dist-lib/spec/hrpc/messages.js +1498 -1278
  115. package/dist-lib/spec/hyperschema/index.js +1498 -1278
  116. package/dist-lib/spec/hyperschema/schema.json +182 -0
  117. package/dist-lib/spec/hyperschema/types.d.ts +49 -3
  118. package/dist-lib/spec/local/hyperdb/messages.js +22 -10
  119. package/dist-lib/spec/local/hyperschema/index.js +16 -7
  120. package/dist-lib/spec/local/hyperschema/schema.json +10 -1
  121. package/dist-lib/spec/local/hyperschema/types.d.ts +3 -2
  122. package/dist-lib/spec/mesh/hyperdb/db.json +16 -1
  123. package/dist-lib/spec/mesh/hyperdb/index.js +71 -2
  124. package/dist-lib/spec/mesh/hyperdb/messages.js +530 -246
  125. package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +13 -1
  126. package/dist-lib/spec/mesh/hyperdispatch/index.js +35 -1
  127. package/dist-lib/spec/mesh/hyperdispatch/messages.js +223 -10
  128. package/dist-lib/spec/mesh/hyperschema/index.js +223 -10
  129. package/dist-lib/spec/mesh/hyperschema/schema.json +128 -1
  130. package/dist-lib/spec/mesh/hyperschema/types.d.ts +34 -2
  131. package/package.json +14 -19
  132. package/tui/README.md +7 -1
  133. package/tui/app.mjs +366 -78
  134. package/tui/boot.mjs +1 -0
  135. package/tui/index.mjs +1 -0
  136. package/tui/lib/fork-command.mjs +43 -0
  137. package/tui/lib/render.mjs +25 -1
  138. package/worker/assistant-sidecar.mjs +5 -2
  139. package/dist-lib/lib/core/device-invites.d.ts +0 -11
  140. package/dist-lib/lib/core/device-invites.js +0 -63
  141. package/dist-lib/lib/core/grant-expiry.d.ts +0 -11
  142. package/dist-lib/lib/core/grant-expiry.js +0 -66
  143. package/dist-lib/lib/core/mesh-seed-handoff.d.ts +0 -27
  144. package/dist-lib/lib/core/mesh-seed-handoff.js +0 -53
  145. package/dist-lib/lib/oauth/loopback.stub.d.ts +0 -3
  146. package/dist-lib/lib/oauth/loopback.stub.js +0 -6
@@ -825,6 +825,31 @@
825
825
  }
826
826
  ]
827
827
  },
828
+ {
829
+ "name": "chat-fork-source",
830
+ "namespace": "assistant",
831
+ "compact": false,
832
+ "flagsPosition": 2,
833
+ "fields": [
834
+ {
835
+ "name": "meshId",
836
+ "required": true,
837
+ "type": "string",
838
+ "version": 1
839
+ },
840
+ {
841
+ "name": "chatId",
842
+ "required": true,
843
+ "type": "string",
844
+ "version": 1
845
+ },
846
+ {
847
+ "name": "runId",
848
+ "type": "string",
849
+ "version": 1
850
+ }
851
+ ]
852
+ },
828
853
  {
829
854
  "name": "chat",
830
855
  "namespace": "assistant",
@@ -889,6 +914,11 @@
889
914
  "name": "readThrough",
890
915
  "type": "uint",
891
916
  "version": 1
917
+ },
918
+ {
919
+ "name": "forkedFrom",
920
+ "type": "@assistant/chat-fork-source",
921
+ "version": 1
892
922
  }
893
923
  ]
894
924
  },
@@ -1020,6 +1050,10 @@
1020
1050
  {
1021
1051
  "key": "awaiting-approval",
1022
1052
  "version": 1
1053
+ },
1054
+ {
1055
+ "key": "awaiting-download",
1056
+ "version": 1
1023
1057
  }
1024
1058
  ],
1025
1059
  "strings": true
@@ -1393,6 +1427,64 @@
1393
1427
  }
1394
1428
  ]
1395
1429
  },
1430
+ {
1431
+ "name": "fork-chat-config",
1432
+ "namespace": "assistant",
1433
+ "compact": false,
1434
+ "flagsPosition": 0,
1435
+ "fields": [
1436
+ {
1437
+ "name": "title",
1438
+ "type": "string",
1439
+ "version": 1
1440
+ }
1441
+ ]
1442
+ },
1443
+ {
1444
+ "name": "fork-chat-request",
1445
+ "namespace": "assistant",
1446
+ "compact": false,
1447
+ "flagsPosition": 2,
1448
+ "fields": [
1449
+ {
1450
+ "name": "chatId",
1451
+ "required": true,
1452
+ "type": "string",
1453
+ "version": 1
1454
+ },
1455
+ {
1456
+ "name": "meshId",
1457
+ "required": true,
1458
+ "type": "string",
1459
+ "version": 1
1460
+ },
1461
+ {
1462
+ "name": "runId",
1463
+ "type": "string",
1464
+ "version": 1
1465
+ },
1466
+ {
1467
+ "name": "exclusive",
1468
+ "type": "bool",
1469
+ "version": 1
1470
+ },
1471
+ {
1472
+ "name": "targetMeshId",
1473
+ "type": "string",
1474
+ "version": 1
1475
+ },
1476
+ {
1477
+ "name": "agentId",
1478
+ "type": "string",
1479
+ "version": 1
1480
+ },
1481
+ {
1482
+ "name": "config",
1483
+ "type": "@assistant/fork-chat-config",
1484
+ "version": 1
1485
+ }
1486
+ ]
1487
+ },
1396
1488
  {
1397
1489
  "name": "set-chat-agent-request",
1398
1490
  "namespace": "assistant",
@@ -2126,6 +2218,10 @@
2126
2218
  {
2127
2219
  "key": "compacting",
2128
2220
  "version": 1
2221
+ },
2222
+ {
2223
+ "key": "awaiting-download",
2224
+ "version": 1
2129
2225
  }
2130
2226
  ],
2131
2227
  "strings": true
@@ -4297,6 +4393,20 @@
4297
4393
  }
4298
4394
  ]
4299
4395
  },
4396
+ {
4397
+ "name": "blind-peering",
4398
+ "namespace": "assistant",
4399
+ "compact": false,
4400
+ "flagsPosition": 0,
4401
+ "fields": [
4402
+ {
4403
+ "name": "enabled",
4404
+ "required": false,
4405
+ "type": "bool",
4406
+ "version": 1
4407
+ }
4408
+ ]
4409
+ },
4300
4410
  {
4301
4411
  "name": "sync-status-state",
4302
4412
  "namespace": "assistant",
@@ -4561,6 +4671,11 @@
4561
4671
  "name": "isLoading",
4562
4672
  "type": "bool",
4563
4673
  "version": 1
4674
+ },
4675
+ {
4676
+ "name": "memoryBytes",
4677
+ "type": "uint",
4678
+ "version": 1
4564
4679
  }
4565
4680
  ]
4566
4681
  },
@@ -4575,6 +4690,11 @@
4575
4690
  "array": true,
4576
4691
  "type": "@assistant/model-info",
4577
4692
  "version": 1
4693
+ },
4694
+ {
4695
+ "name": "memory",
4696
+ "type": "@assistant/model-memory",
4697
+ "version": 1
4578
4698
  }
4579
4699
  ]
4580
4700
  },
@@ -4882,6 +5002,12 @@
4882
5002
  "array": true,
4883
5003
  "type": "string",
4884
5004
  "version": 1
5005
+ },
5006
+ {
5007
+ "name": "autoDownloadModels",
5008
+ "required": false,
5009
+ "type": "bool",
5010
+ "version": 1
4885
5011
  }
4886
5012
  ]
4887
5013
  },
@@ -4966,6 +5092,20 @@
4966
5092
  }
4967
5093
  ]
4968
5094
  },
5095
+ {
5096
+ "name": "set-auto-download-models-request",
5097
+ "namespace": "assistant",
5098
+ "compact": false,
5099
+ "flagsPosition": 0,
5100
+ "fields": [
5101
+ {
5102
+ "name": "enabled",
5103
+ "required": false,
5104
+ "type": "bool",
5105
+ "version": 1
5106
+ }
5107
+ ]
5108
+ },
4969
5109
  {
4970
5110
  "name": "model-download-phase",
4971
5111
  "namespace": "assistant",
@@ -4986,6 +5126,10 @@
4986
5126
  {
4987
5127
  "key": "error",
4988
5128
  "version": 1
5129
+ },
5130
+ {
5131
+ "key": "held",
5132
+ "version": 1
4989
5133
  }
4990
5134
  ],
4991
5135
  "strings": true
@@ -8463,6 +8607,44 @@
8463
8607
  "version": 1
8464
8608
  }
8465
8609
  ]
8610
+ },
8611
+ {
8612
+ "name": "model-memory",
8613
+ "namespace": "assistant",
8614
+ "compact": false,
8615
+ "flagsPosition": 4,
8616
+ "fields": [
8617
+ {
8618
+ "name": "usableBytes",
8619
+ "required": true,
8620
+ "type": "uint",
8621
+ "version": 1
8622
+ },
8623
+ {
8624
+ "name": "capPercent",
8625
+ "required": true,
8626
+ "type": "uint",
8627
+ "version": 1
8628
+ },
8629
+ {
8630
+ "name": "capBytes",
8631
+ "required": true,
8632
+ "type": "uint",
8633
+ "version": 1
8634
+ },
8635
+ {
8636
+ "name": "usedBytes",
8637
+ "required": true,
8638
+ "type": "uint",
8639
+ "version": 1
8640
+ },
8641
+ {
8642
+ "name": "overCap",
8643
+ "required": false,
8644
+ "type": "bool",
8645
+ "version": 1
8646
+ }
8647
+ ]
8466
8648
  }
8467
8649
  ]
8468
8650
  }
@@ -160,6 +160,12 @@ export interface AssistantUpdateAgentRequest {
160
160
  config: AssistantAgentUpdateConfig
161
161
  }
162
162
 
163
+ export interface AssistantChatForkSource {
164
+ meshId: string
165
+ chatId: string
166
+ runId?: string | null
167
+ }
168
+
163
169
  export interface AssistantChat {
164
170
  id: string
165
171
  agentId: string
@@ -172,6 +178,7 @@ export interface AssistantChat {
172
178
  lastActivityAt?: number
173
179
  groupId?: string | null
174
180
  readThrough?: number
181
+ forkedFrom?: AssistantChatForkSource | null
175
182
  }
176
183
 
177
184
  export interface AssistantChatGroup {
@@ -198,7 +205,7 @@ export interface AssistantChatGroupList {
198
205
  groups?: AssistantChatGroup[] | null
199
206
  }
200
207
 
201
- export type AssistantChatActivityState = "queued" | "running" | "generating-image" | "generating-audio" | "transcribing-audio" | "awaiting-approval"
208
+ export type AssistantChatActivityState = "queued" | "running" | "generating-image" | "generating-audio" | "transcribing-audio" | "awaiting-approval" | "awaiting-download"
202
209
 
203
210
  export interface AssistantChatActivity {
204
211
  id: string
@@ -281,6 +288,20 @@ export interface AssistantChatMove {
281
288
  failure?: string | null
282
289
  }
283
290
 
291
+ export interface AssistantForkChatConfig {
292
+ title?: string | null
293
+ }
294
+
295
+ export interface AssistantForkChatRequest {
296
+ chatId: string
297
+ meshId: string
298
+ runId?: string | null
299
+ exclusive?: boolean
300
+ targetMeshId?: string | null
301
+ agentId?: string | null
302
+ config?: AssistantForkChatConfig | null
303
+ }
304
+
284
305
  export interface AssistantSetChatAgentRequest {
285
306
  chatId: string
286
307
  agentId: string
@@ -426,7 +447,7 @@ export interface AssistantResourceDescriptor {
426
447
  label: string
427
448
  }
428
449
 
429
- export type AssistantProgressPhase = "loading" | "downloading" | "queued" | "generating" | "transcribing" | "compacting"
450
+ export type AssistantProgressPhase = "loading" | "downloading" | "queued" | "generating" | "transcribing" | "compacting" | "awaiting-download"
430
451
 
431
452
  export interface AssistantRunProgress {
432
453
  phase: AssistantProgressPhase
@@ -885,6 +906,10 @@ export interface AssistantNetworkStatus {
885
906
  peerCount: number
886
907
  }
887
908
 
909
+ export interface AssistantBlindPeering {
910
+ enabled?: boolean
911
+ }
912
+
888
913
  export type AssistantSyncStatusState = "idle" | "syncing" | "synced"
889
914
 
890
915
  export interface AssistantSyncDevice {
@@ -933,10 +958,12 @@ export interface AssistantModelInfo {
933
958
  supportsImages?: boolean
934
959
  taskType?: AssistantModelTaskType | null
935
960
  isLoading?: boolean
961
+ memoryBytes?: number
936
962
  }
937
963
 
938
964
  export interface AssistantModelInfoList {
939
965
  models?: AssistantModelInfo[] | null
966
+ memory?: AssistantModelMemory | null
940
967
  }
941
968
 
942
969
  export interface AssistantDeleteModelRequest {
@@ -1007,6 +1034,7 @@ export interface AssistantAppConfig {
1007
1034
  delegation: AssistantDelegation
1008
1035
  pausedModels?: string[] | null
1009
1036
  releasedModels?: string[] | null
1037
+ autoDownloadModels?: boolean
1010
1038
  }
1011
1039
 
1012
1040
  export interface AssistantAppConfigUpdate {
@@ -1028,7 +1056,11 @@ export interface AssistantSetModelReleasedRequest {
1028
1056
  released?: boolean
1029
1057
  }
1030
1058
 
1031
- export type AssistantModelDownloadPhase = "queued" | "downloading" | "paused" | "error"
1059
+ export interface AssistantSetAutoDownloadModelsRequest {
1060
+ enabled?: boolean
1061
+ }
1062
+
1063
+ export type AssistantModelDownloadPhase = "queued" | "downloading" | "paused" | "error" | "held"
1032
1064
 
1033
1065
  export interface AssistantModelDownload {
1034
1066
  name: string
@@ -1823,6 +1855,14 @@ export interface AssistantChunkDelta {
1823
1855
  count: number
1824
1856
  }
1825
1857
 
1858
+ export interface AssistantModelMemory {
1859
+ usableBytes: number
1860
+ capPercent: number
1861
+ capBytes: number
1862
+ usedBytes: number
1863
+ overCap?: boolean
1864
+ }
1865
+
1826
1866
  export interface SchemaTypes {
1827
1867
  "@assistant/empty": AssistantEmpty
1828
1868
  "@assistant/ok-response": AssistantOkResponse
@@ -1848,6 +1888,7 @@ export interface SchemaTypes {
1848
1888
  "@assistant/agent-update-config": AssistantAgentUpdateConfig
1849
1889
  "@assistant/create-agent-request": AssistantCreateAgentRequest
1850
1890
  "@assistant/update-agent-request": AssistantUpdateAgentRequest
1891
+ "@assistant/chat-fork-source": AssistantChatForkSource
1851
1892
  "@assistant/chat": AssistantChat
1852
1893
  "@assistant/chat-group": AssistantChatGroup
1853
1894
  "@assistant/chat-list": AssistantChatList
@@ -1869,6 +1910,8 @@ export interface SchemaTypes {
1869
1910
  "@assistant/chat-move-state": AssistantChatMoveState
1870
1911
  "@assistant/move-chat-to-mesh-request": AssistantMoveChatToMeshRequest
1871
1912
  "@assistant/chat-move": AssistantChatMove
1913
+ "@assistant/fork-chat-config": AssistantForkChatConfig
1914
+ "@assistant/fork-chat-request": AssistantForkChatRequest
1872
1915
  "@assistant/set-chat-agent-request": AssistantSetChatAgentRequest
1873
1916
  "@assistant/set-chat-flag-request": AssistantSetChatFlagRequest
1874
1917
  "@assistant/chat-group-id": AssistantChatGroupId
@@ -1968,6 +2011,7 @@ export interface SchemaTypes {
1968
2011
  "@assistant/mesh-status": AssistantMeshStatus
1969
2012
  "@assistant/network-status-state": AssistantNetworkStatusState
1970
2013
  "@assistant/network-status": AssistantNetworkStatus
2014
+ "@assistant/blind-peering": AssistantBlindPeering
1971
2015
  "@assistant/sync-status-state": AssistantSyncStatusState
1972
2016
  "@assistant/sync-device": AssistantSyncDevice
1973
2017
  "@assistant/sync-status": AssistantSyncStatus
@@ -1992,6 +2036,7 @@ export interface SchemaTypes {
1992
2036
  "@assistant/app-config-update": AssistantAppConfigUpdate
1993
2037
  "@assistant/set-model-paused-request": AssistantSetModelPausedRequest
1994
2038
  "@assistant/set-model-released-request": AssistantSetModelReleasedRequest
2039
+ "@assistant/set-auto-download-models-request": AssistantSetAutoDownloadModelsRequest
1995
2040
  "@assistant/model-download-phase": AssistantModelDownloadPhase
1996
2041
  "@assistant/model-download": AssistantModelDownload
1997
2042
  "@assistant/model-download-list": AssistantModelDownloadList
@@ -2121,4 +2166,5 @@ export interface SchemaTypes {
2121
2166
  "@assistant/model-user": AssistantModelUser
2122
2167
  "@assistant/model-users": AssistantModelUsers
2123
2168
  "@assistant/chunk-delta": AssistantChunkDelta
2169
+ "@assistant/model-memory": AssistantModelMemory
2124
2170
  }
@@ -1,12 +1,12 @@
1
1
  // This file is autogenerated by the hyperschema compiler
2
- // Schema Version: 9
2
+ // Schema Version: 10
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
9
+ const VERSION = 10
10
10
 
11
11
  // eslint-disable-next-line no-unused-vars
12
12
  let version = VERSION
@@ -346,7 +346,8 @@ const encoding9 = {
346
346
  (m.onboardingCompleted ? 32 : 0) |
347
347
  (m.delegation ? 64 : 0) |
348
348
  (m.pausedModels ? 128 : 0) |
349
- ((version >= 8 && m.releasedModels) ? 256 : 0)
349
+ ((version >= 8 && m.releasedModels) ? 256 : 0) |
350
+ ((version >= 10 && m.manualModelDownloads) ? 512 : 0)
350
351
 
351
352
  c.string.preencode(state, m.id)
352
353
  c.uint.preencode(state, flags)
@@ -369,7 +370,8 @@ const encoding9 = {
369
370
  (m.onboardingCompleted ? 32 : 0) |
370
371
  (m.delegation ? 64 : 0) |
371
372
  (m.pausedModels ? 128 : 0) |
372
- ((version >= 8 && m.releasedModels) ? 256 : 0)
373
+ ((version >= 8 && m.releasedModels) ? 256 : 0) |
374
+ ((version >= 10 && m.manualModelDownloads) ? 512 : 0)
373
375
 
374
376
  c.string.encode(state, m.id)
375
377
  c.uint.encode(state, flags)
@@ -397,7 +399,8 @@ const encoding9 = {
397
399
  onboardingCompleted: (flags & 32) !== 0,
398
400
  delegation: (flags & 64) !== 0 ? c.json.decode(state) : null,
399
401
  pausedModels: (flags & 128) !== 0 ? encoding9_8.decode(state) : null,
400
- releasedModels: (version >= 8 && (flags & 256) !== 0) ? encoding9_9.decode(state) : null
402
+ releasedModels: (version >= 8 && (flags & 256) !== 0) ? encoding9_9.decode(state) : null,
403
+ manualModelDownloads: (version >= 10 && (flags & 512) !== 0)
401
404
  }
402
405
  }
403
406
  }
@@ -447,13 +450,14 @@ const encoding11_enum = {
447
450
  queued: 'queued',
448
451
  downloading: 'downloading',
449
452
  paused: 'paused',
450
- error: 'error'
453
+ error: 'error',
454
+ held: 'held'
451
455
  }
452
456
 
453
457
  // @local/model-download-phase enum
454
458
  const encoding11 = {
455
459
  preencode (state, m) {
456
- state.end++ // max enum is 4 so always one byte
460
+ state.end++ // max enum is 5 so always one byte
457
461
  },
458
462
  encode (state, m) {
459
463
  switch (m) {
@@ -469,6 +473,9 @@ const encoding11 = {
469
473
  case 'error':
470
474
  c.uint.encode(state, 4)
471
475
  break
476
+ case 'held':
477
+ c.uint.encode(state, 5)
478
+ break
472
479
  default:
473
480
  throw new Error('Unknown enum')
474
481
  }
@@ -483,6 +490,8 @@ const encoding11 = {
483
490
  return 'paused'
484
491
  case 4:
485
492
  return 'error'
493
+ case 5:
494
+ return 'held'
486
495
  default: return null
487
496
  }
488
497
  }
@@ -2009,7 +2018,8 @@ const encoding49 = {
2009
2018
  (m.onboardingCompleted ? 32 : 0) |
2010
2019
  (m.delegation ? 64 : 0) |
2011
2020
  (m.pausedModels ? 128 : 0) |
2012
- ((version >= 8 && m.releasedModels) ? 256 : 0)
2021
+ ((version >= 8 && m.releasedModels) ? 256 : 0) |
2022
+ ((version >= 10 && m.manualModelDownloads) ? 512 : 0)
2013
2023
 
2014
2024
  c.uint.preencode(state, flags)
2015
2025
 
@@ -2031,7 +2041,8 @@ const encoding49 = {
2031
2041
  (m.onboardingCompleted ? 32 : 0) |
2032
2042
  (m.delegation ? 64 : 0) |
2033
2043
  (m.pausedModels ? 128 : 0) |
2034
- ((version >= 8 && m.releasedModels) ? 256 : 0)
2044
+ ((version >= 8 && m.releasedModels) ? 256 : 0) |
2045
+ ((version >= 10 && m.manualModelDownloads) ? 512 : 0)
2035
2046
 
2036
2047
  c.uint.encode(state, flags)
2037
2048
 
@@ -2057,7 +2068,8 @@ const encoding49 = {
2057
2068
  onboardingCompleted: (flags & 32) !== 0,
2058
2069
  delegation: (flags & 64) !== 0 ? c.json.decode(state) : null,
2059
2070
  pausedModels: (flags & 128) !== 0 ? encoding49_8.decode(state) : null,
2060
- releasedModels: (version >= 8 && (flags & 256) !== 0) ? encoding49_9.decode(state) : null
2071
+ releasedModels: (version >= 8 && (flags & 256) !== 0) ? encoding49_9.decode(state) : null,
2072
+ manualModelDownloads: (version >= 10 && (flags & 512) !== 0)
2061
2073
  }
2062
2074
  }
2063
2075
  }
@@ -1,12 +1,12 @@
1
1
  // This file is autogenerated by the hyperschema compiler
2
- // Schema Version: 9
2
+ // Schema Version: 10
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
9
+ const VERSION = 10
10
10
 
11
11
  // eslint-disable-next-line no-unused-vars
12
12
  let version = VERSION
@@ -346,7 +346,8 @@ const encoding9 = {
346
346
  (m.onboardingCompleted ? 32 : 0) |
347
347
  (m.delegation ? 64 : 0) |
348
348
  (m.pausedModels ? 128 : 0) |
349
- ((version >= 8 && m.releasedModels) ? 256 : 0)
349
+ ((version >= 8 && m.releasedModels) ? 256 : 0) |
350
+ ((version >= 10 && m.manualModelDownloads) ? 512 : 0)
350
351
 
351
352
  c.string.preencode(state, m.id)
352
353
  c.uint.preencode(state, flags)
@@ -369,7 +370,8 @@ const encoding9 = {
369
370
  (m.onboardingCompleted ? 32 : 0) |
370
371
  (m.delegation ? 64 : 0) |
371
372
  (m.pausedModels ? 128 : 0) |
372
- ((version >= 8 && m.releasedModels) ? 256 : 0)
373
+ ((version >= 8 && m.releasedModels) ? 256 : 0) |
374
+ ((version >= 10 && m.manualModelDownloads) ? 512 : 0)
373
375
 
374
376
  c.string.encode(state, m.id)
375
377
  c.uint.encode(state, flags)
@@ -397,7 +399,8 @@ const encoding9 = {
397
399
  onboardingCompleted: (flags & 32) !== 0,
398
400
  delegation: (flags & 64) !== 0 ? c.json.decode(state) : null,
399
401
  pausedModels: (flags & 128) !== 0 ? encoding9_8.decode(state) : null,
400
- releasedModels: (version >= 8 && (flags & 256) !== 0) ? encoding9_9.decode(state) : null
402
+ releasedModels: (version >= 8 && (flags & 256) !== 0) ? encoding9_9.decode(state) : null,
403
+ manualModelDownloads: (version >= 10 && (flags & 512) !== 0)
401
404
  }
402
405
  }
403
406
  }
@@ -447,13 +450,14 @@ const encoding11_enum = {
447
450
  queued: 'queued',
448
451
  downloading: 'downloading',
449
452
  paused: 'paused',
450
- error: 'error'
453
+ error: 'error',
454
+ held: 'held'
451
455
  }
452
456
 
453
457
  // @local/model-download-phase enum
454
458
  const encoding11 = {
455
459
  preencode (state, m) {
456
- state.end++ // max enum is 4 so always one byte
460
+ state.end++ // max enum is 5 so always one byte
457
461
  },
458
462
  encode (state, m) {
459
463
  switch (m) {
@@ -469,6 +473,9 @@ const encoding11 = {
469
473
  case 'error':
470
474
  c.uint.encode(state, 4)
471
475
  break
476
+ case 'held':
477
+ c.uint.encode(state, 5)
478
+ break
472
479
  default:
473
480
  throw new Error('Unknown enum')
474
481
  }
@@ -483,6 +490,8 @@ const encoding11 = {
483
490
  return 'paused'
484
491
  case 4:
485
492
  return 'error'
493
+ case 5:
494
+ return 'held'
486
495
  default: return null
487
496
  }
488
497
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 9,
2
+ "version": 10,
3
3
  "schema": [
4
4
  {
5
5
  "name": "qvac-state",
@@ -246,6 +246,11 @@
246
246
  "array": true,
247
247
  "type": "string",
248
248
  "version": 8
249
+ },
250
+ {
251
+ "name": "manualModelDownloads",
252
+ "type": "bool",
253
+ "version": 10
249
254
  }
250
255
  ]
251
256
  },
@@ -281,6 +286,10 @@
281
286
  {
282
287
  "key": "error",
283
288
  "version": 1
289
+ },
290
+ {
291
+ "key": "held",
292
+ "version": 10
284
293
  }
285
294
  ],
286
295
  "strings": true
@@ -1,5 +1,5 @@
1
1
  // This file is autogenerated by hyperschema-ts
2
- // Schema version: 9
2
+ // Schema version: 10
3
3
  // Do not edit manually.
4
4
 
5
5
  export type LocalQvacState = 1 | 2 | 3 | 4
@@ -50,11 +50,12 @@ export interface LocalAppConfigV1 {
50
50
  delegation?: unknown | null
51
51
  pausedModels?: string[] | null
52
52
  releasedModels?: string[] | null
53
+ manualModelDownloads?: boolean
53
54
  }
54
55
 
55
56
  export type LocalAppConfig = (LocalAppConfigV1 & { version?: number })
56
57
 
57
- export type LocalModelDownloadPhase = "queued" | "downloading" | "paused" | "error"
58
+ export type LocalModelDownloadPhase = "queued" | "downloading" | "paused" | "error" | "held"
58
59
 
59
60
  export interface LocalModelDownloadV1 {
60
61
  name: string
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 9,
2
+ "version": 10,
3
3
  "offset": 0,
4
4
  "schema": [
5
5
  {
@@ -922,6 +922,21 @@
922
922
  "id"
923
923
  ],
924
924
  "trigger": null
925
+ },
926
+ {
927
+ "name": "mesh-seeds",
928
+ "namespace": "qvac",
929
+ "id": 50,
930
+ "type": 1,
931
+ "version": 10,
932
+ "versionField": null,
933
+ "indexes": [],
934
+ "schema": "@qvac/mesh-seed",
935
+ "derived": false,
936
+ "key": [
937
+ "meshKey"
938
+ ],
939
+ "trigger": null
925
940
  }
926
941
  ]
927
942
  }