Skip to content

Commit 38b745c

Browse files
committed
feat(window-recognition): WindowInfo 类型扩展(置信度/理由/记忆课程名)
1 parent ad29419 commit 38b745c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎client/src/lib/capture/captureTypes.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export interface CourseMeta {
110110
courseName?: string; // 课程名称
111111
subject?: string; // 学科(math/physics/cs/english/other)
112112
customTerms?: string[]; // 自定义术语列表
113-
detectedBy?: 'manual' | 'window_title' | 'ai'; // 来源标识
113+
detectedBy?: 'manual' | 'window_title' | 'ai' | 'memory'; // 来源标识
114114
}
115115

116116
// 可捕获窗口信息(screen_list_windows 返回)
@@ -120,6 +120,12 @@ export interface WindowInfo {
120120
thumbnail?: string; // base64 缩略图
121121
score?: number; // 推荐分数(关键词匹配)
122122
matched?: string; // 命中的关键词(用于显示推荐理由)
123+
processName?: string; // 进程可执行文件名(native 可用时)
124+
confidence?: 'low' | 'medium' | 'high'; // 评分置信度
125+
reasons?: string[]; // 命中理由(双向评分)
126+
learningScore?: number; // 未被娱乐负分主导的学习分
127+
memoryCourseName?: string; // 记忆命中的课程名(可回填)
128+
isForeground?: boolean; // 是否前台窗口
123129
}
124130

125131
// 提取片段(UI 展示用)

0 commit comments

Comments
 (0)