~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 object-shorthand + autofix 183 sites (#3621)
LearningCircuit610a60bf348d
diff --git a/eslint.config.js b/eslint.config.jsindex ba6d2c5d30..c836777dd0 100644--- a/eslint.config.js+++ b/eslint.config.js@@ -206,6 +206,9 @@ export default ["for-direction": "error","no-buffer-constructor": "error","no-path-concat": "error",++ // Prefer ES2015+ object literal shorthand+ "object-shorthand": "error",},languageOptions: {diff --git a/src/local_deep_research/web/static/js/app.js b/src/local_deep_research/web/static/js/app.jsindex 238884d0ae..f3902586ef 100644--- a/src/local_deep_research/web/static/js/app.js+++ b/src/local_deep_research/web/static/js/app.js@@ -45,7 +45,7 @@ marked.setOptions({headerIds: false,mangle: false,smartypants: false,- highlight: function(code, lang) {+ highlight(code, lang) {if (lang && hljs.getLanguage(lang)) {try {return hljs.highlight(code, { language: lang }).value;diff --git a/src/local_deep_research/web/static/js/collections_manager.js b/src/local_deep_research/web/static/js/collections_manager.jsindex 0652c01ae6..5769d9aee6 100644--- a/src/local_deep_research/web/static/js/collections_manager.js+++ b/src/local_deep_research/web/static/js/collections_manager.js@@ -202,8 +202,8 @@ async function handleCreateCollection(event) {'X-CSRFToken': csrfToken},body: JSON.stringify({- name: name,- description: description,+ name,+ description,type: 'user_uploads'})});diff --git a/src/local_deep_research/web/static/js/components/checkbox_handler.js b/src/local_deep_research/web/static/js/components/checkbox_handler.jsindex 98a7948d4b..4656f53edd 100644--- a/src/local_deep_research/web/static/js/components/checkbox_handler.js+++ b/src/local_deep_research/web/static/js/components/checkbox_handler.js@@ -48,7 +48,7 @@* Initialize all checkbox-hidden fallback pairs* @returns {void}*/- init: function() {+ init() {if (this._initialized) {SafeLogger.warn('CheckboxHandler already initialized, skipping duplicate initialization');return;@@ -66,7 +66,7 @@* @returns {void}* @private*/- initializeCheckboxes: function() {+ initializeCheckboxes() {// Find all checkboxes with hidden fallback attributedocument.querySelectorAll('input[type="checkbox"][data-hidden-fallback]').forEach(checkbox => {this.setupCheckbox(checkbox);@@ -79,7 +79,7 @@* @returns {void}* @private*/- setupCheckbox: function(checkbox) {+ setupCheckbox(checkbox) {const hiddenId = checkbox.dataset.hiddenFallback;if (!hiddenId) {@@ -124,7 +124,7 @@* @returns {void}* @public*/- cleanup: function(checkbox) {+ cleanup(checkbox) {if (checkbox._checkboxHandlerCleanup) {checkbox._checkboxHandlerCleanup();delete checkbox._checkboxHandlerCleanup;@@ -137,7 +137,7 @@* @returns {void}* @private*/- setupFormSubmissionHandler: function() {+ setupFormSubmissionHandler() {document.addEventListener('submit', (event) => {this.prepareFormSubmission(event.target);});@@ -149,7 +149,7 @@* @returns {void}* @public*/- prepareFormSubmission: function(form) {+ prepareFormSubmission(form) {form.querySelectorAll('input[type="checkbox"][data-hidden-fallback]').forEach(checkbox => {const hiddenId = checkbox.dataset.hiddenFallback;@@ -176,7 +176,7 @@* @returns {void}* @private*/- setupMutationObserver: function() {+ setupMutationObserver() {this._observer = new MutationObserver((mutations) => {mutations.forEach((mutation) => {mutation.addedNodes.forEach((node) => {@@ -203,7 +203,7 @@* @returns {void}* @public*/- disconnect: function() {+ disconnect() {if (this._observer) {this._observer.disconnect();this._observer = null;diff --git a/src/local_deep_research/web/static/js/components/custom_dropdown.js b/src/local_deep_research/web/static/js/components/custom_dropdown.jsindex 646102f994..c061281dd3 100644--- a/src/local_deep_research/web/static/js/components/custom_dropdown.js+++ b/src/local_deep_research/web/static/js/components/custom_dropdown.js@@ -615,14 +615,14 @@SafeLogger.log(`Registering dropdown: ${input.id} with list ${dropdownId}`);dropdownRegistry[input.id] = {- getOptions: getOptions,- onSelect: onSelect,- dropdownId: dropdownId,- allowCustomValues: allowCustomValues,- noResultsText: noResultsText,- onFavoriteToggle: onFavoriteToggle,- hideDropdown: hideDropdown,- listenerController: listenerController+ getOptions,+ onSelect,+ dropdownId,+ allowCustomValues,+ noResultsText,+ onFavoriteToggle,+ hideDropdown,+ listenerController};} else {SafeLogger.warn('Cannot register dropdown: Missing input ID or dropdown list ID');diff --git a/src/local_deep_research/web/static/js/components/details.js b/src/local_deep_research/web/static/js/components/details.jsindex b76769ec37..d1c5577e8a 100644--- a/src/local_deep_research/web/static/js/components/details.js+++ b/src/local_deep_research/web/static/js/components/details.js@@ -189,7 +189,7 @@new Chart(ctx, {type: 'pie',data: {- labels: labels,+ labels,datasets: [{data: chartData,backgroundColor: colors.background,@@ -815,7 +815,7 @@tooltip: {callbacks: {title: tooltipTitle,- label: function(context) {+ label(context) {return (context.dataset.label || '') + ': ' + formatNumber(context.parsed.y);},afterBody: tooltipAfterBody@@ -859,7 +859,7 @@x: { stacked: true, grid: { display: false },ticks: { font: { size: 11 }, maxRotation: 45 } },y: { stacked: true, beginAtZero: true,- ticks: { callback: function(v) { return formatNumber(v); } },+ ticks: { callback(v) { return formatNumber(v); } },title: { display: true, text: 'Tokens' } }},plugins: {@@ -871,7 +871,7 @@cornerRadius: 8, displayColors: true,callbacks: {title: tooltipTitle,- beforeBody: function(tooltipItems) {+ beforeBody(tooltipItems) {const item = timeline[tooltipItems[0].dataIndex];return [`Total: ${formatNumber(item.tokens || 0)} tokens`];},@@ -924,7 +924,7 @@searchChart = new Chart(ctx, {type: 'line',data: {- labels: labels,+ labels,datasets: [{label: 'Results Found',data: results,@@ -973,7 +973,7 @@font: {size: 10},- callback: function(value) {+ callback(value) {return formatNumber(value);}},@@ -999,16 +999,16 @@borderWidth: 1,cornerRadius: 6,callbacks: {- title: function(tooltipItems) {+ title(tooltipItems) {const index = tooltipItems[0].dataIndex;return searchCalls[index].label;},- beforeBody: function(tooltipItems) {+ beforeBody(tooltipItems) {const index = tooltipItems[0].dataIndex;const call = searchCalls[index];return [`Engine: ${call.engine}`];},- afterBody: function(tooltipItems) {+ afterBody(tooltipItems) {const index = tooltipItems[0].dataIndex;const call = searchCalls[index];const lines = [];@@ -1228,7 +1228,7 @@new Chart(ctx, {type: 'line',data: {- labels: labels,+ labels,datasets: [{label: 'Total Tokens',diff --git a/src/local_deep_research/web/static/js/components/history.js b/src/local_deep_research/web/static/js/components/history.jsindex 7037c987a3..11ab38acbc 100644--- a/src/local_deep_research/web/static/js/components/history.js+++ b/src/local_deep_research/web/static/js/components/history.js@@ -28,7 +28,7 @@// Fallback UI utilities in case main UI utils aren't loadedconst uiUtils = {- showSpinner: function(container, message) {+ showSpinner(container, message) {if (window.ui && window.ui.showSpinner) {return window.ui.showSpinner(container, message);}@@ -47,7 +47,7 @@container.innerHTML = spinnerHtml;},- hideSpinner: function(container) {+ hideSpinner(container) {if (window.ui && window.ui.hideSpinner) {return window.ui.hideSpinner(container);}@@ -60,7 +60,7 @@}},- showError: function(message) {+ showError(message) {if (window.ui && window.ui.showError) {return window.ui.showError(message);}@@ -70,7 +70,7 @@alert(message);},- showMessage: function(message) {+ showMessage(message) {if (window.ui && window.ui.showMessage) {return window.ui.showMessage(message);}@@ -83,7 +83,7 @@// Fallback API utilitiesconst apiUtils = {- getResearchHistory: async function() {+ async getResearchHistory() {if (window.api && window.api.getResearchHistory) {return window.api.getResearchHistory();}@@ -101,7 +101,7 @@}},- deleteResearch: async function(researchId) {+ async deleteResearch(researchId) {if (window.api && window.api.deleteResearch) {return window.api.deleteResearch(researchId);}@@ -125,7 +125,7 @@}},- clearResearchHistory: async function() {+ async clearResearchHistory() {if (window.api && window.api.clearResearchHistory) {return window.api.clearResearchHistory();}diff --git a/src/local_deep_research/web/static/js/components/library_search.js b/src/local_deep_research/web/static/js/components/library_search.jsindex 479dc73aea..9aa1a03d54 100644--- a/src/local_deep_research/web/static/js/components/library_search.js+++ b/src/local_deep_research/web/static/js/components/library_search.js@@ -35,21 +35,21 @@ function fileTypeIcon(fileType) {* Used by SemanticSearch.createSemanticResultCard().*/const LIBRARY_CARD_CONFIG = {- getId: function(r) { return r.document_id || ''; },- getTitle: function(r) { return r.title || 'Untitled'; },- getUrl: function(r) {+ getId(r) { return r.document_id || ''; },+ getTitle(r) { return r.title || 'Untitled'; },+ getUrl(r) {return (typeof URLBuilder !== 'undefined' && r.document_id)? URLBuilder.documentPage(r.document_id) : '#';},- getBadges: function(r) {+ getBadges(r) {const badges = [];if (r.file_type) {badges.push({ icon: fileTypeIcon(r.file_type), label: r.file_type.toUpperCase() });}return badges.length > 0 ? badges : [{ icon: 'file', label: 'DOC' }];},- getDate: function(r) { return r.created_at || null; },- getSubtitle: function(r) { return r.domain || null; },+ getDate(r) { return r.created_at || null; },+ getSubtitle(r) { return r.domain || null; },};/**@@ -93,7 +93,7 @@ async function performSemanticSearch(collectionId, query, limit) {'Content-Type': 'application/json','X-CSRFToken': getCsrfToken(),},- body: JSON.stringify({ query: query, limit: limit }),+ body: JSON.stringify({ query, limit }),});if (!response.ok) {@@ -204,13 +204,13 @@ function getDefaultCollectionId() {// Expose public APIwindow.LibrarySearch = {- initLibrarySearch: initLibrarySearch,- performSemanticSearch: performSemanticSearch,- searchAllCollections: searchAllCollections,- renderSemanticResults: renderSemanticResults,- getIndexedCollectionIds: getIndexedCollectionIds,- getDefaultCollectionId: getDefaultCollectionId,- getLibraryCardConfig: function() { return LIBRARY_CARD_CONFIG; },+ initLibrarySearch,+ performSemanticSearch,+ searchAllCollections,+ renderSemanticResults,+ getIndexedCollectionIds,+ getDefaultCollectionId,+ getLibraryCardConfig() { return LIBRARY_CARD_CONFIG; },};})();diff --git a/src/local_deep_research/web/static/js/components/logpanel.js b/src/local_deep_research/web/static/js/components/logpanel.jsindex 1e09288615..bc6dffdf55 100644--- a/src/local_deep_research/web/static/js/components/logpanel.js+++ b/src/local_deep_research/web/static/js/components/logpanel.js@@ -632,7 +632,7 @@const logEntry = {id: `${timestamp}-${hashString(message)}`,time: timestamp,- message: message,+ message,type: level,metadata: metadata || { type: level }};diff --git a/src/local_deep_research/web/static/js/components/research.js b/src/local_deep_research/web/static/js/components/research.jsindex 7c926cffcf..7acf200e07 100644--- a/src/local_deep_research/web/static/js/components/research.js+++ b/src/local_deep_research/web/static/js/components/research.js@@ -1907,7 +1907,7 @@function cacheData(key, data) {memoryCache[key] = {- data: data,+ data,timestamp: Date.now()};}@@ -2248,7 +2248,7 @@'Content-Type': 'application/json','X-CSRFToken': window.api ? window.api.getCsrfToken() : ''},- body: JSON.stringify({ value: value })+ body: JSON.stringify({ value })}).then(response => response.json()).then(data => {@@ -2352,15 +2352,15 @@// Prepare the data for submissionconst formData = {- query: query,- mode: mode,+ query,+ mode,model_provider: modelProvider,- model: model,+ model,custom_endpoint: customEndpoint,ollama_url: ollamaUrl,search_engine: searchEngine,- strategy: strategy,- iterations: iterations,+ strategy,+ iterations,questions_per_iteration: questionsPerIteration};diff --git a/src/local_deep_research/web/static/js/components/results.js b/src/local_deep_research/web/static/js/components/results.jsindex 58271ac342..4005488f0d 100644--- a/src/local_deep_research/web/static/js/components/results.js+++ b/src/local_deep_research/web/static/js/components/results.js@@ -1042,8 +1042,8 @@const response = await fetch(`/metrics/api/ratings/${researchId}`, {method: 'POST',- headers: headers,- body: JSON.stringify({ rating: rating })+ headers,+ body: JSON.stringify({ rating })});SafeLogger.log('Response status:', response.status);diff --git a/src/local_deep_research/web/static/js/config/constants.js b/src/local_deep_research/web/static/js/config/constants.jsindex 65413a1610..8667a9a065 100644--- a/src/local_deep_research/web/static/js/config/constants.js+++ b/src/local_deep_research/web/static/js/config/constants.js@@ -43,41 +43,41 @@ if (typeof LDR_CONSTANTS !== 'undefined') {*/window.ResearchStates = Object.freeze({/** True for completed, suspended, failed, error, cancelled */- isTerminal: function(status) {+ isTerminal(status) {return window.RESEARCH_TERMINAL_STATES.has(status);},/** True only for successfully completed research */- isCompleted: function(status) {+ isCompleted(status) {return status === window.RESEARCH_STATUS.COMPLETED;},/** True for failed research (unrecoverable error, includes legacy 'error' status) */- isFailed: function(status) {+ isFailed(status) {return status === window.RESEARCH_STATUS.FAILED|| status === window.RESEARCH_STATUS.ERROR;},/** True for user-cancelled research (cancelled or suspended) */- isCancelled: function(status) {+ isCancelled(status) {return status === window.RESEARCH_STATUS.CANCELLED|| status === window.RESEARCH_STATUS.SUSPENDED;},/** True only for research currently executing (not queued/pending) */- isInProgress: function(status) {+ isInProgress(status) {return status === window.RESEARCH_STATUS.IN_PROGRESS;},/** True for actively running or waiting research */- isActive: function(status) {+ isActive(status) {return status === window.RESEARCH_STATUS.IN_PROGRESS|| status === window.RESEARCH_STATUS.QUEUED|| status === window.RESEARCH_STATUS.PENDING;},/** Map status to human-readable display label */- formatStatus: function(status) {+ formatStatus(status) {const RS = window.RESEARCH_STATUS;const labels = {};labels[RS.IN_PROGRESS] = 'In Progress';@@ -96,7 +96,7 @@ window.ResearchStates = Object.freeze({},/** Determine log level for a given research status */- logLevel: function(status) {+ logLevel(status) {if (!status) return 'info';// Check error before terminal — 'error' is in terminal set but should log as errorif (status === window.RESEARCH_STATUS.ERRORdiff --git a/src/local_deep_research/web/static/js/deletion/confirmation_modal.js b/src/local_deep_research/web/static/js/deletion/confirmation_modal.jsindex 71e54257d1..65e992cb49 100644--- a/src/local_deep_research/web/static/js/deletion/confirmation_modal.js+++ b/src/local_deep_research/web/static/js/deletion/confirmation_modal.js@@ -266,7 +266,7 @@ if (typeof window !== 'undefined') {show: showDeleteConfirmation,hide: hideDeleteModal,getTooltip: getDeleteTooltip,- confirmAndRun: confirmAndRun,+ confirmAndRun,ACTIONS: DELETE_ACTIONS};}diff --git a/src/local_deep_research/web/static/js/embedding_settings.js b/src/local_deep_research/web/static/js/embedding_settings.jsindex c928ae1e2a..1c6904f68b 100644--- a/src/local_deep_research/web/static/js/embedding_settings.js+++ b/src/local_deep_research/web/static/js/embedding_settings.js@@ -259,7 +259,7 @@ async function saveSetting(key, value, displayName, oldValue) {'Content-Type': 'application/json','X-CSRFToken': csrfToken},- body: JSON.stringify({ value: value })+ body: JSON.stringify({ value })});const data = await response.json();@@ -836,8 +836,8 @@ async function testConfiguration() {'X-CSRFToken': csrfToken},body: JSON.stringify({- provider: provider,- model: model,+ provider,+ model,test_text: 'This is a test sentence to verify the embedding model is working correctly.'})});diff --git a/src/local_deep_research/web/static/js/followup.js b/src/local_deep_research/web/static/js/followup.jsindex 7aede73ce3..eba8125bc8 100644--- a/src/local_deep_research/web/static/js/followup.js+++ b/src/local_deep_research/web/static/js/followup.js@@ -289,7 +289,7 @@ class FollowUpResearch {SafeLogger.log('Submitting follow-up research:', {parent_research_id: this.parentResearchId,- question: question+ question});try {@@ -305,7 +305,7 @@ class FollowUpResearch {},body: JSON.stringify({parent_research_id: this.parentResearchId,- question: question+ question// Strategy now comes from database settings})});diff --git a/src/local_deep_research/web/static/js/pages/news.js b/src/local_deep_research/web/static/js/pages/news.jsindex 8775f56373..a79888875b 100644--- a/src/local_deep_research/web/static/js/pages/news.js+++ b/src/local_deep_research/web/static/js/pages/news.js@@ -450,9 +450,9 @@ async function performAdvancedNewsSearch(query, strategy = 'source-based', model// Request will use settings from database if not provided// The backend will handle getting the user's configured modelconst requestData = {- query: query,+ query,mode: 'quick',- strategy: strategy, // Use provided strategy or default to source-based+ strategy, // Use provided strategy or default to source-basedmetadata: {is_news_search: true,search_type: 'news_analysis',@@ -566,7 +566,7 @@ async function createSubscriptionFromSearch(query, researchId) {'X-CSRFToken': getCSRFToken()},body: JSON.stringify({- query: query,+ query,subscription_type: 'search',refresh_minutes: 60,metadata: {@@ -687,7 +687,7 @@ async function createSimpleSubscription(query) {'X-CSRFToken': getCSRFToken()},body: JSON.stringify({- query: query,+ query,subscription_type: 'search',refresh_minutes: 1})@@ -2037,7 +2037,7 @@ async function createSubscription() {'X-CSRFToken': getCSRFToken()},body: JSON.stringify({- query: query,+ query,subscription_type: type,refresh_minutes: parseInt(refreshMinutes)})@@ -2191,7 +2191,7 @@ async function runNewsSemanticSearch(query) {'Content-Type': 'application/json','X-CSRFToken': getCSRFToken()},- body: JSON.stringify({ query: query, limit: 50 })+ body: JSON.stringify({ query, limit: 50 })});// Stale guard@@ -2266,7 +2266,7 @@ async function runNewsHybridSearch(query) {'Content-Type': 'application/json','X-CSRFToken': getCSRFToken()},- body: JSON.stringify({ query: query, limit: 50 })+ body: JSON.stringify({ query, limit: 50 })});// Stale guard@@ -2301,7 +2301,7 @@ async function runNewsHybridSearch(query) {return;}- const textItems = newsItems.map(item => ({ id: String(item.research_id), item: item }));+ const textItems = newsItems.map(item => ({ id: String(item.research_id), item }));const tiered = buildTiered(textItems, semanticResults, { textIdKey: 'id', semanticIdKey: 'research_id' });// Reorder newsItems array@@ -2441,7 +2441,7 @@ async function monitorResearch(researchId, query = null) {// Store in localStorage so it persists across page loadslocalStorage.setItem('active_news_research', JSON.stringify({researchId,- query: query,+ query,startTime: new Date().toISOString()}));@@ -2738,9 +2738,9 @@ async function saveSearchHistory(query, type, resultCount) {},credentials: 'same-origin',body: JSON.stringify({- query: query,- type: type,- resultCount: resultCount+ query,+ type,+ resultCount})});SafeLogger.log('Save search history response:', response.status);@@ -3641,11 +3641,11 @@ async function handleNewsSubscriptionSubmit(e) {'X-CSRFToken': getCSRFToken()},body: JSON.stringify({- query: query,+ query,subscription_type: 'search',refresh_minutes: parseInt(frequency),model_provider: modelProvider,- model: model,+ model,search_strategy: searchStrategy})});diff --git a/src/local_deep_research/web/static/js/pages/subscriptions.js b/src/local_deep_research/web/static/js/pages/subscriptions.jsindex 5ce08104b5..74b64b8172 100644--- a/src/local_deep_research/web/static/js/pages/subscriptions.js+++ b/src/local_deep_research/web/static/js/pages/subscriptions.js@@ -306,7 +306,7 @@ async function runSubscriptionNow(subscriptionId) {showAlert('Starting research for: ' + query, 'info');const requestData = {- query: query,+ query,mode: 'quick',metadata: {is_news_search: true,@@ -341,7 +341,7 @@ async function runSubscriptionNow(subscriptionId) {// Store active research in localStorage so news page can show progresslocalStorage.setItem('active_news_research', JSON.stringify({researchId: data.research_id,- query: query,+ query,startTime: new Date().toISOString()}));diff --git a/src/local_deep_research/web/static/js/pdf_upload_handler.js b/src/local_deep_research/web/static/js/pdf_upload_handler.jsindex a958d2e282..f71a02ddea 100644--- a/src/local_deep_research/web/static/js/pdf_upload_handler.js+++ b/src/local_deep_research/web/static/js/pdf_upload_handler.js@@ -305,7 +305,7 @@ class PDFUploadHandler {const response = await fetch(uploadUrl, {method: 'POST',body: formData,- headers: headers+ headers});if (!response.ok) {diff --git a/src/local_deep_research/web/static/js/security/safe-logger.js b/src/local_deep_research/web/static/js/security/safe-logger.jsindex b281dcfb61..ac4ff42f57 100644--- a/src/local_deep_research/web/static/js/security/safe-logger.js+++ b/src/local_deep_research/web/static/js/security/safe-logger.js@@ -197,7 +197,7 @@* Log a message (equivalent to console.log)* @param {...any} args - Arguments to log*/- log: function(...args) {+ log(...args) {// bearer:disable javascript_lang_logger_leakconsole.log(...processArgs(args));},@@ -206,7 +206,7 @@* Log an informational message (equivalent to console.info)* @param {...any} args - Arguments to log*/- info: function(...args) {+ info(...args) {// bearer:disable javascript_lang_logger_leakconsole.info(...processArgs(args));},@@ -215,7 +215,7 @@* Log a warning message (equivalent to console.warn)* @param {...any} args - Arguments to log*/- warn: function(...args) {+ warn(...args) {// bearer:disable javascript_lang_logger_leakconsole.warn(...processArgs(args));},@@ -224,7 +224,7 @@* Log an error message (equivalent to console.error)* @param {...any} args - Arguments to log*/- error: function(...args) {+ error(...args) {// bearer:disable javascript_lang_logger_leakconsole.error(...processArgs(args));},@@ -234,7 +234,7 @@* In production, debug messages are completely suppressed.* @param {...any} args - Arguments to log*/- debug: function(...args) {+ debug(...args) {if (!isProduction()) {// bearer:disable javascript_lang_logger_leakconsole.debug(...processArgs(args));@@ -245,14 +245,14 @@* Check if running in production mode* @returns {boolean} True if in production mode*/- isProduction: isProduction,+ isProduction,/*** Force production mode on or off (for testing purposes)* Set to null to restore automatic detection.* @param {boolean|null} value - True for production, false for development, null for auto*/- setProductionMode: function(value) {+ setProductionMode(value) {_forceProductionMode = value;},@@ -260,14 +260,14 @@* Get current production mode setting* @returns {boolean|null} Current forced mode or null if auto-detecting*/- getProductionMode: function() {+ getProductionMode() {return _forceProductionMode;},/*** Reset to automatic environment detection*/- resetProductionMode: function() {+ resetProductionMode() {_forceProductionMode = null;_isProduction = null;}diff --git a/src/local_deep_research/web/static/js/security/url-validator.js b/src/local_deep_research/web/static/js/security/url-validator.jsindex 107889fbe4..90e1618e2a 100644--- a/src/local_deep_research/web/static/js/security/url-validator.js+++ b/src/local_deep_research/web/static/js/security/url-validator.js@@ -8,7 +8,7 @@ const URLValidator = {SAFE_SCHEMES: ['http', 'https', 'ftp', 'ftps'],EMAIL_SCHEME: 'mailto',- isUnsafeScheme: function(url) {+ isUnsafeScheme(url) {if (!url) return false;const normalizedUrl = url.trim().toLowerCase();@@ -23,7 +23,7 @@ const URLValidator = {return false;},- isSafeUrl: function(url, options = {}) {+ isSafeUrl(url, options = {}) {const {requireScheme = true,allowFragments = true,@@ -82,7 +82,7 @@ const URLValidator = {}},- sanitizeUrl: function(url, defaultScheme = 'https') {+ sanitizeUrl(url, defaultScheme = 'https') {if (!url) return null;// Check for unsafe schemes@@ -110,7 +110,7 @@ const URLValidator = {* Safe URL assignment with validation* Use this for any dynamic URL assignments*/- safeAssign: function(element, property, url, options = {}) {+ safeAssign(element, property, url, options = {}) {// Special handling for internal navigationif (url && (url.startsWith('/') || url.startsWith('#'))) {element[property] = url;diff --git a/src/local_deep_research/web/static/js/security/xss-protection.js b/src/local_deep_research/web/static/js/security/xss-protection.jsindex 93832b92e8..0f0e105578 100644--- a/src/local_deep_research/web/static/js/security/xss-protection.js+++ b/src/local_deep_research/web/static/js/security/xss-protection.js@@ -330,14 +330,14 @@ function sanitizeUserInput(input, options = {}) {// Export to global scopewindow.XSSProtection = {- escapeHtml: escapeHtml,- escapeHtmlAttribute: escapeHtmlAttribute,- safeSetInnerHTML: safeSetInnerHTML,- safeCreateElement: safeCreateElement,- safeSetTextContent: safeSetTextContent,- createSafeAlertElement: createSafeAlertElement,- sanitizeUserInput: sanitizeUserInput,- sanitizeHtml: sanitizeHtml+ escapeHtml,+ escapeHtmlAttribute,+ safeSetInnerHTML,+ safeCreateElement,+ safeSetTextContent,+ createSafeAlertElement,+ sanitizeUserInput,+ sanitizeHtml};/**diff --git a/src/local_deep_research/web/static/js/services/audio.js b/src/local_deep_research/web/static/js/services/audio.jsindex 753ec90551..4ea74f493c 100644--- a/src/local_deep_research/web/static/js/services/audio.js+++ b/src/local_deep_research/web/static/js/services/audio.js@@ -5,23 +5,23 @@// Set global audio object as a no-op servicewindow.audio = {- initialize: function() {+ initialize() {SafeLogger.log('Audio service disabled - will be implemented in the future');return false;},- playSuccess: function() {+ playSuccess() {SafeLogger.log('Success sound playback disabled');return false;},- playError: function() {+ playError() {SafeLogger.log('Error sound playback disabled');return false;},- play: function() {+ play() {SafeLogger.log('Sound playback disabled');return false;},- test: function() {+ test() {SafeLogger.log('Sound testing disabled');return false;}diff --git a/src/local_deep_research/web/static/js/services/help.js b/src/local_deep_research/web/static/js/services/help.jsindex 1681e9f509..61cc110cd2 100644--- a/src/local_deep_research/web/static/js/services/help.js+++ b/src/local_deep_research/web/static/js/services/help.js@@ -294,13 +294,13 @@ const HelpService = (function() {// Public APIreturn {- init: init,- togglePanel: togglePanel,- dismissPanel: dismissPanel,- isPanelDismissed: isPanelDismissed,- resetDismissedPanels: resetDismissedPanels,- expandAll: expandAll,- collapseAll: collapseAll+ init,+ togglePanel,+ dismissPanel,+ isPanelDismissed,+ resetDismissedPanels,+ expandAll,+ collapseAll};})();diff --git a/src/local_deep_research/web/static/js/services/socket.js b/src/local_deep_research/web/static/js/services/socket.jsindex adc3796d74..514cbe60fc 100644--- a/src/local_deep_research/web/static/js/services/socket.js+++ b/src/local_deep_research/web/static/js/services/socket.js@@ -864,7 +864,7 @@ if (!window.addConsoleLog) {// Create a log entry objectconst logEntry = {time: new Date().toISOString(),- message: message,+ message,type: level,metadata: metadata || { type: level }};diff --git a/src/local_deep_research/web/static/js/services/ui.js b/src/local_deep_research/web/static/js/services/ui.jsindex 766113717f..a1062db3b2 100644--- a/src/local_deep_research/web/static/js/services/ui.js+++ b/src/local_deep_research/web/static/js/services/ui.js@@ -244,7 +244,7 @@ function renderMarkdown(markdown) {headerIds: true,smartLists: true,smartypants: true,- highlight: function(code, language) {+ highlight(code, language) {// Use Prism for syntax highlighting if availableif (typeof Prism !== 'undefined' && Prism.languages[language]) {return Prism.highlight(code, Prism.languages[language], language);diff --git a/tests/api_tests_with_login/test_helpers.js b/tests/api_tests_with_login/test_helpers.jsindex f090ec0f80..e146860638 100644--- a/tests/api_tests_with_login/test_helpers.js+++ b/tests/api_tests_with_login/test_helpers.js@@ -102,7 +102,7 @@ function executeCurl(command) {} catch (error) {return {error: error.message,- command: command+ command};}}diff --git a/tests/puppeteer/test_deep_functionality.js b/tests/puppeteer/test_deep_functionality.jsindex d963ba00ff..c6984570a6 100644--- a/tests/puppeteer/test_deep_functionality.js+++ b/tests/puppeteer/test_deep_functionality.js@@ -503,8 +503,8 @@ describe('Deep Functionality Tests', function() {fs.mkdirSync(outputDir, { recursive: true });}const metadata = {- query: query,- researchId: researchId,+ query,+ researchId,timestamp: new Date().toISOString(),hasContent: resultContent && resultContent.length > 100,contentLength: resultContent ? resultContent.length : 0@@ -532,7 +532,7 @@ describe('Deep Functionality Tests', function() {const client = await page.target().createCDPSession();await client.send('Page.setDownloadBehavior', {behavior: 'allow',- downloadPath: downloadPath+ downloadPath});// Click export button@@ -1521,7 +1521,7 @@ describe('Deep Functionality Tests', function() {try {const res = await fetch('/news/api/subscriptions/current', { credentials: 'include' });const data = await res.json();- return { status: res.status, data: data };+ return { status: res.status, data };} catch (e) {return { error: e.message };}@@ -2769,7 +2769,7 @@ describe('Deep Functionality Tests', function() {try {const res = await fetch('/api/costs', { credentials: 'include' });const data = await res.json();- return { status: res.status, data: data };+ return { status: res.status, data };} catch (e) {return { error: e.message };}diff --git a/tests/ui_tests/NO_CI_executes_research_followup_simple.js b/tests/ui_tests/NO_CI_executes_research_followup_simple.jsindex e0f75d454d..cfb5a3c6fc 100755--- a/tests/ui_tests/NO_CI_executes_research_followup_simple.js+++ b/tests/ui_tests/NO_CI_executes_research_followup_simple.js@@ -82,7 +82,7 @@ async function testFollowupResearch() {const data = await response.json();return {status: response.status,- data: data+ data};} catch (error) {return {diff --git a/tests/ui_tests/NO_CI_executes_research_full_research_completion.js b/tests/ui_tests/NO_CI_executes_research_full_research_completion.jsindex e002caa758..3776815404 100644--- a/tests/ui_tests/NO_CI_executes_research_full_research_completion.js+++ b/tests/ui_tests/NO_CI_executes_research_full_research_completion.js@@ -104,7 +104,7 @@ async function testCompleteResearch() {status: response.status,statusText: response.statusText,headers: Object.fromEntries(response.headers.entries()),- data: data+ data};} catch (error) {console.error('Fetch error:', error);diff --git a/tests/ui_tests/NO_CI_executes_research_research_fixed_model.js b/tests/ui_tests/NO_CI_executes_research_research_fixed_model.jsindex cd33ae4d5d..ff1bbe0d40 100644--- a/tests/ui_tests/NO_CI_executes_research_research_fixed_model.js+++ b/tests/ui_tests/NO_CI_executes_research_research_fixed_model.js@@ -86,7 +86,7 @@ async function testResearchFixed() {ok: response.ok,status: response.status,statusText: response.statusText,- data: data+ data};} catch (error) {console.error('Request error:', error);diff --git a/tests/ui_tests/NO_CI_executes_research_research_working_config.js b/tests/ui_tests/NO_CI_executes_research_research_working_config.jsindex 487a6d8829..c1a748529c 100644--- a/tests/ui_tests/NO_CI_executes_research_research_working_config.js+++ b/tests/ui_tests/NO_CI_executes_research_research_working_config.js@@ -86,7 +86,7 @@ async function testResearchWorkingConfig() {return {ok: response.ok,status: response.status,- data: data+ data};} catch (error) {return { error: error.message };@@ -140,7 +140,7 @@ async function testResearchWorkingConfig() {hasProgress: !!progressEl,pageTitle: document.title,url: window.location.href,- hasLogText: hasLogText,+ hasLogText,bodyPreview: bodyText.substring(0, 200)};});diff --git a/tests/ui_tests/check_available_models.js b/tests/ui_tests/check_available_models.jsindex a50372dd72..17639d714c 100644--- a/tests/ui_tests/check_available_models.js+++ b/tests/ui_tests/check_available_models.js@@ -56,7 +56,7 @@ async function checkAvailableModels() {return {currentValue: select.value,- options: options+ options};});diff --git a/tests/ui_tests/check_test_status.js b/tests/ui_tests/check_test_status.jsindex bd9d49fc12..d2b917ae9d 100644--- a/tests/ui_tests/check_test_status.js+++ b/tests/ui_tests/check_test_status.js@@ -52,7 +52,7 @@ async function checkTest(testFile) {resolve({name: testFile,status: 'FAIL',- code: code,+ code,error: errorMsg});}diff --git a/tests/ui_tests/mobile/test_all_pages_mobile.js b/tests/ui_tests/mobile/test_all_pages_mobile.jsindex 674a43c196..a31298ead7 100755--- a/tests/ui_tests/mobile/test_all_pages_mobile.js+++ b/tests/ui_tests/mobile/test_all_pages_mobile.js@@ -298,7 +298,7 @@ class ComprehensiveMobileTest {status: 'passed',issues: [],warnings: [],- checks: checks,+ checks,duration: (Date.now() - startTime) / 1000,screenshot: screenshotName};diff --git a/tests/ui_tests/mobile/test_mobile_diagnostic.js b/tests/ui_tests/mobile/test_mobile_diagnostic.jsindex 4b89d42b3d..37fc853d71 100644--- a/tests/ui_tests/mobile/test_mobile_diagnostic.js+++ b/tests/ui_tests/mobile/test_mobile_diagnostic.js@@ -248,7 +248,7 @@ class MobileDiagnosticTool {exists: !!sidebar,visible: sidebarVisible},- issues: issues+ issues};});@@ -267,7 +267,7 @@ class MobileDiagnosticTool {page: pageInfo.name,path: pageInfo.path,screenshot: path.relative(this.outputDir, screenshotPath),- diagnostics: diagnostics+ diagnostics});const issueCount = diagnostics.issues.length;diff --git a/tests/ui_tests/mobile/test_mobile_fixes_verification.js b/tests/ui_tests/mobile/test_mobile_fixes_verification.jsindex 825614c551..68ed2ca132 100644--- a/tests/ui_tests/mobile/test_mobile_fixes_verification.js+++ b/tests/ui_tests/mobile/test_mobile_fixes_verification.js@@ -142,7 +142,7 @@ class MobileFixesTest {const result = {device: deviceName,page: pageInfo.name,- viewport: viewport,+ viewport,issues: [],screenshot: null};diff --git a/tests/ui_tests/mobile/test_mobile_ui_comprehensive.js b/tests/ui_tests/mobile/test_mobile_ui_comprehensive.jsindex d27e8624a9..8c333f0886 100644--- a/tests/ui_tests/mobile/test_mobile_ui_comprehensive.js+++ b/tests/ui_tests/mobile/test_mobile_ui_comprehensive.js@@ -237,7 +237,7 @@ class MobileUITester {if (zIndex < 1000) {tests.modals.zIndexIssues.push({class: modal.className,- zIndex: zIndex+ zIndex});}}@@ -257,7 +257,7 @@ class MobileUITester {if (fontSize < 12) {tests.text.tooSmall.push({tag: elem.tagName,- fontSize: fontSize,+ fontSize,text: elem.textContent.substring(0, 30)});}diff --git a/tests/ui_tests/playwright/tests/mobile-ui-audit.spec.js b/tests/ui_tests/playwright/tests/mobile-ui-audit.spec.jsindex 0244a77b9f..64d2c83dd6 100644--- a/tests/ui_tests/playwright/tests/mobile-ui-audit.spec.js+++ b/tests/ui_tests/playwright/tests/mobile-ui-audit.spec.js@@ -397,7 +397,7 @@ test.describe('Mobile UI Audit - Specific Elements', () => {const rect = input.getBoundingClientRect();const label = item.querySelector('label, .ldr-setting-label');info.sampleSettings.push({- type: type,+ type,size: `${Math.round(rect.width)}x${Math.round(rect.height)}`,label: label?.textContent.trim().slice(0, 30) || 'No label',});@@ -576,7 +576,7 @@ test.describe('Mobile UI Audit - Navigation', () => {bottom: style.bottom,size: `${Math.round(rect.width)}x${Math.round(rect.height)}`,location: `y=${Math.round(rect.y)}`,- items: items,+ items,};});diff --git a/tests/ui_tests/playwright/tests/mobile-ui-issues.spec.js b/tests/ui_tests/playwright/tests/mobile-ui-issues.spec.jsindex a0cb274080..f0988c16a7 100644--- a/tests/ui_tests/playwright/tests/mobile-ui-issues.spec.js+++ b/tests/ui_tests/playwright/tests/mobile-ui-issues.spec.js@@ -473,7 +473,7 @@ test.describe('Mobile - Text Readability', () => {small.push({tag: el.tagName.toLowerCase(),text: el.textContent.trim().slice(0, 30),- fontSize: fontSize,+ fontSize,});}}diff --git a/tests/ui_tests/run_all_tests_comprehensive.js b/tests/ui_tests/run_all_tests_comprehensive.jsindex 1a3359f5c7..cd4f0583b1 100644--- a/tests/ui_tests/run_all_tests_comprehensive.js+++ b/tests/ui_tests/run_all_tests_comprehensive.js@@ -143,7 +143,7 @@ async function runTest(testFile) {results.details.push({name: testFile,status: 'passed',- duration: duration+ duration});} else if (code !== null) {log(`❌ Test failed with code ${code} (${duration}s)`, 'error');@@ -151,8 +151,8 @@ async function runTest(testFile) {results.details.push({name: testFile,status: 'failed',- duration: duration,- code: code,+ duration,+ code,output: output.substring(0, 500),error: errorOutput.substring(0, 500)});diff --git a/tests/ui_tests/run_all_ui_tests.js b/tests/ui_tests/run_all_ui_tests.jsindex 80f05c4750..d2736109cb 100644--- a/tests/ui_tests/run_all_ui_tests.js+++ b/tests/ui_tests/run_all_ui_tests.js@@ -133,8 +133,8 @@ async function runTest(testFile) {results.details.push({name: testFile,status: 'passed',- duration: duration,- output: output+ duration,+ output});} else {log(`❌ Test failed with code ${code} (${duration}s)`, 'error');@@ -142,9 +142,9 @@ async function runTest(testFile) {results.details.push({name: testFile,status: 'failed',- duration: duration,- code: code,- output: output,+ duration,+ code,+ output,error: errorOutput});}diff --git a/tests/ui_tests/run_core_tests.js b/tests/ui_tests/run_core_tests.jsindex 111c23a418..6e527d6ef6 100644--- a/tests/ui_tests/run_core_tests.js+++ b/tests/ui_tests/run_core_tests.js@@ -93,7 +93,7 @@ async function runTest(testFile) {results.details.push({name: testFile,status: 'passed',- duration: duration+ duration});} else {log(`\n❌ ${testFile} failed with code ${code} (${duration}s)`, 'error');@@ -104,8 +104,8 @@ async function runTest(testFile) {results.details.push({name: testFile,status: 'failed',- duration: duration,- code: code+ duration,+ code});}diff --git a/tests/ui_tests/test_api_key_comprehensive.js b/tests/ui_tests/test_api_key_comprehensive.jsindex 07bda117c4..d2fd1cacec 100644--- a/tests/ui_tests/test_api_key_comprehensive.js+++ b/tests/ui_tests/test_api_key_comprehensive.js@@ -83,7 +83,7 @@ async function runComprehensiveApiKeyTest() {if (url.includes('/api/settings') || url.includes('/auth/')) {apiCalls.push({method: request.method(),- url: url,+ url,timestamp: new Date().toISOString()});}diff --git a/tests/ui_tests/test_api_key_integrated.js b/tests/ui_tests/test_api_key_integrated.jsindex 1ddf4bd5a9..9b1cd485b7 100644--- a/tests/ui_tests/test_api_key_integrated.js+++ b/tests/ui_tests/test_api_key_integrated.js@@ -186,9 +186,9 @@ async function getCSRFToken(page) {// Update the settingconst updateResponse = await fetch(`/settings/api/${key}`, {method: 'PUT',- headers: headers,+ headers,credentials: 'same-origin',- body: JSON.stringify({ value: value })+ body: JSON.stringify({ value })});return {diff --git a/tests/ui_tests/test_check_search_engines.js b/tests/ui_tests/test_check_search_engines.jsindex 139499843d..7948cc27e8 100644--- a/tests/ui_tests/test_check_search_engines.js+++ b/tests/ui_tests/test_check_search_engines.js@@ -57,7 +57,7 @@ async function checkSearchEngines() {return {currentValue: select.value,- options: options+ options};});diff --git a/tests/ui_tests/test_check_user_database.js b/tests/ui_tests/test_check_user_database.jsindex ce5df34eaf..1368659900 100644--- a/tests/ui_tests/test_check_user_database.js+++ b/tests/ui_tests/test_check_user_database.js@@ -81,13 +81,13 @@ async function checkUserDatabase() {try {data = JSON.parse(text);} catch {- data = { parseError: true, text: text };+ data = { parseError: true, text };}return {status: response.status,statusText: response.statusText,- data: data+ data};} catch (error) {return { error: error.message };diff --git a/tests/ui_tests/test_context_overflow.js b/tests/ui_tests/test_context_overflow.jsindex ff6c211c4f..486e7dd367 100644--- a/tests/ui_tests/test_context_overflow.js+++ b/tests/ui_tests/test_context_overflow.js@@ -233,7 +233,7 @@ describe('Context Overflow Dashboard Tests', () => {return {status: res.status,ok: res.ok,- data: data+ data};} catch (error) {return {diff --git a/tests/ui_tests/test_context_overflow_standalone.js b/tests/ui_tests/test_context_overflow_standalone.jsindex 1f0990fa17..a1ef5f3e94 100644--- a/tests/ui_tests/test_context_overflow_standalone.js+++ b/tests/ui_tests/test_context_overflow_standalone.js@@ -193,7 +193,7 @@ async function testContextOverflow() {status: res.status,ok: res.ok,headers: Object.fromEntries(res.headers.entries()),- data: data+ data};} catch (error) {return {diff --git a/tests/ui_tests/test_cost_analytics.js b/tests/ui_tests/test_cost_analytics.jsindex dc482d7ddf..a62abfb1a8 100644--- a/tests/ui_tests/test_cost_analytics.js+++ b/tests/ui_tests/test_cost_analytics.js@@ -39,7 +39,7 @@ async function testCostAnalytics() {try {const responseText = await response.text();results.apiResponses[url] = {- status: status,+ status,response: responseText.substring(0, 500) // First 500 chars};console.log(`📊 API Response for ${url}:`, responseText.substring(0, 200));@@ -115,7 +115,7 @@ async function testCostAnalytics() {try {const response = await fetch('/metrics/api/cost-analytics?period=7d');const data = await response.json();- return { success: true, status: response.status, data: data };+ return { success: true, status: response.status, data };} catch (error) {return { success: false, error: error.message };}diff --git a/tests/ui_tests/test_export_functionality.js b/tests/ui_tests/test_export_functionality.jsindex 252e337afc..0ae46710ea 100644--- a/tests/ui_tests/test_export_functionality.js+++ b/tests/ui_tests/test_export_functionality.js@@ -261,7 +261,7 @@ async function testExportFunctionality() {const client = await page.createCDPSession();await client.send('Page.setDownloadBehavior', {behavior: 'allow',- downloadPath: downloadPath+ downloadPath});// Set console log handlerdiff --git a/tests/ui_tests/test_metrics_dashboard.js b/tests/ui_tests/test_metrics_dashboard.jsindex 7fd1b5fcd7..c23c3fa15e 100644--- a/tests/ui_tests/test_metrics_dashboard.js+++ b/tests/ui_tests/test_metrics_dashboard.js@@ -107,7 +107,7 @@ async function testMetricsDashboard() {const url = request.url();if (url.includes('/api/metrics') || url.includes('/api/')) {apiCalls.push({- url: url,+ url,method: request.method(),timestamp: new Date().toISOString()});diff --git a/tests/ui_tests/test_metrics_with_llm.js b/tests/ui_tests/test_metrics_with_llm.jsindex 6fb8b2912e..9cc674b81e 100644--- a/tests/ui_tests/test_metrics_with_llm.js+++ b/tests/ui_tests/test_metrics_with_llm.js@@ -235,7 +235,7 @@ const { setupDefaultModel } = require('./model_helper');const firstRow = table.querySelector('tbody tr');const firstRowData = firstRow ? Array.from(firstRow.querySelectorAll('td')).map(td => td.textContent.trim()) : [];return {- headers: headers,+ headers,firstRow: firstRowData,rowCount: table.querySelectorAll('tbody tr').length};diff --git a/tests/ui_tests/test_news_breaking_table.js b/tests/ui_tests/test_news_breaking_table.jsindex f85c3eb48d..693c475139 100644--- a/tests/ui_tests/test_news_breaking_table.js+++ b/tests/ui_tests/test_news_breaking_table.js@@ -250,7 +250,7 @@ async function testNewsBreakingTable() {const rows = table.querySelectorAll('tbody tr').length;return {- headers: headers,+ headers,rowCount: rows};});diff --git a/tests/ui_tests/test_rate_limiting_settings.js b/tests/ui_tests/test_rate_limiting_settings.jsindex 16aedbf136..e4a59df5d8 100644--- a/tests/ui_tests/test_rate_limiting_settings.js+++ b/tests/ui_tests/test_rate_limiting_settings.js@@ -163,7 +163,7 @@ async function testRateLimiting() {const body = await res.json();return {status: res.status,- body: body+ body};}, baseUrl);diff --git a/tests/ui_tests/test_research_results.js b/tests/ui_tests/test_research_results.jsindex 184826711f..c75b768e92 100644--- a/tests/ui_tests/test_research_results.js+++ b/tests/ui_tests/test_research_results.js@@ -89,11 +89,11 @@ async function testResearchResults() {}return {- title: title,+ title,hasBody: !!body,bodyVisible: body ? window.getComputedStyle(body).display !== 'none' : false,hasErrorHandling: errorElements.length > 0 || document.body.textContent.includes('not found') || document.body.textContent.includes('404'),- errorMessage: errorMessage,+ errorMessage,hasLoadingIndicators: loadingElements.length > 0,hasPageStructure: !!pageStructure,hasSidebar: !!sidebar,diff --git a/tests/ui_tests/test_research_simple.js b/tests/ui_tests/test_research_simple.jsindex b3efa2d2e2..c7edb924e3 100644--- a/tests/ui_tests/test_research_simple.js+++ b/tests/ui_tests/test_research_simple.js@@ -147,7 +147,7 @@ async function testSimpleResearch() {return {url: window.location.href,- alerts: alerts,+ alerts,queryValue: document.querySelector('#query')?.value || ''};});diff --git a/tests/ui_tests/test_research_status.js b/tests/ui_tests/test_research_status.jsindex 5c6e441ce7..aea3c7df11 100644--- a/tests/ui_tests/test_research_status.js+++ b/tests/ui_tests/test_research_status.js@@ -57,13 +57,13 @@ async function testResearchStatus() {try {const response = await fetch(url);return {- url: url,+ url,status: response.status,ok: response.ok,data: response.ok ? await response.json() : null};} catch (e) {- return { url: url, error: e.message };+ return { url, error: e.message };}}, endpoint);diff --git a/tests/ui_tests/test_research_verify.js b/tests/ui_tests/test_research_verify.jsindex 38706ee2b5..13e6763cd4 100644--- a/tests/ui_tests/test_research_verify.js+++ b/tests/ui_tests/test_research_verify.js@@ -69,7 +69,7 @@ async function testResearchVerify() {return {success: response.ok,status: response.status,- data: data+ data};} catch (error) {return { success: false, error: error.message };diff --git a/tests/ui_tests/test_settings_simple.js b/tests/ui_tests/test_settings_simple.jsindex 6c3999c6bf..500017c874 100644--- a/tests/ui_tests/test_settings_simple.js+++ b/tests/ui_tests/test_settings_simple.js@@ -23,7 +23,7 @@ const { getPuppeteerLaunchOptions } = require('./puppeteer_config');if (url.includes('/settings/api/') && request.method() === 'PUT') {apiCalls.push({method: request.method(),- url: url,+ url,body: request.postData()});console.log(`API ${request.method()}: ${url}`);diff --git a/tests/ui_tests/test_simple_cost.js b/tests/ui_tests/test_simple_cost.jsindex 0aa994309a..f410693bc8 100644--- a/tests/ui_tests/test_simple_cost.js+++ b/tests/ui_tests/test_simple_cost.js@@ -93,7 +93,7 @@ const { getPuppeteerLaunchOptions } = require('./puppeteer_config');console.log('Status is not success:', data.status);}- return { success: true, data: data };+ return { success: true, data };} catch (error) {console.error('Manual API test failed:', error);return { success: false, error: error.message };