@qvac/core 0.7.5 → 0.8.0
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 +79 -1
- package/dist-lib/lib/assistant/skill-encode.d.ts +1 -0
- package/dist-lib/lib/assistant/skill-encode.js +1 -0
- package/dist-lib/lib/core/blind-peers.d.ts +0 -3
- package/dist-lib/lib/core/chunk.d.ts +4 -0
- package/dist-lib/lib/core/contract/seed-defaults.js +2 -2
- package/dist-lib/lib/core/contract/writers.js +1 -1
- package/dist-lib/lib/core/departures.d.ts +5 -7
- package/dist-lib/lib/core/departures.js +14 -12
- package/dist-lib/lib/core/files/records/reclaim.js +1 -1
- package/dist-lib/lib/core/fs-drives.d.ts +2 -6
- package/dist-lib/lib/core/fs-drives.js +7 -30
- package/dist-lib/lib/core/mesh.d.ts +20 -7
- package/dist-lib/lib/core/mesh.js +205 -39
- package/dist-lib/lib/core/sync/index.d.ts +1 -0
- package/dist-lib/lib/core/sync/index.js +136 -67
- package/dist-lib/lib/core.d.ts +5 -10
- package/dist-lib/lib/core.js +156 -156
- package/dist-lib/schema/engine.js +5 -2
- package/dist-lib/spec/hrpc/messages.js +22 -6
- package/dist-lib/spec/hyperschema/index.js +22 -6
- package/dist-lib/spec/hyperschema/schema.json +15 -0
- package/dist-lib/spec/hyperschema/types.d.ts +3 -0
- package/package.json +1 -1
- package/tui/README.md +17 -13
- package/tui/app.mjs +234 -52
- package/tui/main.mjs +10 -3
|
@@ -5549,13 +5549,20 @@ const encoding144 = {
|
|
|
5549
5549
|
preencode(state, m) {
|
|
5550
5550
|
encoding143.preencode(state, m.state)
|
|
5551
5551
|
c.uint.preencode(state, m.peerCount)
|
|
5552
|
-
state.end++ // max flag is
|
|
5552
|
+
state.end++ // max flag is 16 so always one byte
|
|
5553
5553
|
|
|
5554
5554
|
if (m.peerDeviceIds) encoding144_2.preencode(state, m.peerDeviceIds)
|
|
5555
5555
|
if (m.error) c.string.preencode(state, m.error)
|
|
5556
|
+
if (m.blindPeersConnected) c.uint.preencode(state, m.blindPeersConnected)
|
|
5557
|
+
if (m.blindPeersTotal) c.uint.preencode(state, m.blindPeersTotal)
|
|
5556
5558
|
},
|
|
5557
5559
|
encode(state, m) {
|
|
5558
|
-
const flags =
|
|
5560
|
+
const flags =
|
|
5561
|
+
(m.peerDeviceIds ? 1 : 0) |
|
|
5562
|
+
(m.kickedPending ? 2 : 0) |
|
|
5563
|
+
(m.error ? 4 : 0) |
|
|
5564
|
+
(m.blindPeersConnected ? 8 : 0) |
|
|
5565
|
+
(m.blindPeersTotal ? 16 : 0)
|
|
5559
5566
|
|
|
5560
5567
|
encoding143.encode(state, m.state)
|
|
5561
5568
|
c.uint.encode(state, m.peerCount)
|
|
@@ -5563,6 +5570,8 @@ const encoding144 = {
|
|
|
5563
5570
|
|
|
5564
5571
|
if (m.peerDeviceIds) encoding144_2.encode(state, m.peerDeviceIds)
|
|
5565
5572
|
if (m.error) c.string.encode(state, m.error)
|
|
5573
|
+
if (m.blindPeersConnected) c.uint.encode(state, m.blindPeersConnected)
|
|
5574
|
+
if (m.blindPeersTotal) c.uint.encode(state, m.blindPeersTotal)
|
|
5566
5575
|
},
|
|
5567
5576
|
decode(state) {
|
|
5568
5577
|
const r0 = encoding143.decode(state)
|
|
@@ -5574,7 +5583,9 @@ const encoding144 = {
|
|
|
5574
5583
|
peerCount: r1,
|
|
5575
5584
|
peerDeviceIds: (flags & 1) !== 0 ? encoding144_2.decode(state) : null,
|
|
5576
5585
|
kickedPending: (flags & 2) !== 0,
|
|
5577
|
-
error: (flags & 4) !== 0 ? c.string.decode(state) : null
|
|
5586
|
+
error: (flags & 4) !== 0 ? c.string.decode(state) : null,
|
|
5587
|
+
blindPeersConnected: (flags & 8) !== 0 ? c.uint.decode(state) : 0,
|
|
5588
|
+
blindPeersTotal: (flags & 16) !== 0 ? c.uint.decode(state) : 0
|
|
5578
5589
|
}
|
|
5579
5590
|
}
|
|
5580
5591
|
}
|
|
@@ -7733,7 +7744,8 @@ const encoding208 = {
|
|
|
7733
7744
|
(m.setup ? 64 : 0) |
|
|
7734
7745
|
(m.stub ? 128 : 0) |
|
|
7735
7746
|
(m.minCapabilityProfile ? 256 : 0) |
|
|
7736
|
-
(m.emoji ? 512 : 0)
|
|
7747
|
+
(m.emoji ? 512 : 0) |
|
|
7748
|
+
(m.displayName ? 1024 : 0)
|
|
7737
7749
|
|
|
7738
7750
|
c.string.preencode(state, m.name)
|
|
7739
7751
|
c.string.preencode(state, m.description)
|
|
@@ -7749,6 +7761,7 @@ const encoding208 = {
|
|
|
7749
7761
|
c.string.preencode(state, m.status)
|
|
7750
7762
|
if (m.minCapabilityProfile) c.string.preencode(state, m.minCapabilityProfile)
|
|
7751
7763
|
if (m.emoji) c.string.preencode(state, m.emoji)
|
|
7764
|
+
if (m.displayName) c.string.preencode(state, m.displayName)
|
|
7752
7765
|
},
|
|
7753
7766
|
encode(state, m) {
|
|
7754
7767
|
const flags =
|
|
@@ -7761,7 +7774,8 @@ const encoding208 = {
|
|
|
7761
7774
|
(m.setup ? 64 : 0) |
|
|
7762
7775
|
(m.stub ? 128 : 0) |
|
|
7763
7776
|
(m.minCapabilityProfile ? 256 : 0) |
|
|
7764
|
-
(m.emoji ? 512 : 0)
|
|
7777
|
+
(m.emoji ? 512 : 0) |
|
|
7778
|
+
(m.displayName ? 1024 : 0)
|
|
7765
7779
|
|
|
7766
7780
|
c.string.encode(state, m.name)
|
|
7767
7781
|
c.string.encode(state, m.description)
|
|
@@ -7777,6 +7791,7 @@ const encoding208 = {
|
|
|
7777
7791
|
c.string.encode(state, m.status)
|
|
7778
7792
|
if (m.minCapabilityProfile) c.string.encode(state, m.minCapabilityProfile)
|
|
7779
7793
|
if (m.emoji) c.string.encode(state, m.emoji)
|
|
7794
|
+
if (m.displayName) c.string.encode(state, m.displayName)
|
|
7780
7795
|
},
|
|
7781
7796
|
decode(state) {
|
|
7782
7797
|
const r0 = c.string.decode(state)
|
|
@@ -7796,7 +7811,8 @@ const encoding208 = {
|
|
|
7796
7811
|
status: c.string.decode(state),
|
|
7797
7812
|
stub: (flags & 128) !== 0,
|
|
7798
7813
|
minCapabilityProfile: (flags & 256) !== 0 ? c.string.decode(state) : null,
|
|
7799
|
-
emoji: (flags & 512) !== 0 ? c.string.decode(state) : null
|
|
7814
|
+
emoji: (flags & 512) !== 0 ? c.string.decode(state) : null,
|
|
7815
|
+
displayName: (flags & 1024) !== 0 ? c.string.decode(state) : null
|
|
7800
7816
|
}
|
|
7801
7817
|
}
|
|
7802
7818
|
}
|
|
@@ -5549,13 +5549,20 @@ const encoding144 = {
|
|
|
5549
5549
|
preencode(state, m) {
|
|
5550
5550
|
encoding143.preencode(state, m.state)
|
|
5551
5551
|
c.uint.preencode(state, m.peerCount)
|
|
5552
|
-
state.end++ // max flag is
|
|
5552
|
+
state.end++ // max flag is 16 so always one byte
|
|
5553
5553
|
|
|
5554
5554
|
if (m.peerDeviceIds) encoding144_2.preencode(state, m.peerDeviceIds)
|
|
5555
5555
|
if (m.error) c.string.preencode(state, m.error)
|
|
5556
|
+
if (m.blindPeersConnected) c.uint.preencode(state, m.blindPeersConnected)
|
|
5557
|
+
if (m.blindPeersTotal) c.uint.preencode(state, m.blindPeersTotal)
|
|
5556
5558
|
},
|
|
5557
5559
|
encode(state, m) {
|
|
5558
|
-
const flags =
|
|
5560
|
+
const flags =
|
|
5561
|
+
(m.peerDeviceIds ? 1 : 0) |
|
|
5562
|
+
(m.kickedPending ? 2 : 0) |
|
|
5563
|
+
(m.error ? 4 : 0) |
|
|
5564
|
+
(m.blindPeersConnected ? 8 : 0) |
|
|
5565
|
+
(m.blindPeersTotal ? 16 : 0)
|
|
5559
5566
|
|
|
5560
5567
|
encoding143.encode(state, m.state)
|
|
5561
5568
|
c.uint.encode(state, m.peerCount)
|
|
@@ -5563,6 +5570,8 @@ const encoding144 = {
|
|
|
5563
5570
|
|
|
5564
5571
|
if (m.peerDeviceIds) encoding144_2.encode(state, m.peerDeviceIds)
|
|
5565
5572
|
if (m.error) c.string.encode(state, m.error)
|
|
5573
|
+
if (m.blindPeersConnected) c.uint.encode(state, m.blindPeersConnected)
|
|
5574
|
+
if (m.blindPeersTotal) c.uint.encode(state, m.blindPeersTotal)
|
|
5566
5575
|
},
|
|
5567
5576
|
decode(state) {
|
|
5568
5577
|
const r0 = encoding143.decode(state)
|
|
@@ -5574,7 +5583,9 @@ const encoding144 = {
|
|
|
5574
5583
|
peerCount: r1,
|
|
5575
5584
|
peerDeviceIds: (flags & 1) !== 0 ? encoding144_2.decode(state) : null,
|
|
5576
5585
|
kickedPending: (flags & 2) !== 0,
|
|
5577
|
-
error: (flags & 4) !== 0 ? c.string.decode(state) : null
|
|
5586
|
+
error: (flags & 4) !== 0 ? c.string.decode(state) : null,
|
|
5587
|
+
blindPeersConnected: (flags & 8) !== 0 ? c.uint.decode(state) : 0,
|
|
5588
|
+
blindPeersTotal: (flags & 16) !== 0 ? c.uint.decode(state) : 0
|
|
5578
5589
|
}
|
|
5579
5590
|
}
|
|
5580
5591
|
}
|
|
@@ -7733,7 +7744,8 @@ const encoding208 = {
|
|
|
7733
7744
|
(m.setup ? 64 : 0) |
|
|
7734
7745
|
(m.stub ? 128 : 0) |
|
|
7735
7746
|
(m.minCapabilityProfile ? 256 : 0) |
|
|
7736
|
-
(m.emoji ? 512 : 0)
|
|
7747
|
+
(m.emoji ? 512 : 0) |
|
|
7748
|
+
(m.displayName ? 1024 : 0)
|
|
7737
7749
|
|
|
7738
7750
|
c.string.preencode(state, m.name)
|
|
7739
7751
|
c.string.preencode(state, m.description)
|
|
@@ -7749,6 +7761,7 @@ const encoding208 = {
|
|
|
7749
7761
|
c.string.preencode(state, m.status)
|
|
7750
7762
|
if (m.minCapabilityProfile) c.string.preencode(state, m.minCapabilityProfile)
|
|
7751
7763
|
if (m.emoji) c.string.preencode(state, m.emoji)
|
|
7764
|
+
if (m.displayName) c.string.preencode(state, m.displayName)
|
|
7752
7765
|
},
|
|
7753
7766
|
encode(state, m) {
|
|
7754
7767
|
const flags =
|
|
@@ -7761,7 +7774,8 @@ const encoding208 = {
|
|
|
7761
7774
|
(m.setup ? 64 : 0) |
|
|
7762
7775
|
(m.stub ? 128 : 0) |
|
|
7763
7776
|
(m.minCapabilityProfile ? 256 : 0) |
|
|
7764
|
-
(m.emoji ? 512 : 0)
|
|
7777
|
+
(m.emoji ? 512 : 0) |
|
|
7778
|
+
(m.displayName ? 1024 : 0)
|
|
7765
7779
|
|
|
7766
7780
|
c.string.encode(state, m.name)
|
|
7767
7781
|
c.string.encode(state, m.description)
|
|
@@ -7777,6 +7791,7 @@ const encoding208 = {
|
|
|
7777
7791
|
c.string.encode(state, m.status)
|
|
7778
7792
|
if (m.minCapabilityProfile) c.string.encode(state, m.minCapabilityProfile)
|
|
7779
7793
|
if (m.emoji) c.string.encode(state, m.emoji)
|
|
7794
|
+
if (m.displayName) c.string.encode(state, m.displayName)
|
|
7780
7795
|
},
|
|
7781
7796
|
decode(state) {
|
|
7782
7797
|
const r0 = c.string.decode(state)
|
|
@@ -7796,7 +7811,8 @@ const encoding208 = {
|
|
|
7796
7811
|
status: c.string.decode(state),
|
|
7797
7812
|
stub: (flags & 128) !== 0,
|
|
7798
7813
|
minCapabilityProfile: (flags & 256) !== 0 ? c.string.decode(state) : null,
|
|
7799
|
-
emoji: (flags & 512) !== 0 ? c.string.decode(state) : null
|
|
7814
|
+
emoji: (flags & 512) !== 0 ? c.string.decode(state) : null,
|
|
7815
|
+
displayName: (flags & 1024) !== 0 ? c.string.decode(state) : null
|
|
7800
7816
|
}
|
|
7801
7817
|
}
|
|
7802
7818
|
}
|
|
@@ -4360,6 +4360,16 @@
|
|
|
4360
4360
|
"name": "error",
|
|
4361
4361
|
"type": "string",
|
|
4362
4362
|
"version": 1
|
|
4363
|
+
},
|
|
4364
|
+
{
|
|
4365
|
+
"name": "blindPeersConnected",
|
|
4366
|
+
"type": "uint",
|
|
4367
|
+
"version": 1
|
|
4368
|
+
},
|
|
4369
|
+
{
|
|
4370
|
+
"name": "blindPeersTotal",
|
|
4371
|
+
"type": "uint",
|
|
4372
|
+
"version": 1
|
|
4363
4373
|
}
|
|
4364
4374
|
]
|
|
4365
4375
|
},
|
|
@@ -6278,6 +6288,11 @@
|
|
|
6278
6288
|
"name": "emoji",
|
|
6279
6289
|
"type": "string",
|
|
6280
6290
|
"version": 1
|
|
6291
|
+
},
|
|
6292
|
+
{
|
|
6293
|
+
"name": "displayName",
|
|
6294
|
+
"type": "string",
|
|
6295
|
+
"version": 1
|
|
6281
6296
|
}
|
|
6282
6297
|
]
|
|
6283
6298
|
},
|
|
@@ -899,6 +899,8 @@ export interface AssistantMeshStatus {
|
|
|
899
899
|
peerDeviceIds?: string[] | null
|
|
900
900
|
kickedPending?: boolean
|
|
901
901
|
error?: string | null
|
|
902
|
+
blindPeersConnected?: number
|
|
903
|
+
blindPeersTotal?: number
|
|
902
904
|
}
|
|
903
905
|
|
|
904
906
|
export type AssistantNetworkStatusState = "online" | "degraded" | "offline"
|
|
@@ -1309,6 +1311,7 @@ export interface AssistantSkill {
|
|
|
1309
1311
|
stub?: boolean
|
|
1310
1312
|
minCapabilityProfile?: string | null
|
|
1311
1313
|
emoji?: string | null
|
|
1314
|
+
displayName?: string | null
|
|
1312
1315
|
}
|
|
1313
1316
|
|
|
1314
1317
|
export interface AssistantSkillCatalogResponse {
|
package/package.json
CHANGED
package/tui/README.md
CHANGED
|
@@ -79,28 +79,32 @@ an explicit root — it puts the SDK home and its lock on a scratch
|
|
|
79
79
|
`<dir>/sdk-home`. Models are still shared; `QVAC_MODEL_CACHE_PATH` isolates
|
|
80
80
|
those too.
|
|
81
81
|
|
|
82
|
-
The TUI copies its mesh invite to the clipboard on ctrl+y
|
|
82
|
+
The TUI copies its mesh invite to the clipboard on ctrl+y. With no clipboard
|
|
83
|
+
command (a container, ssh) it asks your terminal to set the clipboard with
|
|
84
|
+
OSC 52, which the terminal has to allow. A running TUI moves
|
|
83
85
|
mesh with `/join qvac://mesh/…`. See [../docs/tui-commands.md](../docs/tui-commands.md)
|
|
84
86
|
for the full command set.
|
|
85
87
|
|
|
86
88
|
## Environment
|
|
87
89
|
|
|
88
|
-
| Variable | Effect
|
|
89
|
-
| ----------------------------------------------------------- |
|
|
90
|
-
| `QVAC_MODEL` | Overrides the demo agent's model — a
|
|
91
|
-
| `
|
|
92
|
-
| `
|
|
93
|
-
| `
|
|
94
|
-
| `
|
|
95
|
-
| `
|
|
96
|
-
|
|
90
|
+
| Variable | Effect |
|
|
91
|
+
| ----------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
92
|
+
| `QVAC_MODEL` | Overrides the demo agent's model — a catalog name, quant suffix included (`Qwen3.5-4B-Q4_K_M`), or a local path/URL. Only a catalog name has its mmproj paired, so ctrl+V'd images reach the model; a path or URL runs text-only |
|
|
93
|
+
| `QVAC_IMAGE_MODEL` | Enables the `generate_image`/`edit_image` tools — a catalog choice (`sd2` \| `sdxl` \| `flux2-klein`), or a local diffusion model |
|
|
94
|
+
| `QVAC_IMAGE_LLM`, `QVAC_IMAGE_VAE`, `QVAC_IMAGE_PREDICTION` | FLUX.2 is a companion set: the Qwen3 text encoder, the VAE, and `flux2_flow` (required for img2img) |
|
|
95
|
+
| `QVAC_LOG_FILE`, `QVAC_LOG_LEVEL` | Move the log file / pick the level (`debug` \| `info` \| `warn` \| `error`, default `info`) |
|
|
96
|
+
| `QVAC_BOOT_TIMING=1` | Prints the total connect time after the TUI exits |
|
|
97
|
+
| `QVAC_FAKE_MODELS=1` | Adds the deterministic `quack` model, as `--fake-models` does |
|
|
98
|
+
|
|
99
|
+
A vision model, with its projection paired from the catalog:
|
|
97
100
|
|
|
98
101
|
```sh
|
|
99
|
-
QVAC_MODEL
|
|
100
|
-
QVAC_MMPROJ=~/.qvac/models/0e037fa9ec5dddcf_Qwen3.5-4B.mmproj-Q8_0.gguf \
|
|
101
|
-
duck
|
|
102
|
+
QVAC_MODEL=Qwen3.5-4B-Q4_K_M duck
|
|
102
103
|
```
|
|
103
104
|
|
|
105
|
+
The bare `Qwen3.5-4B` is not a catalog name: it falls through to a registry
|
|
106
|
+
search whose first match is that model's mmproj file, which fails to load.
|
|
107
|
+
|
|
104
108
|
Logs (Core's own lines, and the sidecar child's piped stdout/stderr — the
|
|
105
109
|
llama.cpp and SDK output) go to `<storage.root>/assistant.log`, as they do on
|
|
106
110
|
desktop. Nothing is printed: the TUI owns the tty.
|