@next-bricks/ai-portal 0.41.2 → 0.42.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 (74) hide show
  1. package/dist/bricks.json +45 -44
  2. package/dist/chunks/{453.e0c39d75.js → 453.e2767a6d.js} +2 -2
  3. package/dist/chunks/453.e2767a6d.js.map +1 -0
  4. package/dist/chunks/6754.9dfa5269.js +2 -0
  5. package/dist/chunks/6754.9dfa5269.js.map +1 -0
  6. package/dist/chunks/7493.6f9d9ca0.js +2 -0
  7. package/dist/chunks/7493.6f9d9ca0.js.map +1 -0
  8. package/dist/chunks/7570.ae14a465.js +2 -0
  9. package/dist/chunks/7570.ae14a465.js.map +1 -0
  10. package/dist/chunks/9474.eb2019f3.js +2 -0
  11. package/dist/chunks/9474.eb2019f3.js.map +1 -0
  12. package/dist/chunks/9749.cfb84a2f.js +2 -0
  13. package/dist/chunks/9749.cfb84a2f.js.map +1 -0
  14. package/dist/chunks/activity-timeline.5ea5526f.js +2 -0
  15. package/dist/chunks/activity-timeline.5ea5526f.js.map +1 -0
  16. package/dist/chunks/chat-box.4f6d3704.js +2 -0
  17. package/dist/chunks/chat-box.4f6d3704.js.map +1 -0
  18. package/dist/chunks/chat-input.679aec70.js +3 -0
  19. package/dist/chunks/chat-input.679aec70.js.map +1 -0
  20. package/dist/chunks/chat-stream.a2e40a99.js +2 -0
  21. package/dist/chunks/chat-stream.a2e40a99.js.map +1 -0
  22. package/dist/chunks/cruise-canvas.77318b42.js +2 -0
  23. package/dist/chunks/cruise-canvas.77318b42.js.map +1 -0
  24. package/dist/chunks/{goal-card-list.5f61cd91.js → goal-card-list.fcce68bd.js} +3 -3
  25. package/dist/chunks/{goal-card-list.5f61cd91.js.map → goal-card-list.fcce68bd.js.map} +1 -1
  26. package/dist/chunks/main.40e44ee2.js +2 -0
  27. package/dist/chunks/{main.24028689.js.map → main.40e44ee2.js.map} +1 -1
  28. package/dist/chunks/{preview-container.fa54ae91.js → preview-container.bbde74aa.js} +2 -2
  29. package/dist/chunks/preview-container.bbde74aa.js.map +1 -0
  30. package/dist/chunks/{project-conversations.d4771579.js → project-conversations.e525349e.js} +3 -3
  31. package/dist/chunks/project-conversations.e525349e.js.map +1 -0
  32. package/dist/examples.json +19 -19
  33. package/dist/index.ad4c133a.js +2 -0
  34. package/dist/{index.6143251e.js.map → index.ad4c133a.js.map} +1 -1
  35. package/dist/manifest.json +335 -312
  36. package/dist/types.json +215 -87
  37. package/dist-types/activity-timeline/i18n.d.ts +2 -2
  38. package/dist-types/chat-box/index.d.ts +9 -2
  39. package/dist-types/chat-stream/ChatStream.d.ts +3 -2
  40. package/dist-types/chat-stream/LegacyChatStream.d.ts +2 -1
  41. package/dist-types/chat-stream/index.d.ts +3 -0
  42. package/dist-types/cruise-canvas/CruiseCanvas.d.ts +3 -2
  43. package/dist-types/cruise-canvas/LegacyCruiseCanvas.d.ts +2 -1
  44. package/dist-types/cruise-canvas/index.d.ts +3 -0
  45. package/dist-types/shared/interfaces.d.ts +1 -0
  46. package/package.json +2 -2
  47. package/dist/chunks/2608.ecdc3896.js +0 -2
  48. package/dist/chunks/2608.ecdc3896.js.map +0 -1
  49. package/dist/chunks/382.d2e3f46f.js +0 -2
  50. package/dist/chunks/382.d2e3f46f.js.map +0 -1
  51. package/dist/chunks/453.e0c39d75.js.map +0 -1
  52. package/dist/chunks/6754.758fa3ae.js +0 -2
  53. package/dist/chunks/6754.758fa3ae.js.map +0 -1
  54. package/dist/chunks/7493.b181babb.js +0 -2
  55. package/dist/chunks/7493.b181babb.js.map +0 -1
  56. package/dist/chunks/7774.505f9191.js +0 -2
  57. package/dist/chunks/7774.505f9191.js.map +0 -1
  58. package/dist/chunks/activity-timeline.85a243bc.js +0 -2
  59. package/dist/chunks/activity-timeline.85a243bc.js.map +0 -1
  60. package/dist/chunks/chat-box.15e40b8e.js +0 -2
  61. package/dist/chunks/chat-box.15e40b8e.js.map +0 -1
  62. package/dist/chunks/chat-input.3e67d2d4.js +0 -3
  63. package/dist/chunks/chat-input.3e67d2d4.js.map +0 -1
  64. package/dist/chunks/chat-stream.88ec601e.js +0 -2
  65. package/dist/chunks/chat-stream.88ec601e.js.map +0 -1
  66. package/dist/chunks/cruise-canvas.f715731a.js +0 -2
  67. package/dist/chunks/cruise-canvas.f715731a.js.map +0 -1
  68. package/dist/chunks/main.24028689.js +0 -2
  69. package/dist/chunks/preview-container.fa54ae91.js.map +0 -1
  70. package/dist/chunks/project-conversations.d4771579.js.map +0 -1
  71. package/dist/index.6143251e.js +0 -2
  72. /package/dist/chunks/{chat-input.3e67d2d4.js.LICENSE.txt → chat-input.679aec70.js.LICENSE.txt} +0 -0
  73. /package/dist/chunks/{goal-card-list.5f61cd91.js.LICENSE.txt → goal-card-list.fcce68bd.js.LICENSE.txt} +0 -0
  74. /package/dist/chunks/{project-conversations.d4771579.js.LICENSE.txt → project-conversations.e525349e.js.LICENSE.txt} +0 -0
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
  {
@@ -536,11 +541,6 @@
536
541
  "events": [],
537
542
  "methods": []
538
543
  },
