@next-bricks/ai-portal 0.60.3 → 0.61.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.
Files changed (63) hide show
  1. package/dist/bricks.json +22 -21
  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/action-buttons.68666920.js.map +1 -1
  13. package/dist/chunks/chat-box.3a31adcd.js +3 -0
  14. package/dist/chunks/chat-box.3a31adcd.js.map +1 -0
  15. package/dist/chunks/chat-input.8d663f4e.js +3 -0
  16. package/dist/chunks/chat-input.8d663f4e.js.LICENSE.txt +1 -0
  17. package/dist/chunks/chat-input.8d663f4e.js.map +1 -0
  18. package/dist/chunks/chat-stream.d3cde350.js +2 -0
  19. package/dist/chunks/chat-stream.d3cde350.js.map +1 -0
  20. package/dist/chunks/cruise-canvas.c1a7bc9f.js +2 -0
  21. package/dist/chunks/cruise-canvas.c1a7bc9f.js.map +1 -0
  22. package/dist/chunks/dropdown-select.336442ba.js.map +1 -1
  23. package/dist/chunks/home-container.f1829834.js.map +1 -1
  24. package/dist/chunks/icon-button.66d6d83a.js.map +1 -1
  25. package/dist/chunks/{main.fc9fd5d4.js → main.08d6c690.js} +2 -2
  26. package/dist/chunks/{main.fc9fd5d4.js.map → main.08d6c690.js.map} +1 -1
  27. package/dist/examples.json +12 -12
  28. package/dist/{index.f2850973.js → index.cd8279e0.js} +2 -2
  29. package/dist/{index.f2850973.js.map → index.cd8279e0.js.map} +1 -1
  30. package/dist/manifest.json +196 -160
  31. package/dist/types.json +667 -660
  32. package/dist-types/action-buttons/index.d.ts +1 -2
  33. package/dist-types/chat-box/index.d.ts +3 -10
  34. package/dist-types/chat-input/i18n.d.ts +3 -1
  35. package/dist-types/chat-input/index.d.ts +16 -1
  36. package/dist-types/chat-stream/ChatStream.d.ts +1 -1
  37. package/dist-types/chat-stream/index.d.ts +6 -0
  38. package/dist-types/cruise-canvas/CruiseCanvas.d.ts +1 -1
  39. package/dist-types/cruise-canvas/index.d.ts +6 -0
  40. package/dist-types/dropdown-select/index.d.ts +1 -2
  41. package/dist-types/home-container/index.d.ts +4 -1
  42. package/dist-types/icon-button/index.d.ts +5 -4
  43. package/dist-types/jsx.d.ts +81 -22
  44. package/dist-types/shared/ChatCompletions/useChatCompletions.d.ts +65 -0
  45. package/dist-types/shared/TaskContext.d.ts +3 -0
  46. package/dist-types/shared/interfaces.d.ts +1 -1
  47. package/package.json +2 -2
  48. package/dist/chunks/1480.0de951a3.js.map +0 -1
  49. package/dist/chunks/2232.085b8abd.js.map +0 -1
  50. package/dist/chunks/2324.a4a90c77.js +0 -2
  51. package/dist/chunks/2324.a4a90c77.js.map +0 -1
  52. package/dist/chunks/5712.f692e3f5.js.map +0 -1
  53. package/dist/chunks/6792.03e66697.js +0 -2
  54. package/dist/chunks/6792.03e66697.js.map +0 -1
  55. package/dist/chunks/chat-box.a8e58e50.js +0 -3
  56. package/dist/chunks/chat-box.a8e58e50.js.map +0 -1
  57. package/dist/chunks/chat-input.e999f79c.js +0 -2
  58. package/dist/chunks/chat-input.e999f79c.js.map +0 -1
  59. package/dist/chunks/chat-stream.8d8dc5a0.js +0 -2
  60. package/dist/chunks/chat-stream.8d8dc5a0.js.map +0 -1
  61. package/dist/chunks/cruise-canvas.4a0692fb.js +0 -2
  62. package/dist/chunks/cruise-canvas.4a0692fb.js.map +0 -1
  63. /package/dist/chunks/{chat-box.a8e58e50.js.LICENSE.txt → chat-box.3a31adcd.js.LICENSE.txt} +0 -0
