echoes-vault-opencode 1.0.16 → 1.0.17

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 (3) hide show
  1. package/package.json +4 -4
  2. package/tui.tsx +26 -0
  3. package/tui.ts +0 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoes-vault-opencode",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
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",
@@ -10,13 +10,13 @@
10
10
  "types": "./index.ts"
11
11
  },
12
12
  "./tui": {
13
- "import": "./tui.ts",
14
- "types": "./tui.ts"
13
+ "import": "./tui.tsx",
14
+ "types": "./tui.tsx"
15
15
  }
16
16
  },
17
17
  "files": [
18
18
  "index.ts",
19
- "tui.ts"
19
+ "tui.tsx"
20
20
  ],
21
21
  "keywords": [
22
22
  "opencode",
package/tui.tsx ADDED
@@ -0,0 +1,26 @@
1
+ /** @jsxImportSource @opentui/solid */
2
+ import type { TuiPlugin, TuiPluginModule } from "@opencode-ai/plugin/tui"
3
+
4
+ const tui: TuiPlugin = async (api) => {
5
+ try {
6
+ api.slots.register({
7
+ order: 10, // Определяет позицию панели (выше или ниже других)
8
+ slots: {
9
+ sidebar_content() {
10
+ // Обязательно оборачиваем текст в тег <text>!
11
+ return <text>🚀 EchoesVault loaded and ready!</text>
12
+ },
13
+ },
14
+ })
15
+ } catch (error) {
16
+ console.error("[echoes-vault] TUI init failed:", error)
17
+ }
18
+ }
19
+
20
+ // OpenCode любит, когда у плагина есть явный ID
21
+ const plugin: TuiPluginModule & { id: string } = {
22
+ id: "echoes-vault-sidebar",
23
+ tui,
24
+ }
25
+
26
+ export default plugin
package/tui.ts DELETED
@@ -1,13 +0,0 @@
1
- import type { TuiPlugin } from "@opencode-ai/plugin/tui"
2
-
3
- const tui: TuiPlugin = async (api) => {
4
- try {
5
- api.slots.register({
6
- sidebar_content: () => "EchoesVault loaded",
7
- })
8
- } catch (error) {
9
- console.error("[echoes-vault] TUI init failed:", error)
10
- }
11
- }
12
-
13
- export default { tui }