@notebook-intelligence/notebook-intelligence 1.2.2
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/LICENSE +674 -0
- package/README.md +151 -0
- package/lib/api.d.ts +47 -0
- package/lib/api.js +246 -0
- package/lib/chat-sidebar.d.ts +80 -0
- package/lib/chat-sidebar.js +1277 -0
- package/lib/handler.d.ts +8 -0
- package/lib/handler.js +36 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +1078 -0
- package/lib/markdown-renderer.d.ts +10 -0
- package/lib/markdown-renderer.js +60 -0
- package/lib/tokens.d.ts +93 -0
- package/lib/tokens.js +51 -0
- package/lib/utils.d.ts +17 -0
- package/lib/utils.js +163 -0
- package/package.json +219 -0
- package/schema/plugin.json +42 -0
- package/src/api.ts +333 -0
- package/src/chat-sidebar.tsx +2171 -0
- package/src/handler.ts +51 -0
- package/src/index.ts +1398 -0
- package/src/markdown-renderer.tsx +140 -0
- package/src/svg.d.ts +4 -0
- package/src/tokens.ts +114 -0
- package/src/utils.ts +204 -0
- package/style/base.css +590 -0
- package/style/icons/copilot-warning.svg +1 -0
- package/style/icons/copilot.svg +1 -0
- package/style/icons/copy.svg +1 -0
- package/style/icons/sparkles.svg +1 -0
- package/style/index.css +1 -0
- package/style/index.js +1 -0
package/style/base.css
ADDED
|
@@ -0,0 +1,590 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) Mehmet Bektas <mbektasgh@outlook.com>
|
|
3
|
+
|
|
4
|
+
See the JupyterLab Developer Guide for useful CSS Patterns:
|
|
5
|
+
https://jupyterlab.readthedocs.io/en/stable/developer/css.html
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
.sidebar {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.sidebar-header {
|
|
15
|
+
height: 25px;
|
|
16
|
+
padding: 5px 10px;
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.sidebar-title {
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
flex-grow: 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sidebar-messages {
|
|
27
|
+
flex-grow: 1;
|
|
28
|
+
overflow-y: auto;
|
|
29
|
+
padding: 5px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.sidebar-user-input {
|
|
33
|
+
height: 80px;
|
|
34
|
+
padding: 5px;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
background-color: var(--jp-cell-editor-background);
|
|
38
|
+
border: 2px solid var(--jp-border-color1);
|
|
39
|
+
margin: 4px;
|
|
40
|
+
border-radius: 3px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* stylelint-disable */
|
|
44
|
+
.sidebar-user-input.generating {
|
|
45
|
+
background:
|
|
46
|
+
linear-gradient(
|
|
47
|
+
var(--jp-cell-editor-active-background),
|
|
48
|
+
var(--jp-cell-editor-active-background)
|
|
49
|
+
)
|
|
50
|
+
padding-box,
|
|
51
|
+
linear-gradient(var(--angle), #f1259c, #687aff) border-box;
|
|
52
|
+
animation: 4s rotate-gen linear infinite;
|
|
53
|
+
border: 2px solid #0000 !important;
|
|
54
|
+
}
|
|
55
|
+
/* stylelint-enable */
|
|
56
|
+
|
|
57
|
+
.sidebar-user-input:focus-within {
|
|
58
|
+
border-radius: 2px;
|
|
59
|
+
border-color: var(--jp-brand-color1);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.sidebar-user-input textarea {
|
|
63
|
+
width: 100%;
|
|
64
|
+
font-family: var(--jp-ui-font-family);
|
|
65
|
+
color: var(--jp-ui-font-color1);
|
|
66
|
+
outline: none;
|
|
67
|
+
border: none;
|
|
68
|
+
resize: none;
|
|
69
|
+
background: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.sidebar-user-input .user-input-context-row {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: row;
|
|
75
|
+
align-items: center;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.user-input-context {
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
border: 1px solid var(--jp-border-color1);
|
|
82
|
+
border-radius: 4px;
|
|
83
|
+
padding: 2px;
|
|
84
|
+
gap: 5px;
|
|
85
|
+
font-size: 11px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.user-input-context.off {
|
|
89
|
+
color: var(--jp-ui-font-color2);
|
|
90
|
+
font-style: italic;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.user-input-context-toggle {
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.user-input-context-toggle:hover {
|
|
98
|
+
background-color: var(--jp-layout-color2);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.user-input-context svg {
|
|
102
|
+
width: 16px;
|
|
103
|
+
height: 16px;
|
|
104
|
+
margin: -4px 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.sidebar-user-input .user-input-footer {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: row;
|
|
110
|
+
align-items: center;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.chat-message {
|
|
114
|
+
padding: 5px;
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.chat-message pre {
|
|
120
|
+
padding: 3px;
|
|
121
|
+
border-radius: 3px;
|
|
122
|
+
border: 1px solid var(--jp-border-color1);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
pre:has(.code-block-header) {
|
|
126
|
+
padding: 2px;
|
|
127
|
+
background-color: var(--jp-layout-color2);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.chat-message-header {
|
|
131
|
+
display: flex;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.chat-message-from {
|
|
135
|
+
display: flex;
|
|
136
|
+
align-items: center;
|
|
137
|
+
flex-grow: 1;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.chat-message-from-icon {
|
|
141
|
+
margin-right: 6px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.chat-message-from-icon img {
|
|
145
|
+
width: 18px;
|
|
146
|
+
height: 18px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.chat-message-from-icon-default.dark img {
|
|
150
|
+
filter: invert(100%);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.chat-message-from-title {
|
|
154
|
+
font-weight: bold;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.chat-message-from-progress {
|
|
158
|
+
padding-left: 10px;
|
|
159
|
+
flex-grow: 1;
|
|
160
|
+
font-size: 12px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.loading-ellipsis::after {
|
|
164
|
+
display: inline-block;
|
|
165
|
+
animation: animated-ellipsis steps(1, end) 1s infinite;
|
|
166
|
+
content: '';
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@keyframes animated-ellipsis {
|
|
170
|
+
0% {
|
|
171
|
+
content: '';
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
25% {
|
|
175
|
+
content: '.';
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
50% {
|
|
179
|
+
content: '..';
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
75% {
|
|
183
|
+
content: '...';
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
100% {
|
|
187
|
+
content: '';
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.chat-message-timestamp {
|
|
192
|
+
padding-left: 10px;
|
|
193
|
+
font-size: 11px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.chat-message-content p {
|
|
197
|
+
margin-block: 5px 5px;
|
|
198
|
+
line-height: 18px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.chat-message-content a {
|
|
202
|
+
text-decoration: underline;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.chat-message-copilot {
|
|
206
|
+
background-color: rgb(159 153 208 / 15%);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.copilot-generated-notebook-link {
|
|
210
|
+
text-decoration: underline;
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.sidebar-login-info {
|
|
215
|
+
padding: 5px;
|
|
216
|
+
display: flex;
|
|
217
|
+
flex-direction: column;
|
|
218
|
+
align-items: center;
|
|
219
|
+
gap: 10px;
|
|
220
|
+
line-height: 20px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.sidebar-login-info a {
|
|
224
|
+
text-decoration: underline;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.sidebar-greeting {
|
|
228
|
+
padding: 5px;
|
|
229
|
+
font-size: 14px;
|
|
230
|
+
line-height: 20px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.user-code-span {
|
|
234
|
+
cursor: pointer;
|
|
235
|
+
color: var(--jp-content-link-color);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.user-code-span:hover {
|
|
239
|
+
text-shadow: 1px 1px var(--jp-border-color1);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.user-code-span:active {
|
|
243
|
+
color: var(--jp-ui-font-color2);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.chat-response-html-frame {
|
|
247
|
+
margin: 5px 0;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.chat-response-html-frame-iframe {
|
|
251
|
+
width: 100%;
|
|
252
|
+
border: none;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.chat-response-anchor {
|
|
256
|
+
margin: 5px 0;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.chat-response-button {
|
|
260
|
+
margin: 5px 0;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.chat-confirmation-form {
|
|
264
|
+
border: 1px solid var(--jp-border-color1);
|
|
265
|
+
padding: 5px;
|
|
266
|
+
line-height: 20px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.user-input-autocomplete {
|
|
270
|
+
display: flex;
|
|
271
|
+
background-color: var(--jp-layout-color2);
|
|
272
|
+
border: 1px solid var(--jp-border-color1);
|
|
273
|
+
flex-direction: column;
|
|
274
|
+
position: absolute;
|
|
275
|
+
bottom: 92px;
|
|
276
|
+
left: 4px;
|
|
277
|
+
gap: 2px;
|
|
278
|
+
max-height: 300px;
|
|
279
|
+
overflow-y: auto;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.user-input-autocomplete-item {
|
|
283
|
+
cursor: pointer;
|
|
284
|
+
padding: 4px;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.user-input-autocomplete-item.selected {
|
|
288
|
+
background-color: var(--jp-layout-color1);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.code-block-header {
|
|
292
|
+
display: flex;
|
|
293
|
+
align-items: flex-end;
|
|
294
|
+
gap: 5px;
|
|
295
|
+
padding: 3px;
|
|
296
|
+
padding-bottom: 0;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.code-block-header-language {
|
|
300
|
+
flex-grow: 1;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.code-block-header-button {
|
|
304
|
+
display: flex;
|
|
305
|
+
align-items: center;
|
|
306
|
+
gap: 4px;
|
|
307
|
+
cursor: pointer;
|
|
308
|
+
padding: 2px;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.code-block-header-button:hover {
|
|
312
|
+
background-color: var(--jp-layout-color1);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.code-block-header-button:active {
|
|
316
|
+
background-color: var(--jp-layout-color3);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.copy-icon svg {
|
|
320
|
+
width: 12px;
|
|
321
|
+
height: 12px;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.send-button {
|
|
325
|
+
display: flex;
|
|
326
|
+
align-items: center;
|
|
327
|
+
cursor: pointer;
|
|
328
|
+
gap: 5px;
|
|
329
|
+
border: 1px solid var(--jp-border-color1);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.send-button:hover:enabled {
|
|
333
|
+
background-color: var(--jp-layout-color1);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.send-button svg {
|
|
337
|
+
width: 18px;
|
|
338
|
+
height: 18px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
button.send-button {
|
|
342
|
+
padding: 4px;
|
|
343
|
+
width: 24px;
|
|
344
|
+
height: 24px;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.inline-popover {
|
|
348
|
+
width: calc(100% - 6px);
|
|
349
|
+
height: calc(100% - 6px);
|
|
350
|
+
display: flex;
|
|
351
|
+
flex-direction: column;
|
|
352
|
+
position: absolute;
|
|
353
|
+
background-color: #f2f3ff;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
body[data-jp-theme-light='false'] .inline-popover {
|
|
357
|
+
background-color: #14162b;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.inline-prompt-container {
|
|
361
|
+
width: 100%;
|
|
362
|
+
height: 100%;
|
|
363
|
+
padding: 2px;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.monaco-editor-container {
|
|
367
|
+
width: 100%;
|
|
368
|
+
flex-grow: 1;
|
|
369
|
+
border: 1px solid var(--jp-border-color2);
|
|
370
|
+
border-left: none;
|
|
371
|
+
border-right: none;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.inline-popover-footer {
|
|
375
|
+
height: 32px;
|
|
376
|
+
width: calc(100% - 6px);
|
|
377
|
+
display: flex;
|
|
378
|
+
flex-direction: row;
|
|
379
|
+
gap: 5px;
|
|
380
|
+
align-items: center;
|
|
381
|
+
padding-left: 5px;
|
|
382
|
+
background-color: var(--jp-layout-color2);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.inline-prompt-container textarea {
|
|
386
|
+
width: calc(100% - 2px);
|
|
387
|
+
height: calc(100% - 2px);
|
|
388
|
+
font-family: var(--jp-ui-font-family);
|
|
389
|
+
color: var(--jp-ui-font-color1);
|
|
390
|
+
resize: none;
|
|
391
|
+
background: none;
|
|
392
|
+
outline: none;
|
|
393
|
+
border: none;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.inline-popover-footer .jp-Button {
|
|
397
|
+
height: 24px;
|
|
398
|
+
padding: 4px;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.github-copilot-status-bar {
|
|
402
|
+
color: var(--jp-inverse-layout-color2);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.github-copilot-status-bar svg {
|
|
406
|
+
margin-top: 4px;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.github-copilot-login-dialog {
|
|
410
|
+
display: flex;
|
|
411
|
+
flex-direction: column;
|
|
412
|
+
gap: 10px;
|
|
413
|
+
padding: 10px;
|
|
414
|
+
width: 500px;
|
|
415
|
+
line-height: 20px;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.github-copilot-login-status-text.logged-in {
|
|
419
|
+
color: var(--jp-brand-color1);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.config-dialog {
|
|
423
|
+
display: flex;
|
|
424
|
+
flex-direction: column;
|
|
425
|
+
width: 500px;
|
|
426
|
+
height: 100%;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.config-dialog-container .jp-Dialog-footer {
|
|
430
|
+
display: none;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.config-dialog-body {
|
|
434
|
+
display: flex;
|
|
435
|
+
flex-direction: column;
|
|
436
|
+
overflow-y: auto;
|
|
437
|
+
padding: 10px 0;
|
|
438
|
+
gap: 15px;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.model-config-section-row {
|
|
442
|
+
display: flex;
|
|
443
|
+
flex-direction: row;
|
|
444
|
+
gap: 10px;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.model-config-section-column {
|
|
448
|
+
display: flex;
|
|
449
|
+
flex-direction: column;
|
|
450
|
+
gap: 10px;
|
|
451
|
+
flex: 1 1 0px;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.config-dialog-footer {
|
|
455
|
+
height: 32px;
|
|
456
|
+
display: flex;
|
|
457
|
+
margin-top: 10px;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.config-dialog-body select.jp-mod-styled {
|
|
461
|
+
appearance: auto;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.config-dialog-body input.jp-mod-styled {
|
|
465
|
+
width: 100%;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.model-config-section {
|
|
469
|
+
display: flex;
|
|
470
|
+
flex-direction: column;
|
|
471
|
+
gap: 10px;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.form-field-row {
|
|
475
|
+
padding-left: 15px;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.form-field-description {
|
|
479
|
+
color: var(--jp-ui-font-color2);
|
|
480
|
+
margin-bottom: 5px;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.model-config-section-header {
|
|
484
|
+
font-weight: bold;
|
|
485
|
+
font-size: 15px;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.model-config-section-body {
|
|
489
|
+
padding-left: 10px;
|
|
490
|
+
display: flex;
|
|
491
|
+
flex-direction: column;
|
|
492
|
+
gap: 10px;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.inline-prompt-widget {
|
|
496
|
+
border-radius: 4px;
|
|
497
|
+
padding: 3px;
|
|
498
|
+
z-index: 1000;
|
|
499
|
+
box-shadow: rgba(90 76 191 / 30%) 0 0 10px 10px;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.inline-prompt-widget::before {
|
|
503
|
+
border-radius: 4px;
|
|
504
|
+
content: '';
|
|
505
|
+
background-image: conic-gradient(
|
|
506
|
+
from 270deg at 50% 50%,
|
|
507
|
+
#3b37ff 0deg,
|
|
508
|
+
#096bde 160deg,
|
|
509
|
+
#f1259c 175deg,
|
|
510
|
+
#7c3ffe 200deg,
|
|
511
|
+
#7c3ffe 350deg,
|
|
512
|
+
#3b37ff 360deg
|
|
513
|
+
);
|
|
514
|
+
/* stylelint-disable */
|
|
515
|
+
left: -1px;
|
|
516
|
+
right: -1px;
|
|
517
|
+
top: -1px;
|
|
518
|
+
bottom: -1px;
|
|
519
|
+
/* stylelint-enable */
|
|
520
|
+
position: absolute;
|
|
521
|
+
z-index: -1;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/* stylelint-disable */
|
|
525
|
+
.jp-InputArea-editor.generating {
|
|
526
|
+
background:
|
|
527
|
+
linear-gradient(
|
|
528
|
+
var(--jp-cell-editor-active-background),
|
|
529
|
+
var(--jp-cell-editor-active-background)
|
|
530
|
+
)
|
|
531
|
+
padding-box,
|
|
532
|
+
linear-gradient(var(--angle), #f1259c, #687aff) border-box;
|
|
533
|
+
animation: 4s rotate-gen linear infinite;
|
|
534
|
+
border: 2px solid #0000 !important;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
@keyframes rotate-gen {
|
|
538
|
+
to {
|
|
539
|
+
--angle: 360deg;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
@property --angle {
|
|
544
|
+
syntax: '<angle>';
|
|
545
|
+
initial-value: 0deg;
|
|
546
|
+
inherits: false;
|
|
547
|
+
}
|
|
548
|
+
/* stylelint-enable */
|
|
549
|
+
|
|
550
|
+
.ollama-warning-message {
|
|
551
|
+
color: var(--jp-warn-color0);
|
|
552
|
+
line-height: 20px;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.chat-reasoning-content-title {
|
|
556
|
+
margin-top: 5px;
|
|
557
|
+
display: flex;
|
|
558
|
+
align-items: center;
|
|
559
|
+
gap: 5px;
|
|
560
|
+
cursor: pointer;
|
|
561
|
+
color: var(--jp-ui-font-color2);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.chat-reasoning-content-text {
|
|
565
|
+
display: none;
|
|
566
|
+
margin: 5px;
|
|
567
|
+
padding: 0 5px;
|
|
568
|
+
border: 1px dashed var(--jp-border-color1);
|
|
569
|
+
border-radius: 5px;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.chat-reasoning-content .collapsed-icon {
|
|
573
|
+
display: inline;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.chat-reasoning-content .expanded-icon {
|
|
577
|
+
display: none;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.chat-reasoning-content.expanded .expanded-icon {
|
|
581
|
+
display: inline;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.chat-reasoning-content.expanded .chat-reasoning-content-text {
|
|
585
|
+
display: block;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.chat-reasoning-content.expanded .collapsed-icon {
|
|
589
|
+
display: none;
|
|
590
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M7.86079 1.76938C7.91028 1.8224 7.95663 1.87717 8 1.93356C8.04336 1.87717 8.08972 1.8224 8.13921 1.76938C8.82116 1.03872 9.87702 0.870477 11.0828 1.00446C12.3131 1.14115 13.2283 1.53222 13.8072 2.26504C14.3725 2.98056 14.5 3.87915 14.5 4.74987C14.5 5.21326 14.4653 5.67866 14.3451 6.10875C13.9119 5.84737 13.4429 5.63921 12.9473 5.49331C12.9809 5.29773 13 5.05436 13 4.74987C13 3.98422 12.8774 3.50781 12.6303 3.19493C12.3967 2.89934 11.9369 2.60859 10.9172 2.49528C9.87298 2.37926 9.42884 2.58602 9.23579 2.79286C9.03195 3.01126 8.87725 3.47123 8.99421 4.40684C9.05402 4.88539 9.16638 5.26766 9.32639 5.56486C8.14474 5.96456 7.12813 6.72232 6.40569 7.70903C5.92566 7.90339 5.37217 7.99987 4.75 7.99987C4.09776 7.99987 3.51325 7.91826 3.0231 7.70862L3 7.82413V12.0852C3.02086 12.0974 3.04268 12.1101 3.06543 12.1232C3.32878 12.2747 3.71567 12.4793 4.19916 12.6844C4.59656 12.853 5.05487 13.0201 5.56004 13.1588C5.77061 13.7867 6.08221 14.3683 6.47552 14.8842C5.35549 14.7159 4.37511 14.3885 3.61334 14.0653C3.06559 13.8329 2.62435 13.6 2.31739 13.4234C2.16373 13.335 2.0432 13.2604 1.95925 13.2066C1.91725 13.1797 1.88437 13.158 1.86101 13.1423L1.83316 13.1235L1.82736 13.1195L1.81237 13.1094C1.79971 13.1008 1.7818 13.0886 1.75941 13.0731C1.71466 13.0422 1.65169 12.9981 1.57651 12.9438C1.42716 12.836 1.2249 12.6844 1.01986 12.5135C0.819 12.3461 0.595113 12.1435 0.414932 11.9333C0.3249 11.8282 0.230849 11.7042 0.156031 11.567C0.0857453 11.4382 0 11.2394 1.90735e-06 10.9999L0 9.73594C0 8.69432 0.588507 7.74209 1.52017 7.27626L1.5865 7.24309L1.75413 6.40494C1.55295 5.89699 1.5 5.3219 1.5 4.74987C1.5 3.87915 1.62745 2.98056 2.19275 2.26504C2.77172 1.53222 3.68694 1.14115 4.91717 1.00446C6.12298 0.870477 7.17884 1.03872 7.86079 1.76938ZM6.76421 2.79286C6.57116 2.58602 6.12702 2.37926 5.08282 2.49528C4.06305 2.60859 3.60327 2.89934 3.36974 3.19493C3.12255 3.50781 3 3.98422 3 4.74987C3 5.54218 3.12905 5.92064 3.3082 6.12028C3.47045 6.30109 3.82768 6.49987 4.75 6.49987C5.60367 6.49987 6.08903 6.26426 6.38811 5.95894C6.70349 5.63698 6.91507 5.13264 7.00579 4.40684C7.12274 3.47123 6.96805 3.01126 6.76421 2.79286Z"/><path d="M8.49808 14.8106C9.25887 15.3994 10.2135 15.7499 11.25 15.7499C13.7353 15.7499 15.75 13.7352 15.75 11.2499C15.75 9.60081 14.863 8.15893 13.54 7.37532C12.8692 6.97796 12.0862 6.74987 11.25 6.74987C10.417 6.74987 9.63686 6.97621 8.96772 7.37074C7.64049 8.1533 6.75 9.59759 6.75 11.2499C6.75 12.0588 6.96343 12.8178 7.33706 13.4738C7.63262 13.9927 8.02841 14.4471 8.49808 14.8106ZM10.5 8.74987C10.5 8.33566 10.8366 7.99987 11.2508 7.99987C11.6647 8.00031 12 8.33593 12 8.74987V10.9999C12 11.4141 11.6642 11.7499 11.25 11.7499C10.8358 11.7499 10.5 11.4141 10.5 10.9999V8.74987ZM11.25 14.4999C10.6977 14.4999 10.25 14.0522 10.25 13.4999C10.25 12.9476 10.6977 12.4999 11.25 12.4999C11.8023 12.4999 12.25 12.9476 12.25 13.4999C12.25 14.0522 11.8023 14.4999 11.25 14.4999Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M6.25 9.016C6.66421 9.016 7 9.35089 7 9.76399V11.26C7 11.6731 6.66421 12.008 6.25 12.008C5.83579 12.008 5.5 11.6731 5.5 11.26V9.76399C5.5 9.35089 5.83579 9.016 6.25 9.016Z"/><path d="M10.5 9.76399C10.5 9.35089 10.1642 9.016 9.75 9.016C9.33579 9.016 9 9.35089 9 9.76399V11.26C9 11.6731 9.33579 12.008 9.75 12.008C10.1642 12.008 10.5 11.6731 10.5 11.26V9.76399Z"/><path d="M7.86079 1.80482C7.91028 1.8577 7.95663 1.91232 8 1.96856C8.04337 1.91232 8.08972 1.8577 8.13921 1.80482C8.82116 1.07611 9.87702 0.90832 11.0828 1.04194C12.3131 1.17827 13.2283 1.56829 13.8072 2.29916C14.3725 3.01276 14.5 3.90895 14.5 4.77735C14.5 5.34785 14.447 5.92141 14.2459 6.428L14.4135 7.26391L14.4798 7.29699C15.4115 7.76158 16 8.71126 16 9.7501V11.0107C16 11.2495 15.9143 11.4478 15.844 11.5763C15.7691 11.7131 15.6751 11.8368 15.5851 11.9416C15.4049 12.1512 15.181 12.3534 14.9801 12.5202C14.7751 12.6907 14.5728 12.8419 14.4235 12.9494C14.1842 13.1217 13.9389 13.2807 13.6826 13.4277C13.3756 13.6038 12.9344 13.8361 12.3867 14.0679C11.2956 14.5296 9.75604 15 8 15C6.24396 15 4.70442 14.5296 3.61334 14.0679C3.06559 13.8361 2.62435 13.6038 2.31739 13.4277C2.0611 13.2807 1.81581 13.1217 1.57651 12.9494C1.42716 12.8419 1.2249 12.6907 1.01986 12.5202C0.819 12.3534 0.595113 12.1512 0.414932 11.9416C0.3249 11.8368 0.230849 11.7131 0.156031 11.5763C0.0857453 11.4478 0 11.2495 1.90735e-06 11.0107L0 9.7501C0 8.71126 0.588507 7.76158 1.52017 7.29699L1.5865 7.26391L1.75413 6.42799C1.55295 5.9214 1.5 5.34785 1.5 4.77735C1.5 3.90895 1.62745 3.01276 2.19275 2.29916C2.77172 1.56829 3.68694 1.17827 4.91718 1.04194C6.12298 0.90832 7.17884 1.07611 7.86079 1.80482ZM3.0231 7.7282L3 7.8434V12.0931C3.02086 12.1053 3.04268 12.1179 3.06543 12.131C3.32878 12.2821 3.71567 12.4861 4.19916 12.6907C5.17058 13.1017 6.50604 13.504 8 13.504C9.49396 13.504 10.8294 13.1017 11.8008 12.6907C12.2843 12.4861 12.6712 12.2821 12.9346 12.131C12.9573 12.1179 12.9791 12.1053 13 12.0931V7.8434L12.9769 7.7282C12.4867 7.93728 11.9022 8.01867 11.25 8.01867C10.1037 8.01867 9.19051 7.69201 8.54033 7.03004C8.3213 6.80703 8.14352 6.55741 8 6.28924C7.85648 6.55741 7.6787 6.80703 7.45967 7.03004C6.80949 7.69201 5.89633 8.01867 4.75 8.01867C4.09776 8.01867 3.51325 7.93728 3.0231 7.7282ZM6.76421 2.82557C6.57116 2.61928 6.12702 2.41307 5.08282 2.52878C4.06306 2.64179 3.60328 2.93176 3.36975 3.22656C3.12255 3.53861 3 4.01374 3 4.77735C3 5.56754 3.12905 5.94499 3.3082 6.1441C3.47045 6.32443 3.82768 6.52267 4.75 6.52267C5.60367 6.52267 6.08903 6.28769 6.38811 5.98319C6.70349 5.66209 6.91507 5.1591 7.00579 4.43524C7.12274 3.50212 6.96805 3.04338 6.76421 2.82557ZM9.23579 2.82557C9.03195 3.04338 8.87726 3.50212 8.99421 4.43524C9.08493 5.1591 9.29651 5.66209 9.61189 5.98319C9.91097 6.28769 10.3963 6.52267 11.25 6.52267C12.1723 6.52267 12.5295 6.32443 12.6918 6.1441C12.871 5.94499 13 5.56754 13 4.77735C13 4.01374 12.8775 3.53861 12.6303 3.22656C12.3967 2.93176 11.9369 2.64179 10.9172 2.52878C9.87298 2.41307 9.42884 2.61928 9.23579 2.82557Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path fill="currentColor" d="M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l140.1 0L400 115.9 400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-204.1c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-32-48 0 0 32c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l32 0 0-48-32 0z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="var(--jp-inverse-layout-color3)"><path d="M 5.398 10.807 C 5.574 10.931 5.785 10.998 6 10.997 C 6.216 10.998 6.427 10.93 6.602 10.804 C 6.78 10.674 6.915 10.494 6.989 10.286 L 7.436 8.913 C 7.551 8.569 7.744 8.256 8 7.999 C 8.257 7.743 8.569 7.549 8.913 7.434 L 10.304 6.983 C 10.456 6.929 10.594 6.84 10.706 6.724 C 10.817 6.608 10.901 6.467 10.949 6.313 C 10.998 6.159 11.01 5.996 10.985 5.837 C 10.96 5.677 10.898 5.526 10.804 5.394 C 10.67 5.208 10.479 5.071 10.26 5.003 L 8.885 4.556 C 8.541 4.442 8.228 4.249 7.971 3.993 C 7.714 3.736 7.52 3.424 7.405 3.079 L 6.953 1.691 C 6.881 1.489 6.748 1.314 6.571 1.191 C 6.439 1.098 6.286 1.036 6.125 1.012 C 5.965 0.987 5.801 1.001 5.646 1.051 C 5.492 1.101 5.351 1.187 5.236 1.301 C 5.12 1.415 5.033 1.555 4.98 1.708 L 4.523 3.108 C 4.409 3.443 4.22 3.748 3.97 3.999 C 3.721 4.25 3.418 4.441 3.083 4.557 L 1.692 5.005 C 1.541 5.06 1.404 5.149 1.292 5.265 C 1.18 5.381 1.097 5.521 1.048 5.675 C 1 5.829 0.988 5.992 1.013 6.151 C 1.038 6.31 1.099 6.462 1.192 6.593 C 1.32 6.773 1.501 6.908 1.709 6.979 L 3.083 7.424 C 3.524 7.571 3.91 7.845 4.193 8.212 C 4.356 8.423 4.481 8.66 4.564 8.912 L 5.016 10.303 C 5.088 10.507 5.222 10.683 5.398 10.807 Z M 11.535 14.849 C 11.671 14.946 11.834 14.997 12 14.997 C 12.165 14.997 12.326 14.946 12.461 14.851 C 12.601 14.753 12.706 14.613 12.761 14.451 L 13.009 13.689 C 13.063 13.531 13.152 13.387 13.269 13.268 C 13.387 13.15 13.531 13.061 13.689 13.009 L 14.461 12.757 C 14.619 12.703 14.756 12.6 14.852 12.464 C 14.926 12.361 14.974 12.242 14.992 12.117 C 15.011 11.992 14.999 11.865 14.959 11.745 C 14.918 11.625 14.85 11.516 14.76 11.428 C 14.669 11.34 14.559 11.274 14.438 11.236 L 13.674 10.987 C 13.516 10.935 13.372 10.846 13.254 10.729 C 13.136 10.611 13.047 10.467 12.994 10.309 L 12.742 9.536 C 12.689 9.379 12.586 9.242 12.449 9.146 C 12.347 9.073 12.23 9.025 12.106 9.006 C 11.982 8.987 11.855 8.998 11.736 9.037 C 11.616 9.076 11.508 9.142 11.419 9.231 C 11.33 9.319 11.264 9.427 11.224 9.546 L 10.977 10.308 C 10.925 10.466 10.838 10.61 10.721 10.728 C 10.607 10.845 10.467 10.934 10.312 10.987 L 9.539 11.239 C 9.38 11.293 9.242 11.396 9.145 11.533 C 9.047 11.669 8.995 11.833 8.996 12.001 C 8.997 12.169 9.051 12.333 9.15 12.468 C 9.249 12.604 9.388 12.705 9.547 12.757 L 10.31 13.004 C 10.469 13.058 10.614 13.147 10.732 13.265 C 10.851 13.384 10.939 13.528 10.99 13.687 L 11.243 14.461 C 11.298 14.618 11.4 14.753 11.535 14.849 Z"/></svg>
|
package/style/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('base.css');
|
package/style/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './base.css';
|