diff --git a/main.js b/main.js index 6c686e9..a9f299b 100644 --- a/main.js +++ b/main.js @@ -32780,7 +32780,7 @@ Wenn du Fragen beantwortest: ] }; var MODELS = [ - { id: "claude-opus-4-5-20251101", name: "Claude Opus 4.5 (St\xE4rkst)" }, + { id: "claude-opus-4-5-20251101", name: "Claude Opus 4.5 (St\xE4rkste)" }, { id: "claude-sonnet-4-5-20250929", name: "Claude Sonnet 4.5 (Empfohlen)" }, { id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5 (Schnell)" } ]; @@ -32828,6 +32828,10 @@ var MemexChatSettingsTab = class extends import_obsidian3.PluginSettingTab { }); }; containerEl.createEl("h2", { text: "Memex Chat Einstellungen" }); + containerEl.createEl("p", { + text: `Memex Chat v${this.plugin.manifest.version}`, + cls: "setting-item-description" + }); containerEl.createEl("h3", { text: "Claude API" }); new import_obsidian3.Setting(containerEl).setName("API Key").setDesc("Dein Anthropic API Key (sk-ant-...)").addText( (text) => text.setPlaceholder("sk-ant-api03-...").setValue(this.plugin.settings.apiKey).onChange(async (value) => { @@ -33361,7 +33365,8 @@ var MemexChatPlugin = class extends import_obsidian5.Plugin { } notifyRelatedView() { this.app.workspace.getLeavesOfType(VIEW_TYPE_RELATED).forEach((l) => { - l.view.onIndexReady(); + if (l.view instanceof RelatedNotesView) + l.view.onIndexReady(); }); } /** Create or recreate the EmbedSearch instance (called when settings change) */ diff --git a/manifest.json b/manifest.json index a84db28..95ee51e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "memex-chat", "name": "Memex Chat", - "version": "1.0.1", + "version": "1.0.2", "minAppVersion": "1.4.0", "description": "Chat with your Obsidian vault using Claude AI — semantic context retrieval, @ mentions, thread history.", "author": "Sven", diff --git a/package.json b/package.json index 5e011cc..e6c7636 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "memex-chat", - "version": "1.0.1", + "version": "1.0.2", "description": "Obsidian plugin: Chat with your vault using Claude AI", "main": "main.js", "scripts": { diff --git a/src/main.ts b/src/main.ts index 85822de..36a6e0a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,4 @@ -import { Notice, Plugin, TFile, WorkspaceLeaf } from "obsidian"; +import { Notice, Plugin, TFile } from "obsidian"; import { ChatView, VIEW_TYPE_MEMEX_CHAT } from "./ChatView"; import { VaultSearch } from "./VaultSearch"; import { EmbedSearch } from "./EmbedSearch"; @@ -134,7 +134,7 @@ export default class MemexChatPlugin extends Plugin { private notifyRelatedView() { this.app.workspace.getLeavesOfType(VIEW_TYPE_RELATED).forEach((l) => { - (l.view as RelatedNotesView).onIndexReady(); + if (l.view instanceof RelatedNotesView) l.view.onIndexReady(); }); }