@next-bricks/ai-portal 0.60.3 → 0.61.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.
Files changed (53) hide show
  1. package/dist/bricks.json +28 -27
  2. package/dist/chunks/{1480.0de951a3.js → 1480.a7ffdf61.js} +2 -2
  3. package/dist/chunks/1480.a7ffdf61.js.map +1 -0
  4. package/dist/chunks/{2232.085b8abd.js → 2232.06e10f13.js} +2 -2
  5. package/dist/chunks/2232.06e10f13.js.map +1 -0
  6. package/dist/chunks/{5712.f692e3f5.js → 5712.6b8e0a77.js} +2 -2
  7. package/dist/chunks/5712.6b8e0a77.js.map +1 -0
  8. package/dist/chunks/9164.34a6f72c.js +2 -0
  9. package/dist/chunks/9164.34a6f72c.js.map +1 -0
  10. package/dist/chunks/9271.24992b40.js +2 -0
  11. package/dist/chunks/9271.24992b40.js.map +1 -0
  12. package/dist/chunks/chat-box.3a31adcd.js +3 -0
  13. package/dist/chunks/chat-box.3a31adcd.js.map +1 -0
  14. package/dist/chunks/chat-input.8d663f4e.js +3 -0
  15. package/dist/chunks/chat-input.8d663f4e.js.LICENSE.txt +1 -0
  16. package/dist/chunks/chat-input.8d663f4e.js.map +1 -0
  17. package/dist/chunks/chat-stream.d3cde350.js +2 -0
  18. package/dist/chunks/chat-stream.d3cde350.js.map +1 -0
  19. package/dist/chunks/cruise-canvas.c1a7bc9f.js +2 -0
  20. package/dist/chunks/cruise-canvas.c1a7bc9f.js.map +1 -0
  21. package/dist/chunks/{main.fc9fd5d4.js → main.08d6c690.js} +2 -2
  22. package/dist/chunks/{main.fc9fd5d4.js.map → main.08d6c690.js.map} +1 -1
  23. package/dist/examples.json +17 -17
  24. package/dist/{index.f2850973.js → index.5a41efb9.js} +2 -2
  25. package/dist/{index.f2850973.js.map → index.5a41efb9.js.map} +1 -1
  26. package/dist/manifest.json +256 -220
  27. package/dist/types.json +844 -868
  28. package/dist-types/chat-box/index.d.ts +3 -10
  29. package/dist-types/chat-input/i18n.d.ts +3 -1
  30. package/dist-types/chat-input/index.d.ts +16 -1
  31. package/dist-types/chat-stream/ChatStream.d.ts +1 -1
  32. package/dist-types/chat-stream/index.d.ts +5 -0
  33. package/dist-types/cruise-canvas/CruiseCanvas.d.ts +1 -1
  34. package/dist-types/cruise-canvas/index.d.ts +5 -0
  35. package/dist-types/shared/ChatCompletions/useChatCompletions.d.ts +65 -0
  36. package/dist-types/shared/TaskContext.d.ts +3 -0
  37. package/package.json +2 -2
  38. package/dist/chunks/1480.0de951a3.js.map +0 -1
  39. package/dist/chunks/2232.085b8abd.js.map +0 -1
  40. package/dist/chunks/2324.a4a90c77.js +0 -2
  41. package/dist/chunks/2324.a4a90c77.js.map +0 -1
  42. package/dist/chunks/5712.f692e3f5.js.map +0 -1
  43. package/dist/chunks/6792.03e66697.js +0 -2
  44. package/dist/chunks/6792.03e66697.js.map +0 -1
  45. package/dist/chunks/chat-box.a8e58e50.js +0 -3
  46. package/dist/chunks/chat-box.a8e58e50.js.map +0 -1
  47. package/dist/chunks/chat-input.e999f79c.js +0 -2
  48. package/dist/chunks/chat-input.e999f79c.js.map +0 -1
  49. package/dist/chunks/chat-stream.8d8dc5a0.js +0 -2
  50. package/dist/chunks/chat-stream.8d8dc5a0.js.map +0 -1
  51. package/dist/chunks/cruise-canvas.4a0692fb.js +0 -2
  52. package/dist/chunks/cruise-canvas.4a0692fb.js.map +0 -1
  53. /package/dist/chunks/{chat-box.a8e58e50.js.LICENSE.txt → chat-box.3a31adcd.js.LICENSE.txt} +0 -0
