@qvac/core 0.3.2 → 0.3.3
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 +4 -4
- package/dist-lib/lib/core/chat-activity.js +2 -8
- package/package.json +3 -3
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`
|
|
296
|
-
`
|
|
297
|
-
|
|
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
|
|
@@ -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
|
-
|
|
139
|
-
|
|
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) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qvac/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Peer-to-peer AI across your devices",
|
|
6
6
|
"exports": {
|
|
@@ -221,8 +221,8 @@
|
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
223
|
"dependencies": {
|
|
224
|
-
"@qvac/harness": "^0.3.
|
|
225
|
-
"@qvac/skills": "^0.1.
|
|
224
|
+
"@qvac/harness": "^0.3.3",
|
|
225
|
+
"@qvac/skills": "^0.1.9",
|
|
226
226
|
"asenion": "^0.1.0",
|
|
227
227
|
"autobee": "^2.10.0",
|
|
228
228
|
"b4a": "^1.8.1",
|