memorylake-openclaw 0.0.5-beta.3 → 0.0.5
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
CHANGED
|
@@ -211,7 +211,7 @@ class PlatformProvider implements MemoryLakeProvider {
|
|
|
211
211
|
|
|
212
212
|
async searchDocuments(query: string, topN: number): Promise<DocumentSearchResponse> {
|
|
213
213
|
const resp = await this.http
|
|
214
|
-
.post(this.docSearchPath, { json: { query, topN } })
|
|
214
|
+
.post(this.docSearchPath, { json: { query, top_N: topN } })
|
|
215
215
|
.json<ApiResponse>();
|
|
216
216
|
if (!resp.success) throw new Error(resp.message ?? "document search failed");
|
|
217
217
|
const data = resp.data as any;
|
package/package.json
CHANGED
|
@@ -22,9 +22,13 @@ The caller must provide:
|
|
|
22
22
|
|
|
23
23
|
## Preferred: Run the Migration Script
|
|
24
24
|
|
|
25
|
-
**Always try the script first.**
|
|
25
|
+
**Always try the script first.** The script is at `scripts/migrate.mjs` relative to this SKILL.md (i.e., in the `scripts/` subdirectory of this skill). Run:
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
```bash
|
|
28
|
+
node <path-to-this-skill-directory>/scripts/migrate.mjs --agent {agent} --user-id {user_id}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The script handles everything: config reading, session filtering, JSONL parsing, memory file collection, and API submission.
|
|
28
32
|
|
|
29
33
|
If the script succeeds, you are done. **Only proceed to the manual steps below if the script fails and you cannot fix it.**
|
|
30
34
|
|