Add comprehensive tests for ast-grep and tree-sitter relationship extraction

- Introduced test suite for AstGrepPythonProcessor covering pattern definitions, parsing, and relationship extraction.
- Added comparison tests between tree-sitter and ast-grep for consistency in relationship extraction.
- Implemented tests for ast-grep binding module to verify functionality and availability.
- Ensured tests cover various scenarios including inheritance, function calls, and imports.
This commit is contained in:
catlog22
2026-02-15 21:14:14 +08:00
parent 126a357aa2
commit 48a6a1f2aa
56 changed files with 10622 additions and 374 deletions

View File

@@ -22,19 +22,31 @@
"tabs": {
"memories": "记忆",
"favorites": "收藏",
"archived": "归档"
"archived": "归档",
"unifiedSearch": "统一搜索"
},
"stats": {
"totalSize": "总大小",
"count": "数量",
"claudeMdCount": "CLAUDE.md 文件",
"totalEntries": "总条目"
"totalEntries": "总条目",
"vectorChunks": "向量块",
"hnswStatus": "HNSW 索引",
"entities": "实体",
"prompts": "提示"
},
"filters": {
"search": "搜索记忆...",
"searchUnified": "跨所有记忆类型语义搜索...",
"tags": "标签",
"clear": "清除",
"all": "全部"
"all": "全部",
"categoryAll": "所有类别",
"categoryCoreMemory": "核心记忆",
"categoryCliHistory": "CLI 历史",
"categoryWorkflow": "工作流",
"categoryEntity": "实体",
"categoryPattern": "模式"
},
"card": {
"id": "ID",
@@ -82,5 +94,20 @@
"coreMemory": "核心记忆",
"workflow": "工作流",
"cliHistory": "CLI 历史"
},
"unified": {
"score": "分数",
"noResults": "未找到结果。请尝试不同的搜索查询。",
"searching": "搜索中...",
"resultCount": "{count} 条结果",
"recommendations": "相关",
"noRecommendations": "暂无推荐",
"reindex": "重建索引",
"reindexing": "重建中...",
"reindexSuccess": "索引重建成功",
"reindexError": "索引重建失败",
"vectorRank": "向量 #{rank}",
"ftsRank": "全文 #{rank}",
"heatScore": "热度: {score}"
}
}

View File

@@ -114,6 +114,45 @@
"on": "开启",
"off": "关闭"
},
"remoteNotifications": {
"title": "远程通知",
"description": "当事件发生时,发送通知到 Discord、Telegram 或自定义 Webhook 等外部平台。",
"enabled": "已启用",
"disabled": "已禁用",
"platforms": "平台配置",
"events": "事件触发器",
"noPlatforms": "无平台",
"configured": "已配置",
"save": "保存",
"saving": "保存中...",
"saved": "配置已保存",
"saveError": "保存配置失败",
"reset": "重置为默认值",
"resetConfirm": "确定要将所有远程通知设置重置为默认值吗?",
"resetSuccess": "设置已重置为默认值",
"resetError": "重置设置失败",
"testConnection": "测试连接",
"testSuccess": "测试通知发送成功",
"testFailed": "测试通知发送失败",
"testError": "发送测试通知失败",
"discord": {
"webhookUrl": "Webhook URL",
"webhookUrlHint": "在 Discord 频道设置中创建 Webhook",
"username": "自定义用户名(可选)"
},
"telegram": {
"botToken": "Bot Token",
"botTokenHint": "从 Telegram 的 @BotFather 获取",
"chatId": "Chat ID",
"chatIdHint": "用户或群组 Chat ID使用 @userinfobot 查找)"
},
"webhook": {
"url": "Webhook URL",
"method": "HTTP 方法",
"headers": "自定义请求头JSON",
"headersHint": "可选的 JSON 对象,包含自定义请求头"
}
},
"versionCheck": {
"title": "版本更新",
"currentVersion": "当前版本",