@log0u7/opencode-memory 0.7.0 → 0.8.0

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/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.8.0] - 2026-11-05
9
+
10
+ ### Added
11
+
12
+ - TUI plugin (phase 0+1): toast on load, `/memory` slash command, status slot.
13
+
8
14
  ## [0.7.0] - 2026-11-04
9
15
 
10
16
  ### Added
package/dist/tui.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /** @jsxImportSource @opentui/solid */
2
+ import { Plugin } from "@opencode/plugin/tui";
3
+ declare const _default: Plugin.Definition;
4
+ export default _default;
5
+ //# sourceMappingURL=tui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tui.d.ts","sourceRoot":"","sources":["../src/tui.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC"}
package/dist/tui.js ADDED
@@ -0,0 +1,37 @@
1
+ /** @jsxImportSource @opentui/solid */
2
+
3
+ import { Plugin } from "@opencode/plugin/tui";
4
+ const id = "@log0u7/opencode-memory";
5
+ export default Plugin.define({
6
+ id: `${id}.tui`,
7
+ setup(context) {
8
+ context.ui.toast.show({
9
+ message: "opencode-memory loaded",
10
+ variant: "info",
11
+ duration: 2000
12
+ });
13
+ context.keymap.layer(() => ({
14
+ mode: "global",
15
+ commands: [{
16
+ id: "memory.status",
17
+ title: "Memory status",
18
+ group: "Memory",
19
+ slash: {
20
+ name: "memory"
21
+ },
22
+ palette: true,
23
+ run: async () => {
24
+ context.ui.toast.show({
25
+ title: "Memory",
26
+ message: "Shared working memory is available",
27
+ variant: "info"
28
+ });
29
+ }
30
+ }]
31
+ }));
32
+ return context.ui.slot({
33
+ append: "home.footer.status",
34
+ render: () => null
35
+ });
36
+ }
37
+ });
package/dist/tui.tsx ADDED
@@ -0,0 +1,37 @@
1
+ /** @jsxImportSource @opentui/solid */
2
+
3
+ import { Plugin } from "@opencode/plugin/tui";
4
+
5
+ const id = "@log0u7/opencode-memory";
6
+
7
+ export default Plugin.define({
8
+ id: `${id}.tui`,
9
+ setup(context) {
10
+ context.ui.toast.show({ message: "opencode-memory loaded", variant: "info", duration: 2000 });
11
+
12
+ context.keymap.layer(() => ({
13
+ mode: "global",
14
+ commands: [
15
+ {
16
+ id: "memory.status",
17
+ title: "Memory status",
18
+ group: "Memory",
19
+ slash: { name: "memory" },
20
+ palette: true,
21
+ run: async () => {
22
+ context.ui.toast.show({
23
+ title: "Memory",
24
+ message: "Shared working memory is available",
25
+ variant: "info",
26
+ });
27
+ },
28
+ },
29
+ ],
30
+ }));
31
+
32
+ return context.ui.slot({
33
+ append: "home.footer.status",
34
+ render: () => null,
35
+ });
36
+ },
37
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@log0u7/opencode-memory",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Working memory for OpenCode: shared SQLite store with hybrid search, shared across all sessions on a machine.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -18,11 +18,22 @@
18
18
  "./server": {
19
19
  "types": "./dist/index.d.ts",
20
20
  "default": "./dist/index.js"
21
+ },
22
+ "./tui": {
23
+ "types": "./dist/tui.d.ts",
24
+ "default": "./dist/tui.js"
21
25
  }
22
26
  },
23
27
  "oc-plugin": [
24
- "server"
28
+ "server",
29
+ "tui"
25
30
  ],
31
+ "peerDependencies": {
32
+ "@opencode-ai/plugin": ">=2.0.0",
33
+ "@opentui/core": ">=0.5.0",
34
+ "@opentui/solid": ">=0.5.0",
35
+ "solid-js": ">=1.9.0"
36
+ },
26
37
  "files": [
27
38
  "dist",
28
39
  "README.md",
@@ -33,7 +44,10 @@
33
44
  "node": ">=22.0.0"
34
45
  },
35
46
  "devDependencies": {
47
+ "@babel/core": "^7.28.0",
48
+ "@babel/preset-typescript": "^7.27.1",
36
49
  "@biomejs/biome": "2.5.15",
50
+ "babel-preset-solid": "^1.9.12",
37
51
  "@opencode-ai/plugin": "1.18.35",
38
52
  "@opencode/plugin": "2.0.26",
39
53
  "@types/node": "^26.6.2",
@@ -43,7 +57,7 @@
43
57
  "vitest": "^5.0.0"
44
58
  },
45
59
  "scripts": {
46
- "build": "tsc -p tsconfig.json",
60
+ "build": "tsc -p tsconfig.json && node scripts/prepare-tui-dist.mjs",
47
61
  "build:check": "pnpm run build && pnpm pack --dry-run",
48
62
  "check": "biome check .",
49
63
  "format": "biome format --write .",