@next-bricks/ai-portal 0.42.0 → 0.43.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 (73) hide show
  1. package/dist/bricks.json +27 -20
  2. package/dist/chunks/6754.7bcec0be.js +2 -0
  3. package/dist/chunks/6754.7bcec0be.js.map +1 -0
  4. package/dist/chunks/7493.76f316f5.js +2 -0
  5. package/dist/chunks/7493.76f316f5.js.map +1 -0
  6. package/dist/chunks/7520.3cec74b9.js +2 -0
  7. package/dist/chunks/7520.3cec74b9.js.map +1 -0
  8. package/dist/chunks/9965.6e6bda17.js +2 -0
  9. package/dist/chunks/9965.6e6bda17.js.map +1 -0
  10. package/dist/chunks/chat-box.864bf43b.js +2 -0
  11. package/dist/chunks/chat-box.864bf43b.js.map +1 -0
  12. package/dist/chunks/chat-stream.9c05bfdd.js +2 -0
  13. package/dist/chunks/chat-stream.9c05bfdd.js.map +1 -0
  14. package/dist/chunks/cruise-canvas.259aabf0.js +2 -0
  15. package/dist/chunks/cruise-canvas.259aabf0.js.map +1 -0
  16. package/dist/chunks/main.68f962c7.js +2 -0
  17. package/dist/chunks/{main.40e44ee2.js.map → main.68f962c7.js.map} +1 -1
  18. package/dist/chunks/show-case.2e705d81.js +2 -0
  19. package/dist/chunks/show-case.2e705d81.js.map +1 -0
  20. package/dist/chunks/show-cases.b26fafd9.js +2 -0
  21. package/dist/chunks/show-cases.b26fafd9.js.map +1 -0
  22. package/dist/examples.json +17 -14
  23. package/dist/images/3e0f6758.png +0 -0
  24. package/dist/images/69cf3ae2.png +0 -0
  25. package/dist/images/b567cca3.png +0 -0
  26. package/dist/images/e15a6988.png +0 -0
  27. package/dist/index.7be70cad.js +2 -0
  28. package/dist/index.7be70cad.js.map +1 -0
  29. package/dist/manifest.json +188 -148
  30. package/dist/types.json +550 -347
  31. package/dist-types/bootstrap.d.ts +1 -0
  32. package/dist-types/chat-stream/ChatStream.d.ts +1 -1
  33. package/dist-types/chat-stream/index.d.ts +2 -0
  34. package/dist-types/chat-stream/useConversationStream.d.ts +3 -1
  35. package/dist-types/cruise-canvas/CruiseCanvas.d.ts +1 -1
  36. package/dist-types/cruise-canvas/NodeEnd/NodeEnd.d.ts +1 -4
  37. package/dist-types/cruise-canvas/NodeReplay/NodeReplay.d.ts +5 -0
  38. package/dist-types/cruise-canvas/NodeReplay/i18n.d.ts +24 -0
  39. package/dist-types/cruise-canvas/constants.d.ts +1 -0
  40. package/dist-types/cruise-canvas/index.d.ts +9 -1
  41. package/dist-types/cruise-canvas/interfaces.d.ts +6 -1
  42. package/dist-types/cruise-canvas/reducers/interfaces.d.ts +4 -1
  43. package/dist-types/cruise-canvas/useConversationGraph.d.ts +1 -0
  44. package/dist-types/cruise-canvas/useLayout.d.ts +3 -1
  45. package/dist-types/shared/TaskContext.d.ts +8 -1
  46. package/dist-types/shared/bricks.d.ts +2 -0
  47. package/dist-types/shared/interfaces.d.ts +15 -0
  48. package/dist-types/show-case/i18n.d.ts +15 -0
  49. package/dist-types/show-case/index.d.ts +17 -0
  50. package/dist-types/show-case/index.spec.d.ts +1 -0
  51. package/dist-types/show-cases/index.d.ts +3 -11
  52. package/docs/show-case.md +13 -0
  53. package/docs/show-cases.md +9 -1
  54. package/package.json +2 -2
  55. package/dist/chunks/453.e2767a6d.js +0 -2
  56. package/dist/chunks/453.e2767a6d.js.map +0 -1
  57. package/dist/chunks/6754.9dfa5269.js +0 -2
  58. package/dist/chunks/6754.9dfa5269.js.map +0 -1
  59. package/dist/chunks/7493.6f9d9ca0.js +0 -2
  60. package/dist/chunks/7493.6f9d9ca0.js.map +0 -1
  61. package/dist/chunks/9749.cfb84a2f.js +0 -2
  62. package/dist/chunks/9749.cfb84a2f.js.map +0 -1
  63. package/dist/chunks/chat-box.4f6d3704.js +0 -2
  64. package/dist/chunks/chat-box.4f6d3704.js.map +0 -1
  65. package/dist/chunks/chat-stream.a2e40a99.js +0 -2
  66. package/dist/chunks/chat-stream.a2e40a99.js.map +0 -1
  67. package/dist/chunks/cruise-canvas.77318b42.js +0 -2
  68. package/dist/chunks/cruise-canvas.77318b42.js.map +0 -1
  69. package/dist/chunks/main.40e44ee2.js +0 -2
  70. package/dist/chunks/show-cases.5d37311e.js +0 -2
  71. package/dist/chunks/show-cases.5d37311e.js.map +0 -1
  72. package/dist/index.ad4c133a.js +0 -2
  73. package/dist/index.ad4c133a.js.map +0 -1
