@next-bricks/ai-portal 0.28.3 → 0.28.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.
- package/dist/bricks.json +20 -20
- package/dist/chunks/4820.d2d81591.js +2 -0
- package/dist/chunks/4820.d2d81591.js.map +1 -0
- package/dist/chunks/{981.6d4b40e0.js → 981.797494af.js} +2 -2
- package/dist/chunks/981.797494af.js.map +1 -0
- package/dist/chunks/{main.c5fa4c02.js → main.87948978.js} +2 -2
- package/dist/chunks/{main.c5fa4c02.js.map → main.87948978.js.map} +1 -1
- package/dist/examples.json +15 -15
- package/dist/{index.948a4099.js → index.acbbaa55.js} +2 -2
- package/dist/{index.948a4099.js.map → index.acbbaa55.js.map} +1 -1
- package/dist/manifest.json +110 -110
- package/dist/types.json +140 -140
- package/dist-types/cruise-canvas/useLayout.d.ts +3 -3
- package/package.json +2 -2
- package/dist/chunks/4820.5a60f14a.js +0 -2
- package/dist/chunks/4820.5a60f14a.js.map +0 -1
- package/dist/chunks/981.6d4b40e0.js.map +0 -1
package/dist/types.json
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"ai-portal.home-container": {
|
|
3
|
-
"properties": [],
|
|
4
|
-
"events": [],
|
|
5
|
-
"methods": []
|
|
6
|
-
},
|
|
7
2
|
"ai-portal.stat-with-mini-chart": {
|
|
8
3
|
"properties": [
|
|
9
4
|
{
|
|
@@ -176,6 +171,11 @@
|
|
|
176
171
|
}
|
|
177
172
|
]
|
|
178
173
|
},
|
|
174
|
+
"ai-portal.home-container": {
|
|
175
|
+
"properties": [],
|
|
176
|
+
"events": [],
|
|
177
|
+
"methods": []
|
|
178
|
+
},
|
|
179
179
|
"ai-portal.save-request-store": {
|
|
180
180
|
"type": "provider",
|
|
181
181
|
"params": [
|
|
@@ -475,72 +475,34 @@
|
|
|
475
475
|
}
|
|
476
476
|
]
|
|
477
477
|
},
|
|
478
|
-
"ai-portal.
|
|
478
|
+
"ai-portal.mcp-tools": {
|
|
479
479
|
"properties": [
|
|
480
480
|
{
|
|
481
|
-
"name": "
|
|
482
|
-
"annotation": {
|
|
483
|
-
"type": "keyword",
|
|
484
|
-
"value": "boolean"
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
"name": "placeholder",
|
|
489
|
-
"annotation": {
|
|
490
|
-
"type": "keyword",
|
|
491
|
-
"value": "string"
|
|
492
|
-
}
|
|
493
|
-
},
|
|
494
|
-
{
|
|
495
|
-
"name": "autoFocus",
|
|
496
|
-
"annotation": {
|
|
497
|
-
"type": "keyword",
|
|
498
|
-
"value": "boolean"
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
"name": "suggestions",
|
|
481
|
+
"name": "list",
|
|
503
482
|
"annotation": {
|
|
504
483
|
"type": "array",
|
|
505
484
|
"elementType": {
|
|
506
485
|
"type": "reference",
|
|
507
486
|
"typeName": {
|
|
508
487
|
"type": "identifier",
|
|
509
|
-
"name": "
|
|
488
|
+
"name": "McpTool"
|
|
510
489
|
}
|
|
511
490
|
}
|
|
512
491
|
}
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"name": "suggestionsLabel",
|
|
516
|
-
"annotation": {
|
|
517
|
-
"type": "keyword",
|
|
518
|
-
"value": "string"
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
],
|
|
522
|
-
"events": [
|
|
523
|
-
{
|
|
524
|
-
"name": "message.submit",
|
|
525
|
-
"detail": {
|
|
526
|
-
"annotation": {
|
|
527
|
-
"type": "keyword",
|
|
528
|
-
"value": "string"
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
492
|
}
|
|
532
493
|
],
|
|
494
|
+
"events": [],
|
|
533
495
|
"methods": [],
|
|
534
496
|
"types": [
|
|
535
497
|
{
|
|
536
498
|
"type": "interface",
|
|
537
|
-
"name": "
|
|
499
|
+
"name": "McpTool",
|
|
538
500
|
"body": [
|
|
539
501
|
{
|
|
540
502
|
"type": "propertySignature",
|
|
541
503
|
"key": {
|
|
542
504
|
"type": "identifier",
|
|
543
|
-
"name": "
|
|
505
|
+
"name": "name"
|
|
544
506
|
},
|
|
545
507
|
"annotation": {
|
|
546
508
|
"type": "keyword",
|
|
@@ -552,53 +514,19 @@
|
|
|
552
514
|
"type": "propertySignature",
|
|
553
515
|
"key": {
|
|
554
516
|
"type": "identifier",
|
|
555
|
-
"name": "
|
|
517
|
+
"name": "title"
|
|
556
518
|
},
|
|
557
519
|
"annotation": {
|
|
558
520
|
"type": "keyword",
|
|
559
521
|
"value": "string"
|
|
560
522
|
},
|
|
561
523
|
"computed": false
|
|
562
|
-
}
|
|
563
|
-
]
|
|
564
|
-
}
|
|
565
|
-
]
|
|
566
|
-
},
|
|
567
|
-
"ai-portal.show-cases": {
|
|
568
|
-
"properties": [
|
|
569
|
-
{
|
|
570
|
-
"name": "list",
|
|
571
|
-
"annotation": {
|
|
572
|
-
"type": "array",
|
|
573
|
-
"elementType": {
|
|
574
|
-
"type": "reference",
|
|
575
|
-
"typeName": {
|
|
576
|
-
"type": "identifier",
|
|
577
|
-
"name": "ShowCase"
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
"name": "taskUrlTemplate",
|
|
584
|
-
"annotation": {
|
|
585
|
-
"type": "keyword",
|
|
586
|
-
"value": "string"
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
],
|
|
590
|
-
"events": [],
|
|
591
|
-
"methods": [],
|
|
592
|
-
"types": [
|
|
593
|
-
{
|
|
594
|
-
"type": "interface",
|
|
595
|
-
"name": "ShowCase",
|
|
596
|
-
"body": [
|
|
524
|
+
},
|
|
597
525
|
{
|
|
598
526
|
"type": "propertySignature",
|
|
599
527
|
"key": {
|
|
600
528
|
"type": "identifier",
|
|
601
|
-
"name": "
|
|
529
|
+
"name": "description"
|
|
602
530
|
},
|
|
603
531
|
"annotation": {
|
|
604
532
|
"type": "keyword",
|
|
@@ -610,31 +538,44 @@
|
|
|
610
538
|
"type": "propertySignature",
|
|
611
539
|
"key": {
|
|
612
540
|
"type": "identifier",
|
|
613
|
-
"name": "
|
|
541
|
+
"name": "icon"
|
|
614
542
|
},
|
|
615
543
|
"annotation": {
|
|
616
|
-
"type": "
|
|
617
|
-
"
|
|
544
|
+
"type": "reference",
|
|
545
|
+
"typeName": {
|
|
546
|
+
"type": "identifier",
|
|
547
|
+
"name": "GeneralIconProps"
|
|
548
|
+
}
|
|
618
549
|
},
|
|
550
|
+
"optional": true,
|
|
619
551
|
"computed": false
|
|
620
552
|
},
|
|
621
553
|
{
|
|
622
554
|
"type": "propertySignature",
|
|
623
555
|
"key": {
|
|
624
556
|
"type": "identifier",
|
|
625
|
-
"name": "
|
|
557
|
+
"name": "server"
|
|
626
558
|
},
|
|
627
559
|
"annotation": {
|
|
628
|
-
"type": "
|
|
629
|
-
"
|
|
560
|
+
"type": "reference",
|
|
561
|
+
"typeName": {
|
|
562
|
+
"type": "identifier",
|
|
563
|
+
"name": "McpServer"
|
|
564
|
+
}
|
|
630
565
|
},
|
|
631
566
|
"computed": false
|
|
632
|
-
}
|
|
567
|
+
}
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"type": "interface",
|
|
572
|
+
"name": "McpServer",
|
|
573
|
+
"body": [
|
|
633
574
|
{
|
|
634
575
|
"type": "propertySignature",
|
|
635
576
|
"key": {
|
|
636
577
|
"type": "identifier",
|
|
637
|
-
"name": "
|
|
578
|
+
"name": "id"
|
|
638
579
|
},
|
|
639
580
|
"annotation": {
|
|
640
581
|
"type": "keyword",
|
|
@@ -646,20 +587,19 @@
|
|
|
646
587
|
"type": "propertySignature",
|
|
647
588
|
"key": {
|
|
648
589
|
"type": "identifier",
|
|
649
|
-
"name": "
|
|
590
|
+
"name": "name"
|
|
650
591
|
},
|
|
651
592
|
"annotation": {
|
|
652
593
|
"type": "keyword",
|
|
653
594
|
"value": "string"
|
|
654
595
|
},
|
|
655
|
-
"optional": true,
|
|
656
596
|
"computed": false
|
|
657
597
|
}
|
|
658
598
|
]
|
|
659
599
|
}
|
|
660
600
|
]
|
|
661
601
|
},
|
|
662
|
-
"ai-portal.
|
|
602
|
+
"ai-portal.show-cases": {
|
|
663
603
|
"properties": [
|
|
664
604
|
{
|
|
665
605
|
"name": "list",
|
|
@@ -669,10 +609,17 @@
|
|
|
669
609
|
"type": "reference",
|
|
670
610
|
"typeName": {
|
|
671
611
|
"type": "identifier",
|
|
672
|
-
"name": "
|
|
612
|
+
"name": "ShowCase"
|
|
673
613
|
}
|
|
674
614
|
}
|
|
675
615
|
}
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "taskUrlTemplate",
|
|
619
|
+
"annotation": {
|
|
620
|
+
"type": "keyword",
|
|
621
|
+
"value": "string"
|
|
622
|
+
}
|
|
676
623
|
}
|
|
677
624
|
],
|
|
678
625
|
"events": [],
|
|
@@ -680,13 +627,13 @@
|
|
|
680
627
|
"types": [
|
|
681
628
|
{
|
|
682
629
|
"type": "interface",
|
|
683
|
-
"name": "
|
|
630
|
+
"name": "ShowCase",
|
|
684
631
|
"body": [
|
|
685
632
|
{
|
|
686
633
|
"type": "propertySignature",
|
|
687
634
|
"key": {
|
|
688
635
|
"type": "identifier",
|
|
689
|
-
"name": "
|
|
636
|
+
"name": "taskId"
|
|
690
637
|
},
|
|
691
638
|
"annotation": {
|
|
692
639
|
"type": "keyword",
|
|
@@ -710,7 +657,7 @@
|
|
|
710
657
|
"type": "propertySignature",
|
|
711
658
|
"key": {
|
|
712
659
|
"type": "identifier",
|
|
713
|
-
"name": "
|
|
660
|
+
"name": "summary"
|
|
714
661
|
},
|
|
715
662
|
"annotation": {
|
|
716
663
|
"type": "keyword",
|
|
@@ -722,44 +669,7 @@
|
|
|
722
669
|
"type": "propertySignature",
|
|
723
670
|
"key": {
|
|
724
671
|
"type": "identifier",
|
|
725
|
-
"name": "
|
|
726
|
-
},
|
|
727
|
-
"annotation": {
|
|
728
|
-
"type": "reference",
|
|
729
|
-
"typeName": {
|
|
730
|
-
"type": "identifier",
|
|
731
|
-
"name": "GeneralIconProps"
|
|
732
|
-
}
|
|
733
|
-
},
|
|
734
|
-
"optional": true,
|
|
735
|
-
"computed": false
|
|
736
|
-
},
|
|
737
|
-
{
|
|
738
|
-
"type": "propertySignature",
|
|
739
|
-
"key": {
|
|
740
|
-
"type": "identifier",
|
|
741
|
-
"name": "server"
|
|
742
|
-
},
|
|
743
|
-
"annotation": {
|
|
744
|
-
"type": "reference",
|
|
745
|
-
"typeName": {
|
|
746
|
-
"type": "identifier",
|
|
747
|
-
"name": "McpServer"
|
|
748
|
-
}
|
|
749
|
-
},
|
|
750
|
-
"computed": false
|
|
751
|
-
}
|
|
752
|
-
]
|
|
753
|
-
},
|
|
754
|
-
{
|
|
755
|
-
"type": "interface",
|
|
756
|
-
"name": "McpServer",
|
|
757
|
-
"body": [
|
|
758
|
-
{
|
|
759
|
-
"type": "propertySignature",
|
|
760
|
-
"key": {
|
|
761
|
-
"type": "identifier",
|
|
762
|
-
"name": "id"
|
|
672
|
+
"name": "scenario"
|
|
763
673
|
},
|
|
764
674
|
"annotation": {
|
|
765
675
|
"type": "keyword",
|
|
@@ -771,12 +681,13 @@
|
|
|
771
681
|
"type": "propertySignature",
|
|
772
682
|
"key": {
|
|
773
683
|
"type": "identifier",
|
|
774
|
-
"name": "
|
|
684
|
+
"name": "thumbUrl"
|
|
775
685
|
},
|
|
776
686
|
"annotation": {
|
|
777
687
|
"type": "keyword",
|
|
778
688
|
"value": "string"
|
|
779
689
|
},
|
|
690
|
+
"optional": true,
|
|
780
691
|
"computed": false
|
|
781
692
|
}
|
|
782
693
|
]
|
|
@@ -951,6 +862,95 @@
|
|
|
951
862
|
}
|
|
952
863
|
]
|
|
953
864
|
},
|
|
865
|
+
"ai-portal.chat-box": {
|
|
866
|
+
"properties": [
|
|
867
|
+
{
|
|
868
|
+
"name": "disabled",
|
|
869
|
+
"annotation": {
|
|
870
|
+
"type": "keyword",
|
|
871
|
+
"value": "boolean"
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"name": "placeholder",
|
|
876
|
+
"annotation": {
|
|
877
|
+
"type": "keyword",
|
|
878
|
+
"value": "string"
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"name": "autoFocus",
|
|
883
|
+
"annotation": {
|
|
884
|
+
"type": "keyword",
|
|
885
|
+
"value": "boolean"
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"name": "suggestions",
|
|
890
|
+
"annotation": {
|
|
891
|
+
"type": "array",
|
|
892
|
+
"elementType": {
|
|
893
|
+
"type": "reference",
|
|
894
|
+
"typeName": {
|
|
895
|
+
"type": "identifier",
|
|
896
|
+
"name": "Suggestion"
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"name": "suggestionsLabel",
|
|
903
|
+
"annotation": {
|
|
904
|
+
"type": "keyword",
|
|
905
|
+
"value": "string"
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
],
|
|
909
|
+
"events": [
|
|
910
|
+
{
|
|
911
|
+
"name": "message.submit",
|
|
912
|
+
"detail": {
|
|
913
|
+
"annotation": {
|
|
914
|
+
"type": "keyword",
|
|
915
|
+
"value": "string"
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
],
|
|
920
|
+
"methods": [],
|
|
921
|
+
"types": [
|
|
922
|
+
{
|
|
923
|
+
"type": "interface",
|
|
924
|
+
"name": "Suggestion",
|
|
925
|
+
"body": [
|
|
926
|
+
{
|
|
927
|
+
"type": "propertySignature",
|
|
928
|
+
"key": {
|
|
929
|
+
"type": "identifier",
|
|
930
|
+
"name": "title"
|
|
931
|
+
},
|
|
932
|
+
"annotation": {
|
|
933
|
+
"type": "keyword",
|
|
934
|
+
"value": "string"
|
|
935
|
+
},
|
|
936
|
+
"computed": false
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
"type": "propertySignature",
|
|
940
|
+
"key": {
|
|
941
|
+
"type": "identifier",
|
|
942
|
+
"name": "content"
|
|
943
|
+
},
|
|
944
|
+
"annotation": {
|
|
945
|
+
"type": "keyword",
|
|
946
|
+
"value": "string"
|
|
947
|
+
},
|
|
948
|
+
"computed": false
|
|
949
|
+
}
|
|
950
|
+
]
|
|
951
|
+
}
|
|
952
|
+
]
|
|
953
|
+
},
|
|
954
954
|
"ai-portal.elevo-sidebar": {
|
|
955
955
|
"properties": [
|
|
956
956
|
{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { NodePosition, GraphEdge, GraphNode, SizeTuple
|
|
1
|
+
import type { NodePosition, GraphEdge, GraphNode, SizeTuple } from "./interfaces";
|
|
2
2
|
export interface UseLayoutOptions {
|
|
3
3
|
rawNodes: GraphNode[] | undefined;
|
|
4
4
|
rawEdges: GraphEdge[] | undefined;
|
|
5
5
|
sizeMap: Map<string, SizeTuple> | null;
|
|
6
|
-
|
|
6
|
+
completed?: boolean;
|
|
7
7
|
showFeedback?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare function useLayout({ rawNodes: _rawNodes, rawEdges: _rawEdges, sizeMap,
|
|
9
|
+
export declare function useLayout({ rawNodes: _rawNodes, rawEdges: _rawEdges, sizeMap, completed, showFeedback, }: UseLayoutOptions): {
|
|
10
10
|
sizeReady: boolean;
|
|
11
11
|
nodes: GraphNode[];
|
|
12
12
|
edges: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/ai-portal",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.4",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"@next-bricks/presentational": "*",
|
|
47
47
|
"@next-bricks/vs": "*"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "88e5c97e76e19be760d5a41f7845bd1a1653d16e"
|
|
50
50
|
}
|