@next-bricks/ai-portal 0.65.7 → 0.65.8

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,20 @@
3
3
  "package": "@next-bricks/ai-portal",
4
4
  "name": "ai-portal",
5
5
  "bricks": [
6
+ {
7
+ "name": "ai-portal.home-container",
8
+ "properties": [
9
+ {
10
+ "name": "sticky",
11
+ "type": "boolean"
12
+ }
13
+ ],
14
+ "events": [],
15
+ "slots": [],
16
+ "methods": [],
17
+ "parts": [],
18
+ "description": "构件 `ai-portal.home-container`"
19
+ },
6
20
  {
7
21
  "name": "ai-portal.cruise-canvas",
8
22
  "properties": [
@@ -168,119 +182,215 @@
168
182
  "description": "构件 `ai-portal.cruise-canvas`"
169
183
  },
170
184
  {
171
- "name": "ai-portal.stat-with-mini-chart",
185
+ "name": "ai-portal.icon-button",
172
186
  "properties": [
173
187
  {
174
- "name": "label",
188
+ "name": "icon",
189
+ "attribute": false,
190
+ "type": "(GeneralIconProps & HTMLAttributes<GeneralIcon>)"
191
+ },
192
+ {
193
+ "name": "tooltip",
175
194
  "type": "string"
176
195
  },
177
196
  {
178
- "name": "value",
197
+ "name": "tooltipHoist",
198
+ "type": "boolean"
199
+ },
200
+ {
201
+ "name": "active",
202
+ "type": "boolean"
203
+ },
204
+ {
205
+ "name": "disabled",
206
+ "type": "boolean"
207
+ },
208
+ {
209
+ "name": "variant",
210
+ "type": "IconButtonVariant"
211
+ },
212
+ {
213
+ "name": "reduceIconSize",
214
+ "description": "是否缩小图标尺寸(部分 easyops 图标过大)",
215
+ "type": "boolean"
216
+ }
217
+ ],
218
+ "events": [],
219
+ "slots": [],
220
+ "methods": [],
221
+ "parts": [],
222
+ "description": "构件 `ai-portal.icon-button`"
223
+ },
224
+ {
225
+ "name": "ai-portal.elevo-sidebar",
226
+ "properties": [
227
+ {
228
+ "name": "userInstanceId",
179
229
  "type": "string"
180
230
  },
181
231
  {
182
- "name": "size",
183
- "description": "",
184
- "default": "\"medium\"",
185
- "type": "\"medium\" | \"small\""
232
+ "name": "behavior",
233
+ "type": "\"default\" | \"drawer\""
186
234
  },
187
235
  {
188
- "name": "lineColor",
189
- "description": "",
190
- "default": "\"var(--color-brand)\"",
236
+ "name": "logoUrl",
191
237
  "type": "string"
192
238
  },
193
239
  {
194
- "name": "showArea",
240
+ "name": "newChatUrl",
241
+ "type": "string"
242
+ },
243
+ {
244
+ "name": "newChatLinkWhenCollapsed",
195
245
  "type": "boolean"
196
246
  },
197
247
  {
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"
248
+ "name": "historyUrlTemplate",
249
+ "type": "string"
201
250
  },
202
251
  {
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"
252
+ "name": "historyActions",
253
+ "attribute": false,
254
+ "type": "ActionType[]"
206
255
  },
207
256
  {
208
- "name": "xField",
209
- "description": "",
210
- "default": "\"0\"",
257
+ "name": "showProjects",
258
+ "type": "boolean"
259
+ },
260
+ {
261
+ "name": "projectUrlTemplate",
211
262
  "type": "string"
212
263
  },
213
264
  {
214
- "name": "yField",
265
+ "name": "projectActions",
266
+ "attribute": false,
267
+ "type": "ActionType[]"
268
+ },
269
+ {
270
+ "name": "personalActions",
271
+ "attribute": false,
272
+ "type": "ActionType[]"
273
+ },
274
+ {
275
+ "name": "links",
276
+ "attribute": false,
277
+ "type": "SidebarLink[]"
278
+ },
279
+ {
280
+ "name": "canAddProject",
281
+ "type": "boolean",
282
+ "default": "true"
283
+ },
284
+ {
285
+ "name": "myLinks",
286
+ "attribute": false,
287
+ "type": "SidebarLink[]"
288
+ },
289
+ {
290
+ "name": "scope",
215
291
  "description": "",
216
- "default": "\"1\"",
217
- "type": "string"
292
+ "default": "\"default\"",
293
+ "type": "\"default\" | \"space\""
218
294
  },
219
295
  {
220
- "name": "data",
296
+ "name": "spaceNav",
221
297
  "attribute": false,
222
- "type": "Record<string, number>[]"
298
+ "type": "SpaceNavProps"
223
299
  }
224
300
  ],
225
- "events": [],
226
- "slots": [],
227
- "methods": [],
228
- "parts": [],
229
- "description": "构件 `ai-portal.stat-with-mini-chart`"
230
- },
231
- {
232
- "name": "ai-portal.home-container",
233
- "properties": [
301
+ "events": [
234
302
  {
235
- "name": "sticky",
236
- "type": "boolean"
303
+ "name": "logout",
304
+ "detail": {
305
+ "type": "void"
306
+ }
307
+ },
308
+ {
309
+ "name": "action.click",
310
+ "description": "点击对话历史操作按钮时触发",
311
+ "detail": {
312
+ "type": "ActionClickDetail"
313
+ }
314
+ },
315
+ {
316
+ "name": "project.action.click",
317
+ "description": "点击项目操作按钮时触发",
318
+ "detail": {
319
+ "type": "ProjectActionClickDetail"
320
+ }
321
+ },
322
+ {
323
+ "name": "add.project",
324
+ "detail": {
325
+ "type": "void"
326
+ }
327
+ },
328
+ {
329
+ "name": "add.serviceflow",
330
+ "detail": {
331
+ "type": "void"
332
+ }
333
+ },
334
+ {
335
+ "name": "personal.action.click",
336
+ "description": "点击个人操作按钮时触发",
337
+ "detail": {
338
+ "type": "PersonalActionClickDetail"
339
+ }
237
340
  }
238
341
  ],
239
- "events": [],
240
342
  "slots": [],
241
- "methods": [],
242
- "parts": [],
243
- "description": "构件 `ai-portal.home-container`"
244
- },
245
- {
246
- "name": "ai-portal.icon-button",
247
- "properties": [
248
- {
249
- "name": "icon",
250
- "attribute": false,
251
- "type": "(GeneralIconProps & HTMLAttributes<GeneralIcon>)"
252
- },
343
+ "methods": [
253
344
  {
254
- "name": "tooltip",
255
- "type": "string"
345
+ "name": "pullHistory",
346
+ "params": [
347
+ {
348
+ "name": "delay",
349
+ "description": "Delay in milliseconds before pulling the latest chat history.",
350
+ "type": "number"
351
+ }
352
+ ],
353
+ "description": "",
354
+ "returns": {}
256
355
  },
257
356
  {
258
- "name": "tooltipHoist",
259
- "type": "boolean"
357
+ "name": "open",
358
+ "params": []
260
359
  },
261
360
  {
262
- "name": "active",
263
- "type": "boolean"
361
+ "name": "close",
362
+ "params": []
264
363
  },
265
364
  {
266
- "name": "disabled",
267
- "type": "boolean"
365
+ "name": "removeProject",
366
+ "params": [
367
+ {
368
+ "name": "projectId",
369
+ "type": "string"
370
+ }
371
+ ]
268
372
  },
269
373
  {
270
- "name": "variant",
271
- "type": "IconButtonVariant"
374
+ "name": "addProject",
375
+ "params": [
376
+ {
377
+ "name": "project",
378
+ "type": "Project"
379
+ }
380
+ ]
272
381
  },
273
382
  {
274
- "name": "reduceIconSize",
275
- "description": "是否缩小图标尺寸(部分 easyops 图标过大)",
276
- "type": "boolean"
383
+ "name": "moveConversation",
384
+ "params": [
385
+ {
386
+ "name": "conversationId",
387
+ "type": "string"
388
+ }
389
+ ]
277
390
  }
278
391
  ],
279
- "events": [],
280
- "slots": [],
281
- "methods": [],
282
392
  "parts": [],
283
- "description": "构件 `ai-portal.icon-button`"
393
+ "description": "构件 `ai-portal.elevo-sidebar`"
284
394
  },
285
395
  {
286
396
  "name": "ai-portal.show-cases",
@@ -321,32 +431,74 @@
321
431
  "description": "构件 `ai-portal.mcp-tools`"
322
432
  },
323
433
  {
324
- "name": "ai-portal.ai-employees",
434
+ "name": "ai-portal.chat-box",
325
435
  "properties": [
326
436
  {
327
- "name": "list",
437
+ "name": "disabled",
438
+ "type": "boolean"
439
+ },
440
+ {
441
+ "name": "placeholder",
442
+ "type": "string"
443
+ },
444
+ {
445
+ "name": "autoFocus",
446
+ "type": "boolean"
447
+ },
448
+ {
449
+ "name": "aiEmployees",
328
450
  "attribute": false,
329
- "type": "Employee[]"
451
+ "type": "AIEmployee[]"
330
452
  },
331
453
  {
332
- "name": "industries",
454
+ "name": "commands",
333
455
  "attribute": false,
334
- "type": "string[]"
456
+ "type": "Command[]"
335
457
  },
336
458
  {
337
- "name": "urlTemplate",
338
- "type": "string"
459
+ "name": "uploadOptions",
460
+ "attribute": false,
461
+ "type": "UploadOptions"
462
+ }
463
+ ],
464
+ "events": [
465
+ {
466
+ "name": "message.submit",
467
+ "description": "",
468
+ "deprecated": "Use `chat.submit` event instead",
469
+ "detail": {
470
+ "type": "string"
471
+ }
339
472
  },
340
473
  {
341
- "name": "stickyTop",
342
- "type": "number"
474
+ "name": "chat.submit",
475
+ "detail": {
476
+ "type": "ChatPayload"
477
+ }
343
478
  }
344
479
  ],
345
- "events": [],
346
480
  "slots": [],
347
- "methods": [],
481
+ "methods": [
482
+ {
483
+ "name": "setValue",
484
+ "params": [
485
+ {
486
+ "name": "value",
487
+ "type": "string"
488
+ }
489
+ ]
490
+ },
491
+ {
492
+ "name": "getValue",
493
+ "params": []
494
+ },
495
+ {
496
+ "name": "focusOnInput",
497
+ "params": []
498
+ }
499
+ ],
348
500
  "parts": [],
349
- "description": "构件 `ai-portal.ai-employees`"
501
+ "description": "大型聊天输入框,用于首页"
350
502
  },
351
503
  {
352
504
  "name": "ai-portal.chat-stream",
@@ -506,6 +658,34 @@
506
658
  "parts": [],
507
659
  "description": "构件 `ai-portal.chat-stream`"
508
660
  },
661
+ {
662
+ "name": "ai-portal.ai-employees",
663
+ "properties": [
664
+ {
665
+ "name": "list",
666
+ "attribute": false,
667
+ "type": "Employee[]"
668
+ },
669
+ {
670
+ "name": "industries",
671
+ "attribute": false,
672
+ "type": "string[]"
673
+ },
674
+ {
675
+ "name": "urlTemplate",
676
+ "type": "string"
677
+ },
678
+ {
679
+ "name": "stickyTop",
680
+ "type": "number"
681
+ }
682
+ ],
683
+ "events": [],
684
+ "slots": [],
685
+ "methods": [],
686
+ "parts": [],
687
+ "description": "构件 `ai-portal.ai-employees`"
688
+ },
509
689
  {
510
690
  "name": "ai-portal.ai-agents",
511
691
  "properties": [
@@ -634,230 +814,120 @@
634
814
  "type": "boolean"
635
815
  },
636
816
  {
637
- "name": "searchPlaceholder",
638
- "attribute": false,
639
- "type": "string"
640
- },
641
- {
642
- "name": "dropdownContentStyle",
643
- "attribute": false,
644
- "type": "React.CSSProperties"
645
- },
646
- {
647
- "name": "dropdownMaxWidth",
648
- "description": "",
649
- "default": "\"500px\"",
650
- "attribute": false,
651
- "type": "string | number"
652
- },
653
- {
654
- "name": "showSearch",
655
- "description": "是否展示搜索框",
656
- "type": "boolean"
657
- }
658
- ],
659
- "events": [
660
- {
661
- "name": "change",
662
- "detail": {
663
- "type": "DropdownOptions"
664
- }
665
- }
666
- ],
667
- "slots": [],
668
- "methods": [],
669
- "parts": [],
670
- "description": "构件 `ai-portal.dropdown-select`"
671
- },
672
- {
673
- "name": "ai-portal.elevo-sidebar",
674
- "properties": [
675
- {
676
- "name": "userInstanceId",
677
- "type": "string"
678
- },
679
- {
680
- "name": "behavior",
681
- "type": "\"default\" | \"drawer\""
682
- },
683
- {
684
- "name": "logoUrl",
685
- "type": "string"
686
- },
687
- {
688
- "name": "newChatUrl",
689
- "type": "string"
690
- },
691
- {
692
- "name": "newChatLinkWhenCollapsed",
693
- "type": "boolean"
694
- },
695
- {
696
- "name": "historyUrlTemplate",
697
- "type": "string"
698
- },
699
- {
700
- "name": "historyActions",
701
- "attribute": false,
702
- "type": "ActionType[]"
703
- },
704
- {
705
- "name": "showProjects",
706
- "type": "boolean"
707
- },
708
- {
709
- "name": "projectUrlTemplate",
710
- "type": "string"
711
- },
712
- {
713
- "name": "projectActions",
714
- "attribute": false,
715
- "type": "ActionType[]"
716
- },
717
- {
718
- "name": "personalActions",
719
- "attribute": false,
720
- "type": "ActionType[]"
721
- },
722
- {
723
- "name": "links",
817
+ "name": "searchPlaceholder",
724
818
  "attribute": false,
725
- "type": "SidebarLink[]"
726
- },
727
- {
728
- "name": "canAddProject",
729
- "type": "boolean",
730
- "default": "true"
819
+ "type": "string"
731
820
  },
732
821
  {
733
- "name": "myLinks",
822
+ "name": "dropdownContentStyle",
734
823
  "attribute": false,
735
- "type": "SidebarLink[]"
824
+ "type": "React.CSSProperties"
736
825
  },
737
826
  {
738
- "name": "scope",
827
+ "name": "dropdownMaxWidth",
739
828
  "description": "",
740
- "default": "\"default\"",
741
- "type": "\"default\" | \"space\""
829
+ "default": "\"500px\"",
830
+ "attribute": false,
831
+ "type": "string | number"
742
832
  },
743
833
  {
744
- "name": "spaceNav",
745
- "attribute": false,
746
- "type": "SpaceNavProps"
834
+ "name": "showSearch",
835
+ "description": "是否展示搜索框",
836
+ "type": "boolean"
747
837
  }
748
838
  ],
749
839
  "events": [
750
840
  {
751
- "name": "logout",
841
+ "name": "change",
752
842
  "detail": {
753
- "type": "void"
843
+ "type": "DropdownOptions"
754
844
  }
755
- },
845
+ }
846
+ ],
847
+ "slots": [],
848
+ "methods": [],
849
+ "parts": [],
850
+ "description": "构件 `ai-portal.dropdown-select`"
851
+ },
852
+ {
853
+ "name": "ai-portal.preview-container",
854
+ "properties": [
756
855
  {
757
- "name": "action.click",
758
- "description": "点击对话历史操作按钮时触发",
759
- "detail": {
760
- "type": "ActionClickDetail"
761
- }
856
+ "name": "source",
857
+ "attribute": false,
858
+ "type": "string"
762
859
  },
763
860
  {
764
- "name": "project.action.click",
765
- "description": "点击项目操作按钮时触发",
766
- "detail": {
767
- "type": "ProjectActionClickDetail"
768
- }
769
- },
861
+ "name": "url",
862
+ "type": "string"
863
+ }
864
+ ],
865
+ "events": [],
866
+ "slots": [],
867
+ "methods": [],
868
+ "parts": [],
869
+ "description": "构件 `ai-portal.preview-container`"
870
+ },
871
+ {
872
+ "name": "ai-portal.stat-with-mini-chart",
873
+ "properties": [
770
874
  {
771
- "name": "add.project",
772
- "detail": {
773
- "type": "void"
774
- }
875
+ "name": "label",
876
+ "type": "string"
775
877
  },
776
878
  {
777
- "name": "add.serviceflow",
778
- "detail": {
779
- "type": "void"
780
- }
879
+ "name": "value",
880
+ "type": "string"
781
881
  },
782
882
  {
783
- "name": "personal.action.click",
784
- "description": "点击个人操作按钮时触发",
785
- "detail": {
786
- "type": "PersonalActionClickDetail"
787
- }
788
- }
789
- ],
790
- "slots": [],
791
- "methods": [
792
- {
793
- "name": "pullHistory",
794
- "params": [
795
- {
796
- "name": "delay",
797
- "description": "Delay in milliseconds before pulling the latest chat history.",
798
- "type": "number"
799
- }
800
- ],
883
+ "name": "size",
801
884
  "description": "",
802
- "returns": {}
885
+ "default": "\"medium\"",
886
+ "type": "\"medium\" | \"small\""
803
887
  },
804
888
  {
805
- "name": "open",
806
- "params": []
889
+ "name": "lineColor",
890
+ "description": "",
891
+ "default": "\"var(--color-brand)\"",
892
+ "type": "string"
807
893
  },
808
894
  {
809
- "name": "close",
810
- "params": []
895
+ "name": "showArea",
896
+ "type": "boolean"
811
897
  },
812
898
  {
813
- "name": "removeProject",
814
- "params": [
815
- {
816
- "name": "projectId",
817
- "type": "string"
818
- }
819
- ]
899
+ "name": "min",
900
+ "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
901
+ "type": "number"
820
902
  },
821
903
  {
822
- "name": "addProject",
823
- "params": [
824
- {
825
- "name": "project",
826
- "type": "Project"
827
- }
828
- ]
904
+ "name": "max",
905
+ "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
906
+ "type": "number"
829
907
  },
830
908
  {
831
- "name": "moveConversation",
832
- "params": [
833
- {
834
- "name": "conversationId",
835
- "type": "string"
836
- }
837
- ]
838
- }
839
- ],
840
- "parts": [],
841
- "description": "构件 `ai-portal.elevo-sidebar`"
842
- },
843
- {
844
- "name": "ai-portal.preview-container",
845
- "properties": [
846
- {
847
- "name": "source",
848
- "attribute": false,
909
+ "name": "xField",
910
+ "description": "",
911
+ "default": "\"0\"",
849
912
  "type": "string"
850
913
  },
851
914
  {
852
- "name": "url",
915
+ "name": "yField",
916
+ "description": "",
917
+ "default": "\"1\"",
853
918
  "type": "string"
919
+ },
920
+ {
921
+ "name": "data",
922
+ "attribute": false,
923
+ "type": "Record<string, number>[]"
854
924
  }
855
925
  ],
856
926
  "events": [],
857
927
  "slots": [],
858
928
  "methods": [],
859
929
  "parts": [],
860
- "description": "构件 `ai-portal.preview-container`"
930
+ "description": "构件 `ai-portal.stat-with-mini-chart`"
861
931
  },
862
932
  {
863
933
  "name": "ai-portal.action-buttons",
@@ -1132,6 +1202,15 @@
1132
1202
  "parts": [],
1133
1203
  "description": "小型聊天输入框,用于对话等页面"
1134
1204
  },
1205
+ {
1206
+ "name": "ai-portal.elevo-logo",
1207
+ "properties": [],
1208
+ "events": [],
1209
+ "slots": [],
1210
+ "methods": [],
1211
+ "parts": [],
1212
+ "description": "构件 `ai-portal.elevo-logo`"
1213
+ },
1135
1214
  {
1136
1215
  "name": "ai-portal.show-case",
1137
1216
  "properties": [
@@ -1154,15 +1233,6 @@
1154
1233
  "parts": [],
1155
1234
  "description": "构件 `ai-portal.show-case`"
1156
1235
  },
1157
- {
1158
- "name": "ai-portal.elevo-logo",
1159
- "properties": [],
1160
- "events": [],
1161
- "slots": [],
1162
- "methods": [],
1163
- "parts": [],
1164
- "description": "构件 `ai-portal.elevo-logo`"
1165
- },
1166
1236
  {
1167
1237
  "name": "ai-portal.blank-state",
1168
1238
  "properties": [
@@ -1605,81 +1675,11 @@
1605
1675
  ],
1606
1676
  "parts": [],
1607
1677
  "description": "弹出式对话面板。"
1608
- },
1609
- {
1610
- "name": "ai-portal.chat-box",
1611
- "properties": [
1612
- {
1613
- "name": "disabled",
1614
- "type": "boolean"
1615
- },
1616
- {
1617
- "name": "placeholder",
1618
- "type": "string"
1619
- },
1620
- {
1621
- "name": "autoFocus",
1622
- "type": "boolean"
1623
- },
1624
- {
1625
- "name": "aiEmployees",
1626
- "attribute": false,
1627
- "type": "AIEmployee[]"
1628
- },
1629
- {
1630
- "name": "commands",
1631
- "attribute": false,
1632
- "type": "Command[]"
1633
- },
1634
- {
1635
- "name": "uploadOptions",
1636
- "attribute": false,
1637
- "type": "UploadOptions"
1638
- }
1639
- ],
1640
- "events": [
1641
- {
1642
- "name": "message.submit",
1643
- "description": "",
1644
- "deprecated": "Use `chat.submit` event instead",
1645
- "detail": {
1646
- "type": "string"
1647
- }
1648
- },
1649
- {
1650
- "name": "chat.submit",
1651
- "detail": {
1652
- "type": "ChatPayload"
1653
- }
1654
- }
1655
- ],
1656
- "slots": [],
1657
- "methods": [
1658
- {
1659
- "name": "setValue",
1660
- "params": [
1661
- {
1662
- "name": "value",
1663
- "type": "string"
1664
- }
1665
- ]
1666
- },
1667
- {
1668
- "name": "getValue",
1669
- "params": []
1670
- },
1671
- {
1672
- "name": "focusOnInput",
1673
- "params": []
1674
- }
1675
- ],
1676
- "parts": [],
1677
- "description": "大型聊天输入框,用于首页"
1678
1678
  }
1679
1679
  ],
1680
1680
  "providers": [
1681
1681
  {
1682
- "name": "ai-portal.set-chat-command"
1682
+ "name": "ai-portal.call-tool"
1683
1683
  },
1684
1684
  {
1685
1685
  "name": "ai-portal.save-request-store"
@@ -1691,7 +1691,7 @@
1691
1691
  "name": "ai-portal.clear-request-store"
1692
1692
  },
1693
1693
  {
1694
- "name": "ai-portal.call-tool"
1694
+ "name": "ai-portal.set-chat-command"
1695
1695
  }
1696
1696
  ]
1697
1697
  }