fix: revert search return type to Array<Memory> (matches unwrap logic)

Someone else's changes unwrap the v3 envelope in the client,
so the return type should stay as Array<Memory> for consistency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Soumil Rathi
2026-04-13 13:20:25 -07:00
parent 7410d190fc
commit 0aa0f44ac4
+1 -1
View File
@@ -280,7 +280,7 @@ export default class MemoryClient {
async search(
query: string,
options?: SearchMemoryOptions,
): Promise<{ results: Array<Memory> }> {
): Promise<Array<Memory>> {
if (this.telemetryId === "") await this.ping();
const payloadKeys = Object.keys(options || {});
this._captureEvent("search", [payloadKeys]);