Add MindSpace page live edit, chat skills, and H5 deploy tooling.

Introduce page edit sessions with draft preview and patch API, chat skill picker, user memory profile, h5ApiBase resolution, voice WAV transport, and scripts for 105/g2 deployment and Plaza local dev.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
John
2026-06-15 22:09:38 -07:00
parent 3cd322ccfe
commit 6ee6fd64dd
94 changed files with 7015 additions and 2136 deletions
+24 -4
View File
@@ -12,6 +12,7 @@ import {
buildWechatAuthorizeUrl,
isMobileExternalBrowser,
isWechatContext,
isWechatEntryUrl,
readWechatAuthError,
readWechatPendingToken,
} from '../utils/wechat';
@@ -51,7 +52,6 @@ export function AuthView({
const [success, setSuccess] = useState<string | null>(null);
const [submitting, setSubmitting] = useState(false);
const [wechatEnabled, setWechatEnabled] = useState(false);
const [scanEnabled, setScanEnabled] = useState(false);
const [wechatContext, setWechatContext] = useState(() =>
isWechatContext({ search: window.location.search }),
);
@@ -76,7 +76,6 @@ export function AuthView({
if (legacyMode) return;
void getWechatAuthConfig().then((config) => {
setWechatEnabled(config.enabled);
setScanEnabled(Boolean(config.scanEnabled));
setWechatContext((prev) =>
isWechatContext({
search: window.location.search,
@@ -89,8 +88,30 @@ export function AuthView({
serverInWechat: config.inWechat,
}),
);
const params = new URLSearchParams(window.location.search);
if (
config.enabled &&
isWechatEntryUrl(window.location.search) &&
isWechatContext({
search: window.location.search,
serverInWechat: config.inWechat,
}) &&
!params.get('wechat_pending') &&
!params.get('wechat_error')
) {
window.location.replace(
buildWechatAuthorizeUrl({
returnTo: returnTo ?? undefined,
utmSource: params.get('utm_source') ?? params.get('from') ?? 'wechat',
utmMedium: params.get('utm_medium') ?? undefined,
utmCampaign: params.get('utm_campaign') ?? undefined,
intent: 'login',
}),
);
}
});
}, [legacyMode]);
}, [legacyMode, returnTo]);
const isLogin = mode === 'login' && !legacyMode;
const showWechatOneClick = isLogin && wechatContext && wechatEnabled;
@@ -310,7 +331,6 @@ export function AuthView({
{isDesktopScanMode && (
<>
<WechatDesktopLogin
scanEnabled={scanEnabled}
returnTo={returnTo}
onBindingGate={(token) => setPendingToken(token)}
onComplete={() => window.location.reload()}