@next-bricks/ai-portal 0.39.7 → 0.40.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 (100) hide show
  1. package/dist/bricks.json +39 -26
  2. package/dist/chunks/3506.da6e43af.js +2 -0
  3. package/dist/chunks/3506.da6e43af.js.map +1 -0
  4. package/dist/chunks/3554.65e56ba5.js +2 -0
  5. package/dist/chunks/3554.65e56ba5.js.map +1 -0
  6. package/dist/chunks/{382.673901e0.js → 382.d2e3f46f.js} +2 -2
  7. package/dist/chunks/382.d2e3f46f.js.map +1 -0
  8. package/dist/chunks/453.e0c39d75.js +2 -0
  9. package/dist/chunks/453.e0c39d75.js.map +1 -0
  10. package/dist/chunks/{4837.ef36f6e2.js → 4837.e8c87fc9.js} +2 -2
  11. package/dist/chunks/{4837.ef36f6e2.js.map → 4837.e8c87fc9.js.map} +1 -1
  12. package/dist/chunks/6862.32630cc8.js +3 -0
  13. package/dist/chunks/6862.32630cc8.js.map +1 -0
  14. package/dist/chunks/7493.b181babb.js +2 -0
  15. package/dist/chunks/7493.b181babb.js.map +1 -0
  16. package/dist/chunks/7774.505f9191.js +2 -0
  17. package/dist/chunks/7774.505f9191.js.map +1 -0
  18. package/dist/chunks/8176.0dd744df.js +2 -0
  19. package/dist/chunks/8176.0dd744df.js.map +1 -0
  20. package/dist/chunks/9535.ff0f82a1.js +3 -0
  21. package/dist/chunks/9535.ff0f82a1.js.map +1 -0
  22. package/dist/chunks/{7218.13c19b72.js → 9599.ffd509c6.js} +2 -2
  23. package/dist/chunks/{7218.13c19b72.js.map → 9599.ffd509c6.js.map} +1 -1
  24. package/dist/chunks/activity-timeline.a7da73e9.js +2 -0
  25. package/dist/chunks/activity-timeline.a7da73e9.js.map +1 -0
  26. package/dist/chunks/chat-box.6ae456b3.js +2 -0
  27. package/dist/chunks/chat-box.6ae456b3.js.map +1 -0
  28. package/dist/chunks/chat-input.11a041ff.js +3 -0
  29. package/dist/chunks/chat-input.11a041ff.js.map +1 -0
  30. package/dist/chunks/goal-card-list.9866674c.js +3 -0
  31. package/dist/chunks/goal-card-list.9866674c.js.map +1 -0
  32. package/dist/chunks/main.41cfca3c.js +2 -0
  33. package/dist/chunks/{main.a10d6485.js.map → main.41cfca3c.js.map} +1 -1
  34. package/dist/chunks/preview-container.fa54ae91.js +2 -0
  35. package/dist/chunks/preview-container.fa54ae91.js.map +1 -0
  36. package/dist/chunks/project-conversations.d4771579.js +3 -0
  37. package/dist/chunks/project-conversations.d4771579.js.LICENSE.txt +5 -0
  38. package/dist/chunks/project-conversations.d4771579.js.map +1 -0
  39. package/dist/examples.json +20 -14
  40. package/dist/index.624ef877.js +2 -0
  41. package/dist/index.624ef877.js.map +1 -0
  42. package/dist/manifest.json +253 -186
  43. package/dist/types.json +1383 -333
  44. package/dist-types/activity-timeline/i18n.d.ts +25 -0
  45. package/dist-types/activity-timeline/index.d.ts +16 -0
  46. package/dist-types/activity-timeline/index.spec.d.ts +1 -0
  47. package/dist-types/activity-timeline/interfaces.d.ts +85 -0
  48. package/dist-types/bootstrap.d.ts +2 -0
  49. package/dist-types/chat-box/index.d.ts +1 -5
  50. package/dist-types/chat-input/i18n.d.ts +15 -0
  51. package/dist-types/chat-input/index.d.ts +30 -0
  52. package/dist-types/chat-input/index.spec.d.ts +1 -0
  53. package/dist-types/chat-stream/useConversationStream.d.ts +0 -2
  54. package/dist-types/chat-stream/useTaskStream.d.ts +0 -1
  55. package/dist-types/cruise-canvas/NodeJob/NodeJob.d.ts +2 -1
  56. package/dist-types/cruise-canvas/interfaces.d.ts +3 -1
  57. package/dist-types/cruise-canvas/useConversationDetail.d.ts +1 -1
  58. package/dist-types/cruise-canvas/useTaskDetail.d.ts +1 -1
  59. package/dist-types/project-conversations/index.d.ts +7 -1
  60. package/dist-types/shared/ChatBox/ChatBox.d.ts +1 -2
  61. package/dist-types/shared/ChatBox/i18n.d.ts +2 -6
  62. package/dist-types/shared/RequestHumanAction/RequestHumanAction.d.ts +4 -0
  63. package/dist-types/shared/TaskContext.d.ts +1 -1
  64. package/dist-types/shared/bricks.d.ts +2 -0
  65. package/dist-types/shared/interfaces.d.ts +3 -3
  66. package/docs/activity-timeline.md +54 -0
  67. package/docs/chat-input.md +9 -0
  68. package/package.json +2 -2
  69. package/dist/chunks/1967.118ab1ff.js +0 -2
  70. package/dist/chunks/1967.118ab1ff.js.map +0 -1
  71. package/dist/chunks/3554.d27ba6a7.js +0 -2
  72. package/dist/chunks/3554.d27ba6a7.js.map +0 -1
  73. package/dist/chunks/382.673901e0.js.map +0 -1
  74. package/dist/chunks/453.bb828a7c.js +0 -2
  75. package/dist/chunks/453.bb828a7c.js.map +0 -1
  76. package/dist/chunks/4994.58c51a7a.js +0 -2
  77. package/dist/chunks/4994.58c51a7a.js.map +0 -1
  78. package/dist/chunks/6977.3f6d97bc.js +0 -3
  79. package/dist/chunks/6977.3f6d97bc.js.map +0 -1
  80. package/dist/chunks/71.41081144.js +0 -2
  81. package/dist/chunks/71.41081144.js.map +0 -1
  82. package/dist/chunks/7774.4418c30b.js +0 -2
  83. package/dist/chunks/7774.4418c30b.js.map +0 -1
  84. package/dist/chunks/8794.dc43f083.js +0 -3
  85. package/dist/chunks/8794.dc43f083.js.map +0 -1
  86. package/dist/chunks/chat-box.95d5030b.js +0 -2
  87. package/dist/chunks/chat-box.95d5030b.js.map +0 -1
  88. package/dist/chunks/goal-card-list.4fdfa5cb.js +0 -3
  89. package/dist/chunks/goal-card-list.4fdfa5cb.js.map +0 -1
  90. package/dist/chunks/main.a10d6485.js +0 -2
  91. package/dist/chunks/preview-container.260a045a.js +0 -2
  92. package/dist/chunks/preview-container.260a045a.js.map +0 -1
  93. package/dist/chunks/project-conversations.972403a2.js +0 -3
  94. package/dist/chunks/project-conversations.972403a2.js.map +0 -1
  95. package/dist/index.6133ae77.js +0 -2
  96. package/dist/index.6133ae77.js.map +0 -1
  97. /package/dist/chunks/{6977.3f6d97bc.js.LICENSE.txt → 6862.32630cc8.js.LICENSE.txt} +0 -0
  98. /package/dist/chunks/{8794.dc43f083.js.LICENSE.txt → 9535.ff0f82a1.js.LICENSE.txt} +0 -0
  99. /package/dist/chunks/{goal-card-list.4fdfa5cb.js.LICENSE.txt → chat-input.11a041ff.js.LICENSE.txt} +0 -0
  100. /package/dist/chunks/{project-conversations.972403a2.js.LICENSE.txt → goal-card-list.9866674c.js.LICENSE.txt} +0 -0
