@qvac/core 0.3.2 → 0.3.4

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/README.md CHANGED
@@ -291,10 +291,10 @@ empty or absent `chatIds` returns the whole active set.
291
291
 
292
292
  The media states are the only phase detail on this stream, and they belong here
293
293
  because they are coarse and boundary-driven — image generation is one long phase,
294
- not a per-token flip. Core derives them from the run's `progress.phase`
295
- (`generating` plus an unsettled `generate_music` → audio, otherwise
296
- `generating` → image; `transcribing` → transcription) and its unsettled media
297
- tool-calls (`generate_music` → audio before sampling starts).
294
+ not a per-token flip. Core derives them from the run's `progress.phase` alone
295
+ (`generating` → image, or audio while the run's unsettled media tool is
296
+ `generate_music`; `transcribing` → transcription). A media tool whose model is
297
+ still downloading or loading reads as `running`, like every other model wait.
298
298
  Everything finer stays off the list: the moment-to-moment phase
299
299
  (thinking/responding, which non-media tool, the live percentage) is on the
300
300
  per-chat chunk stream the open chat subscribes to, and model download/load
@@ -0,0 +1,4 @@
1
+ export declare const AbortController: {
2
+ new (): AbortController;
3
+ prototype: AbortController;
4
+ };
@@ -0,0 +1 @@
1
+ export const AbortController = globalThis.AbortController;
@@ -133,18 +133,12 @@ function activityState(runs) {
133
133
  return mediaState(latestRun(started)) ?? 'running';
134
134
  }
135
135
  function mediaState(run) {
136
- const tool = latestTool(run.tools);
137
136
  if (run.progress === 'generating') {
138
- if (tool && AUDIO_TOOLS.has(tool.name))
139
- return 'generating-audio';
140
- return 'generating-image';
137
+ const tool = latestTool(run.tools);
138
+ return tool && AUDIO_TOOLS.has(tool.name) ? 'generating-audio' : 'generating-image';
141
139
  }
142
140
  if (run.progress === 'transcribing')
143
141
  return 'transcribing-audio';
144
- if (tool && IMAGE_TOOLS.has(tool.name))
145
- return 'generating-image';
146
- if (tool && AUDIO_TOOLS.has(tool.name))
147
- return 'generating-audio';
148
142
  return null;
149
143
  }
150
144
  function applyChunk(activity, chunk) {
@@ -1,4 +1,4 @@
1
- import { AbortController } from 'bare-abort-controller';
1
+ import { AbortController } from '#abort-controller';
2
2
  import * as z from 'zod';
3
3
  const TOKEN_REQUEST_TIMEOUT_MS = 30_000;
4
4
  const TokenResponseSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qvac/core",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "type": "module",
5
5
  "description": "Peer-to-peer AI across your devices",
6
6
  "exports": {
@@ -207,6 +207,10 @@
207
207
  "bare": "bare-fetch",
208
208
  "default": "./dist-lib/lib/fetch-node.js"
209
209
  },
210
+ "#abort-controller": {
211
+ "bare": "bare-abort-controller",
212
+ "default": "./dist-lib/lib/abort-controller-node.js"
213
+ },
210
214
  "#oauth-loopback": {
211
215
  "bare": "./dist-lib/lib/oauth/loopback.stub.js",
212
216
  "default": "./dist-lib/lib/oauth/loopback.js"
@@ -221,8 +225,8 @@
221
225
  }
222
226
  },
223
227
  "dependencies": {
224
- "@qvac/harness": "^0.3.1",
225
- "@qvac/skills": "^0.1.6",
228
+ "@qvac/harness": "^0.3.3",
229
+ "@qvac/skills": "^0.1.9",
226
230
  "asenion": "^0.1.0",
227
231
  "autobee": "^2.10.0",
228
232
  "b4a": "^1.8.1",