@runtypelabs/persona 3.14.0 → 3.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3217,6 +3217,15 @@ type AgentWidgetConfig = {
3217
3217
  * ```
3218
3218
  */
3219
3219
  parseSSEEvent?: AgentWidgetSSEEventParser;
3220
+ /**
3221
+ * Called for every parsed SSE frame (after JSON parse), before native handling.
3222
+ * Use for lightweight side effects (e.g. telemetry). Does not replace native
3223
+ * streaming; pair with {@link parseSSEEvent} only when you need to override text mapping.
3224
+ *
3225
+ * When the event stream inspector is enabled, this runs in the same order as
3226
+ * events are appended to the inspector buffer.
3227
+ */
3228
+ onSSEEvent?: (eventType: string, payload: unknown) => void;
3220
3229
  /**
3221
3230
  * Layout configuration for customizing widget appearance and structure.
3222
3231
  * Provides control over header, messages, and content slots.
@@ -3217,6 +3217,15 @@ type AgentWidgetConfig = {
3217
3217
  * ```
3218
3218
  */
3219
3219
  parseSSEEvent?: AgentWidgetSSEEventParser;
3220
+ /**
3221
+ * Called for every parsed SSE frame (after JSON parse), before native handling.
3222
+ * Use for lightweight side effects (e.g. telemetry). Does not replace native
3223
+ * streaming; pair with {@link parseSSEEvent} only when you need to override text mapping.
3224
+ *
3225
+ * When the event stream inspector is enabled, this runs in the same order as
3226
+ * events are appended to the inspector buffer.
3227
+ */
3228
+ onSSEEvent?: (eventType: string, payload: unknown) => void;
3220
3229
  /**
3221
3230
  * Layout configuration for customizing widget appearance and structure.
3222
3231
  * Provides control over header, messages, and content slots.