engrm 0.4.42 → 0.4.44

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.
@@ -13,6 +13,12 @@ import os
13
13
  root = Path(os.environ["ENGRM_OPENCODE_SCRIPT_DIR"]).resolve()
14
14
  repo = root.parent
15
15
  plugin_source = repo / "opencode" / "plugin" / "engrm-opencode.js"
16
+ runtime = shutil.which("node") or shutil.which("bun") or "node"
17
+ dist_server = repo / "dist" / "server.js"
18
+ src_server = repo / "src" / "server.ts"
19
+ command = [runtime, str(dist_server if dist_server.exists() else src_server)]
20
+ if not dist_server.exists() and command[0].endswith("bun"):
21
+ command = [runtime, "run", str(src_server)]
16
22
  config_dir = Path.home() / ".config" / "opencode"
17
23
  plugins_dir = config_dir / "plugins"
18
24
  config_path = config_dir / "opencode.json"
@@ -32,7 +38,7 @@ config.setdefault("$schema", "https://opencode.ai/config.json")
32
38
  mcp = config.setdefault("mcp", {})
33
39
  mcp["engrm"] = {
34
40
  "type": "local",
35
- "command": ["engrm", "serve"],
41
+ "command": command,
36
42
  "enabled": True,
37
43
  "timeout": 5000,
38
44
  }
@@ -4,8 +4,8 @@
4
4
  "engrm": {
5
5
  "type": "local",
6
6
  "command": [
7
- "engrm",
8
- "serve"
7
+ "node",
8
+ "/absolute/path/to/engrm/dist/server.js"
9
9
  ],
10
10
  "enabled": true,
11
11
  "timeout": 5000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "engrm",
3
- "version": "0.4.42",
3
+ "version": "0.4.44",
4
4
  "description": "Shared memory across devices, sessions, and agents, with thin MCP tools for durable capture, live continuity, and Hermes-ready remote MCP support",
5
5
  "mcpName": "io.github.dr12hes/engrm",
6
6
  "type": "module",