clean up logging and settings

This commit is contained in:
Chris Lettieri 2025-05-06 07:34:04 -04:00
parent 7ad0725f29
commit 2b6f781c2a
5 changed files with 8 additions and 18 deletions

View file

@ -1,11 +1,10 @@
{
"id": "openaugi",
"name": "OpenAugi",
"version": "0.1.0",
"version": "0.1.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.",
"author": "Chris Lettieri",
"authorUrl": "https://bitsofchris.com",
"isDesktopOnly": false,
"css": "styles.css"
"isDesktopOnly": false
}

View file

@ -42,7 +42,7 @@ export default class OpenAugiPlugin extends Plugin {
// Add command to manually parse a transcript file
this.addCommand({
id: 'parse-transcript',
name: 'Parse Transcript',
name: 'Parse transcript',
callback: async () => {
const activeFile = this.app.workspace.getActiveFile();
if (activeFile && activeFile.extension === 'md') {
@ -56,7 +56,7 @@ export default class OpenAugiPlugin extends Plugin {
// Add command to distill linked notes
this.addCommand({
id: 'distill-notes',
name: 'Distill Linked Notes',
name: 'Distill linked notes',
callback: async () => {
const activeFile = this.app.workspace.getActiveFile();
if (activeFile && activeFile.extension === 'md') {
@ -194,8 +194,6 @@ export default class OpenAugiPlugin extends Plugin {
// Convert back to array
linkedFiles = Array.from(uniqueFiles.values());
console.log(`Processing ${linkedFiles.length} unique linked files`);
if (linkedFiles.length === 0) {
this.loadingIndicator?.hide();
new Notice('No linked notes found to distill');

View file

@ -316,7 +316,6 @@ export class DistillService {
}
const uniqueFileCount = processedFiles.size;
console.log(`Processed ${uniqueFileCount} unique files`);
return { content: aggregatedContent, sourceNotes };
}

View file

@ -122,10 +122,6 @@ export class OpenAIService {
const prompt = this.getPrompt(content);
// Log prompt statistics
console.log('Transcript Prompt Character Count:', prompt.length);
console.log('Transcript Prompt Estimated Token Count:', estimateTokens(prompt));
try {
const response = await fetch('https://api.openai.com/v1/chat/completions', {
method: 'POST',

View file

@ -14,10 +14,8 @@ export class OpenAugiSettingTab extends PluginSettingTab {
containerEl.empty();
containerEl.createEl('h2', {text: 'OpenAugi Settings'});
new Setting(containerEl)
.setName('OpenAI API Key')
.setName('OpenAI API key')
.setDesc('Your OpenAI API key')
.addText(text => text
.setPlaceholder('sk-...')
@ -38,7 +36,7 @@ export class OpenAugiSettingTab extends PluginSettingTab {
);
new Setting(containerEl)
.setName('Summaries Folder')
.setName('Summaries folder')
.setDesc('Folder path where summary files will be saved')
.addText(text => text
.setPlaceholder('OpenAugi/Summaries')
@ -52,7 +50,7 @@ export class OpenAugiSettingTab extends PluginSettingTab {
);
new Setting(containerEl)
.setName('Notes Folder')
.setName('Notes folder')
.setDesc('Folder path where atomic notes will be saved')
.addText(text => text
.setPlaceholder('OpenAugi/Notes')
@ -70,7 +68,7 @@ export class OpenAugiSettingTab extends PluginSettingTab {
const dataviewPluginInstalled = this.app.plugins.plugins["dataview"] !== undefined;
new Setting(containerEl)
.setName('Use Dataview Plugin')
.setName('Use Dataview plugin')
.setDesc(dataviewPluginInstalled
? 'Process dataview queries in notes to find linked notes'
: 'Dataview plugin is not installed. Install it to enable this feature.')