@next-bricks/ai-portal 0.45.2 → 0.46.0

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.
@@ -3,6 +3,194 @@
3
3
  "package": "@next-bricks/ai-portal",
4
4
  "name": "ai-portal",
5
5
  "bricks": [
6
+ {
7
+ "name": "ai-portal.chat-box",
8
+ "properties": [
9
+ {
10
+ "name": "disabled",
11
+ "type": "boolean"
12
+ },
13
+ {
14
+ "name": "placeholder",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "name": "autoFocus",
19
+ "type": "boolean"
20
+ },
21
+ {
22
+ "name": "aiEmployees",
23
+ "attribute": false,
24
+ "type": "AIEmployee[]"
25
+ }
26
+ ],
27
+ "events": [
28
+ {
29
+ "name": "message.submit",
30
+ "detail": {
31
+ "type": "string"
32
+ }
33
+ },
34
+ {
35
+ "name": "ai-employee.mention",
36
+ "detail": {
37
+ "type": "AIEmployee | null"
38
+ }
39
+ }
40
+ ],
41
+ "slots": [],
42
+ "methods": [
43
+ {
44
+ "name": "setValue",
45
+ "params": [
46
+ {
47
+ "name": "value",
48
+ "type": "string"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "name": "getValue",
54
+ "params": []
55
+ }
56
+ ],
57
+ "parts": [],
58
+ "description": "构件 `ai-portal.chat-box`"
59
+ },
60
+ {
61
+ "name": "ai-portal.elevo-sidebar",
62
+ "properties": [
63
+ {
64
+ "name": "userInstanceId",
65
+ "type": "string"
66
+ },
67
+ {
68
+ "name": "behavior",
69
+ "type": "\"default\" | \"drawer\""
70
+ },
71
+ {
72
+ "name": "bordered",
73
+ "type": "boolean"
74
+ },
75
+ {
76
+ "name": "logoUrl",
77
+ "type": "string"
78
+ },
79
+ {
80
+ "name": "newChatUrl",
81
+ "type": "string"
82
+ },
83
+ {
84
+ "name": "newChatLinkWhenCollapsed",
85
+ "type": "boolean"
86
+ },
87
+ {
88
+ "name": "historyActiveId",
89
+ "type": "string"
90
+ },
91
+ {
92
+ "name": "historyUrlTemplate",
93
+ "type": "string"
94
+ },
95
+ {
96
+ "name": "historyActions",
97
+ "attribute": false,
98
+ "type": "ActionType[]"
99
+ },
100
+ {
101
+ "name": "projectActiveId",
102
+ "type": "string"
103
+ },
104
+ {
105
+ "name": "projectUrlTemplate",
106
+ "type": "string"
107
+ },
108
+ {
109
+ "name": "projectActions",
110
+ "attribute": false,
111
+ "type": "ActionType[]"
112
+ },
113
+ {
114
+ "name": "links",
115
+ "attribute": false,
116
+ "type": "SidebarLink[]"
117
+ }
118
+ ],
119
+ "events": [
120
+ {
121
+ "name": "logout",
122
+ "detail": {
123
+ "type": "void"
124
+ }
125
+ },
126
+ {
127
+ "name": "action.click",
128
+ "detail": {
129
+ "type": "ActionClickDetail"
130
+ }
131
+ },
132
+ {
133
+ "name": "project.action.click",
134
+ "detail": {
135
+ "type": "ProjectActionClickDetail"
136
+ }
137
+ },
138
+ {
139
+ "name": "add.project",
140
+ "detail": {
141
+ "type": "void"
142
+ }
143
+ }
144
+ ],
145
+ "slots": [],
146
+ "methods": [
147
+ {
148
+ "name": "pullHistory",
149
+ "params": [
150
+ {
151
+ "name": "delay",
152
+ "description": "Delay in milliseconds before pulling the latest chat history.",
153
+ "type": "number"
154
+ }
155
+ ],
156
+ "description": "",
157
+ "returns": {}
158
+ },
159
+ {
160
+ "name": "close",
161
+ "params": []
162
+ },
163
+ {
164
+ "name": "removeProject",
165
+ "params": [
166
+ {
167
+ "name": "projectId",
168
+ "type": "string"
169
+ }
170
+ ]
171
+ },
172
+ {
173
+ "name": "addProject",
174
+ "params": [
175
+ {
176
+ "name": "project",
177
+ "type": "Project"
178
+ }
179
+ ]
180
+ },
181
+ {
182
+ "name": "moveConversation",
183
+ "params": [
184
+ {
185
+ "name": "conversationId",
186
+ "type": "string"
187
+ }
188
+ ]
189
+ }
190
+ ],
191
+ "parts": [],
192
+ "description": "构件 `ai-portal.elevo-sidebar`"
193
+ },
6
194
  {
7
195
  "name": "ai-portal.cruise-canvas",
8
196
  "properties": [
@@ -149,65 +337,13 @@
149
337
  "description": "构件 `ai-portal.cruise-canvas`"
150
338
  },
151
339
  {
152
- "name": "ai-portal.stat-with-mini-chart",
153
- "properties": [
154
- {
155
- "name": "label",
156
- "type": "string"
157
- },
158
- {
159
- "name": "value",
160
- "type": "string"
161
- },
162
- {
163
- "name": "size",
164
- "description": "",
165
- "default": "\"medium\"",
166
- "type": "\"medium\" | \"small\""
167
- },
168
- {
169
- "name": "lineColor",
170
- "description": "",
171
- "default": "\"var(--color-brand)\"",
172
- "type": "string"
173
- },
174
- {
175
- "name": "showArea",
176
- "type": "boolean"
177
- },
178
- {
179
- "name": "min",
180
- "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
181
- "type": "number"
182
- },
183
- {
184
- "name": "max",
185
- "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
186
- "type": "number"
187
- },
188
- {
189
- "name": "xField",
190
- "description": "",
191
- "default": "\"0\"",
192
- "type": "string"
193
- },
194
- {
195
- "name": "yField",
196
- "description": "",
197
- "default": "\"1\"",
198
- "type": "string"
199
- },
200
- {
201
- "name": "data",
202
- "attribute": false,
203
- "type": "Record<string, number>[]"
204
- }
205
- ],
340
+ "name": "ai-portal.home-container",
341
+ "properties": [],
206
342
  "events": [],
207
343
  "slots": [],
208
344
  "methods": [],
209
345
  "parts": [],
210
- "description": "构件 `ai-portal.stat-with-mini-chart`"
346
+ "description": "构件 `ai-portal.home-container`"
211
347
  },
212
348
  {
213
349
  "name": "ai-portal.icon-button",
@@ -251,60 +387,6 @@
251
387
  "parts": [],
252
388
  "description": "构件 `ai-portal.show-cases`"
253
389
  },
254
- {
255
- "name": "ai-portal.chat-box",
256
- "properties": [
257
- {
258
- "name": "disabled",
259
- "type": "boolean"
260
- },
261
- {
262
- "name": "placeholder",
263
- "type": "string"
264
- },
265
- {
266
- "name": "autoFocus",
267
- "type": "boolean"
268
- },
269
- {
270
- "name": "aiEmployees",
271
- "attribute": false,
272
- "type": "AIEmployee[]"
273
- }
274
- ],
275
- "events": [
276
- {
277
- "name": "message.submit",
278
- "detail": {
279
- "type": "string"
280
- }
281
- },
282
- {
283
- "name": "ai-employee.mention",
284
- "detail": {
285
- "type": "AIEmployee | null"
286
- }
287
- }
288
- ],
289
- "slots": [],
290
- "methods": [
291
- {
292
- "name": "setValue",
293
- "params": [
294
- {
295
- "name": "value",
296
- "type": "string"
297
- }
298
- ]
299
- },
300
- {
301
- "name": "getValue",
302
- "params": []
303
- }
304
- ],
305
- "parts": [],
306
- "description": "构件 `ai-portal.chat-box`"
307
- },
308
390
  {
309
391
  "name": "ai-portal.mcp-tools",
310
392
  "properties": [
@@ -473,159 +555,25 @@
473
555
  "params": []
474
556
  },
475
557
  {
476
- "name": "feedbackSubmitDone",
477
- "params": []
478
- },
479
- {
480
- "name": "feedbackSubmitFailed",
481
- "params": []
482
- },
483
- {
484
- "name": "feedbackOnViewDone",
485
- "params": [
486
- {
487
- "name": "viewId",
488
- "type": "string"
489
- }
490
- ]
491
- }
492
- ],
493
- "parts": [],
494
- "description": "构件 `ai-portal.chat-stream`"
495
- },
496
- {
497
- "name": "ai-portal.elevo-sidebar",
498
- "properties": [
499
- {
500
- "name": "userInstanceId",
501
- "type": "string"
502
- },
503
- {
504
- "name": "behavior",
505
- "type": "\"default\" | \"drawer\""
506
- },
507
- {
508
- "name": "bordered",
509
- "type": "boolean"
510
- },
511
- {
512
- "name": "logoUrl",
513
- "type": "string"
514
- },
515
- {
516
- "name": "newChatUrl",
517
- "type": "string"
518
- },
519
- {
520
- "name": "newChatLinkWhenCollapsed",
521
- "type": "boolean"
522
- },
523
- {
524
- "name": "historyActiveId",
525
- "type": "string"
526
- },
527
- {
528
- "name": "historyUrlTemplate",
529
- "type": "string"
530
- },
531
- {
532
- "name": "historyActions",
533
- "attribute": false,
534
- "type": "ActionType[]"
535
- },
536
- {
537
- "name": "projectActiveId",
538
- "type": "string"
539
- },
540
- {
541
- "name": "projectUrlTemplate",
542
- "type": "string"
543
- },
544
- {
545
- "name": "projectActions",
546
- "attribute": false,
547
- "type": "ActionType[]"
548
- },
549
- {
550
- "name": "links",
551
- "attribute": false,
552
- "type": "SidebarLink[]"
553
- }
554
- ],
555
- "events": [
556
- {
557
- "name": "logout",
558
- "detail": {
559
- "type": "void"
560
- }
561
- },
562
- {
563
- "name": "action.click",
564
- "detail": {
565
- "type": "ActionClickDetail"
566
- }
567
- },
568
- {
569
- "name": "project.action.click",
570
- "detail": {
571
- "type": "ProjectActionClickDetail"
572
- }
573
- },
574
- {
575
- "name": "add.project",
576
- "detail": {
577
- "type": "void"
578
- }
579
- }
580
- ],
581
- "slots": [],
582
- "methods": [
583
- {
584
- "name": "pullHistory",
585
- "params": [
586
- {
587
- "name": "delay",
588
- "description": "Delay in milliseconds before pulling the latest chat history.",
589
- "type": "number"
590
- }
591
- ],
592
- "description": "",
593
- "returns": {}
594
- },
595
- {
596
- "name": "close",
597
- "params": []
598
- },
599
- {
600
- "name": "removeProject",
601
- "params": [
602
- {
603
- "name": "projectId",
604
- "type": "string"
605
- }
606
- ]
558
+ "name": "feedbackSubmitDone",
559
+ "params": []
607
560
  },
608
561
  {
609
- "name": "addProject",
610
- "params": [
611
- {
612
- "name": "project",
613
- "type": "Project"
614
- }
615
- ]
562
+ "name": "feedbackSubmitFailed",
563
+ "params": []
616
564
  },
617
565
  {
618
- "name": "moveConversation",
566
+ "name": "feedbackOnViewDone",
619
567
  "params": [
620
568
  {
621
- "name": "conversationId",
569
+ "name": "viewId",
622
570
  "type": "string"
623
571
  }
624
572
  ]
625
573
  }
626
574
  ],
627
575
  "parts": [],
628
- "description": "构件 `ai-portal.elevo-sidebar`"
576
+ "description": "构件 `ai-portal.chat-stream`"
629
577
  },
630
578
  {
631
579
  "name": "ai-portal.ai-agents",
@@ -689,51 +637,6 @@
689
637
  "parts": [],
690
638
  "description": "构件 `ai-portal.page-container`"
691
639
  },
692
- {
693
- "name": "ai-portal.tab-list",
694
- "properties": [
695
- {
696
- "name": "tabs",
697
- "attribute": false,
698
- "type": "Tab[]"
699
- },
700
- {
701
- "name": "activeTab",
702
- "attribute": false,
703
- "type": "string"
704
- }
705
- ],
706
- "events": [
707
- {
708
- "name": "tab.click",
709
- "detail": {
710
- "type": "Tab"
711
- }
712
- }
713
- ],
714
- "slots": [],
715
- "methods": [],
716
- "parts": [
717
- {
718
- "name": "tabs",
719
- "description": "The tab list container"
720
- },
721
- {
722
- "name": "tab",
723
- "description": "The individual tab"
724
- }
725
- ],
726
- "description": "构件 `ai-portal.tab-list`"
727
- },
728
- {
729
- "name": "ai-portal.home-container",
730
- "properties": [],
731
- "events": [],
732
- "slots": [],
733
- "methods": [],
734
- "parts": [],
735
- "description": "构件 `ai-portal.home-container`"
736
- },
737
640
  {
738
641
  "name": "ai-portal.dropdown-select",
739
642
  "properties": [
@@ -791,6 +694,103 @@
791
694
  "parts": [],
792
695
  "description": "构件 `ai-portal.dropdown-select`"
793
696
  },
697
+ {
698
+ "name": "ai-portal.stat-with-mini-chart",
699
+ "properties": [
700
+ {
701
+ "name": "label",
702
+ "type": "string"
703
+ },
704
+ {
705
+ "name": "value",
706
+ "type": "string"
707
+ },
708
+ {
709
+ "name": "size",
710
+ "description": "",
711
+ "default": "\"medium\"",
712
+ "type": "\"medium\" | \"small\""
713
+ },
714
+ {
715
+ "name": "lineColor",
716
+ "description": "",
717
+ "default": "\"var(--color-brand)\"",
718
+ "type": "string"
719
+ },
720
+ {
721
+ "name": "showArea",
722
+ "type": "boolean"
723
+ },
724
+ {
725
+ "name": "min",
726
+ "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
727
+ "type": "number"
728
+ },
729
+ {
730
+ "name": "max",
731
+ "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
732
+ "type": "number"
733
+ },
734
+ {
735
+ "name": "xField",
736
+ "description": "",
737
+ "default": "\"0\"",
738
+ "type": "string"
739
+ },
740
+ {
741
+ "name": "yField",
742
+ "description": "",
743
+ "default": "\"1\"",
744
+ "type": "string"
745
+ },
746
+ {
747
+ "name": "data",
748
+ "attribute": false,
749
+ "type": "Record<string, number>[]"
750
+ }
751
+ ],
752
+ "events": [],
753
+ "slots": [],
754
+ "methods": [],
755
+ "parts": [],
756
+ "description": "构件 `ai-portal.stat-with-mini-chart`"
757
+ },
758
+ {
759
+ "name": "ai-portal.tab-list",
760
+ "properties": [
761
+ {
762
+ "name": "tabs",
763
+ "attribute": false,
764
+ "type": "Tab[]"
765
+ },
766
+ {
767
+ "name": "activeTab",
768
+ "attribute": false,
769
+ "type": "string"
770
+ }
771
+ ],
772
+ "events": [
773
+ {
774
+ "name": "tab.click",
775
+ "detail": {
776
+ "type": "Tab"
777
+ }
778
+ }
779
+ ],
780
+ "slots": [],
781
+ "methods": [],
782
+ "parts": [
783
+ {
784
+ "name": "tabs",
785
+ "description": "The tab list container"
786
+ },
787
+ {
788
+ "name": "tab",
789
+ "description": "The individual tab"
790
+ }
791
+ ],
792
+ "description": "构件 `ai-portal.tab-list`"
793
+ },
794
794
  {
795
795
  "name": "ai-portal.preview-container",
796
796
  "properties": [
@@ -842,6 +842,48 @@
842
842
  "parts": [],
843
843
  "description": "构件 `ai-portal.action-buttons`"
844
844
  },
845
+ {
846
+ "name": "ai-portal.project-conversations",
847
+ "properties": [
848
+ {
849
+ "name": "list",
850
+ "attribute": false,
851
+ "type": "Conversation[]"
852
+ },
853
+ {
854
+ "name": "urlTemplate",
855
+ "type": "string"
856
+ },
857
+ {
858
+ "name": "actions",
859
+ "attribute": false,
860
+ "type": "ActionType[]"
861
+ },
862
+ {
863
+ "name": "goals",
864
+ "attribute": false,
865
+ "type": "Goal[]"
866
+ }
867
+ ],
868
+ "events": [
869
+ {
870
+ "name": "goal.click",
871
+ "detail": {
872
+ "type": "Conversation"
873
+ }
874
+ },
875
+ {
876
+ "name": "action.click",
877
+ "detail": {
878
+ "type": "ActionClickDetail"
879
+ }
880
+ }
881
+ ],
882
+ "slots": [],
883
+ "methods": [],
884
+ "parts": [],
885
+ "description": "构件 `ai-portal.project-conversations`"
886
+ },
845
887
  {
846
888
  "name": "ai-portal.goal-card-list",
847
889
  "properties": [
@@ -887,51 +929,23 @@
887
929
  }
888
930
  ],
889
931
  "slots": [],
890
- "methods": [],
891
- "parts": [],
892
- "description": "构件 `ai-portal.goal-card-list`"
893
- },
894
- {
895
- "name": "ai-portal.project-conversations",
896
- "properties": [
897
- {
898
- "name": "list",
899
- "attribute": false,
900
- "type": "Conversation[]"
901
- },
902
- {
903
- "name": "urlTemplate",
904
- "type": "string"
905
- },
906
- {
907
- "name": "actions",
908
- "attribute": false,
909
- "type": "ActionType[]"
910
- },
911
- {
912
- "name": "goals",
913
- "attribute": false,
914
- "type": "Goal[]"
915
- }
916
- ],
917
- "events": [
918
- {
919
- "name": "goal.click",
920
- "detail": {
921
- "type": "Conversation"
922
- }
923
- },
932
+ "methods": [
924
933
  {
925
- "name": "action.click",
926
- "detail": {
927
- "type": "ActionClickDetail"
928
- }
934
+ "name": "appendChildDone",
935
+ "params": [
936
+ {
937
+ "name": "pendingId",
938
+ "type": "string"
939
+ },
940
+ {
941
+ "name": "newItem",
942
+ "type": "GoalItem"
943
+ }
944
+ ]
929
945
  }
930
946
  ],
931
- "slots": [],
932
- "methods": [],
933
947
  "parts": [],
934
- "description": "构件 `ai-portal.project-conversations`"
948
+ "description": "构件 `ai-portal.goal-card-list`"
935
949
  },
936
950
  {
937
951
  "name": "ai-portal.project-knowledges",
@@ -1065,9 +1079,6 @@
1065
1079
  }
1066
1080
  ],
1067
1081
  "providers": [
1068
- {
1069
- "name": "ai-portal.call-tool"
1070
- },
1071
1082
  {
1072
1083
  "name": "ai-portal.save-request-store"
1073
1084
  },
@@ -1076,6 +1087,9 @@
1076
1087
  },
1077
1088
  {
1078
1089
  "name": "ai-portal.clear-request-store"
1090
+ },
1091
+ {
1092
+ "name": "ai-portal.call-tool"
1079
1093
  }
1080
1094
  ]
1081
1095
  }