// packages/ui-gen/src/harness/check/runtime-render/find-wiring.ts // // Source-AST wiring detection. // // Given a component's TSX source and a hook reference (e.g., `useAction('save')`), // determine HOW the resulting callback is wired in JSX so the runtime probe knows // which trigger to simulate — instead of guessing by clicking everything. // // Rules: // - Handle ONE level of alias indirection: // const save = useAction('save'); // const onSave = () => save(payload); // alias //