In calculateMetrics.ts, the worker URL is built with import.meta.url pointing to the compiled .js path — this will silently break if someone runs the TypeScript source directly with ts-node or tsx. Worth a comment warning about this, or a runtime existence check.
In calculateMetrics.ts, the worker URL is built with import.meta.url pointing to the compiled .js path — this will silently break if someone runs the TypeScript source directly with ts-node or tsx. Worth a comment warning about this, or a runtime existence check.