@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
|
@@ -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
|
-
//
|
|
88
|
-
|
|
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
|