Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
Show 43 variants Save { title: String, content: String, project: Option<String>, type: String, importance: String, tags: Vec<String>, what: Option<String>, why: Option<String>, context: Option<String>, learned: Option<String>, scope: Option<String>, topic_key: Option<String>, }, Search { query: String, project: Option<String>, type: Option<String>, limit: u32, json: bool, }, Get { id: String, json: bool, }, List { project: Option<String>, all: bool, type: Option<String>, limit: u32, json: bool, }, Delete { id: String, hard: bool, }, Restore { id: String, }, Relate { from_id: String, to_id: String, relation_type: String, confidence: Option<f32>, }, Context { project: Option<String>, limit: u32, }, Stats { project: Option<String>, }, Projects, Serve { port: u16, host: String, }, Mcp, Tui, Setup { agent: AgentSetup, }, Export { project: Option<String>, output: Option<PathBuf>, format: String, }, Import { file: PathBuf, project: Option<String>, }, Doctor { project: Option<String>, json: bool, }, Reindex { project: Option<String>, force: bool, json: bool, }, Bench { scenario: Option<String>, json: bool, }, Learn { project: Option<String>, json: bool, }, Consolidate { project: Option<String>, strategy: String, days: u64, dry_run: bool, json: bool, }, Block { project: Option<String>, slot: Option<String>, title: Option<String>, content: Option<String>, }, Completion { shell: String, }, DbExport { output: Option<String>, }, DbImport { file: String, }, SaveBatch { file: PathBuf, project: Option<String>, }, DeleteRelation { relation_id: String, }, Audit { project: Option<String>, days_threshold: u32, json: bool, }, Deduplicate { project: Option<String>, threshold: f64, }, Feedback { memory_id: String, is_useful: bool, reason: Option<String>, }, Deprecate { memory_id: String, reason: String, supersedes_id: Option<String>, }, Graph { project: Option<String>, json: bool, }, Summarize { project: Option<String>, session_id: Option<String>, }, InjectContext { project: Option<String>, file: Option<String>, limit: u32, }, ForgetProject { project: Option<String>, confirm: bool, }, Health { project: Option<String>, json: bool, }, Remind { project: Option<String>, importance: String, }, TagSuggest { project: Option<String>, title: String, content: Option<String>, }, KnowledgeGaps { project: Option<String>, json: bool, }, Sync { command: SyncCommands, }, Watch { project: Option<String>, dir: Option<PathBuf>, interval: u64, ext: String, }, Keys { cmd: KeysCommands, }, Version,
}
Expand description

Comandos disponibles.

Variants§

§

Save

Guarda una nueva memoria.

Fields

§title: String

Título de la memoria.

§content: String

Contenido de la memoria.

§project: Option<String>

Proyecto asociado.

§type: String

Tipo de memoria.

§importance: String

Nivel de importancia.

§tags: Vec<String>

Tags separados por coma.

§what: Option<String>

Campo “what”.

§why: Option<String>

Campo “why”.

§context: Option<String>

Campo “context”.

§learned: Option<String>

Campo “learned”.

§scope: Option<String>

Alcance de la memoria.

§topic_key: Option<String>

Clave de tópico para upserts.

§

Search

Busca memorias.

Fields

§query: String

Texto de búsqueda.

§project: Option<String>

Filtrar por proyecto.

§type: Option<String>

Filtrar por tipo.

§limit: u32

Límite de resultados.

§json: bool

Salida en JSON.

§

Get

Obtiene una memoria por ID.

Fields

§id: String

UUID de la memoria.

§json: bool

Salida en JSON.

§

List

Lista memorias.

Fields

§project: Option<String>

Filtrar por proyecto.

§all: bool

Mostrar memorias de todos los proyectos.

§type: Option<String>

Filtrar por tipo.

§limit: u32

Límite de resultados.

§json: bool

Salida en JSON.

§

Delete

Elimina una memoria.

Fields

§id: String

UUID de la memoria.

§hard: bool

Eliminación física (hard delete).

§

Restore

Restaura una memoria eliminada.

Fields

§id: String

UUID de la memoria.

§

Relate

Crea una relación entre memorias.

Fields

§from_id: String

ID de origen.

§to_id: String

ID de destino.

§relation_type: String

Tipo de relación.

§confidence: Option<f32>

Confianza de la relación.

§

Context

Obtiene contexto reciente.

Fields

§project: Option<String>

Proyecto.

§limit: u32

Límite de resultados.

§

Stats

Muestra estadísticas.

Fields

§project: Option<String>

Proyecto.

§

Projects

Lista proyectos.

§

Serve

Inicia servidor HTTP.

Fields

§port: u16

Puerto.

§host: String

Host.

§

Mcp

Inicia servidor MCP.

§

Tui

Inicia TUI interactiva (lista, grafo, entidades, temporal, search).

§

Setup

Configura integración con agentes.

Fields

§agent: AgentSetup

Agente a configurar.

§

