@runtypelabs/persona 4.20.0 → 4.21.1
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 +63 -63
- 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 +48 -48
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +63 -63
- 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 +65 -65
- package/dist/theme-editor-preview.d.cts +22 -0
- package/dist/theme-editor-preview.d.ts +22 -0
- package/dist/theme-editor-preview.js +43 -43
- 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 +473 -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 +95 -7
|
@@ -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
|
|
@@ -7420,6 +7438,10 @@ type ClientSession = {
|
|
|
7420
7438
|
targetId?: string;
|
|
7421
7439
|
/** Opaque change token; differs whenever the conversation transcript mutated. */
|
|
7422
7440
|
conversationRevision?: string;
|
|
7441
|
+
/** Server-negotiated durable reconnect support for this client-token session. */
|
|
7442
|
+
durableRecovery?: {
|
|
7443
|
+
enabled: boolean;
|
|
7444
|
+
};
|
|
7423
7445
|
/** Visitor grant backing history. `token` appears only at mint. */
|
|
7424
7446
|
visitor?: ClientVisitorGrant;
|
|
7425
7447
|
/** 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
|
|
@@ -7420,6 +7438,10 @@ type ClientSession = {
|
|
|
7420
7438
|
targetId?: string;
|
|
7421
7439
|
/** Opaque change token; differs whenever the conversation transcript mutated. */
|
|
7422
7440
|
conversationRevision?: string;
|
|
7441
|
+
/** Server-negotiated durable reconnect support for this client-token session. */
|
|
7442
|
+
durableRecovery?: {
|
|
7443
|
+
enabled: boolean;
|
|
7444
|
+
};
|
|
7423
7445
|
/** Visitor grant backing history. `token` appears only at mint. */
|
|
7424
7446
|
visitor?: ClientVisitorGrant;
|
|
7425
7447
|
/** Configuration from the server */
|