@mingxy/cerebro 2.0.4 → 2.0.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 +1 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mingxy/cerebro",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.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
|
@@ -154,13 +154,7 @@ const OmemPlugin: Plugin = async (input) => {
|
|
|
154
154
|
process.on("disconnect", shutdown); // OpenCode 窗口关闭时触发
|
|
155
155
|
|
|
156
156
|
return {
|
|
157
|
-
config: async (
|
|
158
|
-
cfg.command ??= {};
|
|
159
|
-
cfg.command["memory-toggle"] = {
|
|
160
|
-
template: "Use the memory_toggle tool with state='$ARGUMENTS' to toggle Cerebro auto-store for this session. You MUST call the memory_toggle tool, do not just acknowledge.",
|
|
161
|
-
description: "Toggle Cerebro auto-store ON or OFF for current session",
|
|
162
|
-
};
|
|
163
|
-
},
|
|
157
|
+
config: async (_cfg: any) => {},
|
|
164
158
|
"chat.message": async (input: any, output: any) => {
|
|
165
159
|
if (input.sessionID && !mainSessionLocked) {
|
|
166
160
|
mainSessionId = input.sessionID;
|