feat(mindspace): 0630004 空间 UI、聊天连接、微信分享与 Agent 能力
含 MindSpace 三列布局与统计修复、聊天加载态与连接降级、平台页脚标记与 og:site_name 微信卡片、勾选资料删除 Agent 接口及内部话术过滤。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -14,6 +14,18 @@ test('buildEditablePreviewDocument injects visual editor into body', () => {
|
||||
assert.match(result, /data-mindspace-editing/);
|
||||
assert.match(result, /<p>Hi<\/p>/);
|
||||
assert.match(result, new RegExp(MINDSPACE_PAGE_CONTENT_MESSAGE.replace(':', '\\:')));
|
||||
assert.match(result, /data-collapsed/);
|
||||
assert.match(result, /5000/);
|
||||
assert.match(result, /点击展开/);
|
||||
assert.match(result, /isProtectedNode/);
|
||||
});
|
||||
|
||||
test('buildEditablePreviewDocument normalizes platform brand contact line', () => {
|
||||
const html = '<!doctype html><html><body><p>📧 contact@tkmind.ai</p></body></html>';
|
||||
const result = buildEditablePreviewDocument(html);
|
||||
assert.match(result, /contact@tkmind\.cn/);
|
||||
assert.match(result, /data-mindspace-page-tag="platform-brand"/);
|
||||
assert.doesNotMatch(result, /tkmind\.ai/i);
|
||||
});
|
||||
|
||||
test('buildEditablePreviewDocument wraps fragment html', () => {
|
||||
|
||||
Reference in New Issue
Block a user