Fix info and history commands crashing on read-only filesystems
This commit is contained in:
parent
0c270ba42f
commit
32813e7610
6 changed files with 30 additions and 10 deletions
|
|
@ -1,6 +1,12 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.30.3] - 2026-02-20
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- **`info` and `history` commands**: Open database in read-only mode to prevent write failures on read-only filesystems
|
||||||
|
|
||||||
## [0.30.2] - 2026-02-19
|
## [0.30.2] - 2026-02-19
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
@ -1101,7 +1107,8 @@ Existing documents without DoclingDocument data will work but won't have provena
|
||||||
|
|
||||||
- Initial version tracking
|
- Initial version tracking
|
||||||
|
|
||||||
[Unreleased]: https://github.com/ggozad/haiku.rag/compare/0.30.2...HEAD
|
[Unreleased]: https://github.com/ggozad/haiku.rag/compare/0.30.3...HEAD
|
||||||
|
[0.30.3]: https://github.com/ggozad/haiku.rag/compare/0.30.2...0.30.3
|
||||||
[0.30.2]: https://github.com/ggozad/haiku.rag/compare/0.30.1...0.30.2
|
[0.30.2]: https://github.com/ggozad/haiku.rag/compare/0.30.1...0.30.2
|
||||||
[0.30.1]: https://github.com/ggozad/haiku.rag/compare/0.30.0...0.30.1
|
[0.30.1]: https://github.com/ggozad/haiku.rag/compare/0.30.0...0.30.1
|
||||||
[0.30.0]: https://github.com/ggozad/haiku.rag/compare/0.29.1...0.30.0
|
[0.30.0]: https://github.com/ggozad/haiku.rag/compare/0.29.1...0.30.0
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
name = "haiku.rag-evals"
|
name = "haiku.rag-evals"
|
||||||
description = "Benchmarking and evaluation scripts for haiku.rag"
|
description = "Benchmarking and evaluation scripts for haiku.rag"
|
||||||
version = "0.30.2"
|
version = "0.30.3"
|
||||||
authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }]
|
authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }]
|
||||||
license = { text = "MIT" }
|
license = { text = "MIT" }
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
|
|
|
||||||
|
|
@ -83,10 +83,16 @@ class HaikuRAGApp: # pragma: no cover
|
||||||
|
|
||||||
versions = get_package_versions()
|
versions = get_package_versions()
|
||||||
|
|
||||||
# Get comprehensive table statistics (this also runs migrations)
|
|
||||||
from haiku.rag.store.engine import Store
|
from haiku.rag.store.engine import Store
|
||||||
|
|
||||||
store = Store(self.db_path, config=self.config, skip_validation=True)
|
store = Store(
|
||||||
|
self.db_path,
|
||||||
|
config=self.config,
|
||||||
|
skip_validation=True,
|
||||||
|
read_only=True,
|
||||||
|
skip_migration_check=True,
|
||||||
|
before=self.before,
|
||||||
|
)
|
||||||
table_stats = store.get_stats()
|
table_stats = store.get_stats()
|
||||||
|
|
||||||
# Read settings after Store init (migrations have run)
|
# Read settings after Store init (migrations have run)
|
||||||
|
|
@ -202,7 +208,14 @@ class HaikuRAGApp: # pragma: no cover
|
||||||
self.console.print("[red]Database path does not exist.[/red]")
|
self.console.print("[red]Database path does not exist.[/red]")
|
||||||
return
|
return
|
||||||
|
|
||||||
store = Store(self.db_path, config=self.config, skip_validation=True)
|
store = Store(
|
||||||
|
self.db_path,
|
||||||
|
config=self.config,
|
||||||
|
skip_validation=True,
|
||||||
|
read_only=True,
|
||||||
|
skip_migration_check=True,
|
||||||
|
before=self.before,
|
||||||
|
)
|
||||||
|
|
||||||
tables = ["documents", "chunks", "settings"]
|
tables = ["documents", "chunks", "settings"]
|
||||||
if table:
|
if table:
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
name = "haiku.rag-slim"
|
name = "haiku.rag-slim"
|
||||||
description = "Opinionated agentic RAG powered by LanceDB, Pydantic AI, and Docling - Minimal dependencies"
|
description = "Opinionated agentic RAG powered by LanceDB, Pydantic AI, and Docling - Minimal dependencies"
|
||||||
version = "0.30.2"
|
version = "0.30.3"
|
||||||
authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }]
|
authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }]
|
||||||
license = { text = "MIT" }
|
license = { text = "MIT" }
|
||||||
readme = { file = "README.md", content-type = "text/markdown" }
|
readme = { file = "README.md", content-type = "text/markdown" }
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
name = "haiku.rag"
|
name = "haiku.rag"
|
||||||
description = "Opinionated agentic RAG powered by LanceDB, Pydantic AI, and Docling"
|
description = "Opinionated agentic RAG powered by LanceDB, Pydantic AI, and Docling"
|
||||||
version = "0.30.2"
|
version = "0.30.3"
|
||||||
authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }]
|
authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }]
|
||||||
license = { text = "MIT" }
|
license = { text = "MIT" }
|
||||||
readme = { file = "README.md", content-type = "text/markdown" }
|
readme = { file = "README.md", content-type = "text/markdown" }
|
||||||
|
|
@ -30,7 +30,7 @@ classifiers = [
|
||||||
]
|
]
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"haiku.rag-slim[docling,voyageai,mxbai,cohere,zeroentropy,tui]==0.30.2",
|
"haiku.rag-slim[docling,voyageai,mxbai,cohere,zeroentropy,tui]==0.30.3",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
|
|
|
||||||
4
uv.lock
4
uv.lock
|
|
@ -1366,7 +1366,7 @@ wheels = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "haiku-rag"
|
name = "haiku-rag"
|
||||||
version = "0.30.2"
|
version = "0.30.3"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "haiku-rag-slim", extra = ["cohere", "docling", "mxbai", "tui", "voyageai", "zeroentropy"] },
|
{ name = "haiku-rag-slim", extra = ["cohere", "docling", "mxbai", "tui", "voyageai", "zeroentropy"] },
|
||||||
|
|
@ -1444,7 +1444,7 @@ requires-dist = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "haiku-rag-slim"
|
name = "haiku-rag-slim"
|
||||||
version = "0.30.2"
|
version = "0.30.3"
|
||||||
source = { editable = "haiku_rag_slim" }
|
source = { editable = "haiku_rag_slim" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "cachetools" },
|
{ name = "cachetools" },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue