Skip to content

Commit ef6d648

Browse files
committed
Pattern engine removded
1 parent 21e2455 commit ef6d648

3 files changed

Lines changed: 2 additions & 33 deletions

File tree

‎electron/lib/core/appMenu.cjs‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ function buildAppMenuTemplate(win, context = {}) {
610610
{ type: "separator" },
611611

612612
{
613-
label: "Show Knowledge Graph",
613+
label: "Knowledge Graph",
614614
click: () => sendMenuAction(win, "open-knowledge-graph")
615615
},
616616
{
@@ -621,19 +621,11 @@ function buildAppMenuTemplate(win, context = {}) {
621621
label: "Personas",
622622
click: () => sendMenuAction(win, "open-personas-page")
623623
},
624+
{ type: "separator" },
624625
{
625626
label: "Diagnostics",
626627
click: () => sendMenuAction(win, "open-health-page")
627628
},
628-
{
629-
label: "Build Relationship Graph",
630-
click: () => sendMenuAction(win, "ai-build-graph")
631-
},
632-
633-
{
634-
label: "Detect Patterns",
635-
click: () => sendMenuAction(win, "ai-detect-patterns")
636-
},
637629
{ type: "separator" },
638630
{
639631
label: "Clear Cache",

‎src/App.jsx‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,6 @@ export default function App() {
777777
refreshAIConfiguration,
778778
handleAIEmbeddings,
779779
handleAIGraph,
780-
handleAIPatterns,
781780
handleAIClearCache,
782781
handleOpenAIPalette,
783782
handleInlineAIRequest,
@@ -1702,10 +1701,6 @@ export default function App() {
17021701
return;
17031702
}
17041703

1705-
if (action === "ai-detect-patterns") {
1706-
handleAIPatterns();
1707-
return;
1708-
}
17091704

17101705
if (action === "open-personas-page") {
17111706
setPersonasPageOpen(true);

‎src/hooks/useAIAssistant.js‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
onChatStreamChunk,
88
aiBuildGraph,
99
aiClearData,
10-
aiDetectPatterns,
1110
aiGenerateEmbeddings,
1211
aiGetHealth,
1312
aiCreateConversation,
@@ -207,22 +206,6 @@ export function useAIAssistant({
207206
}
208207
}
209208

210-
async function handleAIPatterns() {
211-
setAiLoading(true);
212-
notify("Detecting patterns...", "info");
213-
try {
214-
const result = await aiDetectPatterns();
215-
if (result?.success) {
216-
notify("Patterns detected successfully!", "success");
217-
} else {
218-
notify(result?.error || "Failed to detect patterns", "error");
219-
}
220-
} catch (err) {
221-
notify(err?.message || "Failed to detect patterns", "error");
222-
} finally {
223-
setAiLoading(false);
224-
}
225-
}
226209

227210
async function handleAIClearCache() {
228211
setAiLoading(true);
@@ -605,7 +588,6 @@ export function useAIAssistant({
605588
refreshAIConfiguration,
606589
handleAIEmbeddings,
607590
handleAIGraph,
608-
handleAIPatterns,
609591
handleAIClearCache,
610592
handleOpenAIPalette,
611593
handleInlineAIRequest,

0 commit comments

Comments
 (0)