@runtypelabs/persona 4.28.2 → 4.29.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/wipe.d.cts +1 -1
- package/dist/animations/wipe.d.ts +1 -1
- package/dist/approval-ui.d.cts +1 -1
- package/dist/approval-ui.d.ts +1 -1
- package/dist/artifacts-ui.d.cts +2 -2
- package/dist/artifacts-ui.d.ts +2 -2
- package/dist/chunk-BkW8s3fj.js +2 -0
- package/dist/chunk-CIVsNcrk.js +1 -0
- package/dist/chunk-CKdlNyzM.js +9 -0
- package/dist/{chunk-DrYAfpvk.js → chunk-DjOvgFsn.js} +1 -1
- package/dist/chunk-lA5CJCgK.js +1 -0
- package/dist/client-history.js +1 -1
- package/dist/codegen.cjs +1 -1
- package/dist/codegen.js +1 -1
- package/dist/{composer-input-C39npJaz.d.cts → composer-input-D3sB8_P_.d.cts} +1 -1
- package/dist/{composer-input-C39npJaz.d.ts → composer-input-D3sB8_P_.d.ts} +1 -1
- package/dist/{context-mention-manager-DLCB1l9E.d.cts → context-mention-manager-D2qxE5op.d.cts} +1 -1
- package/dist/{context-mention-manager-DLCB1l9E.d.ts → context-mention-manager-D2qxE5op.d.ts} +1 -1
- package/dist/context-mentions-inline.d.cts +2 -2
- package/dist/context-mentions-inline.d.ts +2 -2
- package/dist/context-mentions.d.cts +3 -3
- package/dist/context-mentions.d.ts +3 -3
- package/dist/{defaults-DiAgWHXy.d.cts → defaults-Dsw66XqE.d.cts} +1 -1
- package/dist/{defaults-DiAgWHXy.d.ts → defaults-Dsw66XqE.d.ts} +1 -1
- package/dist/event-stream-view.d.cts +1 -1
- package/dist/event-stream-view.d.ts +1 -1
- package/dist/{fallback-speech-engine-C5_PUZjH.d.cts → fallback-speech-engine-DJpJcWAk.d.cts} +1 -1
- package/dist/{fallback-speech-engine-C5_PUZjH.d.ts → fallback-speech-engine-DJpJcWAk.d.ts} +1 -1
- package/dist/forms-ui.d.cts +2 -2
- package/dist/forms-ui.d.ts +2 -2
- package/dist/history-view.d.cts +1 -1
- package/dist/history-view.d.ts +1 -1
- package/dist/index.cjs +45 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +34 -33
- package/dist/index.js.map +1 -1
- package/dist/{markdown-parsers-loader-BBdyIEU7.d.cts → markdown-parsers-loader-CCY7T4Up.d.cts} +1 -1
- package/dist/{markdown-parsers-loader-BBdyIEU7.d.ts → markdown-parsers-loader-CCY7T4Up.d.ts} +1 -1
- package/dist/{preview-Chjb0bmI.d.cts → preview-DKKpfTo7.d.cts} +2 -2
- package/dist/{preview-Chjb0bmI.d.ts → preview-DKKpfTo7.d.ts} +2 -2
- package/dist/{session-a_qIp4xp.d.ts → session-DleMr9dZ.d.cts} +13 -7
- package/dist/{session-a_qIp4xp.d.cts → session-DleMr9dZ.d.ts} +13 -7
- package/dist/session-reconnect.d.cts +2 -2
- package/dist/session-reconnect.d.ts +2 -2
- package/dist/smart-dom-reader.d.cts +1 -1
- package/dist/smart-dom-reader.d.ts +1 -1
- package/dist/theme-editor-preview.cjs +41 -40
- package/dist/theme-editor-preview.d.cts +1 -1
- package/dist/theme-editor-preview.d.ts +1 -1
- package/dist/theme-editor-preview.js +20 -20
- package/dist/theme-editor.d.cts +2 -2
- package/dist/theme-editor.d.ts +2 -2
- package/dist/theme-reference.d.cts +2 -2
- package/dist/theme-reference.d.ts +2 -2
- package/dist/{types-BdO1jNRm.d.cts → types-oAZ1VReS.d.cts} +166 -21
- package/dist/{types-BdO1jNRm.d.ts → types-oAZ1VReS.d.ts} +166 -21
- package/dist/voice-client-tools.cjs +1 -0
- package/dist/voice-client-tools.d.cts +13 -0
- package/dist/voice-client-tools.d.ts +13 -0
- package/dist/voice-client-tools.js +1 -0
- package/dist/voice-runtime.cjs +3 -3
- package/dist/voice-runtime.d.cts +7 -3
- package/dist/voice-runtime.d.ts +7 -3
- package/dist/voice-runtime.js +4 -4
- package/dist/voice-worklet-player.d.cts +2 -2
- package/dist/voice-worklet-player.d.ts +2 -2
- package/dist/{webmcp-runtime-entry-B6bpVWSa.d.ts → webmcp-runtime-entry-Deg0NfmB.d.cts} +26 -5
- package/dist/{webmcp-runtime-entry-B6bpVWSa.d.cts → webmcp-runtime-entry-Deg0NfmB.d.ts} +26 -5
- package/dist/webmcp-runtime.cjs +2 -1
- package/dist/webmcp-runtime.d.cts +1 -1
- package/dist/webmcp-runtime.d.ts +1 -1
- package/dist/webmcp-runtime.js +2 -1
- package/package.json +6 -1
- package/src/client.ts +37 -0
- package/src/client.voice-tools.test.ts +65 -0
- package/src/generated/runtype-openapi-contract.ts +38 -0
- package/src/index-core.ts +11 -0
- package/src/index-global.ts +6 -0
- package/src/session.test.ts +26 -0
- package/src/session.ts +8 -1
- package/src/session.voice.test.ts +43 -0
- package/src/types.ts +141 -20
- package/src/voice/runtype-voice-provider.ts +85 -3
- package/src/voice/session-voice-wiring.ts +26 -1
- package/src/voice/voice-client-tools-session.ts +116 -0
- package/src/voice/voice-delegation.ts +9 -0
- package/src/voice/voice.test.ts +360 -0
- package/src/voice-client-tools-bundle.test.ts +37 -0
- package/src/voice-client-tools-loader.ts +24 -0
- package/src/voice-client-tools.ts +9 -0
- package/src/webmcp-bridge.test.ts +152 -1
- package/src/webmcp-bridge.ts +5 -6
- package/src/webmcp-polyfill.integration.test.ts +5 -1
- package/src/webmcp-runtime-entry.ts +151 -26
- package/dist/chunk-CztSjKHK.js +0 -9
- package/dist/chunk-HUOUif-P.js +0 -1
- package/dist/chunk-UlcxdHef.js +0 -1
package/dist/{markdown-parsers-loader-BBdyIEU7.d.cts → markdown-parsers-loader-CCY7T4Up.d.cts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as AgentWidgetConfig, mt as AgentWidgetMessage } from "./types-
|
|
1
|
+
import { T as AgentWidgetConfig, mt as AgentWidgetMessage } from "./types-oAZ1VReS.cjs";
|
|
2
2
|
import { Marked } from "marked";
|
|
3
3
|
import DOMPurify from "dompurify";
|
|
4
4
|
//#region src/components/registry.d.ts
|
package/dist/{markdown-parsers-loader-BBdyIEU7.d.ts → markdown-parsers-loader-CCY7T4Up.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as AgentWidgetConfig, mt as AgentWidgetMessage } from "./types-
|
|
1
|
+
import { T as AgentWidgetConfig, mt as AgentWidgetMessage } from "./types-oAZ1VReS.js";
|
|
2
2
|
import { Marked } from "marked";
|
|
3
3
|
import DOMPurify from "dompurify";
|
|
4
4
|
//#region src/components/registry.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as AgentWidgetConfig, mt as AgentWidgetMessage,
|
|
2
|
-
import { Kn as AgentWidgetController } from "./session-
|
|
1
|
+
import { T as AgentWidgetConfig, mt as AgentWidgetMessage, wa as PersonaTheme, xa as DeepPartial } from "./types-oAZ1VReS.cjs";
|
|
2
|
+
import { Kn as AgentWidgetController } from "./session-DleMr9dZ.cjs";
|
|
3
3
|
//#region src/theme-editor/preview-utils.d.ts
|
|
4
4
|
declare const DEVICE_DIMENSIONS: Record<string, {
|
|
5
5
|
w: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as AgentWidgetConfig, mt as AgentWidgetMessage,
|
|
2
|
-
import { Kn as AgentWidgetController } from "./session-
|
|
1
|
+
import { T as AgentWidgetConfig, mt as AgentWidgetMessage, wa as PersonaTheme, xa as DeepPartial } from "./types-oAZ1VReS.js";
|
|
2
|
+
import { Kn as AgentWidgetController } from "./session-DleMr9dZ.js";
|
|
3
3
|
//#region src/theme-editor/preview-utils.d.ts
|
|
4
4
|
declare const DEVICE_DIMENSIONS: Record<string, {
|
|
5
5
|
w: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
import "./markdown-parsers-loader-
|
|
3
|
-
import { t as MentionSubmitBundle } from "./context-mention-manager-
|
|
4
|
-
import { t as WebMcpBridge$1 } from "./webmcp-runtime-entry-
|
|
5
|
-
import "./fallback-speech-engine-
|
|
6
|
-
import "./defaults-
|
|
1
|
+
import { $n as ComposerOptionsPayload, $r as ResumableHandle, Ai as WebMcpConfirmInfo, Ar as InjectMessageOptions, Ba as AgentWidgetPlugin, Br as PersonaArtifactDisplayModeInput, Cr as HistoryReturnSurface, D as AgentWidgetContentSegment, Di as VoiceStatus, Dr as ImageContentPart, E as AgentWidgetConfigPatch, Ei as VoiceSessionBridge, En as ClientToolDefinition, Gr as PersonaArtifactManualUpsert, Hi as HistoryListResult, I as AgentWidgetContextMentionRef, Ii as WidgetPreferenceSlice, J as AgentWidgetEvent, Jt as AgentWidgetSuggestion, Kt as AgentWidgetStreamParser, Lt as AgentWidgetStateSnapshot, M as AgentWidgetContextMentionItem, Mr as InjectUserMessageOptions, Ni as WidgetHistoryInternals, Nr as LoadingIndicatorRenderContext, Oi as VoiceTranscriptMetadata, Or as InjectAssistantMessageOptions, Pr as MessageContent, Rt as AgentWidgetStorageAdapter, Si as VoiceMetrics, T as AgentWidgetConfig, Ta as PersonaThemePlugin, Ti as VoiceResult, U as AgentWidgetControllerEventMap, Wr as PersonaArtifactKind, Xr as ReadAloudState, Y as AgentWidgetFeatureFlags, Yr as PreparedClientSession, Z as AgentWidgetHeaderLayoutConfig, _n as AskUserQuestionPayload, _r as HistoryConversationPage, _t as AgentWidgetMessageLayoutConfig, ai as SpeechRequest, b as AgentWidgetAttachmentAdapter, br as HistoryDisplayProjection, ca as RuntypeExecutionStreamEvent, ci as TextContentPart, cr as ContentPart, ct as AgentWidgetMarkdownConfig, d as AgentWidgetActionParser, fi as VoiceClientTools, g as AgentWidgetArtifactsFeature, gi as VoiceConfig, gr as HistoryConversationDetail, gt as AgentWidgetMessageFeedback, h as AgentWidgetApprovalDecisionOptions, ht as AgentWidgetMessageActionsConfig, ii as SpeechEngine, ji as WebMcpToolResult, jr as InjectSystemMessageOptions, k as AgentWidgetContextMentionCommandContext, ki as WebMcpConfirmHandler, kr as InjectComponentDirectiveOptions, l as AgentWidgetActionHandler, lt as AgentWidgetMarkdownOptions, mt as AgentWidgetMessage, n as AgentExecutionState, nr as ComposerResubmitOptions, p as AgentWidgetApproval, q as AgentWidgetDockConfig, qr as PersonaArtifactRecord, ri as SpeechCallbacks, rr as ComposerState, rt as AgentWidgetInitOptions, si as StreamAnimationPlugin, sn as AgentWidgetWebMcpConfig, tr as ComposerQuote, ut as AgentWidgetMarkdownRendererOverrides, vr as HistoryConversationPatch, wa as PersonaTheme, wi as VoiceProvider, wn as ClientSession, wr as HistoryScope, x as AgentWidgetAttachmentsConfig, xa as DeepPartial, xn as ClientFeedbackRequest, xr as HistoryIdentityStatus, yr as HistoryConversationSummary, z as AgentWidgetContextMentionSource, zr as PersonaArtifactDisplayMode } from "./types-oAZ1VReS.cjs";
|
|
2
|
+
import "./markdown-parsers-loader-CCY7T4Up.cjs";
|
|
3
|
+
import { t as MentionSubmitBundle } from "./context-mention-manager-D2qxE5op.cjs";
|
|
4
|
+
import { t as WebMcpBridge$1 } from "./webmcp-runtime-entry-Deg0NfmB.cjs";
|
|
5
|
+
import "./fallback-speech-engine-DJpJcWAk.cjs";
|
|
6
|
+
import "./defaults-Dsw66XqE.cjs";
|
|
7
7
|
import { IconNode as IconNode$1 } from "lucide";
|
|
8
8
|
import "marked";
|
|
9
9
|
//#region src/components/message-bubble.d.ts
|
|
@@ -736,6 +736,12 @@ declare class AgentWidgetClient {
|
|
|
736
736
|
* session that it should fall back to the legacy local-tool resume path,
|
|
737
737
|
* if any).
|
|
738
738
|
*/
|
|
739
|
+
/**
|
|
740
|
+
* WebMCP access for a Runtype voice call's fast tier: the same per-turn
|
|
741
|
+
* snapshot `clientTools[]` carries, registry change notifications, and the
|
|
742
|
+
* voice execute path. `null` when WebMCP is not enabled.
|
|
743
|
+
*/
|
|
744
|
+
getVoiceClientTools(): VoiceClientTools | null;
|
|
739
745
|
executeWebMcpToolCall(wireToolName: string, args: unknown, signal?: AbortSignal): Promise<WebMcpToolResult> | null;
|
|
740
746
|
/**
|
|
741
747
|
* Get the current SSE event callback (used to preserve across client recreation)
|
|
@@ -2687,7 +2693,7 @@ declare class AgentWidgetSession {
|
|
|
2687
2693
|
* bridge Promise parked in `requestWebMcpApproval`. No-op if already
|
|
2688
2694
|
* resolved (double-click, re-render).
|
|
2689
2695
|
*/
|
|
2690
|
-
resolveWebMcpApproval(approvalMessageId: string, decision: "approved" | "denied"): void;
|
|
2696
|
+
resolveWebMcpApproval(approvalMessageId: string, decision: "approved" | "denied" | "timeout"): void;
|
|
2691
2697
|
/**
|
|
2692
2698
|
* Resolve a tool approval request (approve or deny).
|
|
2693
2699
|
* Updates the approval message status, calls the API (or custom onDecision),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
import "./markdown-parsers-loader-
|
|
3
|
-
import { t as MentionSubmitBundle } from "./context-mention-manager-
|
|
4
|
-
import { t as WebMcpBridge$1 } from "./webmcp-runtime-entry-
|
|
5
|
-
import "./fallback-speech-engine-
|
|
6
|
-
import "./defaults-
|
|
1
|
+
import { $n as ComposerOptionsPayload, $r as ResumableHandle, Ai as WebMcpConfirmInfo, Ar as InjectMessageOptions, Ba as AgentWidgetPlugin, Br as PersonaArtifactDisplayModeInput, Cr as HistoryReturnSurface, D as AgentWidgetContentSegment, Di as VoiceStatus, Dr as ImageContentPart, E as AgentWidgetConfigPatch, Ei as VoiceSessionBridge, En as ClientToolDefinition, Gr as PersonaArtifactManualUpsert, Hi as HistoryListResult, I as AgentWidgetContextMentionRef, Ii as WidgetPreferenceSlice, J as AgentWidgetEvent, Jt as AgentWidgetSuggestion, Kt as AgentWidgetStreamParser, Lt as AgentWidgetStateSnapshot, M as AgentWidgetContextMentionItem, Mr as InjectUserMessageOptions, Ni as WidgetHistoryInternals, Nr as LoadingIndicatorRenderContext, Oi as VoiceTranscriptMetadata, Or as InjectAssistantMessageOptions, Pr as MessageContent, Rt as AgentWidgetStorageAdapter, Si as VoiceMetrics, T as AgentWidgetConfig, Ta as PersonaThemePlugin, Ti as VoiceResult, U as AgentWidgetControllerEventMap, Wr as PersonaArtifactKind, Xr as ReadAloudState, Y as AgentWidgetFeatureFlags, Yr as PreparedClientSession, Z as AgentWidgetHeaderLayoutConfig, _n as AskUserQuestionPayload, _r as HistoryConversationPage, _t as AgentWidgetMessageLayoutConfig, ai as SpeechRequest, b as AgentWidgetAttachmentAdapter, br as HistoryDisplayProjection, ca as RuntypeExecutionStreamEvent, ci as TextContentPart, cr as ContentPart, ct as AgentWidgetMarkdownConfig, d as AgentWidgetActionParser, fi as VoiceClientTools, g as AgentWidgetArtifactsFeature, gi as VoiceConfig, gr as HistoryConversationDetail, gt as AgentWidgetMessageFeedback, h as AgentWidgetApprovalDecisionOptions, ht as AgentWidgetMessageActionsConfig, ii as SpeechEngine, ji as WebMcpToolResult, jr as InjectSystemMessageOptions, k as AgentWidgetContextMentionCommandContext, ki as WebMcpConfirmHandler, kr as InjectComponentDirectiveOptions, l as AgentWidgetActionHandler, lt as AgentWidgetMarkdownOptions, mt as AgentWidgetMessage, n as AgentExecutionState, nr as ComposerResubmitOptions, p as AgentWidgetApproval, q as AgentWidgetDockConfig, qr as PersonaArtifactRecord, ri as SpeechCallbacks, rr as ComposerState, rt as AgentWidgetInitOptions, si as StreamAnimationPlugin, sn as AgentWidgetWebMcpConfig, tr as ComposerQuote, ut as AgentWidgetMarkdownRendererOverrides, vr as HistoryConversationPatch, wa as PersonaTheme, wi as VoiceProvider, wn as ClientSession, wr as HistoryScope, x as AgentWidgetAttachmentsConfig, xa as DeepPartial, xn as ClientFeedbackRequest, xr as HistoryIdentityStatus, yr as HistoryConversationSummary, z as AgentWidgetContextMentionSource, zr as PersonaArtifactDisplayMode } from "./types-oAZ1VReS.js";
|
|
2
|
+
import "./markdown-parsers-loader-CCY7T4Up.js";
|
|
3
|
+
import { t as MentionSubmitBundle } from "./context-mention-manager-D2qxE5op.js";
|
|
4
|
+
import { t as WebMcpBridge$1 } from "./webmcp-runtime-entry-Deg0NfmB.js";
|
|
5
|
+
import "./fallback-speech-engine-DJpJcWAk.js";
|
|
6
|
+
import "./defaults-Dsw66XqE.js";
|
|
7
7
|
import { IconNode as IconNode$1 } from "lucide";
|
|
8
8
|
import "marked";
|
|
9
9
|
//#region src/components/message-bubble.d.ts
|
|
@@ -736,6 +736,12 @@ declare class AgentWidgetClient {
|
|
|
736
736
|
* session that it should fall back to the legacy local-tool resume path,
|
|
737
737
|
* if any).
|
|
738
738
|
*/
|
|
739
|
+
/**
|
|
740
|
+
* WebMCP access for a Runtype voice call's fast tier: the same per-turn
|
|
741
|
+
* snapshot `clientTools[]` carries, registry change notifications, and the
|
|
742
|
+
* voice execute path. `null` when WebMCP is not enabled.
|
|
743
|
+
*/
|
|
744
|
+
getVoiceClientTools(): VoiceClientTools | null;
|
|
739
745
|
executeWebMcpToolCall(wireToolName: string, args: unknown, signal?: AbortSignal): Promise<WebMcpToolResult> | null;
|
|
740
746
|
/**
|
|
741
747
|
* Get the current SSE event callback (used to preserve across client recreation)
|
|
@@ -2687,7 +2693,7 @@ declare class AgentWidgetSession {
|
|
|
2687
2693
|
* bridge Promise parked in `requestWebMcpApproval`. No-op if already
|
|
2688
2694
|
* resolved (double-click, re-render).
|
|
2689
2695
|
*/
|
|
2690
|
-
resolveWebMcpApproval(approvalMessageId: string, decision: "approved" | "denied"): void;
|
|
2696
|
+
resolveWebMcpApproval(approvalMessageId: string, decision: "approved" | "denied" | "timeout"): void;
|
|
2691
2697
|
/**
|
|
2692
2698
|
* Resolve a tool approval request (approve or deny).
|
|
2693
2699
|
* Updates the approval message status, calls the API (or custom onDecision),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as AgentWidgetSessionStatus } from "./session-
|
|
1
|
+
import { $r as ResumableHandle, T as AgentWidgetConfig, mt as AgentWidgetMessage } from "./types-oAZ1VReS.cjs";
|
|
2
|
+
import { n as AgentWidgetSessionStatus } from "./session-DleMr9dZ.cjs";
|
|
3
3
|
//#region src/session-reconnect.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The narrow surface the reconnect loop needs from the owning session. The
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as AgentWidgetSessionStatus } from "./session-
|
|
1
|
+
import { $r as ResumableHandle, T as AgentWidgetConfig, mt as AgentWidgetMessage } from "./types-oAZ1VReS.js";
|
|
2
|
+
import { n as AgentWidgetSessionStatus } from "./session-DleMr9dZ.js";
|
|
3
3
|
//#region src/session-reconnect.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The narrow surface the reconnect loop needs from the owning session. The
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as AgentWidgetContextMentionItem, V as AgentWidgetContextProvider, z as AgentWidgetContextMentionSource } from "./types-
|
|
1
|
+
import { M as AgentWidgetContextMentionItem, V as AgentWidgetContextProvider, z as AgentWidgetContextMentionSource } from "./types-oAZ1VReS.cjs";
|
|
2
2
|
import { r as EnrichedPageElement } from "./dom-context-DHTabIn7.cjs";
|
|
3
3
|
//#region src/vendor/smart-dom-reader/index.d.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as AgentWidgetContextMentionItem, V as AgentWidgetContextProvider, z as AgentWidgetContextMentionSource } from "./types-
|
|
1
|
+
import { M as AgentWidgetContextMentionItem, V as AgentWidgetContextProvider, z as AgentWidgetContextMentionSource } from "./types-oAZ1VReS.js";
|
|
2
2
|
import { r as EnrichedPageElement } from "./dom-context-DHTabIn7.js";
|
|
3
3
|
//#region src/vendor/smart-dom-reader/index.d.ts
|
|
4
4
|
/**
|