feat: add widget support to JS client library
Add widget_update and widget_clear message handling to _handleMessage,
onWidgetUpdate/onWidgetClear callbacks to constructor options, and
sendWidgetEvent method for sending widget events to the worker.
Update TypeScript declarations with corresponding interfaces and types.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>