@runtypelabs/persona 3.14.0 → 3.15.0

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.
package/dist/index.d.cts CHANGED
@@ -3384,6 +3384,15 @@ type AgentWidgetConfig = {
3384
3384
  * ```
3385
3385
  */
3386
3386
  parseSSEEvent?: AgentWidgetSSEEventParser;
3387
+ /**
3388
+ * Called for every parsed SSE frame (after JSON parse), before native handling.
3389
+ * Use for lightweight side effects (e.g. telemetry). Does not replace native
3390
+ * streaming; pair with {@link parseSSEEvent} only when you need to override text mapping.
3391
+ *
3392
+ * When the event stream inspector is enabled, this runs in the same order as
3393
+ * events are appended to the inspector buffer.
3394
+ */
3395
+ onSSEEvent?: (eventType: string, payload: unknown) => void;
3387
3396
  /**
3388
3397
  * Layout configuration for customizing widget appearance and structure.
3389
3398
  * Provides control over header, messages, and content slots.
package/dist/index.d.ts CHANGED
@@ -3384,6 +3384,15 @@ type AgentWidgetConfig = {
3384
3384
  * ```
3385
3385
  */
3386
3386
  parseSSEEvent?: AgentWidgetSSEEventParser;
3387
+ /**
3388
+ * Called for every parsed SSE frame (after JSON parse), before native handling.
3389
+ * Use for lightweight side effects (e.g. telemetry). Does not replace native
3390
+ * streaming; pair with {@link parseSSEEvent} only when you need to override text mapping.
3391
+ *
3392
+ * When the event stream inspector is enabled, this runs in the same order as
3393
+ * events are appended to the inspector buffer.
3394
+ */
3395
+ onSSEEvent?: (eventType: string, payload: unknown) => void;
3387
3396
  /**
3388
3397
  * Layout configuration for customizing widget appearance and structure.
3389
3398
  * Provides control over header, messages, and content slots.