Improve WeChat MP replies and ship MindSpace/H5 production updates.

Add WeChat service account routing with sync acks, connectivity tests, and context isolation; document deploy runbooks; and bundle related MindSpace, voice, Plaza, and server gateway changes for production rollout.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-06-19 23:06:43 +08:00
parent b0f5d6a51c
commit 229805a070
241 changed files with 13190 additions and 902 deletions
+12
View File
@@ -1,4 +1,5 @@
import { resolveMindSpaceHomeUrl } from './publicUrl';
import type { MindSpacePage } from '../types';
export type SharePayload = {
title: string;
@@ -55,6 +56,17 @@ export const SHARE_CHANNELS: ShareChannel[] = [
},
];
export function buildPageSharePayload(page: MindSpacePage, pagePublicUrl?: string): SharePayload {
const publicUrl = pagePublicUrl
? new URL(pagePublicUrl, window.location.origin).toString()
: window.location.href;
return {
title: page.title || '我的 MindSpace 页面',
url: publicUrl,
description: page.summary || `查看我在 TKMind 的页面:${page.title || page.id}`,
};
}
export async function copyShareText(text: string) {
if (navigator.clipboard?.writeText) {
await navigator.clipboard.writeText(text);