You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(tools): resolve --builtin-tools not registering tools and surface skipped UDTF columns
The --builtin-tools CLI flag was not registering built-in tools due to
an ES module evaluation timing bug: allToolDefinitions was computed as a
top-level constant at import time, before applyCliOverrides() could set
config.ibmi_enableDefaultTools = true. Changed to a function
(getAllToolDefinitions) evaluated at registration time.
Also fixed executeSql.tool.ts enabled callback to check live config
values as fallback, since toolConfig.enabled was captured at load time.
Added a `skipped` field to validate_query's column validation output so
UDTF/CTE unqualified columns are explicitly reported rather than
silently ignored. This surfaces column names like bogus typos that
callers should manually verify.
Signed-off-by: Adam Shedivy <ajshedivyaj@gmail.com>
// Report columns that were skipped during validation
561
+
if(skippedColumns.length>0){
562
+
parts.push(
563
+
`Skipped column validation: ${skippedColumns.join(", ")} (from UDTF output or CTE alias — not present in SYSCOLUMNS). Verify these column names match the function's result set.`,
0 commit comments