@voidwire/lore 0.6.2 → 0.6.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 +3 -1
- package/package.json +1 -1
package/lib/realtime.ts
CHANGED
|
@@ -161,11 +161,13 @@ function buildMetadata(event: CaptureEvent): string {
|
|
|
161
161
|
const timestamp = event.timestamp;
|
|
162
162
|
const date = timestamp ? timestamp.substring(0, 10) : "";
|
|
163
163
|
|
|
164
|
+
const content = getContentForEmbedding(event);
|
|
164
165
|
const metadata: Record<string, unknown> = {
|
|
165
166
|
topic: data.topic || "general",
|
|
166
167
|
timestamp,
|
|
167
168
|
date,
|
|
168
|
-
content
|
|
169
|
+
content,
|
|
170
|
+
content_hash: hashContent(content),
|
|
169
171
|
};
|
|
170
172
|
|
|
171
173
|
// Add type-specific fields
|