The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(api): correct memory API endpoint path
Steven Enamakel8d564dcea385
diff --git a/app/src/services/api/memoryApi.ts b/app/src/services/api/memoryApi.tsindex 9713ef42a3..ef7e4bb196 100644--- a/app/src/services/api/memoryApi.ts+++ b/app/src/services/api/memoryApi.ts@@ -200,6 +200,78 @@ export interface ItemsListRequest {filter?: MetaFilter;limit?: number;cursor?: string;+ /** Explorer path; the core narrows `filter` by each step. */+ path?: PathStep[];+}++// ─── Explorer ────────────────────────────────────────────────────────────────++/**+ * A metadata dimension the explorer groups by — TinyMemory's standard facets,+ * the same for every engine.+ */+export type Facet =+ | 'kind'+ | 'source'+ | 'source_id'+ | 'workspace'+ | 'folder'+ | 'file_path'+ | 'language'+ | 'repo'+ | 'url'+ | 'thread'+ | 'agent'+ | 'tool_call'+ | 'tag';++export const FACETS: readonly Facet[] = [+ 'kind',+ 'source',+ 'source_id',+ 'workspace',+ 'folder',+ 'file_path',+ 'language',+ 'repo',+ 'url',+ 'thread',+ 'agent',+ 'tool_call',+ 'tag',+];++/** One step down the explorer: the items whose `facet` is `value`. */+export interface PathStep {+ facet: Facet;+ value: string;+}++export interface ExploreRequest {+ facet: Facet;+ path?: PathStep[];+ filter?: MetaFilter;+ limit?: number;+ scan_limit?: number;+}++export interface FacetBucket {+ value: string;+ count: number;+}++export interface ExplorePage {+ facet: Facet;+ /** Largest first. */+ buckets: FacetBucket[];+ /** Items under the path (that were read, when `truncated`). */+ total: number;+ /** Of those, items with no value for the facet. */+ missing: number;+ /** Values left out by the bucket limit. */+ more_buckets: number;+ /** The engine stopped scanning early, so counts are a lower bound. */+ truncated: boolean;}export interface ItemsPage {@@ -409,6 +481,15 @@ export function memoryItemsList(req: ItemsListRequest = {}): Promise<ItemsPage>return call<ItemsPage>(CORE_RPC_METHODS.memoryItemsList, req);}+export function memoryExplore(req: ExploreRequest): Promise<ExplorePage> {+ return call<ExplorePage>(CORE_RPC_METHODS.memoryExplore, req);+}++/** Items read whole, in the order asked; unknown ids are left out. */+export function memoryItemsGet(ids: string[]): Promise<{ items: Hit[] }> {+ return call<{ items: Hit[] }>(CORE_RPC_METHODS.memoryItemsGet, { ids });+}+// ─── Conversations ───────────────────────────────────────────────────────────export function memoryConversationsGet(): Promise<ConversationsSettings> {diff --git a/app/src/services/rpcMethods.ts b/app/src/services/rpcMethods.tsindex ffa02f762b..c4c49ba3af 100644--- a/app/src/services/rpcMethods.ts+++ b/app/src/services/rpcMethods.ts@@ -41,6 +41,8 @@ export const CORE_RPC_METHODS = {memoryLearn: 'openhuman.memory_learn',memoryForget: 'openhuman.memory_forget',memoryItemsList: 'openhuman.memory_items_list',+ memoryExplore: 'openhuman.memory_explore',+ memoryItemsGet: 'openhuman.memory_items_get',memoryConversationsGet: 'openhuman.memory_conversations_get',memoryConversationsSet: 'openhuman.memory_conversations_set',memorySourcesList: 'openhuman.memory_sources_list',