@vedtechsolutions/engram-mcp 1.0.16 → 1.0.17
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/dist/hook.js +2 -1
- package/package.json +1 -1
package/dist/hook.js
CHANGED
|
@@ -6323,7 +6323,8 @@ ${distillLines}`
|
|
|
6323
6323
|
}
|
|
6324
6324
|
if (content.length >= 30 && content.length <= 500 && !content.startsWith("<")) {
|
|
6325
6325
|
const firstSentence = content.split(/[.!?\n]/)[0]?.trim();
|
|
6326
|
-
|
|
6326
|
+
const isTaskLike = firstSentence && /^(fix|add|create|update|implement|remove|refactor|build|change|move|write|make|set|run|deploy|test|commit|push|install|configure|debug|solve|close|merge|release)/i.test(firstSentence);
|
|
6327
|
+
if (isTaskLike && firstSentence.length >= 15 && firstSentence.length <= 200) {
|
|
6327
6328
|
state.active_task = firstSentence;
|
|
6328
6329
|
}
|
|
6329
6330
|
}
|