Commit graph

6 commits

Author SHA1 Message Date
Yiorgis Gozadinos
1ecf77cad5
Hooks own resources through a lifespan 2026-08-24 18:02:23 +03:00
Yiorgis Gozadinos
1cb5e296b0
Hooks build from the resolved client config
HaikuRAG resolves `config=None` to the global config for everything
else; the hook list read the raw argument, so a client constructed
without an explicit config never loaded its configured hooks.

Tests follow the config and context-expansion APIs: `get_config()`
replaces the removed `Config` instance, and the expansion test does
its own `resolve_refs_grouped` / `get_items_in_ranges` fetch now that
`expand_with_items` takes the items rather than fetching them.
2026-08-24 18:02:23 +03:00
Yiorgis Gozadinos
e10762854c
Post-commit hooks are best-effort observers 2026-08-24 18:02:23 +03:00
Yiorgis Gozadinos
8083c57246
Hook events carry batches and search parameters 2026-08-24 18:02:22 +03:00
Yiorgis Gozadinos
b4a3c678a0
Add SearchResult.annotations for after_search hooks 2026-08-24 18:02:09 +03:00
Yiorgis Gozadinos
330468f2ca
Add client lifecycle hooks (after_ingest, after_delete, before_search, after_search) 2026-08-24 18:02:09 +03:00