mirror of
https://github.com/vectorize-io/hindsight.git
synced 2026-12-06 17:41:41 +00:00
* refactor!: rename Knowledge Pages to Pages (old names kept as deprecated aliases until 2.x)
The word "Knowledge" is reserved for the upcoming Knowledge Banks feature, so the
pages feature drops it from docs, UI, CLI, SDKs and integrations.
- API: new /v1/default/banks/{bank_id}/pages/... routes (tag Pages). The old
/knowledge-base/... routes keep working, marked deprecated, same operationIds.
- Renamed wire names keep the old spelling working: exclude_knowledge_pages
(query), is_knowledge_page (sent alongside is_page), knowledge_page_default_trigger
(config key, accepted on write and in stored config), its env var, and the
server MCP tool names (old names in allow-lists map to the new tools).
- SDKs: new method/type names; old ones kept as deprecated aliases.
- No database change and no migration. Export archive format unchanged.
- Guard test keeps the old name out of user-facing text.
* test(pages): the old page-trigger env var is still read
* fix(pages): keep sending the old page-trigger key in bank config and templates
Clients and servers from before the rename read knowledge_page_default_trigger.
GET /config and the bank template export now carry both keys with the same
value; the old key is still accepted on write. Remove in 2.x.
* fix(pages): keep old names working for custom memory stores and Python model imports
A memories store plugged in with HINDSIGHT_API_MEMORIES_EXTENSION that implements
index_knowledge_pages (and the other old page hooks) is still called: the new hooks
fall back to the old names, and KnowledgePageEntry/Ref/Match stay importable.
The generated Python client keeps the old model names, from the package, from
hindsight_client_api.models and from their old module paths. Remove in 2.x.
* fix(pages): old page tool names still run, hidden from the tool list
- Server MCP: a call by an old tool name (get_knowledge_page, ...) runs the renamed
tool and respects the bank allow-list; list_tools still shows only new names.
- OpenClaw: OpenClaw lists every registered tool and checks tools.allow/deny itself,
so old names can't be hidden aliases there. The plugin now logs a warning at startup
for each old tool name in the user's OpenClaw config; docs page says so.
- Comment why the template validator writes through __dict__.
Remove in 2.x.
* chore(pages): regenerate bank template schema for the deprecated page-trigger key
* test(pages): the store completeness check skips the deprecated page-hook names
* test(pages): template field checks skip the deprecated page-trigger alias