memory-lancedb-pro 1.1.0-beta.2 → 1.1.0-beta.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.
Files changed (52) hide show
  1. package/CHANGELOG-v1.1.0.md +2 -2
  2. package/README.md +565 -504
  3. package/README_CN.md +645 -460
  4. package/cli.ts +177 -22
  5. package/docs/CHANGELOG-v1.1.0.md +306 -0
  6. package/docs/memory_architecture_analysis.md +775 -0
  7. package/docs/openclaw-integration-playbook.md +334 -0
  8. package/docs/openclaw-integration-playbook.zh-CN.md +353 -0
  9. package/index.ts +2159 -203
  10. package/openclaw.plugin.json +343 -37
  11. package/package.json +3 -2
  12. package/scripts/jsonl_distill.py +2 -0
  13. package/src/adaptive-retrieval.ts +10 -12
  14. package/src/decay-engine.ts +3 -2
  15. package/src/embedder.ts +146 -10
  16. package/src/extraction-prompts.ts +0 -2
  17. package/src/llm-client.ts +0 -2
  18. package/src/memory-categories.ts +0 -1
  19. package/src/memory-upgrader.ts +387 -0
  20. package/src/migrate.ts +30 -23
  21. package/src/noise-filter.ts +12 -0
  22. package/src/reflection-event-store.ts +97 -0
  23. package/src/reflection-item-store.ts +111 -0
  24. package/src/reflection-mapped-metadata.ts +83 -0
  25. package/src/reflection-metadata.ts +22 -0
  26. package/src/reflection-ranking.ts +32 -0
  27. package/src/reflection-retry.ts +180 -0
  28. package/src/reflection-slices.ts +264 -0
  29. package/src/reflection-store.ts +601 -0
  30. package/src/retriever.ts +87 -96
  31. package/src/self-improvement-files.ts +142 -0
  32. package/src/session-recovery.ts +137 -0
  33. package/src/smart-extractor.ts +110 -53
  34. package/src/smart-metadata.ts +230 -0
  35. package/src/store.ts +122 -23
  36. package/src/tier-manager.ts +0 -1
  37. package/src/tools.ts +407 -26
  38. package/test/cli-smoke.mjs +233 -17
  39. package/test/config-session-strategy-migration.test.mjs +66 -0
  40. package/test/embedder-error-hints.test.mjs +110 -0
  41. package/test/functional-e2e.mjs +320 -0
  42. package/test/helpers/openclaw-plugin-sdk-stub.mjs +7 -0
  43. package/test/jsonl-distill-slash-filter.test.mjs +81 -0
  44. package/test/memory-reflection.test.mjs +818 -0
  45. package/test/migrate-legacy-schema.test.mjs +116 -0
  46. package/test/openclaw-host-functional.mjs +317 -0
  47. package/test/plugin-manifest-regression.mjs +263 -0
  48. package/test/retriever-rerank-regression.mjs +132 -0
  49. package/test/self-improvement.test.mjs +258 -0
  50. package/test/session-recovery-paths.test.mjs +58 -0
  51. package/test/smart-extractor-branches.mjs +483 -0
  52. package/test/smart-memory-lifecycle.mjs +219 -0
@@ -154,7 +154,7 @@ llm?: {
154
154
  model?: string; // LLM 模型(默认 gpt-4o-mini)
155
155
  baseURL?: string; // LLM API 端点
156
156
  };
157
- extractMinMessages?: number; // 最少消息数才触发提取(默认 4
157
+ extractMinMessages?: number; // 最少消息数才触发提取(默认 2
158
158
  extractMaxChars?: number; // 送入 LLM 的最大字符数(默认 8000)
159
159
  ```
160
160
 
@@ -200,7 +200,7 @@ extractMaxChars?: number; // 送入 LLM 的最大字符数(默认 8000)
200
200
  "model": "gpt-4o-mini",
201
201
  "baseURL": "https://api.openai.com/v1"
202
202
  },
203
- "extractMinMessages": 4,
203
+ "extractMinMessages": 2,
204
204
  "extractMaxChars": 8000
205
205
  }
206
206
  ```