memtap 4.0.2 → 4.0.3

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/index.ts CHANGED
@@ -2036,6 +2036,7 @@ ${memoryContext}
2036
2036
  api.registerHook(
2037
2037
  'message_received',
2038
2038
  async (event: any) => {
2039
+ console.log('[memtap] message_received hook FIRED, event keys:', Object.keys(event || {}).join(','));
2039
2040
  const cfg = getConfig(api);
2040
2041
  if (!cfg.captureEnabled && !cfg.autoCapture) return;
2041
2042
 
@@ -2064,11 +2065,16 @@ ${memoryContext}
2064
2065
  api.registerHook(
2065
2066
  'message_sent',
2066
2067
  async (event: any) => {
2068
+ console.log('[memtap] message_sent hook FIRED, event keys:', Object.keys(event || {}).join(','));
2067
2069
  const cfg = getConfig(api);
2068
- if (!cfg.captureEnabled && !cfg.autoCapture) return;
2070
+ if (!cfg.captureEnabled && !cfg.autoCapture) {
2071
+ console.log('[memtap] capture disabled, skipping');
2072
+ return;
2073
+ }
2069
2074
 
2070
2075
  const ctx = event || event?.context || {};
2071
2076
  const assistantContent = ctx.content || '';
2077
+ console.log('[memtap] assistantContent length:', assistantContent.length, 'preview:', String(assistantContent).substring(0, 60));
2072
2078
  if (!assistantContent || typeof assistantContent !== 'string') return;
2073
2079
  if (assistantContent === 'NO_REPLY' || assistantContent === 'HEARTBEAT_OK') return;
2074
2080
  if (assistantContent.length < (cfg.captureMinLength || 80)) return;
@@ -2,7 +2,7 @@
2
2
  "id": "memtap",
3
3
  "name": "MemTap",
4
4
  "kind": "memory",
5
- "version": "4.0.2",
5
+ "version": "4.0.3",
6
6
  "description": "Graph-based long-term memory for OpenClaw agents \u2014 semantic recall, GraphRAG, entity management, decision tracking, neural auto-capture, anomaly detection, consolidation, profiles, and adaptive decay.",
7
7
  "defaultConfig": {
8
8
  "serverUrl": "https://api.memtap.ai",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memtap",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "MemTap — Graph-based long-term memory plugin for OpenClaw agents. Knowledge graph with semantic recall, GraphRAG, entity management, decision tracking, and auto-capture.",
5
5
  "keywords": [
6
6
  "openclaw",