tycono 0.1.96-beta.6 → 0.1.96-beta.7
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/package.json +1 -1
- package/src/tui/api.ts +5 -2
package/package.json
CHANGED
package/src/tui/api.ts
CHANGED
|
@@ -232,9 +232,12 @@ export function subscribeToWaveStream(
|
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
if (eventType === 'activity' && data) {
|
|
235
|
+
if ((eventType === 'activity' || eventType === 'wave:event') && data) {
|
|
236
236
|
try {
|
|
237
|
-
|
|
237
|
+
const parsed = JSON.parse(data);
|
|
238
|
+
// wave:event wraps the actual event in .event field
|
|
239
|
+
const evt = parsed.event ?? parsed;
|
|
240
|
+
onEvent(evt as SSEEvent);
|
|
238
241
|
} catch { /* ignore parse errors */ }
|
|
239
242
|
} else if (eventType === 'stream:end' && data) {
|
|
240
243
|
try {
|