Skip to content

Commit ded5e8d

Browse files
committed
v0.6.1: Accelerate code search with ripgrep (5x faster grep)
1 parent cfaaf7b commit ded5e8d

89 files changed

Lines changed: 4035 additions & 11270 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ __pycache__/
1515
*.db
1616

1717
# ── Internal analysis (not part of the app) ──
18-
analysis_scripts/
18+
/analysis_scripts/
19+
/sundries/
20+
/tools/
21+
22+
# ── Test coverage ──
23+
.coverage
1924

2025
# ── Debug artifacts (developer-only, may contain API endpoints/keys) ──
2126
debug/benchmark_results.json
@@ -45,6 +50,10 @@ Thumbs.db
4550
**/.project_indexes/
4651
.chatui/
4752

53+
# ── Sensitive reports (moved to docs/ but should not be published) ──
54+
docs/SECURITY_AUDIT_REPORT.md
55+
docs/RATE_LIMITING_DOS_AUDIT_REPORT.md
56+
4857
# ── Uploads ──
4958
uploads/images/*
5059
!uploads/images/.gitkeep

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FROM python:3.12-slim AS base
1313

1414
# ── System dependencies ─────────────────────────────────────
1515
RUN apt-get update && apt-get install -y --no-install-recommends \
16-
# PostgreSQL 16 (Debian bookworm default — fully compatible)
16+
# PostgreSQL (Debian bookworm ships v16 — compatible with PG 18+ protocol)
1717
postgresql-16 \
1818
postgresql-client-16 \
1919
# Build tools for compiled Python packages
@@ -23,6 +23,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2323
libcups2 libdrm2 libxkbcommon0 libxcomposite1 \
2424
libxdamage1 libxrandr2 libgbm1 libpango-1.0-0 \
2525
libcairo2 libasound2 libxshmfence1 \
26+
# Fast code search (ripgrep — 5x faster grep for project tools)
27+
ripgrep \
2628
# General utilities
2729
curl ca-certificates git \
2830
&& rm -rf /var/lib/apt/lists/*

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Open **http://localhost:15000** — done. All data persists in Docker volumes.
170170
<details>
171171
<summary>Step-by-step for full control</summary>
172172

173-
**Prerequisites:** Python 3.10+, PostgreSQL 16+
173+
**Prerequisites:** Python 3.10+, PostgreSQL 18+, ripgrep (recommended)
174174

175175
```bash
176176
git clone https://github.com/rangehow/ToFu.git
@@ -181,10 +181,16 @@ python -m venv .venv && source .venv/bin/activate # Standard venv
181181
# OR: conda create -n tofu python=3.12 -y && conda activate tofu
182182

183183
# Install PostgreSQL (if not already installed)
184-
# macOS: brew install postgresql@16
184+
# macOS: brew install postgresql@18
185185
# Ubuntu: sudo apt install postgresql
186186
# Windows: https://www.postgresql.org/download/windows/
187-
# conda: conda install -c conda-forge postgresql>=16
187+
# conda: conda install -c conda-forge postgresql>=18
188+
189+
# Install ripgrep (recommended — 5x faster code search)
190+
# macOS: brew install ripgrep
191+
# Ubuntu: sudo apt install ripgrep
192+
# Windows: winget install BurntSushi.ripgrep.MSVC
193+
# conda: conda install -c conda-forge ripgrep
188194

189195
# Install Python dependencies
190196
pip install -r requirements.txt

README_CN.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ docker run -d -p 15000:15000 -v tofu-data:/app/data --name tofu ghcr.io/rangehow
166166
<details>
167167
<summary>逐步操作,完全控制</summary>
168168

169-
**前提条件:** Python 3.10+,PostgreSQL 16+
169+
**前提条件:** Python 3.10+,PostgreSQL 18+,ripgrep(推荐)
170170

171171
```bash
172172
git clone https://github.com/rangehow/ToFu.git
@@ -177,10 +177,16 @@ python -m venv .venv && source .venv/bin/activate # 标准 venv
177177
# 或者: conda create -n tofu python=3.12 -y && conda activate tofu
178178

179179
# 安装 PostgreSQL(如尚未安装)
180-
# macOS: brew install postgresql@16
180+
# macOS: brew install postgresql@18
181181
# Ubuntu: sudo apt install postgresql
182182
# Windows: https://www.postgresql.org/download/windows/
183-
# conda: conda install -c conda-forge postgresql>=16
183+
# conda: conda install -c conda-forge postgresql>=18
184+
185+
# 安装 ripgrep(推荐 — 代码搜索速度提升 5 倍)
186+
# macOS: brew install ripgrep
187+
# Ubuntu: sudo apt install ripgrep
188+
# Windows: winget install BurntSushi.ripgrep.MSVC
189+
# conda: conda install -c conda-forge ripgrep
184190

185191
# 安装 Python 依赖
186192
pip install -r requirements.txt

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.6.0
1+
0.6.1

0 commit comments

Comments
 (0)