Tags: keajs/kea-typegen
Tags
feat: friendlier inline marker, sort inline values/actions by source … …logic - The inline block marker is now "Generated by kea-typegen. Update if you're an agent, ignore if you're human." Old blocks with the previous marker are still recognized (detection matches on 'kea-typegen') and get upgraded on the next write. - Inline Values and Actions interfaces are sorted: connected entries first, grouped by source logic (groups alphabetical, entries alphabetical within each group), then the logic's own entries alphabetically. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
fix: connected actions from MakeLogicType logics, source comments, fo… …rmatter-proof blocks - visitConnect: resolve connected actions semantically (via signatureToSignatureDeclaration) when the other logic's actionCreators is not a walkable type literal - e.g. a MakeLogicType-typed inline logic, where it is a mapped type. Previously those actions were silently dropped. - Inline blocks mark connected values/actions with their source logic, e.g. `user: UserType | null // userLogic`. - The kea-typegen marker comment now sits above every generated interface (Values, Actions, Props), not just the first statement of the block. - Inline block comparison ignores formatting (semicolons, trailing commas, quotes, whitespace, leading union pipes), so a formatter like oxfmt reflowing the block no longer causes endless rewrites. - Insert inline blocks above the logic's leading comments, keeping doc comments attached to the kea() call. - getParameterDeclaration no longer calls .getText() on synthetic parameter names. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
PreviousNext