memory_sync
Export, import, and diff a knowledge graph between machines with no shared database, or sync over HTTP. Resolve conflicts when two nodes disagree.
Instructions
[alias of cuba_sync] Git-friendly export/import of the knowledge graph between machines that share no database. export/import/diff/status work on a local directory (default ./.cuba-memorys/); pull/notify/fetch/conflicts/resolve talk to a peer over HTTP with CUBA_PEER_TOKEN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | resolve only: the conflict id from action=conflicts | |
| dir | No | Directory override (default $CUBA_SYNC_DIR or ./.cuba-memorys/) | |
| url | No | fetch only: the peer's base address, e.g. https://brain.example.net | |
| keep | No | resolve only: which text stays current (default 'both', which loses nothing) | |
| peer | No | fetch only: which peer to pull from (default 'default') | |
| limit | No | pull only: max files per page | |
| scope | No | Export scope: active project only (default) or all data | |
| action | Yes | export/import/diff/status: local bundle round-trip. pull: return the bundle in the response instead of writing it, for a peer to fetch. notify: tell a peer what changed. fetch: pull a peer's bundle over HTTP and import it. conflicts/resolve: list and settle rows two machines disagree about. | |
| offset | No | pull only: index of the first bundle file to return | |
| confirm | No | Required when the import's tombstones would delete more than 10% of this machine's observations and at least 25 rows | |
| node_id | No | notify only: self-asserted id of the sending node | |
| summary | No | notify only: what changed, in at most 2000 characters | |
| conflict | No | How to resolve a row that exists on both sides (default merge; merge and skip keep local content, overwrite takes the incoming version) | |
| node_name | No | notify only: readable name of the sending node | |
| manifest_hash | No | notify only: the bundle hash this notice refers to | |
| with_embeddings | No | Include embeddings (default false on export, true on pull) |