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": "Memories",
"favorites": "Favorites",
"archived": "Archived"
"archived": "Archived",
"unifiedSearch": "Unified Search"
},
"stats": {
"totalSize": "Total Size",
"count": "Count",
"claudeMdCount": "CLAUDE.md Files",
"totalEntries": "Total Entries"
"totalEntries": "Total Entries",
"vectorChunks": "Vector Chunks",
"hnswStatus": "HNSW Index",
"entities": "Entities",
"prompts": "Prompts"
},
"filters": {
"search": "Search memories...",
"searchUnified": "Semantic search across all memory types...",
"tags": "Tags",
"clear": "Clear",
"all": "All"
"all": "All",
"categoryAll": "All Categories",
"categoryCoreMemory": "Core Memory",
"categoryCliHistory": "CLI History",
"categoryWorkflow": "Workflow",
"categoryEntity": "Entity",
"categoryPattern": "Pattern"
},
"card": {
"id": "ID",
@@ -82,5 +94,20 @@
"coreMemory": "Core Memory",
"workflow": "Workflow",
"cliHistory": "CLI History"
},
"unified": {
"score": "Score",
"noResults": "No results found. Try a different search query.",
"searching": "Searching...",
"resultCount": "{count} results",
"recommendations": "Related",
"noRecommendations": "No recommendations available",
"reindex": "Rebuild Index",
"reindexing": "Rebuilding...",
"reindexSuccess": "Index rebuilt successfully",
"reindexError": "Failed to rebuild index",
"vectorRank": "Vector #{rank}",
"ftsRank": "FTS #{rank}",
"heatScore": "Heat: {score}"
}
}

View File

@@ -114,6 +114,45 @@
"on": "On",
"off": "Off"
},
"remoteNotifications": {
"title": "Remote Notifications",
"description": "Send notifications to external platforms like Discord, Telegram, or custom webhooks when events occur.",
"enabled": "Enabled",
"disabled": "Disabled",
"platforms": "Platform Configuration",
"events": "Event Triggers",
"noPlatforms": "No platforms",
"configured": "Configured",
"save": "Save",
"saving": "Saving...",
"saved": "Configuration saved",
"saveError": "Failed to save configuration",
"reset": "Reset to Defaults",
"resetConfirm": "Reset all remote notification settings to defaults?",
"resetSuccess": "Settings reset to defaults",
"resetError": "Failed to reset settings",
"testConnection": "Test Connection",
"testSuccess": "Test notification sent successfully",
"testFailed": "Test notification failed",
"testError": "Failed to send test notification",
"discord": {
"webhookUrl": "Webhook URL",
"webhookUrlHint": "Create a webhook in your Discord channel settings",
"username": "Custom Username (optional)"
},
"telegram": {
"botToken": "Bot Token",
"botTokenHint": "Get from @BotFather on Telegram",
"chatId": "Chat ID",
"chatIdHint": "User or group chat ID (use @userinfobot to find it)"
},
"webhook": {
"url": "Webhook URL",
"method": "HTTP Method",
"headers": "Custom Headers (JSON)",
"headersHint": "Optional JSON object with custom headers"
}
},
"versionCheck": {
"title": "Version Update",
"currentVersion": "Current Version",