Refactor code structure for improved readability and maintainability

This commit is contained in:
catlog22
2025-12-12 11:19:58 +08:00
parent 77de8d857b
commit b74a90b416
169 changed files with 29206 additions and 369 deletions

View File

@@ -34,7 +34,7 @@ function detectLiteral(query) {
* Detect regex pattern (contains regex metacharacters)
*/
function detectRegex(query) {
return /[.*+?^${}()|[\]\]/.test(query);
return /[.*+?^${}()|[\]\\]/.test(query);
}
/**
@@ -111,10 +111,6 @@ function classifyIntent(query) {
}
n// Classification confidence threshold
const CONFIDENCE_THRESHOLD = 0.7;
/**
/**
* Check if a tool is available in PATH
* @param {string} toolName - Tool executable name