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.
- package/README.md +4 -1
- package/dist/cli.js +300 -28
- package/dist/hooks/elicitation-result.js +31 -12
- package/dist/hooks/post-tool-use.js +108 -38
- package/dist/hooks/pre-compact.js +44 -13
- package/dist/hooks/sentinel.js +31 -12
- package/dist/hooks/session-start.js +170 -16
- package/dist/hooks/stop.js +258 -152
- package/dist/hooks/user-prompt-submit.js +57 -14
- package/dist/server.js +248 -31
- package/opencode/README.md +6 -6
- package/opencode/install-or-update-opencode-plugin.sh +7 -1
- package/opencode/opencode.example.json +2 -2
- package/package.json +1 -1
|
@@ -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":
|
|
41
|
+
"command": command,
|
|
36
42
|
"enabled": True,
|
|
37
43
|
"timeout": 5000,
|
|
38
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "engrm",
|
|
3
|
-
"version": "0.4.
|
|
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",
|