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

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.
@@ -148,7 +148,8 @@ function details(options) {
148
148
  const own = options.packageRoot === undefined ? packageRoot() : options.packageRoot;
149
149
  const current = path && existsSync(path) ? itemPackageRoot(path) : null;
150
150
  const root = options.packageRoot === undefined
151
- ? preferredPackageRoot([own, globalPackageRoot(runtime ?? null, platform), current])
151
+ ? // On equal versions the first wins, so a host's cached copy goes last.
152
+ preferredPackageRoot([globalPackageRoot(runtime ?? null, platform), current, own])
152
153
  : own;
153
154
  const supported = platform !== "linux" || (options.systemctlAvailable ?? Boolean(executable("systemctl")));
154
155
  return { home, platform, path, runtime, root, supported };
package/opencode/tui.tsx CHANGED
@@ -2,8 +2,17 @@
2
2
  * OpenCode TUI entry: shows "omms:connected" in the prompt footer, and a toast
3
3
  * when a newer om-memory-system is on npm. OpenCode compiles this file itself;
4
4
  * the logic lives in dist/adapters/opencode/tui-status.js.
5
+ *
6
+ * Installed from npm, this file sits in node_modules, where OpenCode does not
7
+ * map bare `solid-js` or JSX runtime imports to its own copies. The
8
+ * `opentui:runtime-module:*` ids always reach the host's copies, so the footer
9
+ * shares the host's renderer and repaints. No JSX: Bun would compile it for
10
+ * React. See anomalyco/opencode#39986.
5
11
  */
6
- import { createSignal } from "solid-js";
12
+ // @ts-expect-error Virtual module that OpenCode's TUI registers at runtime.
13
+ import { createSignal } from "opentui:runtime-module:solid-js";
14
+ // @ts-expect-error Virtual module that OpenCode's TUI registers at runtime.
15
+ import { jsx } from "opentui:runtime-module:%40opentui%2Fsolid%2Fjsx-runtime";
7
16
 
8
17
  export default {
9
18
  id: "omms.tui",
@@ -11,7 +20,15 @@ export default {
11
20
  const [text, setText] = createSignal("omms:warming");
12
21
  const removeSlot = context.ui.slot({
13
22
  append: "prompt.footer.status",
14
- render: () => <text fg={context.theme?.textMuted}>{text()}</text>,
23
+ render: () =>
24
+ jsx("text", {
25
+ get fg() {
26
+ return context.theme?.text?.muted;
27
+ },
28
+ get children() {
29
+ return text();
30
+ },
31
+ }),
15
32
  });
16
33
  let stop: (() => void) | undefined;
17
34
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "om-memory-system",
3
- "version": "4.3.0-next.60",
3
+ "version": "4.3.2",
4
4
  "description": "Opinionated modular memory system for coding agents (OpenCode + Pi)",
5
5
  "type": "module",
6
6
  "main": "dist/plugin.js",