feat: add streaming runtime router

This commit is contained in:
John
2026-07-02 06:55:26 +08:00
parent 4fc59729ee
commit 04e308e582
14 changed files with 1925 additions and 285 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ async function writeMetadata() {
'',
'export NODE_ENV=production',
'export H5_PORT="${H5_PORT:-8081}"',
'export H5_PUBLIC_BASE_URL="${H5_PUBLIC_BASE_URL:-https://m.tkmind.cn}"',
'export H5_PUBLIC_BASE_URL="${H5_PUBLIC_BASE_URL:-https://mm.tkmind.cn}"',
'export TKMIND_API_TARGETS="${TKMIND_API_TARGETS:-https://127.0.0.1:18006,https://127.0.0.1:18007,https://127.0.0.1:18008,https://127.0.0.1:18009}"',
'export TKMIND_API_TARGET="${TKMIND_API_TARGET:-https://127.0.0.1:18006}"',
'export TKMIND_API_TARGET_1="${TKMIND_API_TARGET_1:-https://127.0.0.1:18007}"',
+5 -7
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env bash
# Memind Portal 生产进程(m.tkmind.cn / Plaza API 共用 :8081
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
@@ -14,11 +13,10 @@ fi
export NODE_ENV=production
export H5_PORT="${H5_PORT:-8081}"
export H5_HOST="${H5_HOST:-127.0.0.1}"
export H5_PUBLIC_BASE_URL="https://m.tkmind.cn"
export TKMIND_API_TARGETS="${TKMIND_API_TARGETS_OVERRIDE:-${TKMIND_API_TARGETS:-https://127.0.0.1:18006,https://127.0.0.1:18007,https://127.0.0.1:18008,https://127.0.0.1:18009}}"
export TKMIND_API_TARGET="${TKMIND_API_TARGET_OVERRIDE:-https://127.0.0.1:18006}"
export TKMIND_API_TARGET_1="${TKMIND_API_TARGET_1_OVERRIDE:-https://127.0.0.1:18007}"
export H5_PUBLIC_BASE_URL="${H5_PUBLIC_BASE_URL:-https://mm.tkmind.cn}"
export TKMIND_API_TARGETS="${TKMIND_API_TARGETS:-https://127.0.0.1:18006,https://127.0.0.1:18007,https://127.0.0.1:18008,https://127.0.0.1:18009}"
export TKMIND_API_TARGET="${TKMIND_API_TARGET:-https://127.0.0.1:18006}"
export TKMIND_API_TARGET_1="${TKMIND_API_TARGET_1:-https://127.0.0.1:18007}"
NODE_BIN="${NODE_BIN:-/opt/homebrew/opt/node@24/bin/node}"
if [[ ! -x "${NODE_BIN}" ]]; then
@@ -28,4 +26,4 @@ fi
export GOOSED_MCP_NODE_PATH="${GOOSED_MCP_NODE_PATH:-${NODE_BIN}}"
export GOOSED_MCP_SERVER_PATH="${GOOSED_MCP_SERVER_PATH:-${ROOT}/mindspace-sandbox-mcp.mjs}"
exec "${NODE_BIN}" server.mjs
exec "${NODE_BIN}" "${ROOT}/server.mjs"
+2 -2
View File
@@ -23,12 +23,12 @@ const MENU = {
{
type: 'view',
name: 'TKMind',
url: 'https://m.tkmind.cn',
url: 'https://mm.tkmind.cn',
},
{
type: 'view',
name: 'M空间',
url: 'https://m.tkmind.cn/space',
url: 'https://mm.tkmind.cn/space',
},
{
type: 'view',