539
- "ai-portal.home-container": {
540
- "properties": [],
541
- "events": [],
542
- "methods": []
543
- },
544
544
  "ai-portal.project-knowledges": {
545
545
  "properties": [
546
546
  {
@@ -733,6 +733,19 @@
733
733
  "type": "keyword",
734
734
  "value": "boolean"
735
735
  }
736
+ },
737
+ {
738
+ "name": "aiEmployees",
739
+ "annotation": {
740
+ "type": "array",
741
+ "elementType": {
742
+ "type": "reference",
743
+ "typeName": {
744
+ "type": "identifier",
745
+ "name": "AIEmployee"
746
+ }
747
+ }
748
+ }
736
749
  }
737
750
  ],
738
751
  "events": [
@@ -744,6 +757,27 @@
744
757
  "value": "string"
745
758
  }
746
759
  }
760
+ },
761
+ {
762
+ "name": "ai-employee.mention",
763
+ "detail": {
764
+ "annotation": {
765
+ "type": "union",
766
+ "types": [
767
+ {
768
+ "type": "reference",
769
+ "typeName": {
770
+ "type": "identifier",
771
+ "name": "AIEmployee"
772
+ }
773
+ },
774
+ {
775
+ "type": "keyword",
776
+ "value": "null"
777
+ }
778
+ ]
779
+ }
780
+ }
747
781
  }
748
782
  ],
749
783
  "methods": [
@@ -765,6 +799,38 @@
765
799
  "params": [],
766
800
  "returns": {}
767
801
  }
802
+ ],
803
+ "types": [
804
+ {
805
+ "type": "interface",
806
+ "name": "AIEmployee",
807
+ "body": [
808
+ {
809
+ "type": "propertySignature",
810
+ "key": {
811
+ "type": "identifier",
812
+ "name": "employeeId"
813
+ },
814
+ "annotation": {
815
+ "type": "keyword",
816
+ "value": "string"
817
+ },
818
+ "computed": false
819
+ },
820
+ {
821
+ "type": "propertySignature",
822
+ "key": {
823
+ "type": "identifier",
824
+ "name": "name"
825
+ },
826
+ "annotation": {
827
+ "type": "keyword",
828
+ "value": "string"
829
+ },
830
+ "computed": false
831
+ }
832
+ ]
833
+ }
768
834
  ]
