@qvac/core 0.7.2 → 0.7.5

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.
@@ -26,13 +26,18 @@
26
26
  "name": "config-key",
27
27
  "namespace": "assistant",
28
28
  "compact": false,
29
- "flagsPosition": -1,
29
+ "flagsPosition": 1,
30
30
  "fields": [
31
31
  {
32
32
  "name": "key",
33
33
  "required": true,
34
34
  "type": "string",
35
35
  "version": 1
36
+ },
37
+ {
38
+ "name": "deviceId",
39
+ "type": "fixed32",
40
+ "version": 1
36
41
  }
37
42
  ]
38
43
  },
@@ -53,7 +58,7 @@
53
58
  "name": "config-set-request",
54
59
  "namespace": "assistant",
55
60
  "compact": false,
56
- "flagsPosition": -1,
61
+ "flagsPosition": 2,
57
62
  "fields": [
58
63
  {
59
64
  "name": "key",
@@ -66,6 +71,11 @@
66
71
  "required": true,
67
72
  "type": "json",
68
73
  "version": 1
74
+ },
75
+ {
76
+ "name": "deviceId",
77
+ "type": "fixed32",
78
+ "version": 1
69
79
  }
70
80
  ]
71
81
  },
@@ -4601,6 +4611,11 @@
4601
4611
  "name": "excludeCustom",
4602
4612
  "type": "bool",
4603
4613
  "version": 1
4614
+ },
4615
+ {
4616
+ "name": "deviceId",
4617
+ "type": "fixed32",
4618
+ "version": 1
4604
4619
  }
4605
4620
  ]
4606
4621
  },
@@ -4702,13 +4717,18 @@
4702
4717
  "name": "delete-model-request",
4703
4718
  "namespace": "assistant",
4704
4719
  "compact": false,
4705
- "flagsPosition": -1,
4720
+ "flagsPosition": 1,
4706
4721
  "fields": [
4707
4722
  {
4708
4723
  "name": "name",
4709
4724
  "required": true,
4710
4725
  "type": "string",
4711
4726
  "version": 1
4727
+ },
4728
+ {
4729
+ "name": "deviceId",
4730
+ "type": "fixed32",
4731
+ "version": 1
4712
4732
  }
4713
4733
  ]
4714
4734
  },
@@ -5069,6 +5089,11 @@
5069
5089
  "required": false,
5070
5090
  "type": "bool",
5071
5091
  "version": 1
5092
+ },
5093
+ {
5094
+ "name": "deviceId",
5095
+ "type": "fixed32",
5096
+ "version": 1
5072
5097
  }
5073
5098
  ]
5074
5099
  },
@@ -5248,13 +5273,18 @@
5248
5273
  "name": "clear-model-download-request",
5249
5274
  "namespace": "assistant",
5250
5275
  "compact": false,
5251
- "flagsPosition": -1,
5276
+ "flagsPosition": 1,
5252
5277
  "fields": [
5253
5278
  {
5254
5279
  "name": "name",
5255
5280
  "required": true,
5256
5281
  "type": "string",
5257
5282
  "version": 1
5283
+ },
5284
+ {
5285
+ "name": "deviceId",
5286
+ "type": "fixed32",
5287
+ "version": 1
5258
5288
  }
5259
5289
  ]
5260
5290
  },
@@ -5385,6 +5415,11 @@
5385
5415
  "name": "expectedSize",
5386
5416
  "type": "uint",
5387
5417
  "version": 1
5418
+ },
5419
+ {
5420
+ "name": "deviceId",
5421
+ "type": "fixed32",
5422
+ "version": 1
5388
5423
  }
5389
5424
  ]
5390
5425
  },
@@ -5406,13 +5441,18 @@
5406
5441
  "name": "remove-custom-model-request",
5407
5442
  "namespace": "assistant",
5408
5443
  "compact": false,
5409
- "flagsPosition": -1,
5444
+ "flagsPosition": 1,
5410
5445
  "fields": [
5411
5446
  {
5412
5447
  "name": "name",
5413
5448
  "required": true,
5414
5449
  "type": "string",
5415
5450
  "version": 1
5451
+ },
5452
+ {
5453
+ "name": "deviceId",
5454
+ "type": "fixed32",
5455
+ "version": 1
5416
5456
  }
5417
5457
  ]
5418
5458
  },
@@ -5432,6 +5472,11 @@
5432
5472
  "name": "mmprojSrc",
5433
5473
  "type": "string",
5434
5474
  "version": 1
5475
+ },
5476
+ {
5477
+ "name": "deviceId",
5478
+ "type": "fixed32",
5479
+ "version": 1
5435
5480
  }
5436
5481
  ]
5437
5482
  },
@@ -8439,13 +8484,18 @@
8439
8484
  "name": "load-model-request",
8440
8485
  "namespace": "assistant",
8441
8486
  "compact": false,
