v1.0.2: cleanup unused import and tighten instanceof check

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-03-07 14:52:23 +01:00
parent b4a730b878
commit e530984f71
4 changed files with 11 additions and 6 deletions
+7 -2
View File
@@ -32780,7 +32780,7 @@ Wenn du Fragen beantwortest:
] ]
}; };
var MODELS = [ 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-sonnet-4-5-20250929", name: "Claude Sonnet 4.5 (Empfohlen)" },
{ id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5 (Schnell)" } { 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("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" }); containerEl.createEl("h3", { text: "Claude API" });
new import_obsidian3.Setting(containerEl).setName("API Key").setDesc("Dein Anthropic API Key (sk-ant-...)").addText( 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) => { (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() { notifyRelatedView() {
this.app.workspace.getLeavesOfType(VIEW_TYPE_RELATED).forEach((l) => { 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) */ /** Create or recreate the EmbedSearch instance (called when settings change) */
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"id": "memex-chat", "id": "memex-chat",
"name": "Memex Chat", "name": "Memex Chat",
"version": "1.0.1", "version": "1.0.2",
"minAppVersion": "1.4.0", "minAppVersion": "1.4.0",
"description": "Chat with your Obsidian vault using Claude AI — semantic context retrieval, @ mentions, thread history.", "description": "Chat with your Obsidian vault using Claude AI — semantic context retrieval, @ mentions, thread history.",
"author": "Sven", "author": "Sven",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "memex-chat", "name": "memex-chat",
"version": "1.0.1", "version": "1.0.2",
"description": "Obsidian plugin: Chat with your vault using Claude AI", "description": "Obsidian plugin: Chat with your vault using Claude AI",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
+2 -2
View File
@@ -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 { ChatView, VIEW_TYPE_MEMEX_CHAT } from "./ChatView";
import { VaultSearch } from "./VaultSearch"; import { VaultSearch } from "./VaultSearch";
import { EmbedSearch } from "./EmbedSearch"; import { EmbedSearch } from "./EmbedSearch";
@@ -134,7 +134,7 @@ export default class MemexChatPlugin extends Plugin {
private notifyRelatedView() { private notifyRelatedView() {
this.app.workspace.getLeavesOfType(VIEW_TYPE_RELATED).forEach((l) => { this.app.workspace.getLeavesOfType(VIEW_TYPE_RELATED).forEach((l) => {
(l.view as RelatedNotesView).onIndexReady(); if (l.view instanceof RelatedNotesView) l.view.onIndexReady();
}); });
} }