MCPcopy Create free account
hub / github.com/experdot/pointer / GlobalSearchMatch

Interface GlobalSearchMatch

src/renderer/src/types/type.ts:196–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194
195/** 全局搜索单条匹配结果 */
196export interface GlobalSearchMatch {
197 pageId: string
198 messageId: string
199 role: 'user' | 'assistant' | 'system'
200 /** 匹配文本片段(含上下文) */
201 snippet: string
202 /** 匹配在 snippet 中的起止位置 */
203 matchStart: number
204 matchEnd: number
205 /** 匹配在原始消息内容中的起止位置(用于高亮定位) */
206 contentStart: number
207 contentEnd: number
208 /** 该命中文本在当前消息中的出现序号(0-based) */
209 occurrenceIndexInMessage: number
210 /** 消息创建时间 */
211 createdAt: number
212}
213
214/** 按消息分组的搜索结果 */
215export interface GlobalSearchMessageGroup {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected