Skip to content

~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.

fix: restore incorrectly reverted files from dev branch

LearningCircuit7514fe820b54
diff --git a/.github/workflows/ossf-scorecard.yml b/.github/workflows/ossf-scorecard.yml
index a8ecf92343..8cc3fad2dd 100644
--- a/.github/workflows/ossf-scorecard.yml
+++ b/.github/workflows/ossf-scorecard.yml
@@ -41,7 +41,7 @@ jobs:
results_file: results.sarif
results_format: sarif
# Publish results to enable scorecard badges
- publish_results: false
+ publish_results: true
- name: Upload OSSF Scorecard results to GitHub Security
uses: github/codeql-action/upload-sarif@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # v4.31.4
@@ -54,4 +54,4 @@ jobs:
with:
name: ossf-scorecard-results
path: results.sarif
- retention-days: 90
+ retention-days: 7 # Reduced for security
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 215338379d..26dad79723 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -3,6 +3,8 @@ name: Publish to PyPI
on:
release:
types: [created]
+ repository_dispatch:
+ types: [publish-pypi]
permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissions
@@ -409,9 +411,16 @@ jobs:
echo "=== 🚀 Ready to Publish ==="
echo ""
echo "📦 Package Information:"
- echo " - Release type: ${{ github.event.release.prerelease && 'Pre-release (Test PyPI)' || 'Production (PyPI)' }}"
- echo " - Tag: ${{ github.event.release.tag_name }}"
- echo " - Release name: ${{ github.event.release.name }}"
+ # Handle both release event and repository_dispatch
+ if [ "${{ github.event_name }}" = "repository_dispatch" ]; then
+ echo " - Trigger: repository_dispatch"
+ echo " - Tag: ${{ github.event.client_payload.tag }}"
+ echo " - Prerelease: ${{ github.event.client_payload.prerelease }}"
+ else
+ echo " - Trigger: release"
+ echo " - Tag: ${{ github.event.release.tag_name }}"
+ echo " - Prerelease: ${{ github.event.release.prerelease }}"
+ fi
echo ""
echo "📁 Package files to publish:"
ls -lh dist/
@@ -419,11 +428,11 @@ jobs:
echo "✅ All checks passed - proceeding with publication"
- name: Publish to Test PyPI
- if: github.event.release.prerelease == true
+ if: (github.event_name == 'release' && github.event.release.prerelease == true) || (github.event_name == 'repository_dispatch' && github.event.client_payload.prerelease == true)
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
with:
repository-url: https://test.pypi.org/legacy/
- name: Publish to PyPI
- if: github.event.release.prerelease == false
+ if: (github.event_name == 'release' && github.event.release.prerelease != true) || (github.event_name == 'repository_dispatch' && github.event.client_payload.prerelease != true)
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
diff --git a/.github/workflows/sync-main-to-dev.yml b/.github/workflows/sync-main-to-dev.yml
index 308274b332..8a916bd564 100644
--- a/.github/workflows/sync-main-to-dev.yml
+++ b/.github/workflows/sync-main-to-dev.yml
@@ -6,6 +6,9 @@ on:
- main
workflow_dispatch:
+permissions:
+ contents: read # Restrict top-level, jobs can escalate as needed
+
jobs:
sync-main-to-dev:
runs-on: ubuntu-latest
diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml
index 628d6a80df..87f42197bf 100644
--- a/.github/workflows/ui-tests.yml
+++ b/.github/workflows/ui-tests.yml
@@ -62,15 +62,16 @@ jobs:
- name: Setup test directories
run: |
- mkdir -p data
+ mkdir -p data/encrypted_databases
mkdir -p tests/ui_tests/screenshots
echo "Created data and screenshots directories for tests"
- name: Start application server
run: |
export LDR_USE_FALLBACK_LLM=true
+ export LDR_DATA_DIR=$PWD/data
export PYTHONPATH=$PWD/src:$PYTHONPATH
- echo "Starting web server..."
+ echo "Starting web server with LDR_DATA_DIR=$LDR_DATA_DIR"
pdm run python -m local_deep_research.web.app 2>&1 | tee server.log &
echo $! > server.pid
diff --git a/.github/workflows/version_check.yml b/.github/workflows/version_check.yml
index 0f86551a18..0da6b0e2c2 100644
--- a/.github/workflows/version_check.yml
+++ b/.github/workflows/version_check.yml
@@ -18,12 +18,15 @@ on:
workflow_dispatch: # Manual trigger for edge cases
permissions:
- contents: write
- pull-requests: write
+ contents: read # Restrict top-level, job escalates as needed
+ pull-requests: read
jobs:
version-check:
runs-on: ubuntu-latest
+ permissions:
+ contents: write # Required for pushing version bump
+ pull-requests: write # Required for PR comments
steps:
- name: Checkout code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
diff --git a/package.json b/package.json
index 38951667bf..fbfd38e5a4 100644
--- a/package.json
+++ b/package.json
@@ -1,34 +1,40 @@
{
- "name": "local-deep-research-web",
- "version": "1.0.0",
- "description": "Web frontend for Local Deep Research",
- "private": true,
- "type": "module",
- "scripts": {
- "dev": "vite",
- "build": "vite build",
- "preview": "vite preview",
- "update": "npm update",
- "audit": "npm audit",
- "audit-fix": "npm audit fix"
- },
- "dependencies": {
- "@fortawesome/fontawesome-free": "^7.0.0",
- "bootstrap": "^5.3.0",
- "bootstrap-icons": "^1.11.0",
- "chart.js": "^4.4.0",
- "chartjs-adapter-date-fns": "^3.0.0",
- "chartjs-plugin-annotation": "^3.0.0",
- "date-fns": "^4.1.0",
- "dompurify": "^3.2.2",
- "highlight.js": "^11.9.0",
- "html2canvas": "^1.4.1",
- "jspdf": "^3.0.2",
- "marked": "^16.2.1",
- "socket.io-client": "^4.6.0"
- },
- "devDependencies": {
- "axe-core": "^4.8.0",
- "vite": "^7.1.3"
- }
+ "name": "local-deep-research-web",
+ "version": "1.0.0",
+ "description": "Web frontend for Local Deep Research",
+ "private": true,
+ "type": "module",
+ "engines": {
+ "node": ">=20.0.0"
+ },
+ "scripts": {
+ "dev": "vite",
+ "build": "vite build",
+ "preview": "vite preview",
+ "update": "npm update",
+ "audit": "npm audit",
+ "audit-fix": "npm audit fix",
+ "security-check": "npm audit && npm outdated",
+ "preinstall": "npm audit --audit-level=high",
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "dependencies": {
+ "@fortawesome/fontawesome-free": "^7.0.0",
+ "bootstrap": "^5.3.3",
+ "bootstrap-icons": "^1.11.3",
+ "chart.js": "^4.4.6",
+ "chartjs-adapter-date-fns": "^3.0.0",
+ "chartjs-plugin-annotation": "^3.0.1",
+ "date-fns": "^4.1.0",
+ "dompurify": "^3.3.0",
+ "highlight.js": "^11.10.0",
+ "html2canvas": "^1.4.1",
+ "jspdf": "^3.0.2",
+ "marked": "^17.0.0",
+ "socket.io-client": "^4.8.1"
+ },
+ "devDependencies": {
+ "axe-core": "^4.8.0",
+ "vite": "^7.1.3"
+ }
}
diff --git a/src/local_deep_research/__version__.py b/src/local_deep_research/__version__.py
index 3feb6d069d..67bc602abf 100644
--- a/src/local_deep_research/__version__.py
+++ b/src/local_deep_research/__version__.py
@@ -1 +1 @@
-__version__ = "1.2.19"
+__version__ = "1.3.0"