@mingxy/cerebro 1.6.2 → 1.6.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mingxy/cerebro",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
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/index.ts CHANGED
@@ -138,8 +138,6 @@ const OmemPlugin: Plugin = async (input) => {
138
138
 
139
139
  export { OmemPlugin };
140
140
 
141
- export { default as tui } from "./tui.js";
142
-
143
141
  export default {
144
142
  id: "ourmem",
145
143
  server: OmemPlugin,
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", () => {
@@ -41,12 +42,18 @@ function SidebarContentView(props: {
41
42
 
42
43
  return (
43
44
  <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"}
45
+ <box flexDirection="row" gap={1}>
46
+ <text
47
+ flexShrink={0}
48
+ style={{ fg: enabled ? theme().success : theme().textMuted }}
49
+ >
50
+
51
+ </text>
52
+ <text fg={theme().text}>
53
+ <b>Cerebro</b>
54
+ <text fg={theme().textMuted}>
55
+ {" "}Auto-store {enabled ? "ON" : "OFF"}
56
+ </text>
50
57
  </text>
51
58
  </box>
52
59
  </box>