You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(core): remove dead exports and relocate test-only machinery #3089
packages/core ships dead contracts and test machinery in the published package:
bot-platform-hints.ts (146 lines) — zero consumers anywhere.
settings/result.ts (1 line) — dead re-export; real consumers import @maka/core/result directly.
provider-contract-matrix.ts (475 lines) — exists only to drive the provider-conformance test suite; not dead code, but should not be a public contract.
test-helpers.ts (46 lines) — test-only helper compiled into the built package.
Desired outcome
Delete the dead contracts and relocate test-only machinery so the contracts package stops shipping glue.
Alternatives or workarounds
Keep shipping test machinery in the package; it is un-exported but still compiled into dist.
Acceptance
bot-platform-hints.ts and settings/result.ts deleted
provider-contract-matrix.ts moved under __tests__/ (or un-exported from the package exports map) — the conformance suite still passes
test-helpers.ts moved under __tests__/ so it is not emitted into dist
packages/core build, focused tests, and Biome pass
Activity
CxHsin commentedon Aug 15, 2026
我想认领这个 issue。计划删除无引用的 contracts,将仅供测试使用的文件迁移到测试目录,确认 conformance suite 仍然通过,并运行
packages/core的构建、定向测试和 Biome 检查。