mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 08:03:39 +00:00
tests/ has never been typechecked. That is how a spec could read target.targetId off a type with no such field, and call a function without its required argument, while the suite reported green — the spec was skipping, so nothing ever disagreed with it. Pointing tsc at tests/ finds both immediately. It also finds ~198 errors across ~94 files, which is a cleanup project rather than a change to make here, so this ships as pnpm typecheck:e2e and is deliberately NOT added to the typecheck chain or to CI. An unenforced script is worth less than a gate, but it is worth more than nothing: it is runnable, it is discoverable, and the header says plainly what it is so nobody mistakes it for coverage we have. runtime-types.ts is the one fix included, because it was actively misleading: every PaneManagerLike method was optional, so every call site was a possibly-undefined invocation that TypeScript could not help with. They are real methods on a real instance. Also widens AppStore to the StoreApi that window.__store actually is.