@runtypelabs/persona 4.33.0 → 4.35.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/activity-ui.d.cts +3 -15
- package/dist/activity-ui.d.ts +3 -15
- package/dist/animations/glyph-cycle.d.cts +1 -3
- package/dist/animations/glyph-cycle.d.ts +1 -3
- package/dist/animations/wipe.d.cts +1 -3
- package/dist/animations/wipe.d.ts +1 -3
- package/dist/approval-ui.cjs +2 -2
- package/dist/approval-ui.d.cts +3 -15
- package/dist/approval-ui.d.ts +3 -15
- package/dist/approval-ui.js +1 -1
- package/dist/artifacts-ui.cjs +1 -1
- package/dist/artifacts-ui.d.cts +3 -21
- package/dist/artifacts-ui.d.ts +3 -21
- package/dist/background-runtime.d.cts +2 -3
- package/dist/background-runtime.d.ts +2 -3
- package/dist/{chunk-DW7Vg_l2.js → chunk-B1P8w9_X.js} +1 -1
- package/dist/{chunk-D6U0E82p.js → chunk-B30Jdgg6.js} +1 -1
- package/dist/{chunk-gu34lr-P.js → chunk-Brdx4NCz.js} +1 -1
- package/dist/{chunk-6CUrH_jm.js → chunk-Bzo9GaAi.js} +1 -1
- package/dist/{chunk-Ds_twaZn.js → chunk-C4v-HNhS.js} +1 -1
- package/dist/{chunk-Bkma5hIU.js → chunk-CE4seJxF.js} +1 -1
- package/dist/chunk-CNBMBx-Y.js +2 -0
- package/dist/{chunk-ql5N2I_t.js → chunk-CWzHNuVK.js} +1 -1
- package/dist/{chunk-DbGLjU2P.js → chunk-CYpt7PsO.js} +1 -1
- package/dist/chunk-Cd8mp8Sv.js +1 -0
- package/dist/chunk-CsfE8WRG.js +1 -0
- package/dist/{chunk-DOZmcve8.js → chunk-Csr59G5V.js} +1 -1
- package/dist/{chunk-Co3VVwGe.js → chunk-D2pHRNEq.js} +0 -0
- package/dist/chunk-D3kZO8u-.js +1 -0
- package/dist/chunk-DAthf5H3.js +1 -0
- package/dist/{chunk-CXQJG7pb.js → chunk-DZ_aillY.js} +2 -2
- package/dist/{chunk-6C23QQdP.js → chunk-DgJV9zbK.js} +1 -1
- package/dist/chunk-Dv6KtIT1.js +1 -0
- package/dist/chunk-Dws8IrdR.js +1 -0
- package/dist/chunk-ThxxD8oK.js +1 -0
- package/dist/{chunk-C-EHtpbB.js → chunk-h5aOI_Pa.js} +1 -1
- package/dist/chunk-kizhspe5.js +1 -0
- package/dist/client-dispatch.js +1 -1
- package/dist/client-history.js +1 -1
- package/dist/client-stream.js +1 -1
- package/dist/{code-generators-DqauYyfX.d.cts → code-generators-DPAqTcAz.d.cts} +0 -2
- package/dist/{code-generators-DqauYyfX.d.ts → code-generators-DPAqTcAz.d.ts} +0 -2
- package/dist/codegen.cjs +1 -1
- package/dist/codegen.d.cts +1 -1
- package/dist/codegen.d.ts +1 -1
- package/dist/codegen.js +1 -1
- package/dist/composer-actions-runtime.cjs +1 -1
- package/dist/composer-actions-runtime.d.cts +4 -20
- package/dist/composer-actions-runtime.d.ts +4 -20
- package/dist/composer-actions-runtime.js +1 -1
- package/dist/{composer-input-DnqGCXZz.d.ts → composer-input-BSDNPOqV.d.cts} +1 -7
- package/dist/{composer-input-DnqGCXZz.d.cts → composer-input-BSDNPOqV.d.ts} +1 -7
- package/dist/{composer-store-6Iwy6WLI.d.ts → composer-store-DC-gAjtN.d.cts} +1 -3
- package/dist/{composer-store-6Iwy6WLI.d.cts → composer-store-DC-gAjtN.d.ts} +1 -3
- package/dist/config-diagnostics.d.cts +0 -2
- package/dist/config-diagnostics.d.ts +0 -2
- package/dist/{context-mention-manager-B-rHF98n.d.ts → context-mention-manager-CCpeoGL2.d.cts} +2 -6
- package/dist/{context-mention-manager-B-rHF98n.d.cts → context-mention-manager-CCpeoGL2.d.ts} +2 -6
- package/dist/context-mentions-inline.cjs +1 -1
- package/dist/context-mentions-inline.d.cts +2 -4
- package/dist/context-mentions-inline.d.ts +2 -4
- package/dist/context-mentions-inline.js +1 -1
- package/dist/context-mentions.cjs +2 -2
- package/dist/context-mentions.d.cts +3 -9
- package/dist/context-mentions.d.ts +3 -9
- package/dist/context-mentions.js +1 -1
- package/dist/{defaults-BuOjqUAG.d.ts → defaults-tj5RcN8r.d.cts} +1 -5
- package/dist/{defaults-BuOjqUAG.d.cts → defaults-tj5RcN8r.d.ts} +1 -5
- package/dist/dictation-runtime.cjs +1 -1
- package/dist/dictation-runtime.d.cts +4 -13
- package/dist/dictation-runtime.d.ts +4 -13
- package/dist/dictation-runtime.js +1 -1
- package/dist/{dom-context-DHTabIn7.d.cts → dom-context-Bw-_9Evh.d.cts} +0 -2
- package/dist/{dom-context-DHTabIn7.d.ts → dom-context-Bw-_9Evh.d.ts} +0 -2
- package/dist/event-stream-view.cjs +1 -1
- package/dist/event-stream-view.d.cts +3 -16
- package/dist/event-stream-view.d.ts +3 -16
- package/dist/{fallback-speech-engine-SqEfkGda.d.ts → fallback-speech-engine-gkhbjLiZ.d.cts} +1 -3
- package/dist/{fallback-speech-engine-SqEfkGda.d.cts → fallback-speech-engine-gkhbjLiZ.d.ts} +1 -3
- package/dist/{feature-preferences-DqAmje-2.d.ts → feature-preferences-CerDWGZ7.d.cts} +1 -5
- package/dist/{feature-preferences-DqAmje-2.d.cts → feature-preferences-CerDWGZ7.d.ts} +1 -5
- package/dist/forms-ui.d.cts +2 -4
- package/dist/forms-ui.d.ts +2 -4
- package/dist/{history-confirm-dialog-B3L7QNcO.d.cts → history-confirm-dialog-CrkSB3Ra.d.cts} +2 -14
- package/dist/{history-confirm-dialog-B3L7QNcO.d.ts → history-confirm-dialog-CrkSB3Ra.d.ts} +2 -14
- package/dist/history-shell.cjs +1 -1
- package/dist/history-shell.d.cts +8 -27
- package/dist/history-shell.d.ts +8 -27
- package/dist/history-shell.js +1 -1
- package/dist/history-view.d.cts +1 -1
- package/dist/history-view.d.ts +1 -1
- package/dist/icons-extra.cjs +1 -1
- package/dist/icons-extra.d.cts +0 -2
- package/dist/icons-extra.d.ts +0 -2
- package/dist/index.cjs +44 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +50 -50
- package/dist/index.js.map +1 -1
- package/dist/install.global.js +1 -1
- package/dist/install.global.js.map +1 -1
- package/dist/launcher.global.js +2 -2
- package/dist/launcher.global.js.map +1 -1
- package/dist/{loading-label-runtime-loader-JecjOfJS.d.ts → loading-label-runtime-loader-fWIRrhUF.d.cts} +1 -3
- package/dist/{loading-label-runtime-loader-JecjOfJS.d.cts → loading-label-runtime-loader-fWIRrhUF.d.ts} +1 -3
- package/dist/loading-label-runtime.cjs +1 -1
- package/dist/loading-label-runtime.d.cts +1 -1
- package/dist/loading-label-runtime.d.ts +1 -1
- package/dist/loading-label-runtime.js +1 -1
- package/dist/markdown-parsers.js +1 -1
- package/dist/{message-bubble-CBYtpDsT.d.ts → message-bubble-Czc0lOHr.d.cts} +20 -3
- package/dist/{message-bubble-CBYtpDsT.d.cts → message-bubble-Czc0lOHr.d.ts} +20 -3
- package/dist/{plugin-kit-C1mRjLgW.d.cts → plugin-kit-C30jE-cw.d.cts} +3 -3
- package/dist/{plugin-kit-C1mRjLgW.d.ts → plugin-kit-C30jE-cw.d.ts} +3 -3
- package/dist/plugin-kit.cjs +1 -1
- package/dist/plugin-kit.d.cts +1 -1
- package/dist/plugin-kit.d.ts +1 -1
- package/dist/plugin-kit.js +1 -1
- package/dist/preferences-runtime.cjs +1 -1
- package/dist/preferences-runtime.d.cts +1 -1
- package/dist/preferences-runtime.d.ts +1 -1
- package/dist/preferences-runtime.js +1 -1
- package/dist/{preview-_UJwwt2L.d.cts → preview-D-osV3FU.d.cts} +2 -6
- package/dist/{preview-_UJwwt2L.d.ts → preview-D-osV3FU.d.ts} +2 -6
- package/dist/{registry-B5ZV3K-h.d.ts → registry-B6w91tx0.d.cts} +1 -8
- package/dist/{registry-B5ZV3K-h.d.cts → registry-B6w91tx0.d.ts} +1 -8
- package/dist/{session-Bys8_XuB.d.cts → session-BUQrs3Of.d.cts} +10 -93
- package/dist/{session-Bys8_XuB.d.ts → session-BUQrs3Of.d.ts} +10 -93
- package/dist/session-reconnect.d.cts +2 -4
- package/dist/session-reconnect.d.ts +2 -4
- package/dist/smart-dom-reader.d.cts +2 -8
- package/dist/smart-dom-reader.d.ts +2 -8
- package/dist/testing.d.cts +0 -2
- package/dist/testing.d.ts +0 -2
- package/dist/theme-editor-preview.cjs +50 -50
- package/dist/theme-editor-preview.d.cts +1 -1
- package/dist/theme-editor-preview.d.ts +1 -1
- package/dist/theme-editor-preview.js +25 -25
- package/dist/theme-editor.cjs +25 -5
- package/dist/theme-editor.d.cts +2 -22
- package/dist/theme-editor.d.ts +2 -22
- package/dist/theme-editor.js +1 -1
- package/dist/theme-reference.cjs +1 -1
- package/dist/theme-reference.d.cts +2 -4
- package/dist/theme-reference.d.ts +2 -4
- package/dist/theme-reference.js +1 -1
- package/dist/{tool-loading-animation-d5qAQcwv.d.ts → tool-loading-animation-B7XUf8TN.d.cts} +1 -7
- package/dist/{tool-loading-animation-d5qAQcwv.d.cts → tool-loading-animation-B7XUf8TN.d.ts} +1 -7
- package/dist/{tooltip-BkW-8MnD.d.cts → tooltip-DbXkAuJL.d.cts} +0 -2
- package/dist/{tooltip-BkW-8MnD.d.ts → tooltip-DbXkAuJL.d.ts} +0 -2
- package/dist/{turn-activity-ui-q6fHVnx-.d.cts → turn-activity-ui-CohuNMHT.d.cts} +2 -12
- package/dist/{turn-activity-ui-q6fHVnx-.d.ts → turn-activity-ui-CohuNMHT.d.ts} +2 -12
- package/dist/turn-activity-ui.d.cts +1 -1
- package/dist/turn-activity-ui.d.ts +1 -1
- package/dist/{types-B_mj21jg.d.cts → types-9i0xcAMT.d.cts} +128 -29
- package/dist/{types-B_mj21jg.d.ts → types-9i0xcAMT.d.ts} +128 -29
- package/dist/ui-extras.js +3 -3
- package/dist/voice-client-tools.d.cts +1 -3
- package/dist/voice-client-tools.d.ts +1 -3
- package/dist/voice-runtime.cjs +1 -1
- package/dist/voice-runtime.d.cts +2 -12
- package/dist/voice-runtime.d.ts +2 -12
- package/dist/voice-runtime.js +2 -2
- package/dist/voice-worklet-player.d.cts +2 -6
- package/dist/voice-worklet-player.d.ts +2 -6
- package/dist/{webmcp-runtime-entry-ClEO3qdI.d.ts → webmcp-runtime-entry-XNaXa-9h.d.cts} +9 -5
- package/dist/{webmcp-runtime-entry-ClEO3qdI.d.cts → webmcp-runtime-entry-XNaXa-9h.d.ts} +9 -5
- package/dist/webmcp-runtime.cjs +1 -1
- package/dist/webmcp-runtime.d.cts +1 -1
- package/dist/webmcp-runtime.d.ts +1 -1
- package/dist/webmcp-runtime.js +1 -1
- package/dist/widget.css +1 -1
- package/package.json +5 -5
- package/src/client-dispatch.ts +13 -0
- package/src/client.ts +37 -2
- package/src/client.webmcp-require-confirm.test.ts +212 -0
- package/src/components/composer-model-picker.ts +0 -14
- package/src/components/composer-overflow-menu.ts +0 -15
- package/src/components/composer-tokens.ts +0 -20
- package/src/components/event-stream-view.test.ts +5 -0
- package/src/components/message-bubble.ts +26 -6
- package/src/components/scroll-to-bottom.test.ts +135 -0
- package/src/components/scroll-to-bottom.ts +50 -13
- package/src/components/user-message-collapse.ts +117 -0
- package/src/defaults.ts +6 -0
- package/src/generated/runtype-openapi-contract.ts +13 -0
- package/src/plugin-kit.test.ts +101 -0
- package/src/plugin-kit.ts +29 -1
- package/src/session.ts +6 -2
- package/src/session.webmcp.test.ts +32 -0
- package/src/styles/widget.css +56 -0
- package/src/theme-reference.ts +2 -2
- package/src/types/theme.ts +29 -0
- package/src/types.ts +84 -5
- package/src/ui.composer-models.test.ts +5 -7
- package/src/ui.composer-overflow.test.ts +14 -21
- package/src/ui.scroll-additive.test.ts +219 -117
- package/src/ui.scroll.test.ts +176 -13
- package/src/ui.ts +230 -107
- package/src/ui.turn-activity.test.ts +7 -7
- package/src/ui.user-message-collapse.test.ts +540 -0
- package/src/utils/auto-follow.test.ts +0 -38
- package/src/utils/auto-follow.ts +0 -35
- package/src/utils/context-mention-controller.test.ts +56 -0
- package/src/utils/theme.test.ts +23 -0
- package/src/utils/tokens.ts +16 -0
- package/src/webmcp-bridge.test.ts +102 -0
- package/src/webmcp-runtime-entry.ts +29 -1
- package/dist/chunk-BAkaTZpd.js +0 -1
- package/dist/chunk-BEDTp-dm.js +0 -1
- package/dist/chunk-C7-m0EmI.js +0 -1
- package/dist/chunk-CNhThrLX.js +0 -1
- package/dist/chunk-CVMIncEY.js +0 -1
- package/dist/chunk-CzLEhoB_.js +0 -2
- package/dist/chunk-DVgzoVCB.js +0 -1
- package/dist/chunk-d54BJdKd.js +0 -1
- package/dist/chunk-dLJWKfOb.js +0 -1
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import { t as ComponentContext } from "./registry-
|
|
2
|
-
import { $ as AgentWidgetEvent, $i as TextContentPart, A as AgentWidgetConfigPatch, B as AgentWidgetContextMentionRef, Bi as ReadAloudState, C as AgentWidgetAttachmentsConfig, Ca as WebMcpToolResult, Co as PersonaThemePlugin, Ct as AgentWidgetMessage, E as AgentWidgetComponentRenderHandle, Fi as PersonaArtifactManualUpsert, Gt as AgentWidgetRunFinishedEvent, I as AgentWidgetContextMentionItem, Ir as ComposerQuote, Ji as SpeechCallbacks, Kn as AttachmentPreviewRenderContext, Kt as AgentWidgetRunStartedEvent, Li as PersonaArtifactRecord, Lr as ComposerResubmitOptions, N as AgentWidgetContextMentionCommandContext, Nn as AgentWidgetWebMcpConfig, Nr as ComposerOptionsPayload, Nt as AgentWidgetOpenConversationOptions, Pa as HistoryListResult, Q as AgentWidgetDockConfig, Qi as StreamAnimationPlugin, Qn as ClientFeedbackRequest, Ro as AgentWidgetPlugin, Rr as ComposerState, Sa as WebMcpConfirmInfo, So as PersonaTheme, Ta as WidgetHistoryInternals, U as AgentWidgetContextMentionSource, Ui as ResumableHandle, Un as AskUserQuestionPayload, Ur as ContentPart, Wr as ConversationExecutionState, Wt as AgentWidgetRevealToolCallOptions, Xi as SpeechRequest, Yi as SpeechEngine, Yr as DictationState, _a as VoiceResult, _i as InjectComponentDirectiveOptions, _n as AgentWidgetSuggestion, _o as DeepPartial, _t as AgentWidgetMarkdownConfig, ai as HistoryConversationPage, an as AgentWidgetStateSnapshot, ba as VoiceTranscriptMetadata, bi as InjectUserMessageOptions, ci as HistoryDisplayProjection, di as HistoryReturnSurface, do as BrandConfig, eo as RuntypeExecutionStreamEvent, f as AgentWidgetActionParser, fi as HistoryScope, g as AgentWidgetApprovalDecisionOptions, ga as VoiceProvider, gi as InjectAssistantMessageOptions, ha as VoicePriorToolResult, hi as ImageContentPart, hn as AgentWidgetStreamParser, ii as HistoryConversationDetail, it as AgentWidgetHeaderLayoutConfig, j as AgentWidgetContentSegment, k as AgentWidgetConfig, li as HistoryIdentityStatus, m as AgentWidgetApproval, mn as AgentWidgetStreamCheckpoint, n as AgentExecutionState, oi as HistoryConversationPatch, on as AgentWidgetStorageAdapter, pa as VoiceMetrics, q as AgentWidgetControllerEventMap, qn as AttachmentPreviewRenderHandle, ra as VoiceClientTools, rr as ClientToolDefinition, sa as VoiceConfig, si as HistoryConversationSummary, tr as ClientSession, u as AgentWidgetActionHandler, ut as AgentWidgetInitOptions, va as VoiceSessionBridge, vi as InjectMessageOptions, vt as AgentWidgetMarkdownOptions, wi as MessageContent, x as AgentWidgetAttachmentAdapter, xa as WebMcpConfirmHandler, ya as VoiceStatus, yi as InjectSystemMessageOptions, yt as AgentWidgetMarkdownRendererOverrides, zi as PreparedClientSession } from "./types-
|
|
3
|
-
import { n as MentionSubmitBundle } from "./context-mention-manager-
|
|
4
|
-
import { i as MessageTransform } from "./message-bubble-
|
|
5
|
-
import "./feature-preferences-
|
|
6
|
-
import { t as WebMcpBridge$1 } from "./webmcp-runtime-entry-
|
|
7
|
-
import "./fallback-speech-engine-
|
|
8
|
-
import "./defaults-
|
|
1
|
+
import { t as ComponentContext } from "./registry-B6w91tx0.js";
|
|
2
|
+
import { $ as AgentWidgetEvent, $i as TextContentPart, A as AgentWidgetConfigPatch, B as AgentWidgetContextMentionRef, Bi as ReadAloudState, C as AgentWidgetAttachmentsConfig, Ca as WebMcpToolResult, Co as PersonaThemePlugin, Ct as AgentWidgetMessage, E as AgentWidgetComponentRenderHandle, Fi as PersonaArtifactManualUpsert, Gt as AgentWidgetRunFinishedEvent, I as AgentWidgetContextMentionItem, Ir as ComposerQuote, Ji as SpeechCallbacks, Kn as AttachmentPreviewRenderContext, Kt as AgentWidgetRunStartedEvent, Li as PersonaArtifactRecord, Lr as ComposerResubmitOptions, N as AgentWidgetContextMentionCommandContext, Nn as AgentWidgetWebMcpConfig, Nr as ComposerOptionsPayload, Nt as AgentWidgetOpenConversationOptions, Pa as HistoryListResult, Q as AgentWidgetDockConfig, Qi as StreamAnimationPlugin, Qn as ClientFeedbackRequest, Ro as AgentWidgetPlugin, Rr as ComposerState, Sa as WebMcpConfirmInfo, So as PersonaTheme, Ta as WidgetHistoryInternals, U as AgentWidgetContextMentionSource, Ui as ResumableHandle, Un as AskUserQuestionPayload, Ur as ContentPart, Wr as ConversationExecutionState, Wt as AgentWidgetRevealToolCallOptions, Xi as SpeechRequest, Yi as SpeechEngine, Yr as DictationState, _a as VoiceResult, _i as InjectComponentDirectiveOptions, _n as AgentWidgetSuggestion, _o as DeepPartial, _t as AgentWidgetMarkdownConfig, ai as HistoryConversationPage, an as AgentWidgetStateSnapshot, ba as VoiceTranscriptMetadata, bi as InjectUserMessageOptions, ci as HistoryDisplayProjection, di as HistoryReturnSurface, do as BrandConfig, eo as RuntypeExecutionStreamEvent, f as AgentWidgetActionParser, fi as HistoryScope, g as AgentWidgetApprovalDecisionOptions, ga as VoiceProvider, gi as InjectAssistantMessageOptions, ha as VoicePriorToolResult, hi as ImageContentPart, hn as AgentWidgetStreamParser, ii as HistoryConversationDetail, it as AgentWidgetHeaderLayoutConfig, j as AgentWidgetContentSegment, k as AgentWidgetConfig, li as HistoryIdentityStatus, m as AgentWidgetApproval, mn as AgentWidgetStreamCheckpoint, n as AgentExecutionState, oi as HistoryConversationPatch, on as AgentWidgetStorageAdapter, pa as VoiceMetrics, q as AgentWidgetControllerEventMap, qn as AttachmentPreviewRenderHandle, ra as VoiceClientTools, rr as ClientToolDefinition, sa as VoiceConfig, si as HistoryConversationSummary, tr as ClientSession, u as AgentWidgetActionHandler, ut as AgentWidgetInitOptions, va as VoiceSessionBridge, vi as InjectMessageOptions, vt as AgentWidgetMarkdownOptions, wi as MessageContent, x as AgentWidgetAttachmentAdapter, xa as WebMcpConfirmHandler, ya as VoiceStatus, yi as InjectSystemMessageOptions, yt as AgentWidgetMarkdownRendererOverrides, zi as PreparedClientSession } from "./types-9i0xcAMT.js";
|
|
3
|
+
import { n as MentionSubmitBundle } from "./context-mention-manager-CCpeoGL2.js";
|
|
4
|
+
import { i as MessageTransform } from "./message-bubble-Czc0lOHr.js";
|
|
5
|
+
import "./feature-preferences-CerDWGZ7.js";
|
|
6
|
+
import { t as WebMcpBridge$1 } from "./webmcp-runtime-entry-XNaXa-9h.js";
|
|
7
|
+
import "./fallback-speech-engine-gkhbjLiZ.js";
|
|
8
|
+
import "./defaults-tj5RcN8r.js";
|
|
9
9
|
import { IconNode as IconNode$1 } from "lucide";
|
|
10
10
|
import "marked";
|
|
11
|
-
//#region src/utils/legacy-diagnostics.d.ts
|
|
12
11
|
/** Owned by the outer widget lifetime, including controller/layout rebuilds. */
|
|
13
12
|
type LegacyDiagnosticContext = {
|
|
14
13
|
warned: Set<string>;
|
|
15
14
|
current: Set<string>;
|
|
16
15
|
debug: boolean;
|
|
17
16
|
};
|
|
18
|
-
//#endregion
|
|
19
|
-
//#region src/utils/actions.d.ts
|
|
20
17
|
type ActionManagerProcessContext = {
|
|
21
18
|
text: string;
|
|
22
19
|
message: AgentWidgetMessage;
|
|
@@ -42,8 +39,6 @@ declare const createActionManager: (options: ActionManagerOptions) => {
|
|
|
42
39
|
} | null;
|
|
43
40
|
syncFromMetadata: () => void;
|
|
44
41
|
};
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region src/components/feedback.d.ts
|
|
47
42
|
/**
|
|
48
43
|
* Feedback UI components for CSAT and NPS collection
|
|
49
44
|
*/
|
|
@@ -93,8 +88,6 @@ type NPSFeedbackOptions = {
|
|
|
93
88
|
declare function createCSATFeedback(options: CSATFeedbackOptions): HTMLElement;
|
|
94
89
|
/** Create a NPS feedback form with its original rating scale. */
|
|
95
90
|
declare function createNPSFeedback(options: NPSFeedbackOptions): HTMLElement;
|
|
96
|
-
//#endregion
|
|
97
|
-
//#region src/ui.d.ts
|
|
98
91
|
type Controller = {
|
|
99
92
|
/** Resolves once the configured UI and its styles can be shown together.
|
|
100
93
|
* Rejects on a preparation failure; update() retries missing modules. */
|
|
@@ -338,8 +331,6 @@ declare const createAgentExperience: (mount: HTMLElement, initialConfig?: AgentW
|
|
|
338
331
|
preparation?: Promise<unknown>[];
|
|
339
332
|
}) => Controller;
|
|
340
333
|
type AgentWidgetController = Controller;
|
|
341
|
-
//#endregion
|
|
342
|
-
//#region src/runtime/init.d.ts
|
|
343
334
|
type AgentWidgetInitHandle = AgentWidgetController & {
|
|
344
335
|
host: HTMLElement;
|
|
345
336
|
/** Move a live direct-layout widget to a connected container in the same document. */
|
|
@@ -350,8 +341,6 @@ type AgentWidgetInitHandle = AgentWidgetController & {
|
|
|
350
341
|
/** Handles of all currently mounted widgets, oldest first. */
|
|
351
342
|
declare const getAgentWidgetHandles: () => AgentWidgetInitHandle[];
|
|
352
343
|
declare const initAgentWidget: (options: AgentWidgetInitOptions) => AgentWidgetInitHandle;
|
|
353
|
-
//#endregion
|
|
354
|
-
//#region src/components/ask-user-question-bubble.d.ts
|
|
355
344
|
declare const ASK_USER_QUESTION_TOOL_NAME = "ask_user_question";
|
|
356
345
|
declare const isAskUserQuestionMessage: (message: AgentWidgetMessage) => boolean;
|
|
357
346
|
/**
|
|
@@ -384,8 +373,6 @@ declare const ensureAskUserQuestionSheet: (message: AgentWidgetMessage, config:
|
|
|
384
373
|
* Runs a slide-out transition before removing.
|
|
385
374
|
*/
|
|
386
375
|
declare const removeAskUserQuestionSheet: (overlay: HTMLElement | null | undefined, toolCallId?: string) => void;
|
|
387
|
-
//#endregion
|
|
388
|
-
//#region src/ask-user-question-tool.d.ts
|
|
389
376
|
/**
|
|
390
377
|
* JSON Schema for the tool's parameters. Mirrors {@link AskUserQuestionPayload}
|
|
391
378
|
*, the shape `parseAskUserQuestionPayload` hydrates the answer sheet from, * so the schema the model is held to and the schema the renderer expects can
|
|
@@ -467,8 +454,6 @@ declare const ASK_USER_QUESTION_CLIENT_TOOL: ClientToolDefinition;
|
|
|
467
454
|
* generic tool bubble with no way to advance.
|
|
468
455
|
*/
|
|
469
456
|
declare const builtInClientToolsForDispatch: (config: AgentWidgetConfig | undefined) => ClientToolDefinition[];
|
|
470
|
-
//#endregion
|
|
471
|
-
//#region src/suggest-replies-tool.d.ts
|
|
472
457
|
declare const SUGGEST_REPLIES_TOOL_NAME = "suggest_replies";
|
|
473
458
|
/**
|
|
474
459
|
* JSON Schema for the tool's parameters. The model owns semantics only: id,
|
|
@@ -535,8 +520,6 @@ declare const parseSuggestRepliesPayload: (args: unknown, maxItems?: number) =>
|
|
|
535
520
|
* latest renders.
|
|
536
521
|
*/
|
|
537
522
|
declare const latestAgentSuggestions: (messages: AgentWidgetMessage[], maxItems?: number) => AgentWidgetSuggestion[] | null;
|
|
538
|
-
//#endregion
|
|
539
|
-
//#region src/runtime/host-layout.d.ts
|
|
540
523
|
type WidgetHostLayoutMode = "direct" | "docked";
|
|
541
524
|
type WidgetHostLayout = {
|
|
542
525
|
mode: WidgetHostLayoutMode;
|
|
@@ -547,8 +530,6 @@ type WidgetHostLayout = {
|
|
|
547
530
|
destroy: () => void;
|
|
548
531
|
};
|
|
549
532
|
declare const createWidgetHostLayout: (target: HTMLElement, config?: AgentWidgetConfig) => WidgetHostLayout;
|
|
550
|
-
//#endregion
|
|
551
|
-
//#region src/client.d.ts
|
|
552
533
|
type DispatchOptions = {
|
|
553
534
|
messages: AgentWidgetMessage[];
|
|
554
535
|
signal?: AbortSignal;
|
|
@@ -607,7 +588,8 @@ declare class HistoryClientError extends Error {
|
|
|
607
588
|
type SSEEventCallback = (eventType: string, payload: unknown) => void;
|
|
608
589
|
declare class AgentWidgetClient {
|
|
609
590
|
#private;
|
|
610
|
-
private clientSession;
|
|
591
|
+
private get clientSession();
|
|
592
|
+
private set clientSession(value);
|
|
611
593
|
private lastSentClientToolsFingerprint;
|
|
612
594
|
private clientToolsFingerprintSessionId;
|
|
613
595
|
private webMcpBridge;
|
|
@@ -888,11 +870,7 @@ declare class AgentWidgetClient {
|
|
|
888
870
|
assistantMessageId?: string;
|
|
889
871
|
}): Promise<Response>;
|
|
890
872
|
}
|
|
891
|
-
//#endregion
|
|
892
|
-
//#region src/utils/storage.d.ts
|
|
893
873
|
declare const createLocalStorageAdapter: (key?: string) => AgentWidgetStorageAdapter;
|
|
894
|
-
//#endregion
|
|
895
|
-
//#region src/postprocessors.d.ts
|
|
896
874
|
/**
|
|
897
875
|
* Repair incomplete Markdown for a streaming display before parsing it as HTML.
|
|
898
876
|
* Apply custom text transforms first, then pass the result and the callback's
|
|
@@ -973,8 +951,6 @@ declare const createDirectivePostprocessor: (markdownConfig?: AgentWidgetMarkdow
|
|
|
973
951
|
* For custom markdown configuration, use `createDirectivePostprocessor()`.
|
|
974
952
|
*/
|
|
975
953
|
declare const directivePostprocessor: (text: string) => string;
|
|
976
|
-
//#endregion
|
|
977
|
-
//#region src/utils/sanitize.d.ts
|
|
978
954
|
/**
|
|
979
955
|
* A function that sanitizes an HTML string, returning safe HTML.
|
|
980
956
|
*/
|
|
@@ -992,8 +968,6 @@ declare const createDefaultSanitizer: () => SanitizeFunction;
|
|
|
992
968
|
* - custom function → returned as-is
|
|
993
969
|
*/
|
|
994
970
|
declare const resolveSanitizer: (option: boolean | SanitizeFunction | undefined) => SanitizeFunction | null;
|
|
995
|
-
//#endregion
|
|
996
|
-
//#region src/utils/formatting.d.ts
|
|
997
971
|
/**
|
|
998
972
|
* Plain text parser - passes through text as-is without any parsing.
|
|
999
973
|
* This is the default parser.
|
|
@@ -1029,8 +1003,6 @@ declare const createFlexibleJsonStreamParser: (textExtractor?: (parsed: any) =>
|
|
|
1029
1003
|
* Extracts text from <text>...</text> tags in XML responses.
|
|
1030
1004
|
*/
|
|
1031
1005
|
declare const createXmlParser: () => AgentWidgetStreamParser;
|
|
1032
|
-
//#endregion
|
|
1033
|
-
//#region src/utils/content.d.ts
|
|
1034
1006
|
/**
|
|
1035
1007
|
* Normalize content to ContentPart[] format.
|
|
1036
1008
|
* Converts string content to a single text content part.
|
|
@@ -1079,8 +1051,6 @@ declare function validateImageFile(file: File, acceptedTypes?: string[], maxSize
|
|
|
1079
1051
|
valid: boolean;
|
|
1080
1052
|
error?: string;
|
|
1081
1053
|
};
|
|
1082
|
-
//#endregion
|
|
1083
|
-
//#region src/utils/mention-matcher.d.ts
|
|
1084
1054
|
/**
|
|
1085
1055
|
* Filter + rank items for the current `@query`. An empty query keeps all items,
|
|
1086
1056
|
* recency-ordered. Non-matching items are dropped.
|
|
@@ -1159,8 +1129,6 @@ declare function createSlashCommandsSource(opts: {
|
|
|
1159
1129
|
label: string;
|
|
1160
1130
|
commands: SlashCommandDefinition[];
|
|
1161
1131
|
}): AgentWidgetContextMentionSource;
|
|
1162
|
-
//#endregion
|
|
1163
|
-
//#region src/utils/attachment-manager.d.ts
|
|
1164
1132
|
/** Lifecycle state of one pending attachment (roadmap section 8). */
|
|
1165
1133
|
type PendingAttachmentStatus = "processing" | "uploading" | "ready" | "error";
|
|
1166
1134
|
/**
|
|
@@ -1270,8 +1238,6 @@ declare class AttachmentManager {
|
|
|
1270
1238
|
*/
|
|
1271
1239
|
static fromConfig(config?: AgentWidgetAttachmentsConfig, onAttachmentsChange?: (attachments: PendingAttachment[]) => void): AttachmentManager;
|
|
1272
1240
|
}
|
|
1273
|
-
//#endregion
|
|
1274
|
-
//#region src/utils/message-id.d.ts
|
|
1275
1241
|
/**
|
|
1276
1242
|
* Message ID utilities for client-side message tracking
|
|
1277
1243
|
* Used for feedback integration with the Runtype API
|
|
@@ -1291,8 +1257,6 @@ declare function generateUserMessageId(): string;
|
|
|
1291
1257
|
* Format: ast_{timestamp_base36}_{random_8chars}
|
|
1292
1258
|
*/
|
|
1293
1259
|
declare function generateAssistantMessageId(): string;
|
|
1294
|
-
//#endregion
|
|
1295
|
-
//#region src/utils/dock.d.ts
|
|
1296
1260
|
declare const isDockedMountMode: (config?: AgentWidgetConfig) => boolean;
|
|
1297
1261
|
/**
|
|
1298
1262
|
* Resolved dock layout. For `reveal: "resize"`, when the panel is closed the dock column is `0px`.
|
|
@@ -1302,15 +1266,11 @@ declare const isDockedMountMode: (config?: AgentWidgetConfig) => boolean;
|
|
|
1302
1266
|
* Unknown keys on `launcher.dock` (e.g. legacy `collapsedWidth`) are ignored.
|
|
1303
1267
|
*/
|
|
1304
1268
|
declare const resolveDockConfig: (config?: AgentWidgetConfig) => Required<AgentWidgetDockConfig>;
|
|
1305
|
-
//#endregion
|
|
1306
|
-
//#region src/version.d.ts
|
|
1307
1269
|
/**
|
|
1308
1270
|
* The current version of the @runtypelabs/persona package.
|
|
1309
1271
|
* This is automatically derived from package.json.
|
|
1310
1272
|
*/
|
|
1311
1273
|
declare const VERSION: string;
|
|
1312
|
-
//#endregion
|
|
1313
|
-
//#region src/plugins/registry.d.ts
|
|
1314
1274
|
declare class PluginRegistry {
|
|
1315
1275
|
#private;
|
|
1316
1276
|
/**
|
|
@@ -1336,8 +1296,6 @@ declare class PluginRegistry {
|
|
|
1336
1296
|
clear(): void;
|
|
1337
1297
|
}
|
|
1338
1298
|
declare const pluginRegistry: PluginRegistry;
|
|
1339
|
-
//#endregion
|
|
1340
|
-
//#region src/utils/stream-animation.d.ts
|
|
1341
1299
|
/**
|
|
1342
1300
|
* Register a custom stream animation plugin globally. Subsequent widget
|
|
1343
1301
|
* instances can reference the plugin by `name` in `features.streamAnimation.type`.
|
|
@@ -1347,8 +1305,6 @@ declare const pluginRegistry: PluginRegistry;
|
|
|
1347
1305
|
declare const registerStreamAnimationPlugin: (plugin: StreamAnimationPlugin) => void;
|
|
1348
1306
|
declare const unregisterStreamAnimationPlugin: (name: string) => void;
|
|
1349
1307
|
declare const listRegisteredStreamAnimations: () => string[];
|
|
1350
|
-
//#endregion
|
|
1351
|
-
//#region src/types/install-loading.d.ts
|
|
1352
1308
|
/** Context supplied by the script installer's delayed loading surface. */
|
|
1353
1309
|
interface InstallLoadingContext {
|
|
1354
1310
|
/** Connected, absolutely positioned status container. Add your UI here.
|
|
@@ -1363,8 +1319,6 @@ interface InstallLoadingContext {
|
|
|
1363
1319
|
* Cleanup runs once on success or failure; a retry gets a new container.
|
|
1364
1320
|
* This installer-only hook belongs on window.siteAgentConfig, outside config. */
|
|
1365
1321
|
type InstallLoadingRenderer = (context: InstallLoadingContext) => void | (() => void);
|
|
1366
|
-
//#endregion
|
|
1367
|
-
//#region src/utils/plugins.d.ts
|
|
1368
1322
|
declare function accessibilityPlugin(): PersonaThemePlugin;
|
|
1369
1323
|
declare function animationsPlugin(): PersonaThemePlugin;
|
|
1370
1324
|
declare function brandPlugin(brandConfig: {
|
|
@@ -1384,8 +1338,6 @@ declare function createPlugin(config: {
|
|
|
1384
1338
|
cssVariables?: Record<string, string>;
|
|
1385
1339
|
afterResolve?: (resolved: Record<string, string>) => Record<string, string>;
|
|
1386
1340
|
}): PersonaThemePlugin;
|
|
1387
|
-
//#endregion
|
|
1388
|
-
//#region src/components/demo-carousel.d.ts
|
|
1389
1341
|
interface DemoCarouselItem {
|
|
1390
1342
|
/** URL to load in the iframe (relative or absolute). */
|
|
1391
1343
|
url: string;
|
|
@@ -1433,8 +1385,6 @@ interface DemoCarouselHandle {
|
|
|
1433
1385
|
destroy(): void;
|
|
1434
1386
|
}
|
|
1435
1387
|
declare function createDemoCarousel(container: HTMLElement, options: DemoCarouselOptions): DemoCarouselHandle;
|
|
1436
|
-
//#endregion
|
|
1437
|
-
//#region src/voice/runtype-voice-provider.d.ts
|
|
1438
1388
|
type TranscriptCallback = (role: "user" | "assistant", text: string, isFinal: boolean, metadata?: VoiceTranscriptMetadata) => void;
|
|
1439
1389
|
declare class RuntypeVoiceProvider implements VoiceProvider {
|
|
1440
1390
|
#private;
|
|
@@ -1479,8 +1429,6 @@ declare class RuntypeVoiceProvider implements VoiceProvider {
|
|
|
1479
1429
|
onTranscript(callback: TranscriptCallback): void;
|
|
1480
1430
|
onMetrics(callback: (metrics: VoiceMetrics) => void): void;
|
|
1481
1431
|
}
|
|
1482
|
-
//#endregion
|
|
1483
|
-
//#region src/voice/browser-voice-provider.d.ts
|
|
1484
1432
|
declare class BrowserVoiceProvider implements VoiceProvider {
|
|
1485
1433
|
#private;
|
|
1486
1434
|
private config;
|
|
@@ -1495,13 +1443,9 @@ declare class BrowserVoiceProvider implements VoiceProvider {
|
|
|
1495
1443
|
disconnect(): Promise<void>;
|
|
1496
1444
|
static isSupported(): boolean;
|
|
1497
1445
|
}
|
|
1498
|
-
//#endregion
|
|
1499
|
-
//#region src/voice/voice-factory.d.ts
|
|
1500
1446
|
declare function createVoiceProvider(config: VoiceConfig): VoiceProvider;
|
|
1501
1447
|
declare function createBestAvailableVoiceProvider(config?: Partial<VoiceConfig>): VoiceProvider;
|
|
1502
1448
|
declare function isVoiceSupported(config?: Partial<VoiceConfig>): boolean;
|
|
1503
|
-
//#endregion
|
|
1504
|
-
//#region src/voice/browser-speech-engine.d.ts
|
|
1505
1449
|
/**
|
|
1506
1450
|
* Pick the best available English voice from the browser's voice list.
|
|
1507
1451
|
* Prefers high-quality remote/natural voices, then enhanced local voices,
|
|
@@ -1525,8 +1469,6 @@ declare class BrowserSpeechEngine implements SpeechEngine {
|
|
|
1525
1469
|
resume(): void;
|
|
1526
1470
|
stop(): void;
|
|
1527
1471
|
}
|
|
1528
|
-
//#endregion
|
|
1529
|
-
//#region src/voice/read-aloud-controller.d.ts
|
|
1530
1472
|
type ReadAloudListener = (activeId: string | null, state: ReadAloudState) => void;
|
|
1531
1473
|
declare class ReadAloudController {
|
|
1532
1474
|
#private;
|
|
@@ -1552,8 +1494,6 @@ declare class ReadAloudController {
|
|
|
1552
1494
|
/** Drop the controller and its engine (called on widget teardown). */
|
|
1553
1495
|
destroy(): void;
|
|
1554
1496
|
}
|
|
1555
|
-
//#endregion
|
|
1556
|
-
//#region src/webmcp-bridge-public.d.ts
|
|
1557
1497
|
/**
|
|
1558
1498
|
* npm-facing `WebMcpBridge` with the historical one-argument constructor.
|
|
1559
1499
|
*
|
|
@@ -1566,8 +1506,6 @@ declare class ReadAloudController {
|
|
|
1566
1506
|
declare class WebMcpBridge extends WebMcpBridge$1 {
|
|
1567
1507
|
constructor(config: AgentWidgetWebMcpConfig);
|
|
1568
1508
|
}
|
|
1569
|
-
//#endregion
|
|
1570
|
-
//#region src/utils/roving-tablist.d.ts
|
|
1571
1509
|
/**
|
|
1572
1510
|
* Roving-tabindex tablist controller (WAI-ARIA APG tabs pattern). Owns the tab
|
|
1573
1511
|
* roles, aria-selected, roving tabindex, Arrow/Home/End keyboard nav routed
|
|
@@ -1593,8 +1531,6 @@ interface RovingTablistController {
|
|
|
1593
1531
|
destroy(): void;
|
|
1594
1532
|
}
|
|
1595
1533
|
declare function createRovingTablist(container: HTMLElement, options: RovingTablistOptions): RovingTablistController;
|
|
1596
|
-
//#endregion
|
|
1597
|
-
//#region src/utils/theme.d.ts
|
|
1598
1534
|
type ColorScheme = 'light' | 'dark' | 'auto';
|
|
1599
1535
|
interface PersonaWidgetConfig {
|
|
1600
1536
|
brand?: BrandConfig;
|
|
@@ -1611,8 +1547,6 @@ declare const getColorScheme: (config?: WidgetConfig) => 'light' | 'dark';
|
|
|
1611
1547
|
declare const getActiveTheme: (config?: WidgetConfig) => PersonaTheme;
|
|
1612
1548
|
declare const applyThemeVariables: (element: HTMLElement, config?: WidgetConfig) => void;
|
|
1613
1549
|
declare const createThemeObserver: (callback: (scheme: 'light' | 'dark') => void) => (() => void);
|
|
1614
|
-
//#endregion
|
|
1615
|
-
//#region src/utils/component-parser.d.ts
|
|
1616
1550
|
/**
|
|
1617
1551
|
* Represents a component directive extracted from JSON
|
|
1618
1552
|
*/
|
|
@@ -1644,8 +1578,6 @@ declare function createComponentStreamParser(): {
|
|
|
1644
1578
|
* Type guard to check if an object is a component directive
|
|
1645
1579
|
*/
|
|
1646
1580
|
declare function isComponentDirectiveType(obj: unknown): obj is ComponentDirective;
|
|
1647
|
-
//#endregion
|
|
1648
|
-
//#region src/utils/component-middleware.d.ts
|
|
1649
1581
|
/**
|
|
1650
1582
|
* Options for component middleware
|
|
1651
1583
|
*/
|
|
@@ -1695,8 +1627,6 @@ declare function hasComponentDirective(message: AgentWidgetMessage): boolean;
|
|
|
1695
1627
|
* streamed ones.
|
|
1696
1628
|
*/
|
|
1697
1629
|
declare function extractComponentDirectiveFromMessage(message: AgentWidgetMessage): ComponentDirective | null;
|
|
1698
|
-
//#endregion
|
|
1699
|
-
//#region src/presets.d.ts
|
|
1700
1630
|
/**
|
|
1701
1631
|
* A named preset containing partial widget configuration.
|
|
1702
1632
|
* Apply with: `createAgentExperience(el, { ...PRESET_SHOP.config, apiUrl: '...' })`
|
|
@@ -1726,8 +1656,6 @@ declare const PRESET_FULLSCREEN: WidgetPreset;
|
|
|
1726
1656
|
declare const PRESETS: Record<string, WidgetPreset>;
|
|
1727
1657
|
/** Look up a preset by ID. */
|
|
1728
1658
|
declare function getPreset(id: string): WidgetPreset | undefined;
|
|
1729
|
-
//#endregion
|
|
1730
|
-
//#region src/components/header-builder.d.ts
|
|
1731
1659
|
interface HeaderElements {
|
|
1732
1660
|
header: HTMLElement;
|
|
1733
1661
|
iconHolder: HTMLElement;
|
|
@@ -1753,8 +1681,6 @@ declare const buildHeader: (context: HeaderBuildContext) => HeaderElements;
|
|
|
1753
1681
|
* Attach header elements to the container, handling placement modes.
|
|
1754
1682
|
*/
|
|
1755
1683
|
declare const attachHeaderToContainer: (container: HTMLElement, headerElements: HeaderElements, config?: AgentWidgetConfig) => void;
|
|
1756
|
-
//#endregion
|
|
1757
|
-
//#region src/components/composer-builder.d.ts
|
|
1758
1684
|
interface ComposerElements {
|
|
1759
1685
|
footer: HTMLElement;
|
|
1760
1686
|
suggestions: HTMLElement;
|
|
@@ -1798,8 +1724,6 @@ interface ComposerBuildContext {
|
|
|
1798
1724
|
* shares the same low-level part factories from `composer-parts.ts`.
|
|
1799
1725
|
*/
|
|
1800
1726
|
declare const buildComposer: (context: ComposerBuildContext) => ComposerElements;
|
|
1801
|
-
//#endregion
|
|
1802
|
-
//#region src/components/panel.d.ts
|
|
1803
1727
|
interface PanelElements {
|
|
1804
1728
|
container: HTMLElement;
|
|
1805
1729
|
body: HTMLElement;
|
|
@@ -1856,8 +1780,6 @@ interface PanelElements {
|
|
|
1856
1780
|
peekBanner?: HTMLButtonElement;
|
|
1857
1781
|
peekTextNode?: HTMLElement;
|
|
1858
1782
|
}
|
|
1859
|
-
//#endregion
|
|
1860
|
-
//#region src/components/header-layouts.d.ts
|
|
1861
1783
|
interface HeaderLayoutContext {
|
|
1862
1784
|
config: AgentWidgetConfig;
|
|
1863
1785
|
showClose?: boolean;
|
|
@@ -1888,13 +1810,9 @@ declare const getHeaderLayout: (layoutName: string) => HeaderLayoutRenderer;
|
|
|
1888
1810
|
* Applies layout config settings to determine which layout to use
|
|
1889
1811
|
*/
|
|
1890
1812
|
declare const buildHeaderWithLayout: (config: AgentWidgetConfig, layoutConfig?: AgentWidgetHeaderLayoutConfig, context?: Partial<HeaderLayoutContext>) => HeaderElements;
|
|
1891
|
-
//#endregion
|
|
1892
|
-
//#region src/index-core.d.ts
|
|
1893
1813
|
/** @deprecated FlowSSEEvent was folded into the unified ExecutionStreamEvent
|
|
1894
1814
|
* (Runtype PR #5722). Use RuntypeExecutionStreamEvent instead. */
|
|
1895
1815
|
type RuntypeFlowSSEEvent = RuntypeExecutionStreamEvent;
|
|
1896
|
-
//#endregion
|
|
1897
|
-
//#region src/session.d.ts
|
|
1898
1816
|
type AgentWidgetSessionStatus = "idle" | "connecting" | "connected" | "error" | "paused" | "resuming";
|
|
1899
1817
|
type SessionCallbacks = {
|
|
1900
1818
|
onConversationExecutionState?: (state: ConversationExecutionState) => void;
|
|
@@ -2561,6 +2479,5 @@ declare class AgentWidgetSession {
|
|
|
2561
2479
|
stopSpeaking(): void;
|
|
2562
2480
|
private upsertMessage;
|
|
2563
2481
|
}
|
|
2564
|
-
//#endregion
|
|
2565
2482
|
export { BrowserVoiceProvider as $, preprocessStreamingMarkdown as $t, extractComponentDirectiveFromMessage as A, createNPSFeedback as An, createImagePart as At, getColorScheme as B, createPlainTextParser as Bt, PRESETS as C, getAgentWidgetHandles as Cn, AttachmentManager as Ct, WidgetPreset as D, CSATFeedbackOptions as Dn, createSlashCommandsSource as Dt, PRESET_SHOP as E, createAgentExperience as En, SlashCommandDefinition as Et, isComponentDirectiveType as F, hasImages as Ft, ReadAloudController as G, resolveSanitizer as Gt, RovingTablistOptions as H, createXmlParser as Ht, applyThemeVariables as I, normalizeContent as It, BrowserSpeechEngineOptions as J, createMarkdownProcessor as Jt, ReadAloudListener as K, MarkdownProcessorOptions as Kt, createThemeObserver as L, validateImageFile as Lt, renderComponentDirective as M, defaultActionHandlers as Mn, fileToImagePart as Mt, ComponentDirective as N, defaultJsonActionParser as Nn, getDisplayText as Nt, getPreset as O, NPSFeedbackOptions as On, createStaticMentionSource as Ot, createComponentStreamParser as P, getImageParts as Pt, isVoiceSupported as Q, markdownPostprocessor as Qt, detectColorScheme as R, createFlexibleJsonStreamParser as Rt, buildHeader as S, AgentWidgetInitHandle as Sn, generateUserMessageId as St, PRESET_MINIMAL as T, AgentWidgetController as Tn, PendingAttachment as Tt, createRovingTablist as U, SanitizeFunction as Ut, RovingTablistController as V, createRegexJsonParser as Vt, WebMcpBridge as W, createDefaultSanitizer as Wt, createBestAvailableVoiceProvider as X, directivePostprocessor as Xt, pickBestVoice as Y, createMarkdownProcessorFromConfig as Yt, createVoiceProvider as Z, escapeHtml as Zt, ComposerElements as _, createAskUserQuestionBubble as _n, VERSION as _t, SessionRunActivity as a, WidgetHostLayoutMode as an, accessibilityPlugin as at, HeaderElements as b, parseAskUserQuestionPayload as bn, generateAssistantMessageId as bt, HeaderLayoutContext as c, SUGGEST_REPLIES_PARAMETERS_SCHEMA as cn, createPlugin as ct, buildHeaderWithLayout as d, latestAgentSuggestions as dn, InstallLoadingContext as dt, createLocalStorageAdapter as en, RuntypeVoiceProvider as et, buildMinimalHeader as f, parseSuggestRepliesPayload as fn, InstallLoadingRenderer as ft, ComposerBuildContext as g, ASK_USER_QUESTION_TOOL_NAME as gn, pluginRegistry as gt, PanelElements as h, builtInClientToolsForDispatch as hn, unregisterStreamAnimationPlugin as ht, SessionHistoryState as i, WidgetHostLayout as in, createDemoCarousel as it, hasComponentDirective as j, createActionManager as jn, createTextPart as jt, createComponentMiddleware as k, createCSATFeedback as kn, defaultMentionFilter as kt, HeaderLayoutRenderer as l, SUGGEST_REPLIES_TOOL_NAME as ln, highContrastPlugin as lt, headerLayouts as m, ASK_USER_QUESTION_PARAMETERS_SCHEMA as mn, registerStreamAnimationPlugin as mt, AgentWidgetSessionStatus as n, HistoryClientError as nn, DemoCarouselItem as nt, IconNode$1 as o, createWidgetHostLayout as on, animationsPlugin as ot, getHeaderLayout as p, ASK_USER_QUESTION_CLIENT_TOOL as pn, listRegisteredStreamAnimations as pt, BrowserSpeechEngine as q, createDirectivePostprocessor as qt, SessionHistoryError as r, SSEEventCallback as rn, DemoCarouselOptions as rt, RuntypeFlowSSEEvent as s, SUGGEST_REPLIES_CLIENT_TOOL as sn, brandPlugin as st, AgentWidgetSession as t, AgentWidgetClient as tn, DemoCarouselHandle as tt, buildDefaultHeader as u, isSuggestRepliesMessage as un, reducedMotionPlugin as ut, buildComposer as v, ensureAskUserQuestionSheet as vn, isDockedMountMode as vt, PRESET_FULLSCREEN as w, initAgentWidget as wn, AttachmentManagerConfig as wt, attachHeaderToContainer as x, removeAskUserQuestionSheet as xn, generateMessageId as xt, HeaderBuildContext as y, isAskUserQuestionMessage as yn, resolveDockConfig as yt, getActiveTheme as z, createJsonStreamParser as zt };
|
|
2566
2483
|
export {}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Ct as AgentWidgetMessage, Ui as ResumableHandle, k as AgentWidgetConfig } from "./types-
|
|
2
|
-
import { n as AgentWidgetSessionStatus } from "./session-
|
|
3
|
-
//#region src/session-reconnect.d.ts
|
|
1
|
+
import { Ct as AgentWidgetMessage, Ui as ResumableHandle, k as AgentWidgetConfig } from "./types-9i0xcAMT.cjs";
|
|
2
|
+
import { n as AgentWidgetSessionStatus } from "./session-BUQrs3Of.cjs";
|
|
4
3
|
/**
|
|
5
4
|
* The narrow surface the reconnect loop needs from the owning session. The
|
|
6
5
|
* session builds this once (lazily, alongside the controller) so the loop can
|
|
@@ -48,5 +47,4 @@ export interface ReconnectController {
|
|
|
48
47
|
wake(): void;
|
|
49
48
|
}
|
|
50
49
|
export declare function createReconnectController(host: ReconnectHost): ReconnectController;
|
|
51
|
-
//#endregion
|
|
52
50
|
export {}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Ct as AgentWidgetMessage, Ui as ResumableHandle, k as AgentWidgetConfig } from "./types-
|
|
2
|
-
import { n as AgentWidgetSessionStatus } from "./session-
|
|
3
|
-
//#region src/session-reconnect.d.ts
|
|
1
|
+
import { Ct as AgentWidgetMessage, Ui as ResumableHandle, k as AgentWidgetConfig } from "./types-9i0xcAMT.js";
|
|
2
|
+
import { n as AgentWidgetSessionStatus } from "./session-BUQrs3Of.js";
|
|
4
3
|
/**
|
|
5
4
|
* The narrow surface the reconnect loop needs from the owning session. The
|
|
6
5
|
* session builds this once (lazily, alongside the controller) so the loop can
|
|
@@ -48,5 +47,4 @@ export interface ReconnectController {
|
|
|
48
47
|
wake(): void;
|
|
49
48
|
}
|
|
50
49
|
export declare function createReconnectController(host: ReconnectHost): ReconnectController;
|
|
51
|
-
//#endregion
|
|
52
50
|
export {}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { G as AgentWidgetContextProvider, I as AgentWidgetContextMentionItem, U as AgentWidgetContextMentionSource } from "./types-
|
|
2
|
-
import { r as EnrichedPageElement } from "./dom-context-
|
|
3
|
-
//#region src/vendor/smart-dom-reader/index.d.ts
|
|
1
|
+
import { G as AgentWidgetContextProvider, I as AgentWidgetContextMentionItem, U as AgentWidgetContextMentionSource } from "./types-9i0xcAMT.cjs";
|
|
2
|
+
import { r as EnrichedPageElement } from "./dom-context-Bw-_9Evh.cjs";
|
|
4
3
|
/**
|
|
5
4
|
* VENDORED type declarations: @mcp-b/smart-dom-reader v2.3.1 (MIT).
|
|
6
5
|
* Copied verbatim from upstream dist/index.d.mts (only the trailing sourceMappingURL
|
|
@@ -186,8 +185,6 @@ declare global {
|
|
|
186
185
|
SmartDOMReaderBundle: SmartDOMReaderBundle;
|
|
187
186
|
}
|
|
188
187
|
}
|
|
189
|
-
//#endregion
|
|
190
|
-
//#region src/utils/smart-dom-adapter.d.ts
|
|
191
188
|
/** Options for {@link smartDomResultToEnriched}. */
|
|
192
189
|
interface SmartDomAdapterOptions {
|
|
193
190
|
/**
|
|
@@ -220,8 +217,6 @@ interface SmartDomAdapterOptions {
|
|
|
220
217
|
* - Deduplicates by selector and preserves discovery order (interactive before semantic).
|
|
221
218
|
*/
|
|
222
219
|
export declare function smartDomResultToEnriched(result: SmartDOMResult, opts?: SmartDomAdapterOptions): EnrichedPageElement[];
|
|
223
|
-
//#endregion
|
|
224
|
-
//#region src/smart-dom-reader.d.ts
|
|
225
220
|
/** Options for {@link collectSmartDomContext} and {@link createSmartDomReaderContextProvider}. */
|
|
226
221
|
export interface SmartDomContextOptions extends SmartDomAdapterOptions {
|
|
227
222
|
/**
|
|
@@ -302,6 +297,5 @@ export interface SmartDomMentionSourceOptions extends SmartDomContextOptions {
|
|
|
302
297
|
* ```
|
|
303
298
|
*/
|
|
304
299
|
export declare function createSmartDomMentionSource(opts?: SmartDomMentionSourceOptions): AgentWidgetContextMentionSource;
|
|
305
|
-
//#endregion
|
|
306
300
|
export type { EnrichedPageElement, SmartDomAdapterOptions };
|
|
307
301
|
export {}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { G as AgentWidgetContextProvider, I as AgentWidgetContextMentionItem, U as AgentWidgetContextMentionSource } from "./types-
|
|
2
|
-
import { r as EnrichedPageElement } from "./dom-context-
|
|
3
|
-
//#region src/vendor/smart-dom-reader/index.d.ts
|
|
1
|
+
import { G as AgentWidgetContextProvider, I as AgentWidgetContextMentionItem, U as AgentWidgetContextMentionSource } from "./types-9i0xcAMT.js";
|
|
2
|
+
import { r as EnrichedPageElement } from "./dom-context-Bw-_9Evh.js";
|
|
4
3
|
/**
|
|
5
4
|
* VENDORED type declarations: @mcp-b/smart-dom-reader v2.3.1 (MIT).
|
|
6
5
|
* Copied verbatim from upstream dist/index.d.mts (only the trailing sourceMappingURL
|
|
@@ -186,8 +185,6 @@ declare global {
|
|
|
186
185
|
SmartDOMReaderBundle: SmartDOMReaderBundle;
|
|
187
186
|
}
|
|
188
187
|
}
|
|
189
|
-
//#endregion
|
|
190
|
-
//#region src/utils/smart-dom-adapter.d.ts
|
|
191
188
|
/** Options for {@link smartDomResultToEnriched}. */
|
|
192
189
|
interface SmartDomAdapterOptions {
|
|
193
190
|
/**
|
|
@@ -220,8 +217,6 @@ interface SmartDomAdapterOptions {
|
|
|
220
217
|
* - Deduplicates by selector and preserves discovery order (interactive before semantic).
|
|
221
218
|
*/
|
|
222
219
|
export declare function smartDomResultToEnriched(result: SmartDOMResult, opts?: SmartDomAdapterOptions): EnrichedPageElement[];
|
|
223
|
-
//#endregion
|
|
224
|
-
//#region src/smart-dom-reader.d.ts
|
|
225
220
|
/** Options for {@link collectSmartDomContext} and {@link createSmartDomReaderContextProvider}. */
|
|
226
221
|
export interface SmartDomContextOptions extends SmartDomAdapterOptions {
|
|
227
222
|
/**
|
|
@@ -302,6 +297,5 @@ export interface SmartDomMentionSourceOptions extends SmartDomContextOptions {
|
|
|
302
297
|
* ```
|
|
303
298
|
*/
|
|
304
299
|
export declare function createSmartDomMentionSource(opts?: SmartDomMentionSourceOptions): AgentWidgetContextMentionSource;
|
|
305
|
-
//#endregion
|
|
306
300
|
export type { EnrichedPageElement, SmartDomAdapterOptions };
|
|
307
301
|
export {}
|
package/dist/testing.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/testing/mock-stream.d.ts
|
|
2
1
|
/** Shared helpers for mocking SSE streams in demos, previews, and tests. */
|
|
3
2
|
interface MockSSEFrame {
|
|
4
3
|
type: string;
|
|
@@ -42,6 +41,5 @@ interface MockSSEResponseOptions extends CreateMockSSEStreamOptions {
|
|
|
42
41
|
}
|
|
43
42
|
/** Convenience wrapper: returns a `Response` ready to hand back from a `customFetch` implementation. */
|
|
44
43
|
export declare function createMockSSEResponse(frames: ReadonlyArray<MockSSEFrame>, options?: MockSSEResponseOptions): Response;
|
|
45
|
-
//#endregion
|
|
46
44
|
export type { AssistantTurnFramesOptions, CreateMockSSEStreamOptions, MockSSEFrame, MockSSEResponseOptions };
|
|
47
45
|
export {}
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/testing/mock-stream.d.ts
|
|
2
1
|
/** Shared helpers for mocking SSE streams in demos, previews, and tests. */
|
|
3
2
|
interface MockSSEFrame {
|
|
4
3
|
type: string;
|
|
@@ -42,6 +41,5 @@ interface MockSSEResponseOptions extends CreateMockSSEStreamOptions {
|
|
|
42
41
|
}
|
|
43
42
|
/** Convenience wrapper: returns a `Response` ready to hand back from a `customFetch` implementation. */
|
|
44
43
|
export declare function createMockSSEResponse(frames: ReadonlyArray<MockSSEFrame>, options?: MockSSEResponseOptions): Response;
|
|
45
|
-
//#endregion
|
|
46
44
|
export type { AssistantTurnFramesOptions, CreateMockSSEStreamOptions, MockSSEFrame, MockSSEResponseOptions };
|
|
47
45
|
export {}
|