@next-bricks/ai-portal 0.65.5 → 0.65.6
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/bricks.json +7 -7
- package/dist/chunks/4864.a91fc4db.js +2 -0
- package/dist/chunks/4864.a91fc4db.js.map +1 -0
- package/dist/chunks/{main.77fb9cf6.js → main.ceaa385b.js} +2 -2
- package/dist/chunks/{main.77fb9cf6.js.map → main.ceaa385b.js.map} +1 -1
- package/dist/examples.json +6 -6
- package/dist/{index.2865b625.js → index.a736ada1.js} +2 -2
- package/dist/{index.2865b625.js.map → index.a736ada1.js.map} +1 -1
- package/dist/manifest.json +70 -70
- package/dist/types.json +251 -251
- package/package.json +2 -2
- package/dist/chunks/4864.1a321da4.js +0 -2
- package/dist/chunks/4864.1a321da4.js.map +0 -1
package/dist/types.json
CHANGED
|
@@ -118,105 +118,14 @@
|
|
|
118
118
|
}
|
|
119
119
|
]
|
|
120
120
|
},
|
|
121
|
-
"ai-portal.
|
|
121
|
+
"ai-portal.home-container": {
|
|
122
122
|
"properties": [
|
|
123
123
|
{
|
|
124
|
-
"name": "
|
|
125
|
-
"annotation": {
|
|
126
|
-
"type": "keyword",
|
|
127
|
-
"value": "string"
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"name": "value",
|
|
132
|
-
"annotation": {
|
|
133
|
-
"type": "keyword",
|
|
134
|
-
"value": "string"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"name": "size",
|
|
139
|
-
"annotation": {
|
|
140
|
-
"type": "union",
|
|
141
|
-
"types": [
|
|
142
|
-
{
|
|
143
|
-
"type": "jsLiteral",
|
|
144
|
-
"value": "medium"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"type": "jsLiteral",
|
|
148
|
-
"value": "small"
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"name": "lineColor",
|
|
155
|
-
"annotation": {
|
|
156
|
-
"type": "keyword",
|
|
157
|
-
"value": "string"
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"name": "showArea",
|
|
124
|
+
"name": "sticky",
|
|
162
125
|
"annotation": {
|
|
163
126
|
"type": "keyword",
|
|
164
127
|
"value": "boolean"
|
|
165
128
|
}
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"name": "min",
|
|
169
|
-
"annotation": {
|
|
170
|
-
"type": "keyword",
|
|
171
|
-
"value": "number"
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"name": "max",
|
|
176
|
-
"annotation": {
|
|
177
|
-
"type": "keyword",
|
|
178
|
-
"value": "number"
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"name": "xField",
|
|
183
|
-
"annotation": {
|
|
184
|
-
"type": "keyword",
|
|
185
|
-
"value": "string"
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"name": "yField",
|
|
190
|
-
"annotation": {
|
|
191
|
-
"type": "keyword",
|
|
192
|
-
"value": "string"
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"name": "data",
|
|
197
|
-
"annotation": {
|
|
198
|
-
"type": "array",
|
|
199
|
-
"elementType": {
|
|
200
|
-
"type": "reference",
|
|
201
|
-
"typeName": {
|
|
202
|
-
"type": "identifier",
|
|
203
|
-
"name": "Record"
|
|
204
|
-
},
|
|
205
|
-
"typeParameters": {
|
|
206
|
-
"type": "typeParameterInstantiation",
|
|
207
|
-
"params": [
|
|
208
|
-
{
|
|
209
|
-
"type": "keyword",
|
|
210
|
-
"value": "string"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"type": "keyword",
|
|
214
|
-
"value": "number"
|
|
215
|
-
}
|
|
216
|
-
]
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
129
|
}
|
|
221
130
|
],
|
|
222
131
|
"events": [],
|
|
@@ -1899,6 +1808,71 @@
|
|
|
1899
1808
|
}
|
|
1900
1809
|
}
|
|
1901
1810
|
},
|
|
1811
|
+
"ai-portal.set-chat-command": {
|
|
1812
|
+
"type": "provider",
|
|
1813
|
+
"params": [
|
|
1814
|
+
{
|
|
1815
|
+
"name": "command",
|
|
1816
|
+
"annotation": {
|
|
1817
|
+
"type": "union",
|
|
1818
|
+
"types": [
|
|
1819
|
+
{
|
|
1820
|
+
"type": "reference",
|
|
1821
|
+
"typeName": {
|
|
1822
|
+
"type": "identifier",
|
|
1823
|
+
"name": "ChatCommand"
|
|
1824
|
+
}
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"type": "keyword",
|
|
1828
|
+
"value": "null"
|
|
1829
|
+
}
|
|
1830
|
+
]
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
],
|
|
1834
|
+
"returns": {
|
|
1835
|
+
"annotation": {
|
|
1836
|
+
"type": "keyword",
|
|
1837
|
+
"value": "void"
|
|
1838
|
+
}
|
|
1839
|
+
},
|
|
1840
|
+
"types": [
|
|
1841
|
+
{
|
|
1842
|
+
"type": "interface",
|
|
1843
|
+
"name": "ChatCommand",
|
|
1844
|
+
"body": [
|
|
1845
|
+
{
|
|
1846
|
+
"type": "propertySignature",
|
|
1847
|
+
"key": {
|
|
1848
|
+
"type": "identifier",
|
|
1849
|
+
"name": "command"
|
|
1850
|
+
},
|
|
1851
|
+
"annotation": {
|
|
1852
|
+
"type": "keyword",
|
|
1853
|
+
"value": "string"
|
|
1854
|
+
},
|
|
1855
|
+
"computed": false
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"type": "propertySignature",
|
|
1859
|
+
"key": {
|
|
1860
|
+
"type": "identifier",
|
|
1861
|
+
"name": "payload"
|
|
1862
|
+
},
|
|
1863
|
+
"annotation": {
|
|
1864
|
+
"type": "reference",
|
|
1865
|
+
"typeName": {
|
|
1866
|
+
"type": "identifier",
|
|
1867
|
+
"name": "CommandPayload"
|
|
1868
|
+
}
|
|
1869
|
+
},
|
|
1870
|
+
"computed": false
|
|
1871
|
+
}
|
|
1872
|
+
]
|
|
1873
|
+
}
|
|
1874
|
+
]
|
|
1875
|
+
},
|
|
1902
1876
|
"ai-portal.page-container": {
|
|
1903
1877
|
"properties": [
|
|
1904
1878
|
{
|
|
@@ -2007,71 +1981,6 @@
|
|
|
2007
1981
|
}
|
|
2008
1982
|
]
|
|
2009
1983
|
},
|
|
2010
|
-
"ai-portal.set-chat-command": {
|
|
2011
|
-
"type": "provider",
|
|
2012
|
-
"params": [
|
|
2013
|
-
{
|
|
2014
|
-
"name": "command",
|
|
2015
|
-
"annotation": {
|
|
2016
|
-
"type": "union",
|
|
2017
|
-
"types": [
|
|
2018
|
-
{
|
|
2019
|
-
"type": "reference",
|
|
2020
|
-
"typeName": {
|
|
2021
|
-
"type": "identifier",
|
|
2022
|
-
"name": "ChatCommand"
|
|
2023
|
-
}
|
|
2024
|
-
},
|
|
2025
|
-
{
|
|
2026
|
-
"type": "keyword",
|
|
2027
|
-
"value": "null"
|
|
2028
|
-
}
|
|
2029
|
-
]
|
|
2030
|
-
}
|
|
2031
|
-
}
|
|
2032
|
-
],
|
|
2033
|
-
"returns": {
|
|
2034
|
-
"annotation": {
|
|
2035
|
-
"type": "keyword",
|
|
2036
|
-
"value": "void"
|
|
2037
|
-
}
|
|
2038
|
-
},
|
|
2039
|
-
"types": [
|
|
2040
|
-
{
|
|
2041
|
-
"type": "interface",
|
|
2042
|
-
"name": "ChatCommand",
|
|
2043
|
-
"body": [
|
|
2044
|
-
{
|
|
2045
|
-
"type": "propertySignature",
|
|
2046
|
-
"key": {
|
|
2047
|
-
"type": "identifier",
|
|
2048
|
-
"name": "command"
|
|
2049
|
-
},
|
|
2050
|
-
"annotation": {
|
|
2051
|
-
"type": "keyword",
|
|
2052
|
-
"value": "string"
|
|
2053
|
-
},
|
|
2054
|
-
"computed": false
|
|
2055
|
-
},
|
|
2056
|
-
{
|
|
2057
|
-
"type": "propertySignature",
|
|
2058
|
-
"key": {
|
|
2059
|
-
"type": "identifier",
|
|
2060
|
-
"name": "payload"
|
|
2061
|
-
},
|
|
2062
|
-
"annotation": {
|
|
2063
|
-
"type": "reference",
|
|
2064
|
-
"typeName": {
|
|
2065
|
-
"type": "identifier",
|
|
2066
|
-
"name": "CommandPayload"
|
|
2067
|
-
}
|
|
2068
|
-
},
|
|
2069
|
-
"computed": false
|
|
2070
|
-
}
|
|
2071
|
-
]
|
|
2072
|
-
}
|
|
2073
|
-
]
|
|
2074
|
-
},
|
|
2075
1984
|
"ai-portal.tab-list": {
|
|
2076
1985
|
"properties": [
|
|
2077
1986
|
{
|
|
@@ -2143,14 +2052,105 @@
|
|
|
2143
2052
|
}
|
|
2144
2053
|
]
|
|
2145
2054
|
},
|
|
2146
|
-
"ai-portal.
|
|
2055
|
+
"ai-portal.stat-with-mini-chart": {
|
|
2147
2056
|
"properties": [
|
|
2148
2057
|
{
|
|
2149
|
-
"name": "
|
|
2058
|
+
"name": "label",
|
|
2059
|
+
"annotation": {
|
|
2060
|
+
"type": "keyword",
|
|
2061
|
+
"value": "string"
|
|
2062
|
+
}
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
"name": "value",
|
|
2066
|
+
"annotation": {
|
|
2067
|
+
"type": "keyword",
|
|
2068
|
+
"value": "string"
|
|
2069
|
+
}
|
|
2070
|
+
},
|
|
2071
|
+
{
|
|
2072
|
+
"name": "size",
|
|
2073
|
+
"annotation": {
|
|
2074
|
+
"type": "union",
|
|
2075
|
+
"types": [
|
|
2076
|
+
{
|
|
2077
|
+
"type": "jsLiteral",
|
|
2078
|
+
"value": "medium"
|
|
2079
|
+
},
|
|
2080
|
+
{
|
|
2081
|
+
"type": "jsLiteral",
|
|
2082
|
+
"value": "small"
|
|
2083
|
+
}
|
|
2084
|
+
]
|
|
2085
|
+
}
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
"name": "lineColor",
|
|
2089
|
+
"annotation": {
|
|
2090
|
+
"type": "keyword",
|
|
2091
|
+
"value": "string"
|
|
2092
|
+
}
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
"name": "showArea",
|
|
2150
2096
|
"annotation": {
|
|
2151
2097
|
"type": "keyword",
|
|
2152
2098
|
"value": "boolean"
|
|
2153
2099
|
}
|
|
2100
|
+
},
|
|
2101
|
+
{
|
|
2102
|
+
"name": "min",
|
|
2103
|
+
"annotation": {
|
|
2104
|
+
"type": "keyword",
|
|
2105
|
+
"value": "number"
|
|
2106
|
+
}
|
|
2107
|
+
},
|
|
2108
|
+
{
|
|
2109
|
+
"name": "max",
|
|
2110
|
+
"annotation": {
|
|
2111
|
+
"type": "keyword",
|
|
2112
|
+
"value": "number"
|
|
2113
|
+
}
|
|
2114
|
+
},
|
|
2115
|
+
{
|
|
2116
|
+
"name": "xField",
|
|
2117
|
+
"annotation": {
|
|
2118
|
+
"type": "keyword",
|
|
2119
|
+
"value": "string"
|
|
2120
|
+
}
|
|
2121
|
+
},
|
|
2122
|
+
{
|
|
2123
|
+
"name": "yField",
|
|
2124
|
+
"annotation": {
|
|
2125
|
+
"type": "keyword",
|
|
2126
|
+
"value": "string"
|
|
2127
|
+
}
|
|
2128
|
+
},
|
|
2129
|
+
{
|
|
2130
|
+
"name": "data",
|
|
2131
|
+
"annotation": {
|
|
2132
|
+
"type": "array",
|
|
2133
|
+
"elementType": {
|
|
2134
|
+
"type": "reference",
|
|
2135
|
+
"typeName": {
|
|
2136
|
+
"type": "identifier",
|
|
2137
|
+
"name": "Record"
|
|
2138
|
+
},
|
|
2139
|
+
"typeParameters": {
|
|
2140
|
+
"type": "typeParameterInstantiation",
|
|
2141
|
+
"params": [
|
|
2142
|
+
{
|
|
2143
|
+
"type": "keyword",
|
|
2144
|
+
"value": "string"
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
"type": "keyword",
|
|
2148
|
+
"value": "number"
|
|
2149
|
+
}
|
|
2150
|
+
]
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
2154
|
}
|
|
2155
2155
|
],
|
|
2156
2156
|
"events": [],
|
|
@@ -3089,6 +3089,26 @@
|
|
|
3089
3089
|
}
|
|
3090
3090
|
]
|
|
3091
3091
|
},
|
|
3092
|
+
"ai-portal.preview-container": {
|
|
3093
|
+
"properties": [
|
|
3094
|
+
{
|
|
3095
|
+
"name": "source",
|
|
3096
|
+
"annotation": {
|
|
3097
|
+
"type": "keyword",
|
|
3098
|
+
"value": "string"
|
|
3099
|
+
}
|
|
3100
|
+
},
|
|
3101
|
+
{
|
|
3102
|
+
"name": "url",
|
|
3103
|
+
"annotation": {
|
|
3104
|
+
"type": "keyword",
|
|
3105
|
+
"value": "string"
|
|
3106
|
+
}
|
|
3107
|
+
}
|
|
3108
|
+
],
|
|
3109
|
+
"events": [],
|
|
3110
|
+
"methods": []
|
|
3111
|
+
},
|
|
3092
3112
|
"ai-portal.action-buttons": {
|
|
3093
3113
|
"properties": [
|
|
3094
3114
|
{
|
|
@@ -3207,26 +3227,6 @@
|
|
|
3207
3227
|
}
|
|
3208
3228
|
]
|
|
3209
3229
|
},
|
|
3210
|
-
"ai-portal.preview-container": {
|
|
3211
|
-
"properties": [
|
|
3212
|
-
{
|
|
3213
|
-
"name": "source",
|
|
3214
|
-
"annotation": {
|
|
3215
|
-
"type": "keyword",
|
|
3216
|
-
"value": "string"
|
|
3217
|
-
}
|
|
3218
|
-
},
|
|
3219
|
-
{
|
|
3220
|
-
"name": "url",
|
|
3221
|
-
"annotation": {
|
|
3222
|
-
"type": "keyword",
|
|
3223
|
-
"value": "string"
|
|
3224
|
-
}
|
|
3225
|
-
}
|
|
3226
|
-
],
|
|
3227
|
-
"events": [],
|
|
3228
|
-
"methods": []
|
|
3229
|
-
},
|
|
3230
3230
|
"ai-portal.project-conversations": {
|
|
3231
3231
|
"properties": [
|
|
3232
3232
|
{
|
|
@@ -4950,6 +4950,77 @@
|
|
|
4950
4950
|
"events": [],
|
|
4951
4951
|
"methods": []
|
|
4952
4952
|
},
|
|
4953
|
+
"ai-portal.flow-tabs": {
|
|
4954
|
+
"properties": [
|
|
4955
|
+
{
|
|
4956
|
+
"name": "tabs",
|
|
4957
|
+
"annotation": {
|
|
4958
|
+
"type": "array",
|
|
4959
|
+
"elementType": {
|
|
4960
|
+
"type": "reference",
|
|
4961
|
+
"typeName": {
|
|
4962
|
+
"type": "identifier",
|
|
4963
|
+
"name": "Tab"
|
|
4964
|
+
}
|
|
4965
|
+
}
|
|
4966
|
+
}
|
|
4967
|
+
},
|
|
4968
|
+
{
|
|
4969
|
+
"name": "activeTab",
|
|
4970
|
+
"annotation": {
|
|
4971
|
+
"type": "keyword",
|
|
4972
|
+
"value": "string"
|
|
4973
|
+
}
|
|
4974
|
+
}
|
|
4975
|
+
],
|
|
4976
|
+
"events": [
|
|
4977
|
+
{
|
|
4978
|
+
"name": "tab.click",
|
|
4979
|
+
"detail": {
|
|
4980
|
+
"annotation": {
|
|
4981
|
+
"type": "reference",
|
|
4982
|
+
"typeName": {
|
|
4983
|
+
"type": "identifier",
|
|
4984
|
+
"name": "Tab"
|
|
4985
|
+
}
|
|
4986
|
+
}
|
|
4987
|
+
}
|
|
4988
|
+
}
|
|
4989
|
+
],
|
|
4990
|
+
"methods": [],
|
|
4991
|
+
"types": [
|
|
4992
|
+
{
|
|
4993
|
+
"type": "interface",
|
|
4994
|
+
"name": "Tab",
|
|
4995
|
+
"body": [
|
|
4996
|
+
{
|
|
4997
|
+
"type": "propertySignature",
|
|
4998
|
+
"key": {
|
|
4999
|
+
"type": "identifier",
|
|
5000
|
+
"name": "id"
|
|
5001
|
+
},
|
|
5002
|
+
"annotation": {
|
|
5003
|
+
"type": "keyword",
|
|
5004
|
+
"value": "string"
|
|
5005
|
+
},
|
|
5006
|
+
"computed": false
|
|
5007
|
+
},
|
|
5008
|
+
{
|
|
5009
|
+
"type": "propertySignature",
|
|
5010
|
+
"key": {
|
|
5011
|
+
"type": "identifier",
|
|
5012
|
+
"name": "label"
|
|
5013
|
+
},
|
|
5014
|
+
"annotation": {
|
|
5015
|
+
"type": "keyword",
|
|
5016
|
+
"value": "string"
|
|
5017
|
+
},
|
|
5018
|
+
"computed": false
|
|
5019
|
+
}
|
|
5020
|
+
]
|
|
5021
|
+
}
|
|
5022
|
+
]
|
|
5023
|
+
},
|
|
4953
5024
|
"ai-portal.stage-flow": {
|
|
4954
5025
|
"properties": [
|
|
4955
5026
|
{
|
|
@@ -5312,77 +5383,6 @@
|
|
|
5312
5383
|
}
|
|
5313
5384
|
]
|
|
5314
5385
|
},
|
|
5315
|
-
"ai-portal.flow-tabs": {
|
|
5316
|
-
"properties": [
|
|
5317
|
-
{
|
|
5318
|
-
"name": "tabs",
|
|
5319
|
-
"annotation": {
|
|
5320
|
-
"type": "array",
|
|
5321
|
-
"elementType": {
|
|
5322
|
-
"type": "reference",
|
|
5323
|
-
"typeName": {
|
|
5324
|
-
"type": "identifier",
|
|
5325
|
-
"name": "Tab"
|
|
5326
|
-
}
|
|
5327
|
-
}
|
|
5328
|
-
}
|
|
5329
|
-
},
|
|
5330
|
-
{
|
|
5331
|
-
"name": "activeTab",
|
|
5332
|
-
"annotation": {
|
|
5333
|
-
"type": "keyword",
|
|
5334
|
-
"value": "string"
|
|
5335
|
-
}
|
|
5336
|
-
}
|
|
5337
|
-
],
|
|
5338
|
-
"events": [
|
|
5339
|
-
{
|
|
5340
|
-
"name": "tab.click",
|
|
5341
|
-
"detail": {
|
|
5342
|
-
"annotation": {
|
|
5343
|
-
"type": "reference",
|
|
5344
|
-
"typeName": {
|
|
5345
|
-
"type": "identifier",
|
|
5346
|
-
"name": "Tab"
|
|
5347
|
-
}
|
|
5348
|
-
}
|
|
5349
|
-
}
|
|
5350
|
-
}
|
|
5351
|
-
],
|
|
5352
|
-
"methods": [],
|
|
5353
|
-
"types": [
|
|
5354
|
-
{
|
|
5355
|
-
"type": "interface",
|
|
5356
|
-
"name": "Tab",
|
|
5357
|
-
"body": [
|
|
5358
|
-
{
|
|
5359
|
-
"type": "propertySignature",
|
|
5360
|
-
"key": {
|
|
5361
|
-
"type": "identifier",
|
|
5362
|
-
"name": "id"
|
|
5363
|
-
},
|
|
5364
|
-
"annotation": {
|
|
5365
|
-
"type": "keyword",
|
|
5366
|
-
"value": "string"
|
|
5367
|
-
},
|
|
5368
|
-
"computed": false
|
|
5369
|
-
},
|
|
5370
|
-
{
|
|
5371
|
-
"type": "propertySignature",
|
|
5372
|
-
"key": {
|
|
5373
|
-
"type": "identifier",
|
|
5374
|
-
"name": "label"
|
|
5375
|
-
},
|
|
5376
|
-
"annotation": {
|
|
5377
|
-
"type": "keyword",
|
|
5378
|
-
"value": "string"
|
|
5379
|
-
},
|
|
5380
|
-
"computed": false
|
|
5381
|
-
}
|
|
5382
|
-
]
|
|
5383
|
-
}
|
|
5384
|
-
]
|
|
5385
|
-
},
|
|
5386
5386
|
"ai-portal.running-flow": {
|
|
5387
5387
|
"properties": [
|
|
5388
5388
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/ai-portal",
|
|
3
|
-
"version": "0.65.
|
|
3
|
+
"version": "0.65.6",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"@next-bricks/presentational": "*",
|
|
50
50
|
"@next-bricks/vs": "*"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "c0b0701fa10a94c665f93c6d9a30c9277d553409"
|
|
53
53
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[4864],{9442:(e,t,a)=>{a.d(t,{A:()=>h});var n=a(72591),l=a.n(n),o=a(1740),r=a.n(o),i=a(88128),s=a.n(i),c=a(30855),d=a.n(c),p=a(93051),m=a.n(p),u=a(73656),g=a.n(u),b=a(86e3),f={};f.styleTagTransform=g(),f.setAttributes=d(),f.insert=s().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=m(),l()(b.A,f);const h=b.A&&b.A.locals?b.A.locals:void 0},13330:(e,t,a)=>{a.d(t,{p:()=>r});var n=a(18769),l=a(50045),o=a(40177);function r(e,t,a,r,i){const{showHumanActions:s,skipActivitySubTasks:c,rootTaskId:d,flowMap:p,activityMap:m,expandAskUser:u}=i||{};return(0,n.useMemo)((()=>{if(!e)return{messages:[],lastDetail:null,planMap:null,activeAskUser:null};const{chunks:n,jobMap:i,planMap:g,activeAskUser:b}=(0,l.a)(a,r,{flowMap:p,activityMap:m,skipActivitySubTasks:c,enablePlan:!0,rootTaskId:d,expandAskUser:u}),f=[];let h={role:"assistant",chunks:[]},v=null;for(const e of n)if("job"===e.type){var k;const t=e.job;var x;t.toolCall&&!t.ignoreDetails&&(v={type:"job",id:t.id}),"completed"===t.state&&null!==(k=t.messages)&&void 0!==k&&k.length&&t.messages.every((e=>"user"===e.role))?(h.chunks.length>0&&f.push(h),f.push({role:"user",content:t.messages.flatMap((e=>e.parts.map((e=>"text"===e.type?e.text:"")))).join(""),cmd:t.cmd,mentionedAiEmployeeId:t.mentionedAiEmployeeId,fromSkippedSubTask:e.fromSkippedSubTask,files:null===(x=t.messages)||void 0===x?void 0:x.filter((e=>"user"===e.role)).flatMap((e=>e.parts)).filter((e=>"file"===e.type)).map((e=>e.file))}),h={role:"assistant",chunks:[]}):h.chunks.push(e),t.humanAction&&(h.chunks.length>0&&f.push(h),s&&f.push({role:"user",content:t.humanAction}),h={role:"assistant",chunks:[]})}else h.chunks.push(e),"error"!==e.type&&"plan"!==e.type&&"askUser"!==e.type&&(v={type:e.type,id:e.task.id});let E=f.length>0&&!o.QB.includes(t);if(E&&"assistant"===h.role&&0===h.chunks.length){const e=f[f.length-1];"user"===e.role&&e.fromSkippedSubTask&&(E=!1)}return(h.chunks.length>0||E)&&f.push(h),{messages:f,jobMap:i,planMap:g,lastDetail:v,activeAskUser:b}}),[e,t,a,p,m,r,s,c,d,u])}},17994:(e,t,a)=>{a.d(t,{A:()=>i});var n=a(36758),l=a.n(n),o=a(40935),r=a.n(o)()(l());r.push([e.id,".hil--e3zZFYQc{background:rgba(255,255,255,0.5);border-radius:8px;border:1px solid #ffffff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:13px 16px;margin-top:12px}.content--tmVj790o,\n.actions--wbNFKF3J{display:flex;align-items:center}.content--tmVj790o{gap:10px;flex-wrap:wrap}.actions--wbNFKF3J{justify-content:flex-end;margin-top:-3px}",""]),r.locals={hil:"hil--e3zZFYQc",content:"content--tmVj790o",actions:"actions--wbNFKF3J"};const i=r},26598:(e,t,a)=>{a.d(t,{A:()=>i});var n=a(36758),l=a.n(n),o=a(40935),r=a.n(o)()(l());r.push([e.id,".user--HjXM9OHW{background:rgba(255,255,255,0.6);border-radius:24px;padding:8px 16px;width:-moz-fit-content;width:fit-content;max-width:500px;margin-left:auto;overflow-wrap:break-word;white-space:pre-wrap;font-size:16px;line-height:26px}",""]),r.locals={user:"user--HjXM9OHW"};const i=r},27116:(e,t,a)=>{a.d(t,{A:()=>i});var n=a(36758),l=a.n(n),o=a(40935),r=a.n(o)()(l());r.push([e.id,".tag--DYMWTxcu{display:flex;gap:10px;align-items:center;padding:0 12px;height:26px;width:-moz-fit-content;width:fit-content;background:rgba(0,0,0,0.04);border:1px solid rgba(0,0,0,0.1);border-radius:13px;color:rgba(0,0,0,0.65);cursor:pointer}.tag--DYMWTxcu:hover{background:rgba(0,0,0,0.06)}",""]),r.locals={tag:"tag--DYMWTxcu"};const i=r},30621:(e,t,a)=>{a.d(t,{R:()=>A});var n=a(18769),l=a.n(n),o=a(72591),r=a.n(o),i=a(1740),s=a.n(i),c=a(88128),d=a.n(c),p=a(30855),m=a.n(p),u=a(93051),g=a.n(u),b=a(73656),f=a.n(b),h=a(26598),v={};v.styleTagTransform=f(),v.setAttributes=m(),v.insert=d().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=g(),r()(h.A,v);const k=h.A&&h.A.locals?h.A.locals:void 0;var x=a(77388),E=a(47760);function A(e){let{content:t,cmd:a,mentionedAiEmployeeId:n,files:o}=e;return l().createElement(l().Fragment,null,l().createElement("div",{className:k.user},(a||n)&&l().createElement(x._,{cmd:a,mentionedAiEmployeeId:n}),t),null!=o&&o.length?l().createElement(E.$,{files:o,ui:"chat"}):null)}},30925:(e,t,a)=>{a.d(t,{G:()=>xe});var n=a(18769),l=a.n(n),o=a(72591),r=a.n(o),i=a(1740),s=a.n(i),c=a(88128),d=a.n(c),p=a(30855),m=a.n(p),u=a(93051),g=a.n(u),b=a(73656),f=a.n(b),h=a(35754),v={};v.styleTagTransform=f(),v.setAttributes=m(),v.insert=d().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=g(),r()(h.A,v);const k=h.A&&h.A.locals?h.A.locals:void 0;var x=a(40177),E=a(30672),A=a(35430),y=a(89575),I=a(53373),N=a.n(I),w=a(41030),T=a(50094),S={};S.styleTagTransform=f(),S.setAttributes=m(),S.insert=d().bind(null,"head"),S.domAPI=s(),S.insertStyleElement=g(),r()(T.A,S);const _=T.A&&T.A.locals?T.A.locals:void 0;var j=a(36903),C=a(29386),W=a(42854),V=a(86976),z=a(65438),H={};H.styleTagTransform=f(),H.setAttributes=m(),H.insert=d().bind(null,"head"),H.domAPI=s(),H.insertStyleElement=g(),r()(z.A,H);const L=z.A&&z.A.locals?z.A.locals:void 0;function F(e){let{job:t}=e;const[a,o]=(0,n.useState)("medium"),r=(0,n.useCallback)((e=>{o(e)}),[]);return l().createElement("div",{className:N()(L.view,{[L.large]:"large"===a})},l().createElement(V.y,{job:t,onSizeChange:r}))}var R=a(76720),q=a(51069);function M(e,t){switch(e){case"completed":return{className:_.completed,icon:{lib:"antd",theme:"filled",icon:"check-circle"}};case"submitted":case"working":return"terminated"===t?{icon:{lib:"fa",prefix:"far",icon:"circle-stop"}}:{className:_.working,icon:{lib:"antd",theme:"outlined",icon:"loading-3-quarters",spinning:!0}};case"input-required":return{className:_["input-required"],icon:{lib:"fa",prefix:"far",icon:"circle-user"}};case"failed":return{className:_.failed,icon:{lib:"fa",prefix:"fas",icon:"xmark"}};case"canceled":case"terminated":return{className:_.canceled,icon:{lib:"fa",prefix:"far",icon:"circle-stop"}};case"skipped":return{icon:{lib:"fa",prefix:"fas",icon:"ban"}};default:return{icon:{lib:"fa",prefix:"far",icon:"clock"}}}}var O=a(47760);function G(e){var t,a;let{job:o,isSubTask:r}=e;const i=o.toolCall,s=(null==i||null===(t=i.annotations)||void 0===t?void 0:t.title)||(null==i?void 0:i.name),c=null==i?void 0:i.name,d=!!i,{conversationState:p,setActiveDetail:m,setSubActiveDetail:u}=(0,n.useContext)(R.j),{lastDetail:g,setUserClosedAside:b}=(0,n.useContext)(q.W),{className:f,icon:h}=(0,n.useMemo)((()=>M(o.state,p)),[o.state,p]),[v,k,A]=(0,n.useMemo)((()=>{var e;const t=[],a=[],n=[];let l="llm_answer"===c;return null===(e=o.messages)||void 0===e||e.forEach((e=>{if("tool"===e.role)for(const i of e.parts){var o;if("data"===i.type)switch(null===(o=i.data)||void 0===o?void 0:o.type){case"markdown":t.push(i.data.content);break;case"cmdb_instance_detail":var r;a.push(i.data),l||(l=Object.keys("object"===(null===(r=i.data)||void 0===r||null===(r=r.outputSchema)||void 0===r?void 0:r.type)?i.data.outputSchema.properties:i.data.detail).length>6)}else"file"===i.type&&n.push(i.file)}})),[t.join(""),a,n]}),[o.messages,c]),[I,T]=(0,n.useState)(!1),S=d||!!o.instruction;return l().createElement("div",{className:N()({[_.collapsed]:I})},S&&l().createElement("div",{className:N()(_.heading,f),onClick:()=>T((e=>!e))},l().createElement("div",{className:_.icon},l().createElement(E.Bj,h)),l().createElement("div",{className:_.title},o.instruction||s),l().createElement(E.Bj,(0,y.A)({className:_.caret},x.ae))),l().createElement("div",{className:_.body},d&&l().createElement("div",{className:_.tool,onClick:()=>{const e={type:"job",id:o.id};(r?u:m)((t=>(0,w.isEqual)(t,e)?t:e)),(0,w.isEqual)(e,g)&&b(!1)}},l().createElement(E.Bj,{lib:"lucide",icon:"square-chevron-right"}),s),l().createElement("div",{className:_.main},null===(a=o.messages)||void 0===a?void 0:a.map(((e,t)=>{var a;return"tool"===e.role?null:l().createElement("div",{key:t,className:N()(_.message,j.A.markdown)},null===(a=e.parts)||void 0===a?void 0:a.map(((e,t)=>l().createElement(l().Fragment,{key:t},"text"===e.type&&l().createElement(C.w,{className:N()(_["message-part"],j.A["markdown-wrapper"]),content:e.text})))))}))),l().createElement("div",{className:_.content},v&&l().createElement("div",{className:N()(_.markdown,j.A.markdown)},l().createElement(C.w,{className:j.A["markdown-wrapper"],content:v})),k.map(((e,t)=>l().createElement("div",{key:t,className:_.box},l().createElement(W.H,e)))),o.generatedView?l().createElement(F,{job:o}):null,A.length>0&&l().createElement(O.$,{files:A}))))}var K=a(48952);const P=a.p+"images/d5f57ce1.png";function Y(e){let{job:t}=e;const a=(0,n.useMemo)((()=>{var e;return null===(e=t.messages)||void 0===e?void 0:e.filter((e=>"assistant"===e.role))}),[t.messages]),o=!(null!=a&&a.length),[r,i]=(0,n.useState)(!0);return o?l().createElement("div",{className:_.thinking},l().createElement("img",{src:P,width:16,height:16}),l().createElement("span",{className:j.A["shine-text"]},(0,K.t)(K.K.THINKING))):l().createElement("div",{className:N()(_.reasoning,{[_.collapsed]:r})},l().createElement("div",{className:_["reasoning-label"],onClick:()=>i((e=>!e))},l().createElement("span",{className:N()({[j.A["shine-text"]]:!x.Z5.includes(t.state)})},(0,K.t)(K.K.SHOW_THINKING)),l().createElement(E.Bj,(0,y.A)({className:_.chevron},x.ae))),l().createElement("div",{className:_["reasoning-content"]},null==a?void 0:a.map(((e,t)=>{var a;return l().createElement("div",{key:t,className:N()(_.message,j.A.markdown)},null===(a=e.parts)||void 0===a?void 0:a.map(((e,t)=>l().createElement(l().Fragment,{key:t},"text"===e.type&&l().createElement(C.w,{className:N()(_["message-part"],j.A["markdown-wrapper"]),content:e.text})))))}))))}var J=a(67177),B=a(79948),D={};D.styleTagTransform=f(),D.setAttributes=m(),D.insert=d().bind(null,"head"),D.domAPI=s(),D.insertStyleElement=g(),r()(B.A,D);const U=B.A&&B.A.locals?B.A.locals:void 0;let X=function(e){return e.ACTIVITY_PLAN="ACTIVITY_PLAN",e.SHOW_PROCESS="SHOW_PROCESS",e.STARTING_SERVICE_FLOW="STARTING_SERVICE_FLOW",e}({});const Q="bricks/ai-portal/ActivityPlan",Z={en:{[X.ACTIVITY_PLAN]:"Activity plan",[X.SHOW_PROCESS]:"Show process",[X.STARTING_SERVICE_FLOW]:"Starting serviceflow: {{ name }}"},zh:{[X.ACTIVITY_PLAN]:"活动计划",[X.SHOW_PROCESS]:"显示过程",[X.STARTING_SERVICE_FLOW]:"发起业务流:{{ name }}"}},$=J.i18n.getFixedT(null,Q);var ee=a(13330),te=a(27116),ae={};ae.styleTagTransform=f(),ae.setAttributes=m(),ae.insert=d().bind(null,"head"),ae.domAPI=s(),ae.insertStyleElement=g(),r()(te.A,ae);const ne=te.A&&te.A.locals?te.A.locals:void 0;function le(e){let{job:t,task:a}=e;const{setActiveDetail:o}=(0,n.useContext)(R.j);return x.QB.includes(null==a?void 0:a.state)?l().createElement("div",{className:ne.tag,onClick:()=>{if(a){const e={type:"task",id:a.id};o((t=>(0,w.isEqual)(t,e)?t:e))}}},l().createElement(E.Bj,{lib:"antd",icon:"check-circle"}),t.summary):null}function oe(e){let{state:t,filled:a}=e;switch(t){case"input-required":return l().createElement(E.Bj,{lib:"antd",theme:a?"filled":"outlined",icon:"exclamation-circle",className:N()(U.icon,U.paused)});case"completed":return a?l().createElement("span",{className:N()(U.icon,U.stacked,U.completed,{[U.filled]:a})},l().createElement(E.Bj,{lib:"lucide",icon:"check",strokeWidth:5})):l().createElement(E.Bj,{lib:"antd",icon:"check-circle",className:N()(U.icon,U.completed)});case"working":return l().createElement("span",{className:N()(U.icon,U.stacked,U.working,{[U.filled]:a})},l().createElement(E.Bj,{lib:"lucide",icon:"loader-2",spinning:!0,strokeWidth:a?5:3}));case"failed":return l().createElement(E.Bj,{lib:"antd",theme:a?"filled":"outlined",icon:"close-circle",className:N()(U.icon,U.failed)});case"terminated":case"canceled":return l().createElement(E.Bj,{lib:"antd",theme:a?"filled":"outlined",icon:"stop",className:U.icon});default:return l().createElement(E.Bj,{lib:"antd",theme:a?"filled":"outlined",icon:"clock-circle",className:U.icon})}}(0,J.initializeI18n)(Q,Z);const re=(0,n.createContext)({});function ie(e){let{task:t}=e;const[a,o]=(0,n.useState)(!0),{flowMap:r,setActiveDetail:i}=(0,n.useContext)(R.j),{toggleAutoScroll:s}=(0,n.useContext)(q.W),c=null==r?void 0:r.get(t.id),d=(0,n.useRef)(null);return l().createElement(re.Provider,{value:{collapsed:a}},l().createElement("div",{className:N()(U.plan,{[U.collapsed]:a})},l().createElement("div",{className:U.heading},c?l().createElement("span",{className:U["flow-title"],onClick:()=>{const e={type:"flow",id:t.id};i((t=>(0,w.isEqual)(t,e)?t:e))}},l().createElement(E.Bj,{lib:"lucide",icon:"route"}),$(X.STARTING_SERVICE_FLOW,{name:c.name})):l().createElement("span",null,$(X.ACTIVITY_PLAN)),l().createElement("div",{className:U.toggle,onClick:()=>{o((e=>!e)),s(!1),d.current&&clearTimeout(d.current),d.current=setTimeout((()=>{s(!0)}),100)}},$(X.SHOW_PROCESS),l().createElement(E.Bj,(0,y.A)({className:U.chevron},x.ae)))),l().createElement(se,{plan:t.plan,level:0})))}function se(e){let{plan:t,level:a}=e;return l().createElement("ul",{className:U.tree},t.map(((e,t,n)=>l().createElement(ce,{key:t,step:e,level:a,isLast:t===n.length-1}))))}function ce(e){let{step:t,level:a,isLast:o}=e;const r=0===a,{jobMap:i}=(0,n.useContext)(R.j),{collapsed:s}=(0,n.useContext)(re),c=t.jobId?null==i?void 0:i.get(t.jobId):void 0;return l().createElement("li",{className:r?U.root:void 0},!o&&l().createElement("div",{className:U.line,style:{bottom:o?0:r?-12:-8}}),l().createElement("div",{className:U.node},l().createElement("div",{className:U.label},l().createElement(oe,{state:null==c?void 0:c.state,filled:r}),l().createElement("span",{className:U.name},t.name))),!s&&c?l().createElement(de,{stepJob:c,level:a}):null)}function de(e){let{stepJob:t,level:a}=e;const{tasks:o,errors:r,flowMap:i,activityMap:s}=(0,n.useContext)(R.j),c="subTask"===t.type?o.find((e=>e.parent===t.id)):void 0,d=(0,ee.p)(!!c,null==c?void 0:c.state,o,r,{flowMap:i,activityMap:s,rootTaskId:null==c?void 0:c.id}),p=(0,n.useMemo)((()=>c?d.messages:[{role:"assistant",chunks:[{type:"job",job:t}]}]),[t,c,d.messages]);return l().createElement("div",{className:U.details},p.map(((e,t)=>l().createElement("div",{className:U.message,key:t},"user"===e.role?l().createElement("div",{className:U.user},e.content):l().createElement(pe,{chunks:e.chunks,level:a})))))}function pe(e){let{chunks:t,level:a}=e;const o=(0,n.useMemo)((()=>{const e=[];for(const a of t)if("job"===a.type&&a.job.toolCall){const t=e[e.length-1];t&&"tools"===t.type?t.jobs.push(a.job):e.push({type:"tools",jobs:[a.job]})}else e.push(a);return e}),[t]);return l().createElement("div",{className:U.assistant},o.map(((e,t)=>l().createElement(me,{key:t,chunk:e,level:a}))))}function me(e){var t;let{chunk:a,level:o}=e;const{setActiveDetail:r}=(0,n.useContext)(R.j);return l().createElement("div",{className:U.chunk},"tools"===a.type?l().createElement("div",{className:U.tools},a.jobs.map((e=>{var t;return l().createElement("div",{key:e.id,className:U.tool,onClick:()=>{const t={type:"job",id:e.id};r((e=>(0,w.isEqual)(e,t)?e:t))}},l().createElement(oe,{state:e.state}),(null===(t=e.toolCall.annotations)||void 0===t?void 0:t.title)||e.toolCall.name)}))):"job"===a.type?null===(t=a.job.messages)||void 0===t?void 0:t.map(((e,t)=>l().createElement(n.Fragment,{key:t},e.parts.map(((e,t)=>"text"===e.type?l().createElement(C.w,{key:t,className:j.A["markdown-wrapper"],content:e.text}):null))))):"plan"===a.type?l().createElement(se,{plan:a.task.plan,level:o+1}):"askUser"===a.type?l().createElement(le,{job:a.job,task:a.task}):null)}function ue(e){let{chunk:t,isSubTask:a}=e;return"job"===t.type?"reasoning"===t.job.type?l().createElement(Y,{job:t.job}):l().createElement(G,{job:t.job,isSubTask:a}):"plan"===t.type?l().createElement(ie,{task:t.task}):"askUser"===t.type?l().createElement(le,{job:t.job,task:t.task}):"error"===t.type?l().createElement("div",{className:_.error},t.error):l().createElement(ge,{chunk:t,isSubTask:a})}function ge(e){let{chunk:t,isSubTask:a}=e;const{conversationState:o,setActiveDetail:r,setSubActiveDetail:i}=(0,n.useContext)(R.j),{setUserClosedAside:s,lastDetail:c}=(0,n.useContext)(q.W),[d,p]=(0,n.useState)(!1),{type:m,task:u}=t,{className:g,icon:b}=(0,n.useMemo)((()=>M("flow"===t.type?"completed":u.state,o)),[t.type,o,u.state]);return l().createElement("div",{className:N()({[_.collapsed]:d})},l().createElement("div",{className:N()(_.heading,g),onClick:()=>p((e=>!e))},l().createElement("div",{className:_.icon},l().createElement(E.Bj,b)),l().createElement("div",{className:_.title},"flow"===m?(0,K.t)(K.K.INITIATING_SERVICE_FLOW,{name:t.flow.name}):(0,K.t)(K.K.STARTING_SERVICE_FLOW_ACTIVITY,{name:t.activity.name})),l().createElement(E.Bj,(0,y.A)({className:_.caret},x.ae))),l().createElement("div",{className:_.body},l().createElement("div",{className:_.tool,onClick:()=>{const e={type:t.type,id:t.task.id};(a?i:r)((t=>(0,w.isEqual)(t,e)?t:e)),(0,w.isEqual)(e,c)&&s(!1)}},l().createElement(E.Bj,{lib:"lucide",icon:"route"}),"flow"===m?(0,K.t)(K.K.INITIATING_SERVICE_FLOW,{name:t.flow.name}):(0,K.t)(K.K.STARTING_SERVICE_FLOW_ACTIVITY,{name:t.activity.name}))))}var be=a(17994),fe={};fe.styleTagTransform=f(),fe.setAttributes=m(),fe.insert=d().bind(null,"head"),fe.domAPI=s(),fe.insertStyleElement=g(),r()(be.A,fe);const he=be.A&&be.A.locals?be.A.locals:void 0;function ve(e){let{job:t}=e;return l().createElement("div",{className:he.hil},l().createElement("div",{className:he.content},l().createElement(E.Bj,{lib:"antd",icon:"exclamation-circle"}),(0,K.t)(K.K.HIL_TIPS,{name:t.hil.username})),t.requestHumanAction&&l().createElement("div",{className:he.actions},l().createElement(A.n,{action:t.requestHumanAction,ui:"chat"})))}const ke={type:"error",error:"The conversation was marked as finished early due to an unexpected issue.\nPlease refresh the page or try again later."};function xe(e){let{chunks:t,scopeState:a,isLatest:o,isSubTask:r,finished:i,earlyFinished:s}=e;const[c,d]=(0,n.useMemo)((()=>{if(!t||0===t.length)return[o&&!x.Z5.includes(a),void 0];const e=t[t.length-1];let n;if(e)switch(e.type){case"flow":case"activity":n=e.task.jobs[e.task.jobs.length-1];break;case"job":n=e.job;break;default:return[!1,void 0]}if(!o||x.Z5.includes(a))return[!1,n];for(const e of t)switch(e.type){case"flow":case"activity":if(e.task.jobs.some((e=>"input-required"===e.state)))return[!1,n];break;case"job":if("input-required"===e.job.state)return[!1,n]}return n&&"working"===n.state&&n.toolCall?[!1,n]:[!0,n]}),[o,t,a]),p="reasoning"===(null==d?void 0:d.type);return l().createElement("div",{className:k.assistant},l().createElement(E.Bj,{lib:"easyops",category:"image",icon:"elevo-avatar-png",className:k.avatar}),l().createElement("div",{className:k.body},null==t?void 0:t.map(((e,t)=>l().createElement(ue,{key:t,chunk:e,isSubTask:r}))),c&&!i&&!p&&l().createElement("div",{className:k.texting}),o&&d&&!p&&!x.X4.includes(a)&&("working"===d.state||"input-required"===d.state)&&!d.humanAction&&(d.hil?l().createElement(ve,{job:d}):d.requestHumanAction&&l().createElement(A.n,{action:d.requestHumanAction,ui:"chat"})),s&&l().createElement(ue,{chunk:ke})))}},32360:(e,t,a)=>{e.exports=a.p+"images/72c24398.png"},35754:(e,t,a)=>{a.d(t,{A:()=>i});var n=a(36758),l=a.n(n),o=a(40935),r=a.n(o)()(l());r.push([e.id,'.assistant--CrlgPgYL{display:flex}.body--sAIo2dhL{flex:1;min-width:0;padding:3px 0 3px 16px}.texting--Rpmsbpca{position:relative}.texting--Rpmsbpca::after{content:" ";animation:texting--Rpmsbpca 2s infinite;white-space:pre}.avatar--jaJhEiSV{font-size:32px}@keyframes texting--Rpmsbpca{0%{content:"\\00a0\\00a0\\00a0"}25%{content:".\\00a0\\00a0"}50%{content:"..\\00a0"}75%{content:"..."}100%{content:"\\00a0\\00a0\\00a0"}}',""]),r.locals={assistant:"assistant--CrlgPgYL",body:"body--sAIo2dhL",texting:"texting--Rpmsbpca",avatar:"avatar--jaJhEiSV"};const i=r},40563:(e,t,a)=>{a.d(t,{i:()=>o});var n=a(18769),l=a(99126);function o(e,t,a){const o=(0,n.useRef)(!1),r=(0,n.useRef)(!1),[i,s]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const e=t.current,n=a.current;if(r.current||!e||!n)return;const i=()=>{s(e.scrollTop+e.clientHeight+24<e.scrollHeight),o.current&&(r.current=e.scrollTop+e.clientHeight+6<e.scrollHeight)};let c;e.addEventListener("scroll",i);const d=new l.A((()=>{r.current||(o.current=!1,e.scrollTo({top:n.scrollHeight,behavior:"instant"}),clearTimeout(c),c=setTimeout((()=>{o.current=!0}),100))}));return d.observe(n),()=>{d.disconnect(),e.removeEventListener("scroll",i)}}),[e]),{scrollable:i,scrollToBottom:(0,n.useCallback)((()=>{const e=t.current;null==e||e.scrollTo({top:null==e?void 0:e.scrollHeight,behavior:"instant"})}),[t]),toggleAutoScroll:(0,n.useCallback)((e=>{r.current=!e}),[])}}},48952:(e,t,a)=>{a.d(t,{I:()=>r,K:()=>l,NS:()=>o,t:()=>i});var n=a(67177);let l=function(e){return e.SWITCH_TO_CANVAS="SWITCH_TO_CANVAS",e.INITIATING_SERVICE_FLOW="INITIATING_SERVICE_FLOW",e.STARTING_SERVICE_FLOW_ACTIVITY="STARTING_SERVICE_FLOW_ACTIVITY",e.HIL_TIPS="HIL_TIPS",e.THINKING="THINKING",e.SHOW_THINKING="SHOW_THINKING",e}({});const o="bricks/ai-portal/chat-stream",r={en:{SWITCH_TO_CANVAS:"Switch to canvas",INITIATING_SERVICE_FLOW:"Starting serviceflow: {{ name }}",STARTING_SERVICE_FLOW_ACTIVITY:"Starting serviceflow activity: {{ name }}",HIL_TIPS:"Triggered HIL rule, waiting for {{ name }} to process.",THINKING:"Thinking...",SHOW_THINKING:"Show thinking"},zh:{SWITCH_TO_CANVAS:"切换为画布",INITIATING_SERVICE_FLOW:"发起业务流:{{ name }}",STARTING_SERVICE_FLOW_ACTIVITY:"开始业务流活动:{{ name }}",HIL_TIPS:"触发 HIL 规则,等待 {{ name }} 处理。",THINKING:"思考中...",SHOW_THINKING:"显示思路"}},i=n.i18n.getFixedT(null,o)},50094:(e,t,a)=>{a.d(t,{A:()=>i});var n=a(36758),l=a.n(n),o=a(40935),r=a.n(o)()(l());r.push([e.id,'.heading--lj5kJ2fg{display:flex;align-items:center;padding:5px 8px;margin:0 0 12px;cursor:pointer}.main--P8894aNV{font-size:16px;line-height:26px}.caret--XqX6mjyf{opacity:0;transition:transform 0.2s ease-in-out}.heading--lj5kJ2fg:hover{background:rgba(184,187,205,0.15);border-radius:8px}.heading--lj5kJ2fg:hover .caret--XqX6mjyf{opacity:1}.icon--l8SzaFlV{display:flex;align-items:center;margin-right:12px}.title--FZPCnJbE{color:#262626;font-weight:500;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool--ugqSpeIM{background:#e2e5ef;border:1px solid #d4d4de;border-radius:13px;line-height:24px;padding:0 12px;width:-moz-fit-content;width:fit-content;font-size:12px;color:rgba(0,0,0,0.65);cursor:pointer;display:flex;align-items:center;gap:7px;margin-bottom:12px}.tool--ugqSpeIM eo-icon{font-size:14px;color:#8c8c8c}.body--p3Zt_jA4{margin-bottom:20px}.heading--lj5kJ2fg + .body--p3Zt_jA4{padding-left:26px}.collapsed--cGSG2zk_ .reasoning-content--CETqImvw,.collapsed--cGSG2zk_ .body--p3Zt_jA4{display:none}.collapsed--cGSG2zk_ .caret--XqX6mjyf{transform:rotate(180deg);opacity:1}.content--pBkkWQ5e{margin-top:14px;font-size:16px;line-height:26px}.content--pBkkWQ5e .markdown--Ky2J85cs [class*="code-wrapper--"]::part(mermaid){background:rgba(255,255,255,0.6);border-radius:8px;border:1px solid rgba(0,0,0,0.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:20px;min-width:var(--cruise-canvas-node-width-medium);width:auto;max-width:100%}.content--pBkkWQ5e:empty{display:none}.message--okEUzWzg:first-child > .message-part--kxjYnHz0:first-child > :first-child{margin-top:0}.icon--l8SzaFlV{color:#abaab7}.completed--JWq7E1Jw .icon--l8SzaFlV{color:#0fbe59}.failed--uk7jDD7K .icon--l8SzaFlV{color:#f24c25}.working--dZiN0y04 .icon--l8SzaFlV{color:var(--elevo-color-brand)}.input-required--JSuPr8br .icon--l8SzaFlV{color:#12aacc}.canceled--LyMjPJQd .icon--l8SzaFlV{color:#fcaa07}ai-portal\\.chat-stream[hide-mermaid] .content--pBkkWQ5e .markdown--Ky2J85cs .mermaid{display:none}.error--n_Of3DwP{color:var(--color-error);white-space:pre-wrap;word-break:break-word}.chevron--BWJTCqI0{transition:transform 0.2s ease-in-out;transform:rotate(180deg)}.collapsed--cGSG2zk_ .chevron--BWJTCqI0{transform:rotate(90deg)}.thinking--JqMsVbNQ{font-size:16px;display:flex;align-items:center;gap:6px;margin-bottom:16px;color:rgba(0,0,0,0.88);--shine-text-color:rgba(0,0,0,0.88);--shine-text-highlight-color:#dcdcdc}.reasoning--kXEFXvtf{margin-bottom:16px}.reasoning-label--nmRY4CIN{color:rgba(0,0,0,0.45);display:inline-flex;align-items:center;gap:4px;cursor:pointer;--shine-text-color:rgba(0,0,0,0.45);--shine-text-highlight-color:#dcdcdc}.reasoning-label--nmRY4CIN:hover{color:rgba(0,0,0,0.65)}.reasoning-content--CETqImvw{background:rgba(184,187,205,0.2);border-radius:12px;margin-top:4px;padding:8px 12px}',""]),r.locals={heading:"heading--lj5kJ2fg",main:"main--P8894aNV",caret:"caret--XqX6mjyf",icon:"icon--l8SzaFlV",title:"title--FZPCnJbE",tool:"tool--ugqSpeIM",body:"body--p3Zt_jA4",collapsed:"collapsed--cGSG2zk_","reasoning-content":"reasoning-content--CETqImvw",content:"content--pBkkWQ5e",markdown:"markdown--Ky2J85cs",message:"message--okEUzWzg","message-part":"message-part--kxjYnHz0",completed:"completed--JWq7E1Jw",failed:"failed--uk7jDD7K",working:"working--dZiN0y04","input-required":"input-required--JSuPr8br",canceled:"canceled--LyMjPJQd",error:"error--n_Of3DwP",chevron:"chevron--BWJTCqI0",thinking:"thinking--JqMsVbNQ",reasoning:"reasoning--kXEFXvtf","reasoning-label":"reasoning-label--nmRY4CIN"};const i=r},51069:(e,t,a)=>{a.d(t,{W:()=>n});const n=(0,a(18769).createContext)({lastDetail:null,planMap:null,setUserClosedAside:()=>{},toggleAutoScroll:()=>{}})},65438:(e,t,a)=>{a.d(t,{A:()=>i});var n=a(36758),l=a.n(n),o=a(40935),r=a.n(o)()(l());r.push([e.id,".view--O8CNDdS_{background:rgba(255,255,255,0.6);border-radius:8px;border:1px solid rgba(0,0,0,0.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:12px 20px;width:var(--cruise-canvas-node-width-medium);max-width:100%;margin-top:14px}.large--jT3IWlRf{width:var(--cruise-canvas-node-width-large)}",""]),r.locals={view:"view--O8CNDdS_",large:"large--jT3IWlRf"};const i=r},79948:(e,t,a)=>{a.d(t,{A:()=>i});var n=a(36758),l=a.n(n),o=a(40935),r=a.n(o)()(l());r.push([e.id,".plan--c_zq2EAr{margin-bottom:20px}.heading--Vlp1n9bO{display:flex;align-items:center;gap:10px;font-weight:600;font-size:16px;line-height:22px;color:rgba(0,0,0,0.88)}.heading--Vlp1n9bO .flow-title--GCYyySaN{display:flex;align-items:center;gap:8px;height:30px;padding:0 14px;background:rgba(255,255,255,0.5);border-radius:15px;border:1px solid rgba(0,0,0,0.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);cursor:pointer}.heading--Vlp1n9bO .flow-title--GCYyySaN:hover{background:rgba(255,255,255,0.8)}.toggle--u1NrK3KR{display:inline-flex;align-items:center;gap:1px;padding:0 8px 0 10px;height:22px;background:rgba(255,255,255,0.65);border-radius:20px;border:1px solid #fff;font-size:12px;color:rgba(0,0,0,0.65);cursor:pointer}.toggle--u1NrK3KR:hover{color:rgba(0,0,0,0.85)}.chevron--AMetnOK4{transition:transform 0.2s ease-in-out;transform:rotate(180deg)}.collapsed--kVju3qL5 .chevron--AMetnOK4{transform:rotate(90deg)}.tree--Ywa_3ELe{list-style:none;padding:0;margin:0}.plan--c_zq2EAr > .tree--Ywa_3ELe{margin-top:14px}.tree--Ywa_3ELe > li{position:relative}.icon--nzWHFkLA{font-size:16px;color:var(--plan-state-icon-color);--plan-state-icon-color:#8c8c8c}.icon--nzWHFkLA.completed--YIu_zg8m{--plan-state-icon-color:#08bf33}.icon--nzWHFkLA.working--LHplm_T6{--plan-state-icon-color:var(--elevo-color-brand)}.icon--nzWHFkLA.paused--UmaW3_tY{--plan-state-icon-color:#faad14}.icon--nzWHFkLA.failed--UZ2q8xgi{--plan-state-icon-color:#f24c25}.icon--nzWHFkLA.stacked--hWM0IiDq{font-size:10px;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:8px;border:1.5px solid var(--plan-state-icon-color)}.icon--nzWHFkLA.filled--x2ca4XXo{color:#fff;background:var(--plan-state-icon-color)}.node--Isn2TQD5:not(:last-child){margin-bottom:8px}.tree--Ywa_3ELe > li:not(:last-child){margin-bottom:12px}.node--Isn2TQD5{display:flex;align-items:center;height:24px;gap:20px}.label--zJDwkSVW{display:flex;align-items:center;gap:4px;color:rgba(0,0,0,0.65);font-weight:500}.root--RbWVMncE > .node--Isn2TQD5 > .label--zJDwkSVW{color:#000}.name--U17yZgtX{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.line--AcxfrMKU{position:absolute;top:24px;left:7px;border:1px dashed rgba(0,0,0,0.2);pointer-events:none}.message--LqSUA_ni{margin-bottom:8px;color:rgba(0,0,0,0.65);font-size:14px}.message--LqSUA_ni .user--NgJ9z6i_{background:rgba(0,0,0,0.04);border:1px solid rgba(0,0,0,0.1);padding:2px 12px}.details--VQA0cH78{padding-left:20px}.chunk--w0MMXtuz{margin-bottom:8px}.tools--_9YXNUSk{display:flex;gap:8px;flex-wrap:wrap}.tool--cKB7n0GU{display:flex;gap:10px;align-items:center;padding:0 12px;height:26px;width:-moz-fit-content;width:fit-content;background:rgba(0,0,0,0.04);border:1px solid rgba(0,0,0,0.1);border-radius:13px;color:rgba(0,0,0,0.65);cursor:pointer}.tool--cKB7n0GU:hover{background:rgba(0,0,0,0.06)}",""]),r.locals={plan:"plan--c_zq2EAr",heading:"heading--Vlp1n9bO","flow-title":"flow-title--GCYyySaN",toggle:"toggle--u1NrK3KR",chevron:"chevron--AMetnOK4",collapsed:"collapsed--kVju3qL5",tree:"tree--Ywa_3ELe",icon:"icon--nzWHFkLA",completed:"completed--YIu_zg8m",working:"working--LHplm_T6",paused:"paused--UmaW3_tY",failed:"failed--UZ2q8xgi",stacked:"stacked--hWM0IiDq",filled:"filled--x2ca4XXo",node:"node--Isn2TQD5",label:"label--zJDwkSVW",root:"root--RbWVMncE",name:"name--U17yZgtX",line:"line--AcxfrMKU",message:"message--LqSUA_ni",user:"user--NgJ9z6i_",details:"details--VQA0cH78",chunk:"chunk--w0MMXtuz",tools:"tools--_9YXNUSk",tool:"tool--cKB7n0GU"};const i=r},86e3:(e,t,a)=>{a.d(t,{A:()=>i});var n=a(36758),l=a.n(n),o=a(40935),r=a.n(o)()(l());r.push([e.id,".scroll-down--st4A5sQ4{position:absolute;left:50%;bottom:136px;transform:translateX(-50%);width:32px;height:32px;font-size:12px}",""]),r.locals={"scroll-down":"scroll-down--st4A5sQ4"};const i=r}}]);
|
|
2
|
-
//# sourceMappingURL=4864.1a321da4.js.map
|