@qvac/core 0.7.6 → 0.9.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.
@@ -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 4 so always one byte
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 = (m.peerDeviceIds ? 1 : 0) | (m.kickedPending ? 2 : 0) | (m.error ? 4 : 0)
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 4 so always one byte
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 = (m.peerDeviceIds ? 1 : 0) | (m.kickedPending ? 2 : 0) | (m.error ? 4 : 0)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qvac/core",
3
- "version": "0.7.6",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "description": "Peer-to-peer AI across your devices",
6
6
  "engines": {
package/tui/README.md CHANGED
@@ -45,7 +45,7 @@ Bare's native TTY; the TUI will not run under node.
45
45
  duck [--storage <dir>] [--temp] [--headless] [--join <invite>] [--device-join <invite>] [--fake-models]
46
46
  ```
47
47
 
48
- Flags may appear in any order. Inside the app, `/join qvac://mesh/…` moves a
48
+ Flags may appear in any order. Inside the app, `/join qvac://device/…` moves a
49
49
  running instance to another mesh.
50
50
 
51
51
  - `--storage <dir>` — a self-contained root (its own corestore and SDK home
@@ -82,27 +82,29 @@ those too.
82
82
  The TUI copies its mesh invite to the clipboard on ctrl+y. With no clipboard
83
83
  command (a container, ssh) it asks your terminal to set the clipboard with
84
84
  OSC 52, which the terminal has to allow. A running TUI moves
85
- mesh with `/join qvac://mesh/…`. See [../docs/tui-commands.md](../docs/tui-commands.md)
85
+ mesh with `/join qvac://device/…`. See [../docs/tui-commands.md](../docs/tui-commands.md)
86
86
  for the full command set.
87
87
 
88
88
  ## Environment
89
89
 
90
- | Variable | Effect |
91
- | ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
92
- | `QVAC_MODEL` | Overrides the demo agent's model — a registry name, or a local path/URL |
93
- | `QVAC_MMPROJ` | Pairs models with their mmproj projections so ctrl+V'd images reach the model natively. One value applies to every model; `model=mmproj,model2=mmproj2` pairs are per-model |
94
- | `QVAC_IMAGE_MODEL` | Enables the `generate_image`/`edit_image` tools — a catalog choice (`sd2` \| `sdxl` \| `flux2-klein`), or a local diffusion model |
95
- | `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) |
96
- | `QVAC_LOG_FILE`, `QVAC_LOG_LEVEL` | Move the log file / pick the level (`debug` \| `info` \| `warn` \| `error`, default `info`) |
97
- | `QVAC_BOOT_TIMING=1` | Prints the total connect time after the TUI exits |
98
- | `QVAC_FAKE_MODELS=1` | Adds the deterministic `quack` model, as `--fake-models` does |
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:
99
100
 
100
101
  ```sh
101
- QVAC_MODEL=~/.qvac/models/3a65a2a3c6a30a47_Qwen3.5-4B-Q4_K_M.gguf \
102
- QVAC_MMPROJ=~/.qvac/models/0e037fa9ec5dddcf_Qwen3.5-4B.mmproj-Q8_0.gguf \
103
- duck
102
+ QVAC_MODEL=Qwen3.5-4B-Q4_K_M duck
104
103
  ```
105
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
+
106
108
  Logs (Core's own lines, and the sidecar child's piped stdout/stderr — the
107
109
  llama.cpp and SDK output) go to `<storage.root>/assistant.log`, as they do on
108
110
  desktop. Nothing is printed: the TUI owns the tty.
package/tui/app.mjs CHANGED
@@ -2469,7 +2469,7 @@ export class ChatApp {
2469
2469
  'Advanced',
2470
2470
  ' /cred <key> <value> — set a credential by hand for this agent (e.g. /cred github_access_token ghp_…); /skills, enter on the skill, fills this in for you',
2471
2471
  ' /scope skills all|selected — switch scope',
2472
- ' /join <qvac://mesh/…> — preview who you would join as (ctrl+y copies this mesh’s invite) · /join yes — confirm it (a device invite retires this device’s mesh, a member invite adds one beside it) · /join cancel — abort a join in progress',
2472
+ ' /join <qvac://device/… or qvac://workspace/…> — preview who you would join as (ctrl+y copies this mesh’s invite) · /join yes — confirm it (a device invite retires this device’s mesh, a member invite adds one beside it) · /join cancel — abort a join in progress',
2473
2473
  ' /leave — leave the active mesh; the device lands on another mesh it can write to, or mints a fresh account',
2474
2474
  ' /invite - show this mesh device invite · /invite member - open your shared mesh and invite someone into it (your account is never shared)',
2475
2475
  ' /mesh new - open another shared mesh · /mesh new compute - lend this device · /mesh label <n|id> <name> - name a mesh, privately to you',
@@ -3571,7 +3571,7 @@ export class ChatApp {
3571
3571
  if (cmd === 'join') {
3572
3572
  const arg = rawArgs.trim()
3573
3573
  if (!arg) {
3574
- return notice('usage: /join <qvac://mesh/…> · /join cancel')
3574
+ return notice('usage: /join <qvac://device/… or qvac://workspace/…> · /join cancel')
3575
3575
  }
3576
3576
 
3577
3577
  if (rest[0] === 'cancel') {
@@ -3585,7 +3585,9 @@ export class ChatApp {
3585
3585
  if (rest[0] === 'yes') {
3586
3586
  const pending = this._pendingJoinInvite
3587
3587
  if (!pending) {
3588
- return notice('usage: /join <qvac://mesh/…> to preview an invite first')
3588
+ return notice(
3589
+ 'usage: /join <qvac://device/… or qvac://workspace/…> to preview an invite first'
3590
+ )
3589
3591
  }
3590
3592
 
3591
3593
  this._pendingJoinInvite = null
@@ -5164,7 +5166,11 @@ export class ChatApp {
5164
5166
  entries: [
5165
5167
  { label: 'Meshes', hint: 'the meshes this device belongs to', command: '/meshes' },
5166
5168
  { label: 'Switch mesh…', hint: '/mesh use <n|id>', prefill: '/mesh use ' },
5167
- { label: 'Join mesh…', hint: '/join <qvac://mesh/…>', prefill: '/join ' },
5169
+ {
5170
+ label: 'Join mesh…',
5171
+ hint: '/join <qvac://device/… or qvac://workspace/…>',
5172
+ prefill: '/join '
5173
+ },
5168
5174
  { label: 'Leave mesh', hint: 'leave the active mesh', command: '/leave' },
5169
5175
  { label: 'Cancel join', hint: 'abort a join in progress', command: '/join cancel' }
5170
5176
  ]
package/tui/boot.mjs CHANGED
@@ -54,7 +54,7 @@ function bootInvite({ join, deviceJoin }) {
54
54
 
55
55
  const invite = decodeMeshInvite(raw)
56
56
  if (!invite) {
57
- throw new Error('not a mesh invite: expected qvac://mesh/…')
57
+ throw new Error('not a mesh invite: expected qvac://device/… or qvac://workspace/…')
58
58
  }
59
59
 
60
60
  if (join && !invite.memberInvite) {