~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
chore(lint): enable 22 zero-cost ESLint safety rules (#3541)
LearningCircuit828b8df4bbed
diff --git a/eslint.config.js b/eslint.config.jsindex 34a2aa97ca..e905fa3462 100644--- a/eslint.config.js+++ b/eslint.config.js@@ -72,6 +72,34 @@ export default [// XSS prevention - detect unescaped data in innerHTML/outerHTML/document.write"no-unsanitized/property": ["error", escapeConfig],"no-unsanitized/method": ["error", escapeConfig],++ // --- Zero-cost safety bundle (all zero or trivial violations at time of enabling) ---+ // Duplicate detection+ "no-dupe-args": "error",+ "no-dupe-keys": "error",+ "no-dupe-else-if": "error",+ "no-duplicate-case": "error",+ // Dead / unreachable code+ "no-unreachable": "error",+ "no-useless-catch": "error",+ "no-useless-concat": "error",+ "no-useless-escape": "error",+ "no-empty": ["error", { "allowEmptyCatch": true }],+ // Real-bug catchers+ "no-cond-assign": "error",+ "no-constant-condition": "error",+ "no-func-assign": "error",+ "no-invalid-regexp": "error",+ "no-self-assign": "error",+ "no-self-compare": "error",+ "no-unsafe-finally": "error",+ "no-unsafe-negation": "error",+ "use-isnan": "error",+ "valid-typeof": "error",+ // Code discipline+ "no-debugger": "error",+ "no-redeclare": "error",+ "no-throw-literal": "error",},languageOptions: {diff --git a/src/local_deep_research/web/static/js/components/details.js b/src/local_deep_research/web/static/js/components/details.jsindex d7b019bb22..fc37cf1f69 100644--- a/src/local_deep_research/web/static/js/components/details.js+++ b/src/local_deep_research/web/static/js/components/details.js@@ -1022,11 +1022,11 @@// Load cost dataasync function loadCostData() {- try {- // Temporarily disable cost calculation until pricing logic is optimized- document.getElementById('total-cost').textContent = '-';- return;+ // Temporarily disable cost calculation until pricing logic is optimized+ document.getElementById('total-cost').textContent = '-';+ /* TODO: re-enable when pricing logic is optimized+ try {const response = await fetch(URLBuilder.build(URLS.METRICS_API.RESEARCH_COSTS, researchId));if (response.ok) {const data = await response.json();@@ -1038,6 +1038,7 @@SafeLogger.error('Error loading cost data:', error);document.getElementById('total-cost').textContent = '-';}+ */}// Show error messagediff --git a/src/local_deep_research/web/static/js/services/ui.js b/src/local_deep_research/web/static/js/services/ui.jsindex 4a418f370c..766113717f 100644--- a/src/local_deep_research/web/static/js/services/ui.js+++ b/src/local_deep_research/web/static/js/services/ui.js@@ -301,7 +301,7 @@ function renderMarkdown(markdown) {*/function processSpecialMarkdown(html) {// Process image references- return html.replace(/\!\[ref:([^\]]+)\]/g, (match, ref) => {+ return html.replace(/!\[ref:([^\]]+)\]/g, (match, ref) => {// Check if this is a reference to a generated imageif (ref.startsWith('image-')) {return `<div class="ldr-generated-image" data-image-id="${ref}">diff --git a/tests/puppeteer/test_deep_functionality.js b/tests/puppeteer/test_deep_functionality.jsindex b79acc55f2..d963ba00ff 100644--- a/tests/puppeteer/test_deep_functionality.js+++ b/tests/puppeteer/test_deep_functionality.js@@ -2585,7 +2585,7 @@ describe('Deep Functionality Tests', function() {// Check for metadataconst hasQuery = bodyText.includes('query') || bodyText.includes('Query') || bodyText.includes('Research');- const hasDate = bodyText.includes('date') || bodyText.includes('Date') || /\d{4}[-\/]\d{2}[-\/]\d{2}/.test(bodyText);+ const hasDate = bodyText.includes('date') || bodyText.includes('Date') || /\d{4}[-/]\d{2}[-/]\d{2}/.test(bodyText);console.log(` Has query in report: ${hasQuery}`);console.log(` Has date in report: ${hasDate}`);