@mingxy/cerebro 1.7.4 → 1.7.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/tools.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mingxy/cerebro",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "description": "Cerebro persistent memory plugin for OpenCode — auto-recall, auto-capture, 9 memory tools with clustering",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/tools.ts CHANGED
@@ -388,10 +388,11 @@ export function buildTools(client: OmemClient, containerTags: string[], context:
388
388
  const sessionId = context.getSessionId();
389
389
  if (!sessionId) return JSON.stringify({ ok: false, error: "No active session" });
390
390
 
391
- if (args.state === "on") {
391
+ const state = args.state?.toLowerCase();
392
+ if (state === "on") {
392
393
  setAutoStoreEnabled(sessionId, true);
393
394
  return JSON.stringify({ ok: true, auto_store: true, message: "Cerebro auto-store: ON" });
394
- } else if (args.state === "off") {
395
+ } else if (state === "off") {
395
396
  setAutoStoreEnabled(sessionId, false);
396
397
  return JSON.stringify({ ok: true, auto_store: false, message: "Cerebro auto-store: OFF" });
397
398
  } else {