@@ -3,76 +3,6 @@
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
- "name": "commands",
28
- "attribute": false,
29
- "type": "Command[]"
30
- },
31
- {
32
- "name": "uploadOptions",
33
- "attribute": false,
34
- "type": "UploadOptions"
35
- }
36
- ],
37
- "events": [
38
- {
39
- "name": "message.submit",
40
- "description": "",
41
- "deprecated": "Use `chat.submit` event instead",
42
- "detail": {
43
- "type": "string"
44
- }
45
- },
46
- {
47
- "name": "chat.submit",
48
- "detail": {
49
- "type": "ChatPayload"
50
- }
51
- }
52
- ],
53
- "slots": [],
54
- "methods": [
55
- {
56
- "name": "setValue",
57
- "params": [
58
- {
59
- "name": "value",
60
- "type": "string"
61
- }
62
- ]
63
- },
64
- {
65
- "name": "getValue",
66
- "params": []
67
- },
68
- {
69
- "name": "focusOnInput",
70
- "params": []
71
- }
72
- ],
73
- "parts": [],
74
- "description": "构件 `ai-portal.chat-box`"
75
- },
76
6
  {
77
7
  "name": "ai-portal.cruise-canvas",
78
8
  "properties": [
@@ -156,6 +86,16 @@
156
86
  "name": "separateInstructions",
157
87
  "type": "boolean"
158
88
  },
89
+ {
90
+ "name": "aiEmployees",
91
+ "attribute": false,
92
+ "type": "AIEmployee[]"
93
+ },
94
+ {
95
+ "name": "commands",
96
+ "attribute": false,
97
+ "type": "Command[]"
98
+ },
159
99
  {
160
100
  "name": "uploadOptions",
161
101
  "attribute": false,
@@ -227,6 +167,67 @@
227
167
  "parts": [],
228
168
  "description": "构件 `ai-portal.cruise-canvas`"
229
169
  },
170
+ {
171
+ "name": "ai-portal.stat-with-mini-chart",
172
+ "properties": [
173
+ {
174
+ "name": "label",
175
+ "type": "string"
176
+ },
177
+ {
178
+ "name": "value",
179
+ "type": "string"
180
+ },
181
+ {
182
+ "name": "size",
183
+ "description": "",
184
+ "default": "\"medium\"",
185
+ "type": "\"medium\" | \"small\""
186
+ },
187
+ {
188
+ "name": "lineColor",
189
+ "description": "",
190
+ "default": "\"var(--color-brand)\"",
191
+ "type": "string"
192
+ },
193
+ {
194
+ "name": "showArea",
195
+ "type": "boolean"
196
+ },
197
+ {
198
+ "name": "min",
199
+ "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
200
+ "type": "number"
201
+ },
202
+ {
203
+ "name": "max",
204
+ "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
205
+ "type": "number"
206
+ },
207
+ {
208
+ "name": "xField",
209
+ "description": "",
210
+ "default": "\"0\"",
211
+ "type": "string"
212
+ },
213
+ {
214
+ "name": "yField",
215
+ "description": "",
216
+ "default": "\"1\"",
217
+ "type": "string"
218
+ },
219
+ {
220
+ "name": "data",
221
+ "attribute": false,
222
+ "type": "Record<string, number>[]"
223
+ }
224
+ ],
225
+ "events": [],
226
+ "slots": [],
227
+ "methods": [],
228
+ "parts": [],
229
+ "description": "构件 `ai-portal.stat-with-mini-chart`"
230
+ },
230
231
  {
231
232
  "name": "ai-portal.elevo-sidebar",
232
233
  "properties": [
@@ -400,15 +401,15 @@
400
401
  "description": "构件 `ai-portal.icon-button`"
401
402
  },
402
403
  {
403
- "name": "ai-portal.show-cases",
404
+ "name": "ai-portal.mcp-tools",
404
405
  "properties": [
405
406
  {
406
407
  "name": "list",
407
408
  "attribute": false,
408
- "type": "ShowCaseType[]"
409
+ "type": "McpTool[]"
409
410
  },
410
411
  {
411
- "name": "limit",
412
+ "name": "stickyTop",
412
413
  "type": "number"
413
414
  }
414
415
  ],
@@ -416,18 +417,18 @@
416
417
  "slots": [],
417
418
  "methods": [],
418
419
  "parts": [],
419
- "description": "构件 `ai-portal.show-cases`"
420
+ "description": "构件 `ai-portal.mcp-tools`"
420
421
  },
421
422
  {
422
- "name": "ai-portal.mcp-tools",
423
+ "name": "ai-portal.show-cases",
423
424
  "properties": [
424
425
  {
425
426
  "name": "list",
426
427
  "attribute": false,
427
- "type": "McpTool[]"
428
+ "type": "ShowCaseType[]"
428
429
  },
429
430
  {
430
- "name": "stickyTop",
431
+ "name": "limit",
431
432
  "type": "number"
432
433
  }
433
434
  ],
@@ -435,7 +436,7 @@
435
436
  "slots": [],
436
437
  "methods": [],
437
438
  "parts": [],
438
- "description": "构件 `ai-portal.mcp-tools`"
439
+ "description": "构件 `ai-portal.show-cases`"
439
440
  },
440
441
  {
441
442
  "name": "ai-portal.ai-employees",
@@ -536,6 +537,16 @@
536
537
  "name": "tryItOutUrl",
537
538
  "type": "string"
538
539
  },
540
+ {
541
+ "name": "aiEmployees",
542
+ "attribute": false,
543
+ "type": "AIEmployee[]"
544
+ },
545
+ {
546
+ "name": "commands",
547
+ "attribute": false,
548
+ "type": "Command[]"
549
+ },
539
550
  {
540
551
  "name": "uploadOptions",
541
552
  "attribute": false,
@@ -638,67 +649,6 @@
638
649
  "parts": [],
639
650
  "description": "构件 `ai-portal.ai-agents`"
640
651
  },
641
- {
642
- "name": "ai-portal.stat-with-mini-chart",
643
- "properties": [
644
- {
645
- "name": "label",
646
- "type": "string"
647
- },
648
- {
649
- "name": "value",
650
- "type": "string"
651
- },
652
- {
653
- "name": "size",
654
- "description": "",
655
- "default": "\"medium\"",
656
- "type": "\"medium\" | \"small\""
657
- },
658
- {
659
- "name": "lineColor",
660
- "description": "",
661
- "default": "\"var(--color-brand)\"",
662
- "type": "string"
663
- },
664
- {
665
- "name": "showArea",
666
- "type": "boolean"
667
- },
668
- {
669
- "name": "min",
670
- "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
671
- "type": "number"
672
- },
673
- {
674
- "name": "max",
675
- "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
676
- "type": "number"
677
- },
678
- {
679
- "name": "xField",
680
- "description": "",
681
- "default": "\"0\"",
682
- "type": "string"
683
- },
684
- {
685
- "name": "yField",
686
- "description": "",
687
- "default": "\"1\"",
688
- "type": "string"
689
- },
690
- {
691
- "name": "data",
692
- "attribute": false,
693
- "type": "Record<string, number>[]"
694
- }
695
- ],
696
- "events": [],
697
- "slots": [],
698
- "methods": [],
699
- "parts": [],
700
- "description": "构件 `ai-portal.stat-with-mini-chart`"
701
- },
702
652
  {
703
653
  "name": "ai-portal.page-container",
704
654
  "properties": [
@@ -780,20 +730,6 @@
780
730
  ],
781
731
  "description": "构件 `ai-portal.tab-list`"
782
732
  },
783
- {
784
- "name": "ai-portal.home-container",
785
- "properties": [
786
- {
787
- "name": "sticky",
788
- "type": "boolean"
789
- }
790
- ],
791
- "events": [],
792
- "slots": [],
793
- "methods": [],
794
- "parts": [],
795
- "description": "构件 `ai-portal.home-container`"
796
- },
797
733
  {
798
734
  "name": "ai-portal.dropdown-select",
799
735
  "properties": [
@@ -871,109 +807,114 @@
871
807
  "description": "构件 `ai-portal.preview-container`"
872
808
  },
873
809
  {
874
- "name": "ai-portal.action-buttons",
810
+ "name": "ai-portal.chat-box",
875
811
  "properties": [
876
812
  {
877
- "name": "items",
878
- "attribute": false,
879
- "type": "ActionItem[]"
813
+ "name": "disabled",
814
+ "type": "boolean"
880
815
  },
881
816
  {
882
- "name": "activeKey",
883
- "type": "string | null"
884
- }
885
- ],
886
- "events": [
887
- {
888
- "name": "change",
889
- "detail": {
890
- "type": "ActionItem | null"
891
- }
892
- }
893
- ],
894
- "slots": [],
895
- "methods": [],
896
- "parts": [],
897
- "description": "构件 `ai-portal.action-buttons`"
898
- },
899
- {
900
- "name": "ai-portal.project-conversations",
901
- "properties": [
817
+ "name": "placeholder",
818
+ "type": "string"
819
+ },
902
820
  {
903
- "name": "list",
904
- "attribute": false,
905
- "type": "Conversation[]"
821
+ "name": "autoFocus",
822
+ "type": "boolean"
906
823
  },
907
824
  {
908
- "name": "urlTemplate",
909
- "type": "string"
825
+ "name": "aiEmployees",
826
+ "attribute": false,
827
+ "type": "AIEmployee[]"
910
828
  },
911
829
  {
912
- "name": "actions",
830
+ "name": "commands",
913
831
  "attribute": false,
914
- "type": "ActionType[]"
832
+ "type": "Command[]"
915
833
  },
916
834
  {
917
- "name": "goals",
835
+ "name": "uploadOptions",
918
836
  "attribute": false,
919
- "type": "Goal[]"
837
+ "type": "UploadOptions"
920
838
  }
921
839
  ],
922
840
  "events": [
923
841
  {
924
- "name": "goal.click",
842
+ "name": "message.submit",
843
+ "description": "",
844
+ "deprecated": "Use `chat.submit` event instead",
925
845
  "detail": {
926
- "type": "Conversation"
846
+ "type": "string"
927
847
  }
928
848
  },
929
849
  {
930
- "name": "action.click",
850
+ "name": "chat.submit",
931
851
  "detail": {
932
- "type": "ActionClickDetail"
852
+ "type": "ChatPayload"
933
853
  }
934
854
  }
935
855
  ],
936
856
  "slots": [],
857
+ "methods": [
858
+ {
859
+ "name": "setValue",
860
+ "params": [
861
+ {
862
+ "name": "value",
863
+ "type": "string"
864
+ }
865
+ ]
866
+ },
867
+ {
868
+ "name": "getValue",
869
+ "params": []
870
+ },
871
+ {
872
+ "name": "focusOnInput",
873
+ "params": []
874
+ }
875
+ ],
876
+ "parts": [],
877
+ "description": "大型聊天输入框,用于首页"
878
+ },
879
+ {
880
+ "name": "ai-portal.home-container",
881
+ "properties": [
882
+ {
883
+ "name": "sticky",
884
+ "type": "boolean"
885
+ }
886
+ ],
887
+ "events": [],
888
+ "slots": [],
937
889
  "methods": [],
938
890
  "parts": [],
939
- "description": "构件 `ai-portal.project-conversations`"
891
+ "description": "构件 `ai-portal.home-container`"
940
892
  },
941
893
  {
942
- "name": "ai-portal.project-knowledges",
894
+ "name": "ai-portal.action-buttons",
943
895
  "properties": [
944
896
  {
945
- "name": "list",
897
+ "name": "items",
946
898
  "attribute": false,
947
- "type": "Knowledge[]"
948
- },
949
- {
950
- "name": "urlTemplate",
951
- "type": "string"
899
+ "type": "ActionItem[]"
952
900
  },
953
901
  {
954
- "name": "actions",
955
- "attribute": false,
956
- "type": "ActionType[]"
902
+ "name": "activeKey",
903
+ "type": "string | null"
957
904
  }
958
905
  ],
959
906
  "events": [
960
907
  {
961
- "name": "action.click",
962
- "detail": {
963
- "type": "ActionClickDetail"
964
- }
965
- },
966
- {
967
- "name": "item.click",
908
+ "name": "change",
968
909
  "detail": {
969
- "type": "Knowledge"
910
+ "type": "ActionItem | null"
970
911
  }
971
912
  }
972
913
  ],
973
914
  "slots": [],
974
915
  "methods": [],
975
916
  "parts": [],
976
- "description": "构件 `ai-portal.project-knowledges`"
917
+ "description": "构件 `ai-portal.action-buttons`"
977
918
  },
978
919
  {
979
920
  "name": "ai-portal.goal-card-list",
@@ -1038,6 +979,85 @@
1038
979
  "parts": [],
1039
980
  "description": "构件 `ai-portal.goal-card-list`"
1040
981
  },
982
+ {
983
+ "name": "ai-portal.project-conversations",
984
+ "properties": [
985
+ {
986
+ "name": "list",
987
+ "attribute": false,
988
+ "type": "Conversation[]"
989
+ },
990
+ {
991
+ "name": "urlTemplate",
992
+ "type": "string"
993
+ },
994
+ {
995
+ "name": "actions",
996
+ "attribute": false,
997
+ "type": "ActionType[]"
998
+ },
999
+ {
1000
+ "name": "goals",
1001
+ "attribute": false,
1002
+ "type": "Goal[]"
1003
+ }
1004
+ ],
1005
+ "events": [
1006
+ {
1007
+ "name": "goal.click",
1008
+ "detail": {
1009
+ "type": "Conversation"
1010
+ }
1011
+ },
1012
+ {
1013
+ "name": "action.click",
1014
+ "detail": {
1015
+ "type": "ActionClickDetail"
1016
+ }
1017
+ }
1018
+ ],
1019
+ "slots": [],
1020
+ "methods": [],
1021
+ "parts": [],
1022
+ "description": "构件 `ai-portal.project-conversations`"
1023
+ },
1024
+ {
1025
+ "name": "ai-portal.project-knowledges",
1026
+ "properties": [
1027
+ {
1028
+ "name": "list",
1029
+ "attribute": false,
1030
+ "type": "Knowledge[]"
1031
+ },
1032
+ {
1033
+ "name": "urlTemplate",
1034
+ "type": "string"
1035
+ },
1036
+ {
1037
+ "name": "actions",
1038
+ "attribute": false,
1039
+ "type": "ActionType[]"
1040
+ }
1041
+ ],
1042
+ "events": [
1043
+ {
1044
+ "name": "action.click",
1045
+ "detail": {
1046
+ "type": "ActionClickDetail"
1047
+ }
1048
+ },
1049
+ {
1050
+ "name": "item.click",
1051
+ "detail": {
1052
+ "type": "Knowledge"
1053
+ }
1054
+ }
1055
+ ],
1056
+ "slots": [],
1057
+ "methods": [],
1058
+ "parts": [],
1059
+ "description": "构件 `ai-portal.project-knowledges`"
1060
+ },
1041
1061
  {
1042
1062
  "name": "ai-portal.activity-timeline",
1043
1063
  "properties": [
@@ -1057,6 +1077,15 @@
1057
1077
  "parts": [],
1058
1078
  "description": "构件 `ai-portal.activity-timeline`"
1059
1079
  },
1080
+ {
1081
+ "name": "ai-portal.elevo-logo",
1082
+ "properties": [],
1083
+ "events": [],
1084
+ "slots": [],
1085
+ "methods": [],
1086
+ "parts": [],
1087
+ "description": "构件 `ai-portal.elevo-logo`"
1088
+ },
1060
1089
  {
1061
1090
  "name": "ai-portal.chat-input",
1062
1091
  "properties": [
@@ -1084,6 +1113,22 @@
1084
1113
  "name": "uploadOptions",
1085
1114
  "attribute": false,
1086
1115
  "type": "UploadOptions"
1116
+ },
1117
+ {
1118
+ "name": "aiEmployees",
1119
+ "attribute": false,
1120
+ "type": "AIEmployee[]"
1121
+ },
1122
+ {
1123
+ "name": "commands",
1124
+ "attribute": false,
1125
+ "type": "Command[]"
1126
+ },
1127
+ {
1128
+ "name": "suggestionsPlacement",
1129
+ "description": "",
1130
+ "default": "\"bottom\"",
1131
+ "type": "\"top\" | \"bottom\""
1087
1132
  }
1088
1133
  ],
1089
1134
  "events": [
@@ -1111,16 +1156,7 @@
1111
1156
  "slots": [],
1112
1157
  "methods": [],
1113
1158
  "parts": [],
1114
- "description": "构件 `ai-portal.chat-input`"
1115
- },
1116
- {
1117
- "name": "ai-portal.elevo-logo",
1118
- "properties": [],
1119
- "events": [],
1120
- "slots": [],
1121
- "methods": [],
1122
- "parts": [],
1123
- "description": "构件 `ai-portal.elevo-logo`"
1159
+ "description": "小型聊天输入框,用于对话等页面"
1124
1160
  },
1125
1161
  {
1126
1162
  "name": "ai-portal.show-case",