Expand description
Handler for the vec CLI subcommand family.
Provides three maintenance operations for the vec_memories virtual
table that backs the embedding KNN search:
orphan-list: listsvec_memoriesrows whosememory_idno longer references a live (non-soft-deleted) memory.purge-orphan: deletes those orphan rows in a single transaction.stats: surfaces total rows, orphan count, and coverage percentage.
G39 (v1.0.69): before v1.0.69, the only way to detect a vec-orphan was
health --json which reported vec_memories_orphaned > 0 with no
remediation path. This module closes the loop.
Structs§
- VecArgs
- Arguments for the
vecsubcommand family. - VecOrphan
List Args - Arguments for
vec orphan-list. - VecOrphan
List Inner - Arguments for
vec purge-orphan. - VecPurge
Orphan Args - Arguments for
vec purge-orphan. - VecStats
Args - Arguments for
vec stats.
Enums§
- VecSubcommand
- Subcommands nested under
vec.
Functions§
- run
- Dispatch entry point called from
main.