/** * CLI commands: search, recall, remember * * These commands talk to a running daemon via HTTP. * Base URL: ASTRA_MEMORY_URL env (default http://127.0.0.1:7777) * Token: ASTRA_MEMORY_TOKEN env (default 'devtok') */ export interface SearchCliOpts { type?: string; repo?: string; since?: string; limit?: string; /** FEAT-401: ISO-8601 date-time. Forwarded verbatim to the API's `as_of` * query param — the CLI does no local filtering, so this is the same * code path as the API (GET /search -> search() -> validityFilterClause). */ asOf?: string; /** FEAT-402 slice 2 AC-4: entity name, forwarded verbatim to `entity=`. */ entity?: string; /** FEAT-423: project name, forwarded verbatim to `project=`. The daemon * filters atoms on `provenance.project`; absent → unfiltered (all projects). */ project?: string; /** FEAT-423: agent name, forwarded verbatim to `agent=` — exact match on * provenance agent/agent_type; absent → all agents. */ agent?: string; /** FEAT-426: 'filter' (default) or 'boost', forwarded verbatim to * `agentMode=`. Only meaningful when `agent` is also set. */ agentMode?: string; } export declare function cliSearch(query: string, opts: SearchCliOpts): Promise; export interface RecallCliOpts { k?: string; type?: string; repo?: string; /** FEAT-401: ISO-8601 date-time, forwarded to POST /recall filters.as_of. */ asOf?: string; /** FEAT-402 slice 2 AC-4: entity name, forwarded to POST /recall filters.entity. */ entity?: string; /** FEAT-423: project name, forwarded to POST /recall filters.project. * Absent → unfiltered recall across all projects. */ project?: string; /** FEAT-423: agent name, forwarded to POST /recall filters.agent. */ agent?: string; /** FEAT-426: 'filter' (default) or 'boost', forwarded to POST /recall * filters.agentMode. Only meaningful when `agent` is also set. */ agentMode?: string; } export declare function cliRecall(question: string, opts: RecallCliOpts): Promise; export interface RememberCliOpts { type?: string; repo?: string; /** FEAT-423: persist provenance.project so the atom is later recallable * under `recall --project`. Written into metadata.project (route: * RememberBodySchema.metadata.project → memories.project column). */ project?: string; /** FEAT-423: persist provenance.agent so the atom is later recallable * under `recall --agent`. Written into metadata.agent → memories.agent. */ agent?: string; } export declare function cliRemember(text: string, opts: RememberCliOpts): Promise; /** * `astramem-local entities list [query] [--limit N]` (FEAT-402 slice 2 AC-5) * — thin HTTP client of GET /entities?q=, same pattern as cliSearch/cliRecall. */ export interface EntitiesListCliOpts { limit?: string; } export declare function cliEntitiesList(query: string, opts: EntitiesListCliOpts): Promise; /** * `astramem-local entities show ` (FEAT-402 slice 2 AC-5) — thin HTTP * client of GET /entities/:id/memories. */ export declare function cliEntitiesShow(id: string): Promise;