8442
- "flagsPosition": -1,
8487
+ "flagsPosition": 1,
8443
8488
  "fields": [
8444
8489
  {
8445
8490
  "name": "name",
8446
8491
  "required": true,
8447
8492
  "type": "string",
8448
8493
  "version": 1
8494
+ },
8495
+ {
8496
+ "name": "deviceId",
8497
+ "type": "fixed32",
8498
+ "version": 1
8449
8499
  }
8450
8500
  ]
8451
8501
  },
@@ -8472,13 +8522,18 @@
8472
8522
  "name": "unload-model-request",
8473
8523
  "namespace": "assistant",
8474
8524
  "compact": false,
8475
- "flagsPosition": -1,
8525
+ "flagsPosition": 1,
8476
8526
  "fields": [
8477
8527
  {
8478
8528
  "name": "name",
8479
8529
  "required": true,
8480
8530
  "type": "string",
8481
8531
  "version": 1
8532
+ },
8533
+ {
8534
+ "name": "deviceId",
8535
+ "type": "fixed32",
8536
+ "version": 1
8482
8537
  }
8483
8538
  ]
8484
8539
  },
@@ -8520,13 +8575,18 @@
8520
8575
  "name": "model-users-request",
8521
8576
  "namespace": "assistant",
8522
8577
  "compact": false,
8523
- "flagsPosition": -1,
8578
+ "flagsPosition": 1,
8524
8579
  "fields": [
8525
8580
  {
8526
8581
  "name": "name",
8527
8582
  "required": true,
8528
8583
  "type": "string",
8529
8584
  "version": 1
8585
+ },
8586
+ {
8587
+ "name": "deviceId",
8588
+ "type": "fixed32",
8589
+ "version": 1
8530
8590
  }
8531
8591
  ]
8532
8592
  },
@@ -8645,6 +8705,19 @@
8645
8705
  "version": 1
8646
8706
  }
8647
8707
  ]
8708
+ },
8709
+ {
8710
+ "name": "device-scope",
8711
+ "namespace": "assistant",
8712
+ "compact": false,
8713
+ "flagsPosition": 0,
8714
+ "fields": [
8715
+ {
8716
+ "name": "deviceId",
8717
+ "type": "fixed32",
8718
+ "version": 1
8719
+ }
8720
+ ]
8648
8721
  }
8649
8722
  ]
8650
8723
  }
