Carve-out from #107 (closed by #109). Root cause verified: the root barrel (packages-ts/weather/src/index.ts:196-225) re-exports the entire Phase 28-40 hosted shim (~5 kB gz), dragging it into the size-limited dist/index.mjs even though the lean @mostlyrightmd/weather/hosted subpath already exists. This is why the size limit was stopgap-bumped 25 → 26 kB at v1.12.0.
Plan (public-API contraction — needs its own changeset/CHANGELOG):
- Add
mintStreamToken to src/hosted/index.ts FIRST (its only public path today is the root barrel — would be silently dropped otherwise).
- Remove the hosted re-export block from the root barrel; root-barrel hosted importers migrate to the
/hosted subpath.
- Revert the weather size-limit 26 → 25 kB in root
package.json.
Verified safe: the meta package does not re-export the hosted shim (no cross-package coupling). Full analysis: #107 (comment)
🤖 Generated with Claude Code
Carve-out from #107 (closed by #109). Root cause verified: the root barrel (
packages-ts/weather/src/index.ts:196-225) re-exports the entire Phase 28-40 hosted shim (~5 kB gz), dragging it into the size-limiteddist/index.mjseven though the lean@mostlyrightmd/weather/hostedsubpath already exists. This is why the size limit was stopgap-bumped 25 → 26 kB at v1.12.0.Plan (public-API contraction — needs its own changeset/CHANGELOG):
mintStreamTokentosrc/hosted/index.tsFIRST (its only public path today is the root barrel — would be silently dropped otherwise)./hostedsubpath.package.json.Verified safe: the meta package does not re-export the hosted shim (no cross-package coupling). Full analysis: #107 (comment)
🤖 Generated with Claude Code