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:
co-authored by
Claude Opus 4.6
parent
7410d190fc
commit
0aa0f44ac4
@@ -280,7 +280,7 @@ export default class MemoryClient {
|
|||||||
async search(
|
async search(
|
||||||
query: string,
|
query: string,
|
||||||
options?: SearchMemoryOptions,
|
options?: SearchMemoryOptions,
|
||||||
): Promise<{ results: Array<Memory> }> {
|
): Promise<Array<Memory>> {
|
||||||
if (this.telemetryId === "") await this.ping();
|
if (this.telemetryId === "") await this.ping();
|
||||||
const payloadKeys = Object.keys(options || {});
|
const payloadKeys = Object.keys(options || {});
|
||||||
this._captureEvent("search", [payloadKeys]);
|
this._captureEvent("search", [payloadKeys]);
|
||||||
|
|||||||
Reference in New Issue
Block a user