Replace custom file watcher with bm watch#9
Merged
Conversation
- Spawn `bm watch --project <name>` as child process instead of custom Node.js file watcher + archive indexing - Default projectPath now points to ~/.openclaw/workspace/memory/ - Move indexConversation into BmClient (capture hook still works) - Remove mode-b/ directory (file-watcher.ts, archive.ts, archive.test.ts) - Remove indexInterval config (BM handles its own sync timing) - Fix pre-existing Dirent type issue in memory-provider.ts - Update all tests (156 pass, 0 fail)
- Remove mode references (archive/agent-memory/both) - Document bm watch child process approach - Document composited memory_search (3 parallel sources) - Update config table (remove indexInterval, watchPaths) - Update project structure (no mode-b/ directory) - Simplify setup and troubleshooting sections
Replace filesystem scan with schema-based query (type:Task [status] active). Falls back to filesystem scan if BM search fails. Cleans up redundant imports.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the custom Node.js file watcher + archive indexer with Basic Memory's native
bm watchcommand, and simplifies the plugin architecture.Changes
Architecture:
bm watch --project <name>as a child process on startup (initial sync + live file watching)mode-b/directory (file-watcher.ts, archive.ts) — -1,306 net linesConfig:
projectPathdefaults to~/.openclaw/workspace/memory/(single canonical dir)indexInterval(BM handles its own sync timing)watchPaths/ mode configCode moves:
indexConversation()moved from archive.ts intoBmClientas a methodclient.indexConversation()directlyTests: 156 pass, 0 fail
README: Fully rewritten to match new architecture
Requires
bm watchcommand (dev branch)