hide dataview query from context we capture

This commit is contained in:
Chris Lettieri 2026-01-12 08:40:17 -05:00
parent 9f521a62dc
commit ea97ae7882
2 changed files with 15 additions and 3 deletions

View file

@ -1,9 +1,9 @@
{
"id": "openaugi",
"name": "OpenAugi",
"version": "0.3.0",
"version": "0.3.1",
"minAppVersion": "1.8.9",
"description": "Parse your voice notes into atomic notes, tasks, and summaries. OpenAugi is the voice to self-organizing second brain. While taking a voice note say 'auggie' to help the agent. Augmented Intelligence is AI for thinkers.",
"description": "Process information faster with augmented intelligence (AI for thinkers). Parse your voice notes into atomic notes, tasks, and summaries. Grab context from dataview queries and linked notes. De-duplicate and merge atomic ideas into a clean, organized vault.",
"author": "Chris Lettieri",
"authorUrl": "https://bitsofchris.com",
"isDesktopOnly": false

View file

@ -173,6 +173,15 @@ ${content}
return content.includes("```dataview");
}
/**
* Strip dataview query blocks from content
* @param content The content to clean
* @returns Content with dataview blocks removed
*/
private stripDataviewQueries(content: string): string {
return content.replace(/```dataview[\s\S]*?```\n?/g, '');
}
/**
* Extract dataview queries from content
* @param content The content to extract queries from
@ -670,7 +679,10 @@ ${content}
}
let content = await this.app.vault.read(file);
// Strip dataview queries from output content
content = this.stripDataviewQueries(content);
// Apply time filtering if specified
if (timeWindowDays !== undefined && timeWindowDays > 0) {
content = this.extractContentByDateRange(content, timeWindowDays);