@dscord/daemon 0.1.11 → 0.1.12
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/chat-bridge.js +1971 -1892
- package/dist/index.js +7015 -7064
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,387 +1,22 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
9
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
10
|
-
'C3bSAxq',
|
|
11
|
-
'l2fWAs9Hz2vUDhm/C2vYDMvYswq9',
|
|
12
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
13
|
-
'lIbtzxnZAw9UieLeoIa',
|
|
14
|
-
'BwvZC2fNzuLK',
|
|
15
|
-
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
16
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
17
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
18
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
19
|
-
'l3vWBg9Hza',
|
|
20
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
21
|
-
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
22
|
-
'Dgv4Dc9JC3y',
|
|
23
|
-
'y2f0y2G',
|
|
24
|
-
'zMfPBgvK',
|
|
25
|
-
'uefuq0G',
|
|
26
|
-
'y29UDgvUDejHC2u2na',
|
|
27
|
-
'C29YDa',
|
|
28
|
-
'lsaJ',
|
|
29
|
-
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
30
|
-
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
31
|
-
'Aw5FChjVz3jLC3m',
|
|
32
|
-
'w3nLCt0',
|
|
33
|
-
'DgfZA19Pza',
|
|
34
|
-
'zMLSzv9WyxrO',
|
|
35
|
-
'C2vYDMvYvxjS',
|
|
36
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
37
|
-
'z2v0',
|
|
38
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
39
|
-
'u3bHD24Gysb3B3jRzxiGywDLBNqGDg8GAgfUzgXLigeGC3vIDgfZAYbHC3LUy2HYB25VDxnSEs4GvgHLihDVCMTLCIbYDw5ZigLUigL0CYbVD24GC2vZC2LVBIbHBMqGCMvWB3j0CYbIywnRihDOzw4Gzg9Uzs4',
|
|
40
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
41
|
-
'CMvWBgfJzq',
|
|
42
|
-
'BMv4Den1CNnVCG',
|
|
43
|
-
'yxjNDG',
|
|
44
|
-
'iYmJieH1BwfUCW',
|
|
45
|
-
'lsba',
|
|
46
|
-
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
47
|
-
'ywDNCMvNyxrLswq',
|
|
48
|
-
'iokaLca',
|
|
49
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
50
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
51
|
-
'DgHYzwfKswq',
|
|
52
|
-
'Bwf4',
|
|
53
|
-
'AgfZtw9Yzq',
|
|
54
|
-
'C2L6zuj5DgvZ',
|
|
55
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
56
|
-
'z2v0twLUDxrLCW',
|
|
57
|
-
'zgf0yq',
|
|
58
|
-
'ihr5Cgu9ywDLBNq',
|
|
59
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
60
|
-
'ig1LC3nHz2u9',
|
|
61
|
-
'zgLNzxn0',
|
|
62
|
-
'mti0mdm5mLnHsvvhsa',
|
|
63
|
-
'y2XPzw50',
|
|
64
|
-
'y2XHAw1FDgfZA3m',
|
|
65
|
-
'kg5VBMuP',
|
|
66
|
-
'y3jLyxrLx3rHC2TZ',
|
|
67
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
68
|
-
'Dw5RBM93BG',
|
|
69
|
-
'icHPzdO',
|
|
70
|
-
'CMvZDw1Lx3bHy2TLDa',
|
|
71
|
-
'l2zPBMLZAa',
|
|
72
|
-
'Aw1Hz2uVANbLzW',
|
|
73
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
74
|
-
'zgLZCgXHEu5HBwu',
|
|
75
|
-
'ihn0yxr1CZ0',
|
|
76
|
-
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
77
|
-
'y3jLyxrLzef0',
|
|
78
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
79
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
80
|
-
'yMvMB3jL',
|
|
81
|
-
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
82
|
-
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
83
|
-
'C2vUzgvYtMfTzq',
|
|
84
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
85
|
-
'zMLSzw5HBwu',
|
|
86
|
-
'C2XPy2u',
|
|
87
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
88
|
-
'sfruuca',
|
|
89
|
-
'ntyZmdvcEMTus1K',
|
|
90
|
-
'ywXS',
|
|
91
|
-
'DxbSB2fKuhjLCgfYzxi',
|
|
92
|
-
'CMvHzf9OAxn0B3j5',
|
|
93
|
-
'CMvHC29U',
|
|
94
|
-
'yxjYyxLcDwzMzxi',
|
|
95
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
96
|
-
'C3rYAw5NAwz5',
|
|
97
|
-
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
98
|
-
'D29YA2vYtw9Kzq',
|
|
99
|
-
'y2HLy2TnzxnZywDLCW',
|
|
100
|
-
'mteZmti3m0HVtwLcDW',
|
|
101
|
-
'DgL0Bgu',
|
|
102
|
-
'zNjVBq',
|
|
103
|
-
'C3bHD25FD29YA2vYigzHAwXLza',
|
|
104
|
-
'B3b0Aw9UywW',
|
|
105
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
106
|
-
'Dgv4Dc9WBgfPBG',
|
|
107
|
-
'ANnVBG',
|
|
108
|
-
'ls1ZzxnZAw9UlwLK',
|
|
109
|
-
'DxbSB2fKx2zPBgu',
|
|
110
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
111
|
-
'zxjYB3i',
|
|
112
|
-
'mJi5mti4oxLxtfnZwq',
|
|
113
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
114
|
-
'BwvZC2fNzq',
|
|
115
|
-
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
116
|
-
'v29YA2vYici',
|
|
117
|
-
'Bg9JywXLq29TCgfYzq',
|
|
118
|
-
'zgfLBw9UqxbPs2v5',
|
|
119
|
-
'DhjPBq',
|
|
120
|
-
'BgLZDfnLCNzLCG',
|
|
121
|
-
'BgLZDf90yxnRCW',
|
|
122
|
-
'AxnbyNnVBhv0zq',
|
|
123
|
-
'CMvZDwX0',
|
|
124
|
-
'ihrPBwu9',
|
|
125
|
-
'y2HHBM5LBe5HBwu',
|
|
126
|
-
'BwvTyMvYCW',
|
|
127
|
-
'ywDLBNrjza',
|
|
128
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
129
|
-
'CMvHzeHPC3rVCNK',
|
|
130
|
-
'BgLZDf9Zzxj2zxi',
|
|
131
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
132
|
-
'yxr0ywnOBwvUDhm',
|
|
133
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
134
|
-
'C2vYDMvYx21LBwjLCNm',
|
|
135
|
-
'cGOTls0G',
|
|
136
|
-
'yMfZzty0',
|
|
137
|
-
'CgfYDgLJAxbHBNrjza',
|
|
138
|
-
'ywDLBNq',
|
|
139
|
-
'D3nZoG',
|
|
140
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
141
|
-
'z2v0vgLTzq',
|
|
142
|
-
'zxH0BMfTzq',
|
|
143
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
144
|
-
'y29UDgvUDc10ExbL',
|
|
145
|
-
'BM93',
|
|
146
|
-
'BwvTyMvY',
|
|
147
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
148
|
-
'y2XHAw1uyxnRCW',
|
|
149
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
150
|
-
'ywz0zxjtzxe',
|
|
151
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
152
|
-
'BgLTAxq',
|
|
153
|
-
'C2L6zq',
|
|
154
|
-
'yxr0ywnOBwvUDeLK',
|
|
155
|
-
'DxrMoa',
|
|
156
|
-
'CMvZDwX0CW',
|
|
157
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGBM90ignVBMzPz3vYzwqP',
|
|
158
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
159
|
-
'EM9K',
|
|
160
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
161
|
-
'Dg9tDhjPBMC',
|
|
162
|
-
'ywDLBNrZ',
|
|
163
|
-
'C3rHDhvZ',
|
|
164
|
-
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
165
|
-
'zxzLBNrtzxe',
|
|
166
|
-
'C29Tzq',
|
|
167
|
-
'igf0DgfJAg1LBNq',
|
|
168
|
-
'y29UDgvUDa',
|
|
169
|
-
'mtiZnJi0zu9UvKTQ',
|
|
170
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
171
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
172
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
173
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
174
|
-
'DgHYzwfKu2HVCNrjza',
|
|
175
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
176
|
-
'AxngAwXL',
|
|
177
|
-
'zgvZDhjVEwvK',
|
|
178
|
-
'B3bLBL9PC3n1zxm',
|
|
179
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
180
|
-
'CNvUBMLUzW',
|
|
181
|
-
'DxnLCG',
|
|
182
|
-
'CNvUswq',
|
|
183
|
-
'ue9tva',
|
|
184
|
-
'zgLZCg9ZAxrPB24',
|
|
185
|
-
'zgLZCgXHEu5HBwvmB3DLCG',
|
|
186
|
-
'zMLUza',
|
|
187
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
188
|
-
'iJOGC3rHDhvZpq',
|
|
189
|
-
'l3n0yxj0',
|
|
190
|
-
'D29YA2vYCW',
|
|
191
|
-
'CxvLDwvK',
|
|
192
|
-
'BNvTyMvY',
|
|
193
|
-
'yxr0ywnOBwvUDenHy2HL',
|
|
194
|
-
'ywz0zxi',
|
|
195
|
-
'C2vUzgvYvhLWzq',
|
|
196
|
-
'AgfZ',
|
|
197
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
198
|
-
'y29UBMvJDa',
|
|
199
|
-
'CgfYC2u',
|
|
200
|
-
'CgfYDgLJAxbHBNrZ',
|
|
201
|
-
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
202
|
-
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
203
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
204
|
-
'rg93BMXVywrLzcb0BZOG',
|
|
205
|
-
'y3vYC29Y',
|
|
206
|
-
'y2HHBM5LBhm',
|
|
207
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
208
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
209
|
-
'CM9VDe1LC3nHz2vjza',
|
|
210
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
211
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
212
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
213
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
214
|
-
'zMLSDgvY',
|
|
215
|
-
'lcb3B3jRx2TLEtOG',
|
|
216
|
-
'zw51Bq',
|
|
217
|
-
'khvUA25VD24P',
|
|
218
|
-
'y2HHDa',
|
|
219
|
-
'y2HHBM5LBa',
|
|
220
|
-
'A2LUza',
|
|
221
|
-
'AhvTyw5Z',
|
|
222
|
-
'w3rHCMDLDd0',
|
|
223
|
-
'ls1KywvTB24TBg9JywWTDxjS',
|
|
224
|
-
'C2v0',
|
|
225
|
-
'BwvKAxvT',
|
|
226
|
-
'l3jLy2vPDMu',
|
|
227
|
-
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
228
|
-
'l3rHC2TZpW',
|
|
229
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
230
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
231
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
232
|
-
'ChvZAa',
|
|
233
|
-
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
234
|
-
'Aw5FCMv2Awv3',
|
|
235
|
-
'C2vYDMvY',
|
|
236
|
-
'xsba',
|
|
237
|
-
'Dgv4Da',
|
|
238
|
-
'AM9PBG',
|
|
239
|
-
'C2vUze1LC3nHz2u',
|
|
240
|
-
'AgLNAa',
|
|
241
|
-
'C3rYAw5N',
|
|
242
|
-
'y2HHBM5LBeLK',
|
|
243
|
-
'mZy0ote2uMDwCNDq',
|
|
244
|
-
'C3rVCe1HAw4',
|
|
245
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
246
|
-
'CgfYC2vjBNq',
|
|
247
|
-
'yxv0BZO',
|
|
248
|
-
'yxjYyxK',
|
|
249
|
-
'Dg9VBa',
|
|
250
|
-
'mtm4EenQt0fm',
|
|
251
|
-
'Dg9KBW',
|
|
252
|
-
'ywrK',
|
|
253
|
-
'Aw5JBhvKzxm',
|
|
254
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
255
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
256
|
-
'zw50CMLLCW',
|
|
257
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
258
|
-
'ls1KywvTB24TyxbPlwTLEq',
|
|
259
|
-
'C2LNBMfS',
|
|
260
|
-
'C2vZC2LVBKLK',
|
|
261
|
-
'BMv4Df9ZDgvWCW',
|
|
262
|
-
'C2nOzwr1BgvKrM9Y',
|
|
263
|
-
'DgfZA0LK',
|
|
264
|
-
'DgfZA051BwjLCG',
|
|
265
|
-
'DxbSB2fKrMLSzq',
|
|
266
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
267
|
-
'iYmGu2vYDMvYoIa',
|
|
268
|
-
'zMLSzxnFy2HHBMDLza',
|
|
269
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
270
|
-
'mZK0otmYoe9rD1LgBq',
|
|
271
|
-
'zMv0y2HjBxbS',
|
|
272
|
-
'C3rHCNrZv2L0Aa',
|
|
273
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
274
|
-
'zgvZy3jPChrPB24',
|
|
275
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
276
|
-
'DgfYz2v0',
|
|
277
|
-
'AwrLBxbVDgvUy3LFA2v5',
|
|
278
|
-
'yxr0ywnOBwvUDf9Pzhm',
|
|
279
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
280
|
-
'zMLUAxnOx3DVCMTLCG',
|
|
281
|
-
'z2v0rNvSBfLLyxi',
|
|
282
|
-
'C3rHCNrLza',
|
|
283
|
-
'CgfYDgLJAxbHBNq',
|
|
284
|
-
'DgHYzwfKvgfYz2v0',
|
|
285
|
-
'C3bHD25FD29YA2vY',
|
|
286
|
-
'ChjVDg9JB2W',
|
|
287
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
288
|
-
'CgfKu3rHCNq',
|
|
289
|
-
'z2v0sg91CNm',
|
|
290
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
291
|
-
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
292
|
-
'l3nLBMq',
|
|
293
|
-
'Aw1Hz2uVCg5N',
|
|
294
|
-
'C3vTBwfYEq',
|
|
295
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
296
|
-
'Cgf5Bg9HzePZB24',
|
|
297
|
-
'zg9Uzq',
|
|
298
|
-
'DMfSDwu',
|
|
299
|
-
'B2jQzwn0',
|
|
300
|
-
'D29YA19RzxK',
|
|
301
|
-
'C2vYDMvYtMfTzq',
|
|
302
|
-
'iYmJiefNzw50CW',
|
|
303
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
304
|
-
'BwfW',
|
|
305
|
-
'BMfTzq',
|
|
306
|
-
'Dw5JBgfPBv90yxnR',
|
|
307
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
308
|
-
'l2nVBNrLBNq',
|
|
309
|
-
'yMfZzw5HBwu',
|
|
310
|
-
'C2HHmJu2',
|
|
311
|
-
'Dg9gAxHLza',
|
|
312
|
-
'DMLLD19MAwXL',
|
|
313
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
314
|
-
'DgHYzwfK',
|
|
315
|
-
'zg06',
|
|
316
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
317
|
-
'Dg9ju09tDhjPBMC',
|
|
318
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
319
|
-
'DgvZDa',
|
|
320
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
321
|
-
'l3nLCNzLCG',
|
|
322
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
323
|
-
'BgLZDfrHC2TZ',
|
|
324
|
-
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
325
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
326
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
327
|
-
'D3m6',
|
|
328
|
-
'C2vUzf9TzxnZywDL',
|
|
329
|
-
'lMjPBG',
|
|
330
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
331
|
-
'u2vUzcbHig1LC3nHz2uGDg8GysbJAgfUBMvSig9YiernlIbszxvZzsb0AguGzxHHy3qGDgfYz2v0ihn0CMLUzYbMCM9TigLUy29TAw5Nig1LC3nHz2vZoYb0AhjLywqGDgfYz2v0CYb1C2uGDgHLihnHBwuGzMLLBgqU',
|
|
332
|
-
'Bwv0yq',
|
|
333
|
-
'C3vJy2vZCW',
|
|
334
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
335
|
-
'AxnbCNjHEq',
|
|
336
|
-
'zgvJAxnPB25Z',
|
|
337
|
-
'yMXVy2TLza',
|
|
338
|
-
'yM9KEu1HCMTKB3DU',
|
|
339
|
-
'kgXLz2fJEsK',
|
|
340
|
-
'z2v0u2vJB25KCW',
|
|
341
|
-
'DxbKyxrL',
|
|
342
|
-
'AxngAw5PDgu',
|
|
343
|
-
'C2f2zq',
|
|
344
|
-
'lIbnzxnZywDLieLeoIa',
|
|
345
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
346
|
-
'zxHWAxjLC0f0',
|
|
347
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
348
|
-
'zgvSzxrL',
|
|
349
|
-
'BgvUz3rO',
|
|
350
|
-
'ig1ZzZ0',
|
|
351
|
-
'DgfZA3m',
|
|
352
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
353
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
354
|
-
'C2vX',
|
|
355
|
-
'y2fJAgveAxi',
|
|
356
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
357
|
-
'Axnoyu4',
|
|
358
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
359
|
-
'ywjVCNq',
|
|
360
|
-
'AhvTyw4'
|
|
361
|
-
];
|
|
362
|
-
_0x4815 = function () {
|
|
363
|
-
return _0x55c44d;
|
|
364
|
-
};
|
|
365
|
-
return _0x4815();
|
|
366
|
-
}
|
|
367
|
-
(function (_0x10c2ef, _0x520f64) {
|
|
368
|
-
const _0x20511d = {
|
|
369
|
-
_0x2fe541: 0x2e9,
|
|
370
|
-
_0x302b0b: 0x27e,
|
|
371
|
-
_0x5b1ca9: 0x299
|
|
372
|
-
}, _0x2693d4 = _0x57a3, _0x480998 = _0x10c2ef();
|
|
1
|
+
const _0x2c1aa0 = _0x3278;
|
|
2
|
+
(function (_0x48947a, _0x192444) {
|
|
3
|
+
const _0x11ab32 = {
|
|
4
|
+
_0x4a2b0a: 0x286,
|
|
5
|
+
_0xdfa43a: 0x199,
|
|
6
|
+
_0x420e9e: 0x1d9
|
|
7
|
+
}, _0x5c7a70 = _0x3278, _0x2e1d8e = _0x48947a();
|
|
373
8
|
while (!![]) {
|
|
374
9
|
try {
|
|
375
|
-
const
|
|
376
|
-
if (
|
|
10
|
+
const _0x36ae61 = -parseInt(_0x5c7a70(_0x11ab32._0x4a2b0a)) / 0x1 * (parseInt(_0x5c7a70(0x265)) / 0x2) + -parseInt(_0x5c7a70(0x284)) / 0x3 * (parseInt(_0x5c7a70(0x233)) / 0x4) + -parseInt(_0x5c7a70(0x29c)) / 0x5 * (-parseInt(_0x5c7a70(_0x11ab32._0xdfa43a)) / 0x6) + parseInt(_0x5c7a70(0x1c5)) / 0x7 + -parseInt(_0x5c7a70(0x207)) / 0x8 + -parseInt(_0x5c7a70(0x1ac)) / 0x9 * (-parseInt(_0x5c7a70(_0x11ab32._0x420e9e)) / 0xa) + -parseInt(_0x5c7a70(0x192)) / 0xb;
|
|
11
|
+
if (_0x36ae61 === _0x192444)
|
|
377
12
|
break;
|
|
378
13
|
else
|
|
379
|
-
|
|
380
|
-
} catch (
|
|
381
|
-
|
|
14
|
+
_0x2e1d8e['push'](_0x2e1d8e['shift']());
|
|
15
|
+
} catch (_0x3bb25a) {
|
|
16
|
+
_0x2e1d8e['push'](_0x2e1d8e['shift']());
|
|
382
17
|
}
|
|
383
18
|
}
|
|
384
|
-
}(
|
|
19
|
+
}(_0x5c8c, 0xcc090));
|
|
385
20
|
import { pathToFileURL } from 'node:url';
|
|
386
21
|
import {
|
|
387
22
|
mkdir,
|
|
@@ -391,78 +26,80 @@ import {
|
|
|
391
26
|
writeFile
|
|
392
27
|
} from 'node:fs/promises';
|
|
393
28
|
import { homedir } from 'node:os';
|
|
394
|
-
import
|
|
29
|
+
import _0x3efa53 from 'node:path';
|
|
395
30
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
396
|
-
'.csv':
|
|
397
|
-
'.gif':
|
|
398
|
-
'.jpeg':
|
|
399
|
-
'.jpg':
|
|
400
|
-
'.json':
|
|
401
|
-
'.md':
|
|
402
|
-
'.pdf':
|
|
403
|
-
'.png':
|
|
404
|
-
'.svg':
|
|
405
|
-
'.txt':
|
|
406
|
-
'.webp':
|
|
407
|
-
'.xml':
|
|
408
|
-
'.zip':
|
|
31
|
+
'.csv': _0x2c1aa0(0x238),
|
|
32
|
+
'.gif': _0x2c1aa0(0x1b8),
|
|
33
|
+
'.jpeg': _0x2c1aa0(0x25a),
|
|
34
|
+
'.jpg': _0x2c1aa0(0x25a),
|
|
35
|
+
'.json': 'application/json',
|
|
36
|
+
'.md': _0x2c1aa0(0x183),
|
|
37
|
+
'.pdf': _0x2c1aa0(0x27c),
|
|
38
|
+
'.png': 'image/png',
|
|
39
|
+
'.svg': _0x2c1aa0(0x2a3),
|
|
40
|
+
'.txt': _0x2c1aa0(0x242),
|
|
41
|
+
'.webp': _0x2c1aa0(0x204),
|
|
42
|
+
'.xml': _0x2c1aa0(0x1f3),
|
|
43
|
+
'.zip': 'application/zip'
|
|
409
44
|
};
|
|
410
|
-
function guessContentType(
|
|
411
|
-
const
|
|
412
|
-
return MIME_BY_EXTENSION[
|
|
45
|
+
function guessContentType(_0x49b2f1) {
|
|
46
|
+
const _0x304a84 = _0x2c1aa0;
|
|
47
|
+
return MIME_BY_EXTENSION[_0x3efa53['extname'](_0x49b2f1)[_0x304a84(0x1bc)]()] ?? _0x304a84(0x168);
|
|
413
48
|
}
|
|
414
|
-
function safeFilename(
|
|
415
|
-
|
|
416
|
-
return _0x1dd6f5[_0xd123c6(0x269)](/[\\/]/g, '-');
|
|
49
|
+
function safeFilename(_0x580fb6) {
|
|
50
|
+
return _0x580fb6['replace'](/[\\/]/g, '-');
|
|
417
51
|
}
|
|
418
|
-
function extensionFor(
|
|
419
|
-
const
|
|
420
|
-
|
|
52
|
+
function extensionFor(_0x32b5ca) {
|
|
53
|
+
const _0x58d089 = {
|
|
54
|
+
_0x40c75a: 0x1a4,
|
|
55
|
+
_0x372251: 0x157
|
|
56
|
+
}, _0x4a5a9d = _0x2c1aa0, _0x137e31 = Object[_0x4a5a9d(0x180)](MIME_BY_EXTENSION)[_0x4a5a9d(_0x58d089._0x40c75a)](([, _0x383686]) => _0x383686 === _0x32b5ca);
|
|
57
|
+
return _0x137e31?.[0x0] ?? _0x4a5a9d(_0x58d089._0x372251);
|
|
421
58
|
}
|
|
422
|
-
async function prepareUploadFile(
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
const _0x51aec2 = await readFile(_0x466ad2), _0xc3864a = _0x137735[_0x5c7b8f(0x210)](_0x466ad2);
|
|
59
|
+
async function prepareUploadFile(_0x3bd2af, _0x147084 = {}) {
|
|
60
|
+
const _0x1bcf63 = {
|
|
61
|
+
_0xdf7074: 0x27f,
|
|
62
|
+
_0x22a8e3: 0x218,
|
|
63
|
+
_0x4ba6a3: 0x276,
|
|
64
|
+
_0x1bfa62: 0x1e7
|
|
65
|
+
}, _0x18f57a = _0x2c1aa0;
|
|
66
|
+
if (!_0x3efa53[_0x18f57a(_0x1bcf63._0xdf7074)](_0x3bd2af))
|
|
67
|
+
throw new Error(_0x18f57a(0x28f));
|
|
68
|
+
const _0x3502d1 = await stat(_0x3bd2af)['catch'](() => null);
|
|
69
|
+
if (!_0x3502d1 || !_0x3502d1[_0x18f57a(0x285)]())
|
|
70
|
+
throw new Error('File\x20not\x20found:\x20' + _0x3bd2af);
|
|
71
|
+
const _0x2271e1 = _0x147084[_0x18f57a(0x19a)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
72
|
+
if (_0x3502d1[_0x18f57a(0x1e7)] > _0x2271e1)
|
|
73
|
+
throw new Error(_0x18f57a(_0x1bcf63._0x22a8e3) + _0x3502d1['size']);
|
|
74
|
+
const _0xe8e09e = await readFile(_0x3bd2af), _0x40aa1d = _0x3efa53[_0x18f57a(_0x1bcf63._0x4ba6a3)](_0x3bd2af);
|
|
439
75
|
return {
|
|
440
|
-
'contentBase64':
|
|
441
|
-
'contentType': guessContentType(
|
|
442
|
-
'filename':
|
|
443
|
-
'sizeBytes':
|
|
76
|
+
'contentBase64': _0xe8e09e[_0x18f57a(0x196)](_0x18f57a(0x26a)),
|
|
77
|
+
'contentType': guessContentType(_0x40aa1d),
|
|
78
|
+
'filename': _0x40aa1d,
|
|
79
|
+
'sizeBytes': _0x3502d1[_0x18f57a(_0x1bcf63._0x1bfa62)]
|
|
444
80
|
};
|
|
445
81
|
}
|
|
446
|
-
function createAttachmentCache(
|
|
447
|
-
const
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
82
|
+
function createAttachmentCache(_0x4cf8f9 = {}) {
|
|
83
|
+
const _0xfa2ad4 = { _0x20f983: 0x2a9 }, _0x3e86ba = {
|
|
84
|
+
_0x436686: 0x25f,
|
|
85
|
+
_0x25573e: 0x2a4
|
|
86
|
+
}, _0x1cc298 = {
|
|
87
|
+
_0x42f088: 0x1a4,
|
|
88
|
+
_0x586322: 0x229
|
|
89
|
+
}, _0x34c7ed = _0x2c1aa0, _0x58d9a3 = _0x4cf8f9[_0x34c7ed(0x16c)] ?? _0x3efa53[_0x34c7ed(0x229)](homedir(), _0x34c7ed(_0xfa2ad4._0x20f983), 'attachments');
|
|
453
90
|
return {
|
|
454
|
-
'cacheDir':
|
|
455
|
-
async 'findCachedPath'(
|
|
456
|
-
const
|
|
457
|
-
await mkdir(
|
|
458
|
-
const
|
|
459
|
-
return
|
|
91
|
+
'cacheDir': _0x58d9a3,
|
|
92
|
+
async 'findCachedPath'(_0x17ed81) {
|
|
93
|
+
const _0x4e5439 = _0x34c7ed;
|
|
94
|
+
await mkdir(_0x58d9a3, { 'recursive': !![] });
|
|
95
|
+
const _0xe3779c = await readdir(_0x58d9a3), _0x2335a6 = _0xe3779c[_0x4e5439(_0x1cc298._0x42f088)](_0x3cb14e => _0x3cb14e[_0x4e5439(0x1c8)](_0x17ed81 + '-') || _0x3cb14e[_0x4e5439(0x1c8)](_0x17ed81));
|
|
96
|
+
return _0x2335a6 ? _0x3efa53[_0x4e5439(_0x1cc298._0x586322)](_0x58d9a3, _0x2335a6) : null;
|
|
460
97
|
},
|
|
461
|
-
async 'save'(
|
|
462
|
-
const
|
|
463
|
-
await mkdir(
|
|
464
|
-
const
|
|
465
|
-
return await writeFile(
|
|
98
|
+
async 'save'(_0x37d1a4) {
|
|
99
|
+
const _0x2f6468 = _0x34c7ed;
|
|
100
|
+
await mkdir(_0x58d9a3, { 'recursive': !![] });
|
|
101
|
+
const _0x25c1b5 = _0x37d1a4[_0x2f6468(0x245)]?.[_0x2f6468(_0x3e86ba._0x436686)]() ? safeFilename(_0x37d1a4[_0x2f6468(0x245)]) : '' + _0x37d1a4['attachmentId'] + extensionFor(_0x37d1a4['contentType']), _0x234f76 = _0x3efa53[_0x2f6468(0x229)](_0x58d9a3, _0x37d1a4[_0x2f6468(_0x3e86ba._0x25573e)] + '-' + _0x25c1b5);
|
|
102
|
+
return await writeFile(_0x234f76, _0x37d1a4[_0x2f6468(0x186)]), _0x234f76;
|
|
466
103
|
}
|
|
467
104
|
};
|
|
468
105
|
}
|
|
@@ -470,1621 +107,2063 @@ import {
|
|
|
470
107
|
createHash,
|
|
471
108
|
randomUUID
|
|
472
109
|
} from 'node:crypto';
|
|
473
|
-
function _0x57a3(_0x57a3d5, _0x1bd24b) {
|
|
474
|
-
_0x57a3d5 = _0x57a3d5 - 0x1be;
|
|
475
|
-
const _0x4815d3 = _0x4815();
|
|
476
|
-
let _0x57a33f = _0x4815d3[_0x57a3d5];
|
|
477
|
-
if (_0x57a3['kpWwml'] === undefined) {
|
|
478
|
-
var _0x4d4548 = function (_0x41e9fd) {
|
|
479
|
-
const _0x274f24 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
480
|
-
let _0x137735 = '', _0x95a16a = '';
|
|
481
|
-
for (let _0x1dd6f5 = 0x0, _0x1226ad, _0x28a60c, _0x2a272d = 0x0; _0x28a60c = _0x41e9fd['charAt'](_0x2a272d++); ~_0x28a60c && (_0x1226ad = _0x1dd6f5 % 0x4 ? _0x1226ad * 0x40 + _0x28a60c : _0x28a60c, _0x1dd6f5++ % 0x4) ? _0x137735 += String['fromCharCode'](0xff & _0x1226ad >> (-0x2 * _0x1dd6f5 & 0x6)) : 0x0) {
|
|
482
|
-
_0x28a60c = _0x274f24['indexOf'](_0x28a60c);
|
|
483
|
-
}
|
|
484
|
-
for (let _0x466ad2 = 0x0, _0x2fb13e = _0x137735['length']; _0x466ad2 < _0x2fb13e; _0x466ad2++) {
|
|
485
|
-
_0x95a16a += '%' + ('00' + _0x137735['charCodeAt'](_0x466ad2)['toString'](0x10))['slice'](-0x2);
|
|
486
|
-
}
|
|
487
|
-
return decodeURIComponent(_0x95a16a);
|
|
488
|
-
};
|
|
489
|
-
_0x57a3['XrSkUE'] = _0x4d4548, _0x57a3['RsGOze'] = {}, _0x57a3['kpWwml'] = !![];
|
|
490
|
-
}
|
|
491
|
-
const _0x95b873 = _0x4815d3[0x0], _0x5858ba = _0x57a3d5 + _0x95b873, _0x45c4ef = _0x57a3['RsGOze'][_0x5858ba];
|
|
492
|
-
return !_0x45c4ef ? (_0x57a33f = _0x57a3['XrSkUE'](_0x57a33f), _0x57a3['RsGOze'][_0x5858ba] = _0x57a33f) : _0x57a33f = _0x45c4ef, _0x57a33f;
|
|
493
|
-
}
|
|
494
110
|
var UNSUPPORTED_TARGET_MESSAGE = 'Unsupported\x20target\x20format.\x20Supported\x20values\x20are\x20#channel,\x20dm:dm-<name>,\x20and\x20their\x20thread\x20targets.';
|
|
495
|
-
function ensureSegment(
|
|
496
|
-
const
|
|
497
|
-
if (!
|
|
111
|
+
function ensureSegment(_0x2f305f) {
|
|
112
|
+
const _0x3cbd76 = { _0x516a78: 0x25f }, _0xf3266c = _0x2c1aa0, _0x519330 = _0x2f305f[_0xf3266c(_0x3cbd76._0x516a78)]();
|
|
113
|
+
if (!_0x519330 || _0x519330[_0xf3266c(0x1a3)](':'))
|
|
498
114
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
499
|
-
return
|
|
115
|
+
return _0x519330;
|
|
500
116
|
}
|
|
501
|
-
function parseThreadParts(
|
|
502
|
-
const
|
|
503
|
-
if (
|
|
117
|
+
function parseThreadParts(_0x8804c9) {
|
|
118
|
+
const _0x11078b = _0x2c1aa0, _0x2c915d = _0x8804c9[_0x11078b(0x231)](':');
|
|
119
|
+
if (_0x2c915d[_0x11078b(0x282)] < 0x1 || _0x2c915d[_0x11078b(0x282)] > 0x2)
|
|
504
120
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
505
121
|
return {
|
|
506
|
-
'channelName': ensureSegment(
|
|
507
|
-
'threadShortId':
|
|
122
|
+
'channelName': ensureSegment(_0x2c915d[0x0] ?? ''),
|
|
123
|
+
'threadShortId': _0x2c915d[0x1] ? ensureSegment(_0x2c915d[0x1]) : null
|
|
508
124
|
};
|
|
509
125
|
}
|
|
510
|
-
function parseTarget(
|
|
511
|
-
const
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
_0xdd8fa9: 0x2bd,
|
|
522
|
-
_0x309e75: 0x31b,
|
|
523
|
-
_0x312d98: 0x215
|
|
524
|
-
}, _0x1fe1ff = _0xa1982e, _0x148ec3 = _0x50db9c[_0x1fe1ff(0x2b7)]();
|
|
525
|
-
if (!_0x148ec3)
|
|
126
|
+
function parseTarget(_0x1da91c) {
|
|
127
|
+
const _0x42be43 = {
|
|
128
|
+
_0x5250c1: 0x1c8,
|
|
129
|
+
_0x2b8545: 0x225,
|
|
130
|
+
_0x4961b0: 0x170,
|
|
131
|
+
_0x20b745: 0x170,
|
|
132
|
+
_0x5cc06b: 0x133,
|
|
133
|
+
_0x46551b: 0x2a7,
|
|
134
|
+
_0x4ad0a8: 0x24c
|
|
135
|
+
}, _0x400859 = _0x2c1aa0, _0x5cc29a = _0x1da91c['trim']();
|
|
136
|
+
if (!_0x5cc29a)
|
|
526
137
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
527
|
-
if (
|
|
528
|
-
const
|
|
529
|
-
if (!
|
|
138
|
+
if (_0x5cc29a[_0x400859(_0x42be43._0x5250c1)]('#')) {
|
|
139
|
+
const _0x458d07 = parseThreadParts(_0x5cc29a[_0x400859(_0x42be43._0x2b8545)](0x1)), _0x1afddf = '#' + _0x458d07[_0x400859(_0x42be43._0x4961b0)];
|
|
140
|
+
if (!_0x458d07[_0x400859(0x24c)])
|
|
530
141
|
return {
|
|
531
|
-
'channelName':
|
|
532
|
-
'channelTarget':
|
|
533
|
-
'kind':
|
|
534
|
-
'target':
|
|
142
|
+
'channelName': _0x458d07[_0x400859(_0x42be43._0x4961b0)],
|
|
143
|
+
'channelTarget': _0x1afddf,
|
|
144
|
+
'kind': 'channel',
|
|
145
|
+
'target': _0x1afddf
|
|
535
146
|
};
|
|
536
147
|
return {
|
|
537
|
-
'channelName':
|
|
538
|
-
'channelTarget':
|
|
539
|
-
'kind':
|
|
540
|
-
'target':
|
|
541
|
-
'threadShortId':
|
|
148
|
+
'channelName': _0x458d07[_0x400859(_0x42be43._0x20b745)],
|
|
149
|
+
'channelTarget': _0x1afddf,
|
|
150
|
+
'kind': _0x400859(_0x42be43._0x5cc06b),
|
|
151
|
+
'target': _0x1afddf + ':' + _0x458d07[_0x400859(0x24c)],
|
|
152
|
+
'threadShortId': _0x458d07['threadShortId']
|
|
542
153
|
};
|
|
543
154
|
}
|
|
544
|
-
if (
|
|
545
|
-
const
|
|
546
|
-
if (!
|
|
155
|
+
if (_0x5cc29a[_0x400859(_0x42be43._0x5250c1)](_0x400859(0x22c))) {
|
|
156
|
+
const _0x5f2132 = parseThreadParts(_0x5cc29a['slice'](0x3));
|
|
157
|
+
if (!_0x5f2132['channelName'][_0x400859(_0x42be43._0x5250c1)](_0x400859(_0x42be43._0x46551b)))
|
|
547
158
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
548
|
-
const
|
|
549
|
-
if (!
|
|
159
|
+
const _0x3eed33 = _0x400859(0x22c) + _0x5f2132[_0x400859(0x170)];
|
|
160
|
+
if (!_0x5f2132[_0x400859(0x24c)])
|
|
550
161
|
return {
|
|
551
|
-
'channelName':
|
|
552
|
-
'channelTarget':
|
|
553
|
-
'kind':
|
|
554
|
-
'target':
|
|
162
|
+
'channelName': _0x5f2132[_0x400859(0x170)],
|
|
163
|
+
'channelTarget': _0x3eed33,
|
|
164
|
+
'kind': 'channel',
|
|
165
|
+
'target': _0x3eed33
|
|
555
166
|
};
|
|
556
167
|
return {
|
|
557
|
-
'channelName':
|
|
558
|
-
'channelTarget':
|
|
559
|
-
'kind':
|
|
560
|
-
'target':
|
|
561
|
-
'threadShortId':
|
|
168
|
+
'channelName': _0x5f2132[_0x400859(_0x42be43._0x20b745)],
|
|
169
|
+
'channelTarget': _0x3eed33,
|
|
170
|
+
'kind': _0x400859(0x133),
|
|
171
|
+
'target': _0x3eed33 + ':' + _0x5f2132[_0x400859(_0x42be43._0x4ad0a8)],
|
|
172
|
+
'threadShortId': _0x5f2132[_0x400859(_0x42be43._0x4ad0a8)]
|
|
562
173
|
};
|
|
563
174
|
}
|
|
564
175
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
565
176
|
}
|
|
566
|
-
function asErrorMessage(
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
return _0x4f2dba;
|
|
177
|
+
function asErrorMessage(_0x546c5c, _0x45f682) {
|
|
178
|
+
if (typeof _0x546c5c === 'string' && _0x546c5c['trim']())
|
|
179
|
+
return _0x546c5c;
|
|
180
|
+
return _0x45f682;
|
|
571
181
|
}
|
|
572
|
-
function asRecord(
|
|
573
|
-
|
|
574
|
-
return typeof _0x474105 === _0x59c6a6(0x206) && _0x474105 !== null ? _0x474105 : {};
|
|
182
|
+
function asRecord(_0xc66a99) {
|
|
183
|
+
return typeof _0xc66a99 === 'object' && _0xc66a99 !== null ? _0xc66a99 : {};
|
|
575
184
|
}
|
|
576
|
-
function stableStringify(
|
|
577
|
-
const
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}, _0x208ace = _0xa1982e;
|
|
585
|
-
if (_0x55385f === null || typeof _0x55385f !== _0x208ace(_0x3d345e._0x464b11))
|
|
586
|
-
return JSON[_0x208ace(_0x3d345e._0x1e2324)](_0x55385f);
|
|
587
|
-
if (Array[_0x208ace(_0x3d345e._0x109f4f)](_0x55385f))
|
|
588
|
-
return '[' + _0x55385f[_0x208ace(_0x3d345e._0x78ead8)](_0x2e51be => stableStringify(_0x2e51be))[_0x208ace(_0x3d345e._0x2dd490)](',') + ']';
|
|
589
|
-
const _0x218007 = Object[_0x208ace(0x1db)](_0x55385f)['filter'](([, _0x30818c]) => _0x30818c !== void 0x0)['sort'](([_0x4dcbeb], [_0x5ade02]) => _0x4dcbeb[_0x208ace(0x2b5)](_0x5ade02))[_0x208ace(_0x3d345e._0x78ead8)](([_0x3f608a, _0x26968c]) => JSON['stringify'](_0x3f608a) + ':' + stableStringify(_0x26968c));
|
|
590
|
-
return '{' + _0x218007[_0x208ace(_0x3d345e._0x43ad15)](',') + '}';
|
|
185
|
+
function stableStringify(_0x9a62c1) {
|
|
186
|
+
const _0x50ffa2 = { _0x4813cd: 0x229 }, _0x282935 = _0x2c1aa0;
|
|
187
|
+
if (_0x9a62c1 === null || typeof _0x9a62c1 !== _0x282935(0x1fe))
|
|
188
|
+
return JSON[_0x282935(0x29a)](_0x9a62c1);
|
|
189
|
+
if (Array[_0x282935(0x249)](_0x9a62c1))
|
|
190
|
+
return '[' + _0x9a62c1['map'](_0x12936d => stableStringify(_0x12936d))['join'](',') + ']';
|
|
191
|
+
const _0x45463d = Object['entries'](_0x9a62c1)['filter'](([, _0xc2aa3]) => _0xc2aa3 !== void 0x0)[_0x282935(0x148)](([_0x15b834], [_0x412027]) => _0x15b834['localeCompare'](_0x412027))['map'](([_0x2402aa, _0x541eaf]) => JSON[_0x282935(0x29a)](_0x2402aa) + ':' + stableStringify(_0x541eaf));
|
|
192
|
+
return '{' + _0x45463d[_0x282935(_0x50ffa2._0x4813cd)](',') + '}';
|
|
591
193
|
}
|
|
592
|
-
function createHeaders(
|
|
194
|
+
function createHeaders(_0x29f83e) {
|
|
195
|
+
const _0x42b598 = { _0x11aa76: 0x146 }, _0x33572f = _0x2c1aa0;
|
|
593
196
|
return {
|
|
594
|
-
'Content-Type':
|
|
595
|
-
'x-daemon-api-key':
|
|
197
|
+
'Content-Type': _0x33572f(_0x42b598._0x11aa76),
|
|
198
|
+
'x-daemon-api-key': _0x29f83e
|
|
596
199
|
};
|
|
597
200
|
}
|
|
598
|
-
function toHttpBaseUrl(
|
|
599
|
-
const
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
_0x4bdddb[_0x5ed3e6(_0x4da750._0x40b2b1)] = 'http:';
|
|
201
|
+
function toHttpBaseUrl(_0x83e0d0) {
|
|
202
|
+
const _0x378653 = {
|
|
203
|
+
_0x498a35: 0x1dd,
|
|
204
|
+
_0x116c49: 0x24b,
|
|
205
|
+
_0x444c24: 0x179
|
|
206
|
+
}, _0x31f493 = _0x2c1aa0, _0x4fa638 = new URL(_0x83e0d0);
|
|
207
|
+
if (_0x4fa638['protocol'] === 'ws:')
|
|
208
|
+
_0x4fa638[_0x31f493(_0x378653._0x498a35)] = _0x31f493(_0x378653._0x116c49);
|
|
607
209
|
else
|
|
608
|
-
|
|
609
|
-
return
|
|
210
|
+
_0x4fa638['protocol'] === _0x31f493(_0x378653._0x444c24) && (_0x4fa638['protocol'] = 'https:');
|
|
211
|
+
return _0x4fa638['toString']()[_0x31f493(0x19c)](/\/$/, '');
|
|
610
212
|
}
|
|
611
|
-
function isMentionBoundary(
|
|
612
|
-
const
|
|
613
|
-
return !
|
|
213
|
+
function isMentionBoundary(_0xf37b3) {
|
|
214
|
+
const _0x45473b = { _0xbb87ca: 0x1b3 }, _0x50c026 = _0x2c1aa0;
|
|
215
|
+
return !_0xf37b3 || /\s|[([{'",。!?、:;]/[_0x50c026(_0x45473b._0xbb87ca)](_0xf37b3);
|
|
614
216
|
}
|
|
615
|
-
function isMentionTerminal(
|
|
616
|
-
|
|
217
|
+
function isMentionTerminal(_0x107824) {
|
|
218
|
+
const _0x4e379a = _0x2c1aa0;
|
|
219
|
+
return !_0x107824 || /\s|[)\]}'",。!?、:;,.!?]/[_0x4e379a(0x1b3)](_0x107824);
|
|
617
220
|
}
|
|
618
|
-
function extractMentionedParticipantIds(
|
|
619
|
-
const
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
'displayNameLower': _0x352216[_0x40cf9d(0x20c)][_0x40cf9d(0x252)](),
|
|
636
|
-
'participantId': _0x352216['id']
|
|
637
|
-
}))[_0x40cf9d(_0x14a9f2._0x55931e)]((_0x2a82d5, _0x45ebe2) => _0x45ebe2[_0x40cf9d(0x28a)][_0x40cf9d(0x238)] - _0x2a82d5['displayName']['length']), _0x30714f = [], _0x5bb9f8 = new Set();
|
|
638
|
-
for (let _0x141386 = 0x0; _0x141386 < _0x2cd2fd['length']; _0x141386 += 0x1) {
|
|
639
|
-
if (_0x2cd2fd[_0x141386] !== '@' || !isMentionBoundary(_0x2cd2fd[_0x141386 - 0x1]))
|
|
221
|
+
function extractMentionedParticipantIds(_0x36e07c, _0x4cd1a9) {
|
|
222
|
+
const _0x5cb448 = {
|
|
223
|
+
_0x14b1ab: 0x1cf,
|
|
224
|
+
_0x4f0a4d: 0x212,
|
|
225
|
+
_0x5a043b: 0x282,
|
|
226
|
+
_0x3a7567: 0x25e,
|
|
227
|
+
_0x4c081c: 0x20c
|
|
228
|
+
}, _0x10b4bc = { _0x5311b4: 0x1a7 }, _0x59e242 = _0x2c1aa0, _0x14b2f4 = [
|
|
229
|
+
..._0x4cd1a9['agents'],
|
|
230
|
+
..._0x4cd1a9[_0x59e242(_0x5cb448._0x14b1ab)]
|
|
231
|
+
][_0x59e242(_0x5cb448._0x4f0a4d)](_0x242ee1 => ({
|
|
232
|
+
'displayName': _0x242ee1[_0x59e242(0x16e)],
|
|
233
|
+
'displayNameLower': _0x242ee1[_0x59e242(0x16e)][_0x59e242(0x25e)](),
|
|
234
|
+
'participantId': _0x242ee1['id']
|
|
235
|
+
}))[_0x59e242(0x148)]((_0x2fbcb0, _0x365411) => _0x365411[_0x59e242(0x1a7)][_0x59e242(0x282)] - _0x2fbcb0['displayName'][_0x59e242(0x282)]), _0x2f699d = [], _0x27267a = new Set();
|
|
236
|
+
for (let _0x5a86ca = 0x0; _0x5a86ca < _0x36e07c[_0x59e242(_0x5cb448._0x5a043b)]; _0x5a86ca += 0x1) {
|
|
237
|
+
if (_0x36e07c[_0x5a86ca] !== '@' || !isMentionBoundary(_0x36e07c[_0x5a86ca - 0x1]))
|
|
640
238
|
continue;
|
|
641
|
-
const
|
|
642
|
-
const
|
|
643
|
-
if (!
|
|
239
|
+
const _0x54e7ea = _0x36e07c[_0x59e242(0x225)](_0x5a86ca + 0x1), _0x1df1d5 = _0x54e7ea[_0x59e242(_0x5cb448._0x3a7567)](), _0x231022 = _0x14b2f4[_0x59e242(0x1a4)](_0x4d440b => {
|
|
240
|
+
const _0x943596 = _0x59e242;
|
|
241
|
+
if (!_0x1df1d5[_0x943596(0x1c8)](_0x4d440b['displayNameLower']))
|
|
644
242
|
return ![];
|
|
645
|
-
return isMentionTerminal(
|
|
243
|
+
return isMentionTerminal(_0x54e7ea[_0x4d440b[_0x943596(_0x10b4bc._0x5311b4)][_0x943596(0x282)]]);
|
|
646
244
|
});
|
|
647
|
-
if (!
|
|
245
|
+
if (!_0x231022 || _0x27267a[_0x59e242(0x1b0)](_0x231022['participantId']))
|
|
648
246
|
continue;
|
|
649
|
-
|
|
247
|
+
_0x27267a['add'](_0x231022[_0x59e242(0x20c)]), _0x2f699d[_0x59e242(0x1c2)](_0x231022[_0x59e242(_0x5cb448._0x4c081c)]), _0x5a86ca += _0x231022['displayName'][_0x59e242(_0x5cb448._0x5a043b)];
|
|
650
248
|
}
|
|
651
|
-
return
|
|
249
|
+
return _0x2f699d;
|
|
652
250
|
}
|
|
653
251
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
654
|
-
function anySignal(...
|
|
655
|
-
const
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
_0x53f921[_0x26637a(_0x56af6b._0x3db92b)](_0x26637a(_0x56af6b._0x42b2e0), () => _0x279c70[_0x26637a(0x242)](_0x53f921[_0x26637a(0x29d)]), {
|
|
252
|
+
function anySignal(..._0x245111) {
|
|
253
|
+
const _0x5429fb = {
|
|
254
|
+
_0x1c96cd: 0x190,
|
|
255
|
+
_0x5b9e37: 0x162
|
|
256
|
+
}, _0xaaf54f = _0x2c1aa0, _0x238c24 = new AbortController();
|
|
257
|
+
for (const _0x4aa134 of _0x245111) {
|
|
258
|
+
if (_0x4aa134['aborted'])
|
|
259
|
+
return _0x238c24[_0xaaf54f(0x142)](_0x4aa134[_0xaaf54f(0x143)]), _0x238c24[_0xaaf54f(_0x5429fb._0x1c96cd)];
|
|
260
|
+
_0x4aa134[_0xaaf54f(_0x5429fb._0x5b9e37)](_0xaaf54f(0x142), () => _0x238c24[_0xaaf54f(0x142)](_0x4aa134[_0xaaf54f(0x143)]), {
|
|
664
261
|
'once': !![],
|
|
665
|
-
'signal':
|
|
262
|
+
'signal': _0x238c24['signal']
|
|
666
263
|
});
|
|
667
264
|
}
|
|
668
|
-
return
|
|
265
|
+
return _0x238c24[_0xaaf54f(_0x5429fb._0x1c96cd)];
|
|
669
266
|
}
|
|
670
|
-
function createInternalAgentClient(
|
|
671
|
-
const
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
},
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
},
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
},
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
267
|
+
function createInternalAgentClient(_0x15df81) {
|
|
268
|
+
const _0x3b61c7 = {
|
|
269
|
+
_0x1c896c: 0x17e,
|
|
270
|
+
_0x17bf3e: 0x16d,
|
|
271
|
+
_0x3fc2a1: 0x25b,
|
|
272
|
+
_0x1ed57f: 0x13b
|
|
273
|
+
}, _0x3b8add = {
|
|
274
|
+
_0x22c141: 0x257,
|
|
275
|
+
_0x81bca: 0x1c7,
|
|
276
|
+
_0x553d8c: 0x253,
|
|
277
|
+
_0x2dfaa1: 0x1f1,
|
|
278
|
+
_0x20a82a: 0x292,
|
|
279
|
+
_0x2d66d0: 0x282,
|
|
280
|
+
_0x564396: 0x28c,
|
|
281
|
+
_0x43106b: 0x23b,
|
|
282
|
+
_0x4bb6d0: 0x1d8,
|
|
283
|
+
_0x3d6035: 0x251,
|
|
284
|
+
_0x5f51dd: 0x29b,
|
|
285
|
+
_0x27fd6f: 0x295,
|
|
286
|
+
_0x113a37: 0x22c,
|
|
287
|
+
_0xc6747b: 0x212,
|
|
288
|
+
_0x52c51a: 0x225,
|
|
289
|
+
_0x420dfa: 0x203,
|
|
290
|
+
_0xdd3ec5: 0x1a0,
|
|
291
|
+
_0x5ac950: 0x1a6,
|
|
292
|
+
_0x4760c2: 0x1cd,
|
|
293
|
+
_0x302bf6: 0x1ec,
|
|
294
|
+
_0x548bff: 0x288,
|
|
295
|
+
_0x16db03: 0x21e
|
|
296
|
+
}, _0xe56201 = {
|
|
297
|
+
_0x4a9ca8: 0x13c,
|
|
298
|
+
_0x2545a3: 0x29f,
|
|
299
|
+
_0x540b2d: 0x23b,
|
|
300
|
+
_0x4a1ea5: 0x219
|
|
301
|
+
}, _0x1a3315 = {
|
|
302
|
+
_0x45b63d: 0x13d,
|
|
303
|
+
_0x1de007: 0x190,
|
|
304
|
+
_0x3afbff: 0x29d,
|
|
305
|
+
_0x48394c: 0x295,
|
|
306
|
+
_0x249058: 0x273,
|
|
307
|
+
_0x55a14f: 0x168,
|
|
308
|
+
_0x37913c: 0x186
|
|
309
|
+
}, _0x24433f = {
|
|
310
|
+
_0x1232a0: 0x1d8,
|
|
311
|
+
_0x6c4748: 0x213,
|
|
312
|
+
_0x9da715: 0x260,
|
|
313
|
+
_0x5d8133: 0x29a,
|
|
314
|
+
_0x13eca1: 0x219,
|
|
315
|
+
_0x2b6cd9: 0x29d,
|
|
316
|
+
_0x5b66b8: 0x1d3,
|
|
317
|
+
_0x1824f5: 0x186,
|
|
318
|
+
_0x526134: 0x245,
|
|
319
|
+
_0x29191e: 0x1cc
|
|
320
|
+
}, _0x360498 = { _0x4865d0: 0x1d3 }, _0x1d036a = {
|
|
321
|
+
_0x29b3c1: 0x1c7,
|
|
322
|
+
_0x436698: 0x1b2,
|
|
323
|
+
_0x50b2c8: 0x29a
|
|
324
|
+
}, _0x840d99 = {
|
|
325
|
+
_0x2a8d1e: 0x1c7,
|
|
326
|
+
_0x53abc9: 0x29a,
|
|
327
|
+
_0x1576f4: 0x234,
|
|
328
|
+
_0x5893c0: 0x1d3
|
|
329
|
+
}, _0x5a9e9a = {
|
|
330
|
+
_0x1d145b: 0x220,
|
|
331
|
+
_0x25edcd: 0x222
|
|
332
|
+
}, _0x592885 = {
|
|
333
|
+
_0x9671be: 0x257,
|
|
334
|
+
_0x43a6be: 0x297,
|
|
335
|
+
_0x2bdd0f: 0x297,
|
|
336
|
+
_0x128dae: 0x152,
|
|
337
|
+
_0x1cdbcd: 0x1c7,
|
|
338
|
+
_0x8579d: 0x196
|
|
339
|
+
}, _0x137fec = {
|
|
340
|
+
_0x438979: 0x149,
|
|
341
|
+
_0x522367: 0x291,
|
|
342
|
+
_0x825988: 0x152
|
|
343
|
+
}, _0x1ef326 = {
|
|
344
|
+
_0x137d4f: 0x29a,
|
|
345
|
+
_0x2b0a7b: 0x1d7,
|
|
346
|
+
_0x2ecc15: 0x244
|
|
347
|
+
}, _0x680260 = { _0x1d239d: 0x214 }, _0x1150fd = {
|
|
348
|
+
_0xab993e: 0x1f0,
|
|
349
|
+
_0x2a5243: 0x186
|
|
350
|
+
}, _0x44da16 = {
|
|
351
|
+
_0x442793: 0x1e5,
|
|
352
|
+
_0x400abf: 0x29a,
|
|
353
|
+
_0x5bcadf: 0x165,
|
|
354
|
+
_0x420032: 0x282,
|
|
355
|
+
_0x26f217: 0x1d8,
|
|
356
|
+
_0x453443: 0x1d3
|
|
357
|
+
}, _0x4eb305 = {
|
|
358
|
+
_0x3c4438: 0x147,
|
|
359
|
+
_0x55336a: 0x1d8,
|
|
360
|
+
_0x3d3607: 0x23b,
|
|
361
|
+
_0x6701d7: 0x29f,
|
|
362
|
+
_0x377260: 0x29f,
|
|
363
|
+
_0x327d37: 0x13c,
|
|
364
|
+
_0x19612c: 0x257,
|
|
365
|
+
_0x4724de: 0x1e5,
|
|
366
|
+
_0x442038: 0x196,
|
|
367
|
+
_0x171f84: 0x221,
|
|
368
|
+
_0xea0526: 0x292
|
|
369
|
+
}, _0x496656 = { _0x1f5451: 0x22d }, _0x67e025 = { _0x5cb444: 0x22d }, _0x3656b3 = { _0x24866c: 0x26b }, _0x1cdfeb = {
|
|
370
|
+
_0x29ee9e: 0x176,
|
|
371
|
+
_0x32c437: 0x221,
|
|
372
|
+
_0x3b92b9: 0x186,
|
|
373
|
+
_0x19a06a: 0x1d8
|
|
374
|
+
}, _0x4c10a4 = { _0x3f4e2f: 0x289 }, _0xb4af7 = {
|
|
375
|
+
_0x800f03: 0x158,
|
|
376
|
+
_0x2e0d80: 0x152
|
|
377
|
+
}, _0x3472bd = {
|
|
378
|
+
_0x10deb4: 0x190,
|
|
379
|
+
_0x28a389: 0x190,
|
|
380
|
+
_0xf74332: 0x1cb
|
|
381
|
+
}, _0x14b23d = {
|
|
382
|
+
_0x508b6a: 0x1cd,
|
|
383
|
+
_0x3888b6: 0x18f,
|
|
384
|
+
_0x4ded7b: 0x1e4,
|
|
385
|
+
_0x3e6221: 0x17b,
|
|
386
|
+
_0x570768: 0x17a,
|
|
387
|
+
_0x2ce160: 0x15f
|
|
388
|
+
}, _0x1d42b4 = {
|
|
389
|
+
_0x38b532: 0x269,
|
|
390
|
+
_0x14b6b6: 0x25d,
|
|
391
|
+
_0x5af26e: 0x1d4
|
|
392
|
+
}, _0x924c53 = {
|
|
393
|
+
_0x55e5a5: 0x22a,
|
|
394
|
+
_0x54d1ed: 0x295,
|
|
395
|
+
_0xe008c: 0x20f,
|
|
396
|
+
_0x1eb765: 0x19c,
|
|
397
|
+
_0x1c69f0: 0x21a,
|
|
398
|
+
_0x3d76fd: 0x19e,
|
|
399
|
+
_0x590af6: 0x262,
|
|
400
|
+
_0x413d2b: 0x22a
|
|
401
|
+
}, _0x3d3503 = _0x2c1aa0, _0x16d437 = _0x15df81[_0x3d3503(0x1db)] ?? fetch, _0x4b63db = _0x15df81[_0x3d3503(_0x3b61c7._0x1c896c)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x2fca9b = typeof _0x15df81[_0x3d3503(0x16d)] === 'number' && _0x15df81[_0x3d3503(_0x3b61c7._0x17bf3e)] > 0x0 ? _0x15df81[_0x3d3503(0x16d)] : 0x0, _0x2021f5 = _0x15df81[_0x3d3503(_0x3b61c7._0x3fc2a1)]?.['trim']() || void 0x0, _0x7c89e7 = _0x15df81[_0x3d3503(0x14d)]?.[_0x3d3503(0x25f)]() || void 0x0, _0x21ebb6 = createHeaders(_0x15df81[_0x3d3503(0x28e)]), _0x2385c7 = toHttpBaseUrl(_0x15df81[_0x3d3503(_0x3b61c7._0x1ed57f)]);
|
|
402
|
+
let _0x5c9638 = null;
|
|
403
|
+
const _0x528dad = new Map();
|
|
404
|
+
let _0x37ead6 = _0x2fca9b, _0x2f0ebe = _0x2fca9b;
|
|
405
|
+
function _0x5c6191(_0x310355) {
|
|
406
|
+
const _0x503352 = _0x3d3503, _0x35b39e = _0x310355[_0x503352(_0x924c53._0x55e5a5)][_0x503352(0x259)][_0x503352(_0x924c53._0x54d1ed)]('content-type') ?? _0x503352(_0x924c53._0xe008c), _0x2877d9 = _0x310355['bodyText']['trim']()[_0x503352(_0x924c53._0x1eb765)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x503352(_0x924c53._0x1c69f0);
|
|
407
|
+
return _0x503352(_0x924c53._0x3d76fd) + _0x310355[_0x503352(0x211)] + _0x503352(_0x924c53._0x590af6) + _0x310355[_0x503352(_0x924c53._0x413d2b)][_0x503352(0x152)] + ',\x20content-type=' + _0x35b39e + ',\x20preview=' + _0x2877d9 + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
408
|
+
}
|
|
409
|
+
async function _0x11f6b1(_0x12da29, _0x2cd773) {
|
|
410
|
+
const _0x578f37 = _0x3d3503, _0x25670e = Buffer[_0x578f37(_0x1d42b4._0x38b532)](await _0x2cd773[_0x578f37(_0x1d42b4._0x14b6b6)]())['toString'](_0x578f37(_0x1d42b4._0x5af26e));
|
|
411
|
+
if (!_0x25670e[_0x578f37(0x25f)]())
|
|
806
412
|
return {};
|
|
807
|
-
|
|
413
|
+
try {
|
|
414
|
+
return JSON[_0x578f37(0x26e)](_0x25670e);
|
|
415
|
+
} catch {
|
|
416
|
+
throw new Error(_0x5c6191({
|
|
417
|
+
'bodyText': _0x25670e,
|
|
418
|
+
'requestUrl': _0x12da29,
|
|
419
|
+
'response': _0x2cd773
|
|
420
|
+
}));
|
|
421
|
+
}
|
|
808
422
|
}
|
|
809
|
-
function
|
|
810
|
-
const
|
|
811
|
-
if (
|
|
812
|
-
return
|
|
813
|
-
const
|
|
814
|
-
for (const [
|
|
815
|
-
|
|
423
|
+
function _0x2cdad2(_0x3ff742, _0x34dac9) {
|
|
424
|
+
const _0x360448 = _0x3d3503, _0x151dc1 = typeof _0x34dac9[_0x360448(0x18f)] === _0x360448(_0x14b23d._0x508b6a) ? _0x34dac9[_0x360448(_0x14b23d._0x3888b6)]['trim']() : '';
|
|
425
|
+
if (_0x151dc1)
|
|
426
|
+
return _0x151dc1;
|
|
427
|
+
const _0x41bb12 = Date[_0x360448(_0x14b23d._0x4ded7b)]();
|
|
428
|
+
for (const [_0x523398, _0x46e1c9] of _0x528dad) {
|
|
429
|
+
_0x46e1c9[_0x360448(_0x14b23d._0x3e6221)] <= _0x41bb12 && _0x528dad[_0x360448(_0x14b23d._0x570768)](_0x523398);
|
|
816
430
|
}
|
|
817
|
-
const
|
|
818
|
-
...
|
|
431
|
+
const _0x2ede7f = {
|
|
432
|
+
..._0x34dac9,
|
|
819
433
|
'idempotency_key': void 0x0
|
|
820
|
-
},
|
|
821
|
-
if (
|
|
822
|
-
return
|
|
823
|
-
const
|
|
824
|
-
return
|
|
825
|
-
'expiresAt':
|
|
826
|
-
'value':
|
|
827
|
-
}),
|
|
434
|
+
}, _0xcfc91a = createHash(_0x360448(0x1af))['update'](_0x3ff742 + ':' + stableStringify(_0x2ede7f))[_0x360448(0x250)](_0x360448(0x21f)), _0x14da16 = _0x3ff742 + ':' + _0xcfc91a, _0x1f9210 = _0x528dad['get'](_0x14da16);
|
|
435
|
+
if (_0x1f9210)
|
|
436
|
+
return _0x1f9210['value'];
|
|
437
|
+
const _0xaebe49 = _0x360448(_0x14b23d._0x2ce160) + _0x3ff742 + ':' + randomUUID();
|
|
438
|
+
return _0x528dad['set'](_0x14da16, {
|
|
439
|
+
'expiresAt': _0x41bb12 + 0x5 * 0x3c * 0x3e8,
|
|
440
|
+
'value': _0xaebe49
|
|
441
|
+
}), _0xaebe49;
|
|
828
442
|
}
|
|
829
|
-
async function
|
|
830
|
-
const
|
|
443
|
+
async function _0xf20665(_0x579f81, _0x5306a8) {
|
|
444
|
+
const _0x3d5e12 = _0x3d3503, _0x4162a7 = new AbortController(), _0xb5a5a1 = setTimeout(() => _0x4162a7[_0x3d5e12(0x142)](), _0x4b63db), _0x121699 = _0x5306a8?.[_0x3d5e12(0x190)] ? anySignal(_0x5306a8[_0x3d5e12(0x190)], _0x4162a7[_0x3d5e12(_0x3472bd._0x10deb4)]) : _0x4162a7[_0x3d5e12(_0x3472bd._0x28a389)], _0x115d05 = '' + _0x2385c7 + _0x579f81;
|
|
831
445
|
try {
|
|
832
|
-
const
|
|
833
|
-
...
|
|
834
|
-
'signal':
|
|
835
|
-
}),
|
|
836
|
-
if (!
|
|
837
|
-
throw new Error(asErrorMessage(
|
|
838
|
-
return
|
|
446
|
+
const _0x31b7f0 = await _0x16d437(_0x115d05, {
|
|
447
|
+
..._0x5306a8,
|
|
448
|
+
'signal': _0x121699
|
|
449
|
+
}), _0x57b94a = await _0x11f6b1(_0x115d05, _0x31b7f0);
|
|
450
|
+
if (!_0x31b7f0['ok'] || _0x57b94a[_0x3d5e12(_0x3472bd._0xf74332)] === ![])
|
|
451
|
+
throw new Error(asErrorMessage(_0x57b94a['error'], 'HTTP\x20' + _0x31b7f0[_0x3d5e12(0x152)]));
|
|
452
|
+
return _0x57b94a;
|
|
839
453
|
} finally {
|
|
840
|
-
clearTimeout(
|
|
454
|
+
clearTimeout(_0xb5a5a1);
|
|
841
455
|
}
|
|
842
456
|
}
|
|
843
|
-
async function
|
|
844
|
-
const
|
|
457
|
+
async function _0x6de492(_0x1688a5, _0xd6c3eb) {
|
|
458
|
+
const _0x3e2697 = _0x3d3503, _0x4a1f9a = new AbortController(), _0x3c5b2c = setTimeout(() => _0x4a1f9a['abort'](), _0x4b63db), _0x568809 = _0xd6c3eb?.['signal'] ? anySignal(_0xd6c3eb['signal'], _0x4a1f9a['signal']) : _0x4a1f9a[_0x3e2697(0x190)], _0x3ad301 = '' + _0x2385c7 + _0x1688a5;
|
|
845
459
|
try {
|
|
846
|
-
const
|
|
847
|
-
...
|
|
848
|
-
'signal':
|
|
849
|
-
}),
|
|
850
|
-
if (!
|
|
851
|
-
throw new Error(asErrorMessage(
|
|
852
|
-
return
|
|
460
|
+
const _0x1dc024 = await _0x16d437(_0x3ad301, {
|
|
461
|
+
..._0xd6c3eb,
|
|
462
|
+
'signal': _0x568809
|
|
463
|
+
}), _0x4a11d1 = await _0x11f6b1(_0x3ad301, _0x1dc024);
|
|
464
|
+
if (!_0x1dc024['ok'])
|
|
465
|
+
throw new Error(asErrorMessage(_0x4a11d1['error'], _0x3e2697(_0xb4af7._0x800f03) + _0x1dc024[_0x3e2697(_0xb4af7._0x2e0d80)]));
|
|
466
|
+
return _0x4a11d1;
|
|
853
467
|
} finally {
|
|
854
|
-
clearTimeout(
|
|
468
|
+
clearTimeout(_0x3c5b2c);
|
|
855
469
|
}
|
|
856
470
|
}
|
|
857
|
-
async function
|
|
858
|
-
const
|
|
859
|
-
if (!
|
|
471
|
+
async function _0x50843e(_0x25b978) {
|
|
472
|
+
const _0x5b35d0 = _0x3d3503;
|
|
473
|
+
if (!_0x2021f5 || _0x25b978 <= _0x2f0ebe)
|
|
860
474
|
return;
|
|
861
|
-
await
|
|
862
|
-
'body': JSON['stringify']({ 'lastSeenSeq':
|
|
863
|
-
'headers':
|
|
864
|
-
'method':
|
|
865
|
-
}),
|
|
475
|
+
await _0xf20665('/api/agent-sessions/' + encodeURIComponent(_0x2021f5) + _0x5b35d0(0x1e3), {
|
|
476
|
+
'body': JSON['stringify']({ 'lastSeenSeq': _0x25b978 }),
|
|
477
|
+
'headers': _0x21ebb6,
|
|
478
|
+
'method': _0x5b35d0(_0x4c10a4._0x3f4e2f)
|
|
479
|
+
}), _0x2f0ebe = _0x25b978;
|
|
866
480
|
}
|
|
867
|
-
async function
|
|
868
|
-
const
|
|
869
|
-
'body': JSON[
|
|
870
|
-
'headers':
|
|
871
|
-
'method':
|
|
481
|
+
async function _0xb689d6(_0x56c18e) {
|
|
482
|
+
const _0x1c0301 = _0x3d3503, _0x44543f = parseTarget(_0x56c18e), _0x3df216 = await _0xf20665('/internal/agent/' + _0x15df81[_0x1c0301(0x1e5)] + _0x1c0301(_0x1cdfeb._0x29ee9e), {
|
|
483
|
+
'body': JSON[_0x1c0301(0x29a)]({ 'target': _0x44543f['target'] }),
|
|
484
|
+
'headers': _0x21ebb6,
|
|
485
|
+
'method': _0x1c0301(0x1d3)
|
|
872
486
|
});
|
|
873
487
|
return {
|
|
874
|
-
'channelId':
|
|
875
|
-
'target':
|
|
876
|
-
'threadId':
|
|
488
|
+
'channelId': _0x3df216['data']?.[_0x1c0301(0x23b)] ?? '',
|
|
489
|
+
'target': _0x44543f[_0x1c0301(_0x1cdfeb._0x32c437)],
|
|
490
|
+
'threadId': _0x3df216[_0x1c0301(_0x1cdfeb._0x3b92b9)]?.[_0x1c0301(_0x1cdfeb._0x19a06a)]
|
|
877
491
|
};
|
|
878
492
|
}
|
|
879
|
-
async function
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
493
|
+
async function _0x3b51ed() {
|
|
494
|
+
const _0x1b9f0c = {
|
|
495
|
+
_0x490e1f: 0x186,
|
|
496
|
+
_0x43e0ab: 0x130,
|
|
497
|
+
_0x1645d4: 0x186,
|
|
498
|
+
_0xa846d9: 0x21e,
|
|
499
|
+
_0x116623: 0x212,
|
|
500
|
+
_0x12d058: 0x14c
|
|
501
|
+
}, _0x3c6412 = _0x3d3503;
|
|
502
|
+
return !_0x5c9638 && (_0x5c9638 = (async () => {
|
|
503
|
+
const _0x4639b4 = _0x3278, _0xc964f7 = await _0xf20665('/internal/agent/' + _0x15df81['agentId'] + _0x4639b4(0x131), {
|
|
504
|
+
'headers': _0x21ebb6,
|
|
505
|
+
'method': 'GET'
|
|
506
|
+
}), _0x3400c9 = _0xc964f7[_0x4639b4(_0x1b9f0c._0x490e1f)]?.[_0x4639b4(_0x1b9f0c._0x43e0ab)]['id'] ?? '';
|
|
507
|
+
let _0x35e008 = [];
|
|
886
508
|
try {
|
|
887
|
-
const
|
|
888
|
-
'headers':
|
|
889
|
-
'method':
|
|
509
|
+
const _0x294888 = await _0xf20665('/api/agents?serverId=' + encodeURIComponent(_0x3400c9), {
|
|
510
|
+
'headers': _0x21ebb6,
|
|
511
|
+
'method': _0x4639b4(0x246)
|
|
890
512
|
});
|
|
891
|
-
|
|
513
|
+
_0x35e008 = _0x294888[_0x4639b4(_0x1b9f0c._0x1645d4)] ?? [];
|
|
892
514
|
} catch {
|
|
893
|
-
|
|
515
|
+
_0x35e008 = [];
|
|
894
516
|
}
|
|
895
|
-
const
|
|
896
|
-
'id':
|
|
897
|
-
'name':
|
|
898
|
-
}))[
|
|
899
|
-
'id':
|
|
900
|
-
'name':
|
|
901
|
-
}))[
|
|
517
|
+
const _0x2b8699 = _0x35e008[_0x4639b4(0x212)](_0x5c0ea9 => ({
|
|
518
|
+
'id': _0x5c0ea9[_0x4639b4(0x188)]?.['id'] ?? _0x5c0ea9['server_members']?.[_0x4639b4(0x20c)] ?? '',
|
|
519
|
+
'name': _0x5c0ea9['participants']?.[_0x4639b4(0x16e)] ?? _0x5c0ea9[_0x4639b4(0x1bd)]?.['participantId'] ?? ''
|
|
520
|
+
}))[_0x4639b4(_0x1b9f0c._0xa846d9)](_0x10446c => _0x10446c['id']), _0x54bff2 = new Set(_0x2b8699[_0x4639b4(_0x1b9f0c._0x116623)](_0x4e40d4 => _0x4e40d4['id'])), _0x588f61 = (_0xc964f7['data']?.[_0x4639b4(_0x1b9f0c._0x12d058)] ?? [])[_0x4639b4(_0x1b9f0c._0xa846d9)](_0x5d26df => !_0x54bff2[_0x4639b4(0x1b0)](_0x51b992(_0x5d26df)))['map'](_0x3d5f49 => ({
|
|
521
|
+
'id': _0x51b992(_0x3d5f49),
|
|
522
|
+
'name': _0x20ecf4(_0x3d5f49)
|
|
523
|
+
}))[_0x4639b4(0x21e)](_0x4590dc => _0x4590dc['id']);
|
|
902
524
|
return {
|
|
903
|
-
'agents':
|
|
904
|
-
'channels':
|
|
905
|
-
'humans':
|
|
906
|
-
'serverId':
|
|
907
|
-
'serverName':
|
|
525
|
+
'agents': _0x2b8699,
|
|
526
|
+
'channels': _0xc964f7[_0x4639b4(0x186)]?.['channels'] ?? [],
|
|
527
|
+
'humans': _0x588f61,
|
|
528
|
+
'serverId': _0x3400c9,
|
|
529
|
+
'serverName': _0xc964f7['data']?.['server'][_0x4639b4(0x16e)] ?? _0x3400c9
|
|
908
530
|
};
|
|
909
|
-
})()[
|
|
910
|
-
|
|
911
|
-
throw
|
|
912
|
-
})),
|
|
531
|
+
})()[_0x3c6412(_0x3656b3._0x24866c)](_0x4ba124 => {
|
|
532
|
+
_0x5c9638 = null;
|
|
533
|
+
throw _0x4ba124;
|
|
534
|
+
})), _0x5c9638;
|
|
913
535
|
}
|
|
914
|
-
function
|
|
915
|
-
const
|
|
916
|
-
return
|
|
536
|
+
function _0x49125c(_0x31b4a8, _0x8c73cc) {
|
|
537
|
+
const _0xbdbb4d = _0x3d3503;
|
|
538
|
+
return _0x8c73cc[_0xbdbb4d(0x155)][_0xbdbb4d(0x205)](_0x386e40 => _0x386e40['id'] === _0x31b4a8 || _0x386e40['name'] === _0x31b4a8) ? 'agent' : _0xbdbb4d(0x164);
|
|
917
539
|
}
|
|
918
|
-
function
|
|
919
|
-
const
|
|
920
|
-
return
|
|
540
|
+
function _0x51b992(_0x29f9d5) {
|
|
541
|
+
const _0x22ce9e = _0x3d3503;
|
|
542
|
+
return _0x29f9d5[_0x22ce9e(0x2a2)]?.[_0x22ce9e(0x20c)] ?? _0x29f9d5[_0x22ce9e(_0x67e025._0x5cb444)]?.['id'] ?? _0x29f9d5[_0x22ce9e(0x20c)] ?? '';
|
|
921
543
|
}
|
|
922
|
-
function
|
|
923
|
-
const
|
|
924
|
-
return
|
|
544
|
+
function _0x20ecf4(_0xd33fb2) {
|
|
545
|
+
const _0x44d661 = _0x3d3503;
|
|
546
|
+
return _0xd33fb2[_0x44d661(_0x496656._0x1f5451)]?.[_0x44d661(0x16e)] ?? _0x51b992(_0xd33fb2);
|
|
925
547
|
}
|
|
926
|
-
async function
|
|
927
|
-
const
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
const
|
|
933
|
-
'headers':
|
|
934
|
-
'method':
|
|
935
|
-
}),
|
|
936
|
-
'attachments': (
|
|
937
|
-
'filename':
|
|
938
|
-
'id':
|
|
548
|
+
async function _0x4672f7(_0x3f9f4f) {
|
|
549
|
+
const _0x567e1f = _0x3d3503, _0x39a281 = Math[_0x567e1f(_0x4eb305._0x3c4438)](_0x3f9f4f['limit'] ?? 0x32, 0x64), _0x182dc5 = await _0x3b51ed(), _0x59ea66 = new URLSearchParams();
|
|
550
|
+
_0x59ea66[_0x567e1f(0x257)](_0x567e1f(0x15e), String(_0x39a281));
|
|
551
|
+
_0x3f9f4f[_0x567e1f(0x1d8)] ? (_0x59ea66['set'](_0x567e1f(_0x4eb305._0x55336a), _0x3f9f4f['threadId']), _0x59ea66['set'](_0x567e1f(0x23b), _0x3f9f4f[_0x567e1f(0x23b)])) : _0x59ea66[_0x567e1f(0x257)](_0x567e1f(_0x4eb305._0x3d3607), _0x3f9f4f[_0x567e1f(_0x4eb305._0x3d3607)]);
|
|
552
|
+
_0x3f9f4f[_0x567e1f(_0x4eb305._0x6701d7)] && _0x59ea66['set']('cursor', String(_0x3f9f4f[_0x567e1f(_0x4eb305._0x377260)]));
|
|
553
|
+
_0x3f9f4f[_0x567e1f(_0x4eb305._0x327d37)] !== void 0x0 && _0x59ea66[_0x567e1f(_0x4eb305._0x19612c)](_0x567e1f(0x13c), String(_0x3f9f4f[_0x567e1f(0x13c)]));
|
|
554
|
+
const _0x4b9e88 = await _0xf20665(_0x567e1f(0x1c7) + _0x15df81[_0x567e1f(_0x4eb305._0x4724de)] + _0x567e1f(0x1f5) + _0x59ea66[_0x567e1f(_0x4eb305._0x442038)](), {
|
|
555
|
+
'headers': _0x21ebb6,
|
|
556
|
+
'method': 'GET'
|
|
557
|
+
}), _0x3df426 = (_0x4b9e88[_0x567e1f(0x186)] ?? [])['map'](_0x299e3d => ({
|
|
558
|
+
'attachments': (_0x299e3d['attachments'] ?? [])[_0x567e1f(0x212)](_0x4d1f56 => ({
|
|
559
|
+
'filename': _0x4d1f56[_0x567e1f(0x1e1)] ?? _0x4d1f56['id'],
|
|
560
|
+
'id': _0x4d1f56['id']
|
|
939
561
|
})),
|
|
940
|
-
'content':
|
|
941
|
-
'createdAt':
|
|
942
|
-
'messageId':
|
|
943
|
-
'senderName':
|
|
944
|
-
'senderType':
|
|
945
|
-
'seq':
|
|
562
|
+
'content': _0x299e3d['bodyMarkdown'] ?? '',
|
|
563
|
+
'createdAt': _0x299e3d[_0x567e1f(0x24e)],
|
|
564
|
+
'messageId': _0x299e3d['id'],
|
|
565
|
+
'senderName': _0x299e3d['senderParticipantId'],
|
|
566
|
+
'senderType': _0x49125c(_0x299e3d[_0x567e1f(0x1ec)], _0x182dc5),
|
|
567
|
+
'seq': _0x299e3d[_0x567e1f(0x256)] ?? 0x0
|
|
946
568
|
}));
|
|
947
569
|
return {
|
|
948
|
-
'channel':
|
|
949
|
-
'hasMore':
|
|
950
|
-
'messages':
|
|
951
|
-
'nextCursor':
|
|
570
|
+
'channel': _0x3f9f4f[_0x567e1f(_0x4eb305._0x171f84)],
|
|
571
|
+
'hasMore': _0x4b9e88['meta']?.[_0x567e1f(0x298)] ?? ![],
|
|
572
|
+
'messages': _0x3df426,
|
|
573
|
+
'nextCursor': _0x4b9e88[_0x567e1f(0x1f1)]?.[_0x567e1f(_0x4eb305._0xea0526)]
|
|
952
574
|
};
|
|
953
575
|
}
|
|
954
576
|
return {
|
|
955
|
-
async 'sendMessage'(
|
|
956
|
-
const
|
|
957
|
-
'body': JSON[
|
|
958
|
-
'attachment_ids':
|
|
959
|
-
'bodyMarkdown':
|
|
960
|
-
'channelId':
|
|
961
|
-
...
|
|
962
|
-
'threadId':
|
|
577
|
+
async 'sendMessage'(_0x598f33) {
|
|
578
|
+
const _0x343c29 = _0x3d3503, _0x2a90ef = await _0xb689d6(_0x598f33['target']), _0x1b2536 = _0x598f33[_0x343c29(0x1a0)][_0x343c29(0x1a3)]('@') ? extractMentionedParticipantIds(_0x598f33['content'], await _0x3b51ed()) : [], _0x2a2df3 = await _0xf20665('/internal/agent/' + _0x15df81[_0x343c29(_0x44da16._0x442793)] + _0x343c29(0x139), {
|
|
579
|
+
'body': JSON[_0x343c29(_0x44da16._0x400abf)]({
|
|
580
|
+
'attachment_ids': _0x598f33[_0x343c29(_0x44da16._0x5bcadf)],
|
|
581
|
+
'bodyMarkdown': _0x598f33['content'],
|
|
582
|
+
'channelId': _0x2a90ef[_0x343c29(0x23b)],
|
|
583
|
+
..._0x1b2536[_0x343c29(_0x44da16._0x420032)] > 0x0 ? { 'mentionedParticipantIds': _0x1b2536 } : {},
|
|
584
|
+
'threadId': _0x2a90ef[_0x343c29(_0x44da16._0x26f217)]
|
|
963
585
|
}),
|
|
964
|
-
'headers':
|
|
965
|
-
'method':
|
|
586
|
+
'headers': _0x21ebb6,
|
|
587
|
+
'method': _0x343c29(_0x44da16._0x453443)
|
|
966
588
|
});
|
|
967
|
-
return { 'messageId':
|
|
589
|
+
return { 'messageId': _0x2a2df3[_0x343c29(0x186)]?.['id'] ?? '' };
|
|
968
590
|
},
|
|
969
591
|
async 'listSchedules'() {
|
|
970
|
-
const
|
|
971
|
-
'headers':
|
|
972
|
-
'method':
|
|
592
|
+
const _0x299e23 = _0x3d3503, _0x1d075a = await _0xf20665(_0x299e23(_0x1150fd._0xab993e), {
|
|
593
|
+
'headers': _0x21ebb6,
|
|
594
|
+
'method': _0x299e23(0x246)
|
|
973
595
|
});
|
|
974
|
-
return
|
|
596
|
+
return _0x1d075a[_0x299e23(_0x1150fd._0x2a5243)] ?? [];
|
|
975
597
|
},
|
|
976
|
-
async 'claimScheduleRun'(
|
|
977
|
-
const
|
|
978
|
-
'body': JSON[
|
|
979
|
-
'headers':
|
|
980
|
-
'method':
|
|
598
|
+
async 'claimScheduleRun'(_0x12c723) {
|
|
599
|
+
const _0x113d64 = _0x3d3503, _0xd3a101 = await _0xf20665(_0x113d64(_0x680260._0x1d239d), {
|
|
600
|
+
'body': JSON['stringify'](_0x12c723),
|
|
601
|
+
'headers': _0x21ebb6,
|
|
602
|
+
'method': _0x113d64(0x1d3)
|
|
981
603
|
});
|
|
982
|
-
return
|
|
604
|
+
return _0xd3a101[_0x113d64(0x186)] ?? {
|
|
983
605
|
'granted': ![],
|
|
984
606
|
'runId': null,
|
|
985
607
|
'schedule': null,
|
|
986
|
-
'scheduledFor':
|
|
608
|
+
'scheduledFor': _0x12c723[_0x113d64(0x1ed)]
|
|
987
609
|
};
|
|
988
610
|
},
|
|
989
|
-
async 'startScheduleRun'(
|
|
990
|
-
const
|
|
991
|
-
'body': JSON[
|
|
992
|
-
'headers':
|
|
993
|
-
'method':
|
|
611
|
+
async 'startScheduleRun'(_0x205b9f) {
|
|
612
|
+
const _0xce461b = _0x3d3503, _0x5143bb = await _0xf20665(_0xce461b(0x149) + encodeURIComponent(_0x205b9f[_0xce461b(0x1d7)]) + _0xce461b(0x1f6), {
|
|
613
|
+
'body': JSON[_0xce461b(_0x1ef326._0x137d4f)]({}),
|
|
614
|
+
'headers': _0x21ebb6,
|
|
615
|
+
'method': _0xce461b(0x1d3)
|
|
994
616
|
});
|
|
995
|
-
return
|
|
617
|
+
return _0x5143bb['data'] ?? {
|
|
996
618
|
'claimedByDaemonId': '',
|
|
997
|
-
'id':
|
|
619
|
+
'id': _0x205b9f[_0xce461b(_0x1ef326._0x2b0a7b)],
|
|
998
620
|
'scheduleId': '',
|
|
999
|
-
'status':
|
|
621
|
+
'status': _0xce461b(_0x1ef326._0x2ecc15)
|
|
1000
622
|
};
|
|
1001
623
|
},
|
|
1002
|
-
async 'finishScheduleRun'(
|
|
1003
|
-
const
|
|
1004
|
-
'body': JSON[
|
|
1005
|
-
'error':
|
|
1006
|
-
'resultJson':
|
|
1007
|
-
'status':
|
|
624
|
+
async 'finishScheduleRun'(_0x314fbf) {
|
|
625
|
+
const _0x5554a1 = _0x3d3503, _0x56adc2 = await _0xf20665(_0x5554a1(_0x137fec._0x438979) + encodeURIComponent(_0x314fbf[_0x5554a1(0x1d7)]) + _0x5554a1(_0x137fec._0x522367), {
|
|
626
|
+
'body': JSON['stringify']({
|
|
627
|
+
'error': _0x314fbf['error'],
|
|
628
|
+
'resultJson': _0x314fbf[_0x5554a1(0x195)],
|
|
629
|
+
'status': _0x314fbf[_0x5554a1(_0x137fec._0x825988)]
|
|
1008
630
|
}),
|
|
1009
|
-
'headers':
|
|
1010
|
-
'method':
|
|
631
|
+
'headers': _0x21ebb6,
|
|
632
|
+
'method': _0x5554a1(0x1d3)
|
|
1011
633
|
});
|
|
1012
|
-
return
|
|
634
|
+
return _0x56adc2[_0x5554a1(0x186)] ?? {
|
|
1013
635
|
'nextRunAt': null,
|
|
1014
636
|
'run': {
|
|
1015
637
|
'claimedByDaemonId': '',
|
|
1016
|
-
'id':
|
|
638
|
+
'id': _0x314fbf[_0x5554a1(0x1d7)],
|
|
1017
639
|
'scheduleId': '',
|
|
1018
|
-
'status':
|
|
640
|
+
'status': _0x314fbf['status']
|
|
1019
641
|
}
|
|
1020
642
|
};
|
|
1021
643
|
},
|
|
1022
|
-
async 'listTasks'(
|
|
1023
|
-
const
|
|
1024
|
-
return
|
|
1025
|
-
'headers':
|
|
1026
|
-
'method':
|
|
644
|
+
async 'listTasks'(_0x2e2a53) {
|
|
645
|
+
const _0x3cc7c8 = _0x3d3503, _0x3cfda8 = new URLSearchParams();
|
|
646
|
+
return _0x3cfda8[_0x3cc7c8(_0x592885._0x9671be)](_0x3cc7c8(_0x592885._0x43a6be), _0x2e2a53[_0x3cc7c8(_0x592885._0x2bdd0f)]), _0x2e2a53[_0x3cc7c8(0x152)] && _0x3cfda8[_0x3cc7c8(0x257)](_0x3cc7c8(0x152), _0x2e2a53[_0x3cc7c8(_0x592885._0x128dae)]), _0x6de492(_0x3cc7c8(_0x592885._0x1cdbcd) + _0x15df81[_0x3cc7c8(0x1e5)] + '/tasks?' + _0x3cfda8[_0x3cc7c8(_0x592885._0x8579d)](), {
|
|
647
|
+
'headers': _0x21ebb6,
|
|
648
|
+
'method': _0x3cc7c8(0x246)
|
|
1027
649
|
});
|
|
1028
650
|
},
|
|
1029
|
-
async 'createTasks'(
|
|
1030
|
-
const
|
|
1031
|
-
return
|
|
1032
|
-
'body': JSON[
|
|
1033
|
-
...
|
|
1034
|
-
'idempotency_key':
|
|
651
|
+
async 'createTasks'(_0xa3fd7) {
|
|
652
|
+
const _0x33c932 = _0x3d3503;
|
|
653
|
+
return _0x6de492('/internal/agent/' + _0x15df81[_0x33c932(0x1e5)] + _0x33c932(_0x5a9e9a._0x1d145b), {
|
|
654
|
+
'body': JSON[_0x33c932(0x29a)]({
|
|
655
|
+
..._0xa3fd7,
|
|
656
|
+
'idempotency_key': _0x2cdad2(_0x33c932(_0x5a9e9a._0x25edcd), _0xa3fd7)
|
|
1035
657
|
}),
|
|
1036
|
-
'headers':
|
|
1037
|
-
'method':
|
|
658
|
+
'headers': _0x21ebb6,
|
|
659
|
+
'method': _0x33c932(0x1d3)
|
|
1038
660
|
});
|
|
1039
661
|
},
|
|
1040
|
-
async 'claimTasks'(
|
|
1041
|
-
const
|
|
1042
|
-
return
|
|
1043
|
-
'body': JSON[
|
|
1044
|
-
...
|
|
1045
|
-
'idempotency_key':
|
|
662
|
+
async 'claimTasks'(_0x4ac867) {
|
|
663
|
+
const _0x10f5a2 = _0x3d3503;
|
|
664
|
+
return _0x6de492(_0x10f5a2(_0x840d99._0x2a8d1e) + _0x15df81[_0x10f5a2(0x1e5)] + _0x10f5a2(0x200), {
|
|
665
|
+
'body': JSON[_0x10f5a2(_0x840d99._0x53abc9)]({
|
|
666
|
+
..._0x4ac867,
|
|
667
|
+
'idempotency_key': _0x2cdad2(_0x10f5a2(_0x840d99._0x1576f4), _0x4ac867)
|
|
1046
668
|
}),
|
|
1047
|
-
'headers':
|
|
1048
|
-
'method':
|
|
669
|
+
'headers': _0x21ebb6,
|
|
670
|
+
'method': _0x10f5a2(_0x840d99._0x5893c0)
|
|
1049
671
|
});
|
|
1050
672
|
},
|
|
1051
|
-
async 'unclaimTask'(
|
|
1052
|
-
const
|
|
1053
|
-
return
|
|
1054
|
-
'body': JSON[
|
|
1055
|
-
...
|
|
1056
|
-
'idempotency_key':
|
|
673
|
+
async 'unclaimTask'(_0x2de98b) {
|
|
674
|
+
const _0x3aba22 = _0x3d3503;
|
|
675
|
+
return _0x6de492(_0x3aba22(_0x1d036a._0x29b3c1) + _0x15df81['agentId'] + _0x3aba22(_0x1d036a._0x436698), {
|
|
676
|
+
'body': JSON[_0x3aba22(_0x1d036a._0x50b2c8)]({
|
|
677
|
+
..._0x2de98b,
|
|
678
|
+
'idempotency_key': _0x2cdad2('unclaim_task', _0x2de98b)
|
|
1057
679
|
}),
|
|
1058
|
-
'headers':
|
|
1059
|
-
'method':
|
|
680
|
+
'headers': _0x21ebb6,
|
|
681
|
+
'method': _0x3aba22(0x1d3)
|
|
1060
682
|
});
|
|
1061
683
|
},
|
|
1062
|
-
async 'updateTaskStatus'(
|
|
1063
|
-
const
|
|
1064
|
-
return
|
|
1065
|
-
'body': JSON[
|
|
1066
|
-
...
|
|
1067
|
-
'idempotency_key':
|
|
684
|
+
async 'updateTaskStatus'(_0x17377e) {
|
|
685
|
+
const _0x409d1f = _0x3d3503;
|
|
686
|
+
return _0x6de492('/internal/agent/' + _0x15df81[_0x409d1f(0x1e5)] + _0x409d1f(0x1b9), {
|
|
687
|
+
'body': JSON['stringify']({
|
|
688
|
+
..._0x17377e,
|
|
689
|
+
'idempotency_key': _0x2cdad2('update_task_status', _0x17377e)
|
|
1068
690
|
}),
|
|
1069
|
-
'headers':
|
|
1070
|
-
'method':
|
|
691
|
+
'headers': _0x21ebb6,
|
|
692
|
+
'method': _0x409d1f(_0x360498._0x4865d0)
|
|
1071
693
|
});
|
|
1072
694
|
},
|
|
1073
|
-
async 'uploadFile'(
|
|
1074
|
-
const
|
|
1075
|
-
if (
|
|
1076
|
-
throw new Error(
|
|
1077
|
-
const
|
|
1078
|
-
'body': JSON[
|
|
1079
|
-
'channel':
|
|
1080
|
-
'contentBase64':
|
|
1081
|
-
'contentType':
|
|
1082
|
-
'originalFilename':
|
|
695
|
+
async 'uploadFile'(_0x24396c) {
|
|
696
|
+
const _0x21d0e5 = _0x3d3503, _0x49e5fc = await _0xb689d6(_0x24396c[_0x21d0e5(0x297)]);
|
|
697
|
+
if (_0x49e5fc[_0x21d0e5(_0x24433f._0x1232a0)])
|
|
698
|
+
throw new Error(_0x21d0e5(_0x24433f._0x6c4748));
|
|
699
|
+
const _0x33f268 = await _0xf20665(_0x21d0e5(0x1c7) + _0x15df81['agentId'] + _0x21d0e5(_0x24433f._0x9da715), {
|
|
700
|
+
'body': JSON[_0x21d0e5(_0x24433f._0x5d8133)]({
|
|
701
|
+
'channel': _0x49e5fc[_0x21d0e5(_0x24433f._0x13eca1)],
|
|
702
|
+
'contentBase64': _0x24396c[_0x21d0e5(0x178)],
|
|
703
|
+
'contentType': _0x24396c[_0x21d0e5(_0x24433f._0x2b6cd9)],
|
|
704
|
+
'originalFilename': _0x24396c['filename']
|
|
1083
705
|
}),
|
|
1084
|
-
'headers':
|
|
1085
|
-
'method':
|
|
706
|
+
'headers': _0x21ebb6,
|
|
707
|
+
'method': _0x21d0e5(_0x24433f._0x5b66b8)
|
|
1086
708
|
});
|
|
1087
709
|
return {
|
|
1088
|
-
'attachmentId':
|
|
1089
|
-
'filename':
|
|
1090
|
-
'sizeBytes':
|
|
710
|
+
'attachmentId': _0x33f268['data']?.['id'] ?? '',
|
|
711
|
+
'filename': _0x33f268[_0x21d0e5(_0x24433f._0x1824f5)]?.[_0x21d0e5(_0x24433f._0x526134)] ?? _0x24396c[_0x21d0e5(0x1e1)],
|
|
712
|
+
'sizeBytes': _0x33f268[_0x21d0e5(0x186)]?.[_0x21d0e5(_0x24433f._0x29191e)] ?? 0x0
|
|
1091
713
|
};
|
|
1092
714
|
},
|
|
1093
|
-
async 'downloadAttachment'(
|
|
1094
|
-
const
|
|
1095
|
-
'headers':
|
|
715
|
+
async 'downloadAttachment'(_0x261990) {
|
|
716
|
+
const _0x2dbb4d = _0x3d3503, _0x3d4ba4 = await _0xf20665('/api/attachments/' + _0x261990, {
|
|
717
|
+
'headers': _0x21ebb6,
|
|
1096
718
|
'method': 'GET'
|
|
1097
|
-
}),
|
|
719
|
+
}), _0x4ff241 = new AbortController(), _0x5a282b = setTimeout(() => _0x4ff241[_0x2dbb4d(0x142)](), _0x4b63db);
|
|
1098
720
|
try {
|
|
1099
|
-
const
|
|
1100
|
-
'headers':
|
|
1101
|
-
'method':
|
|
1102
|
-
'signal':
|
|
721
|
+
const _0x320448 = await _0x16d437(_0x2385c7 + _0x2dbb4d(_0x1a3315._0x45b63d) + _0x261990 + _0x2dbb4d(0x167), {
|
|
722
|
+
'headers': _0x21ebb6,
|
|
723
|
+
'method': _0x2dbb4d(0x246),
|
|
724
|
+
'signal': _0x4ff241[_0x2dbb4d(_0x1a3315._0x1de007)]
|
|
1103
725
|
});
|
|
1104
|
-
if (!
|
|
1105
|
-
throw new Error(
|
|
726
|
+
if (!_0x320448['ok'])
|
|
727
|
+
throw new Error('HTTP\x20' + _0x320448['status']);
|
|
1106
728
|
return {
|
|
1107
|
-
'contentType':
|
|
1108
|
-
'data': Buffer[
|
|
1109
|
-
'originalFilename':
|
|
729
|
+
'contentType': _0x3d4ba4[_0x2dbb4d(0x186)]?.[_0x2dbb4d(_0x1a3315._0x3afbff)] ?? _0x320448[_0x2dbb4d(0x259)][_0x2dbb4d(_0x1a3315._0x48394c)](_0x2dbb4d(_0x1a3315._0x249058)) ?? _0x2dbb4d(_0x1a3315._0x55a14f),
|
|
730
|
+
'data': Buffer[_0x2dbb4d(0x269)](await _0x320448['arrayBuffer']()),
|
|
731
|
+
'originalFilename': _0x3d4ba4[_0x2dbb4d(_0x1a3315._0x37913c)]?.[_0x2dbb4d(0x245)]
|
|
1110
732
|
};
|
|
1111
733
|
} finally {
|
|
1112
|
-
clearTimeout(
|
|
734
|
+
clearTimeout(_0x5a282b);
|
|
1113
735
|
}
|
|
1114
736
|
},
|
|
1115
737
|
async 'listServer'() {
|
|
1116
|
-
return
|
|
738
|
+
return _0x3b51ed();
|
|
1117
739
|
},
|
|
1118
|
-
async 'readHistory'(
|
|
1119
|
-
const
|
|
1120
|
-
return
|
|
1121
|
-
'after':
|
|
1122
|
-
'before':
|
|
1123
|
-
'channelId':
|
|
1124
|
-
'channelTarget':
|
|
1125
|
-
'limit':
|
|
1126
|
-
'threadId':
|
|
740
|
+
async 'readHistory'(_0x170f6a) {
|
|
741
|
+
const _0x4757b3 = _0x3d3503, _0x1d5571 = await _0xb689d6(_0x170f6a[_0x4757b3(0x297)]);
|
|
742
|
+
return _0x4672f7({
|
|
743
|
+
'after': _0x170f6a[_0x4757b3(_0xe56201._0x4a9ca8)],
|
|
744
|
+
'before': _0x170f6a[_0x4757b3(_0xe56201._0x2545a3)],
|
|
745
|
+
'channelId': _0x1d5571[_0x4757b3(_0xe56201._0x540b2d)],
|
|
746
|
+
'channelTarget': _0x1d5571[_0x4757b3(_0xe56201._0x4a1ea5)],
|
|
747
|
+
'limit': _0x170f6a[_0x4757b3(0x15e)],
|
|
748
|
+
'threadId': _0x1d5571[_0x4757b3(0x1d8)]
|
|
1127
749
|
});
|
|
1128
750
|
},
|
|
1129
751
|
async 'checkMessages'() {
|
|
1130
|
-
const
|
|
1131
|
-
|
|
1132
|
-
const
|
|
1133
|
-
'headers':
|
|
1134
|
-
'method':
|
|
1135
|
-
}),
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
])),
|
|
1139
|
-
for (const
|
|
1140
|
-
const
|
|
1141
|
-
if (!
|
|
752
|
+
const _0xbaaae7 = _0x3d3503, _0x331db2 = new URLSearchParams();
|
|
753
|
+
_0x331db2[_0xbaaae7(_0x3b8add._0x22c141)](_0xbaaae7(0x223), String(_0x37ead6));
|
|
754
|
+
const _0xee86d4 = _0x331db2['toString'](), _0x327fb7 = await _0xf20665(_0xbaaae7(_0x3b8add._0x81bca) + _0x15df81[_0xbaaae7(0x1e5)] + _0xbaaae7(_0x3b8add._0x553d8c) + (_0xee86d4 ? '?' + _0xee86d4 : ''), {
|
|
755
|
+
'headers': _0x21ebb6,
|
|
756
|
+
'method': _0xbaaae7(0x246)
|
|
757
|
+
}), _0x19431a = _0x327fb7['data'] ?? [], _0x2b8f6d = _0x327fb7[_0xbaaae7(_0x3b8add._0x2dfaa1)]?.[_0xbaaae7(_0x3b8add._0x20a82a)], _0x2e76d1 = _0x2b8f6d !== void 0x0 ? Math[_0xbaaae7(0x264)](_0x37ead6, _0x2b8f6d) : _0x19431a[_0xbaaae7(_0x3b8add._0x2d66d0)] > 0x0 ? Math[_0xbaaae7(0x264)](_0x37ead6, _0x19431a[_0x19431a['length'] - 0x1]['seq']) : _0x37ead6, _0x1dabae = await _0x3b51ed(), _0x3b4e41 = new Map(_0x1dabae[_0xbaaae7(0x1b5)][_0xbaaae7(0x212)](_0x9797be => [
|
|
758
|
+
_0x9797be['id'],
|
|
759
|
+
_0x9797be
|
|
760
|
+
])), _0x1aebdb = _0x19431a['filter'](_0x1c27bf => _0x1c27bf[_0xbaaae7(0x150)] === 'message'), _0x504400 = new Map();
|
|
761
|
+
for (const _0x3820e4 of _0x1aebdb) {
|
|
762
|
+
const _0x23ea6d = asRecord(_0x3820e4[_0xbaaae7(_0x3b8add._0x564396)]), _0x32639e = typeof _0x23ea6d['channelId'] === _0xbaaae7(0x1cd) ? _0x23ea6d[_0xbaaae7(_0x3b8add._0x43106b)] : '';
|
|
763
|
+
if (!_0x32639e)
|
|
1142
764
|
continue;
|
|
1143
|
-
const
|
|
765
|
+
const _0x5f58aa = typeof _0x23ea6d['threadId'] === 'string' ? _0x23ea6d[_0xbaaae7(_0x3b8add._0x4bb6d0)] : void 0x0, _0x5bfcbf = typeof _0x23ea6d[_0xbaaae7(0x140)] === _0xbaaae7(0x1cd) ? _0x23ea6d['rootMessageId'] : void 0x0, _0x12eec3 = Boolean(_0x5f58aa && (!_0x5bfcbf || _0x3820e4['aggregateId'] !== _0x5bfcbf)), _0x4af0d8 = _0x12eec3 ? _0x32639e + ':' + _0x5f58aa : _0x32639e, _0x3135c4 = _0x504400[_0xbaaae7(0x295)](_0x4af0d8) ?? {
|
|
1144
766
|
'aggregateIds': [],
|
|
1145
|
-
'channelId':
|
|
767
|
+
'channelId': _0x32639e,
|
|
1146
768
|
'entries': new Map(),
|
|
1147
|
-
'isThreadReply':
|
|
1148
|
-
'rootMessageId':
|
|
1149
|
-
'threadId':
|
|
769
|
+
'isThreadReply': _0x12eec3,
|
|
770
|
+
'rootMessageId': _0x5bfcbf,
|
|
771
|
+
'threadId': _0x12eec3 ? _0x5f58aa : void 0x0
|
|
1150
772
|
};
|
|
1151
|
-
|
|
1152
|
-
'payloadJson':
|
|
1153
|
-
'seq':
|
|
1154
|
-
}),
|
|
773
|
+
_0x3135c4[_0xbaaae7(_0x3b8add._0x3d6035)]['push'](_0x3820e4[_0xbaaae7(_0x3b8add._0x5f51dd)]), _0x3135c4[_0xbaaae7(0x180)]['set'](_0x3820e4[_0xbaaae7(0x29b)], {
|
|
774
|
+
'payloadJson': _0x3820e4[_0xbaaae7(0x28c)],
|
|
775
|
+
'seq': _0x3820e4['seq']
|
|
776
|
+
}), _0x504400[_0xbaaae7(0x257)](_0x4af0d8, _0x3135c4);
|
|
1155
777
|
}
|
|
1156
|
-
const
|
|
1157
|
-
for (const
|
|
778
|
+
const _0x4e16ad = [];
|
|
779
|
+
for (const _0x2cbe13 of _0x504400['values']()) {
|
|
1158
780
|
const {
|
|
1159
|
-
channelId:
|
|
1160
|
-
threadId:
|
|
1161
|
-
rootMessageId:
|
|
1162
|
-
aggregateIds:
|
|
1163
|
-
isThreadReply:
|
|
1164
|
-
entries:
|
|
1165
|
-
} =
|
|
1166
|
-
'channelId':
|
|
1167
|
-
'channelTarget':
|
|
1168
|
-
'limit': Math[
|
|
1169
|
-
'threadId':
|
|
1170
|
-
}),
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
])),
|
|
1174
|
-
for (const
|
|
1175
|
-
const
|
|
1176
|
-
if (
|
|
1177
|
-
|
|
1178
|
-
'attachments':
|
|
1179
|
-
'content':
|
|
1180
|
-
'createdAt':
|
|
1181
|
-
'messageId':
|
|
1182
|
-
'senderName':
|
|
1183
|
-
'senderType':
|
|
1184
|
-
'target':
|
|
781
|
+
channelId: _0x954310,
|
|
782
|
+
threadId: _0xeb9761,
|
|
783
|
+
rootMessageId: _0x43c997,
|
|
784
|
+
aggregateIds: _0xc3c756,
|
|
785
|
+
isThreadReply: _0xde3bc3,
|
|
786
|
+
entries: _0x4a835b
|
|
787
|
+
} = _0x2cbe13, _0x1d1e99 = _0x3b4e41[_0xbaaae7(_0x3b8add._0x27fd6f)](_0x954310), _0x164324 = _0x1d1e99?.['name'] ?? _0x954310, _0x5e5bb6 = _0x1d1e99?.[_0xbaaae7(0x16b)] === 'dm' ? _0xbaaae7(_0x3b8add._0x113a37) + _0x164324 : '#' + _0x164324, _0x3a568a = await _0x4672f7({
|
|
788
|
+
'channelId': _0x954310,
|
|
789
|
+
'channelTarget': _0x5e5bb6,
|
|
790
|
+
'limit': Math['max'](_0xc3c756[_0xbaaae7(0x282)], 0x32),
|
|
791
|
+
'threadId': _0xeb9761
|
|
792
|
+
}), _0x48abd8 = new Map(_0x3a568a[_0xbaaae7(0x160)][_0xbaaae7(_0x3b8add._0xc6747b)](_0x1d3d64 => [
|
|
793
|
+
_0x1d3d64['messageId'],
|
|
794
|
+
_0x1d3d64
|
|
795
|
+
])), _0x4f2d1f = _0xeb9761 ? _0x5e5bb6 + ':' + (_0x43c997?.[_0xbaaae7(0x225)](0x0, 0x8) ?? _0xeb9761[_0xbaaae7(_0x3b8add._0x52c51a)](0x0, 0x8)) : _0x5e5bb6, _0x5a6042 = _0xde3bc3 ? _0x4f2d1f : _0x5e5bb6;
|
|
796
|
+
for (const _0x33e2c9 of _0xc3c756) {
|
|
797
|
+
const _0x4eaaa6 = _0x48abd8['get'](_0x33e2c9);
|
|
798
|
+
if (_0x4eaaa6) {
|
|
799
|
+
_0x4e16ad[_0xbaaae7(0x1c2)]({
|
|
800
|
+
'attachments': _0x4eaaa6[_0xbaaae7(_0x3b8add._0x420dfa)],
|
|
801
|
+
'content': _0x4eaaa6[_0xbaaae7(_0x3b8add._0xdd3ec5)],
|
|
802
|
+
'createdAt': _0x4eaaa6['createdAt'],
|
|
803
|
+
'messageId': _0x4eaaa6[_0xbaaae7(0x22f)],
|
|
804
|
+
'senderName': _0x4eaaa6[_0xbaaae7(_0x3b8add._0x5ac950)],
|
|
805
|
+
'senderType': _0x4eaaa6['senderType'],
|
|
806
|
+
'target': _0x5a6042
|
|
1185
807
|
});
|
|
1186
808
|
continue;
|
|
1187
809
|
}
|
|
1188
|
-
const
|
|
1189
|
-
if (
|
|
1190
|
-
const
|
|
1191
|
-
|
|
810
|
+
const _0xf03ac4 = _0x4a835b['get'](_0x33e2c9);
|
|
811
|
+
if (_0xf03ac4) {
|
|
812
|
+
const _0x52686f = asRecord(_0xf03ac4[_0xbaaae7(_0x3b8add._0x564396)]), _0x154f90 = typeof _0x52686f[_0xbaaae7(0x1ec)] === _0xbaaae7(_0x3b8add._0x4760c2) ? _0x52686f[_0xbaaae7(_0x3b8add._0x302bf6)] : '', _0x24477e = typeof _0x52686f[_0xbaaae7(_0x3b8add._0x548bff)] === _0xbaaae7(0x1cd) ? _0x52686f['bodyMarkdown'] : '';
|
|
813
|
+
_0x154f90 && _0x24477e && _0x4e16ad[_0xbaaae7(0x1c2)]({
|
|
1192
814
|
'attachments': [],
|
|
1193
|
-
'content':
|
|
1194
|
-
'createdAt': new Date()[
|
|
1195
|
-
'messageId':
|
|
1196
|
-
'senderName':
|
|
1197
|
-
'senderType':
|
|
1198
|
-
'target':
|
|
815
|
+
'content': _0x24477e,
|
|
816
|
+
'createdAt': new Date()['toISOString'](),
|
|
817
|
+
'messageId': _0x33e2c9,
|
|
818
|
+
'senderName': _0x154f90,
|
|
819
|
+
'senderType': _0x49125c(_0x154f90, _0x1dabae),
|
|
820
|
+
'target': _0x5a6042
|
|
1199
821
|
});
|
|
1200
822
|
}
|
|
1201
823
|
}
|
|
1202
824
|
}
|
|
1203
|
-
const
|
|
1204
|
-
return
|
|
825
|
+
const _0x311ace = _0x7c89e7 ? _0x4e16ad[_0xbaaae7(_0x3b8add._0x16db03)](_0x492c8c => _0x492c8c[_0xbaaae7(0x219)] === _0x7c89e7) : _0x4e16ad;
|
|
826
|
+
return _0x2e76d1 > 0x0 && await _0x50843e(_0x2e76d1), _0x2e76d1 > _0x37ead6 && (_0x37ead6 = _0x2e76d1), { 'messages': _0x311ace };
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
}
|
|
830
|
+
function _0x3278(_0x43a1c4, _0x4652a7) {
|
|
831
|
+
_0x43a1c4 = _0x43a1c4 - 0x130;
|
|
832
|
+
const _0x5c8c72 = _0x5c8c();
|
|
833
|
+
let _0x3278ac = _0x5c8c72[_0x43a1c4];
|
|
834
|
+
if (_0x3278['YKGyec'] === undefined) {
|
|
835
|
+
var _0x78613b = function (_0x556030) {
|
|
836
|
+
const _0x3d0fdc = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
837
|
+
let _0x3efa53 = '', _0x49b2f1 = '';
|
|
838
|
+
for (let _0x580fb6 = 0x0, _0x32b5ca, _0x137e31, _0x383686 = 0x0; _0x137e31 = _0x556030['charAt'](_0x383686++); ~_0x137e31 && (_0x32b5ca = _0x580fb6 % 0x4 ? _0x32b5ca * 0x40 + _0x137e31 : _0x137e31, _0x580fb6++ % 0x4) ? _0x3efa53 += String['fromCharCode'](0xff & _0x32b5ca >> (-0x2 * _0x580fb6 & 0x6)) : 0x0) {
|
|
839
|
+
_0x137e31 = _0x3d0fdc['indexOf'](_0x137e31);
|
|
840
|
+
}
|
|
841
|
+
for (let _0x3bd2af = 0x0, _0x147084 = _0x3efa53['length']; _0x3bd2af < _0x147084; _0x3bd2af++) {
|
|
842
|
+
_0x49b2f1 += '%' + ('00' + _0x3efa53['charCodeAt'](_0x3bd2af)['toString'](0x10))['slice'](-0x2);
|
|
843
|
+
}
|
|
844
|
+
return decodeURIComponent(_0x49b2f1);
|
|
845
|
+
};
|
|
846
|
+
_0x3278['pRNwai'] = _0x78613b, _0x3278['DSoIRU'] = {}, _0x3278['YKGyec'] = !![];
|
|
847
|
+
}
|
|
848
|
+
const _0xb70ff8 = _0x5c8c72[0x0], _0x492663 = _0x43a1c4 + _0xb70ff8, _0x398275 = _0x3278['DSoIRU'][_0x492663];
|
|
849
|
+
return !_0x398275 ? (_0x3278ac = _0x3278['pRNwai'](_0x3278ac), _0x3278['DSoIRU'][_0x492663] = _0x3278ac) : _0x3278ac = _0x398275, _0x3278ac;
|
|
850
|
+
}
|
|
851
|
+
function toLocalTime(_0x5c5e9f) {
|
|
852
|
+
const _0x187d35 = {
|
|
853
|
+
_0x4576e2: 0x1c3,
|
|
854
|
+
_0x23c442: 0x17c,
|
|
855
|
+
_0x387ae0: 0x159,
|
|
856
|
+
_0x2e4b16: 0x1f9
|
|
857
|
+
}, _0x1b7bba = _0x2c1aa0, _0x3f67be = new Date(_0x5c5e9f);
|
|
858
|
+
if (Number[_0x1b7bba(0x239)](_0x3f67be[_0x1b7bba(0x1a2)]()))
|
|
859
|
+
return _0x5c5e9f;
|
|
860
|
+
const _0x2e41e8 = _0x991513 => String(_0x991513)[_0x1b7bba(0x209)](0x2, '0');
|
|
861
|
+
return _0x3f67be[_0x1b7bba(0x1c9)]() + '-' + _0x2e41e8(_0x3f67be[_0x1b7bba(_0x187d35._0x4576e2)]() + 0x1) + '-' + _0x2e41e8(_0x3f67be[_0x1b7bba(_0x187d35._0x23c442)]()) + '\x20' + _0x2e41e8(_0x3f67be[_0x1b7bba(_0x187d35._0x387ae0)]()) + ':' + _0x2e41e8(_0x3f67be[_0x1b7bba(_0x187d35._0x2e4b16)]()) + ':' + _0x2e41e8(_0x3f67be[_0x1b7bba(0x13f)]());
|
|
862
|
+
}
|
|
863
|
+
function formatAttachmentSuffix(_0x2cf165) {
|
|
864
|
+
const _0x6185df = {
|
|
865
|
+
_0x3f39dc: 0x282,
|
|
866
|
+
_0x3d74d3: 0x161,
|
|
867
|
+
_0x2f8786: 0x212
|
|
868
|
+
}, _0x17af62 = _0x2c1aa0;
|
|
869
|
+
if (!_0x2cf165 || _0x2cf165['length'] === 0x0)
|
|
870
|
+
return '';
|
|
871
|
+
return '\x20[' + _0x2cf165[_0x17af62(_0x6185df._0x3f39dc)] + _0x17af62(_0x6185df._0x3d74d3) + (_0x2cf165[_0x17af62(_0x6185df._0x3f39dc)] > 0x1 ? 's' : '') + ':\x20' + _0x2cf165[_0x17af62(_0x6185df._0x2f8786)](_0x397bb4 => _0x397bb4[_0x17af62(0x1e1)] + _0x17af62(0x261) + _0x397bb4['id'] + ')')[_0x17af62(0x229)](',\x20') + _0x17af62(0x28d);
|
|
872
|
+
}
|
|
873
|
+
function formatCheckMessages(_0x28c83c) {
|
|
874
|
+
const _0x39a3b7 = { _0x28b775: 0x229 }, _0x68a5ce = {
|
|
875
|
+
_0x4f0841: 0x1ab,
|
|
876
|
+
_0x1a3c2f: 0x174,
|
|
877
|
+
_0x4c1822: 0x1eb,
|
|
878
|
+
_0x3c802a: 0x22f,
|
|
879
|
+
_0x489172: 0x225,
|
|
880
|
+
_0x39e01b: 0x1a9,
|
|
881
|
+
_0x498dad: 0x1a6,
|
|
882
|
+
_0x44d294: 0x203
|
|
883
|
+
}, _0x38238b = _0x2c1aa0;
|
|
884
|
+
if (_0x28c83c[_0x38238b(0x282)] === 0x0)
|
|
885
|
+
return 'No\x20new\x20messages.';
|
|
886
|
+
return _0x28c83c['map'](_0x5e4063 => {
|
|
887
|
+
const _0x3260d6 = _0x38238b, _0x26ca10 = _0x5e4063[_0x3260d6(_0x68a5ce._0x4f0841)] === _0x3260d6(0x182) ? _0x3260d6(_0x68a5ce._0x1a3c2f) : '';
|
|
888
|
+
return _0x3260d6(_0x68a5ce._0x4c1822) + _0x5e4063[_0x3260d6(0x219)] + _0x3260d6(0x2aa) + _0x5e4063[_0x3260d6(_0x68a5ce._0x3c802a)][_0x3260d6(_0x68a5ce._0x489172)](0x0, 0x8) + _0x3260d6(0x278) + toLocalTime(_0x5e4063[_0x3260d6(0x24e)]) + _0x26ca10 + _0x3260d6(_0x68a5ce._0x39e01b) + _0x5e4063[_0x3260d6(_0x68a5ce._0x498dad)] + ':\x20' + _0x5e4063[_0x3260d6(0x1a0)] + formatAttachmentSuffix(_0x5e4063[_0x3260d6(_0x68a5ce._0x44d294)]);
|
|
889
|
+
})[_0x38238b(_0x39a3b7._0x28b775)]('\x0a');
|
|
890
|
+
}
|
|
891
|
+
function formatHistory(_0x491faf) {
|
|
892
|
+
const _0x3a97a7 = {
|
|
893
|
+
_0x502c98: 0x160,
|
|
894
|
+
_0xdddfe1: 0x266
|
|
895
|
+
}, _0x59ce38 = {
|
|
896
|
+
_0x3b6c19: 0x182,
|
|
897
|
+
_0x611b4a: 0x1f7,
|
|
898
|
+
_0x2b2db9: 0x166,
|
|
899
|
+
_0x2f1c43: 0x24e,
|
|
900
|
+
_0x48d730: 0x1a6
|
|
901
|
+
}, _0x23a8e4 = _0x2c1aa0;
|
|
902
|
+
if (_0x491faf[_0x23a8e4(_0x3a97a7._0x502c98)]['length'] === 0x0)
|
|
903
|
+
return '##\x20Message\x20History\x20for\x20' + _0x491faf['channel'] + _0x23a8e4(0x283);
|
|
904
|
+
const _0x26acef = _0x491faf['messages']['map'](_0x55bd93 => {
|
|
905
|
+
const _0x322502 = _0x23a8e4, _0x223e54 = _0x55bd93[_0x322502(0x1ab)] === _0x322502(_0x59ce38._0x3b6c19) ? _0x322502(0x174) : '';
|
|
906
|
+
return _0x322502(_0x59ce38._0x611b4a) + _0x55bd93[_0x322502(_0x59ce38._0x2b2db9)] + '\x20msg=' + _0x55bd93[_0x322502(0x22f)] + _0x322502(0x278) + toLocalTime(_0x55bd93[_0x322502(_0x59ce38._0x2f1c43)]) + _0x223e54 + ']\x20@' + _0x55bd93[_0x322502(_0x59ce38._0x48d730)] + ':\x20' + _0x55bd93[_0x322502(0x1a0)] + formatAttachmentSuffix(_0x55bd93['attachments']);
|
|
907
|
+
})[_0x23a8e4(0x229)]('\x0a'), _0x35daef = _0x491faf[_0x23a8e4(0x298)] && _0x491faf['nextCursor'] ? '\x0a\x0a---\x20' + _0x491faf[_0x23a8e4(_0x3a97a7._0x502c98)]['length'] + _0x23a8e4(0x21d) + _0x491faf['nextCursor'] + _0x23a8e4(_0x3a97a7._0xdddfe1) : '';
|
|
908
|
+
return '##\x20Message\x20History\x20for\x20' + _0x491faf['channel'] + '\x20(' + _0x491faf[_0x23a8e4(0x160)]['length'] + _0x23a8e4(0x241) + _0x26acef + _0x35daef;
|
|
909
|
+
}
|
|
910
|
+
function formatServerDirectory(_0x1d2265) {
|
|
911
|
+
const _0x41775e = {
|
|
912
|
+
_0x37a17b: 0x1b5,
|
|
913
|
+
_0xb06054: 0x282,
|
|
914
|
+
_0x486bd4: 0x229,
|
|
915
|
+
_0x456745: 0x27d,
|
|
916
|
+
_0x27a4c7: 0x155,
|
|
917
|
+
_0x3673ef: 0x27d,
|
|
918
|
+
_0x3e18c7: 0x1cf,
|
|
919
|
+
_0x4597c3: 0x18d,
|
|
920
|
+
_0x474ff8: 0x1bf,
|
|
921
|
+
_0xd85472: 0x237
|
|
922
|
+
}, _0x31b0d0 = _0x2c1aa0, _0x249260 = _0x1d2265[_0x31b0d0(_0x41775e._0x37a17b)][_0x31b0d0(_0x41775e._0xb06054)] > 0x0 ? _0x1d2265[_0x31b0d0(_0x41775e._0x37a17b)][_0x31b0d0(0x212)](_0x5a8a21 => _0x5a8a21['description'] ? _0x31b0d0(0x1fa) + _0x5a8a21[_0x31b0d0(0x16e)] + _0x31b0d0(0x1e9) + _0x5a8a21[_0x31b0d0(0x145)] : _0x31b0d0(0x1fa) + _0x5a8a21[_0x31b0d0(0x16e)])[_0x31b0d0(_0x41775e._0x486bd4)]('\x0a') : _0x31b0d0(_0x41775e._0x456745), _0x1c48ac = _0x1d2265[_0x31b0d0(_0x41775e._0x27a4c7)]['length'] > 0x0 ? _0x1d2265[_0x31b0d0(0x155)][_0x31b0d0(0x212)](_0x1dc783 => _0x31b0d0(0x1d0) + _0x1dc783[_0x31b0d0(0x16e)])[_0x31b0d0(0x229)]('\x0a') : _0x31b0d0(_0x41775e._0x3673ef), _0x296995 = _0x1d2265['humans'][_0x31b0d0(_0x41775e._0xb06054)] > 0x0 ? _0x1d2265[_0x31b0d0(_0x41775e._0x3e18c7)]['map'](_0x22f5aa => _0x31b0d0(0x1d0) + _0x22f5aa['name'])['join']('\x0a') : _0x31b0d0(0x27d);
|
|
923
|
+
return [
|
|
924
|
+
_0x31b0d0(_0x41775e._0x4597c3) + _0x1d2265[_0x31b0d0(_0x41775e._0x474ff8)],
|
|
925
|
+
'',
|
|
926
|
+
_0x31b0d0(0x18e),
|
|
927
|
+
_0x249260,
|
|
928
|
+
'',
|
|
929
|
+
_0x31b0d0(0x184),
|
|
930
|
+
_0x1c48ac,
|
|
931
|
+
'',
|
|
932
|
+
_0x31b0d0(_0x41775e._0xd85472),
|
|
933
|
+
_0x296995
|
|
934
|
+
]['join']('\x0a');
|
|
935
|
+
}
|
|
936
|
+
function formatUploadResult(_0x250740) {
|
|
937
|
+
const _0x30a1c7 = {
|
|
938
|
+
_0x18683c: 0x1e1,
|
|
939
|
+
_0x4e8e54: 0x1cc
|
|
940
|
+
}, _0x245fee = _0x2c1aa0;
|
|
941
|
+
return _0x245fee(0x1c4) + _0x250740[_0x245fee(_0x30a1c7._0x18683c)] + '\x20(' + (_0x250740[_0x245fee(_0x30a1c7._0x4e8e54)] / 0x400)['toFixed'](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x250740['attachmentId'] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
942
|
+
}
|
|
943
|
+
function formatViewFileResult(_0x367ceb, _0x253767) {
|
|
944
|
+
return _0x253767 ? 'File\x20already\x20cached\x20at:\x20' + _0x367ceb : 'Downloaded\x20to:\x20' + _0x367ceb;
|
|
945
|
+
}
|
|
946
|
+
function formatTaskList(_0x1df1a8, _0x86ffd) {
|
|
947
|
+
const _0x46ca45 = {
|
|
948
|
+
_0x2c80ca: 0x290,
|
|
949
|
+
_0x2f8d50: 0x212
|
|
950
|
+
}, _0x2fd232 = {
|
|
951
|
+
_0x2f3a68: 0x22f,
|
|
952
|
+
_0xeae961: 0x19f,
|
|
953
|
+
_0x30837b: 0x152
|
|
954
|
+
}, _0xa1b94d = _0x2c1aa0;
|
|
955
|
+
if (_0x1df1a8['length'] === 0x0)
|
|
956
|
+
return _0xa1b94d(_0x46ca45._0x2c80ca);
|
|
957
|
+
return _0x1df1a8[_0xa1b94d(_0x46ca45._0x2f8d50)](_0x5b5a7d => {
|
|
958
|
+
const _0x1b019c = _0xa1b94d, _0x44fb97 = _0x5b5a7d[_0x1b019c(0x1ad)] == null ? '(legacy)' : '#' + _0x5b5a7d[_0x1b019c(0x1ad)], _0x2874f5 = _0x5b5a7d['messageId'] ? '\x20message=' + _0x5b5a7d[_0x1b019c(_0x2fd232._0x2f3a68)] : '', _0x4ed519 = _0x86ffd && _0x5b5a7d['taskNumber'] != null && _0x86ffd[_0x1b019c(0x1b0)](_0x5b5a7d['taskNumber']) ? _0x1b019c(_0x2fd232._0xeae961) : '';
|
|
959
|
+
return _0x44fb97 + '\x20[' + _0x5b5a7d[_0x1b019c(_0x2fd232._0x30837b)] + ']\x20' + _0x5b5a7d['title'] + _0x2874f5 + _0x4ed519;
|
|
960
|
+
})[_0xa1b94d(0x229)]('\x0a');
|
|
961
|
+
}
|
|
962
|
+
function formatCreatedTasks(_0x473eaa) {
|
|
963
|
+
const _0x7074c2 = {
|
|
964
|
+
_0x3e7eaf: 0x254,
|
|
965
|
+
_0x452e71: 0x181,
|
|
966
|
+
_0xfa1a1: 0x22f
|
|
967
|
+
}, _0x13f308 = _0x2c1aa0;
|
|
968
|
+
if (_0x473eaa[_0x13f308(0x282)] === 0x0)
|
|
969
|
+
return _0x13f308(0x1ff);
|
|
970
|
+
return _0x473eaa['map'](_0x84b96e => {
|
|
971
|
+
const _0x518bc5 = _0x13f308, _0x2b6379 = _0x84b96e[_0x518bc5(0x1ad)] == null ? _0x518bc5(_0x7074c2._0x3e7eaf) : '#' + _0x84b96e[_0x518bc5(0x1ad)];
|
|
972
|
+
return _0x2b6379 + '\x20' + _0x84b96e['title'] + _0x518bc5(_0x7074c2._0x452e71) + _0x84b96e[_0x518bc5(_0x7074c2._0xfa1a1)];
|
|
973
|
+
})[_0x13f308(0x229)]('\x0a');
|
|
974
|
+
}
|
|
975
|
+
function formatClaimTaskResults(_0x418c) {
|
|
976
|
+
const _0x6587cc = {
|
|
977
|
+
_0x39db4e: 0x1df,
|
|
978
|
+
_0x326473: 0x212
|
|
979
|
+
}, _0x2f161c = {
|
|
980
|
+
_0x71a520: 0x26c,
|
|
981
|
+
_0x49e8d2: 0x26f,
|
|
982
|
+
_0x4bb606: 0x1a8,
|
|
983
|
+
_0x1ed262: 0x2a6,
|
|
984
|
+
_0xe54abe: 0x280,
|
|
985
|
+
_0x373461: 0x138,
|
|
986
|
+
_0x33e030: 0x1ad,
|
|
987
|
+
_0x3de6f6: 0x22f,
|
|
988
|
+
_0x46aba3: 0x1ca,
|
|
989
|
+
_0x393e69: 0x23e
|
|
990
|
+
}, _0x40549a = _0x2c1aa0;
|
|
991
|
+
if (_0x418c[_0x40549a(0x282)] === 0x0)
|
|
992
|
+
return _0x40549a(_0x6587cc._0x39db4e);
|
|
993
|
+
return _0x418c[_0x40549a(_0x6587cc._0x326473)](_0x39a128 => {
|
|
994
|
+
const _0x385104 = _0x40549a;
|
|
995
|
+
if (_0x39a128[_0x385104(0x1cb)]) {
|
|
996
|
+
const _0x3741c5 = _0x39a128['taskNumber'] == null ? _0x385104(0x254) : '#' + _0x39a128[_0x385104(0x1ad)], _0x37d397 = _0x39a128[_0x385104(0x22f)] ? '\x20message=' + _0x39a128[_0x385104(0x22f)] : '', _0x5f3c5f = _0x39a128[_0x385104(_0x2f161c._0x71a520)] ? [
|
|
997
|
+
'workerHandoff=true',
|
|
998
|
+
_0x39a128['stopMain'] ? 'stopMain=true' : null,
|
|
999
|
+
_0x39a128[_0x385104(0x1ee)] ? 'executionMode=' + _0x39a128[_0x385104(0x1ee)] : null,
|
|
1000
|
+
_0x39a128[_0x385104(_0x2f161c._0x49e8d2)] ? _0x385104(_0x2f161c._0x4bb606) + _0x39a128[_0x385104(_0x2f161c._0x49e8d2)] : null,
|
|
1001
|
+
_0x39a128[_0x385104(_0x2f161c._0x1ed262)] ? _0x385104(_0x2f161c._0xe54abe) + _0x39a128[_0x385104(_0x2f161c._0x1ed262)] : null
|
|
1002
|
+
][_0x385104(0x21e)](Boolean)['join']('\x20') : _0x39a128[_0x385104(0x138)] ? _0x385104(0x230) + _0x39a128[_0x385104(_0x2f161c._0x373461)] : '';
|
|
1003
|
+
return [
|
|
1004
|
+
_0x3741c5 + '\x20claimed' + _0x37d397,
|
|
1005
|
+
_0x5f3c5f
|
|
1006
|
+
][_0x385104(0x21e)](Boolean)[_0x385104(0x229)]('\x20');
|
|
1007
|
+
}
|
|
1008
|
+
const _0x5c5338 = _0x39a128[_0x385104(_0x2f161c._0x33e030)] == null ? _0x39a128[_0x385104(_0x2f161c._0x3de6f6)] ?? _0x385104(_0x2f161c._0x46aba3) : '#' + _0x39a128['taskNumber'];
|
|
1009
|
+
return _0x5c5338 + _0x385104(0x1e8) + (_0x39a128['reason'] ?? _0x385104(_0x2f161c._0x393e69));
|
|
1010
|
+
})[_0x40549a(0x229)]('\x0a');
|
|
1011
|
+
}
|
|
1012
|
+
function formatUnclaimTaskResult(_0x353cd5) {
|
|
1013
|
+
const _0x4e268a = {
|
|
1014
|
+
_0x39c80d: 0x1ad,
|
|
1015
|
+
_0x1ce544: 0x202
|
|
1016
|
+
}, _0x3da968 = _0x2c1aa0, _0x5a764a = _0x353cd5[_0x3da968(_0x4e268a._0x39c80d)] == null ? '(legacy)' : '#' + _0x353cd5[_0x3da968(0x1ad)];
|
|
1017
|
+
return _0x5a764a + _0x3da968(_0x4e268a._0x1ce544) + _0x353cd5[_0x3da968(0x152)];
|
|
1018
|
+
}
|
|
1019
|
+
function formatUpdateTaskStatusResult(_0x426527) {
|
|
1020
|
+
const _0x3fd867 = { _0x119b7e: 0x202 }, _0x49456b = _0x2c1aa0, _0x16fb7c = _0x426527['taskNumber'] == null ? '(legacy)' : '#' + _0x426527['taskNumber'];
|
|
1021
|
+
return _0x16fb7c + _0x49456b(_0x3fd867._0x119b7e) + _0x426527['status'];
|
|
1022
|
+
}
|
|
1023
|
+
function getChatBridgeToolDefinitions() {
|
|
1024
|
+
const _0x330729 = {
|
|
1025
|
+
_0x40bd63: 0x1fd,
|
|
1026
|
+
_0x193e13: 0x1e0,
|
|
1027
|
+
_0x8c5328: 0x20a,
|
|
1028
|
+
_0xa136f5: 0x2a8,
|
|
1029
|
+
_0x379da6: 0x252,
|
|
1030
|
+
_0x3a6c05: 0x16f,
|
|
1031
|
+
_0xe96868: 0x23d,
|
|
1032
|
+
_0x45548f: 0x132
|
|
1033
|
+
}, _0xc715e1 = _0x2c1aa0;
|
|
1034
|
+
return [
|
|
1035
|
+
{ 'name': _0xc715e1(_0x330729._0x40bd63) },
|
|
1036
|
+
{ 'name': _0xc715e1(_0x330729._0x193e13) },
|
|
1037
|
+
{ 'name': 'read_history' },
|
|
1038
|
+
{ 'name': _0xc715e1(_0x330729._0x8c5328) },
|
|
1039
|
+
{ 'name': 'upload_file' },
|
|
1040
|
+
{ 'name': _0xc715e1(0x287) },
|
|
1041
|
+
{ 'name': _0xc715e1(0x201) },
|
|
1042
|
+
{ 'name': 'create_tasks' },
|
|
1043
|
+
{ 'name': _0xc715e1(0x234) },
|
|
1044
|
+
{ 'name': 'unclaim_task' },
|
|
1045
|
+
{ 'name': _0xc715e1(0x27b) },
|
|
1046
|
+
{ 'name': _0xc715e1(_0x330729._0xa136f5) },
|
|
1047
|
+
{ 'name': _0xc715e1(_0x330729._0x379da6) },
|
|
1048
|
+
{ 'name': 'get_worker_result' },
|
|
1049
|
+
{ 'name': _0xc715e1(_0x330729._0x3a6c05) },
|
|
1050
|
+
{ 'name': _0xc715e1(_0x330729._0xe96868) },
|
|
1051
|
+
{ 'name': _0xc715e1(_0x330729._0x45548f) }
|
|
1052
|
+
];
|
|
1053
|
+
}
|
|
1054
|
+
function createChatBridgeHandlers(_0x121873) {
|
|
1055
|
+
const _0x3b0500 = {
|
|
1056
|
+
_0x156f62: 0x1d3,
|
|
1057
|
+
_0x1f35c0: 0x146,
|
|
1058
|
+
_0x398e66: 0x29a,
|
|
1059
|
+
_0x5945d1: 0x210,
|
|
1060
|
+
_0x26d8ac: 0x1aa
|
|
1061
|
+
}, _0x324241 = {
|
|
1062
|
+
_0x5b7155: 0x156,
|
|
1063
|
+
_0x4fc778: 0x20b,
|
|
1064
|
+
_0x3f0fce: 0x146,
|
|
1065
|
+
_0x1c218a: 0x29a,
|
|
1066
|
+
_0x2577bd: 0x1e5,
|
|
1067
|
+
_0x10c957: 0x15a,
|
|
1068
|
+
_0x2f4145: 0x210,
|
|
1069
|
+
_0x1bd1c1: 0x18a,
|
|
1070
|
+
_0x5ee23c: 0x193
|
|
1071
|
+
}, _0x2b1bc1 = {
|
|
1072
|
+
_0x4a5c78: 0x20b,
|
|
1073
|
+
_0x130a39: 0x1fc,
|
|
1074
|
+
_0x3f2ffa: 0x146,
|
|
1075
|
+
_0x1fe65a: 0x255,
|
|
1076
|
+
_0x3a2c8d: 0x227,
|
|
1077
|
+
_0x521028: 0x210,
|
|
1078
|
+
_0x484f50: 0x268,
|
|
1079
|
+
_0x12ba14: 0x224
|
|
1080
|
+
}, _0x21e62e = {
|
|
1081
|
+
_0x515c09: 0x20b,
|
|
1082
|
+
_0xa6124a: 0x1fc,
|
|
1083
|
+
_0x44f3e4: 0x20b,
|
|
1084
|
+
_0x261357: 0x173,
|
|
1085
|
+
_0x1f014e: 0x24d,
|
|
1086
|
+
_0x740616: 0x193
|
|
1087
|
+
}, _0x145963 = {
|
|
1088
|
+
_0x500c0a: 0x20b,
|
|
1089
|
+
_0x5ccf46: 0x193,
|
|
1090
|
+
_0x38efc3: 0x18a,
|
|
1091
|
+
_0x24881b: 0x2a1,
|
|
1092
|
+
_0x514472: 0x18a
|
|
1093
|
+
}, _0x46876c = {
|
|
1094
|
+
_0x5f2b84: 0x20b,
|
|
1095
|
+
_0x58dec7: 0x1e5,
|
|
1096
|
+
_0x2183c9: 0x29a,
|
|
1097
|
+
_0x2b015c: 0x1be,
|
|
1098
|
+
_0x12579f: 0x14a,
|
|
1099
|
+
_0x4ae969: 0x15a,
|
|
1100
|
+
_0x5ad891: 0x210,
|
|
1101
|
+
_0x4dfda4: 0x28b,
|
|
1102
|
+
_0x409338: 0x136
|
|
1103
|
+
}, _0xd21ad5 = {
|
|
1104
|
+
_0x5aead9: 0x1e2,
|
|
1105
|
+
_0x319576: 0x1a1,
|
|
1106
|
+
_0x56b3eb: 0x29d,
|
|
1107
|
+
_0x21f559: 0x186,
|
|
1108
|
+
_0x199e31: 0x245
|
|
1109
|
+
}, _0x597d44 = {
|
|
1110
|
+
_0x1b6531: 0x135,
|
|
1111
|
+
_0x164795: 0x17d
|
|
1112
|
+
}, _0xda40d4 = { _0x465549: 0x17d }, _0x2ceb0f = {
|
|
1113
|
+
_0x3aa2ed: 0x17d,
|
|
1114
|
+
_0x38ecfb: 0x23c,
|
|
1115
|
+
_0x573efc: 0x272
|
|
1116
|
+
}, _0x559ab1 = { _0x452d58: 0x169 }, _0xf096dd = {
|
|
1117
|
+
_0x323eda: 0x17d,
|
|
1118
|
+
_0x11fb14: 0x152,
|
|
1119
|
+
_0x165913: 0x281,
|
|
1120
|
+
_0x263cfa: 0x1bb,
|
|
1121
|
+
_0x1ec62f: 0x1ad,
|
|
1122
|
+
_0x14e8b8: 0x197
|
|
1123
|
+
}, _0x55814b = {
|
|
1124
|
+
_0x5f13a0: 0x17d,
|
|
1125
|
+
_0x5f3724: 0x1ef
|
|
1126
|
+
}, _0x3bc921 = {
|
|
1127
|
+
_0x23164b: 0x17d,
|
|
1128
|
+
_0x2ec12e: 0x240
|
|
1129
|
+
}, _0x5386d0 = {
|
|
1130
|
+
_0x5f0f77: 0x21e,
|
|
1131
|
+
_0x2366c9: 0x160
|
|
1132
|
+
}, _0x1690f0 = {
|
|
1133
|
+
_0x386590: 0x17d,
|
|
1134
|
+
_0x1f2df8: 0x17f,
|
|
1135
|
+
_0x2bd7fd: 0x1b7
|
|
1136
|
+
}, _0x3b8d1d = {
|
|
1137
|
+
_0x4750a8: 0x1e5,
|
|
1138
|
+
_0x38b7ec: 0x20b,
|
|
1139
|
+
_0x4c9d3e: 0x197,
|
|
1140
|
+
_0x141074: 0x1c0,
|
|
1141
|
+
_0x5a2375: 0x1e7
|
|
1142
|
+
}, _0x18d8c8 = {
|
|
1143
|
+
_0x267e6f: 0x1e5,
|
|
1144
|
+
_0x5b011b: 0x15d,
|
|
1145
|
+
_0x3d8dda: 0x13a,
|
|
1146
|
+
_0x5236e6: 0x297,
|
|
1147
|
+
_0x2b155c: 0x221,
|
|
1148
|
+
_0x56608: 0x22f,
|
|
1149
|
+
_0x50df0b: 0x2aa,
|
|
1150
|
+
_0x2a0f45: 0x22f,
|
|
1151
|
+
_0x1977df: 0x278,
|
|
1152
|
+
_0x60d79b: 0x177,
|
|
1153
|
+
_0x9d4913: 0x277,
|
|
1154
|
+
_0x4007d5: 0x23f,
|
|
1155
|
+
_0x3c97b1: 0x153,
|
|
1156
|
+
_0x4266c2: 0x226,
|
|
1157
|
+
_0x406689: 0x1e5,
|
|
1158
|
+
_0x227481: 0x271,
|
|
1159
|
+
_0x1afb2b: 0x1ad,
|
|
1160
|
+
_0x55cbd6: 0x247,
|
|
1161
|
+
_0x2b15b1: 0x15a,
|
|
1162
|
+
_0x4d4acc: 0x210,
|
|
1163
|
+
_0x1affc0: 0x141
|
|
1164
|
+
};
|
|
1165
|
+
async function _0x3c1456(_0x56ca09) {
|
|
1166
|
+
const _0x20de21 = _0x3278;
|
|
1167
|
+
if (!_0x121873[_0x20de21(0x20b)] || !_0x121873[_0x20de21(_0x18d8c8._0x267e6f)] || _0x121873[_0x20de21(_0x18d8c8._0x5b011b)] || _0x121873[_0x20de21(_0x18d8c8._0x3d8dda)] !== !![])
|
|
1168
|
+
return null;
|
|
1169
|
+
const _0x2a1156 = parseTarget(_0x56ca09[_0x20de21(_0x18d8c8._0x5236e6)]);
|
|
1170
|
+
if (_0x2a1156['kind'] !== _0x20de21(0x297))
|
|
1171
|
+
return null;
|
|
1172
|
+
const _0x13878a = _0x2a1156[_0x20de21(_0x18d8c8._0x2b155c)] + ':' + _0x56ca09[_0x20de21(_0x18d8c8._0x56608)][_0x20de21(0x225)](0x0, 0x8), _0x19738c = await _0x121873[_0x20de21(0x17d)][_0x20de21(0x240)]({
|
|
1173
|
+
'channel': _0x13878a,
|
|
1174
|
+
'limit': 0x14
|
|
1175
|
+
}), _0x2de390 = _0x19738c[_0x20de21(0x160)][_0x20de21(0x1a4)](_0x47c73b => _0x47c73b[_0x20de21(0x22f)] === _0x56ca09[_0x20de21(0x22f)]), _0x3aceda = _0x56ca09['taskNumber'] == null ? _0x20de21(0x254) : '#' + _0x56ca09['taskNumber'], _0x46dc09 = [
|
|
1176
|
+
'[target=' + _0x13878a + _0x20de21(_0x18d8c8._0x50df0b) + _0x56ca09[_0x20de21(_0x18d8c8._0x2a0f45)][_0x20de21(0x225)](0x0, 0x8) + _0x20de21(_0x18d8c8._0x1977df) + new Date()[_0x20de21(0x14f)]() + _0x20de21(_0x18d8c8._0x60d79b) + _0x3aceda + '\x20已切换到\x20worker\x20执行',
|
|
1177
|
+
'',
|
|
1178
|
+
_0x2de390 ? 'Root\x20task\x20message:\x0a' + _0x2de390[_0x20de21(0x1a0)] : _0x20de21(_0x18d8c8._0x9d4913) + _0x56ca09[_0x20de21(_0x18d8c8._0x2a0f45)],
|
|
1179
|
+
'',
|
|
1180
|
+
_0x20de21(_0x18d8c8._0x4007d5) + _0x13878a,
|
|
1181
|
+
_0x20de21(_0x18d8c8._0x3c97b1)
|
|
1182
|
+
]['join']('\x0a'), _0x388ab3 = await fetch(_0x121873['daemonLocalUrl'] + _0x20de21(_0x18d8c8._0x4266c2), {
|
|
1183
|
+
'method': _0x20de21(0x1d3),
|
|
1184
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1185
|
+
'body': JSON['stringify']({
|
|
1186
|
+
'agent_id': _0x121873[_0x20de21(_0x18d8c8._0x406689)],
|
|
1187
|
+
'thread_target': _0x13878a,
|
|
1188
|
+
'spawn_packet': {
|
|
1189
|
+
'replyTarget': _0x13878a,
|
|
1190
|
+
..._0x56ca09['taskId'] ? { 'taskId': _0x56ca09['taskId'] } : _0x56ca09[_0x20de21(0x1ad)] != null ? { 'taskId': _0x20de21(_0x18d8c8._0x227481) + _0x56ca09[_0x20de21(_0x18d8c8._0x1afb2b)] } : {}
|
|
1191
|
+
},
|
|
1192
|
+
'payload': {
|
|
1193
|
+
'mode': _0x20de21(_0x18d8c8._0x55cbd6),
|
|
1194
|
+
'text': _0x46dc09
|
|
1195
|
+
}
|
|
1196
|
+
})
|
|
1197
|
+
}), _0x144e82 = await _0x388ab3[_0x20de21(_0x18d8c8._0x2b15b1)]();
|
|
1198
|
+
if (!_0x144e82['ok'])
|
|
1199
|
+
throw new Error(_0x144e82[_0x20de21(_0x18d8c8._0x4d4acc)] ?? 'worker\x20handoff\x20failed');
|
|
1200
|
+
return {
|
|
1201
|
+
'stopMain': !![],
|
|
1202
|
+
'threadTarget': _0x13878a,
|
|
1203
|
+
'workerDisposition': _0x144e82[_0x20de21(0x28b)] === _0x20de21(0x141) ? _0x20de21(_0x18d8c8._0x1affc0) : 'started',
|
|
1204
|
+
'workerHandoff': !![],
|
|
1205
|
+
'workerSessionId': _0x144e82[_0x20de21(0x270)] ?? '',
|
|
1206
|
+
'executionMode': _0x20de21(0x2a5)
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
async function _0x235142() {
|
|
1210
|
+
const _0x1380a6 = _0x3278;
|
|
1211
|
+
if (!_0x121873['daemonLocalUrl'] || !_0x121873[_0x1380a6(_0x3b8d1d._0x4750a8)] || _0x121873['workerMode'])
|
|
1212
|
+
return null;
|
|
1213
|
+
try {
|
|
1214
|
+
const _0x4b8a48 = await fetch(_0x121873[_0x1380a6(_0x3b8d1d._0x38b7ec)] + _0x1380a6(0x1d1) + encodeURIComponent(_0x121873['agentId'])), _0x1631b4 = await _0x4b8a48['json']();
|
|
1215
|
+
if (!_0x1631b4['ok'])
|
|
1216
|
+
return null;
|
|
1217
|
+
const _0x4a3cf2 = new Set();
|
|
1218
|
+
for (const _0x13d233 of _0x1631b4[_0x1380a6(0x189)]) {
|
|
1219
|
+
_0x13d233['status'] !== _0x1380a6(0x281) && _0x13d233[_0x1380a6(0x1c0)] && _0x4a3cf2[_0x1380a6(_0x3b8d1d._0x4c9d3e)](_0x13d233[_0x1380a6(_0x3b8d1d._0x141074)]);
|
|
1220
|
+
}
|
|
1221
|
+
return _0x4a3cf2[_0x1380a6(_0x3b8d1d._0x5a2375)] > 0x0 ? _0x4a3cf2 : null;
|
|
1222
|
+
} catch {
|
|
1223
|
+
return null;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
return {
|
|
1227
|
+
async 'send_message'(_0x413dcc) {
|
|
1228
|
+
const _0x5bb9f6 = _0x3278, _0x2d84b5 = await _0x121873[_0x5bb9f6(_0x1690f0._0x386590)]['sendMessage']({
|
|
1229
|
+
'attachmentIds': _0x413dcc[_0x5bb9f6(_0x1690f0._0x1f2df8)],
|
|
1230
|
+
'content': _0x413dcc['content'],
|
|
1231
|
+
'target': _0x413dcc[_0x5bb9f6(0x219)]
|
|
1232
|
+
});
|
|
1233
|
+
return _0x5bb9f6(0x258) + _0x413dcc[_0x5bb9f6(0x219)] + _0x5bb9f6(_0x1690f0._0x2bd7fd) + _0x2d84b5['messageId'];
|
|
1234
|
+
},
|
|
1235
|
+
async 'check_messages'() {
|
|
1236
|
+
const _0x4b2bdf = _0x3278, _0x214e1f = await _0x121873[_0x4b2bdf(0x17d)][_0x4b2bdf(0x1dc)]();
|
|
1237
|
+
if (!_0x121873['workerMode']) {
|
|
1238
|
+
const _0x93df93 = await _0x235142();
|
|
1239
|
+
if (_0x93df93)
|
|
1240
|
+
return formatCheckMessages(_0x214e1f['messages'][_0x4b2bdf(_0x5386d0._0x5f0f77)](_0x5841d3 => !_0x93df93[_0x4b2bdf(0x1b0)](_0x5841d3['target'])));
|
|
1241
|
+
}
|
|
1242
|
+
return formatCheckMessages(_0x214e1f[_0x4b2bdf(_0x5386d0._0x2366c9)]);
|
|
1243
|
+
},
|
|
1244
|
+
async 'read_history'(_0x413775) {
|
|
1245
|
+
const _0x511466 = _0x3278, _0x22ba93 = await _0x121873[_0x511466(_0x3bc921._0x23164b)][_0x511466(_0x3bc921._0x2ec12e)](_0x413775);
|
|
1246
|
+
return formatHistory(_0x22ba93);
|
|
1247
|
+
},
|
|
1248
|
+
async 'list_server'() {
|
|
1249
|
+
const _0x5b7df6 = _0x3278, _0x1d443b = await _0x121873[_0x5b7df6(_0x55814b._0x5f13a0)][_0x5b7df6(_0x55814b._0x5f3724)]();
|
|
1250
|
+
return formatServerDirectory(_0x1d443b);
|
|
1251
|
+
},
|
|
1252
|
+
async 'list_tasks'(_0x3b5c9b) {
|
|
1253
|
+
const _0xc71b42 = _0x3278, _0xf2cef = await _0x121873[_0xc71b42(_0xf096dd._0x323eda)][_0xc71b42(0x1d6)](_0x3b5c9b);
|
|
1254
|
+
let _0x1fabe5;
|
|
1255
|
+
if (_0x121873['daemonLocalUrl'] && _0x121873[_0xc71b42(0x1e5)])
|
|
1256
|
+
try {
|
|
1257
|
+
const _0x58c3f3 = await fetch(_0x121873[_0xc71b42(0x20b)] + _0xc71b42(0x1d1) + encodeURIComponent(_0x121873['agentId'])), _0x44bcb4 = await _0x58c3f3['json']();
|
|
1258
|
+
if (_0x44bcb4['ok']) {
|
|
1259
|
+
const _0x4cb972 = _0x3b5c9b[_0xc71b42(0x297)] + ':';
|
|
1260
|
+
_0x1fabe5 = new Set();
|
|
1261
|
+
for (const _0x132534 of _0x44bcb4[_0xc71b42(0x189)]) {
|
|
1262
|
+
if (_0x132534[_0xc71b42(_0xf096dd._0x11fb14)] === _0xc71b42(_0xf096dd._0x165913))
|
|
1263
|
+
continue;
|
|
1264
|
+
if (_0x132534['thread_target']?.[_0xc71b42(0x1c8)](_0x4cb972)) {
|
|
1265
|
+
const _0x4ae558 = _0x132534[_0xc71b42(0x1c0)]['slice'](_0x4cb972[_0xc71b42(0x282)]), _0x2c0c1b = _0xf2cef[_0xc71b42(_0xf096dd._0x263cfa)][_0xc71b42(0x1a4)](_0x44f4fd => _0x44f4fd[_0xc71b42(0x22f)]?.[_0xc71b42(0x1c8)](_0x4ae558) === !![]);
|
|
1266
|
+
if (_0x2c0c1b?.[_0xc71b42(0x1ad)] != null) {
|
|
1267
|
+
_0x1fabe5[_0xc71b42(0x197)](_0x2c0c1b['taskNumber']);
|
|
1268
|
+
continue;
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
if (_0x132534['task_id']) {
|
|
1272
|
+
const _0x2c73b3 = _0xf2cef[_0xc71b42(0x1bb)]['find'](_0x15dc1a => _0x15dc1a[_0xc71b42(0x19b)] === _0x132534[_0xc71b42(0x14a)]);
|
|
1273
|
+
_0x2c73b3?.[_0xc71b42(_0xf096dd._0x1ec62f)] != null && _0x1fabe5[_0xc71b42(_0xf096dd._0x14e8b8)](_0x2c73b3['taskNumber']);
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
} catch {
|
|
1278
|
+
}
|
|
1279
|
+
return formatTaskList(_0xf2cef[_0xc71b42(0x1bb)], _0x1fabe5);
|
|
1280
|
+
},
|
|
1281
|
+
async 'create_tasks'(_0x5d4b7c) {
|
|
1282
|
+
const _0x3a41be = _0x3278, _0x247171 = await _0x121873[_0x3a41be(0x17d)][_0x3a41be(_0x559ab1._0x452d58)](_0x5d4b7c);
|
|
1283
|
+
return formatCreatedTasks(_0x247171['tasks']);
|
|
1284
|
+
},
|
|
1285
|
+
async 'claim_tasks'(_0x31597a) {
|
|
1286
|
+
const _0x2caf63 = {
|
|
1287
|
+
_0x106ca7: 0x1cb,
|
|
1288
|
+
_0x3e1f1f: 0x22f,
|
|
1289
|
+
_0xe5c8e1: 0x297,
|
|
1290
|
+
_0x4ea0b2: 0x1ae
|
|
1291
|
+
}, _0x238a92 = _0x3278, _0x3dee75 = await _0x121873[_0x238a92(_0x2ceb0f._0x3aa2ed)][_0x238a92(_0x2ceb0f._0x38ecfb)](_0x31597a), _0x243f87 = await Promise[_0x238a92(0x208)](_0x3dee75[_0x238a92(_0x2ceb0f._0x573efc)]['map'](async _0x380875 => {
|
|
1292
|
+
const _0x5a6400 = _0x238a92;
|
|
1293
|
+
if (!_0x380875[_0x5a6400(_0x2caf63._0x106ca7)] || !_0x380875[_0x5a6400(_0x2caf63._0x3e1f1f)])
|
|
1294
|
+
return _0x380875;
|
|
1295
|
+
try {
|
|
1296
|
+
const _0x2e9d83 = await _0x3c1456({
|
|
1297
|
+
'channel': _0x31597a[_0x5a6400(_0x2caf63._0xe5c8e1)],
|
|
1298
|
+
'messageId': _0x380875[_0x5a6400(0x22f)],
|
|
1299
|
+
'taskId': _0x380875[_0x5a6400(0x19b)],
|
|
1300
|
+
'taskNumber': _0x380875['taskNumber']
|
|
1301
|
+
});
|
|
1302
|
+
return _0x2e9d83 ? {
|
|
1303
|
+
..._0x380875,
|
|
1304
|
+
..._0x2e9d83
|
|
1305
|
+
} : _0x380875;
|
|
1306
|
+
} catch (_0x46f916) {
|
|
1307
|
+
return {
|
|
1308
|
+
..._0x380875,
|
|
1309
|
+
'workerHandoffError': _0x46f916 instanceof Error ? _0x46f916[_0x5a6400(0x15c)] : _0x5a6400(_0x2caf63._0x4ea0b2)
|
|
1310
|
+
};
|
|
1311
|
+
}
|
|
1312
|
+
}));
|
|
1313
|
+
return formatClaimTaskResults(_0x243f87);
|
|
1314
|
+
},
|
|
1315
|
+
async 'unclaim_task'(_0x490f78) {
|
|
1316
|
+
const _0x338f7f = await _0x121873['client']['unclaimTask'](_0x490f78);
|
|
1317
|
+
return formatUnclaimTaskResult(_0x338f7f);
|
|
1318
|
+
},
|
|
1319
|
+
async 'update_task_status'(_0x7d5bf) {
|
|
1320
|
+
const _0x40fd25 = _0x3278, _0xb6cbac = await _0x121873[_0x40fd25(_0xda40d4._0x465549)][_0x40fd25(0x1b1)](_0x7d5bf);
|
|
1321
|
+
return formatUpdateTaskStatusResult(_0xb6cbac);
|
|
1322
|
+
},
|
|
1323
|
+
async 'upload_file'(_0x3b6d32) {
|
|
1324
|
+
const _0x5e205b = _0x3278, _0x5926db = await _0x121873[_0x5e205b(0x187)](_0x3b6d32[_0x5e205b(_0x597d44._0x1b6531)]), {
|
|
1325
|
+
sizeBytes: _0x5377cf,
|
|
1326
|
+
..._0x593c5d
|
|
1327
|
+
} = _0x5926db, _0x4c97a0 = await _0x121873[_0x5e205b(_0x597d44._0x164795)]['uploadFile']({
|
|
1328
|
+
'channel': _0x3b6d32[_0x5e205b(0x297)],
|
|
1329
|
+
..._0x593c5d
|
|
1330
|
+
});
|
|
1331
|
+
return formatUploadResult(_0x4c97a0);
|
|
1332
|
+
},
|
|
1333
|
+
async 'view_file'(_0x81017a) {
|
|
1334
|
+
const _0xb6a11b = _0x3278, _0x37df23 = await _0x121873[_0xb6a11b(0x1a1)][_0xb6a11b(_0xd21ad5._0x5aead9)](_0x81017a['attachment_id']);
|
|
1335
|
+
if (_0x37df23)
|
|
1336
|
+
return formatViewFileResult(_0x37df23, !![]);
|
|
1337
|
+
const _0x1c857d = await _0x121873['client'][_0xb6a11b(0x1d2)](_0x81017a['attachment_id']), _0x2e5aa3 = await _0x121873[_0xb6a11b(_0xd21ad5._0x319576)][_0xb6a11b(0x206)]({
|
|
1338
|
+
'attachmentId': _0x81017a[_0xb6a11b(0x13e)],
|
|
1339
|
+
'contentType': _0x1c857d[_0xb6a11b(_0xd21ad5._0x56b3eb)],
|
|
1340
|
+
'data': _0x1c857d[_0xb6a11b(_0xd21ad5._0x21f559)],
|
|
1341
|
+
'originalFilename': _0x1c857d[_0xb6a11b(_0xd21ad5._0x199e31)]
|
|
1342
|
+
});
|
|
1343
|
+
return formatViewFileResult(_0x2e5aa3, ![]);
|
|
1344
|
+
},
|
|
1345
|
+
async 'spawn_worker'(_0x4b5f35) {
|
|
1346
|
+
const _0x994f90 = _0x3278;
|
|
1347
|
+
if (!_0x121873[_0x994f90(_0x46876c._0x5f2b84)] || !_0x121873[_0x994f90(_0x46876c._0x58dec7)])
|
|
1348
|
+
return 'Worker\x20features\x20not\x20available\x20(daemon\x20local\x20URL\x20not\x20configured)';
|
|
1349
|
+
const _0x15ec2e = await fetch(_0x121873[_0x994f90(_0x46876c._0x5f2b84)] + _0x994f90(0x215), {
|
|
1350
|
+
'method': 'POST',
|
|
1351
|
+
'headers': { 'Content-Type': _0x994f90(0x146) },
|
|
1352
|
+
'body': JSON[_0x994f90(_0x46876c._0x2183c9)]({
|
|
1353
|
+
'agent_id': _0x121873[_0x994f90(0x1e5)],
|
|
1354
|
+
'work_key': _0x4b5f35['work_key'],
|
|
1355
|
+
'thread_target': _0x4b5f35['thread_target'],
|
|
1356
|
+
'spawn_packet': {
|
|
1357
|
+
'replyTarget': _0x4b5f35[_0x994f90(_0x46876c._0x2b015c)],
|
|
1358
|
+
'taskId': _0x4b5f35[_0x994f90(_0x46876c._0x12579f)]
|
|
1359
|
+
}
|
|
1360
|
+
})
|
|
1361
|
+
}), _0x3adf99 = await _0x15ec2e[_0x994f90(_0x46876c._0x4ae969)]();
|
|
1362
|
+
if (!_0x3adf99['ok'])
|
|
1363
|
+
throw new Error(_0x3adf99[_0x994f90(_0x46876c._0x5ad891)] ?? _0x994f90(0x25c));
|
|
1364
|
+
const _0x4cb4cc = _0x3adf99[_0x994f90(_0x46876c._0x4dfda4)] === _0x994f90(0x141) ? _0x994f90(0x141) : _0x994f90(_0x46876c._0x409338);
|
|
1365
|
+
return 'Worker\x20' + _0x4cb4cc + _0x994f90(0x1f2) + _0x3adf99[_0x994f90(0x270)] + _0x994f90(0x20e) + _0x4b5f35['work_key'];
|
|
1366
|
+
},
|
|
1367
|
+
async 'get_worker_status'(_0x1d8cef) {
|
|
1368
|
+
const _0x245fda = _0x3278;
|
|
1369
|
+
if (!_0x121873[_0x245fda(_0x145963._0x500c0a)])
|
|
1370
|
+
return _0x245fda(0x1fc);
|
|
1371
|
+
const _0x299a8f = await fetch(_0x121873['daemonLocalUrl'] + _0x245fda(0x1c1) + encodeURIComponent(_0x1d8cef[_0x245fda(_0x145963._0x5ccf46)])), _0x33725d = await _0x299a8f[_0x245fda(0x15a)]();
|
|
1372
|
+
if (!_0x33725d['ok'])
|
|
1373
|
+
return _0x245fda(_0x145963._0x38efc3) + _0x1d8cef[_0x245fda(0x193)] + _0x245fda(_0x145963._0x24881b);
|
|
1374
|
+
return _0x245fda(_0x145963._0x514472) + _0x1d8cef[_0x245fda(0x193)] + _0x245fda(0x296) + _0x33725d[_0x245fda(0x152)];
|
|
1375
|
+
},
|
|
1376
|
+
async 'get_worker_result'(_0x1aaedd) {
|
|
1377
|
+
const _0x38de87 = _0x3278;
|
|
1378
|
+
if (!_0x121873[_0x38de87(_0x21e62e._0x515c09)])
|
|
1379
|
+
return _0x38de87(_0x21e62e._0xa6124a);
|
|
1380
|
+
const _0x449d78 = await fetch(_0x121873[_0x38de87(_0x21e62e._0x44f3e4)] + _0x38de87(_0x21e62e._0x261357) + encodeURIComponent(_0x1aaedd[_0x38de87(0x193)])), _0x10ce96 = await _0x449d78['json']();
|
|
1381
|
+
if (!_0x10ce96['resume_packet'])
|
|
1382
|
+
return _0x38de87(_0x21e62e._0x1f014e) + _0x1aaedd[_0x38de87(_0x21e62e._0x740616)] + '\x22';
|
|
1383
|
+
return JSON['stringify'](_0x10ce96[_0x38de87(0x267)], null, 0x2);
|
|
1384
|
+
},
|
|
1385
|
+
async 'finish_worker'(_0x4bdf89) {
|
|
1386
|
+
const _0x57f783 = _0x3278;
|
|
1387
|
+
if (!_0x121873[_0x57f783(_0x2b1bc1._0x4a5c78)])
|
|
1388
|
+
return _0x57f783(_0x2b1bc1._0x130a39);
|
|
1389
|
+
const _0x5f0f5b = await fetch(_0x121873[_0x57f783(0x20b)] + '/workers/finish', {
|
|
1390
|
+
'method': _0x57f783(0x1d3),
|
|
1391
|
+
'headers': { 'Content-Type': _0x57f783(_0x2b1bc1._0x3f2ffa) },
|
|
1392
|
+
'body': JSON[_0x57f783(0x29a)]({
|
|
1393
|
+
'work_key': _0x4bdf89[_0x57f783(0x193)],
|
|
1394
|
+
'resume_packet': {
|
|
1395
|
+
'objective': '',
|
|
1396
|
+
'result': _0x4bdf89['result'],
|
|
1397
|
+
'summary': _0x4bdf89[_0x57f783(0x279)],
|
|
1398
|
+
'decisions': _0x4bdf89[_0x57f783(_0x2b1bc1._0x1fe65a)] ?? [],
|
|
1399
|
+
'filesChanged': _0x4bdf89[_0x57f783(_0x2b1bc1._0x3a2c8d)] ?? [],
|
|
1400
|
+
'openIssues': _0x4bdf89[_0x57f783(0x154)] ?? [],
|
|
1401
|
+
'nextSteps': _0x4bdf89[_0x57f783(0x22b)] ?? []
|
|
1402
|
+
}
|
|
1403
|
+
})
|
|
1404
|
+
}), _0x46e976 = await _0x5f0f5b[_0x57f783(0x15a)]();
|
|
1405
|
+
if (!_0x46e976['ok'])
|
|
1406
|
+
throw new Error(_0x46e976[_0x57f783(_0x2b1bc1._0x521028)] ?? _0x57f783(_0x2b1bc1._0x484f50));
|
|
1407
|
+
return 'Worker\x20\x22' + _0x4bdf89[_0x57f783(0x193)] + _0x57f783(_0x2b1bc1._0x12ba14) + _0x4bdf89[_0x57f783(0x23a)];
|
|
1408
|
+
},
|
|
1409
|
+
async 'mark_waiting_input'(_0x36d4a5) {
|
|
1410
|
+
const _0x1022b6 = _0x3278;
|
|
1411
|
+
if (!_0x121873[_0x1022b6(0x20b)] || !_0x121873[_0x1022b6(0x1e5)])
|
|
1412
|
+
return _0x1022b6(_0x324241._0x5b7155);
|
|
1413
|
+
const _0x4b32ee = await fetch(_0x121873[_0x1022b6(_0x324241._0x4fc778)] + '/workers/waiting_input', {
|
|
1414
|
+
'method': _0x1022b6(0x1d3),
|
|
1415
|
+
'headers': { 'Content-Type': _0x1022b6(_0x324241._0x3f0fce) },
|
|
1416
|
+
'body': JSON[_0x1022b6(_0x324241._0x1c218a)]({
|
|
1417
|
+
'work_key': _0x36d4a5[_0x1022b6(0x193)],
|
|
1418
|
+
'agent_id': _0x121873[_0x1022b6(_0x324241._0x2577bd)]
|
|
1419
|
+
})
|
|
1420
|
+
}), _0x165a40 = await _0x4b32ee[_0x1022b6(_0x324241._0x10c957)]();
|
|
1421
|
+
if (!_0x165a40['ok'])
|
|
1422
|
+
throw new Error(_0x165a40[_0x1022b6(_0x324241._0x2f4145)] ?? 'mark_waiting_input\x20failed');
|
|
1423
|
+
return _0x1022b6(_0x324241._0x1bd1c1) + _0x36d4a5[_0x1022b6(_0x324241._0x5ee23c)] + _0x1022b6(0x18b);
|
|
1424
|
+
},
|
|
1425
|
+
async 'escalate_to_main'(_0x294067) {
|
|
1426
|
+
const _0x36180c = _0x3278;
|
|
1427
|
+
if (!_0x121873[_0x36180c(0x20b)])
|
|
1428
|
+
return _0x36180c(0x1fc);
|
|
1429
|
+
const _0x5ecdeb = await fetch(_0x121873[_0x36180c(0x20b)] + '/workers/escalate', {
|
|
1430
|
+
'method': _0x36180c(_0x3b0500._0x156f62),
|
|
1431
|
+
'headers': { 'Content-Type': _0x36180c(_0x3b0500._0x1f35c0) },
|
|
1432
|
+
'body': JSON[_0x36180c(_0x3b0500._0x398e66)]({
|
|
1433
|
+
'work_key': _0x294067['work_key'],
|
|
1434
|
+
'reason': _0x294067[_0x36180c(0x143)]
|
|
1435
|
+
})
|
|
1436
|
+
}), _0x28a034 = await _0x5ecdeb['json']();
|
|
1437
|
+
if (!_0x28a034['ok'])
|
|
1438
|
+
throw new Error(_0x28a034[_0x36180c(_0x3b0500._0x5945d1)] ?? _0x36180c(_0x3b0500._0x26d8ac));
|
|
1439
|
+
return _0x36180c(0x1ce) + _0x294067['reason'];
|
|
1205
1440
|
}
|
|
1206
1441
|
};
|
|
1207
1442
|
}
|
|
1208
|
-
function
|
|
1209
|
-
const
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
const _0x283b09 = _0x4d5db9 => String(_0x4d5db9)[_0x120374(0x1fb)](0x2, '0');
|
|
1218
|
-
return _0x5279b3[_0x120374(_0x13a748._0x38e710)]() + '-' + _0x283b09(_0x5279b3['getMonth']() + 0x1) + '-' + _0x283b09(_0x5279b3['getDate']()) + '\x20' + _0x283b09(_0x5279b3[_0x120374(_0x13a748._0xaa7225)]()) + ':' + _0x283b09(_0x5279b3[_0x120374(0x278)]()) + ':' + _0x283b09(_0x5279b3[_0x120374(_0x13a748._0x2f2f20)]());
|
|
1219
|
-
}
|
|
1220
|
-
function formatAttachmentSuffix(_0x48030b) {
|
|
1221
|
-
const _0xbec5ce = {
|
|
1222
|
-
_0x22f442: 0x238,
|
|
1223
|
-
_0x588f70: 0x238,
|
|
1224
|
-
_0x27397d: 0x28e
|
|
1225
|
-
}, _0x117aa6 = _0xa1982e;
|
|
1226
|
-
if (!_0x48030b || _0x48030b[_0x117aa6(_0xbec5ce._0x22f442)] === 0x0)
|
|
1227
|
-
return '';
|
|
1228
|
-
return '\x20[' + _0x48030b[_0x117aa6(_0xbec5ce._0x22f442)] + _0x117aa6(0x2e7) + (_0x48030b[_0x117aa6(_0xbec5ce._0x588f70)] > 0x1 ? 's' : '') + ':\x20' + _0x48030b['map'](_0x3122d0 => _0x3122d0[_0x117aa6(0x295)] + _0x117aa6(0x285) + _0x3122d0['id'] + ')')[_0x117aa6(0x1c9)](',\x20') + _0x117aa6(_0xbec5ce._0x27397d);
|
|
1229
|
-
}
|
|
1230
|
-
function formatCheckMessages(_0x1addc4) {
|
|
1231
|
-
const _0x50ca63 = {
|
|
1232
|
-
_0x24cc61: 0x303,
|
|
1233
|
-
_0x22a313: 0x27a,
|
|
1234
|
-
_0x3efa41: 0x2bc,
|
|
1235
|
-
_0x377578: 0x1c7,
|
|
1236
|
-
_0x45b162: 0x2c4
|
|
1237
|
-
}, _0x252c13 = _0xa1982e;
|
|
1238
|
-
if (_0x1addc4[_0x252c13(0x238)] === 0x0)
|
|
1239
|
-
return _0x252c13(0x2ea);
|
|
1240
|
-
return _0x1addc4[_0x252c13(0x20b)](_0x5b28b1 => {
|
|
1241
|
-
const _0x1aa418 = _0x252c13, _0x139a6c = _0x5b28b1[_0x1aa418(_0x50ca63._0x24cc61)] === _0x1aa418(0x2ca) ? _0x1aa418(_0x50ca63._0x22a313) : '';
|
|
1242
|
-
return _0x1aa418(0x31e) + _0x5b28b1[_0x1aa418(0x1ef)] + _0x1aa418(0x239) + _0x5b28b1[_0x1aa418(0x24e)][_0x1aa418(0x296)](0x0, 0x8) + _0x1aa418(_0x50ca63._0x3efa41) + toLocalTime(_0x5b28b1['createdAt']) + _0x139a6c + _0x1aa418(_0x50ca63._0x377578) + _0x5b28b1[_0x1aa418(0x293)] + ':\x20' + _0x5b28b1['content'] + formatAttachmentSuffix(_0x5b28b1[_0x1aa418(_0x50ca63._0x45b162)]);
|
|
1243
|
-
})['join']('\x0a');
|
|
1244
|
-
}
|
|
1245
|
-
function formatHistory(_0xab42f5) {
|
|
1246
|
-
const _0x394f17 = {
|
|
1247
|
-
_0x3c316c: 0x238,
|
|
1248
|
-
_0x536420: 0x31b,
|
|
1249
|
-
_0x52c87d: 0x245,
|
|
1250
|
-
_0x4e1709: 0x275,
|
|
1251
|
-
_0x1d1ef9: 0x26a,
|
|
1252
|
-
_0x210ec2: 0x245
|
|
1253
|
-
}, _0x12ff2a = {
|
|
1254
|
-
_0x371837: 0x303,
|
|
1255
|
-
_0x3b99c5: 0x2ca,
|
|
1256
|
-
_0x5ab1a7: 0x2c4
|
|
1257
|
-
}, _0x47e6ac = _0xa1982e;
|
|
1258
|
-
if (_0xab42f5[_0x47e6ac(0x245)][_0x47e6ac(_0x394f17._0x3c316c)] === 0x0)
|
|
1259
|
-
return '##\x20Message\x20History\x20for\x20' + _0xab42f5[_0x47e6ac(_0x394f17._0x536420)] + _0x47e6ac(0x1e8);
|
|
1260
|
-
const _0x202dc5 = _0xab42f5[_0x47e6ac(_0x394f17._0x52c87d)]['map'](_0x5b0558 => {
|
|
1261
|
-
const _0x1e4ddf = _0x47e6ac, _0x32462e = _0x5b0558[_0x1e4ddf(_0x12ff2a._0x371837)] === _0x1e4ddf(_0x12ff2a._0x3b99c5) ? '\x20type=agent' : '';
|
|
1262
|
-
return _0x1e4ddf(0x260) + _0x5b0558[_0x1e4ddf(0x23d)] + _0x1e4ddf(0x239) + _0x5b0558[_0x1e4ddf(0x24e)] + '\x20time=' + toLocalTime(_0x5b0558[_0x1e4ddf(0x28d)]) + _0x32462e + _0x1e4ddf(0x1c7) + _0x5b0558['senderName'] + ':\x20' + _0x5b0558['content'] + formatAttachmentSuffix(_0x5b0558[_0x1e4ddf(_0x12ff2a._0x5ab1a7)]);
|
|
1263
|
-
})[_0x47e6ac(0x1c9)]('\x0a'), _0x22af5d = _0xab42f5[_0x47e6ac(_0x394f17._0x4e1709)] && _0xab42f5['nextCursor'] ? _0x47e6ac(0x2c7) + _0xab42f5[_0x47e6ac(_0x394f17._0x52c87d)][_0x47e6ac(_0x394f17._0x3c316c)] + _0x47e6ac(0x2b1) + _0xab42f5[_0x47e6ac(_0x394f17._0x1d1ef9)] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1264
|
-
return '##\x20Message\x20History\x20for\x20' + _0xab42f5[_0x47e6ac(0x31b)] + '\x20(' + _0xab42f5[_0x47e6ac(_0x394f17._0x210ec2)][_0x47e6ac(0x238)] + '\x20messages)\x0a\x0a' + _0x202dc5 + _0x22af5d;
|
|
1265
|
-
}
|
|
1266
|
-
function formatServerDirectory(_0x47f813) {
|
|
1267
|
-
const _0x2b8630 = {
|
|
1268
|
-
_0x14e2d5: 0x30e,
|
|
1269
|
-
_0x4f1222: 0x1c9,
|
|
1270
|
-
_0x4d3743: 0x238,
|
|
1271
|
-
_0x1b783a: 0x2e2,
|
|
1272
|
-
_0x2f6a87: 0x20b,
|
|
1273
|
-
_0x2b1e33: 0x208
|
|
1274
|
-
}, _0x2f055c = _0xa1982e, _0x3f14d8 = _0x47f813[_0x2f055c(_0x2b8630._0x14e2d5)][_0x2f055c(0x238)] > 0x0 ? _0x47f813[_0x2f055c(_0x2b8630._0x14e2d5)][_0x2f055c(0x20b)](_0x3c9a67 => _0x3c9a67[_0x2f055c(0x1ed)] ? '-\x20#' + _0x3c9a67['name'] + _0x2f055c(0x270) + _0x3c9a67[_0x2f055c(0x1ed)] : _0x2f055c(0x25c) + _0x3c9a67[_0x2f055c(0x20c)])[_0x2f055c(_0x2b8630._0x4f1222)]('\x0a') : _0x2f055c(0x281), _0x1efe8f = _0x47f813['agents'][_0x2f055c(_0x2b8630._0x4d3743)] > 0x0 ? _0x47f813[_0x2f055c(_0x2b8630._0x1b783a)][_0x2f055c(0x20b)](_0x364332 => _0x2f055c(0x26d) + _0x364332['name'])[_0x2f055c(_0x2b8630._0x4f1222)]('\x0a') : _0x2f055c(0x281), _0x196f8a = _0x47f813[_0x2f055c(0x31d)][_0x2f055c(0x238)] > 0x0 ? _0x47f813[_0x2f055c(0x31d)][_0x2f055c(_0x2b8630._0x2f6a87)](_0x2c8421 => _0x2f055c(0x26d) + _0x2c8421[_0x2f055c(0x20c)])[_0x2f055c(0x1c9)]('\x0a') : _0x2f055c(0x281);
|
|
1275
|
-
return [
|
|
1276
|
-
_0x2f055c(0x1e6) + _0x47f813[_0x2f055c(_0x2b8630._0x2b1e33)],
|
|
1277
|
-
'',
|
|
1278
|
-
'###\x20Channels',
|
|
1279
|
-
_0x3f14d8,
|
|
1280
|
-
'',
|
|
1281
|
-
_0x2f055c(0x209),
|
|
1282
|
-
_0x1efe8f,
|
|
1283
|
-
'',
|
|
1284
|
-
_0x2f055c(0x26c),
|
|
1285
|
-
_0x196f8a
|
|
1286
|
-
]['join']('\x0a');
|
|
1287
|
-
}
|
|
1288
|
-
function formatUploadResult(_0x755c7c) {
|
|
1289
|
-
const _0x5f1583 = {
|
|
1290
|
-
_0x209564: 0x276,
|
|
1291
|
-
_0x59c5ca: 0x2c5,
|
|
1292
|
-
_0x5157b7: 0x2da
|
|
1293
|
-
}, _0x3404b4 = _0xa1982e;
|
|
1294
|
-
return _0x3404b4(0x1f2) + _0x755c7c[_0x3404b4(0x295)] + '\x20(' + (_0x755c7c[_0x3404b4(_0x5f1583._0x209564)] / 0x400)[_0x3404b4(0x212)](0x1) + _0x3404b4(_0x5f1583._0x59c5ca) + _0x755c7c[_0x3404b4(_0x5f1583._0x5157b7)] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1295
|
-
}
|
|
1296
|
-
function formatViewFileResult(_0x48322d, _0x468677) {
|
|
1297
|
-
const _0x59b052 = _0xa1982e;
|
|
1298
|
-
return _0x468677 ? _0x59b052(0x220) + _0x48322d : _0x59b052(0x30c) + _0x48322d;
|
|
1299
|
-
}
|
|
1300
|
-
function formatTaskList(_0x1d904d, _0x841761) {
|
|
1301
|
-
const _0x50e3cb = {
|
|
1302
|
-
_0x46acdc: 0x23c,
|
|
1303
|
-
_0x105f11: 0x1c9
|
|
1304
|
-
}, _0x1cf1f5 = {
|
|
1305
|
-
_0x121f3f: 0x22e,
|
|
1306
|
-
_0x10644b: 0x1e3,
|
|
1307
|
-
_0x297b7a: 0x27c,
|
|
1308
|
-
_0x3c7741: 0x24e,
|
|
1309
|
-
_0x3b6972: 0x304,
|
|
1310
|
-
_0x39bdb2: 0x1c2,
|
|
1311
|
-
_0x103ea7: 0x2a5
|
|
1312
|
-
}, _0x289929 = _0xa1982e;
|
|
1313
|
-
if (_0x1d904d[_0x289929(0x238)] === 0x0)
|
|
1314
|
-
return _0x289929(_0x50e3cb._0x46acdc);
|
|
1315
|
-
return _0x1d904d['map'](_0x3d3eed => {
|
|
1316
|
-
const _0x468ac0 = _0x289929, _0x158098 = _0x3d3eed[_0x468ac0(0x1e3)] == null ? _0x468ac0(_0x1cf1f5._0x121f3f) : '#' + _0x3d3eed[_0x468ac0(_0x1cf1f5._0x10644b)], _0x3e7324 = _0x3d3eed[_0x468ac0(0x24e)] ? _0x468ac0(_0x1cf1f5._0x297b7a) + _0x3d3eed[_0x468ac0(_0x1cf1f5._0x3c7741)] : '', _0x14e10c = _0x841761 && _0x3d3eed[_0x468ac0(0x1e3)] != null && _0x841761[_0x468ac0(_0x1cf1f5._0x3b6972)](_0x3d3eed[_0x468ac0(0x1e3)]) ? _0x468ac0(_0x1cf1f5._0x39bdb2) : '';
|
|
1317
|
-
return _0x158098 + '\x20[' + _0x3d3eed[_0x468ac0(0x2e3)] + ']\x20' + _0x3d3eed[_0x468ac0(_0x1cf1f5._0x103ea7)] + _0x3e7324 + _0x14e10c;
|
|
1318
|
-
})[_0x289929(_0x50e3cb._0x105f11)]('\x0a');
|
|
1319
|
-
}
|
|
1320
|
-
function formatCreatedTasks(_0x4bfc0d) {
|
|
1321
|
-
const _0x517f6a = { _0x1cabbf: 0x238 }, _0x3972b2 = { _0x1dcfa0: 0x1e3 }, _0x2b4046 = _0xa1982e;
|
|
1322
|
-
if (_0x4bfc0d[_0x2b4046(_0x517f6a._0x1cabbf)] === 0x0)
|
|
1323
|
-
return _0x2b4046(0x28c);
|
|
1324
|
-
return _0x4bfc0d['map'](_0x203ec6 => {
|
|
1325
|
-
const _0x5506cb = _0x2b4046, _0x277b17 = _0x203ec6[_0x5506cb(_0x3972b2._0x1dcfa0)] == null ? _0x5506cb(0x22e) : '#' + _0x203ec6[_0x5506cb(_0x3972b2._0x1dcfa0)];
|
|
1326
|
-
return _0x277b17 + '\x20' + _0x203ec6[_0x5506cb(0x2a5)] + '\x20message=' + _0x203ec6['messageId'];
|
|
1327
|
-
})[_0x2b4046(0x1c9)]('\x0a');
|
|
1443
|
+
function textResult(_0x464e5c, _0x2db8a6 = ![]) {
|
|
1444
|
+
const _0x46fc04 = _0x2c1aa0;
|
|
1445
|
+
return {
|
|
1446
|
+
'content': [{
|
|
1447
|
+
'type': _0x46fc04(0x1b6),
|
|
1448
|
+
'text': _0x464e5c
|
|
1449
|
+
}],
|
|
1450
|
+
..._0x2db8a6 ? { 'isError': !![] } : {}
|
|
1451
|
+
};
|
|
1328
1452
|
}
|
|
1329
|
-
function
|
|
1330
|
-
const
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1453
|
+
async function registerChatBridgeTools(_0x1cadc0, _0x7fa0c4, _0x4b95b4) {
|
|
1454
|
+
const _0x41c04b = {
|
|
1455
|
+
_0x4fed1a: 0x263,
|
|
1456
|
+
_0x4e317f: 0x235,
|
|
1457
|
+
_0x172d87: 0x1cd,
|
|
1458
|
+
_0x30ba0f: 0x24a,
|
|
1459
|
+
_0xa9a607: 0x1ba,
|
|
1460
|
+
_0x58e4d2: 0x24f,
|
|
1461
|
+
_0x271a25: 0x263,
|
|
1462
|
+
_0x2e1e80: 0x163,
|
|
1463
|
+
_0x5bed4f: 0x171,
|
|
1464
|
+
_0x3befeb: 0x16a,
|
|
1465
|
+
_0x2afa3a: 0x1fe,
|
|
1466
|
+
_0xae0a3c: 0x1cd,
|
|
1467
|
+
_0x425d5f: 0x24a,
|
|
1468
|
+
_0x39b94f: 0x263,
|
|
1469
|
+
_0x18395f: 0x234,
|
|
1470
|
+
_0x349cc8: 0x235,
|
|
1471
|
+
_0x1797c5: 0x24a,
|
|
1472
|
+
_0x3c9eba: 0x24f,
|
|
1473
|
+
_0x57594f: 0x263,
|
|
1474
|
+
_0x1936c5: 0x216,
|
|
1475
|
+
_0x5ec3b1: 0x171,
|
|
1476
|
+
_0x3799ff: 0x217,
|
|
1477
|
+
_0x554d1a: 0x175,
|
|
1478
|
+
_0x56e0c0: 0x1cd,
|
|
1479
|
+
_0x2881f9: 0x1cd,
|
|
1480
|
+
_0x3f08e5: 0x24a,
|
|
1481
|
+
_0x29e20f: 0x263,
|
|
1482
|
+
_0x3b6968: 0x228,
|
|
1483
|
+
_0x10e727: 0x248,
|
|
1484
|
+
_0x3f72cd: 0x243,
|
|
1485
|
+
_0x4ef5d6: 0x1cd,
|
|
1486
|
+
_0x38cfee: 0x1cd,
|
|
1487
|
+
_0x16ee1a: 0x1cd,
|
|
1488
|
+
_0x3436a6: 0x1cd,
|
|
1489
|
+
_0xf2c6da: 0x15d,
|
|
1490
|
+
_0x3b9e7a: 0x263,
|
|
1491
|
+
_0x26a15c: 0x275
|
|
1492
|
+
}, _0x2d7bb2 = { _0x1d245a: 0x15c }, _0x4f9d98 = {
|
|
1493
|
+
_0x5eaa52: 0x15c,
|
|
1494
|
+
_0x4cc09e: 0x1aa
|
|
1495
|
+
}, _0x30115d = {
|
|
1496
|
+
_0x5d8080: 0x16f,
|
|
1497
|
+
_0x1dfa29: 0x268
|
|
1498
|
+
}, _0x3e6635 = { _0x36dc52: 0x18c }, _0x1e1d10 = {
|
|
1499
|
+
_0x1da898: 0x2a8,
|
|
1500
|
+
_0x817df9: 0x25c
|
|
1501
|
+
}, _0x1315a2 = { _0x54cc4f: 0x144 }, _0x13b24e = { _0x2ea12f: 0x172 }, _0x3d5efc = {
|
|
1502
|
+
_0x2b0619: 0x27b,
|
|
1503
|
+
_0x5f29e6: 0x1c6
|
|
1504
|
+
}, _0x36a75c = {
|
|
1505
|
+
_0x48908a: 0x15c,
|
|
1506
|
+
_0x753d9d: 0x191
|
|
1507
|
+
}, _0x11e13c = {
|
|
1508
|
+
_0x5df8a5: 0x222,
|
|
1509
|
+
_0x574ccd: 0x1b4
|
|
1510
|
+
}, _0x1862c2 = {
|
|
1511
|
+
_0x3d9bde: 0x201,
|
|
1512
|
+
_0x35e757: 0x15c,
|
|
1513
|
+
_0xdd72f5: 0x28a
|
|
1514
|
+
}, _0x26a8ce = {
|
|
1515
|
+
_0x224745: 0x20a,
|
|
1516
|
+
_0x1fc7d8: 0x20d
|
|
1517
|
+
}, _0x4cf077 = _0x2c1aa0, {z: _0x3cb920} = await import(_0x4cf077(0x19d));
|
|
1518
|
+
_0x1cadc0[_0x4cf077(_0x41c04b._0x4fed1a)](_0x4cf077(0x1fd), 'Send\x20a\x20message\x20to\x20a\x20channel\x20or\x20DM.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages;\x20thread\x20targets\x20use\x20the\x20same\x20field.', {
|
|
1519
|
+
'target': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1520
|
+
'content': _0x3cb920['string'](),
|
|
1521
|
+
'attachment_ids': _0x3cb920[_0x4cf077(_0x41c04b._0x4e317f)](_0x3cb920[_0x4cf077(_0x41c04b._0x172d87)]())[_0x4cf077(_0x41c04b._0x30ba0f)]()
|
|
1522
|
+
}, async _0x44406e => {
|
|
1523
|
+
const _0x50e6d4 = _0x4cf077;
|
|
1524
|
+
try {
|
|
1525
|
+
return textResult(await _0x7fa0c4['send_message'](_0x44406e));
|
|
1526
|
+
} catch (_0x378ea5) {
|
|
1527
|
+
return textResult(_0x378ea5 instanceof Error ? _0x378ea5[_0x50e6d4(0x15c)] : 'send_message\x20failed', !![]);
|
|
1528
|
+
}
|
|
1529
|
+
}), _0x1cadc0[_0x4cf077(0x263)]('check_messages', 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
1530
|
+
const _0xf875ec = _0x4cf077;
|
|
1531
|
+
try {
|
|
1532
|
+
return textResult(await _0x7fa0c4['check_messages']());
|
|
1533
|
+
} catch (_0x5f5834) {
|
|
1534
|
+
return textResult(_0x5f5834 instanceof Error ? _0x5f5834[_0xf875ec(0x15c)] : _0xf875ec(0x274), !![]);
|
|
1535
|
+
}
|
|
1536
|
+
}), _0x1cadc0[_0x4cf077(0x263)]('read_history', _0x4cf077(_0x41c04b._0xa9a607), {
|
|
1537
|
+
'channel': _0x3cb920['string'](),
|
|
1538
|
+
'limit': _0x3cb920[_0x4cf077(_0x41c04b._0x58e4d2)]()[_0x4cf077(0x24a)](),
|
|
1539
|
+
'before': _0x3cb920[_0x4cf077(_0x41c04b._0x58e4d2)]()['optional'](),
|
|
1540
|
+
'after': _0x3cb920[_0x4cf077(0x24f)]()['optional']()
|
|
1541
|
+
}, async _0x23415b => {
|
|
1542
|
+
try {
|
|
1543
|
+
return textResult(await _0x7fa0c4['read_history'](_0x23415b));
|
|
1544
|
+
} catch (_0x23b517) {
|
|
1545
|
+
return textResult(_0x23b517 instanceof Error ? _0x23b517['message'] : 'read_history\x20failed', !![]);
|
|
1546
|
+
}
|
|
1547
|
+
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x271a25)](_0x4cf077(0x20a), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
1548
|
+
const _0x15c216 = _0x4cf077;
|
|
1549
|
+
try {
|
|
1550
|
+
return textResult(await _0x7fa0c4[_0x15c216(_0x26a8ce._0x224745)]());
|
|
1551
|
+
} catch (_0x33a89f) {
|
|
1552
|
+
return textResult(_0x33a89f instanceof Error ? _0x33a89f[_0x15c216(0x15c)] : _0x15c216(_0x26a8ce._0x1fc7d8), !![]);
|
|
1553
|
+
}
|
|
1554
|
+
}), _0x1cadc0[_0x4cf077(0x263)](_0x4cf077(0x201), _0x4cf077(_0x41c04b._0x2e1e80), {
|
|
1555
|
+
'channel': _0x3cb920['string'](),
|
|
1556
|
+
'status': _0x3cb920['enum']([
|
|
1557
|
+
_0x4cf077(0x216),
|
|
1558
|
+
'in_progress',
|
|
1559
|
+
_0x4cf077(_0x41c04b._0x5bed4f),
|
|
1560
|
+
_0x4cf077(_0x41c04b._0x3befeb)
|
|
1561
|
+
])[_0x4cf077(_0x41c04b._0x30ba0f)]()
|
|
1562
|
+
}, async _0x1228dc => {
|
|
1563
|
+
const _0x3c8b95 = _0x4cf077;
|
|
1564
|
+
try {
|
|
1565
|
+
return textResult(await _0x7fa0c4[_0x3c8b95(_0x1862c2._0x3d9bde)](_0x1228dc));
|
|
1566
|
+
} catch (_0x4b5bdf) {
|
|
1567
|
+
return textResult(_0x4b5bdf instanceof Error ? _0x4b5bdf[_0x3c8b95(_0x1862c2._0x35e757)] : _0x3c8b95(_0x1862c2._0xdd72f5), !![]);
|
|
1568
|
+
}
|
|
1569
|
+
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x4fed1a)](_0x4cf077(0x222), 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.', {
|
|
1570
|
+
'channel': _0x3cb920['string'](),
|
|
1571
|
+
'idempotency_key': _0x3cb920[_0x4cf077(0x1cd)]()[_0x4cf077(0x24a)](),
|
|
1572
|
+
'tasks': _0x3cb920['array'](_0x3cb920[_0x4cf077(_0x41c04b._0x2afa3a)]({
|
|
1573
|
+
'title': _0x3cb920[_0x4cf077(_0x41c04b._0xae0a3c)](),
|
|
1574
|
+
'description': _0x3cb920['string']()[_0x4cf077(_0x41c04b._0x425d5f)](),
|
|
1575
|
+
'priority': _0x3cb920['enum']([
|
|
1576
|
+
'low',
|
|
1577
|
+
_0x4cf077(0x232),
|
|
1578
|
+
'high',
|
|
1579
|
+
_0x4cf077(0x294)
|
|
1580
|
+
])[_0x4cf077(0x24a)]()
|
|
1581
|
+
}))
|
|
1582
|
+
}, async _0x4651b5 => {
|
|
1583
|
+
const _0x2505bd = _0x4cf077;
|
|
1584
|
+
try {
|
|
1585
|
+
return textResult(await _0x7fa0c4[_0x2505bd(_0x11e13c._0x5df8a5)](_0x4651b5));
|
|
1586
|
+
} catch (_0x5ed80c) {
|
|
1587
|
+
return textResult(_0x5ed80c instanceof Error ? _0x5ed80c['message'] : _0x2505bd(_0x11e13c._0x574ccd), !![]);
|
|
1588
|
+
}
|
|
1589
|
+
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x39b94f)](_0x4cf077(_0x41c04b._0x18395f), _0x4cf077(0x1f4), {
|
|
1590
|
+
'channel': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1591
|
+
'task_numbers': _0x3cb920[_0x4cf077(_0x41c04b._0x349cc8)](_0x3cb920['number']())['optional'](),
|
|
1592
|
+
'message_ids': _0x3cb920[_0x4cf077(_0x41c04b._0x349cc8)](_0x3cb920['string']())[_0x4cf077(0x24a)](),
|
|
1593
|
+
'evidence': _0x3cb920['record'](_0x3cb920[_0x4cf077(0x1cd)](), _0x3cb920[_0x4cf077(_0x41c04b._0x2afa3a)]({
|
|
1594
|
+
'create_thread': _0x3cb920[_0x4cf077(0x20f)]()[_0x4cf077(_0x41c04b._0x1797c5)](),
|
|
1595
|
+
'create_task': _0x3cb920['unknown']()['optional']()
|
|
1596
|
+
}))['optional'](),
|
|
1597
|
+
'idempotency_key': _0x3cb920['string']()[_0x4cf077(_0x41c04b._0x425d5f)]()
|
|
1598
|
+
}, async _0x2f9cd9 => {
|
|
1599
|
+
const _0x348485 = _0x4cf077;
|
|
1600
|
+
try {
|
|
1601
|
+
return textResult(await _0x7fa0c4[_0x348485(0x234)](_0x2f9cd9));
|
|
1602
|
+
} catch (_0x345091) {
|
|
1603
|
+
return textResult(_0x345091 instanceof Error ? _0x345091['message'] : 'claim_tasks\x20failed', !![]);
|
|
1604
|
+
}
|
|
1605
|
+
}), _0x1cadc0[_0x4cf077(0x263)](_0x4cf077(0x198), _0x4cf077(0x137), {
|
|
1606
|
+
'channel': _0x3cb920['string'](),
|
|
1607
|
+
'task_number': _0x3cb920[_0x4cf077(_0x41c04b._0x3c9eba)](),
|
|
1608
|
+
'idempotency_key': _0x3cb920['string']()[_0x4cf077(0x24a)]()
|
|
1609
|
+
}, async _0x3bdda5 => {
|
|
1610
|
+
const _0x3e652e = _0x4cf077;
|
|
1611
|
+
try {
|
|
1612
|
+
return textResult(await _0x7fa0c4[_0x3e652e(0x198)](_0x3bdda5));
|
|
1613
|
+
} catch (_0x7cb791) {
|
|
1614
|
+
return textResult(_0x7cb791 instanceof Error ? _0x7cb791[_0x3e652e(_0x36a75c._0x48908a)] : _0x3e652e(_0x36a75c._0x753d9d), !![]);
|
|
1615
|
+
}
|
|
1616
|
+
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x57594f)](_0x4cf077(0x27b), _0x4cf077(0x27e), {
|
|
1617
|
+
'channel': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1618
|
+
'task_number': _0x3cb920[_0x4cf077(0x24f)](),
|
|
1619
|
+
'status': _0x3cb920['enum']([
|
|
1620
|
+
_0x4cf077(_0x41c04b._0x1936c5),
|
|
1621
|
+
'in_progress',
|
|
1622
|
+
_0x4cf077(_0x41c04b._0x5ec3b1),
|
|
1623
|
+
'done'
|
|
1624
|
+
]),
|
|
1625
|
+
'idempotency_key': _0x3cb920['string']()[_0x4cf077(_0x41c04b._0x1797c5)]()
|
|
1626
|
+
}, async _0x20a5b1 => {
|
|
1627
|
+
const _0x38ff31 = _0x4cf077;
|
|
1628
|
+
try {
|
|
1629
|
+
return textResult(await _0x7fa0c4[_0x38ff31(_0x3d5efc._0x2b0619)](_0x20a5b1));
|
|
1630
|
+
} catch (_0x12c60e) {
|
|
1631
|
+
return textResult(_0x12c60e instanceof Error ? _0x12c60e[_0x38ff31(0x15c)] : _0x38ff31(_0x3d5efc._0x5f29e6), !![]);
|
|
1632
|
+
}
|
|
1633
|
+
}), _0x1cadc0['tool'](_0x4cf077(_0x41c04b._0x3799ff), _0x4cf077(_0x41c04b._0x554d1a), {
|
|
1634
|
+
'channel': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1635
|
+
'file_path': _0x3cb920[_0x4cf077(_0x41c04b._0xae0a3c)]()
|
|
1636
|
+
}, async _0x3e1172 => {
|
|
1637
|
+
const _0x6471f7 = _0x4cf077;
|
|
1638
|
+
try {
|
|
1639
|
+
return textResult(await _0x7fa0c4[_0x6471f7(0x217)](_0x3e1172));
|
|
1640
|
+
} catch (_0x3c1800) {
|
|
1641
|
+
return textResult(_0x3c1800 instanceof Error ? _0x3c1800['message'] : _0x6471f7(_0x13b24e._0x2ea12f), !![]);
|
|
1642
|
+
}
|
|
1643
|
+
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x4fed1a)]('view_file', _0x4cf077(0x1fb), { 'attachment_id': _0x3cb920[_0x4cf077(_0x41c04b._0x56e0c0)]() }, async _0x443c6f => {
|
|
1644
|
+
const _0x406e46 = _0x4cf077;
|
|
1645
|
+
try {
|
|
1646
|
+
return textResult(await _0x7fa0c4[_0x406e46(0x287)](_0x443c6f));
|
|
1647
|
+
} catch (_0x2411f4) {
|
|
1648
|
+
return textResult(_0x2411f4 instanceof Error ? _0x2411f4['message'] : _0x406e46(_0x1315a2._0x54cc4f), !![]);
|
|
1649
|
+
}
|
|
1650
|
+
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x4fed1a)](_0x4cf077(0x2a8), 'Spawn\x20a\x20worker\x20agent\x20to\x20handle\x20a\x20subtask\x20asynchronously.\x20The\x20worker\x20runs\x20in\x20its\x20own\x20session\x20and\x20reports\x20back\x20when\x20done.', {
|
|
1651
|
+
'work_key': _0x3cb920['string'](),
|
|
1652
|
+
'thread_target': _0x3cb920['string'](),
|
|
1653
|
+
'objective': _0x3cb920[_0x4cf077(_0x41c04b._0x172d87)](),
|
|
1654
|
+
'conclusions': _0x3cb920[_0x4cf077(0x235)](_0x3cb920[_0x4cf077(_0x41c04b._0x2881f9)]())[_0x4cf077(_0x41c04b._0x3f08e5)](),
|
|
1655
|
+
'relevant_files': _0x3cb920['array'](_0x3cb920[_0x4cf077(0x1cd)]())[_0x4cf077(0x24a)](),
|
|
1656
|
+
'open_questions': _0x3cb920['array'](_0x3cb920[_0x4cf077(_0x41c04b._0x2881f9)]())[_0x4cf077(0x24a)](),
|
|
1657
|
+
'reply_target': _0x3cb920[_0x4cf077(_0x41c04b._0x56e0c0)](),
|
|
1658
|
+
'task_id': _0x3cb920[_0x4cf077(0x1cd)]()[_0x4cf077(0x24a)]()
|
|
1659
|
+
}, async _0x391eea => {
|
|
1660
|
+
const _0x1c54d2 = _0x4cf077;
|
|
1661
|
+
try {
|
|
1662
|
+
return textResult(await _0x7fa0c4[_0x1c54d2(_0x1e1d10._0x1da898)](_0x391eea));
|
|
1663
|
+
} catch (_0x50e27a) {
|
|
1664
|
+
return textResult(_0x50e27a instanceof Error ? _0x50e27a['message'] : _0x1c54d2(_0x1e1d10._0x817df9), !![]);
|
|
1665
|
+
}
|
|
1666
|
+
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x29e20f)](_0x4cf077(0x252), _0x4cf077(0x14b), { 'work_key': _0x3cb920[_0x4cf077(_0x41c04b._0x2881f9)]() }, async _0x381a7d => {
|
|
1667
|
+
const _0x43ba4e = _0x4cf077;
|
|
1668
|
+
try {
|
|
1669
|
+
return textResult(await _0x7fa0c4['get_worker_status'](_0x381a7d));
|
|
1670
|
+
} catch (_0x1b9858) {
|
|
1671
|
+
return textResult(_0x1b9858 instanceof Error ? _0x1b9858[_0x43ba4e(0x15c)] : _0x43ba4e(_0x3e6635._0x36dc52), !![]);
|
|
1672
|
+
}
|
|
1673
|
+
}), _0x1cadc0[_0x4cf077(0x263)](_0x4cf077(0x1da), _0x4cf077(_0x41c04b._0x3b6968), { 'work_key': _0x3cb920['string']() }, async _0x3ba7ab => {
|
|
1674
|
+
const _0x41dfb3 = _0x4cf077;
|
|
1675
|
+
try {
|
|
1676
|
+
return textResult(await _0x7fa0c4['get_worker_result'](_0x3ba7ab));
|
|
1677
|
+
} catch (_0x1c34f1) {
|
|
1678
|
+
return textResult(_0x1c34f1 instanceof Error ? _0x1c34f1[_0x41dfb3(0x15c)] : 'get_worker_result\x20failed', !![]);
|
|
1679
|
+
}
|
|
1680
|
+
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x29e20f)](_0x4cf077(0x16f), _0x4cf077(0x185), {
|
|
1681
|
+
'work_key': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1682
|
+
'result': _0x3cb920[_0x4cf077(_0x41c04b._0x10e727)]([
|
|
1683
|
+
_0x4cf077(0x15b),
|
|
1684
|
+
'blocked',
|
|
1685
|
+
_0x4cf077(_0x41c04b._0x3f72cd)
|
|
1686
|
+
]),
|
|
1687
|
+
'summary': _0x3cb920[_0x4cf077(_0x41c04b._0x4ef5d6)](),
|
|
1688
|
+
'decisions': _0x3cb920['array'](_0x3cb920[_0x4cf077(_0x41c04b._0x38cfee)]())[_0x4cf077(0x24a)](),
|
|
1689
|
+
'files_changed': _0x3cb920[_0x4cf077(0x235)](_0x3cb920[_0x4cf077(_0x41c04b._0x16ee1a)]())[_0x4cf077(0x24a)](),
|
|
1690
|
+
'open_issues': _0x3cb920['array'](_0x3cb920[_0x4cf077(0x1cd)]())[_0x4cf077(_0x41c04b._0x425d5f)](),
|
|
1691
|
+
'next_steps': _0x3cb920['array'](_0x3cb920[_0x4cf077(_0x41c04b._0x3436a6)]())[_0x4cf077(0x24a)]()
|
|
1692
|
+
}, async _0x5b2179 => {
|
|
1693
|
+
const _0x5fb5d8 = _0x4cf077;
|
|
1694
|
+
try {
|
|
1695
|
+
return textResult(await _0x7fa0c4[_0x5fb5d8(_0x30115d._0x5d8080)](_0x5b2179));
|
|
1696
|
+
} catch (_0x28e81a) {
|
|
1697
|
+
return textResult(_0x28e81a instanceof Error ? _0x28e81a[_0x5fb5d8(0x15c)] : _0x5fb5d8(_0x30115d._0x1dfa29), !![]);
|
|
1698
|
+
}
|
|
1699
|
+
}), _0x1cadc0[_0x4cf077(0x263)](_0x4cf077(0x23d), 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
|
|
1700
|
+
'work_key': _0x3cb920['string'](),
|
|
1701
|
+
'reason': _0x3cb920[_0x4cf077(_0x41c04b._0x3436a6)]()
|
|
1702
|
+
}, async _0x2614c2 => {
|
|
1703
|
+
const _0x3510f3 = _0x4cf077;
|
|
1704
|
+
try {
|
|
1705
|
+
return textResult(await _0x7fa0c4[_0x3510f3(0x23d)](_0x2614c2));
|
|
1706
|
+
} catch (_0x5a5c94) {
|
|
1707
|
+
return textResult(_0x5a5c94 instanceof Error ? _0x5a5c94[_0x3510f3(_0x4f9d98._0x5eaa52)] : _0x3510f3(_0x4f9d98._0x4cc09e), !![]);
|
|
1708
|
+
}
|
|
1709
|
+
}), _0x4b95b4?.[_0x4cf077(_0x41c04b._0xf2c6da)] && _0x1cadc0[_0x4cf077(_0x41c04b._0x3b9e7a)](_0x4cf077(0x132), _0x4cf077(_0x41c04b._0x26a15c), { 'work_key': _0x3cb920['string']() }, async _0x54ab7b => {
|
|
1710
|
+
const _0x47c4b0 = _0x4cf077;
|
|
1711
|
+
try {
|
|
1712
|
+
return textResult(await _0x7fa0c4['mark_waiting_input'](_0x54ab7b));
|
|
1713
|
+
} catch (_0x3d54c1) {
|
|
1714
|
+
return textResult(_0x3d54c1 instanceof Error ? _0x3d54c1[_0x47c4b0(_0x2d7bb2._0x1d245a)] : _0x47c4b0(0x21b), !![]);
|
|
1357
1715
|
}
|
|
1358
|
-
|
|
1359
|
-
return _0x1021aa + '\x20failed:\x20' + (_0x1297b4['reason'] ?? 'claim\x20failed');
|
|
1360
|
-
})[_0x331b55(0x1c9)]('\x0a');
|
|
1716
|
+
});
|
|
1361
1717
|
}
|
|
1362
|
-
function
|
|
1363
|
-
const
|
|
1364
|
-
|
|
1718
|
+
async function createChatBridgeServer(_0x3bf8c4) {
|
|
1719
|
+
const _0x1e8efe = { _0x146326: 0x1de }, _0x2d8214 = _0x2c1aa0, {McpServer: _0x59da82} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x5c21a9 = new _0x59da82({
|
|
1720
|
+
'name': _0x2d8214(_0x1e8efe._0x146326),
|
|
1721
|
+
'version': _0x2d8214(0x299)
|
|
1722
|
+
}), _0x6c096f = createChatBridgeHandlers(_0x3bf8c4);
|
|
1723
|
+
return await registerChatBridgeTools(_0x5c21a9, _0x6c096f, { 'workerMode': _0x3bf8c4[_0x2d8214(0x15d)] }), {
|
|
1724
|
+
'handlers': _0x6c096f,
|
|
1725
|
+
'server': _0x5c21a9
|
|
1726
|
+
};
|
|
1365
1727
|
}
|
|
1366
|
-
function
|
|
1367
|
-
const
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
return _0x37cf43 + _0x38d219(_0xb05ea8._0x522071) + _0x1fce83['status'];
|
|
1728
|
+
function readFlag(_0x393484, _0x4fff7f) {
|
|
1729
|
+
const _0x3f815c = _0x2c1aa0, _0x32d872 = _0x393484[_0x3f815c(0x151)](_0x4fff7f);
|
|
1730
|
+
if (_0x32d872 === -0x1)
|
|
1731
|
+
return void 0x0;
|
|
1732
|
+
return _0x393484[_0x32d872 + 0x1];
|
|
1372
1733
|
}
|
|
1373
|
-
function
|
|
1374
|
-
const
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
},
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1734
|
+
function parseChatBridgeArgs(_0x3df1b6) {
|
|
1735
|
+
const _0x28b424 = {
|
|
1736
|
+
_0x5750fe: 0x26d,
|
|
1737
|
+
_0x34c76e: 0x14e,
|
|
1738
|
+
_0xfc9004: 0x27a,
|
|
1739
|
+
_0x167b04: 0x293,
|
|
1740
|
+
_0x83c097: 0x1ea,
|
|
1741
|
+
_0x41cb4b: 0x194,
|
|
1742
|
+
_0x3274d4: 0x1a5
|
|
1743
|
+
}, _0x3ed015 = _0x2c1aa0, _0x5dda31 = readFlag(_0x3df1b6, '--agent-id'), _0x191d74 = readFlag(_0x3df1b6, _0x3ed015(_0x28b424._0x5750fe)), _0x79f6a5 = readFlag(_0x3df1b6, _0x3ed015(0x29e)), _0x26092e = readFlag(_0x3df1b6, _0x3ed015(_0x28b424._0x34c76e)) ?? _0x3ed015(0x236), _0x414a83 = readFlag(_0x3df1b6, _0x3ed015(_0x28b424._0xfc9004)), _0x195efd = readFlag(_0x3df1b6, _0x3ed015(0x1f8)), _0xaccfe8 = readFlag(_0x3df1b6, '--worker-mode-enabled'), _0x5b37e6 = readFlag(_0x3df1b6, '--worker-thread-target'), _0x25ca5a = _0x3df1b6[_0x3ed015(0x1a3)](_0x3ed015(0x1e6)), _0xa0299 = _0x79f6a5 === void 0x0 ? void 0x0 : Number[_0x3ed015(0x21c)](_0x79f6a5, 0xa);
|
|
1744
|
+
if (!_0x5dda31)
|
|
1745
|
+
throw new Error(_0x3ed015(_0x28b424._0x167b04));
|
|
1746
|
+
if (!_0x191d74)
|
|
1747
|
+
throw new Error(_0x3ed015(_0x28b424._0x83c097));
|
|
1748
|
+
if (_0x79f6a5 !== void 0x0 && (_0xa0299 === void 0x0 || !Number['isFinite'](_0xa0299) || _0xa0299 < 0x0))
|
|
1749
|
+
throw new Error(_0x3ed015(_0x28b424._0x41cb4b));
|
|
1750
|
+
return {
|
|
1751
|
+
'agentId': _0x5dda31,
|
|
1752
|
+
'daemonApiKey': _0x191d74,
|
|
1753
|
+
'daemonLocalUrl': _0x414a83,
|
|
1754
|
+
'initialLastSeenSeq': _0xa0299,
|
|
1755
|
+
'sessionId': _0x195efd,
|
|
1756
|
+
'serverUrl': _0x26092e,
|
|
1757
|
+
'workerModeEnabled': _0xaccfe8 === void 0x0 ? void 0x0 : _0xaccfe8 !== _0x3ed015(_0x28b424._0x3274d4),
|
|
1758
|
+
'workerThreadTarget': _0x5b37e6,
|
|
1759
|
+
'workerMode': _0x25ca5a
|
|
1760
|
+
};
|
|
1761
|
+
}
|
|
1762
|
+
function _0x5c8c() {
|
|
1763
|
+
const _0x6da97d = [
|
|
1764
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1765
|
+
'ChvZAa',
|
|
1766
|
+
'z2v0tw9UDgG',
|
|
1767
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
1768
|
+
'oty5mZy3mej0sMT1vW',
|
|
1769
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1770
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1771
|
+
'C3rHCNrZv2L0Aa',
|
|
1772
|
+
'z2v0rNvSBfLLyxi',
|
|
1773
|
+
'khvUA25VD24P',
|
|
1774
|
+
'C3vJy2vZCW',
|
|
1775
|
+
'C2L6zuj5DgvZ',
|
|
1776
|
+
'C3rYAw5N',
|
|
1777
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1778
|
+
'AhvTyw5Z',
|
|
1779
|
+
'lsba',
|
|
1780
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1781
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1782
|
+
'ue9tva',
|
|
1783
|
+
'DxrMoa',
|
|
1784
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1785
|
+
'BgLZDfrHC2TZ',
|
|
1786
|
+
'CNvUswq',
|
|
1787
|
+
'DgHYzwfKswq',
|
|
1788
|
+
'mJeWt2DAAKfL',
|
|
1789
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1790
|
+
'zMv0y2HjBxbS',
|
|
1791
|
+
'y2HLy2TnzxnZywDLCW',
|
|
1792
|
+
'ChjVDg9JB2W',
|
|
1793
|
+
'y2HHDa',
|
|
1794
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1795
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
1796
|
+
'zMLSzw5HBwu',
|
|
1797
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
1798
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1799
|
+
'BM93',
|
|
1800
|
+
'ywDLBNrjza',
|
|
1801
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
1802
|
+
'C2L6zq',
|
|
1803
|
+
'igzHAwXLzdOG',
|
|
1804
|
+
'iokaLca',
|
|
1805
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1806
|
+
'w3rHCMDLDd0',
|
|
1807
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1808
|
+
'C2nOzwr1BgvKrM9Y',
|
|
1809
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
1810
|
+
'BgLZDfnLCNzLCG',
|
|
1811
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1812
|
+
'Bwv0yq',
|
|
1813
|
+
'lIbtzxnZAw9UieLeoIa',
|
|
1814
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
1815
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
1816
|
+
'l2HPC3rVCNK/',
|
|
1817
|
+
'l3n0yxj0',
|
|
1818
|
+
'w3nLCt0',
|
|
1819
|
+
'ls1ZzxnZAw9UlwLK',
|
|
1820
|
+
'z2v0twLUDxrLCW',
|
|
1821
|
+
'lsaJ',
|
|
1822
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1823
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1824
|
+
'C2vUzf9TzxnZywDL',
|
|
1825
|
+
'B2jQzwn0',
|
|
1826
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
1827
|
+
'l3rHC2TZl2nSywLT',
|
|
1828
|
+
'BgLZDf90yxnRCW',
|
|
1829
|
+
'ihn0yxr1CZ0',
|
|
1830
|
+
'yxr0ywnOBwvUDhm',
|
|
1831
|
+
'Aw1Hz2uVD2vICa',
|
|
1832
|
+
'C29Tzq',
|
|
1833
|
+
'C2f2zq',
|
|
1834
|
+
'mJqZnZG0Eu1my1zz',
|
|
1835
|
+
'ywXS',
|
|
1836
|
+
'CgfKu3rHCNq',
|
|
1837
|
+
'BgLZDf9Zzxj2zxi',
|
|
1838
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
1839
|
+
'CgfYDgLJAxbHBNrjza',
|
|
1840
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1841
|
+
'lcb3B3jRx2TLEtOG',
|
|
1842
|
+
'Dw5RBM93BG',
|
|
1843
|
+
'zxjYB3i',
|
|
1844
|
+
'CMvXDwvZDfvYBa',
|
|
1845
|
+
'BwfW',
|
|
1846
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1847
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1848
|
+
'l3DVCMTLCNmVC3bHD24',
|
|
1849
|
+
'Dg9KBW',
|
|
1850
|
+
'DxbSB2fKx2zPBgu',
|
|
1851
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1852
|
+
'DgfYz2v0',
|
|
1853
|
+
'pgvTChr5pG',
|
|
1854
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1855
|
+
'CgfYC2vjBNq',
|
|
1856
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
1857
|
+
'zMLSDgvY',
|
|
1858
|
+
'Agv4',
|
|
1859
|
+
'l3rHC2TZ',
|
|
1860
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1861
|
+
'y3jLyxrLx3rHC2TZ',
|
|
1862
|
+
'ywz0zxjtzxe',
|
|
1863
|
+
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
1864
|
+
'C2XPy2u',
|
|
1865
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1866
|
+
'zMLSzxnFy2HHBMDLza',
|
|
1867
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
1868
|
+
'AM9PBG',
|
|
1869
|
+
'CMvZCg9UC2u',
|
|
1870
|
+
'BMv4Df9ZDgvWCW',
|
|
1871
|
+
'zg06',
|
|
1872
|
+
'CgfYDgLJAxbHBNq',
|
|
1873
|
+
'yxjNDG',
|
|
1874
|
+
'BwvZC2fNzuLK',
|
|
1875
|
+
'D29YA2vYsgfUzg9MzJ1MywXZzsbLCNjVCJ0',
|
|
1876
|
+
'C3bSAxq',
|
|
1877
|
+
'BwvKAxvT',
|
|
1878
|
+
'ndr0quHRv0m',
|
|
1879
|
+
'y2XHAw1FDgfZA3m',
|
|
1880
|
+
'yxjYyxK',
|
|
1881
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
1882
|
+
'iYmJieH1BwfUCW',
|
|
1883
|
+
'Dgv4Dc9JC3y',
|
|
1884
|
+
'Axnoyu4',
|
|
1885
|
+
'CMvZDwX0',
|
|
1886
|
+
'y2HHBM5LBeLK',
|
|
1887
|
+
'y2XHAw1uyxnRCW',
|
|
1888
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1889
|
+
'y2XHAw0GzMfPBgvK',
|
|
1890
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
1891
|
+
'CMvHzeHPC3rVCNK',
|
|
1892
|
+
'ig1LC3nHz2vZkqOk',
|
|
1893
|
+
'Dgv4Dc9WBgfPBG',
|
|
1894
|
+
'zMfPBgvK',
|
|
1895
|
+
'CNvUBMLUzW',
|
|
1896
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1897
|
+
'r0vu',
|
|
1898
|
+
'DxnLCG',
|
|
1899
|
+
'zw51Bq',
|
|
1900
|
+
'AxnbCNjHEq',
|
|
1901
|
+
'B3b0Aw9UywW',
|
|
1902
|
+
'Ahr0CdO',
|
|
1903
|
+
'DgHYzwfKu2HVCNrjza',
|
|
1904
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
1905
|
+
'y3jLyxrLzef0',
|
|
1906
|
+
'BNvTyMvY',
|
|
1907
|
+
'zgLNzxn0',
|
|
1908
|
+
'ywDNCMvNyxrLswrZ',
|
|
1909
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1910
|
+
'l3jLy2vPDMu',
|
|
1911
|
+
'kgXLz2fJEsK',
|
|
1912
|
+
'zgvJAxnPB25Z',
|
|
1913
|
+
'zxzLBNrtzxe',
|
|
1914
|
+
'C2v0',
|
|
1915
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
1916
|
+
'AgvHzgvYCW',
|
|
1917
|
+
'Aw1Hz2uVANbLzW',
|
|
1918
|
+
'C2vZC2LVBKLK',
|
|
1919
|
+
'C3bHD25FD29YA2vYigzHAwXLza',
|
|
1920
|
+
'yxjYyxLcDwzMzxi',
|
|
1921
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1922
|
+
'DhjPBq',
|
|
1923
|
+
'l3vWBg9Hza',
|
|
1924
|
+
'icHPzdO',
|
|
1925
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
1926
|
+
'Dg9VBa',
|
|
1927
|
+
'Bwf4',
|
|
1928
|
+
'mtG5nKfJD2r1Cq',
|
|
1929
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1930
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
1931
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
1932
|
+
'zNjVBq',
|
|
1933
|
+
'yMfZzty0',
|
|
1934
|
+
'y2f0y2G',
|
|
1935
|
+
'D29YA2vYsgfUzg9MzG',
|
|
1936
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
1937
|
+
'CgfYC2u',
|
|
1938
|
+
'DgHYzwfKvgfYz2v0',
|
|
1939
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1940
|
+
'DgfZAY0',
|
|
1941
|
+
'CMvZDwX0CW',
|
|
1942
|
+
'y29UDgvUDc10ExbL',
|
|
1943
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1944
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1945
|
+
'yMfZzw5HBwu',
|
|
1946
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
1947
|
+
'ihrPBwu9',
|
|
1948
|
+
'C3vTBwfYEq',
|
|
1949
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1950
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1951
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
1952
|
+
'kg5VBMuP',
|
|
1953
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
1954
|
+
'AxnbyNnVBhv0zq',
|
|
1955
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1956
|
+
'zgvZDhjVEwvK',
|
|
1957
|
+
'BgvUz3rO',
|
|
1958
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1959
|
+
'ndy5mJnUCvnWCK4',
|
|
1960
|
+
'AxngAwXL',
|
|
1961
|
+
'mta1CMzKuLLv',
|
|
1962
|
+
'DMLLD19MAwXL',
|
|
1963
|
+
'yM9KEu1HCMTKB3DU',
|
|
1964
|
+
'uefuq0G',
|
|
1965
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1966
|
+
'zgLZCg9ZAxrPB24',
|
|
1967
|
+
'Cgf5Bg9HzePZB24',
|
|
1968
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1969
|
+
'zgfLBw9UqxbPs2v5',
|
|
1970
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1971
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
1972
|
+
'l2zPBMLZAa',
|
|
1973
|
+
'y3vYC29Y',
|
|
1974
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1975
|
+
'DxjNzw50',
|
|
1976
|
+
'z2v0',
|
|
1977
|
+
'iJOGC3rHDhvZpq',
|
|
1978
|
+
'y2HHBM5LBa',
|
|
1979
|
+
'AgfZtw9Yzq',
|
|
1980
|
+
'mc4WlJa',
|
|
1981
|
+
'C3rYAw5NAwz5',
|
|
1982
|
+
'ywDNCMvNyxrLswq',
|
|
1983
|
+
'otbyCuv4s1K',
|
|
1984
|
+
'y29UDgvUDfr5Cgu',
|
|
1985
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1986
|
+
'yMvMB3jL',
|
|
1987
|
+
'AhjLzG',
|
|
1988
|
+
'iIbUB3qGzM91BMq',
|
|
1989
|
+
'BwvTyMvY',
|
|
1990
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
1991
|
+
'yxr0ywnOBwvUDeLK',
|
|
1992
|
+
'D29YA2vY',
|
|
1993
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1994
|
+
'zg0T',
|
|
1995
|
+
'C3bHD25FD29YA2vY',
|
|
1996
|
+
'lNnSB2nR',
|
|
1997
|
+
'ig1ZzZ0',
|
|
1998
|
+
'C2vYDMvY',
|
|
1999
|
+
'l3nLCNzLCG',
|
|
2000
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
2001
|
+
'DgHYzwfK',
|
|
2002
|
+
'y29UBMvJDa',
|
|
2003
|
+
'zMLSzv9WyxrO',
|
|
2004
|
+
'C3bHD25Lza',
|
|
2005
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
2006
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
2007
|
+
'l3nLBMq',
|
|
2008
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
2009
|
+
'C2vYDMvYvxjS',
|
|
2010
|
+
'ywz0zxi',
|
|
2011
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
2012
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
2013
|
+
'z2v0u2vJB25KCW',
|
|
2014
|
+
'CM9VDe1LC3nHz2vjza',
|
|
2015
|
+
'CxvLDwvK',
|
|
2016
|
+
'ywjVCNq',
|
|
2017
|
+
'CMvHC29U',
|
|
2018
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
2019
|
+
'zgvZy3jPChrPB24',
|
|
2020
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
2021
|
+
'BwLU',
|
|
2022
|
+
'C29YDa',
|
|
2023
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
2024
|
+
'DgfZA19Pza',
|
|
2025
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
2026
|
+
'BwvTyMvYCW',
|
|
2027
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
2028
|
+
'ls1Zzxj2zxiTDxjS',
|
|
2029
|
+
'Dg9ju09tDhjPBMC',
|
|
2030
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
2031
|
+
'Aw5KzxHpzG',
|
|
2032
|
+
'C3rHDhvZ',
|
|
2033
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
2034
|
+
'B3bLBL9PC3n1zxm',
|
|
2035
|
+
'ywDLBNrZ',
|
|
2036
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
2037
|
+
'lMjPBG',
|
|
2038
|
+
'sfruuca',
|
|
2039
|
+
'z2v0sg91CNm',
|
|
2040
|
+
'ANnVBG',
|
|
2041
|
+
'y29TCgXLDgvK',
|
|
2042
|
+
'BwvZC2fNzq',
|
|
2043
|
+
'D29YA2vYtw9Kzq',
|
|
2044
|
+
'BgLTAxq',
|
|
2045
|
+
'yxv0BZO',
|
|
2046
|
+
'BwvZC2fNzxm',
|
|
2047
|
+
'igf0DgfJAg1LBNq',
|
|
2048
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
2049
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
2050
|
+
'AhvTyw4',
|
|
2051
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
2052
|
+
'C2vX',
|
|
2053
|
+
'l2nVBNrLBNq',
|
|
2054
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
2055
|
+
'y3jLyxrLvgfZA3m',
|
|
2056
|
+
'zg9Uzq',
|
|
2057
|
+
'A2LUza',
|
|
2058
|
+
'y2fJAgveAxi',
|
|
2059
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
2060
|
+
'BMfTzq',
|
|
2061
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
2062
|
+
'y2HHBM5LBe5HBwu',
|
|
2063
|
+
'Aw5FCMv2Awv3',
|
|
2064
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
2065
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
2066
|
+
'ihr5Cgu9ywDLBNq',
|
|
2067
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
2068
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
2069
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
2070
|
+
'y29UDgvUDejHC2u2na',
|
|
2071
|
+
'D3nZoG',
|
|
2072
|
+
'zgvSzxrL',
|
|
2073
|
+
'zxHWAxjLC0f0',
|
|
2074
|
+
'z2v0rgf0zq',
|
|
2075
|
+
'y2XPzw50',
|
|
2076
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
2077
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
2078
|
+
'zw50CMLLCW',
|
|
2079
|
+
'ig1LC3nHz2u9',
|
|
2080
|
+
'ywDLBNq',
|
|
2081
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
2082
|
+
'iYmJiefNzw50CW',
|
|
2083
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
2084
|
+
'zgf0yq',
|
|
2085
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
2086
|
+
'CgfYDgLJAxbHBNrZ',
|
|
2087
|
+
'D29YA2vYCW',
|
|
2088
|
+
'v29YA2vYici',
|
|
2089
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
2090
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
2091
|
+
'iYmGu2vYDMvYoIa',
|
|
2092
|
+
'iYmJienOyw5UzwXZ',
|
|
2093
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
2094
|
+
'C2LNBMfS',
|
|
2095
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
2096
|
+
'mJyWodmXnZHAqM9ZuLi',
|
|
2097
|
+
'D29YA19RzxK',
|
|
2098
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
2099
|
+
'CMvZDwX0sNnVBG',
|
|
2100
|
+
'Dg9tDhjPBMC',
|
|
2101
|
+
'ywrK',
|
|
2102
|
+
'Dw5JBgfPBv90yxnR',
|
|
2103
|
+
'ndu5mti2CeH1uMnA',
|
|
2104
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
2105
|
+
'DgfZA0LK',
|
|
2106
|
+
'CMvWBgfJzq',
|
|
2107
|
+
'EM9K',
|
|
2108
|
+
'6k+35Rgcia',
|
|
2109
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
2110
|
+
'y29UDgvUDa',
|
|
2111
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
2112
|
+
'z2v0vgLTzq',
|
|
2113
|
+
'Aw5JBhvKzxm',
|
|
2114
|
+
'zMLUza',
|
|
2115
|
+
'zMfSC2u',
|
|
2116
|
+
'C2vUzgvYtMfTzq',
|
|
2117
|
+
'zgLZCgXHEu5HBwu',
|
|
2118
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
2119
|
+
'xsba',
|
|
2120
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
2121
|
+
'C2vUzgvYvhLWzq',
|
|
2122
|
+
'mZiWmdu4rgPhrNnw',
|
|
2123
|
+
'DgfZA051BwjLCG',
|
|
2124
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
2125
|
+
'C2HHmJu2',
|
|
2126
|
+
'AgfZ',
|
|
2127
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
2128
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
2129
|
+
'DgvZDa',
|
|
2130
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
2131
|
+
'y2HHBM5LBhm',
|
|
2132
|
+
'Dgv4Da',
|
|
2133
|
+
'lIbnzxnZywDLieLeoIa',
|
|
2134
|
+
'Aw1Hz2uVz2LM',
|
|
2135
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
2136
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
2137
|
+
'DgfZA3m',
|
|
2138
|
+
'Dg9mB3DLCKnHC2u',
|
|
2139
|
+
'C2vYDMvYx21LBwjLCNm',
|
|
2140
|
+
'CMvWBhLFDgfYz2v0',
|
|
2141
|
+
'C2vYDMvYtMfTzq',
|
|
2142
|
+
'DgHYzwfKx3rHCMDLDa'
|
|
1401
2143
|
];
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
const _0x2b06a1 = {
|
|
1405
|
-
_0x3a63d5: 0x1d9,
|
|
1406
|
-
_0x334516: 0x2f7,
|
|
1407
|
-
_0x44940e: 0x2af,
|
|
1408
|
-
_0x3344f7: 0x29d
|
|
1409
|
-
}, _0x588549 = {
|
|
1410
|
-
_0x4b9832: 0x1d9,
|
|
1411
|
-
_0x4ece8c: 0x2c3,
|
|
1412
|
-
_0x2eeed7: 0x2fb,
|
|
1413
|
-
_0x5a407e: 0x2a0,
|
|
1414
|
-
_0x16e516: 0x2bf,
|
|
1415
|
-
_0xa69e49: 0x25e,
|
|
1416
|
-
_0x1cde6c: 0x21f
|
|
1417
|
-
}, _0x5bcda1 = {
|
|
1418
|
-
_0xf29799: 0x2ef,
|
|
1419
|
-
_0x258b4a: 0x2a0,
|
|
1420
|
-
_0x50fba: 0x207,
|
|
1421
|
-
_0xb0547e: 0x201,
|
|
1422
|
-
_0x23cf46: 0x2f2,
|
|
1423
|
-
_0x2f89bf: 0x2af,
|
|
1424
|
-
_0x54a998: 0x207,
|
|
1425
|
-
_0x22131f: 0x24f
|
|
1426
|
-
}, _0x239274 = {
|
|
1427
|
-
_0x135c69: 0x207,
|
|
1428
|
-
_0x6ba0ac: 0x286
|
|
1429
|
-
}, _0x5c73a4 = {
|
|
1430
|
-
_0x1fe476: 0x1d9,
|
|
1431
|
-
_0x515c5a: 0x207,
|
|
1432
|
-
_0x12529f: 0x2b4
|
|
1433
|
-
}, _0x16b93d = {
|
|
1434
|
-
_0x5f1625: 0x1d9,
|
|
1435
|
-
_0x1058b7: 0x2fb,
|
|
1436
|
-
_0x4c1229: 0x207,
|
|
1437
|
-
_0x2f83c2: 0x2ff,
|
|
1438
|
-
_0x11ccc4: 0x2ff,
|
|
1439
|
-
_0x49b588: 0x24d,
|
|
1440
|
-
_0x166ea3: 0x317
|
|
1441
|
-
}, _0x59edf5 = {
|
|
1442
|
-
_0x3d4e55: 0x27f,
|
|
1443
|
-
_0x25d505: 0x301,
|
|
1444
|
-
_0x40bbb0: 0x232,
|
|
1445
|
-
_0x54fd21: 0x279,
|
|
1446
|
-
_0x4cc76f: 0x277
|
|
1447
|
-
}, _0x404182 = {
|
|
1448
|
-
_0x359918: 0x1e4,
|
|
1449
|
-
_0x31c7b4: 0x31b
|
|
1450
|
-
}, _0x7fda = { _0x29c131: 0x27f }, _0x302d6c = {
|
|
1451
|
-
_0x58b09b: 0x228,
|
|
1452
|
-
_0x33f4f2: 0x24e,
|
|
1453
|
-
_0x46c209: 0x31b,
|
|
1454
|
-
_0x3072c0: 0x2b2
|
|
1455
|
-
}, _0x1137d7 = { _0x348cd5: 0x23a }, _0x221b53 = {
|
|
1456
|
-
_0xeef963: 0x1d9,
|
|
1457
|
-
_0x46626e: 0x2bf,
|
|
1458
|
-
_0x22d815: 0x2ab,
|
|
1459
|
-
_0x27b432: 0x2f1,
|
|
1460
|
-
_0x52719c: 0x247,
|
|
1461
|
-
_0x5caab6: 0x238,
|
|
1462
|
-
_0x6b1e21: 0x23a
|
|
1463
|
-
}, _0x2bed54 = { _0x5346c6: 0x27f }, _0x24381e = {
|
|
1464
|
-
_0x7dd310: 0x27f,
|
|
1465
|
-
_0x3673b9: 0x2a3,
|
|
1466
|
-
_0x4592f5: 0x316,
|
|
1467
|
-
_0x5018ed: 0x245
|
|
1468
|
-
}, _0x435a43 = {
|
|
1469
|
-
_0x4dedfc: 0x1ca,
|
|
1470
|
-
_0x456ba8: 0x1f1,
|
|
1471
|
-
_0x4bed88: 0x233
|
|
1472
|
-
}, _0xd1ee76 = {
|
|
1473
|
-
_0x37b767: 0x2a2,
|
|
1474
|
-
_0x5827e8: 0x1fd,
|
|
1475
|
-
_0x85d406: 0x2e3,
|
|
1476
|
-
_0x46907a: 0x2f1
|
|
1477
|
-
}, _0x432c66 = {
|
|
1478
|
-
_0x8415cf: 0x31b,
|
|
1479
|
-
_0x27bd88: 0x31c,
|
|
1480
|
-
_0x3d6320: 0x296,
|
|
1481
|
-
_0x2fd8b8: 0x245,
|
|
1482
|
-
_0x17eed4: 0x2fa,
|
|
1483
|
-
_0x43b67a: 0x1e3,
|
|
1484
|
-
_0x2c938b: 0x1e3,
|
|
1485
|
-
_0x19c047: 0x31e,
|
|
1486
|
-
_0x1a2578: 0x24e,
|
|
1487
|
-
_0x326e3a: 0x2d7,
|
|
1488
|
-
_0x46c5b4: 0x1c9,
|
|
1489
|
-
_0x21b2f5: 0x2a0,
|
|
1490
|
-
_0x58fdc6: 0x1e2,
|
|
1491
|
-
_0x57d692: 0x1e3,
|
|
1492
|
-
_0x54bebf: 0x2f5,
|
|
1493
|
-
_0x49dc86: 0x2ab,
|
|
1494
|
-
_0x42097e: 0x2ff
|
|
1495
|
-
};
|
|
1496
|
-
async function _0x223a0a(_0x520924) {
|
|
1497
|
-
const _0x39eb42 = _0x57a3;
|
|
1498
|
-
if (!_0x11c023['daemonLocalUrl'] || !_0x11c023['agentId'] || _0x11c023['workerMode'] || _0x11c023['workerModeEnabled'] !== !![])
|
|
1499
|
-
return null;
|
|
1500
|
-
const _0x1eae1d = parseTarget(_0x520924[_0x39eb42(_0x432c66._0x8415cf)]);
|
|
1501
|
-
if (_0x1eae1d[_0x39eb42(_0x432c66._0x27bd88)] !== _0x39eb42(0x31b))
|
|
1502
|
-
return null;
|
|
1503
|
-
const _0x492c5b = _0x1eae1d['channelTarget'] + ':' + _0x520924[_0x39eb42(0x24e)][_0x39eb42(_0x432c66._0x3d6320)](0x0, 0x8), _0x4b45ee = await _0x11c023['client']['readHistory']({
|
|
1504
|
-
'channel': _0x492c5b,
|
|
1505
|
-
'limit': 0x14
|
|
1506
|
-
}), _0x14b8b3 = _0x4b45ee[_0x39eb42(_0x432c66._0x2fd8b8)][_0x39eb42(_0x432c66._0x17eed4)](_0x1e78d1 => _0x1e78d1[_0x39eb42(0x24e)] === _0x520924['messageId']), _0xe3ef59 = _0x520924[_0x39eb42(_0x432c66._0x43b67a)] == null ? _0x39eb42(0x22e) : '#' + _0x520924[_0x39eb42(_0x432c66._0x2c938b)], _0x837b05 = [
|
|
1507
|
-
_0x39eb42(_0x432c66._0x19c047) + _0x492c5b + '\x20msg=' + _0x520924[_0x39eb42(_0x432c66._0x1a2578)]['slice'](0x0, 0x8) + '\x20time=' + new Date()[_0x39eb42(0x218)]() + _0x39eb42(_0x432c66._0x326e3a) + _0xe3ef59 + '\x20已切换到\x20worker\x20执行',
|
|
1508
|
-
'',
|
|
1509
|
-
_0x14b8b3 ? 'Root\x20task\x20message:\x0a' + _0x14b8b3['content'] : _0x39eb42(0x2cc) + _0x520924['messageId'],
|
|
1510
|
-
'',
|
|
1511
|
-
'Thread\x20target:\x20' + _0x492c5b,
|
|
1512
|
-
_0x39eb42(0x1da)
|
|
1513
|
-
][_0x39eb42(_0x432c66._0x46c5b4)]('\x0a'), _0x21a73f = await fetch(_0x11c023[_0x39eb42(0x1d9)] + _0x39eb42(0x25d), {
|
|
1514
|
-
'method': _0x39eb42(0x2f7),
|
|
1515
|
-
'headers': { 'Content-Type': _0x39eb42(0x2fb) },
|
|
1516
|
-
'body': JSON[_0x39eb42(_0x432c66._0x21b2f5)]({
|
|
1517
|
-
'agent_id': _0x11c023[_0x39eb42(0x2bf)],
|
|
1518
|
-
'thread_target': _0x492c5b,
|
|
1519
|
-
'spawn_packet': {
|
|
1520
|
-
'replyTarget': _0x492c5b,
|
|
1521
|
-
..._0x520924[_0x39eb42(0x1e2)] ? { 'taskId': _0x520924[_0x39eb42(_0x432c66._0x58fdc6)] } : _0x520924[_0x39eb42(_0x432c66._0x43b67a)] != null ? { 'taskId': 'task-' + _0x520924[_0x39eb42(_0x432c66._0x57d692)] } : {}
|
|
1522
|
-
},
|
|
1523
|
-
'payload': {
|
|
1524
|
-
'mode': _0x39eb42(_0x432c66._0x54bebf),
|
|
1525
|
-
'text': _0x837b05
|
|
1526
|
-
}
|
|
1527
|
-
})
|
|
1528
|
-
}), _0x5c0615 = await _0x21a73f[_0x39eb42(_0x432c66._0x49dc86)]();
|
|
1529
|
-
if (!_0x5c0615['ok'])
|
|
1530
|
-
throw new Error(_0x5c0615[_0x39eb42(0x2af)] ?? 'worker\x20handoff\x20failed');
|
|
1531
|
-
return {
|
|
1532
|
-
'stopMain': !![],
|
|
1533
|
-
'threadTarget': _0x492c5b,
|
|
1534
|
-
'workerDisposition': _0x5c0615['disposition'] === _0x39eb42(_0x432c66._0x42097e) ? 'queued' : _0x39eb42(0x1f5),
|
|
1535
|
-
'workerHandoff': !![],
|
|
1536
|
-
'workerSessionId': _0x5c0615[_0x39eb42(0x1dc)] ?? '',
|
|
1537
|
-
'executionMode': 'worker'
|
|
1538
|
-
};
|
|
1539
|
-
}
|
|
1540
|
-
async function _0x295f3d() {
|
|
1541
|
-
const _0x205017 = _0x57a3;
|
|
1542
|
-
if (!_0x11c023['daemonLocalUrl'] || !_0x11c023[_0x205017(0x2bf)] || _0x11c023[_0x205017(_0xd1ee76._0x37b767)])
|
|
1543
|
-
return null;
|
|
1544
|
-
try {
|
|
1545
|
-
const _0xc362ea = await fetch(_0x11c023['daemonLocalUrl'] + _0x205017(_0xd1ee76._0x5827e8) + encodeURIComponent(_0x11c023['agentId'])), _0x5586ce = await _0xc362ea['json']();
|
|
1546
|
-
if (!_0x5586ce['ok'])
|
|
1547
|
-
return null;
|
|
1548
|
-
const _0x3c885e = new Set();
|
|
1549
|
-
for (const _0x3d06bd of _0x5586ce[_0x205017(0x2fe)]) {
|
|
1550
|
-
_0x3d06bd[_0x205017(_0xd1ee76._0x85d406)] !== _0x205017(_0xd1ee76._0x46907a) && _0x3d06bd[_0x205017(0x247)] && _0x3c885e['add'](_0x3d06bd[_0x205017(0x247)]);
|
|
1551
|
-
}
|
|
1552
|
-
return _0x3c885e[_0x205017(0x2d9)] > 0x0 ? _0x3c885e : null;
|
|
1553
|
-
} catch {
|
|
1554
|
-
return null;
|
|
1555
|
-
}
|
|
1556
|
-
}
|
|
1557
|
-
return {
|
|
1558
|
-
async 'send_message'(_0x5be5a1) {
|
|
1559
|
-
const _0x2e66b5 = _0x57a3, _0x20738f = await _0x11c023['client'][_0x2e66b5(_0x435a43._0x4dedfc)]({
|
|
1560
|
-
'attachmentIds': _0x5be5a1[_0x2e66b5(_0x435a43._0x456ba8)],
|
|
1561
|
-
'content': _0x5be5a1[_0x2e66b5(0x2e8)],
|
|
1562
|
-
'target': _0x5be5a1[_0x2e66b5(0x1ef)]
|
|
1563
|
-
});
|
|
1564
|
-
return _0x2e66b5(0x221) + _0x5be5a1[_0x2e66b5(0x1ef)] + _0x2e66b5(_0x435a43._0x4bed88) + _0x20738f[_0x2e66b5(0x24e)];
|
|
1565
|
-
},
|
|
1566
|
-
async 'check_messages'() {
|
|
1567
|
-
const _0x1bf03d = _0x57a3, _0x336633 = await _0x11c023[_0x1bf03d(_0x24381e._0x7dd310)][_0x1bf03d(_0x24381e._0x3673b9)]();
|
|
1568
|
-
if (!_0x11c023['workerMode']) {
|
|
1569
|
-
const _0x43df85 = await _0x295f3d();
|
|
1570
|
-
if (_0x43df85)
|
|
1571
|
-
return formatCheckMessages(_0x336633['messages'][_0x1bf03d(_0x24381e._0x4592f5)](_0x1fad91 => !_0x43df85[_0x1bf03d(0x304)](_0x1fad91['target'])));
|
|
1572
|
-
}
|
|
1573
|
-
return formatCheckMessages(_0x336633[_0x1bf03d(_0x24381e._0x5018ed)]);
|
|
1574
|
-
},
|
|
1575
|
-
async 'read_history'(_0x37b739) {
|
|
1576
|
-
const _0x5f5898 = _0x57a3, _0x454a42 = await _0x11c023[_0x5f5898(_0x2bed54._0x5346c6)][_0x5f5898(0x2c1)](_0x37b739);
|
|
1577
|
-
return formatHistory(_0x454a42);
|
|
1578
|
-
},
|
|
1579
|
-
async 'list_server'() {
|
|
1580
|
-
const _0x20eec0 = _0x57a3, _0x5df13b = await _0x11c023[_0x20eec0(0x27f)][_0x20eec0(0x2b8)]();
|
|
1581
|
-
return formatServerDirectory(_0x5df13b);
|
|
1582
|
-
},
|
|
1583
|
-
async 'list_tasks'(_0xf65b57) {
|
|
1584
|
-
const _0x4fbed8 = _0x57a3, _0x1cafa6 = await _0x11c023['client'][_0x4fbed8(0x21e)](_0xf65b57);
|
|
1585
|
-
let _0x35ccbf;
|
|
1586
|
-
if (_0x11c023[_0x4fbed8(0x1d9)] && _0x11c023[_0x4fbed8(0x2bf)])
|
|
1587
|
-
try {
|
|
1588
|
-
const _0x2cbb06 = await fetch(_0x11c023[_0x4fbed8(_0x221b53._0xeef963)] + _0x4fbed8(0x1fd) + encodeURIComponent(_0x11c023[_0x4fbed8(_0x221b53._0x46626e)])), _0xf0443e = await _0x2cbb06[_0x4fbed8(_0x221b53._0x22d815)]();
|
|
1589
|
-
if (_0xf0443e['ok']) {
|
|
1590
|
-
const _0x3c04d7 = _0xf65b57[_0x4fbed8(0x31b)] + ':';
|
|
1591
|
-
_0x35ccbf = new Set();
|
|
1592
|
-
for (const _0x356f16 of _0xf0443e['workers']) {
|
|
1593
|
-
if (_0x356f16[_0x4fbed8(0x2e3)] === _0x4fbed8(_0x221b53._0x27b432))
|
|
1594
|
-
continue;
|
|
1595
|
-
if (_0x356f16[_0x4fbed8(0x247)]?.[_0x4fbed8(0x1eb)](_0x3c04d7)) {
|
|
1596
|
-
const _0xb3dc54 = _0x356f16[_0x4fbed8(_0x221b53._0x52719c)]['slice'](_0x3c04d7[_0x4fbed8(_0x221b53._0x5caab6)]), _0x5d06f4 = _0x1cafa6[_0x4fbed8(0x23a)][_0x4fbed8(0x2fa)](_0x1ae698 => _0x1ae698['messageId']?.[_0x4fbed8(0x1eb)](_0xb3dc54) === !![]);
|
|
1597
|
-
if (_0x5d06f4?.['taskNumber'] != null) {
|
|
1598
|
-
_0x35ccbf[_0x4fbed8(0x1d7)](_0x5d06f4[_0x4fbed8(0x1e3)]);
|
|
1599
|
-
continue;
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
if (_0x356f16['task_id']) {
|
|
1603
|
-
const _0x457126 = _0x1cafa6[_0x4fbed8(0x23a)][_0x4fbed8(0x2fa)](_0x49eb8e => _0x49eb8e[_0x4fbed8(0x1e2)] === _0x356f16[_0x4fbed8(0x261)]);
|
|
1604
|
-
_0x457126?.['taskNumber'] != null && _0x35ccbf['add'](_0x457126['taskNumber']);
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
} catch {
|
|
1609
|
-
}
|
|
1610
|
-
return formatTaskList(_0x1cafa6[_0x4fbed8(_0x221b53._0x6b1e21)], _0x35ccbf);
|
|
1611
|
-
},
|
|
1612
|
-
async 'create_tasks'(_0x113862) {
|
|
1613
|
-
const _0x275c8a = _0x57a3, _0x44b729 = await _0x11c023['client']['createTasks'](_0x113862);
|
|
1614
|
-
return formatCreatedTasks(_0x44b729[_0x275c8a(_0x1137d7._0x348cd5)]);
|
|
1615
|
-
},
|
|
1616
|
-
async 'claim_tasks'(_0xcfa495) {
|
|
1617
|
-
const _0x2ba252 = _0x57a3, _0x1a3d7f = await _0x11c023[_0x2ba252(_0x7fda._0x29c131)][_0x2ba252(0x2d4)](_0xcfa495), _0x40893b = await Promise[_0x2ba252(0x29a)](_0x1a3d7f[_0x2ba252(0x2dc)][_0x2ba252(0x20b)](async _0xa34142 => {
|
|
1618
|
-
const _0x55119f = _0x2ba252;
|
|
1619
|
-
if (!_0xa34142[_0x55119f(_0x302d6c._0x58b09b)] || !_0xa34142[_0x55119f(_0x302d6c._0x33f4f2)])
|
|
1620
|
-
return _0xa34142;
|
|
1621
|
-
try {
|
|
1622
|
-
const _0x3e75ff = await _0x223a0a({
|
|
1623
|
-
'channel': _0xcfa495[_0x55119f(_0x302d6c._0x46c209)],
|
|
1624
|
-
'messageId': _0xa34142['messageId'],
|
|
1625
|
-
'taskId': _0xa34142['taskId'],
|
|
1626
|
-
'taskNumber': _0xa34142['taskNumber']
|
|
1627
|
-
});
|
|
1628
|
-
return _0x3e75ff ? {
|
|
1629
|
-
..._0xa34142,
|
|
1630
|
-
..._0x3e75ff
|
|
1631
|
-
} : _0xa34142;
|
|
1632
|
-
} catch (_0x27da53) {
|
|
1633
|
-
return {
|
|
1634
|
-
..._0xa34142,
|
|
1635
|
-
'workerHandoffError': _0x27da53 instanceof Error ? _0x27da53[_0x55119f(_0x302d6c._0x3072c0)] : 'worker\x20handoff\x20failed'
|
|
1636
|
-
};
|
|
1637
|
-
}
|
|
1638
|
-
}));
|
|
1639
|
-
return formatClaimTaskResults(_0x40893b);
|
|
1640
|
-
},
|
|
1641
|
-
async 'unclaim_task'(_0x569815) {
|
|
1642
|
-
const _0x386560 = _0x57a3, _0x488fc9 = await _0x11c023[_0x386560(0x27f)]['unclaimTask'](_0x569815);
|
|
1643
|
-
return formatUnclaimTaskResult(_0x488fc9);
|
|
1644
|
-
},
|
|
1645
|
-
async 'update_task_status'(_0x1cced4) {
|
|
1646
|
-
const _0x48c900 = _0x57a3, _0x15e828 = await _0x11c023[_0x48c900(0x27f)][_0x48c900(0x225)](_0x1cced4);
|
|
1647
|
-
return formatUpdateTaskStatusResult(_0x15e828);
|
|
1648
|
-
},
|
|
1649
|
-
async 'upload_file'(_0x15031e) {
|
|
1650
|
-
const _0x1456de = _0x57a3, _0x268c17 = await _0x11c023[_0x1456de(0x29b)](_0x15031e[_0x1456de(0x262)]), {
|
|
1651
|
-
sizeBytes: _0x38b6f2,
|
|
1652
|
-
..._0x2b67de
|
|
1653
|
-
} = _0x268c17, _0x4b08a0 = await _0x11c023[_0x1456de(0x27f)][_0x1456de(_0x404182._0x359918)]({
|
|
1654
|
-
'channel': _0x15031e[_0x1456de(_0x404182._0x31c7b4)],
|
|
1655
|
-
..._0x2b67de
|
|
1656
|
-
});
|
|
1657
|
-
return formatUploadResult(_0x4b08a0);
|
|
1658
|
-
},
|
|
1659
|
-
async 'view_file'(_0x42a5f0) {
|
|
1660
|
-
const _0x384b63 = _0x57a3, _0xdaeb0e = await _0x11c023[_0x384b63(0x301)]['findCachedPath'](_0x42a5f0[_0x384b63(0x20e)]);
|
|
1661
|
-
if (_0xdaeb0e)
|
|
1662
|
-
return formatViewFileResult(_0xdaeb0e, !![]);
|
|
1663
|
-
const _0xc2870a = await _0x11c023[_0x384b63(_0x59edf5._0x3d4e55)]['downloadAttachment'](_0x42a5f0[_0x384b63(0x20e)]), _0x292716 = await _0x11c023[_0x384b63(_0x59edf5._0x25d505)][_0x384b63(_0x59edf5._0x40bbb0)]({
|
|
1664
|
-
'attachmentId': _0x42a5f0['attachment_id'],
|
|
1665
|
-
'contentType': _0xc2870a['contentType'],
|
|
1666
|
-
'data': _0xc2870a[_0x384b63(_0x59edf5._0x54fd21)],
|
|
1667
|
-
'originalFilename': _0xc2870a[_0x384b63(_0x59edf5._0x4cc76f)]
|
|
1668
|
-
});
|
|
1669
|
-
return formatViewFileResult(_0x292716, ![]);
|
|
1670
|
-
},
|
|
1671
|
-
async 'spawn_worker'(_0x4b8d03) {
|
|
1672
|
-
const _0x826e03 = _0x57a3;
|
|
1673
|
-
if (!_0x11c023[_0x826e03(_0x16b93d._0x5f1625)] || !_0x11c023[_0x826e03(0x2bf)])
|
|
1674
|
-
return _0x826e03(0x2dd);
|
|
1675
|
-
const _0x298b90 = await fetch(_0x11c023[_0x826e03(0x1d9)] + '/workers/spawn', {
|
|
1676
|
-
'method': 'POST',
|
|
1677
|
-
'headers': { 'Content-Type': _0x826e03(_0x16b93d._0x1058b7) },
|
|
1678
|
-
'body': JSON[_0x826e03(0x2a0)]({
|
|
1679
|
-
'agent_id': _0x11c023[_0x826e03(0x2bf)],
|
|
1680
|
-
'work_key': _0x4b8d03[_0x826e03(_0x16b93d._0x4c1229)],
|
|
1681
|
-
'thread_target': _0x4b8d03['thread_target'],
|
|
1682
|
-
'spawn_packet': {
|
|
1683
|
-
'replyTarget': _0x4b8d03['reply_target'],
|
|
1684
|
-
'taskId': _0x4b8d03[_0x826e03(0x261)]
|
|
1685
|
-
}
|
|
1686
|
-
})
|
|
1687
|
-
}), _0xcf8d63 = await _0x298b90[_0x826e03(0x2ab)]();
|
|
1688
|
-
if (!_0xcf8d63['ok'])
|
|
1689
|
-
throw new Error(_0xcf8d63[_0x826e03(0x2af)] ?? 'spawn_worker\x20failed');
|
|
1690
|
-
const _0x513ebe = _0xcf8d63[_0x826e03(0x2f8)] === _0x826e03(_0x16b93d._0x2f83c2) ? _0x826e03(_0x16b93d._0x11ccc4) : 'spawned';
|
|
1691
|
-
return 'Worker\x20' + _0x513ebe + _0x826e03(_0x16b93d._0x49b588) + _0xcf8d63[_0x826e03(0x1dc)] + _0x826e03(_0x16b93d._0x166ea3) + _0x4b8d03['work_key'];
|
|
1692
|
-
},
|
|
1693
|
-
async 'get_worker_status'(_0x17e281) {
|
|
1694
|
-
const _0x5f255e = _0x57a3;
|
|
1695
|
-
if (!_0x11c023[_0x5f255e(0x1d9)])
|
|
1696
|
-
return 'Worker\x20features\x20not\x20available';
|
|
1697
|
-
const _0x1e7126 = await fetch(_0x11c023[_0x5f255e(_0x5c73a4._0x1fe476)] + _0x5f255e(0x214) + encodeURIComponent(_0x17e281[_0x5f255e(_0x5c73a4._0x515c5a)])), _0x5dcef1 = await _0x1e7126['json']();
|
|
1698
|
-
if (!_0x5dcef1['ok'])
|
|
1699
|
-
return 'Worker\x20\x22' + _0x17e281[_0x5f255e(_0x5c73a4._0x515c5a)] + '\x22\x20not\x20found';
|
|
1700
|
-
return _0x5f255e(_0x5c73a4._0x12529f) + _0x17e281[_0x5f255e(0x207)] + _0x5f255e(0x2fc) + _0x5dcef1['status'];
|
|
1701
|
-
},
|
|
1702
|
-
async 'get_worker_result'(_0x501585) {
|
|
1703
|
-
const _0x5eff40 = _0x57a3;
|
|
1704
|
-
if (!_0x11c023[_0x5eff40(0x1d9)])
|
|
1705
|
-
return _0x5eff40(0x2ef);
|
|
1706
|
-
const _0x5106a6 = await fetch(_0x11c023[_0x5eff40(0x1d9)] + _0x5eff40(0x2b3) + encodeURIComponent(_0x501585[_0x5eff40(_0x239274._0x135c69)])), _0x5b45d = await _0x5106a6['json']();
|
|
1707
|
-
if (!_0x5b45d[_0x5eff40(_0x239274._0x6ba0ac)])
|
|
1708
|
-
return _0x5eff40(0x1fe) + _0x501585[_0x5eff40(_0x239274._0x135c69)] + '\x22';
|
|
1709
|
-
return JSON[_0x5eff40(0x2a0)](_0x5b45d[_0x5eff40(0x286)], null, 0x2);
|
|
1710
|
-
},
|
|
1711
|
-
async 'finish_worker'(_0x9e92fc) {
|
|
1712
|
-
const _0x57e8ea = _0x57a3;
|
|
1713
|
-
if (!_0x11c023[_0x57e8ea(0x1d9)])
|
|
1714
|
-
return _0x57e8ea(_0x5bcda1._0xf29799);
|
|
1715
|
-
const _0x39d31d = await fetch(_0x11c023[_0x57e8ea(0x1d9)] + '/workers/finish', {
|
|
1716
|
-
'method': 'POST',
|
|
1717
|
-
'headers': { 'Content-Type': _0x57e8ea(0x2fb) },
|
|
1718
|
-
'body': JSON[_0x57e8ea(_0x5bcda1._0x258b4a)]({
|
|
1719
|
-
'work_key': _0x9e92fc[_0x57e8ea(_0x5bcda1._0x50fba)],
|
|
1720
|
-
'resume_packet': {
|
|
1721
|
-
'objective': '',
|
|
1722
|
-
'result': _0x9e92fc['result'],
|
|
1723
|
-
'summary': _0x9e92fc[_0x57e8ea(_0x5bcda1._0xb0547e)],
|
|
1724
|
-
'decisions': _0x9e92fc[_0x57e8ea(0x22b)] ?? [],
|
|
1725
|
-
'filesChanged': _0x9e92fc[_0x57e8ea(0x1e7)] ?? [],
|
|
1726
|
-
'openIssues': _0x9e92fc[_0x57e8ea(_0x5bcda1._0x23cf46)] ?? [],
|
|
1727
|
-
'nextSteps': _0x9e92fc[_0x57e8ea(0x1e0)] ?? []
|
|
1728
|
-
}
|
|
1729
|
-
})
|
|
1730
|
-
}), _0x1dfcfd = await _0x39d31d[_0x57e8ea(0x2ab)]();
|
|
1731
|
-
if (!_0x1dfcfd['ok'])
|
|
1732
|
-
throw new Error(_0x1dfcfd[_0x57e8ea(_0x5bcda1._0x2f89bf)] ?? _0x57e8ea(0x2e4));
|
|
1733
|
-
return _0x57e8ea(0x2b4) + _0x9e92fc[_0x57e8ea(_0x5bcda1._0x54a998)] + _0x57e8ea(_0x5bcda1._0x22131f) + _0x9e92fc[_0x57e8ea(0x2bb)];
|
|
1734
|
-
},
|
|
1735
|
-
async 'mark_waiting_input'(_0x54f2bb) {
|
|
1736
|
-
const _0xa5886f = _0x57a3;
|
|
1737
|
-
if (!_0x11c023[_0xa5886f(_0x588549._0x4b9832)] || !_0x11c023['agentId'])
|
|
1738
|
-
return 'Worker\x20features\x20not\x20available\x20(daemon\x20local\x20URL\x20or\x20agent\x20ID\x20not\x20configured)';
|
|
1739
|
-
const _0x2a49f9 = await fetch(_0x11c023[_0xa5886f(0x1d9)] + _0xa5886f(_0x588549._0x4ece8c), {
|
|
1740
|
-
'method': 'POST',
|
|
1741
|
-
'headers': { 'Content-Type': _0xa5886f(_0x588549._0x2eeed7) },
|
|
1742
|
-
'body': JSON[_0xa5886f(_0x588549._0x5a407e)]({
|
|
1743
|
-
'work_key': _0x54f2bb['work_key'],
|
|
1744
|
-
'agent_id': _0x11c023[_0xa5886f(_0x588549._0x16e516)]
|
|
1745
|
-
})
|
|
1746
|
-
}), _0x2228e8 = await _0x2a49f9['json']();
|
|
1747
|
-
if (!_0x2228e8['ok'])
|
|
1748
|
-
throw new Error(_0x2228e8['error'] ?? _0xa5886f(_0x588549._0xa69e49));
|
|
1749
|
-
return _0xa5886f(0x2b4) + _0x54f2bb[_0xa5886f(0x207)] + _0xa5886f(_0x588549._0x1cde6c);
|
|
1750
|
-
},
|
|
1751
|
-
async 'escalate_to_main'(_0x5743d0) {
|
|
1752
|
-
const _0x566445 = _0x57a3;
|
|
1753
|
-
if (!_0x11c023[_0x566445(_0x2b06a1._0x3a63d5)])
|
|
1754
|
-
return _0x566445(0x2ef);
|
|
1755
|
-
const _0x57e98c = await fetch(_0x11c023[_0x566445(_0x2b06a1._0x3a63d5)] + '/workers/escalate', {
|
|
1756
|
-
'method': _0x566445(_0x2b06a1._0x334516),
|
|
1757
|
-
'headers': { 'Content-Type': _0x566445(0x2fb) },
|
|
1758
|
-
'body': JSON['stringify']({
|
|
1759
|
-
'work_key': _0x5743d0['work_key'],
|
|
1760
|
-
'reason': _0x5743d0[_0x566445(0x29d)]
|
|
1761
|
-
})
|
|
1762
|
-
}), _0x3eb0fc = await _0x57e98c[_0x566445(0x2ab)]();
|
|
1763
|
-
if (!_0x3eb0fc['ok'])
|
|
1764
|
-
throw new Error(_0x3eb0fc[_0x566445(_0x2b06a1._0x44940e)] ?? _0x566445(0x2c0));
|
|
1765
|
-
return _0x566445(0x29f) + _0x5743d0[_0x566445(_0x2b06a1._0x3344f7)];
|
|
1766
|
-
}
|
|
1767
|
-
};
|
|
1768
|
-
}
|
|
1769
|
-
function textResult(_0x32d823, _0x4dabc2 = ![]) {
|
|
1770
|
-
const _0x47d0be = _0xa1982e;
|
|
1771
|
-
return {
|
|
1772
|
-
'content': [{
|
|
1773
|
-
'type': _0x47d0be(0x1c8),
|
|
1774
|
-
'text': _0x32d823
|
|
1775
|
-
}],
|
|
1776
|
-
..._0x4dabc2 ? { 'isError': !![] } : {}
|
|
1777
|
-
};
|
|
1778
|
-
}
|
|
1779
|
-
async function registerChatBridgeTools(_0x22649d, _0x136a28, _0x4f542c) {
|
|
1780
|
-
const _0x3620ca = {
|
|
1781
|
-
_0x2a55bd: 0x1d4,
|
|
1782
|
-
_0x3b0fab: 0x226,
|
|
1783
|
-
_0x43d4cd: 0x1cc,
|
|
1784
|
-
_0x217f40: 0x2a8,
|
|
1785
|
-
_0x35332e: 0x29c,
|
|
1786
|
-
_0xd21b9b: 0x300,
|
|
1787
|
-
_0x1f9398: 0x2a8,
|
|
1788
|
-
_0x4fe18f: 0x30a,
|
|
1789
|
-
_0x8452f7: 0x250,
|
|
1790
|
-
_0x449a0b: 0x318,
|
|
1791
|
-
_0x5afbbd: 0x282,
|
|
1792
|
-
_0x33b33d: 0x2e0,
|
|
1793
|
-
_0x308e5c: 0x206,
|
|
1794
|
-
_0x1370a8: 0x280,
|
|
1795
|
-
_0x358731: 0x272,
|
|
1796
|
-
_0x675563: 0x1d3,
|
|
1797
|
-
_0x453d15: 0x1cc,
|
|
1798
|
-
_0x64b12b: 0x284,
|
|
1799
|
-
_0x1d5155: 0x284,
|
|
1800
|
-
_0x54be17: 0x1cc,
|
|
1801
|
-
_0x48dcad: 0x20d,
|
|
1802
|
-
_0x3b15bc: 0x21b,
|
|
1803
|
-
_0x5d244a: 0x300,
|
|
1804
|
-
_0x5abe13: 0x2ed,
|
|
1805
|
-
_0x1e8a37: 0x25f,
|
|
1806
|
-
_0x3e7038: 0x1c5,
|
|
1807
|
-
_0x4d141c: 0x2a8,
|
|
1808
|
-
_0x4b5a47: 0x213,
|
|
1809
|
-
_0x3ded30: 0x1d3,
|
|
1810
|
-
_0x59cf2b: 0x305,
|
|
1811
|
-
_0x50e977: 0x2d3,
|
|
1812
|
-
_0x52d4e7: 0x292,
|
|
1813
|
-
_0x5f3fce: 0x22c,
|
|
1814
|
-
_0x14b078: 0x258,
|
|
1815
|
-
_0x884cb2: 0x1cc,
|
|
1816
|
-
_0x2c8753: 0x1d3
|
|
1817
|
-
}, _0x39015e = { _0x2abb2b: 0x2b2 }, _0x2bf7ed = { _0xe8cc65: 0x2b2 }, _0x15c85b = {
|
|
1818
|
-
_0x143266: 0x1f3,
|
|
1819
|
-
_0x269409: 0x2b2
|
|
1820
|
-
}, _0x1eaa46 = { _0x395496: 0x1c4 }, _0x5e8151 = { _0x56a157: 0x1be }, _0x4dbee5 = { _0x462f77: 0x1f8 }, _0x35f78 = { _0x9c39ce: 0x312 }, _0x4b7cf7 = { _0x452870: 0x2ad }, _0x34394c = { _0x4c8704: 0x2b2 }, _0x1991ef = { _0x3f91fe: 0x309 }, _0x4bf80c = { _0x559c79: 0x2b2 }, _0x478bde = { _0x1c9a93: 0x2b2 }, _0x37c3de = {
|
|
1821
|
-
_0x3fc786: 0x2b2,
|
|
1822
|
-
_0x55c59a: 0x24c
|
|
1823
|
-
}, _0x567135 = {
|
|
1824
|
-
_0x536c90: 0x29c,
|
|
1825
|
-
_0x2349d9: 0x2b2,
|
|
1826
|
-
_0x4353db: 0x1e5
|
|
1827
|
-
}, _0x343d87 = { _0x577253: 0x254 }, _0x2c2083 = _0xa1982e, {z: _0xeae8d8} = await import(_0x2c2083(0x2df));
|
|
1828
|
-
_0x22649d[_0x2c2083(_0x3620ca._0x2a55bd)](_0x2c2083(0x223), _0x2c2083(_0x3620ca._0x3b0fab), {
|
|
1829
|
-
'target': _0xeae8d8[_0x2c2083(_0x3620ca._0x43d4cd)](),
|
|
1830
|
-
'content': _0xeae8d8[_0x2c2083(0x1cc)](),
|
|
1831
|
-
'attachment_ids': _0xeae8d8['array'](_0xeae8d8[_0x2c2083(_0x3620ca._0x43d4cd)]())[_0x2c2083(_0x3620ca._0x217f40)]()
|
|
1832
|
-
}, async _0x409439 => {
|
|
1833
|
-
const _0x57e521 = _0x2c2083;
|
|
1834
|
-
try {
|
|
1835
|
-
return textResult(await _0x136a28[_0x57e521(0x223)](_0x409439));
|
|
1836
|
-
} catch (_0x44bd95) {
|
|
1837
|
-
return textResult(_0x44bd95 instanceof Error ? _0x44bd95[_0x57e521(0x2b2)] : 'send_message\x20failed', !![]);
|
|
1838
|
-
}
|
|
1839
|
-
}), _0x22649d[_0x2c2083(_0x3620ca._0x2a55bd)](_0x2c2083(0x241), _0x2c2083(0x2a1), {}, async () => {
|
|
1840
|
-
const _0x5081e2 = _0x2c2083;
|
|
1841
|
-
try {
|
|
1842
|
-
return textResult(await _0x136a28[_0x5081e2(0x241)]());
|
|
1843
|
-
} catch (_0x5530df) {
|
|
1844
|
-
return textResult(_0x5530df instanceof Error ? _0x5530df[_0x5081e2(0x2b2)] : _0x5081e2(_0x343d87._0x577253), !![]);
|
|
1845
|
-
}
|
|
1846
|
-
}), _0x22649d[_0x2c2083(0x1d4)](_0x2c2083(_0x3620ca._0x35332e), 'Read\x20message\x20history\x20for\x20a\x20channel,\x20DM,\x20or\x20thread\x20target.', {
|
|
1847
|
-
'channel': _0xeae8d8[_0x2c2083(0x1cc)](),
|
|
1848
|
-
'limit': _0xeae8d8[_0x2c2083(_0x3620ca._0xd21b9b)]()[_0x2c2083(_0x3620ca._0x1f9398)](),
|
|
1849
|
-
'before': _0xeae8d8[_0x2c2083(0x300)]()[_0x2c2083(_0x3620ca._0x1f9398)](),
|
|
1850
|
-
'after': _0xeae8d8[_0x2c2083(0x300)]()[_0x2c2083(0x2a8)]()
|
|
1851
|
-
}, async _0xe8aeb1 => {
|
|
1852
|
-
const _0x34f3ed = _0x2c2083;
|
|
1853
|
-
try {
|
|
1854
|
-
return textResult(await _0x136a28[_0x34f3ed(_0x567135._0x536c90)](_0xe8aeb1));
|
|
1855
|
-
} catch (_0x2a14dd) {
|
|
1856
|
-
return textResult(_0x2a14dd instanceof Error ? _0x2a14dd[_0x34f3ed(_0x567135._0x2349d9)] : _0x34f3ed(_0x567135._0x4353db), !![]);
|
|
1857
|
-
}
|
|
1858
|
-
}), _0x22649d[_0x2c2083(0x1d4)](_0x2c2083(0x2c2), _0x2c2083(_0x3620ca._0x4fe18f), {}, async () => {
|
|
1859
|
-
const _0x1b1c66 = _0x2c2083;
|
|
1860
|
-
try {
|
|
1861
|
-
return textResult(await _0x136a28[_0x1b1c66(0x2c2)]());
|
|
1862
|
-
} catch (_0x5d8658) {
|
|
1863
|
-
return textResult(_0x5d8658 instanceof Error ? _0x5d8658[_0x1b1c66(_0x37c3de._0x3fc786)] : _0x1b1c66(_0x37c3de._0x55c59a), !![]);
|
|
1864
|
-
}
|
|
1865
|
-
}), _0x22649d['tool']('list_tasks', _0x2c2083(_0x3620ca._0x8452f7), {
|
|
1866
|
-
'channel': _0xeae8d8['string'](),
|
|
1867
|
-
'status': _0xeae8d8[_0x2c2083(_0x3620ca._0x449a0b)]([
|
|
1868
|
-
_0x2c2083(0x1d6),
|
|
1869
|
-
'in_progress',
|
|
1870
|
-
_0x2c2083(0x1c5),
|
|
1871
|
-
'done'
|
|
1872
|
-
])[_0x2c2083(_0x3620ca._0x217f40)]()
|
|
1873
|
-
}, async _0x210bb2 => {
|
|
1874
|
-
const _0xba42f7 = _0x2c2083;
|
|
1875
|
-
try {
|
|
1876
|
-
return textResult(await _0x136a28['list_tasks'](_0x210bb2));
|
|
1877
|
-
} catch (_0x5600c6) {
|
|
1878
|
-
return textResult(_0x5600c6 instanceof Error ? _0x5600c6[_0xba42f7(_0x478bde._0x1c9a93)] : _0xba42f7(0x236), !![]);
|
|
1879
|
-
}
|
|
1880
|
-
}), _0x22649d['tool'](_0x2c2083(_0x3620ca._0x5afbbd), _0x2c2083(_0x3620ca._0x33b33d), {
|
|
1881
|
-
'channel': _0xeae8d8[_0x2c2083(_0x3620ca._0x43d4cd)](),
|
|
1882
|
-
'idempotency_key': _0xeae8d8[_0x2c2083(_0x3620ca._0x43d4cd)]()[_0x2c2083(0x2a8)](),
|
|
1883
|
-
'tasks': _0xeae8d8[_0x2c2083(0x1d3)](_0xeae8d8[_0x2c2083(_0x3620ca._0x308e5c)]({
|
|
1884
|
-
'title': _0xeae8d8[_0x2c2083(_0x3620ca._0x43d4cd)](),
|
|
1885
|
-
'description': _0xeae8d8[_0x2c2083(0x1cc)]()[_0x2c2083(_0x3620ca._0x1f9398)](),
|
|
1886
|
-
'priority': _0xeae8d8[_0x2c2083(0x318)]([
|
|
1887
|
-
'low',
|
|
1888
|
-
_0x2c2083(0x321),
|
|
1889
|
-
_0x2c2083(0x1cb),
|
|
1890
|
-
'urgent'
|
|
1891
|
-
])[_0x2c2083(0x2a8)]()
|
|
1892
|
-
}))
|
|
1893
|
-
}, async _0x361af6 => {
|
|
1894
|
-
const _0x654ad8 = _0x2c2083;
|
|
1895
|
-
try {
|
|
1896
|
-
return textResult(await _0x136a28[_0x654ad8(0x282)](_0x361af6));
|
|
1897
|
-
} catch (_0x1554e7) {
|
|
1898
|
-
return textResult(_0x1554e7 instanceof Error ? _0x1554e7[_0x654ad8(0x2b2)] : 'create_tasks\x20failed', !![]);
|
|
1899
|
-
}
|
|
1900
|
-
}), _0x22649d[_0x2c2083(_0x3620ca._0x2a55bd)](_0x2c2083(_0x3620ca._0x1370a8), _0x2c2083(_0x3620ca._0x358731), {
|
|
1901
|
-
'channel': _0xeae8d8[_0x2c2083(0x1cc)](),
|
|
1902
|
-
'task_numbers': _0xeae8d8[_0x2c2083(_0x3620ca._0x675563)](_0xeae8d8[_0x2c2083(0x300)]())[_0x2c2083(0x2a8)](),
|
|
1903
|
-
'message_ids': _0xeae8d8[_0x2c2083(0x1d3)](_0xeae8d8[_0x2c2083(_0x3620ca._0x453d15)]())[_0x2c2083(_0x3620ca._0x1f9398)](),
|
|
1904
|
-
'evidence': _0xeae8d8['record'](_0xeae8d8[_0x2c2083(0x1cc)](), _0xeae8d8[_0x2c2083(_0x3620ca._0x308e5c)]({
|
|
1905
|
-
'create_thread': _0xeae8d8[_0x2c2083(_0x3620ca._0x64b12b)]()[_0x2c2083(_0x3620ca._0x217f40)](),
|
|
1906
|
-
'create_task': _0xeae8d8[_0x2c2083(_0x3620ca._0x1d5155)]()[_0x2c2083(_0x3620ca._0x217f40)]()
|
|
1907
|
-
}))[_0x2c2083(0x2a8)](),
|
|
1908
|
-
'idempotency_key': _0xeae8d8[_0x2c2083(_0x3620ca._0x54be17)]()[_0x2c2083(0x2a8)]()
|
|
1909
|
-
}, async _0x1d175d => {
|
|
1910
|
-
const _0x1e41e3 = _0x2c2083;
|
|
1911
|
-
try {
|
|
1912
|
-
return textResult(await _0x136a28[_0x1e41e3(0x280)](_0x1d175d));
|
|
1913
|
-
} catch (_0x33b32f) {
|
|
1914
|
-
return textResult(_0x33b32f instanceof Error ? _0x33b32f[_0x1e41e3(_0x4bf80c._0x559c79)] : 'claim_tasks\x20failed', !![]);
|
|
1915
|
-
}
|
|
1916
|
-
}), _0x22649d[_0x2c2083(_0x3620ca._0x2a55bd)](_0x2c2083(_0x3620ca._0x48dcad), _0x2c2083(_0x3620ca._0x3b15bc), {
|
|
1917
|
-
'channel': _0xeae8d8['string'](),
|
|
1918
|
-
'task_number': _0xeae8d8[_0x2c2083(_0x3620ca._0x5d244a)](),
|
|
1919
|
-
'idempotency_key': _0xeae8d8['string']()[_0x2c2083(0x2a8)]()
|
|
1920
|
-
}, async _0x55f339 => {
|
|
1921
|
-
const _0x1a8ac3 = _0x2c2083;
|
|
1922
|
-
try {
|
|
1923
|
-
return textResult(await _0x136a28['unclaim_task'](_0x55f339));
|
|
1924
|
-
} catch (_0x5af671) {
|
|
1925
|
-
return textResult(_0x5af671 instanceof Error ? _0x5af671['message'] : _0x1a8ac3(_0x1991ef._0x3f91fe), !![]);
|
|
1926
|
-
}
|
|
1927
|
-
}), _0x22649d[_0x2c2083(0x1d4)]('update_task_status', _0x2c2083(_0x3620ca._0x5abe13), {
|
|
1928
|
-
'channel': _0xeae8d8[_0x2c2083(0x1cc)](),
|
|
1929
|
-
'task_number': _0xeae8d8[_0x2c2083(_0x3620ca._0xd21b9b)](),
|
|
1930
|
-
'status': _0xeae8d8[_0x2c2083(0x318)]([
|
|
1931
|
-
'todo',
|
|
1932
|
-
_0x2c2083(_0x3620ca._0x1e8a37),
|
|
1933
|
-
_0x2c2083(_0x3620ca._0x3e7038),
|
|
1934
|
-
_0x2c2083(0x204)
|
|
1935
|
-
]),
|
|
1936
|
-
'idempotency_key': _0xeae8d8[_0x2c2083(_0x3620ca._0x43d4cd)]()[_0x2c2083(_0x3620ca._0x4d141c)]()
|
|
1937
|
-
}, async _0x239dc1 => {
|
|
1938
|
-
const _0x17f968 = _0x2c2083;
|
|
1939
|
-
try {
|
|
1940
|
-
return textResult(await _0x136a28['update_task_status'](_0x239dc1));
|
|
1941
|
-
} catch (_0x14a769) {
|
|
1942
|
-
return textResult(_0x14a769 instanceof Error ? _0x14a769[_0x17f968(_0x34394c._0x4c8704)] : _0x17f968(0x23b), !![]);
|
|
1943
|
-
}
|
|
1944
|
-
}), _0x22649d[_0x2c2083(0x1d4)](_0x2c2083(0x2ad), 'Upload\x20a\x20local\x20file\x20to\x20a\x20channel\x20or\x20DM\x20and\x20return\x20an\x20attachment\x20ID\x20that\x20can\x20be\x20used\x20with\x20send_message.\x20Thread\x20targets\x20are\x20not\x20allowed.', {
|
|
1945
|
-
'channel': _0xeae8d8['string'](),
|
|
1946
|
-
'file_path': _0xeae8d8[_0x2c2083(0x1cc)]()
|
|
1947
|
-
}, async _0x56cf06 => {
|
|
1948
|
-
const _0x5d2a50 = _0x2c2083;
|
|
1949
|
-
try {
|
|
1950
|
-
return textResult(await _0x136a28[_0x5d2a50(_0x4b7cf7._0x452870)](_0x56cf06));
|
|
1951
|
-
} catch (_0x59e7de) {
|
|
1952
|
-
return textResult(_0x59e7de instanceof Error ? _0x59e7de[_0x5d2a50(0x2b2)] : _0x5d2a50(0x251), !![]);
|
|
1953
|
-
}
|
|
1954
|
-
}), _0x22649d[_0x2c2083(0x1d4)](_0x2c2083(_0x3620ca._0x4b5a47), _0x2c2083(0x255), { 'attachment_id': _0xeae8d8[_0x2c2083(_0x3620ca._0x54be17)]() }, async _0x250db0 => {
|
|
1955
|
-
const _0x279d70 = _0x2c2083;
|
|
1956
|
-
try {
|
|
1957
|
-
return textResult(await _0x136a28['view_file'](_0x250db0));
|
|
1958
|
-
} catch (_0x2d3e03) {
|
|
1959
|
-
return textResult(_0x2d3e03 instanceof Error ? _0x2d3e03[_0x279d70(0x2b2)] : _0x279d70(_0x35f78._0x9c39ce), !![]);
|
|
1960
|
-
}
|
|
1961
|
-
}), _0x22649d[_0x2c2083(0x1d4)]('spawn_worker', _0x2c2083(0x267), {
|
|
1962
|
-
'work_key': _0xeae8d8['string'](),
|
|
1963
|
-
'thread_target': _0xeae8d8[_0x2c2083(0x1cc)](),
|
|
1964
|
-
'objective': _0xeae8d8[_0x2c2083(_0x3620ca._0x54be17)](),
|
|
1965
|
-
'conclusions': _0xeae8d8[_0x2c2083(_0x3620ca._0x3ded30)](_0xeae8d8[_0x2c2083(_0x3620ca._0x43d4cd)]())[_0x2c2083(_0x3620ca._0x217f40)](),
|
|
1966
|
-
'relevant_files': _0xeae8d8['array'](_0xeae8d8[_0x2c2083(0x1cc)]())[_0x2c2083(_0x3620ca._0x217f40)](),
|
|
1967
|
-
'open_questions': _0xeae8d8['array'](_0xeae8d8[_0x2c2083(_0x3620ca._0x54be17)]())['optional'](),
|
|
1968
|
-
'reply_target': _0xeae8d8[_0x2c2083(0x1cc)](),
|
|
1969
|
-
'task_id': _0xeae8d8[_0x2c2083(0x1cc)]()[_0x2c2083(0x2a8)]()
|
|
1970
|
-
}, async _0x4f698a => {
|
|
1971
|
-
const _0x1c1085 = _0x2c2083;
|
|
1972
|
-
try {
|
|
1973
|
-
return textResult(await _0x136a28[_0x1c1085(_0x4dbee5._0x462f77)](_0x4f698a));
|
|
1974
|
-
} catch (_0x487fa6) {
|
|
1975
|
-
return textResult(_0x487fa6 instanceof Error ? _0x487fa6['message'] : _0x1c1085(0x2a7), !![]);
|
|
1976
|
-
}
|
|
1977
|
-
}), _0x22649d['tool'](_0x2c2083(_0x3620ca._0x59cf2b), _0x2c2083(_0x3620ca._0x50e977), { 'work_key': _0xeae8d8['string']() }, async _0x2c53b9 => {
|
|
1978
|
-
const _0x533752 = _0x2c2083;
|
|
1979
|
-
try {
|
|
1980
|
-
return textResult(await _0x136a28[_0x533752(0x305)](_0x2c53b9));
|
|
1981
|
-
} catch (_0x1fe54b) {
|
|
1982
|
-
return textResult(_0x1fe54b instanceof Error ? _0x1fe54b[_0x533752(0x2b2)] : _0x533752(_0x5e8151._0x56a157), !![]);
|
|
1983
|
-
}
|
|
1984
|
-
}), _0x22649d[_0x2c2083(0x1d4)]('get_worker_result', _0x2c2083(_0x3620ca._0x52d4e7), { 'work_key': _0xeae8d8[_0x2c2083(_0x3620ca._0x43d4cd)]() }, async _0x336bc8 => {
|
|
1985
|
-
const _0x5288c3 = _0x2c2083;
|
|
1986
|
-
try {
|
|
1987
|
-
return textResult(await _0x136a28[_0x5288c3(_0x1eaa46._0x395496)](_0x336bc8));
|
|
1988
|
-
} catch (_0x4e26b0) {
|
|
1989
|
-
return textResult(_0x4e26b0 instanceof Error ? _0x4e26b0['message'] : _0x5288c3(0x26e), !![]);
|
|
1990
|
-
}
|
|
1991
|
-
}), _0x22649d[_0x2c2083(_0x3620ca._0x2a55bd)](_0x2c2083(0x1f3), 'Signal\x20that\x20the\x20current\x20worker\x20session\x20is\x20finished\x20and\x20provide\x20a\x20result\x20summary.', {
|
|
1992
|
-
'work_key': _0xeae8d8['string'](),
|
|
1993
|
-
'result': _0xeae8d8[_0x2c2083(0x318)]([
|
|
1994
|
-
'completed',
|
|
1995
|
-
_0x2c2083(_0x3620ca._0x5f3fce),
|
|
1996
|
-
_0x2c2083(_0x3620ca._0x14b078)
|
|
1997
|
-
]),
|
|
1998
|
-
'summary': _0xeae8d8['string'](),
|
|
1999
|
-
'decisions': _0xeae8d8['array'](_0xeae8d8[_0x2c2083(_0x3620ca._0x884cb2)]())['optional'](),
|
|
2000
|
-
'files_changed': _0xeae8d8[_0x2c2083(0x1d3)](_0xeae8d8['string']())[_0x2c2083(_0x3620ca._0x4d141c)](),
|
|
2001
|
-
'open_issues': _0xeae8d8[_0x2c2083(_0x3620ca._0x2c8753)](_0xeae8d8[_0x2c2083(_0x3620ca._0x54be17)]())[_0x2c2083(_0x3620ca._0x217f40)](),
|
|
2002
|
-
'next_steps': _0xeae8d8[_0x2c2083(0x1d3)](_0xeae8d8[_0x2c2083(_0x3620ca._0x54be17)]())['optional']()
|
|
2003
|
-
}, async _0xb59b79 => {
|
|
2004
|
-
const _0x39bc8b = _0x2c2083;
|
|
2005
|
-
try {
|
|
2006
|
-
return textResult(await _0x136a28[_0x39bc8b(_0x15c85b._0x143266)](_0xb59b79));
|
|
2007
|
-
} catch (_0x2e7ffa) {
|
|
2008
|
-
return textResult(_0x2e7ffa instanceof Error ? _0x2e7ffa[_0x39bc8b(_0x15c85b._0x269409)] : 'finish_worker\x20failed', !![]);
|
|
2009
|
-
}
|
|
2010
|
-
}), _0x22649d['tool'](_0x2c2083(0x310), _0x2c2083(0x289), {
|
|
2011
|
-
'work_key': _0xeae8d8[_0x2c2083(_0x3620ca._0x43d4cd)](),
|
|
2012
|
-
'reason': _0xeae8d8['string']()
|
|
2013
|
-
}, async _0x357c19 => {
|
|
2014
|
-
const _0x4318b3 = _0x2c2083;
|
|
2015
|
-
try {
|
|
2016
|
-
return textResult(await _0x136a28[_0x4318b3(0x310)](_0x357c19));
|
|
2017
|
-
} catch (_0x25db57) {
|
|
2018
|
-
return textResult(_0x25db57 instanceof Error ? _0x25db57[_0x4318b3(_0x2bf7ed._0xe8cc65)] : 'escalate_to_main\x20failed', !![]);
|
|
2019
|
-
}
|
|
2020
|
-
}), _0x4f542c?.['workerMode'] && _0x22649d[_0x2c2083(0x1d4)](_0x2c2083(0x246), _0x2c2083(0x202), { 'work_key': _0xeae8d8[_0x2c2083(0x1cc)]() }, async _0x12dfed => {
|
|
2021
|
-
const _0x3d3fcb = _0x2c2083;
|
|
2022
|
-
try {
|
|
2023
|
-
return textResult(await _0x136a28[_0x3d3fcb(0x246)](_0x12dfed));
|
|
2024
|
-
} catch (_0x275956) {
|
|
2025
|
-
return textResult(_0x275956 instanceof Error ? _0x275956[_0x3d3fcb(_0x39015e._0x2abb2b)] : 'mark_waiting_input\x20failed', !![]);
|
|
2026
|
-
}
|
|
2027
|
-
});
|
|
2028
|
-
}
|
|
2029
|
-
async function createChatBridgeServer(_0x4fc8cf) {
|
|
2030
|
-
const _0x5c8cc7 = { _0x2093dd: 0x31a }, _0x3ec1c3 = _0xa1982e, {McpServer: _0x320533} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x66d1bd = new _0x320533({
|
|
2031
|
-
'name': _0x3ec1c3(_0x5c8cc7._0x2093dd),
|
|
2032
|
-
'version': '0.0.0'
|
|
2033
|
-
}), _0x522edf = createChatBridgeHandlers(_0x4fc8cf);
|
|
2034
|
-
return await registerChatBridgeTools(_0x66d1bd, _0x522edf, { 'workerMode': _0x4fc8cf[_0x3ec1c3(0x2a2)] }), {
|
|
2035
|
-
'handlers': _0x522edf,
|
|
2036
|
-
'server': _0x66d1bd
|
|
2037
|
-
};
|
|
2038
|
-
}
|
|
2039
|
-
function readFlag(_0x1f0a19, _0x4787a4) {
|
|
2040
|
-
const _0x22be90 = _0x1f0a19['indexOf'](_0x4787a4);
|
|
2041
|
-
if (_0x22be90 === -0x1)
|
|
2042
|
-
return void 0x0;
|
|
2043
|
-
return _0x1f0a19[_0x22be90 + 0x1];
|
|
2044
|
-
}
|
|
2045
|
-
function parseChatBridgeArgs(_0x2d9911) {
|
|
2046
|
-
const _0x47cc65 = {
|
|
2047
|
-
_0x2ebb3d: 0x20a,
|
|
2048
|
-
_0x43346d: 0x291,
|
|
2049
|
-
_0x5a5b15: 0x219,
|
|
2050
|
-
_0x596463: 0x21d,
|
|
2051
|
-
_0x1c12f3: 0x231
|
|
2052
|
-
}, _0x61b56b = _0xa1982e, _0xd47ee7 = readFlag(_0x2d9911, '--agent-id'), _0x2612bd = readFlag(_0x2d9911, _0x61b56b(0x1dd)), _0x2312f6 = readFlag(_0x2d9911, _0x61b56b(_0x47cc65._0x2ebb3d)), _0x5d599e = readFlag(_0x2d9911, '--server-url') ?? _0x61b56b(0x271), _0x4d6b35 = readFlag(_0x2d9911, _0x61b56b(0x31f)), _0x5a7aa3 = readFlag(_0x2d9911, _0x61b56b(0x2ac)), _0x2b0ef3 = readFlag(_0x2d9911, _0x61b56b(_0x47cc65._0x43346d)), _0x279f96 = readFlag(_0x2d9911, _0x61b56b(_0x47cc65._0x5a5b15)), _0x3a5f2f = _0x2d9911[_0x61b56b(0x1d8)](_0x61b56b(0x283)), _0x3fb4f3 = _0x2312f6 === void 0x0 ? void 0x0 : Number[_0x61b56b(0x1d1)](_0x2312f6, 0xa);
|
|
2053
|
-
if (!_0xd47ee7)
|
|
2054
|
-
throw new Error(_0x61b56b(_0x47cc65._0x596463));
|
|
2055
|
-
if (!_0x2612bd)
|
|
2056
|
-
throw new Error('Missing\x20--daemon-api-key');
|
|
2057
|
-
if (_0x2312f6 !== void 0x0 && (_0x3fb4f3 === void 0x0 || !Number[_0x61b56b(_0x47cc65._0x1c12f3)](_0x3fb4f3) || _0x3fb4f3 < 0x0))
|
|
2058
|
-
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2059
|
-
return {
|
|
2060
|
-
'agentId': _0xd47ee7,
|
|
2061
|
-
'daemonApiKey': _0x2612bd,
|
|
2062
|
-
'daemonLocalUrl': _0x4d6b35,
|
|
2063
|
-
'initialLastSeenSeq': _0x3fb4f3,
|
|
2064
|
-
'sessionId': _0x5a7aa3,
|
|
2065
|
-
'serverUrl': _0x5d599e,
|
|
2066
|
-
'workerModeEnabled': _0x2b0ef3 === void 0x0 ? void 0x0 : _0x2b0ef3 !== 'false',
|
|
2067
|
-
'workerThreadTarget': _0x279f96,
|
|
2068
|
-
'workerMode': _0x3a5f2f
|
|
2144
|
+
_0x5c8c = function () {
|
|
2145
|
+
return _0x6da97d;
|
|
2069
2146
|
};
|
|
2147
|
+
return _0x5c8c();
|
|
2070
2148
|
}
|
|
2071
|
-
async function runChatBridgeCli(
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
'
|
|
2078
|
-
'
|
|
2079
|
-
'
|
|
2149
|
+
async function runChatBridgeCli(_0x10ab43) {
|
|
2150
|
+
const _0x2f8eeb = {
|
|
2151
|
+
_0x14290d: 0x1d5,
|
|
2152
|
+
_0x152adb: 0x20b,
|
|
2153
|
+
_0x250420: 0x130
|
|
2154
|
+
}, _0x13ce7b = _0x2c1aa0, _0x21b956 = parseChatBridgeArgs(_0x10ab43), {StdioServerTransport: _0x4b0e38} = await import(_0x13ce7b(_0x2f8eeb._0x14290d)), _0x5a5406 = createInternalAgentClient(_0x21b956), _0x119e6d = createAttachmentCache(), _0x465f9f = await createChatBridgeServer({
|
|
2155
|
+
'agentId': _0x21b956[_0x13ce7b(0x1e5)],
|
|
2156
|
+
'attachmentCache': _0x119e6d,
|
|
2157
|
+
'client': _0x5a5406,
|
|
2158
|
+
'daemonLocalUrl': _0x21b956[_0x13ce7b(_0x2f8eeb._0x152adb)],
|
|
2080
2159
|
'uploadPreparer': prepareUploadFile,
|
|
2081
|
-
'workerModeEnabled':
|
|
2082
|
-
'workerMode':
|
|
2160
|
+
'workerModeEnabled': _0x21b956['workerModeEnabled'],
|
|
2161
|
+
'workerMode': _0x21b956[_0x13ce7b(0x15d)]
|
|
2083
2162
|
});
|
|
2084
|
-
await
|
|
2163
|
+
await _0x465f9f[_0x13ce7b(_0x2f8eeb._0x250420)][_0x13ce7b(0x134)](new _0x4b0e38());
|
|
2085
2164
|
}
|
|
2086
|
-
var executedAsEntry = process[
|
|
2087
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2165
|
+
var executedAsEntry = process[_0x2c1aa0(0x22e)][0x1] ? import.meta.url === pathToFileURL(process[_0x2c1aa0(0x22e)][0x1])[_0x2c1aa0(0x2a0)] : ![];
|
|
2166
|
+
executedAsEntry && await runChatBridgeCli(process[_0x2c1aa0(0x22e)]['slice'](0x2));
|
|
2088
2167
|
export {
|
|
2089
2168
|
createChatBridgeHandlers,
|
|
2090
2169
|
createChatBridgeServer,
|