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
refactor(serializer): drop tools.config.params invocation; enforce canonical-id contract via audit
The serializer's pre-execution validator no longer runs the block's
`tools.config.params` mapper to discover renamed tool param ids. Instead
it relies on the contract that every required+user-only tool param is
backed by a subBlock whose `id` or `canonicalParamId` equals the tool
param id, and a new audit (`bun run check:block-canonical`) enforces
this. Migrates posthog (`personalApiKey` → canonical `apiKey`) so the
audit passes cleanly.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
` - block '${v.blockType}' → tool '${v.toolId}': required user-only param '${v.paramId}' has no subBlock with id or canonicalParamId === '${v.paramId}'`
66
+
)
67
+
}
68
+
console.error(
69
+
"\nFix: rename the relevant subBlock id or canonicalParamId to match the tool param id,\n and update the block's inputs + tools.config.params mapper to read from that key.\n"
70
+
)
71
+
process.exit(1)
72
+
}
73
+
74
+
console.log('check:block-canonical — no violations.')
0 commit comments