Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(codeql): deduplicate character class

Alfredo Lopeza1f93cd42336
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.json
index b4fc20acb..601af23c9 100644
--- a/mcp-host/package-lock.json
+++ b/mcp-host/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.469",
+ "version": "0.1.470",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-mcp-host",
- "version": "0.1.469",
+ "version": "0.1.470",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@anthropic-ai/sdk": "^0.32.0",
diff --git a/mcp-host/package.json b/mcp-host/package.json
index c6c798718..a9d4f6471 100644
--- a/mcp-host/package.json
+++ b/mcp-host/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.469",
+ "version": "0.1.470",
"description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude",
"main": "dist/main.js",
"engines": {
diff --git a/mcp-host/src/core/orchestration/toolUseLoopIntentRecovery.ts b/mcp-host/src/core/orchestration/toolUseLoopIntentRecovery.ts
index f0674a371..5e4add6e5 100644
--- a/mcp-host/src/core/orchestration/toolUseLoopIntentRecovery.ts
+++ b/mcp-host/src/core/orchestration/toolUseLoopIntentRecovery.ts
@@ -90,7 +90,9 @@ export function shouldRecoverWorkflowTriggerTextResponse(
const normalizedUser = userText.toLowerCase()
const directTrigger = userText.match(/^\s*(?:run|execute|trigger|start)\s+(\S{1,128})\s*$/i)
- const directCandidate = directTrigger?.[1].replace(/[\u0060'"""'']/g, '').trim()
+ const directCandidate = directTrigger?.[1]
+ .replace(/[\u0060\u0027\u201C\u201D\u2018\u2019]/g, '')
+ .trim()
const namesDirectRecipe =
directCandidate !== undefined && /^[a-z0-9]+(?:-[a-z0-9]+)+$/i.test(directCandidate)
const asksToTrigger = /\b(run|start|trigger|execute|launch)\b/.test(normalizedUser)