Skip to content

Commit 2fe30b7

Browse files
author
Flamehaven CI
committed
docs: v1.5.1 changelog, readme, architecture sanity pass
- CHANGELOG: add [1.5.1] section (dead code removal, complexity fixes, 360 tests) - README: v1.5.1 badge, What's New in v1.5.1 patch section, test count 331->360 - Architecture.md: version v1.5.0->v1.5.1, test count 331->360, v1.5.1 feature line - pyproject.toml + __init__.py: version 1.5.0 -> 1.5.1
1 parent c3e20e1 commit 2fe30b7

5 files changed

Lines changed: 53 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
---
99

10+
## [1.5.1] - 2026-04-18
11+
12+
### Removed
13+
14+
- **`engine/embedding_generator_legacy.py`**: Deleted. Identical API surface and
15+
100% function overlap with `embedding_generator.py`; the file was never imported
16+
by production code and represented 306 lines of dead duplicate code.
17+
18+
### Refactored
19+
20+
- **`engine/text_chunker.py`**: Extracted `_split_section()` and `_make_chunk()`
21+
helpers from `chunk_text()` to reduce nesting depth and cyclomatic complexity.
22+
23+
- **`engine/file_parser.py`**: Extracted `_extract_table_rows()` from
24+
`_extract_pptx()` (nesting depth 5 → 3); split bare `except` clauses in
25+
`_extract_doc()` into typed `FileNotFoundError` / `subprocess.TimeoutExpired`
26+
handlers with proper log messages.
27+
28+
- **`engine/gravitas_pack.py`**: Extracted `_estimate_field_reduction()` from
29+
`estimate_compression_ratio()` to eliminate nested for-loops.
30+
31+
- **`engine/chronos_grid.py`**: Extracted `_upsert_vector()` from
32+
`inject_essence()` to collapse 4-level nesting.
33+
34+
- **`usage_middleware.py`**: Extracted `_collect_exceeded_quotas()` module-level
35+
helper to flatten nested loop inside `dispatch()`.
36+
37+
- **`api.py`**: Extracted `_save_upload_file()` from `upload_multiple_files()`
38+
to resolve critical nested_complexity (depth=4 + high cyclomatic complexity).
39+
40+
### Tests
41+
42+
- 360 tests pass (13 skipped) — 29 more than v1.5.0 (360 vs 331).
43+
- AI-Slop-Detector: **CLEAN** | critical deficits 7 → 0 | avg deficit score
44+
13.46 → 11.25.
45+
- ruff: no issues.
46+
47+
---
48+
1049
## [1.5.0] - 2026-04-16
1150

1251
### Added

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
### Self-hosted RAG search engine. Production-ready in 3 minutes.
88

99
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
10-
[![Version](https://img.shields.io/badge/version-1.5.0-blue.svg)](CHANGELOG.md)
10+
[![Version](https://img.shields.io/badge/version-1.5.1-blue.svg)](CHANGELOG.md)
1111
[![Python](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/)
1212
[![Docker](https://img.shields.io/badge/docker-ready-brightgreen.svg)](https://hub.docker.com/r/flamehaven/filesearch)
1313

@@ -60,6 +60,12 @@ Open source & MIT licensed</p>
6060
- **⚡ Ultra-Fast Vectors** - DSP v2.0 algorithm generates embeddings in <1ms without ML frameworks
6161
- **🎯 Source Attribution** - Every answer includes links back to source documents
6262

63+
### What's New in v1.5.1 (patch)
64+
65+
- **Dead code removed**`embedding_generator_legacy.py` deleted (306-line duplicate, unused)
66+
- **Code quality** — Critical nested_complexity eliminated in 6 files; avg slop-detector score 13.46 → 11.25
67+
- **Test suite expanded** — 360 tests (was 331); AI-Slop-Detector critical deficits 7 → 0
68+
6369
### What's New in v1.5.0
6470

6571
- **Universal Document Parser** — 34 file formats, zero external document-AI dependency
@@ -290,7 +296,7 @@ security:
290296
</tr>
291297
<tr>
292298
<td>Test Suite</td>
293-
<td><code>331 tests</code></td>
299+
<td><code>360 tests</code></td>
294300
<td>All passing (pytest)</td>
295301
</tr>
296302
<tr>
@@ -479,7 +485,7 @@ Use the links below to jump to the most relevant guide.
479485
| [Document Parsing](docs/wiki/Document_Parsing.md) | Supported formats, internal parsers, RAG chunking |
480486
| [Framework Integrations](docs/wiki/Framework_Integrations.md) | LangChain, LlamaIndex, Haystack, CrewAI adapters |
481487
| [API Reference](docs/wiki/API_Reference.md) | REST endpoints, payloads, rate limits |
482-
| [Architecture](docs/wiki/Architecture.md) | How all layers fit together (v1.5.0) |
488+
| [Architecture](docs/wiki/Architecture.md) | How all layers fit together (v1.5.1) |
483489
| [Configuration Reference](docs/wiki/Configuration.md) | Full list of environment variables and config fields |
484490
| [Production Deployment](docs/wiki/Production_Deployment.md) | Docker, systemd, reverse proxy, scaling tips |
485491
| [Troubleshooting](docs/wiki/Troubleshooting.md) | Step-by-step debugging playbook |

docs/wiki/Architecture.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# Architecture Overview
22

33
Flamehaven FileSearch balances simplicity with production-grade safeguards. This
4-
document describes the moving parts as of **v1.5.0**, featuring:
4+
document describes the moving parts as of **v1.5.1**, featuring:
55
- **Gravitas DSP Engine** (v1.3.1+)
66
- **Multimodal Search** (v1.4.0+)
77
- **pgvector with HNSW** (v1.4.0+)
88
- **Circuit Breaker & Health Checks** (v1.4.1+)
99
- **ABC base classes, ruff CI, Windows filename fix** (v1.4.2)
1010
- **Universal Document Parser, Internal Chunker, Framework Integrations** (v1.5.0)
11+
- **Dead code removal, critical complexity fixes, 360-test suite** (v1.5.1)
1112

1213
---
1314

@@ -84,7 +85,7 @@ The new **Chronos-Grid** integration handles high-speed vector storage and simil
8485

8586
## 6. Testing & Quality (v1.4.2)
8687

87-
- **Test Framework**: `pytest`331 tests collected, all passing.
88+
- **Test Framework**: `pytest`360 tests collected, all passing.
8889
- **Lint**: `black` (format) + `ruff` (lint/unused imports) — both enforced in CI.
8990
- **Validation**: `validators.py` enforces security policies (Filename 200-char max, FileSize, SearchQuery XSS/SQLi checks).
9091
- **SIDRCE Certification**: Omega 0.9894 (S++) — AI-Slop-Detector P0-P5 clean.

flamehaven_filesearch/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Fast, simple, and transparent file search for developers
77
"""
88

9-
__version__ = "1.5.0"
9+
__version__ = "1.5.1"
1010
__author__ = "FLAMEHAVEN"
1111
__license__ = "MIT"
1212

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "flamehaven-filesearch"
7-
version = "1.5.0"
7+
version = "1.5.1"
88
description = "FLAMEHAVEN FileSearch - Open source semantic document search with API authentication powered by Google Gemini"
99
readme = "README.md"
1010
requires-python = ">=3.8"

0 commit comments

Comments
 (0)