feat: if-rules

This commit is contained in:
tomasz-io 2025-04-03 12:32:25 -07:00
parent 2620064c53
commit 06b76d752f

View file

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