@mem9/mem9 0.4.11 → 0.4.12

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Memory plugin for [OpenClaw](https://github.com/openclaw) — replaces the built-in memory slot with cloud-persistent shared memory. Runs in server mode only, connecting to `mnemo-server` via `apiUrl` + `apiKey` (preferred) or legacy `tenantID`. Optional `provisionToken` and `provisionQueryParams` are used only during first-time create-new setup before an explicit `apiKey` is configured.
4
4
 
5
- When `apiKey` is absent during create-new onboarding, the plugin does not auto-provision on startup. Instead, the first post-restart user message triggers exactly one create-new provision through the normal hook path. The plugin coordinates that call across concurrent OpenClaw plugin registrations on the same machine and reuses the generated key locally for future restarts tied to the same `provisionToken`.
5
+ When `apiKey` is absent during create-new onboarding, the plugin does not auto-provision on startup. Instead, the first post-restart OpenClaw agent turn that runs `before_prompt_build` triggers exactly one create-new provision. Setup/control chats such as TUI local embedded sessions may not run that plugin hook themselves, so onboarding can trigger one minimal OpenClaw agent turn to complete provisioning. The plugin coordinates that call across concurrent OpenClaw plugin registrations on the same machine and reuses the generated key locally for future restarts tied to the same `provisionToken`.
6
6
 
7
7
  ## 🚀 Quick Start (Server Mode)
8
8
 
@@ -182,7 +182,7 @@ Defined in `openclaw.plugin.json`:
182
182
  |---|---|---|
183
183
  | `apiUrl` | string | mnemo-server URL |
184
184
  | `apiKey` | string | Preferred key. Uses `/v1alpha2/mem9s/...` with `X-API-Key` header |
185
- | `provisionToken` | string | Optional one-time create-new token used locally to ensure the first-message create-new provision runs only once and is reused on this machine until an explicit `apiKey` is configured |
185
+ | `provisionToken` | string | Optional one-time create-new token used locally to ensure create-new provisioning runs only once from an OpenClaw agent turn and is reused on this machine until an explicit `apiKey` is configured |
186
186
  | `provisionQueryParams` | object | Optional `utm_*` map forwarded only to the initial `POST /v1alpha1/mem9s` request made during create-new when `apiKey` is absent |
187
187
  | `defaultTimeoutMs` | number | Default timeout for non-search mem9 API requests in milliseconds. Default: `8000` |
188
188
  | `searchTimeoutMs` | number | Timeout for `memory_search` and automatic recall search in milliseconds. Default: `15000` |
@@ -247,7 +247,7 @@ openclaw-plugin/
247
247
  | `No mode configured` | Missing config | Add `apiUrl` and `apiKey` (or legacy `tenantID`) to plugin config |
248
248
  | `Server mode requires...` | Missing key | Add `apiKey` (or legacy `tenantID`) to config |
249
249
  | `config reload skipped (invalid config): plugins.entries.mem9: Unrecognized key: "apiKey"` | Setup wrote `plugins.entries.mem9.apiKey` instead of `plugins.entries.mem9.config.apiKey` | Remove the invalid top-level key and keep the secret only under `config.apiKey` |
250
- | Multiple auto-provisioned keys appear during create-new | Setup retriggered create-new provisioning before the first result was reused, or an older plugin still auto-provisions on startup | Upgrade to `@mem9/mem9@0.4.7+`; newer builds provision only from the first post-restart user message and reuse one local result across duplicate setup retries |
250
+ | Multiple auto-provisioned keys appear during create-new | Setup retriggered create-new provisioning before the first result was reused, or an older plugin still auto-provisions on startup | Upgrade to `@mem9/mem9@0.4.7+`; newer builds provision only from an OpenClaw agent turn that runs `before_prompt_build` and reuse one local result across duplicate setup retries |
251
251
  | Search requests time out | Hybrid/vector search exceeds plugin timeout | Increase `searchTimeoutMs` in plugin config |
252
252
  | Conversations are not uploaded on OpenClaw 4.23+ | `agent_end` does not include conversation messages without explicit hook permission | Set `plugins.entries.mem9.hooks.allowConversationAccess` to `true` and restart OpenClaw |
253
253
  | Plugin not loading | Not in memory slot | Set `"slots": {"memory": "mem9"}` in openclaw.json |
package/dist/backend.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export class PendingProvisionError extends Error {
2
- constructor(message = "mem9 create-new setup is waiting for the first post-restart message to finish provisioning") {
2
+ constructor(message = "mem9 create-new setup is waiting for an OpenClaw agent turn that runs before_prompt_build to finish provisioning") {
3
3
  super(message);
4
4
  this.name = "PendingProvisionError";
5
5
  }
package/dist/index.js CHANGED
@@ -471,7 +471,7 @@ const mnemoPlugin = {
471
471
  api.logger.info("[mem9] Server mode (v1alpha2)");
472
472
  if (!configuredApiKey) {
473
473
  if (configuredProvisionToken) {
474
- api.logger.info("[mem9] apiKey not configured; waiting for the first post-restart message to finish create-new provision");
474
+ api.logger.info("[mem9] apiKey not configured; waiting for an OpenClaw agent turn that runs before_prompt_build to finish create-new provision");
475
475
  }
476
476
  else {
477
477
  api.logger.info("[mem9] apiKey not configured; mem9 will stay idle until apiKey is configured");
@@ -16,11 +16,11 @@
16
16
  },
17
17
  "provisionToken": {
18
18
  "type": "string",
19
- "description": "One-time create-new token used locally to ensure first-message API-key provisioning runs only once and can be reused on this machine before apiKey is configured explicitly"
19
+ "description": "One-time create-new token used locally to ensure API-key provisioning runs only once from an OpenClaw agent turn and can be reused on this machine before apiKey is configured explicitly"
20
20
  },
21
21
  "provisionQueryParams": {
22
22
  "type": "object",
23
- "description": "Optional utm_* params forwarded only by the first create-new provision request triggered after the initial restart",
23
+ "description": "Optional utm_* params forwarded only by the first create-new provision request triggered by an OpenClaw agent turn after the initial restart",
24
24
  "additionalProperties": {
25
25
  "type": "string"
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mem9/mem9",
3
- "version": "0.4.11",
3
+ "version": "0.4.12",
4
4
  "description": "OpenClaw shared memory plugin — cloud-persistent memory with hybrid vector + keyword search via mnemo-server",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",