echoes-vault-opencode 1.1.3 → 1.1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tui.tsx +9 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoes-vault-opencode",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
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,6 @@
1
1
  /** @jsxImportSource @opentui/solid */
2
2
  import type { TuiPlugin } from "@opencode-ai/plugin/tui"
3
- import { createSignal, onCleanup } from "solid-js"
3
+ import { createSignal, onCleanup, Show } from "solid-js"
4
4
  import * as fs from "node:fs"
5
5
  import * as path from "node:path"
6
6
 
@@ -106,17 +106,17 @@ const tui: TuiPlugin = async (api) => {
106
106
  <text fg={theme.textMuted}> v{state()?.pluginVersion ?? ""}</text>
107
107
  </box>
108
108
  <text fg={statusColor()}>{statusLabel()}</text>
109
- {statusDesc() && (
109
+ <Show when={statusDesc()}>
110
110
  <text fg={theme.textMuted}>{statusDesc()}</text>
111
- )}
112
- {statusCmd() && (
111
+ </Show>
112
+ <Show when={statusCmd()}>
113
113
  <box flexDirection="row">
114
114
  <text fg={theme.textMuted}>Run </text>
115
115
  <text fg={theme.text}>{statusCmd()}</text>
116
116
  <text fg={theme.textMuted}> {statusCmdHint()}</text>
117
117
  </box>
118
- )}
119
- {state()?.initialized && (
118
+ </Show>
119
+ <Show when={state()?.initialized}>
120
120
  <box flexDirection="column">
121
121
  <box flexDirection="row">
122
122
  <text fg={vaultHealthColor()}>• </text>
@@ -124,11 +124,11 @@ const tui: TuiPlugin = async (api) => {
124
124
  </box>
125
125
  <text fg={theme.textMuted}> Pages: {state()?.stats?.totalPages ?? 0}</text>
126
126
  <text fg={theme.textMuted}> Usage: {vaultUsagePercent()}%</text>
127
- {(state()?.stats?.totalPages ?? 0) > 200 && (
127
+ <Show when={(state()?.stats?.totalPages ?? 0) > 200}>
128
128
  <text fg={theme.textMuted}> Consider migrating to RAG</text>
129
- )}
129
+ </Show>
130
130
  </box>
131
- )}
131
+ </Show>
132
132
  </box>
133
133
  )
134
134
  },