Add smart ACK provider for WeChat MP replies
Replace fixed ackText with a rule-based AckProvider that picks response templates by message type and intent (translate, summary, rewrite, poster, ppt, mindmap, code, search, schedule). Pure sync, zero I/O, auto-falls back to config.ackText on any error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -95,9 +95,17 @@ export async function nativeShare(payload: SharePayload) {
|
||||
}
|
||||
|
||||
export function buildAssetSharePayload(
|
||||
asset: { displayName: string },
|
||||
asset: { displayName: string; publicUrl?: string | null },
|
||||
categoryCode?: string,
|
||||
): SharePayload {
|
||||
if (asset.publicUrl) {
|
||||
const publicUrl = new URL(asset.publicUrl, window.location.origin).toString();
|
||||
return {
|
||||
title: asset.displayName,
|
||||
url: publicUrl,
|
||||
description: `看看我在 TKMind 空间里的图片「${asset.displayName}」`,
|
||||
};
|
||||
}
|
||||
const url = new URL(resolveMindSpaceHomeUrl());
|
||||
if (categoryCode) {
|
||||
url.searchParams.set('category', categoryCode);
|
||||
|
||||
Reference in New Issue
Block a user