om-memory-system 4.2.0 → 4.3.0-next.60

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.
@@ -6,7 +6,7 @@
6
6
  <link rel="icon" type="image/svg+xml" href="/omms-icon.svg" />
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
8
  <title>omms Memory Explorer</title>
9
- <script type="module" crossorigin src="/assets/index-RCrvx7Dv.js"></script>
9
+ <script type="module" crossorigin src="/assets/index-D2Gueurd.js"></script>
10
10
  <link rel="stylesheet" crossorigin href="/assets/index-Bt9T_DDB.css">
11
11
  </head>
12
12
  <body>
@@ -0,0 +1,32 @@
1
+ /**
2
+ * OpenCode TUI entry: shows "omms:connected" in the prompt footer, and a toast
3
+ * when a newer om-memory-system is on npm. OpenCode compiles this file itself;
4
+ * the logic lives in dist/adapters/opencode/tui-status.js.
5
+ */
6
+ import { createSignal } from "solid-js";
7
+
8
+ export default {
9
+ id: "omms.tui",
10
+ async setup(context: any) {
11
+ const [text, setText] = createSignal("omms:warming");
12
+ const removeSlot = context.ui.slot({
13
+ append: "prompt.footer.status",
14
+ render: () => <text fg={context.theme?.textMuted}>{text()}</text>,
15
+ });
16
+ let stop: (() => void) | undefined;
17
+ try {
18
+ const { startInstalledTuiStatus } = await import("../dist/adapters/opencode/tui-status.js");
19
+ stop = await startInstalledTuiStatus({
20
+ setText,
21
+ notify: (message: string) =>
22
+ context.ui.toast.show({ title: "OMMS", message, variant: "info", duration: 10_000 }),
23
+ });
24
+ } catch {
25
+ setText("omms:error");
26
+ }
27
+ return () => {
28
+ stop?.();
29
+ removeSlot();
30
+ };
31
+ },
32
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "om-memory-system",
3
- "version": "4.2.0",
3
+ "version": "4.3.0-next.60",
4
4
  "description": "Opinionated modular memory system for coding agents (OpenCode + Pi)",
5
5
  "type": "module",
6
6
  "main": "dist/plugin.js",
@@ -24,6 +24,7 @@
24
24
  "import": "./dist/v2/plugin.js",
25
25
  "default": "./dist/v2/plugin.js"
26
26
  },
27
+ "./tui": "./opencode/tui.tsx",
27
28
  "./tags": {
28
29
  "types": "./dist/services/tags.d.ts",
29
30
  "import": "./dist/services/tags.js",
@@ -94,8 +95,22 @@
94
95
  },
95
96
  "peerDependencies": {
96
97
  "@earendil-works/pi-coding-agent": "*",
98
+ "@opentui/core": ">=0.5.8",
99
+ "@opentui/solid": ">=0.5.8",
100
+ "solid-js": ">=1.9.0",
97
101
  "typebox": "*"
98
102
  },
103
+ "peerDependenciesMeta": {
104
+ "@opentui/core": {
105
+ "optional": true
106
+ },
107
+ "@opentui/solid": {
108
+ "optional": true
109
+ },
110
+ "solid-js": {
111
+ "optional": true
112
+ }
113
+ },
99
114
  "devDependencies": {
100
115
  "@arethetypeswrong/cli": "^0.18.5",
101
116
  "@earendil-works/pi-coding-agent": "0.86.1",
@@ -131,6 +146,7 @@
131
146
  },
132
147
  "files": [
133
148
  "dist",
149
+ "opencode",
134
150
  "skills",
135
151
  "package.json"
136
152
  ],