clawmem 0.1.5 → 0.1.6

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/AGENTS.md CHANGED
@@ -630,11 +630,13 @@ Symptom: CLI reindex/update falls back to node-llama-cpp Vulkan (not GPU server)
630
630
 
631
631
  Symptom: "UserPromptSubmit hook error" on context-surfacing hook (intermittent)
632
632
  → SQLite contention between the watcher and the hook. The watcher processes filesystem events
633
- (including non-.md files like session .jsonl transcripts) and holds brief write locks. If the
634
- hook fires during a lock, it can exceed its timeout. More likely during active conversations
635
- when the watcher is processing rapid transcript changes.
636
- Fix: The default timeout is 8s (since v0.1.1). If you have an older install, re-run
637
- `clawmem setup hooks` to update. If persistent, restart the watcher: `systemctl --user restart clawmem-watcher.service`.
633
+ and holds brief write locks. If the hook fires during a lock, it can exceed its timeout.
634
+ More likely during active conversations with frequent file changes.
635
+ v0.1.6 fix: watcher no longer processes session transcript .jsonl files (only .beads/*.jsonl),
636
+ eliminating the most common source of contention.
637
+ Default hook timeout is 8s (since v0.1.1). If you have an older install, re-run
638
+ `clawmem setup hooks`. If persistent, restart the watcher: `systemctl --user restart
639
+ clawmem-watcher.service`. Healthy memory is under 100MB — if 400MB+, restart clears it.
638
640
  ```
639
641
 
640
642
  ## CLI Reference
package/CLAUDE.md CHANGED
@@ -630,11 +630,13 @@ Symptom: CLI reindex/update falls back to node-llama-cpp Vulkan (not GPU server)
630
630
 
631
631
  Symptom: "UserPromptSubmit hook error" on context-surfacing hook (intermittent)
632
632
  → SQLite contention between the watcher and the hook. The watcher processes filesystem events
633
- (including non-.md files like session .jsonl transcripts) and holds brief write locks. If the
634
- hook fires during a lock, it can exceed its timeout. More likely during active conversations
635
- when the watcher is processing rapid transcript changes.
636
- Fix: The default timeout is 8s (since v0.1.1). If you have an older install, re-run
637
- `clawmem setup hooks` to update. If persistent, restart the watcher: `systemctl --user restart clawmem-watcher.service`.
633
+ and holds brief write locks. If the hook fires during a lock, it can exceed its timeout.
634
+ More likely during active conversations with frequent file changes.
635
+ v0.1.6 fix: watcher no longer processes session transcript .jsonl files (only .beads/*.jsonl),
636
+ eliminating the most common source of contention.
637
+ Default hook timeout is 8s (since v0.1.1). If you have an older install, re-run
638
+ `clawmem setup hooks`. If persistent, restart the watcher: `systemctl --user restart
639
+ clawmem-watcher.service`. Healthy memory is under 100MB — if 400MB+, restart clears it.
638
640
  ```
639
641
 
640
642
  ## CLI Reference
package/SKILL.md CHANGED
@@ -634,11 +634,14 @@ Symptom: CLI reindex/update falls back to node-llama-cpp
634
634
  -> Fixed: bin/clawmem wrapper exports CLAWMEM_EMBED_URL/LLM_URL/RERANK_URL defaults.
635
635
 
636
636
  Symptom: "UserPromptSubmit hook error" on context-surfacing hook (intermittent)
637
- -> SQLite contention between watcher and hook. Watcher processes filesystem events (including
638
- non-.md files like session .jsonl transcripts) and holds brief write locks. If the hook fires
639
- during a lock, it can exceed its timeout. More likely during active conversations.
640
- -> Fix: Default timeout is 8s (since v0.1.1). If you have an older install, re-run
641
- `clawmem setup hooks`. If persistent, restart the watcher: `systemctl --user restart clawmem-watcher.service`.
637
+ -> SQLite contention between watcher and hook. Watcher processes filesystem events and holds
638
+ brief write locks. If the hook fires during a lock, it can exceed its timeout. More likely
639
+ during active conversations with frequent file changes.
640
+ -> v0.1.6 fix: watcher no longer processes session transcript .jsonl files (only .beads/*.jsonl),
641
+ eliminating the most common source of contention.
642
+ -> Default hook timeout is 8s (since v0.1.1). If you have an older install, re-run
643
+ `clawmem setup hooks`. If persistent, restart the watcher: `systemctl --user restart
644
+ clawmem-watcher.service`. Healthy memory is under 100MB — if 400MB+, restart clears it.
642
645
  ```
643
646
 
644
647
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawmem",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "On-device context engine and memory for AI agents. Claude Code and OpenClaw. Hooks + MCP server + hybrid RAG search.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/watcher.ts CHANGED
@@ -23,7 +23,10 @@ export function startWatcher(
23
23
  try {
24
24
  const watcher = watch(dir, { recursive: true }, (event, filename) => {
25
25
  if (!filename) return;
26
- if (!filename.endsWith(".md") && !filename.endsWith(".jsonl")) return;
26
+ // Accept .md files (indexing) and .jsonl only within .beads/ (Dolt backend)
27
+ const isMd = filename.endsWith(".md");
28
+ const isBeadsJsonl = filename.endsWith(".jsonl") && filename.includes(".beads/");
29
+ if (!isMd && !isBeadsJsonl) return;
27
30
  if (shouldExclude(filename)) return;
28
31
 
29
32
  const fullPath = `${dir}/${filename}`;