Bundle Cursor Chat Bridge into Portal runtime for 103 deploy.
Memind CI / Test, build, and release guards (push) Successful in 6m43s

Add prod runner and LaunchAgent installer so Tang chatBridge toggle can reach a live OpenAI-compatible bridge after env enablement.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-31 09:55:06 +08:00
parent 71d1316919
commit 3688d732c0
4 changed files with 152 additions and 2 deletions
+33
View File
@@ -0,0 +1,33 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
if [[ ! -f "${ROOT}/.env" ]]; then
echo "[cursor-chat-bridge] missing .env in ${ROOT}" >&2
exit 1
fi
cd "${ROOT}"
set -a
# shellcheck disable=SC1091
source "${ROOT}/.env"
set +a
export NODE_ENV=production
export MEMIND_CURSOR_CHAT_BRIDGE_ENTRYPOINT=1
export MEMIND_CURSOR_CHAT_BRIDGE_PORT="${MEMIND_CURSOR_CHAT_BRIDGE_PORT:-18040}"
NODE_BIN="${NODE_BIN:-/opt/homebrew/opt/node@24/bin/node}"
if [[ ! -x "${NODE_BIN}" ]]; then
NODE_BIN="$(command -v node)"
fi
BRIDGE="${ROOT}/cursor-openai-bridge.mjs"
if [[ ! -f "${BRIDGE}" ]]; then
echo "[cursor-chat-bridge] bundle not found: ${BRIDGE}" >&2
exit 1
fi
exec "${NODE_BIN}" "${BRIDGE}"