Widen an update type so its messages field also accepts
@langchain/core BaseMessage class instances (single or
array). Framework bindings apply this to submit() so callers can
write stream.submit({ messages: [new HumanMessage("hi")] }).
Port of the legacy AcceptBaseMessages<T> helper; the public name
matches the v1 spec in plan-types.md §8.
WidenUpdateMessages: T extends Record<
string,
unknown
> { [K in keyof T]: K extends "messages"