Module commands

Source
Expand description

commands.rs

Every #[tauri::command] exposed by the entity-graph plugin.

Every command is annotated with #[specta::specta] and registered in the tauri-specta collection so TypeScript bindings are generated from Rust.

Naming convention: Tauri surfaces these as plugin:entity-graph-tauri|<fn_name> matching the plugin name registered in lib.rs.

Functions§

graph_clear
Clear all entities and lists from the in-memory mirror.
graph_get_entity
Read a single entity from the in-memory mirror.
graph_get_list
Read a list from the in-memory mirror.
graph_patch_entity
Record a UI-only patch overlay (acknowledged but not mirrored on Rust side).
graph_persist_snapshot
Persist a JSON-serialised graph snapshot to the in-memory store and emit a SnapshotPersistedEvent.
graph_platform_ping
Invoke the registered desktop, Android, or iOS native bridge.
graph_remove_entity
Remove an entity from the plugin’s in-memory mirror.
graph_restore_snapshot
Return a previously persisted snapshot string and emit a SnapshotRestoredEvent.
graph_set_list
Set the ordered ID array for a list query key.
graph_upsert_entity
Upsert an entity into the plugin’s in-memory mirror.