echoes-vault-opencode 1.0.21 → 1.0.23

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/tui.tsx +7 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoes-vault-opencode",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "EchoesVault — persistent memory plugin for OpenCode. Obsidian-style knowledge base with daily logs, encyclopedia pages, and session resumption.",
5
5
  "type": "module",
6
6
  "main": "index.ts",
package/tui.tsx CHANGED
@@ -1,6 +1,5 @@
1
1
  /** @jsxImportSource @opentui/solid */
2
2
  import type { TuiPlugin, TuiPluginModule } from "@opencode-ai/plugin/tui"
3
- import { TextAttributes } from "@opentui/core"
4
3
 
5
4
  type VaultState = {
6
5
  initialized: boolean
@@ -16,22 +15,18 @@ const tui: TuiPlugin = async (api) => {
16
15
  try {
17
16
  const saved = api.kv.get<VaultState>(KV)
18
17
  if (saved) vault = saved
19
-
20
18
  function save() {
21
19
  try { api.kv.set(KV, vault) } catch {}
22
20
  }
23
-
24
21
  api.event.on("session.created", () => {
25
22
  vault.sessionActive = true
26
23
  vault.lastSession = new Date().toISOString().slice(0, 10)
27
24
  save()
28
25
  })
29
-
30
26
  } catch (error) {
31
27
  console.error("[echoes-vault] event init failed:", error)
32
28
  }
33
29
 
34
- // Отрисовка UI
35
30
  api.slots.register({
36
31
  slots: {
37
32
  sidebar_content({ session_id }: { session_id: string }) {
@@ -44,22 +39,22 @@ const tui: TuiPlugin = async (api) => {
44
39
  <box flexDirection="column" paddingBottom={1}>
45
40
  <box flexDirection="column" paddingBottom={1}>
46
41
  <text bold>EchoesVault</text>
47
- <text fg={active ? "#4caf50" : undefined} attributes={active ? undefined : TextAttributes.DIM}>
42
+
43
+ <text color={active ? "success" : "error"}>
48
44
  • {active ? `Active (${title})` : "Disconnected"}
49
45
  </text>
50
- <text attributes={TextAttributes.DIM}>
46
+ <text color="textMuted">
51
47
  • {count} pages indexed
52
48
  </text>
53
49
  </box>
54
50
  <box flexDirection="column">
55
51
  <text bold>Commands</text>
56
52
 
57
- <text attributes={TextAttributes.DIM}> /echoes-init (Init vault)</text>
58
- <text attributes={TextAttributes.DIM}> /echoes-start (Start session)</text>
59
- <text attributes={TextAttributes.DIM}> /echoes-end (End session)</text>
60
- <text attributes={TextAttributes.DIM}> /echoes-status (Show status)</text>
53
+ <text color="textMuted"> /echoes-init (Init vault)</text>
54
+ <text color="textMuted"> /echoes-start (Start session)</text>
55
+ <text color="textMuted"> /echoes-end (End session)</text>
56
+ <text color="textMuted"> /echoes-status (Show status)</text>
61
57
  </box>
62
-
63
58
  </box>
64
59
  )
65
60
  },