@shytv/ai-chart 0.0.0-stage → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -2
- package/dist/App.d.ts +1 -0
- package/dist/chat/ChatApp.d.ts +5 -0
- package/dist/chat/ChatRuntimeProvider.d.ts +9 -0
- package/dist/components/attachment-state.d.ts +10 -0
- package/dist/components/attachment.aui.d.ts +4 -0
- package/dist/components/collapsible-root.d.ts +4 -0
- package/dist/components/conversation-list.d.ts +5 -0
- package/dist/components/file.d.ts +49 -0
- package/dist/components/follow-up-suggestions.aui.d.ts +2 -0
- package/dist/components/href.d.ts +8 -0
- package/dist/components/image.d.ts +55 -0
- package/dist/components/markdown-text.d.ts +8 -0
- package/dist/components/media-player.d.ts +16 -0
- package/dist/components/reasoning.aui.d.ts +22 -0
- package/dist/components/reasoning.d.ts +25 -0
- package/dist/components/surfaces.d.ts +37 -0
- package/dist/components/thread.aui.d.ts +34 -0
- package/dist/components/tool-fallback.aui.d.ts +46 -0
- package/dist/components/tool-group.aui.d.ts +34 -0
- package/dist/components/tooltip-icon-button.d.ts +7 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/dialog.d.ts +17 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/tooltip.d.ts +6 -0
- package/dist/components/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/favicon.svg +1 -0
- package/dist/hooks/use-attachment-src.d.ts +1 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +7 -0
- package/dist/icons.svg +24 -0
- package/dist/index.cjs +117 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +42000 -0
- package/dist/lib/composables/monarchTokens.d.ts +203 -0
- package/dist/lib/composables/tools.d.ts +3 -0
- package/dist/lib/composables/v6/monarchTokens.d.ts +205 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/main.d.ts +0 -0
- package/dist/services/chat-adapter.d.ts +39 -0
- package/dist/services/conversation-adapter.d.ts +51 -0
- package/dist/style.css +2 -0
- package/package.json +70 -4
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { editor } from 'monaco-editor';
|
|
2
|
+
export declare const LANGAGE_NAME = "mineScript";
|
|
3
|
+
export declare const COLORS: {
|
|
4
|
+
"color-white": string;
|
|
5
|
+
"color-black": string;
|
|
6
|
+
"color-transparent": string;
|
|
7
|
+
"color-cold-gray-50": string;
|
|
8
|
+
"color-cold-gray-100": string;
|
|
9
|
+
"color-cold-gray-150": string;
|
|
10
|
+
"color-cold-gray-200": string;
|
|
11
|
+
"color-cold-gray-250": string;
|
|
12
|
+
"color-cold-gray-300": string;
|
|
13
|
+
"color-cold-gray-350": string;
|
|
14
|
+
"color-cold-gray-400": string;
|
|
15
|
+
"color-cold-gray-450": string;
|
|
16
|
+
"color-cold-gray-500": string;
|
|
17
|
+
"color-cold-gray-550": string;
|
|
18
|
+
"color-cold-gray-600": string;
|
|
19
|
+
"color-cold-gray-650": string;
|
|
20
|
+
"color-cold-gray-700": string;
|
|
21
|
+
"color-cold-gray-750": string;
|
|
22
|
+
"color-cold-gray-800": string;
|
|
23
|
+
"color-cold-gray-850": string;
|
|
24
|
+
"color-cold-gray-900": string;
|
|
25
|
+
"color-cold-gray-950": string;
|
|
26
|
+
"color-ripe-red-50": string;
|
|
27
|
+
"color-ripe-red-100": string;
|
|
28
|
+
"color-ripe-red-200": string;
|
|
29
|
+
"color-ripe-red-300": string;
|
|
30
|
+
"color-ripe-red-400": string;
|
|
31
|
+
"color-ripe-red-500": string;
|
|
32
|
+
"color-ripe-red-600": string;
|
|
33
|
+
"color-ripe-red-700": string;
|
|
34
|
+
"color-ripe-red-800": string;
|
|
35
|
+
"color-ripe-red-900": string;
|
|
36
|
+
"color-ripe-red-a100": string;
|
|
37
|
+
"color-ripe-red-a200": string;
|
|
38
|
+
"color-ripe-red-a400": string;
|
|
39
|
+
"color-ripe-red-a600": string;
|
|
40
|
+
"color-ripe-red-a700": string;
|
|
41
|
+
"color-ripe-red-a800": string;
|
|
42
|
+
"color-ripe-red-a900": string;
|
|
43
|
+
"color-tan-orange-50": string;
|
|
44
|
+
"color-tan-orange-100": string;
|
|
45
|
+
"color-tan-orange-200": string;
|
|
46
|
+
"color-tan-orange-300": string;
|
|
47
|
+
"color-tan-orange-400": string;
|
|
48
|
+
"color-tan-orange-500": string;
|
|
49
|
+
"color-tan-orange-600": string;
|
|
50
|
+
"color-tan-orange-700": string;
|
|
51
|
+
"color-tan-orange-800": string;
|
|
52
|
+
"color-tan-orange-900": string;
|
|
53
|
+
"color-tan-orange-a200": string;
|
|
54
|
+
"color-tan-orange-a400": string;
|
|
55
|
+
"color-tan-orange-a600": string;
|
|
56
|
+
"color-tan-orange-a700": string;
|
|
57
|
+
"color-tan-orange-a800": string;
|
|
58
|
+
"color-tan-orange-a900": string;
|
|
59
|
+
"color-iguana-green-100": string;
|
|
60
|
+
"color-iguana-green-200": string;
|
|
61
|
+
"color-iguana-green-300": string;
|
|
62
|
+
"color-iguana-green-400": string;
|
|
63
|
+
"color-iguana-green-500": string;
|
|
64
|
+
"color-iguana-green-600": string;
|
|
65
|
+
"color-iguana-green-700": string;
|
|
66
|
+
"color-iguana-green-800": string;
|
|
67
|
+
"color-iguana-green-900": string;
|
|
68
|
+
"color-iguana-green-a700": string;
|
|
69
|
+
"color-banana-yellow-100": string;
|
|
70
|
+
"color-banana-yellow-200": string;
|
|
71
|
+
"color-banana-yellow-300": string;
|
|
72
|
+
"color-banana-yellow-400": string;
|
|
73
|
+
"color-banana-yellow-500": string;
|
|
74
|
+
"color-banana-yellow-600": string;
|
|
75
|
+
"color-banana-yellow-700": string;
|
|
76
|
+
"color-banana-yellow-800": string;
|
|
77
|
+
"color-banana-yellow-900": string;
|
|
78
|
+
"color-banana-yellow-a400": string;
|
|
79
|
+
"color-banana-yellow-a700": string;
|
|
80
|
+
"color-tv-blue-50": string;
|
|
81
|
+
"color-tv-blue-100": string;
|
|
82
|
+
"color-tv-blue-200": string;
|
|
83
|
+
"color-tv-blue-300": string;
|
|
84
|
+
"color-tv-blue-400": string;
|
|
85
|
+
"color-tv-blue-500": string;
|
|
86
|
+
"color-tv-blue-600": string;
|
|
87
|
+
"color-tv-blue-700": string;
|
|
88
|
+
"color-tv-blue-800": string;
|
|
89
|
+
"color-tv-blue-900": string;
|
|
90
|
+
"color-tv-blue-a100": string;
|
|
91
|
+
"color-tv-blue-a200": string;
|
|
92
|
+
"color-tv-blue-a400": string;
|
|
93
|
+
"color-tv-blue-a600": string;
|
|
94
|
+
"color-tv-blue-a700": string;
|
|
95
|
+
"color-tv-blue-a800": string;
|
|
96
|
+
"color-tv-blue-a900": string;
|
|
97
|
+
"color-deep-blue-50": string;
|
|
98
|
+
"color-deep-blue-100": string;
|
|
99
|
+
"color-deep-blue-200": string;
|
|
100
|
+
"color-deep-blue-300": string;
|
|
101
|
+
"color-deep-blue-400": string;
|
|
102
|
+
"color-deep-blue-500": string;
|
|
103
|
+
"color-deep-blue-700": string;
|
|
104
|
+
"color-deep-blue-800": string;
|
|
105
|
+
"color-deep-blue-900": string;
|
|
106
|
+
"color-deep-blue-a100": string;
|
|
107
|
+
"color-deep-blue-a200": string;
|
|
108
|
+
"color-deep-blue-a400": string;
|
|
109
|
+
"color-deep-blue-a700": string;
|
|
110
|
+
"color-minty-green-50": string;
|
|
111
|
+
"color-minty-green-100": string;
|
|
112
|
+
"color-minty-green-200": string;
|
|
113
|
+
"color-minty-green-300": string;
|
|
114
|
+
"color-minty-green-400": string;
|
|
115
|
+
"color-minty-green-500": string;
|
|
116
|
+
"color-minty-green-600": string;
|
|
117
|
+
"color-minty-green-700": string;
|
|
118
|
+
"color-minty-green-800": string;
|
|
119
|
+
"color-minty-green-900": string;
|
|
120
|
+
"color-minty-green-a400": string;
|
|
121
|
+
"color-minty-green-a600": string;
|
|
122
|
+
"color-minty-green-a700": string;
|
|
123
|
+
"color-minty-green-a800": string;
|
|
124
|
+
"color-minty-green-a900": string;
|
|
125
|
+
"color-grapes-purple-50": string;
|
|
126
|
+
"color-grapes-purple-100": string;
|
|
127
|
+
"color-grapes-purple-200": string;
|
|
128
|
+
"color-grapes-purple-300": string;
|
|
129
|
+
"color-grapes-purple-400": string;
|
|
130
|
+
"color-grapes-purple-500": string;
|
|
131
|
+
"color-grapes-purple-600": string;
|
|
132
|
+
"color-grapes-purple-700": string;
|
|
133
|
+
"color-grapes-purple-800": string;
|
|
134
|
+
"color-grapes-purple-900": string;
|
|
135
|
+
"color-grapes-purple-a100": string;
|
|
136
|
+
"color-grapes-purple-a200": string;
|
|
137
|
+
"color-grapes-purple-a400": string;
|
|
138
|
+
"color-grapes-purple-a700": string;
|
|
139
|
+
"color-berry-pink-100": string;
|
|
140
|
+
"color-berry-pink-200": string;
|
|
141
|
+
"color-berry-pink-300": string;
|
|
142
|
+
"color-berry-pink-400": string;
|
|
143
|
+
"color-berry-pink-500": string;
|
|
144
|
+
"color-berry-pink-600": string;
|
|
145
|
+
"color-berry-pink-700": string;
|
|
146
|
+
"color-berry-pink-800": string;
|
|
147
|
+
"color-berry-pink-900": string;
|
|
148
|
+
"color-berry-pink-a100": string;
|
|
149
|
+
"color-berry-pink-a200": string;
|
|
150
|
+
"color-berry-pink-a400": string;
|
|
151
|
+
"color-sky-blue-100": string;
|
|
152
|
+
"color-sky-blue-200": string;
|
|
153
|
+
"color-sky-blue-300": string;
|
|
154
|
+
"color-sky-blue-400": string;
|
|
155
|
+
"color-sky-blue-500": string;
|
|
156
|
+
"color-sky-blue-600": string;
|
|
157
|
+
"color-sky-blue-700": string;
|
|
158
|
+
"color-sky-blue-800": string;
|
|
159
|
+
"color-sky-blue-900": string;
|
|
160
|
+
"color-sky-blue-a400": string;
|
|
161
|
+
"color-sky-blue-a700": string;
|
|
162
|
+
"color-deep-blue-600": string;
|
|
163
|
+
"color-forest-green-50": string;
|
|
164
|
+
"color-forest-green-100": string;
|
|
165
|
+
"color-forest-green-200": string;
|
|
166
|
+
"color-forest-green-300": string;
|
|
167
|
+
"color-forest-green-400": string;
|
|
168
|
+
"color-forest-green-500": string;
|
|
169
|
+
"color-forest-green-600": string;
|
|
170
|
+
"color-forest-green-700": string;
|
|
171
|
+
"color-forest-green-800": string;
|
|
172
|
+
"color-forest-green-900": string;
|
|
173
|
+
"color-facebook": string;
|
|
174
|
+
"color-deep-facebook": string;
|
|
175
|
+
"color-twitter": string;
|
|
176
|
+
"color-deep-twitter": string;
|
|
177
|
+
"color-youtube": string;
|
|
178
|
+
"color-linkedin": string;
|
|
179
|
+
"color-seeking-alpha-brand": string;
|
|
180
|
+
};
|
|
181
|
+
export declare const VS: editor.IStandaloneThemeData;
|
|
182
|
+
export declare const VS_DARK: editor.IStandaloneThemeData;
|
|
183
|
+
export declare const QQSTRING_REG: RegExp;
|
|
184
|
+
export declare const QSTRING_REG: RegExp;
|
|
185
|
+
export declare const DEFAULT_COLORS: {
|
|
186
|
+
"color.aqua": string;
|
|
187
|
+
"color.black": string;
|
|
188
|
+
"color.blue": string;
|
|
189
|
+
"color.fuchsia": string;
|
|
190
|
+
"color.gray": string;
|
|
191
|
+
"color.green": string;
|
|
192
|
+
"color.lime": string;
|
|
193
|
+
"color.maroon": string;
|
|
194
|
+
"color.navy": string;
|
|
195
|
+
"color.olive": string;
|
|
196
|
+
"color.orange": string;
|
|
197
|
+
"color.purple": string;
|
|
198
|
+
"color.red": string;
|
|
199
|
+
"color.silver": string;
|
|
200
|
+
"color.teal": string;
|
|
201
|
+
"color.white": string;
|
|
202
|
+
"color.yellow": string;
|
|
203
|
+
};
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { languages, editor } from 'monaco-editor';
|
|
2
|
+
export declare const LANGAGE_NAME = "tccScript";
|
|
3
|
+
export declare const LANGUAGE_MONARCH_TOKENS: languages.IMonarchLanguage;
|
|
4
|
+
export declare const CONFIGURATION: languages.LanguageConfiguration;
|
|
5
|
+
export declare const COLORS: {
|
|
6
|
+
"color-white": string;
|
|
7
|
+
"color-black": string;
|
|
8
|
+
"color-transparent": string;
|
|
9
|
+
"color-cold-gray-50": string;
|
|
10
|
+
"color-cold-gray-100": string;
|
|
11
|
+
"color-cold-gray-150": string;
|
|
12
|
+
"color-cold-gray-200": string;
|
|
13
|
+
"color-cold-gray-250": string;
|
|
14
|
+
"color-cold-gray-300": string;
|
|
15
|
+
"color-cold-gray-350": string;
|
|
16
|
+
"color-cold-gray-400": string;
|
|
17
|
+
"color-cold-gray-450": string;
|
|
18
|
+
"color-cold-gray-500": string;
|
|
19
|
+
"color-cold-gray-550": string;
|
|
20
|
+
"color-cold-gray-600": string;
|
|
21
|
+
"color-cold-gray-650": string;
|
|
22
|
+
"color-cold-gray-700": string;
|
|
23
|
+
"color-cold-gray-750": string;
|
|
24
|
+
"color-cold-gray-800": string;
|
|
25
|
+
"color-cold-gray-850": string;
|
|
26
|
+
"color-cold-gray-900": string;
|
|
27
|
+
"color-cold-gray-950": string;
|
|
28
|
+
"color-ripe-red-50": string;
|
|
29
|
+
"color-ripe-red-100": string;
|
|
30
|
+
"color-ripe-red-200": string;
|
|
31
|
+
"color-ripe-red-300": string;
|
|
32
|
+
"color-ripe-red-400": string;
|
|
33
|
+
"color-ripe-red-500": string;
|
|
34
|
+
"color-ripe-red-600": string;
|
|
35
|
+
"color-ripe-red-700": string;
|
|
36
|
+
"color-ripe-red-800": string;
|
|
37
|
+
"color-ripe-red-900": string;
|
|
38
|
+
"color-ripe-red-a100": string;
|
|
39
|
+
"color-ripe-red-a200": string;
|
|
40
|
+
"color-ripe-red-a400": string;
|
|
41
|
+
"color-ripe-red-a600": string;
|
|
42
|
+
"color-ripe-red-a700": string;
|
|
43
|
+
"color-ripe-red-a800": string;
|
|
44
|
+
"color-ripe-red-a900": string;
|
|
45
|
+
"color-tan-orange-50": string;
|
|
46
|
+
"color-tan-orange-100": string;
|
|
47
|
+
"color-tan-orange-200": string;
|
|
48
|
+
"color-tan-orange-300": string;
|
|
49
|
+
"color-tan-orange-400": string;
|
|
50
|
+
"color-tan-orange-500": string;
|
|
51
|
+
"color-tan-orange-600": string;
|
|
52
|
+
"color-tan-orange-700": string;
|
|
53
|
+
"color-tan-orange-800": string;
|
|
54
|
+
"color-tan-orange-900": string;
|
|
55
|
+
"color-tan-orange-a200": string;
|
|
56
|
+
"color-tan-orange-a400": string;
|
|
57
|
+
"color-tan-orange-a600": string;
|
|
58
|
+
"color-tan-orange-a700": string;
|
|
59
|
+
"color-tan-orange-a800": string;
|
|
60
|
+
"color-tan-orange-a900": string;
|
|
61
|
+
"color-iguana-green-100": string;
|
|
62
|
+
"color-iguana-green-200": string;
|
|
63
|
+
"color-iguana-green-300": string;
|
|
64
|
+
"color-iguana-green-400": string;
|
|
65
|
+
"color-iguana-green-500": string;
|
|
66
|
+
"color-iguana-green-600": string;
|
|
67
|
+
"color-iguana-green-700": string;
|
|
68
|
+
"color-iguana-green-800": string;
|
|
69
|
+
"color-iguana-green-900": string;
|
|
70
|
+
"color-iguana-green-a700": string;
|
|
71
|
+
"color-banana-yellow-100": string;
|
|
72
|
+
"color-banana-yellow-200": string;
|
|
73
|
+
"color-banana-yellow-300": string;
|
|
74
|
+
"color-banana-yellow-400": string;
|
|
75
|
+
"color-banana-yellow-500": string;
|
|
76
|
+
"color-banana-yellow-600": string;
|
|
77
|
+
"color-banana-yellow-700": string;
|
|
78
|
+
"color-banana-yellow-800": string;
|
|
79
|
+
"color-banana-yellow-900": string;
|
|
80
|
+
"color-banana-yellow-a400": string;
|
|
81
|
+
"color-banana-yellow-a700": string;
|
|
82
|
+
"color-tv-blue-50": string;
|
|
83
|
+
"color-tv-blue-100": string;
|
|
84
|
+
"color-tv-blue-200": string;
|
|
85
|
+
"color-tv-blue-300": string;
|
|
86
|
+
"color-tv-blue-400": string;
|
|
87
|
+
"color-tv-blue-500": string;
|
|
88
|
+
"color-tv-blue-600": string;
|
|
89
|
+
"color-tv-blue-700": string;
|
|
90
|
+
"color-tv-blue-800": string;
|
|
91
|
+
"color-tv-blue-900": string;
|
|
92
|
+
"color-tv-blue-a100": string;
|
|
93
|
+
"color-tv-blue-a200": string;
|
|
94
|
+
"color-tv-blue-a400": string;
|
|
95
|
+
"color-tv-blue-a600": string;
|
|
96
|
+
"color-tv-blue-a700": string;
|
|
97
|
+
"color-tv-blue-a800": string;
|
|
98
|
+
"color-tv-blue-a900": string;
|
|
99
|
+
"color-deep-blue-50": string;
|
|
100
|
+
"color-deep-blue-100": string;
|
|
101
|
+
"color-deep-blue-200": string;
|
|
102
|
+
"color-deep-blue-300": string;
|
|
103
|
+
"color-deep-blue-400": string;
|
|
104
|
+
"color-deep-blue-500": string;
|
|
105
|
+
"color-deep-blue-700": string;
|
|
106
|
+
"color-deep-blue-800": string;
|
|
107
|
+
"color-deep-blue-900": string;
|
|
108
|
+
"color-deep-blue-a100": string;
|
|
109
|
+
"color-deep-blue-a200": string;
|
|
110
|
+
"color-deep-blue-a400": string;
|
|
111
|
+
"color-deep-blue-a700": string;
|
|
112
|
+
"color-minty-green-50": string;
|
|
113
|
+
"color-minty-green-100": string;
|
|
114
|
+
"color-minty-green-200": string;
|
|
115
|
+
"color-minty-green-300": string;
|
|
116
|
+
"color-minty-green-400": string;
|
|
117
|
+
"color-minty-green-500": string;
|
|
118
|
+
"color-minty-green-600": string;
|
|
119
|
+
"color-minty-green-700": string;
|
|
120
|
+
"color-minty-green-800": string;
|
|
121
|
+
"color-minty-green-900": string;
|
|
122
|
+
"color-minty-green-a400": string;
|
|
123
|
+
"color-minty-green-a600": string;
|
|
124
|
+
"color-minty-green-a700": string;
|
|
125
|
+
"color-minty-green-a800": string;
|
|
126
|
+
"color-minty-green-a900": string;
|
|
127
|
+
"color-grapes-purple-50": string;
|
|
128
|
+
"color-grapes-purple-100": string;
|
|
129
|
+
"color-grapes-purple-200": string;
|
|
130
|
+
"color-grapes-purple-300": string;
|
|
131
|
+
"color-grapes-purple-400": string;
|
|
132
|
+
"color-grapes-purple-500": string;
|
|
133
|
+
"color-grapes-purple-600": string;
|
|
134
|
+
"color-grapes-purple-700": string;
|
|
135
|
+
"color-grapes-purple-800": string;
|
|
136
|
+
"color-grapes-purple-900": string;
|
|
137
|
+
"color-grapes-purple-a100": string;
|
|
138
|
+
"color-grapes-purple-a200": string;
|
|
139
|
+
"color-grapes-purple-a400": string;
|
|
140
|
+
"color-grapes-purple-a700": string;
|
|
141
|
+
"color-berry-pink-100": string;
|
|
142
|
+
"color-berry-pink-200": string;
|
|
143
|
+
"color-berry-pink-300": string;
|
|
144
|
+
"color-berry-pink-400": string;
|
|
145
|
+
"color-berry-pink-500": string;
|
|
146
|
+
"color-berry-pink-600": string;
|
|
147
|
+
"color-berry-pink-700": string;
|
|
148
|
+
"color-berry-pink-800": string;
|
|
149
|
+
"color-berry-pink-900": string;
|
|
150
|
+
"color-berry-pink-a100": string;
|
|
151
|
+
"color-berry-pink-a200": string;
|
|
152
|
+
"color-berry-pink-a400": string;
|
|
153
|
+
"color-sky-blue-100": string;
|
|
154
|
+
"color-sky-blue-200": string;
|
|
155
|
+
"color-sky-blue-300": string;
|
|
156
|
+
"color-sky-blue-400": string;
|
|
157
|
+
"color-sky-blue-500": string;
|
|
158
|
+
"color-sky-blue-600": string;
|
|
159
|
+
"color-sky-blue-700": string;
|
|
160
|
+
"color-sky-blue-800": string;
|
|
161
|
+
"color-sky-blue-900": string;
|
|
162
|
+
"color-sky-blue-a400": string;
|
|
163
|
+
"color-sky-blue-a700": string;
|
|
164
|
+
"color-deep-blue-600": string;
|
|
165
|
+
"color-forest-green-50": string;
|
|
166
|
+
"color-forest-green-100": string;
|
|
167
|
+
"color-forest-green-200": string;
|
|
168
|
+
"color-forest-green-300": string;
|
|
169
|
+
"color-forest-green-400": string;
|
|
170
|
+
"color-forest-green-500": string;
|
|
171
|
+
"color-forest-green-600": string;
|
|
172
|
+
"color-forest-green-700": string;
|
|
173
|
+
"color-forest-green-800": string;
|
|
174
|
+
"color-forest-green-900": string;
|
|
175
|
+
"color-facebook": string;
|
|
176
|
+
"color-deep-facebook": string;
|
|
177
|
+
"color-twitter": string;
|
|
178
|
+
"color-deep-twitter": string;
|
|
179
|
+
"color-youtube": string;
|
|
180
|
+
"color-linkedin": string;
|
|
181
|
+
"color-seeking-alpha-brand": string;
|
|
182
|
+
};
|
|
183
|
+
export declare const VS: editor.IStandaloneThemeData;
|
|
184
|
+
export declare const VS_DARK: editor.IStandaloneThemeData;
|
|
185
|
+
export declare const QQSTRING_REG: RegExp;
|
|
186
|
+
export declare const QSTRING_REG: RegExp;
|
|
187
|
+
export declare const DEFAULT_COLORS: {
|
|
188
|
+
"color.aqua": string;
|
|
189
|
+
"color.black": string;
|
|
190
|
+
"color.blue": string;
|
|
191
|
+
"color.fuchsia": string;
|
|
192
|
+
"color.gray": string;
|
|
193
|
+
"color.green": string;
|
|
194
|
+
"color.lime": string;
|
|
195
|
+
"color.maroon": string;
|
|
196
|
+
"color.navy": string;
|
|
197
|
+
"color.olive": string;
|
|
198
|
+
"color.orange": string;
|
|
199
|
+
"color.purple": string;
|
|
200
|
+
"color.red": string;
|
|
201
|
+
"color.silver": string;
|
|
202
|
+
"color.teal": string;
|
|
203
|
+
"color.white": string;
|
|
204
|
+
"color.yellow": string;
|
|
205
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cn } from 'cn';
|
package/dist/main.d.ts
ADDED
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ThreadAssistantMessagePart } from '@assistant-ui/react';
|
|
2
|
+
interface ChatAdapterOptions {
|
|
3
|
+
getConversationId: () => string;
|
|
4
|
+
onConversationCreated: (id: string) => void;
|
|
5
|
+
onCustomEvent?: (event: SSEEvent) => void;
|
|
6
|
+
onEvent?: (event: SSEEvent) => void;
|
|
7
|
+
}
|
|
8
|
+
export interface SSEEvent {
|
|
9
|
+
type: string;
|
|
10
|
+
data?: {
|
|
11
|
+
id?: string;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
payload?: {
|
|
15
|
+
id?: string;
|
|
16
|
+
text?: string;
|
|
17
|
+
error?: string;
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
interface ChatInputMessage {
|
|
22
|
+
id: string;
|
|
23
|
+
content: readonly {
|
|
24
|
+
type: string;
|
|
25
|
+
text?: string;
|
|
26
|
+
}[];
|
|
27
|
+
}
|
|
28
|
+
interface StreamChatOptions extends ChatAdapterOptions {
|
|
29
|
+
userMessage: ChatInputMessage;
|
|
30
|
+
abortSignal: AbortSignal;
|
|
31
|
+
token: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 执行 SSE 请求。
|
|
35
|
+
*
|
|
36
|
+
* 每次 yield 返回当前完整的 assistant 消息 parts。
|
|
37
|
+
*/
|
|
38
|
+
export declare function streamChat({ userMessage, abortSignal, token, getConversationId, onConversationCreated, onCustomEvent, onEvent, }: StreamChatOptions): AsyncGenerator<ThreadAssistantMessagePart[]>;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { RemoteThreadListAdapter, ThreadMessage } from '@assistant-ui/react';
|
|
2
|
+
export declare function getCachedConversationId(): string;
|
|
3
|
+
export declare function setCachedConversationId(id?: string): void;
|
|
4
|
+
export declare function clearCachedConversationId(): void;
|
|
5
|
+
/**
|
|
6
|
+
* 后端首次创建会话后,绑定真实 ID
|
|
7
|
+
*/
|
|
8
|
+
export declare function bindCreatedConversation(draftId: string, conversationId: string): void;
|
|
9
|
+
interface ConversationMessage {
|
|
10
|
+
id: string;
|
|
11
|
+
role: "user" | "assistant";
|
|
12
|
+
content: string;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
}
|
|
15
|
+
interface MessageResponse {
|
|
16
|
+
success: boolean;
|
|
17
|
+
conversationId: string;
|
|
18
|
+
messages: ConversationMessage[];
|
|
19
|
+
pagination: {
|
|
20
|
+
total: number;
|
|
21
|
+
page: number;
|
|
22
|
+
perPage: number;
|
|
23
|
+
hasMore: boolean;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare function setAccessToken(token: string): void;
|
|
27
|
+
/**
|
|
28
|
+
* 转换历史消息
|
|
29
|
+
*/
|
|
30
|
+
export declare function toThreadMessage(item: ConversationMessage): ThreadMessage;
|
|
31
|
+
/**
|
|
32
|
+
* 获取当前会话的真实后端 ID
|
|
33
|
+
*/
|
|
34
|
+
export declare function getRealConversationId(state: {
|
|
35
|
+
id: string;
|
|
36
|
+
remoteId?: string;
|
|
37
|
+
custom?: Record<string, unknown>;
|
|
38
|
+
}): string | undefined;
|
|
39
|
+
export declare function isDraftConversationId(id: string): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 加载会话历史消息
|
|
42
|
+
*
|
|
43
|
+
* page 使用后端接口的分页规则。
|
|
44
|
+
* 每页数量由调用方决定,默认 20 条。
|
|
45
|
+
*/
|
|
46
|
+
export declare function loadConversationMessages(conversationId: string, page: number, perPage?: number): Promise<MessageResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* 会话列表适配器
|
|
49
|
+
*/
|
|
50
|
+
export declare const conversationAdapter: RemoteThreadListAdapter;
|
|
51
|
+
export {};
|