Repository navigation
C8 registry: admit int and per-property closed enums - #14449
Git-on-my-level wants to merge 2 commits into
Conversation
Unblock the next C8 tranche without migrating production wrappers. A type-extension probe proves emit goldens for the new types; free String, double, and Map stay rejected. Co-authored-by: Cursor <[email protected]>
…all C8 slices (#14697) Super-PR batching #14449/#14441/#14459/#14461 (cumulative C8 slice stack) onto a clean ancestry from current main. Registry grows to 121 events with executable consumers; all 120 emit sites use TypedEvents; main's newer guidedIntro block, 1-param omiDoubleTap, and import hygiene are preserved.
|
Fully absorbed: the cumulative C8 slice content (all 121 registered events, TypedEvents migration, slice goldens) reached main via the C8 super-PR #14697. Closing as absorbed per the batching directive. |
|
Hey @Git-on-my-level 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
What changed and why
The event registry now admits
intand per-property closed enums so the next C8 tranche can be pinned without inventing free strings. No productionAnalyticsManagerwrappers were migrated. A generator probe event (Type Extension Probe) plus goldens prove that bool, int, and enum wire values surviveTypedEvents.emitas the same adapter payload.Product invariants affected
none
How it was verified
TZ=UTC bash app/test.sh— 2074 passed, including first-slice goldens unchanged and two new type-extension tests (emit goldens; constructor TypeError + fresh property bag).python3 scripts/check_spine_contracts.py— 39 pending, 13 protected. No spine files edited.python3 scripts/check_event_registry.py --base origin/main— 16 registered events, generated output current.dart format --line-length 120 --set-exit-if-changedon the non-generated Dart test file — 0 changed. Did not formatevents.g.dart.OMI_PR_BODY_FILE=.local/pr-body-c8-types.md make preflight— 19 checks passed in 125.18s (harness 322 passed, 7 skipped, 59 xfailed).Did not call
api.omi.me, PostHog, or any warehouse. Did not migrate a second production tranche. Did not add freeString,double,Map,List, or optional/nullable fields.Tests
Core path:
c8_slice_goldens_test.dartemitsTypeExtensionProbefor{enabled, count, mode}combinations covering 0/1/99 and every enum wire string (off,headphones_only,always) and asserts the adapter payload including globals. Main error path: constructors reject strings/maps/wrong types; a mutated property bag does not stick. Harness probes admit int/enum, rejectString/double/Map/Object/num, and reject degenerate enums.Failure class (fixes)
Failure-Class: none
🤖 Generated with Claude Code