@next-bricks/ai-portal 0.55.0 → 0.56.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 (82) hide show
  1. package/dist/bricks.json +36 -28
  2. package/dist/chunks/1510.d022a470.js +2 -0
  3. package/dist/chunks/1510.d022a470.js.map +1 -0
  4. package/dist/chunks/{2084.0e9751e7.js → 2084.778e8126.js} +3 -3
  5. package/dist/chunks/2084.778e8126.js.map +1 -0
  6. package/dist/chunks/6995.cb0a8137.js +2 -0
  7. package/dist/chunks/6995.cb0a8137.js.map +1 -0
  8. package/dist/chunks/7517.b5ed4e8e.js +2 -0
  9. package/dist/chunks/7517.b5ed4e8e.js.map +1 -0
  10. package/dist/chunks/9324.e514b672.js +2 -0
  11. package/dist/chunks/9324.e514b672.js.map +1 -0
  12. package/dist/chunks/{chat-stream.11c6ade7.js → chat-stream.24066a8e.js} +2 -2
  13. package/dist/chunks/{chat-stream.11c6ade7.js.map → chat-stream.24066a8e.js.map} +1 -1
  14. package/dist/chunks/{cruise-canvas.c494563b.js → cruise-canvas.eca7469a.js} +2 -2
  15. package/dist/chunks/{cruise-canvas.c494563b.js.map → cruise-canvas.eca7469a.js.map} +1 -1
  16. package/dist/chunks/{elevo-sidebar.bfad7500.js → elevo-sidebar.08aad53b.js} +3 -3
  17. package/dist/chunks/{elevo-sidebar.bfad7500.js.map → elevo-sidebar.08aad53b.js.map} +1 -1
  18. package/dist/chunks/{main.6b7402db.js → main.0653045c.js} +2 -2
  19. package/dist/chunks/{main.6b7402db.js.map → main.0653045c.js.map} +1 -1
  20. package/dist/chunks/running-flow.4b117f11.js +3 -0
  21. package/dist/chunks/running-flow.4b117f11.js.LICENSE.txt +5 -0
  22. package/dist/chunks/running-flow.4b117f11.js.map +1 -0
  23. package/dist/examples.json +20 -17
  24. package/dist/index.e11d54e9.js +2 -0
  25. package/dist/index.e11d54e9.js.map +1 -0
  26. package/dist/manifest.json +242 -216
  27. package/dist/types.json +1106 -824
  28. package/dist-types/bootstrap.d.ts +1 -0
  29. package/dist-types/chat-stream/Aside/Aside.d.ts +3 -3
  30. package/dist-types/chat-stream/Aside/FlowApp/FlowApp.d.ts +7 -0
  31. package/dist-types/chat-stream/Aside/FlowApp/i18n.d.ts +20 -0
  32. package/dist-types/chat-stream/AssistantMessage/AssistantMessage.d.ts +3 -5
  33. package/dist-types/chat-stream/NodeChunk/NodeChunk.d.ts +6 -0
  34. package/dist-types/chat-stream/NodeChunk/NodeJob.d.ts +6 -0
  35. package/dist-types/chat-stream/NodeChunk/getStateDisplay.d.ts +6 -0
  36. package/dist-types/chat-stream/StreamContext.d.ts +2 -1
  37. package/dist-types/chat-stream/UserMessage/UserMessage.d.ts +3 -1
  38. package/dist-types/chat-stream/i18n.d.ts +5 -1
  39. package/dist-types/chat-stream/interfaces.d.ts +26 -3
  40. package/dist-types/chat-stream/useConversationStream.d.ts +5 -5
  41. package/dist-types/cruise-canvas/NodeChunk/NodeChunk.d.ts +9 -0
  42. package/dist-types/cruise-canvas/NodeRequirement/NodeRequirement.d.ts +3 -1
  43. package/dist-types/cruise-canvas/i18n.d.ts +3 -1
  44. package/dist-types/cruise-canvas/interfaces.d.ts +14 -2
  45. package/dist-types/cruise-canvas/reducers/interfaces.d.ts +2 -1
  46. package/dist-types/cruise-canvas/reducers/serviceFlows.d.ts +4 -0
  47. package/dist-types/cruise-canvas/useConversationDetail.d.ts +1 -0
  48. package/dist-types/cruise-canvas/useConversationGraph.d.ts +3 -3
  49. package/dist-types/running-flow/formatDuration.d.ts +6 -0
  50. package/dist-types/running-flow/index.d.ts +34 -0
  51. package/dist-types/running-flow/index.spec.d.ts +1 -0
  52. package/dist-types/shared/ReadableCommand/ReadableCommand.d.ts +7 -0
  53. package/dist-types/shared/RequestHumanAction/RequestHumanAction.d.ts +2 -1
  54. package/dist-types/shared/TaskContext.d.ts +6 -3
  55. package/dist-types/shared/bricks.d.ts +4 -0
  56. package/dist-types/shared/constants.d.ts +1 -0
  57. package/dist-types/shared/getFlatChunks.d.ts +3 -0
  58. package/dist-types/shared/getFlowOrActivityIcon.d.ts +3 -0
  59. package/dist-types/{cruise-canvas → shared}/getOrderedNodes.d.ts +2 -6
  60. package/dist-types/shared/getTaskTree.d.ts +10 -0
  61. package/dist-types/shared/interfaces.d.ts +64 -3
  62. package/dist-types/shared/useFlowAndActivityMap.d.ts +5 -0
  63. package/dist-types/shared/useFulfilledActiveDetail.d.ts +2 -0
  64. package/docs/running-flow.md +22 -0
  65. package/package.json +2 -2
  66. package/dist/chunks/2084.0e9751e7.js.map +0 -1
  67. package/dist/chunks/2761.561a580a.js +0 -2
  68. package/dist/chunks/2761.561a580a.js.map +0 -1
  69. package/dist/chunks/3227.689d8678.js +0 -2
  70. package/dist/chunks/3227.689d8678.js.map +0 -1
  71. package/dist/chunks/6201.fa3b6e24.js +0 -2
  72. package/dist/chunks/6201.fa3b6e24.js.map +0 -1
  73. package/dist/chunks/8717.1e5ad2b1.js +0 -2
  74. package/dist/chunks/8717.1e5ad2b1.js.map +0 -1
  75. package/dist/index.14c08956.js +0 -2
  76. package/dist/index.14c08956.js.map +0 -1
  77. package/dist-types/chat-stream/NodeJob/NodeJob.d.ts +0 -7
  78. package/dist-types/cruise-canvas/getFlatOrderedJobs.d.ts +0 -11
  79. package/dist-types/cruise-canvas/getFlatOrderedJobs.spec.d.ts +0 -1
  80. /package/dist/chunks/{2084.0e9751e7.js.LICENSE.txt → 2084.778e8126.js.LICENSE.txt} +0 -0
  81. /package/dist/chunks/{elevo-sidebar.bfad7500.js.LICENSE.txt → elevo-sidebar.08aad53b.js.LICENSE.txt} +0 -0
  82. /package/dist-types/{cruise-canvas → shared}/getOrderedNodes.spec.d.ts +0 -0
