@runtypelabs/persona 3.36.0 → 3.37.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.
@@ -4974,6 +4974,16 @@ type AgentWidgetConfig = {
4974
4974
  * ```
4975
4975
  */
4976
4976
  parseSSEEvent?: AgentWidgetSSEEventParser;
4977
+ /**
4978
+ * Wire vocabulary requested from the dispatch endpoint.
4979
+ * - `'legacy'` (default): the current `agent_*` / `flow_*` SSE events.
4980
+ * - `'unified'`: opt into the API's neutral unified event vocabulary by sending
4981
+ * `?events=unified`; incoming frames are transparently bridged back to the same
4982
+ * handlers, so rendering is unchanged. Requires an upstream that honors the
4983
+ * param — the widget detects the actual wire mode from the first stream frame
4984
+ * and falls back to legacy automatically if the param was ignored.
4985
+ */
4986
+ events?: "legacy" | "unified";
4977
4987
  /**
4978
4988
  * Called for every parsed SSE frame (after JSON parse), before native handling.
4979
4989
  * Use for lightweight side effects (e.g. telemetry). Does not replace native
@@ -4974,6 +4974,16 @@ type AgentWidgetConfig = {
4974
4974
  * ```
4975
4975
  */
4976
4976
  parseSSEEvent?: AgentWidgetSSEEventParser;
4977
+ /**
4978
+ * Wire vocabulary requested from the dispatch endpoint.
4979
+ * - `'legacy'` (default): the current `agent_*` / `flow_*` SSE events.
4980
+ * - `'unified'`: opt into the API's neutral unified event vocabulary by sending
4981
+ * `?events=unified`; incoming frames are transparently bridged back to the same
4982
+ * handlers, so rendering is unchanged. Requires an upstream that honors the
4983
+ * param — the widget detects the actual wire mode from the first stream frame
4984
+ * and falls back to legacy automatically if the param was ignored.
4985
+ */
4986
+ events?: "legacy" | "unified";
4977
4987
  /**
4978
4988
  * Called for every parsed SSE frame (after JSON parse), before native handling.
4979
4989
  * Use for lightweight side effects (e.g. telemetry). Does not replace native