blun-king-cli 5.2.3 → 5.2.5
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/blun-cli.js +9 -7
- package/package.json +1 -1
package/blun-cli.js
CHANGED
|
@@ -2793,27 +2793,29 @@ async function main() {
|
|
|
2793
2793
|
{ patterns: ["plugin.*install", "plugin.*hinzuf", "erweiterung"], cmd: "/plugin" },
|
|
2794
2794
|
{ patterns: ["mcp.*server", "mcp.*install", "mcp.*einricht"], cmd: "/mcp" },
|
|
2795
2795
|
{ patterns: ["welches model", "which model", "modell.*wechsel", "model.*switch", "anderes.*model"], cmd: "/model" },
|
|
2796
|
-
{ patterns: ["permission", "berechtigung", "zugriff"
|
|
2797
|
-
{ patterns: ["einstellung", "setting", "config", "
|
|
2798
|
-
{ patterns: ["health.*check", "
|
|
2796
|
+
{ patterns: ["^permission", "berechtigung.*zeig", "zugriff.*einst"], cmd: "/permissions" },
|
|
2797
|
+
{ patterns: ["^einstellung", "^setting", "^config$", "konfiguration.*zeig"], cmd: "/config" },
|
|
2798
|
+
{ patterns: ["health.*check", "status.*check"], cmd: "/health" },
|
|
2799
2799
|
{ patterns: ["zeig.*skills", "was kannst", "show.*skills", "faehigkeit"], cmd: "/skills" },
|
|
2800
2800
|
{ patterns: ["zeig.*agent", "list.*agent", "welche.*agent"], cmd: "/agents" },
|
|
2801
2801
|
{ patterns: ["screenshot.*mach", "screenshot.*von", "take.*screenshot"], cmd: null, extract: function(t) { var m = t.match(/(?:screenshot|bildschirmfoto).*?(https?:\/\/\S+)/i); return m ? "/screenshot " + m[1] : "/screenshot"; } },
|
|
2802
|
-
{ patterns: ["hilfe", "help", "
|
|
2802
|
+
{ patterns: ["hilfe", "^help$", "befehle"], cmd: "/help" },
|
|
2803
2803
|
{ patterns: ["doctor", "diagnose", "problem.*check"], cmd: "/doctor" },
|
|
2804
2804
|
{ patterns: ["login", "anmeld", "einlogg"], cmd: "/login" },
|
|
2805
2805
|
{ patterns: ["logout", "abmeld", "auslogg"], cmd: "/logout" },
|
|
2806
2806
|
{ patterns: ["komprimier", "compact", "zusammenfass"], cmd: "/compact" },
|
|
2807
2807
|
{ patterns: ["kosten", "verbrauch", "cost", "tokens.*used"], cmd: "/cost" },
|
|
2808
2808
|
{ patterns: ["update.*check", "neue.*version", "aktualisier"], cmd: "/versions" },
|
|
2809
|
-
{ patterns: ["
|
|
2809
|
+
{ patterns: ["^memory", "memory.*show", "was weisst.*du", "^erinnerung.*zeig"], cmd: "/memory" },
|
|
2810
2810
|
{ patterns: ["hook", "webhook"], cmd: "/hooks" },
|
|
2811
2811
|
];
|
|
2812
2812
|
|
|
2813
2813
|
function detectIntent(text) {
|
|
2814
2814
|
var lower = text.toLowerCase();
|
|
2815
|
-
// Skip if text is long
|
|
2816
|
-
if (text.length >
|
|
2815
|
+
// Skip if text is long or looks like a chat message (not a command)
|
|
2816
|
+
if (text.length > 50) return null;
|
|
2817
|
+
// Skip if text has more than 4 words (likely a sentence, not a command)
|
|
2818
|
+
if (text.trim().split(/\s+/).length > 4) return null;
|
|
2817
2819
|
for (var i = 0; i < INTENTS.length; i++) {
|
|
2818
2820
|
var intent = INTENTS[i];
|
|
2819
2821
|
for (var j = 0; j < intent.patterns.length; j++) {
|