@kernel.chat/kbot 3.99.12 → 3.99.13
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/agent.js +6 -1
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -642,7 +642,12 @@ function isCasualMessage(message) {
|
|
|
642
642
|
];
|
|
643
643
|
// If it matches a casual pattern AND doesn't contain action words AND doesn't refer to kbot, it's casual
|
|
644
644
|
const isCasualPattern = casualPatterns.some(p => p.test(lower));
|
|
645
|
-
const hasActionWords = /\b(fix|create|build|run|deploy|install|delete|remove|write|edit|make|generate|scaffold|refactor|update|add|implement|set up|configure|debug|test)\b/.test(lower);
|
|
645
|
+
const hasActionWords = /\b(fix|create|build|run|deploy|install|delete|remove|write|edit|make|generate|scaffold|refactor|update|add|implement|set up|configure|debug|test|read|check|show|list|find|search|view|tell|report|count|inspect|look|get|open|cat|grep|ls|dir|cd|diff|log|commit|push|pull|clone|audit|scan|probe|execute|execute|verify|confirm|validate)\b/.test(lower);
|
|
646
|
+
// Any message referencing a file path (*.json, *.ts, src/, ./, etc.) clearly needs tools — not casual.
|
|
647
|
+
const mentionsFileOrPath = /\b[\w./-]+\.(json|ts|tsx|js|jsx|md|py|rs|go|toml|yaml|yml|sh|html|css|sql)\b/.test(lower)
|
|
648
|
+
|| /(?:^|\s)(?:\.\/|src\/|packages\/|tools\/|supabase\/|\.kbot\/|\.claude\/|\/users\/|~\/)/.test(lower);
|
|
649
|
+
if (mentionsFileOrPath)
|
|
650
|
+
return false;
|
|
646
651
|
if (isCasualPattern && !hasActionWords && !refersToKbot)
|
|
647
652
|
return true;
|
|
648
653
|
// Questions that end with ? and don't have action words and don't refer to kbot
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kernel.chat/kbot",
|
|
3
|
-
"version": "3.99.
|
|
3
|
+
"version": "3.99.13",
|
|
4
4
|
"description": "Open-source terminal AI agent. 787+ tools, 35 agents, 20 providers. Dreams, learns, watches your system. Controls your phone. Fully local, fully sovereign. MIT.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|