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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user