From ea97ae788203a73237452d57de7b54eefdc9f2d6 Mon Sep 17 00:00:00 2001 From: Chris Lettieri Date: Mon, 12 Jan 2026 08:40:17 -0500 Subject: [PATCH] hide dataview query from context we capture --- manifest.json | 4 ++-- src/services/distill-service.ts | 14 +++++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 5794d90..0bcaacb 100644 --- a/manifest.json +++ b/manifest.json @@ -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 diff --git a/src/services/distill-service.ts b/src/services/distill-service.ts index 1968fd7..91d33db 100644 --- a/src/services/distill-service.ts +++ b/src/services/distill-service.ts @@ -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);