@@ -50,6 +50,10 @@
50
50
  "name": "showHiddenJobs",
51
51
  "type": "boolean"
52
52
  },
53
+ {
54
+ "name": "showHumanActions",
55
+ "type": "boolean"
56
+ },
53
57
  {
54
58
  "name": "showFeedback",
55
59
  "type": "boolean"
@@ -77,6 +81,20 @@
77
81
  {
78
82
  "name": "previewUrlTemplate",
79
83
  "type": "string"
84
+ },
85
+ {
86
+ "name": "showCases",
87
+ "attribute": false,
88
+ "type": "ShowCaseType[]"
89
+ },
90
+ {
91
+ "name": "exampleProjects",
92
+ "attribute": false,
93
+ "type": "ExampleProject[]"
94
+ },
95
+ {
96
+ "name": "tryItOutUrl",
97
+ "type": "string"
80
98
  }
81
99
  ],
82
100
  "events": [
@@ -144,130 +162,6 @@
144
162
  "parts": [],
145
163
  "description": "构件 `ai-portal.cruise-canvas`"
146
164
  },
147
- {
148
- "name": "ai-portal.chat-box",
149
- "properties": [
150
- {
151
- "name": "disabled",
152
- "type": "boolean"
153
- },
154
- {
155
- "name": "placeholder",
156
- "type": "string"
157
- },
158
- {
159
- "name": "autoFocus",
160
- "type": "boolean"
161
- },
162
- {
163
- "name": "aiEmployees",
164
- "attribute": false,
165
- "type": "AIEmployee[]"
166
- }
167
- ],
168
- "events": [
169
- {
170
- "name": "message.submit",
171
- "detail": {
172
- "type": "string"
173
- }
174
- },
175
- {
176
- "name": "ai-employee.mention",
177
- "detail": {
178
- "type": "AIEmployee | null"
179
- }
180
- }
181
- ],
182
- "slots": [],
183
- "methods": [
184
- {
185
- "name": "setValue",
186
- "params": [
187
- {
188
- "name": "value",
189
- "type": "string"
190
- }
191
- ]
192
- },
193
- {
194
- "name": "getValue",
195
- "params": []
196
- }
197
- ],
198
- "parts": [],
199
- "description": "构件 `ai-portal.chat-box`"
200
- },
201
- {
202
- "name": "ai-portal.home-container",
203
- "properties": [],
204
- "events": [],
205
- "slots": [],
206
- "methods": [],
207
- "parts": [],
208
- "description": "构件 `ai-portal.home-container`"
209
- },
210
- {
211
- "name": "ai-portal.stat-with-mini-chart",
212
- "properties": [
213
- {
214
- "name": "label",
215
- "type": "string"
216
- },
217
- {
218
- "name": "value",
219
- "type": "string"
220
- },
221
- {
222
- "name": "size",
223
- "description": "",
224
- "default": "\"medium\"",
225
- "type": "\"medium\" | \"small\""
226
- },
227
- {
228
- "name": "lineColor",
229
- "description": "",
230
- "default": "\"var(--color-brand)\"",
231
- "type": "string"
232
- },
233
- {
234
- "name": "showArea",
235
- "type": "boolean"
236
- },
237
- {
238
- "name": "min",
239
- "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
240
- "type": "number"
241
- },
242
- {
243
- "name": "max",
244
- "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
245
- "type": "number"
246
- },
247
- {
248
- "name": "xField",
249
- "description": "",
250
- "default": "\"0\"",
251
- "type": "string"
252
- },
253
- {
254
- "name": "yField",
255
- "description": "",
256
- "default": "\"1\"",
257
- "type": "string"
258
- },
259
- {
260
- "name": "data",
261
- "attribute": false,
262
- "type": "Record<string, number>[]"
263
- }
264
- ],
265
- "events": [],
266
- "slots": [],
267
- "methods": [],
268
- "parts": [],
269
- "description": "构件 `ai-portal.stat-with-mini-chart`"
270
- },
271
165
  {
272
166
  "name": "ai-portal.elevo-sidebar",
273
167
  "properties": [
@@ -408,6 +302,15 @@
408
302
  "parts": [],
409
303
  "description": "构件 `ai-portal.elevo-sidebar`"
410
304
  },
305
+ {
306
+ "name": "ai-portal.home-container",
307
+ "properties": [],
308
+ "events": [],
309
+ "slots": [],
310
+ "methods": [],
311
+ "parts": [],
312
+ "description": "构件 `ai-portal.home-container`"
313
+ },
411
314
  {
412
315
  "name": "ai-portal.icon-button",
413
316
  "properties": [
@@ -436,16 +339,33 @@
436
339
  "description": "构件 `ai-portal.icon-button`"
437
340
  },
438
341
  {
439
- "name": "ai-portal.show-cases",
342
+ "name": "ai-portal.mcp-tools",
440
343
  "properties": [
441
344
  {
442
345
  "name": "list",
443
346
  "attribute": false,
444
- "type": "ShowCase[]"
347
+ "type": "McpTool[]"
445
348
  },
446
349
  {
447
- "name": "taskUrlTemplate",
448
- "type": "string"
350
+ "name": "withContainer",
351
+ "description": "",
352
+ "deprecated": true,
353
+ "default": "true"
354
+ }
355
+ ],
356
+ "events": [],
357
+ "slots": [],
358
+ "methods": [],
359
+ "parts": [],
360
+ "description": "构件 `ai-portal.mcp-tools`"
361
+ },
362
+ {
363
+ "name": "ai-portal.show-cases",
364
+ "properties": [
365
+ {
366
+ "name": "list",
367
+ "attribute": false,
368
+ "type": "ShowCaseType[]"
449
369
  }
450
370
  ],
451
371
  "events": [],
@@ -487,6 +407,10 @@
487
407
  "attribute": false,
488
408
  "type": "Record<string, boolean>"
489
409
  },
410
+ {
411
+ "name": "showHumanActions",
412
+ "type": "boolean"
413
+ },
490
414
  {
491
415
  "name": "showFeedback",
492
416
  "type": "boolean"
@@ -608,12 +532,16 @@
608
532
  "description": "构件 `ai-portal.ai-employees`"
609
533
  },
610
534
  {
611
- "name": "ai-portal.mcp-tools",
535
+ "name": "ai-portal.ai-agents",
612
536
  "properties": [
613
537
  {
614
538
  "name": "list",
615
539
  "attribute": false,
616
- "type": "McpTool[]"
540
+ "type": "Agent[]"
541
+ },
542
+ {
543
+ "name": "urlTemplate",
544
+ "type": "string"
617
545
  },
618
546
  {
619
547
  "name": "withContainer",
@@ -626,32 +554,87 @@
626
554
  "slots": [],
627
555
  "methods": [],
628
556
  "parts": [],
629
- "description": "构件 `ai-portal.mcp-tools`"
557
+ "description": "构件 `ai-portal.ai-agents`"
630
558
  },
631
559
  {
632
- "name": "ai-portal.ai-agents",
560
+ "name": "ai-portal.stat-with-mini-chart",
633
561
  "properties": [
634
562
  {
635
- "name": "list",
636
- "attribute": false,
637
- "type": "Agent[]"
563
+ "name": "label",
564
+ "type": "string"
638
565
  },
639
566
  {
640
- "name": "urlTemplate",
567
+ "name": "value",
641
568
  "type": "string"
642
569
  },
643
570
  {
644
- "name": "withContainer",
571
+ "name": "size",
645
572
  "description": "",
646
- "deprecated": true,
647
- "default": "true"
573
+ "default": "\"medium\"",
574
+ "type": "\"medium\" | \"small\""
575
+ },
576
+ {
577
+ "name": "lineColor",
578
+ "description": "",
579
+ "default": "\"var(--color-brand)\"",
580
+ "type": "string"
581
+ },
582
+ {
583
+ "name": "showArea",
584
+ "type": "boolean"
585
+ },
586
+ {
587
+ "name": "min",
588
+ "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
589
+ "type": "number"
590
+ },
591
+ {
592
+ "name": "max",
593
+ "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
594
+ "type": "number"
595
+ },
596
+ {
597
+ "name": "xField",
598
+ "description": "",
599
+ "default": "\"0\"",
600
+ "type": "string"
601
+ },
602
+ {
603
+ "name": "yField",
604
+ "description": "",
605
+ "default": "\"1\"",
606
+ "type": "string"
607
+ },
608
+ {
609
+ "name": "data",
610
+ "attribute": false,
611
+ "type": "Record<string, number>[]"
648
612
  }
649
613
  ],
650
614
  "events": [],
651
615
  "slots": [],
652
616
  "methods": [],
653
617
  "parts": [],
654
- "description": "构件 `ai-portal.ai-agents`"
618
+ "description": "构件 `ai-portal.stat-with-mini-chart`"
619
+ },
620
+ {
621
+ "name": "ai-portal.project-summary",
622
+ "properties": [
623
+ {
624
+ "name": "chatList",
625
+ "attribute": false,
626
+ "type": "Chat[]"
627
+ },
628
+ {
629
+ "name": "chatUrlTemplate",
630
+ "type": "string"
631
+ }
632
+ ],
633
+ "events": [],
634
+ "slots": [],
635
+ "methods": [],
636
+ "parts": [],
637
+ "description": "构件 `ai-portal.project-summary`"
655
638
  },
656
639
  {
657
640
  "name": "ai-portal.page-container",
@@ -691,23 +674,58 @@
691
674
  "description": "构件 `ai-portal.page-container`"
692
675
  },
693
676
  {
694
- "name": "ai-portal.project-summary",
677
+ "name": "ai-portal.chat-box",
695
678
  "properties": [
696
679
  {
697
- "name": "chatList",
698
- "attribute": false,
699
- "type": "Chat[]"
680
+ "name": "disabled",
681
+ "type": "boolean"
700
682
  },
701
683
  {
702
- "name": "chatUrlTemplate",
684
+ "name": "placeholder",
703
685
  "type": "string"
686
+ },
687
+ {
688
+ "name": "autoFocus",
689
+ "type": "boolean"
690
+ },
691
+ {
692
+ "name": "aiEmployees",
693
+ "attribute": false,
694
+ "type": "AIEmployee[]"
695
+ }
696
+ ],
697
+ "events": [
698
+ {
699
+ "name": "message.submit",
700
+ "detail": {
701
+ "type": "string"
702
+ }
703
+ },
704
+ {
705
+ "name": "ai-employee.mention",
706
+ "detail": {
707
+ "type": "AIEmployee | null"
708
+ }
704
709
  }
705
710
  ],
706
- "events": [],
707
711
  "slots": [],
708
- "methods": [],
712
+ "methods": [
713
+ {
714
+ "name": "setValue",
715
+ "params": [
716
+ {
717
+ "name": "value",
718
+ "type": "string"
719
+ }
720
+ ]
721
+ },
722
+ {
723
+ "name": "getValue",
724
+ "params": []
725
+ }
726
+ ],
709
727
  "parts": [],
710
- "description": "构件 `ai-portal.project-summary`"
728
+ "description": "构件 `ai-portal.chat-box`"
711
729
  },
712
730
  {
713
731
  "name": "ai-portal.tab-list",
@@ -1034,6 +1052,28 @@
1034
1052
  "parts": [],
1035
1053
  "description": "构件 `ai-portal.chat-input`"
1036
1054
  },
1055
+ {
1056
+ "name": "ai-portal.show-case",
1057
+ "properties": [
1058
+ {
1059
+ "name": "caseTitle",
1060
+ "type": "string"
1061
+ },
1062
+ {
1063
+ "name": "summary",
1064
+ "type": "string"
1065
+ },
1066
+ {
1067
+ "name": "url",
1068
+ "type": "string"
1069
+ }
1070
+ ],
1071
+ "events": [],
1072
+ "slots": [],
1073
+ "methods": [],
1074
+ "parts": [],
1075
+ "description": "构件 `ai-portal.show-case`"
1076
+ },
1037
1077
  {
1038
1078
  "name": "ai-portal.elevo-logo",
1039
1079
  "properties": [],