openclaw-engram 0.3.1 → 0.4.0

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.
Files changed (2) hide show
  1. package/package.json +6 -2
  2. package/scripts/install.sh +38 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-engram",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "OpenClaw plugin that connects to engram persistent memory server",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,8 +11,12 @@
11
11
  },
12
12
  "files": [
13
13
  "dist/",
14
- "openclaw.plugin.json"
14
+ "openclaw.plugin.json",
15
+ "scripts/"
15
16
  ],
17
+ "bin": {
18
+ "openclaw-engram-install": "scripts/install.sh"
19
+ },
16
20
  "keywords": [
17
21
  "openclaw",
18
22
  "engram",
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env bash
2
+ # Install openclaw-engram plugin into OpenClaw extensions directory.
3
+ # Usage: npx openclaw-engram-install
4
+ # or: bash <(curl -sL https://raw.githubusercontent.com/thebtf/engram/main/plugin/openclaw-engram/scripts/install.sh)
5
+
6
+ set -euo pipefail
7
+
8
+ EXTENSIONS_DIR="${OPENCLAW_EXTENSIONS_DIR:-${HOME}/.openclaw/extensions}"
9
+ PLUGIN_DIR="${EXTENSIONS_DIR}/engram"
10
+
11
+ echo "Installing openclaw-engram to ${PLUGIN_DIR}..."
12
+
13
+ mkdir -p "${PLUGIN_DIR}"
14
+ cd "${PLUGIN_DIR}"
15
+
16
+ # Create minimal package.json wrapper if not exists
17
+ if [ ! -f package.json ]; then
18
+ cat > package.json << 'WRAP'
19
+ {
20
+ "name": "openclaw-ext-engram",
21
+ "version": "1.0.0",
22
+ "private": true,
23
+ "description": "OpenClaw extension wrapper for openclaw-engram plugin",
24
+ "main": "node_modules/openclaw-engram/dist/index.js"
25
+ }
26
+ WRAP
27
+ fi
28
+
29
+ # Install the npm package (brings all runtime deps)
30
+ npm install openclaw-engram@latest --save 2>&1 | tail -3
31
+
32
+ # Symlink plugin manifest and dist to extension root (OpenClaw expects them here)
33
+ ln -sf node_modules/openclaw-engram/openclaw.plugin.json openclaw.plugin.json
34
+ ln -sf node_modules/openclaw-engram/dist dist
35
+
36
+ echo ""
37
+ echo "Installed openclaw-engram@$(node -p "require('openclaw-engram/package.json').version")"
38
+ echo "Restart gateway: openclaw gateway restart"