feat: 更新钩子模板检查逻辑,支持基于唯一模式的命令匹配;在搜索元数据中添加回退模式字段

This commit is contained in:
catlog22
2025-12-22 10:25:53 +08:00
parent f3f2051c45
commit 17002345c9
3 changed files with 26 additions and 10 deletions

View File

@@ -244,6 +244,7 @@ interface SearchMetadata {
warning?: string;
note?: string;
index_status?: 'indexed' | 'not_indexed' | 'partial';
fallback?: string; // Fallback mode used (e.g., 'fuzzy')
fallback_history?: string[];
suggested_weights?: Record<string, number>;
// Tokenization metadata (ripgrep mode)