@deep-eye/core 1.3.35 → 1.3.38
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/CHANGELOG.md +50 -0
- package/dist/chat-token.css +1 -0
- package/dist/components/chat/ChatApp.vue.d.ts +9 -4
- package/dist/components/chat/ChatApp.vue.d.ts.map +1 -1
- package/dist/components/chat/ChatBot.vue.d.ts +7 -3
- package/dist/components/chat/ChatBot.vue.d.ts.map +1 -1
- package/dist/components/chat/attachments.d.ts +4 -0
- package/dist/components/chat/attachments.d.ts.map +1 -1
- package/dist/components/chat/buildTimelineSegments.d.ts +18 -2
- package/dist/components/chat/buildTimelineSegments.d.ts.map +1 -1
- package/dist/components/chat/chatAgentMode.d.ts +15 -0
- package/dist/components/chat/chatAgentMode.d.ts.map +1 -0
- package/dist/components/chat/chatEditSend.d.ts +10 -0
- package/dist/components/chat/chatEditSend.d.ts.map +1 -0
- package/dist/components/chat/citation/CatalogHighlightList.vue.d.ts +9 -0
- package/dist/components/chat/citation/CatalogHighlightList.vue.d.ts.map +1 -0
- package/dist/components/chat/citation/CitationHoverLayer.vue.d.ts +25 -0
- package/dist/components/chat/citation/CitationHoverLayer.vue.d.ts.map +1 -0
- package/dist/components/chat/citation/CitationPreviewDialog.vue.d.ts +22 -0
- package/dist/components/chat/citation/CitationPreviewDialog.vue.d.ts.map +1 -0
- package/dist/components/chat/citation/ParsedPdfPage.vue.d.ts +26 -0
- package/dist/components/chat/citation/ParsedPdfPage.vue.d.ts.map +1 -0
- package/dist/components/chat/citation/ParsedPdfPageSkeleton.vue.d.ts +7 -0
- package/dist/components/chat/citation/ParsedPdfPageSkeleton.vue.d.ts.map +1 -0
- package/dist/components/chat/citation/ParsedPdfPagesViewer.vue.d.ts +23 -0
- package/dist/components/chat/citation/ParsedPdfPagesViewer.vue.d.ts.map +1 -0
- package/dist/components/chat/citation/locateCitation.d.ts +22 -0
- package/dist/components/chat/citation/locateCitation.d.ts.map +1 -0
- package/dist/components/chat/citation/renderCitationMarkdown.d.ts +2 -0
- package/dist/components/chat/citation/renderCitationMarkdown.d.ts.map +1 -0
- package/dist/components/chat/citation/useCitationPreview.d.ts +62 -0
- package/dist/components/chat/citation/useCitationPreview.d.ts.map +1 -0
- package/dist/components/chat/cloudConfig.d.ts +23 -2
- package/dist/components/chat/cloudConfig.d.ts.map +1 -1
- package/dist/components/chat/components/ChatActionbar.vue.d.ts +15 -0
- package/dist/components/chat/components/ChatActionbar.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatAttachments.vue.d.ts +3 -0
- package/dist/components/chat/components/ChatAttachments.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatFileCard.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatMessage.vue.d.ts +14 -1
- package/dist/components/chat/components/ChatMessage.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatQueue.vue.d.ts +2 -2
- package/dist/components/chat/components/ChatReasoning.vue.d.ts +11 -0
- package/dist/components/chat/components/ChatReasoning.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSender.vue.d.ts +8 -4
- package/dist/components/chat/components/ChatSender.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ConversationList.vue.d.ts +7 -1
- package/dist/components/chat/components/ConversationList.vue.d.ts.map +1 -1
- package/dist/components/chat/components/InputContentParts.vue.d.ts.map +1 -1
- package/dist/components/chat/components/MessageBubble.vue.d.ts +14 -1
- package/dist/components/chat/components/MessageBubble.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ProcessStepGroup.vue.d.ts +3 -1
- package/dist/components/chat/components/ProcessStepGroup.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ThinkingOrb.vue.d.ts +7 -0
- package/dist/components/chat/components/ThinkingOrb.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ThinkingRobot.vue.d.ts +24 -0
- package/dist/components/chat/components/ThinkingRobot.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ToolCallPart.vue.d.ts.map +1 -1
- package/dist/components/chat/components/UserMessageEditor.vue.d.ts +22 -0
- package/dist/components/chat/components/UserMessageEditor.vue.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/DocViewerToolbar.vue.d.ts +2 -2
- package/dist/components/chat/components/document-viewer/html/HtmlRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/markdown/MarkdownRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/office/OfficeDocumentViewer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/pdf/PdfRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/text/TextRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/xlsx/XlsxRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/zip/ZipRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/index.d.ts +2 -1
- package/dist/components/chat/components/index.d.ts.map +1 -1
- package/dist/components/chat/composables/chatApiRequest.d.ts.map +1 -1
- package/dist/components/chat/composables/chatReferenceApi.d.ts +52 -0
- package/dist/components/chat/composables/chatReferenceApi.d.ts.map +1 -0
- package/dist/components/chat/composables/chatTtsApi.d.ts +14 -0
- package/dist/components/chat/composables/chatTtsApi.d.ts.map +1 -0
- package/dist/components/chat/composables/useChatSessionSlots.d.ts +3 -0
- package/dist/components/chat/composables/useChatSessionSlots.d.ts.map +1 -1
- package/dist/components/chat/composables/useChatSkillTipMenu.d.ts +4 -0
- package/dist/components/chat/composables/useChatSkillTipMenu.d.ts.map +1 -1
- package/dist/components/chat/composables/useChatTipMenu.d.ts +7 -5
- package/dist/components/chat/composables/useChatTipMenu.d.ts.map +1 -1
- package/dist/components/chat/composables/useTtsPlayback.d.ts +24 -0
- package/dist/components/chat/composables/useTtsPlayback.d.ts.map +1 -0
- package/dist/components/chat/formatToolArguments.d.ts +8 -1
- package/dist/components/chat/formatToolArguments.d.ts.map +1 -1
- package/dist/components/chat/harness/DisclosureRow.vue.d.ts.map +1 -1
- package/dist/components/chat/hydrateHistory.d.ts.map +1 -1
- package/dist/components/chat/icons/ChatSpeakingIcon.vue.d.ts +9 -0
- package/dist/components/chat/icons/ChatSpeakingIcon.vue.d.ts.map +1 -0
- package/dist/components/chat/icons/ChatTipMenuModeIcon.vue.d.ts +7 -0
- package/dist/components/chat/icons/ChatTipMenuModeIcon.vue.d.ts.map +1 -0
- package/dist/components/chat/icons/index.d.ts +2 -0
- package/dist/components/chat/icons/index.d.ts.map +1 -1
- package/dist/components/chat/icons/tipMenuItemIcons.d.ts +5 -0
- package/dist/components/chat/icons/tipMenuItemIcons.d.ts.map +1 -1
- package/dist/components/chat/index.d.ts +10 -2
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/mdoc/AskUserForm.vue.d.ts.map +1 -1
- package/dist/components/chat/mdoc/ContentNodes.vue.d.ts.map +1 -1
- package/dist/components/chat/mdoc/artifactDownload.d.ts +16 -0
- package/dist/components/chat/mdoc/artifactDownload.d.ts.map +1 -1
- package/dist/components/chat/mdoc/index.d.ts +1 -1
- package/dist/components/chat/mdoc/index.d.ts.map +1 -1
- package/dist/components/chat/mdoc/textContent.d.ts +9 -0
- package/dist/components/chat/mdoc/textContent.d.ts.map +1 -1
- package/dist/components/chat/mdoc/widget/InlineWidgetCard.vue.d.ts +17 -0
- package/dist/components/chat/mdoc/widget/InlineWidgetCard.vue.d.ts.map +1 -0
- package/dist/components/chat/mdoc/widget/parseWidget.d.ts +32 -0
- package/dist/components/chat/mdoc/widget/parseWidget.d.ts.map +1 -0
- package/dist/components/chat/mdoc/widget/sanitizeSvg.d.ts +8 -0
- package/dist/components/chat/mdoc/widget/sanitizeSvg.d.ts.map +1 -0
- package/dist/components/chat/mdoc/widget/widgetDownload.d.ts +28 -0
- package/dist/components/chat/mdoc/widget/widgetDownload.d.ts.map +1 -0
- package/dist/components/chat/mentionEditor.d.ts +2 -0
- package/dist/components/chat/mentionEditor.d.ts.map +1 -1
- package/dist/components/chat/messageChrome.d.ts +7 -0
- package/dist/components/chat/messageChrome.d.ts.map +1 -1
- package/dist/components/chat/morphOrb/bodyRenderer.d.ts +43 -0
- package/dist/components/chat/morphOrb/bodyRenderer.d.ts.map +1 -0
- package/dist/components/chat/morphOrb/robotAppearance.d.ts +8 -0
- package/dist/components/chat/morphOrb/robotAppearance.d.ts.map +1 -0
- package/dist/components/chat/morphOrb/robotBody.d.ts +18 -0
- package/dist/components/chat/morphOrb/robotBody.d.ts.map +1 -0
- package/dist/components/chat/morphOrb/robotProjection.d.ts +23 -0
- package/dist/components/chat/morphOrb/robotProjection.d.ts.map +1 -0
- package/dist/components/chat/morphOrb/vendor/grok-ball.d.ts +3 -0
- package/dist/components/chat/morphOrb/vendor/grok-ball.d.ts.map +1 -1
- package/dist/components/chat/processGroupSummary.d.ts +10 -11
- package/dist/components/chat/processGroupSummary.d.ts.map +1 -1
- package/dist/components/chat/responseStream.d.ts.map +1 -1
- package/dist/components/chat/restartUserTurn.d.ts +12 -0
- package/dist/components/chat/restartUserTurn.d.ts.map +1 -0
- package/dist/components/chat/toolLabels.d.ts +9 -0
- package/dist/components/chat/toolLabels.d.ts.map +1 -1
- package/dist/components/chat/types.d.ts +38 -2
- package/dist/components/chat/types.d.ts.map +1 -1
- package/dist/components/skill/components/ChatSkillCard.vue.d.ts.map +1 -1
- package/dist/components/skill/types.d.ts +4 -2
- package/dist/components/skill/types.d.ts.map +1 -1
- package/dist/components/ui/components/UiMenuSubmenuColumn.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiMenuSubmenuList.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiPopover.vue.d.ts +48 -0
- package/dist/components/ui/components/UiPopover.vue.d.ts.map +1 -0
- package/dist/components/ui/components/index.d.ts +1 -0
- package/dist/components/ui/components/index.d.ts.map +1 -1
- package/dist/components/ui/types.d.ts +4 -0
- package/dist/components/ui/types.d.ts.map +1 -1
- package/dist/components/ui/utils/mapDropdownMenuItems.d.ts.map +1 -1
- package/dist/{index-YGOZG7NY.cjs → index-CKqKKfcI.cjs} +1 -1
- package/dist/{index-BiFEM-cH.cjs → index-CPFT9fJM.cjs} +447 -353
- package/dist/{index-DlOZCjlk.js → index-Can4Pwg2.js} +79874 -75388
- package/dist/{index-BAdLFdCP.js → index-CmO5DZWA.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +409 -379
- package/dist/style.css +2 -2
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ export type { ChartType } from './chart/schema';
|
|
|
12
12
|
export { extractAskUserQuestionsFromContent as extractAskFormNodes, extractAskUserFromToolCall as extractAskFormMdocFromToolCall, extractAskUserFromToolCalls as extractAskFormMdocFromToolCalls, filterOutAskUserToolCalls as filterOutAskFormToolCalls, isAskUserToolName as isAskFormToolName, } from '../askUser';
|
|
13
13
|
export type { AskUserToolExtract as AskFormToolMdoc } from '../askUser';
|
|
14
14
|
export { convertReferenceMarkers, createReferenceClickHandler, escapeHtml, extractReferenceIndex, renderPlainTextWithReferences, } from './referenceMarkup';
|
|
15
|
-
export { TEXT_ARTIFACT_TYPES, FILE_ARTIFACT_TYPES, isTextArtifactType, textArtifactFileInfo, artifactSubtitle, downloadArtifact, } from './artifactDownload';
|
|
15
|
+
export { TEXT_ARTIFACT_TYPES, FILE_ARTIFACT_TYPES, isTextArtifactType, textArtifactFileInfo, artifactSubtitle, downloadArtifact, downloadFromSrc, resolveArtifactDownloadFileName, withDownloadAttname, } from './artifactDownload';
|
|
16
16
|
export type { TextArtifactType, FileArtifactType, DownloadArtifactInput } from './artifactDownload';
|
|
17
17
|
export { resolveArtifactExtension, resolveArtifactPreviewKind, resolveArtifactOpenStrategy, artifactToChatResource, openArtifactInNewTab, } from './artifactOpenStrategy';
|
|
18
18
|
export type { ArtifactOpenMode, ResolveArtifactOpenStrategyInput } from './artifactOpenStrategy';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc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e,EACf,+BAA+B,EAC/B,mBAAmB,GACpB,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AACnG,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC3B,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,wBAAwB,CAAA;AAC/B,YAAY,EAAE,gBAAgB,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AAChG,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AACrF,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,2BAA2B,EAC3B,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,aAAa,GACd,MAAM,cAAc,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type WidgetRenderMode } from './widget/parseWidget';
|
|
1
2
|
export { convertReferenceMarkers } from './referenceMarkup';
|
|
2
3
|
declare const sharedIsReady: import("vue").Ref<boolean, boolean>;
|
|
3
4
|
export declare function ensureMarkdownReady(): Promise<void>;
|
|
@@ -36,6 +37,14 @@ export type TextSegment = {
|
|
|
36
37
|
type: 'media-pending';
|
|
37
38
|
id: string;
|
|
38
39
|
mediaType: 'image' | 'video' | 'audio';
|
|
40
|
+
} | {
|
|
41
|
+
type: 'widget';
|
|
42
|
+
id: string;
|
|
43
|
+
title: string;
|
|
44
|
+
loadingMessages: string[];
|
|
45
|
+
widgetCode: string;
|
|
46
|
+
renderMode: WidgetRenderMode;
|
|
47
|
+
complete: boolean;
|
|
39
48
|
};
|
|
40
49
|
/**
|
|
41
50
|
* While streaming, the model emits `[IMG:{…}]` / `[VIDEO:{…}]` / `[AUDIO:{…}]`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textContent.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/textContent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"textContent.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/textContent.ts"],"names":[],"mappings":"AAQA,OAAO,EAAwC,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAElG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAE3D,QAAA,MAAM,aAAa,qCAAa,CAAA;AAGhC,wBAAgB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAYnD;AAID,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,CAAA;AAEzC,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,GAChF;IACE,IAAI,EAAE,aAAa,CAAA;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACxD,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,GACD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC3D;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAC1D;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAA;CAAE,GAC7E;IACE,IAAI,EAAE,QAAQ,CAAA;IACd,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA;AA4DL;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG;IAC1D,SAAS,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAA;IACtC,UAAU,EAAE,MAAM,CAAA;CACnB,GAAG,IAAI,CAeP;AAoCD,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,GACpC,WAAW,EAAE,CAqGf"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { WidgetRenderMode } from './parseWidget';
|
|
2
|
+
import './widgetHost.css';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
title: string;
|
|
5
|
+
loadingMessages?: string[];
|
|
6
|
+
widgetCode: string;
|
|
7
|
+
renderMode: WidgetRenderMode;
|
|
8
|
+
complete: boolean;
|
|
9
|
+
isStreaming?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
loadingMessages: string[];
|
|
13
|
+
isStreaming: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=InlineWidgetCard.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineWidgetCard.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/mdoc/widget/InlineWidgetCard.vue"],"names":[],"mappings":"AAkqBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAQrD,OAAO,kBAAkB,CAAA;AAIzB,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAskBJ,QAAA,MAAM,YAAY;qBA3kBI,MAAM,EAAE;iBAIZ,OAAO;6EA0kBvB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type WidgetRenderMode = 'svg' | 'html';
|
|
2
|
+
export interface WidgetPayload {
|
|
3
|
+
title: string;
|
|
4
|
+
loadingMessages: string[];
|
|
5
|
+
widgetCode: string;
|
|
6
|
+
renderMode: WidgetRenderMode;
|
|
7
|
+
}
|
|
8
|
+
export interface CompleteWidget extends WidgetPayload {
|
|
9
|
+
id: string;
|
|
10
|
+
complete: true;
|
|
11
|
+
}
|
|
12
|
+
/** Still streaming: `widgetCode` is whatever has arrived after `---` so far. */
|
|
13
|
+
export interface PendingWidget extends WidgetPayload {
|
|
14
|
+
id: string;
|
|
15
|
+
complete: false;
|
|
16
|
+
}
|
|
17
|
+
export type ExtractedWidget = CompleteWidget | PendingWidget;
|
|
18
|
+
export interface ExtractWidgetsResult {
|
|
19
|
+
content: string;
|
|
20
|
+
widgets: CompleteWidget[];
|
|
21
|
+
pending: PendingWidget | null;
|
|
22
|
+
}
|
|
23
|
+
export declare function parseLoadingMessages(raw: string): string[];
|
|
24
|
+
export declare function widgetRenderMode(code: string): WidgetRenderMode;
|
|
25
|
+
export declare function parseWidgetBody(body: string): WidgetPayload | null;
|
|
26
|
+
/**
|
|
27
|
+
* Pull standalone ```widget fences out of markdown so md4x never sees the
|
|
28
|
+
* SVG/HTML payload. Incomplete fences (still streaming or aborted) become
|
|
29
|
+
* `pending` instead of leaking raw source.
|
|
30
|
+
*/
|
|
31
|
+
export declare function extractWidgets(markdown: string): ExtractWidgetsResult;
|
|
32
|
+
//# sourceMappingURL=parseWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/mdoc/widget/parseWidget.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,MAAM,CAAA;AAE7C,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,gBAAgB,CAAA;CAC7B;AAED,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,IAAI,CAAA;CACf;AAED,gFAAgF;AAChF,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,KAAK,CAAA;CAChB;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG,aAAa,CAAA;AAE5D,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,OAAO,EAAE,aAAa,GAAG,IAAI,CAAA;CAC9B;AAMD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAqB1D;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAE/D;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAclE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,oBAAoB,CAgCrE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sanitize a Visualizer SVG fragment. Keeps marker/defs/style/viewBox;
|
|
3
|
+
* strips script, foreignObject, event handlers, and external `use`.
|
|
4
|
+
* Do not reuse the generic Markdown sanitizer — svg is not on that whitelist.
|
|
5
|
+
* No-ops during SSR (VitePress) where DOMPurify has no window.
|
|
6
|
+
*/
|
|
7
|
+
export declare function sanitizeSvg(svg: string): string;
|
|
8
|
+
//# sourceMappingURL=sanitizeSvg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitizeSvg.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/mdoc/widget/sanitizeSvg.ts"],"names":[],"mappings":"AA2CA;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAU/C"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Match show_widget.js: spaces/hyphens → underscore, drop other punctuation. */
|
|
2
|
+
export declare function sanitizeWidgetTitle(title: string): string;
|
|
3
|
+
export declare function widgetDownloadName(title: string, extension: string): string;
|
|
4
|
+
/**
|
|
5
|
+
* Full HTML page for a skill widget: host CSS, tokens pinned from `hostEl`
|
|
6
|
+
* (falls back to the light defaults when absent), fragment wrapped in
|
|
7
|
+
* `.inline-widget-host`. Shared by download and the in-bubble frame.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildWidgetHtmlDocument(title: string, widgetCode: string, hostEl?: HTMLElement | null): string;
|
|
10
|
+
/** Wrap the widget fragment in a page and download via the shared artifact helper. */
|
|
11
|
+
export declare function downloadWidgetAsHtml(title: string, widgetCode: string, hostEl?: HTMLElement | null): void;
|
|
12
|
+
/**
|
|
13
|
+
* Same srcdoc pipeline as `HtmlRenderer`: wrap the fragment, then
|
|
14
|
+
* `annotateHtmlForPreview` (screenshot / 划词 bridge). The iframe itself
|
|
15
|
+
* matches `ArtifactPreview` (`srcdoc` + `sandbox="allow-scripts"`).
|
|
16
|
+
*/
|
|
17
|
+
export declare function buildWidgetPreviewSrcdoc(title: string, widgetCode: string, hostEl?: HTMLElement | null): string;
|
|
18
|
+
export declare function collectWidgetHostCss(): string;
|
|
19
|
+
/** Rasterize the preview SVG as it is displayed, then download via the shared blob helper. */
|
|
20
|
+
export declare function downloadWidgetAsPng(svg: SVGSVGElement, title: string): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* HTML widgets live in a sandboxed iframe (no same-origin), so reuse the
|
|
23
|
+
* document-viewer screenshot pipeline: the frame bridge posts its live DOM,
|
|
24
|
+
* the host re-mounts it off-screen and rasterizes the whole frame box.
|
|
25
|
+
* Returns false when nothing could be captured.
|
|
26
|
+
*/
|
|
27
|
+
export declare function downloadWidgetFrameAsPng(frameWrap: HTMLElement, frame: HTMLIFrameElement, title: string): Promise<boolean>;
|
|
28
|
+
//# sourceMappingURL=widgetDownload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widgetDownload.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/mdoc/widget/widgetDownload.ts"],"names":[],"mappings":"AAMA,iFAAiF;AACjF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQzD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAG3E;AAsBD;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,GAC1B,MAAM,CAiBR;AAED,sFAAsF;AACtF,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,GAC1B,IAAI,CAMN;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,GAC1B,MAAM,CAGR;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAa7C;AAoED,8FAA8F;AAC9F,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAa1F;AAED;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,SAAS,EAAE,WAAW,EACtB,KAAK,EAAE,iBAAiB,EACxB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,OAAO,CAAC,CAalB"}
|
|
@@ -99,6 +99,8 @@ export declare function renderPlainTextIntoEditor(root: HTMLElement, text: strin
|
|
|
99
99
|
/** Inserts `text` at `range`, converting embedded `\n` into real `<br>` elements. Returns the last inserted node (for caret placement), or null if `text` was empty. */
|
|
100
100
|
export declare function insertTextWithLineBreaksAtRange(range: Range, text: string): Node | null;
|
|
101
101
|
export declare function hasMeaningfulContent(root: HTMLElement): boolean;
|
|
102
|
+
/** Collapse the live selection to the end of `editor`. Call after `focus()` — focus parks the caret at the start. */
|
|
103
|
+
export declare function placeCaretAtEnd(editor: HTMLElement): void;
|
|
102
104
|
/**
|
|
103
105
|
* Design doc §7: native Range API caret positioning, with a zero-width-space probe fallback.
|
|
104
106
|
* jsdom (used in unit tests) does not implement `Range.getBoundingClientRect` at all, so this
|
|
@@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WAAW,GAAG,OAAO,GAAG,IAAI,CAerE;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,MAAM,CAAA;IACtB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;wEACoE;IACpE,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,OAAO,GAAG,OAAO,CAAA;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,wBAAwB,GAAG,mBAAmB,CA+B/F"}
|
|
@@ -10,6 +10,13 @@ export declare function formatMessageClock(time: number, now?: number): string;
|
|
|
10
10
|
export declare function formatRunDuration(ms: number): string;
|
|
11
11
|
/** In-progress elapsed label: `秒` under 1 minute, then `分`, then `时`. */
|
|
12
12
|
export declare function formatElapsedSeconds(totalSec: number): string;
|
|
13
|
+
/**
|
|
14
|
+
* Compact duration for the collapsed outer shell title (`14m3s` / `3s` / `1h2m`).
|
|
15
|
+
* No unit-word separators, no leading-zero padding, no `0` units in the middle
|
|
16
|
+
* (matches Doubao/Claude-style compact timers, unlike `formatElapsedSeconds`'s
|
|
17
|
+
* `· 用时 …` prose form).
|
|
18
|
+
*/
|
|
19
|
+
export declare function formatCompactElapsedSeconds(totalSec: number): string;
|
|
13
20
|
/** TTFT figure: one decimal under 10s, whole seconds beyond. */
|
|
14
21
|
export declare function formatLatencySeconds(ms: number): string;
|
|
15
22
|
/** Decode throughput: whole tokens from 10 up, one decimal below. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageChrome.d.ts","sourceRoot":"","sources":["../../../src/components/chat/messageChrome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAW/C;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGtD;AAED,kFAAkF;AAClF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,MAAmB,GAAG,MAAM,CAejF;AAED,2DAA2D;AAC3D,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,yEAAyE;AACzE,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAiB7D;AAED,gEAAgE;AAChE,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED,qEAAqE;AACrE,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGzD;AAUD;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,YAAY,GAAG,cAAc,CAAC,EACzE,GAAG,GAAE,MAAmB,GACvB,MAAM,GAAG,SAAS,CAOpB;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,gBAAgB,EACzB,GAAG,GAAE,MAAmB,GACvB,gBAAgB,CAkBlB"}
|
|
1
|
+
{"version":3,"file":"messageChrome.d.ts","sourceRoot":"","sources":["../../../src/components/chat/messageChrome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAW/C;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGtD;AAED,kFAAkF;AAClF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,MAAmB,GAAG,MAAM,CAejF;AAED,2DAA2D;AAC3D,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,yEAAyE;AACzE,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAiB7D;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAgBpE;AAED,gEAAgE;AAChE,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED,qEAAqE;AACrE,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGzD;AAUD;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,YAAY,GAAG,cAAc,CAAC,EACzE,GAAG,GAAE,MAAmB,GACvB,MAAM,GAAG,SAAS,CAOpB;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,gBAAgB,EACzB,GAAG,GAAE,MAAmB,GACvB,gBAAgB,CAkBlB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface GrokEyePose {
|
|
2
|
+
ring: [number, number][];
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
scaleX: number;
|
|
6
|
+
scaleY: number;
|
|
7
|
+
rotate: number;
|
|
8
|
+
open: number;
|
|
9
|
+
color: string;
|
|
10
|
+
lookX: number;
|
|
11
|
+
lookY: number;
|
|
12
|
+
robotGazeScaleY?: number;
|
|
13
|
+
robotTurn?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface GrokBodyPose {
|
|
16
|
+
body: {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
scale: number;
|
|
20
|
+
rotate: number;
|
|
21
|
+
color: string;
|
|
22
|
+
yaw: number;
|
|
23
|
+
sketch: number;
|
|
24
|
+
robotWrite?: number;
|
|
25
|
+
};
|
|
26
|
+
left: GrokEyePose;
|
|
27
|
+
right: GrokEyePose;
|
|
28
|
+
}
|
|
29
|
+
export interface GrokBodyContext {
|
|
30
|
+
group: SVGGElement;
|
|
31
|
+
defs: SVGDefsElement;
|
|
32
|
+
id: string;
|
|
33
|
+
frontEffects?: SVGGElement;
|
|
34
|
+
}
|
|
35
|
+
export type GrokBodyFactory = (context: GrokBodyContext) => {
|
|
36
|
+
applyPose(pose: GrokBodyPose): void;
|
|
37
|
+
projectTrail?(point: [number, number, number], orbit: boolean): {
|
|
38
|
+
x: number;
|
|
39
|
+
y: number;
|
|
40
|
+
z: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=bodyRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bodyRenderer.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/morphOrb/bodyRenderer.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAA;IACxB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE;QACJ,CAAC,EAAE,MAAM,CAAA;QACT,CAAC,EAAE,MAAM,CAAA;QACT,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE,MAAM,CAAA;QACb,GAAG,EAAE,MAAM,CAAA;QACX,MAAM,EAAE,MAAM,CAAA;QACd,UAAU,CAAC,EAAE,MAAM,CAAA;KACpB,CAAA;IACD,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,EAAE,WAAW,CAAA;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,WAAW,CAAA;IAClB,IAAI,EAAE,cAAc,CAAA;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,eAAe,KAAK;IAC1D,SAAS,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,YAAY,CAAC,CACX,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAC/B,KAAK,EAAE,OAAO,GACb;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACvC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"robotAppearance.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/morphOrb/robotAppearance.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM;;;;;;EAU/C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { GrokBodyContext, GrokBodyPose } from './bodyRenderer';
|
|
2
|
+
type Point3 = [number, number, number];
|
|
3
|
+
interface RobotBodyOptions {
|
|
4
|
+
yaw: number;
|
|
5
|
+
pitch: number;
|
|
6
|
+
compact: boolean;
|
|
7
|
+
width?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function createRobotBody(context: GrokBodyContext, options: RobotBodyOptions): {
|
|
10
|
+
applyPose: (pose: GrokBodyPose) => void;
|
|
11
|
+
projectTrail: (point: Point3, orbit: boolean) => {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
z: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=robotBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"robotBody.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/morphOrb/robotBody.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAe,MAAM,gBAAgB,CAAA;AAWhF,KAAK,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;AAGtC,UAAU,gBAAgB;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AA+DD,wBAAgB,eAAe,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,gBAAgB;sBAoMxD,YAAY;0BA+PR,MAAM,SAAS,OAAO;;;;;EAWpD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type RobotPoint3 = [number, number, number];
|
|
2
|
+
export type RobotPoint2 = [number, number];
|
|
3
|
+
export declare const ROBOT_HEAD_RADII: RobotPoint3;
|
|
4
|
+
export declare const ROBOT_HEAD_POWER = 2.7;
|
|
5
|
+
export declare const ROBOT_CAMERA_DISTANCE = 540;
|
|
6
|
+
export declare function robotTrailPoint(point: RobotPoint3, orbit: boolean): RobotPoint3;
|
|
7
|
+
export declare function createRobotProjection(yaw: number, pitch: number): {
|
|
8
|
+
rotate: (point: RobotPoint3) => RobotPoint3;
|
|
9
|
+
project: (point: RobotPoint3) => RobotPoint2;
|
|
10
|
+
scale: (point: RobotPoint3) => number;
|
|
11
|
+
surface: (point: RobotPoint2, side?: number) => RobotPoint3;
|
|
12
|
+
facing: (point: RobotPoint3, center?: RobotPoint3, radii?: RobotPoint3, power?: number) => number;
|
|
13
|
+
outline: (radii: RobotPoint3, center: RobotPoint3, power: number, segments: number) => RobotPoint3[];
|
|
14
|
+
headClearance: (point: RobotPoint3) => number;
|
|
15
|
+
};
|
|
16
|
+
export declare function clipRobotPolygon(points: RobotPoint3[], values: number[]): RobotPoint3[];
|
|
17
|
+
export declare function createRobotEarMesh(center: RobotPoint3, radii: RobotPoint3): {
|
|
18
|
+
vertices: RobotPoint3[];
|
|
19
|
+
triangles: [number, number, number][];
|
|
20
|
+
center: RobotPoint3;
|
|
21
|
+
radii: RobotPoint3;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=robotProjection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"robotProjection.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/morphOrb/robotProjection.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;AAClD,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAE1C,eAAO,MAAM,gBAAgB,EAAE,WAA0B,CAAA;AACzD,eAAO,MAAM,gBAAgB,MAAM,CAAA;AACnC,eAAO,MAAM,qBAAqB,MAAM,CAAA;AAExC,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,WAAW,CAE/E;AAmCD,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;oBAMvC,WAAW,KAAG,WAAW;qBAsBxB,WAAW,KAAG,WAAW;mBAJ3B,WAAW,KAAG,MAAM;qBAUlB,WAAW,oBAAa,WAAW;oBAWlD,WAAW,WACV,WAAW,0CAGlB,MAAM;qBAOA,WAAW,UACV,WAAW,SACZ,MAAM,YACH,MAAM,KACf,WAAW,EAAE;2BAoBc,WAAW,KAAG,MAAM;EAsBnD;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,CAiBvF;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW;;;;;EA2BzE"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* this file loads that same runtime, then exposes its public contract.
|
|
6
6
|
*/
|
|
7
7
|
import './grok-ball.runtime.js';
|
|
8
|
+
import type { GrokBodyFactory } from '../bodyRenderer';
|
|
8
9
|
export type BuiltInEmotionId = '00' | '01' | '02' | '03' | '04' | '05' | '06' | '07' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' | '20' | '21' | '30' | '31' | '32' | '33' | '34' | '35' | '36' | '37' | '38' | '39' | '40' | '41';
|
|
9
10
|
export type EmotionId = BuiltInEmotionId | (string & NonNullable<unknown>);
|
|
10
11
|
export type EmotionGroupKey = 'life' | 'emotion' | 'agent' | 'custom';
|
|
@@ -28,6 +29,7 @@ export interface IdleOptions {
|
|
|
28
29
|
sleepId?: EmotionId;
|
|
29
30
|
}
|
|
30
31
|
export interface GrokBallCreateOptions {
|
|
32
|
+
createBody?: GrokBodyFactory;
|
|
31
33
|
emotion?: EmotionId;
|
|
32
34
|
color?: `#${string}`;
|
|
33
35
|
eyeColor?: `#${string}`;
|
|
@@ -62,6 +64,7 @@ export interface GrokBallEngine {
|
|
|
62
64
|
bounce(): this;
|
|
63
65
|
setActive(active: boolean): void;
|
|
64
66
|
replay(): void;
|
|
67
|
+
renderStatic(atMs?: number): void;
|
|
65
68
|
startTour(ids: EmotionId[], interval?: number): void;
|
|
66
69
|
stopTour(): void;
|
|
67
70
|
resetIdle(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grok-ball.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/morphOrb/vendor/grok-ball.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"grok-ball.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/morphOrb/vendor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,EAAE,cAAc,EAAE,CAAA;IACnC,QAAQ,CAAC,MAAM,EAAE,YAAY,EAAE,CAAA;IAC/B,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAA;IAClC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,cAAc,CAAA;CAClF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,QAAQ,EAAE,cAAc,CAAA;KACzB;CACF;AAUD,qFAAqF;AACrF,eAAO,MAAM,QAAQ,EAAE,cAMrB,CAAA;AAEF,kFAAkF;AAClF,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,mBAAmB,GAAG,MAAM,GACpC,OAAO,CAET;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AssistantReasoningStep, AssistantSubagentsStep, AssistantToolCallsStep, AssistantWebSearchStep, ChatToolStates, ToolMessage } from './types';
|
|
2
|
-
export type ProcessGroupStep = AssistantReasoningStep | AssistantToolCallsStep | AssistantWebSearchStep | AssistantSubagentsStep;
|
|
1
|
+
import type { AssistantContentStep, AssistantReasoningStep, AssistantSubagentsStep, AssistantToolCallsStep, AssistantWebSearchStep, ChatToolStates, ToolMessage } from './types';
|
|
2
|
+
export type ProcessGroupStep = AssistantReasoningStep | AssistantContentStep | AssistantToolCallsStep | AssistantWebSearchStep | AssistantSubagentsStep;
|
|
3
3
|
/** Max length for a reasoning first-line used as the collapsed group summary. */
|
|
4
4
|
export declare const PROCESS_GROUP_REASONING_SUMMARY_MAX = 120;
|
|
5
5
|
/**
|
|
@@ -15,19 +15,18 @@ export declare function lastReasoningFirstLine(steps: readonly ProcessGroupStep[
|
|
|
15
15
|
export interface ResolveProcessGroupSummaryInput {
|
|
16
16
|
/** Group still streaming or has in-flight tools. */
|
|
17
17
|
inProgress: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Optional elapsed seconds. The group title itself stays semantic;
|
|
20
|
-
* `ProcessStepGroup` renders `· 已用时 …` in a separate meta slot.
|
|
21
|
-
*/
|
|
22
|
-
elapsedSec?: number;
|
|
23
18
|
providerSummary?: string;
|
|
24
19
|
steps: readonly ProcessGroupStep[];
|
|
25
20
|
}
|
|
26
21
|
/**
|
|
27
|
-
* Collapsed group title (
|
|
28
|
-
*
|
|
29
|
-
* In progress: provider
|
|
30
|
-
* Complete:
|
|
22
|
+
* Collapsed group title for the whole round (three-tier fold outer shell).
|
|
23
|
+
* `<summary>` is only consulted in progress; `_display_summary` stays on the tool row.
|
|
24
|
+
* In progress: provider `<summary>` → 处理中 (subagents keep their own label).
|
|
25
|
+
* Complete: always `已完成` — the outer shell never surfaces `<summary>` or
|
|
26
|
+
* a reasoning-only `思考过程` title. Expanding it reveals the `深度思考` /
|
|
27
|
+
* tool-timeline tier; expanding that reveals the reasoning body (tier three).
|
|
28
|
+
* Duration lives in `· 用时 …` / the actionbar, not the title.
|
|
29
|
+
* Never mirrors reasoning body, step counts, or tool `_display_summary`.
|
|
31
30
|
*/
|
|
32
31
|
export declare function resolveProcessGroupSummary({ inProgress, providerSummary, steps, }: ResolveProcessGroupSummaryInput): string;
|
|
33
32
|
export interface IsProcessGroupInProgressInput {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processGroupSummary.d.ts","sourceRoot":"","sources":["../../../src/components/chat/processGroupSummary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,EACd,WAAW,EACZ,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"processGroupSummary.d.ts","sourceRoot":"","sources":["../../../src/components/chat/processGroupSummary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,E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at/responseStream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EAEb,qBAAqB,EAGrB,cAAc,EACd,kBAAkB,EAQlB,oBAAoB,EAGrB,MAAM,SAAS,CAAA;AA+DhB,qBAAa,2BAA4B,SAAQ,KAAK;IACpD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;gBAEH,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;CAM5D;AAED,iEAAiE;AACjE,eAAO,MAAM,wBAAwB,wBAAwB,CAAA;AAC7D,4DAA4D;AAC5D,eAAO,MAAM,iBAAiB,iBAAiB,CAAA;AAC/C,kDAAkD;AAClD,eAAO,MAAM,qBAAqB,qBAAqB,CAAA;AAEvD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAMvE;AAeD,UAAU,gBAAiB,SAAQ,qBAAqB;IACtD,QAAQ,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/E;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,WAAW,GAAG,YAAY,GAAG,SAAS,CAAA;IAC9C,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAA;CAChC;AAMD,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,oBAAoB,EAC3B,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"responseStream.d.ts","sourceRoot":"","sources":["../../../src/components/chat/responseStream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EAEb,qBAAqB,EAGrB,cAAc,EACd,kBAAkB,EAQlB,oBAAoB,EAGrB,MAAM,SAAS,CAAA;AA+DhB,qBAAa,2BAA4B,SAAQ,KAAK;IACpD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;gBAEH,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;CAM5D;AAED,iEAAiE;AACjE,eAAO,MAAM,wBAAwB,wBAAwB,CAAA;AAC7D,4DAA4D;AAC5D,eAAO,MAAM,iBAAiB,iBAAiB,CAAA;AAC/C,kDAAkD;AAClD,eAAO,MAAM,qBAAqB,qBAAqB,CAAA;AAEvD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAMvE;AAeD,UAAU,gBAAiB,SAAQ,qBAAqB;IACtD,QAAQ,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/E;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,WAAW,GAAG,YAAY,GAAG,SAAS,CAAA;IAC9C,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAA;CAChC;AAMD,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,oBAAoB,EAC3B,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,aAAa,CAAC,CA6cxB;AAED,sFAAsF;AACtF,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,GAAG,OAAO,CAuBjF;AAcD,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,kBAAkB,EAAE,GAAG,gBAAgB,CAqI/F"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ConversationInputContent, ConversationMessage } from './types';
|
|
2
|
+
/** Slice point: keep `messages[0..userIndex]`, drop everything after that user turn. */
|
|
3
|
+
export interface RestartCut {
|
|
4
|
+
userIndex: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function userMessageText(content: ConversationInputContent): string;
|
|
7
|
+
export declare function resolveEditCut(userIndex: number, messages: readonly ConversationMessage[]): RestartCut | null;
|
|
8
|
+
/** Retry an assistant turn from the user message immediately before it. */
|
|
9
|
+
export declare function resolveRetryCut(assistantIndex: number, messages: readonly ConversationMessage[]): RestartCut | null;
|
|
10
|
+
/** 编辑 / 重试重发:用当前这条用户消息自己的 `message_id`。 */
|
|
11
|
+
export declare function currentUserMessageId(userIndex: number, messages: readonly ConversationMessage[]): string | undefined;
|
|
12
|
+
//# sourceMappingURL=restartUserTurn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restartUserTurn.d.ts","sourceRoot":"","sources":["../../../src/components/chat/restartUserTurn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAE5E,wFAAwF;AACxF,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,wBAAwB,GAAG,MAAM,CAMzE;AAED,wBAAgB,cAAc,CAC5B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,SAAS,mBAAmB,EAAE,GACvC,UAAU,GAAG,IAAI,CAGnB;AAED,2EAA2E;AAC3E,wBAAgB,eAAe,CAC7B,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,SAAS,mBAAmB,EAAE,GACvC,UAAU,GAAG,IAAI,CAMnB;AAED,2CAA2C;AAC3C,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,SAAS,mBAAmB,EAAE,GACvC,MAAM,GAAG,SAAS,CAIpB"}
|
|
@@ -9,6 +9,15 @@ export declare function toolCategoryLabel(name: string): string;
|
|
|
9
9
|
export declare function isKnownToolLabel(name: string): boolean;
|
|
10
10
|
/** Past / progressive verb for Doubao-style tool rows (`已读取` / `正在读取`). */
|
|
11
11
|
export declare function toolProcessVerb(name: string, done: boolean): string;
|
|
12
|
+
/**
|
|
13
|
+
* Compact process-row copy.
|
|
14
|
+
* Running: `正在查看 加载知识库子智能体技能规范`.
|
|
15
|
+
* Done: `_display_summary` only; otherwise `已查看 filename`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function toolProcessLabel(name: string, argumentsText: string, options?: {
|
|
18
|
+
done: boolean;
|
|
19
|
+
error?: string;
|
|
20
|
+
}): string;
|
|
12
21
|
/** Prefer basename for path-like details in process rows. */
|
|
13
22
|
export declare function toolProcessDetail(argumentsText: string): string;
|
|
14
23
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolLabels.d.ts","sourceRoot":"","sources":["../../../src/components/chat/toolLabels.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toolLabels.d.ts","sourceRoot":"","sources":["../../../src/components/chat/toolLabels.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAmCvD,CAAA;AAyBD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAED,yEAAyE;AACzE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD;AAqCD,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,CAInE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAoB,GAC3D,MAAM,CAgBR;AAED,6DAA6D;AAC7D,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAK/D;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAwB9D;AAED,6DAA6D;AAC7D,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,aAAa,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,EAC5D,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,CAeR"}
|
|
@@ -3,6 +3,8 @@ import type { ChatApiRequestContext, ChatCloudConfig } from './cloudConfig';
|
|
|
3
3
|
import type { LastSessionQuery } from './composables/chatApiRequest';
|
|
4
4
|
import type { UiMenuPlacement } from '../ui/composables';
|
|
5
5
|
import type { UiDropdownMenuItem, UiDropdownMenuSubItem, UiDropdownMenuSubmenuOptions } from '../ui/types';
|
|
6
|
+
import type { ChatAgentMode } from './chatAgentMode';
|
|
7
|
+
export type { ChatAgentMode } from './chatAgentMode';
|
|
6
8
|
/** TipMenu 内层 `UiMenu` 可透传配置(`anchor` / `items` / `open` / `disabled` 由库内接管)。 */
|
|
7
9
|
export interface ChatTipMenuUiMenuProps {
|
|
8
10
|
/** 根菜单宽度;ChatSender 默认 250px。 */
|
|
@@ -383,6 +385,13 @@ export interface SystemMessage {
|
|
|
383
385
|
}
|
|
384
386
|
export interface UserMessage {
|
|
385
387
|
id?: string;
|
|
388
|
+
/**
|
|
389
|
+
* 本轮服务端 id。直播由 `response.ga.done.message_id` 写入;
|
|
390
|
+
* 历史 `findBySessionId` 用户消息也会带。不要和客户端 `id` 混用。
|
|
391
|
+
*/
|
|
392
|
+
message_id?: string;
|
|
393
|
+
/** 历史用户消息上的上一轮 id,仅展示/兼容;编辑和重试入参用本条 `message_id`。 */
|
|
394
|
+
prev_id?: string;
|
|
386
395
|
role: 'user';
|
|
387
396
|
content: ConversationInputContent;
|
|
388
397
|
resource_files: ChatResourceFile[];
|
|
@@ -391,6 +400,8 @@ export interface UserMessage {
|
|
|
391
400
|
mentions?: readonly ChatSendMention[];
|
|
392
401
|
/** Model id used for this turn; drives in-thread model-change dividers. */
|
|
393
402
|
model?: string;
|
|
403
|
+
/** Client send time (ms). Hover actionbar clock; omitted on older history. */
|
|
404
|
+
created_at?: number;
|
|
394
405
|
}
|
|
395
406
|
/** In-thread chrome when the composer model changes; not a conversation role. */
|
|
396
407
|
export interface ChatModelChangeDivider {
|
|
@@ -429,7 +440,7 @@ export interface AssistantToolCallsStep {
|
|
|
429
440
|
type: 'tool_calls';
|
|
430
441
|
tool_calls: ConversationToolCall[];
|
|
431
442
|
}
|
|
432
|
-
/**
|
|
443
|
+
/** Intermediate assistant speech between think/tools; only the last trailing round is the answer. */
|
|
433
444
|
export interface AssistantContentStep {
|
|
434
445
|
type: 'content';
|
|
435
446
|
content: string;
|
|
@@ -611,6 +622,8 @@ export interface ChatSendPayload {
|
|
|
611
622
|
model?: string;
|
|
612
623
|
/** 当前模型的思考强度(`reasoning_effort`)。 */
|
|
613
624
|
reasoningEffort?: string;
|
|
625
|
+
/** Agent 模式策略。缺省 `normal`。 */
|
|
626
|
+
mode?: ChatAgentMode;
|
|
614
627
|
}
|
|
615
628
|
export interface ChatQueueItem {
|
|
616
629
|
id: string;
|
|
@@ -636,6 +649,15 @@ export interface ChatActionbarFeedbackPayload {
|
|
|
636
649
|
export interface ChatActionbarBranchPayload {
|
|
637
650
|
message: AssistantMessage;
|
|
638
651
|
}
|
|
652
|
+
export interface ChatEditSendPayload {
|
|
653
|
+
userIndex: number;
|
|
654
|
+
content: string;
|
|
655
|
+
mentions?: readonly ChatSendMention[];
|
|
656
|
+
resourceFiles: readonly ChatResourceFile[];
|
|
657
|
+
}
|
|
658
|
+
export interface ChatRegeneratePayload {
|
|
659
|
+
assistantIndex: number;
|
|
660
|
+
}
|
|
639
661
|
export interface ChatMessageProps {
|
|
640
662
|
message: ConversationMessage;
|
|
641
663
|
streaming?: boolean;
|
|
@@ -666,6 +688,8 @@ export interface ChatMessageProps {
|
|
|
666
688
|
* Used by ThinkingOrb for abort / error / incomplete companion poses.
|
|
667
689
|
*/
|
|
668
690
|
streamStatus?: ConversationStreamStatus;
|
|
691
|
+
/** Source index in `messages` (ConversationList). Used by user-message edit. */
|
|
692
|
+
sourceIndex?: number;
|
|
669
693
|
}
|
|
670
694
|
export interface ChatTheme {
|
|
671
695
|
userBubbleBg?: string;
|
|
@@ -833,6 +857,11 @@ export interface ChatSenderProps {
|
|
|
833
857
|
* localStorage, then falls back to the first enabled option.
|
|
834
858
|
*/
|
|
835
859
|
model?: string;
|
|
860
|
+
/**
|
|
861
|
+
* Agent 模式策略(v-model)。`normal` / `auto` / `plan`,缺省 `normal`。
|
|
862
|
+
* `auto` / `plan` 时在 + 旁显示可关闭胶囊。
|
|
863
|
+
*/
|
|
864
|
+
mode?: ChatAgentMode;
|
|
836
865
|
/** 输入框下方热门技能 Tab + Card 面板。默认 false。 */
|
|
837
866
|
showSkillPanel?: boolean;
|
|
838
867
|
/** 技能 Card 区无数据时是否展示空态。默认 false。 */
|
|
@@ -874,7 +903,7 @@ export interface ChatSenderExpose {
|
|
|
874
903
|
}, source?: import('../skill/types').ChatSkillUseSource) => void;
|
|
875
904
|
/**
|
|
876
905
|
* 连接器(已关联应用)正文快捷语:只写正文、不产生任何 chip,
|
|
877
|
-
*
|
|
906
|
+
* 且为「单选替换」语义(与详情弹窗内的「帮你做」一致,多次调用不叠加)。
|
|
878
907
|
*/
|
|
879
908
|
useConnectorShortcut: (payload: {
|
|
880
909
|
connector: import('../skill/types').ChatSkillCardModel;
|
|
@@ -1026,6 +1055,8 @@ export type ResponseFailedEvent = ResponseLifecycleEvent<'response.failed'>;
|
|
|
1026
1055
|
export interface ResponseGaDoneEvent {
|
|
1027
1056
|
type: 'response.ga.done';
|
|
1028
1057
|
session_id: string;
|
|
1058
|
+
/** 本轮对话 id,写入触发本轮的那条用户消息。 */
|
|
1059
|
+
message_id?: string;
|
|
1029
1060
|
sequence_number?: number;
|
|
1030
1061
|
}
|
|
1031
1062
|
/** GA transport user-interrupt marker. Stops SSE reading as `aborted`; not an OpenAI Responses event. */
|
|
@@ -1170,6 +1201,11 @@ export interface ChatBotProps {
|
|
|
1170
1201
|
draft?: string;
|
|
1171
1202
|
/** Selected LLM model id, forwarded to `ChatSender`. Instance value wins over `senderConfig.model`. */
|
|
1172
1203
|
model?: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* Agent 模式策略,转发给 `ChatSender`。实例值优先于 `senderConfig.mode`。
|
|
1206
|
+
* 缺省 `normal`。内置发送写入请求体 `mode`。
|
|
1207
|
+
*/
|
|
1208
|
+
mode?: ChatAgentMode;
|
|
1173
1209
|
/**
|
|
1174
1210
|
* `v-model:session-id`. Read/write via `getSessionId()`/`setSessionId()` when
|
|
1175
1211
|
* uncontrolled. Auto-generated on first send when empty and `cloud.chat` is
|