@runtypelabs/persona 3.35.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.
- package/dist/codegen.cjs +1 -1
- package/dist/codegen.js +1 -1
- package/dist/index.cjs +46 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.global.js +33 -33
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +47 -47
- package/dist/index.js.map +1 -1
- package/dist/install.global.js +1 -1
- package/dist/install.global.js.map +1 -1
- package/dist/smart-dom-reader.d.cts +10 -0
- package/dist/smart-dom-reader.d.ts +10 -0
- package/dist/theme-editor-preview.cjs +48 -48
- package/dist/theme-editor-preview.d.cts +10 -0
- package/dist/theme-editor-preview.d.ts +10 -0
- package/dist/theme-editor-preview.js +49 -49
- package/dist/theme-editor.d.cts +10 -0
- package/dist/theme-editor.d.ts +10 -0
- package/package.json +1 -1
- package/src/client.test.ts +142 -0
- package/src/client.ts +63 -8
- package/src/generated/runtype-openapi-contract.ts +1 -0
- package/src/install.ts +4 -0
- package/src/types.ts +10 -0
- package/src/utils/__fixtures__/unified-translator.oracle.ts +669 -0
- package/src/utils/unified-event-bridge.test.ts +263 -0
- package/src/utils/unified-event-bridge.ts +431 -0
|
@@ -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
|