feat(memory-v2): close Phase A with auto-review, product events, and H5 recall UI.

Add candidate auto-review pipeline, shadow audit tooling, admin metrics page,
and user-visible memory recall hints in chat with phase-a readiness checks.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-01 17:14:06 +08:00
parent 666db0b939
commit 6f3e53a56a
50 changed files with 3730 additions and 38 deletions
+7
View File
@@ -39,6 +39,7 @@ import type {
PlanDefinition,
ActiveSubscription,
UserMemorySyncResponse,
UserMemoryRecallHintResponse,
} from '../types';
import { normalizeConversationMessages, normalizeUserMessageForApi } from '../utils/message';
import type { AgentRunCreateOptions, AgentRunValidation } from '../utils/agentRunMode';
@@ -238,6 +239,12 @@ export async function rememberUserMemory(sessionId: string): Promise<UserMemoryS
});
}
export async function fetchMemoryRecallHint(sessionId: string): Promise<UserMemoryRecallHintResponse> {
return apiFetch<UserMemoryRecallHintResponse>(
`/user-memory/v1/recall-hint?sessionId=${encodeURIComponent(sessionId)}`,
);
}
export async function syncUserMemory(sessionId: string): Promise<UserMemorySyncResponse> {
return apiFetch<UserMemorySyncResponse>('/user-memory/v1/sync', {
method: 'POST',