@dscord/daemon 0.1.38 → 0.1.41
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 +2121 -2113
- package/dist/index.js +8587 -8486
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, _0x439ea4 = _0x4b08, _0x27db22 = _0x2cd469();
|
|
1
|
+
const _0x15c9cf = _0x31af;
|
|
2
|
+
(function (_0xc3e15c, _0x627f85) {
|
|
3
|
+
const _0x2631d3 = {
|
|
4
|
+
_0x2b523f: 0x25c,
|
|
5
|
+
_0x133ff9: 0x1cf,
|
|
6
|
+
_0x156351: 0x247,
|
|
7
|
+
_0x2cd050: 0x298,
|
|
8
|
+
_0x48d4ab: 0x31a,
|
|
9
|
+
_0xa166b3: 0x1f2
|
|
10
|
+
}, _0x3f9597 = _0x31af, _0x239086 = _0xc3e15c();
|
|
12
11
|
while (!![]) {
|
|
13
12
|
try {
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
13
|
+
const _0x2baa9c = parseInt(_0x3f9597(0x259)) / 0x1 * (-parseInt(_0x3f9597(_0x2631d3._0x2b523f)) / 0x2) + parseInt(_0x3f9597(0x20d)) / 0x3 + -parseInt(_0x3f9597(_0x2631d3._0x133ff9)) / 0x4 * (-parseInt(_0x3f9597(0x274)) / 0x5) + parseInt(_0x3f9597(_0x2631d3._0x156351)) / 0x6 * (-parseInt(_0x3f9597(_0x2631d3._0x2cd050)) / 0x7) + parseInt(_0x3f9597(0x331)) / 0x8 + parseInt(_0x3f9597(_0x2631d3._0x48d4ab)) / 0x9 * (-parseInt(_0x3f9597(0x1fb)) / 0xa) + parseInt(_0x3f9597(_0x2631d3._0xa166b3)) / 0xb * (parseInt(_0x3f9597(0x1e7)) / 0xc);
|
|
14
|
+
if (_0x2baa9c === _0x627f85)
|
|
16
15
|
break;
|
|
17
16
|
else
|
|
18
|
-
|
|
19
|
-
} catch (
|
|
20
|
-
|
|
17
|
+
_0x239086['push'](_0x239086['shift']());
|
|
18
|
+
} catch (_0x4c0587) {
|
|
19
|
+
_0x239086['push'](_0x239086['shift']());
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
|
-
}(
|
|
22
|
+
}(_0x542c, 0xbf3f8));
|
|
24
23
|
import { pathToFileURL } from 'node:url';
|
|
25
24
|
import {
|
|
26
25
|
mkdir,
|
|
@@ -30,469 +29,104 @@ import {
|
|
|
30
29
|
writeFile
|
|
31
30
|
} from 'node:fs/promises';
|
|
32
31
|
import { homedir } from 'node:os';
|
|
33
|
-
|
|
34
|
-
const _0x2aeaeb = [
|
|
35
|
-
'zMLSzw5HBwu',
|
|
36
|
-
'uefuq0G',
|
|
37
|
-
'Bwv0yq',
|
|
38
|
-
'C3bSAxq',
|
|
39
|
-
'z2v0',
|
|
40
|
-
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
41
|
-
'Dw5JBgfPBvrHC2S',
|
|
42
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
43
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
44
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
45
|
-
'l3nLCNzLCG',
|
|
46
|
-
'iIbUB3qGzM91BMq',
|
|
47
|
-
'CMvZB2X2zvrHCMDLDa',
|
|
48
|
-
'CMvHC29U',
|
|
49
|
-
'CMvZDwX0',
|
|
50
|
-
'l3DVCMTLCNmVzMLUAxnO',
|
|
51
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
52
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
53
|
-
'y2HHBM5LBa',
|
|
54
|
-
'z2v0tw9UDgG',
|
|
55
|
-
'CMvXDwvZDfvYBa',
|
|
56
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
57
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
58
|
-
'C29Tzq',
|
|
59
|
-
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
60
|
-
'zgvZy3jPyMu',
|
|
61
|
-
'C2vYDMvYvxjS',
|
|
62
|
-
'zxjYB3i',
|
|
63
|
-
'DgHYzwfKu2HVCNrjza',
|
|
64
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
65
|
-
'DgfYz2v0',
|
|
66
|
-
'C2LNBMfS',
|
|
67
|
-
'DgfZAW',
|
|
68
|
-
'CgfYC2vjBNq',
|
|
69
|
-
'y3jLyxrLx3rHC2TZ',
|
|
70
|
-
'y29UDgvUDc10ExbL',
|
|
71
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
72
|
-
'DgfZA3m',
|
|
73
|
-
'DgHYzwfK',
|
|
74
|
-
'yxjYyxK',
|
|
75
|
-
'BM93',
|
|
76
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
77
|
-
'DgHYzwfKvgfYz2v0',
|
|
78
|
-
'BwvZC2fNzuLK',
|
|
79
|
-
'B3b0Aw9UywW',
|
|
80
|
-
'zxzLBNrtzxe',
|
|
81
|
-
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
82
|
-
'BgLTAxq',
|
|
83
|
-
'ihn0yxr1CZ0',
|
|
84
|
-
'BgLZDfrHC2TZ',
|
|
85
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
86
|
-
'D29YA19RzxK',
|
|
87
|
-
'nZvwC1HUywC',
|
|
88
|
-
'C3rHCNrLza',
|
|
89
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
90
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
91
|
-
'DgfYz2v0zwruyxnR',
|
|
92
|
-
'ANnVBG',
|
|
93
|
-
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
94
|
-
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
95
|
-
'kg5VBMuP',
|
|
96
|
-
'ue9tva',
|
|
97
|
-
'AgfZtw9Yzq',
|
|
98
|
-
'y2HHBM5LBhm',
|
|
99
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
100
|
-
't3jPz2LUywWGBwvZC2fNztOG',
|
|
101
|
-
'r0vu',
|
|
102
|
-
'CgfYDgLJAxbHBNq',
|
|
103
|
-
'Bwf0y2Hoyw1L',
|
|
104
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
105
|
-
'Dg9gAxHLza',
|
|
106
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
107
|
-
'l3nLBMq',
|
|
108
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
109
|
-
'lcbWCMv2Awv3pq',
|
|
110
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
111
|
-
'DxnLCG',
|
|
112
|
-
'Aw1Hz2uVCg5N',
|
|
113
|
-
'l2nVBNrLBNq',
|
|
114
|
-
'CNvUBMLUzW',
|
|
115
|
-
'ig1ZzZ0',
|
|
116
|
-
'yMfZzty0',
|
|
117
|
-
'v29YA2vYia',
|
|
118
|
-
'z2v0rgf0zq',
|
|
119
|
-
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
120
|
-
'zgf0yq',
|
|
121
|
-
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
122
|
-
'Aw1Hz2uVD2vICa',
|
|
123
|
-
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
124
|
-
'zgvJAxnPB25Z',
|
|
125
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
126
|
-
'w3nLCt0',
|
|
127
|
-
'C2L6zq',
|
|
128
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
129
|
-
'z2v0twLUDxrLCW',
|
|
130
|
-
'igLUia',
|
|
131
|
-
'zMLUAxnOx3DVCMTLCG',
|
|
132
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
133
|
-
'Dw5JBgfPBv90yxnR',
|
|
134
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
135
|
-
'CgfYDgLJAxbHBNrjza',
|
|
136
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
137
|
-
'rg93BMXVywrLzcb0BZOG',
|
|
138
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
139
|
-
'ChvZAa',
|
|
140
|
-
'zxH0BMfTzq',
|
|
141
|
-
'Bwf4',
|
|
142
|
-
'DxjNzw50',
|
|
143
|
-
'iJOGC3rHDhvZpq',
|
|
144
|
-
'iokaLca',
|
|
145
|
-
'zw51Bq',
|
|
146
|
-
'C2HHmJu2',
|
|
147
|
-
'C2vUze1LC3nHz2u',
|
|
148
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
149
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
150
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
151
|
-
'n01nt0HVBW',
|
|
152
|
-
'Dg9ju09tDhjPBMC',
|
|
153
|
-
'AgvHzgvYCW',
|
|
154
|
-
'y2f0y2G',
|
|
155
|
-
'CMvZDw1Lx3bHy2TLDa',
|
|
156
|
-
'AxnjBNrLz2vY',
|
|
157
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
158
|
-
'mtq3mZC0mZDmy3PHEMO',
|
|
159
|
-
'AgfZ',
|
|
160
|
-
'CgfKu3rHCNq',
|
|
161
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
162
|
-
'Cgf5Bg9HzePZB24',
|
|
163
|
-
'C2f2zq',
|
|
164
|
-
'ywDLBNrjza',
|
|
165
|
-
'AgLNAa',
|
|
166
|
-
'CxvLDwvK',
|
|
167
|
-
'C3rYAw5NAwz5',
|
|
168
|
-
'zMv0y2HjBxbS',
|
|
169
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
170
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
171
|
-
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
172
|
-
'yMXVy2TLza',
|
|
173
|
-
'l3rHC2TZ',
|
|
174
|
-
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
175
|
-
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
176
|
-
'lsba',
|
|
177
|
-
'DgfYz2v0zwq',
|
|
178
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
179
|
-
'D29YA2vYsgfUzg9MzG',
|
|
180
|
-
'yxr0ywnOBwvUDf9Pzhm',
|
|
181
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
182
|
-
'mJuXmZuYnfLmqxrIzq',
|
|
183
|
-
'yxr0ywnOBwvUDenHy2HL',
|
|
184
|
-
'ywDLBNq',
|
|
185
|
-
'CMvHzf9OAxn0B3j5',
|
|
186
|
-
'ig1LC3nHz2u9',
|
|
187
|
-
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
188
|
-
'C3rHDhvZ',
|
|
189
|
-
'BwfW',
|
|
190
|
-
'B3bLBL9PC3n1zxm',
|
|
191
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
192
|
-
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
193
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
194
|
-
'yxr0ywnOBwvUDeLK',
|
|
195
|
-
'C3rVCe1HAw4',
|
|
196
|
-
'AxngAw5PDgu',
|
|
197
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
198
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
199
|
-
'yxnPzgu',
|
|
200
|
-
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
201
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
202
|
-
'vgfZAYa',
|
|
203
|
-
'BwvTyMvYCW',
|
|
204
|
-
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
205
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
206
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
207
|
-
'DxbSB2fKuhjLCgfYzxi',
|
|
208
|
-
'C2vZC2LVBKLK',
|
|
209
|
-
'sfruuca',
|
|
210
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
211
|
-
'AxngAwXL',
|
|
212
|
-
'DgfZA0LK',
|
|
213
|
-
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
214
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
215
|
-
'C2v0',
|
|
216
|
-
'ywz0zxjtzxe',
|
|
217
|
-
'y2XHAw1FDgfZA3m',
|
|
218
|
-
'AxnbCNjHEq',
|
|
219
|
-
'ywXS',
|
|
220
|
-
'ywjVCNq',
|
|
221
|
-
'ywDNCMvNyxrLvhLWzq',
|
|
222
|
-
'Dg9KBW',
|
|
223
|
-
'B2jQzwn0',
|
|
224
|
-
'DhjPBq',
|
|
225
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
226
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
227
|
-
'C2vUzgvYtMfTzq',
|
|
228
|
-
'CNvUswq',
|
|
229
|
-
'iYmGu2vYDMvYoIa',
|
|
230
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
231
|
-
'z2v0sg91CNm',
|
|
232
|
-
'zw50CMLLCW',
|
|
233
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
234
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
235
|
-
'y2HLy2TnzxnZywDLCW',
|
|
236
|
-
'yxjNDG',
|
|
237
|
-
'DMLZAwjPBgL0Eq',
|
|
238
|
-
'CMvWBgfJzq',
|
|
239
|
-
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
240
|
-
'BgLZDf9Zzxj2zxi',
|
|
241
|
-
'ywjVCNrLza',
|
|
242
|
-
'C3vTBwfYEq',
|
|
243
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
244
|
-
'C3rYAw5N',
|
|
245
|
-
'zgvZy3jPChrPB24',
|
|
246
|
-
'xsba',
|
|
247
|
-
'ig1LC3nHz2vZkqOk',
|
|
248
|
-
'Aw5FChjVz3jLC3m',
|
|
249
|
-
'ChjVDg9JB2W',
|
|
250
|
-
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
251
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
252
|
-
'AM9PBG',
|
|
253
|
-
'BMfTzq',
|
|
254
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
255
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
256
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
257
|
-
'zgvZDhjVEwvK',
|
|
258
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
259
|
-
'y2HHBM5LBeLK',
|
|
260
|
-
'A2LUza',
|
|
261
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
262
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
263
|
-
'icHPzdO',
|
|
264
|
-
'l2zPBMLZAa',
|
|
265
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
266
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
267
|
-
'AwrSzq',
|
|
268
|
-
'zg06',
|
|
269
|
-
'C2vYDMvYtMfTzq',
|
|
270
|
-
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
271
|
-
'ignSywLTzwq',
|
|
272
|
-
'y3jLyxrLvgfZA3m',
|
|
273
|
-
'y3vYC29Y',
|
|
274
|
-
'Aw5FCMv2Awv3',
|
|
275
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
276
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
277
|
-
'zMLUzenHy2HLzfbHDgG',
|
|
278
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
279
|
-
'C3vJy2vZCW',
|
|
280
|
-
'pgvTChr5pG',
|
|
281
|
-
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
282
|
-
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
283
|
-
'AhvTyw5Z',
|
|
284
|
-
'C2vX',
|
|
285
|
-
'DgfZA051BwjLCG',
|
|
286
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
287
|
-
'igf0DgfJAg1LBNq',
|
|
288
|
-
'v29YA2vYici',
|
|
289
|
-
'Agv4',
|
|
290
|
-
'DgvZDa',
|
|
291
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
292
|
-
'BwvZC2fNzxm',
|
|
293
|
-
'lIbnzxnZywDLieLeoIa',
|
|
294
|
-
'Dgv4Da',
|
|
295
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
296
|
-
'ywrK',
|
|
297
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
298
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
299
|
-
'zMLUza',
|
|
300
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
301
|
-
'ywDNCMvNyxrLswrZ',
|
|
302
|
-
'mtKYodm3mg5TtwDMrq',
|
|
303
|
-
'Bg93',
|
|
304
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
305
|
-
'ihr5Cgu9ywDLBNq',
|
|
306
|
-
'ywDNCMvNyxrLswq',
|
|
307
|
-
'DgfZAY0',
|
|
308
|
-
'BMv4Den1CNnVCG',
|
|
309
|
-
'iYmJiefNzw50CW',
|
|
310
|
-
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
311
|
-
'yxv0BZO',
|
|
312
|
-
'y29UDgvUDa',
|
|
313
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
314
|
-
'y29UBMvJDa',
|
|
315
|
-
'l3vWBg9Hza',
|
|
316
|
-
'ywDLBNrZ',
|
|
317
|
-
'C2XPy2u',
|
|
318
|
-
'ChvIBgLJ',
|
|
319
|
-
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
320
|
-
'l3jLy2vPDMu',
|
|
321
|
-
'lNnSB2nR',
|
|
322
|
-
'iYmJienOyw5UzwXZ',
|
|
323
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
324
|
-
'y2HHBM5LBe5HBwu',
|
|
325
|
-
'Aw5JBhvKzxm',
|
|
326
|
-
'D29YA2vYCW',
|
|
327
|
-
'D29YA2vYtw9Kzq',
|
|
328
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
329
|
-
'C2vYDMvY',
|
|
330
|
-
'DgL0Bgu',
|
|
331
|
-
'mte4mdKXnJHhvuDUtgC',
|
|
332
|
-
'y2XPzw50',
|
|
333
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
334
|
-
'DgfZA19Pza',
|
|
335
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
336
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
337
|
-
'l3rHC2TZl2nSywLT',
|
|
338
|
-
'BwvTyMvY',
|
|
339
|
-
'zMLSDgvY',
|
|
340
|
-
'zgLZCg9ZAxrPB24',
|
|
341
|
-
'C2vUzf9TzxnZywDL',
|
|
342
|
-
'w3rHCMDLDd0',
|
|
343
|
-
'mtbjD2jPyu8',
|
|
344
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
345
|
-
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
346
|
-
'ywz0zxi',
|
|
347
|
-
'DgHYzwfKtNvTyMvY',
|
|
348
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
349
|
-
'C2L6zuj5DgvZ',
|
|
350
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
351
|
-
'AhjLzG',
|
|
352
|
-
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
353
|
-
'ls1Hz2vUDc1Pza',
|
|
354
|
-
'DxbSB2fKx2zPBgu',
|
|
355
|
-
'Dg9VBa',
|
|
356
|
-
'BgvUz3rO',
|
|
357
|
-
'vgfZAZOG',
|
|
358
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
359
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
360
|
-
'mtaXmZq5mtHIAgzpveG',
|
|
361
|
-
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
362
|
-
'DhLWzq',
|
|
363
|
-
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
364
|
-
'l2HPC3rVCNK/',
|
|
365
|
-
'D2fPDgLUz19PBNb1Da',
|
|
366
|
-
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
367
|
-
'ihrPBwu9',
|
|
368
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
369
|
-
'kgXLz2fJEsK',
|
|
370
|
-
'yxjYyxLcDwzMzxi',
|
|
371
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
372
|
-
'mJG5ndHlBKr3C1O',
|
|
373
|
-
'y29UDgvUDfr5Cgu',
|
|
374
|
-
'l3n0yxj0',
|
|
375
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
376
|
-
'yMfZzw5HBwu',
|
|
377
|
-
'BwLU',
|
|
378
|
-
'y29TCgXLDgvK',
|
|
379
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
380
|
-
'BgLZDf90yxnRCW',
|
|
381
|
-
'yM9KEu1HCMTKB3DU',
|
|
382
|
-
'yxr0ywnOBwvUDhm',
|
|
383
|
-
'Dw5RBM93BG',
|
|
384
|
-
'z2v0u2vJB25KCW',
|
|
385
|
-
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
386
|
-
'igzHAwXLzdOG',
|
|
387
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
388
|
-
'AxnbyNnVBhv0zq',
|
|
389
|
-
'D3m6',
|
|
390
|
-
'DgHYzwfKswq',
|
|
391
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
392
|
-
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
393
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
394
|
-
'Aw1Hz2uVANbLzW',
|
|
395
|
-
'y3jLyxrLzef0',
|
|
396
|
-
'BwvZC2fNzq',
|
|
397
|
-
'CM9VDe1LC3nHz2vjza',
|
|
398
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
399
|
-
'khvUA25VD24P',
|
|
400
|
-
'yMvMB3jL',
|
|
401
|
-
'lsaJ',
|
|
402
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
403
|
-
'zNjVBq',
|
|
404
|
-
'C3rHCNrZv2L0Aa',
|
|
405
|
-
'C2vUzgvYvhLWzq',
|
|
406
|
-
'BNvTyMvY',
|
|
407
|
-
'nJqXota3nLHttMrusq',
|
|
408
|
-
'Dg9tDhjPBMC',
|
|
409
|
-
'D29YA2vYu2vZC2LVBKLK',
|
|
410
|
-
'CgfYC2u',
|
|
411
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
412
|
-
'ls1ZzxnZAw9UlwLK',
|
|
413
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
414
|
-
'ls1Zzxj2zxiTDxjS',
|
|
415
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
416
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
417
|
-
'muzZEe1dCG',
|
|
418
|
-
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
419
|
-
'DMLLD19MAwXL',
|
|
420
|
-
'C29YDa'
|
|
421
|
-
];
|
|
422
|
-
_0x4d0c = function () {
|
|
423
|
-
return _0x2aeaeb;
|
|
424
|
-
};
|
|
425
|
-
return _0x4d0c();
|
|
426
|
-
}
|
|
427
|
-
import _0x3ec660 from 'node:path';
|
|
32
|
+
import _0x1033e9 from 'node:path';
|
|
428
33
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
429
34
|
'.csv': 'text/csv',
|
|
430
|
-
'.gif':
|
|
431
|
-
'.jpeg':
|
|
432
|
-
'.jpg':
|
|
433
|
-
'.json':
|
|
434
|
-
'.md':
|
|
435
|
-
'.pdf':
|
|
436
|
-
'.png':
|
|
437
|
-
'.svg':
|
|
35
|
+
'.gif': _0x15c9cf(0x2f9),
|
|
36
|
+
'.jpeg': _0x15c9cf(0x26c),
|
|
37
|
+
'.jpg': _0x15c9cf(0x26c),
|
|
38
|
+
'.json': _0x15c9cf(0x28a),
|
|
39
|
+
'.md': _0x15c9cf(0x25a),
|
|
40
|
+
'.pdf': _0x15c9cf(0x289),
|
|
41
|
+
'.png': _0x15c9cf(0x292),
|
|
42
|
+
'.svg': _0x15c9cf(0x1ef),
|
|
438
43
|
'.txt': 'text/plain',
|
|
439
|
-
'.webp':
|
|
440
|
-
'.xml':
|
|
441
|
-
'.zip':
|
|
44
|
+
'.webp': _0x15c9cf(0x287),
|
|
45
|
+
'.xml': _0x15c9cf(0x24d),
|
|
46
|
+
'.zip': 'application/zip'
|
|
442
47
|
};
|
|
443
|
-
function guessContentType(
|
|
444
|
-
const
|
|
445
|
-
|
|
48
|
+
function guessContentType(_0xd1765b) {
|
|
49
|
+
const _0x23ac46 = {
|
|
50
|
+
_0x2d93c7: 0x2d2,
|
|
51
|
+
_0x215ca0: 0x23c,
|
|
52
|
+
_0x4a03b5: 0x263
|
|
53
|
+
}, _0x8f0431 = _0x15c9cf;
|
|
54
|
+
return MIME_BY_EXTENSION[_0x1033e9[_0x8f0431(_0x23ac46._0x2d93c7)](_0xd1765b)[_0x8f0431(_0x23ac46._0x215ca0)]()] ?? _0x8f0431(_0x23ac46._0x4a03b5);
|
|
446
55
|
}
|
|
447
|
-
function safeFilename(
|
|
448
|
-
return
|
|
56
|
+
function safeFilename(_0x8c6a0e) {
|
|
57
|
+
return _0x8c6a0e['replace'](/[\\/]/g, '-');
|
|
449
58
|
}
|
|
450
|
-
function extensionFor(
|
|
451
|
-
const
|
|
452
|
-
return
|
|
59
|
+
function extensionFor(_0x4e3e42) {
|
|
60
|
+
const _0x2f9651 = { _0x3dddc4: 0x248 }, _0x5cfbe4 = _0x15c9cf, _0x15ea47 = Object['entries'](MIME_BY_EXTENSION)[_0x5cfbe4(_0x2f9651._0x3dddc4)](([, _0x5d2ea7]) => _0x5d2ea7 === _0x4e3e42);
|
|
61
|
+
return _0x15ea47?.[0x0] ?? _0x5cfbe4(0x318);
|
|
453
62
|
}
|
|
454
|
-
async function prepareUploadFile(
|
|
455
|
-
const
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
63
|
+
async function prepareUploadFile(_0x403c3a, _0x4ec774 = {}) {
|
|
64
|
+
const _0x188ce8 = {
|
|
65
|
+
_0x2ef970: 0x1f9,
|
|
66
|
+
_0x533474: 0x317,
|
|
67
|
+
_0x42dd6f: 0x2ef,
|
|
68
|
+
_0x4d68bd: 0x335
|
|
69
|
+
}, _0x27a4f0 = _0x15c9cf;
|
|
70
|
+
if (!_0x1033e9['isAbsolute'](_0x403c3a))
|
|
71
|
+
throw new Error(_0x27a4f0(_0x188ce8._0x2ef970));
|
|
72
|
+
const _0x149284 = await stat(_0x403c3a)[_0x27a4f0(_0x188ce8._0x533474)](() => null);
|
|
73
|
+
if (!_0x149284 || !_0x149284[_0x27a4f0(0x1c7)]())
|
|
74
|
+
throw new Error('File\x20not\x20found:\x20' + _0x403c3a);
|
|
75
|
+
const _0x2f0620 = _0x4ec774[_0x27a4f0(_0x188ce8._0x42dd6f)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
76
|
+
if (_0x149284[_0x27a4f0(0x241)] > _0x2f0620)
|
|
77
|
+
throw new Error(_0x27a4f0(_0x188ce8._0x4d68bd) + _0x149284[_0x27a4f0(0x241)]);
|
|
78
|
+
const _0x4dbe68 = await readFile(_0x403c3a), _0x4cb0c8 = _0x1033e9[_0x27a4f0(0x232)](_0x403c3a);
|
|
469
79
|
return {
|
|
470
|
-
'contentBase64':
|
|
471
|
-
'contentType': guessContentType(
|
|
472
|
-
'filename':
|
|
473
|
-
'sizeBytes':
|
|
80
|
+
'contentBase64': _0x4dbe68['toString'](_0x27a4f0(0x223)),
|
|
81
|
+
'contentType': guessContentType(_0x4cb0c8),
|
|
82
|
+
'filename': _0x4cb0c8,
|
|
83
|
+
'sizeBytes': _0x149284[_0x27a4f0(0x241)]
|
|
474
84
|
};
|
|
475
85
|
}
|
|
476
|
-
function
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
86
|
+
function _0x31af(_0x5c08ae, _0x2412c8) {
|
|
87
|
+
_0x5c08ae = _0x5c08ae - 0x1c4;
|
|
88
|
+
const _0x542ccc = _0x542c();
|
|
89
|
+
let _0x31af18 = _0x542ccc[_0x5c08ae];
|
|
90
|
+
if (_0x31af['cWIjwa'] === undefined) {
|
|
91
|
+
var _0x3a5fba = function (_0x3f0da4) {
|
|
92
|
+
const _0x12cd6f = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
93
|
+
let _0x1033e9 = '', _0xd1765b = '';
|
|
94
|
+
for (let _0x8c6a0e = 0x0, _0x4e3e42, _0x15ea47, _0x5d2ea7 = 0x0; _0x15ea47 = _0x3f0da4['charAt'](_0x5d2ea7++); ~_0x15ea47 && (_0x4e3e42 = _0x8c6a0e % 0x4 ? _0x4e3e42 * 0x40 + _0x15ea47 : _0x15ea47, _0x8c6a0e++ % 0x4) ? _0x1033e9 += String['fromCharCode'](0xff & _0x4e3e42 >> (-0x2 * _0x8c6a0e & 0x6)) : 0x0) {
|
|
95
|
+
_0x15ea47 = _0x12cd6f['indexOf'](_0x15ea47);
|
|
96
|
+
}
|
|
97
|
+
for (let _0x403c3a = 0x0, _0x4ec774 = _0x1033e9['length']; _0x403c3a < _0x4ec774; _0x403c3a++) {
|
|
98
|
+
_0xd1765b += '%' + ('00' + _0x1033e9['charCodeAt'](_0x403c3a)['toString'](0x10))['slice'](-0x2);
|
|
99
|
+
}
|
|
100
|
+
return decodeURIComponent(_0xd1765b);
|
|
101
|
+
};
|
|
102
|
+
_0x31af['WOxhwp'] = _0x3a5fba, _0x31af['Vdsgas'] = {}, _0x31af['cWIjwa'] = !![];
|
|
103
|
+
}
|
|
104
|
+
const _0x220992 = _0x542ccc[0x0], _0x5011f2 = _0x5c08ae + _0x220992, _0x5102b4 = _0x31af['Vdsgas'][_0x5011f2];
|
|
105
|
+
return !_0x5102b4 ? (_0x31af18 = _0x31af['WOxhwp'](_0x31af18), _0x31af['Vdsgas'][_0x5011f2] = _0x31af18) : _0x31af18 = _0x5102b4, _0x31af18;
|
|
106
|
+
}
|
|
107
|
+
function createAttachmentCache(_0x557eaf = {}) {
|
|
108
|
+
const _0x300f83 = {
|
|
109
|
+
_0x5516ac: 0x329,
|
|
110
|
+
_0xe3fc38: 0x1c5
|
|
111
|
+
}, _0x24d5ff = {
|
|
112
|
+
_0x18b44b: 0x306,
|
|
113
|
+
_0x5eee07: 0x226,
|
|
114
|
+
_0x3de097: 0x2a8,
|
|
115
|
+
_0x1cd2c3: 0x315
|
|
116
|
+
}, _0x4642bf = _0x15c9cf, _0x3cc4f5 = _0x557eaf[_0x4642bf(_0x300f83._0x5516ac)] ?? _0x1033e9[_0x4642bf(0x2a8)](homedir(), _0x4642bf(_0x300f83._0xe3fc38), _0x4642bf(0x32c));
|
|
483
117
|
return {
|
|
484
|
-
'cacheDir':
|
|
485
|
-
async 'findCachedPath'(
|
|
486
|
-
const
|
|
487
|
-
await mkdir(
|
|
488
|
-
const
|
|
489
|
-
return
|
|
118
|
+
'cacheDir': _0x3cc4f5,
|
|
119
|
+
async 'findCachedPath'(_0x179d3f) {
|
|
120
|
+
const _0x5b0127 = _0x4642bf;
|
|
121
|
+
await mkdir(_0x3cc4f5, { 'recursive': !![] });
|
|
122
|
+
const _0x124c0f = await readdir(_0x3cc4f5), _0x29e8db = _0x124c0f['find'](_0x3ee26d => _0x3ee26d[_0x5b0127(0x2ab)](_0x179d3f + '-') || _0x3ee26d['startsWith'](_0x179d3f));
|
|
123
|
+
return _0x29e8db ? _0x1033e9[_0x5b0127(0x2a8)](_0x3cc4f5, _0x29e8db) : null;
|
|
490
124
|
},
|
|
491
|
-
async 'save'(
|
|
492
|
-
const
|
|
493
|
-
await mkdir(
|
|
494
|
-
const
|
|
495
|
-
return await writeFile(
|
|
125
|
+
async 'save'(_0x24914e) {
|
|
126
|
+
const _0x1aa19e = _0x4642bf;
|
|
127
|
+
await mkdir(_0x3cc4f5, { 'recursive': !![] });
|
|
128
|
+
const _0x209368 = _0x24914e[_0x1aa19e(_0x24d5ff._0x18b44b)]?.[_0x1aa19e(_0x24d5ff._0x5eee07)]() ? safeFilename(_0x24914e[_0x1aa19e(0x306)]) : '' + _0x24914e[_0x1aa19e(0x344)] + extensionFor(_0x24914e[_0x1aa19e(0x204)]), _0xe57a6b = _0x1033e9[_0x1aa19e(_0x24d5ff._0x3de097)](_0x3cc4f5, _0x24914e['attachmentId'] + '-' + _0x209368);
|
|
129
|
+
return await writeFile(_0xe57a6b, _0x24914e[_0x1aa19e(_0x24d5ff._0x1cd2c3)]), _0xe57a6b;
|
|
496
130
|
}
|
|
497
131
|
};
|
|
498
132
|
}
|
|
@@ -500,1860 +134,2234 @@ import {
|
|
|
500
134
|
createHash,
|
|
501
135
|
randomUUID
|
|
502
136
|
} from 'node:crypto';
|
|
503
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
504
|
-
function ensureSegment(
|
|
505
|
-
const
|
|
506
|
-
if (!
|
|
137
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x15c9cf(0x2dc);
|
|
138
|
+
function ensureSegment(_0xd72cd) {
|
|
139
|
+
const _0x3b04b4 = { _0x35f7cc: 0x226 }, _0x4c5fe0 = _0x15c9cf, _0x2be0ff = _0xd72cd[_0x4c5fe0(_0x3b04b4._0x35f7cc)]();
|
|
140
|
+
if (!_0x2be0ff || _0x2be0ff[_0x4c5fe0(0x270)](':'))
|
|
507
141
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
508
|
-
return
|
|
142
|
+
return _0x2be0ff;
|
|
509
143
|
}
|
|
510
|
-
function parseThreadParts(
|
|
511
|
-
const
|
|
512
|
-
if (
|
|
144
|
+
function parseThreadParts(_0x37f1b7) {
|
|
145
|
+
const _0x31395b = _0x15c9cf, _0x219f62 = _0x37f1b7['split'](':');
|
|
146
|
+
if (_0x219f62['length'] < 0x1 || _0x219f62[_0x31395b(0x27e)] > 0x2)
|
|
513
147
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
514
148
|
return {
|
|
515
|
-
'channelName': ensureSegment(
|
|
516
|
-
'threadShortId':
|
|
149
|
+
'channelName': ensureSegment(_0x219f62[0x0] ?? ''),
|
|
150
|
+
'threadShortId': _0x219f62[0x1] ? ensureSegment(_0x219f62[0x1]) : null
|
|
517
151
|
};
|
|
518
152
|
}
|
|
519
|
-
function parseTarget(
|
|
520
|
-
const
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
153
|
+
function parseTarget(_0x7456c8) {
|
|
154
|
+
const _0x48f9ea = {
|
|
155
|
+
_0x558744: 0x303,
|
|
156
|
+
_0x1c5dc9: 0x325,
|
|
157
|
+
_0x20c64a: 0x262,
|
|
158
|
+
_0x2200e4: 0x325,
|
|
159
|
+
_0x1ac0e2: 0x2eb,
|
|
160
|
+
_0x7b9940: 0x295,
|
|
161
|
+
_0x2a3ba4: 0x2eb,
|
|
162
|
+
_0xba8669: 0x262,
|
|
163
|
+
_0x9655f8: 0x325
|
|
164
|
+
}, _0x1918e3 = _0x15c9cf, _0x52e395 = _0x7456c8['trim']();
|
|
165
|
+
if (!_0x52e395)
|
|
531
166
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
532
|
-
if (
|
|
533
|
-
const
|
|
534
|
-
if (!
|
|
167
|
+
if (_0x52e395['startsWith']('#')) {
|
|
168
|
+
const _0x48d123 = parseThreadParts(_0x52e395[_0x1918e3(_0x48f9ea._0x558744)](0x1)), _0x323d90 = '#' + _0x48d123[_0x1918e3(_0x48f9ea._0x1c5dc9)];
|
|
169
|
+
if (!_0x48d123[_0x1918e3(0x2eb)])
|
|
535
170
|
return {
|
|
536
|
-
'channelName':
|
|
537
|
-
'channelTarget':
|
|
538
|
-
'kind':
|
|
539
|
-
'target':
|
|
171
|
+
'channelName': _0x48d123[_0x1918e3(0x325)],
|
|
172
|
+
'channelTarget': _0x323d90,
|
|
173
|
+
'kind': _0x1918e3(_0x48f9ea._0x20c64a),
|
|
174
|
+
'target': _0x323d90
|
|
540
175
|
};
|
|
541
176
|
return {
|
|
542
|
-
'channelName':
|
|
543
|
-
'channelTarget':
|
|
177
|
+
'channelName': _0x48d123[_0x1918e3(_0x48f9ea._0x2200e4)],
|
|
178
|
+
'channelTarget': _0x323d90,
|
|
544
179
|
'kind': 'thread',
|
|
545
|
-
'target':
|
|
546
|
-
'threadShortId':
|
|
180
|
+
'target': _0x323d90 + ':' + _0x48d123['threadShortId'],
|
|
181
|
+
'threadShortId': _0x48d123[_0x1918e3(_0x48f9ea._0x1ac0e2)]
|
|
547
182
|
};
|
|
548
183
|
}
|
|
549
|
-
if (
|
|
550
|
-
const
|
|
551
|
-
if (!
|
|
184
|
+
if (_0x52e395[_0x1918e3(0x2ab)](_0x1918e3(0x244))) {
|
|
185
|
+
const _0x21cae7 = parseThreadParts(_0x52e395['slice'](0x3));
|
|
186
|
+
if (!_0x21cae7['channelName'][_0x1918e3(0x2ab)](_0x1918e3(_0x48f9ea._0x7b9940)))
|
|
552
187
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
553
|
-
const
|
|
554
|
-
if (!
|
|
188
|
+
const _0x296e49 = _0x1918e3(0x244) + _0x21cae7[_0x1918e3(0x325)];
|
|
189
|
+
if (!_0x21cae7[_0x1918e3(_0x48f9ea._0x2a3ba4)])
|
|
555
190
|
return {
|
|
556
|
-
'channelName':
|
|
557
|
-
'channelTarget':
|
|
558
|
-
'kind':
|
|
559
|
-
'target':
|
|
191
|
+
'channelName': _0x21cae7[_0x1918e3(0x325)],
|
|
192
|
+
'channelTarget': _0x296e49,
|
|
193
|
+
'kind': _0x1918e3(_0x48f9ea._0xba8669),
|
|
194
|
+
'target': _0x296e49
|
|
560
195
|
};
|
|
561
196
|
return {
|
|
562
|
-
'channelName':
|
|
563
|
-
'channelTarget':
|
|
564
|
-
'kind':
|
|
565
|
-
'target':
|
|
566
|
-
'threadShortId':
|
|
197
|
+
'channelName': _0x21cae7[_0x1918e3(_0x48f9ea._0x9655f8)],
|
|
198
|
+
'channelTarget': _0x296e49,
|
|
199
|
+
'kind': _0x1918e3(0x322),
|
|
200
|
+
'target': _0x296e49 + ':' + _0x21cae7['threadShortId'],
|
|
201
|
+
'threadShortId': _0x21cae7[_0x1918e3(0x2eb)]
|
|
567
202
|
};
|
|
568
203
|
}
|
|
569
204
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
570
205
|
}
|
|
571
|
-
function asErrorMessage(
|
|
572
|
-
const
|
|
573
|
-
if (typeof
|
|
574
|
-
return
|
|
575
|
-
return
|
|
206
|
+
function asErrorMessage(_0x164c01, _0x3bd100) {
|
|
207
|
+
const _0x38dfd3 = _0x15c9cf;
|
|
208
|
+
if (typeof _0x164c01 === 'string' && _0x164c01[_0x38dfd3(0x226)]())
|
|
209
|
+
return _0x164c01;
|
|
210
|
+
return _0x3bd100;
|
|
576
211
|
}
|
|
577
|
-
function asRecord(
|
|
578
|
-
const
|
|
579
|
-
return typeof
|
|
212
|
+
function asRecord(_0x63715a) {
|
|
213
|
+
const _0x15ff86 = _0x15c9cf;
|
|
214
|
+
return typeof _0x63715a === _0x15ff86(0x1f6) && _0x63715a !== null ? _0x63715a : {};
|
|
580
215
|
}
|
|
581
|
-
function stableStringify(
|
|
582
|
-
const
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
return '{' + _0x7b529[_0x31efef(_0x5844ed._0x38321e)](',') + '}';
|
|
216
|
+
function stableStringify(_0x28d3ae) {
|
|
217
|
+
const _0x5ee74c = {
|
|
218
|
+
_0x45983b: 0x1f6,
|
|
219
|
+
_0x1baaa7: 0x22e,
|
|
220
|
+
_0x1b7001: 0x227,
|
|
221
|
+
_0x5ca608: 0x2a2,
|
|
222
|
+
_0x4e2239: 0x352,
|
|
223
|
+
_0x5ad577: 0x2a8
|
|
224
|
+
}, _0x50fe85 = _0x15c9cf;
|
|
225
|
+
if (_0x28d3ae === null || typeof _0x28d3ae !== _0x50fe85(_0x5ee74c._0x45983b))
|
|
226
|
+
return JSON[_0x50fe85(_0x5ee74c._0x1baaa7)](_0x28d3ae);
|
|
227
|
+
if (Array[_0x50fe85(0x2e0)](_0x28d3ae))
|
|
228
|
+
return '[' + _0x28d3ae['map'](_0x472e08 => stableStringify(_0x472e08))[_0x50fe85(0x2a8)](',') + ']';
|
|
229
|
+
const _0x2dac71 = Object[_0x50fe85(_0x5ee74c._0x1b7001)](_0x28d3ae)[_0x50fe85(_0x5ee74c._0x5ca608)](([, _0x3adbf6]) => _0x3adbf6 !== void 0x0)['sort'](([_0x13378b], [_0x5b7eb4]) => _0x13378b[_0x50fe85(0x2c3)](_0x5b7eb4))[_0x50fe85(_0x5ee74c._0x4e2239)](([_0x45362f, _0x3b4b53]) => JSON['stringify'](_0x45362f) + ':' + stableStringify(_0x3b4b53));
|
|
230
|
+
return '{' + _0x2dac71[_0x50fe85(_0x5ee74c._0x5ad577)](',') + '}';
|
|
597
231
|
}
|
|
598
|
-
function createHeaders(
|
|
232
|
+
function createHeaders(_0x491e61) {
|
|
233
|
+
const _0x520b8e = _0x15c9cf;
|
|
599
234
|
return {
|
|
600
|
-
'Content-Type':
|
|
601
|
-
'x-daemon-api-key':
|
|
235
|
+
'Content-Type': _0x520b8e(0x28a),
|
|
236
|
+
'x-daemon-api-key': _0x491e61
|
|
602
237
|
};
|
|
603
238
|
}
|
|
604
|
-
function toHttpBaseUrl(
|
|
605
|
-
const
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
_0x29fca5: 0x1fe,
|
|
609
|
-
_0x3e83a3: 0x1fe
|
|
610
|
-
}, _0x1c53c9 = _0x42cca9, _0x4c9259 = new URL(_0x21ea57);
|
|
611
|
-
if (_0x4c9259[_0x1c53c9(_0x5baa80._0x14a934)] === _0x1c53c9(_0x5baa80._0x1e9add))
|
|
612
|
-
_0x4c9259[_0x1c53c9(_0x5baa80._0x29fca5)] = 'http:';
|
|
239
|
+
function toHttpBaseUrl(_0x26ea91) {
|
|
240
|
+
const _0x3f520a = _0x15c9cf, _0x39412a = new URL(_0x26ea91);
|
|
241
|
+
if (_0x39412a[_0x3f520a(0x29b)] === 'ws:')
|
|
242
|
+
_0x39412a[_0x3f520a(0x29b)] = _0x3f520a(0x1ed);
|
|
613
243
|
else
|
|
614
|
-
|
|
615
|
-
return
|
|
244
|
+
_0x39412a[_0x3f520a(0x29b)] === _0x3f520a(0x221) && (_0x39412a[_0x3f520a(0x29b)] = 'https:');
|
|
245
|
+
return _0x39412a[_0x3f520a(0x29a)]()[_0x3f520a(0x290)](/\/$/, '');
|
|
616
246
|
}
|
|
617
|
-
function isMentionBoundary(
|
|
618
|
-
const
|
|
619
|
-
return !
|
|
247
|
+
function isMentionBoundary(_0x43b62d) {
|
|
248
|
+
const _0x23a050 = { _0x275aa2: 0x2e8 }, _0x4f06d4 = _0x15c9cf;
|
|
249
|
+
return !_0x43b62d || /\s|[([{'",。!?、:;]/[_0x4f06d4(_0x23a050._0x275aa2)](_0x43b62d);
|
|
620
250
|
}
|
|
621
|
-
function isMentionTerminal(
|
|
622
|
-
|
|
623
|
-
return !_0xa91344 || /\s|[)\]}'",。!?、:;,.!?]/[_0x2068e6(0x227)](_0xa91344);
|
|
251
|
+
function isMentionTerminal(_0x84f776) {
|
|
252
|
+
return !_0x84f776 || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x84f776);
|
|
624
253
|
}
|
|
625
|
-
function buildMatchableEntries(
|
|
626
|
-
const
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
254
|
+
function buildMatchableEntries(_0x35e372) {
|
|
255
|
+
const _0x42e2f4 = {
|
|
256
|
+
_0x5c1650: 0x1d7,
|
|
257
|
+
_0xb7b4e5: 0x2c8,
|
|
258
|
+
_0x4efd5a: 0x2c8,
|
|
259
|
+
_0x358136: 0x2f3
|
|
260
|
+
}, _0x1618ba = _0x15c9cf, _0x525bfd = [];
|
|
261
|
+
for (const _0x25e087 of [
|
|
262
|
+
..._0x35e372[_0x1618ba(_0x42e2f4._0x5c1650)],
|
|
263
|
+
..._0x35e372[_0x1618ba(0x2ea)]
|
|
633
264
|
]) {
|
|
634
|
-
|
|
635
|
-
'matchName':
|
|
636
|
-
'matchNameLower':
|
|
637
|
-
'participantId':
|
|
638
|
-
}),
|
|
639
|
-
'matchName':
|
|
640
|
-
'matchNameLower':
|
|
641
|
-
'participantId':
|
|
265
|
+
_0x525bfd['push']({
|
|
266
|
+
'matchName': _0x25e087[_0x1618ba(_0x42e2f4._0xb7b4e5)],
|
|
267
|
+
'matchNameLower': _0x25e087['name']['toLocaleLowerCase'](),
|
|
268
|
+
'participantId': _0x25e087['id']
|
|
269
|
+
}), _0x25e087['id'] !== _0x25e087[_0x1618ba(_0x42e2f4._0x4efd5a)] && _0x525bfd[_0x1618ba(_0x42e2f4._0x358136)]({
|
|
270
|
+
'matchName': _0x25e087['id'],
|
|
271
|
+
'matchNameLower': _0x25e087['id'][_0x1618ba(0x261)](),
|
|
272
|
+
'participantId': _0x25e087['id']
|
|
642
273
|
});
|
|
643
274
|
}
|
|
644
|
-
return
|
|
275
|
+
return _0x525bfd;
|
|
645
276
|
}
|
|
646
|
-
function extractMentionedParticipantIds(
|
|
647
|
-
const
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
}, _0x58ea88 = _0x42cca9, _0x116f02 = buildMatchableEntries(_0x358382)[_0x58ea88(_0x26207e._0x20b662)]((_0x3284f2, _0x139841) => _0x139841[_0x58ea88(0x16c)][_0x58ea88(0x269)] - _0x3284f2['matchName'][_0x58ea88(0x269)]), _0x439b26 = [], _0x103089 = new Set();
|
|
659
|
-
for (let _0x5c5488 = 0x0; _0x5c5488 < _0x43267d[_0x58ea88(_0x26207e._0x4719ee)]; _0x5c5488 += 0x1) {
|
|
660
|
-
if (_0x43267d[_0x5c5488] !== '@' || !isMentionBoundary(_0x43267d[_0x5c5488 - 0x1]))
|
|
277
|
+
function extractMentionedParticipantIds(_0x44a33b, _0x4ec6b2) {
|
|
278
|
+
const _0x428d30 = {
|
|
279
|
+
_0x44ea11: 0x307,
|
|
280
|
+
_0x4da264: 0x248,
|
|
281
|
+
_0xc0bd4a: 0x2b9,
|
|
282
|
+
_0x830c3d: 0x34b
|
|
283
|
+
}, _0x1e745d = {
|
|
284
|
+
_0x588c46: 0x2c0,
|
|
285
|
+
_0x438b4e: 0x207
|
|
286
|
+
}, _0x48269d = _0x15c9cf, _0x3f1f34 = buildMatchableEntries(_0x4ec6b2)[_0x48269d(_0x428d30._0x44ea11)]((_0x36d03b, _0x57d0ee) => _0x57d0ee['matchName'][_0x48269d(0x27e)] - _0x36d03b['matchName']['length']), _0x2d784d = [], _0x3256ec = new Set();
|
|
287
|
+
for (let _0x12951f = 0x0; _0x12951f < _0x44a33b[_0x48269d(0x27e)]; _0x12951f += 0x1) {
|
|
288
|
+
if (_0x44a33b[_0x12951f] !== '@' || !isMentionBoundary(_0x44a33b[_0x12951f - 0x1]))
|
|
661
289
|
continue;
|
|
662
|
-
const
|
|
663
|
-
const
|
|
664
|
-
if (!
|
|
290
|
+
const _0x417b25 = _0x44a33b[_0x48269d(0x303)](_0x12951f + 0x1), _0x66497b = _0x417b25[_0x48269d(0x261)](), _0x45100a = _0x3f1f34[_0x48269d(_0x428d30._0x4da264)](_0x1251ae => {
|
|
291
|
+
const _0x25c3eb = _0x48269d;
|
|
292
|
+
if (!_0x66497b['startsWith'](_0x1251ae[_0x25c3eb(_0x1e745d._0x588c46)]))
|
|
665
293
|
return ![];
|
|
666
|
-
return isMentionTerminal(
|
|
294
|
+
return isMentionTerminal(_0x417b25[_0x1251ae[_0x25c3eb(_0x1e745d._0x438b4e)][_0x25c3eb(0x27e)]]);
|
|
667
295
|
});
|
|
668
|
-
if (!
|
|
296
|
+
if (!_0x45100a || _0x3256ec[_0x48269d(_0x428d30._0xc0bd4a)](_0x45100a[_0x48269d(0x299)]))
|
|
669
297
|
continue;
|
|
670
|
-
|
|
298
|
+
_0x3256ec[_0x48269d(_0x428d30._0x830c3d)](_0x45100a['participantId']), _0x2d784d[_0x48269d(0x2f3)](_0x45100a[_0x48269d(0x299)]), _0x12951f += _0x45100a[_0x48269d(0x207)][_0x48269d(0x27e)];
|
|
671
299
|
}
|
|
672
|
-
return
|
|
300
|
+
return _0x2d784d;
|
|
673
301
|
}
|
|
674
302
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
675
|
-
function anySignal(...
|
|
676
|
-
const
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
303
|
+
function anySignal(..._0x3b10d6) {
|
|
304
|
+
const _0x418bbc = {
|
|
305
|
+
_0xd6cdf8: 0x304,
|
|
306
|
+
_0x496a8f: 0x26b,
|
|
307
|
+
_0x3ced3f: 0x2cd,
|
|
308
|
+
_0xe0e8d6: 0x253,
|
|
309
|
+
_0x5d856b: 0x348
|
|
310
|
+
}, _0x4d4d28 = _0x15c9cf, _0x3b0043 = new AbortController();
|
|
311
|
+
for (const _0x131b8d of _0x3b10d6) {
|
|
312
|
+
if (_0x131b8d[_0x4d4d28(_0x418bbc._0xd6cdf8)])
|
|
313
|
+
return _0x3b0043['abort'](_0x131b8d[_0x4d4d28(_0x418bbc._0x496a8f)]), _0x3b0043[_0x4d4d28(0x348)];
|
|
314
|
+
_0x131b8d[_0x4d4d28(_0x418bbc._0x3ced3f)](_0x4d4d28(_0x418bbc._0xe0e8d6), () => _0x3b0043['abort'](_0x131b8d[_0x4d4d28(0x26b)]), {
|
|
685
315
|
'once': !![],
|
|
686
|
-
'signal':
|
|
316
|
+
'signal': _0x3b0043[_0x4d4d28(_0x418bbc._0x5d856b)]
|
|
687
317
|
});
|
|
688
318
|
}
|
|
689
|
-
return
|
|
319
|
+
return _0x3b0043[_0x4d4d28(0x348)];
|
|
690
320
|
}
|
|
691
|
-
function createInternalAgentClient(
|
|
692
|
-
const
|
|
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
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
_0x1a6663: 0x226
|
|
857
|
-
}, _0x573f49 = { _0x129fc5: 0x11b }, _0x136958 = {
|
|
858
|
-
_0x4c90ad: 0x19e,
|
|
859
|
-
_0x136b66: 0x12c,
|
|
860
|
-
_0xd2a836: 0x102,
|
|
861
|
-
_0x5c6c79: 0x21d,
|
|
862
|
-
_0x49ccc8: 0x13c,
|
|
863
|
-
_0x4d17c2: 0x265,
|
|
864
|
-
_0x37cc6f: 0x16f,
|
|
865
|
-
_0x178179: 0x172
|
|
866
|
-
}, _0x6faa56 = _0x42cca9, _0x4d0c5c = _0x31806f[_0x6faa56(0x1ad)] ?? fetch, _0xcabae5 = _0x31806f[_0x6faa56(_0x9c271f._0x5012b4)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x322f9f = typeof _0x31806f[_0x6faa56(0x20f)] === 'number' && _0x31806f[_0x6faa56(_0x9c271f._0x448a33)] > 0x0 ? _0x31806f[_0x6faa56(_0x9c271f._0x57e244)] : 0x0, _0x350dbd = _0x31806f[_0x6faa56(_0x9c271f._0x589e32)]?.['trim']() || void 0x0, _0x464874 = _0x31806f[_0x6faa56(0x1d5)]?.[_0x6faa56(_0x9c271f._0x34d6f8)]() || void 0x0, _0x4cd8bb = _0x31806f[_0x6faa56(_0x9c271f._0x2a08af)] === !![], _0x4e61a9 = _0x31806f[_0x6faa56(0x11c)]?.[_0x6faa56(_0x9c271f._0x34d6f8)]() || void 0x0, _0xa6d88a = _0x31806f[_0x6faa56(_0x9c271f._0x2bd2e0)]?.['trim']() || void 0x0, _0x530bff = createHeaders(_0x31806f['daemonApiKey']), _0x152c84 = toHttpBaseUrl(_0x31806f[_0x6faa56(_0x9c271f._0x13d86b)]);
|
|
867
|
-
let _0x3abd69 = null;
|
|
868
|
-
const _0x4ec81a = new Map();
|
|
869
|
-
let _0xc2a303 = _0x322f9f, _0x566d45 = _0x322f9f;
|
|
870
|
-
function _0x273ee3(_0x596284) {
|
|
871
|
-
const _0x523e63 = _0x6faa56, _0x31b442 = _0x596284['response'][_0x523e63(_0x136958._0x4c90ad)][_0x523e63(_0x136958._0x136b66)]('content-type') ?? _0x523e63(_0x136958._0xd2a836), _0x1f6eda = _0x596284['bodyText']['trim']()[_0x523e63(0x1f3)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x523e63(_0x136958._0x5c6c79);
|
|
872
|
-
return '请求\x20' + _0x596284[_0x523e63(_0x136958._0x49ccc8)] + _0x523e63(_0x136958._0x4d17c2) + _0x596284['response']['status'] + _0x523e63(_0x136958._0x37cc6f) + _0x31b442 + _0x523e63(_0x136958._0x178179) + _0x1f6eda + _0x523e63(0x1c0);
|
|
321
|
+
function createInternalAgentClient(_0x18640a) {
|
|
322
|
+
const _0x515ac0 = {
|
|
323
|
+
_0x126725: 0x236,
|
|
324
|
+
_0x1cb6ec: 0x226,
|
|
325
|
+
_0x37a532: 0x24e,
|
|
326
|
+
_0x3d520a: 0x1c9,
|
|
327
|
+
_0x490f11: 0x250,
|
|
328
|
+
_0x29da13: 0x25f
|
|
329
|
+
}, _0x710285 = {
|
|
330
|
+
_0x34507b: 0x2b0,
|
|
331
|
+
_0x1d0bfe: 0x29a,
|
|
332
|
+
_0x43b59f: 0x326,
|
|
333
|
+
_0x48c263: 0x27e,
|
|
334
|
+
_0x752157: 0x352,
|
|
335
|
+
_0x3aa907: 0x2b4,
|
|
336
|
+
_0x3dfd51: 0x2da,
|
|
337
|
+
_0x5be468: 0x2da,
|
|
338
|
+
_0x3538ef: 0x29c,
|
|
339
|
+
_0x510ffe: 0x2bc,
|
|
340
|
+
_0x4fb134: 0x2d1,
|
|
341
|
+
_0x508ba5: 0x2bc,
|
|
342
|
+
_0x3284ff: 0x2f3,
|
|
343
|
+
_0x2e8cd9: 0x1ee,
|
|
344
|
+
_0x2123d4: 0x336,
|
|
345
|
+
_0x598f47: 0x210,
|
|
346
|
+
_0x122499: 0x22d,
|
|
347
|
+
_0x32687f: 0x2c8,
|
|
348
|
+
_0x181a3b: 0x20f,
|
|
349
|
+
_0x2eab63: 0x244,
|
|
350
|
+
_0x230a5a: 0x1de,
|
|
351
|
+
_0x38b445: 0x22d,
|
|
352
|
+
_0x1f571e: 0x20f,
|
|
353
|
+
_0x32bfc2: 0x228,
|
|
354
|
+
_0x5db9f9: 0x2df,
|
|
355
|
+
_0x2f9092: 0x2ca,
|
|
356
|
+
_0x401900: 0x2df,
|
|
357
|
+
_0x23df8b: 0x2b1
|
|
358
|
+
}, _0x57f661 = {
|
|
359
|
+
_0x1638fa: 0x30c,
|
|
360
|
+
_0x2a44e2: 0x2da
|
|
361
|
+
}, _0x105f0b = {
|
|
362
|
+
_0x27f1e6: 0x28c,
|
|
363
|
+
_0x1fb148: 0x2b3,
|
|
364
|
+
_0x38b112: 0x315,
|
|
365
|
+
_0x144e3b: 0x204,
|
|
366
|
+
_0x309f4c: 0x22d,
|
|
367
|
+
_0x4711c6: 0x332,
|
|
368
|
+
_0x4f7f0: 0x1c6
|
|
369
|
+
}, _0x348c14 = {
|
|
370
|
+
_0x39f456: 0x262,
|
|
371
|
+
_0x17497a: 0x29c,
|
|
372
|
+
_0x1029b3: 0x1dd,
|
|
373
|
+
_0x39d3f1: 0x2b5,
|
|
374
|
+
_0x25fd68: 0x205,
|
|
375
|
+
_0x53c451: 0x306
|
|
376
|
+
}, _0x112c4c = {
|
|
377
|
+
_0x53f9bb: 0x30d,
|
|
378
|
+
_0x25780d: 0x22e
|
|
379
|
+
}, _0x2fcc1a = {
|
|
380
|
+
_0x22d1f4: 0x326,
|
|
381
|
+
_0x5ab86f: 0x30e,
|
|
382
|
+
_0x5e91e8: 0x205
|
|
383
|
+
}, _0x570275 = {
|
|
384
|
+
_0xde9440: 0x326,
|
|
385
|
+
_0x32a572: 0x222,
|
|
386
|
+
_0x272214: 0x22e,
|
|
387
|
+
_0x33c989: 0x205
|
|
388
|
+
}, _0x24fe45 = {
|
|
389
|
+
_0xe32cff: 0x2d0,
|
|
390
|
+
_0x57b6fe: 0x1ff,
|
|
391
|
+
_0x4994b7: 0x1ff,
|
|
392
|
+
_0x5190b9: 0x30d
|
|
393
|
+
}, _0x261b0d = {
|
|
394
|
+
_0x122f3e: 0x32f,
|
|
395
|
+
_0x4964e7: 0x2bf,
|
|
396
|
+
_0x29685e: 0x315,
|
|
397
|
+
_0x6529f: 0x1ff
|
|
398
|
+
}, _0x28d785 = {
|
|
399
|
+
_0x25dd70: 0x1f5,
|
|
400
|
+
_0x583380: 0x1d4,
|
|
401
|
+
_0x514213: 0x205,
|
|
402
|
+
_0x38986d: 0x32f,
|
|
403
|
+
_0x2b837b: 0x2fc
|
|
404
|
+
}, _0x7fd6b = {
|
|
405
|
+
_0x2452e1: 0x22e,
|
|
406
|
+
_0x19d072: 0x225
|
|
407
|
+
}, _0x1503ef = { _0x312703: 0x2ae }, _0x30262c = {
|
|
408
|
+
_0x396b39: 0x24b,
|
|
409
|
+
_0x28e5d4: 0x2cf,
|
|
410
|
+
_0x46d704: 0x23e,
|
|
411
|
+
_0x453ea3: 0x2da,
|
|
412
|
+
_0x4d7c2d: 0x2ed,
|
|
413
|
+
_0x3f47d9: 0x205
|
|
414
|
+
}, _0x5bf224 = {
|
|
415
|
+
_0x3eed46: 0x2d0,
|
|
416
|
+
_0xe82d16: 0x2da,
|
|
417
|
+
_0x188a01: 0x2da,
|
|
418
|
+
_0x293180: 0x30c,
|
|
419
|
+
_0x36df9e: 0x2c2,
|
|
420
|
+
_0x550465: 0x2ff,
|
|
421
|
+
_0x5e462f: 0x2ff,
|
|
422
|
+
_0x144842: 0x326,
|
|
423
|
+
_0x292748: 0x230,
|
|
424
|
+
_0x2d6b11: 0x29a,
|
|
425
|
+
_0x2faaa1: 0x2c2
|
|
426
|
+
}, _0x26567a = { _0x4f5f05: 0x1da }, _0x293a93 = {
|
|
427
|
+
_0x33ec21: 0x34e,
|
|
428
|
+
_0x32dbee: 0x299,
|
|
429
|
+
_0x1367a7: 0x1da
|
|
430
|
+
}, _0x57c42b = {
|
|
431
|
+
_0x322323: 0x2d1,
|
|
432
|
+
_0x4eb956: 0x2eb,
|
|
433
|
+
_0x253372: 0x2bc,
|
|
434
|
+
_0x4dc094: 0x2ab,
|
|
435
|
+
_0x664e3c: 0x2eb,
|
|
436
|
+
_0x887ddd: 0x29c
|
|
437
|
+
}, _0x300e18 = {
|
|
438
|
+
_0x11538c: 0x2d1,
|
|
439
|
+
_0x390914: 0x2d1,
|
|
440
|
+
_0x3ae6aa: 0x2bc,
|
|
441
|
+
_0x1f8f51: 0x29c,
|
|
442
|
+
_0x285c96: 0x2aa,
|
|
443
|
+
_0x3a4369: 0x29c
|
|
444
|
+
}, _0x2c4a77 = { _0x208cee: 0x2a4 }, _0x2d4526 = { _0x2094c1: 0x209 }, _0x4dcbd4 = {
|
|
445
|
+
_0x9b70b0: 0x1e6,
|
|
446
|
+
_0xb679c9: 0x205,
|
|
447
|
+
_0x2076de: 0x2aa,
|
|
448
|
+
_0x1942b2: 0x315,
|
|
449
|
+
_0x34cdba: 0x238,
|
|
450
|
+
_0x9a9634: 0x315
|
|
451
|
+
}, _0x493d9b = {
|
|
452
|
+
_0x3a0ab4: 0x22e,
|
|
453
|
+
_0x3bde11: 0x205
|
|
454
|
+
}, _0x7b515d = { _0x3b7544: 0x249 }, _0x4c0a67 = {
|
|
455
|
+
_0x15e58f: 0x348,
|
|
456
|
+
_0x18bf02: 0x208,
|
|
457
|
+
_0xe657a: 0x1ff
|
|
458
|
+
}, _0x4c5758 = {
|
|
459
|
+
_0x5cc937: 0x348,
|
|
460
|
+
_0x227f63: 0x348
|
|
461
|
+
}, _0x392ec1 = {
|
|
462
|
+
_0x406f61: 0x2b8,
|
|
463
|
+
_0x5623ed: 0x2df,
|
|
464
|
+
_0x2abc28: 0x2b8,
|
|
465
|
+
_0x2e9a76: 0x226,
|
|
466
|
+
_0xe29204: 0x324,
|
|
467
|
+
_0x1693bd: 0x2ad,
|
|
468
|
+
_0x141d82: 0x22d
|
|
469
|
+
}, _0x4b5b9a = {
|
|
470
|
+
_0x3c4854: 0x1c6,
|
|
471
|
+
_0x21c249: 0x27a,
|
|
472
|
+
_0x584f83: 0x226
|
|
473
|
+
}, _0x48f1e1 = {
|
|
474
|
+
_0xeae781: 0x22d,
|
|
475
|
+
_0x2a94bc: 0x320,
|
|
476
|
+
_0x5b17fd: 0x226,
|
|
477
|
+
_0x190778: 0x338,
|
|
478
|
+
_0x316ec4: 0x1f4
|
|
479
|
+
}, _0x25fa1f = _0x15c9cf, _0x4244b8 = _0x18640a[_0x25fa1f(_0x515ac0._0x126725)] ?? fetch, _0x57619c = _0x18640a[_0x25fa1f(0x1fd)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x2b6a4e = typeof _0x18640a[_0x25fa1f(0x2a0)] === 'number' && _0x18640a[_0x25fa1f(0x2a0)] > 0x0 ? _0x18640a['initialLastSeenSeq'] : 0x0, _0x2396fa = _0x18640a[_0x25fa1f(0x2a5)]?.[_0x25fa1f(0x226)]() || void 0x0, _0x2d61a5 = _0x18640a['sessionId']?.[_0x25fa1f(_0x515ac0._0x1cb6ec)]() || void 0x0, _0x9aecc0 = _0x18640a[_0x25fa1f(_0x515ac0._0x37a532)] === !![], _0x5c2d8d = _0x18640a[_0x25fa1f(_0x515ac0._0x3d520a)]?.[_0x25fa1f(_0x515ac0._0x1cb6ec)]() || void 0x0, _0x5ebed2 = _0x18640a[_0x25fa1f(0x288)]?.[_0x25fa1f(0x226)]() || void 0x0, _0x19d469 = createHeaders(_0x18640a[_0x25fa1f(_0x515ac0._0x490f11)]), _0x403470 = toHttpBaseUrl(_0x18640a[_0x25fa1f(_0x515ac0._0x29da13)]);
|
|
480
|
+
let _0xe289cb = null;
|
|
481
|
+
const _0x1b8964 = new Map();
|
|
482
|
+
let _0xb843ec = _0x2b6a4e, _0x210dae = _0x2b6a4e;
|
|
483
|
+
function _0x1f1e7d(_0x4a1d07) {
|
|
484
|
+
const _0x5ab710 = _0x25fa1f, _0x4fcc58 = _0x4a1d07[_0x5ab710(0x1d1)][_0x5ab710(0x29f)][_0x5ab710(_0x48f1e1._0xeae781)]('content-type') ?? _0x5ab710(_0x48f1e1._0x2a94bc), _0x3eacc4 = _0x4a1d07['bodyText'][_0x5ab710(_0x48f1e1._0x5b17fd)]()[_0x5ab710(0x290)](/\s+/g, '\x20')[_0x5ab710(0x303)](0x0, 0x78) || _0x5ab710(_0x48f1e1._0x190778);
|
|
485
|
+
return _0x5ab710(0x25d) + _0x4a1d07[_0x5ab710(_0x48f1e1._0x316ec4)] + '\x20返回了非\x20JSON\x20响应(status=' + _0x4a1d07['response'][_0x5ab710(0x1ff)] + _0x5ab710(0x346) + _0x4fcc58 + _0x5ab710(0x2bb) + _0x3eacc4 + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
873
486
|
}
|
|
874
|
-
async function
|
|
875
|
-
const
|
|
876
|
-
if (!
|
|
487
|
+
async function _0x11d42e(_0x1f5f67, _0x228f0e) {
|
|
488
|
+
const _0x171033 = _0x25fa1f, _0x54c60a = Buffer[_0x171033(0x332)](await _0x228f0e[_0x171033(_0x4b5b9a._0x3c4854)]())['toString'](_0x171033(_0x4b5b9a._0x21c249));
|
|
489
|
+
if (!_0x54c60a[_0x171033(_0x4b5b9a._0x584f83)]())
|
|
877
490
|
return {};
|
|
878
491
|
try {
|
|
879
|
-
return JSON[
|
|
492
|
+
return JSON['parse'](_0x54c60a);
|
|
880
493
|
} catch {
|
|
881
|
-
throw new Error(
|
|
882
|
-
'bodyText':
|
|
883
|
-
'requestUrl':
|
|
884
|
-
'response':
|
|
494
|
+
throw new Error(_0x1f1e7d({
|
|
495
|
+
'bodyText': _0x54c60a,
|
|
496
|
+
'requestUrl': _0x1f5f67,
|
|
497
|
+
'response': _0x228f0e
|
|
885
498
|
}));
|
|
886
499
|
}
|
|
887
500
|
}
|
|
888
|
-
function
|
|
889
|
-
const
|
|
890
|
-
if (
|
|
891
|
-
return
|
|
892
|
-
const
|
|
893
|
-
for (const [
|
|
894
|
-
|
|
501
|
+
function _0x2ff2ba(_0x1a7cbe, _0x28035b) {
|
|
502
|
+
const _0x36a5a6 = _0x25fa1f, _0x1c0369 = typeof _0x28035b[_0x36a5a6(_0x392ec1._0x406f61)] === _0x36a5a6(_0x392ec1._0x5623ed) ? _0x28035b[_0x36a5a6(_0x392ec1._0x2abc28)][_0x36a5a6(_0x392ec1._0x2e9a76)]() : '';
|
|
503
|
+
if (_0x1c0369)
|
|
504
|
+
return _0x1c0369;
|
|
505
|
+
const _0x29ea0c = Date[_0x36a5a6(_0x392ec1._0xe29204)]();
|
|
506
|
+
for (const [_0x103bec, _0x3ad154] of _0x1b8964) {
|
|
507
|
+
_0x3ad154[_0x36a5a6(_0x392ec1._0x1693bd)] <= _0x29ea0c && _0x1b8964[_0x36a5a6(0x2c9)](_0x103bec);
|
|
895
508
|
}
|
|
896
|
-
const
|
|
897
|
-
...
|
|
509
|
+
const _0x1b530e = {
|
|
510
|
+
..._0x28035b,
|
|
898
511
|
'idempotency_key': void 0x0
|
|
899
|
-
},
|
|
900
|
-
if (
|
|
901
|
-
return
|
|
902
|
-
const
|
|
903
|
-
return
|
|
904
|
-
'expiresAt':
|
|
905
|
-
'value':
|
|
906
|
-
}),
|
|
512
|
+
}, _0x3ff7d4 = createHash('sha256')[_0x36a5a6(0x271)](_0x1a7cbe + ':' + stableStringify(_0x1b530e))[_0x36a5a6(0x1d8)](_0x36a5a6(0x255)), _0x2a51d1 = _0x1a7cbe + ':' + _0x3ff7d4, _0x515418 = _0x1b8964[_0x36a5a6(_0x392ec1._0x141d82)](_0x2a51d1);
|
|
513
|
+
if (_0x515418)
|
|
514
|
+
return _0x515418[_0x36a5a6(0x32e)];
|
|
515
|
+
const _0x41b30f = _0x36a5a6(0x280) + _0x1a7cbe + ':' + randomUUID();
|
|
516
|
+
return _0x1b8964['set'](_0x2a51d1, {
|
|
517
|
+
'expiresAt': _0x29ea0c + 0x5 * 0x3c * 0x3e8,
|
|
518
|
+
'value': _0x41b30f
|
|
519
|
+
}), _0x41b30f;
|
|
907
520
|
}
|
|
908
|
-
async function
|
|
909
|
-
const
|
|
521
|
+
async function _0x1713b4(_0x1bbe6a, _0x491d14) {
|
|
522
|
+
const _0x339bfc = _0x25fa1f, _0x5a33ba = new AbortController(), _0x4eb8df = setTimeout(() => _0x5a33ba['abort'](), _0x57619c), _0x1f5991 = _0x491d14?.[_0x339bfc(_0x4c5758._0x5cc937)] ? anySignal(_0x491d14[_0x339bfc(_0x4c5758._0x227f63)], _0x5a33ba['signal']) : _0x5a33ba[_0x339bfc(0x348)], _0x1e0a98 = '' + _0x403470 + _0x1bbe6a;
|
|
910
523
|
try {
|
|
911
|
-
const
|
|
912
|
-
...
|
|
913
|
-
'signal':
|
|
914
|
-
}),
|
|
915
|
-
if (!
|
|
916
|
-
throw new Error(asErrorMessage(
|
|
917
|
-
return
|
|
524
|
+
const _0x94fd55 = await _0x4244b8(_0x1e0a98, {
|
|
525
|
+
..._0x491d14,
|
|
526
|
+
'signal': _0x1f5991
|
|
527
|
+
}), _0x53906f = await _0x11d42e(_0x1e0a98, _0x94fd55);
|
|
528
|
+
if (!_0x94fd55['ok'] || _0x53906f[_0x339bfc(0x293)] === ![])
|
|
529
|
+
throw new Error(asErrorMessage(_0x53906f[_0x339bfc(0x208)], 'HTTP\x20' + _0x94fd55['status']));
|
|
530
|
+
return _0x53906f;
|
|
918
531
|
} finally {
|
|
919
|
-
clearTimeout(
|
|
532
|
+
clearTimeout(_0x4eb8df);
|
|
920
533
|
}
|
|
921
534
|
}
|
|
922
|
-
async function
|
|
923
|
-
const
|
|
535
|
+
async function _0x1d5524(_0x205053, _0x339020) {
|
|
536
|
+
const _0x33297b = _0x25fa1f, _0x266687 = new AbortController(), _0xf7b81f = setTimeout(() => _0x266687[_0x33297b(0x253)](), _0x57619c), _0x340f97 = _0x339020?.[_0x33297b(_0x4c0a67._0x15e58f)] ? anySignal(_0x339020[_0x33297b(_0x4c0a67._0x15e58f)], _0x266687[_0x33297b(_0x4c0a67._0x15e58f)]) : _0x266687[_0x33297b(_0x4c0a67._0x15e58f)], _0x1666cb = '' + _0x403470 + _0x205053;
|
|
924
537
|
try {
|
|
925
|
-
const
|
|
926
|
-
...
|
|
927
|
-
'signal':
|
|
928
|
-
}),
|
|
929
|
-
if (!
|
|
930
|
-
throw new Error(asErrorMessage(
|
|
931
|
-
return
|
|
538
|
+
const _0x47d753 = await _0x4244b8(_0x1666cb, {
|
|
539
|
+
..._0x339020,
|
|
540
|
+
'signal': _0x340f97
|
|
541
|
+
}), _0x4eccce = await _0x11d42e(_0x1666cb, _0x47d753);
|
|
542
|
+
if (!_0x47d753['ok'])
|
|
543
|
+
throw new Error(asErrorMessage(_0x4eccce[_0x33297b(_0x4c0a67._0x18bf02)], 'HTTP\x20' + _0x47d753[_0x33297b(_0x4c0a67._0xe657a)]));
|
|
544
|
+
return _0x4eccce;
|
|
932
545
|
} finally {
|
|
933
|
-
clearTimeout(
|
|
546
|
+
clearTimeout(_0xf7b81f);
|
|
934
547
|
}
|
|
935
548
|
}
|
|
936
|
-
async function
|
|
937
|
-
const
|
|
938
|
-
if (!
|
|
549
|
+
async function _0x90f970(_0x511869) {
|
|
550
|
+
const _0xa090a2 = _0x25fa1f;
|
|
551
|
+
if (!_0x2d61a5 || _0x511869 <= _0x210dae)
|
|
939
552
|
return;
|
|
940
|
-
await
|
|
941
|
-
'body': JSON[
|
|
942
|
-
'headers':
|
|
943
|
-
'method':
|
|
944
|
-
}),
|
|
553
|
+
await _0x1713b4(_0xa090a2(0x28b) + encodeURIComponent(_0x2d61a5) + _0xa090a2(0x33b), {
|
|
554
|
+
'body': JSON[_0xa090a2(0x22e)]({ 'lastSeenSeq': _0x511869 }),
|
|
555
|
+
'headers': _0x19d469,
|
|
556
|
+
'method': _0xa090a2(_0x7b515d._0x3b7544)
|
|
557
|
+
}), _0x210dae = _0x511869;
|
|
945
558
|
}
|
|
946
|
-
async function
|
|
947
|
-
const
|
|
948
|
-
if (!
|
|
559
|
+
async function _0x436c46(_0x5844fa) {
|
|
560
|
+
const _0x54e6d3 = _0x25fa1f;
|
|
561
|
+
if (!_0x2396fa || !_0x5c2d8d || _0x5844fa <= _0x210dae)
|
|
949
562
|
return;
|
|
950
|
-
const
|
|
951
|
-
'body': JSON[
|
|
952
|
-
'last_seen_seq':
|
|
953
|
-
'worker_session_id':
|
|
563
|
+
const _0x4e3cfa = await _0x4244b8(_0x2396fa + _0x54e6d3(0x347), {
|
|
564
|
+
'body': JSON[_0x54e6d3(_0x493d9b._0x3a0ab4)]({
|
|
565
|
+
'last_seen_seq': _0x5844fa,
|
|
566
|
+
'worker_session_id': _0x5c2d8d
|
|
954
567
|
}),
|
|
955
|
-
'headers': { 'Content-Type':
|
|
956
|
-
'method':
|
|
568
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
569
|
+
'method': _0x54e6d3(_0x493d9b._0x3bde11)
|
|
957
570
|
});
|
|
958
|
-
if (!
|
|
959
|
-
throw new Error('HTTP\x20' +
|
|
960
|
-
|
|
571
|
+
if (!_0x4e3cfa['ok'])
|
|
572
|
+
throw new Error('HTTP\x20' + _0x4e3cfa['status']);
|
|
573
|
+
_0x210dae = _0x5844fa;
|
|
961
574
|
}
|
|
962
|
-
async function
|
|
963
|
-
const
|
|
964
|
-
'body': JSON[
|
|
965
|
-
'headers':
|
|
966
|
-
'method':
|
|
575
|
+
async function _0x4fc5f2(_0x427738) {
|
|
576
|
+
const _0x28ee95 = _0x25fa1f, _0x1fa03d = parseTarget(_0x427738), _0x506b88 = await _0x1713b4(_0x28ee95(0x326) + _0x18640a[_0x28ee95(0x30d)] + _0x28ee95(_0x4dcbd4._0x9b70b0), {
|
|
577
|
+
'body': JSON[_0x28ee95(0x22e)]({ 'target': _0x1fa03d[_0x28ee95(0x1dd)] }),
|
|
578
|
+
'headers': _0x19d469,
|
|
579
|
+
'method': _0x28ee95(_0x4dcbd4._0xb679c9)
|
|
967
580
|
});
|
|
968
581
|
return {
|
|
969
|
-
'channelId':
|
|
970
|
-
'target':
|
|
971
|
-
'task':
|
|
972
|
-
'threadId':
|
|
973
|
-
'threadNumber':
|
|
582
|
+
'channelId': _0x506b88['data']?.[_0x28ee95(0x2da)] ?? '',
|
|
583
|
+
'target': _0x1fa03d[_0x28ee95(_0x4dcbd4._0x2076de)],
|
|
584
|
+
'task': _0x506b88[_0x28ee95(_0x4dcbd4._0x1942b2)]?.[_0x28ee95(_0x4dcbd4._0x34cdba)],
|
|
585
|
+
'threadId': _0x506b88[_0x28ee95(0x315)]?.['threadId'],
|
|
586
|
+
'threadNumber': _0x506b88[_0x28ee95(_0x4dcbd4._0x9a9634)]?.[_0x28ee95(0x2d1)]
|
|
974
587
|
};
|
|
975
588
|
}
|
|
976
|
-
async function
|
|
977
|
-
const
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
'
|
|
990
|
-
|
|
589
|
+
async function _0x14fe0f(_0x434a8a = {}) {
|
|
590
|
+
const _0xab57a8 = {
|
|
591
|
+
_0xd9c4a5: 0x352,
|
|
592
|
+
_0xc1c75d: 0x2a2,
|
|
593
|
+
_0x542a5c: 0x352,
|
|
594
|
+
_0x290bbd: 0x315,
|
|
595
|
+
_0x9b38e2: 0x315,
|
|
596
|
+
_0x302b22: 0x2b4
|
|
597
|
+
}, _0x40ec9e = _0x25fa1f;
|
|
598
|
+
if (!_0x434a8a[_0x40ec9e(_0x2d4526._0x2094c1)] && _0xe289cb)
|
|
599
|
+
return _0xe289cb;
|
|
600
|
+
return _0xe289cb = (async () => {
|
|
601
|
+
const _0x166136 = _0x40ec9e, _0x3fbd16 = await _0x1713b4(_0x166136(0x326) + _0x18640a[_0x166136(0x30d)] + '/server', {
|
|
602
|
+
'headers': _0x19d469,
|
|
603
|
+
'method': _0x166136(0x2b3)
|
|
604
|
+
}), _0x163746 = _0x3fbd16['data']?.[_0x166136(0x24c)] ?? [], _0x5330e0 = _0x163746['filter'](_0x256dad => _0x256dad[_0x166136(0x1da)]?.[_0x166136(0x26a)] === _0x166136(0x2a4))[_0x166136(_0xab57a8._0xd9c4a5)](_0x10f664 => ({
|
|
605
|
+
'id': _0x3646ba(_0x10f664),
|
|
606
|
+
'name': _0x49f577(_0x10f664)
|
|
607
|
+
}))[_0x166136(_0xab57a8._0xc1c75d)](_0x5f3caf => _0x5f3caf['id']), _0x25d74a = _0x163746[_0x166136(0x2a2)](_0x4facf4 => _0x4facf4[_0x166136(0x1da)]?.[_0x166136(0x26a)] !== _0x166136(0x2a4))[_0x166136(_0xab57a8._0x542a5c)](_0x5c858b => ({
|
|
608
|
+
'id': _0x3646ba(_0x5c858b),
|
|
609
|
+
'name': _0x49f577(_0x5c858b)
|
|
610
|
+
}))[_0x166136(0x2a2)](_0x133357 => _0x133357['id']), _0x2b85a1 = _0x3fbd16[_0x166136(_0xab57a8._0x290bbd)]?.[_0x166136(0x284)]['id'] ?? '';
|
|
991
611
|
return {
|
|
992
|
-
'agents':
|
|
993
|
-
'channels':
|
|
994
|
-
'humans':
|
|
995
|
-
'serverId':
|
|
996
|
-
'serverName':
|
|
612
|
+
'agents': _0x5330e0,
|
|
613
|
+
'channels': _0x3fbd16[_0x166136(_0xab57a8._0x9b38e2)]?.[_0x166136(_0xab57a8._0x302b22)] ?? [],
|
|
614
|
+
'humans': _0x25d74a,
|
|
615
|
+
'serverId': _0x2b85a1,
|
|
616
|
+
'serverName': _0x3fbd16['data']?.['server']['name'] ?? _0x2b85a1
|
|
997
617
|
};
|
|
998
|
-
})()[
|
|
999
|
-
|
|
1000
|
-
throw
|
|
1001
|
-
}),
|
|
618
|
+
})()[_0x40ec9e(0x317)](_0x79be4 => {
|
|
619
|
+
_0xe289cb = null;
|
|
620
|
+
throw _0x79be4;
|
|
621
|
+
}), _0xe289cb;
|
|
1002
622
|
}
|
|
1003
|
-
function
|
|
1004
|
-
const
|
|
1005
|
-
return
|
|
623
|
+
function _0x39491e(_0x43d796, _0x327ad6) {
|
|
624
|
+
const _0x2dbe74 = _0x25fa1f;
|
|
625
|
+
return _0x327ad6[_0x2dbe74(0x1d7)][_0x2dbe74(0x312)](_0x4ec86b => _0x4ec86b['id'] === _0x43d796 || _0x4ec86b['name'] === _0x43d796) ? _0x2dbe74(_0x2c4a77._0x208cee) : _0x2dbe74(0x23f);
|
|
1006
626
|
}
|
|
1007
|
-
function
|
|
1008
|
-
const
|
|
1009
|
-
if (
|
|
1010
|
-
return
|
|
1011
|
-
if (
|
|
1012
|
-
return
|
|
1013
|
-
if (
|
|
1014
|
-
return
|
|
1015
|
-
return
|
|
627
|
+
function _0x39e3f2(_0x2cca24) {
|
|
628
|
+
const _0x444c95 = _0x25fa1f;
|
|
629
|
+
if (_0x2cca24[_0x444c95(_0x300e18._0x11538c)] != null)
|
|
630
|
+
return _0x2cca24[_0x444c95(0x2aa)] + ':t' + _0x2cca24[_0x444c95(_0x300e18._0x390914)];
|
|
631
|
+
if (_0x2cca24[_0x444c95(_0x300e18._0x3ae6aa)])
|
|
632
|
+
return _0x2cca24[_0x444c95(0x2aa)] + ':' + _0x2cca24['rootMessageId'];
|
|
633
|
+
if (_0x2cca24[_0x444c95(_0x300e18._0x1f8f51)])
|
|
634
|
+
return _0x2cca24[_0x444c95(_0x300e18._0x285c96)] + ':' + _0x2cca24[_0x444c95(_0x300e18._0x3a4369)]['slice'](0x0, 0x8);
|
|
635
|
+
return _0x2cca24[_0x444c95(0x2aa)];
|
|
1016
636
|
}
|
|
1017
|
-
function
|
|
1018
|
-
const
|
|
637
|
+
function _0x3aed5b(_0x103930, _0x3a0531) {
|
|
638
|
+
const _0x53632f = _0x25fa1f;
|
|
1019
639
|
try {
|
|
1020
|
-
const
|
|
1021
|
-
if (
|
|
640
|
+
const _0x5cdde1 = parseTarget(_0x103930);
|
|
641
|
+
if (_0x5cdde1[_0x53632f(0x20f)] !== _0x53632f(0x322) || _0x5cdde1[_0x53632f(0x2aa)] !== _0x3a0531['channelTarget'])
|
|
1022
642
|
return ![];
|
|
1023
|
-
if (
|
|
643
|
+
if (_0x3a0531[_0x53632f(_0x57c42b._0x322323)] != null && _0x5cdde1[_0x53632f(_0x57c42b._0x4eb956)] === 't' + _0x3a0531['threadNumber'])
|
|
1024
644
|
return !![];
|
|
1025
|
-
if (
|
|
1026
|
-
return
|
|
1027
|
-
if (
|
|
1028
|
-
return
|
|
645
|
+
if (_0x3a0531[_0x53632f(_0x57c42b._0x253372)])
|
|
646
|
+
return _0x5cdde1['threadShortId'] === _0x3a0531['rootMessageId'] || _0x3a0531[_0x53632f(0x2bc)][_0x53632f(_0x57c42b._0x4dc094)](_0x5cdde1[_0x53632f(_0x57c42b._0x664e3c)]);
|
|
647
|
+
if (_0x3a0531[_0x53632f(0x29c)])
|
|
648
|
+
return _0x5cdde1[_0x53632f(0x2eb)] === _0x3a0531['threadId'] || _0x3a0531[_0x53632f(_0x57c42b._0x887ddd)]['startsWith'](_0x5cdde1[_0x53632f(_0x57c42b._0x4eb956)]);
|
|
1029
649
|
return ![];
|
|
1030
650
|
} catch {
|
|
1031
651
|
return ![];
|
|
1032
652
|
}
|
|
1033
653
|
}
|
|
1034
|
-
function
|
|
1035
|
-
const
|
|
1036
|
-
return
|
|
654
|
+
function _0x3646ba(_0x26d377) {
|
|
655
|
+
const _0x98bdf9 = _0x25fa1f;
|
|
656
|
+
return _0x26d377[_0x98bdf9(_0x293a93._0x33ec21)]?.[_0x98bdf9(_0x293a93._0x32dbee)] ?? _0x26d377[_0x98bdf9(_0x293a93._0x1367a7)]?.['id'] ?? _0x26d377[_0x98bdf9(_0x293a93._0x32dbee)] ?? '';
|
|
1037
657
|
}
|
|
1038
|
-
function
|
|
1039
|
-
const
|
|
1040
|
-
return
|
|
658
|
+
function _0x49f577(_0x31fa80) {
|
|
659
|
+
const _0x221b5a = _0x25fa1f;
|
|
660
|
+
return _0x31fa80[_0x221b5a(_0x26567a._0x4f5f05)]?.['name'] ?? _0x3646ba(_0x31fa80);
|
|
1041
661
|
}
|
|
1042
|
-
async function
|
|
1043
|
-
const
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
const
|
|
1049
|
-
'headers':
|
|
1050
|
-
'method':
|
|
1051
|
-
}),
|
|
1052
|
-
'attachments': (
|
|
1053
|
-
'filename':
|
|
1054
|
-
'id':
|
|
662
|
+
async function _0x4eb052(_0x13c5a3) {
|
|
663
|
+
const _0x49f6a2 = _0x25fa1f, _0x1466fd = Math[_0x49f6a2(0x1d5)](_0x13c5a3[_0x49f6a2(0x31c)] ?? 0x32, 0x64), _0x4502c7 = await _0x14fe0f(), _0x2d14e9 = new URLSearchParams();
|
|
664
|
+
_0x2d14e9[_0x49f6a2(_0x5bf224._0x3eed46)](_0x49f6a2(0x31c), String(_0x1466fd));
|
|
665
|
+
_0x13c5a3['threadId'] ? (_0x2d14e9[_0x49f6a2(0x2d0)](_0x49f6a2(0x29c), _0x13c5a3[_0x49f6a2(0x29c)]), _0x2d14e9[_0x49f6a2(_0x5bf224._0x3eed46)](_0x49f6a2(_0x5bf224._0xe82d16), _0x13c5a3['channelId'])) : _0x2d14e9['set'](_0x49f6a2(_0x5bf224._0x188a01), _0x13c5a3['channelId']);
|
|
666
|
+
_0x13c5a3[_0x49f6a2(_0x5bf224._0x293180)] && _0x2d14e9['set'](_0x49f6a2(_0x5bf224._0x36df9e), String(_0x13c5a3['before']));
|
|
667
|
+
_0x13c5a3[_0x49f6a2(0x2ff)] !== void 0x0 && _0x2d14e9[_0x49f6a2(0x2d0)](_0x49f6a2(_0x5bf224._0x550465), String(_0x13c5a3[_0x49f6a2(_0x5bf224._0x5e462f)]));
|
|
668
|
+
const _0x60ffb2 = await _0x1713b4(_0x49f6a2(_0x5bf224._0x144842) + _0x18640a[_0x49f6a2(0x30d)] + _0x49f6a2(_0x5bf224._0x292748) + _0x2d14e9[_0x49f6a2(_0x5bf224._0x2d6b11)](), {
|
|
669
|
+
'headers': _0x19d469,
|
|
670
|
+
'method': _0x49f6a2(0x2b3)
|
|
671
|
+
}), _0x405e88 = (_0x60ffb2[_0x49f6a2(0x315)] ?? [])['map'](_0x7df7de => ({
|
|
672
|
+
'attachments': (_0x7df7de[_0x49f6a2(0x32c)] ?? [])['map'](_0x134d76 => ({
|
|
673
|
+
'filename': _0x134d76[_0x49f6a2(0x2b5)] ?? _0x134d76['id'],
|
|
674
|
+
'id': _0x134d76['id']
|
|
1055
675
|
})),
|
|
1056
|
-
'content':
|
|
1057
|
-
'createdAt':
|
|
1058
|
-
'
|
|
1059
|
-
'
|
|
1060
|
-
'
|
|
1061
|
-
'
|
|
676
|
+
'content': _0x7df7de[_0x49f6a2(0x2b1)] ?? '',
|
|
677
|
+
'createdAt': _0x7df7de[_0x49f6a2(0x2e9)],
|
|
678
|
+
..._0x7df7de[_0x49f6a2(0x20f)] && _0x7df7de[_0x49f6a2(0x20f)] !== _0x49f6a2(0x31e) ? { 'kind': _0x7df7de['kind'] } : {},
|
|
679
|
+
'messageId': _0x7df7de['id'],
|
|
680
|
+
'senderName': _0x7df7de[_0x49f6a2(0x2ca)],
|
|
681
|
+
'senderType': _0x39491e(_0x7df7de['senderParticipantId'], _0x4502c7),
|
|
682
|
+
'seq': _0x7df7de[_0x49f6a2(0x27b)] ?? 0x0
|
|
1062
683
|
}));
|
|
1063
684
|
return {
|
|
1064
|
-
'channel':
|
|
1065
|
-
'hasMore':
|
|
1066
|
-
'messages':
|
|
1067
|
-
'nextCursor':
|
|
685
|
+
'channel': _0x13c5a3[_0x49f6a2(0x2aa)],
|
|
686
|
+
'hasMore': _0x60ffb2[_0x49f6a2(0x2e7)]?.[_0x49f6a2(0x2ce)] ?? ![],
|
|
687
|
+
'messages': _0x405e88,
|
|
688
|
+
'nextCursor': _0x60ffb2['meta']?.[_0x49f6a2(_0x5bf224._0x2faaa1)]
|
|
1068
689
|
};
|
|
1069
690
|
}
|
|
1070
691
|
return {
|
|
1071
|
-
async 'sendMessage'(
|
|
1072
|
-
const
|
|
1073
|
-
'body': JSON[
|
|
1074
|
-
'attachment_ids':
|
|
1075
|
-
'bodyMarkdown':
|
|
1076
|
-
'channelId':
|
|
1077
|
-
...
|
|
1078
|
-
'threadId':
|
|
1079
|
-
...
|
|
692
|
+
async 'sendMessage'(_0x5bcf76) {
|
|
693
|
+
const _0x2141e = _0x25fa1f, _0x183d40 = await _0x4fc5f2(_0x5bcf76[_0x2141e(0x1dd)]), _0x2e90ba = _0x5bcf76[_0x2141e(0x24b)]['includes']('@') ? extractMentionedParticipantIds(_0x5bcf76[_0x2141e(_0x30262c._0x396b39)], await _0x14fe0f()) : [], _0x56fa0b = await _0x1713b4('/internal/agent/' + _0x18640a['agentId'] + _0x2141e(_0x30262c._0x28e5d4), {
|
|
694
|
+
'body': JSON[_0x2141e(0x22e)]({
|
|
695
|
+
'attachment_ids': _0x5bcf76[_0x2141e(_0x30262c._0x46d704)],
|
|
696
|
+
'bodyMarkdown': _0x5bcf76[_0x2141e(_0x30262c._0x396b39)],
|
|
697
|
+
'channelId': _0x183d40[_0x2141e(_0x30262c._0x453ea3)],
|
|
698
|
+
..._0x2e90ba['length'] > 0x0 ? { 'mentionedParticipantIds': _0x2e90ba } : {},
|
|
699
|
+
'threadId': _0x183d40[_0x2141e(0x29c)],
|
|
700
|
+
..._0x5bcf76[_0x2141e(_0x30262c._0x4d7c2d)] ? { 'visibility': _0x5bcf76[_0x2141e(0x2ed)] } : {}
|
|
1080
701
|
}),
|
|
1081
|
-
'headers':
|
|
1082
|
-
'method':
|
|
702
|
+
'headers': _0x19d469,
|
|
703
|
+
'method': _0x2141e(_0x30262c._0x3f47d9)
|
|
1083
704
|
});
|
|
1084
|
-
return { 'messageId':
|
|
705
|
+
return { 'messageId': _0x56fa0b[_0x2141e(0x315)]?.['id'] ?? '' };
|
|
1085
706
|
},
|
|
1086
707
|
async 'listSchedules'() {
|
|
1087
|
-
const
|
|
1088
|
-
'headers':
|
|
1089
|
-
'method':
|
|
708
|
+
const _0x8a07d4 = _0x25fa1f, _0x2a44a4 = await _0x1713b4(_0x8a07d4(_0x1503ef._0x312703), {
|
|
709
|
+
'headers': _0x19d469,
|
|
710
|
+
'method': _0x8a07d4(0x2b3)
|
|
1090
711
|
});
|
|
1091
|
-
return
|
|
712
|
+
return _0x2a44a4['data'] ?? [];
|
|
1092
713
|
},
|
|
1093
|
-
async 'claimScheduleRun'(
|
|
1094
|
-
const
|
|
1095
|
-
'body': JSON[
|
|
1096
|
-
'headers':
|
|
1097
|
-
'method':
|
|
714
|
+
async 'claimScheduleRun'(_0x581125) {
|
|
715
|
+
const _0x3c533e = _0x25fa1f, _0x3a8a36 = await _0x1713b4(_0x3c533e(0x2e2), {
|
|
716
|
+
'body': JSON[_0x3c533e(_0x7fd6b._0x2452e1)](_0x581125),
|
|
717
|
+
'headers': _0x19d469,
|
|
718
|
+
'method': _0x3c533e(0x205)
|
|
1098
719
|
});
|
|
1099
|
-
return
|
|
720
|
+
return _0x3a8a36['data'] ?? {
|
|
1100
721
|
'granted': ![],
|
|
1101
722
|
'runId': null,
|
|
1102
723
|
'schedule': null,
|
|
1103
|
-
'scheduledFor':
|
|
724
|
+
'scheduledFor': _0x581125[_0x3c533e(_0x7fd6b._0x19d072)]
|
|
1104
725
|
};
|
|
1105
726
|
},
|
|
1106
|
-
async 'startScheduleRun'(
|
|
1107
|
-
const
|
|
1108
|
-
'body': JSON[
|
|
1109
|
-
'headers':
|
|
1110
|
-
'method':
|
|
727
|
+
async 'startScheduleRun'(_0x1a8033) {
|
|
728
|
+
const _0x4d1fe3 = _0x25fa1f, _0x23b9b2 = await _0x1713b4(_0x4d1fe3(_0x28d785._0x25dd70) + encodeURIComponent(_0x1a8033[_0x4d1fe3(0x32f)]) + _0x4d1fe3(_0x28d785._0x583380), {
|
|
729
|
+
'body': JSON[_0x4d1fe3(0x22e)]({}),
|
|
730
|
+
'headers': _0x19d469,
|
|
731
|
+
'method': _0x4d1fe3(_0x28d785._0x514213)
|
|
1111
732
|
});
|
|
1112
|
-
return
|
|
733
|
+
return _0x23b9b2['data'] ?? {
|
|
1113
734
|
'claimedByDaemonId': '',
|
|
1114
|
-
'id':
|
|
735
|
+
'id': _0x1a8033[_0x4d1fe3(_0x28d785._0x38986d)],
|
|
1115
736
|
'scheduleId': '',
|
|
1116
|
-
'status':
|
|
737
|
+
'status': _0x4d1fe3(_0x28d785._0x2b837b)
|
|
1117
738
|
};
|
|
1118
739
|
},
|
|
1119
|
-
async 'finishScheduleRun'(
|
|
1120
|
-
const
|
|
1121
|
-
'body': JSON[
|
|
1122
|
-
'error':
|
|
1123
|
-
'resultJson':
|
|
1124
|
-
'status':
|
|
740
|
+
async 'finishScheduleRun'(_0x2af58c) {
|
|
741
|
+
const _0x1e3234 = _0x25fa1f, _0x5cb755 = await _0x1713b4(_0x1e3234(0x1f5) + encodeURIComponent(_0x2af58c[_0x1e3234(_0x261b0d._0x122f3e)]) + _0x1e3234(0x334), {
|
|
742
|
+
'body': JSON['stringify']({
|
|
743
|
+
'error': _0x2af58c[_0x1e3234(0x208)],
|
|
744
|
+
'resultJson': _0x2af58c[_0x1e3234(_0x261b0d._0x4964e7)],
|
|
745
|
+
'status': _0x2af58c[_0x1e3234(0x1ff)]
|
|
1125
746
|
}),
|
|
1126
|
-
'headers':
|
|
1127
|
-
'method':
|
|
747
|
+
'headers': _0x19d469,
|
|
748
|
+
'method': 'POST'
|
|
1128
749
|
});
|
|
1129
|
-
return
|
|
750
|
+
return _0x5cb755[_0x1e3234(_0x261b0d._0x29685e)] ?? {
|
|
1130
751
|
'nextRunAt': null,
|
|
1131
752
|
'run': {
|
|
1132
753
|
'claimedByDaemonId': '',
|
|
1133
|
-
'id':
|
|
754
|
+
'id': _0x2af58c[_0x1e3234(_0x261b0d._0x122f3e)],
|
|
1134
755
|
'scheduleId': '',
|
|
1135
|
-
'status':
|
|
756
|
+
'status': _0x2af58c[_0x1e3234(_0x261b0d._0x6529f)]
|
|
1136
757
|
}
|
|
1137
758
|
};
|
|
1138
759
|
},
|
|
1139
|
-
async 'listTasks'(
|
|
1140
|
-
const
|
|
1141
|
-
return
|
|
1142
|
-
'headers':
|
|
1143
|
-
'method':
|
|
760
|
+
async 'listTasks'(_0x1470a4) {
|
|
761
|
+
const _0x4e6ba9 = _0x25fa1f, _0xe79f5c = new URLSearchParams();
|
|
762
|
+
return _0xe79f5c[_0x4e6ba9(_0x24fe45._0xe32cff)](_0x4e6ba9(0x262), _0x1470a4['channel']), _0x1470a4[_0x4e6ba9(0x1ff)] && _0xe79f5c[_0x4e6ba9(_0x24fe45._0xe32cff)](_0x4e6ba9(_0x24fe45._0x57b6fe), _0x1470a4[_0x4e6ba9(_0x24fe45._0x4994b7)]), _0x1d5524(_0x4e6ba9(0x326) + _0x18640a[_0x4e6ba9(_0x24fe45._0x5190b9)] + _0x4e6ba9(0x215) + _0xe79f5c['toString'](), {
|
|
763
|
+
'headers': _0x19d469,
|
|
764
|
+
'method': _0x4e6ba9(0x2b3)
|
|
1144
765
|
});
|
|
1145
766
|
},
|
|
1146
|
-
async 'createTasks'(
|
|
1147
|
-
const
|
|
1148
|
-
return
|
|
1149
|
-
'body': JSON[
|
|
1150
|
-
...
|
|
1151
|
-
'idempotency_key':
|
|
767
|
+
async 'createTasks'(_0x498de9) {
|
|
768
|
+
const _0x373edc = _0x25fa1f;
|
|
769
|
+
return _0x1d5524(_0x373edc(_0x570275._0xde9440) + _0x18640a[_0x373edc(0x30d)] + _0x373edc(_0x570275._0x32a572), {
|
|
770
|
+
'body': JSON[_0x373edc(_0x570275._0x272214)]({
|
|
771
|
+
..._0x498de9,
|
|
772
|
+
'idempotency_key': _0x2ff2ba('create_tasks', _0x498de9)
|
|
1152
773
|
}),
|
|
1153
|
-
'headers':
|
|
1154
|
-
'method':
|
|
774
|
+
'headers': _0x19d469,
|
|
775
|
+
'method': _0x373edc(_0x570275._0x33c989)
|
|
1155
776
|
});
|
|
1156
777
|
},
|
|
1157
|
-
async 'claimTasks'(
|
|
1158
|
-
const
|
|
1159
|
-
return
|
|
1160
|
-
'body': JSON[
|
|
1161
|
-
...
|
|
1162
|
-
'idempotency_key':
|
|
778
|
+
async 'claimTasks'(_0xe545b8) {
|
|
779
|
+
const _0x336634 = _0x25fa1f;
|
|
780
|
+
return _0x1d5524('/internal/agent/' + _0x18640a[_0x336634(0x30d)] + _0x336634(0x343), {
|
|
781
|
+
'body': JSON[_0x336634(0x22e)]({
|
|
782
|
+
..._0xe545b8,
|
|
783
|
+
'idempotency_key': _0x2ff2ba('claim_tasks', _0xe545b8)
|
|
1163
784
|
}),
|
|
1164
|
-
'headers':
|
|
1165
|
-
'method':
|
|
785
|
+
'headers': _0x19d469,
|
|
786
|
+
'method': _0x336634(0x205)
|
|
1166
787
|
});
|
|
1167
788
|
},
|
|
1168
|
-
async 'unclaimTask'(
|
|
1169
|
-
const
|
|
1170
|
-
return
|
|
1171
|
-
'body': JSON[
|
|
1172
|
-
...
|
|
1173
|
-
'idempotency_key':
|
|
789
|
+
async 'unclaimTask'(_0x127267) {
|
|
790
|
+
const _0x6a92a6 = _0x25fa1f;
|
|
791
|
+
return _0x1d5524(_0x6a92a6(_0x2fcc1a._0x22d1f4) + _0x18640a['agentId'] + _0x6a92a6(0x1df), {
|
|
792
|
+
'body': JSON[_0x6a92a6(0x22e)]({
|
|
793
|
+
..._0x127267,
|
|
794
|
+
'idempotency_key': _0x2ff2ba(_0x6a92a6(_0x2fcc1a._0x5ab86f), _0x127267)
|
|
1174
795
|
}),
|
|
1175
|
-
'headers':
|
|
1176
|
-
'method':
|
|
796
|
+
'headers': _0x19d469,
|
|
797
|
+
'method': _0x6a92a6(_0x2fcc1a._0x5e91e8)
|
|
1177
798
|
});
|
|
1178
799
|
},
|
|
1179
|
-
async 'updateTaskStatus'(
|
|
1180
|
-
const
|
|
1181
|
-
return
|
|
1182
|
-
'body': JSON[
|
|
1183
|
-
...
|
|
1184
|
-
'idempotency_key':
|
|
800
|
+
async 'updateTaskStatus'(_0x3c4f43) {
|
|
801
|
+
const _0x5374c6 = _0x25fa1f;
|
|
802
|
+
return _0x1d5524(_0x5374c6(0x326) + _0x18640a[_0x5374c6(_0x112c4c._0x53f9bb)] + _0x5374c6(0x1ce), {
|
|
803
|
+
'body': JSON[_0x5374c6(_0x112c4c._0x25780d)]({
|
|
804
|
+
..._0x3c4f43,
|
|
805
|
+
'idempotency_key': _0x2ff2ba(_0x5374c6(0x276), _0x3c4f43)
|
|
1185
806
|
}),
|
|
1186
|
-
'headers':
|
|
1187
|
-
'method':
|
|
807
|
+
'headers': _0x19d469,
|
|
808
|
+
'method': _0x5374c6(0x205)
|
|
1188
809
|
});
|
|
1189
810
|
},
|
|
1190
|
-
async 'uploadFile'(
|
|
1191
|
-
const
|
|
1192
|
-
if (
|
|
1193
|
-
throw new Error(
|
|
1194
|
-
const
|
|
1195
|
-
'body': JSON[
|
|
1196
|
-
'channel':
|
|
1197
|
-
'contentBase64':
|
|
1198
|
-
'contentType':
|
|
1199
|
-
'originalFilename':
|
|
811
|
+
async 'uploadFile'(_0x18b406) {
|
|
812
|
+
const _0xbf230a = _0x25fa1f, _0x16911e = await _0x4fc5f2(_0x18b406[_0xbf230a(_0x348c14._0x39f456)]);
|
|
813
|
+
if (_0x16911e[_0xbf230a(_0x348c14._0x17497a)])
|
|
814
|
+
throw new Error(_0xbf230a(0x1d2));
|
|
815
|
+
const _0x432c13 = await _0x1713b4('/internal/agent/' + _0x18640a['agentId'] + '/upload', {
|
|
816
|
+
'body': JSON['stringify']({
|
|
817
|
+
'channel': _0x16911e[_0xbf230a(_0x348c14._0x1029b3)],
|
|
818
|
+
'contentBase64': _0x18b406['contentBase64'],
|
|
819
|
+
'contentType': _0x18b406['contentType'],
|
|
820
|
+
'originalFilename': _0x18b406[_0xbf230a(_0x348c14._0x39d3f1)]
|
|
1200
821
|
}),
|
|
1201
|
-
'headers':
|
|
1202
|
-
'method':
|
|
822
|
+
'headers': _0x19d469,
|
|
823
|
+
'method': _0xbf230a(_0x348c14._0x25fd68)
|
|
1203
824
|
});
|
|
1204
825
|
return {
|
|
1205
|
-
'attachmentId':
|
|
1206
|
-
'filename':
|
|
1207
|
-
'sizeBytes':
|
|
826
|
+
'attachmentId': _0x432c13['data']?.['id'] ?? '',
|
|
827
|
+
'filename': _0x432c13[_0xbf230a(0x315)]?.[_0xbf230a(_0x348c14._0x53c451)] ?? _0x18b406[_0xbf230a(_0x348c14._0x39d3f1)],
|
|
828
|
+
'sizeBytes': _0x432c13['data']?.[_0xbf230a(0x1e3)] ?? 0x0
|
|
1208
829
|
};
|
|
1209
830
|
},
|
|
1210
|
-
async 'downloadAttachment'(
|
|
1211
|
-
const
|
|
1212
|
-
'headers':
|
|
1213
|
-
'method':
|
|
1214
|
-
}),
|
|
831
|
+
async 'downloadAttachment'(_0xe82468) {
|
|
832
|
+
const _0x1153a6 = _0x25fa1f, _0x525bc7 = await _0x1713b4(_0x1153a6(_0x105f0b._0x27f1e6) + _0xe82468, {
|
|
833
|
+
'headers': _0x19d469,
|
|
834
|
+
'method': _0x1153a6(_0x105f0b._0x1fb148)
|
|
835
|
+
}), _0xb7b87d = new AbortController(), _0x2d94d6 = setTimeout(() => _0xb7b87d[_0x1153a6(0x253)](), _0x57619c);
|
|
1215
836
|
try {
|
|
1216
|
-
const
|
|
1217
|
-
'headers':
|
|
837
|
+
const _0x7c3733 = await _0x4244b8(_0x403470 + _0x1153a6(0x28c) + _0xe82468 + _0x1153a6(0x224), {
|
|
838
|
+
'headers': _0x19d469,
|
|
1218
839
|
'method': 'GET',
|
|
1219
|
-
'signal':
|
|
840
|
+
'signal': _0xb7b87d[_0x1153a6(0x348)]
|
|
1220
841
|
});
|
|
1221
|
-
if (!
|
|
1222
|
-
throw new Error(
|
|
842
|
+
if (!_0x7c3733['ok'])
|
|
843
|
+
throw new Error('HTTP\x20' + _0x7c3733['status']);
|
|
1223
844
|
return {
|
|
1224
|
-
'contentType':
|
|
1225
|
-
'data': Buffer[
|
|
1226
|
-
'originalFilename':
|
|
845
|
+
'contentType': _0x525bc7[_0x1153a6(_0x105f0b._0x38b112)]?.[_0x1153a6(_0x105f0b._0x144e3b)] ?? _0x7c3733[_0x1153a6(0x29f)][_0x1153a6(_0x105f0b._0x309f4c)]('content-type') ?? _0x1153a6(0x263),
|
|
846
|
+
'data': Buffer[_0x1153a6(_0x105f0b._0x4711c6)](await _0x7c3733[_0x1153a6(_0x105f0b._0x4f7f0)]()),
|
|
847
|
+
'originalFilename': _0x525bc7[_0x1153a6(0x315)]?.[_0x1153a6(0x306)]
|
|
1227
848
|
};
|
|
1228
849
|
} finally {
|
|
1229
|
-
clearTimeout(
|
|
850
|
+
clearTimeout(_0x2d94d6);
|
|
1230
851
|
}
|
|
1231
852
|
},
|
|
1232
853
|
async 'listServer'() {
|
|
1233
|
-
return
|
|
854
|
+
return _0x14fe0f({ 'forceRefresh': !![] });
|
|
1234
855
|
},
|
|
1235
|
-
async 'readHistory'(
|
|
1236
|
-
const
|
|
1237
|
-
return
|
|
1238
|
-
'after':
|
|
1239
|
-
'before':
|
|
1240
|
-
'channelId':
|
|
1241
|
-
'channelTarget':
|
|
1242
|
-
'limit':
|
|
1243
|
-
'threadId':
|
|
856
|
+
async 'readHistory'(_0x2f809f) {
|
|
857
|
+
const _0x4d4ab4 = _0x25fa1f, _0x31a672 = await _0x4fc5f2(_0x2f809f[_0x4d4ab4(0x262)]);
|
|
858
|
+
return _0x4eb052({
|
|
859
|
+
'after': _0x2f809f[_0x4d4ab4(0x2ff)],
|
|
860
|
+
'before': _0x2f809f[_0x4d4ab4(_0x57f661._0x1638fa)],
|
|
861
|
+
'channelId': _0x31a672[_0x4d4ab4(_0x57f661._0x2a44e2)],
|
|
862
|
+
'channelTarget': _0x31a672['target'],
|
|
863
|
+
'limit': _0x2f809f['limit'],
|
|
864
|
+
'threadId': _0x31a672[_0x4d4ab4(0x29c)]
|
|
1244
865
|
});
|
|
1245
866
|
},
|
|
1246
|
-
'resolveTarget':
|
|
867
|
+
'resolveTarget': _0x4fc5f2,
|
|
1247
868
|
async 'checkMessages'() {
|
|
1248
|
-
const
|
|
1249
|
-
|
|
1250
|
-
const
|
|
1251
|
-
'headers':
|
|
1252
|
-
'method':
|
|
1253
|
-
}),
|
|
1254
|
-
let
|
|
1255
|
-
|
|
1256
|
-
|
|
869
|
+
const _0x4c2547 = { _0x715e82: 0x336 }, _0x4bb9bc = _0x25fa1f, _0x4a5342 = new URLSearchParams();
|
|
870
|
+
_0x4a5342[_0x4bb9bc(0x2d0)](_0x4bb9bc(_0x710285._0x34507b), String(_0xb843ec));
|
|
871
|
+
const _0x441b50 = _0x4a5342[_0x4bb9bc(_0x710285._0x1d0bfe)](), _0x3e2f27 = await _0x1713b4(_0x4bb9bc(_0x710285._0x43b59f) + _0x18640a['agentId'] + '/receive' + (_0x441b50 ? '?' + _0x441b50 : ''), {
|
|
872
|
+
'headers': _0x19d469,
|
|
873
|
+
'method': 'GET'
|
|
874
|
+
}), _0x151cd8 = _0x3e2f27[_0x4bb9bc(0x315)] ?? [], _0x493ae4 = _0x3e2f27['meta']?.['cursor'], _0x3a690e = _0x493ae4 !== void 0x0 ? Math[_0x4bb9bc(0x1de)](_0xb843ec, _0x493ae4) : _0x151cd8[_0x4bb9bc(0x27e)] > 0x0 ? Math[_0x4bb9bc(0x1de)](_0xb843ec, _0x151cd8[_0x151cd8[_0x4bb9bc(_0x710285._0x48c263)] - 0x1]['seq']) : _0xb843ec, _0x49bc75 = _0x151cd8[_0x4bb9bc(0x2a2)](_0x178621 => _0x178621[_0x4bb9bc(0x1f7)] === _0x4bb9bc(0x33d)), _0x1309cb = _0x5ebed2 === void 0x0 && _0x9aecc0;
|
|
875
|
+
let _0x3421c6 = await _0x14fe0f(), _0x1ab0b5 = new Map(_0x3421c6['channels'][_0x4bb9bc(_0x710285._0x752157)](_0x1acd03 => [
|
|
876
|
+
_0x1acd03['id'],
|
|
877
|
+
_0x1acd03
|
|
1257
878
|
]));
|
|
1258
|
-
const
|
|
1259
|
-
const
|
|
1260
|
-
return Boolean(
|
|
879
|
+
const _0xbd1555 = _0x49bc75[_0x4bb9bc(0x312)](_0x3292fb => {
|
|
880
|
+
const _0x39e13b = _0x4bb9bc, _0x11a614 = asRecord(_0x3292fb[_0x39e13b(_0x4c2547._0x715e82)]), _0x12785c = typeof _0x11a614?.[_0x39e13b(0x2da)] === _0x39e13b(0x2df) ? _0x11a614[_0x39e13b(0x2da)] : '';
|
|
881
|
+
return Boolean(_0x12785c) && !_0x1ab0b5[_0x39e13b(0x2b9)](_0x12785c);
|
|
1261
882
|
});
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
883
|
+
_0xbd1555 && (_0x3421c6 = await _0x14fe0f({ 'forceRefresh': !![] }), _0x1ab0b5 = new Map(_0x3421c6[_0x4bb9bc(_0x710285._0x3aa907)][_0x4bb9bc(_0x710285._0x752157)](_0x101d4d => [
|
|
884
|
+
_0x101d4d['id'],
|
|
885
|
+
_0x101d4d
|
|
1265
886
|
])));
|
|
1266
|
-
const
|
|
1267
|
-
for (const
|
|
1268
|
-
const
|
|
1269
|
-
if (!
|
|
887
|
+
const _0x22c3e3 = new Map();
|
|
888
|
+
for (const _0x3db531 of _0x49bc75) {
|
|
889
|
+
const _0x2aa844 = asRecord(_0x3db531[_0x4bb9bc(0x336)]), _0x39e235 = typeof _0x2aa844[_0x4bb9bc(_0x710285._0x3dfd51)] === _0x4bb9bc(0x2df) ? _0x2aa844[_0x4bb9bc(_0x710285._0x5be468)] : '';
|
|
890
|
+
if (!_0x39e235)
|
|
1270
891
|
continue;
|
|
1271
|
-
const
|
|
892
|
+
const _0x544ab5 = typeof _0x2aa844[_0x4bb9bc(_0x710285._0x3538ef)] === _0x4bb9bc(0x2df) ? _0x2aa844[_0x4bb9bc(0x29c)] : void 0x0, _0x390681 = typeof _0x2aa844['rootMessageId'] === _0x4bb9bc(0x2df) ? _0x2aa844[_0x4bb9bc(_0x710285._0x510ffe)] : void 0x0, _0x3ada6a = typeof _0x2aa844['threadNumber'] === 'number' && Number[_0x4bb9bc(0x212)](_0x2aa844[_0x4bb9bc(0x2d1)]) ? _0x2aa844[_0x4bb9bc(_0x710285._0x4fb134)] : void 0x0, _0x2be8f7 = Boolean(_0x544ab5 && (!_0x390681 || _0x3db531['aggregateId'] !== _0x390681)), _0x15f326 = _0x2be8f7 ? _0x39e235 + ':' + _0x544ab5 : _0x39e235, _0x1d55e1 = _0x22c3e3[_0x4bb9bc(0x22d)](_0x15f326) ?? {
|
|
1272
893
|
'aggregateIds': [],
|
|
1273
|
-
'channelId':
|
|
894
|
+
'channelId': _0x39e235,
|
|
1274
895
|
'entries': new Map(),
|
|
1275
|
-
'isThreadReply':
|
|
1276
|
-
'rootMessageId':
|
|
1277
|
-
'threadNumber':
|
|
1278
|
-
'threadId':
|
|
896
|
+
'isThreadReply': _0x2be8f7,
|
|
897
|
+
'rootMessageId': _0x390681,
|
|
898
|
+
'threadNumber': _0x3ada6a,
|
|
899
|
+
'threadId': _0x2be8f7 ? _0x544ab5 : void 0x0
|
|
1279
900
|
};
|
|
1280
|
-
|
|
1281
|
-
'payloadJson':
|
|
1282
|
-
'seq':
|
|
1283
|
-
}),
|
|
901
|
+
_0x1d55e1[_0x4bb9bc(0x2d1)] == null && _0x3ada6a != null && (_0x1d55e1['threadNumber'] = _0x3ada6a), !_0x1d55e1[_0x4bb9bc(_0x710285._0x508ba5)] && _0x390681 && (_0x1d55e1[_0x4bb9bc(_0x710285._0x508ba5)] = _0x390681), _0x1d55e1['aggregateIds'][_0x4bb9bc(_0x710285._0x3284ff)](_0x3db531[_0x4bb9bc(0x1ee)]), _0x1d55e1[_0x4bb9bc(0x227)]['set'](_0x3db531[_0x4bb9bc(_0x710285._0x2e8cd9)], {
|
|
902
|
+
'payloadJson': _0x3db531[_0x4bb9bc(_0x710285._0x2123d4)],
|
|
903
|
+
'seq': _0x3db531[_0x4bb9bc(0x32b)]
|
|
904
|
+
}), _0x22c3e3[_0x4bb9bc(0x2d0)](_0x15f326, _0x1d55e1);
|
|
1284
905
|
}
|
|
1285
|
-
const
|
|
1286
|
-
for (const
|
|
906
|
+
const _0x3b23a4 = [];
|
|
907
|
+
for (const _0x93b1fc of _0x22c3e3[_0x4bb9bc(_0x710285._0x598f47)]()) {
|
|
1287
908
|
const {
|
|
1288
|
-
channelId:
|
|
1289
|
-
threadId:
|
|
1290
|
-
rootMessageId:
|
|
1291
|
-
threadNumber:
|
|
1292
|
-
aggregateIds:
|
|
1293
|
-
isThreadReply:
|
|
1294
|
-
entries:
|
|
1295
|
-
} =
|
|
1296
|
-
'channelTarget':
|
|
1297
|
-
'rootMessageId':
|
|
1298
|
-
'threadId':
|
|
1299
|
-
'threadNumber':
|
|
1300
|
-
},
|
|
1301
|
-
'channelId':
|
|
1302
|
-
'channelTarget':
|
|
1303
|
-
'limit': Math[
|
|
1304
|
-
'threadId':
|
|
1305
|
-
}),
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
])),
|
|
1309
|
-
for (const
|
|
1310
|
-
if (!
|
|
909
|
+
channelId: _0x1b2a67,
|
|
910
|
+
threadId: _0x15379f,
|
|
911
|
+
rootMessageId: _0x4791be,
|
|
912
|
+
threadNumber: _0x203884,
|
|
913
|
+
aggregateIds: _0x2e4a7b,
|
|
914
|
+
isThreadReply: _0x3ff147,
|
|
915
|
+
entries: _0x29158c
|
|
916
|
+
} = _0x93b1fc, _0x3afd19 = _0x1ab0b5[_0x4bb9bc(_0x710285._0x122499)](_0x1b2a67), _0x3e9cad = _0x3afd19?.[_0x4bb9bc(_0x710285._0x32687f)] ?? _0x1b2a67, _0x2bde4c = _0x3afd19?.[_0x4bb9bc(_0x710285._0x181a3b)] === 'dm' ? _0x4bb9bc(_0x710285._0x2eab63) + _0x3e9cad : '#' + _0x3e9cad, _0x5da8a1 = {
|
|
917
|
+
'channelTarget': _0x2bde4c,
|
|
918
|
+
'rootMessageId': _0x4791be,
|
|
919
|
+
'threadId': _0x15379f,
|
|
920
|
+
'threadNumber': _0x203884
|
|
921
|
+
}, _0x2b58b1 = await _0x4eb052({
|
|
922
|
+
'channelId': _0x1b2a67,
|
|
923
|
+
'channelTarget': _0x2bde4c,
|
|
924
|
+
'limit': Math[_0x4bb9bc(_0x710285._0x230a5a)](_0x2e4a7b[_0x4bb9bc(_0x710285._0x48c263)], 0x32),
|
|
925
|
+
'threadId': _0x15379f
|
|
926
|
+
}), _0x1fafac = new Map(_0x2b58b1[_0x4bb9bc(0x2d9)][_0x4bb9bc(_0x710285._0x752157)](_0x2bdd7c => [
|
|
927
|
+
_0x2bdd7c[_0x4bb9bc(0x26f)],
|
|
928
|
+
_0x2bdd7c
|
|
929
|
+
])), _0x3ca0d8 = _0x15379f ? _0x39e3f2(_0x5da8a1) : _0x2bde4c, _0x5357d6 = _0x5ebed2 ? _0x3ff147 && _0x3aed5b(_0x5ebed2, _0x5da8a1) : !![], _0x435fcc = _0x3ff147 ? _0x5357d6 && _0x5ebed2 ? _0x5ebed2 : _0x3ca0d8 : _0x2bde4c;
|
|
930
|
+
for (const _0xa17305 of _0x2e4a7b) {
|
|
931
|
+
if (!_0x5357d6)
|
|
1311
932
|
continue;
|
|
1312
|
-
const
|
|
1313
|
-
if (
|
|
933
|
+
const _0x596f27 = _0x29158c[_0x4bb9bc(_0x710285._0x38b445)](_0xa17305), _0x28500f = _0x596f27 ? asRecord(_0x596f27[_0x4bb9bc(0x336)]) : void 0x0, _0xc7b251 = _0x28500f?.['taskDeliveryMode'] === 'targeted';
|
|
934
|
+
if (_0x1309cb && _0xc7b251)
|
|
1314
935
|
continue;
|
|
1315
|
-
const
|
|
1316
|
-
if (
|
|
1317
|
-
|
|
1318
|
-
'attachments':
|
|
1319
|
-
'content':
|
|
1320
|
-
'createdAt':
|
|
1321
|
-
'
|
|
1322
|
-
'
|
|
1323
|
-
'
|
|
1324
|
-
'
|
|
1325
|
-
|
|
936
|
+
const _0x1121fe = _0x1fafac[_0x4bb9bc(0x22d)](_0xa17305);
|
|
937
|
+
if (_0x1121fe) {
|
|
938
|
+
_0x3b23a4[_0x4bb9bc(0x2f3)]({
|
|
939
|
+
'attachments': _0x1121fe[_0x4bb9bc(0x32c)],
|
|
940
|
+
'content': _0x1121fe['content'],
|
|
941
|
+
'createdAt': _0x1121fe['createdAt'],
|
|
942
|
+
..._0x1121fe[_0x4bb9bc(_0x710285._0x1f571e)] ? { 'kind': _0x1121fe[_0x4bb9bc(0x20f)] } : {},
|
|
943
|
+
'messageId': _0x1121fe[_0x4bb9bc(0x26f)],
|
|
944
|
+
'senderName': _0x1121fe[_0x4bb9bc(_0x710285._0x32bfc2)],
|
|
945
|
+
'senderType': _0x1121fe['senderType'],
|
|
946
|
+
'target': _0x435fcc,
|
|
947
|
+
..._0xc7b251 ? { 'targetedTask': !![] } : {}
|
|
1326
948
|
});
|
|
1327
949
|
continue;
|
|
1328
950
|
}
|
|
1329
|
-
if (
|
|
1330
|
-
const
|
|
1331
|
-
|
|
951
|
+
if (_0x596f27) {
|
|
952
|
+
const _0x2e4389 = typeof _0x28500f?.[_0x4bb9bc(0x2ca)] === _0x4bb9bc(_0x710285._0x5db9f9) ? _0x28500f[_0x4bb9bc(_0x710285._0x2f9092)] : '', _0x450ff1 = typeof _0x28500f?.['bodyMarkdown'] === _0x4bb9bc(_0x710285._0x401900) ? _0x28500f[_0x4bb9bc(_0x710285._0x23df8b)] : '', _0x33bbc2 = typeof _0x28500f?.[_0x4bb9bc(0x20f)] === _0x4bb9bc(0x2df) && _0x28500f[_0x4bb9bc(0x20f)] !== 'chat' ? _0x28500f[_0x4bb9bc(_0x710285._0x181a3b)] : void 0x0;
|
|
953
|
+
_0x2e4389 && _0x450ff1 && _0x3b23a4['push']({
|
|
1332
954
|
'attachments': [],
|
|
1333
|
-
'content':
|
|
1334
|
-
'createdAt': new Date()[
|
|
1335
|
-
'
|
|
1336
|
-
'
|
|
1337
|
-
'
|
|
1338
|
-
'
|
|
1339
|
-
|
|
955
|
+
'content': _0x450ff1,
|
|
956
|
+
'createdAt': new Date()[_0x4bb9bc(0x258)](),
|
|
957
|
+
..._0x33bbc2 ? { 'kind': _0x33bbc2 } : {},
|
|
958
|
+
'messageId': _0xa17305,
|
|
959
|
+
'senderName': _0x2e4389,
|
|
960
|
+
'senderType': _0x39491e(_0x2e4389, _0x3421c6),
|
|
961
|
+
'target': _0x435fcc,
|
|
962
|
+
..._0xc7b251 ? { 'targetedTask': !![] } : {}
|
|
1340
963
|
});
|
|
1341
964
|
}
|
|
1342
965
|
}
|
|
1343
966
|
}
|
|
1344
|
-
if (
|
|
1345
|
-
if (
|
|
1346
|
-
await
|
|
967
|
+
if (_0x3a690e > 0x0) {
|
|
968
|
+
if (_0x2d61a5)
|
|
969
|
+
await _0x90f970(_0x3a690e);
|
|
1347
970
|
else
|
|
1348
|
-
|
|
971
|
+
_0x5c2d8d && await _0x436c46(_0x3a690e);
|
|
1349
972
|
}
|
|
1350
|
-
return
|
|
973
|
+
return _0x3a690e > _0xb843ec && (_0xb843ec = _0x3a690e), { 'messages': _0x5ebed2 ? _0x3b23a4 : _0x1309cb ? _0x3b23a4['filter'](_0x1ab331 => _0x1ab331[_0x4bb9bc(0x2f5)] !== !![]) : _0x3b23a4 };
|
|
1351
974
|
}
|
|
1352
975
|
};
|
|
1353
976
|
}
|
|
1354
|
-
function
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
_0x122329 += '%' + ('00' + _0x3ec660['charCodeAt'](_0x469d99)['toString'](0x10))['slice'](-0x2);
|
|
1367
|
-
}
|
|
1368
|
-
return decodeURIComponent(_0x122329);
|
|
1369
|
-
};
|
|
1370
|
-
_0x4b08['iqEhYS'] = _0x2f7ca9, _0x4b08['DHIjiy'] = {}, _0x4b08['sMthJs'] = !![];
|
|
1371
|
-
}
|
|
1372
|
-
const _0x5aa2eb = _0x4d0c94[0x0], _0x35b899 = _0x33b726 + _0x5aa2eb, _0x1399c3 = _0x4b08['DHIjiy'][_0x35b899];
|
|
1373
|
-
return !_0x1399c3 ? (_0x4b0847 = _0x4b08['iqEhYS'](_0x4b0847), _0x4b08['DHIjiy'][_0x35b899] = _0x4b0847) : _0x4b0847 = _0x1399c3, _0x4b0847;
|
|
1374
|
-
}
|
|
1375
|
-
function toLocalTime(_0x38b8a4) {
|
|
1376
|
-
const _0x3e7266 = {
|
|
1377
|
-
_0x5a5862: 0x17b,
|
|
1378
|
-
_0x5bf7fc: 0x1ec,
|
|
1379
|
-
_0x7f32b: 0x186
|
|
1380
|
-
}, _0x56e538 = _0x42cca9, _0x574ad7 = new Date(_0x38b8a4);
|
|
1381
|
-
if (Number['isNaN'](_0x574ad7['getTime']()))
|
|
1382
|
-
return _0x38b8a4;
|
|
1383
|
-
const _0x5353c0 = _0x2f8f4f => String(_0x2f8f4f)[_0x56e538(0x1a5)](0x2, '0');
|
|
1384
|
-
return _0x574ad7['getFullYear']() + '-' + _0x5353c0(_0x574ad7[_0x56e538(0x13b)]() + 0x1) + '-' + _0x5353c0(_0x574ad7[_0x56e538(_0x3e7266._0x5a5862)]()) + '\x20' + _0x5353c0(_0x574ad7[_0x56e538(_0x3e7266._0x5bf7fc)]()) + ':' + _0x5353c0(_0x574ad7[_0x56e538(_0x3e7266._0x7f32b)]()) + ':' + _0x5353c0(_0x574ad7[_0x56e538(0x103)]());
|
|
977
|
+
function toLocalTime(_0x1363ec) {
|
|
978
|
+
const _0x57bb50 = {
|
|
979
|
+
_0x2fad4d: 0x2e6,
|
|
980
|
+
_0x148149: 0x300,
|
|
981
|
+
_0x22eac6: 0x264,
|
|
982
|
+
_0x42394c: 0x22c,
|
|
983
|
+
_0x359d5c: 0x2ac
|
|
984
|
+
}, _0x4c19ea = _0x15c9cf, _0x1a6fcc = new Date(_0x1363ec);
|
|
985
|
+
if (Number[_0x4c19ea(0x305)](_0x1a6fcc[_0x4c19ea(0x2a6)]()))
|
|
986
|
+
return _0x1363ec;
|
|
987
|
+
const _0x6f1d03 = _0xc94c19 => String(_0xc94c19)[_0x4c19ea(0x351)](0x2, '0');
|
|
988
|
+
return _0x1a6fcc[_0x4c19ea(_0x57bb50._0x2fad4d)]() + '-' + _0x6f1d03(_0x1a6fcc[_0x4c19ea(_0x57bb50._0x148149)]() + 0x1) + '-' + _0x6f1d03(_0x1a6fcc[_0x4c19ea(_0x57bb50._0x22eac6)]()) + '\x20' + _0x6f1d03(_0x1a6fcc[_0x4c19ea(0x214)]()) + ':' + _0x6f1d03(_0x1a6fcc[_0x4c19ea(_0x57bb50._0x42394c)]()) + ':' + _0x6f1d03(_0x1a6fcc[_0x4c19ea(_0x57bb50._0x359d5c)]());
|
|
1385
989
|
}
|
|
1386
|
-
function formatAttachmentSuffix(
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
990
|
+
function formatAttachmentSuffix(_0x5737f8) {
|
|
991
|
+
const _0x226b77 = {
|
|
992
|
+
_0x5daa6: 0x27e,
|
|
993
|
+
_0x45f1a7: 0x2e4,
|
|
994
|
+
_0x1133f4: 0x2a8,
|
|
995
|
+
_0x111f16: 0x1db
|
|
996
|
+
}, _0x750807 = _0x15c9cf;
|
|
997
|
+
if (!_0x5737f8 || _0x5737f8[_0x750807(0x27e)] === 0x0)
|
|
1393
998
|
return '';
|
|
1394
|
-
return '\x20[' +
|
|
999
|
+
return '\x20[' + _0x5737f8[_0x750807(_0x226b77._0x5daa6)] + _0x750807(_0x226b77._0x45f1a7) + (_0x5737f8['length'] > 0x1 ? 's' : '') + ':\x20' + _0x5737f8[_0x750807(0x352)](_0x3f7ecc => _0x3f7ecc[_0x750807(0x2b5)] + _0x750807(0x1fe) + _0x3f7ecc['id'] + ')')[_0x750807(_0x226b77._0x1133f4)](',\x20') + _0x750807(_0x226b77._0x111f16);
|
|
1395
1000
|
}
|
|
1396
|
-
function formatCheckMessages(
|
|
1397
|
-
const
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
},
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
_0x475f5b: 0x1e8
|
|
1411
|
-
}, _0x3fa6bb = _0x42cca9;
|
|
1412
|
-
if (_0x269c2c[_0x3fa6bb(0x269)] === 0x0)
|
|
1413
|
-
return _0x3fa6bb(_0x56dd5f._0x3b0b31);
|
|
1414
|
-
return _0x269c2c[_0x3fa6bb(0x1c2)](_0x3593f2 => {
|
|
1415
|
-
const _0x44a9f2 = _0x3fa6bb, _0x5278f7 = _0x3593f2[_0x44a9f2(_0x4c7cce._0x2d2711)] === _0x44a9f2(_0x4c7cce._0x10fe6d) ? _0x44a9f2(_0x4c7cce._0x26e455) : '';
|
|
1416
|
-
return _0x44a9f2(0x25b) + _0x3593f2[_0x44a9f2(0x146)] + _0x44a9f2(_0x4c7cce._0x21f476) + _0x3593f2[_0x44a9f2(_0x4c7cce._0x310e4a)][_0x44a9f2(_0x4c7cce._0x4cfc12)](0x0, 0x8) + _0x44a9f2(_0x4c7cce._0x314131) + toLocalTime(_0x3593f2[_0x44a9f2(_0x4c7cce._0x1c5b48)]) + _0x5278f7 + _0x44a9f2(_0x4c7cce._0x13e2c4) + _0x3593f2[_0x44a9f2(_0x4c7cce._0x475f5b)] + ':\x20' + _0x3593f2[_0x44a9f2(0x23d)] + formatAttachmentSuffix(_0x3593f2[_0x44a9f2(0x101)]);
|
|
1417
|
-
})[_0x3fa6bb(_0x56dd5f._0x1bd140)]('\x0a');
|
|
1001
|
+
function formatCheckMessages(_0x218b2c) {
|
|
1002
|
+
const _0x5de4b6 = {
|
|
1003
|
+
_0x4588ad: 0x27e,
|
|
1004
|
+
_0x269091: 0x352
|
|
1005
|
+
}, _0x45368f = {
|
|
1006
|
+
_0x4ed938: 0x2a4,
|
|
1007
|
+
_0x58474c: 0x286
|
|
1008
|
+
}, _0x4a21ec = _0x15c9cf;
|
|
1009
|
+
if (_0x218b2c[_0x4a21ec(_0x5de4b6._0x4588ad)] === 0x0)
|
|
1010
|
+
return _0x4a21ec(0x353);
|
|
1011
|
+
return _0x218b2c[_0x4a21ec(_0x5de4b6._0x269091)](_0x493cb3 => {
|
|
1012
|
+
const _0x37ed04 = _0x4a21ec, _0xb6a0c2 = _0x493cb3[_0x37ed04(0x1d6)] === _0x37ed04(_0x45368f._0x4ed938) ? _0x37ed04(0x21e) : '', _0x22ca4f = _0x493cb3[_0x37ed04(0x20f)] && _0x493cb3['kind'] !== 'chat' ? _0x37ed04(0x2db) + _0x493cb3['kind'] : '';
|
|
1013
|
+
return _0x37ed04(_0x45368f._0x58474c) + _0x493cb3[_0x37ed04(0x1dd)] + '\x20msg=' + _0x493cb3[_0x37ed04(0x26f)][_0x37ed04(0x303)](0x0, 0x8) + _0x37ed04(0x21b) + toLocalTime(_0x493cb3['createdAt']) + _0xb6a0c2 + _0x22ca4f + _0x37ed04(0x311) + _0x493cb3[_0x37ed04(0x228)] + ':\x20' + _0x493cb3[_0x37ed04(0x24b)] + formatAttachmentSuffix(_0x493cb3[_0x37ed04(0x32c)]);
|
|
1014
|
+
})[_0x4a21ec(0x2a8)]('\x0a');
|
|
1418
1015
|
}
|
|
1419
|
-
function formatHistory(
|
|
1420
|
-
const
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1016
|
+
function formatHistory(_0x22db53) {
|
|
1017
|
+
const _0x26d9e9 = {
|
|
1018
|
+
_0x19ee6c: 0x2d9,
|
|
1019
|
+
_0x5626c9: 0x27e,
|
|
1020
|
+
_0x173b3c: 0x29e,
|
|
1021
|
+
_0x59ead6: 0x262,
|
|
1022
|
+
_0x3dcb56: 0x2a7,
|
|
1023
|
+
_0x571e69: 0x2d9,
|
|
1024
|
+
_0x46a4a9: 0x28d,
|
|
1025
|
+
_0x216648: 0x2d9,
|
|
1026
|
+
_0xc6716b: 0x27c
|
|
1027
|
+
}, _0x23e219 = {
|
|
1028
|
+
_0x15f599: 0x1d6,
|
|
1029
|
+
_0x3db72c: 0x21e,
|
|
1030
|
+
_0x247361: 0x20f,
|
|
1031
|
+
_0x5a32b0: 0x2bd,
|
|
1032
|
+
_0x6da220: 0x26f,
|
|
1033
|
+
_0x4853d7: 0x2e9,
|
|
1034
|
+
_0x403ea4: 0x228,
|
|
1035
|
+
_0x4185ad: 0x32c
|
|
1036
|
+
}, _0x174803 = _0x15c9cf;
|
|
1037
|
+
if (_0x22db53[_0x174803(_0x26d9e9._0x19ee6c)][_0x174803(_0x26d9e9._0x5626c9)] === 0x0)
|
|
1038
|
+
return _0x174803(_0x26d9e9._0x173b3c) + _0x22db53[_0x174803(_0x26d9e9._0x59ead6)] + _0x174803(_0x26d9e9._0x3dcb56);
|
|
1039
|
+
const _0x15499e = _0x22db53[_0x174803(_0x26d9e9._0x571e69)][_0x174803(0x352)](_0x24a022 => {
|
|
1040
|
+
const _0x36c1da = _0x174803, _0x4ba5c3 = _0x24a022[_0x36c1da(_0x23e219._0x15f599)] === _0x36c1da(0x2a4) ? _0x36c1da(_0x23e219._0x3db72c) : '', _0x49c1a9 = _0x24a022[_0x36c1da(_0x23e219._0x247361)] && _0x24a022[_0x36c1da(0x20f)] !== 'chat' ? '\x20kind=' + _0x24a022[_0x36c1da(0x20f)] : '';
|
|
1041
|
+
return '[seq=' + _0x24a022['seq'] + _0x36c1da(_0x23e219._0x5a32b0) + _0x24a022[_0x36c1da(_0x23e219._0x6da220)] + _0x36c1da(0x21b) + toLocalTime(_0x24a022[_0x36c1da(_0x23e219._0x4853d7)]) + _0x4ba5c3 + _0x49c1a9 + ']\x20@' + _0x24a022[_0x36c1da(_0x23e219._0x403ea4)] + ':\x20' + _0x24a022[_0x36c1da(0x24b)] + formatAttachmentSuffix(_0x24a022[_0x36c1da(_0x23e219._0x4185ad)]);
|
|
1042
|
+
})[_0x174803(0x2a8)]('\x0a'), _0x3f541d = _0x22db53[_0x174803(0x2ce)] && _0x22db53[_0x174803(_0x26d9e9._0x46a4a9)] ? _0x174803(0x33f) + _0x22db53['messages'][_0x174803(0x27e)] + _0x174803(0x2e1) + _0x22db53[_0x174803(_0x26d9e9._0x46a4a9)] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1043
|
+
return _0x174803(0x29e) + _0x22db53['channel'] + '\x20(' + _0x22db53[_0x174803(_0x26d9e9._0x216648)][_0x174803(_0x26d9e9._0x5626c9)] + _0x174803(_0x26d9e9._0xc6716b) + _0x15499e + _0x3f541d;
|
|
1442
1044
|
}
|
|
1443
|
-
function formatServerDirectory(
|
|
1444
|
-
const
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
_0x54d1b5: 0x23a
|
|
1455
|
-
}, _0x150ec7 = _0x42cca9, _0x39b4ce = _0x5f2d5f[_0x150ec7(_0x38ae63._0x40263c)]['length'] > 0x0 ? _0x5f2d5f[_0x150ec7(0x167)][_0x150ec7(_0x38ae63._0x4a8b89)](_0x31cbe1 => _0x31cbe1[_0x150ec7(0x1fa)] ? '-\x20#' + _0x31cbe1[_0x150ec7(0x202)] + _0x150ec7(0x195) + _0x31cbe1[_0x150ec7(0x1fa)] : _0x150ec7(0x114) + _0x31cbe1[_0x150ec7(0x202)])['join']('\x0a') : _0x150ec7(_0x38ae63._0x2c1730), _0x207e06 = _0x5f2d5f[_0x150ec7(0x241)][_0x150ec7(0x269)] > 0x0 ? _0x5f2d5f[_0x150ec7(_0x38ae63._0x37d9f8)][_0x150ec7(0x1c2)](_0x19ef0a => '-\x20@' + _0x19ef0a['name'])[_0x150ec7(_0x38ae63._0x5b4fbb)]('\x0a') : _0x150ec7(_0x38ae63._0x25f95e), _0x6602db = _0x5f2d5f[_0x150ec7(_0x38ae63._0x41c43c)][_0x150ec7(_0x38ae63._0x27bc0f)] > 0x0 ? _0x5f2d5f[_0x150ec7(0x220)]['map'](_0x45e425 => _0x150ec7(0x1b5) + _0x45e425[_0x150ec7(0x202)])[_0x150ec7(0x201)]('\x0a') : _0x150ec7(0x164);
|
|
1045
|
+
function formatServerDirectory(_0xa86a49) {
|
|
1046
|
+
const _0x4294a5 = {
|
|
1047
|
+
_0x396c4e: 0x2b4,
|
|
1048
|
+
_0x1ca34b: 0x352,
|
|
1049
|
+
_0x4cd78a: 0x1d7,
|
|
1050
|
+
_0x3e68e3: 0x2a8,
|
|
1051
|
+
_0xf39a2a: 0x27e,
|
|
1052
|
+
_0x218faa: 0x33a,
|
|
1053
|
+
_0x52690c: 0x2d5,
|
|
1054
|
+
_0x3ba3ba: 0x28e
|
|
1055
|
+
}, _0x3f6e06 = _0x15c9cf, _0x2bdbb2 = _0xa86a49['channels'][_0x3f6e06(0x27e)] > 0x0 ? _0xa86a49[_0x3f6e06(_0x4294a5._0x396c4e)][_0x3f6e06(_0x4294a5._0x1ca34b)](_0x4915f1 => _0x4915f1[_0x3f6e06(0x1c8)] ? _0x3f6e06(0x2b6) + _0x4915f1['name'] + _0x3f6e06(0x20e) + _0x4915f1[_0x3f6e06(0x1c8)] : _0x3f6e06(0x2b6) + _0x4915f1['name'])['join']('\x0a') : _0x3f6e06(0x328), _0x2b7525 = _0xa86a49[_0x3f6e06(_0x4294a5._0x4cd78a)][_0x3f6e06(0x27e)] > 0x0 ? _0xa86a49['agents'][_0x3f6e06(0x352)](_0x3a791f => _0x3f6e06(0x1fa) + _0x3a791f['name'])[_0x3f6e06(_0x4294a5._0x3e68e3)]('\x0a') : _0x3f6e06(0x328), _0xf753f = _0xa86a49['humans'][_0x3f6e06(_0x4294a5._0xf39a2a)] > 0x0 ? _0xa86a49['humans']['map'](_0x1bc15c => _0x3f6e06(0x1fa) + _0x1bc15c[_0x3f6e06(0x2c8)])[_0x3f6e06(_0x4294a5._0x3e68e3)]('\x0a') : _0x3f6e06(0x328);
|
|
1456
1056
|
return [
|
|
1457
|
-
|
|
1057
|
+
_0x3f6e06(_0x4294a5._0x218faa) + _0xa86a49[_0x3f6e06(0x345)],
|
|
1458
1058
|
'',
|
|
1459
|
-
|
|
1460
|
-
|
|
1059
|
+
_0x3f6e06(_0x4294a5._0x52690c),
|
|
1060
|
+
_0x2bdbb2,
|
|
1461
1061
|
'',
|
|
1462
|
-
|
|
1463
|
-
|
|
1062
|
+
'###\x20Agents',
|
|
1063
|
+
_0x2b7525,
|
|
1464
1064
|
'',
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
][
|
|
1065
|
+
_0x3f6e06(_0x4294a5._0x3ba3ba),
|
|
1066
|
+
_0xf753f
|
|
1067
|
+
][_0x3f6e06(0x2a8)]('\x0a');
|
|
1468
1068
|
}
|
|
1469
|
-
function formatUploadResult(
|
|
1470
|
-
const
|
|
1471
|
-
|
|
1069
|
+
function formatUploadResult(_0xca6317) {
|
|
1070
|
+
const _0x3fdd08 = {
|
|
1071
|
+
_0x15789b: 0x1e3,
|
|
1072
|
+
_0x3659cc: 0x217
|
|
1073
|
+
}, _0x1319fa = _0x15c9cf;
|
|
1074
|
+
return _0x1319fa(0x20a) + _0xca6317[_0x1319fa(0x2b5)] + '\x20(' + (_0xca6317[_0x1319fa(_0x3fdd08._0x15789b)] / 0x400)[_0x1319fa(0x313)](0x1) + _0x1319fa(_0x3fdd08._0x3659cc) + _0xca6317[_0x1319fa(0x344)] + _0x1319fa(0x339);
|
|
1472
1075
|
}
|
|
1473
|
-
function formatViewFileResult(
|
|
1474
|
-
const
|
|
1475
|
-
return
|
|
1076
|
+
function formatViewFileResult(_0x5aaf3b, _0x3fb9fd) {
|
|
1077
|
+
const _0x191d03 = { _0x281bb4: 0x2f8 }, _0x38678e = _0x15c9cf;
|
|
1078
|
+
return _0x3fb9fd ? _0x38678e(_0x191d03._0x281bb4) + _0x5aaf3b : _0x38678e(0x2e5) + _0x5aaf3b;
|
|
1476
1079
|
}
|
|
1477
|
-
function formatTaskList(
|
|
1478
|
-
const
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
return _0x975fee(_0x43922e._0x428e0c);
|
|
1490
|
-
return _0x3201c2[_0x975fee(0x1c2)](_0x4d0d86 => {
|
|
1491
|
-
const _0x56a360 = _0x975fee, _0x13cefa = _0x4d0d86[_0x56a360(_0x304da3._0x48f2da)] == null ? _0x56a360(0xf4) : '#' + _0x4d0d86[_0x56a360(_0x304da3._0x48f2da)], _0x35f8ec = _0x4d0d86[_0x56a360(0x153)] ? _0x56a360(0x1bf) + _0x4d0d86[_0x56a360(_0x304da3._0x464403)] : '', _0x28039d = _0x481827 && _0x4d0d86[_0x56a360(_0x304da3._0x48f2da)] != null && _0x481827['has'](_0x4d0d86[_0x56a360(_0x304da3._0x358455)]) ? _0x56a360(_0x304da3._0x50be87) : '';
|
|
1492
|
-
return _0x13cefa + '\x20[' + _0x4d0d86[_0x56a360(_0x304da3._0x4b63e8)] + ']\x20' + _0x4d0d86[_0x56a360(0x24f)] + _0x35f8ec + _0x28039d;
|
|
1493
|
-
})[_0x975fee(_0x43922e._0x2ce945)]('\x0a');
|
|
1080
|
+
function formatTaskList(_0x1ec5b9, _0x4d406e) {
|
|
1081
|
+
const _0x12632c = { _0x3bb31f: 0x27e }, _0x459825 = {
|
|
1082
|
+
_0x5bc2a9: 0x1e1,
|
|
1083
|
+
_0xe4d3ab: 0x26e,
|
|
1084
|
+
_0x26aae5: 0x1ff
|
|
1085
|
+
}, _0x4cc026 = _0x15c9cf;
|
|
1086
|
+
if (_0x1ec5b9[_0x4cc026(_0x12632c._0x3bb31f)] === 0x0)
|
|
1087
|
+
return _0x4cc026(0x267);
|
|
1088
|
+
return _0x1ec5b9[_0x4cc026(0x352)](_0x16e6c9 => {
|
|
1089
|
+
const _0x1fe348 = _0x4cc026, _0x3f62e2 = _0x16e6c9[_0x1fe348(0x282)] == null ? _0x1fe348(_0x459825._0x5bc2a9) : '#' + _0x16e6c9[_0x1fe348(0x282)], _0x8fb4b5 = _0x16e6c9[_0x1fe348(0x26f)] ? _0x1fe348(0x216) + _0x16e6c9['messageId'] : '', _0x5b6be1 = _0x4d406e && _0x16e6c9[_0x1fe348(0x282)] != null && _0x4d406e[_0x1fe348(0x2b9)](_0x16e6c9[_0x1fe348(0x282)]) ? _0x1fe348(_0x459825._0xe4d3ab) : '';
|
|
1090
|
+
return _0x3f62e2 + '\x20[' + _0x16e6c9[_0x1fe348(_0x459825._0x26aae5)] + ']\x20' + _0x16e6c9[_0x1fe348(0x2ba)] + _0x8fb4b5 + _0x5b6be1;
|
|
1091
|
+
})[_0x4cc026(0x2a8)]('\x0a');
|
|
1494
1092
|
}
|
|
1495
|
-
function formatCreatedTasks(
|
|
1496
|
-
const
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
},
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
return _0x1b8195['map'](_0x1f718a => {
|
|
1507
|
-
const _0x63d820 = _0x4fed98, _0x555dd3 = _0x1f718a[_0x63d820(0x222)] == null ? '(legacy)' : '#' + _0x1f718a['taskNumber'];
|
|
1508
|
-
return _0x555dd3 + '\x20' + _0x1f718a[_0x63d820(_0x5cb067._0x165027)] + _0x63d820(_0x5cb067._0x24c980) + _0x1f718a[_0x63d820(_0x5cb067._0x1e871c)];
|
|
1509
|
-
})[_0x4fed98(_0x5e6a5d._0x1f5112)]('\x0a');
|
|
1093
|
+
function formatCreatedTasks(_0x44fc98) {
|
|
1094
|
+
const _0x31b351 = {
|
|
1095
|
+
_0x590151: 0x282,
|
|
1096
|
+
_0x4f29c5: 0x26f
|
|
1097
|
+
}, _0x6a16f9 = _0x15c9cf;
|
|
1098
|
+
if (_0x44fc98[_0x6a16f9(0x27e)] === 0x0)
|
|
1099
|
+
return _0x6a16f9(0x34a);
|
|
1100
|
+
return _0x44fc98[_0x6a16f9(0x352)](_0x223b91 => {
|
|
1101
|
+
const _0x5de0a4 = _0x6a16f9, _0x4a55b9 = _0x223b91[_0x5de0a4(_0x31b351._0x590151)] == null ? '(legacy)' : '#' + _0x223b91['taskNumber'];
|
|
1102
|
+
return _0x4a55b9 + '\x20' + _0x223b91[_0x5de0a4(0x2ba)] + _0x5de0a4(0x216) + _0x223b91[_0x5de0a4(_0x31b351._0x4f29c5)];
|
|
1103
|
+
})[_0x6a16f9(0x2a8)]('\x0a');
|
|
1510
1104
|
}
|
|
1511
|
-
function formatClaimTaskResults(
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
},
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
][_0x3b29a8(0x258)](Boolean)[_0x3b29a8(_0x1cbd8f._0x2bfbe6)]('\x20');
|
|
1545
|
-
return _0x15936e + _0x3b29a8(0x214) + _0x55c385 + '\x20' + _0x50300d + '\x0a⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Worker\x20handles\x20execution\x20end-to-end.';
|
|
1105
|
+
function formatClaimTaskResults(_0x2ab3d8) {
|
|
1106
|
+
const _0x213c3f = {
|
|
1107
|
+
_0x3769a8: 0x27e,
|
|
1108
|
+
_0x58b776: 0x2a8
|
|
1109
|
+
}, _0x4350c3 = {
|
|
1110
|
+
_0x11cdde: 0x216,
|
|
1111
|
+
_0x57d2a5: 0x206,
|
|
1112
|
+
_0x43ef90: 0x2f6,
|
|
1113
|
+
_0x3121bc: 0x2af,
|
|
1114
|
+
_0xb38542: 0x1f0,
|
|
1115
|
+
_0x1daea4: 0x2a2,
|
|
1116
|
+
_0x4f1175: 0x2a8,
|
|
1117
|
+
_0x4999ec: 0x21c,
|
|
1118
|
+
_0x1a213f: 0x21c,
|
|
1119
|
+
_0x1fde04: 0x26f,
|
|
1120
|
+
_0x3f135b: 0x273,
|
|
1121
|
+
_0x147113: 0x291
|
|
1122
|
+
}, _0x548174 = _0x15c9cf;
|
|
1123
|
+
if (_0x2ab3d8[_0x548174(_0x213c3f._0x3769a8)] === 0x0)
|
|
1124
|
+
return _0x548174(0x316);
|
|
1125
|
+
return _0x2ab3d8['map'](_0x506558 => {
|
|
1126
|
+
const _0x3749ac = _0x548174;
|
|
1127
|
+
if (_0x506558[_0x3749ac(0x293)]) {
|
|
1128
|
+
const _0x49102e = _0x506558['taskNumber'] == null ? '(legacy)' : '#' + _0x506558[_0x3749ac(0x282)], _0x527385 = _0x506558['messageId'] ? _0x3749ac(_0x4350c3._0x11cdde) + _0x506558['messageId'] : '';
|
|
1129
|
+
if (_0x506558[_0x3749ac(_0x4350c3._0x57d2a5)]) {
|
|
1130
|
+
const _0x543f4a = [
|
|
1131
|
+
_0x3749ac(0x2b2),
|
|
1132
|
+
_0x506558['stopMain'] ? _0x3749ac(_0x4350c3._0x43ef90) : null,
|
|
1133
|
+
_0x506558[_0x3749ac(_0x4350c3._0x3121bc)] ? 'executionMode=' + _0x506558[_0x3749ac(0x2af)] : null,
|
|
1134
|
+
_0x506558[_0x3749ac(_0x4350c3._0xb38542)] ? _0x3749ac(0x277) + _0x506558[_0x3749ac(0x1f0)] : null,
|
|
1135
|
+
_0x506558[_0x3749ac(0x302)] ? _0x3749ac(0x21f) + _0x506558[_0x3749ac(0x302)] : null
|
|
1136
|
+
][_0x3749ac(_0x4350c3._0x1daea4)](Boolean)[_0x3749ac(_0x4350c3._0x4f1175)]('\x20');
|
|
1137
|
+
return _0x49102e + _0x3749ac(_0x4350c3._0x4999ec) + _0x527385 + '\x20' + _0x543f4a + _0x3749ac(0x2d4);
|
|
1546
1138
|
}
|
|
1547
|
-
const
|
|
1548
|
-
return
|
|
1139
|
+
const _0x3e41ed = _0x506558['workerHandoffError'] ? '\x20workerHandoff=false\x20error=' + _0x506558['workerHandoffError'] : '';
|
|
1140
|
+
return _0x49102e + _0x3749ac(_0x4350c3._0x1a213f) + _0x527385 + _0x3e41ed;
|
|
1141
|
+
}
|
|
1142
|
+
const _0x2ac0ec = _0x506558[_0x3749ac(0x282)] == null ? _0x506558[_0x3749ac(_0x4350c3._0x1fde04)] ?? _0x3749ac(_0x4350c3._0x3f135b) : '#' + _0x506558['taskNumber'];
|
|
1143
|
+
return _0x2ac0ec + _0x3749ac(_0x4350c3._0x147113) + (_0x506558['reason'] ?? 'claim\x20failed');
|
|
1144
|
+
})[_0x548174(_0x213c3f._0x58b776)]('\x0a');
|
|
1145
|
+
}
|
|
1146
|
+
function formatUnclaimTaskResult(_0x1d6a88) {
|
|
1147
|
+
const _0x282476 = {
|
|
1148
|
+
_0x25acef: 0x1e1,
|
|
1149
|
+
_0x7cbabf: 0x1ff
|
|
1150
|
+
}, _0x3468bf = _0x15c9cf, _0x227484 = _0x1d6a88['taskNumber'] == null ? _0x3468bf(_0x282476._0x25acef) : '#' + _0x1d6a88[_0x3468bf(0x282)];
|
|
1151
|
+
return _0x227484 + _0x3468bf(0x1dc) + _0x1d6a88[_0x3468bf(_0x282476._0x7cbabf)];
|
|
1152
|
+
}
|
|
1153
|
+
function formatUpdateTaskStatusResult(_0x3652d9) {
|
|
1154
|
+
const _0x3ad0b3 = {
|
|
1155
|
+
_0x385414: 0x282,
|
|
1156
|
+
_0x82ab61: 0x1dc
|
|
1157
|
+
}, _0x50e74b = _0x15c9cf, _0x4b35a0 = _0x3652d9['taskNumber'] == null ? _0x50e74b(0x1e1) : '#' + _0x3652d9[_0x50e74b(_0x3ad0b3._0x385414)];
|
|
1158
|
+
return _0x4b35a0 + _0x50e74b(_0x3ad0b3._0x82ab61) + _0x3652d9[_0x50e74b(0x1ff)];
|
|
1159
|
+
}
|
|
1160
|
+
function getChatBridgeToolDefinitions() {
|
|
1161
|
+
const _0x447b80 = {
|
|
1162
|
+
_0x45b4aa: 0x23d,
|
|
1163
|
+
_0x2aec45: 0x1e5,
|
|
1164
|
+
_0x141e8c: 0x2ee,
|
|
1165
|
+
_0x153a31: 0x1f1,
|
|
1166
|
+
_0x49caa4: 0x314,
|
|
1167
|
+
_0x40e978: 0x330
|
|
1168
|
+
}, _0x48ae98 = _0x15c9cf;
|
|
1169
|
+
return [
|
|
1170
|
+
{ 'name': _0x48ae98(_0x447b80._0x45b4aa) },
|
|
1171
|
+
{ 'name': _0x48ae98(0x275) },
|
|
1172
|
+
{ 'name': _0x48ae98(_0x447b80._0x2aec45) },
|
|
1173
|
+
{ 'name': _0x48ae98(0x1e2) },
|
|
1174
|
+
{ 'name': 'upload_file' },
|
|
1175
|
+
{ 'name': 'view_file' },
|
|
1176
|
+
{ 'name': _0x48ae98(_0x447b80._0x141e8c) },
|
|
1177
|
+
{ 'name': _0x48ae98(_0x447b80._0x153a31) },
|
|
1178
|
+
{ 'name': _0x48ae98(0x2f1) },
|
|
1179
|
+
{ 'name': 'unclaim_task' },
|
|
1180
|
+
{ 'name': _0x48ae98(0x276) },
|
|
1181
|
+
{ 'name': _0x48ae98(0x201) },
|
|
1182
|
+
{ 'name': 'get_worker_result' },
|
|
1183
|
+
{ 'name': _0x48ae98(_0x447b80._0x49caa4) },
|
|
1184
|
+
{ 'name': _0x48ae98(_0x447b80._0x40e978) },
|
|
1185
|
+
{ 'name': _0x48ae98(0x281) }
|
|
1186
|
+
];
|
|
1187
|
+
}
|
|
1188
|
+
function createChatBridgeHandlers(_0x133042) {
|
|
1189
|
+
const _0x1e1f4e = {
|
|
1190
|
+
_0x59bc3b: 0x2fc,
|
|
1191
|
+
_0x596f49: 0x26d
|
|
1192
|
+
}, _0x57367a = {
|
|
1193
|
+
_0x2c32f7: 0x2a5,
|
|
1194
|
+
_0x39972d: 0x20c,
|
|
1195
|
+
_0x2d4082: 0x22a,
|
|
1196
|
+
_0x4ccb00: 0x26b,
|
|
1197
|
+
_0x3384fa: 0x354,
|
|
1198
|
+
_0x5b3d93: 0x25e
|
|
1199
|
+
}, _0xf8f2 = {
|
|
1200
|
+
_0x4d7a09: 0x2a5,
|
|
1201
|
+
_0x59674a: 0x28a,
|
|
1202
|
+
_0x25e6ce: 0x22e,
|
|
1203
|
+
_0x28ed87: 0x321,
|
|
1204
|
+
_0x1ba9a3: 0x294,
|
|
1205
|
+
_0xf359ca: 0x22a,
|
|
1206
|
+
_0x5d9b21: 0x1e0
|
|
1207
|
+
}, _0x2def12 = {
|
|
1208
|
+
_0x30b80c: 0x2fa,
|
|
1209
|
+
_0x3e2ef7: 0x28a,
|
|
1210
|
+
_0x312db5: 0x1cb,
|
|
1211
|
+
_0x17cf84: 0x1f3,
|
|
1212
|
+
_0x159a98: 0x260,
|
|
1213
|
+
_0x1979b7: 0x349,
|
|
1214
|
+
_0x35cc2c: 0x321,
|
|
1215
|
+
_0x4a60a8: 0x33c,
|
|
1216
|
+
_0x5ae4e0: 0x2d8
|
|
1217
|
+
}, _0x4c8dcb = {
|
|
1218
|
+
_0x2245c1: 0x283,
|
|
1219
|
+
_0x77ef7e: 0x22a,
|
|
1220
|
+
_0x1201f2: 0x22e
|
|
1221
|
+
}, _0x5af2cf = {
|
|
1222
|
+
_0x5c3a06: 0x2a5,
|
|
1223
|
+
_0x1031e1: 0x321,
|
|
1224
|
+
_0x4e2a04: 0x294,
|
|
1225
|
+
_0xc3a7ec: 0x22a
|
|
1226
|
+
}, _0x1ae177 = {
|
|
1227
|
+
_0x34b464: 0x327,
|
|
1228
|
+
_0x140b00: 0x1d9,
|
|
1229
|
+
_0x35013b: 0x204,
|
|
1230
|
+
_0x47e6b9: 0x306
|
|
1231
|
+
}, _0x5bb6a1 = { _0x400231: 0x20b }, _0x194244 = { _0x2ea896: 0x2cc }, _0x25a39e = { _0x529208: 0x23b }, _0x5e29cc = {
|
|
1232
|
+
_0x26f4bb: 0x23b,
|
|
1233
|
+
_0x40cdfe: 0x30f,
|
|
1234
|
+
_0x2c44e2: 0x352
|
|
1235
|
+
}, _0x14a486 = { _0x2fb348: 0x23b }, _0x71bb56 = {
|
|
1236
|
+
_0x30443d: 0x2d3,
|
|
1237
|
+
_0x1c2379: 0x2a5,
|
|
1238
|
+
_0x32aa9b: 0x1e8,
|
|
1239
|
+
_0x43ce83: 0x245,
|
|
1240
|
+
_0x4cf869: 0x1eb,
|
|
1241
|
+
_0x5e4376: 0x21d,
|
|
1242
|
+
_0x134c4b: 0x2ab,
|
|
1243
|
+
_0x2a206c: 0x21d,
|
|
1244
|
+
_0x1a398a: 0x282,
|
|
1245
|
+
_0x1976c1: 0x21a
|
|
1246
|
+
}, _0x3b387a = {
|
|
1247
|
+
_0x478a5d: 0x23b,
|
|
1248
|
+
_0x4644e3: 0x211
|
|
1249
|
+
}, _0x10bdc1 = {
|
|
1250
|
+
_0x2b04ae: 0x2c7,
|
|
1251
|
+
_0x47a450: 0x2a5,
|
|
1252
|
+
_0x50c451: 0x1dd,
|
|
1253
|
+
_0x204b7f: 0x29c,
|
|
1254
|
+
_0x2259b7: 0x238,
|
|
1255
|
+
_0x125c93: 0x282,
|
|
1256
|
+
_0x3cd7d2: 0x1e1,
|
|
1257
|
+
_0x351d85: 0x2d1,
|
|
1258
|
+
_0x3240db: 0x1dd,
|
|
1259
|
+
_0x21430e: 0x220,
|
|
1260
|
+
_0x12e9b1: 0x2a8,
|
|
1261
|
+
_0x17bcd6: 0x2d7,
|
|
1262
|
+
_0x45db4e: 0x258,
|
|
1263
|
+
_0x477370: 0x2fd,
|
|
1264
|
+
_0x1453cd: 0x25b,
|
|
1265
|
+
_0x5acfb4: 0x205,
|
|
1266
|
+
_0x454a8a: 0x22e,
|
|
1267
|
+
_0x15d7fa: 0x30d,
|
|
1268
|
+
_0x11b3a0: 0x1d3,
|
|
1269
|
+
_0x4da2fd: 0x1e9,
|
|
1270
|
+
_0x326aac: 0x2dd,
|
|
1271
|
+
_0x5a74b9: 0x268,
|
|
1272
|
+
_0x45737d: 0x1d0,
|
|
1273
|
+
_0x39d0f2: 0x33e,
|
|
1274
|
+
_0x466d22: 0x202,
|
|
1275
|
+
_0x2a91ae: 0x24b,
|
|
1276
|
+
_0x565e38: 0x1dd,
|
|
1277
|
+
_0x5087ca: 0x2d6,
|
|
1278
|
+
_0x2381f2: 0x2c6
|
|
1279
|
+
}, _0x22193f = {
|
|
1280
|
+
_0x186b6c: 0x30d,
|
|
1281
|
+
_0x3df1ce: 0x2c7,
|
|
1282
|
+
_0xa02703: 0x1ff,
|
|
1283
|
+
_0xe1976c: 0x21d,
|
|
1284
|
+
_0x191d36: 0x241
|
|
1285
|
+
}, _0x4ceb0c = {
|
|
1286
|
+
_0x1da7b3: 0x2a5,
|
|
1287
|
+
_0x2cabe4: 0x1eb,
|
|
1288
|
+
_0x1ee9b9: 0x34b,
|
|
1289
|
+
_0x14bd94: 0x241
|
|
1290
|
+
}, _0x33d94f = {
|
|
1291
|
+
_0x4f1df5: 0x2a5,
|
|
1292
|
+
_0x272e5c: 0x2c7,
|
|
1293
|
+
_0x51dc52: 0x262,
|
|
1294
|
+
_0x12ca3a: 0x262,
|
|
1295
|
+
_0x5198a8: 0x26f,
|
|
1296
|
+
_0x19c1b4: 0x23b,
|
|
1297
|
+
_0xc63e26: 0x1e1,
|
|
1298
|
+
_0x2f96fc: 0x286,
|
|
1299
|
+
_0x5d08d3: 0x303,
|
|
1300
|
+
_0x52069b: 0x258,
|
|
1301
|
+
_0x57677d: 0x308,
|
|
1302
|
+
_0x2c8975: 0x2a8,
|
|
1303
|
+
_0x325353: 0x205,
|
|
1304
|
+
_0x5dd5f6: 0x28a,
|
|
1305
|
+
_0x458b68: 0x22e,
|
|
1306
|
+
_0x2c12ca: 0x239,
|
|
1307
|
+
_0x19d91b: 0x282,
|
|
1308
|
+
_0x381b95: 0x321,
|
|
1309
|
+
_0x3640d5: 0x208,
|
|
1310
|
+
_0x205079: 0x1d0
|
|
1311
|
+
}, _0x4ad229 = _0x15c9cf;
|
|
1312
|
+
async function _0x1718fa(_0x3726c1) {
|
|
1313
|
+
const _0x18d3c3 = _0x31af;
|
|
1314
|
+
if (!_0x133042[_0x18d3c3(_0x33d94f._0x4f1df5)] || !_0x133042[_0x18d3c3(0x30d)] || _0x133042[_0x18d3c3(_0x33d94f._0x272e5c)] || _0x133042['workerModeEnabled'] !== !![])
|
|
1315
|
+
return null;
|
|
1316
|
+
const _0x36e7af = parseTarget(_0x3726c1[_0x18d3c3(_0x33d94f._0x51dc52)]);
|
|
1317
|
+
if (_0x36e7af[_0x18d3c3(0x20f)] !== _0x18d3c3(_0x33d94f._0x12ca3a))
|
|
1318
|
+
return null;
|
|
1319
|
+
const _0x18234f = _0x3726c1[_0x18d3c3(0x2d1)] != null ? _0x36e7af['channelTarget'] + ':t' + _0x3726c1[_0x18d3c3(0x2d1)] : _0x36e7af[_0x18d3c3(0x2aa)] + ':' + _0x3726c1[_0x18d3c3(_0x33d94f._0x5198a8)];
|
|
1320
|
+
let _0x1ad035;
|
|
1321
|
+
try {
|
|
1322
|
+
const _0x51d1d5 = await _0x133042[_0x18d3c3(_0x33d94f._0x19c1b4)][_0x18d3c3(0x1ec)]({
|
|
1323
|
+
'channel': _0x18234f,
|
|
1324
|
+
'limit': 0x14
|
|
1325
|
+
});
|
|
1326
|
+
_0x1ad035 = _0x51d1d5['messages']['find'](_0x3c60c8 => _0x3c60c8[_0x18d3c3(0x26f)] === _0x3726c1['messageId']);
|
|
1327
|
+
} catch {
|
|
1328
|
+
_0x1ad035 = void 0x0;
|
|
1329
|
+
}
|
|
1330
|
+
const _0x4ce8ff = _0x3726c1['taskNumber'] == null ? _0x18d3c3(_0x33d94f._0xc63e26) : '#' + _0x3726c1[_0x18d3c3(0x282)], _0x5a3c50 = [
|
|
1331
|
+
_0x18d3c3(_0x33d94f._0x2f96fc) + _0x18234f + _0x18d3c3(0x2bd) + _0x3726c1['messageId'][_0x18d3c3(_0x33d94f._0x5d08d3)](0x0, 0x8) + '\x20time=' + new Date()[_0x18d3c3(_0x33d94f._0x52069b)]() + ']\x20@system:\x20[claim-handoff]\x20' + _0x4ce8ff + '\x20已切换到\x20worker\x20执行',
|
|
1332
|
+
'',
|
|
1333
|
+
_0x1ad035 ? _0x18d3c3(_0x33d94f._0x57677d) + _0x1ad035['content'] : _0x18d3c3(0x333) + _0x3726c1['messageId'],
|
|
1334
|
+
'',
|
|
1335
|
+
_0x18d3c3(0x278) + _0x18234f,
|
|
1336
|
+
_0x18d3c3(0x1cd)
|
|
1337
|
+
][_0x18d3c3(_0x33d94f._0x2c8975)]('\x0a'), _0x50df29 = await fetch(_0x133042[_0x18d3c3(0x2a5)] + _0x18d3c3(0x242), {
|
|
1338
|
+
'method': _0x18d3c3(_0x33d94f._0x325353),
|
|
1339
|
+
'headers': { 'Content-Type': _0x18d3c3(_0x33d94f._0x5dd5f6) },
|
|
1340
|
+
'body': JSON[_0x18d3c3(_0x33d94f._0x458b68)]({
|
|
1341
|
+
'agent_id': _0x133042[_0x18d3c3(0x30d)],
|
|
1342
|
+
'thread_target': _0x18234f,
|
|
1343
|
+
'spawn_packet': {
|
|
1344
|
+
'replyTarget': _0x18234f,
|
|
1345
|
+
..._0x3726c1[_0x18d3c3(_0x33d94f._0x2c12ca)] ? { 'taskId': _0x3726c1[_0x18d3c3(0x239)] } : _0x3726c1[_0x18d3c3(0x282)] != null ? { 'taskId': _0x18d3c3(0x231) + _0x3726c1[_0x18d3c3(_0x33d94f._0x19d91b)] } : {}
|
|
1346
|
+
},
|
|
1347
|
+
'payload': {
|
|
1348
|
+
'mode': 'user',
|
|
1349
|
+
'text': _0x5a3c50
|
|
1350
|
+
}
|
|
1351
|
+
})
|
|
1352
|
+
}), _0x18ddbd = await _0x50df29[_0x18d3c3(_0x33d94f._0x381b95)]();
|
|
1353
|
+
if (!_0x18ddbd['ok'])
|
|
1354
|
+
throw new Error(_0x18ddbd[_0x18d3c3(_0x33d94f._0x3640d5)] ?? _0x18d3c3(0x2de));
|
|
1355
|
+
return {
|
|
1356
|
+
'stopMain': !![],
|
|
1357
|
+
'threadTarget': _0x18234f,
|
|
1358
|
+
'workerDisposition': _0x18ddbd['disposition'] === 'queued' ? _0x18d3c3(_0x33d94f._0x205079) : 'started',
|
|
1359
|
+
'workerHandoff': !![],
|
|
1360
|
+
'workerSessionId': _0x18ddbd['worker_session_id'] ?? '',
|
|
1361
|
+
'executionMode': _0x18d3c3(0x235)
|
|
1362
|
+
};
|
|
1363
|
+
}
|
|
1364
|
+
async function _0x3e00de() {
|
|
1365
|
+
const _0x368f53 = _0x31af;
|
|
1366
|
+
if (!_0x133042['daemonLocalUrl'] || !_0x133042[_0x368f53(0x30d)] || _0x133042['workerMode'])
|
|
1367
|
+
return null;
|
|
1368
|
+
try {
|
|
1369
|
+
const _0x5a0ea3 = await fetch(_0x133042[_0x368f53(_0x4ceb0c._0x1da7b3)] + '/workers/list?agent_id=' + encodeURIComponent(_0x133042[_0x368f53(0x30d)])), _0x1fd896 = await _0x5a0ea3[_0x368f53(0x321)]();
|
|
1370
|
+
if (!_0x1fd896['ok'])
|
|
1371
|
+
return null;
|
|
1372
|
+
const _0x47856e = new Set();
|
|
1373
|
+
for (const _0x3f416a of _0x1fd896[_0x368f53(0x245)]) {
|
|
1374
|
+
_0x3f416a[_0x368f53(0x1ff)] !== _0x368f53(_0x4ceb0c._0x2cabe4) && _0x3f416a[_0x368f53(0x21d)] && _0x47856e[_0x368f53(_0x4ceb0c._0x1ee9b9)](_0x3f416a[_0x368f53(0x21d)]);
|
|
1375
|
+
}
|
|
1376
|
+
return _0x47856e[_0x368f53(_0x4ceb0c._0x14bd94)] > 0x0 ? _0x47856e : null;
|
|
1377
|
+
} catch {
|
|
1378
|
+
return null;
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
const _0x1a869f = new Set([
|
|
1382
|
+
_0x4ad229(_0x1e1f4e._0x59bc3b),
|
|
1383
|
+
_0x4ad229(_0x1e1f4e._0x596f49),
|
|
1384
|
+
'waiting_input'
|
|
1385
|
+
]);
|
|
1386
|
+
async function _0xc8b138() {
|
|
1387
|
+
const _0x266a51 = _0x4ad229;
|
|
1388
|
+
if (!_0x133042['daemonLocalUrl'] || !_0x133042[_0x266a51(_0x22193f._0x186b6c)] || _0x133042[_0x266a51(_0x22193f._0x3df1ce)])
|
|
1389
|
+
return null;
|
|
1390
|
+
try {
|
|
1391
|
+
const _0x5e8af1 = await fetch(_0x133042['daemonLocalUrl'] + _0x266a51(0x1e8) + encodeURIComponent(_0x133042['agentId'])), _0x31f20c = await _0x5e8af1[_0x266a51(0x321)]();
|
|
1392
|
+
if (!_0x31f20c['ok'])
|
|
1393
|
+
return null;
|
|
1394
|
+
const _0xec0b8e = new Set();
|
|
1395
|
+
for (const _0x2bcbab of _0x31f20c[_0x266a51(0x245)]) {
|
|
1396
|
+
_0x1a869f[_0x266a51(0x2b9)](_0x2bcbab[_0x266a51(_0x22193f._0xa02703)]) && _0x2bcbab[_0x266a51(_0x22193f._0xe1976c)] && _0xec0b8e[_0x266a51(0x34b)](_0x2bcbab[_0x266a51(0x21d)]);
|
|
1397
|
+
}
|
|
1398
|
+
return _0xec0b8e[_0x266a51(_0x22193f._0x191d36)] > 0x0 ? _0xec0b8e : null;
|
|
1399
|
+
} catch {
|
|
1400
|
+
return null;
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
return {
|
|
1404
|
+
async 'send_message'(_0x536ed8) {
|
|
1405
|
+
const _0x402a85 = _0x4ad229;
|
|
1406
|
+
if (!_0x133042[_0x402a85(_0x10bdc1._0x2b04ae)] && _0x133042[_0x402a85(0x24e)] && _0x133042[_0x402a85(_0x10bdc1._0x47a450)] && _0x133042['agentId']) {
|
|
1407
|
+
const _0x362102 = await _0x133042['client']['resolveTarget'](_0x536ed8[_0x402a85(_0x10bdc1._0x50c451)]);
|
|
1408
|
+
if (_0x362102[_0x402a85(0x238)] && _0x362102[_0x402a85(_0x10bdc1._0x204b7f)]) {
|
|
1409
|
+
const _0x330e58 = _0x362102[_0x402a85(_0x10bdc1._0x2259b7)][_0x402a85(0x282)] != null ? '#' + _0x362102[_0x402a85(_0x10bdc1._0x2259b7)][_0x402a85(_0x10bdc1._0x125c93)] : _0x402a85(_0x10bdc1._0x3cd7d2), _0x4361c6 = _0x362102[_0x402a85(_0x10bdc1._0x351d85)] != null ? _0x362102[_0x402a85(_0x10bdc1._0x3240db)] + ':t' + _0x362102[_0x402a85(0x2d1)] : _0x362102[_0x402a85(_0x10bdc1._0x50c451)] + ':' + _0x362102[_0x402a85(_0x10bdc1._0x204b7f)]['slice'](0x0, 0x8), _0x22aeba = await _0xc8b138();
|
|
1410
|
+
if (_0x22aeba?.[_0x402a85(0x2b9)](_0x4361c6))
|
|
1411
|
+
return [
|
|
1412
|
+
_0x402a85(_0x10bdc1._0x21430e) + _0x330e58 + _0x402a85(0x1e9) + _0x4361c6 + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
|
|
1413
|
+
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
|
|
1414
|
+
][_0x402a85(_0x10bdc1._0x12e9b1)]('\x0a');
|
|
1415
|
+
const _0x476a6d = [
|
|
1416
|
+
_0x402a85(0x286) + _0x4361c6 + _0x402a85(_0x10bdc1._0x17bcd6) + new Date()[_0x402a85(_0x10bdc1._0x45db4e)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1417
|
+
'',
|
|
1418
|
+
'Original\x20message:\x20' + _0x536ed8[_0x402a85(0x24b)],
|
|
1419
|
+
_0x402a85(_0x10bdc1._0x477370) + _0x330e58 + '\x20(' + _0x362102[_0x402a85(0x238)]['taskId'] + ')',
|
|
1420
|
+
_0x402a85(0x278) + _0x4361c6,
|
|
1421
|
+
_0x402a85(_0x10bdc1._0x1453cd)
|
|
1422
|
+
]['join']('\x0a'), _0x411e68 = await fetch(_0x133042['daemonLocalUrl'] + '/workers/deliver', {
|
|
1423
|
+
'method': _0x402a85(_0x10bdc1._0x5acfb4),
|
|
1424
|
+
'headers': { 'Content-Type': _0x402a85(0x28a) },
|
|
1425
|
+
'body': JSON[_0x402a85(_0x10bdc1._0x454a8a)]({
|
|
1426
|
+
'agent_id': _0x133042[_0x402a85(_0x10bdc1._0x15d7fa)],
|
|
1427
|
+
'thread_target': _0x4361c6,
|
|
1428
|
+
'spawn_packet': {
|
|
1429
|
+
'replyTarget': _0x4361c6,
|
|
1430
|
+
'taskId': _0x362102['task'][_0x402a85(0x239)]
|
|
1431
|
+
},
|
|
1432
|
+
'payload': {
|
|
1433
|
+
'mode': _0x402a85(0x2f0),
|
|
1434
|
+
'text': _0x476a6d
|
|
1435
|
+
}
|
|
1436
|
+
})
|
|
1437
|
+
}), _0x58d488 = await _0x411e68[_0x402a85(0x321)]();
|
|
1438
|
+
if (!_0x58d488['ok'])
|
|
1439
|
+
throw new Error(_0x58d488['error'] ?? _0x402a85(_0x10bdc1._0x11b3a0));
|
|
1440
|
+
return [
|
|
1441
|
+
_0x402a85(0x34d) + _0x330e58 + _0x402a85(_0x10bdc1._0x4da2fd) + _0x4361c6 + '.\x20stopMain=true\x20executionMode=worker',
|
|
1442
|
+
_0x402a85(_0x10bdc1._0x326aac) + (_0x58d488[_0x402a85(_0x10bdc1._0x5a74b9)] === _0x402a85(_0x10bdc1._0x45737d) ? _0x402a85(0x1d0) : _0x402a85(_0x10bdc1._0x39d0f2)) + '.',
|
|
1443
|
+
_0x402a85(_0x10bdc1._0x466d22)
|
|
1444
|
+
][_0x402a85(0x2a8)]('\x0a');
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
const _0x22681d = await _0x133042[_0x402a85(0x23b)]['sendMessage']({
|
|
1448
|
+
'attachmentIds': _0x536ed8['attachment_ids'],
|
|
1449
|
+
'content': _0x536ed8[_0x402a85(_0x10bdc1._0x2a91ae)],
|
|
1450
|
+
'target': _0x536ed8[_0x402a85(_0x10bdc1._0x565e38)],
|
|
1451
|
+
'visibility': _0x536ed8['visibility']
|
|
1452
|
+
});
|
|
1453
|
+
return _0x402a85(_0x10bdc1._0x5087ca) + _0x536ed8['target'] + _0x402a85(_0x10bdc1._0x2381f2) + _0x22681d[_0x402a85(0x26f)];
|
|
1454
|
+
},
|
|
1455
|
+
async 'check_messages'() {
|
|
1456
|
+
const _0x3bac57 = _0x4ad229, _0x30e046 = await _0x133042[_0x3bac57(0x23b)]['checkMessages']();
|
|
1457
|
+
if (!_0x133042[_0x3bac57(0x2c7)]) {
|
|
1458
|
+
const _0x8ac30c = await _0x3e00de();
|
|
1459
|
+
if (_0x8ac30c)
|
|
1460
|
+
return formatCheckMessages(_0x30e046[_0x3bac57(0x2d9)]['filter'](_0x41a56a => !_0x8ac30c[_0x3bac57(0x2b9)](_0x41a56a[_0x3bac57(0x1dd)])));
|
|
1461
|
+
}
|
|
1462
|
+
return formatCheckMessages(_0x30e046[_0x3bac57(0x2d9)]);
|
|
1463
|
+
},
|
|
1464
|
+
async 'read_history'(_0x75e152) {
|
|
1465
|
+
const _0x9414f6 = _0x4ad229, _0x372dda = await _0x133042[_0x9414f6(0x23b)]['readHistory'](_0x75e152);
|
|
1466
|
+
return formatHistory(_0x372dda);
|
|
1467
|
+
},
|
|
1468
|
+
async 'list_server'() {
|
|
1469
|
+
const _0x4250fe = _0x4ad229, _0x3ca03e = await _0x133042[_0x4250fe(_0x3b387a._0x478a5d)][_0x4250fe(_0x3b387a._0x4644e3)]();
|
|
1470
|
+
return formatServerDirectory(_0x3ca03e);
|
|
1471
|
+
},
|
|
1472
|
+
async 'list_tasks'(_0x4d0e3e) {
|
|
1473
|
+
const _0x340032 = _0x4ad229, _0x44631b = await _0x133042['client'][_0x340032(_0x71bb56._0x30443d)](_0x4d0e3e);
|
|
1474
|
+
let _0xcd4af5;
|
|
1475
|
+
if (_0x133042[_0x340032(_0x71bb56._0x1c2379)] && _0x133042['agentId'])
|
|
1476
|
+
try {
|
|
1477
|
+
const _0x1dfd1d = await fetch(_0x133042[_0x340032(_0x71bb56._0x1c2379)] + _0x340032(_0x71bb56._0x32aa9b) + encodeURIComponent(_0x133042['agentId'])), _0x347c9f = await _0x1dfd1d['json']();
|
|
1478
|
+
if (_0x347c9f['ok']) {
|
|
1479
|
+
const _0x3c757c = _0x4d0e3e[_0x340032(0x262)] + ':';
|
|
1480
|
+
_0xcd4af5 = new Set();
|
|
1481
|
+
for (const _0x2794e6 of _0x347c9f[_0x340032(_0x71bb56._0x43ce83)]) {
|
|
1482
|
+
if (_0x2794e6['status'] === _0x340032(_0x71bb56._0x4cf869))
|
|
1483
|
+
continue;
|
|
1484
|
+
if (_0x2794e6[_0x340032(_0x71bb56._0x5e4376)]?.[_0x340032(_0x71bb56._0x134c4b)](_0x3c757c)) {
|
|
1485
|
+
const _0xd99051 = _0x2794e6[_0x340032(_0x71bb56._0x2a206c)]['slice'](_0x3c757c[_0x340032(0x27e)]), _0x109bf3 = _0x44631b[_0x340032(0x355)][_0x340032(0x248)](_0x2ec189 => _0x2ec189[_0x340032(0x26f)]?.['startsWith'](_0xd99051) === !![]);
|
|
1486
|
+
if (_0x109bf3?.[_0x340032(_0x71bb56._0x1a398a)] != null) {
|
|
1487
|
+
_0xcd4af5[_0x340032(0x34b)](_0x109bf3[_0x340032(0x282)]);
|
|
1488
|
+
continue;
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
if (_0x2794e6[_0x340032(_0x71bb56._0x1976c1)]) {
|
|
1492
|
+
const _0x2a04e1 = _0x44631b[_0x340032(0x355)]['find'](_0x943628 => _0x943628[_0x340032(0x239)] === _0x2794e6['task_id']);
|
|
1493
|
+
_0x2a04e1?.['taskNumber'] != null && _0xcd4af5[_0x340032(0x34b)](_0x2a04e1[_0x340032(0x282)]);
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
} catch {
|
|
1498
|
+
}
|
|
1499
|
+
return formatTaskList(_0x44631b[_0x340032(0x355)], _0xcd4af5);
|
|
1500
|
+
},
|
|
1501
|
+
async 'create_tasks'(_0x1d2ba2) {
|
|
1502
|
+
const _0x46fa34 = _0x4ad229, _0x27986a = await _0x133042[_0x46fa34(_0x14a486._0x2fb348)]['createTasks'](_0x1d2ba2);
|
|
1503
|
+
return formatCreatedTasks(_0x27986a['tasks']);
|
|
1504
|
+
},
|
|
1505
|
+
async 'claim_tasks'(_0x5ebe64) {
|
|
1506
|
+
const _0x143a6e = {
|
|
1507
|
+
_0x2a5c8b: 0x262,
|
|
1508
|
+
_0x426531: 0x26f,
|
|
1509
|
+
_0x2fc295: 0x239,
|
|
1510
|
+
_0x4c96e7: 0x33d
|
|
1511
|
+
}, _0x3e98a7 = _0x4ad229, _0x4628c5 = await _0x133042[_0x3e98a7(_0x5e29cc._0x26f4bb)][_0x3e98a7(0x2c5)](_0x5ebe64), _0x34adaf = await Promise[_0x3e98a7(0x22f)](_0x4628c5[_0x3e98a7(_0x5e29cc._0x40cdfe)][_0x3e98a7(_0x5e29cc._0x2c44e2)](async _0x43b3c0 => {
|
|
1512
|
+
const _0x5aa8a7 = _0x3e98a7;
|
|
1513
|
+
if (!_0x43b3c0[_0x5aa8a7(0x293)] || !_0x43b3c0[_0x5aa8a7(0x26f)])
|
|
1514
|
+
return _0x43b3c0;
|
|
1515
|
+
try {
|
|
1516
|
+
const _0x5ceeff = await _0x1718fa({
|
|
1517
|
+
'channel': _0x5ebe64[_0x5aa8a7(_0x143a6e._0x2a5c8b)],
|
|
1518
|
+
'messageId': _0x43b3c0[_0x5aa8a7(_0x143a6e._0x426531)],
|
|
1519
|
+
'taskId': _0x43b3c0[_0x5aa8a7(_0x143a6e._0x2fc295)],
|
|
1520
|
+
'taskNumber': _0x43b3c0[_0x5aa8a7(0x282)],
|
|
1521
|
+
'threadNumber': _0x43b3c0[_0x5aa8a7(0x2d1)]
|
|
1522
|
+
});
|
|
1523
|
+
return _0x5ceeff ? {
|
|
1524
|
+
..._0x43b3c0,
|
|
1525
|
+
..._0x5ceeff
|
|
1526
|
+
} : _0x43b3c0;
|
|
1527
|
+
} catch (_0x4e4b28) {
|
|
1528
|
+
return {
|
|
1529
|
+
..._0x43b3c0,
|
|
1530
|
+
'workerHandoffError': _0x4e4b28 instanceof Error ? _0x4e4b28[_0x5aa8a7(_0x143a6e._0x4c96e7)] : _0x5aa8a7(0x2de)
|
|
1531
|
+
};
|
|
1532
|
+
}
|
|
1533
|
+
}));
|
|
1534
|
+
return formatClaimTaskResults(_0x34adaf);
|
|
1535
|
+
},
|
|
1536
|
+
async 'unclaim_task'(_0x322022) {
|
|
1537
|
+
const _0x11cb10 = _0x4ad229, _0x522044 = await _0x133042[_0x11cb10(_0x25a39e._0x529208)]['unclaimTask'](_0x322022);
|
|
1538
|
+
return formatUnclaimTaskResult(_0x522044);
|
|
1539
|
+
},
|
|
1540
|
+
async 'update_task_status'(_0x5d2c7a) {
|
|
1541
|
+
const _0x233a6b = _0x4ad229, _0x2a947b = await _0x133042[_0x233a6b(0x23b)][_0x233a6b(_0x194244._0x2ea896)](_0x5d2c7a);
|
|
1542
|
+
return formatUpdateTaskStatusResult(_0x2a947b);
|
|
1543
|
+
},
|
|
1544
|
+
async 'upload_file'(_0x13260b) {
|
|
1545
|
+
const _0x3369b5 = _0x4ad229, _0x507f81 = await _0x133042[_0x3369b5(_0x5bb6a1._0x400231)](_0x13260b['file_path']), {
|
|
1546
|
+
sizeBytes: _0x14a324,
|
|
1547
|
+
..._0x1ae640
|
|
1548
|
+
} = _0x507f81, _0x134b6b = await _0x133042[_0x3369b5(0x23b)]['uploadFile']({
|
|
1549
|
+
'channel': _0x13260b[_0x3369b5(0x262)],
|
|
1550
|
+
..._0x1ae640
|
|
1551
|
+
});
|
|
1552
|
+
return formatUploadResult(_0x134b6b);
|
|
1553
|
+
},
|
|
1554
|
+
async 'view_file'(_0x1ba4b0) {
|
|
1555
|
+
const _0x2a678a = _0x4ad229, _0x269ab3 = await _0x133042[_0x2a678a(0x1d9)][_0x2a678a(_0x1ae177._0x34b464)](_0x1ba4b0['attachment_id']);
|
|
1556
|
+
if (_0x269ab3)
|
|
1557
|
+
return formatViewFileResult(_0x269ab3, !![]);
|
|
1558
|
+
const _0x390bac = await _0x133042[_0x2a678a(0x23b)]['downloadAttachment'](_0x1ba4b0[_0x2a678a(0x1e4)]), _0x3987b0 = await _0x133042[_0x2a678a(_0x1ae177._0x140b00)][_0x2a678a(0x1c4)]({
|
|
1559
|
+
'attachmentId': _0x1ba4b0[_0x2a678a(0x1e4)],
|
|
1560
|
+
'contentType': _0x390bac[_0x2a678a(_0x1ae177._0x35013b)],
|
|
1561
|
+
'data': _0x390bac[_0x2a678a(0x315)],
|
|
1562
|
+
'originalFilename': _0x390bac[_0x2a678a(_0x1ae177._0x47e6b9)]
|
|
1563
|
+
});
|
|
1564
|
+
return formatViewFileResult(_0x3987b0, ![]);
|
|
1565
|
+
},
|
|
1566
|
+
async 'get_worker_status'(_0x6e2f95) {
|
|
1567
|
+
const _0x42fbd2 = _0x4ad229;
|
|
1568
|
+
if (!_0x133042[_0x42fbd2(_0x5af2cf._0x5c3a06)])
|
|
1569
|
+
return _0x42fbd2(0x24a);
|
|
1570
|
+
const _0x19279d = await fetch(_0x133042[_0x42fbd2(0x2a5)] + _0x42fbd2(0x2f7) + encodeURIComponent(_0x6e2f95[_0x42fbd2(0x22a)])), _0x342802 = await _0x19279d[_0x42fbd2(_0x5af2cf._0x1031e1)]();
|
|
1571
|
+
if (!_0x342802['ok'])
|
|
1572
|
+
return 'Worker\x20\x22' + _0x6e2f95[_0x42fbd2(0x22a)] + '\x22\x20not\x20found';
|
|
1573
|
+
return _0x42fbd2(_0x5af2cf._0x4e2a04) + _0x6e2f95[_0x42fbd2(_0x5af2cf._0xc3a7ec)] + _0x42fbd2(0x200) + _0x342802[_0x42fbd2(0x1ff)];
|
|
1574
|
+
},
|
|
1575
|
+
async 'get_worker_result'(_0x302312) {
|
|
1576
|
+
const _0x410c9a = _0x4ad229;
|
|
1577
|
+
if (!_0x133042['daemonLocalUrl'])
|
|
1578
|
+
return _0x410c9a(0x24a);
|
|
1579
|
+
const _0x14e210 = await fetch(_0x133042['daemonLocalUrl'] + _0x410c9a(_0x4c8dcb._0x2245c1) + encodeURIComponent(_0x302312['work_key'])), _0x5eb65c = await _0x14e210['json']();
|
|
1580
|
+
if (!_0x5eb65c[_0x410c9a(0x272)])
|
|
1581
|
+
return _0x410c9a(0x203) + _0x302312[_0x410c9a(_0x4c8dcb._0x77ef7e)] + '\x22';
|
|
1582
|
+
return JSON[_0x410c9a(_0x4c8dcb._0x1201f2)](_0x5eb65c[_0x410c9a(0x272)], null, 0x2);
|
|
1583
|
+
},
|
|
1584
|
+
async 'finish_worker'(_0x26749a) {
|
|
1585
|
+
const _0x2a17d2 = _0x4ad229;
|
|
1586
|
+
if (!_0x133042['daemonLocalUrl'])
|
|
1587
|
+
return _0x2a17d2(0x24a);
|
|
1588
|
+
const _0x5c397c = await fetch(_0x133042['daemonLocalUrl'] + _0x2a17d2(_0x2def12._0x30b80c), {
|
|
1589
|
+
'method': 'POST',
|
|
1590
|
+
'headers': { 'Content-Type': _0x2a17d2(_0x2def12._0x3e2ef7) },
|
|
1591
|
+
'body': JSON['stringify']({
|
|
1592
|
+
'work_key': _0x26749a[_0x2a17d2(0x22a)],
|
|
1593
|
+
'resume_packet': {
|
|
1594
|
+
'objective': '',
|
|
1595
|
+
'result': _0x26749a[_0x2a17d2(_0x2def12._0x312db5)],
|
|
1596
|
+
'summary': _0x26749a[_0x2a17d2(_0x2def12._0x17cf84)],
|
|
1597
|
+
'decisions': _0x26749a[_0x2a17d2(_0x2def12._0x159a98)] ?? [],
|
|
1598
|
+
'filesChanged': _0x26749a[_0x2a17d2(_0x2def12._0x1979b7)] ?? [],
|
|
1599
|
+
'openIssues': _0x26749a[_0x2a17d2(0x27f)] ?? [],
|
|
1600
|
+
'nextSteps': _0x26749a[_0x2a17d2(0x257)] ?? []
|
|
1601
|
+
}
|
|
1602
|
+
})
|
|
1603
|
+
}), _0xcaff30 = await _0x5c397c[_0x2a17d2(_0x2def12._0x35cc2c)]();
|
|
1604
|
+
if (!_0xcaff30['ok'])
|
|
1605
|
+
throw new Error(_0xcaff30[_0x2a17d2(0x208)] ?? _0x2a17d2(_0x2def12._0x4a60a8));
|
|
1606
|
+
return 'Worker\x20\x22' + _0x26749a['work_key'] + _0x2a17d2(_0x2def12._0x5ae4e0) + _0x26749a[_0x2a17d2(_0x2def12._0x312db5)];
|
|
1607
|
+
},
|
|
1608
|
+
async 'mark_waiting_input'(_0x3bc476) {
|
|
1609
|
+
const _0x3b7f3d = _0x4ad229;
|
|
1610
|
+
if (!_0x133042[_0x3b7f3d(0x2a5)] || !_0x133042['agentId'])
|
|
1611
|
+
return _0x3b7f3d(0x340);
|
|
1612
|
+
const _0x19d05e = await fetch(_0x133042[_0x3b7f3d(_0xf8f2._0x4d7a09)] + _0x3b7f3d(0x1ca), {
|
|
1613
|
+
'method': 'POST',
|
|
1614
|
+
'headers': { 'Content-Type': _0x3b7f3d(_0xf8f2._0x59674a) },
|
|
1615
|
+
'body': JSON[_0x3b7f3d(_0xf8f2._0x25e6ce)]({
|
|
1616
|
+
'work_key': _0x3bc476['work_key'],
|
|
1617
|
+
'agent_id': _0x133042[_0x3b7f3d(0x30d)]
|
|
1618
|
+
})
|
|
1619
|
+
}), _0x20632c = await _0x19d05e[_0x3b7f3d(_0xf8f2._0x28ed87)]();
|
|
1620
|
+
if (!_0x20632c['ok'])
|
|
1621
|
+
throw new Error(_0x20632c['error'] ?? _0x3b7f3d(0x2a9));
|
|
1622
|
+
return _0x3b7f3d(_0xf8f2._0x1ba9a3) + _0x3bc476[_0x3b7f3d(_0xf8f2._0xf359ca)] + _0x3b7f3d(_0xf8f2._0x5d9b21);
|
|
1623
|
+
},
|
|
1624
|
+
async 'escalate_to_main'(_0x5c6c70) {
|
|
1625
|
+
const _0x36af8f = _0x4ad229;
|
|
1626
|
+
if (!_0x133042[_0x36af8f(_0x57367a._0x2c32f7)])
|
|
1627
|
+
return _0x36af8f(0x24a);
|
|
1628
|
+
const _0x40bd71 = await fetch(_0x133042[_0x36af8f(0x2a5)] + _0x36af8f(_0x57367a._0x39972d), {
|
|
1629
|
+
'method': _0x36af8f(0x205),
|
|
1630
|
+
'headers': { 'Content-Type': _0x36af8f(0x28a) },
|
|
1631
|
+
'body': JSON['stringify']({
|
|
1632
|
+
'work_key': _0x5c6c70[_0x36af8f(_0x57367a._0x2d4082)],
|
|
1633
|
+
'reason': _0x5c6c70[_0x36af8f(_0x57367a._0x4ccb00)]
|
|
1634
|
+
})
|
|
1635
|
+
}), _0xf5fadf = await _0x40bd71[_0x36af8f(0x321)]();
|
|
1636
|
+
if (!_0xf5fadf['ok'])
|
|
1637
|
+
throw new Error(_0xf5fadf[_0x36af8f(0x208)] ?? _0x36af8f(_0x57367a._0x3384fa));
|
|
1638
|
+
return _0x36af8f(_0x57367a._0x5b3d93) + _0x5c6c70['reason'];
|
|
1549
1639
|
}
|
|
1550
|
-
|
|
1551
|
-
return _0x5425bd + _0x3b29a8(0x105) + (_0xc210d5[_0x3b29a8(_0x1cbd8f._0x32f5c6)] ?? 'claim\x20failed');
|
|
1552
|
-
})[_0x1800df(0x201)]('\x0a');
|
|
1640
|
+
};
|
|
1553
1641
|
}
|
|
1554
|
-
function
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1642
|
+
function textResult(_0x4606b2, _0x1b079f = ![]) {
|
|
1643
|
+
return {
|
|
1644
|
+
'content': [{
|
|
1645
|
+
'type': 'text',
|
|
1646
|
+
'text': _0x4606b2
|
|
1647
|
+
}],
|
|
1648
|
+
..._0x1b079f ? { 'isError': !![] } : {}
|
|
1649
|
+
};
|
|
1560
1650
|
}
|
|
1561
|
-
function
|
|
1562
|
-
const
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1651
|
+
async function registerChatBridgeTools(_0xd221c, _0x46edce, _0x24024f) {
|
|
1652
|
+
const _0x415411 = {
|
|
1653
|
+
_0x484f63: 0x218,
|
|
1654
|
+
_0x37a911: 0x27d,
|
|
1655
|
+
_0x7a967a: 0x1fc,
|
|
1656
|
+
_0x33ae70: 0x2fe,
|
|
1657
|
+
_0x3a1dc6: 0x319,
|
|
1658
|
+
_0x4554ad: 0x1f8,
|
|
1659
|
+
_0x586499: 0x2fb,
|
|
1660
|
+
_0x172072: 0x30a,
|
|
1661
|
+
_0x5707e8: 0x1e2,
|
|
1662
|
+
_0x16172a: 0x219,
|
|
1663
|
+
_0x49f455: 0x309,
|
|
1664
|
+
_0x5d1b3f: 0x2df,
|
|
1665
|
+
_0x1eb7bc: 0x342,
|
|
1666
|
+
_0x494d3e: 0x1f1,
|
|
1667
|
+
_0x52c6f7: 0x256,
|
|
1668
|
+
_0x28f508: 0x2df,
|
|
1669
|
+
_0x2df2fb: 0x2fe,
|
|
1670
|
+
_0x338332: 0x229,
|
|
1671
|
+
_0x1e4a44: 0x30b,
|
|
1672
|
+
_0x3ae380: 0x2cb,
|
|
1673
|
+
_0x250f4f: 0x254,
|
|
1674
|
+
_0xf828fe: 0x2f2,
|
|
1675
|
+
_0xb5f14c: 0x320,
|
|
1676
|
+
_0x1de7b9: 0x320,
|
|
1677
|
+
_0x30cc99: 0x266,
|
|
1678
|
+
_0x5d8b4b: 0x30e,
|
|
1679
|
+
_0x3c942a: 0x2df,
|
|
1680
|
+
_0x46f653: 0x342,
|
|
1681
|
+
_0x17a866: 0x337,
|
|
1682
|
+
_0x41d1f8: 0x2b7,
|
|
1683
|
+
_0x23a2d6: 0x31b,
|
|
1684
|
+
_0x90b999: 0x2df,
|
|
1685
|
+
_0x424f2b: 0x201,
|
|
1686
|
+
_0x16c7f3: 0x28f,
|
|
1687
|
+
_0x10003e: 0x266,
|
|
1688
|
+
_0x5eb5f5: 0x2df,
|
|
1689
|
+
_0x1a68d2: 0x269,
|
|
1690
|
+
_0x5ab23d: 0x301,
|
|
1691
|
+
_0x2f68fc: 0x2df,
|
|
1692
|
+
_0x2e8f5e: 0x2f2,
|
|
1693
|
+
_0x2b6125: 0x2f2,
|
|
1694
|
+
_0x43f330: 0x297
|
|
1695
|
+
}, _0x45f4be = { _0x502cd4: 0x281 }, _0x3cb1b8 = { _0x132156: 0x354 }, _0x1aba00 = { _0x4d712e: 0x33d }, _0x43486e = { _0x33e731: 0x201 }, _0x59b358 = { _0xf42f71: 0x32a }, _0x5a322b = { _0x15d167: 0x350 }, _0x3863a8 = { _0x20f4f3: 0x237 }, _0x4aae32 = { _0x1c4a74: 0x33d }, _0x62e427 = { _0xc42fdd: 0x2f1 }, _0x45d1a8 = {
|
|
1696
|
+
_0x42093c: 0x33d,
|
|
1697
|
+
_0x58365b: 0x252
|
|
1698
|
+
}, _0x237257 = { _0x2f9ca6: 0x2a1 }, _0x1410e8 = { _0x2f0fbe: 0x1e2 }, _0x22df5d = {
|
|
1699
|
+
_0x99f8c2: 0x33d,
|
|
1700
|
+
_0x41aa32: 0x1cc
|
|
1701
|
+
}, _0x3cc155 = { _0x3e4b2a: 0x33d }, _0x1b086c = { _0x54ade3: 0x23d }, _0x2c5fb4 = _0x15c9cf, {z: _0x3912ab} = await import(_0x2c5fb4(_0x415411._0x484f63));
|
|
1702
|
+
_0xd221c['tool'](_0x2c5fb4(0x23d), _0x2c5fb4(_0x415411._0x37a911), {
|
|
1703
|
+
'target': _0x3912ab['string'](),
|
|
1704
|
+
'content': _0x3912ab['string'](),
|
|
1705
|
+
'attachment_ids': _0x3912ab[_0x2c5fb4(0x2f2)](_0x3912ab['string']())['optional'](),
|
|
1706
|
+
'visibility': _0x3912ab[_0x2c5fb4(_0x415411._0x7a967a)]([
|
|
1707
|
+
'public',
|
|
1708
|
+
_0x2c5fb4(0x22b)
|
|
1709
|
+
])[_0x2c5fb4(_0x415411._0x33ae70)]()['describe'](_0x2c5fb4(_0x415411._0x3a1dc6))
|
|
1710
|
+
}, async _0x21fa73 => {
|
|
1711
|
+
const _0x3d728c = _0x2c5fb4;
|
|
1712
|
+
try {
|
|
1713
|
+
return textResult(await _0x46edce[_0x3d728c(_0x1b086c._0x54ade3)](_0x21fa73));
|
|
1714
|
+
} catch (_0x325506) {
|
|
1715
|
+
return textResult(_0x325506 instanceof Error ? _0x325506[_0x3d728c(0x33d)] : 'send_message\x20failed', !![]);
|
|
1716
|
+
}
|
|
1717
|
+
}), _0xd221c[_0x2c5fb4(0x266)](_0x2c5fb4(0x275), _0x2c5fb4(_0x415411._0x4554ad), {}, async () => {
|
|
1718
|
+
const _0x2b50d3 = _0x2c5fb4;
|
|
1719
|
+
try {
|
|
1720
|
+
return textResult(await _0x46edce[_0x2b50d3(0x275)]());
|
|
1721
|
+
} catch (_0x31dc61) {
|
|
1722
|
+
return textResult(_0x31dc61 instanceof Error ? _0x31dc61[_0x2b50d3(_0x3cc155._0x3e4b2a)] : _0x2b50d3(0x233), !![]);
|
|
1723
|
+
}
|
|
1724
|
+
}), _0xd221c[_0x2c5fb4(0x266)](_0x2c5fb4(0x1e5), _0x2c5fb4(_0x415411._0x586499), {
|
|
1725
|
+
'channel': _0x3912ab['string'](),
|
|
1726
|
+
'limit': _0x3912ab[_0x2c5fb4(_0x415411._0x172072)]()[_0x2c5fb4(0x2fe)](),
|
|
1727
|
+
'before': _0x3912ab[_0x2c5fb4(0x30a)]()['optional'](),
|
|
1728
|
+
'after': _0x3912ab[_0x2c5fb4(0x30a)]()['optional']()
|
|
1729
|
+
}, async _0x4c1f0a => {
|
|
1730
|
+
const _0x5bd800 = _0x2c5fb4;
|
|
1731
|
+
try {
|
|
1732
|
+
return textResult(await _0x46edce[_0x5bd800(0x1e5)](_0x4c1f0a));
|
|
1733
|
+
} catch (_0x430ebe) {
|
|
1734
|
+
return textResult(_0x430ebe instanceof Error ? _0x430ebe[_0x5bd800(_0x22df5d._0x99f8c2)] : _0x5bd800(_0x22df5d._0x41aa32), !![]);
|
|
1735
|
+
}
|
|
1736
|
+
}), _0xd221c['tool'](_0x2c5fb4(_0x415411._0x5707e8), _0x2c5fb4(_0x415411._0x16172a), {}, async () => {
|
|
1737
|
+
const _0x109d89 = _0x2c5fb4;
|
|
1738
|
+
try {
|
|
1739
|
+
return textResult(await _0x46edce[_0x109d89(_0x1410e8._0x2f0fbe)]());
|
|
1740
|
+
} catch (_0x296f3c) {
|
|
1741
|
+
return textResult(_0x296f3c instanceof Error ? _0x296f3c[_0x109d89(0x33d)] : 'list_server\x20failed', !![]);
|
|
1742
|
+
}
|
|
1743
|
+
}), _0xd221c['tool'](_0x2c5fb4(0x2ee), _0x2c5fb4(_0x415411._0x49f455), {
|
|
1744
|
+
'channel': _0x3912ab[_0x2c5fb4(_0x415411._0x5d1b3f)](),
|
|
1745
|
+
'status': _0x3912ab[_0x2c5fb4(_0x415411._0x7a967a)]([
|
|
1746
|
+
_0x2c5fb4(_0x415411._0x1eb7bc),
|
|
1747
|
+
_0x2c5fb4(0x341),
|
|
1748
|
+
'in_review',
|
|
1749
|
+
'done'
|
|
1750
|
+
])[_0x2c5fb4(0x2fe)]()
|
|
1751
|
+
}, async _0x5d3623 => {
|
|
1752
|
+
const _0x1476e1 = _0x2c5fb4;
|
|
1753
|
+
try {
|
|
1754
|
+
return textResult(await _0x46edce[_0x1476e1(0x2ee)](_0x5d3623));
|
|
1755
|
+
} catch (_0x210af4) {
|
|
1756
|
+
return textResult(_0x210af4 instanceof Error ? _0x210af4[_0x1476e1(0x33d)] : _0x1476e1(_0x237257._0x2f9ca6), !![]);
|
|
1757
|
+
}
|
|
1758
|
+
}), _0xd221c[_0x2c5fb4(0x266)](_0x2c5fb4(_0x415411._0x494d3e), _0x2c5fb4(_0x415411._0x52c6f7), {
|
|
1759
|
+
'channel': _0x3912ab[_0x2c5fb4(0x2df)](),
|
|
1760
|
+
'idempotency_key': _0x3912ab[_0x2c5fb4(_0x415411._0x28f508)]()[_0x2c5fb4(_0x415411._0x2df2fb)](),
|
|
1761
|
+
'tasks': _0x3912ab[_0x2c5fb4(0x2f2)](_0x3912ab['object']({
|
|
1762
|
+
'title': _0x3912ab['string'](),
|
|
1763
|
+
'description': _0x3912ab[_0x2c5fb4(0x2df)]()[_0x2c5fb4(0x2fe)](),
|
|
1764
|
+
'priority': _0x3912ab[_0x2c5fb4(0x1fc)]([
|
|
1765
|
+
_0x2c5fb4(_0x415411._0x338332),
|
|
1766
|
+
_0x2c5fb4(_0x415411._0x1e4a44),
|
|
1767
|
+
_0x2c5fb4(_0x415411._0x3ae380),
|
|
1768
|
+
_0x2c5fb4(_0x415411._0x250f4f)
|
|
1769
|
+
])[_0x2c5fb4(0x2fe)]()
|
|
1770
|
+
}))
|
|
1771
|
+
}, async _0x2ec8d9 => {
|
|
1772
|
+
const _0x2464ed = _0x2c5fb4;
|
|
1773
|
+
try {
|
|
1774
|
+
return textResult(await _0x46edce[_0x2464ed(0x1f1)](_0x2ec8d9));
|
|
1775
|
+
} catch (_0x3c3a6f) {
|
|
1776
|
+
return textResult(_0x3c3a6f instanceof Error ? _0x3c3a6f[_0x2464ed(_0x45d1a8._0x42093c)] : _0x2464ed(_0x45d1a8._0x58365b), !![]);
|
|
1777
|
+
}
|
|
1778
|
+
}), _0xd221c['tool'](_0x2c5fb4(0x2f1), _0x2c5fb4(0x2f4), {
|
|
1779
|
+
'channel': _0x3912ab['string'](),
|
|
1780
|
+
'task_numbers': _0x3912ab[_0x2c5fb4(_0x415411._0xf828fe)](_0x3912ab[_0x2c5fb4(0x30a)]())[_0x2c5fb4(_0x415411._0x33ae70)](),
|
|
1781
|
+
'message_ids': _0x3912ab['array'](_0x3912ab['string']())[_0x2c5fb4(0x2fe)](),
|
|
1782
|
+
'evidence': _0x3912ab[_0x2c5fb4(0x243)](_0x3912ab[_0x2c5fb4(0x2df)](), _0x3912ab[_0x2c5fb4(0x1f6)]({
|
|
1783
|
+
'create_thread': _0x3912ab[_0x2c5fb4(_0x415411._0xb5f14c)]()[_0x2c5fb4(_0x415411._0x33ae70)](),
|
|
1784
|
+
'create_task': _0x3912ab[_0x2c5fb4(_0x415411._0x1de7b9)]()['optional']()
|
|
1785
|
+
}))['optional'](),
|
|
1786
|
+
'idempotency_key': _0x3912ab[_0x2c5fb4(_0x415411._0x28f508)]()[_0x2c5fb4(_0x415411._0x2df2fb)]()
|
|
1787
|
+
}, async _0x2f8b31 => {
|
|
1788
|
+
const _0x441c6f = _0x2c5fb4;
|
|
1789
|
+
try {
|
|
1790
|
+
return textResult(await _0x46edce[_0x441c6f(_0x62e427._0xc42fdd)](_0x2f8b31));
|
|
1791
|
+
} catch (_0x469948) {
|
|
1792
|
+
return textResult(_0x469948 instanceof Error ? _0x469948[_0x441c6f(0x33d)] : 'claim_tasks\x20failed', !![]);
|
|
1793
|
+
}
|
|
1794
|
+
}), _0xd221c[_0x2c5fb4(_0x415411._0x30cc99)](_0x2c5fb4(_0x415411._0x5d8b4b), _0x2c5fb4(0x34c), {
|
|
1795
|
+
'channel': _0x3912ab[_0x2c5fb4(_0x415411._0x3c942a)](),
|
|
1796
|
+
'task_number': _0x3912ab['number'](),
|
|
1797
|
+
'idempotency_key': _0x3912ab[_0x2c5fb4(0x2df)]()[_0x2c5fb4(_0x415411._0x33ae70)]()
|
|
1798
|
+
}, async _0x312071 => {
|
|
1799
|
+
const _0x21df5d = _0x2c5fb4;
|
|
1800
|
+
try {
|
|
1801
|
+
return textResult(await _0x46edce[_0x21df5d(0x30e)](_0x312071));
|
|
1802
|
+
} catch (_0xb1f365) {
|
|
1803
|
+
return textResult(_0xb1f365 instanceof Error ? _0xb1f365[_0x21df5d(_0x4aae32._0x1c4a74)] : _0x21df5d(0x251), !![]);
|
|
1804
|
+
}
|
|
1805
|
+
}), _0xd221c[_0x2c5fb4(_0x415411._0x30cc99)](_0x2c5fb4(0x276), _0x2c5fb4(0x29d), {
|
|
1806
|
+
'channel': _0x3912ab[_0x2c5fb4(0x2df)](),
|
|
1807
|
+
'task_number': _0x3912ab[_0x2c5fb4(0x30a)](),
|
|
1808
|
+
'status': _0x3912ab[_0x2c5fb4(_0x415411._0x7a967a)]([
|
|
1809
|
+
_0x2c5fb4(_0x415411._0x46f653),
|
|
1810
|
+
_0x2c5fb4(0x341),
|
|
1811
|
+
_0x2c5fb4(_0x415411._0x17a866),
|
|
1812
|
+
_0x2c5fb4(_0x415411._0x41d1f8)
|
|
1813
|
+
]),
|
|
1814
|
+
'idempotency_key': _0x3912ab[_0x2c5fb4(_0x415411._0x3c942a)]()[_0x2c5fb4(0x2fe)]()
|
|
1815
|
+
}, async _0x7468c5 => {
|
|
1816
|
+
const _0x5e99ba = _0x2c5fb4;
|
|
1817
|
+
try {
|
|
1818
|
+
return textResult(await _0x46edce[_0x5e99ba(0x276)](_0x7468c5));
|
|
1819
|
+
} catch (_0x465abe) {
|
|
1820
|
+
return textResult(_0x465abe instanceof Error ? _0x465abe[_0x5e99ba(0x33d)] : _0x5e99ba(_0x3863a8._0x20f4f3), !![]);
|
|
1821
|
+
}
|
|
1822
|
+
}), _0xd221c['tool']('upload_file', _0x2c5fb4(_0x415411._0x23a2d6), {
|
|
1823
|
+
'channel': _0x3912ab[_0x2c5fb4(_0x415411._0x3c942a)](),
|
|
1824
|
+
'file_path': _0x3912ab['string']()
|
|
1825
|
+
}, async _0x367ea4 => {
|
|
1826
|
+
const _0x3af41e = _0x2c5fb4;
|
|
1827
|
+
try {
|
|
1828
|
+
return textResult(await _0x46edce[_0x3af41e(_0x5a322b._0x15d167)](_0x367ea4));
|
|
1829
|
+
} catch (_0x15ff3c) {
|
|
1830
|
+
return textResult(_0x15ff3c instanceof Error ? _0x15ff3c['message'] : _0x3af41e(0x296), !![]);
|
|
1831
|
+
}
|
|
1832
|
+
}), _0xd221c[_0x2c5fb4(_0x415411._0x30cc99)]('view_file', 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0x3912ab[_0x2c5fb4(_0x415411._0x90b999)]() }, async _0x1371f1 => {
|
|
1833
|
+
const _0x5bc78c = _0x2c5fb4;
|
|
1834
|
+
try {
|
|
1835
|
+
return textResult(await _0x46edce[_0x5bc78c(0x2c4)](_0x1371f1));
|
|
1836
|
+
} catch (_0xa88755) {
|
|
1837
|
+
return textResult(_0xa88755 instanceof Error ? _0xa88755['message'] : _0x5bc78c(_0x59b358._0xf42f71), !![]);
|
|
1838
|
+
}
|
|
1839
|
+
}), _0xd221c['tool'](_0x2c5fb4(_0x415411._0x424f2b), 'Check\x20the\x20current\x20status\x20of\x20a\x20spawned\x20worker\x20by\x20its\x20work\x20key.', { 'work_key': _0x3912ab['string']() }, async _0xb1d3a0 => {
|
|
1840
|
+
const _0x5c9197 = _0x2c5fb4;
|
|
1841
|
+
try {
|
|
1842
|
+
return textResult(await _0x46edce[_0x5c9197(_0x43486e._0x33e731)](_0xb1d3a0));
|
|
1843
|
+
} catch (_0x510dd3) {
|
|
1844
|
+
return textResult(_0x510dd3 instanceof Error ? _0x510dd3['message'] : _0x5c9197(0x323), !![]);
|
|
1845
|
+
}
|
|
1846
|
+
}), _0xd221c['tool']('get_worker_result', _0x2c5fb4(_0x415411._0x16c7f3), { 'work_key': _0x3912ab[_0x2c5fb4(_0x415411._0x90b999)]() }, async _0x28d78a => {
|
|
1847
|
+
const _0x3126db = _0x2c5fb4;
|
|
1848
|
+
try {
|
|
1849
|
+
return textResult(await _0x46edce[_0x3126db(0x2a3)](_0x28d78a));
|
|
1850
|
+
} catch (_0x5b3d82) {
|
|
1851
|
+
return textResult(_0x5b3d82 instanceof Error ? _0x5b3d82[_0x3126db(0x33d)] : _0x3126db(0x32d), !![]);
|
|
1852
|
+
}
|
|
1853
|
+
}), _0xd221c[_0x2c5fb4(_0x415411._0x10003e)](_0x2c5fb4(0x314), 'Signal\x20that\x20the\x20current\x20worker\x20session\x20is\x20finished\x20and\x20provide\x20a\x20result\x20summary.', {
|
|
1854
|
+
'work_key': _0x3912ab[_0x2c5fb4(_0x415411._0x5eb5f5)](),
|
|
1855
|
+
'result': _0x3912ab[_0x2c5fb4(0x1fc)]([
|
|
1856
|
+
_0x2c5fb4(_0x415411._0x1a68d2),
|
|
1857
|
+
_0x2c5fb4(_0x415411._0x5ab23d),
|
|
1858
|
+
_0x2c5fb4(0x240)
|
|
1859
|
+
]),
|
|
1860
|
+
'summary': _0x3912ab[_0x2c5fb4(_0x415411._0x2f68fc)](),
|
|
1861
|
+
'decisions': _0x3912ab[_0x2c5fb4(_0x415411._0x2e8f5e)](_0x3912ab[_0x2c5fb4(0x2df)]())['optional'](),
|
|
1862
|
+
'files_changed': _0x3912ab[_0x2c5fb4(0x2f2)](_0x3912ab[_0x2c5fb4(_0x415411._0x2f68fc)]())[_0x2c5fb4(0x2fe)](),
|
|
1863
|
+
'open_issues': _0x3912ab[_0x2c5fb4(_0x415411._0x2e8f5e)](_0x3912ab['string']())['optional'](),
|
|
1864
|
+
'next_steps': _0x3912ab[_0x2c5fb4(_0x415411._0x2b6125)](_0x3912ab['string']())[_0x2c5fb4(_0x415411._0x33ae70)]()
|
|
1865
|
+
}, async _0x50657e => {
|
|
1866
|
+
const _0x33cbfb = _0x2c5fb4;
|
|
1867
|
+
try {
|
|
1868
|
+
return textResult(await _0x46edce['finish_worker'](_0x50657e));
|
|
1869
|
+
} catch (_0x41ff54) {
|
|
1870
|
+
return textResult(_0x41ff54 instanceof Error ? _0x41ff54[_0x33cbfb(_0x1aba00._0x4d712e)] : _0x33cbfb(0x33c), !![]);
|
|
1871
|
+
}
|
|
1872
|
+
}), _0xd221c['tool'](_0x2c5fb4(0x330), _0x2c5fb4(0x246), {
|
|
1873
|
+
'work_key': _0x3912ab['string'](),
|
|
1874
|
+
'reason': _0x3912ab['string']()
|
|
1875
|
+
}, async _0x3b1ef4 => {
|
|
1876
|
+
const _0x582fcb = _0x2c5fb4;
|
|
1877
|
+
try {
|
|
1878
|
+
return textResult(await _0x46edce['escalate_to_main'](_0x3b1ef4));
|
|
1879
|
+
} catch (_0x2188e8) {
|
|
1880
|
+
return textResult(_0x2188e8 instanceof Error ? _0x2188e8[_0x582fcb(0x33d)] : _0x582fcb(_0x3cb1b8._0x132156), !![]);
|
|
1881
|
+
}
|
|
1882
|
+
}), _0x24024f?.['workerMode'] && _0xd221c[_0x2c5fb4(0x266)](_0x2c5fb4(0x281), _0x2c5fb4(_0x415411._0x43f330), { 'work_key': _0x3912ab[_0x2c5fb4(0x2df)]() }, async _0xc368ae => {
|
|
1883
|
+
const _0x270004 = _0x2c5fb4;
|
|
1884
|
+
try {
|
|
1885
|
+
return textResult(await _0x46edce[_0x270004(_0x45f4be._0x502cd4)](_0xc368ae));
|
|
1886
|
+
} catch (_0x11381b) {
|
|
1887
|
+
return textResult(_0x11381b instanceof Error ? _0x11381b[_0x270004(0x33d)] : _0x270004(0x2a9), !![]);
|
|
1888
|
+
}
|
|
1889
|
+
});
|
|
1567
1890
|
}
|
|
1568
|
-
function
|
|
1569
|
-
const
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1891
|
+
function _0x542c() {
|
|
1892
|
+
const _0x5a57bc = [
|
|
1893
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1894
|
+
'C2vYDMvYvxjS',
|
|
1895
|
+
'zgvJAxnPB25Z',
|
|
1896
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1897
|
+
'y2HHBM5LBa',
|
|
1898
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1899
|
+
'z2v0rgf0zq',
|
|
1900
|
+
'Aw5KzxHpzG',
|
|
1901
|
+
'Dg9VBa',
|
|
1902
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
1903
|
+
'zgLZCg9ZAxrPB24',
|
|
1904
|
+
'y29TCgXLDgvK',
|
|
1905
|
+
'DhLWzq',
|
|
1906
|
+
'CMvHC29U',
|
|
1907
|
+
'Aw1Hz2uVANbLzW',
|
|
1908
|
+
'AwrSzq',
|
|
1909
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1910
|
+
'BwvZC2fNzuLK',
|
|
1911
|
+
'Aw5JBhvKzxm',
|
|
1912
|
+
'DxbKyxrL',
|
|
1913
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
1914
|
+
'khvUA25VD24P',
|
|
1915
|
+
'nu1Vwujyuq',
|
|
1916
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
1917
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1918
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
1919
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
1920
|
+
'ls1ZzxnZAw9UlwLK',
|
|
1921
|
+
'DxrMoa',
|
|
1922
|
+
'zxzLBNrtzxe',
|
|
1923
|
+
'ig1LC3nHz2vZkqOk',
|
|
1924
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
1925
|
+
'BgvUz3rO',
|
|
1926
|
+
'B3bLBL9PC3n1zxm',
|
|
1927
|
+
'yxv0BZO',
|
|
1928
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1929
|
+
'DgfZA051BwjLCG',
|
|
1930
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
1931
|
+
'C2vYDMvY',
|
|
1932
|
+
'y29UBMvJDa',
|
|
1933
|
+
'w3rHCMDLDd0',
|
|
1934
|
+
'Aw1Hz2uVD2vICa',
|
|
1935
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
1936
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
1937
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
1938
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
1939
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1940
|
+
'BMv4Den1CNnVCG',
|
|
1941
|
+
'iYmJieH1BwfUCW',
|
|
1942
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
1943
|
+
'CMvWBgfJzq',
|
|
1944
|
+
'igzHAwXLzdOG',
|
|
1945
|
+
'Aw1Hz2uVCg5N',
|
|
1946
|
+
'C3vJy2vZCW',
|
|
1947
|
+
'v29YA2vYici',
|
|
1948
|
+
'zg0T',
|
|
1949
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1950
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1951
|
+
'odu3ndaYrLnutgn4',
|
|
1952
|
+
'CgfYDgLJAxbHBNrjza',
|
|
1953
|
+
'Dg9tDhjPBMC',
|
|
1954
|
+
'ChjVDg9JB2W',
|
|
1955
|
+
'DgHYzwfKswq',
|
|
1956
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
1957
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1958
|
+
'AgvHzgvYCW',
|
|
1959
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1960
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1961
|
+
'zMLSDgvY',
|
|
1962
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1963
|
+
'ywDLBNq',
|
|
1964
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
1965
|
+
'z2v0vgLTzq',
|
|
1966
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1967
|
+
'AM9PBG',
|
|
1968
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1969
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1970
|
+
'C3rHCNrZv2L0Aa',
|
|
1971
|
+
'z2v0u2vJB25KCW',
|
|
1972
|
+
'zxHWAxjLC0f0',
|
|
1973
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1974
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
1975
|
+
'ywz0zxjtzxe',
|
|
1976
|
+
'yM9KEu1HCMTKB3DU',
|
|
1977
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1978
|
+
'r0vu',
|
|
1979
|
+
'y2HHBM5LBhm',
|
|
1980
|
+
'zMLSzw5HBwu',
|
|
1981
|
+
'lsaJ',
|
|
1982
|
+
'zg9Uzq',
|
|
1983
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
1984
|
+
'AgfZ',
|
|
1985
|
+
'DgL0Bgu',
|
|
1986
|
+
'lcbWCMv2Awv3pq',
|
|
1987
|
+
'CM9VDe1LC3nHz2vjza',
|
|
1988
|
+
'ig1ZzZ0',
|
|
1989
|
+
'ls1Zzxj2zxiTDxjS',
|
|
1990
|
+
'CMvZDwX0sNnVBG',
|
|
1991
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
1992
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1993
|
+
'y3vYC29Y',
|
|
1994
|
+
'Bg9JywXLq29TCgfYzq',
|
|
1995
|
+
'DMLLD19MAwXL',
|
|
1996
|
+
'y2XHAw1uyxnRCW',
|
|
1997
|
+
'lIbnzxnZywDLieLeoIa',
|
|
1998
|
+
'D29YA2vYtw9Kzq',
|
|
1999
|
+
'BMfTzq',
|
|
2000
|
+
'zgvSzxrL',
|
|
2001
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
2002
|
+
'AgLNAa',
|
|
2003
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
2004
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
2005
|
+
'AgfZtw9Yzq',
|
|
2006
|
+
'l3nLBMq',
|
|
2007
|
+
'C2v0',
|
|
2008
|
+
'DgHYzwfKtNvTyMvY',
|
|
2009
|
+
'zxH0BMfTzq',
|
|
2010
|
+
'BgLZDfrHC2TZ',
|
|
2011
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
2012
|
+
'iYmJienOyw5UzwXZ',
|
|
2013
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
2014
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
2015
|
+
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
2016
|
+
'BwvZC2fNzxm',
|
|
2017
|
+
'y2HHBM5LBeLK',
|
|
2018
|
+
'igTPBMq9',
|
|
2019
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
2020
|
+
'v29YA2vYia',
|
|
2021
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
2022
|
+
'C3rYAw5N',
|
|
2023
|
+
'AxnbCNjHEq',
|
|
2024
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
2025
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
2026
|
+
'mc4WlJa',
|
|
2027
|
+
'igf0DgfJAg1LBNq',
|
|
2028
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
2029
|
+
'z2v0rNvSBfLLyxi',
|
|
2030
|
+
'Bwv0yq',
|
|
2031
|
+
'DgvZDa',
|
|
2032
|
+
'y3jLyxrLzef0',
|
|
2033
|
+
'AhvTyw5Z',
|
|
2034
|
+
'DgHYzwfKu2HVCNrjza',
|
|
2035
|
+
'zMfSC2u',
|
|
2036
|
+
'DMLZAwjPBgL0Eq',
|
|
2037
|
+
'BgLZDf90yxnRCW',
|
|
2038
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
2039
|
+
'DxnLCG',
|
|
2040
|
+
'y2XHAw1FDgfZA3m',
|
|
2041
|
+
'yxjYyxK',
|
|
2042
|
+
'ChvZAa',
|
|
2043
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
2044
|
+
'DgfYz2v0zwruyxnR',
|
|
2045
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
2046
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
2047
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
2048
|
+
'Aw1Hz2uVz2LM',
|
|
2049
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
2050
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
2051
|
+
'CNvUBMLUzW',
|
|
2052
|
+
'vgfZAZOG',
|
|
2053
|
+
'B3b0Aw9UywW',
|
|
2054
|
+
'ywz0zxi',
|
|
2055
|
+
'z2v0tw9UDgG',
|
|
2056
|
+
'yMXVy2TLza',
|
|
2057
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
2058
|
+
'C2XPy2u',
|
|
2059
|
+
'ywjVCNrLza',
|
|
2060
|
+
'Axnoyu4',
|
|
2061
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
2062
|
+
'C29YDa',
|
|
2063
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
2064
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
2065
|
+
'BNvTyMvY',
|
|
2066
|
+
'BwvKAxvT',
|
|
2067
|
+
'yMvMB3jL',
|
|
2068
|
+
'ywDLBNrjza',
|
|
2069
|
+
'Dw5JBgfPBv90yxnR',
|
|
2070
|
+
'CMvZDwX0CW',
|
|
2071
|
+
'yxjNDG',
|
|
2072
|
+
'xsba',
|
|
2073
|
+
'C29Tzq',
|
|
2074
|
+
'Dg9gAxHLza',
|
|
2075
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
2076
|
+
'zgf0yq',
|
|
2077
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
2078
|
+
'y2f0y2G',
|
|
2079
|
+
'lMjPBG',
|
|
2080
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
2081
|
+
'mtGXnZa2ngfbvwv3zq',
|
|
2082
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
2083
|
+
'BgLTAxq',
|
|
2084
|
+
'AxngAw5PDgu',
|
|
2085
|
+
'y2HHDa',
|
|
2086
|
+
'ls1Hz2vUDc1Pza',
|
|
2087
|
+
'Dw5RBM93BG',
|
|
2088
|
+
'ANnVBG',
|
|
2089
|
+
'DgHYzwfK',
|
|
2090
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
2091
|
+
'BM93',
|
|
2092
|
+
'y2HHBM5LBe5HBwu',
|
|
2093
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
2094
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
2095
|
+
'kg5VBMuP',
|
|
2096
|
+
'y2fJAgveAxi',
|
|
2097
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
2098
|
+
'C2vX',
|
|
2099
|
+
'yxr0ywnOBwvUDhm',
|
|
2100
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
2101
|
+
'DMfSDwu',
|
|
2102
|
+
'CNvUswq',
|
|
2103
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
2104
|
+
'mtaWmda0mZjmAgTJr08',
|
|
2105
|
+
'zNjVBq',
|
|
2106
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
2107
|
+
'l2zPBMLZAa',
|
|
2108
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
2109
|
+
'Cgf5Bg9HzePZB24',
|
|
2110
|
+
'Aw5FCMv2Awv3',
|
|
2111
|
+
'pgvTChr5pG',
|
|
2112
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
2113
|
+
'iYmGu2vYDMvYoIa',
|
|
2114
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
2115
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
2116
|
+
'BwvZC2fNzq',
|
|
2117
|
+
'C3rHCNrLza',
|
|
2118
|
+
'cGOTls0G',
|
|
2119
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
2120
|
+
'Aw5FChjVz3jLC3m',
|
|
2121
|
+
'Dg9KBW',
|
|
2122
|
+
'l3rHC2TZl2nSywLT',
|
|
2123
|
+
'yxr0ywnOBwvUDeLK',
|
|
2124
|
+
'C2vYDMvYtMfTzq',
|
|
2125
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
2126
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
2127
|
+
'C2LNBMfS',
|
|
2128
|
+
'zMLSzxnFy2HHBMDLza',
|
|
2129
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
2130
|
+
'ywrK',
|
|
2131
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
2132
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
2133
|
+
'BwvTyMvY',
|
|
2134
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
2135
|
+
'DxbSB2fKx2zPBgu',
|
|
2136
|
+
'CgfKu3rHCNq',
|
|
2137
|
+
'BwfW',
|
|
2138
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
2139
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
2140
|
+
'DgfZA3m',
|
|
2141
|
+
'C2f2zq',
|
|
2142
|
+
'lNnSB2nR',
|
|
2143
|
+
'yxjYyxLcDwzMzxi',
|
|
2144
|
+
'AxngAwXL',
|
|
2145
|
+
'zgvZy3jPChrPB24',
|
|
2146
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
2147
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
2148
|
+
'CMvZDwX0',
|
|
2149
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
2150
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
2151
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
2152
|
+
'nJa0mJKYs05rz2fM',
|
|
2153
|
+
'CxvLDwvK',
|
|
2154
|
+
'CMvZCg9UC2u',
|
|
2155
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
2156
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
2157
|
+
'l3n0yxj0',
|
|
2158
|
+
'BwLU',
|
|
2159
|
+
'C2vUzgvYvhLWzq',
|
|
2160
|
+
'ywDLBNrZ',
|
|
2161
|
+
'zgLNzxn0',
|
|
2162
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
2163
|
+
'CgfYDgLJAxbHBNq',
|
|
2164
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
2165
|
+
'ihn0yxr1CZ0',
|
|
2166
|
+
'DgfYz2v0',
|
|
2167
|
+
'Bwf4',
|
|
2168
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
2169
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
2170
|
+
'kgXLz2fJEsK',
|
|
2171
|
+
'BgLZDf9Zzxj2zxi',
|
|
2172
|
+
'C2L6zuj5DgvZ',
|
|
2173
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
2174
|
+
'CMvHzf9OAxn0B3j5',
|
|
2175
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
2176
|
+
'nta4ndC0ohrdCvzira',
|
|
2177
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
2178
|
+
'igLUia',
|
|
2179
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
2180
|
+
'zgvZDhjVEwvK',
|
|
2181
|
+
'CMvHzeHPC3rVCNK',
|
|
2182
|
+
'Ahr0CdO',
|
|
2183
|
+
'ywDNCMvNyxrLswq',
|
|
2184
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
2185
|
+
'DgHYzwfKvgfYz2v0',
|
|
2186
|
+
'y3jLyxrLx3rHC2TZ',
|
|
2187
|
+
'mJjXAxfMyKC',
|
|
2188
|
+
'C3vTBwfYEq',
|
|
2189
|
+
'CMvXDwvZDfvYBa',
|
|
2190
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
2191
|
+
'B2jQzwn0',
|
|
2192
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
2193
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
2194
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
2195
|
+
'lsba',
|
|
2196
|
+
'ndbKBej6EvO',
|
|
2197
|
+
'zw51Bq',
|
|
2198
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
2199
|
+
'icHPzdO',
|
|
2200
|
+
'C3rHDhvZ',
|
|
2201
|
+
'iJOGC3rHDhvZpq',
|
|
2202
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
2203
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
2204
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
2205
|
+
'y29UDgvUDfr5Cgu',
|
|
2206
|
+
'ue9tva',
|
|
2207
|
+
'D29YA2vYsgfUzg9MzG',
|
|
2208
|
+
'Bwf0y2Hoyw1L',
|
|
2209
|
+
'zxjYB3i',
|
|
2210
|
+
'zM9Yy2vszwzYzxnO',
|
|
2211
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
2212
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
2213
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
2214
|
+
'mtGXmZqWmwrbzMfJrG',
|
|
2215
|
+
'iokaLca',
|
|
2216
|
+
'A2LUza',
|
|
2217
|
+
'DMfSDwvZ',
|
|
2218
|
+
'BgLZDfnLCNzLCG',
|
|
2219
|
+
'AxnjBNrLz2vY',
|
|
2220
|
+
'CgfYC2vjBNq',
|
|
2221
|
+
'z2v0sg91CNm',
|
|
2222
|
+
'l3rHC2TZpW',
|
|
2223
|
+
'ig1LC3nHz2u9',
|
|
2224
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
2225
|
+
'EM9K',
|
|
2226
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
2227
|
+
'DgfZA19Pza',
|
|
2228
|
+
'ihrPBwu9',
|
|
2229
|
+
'ignSywLTzwq',
|
|
2230
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
2231
|
+
'ihr5Cgu9ywDLBNq',
|
|
2232
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
2233
|
+
'vgfZAYa',
|
|
2234
|
+
'D3nZoG',
|
|
2235
|
+
'l3rHC2TZ',
|
|
2236
|
+
'yMfZzty0',
|
|
2237
|
+
'l2nVBNrLBNq',
|
|
2238
|
+
'C2nOzwr1BgvKrM9Y',
|
|
2239
|
+
'DhjPBq',
|
|
2240
|
+
'zw50CMLLCW',
|
|
2241
|
+
'C2vUzgvYtMfTzq',
|
|
2242
|
+
'Bg93',
|
|
2243
|
+
'D29YA19RzxK',
|
|
2244
|
+
'yxnPzgu',
|
|
2245
|
+
'z2v0twLUDxrLCW',
|
|
2246
|
+
'z2v0',
|
|
2247
|
+
'C3rYAw5NAwz5',
|
|
2248
|
+
'ywXS',
|
|
2249
|
+
'l2HPC3rVCNK/',
|
|
2250
|
+
'DgfZAY0',
|
|
2251
|
+
'yMfZzw5HBwu',
|
|
2252
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
2253
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
2254
|
+
'D29YA2vY',
|
|
2255
|
+
'zMv0y2HjBxbS',
|
|
2256
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
2257
|
+
'DgfZAW',
|
|
2258
|
+
'DgfZA0LK',
|
|
2259
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
2260
|
+
'y2XPzw50',
|
|
2261
|
+
'Dg9mB3DLCKnHC2u',
|
|
2262
|
+
'C2vUzf9TzxnZywDL',
|
|
2263
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
2264
|
+
'AhvTyw4',
|
|
2265
|
+
'zMfPBgvK',
|
|
2266
|
+
'C2L6zq',
|
|
2267
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
2268
|
+
'CMvJB3jK',
|
|
2269
|
+
'zg06',
|
|
2270
|
+
'D29YA2vYCW',
|
|
2271
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
2272
|
+
'mZzTzNnvwu4',
|
|
2273
|
+
'zMLUza',
|
|
2274
|
+
'uefuq0G',
|
|
2275
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
2276
|
+
'y29UDgvUDa',
|
|
2277
|
+
'BwvTyMvYCW',
|
|
2278
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
2279
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
2280
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
2281
|
+
'zgfLBw9UqxbPs2v5',
|
|
2282
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
2283
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
2284
|
+
'ywjVCNq',
|
|
2285
|
+
'DxjNzw50',
|
|
2286
|
+
'Agv4',
|
|
2287
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
2288
|
+
'BMv4Df9ZDgvWCW',
|
|
2289
|
+
'Dg9ju09tDhjPBMC',
|
|
2290
|
+
'nti3mJaWyKr6DLr6',
|
|
2291
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
2292
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
2293
|
+
'mLPXs1jlta',
|
|
2294
|
+
'6k+35Rgcia'
|
|
1594
2295
|
];
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
const _0x113eeb = { _0x49af2c: 0x177 }, _0x4355ac = {
|
|
1598
|
-
_0x41ee43: 0x1ac,
|
|
1599
|
-
_0x10ef13: 0x15b,
|
|
1600
|
-
_0x14e854: 0x135,
|
|
1601
|
-
_0x4d5b34: 0x161,
|
|
1602
|
-
_0xc6ee43: 0x143,
|
|
1603
|
-
_0x55a316: 0x15a,
|
|
1604
|
-
_0x44534d: 0x10c
|
|
1605
|
-
}, _0x212542 = {
|
|
1606
|
-
_0x12e5eb: 0x189,
|
|
1607
|
-
_0x5d690a: 0x263,
|
|
1608
|
-
_0x5605f9: 0x165,
|
|
1609
|
-
_0x3c18f1: 0x15b,
|
|
1610
|
-
_0x41d838: 0x143,
|
|
1611
|
-
_0x4a793a: 0x15b
|
|
1612
|
-
}, _0x4700f8 = {
|
|
1613
|
-
_0x1e58f4: 0x189,
|
|
1614
|
-
_0x53d3fe: 0x137,
|
|
1615
|
-
_0x1dde71: 0x165,
|
|
1616
|
-
_0x94d0ad: 0x136,
|
|
1617
|
-
_0x2023be: 0x161,
|
|
1618
|
-
_0x551abd: 0x143,
|
|
1619
|
-
_0x2f68eb: 0x17c,
|
|
1620
|
-
_0x2925ec: 0x156
|
|
1621
|
-
}, _0x251533 = { _0x26fedd: 0x15b }, _0x43e96d = {
|
|
1622
|
-
_0x467130: 0x225,
|
|
1623
|
-
_0x28798a: 0x225,
|
|
1624
|
-
_0x2eb11e: 0x15b
|
|
1625
|
-
}, _0x581463 = {
|
|
1626
|
-
_0x3eeec0: 0x168,
|
|
1627
|
-
_0x34323d: 0x251,
|
|
1628
|
-
_0x3251c1: 0x1bc,
|
|
1629
|
-
_0x152b9a: 0x1a8
|
|
1630
|
-
}, _0x4624ee = { _0x2d0c96: 0x13a }, _0x434db9 = { _0x31fd0f: 0x205 }, _0x3b7275 = { _0x2241c6: 0x12e }, _0xc1400f = { _0x2eed48: 0x1c2 }, _0x19f3b9 = {
|
|
1631
|
-
_0x2744c6: 0x1a9,
|
|
1632
|
-
_0x2960ee: 0x14c,
|
|
1633
|
-
_0x13e78e: 0x161,
|
|
1634
|
-
_0xf23ca: 0x24b,
|
|
1635
|
-
_0x234499: 0x206,
|
|
1636
|
-
_0x2ed77b: 0x242,
|
|
1637
|
-
_0x202ce5: 0x269,
|
|
1638
|
-
_0x5ea41a: 0x14d,
|
|
1639
|
-
_0x1d2a0a: 0x22d,
|
|
1640
|
-
_0x6630d7: 0x253,
|
|
1641
|
-
_0x572545: 0x222
|
|
1642
|
-
}, _0x1eb7aa = { _0x162c21: 0x251 }, _0x48d3d4 = {
|
|
1643
|
-
_0x571381: 0x1f0,
|
|
1644
|
-
_0x3c13da: 0x24c
|
|
1645
|
-
}, _0x278e9f = {
|
|
1646
|
-
_0x302067: 0x151,
|
|
1647
|
-
_0x496be0: 0x189,
|
|
1648
|
-
_0x13196b: 0x251,
|
|
1649
|
-
_0x1a7eae: 0x134,
|
|
1650
|
-
_0x5bc2fd: 0x148,
|
|
1651
|
-
_0x4d1936: 0x148,
|
|
1652
|
-
_0x4f68f2: 0x260,
|
|
1653
|
-
_0x19afaf: 0x146,
|
|
1654
|
-
_0x2f900a: 0x109,
|
|
1655
|
-
_0x27170c: 0x10b,
|
|
1656
|
-
_0x5d5880: 0x201,
|
|
1657
|
-
_0x3f8201: 0x25b,
|
|
1658
|
-
_0x16973c: 0x23d,
|
|
1659
|
-
_0x501b3: 0x26a,
|
|
1660
|
-
_0x1eda9d: 0x252,
|
|
1661
|
-
_0x7ce370: 0xfa,
|
|
1662
|
-
_0x3a2fbb: 0x182,
|
|
1663
|
-
_0x587551: 0x1ac,
|
|
1664
|
-
_0x7e1ced: 0x13d,
|
|
1665
|
-
_0x4a2be3: 0x17a,
|
|
1666
|
-
_0x306199: 0x1ab,
|
|
1667
|
-
_0x5ff2b8: 0x198,
|
|
1668
|
-
_0x50e244: 0x1b9,
|
|
1669
|
-
_0x96a4bc: 0x23d,
|
|
1670
|
-
_0x32c62b: 0x146,
|
|
1671
|
-
_0x12fe54: 0x1f2,
|
|
1672
|
-
_0x5afca3: 0x22a
|
|
1673
|
-
}, _0x38b919 = {
|
|
1674
|
-
_0x3f39fd: 0x189,
|
|
1675
|
-
_0x4c5c84: 0x24c,
|
|
1676
|
-
_0x25d1a0: 0x189,
|
|
1677
|
-
_0x33fdbe: 0x14c,
|
|
1678
|
-
_0x5b9329: 0x1a4,
|
|
1679
|
-
_0x405cba: 0x22d
|
|
1680
|
-
}, _0x4ba564 = {
|
|
1681
|
-
_0x213bd0: 0x189,
|
|
1682
|
-
_0x22bc3b: 0x206,
|
|
1683
|
-
_0x4ddafb: 0x22d,
|
|
1684
|
-
_0x42cff9: 0x10a
|
|
1685
|
-
}, _0x463427 = {
|
|
1686
|
-
_0x1c2508: 0x1a9,
|
|
1687
|
-
_0x16701e: 0x18d,
|
|
1688
|
-
_0x5d7b36: 0x251,
|
|
1689
|
-
_0x1ccd7e: 0xf4,
|
|
1690
|
-
_0x29ed24: 0x222,
|
|
1691
|
-
_0x22daf9: 0x25b,
|
|
1692
|
-
_0x30d3e9: 0x178,
|
|
1693
|
-
_0x592bf8: 0x153,
|
|
1694
|
-
_0x4b164d: 0xf2,
|
|
1695
|
-
_0xf0f746: 0x19d,
|
|
1696
|
-
_0x46be75: 0x22f,
|
|
1697
|
-
_0x195d86: 0x23d,
|
|
1698
|
-
_0x172037: 0x1e6,
|
|
1699
|
-
_0x334a46: 0x201,
|
|
1700
|
-
_0x1938c2: 0x189,
|
|
1701
|
-
_0x208da6: 0x1ac,
|
|
1702
|
-
_0x31f064: 0x1a9,
|
|
1703
|
-
_0x56e8b2: 0x143,
|
|
1704
|
-
_0x256fc4: 0x259
|
|
1705
|
-
}, _0x2e3f85 = _0x42cca9;
|
|
1706
|
-
async function _0x7fa5fb(_0x597388) {
|
|
1707
|
-
const _0x4f31ab = _0x4b08;
|
|
1708
|
-
if (!_0x1090e4[_0x4f31ab(0x189)] || !_0x1090e4[_0x4f31ab(_0x463427._0x1c2508)] || _0x1090e4[_0x4f31ab(0x24c)] || _0x1090e4[_0x4f31ab(0x151)] !== !![])
|
|
1709
|
-
return null;
|
|
1710
|
-
const _0x12323f = parseTarget(_0x597388['channel']);
|
|
1711
|
-
if (_0x12323f['kind'] !== _0x4f31ab(0x13a))
|
|
1712
|
-
return null;
|
|
1713
|
-
const _0x2cb85e = _0x597388[_0x4f31ab(0x260)] != null ? _0x12323f[_0x4f31ab(_0x463427._0x16701e)] + ':t' + _0x597388[_0x4f31ab(0x260)] : _0x12323f[_0x4f31ab(_0x463427._0x16701e)] + ':' + _0x597388[_0x4f31ab(0x153)];
|
|
1714
|
-
let _0x389757;
|
|
1715
|
-
try {
|
|
1716
|
-
const _0x12054f = await _0x1090e4[_0x4f31ab(_0x463427._0x5d7b36)]['readHistory']({
|
|
1717
|
-
'channel': _0x2cb85e,
|
|
1718
|
-
'limit': 0x14
|
|
1719
|
-
});
|
|
1720
|
-
_0x389757 = _0x12054f['messages'][_0x4f31ab(0x230)](_0x253129 => _0x253129['messageId'] === _0x597388[_0x4f31ab(0x153)]);
|
|
1721
|
-
} catch {
|
|
1722
|
-
_0x389757 = void 0x0;
|
|
1723
|
-
}
|
|
1724
|
-
const _0x509734 = _0x597388[_0x4f31ab(0x222)] == null ? _0x4f31ab(_0x463427._0x1ccd7e) : '#' + _0x597388[_0x4f31ab(_0x463427._0x29ed24)], _0x239294 = [
|
|
1725
|
-
_0x4f31ab(_0x463427._0x22daf9) + _0x2cb85e + _0x4f31ab(_0x463427._0x30d3e9) + _0x597388[_0x4f31ab(_0x463427._0x592bf8)][_0x4f31ab(0x242)](0x0, 0x8) + _0x4f31ab(_0x463427._0x4b164d) + new Date()[_0x4f31ab(_0x463427._0xf0f746)]() + _0x4f31ab(_0x463427._0x46be75) + _0x509734 + _0x4f31ab(0x131),
|
|
1726
|
-
'',
|
|
1727
|
-
_0x389757 ? _0x4f31ab(0x185) + _0x389757[_0x4f31ab(_0x463427._0x195d86)] : 'Root\x20task\x20message\x20id:\x20' + _0x597388[_0x4f31ab(_0x463427._0x592bf8)],
|
|
1728
|
-
'',
|
|
1729
|
-
'Thread\x20target:\x20' + _0x2cb85e,
|
|
1730
|
-
_0x4f31ab(_0x463427._0x172037)
|
|
1731
|
-
][_0x4f31ab(_0x463427._0x334a46)]('\x0a'), _0xfc5052 = await fetch(_0x1090e4[_0x4f31ab(_0x463427._0x1938c2)] + '/workers/deliver', {
|
|
1732
|
-
'method': 'POST',
|
|
1733
|
-
'headers': { 'Content-Type': _0x4f31ab(0x182) },
|
|
1734
|
-
'body': JSON[_0x4f31ab(_0x463427._0x208da6)]({
|
|
1735
|
-
'agent_id': _0x1090e4[_0x4f31ab(_0x463427._0x31f064)],
|
|
1736
|
-
'thread_target': _0x2cb85e,
|
|
1737
|
-
'spawn_packet': {
|
|
1738
|
-
'replyTarget': _0x2cb85e,
|
|
1739
|
-
..._0x597388[_0x4f31ab(0x1d9)] ? { 'taskId': _0x597388[_0x4f31ab(0x1d9)] } : _0x597388[_0x4f31ab(0x222)] != null ? { 'taskId': _0x4f31ab(0x238) + _0x597388['taskNumber'] } : {}
|
|
1740
|
-
},
|
|
1741
|
-
'payload': {
|
|
1742
|
-
'mode': _0x4f31ab(0x174),
|
|
1743
|
-
'text': _0x239294
|
|
1744
|
-
}
|
|
1745
|
-
})
|
|
1746
|
-
}), _0x14f31c = await _0xfc5052[_0x4f31ab(0x161)]();
|
|
1747
|
-
if (!_0x14f31c['ok'])
|
|
1748
|
-
throw new Error(_0x14f31c[_0x4f31ab(_0x463427._0x56e8b2)] ?? _0x4f31ab(0x106));
|
|
1749
|
-
return {
|
|
1750
|
-
'stopMain': !![],
|
|
1751
|
-
'threadTarget': _0x2cb85e,
|
|
1752
|
-
'workerDisposition': _0x14f31c[_0x4f31ab(_0x463427._0x256fc4)] === _0x4f31ab(0x1ab) ? 'queued' : _0x4f31ab(0x15d),
|
|
1753
|
-
'workerHandoff': !![],
|
|
1754
|
-
'workerSessionId': _0x14f31c['worker_session_id'] ?? '',
|
|
1755
|
-
'executionMode': 'worker'
|
|
1756
|
-
};
|
|
1757
|
-
}
|
|
1758
|
-
async function _0x25c7cc() {
|
|
1759
|
-
const _0x37303e = _0x4b08;
|
|
1760
|
-
if (!_0x1090e4[_0x37303e(_0x4ba564._0x213bd0)] || !_0x1090e4[_0x37303e(0x1a9)] || _0x1090e4[_0x37303e(0x24c)])
|
|
1761
|
-
return null;
|
|
1762
|
-
try {
|
|
1763
|
-
const _0x831406 = await fetch(_0x1090e4['daemonLocalUrl'] + _0x37303e(0x14c) + encodeURIComponent(_0x1090e4[_0x37303e(0x1a9)])), _0x2bd1e0 = await _0x831406['json']();
|
|
1764
|
-
if (!_0x2bd1e0['ok'])
|
|
1765
|
-
return null;
|
|
1766
|
-
const _0x4df21c = new Set();
|
|
1767
|
-
for (const _0xf50d3b of _0x2bd1e0[_0x37303e(0x24b)]) {
|
|
1768
|
-
_0xf50d3b['status'] !== _0x37303e(_0x4ba564._0x22bc3b) && _0xf50d3b[_0x37303e(0x10a)] && _0x4df21c[_0x37303e(_0x4ba564._0x4ddafb)](_0xf50d3b[_0x37303e(_0x4ba564._0x42cff9)]);
|
|
1769
|
-
}
|
|
1770
|
-
return _0x4df21c[_0x37303e(0x184)] > 0x0 ? _0x4df21c : null;
|
|
1771
|
-
} catch {
|
|
1772
|
-
return null;
|
|
1773
|
-
}
|
|
1774
|
-
}
|
|
1775
|
-
const _0x3d312e = new Set([
|
|
1776
|
-
_0x2e3f85(_0x113eeb._0x49af2c),
|
|
1777
|
-
_0x2e3f85(0x210),
|
|
1778
|
-
_0x2e3f85(0x272)
|
|
1779
|
-
]);
|
|
1780
|
-
async function _0x2ef207() {
|
|
1781
|
-
const _0xf9fddb = _0x2e3f85;
|
|
1782
|
-
if (!_0x1090e4[_0xf9fddb(_0x38b919._0x3f39fd)] || !_0x1090e4['agentId'] || _0x1090e4[_0xf9fddb(_0x38b919._0x4c5c84)])
|
|
1783
|
-
return null;
|
|
1784
|
-
try {
|
|
1785
|
-
const _0x1b266c = await fetch(_0x1090e4[_0xf9fddb(_0x38b919._0x25d1a0)] + _0xf9fddb(_0x38b919._0x33fdbe) + encodeURIComponent(_0x1090e4[_0xf9fddb(0x1a9)])), _0x305de2 = await _0x1b266c['json']();
|
|
1786
|
-
if (!_0x305de2['ok'])
|
|
1787
|
-
return null;
|
|
1788
|
-
const _0x54ee36 = new Set();
|
|
1789
|
-
for (const _0x1df6af of _0x305de2[_0xf9fddb(0x24b)]) {
|
|
1790
|
-
_0x3d312e[_0xf9fddb(_0x38b919._0x5b9329)](_0x1df6af['status']) && _0x1df6af[_0xf9fddb(0x10a)] && _0x54ee36[_0xf9fddb(_0x38b919._0x405cba)](_0x1df6af[_0xf9fddb(0x10a)]);
|
|
1791
|
-
}
|
|
1792
|
-
return _0x54ee36[_0xf9fddb(0x184)] > 0x0 ? _0x54ee36 : null;
|
|
1793
|
-
} catch {
|
|
1794
|
-
return null;
|
|
1795
|
-
}
|
|
1796
|
-
}
|
|
1797
|
-
return {
|
|
1798
|
-
async 'send_message'(_0x10fa5c) {
|
|
1799
|
-
const _0x3ff19a = _0x2e3f85;
|
|
1800
|
-
if (!_0x1090e4['workerMode'] && _0x1090e4[_0x3ff19a(_0x278e9f._0x302067)] && _0x1090e4[_0x3ff19a(_0x278e9f._0x496be0)] && _0x1090e4[_0x3ff19a(0x1a9)]) {
|
|
1801
|
-
const _0x18a05c = await _0x1090e4[_0x3ff19a(_0x278e9f._0x13196b)][_0x3ff19a(_0x278e9f._0x1a7eae)](_0x10fa5c[_0x3ff19a(0x146)]);
|
|
1802
|
-
if (_0x18a05c['task'] && _0x18a05c[_0x3ff19a(0x109)]) {
|
|
1803
|
-
const _0x31bb1f = _0x18a05c[_0x3ff19a(_0x278e9f._0x5bc2fd)]['taskNumber'] != null ? '#' + _0x18a05c[_0x3ff19a(_0x278e9f._0x4d1936)][_0x3ff19a(0x222)] : _0x3ff19a(0xf4), _0x4db4b2 = _0x18a05c['threadNumber'] != null ? _0x18a05c['target'] + ':t' + _0x18a05c[_0x3ff19a(_0x278e9f._0x4f68f2)] : _0x18a05c[_0x3ff19a(_0x278e9f._0x19afaf)] + ':' + _0x18a05c[_0x3ff19a(_0x278e9f._0x2f900a)]['slice'](0x0, 0x8), _0x2a28b0 = await _0x2ef207();
|
|
1804
|
-
if (_0x2a28b0?.[_0x3ff19a(0x1a4)](_0x4db4b2))
|
|
1805
|
-
return [
|
|
1806
|
-
_0x3ff19a(0x1cf) + _0x31bb1f + _0x3ff19a(0x187) + _0x4db4b2 + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
|
|
1807
|
-
_0x3ff19a(_0x278e9f._0x27170c)
|
|
1808
|
-
][_0x3ff19a(_0x278e9f._0x5d5880)]('\x0a');
|
|
1809
|
-
const _0x55babd = [
|
|
1810
|
-
_0x3ff19a(_0x278e9f._0x3f8201) + _0x4db4b2 + _0x3ff19a(0x1d2) + new Date()[_0x3ff19a(0x19d)]() + _0x3ff19a(0x270),
|
|
1811
|
-
'',
|
|
1812
|
-
_0x3ff19a(0x169) + _0x10fa5c[_0x3ff19a(_0x278e9f._0x16973c)],
|
|
1813
|
-
_0x3ff19a(_0x278e9f._0x501b3) + _0x31bb1f + '\x20(' + _0x18a05c[_0x3ff19a(0x148)]['taskId'] + ')',
|
|
1814
|
-
_0x3ff19a(_0x278e9f._0x1eda9d) + _0x4db4b2,
|
|
1815
|
-
_0x3ff19a(_0x278e9f._0x7ce370)
|
|
1816
|
-
][_0x3ff19a(0x201)]('\x0a'), _0x542509 = await fetch(_0x1090e4[_0x3ff19a(0x189)] + _0x3ff19a(0x1da), {
|
|
1817
|
-
'method': _0x3ff19a(0x165),
|
|
1818
|
-
'headers': { 'Content-Type': _0x3ff19a(_0x278e9f._0x3a2fbb) },
|
|
1819
|
-
'body': JSON[_0x3ff19a(_0x278e9f._0x587551)]({
|
|
1820
|
-
'agent_id': _0x1090e4['agentId'],
|
|
1821
|
-
'thread_target': _0x4db4b2,
|
|
1822
|
-
'spawn_packet': {
|
|
1823
|
-
'replyTarget': _0x4db4b2,
|
|
1824
|
-
'taskId': _0x18a05c['task']['taskId']
|
|
1825
|
-
},
|
|
1826
|
-
'payload': {
|
|
1827
|
-
'mode': _0x3ff19a(0x174),
|
|
1828
|
-
'text': _0x55babd
|
|
1829
|
-
}
|
|
1830
|
-
})
|
|
1831
|
-
}), _0x5bbbc4 = await _0x542509['json']();
|
|
1832
|
-
if (!_0x5bbbc4['ok'])
|
|
1833
|
-
throw new Error(_0x5bbbc4[_0x3ff19a(0x143)] ?? _0x3ff19a(0x1a2));
|
|
1834
|
-
return [
|
|
1835
|
-
_0x3ff19a(_0x278e9f._0x7e1ced) + _0x31bb1f + _0x3ff19a(0x187) + _0x4db4b2 + _0x3ff19a(0x213),
|
|
1836
|
-
_0x3ff19a(_0x278e9f._0x4a2be3) + (_0x5bbbc4['disposition'] === _0x3ff19a(_0x278e9f._0x306199) ? _0x3ff19a(0x1ab) : _0x3ff19a(0x15d)) + '.',
|
|
1837
|
-
_0x3ff19a(0x26e)
|
|
1838
|
-
]['join']('\x0a');
|
|
1839
|
-
}
|
|
1840
|
-
}
|
|
1841
|
-
const _0x3ecefe = await _0x1090e4[_0x3ff19a(0x251)][_0x3ff19a(_0x278e9f._0x5ff2b8)]({
|
|
1842
|
-
'attachmentIds': _0x10fa5c[_0x3ff19a(_0x278e9f._0x50e244)],
|
|
1843
|
-
'content': _0x10fa5c[_0x3ff19a(_0x278e9f._0x96a4bc)],
|
|
1844
|
-
'target': _0x10fa5c[_0x3ff19a(_0x278e9f._0x32c62b)],
|
|
1845
|
-
'visibility': _0x10fa5c[_0x3ff19a(_0x278e9f._0x12fe54)]
|
|
1846
|
-
});
|
|
1847
|
-
return 'Message\x20sent\x20to\x20' + _0x10fa5c[_0x3ff19a(_0x278e9f._0x32c62b)] + _0x3ff19a(_0x278e9f._0x5afca3) + _0x3ecefe['messageId'];
|
|
1848
|
-
},
|
|
1849
|
-
async 'check_messages'() {
|
|
1850
|
-
const _0x45d4fe = _0x2e3f85, _0x353d38 = await _0x1090e4['client'][_0x45d4fe(_0x48d3d4._0x571381)]();
|
|
1851
|
-
if (!_0x1090e4[_0x45d4fe(_0x48d3d4._0x3c13da)]) {
|
|
1852
|
-
const _0x4d5a50 = await _0x25c7cc();
|
|
1853
|
-
if (_0x4d5a50)
|
|
1854
|
-
return formatCheckMessages(_0x353d38[_0x45d4fe(0x229)]['filter'](_0x4010cb => !_0x4d5a50[_0x45d4fe(0x1a4)](_0x4010cb[_0x45d4fe(0x146)])));
|
|
1855
|
-
}
|
|
1856
|
-
return formatCheckMessages(_0x353d38[_0x45d4fe(0x229)]);
|
|
1857
|
-
},
|
|
1858
|
-
async 'read_history'(_0x44956b) {
|
|
1859
|
-
const _0x41b8ff = _0x2e3f85, _0x1317a9 = await _0x1090e4[_0x41b8ff(_0x1eb7aa._0x162c21)]['readHistory'](_0x44956b);
|
|
1860
|
-
return formatHistory(_0x1317a9);
|
|
1861
|
-
},
|
|
1862
|
-
async 'list_server'() {
|
|
1863
|
-
const _0x443cc1 = await _0x1090e4['client']['listServer']();
|
|
1864
|
-
return formatServerDirectory(_0x443cc1);
|
|
1865
|
-
},
|
|
1866
|
-
async 'list_tasks'(_0x519c6b) {
|
|
1867
|
-
const _0x3768c7 = _0x2e3f85, _0x2532b4 = await _0x1090e4[_0x3768c7(0x251)][_0x3768c7(0x159)](_0x519c6b);
|
|
1868
|
-
let _0x3128ed;
|
|
1869
|
-
if (_0x1090e4[_0x3768c7(0x189)] && _0x1090e4[_0x3768c7(_0x19f3b9._0x2744c6)])
|
|
1870
|
-
try {
|
|
1871
|
-
const _0x21613b = await fetch(_0x1090e4[_0x3768c7(0x189)] + _0x3768c7(_0x19f3b9._0x2960ee) + encodeURIComponent(_0x1090e4[_0x3768c7(0x1a9)])), _0x35512a = await _0x21613b[_0x3768c7(_0x19f3b9._0x13e78e)]();
|
|
1872
|
-
if (_0x35512a['ok']) {
|
|
1873
|
-
const _0x2a7a48 = _0x519c6b['channel'] + ':';
|
|
1874
|
-
_0x3128ed = new Set();
|
|
1875
|
-
for (const _0x2e18f4 of _0x35512a[_0x3768c7(_0x19f3b9._0xf23ca)]) {
|
|
1876
|
-
if (_0x2e18f4[_0x3768c7(0x1c1)] === _0x3768c7(_0x19f3b9._0x234499))
|
|
1877
|
-
continue;
|
|
1878
|
-
if (_0x2e18f4[_0x3768c7(0x10a)]?.[_0x3768c7(0x117)](_0x2a7a48)) {
|
|
1879
|
-
const _0x2536c3 = _0x2e18f4['thread_target'][_0x3768c7(_0x19f3b9._0x2ed77b)](_0x2a7a48[_0x3768c7(_0x19f3b9._0x202ce5)]), _0x23e591 = _0x2532b4[_0x3768c7(_0x19f3b9._0x5ea41a)]['find'](_0x14862b => _0x14862b[_0x3768c7(0x153)]?.[_0x3768c7(0x117)](_0x2536c3) === !![]);
|
|
1880
|
-
if (_0x23e591?.['taskNumber'] != null) {
|
|
1881
|
-
_0x3128ed[_0x3768c7(_0x19f3b9._0x1d2a0a)](_0x23e591[_0x3768c7(0x222)]);
|
|
1882
|
-
continue;
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
if (_0x2e18f4[_0x3768c7(_0x19f3b9._0x6630d7)]) {
|
|
1886
|
-
const _0x387103 = _0x2532b4[_0x3768c7(_0x19f3b9._0x5ea41a)]['find'](_0x36d619 => _0x36d619[_0x3768c7(0x1d9)] === _0x2e18f4['task_id']);
|
|
1887
|
-
_0x387103?.[_0x3768c7(_0x19f3b9._0x572545)] != null && _0x3128ed['add'](_0x387103['taskNumber']);
|
|
1888
|
-
}
|
|
1889
|
-
}
|
|
1890
|
-
}
|
|
1891
|
-
} catch {
|
|
1892
|
-
}
|
|
1893
|
-
return formatTaskList(_0x2532b4['tasks'], _0x3128ed);
|
|
1894
|
-
},
|
|
1895
|
-
async 'create_tasks'(_0x3dd250) {
|
|
1896
|
-
const _0x467905 = _0x2e3f85, _0x285589 = await _0x1090e4[_0x467905(0x251)][_0x467905(0x215)](_0x3dd250);
|
|
1897
|
-
return formatCreatedTasks(_0x285589[_0x467905(0x14d)]);
|
|
1898
|
-
},
|
|
1899
|
-
async 'claim_tasks'(_0x187995) {
|
|
1900
|
-
const _0x6e57b7 = { _0x427bb4: 0x13a }, _0xc6d76b = _0x2e3f85, _0x29ac87 = await _0x1090e4['client']['claimTasks'](_0x187995), _0x2a2129 = await Promise[_0xc6d76b(0x1e0)](_0x29ac87['results'][_0xc6d76b(_0xc1400f._0x2eed48)](async _0x406946 => {
|
|
1901
|
-
const _0x2097a8 = _0xc6d76b;
|
|
1902
|
-
if (!_0x406946['success'] || !_0x406946[_0x2097a8(0x153)])
|
|
1903
|
-
return _0x406946;
|
|
1904
|
-
try {
|
|
1905
|
-
const _0x391b7c = await _0x7fa5fb({
|
|
1906
|
-
'channel': _0x187995[_0x2097a8(_0x6e57b7._0x427bb4)],
|
|
1907
|
-
'messageId': _0x406946['messageId'],
|
|
1908
|
-
'taskId': _0x406946[_0x2097a8(0x1d9)],
|
|
1909
|
-
'taskNumber': _0x406946[_0x2097a8(0x222)],
|
|
1910
|
-
'threadNumber': _0x406946['threadNumber']
|
|
1911
|
-
});
|
|
1912
|
-
return _0x391b7c ? {
|
|
1913
|
-
..._0x406946,
|
|
1914
|
-
..._0x391b7c
|
|
1915
|
-
} : _0x406946;
|
|
1916
|
-
} catch (_0x3f6b66) {
|
|
1917
|
-
return {
|
|
1918
|
-
..._0x406946,
|
|
1919
|
-
'workerHandoffError': _0x3f6b66 instanceof Error ? _0x3f6b66[_0x2097a8(0x10f)] : 'worker\x20handoff\x20failed'
|
|
1920
|
-
};
|
|
1921
|
-
}
|
|
1922
|
-
}));
|
|
1923
|
-
return formatClaimTaskResults(_0x2a2129);
|
|
1924
|
-
},
|
|
1925
|
-
async 'unclaim_task'(_0x54a0b8) {
|
|
1926
|
-
const _0x16a39d = _0x2e3f85, _0x1bab2b = await _0x1090e4[_0x16a39d(0x251)][_0x16a39d(_0x3b7275._0x2241c6)](_0x54a0b8);
|
|
1927
|
-
return formatUnclaimTaskResult(_0x1bab2b);
|
|
1928
|
-
},
|
|
1929
|
-
async 'update_task_status'(_0x28a67e) {
|
|
1930
|
-
const _0x3fcb39 = _0x2e3f85, _0xca5c71 = await _0x1090e4[_0x3fcb39(0x251)][_0x3fcb39(_0x434db9._0x31fd0f)](_0x28a67e);
|
|
1931
|
-
return formatUpdateTaskStatusResult(_0xca5c71);
|
|
1932
|
-
},
|
|
1933
|
-
async 'upload_file'(_0x1cc5f1) {
|
|
1934
|
-
const _0x22741d = _0x2e3f85, _0x4de75e = await _0x1090e4[_0x22741d(0x1d4)](_0x1cc5f1['file_path']), {
|
|
1935
|
-
sizeBytes: _0x5468dc,
|
|
1936
|
-
..._0x4326b6
|
|
1937
|
-
} = _0x4de75e, _0x181783 = await _0x1090e4['client']['uploadFile']({
|
|
1938
|
-
'channel': _0x1cc5f1[_0x22741d(_0x4624ee._0x2d0c96)],
|
|
1939
|
-
..._0x4326b6
|
|
1940
|
-
});
|
|
1941
|
-
return formatUploadResult(_0x181783);
|
|
1942
|
-
},
|
|
1943
|
-
async 'view_file'(_0x5530b3) {
|
|
1944
|
-
const _0x10262a = _0x2e3f85, _0x5b06ea = await _0x1090e4[_0x10262a(0x1bc)][_0x10262a(0x21a)](_0x5530b3[_0x10262a(_0x581463._0x3eeec0)]);
|
|
1945
|
-
if (_0x5b06ea)
|
|
1946
|
-
return formatViewFileResult(_0x5b06ea, !![]);
|
|
1947
|
-
const _0x3b9504 = await _0x1090e4[_0x10262a(_0x581463._0x34323d)][_0x10262a(0x20b)](_0x5530b3[_0x10262a(0x168)]), _0x4a7a32 = await _0x1090e4[_0x10262a(_0x581463._0x3251c1)][_0x10262a(_0x581463._0x152b9a)]({
|
|
1948
|
-
'attachmentId': _0x5530b3[_0x10262a(0x168)],
|
|
1949
|
-
'contentType': _0x3b9504[_0x10262a(0xf8)],
|
|
1950
|
-
'data': _0x3b9504[_0x10262a(0x17d)],
|
|
1951
|
-
'originalFilename': _0x3b9504['originalFilename']
|
|
1952
|
-
});
|
|
1953
|
-
return formatViewFileResult(_0x4a7a32, ![]);
|
|
1954
|
-
},
|
|
1955
|
-
async 'get_worker_status'(_0x904b37) {
|
|
1956
|
-
const _0x393659 = _0x2e3f85;
|
|
1957
|
-
if (!_0x1090e4[_0x393659(0x189)])
|
|
1958
|
-
return 'Worker\x20features\x20not\x20available';
|
|
1959
|
-
const _0x387209 = await fetch(_0x1090e4[_0x393659(0x189)] + _0x393659(0x20e) + encodeURIComponent(_0x904b37[_0x393659(0x15b)])), _0x4fd361 = await _0x387209['json']();
|
|
1960
|
-
if (!_0x4fd361['ok'])
|
|
1961
|
-
return _0x393659(_0x43e96d._0x467130) + _0x904b37[_0x393659(0x15b)] + _0x393659(0x133);
|
|
1962
|
-
return _0x393659(_0x43e96d._0x28798a) + _0x904b37[_0x393659(_0x43e96d._0x2eb11e)] + _0x393659(0x194) + _0x4fd361['status'];
|
|
1963
|
-
},
|
|
1964
|
-
async 'get_worker_result'(_0x497837) {
|
|
1965
|
-
const _0x4fcb4d = _0x2e3f85;
|
|
1966
|
-
if (!_0x1090e4['daemonLocalUrl'])
|
|
1967
|
-
return 'Worker\x20features\x20not\x20available';
|
|
1968
|
-
const _0x48aa14 = await fetch(_0x1090e4[_0x4fcb4d(0x189)] + _0x4fcb4d(0x21f) + encodeURIComponent(_0x497837[_0x4fcb4d(0x15b)])), _0x3d03b7 = await _0x48aa14[_0x4fcb4d(0x161)]();
|
|
1969
|
-
if (!_0x3d03b7['resume_packet'])
|
|
1970
|
-
return _0x4fcb4d(0x1cd) + _0x497837[_0x4fcb4d(_0x251533._0x26fedd)] + '\x22';
|
|
1971
|
-
return JSON['stringify'](_0x3d03b7[_0x4fcb4d(0x1a0)], null, 0x2);
|
|
1972
|
-
},
|
|
1973
|
-
async 'finish_worker'(_0x8cd561) {
|
|
1974
|
-
const _0x5e0fc7 = _0x2e3f85;
|
|
1975
|
-
if (!_0x1090e4[_0x5e0fc7(_0x4700f8._0x1e58f4)])
|
|
1976
|
-
return _0x5e0fc7(0x1ae);
|
|
1977
|
-
const _0x387369 = await fetch(_0x1090e4[_0x5e0fc7(0x189)] + _0x5e0fc7(_0x4700f8._0x53d3fe), {
|
|
1978
|
-
'method': _0x5e0fc7(_0x4700f8._0x1dde71),
|
|
1979
|
-
'headers': { 'Content-Type': _0x5e0fc7(0x182) },
|
|
1980
|
-
'body': JSON[_0x5e0fc7(0x1ac)]({
|
|
1981
|
-
'work_key': _0x8cd561[_0x5e0fc7(0x15b)],
|
|
1982
|
-
'resume_packet': {
|
|
1983
|
-
'objective': '',
|
|
1984
|
-
'result': _0x8cd561[_0x5e0fc7(_0x4700f8._0x94d0ad)],
|
|
1985
|
-
'summary': _0x8cd561[_0x5e0fc7(0x1f7)],
|
|
1986
|
-
'decisions': _0x8cd561[_0x5e0fc7(0x181)] ?? [],
|
|
1987
|
-
'filesChanged': _0x8cd561['files_changed'] ?? [],
|
|
1988
|
-
'openIssues': _0x8cd561[_0x5e0fc7(0x1c3)] ?? [],
|
|
1989
|
-
'nextSteps': _0x8cd561['next_steps'] ?? []
|
|
1990
|
-
}
|
|
1991
|
-
})
|
|
1992
|
-
}), _0x36e4af = await _0x387369[_0x5e0fc7(_0x4700f8._0x2023be)]();
|
|
1993
|
-
if (!_0x36e4af['ok'])
|
|
1994
|
-
throw new Error(_0x36e4af[_0x5e0fc7(_0x4700f8._0x551abd)] ?? _0x5e0fc7(_0x4700f8._0x2f68eb));
|
|
1995
|
-
return _0x5e0fc7(0x225) + _0x8cd561[_0x5e0fc7(0x15b)] + _0x5e0fc7(_0x4700f8._0x2925ec) + _0x8cd561['result'];
|
|
1996
|
-
},
|
|
1997
|
-
async 'mark_waiting_input'(_0x245fcc) {
|
|
1998
|
-
const _0x64631e = _0x2e3f85;
|
|
1999
|
-
if (!_0x1090e4[_0x64631e(_0x212542._0x12e5eb)] || !_0x1090e4['agentId'])
|
|
2000
|
-
return 'Worker\x20features\x20not\x20available\x20(daemon\x20local\x20URL\x20or\x20agent\x20ID\x20not\x20configured)';
|
|
2001
|
-
const _0xabc72d = await fetch(_0x1090e4[_0x64631e(_0x212542._0x12e5eb)] + _0x64631e(_0x212542._0x5d690a), {
|
|
2002
|
-
'method': _0x64631e(_0x212542._0x5605f9),
|
|
2003
|
-
'headers': { 'Content-Type': _0x64631e(0x182) },
|
|
2004
|
-
'body': JSON['stringify']({
|
|
2005
|
-
'work_key': _0x245fcc[_0x64631e(_0x212542._0x3c18f1)],
|
|
2006
|
-
'agent_id': _0x1090e4['agentId']
|
|
2007
|
-
})
|
|
2008
|
-
}), _0x36abc5 = await _0xabc72d[_0x64631e(0x161)]();
|
|
2009
|
-
if (!_0x36abc5['ok'])
|
|
2010
|
-
throw new Error(_0x36abc5[_0x64631e(_0x212542._0x41d838)] ?? 'mark_waiting_input\x20failed');
|
|
2011
|
-
return _0x64631e(0x225) + _0x245fcc[_0x64631e(_0x212542._0x4a793a)] + '\x22\x20marked\x20as\x20waiting_input.\x20TTL\x20timer\x20paused\x20until\x20next\x20message\x20arrives.';
|
|
2012
|
-
},
|
|
2013
|
-
async 'escalate_to_main'(_0x1d49d2) {
|
|
2014
|
-
const _0x3defd6 = _0x2e3f85;
|
|
2015
|
-
if (!_0x1090e4[_0x3defd6(0x189)])
|
|
2016
|
-
return _0x3defd6(0x1ae);
|
|
2017
|
-
const _0x5c65a8 = await fetch(_0x1090e4[_0x3defd6(0x189)] + _0x3defd6(0x25d), {
|
|
2018
|
-
'method': 'POST',
|
|
2019
|
-
'headers': { 'Content-Type': _0x3defd6(0x182) },
|
|
2020
|
-
'body': JSON[_0x3defd6(_0x4355ac._0x41ee43)]({
|
|
2021
|
-
'work_key': _0x1d49d2[_0x3defd6(_0x4355ac._0x10ef13)],
|
|
2022
|
-
'reason': _0x1d49d2[_0x3defd6(_0x4355ac._0x14e854)]
|
|
2023
|
-
})
|
|
2024
|
-
}), _0xc6e854 = await _0x5c65a8[_0x3defd6(_0x4355ac._0x4d5b34)]();
|
|
2025
|
-
if (!_0xc6e854['ok'])
|
|
2026
|
-
throw new Error(_0xc6e854[_0x3defd6(_0x4355ac._0xc6ee43)] ?? _0x3defd6(_0x4355ac._0x55a316));
|
|
2027
|
-
return _0x3defd6(_0x4355ac._0x44534d) + _0x1d49d2[_0x3defd6(_0x4355ac._0x14e854)];
|
|
2028
|
-
}
|
|
2029
|
-
};
|
|
2030
|
-
}
|
|
2031
|
-
function textResult(_0x1ccf29, _0x57ca81 = ![]) {
|
|
2032
|
-
const _0xbd0f15 = _0x42cca9;
|
|
2033
|
-
return {
|
|
2034
|
-
'content': [{
|
|
2035
|
-
'type': _0xbd0f15(0x22b),
|
|
2036
|
-
'text': _0x1ccf29
|
|
2037
|
-
}],
|
|
2038
|
-
..._0x57ca81 ? { 'isError': !![] } : {}
|
|
2296
|
+
_0x542c = function () {
|
|
2297
|
+
return _0x5a57bc;
|
|
2039
2298
|
};
|
|
2299
|
+
return _0x542c();
|
|
2040
2300
|
}
|
|
2041
|
-
async function
|
|
2042
|
-
const
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
_0x432fa3: 0x1e3,
|
|
2053
|
-
_0x26f9b7: 0x1fd,
|
|
2054
|
-
_0x4e6b42: 0x14a,
|
|
2055
|
-
_0x4f823f: 0x1f9,
|
|
2056
|
-
_0x431cc6: 0x1f9,
|
|
2057
|
-
_0x2ebc39: 0x154,
|
|
2058
|
-
_0x280004: 0x234,
|
|
2059
|
-
_0x4ffd82: 0x193,
|
|
2060
|
-
_0x3bfbef: 0x1de,
|
|
2061
|
-
_0xac41a1: 0x119,
|
|
2062
|
-
_0x8e5834: 0x1f9,
|
|
2063
|
-
_0x3044a9: 0x1e4,
|
|
2064
|
-
_0x4c4b24: 0x102,
|
|
2065
|
-
_0xa67fa4: 0x268,
|
|
2066
|
-
_0xb3d99d: 0x173,
|
|
2067
|
-
_0x4920f2: 0x268,
|
|
2068
|
-
_0x3fa7f2: 0x119,
|
|
2069
|
-
_0x4af857: 0x1e3,
|
|
2070
|
-
_0x2948bd: 0x1f9,
|
|
2071
|
-
_0x2be32f: 0x122,
|
|
2072
|
-
_0x7b9a0d: 0x1f9,
|
|
2073
|
-
_0x1e1afc: 0x1b7,
|
|
2074
|
-
_0xa1556b: 0x1f4,
|
|
2075
|
-
_0x146313: 0x188,
|
|
2076
|
-
_0x2bffb7: 0x196,
|
|
2077
|
-
_0xc18370: 0x1b1,
|
|
2078
|
-
_0x202702: 0x14f,
|
|
2079
|
-
_0x4f98d2: 0x154,
|
|
2080
|
-
_0x41090f: 0x14f,
|
|
2081
|
-
_0x30a248: 0x1f9,
|
|
2082
|
-
_0x2dfc15: 0x24c,
|
|
2083
|
-
_0x2d0440: 0x17e
|
|
2084
|
-
}, _0x2a2df2 = {
|
|
2085
|
-
_0x4ede1c: 0x10f,
|
|
2086
|
-
_0x5072e8: 0xf1
|
|
2087
|
-
}, _0x20b254 = {
|
|
2088
|
-
_0x56f138: 0x188,
|
|
2089
|
-
_0x3694a1: 0x10f
|
|
2090
|
-
}, _0x50713b = {
|
|
2091
|
-
_0x1c7be6: 0x10f,
|
|
2092
|
-
_0x382c5d: 0x125
|
|
2093
|
-
}, _0x3efd0c = {
|
|
2094
|
-
_0xfad0be: 0x10f,
|
|
2095
|
-
_0x5f1719: 0xf6
|
|
2096
|
-
}, _0x588aa7 = { _0x119774: 0x138 }, _0x2331d0 = { _0x25a889: 0x18a }, _0x3bc5e5 = { _0xbdee20: 0x10f }, _0x26361c = {
|
|
2097
|
-
_0x14568d: 0x1f5,
|
|
2098
|
-
_0x44b817: 0x10f,
|
|
2099
|
-
_0x3f783b: 0x15f
|
|
2100
|
-
}, _0x53d3a6 = {
|
|
2101
|
-
_0x3768a3: 0x1be,
|
|
2102
|
-
_0x4a2bfa: 0x10f,
|
|
2103
|
-
_0x16a517: 0x115
|
|
2104
|
-
}, _0x58846c = { _0xf3de66: 0x10f }, _0x68f7f5 = { _0x2c3234: 0x10f }, _0x42d6e8 = _0x42cca9, {z: _0x1fd4e9} = await import('zod');
|
|
2105
|
-
_0x3fdf8f['tool'](_0x42d6e8(0x25a), _0x42d6e8(_0x21a81b._0x3ca703), {
|
|
2106
|
-
'target': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x243e25)](),
|
|
2107
|
-
'content': _0x1fd4e9['string'](),
|
|
2108
|
-
'attachment_ids': _0x1fd4e9[_0x42d6e8(0x14f)](_0x1fd4e9[_0x42d6e8(_0x21a81b._0x243e25)]())[_0x42d6e8(_0x21a81b._0xd004ee)](),
|
|
2109
|
-
'visibility': _0x1fd4e9['enum']([
|
|
2110
|
-
_0x42d6e8(0x243),
|
|
2111
|
-
_0x42d6e8(_0x21a81b._0x58478d)
|
|
2112
|
-
])[_0x42d6e8(0x154)]()[_0x42d6e8(0x141)](_0x42d6e8(0x244))
|
|
2113
|
-
}, async _0x4a6544 => {
|
|
2114
|
-
const _0x204642 = _0x42d6e8;
|
|
2115
|
-
try {
|
|
2116
|
-
return textResult(await _0x15684e[_0x204642(0x25a)](_0x4a6544));
|
|
2117
|
-
} catch (_0x686b18) {
|
|
2118
|
-
return textResult(_0x686b18 instanceof Error ? _0x686b18[_0x204642(_0x68f7f5._0x2c3234)] : _0x204642(0x104), !![]);
|
|
2119
|
-
}
|
|
2120
|
-
}), _0x3fdf8f[_0x42d6e8(0x268)](_0x42d6e8(0x203), _0x42d6e8(0x140), {}, async () => {
|
|
2121
|
-
const _0x193d75 = _0x42d6e8;
|
|
2122
|
-
try {
|
|
2123
|
-
return textResult(await _0x15684e[_0x193d75(0x203)]());
|
|
2124
|
-
} catch (_0x29d56f) {
|
|
2125
|
-
return textResult(_0x29d56f instanceof Error ? _0x29d56f[_0x193d75(_0x58846c._0xf3de66)] : _0x193d75(0x20a), !![]);
|
|
2126
|
-
}
|
|
2127
|
-
}), _0x3fdf8f[_0x42d6e8(0x268)](_0x42d6e8(0x1be), _0x42d6e8(_0x21a81b._0x3c1802), {
|
|
2128
|
-
'channel': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x102f23)](),
|
|
2129
|
-
'limit': _0x1fd4e9[_0x42d6e8(0x119)]()[_0x42d6e8(_0x21a81b._0xd004ee)](),
|
|
2130
|
-
'before': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x2d5a58)]()[_0x42d6e8(0x154)](),
|
|
2131
|
-
'after': _0x1fd4e9[_0x42d6e8(0x119)]()[_0x42d6e8(_0x21a81b._0xd004ee)]()
|
|
2132
|
-
}, async _0x7bb373 => {
|
|
2133
|
-
const _0x3b0228 = _0x42d6e8;
|
|
2134
|
-
try {
|
|
2135
|
-
return textResult(await _0x15684e[_0x3b0228(_0x53d3a6._0x3768a3)](_0x7bb373));
|
|
2136
|
-
} catch (_0x4f7d7f) {
|
|
2137
|
-
return textResult(_0x4f7d7f instanceof Error ? _0x4f7d7f[_0x3b0228(_0x53d3a6._0x4a2bfa)] : _0x3b0228(_0x53d3a6._0x16a517), !![]);
|
|
2138
|
-
}
|
|
2139
|
-
}), _0x3fdf8f['tool'](_0x42d6e8(_0x21a81b._0x437ff5), _0x42d6e8(0x180), {}, async () => {
|
|
2140
|
-
const _0x5812f0 = _0x42d6e8;
|
|
2141
|
-
try {
|
|
2142
|
-
return textResult(await _0x15684e[_0x5812f0(_0x26361c._0x14568d)]());
|
|
2143
|
-
} catch (_0x362ecc) {
|
|
2144
|
-
return textResult(_0x362ecc instanceof Error ? _0x362ecc[_0x5812f0(_0x26361c._0x44b817)] : _0x5812f0(_0x26361c._0x3f783b), !![]);
|
|
2145
|
-
}
|
|
2146
|
-
}), _0x3fdf8f[_0x42d6e8(0x268)](_0x42d6e8(0xff), _0x42d6e8(0x218), {
|
|
2147
|
-
'channel': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x2d0565)](),
|
|
2148
|
-
'status': _0x1fd4e9[_0x42d6e8(0x196)]([
|
|
2149
|
-
_0x42d6e8(_0x21a81b._0x432fa3),
|
|
2150
|
-
_0x42d6e8(_0x21a81b._0x26f9b7),
|
|
2151
|
-
_0x42d6e8(0x217),
|
|
2152
|
-
'done'
|
|
2153
|
-
])['optional']()
|
|
2154
|
-
}, async _0x5f32b2 => {
|
|
2155
|
-
try {
|
|
2156
|
-
return textResult(await _0x15684e['list_tasks'](_0x5f32b2));
|
|
2157
|
-
} catch (_0xe7ed88) {
|
|
2158
|
-
return textResult(_0xe7ed88 instanceof Error ? _0xe7ed88['message'] : 'list_tasks\x20failed', !![]);
|
|
2159
|
-
}
|
|
2160
|
-
}), _0x3fdf8f[_0x42d6e8(0x268)](_0x42d6e8(_0x21a81b._0x4e6b42), _0x42d6e8(0x1d7), {
|
|
2161
|
-
'channel': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x4f823f)](),
|
|
2162
|
-
'idempotency_key': _0x1fd4e9['string']()[_0x42d6e8(0x154)](),
|
|
2163
|
-
'tasks': _0x1fd4e9['array'](_0x1fd4e9[_0x42d6e8(0x1e4)]({
|
|
2164
|
-
'title': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x102f23)](),
|
|
2165
|
-
'description': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x431cc6)]()[_0x42d6e8(_0x21a81b._0x2ebc39)](),
|
|
2166
|
-
'priority': _0x1fd4e9[_0x42d6e8(0x196)]([
|
|
2167
|
-
_0x42d6e8(_0x21a81b._0x280004),
|
|
2168
|
-
'medium',
|
|
2169
|
-
_0x42d6e8(0x1aa),
|
|
2170
|
-
_0x42d6e8(_0x21a81b._0x4ffd82)
|
|
2171
|
-
])[_0x42d6e8(_0x21a81b._0x2ebc39)]()
|
|
2172
|
-
}))
|
|
2173
|
-
}, async _0x516a62 => {
|
|
2174
|
-
const _0x38a251 = _0x42d6e8;
|
|
2175
|
-
try {
|
|
2176
|
-
return textResult(await _0x15684e[_0x38a251(0x14a)](_0x516a62));
|
|
2177
|
-
} catch (_0x1caaec) {
|
|
2178
|
-
return textResult(_0x1caaec instanceof Error ? _0x1caaec[_0x38a251(_0x3bc5e5._0xbdee20)] : 'create_tasks\x20failed', !![]);
|
|
2179
|
-
}
|
|
2180
|
-
}), _0x3fdf8f['tool'](_0x42d6e8(_0x21a81b._0x3bfbef), 'Claim\x20tasks\x20in\x20a\x20channel\x20by\x20task\x20number\x20or\x20source\x20message.', {
|
|
2181
|
-
'channel': _0x1fd4e9[_0x42d6e8(0x1f9)](),
|
|
2182
|
-
'task_numbers': _0x1fd4e9[_0x42d6e8(0x14f)](_0x1fd4e9[_0x42d6e8(_0x21a81b._0xac41a1)]())[_0x42d6e8(0x154)](),
|
|
2183
|
-
'message_ids': _0x1fd4e9[_0x42d6e8(0x14f)](_0x1fd4e9['string']())['optional'](),
|
|
2184
|
-
'evidence': _0x1fd4e9['record'](_0x1fd4e9[_0x42d6e8(_0x21a81b._0x8e5834)](), _0x1fd4e9[_0x42d6e8(_0x21a81b._0x3044a9)]({
|
|
2185
|
-
'create_thread': _0x1fd4e9[_0x42d6e8(0x102)]()[_0x42d6e8(_0x21a81b._0xd004ee)](),
|
|
2186
|
-
'create_task': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x4c4b24)]()[_0x42d6e8(_0x21a81b._0xd004ee)]()
|
|
2187
|
-
}))['optional'](),
|
|
2188
|
-
'idempotency_key': _0x1fd4e9[_0x42d6e8(0x1f9)]()[_0x42d6e8(0x154)]()
|
|
2189
|
-
}, async _0x44b134 => {
|
|
2190
|
-
const _0x11386d = _0x42d6e8;
|
|
2191
|
-
try {
|
|
2192
|
-
return textResult(await _0x15684e[_0x11386d(0x1de)](_0x44b134));
|
|
2193
|
-
} catch (_0x523666) {
|
|
2194
|
-
return textResult(_0x523666 instanceof Error ? _0x523666[_0x11386d(0x10f)] : _0x11386d(0x23b), !![]);
|
|
2195
|
-
}
|
|
2196
|
-
}), _0x3fdf8f[_0x42d6e8(_0x21a81b._0xa67fa4)](_0x42d6e8(0x18a), _0x42d6e8(_0x21a81b._0xb3d99d), {
|
|
2197
|
-
'channel': _0x1fd4e9[_0x42d6e8(0x1f9)](),
|
|
2198
|
-
'task_number': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x2d5a58)](),
|
|
2199
|
-
'idempotency_key': _0x1fd4e9[_0x42d6e8(0x1f9)]()['optional']()
|
|
2200
|
-
}, async _0x57007e => {
|
|
2201
|
-
const _0x4734f4 = _0x42d6e8;
|
|
2202
|
-
try {
|
|
2203
|
-
return textResult(await _0x15684e[_0x4734f4(_0x2331d0._0x25a889)](_0x57007e));
|
|
2204
|
-
} catch (_0x17c2e5) {
|
|
2205
|
-
return textResult(_0x17c2e5 instanceof Error ? _0x17c2e5['message'] : _0x4734f4(0x25e), !![]);
|
|
2206
|
-
}
|
|
2207
|
-
}), _0x3fdf8f[_0x42d6e8(_0x21a81b._0x4920f2)](_0x42d6e8(0x1db), _0x42d6e8(0x199), {
|
|
2208
|
-
'channel': _0x1fd4e9[_0x42d6e8(0x1f9)](),
|
|
2209
|
-
'task_number': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x3fa7f2)](),
|
|
2210
|
-
'status': _0x1fd4e9[_0x42d6e8(0x196)]([
|
|
2211
|
-
_0x42d6e8(_0x21a81b._0x4af857),
|
|
2212
|
-
_0x42d6e8(0x1fd),
|
|
2213
|
-
'in_review',
|
|
2214
|
-
'done'
|
|
2215
|
-
]),
|
|
2216
|
-
'idempotency_key': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x2948bd)]()[_0x42d6e8(0x154)]()
|
|
2217
|
-
}, async _0x3ee6a6 => {
|
|
2218
|
-
const _0x1fd929 = _0x42d6e8;
|
|
2219
|
-
try {
|
|
2220
|
-
return textResult(await _0x15684e[_0x1fd929(0x1db)](_0x3ee6a6));
|
|
2221
|
-
} catch (_0x2b58c1) {
|
|
2222
|
-
return textResult(_0x2b58c1 instanceof Error ? _0x2b58c1[_0x1fd929(0x10f)] : 'update_task_status\x20failed', !![]);
|
|
2223
|
-
}
|
|
2224
|
-
}), _0x3fdf8f['tool']('upload_file', _0x42d6e8(_0x21a81b._0x2be32f), {
|
|
2225
|
-
'channel': _0x1fd4e9[_0x42d6e8(0x1f9)](),
|
|
2226
|
-
'file_path': _0x1fd4e9['string']()
|
|
2227
|
-
}, async _0x285286 => {
|
|
2228
|
-
const _0x122775 = _0x42d6e8;
|
|
2229
|
-
try {
|
|
2230
|
-
return textResult(await _0x15684e[_0x122775(0x267)](_0x285286));
|
|
2231
|
-
} catch (_0x3fa313) {
|
|
2232
|
-
return textResult(_0x3fa313 instanceof Error ? _0x3fa313[_0x122775(0x10f)] : _0x122775(_0x588aa7._0x119774), !![]);
|
|
2233
|
-
}
|
|
2234
|
-
}), _0x3fdf8f[_0x42d6e8(0x268)]('view_file', 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x7b9a0d)]() }, async _0x1c59e4 => {
|
|
2235
|
-
const _0x8ac4f9 = _0x42d6e8;
|
|
2236
|
-
try {
|
|
2237
|
-
return textResult(await _0x15684e['view_file'](_0x1c59e4));
|
|
2238
|
-
} catch (_0x481a49) {
|
|
2239
|
-
return textResult(_0x481a49 instanceof Error ? _0x481a49[_0x8ac4f9(_0x3efd0c._0xfad0be)] : _0x8ac4f9(_0x3efd0c._0x5f1719), !![]);
|
|
2240
|
-
}
|
|
2241
|
-
}), _0x3fdf8f[_0x42d6e8(0x268)]('get_worker_status', _0x42d6e8(_0x21a81b._0x1e1afc), { 'work_key': _0x1fd4e9[_0x42d6e8(0x1f9)]() }, async _0xef7902 => {
|
|
2242
|
-
const _0xed2a53 = _0x42d6e8;
|
|
2243
|
-
try {
|
|
2244
|
-
return textResult(await _0x15684e[_0xed2a53(0x1ee)](_0xef7902));
|
|
2245
|
-
} catch (_0x57f35b) {
|
|
2246
|
-
return textResult(_0x57f35b instanceof Error ? _0x57f35b[_0xed2a53(_0x50713b._0x1c7be6)] : _0xed2a53(_0x50713b._0x382c5d), !![]);
|
|
2247
|
-
}
|
|
2248
|
-
}), _0x3fdf8f[_0x42d6e8(0x268)](_0x42d6e8(_0x21a81b._0xa1556b), _0x42d6e8(0x1d1), { 'work_key': _0x1fd4e9['string']() }, async _0x577f04 => {
|
|
2249
|
-
const _0x3465d2 = _0x42d6e8;
|
|
2250
|
-
try {
|
|
2251
|
-
return textResult(await _0x15684e['get_worker_result'](_0x577f04));
|
|
2252
|
-
} catch (_0x8d7810) {
|
|
2253
|
-
return textResult(_0x8d7810 instanceof Error ? _0x8d7810[_0x3465d2(0x10f)] : _0x3465d2(0x162), !![]);
|
|
2254
|
-
}
|
|
2255
|
-
}), _0x3fdf8f[_0x42d6e8(_0x21a81b._0x4920f2)](_0x42d6e8(_0x21a81b._0x146313), 'Signal\x20that\x20the\x20current\x20worker\x20session\x20is\x20finished\x20and\x20provide\x20a\x20result\x20summary.', {
|
|
2256
|
-
'work_key': _0x1fd4e9[_0x42d6e8(0x1f9)](),
|
|
2257
|
-
'result': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x2bffb7)]([
|
|
2258
|
-
_0x42d6e8(0xfd),
|
|
2259
|
-
_0x42d6e8(_0x21a81b._0xc18370),
|
|
2260
|
-
'failed'
|
|
2261
|
-
]),
|
|
2262
|
-
'summary': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x8e5834)](),
|
|
2263
|
-
'decisions': _0x1fd4e9[_0x42d6e8(0x14f)](_0x1fd4e9['string']())['optional'](),
|
|
2264
|
-
'files_changed': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x202702)](_0x1fd4e9[_0x42d6e8(_0x21a81b._0x2d0565)]())[_0x42d6e8(_0x21a81b._0x4f98d2)](),
|
|
2265
|
-
'open_issues': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x41090f)](_0x1fd4e9['string']())[_0x42d6e8(0x154)](),
|
|
2266
|
-
'next_steps': _0x1fd4e9[_0x42d6e8(0x14f)](_0x1fd4e9[_0x42d6e8(_0x21a81b._0x30a248)]())['optional']()
|
|
2267
|
-
}, async _0x3775a0 => {
|
|
2268
|
-
const _0x68347 = _0x42d6e8;
|
|
2269
|
-
try {
|
|
2270
|
-
return textResult(await _0x15684e[_0x68347(_0x20b254._0x56f138)](_0x3775a0));
|
|
2271
|
-
} catch (_0x2e87b6) {
|
|
2272
|
-
return textResult(_0x2e87b6 instanceof Error ? _0x2e87b6[_0x68347(_0x20b254._0x3694a1)] : 'finish_worker\x20failed', !![]);
|
|
2273
|
-
}
|
|
2274
|
-
}), _0x3fdf8f[_0x42d6e8(0x268)](_0x42d6e8(0x26c), _0x42d6e8(0x21b), {
|
|
2275
|
-
'work_key': _0x1fd4e9[_0x42d6e8(0x1f9)](),
|
|
2276
|
-
'reason': _0x1fd4e9['string']()
|
|
2277
|
-
}, async _0x2b54f2 => {
|
|
2278
|
-
const _0x5b7be9 = _0x42d6e8;
|
|
2279
|
-
try {
|
|
2280
|
-
return textResult(await _0x15684e['escalate_to_main'](_0x2b54f2));
|
|
2281
|
-
} catch (_0x507520) {
|
|
2282
|
-
return textResult(_0x507520 instanceof Error ? _0x507520['message'] : _0x5b7be9(0x15a), !![]);
|
|
2283
|
-
}
|
|
2284
|
-
}), _0x5767e1?.[_0x42d6e8(_0x21a81b._0x2dfc15)] && _0x3fdf8f[_0x42d6e8(0x268)](_0x42d6e8(_0x21a81b._0x2d0440), _0x42d6e8(0x145), { 'work_key': _0x1fd4e9[_0x42d6e8(0x1f9)]() }, async _0x5ec21f => {
|
|
2285
|
-
const _0x37f678 = _0x42d6e8;
|
|
2286
|
-
try {
|
|
2287
|
-
return textResult(await _0x15684e['mark_waiting_input'](_0x5ec21f));
|
|
2288
|
-
} catch (_0x577373) {
|
|
2289
|
-
return textResult(_0x577373 instanceof Error ? _0x577373[_0x37f678(_0x2a2df2._0x4ede1c)] : _0x37f678(_0x2a2df2._0x5072e8), !![]);
|
|
2290
|
-
}
|
|
2291
|
-
});
|
|
2292
|
-
}
|
|
2293
|
-
async function createChatBridgeServer(_0x5ebfd3) {
|
|
2294
|
-
const _0x2577f2 = { _0x5e2163: 0x255 }, _0x58d8f6 = _0x42cca9, {McpServer: _0x1eb665} = await import(_0x58d8f6(_0x2577f2._0x5e2163)), _0x88ca52 = new _0x1eb665({
|
|
2295
|
-
'name': 'chat',
|
|
2296
|
-
'version': '0.0.0'
|
|
2297
|
-
}), _0x2ebe67 = createChatBridgeHandlers(_0x5ebfd3);
|
|
2298
|
-
return await registerChatBridgeTools(_0x88ca52, _0x2ebe67, { 'workerMode': _0x5ebfd3[_0x58d8f6(0x24c)] }), {
|
|
2299
|
-
'handlers': _0x2ebe67,
|
|
2300
|
-
'server': _0x88ca52
|
|
2301
|
+
async function createChatBridgeServer(_0x3e453d) {
|
|
2302
|
+
const _0x35ec70 = {
|
|
2303
|
+
_0x25bbe1: 0x2e3,
|
|
2304
|
+
_0x4bdfae: 0x2c7
|
|
2305
|
+
}, _0x7300c5 = _0x15c9cf, {McpServer: _0xfdca23} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x1578ca = new _0xfdca23({
|
|
2306
|
+
'name': _0x7300c5(0x31e),
|
|
2307
|
+
'version': _0x7300c5(_0x35ec70._0x25bbe1)
|
|
2308
|
+
}), _0x33c4d0 = createChatBridgeHandlers(_0x3e453d);
|
|
2309
|
+
return await registerChatBridgeTools(_0x1578ca, _0x33c4d0, { 'workerMode': _0x3e453d[_0x7300c5(_0x35ec70._0x4bdfae)] }), {
|
|
2310
|
+
'handlers': _0x33c4d0,
|
|
2311
|
+
'server': _0x1578ca
|
|
2301
2312
|
};
|
|
2302
2313
|
}
|
|
2303
|
-
function readFlag(
|
|
2304
|
-
const
|
|
2305
|
-
if (
|
|
2314
|
+
function readFlag(_0x4f97fe, _0x34a1bd) {
|
|
2315
|
+
const _0x25b9a8 = _0x15c9cf, _0x4b0b0d = _0x4f97fe[_0x25b9a8(0x265)](_0x34a1bd);
|
|
2316
|
+
if (_0x4b0b0d === -0x1)
|
|
2306
2317
|
return void 0x0;
|
|
2307
|
-
return
|
|
2318
|
+
return _0x4f97fe[_0x4b0b0d + 0x1];
|
|
2308
2319
|
}
|
|
2309
|
-
function parseChatBridgeArgs(
|
|
2310
|
-
const
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
if (!
|
|
2321
|
-
throw new Error(
|
|
2322
|
-
if (!
|
|
2323
|
-
throw new Error(
|
|
2324
|
-
if (_0x1b97e3 !== void 0x0 && (_0x3ab46a === void 0x0 || !Number[_0x3c1af5(_0x3482fc._0x1f373b)](_0x3ab46a) || _0x3ab46a < 0x0))
|
|
2325
|
-
throw new Error(_0x3c1af5(0x12d));
|
|
2320
|
+
function parseChatBridgeArgs(_0x191d77) {
|
|
2321
|
+
const _0x2ab149 = {
|
|
2322
|
+
_0x43d232: 0x2be,
|
|
2323
|
+
_0x2eecc7: 0x234,
|
|
2324
|
+
_0x270d66: 0x23a,
|
|
2325
|
+
_0xef354a: 0x213,
|
|
2326
|
+
_0x2e9927: 0x31d,
|
|
2327
|
+
_0x1adf7f: 0x2ec
|
|
2328
|
+
}, _0x41acf3 = _0x15c9cf, _0x37fdaf = readFlag(_0x191d77, _0x41acf3(0x31f)), _0x1ba3c0 = readFlag(_0x191d77, '--daemon-api-key'), _0x3dc26e = readFlag(_0x191d77, '--initial-last-seen-seq'), _0x508799 = readFlag(_0x191d77, _0x41acf3(_0x2ab149._0x43d232)) ?? 'http://localhost:8121', _0x49c1f2 = readFlag(_0x191d77, '--daemon-local-url'), _0xced50a = readFlag(_0x191d77, _0x41acf3(0x279)), _0x55c026 = readFlag(_0x191d77, _0x41acf3(_0x2ab149._0x2eecc7)), _0x438d97 = readFlag(_0x191d77, _0x41acf3(0x2c1)), _0x937f57 = readFlag(_0x191d77, '--worker-thread-target'), _0x113b88 = _0x191d77[_0x41acf3(0x270)](_0x41acf3(_0x2ab149._0x270d66)), _0x3d15ff = _0x3dc26e === void 0x0 ? void 0x0 : Number[_0x41acf3(_0x2ab149._0xef354a)](_0x3dc26e, 0xa);
|
|
2329
|
+
if (!_0x37fdaf)
|
|
2330
|
+
throw new Error('Missing\x20--agent-id');
|
|
2331
|
+
if (!_0x1ba3c0)
|
|
2332
|
+
throw new Error(_0x41acf3(0x34f));
|
|
2333
|
+
if (_0x3dc26e !== void 0x0 && (_0x3d15ff === void 0x0 || !Number[_0x41acf3(_0x2ab149._0x2e9927)](_0x3d15ff) || _0x3d15ff < 0x0))
|
|
2334
|
+
throw new Error(_0x41acf3(0x1ea));
|
|
2326
2335
|
return {
|
|
2327
|
-
'agentId':
|
|
2328
|
-
'daemonApiKey':
|
|
2329
|
-
'daemonLocalUrl':
|
|
2330
|
-
'initialLastSeenSeq':
|
|
2331
|
-
'sessionId':
|
|
2332
|
-
'serverUrl':
|
|
2333
|
-
'workerModeEnabled':
|
|
2334
|
-
'workerSessionId':
|
|
2335
|
-
'workerThreadTarget':
|
|
2336
|
-
'workerMode':
|
|
2336
|
+
'agentId': _0x37fdaf,
|
|
2337
|
+
'daemonApiKey': _0x1ba3c0,
|
|
2338
|
+
'daemonLocalUrl': _0x49c1f2,
|
|
2339
|
+
'initialLastSeenSeq': _0x3d15ff,
|
|
2340
|
+
'sessionId': _0xced50a,
|
|
2341
|
+
'serverUrl': _0x508799,
|
|
2342
|
+
'workerModeEnabled': _0x55c026 === void 0x0 ? void 0x0 : _0x55c026 !== _0x41acf3(_0x2ab149._0x1adf7f),
|
|
2343
|
+
'workerSessionId': _0x438d97,
|
|
2344
|
+
'workerThreadTarget': _0x937f57,
|
|
2345
|
+
'workerMode': _0x113b88
|
|
2337
2346
|
};
|
|
2338
2347
|
}
|
|
2339
|
-
async function runChatBridgeCli(
|
|
2340
|
-
const
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
'
|
|
2346
|
-
'
|
|
2347
|
-
'
|
|
2348
|
-
'daemonLocalUrl': _0x1f6327[_0x2e61c1(0x189)],
|
|
2348
|
+
async function runChatBridgeCli(_0x3e0873) {
|
|
2349
|
+
const _0x1a02b8 = {
|
|
2350
|
+
_0x4e3541: 0x2a5,
|
|
2351
|
+
_0x1a39b8: 0x285
|
|
2352
|
+
}, _0x54cca6 = _0x15c9cf, _0x198879 = parseChatBridgeArgs(_0x3e0873), {StdioServerTransport: _0x5d12a9} = await import(_0x54cca6(0x24f)), _0x5a8ebc = createInternalAgentClient(_0x198879), _0x1cfdfb = createAttachmentCache(), _0x1ed984 = await createChatBridgeServer({
|
|
2353
|
+
'agentId': _0x198879[_0x54cca6(0x30d)],
|
|
2354
|
+
'attachmentCache': _0x1cfdfb,
|
|
2355
|
+
'client': _0x5a8ebc,
|
|
2356
|
+
'daemonLocalUrl': _0x198879[_0x54cca6(_0x1a02b8._0x4e3541)],
|
|
2349
2357
|
'uploadPreparer': prepareUploadFile,
|
|
2350
|
-
'workerModeEnabled':
|
|
2351
|
-
'workerMode':
|
|
2358
|
+
'workerModeEnabled': _0x198879[_0x54cca6(0x24e)],
|
|
2359
|
+
'workerMode': _0x198879['workerMode']
|
|
2352
2360
|
});
|
|
2353
|
-
await
|
|
2361
|
+
await _0x1ed984[_0x54cca6(0x284)][_0x54cca6(_0x1a02b8._0x1a39b8)](new _0x5d12a9());
|
|
2354
2362
|
}
|
|
2355
|
-
var executedAsEntry = process[
|
|
2356
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2363
|
+
var executedAsEntry = process[_0x15c9cf(0x310)][0x1] ? import.meta.url === pathToFileURL(process[_0x15c9cf(0x310)][0x1])['href'] : ![];
|
|
2364
|
+
executedAsEntry && await runChatBridgeCli(process[_0x15c9cf(0x310)]['slice'](0x2));
|
|
2357
2365
|
export {
|
|
2358
2366
|
createChatBridgeHandlers,
|
|
2359
2367
|
createChatBridgeServer,
|