Merge branch 'master' into develop

# Conflicts:
#	src/settings.ts
This commit is contained in:
Simon Cambier
2024-07-23 09:56:31 +02:00
8 changed files with 73 additions and 7 deletions

View File

@@ -19,6 +19,7 @@ import {
indexingStep,
IndexingStepType,
type TextExtractorApi,
type AIImageAnalyzerAPI,
} from './globals'
import { notifyOnIndexed, registerAPI } from './tools/api'
import { Database } from './database'
@@ -208,6 +209,14 @@ export default class OmnisearchPlugin extends Plugin {
return (this.app as any).plugins?.plugins?.['text-extractor']?.api
}
/**
* Plugin dependency - Ai Image Analyzer
* @returns
*/
public getAIImageAnalyzer(): AIImageAnalyzerAPI | undefined {
return (this.app as any).plugins?.plugins?.['ai-image-analyzer']?.api
}
private async populateIndex(): Promise<void> {
console.time('Omnisearch - Indexing total time')
indexingStep.set(IndexingStepType.ReadingFiles)