@@ -71,7 +71,7 @@
71
71
  }
72
72
  ],
73
73
  "parts": [],
74
- "description": "构件 `ai-portal.chat-box`"
74
+ "description": "大型聊天输入框,用于首页"
75
75
  },
76
76
  {
77
77
  "name": "ai-portal.cruise-canvas",
@@ -156,6 +156,16 @@
156
156
  "name": "separateInstructions",
157
157
  "type": "boolean"
158
158
  },
159
+ {
160
+ "name": "aiEmployees",
161
+ "attribute": false,
162
+ "type": "AIEmployee[]"
163
+ },
164
+ {
165
+ "name": "commands",
166
+ "attribute": false,
167
+ "type": "Command[]"
168
+ },
159
169
  {
160
170
  "name": "uploadOptions",
161
171
  "attribute": false,
@@ -227,6 +237,81 @@
227
237
  "parts": [],
228
238
  "description": "构件 `ai-portal.cruise-canvas`"
229
239
  },
240
+ {
241
+ "name": "ai-portal.home-container",
242
+ "properties": [
243
+ {
244
+ "name": "sticky",
245
+ "type": "boolean"
246
+ }
247
+ ],
248
+ "events": [],
249
+ "slots": [],
250
+ "methods": [],
251
+ "parts": [],
252
+ "description": "构件 `ai-portal.home-container`"
253
+ },
254
+ {
255
+ "name": "ai-portal.stat-with-mini-chart",
256
+ "properties": [
257
+ {
258
+ "name": "label",
259
+ "type": "string"
260
+ },
261
+ {
262
+ "name": "value",
263
+ "type": "string"
264
+ },
265
+ {
266
+ "name": "size",
267
+ "description": "",
268
+ "default": "\"medium\"",
269
+ "type": "\"medium\" | \"small\""
270
+ },
271
+ {
272
+ "name": "lineColor",
273
+ "description": "",
274
+ "default": "\"var(--color-brand)\"",
275
+ "type": "string"
276
+ },
277
+ {
278
+ "name": "showArea",
279
+ "type": "boolean"
280
+ },
281
+ {
282
+ "name": "min",
283
+ "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
284
+ "type": "number"
285
+ },
286
+ {
287
+ "name": "max",
288
+ "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
289
+ "type": "number"
290
+ },
291
+ {
292
+ "name": "xField",
293
+ "description": "",
294
+ "default": "\"0\"",
295
+ "type": "string"
296
+ },
297
+ {
298
+ "name": "yField",
299
+ "description": "",
300
+ "default": "\"1\"",
301
+ "type": "string"
302
+ },
303
+ {
304
+ "name": "data",
305
+ "attribute": false,
306
+ "type": "Record<string, number>[]"
307
+ }
308
+ ],
309
+ "events": [],
310
+ "slots": [],
311
+ "methods": [],
312
+ "parts": [],
313
+ "description": "构件 `ai-portal.stat-with-mini-chart`"
314
+ },
230
315
  {
231
316
  "name": "ai-portal.elevo-sidebar",
232
317
  "properties": [
@@ -369,7 +454,7 @@
369
454
  {
370
455
  "name": "icon",
371
456
  "attribute": false,
372
- "type": "GeneralIconProps"
457
+ "type": "(GeneralIconProps & HTMLAttributes<GeneralIcon>)"
373
458
  },
374
459
  {
375
460
  "name": "tooltip",
@@ -437,34 +522,6 @@
437
522
  "parts": [],
438
523
  "description": "构件 `ai-portal.mcp-tools`"
439
524
  },
440
- {
441
- "name": "ai-portal.ai-employees",
442
- "properties": [
443
- {
444
- "name": "list",
445
- "attribute": false,
446
- "type": "Employee[]"
447
- },
448
- {
449
- "name": "industries",
450
- "attribute": false,
451
- "type": "string[]"
452
- },
453
- {
454
- "name": "urlTemplate",
455
- "type": "string"
456
- },
457
- {
458
- "name": "stickyTop",
459
- "type": "number"
460
- }
461
- ],
462
- "events": [],
463
- "slots": [],
464
- "methods": [],
465
- "parts": [],
466
- "description": "构件 `ai-portal.ai-employees`"
467
- },
468
525
  {
469
526
  "name": "ai-portal.chat-stream",
470
527
  "properties": [
@@ -536,6 +593,16 @@
536
593
  "name": "tryItOutUrl",
537
594
  "type": "string"
538
595
  },
596
+ {
597
+ "name": "aiEmployees",
598
+ "attribute": false,
599
+ "type": "AIEmployee[]"
600
+ },
601
+ {
602
+ "name": "commands",
603
+ "attribute": false,
604
+ "type": "Command[]"
605
+ },
539
606
  {
540
607
  "name": "uploadOptions",
541
608
  "attribute": false,
@@ -614,90 +681,57 @@
614
681
  "description": "构件 `ai-portal.chat-stream`"
615
682
  },
616
683
  {
617
- "name": "ai-portal.ai-agents",
684
+ "name": "ai-portal.ai-employees",
618
685
  "properties": [
619
686
  {
620
687
  "name": "list",
621
688
  "attribute": false,
622
- "type": "Agent[]"
689
+ "type": "Employee[]"
690
+ },
691
+ {
692
+ "name": "industries",
693
+ "attribute": false,
694
+ "type": "string[]"
623
695
  },
624
696
  {
625
697
  "name": "urlTemplate",
626
698
  "type": "string"
627
699
  },
628
700
  {
629
- "name": "withContainer",
630
- "description": "",
631
- "deprecated": true,
632
- "default": "true"
701
+ "name": "stickyTop",
702
+ "type": "number"
633
703
  }
634
704
  ],
635
705
  "events": [],
636
706
  "slots": [],
637
707
  "methods": [],
638
708
  "parts": [],
639
- "description": "构件 `ai-portal.ai-agents`"
709
+ "description": "构件 `ai-portal.ai-employees`"
640
710
  },
641
711
  {
642
- "name": "ai-portal.stat-with-mini-chart",
712
+ "name": "ai-portal.ai-agents",
643
713
  "properties": [
644
714
  {
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"
715
+ "name": "list",
716
+ "attribute": false,
717
+ "type": "Agent[]"
677
718
  },
678
719
  {
679
- "name": "xField",
680
- "description": "",
681
- "default": "\"0\"",
720
+ "name": "urlTemplate",
682
721
  "type": "string"
683
722
  },
684
723
  {
685
- "name": "yField",
724
+ "name": "withContainer",
686
725
  "description": "",
687
- "default": "\"1\"",
688
- "type": "string"
689
- },
690
- {
691
- "name": "data",
692
- "attribute": false,
693
- "type": "Record<string, number>[]"
726
+ "deprecated": true,
727
+ "default": "true"
694
728
  }
695
729
  ],
696
730
  "events": [],
697
731
  "slots": [],
698
732
  "methods": [],
699
733
  "parts": [],
700
- "description": "构件 `ai-portal.stat-with-mini-chart`"
734
+ "description": "构件 `ai-portal.ai-agents`"
701
735
  },
702
736
  {
703
737
  "name": "ai-portal.page-container",
@@ -780,20 +814,6 @@
780
814
  ],
781
815
  "description": "构件 `ai-portal.tab-list`"
782
816
  },
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
817
  {
798
818
  "name": "ai-portal.dropdown-select",
799
819
  "properties": [
@@ -896,6 +916,69 @@
896
916
  "parts": [],
897
917
  "description": "构件 `ai-portal.action-buttons`"
898
918
  },
919
+ {
920
+ "name": "ai-portal.goal-card-list",
921
+ "properties": [
922
+ {
923
+ "name": "goalList",
924
+ "attribute": false,
925
+ "type": "GoalItem[]"
926
+ },
927
+ {
928
+ "name": "cardStyle",
929
+ "attribute": false,
930
+ "type": "React.CSSProperties"
931
+ },
932
+ {
933
+ "name": "activeKey",
934
+ "type": "string"
935
+ }
936
+ ],
937
+ "events": [
938
+ {
939
+ "name": "item.click",
940
+ "detail": {
941
+ "type": "GoalItem"
942
+ }
943
+ },
944
+ {
945
+ "name": "item.status.change",
946
+ "detail": {
947
+ "type": "GoalItem"
948
+ }
949
+ },
950
+ {
951
+ "name": "item.title.change",
952
+ "detail": {
953
+ "type": "GoalItem"
954
+ }
955
+ },
956
+ {
957
+ "name": "item.new.chat",
958
+ "detail": {
959
+ "type": "GoalItem"
960
+ }
961
+ }
962
+ ],
963
+ "slots": [],
964
+ "methods": [
965
+ {
966
+ "name": "appendChildDone",
967
+ "params": [
968
+ {
969
+ "name": "pendingId",
970
+ "type": "string"
971
+ },
972
+ {
973
+ "name": "newItem",
974
+ "type": "GoalItem"
975
+ }
976
+ ]
977
+ }
978
+ ],
979
+ "parts": [],
980
+ "description": "构件 `ai-portal.goal-card-list`"
981
+ },
899
982
  {
900
983
  "name": "ai-portal.project-conversations",
901
984
  "properties": [
@@ -975,69 +1058,6 @@
975
1058
  "parts": [],
976
1059
  "description": "构件 `ai-portal.project-knowledges`"
977
1060
  },
978
- {
979
- "name": "ai-portal.goal-card-list",
980
- "properties": [
981
- {
982
- "name": "goalList",
983
- "attribute": false,
984
- "type": "GoalItem[]"
985
- },
986
- {
987
- "name": "cardStyle",
988
- "attribute": false,
989
- "type": "React.CSSProperties"
990
- },
991
- {
992
- "name": "activeKey",
993
- "type": "string"
994
- }
995
- ],
996
- "events": [
997
- {
998
- "name": "item.click",
999
- "detail": {
1000
- "type": "GoalItem"
1001
- }
1002
- },
1003
- {
1004
- "name": "item.status.change",
1005
- "detail": {
1006
- "type": "GoalItem"
1007
- }
1008
- },
1009
- {
1010
- "name": "item.title.change",
1011
- "detail": {
1012
- "type": "GoalItem"
1013
- }
1014
- },
1015
- {
1016
- "name": "item.new.chat",
1017
- "detail": {
1018
- "type": "GoalItem"
1019
- }
1020
- }
1021
- ],
1022
- "slots": [],
1023
- "methods": [
1024
- {
1025
- "name": "appendChildDone",
1026
- "params": [
1027
- {
1028
- "name": "pendingId",
1029
- "type": "string"
1030
- },
1031
- {
1032
- "name": "newItem",
1033
- "type": "GoalItem"
1034
- }
1035
- ]
1036
- }
1037
- ],
1038
- "parts": [],
1039
- "description": "构件 `ai-portal.goal-card-list`"
1040
- },
1041
1061
  {
1042
1062
  "name": "ai-portal.activity-timeline",
1043
1063
  "properties": [
@@ -1084,6 +1104,22 @@
1084
1104
  "name": "uploadOptions",
1085
1105
  "attribute": false,
1086
1106
  "type": "UploadOptions"
1107
+ },
1108
+ {
1109
+ "name": "aiEmployees",
1110
+ "attribute": false,
1111
+ "type": "AIEmployee[]"
1112
+ },
1113
+ {
1114
+ "name": "commands",
1115
+ "attribute": false,
1116
+ "type": "Command[]"
1117
+ },
1118
+ {
1119
+ "name": "suggestionsPlacement",
1120
+ "description": "",
1121
+ "default": "\"bottom\"",
1122
+ "type": "\"top\" | \"bottom\""
1087
1123
  }
1088
1124
  ],
1089
1125
  "events": [
@@ -1111,7 +1147,7 @@
1111
1147
  "slots": [],
1112
1148
  "methods": [],
1113
1149
  "parts": [],
1114
- "description": "构件 `ai-portal.chat-input`"
1150
+ "description": "小型聊天输入框,用于对话等页面"
1115
1151
  },
1116
1152
  {
1117
1153
  "name": "ai-portal.elevo-logo",