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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user