- Fixed multiple runtime errors: undefined property access, header‑sent errors, and consola console.log overrides.
- Prevented options export mutation to avoid ESM regression when mixing CJS/ESM modes.
- Refactored TypeScript infrastructure in preparation for external TypeScript support.