769
835
  },
770
836
  "ai-portal.show-cases": {
@@ -862,7 +928,7 @@
862
928
  }
863
929
  ]
864
930
  },
865
- "ai-portal.mcp-tools": {
931
+ "ai-portal.ai-employees": {
866
932
  "properties": [
867
933
  {
868
934
  "name": "list",
@@ -872,11 +938,28 @@
872
938
  "type": "reference",
873
939
  "typeName": {
874
940
  "type": "identifier",
875
- "name": "McpTool"
941
+ "name": "Employee"
876
942
  }
877
943
  }
878
944
  }
879
945
  },
946
+ {
947
+ "name": "industries",
948
+ "annotation": {
949
+ "type": "array",
950
+ "elementType": {
951
+ "type": "keyword",
952
+ "value": "string"
953
+ }
954
+ }
955
+ },
956
+ {
957
+ "name": "urlTemplate",
958
+ "annotation": {
959
+ "type": "keyword",
960
+ "value": "string"
961
+ }
962
+ },
880
963
  {
881
964
  "name": "withContainer",
882
965
  "annotation": {
@@ -890,7 +973,7 @@
890
973
  "types": [
891
974
  {
892
975
  "type": "interface",
893
- "name": "McpTool",
976
+ "name": "Employee",
894
977
  "body": [
895
978
  {
896
979
  "type": "propertySignature",
@@ -908,7 +991,7 @@
908
991
  "type": "propertySignature",
909
992
  "key": {
910
993
  "type": "identifier",
911
- "name": "title"
994
+ "name": "industry"
912
995
  },
913
996
  "annotation": {
914
997
  "type": "keyword",
@@ -920,7 +1003,7 @@
920
1003
  "type": "propertySignature",
921
1004
  "key": {
922
1005
  "type": "identifier",
923
- "name": "description"
1006
+ "name": "role"
924
1007
  },
925
1008
  "annotation": {
926
1009
  "type": "keyword",
@@ -932,44 +1015,7 @@
932
1015
  "type": "propertySignature",
933
1016
  "key": {
934
1017
  "type": "identifier",
935
- "name": "icon"
936
- },
937
- "annotation": {
938
- "type": "reference",
939
- "typeName": {
940
- "type": "identifier",
941
- "name": "GeneralIconProps"
942
- }
943
- },
944
- "optional": true,
945
- "computed": false
946
- },
947
- {
948
- "type": "propertySignature",
949
- "key": {
950
- "type": "identifier",
951
- "name": "server"
952
- },
953
- "annotation": {
954
- "type": "reference",
955
- "typeName": {
956
- "type": "identifier",
957
- "name": "McpServer"
958
- }
959
- },
960
- "computed": false
961
- }
962
- ]
963
- },
964
- {
965
- "type": "interface",
966
- "name": "McpServer",
967
- "body": [
968
- {
969
- "type": "propertySignature",
970
- "key": {
971
- "type": "identifier",
972
- "name": "id"
1018
+ "name": "description"
973
1019
  },
974
1020
  "annotation": {
975
1021
  "type": "keyword",
@@ -981,19 +1027,20 @@
981
1027
  "type": "propertySignature",
982
1028
  "key": {
983
1029
  "type": "identifier",
984
- "name": "name"
1030
+ "name": "avatar"
985
1031
  },
986
1032
  "annotation": {
987
1033
  "type": "keyword",
988
1034
  "value": "string"
989
1035
  },
1036
+ "optional": true,
990
1037
  "computed": false
991
1038
  }
992
1039
  ]
993
1040
  }
994
1041
  ]
995
1042
  },
996
- "ai-portal.ai-employees": {
1043
+ "ai-portal.mcp-tools": {
997
1044
  "properties": [
998
1045
  {
999
1046
  "name": "list",
@@ -1003,28 +1050,11 @@
1003
1050
  "type": "reference",
1004
1051
  "typeName": {
1005
1052
  "type": "identifier",
1006
- "name": "Employee"
1053
+ "name": "McpTool"
1007
1054
  }
1008
1055
  }
1009
1056
  }
1010
1057
  },
1011
- {
1012
- "name": "industries",
1013
- "annotation": {
1014
- "type": "array",
1015
- "elementType": {
1016
- "type": "keyword",
1017
- "value": "string"
1018
- }
1019
- }
1020
- },
1021
- {
1022
- "name": "urlTemplate",
1023
- "annotation": {
1024
- "type": "keyword",
1025
- "value": "string"
1026
- }
1027
- },
1028
1058
  {
1029
1059
  "name": "withContainer",
1030
1060
  "annotation": {
@@ -1038,7 +1068,7 @@
1038
1068
  "types": [
1039
1069
  {
1040
1070
  "type": "interface",
1041
- "name": "Employee",
1071
+ "name": "McpTool",
1042
1072
  "body": [
1043
1073
  {
1044
1074
  "type": "propertySignature",
@@ -1056,7 +1086,7 @@
1056
1086
  "type": "propertySignature",
1057
1087
  "key": {
1058
1088
  "type": "identifier",
1059
- "name": "industry"
1089
+ "name": "title"
1060
1090
  },
1061
1091
  "annotation": {
1062
1092
  "type": "keyword",
@@ -1068,7 +1098,7 @@
1068
1098
  "type": "propertySignature",
1069
1099
  "key": {
1070
1100
  "type": "identifier",
1071
- "name": "role"
1101
+ "name": "description"
1072
1102
  },
1073
1103
  "annotation": {
1074
1104
  "type": "keyword",
@@ -1080,7 +1110,44 @@
1080
1110
  "type": "propertySignature",
1081
1111
  "key": {
1082
1112
  "type": "identifier",
1083
- "name": "description"
1113
+ "name": "icon"
1114
+ },
1115
+ "annotation": {
1116
+ "type": "reference",
1117
+ "typeName": {
1118
+ "type": "identifier",
1119
+ "name": "GeneralIconProps"
1120
+ }
1121
+ },
1122
+ "optional": true,
1123
+ "computed": false
1124
+ },
1125
+ {
1126
+ "type": "propertySignature",
1127
+ "key": {
1128
+ "type": "identifier",
1129
+ "name": "server"
1130
+ },
1131
+ "annotation": {
1132
+ "type": "reference",
1133
+ "typeName": {
1134
+ "type": "identifier",
1135
+ "name": "McpServer"
1136
+ }
1137
+ },
1138
+ "computed": false
1139
+ }
1140
+ ]
1141
+ },
1142
+ {
1143
+ "type": "interface",
1144
+ "name": "McpServer",
1145
+ "body": [
1146
+ {
1147
+ "type": "propertySignature",
1148
+ "key": {
1149
+ "type": "identifier",
1150
+ "name": "id"
1084
1151
  },
1085
1152
  "annotation": {
1086
1153
  "type": "keyword",
@@ -1092,13 +1159,12 @@
1092
1159
  "type": "propertySignature",
1093
1160
  "key": {
1094
1161
  "type": "identifier",
1095
- "name": "avatar"
1162
+ "name": "name"
1096
1163
  },
1097
1164
  "annotation": {
1098
1165
  "type": "keyword",
1099
1166
  "value": "string"
1100
1167
  },
1101
- "optional": true,
1102
1168
  "computed": false
1103
1169
  }
1104
1170
  ]
@@ -1441,6 +1507,19 @@
1441
1507
  }
1442
1508
  ]
1443
1509
  },
1510
+ "ai-portal.preview-container": {
1511
+ "properties": [
1512
+ {
1513
+ "name": "source",
1514
+ "annotation": {
1515
+ "type": "keyword",
1516
+ "value": "string"
1517
+ }
1518
+ }
1519
+ ],
1520
+ "events": [],
1521
+ "methods": []
1522
+ },
1444
1523
  "ai-portal.action-buttons": {
1445
1524
  "properties": [
1446
1525
  {
@@ -1564,19 +1643,6 @@
1564
1643
  }
1565
1644
  ]
1566
1645
  },
1567
- "ai-portal.preview-container": {
1568
- "properties": [
1569
- {
1570
- "name": "source",
1571
- "annotation": {
1572
- "type": "keyword",
1573
- "value": "string"
1574
- }
1575
- }
1576
- ],
1577
- "events": [],
1578
- "methods": []
1579
- },
1580
1646
  "ai-portal.project-conversations": {
1581
1647
  "properties": [
1582
1648
  {
@@ -4005,6 +4071,18 @@
4005
4071
  "value": "chat"
4006
4072
  }
4007
4073
  }
4074
+ },
4075
+ {
4076
+ "name": "detail.change",
4077
+ "detail": {
4078
+ "annotation": {
4079
+ "type": "reference",
4080
+ "typeName": {
4081
+ "type": "identifier",
4082
+ "name": "ConversationDetail"
4083
+ }
4084
+ }
4085
+ }
4008
4086
  }
4009
4087
  ],
4010
4088
  "methods": [
@@ -4949,6 +5027,25 @@
4949
5027
  "computed": false
4950
5028
  }
4951
5029
  ]
5030
+ },
5031
+ {
5032
+ "type": "interface",
5033
+ "name": "ConversationDetail",
5034
+ "body": [
5035
+ {
5036
+ "type": "propertySignature",
5037
+ "key": {
5038
+ "type": "identifier",
5039
+ "name": "projectId"
5040
+ },
5041
+ "annotation": {
5042
+ "type": "keyword",
5043
+ "value": "string"
5044
+ },
5045
+ "optional": true,
5046
+ "computed": false
5047
+ }
5048
+ ]
4952
5049
  }
4953
5050
  ]
4954
5051
  },
@@ -5115,6 +5212,18 @@
5115
5212
  "value": "canvas"
5116
5213
  }
5117
5214
  }
5215
+ },
5216
+ {
5217
+ "name": "detail.change",
5218
+ "detail": {
5219
+ "annotation": {
5220
+ "type": "reference",
5221
+ "typeName": {
5222
+ "type": "identifier",
5223
+ "name": "ConversationDetail"
5224
+ }
5225
+ }
5226
+ }
5118
5227
  }
5119
5228
  ],
5120
5229
  "methods": [
@@ -5225,6 +5334,25 @@
5225
5334
  "computed": false
5226
5335
  }
5227
5336
  ]
