@runtypelabs/persona 1.43.6 → 1.44.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.cjs +24 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.global.js +44 -44
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +24 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client.test.ts +225 -0
- package/src/client.ts +30 -6
- package/src/types.ts +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1942,8 +1942,8 @@ type AgentWidgetConfig = {
|
|
|
1942
1942
|
* // For Runtype API format
|
|
1943
1943
|
* config: {
|
|
1944
1944
|
* parseSSEEvent: (data) => {
|
|
1945
|
-
* if (data.type === 'step_chunk' && data.chunk) {
|
|
1946
|
-
* return { text: data.chunk };
|
|
1945
|
+
* if ((data.type === 'step_delta' || data.type === 'step_chunk') && (data.delta || data.chunk)) {
|
|
1946
|
+
* return { text: data.delta ?? data.chunk };
|
|
1947
1947
|
* }
|
|
1948
1948
|
* if (data.type === 'flow_complete') {
|
|
1949
1949
|
* return { done: true };
|
package/dist/index.d.ts
CHANGED
|
@@ -1942,8 +1942,8 @@ type AgentWidgetConfig = {
|
|
|
1942
1942
|
* // For Runtype API format
|
|
1943
1943
|
* config: {
|
|
1944
1944
|
* parseSSEEvent: (data) => {
|
|
1945
|
-
* if (data.type === 'step_chunk' && data.chunk) {
|
|
1946
|
-
* return { text: data.chunk };
|
|
1945
|
+
* if ((data.type === 'step_delta' || data.type === 'step_chunk') && (data.delta || data.chunk)) {
|
|
1946
|
+
* return { text: data.delta ?? data.chunk };
|
|
1947
1947
|
* }
|
|
1948
1948
|
* if (data.type === 'flow_complete') {
|
|
1949
1949
|
* return { done: true };
|