metainsight-context-engine 0.0.7 → 0.0.9
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 +11 -0
- package/cos-bootstrap.ts +864 -0
- package/cos-operations.ts +780 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +54 -4
- package/dist/index.js.map +1 -1
- package/engine.ts +259 -0
- package/index.ts +1497 -0
- package/local-memory-sync.ts +1361 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +4 -2
- package/types/openclaw-plugin-sdk.d.ts +103 -0
- package/types/pi-agent-core.d.ts +10 -0
package/README.md
CHANGED
|
@@ -54,6 +54,12 @@ MetaInsight Context Engine 是一个 OpenClaw 上下文引擎插件,通过腾
|
|
|
54
54
|
openclaw plugins install metainsight-context-engine
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
+
### 更新插件
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
openclaw plugins update metainsight-context-engine
|
|
61
|
+
```
|
|
62
|
+
|
|
57
63
|
### 方式二:手动安装
|
|
58
64
|
|
|
59
65
|
将插件目录放置到 OpenClaw 的 `extensions/` 目录下,然后安装依赖:
|
|
@@ -159,6 +165,7 @@ Gateway 启动
|
|
|
159
165
|
├─ 注册 CloudContextEngine
|
|
160
166
|
├─ 注册 cloud_memory_search 工具
|
|
161
167
|
├─ 注册 Hooks(llm_input / llm_output / before_prompt_build / after_tool_call)
|
|
168
|
+
├─ 启动文件系统监听(MEMORY.md + memory/ 目录)
|
|
162
169
|
│
|
|
163
170
|
└─ 异步初始化(fire-and-forget):
|
|
164
171
|
├─ 清除磁盘哈希缓存(确保全量重新评估)
|
|
@@ -199,6 +206,10 @@ LLM 生成响应
|
|
|
199
206
|
└─ after_tool_call → 立即同步到云端
|
|
200
207
|
│
|
|
201
208
|
▼
|
|
209
|
+
文件系统监听检测到记忆文件变更
|
|
210
|
+
└─ 1 秒去抖后自动同步到云端
|
|
211
|
+
│
|
|
212
|
+
▼
|
|
202
213
|
每 5 轮触发一次全量本地记忆同步
|
|
203
214
|
```
|
|
204
215
|
|