5337
+ },
5338
+ {
5339
+ "type": "interface",
5340
+ "name": "ConversationDetail",
5341
+ "body": [
5342
+ {
5343
+ "type": "propertySignature",
5344
+ "key": {
5345
+ "type": "identifier",
5346
+ "name": "projectId"
5347
+ },
5348
+ "annotation": {
5349
+ "type": "keyword",
5350
+ "value": "string"
5351
+ },
5352
+ "optional": true,
5353
+ "computed": false
5354
+ }
5355
+ ]
5228
5356
  }
5229
5357
  ]
5230
5358
  }
@@ -7,8 +7,8 @@ export declare enum K {
7
7
  DELETED_THIS_GOAL = "DELETED_THIS_GOAL",
8
8
  DECOMPOSED_THIS_GOAL = "DECOMPOSED_THIS_GOAL",
9
9
  SET_OWNER = "SET_OWNER",
10
- REMOVED_GOAL_MEMBERS = "REMOVED_GOAL_MEMBERS",
11
- ADDED_GOAL_MEMBERS = "ADDED_GOAL_MEMBERS",
10
+ REMOVED_GOAL_PARTICIPANTS = "REMOVED_GOAL_PARTICIPANTS",
11
+ ADDED_GOAL_PARTICIPANTS = "ADDED_GOAL_PARTICIPANTS",
12
12
  COMMENTED = "COMMENTED",
13
13
  COMMA = "COMMA",
14
14
  SEMICOLON = "SEMICOLON"
@@ -6,6 +6,11 @@ export interface ChatBoxProps {
6
6
  disabled?: boolean;
7
7
  placeholder?: string;
8
8
  autoFocus?: boolean;
9
+ aiEmployees?: AIEmployee[];
10
+ }
11
+ export interface AIEmployee {
12
+ employeeId: string;
13
+ name: string;
9
14
  }
10
15
  export interface ChatBoxRef {
11
16
  setValue: (value: string) => void;
@@ -20,12 +25,14 @@ export declare class ChatBox extends ReactNextElement implements ChatBoxProps {
20
25
  accessor disabled: boolean | undefined;
21
26
  accessor placeholder: string | undefined;
22
27
  accessor autoFocus: boolean | undefined;
28
+ accessor aiEmployees: AIEmployee[] | undefined;
23
29
  setValue(value: string): void;
24
30
  getValue(): string | undefined;
25
31
  render(): React.JSX.Element;
26
32
  }
27
- export interface ChatBoxComponentProps extends ChatBoxProps {
33
+ interface ChatBoxComponentProps extends ChatBoxProps {
28
34
  onSubmit: (value: string) => void;
35
+ onEmployeeMention: (employee: AIEmployee | null) => void;
29
36
  ref?: React.Ref<ChatBoxRef>;
30
37
  }
31
- export declare function LegacyChatBoxComponent({ disabled, placeholder, autoFocus, onSubmit }: ChatBoxComponentProps, ref: React.Ref<ChatBoxRef>): React.JSX.Element;
38
+ export {};
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import type { FeedbackDetail } from "../cruise-canvas/interfaces.js";
3
- import type { ChatStreamProps, ChatStreamRef } from ".";
3
+ import type { ChatStreamProps, ChatStreamRef, ConversationDetail } from ".";
4
4
  interface ChatStreamComponentProps extends ChatStreamProps {
5
5
  conversationId: string;
6
6
  onShare: () => void;
@@ -8,6 +8,7 @@ interface ChatStreamComponentProps extends ChatStreamProps {
8
8
  onSubmitFeedback: (detail: FeedbackDetail) => void;
9
9
  onSwitchToCanvas: () => void;
10
10
  onFeedbackOnView: (viewId: string) => void;
11
+ onDetailChange: (detail: ConversationDetail) => void;
11
12
  }
12
- export declare function ChatStreamComponent({ conversationId, initialRequest, replay, replayDelay, supports, showFeedback: propShowFeedback, showFeedbackAfterFailed, showFeedbackOnView, showUiSwitch, previewUrlTemplate, onShare, onTerminate, onSubmitFeedback, onSwitchToCanvas, onFeedbackOnView, }: ChatStreamComponentProps, ref: React.Ref<ChatStreamRef>): React.JSX.Element;
13
+ export declare function ChatStreamComponent({ conversationId, initialRequest, replay, replayDelay, supports, showFeedback: propShowFeedback, showFeedbackAfterFailed, showFeedbackOnView, showUiSwitch, previewUrlTemplate, onShare, onTerminate, onSubmitFeedback, onSwitchToCanvas, onFeedbackOnView, onDetailChange, }: ChatStreamComponentProps, ref: React.Ref<ChatStreamRef>): React.JSX.Element;
13
14
  export {};
@@ -1,12 +1,13 @@
1
1
  import React from "react";
2
2
  import type { FeedbackDetail } from "../cruise-canvas/interfaces.js";
3
- import type { ChatStreamProps, ChatStreamRef } from ".";
3
+ import type { ChatStreamProps, ChatStreamRef, ConversationDetail } from ".";
4
4
  interface ChatStreamComponentProps extends ChatStreamProps {
5
5
  onShare: () => void;
6
6
  onTerminate: () => void;
7
7
  onSubmitFeedback: (detail: FeedbackDetail) => void;
8
8
  onSwitchToCanvas: () => void;
9
9
  onFeedbackOnView: (viewId: string) => void;
10
+ onDetailChange: (detail: ConversationDetail) => void;
10
11
  }
11
12
  export declare function LegacyChatStreamComponent({ taskId, replay, replayDelay, supports, showFeedback: propShowFeedback, showFeedbackAfterFailed, showFeedbackOnView, showUiSwitch, onShare, onTerminate, onSubmitFeedback, onSwitchToCanvas, onFeedbackOnView, }: ChatStreamComponentProps, ref: React.Ref<ChatStreamRef>): React.JSX.Element;
12
13
  export {};
@@ -15,6 +15,9 @@ export interface ChatStreamProps {
15
15
  showUiSwitch?: boolean;
16
16
  previewUrlTemplate?: string;
17
17
  }
18
+ export interface ConversationDetail {
19
+ projectId?: string;
20
+ }
18
21
  /**
19
22
  * 构件 `ai-portal.chat-stream`
20
23
  */
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import "@next-core/theme";
3
3
  import type { FeedbackDetail } from "./interfaces.js";
4
- import type { CruiseCanvasProps } from ".";
4
+ import type { ConversationDetail, CruiseCanvasProps } from ".";
5
5
  interface CruiseCanvasComponentProps extends CruiseCanvasProps {
6
6
  conversationId: string;
7
7
  onShare: () => void;
@@ -9,6 +9,7 @@ interface CruiseCanvasComponentProps extends CruiseCanvasProps {
9
9
  onSubmitFeedback: (detail: FeedbackDetail) => void;
10
10
  onSwitchToChat: () => void;
11
11
  onFeedbackOnView: (viewId: string) => void;
12
+ onDetailChange: (detail: ConversationDetail) => void;
12
13
  }
13
14
  export interface CruiseCanvasRef {
14
15
  resumed?: () => void;
@@ -16,5 +17,5 @@ export interface CruiseCanvasRef {
16
17
  feedbackSubmitFailed: () => void;
17
18
  feedbackOnViewDone: (viewId: string) => void;
18
19
  }
19
- export declare function CruiseCanvasComponent({ conversationId, initialRequest, replay, replayDelay, supports, showHiddenJobs, showFeedback: propShowFeedback, showFeedbackAfterFailed, showFeedbackOnView, showUiSwitch, showJsxEditor, previewUrlTemplate, onShare, onTerminate, onSubmitFeedback, onSwitchToChat, onFeedbackOnView, }: CruiseCanvasComponentProps, ref: React.Ref<CruiseCanvasRef>): React.JSX.Element;
20
+ export declare function CruiseCanvasComponent({ conversationId, initialRequest, replay, replayDelay, supports, showHiddenJobs, showFeedback: propShowFeedback, showFeedbackAfterFailed, showFeedbackOnView, showUiSwitch, showJsxEditor, previewUrlTemplate, onShare, onTerminate, onSubmitFeedback, onSwitchToChat, onFeedbackOnView, onDetailChange, }: CruiseCanvasComponentProps, ref: React.Ref<CruiseCanvasRef>): React.JSX.Element;
20
21
  export {};
@@ -1,13 +1,14 @@
1
1
  import React from "react";
2
2
  import "@next-core/theme";
3
3
  import type { FeedbackDetail } from "./interfaces.js";
4
- import type { CruiseCanvasProps } from ".";
4
+ import type { ConversationDetail, CruiseCanvasProps } from ".";
5
5
  interface CruiseCanvasComponentProps extends CruiseCanvasProps {
6
6
  onShare: () => void;
7
7
  onTerminate: () => void;
8
8
  onSubmitFeedback: (detail: FeedbackDetail) => void;
9
9
  onSwitchToChat: () => void;
10
10
  onFeedbackOnView: (viewId: string) => void;
11
+ onDetailChange: (detail: ConversationDetail) => void;
11
12
  }
12
13
  export interface CruiseCanvasRef {
13
14
  resumed?: () => void;
@@ -20,6 +20,9 @@ export interface CruiseCanvasProps {
20
20
  showJsxEditor?: boolean;
21
21
  previewUrlTemplate?: string;
22
22
  }
23
+ export interface ConversationDetail {
24
+ projectId?: string;
25
+ }
23
26
  /**
24
27
  * 构件 `ai-portal.cruise-canvas`
25
28
  */
@@ -2,6 +2,7 @@ import type { ParseResult } from "@next-shared/tsx-parser";
2
2
  export interface Conversation {
3
3
  id: string;
4
4
  title: string;
5
+ projectId?: string;
5
6
  state: ConversationState;
6
7
  tasks: Task[];
7
8
  startTime: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.41.2",
3
+ "version": "0.42.0",
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": "0d4469755851a856527fd70e438df5dba0b107bd"
51
+ "gitHead": "8697d099f9084bc1494cf85b3589094e53bcf5eb"
52
52
  }