@@ -3,6 +3,85 @@
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": "uploadBucket",
33
+ "type": "string"
34
+ }
35
+ ],
36
+ "events": [
37
+ {
38
+ "name": "message.submit",
39
+ "detail": {
40
+ "type": "string"
41
+ }
42
+ },
43
+ {
44
+ "name": "ai-employee.mention",
45
+ "detail": {
46
+ "type": "AIEmployee | null"
47
+ }
48
+ },
49
+ {
50
+ "name": "command.select",
51
+ "detail": {
52
+ "type": "CommandPayload | null"
53
+ }
54
+ },
55
+ {
56
+ "name": "files.change",
57
+ "detail": {
58
+ "type": "string[] | null | undefined"
59
+ }
60
+ }
61
+ ],
62
+ "slots": [],
63
+ "methods": [
64
+ {
65
+ "name": "setValue",
66
+ "params": [
67
+ {
68
+ "name": "value",
69
+ "type": "string"
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ "name": "getValue",
75
+ "params": []
76
+ },
77
+ {
78
+ "name": "focusOnInput",
79
+ "params": []
80
+ }
81
+ ],
82
+ "parts": [],
83
+ "description": "构件 `ai-portal.chat-box`"
84
+ },
6
85
  {
7
86
  "name": "ai-portal.cruise-canvas",
8
87
  "properties": [
@@ -152,160 +231,6 @@
152
231
  "parts": [],
153
232
  "description": "构件 `ai-portal.cruise-canvas`"
154
233
  },
155
- {
156
- "name": "ai-portal.chat-box",
157
- "properties": [
158
- {
159
- "name": "disabled",
160
- "type": "boolean"
161
- },
162
- {
163
- "name": "placeholder",
164
- "type": "string"
165
- },
166
- {
167
- "name": "autoFocus",
168
- "type": "boolean"
169
- },
170
- {
171
- "name": "aiEmployees",
172
- "attribute": false,
173
- "type": "AIEmployee[]"
174
- },
175
- {
176
- "name": "commands",
177
- "attribute": false,
178
- "type": "Command[]"
179
- },
180
- {
181
- "name": "uploadBucket",
182
- "type": "string"
183
- }
184
- ],
185
- "events": [
186
- {
187
- "name": "message.submit",
188
- "detail": {
189
- "type": "string"
190
- }
191
- },
192
- {
193
- "name": "ai-employee.mention",
194
- "detail": {
195
- "type": "AIEmployee | null"
196
- }
197
- },
198
- {
199
- "name": "command.select",
200
- "detail": {
201
- "type": "CommandPayload | null"
202
- }
203
- },
204
- {
205
- "name": "files.change",
206
- "detail": {
207
- "type": "string[] | null | undefined"
208
- }
209
- }
210
- ],
211
- "slots": [],
212
- "methods": [
213
- {
214
- "name": "setValue",
215
- "params": [
216
- {
217
- "name": "value",
218
- "type": "string"
219
- }
220
- ]
221
- },
222
- {
223
- "name": "getValue",
224
- "params": []
225
- },
226
- {
227
- "name": "focusOnInput",
228
- "params": []
229
- }
230
- ],
231
- "parts": [],
232
- "description": "构件 `ai-portal.chat-box`"
233
- },
234
- {
235
- "name": "ai-portal.home-container",
236
- "properties": [
237
- {
238
- "name": "sticky",
239
- "type": "boolean"
240
- }
241
- ],
242
- "events": [],
243
- "slots": [],
244
- "methods": [],
245
- "parts": [],
246
- "description": "构件 `ai-portal.home-container`"
247
- },
248
- {
249
- "name": "ai-portal.stat-with-mini-chart",
250
- "properties": [
251
- {
252
- "name": "label",
253
- "type": "string"
254
- },
255
- {
256
- "name": "value",
257
- "type": "string"
258
- },
259
- {
260
- "name": "size",
261
- "description": "",
262
- "default": "\"medium\"",
263
- "type": "\"medium\" | \"small\""
264
- },
265
- {
266
- "name": "lineColor",
267
- "description": "",
268
- "default": "\"var(--color-brand)\"",
269
- "type": "string"
270
- },
271
- {
272
- "name": "showArea",
273
- "type": "boolean"
274
- },
275
- {
276
- "name": "min",
277
- "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
278
- "type": "number"
279
- },
280
- {
281
- "name": "max",
282
- "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
283
- "type": "number"
284
- },
285
- {
286
- "name": "xField",
287
- "description": "",
288
- "default": "\"0\"",
289
- "type": "string"
290
- },
291
- {
292
- "name": "yField",
293
- "description": "",
294
- "default": "\"1\"",
295
- "type": "string"
296
- },
297
- {
298
- "name": "data",
299
- "attribute": false,
300
- "type": "Record<string, number>[]"
301
- }
302
- ],
303
- "events": [],
304
- "slots": [],
305
- "methods": [],
306
- "parts": [],
307
- "description": "构件 `ai-portal.stat-with-mini-chart`"
308
- },
309
234
  {
310
235
  "name": "ai-portal.elevo-sidebar",
311
236
  "properties": [
@@ -474,15 +399,29 @@
474
399
  "description": "构件 `ai-portal.icon-button`"
475
400
  },
476
401
  {
477
- "name": "ai-portal.show-cases",
402
+ "name": "ai-portal.home-container",
403
+ "properties": [
404
+ {
405
+ "name": "sticky",
406
+ "type": "boolean"
407
+ }
408
+ ],
409
+ "events": [],
410
+ "slots": [],
411
+ "methods": [],
412
+ "parts": [],
413
+ "description": "构件 `ai-portal.home-container`"
414
+ },
415
+ {
416
+ "name": "ai-portal.mcp-tools",
478
417
  "properties": [
479
418
  {
480
419
  "name": "list",
481
420
  "attribute": false,
482
- "type": "ShowCaseType[]"
421
+ "type": "McpTool[]"
483
422
  },
484
423
  {
485
- "name": "limit",
424
+ "name": "stickyTop",
486
425
  "type": "number"
487
426
  }
488
427
  ],
@@ -490,18 +429,18 @@
490
429
  "slots": [],
491
430
  "methods": [],
492
431
  "parts": [],
493
- "description": "构件 `ai-portal.show-cases`"
432
+ "description": "构件 `ai-portal.mcp-tools`"
494
433
  },
495
434
  {
496
- "name": "ai-portal.mcp-tools",
435
+ "name": "ai-portal.show-cases",
497
436
  "properties": [
498
437
  {
499
438
  "name": "list",
500
439
  "attribute": false,
501
- "type": "McpTool[]"
440
+ "type": "ShowCaseType[]"
502
441
  },
503
442
  {
504
- "name": "stickyTop",
443
+ "name": "limit",
505
444
  "type": "number"
506
445
  }
507
446
  ],
@@ -509,7 +448,7 @@
509
448
  "slots": [],
510
449
  "methods": [],
511
450
  "parts": [],
512
- "description": "构件 `ai-portal.mcp-tools`"
451
+ "description": "构件 `ai-portal.show-cases`"
513
452
  },
514
453
  {
515
454
  "name": "ai-portal.chat-stream",
@@ -649,17 +588,12 @@
649
588
  "description": "构件 `ai-portal.chat-stream`"
650
589
  },
651
590
  {
652
- "name": "ai-portal.ai-employees",
591
+ "name": "ai-portal.ai-agents",
653
592
  "properties": [
654
593
  {
655
594
  "name": "list",
656
595
  "attribute": false,
657
- "type": "Employee[]"
658
- },
659
- {
660
- "name": "industries",
661
- "attribute": false,
662
- "type": "string[]"
596
+ "type": "Agent[]"
663
597
  },
664
598
  {
665
599
  "name": "urlTemplate",
@@ -676,15 +610,20 @@
676
610
  "slots": [],
677
611
  "methods": [],
678
612
  "parts": [],
679
- "description": "构件 `ai-portal.ai-employees`"
613
+ "description": "构件 `ai-portal.ai-agents`"
680
614
  },
681
615
  {
682
- "name": "ai-portal.ai-agents",
616
+ "name": "ai-portal.ai-employees",
683
617
  "properties": [
684
618
  {
685
619
  "name": "list",
686
620
  "attribute": false,
687
- "type": "Agent[]"
621
+ "type": "Employee[]"
622
+ },
623
+ {
624
+ "name": "industries",
625
+ "attribute": false,
626
+ "type": "string[]"
688
627
  },
689
628
  {
690
629
  "name": "urlTemplate",
@@ -701,7 +640,7 @@
701
640
  "slots": [],
702
641
  "methods": [],
703
642
  "parts": [],
704
- "description": "构件 `ai-portal.ai-agents`"
643
+ "description": "构件 `ai-portal.ai-employees`"
705
644
  },
706
645
  {
707
646
  "name": "ai-portal.page-container",
@@ -784,6 +723,67 @@
784
723
  ],
785
724
  "description": "构件 `ai-portal.tab-list`"
786
725
  },
726
+ {
727
+ "name": "ai-portal.stat-with-mini-chart",
728
+ "properties": [
729
+ {
730
+ "name": "label",
731
+ "type": "string"
732
+ },
733
+ {
734
+ "name": "value",
735
+ "type": "string"
736
+ },
737
+ {
738
+ "name": "size",
739
+ "description": "",
740
+ "default": "\"medium\"",
741
+ "type": "\"medium\" | \"small\""
742
+ },
743
+ {
744
+ "name": "lineColor",
745
+ "description": "",
746
+ "default": "\"var(--color-brand)\"",
747
+ "type": "string"
748
+ },
749
+ {
750
+ "name": "showArea",
751
+ "type": "boolean"
752
+ },
753
+ {
754
+ "name": "min",
755
+ "description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
756
+ "type": "number"
757
+ },
758
+ {
759
+ "name": "max",
760
+ "description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
761
+ "type": "number"
762
+ },
763
+ {
764
+ "name": "xField",
765
+ "description": "",
766
+ "default": "\"0\"",
767
+ "type": "string"
768
+ },
769
+ {
770
+ "name": "yField",
771
+ "description": "",
772
+ "default": "\"1\"",
773
+ "type": "string"
774
+ },
775
+ {
776
+ "name": "data",
777
+ "attribute": false,
778
+ "type": "Record<string, number>[]"
779
+ }
780
+ ],
781
+ "events": [],
782
+ "slots": [],
783
+ "methods": [],
784
+ "parts": [],
785
+ "description": "构件 `ai-portal.stat-with-mini-chart`"
786
+ },
787
787
  {
788
788
  "name": "ai-portal.dropdown-select",
789
789
  "properties": [
@@ -1090,15 +1090,6 @@
1090
1090
  "parts": [],
1091
1091
  "description": "构件 `ai-portal.chat-input`"
1092
1092
  },
1093
- {
1094
- "name": "ai-portal.elevo-logo",
1095
- "properties": [],
1096
- "events": [],
1097
- "slots": [],
1098
- "methods": [],
1099
- "parts": [],
1100
- "description": "构件 `ai-portal.elevo-logo`"
1101
- },
1102
1093
  {
1103
1094
  "name": "ai-portal.show-case",
1104
1095
  "properties": [
@@ -1121,6 +1112,15 @@
1121
1112
  "parts": [],
1122
1113
  "description": "构件 `ai-portal.show-case`"
1123
1114
  },
1115
+ {
1116
+ "name": "ai-portal.elevo-logo",
1117
+ "properties": [],
1118
+ "events": [],
1119
+ "slots": [],
1120
+ "methods": [],
1121
+ "parts": [],
1122
+ "description": "构件 `ai-portal.elevo-logo`"
1123
+ },
1124
1124
  {
1125
1125
  "name": "ai-portal.blank-state",
1126
1126
  "properties": [
@@ -1139,6 +1139,37 @@
1139
1139
  "parts": [],
1140
1140
  "description": "构件 `ai-portal.blank-state`"
1141
1141
  },
1142
+ {
1143
+ "name": "ai-portal.elevo-card",
1144
+ "properties": [
1145
+ {
1146
+ "name": "cardTitle",
1147
+ "type": "string"
1148
+ },
1149
+ {
1150
+ "name": "description",
1151
+ "type": "string"
1152
+ },
1153
+ {
1154
+ "name": "url",
1155
+ "type": "string"
1156
+ },
1157
+ {
1158
+ "name": "avatar",
1159
+ "attribute": false,
1160
+ "type": "string | GeneralIconProps"
1161
+ },
1162
+ {
1163
+ "name": "avatarType",
1164
+ "type": "\"icon\" | \"image\""
1165
+ }
1166
+ ],
1167
+ "events": [],
1168
+ "slots": [],
1169
+ "methods": [],
1170
+ "parts": [],
1171
+ "description": "构件 `ai-portal.elevo-card`"
1172
+ },
1142
1173
  {
1143
1174
  "name": "ai-portal.sticky-container",
1144
1175
  "properties": [
@@ -1173,37 +1204,6 @@
1173
1204
  "parts": [],
1174
1205
  "description": "构件 `ai-portal.sticky-container`"
1175
1206
  },
1176
- {
1177
- "name": "ai-portal.elevo-card",
1178
- "properties": [
1179
- {
1180
- "name": "cardTitle",
1181
- "type": "string"
1182
- },
1183
- {
1184
- "name": "description",
1185
- "type": "string"
1186
- },
1187
- {
1188
- "name": "url",
1189
- "type": "string"
1190
- },
1191
- {
1192
- "name": "avatar",
1193
- "attribute": false,
1194
- "type": "string | GeneralIconProps"
1195
- },
1196
- {
1197
- "name": "avatarType",
1198
- "type": "\"icon\" | \"image\""
1199
- }
1200
- ],
1201
- "events": [],
1202
- "slots": [],
1203
- "methods": [],
1204
- "parts": [],
1205
- "description": "构件 `ai-portal.elevo-card`"
1206
- },
1207
1207
  {
1208
1208
  "name": "ai-portal.flow-tabs",
1209
1209
  "properties": [
@@ -1317,12 +1317,41 @@
1317
1317
  ],
1318
1318
  "parts": [],
1319
1319
  "description": "构件 `ai-portal.stage-flow`"
1320
+ },
1321
+ {
1322
+ "name": "ai-portal.running-flow",
1323
+ "properties": [
1324
+ {
1325
+ "name": "spec",
1326
+ "attribute": false,
1327
+ "type": "FlowStage[]"
1328
+ },
1329
+ {
1330
+ "name": "activeActivityId",
1331
+ "type": "string | null"
1332
+ }
1333
+ ],
1334
+ "events": [
1335
+ {
1336
+ "name": "active.change",
1337
+ "detail": {
1338
+ "type": "string | null"
1339
+ }
1340
+ }
1341
+ ],
1342
+ "slots": [],
1343
+ "methods": [],
1344
+ "parts": [],
1345
+ "description": "构件 `ai-portal.running-flow`"
1320
1346
  }
1321
1347
  ],
1322
1348
  "providers": [
1323
1349
  {
1324
1350
  "name": "ai-portal.call-tool"
1325
1351
  },
1352
+ {
1353
+ "name": "ai-portal.set-chat-command"
1354
+ },
1326
1355
  {
1327
1356
  "name": "ai-portal.save-request-store"
1328
1357
  },
@@ -1331,9 +1360,6 @@
1331
1360
  },
1332
1361
  {
1333
1362
  "name": "ai-portal.clear-request-store"
1334
- },
1335
- {
1336
- "name": "ai-portal.set-chat-command"
1337
1363
  }
1338
1364
  ]
1339
1365
  }