@hzttt/multimodal-rag 0.2.8 → 0.2.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 CHANGED
@@ -214,7 +214,7 @@ openclaw multimodal-rag setup -n \
214
214
  | `indexExistingOnStart` | boolean | `true` | 启动时是否索引已有文件 |
215
215
  | `notifications.enabled` | boolean | `false` | 启用索引完成通知(默认唤醒 agent 回复) |
216
216
  | `notifications.mode` | string | `"agent"` | 通知模式:`agent`(默认)/`message-send`/`auto` |
217
- | `notifications.agentId` | string | `"main"` | 通知触发使用的 agent ID(仅 `agent/auto`) |
217
+ | `notifications.agentId` | string | `"main"` | 通知触发使用的 agent ID(仅 `agent/auto`,会沿用该 agent 的性格/身份设定) |
218
218
  | `notifications.quietWindowMs` | number | `30000` | 静默窗口:最后一个文件处理完后等待多久再发送总结(毫秒) |
219
219
  | `notifications.batchTimeoutMs` | number | `600000` | 批次最大超时:超过此时间强制发送总结(毫秒),防止大批量索引时等太久 |
220
220
  | `notifications.channel` | string | `"last"` | 回退链路渠道(未配置 `targets` 时使用) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzttt/multimodal-rag",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "OpenClaw plugin for multimodal RAG - semantic indexing and time-aware search for images and audio using local AI models",
5
5
  "type": "module",
6
6
  "repository": {
package/src/notifier.ts CHANGED
@@ -616,8 +616,13 @@ export class IndexNotifier implements IndexEventCallbacks {
616
616
  private buildAgentPrompt(text: string): string {
617
617
  return [
618
618
  "你收到一条来自 Multimodal RAG 的索引事件通知。",
619
- "请直接给用户发送 1-2 句中文消息,简要说明状态,不要解释执行过程。",
620
- `通知内容:${text}`,
619
+ "请严格按你当前 agent 的人格设定回复,优先遵循已注入的 IDENTITY.md / SOUL.md。",
620
+ "如果本轮上下文里看不到 IDENTITY.md 或 SOUL.md,请先读取工作区对应文件(存在就读),再回复。",
621
+ "禁止调用 message、sessions_send、sessions_spawn 等消息投递工具;系统会用 --deliver 自动投递。",
622
+ "除非为了读取 IDENTITY.md / SOUL.md,否则不要调用其他工具。",
623
+ "只输出最终发给用户的通知正文,不要输出“已发送/已通知/处理中”等过程状态。",
624
+ "避免模板化官腔,用该 agent 一贯口吻写一段自然中文通知。",
625
+ `事件内容:${text}`,
621
626
  ].join("\n");
622
627
  }
623
628