@hzttt/multimodal-rag 0.2.1 → 0.2.2

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
@@ -126,6 +126,14 @@ openclaw multimodal-rag setup -n \
126
126
  --notify-enabled \
127
127
  --notify-quiet-window 30000 \
128
128
  --notify-batch-timeout 600000
129
+
130
+ # 仅启用通知(其他通知参数沿用已有配置;若无则使用默认值)
131
+ openclaw multimodal-rag setup -n \
132
+ --watch ~/photos \
133
+ --notify-enabled
134
+
135
+ # 关闭通知(当前 CLI 无 --notify-disabled,需手动改配置)
136
+ # 在 ~/.openclaw/openclaw.json 中将 notifications.enabled 设为 false
129
137
  ```
130
138
 
131
139
  | 选项 | 简写 | 说明 | 默认值 |
@@ -140,9 +148,15 @@ openclaw multimodal-rag setup -n \
140
148
  | `--openai-model <model>` | - | OpenAI 嵌入模型 | `text-embedding-3-small` |
141
149
  | `--db-path <path>` | - | LanceDB 数据库路径 | `~/.openclaw/multimodal-rag.lance` |
142
150
  | `--no-index-on-start` | - | 启动时不索引已有文件 | `false` |
143
- | `--notify-enabled` | - | 启用索引完成通知 | `false` |
144
- | `--notify-quiet-window <ms>` | - | 通知静默窗口(毫秒) | `30000` |
145
- | `--notify-batch-timeout <ms>` | - | 通知批次超时(毫秒) | `600000` |
151
+ | `--notify-enabled` | - | 启用索引完成通知 | 未指定时沿用已有配置,否则 `false` |
152
+ | `--notify-quiet-window <ms>` | - | 通知静默窗口(毫秒) | 未指定时沿用已有配置,否则 `30000` |
153
+ | `--notify-batch-timeout <ms>` | - | 通知批次超时(毫秒) | 未指定时沿用已有配置,否则 `600000` |
154
+
155
+ 通知参数行为说明(与当前实现一致):
156
+
157
+ - 非交互式执行时,`--notify-enabled` 仅负责“显式开启”,未传不会主动关闭通知。
158
+ - 当前没有 `--notify-disabled` 选项;要关闭通知请手动编辑 `~/.openclaw/openclaw.json`。
159
+ - `--notify-quiet-window` 和 `--notify-batch-timeout` 未传时会优先沿用已有配置,没有已有值才回退默认值。
146
160
 
147
161
  ### 手动配置
148
162
 
@@ -155,7 +169,7 @@ openclaw multimodal-rag setup -n \
155
169
  "multimodal-rag": {
156
170
  "enabled": true,
157
171
  "config": {
158
- "watchPaths": ["~/mic-recordings", "/home/lucy/usb_data"],
172
+ "watchPaths": ["~/mic-recordings", "~/usb_data"],
159
173
  "ollama": {
160
174
  "baseUrl": "http://127.0.0.1:11434",
161
175
  "visionModel": "qwen3-vl:2b",
@@ -164,7 +178,7 @@ openclaw multimodal-rag setup -n \
164
178
  "embedding": {
165
179
  "provider": "ollama"
166
180
  },
167
- "dbPath": "/home/lucy/.openclaw/multimodal-rag.lance",
181
+ "dbPath": "~/.openclaw/multimodal-rag.lance",
168
182
  "indexExistingOnStart": true,
169
183
  "notifications": {
170
184
  "enabled": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzttt/multimodal-rag",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
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/setup.ts CHANGED
@@ -194,7 +194,7 @@ export async function runSetup(): Promise<void> {
194
194
  embedding: {
195
195
  provider: "ollama",
196
196
  },
197
- dbPath: "/home/lucy/.openclaw/multimodal-rag.lance",
197
+ dbPath: "~/.openclaw/multimodal-rag.lance",
198
198
  indexExistingOnStart: true,
199
199
  notifications: {
200
200
  enabled: false,
@@ -210,7 +210,7 @@ export async function runSetup(): Promise<void> {
210
210
  console.log("设置需要监听的文件夹,插件会自动索引其中的图片和音频文件。");
211
211
  console.log("多个路径用逗号分隔,支持 ~ 展开。\n");
212
212
 
213
- const defaultPaths = existing.watchPaths?.join(", ") || "~/mic-recordings, /home/lucy/usb_data";
213
+ const defaultPaths = existing.watchPaths?.join(", ") || "~/mic-recordings, ~/usb_data";
214
214
  const pathsInput = await rl.question(`监听路径 [${defaultPaths}]: `);
215
215
  const watchPaths = (pathsInput.trim() || defaultPaths)
216
216
  .split(",")