@voidwire/lore 1.7.1 → 1.7.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/lib/realtime.ts +6 -4
- package/lib/types.ts +3 -0
- package/package.json +1 -1
package/lib/realtime.ts
CHANGED
|
@@ -303,18 +303,20 @@ export function extractType(event: CaptureEvent): string {
|
|
|
303
303
|
|
|
304
304
|
switch (event.type) {
|
|
305
305
|
case "knowledge":
|
|
306
|
-
return String(data.subtype
|
|
306
|
+
return String(data.subtype);
|
|
307
307
|
case "teaching":
|
|
308
308
|
return "teaching";
|
|
309
309
|
case "observation":
|
|
310
|
-
return String(data.subtype
|
|
310
|
+
return String(data.subtype);
|
|
311
311
|
case "insight":
|
|
312
|
-
return String(data.subtype
|
|
312
|
+
return String(data.subtype);
|
|
313
313
|
case "task":
|
|
314
314
|
return "task";
|
|
315
315
|
case "note":
|
|
316
316
|
return "note";
|
|
317
317
|
default:
|
|
318
|
-
|
|
318
|
+
throw new Error(
|
|
319
|
+
`extractType: unhandled event type "${(event as any).type}"`,
|
|
320
|
+
);
|
|
319
321
|
}
|
|
320
322
|
}
|
package/lib/types.ts
CHANGED