memorylake-openclaw 1.0.2-beta.5 → 1.0.2-beta.7
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/README.md +8 -6
- package/index.ts +22 -2160
- package/lib/cli/register-cli.ts +134 -0
- package/lib/config.ts +105 -0
- package/lib/helpers/parse-content-disposition.ts +21 -0
- package/lib/helpers/rewrite-query.ts +122 -0
- package/lib/helpers/upload-record.ts +47 -0
- package/lib/hooks/auto-capture.ts +85 -0
- package/lib/hooks/auto-recall.ts +87 -0
- package/lib/hooks/auto-upload.ts +72 -0
- package/lib/plugin-context.ts +76 -0
- package/lib/prompt/register-prompt.ts +66 -0
- package/lib/provider.ts +227 -0
- package/lib/tools/document-tools.ts +100 -0
- package/lib/tools/memory-tools.ts +298 -0
- package/lib/tools/search-tools.ts +288 -0
- package/lib/types.ts +272 -0
- package/lib/utils/builders.ts +125 -0
- package/lib/utils/normalizers.ts +76 -0
- package/openclaw.plugin.json +2 -0
- package/package.json +13 -3
- package/scripts/install.ps1 +26 -3
- package/scripts/install.sh +54 -1
- package/skills/memorylake-upload/SKILL.md +2 -2
- package/skills/memorylake-upload/scripts/upload.mjs +103 -39
- /package/{core-bridge.ts → lib/core-bridge.ts} +0 -0
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Your agent forgets everything between sessions. This plugin fixes that. It watch
|
|
|
10
10
|
<img src="../docs/images/openclaw-architecture.png" alt="Architecture" width="800" />
|
|
11
11
|
</p> -->
|
|
12
12
|
|
|
13
|
-
**Auto-Recall** — Before the agent responds, the plugin
|
|
13
|
+
**Auto-Recall** — Before the agent responds, the plugin injects memory-search instructions and open-data categories into the system prompt, instructing the agent to call `retrieve_context` before every reply.
|
|
14
14
|
|
|
15
15
|
**Auto-Capture** — After the agent responds, the plugin sends the exchange to MemoryLake. MemoryLake decides what's worth keeping — new facts get stored, stale ones updated, duplicates merged.
|
|
16
16
|
|
|
@@ -39,16 +39,15 @@ Get an API key from [app.memorylake.ai](https://app.memorylake.ai), then add to
|
|
|
39
39
|
|
|
40
40
|
## Agent tools
|
|
41
41
|
|
|
42
|
-
The agent gets
|
|
42
|
+
The agent gets seven tools it can call during conversations:
|
|
43
43
|
|
|
44
44
|
| Tool | Description |
|
|
45
45
|
|------|-------------|
|
|
46
|
-
| `
|
|
46
|
+
| `retrieve_context` | Search memories AND uploaded documents in a single call |
|
|
47
47
|
| `memory_list` | List all stored memories for a user |
|
|
48
48
|
| `memory_store` | Explicitly save a fact |
|
|
49
|
-
| `memory_get` | Retrieve a memory by ID |
|
|
50
49
|
| `memory_forget` | Delete a memory by ID |
|
|
51
|
-
| `
|
|
50
|
+
| `document_download` | Download a document by ID (returns a presigned URL) |
|
|
52
51
|
| `advanced_web_search` | Optional tool for web search with plugin-level domain and locale constraints |
|
|
53
52
|
| `open_data_search` | Search open data sources scoped to the project's configured industry categories |
|
|
54
53
|
|
|
@@ -58,6 +57,9 @@ The agent gets eight tools it can call during conversations:
|
|
|
58
57
|
# Search memories
|
|
59
58
|
openclaw memorylake search "what languages does the user know"
|
|
60
59
|
|
|
60
|
+
# Upload files or directories
|
|
61
|
+
openclaw memorylake upload /path/to/file.pdf
|
|
62
|
+
|
|
61
63
|
# Stats
|
|
62
64
|
openclaw memorylake stats
|
|
63
65
|
```
|
|
@@ -69,7 +71,7 @@ openclaw memorylake stats
|
|
|
69
71
|
| `apiKey` | `string` | — | **Required.** MemoryLake API key (supports `${MEMORYLAKE_API_KEY}`) |
|
|
70
72
|
| `projectId` | `string` | — | **Required.** MemoryLake project ID |
|
|
71
73
|
| `host` | `string` | `https://app.memorylake.ai` | MemoryLake server endpoint URL |
|
|
72
|
-
| `autoRecall` | `boolean` | `true` | Inject
|
|
74
|
+
| `autoRecall` | `boolean` | `true` | Inject mandatory `retrieve_context` instructions before each turn |
|
|
73
75
|
| `autoCapture` | `boolean` | `true` | Store facts after each turn |
|
|
74
76
|
| `autoUpload` | `boolean` | `true` | Auto-upload inbound files to MemoryLake |
|
|
75
77
|
| `topK` | `number` | `5` | Max memories per recall |
|