@next-bricks/ai-portal 0.40.0 → 0.40.2

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,15 @@
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
+ "events": [],
10
+ "slots": [],
11
+ "methods": [],
12
+ "parts": [],
13
+ "description": "构件 `ai-portal.home-container`"
14
+ },
6
15
  {
7
16
  "name": "ai-portal.chat-box",
8
17
  "properties": [
@@ -47,13 +56,166 @@
47
56
  "description": "构件 `ai-portal.chat-box`"
48
57
  },
49
58
  {
50
- "name": "ai-portal.home-container",
51
- "properties": [],
59
+ "name": "ai-portal.cruise-canvas",
60
+ "properties": [
61
+ {
62
+ "name": "conversationId",
63
+ "type": "string"
64
+ },
65
+ {
66
+ "name": "initialRequest",
67
+ "description": "初始请求数据。仅初始设置有效。",
68
+ "attribute": false,
69
+ "type": "RequestStore | null"
70
+ },
71
+ {
72
+ "name": "taskId",
73
+ "type": "string"
74
+ },
75
+ {
76
+ "name": "task",
77
+ "attribute": false,
78
+ "type": "TaskBaseDetail"
79
+ },
80
+ {
81
+ "name": "jobs",
82
+ "attribute": false,
83
+ "type": "Job[]"
84
+ },
85
+ {
86
+ "name": "replay",
87
+ "description": "是否启用回放。仅初始设置有效。",
88
+ "type": "boolean"
89
+ },
90
+ {
91
+ "name": "replayDelay",
92
+ "description": "设置回放时消息之间的时间间隔,单位为秒。仅初始设置有效。",
93
+ "default": "2",
94
+ "type": "number"
95
+ },
96
+ {
97
+ "name": "supports",
98
+ "attribute": false,
99
+ "type": "Record<string, boolean>"
100
+ },
101
+ {
102
+ "name": "showHiddenJobs",
103
+ "type": "boolean"
104
+ },
105
+ {
106
+ "name": "showFeedback",
107
+ "type": "boolean"
108
+ },
109
+ {
110
+ "name": "showFeedbackAfterFailed",
111
+ "type": "boolean"
112
+ },
113
+ {
114
+ "name": "showFeedbackOnView",
115
+ "type": "boolean"
116
+ },
117
+ {
118
+ "name": "showUiSwitch",
119
+ "type": "boolean"
120
+ },
121
+ {
122
+ "name": "hideMermaid",
123
+ "type": "boolean"
124
+ },
125
+ {
126
+ "name": "showJsxEditor",
127
+ "type": "boolean"
128
+ },
129
+ {
130
+ "name": "previewUrlTemplate",
131
+ "type": "string"
132
+ }
133
+ ],
134
+ "events": [
135
+ {
136
+ "name": "share",
137
+ "detail": {
138
+ "type": "void"
139
+ }
140
+ },
141
+ {
142
+ "name": "terminate",
143
+ "detail": {
144
+ "type": "void"
145
+ }
146
+ },
147
+ {
148
+ "name": "feedback.submit",
149
+ "detail": {
150
+ "type": "FeedbackDetail"
151
+ }
152
+ },
153
+ {
154
+ "name": "feedback.on.view",
155
+ "detail": {
156
+ "type": "string"
157
+ }
158
+ },
159
+ {
160
+ "name": "ui.switch",
161
+ "detail": {
162
+ "type": "\"chat\""
163
+ }
164
+ }
165
+ ],
166
+ "slots": [],
167
+ "methods": [
168
+ {
169
+ "name": "resumed",
170
+ "params": []
171
+ },
172
+ {
173
+ "name": "feedbackSubmitDone",
174
+ "params": []
175
+ },
176
+ {
177
+ "name": "feedbackSubmitFailed",
178
+ "params": []
179
+ },
180
+ {
181
+ "name": "feedbackOnViewDone",
182
+ "params": [
183
+ {
184
+ "name": "viewId",
185
+ "type": "string"
186
+ }
187
+ ]
188
+ }
189
+ ],
190
+ "parts": [],
191
+ "description": "构件 `ai-portal.cruise-canvas`"
192
+ },
193
+ {
194
+ "name": "ai-portal.icon-button",
195
+ "properties": [
196
+ {
197
+ "name": "icon",
198
+ "attribute": false,
199
+ "type": "GeneralIconProps"
200
+ },
201
+ {
202
+ "name": "tooltip",
203
+ "type": "string"
204
+ },
205
+ {
206
+ "name": "disabled",
207
+ "type": "boolean"
208
+ },
209
+ {
210
+ "name": "variant",
211
+ "type": "IconButtonVariant"
212
+ }
213
+ ],
52
214
  "events": [],
53
215
  "slots": [],
54
216
  "methods": [],
55
217
  "parts": [],
56
- "description": "构件 `ai-portal.home-container`"
218
+ "description": "构件 `ai-portal.icon-button`"
57
219
  },
58
220
  {
59
221
  "name": "ai-portal.stat-with-mini-chart",
@@ -257,58 +419,61 @@
257
419
  "description": "构件 `ai-portal.elevo-sidebar`"
258
420
  },
259
421
  {
260
- "name": "ai-portal.icon-button",
422
+ "name": "ai-portal.show-cases",
261
423
  "properties": [
262
424
  {
263
- "name": "icon",
425
+ "name": "list",
264
426
  "attribute": false,
265
- "type": "GeneralIconProps"
427
+ "type": "ShowCase[]"
266
428
  },
267
429
  {
268
- "name": "tooltip",
430
+ "name": "taskUrlTemplate",
269
431
  "type": "string"
270
- },
271
- {
272
- "name": "disabled",
273
- "type": "boolean"
274
- },
275
- {
276
- "name": "variant",
277
- "type": "IconButtonVariant"
278
432
  }
279
433
  ],
280
434
  "events": [],
281
435
  "slots": [],
282
436
  "methods": [],
283
437
  "parts": [],
284
- "description": "构件 `ai-portal.icon-button`"
438
+ "description": "构件 `ai-portal.show-cases`"
285
439
  },
286
440
  {
287
- "name": "ai-portal.show-cases",
441
+ "name": "ai-portal.mcp-tools",
288
442
  "properties": [
289
443
  {
290
444
  "name": "list",
291
445
  "attribute": false,
292
- "type": "ShowCase[]"
446
+ "type": "McpTool[]"
293
447
  },
294
448
  {
295
- "name": "taskUrlTemplate",
296
- "type": "string"
449
+ "name": "withContainer",
450
+ "description": "",
451
+ "deprecated": true,
452
+ "default": "true"
297
453
  }
298
454
  ],
299
455
  "events": [],
300
456
  "slots": [],
301
457
  "methods": [],
302
458
  "parts": [],
303
- "description": "构件 `ai-portal.show-cases`"
459
+ "description": "构件 `ai-portal.mcp-tools`"
304
460
  },
305
461
  {
306
- "name": "ai-portal.mcp-tools",
462
+ "name": "ai-portal.ai-employees",
307
463
  "properties": [
308
464
  {
309
465
  "name": "list",
310
466
  "attribute": false,
311
- "type": "McpTool[]"
467
+ "type": "Employee[]"
468
+ },
469
+ {
470
+ "name": "industries",
471
+ "attribute": false,
472
+ "type": "string[]"
473
+ },
474
+ {
475
+ "name": "urlTemplate",
476
+ "type": "string"
312
477
  },
313
478
  {
314
479
  "name": "withContainer",
@@ -321,7 +486,7 @@
321
486
  "slots": [],
322
487
  "methods": [],
323
488
  "parts": [],
324
- "description": "构件 `ai-portal.mcp-tools`"
489
+ "description": "构件 `ai-portal.ai-employees`"
325
490
  },
326
491
  {
327
492
  "name": "ai-portal.chat-stream",
@@ -440,36 +605,6 @@
440
605
  "parts": [],
441
606
  "description": "构件 `ai-portal.chat-stream`"
442
607
  },
443
- {
444
- "name": "ai-portal.ai-employees",
445
- "properties": [
446
- {
447
- "name": "list",
448
- "attribute": false,
449
- "type": "Employee[]"
450
- },
451
- {
452
- "name": "industries",
453
- "attribute": false,
454
- "type": "string[]"
455
- },
456
- {
457
- "name": "urlTemplate",
458
- "type": "string"
459
- },
460
- {
461
- "name": "withContainer",
462
- "description": "",
463
- "deprecated": true,
464
- "default": "true"
465
- }
466
- ],
467
- "events": [],
468
- "slots": [],
469
- "methods": [],
470
- "parts": [],
471
- "description": "构件 `ai-portal.ai-employees`"
472
- },
473
608
  {
474
609
  "name": "ai-portal.ai-agents",
475
610
  "properties": [
@@ -875,141 +1010,6 @@
875
1010
  "methods": [],
876
1011
  "parts": [],
877
1012
  "description": "构件 `ai-portal.chat-input`"
878
- },
879
- {
880
- "name": "ai-portal.cruise-canvas",
881
- "properties": [
882
- {
883
- "name": "conversationId",
884
- "type": "string"
885
- },
886
- {
887
- "name": "initialRequest",
888
- "description": "初始请求数据。仅初始设置有效。",
889
- "attribute": false,
890
- "type": "RequestStore | null"
891
- },
892
- {
893
- "name": "taskId",
894
- "type": "string"
895
- },
896
- {
897
- "name": "task",
898
- "attribute": false,
899
- "type": "TaskBaseDetail"
900
- },
901
- {
902
- "name": "jobs",
903
- "attribute": false,
904
- "type": "Job[]"
905
- },
906
- {
907
- "name": "replay",
908
- "description": "是否启用回放。仅初始设置有效。",
909
- "type": "boolean"
910
- },
911
- {
912
- "name": "replayDelay",
913
- "description": "设置回放时消息之间的时间间隔,单位为秒。仅初始设置有效。",
914
- "default": "2",
915
- "type": "number"
916
- },
917
- {
918
- "name": "supports",
919
- "attribute": false,
920
- "type": "Record<string, boolean>"
921
- },
922
- {
923
- "name": "showHiddenJobs",
924
- "type": "boolean"
925
- },
926
- {
927
- "name": "showFeedback",
928
- "type": "boolean"
929
- },
930
- {
931
- "name": "showFeedbackAfterFailed",
932
- "type": "boolean"
933
- },
934
- {
935
- "name": "showFeedbackOnView",
936
- "type": "boolean"
937
- },
938
- {
939
- "name": "showUiSwitch",
940
- "type": "boolean"
941
- },
942
- {
943
- "name": "hideMermaid",
944
- "type": "boolean"
945
- },
946
- {
947
- "name": "showJsxEditor",
948
- "type": "boolean"
949
- },
950
- {
951
- "name": "previewUrlTemplate",
952
- "type": "string"
953
- }
954
- ],
955
- "events": [
956
- {
957
- "name": "share",
958
- "detail": {
959
- "type": "void"
960
- }
961
- },
962
- {
963
- "name": "terminate",
964
- "detail": {
965
- "type": "void"
966
- }
967
- },
968
- {
969
- "name": "feedback.submit",
970
- "detail": {
971
- "type": "FeedbackDetail"
972
- }
973
- },
974
- {
975
- "name": "feedback.on.view",
976
- "detail": {
977
- "type": "string"
978
- }
979
- },
980
- {
981
- "name": "ui.switch",
982
- "detail": {
983
- "type": "\"chat\""
984
- }
985
- }
986
- ],
987
- "slots": [],
988
- "methods": [
989
- {
990
- "name": "resumed",
991
- "params": []
992
- },
993
- {
994
- "name": "feedbackSubmitDone",
995
- "params": []
996
- },
997
- {
998
- "name": "feedbackSubmitFailed",
999
- "params": []
1000
- },
1001
- {
1002
- "name": "feedbackOnViewDone",
1003
- "params": [
1004
- {
1005
- "name": "viewId",
1006
- "type": "string"
1007
- }
1008
- ]
1009
- }
1010
- ],
1011
- "parts": [],
1012
- "description": "构件 `ai-portal.cruise-canvas`"
1013
1013
  }
1014
1014
  ],
1015
1015
  "providers": [
package/dist/types.json CHANGED
@@ -4,6 +4,77 @@
4
4
  "events": [],
5
5
  "methods": []
6
6
  },
7
+ "ai-portal.icon-button": {
8
+ "properties": [
9
+ {
10
+ "name": "icon",
11
+ "annotation": {
12
+ "type": "reference",
13
+ "typeName": {
14
+ "type": "identifier",
15
+ "name": "GeneralIconProps"
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "name": "tooltip",
21
+ "annotation": {
22
+ "type": "keyword",
23
+ "value": "string"
24
+ }
25
+ },
26
+ {
27
+ "name": "disabled",
28
+ "annotation": {
29
+ "type": "keyword",
30
+ "value": "boolean"
31
+ }
32
+ },
33
+ {
34
+ "name": "variant",
35
+ "annotation": {
36
+ "type": "reference",
37
+ "typeName": {
38
+ "type": "identifier",
39
+ "name": "IconButtonVariant"
40
+ }
41
+ }
42
+ }
43
+ ],
44
+ "events": [],
45
+ "methods": [],
46
+ "types": [
47
+ {
48
+ "type": "typeAlias",
49
+ "name": "IconButtonVariant",
50
+ "annotation": {
51
+ "type": "union",
52
+ "types": [
53
+ {
54
+ "type": "jsLiteral",
55
+ "value": "default"
56
+ },
57
+ {
58
+ "type": "jsLiteral",
59
+ "value": "light"
60
+ },
61
+ {
62
+ "type": "jsLiteral",
63
+ "value": "mini"
64
+ },
65
+ {
66
+ "type": "jsLiteral",
67
+ "value": "mini-light"
68
+ },
69
+ {
70
+ "type": "jsLiteral",
71
+ "value": "bordered"
72
+ }
73
+ ]
74
+ }
75
+ }
76
+ ]
77
+ },
7
78
  "ai-portal.stat-with-mini-chart": {
8
79
  "properties": [
9
80
  {
@@ -108,77 +179,6 @@
108
179
  "events": [],
109
180
  "methods": []
110
181
  },
111
- "ai-portal.icon-button": {
112
- "properties": [
113
- {
114
- "name": "icon",
115
- "annotation": {
116
- "type": "reference",
117
- "typeName": {
118
- "type": "identifier",
119
- "name": "GeneralIconProps"
120
- }
121
- }
122
- },
123
- {
124
- "name": "tooltip",
125
- "annotation": {
126
- "type": "keyword",
127
- "value": "string"
128
- }
129
- },
130
- {
131
- "name": "disabled",
132
- "annotation": {
133
- "type": "keyword",
134
- "value": "boolean"
135
- }
136
- },
137
- {
138
- "name": "variant",
139
- "annotation": {
140
- "type": "reference",
141
- "typeName": {
142
- "type": "identifier",
143
- "name": "IconButtonVariant"
144
- }
145
- }
146
- }
147
- ],
148
- "events": [],
149
- "methods": [],
150
- "types": [
151
- {
152
- "type": "typeAlias",
153
- "name": "IconButtonVariant",
154
- "annotation": {
155
- "type": "union",
156
- "types": [
157
- {
158
- "type": "jsLiteral",
159
- "value": "default"
160
- },
161
- {
162
- "type": "jsLiteral",
163
- "value": "light"
164
- },
165
- {
166
- "type": "jsLiteral",
167
- "value": "mini"
168
- },
169
- {
170
- "type": "jsLiteral",
171
- "value": "mini-light"
172
- },
173
- {
174
- "type": "jsLiteral",
175
- "value": "bordered"
176
- }
177
- ]
178
- }
179
- }
180
- ]
181
- },
182
182
  "ai-portal.entity-sdk-get": {
183
183
  "type": "provider",
184
184
  "params": [
@@ -3582,7 +3582,7 @@
3582
3582
  "type": "propertySignature",
3583
3583
  "key": {
3584
3584
  "type": "identifier",
3585
- "name": "index"
3585
+ "name": "id"
3586
3586
  },
3587
3587
  "annotation": {
3588
3588
  "type": "keyword",
@@ -10,7 +10,7 @@ export interface GoalItem {
10
10
  title: string;
11
11
  description?: string;
12
12
  state: GoalState;
13
- index: number;
13
+ id: number;
14
14
  conversations?: number;
15
15
  child_target?: GoalItem[];
16
16
  parent_target?: GoalItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.40.0",
3
+ "version": "0.40.2",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,5 +48,5 @@
48
48
  "@next-bricks/presentational": "*",
49
49
  "@next-bricks/vs": "*"
50
50
  },
51
- "gitHead": "8a45d6d446cd9657e05fca88eb0c2a70e81c21d3"
51
+ "gitHead": "e14e0686a94d37b40335d6ce4a18f1eca073605b"
52
52
  }