feat: port source-first ingestion to os repo
- make source the canonical field across os routes, tools, ui, and mcp - align fresh-install schema, search, and embedding flows with source-first ingestion Generated with Claude Code
This commit is contained in:
@@ -48,11 +48,12 @@ export const queryDimensionNodesTool = tool({
|
||||
event_date: node.event_date ?? null,
|
||||
};
|
||||
|
||||
if (includeContent && node.notes) {
|
||||
if (includeContent && (node.source || node.notes)) {
|
||||
const previewSource = node.source || node.notes || '';
|
||||
// Truncate to ~100 chars
|
||||
formatted.notesPreview = node.notes.length > 100
|
||||
? node.notes.substring(0, 100) + '...'
|
||||
: node.notes;
|
||||
formatted.sourcePreview = previewSource.length > 100
|
||||
? previewSource.substring(0, 100) + '...'
|
||||
: previewSource;
|
||||
}
|
||||
|
||||
return formatted;
|
||||
|
||||
Reference in New Issue
Block a user