@mingxy/cerebro 1.6.3 → 1.6.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/tui.tsx +12 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mingxy/cerebro",
3
- "version": "1.6.3",
3
+ "version": "1.6.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/tui.tsx CHANGED
@@ -11,6 +11,7 @@ function SidebarContentView(props: {
11
11
  sessionID: string;
12
12
  }) {
13
13
  const [autoStore, setAutoStore] = createSignal(true);
14
+ const theme = () => props.api.theme.current;
14
15
 
15
16
  const unsubscribers = [
16
17
  props.api.event.on("session.updated", () => {
@@ -38,15 +39,20 @@ function SidebarContentView(props: {
38
39
  });
39
40
 
40
41
  const enabled = autoStore();
42
+ const t = theme();
41
43
 
42
44
  return (
43
45
  <box gap={0}>
44
- <text fg={props.api.theme.current.text}>
45
- <b>Cerebro</b>
46
- </text>
47
- <box gap={0}>
48
- <text fg={props.api.theme.current.text} wrapMode="none">
49
- {enabled ? "✅ Auto-store: ON" : "⏸️ Auto-store: OFF"}
46
+ <box flexDirection="row" gap={1}>
47
+ <text
48
+ flexShrink={0}
49
+ style={{ fg: enabled ? t?.success : t?.textMuted }}
50
+ >
51
+
52
+ </text>
53
+ <text fg={t?.text}>Cerebro</text>
54
+ <text fg={t?.textMuted}>
55
+ {"Auto-store " + (enabled ? "ON" : "OFF")}
50
56
  </text>
51
57
  </box>
52
58
  </box>