@next-bricks/ai-portal 0.20.2 → 0.20.4

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.
package/dist/types.json CHANGED
@@ -1,4 +1,14 @@
1
1
  {
2
+ "ai-portal.home-container": {
3
+ "properties": [],
4
+ "events": [],
5
+ "methods": []
6
+ },
7
+ "ai-portal.elevo-logo": {
8
+ "properties": [],
9
+ "events": [],
10
+ "methods": []
11
+ },
2
12
  "ai-portal.stat-with-mini-chart": {
3
13
  "properties": [
4
14
  {
@@ -103,16 +113,6 @@
103
113
  "events": [],
104
114
  "methods": []
105
115
  },
106
- "ai-portal.home-container": {
107
- "properties": [],
108
- "events": [],
109
- "methods": []
110
- },
111
- "ai-portal.elevo-logo": {
112
- "properties": [],
113
- "events": [],
114
- "methods": []
115
- },
116
116
  "ai-portal.icon-button": {
117
117
  "properties": [
118
118
  {
@@ -484,61 +484,23 @@
484
484
  }
485
485
  ]
486
486
  },
487
- "ai-portal.elevo-sidebar": {
487
+ "ai-portal.chat-history": {
488
488
  "properties": [
489
489
  {
490
- "name": "userInstanceId",
491
- "annotation": {
492
- "type": "keyword",
493
- "value": "string"
494
- }
495
- },
496
- {
497
- "name": "behavior",
490
+ "name": "list",
498
491
  "annotation": {
499
- "type": "union",
500
- "types": [
501
- {
502
- "type": "jsLiteral",
503
- "value": "default"
504
- },
505
- {
506
- "type": "jsLiteral",
507
- "value": "drawer"
492
+ "type": "array",
493
+ "elementType": {
494
+ "type": "reference",
495
+ "typeName": {
496
+ "type": "identifier",
497
+ "name": "HistoryItem"
508
498
  }
509
- ]
510
- }
511
- },
512
- {
513
- "name": "logoUrl",
514
- "annotation": {
515
- "type": "keyword",
516
- "value": "string"
517
- }
518
- },
519
- {
520
- "name": "newChatUrl",
521
- "annotation": {
522
- "type": "keyword",
523
- "value": "string"
524
- }
525
- },
526
- {
527
- "name": "historyActiveId",
528
- "annotation": {
529
- "type": "keyword",
530
- "value": "string"
531
- }
532
- },
533
- {
534
- "name": "historyUrlTemplate",
535
- "annotation": {
536
- "type": "keyword",
537
- "value": "string"
499
+ }
538
500
  }
539
501
  },
540
502
  {
541
- "name": "historyActions",
503
+ "name": "actions",
542
504
  "annotation": {
543
505
  "type": "array",
544
506
  "elementType": {
@@ -549,18 +511,16 @@
549
511
  }
550
512
  }
551
513
  }
514
+ },
515
+ {
516
+ "name": "nextToken",
517
+ "annotation": {
518
+ "type": "keyword",
519
+ "value": "string"
520
+ }
552
521
  }
553
522
  ],
554
523
  "events": [
555
- {
556
- "name": "logout",
557
- "detail": {
558
- "annotation": {
559
- "type": "keyword",
560
- "value": "void"
561
- }
562
- }
563
- },
564
524
  {
565
525
  "name": "action.click",
566
526
  "detail": {
@@ -572,26 +532,45 @@
572
532
  }
573
533
  }
574
534
  }
535
+ },
536
+ {
537
+ "name": "load.more",
538
+ "detail": {
539
+ "annotation": {
540
+ "type": "typeLiteral",
541
+ "members": [
542
+ {
543
+ "type": "propertySignature",
544
+ "key": {
545
+ "type": "identifier",
546
+ "name": "nextToken"
547
+ },
548
+ "annotation": {
549
+ "type": "keyword",
550
+ "value": "string"
551
+ },
552
+ "computed": false
553
+ }
554
+ ]
555
+ }
556
+ }
575
557
  }
576
558
  ],
577
559
  "methods": [],
578
560
  "types": [
579
561
  {
580
562
  "type": "interface",
581
- "name": "ActionClickDetail",
563
+ "name": "HistoryItem",
582
564
  "body": [
583
565
  {
584
566
  "type": "propertySignature",
585
567
  "key": {
586
568
  "type": "identifier",
587
- "name": "action"
569
+ "name": "id"
588
570
  },
589
571
  "annotation": {
590
- "type": "reference",
591
- "typeName": {
592
- "type": "identifier",
593
- "name": "SimpleActionType"
594
- }
572
+ "type": "keyword",
573
+ "value": "string"
595
574
  },
596
575
  "computed": false
597
576
  },
@@ -599,28 +578,7 @@
599
578
  "type": "propertySignature",
600
579
  "key": {
601
580
  "type": "identifier",
602
- "name": "item"
603
- },
604
- "annotation": {
605
- "type": "reference",
606
- "typeName": {
607
- "type": "identifier",
608
- "name": "HistoryItem"
609
- }
610
- },
611
- "computed": false
612
- }
613
- ]
614
- },
615
- {
616
- "type": "interface",
617
- "name": "HistoryItem",
618
- "body": [
619
- {
620
- "type": "propertySignature",
621
- "key": {
622
- "type": "identifier",
623
- "name": "id"
581
+ "name": "url"
624
582
  },
625
583
  "annotation": {
626
584
  "type": "keyword",
@@ -669,26 +627,100 @@
669
627
  "computed": false
670
628
  }
671
629
  ]
630
+ },
631
+ {
632
+ "type": "interface",
633
+ "name": "ActionClickDetail",
634
+ "body": [
635
+ {
636
+ "type": "propertySignature",
637
+ "key": {
638
+ "type": "identifier",
639
+ "name": "action"
640
+ },
641
+ "annotation": {
642
+ "type": "reference",
643
+ "typeName": {
644
+ "type": "identifier",
645
+ "name": "SimpleActionType"
646
+ }
647
+ },
648
+ "computed": false
649
+ },
650
+ {
651
+ "type": "propertySignature",
652
+ "key": {
653
+ "type": "identifier",
654
+ "name": "item"
655
+ },
656
+ "annotation": {
657
+ "type": "reference",
658
+ "typeName": {
659
+ "type": "identifier",
660
+ "name": "HistoryItem"
661
+ }
662
+ },
663
+ "computed": false
664
+ }
665
+ ]
672
666
  }
673
667
  ]
674
668
  },
675
- "ai-portal.chat-history": {
669
+ "ai-portal.elevo-sidebar": {
676
670
  "properties": [
677
671
  {
678
- "name": "list",
672
+ "name": "userInstanceId",
679
673
  "annotation": {
680
- "type": "array",
681
- "elementType": {
682
- "type": "reference",
683
- "typeName": {
684
- "type": "identifier",
685
- "name": "HistoryItem"
674
+ "type": "keyword",
675
+ "value": "string"
676
+ }
677
+ },
678
+ {
679
+ "name": "behavior",
680
+ "annotation": {
681
+ "type": "union",
682
+ "types": [
683
+ {
684
+ "type": "jsLiteral",
685
+ "value": "default"
686
+ },
687
+ {
688
+ "type": "jsLiteral",
689
+ "value": "drawer"
686
690
  }
687
- }
691
+ ]
688
692
  }
689
693
  },
690
694
  {
691
- "name": "actions",
695
+ "name": "logoUrl",
696
+ "annotation": {
697
+ "type": "keyword",
698
+ "value": "string"
699
+ }
700
+ },
701
+ {
702
+ "name": "newChatUrl",
703
+ "annotation": {
704
+ "type": "keyword",
705
+ "value": "string"
706
+ }
707
+ },
708
+ {
709
+ "name": "historyActiveId",
710
+ "annotation": {
711
+ "type": "keyword",
712
+ "value": "string"
713
+ }
714
+ },
715
+ {
716
+ "name": "historyUrlTemplate",
717
+ "annotation": {
718
+ "type": "keyword",
719
+ "value": "string"
720
+ }
721
+ },
722
+ {
723
+ "name": "historyActions",
692
724
  "annotation": {
693
725
  "type": "array",
694
726
  "elementType": {
@@ -699,47 +731,27 @@
699
731
  }
700
732
  }
701
733
  }
702
- },
703
- {
704
- "name": "nextToken",
705
- "annotation": {
706
- "type": "keyword",
707
- "value": "string"
708
- }
709
734
  }
710
735
  ],
711
736
  "events": [
712
737
  {
713
- "name": "action.click",
738
+ "name": "logout",
714
739
  "detail": {
715
740
  "annotation": {
716
- "type": "reference",
717
- "typeName": {
718
- "type": "identifier",
719
- "name": "ActionClickDetail"
720
- }
741
+ "type": "keyword",
742
+ "value": "void"
721
743
  }
722
744
  }
723
745
  },
724
746
  {
725
- "name": "load.more",
747
+ "name": "action.click",
726
748
  "detail": {
727
749
  "annotation": {
728
- "type": "typeLiteral",
729
- "members": [
730
- {
731
- "type": "propertySignature",
732
- "key": {
733
- "type": "identifier",
734
- "name": "nextToken"
735
- },
736
- "annotation": {
737
- "type": "keyword",
738
- "value": "string"
739
- },
740
- "computed": false
741
- }
742
- ]
750
+ "type": "reference",
751
+ "typeName": {
752
+ "type": "identifier",
753
+ "name": "ActionClickDetail"
754
+ }
743
755
  }
744
756
  }
745
757
  }
@@ -748,17 +760,20 @@
748
760
  "types": [
749
761
  {
750
762
  "type": "interface",
751
- "name": "HistoryItem",
763
+ "name": "ActionClickDetail",
752
764
  "body": [
753
765
  {
754
766
  "type": "propertySignature",
755
767
  "key": {
756
768
  "type": "identifier",
757
- "name": "id"
769
+ "name": "action"
758
770
  },
759
771
  "annotation": {
760
- "type": "keyword",
761
- "value": "string"
772
+ "type": "reference",
773
+ "typeName": {
774
+ "type": "identifier",
775
+ "name": "SimpleActionType"
776
+ }
762
777
  },
763
778
  "computed": false
764
779
  },
@@ -766,19 +781,28 @@
766
781
  "type": "propertySignature",
767
782
  "key": {
768
783
  "type": "identifier",
769
- "name": "url"
784
+ "name": "item"
770
785
  },
771
786
  "annotation": {
772
- "type": "keyword",
773
- "value": "string"
787
+ "type": "reference",
788
+ "typeName": {
789
+ "type": "identifier",
790
+ "name": "HistoryItem"
791
+ }
774
792
  },
775
793
  "computed": false
776
- },
794
+ }
795
+ ]
796
+ },
797
+ {
798
+ "type": "interface",
799
+ "name": "HistoryItem",
800
+ "body": [
777
801
  {
778
802
  "type": "propertySignature",
779
803
  "key": {
780
804
  "type": "identifier",
781
- "name": "title"
805
+ "name": "id"
782
806
  },
783
807
  "annotation": {
784
808
  "type": "keyword",
@@ -790,11 +814,11 @@
790
814
  "type": "propertySignature",
791
815
  "key": {
792
816
  "type": "identifier",
793
- "name": "startTime"
817
+ "name": "title"
794
818
  },
795
819
  "annotation": {
796
820
  "type": "keyword",
797
- "value": "number"
821
+ "value": "string"
798
822
  },
799
823
  "computed": false
800
824
  },
@@ -802,36 +826,11 @@
802
826
  "type": "propertySignature",
803
827
  "key": {
804
828
  "type": "identifier",
805
- "name": "state"
806
- },
807
- "annotation": {
808
- "type": "reference",
809
- "typeName": {
810
- "type": "identifier",
811
- "name": "TaskState"
812
- }
813
- },
814
- "optional": true,
815
- "computed": false
816
- }
817
- ]
818
- },
819
- {
820
- "type": "interface",
821
- "name": "ActionClickDetail",
822
- "body": [
823
- {
824
- "type": "propertySignature",
825
- "key": {
826
- "type": "identifier",
827
- "name": "action"
829
+ "name": "startTime"
828
830
  },
829
831
  "annotation": {
830
- "type": "reference",
831
- "typeName": {
832
- "type": "identifier",
833
- "name": "SimpleActionType"
834
- }
832
+ "type": "keyword",
833
+ "value": "number"
835
834
  },
836
835
  "computed": false
837
836
  },
@@ -839,15 +838,16 @@
839
838
  "type": "propertySignature",
840
839
  "key": {
841
840
  "type": "identifier",
842
- "name": "item"
841
+ "name": "state"
843
842
  },
844
843
  "annotation": {
845
844
  "type": "reference",
846
845
  "typeName": {
847
846
  "type": "identifier",
848
- "name": "HistoryItem"
847
+ "name": "TaskState"
849
848
  }
850
849
  },
850
+ "optional": true,
851
851
  "computed": false
852
852
  }
853
853
  ]
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import type { CmdbInstanceDetailData } from "../interfaces";
3
- export declare function CmdbInstanceDetail({ objectId, detail, outputSchema, }: CmdbInstanceDetailData): React.JSX.Element | null;
3
+ export declare function CmdbInstanceDetail({ objectId, detail, outputSchema, }: CmdbInstanceDetailData): React.JSX.Element;
@@ -6,7 +6,6 @@ import type { EoTooltip, ToolTipProps } from "@next-bricks/basic/tooltip";
6
6
  import type { Drawer, DrawerProps, DrawerEvents, DrawerMapEvents } from "@next-bricks/containers/drawer";
7
7
  import { PopoverProps, Popover } from "@next-bricks/basic/popover";
8
8
  import { EoNextTable, NextTableProps } from "@next-bricks/advanced/next-table";
9
- import { Descriptions, DescriptionsProps } from "@next-bricks/presentational/descriptions";
10
9
  import type { IconButton, IconButtonProps } from "../icon-button";
11
10
  export declare const WrappedIcon: import("@next-core/react-element").WrappedBrick<GeneralIcon, GeneralIconProps>;
12
11
  export declare const WrappedButton: import("@next-core/react-element").WrappedBrick<Button, ButtonProps>;
@@ -20,4 +19,3 @@ export declare const WrappedIconButton: import("@next-core/react-element").Wrapp
20
19
  export declare const showDialog: (options: import("@next-bricks/basic/data-providers/show-dialog/show-dialog").DialogOptions) => Promise<void>;
21
20
  export declare const copyToClipboard: (text: string) => Promise<void>;
22
21
  export declare const AsyncWrappedTable: React.LazyExoticComponent<import("@next-core/react-element").WrappedBrick<EoNextTable, NextTableProps>>;
23
- export declare const AsyncWrappedDescriptions: React.LazyExoticComponent<import("@next-core/react-element").WrappedBrick<Descriptions, DescriptionsProps>>;
@@ -81,6 +81,83 @@ children:
81
81
  《XX公司运维管理文件》
82
82
 
83
83
  依据《XX公司运维管理文件》该系统的重要等级为一级,可用性要求99.999%,MTTR为小于3分钟,该系统部署需要实现异地容灾,建议采用双中心部署,且单中心内核心模块无单点。
84
+ - role: tool
85
+ parts:
86
+ - type: data
87
+ data:
88
+ type: cmdb_instance_detail
89
+ objectId: HOST
90
+ detail:
91
+ hostname: dev-01
92
+ env:
93
+ - id: prod
94
+ name: 生产
95
+ - id: test
96
+ name: 测试
97
+ backupOwners:
98
+ - username: Jerry
99
+ email: jerry@example.com
100
+ - username: Lucy
101
+ email: lucy@example.com
102
+ - username: Mark
103
+ email: mark@example.com
104
+ owner:
105
+ username: Jim
106
+ email: jim@example.com
107
+ - id: dev
108
+ name: 开发
109
+ owner:
110
+ username: Tom
111
+ email: tom@example.com
112
+ system:
113
+ id: web
114
+ name: Web
115
+ outputSchema:
116
+ type: object
117
+ properties:
118
+ hostname:
119
+ description: 主机名
120
+ type: string
121
+ system:
122
+ type: object
123
+ properties:
124
+ id:
125
+ type: string
126
+ description: ID
127
+ name:
128
+ type: string
129
+ env:
130
+ type: array
131
+ description: 环境
132
+ items:
133
+ type: object
134
+ properties:
135
+ id:
136
+ description: ID
137
+ type: string
138
+ name:
139
+ description: 环境名称
140
+ type: string
141
+ owner:
142
+ type: object
143
+ properties:
144
+ username:
145
+ type: string
146
+ description: 用户名
147
+ email:
148
+ type: string
149
+ description: 邮箱
150
+ backupOwners:
151
+ type: array
152
+ items:
153
+ type: object
154
+ properties:
155
+ username:
156
+ type: string
157
+ description: 用户名
158
+ email:
159
+ type: string
160
+ description: 邮箱
84
161
  - id: "7"
85
162
  upstream: ["4", "5"]
86
163
  state: completed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.20.2",
3
+ "version": "0.20.4",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,5 +45,5 @@
45
45
  "@next-bricks/mini-chart": "*",
46
46
  "@next-bricks/presentational": "*"
47
47
  },
48
- "gitHead": "30a07a2a8b2574abd2bcfcd01b069d33273a3d97"
48
+ "gitHead": "aeff37447779f12cff3c6e17ca8795ccf9d36b77"
49
49
  }