Debug pass: fix extract_text_keywords_mcp invalid-JS customScript, point Ollama delegation tools to shadow-death (real data, no simulation)

This commit is contained in:
drjones
2026-08-14 02:09:50 +00:00
parent 1d2c5092ea
commit 870440c23d
4 changed files with 13 additions and 13 deletions

View File

@@ -597,7 +597,7 @@ export const MCPHubTab: React.FC<MCPHubTabProps> = ({
customScript: `
const text = args.text || '';
const words = text.toLowerCase().match(/\\b[a-z]{4,}\\b/g) || [];
const freq: Record<string, number> = {};
const freq = {};
words.forEach(w => freq[w] = (freq[w] || 0) + 1);
const topKeywords = Object.entries(freq).sort((a,b) => b[1] - a[1]).slice(0, 5).map(e => e[0]);
return {