@dscord/daemon 0.1.26 → 0.1.29
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 +2185 -2176
- package/dist/index.js +8266 -8330
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, _0x17ac00 = _0x34a4, _0x534c89 = _0x1f4a67();
|
|
1
|
+
const _0x1bf962 = _0x3fbb;
|
|
2
|
+
(function (_0x4d86f5, _0x2fc045) {
|
|
3
|
+
const _0x1baec8 = {
|
|
4
|
+
_0x4090a3: 0x14f,
|
|
5
|
+
_0x4dfb1c: 0x106,
|
|
6
|
+
_0x319f90: 0x1d9,
|
|
7
|
+
_0x4edeb5: 0x16e,
|
|
8
|
+
_0x41e34c: 0x164
|
|
9
|
+
}, _0x237cc9 = _0x3fbb, _0x2d03d4 = _0x4d86f5();
|
|
11
10
|
while (!![]) {
|
|
12
11
|
try {
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
12
|
+
const _0x55cf80 = -parseInt(_0x237cc9(0x118)) / 0x1 + -parseInt(_0x237cc9(0x1e8)) / 0x2 + parseInt(_0x237cc9(_0x1baec8._0x4090a3)) / 0x3 * (-parseInt(_0x237cc9(_0x1baec8._0x4dfb1c)) / 0x4) + -parseInt(_0x237cc9(_0x1baec8._0x319f90)) / 0x5 + -parseInt(_0x237cc9(_0x1baec8._0x4edeb5)) / 0x6 * (-parseInt(_0x237cc9(_0x1baec8._0x41e34c)) / 0x7) + -parseInt(_0x237cc9(0x22f)) / 0x8 + parseInt(_0x237cc9(0x239)) / 0x9 * (parseInt(_0x237cc9(0x17a)) / 0xa);
|
|
13
|
+
if (_0x55cf80 === _0x2fc045)
|
|
15
14
|
break;
|
|
16
15
|
else
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
16
|
+
_0x2d03d4['push'](_0x2d03d4['shift']());
|
|
17
|
+
} catch (_0x470365) {
|
|
18
|
+
_0x2d03d4['push'](_0x2d03d4['shift']());
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
|
-
}(
|
|
21
|
+
}(_0x19b3, 0xe91a2));
|
|
23
22
|
import { pathToFileURL } from 'node:url';
|
|
24
23
|
import {
|
|
25
24
|
mkdir,
|
|
@@ -29,101 +28,78 @@ import {
|
|
|
29
28
|
writeFile
|
|
30
29
|
} from 'node:fs/promises';
|
|
31
30
|
import { homedir } from 'node:os';
|
|
32
|
-
import
|
|
31
|
+
import _0x1ca7bc from 'node:path';
|
|
33
32
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
34
|
-
'.csv':
|
|
35
|
-
'.gif':
|
|
36
|
-
'.jpeg':
|
|
37
|
-
'.jpg':
|
|
33
|
+
'.csv': _0x1bf962(0x109),
|
|
34
|
+
'.gif': _0x1bf962(0x13a),
|
|
35
|
+
'.jpeg': _0x1bf962(0x1a7),
|
|
36
|
+
'.jpg': _0x1bf962(0x1a7),
|
|
38
37
|
'.json': 'application/json',
|
|
39
|
-
'.md':
|
|
40
|
-
'.pdf':
|
|
41
|
-
'.png':
|
|
42
|
-
'.svg':
|
|
43
|
-
'.txt':
|
|
44
|
-
'.webp':
|
|
38
|
+
'.md': _0x1bf962(0x181),
|
|
39
|
+
'.pdf': 'application/pdf',
|
|
40
|
+
'.png': _0x1bf962(0xd3),
|
|
41
|
+
'.svg': _0x1bf962(0xd7),
|
|
42
|
+
'.txt': _0x1bf962(0x187),
|
|
43
|
+
'.webp': _0x1bf962(0x226),
|
|
45
44
|
'.xml': 'application/xml',
|
|
46
|
-
'.zip':
|
|
45
|
+
'.zip': _0x1bf962(0x159)
|
|
47
46
|
};
|
|
48
|
-
function guessContentType(
|
|
49
|
-
const
|
|
50
|
-
return MIME_BY_EXTENSION[
|
|
47
|
+
function guessContentType(_0x1e3ab2) {
|
|
48
|
+
const _0x371583 = { _0x315b18: 0x18e }, _0x3e8a63 = _0x1bf962;
|
|
49
|
+
return MIME_BY_EXTENSION[_0x1ca7bc[_0x3e8a63(_0x371583._0x315b18)](_0x1e3ab2)[_0x3e8a63(0x11a)]()] ?? _0x3e8a63(0x1f9);
|
|
51
50
|
}
|
|
52
|
-
function safeFilename(
|
|
53
|
-
const
|
|
54
|
-
return
|
|
51
|
+
function safeFilename(_0x2db4e0) {
|
|
52
|
+
const _0xd368ff = { _0x1f702f: 0x1cf }, _0x17ba83 = _0x1bf962;
|
|
53
|
+
return _0x2db4e0[_0x17ba83(_0xd368ff._0x1f702f)](/[\\/]/g, '-');
|
|
55
54
|
}
|
|
56
|
-
function extensionFor(
|
|
57
|
-
const
|
|
58
|
-
|
|
55
|
+
function extensionFor(_0x191e5b) {
|
|
56
|
+
const _0x142182 = {
|
|
57
|
+
_0x13a7ba: 0x170,
|
|
58
|
+
_0x3bff95: 0xdb
|
|
59
|
+
}, _0x42e208 = _0x1bf962, _0x114aea = Object['entries'](MIME_BY_EXTENSION)[_0x42e208(_0x142182._0x13a7ba)](([, _0x4e2ba1]) => _0x4e2ba1 === _0x191e5b);
|
|
60
|
+
return _0x114aea?.[0x0] ?? _0x42e208(_0x142182._0x3bff95);
|
|
59
61
|
}
|
|
60
|
-
function
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
_0x34a4['MQzTsK'] = _0x156a59, _0x34a4['kJSYMP'] = {}, _0x34a4['CvtoeN'] = !![];
|
|
77
|
-
}
|
|
78
|
-
const _0x569aa1 = _0x1f7c4e[0x0], _0x110aa6 = _0x394083 + _0x569aa1, _0x13da48 = _0x34a4['kJSYMP'][_0x110aa6];
|
|
79
|
-
return !_0x13da48 ? (_0x34a453 = _0x34a4['MQzTsK'](_0x34a453), _0x34a4['kJSYMP'][_0x110aa6] = _0x34a453) : _0x34a453 = _0x13da48, _0x34a453;
|
|
80
|
-
}
|
|
81
|
-
async function prepareUploadFile(_0x9c0bf8, _0x5d4898 = {}) {
|
|
82
|
-
const _0x552e0c = {
|
|
83
|
-
_0x385b36: 0x243,
|
|
84
|
-
_0x324b4b: 0x1ab,
|
|
85
|
-
_0x57b376: 0x284,
|
|
86
|
-
_0x14c6b5: 0x20d
|
|
87
|
-
}, _0x4ef9c4 = _0x5e2837;
|
|
88
|
-
if (!_0x37700d[_0x4ef9c4(0x31c)](_0x9c0bf8))
|
|
89
|
-
throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
|
|
90
|
-
const _0x5395c = await stat(_0x9c0bf8)[_0x4ef9c4(_0x552e0c._0x385b36)](() => null);
|
|
91
|
-
if (!_0x5395c || !_0x5395c[_0x4ef9c4(0x280)]())
|
|
92
|
-
throw new Error(_0x4ef9c4(0x29f) + _0x9c0bf8);
|
|
93
|
-
const _0x178dce = _0x5d4898[_0x4ef9c4(0x20f)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
94
|
-
if (_0x5395c['size'] > _0x178dce)
|
|
95
|
-
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x5395c[_0x4ef9c4(_0x552e0c._0x324b4b)]);
|
|
96
|
-
const _0x2beba7 = await readFile(_0x9c0bf8), _0xb1a6ca = _0x37700d[_0x4ef9c4(_0x552e0c._0x57b376)](_0x9c0bf8);
|
|
62
|
+
async function prepareUploadFile(_0x230282, _0x101a1d = {}) {
|
|
63
|
+
const _0x426bd8 = {
|
|
64
|
+
_0x5427e7: 0x131,
|
|
65
|
+
_0x422b3a: 0x156,
|
|
66
|
+
_0x2ea4d2: 0x174,
|
|
67
|
+
_0x1e9674: 0x173
|
|
68
|
+
}, _0x16bbd6 = _0x1bf962;
|
|
69
|
+
if (!_0x1ca7bc['isAbsolute'](_0x230282))
|
|
70
|
+
throw new Error(_0x16bbd6(_0x426bd8._0x5427e7));
|
|
71
|
+
const _0xb7c14 = await stat(_0x230282)[_0x16bbd6(0x1ef)](() => null);
|
|
72
|
+
if (!_0xb7c14 || !_0xb7c14[_0x16bbd6(0x1d0)]())
|
|
73
|
+
throw new Error('File\x20not\x20found:\x20' + _0x230282);
|
|
74
|
+
const _0x44f326 = _0x101a1d[_0x16bbd6(0x182)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
75
|
+
if (_0xb7c14[_0x16bbd6(_0x426bd8._0x422b3a)] > _0x44f326)
|
|
76
|
+
throw new Error(_0x16bbd6(_0x426bd8._0x2ea4d2) + _0xb7c14['size']);
|
|
77
|
+
const _0x5cd327 = await readFile(_0x230282), _0x1bfe8d = _0x1ca7bc[_0x16bbd6(0x23f)](_0x230282);
|
|
97
78
|
return {
|
|
98
|
-
'contentBase64':
|
|
99
|
-
'contentType': guessContentType(
|
|
100
|
-
'filename':
|
|
101
|
-
'sizeBytes':
|
|
79
|
+
'contentBase64': _0x5cd327[_0x16bbd6(_0x426bd8._0x1e9674)](_0x16bbd6(0x1b7)),
|
|
80
|
+
'contentType': guessContentType(_0x1bfe8d),
|
|
81
|
+
'filename': _0x1bfe8d,
|
|
82
|
+
'sizeBytes': _0xb7c14['size']
|
|
102
83
|
};
|
|
103
84
|
}
|
|
104
|
-
function createAttachmentCache(
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
},
|
|
109
|
-
_0x549010: 0x228,
|
|
110
|
-
_0xfe77ee: 0x228,
|
|
111
|
-
_0x2057f6: 0x212,
|
|
112
|
-
_0x3593c4: 0x32e
|
|
113
|
-
}, _0x122898 = { _0x19f065: 0x32f }, _0x192329 = _0x5e2837, _0x1838f0 = _0x4f3617[_0x192329(0x28d)] ?? _0x37700d[_0x192329(0x32f)](homedir(), _0x192329(_0x18f127._0x3cc02), _0x192329(_0x18f127._0x43bba8));
|
|
85
|
+
function createAttachmentCache(_0x215899 = {}) {
|
|
86
|
+
const _0x564095 = {
|
|
87
|
+
_0x3dc4a4: 0xdd,
|
|
88
|
+
_0x326e25: 0x17e
|
|
89
|
+
}, _0xca0a74 = _0x1bf962, _0x6e1948 = _0x215899['cacheDir'] ?? _0x1ca7bc['join'](homedir(), '.slock', _0xca0a74(0x23d));
|
|
114
90
|
return {
|
|
115
|
-
'cacheDir':
|
|
116
|
-
async 'findCachedPath'(
|
|
117
|
-
const
|
|
118
|
-
await mkdir(
|
|
119
|
-
const
|
|
120
|
-
return
|
|
91
|
+
'cacheDir': _0x6e1948,
|
|
92
|
+
async 'findCachedPath'(_0x6f8e35) {
|
|
93
|
+
const _0x2c3f94 = _0xca0a74;
|
|
94
|
+
await mkdir(_0x6e1948, { 'recursive': !![] });
|
|
95
|
+
const _0x5af836 = await readdir(_0x6e1948), _0x346dd4 = _0x5af836[_0x2c3f94(0x170)](_0x2ffb8e => _0x2ffb8e[_0x2c3f94(0x1a0)](_0x6f8e35 + '-') || _0x2ffb8e['startsWith'](_0x6f8e35));
|
|
96
|
+
return _0x346dd4 ? _0x1ca7bc['join'](_0x6e1948, _0x346dd4) : null;
|
|
121
97
|
},
|
|
122
|
-
async 'save'(
|
|
123
|
-
const
|
|
124
|
-
await mkdir(
|
|
125
|
-
const
|
|
126
|
-
return await writeFile(
|
|
98
|
+
async 'save'(_0x44cbc2) {
|
|
99
|
+
const _0xa8ab48 = _0xca0a74;
|
|
100
|
+
await mkdir(_0x6e1948, { 'recursive': !![] });
|
|
101
|
+
const _0x5469a0 = _0x44cbc2[_0xa8ab48(0x1e9)]?.[_0xa8ab48(_0x564095._0x3dc4a4)]() ? safeFilename(_0x44cbc2[_0xa8ab48(0x1e9)]) : '' + _0x44cbc2[_0xa8ab48(0x233)] + extensionFor(_0x44cbc2[_0xa8ab48(0x158)]), _0x4e3583 = _0x1ca7bc['join'](_0x6e1948, _0x44cbc2[_0xa8ab48(0x233)] + '-' + _0x5469a0);
|
|
102
|
+
return await writeFile(_0x4e3583, _0x44cbc2[_0xa8ab48(_0x564095._0x326e25)]), _0x4e3583;
|
|
127
103
|
}
|
|
128
104
|
};
|
|
129
105
|
}
|
|
@@ -131,2171 +107,2204 @@ import {
|
|
|
131
107
|
createHash,
|
|
132
108
|
randomUUID
|
|
133
109
|
} from 'node:crypto';
|
|
134
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
135
|
-
function ensureSegment(
|
|
136
|
-
const
|
|
137
|
-
if (!
|
|
138
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
139
|
-
return _0x516cbe;
|
|
140
|
-
}
|
|
141
|
-
function parseThreadParts(_0x4a5888) {
|
|
142
|
-
const _0x837fc = {
|
|
143
|
-
_0x412013: 0x1d5,
|
|
144
|
-
_0x444c2b: 0x1d5
|
|
145
|
-
}, _0x52ae59 = _0x5e2837, _0x317409 = _0x4a5888[_0x52ae59(0x1e8)](':');
|
|
146
|
-
if (_0x317409[_0x52ae59(_0x837fc._0x412013)] < 0x1 || _0x317409[_0x52ae59(_0x837fc._0x444c2b)] > 0x2)
|
|
147
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
148
|
-
return {
|
|
149
|
-
'channelName': ensureSegment(_0x317409[0x0] ?? ''),
|
|
150
|
-
'threadShortId': _0x317409[0x1] ? ensureSegment(_0x317409[0x1]) : null
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
function parseTarget(_0x32d516) {
|
|
154
|
-
const _0x296616 = {
|
|
155
|
-
_0x488e5e: 0x292,
|
|
156
|
-
_0x1e1c1d: 0x31b,
|
|
157
|
-
_0x18fc1e: 0x23c,
|
|
158
|
-
_0x2dc3ee: 0x2b5,
|
|
159
|
-
_0xe156f5: 0x1fe,
|
|
160
|
-
_0x5987fa: 0x31b
|
|
161
|
-
}, _0x10857b = _0x5e2837, _0x4bfe94 = _0x32d516[_0x10857b(_0x296616._0x488e5e)]();
|
|
162
|
-
if (!_0x4bfe94)
|
|
110
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x1bf962(0x1eb);
|
|
111
|
+
function ensureSegment(_0x38ef84) {
|
|
112
|
+
const _0x373402 = _0x1bf962, _0x1b6642 = _0x38ef84[_0x373402(0xdd)]();
|
|
113
|
+
if (!_0x1b6642 || _0x1b6642['includes'](':'))
|
|
163
114
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
164
|
-
|
|
165
|
-
const _0x4d6ad4 = parseThreadParts(_0x4bfe94[_0x10857b(0x24a)](0x1)), _0x2064dd = '#' + _0x4d6ad4['channelName'];
|
|
166
|
-
if (!_0x4d6ad4[_0x10857b(_0x296616._0x1e1c1d)])
|
|
167
|
-
return {
|
|
168
|
-
'channelName': _0x4d6ad4[_0x10857b(0x1fe)],
|
|
169
|
-
'channelTarget': _0x2064dd,
|
|
170
|
-
'kind': _0x10857b(0x22b),
|
|
171
|
-
'target': _0x2064dd
|
|
172
|
-
};
|
|
173
|
-
return {
|
|
174
|
-
'channelName': _0x4d6ad4[_0x10857b(0x1fe)],
|
|
175
|
-
'channelTarget': _0x2064dd,
|
|
176
|
-
'kind': _0x10857b(_0x296616._0x18fc1e),
|
|
177
|
-
'target': _0x2064dd + ':' + _0x4d6ad4['threadShortId'],
|
|
178
|
-
'threadShortId': _0x4d6ad4[_0x10857b(0x31b)]
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
if (_0x4bfe94[_0x10857b(0x2b5)]('dm:')) {
|
|
182
|
-
const _0x3d6891 = parseThreadParts(_0x4bfe94['slice'](0x3));
|
|
183
|
-
if (!_0x3d6891[_0x10857b(0x1fe)][_0x10857b(_0x296616._0x2dc3ee)]('dm-'))
|
|
184
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
185
|
-
const _0x434aa7 = _0x10857b(0x30b) + _0x3d6891[_0x10857b(_0x296616._0xe156f5)];
|
|
186
|
-
if (!_0x3d6891[_0x10857b(0x31b)])
|
|
187
|
-
return {
|
|
188
|
-
'channelName': _0x3d6891[_0x10857b(0x1fe)],
|
|
189
|
-
'channelTarget': _0x434aa7,
|
|
190
|
-
'kind': 'channel',
|
|
191
|
-
'target': _0x434aa7
|
|
192
|
-
};
|
|
193
|
-
return {
|
|
194
|
-
'channelName': _0x3d6891[_0x10857b(0x1fe)],
|
|
195
|
-
'channelTarget': _0x434aa7,
|
|
196
|
-
'kind': 'thread',
|
|
197
|
-
'target': _0x434aa7 + ':' + _0x3d6891[_0x10857b(0x31b)],
|
|
198
|
-
'threadShortId': _0x3d6891[_0x10857b(_0x296616._0x5987fa)]
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
202
|
-
}
|
|
203
|
-
function asErrorMessage(_0x1ac47a, _0x58fb56) {
|
|
204
|
-
const _0x23d24a = _0x5e2837;
|
|
205
|
-
if (typeof _0x1ac47a === 'string' && _0x1ac47a[_0x23d24a(0x292)]())
|
|
206
|
-
return _0x1ac47a;
|
|
207
|
-
return _0x58fb56;
|
|
208
|
-
}
|
|
209
|
-
function asRecord(_0x1b0b62) {
|
|
210
|
-
const _0x612cda = { _0x2a1b0f: 0x1c9 }, _0x54079b = _0x5e2837;
|
|
211
|
-
return typeof _0x1b0b62 === _0x54079b(_0x612cda._0x2a1b0f) && _0x1b0b62 !== null ? _0x1b0b62 : {};
|
|
212
|
-
}
|
|
213
|
-
function stableStringify(_0x3825ec) {
|
|
214
|
-
const _0xa742af = {
|
|
215
|
-
_0x267e96: 0x320,
|
|
216
|
-
_0x1c0391: 0x32f,
|
|
217
|
-
_0x19b539: 0x2fc,
|
|
218
|
-
_0x2f1c91: 0x236,
|
|
219
|
-
_0x1966df: 0x2ed
|
|
220
|
-
}, _0x1d0251 = _0x5e2837;
|
|
221
|
-
if (_0x3825ec === null || typeof _0x3825ec !== _0x1d0251(0x1c9))
|
|
222
|
-
return JSON[_0x1d0251(0x245)](_0x3825ec);
|
|
223
|
-
if (Array[_0x1d0251(_0xa742af._0x267e96)](_0x3825ec))
|
|
224
|
-
return '[' + _0x3825ec[_0x1d0251(0x2ed)](_0x39bc67 => stableStringify(_0x39bc67))[_0x1d0251(_0xa742af._0x1c0391)](',') + ']';
|
|
225
|
-
const _0x4e2398 = Object[_0x1d0251(0x1af)](_0x3825ec)[_0x1d0251(_0xa742af._0x19b539)](([, _0x38e57c]) => _0x38e57c !== void 0x0)[_0x1d0251(_0xa742af._0x2f1c91)](([_0x27c033], [_0x6aa328]) => _0x27c033[_0x1d0251(0x2c7)](_0x6aa328))[_0x1d0251(_0xa742af._0x1966df)](([_0x42f881, _0x454f88]) => JSON[_0x1d0251(0x245)](_0x42f881) + ':' + stableStringify(_0x454f88));
|
|
226
|
-
return '{' + _0x4e2398[_0x1d0251(_0xa742af._0x1c0391)](',') + '}';
|
|
227
|
-
}
|
|
228
|
-
function createHeaders(_0x509fb8) {
|
|
229
|
-
const _0x4fb299 = _0x5e2837;
|
|
230
|
-
return {
|
|
231
|
-
'Content-Type': _0x4fb299(0x253),
|
|
232
|
-
'x-daemon-api-key': _0x509fb8
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
function toHttpBaseUrl(_0x2055b9) {
|
|
236
|
-
const _0x52be46 = {
|
|
237
|
-
_0x302b85: 0x1b0,
|
|
238
|
-
_0x4fcb62: 0x2cf,
|
|
239
|
-
_0xbce713: 0x1f4,
|
|
240
|
-
_0x3e1bdf: 0x29e,
|
|
241
|
-
_0xedca94: 0x1d9
|
|
242
|
-
}, _0x36e3b3 = _0x5e2837, _0x5144dd = new URL(_0x2055b9);
|
|
243
|
-
if (_0x5144dd[_0x36e3b3(0x220)] === _0x36e3b3(_0x52be46._0x302b85))
|
|
244
|
-
_0x5144dd['protocol'] = _0x36e3b3(_0x52be46._0x4fcb62);
|
|
245
|
-
else
|
|
246
|
-
_0x5144dd['protocol'] === _0x36e3b3(_0x52be46._0xbce713) && (_0x5144dd[_0x36e3b3(0x220)] = _0x36e3b3(_0x52be46._0x3e1bdf));
|
|
247
|
-
return _0x5144dd[_0x36e3b3(0x20d)]()[_0x36e3b3(_0x52be46._0xedca94)](/\/$/, '');
|
|
248
|
-
}
|
|
249
|
-
function isMentionBoundary(_0x4ead21) {
|
|
250
|
-
const _0x2dc69e = { _0xd17cef: 0x2d4 }, _0x35a31b = _0x5e2837;
|
|
251
|
-
return !_0x4ead21 || /\s|[([{'",。!?、:;]/[_0x35a31b(_0x2dc69e._0xd17cef)](_0x4ead21);
|
|
252
|
-
}
|
|
253
|
-
function isMentionTerminal(_0x3b12a8) {
|
|
254
|
-
const _0x3f7d54 = _0x5e2837;
|
|
255
|
-
return !_0x3b12a8 || /\s|[)\]}'",。!?、:;,.!?]/[_0x3f7d54(0x2d4)](_0x3b12a8);
|
|
256
|
-
}
|
|
257
|
-
function buildMatchableEntries(_0x26ce55) {
|
|
258
|
-
const _0x4fbab4 = _0x5e2837, _0x3d3674 = [];
|
|
259
|
-
for (const _0x277c8c of [
|
|
260
|
-
..._0x26ce55[_0x4fbab4(0x2ad)],
|
|
261
|
-
..._0x26ce55[_0x4fbab4(0x21a)]
|
|
262
|
-
]) {
|
|
263
|
-
_0x3d3674[_0x4fbab4(0x27e)]({
|
|
264
|
-
'matchName': _0x277c8c['name'],
|
|
265
|
-
'matchNameLower': _0x277c8c['name'][_0x4fbab4(0x2b6)](),
|
|
266
|
-
'participantId': _0x277c8c['id']
|
|
267
|
-
}), _0x277c8c['id'] !== _0x277c8c[_0x4fbab4(0x1a9)] && _0x3d3674[_0x4fbab4(0x27e)]({
|
|
268
|
-
'matchName': _0x277c8c['id'],
|
|
269
|
-
'matchNameLower': _0x277c8c['id'][_0x4fbab4(0x2b6)](),
|
|
270
|
-
'participantId': _0x277c8c['id']
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
return _0x3d3674;
|
|
274
|
-
}
|
|
275
|
-
function extractMentionedParticipantIds(_0xe66ccb, _0x529a91) {
|
|
276
|
-
const _0x146878 = {
|
|
277
|
-
_0x4b0fa8: 0x24a,
|
|
278
|
-
_0x40c168: 0x2b6,
|
|
279
|
-
_0x4c53f2: 0x208,
|
|
280
|
-
_0x4a53e8: 0x27e,
|
|
281
|
-
_0x23a975: 0x1d5
|
|
282
|
-
}, _0x1e6dc4 = { _0x377abb: 0x1d5 }, _0x1c8cfa = _0x5e2837, _0x5c42f9 = buildMatchableEntries(_0x529a91)[_0x1c8cfa(0x236)]((_0x46bb2d, _0x2a46eb) => _0x2a46eb['matchName'][_0x1c8cfa(0x1d5)] - _0x46bb2d[_0x1c8cfa(0x2de)][_0x1c8cfa(0x1d5)]), _0x1347d2 = [], _0x12d494 = new Set();
|
|
283
|
-
for (let _0x3741f9 = 0x0; _0x3741f9 < _0xe66ccb[_0x1c8cfa(0x1d5)]; _0x3741f9 += 0x1) {
|
|
284
|
-
if (_0xe66ccb[_0x3741f9] !== '@' || !isMentionBoundary(_0xe66ccb[_0x3741f9 - 0x1]))
|
|
285
|
-
continue;
|
|
286
|
-
const _0x2c089e = _0xe66ccb[_0x1c8cfa(_0x146878._0x4b0fa8)](_0x3741f9 + 0x1), _0x3db7b2 = _0x2c089e[_0x1c8cfa(_0x146878._0x40c168)](), _0x3a82a7 = _0x5c42f9[_0x1c8cfa(_0x146878._0x4c53f2)](_0x4e338f => {
|
|
287
|
-
const _0x5030e4 = _0x1c8cfa;
|
|
288
|
-
if (!_0x3db7b2[_0x5030e4(0x2b5)](_0x4e338f[_0x5030e4(0x283)]))
|
|
289
|
-
return ![];
|
|
290
|
-
return isMentionTerminal(_0x2c089e[_0x4e338f[_0x5030e4(0x2de)][_0x5030e4(_0x1e6dc4._0x377abb)]]);
|
|
291
|
-
});
|
|
292
|
-
if (!_0x3a82a7 || _0x12d494[_0x1c8cfa(0x2c8)](_0x3a82a7['participantId']))
|
|
293
|
-
continue;
|
|
294
|
-
_0x12d494[_0x1c8cfa(0x2bf)](_0x3a82a7['participantId']), _0x1347d2[_0x1c8cfa(_0x146878._0x4a53e8)](_0x3a82a7[_0x1c8cfa(0x2d3)]), _0x3741f9 += _0x3a82a7[_0x1c8cfa(0x2de)][_0x1c8cfa(_0x146878._0x23a975)];
|
|
295
|
-
}
|
|
296
|
-
return _0x1347d2;
|
|
297
|
-
}
|
|
298
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
299
|
-
function anySignal(..._0x1dc38b) {
|
|
300
|
-
const _0x1dc666 = {
|
|
301
|
-
_0x5df983: 0x300,
|
|
302
|
-
_0x6fc7d2: 0x2bd,
|
|
303
|
-
_0x3e2235: 0x2bd
|
|
304
|
-
}, _0x50c707 = _0x5e2837, _0x9471c9 = new AbortController();
|
|
305
|
-
for (const _0x1573af of _0x1dc38b) {
|
|
306
|
-
if (_0x1573af[_0x50c707(0x2dd)])
|
|
307
|
-
return _0x9471c9[_0x50c707(_0x1dc666._0x5df983)](_0x1573af[_0x50c707(0x28e)]), _0x9471c9[_0x50c707(_0x1dc666._0x6fc7d2)];
|
|
308
|
-
_0x1573af['addEventListener'](_0x50c707(0x300), () => _0x9471c9[_0x50c707(0x300)](_0x1573af[_0x50c707(0x28e)]), {
|
|
309
|
-
'once': !![],
|
|
310
|
-
'signal': _0x9471c9[_0x50c707(0x2bd)]
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
return _0x9471c9[_0x50c707(_0x1dc666._0x3e2235)];
|
|
314
|
-
}
|
|
315
|
-
function createInternalAgentClient(_0x29ed46) {
|
|
316
|
-
const _0x1f4237 = {
|
|
317
|
-
_0x55dfc4: 0x25f,
|
|
318
|
-
_0x4d59b3: 0x1ba,
|
|
319
|
-
_0x5e4f6d: 0x2ff,
|
|
320
|
-
_0xcdb304: 0x292
|
|
321
|
-
}, _0x1aa4a7 = {
|
|
322
|
-
_0x19ba2f: 0x1dc,
|
|
323
|
-
_0x303401: 0x1f8,
|
|
324
|
-
_0x5efd5f: 0x321,
|
|
325
|
-
_0x5ba1f5: 0x222,
|
|
326
|
-
_0x548130: 0x2fc,
|
|
327
|
-
_0x224346: 0x1e4,
|
|
328
|
-
_0x3c91e5: 0x2ed,
|
|
329
|
-
_0x131559: 0x1ec,
|
|
330
|
-
_0x21fcf6: 0x20b,
|
|
331
|
-
_0x1254ff: 0x305,
|
|
332
|
-
_0x573e69: 0x2f2,
|
|
333
|
-
_0x3a4393: 0x310,
|
|
334
|
-
_0x5a2614: 0x2c3,
|
|
335
|
-
_0x11aaaa: 0x1d2,
|
|
336
|
-
_0x101448: 0x223,
|
|
337
|
-
_0x4b3154: 0x302,
|
|
338
|
-
_0x1b2b05: 0x1a9,
|
|
339
|
-
_0x3c6b29: 0x1dd,
|
|
340
|
-
_0x3e26bd: 0x1d5,
|
|
341
|
-
_0x455f55: 0x2ed,
|
|
342
|
-
_0x19bba9: 0x27e,
|
|
343
|
-
_0x1405e5: 0x2ef,
|
|
344
|
-
_0x1bd385: 0x26c,
|
|
345
|
-
_0x247cd4: 0x319,
|
|
346
|
-
_0x444608: 0x241,
|
|
347
|
-
_0x1a29e8: 0x1be,
|
|
348
|
-
_0x3c5931: 0x1ec,
|
|
349
|
-
_0x41a25f: 0x2fc
|
|
350
|
-
}, _0x1290c9 = {
|
|
351
|
-
_0x43b932: 0x2a5,
|
|
352
|
-
_0x2b8178: 0x22c
|
|
353
|
-
}, _0x3d72c0 = {
|
|
354
|
-
_0x12740: 0x32b,
|
|
355
|
-
_0xf0c40a: 0x2b9,
|
|
356
|
-
_0x55fd35: 0x24c,
|
|
357
|
-
_0x16275e: 0x298,
|
|
358
|
-
_0x14c511: 0x302,
|
|
359
|
-
_0x55c88f: 0x30d,
|
|
360
|
-
_0x251cc0: 0x1a1,
|
|
361
|
-
_0x3e8351: 0x255,
|
|
362
|
-
_0x3a0d06: 0x24c
|
|
363
|
-
}, _0x7ddc8b = {
|
|
364
|
-
_0x45aa84: 0x22b,
|
|
365
|
-
_0x417469: 0x245,
|
|
366
|
-
_0x2222d5: 0x22c,
|
|
367
|
-
_0x411cfa: 0x275,
|
|
368
|
-
_0x581aa1: 0x212,
|
|
369
|
-
_0x181f3b: 0x24c,
|
|
370
|
-
_0x33d2b9: 0x228,
|
|
371
|
-
_0x37a8b9: 0x25a
|
|
372
|
-
}, _0x2a1280 = {
|
|
373
|
-
_0x19ec3d: 0x245,
|
|
374
|
-
_0x3894a1: 0x22e
|
|
375
|
-
}, _0x336daf = { _0x3b81a1: 0x249 }, _0x18c4a4 = {
|
|
376
|
-
_0x39f1ee: 0x303,
|
|
377
|
-
_0x53c6f1: 0x245
|
|
378
|
-
}, _0x3790f9 = {
|
|
379
|
-
_0x55f684: 0x25b,
|
|
380
|
-
_0x1018d7: 0x245,
|
|
381
|
-
_0x3f75f8: 0x22e
|
|
382
|
-
}, _0xb80567 = {
|
|
383
|
-
_0x5676d2: 0x1dc,
|
|
384
|
-
_0x4ec28f: 0x22b,
|
|
385
|
-
_0x4b82fa: 0x2b9,
|
|
386
|
-
_0x2d1a27: 0x2b9,
|
|
387
|
-
_0x22f462: 0x2cc,
|
|
388
|
-
_0x492bdb: 0x321
|
|
389
|
-
}, _0x415d82 = { _0x5aab89: 0x245 }, _0x16e063 = {
|
|
390
|
-
_0x7c5b05: 0x22e,
|
|
391
|
-
_0x27ff57: 0x24c
|
|
392
|
-
}, _0x370969 = { _0x5d0e5d: 0x245 }, _0x387488 = { _0x1d2777: 0x24c }, _0x5c6fc0 = {
|
|
393
|
-
_0x53fef0: 0x2cc,
|
|
394
|
-
_0x1ddc05: 0x20b,
|
|
395
|
-
_0x34515c: 0x1d5,
|
|
396
|
-
_0x3a0d85: 0x22e,
|
|
397
|
-
_0x5ce021: 0x24c
|
|
398
|
-
}, _0x4e9122 = {
|
|
399
|
-
_0x46cc4d: 0x305,
|
|
400
|
-
_0xf22d44: 0x1dc,
|
|
401
|
-
_0x50e334: 0x321,
|
|
402
|
-
_0x2388ac: 0x27a,
|
|
403
|
-
_0x41940b: 0x20d,
|
|
404
|
-
_0x31a9ce: 0x24c,
|
|
405
|
-
_0x365754: 0x222,
|
|
406
|
-
_0x523755: 0x222
|
|
407
|
-
}, _0x13d0bf = {
|
|
408
|
-
_0x12f37e: 0x23c,
|
|
409
|
-
_0x203e89: 0x2e8,
|
|
410
|
-
_0x3f8058: 0x310,
|
|
411
|
-
_0xe8e882: 0x2f2,
|
|
412
|
-
_0x415955: 0x2b5,
|
|
413
|
-
_0x7ce4d1: 0x31b
|
|
414
|
-
}, _0x1f1fbc = {
|
|
415
|
-
_0x5f257e: 0x2e8,
|
|
416
|
-
_0x3ff865: 0x310,
|
|
417
|
-
_0x2ba339: 0x2f2,
|
|
418
|
-
_0x2da1ec: 0x2e8,
|
|
419
|
-
_0x3b1086: 0x24a
|
|
420
|
-
}, _0x12eb4b = { _0x1982ae: 0x23e }, _0x3be985 = {
|
|
421
|
-
_0x191636: 0x254,
|
|
422
|
-
_0x2397c2: 0x243
|
|
423
|
-
}, _0x5b862d = {
|
|
424
|
-
_0x5c59d2: 0x321,
|
|
425
|
-
_0x366977: 0x24c,
|
|
426
|
-
_0x4e871c: 0x264,
|
|
427
|
-
_0x408d92: 0x2fc,
|
|
428
|
-
_0x2c1448: 0x1e4,
|
|
429
|
-
_0x29b6a8: 0x1a9
|
|
430
|
-
}, _0x3446ad = {
|
|
431
|
-
_0x3afc74: 0x259,
|
|
432
|
-
_0x83cc32: 0x22e,
|
|
433
|
-
_0x3c897b: 0x24c,
|
|
434
|
-
_0x487ac5: 0x305,
|
|
435
|
-
_0x45351a: 0x24c
|
|
436
|
-
}, _0x692b12 = {
|
|
437
|
-
_0x583d53: 0x245,
|
|
438
|
-
_0x264d2a: 0x1e0
|
|
439
|
-
}, _0x57fa71 = {
|
|
440
|
-
_0xcc8da4: 0x2bd,
|
|
441
|
-
_0x175d62: 0x1c1,
|
|
442
|
-
_0x3f8bc9: 0x2b9
|
|
443
|
-
}, _0x5c72a1 = {
|
|
444
|
-
_0x32ff47: 0x2bd,
|
|
445
|
-
_0x23a871: 0x262,
|
|
446
|
-
_0x2b2920: 0x1c1
|
|
447
|
-
}, _0x923c86 = {
|
|
448
|
-
_0x11bd2b: 0x1ec,
|
|
449
|
-
_0x11c586: 0x1d1,
|
|
450
|
-
_0x4175be: 0x21c,
|
|
451
|
-
_0x1ba9aa: 0x2cb,
|
|
452
|
-
_0x340dfb: 0x2c2,
|
|
453
|
-
_0x5a4633: 0x244,
|
|
454
|
-
_0x51cee4: 0x1dc
|
|
455
|
-
}, _0xae8e80 = { _0x18f94d: 0x255 }, _0x36f0da = {
|
|
456
|
-
_0x269768: 0x2dc,
|
|
457
|
-
_0x2d1628: 0x298,
|
|
458
|
-
_0xacc0ae: 0x1d9,
|
|
459
|
-
_0x37eec5: 0x28a,
|
|
460
|
-
_0xd7d911: 0x2af,
|
|
461
|
-
_0x496540: 0x296
|
|
462
|
-
}, _0x5119b5 = _0x5e2837, _0x2cccb9 = _0x29ed46[_0x5119b5(0x246)] ?? fetch, _0x13ce15 = _0x29ed46['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x3646a1 = typeof _0x29ed46['initialLastSeenSeq'] === _0x5119b5(0x28b) && _0x29ed46[_0x5119b5(_0x1f4237._0x55dfc4)] > 0x0 ? _0x29ed46[_0x5119b5(0x25f)] : 0x0, _0xdc6c6d = _0x29ed46[_0x5119b5(_0x1f4237._0x4d59b3)]?.['trim']() || void 0x0, _0x57fc1f = _0x29ed46[_0x5119b5(_0x1f4237._0x5e4f6d)]?.['trim']() || void 0x0, _0x395046 = _0x29ed46['workerModeEnabled'] === !![], _0xdf33c9 = _0x29ed46['workerSessionId']?.[_0x5119b5(_0x1f4237._0xcdb304)]() || void 0x0, _0x2bfab9 = _0x29ed46[_0x5119b5(0x1cc)]?.[_0x5119b5(0x292)]() || void 0x0, _0x54e203 = createHeaders(_0x29ed46['daemonApiKey']), _0x32e8c5 = toHttpBaseUrl(_0x29ed46[_0x5119b5(0x1cf)]);
|
|
463
|
-
let _0x3b38de = null;
|
|
464
|
-
const _0x1cfa2d = new Map();
|
|
465
|
-
let _0x18cc3e = _0x3646a1, _0x98f8f9 = _0x3646a1;
|
|
466
|
-
function _0x1d458e(_0x5c9a2b) {
|
|
467
|
-
const _0x239ec2 = _0x5119b5, _0x2d7d2d = _0x5c9a2b[_0x239ec2(_0x36f0da._0x269768)][_0x239ec2(_0x36f0da._0x2d1628)][_0x239ec2(0x302)](_0x239ec2(0x30d)) ?? _0x239ec2(0x1b9), _0x4ab95f = _0x5c9a2b['bodyText'][_0x239ec2(0x292)]()[_0x239ec2(_0x36f0da._0xacc0ae)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x239ec2(_0x36f0da._0x37eec5);
|
|
468
|
-
return '请求\x20' + _0x5c9a2b[_0x239ec2(_0x36f0da._0xd7d911)] + _0x239ec2(_0x36f0da._0x496540) + _0x5c9a2b[_0x239ec2(_0x36f0da._0x269768)]['status'] + _0x239ec2(0x256) + _0x2d7d2d + _0x239ec2(0x1c8) + _0x4ab95f + _0x239ec2(0x2e4);
|
|
469
|
-
}
|
|
470
|
-
async function _0x31aec8(_0x2820ea, _0x31644a) {
|
|
471
|
-
const _0x4ecaa8 = _0x5119b5, _0x41f146 = Buffer['from'](await _0x31644a[_0x4ecaa8(_0xae8e80._0x18f94d)]())[_0x4ecaa8(0x20d)](_0x4ecaa8(0x27d));
|
|
472
|
-
if (!_0x41f146[_0x4ecaa8(0x292)]())
|
|
473
|
-
return {};
|
|
474
|
-
try {
|
|
475
|
-
return JSON[_0x4ecaa8(0x1ea)](_0x41f146);
|
|
476
|
-
} catch {
|
|
477
|
-
throw new Error(_0x1d458e({
|
|
478
|
-
'bodyText': _0x41f146,
|
|
479
|
-
'requestUrl': _0x2820ea,
|
|
480
|
-
'response': _0x31644a
|
|
481
|
-
}));
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
function _0x31bdd7(_0x25f04d, _0x42f541) {
|
|
485
|
-
const _0x1fe401 = _0x5119b5, _0x330d32 = typeof _0x42f541[_0x1fe401(0x1d1)] === _0x1fe401(_0x923c86._0x11bd2b) ? _0x42f541[_0x1fe401(_0x923c86._0x11c586)][_0x1fe401(0x292)]() : '';
|
|
486
|
-
if (_0x330d32)
|
|
487
|
-
return _0x330d32;
|
|
488
|
-
const _0x866a53 = Date[_0x1fe401(_0x923c86._0x4175be)]();
|
|
489
|
-
for (const [_0x5e4f2c, _0x37c0fb] of _0x1cfa2d) {
|
|
490
|
-
_0x37c0fb[_0x1fe401(0x289)] <= _0x866a53 && _0x1cfa2d[_0x1fe401(_0x923c86._0x1ba9aa)](_0x5e4f2c);
|
|
491
|
-
}
|
|
492
|
-
const _0x544a8e = {
|
|
493
|
-
..._0x42f541,
|
|
494
|
-
'idempotency_key': void 0x0
|
|
495
|
-
}, _0x353a99 = createHash(_0x1fe401(_0x923c86._0x340dfb))[_0x1fe401(_0x923c86._0x5a4633)](_0x25f04d + ':' + stableStringify(_0x544a8e))['digest'](_0x1fe401(0x248)), _0x5ed446 = _0x25f04d + ':' + _0x353a99, _0x5590ec = _0x1cfa2d['get'](_0x5ed446);
|
|
496
|
-
if (_0x5590ec)
|
|
497
|
-
return _0x5590ec[_0x1fe401(0x238)];
|
|
498
|
-
const _0x35a961 = _0x1fe401(0x267) + _0x25f04d + ':' + randomUUID();
|
|
499
|
-
return _0x1cfa2d[_0x1fe401(_0x923c86._0x51cee4)](_0x5ed446, {
|
|
500
|
-
'expiresAt': _0x866a53 + 0x5 * 0x3c * 0x3e8,
|
|
501
|
-
'value': _0x35a961
|
|
502
|
-
}), _0x35a961;
|
|
503
|
-
}
|
|
504
|
-
async function _0x4501d3(_0x50d8a7, _0x2c991f) {
|
|
505
|
-
const _0x5dc89f = _0x5119b5, _0x3ec3be = new AbortController(), _0x273120 = setTimeout(() => _0x3ec3be['abort'](), _0x13ce15), _0x3df2d8 = _0x2c991f?.[_0x5dc89f(_0x5c72a1._0x32ff47)] ? anySignal(_0x2c991f[_0x5dc89f(0x2bd)], _0x3ec3be['signal']) : _0x3ec3be[_0x5dc89f(0x2bd)], _0xebc4ee = '' + _0x32e8c5 + _0x50d8a7;
|
|
506
|
-
try {
|
|
507
|
-
const _0x4d8b27 = await _0x2cccb9(_0xebc4ee, {
|
|
508
|
-
..._0x2c991f,
|
|
509
|
-
'signal': _0x3df2d8
|
|
510
|
-
}), _0x14b701 = await _0x31aec8(_0xebc4ee, _0x4d8b27);
|
|
511
|
-
if (!_0x4d8b27['ok'] || _0x14b701[_0x5dc89f(_0x5c72a1._0x23a871)] === ![])
|
|
512
|
-
throw new Error(asErrorMessage(_0x14b701[_0x5dc89f(_0x5c72a1._0x2b2920)], 'HTTP\x20' + _0x4d8b27[_0x5dc89f(0x2b9)]));
|
|
513
|
-
return _0x14b701;
|
|
514
|
-
} finally {
|
|
515
|
-
clearTimeout(_0x273120);
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
async function _0x12c9db(_0x493610, _0x2dfce3) {
|
|
519
|
-
const _0xef46b8 = _0x5119b5, _0x1d053a = new AbortController(), _0x26bb12 = setTimeout(() => _0x1d053a[_0xef46b8(0x300)](), _0x13ce15), _0x217106 = _0x2dfce3?.[_0xef46b8(_0x57fa71._0xcc8da4)] ? anySignal(_0x2dfce3['signal'], _0x1d053a['signal']) : _0x1d053a[_0xef46b8(0x2bd)], _0x1f3d4d = '' + _0x32e8c5 + _0x493610;
|
|
520
|
-
try {
|
|
521
|
-
const _0x4783f9 = await _0x2cccb9(_0x1f3d4d, {
|
|
522
|
-
..._0x2dfce3,
|
|
523
|
-
'signal': _0x217106
|
|
524
|
-
}), _0xea84b6 = await _0x31aec8(_0x1f3d4d, _0x4783f9);
|
|
525
|
-
if (!_0x4783f9['ok'])
|
|
526
|
-
throw new Error(asErrorMessage(_0xea84b6[_0xef46b8(_0x57fa71._0x175d62)], _0xef46b8(0x1e0) + _0x4783f9[_0xef46b8(_0x57fa71._0x3f8bc9)]));
|
|
527
|
-
return _0xea84b6;
|
|
528
|
-
} finally {
|
|
529
|
-
clearTimeout(_0x26bb12);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
async function _0x4d81ce(_0x1d240a) {
|
|
533
|
-
const _0x87079 = _0x5119b5;
|
|
534
|
-
if (!_0x57fc1f || _0x1d240a <= _0x98f8f9)
|
|
535
|
-
return;
|
|
536
|
-
await _0x4501d3('/api/agent-sessions/' + encodeURIComponent(_0x57fc1f) + _0x87079(0x32d), {
|
|
537
|
-
'body': JSON[_0x87079(0x245)]({ 'lastSeenSeq': _0x1d240a }),
|
|
538
|
-
'headers': _0x54e203,
|
|
539
|
-
'method': _0x87079(0x2c4)
|
|
540
|
-
}), _0x98f8f9 = _0x1d240a;
|
|
541
|
-
}
|
|
542
|
-
async function _0x115b1d(_0x568699) {
|
|
543
|
-
const _0x351fab = _0x5119b5;
|
|
544
|
-
if (!_0xdc6c6d || !_0xdf33c9 || _0x568699 <= _0x98f8f9)
|
|
545
|
-
return;
|
|
546
|
-
const _0x4c3df1 = await _0x2cccb9(_0xdc6c6d + '/workers/context-metrics', {
|
|
547
|
-
'body': JSON[_0x351fab(_0x692b12._0x583d53)]({
|
|
548
|
-
'last_seen_seq': _0x568699,
|
|
549
|
-
'worker_session_id': _0xdf33c9
|
|
550
|
-
}),
|
|
551
|
-
'headers': { 'Content-Type': _0x351fab(0x253) },
|
|
552
|
-
'method': _0x351fab(0x22e)
|
|
553
|
-
});
|
|
554
|
-
if (!_0x4c3df1['ok'])
|
|
555
|
-
throw new Error(_0x351fab(_0x692b12._0x264d2a) + _0x4c3df1[_0x351fab(0x2b9)]);
|
|
556
|
-
_0x98f8f9 = _0x568699;
|
|
557
|
-
}
|
|
558
|
-
async function _0x147a6a(_0x293a4b) {
|
|
559
|
-
const _0x3f83fc = _0x5119b5, _0x564712 = parseTarget(_0x293a4b), _0x489144 = await _0x4501d3('/internal/agent/' + _0x29ed46[_0x3f83fc(0x321)] + _0x3f83fc(_0x3446ad._0x3afc74), {
|
|
560
|
-
'body': JSON[_0x3f83fc(0x245)]({ 'target': _0x564712[_0x3f83fc(0x22c)] }),
|
|
561
|
-
'headers': _0x54e203,
|
|
562
|
-
'method': _0x3f83fc(_0x3446ad._0x83cc32)
|
|
563
|
-
});
|
|
564
|
-
return {
|
|
565
|
-
'channelId': _0x489144[_0x3f83fc(0x24c)]?.['channelId'] ?? '',
|
|
566
|
-
'target': _0x564712['channelTarget'],
|
|
567
|
-
'task': _0x489144[_0x3f83fc(0x24c)]?.[_0x3f83fc(0x273)],
|
|
568
|
-
'threadId': _0x489144[_0x3f83fc(_0x3446ad._0x3c897b)]?.[_0x3f83fc(_0x3446ad._0x487ac5)],
|
|
569
|
-
'threadNumber': _0x489144[_0x3f83fc(_0x3446ad._0x45351a)]?.[_0x3f83fc(0x310)]
|
|
570
|
-
};
|
|
571
|
-
}
|
|
572
|
-
async function _0x5d7d92(_0x9609 = {}) {
|
|
573
|
-
const _0x1fd4df = _0x5119b5;
|
|
574
|
-
if (!_0x9609[_0x1fd4df(_0x3be985._0x191636)] && _0x3b38de)
|
|
575
|
-
return _0x3b38de;
|
|
576
|
-
return _0x3b38de = (async () => {
|
|
577
|
-
const _0x597be4 = _0x1fd4df, _0x288070 = await _0x4501d3(_0x597be4(0x2cc) + _0x29ed46[_0x597be4(_0x5b862d._0x5c59d2)] + '/server', {
|
|
578
|
-
'headers': _0x54e203,
|
|
579
|
-
'method': 'GET'
|
|
580
|
-
}), _0x356280 = _0x288070[_0x597be4(_0x5b862d._0x366977)]?.[_0x597be4(_0x5b862d._0x4e871c)] ?? [], _0x13574b = _0x356280['filter'](_0x248184 => _0x248184[_0x597be4(0x260)]?.['type'] === _0x597be4(0x225))[_0x597be4(0x2ed)](_0x396aa0 => ({
|
|
581
|
-
'id': _0x49eb72(_0x396aa0),
|
|
582
|
-
'name': _0x2ca28a(_0x396aa0)
|
|
583
|
-
}))['filter'](_0x3d6a88 => _0x3d6a88['id']), _0x57a39d = _0x356280[_0x597be4(_0x5b862d._0x408d92)](_0x168f8e => _0x168f8e[_0x597be4(0x260)]?.[_0x597be4(0x235)] !== _0x597be4(0x225))[_0x597be4(0x2ed)](_0xac78c8 => ({
|
|
584
|
-
'id': _0x49eb72(_0xac78c8),
|
|
585
|
-
'name': _0x2ca28a(_0xac78c8)
|
|
586
|
-
}))[_0x597be4(_0x5b862d._0x408d92)](_0x5d5436 => _0x5d5436['id']), _0x38f65b = _0x288070['data']?.[_0x597be4(0x2a3)]['id'] ?? '';
|
|
587
|
-
return {
|
|
588
|
-
'agents': _0x13574b,
|
|
589
|
-
'channels': _0x288070['data']?.[_0x597be4(_0x5b862d._0x2c1448)] ?? [],
|
|
590
|
-
'humans': _0x57a39d,
|
|
591
|
-
'serverId': _0x38f65b,
|
|
592
|
-
'serverName': _0x288070[_0x597be4(0x24c)]?.['server'][_0x597be4(_0x5b862d._0x29b6a8)] ?? _0x38f65b
|
|
593
|
-
};
|
|
594
|
-
})()[_0x1fd4df(_0x3be985._0x2397c2)](_0x4ebc14 => {
|
|
595
|
-
_0x3b38de = null;
|
|
596
|
-
throw _0x4ebc14;
|
|
597
|
-
}), _0x3b38de;
|
|
598
|
-
}
|
|
599
|
-
function _0x4e5fd8(_0xeb1d86, _0x5bc561) {
|
|
600
|
-
const _0x30dddd = _0x5119b5;
|
|
601
|
-
return _0x5bc561['agents'][_0x30dddd(0x297)](_0x4dc711 => _0x4dc711['id'] === _0xeb1d86 || _0x4dc711[_0x30dddd(0x1a9)] === _0xeb1d86) ? _0x30dddd(0x225) : _0x30dddd(_0x12eb4b._0x1982ae);
|
|
602
|
-
}
|
|
603
|
-
function _0x359a51(_0x583b2b) {
|
|
604
|
-
const _0x37b2e2 = _0x5119b5;
|
|
605
|
-
if (_0x583b2b['threadNumber'] != null)
|
|
606
|
-
return _0x583b2b[_0x37b2e2(_0x1f1fbc._0x5f257e)] + ':t' + _0x583b2b[_0x37b2e2(_0x1f1fbc._0x3ff865)];
|
|
607
|
-
if (_0x583b2b['rootMessageId'])
|
|
608
|
-
return _0x583b2b[_0x37b2e2(0x2e8)] + ':' + _0x583b2b[_0x37b2e2(_0x1f1fbc._0x2ba339)];
|
|
609
|
-
if (_0x583b2b[_0x37b2e2(0x305)])
|
|
610
|
-
return _0x583b2b[_0x37b2e2(_0x1f1fbc._0x2da1ec)] + ':' + _0x583b2b[_0x37b2e2(0x305)][_0x37b2e2(_0x1f1fbc._0x3b1086)](0x0, 0x8);
|
|
611
|
-
return _0x583b2b[_0x37b2e2(_0x1f1fbc._0x5f257e)];
|
|
612
|
-
}
|
|
613
|
-
function _0x1bc22e(_0x51b143, _0x2ac911) {
|
|
614
|
-
const _0x438ac5 = _0x5119b5;
|
|
615
|
-
try {
|
|
616
|
-
const _0x59e693 = parseTarget(_0x51b143);
|
|
617
|
-
if (_0x59e693['kind'] !== _0x438ac5(_0x13d0bf._0x12f37e) || _0x59e693[_0x438ac5(_0x13d0bf._0x203e89)] !== _0x2ac911[_0x438ac5(0x2e8)])
|
|
618
|
-
return ![];
|
|
619
|
-
if (_0x2ac911[_0x438ac5(0x310)] != null && _0x59e693[_0x438ac5(0x31b)] === 't' + _0x2ac911[_0x438ac5(_0x13d0bf._0x3f8058)])
|
|
620
|
-
return !![];
|
|
621
|
-
if (_0x2ac911[_0x438ac5(_0x13d0bf._0xe8e882)])
|
|
622
|
-
return _0x59e693['threadShortId'] === _0x2ac911[_0x438ac5(0x2f2)] || _0x2ac911[_0x438ac5(0x2f2)][_0x438ac5(_0x13d0bf._0x415955)](_0x59e693['threadShortId']);
|
|
623
|
-
if (_0x2ac911[_0x438ac5(0x305)])
|
|
624
|
-
return _0x59e693[_0x438ac5(_0x13d0bf._0x7ce4d1)] === _0x2ac911[_0x438ac5(0x305)] || _0x2ac911[_0x438ac5(0x305)][_0x438ac5(0x2b5)](_0x59e693[_0x438ac5(0x31b)]);
|
|
625
|
-
return ![];
|
|
626
|
-
} catch {
|
|
627
|
-
return ![];
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
function _0x49eb72(_0x5d0278) {
|
|
631
|
-
const _0x291233 = _0x5119b5;
|
|
632
|
-
return _0x5d0278[_0x291233(0x313)]?.['participantId'] ?? _0x5d0278['participant']?.['id'] ?? _0x5d0278['participantId'] ?? '';
|
|
633
|
-
}
|
|
634
|
-
function _0x2ca28a(_0x13a023) {
|
|
635
|
-
return _0x13a023['participant']?.['name'] ?? _0x49eb72(_0x13a023);
|
|
636
|
-
}
|
|
637
|
-
async function _0x1d3530(_0x26fc83) {
|
|
638
|
-
const _0x39ef85 = _0x5119b5, _0x2e66f7 = Math['min'](_0x26fc83['limit'] ?? 0x32, 0x64), _0x486eb9 = await _0x5d7d92(), _0x3600f8 = new URLSearchParams();
|
|
639
|
-
_0x3600f8['set']('limit', String(_0x2e66f7));
|
|
640
|
-
_0x26fc83[_0x39ef85(_0x4e9122._0x46cc4d)] ? (_0x3600f8[_0x39ef85(_0x4e9122._0xf22d44)](_0x39ef85(_0x4e9122._0x46cc4d), _0x26fc83[_0x39ef85(0x305)]), _0x3600f8[_0x39ef85(0x1dc)]('channelId', _0x26fc83['channelId'])) : _0x3600f8[_0x39ef85(0x1dc)](_0x39ef85(0x20b), _0x26fc83[_0x39ef85(0x20b)]);
|
|
641
|
-
_0x26fc83[_0x39ef85(0x322)] && _0x3600f8[_0x39ef85(0x1dc)](_0x39ef85(0x1de), String(_0x26fc83[_0x39ef85(0x322)]));
|
|
642
|
-
_0x26fc83['after'] !== void 0x0 && _0x3600f8[_0x39ef85(_0x4e9122._0xf22d44)]('after', String(_0x26fc83['after']));
|
|
643
|
-
const _0x50957b = await _0x4501d3('/internal/agent/' + _0x29ed46[_0x39ef85(_0x4e9122._0x50e334)] + _0x39ef85(_0x4e9122._0x2388ac) + _0x3600f8[_0x39ef85(_0x4e9122._0x41940b)](), {
|
|
644
|
-
'headers': _0x54e203,
|
|
645
|
-
'method': _0x39ef85(0x29a)
|
|
646
|
-
}), _0x31184d = (_0x50957b[_0x39ef85(_0x4e9122._0x31a9ce)] ?? [])['map'](_0x5efc66 => ({
|
|
647
|
-
'attachments': (_0x5efc66[_0x39ef85(0x314)] ?? [])[_0x39ef85(0x2ed)](_0x1350ae => ({
|
|
648
|
-
'filename': _0x1350ae['filename'] ?? _0x1350ae['id'],
|
|
649
|
-
'id': _0x1350ae['id']
|
|
650
|
-
})),
|
|
651
|
-
'content': _0x5efc66['bodyMarkdown'] ?? '',
|
|
652
|
-
'createdAt': _0x5efc66[_0x39ef85(0x26c)],
|
|
653
|
-
'messageId': _0x5efc66['id'],
|
|
654
|
-
'senderName': _0x5efc66[_0x39ef85(0x241)],
|
|
655
|
-
'senderType': _0x4e5fd8(_0x5efc66[_0x39ef85(0x241)], _0x486eb9),
|
|
656
|
-
'seq': _0x5efc66[_0x39ef85(0x29b)] ?? 0x0
|
|
657
|
-
}));
|
|
658
|
-
return {
|
|
659
|
-
'channel': _0x26fc83['channelTarget'],
|
|
660
|
-
'hasMore': _0x50957b[_0x39ef85(_0x4e9122._0x365754)]?.[_0x39ef85(0x2ab)] ?? ![],
|
|
661
|
-
'messages': _0x31184d,
|
|
662
|
-
'nextCursor': _0x50957b[_0x39ef85(_0x4e9122._0x523755)]?.['cursor']
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
return {
|
|
666
|
-
async 'sendMessage'(_0x42f867) {
|
|
667
|
-
const _0x2714e6 = _0x5119b5, _0x25b9e5 = await _0x147a6a(_0x42f867['target']), _0x405c76 = _0x42f867['content']['includes']('@') ? extractMentionedParticipantIds(_0x42f867[_0x2714e6(0x2ef)], await _0x5d7d92()) : [], _0x5cf7f0 = await _0x4501d3(_0x2714e6(_0x5c6fc0._0x53fef0) + _0x29ed46[_0x2714e6(0x321)] + _0x2714e6(0x2f1), {
|
|
668
|
-
'body': JSON['stringify']({
|
|
669
|
-
'attachment_ids': _0x42f867[_0x2714e6(0x2e2)],
|
|
670
|
-
'bodyMarkdown': _0x42f867['content'],
|
|
671
|
-
'channelId': _0x25b9e5[_0x2714e6(_0x5c6fc0._0x1ddc05)],
|
|
672
|
-
..._0x405c76[_0x2714e6(_0x5c6fc0._0x34515c)] > 0x0 ? { 'mentionedParticipantIds': _0x405c76 } : {},
|
|
673
|
-
'threadId': _0x25b9e5[_0x2714e6(0x305)],
|
|
674
|
-
..._0x42f867[_0x2714e6(0x1a7)] ? { 'visibility': _0x42f867['visibility'] } : {}
|
|
675
|
-
}),
|
|
676
|
-
'headers': _0x54e203,
|
|
677
|
-
'method': _0x2714e6(_0x5c6fc0._0x3a0d85)
|
|
678
|
-
});
|
|
679
|
-
return { 'messageId': _0x5cf7f0[_0x2714e6(_0x5c6fc0._0x5ce021)]?.['id'] ?? '' };
|
|
680
|
-
},
|
|
681
|
-
async 'listSchedules'() {
|
|
682
|
-
const _0x3456b4 = _0x5119b5, _0x396d90 = await _0x4501d3(_0x3456b4(0x32c), {
|
|
683
|
-
'headers': _0x54e203,
|
|
684
|
-
'method': 'GET'
|
|
685
|
-
});
|
|
686
|
-
return _0x396d90[_0x3456b4(_0x387488._0x1d2777)] ?? [];
|
|
687
|
-
},
|
|
688
|
-
async 'claimScheduleRun'(_0x3815f8) {
|
|
689
|
-
const _0x466d5d = _0x5119b5, _0x5225c7 = await _0x4501d3('/api/internal/schedules/claim', {
|
|
690
|
-
'body': JSON[_0x466d5d(_0x370969._0x5d0e5d)](_0x3815f8),
|
|
691
|
-
'headers': _0x54e203,
|
|
692
|
-
'method': _0x466d5d(0x22e)
|
|
693
|
-
});
|
|
694
|
-
return _0x5225c7['data'] ?? {
|
|
695
|
-
'granted': ![],
|
|
696
|
-
'runId': null,
|
|
697
|
-
'schedule': null,
|
|
698
|
-
'scheduledFor': _0x3815f8['scheduledFor']
|
|
699
|
-
};
|
|
700
|
-
},
|
|
701
|
-
async 'startScheduleRun'(_0x2c6510) {
|
|
702
|
-
const _0x362d51 = _0x5119b5, _0x3354d1 = await _0x4501d3('/api/internal/schedules/' + encodeURIComponent(_0x2c6510[_0x362d51(0x1f9)]) + _0x362d51(0x1a6), {
|
|
703
|
-
'body': JSON[_0x362d51(0x245)]({}),
|
|
704
|
-
'headers': _0x54e203,
|
|
705
|
-
'method': _0x362d51(_0x16e063._0x7c5b05)
|
|
706
|
-
});
|
|
707
|
-
return _0x3354d1[_0x362d51(_0x16e063._0x27ff57)] ?? {
|
|
708
|
-
'claimedByDaemonId': '',
|
|
709
|
-
'id': _0x2c6510[_0x362d51(0x1f9)],
|
|
710
|
-
'scheduleId': '',
|
|
711
|
-
'status': _0x362d51(0x1cd)
|
|
712
|
-
};
|
|
713
|
-
},
|
|
714
|
-
async 'finishScheduleRun'(_0x5b490e) {
|
|
715
|
-
const _0x1a5a7b = _0x5119b5, _0x251b8f = await _0x4501d3(_0x1a5a7b(0x22d) + encodeURIComponent(_0x5b490e[_0x1a5a7b(0x1f9)]) + '/finish', {
|
|
716
|
-
'body': JSON[_0x1a5a7b(_0x415d82._0x5aab89)]({
|
|
717
|
-
'error': _0x5b490e[_0x1a5a7b(0x1c1)],
|
|
718
|
-
'resultJson': _0x5b490e[_0x1a5a7b(0x1ca)],
|
|
719
|
-
'status': _0x5b490e['status']
|
|
720
|
-
}),
|
|
721
|
-
'headers': _0x54e203,
|
|
722
|
-
'method': _0x1a5a7b(0x22e)
|
|
723
|
-
});
|
|
724
|
-
return _0x251b8f[_0x1a5a7b(0x24c)] ?? {
|
|
725
|
-
'nextRunAt': null,
|
|
726
|
-
'run': {
|
|
727
|
-
'claimedByDaemonId': '',
|
|
728
|
-
'id': _0x5b490e[_0x1a5a7b(0x1f9)],
|
|
729
|
-
'scheduleId': '',
|
|
730
|
-
'status': _0x5b490e[_0x1a5a7b(0x2b9)]
|
|
731
|
-
}
|
|
732
|
-
};
|
|
733
|
-
},
|
|
734
|
-
async 'listTasks'(_0x41e40a) {
|
|
735
|
-
const _0x5a4674 = _0x5119b5, _0xb3ce4f = new URLSearchParams();
|
|
736
|
-
return _0xb3ce4f[_0x5a4674(_0xb80567._0x5676d2)](_0x5a4674(_0xb80567._0x4ec28f), _0x41e40a['channel']), _0x41e40a[_0x5a4674(_0xb80567._0x4b82fa)] && _0xb3ce4f[_0x5a4674(0x1dc)]('status', _0x41e40a[_0x5a4674(_0xb80567._0x2d1a27)]), _0x12c9db(_0x5a4674(_0xb80567._0x22f462) + _0x29ed46[_0x5a4674(_0xb80567._0x492bdb)] + _0x5a4674(0x2fa) + _0xb3ce4f[_0x5a4674(0x20d)](), {
|
|
737
|
-
'headers': _0x54e203,
|
|
738
|
-
'method': 'GET'
|
|
739
|
-
});
|
|
740
|
-
},
|
|
741
|
-
async 'createTasks'(_0x166d8e) {
|
|
742
|
-
const _0x45937d = _0x5119b5;
|
|
743
|
-
return _0x12c9db(_0x45937d(0x2cc) + _0x29ed46['agentId'] + _0x45937d(_0x3790f9._0x55f684), {
|
|
744
|
-
'body': JSON[_0x45937d(_0x3790f9._0x1018d7)]({
|
|
745
|
-
..._0x166d8e,
|
|
746
|
-
'idempotency_key': _0x31bdd7(_0x45937d(0x2fd), _0x166d8e)
|
|
747
|
-
}),
|
|
748
|
-
'headers': _0x54e203,
|
|
749
|
-
'method': _0x45937d(_0x3790f9._0x3f75f8)
|
|
750
|
-
});
|
|
751
|
-
},
|
|
752
|
-
async 'claimTasks'(_0x3345ad) {
|
|
753
|
-
const _0x7f2b02 = _0x5119b5;
|
|
754
|
-
return _0x12c9db(_0x7f2b02(0x2cc) + _0x29ed46[_0x7f2b02(0x321)] + _0x7f2b02(_0x18c4a4._0x39f1ee), {
|
|
755
|
-
'body': JSON[_0x7f2b02(_0x18c4a4._0x53c6f1)]({
|
|
756
|
-
..._0x3345ad,
|
|
757
|
-
'idempotency_key': _0x31bdd7(_0x7f2b02(0x1e1), _0x3345ad)
|
|
758
|
-
}),
|
|
759
|
-
'headers': _0x54e203,
|
|
760
|
-
'method': _0x7f2b02(0x22e)
|
|
761
|
-
});
|
|
762
|
-
},
|
|
763
|
-
async 'unclaimTask'(_0x52a3e6) {
|
|
764
|
-
const _0x5431d4 = _0x5119b5;
|
|
765
|
-
return _0x12c9db('/internal/agent/' + _0x29ed46[_0x5431d4(0x321)] + _0x5431d4(0x24d), {
|
|
766
|
-
'body': JSON[_0x5431d4(0x245)]({
|
|
767
|
-
..._0x52a3e6,
|
|
768
|
-
'idempotency_key': _0x31bdd7(_0x5431d4(_0x336daf._0x3b81a1), _0x52a3e6)
|
|
769
|
-
}),
|
|
770
|
-
'headers': _0x54e203,
|
|
771
|
-
'method': _0x5431d4(0x22e)
|
|
772
|
-
});
|
|
773
|
-
},
|
|
774
|
-
async 'updateTaskStatus'(_0x139209) {
|
|
775
|
-
const _0xcdb4a = _0x5119b5;
|
|
776
|
-
return _0x12c9db(_0xcdb4a(0x2cc) + _0x29ed46[_0xcdb4a(0x321)] + _0xcdb4a(0x1df), {
|
|
777
|
-
'body': JSON[_0xcdb4a(_0x2a1280._0x19ec3d)]({
|
|
778
|
-
..._0x139209,
|
|
779
|
-
'idempotency_key': _0x31bdd7(_0xcdb4a(0x28f), _0x139209)
|
|
780
|
-
}),
|
|
781
|
-
'headers': _0x54e203,
|
|
782
|
-
'method': _0xcdb4a(_0x2a1280._0x3894a1)
|
|
783
|
-
});
|
|
784
|
-
},
|
|
785
|
-
async 'uploadFile'(_0x540687) {
|
|
786
|
-
const _0x5258f4 = _0x5119b5, _0xa98e00 = await _0x147a6a(_0x540687[_0x5258f4(_0x7ddc8b._0x45aa84)]);
|
|
787
|
-
if (_0xa98e00['threadId'])
|
|
788
|
-
throw new Error(_0x5258f4(0x21f));
|
|
789
|
-
const _0x39aa19 = await _0x4501d3('/internal/agent/' + _0x29ed46['agentId'] + '/upload', {
|
|
790
|
-
'body': JSON[_0x5258f4(_0x7ddc8b._0x417469)]({
|
|
791
|
-
'channel': _0xa98e00[_0x5258f4(_0x7ddc8b._0x2222d5)],
|
|
792
|
-
'contentBase64': _0x540687[_0x5258f4(_0x7ddc8b._0x411cfa)],
|
|
793
|
-
'contentType': _0x540687[_0x5258f4(_0x7ddc8b._0x581aa1)],
|
|
794
|
-
'originalFilename': _0x540687['filename']
|
|
795
|
-
}),
|
|
796
|
-
'headers': _0x54e203,
|
|
797
|
-
'method': _0x5258f4(0x22e)
|
|
798
|
-
});
|
|
799
|
-
return {
|
|
800
|
-
'attachmentId': _0x39aa19[_0x5258f4(0x24c)]?.['id'] ?? '',
|
|
801
|
-
'filename': _0x39aa19[_0x5258f4(_0x7ddc8b._0x181f3b)]?.[_0x5258f4(_0x7ddc8b._0x33d2b9)] ?? _0x540687[_0x5258f4(_0x7ddc8b._0x37a8b9)],
|
|
802
|
-
'sizeBytes': _0x39aa19[_0x5258f4(0x24c)]?.[_0x5258f4(0x242)] ?? 0x0
|
|
803
|
-
};
|
|
804
|
-
},
|
|
805
|
-
async 'downloadAttachment'(_0x2a53ba) {
|
|
806
|
-
const _0x4099e9 = _0x5119b5, _0x140adf = await _0x4501d3(_0x4099e9(_0x3d72c0._0x12740) + _0x2a53ba, {
|
|
807
|
-
'headers': _0x54e203,
|
|
808
|
-
'method': _0x4099e9(0x29a)
|
|
809
|
-
}), _0x37db66 = new AbortController(), _0x22cbdf = setTimeout(() => _0x37db66[_0x4099e9(0x300)](), _0x13ce15);
|
|
810
|
-
try {
|
|
811
|
-
const _0x32160b = await _0x2cccb9(_0x32e8c5 + '/api/attachments/' + _0x2a53ba + _0x4099e9(0x295), {
|
|
812
|
-
'headers': _0x54e203,
|
|
813
|
-
'method': _0x4099e9(0x29a),
|
|
814
|
-
'signal': _0x37db66[_0x4099e9(0x2bd)]
|
|
815
|
-
});
|
|
816
|
-
if (!_0x32160b['ok'])
|
|
817
|
-
throw new Error(_0x4099e9(0x1e0) + _0x32160b[_0x4099e9(_0x3d72c0._0xf0c40a)]);
|
|
818
|
-
return {
|
|
819
|
-
'contentType': _0x140adf[_0x4099e9(_0x3d72c0._0x55fd35)]?.[_0x4099e9(0x212)] ?? _0x32160b[_0x4099e9(_0x3d72c0._0x16275e)][_0x4099e9(_0x3d72c0._0x14c511)](_0x4099e9(_0x3d72c0._0x55c88f)) ?? _0x4099e9(0x2a2),
|
|
820
|
-
'data': Buffer[_0x4099e9(_0x3d72c0._0x251cc0)](await _0x32160b[_0x4099e9(_0x3d72c0._0x3e8351)]()),
|
|
821
|
-
'originalFilename': _0x140adf[_0x4099e9(_0x3d72c0._0x3a0d06)]?.[_0x4099e9(0x228)]
|
|
822
|
-
};
|
|
823
|
-
} finally {
|
|
824
|
-
clearTimeout(_0x22cbdf);
|
|
825
|
-
}
|
|
826
|
-
},
|
|
827
|
-
async 'listServer'() {
|
|
828
|
-
return _0x5d7d92({ 'forceRefresh': !![] });
|
|
829
|
-
},
|
|
830
|
-
async 'readHistory'(_0x5a8796) {
|
|
831
|
-
const _0x1cd08d = _0x5119b5, _0x4ac355 = await _0x147a6a(_0x5a8796['channel']);
|
|
832
|
-
return _0x1d3530({
|
|
833
|
-
'after': _0x5a8796[_0x1cd08d(_0x1290c9._0x43b932)],
|
|
834
|
-
'before': _0x5a8796['before'],
|
|
835
|
-
'channelId': _0x4ac355[_0x1cd08d(0x20b)],
|
|
836
|
-
'channelTarget': _0x4ac355[_0x1cd08d(_0x1290c9._0x2b8178)],
|
|
837
|
-
'limit': _0x5a8796[_0x1cd08d(0x202)],
|
|
838
|
-
'threadId': _0x4ac355['threadId']
|
|
839
|
-
});
|
|
840
|
-
},
|
|
841
|
-
'resolveTarget': _0x147a6a,
|
|
842
|
-
async 'checkMessages'() {
|
|
843
|
-
const _0x2d900f = { _0x140378: 0x2cd }, _0x2786a4 = _0x5119b5, _0x5569c6 = new URLSearchParams();
|
|
844
|
-
_0x5569c6[_0x2786a4(_0x1aa4a7._0x19ba2f)](_0x2786a4(_0x1aa4a7._0x303401), String(_0x18cc3e));
|
|
845
|
-
const _0x2f96aa = _0x5569c6['toString'](), _0x2de8ec = await _0x4501d3('/internal/agent/' + _0x29ed46[_0x2786a4(_0x1aa4a7._0x5efd5f)] + _0x2786a4(0x27c) + (_0x2f96aa ? '?' + _0x2f96aa : ''), {
|
|
846
|
-
'headers': _0x54e203,
|
|
847
|
-
'method': 'GET'
|
|
848
|
-
}), _0x2ea846 = _0x2de8ec[_0x2786a4(0x24c)] ?? [], _0x3584ac = _0x2de8ec[_0x2786a4(_0x1aa4a7._0x5ba1f5)]?.['cursor'], _0x41184c = _0x3584ac !== void 0x0 ? Math['max'](_0x18cc3e, _0x3584ac) : _0x2ea846[_0x2786a4(0x1d5)] > 0x0 ? Math[_0x2786a4(0x1dd)](_0x18cc3e, _0x2ea846[_0x2ea846[_0x2786a4(0x1d5)] - 0x1]['seq']) : _0x18cc3e, _0x270236 = _0x2ea846[_0x2786a4(_0x1aa4a7._0x548130)](_0x26d9be => _0x26d9be[_0x2786a4(0x2da)] === 'message'), _0x2fdc9f = _0x2bfab9 === void 0x0 && _0x395046;
|
|
849
|
-
let _0x249a0d = await _0x5d7d92(), _0x2fcbc6 = new Map(_0x249a0d[_0x2786a4(0x1e4)][_0x2786a4(0x2ed)](_0x3bcde3 => [
|
|
850
|
-
_0x3bcde3['id'],
|
|
851
|
-
_0x3bcde3
|
|
852
|
-
]));
|
|
853
|
-
const _0x3103bb = _0x270236[_0x2786a4(0x297)](_0x106d2 => {
|
|
854
|
-
const _0x8fa813 = _0x2786a4, _0xb9b7d9 = asRecord(_0x106d2[_0x8fa813(_0x2d900f._0x140378)]), _0x990207 = typeof _0xb9b7d9?.[_0x8fa813(0x20b)] === _0x8fa813(0x1ec) ? _0xb9b7d9[_0x8fa813(0x20b)] : '';
|
|
855
|
-
return Boolean(_0x990207) && !_0x2fcbc6['has'](_0x990207);
|
|
856
|
-
});
|
|
857
|
-
_0x3103bb && (_0x249a0d = await _0x5d7d92({ 'forceRefresh': !![] }), _0x2fcbc6 = new Map(_0x249a0d[_0x2786a4(_0x1aa4a7._0x224346)][_0x2786a4(_0x1aa4a7._0x3c91e5)](_0x3fbfe0 => [
|
|
858
|
-
_0x3fbfe0['id'],
|
|
859
|
-
_0x3fbfe0
|
|
860
|
-
])));
|
|
861
|
-
const _0x583768 = new Map();
|
|
862
|
-
for (const _0x2c6567 of _0x270236) {
|
|
863
|
-
const _0x4876b1 = asRecord(_0x2c6567[_0x2786a4(0x2cd)]), _0x54f1b7 = typeof _0x4876b1[_0x2786a4(0x20b)] === _0x2786a4(_0x1aa4a7._0x131559) ? _0x4876b1[_0x2786a4(_0x1aa4a7._0x21fcf6)] : '';
|
|
864
|
-
if (!_0x54f1b7)
|
|
865
|
-
continue;
|
|
866
|
-
const _0x5d7d7a = typeof _0x4876b1['threadId'] === 'string' ? _0x4876b1[_0x2786a4(_0x1aa4a7._0x1254ff)] : void 0x0, _0xd5694a = typeof _0x4876b1[_0x2786a4(0x2f2)] === _0x2786a4(0x1ec) ? _0x4876b1[_0x2786a4(_0x1aa4a7._0x573e69)] : void 0x0, _0x32a87e = typeof _0x4876b1[_0x2786a4(_0x1aa4a7._0x3a4393)] === 'number' && Number[_0x2786a4(0x257)](_0x4876b1[_0x2786a4(_0x1aa4a7._0x3a4393)]) ? _0x4876b1[_0x2786a4(0x310)] : void 0x0, _0x5c6e8c = Boolean(_0x5d7d7a && (!_0xd5694a || _0x2c6567[_0x2786a4(0x1d2)] !== _0xd5694a)), _0x23d44c = _0x5c6e8c ? _0x54f1b7 + ':' + _0x5d7d7a : _0x54f1b7, _0x395972 = _0x583768[_0x2786a4(0x302)](_0x23d44c) ?? {
|
|
867
|
-
'aggregateIds': [],
|
|
868
|
-
'channelId': _0x54f1b7,
|
|
869
|
-
'entries': new Map(),
|
|
870
|
-
'isThreadReply': _0x5c6e8c,
|
|
871
|
-
'rootMessageId': _0xd5694a,
|
|
872
|
-
'threadNumber': _0x32a87e,
|
|
873
|
-
'threadId': _0x5c6e8c ? _0x5d7d7a : void 0x0
|
|
874
|
-
};
|
|
875
|
-
_0x395972[_0x2786a4(0x310)] == null && _0x32a87e != null && (_0x395972[_0x2786a4(0x310)] = _0x32a87e), !_0x395972['rootMessageId'] && _0xd5694a && (_0x395972['rootMessageId'] = _0xd5694a), _0x395972[_0x2786a4(_0x1aa4a7._0x5a2614)]['push'](_0x2c6567[_0x2786a4(_0x1aa4a7._0x11aaaa)]), _0x395972['entries'][_0x2786a4(0x1dc)](_0x2c6567[_0x2786a4(0x1d2)], {
|
|
876
|
-
'payloadJson': _0x2c6567['payloadJson'],
|
|
877
|
-
'seq': _0x2c6567[_0x2786a4(_0x1aa4a7._0x101448)]
|
|
878
|
-
}), _0x583768[_0x2786a4(0x1dc)](_0x23d44c, _0x395972);
|
|
879
|
-
}
|
|
880
|
-
const _0x1e08cc = [];
|
|
881
|
-
for (const _0x3109c6 of _0x583768[_0x2786a4(0x31e)]()) {
|
|
882
|
-
const {
|
|
883
|
-
channelId: _0xc02e81,
|
|
884
|
-
threadId: _0x34d7b2,
|
|
885
|
-
rootMessageId: _0x5bdcb3,
|
|
886
|
-
threadNumber: _0x87a38b,
|
|
887
|
-
aggregateIds: _0xeca275,
|
|
888
|
-
isThreadReply: _0x354fb4,
|
|
889
|
-
entries: _0x53dcdd
|
|
890
|
-
} = _0x3109c6, _0x8a33f9 = _0x2fcbc6[_0x2786a4(_0x1aa4a7._0x4b3154)](_0xc02e81), _0x3d99c3 = _0x8a33f9?.[_0x2786a4(_0x1aa4a7._0x1b2b05)] ?? _0xc02e81, _0xf06c3a = _0x8a33f9?.[_0x2786a4(0x2bb)] === 'dm' ? _0x2786a4(0x30b) + _0x3d99c3 : '#' + _0x3d99c3, _0x1c1a72 = {
|
|
891
|
-
'channelTarget': _0xf06c3a,
|
|
892
|
-
'rootMessageId': _0x5bdcb3,
|
|
893
|
-
'threadId': _0x34d7b2,
|
|
894
|
-
'threadNumber': _0x87a38b
|
|
895
|
-
}, _0x2341f6 = await _0x1d3530({
|
|
896
|
-
'channelId': _0xc02e81,
|
|
897
|
-
'channelTarget': _0xf06c3a,
|
|
898
|
-
'limit': Math[_0x2786a4(_0x1aa4a7._0x3c6b29)](_0xeca275[_0x2786a4(_0x1aa4a7._0x3e26bd)], 0x32),
|
|
899
|
-
'threadId': _0x34d7b2
|
|
900
|
-
}), _0x3713a1 = new Map(_0x2341f6['messages'][_0x2786a4(_0x1aa4a7._0x455f55)](_0x41c4de => [
|
|
901
|
-
_0x41c4de['messageId'],
|
|
902
|
-
_0x41c4de
|
|
903
|
-
])), _0x2290bf = _0x34d7b2 ? _0x359a51(_0x1c1a72) : _0xf06c3a, _0x2dc405 = _0x2bfab9 ? _0x354fb4 && _0x1bc22e(_0x2bfab9, _0x1c1a72) : !![], _0x422cc2 = _0x354fb4 ? _0x2dc405 && _0x2bfab9 ? _0x2bfab9 : _0x2290bf : _0xf06c3a;
|
|
904
|
-
for (const _0x3bfe68 of _0xeca275) {
|
|
905
|
-
if (!_0x2dc405)
|
|
906
|
-
continue;
|
|
907
|
-
const _0x7ce38a = _0x53dcdd['get'](_0x3bfe68), _0x28defc = _0x7ce38a ? asRecord(_0x7ce38a[_0x2786a4(0x2cd)]) : void 0x0, _0x9106ae = _0x28defc?.[_0x2786a4(0x1d0)] === _0x2786a4(0x1ae);
|
|
908
|
-
if (_0x2fdc9f && _0x9106ae)
|
|
909
|
-
continue;
|
|
910
|
-
const _0x3521ea = _0x3713a1[_0x2786a4(0x302)](_0x3bfe68);
|
|
911
|
-
if (_0x3521ea) {
|
|
912
|
-
_0x1e08cc[_0x2786a4(_0x1aa4a7._0x19bba9)]({
|
|
913
|
-
'attachments': _0x3521ea['attachments'],
|
|
914
|
-
'content': _0x3521ea[_0x2786a4(_0x1aa4a7._0x1405e5)],
|
|
915
|
-
'createdAt': _0x3521ea[_0x2786a4(_0x1aa4a7._0x1bd385)],
|
|
916
|
-
'messageId': _0x3521ea['messageId'],
|
|
917
|
-
'senderName': _0x3521ea[_0x2786a4(0x1b2)],
|
|
918
|
-
'senderType': _0x3521ea[_0x2786a4(_0x1aa4a7._0x247cd4)],
|
|
919
|
-
'target': _0x422cc2,
|
|
920
|
-
..._0x9106ae ? { 'targetedTask': !![] } : {}
|
|
921
|
-
});
|
|
922
|
-
continue;
|
|
923
|
-
}
|
|
924
|
-
if (_0x7ce38a) {
|
|
925
|
-
const _0x14e45e = typeof _0x28defc?.[_0x2786a4(_0x1aa4a7._0x444608)] === _0x2786a4(0x1ec) ? _0x28defc['senderParticipantId'] : '', _0x5059ee = typeof _0x28defc?.[_0x2786a4(_0x1aa4a7._0x1a29e8)] === _0x2786a4(_0x1aa4a7._0x3c5931) ? _0x28defc[_0x2786a4(_0x1aa4a7._0x1a29e8)] : '';
|
|
926
|
-
_0x14e45e && _0x5059ee && _0x1e08cc[_0x2786a4(0x27e)]({
|
|
927
|
-
'attachments': [],
|
|
928
|
-
'content': _0x5059ee,
|
|
929
|
-
'createdAt': new Date()[_0x2786a4(0x1e3)](),
|
|
930
|
-
'messageId': _0x3bfe68,
|
|
931
|
-
'senderName': _0x14e45e,
|
|
932
|
-
'senderType': _0x4e5fd8(_0x14e45e, _0x249a0d),
|
|
933
|
-
'target': _0x422cc2,
|
|
934
|
-
..._0x9106ae ? { 'targetedTask': !![] } : {}
|
|
935
|
-
});
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
if (_0x41184c > 0x0) {
|
|
940
|
-
if (_0x57fc1f)
|
|
941
|
-
await _0x4d81ce(_0x41184c);
|
|
942
|
-
else
|
|
943
|
-
_0xdf33c9 && await _0x115b1d(_0x41184c);
|
|
944
|
-
}
|
|
945
|
-
return _0x41184c > _0x18cc3e && (_0x18cc3e = _0x41184c), { 'messages': _0x2bfab9 ? _0x1e08cc : _0x2fdc9f ? _0x1e08cc[_0x2786a4(_0x1aa4a7._0x41a25f)](_0x13c7a7 => _0x13c7a7['targetedTask'] !== !![]) : _0x1e08cc };
|
|
946
|
-
}
|
|
947
|
-
};
|
|
948
|
-
}
|
|
949
|
-
function toLocalTime(_0x6c7b29) {
|
|
950
|
-
const _0x47d355 = {
|
|
951
|
-
_0xe4c6f: 0x2d6,
|
|
952
|
-
_0x2020a7: 0x211,
|
|
953
|
-
_0x7388a8: 0x207,
|
|
954
|
-
_0xd5372f: 0x2f0,
|
|
955
|
-
_0x59e01e: 0x1c6
|
|
956
|
-
}, _0x893be1 = _0x5e2837, _0x40d41c = new Date(_0x6c7b29);
|
|
957
|
-
if (Number['isNaN'](_0x40d41c[_0x893be1(_0x47d355._0xe4c6f)]()))
|
|
958
|
-
return _0x6c7b29;
|
|
959
|
-
const _0x3b1424 = _0x11243e => String(_0x11243e)[_0x893be1(0x2f9)](0x2, '0');
|
|
960
|
-
return _0x40d41c[_0x893be1(_0x47d355._0x2020a7)]() + '-' + _0x3b1424(_0x40d41c[_0x893be1(_0x47d355._0x7388a8)]() + 0x1) + '-' + _0x3b1424(_0x40d41c['getDate']()) + '\x20' + _0x3b1424(_0x40d41c[_0x893be1(_0x47d355._0xd5372f)]()) + ':' + _0x3b1424(_0x40d41c[_0x893be1(_0x47d355._0x59e01e)]()) + ':' + _0x3b1424(_0x40d41c[_0x893be1(0x2e6)]());
|
|
961
|
-
}
|
|
962
|
-
function formatAttachmentSuffix(_0x54a67e) {
|
|
963
|
-
const _0x26a7b5 = {
|
|
964
|
-
_0x1dd346: 0x1d5,
|
|
965
|
-
_0x5bbe9c: 0x1d5,
|
|
966
|
-
_0x34c810: 0x2ed,
|
|
967
|
-
_0xc65d4a: 0x229
|
|
968
|
-
}, _0x3a463c = _0x5e2837;
|
|
969
|
-
if (!_0x54a67e || _0x54a67e[_0x3a463c(_0x26a7b5._0x1dd346)] === 0x0)
|
|
970
|
-
return '';
|
|
971
|
-
return '\x20[' + _0x54a67e[_0x3a463c(_0x26a7b5._0x1dd346)] + '\x20attachment' + (_0x54a67e[_0x3a463c(_0x26a7b5._0x5bbe9c)] > 0x1 ? 's' : '') + ':\x20' + _0x54a67e[_0x3a463c(_0x26a7b5._0x34c810)](_0x1d7c95 => _0x1d7c95[_0x3a463c(0x25a)] + _0x3a463c(0x2b4) + _0x1d7c95['id'] + ')')[_0x3a463c(0x32f)](',\x20') + _0x3a463c(_0x26a7b5._0xc65d4a);
|
|
972
|
-
}
|
|
973
|
-
function formatCheckMessages(_0xc712b0) {
|
|
974
|
-
const _0x528e4e = {
|
|
975
|
-
_0xd5d82d: 0x2ed,
|
|
976
|
-
_0x179190: 0x32f
|
|
977
|
-
}, _0x54af61 = {
|
|
978
|
-
_0x144bc6: 0x1d7,
|
|
979
|
-
_0x53ecc8: 0x317,
|
|
980
|
-
_0x14c29a: 0x24a
|
|
981
|
-
}, _0x5d12d7 = _0x5e2837;
|
|
982
|
-
if (_0xc712b0[_0x5d12d7(0x1d5)] === 0x0)
|
|
983
|
-
return _0x5d12d7(0x2c5);
|
|
984
|
-
return _0xc712b0[_0x5d12d7(_0x528e4e._0xd5d82d)](_0x3713ff => {
|
|
985
|
-
const _0xeda05e = _0x5d12d7, _0x1904ed = _0x3713ff[_0xeda05e(0x319)] === _0xeda05e(0x225) ? _0xeda05e(_0x54af61._0x144bc6) : '';
|
|
986
|
-
return _0xeda05e(_0x54af61._0x53ecc8) + _0x3713ff['target'] + _0xeda05e(0x1b1) + _0x3713ff['messageId'][_0xeda05e(_0x54af61._0x14c29a)](0x0, 0x8) + _0xeda05e(0x231) + toLocalTime(_0x3713ff[_0xeda05e(0x26c)]) + _0x1904ed + _0xeda05e(0x25c) + _0x3713ff[_0xeda05e(0x1b2)] + ':\x20' + _0x3713ff[_0xeda05e(0x2ef)] + formatAttachmentSuffix(_0x3713ff['attachments']);
|
|
987
|
-
})[_0x5d12d7(_0x528e4e._0x179190)]('\x0a');
|
|
988
|
-
}
|
|
989
|
-
function formatHistory(_0xa28882) {
|
|
990
|
-
const _0x17b901 = {
|
|
991
|
-
_0x4ebc08: 0x1d5,
|
|
992
|
-
_0x4b8b6f: 0x22b,
|
|
993
|
-
_0x3467ca: 0x2fb,
|
|
994
|
-
_0x2ec5b2: 0x2ed,
|
|
995
|
-
_0x57bc06: 0x307,
|
|
996
|
-
_0x243c2c: 0x265,
|
|
997
|
-
_0x490798: 0x233
|
|
998
|
-
}, _0x54ca60 = {
|
|
999
|
-
_0x1c931c: 0x319,
|
|
1000
|
-
_0x41d5bc: 0x223,
|
|
1001
|
-
_0x40631d: 0x1b1,
|
|
1002
|
-
_0x18c680: 0x25c,
|
|
1003
|
-
_0x3e809c: 0x314
|
|
1004
|
-
}, _0x28c049 = _0x5e2837;
|
|
1005
|
-
if (_0xa28882[_0x28c049(0x265)][_0x28c049(_0x17b901._0x4ebc08)] === 0x0)
|
|
1006
|
-
return _0x28c049(0x30c) + _0xa28882[_0x28c049(_0x17b901._0x4b8b6f)] + _0x28c049(_0x17b901._0x3467ca);
|
|
1007
|
-
const _0x3a215f = _0xa28882[_0x28c049(0x265)][_0x28c049(_0x17b901._0x2ec5b2)](_0x2c9dd2 => {
|
|
1008
|
-
const _0x19670e = _0x28c049, _0x2c9f34 = _0x2c9dd2[_0x19670e(_0x54ca60._0x1c931c)] === _0x19670e(0x225) ? _0x19670e(0x1d7) : '';
|
|
1009
|
-
return _0x19670e(0x327) + _0x2c9dd2[_0x19670e(_0x54ca60._0x41d5bc)] + _0x19670e(_0x54ca60._0x40631d) + _0x2c9dd2[_0x19670e(0x270)] + _0x19670e(0x231) + toLocalTime(_0x2c9dd2[_0x19670e(0x26c)]) + _0x2c9f34 + _0x19670e(_0x54ca60._0x18c680) + _0x2c9dd2['senderName'] + ':\x20' + _0x2c9dd2['content'] + formatAttachmentSuffix(_0x2c9dd2[_0x19670e(_0x54ca60._0x3e809c)]);
|
|
1010
|
-
})[_0x28c049(0x32f)]('\x0a'), _0x56e10b = _0xa28882['hasMore'] && _0xa28882[_0x28c049(_0x17b901._0x57bc06)] ? _0x28c049(0x24e) + _0xa28882[_0x28c049(0x265)]['length'] + '\x20messages\x20shown.\x20Use\x20before=' + _0xa28882[_0x28c049(_0x17b901._0x57bc06)] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1011
|
-
return _0x28c049(0x30c) + _0xa28882[_0x28c049(_0x17b901._0x4b8b6f)] + '\x20(' + _0xa28882[_0x28c049(_0x17b901._0x243c2c)]['length'] + _0x28c049(_0x17b901._0x490798) + _0x3a215f + _0x56e10b;
|
|
1012
|
-
}
|
|
1013
|
-
function formatServerDirectory(_0x12d992) {
|
|
1014
|
-
const _0x14de63 = {
|
|
1015
|
-
_0x2f6fac: 0x32f,
|
|
1016
|
-
_0x48d656: 0x2ed,
|
|
1017
|
-
_0x41984e: 0x21a,
|
|
1018
|
-
_0x196a69: 0x224,
|
|
1019
|
-
_0xf13620: 0x2a7
|
|
1020
|
-
}, _0x1423bb = _0x5e2837, _0x215513 = _0x12d992[_0x1423bb(0x1e4)]['length'] > 0x0 ? _0x12d992[_0x1423bb(0x1e4)]['map'](_0x4e96cd => _0x4e96cd['description'] ? _0x1423bb(0x311) + _0x4e96cd['name'] + '\x20—\x20' + _0x4e96cd[_0x1423bb(0x1e6)] : _0x1423bb(0x311) + _0x4e96cd['name'])[_0x1423bb(_0x14de63._0x2f6fac)]('\x0a') : _0x1423bb(0x1d6), _0x5dc2d6 = _0x12d992[_0x1423bb(0x2ad)][_0x1423bb(0x1d5)] > 0x0 ? _0x12d992['agents'][_0x1423bb(_0x14de63._0x48d656)](_0x5c9b88 => '-\x20@' + _0x5c9b88[_0x1423bb(0x1a9)])[_0x1423bb(0x32f)]('\x0a') : _0x1423bb(0x1d6), _0x469212 = _0x12d992[_0x1423bb(_0x14de63._0x41984e)][_0x1423bb(0x1d5)] > 0x0 ? _0x12d992['humans'][_0x1423bb(0x2ed)](_0x21dff8 => _0x1423bb(0x28c) + _0x21dff8['name'])[_0x1423bb(0x32f)]('\x0a') : _0x1423bb(0x1d6);
|
|
1021
|
-
return [
|
|
1022
|
-
_0x1423bb(_0x14de63._0x196a69) + _0x12d992[_0x1423bb(0x204)],
|
|
1023
|
-
'',
|
|
1024
|
-
_0x1423bb(0x1a8),
|
|
1025
|
-
_0x215513,
|
|
1026
|
-
'',
|
|
1027
|
-
'###\x20Agents',
|
|
1028
|
-
_0x5dc2d6,
|
|
1029
|
-
'',
|
|
1030
|
-
_0x1423bb(_0x14de63._0xf13620),
|
|
1031
|
-
_0x469212
|
|
1032
|
-
][_0x1423bb(0x32f)]('\x0a');
|
|
1033
|
-
}
|
|
1034
|
-
function formatUploadResult(_0x320442) {
|
|
1035
|
-
const _0x32bbf3 = { _0x19a910: 0x230 }, _0x118959 = _0x5e2837;
|
|
1036
|
-
return _0x118959(0x315) + _0x320442['filename'] + '\x20(' + (_0x320442['sizeBytes'] / 0x400)[_0x118959(_0x32bbf3._0x19a910)](0x1) + _0x118959(0x299) + _0x320442['attachmentId'] + _0x118959(0x1da);
|
|
1037
|
-
}
|
|
1038
|
-
function formatViewFileResult(_0x5dffb5, _0x1a17d6) {
|
|
1039
|
-
const _0x2d2630 = { _0x17f03b: 0x1fc }, _0x2ba38c = _0x5e2837;
|
|
1040
|
-
return _0x1a17d6 ? _0x2ba38c(0x272) + _0x5dffb5 : _0x2ba38c(_0x2d2630._0x17f03b) + _0x5dffb5;
|
|
1041
|
-
}
|
|
1042
|
-
function formatTaskList(_0x62a7d1, _0x49452e) {
|
|
1043
|
-
const _0x6a2d7d = { _0x13702a: 0x1d5 }, _0x48614d = {
|
|
1044
|
-
_0x4c877a: 0x293,
|
|
1045
|
-
_0x257c72: 0x270,
|
|
1046
|
-
_0x2a91fe: 0x1c3,
|
|
1047
|
-
_0x5cebcd: 0x2c8,
|
|
1048
|
-
_0x2f8aff: 0x24f,
|
|
1049
|
-
_0x180ce6: 0x215
|
|
1050
|
-
}, _0x5e696a = _0x5e2837;
|
|
1051
|
-
if (_0x62a7d1[_0x5e696a(_0x6a2d7d._0x13702a)] === 0x0)
|
|
1052
|
-
return 'No\x20tasks\x20found.';
|
|
1053
|
-
return _0x62a7d1['map'](_0x1857fc => {
|
|
1054
|
-
const _0x162ad0 = _0x5e696a, _0x20da7c = _0x1857fc['taskNumber'] == null ? _0x162ad0(_0x48614d._0x4c877a) : '#' + _0x1857fc['taskNumber'], _0x286fb3 = _0x1857fc[_0x162ad0(_0x48614d._0x257c72)] ? _0x162ad0(_0x48614d._0x2a91fe) + _0x1857fc['messageId'] : '', _0x5ea0ef = _0x49452e && _0x1857fc['taskNumber'] != null && _0x49452e[_0x162ad0(_0x48614d._0x5cebcd)](_0x1857fc[_0x162ad0(_0x48614d._0x2f8aff)]) ? _0x162ad0(_0x48614d._0x180ce6) : '';
|
|
1055
|
-
return _0x20da7c + '\x20[' + _0x1857fc[_0x162ad0(0x2b9)] + ']\x20' + _0x1857fc[_0x162ad0(0x2f4)] + _0x286fb3 + _0x5ea0ef;
|
|
1056
|
-
})['join']('\x0a');
|
|
1057
|
-
}
|
|
1058
|
-
function formatCreatedTasks(_0x4691aa) {
|
|
1059
|
-
const _0x4819b9 = { _0x158b00: 0x2ed }, _0x18eb0f = {
|
|
1060
|
-
_0x4dd2a3: 0x24f,
|
|
1061
|
-
_0x3de714: 0x24f
|
|
1062
|
-
}, _0x1ca9f1 = _0x5e2837;
|
|
1063
|
-
if (_0x4691aa[_0x1ca9f1(0x1d5)] === 0x0)
|
|
1064
|
-
return 'No\x20tasks\x20created.';
|
|
1065
|
-
return _0x4691aa[_0x1ca9f1(_0x4819b9._0x158b00)](_0x1381b3 => {
|
|
1066
|
-
const _0x95cfd0 = _0x1ca9f1, _0x532e8a = _0x1381b3[_0x95cfd0(_0x18eb0f._0x4dd2a3)] == null ? _0x95cfd0(0x293) : '#' + _0x1381b3[_0x95cfd0(_0x18eb0f._0x3de714)];
|
|
1067
|
-
return _0x532e8a + '\x20' + _0x1381b3[_0x95cfd0(0x2f4)] + _0x95cfd0(0x1c3) + _0x1381b3[_0x95cfd0(0x270)];
|
|
1068
|
-
})[_0x1ca9f1(0x32f)]('\x0a');
|
|
1069
|
-
}
|
|
1070
|
-
function formatClaimTaskResults(_0x4a953a) {
|
|
1071
|
-
const _0x352173 = {
|
|
1072
|
-
_0x2ecb14: 0x1d5,
|
|
1073
|
-
_0x15a2c3: 0x2c1
|
|
1074
|
-
}, _0x44066c = {
|
|
1075
|
-
_0x96614b: 0x24f,
|
|
1076
|
-
_0x40999c: 0x24f,
|
|
1077
|
-
_0xf5af6e: 0x270,
|
|
1078
|
-
_0x5a78ac: 0x30f,
|
|
1079
|
-
_0xec17cb: 0x2f7,
|
|
1080
|
-
_0xd4d3cb: 0x216,
|
|
1081
|
-
_0x1a400c: 0x268,
|
|
1082
|
-
_0x265dc0: 0x2fc,
|
|
1083
|
-
_0x55209a: 0x23d,
|
|
1084
|
-
_0x30eb45: 0x2f3,
|
|
1085
|
-
_0x300ded: 0x2ac,
|
|
1086
|
-
_0x2d6d2b: 0x24f
|
|
1087
|
-
}, _0x37bfe0 = _0x5e2837;
|
|
1088
|
-
if (_0x4a953a[_0x37bfe0(_0x352173._0x2ecb14)] === 0x0)
|
|
1089
|
-
return _0x37bfe0(_0x352173._0x15a2c3);
|
|
1090
|
-
return _0x4a953a[_0x37bfe0(0x2ed)](_0x2de6f6 => {
|
|
1091
|
-
const _0x3daaa3 = _0x37bfe0;
|
|
1092
|
-
if (_0x2de6f6['success']) {
|
|
1093
|
-
const _0x9ecb32 = _0x2de6f6[_0x3daaa3(_0x44066c._0x96614b)] == null ? '(legacy)' : '#' + _0x2de6f6[_0x3daaa3(_0x44066c._0x40999c)], _0x207b64 = _0x2de6f6[_0x3daaa3(_0x44066c._0xf5af6e)] ? '\x20message=' + _0x2de6f6['messageId'] : '';
|
|
1094
|
-
if (_0x2de6f6[_0x3daaa3(_0x44066c._0x5a78ac)]) {
|
|
1095
|
-
const _0x443d93 = [
|
|
1096
|
-
'workerHandoff=true',
|
|
1097
|
-
_0x2de6f6[_0x3daaa3(_0x44066c._0xec17cb)] ? 'stopMain=true' : null,
|
|
1098
|
-
_0x2de6f6[_0x3daaa3(0x22f)] ? _0x3daaa3(0x31f) + _0x2de6f6[_0x3daaa3(0x22f)] : null,
|
|
1099
|
-
_0x2de6f6['threadTarget'] ? 'threadTarget=' + _0x2de6f6[_0x3daaa3(0x1f3)] : null,
|
|
1100
|
-
_0x2de6f6[_0x3daaa3(_0x44066c._0xd4d3cb)] ? _0x3daaa3(_0x44066c._0x1a400c) + _0x2de6f6['workerDisposition'] : null
|
|
1101
|
-
][_0x3daaa3(_0x44066c._0x265dc0)](Boolean)['join']('\x20');
|
|
1102
|
-
return _0x9ecb32 + _0x3daaa3(_0x44066c._0x55209a) + _0x207b64 + '\x20' + _0x443d93 + _0x3daaa3(0x1db);
|
|
1103
|
-
}
|
|
1104
|
-
const _0x316fa7 = _0x2de6f6[_0x3daaa3(_0x44066c._0x30eb45)] ? _0x3daaa3(_0x44066c._0x300ded) + _0x2de6f6['workerHandoffError'] : '';
|
|
1105
|
-
return _0x9ecb32 + _0x3daaa3(_0x44066c._0x55209a) + _0x207b64 + _0x316fa7;
|
|
1106
|
-
}
|
|
1107
|
-
const _0x407eaa = _0x2de6f6[_0x3daaa3(_0x44066c._0x96614b)] == null ? _0x2de6f6['messageId'] ?? _0x3daaa3(0x1e2) : '#' + _0x2de6f6[_0x3daaa3(_0x44066c._0x2d6d2b)];
|
|
1108
|
-
return _0x407eaa + _0x3daaa3(0x2b0) + (_0x2de6f6[_0x3daaa3(0x28e)] ?? _0x3daaa3(0x1d8));
|
|
1109
|
-
})['join']('\x0a');
|
|
1110
|
-
}
|
|
1111
|
-
function formatUnclaimTaskResult(_0x2d325f) {
|
|
1112
|
-
const _0x34e930 = { _0x509cff: 0x2fe }, _0x1c2d8e = _0x5e2837, _0x36aaeb = _0x2d325f[_0x1c2d8e(0x24f)] == null ? _0x1c2d8e(0x293) : '#' + _0x2d325f['taskNumber'];
|
|
1113
|
-
return _0x36aaeb + _0x1c2d8e(_0x34e930._0x509cff) + _0x2d325f[_0x1c2d8e(0x2b9)];
|
|
1114
|
-
}
|
|
1115
|
-
function formatUpdateTaskStatusResult(_0x2748ae) {
|
|
1116
|
-
const _0xe71077 = {
|
|
1117
|
-
_0x526b4c: 0x24f,
|
|
1118
|
-
_0x15e0af: 0x2fe,
|
|
1119
|
-
_0x24b108: 0x2b9
|
|
1120
|
-
}, _0x509b8f = _0x5e2837, _0x2a64f3 = _0x2748ae[_0x509b8f(_0xe71077._0x526b4c)] == null ? '(legacy)' : '#' + _0x2748ae[_0x509b8f(0x24f)];
|
|
1121
|
-
return _0x2a64f3 + _0x509b8f(_0xe71077._0x15e0af) + _0x2748ae[_0x509b8f(_0xe71077._0x24b108)];
|
|
1122
|
-
}
|
|
1123
|
-
function getChatBridgeToolDefinitions() {
|
|
1124
|
-
const _0xf1c743 = {
|
|
1125
|
-
_0x1efac9: 0x1f6,
|
|
1126
|
-
_0x5ec11a: 0x2fd,
|
|
1127
|
-
_0x523c84: 0x1e1,
|
|
1128
|
-
_0x5b0c77: 0x249,
|
|
1129
|
-
_0x5b4771: 0x251,
|
|
1130
|
-
_0x47fe54: 0x2eb,
|
|
1131
|
-
_0x40a7a0: 0x26a,
|
|
1132
|
-
_0x5389be: 0x2aa
|
|
1133
|
-
}, _0x2596ef = _0x5e2837;
|
|
1134
|
-
return [
|
|
1135
|
-
{ 'name': _0x2596ef(_0xf1c743._0x1efac9) },
|
|
1136
|
-
{ 'name': _0x2596ef(0x285) },
|
|
1137
|
-
{ 'name': 'read_history' },
|
|
1138
|
-
{ 'name': 'list_server' },
|
|
1139
|
-
{ 'name': 'upload_file' },
|
|
1140
|
-
{ 'name': 'view_file' },
|
|
1141
|
-
{ 'name': _0x2596ef(0x2a4) },
|
|
1142
|
-
{ 'name': _0x2596ef(_0xf1c743._0x5ec11a) },
|
|
1143
|
-
{ 'name': _0x2596ef(_0xf1c743._0x523c84) },
|
|
1144
|
-
{ 'name': _0x2596ef(_0xf1c743._0x5b0c77) },
|
|
1145
|
-
{ 'name': _0x2596ef(0x28f) },
|
|
1146
|
-
{ 'name': _0x2596ef(_0xf1c743._0x5b4771) },
|
|
1147
|
-
{ 'name': _0x2596ef(_0xf1c743._0x47fe54) },
|
|
1148
|
-
{ 'name': _0x2596ef(_0xf1c743._0x40a7a0) },
|
|
1149
|
-
{ 'name': _0x2596ef(_0xf1c743._0x5389be) },
|
|
1150
|
-
{ 'name': 'mark_waiting_input' }
|
|
1151
|
-
];
|
|
115
|
+
return _0x1b6642;
|
|
1152
116
|
}
|
|
1153
|
-
function
|
|
1154
|
-
const
|
|
1155
|
-
_0x30d80d: 0x2d2,
|
|
1156
|
-
_0x1a6f0d: 0x1c1,
|
|
1157
|
-
_0x36bf90: 0x328,
|
|
1158
|
-
_0x2c9079: 0x28e
|
|
1159
|
-
}, _0x69134a = {
|
|
1160
|
-
_0x37f00f: 0x1ba,
|
|
1161
|
-
_0x107280: 0x2df,
|
|
1162
|
-
_0x2ffb8e: 0x253,
|
|
1163
|
-
_0x684464: 0x271,
|
|
1164
|
-
_0x452919: 0x1ff
|
|
1165
|
-
}, _0x4c67fc = {
|
|
1166
|
-
_0xdd3c1: 0x1ba,
|
|
1167
|
-
_0x194dcd: 0x253,
|
|
1168
|
-
_0x2ca060: 0x271,
|
|
1169
|
-
_0x154c22: 0x2d7,
|
|
1170
|
-
_0x1ee897: 0x1a3,
|
|
1171
|
-
_0x319c5f: 0x1c1,
|
|
1172
|
-
_0x1aec1f: 0x2d7
|
|
1173
|
-
}, _0x5ca4ff = {
|
|
1174
|
-
_0x28dd16: 0x1ba,
|
|
1175
|
-
_0x3f7a7d: 0x2d2,
|
|
1176
|
-
_0x2f4d7f: 0x221,
|
|
1177
|
-
_0x51d3ae: 0x271,
|
|
1178
|
-
_0x329f84: 0x21e,
|
|
1179
|
-
_0x2e59f6: 0x308,
|
|
1180
|
-
_0x35d2a1: 0x245
|
|
1181
|
-
}, _0x11cf74 = {
|
|
1182
|
-
_0x54fd35: 0x1ba,
|
|
1183
|
-
_0x42e8b3: 0x1ba,
|
|
1184
|
-
_0x51ec05: 0x2ee,
|
|
1185
|
-
_0x51427c: 0x2b3,
|
|
1186
|
-
_0x1e75f7: 0x2b9
|
|
1187
|
-
}, _0x1557ff = {
|
|
1188
|
-
_0x470793: 0x218,
|
|
1189
|
-
_0x1f8186: 0x281,
|
|
1190
|
-
_0x1036e3: 0x212,
|
|
1191
|
-
_0x49ad40: 0x24c,
|
|
1192
|
-
_0x4168a1: 0x228
|
|
1193
|
-
}, _0x19dda4 = {
|
|
1194
|
-
_0x4a1726: 0x2e9,
|
|
1195
|
-
_0x44dc0f: 0x290
|
|
1196
|
-
}, _0x141195 = { _0x137249: 0x23a }, _0x174c47 = { _0x2fab89: 0x1b6 }, _0xff0955 = {
|
|
1197
|
-
_0x1e3923: 0x2e0,
|
|
1198
|
-
_0x3fdd19: 0x2ed
|
|
1199
|
-
}, _0x1f019a = {
|
|
1200
|
-
_0x2d73d4: 0x270,
|
|
1201
|
-
_0x52cffd: 0x2d9
|
|
1202
|
-
}, _0x44d603 = { _0x4b743: 0x2b1 }, _0x1d14de = {
|
|
1203
|
-
_0x45ad7d: 0x1ba,
|
|
1204
|
-
_0xe383ef: 0x2ee,
|
|
1205
|
-
_0x47b74e: 0x1a5,
|
|
1206
|
-
_0x45980f: 0x2b9,
|
|
1207
|
-
_0x2acf2d: 0x30a,
|
|
1208
|
-
_0x2adb2c: 0x24a,
|
|
1209
|
-
_0x5487c2: 0x1d5,
|
|
1210
|
-
_0x7e8e9c: 0x208,
|
|
1211
|
-
_0x65f13f: 0x24f,
|
|
1212
|
-
_0x12d0e7: 0x2bf,
|
|
1213
|
-
_0x48e2bf: 0x326,
|
|
1214
|
-
_0x1ef0a2: 0x24f,
|
|
1215
|
-
_0x592a82: 0x2b1
|
|
1216
|
-
}, _0x5db96d = { _0x5d703c: 0x1b6 }, _0x2e8dac = { _0x27d9b7: 0x209 }, _0x16599d = { _0x502245: 0x287 }, _0x816090 = {
|
|
1217
|
-
_0x3b2b38: 0x1ba,
|
|
1218
|
-
_0xc37d55: 0x1b6,
|
|
1219
|
-
_0x4cbe1b: 0x2a8,
|
|
1220
|
-
_0x4d7dc: 0x305,
|
|
1221
|
-
_0x366848: 0x24f,
|
|
1222
|
-
_0x2ebdc7: 0x293,
|
|
1223
|
-
_0x32d9d8: 0x317,
|
|
1224
|
-
_0x2ddcaa: 0x258,
|
|
1225
|
-
_0x40d103: 0x2ef,
|
|
1226
|
-
_0x25e9f5: 0x201,
|
|
1227
|
-
_0x51ed5b: 0x2db,
|
|
1228
|
-
_0x39d934: 0x232,
|
|
1229
|
-
_0x298ca9: 0x31a,
|
|
1230
|
-
_0x5556cb: 0x321,
|
|
1231
|
-
_0xe4d2a8: 0x273,
|
|
1232
|
-
_0x3557c1: 0x261,
|
|
1233
|
-
_0x560270: 0x21b,
|
|
1234
|
-
_0x5e220f: 0x240,
|
|
1235
|
-
_0x55ff73: 0x2ae
|
|
1236
|
-
}, _0x422b35 = {
|
|
1237
|
-
_0x451234: 0x321,
|
|
1238
|
-
_0x511630: 0x23f,
|
|
1239
|
-
_0x122601: 0x20c,
|
|
1240
|
-
_0x533f20: 0x2ee,
|
|
1241
|
-
_0x1cab97: 0x1a5,
|
|
1242
|
-
_0x1050c5: 0x30a
|
|
1243
|
-
}, _0x1d058a = {
|
|
1244
|
-
_0x53693b: 0x23f,
|
|
1245
|
-
_0x50d26f: 0x310,
|
|
1246
|
-
_0x5c0096: 0x1b6,
|
|
1247
|
-
_0x1dc894: 0x265,
|
|
1248
|
-
_0x3bc0fc: 0x208,
|
|
1249
|
-
_0x56640c: 0x24f,
|
|
1250
|
-
_0xc32694: 0x24f,
|
|
1251
|
-
_0x58775a: 0x270,
|
|
1252
|
-
_0x5dc8cb: 0x1e3,
|
|
1253
|
-
_0x364295: 0x29c,
|
|
1254
|
-
_0x2ab994: 0x219,
|
|
1255
|
-
_0x13db85: 0x2ef,
|
|
1256
|
-
_0x136d4e: 0x31d,
|
|
1257
|
-
_0xf0eca8: 0x279,
|
|
1258
|
-
_0x27d305: 0x31a,
|
|
1259
|
-
_0x267341: 0x22e,
|
|
1260
|
-
_0x58c5b2: 0x321,
|
|
1261
|
-
_0x503e13: 0x2d9,
|
|
1262
|
-
_0x47b85d: 0x2ee,
|
|
1263
|
-
_0x81084b: 0x1c1,
|
|
1264
|
-
_0x187729: 0x1b7,
|
|
1265
|
-
_0x45a831: 0x2ea,
|
|
1266
|
-
_0x3918c7: 0x1bf,
|
|
1267
|
-
_0x44ed89: 0x2be
|
|
1268
|
-
};
|
|
1269
|
-
async function _0x580ff3(_0x397102) {
|
|
1270
|
-
const _0x324a3c = _0x34a4;
|
|
1271
|
-
if (!_0x2f60a6[_0x324a3c(0x1ba)] || !_0x2f60a6[_0x324a3c(0x321)] || _0x2f60a6[_0x324a3c(_0x1d058a._0x53693b)] || _0x2f60a6['workerModeEnabled'] !== !![])
|
|
1272
|
-
return null;
|
|
1273
|
-
const _0x7708d6 = parseTarget(_0x397102[_0x324a3c(0x22b)]);
|
|
1274
|
-
if (_0x7708d6['kind'] !== 'channel')
|
|
1275
|
-
return null;
|
|
1276
|
-
const _0x3ec625 = _0x397102['threadNumber'] != null ? _0x7708d6['channelTarget'] + ':t' + _0x397102[_0x324a3c(_0x1d058a._0x50d26f)] : _0x7708d6[_0x324a3c(0x2e8)] + ':' + _0x397102[_0x324a3c(0x270)];
|
|
1277
|
-
let _0x47e2ef;
|
|
1278
|
-
try {
|
|
1279
|
-
const _0x3a31f8 = await _0x2f60a6[_0x324a3c(_0x1d058a._0x5c0096)][_0x324a3c(0x209)]({
|
|
1280
|
-
'channel': _0x3ec625,
|
|
1281
|
-
'limit': 0x14
|
|
1282
|
-
});
|
|
1283
|
-
_0x47e2ef = _0x3a31f8[_0x324a3c(_0x1d058a._0x1dc894)][_0x324a3c(_0x1d058a._0x3bc0fc)](_0x57b36e => _0x57b36e['messageId'] === _0x397102[_0x324a3c(0x270)]);
|
|
1284
|
-
} catch {
|
|
1285
|
-
_0x47e2ef = void 0x0;
|
|
1286
|
-
}
|
|
1287
|
-
const _0x20449d = _0x397102[_0x324a3c(_0x1d058a._0x56640c)] == null ? '(legacy)' : '#' + _0x397102[_0x324a3c(_0x1d058a._0xc32694)], _0x29a6ab = [
|
|
1288
|
-
_0x324a3c(0x317) + _0x3ec625 + '\x20msg=' + _0x397102[_0x324a3c(_0x1d058a._0x58775a)]['slice'](0x0, 0x8) + _0x324a3c(0x231) + new Date()[_0x324a3c(_0x1d058a._0x5dc8cb)]() + _0x324a3c(0x266) + _0x20449d + _0x324a3c(_0x1d058a._0x364295),
|
|
1289
|
-
'',
|
|
1290
|
-
_0x47e2ef ? _0x324a3c(_0x1d058a._0x2ab994) + _0x47e2ef[_0x324a3c(_0x1d058a._0x13db85)] : _0x324a3c(_0x1d058a._0x136d4e) + _0x397102[_0x324a3c(_0x1d058a._0x58775a)],
|
|
1291
|
-
'',
|
|
1292
|
-
'Thread\x20target:\x20' + _0x3ec625,
|
|
1293
|
-
_0x324a3c(_0x1d058a._0xf0eca8)
|
|
1294
|
-
]['join']('\x0a'), _0x3f98ff = await fetch(_0x2f60a6['daemonLocalUrl'] + _0x324a3c(_0x1d058a._0x27d305), {
|
|
1295
|
-
'method': _0x324a3c(_0x1d058a._0x267341),
|
|
1296
|
-
'headers': { 'Content-Type': _0x324a3c(0x253) },
|
|
1297
|
-
'body': JSON[_0x324a3c(0x245)]({
|
|
1298
|
-
'agent_id': _0x2f60a6[_0x324a3c(_0x1d058a._0x58c5b2)],
|
|
1299
|
-
'thread_target': _0x3ec625,
|
|
1300
|
-
'spawn_packet': {
|
|
1301
|
-
'replyTarget': _0x3ec625,
|
|
1302
|
-
..._0x397102[_0x324a3c(0x2d9)] ? { 'taskId': _0x397102[_0x324a3c(_0x1d058a._0x503e13)] } : _0x397102[_0x324a3c(0x24f)] != null ? { 'taskId': _0x324a3c(0x2d0) + _0x397102[_0x324a3c(0x24f)] } : {}
|
|
1303
|
-
},
|
|
1304
|
-
'payload': {
|
|
1305
|
-
'mode': _0x324a3c(0x261),
|
|
1306
|
-
'text': _0x29a6ab
|
|
1307
|
-
}
|
|
1308
|
-
})
|
|
1309
|
-
}), _0x36f119 = await _0x3f98ff[_0x324a3c(_0x1d058a._0x47b85d)]();
|
|
1310
|
-
if (!_0x36f119['ok'])
|
|
1311
|
-
throw new Error(_0x36f119[_0x324a3c(_0x1d058a._0x81084b)] ?? _0x324a3c(0x1fd));
|
|
1312
|
-
return {
|
|
1313
|
-
'stopMain': !![],
|
|
1314
|
-
'threadTarget': _0x3ec625,
|
|
1315
|
-
'workerDisposition': _0x36f119[_0x324a3c(_0x1d058a._0x187729)] === _0x324a3c(0x2ea) ? _0x324a3c(_0x1d058a._0x45a831) : _0x324a3c(_0x1d058a._0x3918c7),
|
|
1316
|
-
'workerHandoff': !![],
|
|
1317
|
-
'workerSessionId': _0x36f119[_0x324a3c(_0x1d058a._0x44ed89)] ?? '',
|
|
1318
|
-
'executionMode': _0x324a3c(0x2c9)
|
|
1319
|
-
};
|
|
1320
|
-
}
|
|
1321
|
-
async function _0x4de151() {
|
|
1322
|
-
const _0x37cb4a = _0x34a4;
|
|
1323
|
-
if (!_0x2f60a6['daemonLocalUrl'] || !_0x2f60a6[_0x37cb4a(_0x422b35._0x451234)] || _0x2f60a6[_0x37cb4a(_0x422b35._0x511630)])
|
|
1324
|
-
return null;
|
|
1325
|
-
try {
|
|
1326
|
-
const _0x4eea50 = await fetch(_0x2f60a6[_0x37cb4a(0x1ba)] + _0x37cb4a(_0x422b35._0x122601) + encodeURIComponent(_0x2f60a6[_0x37cb4a(0x321)])), _0x1b5568 = await _0x4eea50[_0x37cb4a(_0x422b35._0x533f20)]();
|
|
1327
|
-
if (!_0x1b5568['ok'])
|
|
1328
|
-
return null;
|
|
1329
|
-
const _0x5b7666 = new Set();
|
|
1330
|
-
for (const _0x4432b7 of _0x1b5568[_0x37cb4a(_0x422b35._0x1cab97)]) {
|
|
1331
|
-
_0x4432b7[_0x37cb4a(0x2b9)] !== _0x37cb4a(0x29d) && _0x4432b7[_0x37cb4a(_0x422b35._0x1050c5)] && _0x5b7666[_0x37cb4a(0x2bf)](_0x4432b7[_0x37cb4a(0x30a)]);
|
|
1332
|
-
}
|
|
1333
|
-
return _0x5b7666[_0x37cb4a(0x1ab)] > 0x0 ? _0x5b7666 : null;
|
|
1334
|
-
} catch {
|
|
1335
|
-
return null;
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
return {
|
|
1339
|
-
async 'send_message'(_0x36a4a2) {
|
|
1340
|
-
const _0x119064 = _0x34a4;
|
|
1341
|
-
if (!_0x2f60a6[_0x119064(0x23f)] && _0x2f60a6['workerModeEnabled'] && _0x2f60a6[_0x119064(_0x816090._0x3b2b38)] && _0x2f60a6[_0x119064(0x321)]) {
|
|
1342
|
-
const _0x4f6fbd = await _0x2f60a6[_0x119064(_0x816090._0xc37d55)][_0x119064(_0x816090._0x4cbe1b)](_0x36a4a2[_0x119064(0x22c)]);
|
|
1343
|
-
if (_0x4f6fbd[_0x119064(0x273)] && _0x4f6fbd[_0x119064(_0x816090._0x4d7dc)]) {
|
|
1344
|
-
const _0x148573 = _0x4f6fbd[_0x119064(0x273)][_0x119064(_0x816090._0x366848)] != null ? '#' + _0x4f6fbd[_0x119064(0x273)]['taskNumber'] : _0x119064(_0x816090._0x2ebdc7), _0x7951fb = _0x4f6fbd[_0x119064(0x310)] != null ? _0x4f6fbd['target'] + ':t' + _0x4f6fbd['threadNumber'] : _0x4f6fbd['target'] + ':' + _0x4f6fbd[_0x119064(0x305)][_0x119064(0x24a)](0x0, 0x8), _0xb19a96 = [
|
|
1345
|
-
_0x119064(_0x816090._0x32d9d8) + _0x7951fb + '\x20msg=handoff\x20time=' + new Date()[_0x119064(0x1e3)]() + _0x119064(_0x816090._0x2ddcaa),
|
|
1346
|
-
'',
|
|
1347
|
-
'Original\x20message:\x20' + _0x36a4a2[_0x119064(_0x816090._0x40d103)],
|
|
1348
|
-
_0x119064(_0x816090._0x25e9f5) + _0x148573 + '\x20(' + _0x4f6fbd[_0x119064(0x273)][_0x119064(0x2d9)] + ')',
|
|
1349
|
-
_0x119064(_0x816090._0x51ed5b) + _0x7951fb,
|
|
1350
|
-
_0x119064(_0x816090._0x39d934)
|
|
1351
|
-
]['join']('\x0a'), _0x31e44e = await fetch(_0x2f60a6[_0x119064(_0x816090._0x3b2b38)] + _0x119064(_0x816090._0x298ca9), {
|
|
1352
|
-
'method': 'POST',
|
|
1353
|
-
'headers': { 'Content-Type': 'application/json' },
|
|
1354
|
-
'body': JSON[_0x119064(0x245)]({
|
|
1355
|
-
'agent_id': _0x2f60a6[_0x119064(_0x816090._0x5556cb)],
|
|
1356
|
-
'thread_target': _0x7951fb,
|
|
1357
|
-
'spawn_packet': {
|
|
1358
|
-
'replyTarget': _0x7951fb,
|
|
1359
|
-
'taskId': _0x4f6fbd[_0x119064(_0x816090._0xe4d2a8)][_0x119064(0x2d9)]
|
|
1360
|
-
},
|
|
1361
|
-
'payload': {
|
|
1362
|
-
'mode': _0x119064(_0x816090._0x3557c1),
|
|
1363
|
-
'text': _0xb19a96
|
|
1364
|
-
}
|
|
1365
|
-
})
|
|
1366
|
-
}), _0x126255 = await _0x31e44e['json']();
|
|
1367
|
-
if (!_0x126255['ok'])
|
|
1368
|
-
throw new Error(_0x126255[_0x119064(0x1c1)] ?? _0x119064(0x27b));
|
|
1369
|
-
return [
|
|
1370
|
-
_0x119064(_0x816090._0x560270) + _0x148573 + _0x119064(_0x816090._0x5e220f) + _0x7951fb + _0x119064(0x325),
|
|
1371
|
-
_0x119064(_0x816090._0x55ff73) + (_0x126255['disposition'] === _0x119064(0x2ea) ? 'queued' : _0x119064(0x1bf)) + '.',
|
|
1372
|
-
_0x119064(0x1f5)
|
|
1373
|
-
][_0x119064(0x32f)]('\x0a');
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
const _0x8b940d = await _0x2f60a6[_0x119064(_0x816090._0xc37d55)]['sendMessage']({
|
|
1377
|
-
'attachmentIds': _0x36a4a2[_0x119064(0x239)],
|
|
1378
|
-
'content': _0x36a4a2[_0x119064(_0x816090._0x40d103)],
|
|
1379
|
-
'target': _0x36a4a2['target'],
|
|
1380
|
-
'visibility': _0x36a4a2[_0x119064(0x1a7)]
|
|
1381
|
-
});
|
|
1382
|
-
return _0x119064(0x210) + _0x36a4a2[_0x119064(0x22c)] + _0x119064(0x32a) + _0x8b940d[_0x119064(0x270)];
|
|
1383
|
-
},
|
|
1384
|
-
async 'check_messages'() {
|
|
1385
|
-
const _0x1f2eb9 = _0x34a4, _0x3add60 = await _0x2f60a6['client'][_0x1f2eb9(_0x16599d._0x502245)]();
|
|
1386
|
-
if (!_0x2f60a6['workerMode']) {
|
|
1387
|
-
const _0x24f065 = await _0x4de151();
|
|
1388
|
-
if (_0x24f065)
|
|
1389
|
-
return formatCheckMessages(_0x3add60[_0x1f2eb9(0x265)]['filter'](_0x3ba79f => !_0x24f065[_0x1f2eb9(0x2c8)](_0x3ba79f[_0x1f2eb9(0x22c)])));
|
|
1390
|
-
}
|
|
1391
|
-
return formatCheckMessages(_0x3add60['messages']);
|
|
1392
|
-
},
|
|
1393
|
-
async 'read_history'(_0x26ef49) {
|
|
1394
|
-
const _0x2c3552 = _0x34a4, _0x50f262 = await _0x2f60a6['client'][_0x2c3552(_0x2e8dac._0x27d9b7)](_0x26ef49);
|
|
1395
|
-
return formatHistory(_0x50f262);
|
|
1396
|
-
},
|
|
1397
|
-
async 'list_server'() {
|
|
1398
|
-
const _0x4ec162 = _0x34a4, _0x22a0fd = await _0x2f60a6[_0x4ec162(_0x5db96d._0x5d703c)][_0x4ec162(0x1ee)]();
|
|
1399
|
-
return formatServerDirectory(_0x22a0fd);
|
|
1400
|
-
},
|
|
1401
|
-
async 'list_tasks'(_0xecbcd1) {
|
|
1402
|
-
const _0x1804da = _0x34a4, _0x4d0427 = await _0x2f60a6[_0x1804da(0x1b6)][_0x1804da(0x286)](_0xecbcd1);
|
|
1403
|
-
let _0x82a139;
|
|
1404
|
-
if (_0x2f60a6[_0x1804da(_0x1d14de._0x45ad7d)] && _0x2f60a6[_0x1804da(0x321)])
|
|
1405
|
-
try {
|
|
1406
|
-
const _0x2032e3 = await fetch(_0x2f60a6[_0x1804da(_0x1d14de._0x45ad7d)] + '/workers/list?agent_id=' + encodeURIComponent(_0x2f60a6[_0x1804da(0x321)])), _0x5819f3 = await _0x2032e3[_0x1804da(_0x1d14de._0xe383ef)]();
|
|
1407
|
-
if (_0x5819f3['ok']) {
|
|
1408
|
-
const _0x21e17d = _0xecbcd1['channel'] + ':';
|
|
1409
|
-
_0x82a139 = new Set();
|
|
1410
|
-
for (const _0x3b8694 of _0x5819f3[_0x1804da(_0x1d14de._0x47b74e)]) {
|
|
1411
|
-
if (_0x3b8694[_0x1804da(_0x1d14de._0x45980f)] === 'destroyed')
|
|
1412
|
-
continue;
|
|
1413
|
-
if (_0x3b8694[_0x1804da(_0x1d14de._0x2acf2d)]?.[_0x1804da(0x2b5)](_0x21e17d)) {
|
|
1414
|
-
const _0x4de0ce = _0x3b8694[_0x1804da(_0x1d14de._0x2acf2d)][_0x1804da(_0x1d14de._0x2adb2c)](_0x21e17d[_0x1804da(_0x1d14de._0x5487c2)]), _0x497377 = _0x4d0427['tasks'][_0x1804da(_0x1d14de._0x7e8e9c)](_0x359c4e => _0x359c4e['messageId']?.['startsWith'](_0x4de0ce) === !![]);
|
|
1415
|
-
if (_0x497377?.[_0x1804da(_0x1d14de._0x65f13f)] != null) {
|
|
1416
|
-
_0x82a139[_0x1804da(_0x1d14de._0x12d0e7)](_0x497377[_0x1804da(0x24f)]);
|
|
1417
|
-
continue;
|
|
1418
|
-
}
|
|
1419
|
-
}
|
|
1420
|
-
if (_0x3b8694[_0x1804da(_0x1d14de._0x48e2bf)]) {
|
|
1421
|
-
const _0x23a98c = _0x4d0427[_0x1804da(0x2b1)][_0x1804da(_0x1d14de._0x7e8e9c)](_0x193c1f => _0x193c1f[_0x1804da(0x2d9)] === _0x3b8694[_0x1804da(0x326)]);
|
|
1422
|
-
_0x23a98c?.[_0x1804da(_0x1d14de._0x1ef0a2)] != null && _0x82a139[_0x1804da(_0x1d14de._0x12d0e7)](_0x23a98c['taskNumber']);
|
|
1423
|
-
}
|
|
1424
|
-
}
|
|
1425
|
-
}
|
|
1426
|
-
} catch {
|
|
1427
|
-
}
|
|
1428
|
-
return formatTaskList(_0x4d0427[_0x1804da(_0x1d14de._0x592a82)], _0x82a139);
|
|
1429
|
-
},
|
|
1430
|
-
async 'create_tasks'(_0x14871d) {
|
|
1431
|
-
const _0x1e1137 = _0x34a4, _0x1f6e99 = await _0x2f60a6[_0x1e1137(0x1b6)]['createTasks'](_0x14871d);
|
|
1432
|
-
return formatCreatedTasks(_0x1f6e99[_0x1e1137(_0x44d603._0x4b743)]);
|
|
1433
|
-
},
|
|
1434
|
-
async 'claim_tasks'(_0xba2491) {
|
|
1435
|
-
const _0x57123a = _0x34a4, _0x3ec971 = await _0x2f60a6['client'][_0x57123a(0x1fb)](_0xba2491), _0x32c219 = await Promise[_0x57123a(_0xff0955._0x1e3923)](_0x3ec971[_0x57123a(0x1c5)][_0x57123a(_0xff0955._0x3fdd19)](async _0x260aec => {
|
|
1436
|
-
const _0x3ecdfd = _0x57123a;
|
|
1437
|
-
if (!_0x260aec['success'] || !_0x260aec[_0x3ecdfd(_0x1f019a._0x2d73d4)])
|
|
1438
|
-
return _0x260aec;
|
|
1439
|
-
try {
|
|
1440
|
-
const _0x445078 = await _0x580ff3({
|
|
1441
|
-
'channel': _0xba2491[_0x3ecdfd(0x22b)],
|
|
1442
|
-
'messageId': _0x260aec[_0x3ecdfd(0x270)],
|
|
1443
|
-
'taskId': _0x260aec[_0x3ecdfd(_0x1f019a._0x52cffd)],
|
|
1444
|
-
'taskNumber': _0x260aec['taskNumber'],
|
|
1445
|
-
'threadNumber': _0x260aec['threadNumber']
|
|
1446
|
-
});
|
|
1447
|
-
return _0x445078 ? {
|
|
1448
|
-
..._0x260aec,
|
|
1449
|
-
..._0x445078
|
|
1450
|
-
} : _0x260aec;
|
|
1451
|
-
} catch (_0x3cb823) {
|
|
1452
|
-
return {
|
|
1453
|
-
..._0x260aec,
|
|
1454
|
-
'workerHandoffError': _0x3cb823 instanceof Error ? _0x3cb823[_0x3ecdfd(0x274)] : 'worker\x20handoff\x20failed'
|
|
1455
|
-
};
|
|
1456
|
-
}
|
|
1457
|
-
}));
|
|
1458
|
-
return formatClaimTaskResults(_0x32c219);
|
|
1459
|
-
},
|
|
1460
|
-
async 'unclaim_task'(_0x49ff4d) {
|
|
1461
|
-
const _0x14b51c = _0x34a4, _0x8d0f8b = await _0x2f60a6[_0x14b51c(_0x174c47._0x2fab89)][_0x14b51c(0x1f1)](_0x49ff4d);
|
|
1462
|
-
return formatUnclaimTaskResult(_0x8d0f8b);
|
|
1463
|
-
},
|
|
1464
|
-
async 'update_task_status'(_0x36327a) {
|
|
1465
|
-
const _0x5ea5c1 = _0x34a4, _0x47094e = await _0x2f60a6['client'][_0x5ea5c1(_0x141195._0x137249)](_0x36327a);
|
|
1466
|
-
return formatUpdateTaskStatusResult(_0x47094e);
|
|
1467
|
-
},
|
|
1468
|
-
async 'upload_file'(_0x1b6c14) {
|
|
1469
|
-
const _0xc37788 = _0x34a4, _0x4dc0c5 = await _0x2f60a6[_0xc37788(_0x19dda4._0x4a1726)](_0x1b6c14[_0xc37788(_0x19dda4._0x44dc0f)]), {
|
|
1470
|
-
sizeBytes: _0x2abdf0,
|
|
1471
|
-
..._0x29e8de
|
|
1472
|
-
} = _0x4dc0c5, _0x1c25ed = await _0x2f60a6[_0xc37788(0x1b6)][_0xc37788(0x227)]({
|
|
1473
|
-
'channel': _0x1b6c14[_0xc37788(0x22b)],
|
|
1474
|
-
..._0x29e8de
|
|
1475
|
-
});
|
|
1476
|
-
return formatUploadResult(_0x1c25ed);
|
|
1477
|
-
},
|
|
1478
|
-
async 'view_file'(_0x266150) {
|
|
1479
|
-
const _0x33c32a = _0x34a4, _0x4e95cf = await _0x2f60a6[_0x33c32a(_0x1557ff._0x470793)]['findCachedPath'](_0x266150[_0x33c32a(0x252)]);
|
|
1480
|
-
if (_0x4e95cf)
|
|
1481
|
-
return formatViewFileResult(_0x4e95cf, !![]);
|
|
1482
|
-
const _0xf7da7b = await _0x2f60a6[_0x33c32a(0x1b6)][_0x33c32a(_0x1557ff._0x1f8186)](_0x266150['attachment_id']), _0xfb1dbd = await _0x2f60a6['attachmentCache'][_0x33c32a(0x1ad)]({
|
|
1483
|
-
'attachmentId': _0x266150[_0x33c32a(0x252)],
|
|
1484
|
-
'contentType': _0xf7da7b[_0x33c32a(_0x1557ff._0x1036e3)],
|
|
1485
|
-
'data': _0xf7da7b[_0x33c32a(_0x1557ff._0x49ad40)],
|
|
1486
|
-
'originalFilename': _0xf7da7b[_0x33c32a(_0x1557ff._0x4168a1)]
|
|
1487
|
-
});
|
|
1488
|
-
return formatViewFileResult(_0xfb1dbd, ![]);
|
|
1489
|
-
},
|
|
1490
|
-
async 'get_worker_status'(_0x166e1b) {
|
|
1491
|
-
const _0x4b6908 = _0x34a4;
|
|
1492
|
-
if (!_0x2f60a6[_0x4b6908(_0x11cf74._0x54fd35)])
|
|
1493
|
-
return 'Worker\x20features\x20not\x20available';
|
|
1494
|
-
const _0x1c7c43 = await fetch(_0x2f60a6[_0x4b6908(_0x11cf74._0x42e8b3)] + _0x4b6908(0x25d) + encodeURIComponent(_0x166e1b[_0x4b6908(0x271)])), _0x81c839 = await _0x1c7c43[_0x4b6908(_0x11cf74._0x51ec05)]();
|
|
1495
|
-
if (!_0x81c839['ok'])
|
|
1496
|
-
return _0x4b6908(_0x11cf74._0x51427c) + _0x166e1b[_0x4b6908(0x271)] + _0x4b6908(0x1c2);
|
|
1497
|
-
return _0x4b6908(0x2b3) + _0x166e1b['work_key'] + '\x22:\x20status=' + _0x81c839[_0x4b6908(_0x11cf74._0x1e75f7)];
|
|
1498
|
-
},
|
|
1499
|
-
async 'get_worker_result'(_0x13c113) {
|
|
1500
|
-
const _0x47acff = _0x34a4;
|
|
1501
|
-
if (!_0x2f60a6[_0x47acff(_0x5ca4ff._0x28dd16)])
|
|
1502
|
-
return _0x47acff(_0x5ca4ff._0x3f7a7d);
|
|
1503
|
-
const _0x5df621 = await fetch(_0x2f60a6[_0x47acff(_0x5ca4ff._0x28dd16)] + _0x47acff(_0x5ca4ff._0x2f4d7f) + encodeURIComponent(_0x13c113[_0x47acff(_0x5ca4ff._0x51d3ae)])), _0x131eb4 = await _0x5df621[_0x47acff(0x2ee)]();
|
|
1504
|
-
if (!_0x131eb4[_0x47acff(_0x5ca4ff._0x329f84)])
|
|
1505
|
-
return _0x47acff(_0x5ca4ff._0x2e59f6) + _0x13c113['work_key'] + '\x22';
|
|
1506
|
-
return JSON[_0x47acff(_0x5ca4ff._0x35d2a1)](_0x131eb4[_0x47acff(0x21e)], null, 0x2);
|
|
1507
|
-
},
|
|
1508
|
-
async 'finish_worker'(_0x386c18) {
|
|
1509
|
-
const _0x21f8c9 = _0x34a4;
|
|
1510
|
-
if (!_0x2f60a6[_0x21f8c9(_0x4c67fc._0xdd3c1)])
|
|
1511
|
-
return 'Worker\x20features\x20not\x20available';
|
|
1512
|
-
const _0x32f6ae = await fetch(_0x2f60a6[_0x21f8c9(0x1ba)] + _0x21f8c9(0x1e5), {
|
|
1513
|
-
'method': _0x21f8c9(0x22e),
|
|
1514
|
-
'headers': { 'Content-Type': _0x21f8c9(_0x4c67fc._0x194dcd) },
|
|
1515
|
-
'body': JSON[_0x21f8c9(0x245)]({
|
|
1516
|
-
'work_key': _0x386c18[_0x21f8c9(_0x4c67fc._0x2ca060)],
|
|
1517
|
-
'resume_packet': {
|
|
1518
|
-
'objective': '',
|
|
1519
|
-
'result': _0x386c18[_0x21f8c9(_0x4c67fc._0x154c22)],
|
|
1520
|
-
'summary': _0x386c18['summary'],
|
|
1521
|
-
'decisions': _0x386c18[_0x21f8c9(_0x4c67fc._0x1ee897)] ?? [],
|
|
1522
|
-
'filesChanged': _0x386c18['files_changed'] ?? [],
|
|
1523
|
-
'openIssues': _0x386c18[_0x21f8c9(0x1d3)] ?? [],
|
|
1524
|
-
'nextSteps': _0x386c18['next_steps'] ?? []
|
|
1525
|
-
}
|
|
1526
|
-
})
|
|
1527
|
-
}), _0x47f27f = await _0x32f6ae[_0x21f8c9(0x2ee)]();
|
|
1528
|
-
if (!_0x47f27f['ok'])
|
|
1529
|
-
throw new Error(_0x47f27f[_0x21f8c9(_0x4c67fc._0x319c5f)] ?? _0x21f8c9(0x2ba));
|
|
1530
|
-
return _0x21f8c9(0x2b3) + _0x386c18[_0x21f8c9(0x271)] + _0x21f8c9(0x20a) + _0x386c18[_0x21f8c9(_0x4c67fc._0x1aec1f)];
|
|
1531
|
-
},
|
|
1532
|
-
async 'mark_waiting_input'(_0x5eebe3) {
|
|
1533
|
-
const _0x307c60 = _0x34a4;
|
|
1534
|
-
if (!_0x2f60a6[_0x307c60(_0x69134a._0x37f00f)] || !_0x2f60a6['agentId'])
|
|
1535
|
-
return _0x307c60(_0x69134a._0x107280);
|
|
1536
|
-
const _0x39171e = await fetch(_0x2f60a6['daemonLocalUrl'] + _0x307c60(0x2e5), {
|
|
1537
|
-
'method': 'POST',
|
|
1538
|
-
'headers': { 'Content-Type': _0x307c60(_0x69134a._0x2ffb8e) },
|
|
1539
|
-
'body': JSON['stringify']({
|
|
1540
|
-
'work_key': _0x5eebe3[_0x307c60(_0x69134a._0x684464)],
|
|
1541
|
-
'agent_id': _0x2f60a6[_0x307c60(0x321)]
|
|
1542
|
-
})
|
|
1543
|
-
}), _0x131fa2 = await _0x39171e[_0x307c60(0x2ee)]();
|
|
1544
|
-
if (!_0x131fa2['ok'])
|
|
1545
|
-
throw new Error(_0x131fa2[_0x307c60(0x1c1)] ?? _0x307c60(_0x69134a._0x452919));
|
|
1546
|
-
return _0x307c60(0x2b3) + _0x5eebe3['work_key'] + _0x307c60(0x1f0);
|
|
1547
|
-
},
|
|
1548
|
-
async 'escalate_to_main'(_0x3063e8) {
|
|
1549
|
-
const _0x2b16ee = _0x34a4;
|
|
1550
|
-
if (!_0x2f60a6[_0x2b16ee(0x1ba)])
|
|
1551
|
-
return _0x2b16ee(_0x44662d._0x30d80d);
|
|
1552
|
-
const _0x35ca27 = await fetch(_0x2f60a6['daemonLocalUrl'] + '/workers/escalate', {
|
|
1553
|
-
'method': _0x2b16ee(0x22e),
|
|
1554
|
-
'headers': { 'Content-Type': _0x2b16ee(0x253) },
|
|
1555
|
-
'body': JSON[_0x2b16ee(0x245)]({
|
|
1556
|
-
'work_key': _0x3063e8[_0x2b16ee(0x271)],
|
|
1557
|
-
'reason': _0x3063e8['reason']
|
|
1558
|
-
})
|
|
1559
|
-
}), _0x10c445 = await _0x35ca27[_0x2b16ee(0x2ee)]();
|
|
1560
|
-
if (!_0x10c445['ok'])
|
|
1561
|
-
throw new Error(_0x10c445[_0x2b16ee(_0x44662d._0x1a6f0d)] ?? _0x2b16ee(0x1e7));
|
|
1562
|
-
return _0x2b16ee(_0x44662d._0x36bf90) + _0x3063e8[_0x2b16ee(_0x44662d._0x2c9079)];
|
|
1563
|
-
}
|
|
1564
|
-
};
|
|
1565
|
-
}
|
|
1566
|
-
function textResult(_0x1e82e5, _0x1fed18 = ![]) {
|
|
1567
|
-
const _0x1a96ff = _0x5e2837;
|
|
1568
|
-
return {
|
|
1569
|
-
'content': [{
|
|
1570
|
-
'type': _0x1a96ff(0x1bc),
|
|
1571
|
-
'text': _0x1e82e5
|
|
1572
|
-
}],
|
|
1573
|
-
..._0x1fed18 ? { 'isError': !![] } : {}
|
|
1574
|
-
};
|
|
1575
|
-
}
|
|
1576
|
-
function _0x1f7c() {
|
|
1577
|
-
const _0x14be20 = [
|
|
117
|
+
function _0x19b3() {
|
|
118
|
+
const _0x1ce982 = [
|
|
1578
119
|
'y2HHBM5LBe5HBwu',
|
|
1579
|
-
'
|
|
1580
|
-
'
|
|
1581
|
-
'
|
|
1582
|
-
'
|
|
120
|
+
'zxHWAxjLC0f0',
|
|
121
|
+
'mJCYnJm0tvzWC21i',
|
|
122
|
+
'y29UBMvJDa',
|
|
123
|
+
'ANnVBG',
|
|
124
|
+
'zg9Uzq',
|
|
125
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
126
|
+
'CgfYC2u',
|
|
127
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
128
|
+
'C2L6zq',
|
|
129
|
+
'ywDNCMvNyxrLswq',
|
|
130
|
+
'y29UDgvUDfr5Cgu',
|
|
131
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
132
|
+
'C29YDa',
|
|
133
|
+
'Bwf4',
|
|
134
|
+
'zgvZDhjVEwvK',
|
|
135
|
+
'C2vZC2LVBKLK',
|
|
136
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
137
|
+
'Aw5KzxHpzG',
|
|
138
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
1583
139
|
'DMLLD19MAwXL',
|
|
1584
|
-
'
|
|
1585
|
-
'
|
|
1586
|
-
'
|
|
1587
|
-
'
|
|
140
|
+
'y2HLy2TnzxnZywDLCW',
|
|
141
|
+
'ig1LC3nHz2vZkqOk',
|
|
142
|
+
'mtaZndzbCgjWrha',
|
|
143
|
+
'ls1Hz2vUDc1Pza',
|
|
144
|
+
'AxngAw5PDgu',
|
|
145
|
+
'r0vu',
|
|
146
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
147
|
+
'z2v0u2vJB25KCW',
|
|
148
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
149
|
+
'ignSywLTzwq',
|
|
150
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
151
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
152
|
+
'odu4r1rwyNrK',
|
|
153
|
+
'ihn0yxr1CZ0',
|
|
1588
154
|
'zMLUza',
|
|
1589
|
-
'
|
|
1590
|
-
'
|
|
1591
|
-
'y2HHBM5LBeLK',
|
|
1592
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
155
|
+
'B3b0Aw9UywW',
|
|
156
|
+
'C3rVCe1HAw4',
|
|
1593
157
|
'Dg9tDhjPBMC',
|
|
1594
|
-
'
|
|
158
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
159
|
+
'lsba',
|
|
160
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
161
|
+
'yMXVy2TLza',
|
|
162
|
+
'v29YA2vYia',
|
|
163
|
+
'DxrMoa',
|
|
164
|
+
'ndb2v1LutMq',
|
|
165
|
+
'DgfZA3m',
|
|
166
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
167
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
168
|
+
'zgf0yq',
|
|
169
|
+
'y3jLyxrLx3rHC2TZ',
|
|
170
|
+
'D29YA2vYtw9Kzq',
|
|
171
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
1595
172
|
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
1596
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
1597
|
-
'z2v0rNvSBfLLyxi',
|
|
1598
|
-
'y29UDgvUDfr5Cgu',
|
|
1599
|
-
'Aw5FCMv2Awv3',
|
|
1600
|
-
'Aw1Hz2uVANbLzW',
|
|
1601
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1602
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1603
|
-
'otG3mgjhAhbvwq',
|
|
1604
|
-
'yxr0ywnOBwvUDenHy2HL',
|
|
1605
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1606
|
-
'AhvTyw5Z',
|
|
1607
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
1608
|
-
'BM93',
|
|
1609
|
-
'AhjLzG',
|
|
1610
|
-
'CMvZDw1Lx3bHy2TLDa',
|
|
1611
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1612
|
-
'ChjVDg9JB2W',
|
|
1613
173
|
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
1614
|
-
'
|
|
1615
|
-
'
|
|
1616
|
-
'
|
|
1617
|
-
'
|
|
1618
|
-
'
|
|
1619
|
-
'
|
|
1620
|
-
'
|
|
1621
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1622
|
-
'Dg9VBa',
|
|
1623
|
-
'y2HHBM5LBa',
|
|
1624
|
-
'DgfYz2v0',
|
|
1625
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1626
|
-
'ue9tva',
|
|
1627
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
1628
|
-
'Dg9gAxHLza',
|
|
1629
|
-
'ihrPBwu9',
|
|
1630
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1631
|
-
'ig1LC3nHz2vZkqOk',
|
|
1632
|
-
'mc4WlJa',
|
|
1633
|
-
'DhLWzq',
|
|
1634
|
-
'C29YDa',
|
|
1635
|
-
'nta1ndHgswP0CMi',
|
|
1636
|
-
'DMfSDwu',
|
|
1637
|
-
'yxr0ywnOBwvUDf9Pzhm',
|
|
1638
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
1639
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
1640
|
-
'DgHYzwfK',
|
|
1641
|
-
'ignSywLTzwq',
|
|
1642
|
-
'AhvTyw4',
|
|
1643
|
-
'D29YA2vYtw9Kzq',
|
|
1644
|
-
'igLUia',
|
|
1645
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1646
|
-
'C2L6zuj5DgvZ',
|
|
1647
|
-
'y2f0y2G',
|
|
1648
|
-
'DxbKyxrL',
|
|
174
|
+
'Aw5FChjVz3jLC3m',
|
|
175
|
+
'iYmJienOyw5UzwXZ',
|
|
176
|
+
'BNvTyMvY',
|
|
177
|
+
'Dgv4Dc9WBgfPBG',
|
|
178
|
+
'Dw5RBM93BG',
|
|
179
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
180
|
+
'zgvSzxrL',
|
|
1649
181
|
'C3rYAw5NAwz5',
|
|
1650
|
-
'
|
|
182
|
+
'C2vYDMvY',
|
|
183
|
+
'C3bSAxq',
|
|
184
|
+
'zxH0BMfTzq',
|
|
185
|
+
'y2HHDa',
|
|
186
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
187
|
+
'C29Tzq',
|
|
188
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
189
|
+
'y2XHAw1FDgfZA3m',
|
|
190
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
191
|
+
'C2vYDMvYvxjS',
|
|
192
|
+
'CMvHC29U',
|
|
193
|
+
'AxnbCNjHEq',
|
|
194
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1651
195
|
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1652
|
-
'Agv4',
|
|
1653
196
|
'Dw5JBgfPBv90yxnR',
|
|
1654
|
-
'
|
|
1655
|
-
'
|
|
1656
|
-
'
|
|
1657
|
-
'
|
|
1658
|
-
'
|
|
1659
|
-
'
|
|
1660
|
-
'
|
|
1661
|
-
'
|
|
1662
|
-
'
|
|
1663
|
-
'
|
|
1664
|
-
'
|
|
1665
|
-
'
|
|
1666
|
-
'
|
|
1667
|
-
'
|
|
1668
|
-
'
|
|
1669
|
-
'
|
|
1670
|
-
'
|
|
1671
|
-
'
|
|
1672
|
-
'
|
|
1673
|
-
'
|
|
1674
|
-
'
|
|
1675
|
-
'
|
|
1676
|
-
'CgfYDgLJAxbHBNq',
|
|
1677
|
-
'DxnLCG',
|
|
1678
|
-
'C3vJy2vZCW',
|
|
1679
|
-
'DxjNzw50',
|
|
1680
|
-
'BwvTyMvYCW',
|
|
1681
|
-
'BwvZC2fNzxm',
|
|
1682
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
197
|
+
'ywDLBNq',
|
|
198
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
199
|
+
'Aw5FCMv2Awv3',
|
|
200
|
+
'C2LNBMfS',
|
|
201
|
+
'CMvZDwX0CW',
|
|
202
|
+
'C3rHCNrZv2L0Aa',
|
|
203
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
204
|
+
'yM9KEu1HCMTKB3DU',
|
|
205
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
206
|
+
'l3rHC2TZl2nSywLT',
|
|
207
|
+
'BwvKAxvT',
|
|
208
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
209
|
+
'Aw1Hz2uVANbLzW',
|
|
210
|
+
'AhvTyw5Z',
|
|
211
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
212
|
+
'zgLNzxn0',
|
|
213
|
+
'ywz0zxi',
|
|
214
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
215
|
+
'DgL0Bgu',
|
|
216
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
217
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
218
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
1683
219
|
'yxv0BZO',
|
|
1684
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1685
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1686
|
-
'zMLUAxnOx3DVCMTLCG',
|
|
1687
|
-
'Dgv4Dc9WBgfPBG',
|
|
1688
|
-
'y3jLyxrLzef0',
|
|
1689
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
1690
|
-
'mtHUsKXeuLm',
|
|
1691
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
1692
|
-
'BwvZC2fNzuLK',
|
|
1693
|
-
'D29YA19RzxK',
|
|
1694
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1695
|
-
'DgfZAW',
|
|
1696
220
|
'BwvZC2fNzq',
|
|
1697
|
-
'
|
|
1698
|
-
'
|
|
1699
|
-
'
|
|
1700
|
-
'
|
|
1701
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
1702
|
-
'l2HPC3rVCNK/',
|
|
1703
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1704
|
-
'l3jLy2vPDMu',
|
|
1705
|
-
'DxrMoa',
|
|
1706
|
-
'ChvZAa',
|
|
1707
|
-
'mtG2ng9VBgXwCa',
|
|
1708
|
-
'AxngAwXL',
|
|
1709
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1710
|
-
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
1711
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
1712
|
-
'yMfZzw5HBwu',
|
|
1713
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
1714
|
-
'BgLZDfrHC2TZ',
|
|
1715
|
-
'y2HLy2TnzxnZywDLCW',
|
|
1716
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1717
|
-
'zxHWAxjLC0f0',
|
|
1718
|
-
'pgvTChr5pG',
|
|
1719
|
-
'BNvTyMvY',
|
|
1720
|
-
'lsba',
|
|
1721
|
-
'y2fJAgveAxi',
|
|
1722
|
-
'CMvHC29U',
|
|
1723
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1724
|
-
'zMLSzv9WyxrO',
|
|
221
|
+
'BMv4Df9ZDgvWCW',
|
|
222
|
+
'ywz0zxjtzxe',
|
|
223
|
+
'BgLZDf90yxnRCW',
|
|
224
|
+
'ihr5Cgu9ywDLBNq',
|
|
1725
225
|
'yMfZzty0',
|
|
1726
|
-
'
|
|
1727
|
-
'
|
|
226
|
+
'AgfZ',
|
|
227
|
+
'C2vYDMvYtMfTzq',
|
|
228
|
+
'y2XHAw1uyxnRCW',
|
|
229
|
+
'B3bLBL9PC3n1zxm',
|
|
230
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
231
|
+
'C3vJy2vZCW',
|
|
232
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
233
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
234
|
+
'D29YA19RzxK',
|
|
235
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
236
|
+
'z2v0',
|
|
237
|
+
'zg0T',
|
|
238
|
+
'mc4WlJa',
|
|
239
|
+
'y2HHBM5LBeLK',
|
|
1728
240
|
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
1729
|
-
'
|
|
241
|
+
'z2v0twLUDxrLCW',
|
|
242
|
+
'y29TCgXLDgvK',
|
|
243
|
+
'z2v0rgf0zq',
|
|
244
|
+
'DgfYz2v0',
|
|
245
|
+
'C3rHCNrLza',
|
|
246
|
+
'C3vTBwfYEq',
|
|
1730
247
|
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
1731
|
-
'
|
|
1732
|
-
'
|
|
1733
|
-
'
|
|
1734
|
-
'
|
|
1735
|
-
'
|
|
1736
|
-
'
|
|
1737
|
-
'
|
|
1738
|
-
'
|
|
1739
|
-
'
|
|
1740
|
-
'
|
|
1741
|
-
'
|
|
1742
|
-
'
|
|
1743
|
-
'
|
|
1744
|
-
'
|
|
1745
|
-
'
|
|
1746
|
-
'
|
|
1747
|
-
'
|
|
1748
|
-
'
|
|
1749
|
-
'
|
|
1750
|
-
'
|
|
1751
|
-
'AgfZtw9Yzq',
|
|
1752
|
-
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
1753
|
-
'ywDLBNrZ',
|
|
1754
|
-
'v29YA2vYia',
|
|
1755
|
-
'CMvXDwvZDfvYBa',
|
|
1756
|
-
'igzHAwXLzdOG',
|
|
1757
|
-
'DgfZA3m',
|
|
248
|
+
'Bg9JywXLq29TCgfYzq',
|
|
249
|
+
'CMvWBgfJzq',
|
|
250
|
+
'AxngAwXL',
|
|
251
|
+
'ig1ZzZ0',
|
|
252
|
+
'D3nZoG',
|
|
253
|
+
'Bwf0y2Hoyw1L',
|
|
254
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
255
|
+
'ChjVDg9JB2W',
|
|
256
|
+
'l2HPC3rVCNK/',
|
|
257
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
258
|
+
'z2v0tw9UDgG',
|
|
259
|
+
'ndC2nZe3nwDWBKzjtW',
|
|
260
|
+
'BgvUz3rO',
|
|
261
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
262
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
263
|
+
'DMLZAwjPBgL0Eq',
|
|
264
|
+
'DgHYzwfKu2HVCNrjza',
|
|
265
|
+
'iIbUB3qGzM91BMq',
|
|
266
|
+
'yxjYyxLcDwzMzxi',
|
|
267
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
1758
268
|
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
1759
|
-
'
|
|
1760
|
-
'
|
|
1761
|
-
'
|
|
1762
|
-
'
|
|
1763
|
-
'
|
|
1764
|
-
'
|
|
1765
|
-
'
|
|
1766
|
-
'
|
|
1767
|
-
'A2LUza',
|
|
269
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
270
|
+
'Dg9VBa',
|
|
271
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
272
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
273
|
+
'C3rYAw5N',
|
|
274
|
+
'mZGXodC1nKHirw12va',
|
|
275
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
276
|
+
'zgvZy3jPChrPB24',
|
|
1768
277
|
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1769
|
-
'
|
|
1770
|
-
'
|
|
278
|
+
'DgHYzwfKtNvTyMvY',
|
|
279
|
+
'l2zPBMLZAa',
|
|
280
|
+
'yM9KEvrLEhq',
|
|
281
|
+
'y2f0y2G',
|
|
282
|
+
'igf0DgfJAg1LBNq',
|
|
283
|
+
'y29UDgvUDc10ExbL',
|
|
284
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
285
|
+
'C2vUze1LC3nHz2u',
|
|
1771
286
|
'ywrK',
|
|
1772
|
-
'
|
|
1773
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1774
|
-
'C2HHmJu2',
|
|
1775
|
-
'ywDNCMvNyxrLswrZ',
|
|
1776
|
-
'uefuq0G',
|
|
1777
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
1778
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1779
|
-
'Bg9JywXLq29TCgfYzq',
|
|
1780
|
-
'AgfZ',
|
|
1781
|
-
'D29YA2vY',
|
|
1782
|
-
'u2vUzcbHig1LC3nHz2uUieLUihrHC2SGDgHYzwfKCYWGDMLZAwjPBgL0EsbKzwzHDwX0CYb0BYbHC2LKzsaOBgvHDMuGDw5ZzxqGzM9YihjVDxrPBMuGDxbKyxrLCYKUieLUignOyw5UzwXZl0rnCYWGDMLZAwjPBgL0EsbKzwzHDwX0CYb0BYbWDwjSAwmGkgrVig5VDcbZzxqGzxHWBgLJAxrSEsKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
1783
|
-
'zgvSzxrL',
|
|
287
|
+
'DgfYz2v0zwruyxnR',
|
|
1784
288
|
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1785
|
-
'
|
|
1786
|
-
'
|
|
1787
|
-
'
|
|
1788
|
-
'
|
|
1789
|
-
'
|
|
1790
|
-
'
|
|
289
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
290
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
291
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
292
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
293
|
+
'DMfSDwvZ',
|
|
294
|
+
'l3nLCNzLCG',
|
|
295
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
296
|
+
'BgLZDfrHC2TZ',
|
|
297
|
+
'y2XHAw0GzMfPBgvK',
|
|
298
|
+
'DgfZA051BwjLCG',
|
|
299
|
+
'sfruuca',
|
|
300
|
+
'CgfYDgLJAxbHBNq',
|
|
301
|
+
'C2f2zq',
|
|
302
|
+
'DxbSB2fKx2zPBgu',
|
|
303
|
+
'y29UDgvUDejHC2u2na',
|
|
304
|
+
'w3rHCMDLDd0',
|
|
1791
305
|
'CgfYDgLJAxbHBNrjza',
|
|
1792
|
-
'
|
|
1793
|
-
'
|
|
1794
|
-
'
|
|
1795
|
-
'CMvZDwX0',
|
|
1796
|
-
'zg9Uzq',
|
|
1797
|
-
'DgfZA0LK',
|
|
1798
|
-
'ywDNCMvNyxrLvhLWzq',
|
|
1799
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
1800
|
-
'CMvZCg9UC2u',
|
|
306
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
307
|
+
'C2vX',
|
|
308
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
1801
309
|
'ywjVCNrLza',
|
|
1802
|
-
'
|
|
1803
|
-
'
|
|
1804
|
-
'
|
|
1805
|
-
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1806
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
1807
|
-
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
1808
|
-
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
1809
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
1810
|
-
'z2v0u2vJB25KCW',
|
|
1811
|
-
'y29TCgXLDgvK',
|
|
1812
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
1813
|
-
'DxbSB2fKuhjLCgfYzxi',
|
|
1814
|
-
'CxvLDwvK',
|
|
1815
|
-
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1816
|
-
'Aw5JBhvKzxm',
|
|
1817
|
-
'BwfW',
|
|
1818
|
-
'ANnVBG',
|
|
310
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
311
|
+
'BwvZC2fNzuLK',
|
|
312
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1819
313
|
'y29UDgvUDa',
|
|
1820
|
-
'
|
|
1821
|
-
'
|
|
1822
|
-
'
|
|
1823
|
-
'
|
|
1824
|
-
'
|
|
1825
|
-
'
|
|
1826
|
-
'
|
|
1827
|
-
'
|
|
314
|
+
'Ahr0Chm6',
|
|
315
|
+
'zNjVBq',
|
|
316
|
+
'zxjYB3i',
|
|
317
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
318
|
+
'icHPzdO',
|
|
319
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
320
|
+
'EM9K',
|
|
321
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
1828
322
|
'yxjNDG',
|
|
1829
|
-
'
|
|
323
|
+
'uefuq0G',
|
|
324
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
325
|
+
'CMvHzf9OAxn0B3j5',
|
|
326
|
+
'lcbWCMv2Awv3pq',
|
|
327
|
+
'yxnPzgu',
|
|
328
|
+
'BgLTAxq',
|
|
329
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
330
|
+
'zxzLBNrtzxe',
|
|
331
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
332
|
+
'CMvZDwX0',
|
|
333
|
+
'BwvTyMvYCW',
|
|
334
|
+
'zgLZCg9ZAxrPB24',
|
|
335
|
+
'CMvJB3jK',
|
|
336
|
+
'Aw1Hz2uVD2vICa',
|
|
1830
337
|
'l3rHC2TZpW',
|
|
1831
|
-
'
|
|
1832
|
-
'
|
|
1833
|
-
'
|
|
1834
|
-
'
|
|
1835
|
-
'
|
|
1836
|
-
'
|
|
1837
|
-
'
|
|
1838
|
-
'
|
|
1839
|
-
'
|
|
1840
|
-
'
|
|
1841
|
-
'
|
|
1842
|
-
'
|
|
1843
|
-
'
|
|
1844
|
-
'
|
|
1845
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1846
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
338
|
+
'C2L6zuj5DgvZ',
|
|
339
|
+
'CxvLDwvK',
|
|
340
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
341
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
342
|
+
'6k+35Rgcia',
|
|
343
|
+
'y2HHBM5LBhm',
|
|
344
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
345
|
+
'mtKWntq0mgDtqwzoAq',
|
|
346
|
+
'BMfTzq',
|
|
347
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
348
|
+
'Aw5JBhvKzxm',
|
|
349
|
+
'yxr0ywnOBwvUDeLK',
|
|
350
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
351
|
+
'CMvZCg9UC2u',
|
|
1847
352
|
'zg06',
|
|
1848
|
-
'
|
|
1849
|
-
'
|
|
1850
|
-
'
|
|
1851
|
-
'
|
|
1852
|
-
'
|
|
1853
|
-
'
|
|
1854
|
-
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
1855
|
-
'BwvTyMvY',
|
|
353
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
354
|
+
'kg5VBMuP',
|
|
355
|
+
'mtq4mduYmJvYENHhrva',
|
|
356
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
357
|
+
'cGOTls0G',
|
|
358
|
+
'DgfZA0LK',
|
|
1856
359
|
'yxr0ywnOBwvUDhm',
|
|
1857
|
-
'
|
|
1858
|
-
'
|
|
1859
|
-
'
|
|
1860
|
-
'
|
|
1861
|
-
'
|
|
1862
|
-
'
|
|
1863
|
-
'DgHYzwfKu2HVCNrjza',
|
|
1864
|
-
'AxnbyNnVBhv0zq',
|
|
1865
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
1866
|
-
'DMfSDwvZ',
|
|
1867
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
1868
|
-
'AxnbCNjHEq',
|
|
1869
|
-
'ywDLBNrjza',
|
|
360
|
+
'C2v0',
|
|
361
|
+
'yMfZzw5HBwu',
|
|
362
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
363
|
+
'DgHYzwfKswq',
|
|
364
|
+
'Bg93',
|
|
365
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
1870
366
|
'yMvMB3jL',
|
|
1871
|
-
'
|
|
1872
|
-
'
|
|
1873
|
-
'
|
|
367
|
+
'Dg9KBW',
|
|
368
|
+
'yxjYyxK',
|
|
369
|
+
'ig1LC3nHz2u9',
|
|
1874
370
|
'DgfZA19Pza',
|
|
1875
|
-
'
|
|
1876
|
-
'
|
|
1877
|
-
'
|
|
1878
|
-
'
|
|
1879
|
-
'
|
|
1880
|
-
'
|
|
371
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
372
|
+
'DgHYzwfK',
|
|
373
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
374
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
375
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
376
|
+
'C2HHmJu2',
|
|
377
|
+
'D29YA2vYCW',
|
|
378
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
379
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
380
|
+
'AgLNAa',
|
|
381
|
+
'lsaJ',
|
|
382
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
383
|
+
'z2v0vgLTzq',
|
|
384
|
+
'iJOGC3rHDhvZpq',
|
|
385
|
+
'C3rHDhvZ',
|
|
386
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
387
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
388
|
+
'zMLSDgvY',
|
|
389
|
+
'C2vUzgvYvhLWzq',
|
|
390
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1881
391
|
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1882
|
-
'
|
|
1883
|
-
'
|
|
1884
|
-
'zNjVBq',
|
|
1885
|
-
'DxbSB2fKx2zPBgu',
|
|
392
|
+
'Ahr0CdO',
|
|
393
|
+
'igLUia',
|
|
1886
394
|
'zgvJAxnPB25Z',
|
|
1887
|
-
'
|
|
1888
|
-
'
|
|
395
|
+
'Aw1Hz2uVCg5N',
|
|
396
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
397
|
+
'pgvTChr5pG',
|
|
398
|
+
'ywDLBNrjza',
|
|
399
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
400
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
401
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
402
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
403
|
+
'lMjPBG',
|
|
404
|
+
'DxbSB2fKrMLSzq',
|
|
405
|
+
'DhjPBq',
|
|
1889
406
|
'l3n0yxj0',
|
|
1890
|
-
'
|
|
1891
|
-
'
|
|
1892
|
-
'
|
|
1893
|
-
'
|
|
1894
|
-
'
|
|
1895
|
-
'
|
|
1896
|
-
'
|
|
1897
|
-
'
|
|
1898
|
-
'zw50CMLLCW',
|
|
1899
|
-
'D3m6',
|
|
1900
|
-
'ig1ZzZ0',
|
|
407
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
408
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
409
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
410
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
411
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
412
|
+
'y3jLyxrLzef0',
|
|
413
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
414
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
1901
415
|
'C2vUzgvYtMfTzq',
|
|
1902
|
-
'
|
|
1903
|
-
'
|
|
1904
|
-
'
|
|
1905
|
-
'
|
|
1906
|
-
'
|
|
1907
|
-
'
|
|
1908
|
-
'
|
|
1909
|
-
'
|
|
1910
|
-
'
|
|
1911
|
-
'
|
|
1912
|
-
'
|
|
1913
|
-
'
|
|
1914
|
-
'
|
|
1915
|
-
'
|
|
1916
|
-
'
|
|
1917
|
-
'
|
|
1918
|
-
'
|
|
1919
|
-
'
|
|
1920
|
-
'
|
|
1921
|
-
'z2v0twLUDxrLCW',
|
|
1922
|
-
'mZK1odG0oe9VzwPbEG',
|
|
1923
|
-
'lcbWCMv2Awv3pq',
|
|
1924
|
-
'B2jQzwn0',
|
|
1925
|
-
'CMvZDwX0sNnVBG',
|
|
1926
|
-
'Aw5FChjVz3jLC3m',
|
|
1927
|
-
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
1928
|
-
'CNvUBMLUzW',
|
|
416
|
+
'DhLWzq',
|
|
417
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
418
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
419
|
+
'zMv0y2HjBxbS',
|
|
420
|
+
'iokaLca',
|
|
421
|
+
'BwvTyMvY',
|
|
422
|
+
'Agv4',
|
|
423
|
+
'zw51Bq',
|
|
424
|
+
'l2nVBNrLBNq',
|
|
425
|
+
'Cgf5Bg9HzePZB24',
|
|
426
|
+
'zM9Yy2vszwzYzxnO',
|
|
427
|
+
'z2v0rNvSBfLLyxi',
|
|
428
|
+
'ywDLBNrZ',
|
|
429
|
+
'CMvHzeHPC3rVCNK',
|
|
430
|
+
'zMLSzv9WyxrO',
|
|
431
|
+
'zMfPBgvK',
|
|
432
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
433
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
434
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1929
435
|
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1930
|
-
'
|
|
1931
|
-
'
|
|
1932
|
-
'
|
|
1933
|
-
'
|
|
1934
|
-
'
|
|
1935
|
-
'
|
|
1936
|
-
'
|
|
1937
|
-
'
|
|
1938
|
-
'
|
|
1939
|
-
'
|
|
1940
|
-
'
|
|
1941
|
-
'
|
|
1942
|
-
'
|
|
1943
|
-
'
|
|
1944
|
-
'
|
|
1945
|
-
'
|
|
436
|
+
'BwvZC2fNzxm',
|
|
437
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
438
|
+
'CM9VDe1LC3nHz2vjza',
|
|
439
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
440
|
+
'BwfW',
|
|
441
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
442
|
+
'zMLSzw5HBwu',
|
|
443
|
+
'l3rHC2TZ',
|
|
444
|
+
'ls1ZzxnZAw9UlwLK',
|
|
445
|
+
'C2vUzf9TzxnZywDL',
|
|
446
|
+
'nJrWA2nnBuu',
|
|
447
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
448
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
449
|
+
'Dgv4Dc9JC3y',
|
|
450
|
+
'v29YA2vYici',
|
|
451
|
+
'kgXLz2fJEsK',
|
|
452
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
453
|
+
'BM93',
|
|
454
|
+
'Dg9gAxHLza',
|
|
455
|
+
'ChvZAa',
|
|
456
|
+
'Dw5JBgfPBvrHC2S',
|
|
457
|
+
'Bwv0yq',
|
|
458
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
459
|
+
'BgLZDfnLCNzLCG',
|
|
1946
460
|
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
1947
|
-
'
|
|
1948
|
-
'
|
|
1949
|
-
'
|
|
461
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
462
|
+
'ywjVCNq',
|
|
463
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
464
|
+
'mti4mtyYn1fktxrLwa',
|
|
465
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
466
|
+
'Dg9mB3DLCKnHC2u',
|
|
467
|
+
'A2LUza',
|
|
468
|
+
'CNvUswq',
|
|
469
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
470
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
471
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
472
|
+
'C2XPy2u',
|
|
1950
473
|
'Dg9ju09tDhjPBMC',
|
|
1951
|
-
'
|
|
1952
|
-
'
|
|
1953
|
-
'
|
|
1954
|
-
'
|
|
1955
|
-
'
|
|
1956
|
-
'
|
|
1957
|
-
'
|
|
1958
|
-
'
|
|
1959
|
-
'
|
|
1960
|
-
'
|
|
1961
|
-
'
|
|
1962
|
-
'
|
|
474
|
+
'y3vYC29Y',
|
|
475
|
+
'DgfYz2v0zwq',
|
|
476
|
+
'DgvZDa',
|
|
477
|
+
'DgfZAW',
|
|
478
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
479
|
+
'DxnLCG',
|
|
480
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
481
|
+
'l3vWBg9Hza',
|
|
482
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
483
|
+
'AgvHzgvYCW',
|
|
484
|
+
'xsba',
|
|
485
|
+
'Dgv4Da',
|
|
486
|
+
'y2XPzw50',
|
|
487
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
488
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
489
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
490
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
1963
491
|
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1964
|
-
'
|
|
1965
|
-
'
|
|
492
|
+
'DxjNzw50',
|
|
493
|
+
'D3m6',
|
|
494
|
+
'ue9tva',
|
|
1966
495
|
'DgHYzwfKvgfYz2v0',
|
|
1967
|
-
'
|
|
1968
|
-
'
|
|
1969
|
-
'
|
|
1970
|
-
'
|
|
1971
|
-
'
|
|
1972
|
-
'
|
|
1973
|
-
'
|
|
1974
|
-
'
|
|
1975
|
-
'
|
|
1976
|
-
'
|
|
496
|
+
'D29YA2vYsgfUzg9MzG',
|
|
497
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
498
|
+
'Aw1Hz2uVz2LM',
|
|
499
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
500
|
+
'y2HHBM5LBa',
|
|
501
|
+
'w3nLCt0',
|
|
502
|
+
'iYmJiefNzw50CW',
|
|
503
|
+
'iYmJieH1BwfUCW',
|
|
504
|
+
'BgLZDf9Zzxj2zxi',
|
|
505
|
+
'ihrPBwu9',
|
|
506
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
507
|
+
'lIbnzxnZywDLieLeoIa',
|
|
508
|
+
'ChvIBgLJ',
|
|
509
|
+
'ywDNCMvNyxrLswrZ',
|
|
510
|
+
'y3jLyxrLvgfZA3m',
|
|
511
|
+
'Axnoyu4',
|
|
512
|
+
'AM9PBG',
|
|
513
|
+
'AxnjBNrLz2vY',
|
|
514
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
515
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
516
|
+
'B2jQzwn0'
|
|
517
|
+
];
|
|
518
|
+
_0x19b3 = function () {
|
|
519
|
+
return _0x1ce982;
|
|
520
|
+
};
|
|
521
|
+
return _0x19b3();
|
|
522
|
+
}
|
|
523
|
+
function parseThreadParts(_0x1749b2) {
|
|
524
|
+
const _0x5d43b8 = { _0x8ef39: 0x18d }, _0x2134c3 = _0x1bf962, _0x1fc120 = _0x1749b2[_0x2134c3(_0x5d43b8._0x8ef39)](':');
|
|
525
|
+
if (_0x1fc120['length'] < 0x1 || _0x1fc120[_0x2134c3(0x1da)] > 0x2)
|
|
526
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
527
|
+
return {
|
|
528
|
+
'channelName': ensureSegment(_0x1fc120[0x0] ?? ''),
|
|
529
|
+
'threadShortId': _0x1fc120[0x1] ? ensureSegment(_0x1fc120[0x1]) : null
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
function parseTarget(_0x3125ad) {
|
|
533
|
+
const _0x325887 = {
|
|
534
|
+
_0x51fe2a: 0x1de,
|
|
535
|
+
_0xdeb717: 0x14d,
|
|
536
|
+
_0x1a9b20: 0x13c,
|
|
537
|
+
_0x177f41: 0x14d,
|
|
538
|
+
_0xa128df: 0x1a0,
|
|
539
|
+
_0x53b050: 0x236,
|
|
540
|
+
_0x31d3d3: 0x1c3,
|
|
541
|
+
_0x28f91b: 0x14d,
|
|
542
|
+
_0x2f33b5: 0x1de,
|
|
543
|
+
_0x565939: 0x24a,
|
|
544
|
+
_0x238bdd: 0x1de
|
|
545
|
+
}, _0xb0cdc2 = _0x1bf962, _0x1379a4 = _0x3125ad['trim']();
|
|
546
|
+
if (!_0x1379a4)
|
|
547
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
548
|
+
if (_0x1379a4['startsWith']('#')) {
|
|
549
|
+
const _0x13d418 = parseThreadParts(_0x1379a4[_0xb0cdc2(0x120)](0x1)), _0x315ce2 = '#' + _0x13d418['channelName'];
|
|
550
|
+
if (!_0x13d418[_0xb0cdc2(_0x325887._0x51fe2a)])
|
|
551
|
+
return {
|
|
552
|
+
'channelName': _0x13d418[_0xb0cdc2(_0x325887._0xdeb717)],
|
|
553
|
+
'channelTarget': _0x315ce2,
|
|
554
|
+
'kind': _0xb0cdc2(_0x325887._0x1a9b20),
|
|
555
|
+
'target': _0x315ce2
|
|
556
|
+
};
|
|
557
|
+
return {
|
|
558
|
+
'channelName': _0x13d418[_0xb0cdc2(_0x325887._0x177f41)],
|
|
559
|
+
'channelTarget': _0x315ce2,
|
|
560
|
+
'kind': 'thread',
|
|
561
|
+
'target': _0x315ce2 + ':' + _0x13d418[_0xb0cdc2(0x1de)],
|
|
562
|
+
'threadShortId': _0x13d418[_0xb0cdc2(0x1de)]
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
if (_0x1379a4[_0xb0cdc2(_0x325887._0xa128df)](_0xb0cdc2(_0x325887._0x53b050))) {
|
|
566
|
+
const _0x5e910d = parseThreadParts(_0x1379a4['slice'](0x3));
|
|
567
|
+
if (!_0x5e910d['channelName'][_0xb0cdc2(0x1a0)](_0xb0cdc2(_0x325887._0x31d3d3)))
|
|
568
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
569
|
+
const _0x1e96e3 = _0xb0cdc2(_0x325887._0x53b050) + _0x5e910d[_0xb0cdc2(_0x325887._0x28f91b)];
|
|
570
|
+
if (!_0x5e910d[_0xb0cdc2(_0x325887._0x2f33b5)])
|
|
571
|
+
return {
|
|
572
|
+
'channelName': _0x5e910d[_0xb0cdc2(_0x325887._0x28f91b)],
|
|
573
|
+
'channelTarget': _0x1e96e3,
|
|
574
|
+
'kind': 'channel',
|
|
575
|
+
'target': _0x1e96e3
|
|
576
|
+
};
|
|
577
|
+
return {
|
|
578
|
+
'channelName': _0x5e910d[_0xb0cdc2(0x14d)],
|
|
579
|
+
'channelTarget': _0x1e96e3,
|
|
580
|
+
'kind': _0xb0cdc2(_0x325887._0x565939),
|
|
581
|
+
'target': _0x1e96e3 + ':' + _0x5e910d[_0xb0cdc2(_0x325887._0x238bdd)],
|
|
582
|
+
'threadShortId': _0x5e910d['threadShortId']
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
586
|
+
}
|
|
587
|
+
function asErrorMessage(_0x43395f, _0x3d5a21) {
|
|
588
|
+
const _0x33b1fd = { _0x3932f5: 0xdd }, _0xde7551 = _0x1bf962;
|
|
589
|
+
if (typeof _0x43395f === _0xde7551(0x1e7) && _0x43395f[_0xde7551(_0x33b1fd._0x3932f5)]())
|
|
590
|
+
return _0x43395f;
|
|
591
|
+
return _0x3d5a21;
|
|
592
|
+
}
|
|
593
|
+
function asRecord(_0x5a085e) {
|
|
594
|
+
return typeof _0x5a085e === 'object' && _0x5a085e !== null ? _0x5a085e : {};
|
|
595
|
+
}
|
|
596
|
+
function stableStringify(_0x58fd31) {
|
|
597
|
+
const _0x3e5a4e = {
|
|
598
|
+
_0x518474: 0x18b,
|
|
599
|
+
_0x59f225: 0x197,
|
|
600
|
+
_0x4e1ed6: 0x148,
|
|
601
|
+
_0x382375: 0x15a
|
|
602
|
+
}, _0x48a42d = _0x1bf962;
|
|
603
|
+
if (_0x58fd31 === null || typeof _0x58fd31 !== 'object')
|
|
604
|
+
return JSON[_0x48a42d(_0x3e5a4e._0x518474)](_0x58fd31);
|
|
605
|
+
if (Array[_0x48a42d(_0x3e5a4e._0x59f225)](_0x58fd31))
|
|
606
|
+
return '[' + _0x58fd31['map'](_0x9d82bb => stableStringify(_0x9d82bb))[_0x48a42d(_0x3e5a4e._0x4e1ed6)](',') + ']';
|
|
607
|
+
const _0x4783a8 = Object['entries'](_0x58fd31)[_0x48a42d(0xcc)](([, _0x31c1d4]) => _0x31c1d4 !== void 0x0)[_0x48a42d(_0x3e5a4e._0x382375)](([_0x4bc661], [_0x288f50]) => _0x4bc661[_0x48a42d(0x1ce)](_0x288f50))[_0x48a42d(0x100)](([_0x4ed8c4, _0x3867d4]) => JSON[_0x48a42d(0x18b)](_0x4ed8c4) + ':' + stableStringify(_0x3867d4));
|
|
608
|
+
return '{' + _0x4783a8[_0x48a42d(0x148)](',') + '}';
|
|
609
|
+
}
|
|
610
|
+
function createHeaders(_0x90f9d) {
|
|
611
|
+
const _0x3450ea = _0x1bf962;
|
|
612
|
+
return {
|
|
613
|
+
'Content-Type': _0x3450ea(0x24b),
|
|
614
|
+
'x-daemon-api-key': _0x90f9d
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
function toHttpBaseUrl(_0x416a06) {
|
|
618
|
+
const _0x2429a2 = {
|
|
619
|
+
_0x32666d: 0xd0,
|
|
620
|
+
_0x962988: 0x1d2,
|
|
621
|
+
_0x5be59a: 0x210
|
|
622
|
+
}, _0x183799 = _0x1bf962, _0x7238cc = new URL(_0x416a06);
|
|
623
|
+
if (_0x7238cc[_0x183799(0x1d5)] === _0x183799(0x135))
|
|
624
|
+
_0x7238cc[_0x183799(0x1d5)] = _0x183799(_0x2429a2._0x32666d);
|
|
625
|
+
else
|
|
626
|
+
_0x7238cc[_0x183799(0x1d5)] === _0x183799(_0x2429a2._0x962988) && (_0x7238cc['protocol'] = _0x183799(_0x2429a2._0x5be59a));
|
|
627
|
+
return _0x7238cc['toString']()[_0x183799(0x1cf)](/\/$/, '');
|
|
628
|
+
}
|
|
629
|
+
function isMentionBoundary(_0x3705b7) {
|
|
630
|
+
return !_0x3705b7 || /\s|[([{'",。!?、:;]/['test'](_0x3705b7);
|
|
631
|
+
}
|
|
632
|
+
function isMentionTerminal(_0x42af9d) {
|
|
633
|
+
const _0x46ed1e = _0x1bf962;
|
|
634
|
+
return !_0x42af9d || /\s|[)\]}'",。!?、:;,.!?]/[_0x46ed1e(0x124)](_0x42af9d);
|
|
635
|
+
}
|
|
636
|
+
function buildMatchableEntries(_0x43d4be) {
|
|
637
|
+
const _0x57a619 = {
|
|
638
|
+
_0x45c61d: 0x1a8,
|
|
639
|
+
_0x30a4a9: 0x10f,
|
|
640
|
+
_0x2ed8ce: 0x230,
|
|
641
|
+
_0x495ce8: 0xce,
|
|
642
|
+
_0x53fdab: 0x10f
|
|
643
|
+
}, _0x426c6c = _0x1bf962, _0x36a97b = [];
|
|
644
|
+
for (const _0x45f2ed of [
|
|
645
|
+
..._0x43d4be['agents'],
|
|
646
|
+
..._0x43d4be[_0x426c6c(_0x57a619._0x45c61d)]
|
|
647
|
+
]) {
|
|
648
|
+
_0x36a97b[_0x426c6c(_0x57a619._0x30a4a9)]({
|
|
649
|
+
'matchName': _0x45f2ed[_0x426c6c(_0x57a619._0x2ed8ce)],
|
|
650
|
+
'matchNameLower': _0x45f2ed[_0x426c6c(0x230)][_0x426c6c(_0x57a619._0x495ce8)](),
|
|
651
|
+
'participantId': _0x45f2ed['id']
|
|
652
|
+
}), _0x45f2ed['id'] !== _0x45f2ed[_0x426c6c(0x230)] && _0x36a97b[_0x426c6c(_0x57a619._0x53fdab)]({
|
|
653
|
+
'matchName': _0x45f2ed['id'],
|
|
654
|
+
'matchNameLower': _0x45f2ed['id']['toLocaleLowerCase'](),
|
|
655
|
+
'participantId': _0x45f2ed['id']
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
return _0x36a97b;
|
|
659
|
+
}
|
|
660
|
+
function extractMentionedParticipantIds(_0x3bd0d9, _0x2cf5d) {
|
|
661
|
+
const _0xfbc42e = {
|
|
662
|
+
_0xf4249c: 0x1da,
|
|
663
|
+
_0x5aab39: 0x120,
|
|
664
|
+
_0x57cef7: 0x170,
|
|
665
|
+
_0x1cbcfb: 0x1b8,
|
|
666
|
+
_0x48728b: 0x207,
|
|
667
|
+
_0x5b0afa: 0x1f4
|
|
668
|
+
}, _0x3322e1 = {
|
|
669
|
+
_0x5a876b: 0x1a0,
|
|
670
|
+
_0x2533d5: 0x234,
|
|
671
|
+
_0x49b9ee: 0x1d3
|
|
672
|
+
}, _0x4c55f6 = _0x1bf962, _0x3bf9ed = buildMatchableEntries(_0x2cf5d)[_0x4c55f6(0x15a)]((_0xe21bf, _0x41dc5a) => _0x41dc5a['matchName'][_0x4c55f6(0x1da)] - _0xe21bf[_0x4c55f6(0x1d3)]['length']), _0x3c7c69 = [], _0x2b886b = new Set();
|
|
673
|
+
for (let _0x5960ca = 0x0; _0x5960ca < _0x3bd0d9[_0x4c55f6(_0xfbc42e._0xf4249c)]; _0x5960ca += 0x1) {
|
|
674
|
+
if (_0x3bd0d9[_0x5960ca] !== '@' || !isMentionBoundary(_0x3bd0d9[_0x5960ca - 0x1]))
|
|
675
|
+
continue;
|
|
676
|
+
const _0x137174 = _0x3bd0d9[_0x4c55f6(_0xfbc42e._0x5aab39)](_0x5960ca + 0x1), _0x281ad6 = _0x137174[_0x4c55f6(0xce)](), _0x249bbf = _0x3bf9ed[_0x4c55f6(_0xfbc42e._0x57cef7)](_0x3324fe => {
|
|
677
|
+
const _0x4939b6 = _0x4c55f6;
|
|
678
|
+
if (!_0x281ad6[_0x4939b6(_0x3322e1._0x5a876b)](_0x3324fe[_0x4939b6(_0x3322e1._0x2533d5)]))
|
|
679
|
+
return ![];
|
|
680
|
+
return isMentionTerminal(_0x137174[_0x3324fe[_0x4939b6(_0x3322e1._0x49b9ee)]['length']]);
|
|
681
|
+
});
|
|
682
|
+
if (!_0x249bbf || _0x2b886b[_0x4c55f6(_0xfbc42e._0x1cbcfb)](_0x249bbf[_0x4c55f6(_0xfbc42e._0x48728b)]))
|
|
683
|
+
continue;
|
|
684
|
+
_0x2b886b[_0x4c55f6(_0xfbc42e._0x5b0afa)](_0x249bbf[_0x4c55f6(_0xfbc42e._0x48728b)]), _0x3c7c69[_0x4c55f6(0x10f)](_0x249bbf[_0x4c55f6(_0xfbc42e._0x48728b)]), _0x5960ca += _0x249bbf[_0x4c55f6(0x1d3)][_0x4c55f6(0x1da)];
|
|
685
|
+
}
|
|
686
|
+
return _0x3c7c69;
|
|
687
|
+
}
|
|
688
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
689
|
+
function _0x3fbb(_0x26e684, _0x5030a9) {
|
|
690
|
+
_0x26e684 = _0x26e684 - 0xbf;
|
|
691
|
+
const _0x19b383 = _0x19b3();
|
|
692
|
+
let _0x3fbb8b = _0x19b383[_0x26e684];
|
|
693
|
+
if (_0x3fbb['HbFSVU'] === undefined) {
|
|
694
|
+
var _0xcce733 = function (_0x1bcccd) {
|
|
695
|
+
const _0x488d63 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
696
|
+
let _0x1ca7bc = '', _0x1e3ab2 = '';
|
|
697
|
+
for (let _0x2db4e0 = 0x0, _0x191e5b, _0x114aea, _0x4e2ba1 = 0x0; _0x114aea = _0x1bcccd['charAt'](_0x4e2ba1++); ~_0x114aea && (_0x191e5b = _0x2db4e0 % 0x4 ? _0x191e5b * 0x40 + _0x114aea : _0x114aea, _0x2db4e0++ % 0x4) ? _0x1ca7bc += String['fromCharCode'](0xff & _0x191e5b >> (-0x2 * _0x2db4e0 & 0x6)) : 0x0) {
|
|
698
|
+
_0x114aea = _0x488d63['indexOf'](_0x114aea);
|
|
699
|
+
}
|
|
700
|
+
for (let _0x230282 = 0x0, _0x101a1d = _0x1ca7bc['length']; _0x230282 < _0x101a1d; _0x230282++) {
|
|
701
|
+
_0x1e3ab2 += '%' + ('00' + _0x1ca7bc['charCodeAt'](_0x230282)['toString'](0x10))['slice'](-0x2);
|
|
702
|
+
}
|
|
703
|
+
return decodeURIComponent(_0x1e3ab2);
|
|
704
|
+
};
|
|
705
|
+
_0x3fbb['IRBoLt'] = _0xcce733, _0x3fbb['xnyfgj'] = {}, _0x3fbb['HbFSVU'] = !![];
|
|
706
|
+
}
|
|
707
|
+
const _0xf72c8a = _0x19b383[0x0], _0x324f4f = _0x26e684 + _0xf72c8a, _0x407199 = _0x3fbb['xnyfgj'][_0x324f4f];
|
|
708
|
+
return !_0x407199 ? (_0x3fbb8b = _0x3fbb['IRBoLt'](_0x3fbb8b), _0x3fbb['xnyfgj'][_0x324f4f] = _0x3fbb8b) : _0x3fbb8b = _0x407199, _0x3fbb8b;
|
|
709
|
+
}
|
|
710
|
+
function anySignal(..._0x591d82) {
|
|
711
|
+
const _0x3fb346 = { _0x257419: 0x116 }, _0x40499c = _0x1bf962, _0x4c06ce = new AbortController();
|
|
712
|
+
for (const _0x2044a5 of _0x591d82) {
|
|
713
|
+
if (_0x2044a5[_0x40499c(0x20b)])
|
|
714
|
+
return _0x4c06ce[_0x40499c(_0x3fb346._0x257419)](_0x2044a5[_0x40499c(0x196)]), _0x4c06ce[_0x40499c(0x19e)];
|
|
715
|
+
_0x2044a5[_0x40499c(0x139)](_0x40499c(_0x3fb346._0x257419), () => _0x4c06ce[_0x40499c(0x116)](_0x2044a5[_0x40499c(0x196)]), {
|
|
716
|
+
'once': !![],
|
|
717
|
+
'signal': _0x4c06ce['signal']
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
return _0x4c06ce[_0x40499c(0x19e)];
|
|
721
|
+
}
|
|
722
|
+
function createInternalAgentClient(_0x44dccf) {
|
|
723
|
+
const _0x42f7bf = {
|
|
724
|
+
_0x31a65e: 0x130,
|
|
725
|
+
_0x72d532: 0xf9,
|
|
726
|
+
_0x339ac8: 0xdd,
|
|
727
|
+
_0x4fa33b: 0x16a
|
|
728
|
+
}, _0x26ac23 = {
|
|
729
|
+
_0x4f43c6: 0x23e,
|
|
730
|
+
_0x347ddf: 0x173,
|
|
731
|
+
_0xd3f0fd: 0x167,
|
|
732
|
+
_0x37261e: 0x209,
|
|
733
|
+
_0x528318: 0x191,
|
|
734
|
+
_0x4bb46f: 0xf1,
|
|
735
|
+
_0x340ab1: 0x1c5,
|
|
736
|
+
_0x4ba328: 0x1e7,
|
|
737
|
+
_0x151897: 0xfe,
|
|
738
|
+
_0x4d390a: 0x1ec,
|
|
739
|
+
_0x520d40: 0x149,
|
|
740
|
+
_0x235da3: 0x1ec,
|
|
741
|
+
_0x12aa21: 0x145,
|
|
742
|
+
_0x36b191: 0x1fb,
|
|
743
|
+
_0x7eb4f2: 0x11b,
|
|
744
|
+
_0x5eeb9e: 0x236,
|
|
745
|
+
_0x382398: 0x15b,
|
|
746
|
+
_0x392641: 0x1da,
|
|
747
|
+
_0x4d84f7: 0xfc,
|
|
748
|
+
_0x208101: 0x1c2,
|
|
749
|
+
_0x56d743: 0xe4,
|
|
750
|
+
_0x4d125e: 0x112,
|
|
751
|
+
_0x30b317: 0x121,
|
|
752
|
+
_0x37c689: 0xcc
|
|
753
|
+
}, _0x5197d5 = {
|
|
754
|
+
_0x2ea6f0: 0x1ab,
|
|
755
|
+
_0x4905b0: 0x244
|
|
756
|
+
}, _0x1d337a = {
|
|
757
|
+
_0x14e19e: 0x1e3,
|
|
758
|
+
_0x2cdf93: 0xf0,
|
|
759
|
+
_0x14db2e: 0x167,
|
|
760
|
+
_0x44a05e: 0x19e,
|
|
761
|
+
_0x3925eb: 0xc9,
|
|
762
|
+
_0x4ce0ff: 0x1e0
|
|
763
|
+
}, _0xb16b97 = {
|
|
764
|
+
_0x207e63: 0x241,
|
|
765
|
+
_0x26ac72: 0x1f6,
|
|
766
|
+
_0x439233: 0x205,
|
|
767
|
+
_0x5f3900: 0x102,
|
|
768
|
+
_0x2179fa: 0x136,
|
|
769
|
+
_0x299a7c: 0x1e9
|
|
770
|
+
}, _0x56466f = {
|
|
771
|
+
_0x5bbe9d: 0x1f6,
|
|
772
|
+
_0x4ca894: 0x18b,
|
|
773
|
+
_0x38d5be: 0x136
|
|
774
|
+
}, _0x536dd3 = { _0x9fa46c: 0x19a }, _0x484538 = {
|
|
775
|
+
_0x5adf45: 0x1a4,
|
|
776
|
+
_0x246d8f: 0x18b,
|
|
777
|
+
_0x3e4a84: 0x136
|
|
778
|
+
}, _0x446692 = {
|
|
779
|
+
_0x5abe4f: 0x23e,
|
|
780
|
+
_0x333570: 0x13c,
|
|
781
|
+
_0x1039d5: 0xc9,
|
|
782
|
+
_0x2a7374: 0x1f6,
|
|
783
|
+
_0x480495: 0x227
|
|
784
|
+
}, _0xec4537 = {
|
|
785
|
+
_0xd294a6: 0xc9,
|
|
786
|
+
_0xc365f: 0x136
|
|
787
|
+
}, _0x283a68 = {
|
|
788
|
+
_0x165c84: 0x18b,
|
|
789
|
+
_0x2e8811: 0x11c
|
|
790
|
+
}, _0xb4c1b9 = {
|
|
791
|
+
_0x46a919: 0x142,
|
|
792
|
+
_0x20a4c4: 0x18b,
|
|
793
|
+
_0x148656: 0x136
|
|
794
|
+
}, _0x59e08d = { _0x2846b0: 0x17e }, _0x551915 = {
|
|
795
|
+
_0x3fc97c: 0x20f,
|
|
796
|
+
_0x5717e6: 0x1f6,
|
|
797
|
+
_0x25aa35: 0x1da,
|
|
798
|
+
_0xc2aaca: 0x241,
|
|
799
|
+
_0x1fcb76: 0x1dd,
|
|
800
|
+
_0x4196cd: 0x17e
|
|
801
|
+
}, _0x381726 = {
|
|
802
|
+
_0x53310e: 0x21e,
|
|
803
|
+
_0x2a61f4: 0x241,
|
|
804
|
+
_0x2017fd: 0x23e,
|
|
805
|
+
_0x5ebb44: 0x244,
|
|
806
|
+
_0x29e93f: 0x1ab,
|
|
807
|
+
_0x1b459c: 0x1ab,
|
|
808
|
+
_0x1bf176: 0xd6,
|
|
809
|
+
_0x177d7f: 0x213,
|
|
810
|
+
_0x35c5dc: 0x111,
|
|
811
|
+
_0x50c39a: 0x111
|
|
812
|
+
}, _0x3eac0a = { _0x40cae9: 0x207 }, _0x112c72 = {
|
|
813
|
+
_0x3f019b: 0x24a,
|
|
814
|
+
_0x18dee0: 0x213,
|
|
815
|
+
_0x2438f3: 0xfe,
|
|
816
|
+
_0x59dc70: 0x1de,
|
|
817
|
+
_0x103a51: 0x241,
|
|
818
|
+
_0x3f8e45: 0x1de
|
|
819
|
+
}, _0x2d1d6b = {
|
|
820
|
+
_0x46c518: 0x1ec,
|
|
821
|
+
_0x1c4ece: 0xfe,
|
|
822
|
+
_0x304329: 0x213,
|
|
823
|
+
_0x382cdc: 0x241,
|
|
824
|
+
_0x2d8a5d: 0x120
|
|
825
|
+
}, _0x31bb53 = { _0x196403: 0xf2 }, _0x2ee169 = {
|
|
826
|
+
_0xddcc7f: 0xd6,
|
|
827
|
+
_0x339fc2: 0x18b,
|
|
828
|
+
_0x4fed3e: 0x136,
|
|
829
|
+
_0x29c7ba: 0x17e,
|
|
830
|
+
_0xf80f5f: 0x213,
|
|
831
|
+
_0x1e9a65: 0x125
|
|
832
|
+
}, _0x497d11 = {
|
|
833
|
+
_0x2364db: 0x215,
|
|
834
|
+
_0x1020e1: 0x18b,
|
|
835
|
+
_0x412edb: 0x24b,
|
|
836
|
+
_0x3bbe1f: 0x136,
|
|
837
|
+
_0x1ce408: 0xc9
|
|
838
|
+
}, _0x3889cf = {
|
|
839
|
+
_0x3486a3: 0xcf,
|
|
840
|
+
_0x578086: 0x18b,
|
|
841
|
+
_0x350a1f: 0x219
|
|
842
|
+
}, _0x4bcc63 = {
|
|
843
|
+
_0x2ca1dd: 0x19e,
|
|
844
|
+
_0x4ec5d5: 0x212,
|
|
845
|
+
_0x32c084: 0x201
|
|
846
|
+
}, _0x5eecf3 = {
|
|
847
|
+
_0x5b7f87: 0x19e,
|
|
848
|
+
_0x2e02c9: 0x1bd,
|
|
849
|
+
_0xc90234: 0x212
|
|
850
|
+
}, _0x8ec77 = {
|
|
851
|
+
_0x5acf22: 0x221,
|
|
852
|
+
_0x328a9d: 0x221,
|
|
853
|
+
_0x2223e6: 0xdd,
|
|
854
|
+
_0x772e26: 0x10d,
|
|
855
|
+
_0x4ecb34: 0xc0,
|
|
856
|
+
_0x59ea5b: 0xee,
|
|
857
|
+
_0x531046: 0x1c2
|
|
858
|
+
}, _0x1f9cbb = {
|
|
859
|
+
_0x3204c5: 0x1e0,
|
|
860
|
+
_0x55bc8a: 0x173,
|
|
861
|
+
_0xbc0105: 0x179
|
|
862
|
+
}, _0xbe2db = {
|
|
863
|
+
_0x1a236d: 0x188,
|
|
864
|
+
_0x10149c: 0x1ee,
|
|
865
|
+
_0x5ecfe7: 0x235,
|
|
866
|
+
_0x142c22: 0xc9,
|
|
867
|
+
_0xd2b329: 0x1d7,
|
|
868
|
+
_0x18ef2a: 0x21c
|
|
869
|
+
}, _0x39a66d = _0x1bf962, _0x32b2c2 = _0x44dccf[_0x39a66d(0xeb)] ?? fetch, _0x252e4f = _0x44dccf[_0x39a66d(0x119)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x48e06e = typeof _0x44dccf[_0x39a66d(_0x42f7bf._0x31a65e)] === _0x39a66d(0x186) && _0x44dccf[_0x39a66d(0x130)] > 0x0 ? _0x44dccf[_0x39a66d(0x130)] : 0x0, _0xe3bd7b = _0x44dccf[_0x39a66d(_0x42f7bf._0x72d532)]?.[_0x39a66d(_0x42f7bf._0x339ac8)]() || void 0x0, _0xb89eae = _0x44dccf[_0x39a66d(0x15d)]?.[_0x39a66d(0xdd)]() || void 0x0, _0x28e560 = _0x44dccf[_0x39a66d(0x1dc)] === !![], _0x155fb9 = _0x44dccf[_0x39a66d(_0x42f7bf._0x4fa33b)]?.[_0x39a66d(0xdd)]() || void 0x0, _0x594eb8 = _0x44dccf[_0x39a66d(0x108)]?.['trim']() || void 0x0, _0x543907 = createHeaders(_0x44dccf['daemonApiKey']), _0x475c24 = toHttpBaseUrl(_0x44dccf[_0x39a66d(0x195)]);
|
|
870
|
+
let _0x26a8ae = null;
|
|
871
|
+
const _0x159a1a = new Map();
|
|
872
|
+
let _0x1adced = _0x48e06e, _0x53f57e = _0x48e06e;
|
|
873
|
+
function _0x3faaef(_0x365386) {
|
|
874
|
+
const _0x52c173 = _0x39a66d, _0x97ab55 = _0x365386[_0x52c173(0x235)][_0x52c173(0x12b)]['get'](_0x52c173(0x1f1)) ?? _0x52c173(_0xbe2db._0x1a236d), _0x36407b = _0x365386[_0x52c173(_0xbe2db._0x10149c)]['trim']()[_0x52c173(0x1cf)](/\s+/g, '\x20')[_0x52c173(0x120)](0x0, 0x78) || _0x52c173(0xd5);
|
|
875
|
+
return _0x52c173(0x22c) + _0x365386['requestUrl'] + _0x52c173(0x1cd) + _0x365386[_0x52c173(_0xbe2db._0x5ecfe7)][_0x52c173(_0xbe2db._0x142c22)] + _0x52c173(_0xbe2db._0xd2b329) + _0x97ab55 + _0x52c173(_0xbe2db._0x18ef2a) + _0x36407b + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
876
|
+
}
|
|
877
|
+
async function _0x10b13b(_0x4c7b54, _0x206673) {
|
|
878
|
+
const _0x2d21cd = _0x39a66d, _0x5bb2b2 = Buffer['from'](await _0x206673[_0x2d21cd(_0x1f9cbb._0x3204c5)]())[_0x2d21cd(_0x1f9cbb._0x55bc8a)](_0x2d21cd(_0x1f9cbb._0xbc0105));
|
|
879
|
+
if (!_0x5bb2b2[_0x2d21cd(0xdd)]())
|
|
880
|
+
return {};
|
|
881
|
+
try {
|
|
882
|
+
return JSON[_0x2d21cd(0x154)](_0x5bb2b2);
|
|
883
|
+
} catch {
|
|
884
|
+
throw new Error(_0x3faaef({
|
|
885
|
+
'bodyText': _0x5bb2b2,
|
|
886
|
+
'requestUrl': _0x4c7b54,
|
|
887
|
+
'response': _0x206673
|
|
888
|
+
}));
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
function _0x2b2f55(_0x440861, _0x4961a0) {
|
|
892
|
+
const _0x6db9f1 = _0x39a66d, _0x22fbb6 = typeof _0x4961a0[_0x6db9f1(_0x8ec77._0x5acf22)] === 'string' ? _0x4961a0[_0x6db9f1(_0x8ec77._0x328a9d)][_0x6db9f1(_0x8ec77._0x2223e6)]() : '';
|
|
893
|
+
if (_0x22fbb6)
|
|
894
|
+
return _0x22fbb6;
|
|
895
|
+
const _0x3cb5a3 = Date[_0x6db9f1(_0x8ec77._0x772e26)]();
|
|
896
|
+
for (const [_0x330cf4, _0x5a9590] of _0x159a1a) {
|
|
897
|
+
_0x5a9590[_0x6db9f1(0x14e)] <= _0x3cb5a3 && _0x159a1a[_0x6db9f1(0x18a)](_0x330cf4);
|
|
898
|
+
}
|
|
899
|
+
const _0x29fe9c = {
|
|
900
|
+
..._0x4961a0,
|
|
901
|
+
'idempotency_key': void 0x0
|
|
902
|
+
}, _0x4a400a = createHash(_0x6db9f1(_0x8ec77._0x4ecb34))['update'](_0x440861 + ':' + stableStringify(_0x29fe9c))[_0x6db9f1(0x1aa)](_0x6db9f1(_0x8ec77._0x59ea5b)), _0x1aa18e = _0x440861 + ':' + _0x4a400a, _0x489d5b = _0x159a1a[_0x6db9f1(_0x8ec77._0x531046)](_0x1aa18e);
|
|
903
|
+
if (_0x489d5b)
|
|
904
|
+
return _0x489d5b['value'];
|
|
905
|
+
const _0x1b2dec = _0x6db9f1(0x1b1) + _0x440861 + ':' + randomUUID();
|
|
906
|
+
return _0x159a1a[_0x6db9f1(0x23e)](_0x1aa18e, {
|
|
907
|
+
'expiresAt': _0x3cb5a3 + 0x5 * 0x3c * 0x3e8,
|
|
908
|
+
'value': _0x1b2dec
|
|
909
|
+
}), _0x1b2dec;
|
|
910
|
+
}
|
|
911
|
+
async function _0x558446(_0x5dec4f, _0x50c71a) {
|
|
912
|
+
const _0x9466ac = _0x39a66d, _0x2710ad = new AbortController(), _0x5088b1 = setTimeout(() => _0x2710ad[_0x9466ac(0x116)](), _0x252e4f), _0x4a1ea4 = _0x50c71a?.[_0x9466ac(_0x5eecf3._0x5b7f87)] ? anySignal(_0x50c71a['signal'], _0x2710ad[_0x9466ac(0x19e)]) : _0x2710ad['signal'], _0x33ce7c = '' + _0x475c24 + _0x5dec4f;
|
|
913
|
+
try {
|
|
914
|
+
const _0x253fb8 = await _0x32b2c2(_0x33ce7c, {
|
|
915
|
+
..._0x50c71a,
|
|
916
|
+
'signal': _0x4a1ea4
|
|
917
|
+
}), _0x446718 = await _0x10b13b(_0x33ce7c, _0x253fb8);
|
|
918
|
+
if (!_0x253fb8['ok'] || _0x446718[_0x9466ac(_0x5eecf3._0x2e02c9)] === ![])
|
|
919
|
+
throw new Error(asErrorMessage(_0x446718[_0x9466ac(_0x5eecf3._0xc90234)], 'HTTP\x20' + _0x253fb8['status']));
|
|
920
|
+
return _0x446718;
|
|
921
|
+
} finally {
|
|
922
|
+
clearTimeout(_0x5088b1);
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
async function _0x40ff10(_0x43059e, _0x48114e) {
|
|
926
|
+
const _0x4d5cb6 = _0x39a66d, _0x48df56 = new AbortController(), _0x47d2b7 = setTimeout(() => _0x48df56[_0x4d5cb6(0x116)](), _0x252e4f), _0x2285b5 = _0x48114e?.['signal'] ? anySignal(_0x48114e[_0x4d5cb6(_0x4bcc63._0x2ca1dd)], _0x48df56['signal']) : _0x48df56[_0x4d5cb6(0x19e)], _0x254554 = '' + _0x475c24 + _0x43059e;
|
|
927
|
+
try {
|
|
928
|
+
const _0x41a04a = await _0x32b2c2(_0x254554, {
|
|
929
|
+
..._0x48114e,
|
|
930
|
+
'signal': _0x2285b5
|
|
931
|
+
}), _0x3ff6f7 = await _0x10b13b(_0x254554, _0x41a04a);
|
|
932
|
+
if (!_0x41a04a['ok'])
|
|
933
|
+
throw new Error(asErrorMessage(_0x3ff6f7[_0x4d5cb6(_0x4bcc63._0x4ec5d5)], _0x4d5cb6(_0x4bcc63._0x32c084) + _0x41a04a[_0x4d5cb6(0xc9)]));
|
|
934
|
+
return _0x3ff6f7;
|
|
935
|
+
} finally {
|
|
936
|
+
clearTimeout(_0x47d2b7);
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
async function _0x70aa9f(_0x53167b) {
|
|
940
|
+
const _0x1fb772 = _0x39a66d;
|
|
941
|
+
if (!_0xb89eae || _0x53167b <= _0x53f57e)
|
|
942
|
+
return;
|
|
943
|
+
await _0x558446(_0x1fb772(0x1be) + encodeURIComponent(_0xb89eae) + _0x1fb772(_0x3889cf._0x3486a3), {
|
|
944
|
+
'body': JSON[_0x1fb772(_0x3889cf._0x578086)]({ 'lastSeenSeq': _0x53167b }),
|
|
945
|
+
'headers': _0x543907,
|
|
946
|
+
'method': _0x1fb772(_0x3889cf._0x350a1f)
|
|
947
|
+
}), _0x53f57e = _0x53167b;
|
|
948
|
+
}
|
|
949
|
+
async function _0x49db2d(_0x9b7759) {
|
|
950
|
+
const _0x9f0daf = _0x39a66d;
|
|
951
|
+
if (!_0xe3bd7b || !_0x155fb9 || _0x9b7759 <= _0x53f57e)
|
|
952
|
+
return;
|
|
953
|
+
const _0x143aa3 = await _0x32b2c2(_0xe3bd7b + _0x9f0daf(_0x497d11._0x2364db), {
|
|
954
|
+
'body': JSON[_0x9f0daf(_0x497d11._0x1020e1)]({
|
|
955
|
+
'last_seen_seq': _0x9b7759,
|
|
956
|
+
'worker_session_id': _0x155fb9
|
|
957
|
+
}),
|
|
958
|
+
'headers': { 'Content-Type': _0x9f0daf(_0x497d11._0x412edb) },
|
|
959
|
+
'method': _0x9f0daf(_0x497d11._0x3bbe1f)
|
|
960
|
+
});
|
|
961
|
+
if (!_0x143aa3['ok'])
|
|
962
|
+
throw new Error(_0x9f0daf(0x201) + _0x143aa3[_0x9f0daf(_0x497d11._0x1ce408)]);
|
|
963
|
+
_0x53f57e = _0x9b7759;
|
|
964
|
+
}
|
|
965
|
+
async function _0xae6c49(_0x1081a2) {
|
|
966
|
+
const _0xea78be = _0x39a66d, _0x467f0 = parseTarget(_0x1081a2), _0x1bd256 = await _0x558446(_0xea78be(0x1f6) + _0x44dccf[_0xea78be(_0x2ee169._0xddcc7f)] + '/resolve-channel', {
|
|
967
|
+
'body': JSON[_0xea78be(_0x2ee169._0x339fc2)]({ 'target': _0x467f0[_0xea78be(0x1ca)] }),
|
|
968
|
+
'headers': _0x543907,
|
|
969
|
+
'method': _0xea78be(_0x2ee169._0x4fed3e)
|
|
970
|
+
});
|
|
971
|
+
return {
|
|
972
|
+
'channelId': _0x1bd256[_0xea78be(_0x2ee169._0x29c7ba)]?.[_0xea78be(0x1c5)] ?? '',
|
|
973
|
+
'target': _0x467f0[_0xea78be(_0x2ee169._0xf80f5f)],
|
|
974
|
+
'task': _0x1bd256[_0xea78be(0x17e)]?.[_0xea78be(_0x2ee169._0x1e9a65)],
|
|
975
|
+
'threadId': _0x1bd256[_0xea78be(0x17e)]?.[_0xea78be(0x241)],
|
|
976
|
+
'threadNumber': _0x1bd256['data']?.['threadNumber']
|
|
977
|
+
};
|
|
978
|
+
}
|
|
979
|
+
async function _0x3d0214(_0x2ac276 = {}) {
|
|
980
|
+
const _0x5e36fd = {
|
|
981
|
+
_0x24c713: 0xd6,
|
|
982
|
+
_0x38d701: 0x1fc,
|
|
983
|
+
_0x14ca34: 0x100,
|
|
984
|
+
_0x49d5bd: 0x22d,
|
|
985
|
+
_0xd50715: 0x18c
|
|
986
|
+
}, _0x3b07eb = _0x39a66d;
|
|
987
|
+
if (!_0x2ac276[_0x3b07eb(_0x31bb53._0x196403)] && _0x26a8ae)
|
|
988
|
+
return _0x26a8ae;
|
|
989
|
+
return _0x26a8ae = (async () => {
|
|
990
|
+
const _0x1a020d = _0x3b07eb, _0x412046 = await _0x558446(_0x1a020d(0x1f6) + _0x44dccf[_0x1a020d(_0x5e36fd._0x24c713)] + _0x1a020d(_0x5e36fd._0x38d701), {
|
|
991
|
+
'headers': _0x543907,
|
|
992
|
+
'method': 'GET'
|
|
993
|
+
}), _0x3bde47 = _0x412046['data']?.[_0x1a020d(0x223)] ?? [], _0x382d7f = _0x3bde47[_0x1a020d(0xcc)](_0x1bb914 => _0x1bb914[_0x1a020d(0x202)]?.[_0x1a020d(0xe8)] === _0x1a020d(0x19b))[_0x1a020d(_0x5e36fd._0x14ca34)](_0x18e6d8 => ({
|
|
994
|
+
'id': _0x34f1c8(_0x18e6d8),
|
|
995
|
+
'name': _0x3fa775(_0x18e6d8)
|
|
996
|
+
}))['filter'](_0x277cdb => _0x277cdb['id']), _0x3e586d = _0x3bde47[_0x1a020d(0xcc)](_0x261cd9 => _0x261cd9[_0x1a020d(0x202)]?.[_0x1a020d(0xe8)] !== 'agent')['map'](_0x1e3c8f => ({
|
|
997
|
+
'id': _0x34f1c8(_0x1e3c8f),
|
|
998
|
+
'name': _0x3fa775(_0x1e3c8f)
|
|
999
|
+
}))[_0x1a020d(0xcc)](_0x178fc7 => _0x178fc7['id']), _0x170b97 = _0x412046[_0x1a020d(0x17e)]?.[_0x1a020d(0x18c)]['id'] ?? '';
|
|
1000
|
+
return {
|
|
1001
|
+
'agents': _0x382d7f,
|
|
1002
|
+
'channels': _0x412046[_0x1a020d(0x17e)]?.[_0x1a020d(_0x5e36fd._0x49d5bd)] ?? [],
|
|
1003
|
+
'humans': _0x3e586d,
|
|
1004
|
+
'serverId': _0x170b97,
|
|
1005
|
+
'serverName': _0x412046['data']?.[_0x1a020d(_0x5e36fd._0xd50715)][_0x1a020d(0x230)] ?? _0x170b97
|
|
1006
|
+
};
|
|
1007
|
+
})()[_0x3b07eb(0x1ef)](_0x2c50a6 => {
|
|
1008
|
+
_0x26a8ae = null;
|
|
1009
|
+
throw _0x2c50a6;
|
|
1010
|
+
}), _0x26a8ae;
|
|
1011
|
+
}
|
|
1012
|
+
function _0x11b458(_0x241920, _0x376075) {
|
|
1013
|
+
const _0x3d4ca6 = _0x39a66d;
|
|
1014
|
+
return _0x376075[_0x3d4ca6(0xf4)][_0x3d4ca6(0x191)](_0x214e1c => _0x214e1c['id'] === _0x241920 || _0x214e1c['name'] === _0x241920) ? _0x3d4ca6(0x19b) : 'human';
|
|
1015
|
+
}
|
|
1016
|
+
function _0x1f0f41(_0x65e3cf) {
|
|
1017
|
+
const _0x2ca231 = _0x39a66d;
|
|
1018
|
+
if (_0x65e3cf['threadNumber'] != null)
|
|
1019
|
+
return _0x65e3cf['channelTarget'] + ':t' + _0x65e3cf[_0x2ca231(_0x2d1d6b._0x46c518)];
|
|
1020
|
+
if (_0x65e3cf[_0x2ca231(_0x2d1d6b._0x1c4ece)])
|
|
1021
|
+
return _0x65e3cf['channelTarget'] + ':' + _0x65e3cf[_0x2ca231(0xfe)];
|
|
1022
|
+
if (_0x65e3cf[_0x2ca231(0x241)])
|
|
1023
|
+
return _0x65e3cf[_0x2ca231(_0x2d1d6b._0x304329)] + ':' + _0x65e3cf[_0x2ca231(_0x2d1d6b._0x382cdc)][_0x2ca231(_0x2d1d6b._0x2d8a5d)](0x0, 0x8);
|
|
1024
|
+
return _0x65e3cf[_0x2ca231(0x213)];
|
|
1025
|
+
}
|
|
1026
|
+
function _0xccc5d9(_0x18d5f6, _0x113ecd) {
|
|
1027
|
+
const _0x2e0902 = _0x39a66d;
|
|
1028
|
+
try {
|
|
1029
|
+
const _0x8f5015 = parseTarget(_0x18d5f6);
|
|
1030
|
+
if (_0x8f5015[_0x2e0902(0x11b)] !== _0x2e0902(_0x112c72._0x3f019b) || _0x8f5015['channelTarget'] !== _0x113ecd[_0x2e0902(_0x112c72._0x18dee0)])
|
|
1031
|
+
return ![];
|
|
1032
|
+
if (_0x113ecd['threadNumber'] != null && _0x8f5015[_0x2e0902(0x1de)] === 't' + _0x113ecd[_0x2e0902(0x1ec)])
|
|
1033
|
+
return !![];
|
|
1034
|
+
if (_0x113ecd[_0x2e0902(_0x112c72._0x2438f3)])
|
|
1035
|
+
return _0x8f5015[_0x2e0902(_0x112c72._0x59dc70)] === _0x113ecd[_0x2e0902(0xfe)] || _0x113ecd[_0x2e0902(0xfe)]['startsWith'](_0x8f5015['threadShortId']);
|
|
1036
|
+
if (_0x113ecd[_0x2e0902(_0x112c72._0x103a51)])
|
|
1037
|
+
return _0x8f5015[_0x2e0902(_0x112c72._0x3f8e45)] === _0x113ecd[_0x2e0902(0x241)] || _0x113ecd[_0x2e0902(0x241)]['startsWith'](_0x8f5015[_0x2e0902(_0x112c72._0x3f8e45)]);
|
|
1038
|
+
return ![];
|
|
1039
|
+
} catch {
|
|
1040
|
+
return ![];
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
function _0x34f1c8(_0xe8c6f9) {
|
|
1044
|
+
const _0x4312ac = _0x39a66d;
|
|
1045
|
+
return _0xe8c6f9[_0x4312ac(0xed)]?.[_0x4312ac(_0x3eac0a._0x40cae9)] ?? _0xe8c6f9[_0x4312ac(0x202)]?.['id'] ?? _0xe8c6f9['participantId'] ?? '';
|
|
1046
|
+
}
|
|
1047
|
+
function _0x3fa775(_0x5d65cb) {
|
|
1048
|
+
const _0x4ae90b = _0x39a66d;
|
|
1049
|
+
return _0x5d65cb['participant']?.[_0x4ae90b(0x230)] ?? _0x34f1c8(_0x5d65cb);
|
|
1050
|
+
}
|
|
1051
|
+
async function _0x11b374(_0x3c1026) {
|
|
1052
|
+
const _0x3ab8ea = _0x39a66d, _0x9b29f8 = Math['min'](_0x3c1026[_0x3ab8ea(_0x381726._0x53310e)] ?? 0x32, 0x64), _0x2991a7 = await _0x3d0214(), _0x5811cd = new URLSearchParams();
|
|
1053
|
+
_0x5811cd['set'](_0x3ab8ea(_0x381726._0x53310e), String(_0x9b29f8));
|
|
1054
|
+
_0x3c1026['threadId'] ? (_0x5811cd['set'](_0x3ab8ea(_0x381726._0x2a61f4), _0x3c1026[_0x3ab8ea(0x241)]), _0x5811cd[_0x3ab8ea(0x23e)](_0x3ab8ea(0x1c5), _0x3c1026[_0x3ab8ea(0x1c5)])) : _0x5811cd['set'](_0x3ab8ea(0x1c5), _0x3c1026[_0x3ab8ea(0x1c5)]);
|
|
1055
|
+
_0x3c1026['before'] && _0x5811cd[_0x3ab8ea(_0x381726._0x2017fd)]('cursor', String(_0x3c1026[_0x3ab8ea(_0x381726._0x5ebb44)]));
|
|
1056
|
+
_0x3c1026[_0x3ab8ea(0x1ab)] !== void 0x0 && _0x5811cd[_0x3ab8ea(0x23e)](_0x3ab8ea(_0x381726._0x29e93f), String(_0x3c1026[_0x3ab8ea(_0x381726._0x1b459c)]));
|
|
1057
|
+
const _0x283c02 = await _0x558446(_0x3ab8ea(0x1f6) + _0x44dccf[_0x3ab8ea(_0x381726._0x1bf176)] + _0x3ab8ea(0x1d6) + _0x5811cd['toString'](), {
|
|
1058
|
+
'headers': _0x543907,
|
|
1059
|
+
'method': 'GET'
|
|
1060
|
+
}), _0x5a0752 = (_0x283c02[_0x3ab8ea(0x17e)] ?? [])[_0x3ab8ea(0x100)](_0xedb63f => ({
|
|
1061
|
+
'attachments': (_0xedb63f['attachments'] ?? [])[_0x3ab8ea(0x100)](_0x664a66 => ({
|
|
1062
|
+
'filename': _0x664a66[_0x3ab8ea(0x102)] ?? _0x664a66['id'],
|
|
1063
|
+
'id': _0x664a66['id']
|
|
1064
|
+
})),
|
|
1065
|
+
'content': _0xedb63f[_0x3ab8ea(0x1a2)] ?? '',
|
|
1066
|
+
'createdAt': _0xedb63f[_0x3ab8ea(0xe4)],
|
|
1067
|
+
'messageId': _0xedb63f['id'],
|
|
1068
|
+
'senderName': _0xedb63f[_0x3ab8ea(0x112)],
|
|
1069
|
+
'senderType': _0x11b458(_0xedb63f[_0x3ab8ea(0x112)], _0x2991a7),
|
|
1070
|
+
'seq': _0xedb63f[_0x3ab8ea(0x220)] ?? 0x0
|
|
1071
|
+
}));
|
|
1072
|
+
return {
|
|
1073
|
+
'channel': _0x3c1026[_0x3ab8ea(_0x381726._0x177d7f)],
|
|
1074
|
+
'hasMore': _0x283c02[_0x3ab8ea(_0x381726._0x35c5dc)]?.['hasMore'] ?? ![],
|
|
1075
|
+
'messages': _0x5a0752,
|
|
1076
|
+
'nextCursor': _0x283c02[_0x3ab8ea(_0x381726._0x50c39a)]?.['cursor']
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1079
|
+
return {
|
|
1080
|
+
async 'sendMessage'(_0x1a7145) {
|
|
1081
|
+
const _0x6a3b9f = _0x39a66d, _0x1bec54 = await _0xae6c49(_0x1a7145['target']), _0x2d63c1 = _0x1a7145[_0x6a3b9f(_0x551915._0x3fc97c)]['includes']('@') ? extractMentionedParticipantIds(_0x1a7145[_0x6a3b9f(_0x551915._0x3fc97c)], await _0x3d0214()) : [], _0x5d194a = await _0x558446(_0x6a3b9f(_0x551915._0x5717e6) + _0x44dccf[_0x6a3b9f(0xd6)] + '/send', {
|
|
1082
|
+
'body': JSON[_0x6a3b9f(0x18b)]({
|
|
1083
|
+
'attachment_ids': _0x1a7145[_0x6a3b9f(0x132)],
|
|
1084
|
+
'bodyMarkdown': _0x1a7145['content'],
|
|
1085
|
+
'channelId': _0x1bec54['channelId'],
|
|
1086
|
+
..._0x2d63c1[_0x6a3b9f(_0x551915._0x25aa35)] > 0x0 ? { 'mentionedParticipantIds': _0x2d63c1 } : {},
|
|
1087
|
+
'threadId': _0x1bec54[_0x6a3b9f(_0x551915._0xc2aaca)],
|
|
1088
|
+
..._0x1a7145['visibility'] ? { 'visibility': _0x1a7145[_0x6a3b9f(_0x551915._0x1fcb76)] } : {}
|
|
1089
|
+
}),
|
|
1090
|
+
'headers': _0x543907,
|
|
1091
|
+
'method': _0x6a3b9f(0x136)
|
|
1092
|
+
});
|
|
1093
|
+
return { 'messageId': _0x5d194a[_0x6a3b9f(_0x551915._0x4196cd)]?.['id'] ?? '' };
|
|
1094
|
+
},
|
|
1095
|
+
async 'listSchedules'() {
|
|
1096
|
+
const _0x59e454 = _0x39a66d, _0x13839a = await _0x558446(_0x59e454(0x237), {
|
|
1097
|
+
'headers': _0x543907,
|
|
1098
|
+
'method': _0x59e454(0x167)
|
|
1099
|
+
});
|
|
1100
|
+
return _0x13839a[_0x59e454(_0x59e08d._0x2846b0)] ?? [];
|
|
1101
|
+
},
|
|
1102
|
+
async 'claimScheduleRun'(_0x5866d2) {
|
|
1103
|
+
const _0x33e978 = _0x39a66d, _0x29a9c2 = await _0x558446(_0x33e978(_0xb4c1b9._0x46a919), {
|
|
1104
|
+
'body': JSON[_0x33e978(_0xb4c1b9._0x20a4c4)](_0x5866d2),
|
|
1105
|
+
'headers': _0x543907,
|
|
1106
|
+
'method': _0x33e978(_0xb4c1b9._0x148656)
|
|
1107
|
+
});
|
|
1108
|
+
return _0x29a9c2[_0x33e978(0x17e)] ?? {
|
|
1109
|
+
'granted': ![],
|
|
1110
|
+
'runId': null,
|
|
1111
|
+
'schedule': null,
|
|
1112
|
+
'scheduledFor': _0x5866d2['scheduledFor']
|
|
1113
|
+
};
|
|
1114
|
+
},
|
|
1115
|
+
async 'startScheduleRun'(_0x3f4edf) {
|
|
1116
|
+
const _0x2e3e23 = _0x39a66d, _0x2e4d73 = await _0x558446(_0x2e3e23(0x194) + encodeURIComponent(_0x3f4edf['runId']) + _0x2e3e23(0xde), {
|
|
1117
|
+
'body': JSON[_0x2e3e23(_0x283a68._0x165c84)]({}),
|
|
1118
|
+
'headers': _0x543907,
|
|
1119
|
+
'method': _0x2e3e23(0x136)
|
|
1120
|
+
});
|
|
1121
|
+
return _0x2e4d73[_0x2e3e23(0x17e)] ?? {
|
|
1122
|
+
'claimedByDaemonId': '',
|
|
1123
|
+
'id': _0x3f4edf[_0x2e3e23(_0x283a68._0x2e8811)],
|
|
1124
|
+
'scheduleId': '',
|
|
1125
|
+
'status': 'running'
|
|
1126
|
+
};
|
|
1127
|
+
},
|
|
1128
|
+
async 'finishScheduleRun'(_0x44b3ae) {
|
|
1129
|
+
const _0x1288b9 = _0x39a66d, _0x5d6735 = await _0x558446('/api/internal/schedules/' + encodeURIComponent(_0x44b3ae[_0x1288b9(0x11c)]) + _0x1288b9(0x1ed), {
|
|
1130
|
+
'body': JSON['stringify']({
|
|
1131
|
+
'error': _0x44b3ae[_0x1288b9(0x212)],
|
|
1132
|
+
'resultJson': _0x44b3ae['resultJson'],
|
|
1133
|
+
'status': _0x44b3ae[_0x1288b9(_0xec4537._0xd294a6)]
|
|
1134
|
+
}),
|
|
1135
|
+
'headers': _0x543907,
|
|
1136
|
+
'method': _0x1288b9(_0xec4537._0xc365f)
|
|
1137
|
+
});
|
|
1138
|
+
return _0x5d6735[_0x1288b9(0x17e)] ?? {
|
|
1139
|
+
'nextRunAt': null,
|
|
1140
|
+
'run': {
|
|
1141
|
+
'claimedByDaemonId': '',
|
|
1142
|
+
'id': _0x44b3ae[_0x1288b9(0x11c)],
|
|
1143
|
+
'scheduleId': '',
|
|
1144
|
+
'status': _0x44b3ae[_0x1288b9(_0xec4537._0xd294a6)]
|
|
1145
|
+
}
|
|
1146
|
+
};
|
|
1147
|
+
},
|
|
1148
|
+
async 'listTasks'(_0x5b9b77) {
|
|
1149
|
+
const _0xa9a6d0 = _0x39a66d, _0x4396dc = new URLSearchParams();
|
|
1150
|
+
return _0x4396dc[_0xa9a6d0(_0x446692._0x5abe4f)](_0xa9a6d0(_0x446692._0x333570), _0x5b9b77['channel']), _0x5b9b77[_0xa9a6d0(_0x446692._0x1039d5)] && _0x4396dc[_0xa9a6d0(0x23e)](_0xa9a6d0(_0x446692._0x1039d5), _0x5b9b77[_0xa9a6d0(0xc9)]), _0x40ff10(_0xa9a6d0(_0x446692._0x2a7374) + _0x44dccf['agentId'] + _0xa9a6d0(_0x446692._0x480495) + _0x4396dc[_0xa9a6d0(0x173)](), {
|
|
1151
|
+
'headers': _0x543907,
|
|
1152
|
+
'method': _0xa9a6d0(0x167)
|
|
1153
|
+
});
|
|
1154
|
+
},
|
|
1155
|
+
async 'createTasks'(_0x3546bd) {
|
|
1156
|
+
const _0x11fe7f = _0x39a66d;
|
|
1157
|
+
return _0x40ff10(_0x11fe7f(0x1f6) + _0x44dccf[_0x11fe7f(0xd6)] + _0x11fe7f(0x103), {
|
|
1158
|
+
'body': JSON[_0x11fe7f(0x18b)]({
|
|
1159
|
+
..._0x3546bd,
|
|
1160
|
+
'idempotency_key': _0x2b2f55('create_tasks', _0x3546bd)
|
|
1161
|
+
}),
|
|
1162
|
+
'headers': _0x543907,
|
|
1163
|
+
'method': _0x11fe7f(0x136)
|
|
1164
|
+
});
|
|
1165
|
+
},
|
|
1166
|
+
async 'claimTasks'(_0x1bc7f3) {
|
|
1167
|
+
const _0x5bcb20 = _0x39a66d;
|
|
1168
|
+
return _0x40ff10('/internal/agent/' + _0x44dccf[_0x5bcb20(0xd6)] + _0x5bcb20(_0x484538._0x5adf45), {
|
|
1169
|
+
'body': JSON[_0x5bcb20(_0x484538._0x246d8f)]({
|
|
1170
|
+
..._0x1bc7f3,
|
|
1171
|
+
'idempotency_key': _0x2b2f55(_0x5bcb20(0x193), _0x1bc7f3)
|
|
1172
|
+
}),
|
|
1173
|
+
'headers': _0x543907,
|
|
1174
|
+
'method': _0x5bcb20(_0x484538._0x3e4a84)
|
|
1175
|
+
});
|
|
1176
|
+
},
|
|
1177
|
+
async 'unclaimTask'(_0x1ae8ef) {
|
|
1178
|
+
const _0x541a77 = _0x39a66d;
|
|
1179
|
+
return _0x40ff10('/internal/agent/' + _0x44dccf['agentId'] + _0x541a77(0xe2), {
|
|
1180
|
+
'body': JSON['stringify']({
|
|
1181
|
+
..._0x1ae8ef,
|
|
1182
|
+
'idempotency_key': _0x2b2f55(_0x541a77(_0x536dd3._0x9fa46c), _0x1ae8ef)
|
|
1183
|
+
}),
|
|
1184
|
+
'headers': _0x543907,
|
|
1185
|
+
'method': 'POST'
|
|
1186
|
+
});
|
|
1187
|
+
},
|
|
1188
|
+
async 'updateTaskStatus'(_0x5c1b5e) {
|
|
1189
|
+
const _0x5434ed = _0x39a66d;
|
|
1190
|
+
return _0x40ff10(_0x5434ed(_0x56466f._0x5bbe9d) + _0x44dccf[_0x5434ed(0xd6)] + _0x5434ed(0x114), {
|
|
1191
|
+
'body': JSON[_0x5434ed(_0x56466f._0x4ca894)]({
|
|
1192
|
+
..._0x5c1b5e,
|
|
1193
|
+
'idempotency_key': _0x2b2f55('update_task_status', _0x5c1b5e)
|
|
1194
|
+
}),
|
|
1195
|
+
'headers': _0x543907,
|
|
1196
|
+
'method': _0x5434ed(_0x56466f._0x38d5be)
|
|
1197
|
+
});
|
|
1198
|
+
},
|
|
1199
|
+
async 'uploadFile'(_0x35a0bc) {
|
|
1200
|
+
const _0xb6b667 = _0x39a66d, _0x34c17a = await _0xae6c49(_0x35a0bc[_0xb6b667(0x13c)]);
|
|
1201
|
+
if (_0x34c17a[_0xb6b667(_0xb16b97._0x207e63)])
|
|
1202
|
+
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
1203
|
+
const _0x3a46a0 = await _0x558446(_0xb6b667(_0xb16b97._0x26ac72) + _0x44dccf[_0xb6b667(0xd6)] + _0xb6b667(0x129), {
|
|
1204
|
+
'body': JSON[_0xb6b667(0x18b)]({
|
|
1205
|
+
'channel': _0x34c17a[_0xb6b667(0x1ca)],
|
|
1206
|
+
'contentBase64': _0x35a0bc[_0xb6b667(_0xb16b97._0x439233)],
|
|
1207
|
+
'contentType': _0x35a0bc['contentType'],
|
|
1208
|
+
'originalFilename': _0x35a0bc[_0xb6b667(_0xb16b97._0x5f3900)]
|
|
1209
|
+
}),
|
|
1210
|
+
'headers': _0x543907,
|
|
1211
|
+
'method': _0xb6b667(_0xb16b97._0x2179fa)
|
|
1212
|
+
});
|
|
1213
|
+
return {
|
|
1214
|
+
'attachmentId': _0x3a46a0['data']?.['id'] ?? '',
|
|
1215
|
+
'filename': _0x3a46a0['data']?.[_0xb6b667(_0xb16b97._0x299a7c)] ?? _0x35a0bc['filename'],
|
|
1216
|
+
'sizeBytes': _0x3a46a0[_0xb6b667(0x17e)]?.['sizeBytes'] ?? 0x0
|
|
1217
|
+
};
|
|
1218
|
+
},
|
|
1219
|
+
async 'downloadAttachment'(_0xf1d67a) {
|
|
1220
|
+
const _0x11a779 = _0x39a66d, _0x16e10b = await _0x558446(_0x11a779(0x1e3) + _0xf1d67a, {
|
|
1221
|
+
'headers': _0x543907,
|
|
1222
|
+
'method': _0x11a779(0x167)
|
|
1223
|
+
}), _0x493638 = new AbortController(), _0x3d6c4d = setTimeout(() => _0x493638[_0x11a779(0x116)](), _0x252e4f);
|
|
1224
|
+
try {
|
|
1225
|
+
const _0x3b7ccc = await _0x32b2c2(_0x475c24 + _0x11a779(_0x1d337a._0x14e19e) + _0xf1d67a + _0x11a779(_0x1d337a._0x2cdf93), {
|
|
1226
|
+
'headers': _0x543907,
|
|
1227
|
+
'method': _0x11a779(_0x1d337a._0x14db2e),
|
|
1228
|
+
'signal': _0x493638[_0x11a779(_0x1d337a._0x44a05e)]
|
|
1229
|
+
});
|
|
1230
|
+
if (!_0x3b7ccc['ok'])
|
|
1231
|
+
throw new Error(_0x11a779(0x201) + _0x3b7ccc[_0x11a779(_0x1d337a._0x3925eb)]);
|
|
1232
|
+
return {
|
|
1233
|
+
'contentType': _0x16e10b[_0x11a779(0x17e)]?.['contentType'] ?? _0x3b7ccc[_0x11a779(0x12b)][_0x11a779(0x1c2)]('content-type') ?? _0x11a779(0x1f9),
|
|
1234
|
+
'data': Buffer[_0x11a779(0x211)](await _0x3b7ccc[_0x11a779(_0x1d337a._0x4ce0ff)]()),
|
|
1235
|
+
'originalFilename': _0x16e10b['data']?.['originalFilename']
|
|
1236
|
+
};
|
|
1237
|
+
} finally {
|
|
1238
|
+
clearTimeout(_0x3d6c4d);
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
async 'listServer'() {
|
|
1242
|
+
return _0x3d0214({ 'forceRefresh': !![] });
|
|
1243
|
+
},
|
|
1244
|
+
async 'readHistory'(_0x38837f) {
|
|
1245
|
+
const _0x250f83 = _0x39a66d, _0x2d0df3 = await _0xae6c49(_0x38837f[_0x250f83(0x13c)]);
|
|
1246
|
+
return _0x11b374({
|
|
1247
|
+
'after': _0x38837f[_0x250f83(_0x5197d5._0x2ea6f0)],
|
|
1248
|
+
'before': _0x38837f[_0x250f83(_0x5197d5._0x4905b0)],
|
|
1249
|
+
'channelId': _0x2d0df3[_0x250f83(0x1c5)],
|
|
1250
|
+
'channelTarget': _0x2d0df3[_0x250f83(0x1ca)],
|
|
1251
|
+
'limit': _0x38837f['limit'],
|
|
1252
|
+
'threadId': _0x2d0df3[_0x250f83(0x241)]
|
|
1253
|
+
});
|
|
1254
|
+
},
|
|
1255
|
+
'resolveTarget': _0xae6c49,
|
|
1256
|
+
async 'checkMessages'() {
|
|
1257
|
+
const _0x566d76 = {
|
|
1258
|
+
_0x41f76a: 0xf1,
|
|
1259
|
+
_0x50a331: 0x1e7,
|
|
1260
|
+
_0x5aaffe: 0x1c5
|
|
1261
|
+
}, _0x53d3bb = _0x39a66d, _0x147bc6 = new URLSearchParams();
|
|
1262
|
+
_0x147bc6[_0x53d3bb(_0x26ac23._0x4f43c6)](_0x53d3bb(0x1b4), String(_0x1adced));
|
|
1263
|
+
const _0x2e442e = _0x147bc6[_0x53d3bb(_0x26ac23._0x347ddf)](), _0x563ec3 = await _0x558446(_0x53d3bb(0x1f6) + _0x44dccf[_0x53d3bb(0xd6)] + '/receive' + (_0x2e442e ? '?' + _0x2e442e : ''), {
|
|
1264
|
+
'headers': _0x543907,
|
|
1265
|
+
'method': _0x53d3bb(_0x26ac23._0xd3f0fd)
|
|
1266
|
+
}), _0x2a896f = _0x563ec3[_0x53d3bb(0x17e)] ?? [], _0x257887 = _0x563ec3['meta']?.[_0x53d3bb(0x122)], _0x3b4e53 = _0x257887 !== void 0x0 ? Math[_0x53d3bb(0x15b)](_0x1adced, _0x257887) : _0x2a896f[_0x53d3bb(0x1da)] > 0x0 ? Math[_0x53d3bb(0x15b)](_0x1adced, _0x2a896f[_0x2a896f['length'] - 0x1][_0x53d3bb(_0x26ac23._0x37261e)]) : _0x1adced, _0x1012dc = _0x2a896f['filter'](_0x38d5ff => _0x38d5ff[_0x53d3bb(0x160)] === 'message'), _0x3c1da4 = _0x594eb8 === void 0x0 && _0x28e560;
|
|
1267
|
+
let _0x88755b = await _0x3d0214(), _0x2fac11 = new Map(_0x88755b[_0x53d3bb(0x22d)][_0x53d3bb(0x100)](_0x12be10 => [
|
|
1268
|
+
_0x12be10['id'],
|
|
1269
|
+
_0x12be10
|
|
1270
|
+
]));
|
|
1271
|
+
const _0x5a86f9 = _0x1012dc[_0x53d3bb(_0x26ac23._0x528318)](_0x34a8ed => {
|
|
1272
|
+
const _0xd56e48 = _0x53d3bb, _0x19d897 = asRecord(_0x34a8ed[_0xd56e48(_0x566d76._0x41f76a)]), _0x204570 = typeof _0x19d897?.[_0xd56e48(0x1c5)] === _0xd56e48(_0x566d76._0x50a331) ? _0x19d897[_0xd56e48(_0x566d76._0x5aaffe)] : '';
|
|
1273
|
+
return Boolean(_0x204570) && !_0x2fac11[_0xd56e48(0x1b8)](_0x204570);
|
|
1274
|
+
});
|
|
1275
|
+
_0x5a86f9 && (_0x88755b = await _0x3d0214({ 'forceRefresh': !![] }), _0x2fac11 = new Map(_0x88755b[_0x53d3bb(0x22d)][_0x53d3bb(0x100)](_0x4e8e6b => [
|
|
1276
|
+
_0x4e8e6b['id'],
|
|
1277
|
+
_0x4e8e6b
|
|
1278
|
+
])));
|
|
1279
|
+
const _0x39e2fe = new Map();
|
|
1280
|
+
for (const _0x2ed97e of _0x1012dc) {
|
|
1281
|
+
const _0x239bde = asRecord(_0x2ed97e[_0x53d3bb(_0x26ac23._0x4bb46f)]), _0x436830 = typeof _0x239bde[_0x53d3bb(_0x26ac23._0x340ab1)] === _0x53d3bb(0x1e7) ? _0x239bde['channelId'] : '';
|
|
1282
|
+
if (!_0x436830)
|
|
1283
|
+
continue;
|
|
1284
|
+
const _0x20fc0f = typeof _0x239bde[_0x53d3bb(0x241)] === _0x53d3bb(_0x26ac23._0x4ba328) ? _0x239bde['threadId'] : void 0x0, _0x2173c7 = typeof _0x239bde[_0x53d3bb(0xfe)] === _0x53d3bb(0x1e7) ? _0x239bde[_0x53d3bb(_0x26ac23._0x151897)] : void 0x0, _0x1d18bc = typeof _0x239bde[_0x53d3bb(_0x26ac23._0x4d390a)] === _0x53d3bb(0x186) && Number[_0x53d3bb(_0x26ac23._0x520d40)](_0x239bde[_0x53d3bb(_0x26ac23._0x235da3)]) ? _0x239bde[_0x53d3bb(_0x26ac23._0x235da3)] : void 0x0, _0x207eb4 = Boolean(_0x20fc0f && (!_0x2173c7 || _0x2ed97e[_0x53d3bb(0x157)] !== _0x2173c7)), _0x59d183 = _0x207eb4 ? _0x436830 + ':' + _0x20fc0f : _0x436830, _0x2c569e = _0x39e2fe['get'](_0x59d183) ?? {
|
|
1285
|
+
'aggregateIds': [],
|
|
1286
|
+
'channelId': _0x436830,
|
|
1287
|
+
'entries': new Map(),
|
|
1288
|
+
'isThreadReply': _0x207eb4,
|
|
1289
|
+
'rootMessageId': _0x2173c7,
|
|
1290
|
+
'threadNumber': _0x1d18bc,
|
|
1291
|
+
'threadId': _0x207eb4 ? _0x20fc0f : void 0x0
|
|
1292
|
+
};
|
|
1293
|
+
_0x2c569e[_0x53d3bb(_0x26ac23._0x235da3)] == null && _0x1d18bc != null && (_0x2c569e['threadNumber'] = _0x1d18bc), !_0x2c569e['rootMessageId'] && _0x2173c7 && (_0x2c569e[_0x53d3bb(_0x26ac23._0x151897)] = _0x2173c7), _0x2c569e[_0x53d3bb(_0x26ac23._0x12aa21)][_0x53d3bb(0x10f)](_0x2ed97e[_0x53d3bb(0x157)]), _0x2c569e['entries'][_0x53d3bb(0x23e)](_0x2ed97e[_0x53d3bb(0x157)], {
|
|
1294
|
+
'payloadJson': _0x2ed97e['payloadJson'],
|
|
1295
|
+
'seq': _0x2ed97e[_0x53d3bb(0x209)]
|
|
1296
|
+
}), _0x39e2fe[_0x53d3bb(_0x26ac23._0x4f43c6)](_0x59d183, _0x2c569e);
|
|
1297
|
+
}
|
|
1298
|
+
const _0x419725 = [];
|
|
1299
|
+
for (const _0x446986 of _0x39e2fe[_0x53d3bb(_0x26ac23._0x36b191)]()) {
|
|
1300
|
+
const {
|
|
1301
|
+
channelId: _0x13020b,
|
|
1302
|
+
threadId: _0x1446d8,
|
|
1303
|
+
rootMessageId: _0x528109,
|
|
1304
|
+
threadNumber: _0x5c024f,
|
|
1305
|
+
aggregateIds: _0x14dd30,
|
|
1306
|
+
isThreadReply: _0x550ae5,
|
|
1307
|
+
entries: _0x22a485
|
|
1308
|
+
} = _0x446986, _0xc71447 = _0x2fac11[_0x53d3bb(0x1c2)](_0x13020b), _0x473ada = _0xc71447?.['name'] ?? _0x13020b, _0x27b754 = _0xc71447?.[_0x53d3bb(_0x26ac23._0x7eb4f2)] === 'dm' ? _0x53d3bb(_0x26ac23._0x5eeb9e) + _0x473ada : '#' + _0x473ada, _0x4be46 = {
|
|
1309
|
+
'channelTarget': _0x27b754,
|
|
1310
|
+
'rootMessageId': _0x528109,
|
|
1311
|
+
'threadId': _0x1446d8,
|
|
1312
|
+
'threadNumber': _0x5c024f
|
|
1313
|
+
}, _0x4c184c = await _0x11b374({
|
|
1314
|
+
'channelId': _0x13020b,
|
|
1315
|
+
'channelTarget': _0x27b754,
|
|
1316
|
+
'limit': Math[_0x53d3bb(_0x26ac23._0x382398)](_0x14dd30[_0x53d3bb(_0x26ac23._0x392641)], 0x32),
|
|
1317
|
+
'threadId': _0x1446d8
|
|
1318
|
+
}), _0x241212 = new Map(_0x4c184c[_0x53d3bb(_0x26ac23._0x4d84f7)][_0x53d3bb(0x100)](_0x4b0a77 => [
|
|
1319
|
+
_0x4b0a77[_0x53d3bb(0x20d)],
|
|
1320
|
+
_0x4b0a77
|
|
1321
|
+
])), _0x3373e0 = _0x1446d8 ? _0x1f0f41(_0x4be46) : _0x27b754, _0xc74e83 = _0x594eb8 ? _0x550ae5 && _0xccc5d9(_0x594eb8, _0x4be46) : !![], _0xc5c3e8 = _0x550ae5 ? _0xc74e83 && _0x594eb8 ? _0x594eb8 : _0x3373e0 : _0x27b754;
|
|
1322
|
+
for (const _0x1a605b of _0x14dd30) {
|
|
1323
|
+
if (!_0xc74e83)
|
|
1324
|
+
continue;
|
|
1325
|
+
const _0x4dc7ff = _0x22a485[_0x53d3bb(_0x26ac23._0x208101)](_0x1a605b), _0xc9d6fe = _0x4dc7ff ? asRecord(_0x4dc7ff['payloadJson']) : void 0x0, _0x2bea89 = _0xc9d6fe?.[_0x53d3bb(0x12a)] === _0x53d3bb(0x123);
|
|
1326
|
+
if (_0x3c1da4 && _0x2bea89)
|
|
1327
|
+
continue;
|
|
1328
|
+
const _0x2c9060 = _0x241212['get'](_0x1a605b);
|
|
1329
|
+
if (_0x2c9060) {
|
|
1330
|
+
_0x419725['push']({
|
|
1331
|
+
'attachments': _0x2c9060[_0x53d3bb(0x23d)],
|
|
1332
|
+
'content': _0x2c9060[_0x53d3bb(0x20f)],
|
|
1333
|
+
'createdAt': _0x2c9060[_0x53d3bb(_0x26ac23._0x56d743)],
|
|
1334
|
+
'messageId': _0x2c9060[_0x53d3bb(0x20d)],
|
|
1335
|
+
'senderName': _0x2c9060['senderName'],
|
|
1336
|
+
'senderType': _0x2c9060[_0x53d3bb(0xcd)],
|
|
1337
|
+
'target': _0xc5c3e8,
|
|
1338
|
+
..._0x2bea89 ? { 'targetedTask': !![] } : {}
|
|
1339
|
+
});
|
|
1340
|
+
continue;
|
|
1341
|
+
}
|
|
1342
|
+
if (_0x4dc7ff) {
|
|
1343
|
+
const _0x484bd9 = typeof _0xc9d6fe?.['senderParticipantId'] === _0x53d3bb(_0x26ac23._0x4ba328) ? _0xc9d6fe[_0x53d3bb(_0x26ac23._0x4d125e)] : '', _0x1e572c = typeof _0xc9d6fe?.[_0x53d3bb(0x1a2)] === 'string' ? _0xc9d6fe[_0x53d3bb(0x1a2)] : '';
|
|
1344
|
+
_0x484bd9 && _0x1e572c && _0x419725[_0x53d3bb(0x10f)]({
|
|
1345
|
+
'attachments': [],
|
|
1346
|
+
'content': _0x1e572c,
|
|
1347
|
+
'createdAt': new Date()[_0x53d3bb(_0x26ac23._0x30b317)](),
|
|
1348
|
+
'messageId': _0x1a605b,
|
|
1349
|
+
'senderName': _0x484bd9,
|
|
1350
|
+
'senderType': _0x11b458(_0x484bd9, _0x88755b),
|
|
1351
|
+
'target': _0xc5c3e8,
|
|
1352
|
+
..._0x2bea89 ? { 'targetedTask': !![] } : {}
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
if (_0x3b4e53 > 0x0) {
|
|
1358
|
+
if (_0xb89eae)
|
|
1359
|
+
await _0x70aa9f(_0x3b4e53);
|
|
1360
|
+
else
|
|
1361
|
+
_0x155fb9 && await _0x49db2d(_0x3b4e53);
|
|
1362
|
+
}
|
|
1363
|
+
return _0x3b4e53 > _0x1adced && (_0x1adced = _0x3b4e53), { 'messages': _0x594eb8 ? _0x419725 : _0x3c1da4 ? _0x419725[_0x53d3bb(_0x26ac23._0x37c689)](_0x169619 => _0x169619[_0x53d3bb(0x1f5)] !== !![]) : _0x419725 };
|
|
1364
|
+
}
|
|
1365
|
+
};
|
|
1366
|
+
}
|
|
1367
|
+
function toLocalTime(_0x450a1c) {
|
|
1368
|
+
const _0x567620 = {
|
|
1369
|
+
_0x27603a: 0xc7,
|
|
1370
|
+
_0x179032: 0x1c9,
|
|
1371
|
+
_0x1f2827: 0x1c7,
|
|
1372
|
+
_0x256415: 0x169
|
|
1373
|
+
}, _0x5b7249 = _0x1bf962, _0x51f00f = new Date(_0x450a1c);
|
|
1374
|
+
if (Number[_0x5b7249(0x147)](_0x51f00f[_0x5b7249(_0x567620._0x27603a)]()))
|
|
1375
|
+
return _0x450a1c;
|
|
1376
|
+
const _0x467090 = _0x26621f => String(_0x26621f)['padStart'](0x2, '0');
|
|
1377
|
+
return _0x51f00f[_0x5b7249(0xf3)]() + '-' + _0x467090(_0x51f00f[_0x5b7249(0x1d8)]() + 0x1) + '-' + _0x467090(_0x51f00f[_0x5b7249(_0x567620._0x179032)]()) + '\x20' + _0x467090(_0x51f00f['getHours']()) + ':' + _0x467090(_0x51f00f[_0x5b7249(_0x567620._0x1f2827)]()) + ':' + _0x467090(_0x51f00f[_0x5b7249(_0x567620._0x256415)]());
|
|
1378
|
+
}
|
|
1379
|
+
function formatAttachmentSuffix(_0x58745b) {
|
|
1380
|
+
const _0xe720c1 = {
|
|
1381
|
+
_0x3cf397: 0x1da,
|
|
1382
|
+
_0x4cb96a: 0x1da,
|
|
1383
|
+
_0x580f53: 0x1f0,
|
|
1384
|
+
_0x7909e3: 0x128
|
|
1385
|
+
}, _0x4076ba = _0x1bf962;
|
|
1386
|
+
if (!_0x58745b || _0x58745b[_0x4076ba(_0xe720c1._0x3cf397)] === 0x0)
|
|
1387
|
+
return '';
|
|
1388
|
+
return '\x20[' + _0x58745b[_0x4076ba(_0xe720c1._0x4cb96a)] + _0x4076ba(_0xe720c1._0x580f53) + (_0x58745b[_0x4076ba(_0xe720c1._0x4cb96a)] > 0x1 ? 's' : '') + ':\x20' + _0x58745b['map'](_0x977920 => _0x977920['filename'] + _0x4076ba(0x214) + _0x977920['id'] + ')')['join'](',\x20') + _0x4076ba(_0xe720c1._0x7909e3);
|
|
1389
|
+
}
|
|
1390
|
+
function formatCheckMessages(_0x1701c9) {
|
|
1391
|
+
const _0x47d762 = { _0x572803: 0xe0 }, _0x8fab1d = {
|
|
1392
|
+
_0x2f36cb: 0x1ca,
|
|
1393
|
+
_0x2ba0cb: 0x20d,
|
|
1394
|
+
_0x3a3731: 0x120,
|
|
1395
|
+
_0x3260a9: 0x12c,
|
|
1396
|
+
_0x52625e: 0xe7,
|
|
1397
|
+
_0x40192f: 0x20f
|
|
1398
|
+
}, _0x4f7322 = _0x1bf962;
|
|
1399
|
+
if (_0x1701c9[_0x4f7322(0x1da)] === 0x0)
|
|
1400
|
+
return _0x4f7322(_0x47d762._0x572803);
|
|
1401
|
+
return _0x1701c9[_0x4f7322(0x100)](_0x2345a5 => {
|
|
1402
|
+
const _0x332579 = _0x4f7322, _0x198b7f = _0x2345a5[_0x332579(0xcd)] === _0x332579(0x19b) ? _0x332579(0x1b6) : '';
|
|
1403
|
+
return _0x332579(0x206) + _0x2345a5[_0x332579(_0x8fab1d._0x2f36cb)] + _0x332579(0x1d1) + _0x2345a5[_0x332579(_0x8fab1d._0x2ba0cb)][_0x332579(_0x8fab1d._0x3a3731)](0x0, 0x8) + _0x332579(0x141) + toLocalTime(_0x2345a5[_0x332579(0xe4)]) + _0x198b7f + _0x332579(_0x8fab1d._0x3260a9) + _0x2345a5[_0x332579(_0x8fab1d._0x52625e)] + ':\x20' + _0x2345a5[_0x332579(_0x8fab1d._0x40192f)] + formatAttachmentSuffix(_0x2345a5['attachments']);
|
|
1404
|
+
})['join']('\x0a');
|
|
1405
|
+
}
|
|
1406
|
+
function formatHistory(_0x2e973c) {
|
|
1407
|
+
const _0x5a38f3 = {
|
|
1408
|
+
_0x34b6db: 0xfc,
|
|
1409
|
+
_0x4b04fb: 0x1da,
|
|
1410
|
+
_0x517f27: 0x1db,
|
|
1411
|
+
_0xa758bf: 0x100,
|
|
1412
|
+
_0x3d2e0b: 0x148
|
|
1413
|
+
}, _0x5359fc = {
|
|
1414
|
+
_0x517d0d: 0x1b6,
|
|
1415
|
+
_0x49f539: 0x13d,
|
|
1416
|
+
_0x379574: 0x20d,
|
|
1417
|
+
_0x51f877: 0xe7,
|
|
1418
|
+
_0x565933: 0x20f
|
|
1419
|
+
}, _0x17203d = _0x1bf962;
|
|
1420
|
+
if (_0x2e973c[_0x17203d(_0x5a38f3._0x34b6db)][_0x17203d(_0x5a38f3._0x4b04fb)] === 0x0)
|
|
1421
|
+
return '##\x20Message\x20History\x20for\x20' + _0x2e973c[_0x17203d(0x13c)] + _0x17203d(_0x5a38f3._0x517f27);
|
|
1422
|
+
const _0x3a9fd3 = _0x2e973c[_0x17203d(0xfc)][_0x17203d(_0x5a38f3._0xa758bf)](_0x5de62b => {
|
|
1423
|
+
const _0x30f120 = _0x17203d, _0x12195d = _0x5de62b['senderType'] === _0x30f120(0x19b) ? _0x30f120(_0x5359fc._0x517d0d) : '';
|
|
1424
|
+
return _0x30f120(_0x5359fc._0x49f539) + _0x5de62b[_0x30f120(0x209)] + _0x30f120(0x1d1) + _0x5de62b[_0x30f120(_0x5359fc._0x379574)] + _0x30f120(0x141) + toLocalTime(_0x5de62b[_0x30f120(0xe4)]) + _0x12195d + _0x30f120(0x12c) + _0x5de62b[_0x30f120(_0x5359fc._0x51f877)] + ':\x20' + _0x5de62b[_0x30f120(_0x5359fc._0x565933)] + formatAttachmentSuffix(_0x5de62b[_0x30f120(0x23d)]);
|
|
1425
|
+
})[_0x17203d(_0x5a38f3._0x3d2e0b)]('\x0a'), _0x32b506 = _0x2e973c['hasMore'] && _0x2e973c['nextCursor'] ? _0x17203d(0x23b) + _0x2e973c['messages'][_0x17203d(_0x5a38f3._0x4b04fb)] + _0x17203d(0x17d) + _0x2e973c['nextCursor'] + _0x17203d(0x231) : '';
|
|
1426
|
+
return '##\x20Message\x20History\x20for\x20' + _0x2e973c[_0x17203d(0x13c)] + '\x20(' + _0x2e973c['messages'][_0x17203d(_0x5a38f3._0x4b04fb)] + _0x17203d(0x163) + _0x3a9fd3 + _0x32b506;
|
|
1427
|
+
}
|
|
1428
|
+
function formatServerDirectory(_0x505afe) {
|
|
1429
|
+
const _0x60c8e3 = {
|
|
1430
|
+
_0x47b6eb: 0x1da,
|
|
1431
|
+
_0x32182f: 0x22d,
|
|
1432
|
+
_0x4e5c69: 0x238,
|
|
1433
|
+
_0x27b9c1: 0xf4,
|
|
1434
|
+
_0x4da44b: 0x1da,
|
|
1435
|
+
_0x2cba80: 0x1a8,
|
|
1436
|
+
_0x21cfd8: 0x148,
|
|
1437
|
+
_0x5506eb: 0x185
|
|
1438
|
+
}, _0x72cb8f = _0x1bf962, _0x1947f1 = _0x505afe[_0x72cb8f(0x22d)][_0x72cb8f(_0x60c8e3._0x47b6eb)] > 0x0 ? _0x505afe[_0x72cb8f(_0x60c8e3._0x32182f)][_0x72cb8f(0x100)](_0x5db43a => _0x5db43a[_0x72cb8f(0x1ea)] ? '-\x20#' + _0x5db43a[_0x72cb8f(0x230)] + _0x72cb8f(0xec) + _0x5db43a[_0x72cb8f(0x1ea)] : _0x72cb8f(0xc5) + _0x5db43a['name'])['join']('\x0a') : _0x72cb8f(_0x60c8e3._0x4e5c69), _0x3106fe = _0x505afe[_0x72cb8f(_0x60c8e3._0x27b9c1)]['length'] > 0x0 ? _0x505afe[_0x72cb8f(0xf4)]['map'](_0x3a9ff0 => _0x72cb8f(0x175) + _0x3a9ff0[_0x72cb8f(0x230)])['join']('\x0a') : _0x72cb8f(_0x60c8e3._0x4e5c69), _0x30c10e = _0x505afe[_0x72cb8f(0x1a8)][_0x72cb8f(_0x60c8e3._0x4da44b)] > 0x0 ? _0x505afe[_0x72cb8f(_0x60c8e3._0x2cba80)][_0x72cb8f(0x100)](_0x3b81af => _0x72cb8f(0x175) + _0x3b81af['name'])[_0x72cb8f(_0x60c8e3._0x21cfd8)]('\x0a') : '(none)';
|
|
1439
|
+
return [
|
|
1440
|
+
'##\x20Server:\x20' + _0x505afe[_0x72cb8f(0x1b9)],
|
|
1441
|
+
'',
|
|
1442
|
+
_0x72cb8f(_0x60c8e3._0x5506eb),
|
|
1443
|
+
_0x1947f1,
|
|
1444
|
+
'',
|
|
1445
|
+
_0x72cb8f(0x13e),
|
|
1446
|
+
_0x3106fe,
|
|
1447
|
+
'',
|
|
1448
|
+
_0x72cb8f(0x13f),
|
|
1449
|
+
_0x30c10e
|
|
1450
|
+
][_0x72cb8f(0x148)]('\x0a');
|
|
1451
|
+
}
|
|
1452
|
+
function formatUploadResult(_0x20c57b) {
|
|
1453
|
+
const _0x447f21 = {
|
|
1454
|
+
_0x5b50ca: 0x228,
|
|
1455
|
+
_0x5e4d89: 0x10e,
|
|
1456
|
+
_0x182d84: 0xbf
|
|
1457
|
+
}, _0x3104f7 = _0x1bf962;
|
|
1458
|
+
return _0x3104f7(0x1bf) + _0x20c57b[_0x3104f7(0x102)] + '\x20(' + (_0x20c57b[_0x3104f7(_0x447f21._0x5b50ca)] / 0x400)[_0x3104f7(_0x447f21._0x5e4d89)](0x1) + _0x3104f7(0x168) + _0x20c57b[_0x3104f7(0x233)] + _0x3104f7(_0x447f21._0x182d84);
|
|
1459
|
+
}
|
|
1460
|
+
function formatViewFileResult(_0x2576bc, _0x32c0a1) {
|
|
1461
|
+
const _0x9454a1 = _0x1bf962;
|
|
1462
|
+
return _0x32c0a1 ? 'File\x20already\x20cached\x20at:\x20' + _0x2576bc : _0x9454a1(0xe3) + _0x2576bc;
|
|
1463
|
+
}
|
|
1464
|
+
function formatTaskList(_0x1079ff, _0x9c3b37) {
|
|
1465
|
+
const _0x457c6e = {
|
|
1466
|
+
_0x1ee1b6: 0x1da,
|
|
1467
|
+
_0x5c8028: 0x100,
|
|
1468
|
+
_0x36cc48: 0x148
|
|
1469
|
+
}, _0x4f16b3 = {
|
|
1470
|
+
_0x1d8fa7: 0x20d,
|
|
1471
|
+
_0xf6c29: 0x247,
|
|
1472
|
+
_0x401d0b: 0x200,
|
|
1473
|
+
_0x2c1244: 0x1e6
|
|
1474
|
+
}, _0xc93138 = _0x1bf962;
|
|
1475
|
+
if (_0x1079ff[_0xc93138(_0x457c6e._0x1ee1b6)] === 0x0)
|
|
1476
|
+
return _0xc93138(0x1e5);
|
|
1477
|
+
return _0x1079ff[_0xc93138(_0x457c6e._0x5c8028)](_0x1d355e => {
|
|
1478
|
+
const _0x5c692b = _0xc93138, _0x17dd31 = _0x1d355e['taskNumber'] == null ? _0x5c692b(0x10b) : '#' + _0x1d355e[_0x5c692b(0x200)], _0x50a043 = _0x1d355e[_0x5c692b(_0x4f16b3._0x1d8fa7)] ? _0x5c692b(_0x4f16b3._0xf6c29) + _0x1d355e[_0x5c692b(0x20d)] : '', _0x4ec0b4 = _0x9c3b37 && _0x1d355e[_0x5c692b(_0x4f16b3._0x401d0b)] != null && _0x9c3b37[_0x5c692b(0x1b8)](_0x1d355e[_0x5c692b(_0x4f16b3._0x401d0b)]) ? _0x5c692b(_0x4f16b3._0x2c1244) : '';
|
|
1479
|
+
return _0x17dd31 + '\x20[' + _0x1d355e[_0x5c692b(0xc9)] + ']\x20' + _0x1d355e[_0x5c692b(0x1ad)] + _0x50a043 + _0x4ec0b4;
|
|
1480
|
+
})[_0xc93138(_0x457c6e._0x36cc48)]('\x0a');
|
|
1481
|
+
}
|
|
1482
|
+
function formatCreatedTasks(_0x1c005e) {
|
|
1483
|
+
const _0xd68224 = {
|
|
1484
|
+
_0x4ea769: 0x1da,
|
|
1485
|
+
_0x8620dd: 0x240,
|
|
1486
|
+
_0x4aca84: 0x100,
|
|
1487
|
+
_0x2097f3: 0x148
|
|
1488
|
+
}, _0x2825be = _0x1bf962;
|
|
1489
|
+
if (_0x1c005e[_0x2825be(_0xd68224._0x4ea769)] === 0x0)
|
|
1490
|
+
return _0x2825be(_0xd68224._0x8620dd);
|
|
1491
|
+
return _0x1c005e[_0x2825be(_0xd68224._0x4aca84)](_0x44bb81 => {
|
|
1492
|
+
const _0x3d7053 = _0x2825be, _0x53ffc2 = _0x44bb81[_0x3d7053(0x200)] == null ? _0x3d7053(0x10b) : '#' + _0x44bb81[_0x3d7053(0x200)];
|
|
1493
|
+
return _0x53ffc2 + '\x20' + _0x44bb81[_0x3d7053(0x1ad)] + _0x3d7053(0x247) + _0x44bb81[_0x3d7053(0x20d)];
|
|
1494
|
+
})[_0x2825be(_0xd68224._0x2097f3)]('\x0a');
|
|
1495
|
+
}
|
|
1496
|
+
function formatClaimTaskResults(_0x3c0472) {
|
|
1497
|
+
const _0x5740f8 = { _0x559371: 0x1da }, _0x1dfb73 = {
|
|
1498
|
+
_0x1d3f9f: 0x1bd,
|
|
1499
|
+
_0x508c16: 0x200,
|
|
1500
|
+
_0x1ffaec: 0x20d,
|
|
1501
|
+
_0x29b0f4: 0x1ac,
|
|
1502
|
+
_0x4a4e72: 0x137,
|
|
1503
|
+
_0x298b7a: 0x155,
|
|
1504
|
+
_0xbeaa7f: 0x16b,
|
|
1505
|
+
_0x2ea2e5: 0x16c,
|
|
1506
|
+
_0x2c8d34: 0x189,
|
|
1507
|
+
_0x1561cf: 0x1fa,
|
|
1508
|
+
_0x422ff6: 0x200,
|
|
1509
|
+
_0x3934fe: 0x196,
|
|
1510
|
+
_0x412a65: 0x1ff
|
|
1511
|
+
}, _0x42b07d = _0x1bf962;
|
|
1512
|
+
if (_0x3c0472[_0x42b07d(_0x5740f8._0x559371)] === 0x0)
|
|
1513
|
+
return _0x42b07d(0x117);
|
|
1514
|
+
return _0x3c0472[_0x42b07d(0x100)](_0x34f38e => {
|
|
1515
|
+
const _0x3c6903 = _0x42b07d;
|
|
1516
|
+
if (_0x34f38e[_0x3c6903(_0x1dfb73._0x1d3f9f)]) {
|
|
1517
|
+
const _0x109535 = _0x34f38e[_0x3c6903(_0x1dfb73._0x508c16)] == null ? _0x3c6903(0x10b) : '#' + _0x34f38e[_0x3c6903(0x200)], _0x5679f6 = _0x34f38e[_0x3c6903(_0x1dfb73._0x1ffaec)] ? '\x20message=' + _0x34f38e['messageId'] : '';
|
|
1518
|
+
if (_0x34f38e[_0x3c6903(0x138)]) {
|
|
1519
|
+
const _0x308dc1 = [
|
|
1520
|
+
_0x3c6903(0xda),
|
|
1521
|
+
_0x34f38e[_0x3c6903(0x172)] ? _0x3c6903(0xea) : null,
|
|
1522
|
+
_0x34f38e['executionMode'] ? _0x3c6903(_0x1dfb73._0x29b0f4) + _0x34f38e['executionMode'] : null,
|
|
1523
|
+
_0x34f38e[_0x3c6903(_0x1dfb73._0x4a4e72)] ? _0x3c6903(0xfd) + _0x34f38e['threadTarget'] : null,
|
|
1524
|
+
_0x34f38e[_0x3c6903(0x1f7)] ? _0x3c6903(_0x1dfb73._0x298b7a) + _0x34f38e[_0x3c6903(0x1f7)] : null
|
|
1525
|
+
]['filter'](Boolean)[_0x3c6903(0x148)]('\x20');
|
|
1526
|
+
return _0x109535 + _0x3c6903(_0x1dfb73._0xbeaa7f) + _0x5679f6 + '\x20' + _0x308dc1 + _0x3c6903(_0x1dfb73._0x2ea2e5);
|
|
1527
|
+
}
|
|
1528
|
+
const _0x5934fd = _0x34f38e[_0x3c6903(_0x1dfb73._0x2c8d34)] ? _0x3c6903(_0x1dfb73._0x1561cf) + _0x34f38e['workerHandoffError'] : '';
|
|
1529
|
+
return _0x109535 + _0x3c6903(_0x1dfb73._0xbeaa7f) + _0x5679f6 + _0x5934fd;
|
|
1530
|
+
}
|
|
1531
|
+
const _0x44ed11 = _0x34f38e[_0x3c6903(_0x1dfb73._0x422ff6)] == null ? _0x34f38e['messageId'] ?? '(unknown)' : '#' + _0x34f38e[_0x3c6903(0x200)];
|
|
1532
|
+
return _0x44ed11 + '\x20failed:\x20' + (_0x34f38e[_0x3c6903(_0x1dfb73._0x3934fe)] ?? _0x3c6903(_0x1dfb73._0x412a65));
|
|
1533
|
+
})[_0x42b07d(0x148)]('\x0a');
|
|
1534
|
+
}
|
|
1535
|
+
function formatUnclaimTaskResult(_0x3d1e0d) {
|
|
1536
|
+
const _0x233e3c = { _0x1d928a: 0x200 }, _0xd662b5 = _0x1bf962, _0x42c4e5 = _0x3d1e0d['taskNumber'] == null ? '(legacy)' : '#' + _0x3d1e0d[_0xd662b5(_0x233e3c._0x1d928a)];
|
|
1537
|
+
return _0x42c4e5 + '\x20status=' + _0x3d1e0d['status'];
|
|
1538
|
+
}
|
|
1539
|
+
function formatUpdateTaskStatusResult(_0x1a12d9) {
|
|
1540
|
+
const _0x1d7ed1 = {
|
|
1541
|
+
_0x15aa4b: 0x16f,
|
|
1542
|
+
_0x332a35: 0xc9
|
|
1543
|
+
}, _0xb8c8e7 = _0x1bf962, _0x23b57a = _0x1a12d9[_0xb8c8e7(0x200)] == null ? '(legacy)' : '#' + _0x1a12d9[_0xb8c8e7(0x200)];
|
|
1544
|
+
return _0x23b57a + _0xb8c8e7(_0x1d7ed1._0x15aa4b) + _0x1a12d9[_0xb8c8e7(_0x1d7ed1._0x332a35)];
|
|
1545
|
+
}
|
|
1546
|
+
function getChatBridgeToolDefinitions() {
|
|
1547
|
+
const _0x3da37d = {
|
|
1548
|
+
_0x5b849e: 0x13b,
|
|
1549
|
+
_0x323204: 0x140,
|
|
1550
|
+
_0x4e9e2f: 0x204,
|
|
1551
|
+
_0xc0a1d4: 0x1b5,
|
|
1552
|
+
_0x22a765: 0x17f,
|
|
1553
|
+
_0xaf93fb: 0x193,
|
|
1554
|
+
_0x245354: 0xd8,
|
|
1555
|
+
_0x3b8a73: 0x198,
|
|
1556
|
+
_0x12777c: 0x199
|
|
1557
|
+
}, _0x4d86ec = _0x1bf962;
|
|
1558
|
+
return [
|
|
1559
|
+
{ 'name': _0x4d86ec(0x105) },
|
|
1560
|
+
{ 'name': _0x4d86ec(_0x3da37d._0x5b849e) },
|
|
1561
|
+
{ 'name': 'read_history' },
|
|
1562
|
+
{ 'name': _0x4d86ec(_0x3da37d._0x323204) },
|
|
1563
|
+
{ 'name': _0x4d86ec(_0x3da37d._0x4e9e2f) },
|
|
1564
|
+
{ 'name': _0x4d86ec(0x161) },
|
|
1565
|
+
{ 'name': _0x4d86ec(_0x3da37d._0xc0a1d4) },
|
|
1566
|
+
{ 'name': _0x4d86ec(_0x3da37d._0x22a765) },
|
|
1567
|
+
{ 'name': _0x4d86ec(_0x3da37d._0xaf93fb) },
|
|
1568
|
+
{ 'name': _0x4d86ec(0x19a) },
|
|
1569
|
+
{ 'name': 'update_task_status' },
|
|
1570
|
+
{ 'name': _0x4d86ec(_0x3da37d._0x245354) },
|
|
1571
|
+
{ 'name': 'get_worker_result' },
|
|
1572
|
+
{ 'name': 'finish_worker' },
|
|
1573
|
+
{ 'name': _0x4d86ec(_0x3da37d._0x3b8a73) },
|
|
1574
|
+
{ 'name': _0x4d86ec(_0x3da37d._0x12777c) }
|
|
1977
1575
|
];
|
|
1978
|
-
|
|
1979
|
-
|
|
1576
|
+
}
|
|
1577
|
+
function createChatBridgeHandlers(_0x4d244e) {
|
|
1578
|
+
const _0x41f72a = {
|
|
1579
|
+
_0x363edf: 0xf9,
|
|
1580
|
+
_0x53dde: 0xcb,
|
|
1581
|
+
_0x4a6a09: 0x1c0,
|
|
1582
|
+
_0x18312d: 0x196,
|
|
1583
|
+
_0x5c9258: 0x151,
|
|
1584
|
+
_0x3fb0cd: 0x20c,
|
|
1585
|
+
_0x1a09e8: 0xfa
|
|
1586
|
+
}, _0x52d414 = {
|
|
1587
|
+
_0x4fd404: 0xd6,
|
|
1588
|
+
_0x452b22: 0x136,
|
|
1589
|
+
_0x498070: 0x24b,
|
|
1590
|
+
_0x1a893b: 0xd6,
|
|
1591
|
+
_0x4b3f57: 0x212,
|
|
1592
|
+
_0x594e9d: 0x11e,
|
|
1593
|
+
_0xa1e948: 0x10a
|
|
1594
|
+
}, _0x3a7e38 = {
|
|
1595
|
+
_0x37dd15: 0x1cc,
|
|
1596
|
+
_0xfe9c7a: 0x1c1,
|
|
1597
|
+
_0x272a37: 0x1c0
|
|
1598
|
+
}, _0x5094f7 = {
|
|
1599
|
+
_0x3caa2e: 0xf9,
|
|
1600
|
+
_0x588635: 0x1bc,
|
|
1601
|
+
_0x4bd154: 0xf9,
|
|
1602
|
+
_0x36cdd6: 0x183,
|
|
1603
|
+
_0x170c86: 0xdf,
|
|
1604
|
+
_0x31c702: 0x1e1,
|
|
1605
|
+
_0x68075f: 0xdf
|
|
1606
|
+
}, _0x33b6cc = {
|
|
1607
|
+
_0x5b0dde: 0xf9,
|
|
1608
|
+
_0x1a028d: 0x1bc,
|
|
1609
|
+
_0x2cb227: 0x1c0,
|
|
1610
|
+
_0x31988a: 0x10a,
|
|
1611
|
+
_0x5985f0: 0x1df,
|
|
1612
|
+
_0x592035: 0xc8
|
|
1613
|
+
}, _0xa9506 = {
|
|
1614
|
+
_0x78b693: 0x1a9,
|
|
1615
|
+
_0x5a2635: 0x21f,
|
|
1616
|
+
_0x4b6d0b: 0x1e9
|
|
1617
|
+
}, _0x4facf1 = {
|
|
1618
|
+
_0x1adc48: 0xf6,
|
|
1619
|
+
_0xeb3f4c: 0xdc
|
|
1620
|
+
}, _0x4b8670 = {
|
|
1621
|
+
_0xc2e12a: 0x12e,
|
|
1622
|
+
_0x4c83dd: 0x110
|
|
1623
|
+
}, _0x240b82 = {
|
|
1624
|
+
_0x1bde77: 0x1ba,
|
|
1625
|
+
_0x1c7664: 0x19f
|
|
1626
|
+
}, _0x5ea031 = {
|
|
1627
|
+
_0x183f5d: 0x13c,
|
|
1628
|
+
_0x4af131: 0x20d,
|
|
1629
|
+
_0x2e5de6: 0x23c,
|
|
1630
|
+
_0x54cffc: 0x200,
|
|
1631
|
+
_0x194b2c: 0x22a
|
|
1632
|
+
}, _0x81a27b = {
|
|
1633
|
+
_0x1c940f: 0x12e,
|
|
1634
|
+
_0x4dc5e6: 0x17b
|
|
1635
|
+
}, _0x158e8e = {
|
|
1636
|
+
_0x3fb862: 0x1fe,
|
|
1637
|
+
_0x5afd00: 0xf9,
|
|
1638
|
+
_0x3d7e02: 0x19c,
|
|
1639
|
+
_0x9f2907: 0xd6,
|
|
1640
|
+
_0x3f893e: 0xc9,
|
|
1641
|
+
_0x23a644: 0x15c,
|
|
1642
|
+
_0x2919df: 0x1a0,
|
|
1643
|
+
_0x220d64: 0x1da,
|
|
1644
|
+
_0x439770: 0x17b,
|
|
1645
|
+
_0x2abb44: 0x200,
|
|
1646
|
+
_0x43ff60: 0x200
|
|
1647
|
+
}, _0x34fd8a = { _0x1a8948: 0x113 }, _0x1b982d = { _0x547f74: 0x12e }, _0x3ec197 = {
|
|
1648
|
+
_0x2db87e: 0x12e,
|
|
1649
|
+
_0xf0eb73: 0x162,
|
|
1650
|
+
_0x32274e: 0x180
|
|
1651
|
+
}, _0xef17a2 = {
|
|
1652
|
+
_0x597cd8: 0x12e,
|
|
1653
|
+
_0x48a04f: 0x14b,
|
|
1654
|
+
_0x3abacd: 0x125,
|
|
1655
|
+
_0x59adad: 0x200,
|
|
1656
|
+
_0x3cda7b: 0x1ec,
|
|
1657
|
+
_0x4632d9: 0x1ca,
|
|
1658
|
+
_0x26b62c: 0x120,
|
|
1659
|
+
_0x16a0e4: 0x23a,
|
|
1660
|
+
_0x2f7077: 0x107,
|
|
1661
|
+
_0xf16fb4: 0x18b,
|
|
1662
|
+
_0x27bd90: 0x23c,
|
|
1663
|
+
_0x26302d: 0x208,
|
|
1664
|
+
_0x29da4b: 0x14a,
|
|
1665
|
+
_0x22fab3: 0x178,
|
|
1666
|
+
_0x2768c8: 0x1f3,
|
|
1667
|
+
_0x3f538d: 0x1dd,
|
|
1668
|
+
_0x16218a: 0x143,
|
|
1669
|
+
_0x115eca: 0x20d
|
|
1670
|
+
}, _0x3ec9b7 = {
|
|
1671
|
+
_0x41d768: 0x180,
|
|
1672
|
+
_0x4fef3f: 0xf9,
|
|
1673
|
+
_0x396e48: 0x19c,
|
|
1674
|
+
_0x56268d: 0xd6,
|
|
1675
|
+
_0x55bd4d: 0x151,
|
|
1676
|
+
_0x55889e: 0xc9,
|
|
1677
|
+
_0x403527: 0x1f4,
|
|
1678
|
+
_0x735447: 0x156
|
|
1679
|
+
}, _0x5dd4db = {
|
|
1680
|
+
_0x558ce4: 0x13c,
|
|
1681
|
+
_0x19529a: 0x1ec,
|
|
1682
|
+
_0x12829f: 0x20d,
|
|
1683
|
+
_0x3d756f: 0x1d1,
|
|
1684
|
+
_0x5556be: 0x101,
|
|
1685
|
+
_0x32288a: 0x11f,
|
|
1686
|
+
_0x49e6e7: 0x20f,
|
|
1687
|
+
_0x405f3b: 0xe6,
|
|
1688
|
+
_0x14e56d: 0xf9,
|
|
1689
|
+
_0x2bc3fd: 0x24b,
|
|
1690
|
+
_0x530a4a: 0xd6,
|
|
1691
|
+
_0x4abcb9: 0x212,
|
|
1692
|
+
_0x42cae9: 0x22a,
|
|
1693
|
+
_0x506cac: 0x1cb,
|
|
1694
|
+
_0x40770e: 0xc6
|
|
1695
|
+
};
|
|
1696
|
+
async function _0x4f96f1(_0x5a8f47) {
|
|
1697
|
+
const _0x47ecfe = _0x3fbb;
|
|
1698
|
+
if (!_0x4d244e['daemonLocalUrl'] || !_0x4d244e['agentId'] || _0x4d244e['workerMode'] || _0x4d244e[_0x47ecfe(0x1dc)] !== !![])
|
|
1699
|
+
return null;
|
|
1700
|
+
const _0x4f6e61 = parseTarget(_0x5a8f47[_0x47ecfe(_0x5dd4db._0x558ce4)]);
|
|
1701
|
+
if (_0x4f6e61[_0x47ecfe(0x11b)] !== 'channel')
|
|
1702
|
+
return null;
|
|
1703
|
+
const _0xea128b = _0x5a8f47[_0x47ecfe(0x1ec)] != null ? _0x4f6e61['channelTarget'] + ':t' + _0x5a8f47[_0x47ecfe(_0x5dd4db._0x19529a)] : _0x4f6e61[_0x47ecfe(0x213)] + ':' + _0x5a8f47[_0x47ecfe(_0x5dd4db._0x12829f)];
|
|
1704
|
+
let _0x155f4c;
|
|
1705
|
+
try {
|
|
1706
|
+
const _0x1c7e7b = await _0x4d244e['client'][_0x47ecfe(0xf5)]({
|
|
1707
|
+
'channel': _0xea128b,
|
|
1708
|
+
'limit': 0x14
|
|
1709
|
+
});
|
|
1710
|
+
_0x155f4c = _0x1c7e7b[_0x47ecfe(0xfc)][_0x47ecfe(0x170)](_0x1bf910 => _0x1bf910['messageId'] === _0x5a8f47[_0x47ecfe(0x20d)]);
|
|
1711
|
+
} catch {
|
|
1712
|
+
_0x155f4c = void 0x0;
|
|
1713
|
+
}
|
|
1714
|
+
const _0x54302c = _0x5a8f47['taskNumber'] == null ? _0x47ecfe(0x10b) : '#' + _0x5a8f47[_0x47ecfe(0x200)], _0x156b8d = [
|
|
1715
|
+
_0x47ecfe(0x206) + _0xea128b + _0x47ecfe(_0x5dd4db._0x3d756f) + _0x5a8f47['messageId']['slice'](0x0, 0x8) + _0x47ecfe(0x141) + new Date()[_0x47ecfe(0x121)]() + ']\x20@system:\x20[claim-handoff]\x20' + _0x54302c + _0x47ecfe(_0x5dd4db._0x5556be),
|
|
1716
|
+
'',
|
|
1717
|
+
_0x155f4c ? _0x47ecfe(_0x5dd4db._0x32288a) + _0x155f4c[_0x47ecfe(_0x5dd4db._0x49e6e7)] : _0x47ecfe(0x15e) + _0x5a8f47['messageId'],
|
|
1718
|
+
'',
|
|
1719
|
+
_0x47ecfe(0x22e) + _0xea128b,
|
|
1720
|
+
_0x47ecfe(_0x5dd4db._0x405f3b)
|
|
1721
|
+
]['join']('\x0a'), _0x506e98 = await fetch(_0x4d244e[_0x47ecfe(_0x5dd4db._0x14e56d)] + '/workers/deliver', {
|
|
1722
|
+
'method': 'POST',
|
|
1723
|
+
'headers': { 'Content-Type': _0x47ecfe(_0x5dd4db._0x2bc3fd) },
|
|
1724
|
+
'body': JSON['stringify']({
|
|
1725
|
+
'agent_id': _0x4d244e[_0x47ecfe(_0x5dd4db._0x530a4a)],
|
|
1726
|
+
'thread_target': _0xea128b,
|
|
1727
|
+
'spawn_packet': {
|
|
1728
|
+
'replyTarget': _0xea128b,
|
|
1729
|
+
..._0x5a8f47['taskId'] ? { 'taskId': _0x5a8f47[_0x47ecfe(0x23c)] } : _0x5a8f47[_0x47ecfe(0x200)] != null ? { 'taskId': 'task-' + _0x5a8f47['taskNumber'] } : {}
|
|
1730
|
+
},
|
|
1731
|
+
'payload': {
|
|
1732
|
+
'mode': _0x47ecfe(0x127),
|
|
1733
|
+
'text': _0x156b8d
|
|
1734
|
+
}
|
|
1735
|
+
})
|
|
1736
|
+
}), _0x5b1a57 = await _0x506e98[_0x47ecfe(0x151)]();
|
|
1737
|
+
if (!_0x5b1a57['ok'])
|
|
1738
|
+
throw new Error(_0x5b1a57[_0x47ecfe(_0x5dd4db._0x4abcb9)] ?? _0x47ecfe(_0x5dd4db._0x42cae9));
|
|
1739
|
+
return {
|
|
1740
|
+
'stopMain': !![],
|
|
1741
|
+
'threadTarget': _0xea128b,
|
|
1742
|
+
'workerDisposition': _0x5b1a57[_0x47ecfe(0x224)] === _0x47ecfe(0x229) ? _0x47ecfe(0x229) : _0x47ecfe(_0x5dd4db._0x506cac),
|
|
1743
|
+
'workerHandoff': !![],
|
|
1744
|
+
'workerSessionId': _0x5b1a57[_0x47ecfe(_0x5dd4db._0x40770e)] ?? '',
|
|
1745
|
+
'executionMode': 'worker'
|
|
1746
|
+
};
|
|
1747
|
+
}
|
|
1748
|
+
async function _0x2e49eb() {
|
|
1749
|
+
const _0x6fae36 = _0x3fbb;
|
|
1750
|
+
if (!_0x4d244e['daemonLocalUrl'] || !_0x4d244e['agentId'] || _0x4d244e[_0x6fae36(_0x3ec9b7._0x41d768)])
|
|
1751
|
+
return null;
|
|
1752
|
+
try {
|
|
1753
|
+
const _0x665824 = await fetch(_0x4d244e[_0x6fae36(_0x3ec9b7._0x4fef3f)] + _0x6fae36(_0x3ec9b7._0x396e48) + encodeURIComponent(_0x4d244e[_0x6fae36(_0x3ec9b7._0x56268d)])), _0x2ece26 = await _0x665824[_0x6fae36(_0x3ec9b7._0x55bd4d)]();
|
|
1754
|
+
if (!_0x2ece26['ok'])
|
|
1755
|
+
return null;
|
|
1756
|
+
const _0x51361c = new Set();
|
|
1757
|
+
for (const _0x229650 of _0x2ece26[_0x6fae36(0xc1)]) {
|
|
1758
|
+
_0x229650[_0x6fae36(_0x3ec9b7._0x55889e)] !== _0x6fae36(0x15c) && _0x229650['thread_target'] && _0x51361c[_0x6fae36(_0x3ec9b7._0x403527)](_0x229650[_0x6fae36(0x20a)]);
|
|
1759
|
+
}
|
|
1760
|
+
return _0x51361c[_0x6fae36(_0x3ec9b7._0x735447)] > 0x0 ? _0x51361c : null;
|
|
1761
|
+
} catch {
|
|
1762
|
+
return null;
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
return {
|
|
1766
|
+
async 'send_message'(_0x122b45) {
|
|
1767
|
+
const _0x351cf5 = _0x3fbb;
|
|
1768
|
+
if (!_0x4d244e[_0x351cf5(0x180)] && _0x4d244e['workerModeEnabled'] && _0x4d244e[_0x351cf5(0xf9)] && _0x4d244e['agentId']) {
|
|
1769
|
+
const _0x4041ad = await _0x4d244e[_0x351cf5(_0xef17a2._0x597cd8)][_0x351cf5(_0xef17a2._0x48a04f)](_0x122b45['target']);
|
|
1770
|
+
if (_0x4041ad[_0x351cf5(_0xef17a2._0x3abacd)] && _0x4041ad['threadId']) {
|
|
1771
|
+
const _0x24d737 = _0x4041ad[_0x351cf5(0x125)][_0x351cf5(0x200)] != null ? '#' + _0x4041ad[_0x351cf5(0x125)][_0x351cf5(_0xef17a2._0x59adad)] : '(legacy)', _0x2786c2 = _0x4041ad[_0x351cf5(0x1ec)] != null ? _0x4041ad['target'] + ':t' + _0x4041ad[_0x351cf5(_0xef17a2._0x3cda7b)] : _0x4041ad[_0x351cf5(_0xef17a2._0x4632d9)] + ':' + _0x4041ad['threadId'][_0x351cf5(_0xef17a2._0x26b62c)](0x0, 0x8), _0x22ce82 = [
|
|
1772
|
+
_0x351cf5(0x206) + _0x2786c2 + _0x351cf5(0x217) + new Date()[_0x351cf5(0x121)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1773
|
+
'',
|
|
1774
|
+
_0x351cf5(_0xef17a2._0x16a0e4) + _0x122b45[_0x351cf5(0x20f)],
|
|
1775
|
+
'Task:\x20' + _0x24d737 + '\x20(' + _0x4041ad[_0x351cf5(0x125)][_0x351cf5(0x23c)] + ')',
|
|
1776
|
+
'Thread\x20target:\x20' + _0x2786c2,
|
|
1777
|
+
'Read\x20thread\x20history\x20before\x20taking\x20action.\x20Do\x20not\x20echo\x20this\x20message\x20to\x20the\x20thread.'
|
|
1778
|
+
][_0x351cf5(0x148)]('\x0a'), _0x872fe2 = await fetch(_0x4d244e[_0x351cf5(0xf9)] + _0x351cf5(_0xef17a2._0x2f7077), {
|
|
1779
|
+
'method': _0x351cf5(0x136),
|
|
1780
|
+
'headers': { 'Content-Type': _0x351cf5(0x24b) },
|
|
1781
|
+
'body': JSON[_0x351cf5(_0xef17a2._0xf16fb4)]({
|
|
1782
|
+
'agent_id': _0x4d244e[_0x351cf5(0xd6)],
|
|
1783
|
+
'thread_target': _0x2786c2,
|
|
1784
|
+
'spawn_packet': {
|
|
1785
|
+
'replyTarget': _0x2786c2,
|
|
1786
|
+
'taskId': _0x4041ad['task'][_0x351cf5(_0xef17a2._0x27bd90)]
|
|
1787
|
+
},
|
|
1788
|
+
'payload': {
|
|
1789
|
+
'mode': _0x351cf5(0x127),
|
|
1790
|
+
'text': _0x22ce82
|
|
1791
|
+
}
|
|
1792
|
+
})
|
|
1793
|
+
}), _0x4df5ad = await _0x872fe2['json']();
|
|
1794
|
+
if (!_0x4df5ad['ok'])
|
|
1795
|
+
throw new Error(_0x4df5ad['error'] ?? _0x351cf5(0xd4));
|
|
1796
|
+
return [
|
|
1797
|
+
_0x351cf5(_0xef17a2._0x26302d) + _0x24d737 + _0x351cf5(0xd1) + _0x2786c2 + _0x351cf5(_0xef17a2._0x29da4b),
|
|
1798
|
+
_0x351cf5(_0xef17a2._0x22fab3) + (_0x4df5ad[_0x351cf5(0x224)] === _0x351cf5(0x229) ? 'queued' : 'started') + '.',
|
|
1799
|
+
'⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
|
|
1800
|
+
]['join']('\x0a');
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
const _0x313d3e = await _0x4d244e['client'][_0x351cf5(_0xef17a2._0x2768c8)]({
|
|
1804
|
+
'attachmentIds': _0x122b45['attachment_ids'],
|
|
1805
|
+
'content': _0x122b45[_0x351cf5(0x20f)],
|
|
1806
|
+
'target': _0x122b45[_0x351cf5(_0xef17a2._0x4632d9)],
|
|
1807
|
+
'visibility': _0x122b45[_0x351cf5(_0xef17a2._0x3f538d)]
|
|
1808
|
+
});
|
|
1809
|
+
return _0x351cf5(0xe9) + _0x122b45['target'] + _0x351cf5(_0xef17a2._0x16218a) + _0x313d3e[_0x351cf5(_0xef17a2._0x115eca)];
|
|
1810
|
+
},
|
|
1811
|
+
async 'check_messages'() {
|
|
1812
|
+
const _0x38c043 = _0x3fbb, _0x39efb5 = await _0x4d244e[_0x38c043(_0x3ec197._0x2db87e)][_0x38c043(_0x3ec197._0xf0eb73)]();
|
|
1813
|
+
if (!_0x4d244e[_0x38c043(_0x3ec197._0x32274e)]) {
|
|
1814
|
+
const _0x270af0 = await _0x2e49eb();
|
|
1815
|
+
if (_0x270af0)
|
|
1816
|
+
return formatCheckMessages(_0x39efb5[_0x38c043(0xfc)][_0x38c043(0xcc)](_0x167591 => !_0x270af0[_0x38c043(0x1b8)](_0x167591[_0x38c043(0x1ca)])));
|
|
1817
|
+
}
|
|
1818
|
+
return formatCheckMessages(_0x39efb5[_0x38c043(0xfc)]);
|
|
1819
|
+
},
|
|
1820
|
+
async 'read_history'(_0x4ebfcc) {
|
|
1821
|
+
const _0x3a1d91 = _0x3fbb, _0x3b8a03 = await _0x4d244e[_0x3a1d91(_0x1b982d._0x547f74)]['readHistory'](_0x4ebfcc);
|
|
1822
|
+
return formatHistory(_0x3b8a03);
|
|
1823
|
+
},
|
|
1824
|
+
async 'list_server'() {
|
|
1825
|
+
const _0x6baf24 = _0x3fbb, _0x3c2aa2 = await _0x4d244e[_0x6baf24(0x12e)][_0x6baf24(_0x34fd8a._0x1a8948)]();
|
|
1826
|
+
return formatServerDirectory(_0x3c2aa2);
|
|
1827
|
+
},
|
|
1828
|
+
async 'list_tasks'(_0xafa1c5) {
|
|
1829
|
+
const _0x256908 = _0x3fbb, _0x253bc5 = await _0x4d244e['client'][_0x256908(_0x158e8e._0x3fb862)](_0xafa1c5);
|
|
1830
|
+
let _0x51d7e7;
|
|
1831
|
+
if (_0x4d244e[_0x256908(_0x158e8e._0x5afd00)] && _0x4d244e['agentId'])
|
|
1832
|
+
try {
|
|
1833
|
+
const _0x501f2b = await fetch(_0x4d244e['daemonLocalUrl'] + _0x256908(_0x158e8e._0x3d7e02) + encodeURIComponent(_0x4d244e[_0x256908(_0x158e8e._0x9f2907)])), _0x122abe = await _0x501f2b[_0x256908(0x151)]();
|
|
1834
|
+
if (_0x122abe['ok']) {
|
|
1835
|
+
const _0x2918e1 = _0xafa1c5['channel'] + ':';
|
|
1836
|
+
_0x51d7e7 = new Set();
|
|
1837
|
+
for (const _0x31881d of _0x122abe['workers']) {
|
|
1838
|
+
if (_0x31881d[_0x256908(_0x158e8e._0x3f893e)] === _0x256908(_0x158e8e._0x23a644))
|
|
1839
|
+
continue;
|
|
1840
|
+
if (_0x31881d['thread_target']?.[_0x256908(_0x158e8e._0x2919df)](_0x2918e1)) {
|
|
1841
|
+
const _0x53ab1d = _0x31881d['thread_target']['slice'](_0x2918e1[_0x256908(_0x158e8e._0x220d64)]), _0x134f43 = _0x253bc5[_0x256908(_0x158e8e._0x439770)][_0x256908(0x170)](_0x46654a => _0x46654a[_0x256908(0x20d)]?.[_0x256908(0x1a0)](_0x53ab1d) === !![]);
|
|
1842
|
+
if (_0x134f43?.[_0x256908(_0x158e8e._0x2abb44)] != null) {
|
|
1843
|
+
_0x51d7e7['add'](_0x134f43[_0x256908(0x200)]);
|
|
1844
|
+
continue;
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
if (_0x31881d[_0x256908(0x248)]) {
|
|
1848
|
+
const _0xf9af1f = _0x253bc5[_0x256908(0x17b)][_0x256908(0x170)](_0x5709b9 => _0x5709b9[_0x256908(0x23c)] === _0x31881d[_0x256908(0x248)]);
|
|
1849
|
+
_0xf9af1f?.['taskNumber'] != null && _0x51d7e7['add'](_0xf9af1f[_0x256908(_0x158e8e._0x43ff60)]);
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
} catch {
|
|
1854
|
+
}
|
|
1855
|
+
return formatTaskList(_0x253bc5['tasks'], _0x51d7e7);
|
|
1856
|
+
},
|
|
1857
|
+
async 'create_tasks'(_0x18e836) {
|
|
1858
|
+
const _0x1b6562 = _0x3fbb, _0x160dc6 = await _0x4d244e[_0x1b6562(_0x81a27b._0x1c940f)][_0x1b6562(0x146)](_0x18e836);
|
|
1859
|
+
return formatCreatedTasks(_0x160dc6[_0x1b6562(_0x81a27b._0x4dc5e6)]);
|
|
1860
|
+
},
|
|
1861
|
+
async 'claim_tasks'(_0x1fdf63) {
|
|
1862
|
+
const _0x3bcb7c = _0x3fbb, _0x21eec6 = await _0x4d244e[_0x3bcb7c(0x12e)][_0x3bcb7c(_0x240b82._0x1bde77)](_0x1fdf63), _0x44b488 = await Promise['all'](_0x21eec6[_0x3bcb7c(_0x240b82._0x1c7664)][_0x3bcb7c(0x100)](async _0x1c6c4d => {
|
|
1863
|
+
const _0x2e2a45 = _0x3bcb7c;
|
|
1864
|
+
if (!_0x1c6c4d['success'] || !_0x1c6c4d[_0x2e2a45(0x20d)])
|
|
1865
|
+
return _0x1c6c4d;
|
|
1866
|
+
try {
|
|
1867
|
+
const _0x49065f = await _0x4f96f1({
|
|
1868
|
+
'channel': _0x1fdf63[_0x2e2a45(_0x5ea031._0x183f5d)],
|
|
1869
|
+
'messageId': _0x1c6c4d[_0x2e2a45(_0x5ea031._0x4af131)],
|
|
1870
|
+
'taskId': _0x1c6c4d[_0x2e2a45(_0x5ea031._0x2e5de6)],
|
|
1871
|
+
'taskNumber': _0x1c6c4d[_0x2e2a45(_0x5ea031._0x54cffc)],
|
|
1872
|
+
'threadNumber': _0x1c6c4d['threadNumber']
|
|
1873
|
+
});
|
|
1874
|
+
return _0x49065f ? {
|
|
1875
|
+
..._0x1c6c4d,
|
|
1876
|
+
..._0x49065f
|
|
1877
|
+
} : _0x1c6c4d;
|
|
1878
|
+
} catch (_0x185d33) {
|
|
1879
|
+
return {
|
|
1880
|
+
..._0x1c6c4d,
|
|
1881
|
+
'workerHandoffError': _0x185d33 instanceof Error ? _0x185d33['message'] : _0x2e2a45(_0x5ea031._0x194b2c)
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
}));
|
|
1885
|
+
return formatClaimTaskResults(_0x44b488);
|
|
1886
|
+
},
|
|
1887
|
+
async 'unclaim_task'(_0x568007) {
|
|
1888
|
+
const _0x5c3258 = _0x3fbb, _0x802b01 = await _0x4d244e[_0x5c3258(_0x4b8670._0xc2e12a)][_0x5c3258(_0x4b8670._0x4c83dd)](_0x568007);
|
|
1889
|
+
return formatUnclaimTaskResult(_0x802b01);
|
|
1890
|
+
},
|
|
1891
|
+
async 'update_task_status'(_0x205e98) {
|
|
1892
|
+
const _0x104d46 = _0x3fbb, _0x19d9bc = await _0x4d244e[_0x104d46(0x12e)]['updateTaskStatus'](_0x205e98);
|
|
1893
|
+
return formatUpdateTaskStatusResult(_0x19d9bc);
|
|
1894
|
+
},
|
|
1895
|
+
async 'upload_file'(_0x3244eb) {
|
|
1896
|
+
const _0x7c4bd1 = _0x3fbb, _0x4451e9 = await _0x4d244e[_0x7c4bd1(0x12f)](_0x3244eb[_0x7c4bd1(_0x4facf1._0x1adc48)]), {
|
|
1897
|
+
sizeBytes: _0x34b7c7,
|
|
1898
|
+
..._0x4bae67
|
|
1899
|
+
} = _0x4451e9, _0x18e9cc = await _0x4d244e[_0x7c4bd1(0x12e)][_0x7c4bd1(_0x4facf1._0xeb3f4c)]({
|
|
1900
|
+
'channel': _0x3244eb['channel'],
|
|
1901
|
+
..._0x4bae67
|
|
1902
|
+
});
|
|
1903
|
+
return formatUploadResult(_0x18e9cc);
|
|
1904
|
+
},
|
|
1905
|
+
async 'view_file'(_0x224c57) {
|
|
1906
|
+
const _0x6a735e = _0x3fbb, _0x338f65 = await _0x4d244e['attachmentCache'][_0x6a735e(_0xa9506._0x78b693)](_0x224c57['attachment_id']);
|
|
1907
|
+
if (_0x338f65)
|
|
1908
|
+
return formatViewFileResult(_0x338f65, !![]);
|
|
1909
|
+
const _0x176a70 = await _0x4d244e[_0x6a735e(0x12e)][_0x6a735e(0x17c)](_0x224c57[_0x6a735e(0x1f2)]), _0x1ebe3a = await _0x4d244e[_0x6a735e(_0xa9506._0x5a2635)][_0x6a735e(0x203)]({
|
|
1910
|
+
'attachmentId': _0x224c57['attachment_id'],
|
|
1911
|
+
'contentType': _0x176a70[_0x6a735e(0x158)],
|
|
1912
|
+
'data': _0x176a70['data'],
|
|
1913
|
+
'originalFilename': _0x176a70[_0x6a735e(_0xa9506._0x4b6d0b)]
|
|
1914
|
+
});
|
|
1915
|
+
return formatViewFileResult(_0x1ebe3a, ![]);
|
|
1916
|
+
},
|
|
1917
|
+
async 'get_worker_status'(_0x58ead8) {
|
|
1918
|
+
const _0x751fe5 = _0x3fbb;
|
|
1919
|
+
if (!_0x4d244e[_0x751fe5(_0x33b6cc._0x5b0dde)])
|
|
1920
|
+
return _0x751fe5(_0x33b6cc._0x1a028d);
|
|
1921
|
+
const _0x325c37 = await fetch(_0x4d244e[_0x751fe5(0xf9)] + '/workers/status?work_key=' + encodeURIComponent(_0x58ead8[_0x751fe5(_0x33b6cc._0x2cb227)])), _0x23a5c8 = await _0x325c37['json']();
|
|
1922
|
+
if (!_0x23a5c8['ok'])
|
|
1923
|
+
return _0x751fe5(_0x33b6cc._0x31988a) + _0x58ead8[_0x751fe5(0x1c0)] + _0x751fe5(_0x33b6cc._0x5985f0);
|
|
1924
|
+
return _0x751fe5(_0x33b6cc._0x31988a) + _0x58ead8[_0x751fe5(0x1c0)] + _0x751fe5(_0x33b6cc._0x592035) + _0x23a5c8[_0x751fe5(0xc9)];
|
|
1925
|
+
},
|
|
1926
|
+
async 'get_worker_result'(_0x123c63) {
|
|
1927
|
+
const _0xb20563 = _0x3fbb;
|
|
1928
|
+
if (!_0x4d244e[_0xb20563(_0x5094f7._0x3caa2e)])
|
|
1929
|
+
return _0xb20563(_0x5094f7._0x588635);
|
|
1930
|
+
const _0x2e6672 = await fetch(_0x4d244e[_0xb20563(_0x5094f7._0x4bd154)] + _0xb20563(_0x5094f7._0x36cdd6) + encodeURIComponent(_0x123c63['work_key'])), _0x4cd21e = await _0x2e6672[_0xb20563(0x151)]();
|
|
1931
|
+
if (!_0x4cd21e[_0xb20563(_0x5094f7._0x170c86)])
|
|
1932
|
+
return _0xb20563(_0x5094f7._0x31c702) + _0x123c63[_0xb20563(0x1c0)] + '\x22';
|
|
1933
|
+
return JSON[_0xb20563(0x18b)](_0x4cd21e[_0xb20563(_0x5094f7._0x68075f)], null, 0x2);
|
|
1934
|
+
},
|
|
1935
|
+
async 'finish_worker'(_0x15823b) {
|
|
1936
|
+
const _0x231065 = _0x3fbb;
|
|
1937
|
+
if (!_0x4d244e[_0x231065(0xf9)])
|
|
1938
|
+
return _0x231065(0x1bc);
|
|
1939
|
+
const _0x485900 = await fetch(_0x4d244e['daemonLocalUrl'] + '/workers/finish', {
|
|
1940
|
+
'method': _0x231065(0x136),
|
|
1941
|
+
'headers': { 'Content-Type': _0x231065(0x24b) },
|
|
1942
|
+
'body': JSON['stringify']({
|
|
1943
|
+
'work_key': _0x15823b[_0x231065(0x1c0)],
|
|
1944
|
+
'resume_packet': {
|
|
1945
|
+
'objective': '',
|
|
1946
|
+
'result': _0x15823b['result'],
|
|
1947
|
+
'summary': _0x15823b[_0x231065(_0x3a7e38._0x37dd15)],
|
|
1948
|
+
'decisions': _0x15823b[_0x231065(0xd2)] ?? [],
|
|
1949
|
+
'filesChanged': _0x15823b['files_changed'] ?? [],
|
|
1950
|
+
'openIssues': _0x15823b[_0x231065(0x1bb)] ?? [],
|
|
1951
|
+
'nextSteps': _0x15823b[_0x231065(0x1b3)] ?? []
|
|
1952
|
+
}
|
|
1953
|
+
})
|
|
1954
|
+
}), _0x103aa3 = await _0x485900[_0x231065(0x151)]();
|
|
1955
|
+
if (!_0x103aa3['ok'])
|
|
1956
|
+
throw new Error(_0x103aa3[_0x231065(0x212)] ?? _0x231065(_0x3a7e38._0xfe9c7a));
|
|
1957
|
+
return _0x231065(0x10a) + _0x15823b[_0x231065(_0x3a7e38._0x272a37)] + '\x22\x20finished\x20with\x20result:\x20' + _0x15823b[_0x231065(0x222)];
|
|
1958
|
+
},
|
|
1959
|
+
async 'mark_waiting_input'(_0x328be9) {
|
|
1960
|
+
const _0x287456 = _0x3fbb;
|
|
1961
|
+
if (!_0x4d244e[_0x287456(0xf9)] || !_0x4d244e[_0x287456(_0x52d414._0x4fd404)])
|
|
1962
|
+
return _0x287456(0xf8);
|
|
1963
|
+
const _0x1cf348 = await fetch(_0x4d244e[_0x287456(0xf9)] + _0x287456(0x1ae), {
|
|
1964
|
+
'method': _0x287456(_0x52d414._0x452b22),
|
|
1965
|
+
'headers': { 'Content-Type': _0x287456(_0x52d414._0x498070) },
|
|
1966
|
+
'body': JSON[_0x287456(0x18b)]({
|
|
1967
|
+
'work_key': _0x328be9[_0x287456(0x1c0)],
|
|
1968
|
+
'agent_id': _0x4d244e[_0x287456(_0x52d414._0x1a893b)]
|
|
1969
|
+
})
|
|
1970
|
+
}), _0x3849fc = await _0x1cf348[_0x287456(0x151)]();
|
|
1971
|
+
if (!_0x3849fc['ok'])
|
|
1972
|
+
throw new Error(_0x3849fc[_0x287456(_0x52d414._0x4b3f57)] ?? _0x287456(_0x52d414._0x594e9d));
|
|
1973
|
+
return _0x287456(_0x52d414._0xa1e948) + _0x328be9['work_key'] + _0x287456(0x133);
|
|
1974
|
+
},
|
|
1975
|
+
async 'escalate_to_main'(_0x41f586) {
|
|
1976
|
+
const _0x2e5042 = _0x3fbb;
|
|
1977
|
+
if (!_0x4d244e['daemonLocalUrl'])
|
|
1978
|
+
return _0x2e5042(0x1bc);
|
|
1979
|
+
const _0x306b0d = await fetch(_0x4d244e[_0x2e5042(_0x41f72a._0x363edf)] + _0x2e5042(_0x41f72a._0x53dde), {
|
|
1980
|
+
'method': 'POST',
|
|
1981
|
+
'headers': { 'Content-Type': _0x2e5042(0x24b) },
|
|
1982
|
+
'body': JSON['stringify']({
|
|
1983
|
+
'work_key': _0x41f586[_0x2e5042(_0x41f72a._0x4a6a09)],
|
|
1984
|
+
'reason': _0x41f586[_0x2e5042(_0x41f72a._0x18312d)]
|
|
1985
|
+
})
|
|
1986
|
+
}), _0x22d60f = await _0x306b0d[_0x2e5042(_0x41f72a._0x5c9258)]();
|
|
1987
|
+
if (!_0x22d60f['ok'])
|
|
1988
|
+
throw new Error(_0x22d60f['error'] ?? _0x2e5042(_0x41f72a._0x3fb0cd));
|
|
1989
|
+
return _0x2e5042(_0x41f72a._0x1a09e8) + _0x41f586['reason'];
|
|
1990
|
+
}
|
|
1991
|
+
};
|
|
1992
|
+
}
|
|
1993
|
+
function textResult(_0x551864, _0xc3784c = ![]) {
|
|
1994
|
+
const _0x2233d1 = { _0x42a19f: 0x12d }, _0x31b8ea = _0x1bf962;
|
|
1995
|
+
return {
|
|
1996
|
+
'content': [{
|
|
1997
|
+
'type': _0x31b8ea(_0x2233d1._0x42a19f),
|
|
1998
|
+
'text': _0x551864
|
|
1999
|
+
}],
|
|
2000
|
+
..._0xc3784c ? { 'isError': !![] } : {}
|
|
1980
2001
|
};
|
|
1981
|
-
return _0x1f7c();
|
|
1982
2002
|
}
|
|
1983
|
-
async function registerChatBridgeTools(
|
|
1984
|
-
const
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
'content': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x5d7a03)](),
|
|
2047
|
-
'attachment_ids': _0x2498b0[_0x3f08a0(0x1ed)](_0x2498b0[_0x3f08a0(0x1ec)]())['optional'](),
|
|
2048
|
-
'visibility': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x11bc96)]([
|
|
2049
|
-
_0x3f08a0(_0x4cb3d6._0x5b638f),
|
|
2050
|
-
_0x3f08a0(0x206)
|
|
2051
|
-
])[_0x3f08a0(_0x4cb3d6._0x43d9df)]()['describe'](_0x3f08a0(0x1a4))
|
|
2052
|
-
}, async _0x41c2ec => {
|
|
2053
|
-
const _0x4bec13 = _0x3f08a0;
|
|
2003
|
+
async function registerChatBridgeTools(_0x405754, _0x400cab, _0x494f9a) {
|
|
2004
|
+
const _0x46d75c = {
|
|
2005
|
+
_0x43baa7: 0x105,
|
|
2006
|
+
_0x14901f: 0x1e7,
|
|
2007
|
+
_0x2c1b57: 0x246,
|
|
2008
|
+
_0x199d9d: 0x21d,
|
|
2009
|
+
_0x39bc6f: 0x1e4,
|
|
2010
|
+
_0x5655bd: 0x126,
|
|
2011
|
+
_0x2c457c: 0x1e4,
|
|
2012
|
+
_0x2522aa: 0x10c,
|
|
2013
|
+
_0x23791b: 0x186,
|
|
2014
|
+
_0x2dfaa1: 0x140,
|
|
2015
|
+
_0x47a531: 0x24c,
|
|
2016
|
+
_0x4a99db: 0x1e4,
|
|
2017
|
+
_0x5ccab3: 0x1e7,
|
|
2018
|
+
_0x25e2d3: 0x184,
|
|
2019
|
+
_0x3a4610: 0x1e4,
|
|
2020
|
+
_0x4ec372: 0x1a5,
|
|
2021
|
+
_0xc72345: 0x134,
|
|
2022
|
+
_0xe943c0: 0x171,
|
|
2023
|
+
_0x526d5f: 0x193,
|
|
2024
|
+
_0x282c21: 0x11d,
|
|
2025
|
+
_0x3f9536: 0x246,
|
|
2026
|
+
_0x2dfbcd: 0x225,
|
|
2027
|
+
_0x28289f: 0x188,
|
|
2028
|
+
_0x2ff49e: 0x171,
|
|
2029
|
+
_0x2e1eaf: 0x1e7,
|
|
2030
|
+
_0x4a15f4: 0x1c6,
|
|
2031
|
+
_0x3a5e8d: 0x184,
|
|
2032
|
+
_0x34fea0: 0x19d,
|
|
2033
|
+
_0x9a4324: 0x1af,
|
|
2034
|
+
_0x3d3363: 0x1e7,
|
|
2035
|
+
_0x587a52: 0x161,
|
|
2036
|
+
_0xb5b644: 0x1e7,
|
|
2037
|
+
_0x2c8b8d: 0xff,
|
|
2038
|
+
_0x54eda6: 0x1f8,
|
|
2039
|
+
_0x1d04d7: 0x115,
|
|
2040
|
+
_0x596aa9: 0x177,
|
|
2041
|
+
_0xc73c02: 0x1e7,
|
|
2042
|
+
_0x500673: 0x198,
|
|
2043
|
+
_0x55e45c: 0x1e7,
|
|
2044
|
+
_0x292c23: 0x199
|
|
2045
|
+
}, _0x58c225 = { _0x389288: 0x1b2 }, _0x4bcbc2 = { _0x239602: 0x20c }, _0x5a954d = { _0x3527a5: 0x1f8 }, _0x1b3d7d = { _0x17c0ac: 0xca }, _0x3c7d93 = { _0x1feced: 0x1b2 }, _0x591fee = { _0x42941d: 0x1b2 }, _0x400bd0 = {
|
|
2046
|
+
_0x51c649: 0x19a,
|
|
2047
|
+
_0x3a58ef: 0x1b2
|
|
2048
|
+
}, _0x30400c = {
|
|
2049
|
+
_0x561b11: 0x193,
|
|
2050
|
+
_0x1ed5a6: 0x1b2,
|
|
2051
|
+
_0xbf7784: 0x153
|
|
2052
|
+
}, _0x31e104 = { _0x573b10: 0x17f }, _0x205969 = { _0x9fdb9f: 0x1b5 }, _0x1dab32 = { _0x39c96b: 0x140 }, _0x4afbe8 = {
|
|
2053
|
+
_0x17838e: 0x21b,
|
|
2054
|
+
_0x360511: 0x1b2
|
|
2055
|
+
}, _0x4a0287 = { _0xaa07fc: 0x1b2 }, _0x2573e5 = _0x1bf962, {z: _0x2e8397} = await import(_0x2573e5(0x216));
|
|
2056
|
+
_0x405754[_0x2573e5(0x1e4)](_0x2573e5(_0x46d75c._0x43baa7), 'Send\x20a\x20message.\x20If\x20visibility\x20is\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20visibility:\x20aside\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Outside\x20threads,\x20do\x20not\x20set\x20visibility.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages.', {
|
|
2057
|
+
'target': _0x2e8397[_0x2573e5(_0x46d75c._0x14901f)](),
|
|
2058
|
+
'content': _0x2e8397[_0x2573e5(_0x46d75c._0x14901f)](),
|
|
2059
|
+
'attachment_ids': _0x2e8397[_0x2573e5(_0x46d75c._0x2c1b57)](_0x2e8397[_0x2573e5(_0x46d75c._0x14901f)]())[_0x2573e5(0x171)](),
|
|
2060
|
+
'visibility': _0x2e8397[_0x2573e5(0xef)]([
|
|
2061
|
+
_0x2573e5(0x144),
|
|
2062
|
+
_0x2573e5(_0x46d75c._0x199d9d)
|
|
2063
|
+
])[_0x2573e5(0x171)]()['describe'](_0x2573e5(0x249))
|
|
2064
|
+
}, async _0x512eb1 => {
|
|
2065
|
+
const _0x1e0c32 = _0x2573e5;
|
|
2054
2066
|
try {
|
|
2055
|
-
return textResult(await
|
|
2056
|
-
} catch (
|
|
2057
|
-
return textResult(
|
|
2067
|
+
return textResult(await _0x400cab['send_message'](_0x512eb1));
|
|
2068
|
+
} catch (_0x36f52c) {
|
|
2069
|
+
return textResult(_0x36f52c instanceof Error ? _0x36f52c[_0x1e0c32(0x1b2)] : 'send_message\x20failed', !![]);
|
|
2058
2070
|
}
|
|
2059
|
-
}),
|
|
2060
|
-
const
|
|
2071
|
+
}), _0x405754[_0x2573e5(_0x46d75c._0x39bc6f)](_0x2573e5(0x13b), _0x2573e5(_0x46d75c._0x5655bd), {}, async () => {
|
|
2072
|
+
const _0x1e85ac = _0x2573e5;
|
|
2061
2073
|
try {
|
|
2062
|
-
return textResult(await
|
|
2063
|
-
} catch (
|
|
2064
|
-
return textResult(
|
|
2074
|
+
return textResult(await _0x400cab[_0x1e85ac(0x13b)]());
|
|
2075
|
+
} catch (_0x50d8e3) {
|
|
2076
|
+
return textResult(_0x50d8e3 instanceof Error ? _0x50d8e3[_0x1e85ac(_0x4a0287._0xaa07fc)] : _0x1e85ac(0x1a1), !![]);
|
|
2065
2077
|
}
|
|
2066
|
-
}),
|
|
2067
|
-
'channel':
|
|
2068
|
-
'limit':
|
|
2069
|
-
'before':
|
|
2070
|
-
'after':
|
|
2071
|
-
}, async
|
|
2072
|
-
const
|
|
2078
|
+
}), _0x405754[_0x2573e5(_0x46d75c._0x2c457c)](_0x2573e5(0x21b), _0x2573e5(_0x46d75c._0x2522aa), {
|
|
2079
|
+
'channel': _0x2e8397[_0x2573e5(0x1e7)](),
|
|
2080
|
+
'limit': _0x2e8397[_0x2573e5(_0x46d75c._0x23791b)]()['optional'](),
|
|
2081
|
+
'before': _0x2e8397[_0x2573e5(0x186)]()['optional'](),
|
|
2082
|
+
'after': _0x2e8397[_0x2573e5(_0x46d75c._0x23791b)]()[_0x2573e5(0x171)]()
|
|
2083
|
+
}, async _0x1b8c16 => {
|
|
2084
|
+
const _0x2076c4 = _0x2573e5;
|
|
2073
2085
|
try {
|
|
2074
|
-
return textResult(await
|
|
2075
|
-
} catch (
|
|
2076
|
-
return textResult(
|
|
2086
|
+
return textResult(await _0x400cab[_0x2076c4(_0x4afbe8._0x17838e)](_0x1b8c16));
|
|
2087
|
+
} catch (_0x512721) {
|
|
2088
|
+
return textResult(_0x512721 instanceof Error ? _0x512721[_0x2076c4(_0x4afbe8._0x360511)] : 'read_history\x20failed', !![]);
|
|
2077
2089
|
}
|
|
2078
|
-
}),
|
|
2079
|
-
const
|
|
2090
|
+
}), _0x405754[_0x2573e5(0x1e4)](_0x2573e5(_0x46d75c._0x2dfaa1), _0x2573e5(_0x46d75c._0x47a531), {}, async () => {
|
|
2091
|
+
const _0x348e1b = _0x2573e5;
|
|
2080
2092
|
try {
|
|
2081
|
-
return textResult(await
|
|
2082
|
-
} catch (
|
|
2083
|
-
return textResult(
|
|
2093
|
+
return textResult(await _0x400cab[_0x348e1b(_0x1dab32._0x39c96b)]());
|
|
2094
|
+
} catch (_0x522dfa) {
|
|
2095
|
+
return textResult(_0x522dfa instanceof Error ? _0x522dfa[_0x348e1b(0x1b2)] : _0x348e1b(0xfb), !![]);
|
|
2084
2096
|
}
|
|
2085
|
-
}),
|
|
2086
|
-
'channel':
|
|
2087
|
-
'status':
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
])[
|
|
2093
|
-
}, async
|
|
2094
|
-
const
|
|
2097
|
+
}), _0x405754[_0x2573e5(_0x46d75c._0x4a99db)](_0x2573e5(0x1b5), _0x2573e5(0x190), {
|
|
2098
|
+
'channel': _0x2e8397[_0x2573e5(_0x46d75c._0x5ccab3)](),
|
|
2099
|
+
'status': _0x2e8397[_0x2573e5(0xef)]([
|
|
2100
|
+
_0x2573e5(0x245),
|
|
2101
|
+
_0x2573e5(_0x46d75c._0x25e2d3),
|
|
2102
|
+
'in_review',
|
|
2103
|
+
_0x2573e5(0x152)
|
|
2104
|
+
])[_0x2573e5(0x171)]()
|
|
2105
|
+
}, async _0xd68d43 => {
|
|
2106
|
+
const _0x19f455 = _0x2573e5;
|
|
2095
2107
|
try {
|
|
2096
|
-
return textResult(await
|
|
2097
|
-
} catch (
|
|
2098
|
-
return textResult(
|
|
2108
|
+
return textResult(await _0x400cab[_0x19f455(_0x205969._0x9fdb9f)](_0xd68d43));
|
|
2109
|
+
} catch (_0x1a82d8) {
|
|
2110
|
+
return textResult(_0x1a82d8 instanceof Error ? _0x1a82d8[_0x19f455(0x1b2)] : _0x19f455(0x192), !![]);
|
|
2099
2111
|
}
|
|
2100
|
-
}),
|
|
2101
|
-
'channel':
|
|
2102
|
-
'idempotency_key':
|
|
2103
|
-
'tasks':
|
|
2104
|
-
'title':
|
|
2105
|
-
'description':
|
|
2106
|
-
'priority':
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
])[
|
|
2112
|
+
}), _0x405754[_0x2573e5(_0x46d75c._0x3a4610)]('create_tasks', 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.', {
|
|
2113
|
+
'channel': _0x2e8397[_0x2573e5(0x1e7)](),
|
|
2114
|
+
'idempotency_key': _0x2e8397[_0x2573e5(_0x46d75c._0x14901f)]()[_0x2573e5(0x171)](),
|
|
2115
|
+
'tasks': _0x2e8397[_0x2573e5(_0x46d75c._0x2c1b57)](_0x2e8397[_0x2573e5(0x14c)]({
|
|
2116
|
+
'title': _0x2e8397[_0x2573e5(0x1e7)](),
|
|
2117
|
+
'description': _0x2e8397[_0x2573e5(0x1e7)]()[_0x2573e5(0x171)](),
|
|
2118
|
+
'priority': _0x2e8397['enum']([
|
|
2119
|
+
_0x2573e5(0x242),
|
|
2120
|
+
_0x2573e5(_0x46d75c._0x4ec372),
|
|
2121
|
+
_0x2573e5(0xc4),
|
|
2122
|
+
_0x2573e5(_0x46d75c._0xc72345)
|
|
2123
|
+
])[_0x2573e5(_0x46d75c._0xe943c0)]()
|
|
2112
2124
|
}))
|
|
2113
|
-
}, async
|
|
2125
|
+
}, async _0x5dd46d => {
|
|
2126
|
+
const _0x1cc13c = _0x2573e5;
|
|
2114
2127
|
try {
|
|
2115
|
-
return textResult(await
|
|
2116
|
-
} catch (
|
|
2117
|
-
return textResult(
|
|
2128
|
+
return textResult(await _0x400cab[_0x1cc13c(_0x31e104._0x573b10)](_0x5dd46d));
|
|
2129
|
+
} catch (_0xe7a06d) {
|
|
2130
|
+
return textResult(_0xe7a06d instanceof Error ? _0xe7a06d[_0x1cc13c(0x1b2)] : 'create_tasks\x20failed', !![]);
|
|
2118
2131
|
}
|
|
2119
|
-
}),
|
|
2120
|
-
'channel':
|
|
2121
|
-
'task_numbers':
|
|
2122
|
-
'message_ids':
|
|
2123
|
-
'evidence':
|
|
2124
|
-
'create_thread':
|
|
2125
|
-
'create_task':
|
|
2126
|
-
}))[
|
|
2127
|
-
'idempotency_key':
|
|
2128
|
-
}, async
|
|
2129
|
-
const
|
|
2132
|
+
}), _0x405754[_0x2573e5(_0x46d75c._0x4a99db)](_0x2573e5(_0x46d75c._0x526d5f), _0x2573e5(_0x46d75c._0x282c21), {
|
|
2133
|
+
'channel': _0x2e8397['string'](),
|
|
2134
|
+
'task_numbers': _0x2e8397[_0x2573e5(_0x46d75c._0x3f9536)](_0x2e8397['number']())[_0x2573e5(0x171)](),
|
|
2135
|
+
'message_ids': _0x2e8397[_0x2573e5(0x246)](_0x2e8397['string']())[_0x2573e5(_0x46d75c._0xe943c0)](),
|
|
2136
|
+
'evidence': _0x2e8397[_0x2573e5(_0x46d75c._0x2dfbcd)](_0x2e8397[_0x2573e5(0x1e7)](), _0x2e8397[_0x2573e5(0x14c)]({
|
|
2137
|
+
'create_thread': _0x2e8397[_0x2573e5(_0x46d75c._0x28289f)]()[_0x2573e5(0x171)](),
|
|
2138
|
+
'create_task': _0x2e8397[_0x2573e5(_0x46d75c._0x28289f)]()[_0x2573e5(_0x46d75c._0x2ff49e)]()
|
|
2139
|
+
}))['optional'](),
|
|
2140
|
+
'idempotency_key': _0x2e8397[_0x2573e5(0x1e7)]()[_0x2573e5(0x171)]()
|
|
2141
|
+
}, async _0x3470ac => {
|
|
2142
|
+
const _0x286095 = _0x2573e5;
|
|
2130
2143
|
try {
|
|
2131
|
-
return textResult(await
|
|
2132
|
-
} catch (
|
|
2133
|
-
return textResult(
|
|
2144
|
+
return textResult(await _0x400cab[_0x286095(_0x30400c._0x561b11)](_0x3470ac));
|
|
2145
|
+
} catch (_0x510e99) {
|
|
2146
|
+
return textResult(_0x510e99 instanceof Error ? _0x510e99[_0x286095(_0x30400c._0x1ed5a6)] : _0x286095(_0x30400c._0xbf7784), !![]);
|
|
2134
2147
|
}
|
|
2135
|
-
}),
|
|
2136
|
-
'channel':
|
|
2137
|
-
'task_number':
|
|
2138
|
-
'idempotency_key':
|
|
2139
|
-
}, async
|
|
2140
|
-
const
|
|
2148
|
+
}), _0x405754[_0x2573e5(0x1e4)]('unclaim_task', _0x2573e5(0x243), {
|
|
2149
|
+
'channel': _0x2e8397[_0x2573e5(_0x46d75c._0x5ccab3)](),
|
|
2150
|
+
'task_number': _0x2e8397['number'](),
|
|
2151
|
+
'idempotency_key': _0x2e8397[_0x2573e5(_0x46d75c._0x2e1eaf)]()[_0x2573e5(_0x46d75c._0x2ff49e)]()
|
|
2152
|
+
}, async _0x241ad0 => {
|
|
2153
|
+
const _0x45142e = _0x2573e5;
|
|
2141
2154
|
try {
|
|
2142
|
-
return textResult(await
|
|
2143
|
-
} catch (
|
|
2144
|
-
return textResult(
|
|
2155
|
+
return textResult(await _0x400cab[_0x45142e(_0x400bd0._0x51c649)](_0x241ad0));
|
|
2156
|
+
} catch (_0x290648) {
|
|
2157
|
+
return textResult(_0x290648 instanceof Error ? _0x290648[_0x45142e(_0x400bd0._0x3a58ef)] : 'unclaim_task\x20failed', !![]);
|
|
2145
2158
|
}
|
|
2146
|
-
}),
|
|
2147
|
-
'channel':
|
|
2148
|
-
'task_number':
|
|
2149
|
-
'status':
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2159
|
+
}), _0x405754['tool'](_0x2573e5(0x1a3), _0x2573e5(_0x46d75c._0x4a15f4), {
|
|
2160
|
+
'channel': _0x2e8397[_0x2573e5(0x1e7)](),
|
|
2161
|
+
'task_number': _0x2e8397[_0x2573e5(0x186)](),
|
|
2162
|
+
'status': _0x2e8397[_0x2573e5(0xef)]([
|
|
2163
|
+
_0x2573e5(0x245),
|
|
2164
|
+
_0x2573e5(_0x46d75c._0x3a5e8d),
|
|
2165
|
+
_0x2573e5(_0x46d75c._0x34fea0),
|
|
2166
|
+
'done'
|
|
2154
2167
|
]),
|
|
2155
|
-
'idempotency_key':
|
|
2156
|
-
}, async
|
|
2157
|
-
const
|
|
2168
|
+
'idempotency_key': _0x2e8397['string']()[_0x2573e5(0x171)]()
|
|
2169
|
+
}, async _0x25f9ec => {
|
|
2170
|
+
const _0x3ef64a = _0x2573e5;
|
|
2158
2171
|
try {
|
|
2159
|
-
return textResult(await
|
|
2160
|
-
} catch (
|
|
2161
|
-
return textResult(
|
|
2172
|
+
return textResult(await _0x400cab[_0x3ef64a(0x1a3)](_0x25f9ec));
|
|
2173
|
+
} catch (_0x335b53) {
|
|
2174
|
+
return textResult(_0x335b53 instanceof Error ? _0x335b53[_0x3ef64a(_0x591fee._0x42941d)] : _0x3ef64a(0x21a), !![]);
|
|
2162
2175
|
}
|
|
2163
|
-
}),
|
|
2164
|
-
'channel':
|
|
2165
|
-
'file_path':
|
|
2166
|
-
}, async
|
|
2167
|
-
const
|
|
2176
|
+
}), _0x405754[_0x2573e5(0x1e4)]('upload_file', _0x2573e5(_0x46d75c._0x9a4324), {
|
|
2177
|
+
'channel': _0x2e8397[_0x2573e5(_0x46d75c._0x3d3363)](),
|
|
2178
|
+
'file_path': _0x2e8397[_0x2573e5(0x1e7)]()
|
|
2179
|
+
}, async _0x2e43aa => {
|
|
2180
|
+
const _0x4c848b = _0x2573e5;
|
|
2168
2181
|
try {
|
|
2169
|
-
return textResult(await
|
|
2170
|
-
} catch (
|
|
2171
|
-
return textResult(
|
|
2182
|
+
return textResult(await _0x400cab['upload_file'](_0x2e43aa));
|
|
2183
|
+
} catch (_0x3a612b) {
|
|
2184
|
+
return textResult(_0x3a612b instanceof Error ? _0x3a612b['message'] : _0x4c848b(0x20e), !![]);
|
|
2172
2185
|
}
|
|
2173
|
-
}),
|
|
2174
|
-
const
|
|
2186
|
+
}), _0x405754[_0x2573e5(0x1e4)](_0x2573e5(_0x46d75c._0x587a52), 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0x2e8397[_0x2573e5(_0x46d75c._0xb5b644)]() }, async _0x282ad2 => {
|
|
2187
|
+
const _0x3d0ad1 = _0x2573e5;
|
|
2175
2188
|
try {
|
|
2176
|
-
return textResult(await
|
|
2177
|
-
} catch (
|
|
2178
|
-
return textResult(
|
|
2189
|
+
return textResult(await _0x400cab[_0x3d0ad1(0x161)](_0x282ad2));
|
|
2190
|
+
} catch (_0x1ab02d) {
|
|
2191
|
+
return textResult(_0x1ab02d instanceof Error ? _0x1ab02d['message'] : _0x3d0ad1(0x1b0), !![]);
|
|
2179
2192
|
}
|
|
2180
|
-
}),
|
|
2181
|
-
const
|
|
2193
|
+
}), _0x405754[_0x2573e5(_0x46d75c._0x4a99db)]('get_worker_status', 'Check\x20the\x20current\x20status\x20of\x20a\x20spawned\x20worker\x20by\x20its\x20work\x20key.', { 'work_key': _0x2e8397[_0x2573e5(0x1e7)]() }, async _0x3ffacb => {
|
|
2194
|
+
const _0x25d058 = _0x2573e5;
|
|
2182
2195
|
try {
|
|
2183
|
-
return textResult(await
|
|
2184
|
-
} catch (
|
|
2185
|
-
return textResult(
|
|
2196
|
+
return textResult(await _0x400cab['get_worker_status'](_0x3ffacb));
|
|
2197
|
+
} catch (_0xaec18f) {
|
|
2198
|
+
return textResult(_0xaec18f instanceof Error ? _0xaec18f[_0x25d058(_0x3c7d93._0x1feced)] : _0x25d058(0xe1), !![]);
|
|
2186
2199
|
}
|
|
2187
|
-
}),
|
|
2188
|
-
const
|
|
2200
|
+
}), _0x405754['tool']('get_worker_result', _0x2573e5(_0x46d75c._0x2c8b8d), { 'work_key': _0x2e8397['string']() }, async _0x44805b => {
|
|
2201
|
+
const _0x430426 = _0x2573e5;
|
|
2189
2202
|
try {
|
|
2190
|
-
return textResult(await
|
|
2191
|
-
} catch (
|
|
2192
|
-
return textResult(
|
|
2203
|
+
return textResult(await _0x400cab[_0x430426(_0x1b3d7d._0x17c0ac)](_0x44805b));
|
|
2204
|
+
} catch (_0xe6d9b) {
|
|
2205
|
+
return textResult(_0xe6d9b instanceof Error ? _0xe6d9b[_0x430426(0x1b2)] : _0x430426(0x176), !![]);
|
|
2193
2206
|
}
|
|
2194
|
-
}),
|
|
2195
|
-
'work_key':
|
|
2196
|
-
'result':
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2207
|
+
}), _0x405754['tool'](_0x2573e5(_0x46d75c._0x54eda6), _0x2573e5(_0x46d75c._0x1d04d7), {
|
|
2208
|
+
'work_key': _0x2e8397[_0x2573e5(0x1e7)](),
|
|
2209
|
+
'result': _0x2e8397[_0x2573e5(0xef)]([
|
|
2210
|
+
_0x2573e5(0x1c8),
|
|
2211
|
+
_0x2573e5(_0x46d75c._0x596aa9),
|
|
2212
|
+
_0x2573e5(0xf7)
|
|
2200
2213
|
]),
|
|
2201
|
-
'summary':
|
|
2202
|
-
'decisions':
|
|
2203
|
-
'files_changed':
|
|
2204
|
-
'open_issues':
|
|
2205
|
-
'next_steps':
|
|
2206
|
-
}, async
|
|
2207
|
-
const
|
|
2214
|
+
'summary': _0x2e8397[_0x2573e5(_0x46d75c._0xc73c02)](),
|
|
2215
|
+
'decisions': _0x2e8397[_0x2573e5(_0x46d75c._0x2c1b57)](_0x2e8397[_0x2573e5(0x1e7)]())['optional'](),
|
|
2216
|
+
'files_changed': _0x2e8397[_0x2573e5(0x246)](_0x2e8397['string']())[_0x2573e5(0x171)](),
|
|
2217
|
+
'open_issues': _0x2e8397[_0x2573e5(0x246)](_0x2e8397[_0x2573e5(0x1e7)]())[_0x2573e5(_0x46d75c._0x2ff49e)](),
|
|
2218
|
+
'next_steps': _0x2e8397[_0x2573e5(_0x46d75c._0x3f9536)](_0x2e8397[_0x2573e5(_0x46d75c._0xc73c02)]())['optional']()
|
|
2219
|
+
}, async _0x27fbb5 => {
|
|
2220
|
+
const _0x97bb53 = _0x2573e5;
|
|
2208
2221
|
try {
|
|
2209
|
-
return textResult(await
|
|
2210
|
-
} catch (
|
|
2211
|
-
return textResult(
|
|
2222
|
+
return textResult(await _0x400cab[_0x97bb53(_0x5a954d._0x3527a5)](_0x27fbb5));
|
|
2223
|
+
} catch (_0x4228ab) {
|
|
2224
|
+
return textResult(_0x4228ab instanceof Error ? _0x4228ab[_0x97bb53(0x1b2)] : 'finish_worker\x20failed', !![]);
|
|
2212
2225
|
}
|
|
2213
|
-
}),
|
|
2214
|
-
'work_key':
|
|
2215
|
-
'reason':
|
|
2216
|
-
}, async
|
|
2217
|
-
const
|
|
2226
|
+
}), _0x405754[_0x2573e5(_0x46d75c._0x4a99db)](_0x2573e5(_0x46d75c._0x500673), _0x2573e5(0x1d4), {
|
|
2227
|
+
'work_key': _0x2e8397['string'](),
|
|
2228
|
+
'reason': _0x2e8397[_0x2573e5(_0x46d75c._0x55e45c)]()
|
|
2229
|
+
}, async _0x56a395 => {
|
|
2230
|
+
const _0x1245df = _0x2573e5;
|
|
2218
2231
|
try {
|
|
2219
|
-
return textResult(await
|
|
2220
|
-
} catch (
|
|
2221
|
-
return textResult(
|
|
2232
|
+
return textResult(await _0x400cab['escalate_to_main'](_0x56a395));
|
|
2233
|
+
} catch (_0x412645) {
|
|
2234
|
+
return textResult(_0x412645 instanceof Error ? _0x412645[_0x1245df(0x1b2)] : _0x1245df(_0x4bcbc2._0x239602), !![]);
|
|
2222
2235
|
}
|
|
2223
|
-
}),
|
|
2224
|
-
const
|
|
2236
|
+
}), _0x494f9a?.[_0x2573e5(0x180)] && _0x405754[_0x2573e5(_0x46d75c._0x39bc6f)](_0x2573e5(_0x46d75c._0x292c23), 'Mark\x20the\x20current\x20worker\x20as\x20waiting\x20for\x20human\x20input.\x20Pauses\x20the\x20idle\x20TTL\x20timer\x20until\x20a\x20new\x20message\x20arrives.', { 'work_key': _0x2e8397[_0x2573e5(_0x46d75c._0x14901f)]() }, async _0x55dfd0 => {
|
|
2237
|
+
const _0x24a2c4 = _0x2573e5;
|
|
2225
2238
|
try {
|
|
2226
|
-
return textResult(await
|
|
2227
|
-
} catch (
|
|
2228
|
-
return textResult(
|
|
2239
|
+
return textResult(await _0x400cab[_0x24a2c4(0x199)](_0x55dfd0));
|
|
2240
|
+
} catch (_0x5570ef) {
|
|
2241
|
+
return textResult(_0x5570ef instanceof Error ? _0x5570ef[_0x24a2c4(_0x58c225._0x389288)] : _0x24a2c4(0x11e), !![]);
|
|
2229
2242
|
}
|
|
2230
2243
|
});
|
|
2231
2244
|
}
|
|
2232
|
-
async function createChatBridgeServer(
|
|
2233
|
-
const
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
},
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
return await registerChatBridgeTools(_0x2445b3, _0x2ffd33, { 'workerMode': _0x5f2bb0[_0x2f60fe(_0x550dd4._0x5d8bf7)] }), {
|
|
2241
|
-
'handlers': _0x2ffd33,
|
|
2242
|
-
'server': _0x2445b3
|
|
2245
|
+
async function createChatBridgeServer(_0x49791e) {
|
|
2246
|
+
const _0x53b2ad = { _0x1ba874: 0x180 }, _0x59eed9 = _0x1bf962, {McpServer: _0x9e4c70} = await import(_0x59eed9(0xd9)), _0x376ec1 = new _0x9e4c70({
|
|
2247
|
+
'name': _0x59eed9(0x18f),
|
|
2248
|
+
'version': _0x59eed9(0x1c4)
|
|
2249
|
+
}), _0x57a6a8 = createChatBridgeHandlers(_0x49791e);
|
|
2250
|
+
return await registerChatBridgeTools(_0x376ec1, _0x57a6a8, { 'workerMode': _0x49791e[_0x59eed9(_0x53b2ad._0x1ba874)] }), {
|
|
2251
|
+
'handlers': _0x57a6a8,
|
|
2252
|
+
'server': _0x376ec1
|
|
2243
2253
|
};
|
|
2244
2254
|
}
|
|
2245
|
-
function readFlag(
|
|
2246
|
-
const
|
|
2247
|
-
if (
|
|
2255
|
+
function readFlag(_0x5a6437, _0x4c889d) {
|
|
2256
|
+
const _0xae1bf5 = _0x1bf962, _0x214b41 = _0x5a6437[_0xae1bf5(0x15f)](_0x4c889d);
|
|
2257
|
+
if (_0x214b41 === -0x1)
|
|
2248
2258
|
return void 0x0;
|
|
2249
|
-
return
|
|
2259
|
+
return _0x5a6437[_0x214b41 + 0x1];
|
|
2250
2260
|
}
|
|
2251
|
-
function parseChatBridgeArgs(
|
|
2252
|
-
const
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2261
|
+
function parseChatBridgeArgs(_0xa58575) {
|
|
2262
|
+
const _0x46788e = {
|
|
2263
|
+
_0x30c9f7: 0x1e2,
|
|
2264
|
+
_0x521e96: 0xc3,
|
|
2265
|
+
_0xbc295b: 0x104,
|
|
2266
|
+
_0x9ecf97: 0x22b,
|
|
2267
|
+
_0x4f5c6b: 0x232,
|
|
2268
|
+
_0x4ccaf0: 0xe5,
|
|
2269
|
+
_0x1e9f4a: 0x166,
|
|
2270
|
+
_0xfca6d4: 0x16d
|
|
2271
|
+
}, _0x46f27b = _0x1bf962, _0x2bf0e6 = readFlag(_0xa58575, _0x46f27b(0x165)), _0x49e9db = readFlag(_0xa58575, '--daemon-api-key'), _0x2af28c = readFlag(_0xa58575, '--initial-last-seen-seq'), _0x445524 = readFlag(_0xa58575, '--server-url') ?? _0x46f27b(_0x46788e._0x30c9f7), _0x160c86 = readFlag(_0xa58575, _0x46f27b(_0x46788e._0x521e96)), _0xcdb032 = readFlag(_0xa58575, _0x46f27b(_0x46788e._0xbc295b)), _0xc140a4 = readFlag(_0xa58575, _0x46f27b(_0x46788e._0x9ecf97)), _0x5c99d4 = readFlag(_0xa58575, _0x46f27b(0x1a6)), _0x11bf7b = readFlag(_0xa58575, _0x46f27b(0x1fd)), _0x4a480c = _0xa58575[_0x46f27b(_0x46788e._0x4f5c6b)]('--worker-mode'), _0x45171e = _0x2af28c === void 0x0 ? void 0x0 : Number['parseInt'](_0x2af28c, 0xa);
|
|
2272
|
+
if (!_0x2bf0e6)
|
|
2273
|
+
throw new Error('Missing\x20--agent-id');
|
|
2274
|
+
if (!_0x49e9db)
|
|
2275
|
+
throw new Error(_0x46f27b(_0x46788e._0x4ccaf0));
|
|
2276
|
+
if (_0x2af28c !== void 0x0 && (_0x45171e === void 0x0 || !Number[_0x46f27b(_0x46788e._0x1e9f4a)](_0x45171e) || _0x45171e < 0x0))
|
|
2277
|
+
throw new Error(_0x46f27b(_0x46788e._0xfca6d4));
|
|
2267
2278
|
return {
|
|
2268
|
-
'agentId':
|
|
2269
|
-
'daemonApiKey':
|
|
2270
|
-
'daemonLocalUrl':
|
|
2271
|
-
'initialLastSeenSeq':
|
|
2272
|
-
'sessionId':
|
|
2273
|
-
'serverUrl':
|
|
2274
|
-
'workerModeEnabled':
|
|
2275
|
-
'workerSessionId':
|
|
2276
|
-
'workerThreadTarget':
|
|
2277
|
-
'workerMode':
|
|
2279
|
+
'agentId': _0x2bf0e6,
|
|
2280
|
+
'daemonApiKey': _0x49e9db,
|
|
2281
|
+
'daemonLocalUrl': _0x160c86,
|
|
2282
|
+
'initialLastSeenSeq': _0x45171e,
|
|
2283
|
+
'sessionId': _0xcdb032,
|
|
2284
|
+
'serverUrl': _0x445524,
|
|
2285
|
+
'workerModeEnabled': _0xc140a4 === void 0x0 ? void 0x0 : _0xc140a4 !== 'false',
|
|
2286
|
+
'workerSessionId': _0x5c99d4,
|
|
2287
|
+
'workerThreadTarget': _0x11bf7b,
|
|
2288
|
+
'workerMode': _0x4a480c
|
|
2278
2289
|
};
|
|
2279
2290
|
}
|
|
2280
|
-
async function runChatBridgeCli(
|
|
2281
|
-
const
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
'
|
|
2288
|
-
'
|
|
2289
|
-
'client': _0x1fb3d4,
|
|
2290
|
-
'daemonLocalUrl': _0x17e94b[_0x5b0e76(0x1ba)],
|
|
2291
|
+
async function runChatBridgeCli(_0x3d4297) {
|
|
2292
|
+
const _0x3e17ec = {
|
|
2293
|
+
_0x1e909b: 0xc2,
|
|
2294
|
+
_0x5d1294: 0x150
|
|
2295
|
+
}, _0x597392 = _0x1bf962, _0x56cfae = parseChatBridgeArgs(_0x3d4297), {StdioServerTransport: _0x495dfc} = await import(_0x597392(_0x3e17ec._0x1e909b)), _0x1601f7 = createInternalAgentClient(_0x56cfae), _0x12ed73 = createAttachmentCache(), _0x101ade = await createChatBridgeServer({
|
|
2296
|
+
'agentId': _0x56cfae['agentId'],
|
|
2297
|
+
'attachmentCache': _0x12ed73,
|
|
2298
|
+
'client': _0x1601f7,
|
|
2299
|
+
'daemonLocalUrl': _0x56cfae[_0x597392(0xf9)],
|
|
2291
2300
|
'uploadPreparer': prepareUploadFile,
|
|
2292
|
-
'workerModeEnabled':
|
|
2293
|
-
'workerMode':
|
|
2301
|
+
'workerModeEnabled': _0x56cfae['workerModeEnabled'],
|
|
2302
|
+
'workerMode': _0x56cfae['workerMode']
|
|
2294
2303
|
});
|
|
2295
|
-
await
|
|
2304
|
+
await _0x101ade[_0x597392(0x18c)][_0x597392(_0x3e17ec._0x5d1294)](new _0x495dfc());
|
|
2296
2305
|
}
|
|
2297
|
-
var executedAsEntry = process[
|
|
2298
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2306
|
+
var executedAsEntry = process[_0x1bf962(0x218)][0x1] ? import.meta.url === pathToFileURL(process[_0x1bf962(0x218)][0x1])['href'] : ![];
|
|
2307
|
+
executedAsEntry && await runChatBridgeCli(process[_0x1bf962(0x218)][_0x1bf962(0x120)](0x2));
|
|
2299
2308
|
export {
|
|
2300
2309
|
createChatBridgeHandlers,
|
|
2301
2310
|
createChatBridgeServer,
|