@runtypelabs/persona 4.20.0 → 4.21.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/animations/glyph-cycle.d.cts +1 -1
- package/dist/animations/glyph-cycle.d.ts +1 -1
- package/dist/animations/{types-CG-bLFmk.d.cts → types-B_JdVK9o.d.cts} +2 -0
- package/dist/animations/{types-CG-bLFmk.d.ts → types-B_JdVK9o.d.ts} +2 -0
- package/dist/animations/wipe.d.cts +1 -1
- package/dist/animations/wipe.d.ts +1 -1
- package/dist/animations-extra.d.cts +2 -0
- package/dist/animations-extra.d.ts +2 -0
- package/dist/approval-ui.d.cts +22 -0
- package/dist/approval-ui.d.ts +22 -0
- package/dist/artifacts-ui.d.cts +22 -0
- package/dist/artifacts-ui.d.ts +22 -0
- package/dist/codegen.cjs +1 -1
- package/dist/codegen.js +1 -1
- package/dist/context-mentions.d.cts +22 -0
- package/dist/context-mentions.d.ts +22 -0
- package/dist/event-stream-view.d.cts +22 -0
- package/dist/event-stream-view.d.ts +22 -0
- package/dist/forms-ui.d.cts +46 -4
- package/dist/forms-ui.d.ts +46 -4
- package/dist/history-view.d.cts +2 -0
- package/dist/history-view.d.ts +2 -0
- package/dist/index.cjs +43 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -4
- package/dist/index.d.ts +50 -4
- package/dist/index.global.js +30 -30
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +43 -43
- package/dist/index.js.map +1 -1
- package/dist/session-reconnect.d.cts +22 -0
- package/dist/session-reconnect.d.ts +22 -0
- package/dist/smart-dom-reader.d.cts +22 -0
- package/dist/smart-dom-reader.d.ts +22 -0
- package/dist/theme-editor-preview.cjs +53 -53
- package/dist/theme-editor-preview.d.cts +22 -0
- package/dist/theme-editor-preview.d.ts +22 -0
- package/dist/theme-editor-preview.js +31 -31
- package/dist/theme-editor.d.cts +22 -0
- package/dist/theme-editor.d.ts +22 -0
- package/dist/webmcp-runtime.d.cts +16 -0
- package/dist/webmcp-runtime.d.ts +16 -0
- package/package.json +1 -1
- package/src/client-visitor-history.test.ts +342 -3
- package/src/client.test.ts +141 -3
- package/src/client.ts +157 -39
- package/src/generated/runtype-openapi-contract.ts +2 -0
- package/src/session.ts +139 -103
- package/src/session.webmcp.test.ts +48 -1
- package/src/types.ts +30 -0
- package/src/ui.history-lifecycle.test.ts +2 -2
- package/src/ui.ts +77 -6
|
@@ -1644,8 +1644,10 @@ type RuntypeExecutionStreamEvent = ({
|
|
|
1644
1644
|
message: string;
|
|
1645
1645
|
};
|
|
1646
1646
|
executionId: string;
|
|
1647
|
+
finalOutput?: string;
|
|
1647
1648
|
kind: "agent" | "flow";
|
|
1648
1649
|
seq: number;
|
|
1650
|
+
stopReason?: string;
|
|
1649
1651
|
type: "execution_error";
|
|
1650
1652
|
upgradeUrl?: string;
|
|
1651
1653
|
}) | ({
|
|
@@ -2979,6 +2981,22 @@ type AgentWidgetWebMcpConfig = {
|
|
|
2979
2981
|
* `window.confirm` fallback only applies when no widget UI is attached.
|
|
2980
2982
|
*/
|
|
2981
2983
|
onConfirm?: WebMcpConfirmHandler;
|
|
2984
|
+
/**
|
|
2985
|
+
* How the widget runs the `webmcp:*` calls of ONE turn when the model emits
|
|
2986
|
+
* several at once.
|
|
2987
|
+
*
|
|
2988
|
+
* - `'parallel'` (default): every call executes concurrently and a gated
|
|
2989
|
+
* sibling's approval never blocks another's execution. Right for
|
|
2990
|
+
* independent, order-insensitive tools (catalog lookups, add-to-cart).
|
|
2991
|
+
* - `'sequential'`: calls execute one at a time, in the order the model
|
|
2992
|
+
* emitted them; the next starts only after the previous one settles
|
|
2993
|
+
* (including its approval bubble). Use this when the page tools share
|
|
2994
|
+
* mutable state that concurrent execution would interleave, e.g. a
|
|
2995
|
+
* canvas where every stroke selects a color/tool before drawing.
|
|
2996
|
+
*
|
|
2997
|
+
* Either way, all outputs still return to the server in a single `/resume`.
|
|
2998
|
+
*/
|
|
2999
|
+
execution?: 'parallel' | 'sequential';
|
|
2982
3000
|
};
|
|
2983
3001
|
/**
|
|
2984
3002
|
* The coordinates needed to resume a durable agent turn after the SSE
|
|
@@ -7268,6 +7286,10 @@ type ClientSession = {
|
|
|
7268
7286
|
targetId?: string;
|
|
7269
7287
|
/** Opaque change token; differs whenever the conversation transcript mutated. */
|
|
7270
7288
|
conversationRevision?: string;
|
|
7289
|
+
/** Server-negotiated durable reconnect support for this client-token session. */
|
|
7290
|
+
durableRecovery?: {
|
|
7291
|
+
enabled: boolean;
|
|
7292
|
+
};
|
|
7271
7293
|
/** Visitor grant backing history. `token` appears only at mint. */
|
|
7272
7294
|
visitor?: ClientVisitorGrant;
|
|
7273
7295
|
/** Configuration from the server */
|
|
@@ -1644,8 +1644,10 @@ type RuntypeExecutionStreamEvent = ({
|
|
|
1644
1644
|
message: string;
|
|
1645
1645
|
};
|
|
1646
1646
|
executionId: string;
|
|
1647
|
+
finalOutput?: string;
|
|
1647
1648
|
kind: "agent" | "flow";
|
|
1648
1649
|
seq: number;
|
|
1650
|
+
stopReason?: string;
|
|
1649
1651
|
type: "execution_error";
|
|
1650
1652
|
upgradeUrl?: string;
|
|
1651
1653
|
}) | ({
|
|
@@ -2979,6 +2981,22 @@ type AgentWidgetWebMcpConfig = {
|
|
|
2979
2981
|
* `window.confirm` fallback only applies when no widget UI is attached.
|
|
2980
2982
|
*/
|
|
2981
2983
|
onConfirm?: WebMcpConfirmHandler;
|
|
2984
|
+
/**
|
|
2985
|
+
* How the widget runs the `webmcp:*` calls of ONE turn when the model emits
|
|
2986
|
+
* several at once.
|
|
2987
|
+
*
|
|
2988
|
+
* - `'parallel'` (default): every call executes concurrently and a gated
|
|
2989
|
+
* sibling's approval never blocks another's execution. Right for
|
|
2990
|
+
* independent, order-insensitive tools (catalog lookups, add-to-cart).
|
|
2991
|
+
* - `'sequential'`: calls execute one at a time, in the order the model
|
|
2992
|
+
* emitted them; the next starts only after the previous one settles
|
|
2993
|
+
* (including its approval bubble). Use this when the page tools share
|
|
2994
|
+
* mutable state that concurrent execution would interleave, e.g. a
|
|
2995
|
+
* canvas where every stroke selects a color/tool before drawing.
|
|
2996
|
+
*
|
|
2997
|
+
* Either way, all outputs still return to the server in a single `/resume`.
|
|
2998
|
+
*/
|
|
2999
|
+
execution?: 'parallel' | 'sequential';
|
|
2982
3000
|
};
|
|
2983
3001
|
/**
|
|
2984
3002
|
* The coordinates needed to resume a durable agent turn after the SSE
|
|
@@ -7268,6 +7286,10 @@ type ClientSession = {
|
|
|
7268
7286
|
targetId?: string;
|
|
7269
7287
|
/** Opaque change token; differs whenever the conversation transcript mutated. */
|
|
7270
7288
|
conversationRevision?: string;
|
|
7289
|
+
/** Server-negotiated durable reconnect support for this client-token session. */
|
|
7290
|
+
durableRecovery?: {
|
|
7291
|
+
enabled: boolean;
|
|
7292
|
+
};
|
|
7271
7293
|
/** Visitor grant backing history. `token` appears only at mint. */
|
|
7272
7294
|
visitor?: ClientVisitorGrant;
|
|
7273
7295
|
/** Configuration from the server */
|
|
@@ -1913,8 +1913,10 @@ type RuntypeExecutionStreamEvent = ({
|
|
|
1913
1913
|
message: string;
|
|
1914
1914
|
};
|
|
1915
1915
|
executionId: string;
|
|
1916
|
+
finalOutput?: string;
|
|
1916
1917
|
kind: "agent" | "flow";
|
|
1917
1918
|
seq: number;
|
|
1919
|
+
stopReason?: string;
|
|
1918
1920
|
type: "execution_error";
|
|
1919
1921
|
upgradeUrl?: string;
|
|
1920
1922
|
}) | ({
|
|
@@ -3248,6 +3250,22 @@ type AgentWidgetWebMcpConfig = {
|
|
|
3248
3250
|
* `window.confirm` fallback only applies when no widget UI is attached.
|
|
3249
3251
|
*/
|
|
3250
3252
|
onConfirm?: WebMcpConfirmHandler;
|
|
3253
|
+
/**
|
|
3254
|
+
* How the widget runs the `webmcp:*` calls of ONE turn when the model emits
|
|
3255
|
+
* several at once.
|
|
3256
|
+
*
|
|
3257
|
+
* - `'parallel'` (default): every call executes concurrently and a gated
|
|
3258
|
+
* sibling's approval never blocks another's execution. Right for
|
|
3259
|
+
* independent, order-insensitive tools (catalog lookups, add-to-cart).
|
|
3260
|
+
* - `'sequential'`: calls execute one at a time, in the order the model
|
|
3261
|
+
* emitted them; the next starts only after the previous one settles
|
|
3262
|
+
* (including its approval bubble). Use this when the page tools share
|
|
3263
|
+
* mutable state that concurrent execution would interleave, e.g. a
|
|
3264
|
+
* canvas where every stroke selects a color/tool before drawing.
|
|
3265
|
+
*
|
|
3266
|
+
* Either way, all outputs still return to the server in a single `/resume`.
|
|
3267
|
+
*/
|
|
3268
|
+
execution?: 'parallel' | 'sequential';
|
|
3251
3269
|
};
|
|
3252
3270
|
/**
|
|
3253
3271
|
* The coordinates needed to resume a durable agent turn after the SSE
|
|
@@ -7537,6 +7555,10 @@ type ClientSession = {
|
|
|
7537
7555
|
targetId?: string;
|
|
7538
7556
|
/** Opaque change token; differs whenever the conversation transcript mutated. */
|
|
7539
7557
|
conversationRevision?: string;
|
|
7558
|
+
/** Server-negotiated durable reconnect support for this client-token session. */
|
|
7559
|
+
durableRecovery?: {
|
|
7560
|
+
enabled: boolean;
|
|
7561
|
+
};
|
|
7540
7562
|
/** Visitor grant backing history. `token` appears only at mint. */
|
|
7541
7563
|
visitor?: ClientVisitorGrant;
|
|
7542
7564
|
/** Configuration from the server */
|
|
@@ -1913,8 +1913,10 @@ type RuntypeExecutionStreamEvent = ({
|
|
|
1913
1913
|
message: string;
|
|
1914
1914
|
};
|
|
1915
1915
|
executionId: string;
|
|
1916
|
+
finalOutput?: string;
|
|
1916
1917
|
kind: "agent" | "flow";
|
|
1917
1918
|
seq: number;
|
|
1919
|
+
stopReason?: string;
|
|
1918
1920
|
type: "execution_error";
|
|
1919
1921
|
upgradeUrl?: string;
|
|
1920
1922
|
}) | ({
|
|
@@ -3248,6 +3250,22 @@ type AgentWidgetWebMcpConfig = {
|
|
|
3248
3250
|
* `window.confirm` fallback only applies when no widget UI is attached.
|
|
3249
3251
|
*/
|
|
3250
3252
|
onConfirm?: WebMcpConfirmHandler;
|
|
3253
|
+
/**
|
|
3254
|
+
* How the widget runs the `webmcp:*` calls of ONE turn when the model emits
|
|
3255
|
+
* several at once.
|
|
3256
|
+
*
|
|
3257
|
+
* - `'parallel'` (default): every call executes concurrently and a gated
|
|
3258
|
+
* sibling's approval never blocks another's execution. Right for
|
|
3259
|
+
* independent, order-insensitive tools (catalog lookups, add-to-cart).
|
|
3260
|
+
* - `'sequential'`: calls execute one at a time, in the order the model
|
|
3261
|
+
* emitted them; the next starts only after the previous one settles
|
|
3262
|
+
* (including its approval bubble). Use this when the page tools share
|
|
3263
|
+
* mutable state that concurrent execution would interleave, e.g. a
|
|
3264
|
+
* canvas where every stroke selects a color/tool before drawing.
|
|
3265
|
+
*
|
|
3266
|
+
* Either way, all outputs still return to the server in a single `/resume`.
|
|
3267
|
+
*/
|
|
3268
|
+
execution?: 'parallel' | 'sequential';
|
|
3251
3269
|
};
|
|
3252
3270
|
/**
|
|
3253
3271
|
* The coordinates needed to resume a durable agent turn after the SSE
|
|
@@ -7537,6 +7555,10 @@ type ClientSession = {
|
|
|
7537
7555
|
targetId?: string;
|
|
7538
7556
|
/** Opaque change token; differs whenever the conversation transcript mutated. */
|
|
7539
7557
|
conversationRevision?: string;
|
|
7558
|
+
/** Server-negotiated durable reconnect support for this client-token session. */
|
|
7559
|
+
durableRecovery?: {
|
|
7560
|
+
enabled: boolean;
|
|
7561
|
+
};
|
|
7540
7562
|
/** Visitor grant backing history. `token` appears only at mint. */
|
|
7541
7563
|
visitor?: ClientVisitorGrant;
|
|
7542
7564
|
/** Configuration from the server */
|