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:
@@ -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) */
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
+1
-1
@@ -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": {
|
||||
|
||||
+2
-2
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user