@@ -3,49 +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
- "events": [
23
- {
24
- "name": "message.submit",
25
- "detail": {
26
- "type": "string"
27
- }
28
- }
29
- ],
30
- "slots": [],
31
- "methods": [
32
- {
33
- "name": "setValue",
34
- "params": [
35
- {
36
- "name": "value",
37
- "type": "string"
38
- }
39
- ]
40
- },
41
- {
42
- "name": "getValue",
43
- "params": []
44
- }
45
- ],
46
- "parts": [],
47
- "description": "构件 `ai-portal.chat-box`"
48
- },
49
6
  {
50
7
  "name": "ai-portal.cruise-canvas",
51
8
  "properties": [
@@ -181,76 +138,6 @@
181
138
  "parts": [],
182
139
  "description": "构件 `ai-portal.cruise-canvas`"
183
140
  },
184
- {
185
- "name": "ai-portal.home-container",
186
- "properties": [],
187
- "events": [],
188
- "slots": [],
189
- "methods": [],
190
- "parts": [],
191
- "description": "构件 `ai-portal.home-container`"
192
- },
193
- {
194
- "name": "ai-portal.stat-with-mini-chart",
195
- "properties": [
196
- {
197
- "name": "label",
198
- "type": "string"
199
- },
200
- {
201
- "name": "value",
202
- "type": "string"
203
- },
204
- {
205
- "name": "size",
206
- "description": "",
207
- "default": "\"medium\"",
208
- "type": "\"medium\" | \"small\""
209
- },
210
- {
211
- "name": "lineColor",
212
- "description": "",
213
- "default": "\"var(--color-brand)\"",
214
- "type": "string"
215
- },
216
- {
217
- "name": "showArea",
218
- "type": "boolean"
219
- },
220
- {
221
- "name": "min",
222
- "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
223
- "type": "number"
224
- },
225
- {
226
- "name": "max",
227
- "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
228
- "type": "number"
229
- },
230
- {
231
- "name": "xField",
232
- "description": "",
233
- "default": "\"0\"",
234
- "type": "string"
235
- },
236
- {
237
- "name": "yField",
238
- "description": "",
239
- "default": "\"1\"",
240
- "type": "string"
241
- },
242
- {
243
- "name": "data",
244
- "attribute": false,
245
- "type": "Record<string, number>[]"
246
- }
247
- ],
248
- "events": [],
249
- "slots": [],
250
- "methods": [],
251
- "parts": [],
252
- "description": "构件 `ai-portal.stat-with-mini-chart`"
253
- },
254
141
  {
255
142
  "name": "ai-portal.elevo-sidebar",
256
143
  "properties": [
@@ -391,6 +278,49 @@
391
278
  "parts": [],
392
279
  "description": "构件 `ai-portal.elevo-sidebar`"
393
280
  },
281
+ {
282
+ "name": "ai-portal.chat-box",
283
+ "properties": [
284
+ {
285
+ "name": "disabled",
286
+ "type": "boolean"
287
+ },
288
+ {
289
+ "name": "placeholder",
290
+ "type": "string"
291
+ },
292
+ {
293
+ "name": "autoFocus",
294
+ "type": "boolean"
295
+ }
296
+ ],
297
+ "events": [
298
+ {
299
+ "name": "message.submit",
300
+ "detail": {
301
+ "type": "string"
302
+ }
303
+ }
304
+ ],
305
+ "slots": [],
306
+ "methods": [
307
+ {
308
+ "name": "setValue",
309
+ "params": [
310
+ {
311
+ "name": "value",
312
+ "type": "string"
313
+ }
314
+ ]
315
+ },
316
+ {
317
+ "name": "getValue",
318
+ "params": []
319
+ }
320
+ ],
321
+ "parts": [],
322
+ "description": "构件 `ai-portal.chat-box`"
323
+ },
394
324
  {
395
325
  "name": "ai-portal.icon-button",
396
326
  "properties": [
@@ -458,6 +388,70 @@
458
388
  "parts": [],
459
389
  "description": "构件 `ai-portal.mcp-tools`"
460
390
  },
391
+ {
392
+ "name": "ai-portal.home-container",
393
+ "properties": [],
394
+ "events": [],
395
+ "slots": [],
396
+ "methods": [],
397
+ "parts": [],
398
+ "description": "构件 `ai-portal.home-container`"
399
+ },
400
+ {
401
+ "name": "ai-portal.ai-employees",
402
+ "properties": [
403
+ {
404
+ "name": "list",
405
+ "attribute": false,
406
+ "type": "Employee[]"
407
+ },
408
+ {
409
+ "name": "industries",
410
+ "attribute": false,
411
+ "type": "string[]"
412
+ },
413
+ {
414
+ "name": "urlTemplate",
415
+ "type": "string"
416
+ },
417
+ {
418
+ "name": "withContainer",
419
+ "description": "",
420
+ "deprecated": true,
421
+ "default": "true"
422
+ }
423
+ ],
424
+ "events": [],
425
+ "slots": [],
426
+ "methods": [],
427
+ "parts": [],
428
+ "description": "构件 `ai-portal.ai-employees`"
429
+ },
430
+ {
431
+ "name": "ai-portal.ai-agents",
432
+ "properties": [
433
+ {
434
+ "name": "list",
435
+ "attribute": false,
436
+ "type": "Agent[]"
437
+ },
438
+ {
439
+ "name": "urlTemplate",
440
+ "type": "string"
441
+ },
442
+ {
443
+ "name": "withContainer",
444
+ "description": "",
445
+ "deprecated": true,
446
+ "default": "true"
447
+ }
448
+ ],
449
+ "events": [],
450
+ "slots": [],
451
+ "methods": [],
452
+ "parts": [],
453
+ "description": "构件 `ai-portal.ai-agents`"
454
+ },
461
455
  {
462
456
  "name": "ai-portal.chat-stream",
463
457
  "properties": [
@@ -575,61 +569,6 @@
575
569
  "parts": [],
576
570
  "description": "构件 `ai-portal.chat-stream`"
577
571
  },
578
- {
579
- "name": "ai-portal.ai-employees",
580
- "properties": [
581
- {
582
- "name": "list",
583
- "attribute": false,
584
- "type": "Employee[]"
585
- },
586
- {
587
- "name": "industries",
588
- "attribute": false,
589
- "type": "string[]"
590
- },
591
- {
592
- "name": "urlTemplate",
593
- "type": "string"
594
- },
595
- {
596
- "name": "withContainer",
597
- "description": "",
598
- "deprecated": true,
599
- "default": "true"
600
- }
601
- ],
602
- "events": [],
603
- "slots": [],
604
- "methods": [],
605
- "parts": [],
606
- "description": "构件 `ai-portal.ai-employees`"
607
- },
608
- {
609
- "name": "ai-portal.ai-agents",
610
- "properties": [
611
- {
612
- "name": "list",
613
- "attribute": false,
614
- "type": "Agent[]"
615
- },
616
- {
617
- "name": "urlTemplate",
618
- "type": "string"
619
- },
620
- {
621
- "name": "withContainer",
622
- "description": "",
623
- "deprecated": true,
624
- "default": "true"
625
- }
626
- ],
627
- "events": [],
628
- "slots": [],
629
- "methods": [],
630
- "parts": [],
631
- "description": "构件 `ai-portal.ai-agents`"
632
- },
633
572
  {
634
573
  "name": "ai-portal.page-container",
635
574
  "properties": [
@@ -779,6 +718,67 @@
779
718
  "parts": [],
780
719
  "description": "构件 `ai-portal.dropdown-select`"
781
720
  },
721
+ {
722
+ "name": "ai-portal.stat-with-mini-chart",
723
+ "properties": [
724
+ {
725
+ "name": "label",
726
+ "type": "string"
727
+ },
728
+ {
729
+ "name": "value",
730
+ "type": "string"
731
+ },
732
+ {
733
+ "name": "size",
734
+ "description": "",
735
+ "default": "\"medium\"",
736
+ "type": "\"medium\" | \"small\""
737
+ },
738
+ {
739
+ "name": "lineColor",
740
+ "description": "",
741
+ "default": "\"var(--color-brand)\"",
742
+ "type": "string"
743
+ },
744
+ {
745
+ "name": "showArea",
746
+ "type": "boolean"
747
+ },
748
+ {
749
+ "name": "min",
750
+ "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
751
+ "type": "number"
752
+ },
753
+ {
754
+ "name": "max",
755
+ "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
756
+ "type": "number"
757
+ },
758
+ {
759
+ "name": "xField",
760
+ "description": "",
761
+ "default": "\"0\"",
762
+ "type": "string"
763
+ },
764
+ {
765
+ "name": "yField",
766
+ "description": "",
767
+ "default": "\"1\"",
768
+ "type": "string"
769
+ },
770
+ {
771
+ "name": "data",
772
+ "attribute": false,
773
+ "type": "Record<string, number>[]"
774
+ }
775
+ ],
776
+ "events": [],
777
+ "slots": [],
778
+ "methods": [],
779
+ "parts": [],
780
+ "description": "构件 `ai-portal.stat-with-mini-chart`"
781
+ },
782
782
  {
783
783
  "name": "ai-portal.preview-container",
784
784
  "properties": [
@@ -794,6 +794,33 @@
794
794
  "parts": [],
795
795
  "description": "构件 `ai-portal.preview-container`"
796
796
  },
797
+ {
798
+ "name": "ai-portal.action-buttons",
799
+ "properties": [
800
+ {
801
+ "name": "items",
802
+ "attribute": false,
803
+ "type": "ActionItem[]"
804
+ },
805
+ {
806
+ "name": "multiple",
807
+ "attribute": false,
808
+ "type": "boolean"
809
+ }
810
+ ],
811
+ "events": [
812
+ {
813
+ "name": "action.click",
814
+ "detail": {
815
+ "type": "ActionItem"
816
+ }
817
+ }
818
+ ],
819
+ "slots": [],
820
+ "methods": [],
821
+ "parts": [],
822
+ "description": "构件 `ai-portal.action-buttons`"
823
+ },
797
824
  {
798
825
  "name": "ai-portal.goal-card-list",
799
826
  "properties": [
@@ -859,6 +886,11 @@
859
886
  "name": "actions",
860
887
  "attribute": false,
861
888
  "type": "ActionType[]"
889
+ },
890
+ {
891
+ "name": "goals",
892
+ "attribute": false,
893
+ "type": "Goal[]"
862
894
  }
863
895
  ],
864
896
  "events": [
@@ -881,68 +913,103 @@
881
913
  "description": "构件 `ai-portal.project-conversations`"
882
914
  },
883
915
  {
884
- "name": "ai-portal.action-buttons",
916
+ "name": "ai-portal.project-knowledges",
885
917
  "properties": [
886
918
  {
887
- "name": "items",
919
+ "name": "list",
888
920
  "attribute": false,
889
- "type": "ActionItem[]"
921
+ "type": "Knowledge[]"
890
922
  },
891
923
  {
892
- "name": "multiple",
924
+ "name": "urlTemplate",
925
+ "type": "string"
926
+ },
927
+ {
928
+ "name": "actions",
893
929
  "attribute": false,
894
- "type": "boolean"
930
+ "type": "ActionType[]"
895
931
  }
896
932
  ],
897
933
  "events": [
898
934
  {
899
935
  "name": "action.click",
900
936
  "detail": {
901
- "type": "ActionItem"
937
+ "type": "ActionClickDetail"
938
+ }
939
+ },
940
+ {
941
+ "name": "item.click",
942
+ "detail": {
943
+ "type": "Knowledge"
902
944
  }
903
945
  }
904
946
  ],
905
947
  "slots": [],
906
948
  "methods": [],
907
949
  "parts": [],
908
- "description": "构件 `ai-portal.action-buttons`"
950
+ "description": "构件 `ai-portal.project-knowledges`"
909
951
  },
910
952
  {
911
- "name": "ai-portal.project-knowledges",
953
+ "name": "ai-portal.activity-timeline",
912
954
  "properties": [
913
955
  {
914
956
  "name": "list",
915
957
  "attribute": false,
916
- "type": "Knowledge[]"
958
+ "type": "Activity[]"
917
959
  },
918
960
  {
919
- "name": "urlTemplate",
961
+ "name": "chatUrlTemplate",
962
+ "type": "string"
963
+ }
964
+ ],
965
+ "events": [],
966
+ "slots": [],
967
+ "methods": [],
968
+ "parts": [],
969
+ "description": "构件 `ai-portal.activity-timeline`"
970
+ },
971
+ {
972
+ "name": "ai-portal.chat-input",
973
+ "properties": [
974
+ {
975
+ "name": "placeholder",
920
976
  "type": "string"
921
977
  },
922
978
  {
923
- "name": "actions",
924
- "attribute": false,
925
- "type": "ActionType[]"
979
+ "name": "autoFocus",
980
+ "type": "boolean"
981
+ },
982
+ {
983
+ "name": "submitDisabled",
984
+ "type": "boolean"
985
+ },
986
+ {
987
+ "name": "supportsTerminate",
988
+ "type": "boolean"
989
+ },
990
+ {
991
+ "name": "terminating",
992
+ "type": "boolean"
926
993
  }
927
994
  ],
928
995
  "events": [
929
996
  {
930
- "name": "action.click",
997
+ "name": "message.submit",
931
998
  "detail": {
932
- "type": "ActionClickDetail"
999
+ "type": "string"
933
1000
  }
934
1001
  },
935
1002
  {
936
- "name": "item.click",
1003
+ "name": "terminate",
937
1004
  "detail": {
938
- "type": "Knowledge"
1005
+ "type": "void"
939
1006
  }
940
1007
  }
941
1008
  ],
942
1009
  "slots": [],
943
1010
  "methods": [],
944
1011
  "parts": [],
945
- "description": "构件 `ai-portal.project-knowledges`"
1012
+ "description": "构件 `ai-portal.chat-input`"
946
1013
  }
947
1014
  ],
948
1015
  "providers": [