@runtypelabs/persona 4.28.0 → 4.28.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/README.md +25 -0
- package/dist/{approval-ui-QAKWNFNM.js → approval-ui-OBBI62ES.js} +1 -1
- package/dist/approval-ui.cjs +2 -2
- package/dist/approval-ui.d.cts +7 -5
- package/dist/approval-ui.d.ts +7 -5
- package/dist/approval-ui.js +2 -2
- package/dist/artifacts-ui.d.cts +7 -5
- package/dist/artifacts-ui.d.ts +7 -5
- package/dist/{chunk-NQLDCJAP.js → chunk-D4TDKCT5.js} +2 -2
- package/dist/chunk-FNXK3VTC.js +1 -0
- package/dist/{client-history-LV3KHEFA.js → client-history-QGAFMCBE.js} +1 -1
- package/dist/client-history.js +1 -1
- package/dist/{client-stream-N22JHTLE.js → client-stream-WXD2FL23.js} +1 -1
- package/dist/client-stream.js +3 -3
- package/dist/codegen.cjs +4 -4
- package/dist/codegen.js +5 -5
- package/dist/context-mentions.d.cts +7 -5
- package/dist/context-mentions.d.ts +7 -5
- package/dist/event-stream-view.d.cts +7 -5
- package/dist/event-stream-view.d.ts +7 -5
- package/dist/forms-ui.d.cts +7 -5
- package/dist/forms-ui.d.ts +7 -5
- package/dist/index.cjs +40 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -30
- package/dist/index.d.ts +32 -30
- package/dist/index.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +41 -41
- package/dist/index.js.map +1 -1
- package/dist/session-reconnect.d.cts +7 -5
- package/dist/session-reconnect.d.ts +7 -5
- package/dist/smart-dom-reader.d.cts +7 -5
- package/dist/smart-dom-reader.d.ts +7 -5
- package/dist/theme-editor-preview.cjs +51 -51
- package/dist/theme-editor-preview.d.cts +7 -5
- package/dist/theme-editor-preview.d.ts +7 -5
- package/dist/theme-editor-preview.js +4 -4
- package/dist/theme-editor.d.cts +8 -6
- package/dist/theme-editor.d.ts +8 -6
- package/dist/{voice-runtime-LVUMPUDS.js → voice-runtime-TWFJ4UUS.js} +1 -1
- package/dist/voice-runtime.cjs +1 -1
- package/dist/voice-runtime.d.cts +7 -5
- package/dist/voice-runtime.d.ts +7 -5
- package/dist/voice-runtime.js +1 -1
- package/dist/webmcp-runtime-5Q3IHAHP.js +6 -0
- package/dist/webmcp-runtime.cjs +2 -2
- package/dist/webmcp-runtime.d.cts +22 -26
- package/dist/webmcp-runtime.d.ts +22 -26
- package/dist/webmcp-runtime.js +2 -2
- package/package.json +5 -2
- package/src/generated/runtype-openapi-contract.ts +3 -0
- package/src/theme-editor/webmcp/types.ts +1 -1
- package/src/types.ts +7 -5
- package/src/webmcp-bridge.test.ts +87 -21
- package/src/webmcp-bridge.ts +21 -26
- package/src/webmcp-polyfill.integration.test.ts +339 -0
- package/src/webmcp-polyfill.ts +7 -4
- package/src/webmcp-runtime-bundle.test.ts +1 -1
- package/src/webmcp-runtime-entry.ts +34 -19
- package/dist/chunk-AALCT54S.js +0 -1
- package/dist/webmcp-runtime-V6ZWW3PI.js +0 -6
|
@@ -3214,9 +3214,8 @@ type WebMcpConfirmInfo = {
|
|
|
3214
3214
|
};
|
|
3215
3215
|
/**
|
|
3216
3216
|
* Why the confirm was requested. Currently always `'gate'`: the default
|
|
3217
|
-
* confirm-by-default gate that fires before every `webmcp:*` call.
|
|
3218
|
-
*
|
|
3219
|
-
* internally, so Persona no longer surfaces a nested in-tool confirm.)
|
|
3217
|
+
* confirm-by-default gate that fires before every `webmcp:*` call. Tool
|
|
3218
|
+
* callbacks on v6 receive an AbortSignal, not a nested confirmation API.
|
|
3220
3219
|
*/
|
|
3221
3220
|
reason: 'gate';
|
|
3222
3221
|
};
|
|
@@ -9287,8 +9286,11 @@ type AgentWidgetConfig = {
|
|
|
9287
9286
|
/**
|
|
9288
9287
|
* WebMCP: consume page-registered tools (`document.modelContext.registerTool`).
|
|
9289
9288
|
* When `enabled`, the widget installs `@mcp-b/webmcp-polyfill`, snapshots the
|
|
9290
|
-
* registry on every dispatch, ships it as `clientTools[]`,
|
|
9291
|
-
* returned `webmcp:*`
|
|
9289
|
+
* current document's registry on every dispatch, ships it as `clientTools[]`,
|
|
9290
|
+
* and executes returned `webmcp:*` calls with confirm-by-default gating.
|
|
9291
|
+
* Supports host-installed v5 JSON-string and v6 object-input contracts.
|
|
9292
|
+
* The automatic fallback stays on v5 to preserve existing browser support
|
|
9293
|
+
* and callback-result behavior.
|
|
9292
9294
|
*
|
|
9293
9295
|
* Server-side policy on the chat surface is the source of truth: these
|
|
9294
9296
|
* fields layer on top.
|
|
@@ -3214,9 +3214,8 @@ type WebMcpConfirmInfo = {
|
|
|
3214
3214
|
};
|
|
3215
3215
|
/**
|
|
3216
3216
|
* Why the confirm was requested. Currently always `'gate'`: the default
|
|
3217
|
-
* confirm-by-default gate that fires before every `webmcp:*` call.
|
|
3218
|
-
*
|
|
3219
|
-
* internally, so Persona no longer surfaces a nested in-tool confirm.)
|
|
3217
|
+
* confirm-by-default gate that fires before every `webmcp:*` call. Tool
|
|
3218
|
+
* callbacks on v6 receive an AbortSignal, not a nested confirmation API.
|
|
3220
3219
|
*/
|
|
3221
3220
|
reason: 'gate';
|
|
3222
3221
|
};
|
|
@@ -9287,8 +9286,11 @@ type AgentWidgetConfig = {
|
|
|
9287
9286
|
/**
|
|
9288
9287
|
* WebMCP: consume page-registered tools (`document.modelContext.registerTool`).
|
|
9289
9288
|
* When `enabled`, the widget installs `@mcp-b/webmcp-polyfill`, snapshots the
|
|
9290
|
-
* registry on every dispatch, ships it as `clientTools[]`,
|
|
9291
|
-
* returned `webmcp:*`
|
|
9289
|
+
* current document's registry on every dispatch, ships it as `clientTools[]`,
|
|
9290
|
+
* and executes returned `webmcp:*` calls with confirm-by-default gating.
|
|
9291
|
+
* Supports host-installed v5 JSON-string and v6 object-input contracts.
|
|
9292
|
+
* The automatic fallback stays on v5 to preserve existing browser support
|
|
9293
|
+
* and callback-result behavior.
|
|
9292
9294
|
*
|
|
9293
9295
|
* Server-side policy on the chat surface is the source of truth: these
|
|
9294
9296
|
* fields layer on top.
|
|
@@ -3483,9 +3483,8 @@ type WebMcpConfirmInfo = {
|
|
|
3483
3483
|
};
|
|
3484
3484
|
/**
|
|
3485
3485
|
* Why the confirm was requested. Currently always `'gate'`: the default
|
|
3486
|
-
* confirm-by-default gate that fires before every `webmcp:*` call.
|
|
3487
|
-
*
|
|
3488
|
-
* internally, so Persona no longer surfaces a nested in-tool confirm.)
|
|
3486
|
+
* confirm-by-default gate that fires before every `webmcp:*` call. Tool
|
|
3487
|
+
* callbacks on v6 receive an AbortSignal, not a nested confirmation API.
|
|
3489
3488
|
*/
|
|
3490
3489
|
reason: 'gate';
|
|
3491
3490
|
};
|
|
@@ -9556,8 +9555,11 @@ type AgentWidgetConfig = {
|
|
|
9556
9555
|
/**
|
|
9557
9556
|
* WebMCP: consume page-registered tools (`document.modelContext.registerTool`).
|
|
9558
9557
|
* When `enabled`, the widget installs `@mcp-b/webmcp-polyfill`, snapshots the
|
|
9559
|
-
* registry on every dispatch, ships it as `clientTools[]`,
|
|
9560
|
-
* returned `webmcp:*`
|
|
9558
|
+
* current document's registry on every dispatch, ships it as `clientTools[]`,
|
|
9559
|
+
* and executes returned `webmcp:*` calls with confirm-by-default gating.
|
|
9560
|
+
* Supports host-installed v5 JSON-string and v6 object-input contracts.
|
|
9561
|
+
* The automatic fallback stays on v5 to preserve existing browser support
|
|
9562
|
+
* and callback-result behavior.
|
|
9561
9563
|
*
|
|
9562
9564
|
* Server-side policy on the chat surface is the source of truth: these
|
|
9563
9565
|
* fields layer on top.
|
|
@@ -3483,9 +3483,8 @@ type WebMcpConfirmInfo = {
|
|
|
3483
3483
|
};
|
|
3484
3484
|
/**
|
|
3485
3485
|
* Why the confirm was requested. Currently always `'gate'`: the default
|
|
3486
|
-
* confirm-by-default gate that fires before every `webmcp:*` call.
|
|
3487
|
-
*
|
|
3488
|
-
* internally, so Persona no longer surfaces a nested in-tool confirm.)
|
|
3486
|
+
* confirm-by-default gate that fires before every `webmcp:*` call. Tool
|
|
3487
|
+
* callbacks on v6 receive an AbortSignal, not a nested confirmation API.
|
|
3489
3488
|
*/
|
|
3490
3489
|
reason: 'gate';
|
|
3491
3490
|
};
|
|
@@ -9556,8 +9555,11 @@ type AgentWidgetConfig = {
|
|
|
9556
9555
|
/**
|
|
9557
9556
|
* WebMCP: consume page-registered tools (`document.modelContext.registerTool`).
|
|
9558
9557
|
* When `enabled`, the widget installs `@mcp-b/webmcp-polyfill`, snapshots the
|
|
9559
|
-
* registry on every dispatch, ships it as `clientTools[]`,
|
|
9560
|
-
* returned `webmcp:*`
|
|
9558
|
+
* current document's registry on every dispatch, ships it as `clientTools[]`,
|
|
9559
|
+
* and executes returned `webmcp:*` calls with confirm-by-default gating.
|
|
9560
|
+
* Supports host-installed v5 JSON-string and v6 object-input contracts.
|
|
9561
|
+
* The automatic fallback stays on v5 to preserve existing browser support
|
|
9562
|
+
* and callback-result behavior.
|
|
9561
9563
|
*
|
|
9562
9564
|
* Server-side policy on the chat surface is the source of truth: these
|
|
9563
9565
|
* fields layer on top.
|