From 96740fbbd991ffc8dc5729246a24da2f7d5baec7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 17 Jan 2026 22:40:38 +0000 Subject: [PATCH] Add consistent error logging to schema loader Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com> --- src/schemas/schema-loader.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/schemas/schema-loader.ts b/src/schemas/schema-loader.ts index 13f3867..1ef5cf4 100644 --- a/src/schemas/schema-loader.ts +++ b/src/schemas/schema-loader.ts @@ -41,6 +41,9 @@ function hydrateComponents(components: any[]): any[] { if (event.condition && typeof event.condition === 'string') { const functionName = event.condition as keyof ComputeFunctionMap const conditionFunction = computeFunctions[functionName] + if (!conditionFunction) { + console.warn(`Condition function "${functionName}" not found`) + } hydratedEvent.condition = conditionFunction || (() => false) } @@ -49,6 +52,9 @@ function hydrateComponents(components: any[]): any[] { if (action.compute && typeof action.compute === 'string') { const functionName = action.compute as keyof ComputeFunctionMap const computeFunction = computeFunctions[functionName] + if (!computeFunction) { + console.warn(`Action compute function "${functionName}" not found`) + } return { ...action, compute: computeFunction || (() => null) @@ -69,6 +75,9 @@ function hydrateComponents(components: any[]): any[] { if (b.transform && typeof b.transform === 'string') { const functionName = b.transform as keyof ComputeFunctionMap const transformFunction = computeFunctions[functionName] + if (!transformFunction) { + console.warn(`Transform function "${functionName}" not found`) + } hydratedBindings[key] = { ...b, transform: transformFunction || ((x: any) => x)