fix: if rules

This commit is contained in:
tomasz-io 2025-04-03 12:38:30 -07:00
parent 06b76d752f
commit a6dd5a83de

View file

@ -19,10 +19,10 @@ const evaluateIf = (condition: string, activePaths: string[]) => {
try {
debugger;
const evaluate = compileExpression(`current.model == "gpt-4"`, {
// extraFunctions: {
// glob: createGlobFunction(activePaths),
// },
const evaluate = compileExpression(expression, {
extraFunctions: {
glob: createGlobFunction(activePaths),
},
constants: {
current: {
model: "gpt-4",