Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
fix(security): resolve CodeQL alerts for regex and replace
diegosouzapw3e6609a85355
diff --git a/src/app/(dashboard)/dashboard/providers/utils/buildCurl.ts b/src/app/(dashboard)/dashboard/providers/utils/buildCurl.tsindex 1156225d5e..8d9dc22b2c 100644--- a/src/app/(dashboard)/dashboard/providers/utils/buildCurl.ts+++ b/src/app/(dashboard)/dashboard/providers/utils/buildCurl.ts@@ -54,7 +54,7 @@ export function buildCurl({ endpoint, method = "POST", headers, body }: CurlOpti// Remove trailing backslash from last non-URL lineconst last = lines.length - 1;- lines[last - 1] = lines[last - 1].replace(/ \\$/, " \\");+ lines[last - 1] = lines[last - 1].replace(/ \\$/, "");return lines.join("\n");}diff --git a/src/lib/copilot/engine.ts b/src/lib/copilot/engine.tsindex 2612bc2e9b..f6c4cf334d 100644--- a/src/lib/copilot/engine.ts+++ b/src/lib/copilot/engine.ts@@ -35,7 +35,10 @@ function getKnowledgeResponse(query: string): string | null {const q = query.toLowerCase();// Architecture questions- if (/architecture|arquitectura|pipeline|request.*flow|request.*path/.test(q)) {+ if (+ /architecture|arquitectura|pipeline/.test(q) ||+ (q.includes("request") && (q.includes("flow") || q.includes("path")))+ ) {return `## OmniRoute ArchitectureThe request pipeline flows through: