@next-bricks/ai-portal 0.25.2 → 0.26.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/dist/bricks.json +15 -15
- package/dist/chunks/3624.6e77e49c.js +2 -0
- package/dist/chunks/3624.6e77e49c.js.map +1 -0
- package/dist/chunks/3800.3dccb1f9.js +2 -0
- package/dist/chunks/3800.3dccb1f9.js.map +1 -0
- package/dist/chunks/6175.18e07f1a.js +3 -0
- package/dist/chunks/6175.18e07f1a.js.map +1 -0
- package/dist/chunks/{chat-stream.ee882aeb.js → chat-stream.20c70bf3.js} +2 -2
- package/dist/chunks/{chat-stream.ee882aeb.js.map → chat-stream.20c70bf3.js.map} +1 -1
- package/dist/chunks/cruise-canvas.3fdcba20.js +2 -0
- package/dist/chunks/cruise-canvas.3fdcba20.js.map +1 -0
- package/dist/chunks/{elevo-logo.c20b185a.js → elevo-logo.f5f72599.js} +2 -2
- package/dist/chunks/{elevo-logo.c20b185a.js.map → elevo-logo.f5f72599.js.map} +1 -1
- package/dist/chunks/elevo-sidebar.1761f230.js +3 -0
- package/dist/chunks/elevo-sidebar.1761f230.js.map +1 -0
- package/dist/chunks/{main.2a65e7bb.js → main.b7095cdd.js} +2 -2
- package/dist/chunks/{main.2a65e7bb.js.map → main.b7095cdd.js.map} +1 -1
- package/dist/examples.json +10 -10
- package/dist/images/e47076cc.png +0 -0
- package/dist/{index.9c3a15cf.js → index.fc03ce86.js} +2 -2
- package/dist/{index.9c3a15cf.js.map → index.fc03ce86.js.map} +1 -1
- package/dist/manifest.json +82 -78
- package/dist/types.json +159 -152
- package/dist-types/cruise-canvas/index.d.ts +2 -0
- package/dist-types/shared/JsxEditor/JsxEditor.d.ts +2 -0
- package/dist-types/shared/TaskContext.d.ts +7 -1
- package/package.json +4 -3
- package/dist/chunks/3732.26be1e16.js +0 -2
- package/dist/chunks/3732.26be1e16.js.map +0 -1
- package/dist/chunks/6175.85d46564.js +0 -3
- package/dist/chunks/6175.85d46564.js.map +0 -1
- package/dist/chunks/7813.332ffbbe.js +0 -2
- package/dist/chunks/7813.332ffbbe.js.map +0 -1
- package/dist/chunks/cruise-canvas.e201cbc8.js +0 -2
- package/dist/chunks/cruise-canvas.e201cbc8.js.map +0 -1
- package/dist/chunks/elevo-sidebar.21a91aef.js +0 -3
- package/dist/chunks/elevo-sidebar.21a91aef.js.map +0 -1
- package/dist/images/7385e5f5.png +0 -0
- /package/dist/chunks/{6175.85d46564.js.LICENSE.txt → 6175.18e07f1a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{elevo-sidebar.21a91aef.js.LICENSE.txt → elevo-sidebar.1761f230.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -103,11 +103,6 @@
|
|
|
103
103
|
"events": [],
|
|
104
104
|
"methods": []
|
|
105
105
|
},
|
|
106
|
-
"ai-portal.home-container": {
|
|
107
|
-
"properties": [],
|
|
108
|
-
"events": [],
|
|
109
|
-
"methods": []
|
|
110
|
-
},
|
|
111
106
|
"ai-portal.elevo-logo": {
|
|
112
107
|
"properties": [],
|
|
113
108
|
"events": [],
|
|
@@ -176,94 +171,10 @@
|
|
|
176
171
|
}
|
|
177
172
|
]
|
|
178
173
|
},
|
|
179
|
-
"ai-portal.
|
|
180
|
-
"properties": [
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
"annotation": {
|
|
184
|
-
"type": "keyword",
|
|
185
|
-
"value": "boolean"
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"name": "placeholder",
|
|
190
|
-
"annotation": {
|
|
191
|
-
"type": "keyword",
|
|
192
|
-
"value": "string"
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"name": "autoFocus",
|
|
197
|
-
"annotation": {
|
|
198
|
-
"type": "keyword",
|
|
199
|
-
"value": "boolean"
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"name": "suggestions",
|
|
204
|
-
"annotation": {
|
|
205
|
-
"type": "array",
|
|
206
|
-
"elementType": {
|
|
207
|
-
"type": "reference",
|
|
208
|
-
"typeName": {
|
|
209
|
-
"type": "identifier",
|
|
210
|
-
"name": "Suggestion"
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"name": "suggestionsLabel",
|
|
217
|
-
"annotation": {
|
|
218
|
-
"type": "keyword",
|
|
219
|
-
"value": "string"
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
],
|
|
223
|
-
"events": [
|
|
224
|
-
{
|
|
225
|
-
"name": "message.submit",
|
|
226
|
-
"detail": {
|
|
227
|
-
"annotation": {
|
|
228
|
-
"type": "keyword",
|
|
229
|
-
"value": "string"
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
],
|
|
234
|
-
"methods": [],
|
|
235
|
-
"types": [
|
|
236
|
-
{
|
|
237
|
-
"type": "interface",
|
|
238
|
-
"name": "Suggestion",
|
|
239
|
-
"body": [
|
|
240
|
-
{
|
|
241
|
-
"type": "propertySignature",
|
|
242
|
-
"key": {
|
|
243
|
-
"type": "identifier",
|
|
244
|
-
"name": "title"
|
|
245
|
-
},
|
|
246
|
-
"annotation": {
|
|
247
|
-
"type": "keyword",
|
|
248
|
-
"value": "string"
|
|
249
|
-
},
|
|
250
|
-
"computed": false
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"type": "propertySignature",
|
|
254
|
-
"key": {
|
|
255
|
-
"type": "identifier",
|
|
256
|
-
"name": "content"
|
|
257
|
-
},
|
|
258
|
-
"annotation": {
|
|
259
|
-
"type": "keyword",
|
|
260
|
-
"value": "string"
|
|
261
|
-
},
|
|
262
|
-
"computed": false
|
|
263
|
-
}
|
|
264
|
-
]
|
|
265
|
-
}
|
|
266
|
-
]
|
|
174
|
+
"ai-portal.home-container": {
|
|
175
|
+
"properties": [],
|
|
176
|
+
"events": [],
|
|
177
|
+
"methods": []
|
|
267
178
|
},
|
|
268
179
|
"ai-portal.chat-history": {
|
|
269
180
|
"properties": [
|
|
@@ -447,7 +358,7 @@
|
|
|
447
358
|
}
|
|
448
359
|
]
|
|
449
360
|
},
|
|
450
|
-
"ai-portal.
|
|
361
|
+
"ai-portal.show-cases": {
|
|
451
362
|
"properties": [
|
|
452
363
|
{
|
|
453
364
|
"name": "list",
|
|
@@ -457,10 +368,17 @@
|
|
|
457
368
|
"type": "reference",
|
|
458
369
|
"typeName": {
|
|
459
370
|
"type": "identifier",
|
|
460
|
-
"name": "
|
|
371
|
+
"name": "ShowCase"
|
|
461
372
|
}
|
|
462
373
|
}
|
|
463
374
|
}
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"name": "taskUrlTemplate",
|
|
378
|
+
"annotation": {
|
|
379
|
+
"type": "keyword",
|
|
380
|
+
"value": "string"
|
|
381
|
+
}
|
|
464
382
|
}
|
|
465
383
|
],
|
|
466
384
|
"events": [],
|
|
@@ -468,13 +386,13 @@
|
|
|
468
386
|
"types": [
|
|
469
387
|
{
|
|
470
388
|
"type": "interface",
|
|
471
|
-
"name": "
|
|
389
|
+
"name": "ShowCase",
|
|
472
390
|
"body": [
|
|
473
391
|
{
|
|
474
392
|
"type": "propertySignature",
|
|
475
393
|
"key": {
|
|
476
394
|
"type": "identifier",
|
|
477
|
-
"name": "
|
|
395
|
+
"name": "taskId"
|
|
478
396
|
},
|
|
479
397
|
"annotation": {
|
|
480
398
|
"type": "keyword",
|
|
@@ -498,7 +416,7 @@
|
|
|
498
416
|
"type": "propertySignature",
|
|
499
417
|
"key": {
|
|
500
418
|
"type": "identifier",
|
|
501
|
-
"name": "
|
|
419
|
+
"name": "summary"
|
|
502
420
|
},
|
|
503
421
|
"annotation": {
|
|
504
422
|
"type": "keyword",
|
|
@@ -510,44 +428,7 @@
|
|
|
510
428
|
"type": "propertySignature",
|
|
511
429
|
"key": {
|
|
512
430
|
"type": "identifier",
|
|
513
|
-
"name": "
|
|
514
|
-
},
|
|
515
|
-
"annotation": {
|
|
516
|
-
"type": "reference",
|
|
517
|
-
"typeName": {
|
|
518
|
-
"type": "identifier",
|
|
519
|
-
"name": "GeneralIconProps"
|
|
520
|
-
}
|
|
521
|
-
},
|
|
522
|
-
"optional": true,
|
|
523
|
-
"computed": false
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
"type": "propertySignature",
|
|
527
|
-
"key": {
|
|
528
|
-
"type": "identifier",
|
|
529
|
-
"name": "server"
|
|
530
|
-
},
|
|
531
|
-
"annotation": {
|
|
532
|
-
"type": "reference",
|
|
533
|
-
"typeName": {
|
|
534
|
-
"type": "identifier",
|
|
535
|
-
"name": "McpServer"
|
|
536
|
-
}
|
|
537
|
-
},
|
|
538
|
-
"computed": false
|
|
539
|
-
}
|
|
540
|
-
]
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
"type": "interface",
|
|
544
|
-
"name": "McpServer",
|
|
545
|
-
"body": [
|
|
546
|
-
{
|
|
547
|
-
"type": "propertySignature",
|
|
548
|
-
"key": {
|
|
549
|
-
"type": "identifier",
|
|
550
|
-
"name": "id"
|
|
431
|
+
"name": "scenario"
|
|
551
432
|
},
|
|
552
433
|
"annotation": {
|
|
553
434
|
"type": "keyword",
|
|
@@ -559,19 +440,20 @@
|
|
|
559
440
|
"type": "propertySignature",
|
|
560
441
|
"key": {
|
|
561
442
|
"type": "identifier",
|
|
562
|
-
"name": "
|
|
443
|
+
"name": "thumbUrl"
|
|
563
444
|
},
|
|
564
445
|
"annotation": {
|
|
565
446
|
"type": "keyword",
|
|
566
447
|
"value": "string"
|
|
567
448
|
},
|
|
449
|
+
"optional": true,
|
|
568
450
|
"computed": false
|
|
569
451
|
}
|
|
570
452
|
]
|
|
571
453
|
}
|
|
572
454
|
]
|
|
573
455
|
},
|
|
574
|
-
"ai-portal.
|
|
456
|
+
"ai-portal.mcp-tools": {
|
|
575
457
|
"properties": [
|
|
576
458
|
{
|
|
577
459
|
"name": "list",
|
|
@@ -581,17 +463,10 @@
|
|
|
581
463
|
"type": "reference",
|
|
582
464
|
"typeName": {
|
|
583
465
|
"type": "identifier",
|
|
584
|
-
"name": "
|
|
466
|
+
"name": "McpTool"
|
|
585
467
|
}
|
|
586
468
|
}
|
|
587
469
|
}
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
"name": "taskUrlTemplate",
|
|
591
|
-
"annotation": {
|
|
592
|
-
"type": "keyword",
|
|
593
|
-
"value": "string"
|
|
594
|
-
}
|
|
595
470
|
}
|
|
596
471
|
],
|
|
597
472
|
"events": [],
|
|
@@ -599,13 +474,13 @@
|
|
|
599
474
|
"types": [
|
|
600
475
|
{
|
|
601
476
|
"type": "interface",
|
|
602
|
-
"name": "
|
|
477
|
+
"name": "McpTool",
|
|
603
478
|
"body": [
|
|
604
479
|
{
|
|
605
480
|
"type": "propertySignature",
|
|
606
481
|
"key": {
|
|
607
482
|
"type": "identifier",
|
|
608
|
-
"name": "
|
|
483
|
+
"name": "name"
|
|
609
484
|
},
|
|
610
485
|
"annotation": {
|
|
611
486
|
"type": "keyword",
|
|
@@ -629,7 +504,7 @@
|
|
|
629
504
|
"type": "propertySignature",
|
|
630
505
|
"key": {
|
|
631
506
|
"type": "identifier",
|
|
632
|
-
"name": "
|
|
507
|
+
"name": "description"
|
|
633
508
|
},
|
|
634
509
|
"annotation": {
|
|
635
510
|
"type": "keyword",
|
|
@@ -641,7 +516,44 @@
|
|
|
641
516
|
"type": "propertySignature",
|
|
642
517
|
"key": {
|
|
643
518
|
"type": "identifier",
|
|
644
|
-
"name": "
|
|
519
|
+
"name": "icon"
|
|
520
|
+
},
|
|
521
|
+
"annotation": {
|
|
522
|
+
"type": "reference",
|
|
523
|
+
"typeName": {
|
|
524
|
+
"type": "identifier",
|
|
525
|
+
"name": "GeneralIconProps"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"optional": true,
|
|
529
|
+
"computed": false
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"type": "propertySignature",
|
|
533
|
+
"key": {
|
|
534
|
+
"type": "identifier",
|
|
535
|
+
"name": "server"
|
|
536
|
+
},
|
|
537
|
+
"annotation": {
|
|
538
|
+
"type": "reference",
|
|
539
|
+
"typeName": {
|
|
540
|
+
"type": "identifier",
|
|
541
|
+
"name": "McpServer"
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
"computed": false
|
|
545
|
+
}
|
|
546
|
+
]
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"type": "interface",
|
|
550
|
+
"name": "McpServer",
|
|
551
|
+
"body": [
|
|
552
|
+
{
|
|
553
|
+
"type": "propertySignature",
|
|
554
|
+
"key": {
|
|
555
|
+
"type": "identifier",
|
|
556
|
+
"name": "id"
|
|
645
557
|
},
|
|
646
558
|
"annotation": {
|
|
647
559
|
"type": "keyword",
|
|
@@ -653,13 +565,12 @@
|
|
|
653
565
|
"type": "propertySignature",
|
|
654
566
|
"key": {
|
|
655
567
|
"type": "identifier",
|
|
656
|
-
"name": "
|
|
568
|
+
"name": "name"
|
|
657
569
|
},
|
|
658
570
|
"annotation": {
|
|
659
571
|
"type": "keyword",
|
|
660
572
|
"value": "string"
|
|
661
573
|
},
|
|
662
|
-
"optional": true,
|
|
663
574
|
"computed": false
|
|
664
575
|
}
|
|
665
576
|
]
|
|
@@ -834,6 +745,95 @@
|
|
|
834
745
|
}
|
|
835
746
|
]
|
|
836
747
|
},
|
|
748
|
+
"ai-portal.chat-box": {
|
|
749
|
+
"properties": [
|
|
750
|
+
{
|
|
751
|
+
"name": "disabled",
|
|
752
|
+
"annotation": {
|
|
753
|
+
"type": "keyword",
|
|
754
|
+
"value": "boolean"
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"name": "placeholder",
|
|
759
|
+
"annotation": {
|
|
760
|
+
"type": "keyword",
|
|
761
|
+
"value": "string"
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"name": "autoFocus",
|
|
766
|
+
"annotation": {
|
|
767
|
+
"type": "keyword",
|
|
768
|
+
"value": "boolean"
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"name": "suggestions",
|
|
773
|
+
"annotation": {
|
|
774
|
+
"type": "array",
|
|
775
|
+
"elementType": {
|
|
776
|
+
"type": "reference",
|
|
777
|
+
"typeName": {
|
|
778
|
+
"type": "identifier",
|
|
779
|
+
"name": "Suggestion"
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"name": "suggestionsLabel",
|
|
786
|
+
"annotation": {
|
|
787
|
+
"type": "keyword",
|
|
788
|
+
"value": "string"
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
],
|
|
792
|
+
"events": [
|
|
793
|
+
{
|
|
794
|
+
"name": "message.submit",
|
|
795
|
+
"detail": {
|
|
796
|
+
"annotation": {
|
|
797
|
+
"type": "keyword",
|
|
798
|
+
"value": "string"
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
],
|
|
803
|
+
"methods": [],
|
|
804
|
+
"types": [
|
|
805
|
+
{
|
|
806
|
+
"type": "interface",
|
|
807
|
+
"name": "Suggestion",
|
|
808
|
+
"body": [
|
|
809
|
+
{
|
|
810
|
+
"type": "propertySignature",
|
|
811
|
+
"key": {
|
|
812
|
+
"type": "identifier",
|
|
813
|
+
"name": "title"
|
|
814
|
+
},
|
|
815
|
+
"annotation": {
|
|
816
|
+
"type": "keyword",
|
|
817
|
+
"value": "string"
|
|
818
|
+
},
|
|
819
|
+
"computed": false
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"type": "propertySignature",
|
|
823
|
+
"key": {
|
|
824
|
+
"type": "identifier",
|
|
825
|
+
"name": "content"
|
|
826
|
+
},
|
|
827
|
+
"annotation": {
|
|
828
|
+
"type": "keyword",
|
|
829
|
+
"value": "string"
|
|
830
|
+
},
|
|
831
|
+
"computed": false
|
|
832
|
+
}
|
|
833
|
+
]
|
|
834
|
+
}
|
|
835
|
+
]
|
|
836
|
+
},
|
|
837
837
|
"ai-portal.elevo-sidebar": {
|
|
838
838
|
"properties": [
|
|
839
839
|
{
|
|
@@ -1390,6 +1390,13 @@
|
|
|
1390
1390
|
"type": "keyword",
|
|
1391
1391
|
"value": "boolean"
|
|
1392
1392
|
}
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"name": "showJsxEditor",
|
|
1396
|
+
"annotation": {
|
|
1397
|
+
"type": "keyword",
|
|
1398
|
+
"value": "boolean"
|
|
1399
|
+
}
|
|
1393
1400
|
}
|
|
1394
1401
|
],
|
|
1395
1402
|
"events": [
|
|
@@ -12,6 +12,7 @@ export interface CruiseCanvasProps {
|
|
|
12
12
|
showHiddenJobs?: boolean;
|
|
13
13
|
showFeedback?: boolean;
|
|
14
14
|
showUiSwitch?: boolean;
|
|
15
|
+
showJsxEditor?: boolean;
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
18
|
* 构件 `ai-portal.cruise-canvas`
|
|
@@ -34,6 +35,7 @@ export declare class CruiseCanvas extends ReactNextElement implements CruiseCanv
|
|
|
34
35
|
accessor showFeedback: boolean | undefined;
|
|
35
36
|
accessor showUiSwitch: boolean | undefined;
|
|
36
37
|
accessor hideMermaid: boolean | undefined;
|
|
38
|
+
accessor showJsxEditor: boolean | undefined;
|
|
37
39
|
resumed(): void;
|
|
38
40
|
feedbackSubmitDone(): void;
|
|
39
41
|
feedbackSubmitFailed(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Dispatch } from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ConstructResult } from "@next-shared/jsx-storyboard";
|
|
3
|
+
import type { FeedbackDetail, Job } from "../cruise-canvas/interfaces";
|
|
3
4
|
export interface TaskContextValue {
|
|
4
5
|
humanInput: (jobId: string, input: string) => void;
|
|
5
6
|
onShare: () => void;
|
|
@@ -15,5 +16,10 @@ export interface TaskContextValue {
|
|
|
15
16
|
submittedFeedback: boolean;
|
|
16
17
|
onSubmitFeedback: (detail: FeedbackDetail) => void;
|
|
17
18
|
setShowFeedback: Dispatch<React.SetStateAction<boolean>>;
|
|
19
|
+
showJsxEditor?: boolean;
|
|
20
|
+
activeJsxEditorJob?: Job;
|
|
21
|
+
setActiveJsxEditorJob?: Dispatch<React.SetStateAction<Job | undefined>>;
|
|
22
|
+
manuallyUpdatedViews?: Map<string, ConstructResult>;
|
|
23
|
+
updateView?: (jobId: string, view: ConstructResult) => void;
|
|
18
24
|
}
|
|
19
25
|
export declare const TaskContext: React.Context<TaskContextValue>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/ai-portal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"@next-bricks/basic": "*",
|
|
44
44
|
"@next-bricks/diagram": "*",
|
|
45
45
|
"@next-bricks/mini-chart": "*",
|
|
46
|
-
"@next-bricks/presentational": "*"
|
|
46
|
+
"@next-bricks/presentational": "*",
|
|
47
|
+
"@next-bricks/vs": "*"
|
|
47
48
|
},
|
|
48
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "af170fa7f6a35fd6ee07e0dcc41a02d4323a8d4c"
|
|
49
50
|
}
|