@deep-eye/core 0.7.0 → 0.9.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.
Files changed (116) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +137 -22
  3. package/dist/components/chat/AiConversation.vue.d.ts +28 -0
  4. package/dist/components/chat/AiConversation.vue.d.ts.map +1 -0
  5. package/dist/components/chat/ChatBot.vue.d.ts +48 -0
  6. package/dist/components/chat/ChatBot.vue.d.ts.map +1 -0
  7. package/dist/components/chat/builtInToolRenderers.d.ts +2 -0
  8. package/dist/components/chat/builtInToolRenderers.d.ts.map +1 -0
  9. package/dist/components/chat/components/ArtifactPreview.vue.d.ts +15 -0
  10. package/dist/components/chat/components/ArtifactPreview.vue.d.ts.map +1 -0
  11. package/dist/components/chat/components/AssistantTrace.vue.d.ts +27 -0
  12. package/dist/components/chat/components/AssistantTrace.vue.d.ts.map +1 -0
  13. package/dist/components/chat/components/ChartToolRenderer.vue.d.ts +7 -0
  14. package/dist/components/chat/components/ChartToolRenderer.vue.d.ts.map +1 -0
  15. package/dist/components/chat/components/ChatActionbar.vue.d.ts +26 -0
  16. package/dist/components/chat/components/ChatActionbar.vue.d.ts.map +1 -0
  17. package/dist/components/chat/components/ChatMessage.vue.d.ts +64 -0
  18. package/dist/components/chat/components/ChatMessage.vue.d.ts.map +1 -0
  19. package/dist/components/chat/components/ChatSender.vue.d.ts +58 -0
  20. package/dist/components/chat/components/ChatSender.vue.d.ts.map +1 -0
  21. package/dist/components/chat/components/CodeToolRenderer.vue.d.ts +9 -0
  22. package/dist/components/chat/components/CodeToolRenderer.vue.d.ts.map +1 -0
  23. package/dist/components/chat/components/EmptyState.vue.d.ts +11 -0
  24. package/dist/components/chat/components/EmptyState.vue.d.ts.map +1 -0
  25. package/dist/components/chat/components/MessageBubble.vue.d.ts +64 -0
  26. package/dist/components/chat/components/MessageBubble.vue.d.ts.map +1 -0
  27. package/dist/components/chat/components/MindMapToolRenderer.vue.d.ts +7 -0
  28. package/dist/components/chat/components/MindMapToolRenderer.vue.d.ts.map +1 -0
  29. package/dist/components/chat/components/OpenGenUIToolRenderer.vue.d.ts +7 -0
  30. package/dist/components/chat/components/OpenGenUIToolRenderer.vue.d.ts.map +1 -0
  31. package/dist/components/chat/components/OpenGenerativeUiChartRenderer.vue.d.ts +9 -0
  32. package/dist/components/chat/components/OpenGenerativeUiChartRenderer.vue.d.ts.map +1 -0
  33. package/dist/components/chat/components/OpenGenerativeUiPlanRenderer.vue.d.ts +9 -0
  34. package/dist/components/chat/components/OpenGenerativeUiPlanRenderer.vue.d.ts.map +1 -0
  35. package/dist/components/chat/components/OpenGenerativeUiScheduleRenderer.vue.d.ts +9 -0
  36. package/dist/components/chat/components/OpenGenerativeUiScheduleRenderer.vue.d.ts.map +1 -0
  37. package/dist/components/chat/components/OpenGenerativeUiThemeRenderer.vue.d.ts +7 -0
  38. package/dist/components/chat/components/OpenGenerativeUiThemeRenderer.vue.d.ts.map +1 -0
  39. package/dist/components/chat/components/SearchToolRenderer.vue.d.ts +7 -0
  40. package/dist/components/chat/components/SearchToolRenderer.vue.d.ts.map +1 -0
  41. package/dist/components/chat/components/TextPartRenderer.vue.d.ts +19 -0
  42. package/dist/components/chat/components/TextPartRenderer.vue.d.ts.map +1 -0
  43. package/dist/components/chat/components/ToolCallPart.vue.d.ts +11 -0
  44. package/dist/components/chat/components/ToolCallPart.vue.d.ts.map +1 -0
  45. package/dist/components/chat/components/index.d.ts +17 -0
  46. package/dist/components/chat/components/index.d.ts.map +1 -0
  47. package/dist/components/chat/composables/index.d.ts +3 -0
  48. package/dist/components/chat/composables/index.d.ts.map +1 -0
  49. package/dist/components/chat/composables/useConversation.d.ts +7 -0
  50. package/dist/components/chat/composables/useConversation.d.ts.map +1 -0
  51. package/dist/components/chat/composables/useConversationStream.d.ts +3 -0
  52. package/dist/components/chat/composables/useConversationStream.d.ts.map +1 -0
  53. package/dist/components/chat/index.d.ts +9 -0
  54. package/dist/components/chat/index.d.ts.map +1 -0
  55. package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts +13 -0
  56. package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts.map +1 -0
  57. package/dist/components/chat/mdoc/AskUserForm.vue.d.ts +33 -0
  58. package/dist/components/chat/mdoc/AskUserForm.vue.d.ts.map +1 -0
  59. package/dist/components/chat/mdoc/ContentNodes.vue.d.ts +16 -0
  60. package/dist/components/chat/mdoc/ContentNodes.vue.d.ts.map +1 -0
  61. package/dist/components/chat/mdoc/MediaImageLightbox.vue.d.ts +20 -0
  62. package/dist/components/chat/mdoc/MediaImageLightbox.vue.d.ts.map +1 -0
  63. package/dist/components/chat/mdoc/MediaImageStack.vue.d.ts +12 -0
  64. package/dist/components/chat/mdoc/MediaImageStack.vue.d.ts.map +1 -0
  65. package/dist/components/chat/mdoc/artifactDownload.d.ts +31 -0
  66. package/dist/components/chat/mdoc/artifactDownload.d.ts.map +1 -0
  67. package/dist/components/chat/mdoc/builtInRegistry.d.ts +12 -0
  68. package/dist/components/chat/mdoc/builtInRegistry.d.ts.map +1 -0
  69. package/dist/components/chat/mdoc/extractAskForms.d.ts +6 -0
  70. package/dist/components/chat/mdoc/extractAskForms.d.ts.map +1 -0
  71. package/dist/components/chat/mdoc/index.d.ts +8 -0
  72. package/dist/components/chat/mdoc/index.d.ts.map +1 -0
  73. package/dist/components/chat/mdoc/parser.d.ts +41 -0
  74. package/dist/components/chat/mdoc/parser.d.ts.map +1 -0
  75. package/dist/components/chat/mdoc/prompt.d.ts +6 -0
  76. package/dist/components/chat/mdoc/prompt.d.ts.map +1 -0
  77. package/dist/components/chat/mdoc/registry.d.ts +15 -0
  78. package/dist/components/chat/mdoc/registry.d.ts.map +1 -0
  79. package/dist/components/chat/mdoc/sanitize.d.ts +2 -0
  80. package/dist/components/chat/mdoc/sanitize.d.ts.map +1 -0
  81. package/dist/components/chat/mdoc/textContent.d.ts +38 -0
  82. package/dist/components/chat/mdoc/textContent.d.ts.map +1 -0
  83. package/dist/components/chat/openGenerativeUi.d.ts +25 -0
  84. package/dist/components/chat/openGenerativeUi.d.ts.map +1 -0
  85. package/dist/components/chat/presentation.d.ts +27 -0
  86. package/dist/components/chat/presentation.d.ts.map +1 -0
  87. package/dist/components/chat/toolRenderers.d.ts +8 -0
  88. package/dist/components/chat/toolRenderers.d.ts.map +1 -0
  89. package/dist/components/chat/types.d.ts +230 -0
  90. package/dist/components/chat/types.d.ts.map +1 -0
  91. package/dist/components/index.d.ts +3 -0
  92. package/dist/components/index.d.ts.map +1 -0
  93. package/dist/components/visualization/D3MindMap.vue.d.ts +83 -0
  94. package/dist/components/visualization/D3MindMap.vue.d.ts.map +1 -0
  95. package/dist/components/visualization/index.d.ts +5 -0
  96. package/dist/components/visualization/index.d.ts.map +1 -0
  97. package/dist/components/visualization/themes.d.ts +40 -0
  98. package/dist/components/visualization/themes.d.ts.map +1 -0
  99. package/dist/components/visualization/types.d.ts +291 -0
  100. package/dist/components/visualization/types.d.ts.map +1 -0
  101. package/dist/components/visualization/utils.d.ts +44 -0
  102. package/dist/components/visualization/utils.d.ts.map +1 -0
  103. package/dist/composables/index.d.ts +3 -0
  104. package/dist/composables/index.d.ts.map +1 -0
  105. package/dist/composables/useMindMapLayout.d.ts +16 -0
  106. package/dist/composables/useMindMapLayout.d.ts.map +1 -0
  107. package/dist/composables/useMindMapTheme.d.ts +43 -0
  108. package/dist/composables/useMindMapTheme.d.ts.map +1 -0
  109. package/dist/index.cjs +130 -26
  110. package/dist/index.d.ts +5 -0
  111. package/dist/index.d.ts.map +1 -0
  112. package/dist/index.js +6161 -5415
  113. package/dist/style.css +1 -1
  114. package/dist/types/index.d.ts +12 -0
  115. package/dist/types/index.d.ts.map +1 -0
  116. package/package.json +2 -1
