fix(release): bundle Memind wechat/ subtree into memind-lib

wechat-mp.mjs imports wechat/ack/*; omitting that directory caused Admin API
bootstrap to fail on 103 artifact deploys.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-06-29 10:00:55 +08:00
parent dcf8fd1ff9
commit 17e0410c32
+4
View File
@@ -120,6 +120,10 @@ find "${MEMIND_SRC}" -maxdepth 1 -name '*.mjs' -exec cp -f {} "${MEMIND_LIB}/" \
if [[ -d "${MEMIND_SRC}/skills" ]]; then
cp -a "${MEMIND_SRC}/skills" "${MEMIND_LIB}/"
fi
# wechat-mp.mjs 依赖 wechat/ack/*
if [[ -d "${MEMIND_SRC}/wechat" ]]; then
cp -a "${MEMIND_SRC}/wechat" "${MEMIND_LIB}/"
fi
[[ -f "${MEMIND_LIB}/user-auth.mjs" ]] || {
echo "memind-lib 缺少 user-auth.mjs" >&2
exit 1