Skip to content

Commit ac4ffd3

Browse files
nycterentclaude
andcommitted
fix: bundle extensions directory for memory-core plugin
The clawdbot gateway expects bundled plugins (like memory-core) to be available in an extensions directory. This change: 1. Copies the extensions/ directory to $out/lib/clawdbot/ during install 2. Sets CLAWDBOT_BUNDLED_PLUGINS_DIR env var so clawdbot can discover them Without this fix, users get "plugin not found: memory-core" errors when using the default plugins.slots.memory configuration. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d8667b9 commit ac4ffd3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

nix/scripts/gateway-install.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22
set -e
33
mkdir -p "$out/lib/clawdbot" "$out/bin"
44

5+
# Copy core files
56
cp -r dist node_modules package.json ui "$out/lib/clawdbot/"
67

8+
# Copy bundled extensions (memory-core, etc.) if present
9+
if [ -d "extensions" ]; then
10+
cp -r extensions "$out/lib/clawdbot/"
11+
fi
12+
713
if [ -z "${STDENV_SETUP:-}" ]; then
814
echo "STDENV_SETUP is not set" >&2
915
exit 1
@@ -34,4 +40,4 @@ if [ -n "$strip_ansi_src" ]; then
3440
ln -s "$strip_ansi_src" "$out/lib/clawdbot/node_modules/strip-ansi"
3541
fi
3642
fi
37-
bash -e -c '. "$STDENV_SETUP"; makeWrapper "$NODE_BIN" "$out/bin/clawdbot" --add-flags "$out/lib/clawdbot/dist/index.js" --set-default CLAWDBOT_NIX_MODE "1"'
43+
bash -e -c '. "$STDENV_SETUP"; makeWrapper "$NODE_BIN" "$out/bin/clawdbot" --add-flags "$out/lib/clawdbot/dist/index.js" --set-default CLAWDBOT_NIX_MODE "1" --set-default CLAWDBOT_BUNDLED_PLUGINS_DIR "$out/lib/clawdbot/extensions"'

0 commit comments

Comments
 (0)