@deep-eye/core 1.3.3 → 1.3.4

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 (141) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/components/chat/ChatBot.vue.d.ts +1 -12
  3. package/dist/components/chat/ChatBot.vue.d.ts.map +1 -1
  4. package/dist/components/chat/attachments.d.ts +1 -3
  5. package/dist/components/chat/attachments.d.ts.map +1 -1
  6. package/dist/components/chat/chatContext.d.ts +2 -3
  7. package/dist/components/chat/chatContext.d.ts.map +1 -1
  8. package/dist/components/chat/components/ChatProvider.vue.d.ts +7 -10
  9. package/dist/components/chat/components/ChatProvider.vue.d.ts.map +1 -1
  10. package/dist/components/chat/components/ChatSender.vue.d.ts +3 -15
  11. package/dist/components/chat/components/ChatSender.vue.d.ts.map +1 -1
  12. package/dist/components/chat/components/ChatSkillPanel.vue.d.ts +2 -2
  13. package/dist/components/chat/components/ChatSkillPanel.vue.d.ts.map +1 -1
  14. package/dist/components/chat/components/ConversationList.vue.d.ts.map +1 -1
  15. package/dist/components/chat/components/document-viewer/html/HtmlRenderer.vue.d.ts.map +1 -1
  16. package/dist/components/chat/components/document-viewer/screenshotCapture.d.ts +2 -3
  17. package/dist/components/chat/components/document-viewer/screenshotCapture.d.ts.map +1 -1
  18. package/dist/components/chat/components/index.d.ts +0 -3
  19. package/dist/components/chat/components/index.d.ts.map +1 -1
  20. package/dist/components/chat/harness/Tooltip.vue.d.ts +1 -1
  21. package/dist/components/chat/harness/Tooltip.vue.d.ts.map +1 -1
  22. package/dist/components/chat/htmlPreview.d.ts +0 -9
  23. package/dist/components/chat/htmlPreview.d.ts.map +1 -1
  24. package/dist/components/chat/icons/ChatTipMenuExpertIcon.vue.d.ts +3 -1
  25. package/dist/components/chat/icons/ChatTipMenuExpertIcon.vue.d.ts.map +1 -1
  26. package/dist/components/chat/icons/{ChatTipMenuAssetIcon.vue.d.ts → ChatTipMenuLucideIcon.vue.d.ts} +3 -2
  27. package/dist/components/chat/icons/ChatTipMenuLucideIcon.vue.d.ts.map +1 -0
  28. package/dist/components/chat/icons/index.d.ts +0 -1
  29. package/dist/components/chat/icons/index.d.ts.map +1 -1
  30. package/dist/components/chat/icons/tipMenuItemIcons.d.ts +3 -1
  31. package/dist/components/chat/icons/tipMenuItemIcons.d.ts.map +1 -1
  32. package/dist/components/chat/index.d.ts +2 -14
  33. package/dist/components/chat/index.d.ts.map +1 -1
  34. package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts +1 -4
  35. package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts.map +1 -1
  36. package/dist/components/chat/mdoc/ContentNodes.vue.d.ts.map +1 -1
  37. package/dist/components/chat/mdoc/artifactOpenStrategy.d.ts +1 -1
  38. package/dist/components/chat/mdoc/artifactOpenStrategy.d.ts.map +1 -1
  39. package/dist/components/chat/mdoc/index.d.ts +0 -2
  40. package/dist/components/chat/mdoc/index.d.ts.map +1 -1
  41. package/dist/components/chat/mentionEditor.d.ts +2 -7
  42. package/dist/components/chat/mentionEditor.d.ts.map +1 -1
  43. package/dist/components/chat/sidebarMotion.d.ts +0 -5
  44. package/dist/components/chat/sidebarMotion.d.ts.map +1 -1
  45. package/dist/components/chat/types.d.ts +9 -130
  46. package/dist/components/chat/types.d.ts.map +1 -1
  47. package/dist/components/skill/api/skillCloudUrl.d.ts.map +1 -1
  48. package/dist/components/skill/components/ChatSkillCard.vue.d.ts.map +1 -1
  49. package/dist/components/skill/components/ChatSkillCardSkeleton.vue.d.ts.map +1 -1
  50. package/dist/components/skill/components/ChatSkillDetailDialog.vue.d.ts.map +1 -1
  51. package/dist/components/skill/skillCardModel.d.ts.map +1 -1
  52. package/dist/components/skill/types.d.ts +0 -2
  53. package/dist/components/skill/types.d.ts.map +1 -1
  54. package/dist/components/ui/components/UiDialog.vue.d.ts.map +1 -1
  55. package/dist/components/ui/components/UiDropdown.vue.d.ts +4 -6
  56. package/dist/components/ui/components/UiDropdown.vue.d.ts.map +1 -1
  57. package/dist/components/ui/components/UiMenu.vue.d.ts +3 -7
  58. package/dist/components/ui/components/UiMenu.vue.d.ts.map +1 -1
  59. package/dist/components/ui/components/UiMenuColumn.vue.d.ts.map +1 -1
  60. package/dist/components/ui/components/UiMenuNestedSubmenu.vue.d.ts +0 -6
  61. package/dist/components/ui/components/UiMenuNestedSubmenu.vue.d.ts.map +1 -1
  62. package/dist/components/ui/components/UiMenuSubmenuList.vue.d.ts.map +1 -1
  63. package/dist/components/ui/components/UiSearchInput.vue.d.ts +1 -5
  64. package/dist/components/ui/components/UiSearchInput.vue.d.ts.map +1 -1
  65. package/dist/components/ui/components/UiTabs.vue.d.ts.map +1 -1
  66. package/dist/components/ui/composables/floatingPosition.d.ts +1 -3
  67. package/dist/components/ui/composables/floatingPosition.d.ts.map +1 -1
  68. package/dist/components/ui/composables/index.d.ts +1 -1
  69. package/dist/components/ui/composables/index.d.ts.map +1 -1
  70. package/dist/components/ui/composables/useUiDropdown.d.ts +2 -11
  71. package/dist/components/ui/composables/useUiDropdown.d.ts.map +1 -1
  72. package/dist/components/ui/composables/useUiMenuFloating.d.ts +2 -4
  73. package/dist/components/ui/composables/useUiMenuFloating.d.ts.map +1 -1
  74. package/dist/components/ui/types.d.ts +6 -34
  75. package/dist/components/ui/types.d.ts.map +1 -1
  76. package/dist/components/ui/utils/index.d.ts +1 -1
  77. package/dist/components/ui/utils/index.d.ts.map +1 -1
  78. package/dist/components/ui/utils/mapDropdownMenuItems.d.ts +1 -6
  79. package/dist/components/ui/utils/mapDropdownMenuItems.d.ts.map +1 -1
  80. package/dist/components/ui/utils/menuSubmenu.d.ts +1 -3
  81. package/dist/components/ui/utils/menuSubmenu.d.ts.map +1 -1
  82. package/dist/{index-ChJLMu-n.js → index-B1l7WLyd.js} +29142 -32396
  83. package/dist/{index-Dsb0ILVU.cjs → index-B9m5lEtT.cjs} +224 -223
  84. package/dist/{index-BzC5q4TB.js → index-DZFa6Oqy.js} +1 -1
  85. package/dist/{index-B9PZy7-X.cjs → index-GDdWx_nR.cjs} +1 -1
  86. package/dist/{index-CzUk6DJO.js → index-oK2gNaio.js} +1 -1
  87. package/dist/{index-DWgzqR7o.cjs → index-zKQpqRx4.cjs} +1 -1
  88. package/dist/index.cjs +1 -1
  89. package/dist/index.js +274 -322
  90. package/dist/style.css +2 -2
  91. package/package.json +1 -1
  92. package/dist/chat-token.css +0 -226
  93. package/dist/components/chat/ChatApp.vue.d.ts +0 -199
  94. package/dist/components/chat/ChatApp.vue.d.ts.map +0 -1
  95. package/dist/components/chat/chatSessionSidebarAssets.d.ts +0 -21
  96. package/dist/components/chat/chatSessionSidebarAssets.d.ts.map +0 -1
  97. package/dist/components/chat/chatSessionSidebarTypes.d.ts +0 -59
  98. package/dist/components/chat/chatSessionSidebarTypes.d.ts.map +0 -1
  99. package/dist/components/chat/cloudConfig.d.ts +0 -90
  100. package/dist/components/chat/cloudConfig.d.ts.map +0 -1
  101. package/dist/components/chat/components/ArtifactList.vue.d.ts +0 -14
  102. package/dist/components/chat/components/ArtifactList.vue.d.ts.map +0 -1
  103. package/dist/components/chat/components/ChatHistorySearchDialog.vue.d.ts +0 -33
  104. package/dist/components/chat/components/ChatHistorySearchDialog.vue.d.ts.map +0 -1
  105. package/dist/components/chat/components/ChatSessionExpandHistoryCard.vue.d.ts +0 -30
  106. package/dist/components/chat/components/ChatSessionExpandHistoryCard.vue.d.ts.map +0 -1
  107. package/dist/components/chat/components/ChatSessionLoadingDots.vue.d.ts +0 -11
  108. package/dist/components/chat/components/ChatSessionLoadingDots.vue.d.ts.map +0 -1
  109. package/dist/components/chat/components/ChatSessionOverflowTooltip.vue.d.ts +0 -22
  110. package/dist/components/chat/components/ChatSessionOverflowTooltip.vue.d.ts.map +0 -1
  111. package/dist/components/chat/components/ChatSessionSidebar.vue.d.ts +0 -80
  112. package/dist/components/chat/components/ChatSessionSidebar.vue.d.ts.map +0 -1
  113. package/dist/components/chat/components/ChatSessionSkeleton.vue.d.ts +0 -6
  114. package/dist/components/chat/components/ChatSessionSkeleton.vue.d.ts.map +0 -1
  115. package/dist/components/chat/components/ChatSessionStatusMark.vue.d.ts +0 -15
  116. package/dist/components/chat/components/ChatSessionStatusMark.vue.d.ts.map +0 -1
  117. package/dist/components/chat/composables/chatApiRequest.d.ts +0 -39
  118. package/dist/components/chat/composables/chatApiRequest.d.ts.map +0 -1
  119. package/dist/components/chat/composables/chatHistoryApi.d.ts +0 -41
  120. package/dist/components/chat/composables/chatHistoryApi.d.ts.map +0 -1
  121. package/dist/components/chat/composables/chatSessionId.d.ts +0 -8
  122. package/dist/components/chat/composables/chatSessionId.d.ts.map +0 -1
  123. package/dist/components/chat/composables/useChatNewSessionEpoch.d.ts +0 -3
  124. package/dist/components/chat/composables/useChatNewSessionEpoch.d.ts.map +0 -1
  125. package/dist/components/chat/composables/useChatSessionHistory.d.ts +0 -56
  126. package/dist/components/chat/composables/useChatSessionHistory.d.ts.map +0 -1
  127. package/dist/components/chat/composables/useChatSessionSwitch.d.ts +0 -22
  128. package/dist/components/chat/composables/useChatSessionSwitch.d.ts.map +0 -1
  129. package/dist/components/chat/composables/useHistoryGroupExpand.d.ts +0 -14
  130. package/dist/components/chat/composables/useHistoryGroupExpand.d.ts.map +0 -1
  131. package/dist/components/chat/icons/ChatArtifactFilesIcon.vue.d.ts +0 -9
  132. package/dist/components/chat/icons/ChatArtifactFilesIcon.vue.d.ts.map +0 -1
  133. package/dist/components/chat/icons/ChatTipMenuAssetIcon.vue.d.ts.map +0 -1
  134. package/dist/components/chat/mdoc/ArtifactStack.vue.d.ts +0 -13
  135. package/dist/components/chat/mdoc/ArtifactStack.vue.d.ts.map +0 -1
  136. package/dist/components/chat/mdoc/artifactStack.d.ts +0 -17
  137. package/dist/components/chat/mdoc/artifactStack.d.ts.map +0 -1
  138. package/dist/components/chat/mdoc/sessionArtifacts.d.ts +0 -20
  139. package/dist/components/chat/mdoc/sessionArtifacts.d.ts.map +0 -1
  140. package/dist/components/skill/formatSkillUsageCount.d.ts +0 -3
  141. package/dist/components/skill/formatSkillUsageCount.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deep-eye/core",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,226 +0,0 @@
