Enable more biome lints and fix things

This commit is contained in:
Mario Zechner
2025-12-21 22:56:20 +01:00
parent 9c18439c4d
commit d5fd685901
57 changed files with 151 additions and 199 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ export interface CalculateResult extends AgentToolResult<undefined> {
export function calculate(expression: string): CalculateResult {
try {
const result = new Function("return " + expression)();
const result = new Function(`return ${expression}`)();
return { content: [{ type: "text", text: `${expression} = ${result}` }], details: undefined };
} catch (e: any) {
throw new Error(e.message || String(e));