@mingxy/cerebro 2.1.4 โ 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.ts +12 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mingxy/cerebro",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "Cerebro persistent memory plugin for OpenCode โ auto-recall, auto-capture, 9 memory tools with clustering, project-scoped memory isolation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
package/src/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { join, dirname } from "node:path";
|
|
|
4
4
|
import { tmpdir } from "node:os";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { CerebroClient } from "./client.js";
|
|
7
|
-
import { chatMessageRecallHook, autocontinueHook, compactingHook, sessionIdleHook, sessionMessages, firstMessages, timeMemorySystemHook
|
|
7
|
+
import { chatMessageRecallHook, autocontinueHook, compactingHook, sessionIdleHook, sessionMessages, firstMessages, timeMemorySystemHook } from "./hooks.js";
|
|
8
8
|
import { detectSaveKeyword, detectRecallKeyword, KEYWORD_NUDGE, RECALL_NUDGE } from "./keywords.js";
|
|
9
9
|
import { getUserTag, getProjectTag } from "./tags.js";
|
|
10
10
|
import { buildTools } from "./tools.js";
|
|
@@ -128,8 +128,17 @@ const OmemPlugin: Plugin = async (input) => {
|
|
|
128
128
|
? { variant: "success" as const, title: `๐ง Cerebro Connected ยท v${pluginVersion}`, message: `๐ Open in browser http://localhost:${webPort}` }
|
|
129
129
|
: { variant: "success" as const, title: `๐ง Cerebro Connected ยท v${pluginVersion}`, message: "No web server" };
|
|
130
130
|
|
|
131
|
-
// Direct toast
|
|
132
|
-
|
|
131
|
+
// Direct toast โ same pattern as opencode-acp (client.tui.showToast, fire-and-forget, 5s delay)
|
|
132
|
+
setTimeout(() => {
|
|
133
|
+
(client as any)?.tui?.showToast({
|
|
134
|
+
body: {
|
|
135
|
+
title: startupToast.title,
|
|
136
|
+
message: startupToast.message,
|
|
137
|
+
variant: startupToast.variant,
|
|
138
|
+
duration: 7000,
|
|
139
|
+
},
|
|
140
|
+
});
|
|
141
|
+
}, 5000);
|
|
133
142
|
|
|
134
143
|
// Auto-update check (fire-and-forget, non-blocking)
|
|
135
144
|
checkAndUpdate(tui, pluginVersion).catch(() => {});
|