mirror of
https://github.com/bitsofchris/openaugi-obsidian-plugin.git
synced 2026-07-22 05:46:42 +00:00
clean up logging and settings
This commit is contained in:
parent
7ad0725f29
commit
2b6f781c2a
5 changed files with 8 additions and 18 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -316,7 +316,6 @@ export class DistillService {
|
|||
}
|
||||
|
||||
const uniqueFileCount = processedFiles.size;
|
||||
console.log(`Processed ${uniqueFileCount} unique files`);
|
||||
|
||||
return { content: aggregatedContent, sourceNotes };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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.')
|
||||
|
|
|
|||
Loading…
Reference in a new issue