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
+26
View File
@@ -179,6 +179,20 @@ export type UserMemorySyncResponse = {
memories: number;
totalMemories: number;
syncedToSession: boolean;
personalMemory?: {
savedPreviews: Array<{
preview: string;
policyReason: string;
memoryType: string;
}>;
autoReviewed: number;
pendingReview: number;
};
};
export type MemoryRecallBadge = {
count: number;
previews: string[];
};
export type GoalRunCheckpoint = {
@@ -215,6 +229,18 @@ export type GoalRun = {
completedAt: number | null;
};
export type UserMemoryRecallHintResponse = {
ok: true;
memoryCount: number;
injectionEnabled: boolean;
mode: string | null;
createdAt: number | null;
runId?: string | null;
savedPreview?: string | null;
savedAt?: number | null;
memoryPreviews?: string[];
};
export type ChatState = 'idle' | 'loading' | 'connecting' | 'streaming' | 'waiting' | 'error';
export type ToolConfirmation = {