* fix(scripts): join the native compiler before reporting declaration failures
The native declaration subprocess let an emission failure escape as an
uncaught top-level rejection. Node then exited immediately, while the
TypeScript native API's close() had only ended the compiler's stdin, so
tsgo was still shutting down inside the managed process group. Under load
the managed runner reported "Managed command exited while its process
group remained active" and the real failure was lost.
Report the failure through process.exitCode instead, so the event loop
drains and joins the compiler exactly as the success path already does.
* fix(plugin-sdk): render API surfaces from canonical checkout roots
Native declaration emission sets rootDir to the realpath of the checkout,
but the renderer derived its root file names from the unresolved repoRoot.
The API diff renders revisions under os.tmpdir(), which is a symlinked
alias on macOS (/var -> /private/var), so every source landed outside
rootDir and the render failed with TS6059. Canonicalize repoRoot once when
rendering starts.