Export

Exporta memorias a JSON o Markdown.

Fields

§project: Option<String>

Proyecto.

§output: Option<PathBuf>

Archivo de salida.

§format: String

Formato: json (default) o md.

§

Import

Importa memorias desde JSON.

Fields

§file: PathBuf

Archivo a importar.

§project: Option<String>

Proyecto destino.

§

Doctor

Ejecuta diagnósticos.

Fields

§project: Option<String>

Proyecto.

§json: bool

Salida en JSON.

§

Reindex

Reindexa embeddings de un proyecto.

Fields

§project: Option<String>

Proyecto.

§force: bool

Forzar reindexación de todos los embeddings.

§json: bool

Salida en JSON.

§

Bench

Ejecuta un benchmark de retrieval quality.

Fields

§scenario: Option<String>

Archivo de escenario (TOML/JSON). Si no se da, usa el ejemplo ‘rust-decisions’.

§json: bool

Salida en JSON.

§

Learn

Minería de failures — analiza sesiones fallidas y genera memorias correctivas.

Fields

§project: Option<String>

Proyecto.

§json: bool

Salida en JSON.

§

Consolidate

Consolidación: compacta memorias viejas/stale/deprecadas en resúmenes.

Fields

§project: Option<String>

Proyecto.

§strategy: String

Estrategia: auto, age, deprecated, unused.

§days: u64

Días para stale (default 30).

§dry_run: bool

Dry run (no borra).

§json: bool

JSON output.

§

Block

Memory blocks (Letta-inspired): human, persona, workflow.

Fields

§project: Option<String>

Proyecto.

§slot: Option<String>

Slot: human, persona, workflow (omite para listar).

§title: Option<String>

Título para el slot.

§content: Option<String>

Contenido para el slot. Si se omite, muestra slot.

§

Completion

Genera scripts de autocompletado para la shell.

Fields

§shell: String

Shell objetivo: bash, zsh, fish, powershell.

§

DbExport

Exporta la base de datos completa a un archivo.

Fields

§output: Option<String>

Ruta de salida.

§

DbImport

Importa una base de datos desde un archivo.

Fields

§file: String

Archivo a importar.

§

SaveBatch

Guarda un lote de memorias desde un archivo JSON.

Fields

§file: PathBuf

Archivo JSON con el lote de memorias.

§project: Option<String>

Proyecto.

§

DeleteRelation

Elimina una relación por ID.

Fields

§relation_id: String

ID de la relación.

§

Audit

Audita calidad de memorias.

Fields

§project: Option<String>

Proyecto.

§days_threshold: u32

Días de umbral para stale.

§json: bool

Salida en JSON.

§

Deduplicate

Busca duplicados semánticos.

Fields

§project: Option<String>

Proyecto.

§threshold: f64

Umbral de similitud.

§

Feedback

Registra feedback sobre una memoria.

Fields

§memory_id: String

ID de la memoria.

§is_useful: bool

Útil o no.

§reason: Option<String>

Razón opcional.

§

Deprecate

Depreca una memoria.

Fields

§memory_id: String

ID de la memoria.

§reason: String

Razón de deprecación.

§supersedes_id: Option<String>

ID de la memoria que la reemplaza.

§

Graph

Muestra el grafo de conocimiento.

Fields

§project: Option<String>

Proyecto.

§json: bool

Salida en JSON.

§

Summarize

Genera resumen ejecutivo.

Fields

§project: Option<String>

Proyecto.

§session_id: Option<String>

ID de sesión opcional.

§

InjectContext

Inyecta contexto formateado.

Fields

§project: Option<String>

Proyecto.

§file: Option<String>

Archivo relacionado.

§limit: u32

Límite de resultados.

§

ForgetProject

Elimina todas las memorias de un proyecto.

Fields

§project: Option<String>

Proyecto.

§confirm: bool

Confirmación explícita.

§

Health

Muestra salud del sistema.

Fields

§project: Option<String>

Proyecto.

§json: bool

Salida en JSON.

§

Remind

Muestra recordatorios importantes.

Fields

§project: Option<String>

Proyecto.

§importance: String

Nivel de importancia.

§

TagSuggest

Sugiere tags.

Fields

§project: Option<String>

Proyecto.

§title: String

Título de referencia.

§content: Option<String>

Contenido opcional.

§

KnowledgeGaps

Detecta brechas de conocimiento.

Fields

§project: Option<String>

Proyecto.

§json: bool

Salida en JSON.

§

Sync

Comandos de sincronizacion.

Fields

§

Watch

Monitorear directorio y auto-guardar memorias.

Fields

§project: Option<String>

Proyecto asociado.

§dir: Option<PathBuf>

Directorio a monitorear (default: directorio actual).

§interval: u64

Intervalo de polling en segundos.

§ext: String

Solo archivos con esta extension.

§

Keys

Gestionar claves de encriptación.

Fields

§

Version

Show version and check for updates

Trait Implementations§

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more