@@ -0,0 +1,64 @@
1
+ import type { PropType } from 'vue';
2
+ import type { ChatActionbarCopyPayload, ConversationMessage, ConversationTheme, ConversationUiAction } from '../types';
3
+ type __VLS_Slots = {
4
+ 'user-avatar'?: () => unknown;
5
+ 'assistant-avatar'?: () => unknown;
6
+ actionbar?: (props: {
7
+ message: ConversationMessage;
8
+ copied: boolean;
9
+ }) => unknown;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
+ message: {
13
+ type: PropType<ConversationMessage>;
14
+ required: true;
15
+ };
16
+ theme: {
17
+ type: PropType<ConversationTheme>;
18
+ default: undefined;
19
+ };
20
+ userAvatar: {
21
+ type: StringConstructor;
22
+ default: undefined;
23
+ };
24
+ assistantAvatar: {
25
+ type: StringConstructor;
26
+ default: undefined;
27
+ };
28
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
+ copy: (payload: ChatActionbarCopyPayload) => any;
30
+ action: (payload: ConversationUiAction) => any;
31
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
32
+ message: {
33
+ type: PropType<ConversationMessage>;
34
+ required: true;
35
+ };
36
+ theme: {
37
+ type: PropType<ConversationTheme>;
38
+ default: undefined;
39
+ };
40
+ userAvatar: {
41
+ type: StringConstructor;
42
+ default: undefined;
43
+ };
44
+ assistantAvatar: {
45
+ type: StringConstructor;
46
+ default: undefined;
47
+ };
48
+ }>> & Readonly<{
49
+ onCopy?: ((payload: ChatActionbarCopyPayload) => any) | undefined;
50
+ onAction?: ((payload: ConversationUiAction) => any) | undefined;
51
+ }>, {
52
+ theme: ConversationTheme;
53
+ userAvatar: string;
54
+ assistantAvatar: string;
55
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
56
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
57
+ declare const _default: typeof __VLS_export;
58
+ export default _default;
59
+ type __VLS_WithSlots<T, S> = T & {
60
+ new (): {
61
+ $slots: S;
62
+ };
63
+ };
64
+ //# sourceMappingURL=MessageBubble.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageBubble.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/MessageBubble.vue"],"names":[],"mappings":"AA2gBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAKnC,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,UAAU,CAAA;AAwBjB,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,MAAM,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAA;IAClC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,mBAAmB,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAA;CAClF,CAAC;AA6YF,QAAA,MAAM,UAAU;;cAII,QAAQ,CAAC,mBAAmB,CAAC;;;;cAI7B,QAAQ,CAAC,iBAAiB,CAAC;;;;;;;;;;;;;;;;cAJ3B,QAAQ,CAAC,mBAAmB,CAAC;;;;cAI7B,QAAQ,CAAC,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;4EAY7C,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ result?: unknown;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ //# sourceMappingURL=MindMapToolRenderer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MindMapToolRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/MindMapToolRenderer.vue"],"names":[],"mappings":"AAqLA,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AA2KxC,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ result?: unknown;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ //# sourceMappingURL=OpenGenUIToolRenderer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenGenUIToolRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/OpenGenUIToolRenderer.vue"],"names":[],"mappings":"AAgTA,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AA+PxC,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,9 @@
1
+ import type { ConversationToolCall } from '../types';
2
+ type __VLS_Props = {
3
+ toolCall: ConversationToolCall;
4
+ result?: unknown;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ //# sourceMappingURL=OpenGenerativeUiChartRenderer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenGenerativeUiChartRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/OpenGenerativeUiChartRenderer.vue"],"names":[],"mappings":"AAyNA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAepD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,oBAAoB,CAAA;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AA2LF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,9 @@
1
+ import type { ConversationToolCall } from '../types';
2
+ type __VLS_Props = {
3
+ toolCall: ConversationToolCall;
4
+ result?: unknown;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ //# sourceMappingURL=OpenGenerativeUiPlanRenderer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenGenerativeUiPlanRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/OpenGenerativeUiPlanRenderer.vue"],"names":[],"mappings":"AA+HA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAIpD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,oBAAoB,CAAA;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AA0GF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,9 @@
1
+ import type { ConversationToolCall } from '../types';
2
+ type __VLS_Props = {
3
+ toolCall: ConversationToolCall;
4
+ result?: unknown;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ //# sourceMappingURL=OpenGenerativeUiScheduleRenderer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenGenerativeUiScheduleRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/OpenGenerativeUiScheduleRenderer.vue"],"names":[],"mappings":"AA8MA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAUpD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,oBAAoB,CAAA;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AAqKF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ result?: unknown;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ //# sourceMappingURL=OpenGenerativeUiThemeRenderer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenGenerativeUiThemeRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/OpenGenerativeUiThemeRenderer.vue"],"names":[],"mappings":"AAwDA,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAqDxC,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ result?: unknown;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ //# sourceMappingURL=SearchToolRenderer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchToolRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/SearchToolRenderer.vue"],"names":[],"mappings":"AA4GA,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAkHxC,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,19 @@
1
+ import type { ConversationUiAction } from '../types';
2
+ type __VLS_Props = {
3
+ content: string;
4
+ isStreaming?: boolean;
5
+ /** Highlights the final visible text line while a stream is active. */
6
+ highlightStreamTail?: boolean;
7
+ /** user 气泡内用 compact,去掉段落边距以利垂直居中 */
8
+ density?: 'default' | 'compact';
9
+ };
10
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ action: (payload: ConversationUiAction) => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onAction?: ((payload: ConversationUiAction) => any) | undefined;
14
+ }>, {
15
+ density: "default" | "compact";
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ //# sourceMappingURL=TextPartRenderer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextPartRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/TextPartRenderer.vue"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAIpD,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,uEAAuE;IACvE,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,qCAAqC;IACrC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;CAChC,CAAC;AA+DJ,QAAA,MAAM,YAAY;;;;;aAhEJ,SAAS,GAAG,SAAS;6EAoEjC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,11 @@
1
+ import type { ConversationMessage, ConversationToolCall } from '../types';
2
+ import '../builtInToolRenderers';
3
+ type __VLS_Props = {
4
+ toolCall: ConversationToolCall;
5
+ toolMessage?: ConversationMessage;
6
+ isStreaming?: boolean;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
11
+ //# sourceMappingURL=ToolCallPart.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolCallPart.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ToolCallPart.vue"],"names":[],"mappings":"AAwWA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAkB,MAAM,UAAU,CAAA;AACzF,OAAO,yBAAyB,CAAA;AAKhC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,oBAAoB,CAAA;IAC9B,WAAW,CAAC,EAAE,mBAAmB,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AA8TF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,17 @@
1
+ export { default as ChatActionbar } from './ChatActionbar.vue';
2
+ export { default as ChatMessage } from './ChatMessage.vue';
3
+ export { default as ChatSender } from './ChatSender.vue';
4
+ export { default as MessageBubble } from './MessageBubble.vue';
5
+ export { default as TextPartRenderer } from './TextPartRenderer.vue';
6
+ export { default as ToolCallPart } from './ToolCallPart.vue';
7
+ export { default as ChartToolRenderer } from './ChartToolRenderer.vue';
8
+ export { default as CodeToolRenderer } from './CodeToolRenderer.vue';
9
+ export { default as MindMapToolRenderer } from './MindMapToolRenderer.vue';
10
+ export { default as OpenGenerativeUiChartRenderer } from './OpenGenerativeUiChartRenderer.vue';
11
+ export { default as OpenGenerativeUiPlanRenderer } from './OpenGenerativeUiPlanRenderer.vue';
12
+ export { default as OpenGenerativeUiScheduleRenderer } from './OpenGenerativeUiScheduleRenderer.vue';
13
+ export { default as OpenGenerativeUiThemeRenderer } from './OpenGenerativeUiThemeRenderer.vue';
14
+ export { default as OpenGenUIToolRenderer } from './OpenGenUIToolRenderer.vue';
15
+ export { default as SearchToolRenderer } from './SearchToolRenderer.vue';
16
+ export { default as EmptyState } from './EmptyState.vue';
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC1E,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,qCAAqC,CAAA;AAC9F,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAA;AAC5F,OAAO,EAAE,OAAO,IAAI,gCAAgC,EAAE,MAAM,wCAAwC,CAAA;AACpG,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,qCAAqC,CAAA;AAC9F,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { useConversation } from './useConversation';
2
+ export { useConversationStream } from './useConversationStream';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { ConversationMessage, UseConversationReturn } from '../types';
2
+ /**
3
+ * Holds render-only conversation state. It deliberately owns no transport,
4
+ * retry, input, or persistence concerns.
5
+ */
6
+ export declare function useConversation(initialMessages?: ConversationMessage[]): UseConversationReturn;
7
+ //# sourceMappingURL=useConversation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConversation.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/composables/useConversation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,mBAAmB,EAGnB,qBAAqB,EACtB,MAAM,UAAU,CAAA;AAEjB;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,eAAe,GAAE,mBAAmB,EAAO,GAC1C,qBAAqB,CAoFvB"}
@@ -0,0 +1,3 @@
1
+ import type { ConversationMessage, UseConversationStreamReturn } from '../types';
2
+ export declare function useConversationStream(initialMessages?: ConversationMessage[]): UseConversationStreamReturn;
3
+ //# sourceMappingURL=useConversationStream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConversationStream.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/composables/useConversationStream.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,mBAAmB,EAQnB,2BAA2B,EAC5B,MAAM,UAAU,CAAA;AAUjB,wBAAgB,qBAAqB,CACnC,eAAe,GAAE,mBAAmB,EAAO,GAC1C,2BAA2B,CAoQ7B"}
@@ -0,0 +1,9 @@
1
+ export { default as AiConversation } from './AiConversation.vue';
2
+ export { default as ChatActionbar } from './components/ChatActionbar.vue';
3
+ export { default as ChatMessage } from './components/ChatMessage.vue';
4
+ export { default as ChatSender } from './components/ChatSender.vue';
5
+ export { default as ChatBot } from './ChatBot.vue';
6
+ export { ARTIFACT_BLOCK_SYSTEM_PROMPT, ASK_USER_FORM_SYSTEM_PROMPT } from './mdoc/builtInRegistry';
7
+ export type { AiConversationExpose, AiConversationProps, AutoScrollMode, ChatActionbarCopyPayload, ChatBotProps, ChatMessageProps, ChatSenderProps, ChatSenderTheme, ConversationAskFormAnswer, ConversationStreamConsumeOptions, ConversationStreamInput, ConversationStreamSource, ConversationStreamStatus, ConversationMessage, ConversationRole, ConversationDelta, ConversationTheme, ConversationUiAction, OpenAiChatCompletionChoice, OpenAiChatCompletionChunk, OpenAiChatCompletionDelta, UseConversationReturn, UseConversationStreamReturn, } from './types';
8
+ export { useConversation, useConversationStream } from './composables';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA;AAElD,OAAO,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAA;AAElG,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,wBAAwB,EACxB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,gCAAgC,EAChC,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,EACrB,2BAA2B,GAC5B,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,13 @@
1
+ import type { ConversationUiAction } from '../types';
2
+ import type { MdocComponentNode } from './parser';
3
+ type __VLS_Props = {
4
+ node: MdocComponentNode;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ action: (payload: ConversationUiAction) => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onAction?: ((payload: ConversationUiAction) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ //# sourceMappingURL=ArtifactBlock.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArtifactBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/ArtifactBlock.vue"],"names":[],"mappings":"AAyTA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAIjD,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,CAAC;AA2K/C,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,33 @@
1
+ import type { ConversationUiAction } from '../types';
2
+ import type { MdocComponentNode } from './parser';
3
+ type AskFormDraft = {
4
+ value: string;
5
+ label?: string;
6
+ skipped?: boolean;
7
+ };
8
+ type __VLS_Props = {
9
+ node: MdocComponentNode;
10
+ questionIndex?: number;
11
+ questionCount?: number;
12
+ groupCanSubmit?: boolean;
13
+ };
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ action: (payload: ConversationUiAction) => any;
16
+ previous: () => any;
17
+ next: () => any;
18
+ answerChange: (payload: AskFormDraft | null) => any;
19
+ submitGroup: () => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ onAction?: ((payload: ConversationUiAction) => any) | undefined;
22
+ onPrevious?: (() => any) | undefined;
23
+ onNext?: (() => any) | undefined;
24
+ onAnswerChange?: ((payload: AskFormDraft | null) => any) | undefined;
25
+ onSubmitGroup?: (() => any) | undefined;
26
+ }>, {
27
+ questionIndex: number;
28
+ questionCount: number;
29
+ groupCanSubmit: boolean;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
33
+ //# sourceMappingURL=AskUserForm.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AskUserForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/AskUserForm.vue"],"names":[],"mappings":"AA8uBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEjD,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAID,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,iBAAiB,CAAA;IACvB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AAslBJ,QAAA,MAAM,YAAY;;;;;;;;;;;;;mBAzlBE,MAAM;mBACN,MAAM;oBACL,OAAO;6EA2lB1B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,16 @@
1
+ import type { ConversationUiAction } from '../types';
2
+ type __VLS_Props = {
3
+ content: string;
4
+ isStreaming?: boolean;
5
+ highlightStreamTail?: boolean;
6
+ /** compact:用于用户气泡,去掉段落外边距与过大行高 */
7
+ density?: 'default' | 'compact';
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ action: (payload: ConversationUiAction) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onAction?: ((payload: ConversationUiAction) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ //# sourceMappingURL=ContentNodes.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentNodes.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/ContentNodes.vue"],"names":[],"mappings":"AAuYA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAcpD,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kCAAkC;IAClC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;CAChC,CAAC;AAqUF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,20 @@
1
+ type LightboxImage = {
2
+ url: string;
3
+ alt?: string;
4
+ };
5
+ type __VLS_Props = {
6
+ images: LightboxImage[];
7
+ activeIndex: number;
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ close: () => any;
11
+ previous: () => any;
12
+ next: () => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onClose?: (() => any) | undefined;
15
+ onPrevious?: (() => any) | undefined;
16
+ onNext?: (() => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ //# sourceMappingURL=MediaImageLightbox.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaImageLightbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/MediaImageLightbox.vue"],"names":[],"mappings":"AAyNA,KAAK,aAAa,GAAG;IACnB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAC;AAiNF,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,12 @@
1
+ export type MediaStackImage = {
2
+ id: string;
3
+ url: string;
4
+ alt?: string;
5
+ };
6
+ type __VLS_Props = {
7
+ images: MediaStackImage[];
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ //# sourceMappingURL=MediaImageStack.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaImageStack.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/MediaImageStack.vue"],"names":[],"mappings":"AAuVA,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAQD,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,eAAe,EAAE,CAAA;CAC1B,CAAC;AA0VF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,31 @@
1
+ /** Text-type artifacts: content is inline (`slotText`), downloaded as a Blob. */
2
+ export declare const TEXT_ARTIFACT_TYPES: readonly ["html", "code", "markdown", "text"];
3
+ export type TextArtifactType = (typeof TEXT_ARTIFACT_TYPES)[number];
4
+ /** File-type artifacts: content lives at a host-provided `src` URL. */
5
+ export declare const FILE_ARTIFACT_TYPES: readonly ["pdf", "word", "excel", "ppt", "zip", "file"];
6
+ export type FileArtifactType = (typeof FILE_ARTIFACT_TYPES)[number];
7
+ export declare function isTextArtifactType(type: string): type is TextArtifactType;
8
+ /** Extension + MIME type for a text-type artifact, given its `type` (and `language` for `code`). */
9
+ export declare function textArtifactFileInfo(type: string, language?: string): {
10
+ extension: string;
11
+ mime: string;
12
+ };
13
+ /** Human-readable subtitle for a card, e.g. `Code · Python` or `PDF · 82KB`. */
14
+ export declare function artifactSubtitle(type: string, options?: {
15
+ language?: string;
16
+ size?: string;
17
+ }): string;
18
+ export interface DownloadArtifactInput {
19
+ title: string;
20
+ type: string;
21
+ language?: string;
22
+ content?: string;
23
+ src?: string;
24
+ }
25
+ /**
26
+ * Downloads an artifact client-side: text-type artifacts are packaged as a Blob,
27
+ * file-type artifacts download directly from their `src` URL. No network requests
28
+ * are made beyond the browser following `src`.
29
+ */
30
+ export declare function downloadArtifact(input: DownloadArtifactInput): void;
31
+ //# sourceMappingURL=artifactDownload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifactDownload.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/artifactDownload.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,eAAO,MAAM,mBAAmB,+CAAgD,CAAA;AAChF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEnE,uEAAuE;AACvE,eAAO,MAAM,mBAAmB,yDAA0D,CAAA;AAC1F,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEnE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,gBAAgB,CAEzE;AAkCD,oGAAoG;AACpG,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,GAChB;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAWrC;AAkBD,gFAAgF;AAChF,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,GACjD,MAAM,CAQR;AAgBD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,IAAI,CAiBnE"}
@@ -0,0 +1,12 @@
1
+ export declare const builtInRegistry: import("./registry").Registry;
2
+ /**
3
+ * AskUserForm 的 system prompt 片段。
4
+ * 宿主拼进 LLM system;后续其它交互标签会各自导出对应常量,再按需拼接。
5
+ */
6
+ export declare const ASK_USER_FORM_SYSTEM_PROMPT: string;
7
+ /**
8
+ * ArtifactBlock 的 system prompt 片段。
9
+ * 宿主拼进 LLM system,与 ASK_USER_FORM_SYSTEM_PROMPT 一样共享同一 registry。
10
+ */
11
+ export declare const ARTIFACT_BLOCK_SYSTEM_PROMPT: string;
12
+ //# sourceMappingURL=builtInRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builtInRegistry.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/builtInRegistry.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,+BA2B1B,CAAA;AAwBF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,QAEtC,CAAA;AAuBF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,QAEvC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { type MdocComponentNode } from './parser';
2
+ /** Parse message content and return complete ask-form nodes (for bottom dock). */
3
+ export declare function extractAskFormNodes(content: string | undefined, options?: {
4
+ isStreaming?: boolean;
5
+ }): MdocComponentNode[];
6
+ //# sourceMappingURL=extractAskForms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extractAskForms.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/extractAskForms.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAElE,kFAAkF;AAClF,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,GAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAO,GACtC,iBAAiB,EAAE,CAWrB"}
@@ -0,0 +1,8 @@
1
+ export { createRegistry } from './registry';
2
+ export type { PropTypeName, Registry, TagSchema } from './registry';
3
+ export { StreamingParser } from './parser';
4
+ export type { MdocComponentNode, MdocNode, MdocTextNode, StreamingParserOptions } from './parser';
5
+ export { generatePrompt } from './prompt';
6
+ export type { GeneratePromptOptions } from './prompt';
7
+ export { builtInRegistry, ARTIFACT_BLOCK_SYSTEM_PROMPT, ASK_USER_FORM_SYSTEM_PROMPT, } from './builtInRegistry';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3C,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAC1C,YAAY,EAAE,iBAAiB,EAAE,QAAQ,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AACjG,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,YAAY,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AACrD,OAAO,EACL,eAAe,EACf,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,mBAAmB,CAAA"}
@@ -0,0 +1,41 @@
1
+ import { type Registry } from './registry';
2
+ export type MdocTextNode = {
3
+ id: string;
4
+ kind: 'text';
5
+ text: string;
6
+ };
7
+ export type MdocComponentNode = {
8
+ id: string;
9
+ kind: 'component';
10
+ tag: string;
11
+ props: Record<string, unknown>;
12
+ children: MdocNode[];
13
+ slotText: string;
14
+ complete: boolean;
15
+ };
16
+ export type MdocNode = MdocTextNode | MdocComponentNode;
17
+ export interface StreamingParserOptions {
18
+ registry: Registry;
19
+ }
20
+ export declare class StreamingParser {
21
+ private readonly registry;
22
+ private buffer;
23
+ private nodes;
24
+ private idSeq;
25
+ private finalized;
26
+ /** Open component frames that are not yet complete (held until close). */
27
+ private stack;
28
+ constructor(options: StreamingParserOptions);
29
+ push(chunk: string): void;
30
+ finalize(): void;
31
+ getNodes(): MdocNode[];
32
+ private nextId;
33
+ private cloneNode;
34
+ private appendText;
35
+ private emitComponent;
36
+ private consume;
37
+ private handleClose;
38
+ private handleUnknown;
39
+ private flushRemainderAsText;
40
+ }
41
+ //# sourceMappingURL=parser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,QAAQ,EAEd,MAAM,YAAY,CAAA;AAEnB,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,WAAW,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,QAAQ,EAAE,QAAQ,EAAE,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,iBAAiB,CAAA;AAEvD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,QAAQ,CAAA;CACnB;AA2ED,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IACnC,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,KAAK,CAAiB;IAC9B,OAAO,CAAC,KAAK,CAAI;IACjB,OAAO,CAAC,SAAS,CAAQ;IAEzB,0EAA0E;IAC1E,OAAO,CAAC,KAAK,CAMN;gBAEK,OAAO,EAAE,sBAAsB;IAI3C,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAMzB,QAAQ,IAAI,IAAI;IAMhB,QAAQ,IAAI,QAAQ,EAAE;IAItB,OAAO,CAAC,MAAM;IAKd,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,UAAU;IAelB,OAAO,CAAC,aAAa;IAwBrB,OAAO,CAAC,OAAO;IAmGf,OAAO,CAAC,WAAW;IA0BnB,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,oBAAoB;CAgC7B"}
@@ -0,0 +1,6 @@
1
+ import type { Registry } from './registry';
2
+ export interface GeneratePromptOptions {
3
+ preamble?: string;
4
+ }
5
+ export declare function generatePrompt(registry: Registry, options?: GeneratePromptOptions): string;
6
+ //# sourceMappingURL=prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAG1C,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,GAAE,qBAA0B,GAAG,MAAM,CAoB9F"}
@@ -0,0 +1,15 @@
1
+ export type PropTypeName = 'string' | 'boolean' | 'number' | 'string?' | 'boolean?' | 'number?';
2
+ export interface TagSchema {
3
+ props: Record<string, PropTypeName>;
4
+ children?: string[];
5
+ }
6
+ export interface Registry {
7
+ readonly tags: Readonly<Record<string, TagSchema>>;
8
+ has(tag: string): boolean;
9
+ get(tag: string): TagSchema | undefined;
10
+ entries(): Array<[string, TagSchema]>;
11
+ }
12
+ export declare function createRegistry(defs: Record<string, TagSchema>): Registry;
13
+ export declare function isOptionalProp(type: PropTypeName): boolean;
14
+ export declare function basePropType(type: PropTypeName): 'string' | 'boolean' | 'number';
15
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/registry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAA;AAE/F,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAA;IAClD,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;IACzB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;IACvC,OAAO,IAAI,KAAK,CAAC,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAA;CACtC;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAexE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAE1D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAEhF"}
@@ -0,0 +1,2 @@
1
+ export declare function sanitizeHtml(html: string): string;
2
+ //# sourceMappingURL=sanitize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/sanitize.ts"],"names":[],"mappings":"AAgEA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD"}
@@ -0,0 +1,38 @@
1
+ declare const sharedIsReady: import("vue").Ref<boolean, boolean>;
2
+ export declare function ensureMarkdownReady(): Promise<void>;
3
+ export declare function isMarkdownReady(): boolean;
4
+ export { sharedIsReady as markdownReady };
5
+ export type TextSegment = {
6
+ type: 'html';
7
+ id: string;
8
+ html: string;
9
+ } | {
10
+ type: 'image';
11
+ id: string;
12
+ url: string;
13
+ alt?: string;
14
+ } | {
15
+ type: 'image-stack';
16
+ id: string;
17
+ images: Array<{
18
+ id: string;
19
+ url: string;
20
+ alt?: string;
21
+ }>;
22
+ } | {
23
+ type: 'video';
24
+ id: string;
25
+ url: string;
26
+ poster?: string;
27
+ } | {
28
+ type: 'audio';
29
+ id: string;
30
+ url: string;
31
+ title?: string;
32
+ };
33
+ /**
34
+ * Turn a markdown text blob into renderable segments (html + media).
35
+ * Code fences stay as plain &lt;pre&gt;&lt;code&gt; from md4x (no Shiki).
36
+ */
37
+ export declare function renderTextToSegments(markdown: string): TextSegment[];
38
+ //# sourceMappingURL=textContent.d.ts.map