Repository navigation
New in 0.8.2
Document Plugin
An administrator can now register before-save and after-save hooks for document create,
update and delete (#225). They have the same contract as the Memory and Entity Plugins:
DOCUMENT_WRITE_PLUGIN names the plugin (module:object), DOCUMENT_WRITE_PLUGIN_MODE is
enforce (default) or warn, and DOCUMENT_WRITE_PLUGIN_TIMEOUT_SECONDS defaults to 5.
- In
enforcemode, a rejection returns 400 and a failed or timed-out handler returns 503.
Inwarnmode, both becomeplugin_warningsand the write goes through. - After-save handlers only add warnings. They never reject or roll back a write.
- With no plugin registered, REST and MCP responses are unchanged.
See Document Plugin.
Restore an archived memory over REST
POST /api/v1/memories/{id}/restore brings back a memory that DELETE archived (#267). It
uses the same transition as the MCP unobsolete_memory tool, so Memory Plugin restore
hooks run and the audit trail keeps both the archive and the restore. A memory that is not
archived returns 422; a missing memory returns 404.
Search entities by name or alias
GET /api/v1/entities accepts an optional q filter (#229). It matches a literal substring
of the entity name or of any single alias, with ASCII-only case folding. % and _ are
plain characters. It combines with entity_type, and total counts the filtered set.
Graph links across pages
The graph endpoint pages its memories and, until now, emitted a memory link only when both
ends were on the same page. On a large database many links could not be reached
on any page. The new opt-in cross_page_edges=true emits every link that touches the page,
with the same ownership, obsolete and project filters as the memory list (#237). The same
link can appear on more than one page, so clients dedupe by edge id. Without the parameter,
the output is unchanged. See
paging and merge rules.
Validation errors state the submitted length
A model cannot count characters, so String should have at most 2000 characters did not
tell it how much to cut. Each too-long string message now ends with the length that was
sent: String should have at most 2000 characters (got 2409) (#271). This applies to REST,
MCP and CLI errors, including routes that do not echo input.
Fixes
- Backup and restore now find
pg_dumpandpsqlon NixOS, and the Nix-built image
includes the PostgreSQL 16 client (#241). The published Docker image already had it. - The graph section of the API reference now matches the endpoints (#239).
Maintenance
- Removed the MCP category tool modules that were never mounted (#240, #261).
- The Nix development shell now has what the test suite needs: the dev dependencies, the
PostgreSQL client and the pinned model fixtures (#244). - Dependency updates for the Nix flake inputs and
cachix/install-nix-action(#262, #263).
Upgrading from 0.8.1
This release adds no database migrations. Back up your database before upgrading, as usual.
Check these behaviour changes before you upgrade:
- A
string_too_longvalidation message now ends with(got N). The REST error shape is
unchanged. - Validation errors from the skill REST routes, MCP
execute_forgetful_tooland the local
CLI now readfield: messageinstead of Pydantic's multi-line text, and no longer echo
the input value. Status codes and exit codes are unchanged. pg_dumpandpsqlnow inherit the server's environment, so otherPG*variables (for
examplePGSSLMODE) reach them. The explicit host, port, user and database flags still
win.
What's Changed
- feat(api): add q filter to GET /api/v1/entities by @bertheto in
#229 - feat: add before-save and after-save Document Plugin hooks by @bertheto in
#225 - docs(graph): correct the graph endpoints in the API reference by @twstagg in
#239 - fix(backup): make pg_dump and psql reachable in the shipped image by @twstagg in
#241 - fix(graph): emit memory links beyond the current page by @twstagg in
#237 - chore(mcp): remove the unmounted category tool modules by @twstagg in
#240 - docs(architecture): fix the meta_tools line link and note the deleted modules by @ScottRBK
in #261 - Add a REST endpoint to restore an archived memory by @twstagg in
#267 - chore(deps): bump cachix/install-nix-action from 31.11.5 to 32.1.0 in /.github/workflows by
@dependabot in #262 - chore(deps): bump the flake-inputs group with 2 updates by @dependabot in
#263 - feat(api): state the submitted length in string_too_long errors by @ScottRBK in
#271 - build(nix): complete the development shell by @twstagg in
#244
Full Changelog: v0.8.1...v0.8.2