@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 +1 -1
- package/src/index.ts +0 -2
- package/src/tui.tsx +13 -6
package/package.json
CHANGED
package/src/index.ts
CHANGED
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
|
-
<
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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>
|