@@ -11,6 +11,7 @@ export interface AssistantOkResponse {
11
11
 
12
12
  export interface AssistantConfigKey {
13
13
  key: string
14
+ deviceId?: Buffer | null
14
15
  }
15
16
 
16
17
  export interface AssistantConfigValue {
@@ -20,6 +21,7 @@ export interface AssistantConfigValue {
20
21
  export interface AssistantConfigSetRequest {
21
22
  key: string
22
23
  value: unknown
24
+ deviceId?: Buffer | null
23
25
  }
24
26
 
25
27
  export interface AssistantConfigSetResponse {
@@ -944,6 +946,7 @@ export interface AssistantListModelsRequest {
944
946
  fullRegistry?: boolean
945
947
  taskType?: AssistantModelTaskType | null
946
948
  excludeCustom?: boolean
949
+ deviceId?: Buffer | null
947
950
  }
948
951
 
949
952
  export interface AssistantModelInfo {
@@ -968,6 +971,7 @@ export interface AssistantModelInfoList {
968
971
 
969
972
  export interface AssistantDeleteModelRequest {
970
973
  name: string
974
+ deviceId?: Buffer | null
971
975
  }
972
976
 
973
977
  export interface AssistantDeleteModelResponse {
@@ -1049,6 +1053,7 @@ export interface AssistantAppConfigUpdate {
1049
1053
  export interface AssistantSetModelPausedRequest {
1050
1054
  name: string
1051
1055
  paused?: boolean
1056
+ deviceId?: Buffer | null
1052
1057
  }
1053
1058
 
1054
1059
  export interface AssistantSetModelReleasedRequest {
@@ -1089,6 +1094,7 @@ export interface AssistantSetModelDownloadStatusRequest {
1089
1094
 
1090
1095
  export interface AssistantClearModelDownloadRequest {
1091
1096
  name: string
1097
+ deviceId?: Buffer | null
1092
1098
  }
1093
1099
 
1094
1100
  export interface AssistantCustomModel {
@@ -1118,6 +1124,7 @@ export interface AssistantAddCustomModelRequest {
1118
1124
  supportsThinking?: boolean
1119
1125
  supportsVision?: boolean
1120
1126
  expectedSize?: number
1127
+ deviceId?: Buffer | null
1121
1128
  }
1122
1129
 
1123
1130
  export interface AssistantAddCustomModelResponse {
@@ -1126,11 +1133,13 @@ export interface AssistantAddCustomModelResponse {
1126
1133
 
1127
1134
  export interface AssistantRemoveCustomModelRequest {
1128
1135
  name: string
1136
+ deviceId?: Buffer | null
1129
1137
  }
1130
1138
 
1131
1139
  export interface AssistantPreviewCustomModelRequest {
1132
1140
  src: string
1133
1141
  mmprojSrc?: string | null
1142
+ deviceId?: Buffer | null
1134
1143
  }
1135
1144
 
1136
1145
  export interface AssistantCustomModelSourceFile {
@@ -1816,6 +1825,7 @@ export interface AssistantPreviewMeshInviteResponse {
1816
1825
 
1817
1826
  export interface AssistantLoadModelRequest {
1818
1827
  name: string
1828
+ deviceId?: Buffer | null
1819
1829
  }
1820
1830
 
1821
1831
  export interface AssistantLoadModelResponse {
@@ -1825,6 +1835,7 @@ export interface AssistantLoadModelResponse {
1825
1835
 
1826
1836
  export interface AssistantUnloadModelRequest {
1827
1837
  name: string
1838
+ deviceId?: Buffer | null
1828
1839
  }
1829
1840
 
1830
1841
  export interface AssistantUnloadModelResponse {
@@ -1835,6 +1846,7 @@ export type AssistantModelUse = "chat" | "image" | "music"
1835
1846
 
1836
1847
  export interface AssistantModelUsersRequest {
1837
1848
  name: string
1849
+ deviceId?: Buffer | null
1838
1850
  }
1839
1851
 
1840
1852
  export interface AssistantModelUser {
@@ -1863,6 +1875,10 @@ export interface AssistantModelMemory {
1863
1875
  overCap?: boolean
1864
1876
  }
1865
1877
 
1878
+ export interface AssistantDeviceScope {
1879
+ deviceId?: Buffer | null
1880
+ }
1881
+
1866
1882
  export interface SchemaTypes {
1867
1883
  "@assistant/empty": AssistantEmpty
1868
1884
  "@assistant/ok-response": AssistantOkResponse
@@ -2167,4 +2183,5 @@ export interface SchemaTypes {
2167
2183
  "@assistant/model-users": AssistantModelUsers
2168
2184
  "@assistant/chunk-delta": AssistantChunkDelta
2169
2185
  "@assistant/model-memory": AssistantModelMemory
2186
+ "@assistant/device-scope": AssistantDeviceScope
2170
2187
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qvac/core",
3
- "version": "0.7.2",
3
+ "version": "0.7.5",
4
4
  "type": "module",
5
5
  "description": "Peer-to-peer AI across your devices",
6
6
  "engines": {
@@ -146,6 +146,7 @@
146
146
  "mesh-capability-run": "bare examples/mesh-capability-run.mjs",
147
147
  "model-idle-limit": "bare examples/model-idle-limit.mjs",
148
148
  "model-memory-cap": "bare examples/model-memory-cap.mjs",
149
+ "device-models": "bare examples/device-models.mjs",
149
150
  "model-load-unload": "bare examples/model-load-unload.mjs",
150
151
  "model-users": "bare examples/model-users.mjs",
151
152
  "models-by-task": "bare examples/models-by-task.mjs",
package/tui/README.md CHANGED
@@ -42,7 +42,7 @@ Bare's native TTY; the TUI will not run under node.
42
42
  ## Usage
43
43
 
44
44
  ```
45
- duck [--storage <dir>] [--temp] [--headless] [--join <invite>] [--fake-models]
45
+ duck [--storage <dir>] [--temp] [--headless] [--join <invite>] [--device-join <invite>] [--fake-models]
46
46
  ```
47
47
 
48
48
  Flags may appear in any order. Inside the app, `/join qvac://mesh/…` moves a
@@ -55,9 +55,13 @@ running instance to another mesh.
55
55
  (it adds one of your own devices), then streams logs (including the sidecar child's own output) to stdout until
56
56
  ctrl+C. A mesh peer to point other instances at, and the only live view of
57
57
  the boot the TUI hides.
58
- - `--join <invite>` (`-j`) — joins that mesh invite at boot, with no preview
59
- step, then prints this device's invite, as without the flag. For a headless peer that has no
60
- prompt to `/join` from.
58
+ - `--join <invite>` (`-j`) — joins a mesh at boot as a new member, with no
59
+ preview step: the mesh is added beside the ones this device has and nothing is
60
+ retired. Takes a member invite (`/invite member`); a device invite is refused.
61
+ - `--device-join <invite>` — pairs this device into the inviter's account at
62
+ boot, retiring the mesh it is on. Takes a device invite (`/invite`); a member
63
+ invite is refused. Both are for a headless peer that has no prompt to `/join`
64
+ from, and both then print this device's invite, as without the flag.
61
65
  - `--fake-models` — adds the `quack` model, a fake LLM that runs no inference:
62
66
  it replies with `quack` repeated a number of times taken from a hash of the
63
67
  prompt, so the same prompt always gets the same reply. Pick it with