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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user