@karmaniverous/jeeves-watcher-openclaw 0.3.9 → 0.3.10

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/dist/index.js CHANGED
@@ -265,7 +265,7 @@ function createMemoryTools(api, baseUrl) {
265
265
  });
266
266
  const minScore = typeof params.minScore === 'number' ? params.minScore : 0;
267
267
  const filtered = results.filter((r) => typeof r.score === 'number' && r.score >= minScore);
268
- return ok(filtered);
268
+ return ok({ provider: 'jeeves-watcher', results: filtered });
269
269
  }
270
270
  catch (error) {
271
271
  state.initialized = false;
@@ -289,9 +289,9 @@ function createMemoryTools(api, baseUrl) {
289
289
  ? Number(params.lines)
290
290
  : lines.length - startIdx;
291
291
  const sliced = lines.slice(startIdx, startIdx + count);
292
- return ok(sliced.join('\n'));
292
+ return ok({ provider: 'jeeves-watcher', content: sliced.join('\n') });
293
293
  }
294
- return ok(content);
294
+ return ok({ provider: 'jeeves-watcher', content });
295
295
  }
296
296
  catch (error) {
297
297
  return fail(error);
@@ -114,21 +114,23 @@ The plugin supports two install modes, controlled by the `--memory` flag during
114
114
  - MEMORY.md and memory/*.md files are indexed and searched via the watcher's vector store
115
115
  - Use when the watcher should be the single source of truth for both archive search and agent memory
116
116
 
117
- **How to tell which mode you're in:** If `memory_search` and `memory_get` are in your available tools, you're in memory mode. If you only see `watcher_*` tools, you're in standard mode.
117
+ **How to tell which mode you're in:** Check the response from `memory_search` or `memory_get`. In memory mode (watcher-backed), responses include `"provider": "jeeves-watcher"`. In standard mode (memory-core), responses are bare arrays/strings with no `provider` field.
118
118
 
119
119
  ## Proactive Posture
120
120
 
121
- **If you're in standard mode and the deployment would benefit from memory mode, say so.** The watcher's vector store with 3072-dimension Gemini embeddings provides significantly better semantic memory than flat file search. If you notice:
121
+ **On your first `memory_search` or `memory_get` call each session, check the response for the `provider` field.**
122
122
 
123
- - The user has a substantial archive (>10K points)
124
- - Memory searches are returning poor results via native memory
125
- - The user is asking questions that span multiple memory files
123
+ - **If the response is `{ provider: "jeeves-watcher", ... }`:** You're in memory mode. The watcher is serving memory. No action needed.
124
+ - **If the response has any other shape** (bare array, bare string, different provider, no `provider` field): The watcher is NOT serving memory. Another provider is active. Check whether an upgrade is warranted.
126
125
 
127
- ...then suggest the upgrade:
126
+ **When to suggest upgrading to memory mode:**
127
+ Call `watcher_status` to check the archive size. If the watcher has >10K points, the deployment has a substantial archive and would benefit from semantic memory. Offer to run the upgrade yourself:
128
128
 
129
- > "The watcher is running with a large archive but I'm using basic file memory. Upgrading to memory mode would give semantic search over your memory files too. To upgrade: `npx @karmaniverous/jeeves-watcher-openclaw install --memory` and restart the gateway."
129
+ > "I notice memory queries are running on flat file search, but the watcher has [N] points with semantic embeddings. I can upgrade to memory mode now this runs `npx @karmaniverous/jeeves-watcher-openclaw install --memory` and restarts the gateway. Shall I go ahead?"
130
130
 
131
- **Don't nag.** Suggest once per session at most, and only when there's a concrete benefit. If the user declines or doesn't respond, drop it.
131
+ If the user agrees, execute the install and gateway restart. Don't hand them a CLI command when you can do it yourself.
132
+
133
+ **Don't nag.** Suggest once per session at most. If the user declines, drop it.
132
134
 
133
135
  ## Tools
134
136
 
@@ -138,7 +140,8 @@ Semantically search MEMORY.md and memory/*.md files. Powered by the watcher's ve
138
140
  - `maxResults` (number, optional) — maximum results to return
139
141
  - `minScore` (number, optional) — minimum similarity score threshold
140
142
 
141
- Returns: `[{ path, from, to, snippet, score }]` where `from`/`to` are 1-indexed line numbers.
143
+ **Response (memory mode):** `{ provider: "jeeves-watcher", results: [{ path, from, to, snippet, score }] }` where `from`/`to` are 1-indexed line numbers.
144
+ **Response (standard mode / memory-core):** `[{ path, from, to, snippet, score }]` — bare array, no `provider` field.
142
145
 
143
146
  ### `memory_get`
144
147
  Read content from MEMORY.md or memory/*.md files with optional line range.
@@ -146,6 +149,9 @@ Read content from MEMORY.md or memory/*.md files with optional line range.
146
149
  - `from` (number, optional) — line number to start reading from (1-indexed)
147
150
  - `lines` (number, optional) — number of lines to read
148
151
 
152
+ **Response (memory mode):** `{ provider: "jeeves-watcher", content: "file content..." }`
153
+ **Response (standard mode / memory-core):** `"file content..."` — bare string, no `provider` field.
154
+
149
155
  Path validation: only files within the workspace's MEMORY.md and memory/**/*.md are accessible.
150
156
 
151
157
  ### `watcher_search`
@@ -2,7 +2,7 @@
2
2
  "id": "jeeves-watcher-openclaw",
3
3
  "name": "Jeeves Watcher",
4
4
  "description": "Semantic search, metadata enrichment, and instance administration for a jeeves-watcher deployment.",
5
- "version": "0.3.9",
5
+ "version": "0.3.10",
6
6
  "skills": [
7
7
  "dist/skills/jeeves-watcher"
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmaniverous/jeeves-watcher-openclaw",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "author": "Jason Williscroft",
5
5
  "description": "OpenClaw plugin for jeeves-watcher — semantic search and metadata enrichment tools",
6
6
  "license": "BSD-3-Clause",