om-memory-system 4.3.2 → 4.4.0-next.62
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/dist/services/web-autostart.js +1 -2
- package/opencode/tui.tsx +2 -19
- package/package.json +1 -1
|
@@ -148,8 +148,7 @@ 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
|
-
?
|
|
152
|
-
preferredPackageRoot([globalPackageRoot(runtime ?? null, platform), current, own])
|
|
151
|
+
? preferredPackageRoot([own, globalPackageRoot(runtime ?? null, platform), current])
|
|
153
152
|
: own;
|
|
154
153
|
const supported = platform !== "linux" || (options.systemctlAvailable ?? Boolean(executable("systemctl")));
|
|
155
154
|
return { home, platform, path, runtime, root, supported };
|
package/opencode/tui.tsx
CHANGED
|
@@ -2,17 +2,8 @@
|
|
|
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.
|
|
11
5
|
*/
|
|
12
|
-
|
|
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";
|
|
6
|
+
import { createSignal } from "solid-js";
|
|
16
7
|
|
|
17
8
|
export default {
|
|
18
9
|
id: "omms.tui",
|
|
@@ -20,15 +11,7 @@ export default {
|
|
|
20
11
|
const [text, setText] = createSignal("omms:warming");
|
|
21
12
|
const removeSlot = context.ui.slot({
|
|
22
13
|
append: "prompt.footer.status",
|
|
23
|
-
render: () =>
|
|
24
|
-
jsx("text", {
|
|
25
|
-
get fg() {
|
|
26
|
-
return context.theme?.text?.muted;
|
|
27
|
-
},
|
|
28
|
-
get children() {
|
|
29
|
-
return text();
|
|
30
|
-
},
|
|
31
|
-
}),
|
|
14
|
+
render: () => <text fg={context.theme?.textMuted}>{text()}</text>,
|
|
32
15
|
});
|
|
33
16
|
let stop: (() => void) | undefined;
|
|
34
17
|
try {
|