@voidwire/lore 1.7.2 → 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.
Files changed (2) hide show
  1. package/lib/realtime.ts +6 -4
  2. 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 || "general");
306
+ return String(data.subtype);
307
307
  case "teaching":
308
308
  return "teaching";
309
309
  case "observation":
310
- return String(data.subtype || "pattern");
310
+ return String(data.subtype);
311
311
  case "insight":
312
- return String(data.subtype || "insight");
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
- return "general";
318
+ throw new Error(
319
+ `extractType: unhandled event type "${(event as any).type}"`,
320
+ );
319
321
  }
320
322
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidwire/lore",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Unified knowledge CLI - Search, list, and capture your indexed knowledge",
5
5
  "type": "module",
6
6
  "main": "./index.ts",