1
- /**
2
- * Chat Design Token — single source of truth for the `--chat-*` / `--ai-conversation-*`
3
- * CSS custom properties consumed by the chat components (`ChatBot`, `ChatSender`,
4
- * `ConversationList`/`MessageBubble`, `ChatSessionSidebar`, `ChatApp`, …).
5
- *
6
- * - `style.css` `@import`s this file, so importing only `@deep-eye/core/style.css`
7
- * already gets correct defaults.
8
- * - It is also published standalone as `@deep-eye/core/chat-token.css` so a host can
9
- * copy this file, edit values, and `import` it *after* `style.css` to override the
10
- * whole token set in one go (see docs/guide/theming.md).
11
- * - Variable names are never renamed/removed here — only additive. Components keep
12
- * their own `var(--chat-xxx, fallback)` safety net for when this file isn't loaded
13
- * at all; the fallback values must stay in sync with the defaults below.
14
- * - Dark values live under the existing `[data-chat-color-mode='dark']` attribute
15
- * (already toggled by `ChatProvider`/`ChatBot`) — no new theming mechanism.
16
- */
17
-
18
- :root {
19
- /* ---------------------------------------------------------------------- */
20
- /* ChatSender */
21
- /* ---------------------------------------------------------------------- */
22
- --chat-sender-bg: #ffffff;
23
- --chat-sender-border: #e6e6e6;
24
- --chat-sender-focus-border: #3964fe;
25
- --chat-sender-focus-ring: #cee6ff;
26
- --chat-sender-shadow: 0 8px 24px rgba(57, 100, 254, 0.08);
27
- --chat-sender-focus-shadow: 0 10px 28px rgba(57, 100, 254, 0.14);
28
- --chat-sender-radius: 24px;
29
- --chat-sender-min-height: 120px;
30
- --chat-sender-text: #1f2329;
31
- --chat-sender-text-secondary: #52525b;
32
- --chat-sender-text-muted: #71717a;
33
- --chat-sender-placeholder: #b5bac1;
34
- --chat-sender-icon-color: #333333;
35
- --chat-sender-icon-hover-color: #333333;
36
- --chat-sender-btn-hover-bg: #f5f6f8;
37
- --chat-sender-file-bg: #ffffff;
38
- --chat-sender-file-border: #e4e4e7;
39
- --chat-sender-file-border-hover: #a1a1aa;
40
- --chat-sender-file-remove-bg: #52525b;
41
- --chat-sender-file-remove-bg-hover: #3f3f46;
42
- --chat-sender-menu-bg: #ffffff;
43
- --chat-sender-menu-item-hover: #f4f4f5;
44
- --chat-sender-mention-color: #2d6af3;
45
- --chat-sender-mention-hover-color: #2d6af3;
46
- --chat-sender-selection-bg: #b3d4fc;
47
- --chat-sender-selection-fg: #0b1f33;
48
- --chat-sender-trigger-menu-min-width: 200px;
49
- --chat-sender-trigger-menu-max-width: 320px;
50
- --chat-sender-trigger-menu-max-height: 320px;
51
- --chat-sender-quick-active-bg: #f0f5ff;
52
- --chat-sender-accent: #508ffb;
53
- --chat-sender-send-active-bg: #3964fe;
54
- --chat-sender-send-hover-bg: #2952e6;
55
- --chat-sender-stop-bg: #ff584f;
56
- --chat-sender-stop-hover-bg: #e64e46;
57
- --chat-sender-progress-track: #e4e4e7;
58
- --chat-sender-level-bg: #e5e7eb;
59
- --chat-sender-switch-bg: #d1d5db;
60
- --chat-sender-model-label: rgb(97, 102, 107);
61
- --chat-sender-model-caption: rgb(129, 133, 140);
62
- --chat-sender-model-hover-bg: rgba(38, 49, 72, 0.06);
63
- --chat-sender-model-menu-border: rgba(0, 0, 0, 0);
64
-
65
- /* ---------------------------------------------------------------------- */
66
- /* ChatBot shell */
67
- /* ---------------------------------------------------------------------- */
68
- --chat-bot-border: transparent;
69
- --chat-bot-sidebar-bg: var(--bg-surface, #f7f7f5);
70
- --chat-bot-sender-bg: transparent;
71
- --chat-bot-sidebar-width: 320px;
72
-
73
- /* ---------------------------------------------------------------------- */
74
- /* ai-conversation (ConversationList / MessageBubble / tool renderers) */
75
- /* ---------------------------------------------------------------------- */
76
- --ai-conversation-user-bg: var(--accent-subtle, #eff4ff);
77
- --ai-conversation-user-color: var(--text-primary, #1a1a1a);
78
- --ai-conversation-user-border: transparent;
79
- --ai-conversation-assistant-bg: transparent;
80
- --ai-conversation-assistant-color: var(--text-primary, #1a1a1a);
81
- --ai-conversation-assistant-border: transparent;
82
- --ai-conversation-tool-bg: var(--bg-surface, #f7f7f5);
83
- --ai-conversation-tool-border: var(--border-subtle, #e8e8e5);
84
- --ai-conversation-tool-pending: var(--accent, #2563eb);
85
- --ai-conversation-tool-running: var(--accent, #2563eb);
86
- --ai-conversation-tool-success: var(--success, #16a34a);
87
- --ai-conversation-tool-error: var(--error, #dc2626);
88
- --ai-conversation-muted-color: var(--text-secondary, #6b6b68);
89
- --ai-conversation-code-bg: var(--bg-code, #f4f4f5);
90
- --ai-conversation-chart-blue: var(--color-chart-blue, var(--ai-conversation-tool-running));
91
- --ai-conversation-chart-purple: var(--color-chart-purple, var(--ai-conversation-tool-running));
92
- --ai-conversation-chart-pink: var(--color-chart-pink, var(--ai-conversation-tool-error));
93
- --ai-conversation-chart-amber: var(--color-chart-amber, var(--ai-conversation-tool-pending));
94
- --ai-conversation-chart-green: var(--color-chart-green, var(--ai-conversation-tool-success));
95
- --ai-conversation-chart-cyan: var(--color-chart-cyan, var(--ai-conversation-tool-running));
96
- --ai-conversation-chart-orange: var(--color-chart-orange, var(--ai-conversation-tool-error));
97
- --ai-conversation-radius-sm: var(--radius-tool, var(--radius-sm, 6px));
98
- --ai-conversation-radius-md: var(--radius-md, 10px);
99
- --ai-conversation-radius-lg: var(--radius-lg, 16px);
100
- --ai-conversation-radius: 0.75rem;
101
- --ai-conversation-bubble-radius: 12px;
102
- --ai-conversation-spacing: 0.75rem;
103
- --ai-conversation-content-max: 944px;
104
- --ai-conversation-user-max: min(85%, 36rem);
105
- --ai-conversation-assistant-max: 944px;
106
- --ai-conversation-avatar-size: 1.375rem;
107
- --ai-conversation-assistant-avatar-size: 2rem;
108
- --ai-conversation-assistant-avatar-radius: 0.5rem;
109
- --ai-conversation-avatar-radius: 0.375rem;
110
- --ai-conversation-avatar-gap: 0.625rem;
111
- /* 内置助手标识采用品牌色;自定义头像仍完整覆盖标识。 */
112
- --ai-conversation-avatar-assistant-bg: transparent;
113
- --ai-conversation-avatar-assistant-color: var(--color-accent-brand, #c96546);
114
- --ai-conversation-avatar-user-bg: var(--bg-surface, #f7f7f5);
115
- --ai-conversation-avatar-user-color: var(--text-secondary, #6b6b68);
116
- --ai-conversation-ease: var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
117
- --ai-conversation-prose-size: 0.875rem;
118
- --ai-conversation-prose-leading: 1.6;
119
- --ai-conversation-shadow-sm: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
120
- --ai-conversation-return-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
121
-
122
- /* ---------------------------------------------------------------------- */
123
- /* Shell (ChatApp) */
124
- /* ---------------------------------------------------------------------- */
125
- --chat-app-bg: #f2f4f9;
126
- --chat-app-content-bg: #ffffff;
127
-
128
- /* ---------------------------------------------------------------------- */
129
- /* Sidebar (ChatSessionSidebar) */
130
- /* ---------------------------------------------------------------------- */
131
- --chat-sidebar-width: 280px;
132
- --chat-sidebar-collapsed-width: 65px;
133
- --chat-sidebar-bg: #ffffff;
134
- --chat-sidebar-inner-bg: #fafafa;
135
- --chat-sidebar-border: #eef0f4;
136
- --chat-sidebar-text: #1f2329;
137
- --chat-sidebar-text-muted: #999999;
138
- --chat-sidebar-accent: #1677ff;
139
- --chat-sidebar-item-hover-bg: #f5f6f8;
140
- --chat-sidebar-item-active-bg: #ffffff;
141
- --chat-sidebar-logo-size: 40px;
142
- --chat-sidebar-nav-icon-size: 20px;
143
- --chat-sidebar-nav-item-min-height: 40px;
144
- --chat-sidebar-top-min-height: 40px;
145
- --chat-sidebar-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
146
-
147
- /* ---------------------------------------------------------------------- */
148
- /* History list */
149
- /* ---------------------------------------------------------------------- */
150
- --chat-history-status-running: #1677ff;
151
- --chat-history-status-error: #f87171;
152
- --chat-history-unread-dot: #1677ff;
153
- --chat-history-item-height: 40px;
154
- --chat-history-item-radius: 6px;
155
- --chat-history-item-color: #999999;
156
- --chat-history-item-hover-bg: #ebecef;
157
- --chat-history-item-hover-color: #333333;
158
- --chat-history-item-active-bg: #f0f2f5;
159
- --chat-history-item-active-color: #333333;
160
- --chat-history-empty-color: #bbbbbb;
161
- --chat-history-footer-color: #8f959e;
162
- --chat-history-scrollbar-thumb: #e1e5e9;
163
-
164
- /* Empty / welcome state (ChatApp / ChatBot empty layout)
165
- * Robot bottom aligns with composer top; --chat-empty-welcome-chat-gap is the
166
- * title's bottom inset inside the welcome row, not a gap below the row. */
167
- --chat-empty-welcome-top: clamp(48px, 7cqi + 2vh, 105px);
168
- --chat-empty-welcome-chat-gap: 20px;
169
- --chat-empty-welcome-gap: var(--chat-empty-welcome-chat-gap);
170
- --chat-empty-robot-height: clamp(92px, 9cqi, 109px);
171
- --chat-empty-welcome-min-height: var(--chat-empty-robot-height);
172
- --chat-empty-sender-max-width: 944px;
173
- --chat-empty-welcome-max-width: 944px;
174
- --chat-empty-title-color: #1f2329;
175
- --chat-empty-title-size: clamp(20px, calc(1.6cqi + 16px), 32px);
176
- --chat-empty-skill-gap: clamp(16px, 2.5cqi, 32px);
177
- }
178
-
179
- [data-chat-color-mode='dark'] {
180
- /* ChatSender */
181
- --chat-sender-bg: #202023;
182
- --chat-sender-border: #3f3f46;
183
- --chat-sender-focus-border: #71717a;
184
- --chat-sender-text: #f4f4f5;
185
- --chat-sender-text-secondary: #a1a1aa;
186
- --chat-sender-text-muted: #71717a;
187
- --chat-sender-placeholder: #71717a;
188
- --chat-sender-icon-color: #a1a1aa;
189
- --chat-sender-icon-hover-color: #f4f4f5;
190
- --chat-sender-btn-hover-bg: #27272a;
191
- --chat-sender-file-bg: #27272a;
192
- --chat-sender-file-border: #3f3f46;
193
- --chat-sender-file-border-hover: #52525b;
194
- --chat-sender-menu-bg: #202023;
195
- --chat-sender-menu-item-hover: #27272a;
196
- --chat-sender-level-bg: #3f3f46;
197
- --chat-sender-switch-bg: #3f3f46;
198
-
199
- /* ChatBot shell */
200
- --chat-bot-border: #3a3a3a;
201
- --chat-bot-sidebar-bg: #1a1a1a;
202
- --chat-bot-sender-bg: #0f0f0f;
203
-
204
- /* Shell (ChatApp) */
205
- --chat-app-bg: #0f0f11;
206
- --chat-app-content-bg: #18181b;
207
-
208
- /* Sidebar (ChatSessionSidebar) */
209
- --chat-sidebar-bg: #1c1c1f;
210
- --chat-sidebar-inner-bg: #1c1c1f;
211
- --chat-sidebar-border: #2c2c30;
212
- --chat-sidebar-text: #f4f4f5;
213
- --chat-sidebar-text-muted: #a1a1aa;
214
- --chat-sidebar-item-hover-bg: rgba(255, 255, 255, 0.06);
215
- --chat-sidebar-item-active-bg: rgba(255, 255, 255, 0.1);
216
-
217
- /* History list */
218
- --chat-history-item-color: #a1a1aa;
219
- --chat-history-item-hover-bg: rgba(255, 255, 255, 0.06);
220
- --chat-history-item-hover-color: #f4f4f5;
221
- --chat-history-item-active-bg: rgba(255, 255, 255, 0.1);
222
- --chat-history-item-active-color: #f4f4f5;
223
- --chat-history-empty-color: #52525b;
224
- --chat-history-footer-color: #71717a;
225
- --chat-history-scrollbar-thumb: #3f3f46;
226
- }
@@ -1,199 +0,0 @@
1
- import type { ChatSkillCardModel } from '../skill/types';
2
- import { type ChatCloudConfig } from './cloudConfig';
3
- import { type ChatSessionNavItem, type ChatSidebarTexts } from './chatSessionSidebarTypes';
4
- import type { ChatAppExpose, ChatAttachmentInput, ChatAttachmentLimits, ChatColorMode, ChatMentionKind, ChatPreviewRendererMap, ChatSenderProps, ChatSendPayload, ChatToolRendererMap, ChatToolStates, ConversationListConfig, ConversationMessage, ConversationStreamStatus, ChatTheme } from './types';
5
- import type { AskUserPayload } from './askUser';
6
- type __VLS_Props = {
7
- cloud: ChatCloudConfig;
8
- brand?: {
9
- title?: string;
10
- logo?: string;
11
- logoAlt?: string;
12
- };
13
- navItems?: ChatSessionNavItem[];
14
- sidebarTexts?: Partial<ChatSidebarTexts>;
15
- /** `v-model:session-id`. */
16
- sessionId?: string | null;
17
- /** Two-way syncs `?sessionId=` via `History.replaceState`. Default `true`. */
18
- syncSessionQuery?: boolean;
19
- /** Explicit override; omit to let the sidebar own its own (persisted) collapse state, auto-forced on narrow screens. */
20
- collapsed?: boolean;
21
- model?: string;
22
- senderConfig?: Partial<ChatSenderProps>;
23
- colorMode?: ChatColorMode;
24
- theme?: ChatTheme;
25
- attachmentInput?: ChatAttachmentInput;
26
- attachmentLimits?: Partial<ChatAttachmentLimits>;
27
- conversationConfig?: ConversationListConfig;
28
- previewRenderers?: ChatPreviewRendererMap;
29
- toolRenderers?: ChatToolRendererMap;
30
- toolStates?: ChatToolStates;
31
- followUps?: string[];
32
- pendingAskUser?: AskUserPayload | null;
33
- enableQueue?: boolean;
34
- showSidebar?: boolean;
35
- sidebarWidth?: string | number;
36
- /** Forwarded to `ChatBot`; see `ChatBotProps.centeredEmptyState`. Default `true`. */
37
- centeredEmptyState?: boolean;
38
- /**
39
- * Right column: `chat` shows ChatBot; `page` shows the `#page` slot.
40
- * The session sidebar never unmounts. `v-model:pane`.
41
- */
42
- pane?: 'chat' | 'page';
43
- /** Override sidebar nav highlight. Default: `'new'` on a blank chat, unset when a history session is open. */
44
- activeNavKey?: string;
45
- };
46
- type __VLS_ModelProps = {
47
- 'sessionId'?: string | null;
48
- 'pane'?: 'chat' | 'page';
49
- };
50
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
51
- declare var __VLS_18: {}, __VLS_21: {}, __VLS_64: {}, __VLS_67: {
52
- triggerId: string;
53
- query: string;
54
- select: (payload: {
55
- id: string;
56
- label: string;
57
- }) => void;
58
- close: () => void;
59
- anchorRect: DOMRect | null;
60
- }, __VLS_70: {
61
- message: ConversationMessage;
62
- index: number;
63
- isLast: boolean;
64
- messageProps: import("./types").ChatMessageProps;
65
- onAction: (action: import("./types").ConversationUiAction) => void;
66
- onCopy: (payload: import("./types").ChatActionbarCopyPayload) => void;
67
- onAttachmentPreview: (file: import("./types").ChatResourceFile) => void;
68
- onToolAction: (payload: import("./types").ChatToolActionPayload) => void;
69
- }, __VLS_73: {}, __VLS_76: {}, __VLS_87: {}, __VLS_94: {};
70
- type __VLS_Slots = {} & {
71
- 'sidebar-brand'?: (props: typeof __VLS_18) => any;
72
- } & {
73
- nav?: (props: typeof __VLS_21) => any;
74
- } & {
75
- sender?: (props: typeof __VLS_64) => any;
76
- } & {
77
- 'trigger-menu'?: (props: typeof __VLS_67) => any;
78
- } & {
79
- message?: (props: typeof __VLS_70) => any;
80
- } & {
81
- empty?: (props: typeof __VLS_73) => any;
82
- } & {
83
- 'empty-extra'?: (props: typeof __VLS_76) => any;
84
- } & {
85
- footer?: (props: typeof __VLS_87) => any;
86
- } & {
87
- page?: (props: typeof __VLS_94) => any;
88
- };
89
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, ChatAppExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
90
- stop: () => any;
91
- action: (payload: unknown) => any;
92
- send: (payload: ChatSendPayload) => any;
93
- "attachment-error": (error: unknown, file?: File | undefined) => any;
94
- "mention-insert": (payload: {
95
- triggerId: string;
96
- id: string;
97
- label: string;
98
- kind?: ChatMentionKind;
99
- }) => any;
100
- "mention-remove": (payload: {
101
- triggerId: string;
102
- id: string;
103
- label: string;
104
- kind?: ChatMentionKind;
105
- }) => any;
106
- "update:sessionId": (value: string | null) => any;
107
- "artifact-open": (payload: unknown) => any;
108
- "file-preview": (payload: unknown) => any;
109
- "response-error": (error: Error, info: unknown) => any;
110
- "nav-select": (key: string) => any;
111
- "session-created": (payload: {
112
- id: string;
113
- title: string;
114
- }) => any;
115
- "session-status-change": (payload: {
116
- id: string;
117
- status: ConversationStreamStatus;
118
- }) => any;
119
- "skill-use": (skill: ChatSkillCardModel) => any;
120
- "skill-shortcut": (payload: {
121
- skill: ChatSkillCardModel;
122
- text: string;
123
- }) => any;
124
- "update:pane": (value: "page" | "chat") => any;
125
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
126
- onStop?: (() => any) | undefined;
127
- onAction?: ((payload: unknown) => any) | undefined;
128
- onSend?: ((payload: ChatSendPayload) => any) | undefined;
129
- "onAttachment-error"?: ((error: unknown, file?: File | undefined) => any) | undefined;
130
- "onMention-insert"?: ((payload: {
131
- triggerId: string;
132
- id: string;
133
- label: string;
134
- kind?: ChatMentionKind;
135
- }) => any) | undefined;
136
- "onMention-remove"?: ((payload: {
137
- triggerId: string;
138
- id: string;
139
- label: string;
140
- kind?: ChatMentionKind;
141
- }) => any) | undefined;
142
- "onUpdate:sessionId"?: ((value: string | null) => any) | undefined;
143
- "onArtifact-open"?: ((payload: unknown) => any) | undefined;
144
- "onFile-preview"?: ((payload: unknown) => any) | undefined;
145
- "onResponse-error"?: ((error: Error, info: unknown) => any) | undefined;
146
- "onNav-select"?: ((key: string) => any) | undefined;
147
- "onSession-created"?: ((payload: {
148
- id: string;
149
- title: string;
150
- }) => any) | undefined;
151
- "onSession-status-change"?: ((payload: {
152
- id: string;
153
- status: ConversationStreamStatus;
154
- }) => any) | undefined;
155
- "onSkill-use"?: ((skill: ChatSkillCardModel) => any) | undefined;
156
- "onSkill-shortcut"?: ((payload: {
157
- skill: ChatSkillCardModel;
158
- text: string;
159
- }) => any) | undefined;
160
- "onUpdate:pane"?: ((value: "page" | "chat") => any) | undefined;
161
- }>, {
162
- theme: ChatTheme;
163
- model: string;
164
- sessionId: string | null;
165
- toolStates: ChatToolStates;
166
- collapsed: boolean;
167
- followUps: string[];
168
- attachmentLimits: Partial<ChatAttachmentLimits>;
169
- attachmentInput: ChatAttachmentInput;
170
- pendingAskUser: AskUserPayload | null;
171
- showSidebar: boolean;
172
- sidebarWidth: string | number;
173
- enableQueue: boolean;
174
- senderConfig: Partial<ChatSenderProps>;
175
- conversationConfig: ConversationListConfig;
176
- colorMode: ChatColorMode;
177
- previewRenderers: ChatPreviewRendererMap;
178
- toolRenderers: ChatToolRendererMap;
179
- centeredEmptyState: boolean;
180
- navItems: ChatSessionNavItem[];
181
- activeNavKey: string;
182
- brand: {
183
- title?: string;
184
- logo?: string;
185
- logoAlt?: string;
186
- };
187
- sidebarTexts: Partial<ChatSidebarTexts>;
188
- syncSessionQuery: boolean;
189
- pane: "chat" | "page";
190
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
191
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
192
- declare const _default: typeof __VLS_export;
193
- export default _default;
194
- type __VLS_WithSlots<T, S> = T & {
195
- new (): {
196
- $slots: S;
197
- };
198
- };
199
- //# sourceMappingURL=ChatApp.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChatApp.vue.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatApp.vue"],"names":[],"mappings":"AAgyBA,OAAO,KAAK,EAAE,kBAAkB,EAAwB,MAAM,gBAAgB,CAAA;AAC9E,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,EAGL,KAAK,kBAAkB,EAEvB,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAA;AAGlC,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EAEpB,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EACxB,SAAS,EACV,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAI/C,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,eAAe,CAAA;IACtB,KAAK,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAC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AM;;;YACf,MAAM;gBAAU,wBAAwB;;;;eAS5C,kBAAkB;cAAQ,MAAM;;;;;;;;;mBAE7C,MAAM;YAAM,MAAM;eAAS,MAAM;eAAS,eAAe;;;mBAGzD,MAAM;YAAM,MAAM;eAAS,MAAM;eAAS,eAAe;;;;;;;;YAf9C,MAAM;eAAS,MAAM;;;YACf,MAAM;gBAAU,wBAAwB;;;;eAS5C,kBAAkB;cAAQ,MAAM;;;;WAhE3D,SAAS;WAHT,MAAM;eALF,MAAM,GAAG,IAAI;gBAcZ,cAAc;eAVf,OAAO;eAWP,MAAM,EAAE;sBALD,OAAO,CAAC,oBAAoB,CAAC;qBAD9B,mBAAmB;oBAOpB,cAAc,GAAG,IAAI;iBAExB,OAAO;kBACN,MAAM,GAAG,MAAM;iBAFhB,OAAO;kBAXN,OAAO,CAAC,eAAe,CAAC;wBAKlB,sBAAsB;eAJ/B,aAAa;sBAKN,sBAAsB;mBACzB,mBAAmB;wBAQd,OAAO;cAxBjB,kBAAkB,EAAE;kBA+BhB,MAAM;WAhCb;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;kBAE5C,OAAO,CAAC,gBAAgB,CAAC;sBAIrB,OAAO;UAwBnB,MAAM,GAAG,MAAM;6EAmhCxB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,21 +0,0 @@
1
- import type { ChatSidebarTexts } from './chatSessionSidebarTypes';
2
- export interface ChatSessionSidebarAssets {
3
- logo: string;
4
- back: string;
5
- collapse: string;
6
- search: string;
7
- historyGroupExpand: string;
8
- newSession: string;
9
- newSessionActive: string;
10
- }
11
- export declare const DEFAULT_SIDEBAR_ASSETS: ChatSessionSidebarAssets;
12
- export declare function resolveNavIcon(assets: ChatSessionSidebarAssets, item: {
13
- key: string;
14
- icon?: string;
15
- activeIcon?: string;
16
- }, active: boolean): string;
17
- export declare function resolveBrandLogo(brand?: {
18
- logo?: string;
19
- }): string;
20
- export declare function resolveSidebarTexts(texts?: Partial<ChatSidebarTexts>): ChatSidebarTexts;
21
- //# sourceMappingURL=chatSessionSidebarAssets.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chatSessionSidebarAssets.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatSessionSidebarAssets.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAGjE,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,eAAO,MAAM,sBAAsB,EAAE,wBAQpC,CAAA;AAED,wBAAgB,cAAc,CAC5B,MAAM,EAAE,wBAAwB,EAChC,IAAI,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,EACzD,MAAM,EAAE,OAAO,GACd,MAAM,CAOR;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAEvF"}
@@ -1,59 +0,0 @@
1
- import type { ChatHistoryItem } from './composables/chatHistoryApi';
2
- /** Aligned with basic-agent-web's `AgentHomeSessionRunStatus` (UI-domain, lowercase). */
3
- export type ChatSessionRunStatus = 'running' | 'success' | 'error' | 'interrupted';
4
- export interface ChatSessionListItem {
5
- id: string;
6
- title: string;
7
- /** Sort/group key — epoch ms, usually `updateDate`/`createDate`. */
8
- time: number;
9
- status: ChatSessionRunStatus;
10
- viewed: boolean;
11
- /** Optimistic insert only — plays the list appear animation once. */
12
- animateIn?: boolean;
13
- }
14
- export interface ChatSessionNavItem {
15
- key: string;
16
- label: string;
17
- /** Image URL rendered next to the label; `key: 'new'` falls back to the built-in PNG. */
18
- icon?: string;
19
- /** Image URL shown when this nav item is active. */
20
- activeIcon?: string;
21
- }
22
- export interface ChatSidebarTexts {
23
- brandTitle: string;
24
- logoAlt: string;
25
- navAriaLabel: string;
26
- goHome: string;
27
- collapse: string;
28
- expand: string;
29
- historyTitle: string;
30
- emptyHistory: string;
31
- loading: string;
32
- noMoreHistory: string;
33
- search: string;
34
- closeSearch: string;
35
- quickCreate: string;
36
- newSession: string;
37
- noMatches: string;
38
- }
39
- export declare const DEFAULT_SIDEBAR_TEXTS: ChatSidebarTexts;
40
- export declare const DEFAULT_SIDEBAR_NAV_ITEMS: ChatSessionNavItem[];
41
- export declare const DEFAULT_SIDEBAR_PERSIST_KEY = "deep-eye-chat-sidebar-collapsed";
42
- /** Tolerates arbitrary backend casing (`RUNNING`, `running`, …); unrecognized/missing → `success`. */
43
- export declare function parseSessionRunStatus(raw: unknown): ChatSessionRunStatus;
44
- /** `ChatHistoryItem` (T06 raw API shape) → the sidebar's own UI-domain `ChatSessionListItem`. */
45
- export declare function mapHistoryItemToSession(item: ChatHistoryItem, defaultTitle: string): ChatSessionListItem;
46
- export interface ChatSessionHistoryGroup {
47
- id: string;
48
- label: string;
49
- sessions: ChatSessionListItem[];
50
- }
51
- /**
52
- * The sidebar/search dialog show a single flat "任务历史" list — no "7 天前到 30 天前" /
53
- * "30 天前以上" time-range buckets (matching basic-agent-web's actual UI: the day-range
54
- * buckets only exist as an internal data shape there too, never rendered as separate
55
- * sections). `texts`/`now` are kept for signature stability; the sidebar already renders
56
- * the "任务历史" header above the list, so the single group carries no label of its own.
57
- */
58
- export declare function groupSessionsByTime(sessions: readonly ChatSessionListItem[], _texts?: ChatSidebarTexts, _now?: number): ChatSessionHistoryGroup[];
59
- //# sourceMappingURL=chatSessionSidebarTypes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chatSessionSidebarTypes.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatSessionSidebarTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAEnE,yFAAyF;AACzF,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,CAAA;AAIlF,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,oBAAoB,CAAA;IAC5B,MAAM,EAAE,OAAO,CAAA;IACf,qEAAqE;IACrE,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,yFAAyF;IACzF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,eAAO,MAAM,qBAAqB,EAAE,gBAgBnC,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,kBAAkB,EAAmC,CAAA;AAE7F,eAAO,MAAM,2BAA2B,oCAAoC,CAAA;AAE5E,sGAAsG;AACtG,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,oBAAoB,CAQxE;AAQD,iGAAiG;AACjG,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,eAAe,EACrB,YAAY,EAAE,MAAM,GACnB,mBAAmB,CAQrB;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,mBAAmB,EAAE,CAAA;CAChC;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,SAAS,mBAAmB,EAAE,EACxC,MAAM,GAAE,gBAAwC,EAChD,IAAI,GAAE,MAAmB,GACxB,uBAAuB,EAAE,CAG3B"}
@@ -1,90 +0,0 @@
1
- import type { ChatKnowledgeListParams, ChatSkillFetchConfig, ChatSkillPublishedSearchParams } from '../skill/types';
2
- import type { ChatAttachmentLimits, ChatSendPayload, ChatUploadConfig } from './types';
3
- /** Body params merged into the built-in `agentChatKeep` request. Freeform — the backend contract owns the shape. */
4
- export type ChatApiRequestParams = Record<string, unknown>;
5
- /** Context handed to `cloud.chat.getParams()` for per-request body overrides. */
6
- export interface ChatApiRequestContext {
7
- payload?: ChatSendPayload;
8
- model?: string;
9
- sessionId?: string | null;
10
- input: unknown[];
11
- }
12
- export interface ChatCloudAuth {
13
- token: string;
14
- userId: string;
15
- schoolCode: string;
16
- appid?: string;
17
- }
18
- export interface ChatCloudChatConfig {
19
- url?: string;
20
- lastSessionUrl?: string;
21
- resumeUrl?: string;
22
- abortUrl?: string;
23
- params?: ChatApiRequestParams;
24
- getParams?: (ctx: ChatApiRequestContext) => ChatApiRequestParams | Promise<ChatApiRequestParams>;
25
- /** 首发时自动生成 24-hex session_id。默认 true。 */
26
- autoSessionId?: boolean;
27
- /** 断网/超时后自动 lastSession + resume 续传。默认 true。 */
28
- resumeEnabled?: boolean;
29
- /** 停止生成时自动调用 abort_session。默认 true。 */
30
- abortEnabled?: boolean;
31
- }
32
- export interface ChatCloudHistoryConfig {
33
- objectType: string;
34
- /**
35
- * Extra `findByUserId` query fields (e.g. `project_id`, `module_id`).
36
- * Empty / undefined values are omitted. `objectType` / pagination always win
37
- * if the same key appears here.
38
- */
39
- params?: Record<string, string | undefined>;
40
- findByUserIdUrl?: string;
41
- findBySessionIdUrl?: string;
42
- viewedUrl?: string;
43
- }
44
- export interface ChatCloudSkillsConfig {
45
- params?: ChatSkillPublishedSearchParams;
46
- skillParams?: ChatSkillPublishedSearchParams;
47
- sceneParams?: ChatSkillPublishedSearchParams;
48
- knowledgeParams?: ChatKnowledgeListParams;
49
- }
50
- export interface ChatCloudUploadConfig {
51
- cloudBaseUrl: string;
52
- dir?: string;
53
- limits?: Partial<ChatAttachmentLimits>;
54
- }
55
- /**
56
- * 企业内所有对话相关网络配置的单一入口:鉴权、对话接口、历史接口、技能接口、上传。
57
- * 通常只在 `ChatProvider`(或 `ChatApp`)配一次,经 context 下发给所有子组件。
58
- */
59
- export interface ChatCloudConfig {
60
- auth: ChatCloudAuth;
61
- /** 覆盖默认云网关前缀(本地 `/cloud-prod`,线上 `/cloud`)。留空走运行时自动解析。 */
62
- cloudPrefix?: string;
63
- /** 追加/覆盖 `auth` 映射出的请求头,二次合并(返回值覆盖同名字段)。 */
64
- headers?: () => HeadersInit | Promise<HeadersInit>;
65
- chat?: ChatCloudChatConfig;
66
- history?: ChatCloudHistoryConfig;
67
- skills?: ChatCloudSkillsConfig;
68
- upload?: ChatCloudUploadConfig;
69
- }
70
- export declare const DEFAULT_CHAT_API_URL = "/cloud/aibasicservices/Knowledge/record/check/agentChatKeep";
71
- export declare const DEFAULT_LAST_SESSION_URL = "/cloud/aibasicservices/Knowledge/record/check/lastSession";
72
- export declare const DEFAULT_RESUME_URL = "/cloud/aibasicservices/Knowledge/record/check/resume";
73
- export declare const DEFAULT_ABORT_URL = "/cloud/agentskillservice/agent/check/abort_session";
74
- export declare const DEFAULT_HISTORY_FIND_BY_USER_URL = "/cloud/aibasicservices/genericAgent/history/check/findByUserId";
75
- export declare const DEFAULT_HISTORY_FIND_BY_SESSION_URL = "/cloud/aibasicservices/genericAgent/history/check/findBySessionId";
76
- export declare const DEFAULT_HISTORY_VIEWED_URL = "/cloud/aibasicservices/genericAgent/history/viewed";
77
- /** `auth` → 请求头字段名,对齐 basicagentweb axios 拦截器现状。 */
78
- export declare function buildCloudAuthHeaders(cloud: ChatCloudConfig): Record<string, string>;
79
- /** `auth` 请求头与 `cloud.headers()` 的合并结果(后者覆盖同名字段)。 */
80
- export declare function resolveCloudHeaders(cloud: ChatCloudConfig): Promise<HeadersInit>;
81
- /**
82
- * 嵌套 `ChatProvider` 时的合并规则:`auth`/`chat`/`history`/`skills`/`upload` 各自浅合并,
83
- * 而不是子 Provider 传了 `cloud` 就整体替换父级配置。
84
- */
85
- export declare function mergeChatCloudConfig(base: ChatCloudConfig | undefined, override: ChatCloudConfig | undefined): ChatCloudConfig | undefined;
86
- /** 适配底层技能接口客户端(`skillApi.ts`)期望的扁平结构,供内部派生使用。 */
87
- export declare function toSkillFetchConfig(cloud: ChatCloudConfig): ChatSkillFetchConfig;
88
- /** 适配底层上传客户端(`qiniuUpload.ts`)期望的结构;鉴权头改由 `auth` + `headers()` 自动派生。 */
89
- export declare function toUploadConfig(cloud: ChatCloudConfig | undefined): ChatUploadConfig | undefined;
90
- //# sourceMappingURL=cloudConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cloudConfig.d.ts","sourceRoot":"","sources":["../../../src/components/chat/cloudConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACpB,8BAA8B,EAC/B,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAEtF,oHAAoH;AACpH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAE1D,iFAAiF;AACjF,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,KAAK,EAAE,OAAO,EAAE,CAAA;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAA;IAChG,yCAAyC;IACzC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gDAAgD;IAChD,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,uCAAuC;IACvC,YAAY,CAAC,EAAE,OAAO,CAA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ACrE,eAAO,MAAM,0BAA0B,uDAAuD,CAAA;AAE9F,oDAAoD;AACpD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOpF;AAcD,qDAAqD;AACrD,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAKtF;AAQD;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,eAAe,GAAG,SAAS,EACjC,QAAQ,EAAE,eAAe,GAAG,SAAS,GACpC,eAAe,GAAG,SAAS,CAY7B;AAED,iDAAiD;AACjD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,eAAe,GAAG,oBAAoB,CAY/E;AAED,wEAAwE;AACxE,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,GAAG,gBAAgB,GAAG,SAAS,CAU/F"}
@@ -1,14 +0,0 @@
1
- import { type SessionArtifact } from '../mdoc/sessionArtifacts';
2
- type __VLS_Props = {
3
- artifacts: readonly SessionArtifact[];
4
- };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- select: (item: SessionArtifact) => any;
7
- close: () => any;
8
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- onSelect?: ((item: SessionArtifact) => any) | undefined;
10
- onClose?: (() => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
- declare const _default: typeof __VLS_export;
13
- export default _default;
14
- //# sourceMappingURL=ArtifactList.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArtifactList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ArtifactList.vue"],"names":[],"mappings":"AA4IA,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAKtF,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,eAAe,EAAE,CAAA;CACtC,CAAC;AA+IF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}