@awareness-sdk/local 0.2.1 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awareness-sdk/local",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Local-first AI agent memory system. No account needed.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -84,8 +84,14 @@ export class KnowledgeExtractor {
84
84
  if (preExtractedInsights && this._hasInsights(preExtractedInsights)) {
85
85
  result = this.processPreExtracted(preExtractedInsights, metadata);
86
86
  } else {
87
- // Layer 2: Rule engine fallback (SDK/API writes without agent)
88
- result = this.extractByRules(content, metadata);
87
+ // Skip rule engine for raw tool captures — they produce low-quality cards
88
+ const skipTypes = new Set(['tool_use', 'code_change', 'session_checkpoint']);
89
+ if (skipTypes.has(metadata?.type)) {
90
+ result = { cards: [], tasks: [], risks: [] };
91
+ } else {
92
+ // Layer 2: Rule engine fallback (SDK/API writes without agent)
93
+ result = this.extractByRules(content, metadata);
94
+ }
89
95
  }
90
96
 
91
97
  // Persist extracted artifacts to disk + index