memorylake-openclaw 0.0.15-beta.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +3 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -366,10 +366,12 @@ class PlatformProvider implements MemoryLakeProvider {
|
|
|
366
366
|
if (options.threshold != null) body.threshold = options.threshold;
|
|
367
367
|
if (options.rerank != null) body.rerank = options.rerank;
|
|
368
368
|
|
|
369
|
+
|
|
369
370
|
const resp = await this.http
|
|
370
371
|
.post(`${this.basePath}/search`, { json: body })
|
|
371
372
|
.json<ApiResponse>();
|
|
372
373
|
if (!resp.success) throw new Error(resp.message ?? "search failed");
|
|
374
|
+
|
|
373
375
|
return normalizeSearchResults(resp.data);
|
|
374
376
|
}
|
|
375
377
|
|
|
@@ -481,8 +483,7 @@ class PlatformProvider implements MemoryLakeProvider {
|
|
|
481
483
|
};
|
|
482
484
|
const resp = await this.http
|
|
483
485
|
.get(this.conflictsPath, {
|
|
484
|
-
searchParams
|
|
485
|
-
headers: { "X-User-ID": userId },
|
|
486
|
+
searchParams
|
|
486
487
|
})
|
|
487
488
|
.json<ApiResponse<ConflictListResponse>>();
|
|
488
489
|
if (!resp.success) throw new Error(resp.message ?? "list conflicts failed");
|