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
fix(agent): make UpdateListen provider shim a merged shape, not a union
The union-based shim fixed construction and `model` reads but left a third
regression: property access on a union requires the property on every arm, so
reads of the V2-only tuning fields (eot_threshold, eager_eot_threshold,
eot_timeout_ms, language_hints) failed with TS2339 because the generated union's
V1 arm lacks them. No union can fix that.
Model the field as a single merged shape instead: Omit<DeepgramListenProviderV2,
'version'> (keeping every previously-readable field readable and `model`
required) with `version` widened to string for the new v1/v2 selection, plus the
two V1-only fields as optional additions. Deriving from DeepgramListenProviderV2
means future V2 field changes flow through automatically.
Verified against a main worktree: all three pre-regen patterns compile and the
new explicit v1 selection also works, so the field is now a strict superset of
main. Extends the regression coverage to all three break modes.
0 commit comments