@next-bricks/ai-portal 0.28.2 → 0.28.3

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,44 +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
- "name": "suggestions",
23
- "attribute": false,
24
- "type": "Suggestion[]"
25
- },
26
- {
27
- "name": "suggestionsLabel",
28
- "type": "string"
29
- }
30
- ],
31
- "events": [
32
- {
33
- "name": "message.submit",
34
- "detail": {
35
- "type": "string"
36
- }
37
- }
38
- ],
39
- "slots": [],
40
- "methods": [],
41
- "parts": [],
42
- "description": "构件 `ai-portal.chat-box`"
43
- },
44
6
  {
45
7
  "name": "ai-portal.cruise-canvas",
46
8
  "properties": [
@@ -168,6 +130,90 @@
168
130
  "parts": [],
169
131
  "description": "构件 `ai-portal.cruise-canvas`"
170
132
  },
133
+ {
134
+ "name": "ai-portal.home-container",
135
+ "properties": [],
136
+ "events": [],
137
+ "slots": [],
138
+ "methods": [],
139
+ "parts": [],
140
+ "description": "构件 `ai-portal.home-container`"
141
+ },
142
+ {
143
+ "name": "ai-portal.chat-history",
144
+ "properties": [
145
+ {
146
+ "name": "list",
147
+ "attribute": false,
148
+ "type": "HistoryItem[]"
149
+ },
150
+ {
151
+ "name": "actions",
152
+ "attribute": false,
153
+ "type": "ActionType[]"
154
+ },
155
+ {
156
+ "name": "nextToken",
157
+ "type": "string"
158
+ }
159
+ ],
160
+ "events": [
161
+ {
162
+ "name": "action.click",
163
+ "detail": {
164
+ "type": "ActionClickDetail"
165
+ }
166
+ },
167
+ {
168
+ "name": "load.more",
169
+ "detail": {
170
+ "type": "{ nextToken: string }"
171
+ }
172
+ }
173
+ ],
174
+ "slots": [],
175
+ "methods": [],
176
+ "parts": [],
177
+ "description": "构件 `ai-portal.chat-history`"
178
+ },
179
+ {
180
+ "name": "ai-portal.chat-box",
181
+ "properties": [
182
+ {
183
+ "name": "disabled",
184
+ "type": "boolean"
185
+ },
186
+ {
187
+ "name": "placeholder",
188
+ "type": "string"
189
+ },
190
+ {
191
+ "name": "autoFocus",
192
+ "type": "boolean"
193
+ },
194
+ {
195
+ "name": "suggestions",
196
+ "attribute": false,
197
+ "type": "Suggestion[]"
198
+ },
199
+ {
200
+ "name": "suggestionsLabel",
201
+ "type": "string"
202
+ }
203
+ ],
204
+ "events": [
205
+ {
206
+ "name": "message.submit",
207
+ "detail": {
208
+ "type": "string"
209
+ }
210
+ }
211
+ ],
212
+ "slots": [],
213
+ "methods": [],
214
+ "parts": [],
215
+ "description": "构件 `ai-portal.chat-box`"
216
+ },
171
217
  {
172
218
  "name": "ai-portal.stat-with-mini-chart",
173
219
  "properties": [
@@ -373,26 +419,6 @@
373
419
  "parts": [],
374
420
  "description": "构件 `ai-portal.mcp-tools`"
375
421
  },
376
- {
377
- "name": "ai-portal.ai-employees",
378
- "properties": [
379
- {
380
- "name": "list",
381
- "attribute": false,
382
- "type": "Employee[]"
383
- },
384
- {
385
- "name": "industries",
386
- "attribute": false,
387
- "type": "string[]"
388
- }
389
- ],
390
- "events": [],
391
- "slots": [],
392
- "methods": [],
393
- "parts": [],
394
- "description": "构件 `ai-portal.ai-employees`"
395
- },
396
422
  {
397
423
  "name": "ai-portal.chat-stream",
398
424
  "properties": [
@@ -493,65 +519,39 @@
493
519
  "description": "构件 `ai-portal.chat-stream`"
494
520
  },
495
521
  {
496
- "name": "ai-portal.ai-agents",
522
+ "name": "ai-portal.ai-employees",
497
523
  "properties": [
498
524
  {
499
525
  "name": "list",
500
526
  "attribute": false,
501
- "type": "Agent[]"
527
+ "type": "Employee[]"
528
+ },
529
+ {
530
+ "name": "industries",
531
+ "attribute": false,
532
+ "type": "string[]"
502
533
  }
503
534
  ],
504
535
  "events": [],
505
536
  "slots": [],
506
537
  "methods": [],
507
538
  "parts": [],
508
- "description": "构件 `ai-portal.ai-agents`"
509
- },
510
- {
511
- "name": "ai-portal.home-container",
512
- "properties": [],
513
- "events": [],
514
- "slots": [],
515
- "methods": [],
516
- "parts": [],
517
- "description": "构件 `ai-portal.home-container`"
539
+ "description": "构件 `ai-portal.ai-employees`"
518
540
  },
519
541
  {
520
- "name": "ai-portal.chat-history",
542
+ "name": "ai-portal.ai-agents",
521
543
  "properties": [
522
544
  {
523
545
  "name": "list",
524
546
  "attribute": false,
525
- "type": "HistoryItem[]"
526
- },
527
- {
528
- "name": "actions",
529
- "attribute": false,
530
- "type": "ActionType[]"
531
- },
532
- {
533
- "name": "nextToken",
534
- "type": "string"
535
- }
536
- ],
537
- "events": [
538
- {
539
- "name": "action.click",
540
- "detail": {
541
- "type": "ActionClickDetail"
542
- }
543
- },
544
- {
545
- "name": "load.more",
546
- "detail": {
547
- "type": "{ nextToken: string }"
548
- }
547
+ "type": "Agent[]"
549
548
  }
550
549
  ],
550
+ "events": [],
551
551
  "slots": [],
552
552
  "methods": [],
553
553
  "parts": [],
554
- "description": "构件 `ai-portal.chat-history`"
554
+ "description": "构件 `ai-portal.ai-agents`"
555
555
  }
556
556
  ],
557
557
  "providers": [
package/dist/types.json CHANGED
@@ -1,4 +1,9 @@
1
1
  {
2
+ "ai-portal.home-container": {
3
+ "properties": [],
4
+ "events": [],
5
+ "methods": []
6
+ },
2
7
  "ai-portal.stat-with-mini-chart": {
3
8
  "properties": [
4
9
  {
@@ -288,10 +293,187 @@
288
293
  }
289
294
  }
290
295
  },
291
- "ai-portal.home-container": {
292
- "properties": [],
293
- "events": [],
294
- "methods": []
296
+ "ai-portal.chat-history": {
297
+ "properties": [
298
+ {
299
+ "name": "list",
300
+ "annotation": {
301
+ "type": "array",
302
+ "elementType": {
303
+ "type": "reference",
304
+ "typeName": {
305
+ "type": "identifier",
306
+ "name": "HistoryItem"
307
+ }
308
+ }
309
+ }
310
+ },
311
+ {
312
+ "name": "actions",
313
+ "annotation": {
314
+ "type": "array",
315
+ "elementType": {
316
+ "type": "reference",
317
+ "typeName": {
318
+ "type": "identifier",
319
+ "name": "ActionType"
320
+ }
321
+ }
322
+ }
323
+ },
324
+ {
325
+ "name": "nextToken",
326
+ "annotation": {
327
+ "type": "keyword",
328
+ "value": "string"
329
+ }
330
+ }
331
+ ],
332
+ "events": [
333
+ {
334
+ "name": "action.click",
335
+ "detail": {
336
+ "annotation": {
337
+ "type": "reference",
338
+ "typeName": {
339
+ "type": "identifier",
340
+ "name": "ActionClickDetail"
341
+ }
342
+ }
343
+ }
344
+ },
345
+ {
346
+ "name": "load.more",
347
+ "detail": {
348
+ "annotation": {
349
+ "type": "typeLiteral",
350
+ "members": [
351
+ {
352
+ "type": "propertySignature",
353
+ "key": {
354
+ "type": "identifier",
355
+ "name": "nextToken"
356
+ },
357
+ "annotation": {
358
+ "type": "keyword",
359
+ "value": "string"
360
+ },
361
+ "computed": false
362
+ }
363
+ ]
364
+ }
365
+ }
366
+ }
367
+ ],
368
+ "methods": [],
369
+ "types": [
370
+ {
371
+ "type": "interface",
372
+ "name": "HistoryItem",
373
+ "body": [
374
+ {
375
+ "type": "propertySignature",
376
+ "key": {
377
+ "type": "identifier",
378
+ "name": "id"
379
+ },
380
+ "annotation": {
381
+ "type": "keyword",
382
+ "value": "string"
383
+ },
384
+ "computed": false
385
+ },
386
+ {
387
+ "type": "propertySignature",
388
+ "key": {
389
+ "type": "identifier",
390
+ "name": "url"
391
+ },
392
+ "annotation": {
393
+ "type": "keyword",
394
+ "value": "string"
395
+ },
396
+ "computed": false
397
+ },
398
+ {
399
+ "type": "propertySignature",
400
+ "key": {
401
+ "type": "identifier",
402
+ "name": "title"
403
+ },
404
+ "annotation": {
405
+ "type": "keyword",
406
+ "value": "string"
407
+ },
408
+ "computed": false
409
+ },
410
+ {
411
+ "type": "propertySignature",
412
+ "key": {
413
+ "type": "identifier",
414
+ "name": "startTime"
415
+ },
416
+ "annotation": {
417
+ "type": "keyword",
418
+ "value": "number"
419
+ },
420
+ "computed": false
421
+ },
422
+ {
423
+ "type": "propertySignature",
424
+ "key": {
425
+ "type": "identifier",
426
+ "name": "state"
427
+ },
428
+ "annotation": {
429
+ "type": "reference",
430
+ "typeName": {
431
+ "type": "identifier",
432
+ "name": "TaskState"
433
+ }
434
+ },
435
+ "optional": true,
436
+ "computed": false
437
+ }
438
+ ]
439
+ },
440
+ {
441
+ "type": "interface",
442
+ "name": "ActionClickDetail",
443
+ "body": [
444
+ {
445
+ "type": "propertySignature",
446
+ "key": {
447
+ "type": "identifier",
448
+ "name": "action"
449
+ },
450
+ "annotation": {
451
+ "type": "reference",
452
+ "typeName": {
453
+ "type": "identifier",
454
+ "name": "SimpleActionType"
455
+ }
456
+ },
457
+ "computed": false
458
+ },
459
+ {
460
+ "type": "propertySignature",
461
+ "key": {
462
+ "type": "identifier",
463
+ "name": "item"
464
+ },
465
+ "annotation": {
466
+ "type": "reference",
467
+ "typeName": {
468
+ "type": "identifier",
469
+ "name": "HistoryItem"
470
+ }
471
+ },
472
+ "computed": false
473
+ }
474
+ ]
475
+ }
476
+ ]
295
477
  },
296
478
  "ai-portal.chat-box": {
297
479
  "properties": [
@@ -769,188 +951,6 @@
769
951
  }
770
952
  ]
771
953
  },
772
- "ai-portal.chat-history": {
773
- "properties": [
774
- {
775
- "name": "list",
776
- "annotation": {
777
- "type": "array",
778
- "elementType": {
779
- "type": "reference",
780
- "typeName": {
781
- "type": "identifier",
782
- "name": "HistoryItem"
783
- }
784
- }
785
- }
786
- },
787
- {
788
- "name": "actions",
789
- "annotation": {
790
- "type": "array",
791
- "elementType": {
792
- "type": "reference",
793
- "typeName": {
794
- "type": "identifier",
795
- "name": "ActionType"
796
- }
797
- }
798
- }
799
- },
800
- {
801
- "name": "nextToken",
802
- "annotation": {
803
- "type": "keyword",
804
- "value": "string"
805
- }
806
- }
807
- ],
808
- "events": [
809
- {
810
- "name": "action.click",
811
- "detail": {
812
- "annotation": {
813
- "type": "reference",
814
- "typeName": {
815
- "type": "identifier",
816
- "name": "ActionClickDetail"
817
- }
818
- }
819
- }
820
- },
821
- {
822
- "name": "load.more",
823
- "detail": {
824
- "annotation": {
825
- "type": "typeLiteral",
826
- "members": [
827
- {
828
- "type": "propertySignature",
829
- "key": {
830
- "type": "identifier",
831
- "name": "nextToken"
832
- },
833
- "annotation": {
834
- "type": "keyword",
835
- "value": "string"
836
- },
837
- "computed": false
838
- }
839
- ]
840
- }
841
- }
842
- }
843
- ],
844
- "methods": [],
845
- "types": [
846
- {
847
- "type": "interface",
848
- "name": "HistoryItem",
849
- "body": [
850
- {
851
- "type": "propertySignature",
852
- "key": {
853
- "type": "identifier",
854
- "name": "id"
855
- },
856
- "annotation": {
857
- "type": "keyword",
858
- "value": "string"
859
- },
860
- "computed": false
861
- },
862
- {
863
- "type": "propertySignature",
864
- "key": {
865
- "type": "identifier",
866
- "name": "url"
867
- },
868
- "annotation": {
869
- "type": "keyword",
870
- "value": "string"
871
- },
872
- "computed": false
873
- },
874
- {
875
- "type": "propertySignature",
876
- "key": {
877
- "type": "identifier",
878
- "name": "title"
879
- },
880
- "annotation": {
881
- "type": "keyword",
882
- "value": "string"
883
- },
884
- "computed": false
885
- },
886
- {
887
- "type": "propertySignature",
888
- "key": {
889
- "type": "identifier",
890
- "name": "startTime"
891
- },
892
- "annotation": {
893
- "type": "keyword",
894
- "value": "number"
895
- },
896
- "computed": false
897
- },
898
- {
899
- "type": "propertySignature",
900
- "key": {
901
- "type": "identifier",
902
- "name": "state"
903
- },
904
- "annotation": {
905
- "type": "reference",
906
- "typeName": {
907
- "type": "identifier",
908
- "name": "TaskState"
909
- }
910
- },
911
- "optional": true,
912
- "computed": false
913
- }
914
- ]
915
- },
916
- {
917
- "type": "interface",
918
- "name": "ActionClickDetail",
919
- "body": [
920
- {
921
- "type": "propertySignature",
922
- "key": {
923
- "type": "identifier",
924
- "name": "action"
925
- },
926
- "annotation": {
927
- "type": "reference",
928
- "typeName": {
929
- "type": "identifier",
930
- "name": "SimpleActionType"
931
- }
932
- },
933
- "computed": false
934
- },
935
- {
936
- "type": "propertySignature",
937
- "key": {
938
- "type": "identifier",
939
- "name": "item"
940
- },
941
- "annotation": {
942
- "type": "reference",
943
- "typeName": {
944
- "type": "identifier",
945
- "name": "HistoryItem"
946
- }
947
- },
948
- "computed": false
949
- }
950
- ]
951
- }
952
- ]
953
- },
954
954
  "ai-portal.elevo-sidebar": {
955
955
  "properties": [
956
956
  {
@@ -1,9 +1,9 @@
1
1
  import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
2
2
  import type { TaskState as LegacyTaskState } from "../cruise-canvas/interfaces.js";
3
3
  import type { TaskState } from "./interfaces.js";
4
- export declare const DONE_STATES: (TaskState | LegacyTaskState)[];
5
- export declare const GENERAL_DONE_STATES: (TaskState | LegacyTaskState)[];
6
- export declare const NON_WORKING_STATES: string[];
4
+ export declare const DONE_STATES: (TaskState | LegacyTaskState | undefined)[];
5
+ export declare const GENERAL_DONE_STATES: (TaskState | LegacyTaskState | undefined)[];
6
+ export declare const NON_WORKING_STATES: (string | undefined)[];
7
7
  export declare const ICON_CLOSE: GeneralIconProps;
8
8
  export declare const ICON_LOADING: GeneralIconProps;
9
9
  export declare const ICON_CANVAS: GeneralIconProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.28.2",
3
+ "version": "0.28.3",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,5 +46,5 @@
46
46
  "@next-bricks/presentational": "*",
47
47
  "@next-bricks/vs": "*"
48
48
  },
49
- "gitHead": "4164cd26b58b926f078b39259bf72861ad7e341d"
49
+ "gitHead": "e5d3af8d2616eeea97a67629b2bdb8870d5f9140"
50
50
  }