echoes-vault-opencode 1.0.21 → 1.0.22
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/tui.tsx +10 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "echoes-vault-opencode",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
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
|
|
@@ -12,6 +11,10 @@ type VaultState = {
|
|
|
12
11
|
const KV = "echoes_vault"
|
|
13
12
|
let vault: VaultState = { initialized: true, sessionActive: true, pagesCount: 15, lastSession: "2026-07-03" } // Заглушка для теста визуала
|
|
14
13
|
|
|
14
|
+
const MUTED = "#888888"
|
|
15
|
+
const ACTIVE_COLOR = "#4caf50"
|
|
16
|
+
const INACTIVE_COLOR = "#f44336"
|
|
17
|
+
|
|
15
18
|
const tui: TuiPlugin = async (api) => {
|
|
16
19
|
try {
|
|
17
20
|
const saved = api.kv.get<VaultState>(KV)
|
|
@@ -44,20 +47,20 @@ const tui: TuiPlugin = async (api) => {
|
|
|
44
47
|
<box flexDirection="column" paddingBottom={1}>
|
|
45
48
|
<box flexDirection="column" paddingBottom={1}>
|
|
46
49
|
<text bold>EchoesVault</text>
|
|
47
|
-
<text fg={active ?
|
|
50
|
+
<text fg={active ? ACTIVE_COLOR : INACTIVE_COLOR}>
|
|
48
51
|
• {active ? `Active (${title})` : "Disconnected"}
|
|
49
52
|
</text>
|
|
50
|
-
<text
|
|
53
|
+
<text fg={MUTED}>
|
|
51
54
|
• {count} pages indexed
|
|
52
55
|
</text>
|
|
53
56
|
</box>
|
|
54
57
|
<box flexDirection="column">
|
|
55
58
|
<text bold>Commands</text>
|
|
56
59
|
|
|
57
|
-
<text
|
|
58
|
-
<text
|
|
59
|
-
<text
|
|
60
|
-
<text
|
|
60
|
+
<text fg={MUTED}> /echoes-init (Init vault)</text>
|
|
61
|
+
<text fg={MUTED}> /echoes-start (Start session)</text>
|
|
62
|
+
<text fg={MUTED}> /echoes-end (End session)</text>
|
|
63
|
+
<text fg={MUTED}> /echoes-status (Show status)</text>
|
|
61
64
|
</box>
|
|
62
65
|
|
|
63
66
|
</box>
|